@mercurjs/core 2.3.5 → 2.3.6-canary.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.
Files changed (106) 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/index.js +12 -5
  89. package/.medusa/server/src/patches/manifest.js +13 -3
  90. package/.medusa/server/src/patches/patches/@medusajs+core-flows@2.21.0-payment-hooks.patch +89 -0
  91. package/.medusa/server/src/utils/disable-medusa-middlewares.d.ts +2 -0
  92. package/.medusa/server/src/utils/disable-medusa-middlewares.js +35 -10
  93. package/.medusa/server/src/workflows/commission/workflows/refresh-order-commission-lines.d.ts +8 -1
  94. package/.medusa/server/src/workflows/commission/workflows/refresh-order-commission-lines.js +6 -2
  95. package/.medusa/server/src/workflows/offer/workflows/index.d.ts +1 -0
  96. package/.medusa/server/src/workflows/offer/workflows/index.js +2 -1
  97. package/.medusa/server/src/workflows/offer/workflows/update-offers.js +9 -138
  98. package/.medusa/server/src/workflows/offer/workflows/upsert-offer-prices.d.ts +14 -0
  99. package/.medusa/server/src/workflows/offer/workflows/upsert-offer-prices.js +130 -0
  100. package/.medusa/server/src/workflows/order/workflows/confirm-return-receive.d.ts +15 -2
  101. package/.medusa/server/src/workflows/order/workflows/confirm-return-receive.js +14 -3
  102. package/.medusa/server/src/workflows/payment/workflows/index.d.ts +1 -0
  103. package/.medusa/server/src/workflows/payment/workflows/index.js +2 -1
  104. package/.medusa/server/src/workflows/payment/workflows/payment-hooks.d.ts +25 -0
  105. package/.medusa/server/src/workflows/payment/workflows/payment-hooks.js +10 -0
  106. package/package.json +17 -17
@@ -1,23 +1,23 @@
1
1
  import { z } from "zod";
2
2
  import { AdditionalData } from "@medusajs/framework/types";
3
3
  export type VendorGetProductsParamsType = z.infer<typeof VendorGetProductsParams>;
4
- export declare const VendorGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
4
+ export declare const VendorGetProductsParams: z.ZodPipe<z.ZodObject<{
5
5
  [x: string]: any;
6
6
  $and: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
7
7
  q: z.ZodOptional<z.ZodString>;
8
- id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
8
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
9
9
  title: z.ZodOptional<z.ZodString>;
10
10
  handle: z.ZodOptional<z.ZodString>;
11
- status: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<{
11
+ status: z.ZodOptional<z.ZodArray<z.ZodEnum<{
12
12
  readonly DRAFT: "draft";
13
13
  readonly PROPOSED: "proposed";
14
14
  readonly PUBLISHED: "published";
15
15
  readonly REJECTED: "rejected";
16
- }>, "many">>;
17
- collection_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
18
- type_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
19
- category_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
20
- tag_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
16
+ }>>>;
17
+ collection_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
18
+ type_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
19
+ category_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
20
+ tag_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
21
21
  sku: z.ZodOptional<z.ZodString>;
22
22
  ean: z.ZodOptional<z.ZodString>;
23
23
  upc: z.ZodOptional<z.ZodString>;
@@ -35,33 +35,7 @@ export declare const VendorGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
35
35
  $gte: any;
36
36
  $lt: any;
37
37
  $lte: any;
38
- }, z.core.$strip, z.ZodTypeAny, {
39
- $nin?: any;
40
- $eq?: any;
41
- $ne?: any;
42
- $in?: any;
43
- $like?: any;
44
- $ilike?: any;
45
- $re?: any;
46
- $contains?: any;
47
- $gt?: any;
48
- $gte?: any;
49
- $lt?: any;
50
- $lte?: any;
51
- }, {
52
- $nin?: any;
53
- $eq?: any;
54
- $ne?: any;
55
- $in?: any;
56
- $like?: any;
57
- $ilike?: any;
58
- $re?: any;
59
- $contains?: any;
60
- $gt?: any;
61
- $gte?: any;
62
- $lt?: any;
63
- $lte?: any;
64
- }>]>>;
38
+ }, z.core.$strip>]>>;
65
39
  updated_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
66
40
  $eq: any;
67
41
  $ne: any;
@@ -75,33 +49,7 @@ export declare const VendorGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
75
49
  $gte: any;
76
50
  $lt: any;
77
51
  $lte: any;
78
- }, z.core.$strip, z.ZodTypeAny, {
79
- $nin?: any;
80
- $eq?: any;
81
- $ne?: any;
82
- $in?: any;
83
- $like?: any;
84
- $ilike?: any;
85
- $re?: any;
86
- $contains?: any;
87
- $gt?: any;
88
- $gte?: any;
89
- $lt?: any;
90
- $lte?: any;
91
- }, {
92
- $nin?: any;
93
- $eq?: any;
94
- $ne?: any;
95
- $in?: any;
96
- $like?: any;
97
- $ilike?: any;
98
- $re?: any;
99
- $contains?: any;
100
- $gt?: any;
101
- $gte?: any;
102
- $lt?: any;
103
- $lte?: any;
104
- }>]>>;
52
+ }, z.core.$strip>]>>;
105
53
  deleted_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
106
54
  $eq: any;
107
55
  $ne: any;
@@ -115,88 +63,24 @@ export declare const VendorGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
115
63
  $gte: any;
116
64
  $lt: any;
117
65
  $lte: any;
