@deliverart/sdk-js-delivery 2.35.2 → 2.35.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +6 -6
- package/dist/index.d.ts.map +0 -1
- package/dist/models.d.ts +0 -343
- package/dist/models.d.ts.map +0 -1
- package/dist/models.js +0 -196
- package/dist/requests/deliveries/CreateDelivery.d.ts +0 -44
- package/dist/requests/deliveries/CreateDelivery.d.ts.map +0 -1
- package/dist/requests/deliveries/CreateDelivery.js +0 -19
- package/dist/requests/deliveries/DeleteDelivery.d.ts +0 -17
- package/dist/requests/deliveries/DeleteDelivery.d.ts.map +0 -1
- package/dist/requests/deliveries/DeleteDelivery.js +0 -21
- package/dist/requests/deliveries/DeliverCurrentOrder.d.ts +0 -39
- package/dist/requests/deliveries/DeliverCurrentOrder.d.ts.map +0 -1
- package/dist/requests/deliveries/DeliverCurrentOrder.js +0 -21
- package/dist/requests/deliveries/EndDelivery.d.ts +0 -39
- package/dist/requests/deliveries/EndDelivery.d.ts.map +0 -1
- package/dist/requests/deliveries/EndDelivery.js +0 -21
- package/dist/requests/deliveries/GetDeliveries.d.ts +0 -158
- package/dist/requests/deliveries/GetDeliveries.d.ts.map +0 -1
- package/dist/requests/deliveries/GetDeliveries.js +0 -25
- package/dist/requests/deliveries/GetDeliveriesFromUser.d.ts +0 -159
- package/dist/requests/deliveries/GetDeliveriesFromUser.d.ts.map +0 -1
- package/dist/requests/deliveries/GetDeliveriesFromUser.js +0 -25
- package/dist/requests/deliveries/GetDeliveryDetails.d.ts +0 -39
- package/dist/requests/deliveries/GetDeliveryDetails.d.ts.map +0 -1
- package/dist/requests/deliveries/GetDeliveryDetails.js +0 -21
- package/dist/requests/deliveries/GetDeliveryDetailsFromBundle.d.ts +0 -39
- package/dist/requests/deliveries/GetDeliveryDetailsFromBundle.d.ts.map +0 -1
- package/dist/requests/deliveries/GetDeliveryDetailsFromBundle.js +0 -21
- package/dist/requests/deliveries/StartDelivery.d.ts +0 -39
- package/dist/requests/deliveries/StartDelivery.d.ts.map +0 -1
- package/dist/requests/deliveries/StartDelivery.js +0 -21
- package/dist/requests/deliveries/StartDeliveryOrder.d.ts +0 -40
- package/dist/requests/deliveries/StartDeliveryOrder.d.ts.map +0 -1
- package/dist/requests/deliveries/StartDeliveryOrder.js +0 -22
- package/dist/requests/deliveries/UpdateDelivery.d.ts +0 -43
- package/dist/requests/deliveries/UpdateDelivery.d.ts.map +0 -1
- package/dist/requests/deliveries/UpdateDelivery.js +0 -24
- package/dist/requests/deliveries/index.d.ts +0 -12
- package/dist/requests/deliveries/index.d.ts.map +0 -1
- package/dist/requests/deliveries/index.js +0 -11
- package/dist/requests/delivery_fees/CreateDeliveryFee.d.ts +0 -152
- package/dist/requests/delivery_fees/CreateDeliveryFee.d.ts.map +0 -1
- package/dist/requests/delivery_fees/CreateDeliveryFee.js +0 -19
- package/dist/requests/delivery_fees/DeleteDeliveryFee.d.ts +0 -17
- package/dist/requests/delivery_fees/DeleteDeliveryFee.d.ts.map +0 -1
- package/dist/requests/delivery_fees/DeleteDeliveryFee.js +0 -21
- package/dist/requests/delivery_fees/GetDeliveryFeeDetails.d.ts +0 -101
- package/dist/requests/delivery_fees/GetDeliveryFeeDetails.d.ts.map +0 -1
- package/dist/requests/delivery_fees/GetDeliveryFeeDetails.js +0 -21
- package/dist/requests/delivery_fees/GetDeliveryFees.d.ts +0 -248
- package/dist/requests/delivery_fees/GetDeliveryFees.d.ts.map +0 -1
- package/dist/requests/delivery_fees/GetDeliveryFees.js +0 -24
- package/dist/requests/delivery_fees/GetDeliveryFeesFromPointOfSale.d.ts +0 -229
- package/dist/requests/delivery_fees/GetDeliveryFeesFromPointOfSale.d.ts.map +0 -1
- package/dist/requests/delivery_fees/GetDeliveryFeesFromPointOfSale.js +0 -24
- package/dist/requests/delivery_fees/UpdateDeliveryFee.d.ts +0 -147
- package/dist/requests/delivery_fees/UpdateDeliveryFee.d.ts.map +0 -1
- package/dist/requests/delivery_fees/UpdateDeliveryFee.js +0 -20
- package/dist/requests/delivery_fees/index.d.ts +0 -7
- package/dist/requests/delivery_fees/index.d.ts.map +0 -1
- package/dist/requests/delivery_fees/index.js +0 -6
- package/dist/requests/delivery_positions/CreateDeliveryPosition.d.ts +0 -50
- package/dist/requests/delivery_positions/CreateDeliveryPosition.d.ts.map +0 -1
- package/dist/requests/delivery_positions/CreateDeliveryPosition.js +0 -19
- package/dist/requests/delivery_positions/DeleteDeliveryPosition.d.ts +0 -17
- package/dist/requests/delivery_positions/DeleteDeliveryPosition.d.ts.map +0 -1
- package/dist/requests/delivery_positions/DeleteDeliveryPosition.js +0 -21
- package/dist/requests/delivery_positions/GetDeliveryPositionDetails.d.ts +0 -39
- package/dist/requests/delivery_positions/GetDeliveryPositionDetails.d.ts.map +0 -1
- package/dist/requests/delivery_positions/GetDeliveryPositionDetails.js +0 -21
- package/dist/requests/delivery_positions/GetDeliveryPositions.d.ts +0 -105
- package/dist/requests/delivery_positions/GetDeliveryPositions.d.ts.map +0 -1
- package/dist/requests/delivery_positions/GetDeliveryPositions.js +0 -25
- package/dist/requests/delivery_positions/GetDeliveryPositionsFromDelivery.d.ts +0 -86
- package/dist/requests/delivery_positions/GetDeliveryPositionsFromDelivery.d.ts.map +0 -1
- package/dist/requests/delivery_positions/GetDeliveryPositionsFromDelivery.js +0 -24
- package/dist/requests/delivery_positions/index.d.ts +0 -6
- package/dist/requests/delivery_positions/index.d.ts.map +0 -1
- package/dist/requests/delivery_positions/index.js +0 -5
- package/dist/requests/index.d.ts +0 -4
- package/dist/requests/index.d.ts.map +0 -1
- package/dist/requests/index.js +0 -3
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/dist/types.d.ts +0 -11
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -6
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { AbstractApiRequest } from '@deliverart/sdk-js-core';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
export declare const getDeliveryFeeDetailsInputSchema: z.ZodUndefined;
|
|
4
|
-
export type GetDeliveryFeeDetailsInput = z.infer<typeof getDeliveryFeeDetailsInputSchema>;
|
|
5
|
-
export declare const getDeliveryFeeDetailsResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6
|
-
amount: z.ZodDefault<z.ZodString>;
|
|
7
|
-
netAmount: z.ZodString;
|
|
8
|
-
taxAmount: z.ZodString;
|
|
9
|
-
taxRate: z.ZodCoercedNumber<unknown>;
|
|
10
|
-
createdAt: z.ZodString;
|
|
11
|
-
updatedAt: z.ZodString;
|
|
12
|
-
id: z.ZodString;
|
|
13
|
-
pointOfSale: z.ZodOptional<z.ZodType<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
14
|
-
type: z.ZodLiteral<"amount">;
|
|
15
|
-
settings: z.ZodObject<{
|
|
16
|
-
min: z.ZodCoercedNumber<unknown>;
|
|
17
|
-
max: z.ZodCoercedNumber<unknown>;
|
|
18
|
-
}, z.core.$strip>;
|
|
19
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
20
|
-
amount: z.ZodDefault<z.ZodString>;
|
|
21
|
-
netAmount: z.ZodString;
|
|
22
|
-
taxAmount: z.ZodString;
|
|
23
|
-
taxRate: z.ZodCoercedNumber<unknown>;
|
|
24
|
-
createdAt: z.ZodString;
|
|
25
|
-
updatedAt: z.ZodString;
|
|
26
|
-
id: z.ZodString;
|
|
27
|
-
pointOfSale: z.ZodOptional<z.ZodType<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
28
|
-
type: z.ZodLiteral<"distance">;
|
|
29
|
-
settings: z.ZodObject<{
|
|
30
|
-
min: z.ZodCoercedNumber<unknown>;
|
|
31
|
-
max: z.ZodCoercedNumber<unknown>;
|
|
32
|
-
}, z.core.$strip>;
|
|
33
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
34
|
-
amount: z.ZodDefault<z.ZodString>;
|
|
35
|
-
netAmount: z.ZodString;
|
|
36
|
-
taxAmount: z.ZodString;
|
|
37
|
-
taxRate: z.ZodCoercedNumber<unknown>;
|
|
38
|
-
createdAt: z.ZodString;
|
|
39
|
-
updatedAt: z.ZodString;
|
|
40
|
-
id: z.ZodString;
|
|
41
|
-
pointOfSale: z.ZodOptional<z.ZodType<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
42
|
-
type: z.ZodLiteral<"postal_code">;
|
|
43
|
-
settings: z.ZodObject<{
|
|
44
|
-
values: z.ZodArray<z.ZodString>;
|
|
45
|
-
}, z.core.$strip>;
|
|
46
|
-
}, z.core.$strip>], "type">;
|
|
47
|
-
export type GetDeliveryFeeDetailsResponse = z.output<typeof getDeliveryFeeDetailsResponseSchema>;
|
|
48
|
-
export declare class GetDeliveryFeeDetails extends AbstractApiRequest<typeof getDeliveryFeeDetailsInputSchema, typeof getDeliveryFeeDetailsResponseSchema> {
|
|
49
|
-
readonly method = "GET";
|
|
50
|
-
readonly contentType = "application/json";
|
|
51
|
-
readonly accept = "application/json";
|
|
52
|
-
readonly inputSchema: z.ZodUndefined;
|
|
53
|
-
readonly outputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
54
|
-
amount: z.ZodDefault<z.ZodString>;
|
|
55
|
-
netAmount: z.ZodString;
|
|
56
|
-
taxAmount: z.ZodString;
|
|
57
|
-
taxRate: z.ZodCoercedNumber<unknown>;
|
|
58
|
-
createdAt: z.ZodString;
|
|
59
|
-
updatedAt: z.ZodString;
|
|
60
|
-
id: z.ZodString;
|
|
61
|
-
pointOfSale: z.ZodOptional<z.ZodType<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
62
|
-
type: z.ZodLiteral<"amount">;
|
|
63
|
-
settings: z.ZodObject<{
|
|
64
|
-
min: z.ZodCoercedNumber<unknown>;
|
|
65
|
-
max: z.ZodCoercedNumber<unknown>;
|
|
66
|
-
}, z.core.$strip>;
|
|
67
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
68
|
-
amount: z.ZodDefault<z.ZodString>;
|
|
69
|
-
netAmount: z.ZodString;
|
|
70
|
-
taxAmount: z.ZodString;
|
|
71
|
-
taxRate: z.ZodCoercedNumber<unknown>;
|
|
72
|
-
createdAt: z.ZodString;
|
|
73
|
-
updatedAt: z.ZodString;
|
|
74
|
-
id: z.ZodString;
|
|
75
|
-
pointOfSale: z.ZodOptional<z.ZodType<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
76
|
-
type: z.ZodLiteral<"distance">;
|
|
77
|
-
settings: z.ZodObject<{
|
|
78
|
-
min: z.ZodCoercedNumber<unknown>;
|
|
79
|
-
max: z.ZodCoercedNumber<unknown>;
|
|
80
|
-
}, z.core.$strip>;
|
|
81
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
82
|
-
amount: z.ZodDefault<z.ZodString>;
|
|
83
|
-
netAmount: z.ZodString;
|
|
84
|
-
taxAmount: z.ZodString;
|
|
85
|
-
taxRate: z.ZodCoercedNumber<unknown>;
|
|
86
|
-
createdAt: z.ZodString;
|
|
87
|
-
updatedAt: z.ZodString;
|
|
88
|
-
id: z.ZodString;
|
|
89
|
-
pointOfSale: z.ZodOptional<z.ZodType<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
90
|
-
type: z.ZodLiteral<"postal_code">;
|
|
91
|
-
settings: z.ZodObject<{
|
|
92
|
-
values: z.ZodArray<z.ZodString>;
|
|
93
|
-
}, z.core.$strip>;
|
|
94
|
-
}, z.core.$strip>], "type">;
|
|
95
|
-
readonly querySchema: undefined;
|
|
96
|
-
readonly headersSchema: undefined;
|
|
97
|
-
private readonly deliveryFeeId;
|
|
98
|
-
constructor(deliveryFeeId: string);
|
|
99
|
-
getPath(): string;
|
|
100
|
-
}
|
|
101
|
-
//# sourceMappingURL=GetDeliveryFeeDetails.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetDeliveryFeeDetails.d.ts","sourceRoot":"","sources":["../../../src/requests/delivery_fees/GetDeliveryFeeDetails.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAC5D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,eAAO,MAAM,gCAAgC,gBAAgB,CAAA;AAC7D,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAA;AAEzF,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAA2B,CAAA;AAC3E,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,mCAAmC,CAAC,CAAA;AAEhG,qBAAa,qBAAsB,SAAQ,kBAAkB,CAC3D,OAAO,gCAAgC,EACvC,OAAO,mCAAmC,CAC3C;IACC,QAAQ,CAAC,MAAM,SAAQ;IACvB,QAAQ,CAAC,WAAW,sBAAqB;IACzC,QAAQ,CAAC,MAAM,sBAAqB;IACpC,QAAQ,CAAC,WAAW,iBAAmC;IACvD,QAAQ,CAAC,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAAsC;IAC3D,QAAQ,CAAC,WAAW,YAAY;IAChC,QAAQ,CAAC,aAAa,YAAY;IAElC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAQ;gBAE1B,aAAa,EAAE,MAAM;IAKjC,OAAO,IAAI,MAAM;CAGlB"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { AbstractApiRequest } from '@deliverart/sdk-js-core';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
import { deliveryFeeDetailsSchema } from '../../models';
|
|
4
|
-
export const getDeliveryFeeDetailsInputSchema = z.undefined();
|
|
5
|
-
export const getDeliveryFeeDetailsResponseSchema = deliveryFeeDetailsSchema;
|
|
6
|
-
export class GetDeliveryFeeDetails extends AbstractApiRequest {
|
|
7
|
-
constructor(deliveryFeeId) {
|
|
8
|
-
super(undefined);
|
|
9
|
-
this.method = 'GET';
|
|
10
|
-
this.contentType = 'application/json';
|
|
11
|
-
this.accept = 'application/json';
|
|
12
|
-
this.inputSchema = getDeliveryFeeDetailsInputSchema;
|
|
13
|
-
this.outputSchema = getDeliveryFeeDetailsResponseSchema;
|
|
14
|
-
this.querySchema = undefined;
|
|
15
|
-
this.headersSchema = undefined;
|
|
16
|
-
this.deliveryFeeId = deliveryFeeId;
|
|
17
|
-
}
|
|
18
|
-
getPath() {
|
|
19
|
-
return `/delivery_fees/${this.deliveryFeeId}`;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,248 +0,0 @@
|
|
|
1
|
-
import { AbstractApiRequest } from '@deliverart/sdk-js-core';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
import { DeliveryFeesQueryParams } from '../../models';
|
|
4
|
-
export declare const getDeliveryFeesQuerySchema: z.ZodObject<{
|
|
5
|
-
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
6
|
-
asc: "asc";
|
|
7
|
-
desc: "desc";
|
|
8
|
-
}>>;
|
|
9
|
-
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
10
|
-
asc: "asc";
|
|
11
|
-
desc: "desc";
|
|
12
|
-
}>>;
|
|
13
|
-
'order[amount]': z.ZodOptional<z.ZodEnum<{
|
|
14
|
-
asc: "asc";
|
|
15
|
-
desc: "desc";
|
|
16
|
-
}>>;
|
|
17
|
-
'order[type]': z.ZodOptional<z.ZodEnum<{
|
|
18
|
-
asc: "asc";
|
|
19
|
-
desc: "desc";
|
|
20
|
-
}>>;
|
|
21
|
-
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
22
|
-
amount: "amount";
|
|
23
|
-
distance: "distance";
|
|
24
|
-
postal_code: "postal_code";
|
|
25
|
-
}>, z.ZodArray<z.ZodEnum<{
|
|
26
|
-
amount: "amount";
|
|
27
|
-
distance: "distance";
|
|
28
|
-
postal_code: "postal_code";
|
|
29
|
-
}>>]>>;
|
|
30
|
-
'amount[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
31
|
-
'amount[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
32
|
-
'amount[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
33
|
-
'amount[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
34
|
-
'amount[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
35
|
-
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
36
|
-
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
37
|
-
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
38
|
-
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
39
|
-
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
40
|
-
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
41
|
-
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
42
|
-
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
43
|
-
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
44
|
-
}, z.core.$strip>;
|
|
45
|
-
export type GetDeliveryFeesQueryParams = z.infer<typeof getDeliveryFeesQuerySchema>;
|
|
46
|
-
export declare const getDeliveryFeesInputSchema: z.ZodUndefined;
|
|
47
|
-
export type GetDeliveryFeesInput = z.infer<typeof getDeliveryFeesInputSchema>;
|
|
48
|
-
export declare const getDeliveryFeesResponseSchema: z.ZodObject<{
|
|
49
|
-
data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
50
|
-
amount: z.ZodDefault<z.ZodString>;
|
|
51
|
-
netAmount: z.ZodString;
|
|
52
|
-
taxAmount: z.ZodString;
|
|
53
|
-
taxRate: z.ZodCoercedNumber<unknown>;
|
|
54
|
-
createdAt: z.ZodString;
|
|
55
|
-
updatedAt: z.ZodString;
|
|
56
|
-
id: z.ZodString;
|
|
57
|
-
pointOfSale: z.ZodOptional<z.ZodType<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
58
|
-
type: z.ZodLiteral<"amount">;
|
|
59
|
-
settings: z.ZodObject<{
|
|
60
|
-
min: z.ZodCoercedNumber<unknown>;
|
|
61
|
-
max: z.ZodCoercedNumber<unknown>;
|
|
62
|
-
}, z.core.$strip>;
|
|
63
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
64
|
-
amount: z.ZodDefault<z.ZodString>;
|
|
65
|
-
netAmount: z.ZodString;
|
|
66
|
-
taxAmount: z.ZodString;
|
|
67
|
-
taxRate: z.ZodCoercedNumber<unknown>;
|
|
68
|
-
createdAt: z.ZodString;
|
|
69
|
-
updatedAt: z.ZodString;
|
|
70
|
-
id: z.ZodString;
|
|
71
|
-
pointOfSale: z.ZodOptional<z.ZodType<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
72
|
-
type: z.ZodLiteral<"distance">;
|
|
73
|
-
settings: z.ZodObject<{
|
|
74
|
-
min: z.ZodCoercedNumber<unknown>;
|
|
75
|
-
max: z.ZodCoercedNumber<unknown>;
|
|
76
|
-
}, z.core.$strip>;
|
|
77
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
78
|
-
amount: z.ZodDefault<z.ZodString>;
|
|
79
|
-
netAmount: z.ZodString;
|
|
80
|
-
taxAmount: z.ZodString;
|
|
81
|
-
taxRate: z.ZodCoercedNumber<unknown>;
|
|
82
|
-
createdAt: z.ZodString;
|
|
83
|
-
updatedAt: z.ZodString;
|
|
84
|
-
id: z.ZodString;
|
|
85
|
-
pointOfSale: z.ZodOptional<z.ZodType<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
86
|
-
type: z.ZodLiteral<"postal_code">;
|
|
87
|
-
settings: z.ZodObject<{
|
|
88
|
-
values: z.ZodArray<z.ZodString>;
|
|
89
|
-
}, z.core.$strip>;
|
|
90
|
-
}, z.core.$strip>], "type">>;
|
|
91
|
-
pagination: z.ZodObject<{
|
|
92
|
-
from: z.ZodCoercedNumber<unknown>;
|
|
93
|
-
to: z.ZodCoercedNumber<unknown>;
|
|
94
|
-
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
95
|
-
totalItems: z.ZodCoercedNumber<unknown>;
|
|
96
|
-
currentPage: z.ZodCoercedNumber<unknown>;
|
|
97
|
-
lastPage: z.ZodCoercedNumber<unknown>;
|
|
98
|
-
}, z.core.$strip>;
|
|
99
|
-
}, z.core.$strip>;
|
|
100
|
-
export type GetDeliveryFeesResponse = z.infer<typeof getDeliveryFeesResponseSchema>;
|
|
101
|
-
export declare class GetDeliveryFees extends AbstractApiRequest<typeof getDeliveryFeesInputSchema, typeof getDeliveryFeesResponseSchema, GetDeliveryFeesQueryParams> {
|
|
102
|
-
readonly method: "GET";
|
|
103
|
-
readonly contentType: "application/json";
|
|
104
|
-
readonly accept: "application/json";
|
|
105
|
-
readonly inputSchema: z.ZodUndefined;
|
|
106
|
-
readonly outputSchema: z.ZodObject<{
|
|
107
|
-
data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
108
|
-
amount: z.ZodDefault<z.ZodString>;
|
|
109
|
-
netAmount: z.ZodString;
|
|
110
|
-
taxAmount: z.ZodString;
|
|
111
|
-
taxRate: z.ZodCoercedNumber<unknown>;
|
|
112
|
-
createdAt: z.ZodString;
|
|
113
|
-
updatedAt: z.ZodString;
|
|
114
|
-
id: z.ZodString;
|
|
115
|
-
pointOfSale: z.ZodOptional<z.ZodType<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
116
|
-
type: z.ZodLiteral<"amount">;
|
|
117
|
-
settings: z.ZodObject<{
|
|
118
|
-
min: z.ZodCoercedNumber<unknown>;
|
|
119
|
-
max: z.ZodCoercedNumber<unknown>;
|
|
120
|
-
}, z.core.$strip>;
|
|
121
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
122
|
-
amount: z.ZodDefault<z.ZodString>;
|
|
123
|
-
netAmount: z.ZodString;
|
|
124
|
-
taxAmount: z.ZodString;
|
|
125
|
-
taxRate: z.ZodCoercedNumber<unknown>;
|
|
126
|
-
createdAt: z.ZodString;
|
|
127
|
-
updatedAt: z.ZodString;
|
|
128
|
-
id: z.ZodString;
|
|
129
|
-
pointOfSale: z.ZodOptional<z.ZodType<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
130
|
-
type: z.ZodLiteral<"distance">;
|
|
131
|
-
settings: z.ZodObject<{
|
|
132
|
-
min: z.ZodCoercedNumber<unknown>;
|
|
133
|
-
max: z.ZodCoercedNumber<unknown>;
|
|
134
|
-
}, z.core.$strip>;
|
|
135
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
136
|
-
amount: z.ZodDefault<z.ZodString>;
|
|
137
|
-
netAmount: z.ZodString;
|
|
138
|
-
taxAmount: z.ZodString;
|
|
139
|
-
taxRate: z.ZodCoercedNumber<unknown>;
|
|
140
|
-
createdAt: z.ZodString;
|
|
141
|
-
updatedAt: z.ZodString;
|
|
142
|
-
id: z.ZodString;
|
|
143
|
-
pointOfSale: z.ZodOptional<z.ZodType<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
144
|
-
type: z.ZodLiteral<"postal_code">;
|
|
145
|
-
settings: z.ZodObject<{
|
|
146
|
-
values: z.ZodArray<z.ZodString>;
|
|
147
|
-
}, z.core.$strip>;
|
|
148
|
-
}, z.core.$strip>], "type">>;
|
|
149
|
-
pagination: z.ZodObject<{
|
|
150
|
-
from: z.ZodCoercedNumber<unknown>;
|
|
151
|
-
to: z.ZodCoercedNumber<unknown>;
|
|
152
|
-
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
153
|
-
totalItems: z.ZodCoercedNumber<unknown>;
|
|
154
|
-
currentPage: z.ZodCoercedNumber<unknown>;
|
|
155
|
-
lastPage: z.ZodCoercedNumber<unknown>;
|
|
156
|
-
}, z.core.$strip>;
|
|
157
|
-
}, z.core.$strip>;
|
|
158
|
-
readonly querySchema: z.ZodObject<{
|
|
159
|
-
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
160
|
-
asc: "asc";
|
|
161
|
-
desc: "desc";
|
|
162
|
-
}>>;
|
|
163
|
-
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
164
|
-
asc: "asc";
|
|
165
|
-
desc: "desc";
|
|
166
|
-
}>>;
|
|
167
|
-
'order[amount]': z.ZodOptional<z.ZodEnum<{
|
|
168
|
-
asc: "asc";
|
|
169
|
-
desc: "desc";
|
|
170
|
-
}>>;
|
|
171
|
-
'order[type]': z.ZodOptional<z.ZodEnum<{
|
|
172
|
-
asc: "asc";
|
|
173
|
-
desc: "desc";
|
|
174
|
-
}>>;
|
|
175
|
-
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
176
|
-
amount: "amount";
|
|
177
|
-
distance: "distance";
|
|
178
|
-
postal_code: "postal_code";
|
|
179
|
-
}>, z.ZodArray<z.ZodEnum<{
|
|
180
|
-
amount: "amount";
|
|
181
|
-
distance: "distance";
|
|
182
|
-
postal_code: "postal_code";
|
|
183
|
-
}>>]>>;
|
|
184
|
-
'amount[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
185
|
-
'amount[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
186
|
-
'amount[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
187
|
-
'amount[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
188
|
-
'amount[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
189
|
-
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
190
|
-
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
191
|
-
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
192
|
-
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
193
|
-
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
194
|
-
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
195
|
-
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
196
|
-
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
197
|
-
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
198
|
-
}, z.core.$strip>;
|
|
199
|
-
readonly headersSchema: undefined;
|
|
200
|
-
readonly listItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
201
|
-
amount: z.ZodDefault<z.ZodString>;
|
|
202
|
-
netAmount: z.ZodString;
|
|
203
|
-
taxAmount: z.ZodString;
|
|
204
|
-
taxRate: z.ZodCoercedNumber<unknown>;
|
|
205
|
-
createdAt: z.ZodString;
|
|
206
|
-
updatedAt: z.ZodString;
|
|
207
|
-
id: z.ZodString;
|
|
208
|
-
pointOfSale: z.ZodOptional<z.ZodType<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
209
|
-
type: z.ZodLiteral<"amount">;
|
|
210
|
-
settings: z.ZodObject<{
|
|
211
|
-
min: z.ZodCoercedNumber<unknown>;
|
|
212
|
-
max: z.ZodCoercedNumber<unknown>;
|
|
213
|
-
}, z.core.$strip>;
|
|
214
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
215
|
-
amount: z.ZodDefault<z.ZodString>;
|
|
216
|
-
netAmount: z.ZodString;
|
|
217
|
-
taxAmount: z.ZodString;
|
|
218
|
-
taxRate: z.ZodCoercedNumber<unknown>;
|
|
219
|
-
createdAt: z.ZodString;
|
|
220
|
-
updatedAt: z.ZodString;
|
|
221
|
-
id: z.ZodString;
|
|
222
|
-
pointOfSale: z.ZodOptional<z.ZodType<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
223
|
-
type: z.ZodLiteral<"distance">;
|
|
224
|
-
settings: z.ZodObject<{
|
|
225
|
-
min: z.ZodCoercedNumber<unknown>;
|
|
226
|
-
max: z.ZodCoercedNumber<unknown>;
|
|
227
|
-
}, z.core.$strip>;
|
|
228
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
229
|
-
amount: z.ZodDefault<z.ZodString>;
|
|
230
|
-
netAmount: z.ZodString;
|
|
231
|
-
taxAmount: z.ZodString;
|
|
232
|
-
taxRate: z.ZodCoercedNumber<unknown>;
|
|
233
|
-
createdAt: z.ZodString;
|
|
234
|
-
updatedAt: z.ZodString;
|
|
235
|
-
id: z.ZodString;
|
|
236
|
-
pointOfSale: z.ZodOptional<z.ZodType<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
237
|
-
type: z.ZodLiteral<"postal_code">;
|
|
238
|
-
settings: z.ZodObject<{
|
|
239
|
-
values: z.ZodArray<z.ZodString>;
|
|
240
|
-
}, z.core.$strip>;
|
|
241
|
-
}, z.core.$strip>], "type">;
|
|
242
|
-
readonly paginationDefaultEnabled = true;
|
|
243
|
-
constructor(options?: {
|
|
244
|
-
query?: DeliveryFeesQueryParams;
|
|
245
|
-
});
|
|
246
|
-
getPath(): string;
|
|
247
|
-
}
|
|
248
|
-
//# sourceMappingURL=GetDeliveryFees.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetDeliveryFees.d.ts","sourceRoot":"","sources":["../../../src/requests/delivery_fees/GetDeliveryFees.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAE5D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAEL,uBAAuB,EAExB,MAAM,cAAc,CAAA;AAErB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA0B,CAAA;AACjE,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAEnF,eAAO,MAAM,0BAA0B,gBAAgB,CAAA;AACvD,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAE7E,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAmD,CAAA;AAC7F,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAA;AAEnF,qBAAa,eAAgB,SAAQ,kBAAkB,CACrD,OAAO,0BAA0B,EACjC,OAAO,6BAA6B,EACpC,0BAA0B,CAC3B;IACC,QAAQ,CAAC,MAAM,EAAG,KAAK,CAAS;IAChC,QAAQ,CAAC,WAAW,EAAG,kBAAkB,CAAS;IAClD,QAAQ,CAAC,MAAM,EAAG,kBAAkB,CAAS;IAE7C,QAAQ,CAAC,WAAW,iBAA6B;IACjD,QAAQ,CAAC,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAAgC;IACrD,QAAQ,CAAC,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAA6B;IACjD,QAAQ,CAAC,aAAa,YAAY;IAElC,QAAQ,CAAC,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAA4B;IACnD,QAAQ,CAAC,wBAAwB,QAAO;gBAE5B,OAAO,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,uBAAuB,CAAA;KAAE;IAIzD,OAAO,IAAI,MAAM;CAGlB"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { AbstractApiRequest } from '@deliverart/sdk-js-core';
|
|
2
|
-
import { createPaginatedSchema } from '@deliverart/sdk-js-global-types';
|
|
3
|
-
import { z } from 'zod';
|
|
4
|
-
import { deliveryFeeListItemSchema, deliveryFeesQuerySchema, } from '../../models';
|
|
5
|
-
export const getDeliveryFeesQuerySchema = deliveryFeesQuerySchema;
|
|
6
|
-
export const getDeliveryFeesInputSchema = z.undefined();
|
|
7
|
-
export const getDeliveryFeesResponseSchema = createPaginatedSchema(deliveryFeeListItemSchema);
|
|
8
|
-
export class GetDeliveryFees extends AbstractApiRequest {
|
|
9
|
-
constructor(options) {
|
|
10
|
-
super(undefined, options);
|
|
11
|
-
this.method = 'GET';
|
|
12
|
-
this.contentType = 'application/json';
|
|
13
|
-
this.accept = 'application/json';
|
|
14
|
-
this.inputSchema = getDeliveryFeesInputSchema;
|
|
15
|
-
this.outputSchema = getDeliveryFeesResponseSchema;
|
|
16
|
-
this.querySchema = getDeliveryFeesQuerySchema;
|
|
17
|
-
this.headersSchema = undefined;
|
|
18
|
-
this.listItemSchema = deliveryFeeListItemSchema;
|
|
19
|
-
this.paginationDefaultEnabled = true;
|
|
20
|
-
}
|
|
21
|
-
getPath() {
|
|
22
|
-
return '/delivery_fees';
|
|
23
|
-
}
|
|
24
|
-
}
|
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
import { AbstractApiRequest } from '@deliverart/sdk-js-core';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
import { DeliveryFeesQueryParams } from '../../models';
|
|
4
|
-
export declare const getDeliveryFeesFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
5
|
-
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
6
|
-
asc: "asc";
|
|
7
|
-
desc: "desc";
|
|
8
|
-
}>>;
|
|
9
|
-
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
10
|
-
asc: "asc";
|
|
11
|
-
desc: "desc";
|
|
12
|
-
}>>;
|
|
13
|
-
'order[amount]': z.ZodOptional<z.ZodEnum<{
|
|
14
|
-
asc: "asc";
|
|
15
|
-
desc: "desc";
|
|
16
|
-
}>>;
|
|
17
|
-
'order[type]': z.ZodOptional<z.ZodEnum<{
|
|
18
|
-
asc: "asc";
|
|
19
|
-
desc: "desc";
|
|
20
|
-
}>>;
|
|
21
|
-
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
22
|
-
amount: "amount";
|
|
23
|
-
distance: "distance";
|
|
24
|
-
postal_code: "postal_code";
|
|
25
|
-
}>, z.ZodArray<z.ZodEnum<{
|
|
26
|
-
amount: "amount";
|
|
27
|
-
distance: "distance";
|
|
28
|
-
postal_code: "postal_code";
|
|
29
|
-
}>>]>>;
|
|
30
|
-
'amount[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
31
|
-
'amount[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
32
|
-
'amount[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
33
|
-
'amount[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
34
|
-
'amount[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
35
|
-
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
36
|
-
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
37
|
-
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
38
|
-
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
39
|
-
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
40
|
-
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
41
|
-
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
42
|
-
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
43
|
-
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
44
|
-
}, z.core.$strip>;
|
|
45
|
-
export type GetDeliveryFeesFromPointOfSaleQueryParams = z.infer<typeof getDeliveryFeesFromPointOfSaleQuerySchema>;
|
|
46
|
-
export declare const getDeliveryFeesFromPointOfSaleInputSchema: z.ZodUndefined;
|
|
47
|
-
export type GetDeliveryFeesFromPointOfSaleInput = z.infer<typeof getDeliveryFeesFromPointOfSaleInputSchema>;
|
|
48
|
-
export declare const getDeliveryFeesFromPointOfSaleResponseSchema: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
49
|
-
amount: z.ZodDefault<z.ZodString>;
|
|
50
|
-
netAmount: z.ZodString;
|
|
51
|
-
taxAmount: z.ZodString;
|
|
52
|
-
taxRate: z.ZodCoercedNumber<unknown>;
|
|
53
|
-
createdAt: z.ZodString;
|
|
54
|
-
updatedAt: z.ZodString;
|
|
55
|
-
id: z.ZodString;
|
|
56
|
-
pointOfSale: z.ZodOptional<z.ZodType<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
57
|
-
type: z.ZodLiteral<"amount">;
|
|
58
|
-
settings: z.ZodObject<{
|
|
59
|
-
min: z.ZodCoercedNumber<unknown>;
|
|
60
|
-
max: z.ZodCoercedNumber<unknown>;
|
|
61
|
-
}, z.core.$strip>;
|
|
62
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
63
|
-
amount: z.ZodDefault<z.ZodString>;
|
|
64
|
-
netAmount: z.ZodString;
|
|
65
|
-
taxAmount: z.ZodString;
|
|
66
|
-
taxRate: z.ZodCoercedNumber<unknown>;
|
|
67
|
-
createdAt: z.ZodString;
|
|
68
|
-
updatedAt: z.ZodString;
|
|
69
|
-
id: z.ZodString;
|
|
70
|
-
pointOfSale: z.ZodOptional<z.ZodType<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
71
|
-
type: z.ZodLiteral<"distance">;
|
|
72
|
-
settings: z.ZodObject<{
|
|
73
|
-
min: z.ZodCoercedNumber<unknown>;
|
|
74
|
-
max: z.ZodCoercedNumber<unknown>;
|
|
75
|
-
}, z.core.$strip>;
|
|
76
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
77
|
-
amount: z.ZodDefault<z.ZodString>;
|
|
78
|
-
netAmount: z.ZodString;
|
|
79
|
-
taxAmount: z.ZodString;
|
|
80
|
-
taxRate: z.ZodCoercedNumber<unknown>;
|
|
81
|
-
createdAt: z.ZodString;
|
|
82
|
-
updatedAt: z.ZodString;
|
|
83
|
-
id: z.ZodString;
|
|
84
|
-
pointOfSale: z.ZodOptional<z.ZodType<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
85
|
-
type: z.ZodLiteral<"postal_code">;
|
|
86
|
-
settings: z.ZodObject<{
|
|
87
|
-
values: z.ZodArray<z.ZodString>;
|
|
88
|
-
}, z.core.$strip>;
|
|
89
|
-
}, z.core.$strip>], "type">>;
|
|
90
|
-
export type GetDeliveryFeesFromPointOfSaleResponse = z.infer<typeof getDeliveryFeesFromPointOfSaleResponseSchema>;
|
|
91
|
-
export declare class GetDeliveryFeesFromPointOfSale extends AbstractApiRequest<typeof getDeliveryFeesFromPointOfSaleInputSchema, typeof getDeliveryFeesFromPointOfSaleResponseSchema, GetDeliveryFeesFromPointOfSaleQueryParams> {
|
|
92
|
-
readonly method: "GET";
|
|
93
|
-
readonly contentType: "application/json";
|
|
94
|
-
readonly accept: "application/json";
|
|
95
|
-
readonly inputSchema: z.ZodUndefined;
|
|
96
|
-
readonly outputSchema: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
97
|
-
amount: z.ZodDefault<z.ZodString>;
|
|
98
|
-
netAmount: z.ZodString;
|
|
99
|
-
taxAmount: z.ZodString;
|
|
100
|
-
taxRate: z.ZodCoercedNumber<unknown>;
|
|
101
|
-
createdAt: z.ZodString;
|
|
102
|
-
updatedAt: z.ZodString;
|
|
103
|
-
id: z.ZodString;
|
|
104
|
-
pointOfSale: z.ZodOptional<z.ZodType<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
105
|
-
type: z.ZodLiteral<"amount">;
|
|
106
|
-
settings: z.ZodObject<{
|
|
107
|
-
min: z.ZodCoercedNumber<unknown>;
|
|
108
|
-
max: z.ZodCoercedNumber<unknown>;
|
|
109
|
-
}, z.core.$strip>;
|
|
110
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
111
|
-
amount: z.ZodDefault<z.ZodString>;
|
|
112
|
-
netAmount: z.ZodString;
|
|
113
|
-
taxAmount: z.ZodString;
|
|
114
|
-
taxRate: z.ZodCoercedNumber<unknown>;
|
|
115
|
-
createdAt: z.ZodString;
|
|
116
|
-
updatedAt: z.ZodString;
|
|
117
|
-
id: z.ZodString;
|
|
118
|
-
pointOfSale: z.ZodOptional<z.ZodType<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
119
|
-
type: z.ZodLiteral<"distance">;
|
|
120
|
-
settings: z.ZodObject<{
|
|
121
|
-
min: z.ZodCoercedNumber<unknown>;
|
|
122
|
-
max: z.ZodCoercedNumber<unknown>;
|
|
123
|
-
}, z.core.$strip>;
|
|
124
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
125
|
-
amount: z.ZodDefault<z.ZodString>;
|
|
126
|
-
netAmount: z.ZodString;
|
|
127
|
-
taxAmount: z.ZodString;
|
|
128
|
-
taxRate: z.ZodCoercedNumber<unknown>;
|
|
129
|
-
createdAt: z.ZodString;
|
|
130
|
-
updatedAt: z.ZodString;
|
|
131
|
-
id: z.ZodString;
|
|
132
|
-
pointOfSale: z.ZodOptional<z.ZodType<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
133
|
-
type: z.ZodLiteral<"postal_code">;
|
|
134
|
-
settings: z.ZodObject<{
|
|
135
|
-
values: z.ZodArray<z.ZodString>;
|
|
136
|
-
}, z.core.$strip>;
|
|
137
|
-
}, z.core.$strip>], "type">>;
|
|
138
|
-
readonly querySchema: z.ZodObject<{
|
|
139
|
-
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
140
|
-
asc: "asc";
|
|
141
|
-
desc: "desc";
|
|
142
|
-
}>>;
|
|
143
|
-
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
144
|
-
asc: "asc";
|
|
145
|
-
desc: "desc";
|
|
146
|
-
}>>;
|
|
147
|
-
'order[amount]': z.ZodOptional<z.ZodEnum<{
|
|
148
|
-
asc: "asc";
|
|
149
|
-
desc: "desc";
|
|
150
|
-
}>>;
|
|
151
|
-
'order[type]': z.ZodOptional<z.ZodEnum<{
|
|
152
|
-
asc: "asc";
|
|
153
|
-
desc: "desc";
|
|
154
|
-
}>>;
|
|
155
|
-
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
156
|
-
amount: "amount";
|
|
157
|
-
distance: "distance";
|
|
158
|
-
postal_code: "postal_code";
|
|
159
|
-
}>, z.ZodArray<z.ZodEnum<{
|
|
160
|
-
amount: "amount";
|
|
161
|
-
distance: "distance";
|
|
162
|
-
postal_code: "postal_code";
|
|
163
|
-
}>>]>>;
|
|
164
|
-
'amount[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
165
|
-
'amount[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
166
|
-
'amount[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
167
|
-
'amount[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
168
|
-
'amount[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
169
|
-
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
170
|
-
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
171
|
-
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
172
|
-
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
173
|
-
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
174
|
-
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
175
|
-
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
176
|
-
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
177
|
-
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
178
|
-
}, z.core.$strip>;
|
|
179
|
-
readonly headersSchema: undefined;
|
|
180
|
-
readonly listItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
181
|
-
amount: z.ZodDefault<z.ZodString>;
|
|
182
|
-
netAmount: z.ZodString;
|
|
183
|
-
taxAmount: z.ZodString;
|
|
184
|
-
taxRate: z.ZodCoercedNumber<unknown>;
|
|
185
|
-
createdAt: z.ZodString;
|
|
186
|
-
updatedAt: z.ZodString;
|
|
187
|
-
id: z.ZodString;
|
|
188
|
-
pointOfSale: z.ZodOptional<z.ZodType<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
189
|
-
type: z.ZodLiteral<"amount">;
|
|
190
|
-
settings: z.ZodObject<{
|
|
191
|
-
min: z.ZodCoercedNumber<unknown>;
|
|
192
|
-
max: z.ZodCoercedNumber<unknown>;
|
|
193
|
-
}, z.core.$strip>;
|
|
194
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
195
|
-
amount: z.ZodDefault<z.ZodString>;
|
|
196
|
-
netAmount: z.ZodString;
|
|
197
|
-
taxAmount: z.ZodString;
|
|
198
|
-
taxRate: z.ZodCoercedNumber<unknown>;
|
|
199
|
-
createdAt: z.ZodString;
|
|
200
|
-
updatedAt: z.ZodString;
|
|
201
|
-
id: z.ZodString;
|
|
202
|
-
pointOfSale: z.ZodOptional<z.ZodType<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
203
|
-
type: z.ZodLiteral<"distance">;
|
|
204
|
-
settings: z.ZodObject<{
|
|
205
|
-
min: z.ZodCoercedNumber<unknown>;
|
|
206
|
-
max: z.ZodCoercedNumber<unknown>;
|
|
207
|
-
}, z.core.$strip>;
|
|
208
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
209
|
-
amount: z.ZodDefault<z.ZodString>;
|
|
210
|
-
netAmount: z.ZodString;
|
|
211
|
-
taxAmount: z.ZodString;
|
|
212
|
-
taxRate: z.ZodCoercedNumber<unknown>;
|
|
213
|
-
createdAt: z.ZodString;
|
|
214
|
-
updatedAt: z.ZodString;
|
|
215
|
-
id: z.ZodString;
|
|
216
|
-
pointOfSale: z.ZodOptional<z.ZodType<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<import("@deliverart/sdk-js-global-types").IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
217
|
-
type: z.ZodLiteral<"postal_code">;
|
|
218
|
-
settings: z.ZodObject<{
|
|
219
|
-
values: z.ZodArray<z.ZodString>;
|
|
220
|
-
}, z.core.$strip>;
|
|
221
|
-
}, z.core.$strip>], "type">;
|
|
222
|
-
readonly paginationDefaultEnabled = false;
|
|
223
|
-
private readonly pointOfSaleId;
|
|
224
|
-
constructor(pointOfSaleId: string, options?: {
|
|
225
|
-
query?: DeliveryFeesQueryParams;
|
|
226
|
-
});
|
|
227
|
-
getPath(): string;
|
|
228
|
-
}
|
|
229
|
-
//# sourceMappingURL=GetDeliveryFeesFromPointOfSale.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetDeliveryFeesFromPointOfSale.d.ts","sourceRoot":"","sources":["../../../src/requests/delivery_fees/GetDeliveryFeesFromPointOfSale.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAC5D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAEL,uBAAuB,EAExB,MAAM,cAAc,CAAA;AAErB,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA0B,CAAA;AAChF,MAAM,MAAM,yCAAyC,GAAG,CAAC,CAAC,KAAK,CAC7D,OAAO,yCAAyC,CACjD,CAAA;AAED,eAAO,MAAM,yCAAyC,gBAAgB,CAAA;AACtE,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,yCAAyC,CACjD,CAAA;AAED,eAAO,MAAM,4CAA4C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAAqC,CAAA;AAC9F,MAAM,MAAM,sCAAsC,GAAG,CAAC,CAAC,KAAK,CAC1D,OAAO,4CAA4C,CACpD,CAAA;AAED,qBAAa,8BAA+B,SAAQ,kBAAkB,CACpE,OAAO,yCAAyC,EAChD,OAAO,4CAA4C,EACnD,yCAAyC,CAC1C;IACC,QAAQ,CAAC,MAAM,EAAG,KAAK,CAAS;IAChC,QAAQ,CAAC,WAAW,EAAG,kBAAkB,CAAS;IAClD,QAAQ,CAAC,MAAM,EAAG,kBAAkB,CAAS;IAE7C,QAAQ,CAAC,WAAW,iBAA4C;IAChE,QAAQ,CAAC,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAA+C;IACpE,QAAQ,CAAC,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAA4C;IAChE,QAAQ,CAAC,aAAa,YAAY;IAElC,QAAQ,CAAC,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAA4B;IACnD,QAAQ,CAAC,wBAAwB,SAAQ;IAEzC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAQ;gBAE1B,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,uBAAuB,CAAA;KAAE;IAKhF,OAAO,IAAI,MAAM;CAGlB"}
|