@mercurjs/core 2.3.5 → 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 (96) 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 -11
  26. package/.medusa/server/src/api/store/carts/[id]/line-items/validators.js +3 -3
  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/validators.d.ts +11 -108
  40. package/.medusa/server/src/api/vendor/customer-groups/validators.js +3 -3
  41. package/.medusa/server/src/api/vendor/customers/validators.d.ts +11 -102
  42. package/.medusa/server/src/api/vendor/exchanges/validators.d.ts +17 -228
  43. package/.medusa/server/src/api/vendor/fulfillment-providers/validators.d.ts +4 -27
  44. package/.medusa/server/src/api/vendor/fulfillment-sets/validators.d.ts +18 -290
  45. package/.medusa/server/src/api/vendor/fulfillment-sets/validators.js +3 -3
  46. package/.medusa/server/src/api/vendor/inventory-items/validators.d.ts +48 -560
  47. package/.medusa/server/src/api/vendor/inventory-items/validators.js +3 -3
  48. package/.medusa/server/src/api/vendor/members/validators.d.ts +2 -18
  49. package/.medusa/server/src/api/vendor/offers/validators.d.ts +34 -497
  50. package/.medusa/server/src/api/vendor/order-edits/validators.d.ts +8 -118
  51. package/.medusa/server/src/api/vendor/order-edits/validators.js +6 -6
  52. package/.medusa/server/src/api/vendor/orders/validators.d.ts +17 -170
  53. package/.medusa/server/src/api/vendor/payments/validators.d.ts +11 -121
  54. package/.medusa/server/src/api/vendor/payout-accounts/validators.d.ts +4 -32
  55. package/.medusa/server/src/api/vendor/payout-accounts/validators.js +5 -5
  56. package/.medusa/server/src/api/vendor/payouts/validators.d.ts +5 -80
  57. package/.medusa/server/src/api/vendor/price-lists/validators.d.ts +21 -262
  58. package/.medusa/server/src/api/vendor/price-preferences/validators.d.ts +5 -30
  59. package/.medusa/server/src/api/vendor/product-attributes/validators.d.ts +33 -273
  60. package/.medusa/server/src/api/vendor/product-attributes/validators.js +5 -5
  61. package/.medusa/server/src/api/vendor/product-categories/validators.d.ts +34 -275
  62. package/.medusa/server/src/api/vendor/product-tags/validators.d.ts +12 -48
  63. package/.medusa/server/src/api/vendor/product-types/validators.d.ts +4 -27
  64. package/.medusa/server/src/api/vendor/product-variants/middlewares.js +7 -2
  65. package/.medusa/server/src/api/vendor/product-variants/validators.d.ts +38 -364
  66. package/.medusa/server/src/api/vendor/products/middlewares.js +5 -2
  67. package/.medusa/server/src/api/vendor/products/validators.d.ts +102 -1012
  68. package/.medusa/server/src/api/vendor/products/validators.js +13 -13
  69. package/.medusa/server/src/api/vendor/promotions/validators.d.ts +104 -1109
  70. package/.medusa/server/src/api/vendor/promotions/validators.js +3 -3
  71. package/.medusa/server/src/api/vendor/refund-reasons/validators.d.ts +5 -82
  72. package/.medusa/server/src/api/vendor/regions/validators.d.ts +7 -88
  73. package/.medusa/server/src/api/vendor/reservations/validators.d.ts +14 -207
  74. package/.medusa/server/src/api/vendor/return-reasons/validators.d.ts +9 -94
  75. package/.medusa/server/src/api/vendor/returns/validators.d.ts +26 -306
  76. package/.medusa/server/src/api/vendor/returns/validators.js +8 -8
  77. package/.medusa/server/src/api/vendor/reviews/validators.d.ts +19 -36
  78. package/.medusa/server/src/api/vendor/sales-channels/validators.d.ts +5 -32
  79. package/.medusa/server/src/api/vendor/sellers/validators.d.ts +17 -249
  80. package/.medusa/server/src/api/vendor/sellers/validators.js +4 -4
  81. package/.medusa/server/src/api/vendor/shipping-option-types/validators.d.ts +8 -91
  82. package/.medusa/server/src/api/vendor/shipping-options/validators.d.ts +59 -730
  83. package/.medusa/server/src/api/vendor/shipping-options/validators.js +5 -5
  84. package/.medusa/server/src/api/vendor/shipping-profiles/validators.d.ts +5 -86
  85. package/.medusa/server/src/api/vendor/stock-locations/validators.d.ts +14 -209
  86. package/.medusa/server/src/api/vendor/stock-locations/validators.js +3 -3
  87. package/.medusa/server/src/api/vendor/stores/validators.d.ts +4 -27
  88. package/.medusa/server/src/patches/manifest.js +2 -2
  89. package/.medusa/server/src/utils/disable-medusa-middlewares.d.ts +2 -0
  90. package/.medusa/server/src/utils/disable-medusa-middlewares.js +35 -10
  91. package/.medusa/server/src/workflows/offer/workflows/index.d.ts +1 -0
  92. package/.medusa/server/src/workflows/offer/workflows/index.js +2 -1
  93. package/.medusa/server/src/workflows/offer/workflows/update-offers.js +9 -138
  94. package/.medusa/server/src/workflows/offer/workflows/upsert-offer-prices.d.ts +14 -0
  95. package/.medusa/server/src/workflows/offer/workflows/upsert-offer-prices.js +130 -0
  96. package/package.json +17 -17
