@mercurjs/core 2.3.5-canary.0 → 2.3.6-canary.0

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.
Files changed (101) hide show
  1. package/.medusa/server/src/api/admin/collections/validators.d.ts +12 -185
  2. package/.medusa/server/src/api/admin/collections/validators.js +3 -3
  3. package/.medusa/server/src/api/admin/commission-rates/validators.d.ts +21 -226
  4. package/.medusa/server/src/api/admin/customer-groups/validators.d.ts +6 -26
  5. package/.medusa/server/src/api/admin/members/validators.d.ts +1 -18
  6. package/.medusa/server/src/api/admin/offers/validators.d.ts +22 -261
  7. package/.medusa/server/src/api/admin/order-groups/validators.d.ts +9 -94
  8. package/.medusa/server/src/api/admin/orders/validators.d.ts +162 -1
  9. package/.medusa/server/src/api/admin/payouts/validators.d.ts +7 -86
  10. package/.medusa/server/src/api/admin/product-attributes/validators.d.ts +45 -398
  11. package/.medusa/server/src/api/admin/product-attributes/validators.js +8 -8
  12. package/.medusa/server/src/api/admin/product-categories/middlewares.js +4 -2
  13. package/.medusa/server/src/api/admin/product-categories/validators.d.ts +41 -376
  14. package/.medusa/server/src/api/admin/product-categories/validators.js +3 -3
  15. package/.medusa/server/src/api/admin/product-changes/validators.d.ts +2 -10
  16. package/.medusa/server/src/api/admin/products/middlewares.js +4 -2
  17. package/.medusa/server/src/api/admin/products/validators.d.ts +128 -1702
  18. package/.medusa/server/src/api/admin/products/validators.js +9 -9
  19. package/.medusa/server/src/api/admin/promotions/[id]/cost/validators.d.ts +6 -8
  20. package/.medusa/server/src/api/admin/reservations/validators.d.ts +2 -39
  21. package/.medusa/server/src/api/admin/reviews/validators.d.ts +24 -46
  22. package/.medusa/server/src/api/admin/sellers/validators.d.ts +32 -358
  23. package/.medusa/server/src/api/admin/sellers/validators.js +4 -4
  24. package/.medusa/server/src/api/store/carts/[id]/complete/validators.d.ts +1 -5
  25. package/.medusa/server/src/api/store/carts/[id]/line-items/validators.d.ts +1 -17
  26. package/.medusa/server/src/api/store/carts/[id]/line-items/validators.js +3 -5
  27. package/.medusa/server/src/api/store/offers/validators.d.ts +9 -112
  28. package/.medusa/server/src/api/store/order-groups/validators.d.ts +5 -80
  29. package/.medusa/server/src/api/store/product-attributes/validators.d.ts +19 -175
  30. package/.medusa/server/src/api/store/product-categories/validators.d.ts +21 -184
  31. package/.medusa/server/src/api/store/products/validators.d.ts +25 -210
  32. package/.medusa/server/src/api/store/reviews/validators.d.ts +7 -34
  33. package/.medusa/server/src/api/store/sellers/validators.d.ts +7 -92
  34. package/.medusa/server/src/api/vendor/campaigns/validators.d.ts +28 -165
  35. package/.medusa/server/src/api/vendor/campaigns/validators.js +4 -4
  36. package/.medusa/server/src/api/vendor/claims/validators.d.ts +23 -276
  37. package/.medusa/server/src/api/vendor/collections/validators.d.ts +8 -117
  38. package/.medusa/server/src/api/vendor/currencies/validators.d.ts +5 -32
  39. package/.medusa/server/src/api/vendor/customer-groups/[id]/customers/route.js +10 -9
  40. package/.medusa/server/src/api/vendor/customer-groups/validators.d.ts +11 -108
  41. package/.medusa/server/src/api/vendor/customer-groups/validators.js +3 -3
  42. package/.medusa/server/src/api/vendor/customers/helpers.d.ts +1 -1
  43. package/.medusa/server/src/api/vendor/customers/helpers.js +12 -6
  44. package/.medusa/server/src/api/vendor/customers/validators.d.ts +11 -102
  45. package/.medusa/server/src/api/vendor/exchanges/validators.d.ts +17 -228
  46. package/.medusa/server/src/api/vendor/fulfillment-providers/validators.d.ts +4 -27
  47. package/.medusa/server/src/api/vendor/fulfillment-sets/validators.d.ts +18 -290
  48. package/.medusa/server/src/api/vendor/fulfillment-sets/validators.js +3 -3
  49. package/.medusa/server/src/api/vendor/inventory-items/validators.d.ts +48 -560
  50. package/.medusa/server/src/api/vendor/inventory-items/validators.js +3 -3
  51. package/.medusa/server/src/api/vendor/members/validators.d.ts +2 -18
  52. package/.medusa/server/src/api/vendor/offers/validators.d.ts +34 -497
  53. package/.medusa/server/src/api/vendor/order-edits/validators.d.ts +8 -118
  54. package/.medusa/server/src/api/vendor/order-edits/validators.js +6 -6
  55. package/.medusa/server/src/api/vendor/orders/validators.d.ts +17 -170
  56. package/.medusa/server/src/api/vendor/payments/validators.d.ts +11 -121
  57. package/.medusa/server/src/api/vendor/payout-accounts/validators.d.ts +4 -32
  58. package/.medusa/server/src/api/vendor/payout-accounts/validators.js +5 -5
  59. package/.medusa/server/src/api/vendor/payouts/validators.d.ts +5 -80
  60. package/.medusa/server/src/api/vendor/price-lists/validators.d.ts +21 -262
  61. package/.medusa/server/src/api/vendor/price-preferences/validators.d.ts +5 -30
  62. package/.medusa/server/src/api/vendor/product-attributes/validators.d.ts +33 -273
  63. package/.medusa/server/src/api/vendor/product-attributes/validators.js +5 -5
  64. package/.medusa/server/src/api/vendor/product-categories/validators.d.ts +34 -275
  65. package/.medusa/server/src/api/vendor/product-tags/validators.d.ts +12 -48
  66. package/.medusa/server/src/api/vendor/product-types/validators.d.ts +4 -27
  67. package/.medusa/server/src/api/vendor/product-variants/middlewares.js +7 -2
  68. package/.medusa/server/src/api/vendor/product-variants/validators.d.ts +38 -364
  69. package/.medusa/server/src/api/vendor/products/middlewares.js +19 -3
  70. package/.medusa/server/src/api/vendor/products/validators.d.ts +102 -1012
  71. package/.medusa/server/src/api/vendor/products/validators.js +13 -13
  72. package/.medusa/server/src/api/vendor/promotions/validators.d.ts +104 -1109
  73. package/.medusa/server/src/api/vendor/promotions/validators.js +3 -3
  74. package/.medusa/server/src/api/vendor/refund-reasons/validators.d.ts +5 -82
  75. package/.medusa/server/src/api/vendor/regions/validators.d.ts +7 -88
  76. package/.medusa/server/src/api/vendor/reservations/validators.d.ts +14 -207
  77. package/.medusa/server/src/api/vendor/return-reasons/validators.d.ts +9 -94
  78. package/.medusa/server/src/api/vendor/returns/validators.d.ts +26 -306
  79. package/.medusa/server/src/api/vendor/returns/validators.js +8 -8
  80. package/.medusa/server/src/api/vendor/reviews/validators.d.ts +19 -36
  81. package/.medusa/server/src/api/vendor/sales-channels/validators.d.ts +5 -32
  82. package/.medusa/server/src/api/vendor/sellers/validators.d.ts +17 -249
  83. package/.medusa/server/src/api/vendor/sellers/validators.js +4 -4
  84. package/.medusa/server/src/api/vendor/shipping-option-types/validators.d.ts +8 -91
  85. package/.medusa/server/src/api/vendor/shipping-options/validators.d.ts +59 -730
  86. package/.medusa/server/src/api/vendor/shipping-options/validators.js +5 -5
  87. package/.medusa/server/src/api/vendor/shipping-profiles/validators.d.ts +5 -86
  88. package/.medusa/server/src/api/vendor/stock-locations/validators.d.ts +14 -209
  89. package/.medusa/server/src/api/vendor/stock-locations/validators.js +3 -3
  90. package/.medusa/server/src/api/vendor/stores/query-config.d.ts +1 -0
  91. package/.medusa/server/src/api/vendor/stores/query-config.js +7 -4
  92. package/.medusa/server/src/api/vendor/stores/validators.d.ts +4 -27
  93. package/.medusa/server/src/patches/manifest.js +2 -2
  94. package/.medusa/server/src/utils/disable-medusa-middlewares.d.ts +2 -0
  95. package/.medusa/server/src/utils/disable-medusa-middlewares.js +35 -10
  96. package/.medusa/server/src/workflows/offer/workflows/index.d.ts +1 -0
  97. package/.medusa/server/src/workflows/offer/workflows/index.js +2 -1
  98. package/.medusa/server/src/workflows/offer/workflows/update-offers.js +9 -138
  99. package/.medusa/server/src/workflows/offer/workflows/upsert-offer-prices.d.ts +14 -0
  100. package/.medusa/server/src/workflows/offer/workflows/upsert-offer-prices.js +130 -0
  101. package/package.json +17 -17
