@deliverart/sdk-js-delivery 2.4.3 → 2.4.5
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/dist/index.cjs +68 -23
- package/dist/index.d.cts +242 -5
- package/dist/index.d.ts +242 -5
- package/dist/index.js +61 -21
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -41,6 +41,7 @@ __export(index_exports, {
|
|
|
41
41
|
StartDelivery: () => StartDelivery,
|
|
42
42
|
StartDeliveryOrder: () => StartDeliveryOrder,
|
|
43
43
|
UpdateDelivery: () => UpdateDelivery,
|
|
44
|
+
UpdateDeliveryFee: () => UpdateDeliveryFee,
|
|
44
45
|
createDeliveryFeeInputSchema: () => createDeliveryFeeInputSchema,
|
|
45
46
|
createDeliveryFeeResponseSchema: () => createDeliveryFeeResponseSchema,
|
|
46
47
|
createDeliveryInputSchema: () => createDeliveryInputSchema,
|
|
@@ -58,6 +59,7 @@ __export(index_exports, {
|
|
|
58
59
|
deliveriesQuerySchema: () => deliveriesQuerySchema,
|
|
59
60
|
deliveryDetailsSchema: () => deliveryDetailsSchema,
|
|
60
61
|
deliveryFeeDetailsSchema: () => deliveryFeeDetailsSchema,
|
|
62
|
+
deliveryFeeListItemSchema: () => deliveryFeeListItemSchema,
|
|
61
63
|
deliveryFeeSchema: () => deliveryFeeSchema,
|
|
62
64
|
deliveryFeeTypeSchema: () => deliveryFeeTypeSchema,
|
|
63
65
|
deliveryFeeTypes: () => deliveryFeeTypes,
|
|
@@ -102,11 +104,14 @@ __export(index_exports, {
|
|
|
102
104
|
startDeliveryOrderInputSchema: () => startDeliveryOrderInputSchema,
|
|
103
105
|
startDeliveryOrderResponseSchema: () => startDeliveryOrderResponseSchema,
|
|
104
106
|
startDeliveryResponseSchema: () => startDeliveryResponseSchema,
|
|
107
|
+
updateDeliveryFeeInputSchema: () => updateDeliveryFeeInputSchema,
|
|
108
|
+
updateDeliveryFeeResponseSchema: () => updateDeliveryFeeResponseSchema,
|
|
105
109
|
updateDeliveryInputSchema: () => updateDeliveryInputSchema,
|
|
106
110
|
updateDeliveryResponseSchema: () => updateDeliveryResponseSchema,
|
|
107
|
-
|
|
111
|
+
writableCreateDeliveryFeeSchema: () => writableCreateDeliveryFeeSchema,
|
|
108
112
|
writableDeliveryPositionSchema: () => writableDeliveryPositionSchema,
|
|
109
|
-
writableDeliverySchema: () => writableDeliverySchema
|
|
113
|
+
writableDeliverySchema: () => writableDeliverySchema,
|
|
114
|
+
writableUpdateDeliveryFeeSchema: () => writableUpdateDeliveryFeeSchema
|
|
110
115
|
});
|
|
111
116
|
module.exports = __toCommonJS(index_exports);
|
|
112
117
|
|
|
@@ -11355,13 +11360,23 @@ var writableDeliveryFeeBase = external_exports.object({
|
|
|
11355
11360
|
}),
|
|
11356
11361
|
taxRate: external_exports.coerce.number().min(0, "tax_rate_must_be_gte_0")
|
|
11357
11362
|
});
|
|
11358
|
-
var
|
|
11363
|
+
var makeWritableCreateDeliveryFeeVariant = (t) => writableDeliveryFeeBase.extend({
|
|
11359
11364
|
type: external_exports.literal(t),
|
|
11360
11365
|
settings: settingsByType[t]
|
|
11361
11366
|
});
|
|
11362
|
-
var
|
|
11367
|
+
var writableCreateDeliveryFeeSchema = external_exports.discriminatedUnion(
|
|
11363
11368
|
"type",
|
|
11364
|
-
deliveryFeeTypes.map((t) =>
|
|
11369
|
+
deliveryFeeTypes.map((t) => makeWritableCreateDeliveryFeeVariant(t))
|
|
11370
|
+
);
|
|
11371
|
+
var makeWritableUpdateDeliveryFeeVariant = (t) => writableDeliveryFeeBase.omit({
|
|
11372
|
+
pointOfSale: true
|
|
11373
|
+
}).extend({
|
|
11374
|
+
type: external_exports.literal(t),
|
|
11375
|
+
settings: settingsByType[t]
|
|
11376
|
+
}).partial();
|
|
11377
|
+
var writableUpdateDeliveryFeeSchema = external_exports.discriminatedUnion(
|
|
11378
|
+
"type",
|
|
11379
|
+
deliveryFeeTypes.map((t) => makeWritableUpdateDeliveryFeeVariant(t))
|
|
11365
11380
|
);
|
|
11366
11381
|
var detailsDeliveryFeeBase = commonDeliveryFeeFields.extend({
|
|
11367
11382
|
id: external_exports.string(),
|
|
@@ -11375,6 +11390,10 @@ var deliveryFeeDetailsSchema = external_exports.discriminatedUnion(
|
|
|
11375
11390
|
"type",
|
|
11376
11391
|
deliveryFeeTypes.map((t) => makeDetailsDeliveryFeeVariant(t))
|
|
11377
11392
|
);
|
|
11393
|
+
var deliveryFeeListItemSchema = external_exports.discriminatedUnion(
|
|
11394
|
+
"type",
|
|
11395
|
+
deliveryFeeTypes.map((t) => makeDetailsDeliveryFeeVariant(t))
|
|
11396
|
+
);
|
|
11378
11397
|
var deliveriesQuerySchema = external_exports.object({
|
|
11379
11398
|
"bundle.id": external_exports.union([external_exports.string(), external_exports.array(external_exports.string())]).optional(),
|
|
11380
11399
|
// exists
|
|
@@ -11672,7 +11691,7 @@ var UpdateDelivery = class extends import_sdk_js_core11.AbstractApiRequest {
|
|
|
11672
11691
|
|
|
11673
11692
|
// src/requests/delivery_fees/CreateDeliveryFee.ts
|
|
11674
11693
|
var import_sdk_js_core12 = require("@deliverart/sdk-js-core");
|
|
11675
|
-
var createDeliveryFeeInputSchema =
|
|
11694
|
+
var createDeliveryFeeInputSchema = writableCreateDeliveryFeeSchema;
|
|
11676
11695
|
var createDeliveryFeeResponseSchema = deliveryFeeDetailsSchema;
|
|
11677
11696
|
var CreateDeliveryFee = class extends import_sdk_js_core12.AbstractApiRequest {
|
|
11678
11697
|
constructor(input) {
|
|
@@ -11738,7 +11757,7 @@ var import_sdk_js_core15 = require("@deliverart/sdk-js-core");
|
|
|
11738
11757
|
var import_sdk_js_global_types7 = require("@deliverart/sdk-js-global-types");
|
|
11739
11758
|
var getDeliveryFeesQuerySchema = deliveryFeesQuerySchema;
|
|
11740
11759
|
var getDeliveryFeesInputSchema = external_exports.undefined();
|
|
11741
|
-
var getDeliveryFeesResponseSchema = (0, import_sdk_js_global_types7.createPaginatedSchema)(
|
|
11760
|
+
var getDeliveryFeesResponseSchema = (0, import_sdk_js_global_types7.createPaginatedSchema)(deliveryFeeListItemSchema);
|
|
11742
11761
|
var GetDeliveryFees = class extends import_sdk_js_core15.AbstractApiRequest {
|
|
11743
11762
|
constructor(options) {
|
|
11744
11763
|
super(void 0, options);
|
|
@@ -11751,10 +11770,10 @@ var GetDeliveryFees = class extends import_sdk_js_core15.AbstractApiRequest {
|
|
|
11751
11770
|
this.headersSchema = void 0;
|
|
11752
11771
|
}
|
|
11753
11772
|
getPath() {
|
|
11754
|
-
return "/
|
|
11773
|
+
return "/delivery_fees";
|
|
11755
11774
|
}
|
|
11756
11775
|
parseResponse(data, rawResponse) {
|
|
11757
|
-
const deliveryFees = external_exports.array(
|
|
11776
|
+
const deliveryFees = external_exports.array(deliveryFeeListItemSchema).parse(data);
|
|
11758
11777
|
return this.validateOutput({
|
|
11759
11778
|
data: deliveryFees,
|
|
11760
11779
|
pagination: (0, import_sdk_js_global_types7.responseToPagination)(rawResponse)
|
|
@@ -11766,7 +11785,7 @@ var GetDeliveryFees = class extends import_sdk_js_core15.AbstractApiRequest {
|
|
|
11766
11785
|
var import_sdk_js_core16 = require("@deliverart/sdk-js-core");
|
|
11767
11786
|
var getDeliveryFeesFromPointOfSaleQuerySchema = deliveryFeesQuerySchema;
|
|
11768
11787
|
var getDeliveryFeesFromPointOfSaleInputSchema = external_exports.undefined();
|
|
11769
|
-
var getDeliveryFeesFromPointOfSaleResponseSchema = external_exports.array(
|
|
11788
|
+
var getDeliveryFeesFromPointOfSaleResponseSchema = external_exports.array(deliveryFeeListItemSchema);
|
|
11770
11789
|
var GetDeliveryFeesFromPointOfSale = class extends import_sdk_js_core16.AbstractApiRequest {
|
|
11771
11790
|
constructor(pointOfSaleId, options) {
|
|
11772
11791
|
super(void 0, options);
|
|
@@ -11783,15 +11802,36 @@ var GetDeliveryFeesFromPointOfSale = class extends import_sdk_js_core16.Abstract
|
|
|
11783
11802
|
return `/point_of_sales/${this.pointOfSaleId}/delivery_fees`;
|
|
11784
11803
|
}
|
|
11785
11804
|
parseResponse(data) {
|
|
11786
|
-
return external_exports.array(
|
|
11805
|
+
return external_exports.array(deliveryFeeListItemSchema).parse(data);
|
|
11787
11806
|
}
|
|
11788
11807
|
};
|
|
11789
11808
|
|
|
11790
|
-
// src/requests/
|
|
11809
|
+
// src/requests/delivery_fees/UpdateDeliveryFee.ts
|
|
11791
11810
|
var import_sdk_js_core17 = require("@deliverart/sdk-js-core");
|
|
11811
|
+
var updateDeliveryFeeInputSchema = writableUpdateDeliveryFeeSchema;
|
|
11812
|
+
var updateDeliveryFeeResponseSchema = deliveryFeeDetailsSchema;
|
|
11813
|
+
var UpdateDeliveryFee = class extends import_sdk_js_core17.AbstractApiRequest {
|
|
11814
|
+
constructor(deliveryFeeId, input) {
|
|
11815
|
+
super(input);
|
|
11816
|
+
this.method = "PATCH";
|
|
11817
|
+
this.contentType = "application/merge-patch+json";
|
|
11818
|
+
this.accept = "application/json";
|
|
11819
|
+
this.inputSchema = updateDeliveryFeeInputSchema;
|
|
11820
|
+
this.outputSchema = updateDeliveryFeeResponseSchema;
|
|
11821
|
+
this.querySchema = void 0;
|
|
11822
|
+
this.headersSchema = void 0;
|
|
11823
|
+
this.deliveryFeeId = deliveryFeeId;
|
|
11824
|
+
}
|
|
11825
|
+
getPath() {
|
|
11826
|
+
return `/delivery_fees/${this.deliveryFeeId}`;
|
|
11827
|
+
}
|
|
11828
|
+
};
|
|
11829
|
+
|
|
11830
|
+
// src/requests/delivery_positions/CreateDeliveryPosition.ts
|
|
11831
|
+
var import_sdk_js_core18 = require("@deliverart/sdk-js-core");
|
|
11792
11832
|
var createDeliveryPositionInputSchema = writableDeliveryPositionSchema.required();
|
|
11793
11833
|
var createDeliveryPositionResponseSchema = deliveryPositionDetailsSchema;
|
|
11794
|
-
var CreateDeliveryPosition = class extends
|
|
11834
|
+
var CreateDeliveryPosition = class extends import_sdk_js_core18.AbstractApiRequest {
|
|
11795
11835
|
constructor(input) {
|
|
11796
11836
|
super(input);
|
|
11797
11837
|
this.method = "POST";
|
|
@@ -11808,11 +11848,11 @@ var CreateDeliveryPosition = class extends import_sdk_js_core17.AbstractApiReque
|
|
|
11808
11848
|
};
|
|
11809
11849
|
|
|
11810
11850
|
// src/requests/delivery_positions/DeleteDeliveryPosition.ts
|
|
11811
|
-
var
|
|
11851
|
+
var import_sdk_js_core19 = require("@deliverart/sdk-js-core");
|
|
11812
11852
|
var import_sdk_js_global_types8 = require("@deliverart/sdk-js-global-types");
|
|
11813
11853
|
var deleteDeliveryPositionInputSchema = external_exports.undefined();
|
|
11814
11854
|
var deleteDeliveryPositionResponseSchema = import_sdk_js_global_types8.emptyResponseSchema;
|
|
11815
|
-
var DeleteDeliveryPosition = class extends
|
|
11855
|
+
var DeleteDeliveryPosition = class extends import_sdk_js_core19.AbstractApiRequest {
|
|
11816
11856
|
constructor(deliveryPositionId) {
|
|
11817
11857
|
super(void 0);
|
|
11818
11858
|
this.method = "DELETE";
|
|
@@ -11830,10 +11870,10 @@ var DeleteDeliveryPosition = class extends import_sdk_js_core18.AbstractApiReque
|
|
|
11830
11870
|
};
|
|
11831
11871
|
|
|
11832
11872
|
// src/requests/delivery_positions/GetDeliveryPositionDetails.ts
|
|
11833
|
-
var
|
|
11873
|
+
var import_sdk_js_core20 = require("@deliverart/sdk-js-core");
|
|
11834
11874
|
var getDeliveryPositionDetailsInputSchema = external_exports.undefined();
|
|
11835
11875
|
var getDeliveryPositionDetailsResponseSchema = deliveryPositionDetailsSchema;
|
|
11836
|
-
var GetDeliveryPositionDetails = class extends
|
|
11876
|
+
var GetDeliveryPositionDetails = class extends import_sdk_js_core20.AbstractApiRequest {
|
|
11837
11877
|
constructor(deliveryPositionId) {
|
|
11838
11878
|
super(void 0);
|
|
11839
11879
|
this.method = "GET";
|
|
@@ -11851,12 +11891,12 @@ var GetDeliveryPositionDetails = class extends import_sdk_js_core19.AbstractApiR
|
|
|
11851
11891
|
};
|
|
11852
11892
|
|
|
11853
11893
|
// src/requests/delivery_positions/GetDeliveryPositions.ts
|
|
11854
|
-
var
|
|
11894
|
+
var import_sdk_js_core21 = require("@deliverart/sdk-js-core");
|
|
11855
11895
|
var import_sdk_js_global_types9 = require("@deliverart/sdk-js-global-types");
|
|
11856
11896
|
var getDeliveryPositionsQuerySchema = deliveryPositionsQuerySchema;
|
|
11857
11897
|
var getDeliveryPositionsInputSchema = external_exports.undefined();
|
|
11858
11898
|
var getDeliveryPositionsResponseSchema = (0, import_sdk_js_global_types9.createPaginatedSchema)(deliveryPositionSchema);
|
|
11859
|
-
var GetDeliveryPositions = class extends
|
|
11899
|
+
var GetDeliveryPositions = class extends import_sdk_js_core21.AbstractApiRequest {
|
|
11860
11900
|
constructor(options) {
|
|
11861
11901
|
super(void 0, options);
|
|
11862
11902
|
this.method = "GET";
|
|
@@ -11880,11 +11920,11 @@ var GetDeliveryPositions = class extends import_sdk_js_core20.AbstractApiRequest
|
|
|
11880
11920
|
};
|
|
11881
11921
|
|
|
11882
11922
|
// src/requests/delivery_positions/GetDeliveryPositionsFromDelivery.ts
|
|
11883
|
-
var
|
|
11923
|
+
var import_sdk_js_core22 = require("@deliverart/sdk-js-core");
|
|
11884
11924
|
var getDeliveryPositionsFromDeliveryQuerySchema = deliveryPositionsQuerySchema;
|
|
11885
11925
|
var getDeliveryPositionsFromDeliveryInputSchema = external_exports.undefined();
|
|
11886
11926
|
var getDeliveryPositionsFromDeliveryResponseSchema = external_exports.array(deliveryPositionSchema);
|
|
11887
|
-
var GetDeliveryPositionsFromDelivery = class extends
|
|
11927
|
+
var GetDeliveryPositionsFromDelivery = class extends import_sdk_js_core22.AbstractApiRequest {
|
|
11888
11928
|
constructor(deliveryId, options) {
|
|
11889
11929
|
super(void 0, options);
|
|
11890
11930
|
this.method = "GET";
|
|
@@ -11926,6 +11966,7 @@ var GetDeliveryPositionsFromDelivery = class extends import_sdk_js_core21.Abstra
|
|
|
11926
11966
|
StartDelivery,
|
|
11927
11967
|
StartDeliveryOrder,
|
|
11928
11968
|
UpdateDelivery,
|
|
11969
|
+
UpdateDeliveryFee,
|
|
11929
11970
|
createDeliveryFeeInputSchema,
|
|
11930
11971
|
createDeliveryFeeResponseSchema,
|
|
11931
11972
|
createDeliveryInputSchema,
|
|
@@ -11943,6 +11984,7 @@ var GetDeliveryPositionsFromDelivery = class extends import_sdk_js_core21.Abstra
|
|
|
11943
11984
|
deliveriesQuerySchema,
|
|
11944
11985
|
deliveryDetailsSchema,
|
|
11945
11986
|
deliveryFeeDetailsSchema,
|
|
11987
|
+
deliveryFeeListItemSchema,
|
|
11946
11988
|
deliveryFeeSchema,
|
|
11947
11989
|
deliveryFeeTypeSchema,
|
|
11948
11990
|
deliveryFeeTypes,
|
|
@@ -11987,9 +12029,12 @@ var GetDeliveryPositionsFromDelivery = class extends import_sdk_js_core21.Abstra
|
|
|
11987
12029
|
startDeliveryOrderInputSchema,
|
|
11988
12030
|
startDeliveryOrderResponseSchema,
|
|
11989
12031
|
startDeliveryResponseSchema,
|
|
12032
|
+
updateDeliveryFeeInputSchema,
|
|
12033
|
+
updateDeliveryFeeResponseSchema,
|
|
11990
12034
|
updateDeliveryInputSchema,
|
|
11991
12035
|
updateDeliveryResponseSchema,
|
|
11992
|
-
|
|
12036
|
+
writableCreateDeliveryFeeSchema,
|
|
11993
12037
|
writableDeliveryPositionSchema,
|
|
11994
|
-
writableDeliverySchema
|
|
12038
|
+
writableDeliverySchema,
|
|
12039
|
+
writableUpdateDeliveryFeeSchema
|
|
11995
12040
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -99,7 +99,7 @@ declare const deliveryFeeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
99
99
|
}, z.core.$strip>;
|
|
100
100
|
}, z.core.$strip>]>;
|
|
101
101
|
type DeliveryFee = z.infer<typeof deliveryFeeSchema>;
|
|
102
|
-
declare const
|
|
102
|
+
declare const writableCreateDeliveryFeeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
103
103
|
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
104
104
|
amount: z.ZodDefault<z.ZodString>;
|
|
105
105
|
taxRate: z.ZodCoercedNumber<unknown>;
|
|
@@ -126,7 +126,32 @@ declare const writableDeliveryFeeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
126
126
|
values: z.ZodArray<z.ZodString>;
|
|
127
127
|
}, z.core.$strip>;
|
|
128
128
|
}, z.core.$strip>]>;
|
|
129
|
-
type
|
|
129
|
+
type WritableCreateDeliveryFee = z.infer<typeof writableCreateDeliveryFeeSchema>;
|
|
130
|
+
declare const writableUpdateDeliveryFeeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
131
|
+
amount: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
132
|
+
taxRate: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
133
|
+
type: z.ZodOptional<z.ZodLiteral<"amount">>;
|
|
134
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
135
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
136
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
137
|
+
}, z.core.$strip>>;
|
|
138
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
139
|
+
amount: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
140
|
+
taxRate: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
141
|
+
type: z.ZodOptional<z.ZodLiteral<"distance">>;
|
|
142
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
143
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
144
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
145
|
+
}, z.core.$strip>>;
|
|
146
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
147
|
+
amount: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
148
|
+
taxRate: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
149
|
+
type: z.ZodOptional<z.ZodLiteral<"postal_code">>;
|
|
150
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
151
|
+
values: z.ZodArray<z.ZodString>;
|
|
152
|
+
}, z.core.$strip>>;
|
|
153
|
+
}, z.core.$strip>]>;
|
|
154
|
+
type WritableUpdateDeliveryFee = z.infer<typeof writableUpdateDeliveryFeeSchema>;
|
|
130
155
|
declare const deliveryFeeDetailsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
131
156
|
amount: z.ZodDefault<z.ZodString>;
|
|
132
157
|
netAmount: z.ZodString;
|
|
@@ -170,6 +195,49 @@ declare const deliveryFeeDetailsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
170
195
|
}, z.core.$strip>;
|
|
171
196
|
}, z.core.$strip>]>;
|
|
172
197
|
type DeliveryFeeDetails = z.infer<typeof deliveryFeeDetailsSchema>;
|
|
198
|
+
declare const deliveryFeeListItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
199
|
+
amount: z.ZodDefault<z.ZodString>;
|
|
200
|
+
netAmount: z.ZodString;
|
|
201
|
+
taxAmount: z.ZodString;
|
|
202
|
+
taxRate: z.ZodCoercedNumber<unknown>;
|
|
203
|
+
createdAt: z.ZodString;
|
|
204
|
+
updatedAt: z.ZodString;
|
|
205
|
+
id: z.ZodString;
|
|
206
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
207
|
+
type: z.ZodLiteral<"amount">;
|
|
208
|
+
settings: z.ZodObject<{
|
|
209
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
210
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
211
|
+
}, z.core.$strip>;
|
|
212
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
213
|
+
amount: z.ZodDefault<z.ZodString>;
|
|
214
|
+
netAmount: z.ZodString;
|
|
215
|
+
taxAmount: z.ZodString;
|
|
216
|
+
taxRate: z.ZodCoercedNumber<unknown>;
|
|
217
|
+
createdAt: z.ZodString;
|
|
218
|
+
updatedAt: z.ZodString;
|
|
219
|
+
id: z.ZodString;
|
|
220
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
221
|
+
type: z.ZodLiteral<"distance">;
|
|
222
|
+
settings: z.ZodObject<{
|
|
223
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
224
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
225
|
+
}, z.core.$strip>;
|
|
226
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
227
|
+
amount: z.ZodDefault<z.ZodString>;
|
|
228
|
+
netAmount: z.ZodString;
|
|
229
|
+
taxAmount: z.ZodString;
|
|
230
|
+
taxRate: z.ZodCoercedNumber<unknown>;
|
|
231
|
+
createdAt: z.ZodString;
|
|
232
|
+
updatedAt: z.ZodString;
|
|
233
|
+
id: z.ZodString;
|
|
234
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
235
|
+
type: z.ZodLiteral<"postal_code">;
|
|
236
|
+
settings: z.ZodObject<{
|
|
237
|
+
values: z.ZodArray<z.ZodString>;
|
|
238
|
+
}, z.core.$strip>;
|
|
239
|
+
}, z.core.$strip>]>;
|
|
240
|
+
type DeliveryFeeListItem = z.infer<typeof deliveryFeeListItemSchema>;
|
|
173
241
|
declare const deliveriesQuerySchema: z.ZodObject<{
|
|
174
242
|
'bundle.id': z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
175
243
|
'exists[startedAt]': z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
@@ -1196,6 +1264,8 @@ declare const getDeliveryFeesResponseSchema: z.ZodObject<{
|
|
|
1196
1264
|
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1197
1265
|
createdAt: z.ZodString;
|
|
1198
1266
|
updatedAt: z.ZodString;
|
|
1267
|
+
id: z.ZodString;
|
|
1268
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1199
1269
|
type: z.ZodLiteral<"amount">;
|
|
1200
1270
|
settings: z.ZodObject<{
|
|
1201
1271
|
min: z.ZodCoercedNumber<unknown>;
|
|
@@ -1208,6 +1278,8 @@ declare const getDeliveryFeesResponseSchema: z.ZodObject<{
|
|
|
1208
1278
|
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1209
1279
|
createdAt: z.ZodString;
|
|
1210
1280
|
updatedAt: z.ZodString;
|
|
1281
|
+
id: z.ZodString;
|
|
1282
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1211
1283
|
type: z.ZodLiteral<"distance">;
|
|
1212
1284
|
settings: z.ZodObject<{
|
|
1213
1285
|
min: z.ZodCoercedNumber<unknown>;
|
|
@@ -1220,6 +1292,8 @@ declare const getDeliveryFeesResponseSchema: z.ZodObject<{
|
|
|
1220
1292
|
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1221
1293
|
createdAt: z.ZodString;
|
|
1222
1294
|
updatedAt: z.ZodString;
|
|
1295
|
+
id: z.ZodString;
|
|
1296
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1223
1297
|
type: z.ZodLiteral<"postal_code">;
|
|
1224
1298
|
settings: z.ZodObject<{
|
|
1225
1299
|
values: z.ZodArray<z.ZodString>;
|
|
@@ -1248,6 +1322,8 @@ declare class GetDeliveryFees extends AbstractApiRequest<typeof getDeliveryFeesI
|
|
|
1248
1322
|
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1249
1323
|
createdAt: z.ZodString;
|
|
1250
1324
|
updatedAt: z.ZodString;
|
|
1325
|
+
id: z.ZodString;
|
|
1326
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1251
1327
|
type: z.ZodLiteral<"amount">;
|
|
1252
1328
|
settings: z.ZodObject<{
|
|
1253
1329
|
min: z.ZodCoercedNumber<unknown>;
|
|
@@ -1260,6 +1336,8 @@ declare class GetDeliveryFees extends AbstractApiRequest<typeof getDeliveryFeesI
|
|
|
1260
1336
|
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1261
1337
|
createdAt: z.ZodString;
|
|
1262
1338
|
updatedAt: z.ZodString;
|
|
1339
|
+
id: z.ZodString;
|
|
1340
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1263
1341
|
type: z.ZodLiteral<"distance">;
|
|
1264
1342
|
settings: z.ZodObject<{
|
|
1265
1343
|
min: z.ZodCoercedNumber<unknown>;
|
|
@@ -1272,6 +1350,8 @@ declare class GetDeliveryFees extends AbstractApiRequest<typeof getDeliveryFeesI
|
|
|
1272
1350
|
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1273
1351
|
createdAt: z.ZodString;
|
|
1274
1352
|
updatedAt: z.ZodString;
|
|
1353
|
+
id: z.ZodString;
|
|
1354
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1275
1355
|
type: z.ZodLiteral<"postal_code">;
|
|
1276
1356
|
settings: z.ZodObject<{
|
|
1277
1357
|
values: z.ZodArray<z.ZodString>;
|
|
@@ -1332,7 +1412,7 @@ declare class GetDeliveryFees extends AbstractApiRequest<typeof getDeliveryFeesI
|
|
|
1332
1412
|
query?: DeliveryFeesQueryParams;
|
|
1333
1413
|
});
|
|
1334
1414
|
getPath(): string;
|
|
1335
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<
|
|
1415
|
+
parseResponse(data: unknown, rawResponse: Response): Paginated<DeliveryFeeListItem>;
|
|
1336
1416
|
}
|
|
1337
1417
|
|
|
1338
1418
|
declare const getDeliveryFeesFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
@@ -1386,6 +1466,8 @@ declare const getDeliveryFeesFromPointOfSaleResponseSchema: z.ZodArray<z.ZodDisc
|
|
|
1386
1466
|
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1387
1467
|
createdAt: z.ZodString;
|
|
1388
1468
|
updatedAt: z.ZodString;
|
|
1469
|
+
id: z.ZodString;
|
|
1470
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1389
1471
|
type: z.ZodLiteral<"amount">;
|
|
1390
1472
|
settings: z.ZodObject<{
|
|
1391
1473
|
min: z.ZodCoercedNumber<unknown>;
|
|
@@ -1398,6 +1480,8 @@ declare const getDeliveryFeesFromPointOfSaleResponseSchema: z.ZodArray<z.ZodDisc
|
|
|
1398
1480
|
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1399
1481
|
createdAt: z.ZodString;
|
|
1400
1482
|
updatedAt: z.ZodString;
|
|
1483
|
+
id: z.ZodString;
|
|
1484
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1401
1485
|
type: z.ZodLiteral<"distance">;
|
|
1402
1486
|
settings: z.ZodObject<{
|
|
1403
1487
|
min: z.ZodCoercedNumber<unknown>;
|
|
@@ -1410,6 +1494,8 @@ declare const getDeliveryFeesFromPointOfSaleResponseSchema: z.ZodArray<z.ZodDisc
|
|
|
1410
1494
|
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1411
1495
|
createdAt: z.ZodString;
|
|
1412
1496
|
updatedAt: z.ZodString;
|
|
1497
|
+
id: z.ZodString;
|
|
1498
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1413
1499
|
type: z.ZodLiteral<"postal_code">;
|
|
1414
1500
|
settings: z.ZodObject<{
|
|
1415
1501
|
values: z.ZodArray<z.ZodString>;
|
|
@@ -1428,6 +1514,8 @@ declare class GetDeliveryFeesFromPointOfSale extends AbstractApiRequest<typeof g
|
|
|
1428
1514
|
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1429
1515
|
createdAt: z.ZodString;
|
|
1430
1516
|
updatedAt: z.ZodString;
|
|
1517
|
+
id: z.ZodString;
|
|
1518
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1431
1519
|
type: z.ZodLiteral<"amount">;
|
|
1432
1520
|
settings: z.ZodObject<{
|
|
1433
1521
|
min: z.ZodCoercedNumber<unknown>;
|
|
@@ -1440,6 +1528,8 @@ declare class GetDeliveryFeesFromPointOfSale extends AbstractApiRequest<typeof g
|
|
|
1440
1528
|
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1441
1529
|
createdAt: z.ZodString;
|
|
1442
1530
|
updatedAt: z.ZodString;
|
|
1531
|
+
id: z.ZodString;
|
|
1532
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1443
1533
|
type: z.ZodLiteral<"distance">;
|
|
1444
1534
|
settings: z.ZodObject<{
|
|
1445
1535
|
min: z.ZodCoercedNumber<unknown>;
|
|
@@ -1452,6 +1542,8 @@ declare class GetDeliveryFeesFromPointOfSale extends AbstractApiRequest<typeof g
|
|
|
1452
1542
|
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1453
1543
|
createdAt: z.ZodString;
|
|
1454
1544
|
updatedAt: z.ZodString;
|
|
1545
|
+
id: z.ZodString;
|
|
1546
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1455
1547
|
type: z.ZodLiteral<"postal_code">;
|
|
1456
1548
|
settings: z.ZodObject<{
|
|
1457
1549
|
values: z.ZodArray<z.ZodString>;
|
|
@@ -1504,7 +1596,152 @@ declare class GetDeliveryFeesFromPointOfSale extends AbstractApiRequest<typeof g
|
|
|
1504
1596
|
query?: DeliveryFeesQueryParams;
|
|
1505
1597
|
});
|
|
1506
1598
|
getPath(): string;
|
|
1507
|
-
parseResponse(data: unknown):
|
|
1599
|
+
parseResponse(data: unknown): DeliveryFeeListItem[];
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1602
|
+
declare const updateDeliveryFeeInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1603
|
+
amount: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
1604
|
+
taxRate: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1605
|
+
type: z.ZodOptional<z.ZodLiteral<"amount">>;
|
|
1606
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
1607
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1608
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1609
|
+
}, z.core.$strip>>;
|
|
1610
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1611
|
+
amount: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
1612
|
+
taxRate: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1613
|
+
type: z.ZodOptional<z.ZodLiteral<"distance">>;
|
|
1614
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
1615
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1616
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1617
|
+
}, z.core.$strip>>;
|
|
1618
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1619
|
+
amount: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
1620
|
+
taxRate: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1621
|
+
type: z.ZodOptional<z.ZodLiteral<"postal_code">>;
|
|
1622
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
1623
|
+
values: z.ZodArray<z.ZodString>;
|
|
1624
|
+
}, z.core.$strip>>;
|
|
1625
|
+
}, z.core.$strip>]>;
|
|
1626
|
+
type UpdateDeliveryFeeInput = z.input<typeof updateDeliveryFeeInputSchema>;
|
|
1627
|
+
declare const updateDeliveryFeeResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1628
|
+
amount: z.ZodDefault<z.ZodString>;
|
|
1629
|
+
netAmount: z.ZodString;
|
|
1630
|
+
taxAmount: z.ZodString;
|
|
1631
|
+
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1632
|
+
createdAt: z.ZodString;
|
|
1633
|
+
updatedAt: z.ZodString;
|
|
1634
|
+
id: z.ZodString;
|
|
1635
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1636
|
+
type: z.ZodLiteral<"amount">;
|
|
1637
|
+
settings: z.ZodObject<{
|
|
1638
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1639
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1640
|
+
}, z.core.$strip>;
|
|
1641
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1642
|
+
amount: z.ZodDefault<z.ZodString>;
|
|
1643
|
+
netAmount: z.ZodString;
|
|
1644
|
+
taxAmount: z.ZodString;
|
|
1645
|
+
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1646
|
+
createdAt: z.ZodString;
|
|
1647
|
+
updatedAt: z.ZodString;
|
|
1648
|
+
id: z.ZodString;
|
|
1649
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1650
|
+
type: z.ZodLiteral<"distance">;
|
|
1651
|
+
settings: z.ZodObject<{
|
|
1652
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1653
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1654
|
+
}, z.core.$strip>;
|
|
1655
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1656
|
+
amount: z.ZodDefault<z.ZodString>;
|
|
1657
|
+
netAmount: z.ZodString;
|
|
1658
|
+
taxAmount: z.ZodString;
|
|
1659
|
+
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1660
|
+
createdAt: z.ZodString;
|
|
1661
|
+
updatedAt: z.ZodString;
|
|
1662
|
+
id: z.ZodString;
|
|
1663
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1664
|
+
type: z.ZodLiteral<"postal_code">;
|
|
1665
|
+
settings: z.ZodObject<{
|
|
1666
|
+
values: z.ZodArray<z.ZodString>;
|
|
1667
|
+
}, z.core.$strip>;
|
|
1668
|
+
}, z.core.$strip>]>;
|
|
1669
|
+
type UpdateDeliveryFeeResponse = z.output<typeof updateDeliveryFeeResponseSchema>;
|
|
1670
|
+
declare class UpdateDeliveryFee extends AbstractApiRequest<typeof updateDeliveryFeeInputSchema, typeof updateDeliveryFeeResponseSchema> {
|
|
1671
|
+
readonly method = "PATCH";
|
|
1672
|
+
readonly contentType = "application/merge-patch+json";
|
|
1673
|
+
readonly accept = "application/json";
|
|
1674
|
+
readonly inputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1675
|
+
amount: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
1676
|
+
taxRate: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1677
|
+
type: z.ZodOptional<z.ZodLiteral<"amount">>;
|
|
1678
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
1679
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1680
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1681
|
+
}, z.core.$strip>>;
|
|
1682
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1683
|
+
amount: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
1684
|
+
taxRate: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1685
|
+
type: z.ZodOptional<z.ZodLiteral<"distance">>;
|
|
1686
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
1687
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1688
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1689
|
+
}, z.core.$strip>>;
|
|
1690
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1691
|
+
amount: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
1692
|
+
taxRate: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1693
|
+
type: z.ZodOptional<z.ZodLiteral<"postal_code">>;
|
|
1694
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
1695
|
+
values: z.ZodArray<z.ZodString>;
|
|
1696
|
+
}, z.core.$strip>>;
|
|
1697
|
+
}, z.core.$strip>]>;
|
|
1698
|
+
readonly outputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1699
|
+
amount: z.ZodDefault<z.ZodString>;
|
|
1700
|
+
netAmount: z.ZodString;
|
|
1701
|
+
taxAmount: z.ZodString;
|
|
1702
|
+
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1703
|
+
createdAt: z.ZodString;
|
|
1704
|
+
updatedAt: z.ZodString;
|
|
1705
|
+
id: z.ZodString;
|
|
1706
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1707
|
+
type: z.ZodLiteral<"amount">;
|
|
1708
|
+
settings: z.ZodObject<{
|
|
1709
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1710
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1711
|
+
}, z.core.$strip>;
|
|
1712
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1713
|
+
amount: z.ZodDefault<z.ZodString>;
|
|
1714
|
+
netAmount: z.ZodString;
|
|
1715
|
+
taxAmount: z.ZodString;
|
|
1716
|
+
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1717
|
+
createdAt: z.ZodString;
|
|
1718
|
+
updatedAt: z.ZodString;
|
|
1719
|
+
id: z.ZodString;
|
|
1720
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1721
|
+
type: z.ZodLiteral<"distance">;
|
|
1722
|
+
settings: z.ZodObject<{
|
|
1723
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1724
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1725
|
+
}, z.core.$strip>;
|
|
1726
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1727
|
+
amount: z.ZodDefault<z.ZodString>;
|
|
1728
|
+
netAmount: z.ZodString;
|
|
1729
|
+
taxAmount: z.ZodString;
|
|
1730
|
+
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1731
|
+
createdAt: z.ZodString;
|
|
1732
|
+
updatedAt: z.ZodString;
|
|
1733
|
+
id: z.ZodString;
|
|
1734
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1735
|
+
type: z.ZodLiteral<"postal_code">;
|
|
1736
|
+
settings: z.ZodObject<{
|
|
1737
|
+
values: z.ZodArray<z.ZodString>;
|
|
1738
|
+
}, z.core.$strip>;
|
|
1739
|
+
}, z.core.$strip>]>;
|
|
1740
|
+
readonly querySchema: undefined;
|
|
1741
|
+
readonly headersSchema: undefined;
|
|
1742
|
+
private readonly deliveryFeeId;
|
|
1743
|
+
constructor(deliveryFeeId: string, input: UpdateDeliveryFeeInput);
|
|
1744
|
+
getPath(): string;
|
|
1508
1745
|
}
|
|
1509
1746
|
|
|
1510
1747
|
declare const createDeliveryPositionInputSchema: z.ZodObject<{
|
|
@@ -1794,4 +2031,4 @@ type DeliveryPositionIri = z.infer<typeof deliveryPositionIriSchema>;
|
|
|
1794
2031
|
declare const deliveryPositionNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/deliveries/positions/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/deliveries/positions/:id"> | null, unknown>>;
|
|
1795
2032
|
type DeliveryPositionNullableIri = z.infer<typeof deliveryPositionNullableIriSchema>;
|
|
1796
2033
|
|
|
1797
|
-
export { CreateDelivery, CreateDeliveryFee, type CreateDeliveryFeeInput, type CreateDeliveryFeeResponse, type CreateDeliveryInput, CreateDeliveryPosition, type CreateDeliveryPositionInput, type CreateDeliveryPositionResponse, type CreateDeliveryResponse, DeleteDelivery, DeleteDeliveryFee, DeleteDeliveryPosition, DeliverCurrentOrder, type DeliverCurrentOrderInput, type DeliverCurrentOrderResponse, type DeliveriesQueryParams, type Delivery, type DeliveryDetails, type DeliveryFee, type DeliveryFeeDetails, type DeliveryFeeType, type DeliveryFeesQueryParams, type DeliveryIri, type DeliveryNullableIri, type DeliveryPosition, type DeliveryPositionDetails, type DeliveryPositionIri, type DeliveryPositionNullableIri, type DeliveryPositionsQueryParams, EndDelivery, type EndDeliveryInput, type EndDeliveryResponse, GetDeliveries, GetDeliveriesFromUser, type GetDeliveriesFromUserInput, type GetDeliveriesFromUserQueryParams, type GetDeliveriesFromUserResponse, type GetDeliveriesInput, type GetDeliveriesQueryParams, type GetDeliveriesResponse, GetDeliveryDetails, GetDeliveryDetailsFromBundle, type GetDeliveryDetailsFromBundleInput, type GetDeliveryDetailsFromBundleResponse, type GetDeliveryDetailsInput, type GetDeliveryDetailsResponse, GetDeliveryFeeDetails, type GetDeliveryFeeDetailsInput, type GetDeliveryFeeDetailsResponse, GetDeliveryFees, GetDeliveryFeesFromPointOfSale, type GetDeliveryFeesFromPointOfSaleInput, type GetDeliveryFeesFromPointOfSaleQueryParams, type GetDeliveryFeesFromPointOfSaleResponse, type GetDeliveryFeesInput, type GetDeliveryFeesQueryParams, type GetDeliveryFeesResponse, GetDeliveryPositionDetails, type GetDeliveryPositionDetailsInput, type GetDeliveryPositionDetailsResponse, GetDeliveryPositions, GetDeliveryPositionsFromDelivery, type GetDeliveryPositionsFromDeliveryInput, type GetDeliveryPositionsFromDeliveryQueryParams, type GetDeliveryPositionsFromDeliveryResponse, type GetDeliveryPositionsInput, type GetDeliveryPositionsQueryParams, type GetDeliveryPositionsResponse, StartDelivery, type StartDeliveryInput, StartDeliveryOrder, type StartDeliveryOrderInput, type StartDeliveryOrderResponse, type StartDeliveryResponse, UpdateDelivery, type UpdateDeliveryInput, type UpdateDeliveryResponse, type
|
|
2034
|
+
export { CreateDelivery, CreateDeliveryFee, type CreateDeliveryFeeInput, type CreateDeliveryFeeResponse, type CreateDeliveryInput, CreateDeliveryPosition, type CreateDeliveryPositionInput, type CreateDeliveryPositionResponse, type CreateDeliveryResponse, DeleteDelivery, DeleteDeliveryFee, DeleteDeliveryPosition, DeliverCurrentOrder, type DeliverCurrentOrderInput, type DeliverCurrentOrderResponse, type DeliveriesQueryParams, type Delivery, type DeliveryDetails, type DeliveryFee, type DeliveryFeeDetails, type DeliveryFeeListItem, type DeliveryFeeType, type DeliveryFeesQueryParams, type DeliveryIri, type DeliveryNullableIri, type DeliveryPosition, type DeliveryPositionDetails, type DeliveryPositionIri, type DeliveryPositionNullableIri, type DeliveryPositionsQueryParams, EndDelivery, type EndDeliveryInput, type EndDeliveryResponse, GetDeliveries, GetDeliveriesFromUser, type GetDeliveriesFromUserInput, type GetDeliveriesFromUserQueryParams, type GetDeliveriesFromUserResponse, type GetDeliveriesInput, type GetDeliveriesQueryParams, type GetDeliveriesResponse, GetDeliveryDetails, GetDeliveryDetailsFromBundle, type GetDeliveryDetailsFromBundleInput, type GetDeliveryDetailsFromBundleResponse, type GetDeliveryDetailsInput, type GetDeliveryDetailsResponse, GetDeliveryFeeDetails, type GetDeliveryFeeDetailsInput, type GetDeliveryFeeDetailsResponse, GetDeliveryFees, GetDeliveryFeesFromPointOfSale, type GetDeliveryFeesFromPointOfSaleInput, type GetDeliveryFeesFromPointOfSaleQueryParams, type GetDeliveryFeesFromPointOfSaleResponse, type GetDeliveryFeesInput, type GetDeliveryFeesQueryParams, type GetDeliveryFeesResponse, GetDeliveryPositionDetails, type GetDeliveryPositionDetailsInput, type GetDeliveryPositionDetailsResponse, GetDeliveryPositions, GetDeliveryPositionsFromDelivery, type GetDeliveryPositionsFromDeliveryInput, type GetDeliveryPositionsFromDeliveryQueryParams, type GetDeliveryPositionsFromDeliveryResponse, type GetDeliveryPositionsInput, type GetDeliveryPositionsQueryParams, type GetDeliveryPositionsResponse, StartDelivery, type StartDeliveryInput, StartDeliveryOrder, type StartDeliveryOrderInput, type StartDeliveryOrderResponse, type StartDeliveryResponse, UpdateDelivery, UpdateDeliveryFee, type UpdateDeliveryFeeInput, type UpdateDeliveryFeeResponse, type UpdateDeliveryInput, type UpdateDeliveryResponse, type WritableCreateDeliveryFee, type WritableDelivery, type WritableDeliveryPosition, type WritableUpdateDeliveryFee, createDeliveryFeeInputSchema, createDeliveryFeeResponseSchema, createDeliveryInputSchema, createDeliveryPositionInputSchema, createDeliveryPositionResponseSchema, createDeliveryResponseSchema, deleteDeliveryFeeInputSchema, deleteDeliveryFeeResponseSchema, deleteDeliveryInputSchema, deleteDeliveryPositionInputSchema, deleteDeliveryPositionResponseSchema, deleteDeliveryResponseSchema, deliverCurrentOrderInputSchema, deliverCurrentOrderResponseSchema, deliveriesQuerySchema, deliveryDetailsSchema, deliveryFeeDetailsSchema, deliveryFeeListItemSchema, deliveryFeeSchema, deliveryFeeTypeSchema, deliveryFeeTypes, deliveryFeesQuerySchema, deliveryIriSchema, deliveryNullableIriSchema, deliveryPositionDetailsSchema, deliveryPositionIriSchema, deliveryPositionNullableIriSchema, deliveryPositionSchema, deliveryPositionsQuerySchema, deliverySchema, endDeliveryInputSchema, endDeliveryResponseSchema, getDeliveriesFromUserInputSchema, getDeliveriesFromUserQuerySchema, getDeliveriesFromUserResponseSchema, getDeliveriesInputSchema, getDeliveriesQuerySchema, getDeliveriesResponseSchema, getDeliveryDetailsFromBundleInputSchema, getDeliveryDetailsFromBundleResponseSchema, getDeliveryDetailsInputSchema, getDeliveryDetailsResponseSchema, getDeliveryFeeDetailsInputSchema, getDeliveryFeeDetailsResponseSchema, getDeliveryFeesFromPointOfSaleInputSchema, getDeliveryFeesFromPointOfSaleQuerySchema, getDeliveryFeesFromPointOfSaleResponseSchema, getDeliveryFeesInputSchema, getDeliveryFeesQuerySchema, getDeliveryFeesResponseSchema, getDeliveryPositionDetailsInputSchema, getDeliveryPositionDetailsResponseSchema, getDeliveryPositionsFromDeliveryInputSchema, getDeliveryPositionsFromDeliveryQuerySchema, getDeliveryPositionsFromDeliveryResponseSchema, getDeliveryPositionsInputSchema, getDeliveryPositionsQuerySchema, getDeliveryPositionsResponseSchema, startDeliveryInputSchema, startDeliveryOrderInputSchema, startDeliveryOrderResponseSchema, startDeliveryResponseSchema, updateDeliveryFeeInputSchema, updateDeliveryFeeResponseSchema, updateDeliveryInputSchema, updateDeliveryResponseSchema, writableCreateDeliveryFeeSchema, writableDeliveryPositionSchema, writableDeliverySchema, writableUpdateDeliveryFeeSchema };
|
package/dist/index.d.ts
CHANGED
|
@@ -99,7 +99,7 @@ declare const deliveryFeeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
99
99
|
}, z.core.$strip>;
|
|
100
100
|
}, z.core.$strip>]>;
|
|
101
101
|
type DeliveryFee = z.infer<typeof deliveryFeeSchema>;
|
|
102
|
-
declare const
|
|
102
|
+
declare const writableCreateDeliveryFeeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
103
103
|
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
104
104
|
amount: z.ZodDefault<z.ZodString>;
|
|
105
105
|
taxRate: z.ZodCoercedNumber<unknown>;
|
|
@@ -126,7 +126,32 @@ declare const writableDeliveryFeeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
126
126
|
values: z.ZodArray<z.ZodString>;
|
|
127
127
|
}, z.core.$strip>;
|
|
128
128
|
}, z.core.$strip>]>;
|
|
129
|
-
type
|
|
129
|
+
type WritableCreateDeliveryFee = z.infer<typeof writableCreateDeliveryFeeSchema>;
|
|
130
|
+
declare const writableUpdateDeliveryFeeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
131
|
+
amount: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
132
|
+
taxRate: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
133
|
+
type: z.ZodOptional<z.ZodLiteral<"amount">>;
|
|
134
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
135
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
136
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
137
|
+
}, z.core.$strip>>;
|
|
138
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
139
|
+
amount: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
140
|
+
taxRate: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
141
|
+
type: z.ZodOptional<z.ZodLiteral<"distance">>;
|
|
142
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
143
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
144
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
145
|
+
}, z.core.$strip>>;
|
|
146
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
147
|
+
amount: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
148
|
+
taxRate: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
149
|
+
type: z.ZodOptional<z.ZodLiteral<"postal_code">>;
|
|
150
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
151
|
+
values: z.ZodArray<z.ZodString>;
|
|
152
|
+
}, z.core.$strip>>;
|
|
153
|
+
}, z.core.$strip>]>;
|
|
154
|
+
type WritableUpdateDeliveryFee = z.infer<typeof writableUpdateDeliveryFeeSchema>;
|
|
130
155
|
declare const deliveryFeeDetailsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
131
156
|
amount: z.ZodDefault<z.ZodString>;
|
|
132
157
|
netAmount: z.ZodString;
|
|
@@ -170,6 +195,49 @@ declare const deliveryFeeDetailsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
170
195
|
}, z.core.$strip>;
|
|
171
196
|
}, z.core.$strip>]>;
|
|
172
197
|
type DeliveryFeeDetails = z.infer<typeof deliveryFeeDetailsSchema>;
|
|
198
|
+
declare const deliveryFeeListItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
199
|
+
amount: z.ZodDefault<z.ZodString>;
|
|
200
|
+
netAmount: z.ZodString;
|
|
201
|
+
taxAmount: z.ZodString;
|
|
202
|
+
taxRate: z.ZodCoercedNumber<unknown>;
|
|
203
|
+
createdAt: z.ZodString;
|
|
204
|
+
updatedAt: z.ZodString;
|
|
205
|
+
id: z.ZodString;
|
|
206
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
207
|
+
type: z.ZodLiteral<"amount">;
|
|
208
|
+
settings: z.ZodObject<{
|
|
209
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
210
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
211
|
+
}, z.core.$strip>;
|
|
212
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
213
|
+
amount: z.ZodDefault<z.ZodString>;
|
|
214
|
+
netAmount: z.ZodString;
|
|
215
|
+
taxAmount: z.ZodString;
|
|
216
|
+
taxRate: z.ZodCoercedNumber<unknown>;
|
|
217
|
+
createdAt: z.ZodString;
|
|
218
|
+
updatedAt: z.ZodString;
|
|
219
|
+
id: z.ZodString;
|
|
220
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
221
|
+
type: z.ZodLiteral<"distance">;
|
|
222
|
+
settings: z.ZodObject<{
|
|
223
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
224
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
225
|
+
}, z.core.$strip>;
|
|
226
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
227
|
+
amount: z.ZodDefault<z.ZodString>;
|
|
228
|
+
netAmount: z.ZodString;
|
|
229
|
+
taxAmount: z.ZodString;
|
|
230
|
+
taxRate: z.ZodCoercedNumber<unknown>;
|
|
231
|
+
createdAt: z.ZodString;
|
|
232
|
+
updatedAt: z.ZodString;
|
|
233
|
+
id: z.ZodString;
|
|
234
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
235
|
+
type: z.ZodLiteral<"postal_code">;
|
|
236
|
+
settings: z.ZodObject<{
|
|
237
|
+
values: z.ZodArray<z.ZodString>;
|
|
238
|
+
}, z.core.$strip>;
|
|
239
|
+
}, z.core.$strip>]>;
|
|
240
|
+
type DeliveryFeeListItem = z.infer<typeof deliveryFeeListItemSchema>;
|
|
173
241
|
declare const deliveriesQuerySchema: z.ZodObject<{
|
|
174
242
|
'bundle.id': z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
175
243
|
'exists[startedAt]': z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
@@ -1196,6 +1264,8 @@ declare const getDeliveryFeesResponseSchema: z.ZodObject<{
|
|
|
1196
1264
|
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1197
1265
|
createdAt: z.ZodString;
|
|
1198
1266
|
updatedAt: z.ZodString;
|
|
1267
|
+
id: z.ZodString;
|
|
1268
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1199
1269
|
type: z.ZodLiteral<"amount">;
|
|
1200
1270
|
settings: z.ZodObject<{
|
|
1201
1271
|
min: z.ZodCoercedNumber<unknown>;
|
|
@@ -1208,6 +1278,8 @@ declare const getDeliveryFeesResponseSchema: z.ZodObject<{
|
|
|
1208
1278
|
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1209
1279
|
createdAt: z.ZodString;
|
|
1210
1280
|
updatedAt: z.ZodString;
|
|
1281
|
+
id: z.ZodString;
|
|
1282
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1211
1283
|
type: z.ZodLiteral<"distance">;
|
|
1212
1284
|
settings: z.ZodObject<{
|
|
1213
1285
|
min: z.ZodCoercedNumber<unknown>;
|
|
@@ -1220,6 +1292,8 @@ declare const getDeliveryFeesResponseSchema: z.ZodObject<{
|
|
|
1220
1292
|
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1221
1293
|
createdAt: z.ZodString;
|
|
1222
1294
|
updatedAt: z.ZodString;
|
|
1295
|
+
id: z.ZodString;
|
|
1296
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1223
1297
|
type: z.ZodLiteral<"postal_code">;
|
|
1224
1298
|
settings: z.ZodObject<{
|
|
1225
1299
|
values: z.ZodArray<z.ZodString>;
|
|
@@ -1248,6 +1322,8 @@ declare class GetDeliveryFees extends AbstractApiRequest<typeof getDeliveryFeesI
|
|
|
1248
1322
|
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1249
1323
|
createdAt: z.ZodString;
|
|
1250
1324
|
updatedAt: z.ZodString;
|
|
1325
|
+
id: z.ZodString;
|
|
1326
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1251
1327
|
type: z.ZodLiteral<"amount">;
|
|
1252
1328
|
settings: z.ZodObject<{
|
|
1253
1329
|
min: z.ZodCoercedNumber<unknown>;
|
|
@@ -1260,6 +1336,8 @@ declare class GetDeliveryFees extends AbstractApiRequest<typeof getDeliveryFeesI
|
|
|
1260
1336
|
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1261
1337
|
createdAt: z.ZodString;
|
|
1262
1338
|
updatedAt: z.ZodString;
|
|
1339
|
+
id: z.ZodString;
|
|
1340
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1263
1341
|
type: z.ZodLiteral<"distance">;
|
|
1264
1342
|
settings: z.ZodObject<{
|
|
1265
1343
|
min: z.ZodCoercedNumber<unknown>;
|
|
@@ -1272,6 +1350,8 @@ declare class GetDeliveryFees extends AbstractApiRequest<typeof getDeliveryFeesI
|
|
|
1272
1350
|
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1273
1351
|
createdAt: z.ZodString;
|
|
1274
1352
|
updatedAt: z.ZodString;
|
|
1353
|
+
id: z.ZodString;
|
|
1354
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1275
1355
|
type: z.ZodLiteral<"postal_code">;
|
|
1276
1356
|
settings: z.ZodObject<{
|
|
1277
1357
|
values: z.ZodArray<z.ZodString>;
|
|
@@ -1332,7 +1412,7 @@ declare class GetDeliveryFees extends AbstractApiRequest<typeof getDeliveryFeesI
|
|
|
1332
1412
|
query?: DeliveryFeesQueryParams;
|
|
1333
1413
|
});
|
|
1334
1414
|
getPath(): string;
|
|
1335
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<
|
|
1415
|
+
parseResponse(data: unknown, rawResponse: Response): Paginated<DeliveryFeeListItem>;
|
|
1336
1416
|
}
|
|
1337
1417
|
|
|
1338
1418
|
declare const getDeliveryFeesFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
@@ -1386,6 +1466,8 @@ declare const getDeliveryFeesFromPointOfSaleResponseSchema: z.ZodArray<z.ZodDisc
|
|
|
1386
1466
|
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1387
1467
|
createdAt: z.ZodString;
|
|
1388
1468
|
updatedAt: z.ZodString;
|
|
1469
|
+
id: z.ZodString;
|
|
1470
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1389
1471
|
type: z.ZodLiteral<"amount">;
|
|
1390
1472
|
settings: z.ZodObject<{
|
|
1391
1473
|
min: z.ZodCoercedNumber<unknown>;
|
|
@@ -1398,6 +1480,8 @@ declare const getDeliveryFeesFromPointOfSaleResponseSchema: z.ZodArray<z.ZodDisc
|
|
|
1398
1480
|
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1399
1481
|
createdAt: z.ZodString;
|
|
1400
1482
|
updatedAt: z.ZodString;
|
|
1483
|
+
id: z.ZodString;
|
|
1484
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1401
1485
|
type: z.ZodLiteral<"distance">;
|
|
1402
1486
|
settings: z.ZodObject<{
|
|
1403
1487
|
min: z.ZodCoercedNumber<unknown>;
|
|
@@ -1410,6 +1494,8 @@ declare const getDeliveryFeesFromPointOfSaleResponseSchema: z.ZodArray<z.ZodDisc
|
|
|
1410
1494
|
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1411
1495
|
createdAt: z.ZodString;
|
|
1412
1496
|
updatedAt: z.ZodString;
|
|
1497
|
+
id: z.ZodString;
|
|
1498
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1413
1499
|
type: z.ZodLiteral<"postal_code">;
|
|
1414
1500
|
settings: z.ZodObject<{
|
|
1415
1501
|
values: z.ZodArray<z.ZodString>;
|
|
@@ -1428,6 +1514,8 @@ declare class GetDeliveryFeesFromPointOfSale extends AbstractApiRequest<typeof g
|
|
|
1428
1514
|
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1429
1515
|
createdAt: z.ZodString;
|
|
1430
1516
|
updatedAt: z.ZodString;
|
|
1517
|
+
id: z.ZodString;
|
|
1518
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1431
1519
|
type: z.ZodLiteral<"amount">;
|
|
1432
1520
|
settings: z.ZodObject<{
|
|
1433
1521
|
min: z.ZodCoercedNumber<unknown>;
|
|
@@ -1440,6 +1528,8 @@ declare class GetDeliveryFeesFromPointOfSale extends AbstractApiRequest<typeof g
|
|
|
1440
1528
|
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1441
1529
|
createdAt: z.ZodString;
|
|
1442
1530
|
updatedAt: z.ZodString;
|
|
1531
|
+
id: z.ZodString;
|
|
1532
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1443
1533
|
type: z.ZodLiteral<"distance">;
|
|
1444
1534
|
settings: z.ZodObject<{
|
|
1445
1535
|
min: z.ZodCoercedNumber<unknown>;
|
|
@@ -1452,6 +1542,8 @@ declare class GetDeliveryFeesFromPointOfSale extends AbstractApiRequest<typeof g
|
|
|
1452
1542
|
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1453
1543
|
createdAt: z.ZodString;
|
|
1454
1544
|
updatedAt: z.ZodString;
|
|
1545
|
+
id: z.ZodString;
|
|
1546
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1455
1547
|
type: z.ZodLiteral<"postal_code">;
|
|
1456
1548
|
settings: z.ZodObject<{
|
|
1457
1549
|
values: z.ZodArray<z.ZodString>;
|
|
@@ -1504,7 +1596,152 @@ declare class GetDeliveryFeesFromPointOfSale extends AbstractApiRequest<typeof g
|
|
|
1504
1596
|
query?: DeliveryFeesQueryParams;
|
|
1505
1597
|
});
|
|
1506
1598
|
getPath(): string;
|
|
1507
|
-
parseResponse(data: unknown):
|
|
1599
|
+
parseResponse(data: unknown): DeliveryFeeListItem[];
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1602
|
+
declare const updateDeliveryFeeInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1603
|
+
amount: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
1604
|
+
taxRate: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1605
|
+
type: z.ZodOptional<z.ZodLiteral<"amount">>;
|
|
1606
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
1607
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1608
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1609
|
+
}, z.core.$strip>>;
|
|
1610
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1611
|
+
amount: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
1612
|
+
taxRate: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1613
|
+
type: z.ZodOptional<z.ZodLiteral<"distance">>;
|
|
1614
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
1615
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1616
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1617
|
+
}, z.core.$strip>>;
|
|
1618
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1619
|
+
amount: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
1620
|
+
taxRate: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1621
|
+
type: z.ZodOptional<z.ZodLiteral<"postal_code">>;
|
|
1622
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
1623
|
+
values: z.ZodArray<z.ZodString>;
|
|
1624
|
+
}, z.core.$strip>>;
|
|
1625
|
+
}, z.core.$strip>]>;
|
|
1626
|
+
type UpdateDeliveryFeeInput = z.input<typeof updateDeliveryFeeInputSchema>;
|
|
1627
|
+
declare const updateDeliveryFeeResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1628
|
+
amount: z.ZodDefault<z.ZodString>;
|
|
1629
|
+
netAmount: z.ZodString;
|
|
1630
|
+
taxAmount: z.ZodString;
|
|
1631
|
+
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1632
|
+
createdAt: z.ZodString;
|
|
1633
|
+
updatedAt: z.ZodString;
|
|
1634
|
+
id: z.ZodString;
|
|
1635
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1636
|
+
type: z.ZodLiteral<"amount">;
|
|
1637
|
+
settings: z.ZodObject<{
|
|
1638
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1639
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1640
|
+
}, z.core.$strip>;
|
|
1641
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1642
|
+
amount: z.ZodDefault<z.ZodString>;
|
|
1643
|
+
netAmount: z.ZodString;
|
|
1644
|
+
taxAmount: z.ZodString;
|
|
1645
|
+
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1646
|
+
createdAt: z.ZodString;
|
|
1647
|
+
updatedAt: z.ZodString;
|
|
1648
|
+
id: z.ZodString;
|
|
1649
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1650
|
+
type: z.ZodLiteral<"distance">;
|
|
1651
|
+
settings: z.ZodObject<{
|
|
1652
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1653
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1654
|
+
}, z.core.$strip>;
|
|
1655
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1656
|
+
amount: z.ZodDefault<z.ZodString>;
|
|
1657
|
+
netAmount: z.ZodString;
|
|
1658
|
+
taxAmount: z.ZodString;
|
|
1659
|
+
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1660
|
+
createdAt: z.ZodString;
|
|
1661
|
+
updatedAt: z.ZodString;
|
|
1662
|
+
id: z.ZodString;
|
|
1663
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1664
|
+
type: z.ZodLiteral<"postal_code">;
|
|
1665
|
+
settings: z.ZodObject<{
|
|
1666
|
+
values: z.ZodArray<z.ZodString>;
|
|
1667
|
+
}, z.core.$strip>;
|
|
1668
|
+
}, z.core.$strip>]>;
|
|
1669
|
+
type UpdateDeliveryFeeResponse = z.output<typeof updateDeliveryFeeResponseSchema>;
|
|
1670
|
+
declare class UpdateDeliveryFee extends AbstractApiRequest<typeof updateDeliveryFeeInputSchema, typeof updateDeliveryFeeResponseSchema> {
|
|
1671
|
+
readonly method = "PATCH";
|
|
1672
|
+
readonly contentType = "application/merge-patch+json";
|
|
1673
|
+
readonly accept = "application/json";
|
|
1674
|
+
readonly inputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1675
|
+
amount: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
1676
|
+
taxRate: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1677
|
+
type: z.ZodOptional<z.ZodLiteral<"amount">>;
|
|
1678
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
1679
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1680
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1681
|
+
}, z.core.$strip>>;
|
|
1682
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1683
|
+
amount: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
1684
|
+
taxRate: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1685
|
+
type: z.ZodOptional<z.ZodLiteral<"distance">>;
|
|
1686
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
1687
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1688
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1689
|
+
}, z.core.$strip>>;
|
|
1690
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1691
|
+
amount: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
1692
|
+
taxRate: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1693
|
+
type: z.ZodOptional<z.ZodLiteral<"postal_code">>;
|
|
1694
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
1695
|
+
values: z.ZodArray<z.ZodString>;
|
|
1696
|
+
}, z.core.$strip>>;
|
|
1697
|
+
}, z.core.$strip>]>;
|
|
1698
|
+
readonly outputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1699
|
+
amount: z.ZodDefault<z.ZodString>;
|
|
1700
|
+
netAmount: z.ZodString;
|
|
1701
|
+
taxAmount: z.ZodString;
|
|
1702
|
+
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1703
|
+
createdAt: z.ZodString;
|
|
1704
|
+
updatedAt: z.ZodString;
|
|
1705
|
+
id: z.ZodString;
|
|
1706
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1707
|
+
type: z.ZodLiteral<"amount">;
|
|
1708
|
+
settings: z.ZodObject<{
|
|
1709
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1710
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1711
|
+
}, z.core.$strip>;
|
|
1712
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1713
|
+
amount: z.ZodDefault<z.ZodString>;
|
|
1714
|
+
netAmount: z.ZodString;
|
|
1715
|
+
taxAmount: z.ZodString;
|
|
1716
|
+
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1717
|
+
createdAt: z.ZodString;
|
|
1718
|
+
updatedAt: z.ZodString;
|
|
1719
|
+
id: z.ZodString;
|
|
1720
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1721
|
+
type: z.ZodLiteral<"distance">;
|
|
1722
|
+
settings: z.ZodObject<{
|
|
1723
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1724
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1725
|
+
}, z.core.$strip>;
|
|
1726
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1727
|
+
amount: z.ZodDefault<z.ZodString>;
|
|
1728
|
+
netAmount: z.ZodString;
|
|
1729
|
+
taxAmount: z.ZodString;
|
|
1730
|
+
taxRate: z.ZodCoercedNumber<unknown>;
|
|
1731
|
+
createdAt: z.ZodString;
|
|
1732
|
+
updatedAt: z.ZodString;
|
|
1733
|
+
id: z.ZodString;
|
|
1734
|
+
pointOfSale: z.ZodOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1735
|
+
type: z.ZodLiteral<"postal_code">;
|
|
1736
|
+
settings: z.ZodObject<{
|
|
1737
|
+
values: z.ZodArray<z.ZodString>;
|
|
1738
|
+
}, z.core.$strip>;
|
|
1739
|
+
}, z.core.$strip>]>;
|
|
1740
|
+
readonly querySchema: undefined;
|
|
1741
|
+
readonly headersSchema: undefined;
|
|
1742
|
+
private readonly deliveryFeeId;
|
|
1743
|
+
constructor(deliveryFeeId: string, input: UpdateDeliveryFeeInput);
|
|
1744
|
+
getPath(): string;
|
|
1508
1745
|
}
|
|
1509
1746
|
|
|
1510
1747
|
declare const createDeliveryPositionInputSchema: z.ZodObject<{
|
|
@@ -1794,4 +2031,4 @@ type DeliveryPositionIri = z.infer<typeof deliveryPositionIriSchema>;
|
|
|
1794
2031
|
declare const deliveryPositionNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/deliveries/positions/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/deliveries/positions/:id"> | null, unknown>>;
|
|
1795
2032
|
type DeliveryPositionNullableIri = z.infer<typeof deliveryPositionNullableIriSchema>;
|
|
1796
2033
|
|
|
1797
|
-
export { CreateDelivery, CreateDeliveryFee, type CreateDeliveryFeeInput, type CreateDeliveryFeeResponse, type CreateDeliveryInput, CreateDeliveryPosition, type CreateDeliveryPositionInput, type CreateDeliveryPositionResponse, type CreateDeliveryResponse, DeleteDelivery, DeleteDeliveryFee, DeleteDeliveryPosition, DeliverCurrentOrder, type DeliverCurrentOrderInput, type DeliverCurrentOrderResponse, type DeliveriesQueryParams, type Delivery, type DeliveryDetails, type DeliveryFee, type DeliveryFeeDetails, type DeliveryFeeType, type DeliveryFeesQueryParams, type DeliveryIri, type DeliveryNullableIri, type DeliveryPosition, type DeliveryPositionDetails, type DeliveryPositionIri, type DeliveryPositionNullableIri, type DeliveryPositionsQueryParams, EndDelivery, type EndDeliveryInput, type EndDeliveryResponse, GetDeliveries, GetDeliveriesFromUser, type GetDeliveriesFromUserInput, type GetDeliveriesFromUserQueryParams, type GetDeliveriesFromUserResponse, type GetDeliveriesInput, type GetDeliveriesQueryParams, type GetDeliveriesResponse, GetDeliveryDetails, GetDeliveryDetailsFromBundle, type GetDeliveryDetailsFromBundleInput, type GetDeliveryDetailsFromBundleResponse, type GetDeliveryDetailsInput, type GetDeliveryDetailsResponse, GetDeliveryFeeDetails, type GetDeliveryFeeDetailsInput, type GetDeliveryFeeDetailsResponse, GetDeliveryFees, GetDeliveryFeesFromPointOfSale, type GetDeliveryFeesFromPointOfSaleInput, type GetDeliveryFeesFromPointOfSaleQueryParams, type GetDeliveryFeesFromPointOfSaleResponse, type GetDeliveryFeesInput, type GetDeliveryFeesQueryParams, type GetDeliveryFeesResponse, GetDeliveryPositionDetails, type GetDeliveryPositionDetailsInput, type GetDeliveryPositionDetailsResponse, GetDeliveryPositions, GetDeliveryPositionsFromDelivery, type GetDeliveryPositionsFromDeliveryInput, type GetDeliveryPositionsFromDeliveryQueryParams, type GetDeliveryPositionsFromDeliveryResponse, type GetDeliveryPositionsInput, type GetDeliveryPositionsQueryParams, type GetDeliveryPositionsResponse, StartDelivery, type StartDeliveryInput, StartDeliveryOrder, type StartDeliveryOrderInput, type StartDeliveryOrderResponse, type StartDeliveryResponse, UpdateDelivery, type UpdateDeliveryInput, type UpdateDeliveryResponse, type
|
|
2034
|
+
export { CreateDelivery, CreateDeliveryFee, type CreateDeliveryFeeInput, type CreateDeliveryFeeResponse, type CreateDeliveryInput, CreateDeliveryPosition, type CreateDeliveryPositionInput, type CreateDeliveryPositionResponse, type CreateDeliveryResponse, DeleteDelivery, DeleteDeliveryFee, DeleteDeliveryPosition, DeliverCurrentOrder, type DeliverCurrentOrderInput, type DeliverCurrentOrderResponse, type DeliveriesQueryParams, type Delivery, type DeliveryDetails, type DeliveryFee, type DeliveryFeeDetails, type DeliveryFeeListItem, type DeliveryFeeType, type DeliveryFeesQueryParams, type DeliveryIri, type DeliveryNullableIri, type DeliveryPosition, type DeliveryPositionDetails, type DeliveryPositionIri, type DeliveryPositionNullableIri, type DeliveryPositionsQueryParams, EndDelivery, type EndDeliveryInput, type EndDeliveryResponse, GetDeliveries, GetDeliveriesFromUser, type GetDeliveriesFromUserInput, type GetDeliveriesFromUserQueryParams, type GetDeliveriesFromUserResponse, type GetDeliveriesInput, type GetDeliveriesQueryParams, type GetDeliveriesResponse, GetDeliveryDetails, GetDeliveryDetailsFromBundle, type GetDeliveryDetailsFromBundleInput, type GetDeliveryDetailsFromBundleResponse, type GetDeliveryDetailsInput, type GetDeliveryDetailsResponse, GetDeliveryFeeDetails, type GetDeliveryFeeDetailsInput, type GetDeliveryFeeDetailsResponse, GetDeliveryFees, GetDeliveryFeesFromPointOfSale, type GetDeliveryFeesFromPointOfSaleInput, type GetDeliveryFeesFromPointOfSaleQueryParams, type GetDeliveryFeesFromPointOfSaleResponse, type GetDeliveryFeesInput, type GetDeliveryFeesQueryParams, type GetDeliveryFeesResponse, GetDeliveryPositionDetails, type GetDeliveryPositionDetailsInput, type GetDeliveryPositionDetailsResponse, GetDeliveryPositions, GetDeliveryPositionsFromDelivery, type GetDeliveryPositionsFromDeliveryInput, type GetDeliveryPositionsFromDeliveryQueryParams, type GetDeliveryPositionsFromDeliveryResponse, type GetDeliveryPositionsInput, type GetDeliveryPositionsQueryParams, type GetDeliveryPositionsResponse, StartDelivery, type StartDeliveryInput, StartDeliveryOrder, type StartDeliveryOrderInput, type StartDeliveryOrderResponse, type StartDeliveryResponse, UpdateDelivery, UpdateDeliveryFee, type UpdateDeliveryFeeInput, type UpdateDeliveryFeeResponse, type UpdateDeliveryInput, type UpdateDeliveryResponse, type WritableCreateDeliveryFee, type WritableDelivery, type WritableDeliveryPosition, type WritableUpdateDeliveryFee, createDeliveryFeeInputSchema, createDeliveryFeeResponseSchema, createDeliveryInputSchema, createDeliveryPositionInputSchema, createDeliveryPositionResponseSchema, createDeliveryResponseSchema, deleteDeliveryFeeInputSchema, deleteDeliveryFeeResponseSchema, deleteDeliveryInputSchema, deleteDeliveryPositionInputSchema, deleteDeliveryPositionResponseSchema, deleteDeliveryResponseSchema, deliverCurrentOrderInputSchema, deliverCurrentOrderResponseSchema, deliveriesQuerySchema, deliveryDetailsSchema, deliveryFeeDetailsSchema, deliveryFeeListItemSchema, deliveryFeeSchema, deliveryFeeTypeSchema, deliveryFeeTypes, deliveryFeesQuerySchema, deliveryIriSchema, deliveryNullableIriSchema, deliveryPositionDetailsSchema, deliveryPositionIriSchema, deliveryPositionNullableIriSchema, deliveryPositionSchema, deliveryPositionsQuerySchema, deliverySchema, endDeliveryInputSchema, endDeliveryResponseSchema, getDeliveriesFromUserInputSchema, getDeliveriesFromUserQuerySchema, getDeliveriesFromUserResponseSchema, getDeliveriesInputSchema, getDeliveriesQuerySchema, getDeliveriesResponseSchema, getDeliveryDetailsFromBundleInputSchema, getDeliveryDetailsFromBundleResponseSchema, getDeliveryDetailsInputSchema, getDeliveryDetailsResponseSchema, getDeliveryFeeDetailsInputSchema, getDeliveryFeeDetailsResponseSchema, getDeliveryFeesFromPointOfSaleInputSchema, getDeliveryFeesFromPointOfSaleQuerySchema, getDeliveryFeesFromPointOfSaleResponseSchema, getDeliveryFeesInputSchema, getDeliveryFeesQuerySchema, getDeliveryFeesResponseSchema, getDeliveryPositionDetailsInputSchema, getDeliveryPositionDetailsResponseSchema, getDeliveryPositionsFromDeliveryInputSchema, getDeliveryPositionsFromDeliveryQuerySchema, getDeliveryPositionsFromDeliveryResponseSchema, getDeliveryPositionsInputSchema, getDeliveryPositionsQuerySchema, getDeliveryPositionsResponseSchema, startDeliveryInputSchema, startDeliveryOrderInputSchema, startDeliveryOrderResponseSchema, startDeliveryResponseSchema, updateDeliveryFeeInputSchema, updateDeliveryFeeResponseSchema, updateDeliveryInputSchema, updateDeliveryResponseSchema, writableCreateDeliveryFeeSchema, writableDeliveryPositionSchema, writableDeliverySchema, writableUpdateDeliveryFeeSchema };
|
package/dist/index.js
CHANGED
|
@@ -11253,13 +11253,23 @@ var writableDeliveryFeeBase = external_exports.object({
|
|
|
11253
11253
|
}),
|
|
11254
11254
|
taxRate: external_exports.coerce.number().min(0, "tax_rate_must_be_gte_0")
|
|
11255
11255
|
});
|
|
11256
|
-
var
|
|
11256
|
+
var makeWritableCreateDeliveryFeeVariant = (t) => writableDeliveryFeeBase.extend({
|
|
11257
11257
|
type: external_exports.literal(t),
|
|
11258
11258
|
settings: settingsByType[t]
|
|
11259
11259
|
});
|
|
11260
|
-
var
|
|
11260
|
+
var writableCreateDeliveryFeeSchema = external_exports.discriminatedUnion(
|
|
11261
11261
|
"type",
|
|
11262
|
-
deliveryFeeTypes.map((t) =>
|
|
11262
|
+
deliveryFeeTypes.map((t) => makeWritableCreateDeliveryFeeVariant(t))
|
|
11263
|
+
);
|
|
11264
|
+
var makeWritableUpdateDeliveryFeeVariant = (t) => writableDeliveryFeeBase.omit({
|
|
11265
|
+
pointOfSale: true
|
|
11266
|
+
}).extend({
|
|
11267
|
+
type: external_exports.literal(t),
|
|
11268
|
+
settings: settingsByType[t]
|
|
11269
|
+
}).partial();
|
|
11270
|
+
var writableUpdateDeliveryFeeSchema = external_exports.discriminatedUnion(
|
|
11271
|
+
"type",
|
|
11272
|
+
deliveryFeeTypes.map((t) => makeWritableUpdateDeliveryFeeVariant(t))
|
|
11263
11273
|
);
|
|
11264
11274
|
var detailsDeliveryFeeBase = commonDeliveryFeeFields.extend({
|
|
11265
11275
|
id: external_exports.string(),
|
|
@@ -11273,6 +11283,10 @@ var deliveryFeeDetailsSchema = external_exports.discriminatedUnion(
|
|
|
11273
11283
|
"type",
|
|
11274
11284
|
deliveryFeeTypes.map((t) => makeDetailsDeliveryFeeVariant(t))
|
|
11275
11285
|
);
|
|
11286
|
+
var deliveryFeeListItemSchema = external_exports.discriminatedUnion(
|
|
11287
|
+
"type",
|
|
11288
|
+
deliveryFeeTypes.map((t) => makeDetailsDeliveryFeeVariant(t))
|
|
11289
|
+
);
|
|
11276
11290
|
var deliveriesQuerySchema = external_exports.object({
|
|
11277
11291
|
"bundle.id": external_exports.union([external_exports.string(), external_exports.array(external_exports.string())]).optional(),
|
|
11278
11292
|
// exists
|
|
@@ -11576,7 +11590,7 @@ var UpdateDelivery = class extends AbstractApiRequest11 {
|
|
|
11576
11590
|
|
|
11577
11591
|
// src/requests/delivery_fees/CreateDeliveryFee.ts
|
|
11578
11592
|
import { AbstractApiRequest as AbstractApiRequest12 } from "@deliverart/sdk-js-core";
|
|
11579
|
-
var createDeliveryFeeInputSchema =
|
|
11593
|
+
var createDeliveryFeeInputSchema = writableCreateDeliveryFeeSchema;
|
|
11580
11594
|
var createDeliveryFeeResponseSchema = deliveryFeeDetailsSchema;
|
|
11581
11595
|
var CreateDeliveryFee = class extends AbstractApiRequest12 {
|
|
11582
11596
|
constructor(input) {
|
|
@@ -11645,7 +11659,7 @@ import {
|
|
|
11645
11659
|
} from "@deliverart/sdk-js-global-types";
|
|
11646
11660
|
var getDeliveryFeesQuerySchema = deliveryFeesQuerySchema;
|
|
11647
11661
|
var getDeliveryFeesInputSchema = external_exports.undefined();
|
|
11648
|
-
var getDeliveryFeesResponseSchema = createPaginatedSchema3(
|
|
11662
|
+
var getDeliveryFeesResponseSchema = createPaginatedSchema3(deliveryFeeListItemSchema);
|
|
11649
11663
|
var GetDeliveryFees = class extends AbstractApiRequest15 {
|
|
11650
11664
|
constructor(options) {
|
|
11651
11665
|
super(void 0, options);
|
|
@@ -11658,10 +11672,10 @@ var GetDeliveryFees = class extends AbstractApiRequest15 {
|
|
|
11658
11672
|
this.headersSchema = void 0;
|
|
11659
11673
|
}
|
|
11660
11674
|
getPath() {
|
|
11661
|
-
return "/
|
|
11675
|
+
return "/delivery_fees";
|
|
11662
11676
|
}
|
|
11663
11677
|
parseResponse(data, rawResponse) {
|
|
11664
|
-
const deliveryFees = external_exports.array(
|
|
11678
|
+
const deliveryFees = external_exports.array(deliveryFeeListItemSchema).parse(data);
|
|
11665
11679
|
return this.validateOutput({
|
|
11666
11680
|
data: deliveryFees,
|
|
11667
11681
|
pagination: responseToPagination3(rawResponse)
|
|
@@ -11673,7 +11687,7 @@ var GetDeliveryFees = class extends AbstractApiRequest15 {
|
|
|
11673
11687
|
import { AbstractApiRequest as AbstractApiRequest16 } from "@deliverart/sdk-js-core";
|
|
11674
11688
|
var getDeliveryFeesFromPointOfSaleQuerySchema = deliveryFeesQuerySchema;
|
|
11675
11689
|
var getDeliveryFeesFromPointOfSaleInputSchema = external_exports.undefined();
|
|
11676
|
-
var getDeliveryFeesFromPointOfSaleResponseSchema = external_exports.array(
|
|
11690
|
+
var getDeliveryFeesFromPointOfSaleResponseSchema = external_exports.array(deliveryFeeListItemSchema);
|
|
11677
11691
|
var GetDeliveryFeesFromPointOfSale = class extends AbstractApiRequest16 {
|
|
11678
11692
|
constructor(pointOfSaleId, options) {
|
|
11679
11693
|
super(void 0, options);
|
|
@@ -11690,15 +11704,36 @@ var GetDeliveryFeesFromPointOfSale = class extends AbstractApiRequest16 {
|
|
|
11690
11704
|
return `/point_of_sales/${this.pointOfSaleId}/delivery_fees`;
|
|
11691
11705
|
}
|
|
11692
11706
|
parseResponse(data) {
|
|
11693
|
-
return external_exports.array(
|
|
11707
|
+
return external_exports.array(deliveryFeeListItemSchema).parse(data);
|
|
11694
11708
|
}
|
|
11695
11709
|
};
|
|
11696
11710
|
|
|
11697
|
-
// src/requests/
|
|
11711
|
+
// src/requests/delivery_fees/UpdateDeliveryFee.ts
|
|
11698
11712
|
import { AbstractApiRequest as AbstractApiRequest17 } from "@deliverart/sdk-js-core";
|
|
11713
|
+
var updateDeliveryFeeInputSchema = writableUpdateDeliveryFeeSchema;
|
|
11714
|
+
var updateDeliveryFeeResponseSchema = deliveryFeeDetailsSchema;
|
|
11715
|
+
var UpdateDeliveryFee = class extends AbstractApiRequest17 {
|
|
11716
|
+
constructor(deliveryFeeId, input) {
|
|
11717
|
+
super(input);
|
|
11718
|
+
this.method = "PATCH";
|
|
11719
|
+
this.contentType = "application/merge-patch+json";
|
|
11720
|
+
this.accept = "application/json";
|
|
11721
|
+
this.inputSchema = updateDeliveryFeeInputSchema;
|
|
11722
|
+
this.outputSchema = updateDeliveryFeeResponseSchema;
|
|
11723
|
+
this.querySchema = void 0;
|
|
11724
|
+
this.headersSchema = void 0;
|
|
11725
|
+
this.deliveryFeeId = deliveryFeeId;
|
|
11726
|
+
}
|
|
11727
|
+
getPath() {
|
|
11728
|
+
return `/delivery_fees/${this.deliveryFeeId}`;
|
|
11729
|
+
}
|
|
11730
|
+
};
|
|
11731
|
+
|
|
11732
|
+
// src/requests/delivery_positions/CreateDeliveryPosition.ts
|
|
11733
|
+
import { AbstractApiRequest as AbstractApiRequest18 } from "@deliverart/sdk-js-core";
|
|
11699
11734
|
var createDeliveryPositionInputSchema = writableDeliveryPositionSchema.required();
|
|
11700
11735
|
var createDeliveryPositionResponseSchema = deliveryPositionDetailsSchema;
|
|
11701
|
-
var CreateDeliveryPosition = class extends
|
|
11736
|
+
var CreateDeliveryPosition = class extends AbstractApiRequest18 {
|
|
11702
11737
|
constructor(input) {
|
|
11703
11738
|
super(input);
|
|
11704
11739
|
this.method = "POST";
|
|
@@ -11715,11 +11750,11 @@ var CreateDeliveryPosition = class extends AbstractApiRequest17 {
|
|
|
11715
11750
|
};
|
|
11716
11751
|
|
|
11717
11752
|
// src/requests/delivery_positions/DeleteDeliveryPosition.ts
|
|
11718
|
-
import { AbstractApiRequest as
|
|
11753
|
+
import { AbstractApiRequest as AbstractApiRequest19 } from "@deliverart/sdk-js-core";
|
|
11719
11754
|
import { emptyResponseSchema as emptyResponseSchema3 } from "@deliverart/sdk-js-global-types";
|
|
11720
11755
|
var deleteDeliveryPositionInputSchema = external_exports.undefined();
|
|
11721
11756
|
var deleteDeliveryPositionResponseSchema = emptyResponseSchema3;
|
|
11722
|
-
var DeleteDeliveryPosition = class extends
|
|
11757
|
+
var DeleteDeliveryPosition = class extends AbstractApiRequest19 {
|
|
11723
11758
|
constructor(deliveryPositionId) {
|
|
11724
11759
|
super(void 0);
|
|
11725
11760
|
this.method = "DELETE";
|
|
@@ -11737,10 +11772,10 @@ var DeleteDeliveryPosition = class extends AbstractApiRequest18 {
|
|
|
11737
11772
|
};
|
|
11738
11773
|
|
|
11739
11774
|
// src/requests/delivery_positions/GetDeliveryPositionDetails.ts
|
|
11740
|
-
import { AbstractApiRequest as
|
|
11775
|
+
import { AbstractApiRequest as AbstractApiRequest20 } from "@deliverart/sdk-js-core";
|
|
11741
11776
|
var getDeliveryPositionDetailsInputSchema = external_exports.undefined();
|
|
11742
11777
|
var getDeliveryPositionDetailsResponseSchema = deliveryPositionDetailsSchema;
|
|
11743
|
-
var GetDeliveryPositionDetails = class extends
|
|
11778
|
+
var GetDeliveryPositionDetails = class extends AbstractApiRequest20 {
|
|
11744
11779
|
constructor(deliveryPositionId) {
|
|
11745
11780
|
super(void 0);
|
|
11746
11781
|
this.method = "GET";
|
|
@@ -11758,7 +11793,7 @@ var GetDeliveryPositionDetails = class extends AbstractApiRequest19 {
|
|
|
11758
11793
|
};
|
|
11759
11794
|
|
|
11760
11795
|
// src/requests/delivery_positions/GetDeliveryPositions.ts
|
|
11761
|
-
import { AbstractApiRequest as
|
|
11796
|
+
import { AbstractApiRequest as AbstractApiRequest21 } from "@deliverart/sdk-js-core";
|
|
11762
11797
|
import {
|
|
11763
11798
|
createPaginatedSchema as createPaginatedSchema4,
|
|
11764
11799
|
responseToPagination as responseToPagination4
|
|
@@ -11766,7 +11801,7 @@ import {
|
|
|
11766
11801
|
var getDeliveryPositionsQuerySchema = deliveryPositionsQuerySchema;
|
|
11767
11802
|
var getDeliveryPositionsInputSchema = external_exports.undefined();
|
|
11768
11803
|
var getDeliveryPositionsResponseSchema = createPaginatedSchema4(deliveryPositionSchema);
|
|
11769
|
-
var GetDeliveryPositions = class extends
|
|
11804
|
+
var GetDeliveryPositions = class extends AbstractApiRequest21 {
|
|
11770
11805
|
constructor(options) {
|
|
11771
11806
|
super(void 0, options);
|
|
11772
11807
|
this.method = "GET";
|
|
@@ -11790,11 +11825,11 @@ var GetDeliveryPositions = class extends AbstractApiRequest20 {
|
|
|
11790
11825
|
};
|
|
11791
11826
|
|
|
11792
11827
|
// src/requests/delivery_positions/GetDeliveryPositionsFromDelivery.ts
|
|
11793
|
-
import { AbstractApiRequest as
|
|
11828
|
+
import { AbstractApiRequest as AbstractApiRequest22 } from "@deliverart/sdk-js-core";
|
|
11794
11829
|
var getDeliveryPositionsFromDeliveryQuerySchema = deliveryPositionsQuerySchema;
|
|
11795
11830
|
var getDeliveryPositionsFromDeliveryInputSchema = external_exports.undefined();
|
|
11796
11831
|
var getDeliveryPositionsFromDeliveryResponseSchema = external_exports.array(deliveryPositionSchema);
|
|
11797
|
-
var GetDeliveryPositionsFromDelivery = class extends
|
|
11832
|
+
var GetDeliveryPositionsFromDelivery = class extends AbstractApiRequest22 {
|
|
11798
11833
|
constructor(deliveryId, options) {
|
|
11799
11834
|
super(void 0, options);
|
|
11800
11835
|
this.method = "GET";
|
|
@@ -11835,6 +11870,7 @@ export {
|
|
|
11835
11870
|
StartDelivery,
|
|
11836
11871
|
StartDeliveryOrder,
|
|
11837
11872
|
UpdateDelivery,
|
|
11873
|
+
UpdateDeliveryFee,
|
|
11838
11874
|
createDeliveryFeeInputSchema,
|
|
11839
11875
|
createDeliveryFeeResponseSchema,
|
|
11840
11876
|
createDeliveryInputSchema,
|
|
@@ -11852,6 +11888,7 @@ export {
|
|
|
11852
11888
|
deliveriesQuerySchema,
|
|
11853
11889
|
deliveryDetailsSchema,
|
|
11854
11890
|
deliveryFeeDetailsSchema,
|
|
11891
|
+
deliveryFeeListItemSchema,
|
|
11855
11892
|
deliveryFeeSchema,
|
|
11856
11893
|
deliveryFeeTypeSchema,
|
|
11857
11894
|
deliveryFeeTypes,
|
|
@@ -11896,9 +11933,12 @@ export {
|
|
|
11896
11933
|
startDeliveryOrderInputSchema,
|
|
11897
11934
|
startDeliveryOrderResponseSchema,
|
|
11898
11935
|
startDeliveryResponseSchema,
|
|
11936
|
+
updateDeliveryFeeInputSchema,
|
|
11937
|
+
updateDeliveryFeeResponseSchema,
|
|
11899
11938
|
updateDeliveryInputSchema,
|
|
11900
11939
|
updateDeliveryResponseSchema,
|
|
11901
|
-
|
|
11940
|
+
writableCreateDeliveryFeeSchema,
|
|
11902
11941
|
writableDeliveryPositionSchema,
|
|
11903
|
-
writableDeliverySchema
|
|
11942
|
+
writableDeliverySchema,
|
|
11943
|
+
writableUpdateDeliveryFeeSchema
|
|
11904
11944
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deliverart/sdk-js-delivery",
|
|
3
3
|
"description": "Deliverart JavaScript SDK for Delivery Management",
|
|
4
|
-
"version": "2.4.
|
|
4
|
+
"version": "2.4.5",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"dist"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@deliverart/sdk-js-core": "2.4.
|
|
22
|
-
"@deliverart/sdk-js-
|
|
23
|
-
"@deliverart/sdk-js-
|
|
24
|
-
"@deliverart/sdk-js-order": "2.4.
|
|
25
|
-
"@deliverart/sdk-js-user": "2.4.
|
|
21
|
+
"@deliverart/sdk-js-core": "2.4.5",
|
|
22
|
+
"@deliverart/sdk-js-global-types": "2.4.5",
|
|
23
|
+
"@deliverart/sdk-js-point-of-sale": "2.4.5",
|
|
24
|
+
"@deliverart/sdk-js-order": "2.4.5",
|
|
25
|
+
"@deliverart/sdk-js-user": "2.4.5"
|
|
26
26
|
},
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|