118
- }, z.core.$strip, z.ZodTypeAny, {
119
- $nin?: any;
120
- $eq?: any;
121
- $ne?: any;
122
- $in?: any;
123
- $like?: any;
124
- $ilike?: any;
125
- $re?: any;
126
- $contains?: any;
127
- $gt?: any;
128
- $gte?: any;
129
- $lt?: any;
130
- $lte?: any;
131
- }, {
132
- $nin?: any;
133
- $eq?: any;
134
- $ne?: any;
135
- $in?: any;
136
- $like?: any;
137
- $ilike?: any;
138
- $re?: any;
139
- $contains?: any;
140
- $gt?: any;
141
- $gte?: any;
142
- $lt?: any;
143
- $lte?: any;
144
- }>]>>;
145
- has_offer: any;
146
- }, "strip", z.ZodTypeAny, {
147
- [x: string]: any;
148
- q?: unknown;
149
- id?: unknown;
150
- title?: unknown;
151
- handle?: unknown;
152
- status?: unknown;
153
- collection_id?: unknown;
154
- type_id?: unknown;
155
- category_id?: unknown;
156
- tag_id?: unknown;
157
- sku?: unknown;
158
- ean?: unknown;
159
- upc?: unknown;
160
- barcode?: unknown;
161
- created_at?: unknown;
162
- updated_at?: unknown;
163
- deleted_at?: unknown;
164
- has_offer?: unknown;
165
- }, {
166
- [x: string]: any;
167
- q?: unknown;
168
- id?: unknown;
169
- title?: unknown;
170
- handle?: unknown;
171
- status?: unknown;
172
- collection_id?: unknown;
173
- type_id?: unknown;
174
- category_id?: unknown;
175
- tag_id?: unknown;
176
- sku?: unknown;
177
- ean?: unknown;
178
- upc?: unknown;
179
- barcode?: unknown;
180
- created_at?: unknown;
181
- updated_at?: unknown;
182
- deleted_at?: unknown;
183
- has_offer?: unknown;
184
- }>, "many">>>;
66
+ }, z.core.$strip>]>>;
67
+ has_offer: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>, z.ZodTransform<boolean, string | boolean>>>;
68
+ }, z.core.$strip>>>>;
185
69
  $or: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
186
70
  q: z.ZodOptional<z.ZodString>;
187
- id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
71
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
188
72
  title: z.ZodOptional<z.ZodString>;
189
73
  handle: z.ZodOptional<z.ZodString>;
190
- status: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<{
74
+ status: z.ZodOptional<z.ZodArray<z.ZodEnum<{
191
75
  readonly DRAFT: "draft";
192
76
  readonly PROPOSED: "proposed";
193
77
  readonly PUBLISHED: "published";
194
78
  readonly REJECTED: "rejected";
195
- }>, "many">>;
196
- collection_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
197
- type_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
198
- category_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
199
- tag_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
79
+ }>>>;
80
+ collection_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
81
+ type_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
82
+ category_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
83
+ tag_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
200
84
  sku: z.ZodOptional<z.ZodString>;
201
85
  ean: z.ZodOptional<z.ZodString>;
202
86
  upc: z.ZodOptional<z.ZodString>;
@@ -214,33 +98,7 @@ export declare const VendorGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
214
98
  $gte: any;
215
99
  $lt: any;
216
100
  $lte: any;
217
- }, z.core.$strip, z.ZodTypeAny, {
218
- $nin?: any;
219
- $eq?: any;
220
- $ne?: any;
221
- $in?: any;
222
- $like?: any;
223
- $ilike?: any;
224
- $re?: any;
225
- $contains?: any;
226
- $gt?: any;
227
- $gte?: any;
228
- $lt?: any;
229
- $lte?: any;
230
- }, {
231
- $nin?: any;
232
- $eq?: any;
233
- $ne?: any;
234
- $in?: any;
235
- $like?: any;
236
- $ilike?: any;
237
- $re?: any;
238
- $contains?: any;
239
- $gt?: any;
240
- $gte?: any;
241
- $lt?: any;
242
- $lte?: any;
243
- }>]>>;
101
+ }, z.core.$strip>]>>;
244
102
  updated_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
245
103
  $eq: any;
246
104
  $ne: any;
@@ -254,33 +112,7 @@ export declare const VendorGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
254
112
  $gte: any;
255
113
  $lt: any;
256
114
  $lte: any;
257
- }, z.core.$strip, z.ZodTypeAny, {
258
- $nin?: any;
259
- $eq?: any;
260
- $ne?: any;
261
- $in?: any;
262
- $like?: any;
263
- $ilike?: any;
264
- $re?: any;
265
- $contains?: any;
266
- $gt?: any;
267
- $gte?: any;
268
- $lt?: any;
269
- $lte?: any;
270
- }, {
271
- $nin?: any;
272
- $eq?: any;
273
- $ne?: any;
274
- $in?: any;
275
- $like?: any;
276
- $ilike?: any;
277
- $re?: any;
278
- $contains?: any;
279
- $gt?: any;
280
- $gte?: any;
281
- $lt?: any;
282
- $lte?: any;
283
- }>]>>;
115
+ }, z.core.$strip>]>>;
284
116
  deleted_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
285
117
  $eq: any;
286
118
  $ne: any;
@@ -294,114 +126,30 @@ export declare const VendorGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
294
126
  $gte: any;
295
127
  $lt: any;
296
128
  $lte: any;
297
- }, z.core.$strip, z.ZodTypeAny, {
298
- $nin?: any;
299
- $eq?: any;
300
- $ne?: any;
301
- $in?: any;
302
- $like?: any;
303
- $ilike?: any;
304
- $re?: any;
305
- $contains?: any;
306
- $gt?: any;
307
- $gte?: any;
308
- $lt?: any;
309
- $lte?: any;
310
- }, {
311
- $nin?: any;
312
- $eq?: any;
313
- $ne?: any;
314
- $in?: any;
315
- $like?: any;
316
- $ilike?: any;
317
- $re?: any;
318
- $contains?: any;
319
- $gt?: any;
320
- $gte?: any;
321
- $lt?: any;
322
- $lte?: any;
323
- }>]>>;
324
- has_offer: any;
325
- }, "strip", z.ZodTypeAny, {
326
- [x: string]: any;
327
- q?: unknown;
328
- id?: unknown;
329
- title?: unknown;
330
- handle?: unknown;
331
- status?: unknown;
332
- collection_id?: unknown;
333
- type_id?: unknown;
334
- category_id?: unknown;
335
- tag_id?: unknown;
336
- sku?: unknown;
337
- ean?: unknown;
338
- upc?: unknown;
339
- barcode?: unknown;
340
- created_at?: unknown;
341
- updated_at?: unknown;
342
- deleted_at?: unknown;
343
- has_offer?: unknown;
344
- }, {
345
- [x: string]: any;
346
- q?: unknown;
347
- id?: unknown;
348
- title?: unknown;
349
- handle?: unknown;
350
- status?: unknown;
351
- collection_id?: unknown;
352
- type_id?: unknown;
353
- category_id?: unknown;
354
- tag_id?: unknown;
355
- sku?: unknown;
356
- ean?: unknown;
357
- upc?: unknown;
358
- barcode?: unknown;
359
- created_at?: unknown;
360
- updated_at?: unknown;
361
- deleted_at?: unknown;
362
- has_offer?: unknown;
363
- }>, "many">>>;
364
- }, z.core.$strip, z.ZodTypeAny, {
365
- [x: string]: any;
366
- $and?: unknown;
367
- $or?: unknown;
368
- }, {
369
- [x: string]: any;
370
- $and?: unknown;
371
- $or?: unknown;
372
- }>, Record<string, unknown>, {
373
- [x: string]: any;
374
- $and?: unknown;
375
- $or?: unknown;
376
- }>;
129
+ }, z.core.$strip>]>>;
130
+ has_offer: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>, z.ZodTransform<boolean, string | boolean>>>;
131
+ }, z.core.$strip>>>>;
132
+ }, z.core.$strip>, z.ZodTransform<Record<string, unknown>, Record<string, unknown>>>;
377
133
  export type VendorGetProductParamsType = z.infer<typeof VendorGetProductParams>;