@@ -2,20 +2,16 @@ import { z } from "zod";
2
2
  export type VendorGetInventoryItemParamsType = z.infer<typeof VendorGetInventoryItemParams>;
3
3
  export declare const VendorGetInventoryItemParams: z.ZodObject<{
4
4
  fields: z.ZodOptional<z.ZodString>;
5
- }, z.core.$strip, z.ZodTypeAny, {
6
- fields?: string | undefined;
7
- }, {
8
- fields?: string | undefined;
9
- }>;
5
+ }, z.core.$strip>;
10
6
  export declare const VendorGetInventoryItemsParamsFields: z.ZodObject<{
11
7
  q: z.ZodOptional<z.ZodString>;
12
- id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
13
- sku: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
14
- origin_country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
15
- mid_code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
16
- hs_code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
17
- material: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
18
- requires_shipping: any;
8
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
9
+ sku: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
10
+ origin_country: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
11
+ mid_code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
12
+ hs_code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
13
+ material: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
14
+ requires_shipping: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>, z.ZodTransform<boolean, string | boolean>>>;
19
15
  weight: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
20
16
  $eq: any;
21
17
  $ne: any;
@@ -29,33 +25,7 @@ export declare const VendorGetInventoryItemsParamsFields: z.ZodObject<{
29
25
  $gte: any;
30
26
  $lt: any;
31
27
  $lte: any;
32
- }, z.core.$strip, z.ZodTypeAny, {
33
- $nin?: any;
34
- $eq?: any;
35
- $ne?: any;
36
- $in?: any;
37
- $like?: any;
38
- $ilike?: any;
39
- $re?: any;
40
- $contains?: any;
41
- $gt?: any;
42
- $gte?: any;
43
- $lt?: any;
44
- $lte?: any;
45
- }, {
46
- $nin?: any;
47
- $eq?: any;
48
- $ne?: any;
49
- $in?: any;
50
- $like?: any;
51
- $ilike?: any;
52
- $re?: any;
53
- $contains?: any;
54
- $gt?: any;
55
- $gte?: any;
56
- $lt?: any;
57
- $lte?: any;
58
- }>]>>;
28
+ }, z.core.$strip>]>>;
59
29
  length: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
60
30
  $eq: any;
61
31
  $ne: any;
@@ -69,33 +39,7 @@ export declare const VendorGetInventoryItemsParamsFields: z.ZodObject<{
69
39
  $gte: any;
70
40
  $lt: any;
71
41
  $lte: any;
72
- }, z.core.$strip, z.ZodTypeAny, {
73
- $nin?: any;
74
- $eq?: any;
75
- $ne?: any;
76
- $in?: any;
77
- $like?: any;
78
- $ilike?: any;
79
- $re?: any;
80
- $contains?: any;
81
- $gt?: any;
82
- $gte?: any;
83
- $lt?: any;
84
- $lte?: any;
85
- }, {
86
- $nin?: any;
87
- $eq?: any;
88
- $ne?: any;
89
- $in?: any;
90
- $like?: any;
91
- $ilike?: any;
92
- $re?: any;
93
- $contains?: any;
94
- $gt?: any;
95
- $gte?: any;
96
- $lt?: any;
97
- $lte?: any;
98
- }>]>>;
42
+ }, z.core.$strip>]>>;
99
43
  height: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
