@deliverart/sdk-js-delivery 2.2.0 → 2.2.1
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 +2 -2
- package/dist/index.d.cts +100 -100
- package/dist/index.d.ts +100 -100
- package/dist/index.js +2 -2
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -11308,8 +11308,8 @@ var writableDeliveryPositionSchema = deliveryPositionSchema.pick({
|
|
|
11308
11308
|
})
|
|
11309
11309
|
});
|
|
11310
11310
|
var minMax = external_exports.object({
|
|
11311
|
-
min: external_exports.number().gte(0),
|
|
11312
|
-
max: external_exports.number().gte(0)
|
|
11311
|
+
min: external_exports.coerce.number().gte(0),
|
|
11312
|
+
max: external_exports.coerce.number().gte(0)
|
|
11313
11313
|
}).refine((s) => s.max >= s.min, { message: "max_greater_than_min", path: ["max"] });
|
|
11314
11314
|
var settingsByType = {
|
|
11315
11315
|
amount: minMax,
|
package/dist/index.d.cts
CHANGED
|
@@ -71,8 +71,8 @@ declare const deliveryFeeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
71
71
|
updatedAt: z.ZodString;
|
|
72
72
|
type: z.ZodLiteral<"amount">;
|
|
73
73
|
settings: z.ZodObject<{
|
|
74
|
-
min: z.
|
|
75
|
-
max: z.
|
|
74
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
75
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
76
76
|
}, z.core.$strip>;
|
|
77
77
|
}, z.core.$strip>, z.ZodObject<{
|
|
78
78
|
amount: z.ZodString;
|
|
@@ -83,8 +83,8 @@ declare const deliveryFeeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
83
83
|
updatedAt: z.ZodString;
|
|
84
84
|
type: z.ZodLiteral<"distance">;
|
|
85
85
|
settings: z.ZodObject<{
|
|
86
|
-
min: z.
|
|
87
|
-
max: z.
|
|
86
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
87
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
88
88
|
}, z.core.$strip>;
|
|
89
89
|
}, z.core.$strip>, z.ZodObject<{
|
|
90
90
|
amount: z.ZodString;
|
|
@@ -105,8 +105,8 @@ declare const writableDeliveryFeeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
105
105
|
taxRate: z.ZodCoercedNumber<unknown>;
|
|
106
106
|
type: z.ZodLiteral<"amount">;
|
|
107
107
|
settings: z.ZodObject<{
|
|
108
|
-
min: z.
|
|
109
|
-
max: z.
|
|
108
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
109
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
110
110
|
}, z.core.$strip>;
|
|
111
111
|
}, z.core.$strip>, z.ZodObject<{
|
|
112
112
|
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>>;
|
|
@@ -114,8 +114,8 @@ declare const writableDeliveryFeeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
114
114
|
taxRate: z.ZodCoercedNumber<unknown>;
|
|
115
115
|
type: z.ZodLiteral<"distance">;
|
|
116
116
|
settings: z.ZodObject<{
|
|
117
|
-
min: z.
|
|
118
|
-
max: z.
|
|
117
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
118
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
119
119
|
}, z.core.$strip>;
|
|
120
120
|
}, z.core.$strip>, z.ZodObject<{
|
|
121
121
|
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>>;
|
|
@@ -138,8 +138,8 @@ declare const deliveryFeeDetailsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
138
138
|
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>>>;
|
|
139
139
|
type: z.ZodLiteral<"amount">;
|
|
140
140
|
settings: z.ZodObject<{
|
|
141
|
-
min: z.
|
|
142
|
-
max: z.
|
|
141
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
142
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
143
143
|
}, z.core.$strip>;
|
|
144
144
|
}, z.core.$strip>, z.ZodObject<{
|
|
145
145
|
amount: z.ZodString;
|
|
@@ -152,8 +152,8 @@ declare const deliveryFeeDetailsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
152
152
|
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>>>;
|
|
153
153
|
type: z.ZodLiteral<"distance">;
|
|
154
154
|
settings: z.ZodObject<{
|
|
155
|
-
min: z.
|
|
156
|
-
max: z.
|
|
155
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
156
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
157
157
|
}, z.core.$strip>;
|
|
158
158
|
}, z.core.$strip>, z.ZodObject<{
|
|
159
159
|
amount: z.ZodString;
|
|
@@ -464,12 +464,12 @@ declare const getDeliveriesResponseSchema: z.ZodObject<{
|
|
|
464
464
|
updatedAt: z.ZodString;
|
|
465
465
|
}, z.core.$strip>>;
|
|
466
466
|
pagination: z.ZodObject<{
|
|
467
|
-
from: z.
|
|
468
|
-
to: z.
|
|
469
|
-
itemsPerPage: z.
|
|
470
|
-
totalItems: z.
|
|
471
|
-
currentPage: z.
|
|
472
|
-
lastPage: z.
|
|
467
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
468
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
469
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
470
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
471
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
472
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
473
473
|
}, z.core.$strip>;
|
|
474
474
|
}, z.core.$strip>;
|
|
475
475
|
type GetDeliveriesResponse = z.infer<typeof getDeliveriesResponseSchema>;
|
|
@@ -490,12 +490,12 @@ declare class GetDeliveries extends AbstractApiRequest<typeof getDeliveriesInput
|
|
|
490
490
|
updatedAt: z.ZodString;
|
|
491
491
|
}, z.core.$strip>>;
|
|
492
492
|
pagination: z.ZodObject<{
|
|
493
|
-
from: z.
|
|
494
|
-
to: z.
|
|
495
|
-
itemsPerPage: z.
|
|
496
|
-
totalItems: z.
|
|
497
|
-
currentPage: z.
|
|
498
|
-
lastPage: z.
|
|
493
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
494
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
495
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
496
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
497
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
498
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
499
499
|
}, z.core.$strip>;
|
|
500
500
|
}, z.core.$strip>;
|
|
501
501
|
readonly querySchema: z.ZodObject<{
|
|
@@ -605,12 +605,12 @@ declare const getDeliveriesFromUserResponseSchema: z.ZodObject<{
|
|
|
605
605
|
updatedAt: z.ZodString;
|
|
606
606
|
}, z.core.$strip>>;
|
|
607
607
|
pagination: z.ZodObject<{
|
|
608
|
-
from: z.
|
|
609
|
-
to: z.
|
|
610
|
-
itemsPerPage: z.
|
|
611
|
-
totalItems: z.
|
|
612
|
-
currentPage: z.
|
|
613
|
-
lastPage: z.
|
|
608
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
609
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
610
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
611
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
612
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
613
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
614
614
|
}, z.core.$strip>;
|
|
615
615
|
}, z.core.$strip>;
|
|
616
616
|
type GetDeliveriesFromUserResponse = z.infer<typeof getDeliveriesFromUserResponseSchema>;
|
|
@@ -631,12 +631,12 @@ declare class GetDeliveriesFromUser extends AbstractApiRequest<typeof getDeliver
|
|
|
631
631
|
updatedAt: z.ZodString;
|
|
632
632
|
}, z.core.$strip>>;
|
|
633
633
|
pagination: z.ZodObject<{
|
|
634
|
-
from: z.
|
|
635
|
-
to: z.
|
|
636
|
-
itemsPerPage: z.
|
|
637
|
-
totalItems: z.
|
|
638
|
-
currentPage: z.
|
|
639
|
-
lastPage: z.
|
|
634
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
635
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
636
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
637
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
638
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
639
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
640
640
|
}, z.core.$strip>;
|
|
641
641
|
}, z.core.$strip>;
|
|
642
642
|
readonly querySchema: z.ZodObject<{
|
|
@@ -886,8 +886,8 @@ declare const createDeliveryFeeInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
886
886
|
taxRate: z.ZodCoercedNumber<unknown>;
|
|
887
887
|
type: z.ZodLiteral<"amount">;
|
|
888
888
|
settings: z.ZodObject<{
|
|
889
|
-
min: z.
|
|
890
|
-
max: z.
|
|
889
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
890
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
891
891
|
}, z.core.$strip>;
|
|
892
892
|
}, z.core.$strip>, z.ZodObject<{
|
|
893
893
|
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>>;
|
|
@@ -895,8 +895,8 @@ declare const createDeliveryFeeInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
895
895
|
taxRate: z.ZodCoercedNumber<unknown>;
|
|
896
896
|
type: z.ZodLiteral<"distance">;
|
|
897
897
|
settings: z.ZodObject<{
|
|
898
|
-
min: z.
|
|
899
|
-
max: z.
|
|
898
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
899
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
900
900
|
}, z.core.$strip>;
|
|
901
901
|
}, z.core.$strip>, z.ZodObject<{
|
|
902
902
|
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>>;
|
|
@@ -919,8 +919,8 @@ declare const createDeliveryFeeResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
919
919
|
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>>>;
|
|
920
920
|
type: z.ZodLiteral<"amount">;
|
|
921
921
|
settings: z.ZodObject<{
|
|
922
|
-
min: z.
|
|
923
|
-
max: z.
|
|
922
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
923
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
924
924
|
}, z.core.$strip>;
|
|
925
925
|
}, z.core.$strip>, z.ZodObject<{
|
|
926
926
|
amount: z.ZodString;
|
|
@@ -933,8 +933,8 @@ declare const createDeliveryFeeResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
933
933
|
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>>>;
|
|
934
934
|
type: z.ZodLiteral<"distance">;
|
|
935
935
|
settings: z.ZodObject<{
|
|
936
|
-
min: z.
|
|
937
|
-
max: z.
|
|
936
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
937
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
938
938
|
}, z.core.$strip>;
|
|
939
939
|
}, z.core.$strip>, z.ZodObject<{
|
|
940
940
|
amount: z.ZodString;
|
|
@@ -961,8 +961,8 @@ declare class CreateDeliveryFee extends AbstractApiRequest<typeof createDelivery
|
|
|
961
961
|
taxRate: z.ZodCoercedNumber<unknown>;
|
|
962
962
|
type: z.ZodLiteral<"amount">;
|
|
963
963
|
settings: z.ZodObject<{
|
|
964
|
-
min: z.
|
|
965
|
-
max: z.
|
|
964
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
965
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
966
966
|
}, z.core.$strip>;
|
|
967
967
|
}, z.core.$strip>, z.ZodObject<{
|
|
968
968
|
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>>;
|
|
@@ -970,8 +970,8 @@ declare class CreateDeliveryFee extends AbstractApiRequest<typeof createDelivery
|
|
|
970
970
|
taxRate: z.ZodCoercedNumber<unknown>;
|
|
971
971
|
type: z.ZodLiteral<"distance">;
|
|
972
972
|
settings: z.ZodObject<{
|
|
973
|
-
min: z.
|
|
974
|
-
max: z.
|
|
973
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
974
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
975
975
|
}, z.core.$strip>;
|
|
976
976
|
}, z.core.$strip>, z.ZodObject<{
|
|
977
977
|
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>>;
|
|
@@ -993,8 +993,8 @@ declare class CreateDeliveryFee extends AbstractApiRequest<typeof createDelivery
|
|
|
993
993
|
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>>>;
|
|
994
994
|
type: z.ZodLiteral<"amount">;
|
|
995
995
|
settings: z.ZodObject<{
|
|
996
|
-
min: z.
|
|
997
|
-
max: z.
|
|
996
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
997
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
998
998
|
}, z.core.$strip>;
|
|
999
999
|
}, z.core.$strip>, z.ZodObject<{
|
|
1000
1000
|
amount: z.ZodString;
|
|
@@ -1007,8 +1007,8 @@ declare class CreateDeliveryFee extends AbstractApiRequest<typeof createDelivery
|
|
|
1007
1007
|
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>>>;
|
|
1008
1008
|
type: z.ZodLiteral<"distance">;
|
|
1009
1009
|
settings: z.ZodObject<{
|
|
1010
|
-
min: z.
|
|
1011
|
-
max: z.
|
|
1010
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1011
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1012
1012
|
}, z.core.$strip>;
|
|
1013
1013
|
}, z.core.$strip>, z.ZodObject<{
|
|
1014
1014
|
amount: z.ZodString;
|
|
@@ -1058,8 +1058,8 @@ declare const getDeliveryFeeDetailsResponseSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
1058
1058
|
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>>>;
|
|
1059
1059
|
type: z.ZodLiteral<"amount">;
|
|
1060
1060
|
settings: z.ZodObject<{
|
|
1061
|
-
min: z.
|
|
1062
|
-
max: z.
|
|
1061
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1062
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1063
1063
|
}, z.core.$strip>;
|
|
1064
1064
|
}, z.core.$strip>, z.ZodObject<{
|
|
1065
1065
|
amount: z.ZodString;
|
|
@@ -1072,8 +1072,8 @@ declare const getDeliveryFeeDetailsResponseSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
1072
1072
|
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>>>;
|
|
1073
1073
|
type: z.ZodLiteral<"distance">;
|
|
1074
1074
|
settings: z.ZodObject<{
|
|
1075
|
-
min: z.
|
|
1076
|
-
max: z.
|
|
1075
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1076
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1077
1077
|
}, z.core.$strip>;
|
|
1078
1078
|
}, z.core.$strip>, z.ZodObject<{
|
|
1079
1079
|
amount: z.ZodString;
|
|
@@ -1106,8 +1106,8 @@ declare class GetDeliveryFeeDetails extends AbstractApiRequest<typeof getDeliver
|
|
|
1106
1106
|
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>>>;
|
|
1107
1107
|
type: z.ZodLiteral<"amount">;
|
|
1108
1108
|
settings: z.ZodObject<{
|
|
1109
|
-
min: z.
|
|
1110
|
-
max: z.
|
|
1109
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1110
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1111
1111
|
}, z.core.$strip>;
|
|
1112
1112
|
}, z.core.$strip>, z.ZodObject<{
|
|
1113
1113
|
amount: z.ZodString;
|
|
@@ -1120,8 +1120,8 @@ declare class GetDeliveryFeeDetails extends AbstractApiRequest<typeof getDeliver
|
|
|
1120
1120
|
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>>>;
|
|
1121
1121
|
type: z.ZodLiteral<"distance">;
|
|
1122
1122
|
settings: z.ZodObject<{
|
|
1123
|
-
min: z.
|
|
1124
|
-
max: z.
|
|
1123
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1124
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1125
1125
|
}, z.core.$strip>;
|
|
1126
1126
|
}, z.core.$strip>, z.ZodObject<{
|
|
1127
1127
|
amount: z.ZodString;
|
|
@@ -1198,8 +1198,8 @@ declare const getDeliveryFeesResponseSchema: z.ZodObject<{
|
|
|
1198
1198
|
updatedAt: z.ZodString;
|
|
1199
1199
|
type: z.ZodLiteral<"amount">;
|
|
1200
1200
|
settings: z.ZodObject<{
|
|
1201
|
-
min: z.
|
|
1202
|
-
max: z.
|
|
1201
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1202
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1203
1203
|
}, z.core.$strip>;
|
|
1204
1204
|
}, z.core.$strip>, z.ZodObject<{
|
|
1205
1205
|
amount: z.ZodString;
|
|
@@ -1210,8 +1210,8 @@ declare const getDeliveryFeesResponseSchema: z.ZodObject<{
|
|
|
1210
1210
|
updatedAt: z.ZodString;
|
|
1211
1211
|
type: z.ZodLiteral<"distance">;
|
|
1212
1212
|
settings: z.ZodObject<{
|
|
1213
|
-
min: z.
|
|
1214
|
-
max: z.
|
|
1213
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1214
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1215
1215
|
}, z.core.$strip>;
|
|
1216
1216
|
}, z.core.$strip>, z.ZodObject<{
|
|
1217
1217
|
amount: z.ZodString;
|
|
@@ -1226,12 +1226,12 @@ declare const getDeliveryFeesResponseSchema: z.ZodObject<{
|
|
|
1226
1226
|
}, z.core.$strip>;
|
|
1227
1227
|
}, z.core.$strip>]>>;
|
|
1228
1228
|
pagination: z.ZodObject<{
|
|
1229
|
-
from: z.
|
|
1230
|
-
to: z.
|
|
1231
|
-
itemsPerPage: z.
|
|
1232
|
-
totalItems: z.
|
|
1233
|
-
currentPage: z.
|
|
1234
|
-
lastPage: z.
|
|
1229
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
1230
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
1231
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
1232
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
1233
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1234
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1235
1235
|
}, z.core.$strip>;
|
|
1236
1236
|
}, z.core.$strip>;
|
|
1237
1237
|
type GetDeliveryFeesResponse = z.infer<typeof getDeliveryFeesResponseSchema>;
|
|
@@ -1250,8 +1250,8 @@ declare class GetDeliveryFees extends AbstractApiRequest<typeof getDeliveryFeesI
|
|
|
1250
1250
|
updatedAt: z.ZodString;
|
|
1251
1251
|
type: z.ZodLiteral<"amount">;
|
|
1252
1252
|
settings: z.ZodObject<{
|
|
1253
|
-
min: z.
|
|
1254
|
-
max: z.
|
|
1253
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1254
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1255
1255
|
}, z.core.$strip>;
|
|
1256
1256
|
}, z.core.$strip>, z.ZodObject<{
|
|
1257
1257
|
amount: z.ZodString;
|
|
@@ -1262,8 +1262,8 @@ declare class GetDeliveryFees extends AbstractApiRequest<typeof getDeliveryFeesI
|
|
|
1262
1262
|
updatedAt: z.ZodString;
|
|
1263
1263
|
type: z.ZodLiteral<"distance">;
|
|
1264
1264
|
settings: z.ZodObject<{
|
|
1265
|
-
min: z.
|
|
1266
|
-
max: z.
|
|
1265
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1266
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1267
1267
|
}, z.core.$strip>;
|
|
1268
1268
|
}, z.core.$strip>, z.ZodObject<{
|
|
1269
1269
|
amount: z.ZodString;
|
|
@@ -1278,12 +1278,12 @@ declare class GetDeliveryFees extends AbstractApiRequest<typeof getDeliveryFeesI
|
|
|
1278
1278
|
}, z.core.$strip>;
|
|
1279
1279
|
}, z.core.$strip>]>>;
|
|
1280
1280
|
pagination: z.ZodObject<{
|
|
1281
|
-
from: z.
|
|
1282
|
-
to: z.
|
|
1283
|
-
itemsPerPage: z.
|
|
1284
|
-
totalItems: z.
|
|
1285
|
-
currentPage: z.
|
|
1286
|
-
lastPage: z.
|
|
1281
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
1282
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
1283
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
1284
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
1285
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1286
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1287
1287
|
}, z.core.$strip>;
|
|
1288
1288
|
}, z.core.$strip>;
|
|
1289
1289
|
readonly querySchema: z.ZodObject<{
|
|
@@ -1388,8 +1388,8 @@ declare const getDeliveryFeesFromPointOfSaleResponseSchema: z.ZodArray<z.ZodDisc
|
|
|
1388
1388
|
updatedAt: z.ZodString;
|
|
1389
1389
|
type: z.ZodLiteral<"amount">;
|
|
1390
1390
|
settings: z.ZodObject<{
|
|
1391
|
-
min: z.
|
|
1392
|
-
max: z.
|
|
1391
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1392
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1393
1393
|
}, z.core.$strip>;
|
|
1394
1394
|
}, z.core.$strip>, z.ZodObject<{
|
|
1395
1395
|
amount: z.ZodString;
|
|
@@ -1400,8 +1400,8 @@ declare const getDeliveryFeesFromPointOfSaleResponseSchema: z.ZodArray<z.ZodDisc
|
|
|
1400
1400
|
updatedAt: z.ZodString;
|
|
1401
1401
|
type: z.ZodLiteral<"distance">;
|
|
1402
1402
|
settings: z.ZodObject<{
|
|
1403
|
-
min: z.
|
|
1404
|
-
max: z.
|
|
1403
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1404
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1405
1405
|
}, z.core.$strip>;
|
|
1406
1406
|
}, z.core.$strip>, z.ZodObject<{
|
|
1407
1407
|
amount: z.ZodString;
|
|
@@ -1430,8 +1430,8 @@ declare class GetDeliveryFeesFromPointOfSale extends AbstractApiRequest<typeof g
|
|
|
1430
1430
|
updatedAt: z.ZodString;
|
|
1431
1431
|
type: z.ZodLiteral<"amount">;
|
|
1432
1432
|
settings: z.ZodObject<{
|
|
1433
|
-
min: z.
|
|
1434
|
-
max: z.
|
|
1433
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1434
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1435
1435
|
}, z.core.$strip>;
|
|
1436
1436
|
}, z.core.$strip>, z.ZodObject<{
|
|
1437
1437
|
amount: z.ZodString;
|
|
@@ -1442,8 +1442,8 @@ declare class GetDeliveryFeesFromPointOfSale extends AbstractApiRequest<typeof g
|
|
|
1442
1442
|
updatedAt: z.ZodString;
|
|
1443
1443
|
type: z.ZodLiteral<"distance">;
|
|
1444
1444
|
settings: z.ZodObject<{
|
|
1445
|
-
min: z.
|
|
1446
|
-
max: z.
|
|
1445
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1446
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1447
1447
|
}, z.core.$strip>;
|
|
1448
1448
|
}, z.core.$strip>, z.ZodObject<{
|
|
1449
1449
|
amount: z.ZodString;
|
|
@@ -1641,12 +1641,12 @@ declare const getDeliveryPositionsResponseSchema: z.ZodObject<{
|
|
|
1641
1641
|
updatedAt: z.ZodString;
|
|
1642
1642
|
}, z.core.$strip>>;
|
|
1643
1643
|
pagination: z.ZodObject<{
|
|
1644
|
-
from: z.
|
|
1645
|
-
to: z.
|
|
1646
|
-
itemsPerPage: z.
|
|
1647
|
-
totalItems: z.
|
|
1648
|
-
currentPage: z.
|
|
1649
|
-
lastPage: z.
|
|
1644
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
1645
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
1646
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
1647
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
1648
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1649
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1650
1650
|
}, z.core.$strip>;
|
|
1651
1651
|
}, z.core.$strip>;
|
|
1652
1652
|
type GetDeliveryPositionsResponse = z.infer<typeof getDeliveryPositionsResponseSchema>;
|
|
@@ -1667,12 +1667,12 @@ declare class GetDeliveryPositions extends AbstractApiRequest<typeof getDelivery
|
|
|
1667
1667
|
updatedAt: z.ZodString;
|
|
1668
1668
|
}, z.core.$strip>>;
|
|
1669
1669
|
pagination: z.ZodObject<{
|
|
1670
|
-
from: z.
|
|
1671
|
-
to: z.
|
|
1672
|
-
itemsPerPage: z.
|
|
1673
|
-
totalItems: z.
|
|
1674
|
-
currentPage: z.
|
|
1675
|
-
lastPage: z.
|
|
1670
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
1671
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
1672
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
1673
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
1674
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1675
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1676
1676
|
}, z.core.$strip>;
|
|
1677
1677
|
}, z.core.$strip>;
|
|
1678
1678
|
readonly querySchema: z.ZodObject<{
|
package/dist/index.d.ts
CHANGED
|
@@ -71,8 +71,8 @@ declare const deliveryFeeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
71
71
|
updatedAt: z.ZodString;
|
|
72
72
|
type: z.ZodLiteral<"amount">;
|
|
73
73
|
settings: z.ZodObject<{
|
|
74
|
-
min: z.
|
|
75
|
-
max: z.
|
|
74
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
75
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
76
76
|
}, z.core.$strip>;
|
|
77
77
|
}, z.core.$strip>, z.ZodObject<{
|
|
78
78
|
amount: z.ZodString;
|
|
@@ -83,8 +83,8 @@ declare const deliveryFeeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
83
83
|
updatedAt: z.ZodString;
|
|
84
84
|
type: z.ZodLiteral<"distance">;
|
|
85
85
|
settings: z.ZodObject<{
|
|
86
|
-
min: z.
|
|
87
|
-
max: z.
|
|
86
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
87
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
88
88
|
}, z.core.$strip>;
|
|
89
89
|
}, z.core.$strip>, z.ZodObject<{
|
|
90
90
|
amount: z.ZodString;
|
|
@@ -105,8 +105,8 @@ declare const writableDeliveryFeeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
105
105
|
taxRate: z.ZodCoercedNumber<unknown>;
|
|
106
106
|
type: z.ZodLiteral<"amount">;
|
|
107
107
|
settings: z.ZodObject<{
|
|
108
|
-
min: z.
|
|
109
|
-
max: z.
|
|
108
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
109
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
110
110
|
}, z.core.$strip>;
|
|
111
111
|
}, z.core.$strip>, z.ZodObject<{
|
|
112
112
|
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>>;
|
|
@@ -114,8 +114,8 @@ declare const writableDeliveryFeeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
114
114
|
taxRate: z.ZodCoercedNumber<unknown>;
|
|
115
115
|
type: z.ZodLiteral<"distance">;
|
|
116
116
|
settings: z.ZodObject<{
|
|
117
|
-
min: z.
|
|
118
|
-
max: z.
|
|
117
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
118
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
119
119
|
}, z.core.$strip>;
|
|
120
120
|
}, z.core.$strip>, z.ZodObject<{
|
|
121
121
|
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>>;
|
|
@@ -138,8 +138,8 @@ declare const deliveryFeeDetailsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
138
138
|
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>>>;
|
|
139
139
|
type: z.ZodLiteral<"amount">;
|
|
140
140
|
settings: z.ZodObject<{
|
|
141
|
-
min: z.
|
|
142
|
-
max: z.
|
|
141
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
142
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
143
143
|
}, z.core.$strip>;
|
|
144
144
|
}, z.core.$strip>, z.ZodObject<{
|
|
145
145
|
amount: z.ZodString;
|
|
@@ -152,8 +152,8 @@ declare const deliveryFeeDetailsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
152
152
|
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>>>;
|
|
153
153
|
type: z.ZodLiteral<"distance">;
|
|
154
154
|
settings: z.ZodObject<{
|
|
155
|
-
min: z.
|
|
156
|
-
max: z.
|
|
155
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
156
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
157
157
|
}, z.core.$strip>;
|
|
158
158
|
}, z.core.$strip>, z.ZodObject<{
|
|
159
159
|
amount: z.ZodString;
|
|
@@ -464,12 +464,12 @@ declare const getDeliveriesResponseSchema: z.ZodObject<{
|
|
|
464
464
|
updatedAt: z.ZodString;
|
|
465
465
|
}, z.core.$strip>>;
|
|
466
466
|
pagination: z.ZodObject<{
|
|
467
|
-
from: z.
|
|
468
|
-
to: z.
|
|
469
|
-
itemsPerPage: z.
|
|
470
|
-
totalItems: z.
|
|
471
|
-
currentPage: z.
|
|
472
|
-
lastPage: z.
|
|
467
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
468
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
469
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
470
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
471
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
472
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
473
473
|
}, z.core.$strip>;
|
|
474
474
|
}, z.core.$strip>;
|
|
475
475
|
type GetDeliveriesResponse = z.infer<typeof getDeliveriesResponseSchema>;
|
|
@@ -490,12 +490,12 @@ declare class GetDeliveries extends AbstractApiRequest<typeof getDeliveriesInput
|
|
|
490
490
|
updatedAt: z.ZodString;
|
|
491
491
|
}, z.core.$strip>>;
|
|
492
492
|
pagination: z.ZodObject<{
|
|
493
|
-
from: z.
|
|
494
|
-
to: z.
|
|
495
|
-
itemsPerPage: z.
|
|
496
|
-
totalItems: z.
|
|
497
|
-
currentPage: z.
|
|
498
|
-
lastPage: z.
|
|
493
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
494
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
495
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
496
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
497
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
498
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
499
499
|
}, z.core.$strip>;
|
|
500
500
|
}, z.core.$strip>;
|
|
501
501
|
readonly querySchema: z.ZodObject<{
|
|
@@ -605,12 +605,12 @@ declare const getDeliveriesFromUserResponseSchema: z.ZodObject<{
|
|
|
605
605
|
updatedAt: z.ZodString;
|
|
606
606
|
}, z.core.$strip>>;
|
|
607
607
|
pagination: z.ZodObject<{
|
|
608
|
-
from: z.
|
|
609
|
-
to: z.
|
|
610
|
-
itemsPerPage: z.
|
|
611
|
-
totalItems: z.
|
|
612
|
-
currentPage: z.
|
|
613
|
-
lastPage: z.
|
|
608
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
609
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
610
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
611
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
612
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
613
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
614
614
|
}, z.core.$strip>;
|
|
615
615
|
}, z.core.$strip>;
|
|
616
616
|
type GetDeliveriesFromUserResponse = z.infer<typeof getDeliveriesFromUserResponseSchema>;
|
|
@@ -631,12 +631,12 @@ declare class GetDeliveriesFromUser extends AbstractApiRequest<typeof getDeliver
|
|
|
631
631
|
updatedAt: z.ZodString;
|
|
632
632
|
}, z.core.$strip>>;
|
|
633
633
|
pagination: z.ZodObject<{
|
|
634
|
-
from: z.
|
|
635
|
-
to: z.
|
|
636
|
-
itemsPerPage: z.
|
|
637
|
-
totalItems: z.
|
|
638
|
-
currentPage: z.
|
|
639
|
-
lastPage: z.
|
|
634
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
635
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
636
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
637
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
638
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
639
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
640
640
|
}, z.core.$strip>;
|
|
641
641
|
}, z.core.$strip>;
|
|
642
642
|
readonly querySchema: z.ZodObject<{
|
|
@@ -886,8 +886,8 @@ declare const createDeliveryFeeInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
886
886
|
taxRate: z.ZodCoercedNumber<unknown>;
|
|
887
887
|
type: z.ZodLiteral<"amount">;
|
|
888
888
|
settings: z.ZodObject<{
|
|
889
|
-
min: z.
|
|
890
|
-
max: z.
|
|
889
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
890
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
891
891
|
}, z.core.$strip>;
|
|
892
892
|
}, z.core.$strip>, z.ZodObject<{
|
|
893
893
|
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>>;
|
|
@@ -895,8 +895,8 @@ declare const createDeliveryFeeInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
895
895
|
taxRate: z.ZodCoercedNumber<unknown>;
|
|
896
896
|
type: z.ZodLiteral<"distance">;
|
|
897
897
|
settings: z.ZodObject<{
|
|
898
|
-
min: z.
|
|
899
|
-
max: z.
|
|
898
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
899
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
900
900
|
}, z.core.$strip>;
|
|
901
901
|
}, z.core.$strip>, z.ZodObject<{
|
|
902
902
|
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>>;
|
|
@@ -919,8 +919,8 @@ declare const createDeliveryFeeResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
919
919
|
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>>>;
|
|
920
920
|
type: z.ZodLiteral<"amount">;
|
|
921
921
|
settings: z.ZodObject<{
|
|
922
|
-
min: z.
|
|
923
|
-
max: z.
|
|
922
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
923
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
924
924
|
}, z.core.$strip>;
|
|
925
925
|
}, z.core.$strip>, z.ZodObject<{
|
|
926
926
|
amount: z.ZodString;
|
|
@@ -933,8 +933,8 @@ declare const createDeliveryFeeResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
933
933
|
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>>>;
|
|
934
934
|
type: z.ZodLiteral<"distance">;
|
|
935
935
|
settings: z.ZodObject<{
|
|
936
|
-
min: z.
|
|
937
|
-
max: z.
|
|
936
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
937
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
938
938
|
}, z.core.$strip>;
|
|
939
939
|
}, z.core.$strip>, z.ZodObject<{
|
|
940
940
|
amount: z.ZodString;
|
|
@@ -961,8 +961,8 @@ declare class CreateDeliveryFee extends AbstractApiRequest<typeof createDelivery
|
|
|
961
961
|
taxRate: z.ZodCoercedNumber<unknown>;
|
|
962
962
|
type: z.ZodLiteral<"amount">;
|
|
963
963
|
settings: z.ZodObject<{
|
|
964
|
-
min: z.
|
|
965
|
-
max: z.
|
|
964
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
965
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
966
966
|
}, z.core.$strip>;
|
|
967
967
|
}, z.core.$strip>, z.ZodObject<{
|
|
968
968
|
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>>;
|
|
@@ -970,8 +970,8 @@ declare class CreateDeliveryFee extends AbstractApiRequest<typeof createDelivery
|
|
|
970
970
|
taxRate: z.ZodCoercedNumber<unknown>;
|
|
971
971
|
type: z.ZodLiteral<"distance">;
|
|
972
972
|
settings: z.ZodObject<{
|
|
973
|
-
min: z.
|
|
974
|
-
max: z.
|
|
973
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
974
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
975
975
|
}, z.core.$strip>;
|
|
976
976
|
}, z.core.$strip>, z.ZodObject<{
|
|
977
977
|
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>>;
|
|
@@ -993,8 +993,8 @@ declare class CreateDeliveryFee extends AbstractApiRequest<typeof createDelivery
|
|
|
993
993
|
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>>>;
|
|
994
994
|
type: z.ZodLiteral<"amount">;
|
|
995
995
|
settings: z.ZodObject<{
|
|
996
|
-
min: z.
|
|
997
|
-
max: z.
|
|
996
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
997
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
998
998
|
}, z.core.$strip>;
|
|
999
999
|
}, z.core.$strip>, z.ZodObject<{
|
|
1000
1000
|
amount: z.ZodString;
|
|
@@ -1007,8 +1007,8 @@ declare class CreateDeliveryFee extends AbstractApiRequest<typeof createDelivery
|
|
|
1007
1007
|
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>>>;
|
|
1008
1008
|
type: z.ZodLiteral<"distance">;
|
|
1009
1009
|
settings: z.ZodObject<{
|
|
1010
|
-
min: z.
|
|
1011
|
-
max: z.
|
|
1010
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1011
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1012
1012
|
}, z.core.$strip>;
|
|
1013
1013
|
}, z.core.$strip>, z.ZodObject<{
|
|
1014
1014
|
amount: z.ZodString;
|
|
@@ -1058,8 +1058,8 @@ declare const getDeliveryFeeDetailsResponseSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
1058
1058
|
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>>>;
|
|
1059
1059
|
type: z.ZodLiteral<"amount">;
|
|
1060
1060
|
settings: z.ZodObject<{
|
|
1061
|
-
min: z.
|
|
1062
|
-
max: z.
|
|
1061
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1062
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1063
1063
|
}, z.core.$strip>;
|
|
1064
1064
|
}, z.core.$strip>, z.ZodObject<{
|
|
1065
1065
|
amount: z.ZodString;
|
|
@@ -1072,8 +1072,8 @@ declare const getDeliveryFeeDetailsResponseSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
1072
1072
|
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>>>;
|
|
1073
1073
|
type: z.ZodLiteral<"distance">;
|
|
1074
1074
|
settings: z.ZodObject<{
|
|
1075
|
-
min: z.
|
|
1076
|
-
max: z.
|
|
1075
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1076
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1077
1077
|
}, z.core.$strip>;
|
|
1078
1078
|
}, z.core.$strip>, z.ZodObject<{
|
|
1079
1079
|
amount: z.ZodString;
|
|
@@ -1106,8 +1106,8 @@ declare class GetDeliveryFeeDetails extends AbstractApiRequest<typeof getDeliver
|
|
|
1106
1106
|
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>>>;
|
|
1107
1107
|
type: z.ZodLiteral<"amount">;
|
|
1108
1108
|
settings: z.ZodObject<{
|
|
1109
|
-
min: z.
|
|
1110
|
-
max: z.
|
|
1109
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1110
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1111
1111
|
}, z.core.$strip>;
|
|
1112
1112
|
}, z.core.$strip>, z.ZodObject<{
|
|
1113
1113
|
amount: z.ZodString;
|
|
@@ -1120,8 +1120,8 @@ declare class GetDeliveryFeeDetails extends AbstractApiRequest<typeof getDeliver
|
|
|
1120
1120
|
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>>>;
|
|
1121
1121
|
type: z.ZodLiteral<"distance">;
|
|
1122
1122
|
settings: z.ZodObject<{
|
|
1123
|
-
min: z.
|
|
1124
|
-
max: z.
|
|
1123
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1124
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1125
1125
|
}, z.core.$strip>;
|
|
1126
1126
|
}, z.core.$strip>, z.ZodObject<{
|
|
1127
1127
|
amount: z.ZodString;
|
|
@@ -1198,8 +1198,8 @@ declare const getDeliveryFeesResponseSchema: z.ZodObject<{
|
|
|
1198
1198
|
updatedAt: z.ZodString;
|
|
1199
1199
|
type: z.ZodLiteral<"amount">;
|
|
1200
1200
|
settings: z.ZodObject<{
|
|
1201
|
-
min: z.
|
|
1202
|
-
max: z.
|
|
1201
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1202
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1203
1203
|
}, z.core.$strip>;
|
|
1204
1204
|
}, z.core.$strip>, z.ZodObject<{
|
|
1205
1205
|
amount: z.ZodString;
|
|
@@ -1210,8 +1210,8 @@ declare const getDeliveryFeesResponseSchema: z.ZodObject<{
|
|
|
1210
1210
|
updatedAt: z.ZodString;
|
|
1211
1211
|
type: z.ZodLiteral<"distance">;
|
|
1212
1212
|
settings: z.ZodObject<{
|
|
1213
|
-
min: z.
|
|
1214
|
-
max: z.
|
|
1213
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1214
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1215
1215
|
}, z.core.$strip>;
|
|
1216
1216
|
}, z.core.$strip>, z.ZodObject<{
|
|
1217
1217
|
amount: z.ZodString;
|
|
@@ -1226,12 +1226,12 @@ declare const getDeliveryFeesResponseSchema: z.ZodObject<{
|
|
|
1226
1226
|
}, z.core.$strip>;
|
|
1227
1227
|
}, z.core.$strip>]>>;
|
|
1228
1228
|
pagination: z.ZodObject<{
|
|
1229
|
-
from: z.
|
|
1230
|
-
to: z.
|
|
1231
|
-
itemsPerPage: z.
|
|
1232
|
-
totalItems: z.
|
|
1233
|
-
currentPage: z.
|
|
1234
|
-
lastPage: z.
|
|
1229
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
1230
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
1231
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
1232
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
1233
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1234
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1235
1235
|
}, z.core.$strip>;
|
|
1236
1236
|
}, z.core.$strip>;
|
|
1237
1237
|
type GetDeliveryFeesResponse = z.infer<typeof getDeliveryFeesResponseSchema>;
|
|
@@ -1250,8 +1250,8 @@ declare class GetDeliveryFees extends AbstractApiRequest<typeof getDeliveryFeesI
|
|
|
1250
1250
|
updatedAt: z.ZodString;
|
|
1251
1251
|
type: z.ZodLiteral<"amount">;
|
|
1252
1252
|
settings: z.ZodObject<{
|
|
1253
|
-
min: z.
|
|
1254
|
-
max: z.
|
|
1253
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1254
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1255
1255
|
}, z.core.$strip>;
|
|
1256
1256
|
}, z.core.$strip>, z.ZodObject<{
|
|
1257
1257
|
amount: z.ZodString;
|
|
@@ -1262,8 +1262,8 @@ declare class GetDeliveryFees extends AbstractApiRequest<typeof getDeliveryFeesI
|
|
|
1262
1262
|
updatedAt: z.ZodString;
|
|
1263
1263
|
type: z.ZodLiteral<"distance">;
|
|
1264
1264
|
settings: z.ZodObject<{
|
|
1265
|
-
min: z.
|
|
1266
|
-
max: z.
|
|
1265
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1266
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1267
1267
|
}, z.core.$strip>;
|
|
1268
1268
|
}, z.core.$strip>, z.ZodObject<{
|
|
1269
1269
|
amount: z.ZodString;
|
|
@@ -1278,12 +1278,12 @@ declare class GetDeliveryFees extends AbstractApiRequest<typeof getDeliveryFeesI
|
|
|
1278
1278
|
}, z.core.$strip>;
|
|
1279
1279
|
}, z.core.$strip>]>>;
|
|
1280
1280
|
pagination: z.ZodObject<{
|
|
1281
|
-
from: z.
|
|
1282
|
-
to: z.
|
|
1283
|
-
itemsPerPage: z.
|
|
1284
|
-
totalItems: z.
|
|
1285
|
-
currentPage: z.
|
|
1286
|
-
lastPage: z.
|
|
1281
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
1282
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
1283
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
1284
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
1285
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1286
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1287
1287
|
}, z.core.$strip>;
|
|
1288
1288
|
}, z.core.$strip>;
|
|
1289
1289
|
readonly querySchema: z.ZodObject<{
|
|
@@ -1388,8 +1388,8 @@ declare const getDeliveryFeesFromPointOfSaleResponseSchema: z.ZodArray<z.ZodDisc
|
|
|
1388
1388
|
updatedAt: z.ZodString;
|
|
1389
1389
|
type: z.ZodLiteral<"amount">;
|
|
1390
1390
|
settings: z.ZodObject<{
|
|
1391
|
-
min: z.
|
|
1392
|
-
max: z.
|
|
1391
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1392
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1393
1393
|
}, z.core.$strip>;
|
|
1394
1394
|
}, z.core.$strip>, z.ZodObject<{
|
|
1395
1395
|
amount: z.ZodString;
|
|
@@ -1400,8 +1400,8 @@ declare const getDeliveryFeesFromPointOfSaleResponseSchema: z.ZodArray<z.ZodDisc
|
|
|
1400
1400
|
updatedAt: z.ZodString;
|
|
1401
1401
|
type: z.ZodLiteral<"distance">;
|
|
1402
1402
|
settings: z.ZodObject<{
|
|
1403
|
-
min: z.
|
|
1404
|
-
max: z.
|
|
1403
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1404
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1405
1405
|
}, z.core.$strip>;
|
|
1406
1406
|
}, z.core.$strip>, z.ZodObject<{
|
|
1407
1407
|
amount: z.ZodString;
|
|
@@ -1430,8 +1430,8 @@ declare class GetDeliveryFeesFromPointOfSale extends AbstractApiRequest<typeof g
|
|
|
1430
1430
|
updatedAt: z.ZodString;
|
|
1431
1431
|
type: z.ZodLiteral<"amount">;
|
|
1432
1432
|
settings: z.ZodObject<{
|
|
1433
|
-
min: z.
|
|
1434
|
-
max: z.
|
|
1433
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1434
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1435
1435
|
}, z.core.$strip>;
|
|
1436
1436
|
}, z.core.$strip>, z.ZodObject<{
|
|
1437
1437
|
amount: z.ZodString;
|
|
@@ -1442,8 +1442,8 @@ declare class GetDeliveryFeesFromPointOfSale extends AbstractApiRequest<typeof g
|
|
|
1442
1442
|
updatedAt: z.ZodString;
|
|
1443
1443
|
type: z.ZodLiteral<"distance">;
|
|
1444
1444
|
settings: z.ZodObject<{
|
|
1445
|
-
min: z.
|
|
1446
|
-
max: z.
|
|
1445
|
+
min: z.ZodCoercedNumber<unknown>;
|
|
1446
|
+
max: z.ZodCoercedNumber<unknown>;
|
|
1447
1447
|
}, z.core.$strip>;
|
|
1448
1448
|
}, z.core.$strip>, z.ZodObject<{
|
|
1449
1449
|
amount: z.ZodString;
|
|
@@ -1641,12 +1641,12 @@ declare const getDeliveryPositionsResponseSchema: z.ZodObject<{
|
|
|
1641
1641
|
updatedAt: z.ZodString;
|
|
1642
1642
|
}, z.core.$strip>>;
|
|
1643
1643
|
pagination: z.ZodObject<{
|
|
1644
|
-
from: z.
|
|
1645
|
-
to: z.
|
|
1646
|
-
itemsPerPage: z.
|
|
1647
|
-
totalItems: z.
|
|
1648
|
-
currentPage: z.
|
|
1649
|
-
lastPage: z.
|
|
1644
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
1645
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
1646
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
1647
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
1648
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1649
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1650
1650
|
}, z.core.$strip>;
|
|
1651
1651
|
}, z.core.$strip>;
|
|
1652
1652
|
type GetDeliveryPositionsResponse = z.infer<typeof getDeliveryPositionsResponseSchema>;
|
|
@@ -1667,12 +1667,12 @@ declare class GetDeliveryPositions extends AbstractApiRequest<typeof getDelivery
|
|
|
1667
1667
|
updatedAt: z.ZodString;
|
|
1668
1668
|
}, z.core.$strip>>;
|
|
1669
1669
|
pagination: z.ZodObject<{
|
|
1670
|
-
from: z.
|
|
1671
|
-
to: z.
|
|
1672
|
-
itemsPerPage: z.
|
|
1673
|
-
totalItems: z.
|
|
1674
|
-
currentPage: z.
|
|
1675
|
-
lastPage: z.
|
|
1670
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
1671
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
1672
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
1673
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
1674
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1675
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1676
1676
|
}, z.core.$strip>;
|
|
1677
1677
|
}, z.core.$strip>;
|
|
1678
1678
|
readonly querySchema: z.ZodObject<{
|
package/dist/index.js
CHANGED
|
@@ -11206,8 +11206,8 @@ var writableDeliveryPositionSchema = deliveryPositionSchema.pick({
|
|
|
11206
11206
|
})
|
|
11207
11207
|
});
|
|
11208
11208
|
var minMax = external_exports.object({
|
|
11209
|
-
min: external_exports.number().gte(0),
|
|
11210
|
-
max: external_exports.number().gte(0)
|
|
11209
|
+
min: external_exports.coerce.number().gte(0),
|
|
11210
|
+
max: external_exports.coerce.number().gte(0)
|
|
11211
11211
|
}).refine((s) => s.max >= s.min, { message: "max_greater_than_min", path: ["max"] });
|
|
11212
11212
|
var settingsByType = {
|
|
11213
11213
|
amount: minMax,
|
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.2.
|
|
4
|
+
"version": "2.2.1",
|
|
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.2.
|
|
22
|
-
"@deliverart/sdk-js-
|
|
23
|
-
"@deliverart/sdk-js-
|
|
24
|
-
"@deliverart/sdk-js-
|
|
25
|
-
"@deliverart/sdk-js-
|
|
21
|
+
"@deliverart/sdk-js-core": "2.2.1",
|
|
22
|
+
"@deliverart/sdk-js-point-of-sale": "2.2.1",
|
|
23
|
+
"@deliverart/sdk-js-global-types": "2.2.1",
|
|
24
|
+
"@deliverart/sdk-js-user": "2.2.1",
|
|
25
|
+
"@deliverart/sdk-js-order": "2.2.1"
|
|
26
26
|
},
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|