@@ -3,11 +3,7 @@ import { z } from "zod";
3
3
  export type VendorGetShippingOptionParamsType = z.infer<typeof VendorGetShippingOptionParams>;
4
4
  export declare const VendorGetShippingOptionParams: z.ZodObject<{
5
5
  fields: z.ZodOptional<z.ZodString>;
6
- }, z.core.$strip, z.ZodTypeAny, {
7
- fields?: string | undefined;
8
- }, {
9
- fields?: string | undefined;
10
- }>;
6
+ }, z.core.$strip>;
11
7
  export type VendorGetShippingOptionsParamsType = z.infer<typeof VendorGetShippingOptionsParams>;
12
8
  export declare const VendorGetShippingOptionsParams: z.ZodObject<{
13
9
  fields: z.ZodOptional<z.ZodString>;
@@ -15,14 +11,13 @@ export declare const VendorGetShippingOptionsParams: z.ZodObject<{
15
11
  limit: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
16
12
  order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
17
13
  with_deleted: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
18
- } & {
19
- id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
14
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
20
15
  q: z.ZodOptional<z.ZodString>;
21
- service_zone_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
22
- shipping_profile_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
23
- provider_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
24
- stock_location_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
25
- shipping_option_type_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
16
+ service_zone_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
17
+ shipping_profile_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
18
+ provider_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
19
+ stock_location_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
20
+ shipping_option_type_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
26
21
  created_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
27
22
  $eq: any;
28
23
  $ne: any;
@@ -36,33 +31,7 @@ export declare const VendorGetShippingOptionsParams: z.ZodObject<{
36
31
  $gte: any;
37
32
  $lt: any;
38
33
  $lte: any;
39
- }, z.core.$strip, z.ZodTypeAny, {
40
- $nin?: any;
41
- $eq?: any;
42
- $ne?: any;
43
- $in?: any;
44
- $like?: any;
45
- $ilike?: any;
46
- $re?: any;
47
- $contains?: any;
48
- $gt?: any;
49
- $gte?: any;
50
- $lt?: any;
51
- $lte?: any;
52
- }, {
53
- $nin?: any;
54
- $eq?: any;
55
- $ne?: any;
56
- $in?: any;
57
- $like?: any;
58
- $ilike?: any;
59
- $re?: any;
60
- $contains?: any;
61
- $gt?: any;
62
- $gte?: any;
63
- $lt?: any;
64
- $lte?: any;
65
- }>]>>;
34
+ }, z.core.$strip>]>>;
66
35
  updated_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