100
44
  $eq: any;
101
45
  $ne: any;
@@ -109,33 +53,7 @@ export declare const VendorGetInventoryItemsParamsFields: z.ZodObject<{
109
53
  $gte: any;
110
54
  $lt: any;
111
55
  $lte: any;
112
- }, z.core.$strip, z.ZodTypeAny, {
113
- $nin?: any;
114
- $eq?: any;
115
- $ne?: any;
116
- $in?: any;
117
- $like?: any;
118
- $ilike?: any;
119
- $re?: any;
120
- $contains?: any;
121
- $gt?: any;
122
- $gte?: any;
123
- $lt?: any;
124
- $lte?: any;
125
- }, {
126
- $nin?: any;
127
- $eq?: any;
128
- $ne?: any;
129
- $in?: any;
130
- $like?: any;
131
- $ilike?: any;
132
- $re?: any;
133
- $contains?: any;
134
- $gt?: any;
135
- $gte?: any;
136
- $lt?: any;
137
- $lte?: any;
138
- }>]>>;
56
+ }, z.core.$strip>]>>;
139
57
  width: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
140
58
  $eq: any;
141
59
  $ne: any;
@@ -149,71 +67,11 @@ export declare const VendorGetInventoryItemsParamsFields: z.ZodObject<{
149
67
  $gte: any;
150
68
  $lt: any;
151
69
  $lte: any;
152
- }, z.core.$strip, z.ZodTypeAny, {
153
- $nin?: any;
154
- $eq?: any;
155
- $ne?: any;
156
- $in?: any;
157
- $like?: any;
158
- $ilike?: any;
159
- $re?: any;
160
- $contains?: any;
161
- $gt?: any;
162
- $gte?: any;
163
- $lt?: any;
164
- $lte?: any;
165
- }, {
166
- $nin?: any;
167
- $eq?: any;
168
- $ne?: any;
169
- $in?: any;
170
- $like?: any;
171
- $ilike?: any;
172
- $re?: any;
173
- $contains?: any;
174
- $gt?: any;
175
- $gte?: any;
176
- $lt?: any;
177
- $lte?: any;
178
- }>]>>;
70
+ }, z.core.$strip>]>>;
179
71
  location_levels: z.ZodOptional<z.ZodObject<{
180
- location_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
181
- }, "strip", z.ZodTypeAny, {
182
- location_id?: string | string[] | undefined;
183
- }, {
184
- location_id?: string | string[] | undefined;
185
- }>>;
186
- }, "strip", z.ZodTypeAny, {
187
- [x: string]: any;
188
- q?: unknown;
189
- id?: unknown;
190
- sku?: unknown;
191
- origin_country?: unknown;
192
- mid_code?: unknown;
193
- hs_code?: unknown;
194
- material?: unknown;
195
- requires_shipping?: unknown;
196
- weight?: unknown;
197
- length?: unknown;
198
- height?: unknown;
199
- width?: unknown;
200
- location_levels?: unknown;
201
- }, {
202
- [x: string]: any;
203
- q?: unknown;
204
- id?: unknown;
205
- sku?: unknown;
206
- origin_country?: unknown;
207
- mid_code?: unknown;
208
- hs_code?: unknown;
209
- material?: unknown;
210
- requires_shipping?: unknown;
211
- weight?: unknown;
212
- length?: unknown;
213
- height?: unknown;
214
- width?: unknown;
215
- location_levels?: unknown;
216
- }>;
72
+ location_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
73
+ }, z.core.$strip>>;
74
+ }, z.core.$strip>;
217
75
  export type VendorGetInventoryItemsParamsType = z.infer<typeof VendorGetInventoryItemsParams>;
