@deliverart/sdk-js-delivery 2.4.4 → 2.4.6
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 +57 -18
- package/dist/index.d.cts +173 -3
- package/dist/index.d.ts +173 -3
- package/dist/index.js +51 -16
- 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,
|
|
@@ -103,11 +104,14 @@ __export(index_exports, {
|
|
|
103
104
|
startDeliveryOrderInputSchema: () => startDeliveryOrderInputSchema,
|
|
104
105
|
startDeliveryOrderResponseSchema: () => startDeliveryOrderResponseSchema,
|
|
105
106
|
startDeliveryResponseSchema: () => startDeliveryResponseSchema,
|
|
107
|
+
updateDeliveryFeeInputSchema: () => updateDeliveryFeeInputSchema,
|
|
108
|
+
updateDeliveryFeeResponseSchema: () => updateDeliveryFeeResponseSchema,
|
|
106
109
|
updateDeliveryInputSchema: () => updateDeliveryInputSchema,
|
|
107
110
|
updateDeliveryResponseSchema: () => updateDeliveryResponseSchema,
|
|
108
|
-
|
|
111
|
+
writableCreateDeliveryFeeSchema: () => writableCreateDeliveryFeeSchema,
|
|
109
112
|
writableDeliveryPositionSchema: () => writableDeliveryPositionSchema,
|
|
110
|
-
writableDeliverySchema: () => writableDeliverySchema
|
|
113
|
+
writableDeliverySchema: () => writableDeliverySchema,
|
|
114
|
+
writableUpdateDeliveryFeeSchema: () => writableUpdateDeliveryFeeSchema
|
|
111
115
|
});
|
|
112
116
|
module.exports = __toCommonJS(index_exports);
|
|
113
117
|
|
|
@@ -11356,13 +11360,23 @@ var writableDeliveryFeeBase = external_exports.object({
|
|
|
11356
11360
|
}),
|
|
11357
11361
|
taxRate: external_exports.coerce.number().min(0, "tax_rate_must_be_gte_0")
|
|
11358
11362
|
});
|
|
11359
|
-
var
|
|
11363
|
+
var makeWritableCreateDeliveryFeeVariant = (t) => writableDeliveryFeeBase.extend({
|
|
11360
11364
|
type: external_exports.literal(t),
|
|
11361
11365
|
settings: settingsByType[t]
|
|
11362
11366
|
});
|
|
11363
|
-
var
|
|
11367
|
+
var writableCreateDeliveryFeeSchema = external_exports.discriminatedUnion(
|
|
11364
11368
|
"type",
|
|
11365
|
-
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().required({ type: true });
|
|
11377
|
+
var writableUpdateDeliveryFeeSchema = external_exports.discriminatedUnion(
|
|
11378
|
+
"type",
|
|
11379
|
+
deliveryFeeTypes.map((t) => makeWritableUpdateDeliveryFeeVariant(t))
|
|
11366
11380
|
);
|
|
11367
11381
|
var detailsDeliveryFeeBase = commonDeliveryFeeFields.extend({
|
|
11368
11382
|
id: external_exports.string(),
|
|
@@ -11677,7 +11691,7 @@ var UpdateDelivery = class extends import_sdk_js_core11.AbstractApiRequest {
|
|
|
11677
11691
|
|
|
11678
11692
|
// src/requests/delivery_fees/CreateDeliveryFee.ts
|
|
11679
11693
|
var import_sdk_js_core12 = require("@deliverart/sdk-js-core");
|
|
11680
|
-
var createDeliveryFeeInputSchema =
|
|
11694
|
+
var createDeliveryFeeInputSchema = writableCreateDeliveryFeeSchema;
|
|
11681
11695
|
var createDeliveryFeeResponseSchema = deliveryFeeDetailsSchema;
|
|
11682
11696
|
var CreateDeliveryFee = class extends import_sdk_js_core12.AbstractApiRequest {
|
|
11683
11697
|
constructor(input) {
|
|
@@ -11792,11 +11806,32 @@ var GetDeliveryFeesFromPointOfSale = class extends import_sdk_js_core16.Abstract
|
|
|
11792
11806
|
}
|
|
11793
11807
|
};
|
|
11794
11808
|
|
|
11795
|
-
// src/requests/
|
|
11809
|
+
// src/requests/delivery_fees/UpdateDeliveryFee.ts
|
|
11796
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");
|
|
11797
11832
|
var createDeliveryPositionInputSchema = writableDeliveryPositionSchema.required();
|
|
11798
11833
|
var createDeliveryPositionResponseSchema = deliveryPositionDetailsSchema;
|
|
11799
|
-
var CreateDeliveryPosition = class extends
|
|
11834
|
+
var CreateDeliveryPosition = class extends import_sdk_js_core18.AbstractApiRequest {
|
|
11800
11835
|
constructor(input) {
|
|
11801
11836
|
super(input);
|
|
11802
11837
|
this.method = "POST";
|
|
@@ -11813,11 +11848,11 @@ var CreateDeliveryPosition = class extends import_sdk_js_core17.AbstractApiReque
|
|
|
11813
11848
|
};
|
|
11814
11849
|
|
|
11815
11850
|
// src/requests/delivery_positions/DeleteDeliveryPosition.ts
|
|
11816
|
-
var
|
|
11851
|
+
var import_sdk_js_core19 = require("@deliverart/sdk-js-core");
|
|
11817
11852
|
var import_sdk_js_global_types8 = require("@deliverart/sdk-js-global-types");
|
|
11818
11853
|
var deleteDeliveryPositionInputSchema = external_exports.undefined();
|
|
11819
11854
|
var deleteDeliveryPositionResponseSchema = import_sdk_js_global_types8.emptyResponseSchema;
|
|
11820
|
-
var DeleteDeliveryPosition = class extends
|
|
11855
|
+
var DeleteDeliveryPosition = class extends import_sdk_js_core19.AbstractApiRequest {
|
|
11821
11856
|
constructor(deliveryPositionId) {
|
|
11822
11857
|
super(void 0);
|
|
11823
11858
|
this.method = "DELETE";
|
|
@@ -11835,10 +11870,10 @@ var DeleteDeliveryPosition = class extends import_sdk_js_core18.AbstractApiReque
|
|
|
11835
11870
|
};
|
|
11836
11871
|
|
|
11837
11872
|
// src/requests/delivery_positions/GetDeliveryPositionDetails.ts
|
|
11838
|
-
var
|
|
11873
|
+
var import_sdk_js_core20 = require("@deliverart/sdk-js-core");
|
|
11839
11874
|
var getDeliveryPositionDetailsInputSchema = external_exports.undefined();
|
|
11840
11875
|
var getDeliveryPositionDetailsResponseSchema = deliveryPositionDetailsSchema;
|
|
11841
|
-
var GetDeliveryPositionDetails = class extends
|
|
11876
|
+
var GetDeliveryPositionDetails = class extends import_sdk_js_core20.AbstractApiRequest {
|
|
11842
11877
|
constructor(deliveryPositionId) {
|
|
11843
11878
|
super(void 0);
|
|
11844
11879
|
this.method = "GET";
|
|
@@ -11856,12 +11891,12 @@ var GetDeliveryPositionDetails = class extends import_sdk_js_core19.AbstractApiR
|
|
|
11856
11891
|
};
|
|
11857
11892
|
|
|
11858
11893
|
// src/requests/delivery_positions/GetDeliveryPositions.ts
|
|
11859
|
-
var
|
|
11894
|
+
var import_sdk_js_core21 = require("@deliverart/sdk-js-core");
|
|
11860
11895
|
var import_sdk_js_global_types9 = require("@deliverart/sdk-js-global-types");
|
|
11861
11896
|
var getDeliveryPositionsQuerySchema = deliveryPositionsQuerySchema;
|
|
11862
11897
|
var getDeliveryPositionsInputSchema = external_exports.undefined();
|
|
11863
11898
|
var getDeliveryPositionsResponseSchema = (0, import_sdk_js_global_types9.createPaginatedSchema)(deliveryPositionSchema);
|
|
11864
|
-
var GetDeliveryPositions = class extends
|
|
11899
|
+
var GetDeliveryPositions = class extends import_sdk_js_core21.AbstractApiRequest {
|
|
11865
11900
|
constructor(options) {
|
|
11866
11901
|
super(void 0, options);
|
|
11867
11902
|
this.method = "GET";
|
|
@@ -11885,11 +11920,11 @@ var GetDeliveryPositions = class extends import_sdk_js_core20.AbstractApiRequest
|
|
|
11885
11920
|
};
|
|
11886
11921
|
|
|
11887
11922
|
// src/requests/delivery_positions/GetDeliveryPositionsFromDelivery.ts
|
|
11888
|
-
var
|
|
11923
|
+
var import_sdk_js_core22 = require("@deliverart/sdk-js-core");
|
|
11889
11924
|
var getDeliveryPositionsFromDeliveryQuerySchema = deliveryPositionsQuerySchema;
|
|
11890
11925
|
var getDeliveryPositionsFromDeliveryInputSchema = external_exports.undefined();
|
|
11891
11926
|
var getDeliveryPositionsFromDeliveryResponseSchema = external_exports.array(deliveryPositionSchema);
|
|
11892
|
-
var GetDeliveryPositionsFromDelivery = class extends
|
|
11927
|
+
var GetDeliveryPositionsFromDelivery = class extends import_sdk_js_core22.AbstractApiRequest {
|
|
11893
11928
|
constructor(deliveryId, options) {
|
|
11894
11929
|
super(void 0, options);
|
|
11895
11930
|
this.method = "GET";
|
|
@@ -11931,6 +11966,7 @@ var GetDeliveryPositionsFromDelivery = class extends import_sdk_js_core21.Abstra
|
|
|
11931
11966
|
StartDelivery,
|
|
11932
11967
|
StartDeliveryOrder,
|
|
11933
11968
|
UpdateDelivery,
|
|
11969
|
+
UpdateDeliveryFee,
|
|
11934
11970
|
createDeliveryFeeInputSchema,
|
|
11935
11971
|
createDeliveryFeeResponseSchema,
|
|
11936
11972
|
createDeliveryInputSchema,
|
|
@@ -11993,9 +12029,12 @@ var GetDeliveryPositionsFromDelivery = class extends import_sdk_js_core21.Abstra
|
|
|
11993
12029
|
startDeliveryOrderInputSchema,
|
|
11994
12030
|
startDeliveryOrderResponseSchema,
|
|
11995
12031
|
startDeliveryResponseSchema,
|
|
12032
|
+
updateDeliveryFeeInputSchema,
|
|
12033
|
+
updateDeliveryFeeResponseSchema,
|
|
11996
12034
|
updateDeliveryInputSchema,
|
|
11997
12035
|
updateDeliveryResponseSchema,
|
|
11998
|
-
|
|
12036
|
+
writableCreateDeliveryFeeSchema,
|
|
11999
12037
|
writableDeliveryPositionSchema,
|
|
12000
|
-
writableDeliverySchema
|
|
12038
|
+
writableDeliverySchema,
|
|
12039
|
+
writableUpdateDeliveryFeeSchema
|
|
12001
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.ZodNonOptional<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.ZodNonOptional<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.ZodNonOptional<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;
|
|
@@ -1574,6 +1599,151 @@ declare class GetDeliveryFeesFromPointOfSale extends AbstractApiRequest<typeof g
|
|
|
1574
1599
|
parseResponse(data: unknown): DeliveryFeeListItem[];
|
|
1575
1600
|
}
|
|
1576
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.ZodNonOptional<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.ZodNonOptional<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.ZodNonOptional<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.ZodNonOptional<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.ZodNonOptional<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.ZodNonOptional<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;
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1577
1747
|
declare const createDeliveryPositionInputSchema: z.ZodObject<{
|
|
1578
1748
|
delivery: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown>>>;
|
|
1579
1749
|
positionData: z.ZodNonOptional<z.ZodObject<{
|
|
@@ -1861,4 +2031,4 @@ type DeliveryPositionIri = z.infer<typeof deliveryPositionIriSchema>;
|
|
|
1861
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>>;
|
|
1862
2032
|
type DeliveryPositionNullableIri = z.infer<typeof deliveryPositionNullableIriSchema>;
|
|
1863
2033
|
|
|
1864
|
-
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, 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.ZodNonOptional<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.ZodNonOptional<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.ZodNonOptional<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;
|
|
@@ -1574,6 +1599,151 @@ declare class GetDeliveryFeesFromPointOfSale extends AbstractApiRequest<typeof g
|
|
|
1574
1599
|
parseResponse(data: unknown): DeliveryFeeListItem[];
|
|
1575
1600
|
}
|
|
1576
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.ZodNonOptional<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.ZodNonOptional<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.ZodNonOptional<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.ZodNonOptional<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.ZodNonOptional<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.ZodNonOptional<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;
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1577
1747
|
declare const createDeliveryPositionInputSchema: z.ZodObject<{
|
|
1578
1748
|
delivery: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/deliveries/:id">, unknown>>>;
|
|
1579
1749
|
positionData: z.ZodNonOptional<z.ZodObject<{
|
|
@@ -1861,4 +2031,4 @@ type DeliveryPositionIri = z.infer<typeof deliveryPositionIriSchema>;
|
|
|
1861
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>>;
|
|
1862
2032
|
type DeliveryPositionNullableIri = z.infer<typeof deliveryPositionNullableIriSchema>;
|
|
1863
2033
|
|
|
1864
|
-
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, 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().required({ type: true });
|
|
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(),
|
|
@@ -11580,7 +11590,7 @@ var UpdateDelivery = class extends AbstractApiRequest11 {
|
|
|
11580
11590
|
|
|
11581
11591
|
// src/requests/delivery_fees/CreateDeliveryFee.ts
|
|
11582
11592
|
import { AbstractApiRequest as AbstractApiRequest12 } from "@deliverart/sdk-js-core";
|
|
11583
|
-
var createDeliveryFeeInputSchema =
|
|
11593
|
+
var createDeliveryFeeInputSchema = writableCreateDeliveryFeeSchema;
|
|
11584
11594
|
var createDeliveryFeeResponseSchema = deliveryFeeDetailsSchema;
|
|
11585
11595
|
var CreateDeliveryFee = class extends AbstractApiRequest12 {
|
|
11586
11596
|
constructor(input) {
|
|
@@ -11698,11 +11708,32 @@ var GetDeliveryFeesFromPointOfSale = class extends AbstractApiRequest16 {
|
|
|
11698
11708
|
}
|
|
11699
11709
|
};
|
|
11700
11710
|
|
|
11701
|
-
// src/requests/
|
|
11711
|
+
// src/requests/delivery_fees/UpdateDeliveryFee.ts
|
|
11702
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";
|
|
11703
11734
|
var createDeliveryPositionInputSchema = writableDeliveryPositionSchema.required();
|
|
11704
11735
|
var createDeliveryPositionResponseSchema = deliveryPositionDetailsSchema;
|
|
11705
|
-
var CreateDeliveryPosition = class extends
|
|
11736
|
+
var CreateDeliveryPosition = class extends AbstractApiRequest18 {
|
|
11706
11737
|
constructor(input) {
|
|
11707
11738
|
super(input);
|
|
11708
11739
|
this.method = "POST";
|
|
@@ -11719,11 +11750,11 @@ var CreateDeliveryPosition = class extends AbstractApiRequest17 {
|
|
|
11719
11750
|
};
|
|
11720
11751
|
|
|
11721
11752
|
// src/requests/delivery_positions/DeleteDeliveryPosition.ts
|
|
11722
|
-
import { AbstractApiRequest as
|
|
11753
|
+
import { AbstractApiRequest as AbstractApiRequest19 } from "@deliverart/sdk-js-core";
|
|
11723
11754
|
import { emptyResponseSchema as emptyResponseSchema3 } from "@deliverart/sdk-js-global-types";
|
|
11724
11755
|
var deleteDeliveryPositionInputSchema = external_exports.undefined();
|
|
11725
11756
|
var deleteDeliveryPositionResponseSchema = emptyResponseSchema3;
|
|
11726
|
-
var DeleteDeliveryPosition = class extends
|
|
11757
|
+
var DeleteDeliveryPosition = class extends AbstractApiRequest19 {
|
|
11727
11758
|
constructor(deliveryPositionId) {
|
|
11728
11759
|
super(void 0);
|
|
11729
11760
|
this.method = "DELETE";
|
|
@@ -11741,10 +11772,10 @@ var DeleteDeliveryPosition = class extends AbstractApiRequest18 {
|
|
|
11741
11772
|
};
|
|
11742
11773
|
|
|
11743
11774
|
// src/requests/delivery_positions/GetDeliveryPositionDetails.ts
|
|
11744
|
-
import { AbstractApiRequest as
|
|
11775
|
+
import { AbstractApiRequest as AbstractApiRequest20 } from "@deliverart/sdk-js-core";
|
|
11745
11776
|
var getDeliveryPositionDetailsInputSchema = external_exports.undefined();
|
|
11746
11777
|
var getDeliveryPositionDetailsResponseSchema = deliveryPositionDetailsSchema;
|
|
11747
|
-
var GetDeliveryPositionDetails = class extends
|
|
11778
|
+
var GetDeliveryPositionDetails = class extends AbstractApiRequest20 {
|
|
11748
11779
|
constructor(deliveryPositionId) {
|
|
11749
11780
|
super(void 0);
|
|
11750
11781
|
this.method = "GET";
|
|
@@ -11762,7 +11793,7 @@ var GetDeliveryPositionDetails = class extends AbstractApiRequest19 {
|
|
|
11762
11793
|
};
|
|
11763
11794
|
|
|
11764
11795
|
// src/requests/delivery_positions/GetDeliveryPositions.ts
|
|
11765
|
-
import { AbstractApiRequest as
|
|
11796
|
+
import { AbstractApiRequest as AbstractApiRequest21 } from "@deliverart/sdk-js-core";
|
|
11766
11797
|
import {
|
|
11767
11798
|
createPaginatedSchema as createPaginatedSchema4,
|
|
11768
11799
|
responseToPagination as responseToPagination4
|
|
@@ -11770,7 +11801,7 @@ import {
|
|
|
11770
11801
|
var getDeliveryPositionsQuerySchema = deliveryPositionsQuerySchema;
|
|
11771
11802
|
var getDeliveryPositionsInputSchema = external_exports.undefined();
|
|
11772
11803
|
var getDeliveryPositionsResponseSchema = createPaginatedSchema4(deliveryPositionSchema);
|
|
11773
|
-
var GetDeliveryPositions = class extends
|
|
11804
|
+
var GetDeliveryPositions = class extends AbstractApiRequest21 {
|
|
11774
11805
|
constructor(options) {
|
|
11775
11806
|
super(void 0, options);
|
|
11776
11807
|
this.method = "GET";
|
|
@@ -11794,11 +11825,11 @@ var GetDeliveryPositions = class extends AbstractApiRequest20 {
|
|
|
11794
11825
|
};
|
|
11795
11826
|
|
|
11796
11827
|
// src/requests/delivery_positions/GetDeliveryPositionsFromDelivery.ts
|
|
11797
|
-
import { AbstractApiRequest as
|
|
11828
|
+
import { AbstractApiRequest as AbstractApiRequest22 } from "@deliverart/sdk-js-core";
|
|
11798
11829
|
var getDeliveryPositionsFromDeliveryQuerySchema = deliveryPositionsQuerySchema;
|
|
11799
11830
|
var getDeliveryPositionsFromDeliveryInputSchema = external_exports.undefined();
|
|
11800
11831
|
var getDeliveryPositionsFromDeliveryResponseSchema = external_exports.array(deliveryPositionSchema);
|
|
11801
|
-
var GetDeliveryPositionsFromDelivery = class extends
|
|
11832
|
+
var GetDeliveryPositionsFromDelivery = class extends AbstractApiRequest22 {
|
|
11802
11833
|
constructor(deliveryId, options) {
|
|
11803
11834
|
super(void 0, options);
|
|
11804
11835
|
this.method = "GET";
|
|
@@ -11839,6 +11870,7 @@ export {
|
|
|
11839
11870
|
StartDelivery,
|
|
11840
11871
|
StartDeliveryOrder,
|
|
11841
11872
|
UpdateDelivery,
|
|
11873
|
+
UpdateDeliveryFee,
|
|
11842
11874
|
createDeliveryFeeInputSchema,
|
|
11843
11875
|
createDeliveryFeeResponseSchema,
|
|
11844
11876
|
createDeliveryInputSchema,
|
|
@@ -11901,9 +11933,12 @@ export {
|
|
|
11901
11933
|
startDeliveryOrderInputSchema,
|
|
11902
11934
|
startDeliveryOrderResponseSchema,
|
|
11903
11935
|
startDeliveryResponseSchema,
|
|
11936
|
+
updateDeliveryFeeInputSchema,
|
|
11937
|
+
updateDeliveryFeeResponseSchema,
|
|
11904
11938
|
updateDeliveryInputSchema,
|
|
11905
11939
|
updateDeliveryResponseSchema,
|
|
11906
|
-
|
|
11940
|
+
writableCreateDeliveryFeeSchema,
|
|
11907
11941
|
writableDeliveryPositionSchema,
|
|
11908
|
-
writableDeliverySchema
|
|
11942
|
+
writableDeliverySchema,
|
|
11943
|
+
writableUpdateDeliveryFeeSchema
|
|
11909
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.6",
|
|
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-order": "2.4.
|
|
23
|
-
"@deliverart/sdk-js-
|
|
24
|
-
"@deliverart/sdk-js-
|
|
25
|
-
"@deliverart/sdk-js-global-types": "2.
|
|
21
|
+
"@deliverart/sdk-js-core": "2.4.6",
|
|
22
|
+
"@deliverart/sdk-js-order": "2.4.6",
|
|
23
|
+
"@deliverart/sdk-js-point-of-sale": "2.4.6",
|
|
24
|
+
"@deliverart/sdk-js-user": "2.4.6",
|
|
25
|
+
"@deliverart/sdk-js-global-types": "2.4.6"
|
|
26
26
|
},
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|