378
134
  export declare const VendorGetProductParams: z.ZodObject<{
379
135
  fields: z.ZodOptional<z.ZodString>;
380
- }, z.core.$strip, z.ZodTypeAny, {
381
- fields?: string | undefined;
382
- }, {
383
- fields?: string | undefined;
384
- }>;
136
+ }, z.core.$strip>;
385
137
  export type VendorCreateProductType = z.infer<typeof CreateProduct> & AdditionalData;
386
138
  declare const CreateProduct: z.ZodObject<{
387
139
  title: z.ZodString;
388
140
  subtitle: z.ZodOptional<z.ZodString>;
389
141
  description: z.ZodOptional<z.ZodString>;
390
- status: z.ZodOptional<z.ZodNativeEnum<{
142
+ status: z.ZodOptional<z.ZodEnum<{
391
143
  readonly DRAFT: "draft";
392
144
  readonly PROPOSED: "proposed";
393
145
  readonly PUBLISHED: "published";
394
146
  readonly REJECTED: "rejected";
395
147
  }>>;
396
- is_giftcard: any;
397
- discountable: any;
148
+ is_giftcard: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>, z.ZodTransform<boolean, string | boolean>>>>;
149
+ discountable: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>, z.ZodTransform<boolean, string | boolean>>>>;
398
150
  images: z.ZodOptional<z.ZodArray<z.ZodObject<{
399
151
  url: z.ZodString;
400
- }, "strip", z.ZodTypeAny, {
401
- url: string;
402
- }, {
403
- url: string;
404
- }>, "many">>;
152
+ }, z.core.$strip>>>;
405
153
  thumbnail: z.ZodOptional<z.ZodString>;
406
154
  handle: z.ZodOptional<z.ZodString>;
407
155
  external_id: z.ZodOptional<z.ZodString>;
@@ -409,71 +157,35 @@ declare const CreateProduct: z.ZodObject<{
409
157
  collection_id: z.ZodOptional<z.ZodString>;
410
158
  categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
411
159
  id: z.ZodString;
412
- }, "strip", z.ZodTypeAny, {
413
- id: string;
414
- }, {
415
- id: string;
416
- }>, "many">>;
160
+ }, z.core.$strip>>>;
417
161
  tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
418
162
  id: z.ZodString;
419
- }, "strip", z.ZodTypeAny, {
420
- id: string;
421
- }, {
422
- id: string;
423
- }>, "many">>;
163
+ }, z.core.$strip>>>;
424
164
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
425
165
  title: z.ZodString;
426
- values: z.ZodArray<z.ZodString, "many">;
427
- }, "strip", z.ZodTypeAny, {
428
- values: string[];
429
- title: string;
430
- }, {
431
- values: string[];
432
- title: string;
433
- }>, "many">>;
434
- attributes: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
166
+ values: z.ZodArray<z.ZodString>;
167
+ }, z.core.$strip>>>;
168
+ attributes: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
435
169
  id: z.ZodString;
436
- value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
437
- value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
438
- }, "strict", z.ZodTypeAny, {
439
- id: string;
440
- value?: string | number | boolean | undefined;
441
- value_ids?: string[] | undefined;
442
- }, {
443
- id: string;
444
- value?: string | number | boolean | undefined;
445
- value_ids?: string[] | undefined;
446
- }>, z.ZodObject<{
170
+ value_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
171
+ value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
172
+ }, z.core.$strict>, z.ZodObject<{
447
173
  title: z.ZodString;
448
- type: z.ZodOptional<z.ZodEnum<["single_select", "multi_select", "text", "toggle", "unit"]>>;
449
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
450
- value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
174
+ type: z.ZodOptional<z.ZodEnum<{
175
+ single_select: "single_select";
176
+ multi_select: "multi_select";
177
+ text: "text";
178
+ toggle: "toggle";
179
+ unit: "unit";
180
+ }>>;
181
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
182
+ value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
451
183
  is_variant_axis: z.ZodOptional<z.ZodBoolean>;
452
184
  is_filterable: z.ZodOptional<z.ZodBoolean>;
453
185
  is_required: z.ZodOptional<z.ZodBoolean>;
454
186
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
455
187
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
456
- }, "strict", z.ZodTypeAny, {
457
- title: string;
458
- values?: string[] | undefined;
459
- metadata?: Record<string, unknown> | null | undefined;
460
- type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
461
- is_variant_axis?: boolean | undefined;
462
- is_required?: boolean | undefined;
463
- value?: string | number | boolean | undefined;
464
- description?: string | null | undefined;
465
- is_filterable?: boolean | undefined;
466
- }, {
467
- title: string;
468
- values?: string[] | undefined;
469
- metadata?: Record<string, unknown> | null | undefined;
470
- type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
471
- is_variant_axis?: boolean | undefined;
472
- is_required?: boolean | undefined;
473
- value?: string | number | boolean | undefined;
474
- description?: string | null | undefined;
475
- is_filterable?: boolean | undefined;
476
- }>]>, "many">>;
188
+ }, z.core.$strict>]>>>;
477
189
  variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
478
190
  title: z.ZodString;
479
191
  sku: z.ZodOptional<z.ZodString>;