218
76
  export declare const VendorGetInventoryItemsParams: z.ZodObject<{
219
77
  fields: z.ZodOptional<z.ZodString>;
@@ -221,15 +79,14 @@ export declare const VendorGetInventoryItemsParams: z.ZodObject<{
221
79
  limit: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
222
80
  order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
223
81
  with_deleted: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
224
- } & {
225
82
  q: z.ZodOptional<z.ZodString>;
226
- id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
227
- sku: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
228
- origin_country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
229
- mid_code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
230
- hs_code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
231
- material: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
232
- requires_shipping: any;
83
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
84
+ sku: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
85
+ origin_country: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
86
+ mid_code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
87
+ hs_code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
88
+ material: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
89
+ requires_shipping: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>, z.ZodTransform<boolean, string | boolean>>>;
233
90
  weight: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
234
91
  $eq: any;
235
92
  $ne: any;
@@ -243,33 +100,7 @@ export declare const VendorGetInventoryItemsParams: z.ZodObject<{
243
100
  $gte: any;
244
101
  $lt: any;
245
102
  $lte: any;
246
- }, z.core.$strip, z.ZodTypeAny, {
247
- $nin?: any;
248
- $eq?: any;
249
- $ne?: any;
250
- $in?: any;
251
- $like?: any;
252
- $ilike?: any;
253
- $re?: any;
254
- $contains?: any;
255
- $gt?: any;
256
- $gte?: any;
257
- $lt?: any;
258
- $lte?: any;
259
- }, {
260
- $nin?: any;
261
- $eq?: any;
262
- $ne?: any;
263
- $in?: any;
264
- $like?: any;
265
- $ilike?: any;
266
- $re?: any;
267
- $contains?: any;
268
- $gt?: any;
269
- $gte?: any;
270
- $lt?: any;
271
- $lte?: any;
272
- }>]>>;
103
+ }, z.core.$strip>]>>;
273
104
  length: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
274
105
  $eq: any;
275
106
  $ne: any;
@@ -283,33 +114,7 @@ export declare const VendorGetInventoryItemsParams: z.ZodObject<{
283
114
  $gte: any;
284
115
  $lt: any;
285
116
  $lte: any;
286
- }, z.core.$strip, z.ZodTypeAny, {
287
- $nin?: any;
288
- $eq?: any;
289
- $ne?: any;
290
- $in?: any;
291
- $like?: any;
292
- $ilike?: any;
293
- $re?: any;
294
- $contains?: any;
295
- $gt?: any;
296
- $gte?: any;
297
- $lt?: any;
298
- $lte?: any;
299
- }, {
300
- $nin?: any;
301
- $eq?: any;
302
- $ne?: any;
303
- $in?: any;
304
- $like?: any;
305
- $ilike?: any;
306
- $re?: any;
307
- $contains?: any;
308
- $gt?: any;
309
- $gte?: any;
310
- $lt?: any;
311
- $lte?: any;
312
- }>]>>;
117
+ }, z.core.$strip>]>>;
313
118
  height: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
314
119
  $eq: any;
315
120
  $ne: any;
@@ -323,33 +128,7 @@ export declare const VendorGetInventoryItemsParams: z.ZodObject<{
323
128
  $gte: any;
324
129
  $lt: any;
325
130
  $lte: any;
326
- }, z.core.$strip, z.ZodTypeAny, {
327
- $nin?: any;
328
- $eq?: any;
329
- $ne?: any;
330
- $in?: any;
331
- $like?: any;
332
- $ilike?: any;
333
- $re?: any;
334
- $contains?: any;
335
- $gt?: any;
336
- $gte?: any;
337
- $lt?: any;
338
- $lte?: any;
339
- }, {
340
- $nin?: any;
341
- $eq?: any;
342
- $ne?: any;
343
- $in?: any;
344
- $like?: any;
345
- $ilike?: any;
346
- $re?: any;
347
- $contains?: any;
348
- $gt?: any;
349
- $gte?: any;
350
- $lt?: any;
351
- $lte?: any;
352
- }>]>>;
131
+ }, z.core.$strip>]>>;
353
132
  width: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
354
133
  $eq: any;
355
134
  $ne: any;