67
36
  $eq: any;
68
37
  $ne: any;
@@ -76,520 +45,118 @@ export declare const VendorGetShippingOptionsParams: z.ZodObject<{
76
45
  $gte: any;
77
46
  $lt: any;
78
47
  $lte: any;
79
- }, z.core.$strip, z.ZodTypeAny, {
80
- $nin?: any;
81
- $eq?: any;
82
- $ne?: any;
83
- $in?: any;
84
- $like?: any;
85
- $ilike?: any;
86
- $re?: any;
87
- $contains?: any;
88
- $gt?: any;
89
- $gte?: any;
90
- $lt?: any;
91
- $lte?: any;
92
- }, {
93
- $nin?: any;
94
- $eq?: any;
95
- $ne?: any;
96
- $in?: any;
97
- $like?: any;
98
- $ilike?: any;
99
- $re?: any;
100
- $contains?: any;
101
- $gt?: any;
102
- $gte?: any;
103
- $lt?: any;
104
- $lte?: any;
105
- }>]>>;
106
- }, "strip", z.ZodTypeAny, {
107
- order?: string | undefined;
108
- id?: string | string[] | undefined;
109
- shipping_profile_id?: string | string[] | undefined;
110
- created_at?: any;
111
- updated_at?: any;
112
- q?: string | undefined;
113
- fields?: string | undefined;
114
- offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
115
- limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
116
- with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
117
- stock_location_id?: string | string[] | undefined;
118
- service_zone_id?: string | string[] | undefined;
119
- provider_id?: string | string[] | undefined;
120
- shipping_option_type_id?: string | string[] | undefined;
121
- }, {
122
- order?: string | undefined;
123
- id?: string | string[] | undefined;
124
- shipping_profile_id?: string | string[] | undefined;
125
- created_at?: any;
126
- updated_at?: any;
127
- q?: string | undefined;
128
- fields?: string | undefined;
129
- offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
130
- limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
131
- with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
132
- stock_location_id?: string | string[] | undefined;
133
- service_zone_id?: string | string[] | undefined;
134
- provider_id?: string | string[] | undefined;
135
- shipping_option_type_id?: string | string[] | undefined;
136
- }>;
48
+ }, z.core.$strip>]>>;
49
+ }, z.core.$strip>;
137
50
  export type VendorGetShippingOptionRuleParamsType = z.infer<typeof VendorGetShippingOptionRuleParams>;
138
51
  export declare const VendorGetShippingOptionRuleParams: z.ZodObject<{
139
52
  fields: z.ZodOptional<z.ZodString>;
140
- }, z.core.$strip, z.ZodTypeAny, {
141
- fields?: string | undefined;
142
- }, {
143
- fields?: string | undefined;
144
- }>;
53
+ }, z.core.$strip>;
145
54
  export type VendorCreateShippingOptionRuleType = z.infer<typeof VendorCreateShippingOptionRule>;
146
55
  export declare const VendorCreateShippingOptionRule: z.ZodObject<{
147
- operator: z.ZodNativeEnum<typeof RuleOperator>;
56
+ operator: z.ZodEnum<typeof RuleOperator>;
148
57
  attribute: z.ZodString;
149
- value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
150
- }, "strict", z.ZodTypeAny, {
151
- value: string | string[];
152
- operator: RuleOperator;
153
- attribute: string;
154
- }, {
155
- value: string | string[];
156
- operator: RuleOperator;
157
- attribute: string;
158
- }>;
58
+ value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString>]>;
59
+ }, z.core.$strict>;
159
60
  export type VendorUpdateShippingOptionRuleType = z.infer<typeof VendorUpdateShippingOptionRule>;