@@ -494,47 +206,7 @@ declare const CreateProduct: z.ZodObject<{
494
206
  material: z.ZodOptional<z.ZodString>;
495
207
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
496
208
  options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
497
- }, "strict", z.ZodTypeAny, {
498
- title: string;
499
- length?: number | undefined;
500
- options?: Record<string, string> | undefined;
501
- metadata?: Record<string, unknown> | undefined;
502
- sku?: string | undefined;
503
- ean?: string | undefined;
504
- upc?: string | undefined;
505
- weight?: number | undefined;
506
- height?: number | undefined;
507
- width?: number | undefined;
508
- hs_code?: string | undefined;
509
- origin_country?: string | undefined;
510
- mid_code?: string | undefined;
511
- material?: string | undefined;
512
- isbn?: string | undefined;
513
- asin?: string | undefined;
514
- gtin?: string | undefined;
515
- barcode?: string | undefined;
516
- variant_rank?: number | undefined;
517
- }, {
518
- title: string;
519
- length?: number | undefined;
520
- options?: Record<string, string> | undefined;
521
- metadata?: Record<string, unknown> | undefined;
522
- sku?: string | undefined;
523
- ean?: string | undefined;
524
- upc?: string | undefined;
525
- weight?: number | undefined;
526
- height?: number | undefined;
527
- width?: number | undefined;
528
- hs_code?: string | undefined;
529
- origin_country?: string | undefined;
530
- mid_code?: string | undefined;
531
- material?: string | undefined;
532
- isbn?: string | undefined;
533
- asin?: string | undefined;
534
- gtin?: string | undefined;
535
- barcode?: string | undefined;
536
- variant_rank?: number | undefined;
537
- }>, "many">>;
209
+ }, z.core.$strict>>>;
538
210
  weight: z.ZodOptional<z.ZodNumber>;
539
211
  length: z.ZodOptional<z.ZodNumber>;
540
212
  height: z.ZodOptional<z.ZodNumber>;
@@ -544,81 +216,19 @@ declare const CreateProduct: z.ZodObject<{
544
216
  origin_country: z.ZodOptional<z.ZodString>;
545
217
  material: z.ZodOptional<z.ZodString>;
546
218
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
547
- }, "strict", z.ZodTypeAny, {
548
- [x: string]: any;
549
- title?: unknown;
550
- subtitle?: unknown;
551
- description?: unknown;
552
- status?: unknown;
553
- is_giftcard?: unknown;
554
- discountable?: unknown;
555
- images?: unknown;
556
- thumbnail?: unknown;
557
- handle?: unknown;
558
- external_id?: unknown;
559
- type_id?: unknown;
560
- collection_id?: unknown;
561
- categories?: unknown;
562
- tags?: unknown;
563
- options?: unknown;
564
- attributes?: unknown;
565
- variants?: unknown;
566
- weight?: unknown;
567
- length?: unknown;
568
- height?: unknown;
569
- width?: unknown;
570
- hs_code?: unknown;
571
- mid_code?: unknown;
572
- origin_country?: unknown;
573
- material?: unknown;
574
- metadata?: unknown;
575
- }, {
576
- [x: string]: any;
577
- title?: unknown;
578
- subtitle?: unknown;
579
- description?: unknown;
580
- status?: unknown;
581
- is_giftcard?: unknown;
582
- discountable?: unknown;
583
- images?: unknown;
584
- thumbnail?: unknown;
585
- handle?: unknown;
586
- external_id?: unknown;
587
- type_id?: unknown;
588
- collection_id?: unknown;
589
- categories?: unknown;
590
- tags?: unknown;
591
- options?: unknown;
592
- attributes?: unknown;
593
- variants?: unknown;
594
- weight?: unknown;
595
- length?: unknown;
596
- height?: unknown;
597
- width?: unknown;
598
- hs_code?: unknown;
599
- mid_code?: unknown;
600
- origin_country?: unknown;
601
- material?: unknown;
602
- metadata?: unknown;
603
- }>;
219
+ }, z.core.$strict>;
604
220
  export declare const VendorCreateProduct: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any>;
605
221
  export type VendorUpdateProductType = z.infer<typeof UpdateProduct> & AdditionalData;
606
222
  declare const UpdateProduct: z.ZodObject<{
607
223
  title: z.ZodOptional<z.ZodString>;
608
224
  subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
609
225
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
610
- discountable: any;
611
- is_giftcard: any;
226
+ discountable: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>, z.ZodTransform<boolean, string | boolean>>>;
227
+ is_giftcard: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>, z.ZodTransform<boolean, string | boolean>>>;
612
228
  images: z.ZodOptional<z.ZodArray<z.ZodObject<{
613
229
  id: z.ZodOptional<z.ZodString>;
614
230
  url: z.ZodString;
615
- }, "strip", z.ZodTypeAny, {
616
- url: string;
617
- id?: string | undefined;
618
- }, {
619
- url: string;
620
- id?: string | undefined;
621
- }>, "many">>;
231
+ }, z.core.$strip>>>;
622
232
  thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
623
233
  handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
624
234
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -626,28 +236,14 @@ declare const UpdateProduct: z.ZodObject<{
626
236
  collection_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
627
237
  categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
628
238
  id: z.ZodString;
629
- }, "strip", z.ZodTypeAny, {
630
- id: string;
631
- }, {
632
- id: string;
633
- }>, "many">>;
239
+ }, z.core.$strip>>>;
634
240
  tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
635
241
  id: z.ZodString;
636
- }, "strip", z.ZodTypeAny, {
637
- id: string;
638
- }, {
639
- id: string;
640
- }>, "many">>;
242
+ }, z.core.$strip>>>;
641
243
  options: z.ZodOptional<z.ZodArray<z.ZodObject<{
642
244
  title: z.ZodString;
643
- values: z.ZodArray<z.ZodString, "many">;
644
- }, "strip", z.ZodTypeAny, {
645
- values: string[];
646
- title: string;
647
- }, {
648
- values: string[];
649
- title: string;
650
- }>, "many">>;
245
+ values: z.ZodArray<z.ZodString>;
246
+ }, z.core.$strip>>>;
651
247
  variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
652
248
  id: z.ZodOptional<z.ZodString>;
653
249
  title: z.ZodOptional<z.ZodString>;