@@ -363,96 +142,18 @@ export declare const VendorGetInventoryItemsParams: z.ZodObject<{
363
142
  $gte: any;
364
143
  $lt: any;
365
144
  $lte: any;
366
- }, z.core.$strip, z.ZodTypeAny, {
367
- $nin?: any;
368
- $eq?: any;
369
- $ne?: any;
370
- $in?: any;
371
- $like?: any;
372
- $ilike?: any;
373
- $re?: any;
374
- $contains?: any;
375
- $gt?: any;
376
- $gte?: any;
377
- $lt?: any;
378
- $lte?: any;
379
- }, {
380
- $nin?: any;
381
- $eq?: any;
382
- $ne?: any;
383
- $in?: any;
384
- $like?: any;
385
- $ilike?: any;
386
- $re?: any;
387
- $contains?: any;
388
- $gt?: any;
389
- $gte?: any;
390
- $lt?: any;
391
- $lte?: any;
392
- }>]>>;
145
+ }, z.core.$strip>]>>;
393
146
  location_levels: z.ZodOptional<z.ZodObject<{
394
- location_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
395
- }, "strip", z.ZodTypeAny, {
396
- location_id?: string | string[] | undefined;
397
- }, {
398
- location_id?: string | string[] | undefined;
399
- }>>;
400
- }, "strip", z.ZodTypeAny, {
401
- [x: string]: any;
402
- fields?: unknown;
403
- offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
404
- limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
405
- order?: unknown;
406
- with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
407
- q?: unknown;
408
- id?: unknown;
409
- sku?: unknown;
410
- origin_country?: unknown;
411
- mid_code?: unknown;
412
- hs_code?: unknown;
413
- material?: unknown;
414
- requires_shipping?: unknown;
415
- weight?: unknown;
416
- length?: unknown;
417
- height?: unknown;
418
- width?: unknown;
419
- location_levels?: unknown;
420
- }, {
421
- [x: string]: any;
422
- fields?: unknown;
423
- offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
424
- limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
425
- order?: unknown;
426
- with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
427
- q?: unknown;
428
- id?: unknown;
429
- sku?: unknown;
430
- origin_country?: unknown;
431
- mid_code?: unknown;
432
- hs_code?: unknown;
433
- material?: unknown;
434
- requires_shipping?: unknown;
435
- weight?: unknown;
436
- length?: unknown;
437
- height?: unknown;
438
- width?: unknown;
439
- location_levels?: unknown;
440
- }>;
147
+ location_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
148
+ }, z.core.$strip>>;
149
+ }, z.core.$strip>;
441
150
  export type VendorGetInventoryLocationLevelParamsType = z.infer<typeof VendorGetInventoryLocationLevelParams>;
442
151
  export declare const VendorGetInventoryLocationLevelParams: z.ZodObject<{
443
152
  fields: z.ZodOptional<z.ZodString>;
444
- }, z.core.$strip, z.ZodTypeAny, {
445
- fields?: string | undefined;
446
- }, {
447
- fields?: string | undefined;
448
- }>;
153
+ }, z.core.$strip>;
449
154
  export declare const VendorGetInventoryLocationLevelsParamsFields: z.ZodObject<{
450
- location_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
451
- }, "strip", z.ZodTypeAny, {
452
- location_id?: string | string[] | undefined;
453
- }, {
454
- location_id?: string | string[] | undefined;
455
- }>;
155
+ location_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
156
+ }, z.core.$strip>;
456
157
  export type VendorGetInventoryLocationLevelsParamsType = z.infer<typeof VendorGetInventoryLocationLevelsParams>;
457
158
  export declare const VendorGetInventoryLocationLevelsParams: z.ZodObject<{
458
159
  fields: z.ZodOptional<z.ZodString>;
@@ -460,116 +161,37 @@ export declare const VendorGetInventoryLocationLevelsParams: z.ZodObject<{
460
161
  limit: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
461
162
  order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
462
163
  with_deleted: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
463
- } & {
464
- location_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
465
- }, "strip", z.ZodTypeAny, {
466
- order?: string | undefined;
467
- fields?: string | undefined;
468
- offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
469
- limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
470
- with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
471
- location_id?: string | string[] | undefined;
472
- }, {
473
- order?: string | undefined;
474
- fields?: string | undefined;
475
- offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
476
- limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
477
- with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
478
- location_id?: string | string[] | undefined;
479
- }>;
164
+ location_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
165
+ }, z.core.$strip>;
480
166
  export type VendorCreateInventoryLocationLevelType = z.infer<typeof VendorCreateInventoryLocationLevel>;