160
61
  export declare const VendorUpdateShippingOptionRule: z.ZodObject<{
161
62
  id: z.ZodString;
162
- operator: z.ZodNativeEnum<typeof RuleOperator>;
63
+ operator: z.ZodEnum<typeof RuleOperator>;
163
64
  attribute: z.ZodString;
164
- value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
165
- }, "strict", z.ZodTypeAny, {
166
- id: string;
167
- value: string | string[];
168
- operator: RuleOperator;
169
- attribute: string;
170
- }, {
171
- id: string;
172
- value: string | string[];
173
- operator: RuleOperator;
174
- attribute: string;
175
- }>;
65
+ value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString>]>;
66
+ }, z.core.$strict>;
176
67
  export declare const VendorCreateShippingOptionTypeObject: z.ZodObject<{
177
68
  label: z.ZodString;
178
69
  description: z.ZodOptional<z.ZodString>;
179
70
  code: z.ZodString;
180
- }, "strict", z.ZodTypeAny, {
181
- code: string;
182
- label: string;
183
- description?: string | undefined;
184
- }, {
185
- code: string;
186
- label: string;
187
- description?: string | undefined;
188
- }>;
71
+ }, z.core.$strict>;
189
72
  export declare const VendorCreateShippingOptionPriceWithCurrency: z.ZodObject<{
190
73
  currency_code: z.ZodString;
191
74
  amount: z.ZodNumber;
192
75
  rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
193
76
  attribute: z.ZodLiteral<"item_total">;
194
- operator: z.ZodNativeEnum<typeof PricingRuleOperator>;
77
+ operator: z.ZodEnum<typeof PricingRuleOperator>;
195
78
  value: z.ZodNumber;
196
- }, "strip", z.ZodTypeAny, {
197
- value: number;
198
- operator: PricingRuleOperator;
199
- attribute: "item_total";
200
- }, {
201
- value: number;
202
- operator: PricingRuleOperator;
203
- attribute: "item_total";
204
- }>, "many">>;
205
- }, "strict", z.ZodTypeAny, {
206
- currency_code: string;
207
- amount: number;
208
- rules?: {
209
- value: number;
210
- operator: PricingRuleOperator;
211
- attribute: "item_total";
212
- }[] | undefined;
213
- }, {
214
- currency_code: string;
215
- amount: number;
216
- rules?: {
217
- value: number;
218
- operator: PricingRuleOperator;
219
- attribute: "item_total";
220
- }[] | undefined;
221
- }>;
79
+ }, z.core.$strip>>>;
80
+ }, z.core.$strict>;
222
81
  export declare const VendorCreateShippingOptionPriceWithRegion: z.ZodObject<{
223
82
  region_id: z.ZodString;
224
83
  amount: z.ZodNumber;
225
84
  rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
226
85
  attribute: z.ZodLiteral<"item_total">;
227
- operator: z.ZodNativeEnum<typeof PricingRuleOperator>;
86
+ operator: z.ZodEnum<typeof PricingRuleOperator>;
228
87
  value: z.ZodNumber;
229
- }, "strip", z.ZodTypeAny, {
230
- value: number;
231
- operator: PricingRuleOperator;
232
- attribute: "item_total";
233
- }, {
234
- value: number;
235
- operator: PricingRuleOperator;
236
- attribute: "item_total";
237
- }>, "many">>;
238
- }, "strict", z.ZodTypeAny, {
239
- region_id: string;
240
- amount: number;
241
- rules?: {
242
- value: number;
243
- operator: PricingRuleOperator;
244
- attribute: "item_total";
245
- }[] | undefined;
246
- }, {
247
- region_id: string;
248
- amount: number;
249
- rules?: {
250
- value: number;
251
- operator: PricingRuleOperator;
252
- attribute: "item_total";
253
- }[] | undefined;
254
- }>;
88
+ }, z.core.$strip>>>;
89
+ }, z.core.$strict>;
255
90
  export declare const VendorUpdateShippingOptionPriceWithCurrency: z.ZodObject<{
256
91
  id: z.ZodOptional<z.ZodString>;
257
92
  currency_code: z.ZodOptional<z.ZodString>;
258
93
  amount: z.ZodOptional<z.ZodNumber>;
259
94
  rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
260
95
  attribute: z.ZodLiteral<"item_total">;
261
- operator: z.ZodNativeEnum<typeof PricingRuleOperator>;
96
+ operator: z.ZodEnum<typeof PricingRuleOperator>;
262
97
  value: z.ZodNumber;
263
- }, "strip", z.ZodTypeAny, {
264
- value: number;
265
- operator: PricingRuleOperator;
266
- attribute: "item_total";
267
- }, {
268
- value: number;
269
- operator: PricingRuleOperator;
270
- attribute: "item_total";
271
- }>, "many">>;
272
- }, "strict", z.ZodTypeAny, {
273
- id?: string | undefined;
274
- currency_code?: string | undefined;
275
- amount?: number | undefined;
276
- rules?: {
277
- value: number;
278
- operator: PricingRuleOperator;
279
- attribute: "item_total";
280
- }[] | undefined;
281
- }, {
282
- id?: string | undefined;
283
- currency_code?: string | undefined;
284
- amount?: number | undefined;
285
- rules?: {
286
- value: number;
287
- operator: PricingRuleOperator;
288
- attribute: "item_total";
289
- }[] | undefined;
290
- }>;
98
+ }, z.core.$strip>>>;
99
+ }, z.core.$strict>;
291
100
  export declare const VendorUpdateShippingOptionPriceWithRegion: z.ZodObject<{
292
101
  id: z.ZodOptional<z.ZodString>;
293
102
  region_id: z.ZodOptional<z.ZodString>;
294
103
  amount: z.ZodOptional<z.ZodNumber>;
295
104
  rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
296
105
  attribute: z.ZodLiteral<"item_total">;
297
- operator: z.ZodNativeEnum<typeof PricingRuleOperator>;
106
+ operator: z.ZodEnum<typeof PricingRuleOperator>;
298
107
  value: z.ZodNumber;
299
- }, "strip", z.ZodTypeAny, {
300
- value: number;
301
- operator: PricingRuleOperator;
302
- attribute: "item_total";
303
- }, {
304
- value: number;
305
- operator: PricingRuleOperator;
306
- attribute: "item_total";
307
- }>, "many">>;
308
- }, "strict", z.ZodTypeAny, {
309
- id?: string | undefined;
310
- region_id?: string | undefined;
311
- amount?: number | undefined;
312
- rules?: {
313
- value: number;
314
- operator: PricingRuleOperator;
315
- attribute: "item_total";
316
- }[] | undefined;
317
- }, {
318
- id?: string | undefined;
319
- region_id?: string | undefined;
320
- amount?: number | undefined;
321
- rules?: {
322
- value: number;
323
- operator: PricingRuleOperator;
324
- attribute: "item_total";
325
- }[] | undefined;
326
- }>;
108
+ }, z.core.$strip>>>;
109
+ }, z.core.$strict>;
327
110
  export type VendorCreateShippingOptionType = z.infer<typeof VendorCreateShippingOption>;