@@ -670,51 +266,7 @@ declare const UpdateProduct: z.ZodObject<{
670
266
  material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
671
267
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
672
268
  options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
673
- }, "strict", z.ZodTypeAny, {
674
- length?: number | null | undefined;
675
- options?: Record<string, string> | undefined;
676
- id?: string | undefined;
677
- metadata?: Record<string, unknown> | null | undefined;
678
- title?: string | undefined;
679
- sku?: string | null | undefined;
680
- ean?: string | null | undefined;
681
- upc?: string | null | undefined;
682
- thumbnail?: string | null | undefined;
683
- weight?: number | null | undefined;
684
- height?: number | null | undefined;
685
- width?: number | null | undefined;
686
- hs_code?: string | null | undefined;
687
- origin_country?: string | null | undefined;
688
- mid_code?: string | null | undefined;
689
- material?: string | null | undefined;
690
- isbn?: string | null | undefined;
691
- asin?: string | null | undefined;
692
- gtin?: string | null | undefined;
693
- barcode?: string | null | undefined;
694
- variant_rank?: number | undefined;
695
- }, {
696
- length?: number | null | undefined;
697
- options?: Record<string, string> | undefined;
698
- id?: string | undefined;
699
- metadata?: Record<string, unknown> | null | undefined;
700
- title?: string | undefined;
701
- sku?: string | null | undefined;
702
- ean?: string | null | undefined;
703
- upc?: string | null | undefined;
704
- thumbnail?: string | null | undefined;
705
- weight?: number | null | undefined;
706
- height?: number | null | undefined;
707
- width?: number | null | undefined;
708
- hs_code?: string | null | undefined;
709
- origin_country?: string | null | undefined;
710
- mid_code?: string | null | undefined;
711
- material?: string | null | undefined;
712
- isbn?: string | null | undefined;
713
- asin?: string | null | undefined;
714
- gtin?: string | null | undefined;
715
- barcode?: string | null | undefined;
716
- variant_rank?: number | undefined;
717
- }>, "many">>;
269
+ }, z.core.$strict>>>;
718
270
  weight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
719
271
  length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
720
272
  height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -724,67 +276,15 @@ declare const UpdateProduct: z.ZodObject<{
724
276
  origin_country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
725
277
  material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
726
278
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
727
- }, "strict", z.ZodTypeAny, {
728
- [x: string]: any;
729
- title?: unknown;
730
- subtitle?: unknown;
731
- description?: unknown;
732
- discountable?: unknown;
733
- is_giftcard?: unknown;
734
- images?: unknown;
735
- thumbnail?: unknown;
736
- handle?: unknown;
737
- external_id?: unknown;
738
- type_id?: unknown;
739
- collection_id?: unknown;
740
- categories?: unknown;
741
- tags?: unknown;
742
- options?: unknown;
743
- variants?: unknown;
744
- weight?: unknown;
745
- length?: unknown;
746
- height?: unknown;
747
- width?: unknown;
748
- hs_code?: unknown;
749
- mid_code?: unknown;
750
- origin_country?: unknown;
751
- material?: unknown;
752
- metadata?: unknown;
753
- }, {
754
- [x: string]: any;
755
- title?: unknown;
756
- subtitle?: unknown;
757
- description?: unknown;
758
- discountable?: unknown;
759
- is_giftcard?: unknown;
760
- images?: unknown;
761
- thumbnail?: unknown;
762
- handle?: unknown;
763
- external_id?: unknown;
764
- type_id?: unknown;
765
- collection_id?: unknown;
766
- categories?: unknown;
767
- tags?: unknown;
768
- options?: unknown;
769
- variants?: unknown;
770
- weight?: unknown;
771
- length?: unknown;
772
- height?: unknown;
773
- width?: unknown;
774
- hs_code?: unknown;
775
- mid_code?: unknown;
776
- origin_country?: unknown;
777
- material?: unknown;
778
- metadata?: unknown;
779
- }>;
279
+ }, z.core.$strict>;
780
280
  export declare const VendorUpdateProduct: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any>;
781
281
  export type VendorGetProductVariantsParamsType = z.infer<typeof VendorGetProductVariantsParams>;
782
- export declare const VendorGetProductVariantsParams: z.ZodObject<{} & {
282
+ export declare const VendorGetProductVariantsParams: z.ZodObject<{
783
283
  [x: string]: any;
784
284
  $and: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
785
285
  q: z.ZodOptional<z.ZodString>;
786
- manage_inventory: any;
787
- allow_backorder: any;
286
+ manage_inventory: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>, z.ZodTransform<boolean, string | boolean>>>;
287
+ allow_backorder: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>, z.ZodTransform<boolean, string | boolean>>>;
788
288
  created_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
789
289
  $eq: any;
790
290
  $ne: any;
@@ -798,33 +298,7 @@ export declare const VendorGetProductVariantsParams: z.ZodObject<{} & {
798
298
  $gte: any;
799
299
  $lt: any;
800
300
  $lte: any;
801
- }, z.core.$strip, z.ZodTypeAny, {
802
- $nin?: any;
803
- $eq?: any;
804
- $ne?: any;
805
- $in?: any;
806
- $like?: any;
807
- $ilike?: any;
808
- $re?: any;
809
- $contains?: any;
810
- $gt?: any;
811
- $gte?: any;
812
- $lt?: any;
813
- $lte?: any;
814
- }, {
815
- $nin?: any;
816
- $eq?: any;
817
- $ne?: any;
818
- $in?: any;
819
- $like?: any;
820
- $ilike?: any;
821
- $re?: any;
822
- $contains?: any;
823
- $gt?: any;
824
- $gte?: any;
825
- $lt?: any;
826
- $lte?: any;
827
- }>]>>;
301
+ }, z.core.$strip>]>>;
828
302
  updated_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
829
303
  $eq: any;
830
304
  $ne: any;
@@ -838,52 +312,12 @@ export declare const VendorGetProductVariantsParams: z.ZodObject<{} & {
838
312
  $gte: any;
839
313
  $lt: any;
840
314
  $lte: any;
841
- }, z.core.$strip, z.ZodTypeAny, {
842
- $nin?: any;
843
- $eq?: any;
844
- $ne?: any;
845
- $in?: any;
846
- $like?: any;
847
- $ilike?: any;
848
- $re?: any;
849
- $contains?: any;
850
- $gt?: any;
851
- $gte?: any;
852
- $lt?: any;
853
- $lte?: any;
854
- }, {
855
- $nin?: any;
856
- $eq?: any;
857
- $ne?: any;
858
- $in?: any;
859
- $like?: any;
860
- $ilike?: any;
861
- $re?: any;
862
- $contains?: any;
863
- $gt?: any;
864
- $gte?: any;
865
- $lt?: any;
866
- $lte?: any;
867
- }>]>>;
868
- }, "strip", z.ZodTypeAny, {
869
- [x: string]: any;
870
- q?: unknown;
871
- manage_inventory?: unknown;
872
- allow_backorder?: unknown;
873
- created_at?: unknown;
874
- updated_at?: unknown;
875
- }, {
876
- [x: string]: any;
877
- q?: unknown;
878
- manage_inventory?: unknown;
879
- allow_backorder?: unknown;
880
- created_at?: unknown;
881
- updated_at?: unknown;
882
- }>, "many">>>;
315
+ }, z.core.$strip>]>>;
316
+ }, z.core.$strip>>>>;
883
317
  $or: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