481
167
  export declare const VendorCreateInventoryLocationLevel: z.ZodObject<{
482
168
  location_id: z.ZodString;
483
169
  stocked_quantity: z.ZodOptional<z.ZodNumber>;
484
170
  incoming_quantity: z.ZodOptional<z.ZodNumber>;
485
- }, "strict", z.ZodTypeAny, {
486
- location_id: string;
487
- stocked_quantity?: number | undefined;
488
- incoming_quantity?: number | undefined;
489
- }, {
490
- location_id: string;
491
- stocked_quantity?: number | undefined;
492
- incoming_quantity?: number | undefined;
493
- }>;
171
+ }, z.core.$strict>;
494
172
  export type VendorUpdateInventoryLocationLevelBatchType = z.infer<typeof VendorUpdateInventoryLocationLevelBatch>;
495
173
  export declare const VendorUpdateInventoryLocationLevelBatch: z.ZodObject<{
496
174
  id: z.ZodOptional<z.ZodString>;
497
175
  location_id: z.ZodString;
498
176
  stocked_quantity: z.ZodOptional<z.ZodNumber>;
499
177
  incoming_quantity: z.ZodOptional<z.ZodNumber>;
500
- }, "strict", z.ZodTypeAny, {
501
- location_id: string;
502
- id?: string | undefined;
503
- stocked_quantity?: number | undefined;
504
- incoming_quantity?: number | undefined;
505
- }, {
506
- location_id: string;
507
- id?: string | undefined;
508
- stocked_quantity?: number | undefined;
509
- incoming_quantity?: number | undefined;
510
- }>;
178
+ }, z.core.$strict>;
511
179
  export type VendorBatchInventoryItemLocationsLevelType = z.infer<typeof VendorBatchInventoryItemLocationsLevel>;
512
180
  export declare const VendorBatchInventoryItemLocationsLevel: z.ZodObject<{
513
181
  create: z.ZodOptional<z.ZodArray<z.ZodObject<{
514
182
  location_id: z.ZodString;
515
183
  stocked_quantity: z.ZodOptional<z.ZodNumber>;
516
184
  incoming_quantity: z.ZodOptional<z.ZodNumber>;
517
- }, "strict", z.ZodTypeAny, {
518
- location_id: string;
519
- stocked_quantity?: number | undefined;
520
- incoming_quantity?: number | undefined;
521
- }, {
522
- location_id: string;
523
- stocked_quantity?: number | undefined;
524
- incoming_quantity?: number | undefined;
525
- }>, "many">>;
185
+ }, z.core.$strict>>>;
526
186
  update: z.ZodOptional<z.ZodArray<z.ZodObject<{
527
187
  id: z.ZodOptional<z.ZodString>;
528
188
  location_id: z.ZodString;
529
189
  stocked_quantity: z.ZodOptional<z.ZodNumber>;
530
190
  incoming_quantity: z.ZodOptional<z.ZodNumber>;
531
- }, "strict", z.ZodTypeAny, {
532
- location_id: string;
533
- id?: string | undefined;
534
- stocked_quantity?: number | undefined;
535
- incoming_quantity?: number | undefined;
536
- }, {
537
- location_id: string;
538
- id?: string | undefined;
539
- stocked_quantity?: number | undefined;
540
- incoming_quantity?: number | undefined;
541
- }>, "many">>;
542
- delete: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
191
+ }, z.core.$strict>>>;
192
+ delete: z.ZodOptional<z.ZodArray<z.ZodString>>;
543
193
  force: z.ZodOptional<z.ZodBoolean>;
544
- }, "strip", z.ZodTypeAny, {
545
- create?: {
546
- location_id: string;
547
- stocked_quantity?: number | undefined;
548
- incoming_quantity?: number | undefined;
549
- }[] | undefined;
550
- update?: {
551
- location_id: string;
552
- id?: string | undefined;
553
- stocked_quantity?: number | undefined;
554
- incoming_quantity?: number | undefined;
555
- }[] | undefined;
556
- delete?: string[] | undefined;
557
- force?: boolean | undefined;
558
- }, {
559
- create?: {
560
- location_id: string;
561
- stocked_quantity?: number | undefined;
562
- incoming_quantity?: number | undefined;
563
- }[] | undefined;
564
- update?: {
565
- location_id: string;
566
- id?: string | undefined;
567
- stocked_quantity?: number | undefined;
568
- incoming_quantity?: number | undefined;
569
- }[] | undefined;
570
- delete?: string[] | undefined;
571
- force?: boolean | undefined;
572
- }>;
194
+ }, z.core.$strip>;
573
195
  export type VendorBatchInventoryItemLevelsType = z.infer<typeof VendorBatchInventoryItemLevels>;