328
- export declare const VendorCreateShippingOption: z.ZodEffects<z.ZodObject<{
111
+ export declare const VendorCreateShippingOption: z.ZodObject<{
329
112
  name: z.ZodString;
330
113
  service_zone_id: z.ZodString;
331
114
  shipping_profile_id: z.ZodString;
332
115
  data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
333
- price_type: z.ZodNativeEnum<typeof ShippingOptionPriceTypeEnum>;
116
+ price_type: z.ZodEnum<typeof ShippingOptionPriceTypeEnum>;
334
117
  provider_id: z.ZodString;
335
118
  type: z.ZodOptional<z.ZodObject<{
336
119
  label: z.ZodString;
337
120
  description: z.ZodOptional<z.ZodString>;
338
121
  code: z.ZodString;
339
- }, "strict", z.ZodTypeAny, {
340
- code: string;
341
- label: string;
342
- description?: string | undefined;
343
- }, {
344
- code: string;
345
- label: string;
346
- description?: string | undefined;
347
- }>>;
122
+ }, z.core.$strict>>;
348
123
  type_id: z.ZodOptional<z.ZodString>;
349
124
  prices: z.ZodArray<z.ZodUnion<[z.ZodObject<{
350
125
  currency_code: z.ZodString;
351
126
  amount: z.ZodNumber;
352
127
  rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
353
128
  attribute: z.ZodLiteral<"item_total">;
354
- operator: z.ZodNativeEnum<typeof PricingRuleOperator>;
129
+ operator: z.ZodEnum<typeof PricingRuleOperator>;
355
130
  value: z.ZodNumber;
356
- }, "strip", z.ZodTypeAny, {
357
- value: number;
358
- operator: PricingRuleOperator;
359
- attribute: "item_total";
360
- }, {
361
- value: number;
362
- operator: PricingRuleOperator;
363
- attribute: "item_total";
364
- }>, "many">>;
365
- }, "strict", z.ZodTypeAny, {
366
- currency_code: string;
367
- amount: number;
368
- rules?: {
369
- value: number;
370
- operator: PricingRuleOperator;
371
- attribute: "item_total";
372
- }[] | undefined;
373
- }, {
374
- currency_code: string;
375
- amount: number;
376
- rules?: {
377
- value: number;
378
- operator: PricingRuleOperator;
379
- attribute: "item_total";
380
- }[] | undefined;
381
- }>, z.ZodObject<{
131
+ }, z.core.$strip>>>;
132
+ }, z.core.$strict>, z.ZodObject<{
382
133
  region_id: z.ZodString;
383
134
  amount: z.ZodNumber;
384
135
  rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
385
136
  attribute: z.ZodLiteral<"item_total">;
386
- operator: z.ZodNativeEnum<typeof PricingRuleOperator>;
137
+ operator: z.ZodEnum<typeof PricingRuleOperator>;
387
138
  value: z.ZodNumber;
388
- }, "strip", z.ZodTypeAny, {
389
- value: number;
390
- operator: PricingRuleOperator;
391
- attribute: "item_total";
392
- }, {
393
- value: number;
394
- operator: PricingRuleOperator;
395
- attribute: "item_total";
396
- }>, "many">>;
397
- }, "strict", z.ZodTypeAny, {
398
- region_id: string;
399
- amount: number;
400
- rules?: {
401
- value: number;
402
- operator: PricingRuleOperator;
403
- attribute: "item_total";
404
- }[] | undefined;
405
- }, {
406
- region_id: string;
407
- amount: number;
408
- rules?: {
409
- value: number;
410
- operator: PricingRuleOperator;
411
- attribute: "item_total";
412
- }[] | undefined;
413
- }>]>, "many">;
139
+ }, z.core.$strip>>>;
140
+ }, z.core.$strict>]>>;
414
141
  rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