884
318
  q: z.ZodOptional<z.ZodString>;
885
- manage_inventory: any;
886
- allow_backorder: any;
319
+ manage_inventory: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>, z.ZodTransform<boolean, string | boolean>>>;
320
+ allow_backorder: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>, z.ZodTransform<boolean, string | boolean>>>;
887
321
  created_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
888
322
  $eq: any;
889
323
  $ne: any;
@@ -897,33 +331,7 @@ export declare const VendorGetProductVariantsParams: z.ZodObject<{} & {
897
331
  $gte: any;
898
332
  $lt: any;
899
333
  $lte: any;
900
- }, z.core.$strip, z.ZodTypeAny, {
901
- $nin?: any;
902
- $eq?: any;
903
- $ne?: any;
904
- $in?: any;
905
- $like?: any;
906
- $ilike?: any;
907
- $re?: any;
908
- $contains?: any;
909
- $gt?: any;
910
- $gte?: any;
911
- $lt?: any;
912
- $lte?: any;
913
- }, {
914
- $nin?: any;
915
- $eq?: any;
916
- $ne?: any;
917
- $in?: any;
918
- $like?: any;
919
- $ilike?: any;
920
- $re?: any;
921
- $contains?: any;
922
- $gt?: any;
923
- $gte?: any;
924
- $lt?: any;
925
- $lte?: any;
926
- }>]>>;
334
+ }, z.core.$strip>]>>;
927
335
  updated_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
928
336
  $eq: any;
929
337
  $ne: any;
@@ -937,65 +345,13 @@ export declare const VendorGetProductVariantsParams: z.ZodObject<{} & {
937
345
  $gte: any;
938
346
  $lt: any;
939
347
  $lte: any;
940
- }, z.core.$strip, z.ZodTypeAny, {
941
- $nin?: any;
942
- $eq?: any;
943
- $ne?: any;
944
- $in?: any;
945
- $like?: any;
946
- $ilike?: any;
947
- $re?: any;
948
- $contains?: any;
949
- $gt?: any;
950
- $gte?: any;
951
- $lt?: any;
952
- $lte?: any;
953
- }, {
954
- $nin?: any;
955
- $eq?: any;
956
- $ne?: any;
957
- $in?: any;
958
- $like?: any;
959
- $ilike?: any;
960
- $re?: any;
961
- $contains?: any;
962
- $gt?: any;
963
- $gte?: any;
964
- $lt?: any;
965
- $lte?: any;
966
- }>]>>;
967
- }, "strip", z.ZodTypeAny, {
968
- [x: string]: any;
969
- q?: unknown;
970
- manage_inventory?: unknown;
971
- allow_backorder?: unknown;
972
- created_at?: unknown;
973
- updated_at?: unknown;
974
- }, {
975
- [x: string]: any;
976
- q?: unknown;
977
- manage_inventory?: unknown;
978
- allow_backorder?: unknown;
979
- created_at?: unknown;
980
- updated_at?: unknown;
981
- }>, "many">>>;
982
- }, z.core.$strip, z.ZodTypeAny, {
983
- [x: string]: any;
984
- $and?: unknown;
985
- $or?: unknown;
986
- }, {
987
- [x: string]: any;
988
- $and?: unknown;
989
- $or?: unknown;
990
- }>;
348
+ }, z.core.$strip>]>>;
349
+ }, z.core.$strip>>>>;
350
+ }, z.core.$strip>;
991
351
  export type VendorGetProductVariantParamsType = z.infer<typeof VendorGetProductVariantParams>;
992
352
  export declare const VendorGetProductVariantParams: z.ZodObject<{
993
353
  fields: z.ZodOptional<z.ZodString>;
994
- }, z.core.$strip, z.ZodTypeAny, {
995
- fields?: string | undefined;
996
- }, {
997
- fields?: string | undefined;
998
- }>;
354
+ }, z.core.$strip>;
999
355
  export type VendorAddProductVariantType = z.infer<typeof VendorAddProductVariant>;
1000
356
  export declare const VendorAddProductVariant: z.ZodObject<{
1001
357
  title: z.ZodString;
@@ -1020,53 +376,7 @@ export declare const VendorAddProductVariant: z.ZodObject<{
1020
376
  thumbnail: z.ZodOptional<z.ZodString>;
1021
377
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1022
378
  options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1023
- }, "strict", z.ZodTypeAny, {
1024
- title: string;
1025
- length?: number | undefined;
1026
- options?: Record<string, string> | undefined;
1027
- metadata?: Record<string, unknown> | undefined;
1028
- sku?: string | undefined;
1029
- ean?: string | undefined;
1030
- upc?: string | undefined;
1031
- thumbnail?: string | undefined;
1032
- weight?: number | undefined;
1033
- height?: number | undefined;
1034
- width?: number | undefined;
1035
- hs_code?: string | undefined;
1036
- origin_country?: string | undefined;
1037
- mid_code?: string | undefined;
1038
- material?: string | undefined;
1039
- isbn?: string | undefined;
1040
- asin?: string | undefined;
1041
- gtin?: string | undefined;
1042
- barcode?: string | undefined;
1043
- variant_rank?: number | undefined;
1044
- manage_inventory?: boolean | undefined;
1045
- allow_backorder?: boolean | undefined;
1046
- }, {
1047
- title: string;
1048
- length?: number | undefined;
1049
- options?: Record<string, string> | undefined;
1050
- metadata?: Record<string, unknown> | undefined;
1051
- sku?: string | undefined;
1052
- ean?: string | undefined;
1053
- upc?: string | undefined;
1054
- thumbnail?: string | undefined;
1055
- weight?: number | undefined;
1056
- height?: number | undefined;
1057
- width?: number | undefined;
1058
- hs_code?: string | undefined;
1059
- origin_country?: string | undefined;
1060
- mid_code?: string | undefined;
1061
- material?: string | undefined;
1062
- isbn?: string | undefined;
1063
- asin?: string | undefined;
1064
- gtin?: string | undefined;
1065
- barcode?: string | undefined;
1066
- variant_rank?: number | undefined;
1067
- manage_inventory?: boolean | undefined;
1068
- allow_backorder?: boolean | undefined;
1069
- }>;
379
+ }, z.core.$strict>;
1070
380
  export type VendorUpdateProductVariantType = z.infer<typeof VendorUpdateProductVariant>;