574
196
  export declare const VendorBatchInventoryItemLevels: z.ZodObject<{
575
197
  create: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -577,77 +199,21 @@ export declare const VendorBatchInventoryItemLevels: z.ZodObject<{
577
199
  location_id: z.ZodString;
578
200
  stocked_quantity: z.ZodOptional<z.ZodNumber>;
579
201
  incoming_quantity: z.ZodOptional<z.ZodNumber>;
580
- }, "strip", z.ZodTypeAny, {
581
- location_id: string;
582
- inventory_item_id: string;
583
- stocked_quantity?: number | undefined;
584
- incoming_quantity?: number | undefined;
585
- }, {
586
- location_id: string;
587
- inventory_item_id: string;
588
- stocked_quantity?: number | undefined;
589
- incoming_quantity?: number | undefined;
590
- }>, "many">>;
202
+ }, z.core.$strip>>>;
591
203
  update: z.ZodOptional<z.ZodArray<z.ZodObject<{
592
204
  inventory_item_id: z.ZodString;
593
205
  location_id: z.ZodString;
594
206
  stocked_quantity: z.ZodOptional<z.ZodNumber>;
595
207
  incoming_quantity: z.ZodOptional<z.ZodNumber>;
596
- }, "strip", z.ZodTypeAny, {
597
- location_id: string;
598
- inventory_item_id: string;
599
- stocked_quantity?: number | undefined;
600
- incoming_quantity?: number | undefined;
601
- }, {
602
- location_id: string;
603
- inventory_item_id: string;
604
- stocked_quantity?: number | undefined;
605
- incoming_quantity?: number | undefined;
606
- }>, "many">>;
607
- delete: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
208
+ }, z.core.$strip>>>;
209
+ delete: z.ZodOptional<z.ZodArray<z.ZodString>>;
608
210
  force: z.ZodOptional<z.ZodBoolean>;
609
- }, "strict", z.ZodTypeAny, {
610
- create?: {
611
- location_id: string;
612
- inventory_item_id: string;
613
- stocked_quantity?: number | undefined;
614
- incoming_quantity?: number | undefined;
615
- }[] | undefined;
616
- update?: {
617
- location_id: string;
618
- inventory_item_id: string;
619
- stocked_quantity?: number | undefined;
620
- incoming_quantity?: number | undefined;
621
- }[] | undefined;
622
- delete?: string[] | undefined;
623
- force?: boolean | undefined;
624
- }, {
625
- create?: {
626
- location_id: string;
627
- inventory_item_id: string;
628
- stocked_quantity?: number | undefined;
629
- incoming_quantity?: number | undefined;
630
- }[] | undefined;
631
- update?: {
632
- location_id: string;
633
- inventory_item_id: string;
634
- stocked_quantity?: number | undefined;
635
- incoming_quantity?: number | undefined;
636
- }[] | undefined;
637
- delete?: string[] | undefined;
638
- force?: boolean | undefined;
639
- }>;
211
+ }, z.core.$strict>;
640
212
  export type VendorUpdateInventoryLocationLevelType = z.infer<typeof VendorUpdateInventoryLocationLevel>;
641
213
  export declare const VendorUpdateInventoryLocationLevel: z.ZodObject<{
642
214
  stocked_quantity: z.ZodOptional<z.ZodNumber>;
643
215
  incoming_quantity: z.ZodOptional<z.ZodNumber>;
644
- }, "strict", z.ZodTypeAny, {
645
- stocked_quantity?: number | undefined;
646
- incoming_quantity?: number | undefined;
647
- }, {
648
- stocked_quantity?: number | undefined;
649
- incoming_quantity?: number | undefined;
650
- }>;
216
+ }, z.core.$strict>;
651
217
  export type VendorCreateInventoryItemType = z.infer<typeof VendorCreateInventoryItem>;