415
- operator: z.ZodNativeEnum<typeof RuleOperator>;
142
+ operator: z.ZodEnum<typeof RuleOperator>;
416
143
  attribute: z.ZodString;
417
- value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
418
- }, "strict", z.ZodTypeAny, {
419
- value: string | string[];
420
- operator: RuleOperator;
421
- attribute: string;
422
- }, {
423
- value: string | string[];
424
- operator: RuleOperator;
425
- attribute: string;
426
- }>, "many">>;
144
+ value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString>]>;
145
+ }, z.core.$strict>>>;
427
146
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
428
- }, "strict", z.ZodTypeAny, {
429
- name: string;
430
- shipping_profile_id: string;
431
- prices: ({
432
- currency_code: string;
433
- amount: number;
434
- rules?: {
435
- value: number;
436
- operator: PricingRuleOperator;
437
- attribute: "item_total";
438
- }[] | undefined;
439
- } | {
440
- region_id: string;
441
- amount: number;
442
- rules?: {
443
- value: number;
444
- operator: PricingRuleOperator;
445
- attribute: "item_total";
446
- }[] | undefined;
447
- })[];
448
- service_zone_id: string;
449
- provider_id: string;
450
- price_type: ShippingOptionPriceTypeEnum;
451
- data?: Record<string, unknown> | undefined;
452
- metadata?: Record<string, unknown> | undefined;
453
- type?: {
454
- code: string;
455
- label: string;
456
- description?: string | undefined;
457
- } | undefined;
458
- type_id?: string | undefined;
459
- rules?: {
460
- value: string | string[];
461
- operator: RuleOperator;
462
- attribute: string;
463
- }[] | undefined;
464
- }, {
465
- name: string;
466
- shipping_profile_id: string;
467
- prices: ({
468
- currency_code: string;
469
- amount: number;
470
- rules?: {
471
- value: number;
472
- operator: PricingRuleOperator;
473
- attribute: "item_total";
474
- }[] | undefined;
475
- } | {
476
- region_id: string;
477
- amount: number;
478
- rules?: {
479
- value: number;
480
- operator: PricingRuleOperator;
481
- attribute: "item_total";
482
- }[] | undefined;
483
- })[];
484
- service_zone_id: string;
485
- provider_id: string;
486
- price_type: ShippingOptionPriceTypeEnum;
487
- data?: Record<string, unknown> | undefined;
488
- metadata?: Record<string, unknown> | undefined;
489
- type?: {
490
- code: string;
491
- label: string;
492
- description?: string | undefined;
493
- } | undefined;
494
- type_id?: string | undefined;
495
- rules?: {
496
- value: string | string[];
497
- operator: RuleOperator;
498
- attribute: string;
499
- }[] | undefined;
500
- }>, {
501
- name: string;
502
- shipping_profile_id: string;
503
- prices: ({
504
- currency_code: string;
505
- amount: number;
506
- rules?: {
507
- value: number;
508
- operator: PricingRuleOperator;
509
- attribute: "item_total";
510
- }[] | undefined;
511
- } | {
512
- region_id: string;
513
- amount: number;
514
- rules?: {
515
- value: number;
516
- operator: PricingRuleOperator;
517
- attribute: "item_total";
518
- }[] | undefined;
519
- })[];
520
- service_zone_id: string;
521
- provider_id: string;
522
- price_type: ShippingOptionPriceTypeEnum;
523
- data?: Record<string, unknown> | undefined;
524
- metadata?: Record<string, unknown> | undefined;
525
- type?: {
526
- code: string;
527
- label: string;
528
- description?: string | undefined;
529
- } | undefined;
530
- type_id?: string | undefined;
531
- rules?: {
532
- value: string | string[];
533
- operator: RuleOperator;
534
- attribute: string;
535
- }[] | undefined;
536
- }, {
537
- name: string;
538
- shipping_profile_id: string;
539
- prices: ({
540
- currency_code: string;
541
- amount: number;
542
- rules?: {
543
- value: number;
544
- operator: PricingRuleOperator;
545
- attribute: "item_total";
546
- }[] | undefined;
547
- } | {
548
- region_id: string;
549
- amount: number;
550
- rules?: {
551
- value: number;
552
- operator: PricingRuleOperator;
553
- attribute: "item_total";
554
- }[] | undefined;
555
- })[];
556
- service_zone_id: string;
557
- provider_id: string;
558
- price_type: ShippingOptionPriceTypeEnum;
559
- data?: Record<string, unknown> | undefined;
560
- metadata?: Record<string, unknown> | undefined;
561
- type?: {
562
- code: string;
563
- label: string;
564
- description?: string | undefined;
565
- } | undefined;
566
- type_id?: string | undefined;
567
- rules?: {
568
- value: string | string[];
569
- operator: RuleOperator;
570
- attribute: string;
571
- }[] | undefined;
572
- }>;
147
+ }, z.core.$strict>;
573
148
  export type VendorUpdateShippingOptionType = z.infer<typeof VendorUpdateShippingOption>;
