@deliverart/sdk-js-delivery 2.4.5 → 2.4.7
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 +1 -1
- package/dist/index.d.cts +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.js +1 -1
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -11373,7 +11373,7 @@ var makeWritableUpdateDeliveryFeeVariant = (t) => writableDeliveryFeeBase.omit({
|
|
|
11373
11373
|
}).extend({
|
|
11374
11374
|
type: external_exports.literal(t),
|
|
11375
11375
|
settings: settingsByType[t]
|
|
11376
|
-
}).partial();
|
|
11376
|
+
}).partial().required({ type: true });
|
|
11377
11377
|
var writableUpdateDeliveryFeeSchema = external_exports.discriminatedUnion(
|
|
11378
11378
|
"type",
|
|
11379
11379
|
deliveryFeeTypes.map((t) => makeWritableUpdateDeliveryFeeVariant(t))
|
package/dist/index.d.cts
CHANGED
|
@@ -130,7 +130,7 @@ type WritableCreateDeliveryFee = z.infer<typeof writableCreateDeliveryFeeSchema>
|
|
|
130
130
|
declare const writableUpdateDeliveryFeeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
131
131
|
amount: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
132
132
|
taxRate: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
133
|
-
type: z.ZodOptional<z.ZodLiteral<"amount"
|
|
133
|
+
type: z.ZodNonOptional<z.ZodOptional<z.ZodLiteral<"amount">>>;
|
|
134
134
|
settings: z.ZodOptional<z.ZodObject<{
|
|
135
135
|
min: z.ZodCoercedNumber<unknown>;
|
|
136
136
|
max: z.ZodCoercedNumber<unknown>;
|
|
@@ -138,7 +138,7 @@ declare const writableUpdateDeliveryFeeSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
138
138
|
}, z.core.$strip>, z.ZodObject<{
|
|
139
139
|
amount: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
140
140
|
taxRate: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
141
|
-
type: z.ZodOptional<z.ZodLiteral<"distance"
|
|
141
|
+
type: z.ZodNonOptional<z.ZodOptional<z.ZodLiteral<"distance">>>;
|
|
142
142
|
settings: z.ZodOptional<z.ZodObject<{
|
|
143
143
|
min: z.ZodCoercedNumber<unknown>;
|
|
144
144
|
max: z.ZodCoercedNumber<unknown>;
|
|
@@ -146,7 +146,7 @@ declare const writableUpdateDeliveryFeeSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
146
146
|
}, z.core.$strip>, z.ZodObject<{
|
|
147
147
|
amount: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
148
148
|
taxRate: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
149
|
-
type: z.ZodOptional<z.ZodLiteral<"postal_code"
|
|
149
|
+
type: z.ZodNonOptional<z.ZodOptional<z.ZodLiteral<"postal_code">>>;
|
|
150
150
|
settings: z.ZodOptional<z.ZodObject<{
|
|
151
151
|
values: z.ZodArray<z.ZodString>;
|
|
152
152
|
}, z.core.$strip>>;
|
|
@@ -1602,7 +1602,7 @@ declare class GetDeliveryFeesFromPointOfSale extends AbstractApiRequest<typeof g
|
|
|
1602
1602
|
declare const updateDeliveryFeeInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1603
1603
|
amount: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
1604
1604
|
taxRate: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1605
|
-
type: z.ZodOptional<z.ZodLiteral<"amount"
|
|
1605
|
+
type: z.ZodNonOptional<z.ZodOptional<z.ZodLiteral<"amount">>>;
|
|
1606
1606
|
settings: z.ZodOptional<z.ZodObject<{
|
|
1607
1607
|
min: z.ZodCoercedNumber<unknown>;
|
|
1608
1608
|
max: z.ZodCoercedNumber<unknown>;
|
|
@@ -1610,7 +1610,7 @@ declare const updateDeliveryFeeInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1610
1610
|
}, z.core.$strip>, z.ZodObject<{
|
|
1611
1611
|
amount: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
1612
1612
|
taxRate: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1613
|
-
type: z.ZodOptional<z.ZodLiteral<"distance"
|
|
1613
|
+
type: z.ZodNonOptional<z.ZodOptional<z.ZodLiteral<"distance">>>;
|
|
1614
1614
|
settings: z.ZodOptional<z.ZodObject<{
|
|
1615
1615
|
min: z.ZodCoercedNumber<unknown>;
|
|
1616
1616
|
max: z.ZodCoercedNumber<unknown>;
|
|
@@ -1618,7 +1618,7 @@ declare const updateDeliveryFeeInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1618
1618
|
}, z.core.$strip>, z.ZodObject<{
|
|
1619
1619
|
amount: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
1620
1620
|
taxRate: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1621
|
-
type: z.ZodOptional<z.ZodLiteral<"postal_code"
|
|
1621
|
+
type: z.ZodNonOptional<z.ZodOptional<z.ZodLiteral<"postal_code">>>;
|
|
1622
1622
|
settings: z.ZodOptional<z.ZodObject<{
|
|
1623
1623
|
values: z.ZodArray<z.ZodString>;
|
|
1624
1624
|
}, z.core.$strip>>;
|
|
@@ -1674,7 +1674,7 @@ declare class UpdateDeliveryFee extends AbstractApiRequest<typeof updateDelivery
|
|
|
1674
1674
|
readonly inputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1675
1675
|
amount: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
1676
1676
|
taxRate: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1677
|
-
type: z.ZodOptional<z.ZodLiteral<"amount"
|
|
1677
|
+
type: z.ZodNonOptional<z.ZodOptional<z.ZodLiteral<"amount">>>;
|
|
1678
1678
|
settings: z.ZodOptional<z.ZodObject<{
|
|
1679
1679
|
min: z.ZodCoercedNumber<unknown>;
|
|
1680
1680
|
max: z.ZodCoercedNumber<unknown>;
|
|
@@ -1682,7 +1682,7 @@ declare class UpdateDeliveryFee extends AbstractApiRequest<typeof updateDelivery
|
|
|
1682
1682
|
}, z.core.$strip>, z.ZodObject<{
|
|
1683
1683
|
amount: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
1684
1684
|
taxRate: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1685
|
-
type: z.ZodOptional<z.ZodLiteral<"distance"
|
|
1685
|
+
type: z.ZodNonOptional<z.ZodOptional<z.ZodLiteral<"distance">>>;
|
|
1686
1686
|
settings: z.ZodOptional<z.ZodObject<{
|
|
1687
1687
|
min: z.ZodCoercedNumber<unknown>;
|
|
1688
1688
|
max: z.ZodCoercedNumber<unknown>;
|
|
@@ -1690,7 +1690,7 @@ declare class UpdateDeliveryFee extends AbstractApiRequest<typeof updateDelivery
|
|
|
1690
1690
|
}, z.core.$strip>, z.ZodObject<{
|
|
1691
1691
|
amount: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
1692
1692
|
taxRate: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1693
|
-
type: z.ZodOptional<z.ZodLiteral<"postal_code"
|
|
1693
|
+
type: z.ZodNonOptional<z.ZodOptional<z.ZodLiteral<"postal_code">>>;
|
|
1694
1694
|
settings: z.ZodOptional<z.ZodObject<{
|
|
1695
1695
|
values: z.ZodArray<z.ZodString>;
|
|
1696
1696
|
}, z.core.$strip>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -130,7 +130,7 @@ type WritableCreateDeliveryFee = z.infer<typeof writableCreateDeliveryFeeSchema>
|
|
|
130
130
|
declare const writableUpdateDeliveryFeeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
131
131
|
amount: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
132
132
|
taxRate: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
133
|
-
type: z.ZodOptional<z.ZodLiteral<"amount"
|
|
133
|
+
type: z.ZodNonOptional<z.ZodOptional<z.ZodLiteral<"amount">>>;
|
|
134
134
|
settings: z.ZodOptional<z.ZodObject<{
|
|
135
135
|
min: z.ZodCoercedNumber<unknown>;
|
|
136
136
|
max: z.ZodCoercedNumber<unknown>;
|
|
@@ -138,7 +138,7 @@ declare const writableUpdateDeliveryFeeSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
138
138
|
}, z.core.$strip>, z.ZodObject<{
|
|
139
139
|
amount: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
140
140
|
taxRate: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
141
|
-
type: z.ZodOptional<z.ZodLiteral<"distance"
|
|
141
|
+
type: z.ZodNonOptional<z.ZodOptional<z.ZodLiteral<"distance">>>;
|
|
142
142
|
settings: z.ZodOptional<z.ZodObject<{
|
|
143
143
|
min: z.ZodCoercedNumber<unknown>;
|
|
144
144
|
max: z.ZodCoercedNumber<unknown>;
|
|
@@ -146,7 +146,7 @@ declare const writableUpdateDeliveryFeeSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
146
146
|
}, z.core.$strip>, z.ZodObject<{
|
|
147
147
|
amount: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
148
148
|
taxRate: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
149
|
-
type: z.ZodOptional<z.ZodLiteral<"postal_code"
|
|
149
|
+
type: z.ZodNonOptional<z.ZodOptional<z.ZodLiteral<"postal_code">>>;
|
|
150
150
|
settings: z.ZodOptional<z.ZodObject<{
|
|
151
151
|
values: z.ZodArray<z.ZodString>;
|
|
152
152
|
}, z.core.$strip>>;
|
|
@@ -1602,7 +1602,7 @@ declare class GetDeliveryFeesFromPointOfSale extends AbstractApiRequest<typeof g
|
|
|
1602
1602
|
declare const updateDeliveryFeeInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1603
1603
|
amount: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
1604
1604
|
taxRate: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1605
|
-
type: z.ZodOptional<z.ZodLiteral<"amount"
|
|
1605
|
+
type: z.ZodNonOptional<z.ZodOptional<z.ZodLiteral<"amount">>>;
|
|
1606
1606
|
settings: z.ZodOptional<z.ZodObject<{
|
|
1607
1607
|
min: z.ZodCoercedNumber<unknown>;
|
|
1608
1608
|
max: z.ZodCoercedNumber<unknown>;
|
|
@@ -1610,7 +1610,7 @@ declare const updateDeliveryFeeInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1610
1610
|
}, z.core.$strip>, z.ZodObject<{
|
|
1611
1611
|
amount: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
1612
1612
|
taxRate: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1613
|
-
type: z.ZodOptional<z.ZodLiteral<"distance"
|
|
1613
|
+
type: z.ZodNonOptional<z.ZodOptional<z.ZodLiteral<"distance">>>;
|
|
1614
1614
|
settings: z.ZodOptional<z.ZodObject<{
|
|
1615
1615
|
min: z.ZodCoercedNumber<unknown>;
|
|
1616
1616
|
max: z.ZodCoercedNumber<unknown>;
|
|
@@ -1618,7 +1618,7 @@ declare const updateDeliveryFeeInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1618
1618
|
}, z.core.$strip>, z.ZodObject<{
|
|
1619
1619
|
amount: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
1620
1620
|
taxRate: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1621
|
-
type: z.ZodOptional<z.ZodLiteral<"postal_code"
|
|
1621
|
+
type: z.ZodNonOptional<z.ZodOptional<z.ZodLiteral<"postal_code">>>;
|
|
1622
1622
|
settings: z.ZodOptional<z.ZodObject<{
|
|
1623
1623
|
values: z.ZodArray<z.ZodString>;
|
|
1624
1624
|
}, z.core.$strip>>;
|
|
@@ -1674,7 +1674,7 @@ declare class UpdateDeliveryFee extends AbstractApiRequest<typeof updateDelivery
|
|
|
1674
1674
|
readonly inputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1675
1675
|
amount: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
1676
1676
|
taxRate: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1677
|
-
type: z.ZodOptional<z.ZodLiteral<"amount"
|
|
1677
|
+
type: z.ZodNonOptional<z.ZodOptional<z.ZodLiteral<"amount">>>;
|
|
1678
1678
|
settings: z.ZodOptional<z.ZodObject<{
|
|
1679
1679
|
min: z.ZodCoercedNumber<unknown>;
|
|
1680
1680
|
max: z.ZodCoercedNumber<unknown>;
|
|
@@ -1682,7 +1682,7 @@ declare class UpdateDeliveryFee extends AbstractApiRequest<typeof updateDelivery
|
|
|
1682
1682
|
}, z.core.$strip>, z.ZodObject<{
|
|
1683
1683
|
amount: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
1684
1684
|
taxRate: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1685
|
-
type: z.ZodOptional<z.ZodLiteral<"distance"
|
|
1685
|
+
type: z.ZodNonOptional<z.ZodOptional<z.ZodLiteral<"distance">>>;
|
|
1686
1686
|
settings: z.ZodOptional<z.ZodObject<{
|
|
1687
1687
|
min: z.ZodCoercedNumber<unknown>;
|
|
1688
1688
|
max: z.ZodCoercedNumber<unknown>;
|
|
@@ -1690,7 +1690,7 @@ declare class UpdateDeliveryFee extends AbstractApiRequest<typeof updateDelivery
|
|
|
1690
1690
|
}, z.core.$strip>, z.ZodObject<{
|
|
1691
1691
|
amount: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
1692
1692
|
taxRate: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1693
|
-
type: z.ZodOptional<z.ZodLiteral<"postal_code"
|
|
1693
|
+
type: z.ZodNonOptional<z.ZodOptional<z.ZodLiteral<"postal_code">>>;
|
|
1694
1694
|
settings: z.ZodOptional<z.ZodObject<{
|
|
1695
1695
|
values: z.ZodArray<z.ZodString>;
|
|
1696
1696
|
}, z.core.$strip>>;
|
package/dist/index.js
CHANGED
|
@@ -11266,7 +11266,7 @@ var makeWritableUpdateDeliveryFeeVariant = (t) => writableDeliveryFeeBase.omit({
|
|
|
11266
11266
|
}).extend({
|
|
11267
11267
|
type: external_exports.literal(t),
|
|
11268
11268
|
settings: settingsByType[t]
|
|
11269
|
-
}).partial();
|
|
11269
|
+
}).partial().required({ type: true });
|
|
11270
11270
|
var writableUpdateDeliveryFeeSchema = external_exports.discriminatedUnion(
|
|
11271
11271
|
"type",
|
|
11272
11272
|
deliveryFeeTypes.map((t) => makeWritableUpdateDeliveryFeeVariant(t))
|
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.7",
|
|
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-global-types": "2.4.
|
|
23
|
-
"@deliverart/sdk-js-point-of-sale": "2.4.
|
|
24
|
-
"@deliverart/sdk-js-
|
|
25
|
-
"@deliverart/sdk-js-
|
|
21
|
+
"@deliverart/sdk-js-core": "2.4.7",
|
|
22
|
+
"@deliverart/sdk-js-global-types": "2.4.7",
|
|
23
|
+
"@deliverart/sdk-js-point-of-sale": "2.4.7",
|
|
24
|
+
"@deliverart/sdk-js-user": "2.4.7",
|
|
25
|
+
"@deliverart/sdk-js-order": "2.4.7"
|
|
26
26
|
},
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|