1071
381
  export declare const VendorUpdateProductVariant: z.ZodObject<{
1072
382
  title: z.ZodOptional<z.ZodString>;
@@ -1092,268 +402,48 @@ export declare const VendorUpdateProductVariant: z.ZodObject<{
1092
402
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1093
403
  options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1094
404
  images: z.ZodOptional<z.ZodObject<{
1095
- add: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1096
- remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1097
- }, "strip", z.ZodTypeAny, {
1098
- add?: string[] | undefined;
1099
- remove?: string[] | undefined;
1100
- }, {
1101
- add?: string[] | undefined;
1102
- remove?: string[] | undefined;
1103
- }>>;
1104
- }, "strict", z.ZodTypeAny, {
1105
- length?: number | null | undefined;
1106
- options?: Record<string, string> | undefined;
1107
- metadata?: Record<string, unknown> | null | undefined;
1108
- title?: string | undefined;
1109
- sku?: string | null | undefined;
1110
- ean?: string | null | undefined;
1111
- upc?: string | null | undefined;
1112
- thumbnail?: string | null | undefined;
1113
- weight?: number | null | undefined;
1114
- height?: number | null | undefined;
1115
- width?: number | null | undefined;
1116
- hs_code?: string | null | undefined;
1117
- origin_country?: string | null | undefined;
1118
- mid_code?: string | null | undefined;
1119
- material?: string | null | undefined;
1120
- isbn?: string | null | undefined;
1121
- asin?: string | null | undefined;
1122
- gtin?: string | null | undefined;
1123
- barcode?: string | null | undefined;
1124
- variant_rank?: number | undefined;
1125
- manage_inventory?: boolean | undefined;
1126
- allow_backorder?: boolean | undefined;
1127
- images?: {
1128
- add?: string[] | undefined;
1129
- remove?: string[] | undefined;
1130
- } | undefined;
1131
- }, {
1132
- length?: number | null | undefined;
1133
- options?: Record<string, string> | undefined;
1134
- metadata?: Record<string, unknown> | null | undefined;
1135
- title?: string | undefined;
1136
- sku?: string | null | undefined;
1137
- ean?: string | null | undefined;
1138
- upc?: string | null | undefined;
1139
- thumbnail?: string | null | undefined;
1140
- weight?: number | null | undefined;
1141
- height?: number | null | undefined;
1142
- width?: number | null | undefined;
1143
- hs_code?: string | null | undefined;
1144
- origin_country?: string | null | undefined;
1145
- mid_code?: string | null | undefined;
1146
- material?: string | null | undefined;
1147
- isbn?: string | null | undefined;
1148
- asin?: string | null | undefined;
1149
- gtin?: string | null | undefined;
1150
- barcode?: string | null | undefined;
1151
- variant_rank?: number | undefined;
1152
- manage_inventory?: boolean | undefined;
1153
- allow_backorder?: boolean | undefined;
1154
- images?: {
1155
- add?: string[] | undefined;
1156
- remove?: string[] | undefined;
1157
- } | undefined;
1158
- }>;
405
+ add: z.ZodOptional<z.ZodArray<z.ZodString>>;
406
+ remove: z.ZodOptional<z.ZodArray<z.ZodString>>;
407
+ }, z.core.$strip>>;
408
+ }, z.core.$strict>;
1159
409
  declare const CancelProductChange: z.ZodObject<{
1160
410
  internal_note: z.ZodOptional<z.ZodString>;
1161
- }, "strict", z.ZodTypeAny, {
1162
- internal_note?: string | undefined;
1163
- }, {
1164
- internal_note?: string | undefined;
1165
- }>;
411
+ }, z.core.$strict>;
1166
412
  export type VendorCancelProductChangeType = z.infer<typeof CancelProductChange> & AdditionalData;
1167
413
  export declare const VendorCancelProductChange: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any>;
1168
414
  export type VendorBatchProductAttributesType = z.infer<typeof VendorBatchProductAttributes>;