574
- export declare const VendorUpdateShippingOption: z.ZodEffects<z.ZodObject<{
149
+ export declare const VendorUpdateShippingOption: z.ZodObject<{
575
150
  name: z.ZodOptional<z.ZodString>;
576
151
  data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
577
- price_type: z.ZodOptional<z.ZodNativeEnum<typeof ShippingOptionPriceTypeEnum>>;
152
+ price_type: z.ZodOptional<z.ZodEnum<typeof ShippingOptionPriceTypeEnum>>;
578
153
  provider_id: z.ZodOptional<z.ZodString>;
579
154
  shipping_profile_id: z.ZodOptional<z.ZodString>;
580
155
  type: z.ZodOptional<z.ZodObject<{
581
156
  label: z.ZodString;
582
157
  description: z.ZodOptional<z.ZodString>;
583
158
  code: z.ZodString;
584
- }, "strict", z.ZodTypeAny, {
585
- code: string;
586
- label: string;
587
- description?: string | undefined;
588
- }, {
589
- code: string;
590
- label: string;
591
- description?: string | undefined;
592
- }>>;
159
+ }, z.core.$strict>>;
593
160
  type_id: z.ZodOptional<z.ZodString>;
594
161
  prices: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
595
162
  id: z.ZodOptional<z.ZodString>;
@@ -597,266 +164,28 @@ export declare const VendorUpdateShippingOption: z.ZodEffects<z.ZodObject<{
597
164
  amount: z.ZodOptional<z.ZodNumber>;
598
165
  rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
599
166
  attribute: z.ZodLiteral<"item_total">;
600
- operator: z.ZodNativeEnum<typeof PricingRuleOperator>;
167
+ operator: z.ZodEnum<typeof PricingRuleOperator>;
601
168
  value: z.ZodNumber;
602
- }, "strip", z.ZodTypeAny, {
603
- value: number;
604
- operator: PricingRuleOperator;
605
- attribute: "item_total";
606
- }, {
607
- value: number;
608
- operator: PricingRuleOperator;
609
- attribute: "item_total";
610
- }>, "many">>;
611
- }, "strict", z.ZodTypeAny, {
612
- id?: string | undefined;
613
- currency_code?: string | undefined;
614
- amount?: number | undefined;
615
- rules?: {
616
- value: number;
617
- operator: PricingRuleOperator;
618
- attribute: "item_total";
619
- }[] | undefined;
620
- }, {
621
- id?: string | undefined;
622
- currency_code?: string | undefined;
623
- amount?: number | undefined;
624
- rules?: {
625
- value: number;
626
- operator: PricingRuleOperator;
627
- attribute: "item_total";
628
- }[] | undefined;
629
- }>, z.ZodObject<{
169
+ }, z.core.$strip>>>;
170
+ }, z.core.$strict>, z.ZodObject<{
630
171
  id: z.ZodOptional<z.ZodString>;
631
172
  region_id: z.ZodOptional<z.ZodString>;
632
173
  amount: z.ZodOptional<z.ZodNumber>;
633
174
  rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
634
175
  attribute: z.ZodLiteral<"item_total">;
635
- operator: z.ZodNativeEnum<typeof PricingRuleOperator>;
176
+ operator: z.ZodEnum<typeof PricingRuleOperator>;
636
177
  value: z.ZodNumber;
637
- }, "strip", z.ZodTypeAny, {
638
- value: number;
639
- operator: PricingRuleOperator;
640
- attribute: "item_total";
641
- }, {
642
- value: number;
643
- operator: PricingRuleOperator;
644
- attribute: "item_total";
645
- }>, "many">>;
646
- }, "strict", z.ZodTypeAny, {
647
- id?: string | undefined;
648
- region_id?: string | undefined;
649
- amount?: number | undefined;
650
- rules?: {
651
- value: number;
652
- operator: PricingRuleOperator;
653
- attribute: "item_total";
654
- }[] | undefined;
655
- }, {
656
- id?: string | undefined;
657
- region_id?: string | undefined;
658
- amount?: number | undefined;
659
- rules?: {
660
- value: number;
661
- operator: PricingRuleOperator;
662
- attribute: "item_total";
663
- }[] | undefined;
664
- }>]>, "many">>;
178
+ }, z.core.$strip>>>;
179
+ }, z.core.$strict>]>>>;
665
180
  rules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
666
181
  id: z.ZodString;
667
- operator: z.ZodNativeEnum<typeof RuleOperator>;
182
+ operator: z.ZodEnum<typeof RuleOperator>;
668
183
  attribute: z.ZodString;