652
218
  export declare const VendorCreateInventoryItem: z.ZodObject<{
653
219
  sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -668,56 +234,8 @@ export declare const VendorCreateInventoryItem: z.ZodObject<{
668
234
  location_id: z.ZodString;
669
235
  stocked_quantity: z.ZodOptional<z.ZodNumber>;
670
236
  incoming_quantity: z.ZodOptional<z.ZodNumber>;
671
- }, "strict", z.ZodTypeAny, {
672
- location_id: string;
673
- stocked_quantity?: number | undefined;
674
- incoming_quantity?: number | undefined;
675
- }, {
676
- location_id: string;
677
- stocked_quantity?: number | undefined;
678
- incoming_quantity?: number | undefined;
679
- }>, "many">>;
680
- }, "strict", z.ZodTypeAny, {
681
- length?: number | null | undefined;
682
- metadata?: Record<string, unknown> | null | undefined;
683
- title?: string | null | undefined;
684
- sku?: string | null | undefined;
685
- description?: string | null | undefined;
686
- thumbnail?: string | null | undefined;
687
- weight?: number | null | undefined;
688
- height?: number | null | undefined;
689
- width?: number | null | undefined;
690
- hs_code?: string | null | undefined;
691
- origin_country?: string | null | undefined;
692
- mid_code?: string | null | undefined;
693
- material?: string | null | undefined;
694
- requires_shipping?: boolean | undefined;
695
- location_levels?: {
696
- location_id: string;
697
- stocked_quantity?: number | undefined;
698
- incoming_quantity?: number | undefined;
699
- }[] | undefined;
700
- }, {
701
- length?: number | null | undefined;
702
- metadata?: Record<string, unknown> | null | undefined;
703
- title?: string | null | undefined;
704
- sku?: string | null | undefined;
705
- description?: string | null | undefined;
706
- thumbnail?: string | null | undefined;
707
- weight?: number | null | undefined;
708
- height?: number | null | undefined;
709
- width?: number | null | undefined;
710
- hs_code?: string | null | undefined;
711
- origin_country?: string | null | undefined;
712
- mid_code?: string | null | undefined;
713
- material?: string | null | undefined;
714
- requires_shipping?: boolean | undefined;
715
- location_levels?: {
716
- location_id: string;
717
- stocked_quantity?: number | undefined;
718
- incoming_quantity?: number | undefined;
719
- }[] | undefined;
720
- }>;
237
+ }, z.core.$strict>>>;
238
+ }, z.core.$strict>;
721
239
  export type VendorUpdateInventoryItemType = z.infer<typeof VendorUpdateInventoryItem>;
722
240
  export declare const VendorUpdateInventoryItem: z.ZodObject<{
723
241
  sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -734,34 +252,4 @@ export declare const VendorUpdateInventoryItem: z.ZodObject<{
734
252
  requires_shipping: z.ZodOptional<z.ZodBoolean>;
735
253
  thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
736
254
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
737
- }, "strict", z.ZodTypeAny, {
738
- length?: number | null | undefined;
739
- metadata?: Record<string, unknown> | null | undefined;
740
- title?: string | null | undefined;
741
- sku?: string | null | undefined;
742
- description?: string | null | undefined;
743
- thumbnail?: string | null | undefined;
744
- weight?: number | null | undefined;
745
- height?: number | null | undefined;
746
- width?: number | null | undefined;
747
- hs_code?: string | null | undefined;
748
- origin_country?: string | null | undefined;
749
- mid_code?: string | null | undefined;
750
- material?: string | null | undefined;
751
- requires_shipping?: boolean | undefined;
752
- }, {
753
- length?: number | null | undefined;
754
- metadata?: Record<string, unknown> | null | undefined;
755
- title?: string | null | undefined;
756
- sku?: string | null | undefined;
757
- description?: string | null | undefined;
758
- thumbnail?: string | null | undefined;
759
- weight?: number | null | undefined;
760
- height?: number | null | undefined;
761
- width?: number | null | undefined;
762
- hs_code?: string | null | undefined;
763
- origin_country?: string | null | undefined;
764
- mid_code?: string | null | undefined;
765
- material?: string | null | undefined;
766
- requires_shipping?: boolean | undefined;
767
- }>;
255
+ }, z.core.$strict>;