1169
415
  export declare const VendorBatchProductAttributes: z.ZodObject<{
1170
- add: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
416
+ add: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1171
417
  id: z.ZodString;
1172
- value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1173
- value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
1174
- }, "strict", z.ZodTypeAny, {
1175
- id: string;
1176
- value?: string | number | boolean | undefined;
1177
- value_ids?: string[] | undefined;
1178
- }, {
1179
- id: string;
1180
- value?: string | number | boolean | undefined;
1181
- value_ids?: string[] | undefined;
1182
- }>, z.ZodEffects<z.ZodEffects<z.ZodObject<{
418
+ value_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
419
+ value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
420
+ }, z.core.$strict>, z.ZodObject<{
1183
421
  title: z.ZodString;
1184
- type: z.ZodOptional<z.ZodEnum<["single_select", "multi_select", "text", "toggle", "unit"]>>;
1185
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1186
- value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
422
+ type: z.ZodOptional<z.ZodEnum<{
423
+ single_select: "single_select";
424
+ multi_select: "multi_select";
425
+ text: "text";
426
+ toggle: "toggle";
427
+ unit: "unit";
428
+ }>>;
429
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
430
+ value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
1187
431
  is_variant_axis: z.ZodOptional<z.ZodBoolean>;
1188
432
  is_filterable: z.ZodOptional<z.ZodBoolean>;
1189
433
  is_required: z.ZodOptional<z.ZodBoolean>;
1190
434
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1191
435
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1192
- }, "strict", z.ZodTypeAny, {
1193
- title: string;
1194
- values?: string[] | undefined;
1195
- metadata?: Record<string, unknown> | null | undefined;
1196
- type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
1197
- is_variant_axis?: boolean | undefined;
1198
- is_required?: boolean | undefined;
1199
- value?: string | number | boolean | undefined;
1200
- description?: string | null | undefined;
1201
- is_filterable?: boolean | undefined;
1202
- }, {
1203
- title: string;
1204
- values?: string[] | undefined;
1205
- metadata?: Record<string, unknown> | null | undefined;
1206
- type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
1207
- is_variant_axis?: boolean | undefined;
1208
- is_required?: boolean | undefined;
1209
- value?: string | number | boolean | undefined;
1210
- description?: string | null | undefined;
1211
- is_filterable?: boolean | undefined;
1212
- }>, {
1213
- title: string;
1214
- values?: string[] | undefined;
1215
- metadata?: Record<string, unknown> | null | undefined;
1216
- type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
1217
- is_variant_axis?: boolean | undefined;
1218
- is_required?: boolean | undefined;
1219
- value?: string | number | boolean | undefined;
1220
- description?: string | null | undefined;
1221
- is_filterable?: boolean | undefined;
1222
- }, {
1223
- title: string;
1224
- values?: string[] | undefined;
1225
- metadata?: Record<string, unknown> | null | undefined;
1226
- type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
1227
- is_variant_axis?: boolean | undefined;
1228
- is_required?: boolean | undefined;
1229
- value?: string | number | boolean | undefined;
1230
- description?: string | null | undefined;
1231
- is_filterable?: boolean | undefined;
1232
- }>, {
1233
- title: string;
1234
- values?: string[] | undefined;
1235
- metadata?: Record<string, unknown> | null | undefined;
1236
- type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
1237
- is_variant_axis?: boolean | undefined;
1238
- is_required?: boolean | undefined;
1239
- value?: string | number | boolean | undefined;
1240
- description?: string | null | undefined;
1241
- is_filterable?: boolean | undefined;
1242
- }, {
1243
- title: string;
1244
- values?: string[] | undefined;
1245
- metadata?: Record<string, unknown> | null | undefined;
1246
- type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
1247
- is_variant_axis?: boolean | undefined;
1248
- is_required?: boolean | undefined;
1249
- value?: string | number | boolean | undefined;
1250
- description?: string | null | undefined;
1251
- is_filterable?: boolean | undefined;
1252
- }>]>, "many">>;
1253
- remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1254
- update: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
436
+ }, z.core.$strict>]>>>;
437
+ remove: z.ZodOptional<z.ZodArray<z.ZodString>>;
438
+ update: z.ZodOptional<z.ZodArray<z.ZodObject<{
1255
439
  id: z.ZodString;
1256
440
  title: z.ZodOptional<z.ZodString>;
1257
- add: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
441
+ add: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1258
442
  value: z.ZodString;
1259
- }, "strict", z.ZodTypeAny, {
1260
- value: string;
1261
- }, {
1262
- value: string;
1263
- }>]>, "many">>;
1264
- remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1265
- value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1266
- value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
1267
- }, "strict", z.ZodTypeAny, {
1268
- id: string;
1269
- title?: string | undefined;
1270
- value?: string | number | boolean | undefined;
1271
- value_ids?: string[] | undefined;
1272
- add?: (string | {
1273
- value: string;
1274
- })[] | undefined;
1275
- remove?: string[] | undefined;
1276
- }, {
1277
- id: string;
1278
- title?: string | undefined;
1279
- value?: string | number | boolean | undefined;
1280
- value_ids?: string[] | undefined;
1281
- add?: (string | {
1282
- value: string;
1283
- })[] | undefined;
1284
- remove?: string[] | undefined;
1285
- }>, {
1286
- id: string;
1287
- title?: string | undefined;
1288
- value?: string | number | boolean | undefined;
1289
- value_ids?: string[] | undefined;
1290
- add?: (string | {
1291
- value: string;
1292
- })[] | undefined;
1293
- remove?: string[] | undefined;
1294
- }, {
1295
- id: string;
1296
- title?: string | undefined;
1297
- value?: string | number | boolean | undefined;
1298
- value_ids?: string[] | undefined;
1299
- add?: (string | {
1300
- value: string;
1301
- })[] | undefined;
1302
- remove?: string[] | undefined;
1303
- }>, "many">>;
1304
- }, "strict", z.ZodTypeAny, {
1305
- update?: {
1306
- id: string;
1307
- title?: string | undefined;
1308
- value?: string | number | boolean | undefined;
1309
- value_ids?: string[] | undefined;
1310
- add?: (string | {
1311
- value: string;
1312
- })[] | undefined;
1313
- remove?: string[] | undefined;
1314
- }[] | undefined;
1315
- add?: ({
1316
- id: string;
1317
- value?: string | number | boolean | undefined;
1318
- value_ids?: string[] | undefined;
1319
- } | {
1320
- title: string;
1321
- values?: string[] | undefined;
1322
- metadata?: Record<string, unknown> | null | undefined;
1323
- type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
1324
- is_variant_axis?: boolean | undefined;
1325
- is_required?: boolean | undefined;
1326
- value?: string | number | boolean | undefined;
1327
- description?: string | null | undefined;
1328
- is_filterable?: boolean | undefined;
1329
- })[] | undefined;
1330
- remove?: string[] | undefined;
1331
- }, {
1332
- update?: {
1333
- id: string;
1334
- title?: string | undefined;
1335
- value?: string | number | boolean | undefined;
1336
- value_ids?: string[] | undefined;
1337
- add?: (string | {
1338
- value: string;
1339
- })[] | undefined;
1340
- remove?: string[] | undefined;
1341
- }[] | undefined;
1342
- add?: ({
1343
- id: string;
1344
- value?: string | number | boolean | undefined;
1345
- value_ids?: string[] | undefined;
1346
- } | {
1347
- title: string;
1348
- values?: string[] | undefined;
1349
- metadata?: Record<string, unknown> | null | undefined;
1350
- type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
1351
- is_variant_axis?: boolean | undefined;
1352
- is_required?: boolean | undefined;
1353
- value?: string | number | boolean | undefined;
1354
- description?: string | null | undefined;
1355
- is_filterable?: boolean | undefined;
1356
- })[] | undefined;
1357
- remove?: string[] | undefined;
1358
- }>;
443
+ }, z.core.$strict>]>>>;
444
+ remove: z.ZodOptional<z.ZodArray<z.ZodString>>;
445
+ value_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
446
+ value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
447
+ }, z.core.$strict>>>;
448
+ }, z.core.$strict>;
1359
449
  export {};