669
- value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
670
- }, "strict", z.ZodTypeAny, {
671
- id: string;
672
- value: string | string[];
673
- operator: RuleOperator;
674
- attribute: string;
675
- }, {
676
- id: string;
677
- value: string | string[];
678
- operator: RuleOperator;
679
- attribute: string;
680
- }>, z.ZodObject<{
681
- operator: z.ZodNativeEnum<typeof RuleOperator>;
184
+ value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString>]>;
185
+ }, z.core.$strict>, z.ZodObject<{
186
+ operator: z.ZodEnum<typeof RuleOperator>;
682
187
  attribute: z.ZodString;
683
- value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
684
- }, "strict", z.ZodTypeAny, {
685
- value: string | string[];
686
- operator: RuleOperator;
687
- attribute: string;
688
- }, {
689
- value: string | string[];
690
- operator: RuleOperator;
691
- attribute: string;
692
- }>]>, "many">>;
188
+ value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString>]>;
189
+ }, z.core.$strict>]>>>;
693
190
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
694
- }, "strict", z.ZodTypeAny, {
695
- data?: Record<string, unknown> | undefined;
696
- metadata?: Record<string, unknown> | undefined;
697
- name?: string | undefined;
698
- type?: {
699
- code: string;
700
- label: string;
701
- description?: string | undefined;
702
- } | undefined;
703
- shipping_profile_id?: string | undefined;
704
- type_id?: string | undefined;
705
- rules?: ({
706
- value: string | string[];
707
- operator: RuleOperator;
708
- attribute: string;
709
- } | {
710
- id: string;
711
- value: string | string[];
712
- operator: RuleOperator;
713
- attribute: string;
714
- })[] | undefined;
715
- prices?: ({
716
- id?: string | undefined;
717
- currency_code?: string | undefined;
718
- amount?: number | undefined;
719
- rules?: {
720
- value: number;
721
- operator: PricingRuleOperator;
722
- attribute: "item_total";
723
- }[] | undefined;
724
- } | {
725
- id?: string | undefined;
726
- region_id?: string | undefined;
727
- amount?: number | undefined;
728
- rules?: {
729
- value: number;
730
- operator: PricingRuleOperator;
731
- attribute: "item_total";
732
- }[] | undefined;
733
- })[] | undefined;
734
- provider_id?: string | undefined;
735
- price_type?: ShippingOptionPriceTypeEnum | undefined;
736
- }, {
737
- data?: Record<string, unknown> | undefined;
738
- metadata?: Record<string, unknown> | undefined;
739
- name?: string | undefined;
740
- type?: {
741
- code: string;
742
- label: string;
743
- description?: string | undefined;
744
- } | undefined;
745
- shipping_profile_id?: string | undefined;
746
- type_id?: string | undefined;
747
- rules?: ({
748
- value: string | string[];
749
- operator: RuleOperator;
750
- attribute: string;
751
- } | {
752
- id: string;
753
- value: string | string[];
754
- operator: RuleOperator;
755
- attribute: string;
756
- })[] | undefined;
757
- prices?: ({
758
- id?: string | undefined;
759
- currency_code?: string | undefined;
760
- amount?: number | undefined;
761
- rules?: {
762
- value: number;
763
- operator: PricingRuleOperator;
764
- attribute: "item_total";
765
- }[] | undefined;
766
- } | {
767
- id?: string | undefined;
768
- region_id?: string | undefined;
769
- amount?: number | undefined;
770
- rules?: {
771
- value: number;
772
- operator: PricingRuleOperator;
773
- attribute: "item_total";
774
- }[] | undefined;
775
- })[] | undefined;
776
- provider_id?: string | undefined;
777
- price_type?: ShippingOptionPriceTypeEnum | undefined;
778
- }>, {
779
- data?: Record<string, unknown> | undefined;
780
- metadata?: Record<string, unknown> | undefined;
781
- name?: string | undefined;
782
- type?: {
783
- code: string;
784
- label: string;
785
- description?: string | undefined;
786
- } | undefined;
787
- shipping_profile_id?: string | undefined;
788
- type_id?: string | undefined;
789
- rules?: ({
790
- value: string | string[];
791
- operator: RuleOperator;
792
- attribute: string;
793
- } | {
794
- id: string;
795
- value: string | string[];
796
- operator: RuleOperator;
797
- attribute: string;
798
- })[] | undefined;
799
- prices?: ({
800
- id?: string | undefined;
801
- currency_code?: string | undefined;
802
- amount?: number | undefined;
803
- rules?: {
804
- value: number;
805
- operator: PricingRuleOperator;
806
- attribute: "item_total";
807
- }[] | undefined;
808
- } | {
809
- id?: string | undefined;
810
- region_id?: string | undefined;
811
- amount?: number | undefined;
812
- rules?: {
813
- value: number;
814
- operator: PricingRuleOperator;
815
- attribute: "item_total";
816
- }[] | undefined;
817
- })[] | undefined;
818
- provider_id?: string | undefined;
819
- price_type?: ShippingOptionPriceTypeEnum | undefined;
820
- }, {
821
- data?: Record<string, unknown> | undefined;
822
- metadata?: Record<string, unknown> | undefined;
823
- name?: string | undefined;
824
- type?: {
825
- code: string;
826
- label: string;
827
- description?: string | undefined;
828
- } | undefined;
829
- shipping_profile_id?: string | undefined;
830
- type_id?: string | undefined;
831
- rules?: ({
832
- value: string | string[];
833
- operator: RuleOperator;
834
- attribute: string;
835
- } | {
836
- id: string;
837
- value: string | string[];
838
- operator: RuleOperator;
839
- attribute: string;
840
- })[] | undefined;
841
- prices?: ({
842
- id?: string | undefined;
843
- currency_code?: string | undefined;
844
- amount?: number | undefined;
845
- rules?: {
846
- value: number;
847
- operator: PricingRuleOperator;
848
- attribute: "item_total";
849
- }[] | undefined;
850
- } | {
851
- id?: string | undefined;
852
- region_id?: string | undefined;
853
- amount?: number | undefined;
854
- rules?: {
855
- value: number;
856
- operator: PricingRuleOperator;
857
- attribute: "item_total";
858
- }[] | undefined;
859
- })[] | undefined;
860
- provider_id?: string | undefined;
861
- price_type?: ShippingOptionPriceTypeEnum | undefined;
862
- }>;
191
+ }, z.core.$strict>;