@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
@@ -3,19 +3,15 @@ import { AdditionalData } from "@medusajs/framework/types";
3
3
  export type VendorGetOfferParamsType = z.infer<typeof VendorGetOfferParams>;
4
4
  export declare const VendorGetOfferParams: 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 declare const VendorGetOffersParamsFields: z.ZodObject<{
12
8
  q: z.ZodOptional<z.ZodString>;
13
- id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
14
- variant_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
15
- shipping_profile_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
16
- sku: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
17
- ean: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
18
- upc: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
9
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
10
+ variant_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
11
+ shipping_profile_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
12
+ sku: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
13
+ ean: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
14
+ upc: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
19
15
  created_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
20
16
  $eq: any;
21
17
  $ne: any;
@@ -29,33 +25,7 @@ export declare const VendorGetOffersParamsFields: 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
  updated_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
60
30
  $eq: any;
61
31
  $ne: any;
@@ -69,54 +39,8 @@ export declare const VendorGetOffersParamsFields: 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
- }>]>>;
99
- }, "strict", z.ZodTypeAny, {
100
- id?: string | string[] | undefined;
101
- variant_id?: string | string[] | undefined;
102
- shipping_profile_id?: string | string[] | undefined;
103
- sku?: string | string[] | undefined;
104
- ean?: string | string[] | undefined;
105
- upc?: string | string[] | undefined;
106
- created_at?: any;
107
- updated_at?: any;
108
- q?: string | undefined;
109
- }, {
110
- id?: string | string[] | undefined;
111
- variant_id?: string | string[] | undefined;
112
- shipping_profile_id?: string | string[] | undefined;
113
- sku?: string | string[] | undefined;
114
- ean?: string | string[] | undefined;
115
- upc?: string | string[] | undefined;
116
- created_at?: any;
117
- updated_at?: any;
118
- q?: string | undefined;
119
- }>;
42
+ }, z.core.$strip>]>>;
43
+ }, z.core.$strict>;
120
44
  export type VendorGetOffersParamsType = z.infer<typeof VendorGetOffersParams>;
121
45
  export declare const VendorGetOffersParams: z.ZodObject<{
122
46
  fields: z.ZodOptional<z.ZodString>;
@@ -124,14 +48,13 @@ export declare const VendorGetOffersParams: z.ZodObject<{
124
48
  limit: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
125
49
  order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
126
50
  with_deleted: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
127
- } & {
128
51
  q: z.ZodOptional<z.ZodString>;
129
- id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
130
- variant_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
131
- shipping_profile_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
132
- sku: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
133
- ean: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
134
- upc: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
52
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
53
+ variant_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
54
+ shipping_profile_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
55
+ sku: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
56
+ ean: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
57
+ upc: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
135
58
  created_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
136
59
  $eq: any;
137
60
  $ne: any;
@@ -145,33 +68,7 @@ export declare const VendorGetOffersParams: z.ZodObject<{
145
68
  $gte: any;
146
69
  $lt: any;
147
70
  $lte: any;
148
- }, z.core.$strip, z.ZodTypeAny, {
149
- $nin?: any;
150
- $eq?: any;
151
- $ne?: any;
152
- $in?: any;
153
- $like?: any;
154
- $ilike?: any;
155
- $re?: any;
156
- $contains?: any;
157
- $gt?: any;
158
- $gte?: any;
159
- $lt?: any;
160
- $lte?: any;
161
- }, {
162
- $nin?: any;
163
- $eq?: any;
164
- $ne?: any;
165
- $in?: any;
166
- $like?: any;
167
- $ilike?: any;
168
- $re?: any;
169
- $contains?: any;
170
- $gt?: any;
171
- $gte?: any;
172
- $lt?: any;
173
- $lte?: any;
174
- }>]>>;
71
+ }, z.core.$strip>]>>;
175
72
  updated_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
176
73
  $eq: any;
177
74
  $ne: any;
@@ -185,64 +82,8 @@ export declare const VendorGetOffersParams: z.ZodObject<{
185
82
  $gte: any;
186
83
  $lt: any;
187
84
  $lte: any;
188
- }, z.core.$strip, z.ZodTypeAny, {
189
- $nin?: any;
190
- $eq?: any;
191
- $ne?: any;
192
- $in?: any;
193
- $like?: any;
194
- $ilike?: any;
195
- $re?: any;
196
- $contains?: any;
197
- $gt?: any;
198
- $gte?: any;
199
- $lt?: any;
200
- $lte?: any;
201
- }, {
202
- $nin?: any;
203
- $eq?: any;
204
- $ne?: any;
205
- $in?: any;
206
- $like?: any;
207
- $ilike?: any;
208
- $re?: any;
209
- $contains?: any;
210
- $gt?: any;
211
- $gte?: any;
212
- $lt?: any;
213
- $lte?: any;
214
- }>]>>;
215
- }, "strict", z.ZodTypeAny, {
216
- order?: string | undefined;
217
- id?: string | string[] | undefined;
218
- variant_id?: string | string[] | undefined;
219
- shipping_profile_id?: string | string[] | undefined;
220
- sku?: string | string[] | undefined;
221
- ean?: string | string[] | undefined;
222
- upc?: string | string[] | undefined;
223
- created_at?: any;
224
- updated_at?: any;
225
- q?: string | undefined;
226
- fields?: string | undefined;
227
- offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
228
- limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
229
- with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
230
- }, {
231
- order?: string | undefined;
232
- id?: string | string[] | undefined;
233
- variant_id?: string | string[] | undefined;
234
- shipping_profile_id?: string | string[] | undefined;
235
- sku?: string | string[] | undefined;
236
- ean?: string | string[] | undefined;
237
- upc?: string | string[] | undefined;
238
- created_at?: any;
239
- updated_at?: any;
240
- q?: string | undefined;
241
- fields?: string | undefined;
242
- offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
243
- limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
244
- with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
245
- }>;
85
+ }, z.core.$strip>]>>;
86
+ }, z.core.$strict>;
246
87
  declare const CreateOffer: z.ZodObject<{
247
88
  sku: z.ZodString;
248
89
  variant_id: z.ZodString;
@@ -254,108 +95,22 @@ declare const CreateOffer: z.ZodObject<{
254
95
  stock_levels: z.ZodOptional<z.ZodArray<z.ZodObject<{
255
96
  location_id: z.ZodString;
256
97
  stocked_quantity: z.ZodNumber;
257
- }, "strict", z.ZodTypeAny, {
258
- location_id: string;
259
- stocked_quantity: number;
260
- }, {
261
- location_id: string;
262
- stocked_quantity: number;
263
- }>, "many">>;
264
- }, "strict", z.ZodTypeAny, {
265
- required_quantity: number;
266
- title?: string | undefined;
267
- sku?: string | undefined;
268
- stock_levels?: {
269
- location_id: string;
270
- stocked_quantity: number;
271
- }[] | undefined;
272
- }, {
273
- title?: string | undefined;
274
- sku?: string | undefined;
275
- required_quantity?: number | undefined;
276
- stock_levels?: {
277
- location_id: string;
278
- stocked_quantity: number;
279
- }[] | undefined;
280
- }>, "many">;
98
+ }, z.core.$strict>>>;
99
+ }, z.core.$strict>>;
281
100
  prices: z.ZodArray<z.ZodObject<{
282
101
  amount: z.ZodNumber;
283
102
  currency_code: z.ZodString;
284
103
  min_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
285
104
  max_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
286
105
  rules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
287
- }, "strict", z.ZodTypeAny, {
288
- currency_code: string;
289
- amount: number;
290
- min_quantity?: number | null | undefined;
291
- max_quantity?: number | null | undefined;
292
- rules?: Record<string, string> | undefined;
293
- }, {
294
- currency_code: string;
295
- amount: number;
296
- min_quantity?: number | null | undefined;
297
- max_quantity?: number | null | undefined;
298
- rules?: Record<string, string> | undefined;
299
- }>, "many">;
106
+ }, z.core.$strict>>;
300
107
  ean: z.ZodOptional<z.ZodNullable<z.ZodString>>;
301
108
  upc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
302
109
  manage_inventory: z.ZodOptional<z.ZodBoolean>;
303
110
  allow_backorder: z.ZodOptional<z.ZodBoolean>;
304
111
  leadtime_to_ship: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
305
112
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
306
- }, "strict", z.ZodTypeAny, {
307
- variant_id: string;
308
- shipping_profile_id: string;
309
- sku: string;
310
- prices: {
311
- currency_code: string;
312
- amount: number;
313
- min_quantity?: number | null | undefined;
314
- max_quantity?: number | null | undefined;
315
- rules?: Record<string, string> | undefined;
316
- }[];
317
- inventory_items: {
318
- required_quantity: number;
319
- title?: string | undefined;
320
- sku?: string | undefined;
321
- stock_levels?: {
322
- location_id: string;
323
- stocked_quantity: number;
324
- }[] | undefined;
325
- }[];
326
- metadata?: Record<string, unknown> | null | undefined;
327
- ean?: string | null | undefined;
328
- upc?: string | null | undefined;
329
- leadtime_to_ship?: number | null | undefined;
330
- manage_inventory?: boolean | undefined;
331
- allow_backorder?: boolean | undefined;
332
- }, {
333
- variant_id: string;
334
- shipping_profile_id: string;
335
- sku: string;
336
- prices: {
337
- currency_code: string;
338
- amount: number;
339
- min_quantity?: number | null | undefined;
340
- max_quantity?: number | null | undefined;
341
- rules?: Record<string, string> | undefined;
342
- }[];
343
- inventory_items: {
344
- title?: string | undefined;
345
- sku?: string | undefined;
346
- required_quantity?: number | undefined;
347
- stock_levels?: {
348
- location_id: string;
349
- stocked_quantity: number;
350
- }[] | undefined;
351
- }[];
352
- metadata?: Record<string, unknown> | null | undefined;
353
- ean?: string | null | undefined;
354
- upc?: string | null | undefined;
355
- leadtime_to_ship?: number | null | undefined;
356
- manage_inventory?: boolean | undefined;
357
- allow_backorder?: boolean | undefined;
358
- }>;
113
+ }, z.core.$strict>;
359
114
  export type VendorCreateOfferType = z.infer<typeof CreateOffer> & AdditionalData;
360
115
  export declare const VendorCreateOffer: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any>;
361
116
  declare const UpdateOffer: z.ZodObject<{
@@ -372,97 +127,21 @@ declare const UpdateOffer: z.ZodObject<{
372
127
  min_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
373
128
  max_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
374
129
  rules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
375
- }, "strict", z.ZodTypeAny, {
376
- currency_code: string;
377
- amount: number;
378
- id?: string | undefined;
379
- min_quantity?: number | null | undefined;
380
- max_quantity?: number | null | undefined;
381
- rules?: Record<string, string> | undefined;
382
- }, {
383
- currency_code: string;
384
- amount: number;
385
- id?: string | undefined;
386
- min_quantity?: number | null | undefined;
387
- max_quantity?: number | null | undefined;
388
- rules?: Record<string, string> | undefined;
389
- }>, "many">>;
390
- }, "strict", z.ZodTypeAny, {
391
- metadata?: Record<string, unknown> | null | undefined;
392
- shipping_profile_id?: string | undefined;
393
- sku?: string | undefined;
394
- leadtime_to_ship?: number | null | undefined;
395
- prices?: {
396
- currency_code: string;
397
- amount: number;
398
- id?: string | undefined;
399
- min_quantity?: number | null | undefined;
400
- max_quantity?: number | null | undefined;
401
- rules?: Record<string, string> | undefined;
402
- }[] | undefined;
403
- manage_inventory?: boolean | undefined;
404
- allow_backorder?: boolean | undefined;
405
- }, {
406
- metadata?: Record<string, unknown> | null | undefined;
407
- shipping_profile_id?: string | undefined;
408
- sku?: string | undefined;
409
- leadtime_to_ship?: number | null | undefined;
410
- prices?: {
411
- currency_code: string;
412
- amount: number;
413
- id?: string | undefined;
414
- min_quantity?: number | null | undefined;
415
- max_quantity?: number | null | undefined;
416
- rules?: Record<string, string> | undefined;
417
- }[] | undefined;
418
- manage_inventory?: boolean | undefined;
419
- allow_backorder?: boolean | undefined;
420
- }>;
130
+ }, z.core.$strict>>>;
131
+ }, z.core.$strict>;
421
132
  export type VendorUpdateOfferType = z.infer<typeof UpdateOffer> & AdditionalData;
422
133
  export declare const VendorUpdateOffer: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any>;
423
134
  declare const BatchOfferInventoryItems: z.ZodObject<{
424
135
  create: z.ZodOptional<z.ZodArray<z.ZodObject<{
425
136
  inventory_item_id: z.ZodString;
426
137
  required_quantity: z.ZodDefault<z.ZodNumber>;
427
- }, "strict", z.ZodTypeAny, {
428
- required_quantity: number;
429
- inventory_item_id: string;
430
- }, {
431
- inventory_item_id: string;
432
- required_quantity?: number | undefined;
433
- }>, "many">>;
138
+ }, z.core.$strict>>>;
434
139
  update: z.ZodOptional<z.ZodArray<z.ZodObject<{
435
140
  inventory_item_id: z.ZodString;
436
141
  required_quantity: z.ZodNumber;
437
- }, "strict", z.ZodTypeAny, {
438
- required_quantity: number;
439
- inventory_item_id: string;
440
- }, {
441
- required_quantity: number;
442
- inventory_item_id: string;
443
- }>, "many">>;
444
- delete: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
445
- }, "strict", z.ZodTypeAny, {
446
- create?: {
447
- required_quantity: number;
448
- inventory_item_id: string;
449
- }[] | undefined;
450
- update?: {
451
- required_quantity: number;
452
- inventory_item_id: string;
453
- }[] | undefined;
454
- delete?: string[] | undefined;
455
- }, {
456
- create?: {
457
- inventory_item_id: string;
458
- required_quantity?: number | undefined;
459
- }[] | undefined;
460
- update?: {
461
- required_quantity: number;
462
- inventory_item_id: string;
463
- }[] | undefined;
464
- delete?: string[] | undefined;
465
- }>;
142
+ }, z.core.$strict>>>;
143
+ delete: z.ZodOptional<z.ZodArray<z.ZodString>>;
144
+ }, z.core.$strict>;
466
145
  export type VendorBatchOfferInventoryItemsType = z.infer<typeof BatchOfferInventoryItems> & AdditionalData;
467
146
  export declare const VendorBatchOfferInventoryItems: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any>;
468
147
  declare const CreateOffersBatch: z.ZodObject<{
@@ -476,19 +155,7 @@ declare const CreateOffersBatch: z.ZodObject<{
476
155
  min_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
477
156
  max_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
478
157
  rules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
479
- }, "strict", z.ZodTypeAny, {
480
- currency_code: string;
481
- amount: number;
482
- min_quantity?: number | null | undefined;
483
- max_quantity?: number | null | undefined;
484
- rules?: Record<string, string> | undefined;
485
- }, {
486
- currency_code: string;
487
- amount: number;
488
- min_quantity?: number | null | undefined;
489
- max_quantity?: number | null | undefined;
490
- rules?: Record<string, string> | undefined;
491
- }>, "many">;
158
+ }, z.core.$strict>>;
492
159
  inventory_items: z.ZodArray<z.ZodObject<{
493
160
  title: z.ZodOptional<z.ZodString>;
494
161
  sku: z.ZodOptional<z.ZodString>;
@@ -496,146 +163,16 @@ declare const CreateOffersBatch: z.ZodObject<{
496
163
  stock_levels: z.ZodOptional<z.ZodArray<z.ZodObject<{
497
164
  location_id: z.ZodString;
498
165
  stocked_quantity: z.ZodNumber;
499
- }, "strict", z.ZodTypeAny, {
500
- location_id: string;
501
- stocked_quantity: number;
502
- }, {
503
- location_id: string;
504
- stocked_quantity: number;
505
- }>, "many">>;
506
- }, "strict", z.ZodTypeAny, {
507
- required_quantity: number;
508
- title?: string | undefined;
509
- sku?: string | undefined;
510
- stock_levels?: {
511
- location_id: string;
512
- stocked_quantity: number;
513
- }[] | undefined;
514
- }, {
515
- title?: string | undefined;
516
- sku?: string | undefined;
517
- required_quantity?: number | undefined;
518
- stock_levels?: {
519
- location_id: string;
520
- stocked_quantity: number;
521
- }[] | undefined;
522
- }>, "many">;
166
+ }, z.core.$strict>>>;
167
+ }, z.core.$strict>>;
523
168
  ean: z.ZodOptional<z.ZodNullable<z.ZodString>>;
524
169
  upc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
525
170
  manage_inventory: z.ZodOptional<z.ZodBoolean>;
526
171
  allow_backorder: z.ZodOptional<z.ZodBoolean>;
527
172
  leadtime_to_ship: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
528
173
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
529
- }, "strict", z.ZodTypeAny, {
530
- variant_id: string;
531
- shipping_profile_id: string;
532
- sku: string;
533
- prices: {
534
- currency_code: string;
535
- amount: number;
536
- min_quantity?: number | null | undefined;
537
- max_quantity?: number | null | undefined;
538
- rules?: Record<string, string> | undefined;
539
- }[];
540
- inventory_items: {
541
- required_quantity: number;
542
- title?: string | undefined;
543
- sku?: string | undefined;
544
- stock_levels?: {
545
- location_id: string;
546
- stocked_quantity: number;
547
- }[] | undefined;
548
- }[];
549
- metadata?: Record<string, unknown> | null | undefined;
550
- ean?: string | null | undefined;
551
- upc?: string | null | undefined;
552
- leadtime_to_ship?: number | null | undefined;
553
- manage_inventory?: boolean | undefined;
554
- allow_backorder?: boolean | undefined;
555
- }, {
556
- variant_id: string;
557
- shipping_profile_id: string;
558
- sku: string;
559
- prices: {
560
- currency_code: string;
561
- amount: number;
562
- min_quantity?: number | null | undefined;
563
- max_quantity?: number | null | undefined;
564
- rules?: Record<string, string> | undefined;
565
- }[];
566
- inventory_items: {
567
- title?: string | undefined;
568
- sku?: string | undefined;
569
- required_quantity?: number | undefined;
570
- stock_levels?: {
571
- location_id: string;
572
- stocked_quantity: number;
573
- }[] | undefined;
574
- }[];
575
- metadata?: Record<string, unknown> | null | undefined;
576
- ean?: string | null | undefined;
577
- upc?: string | null | undefined;
578
- leadtime_to_ship?: number | null | undefined;
579
- manage_inventory?: boolean | undefined;
580
- allow_backorder?: boolean | undefined;
581
- }>, "many">;
582
- }, "strict", z.ZodTypeAny, {
583
- offers: {
584
- variant_id: string;
585
- shipping_profile_id: string;
586
- sku: string;
587
- prices: {
588
- currency_code: string;
589
- amount: number;
590
- min_quantity?: number | null | undefined;
591
- max_quantity?: number | null | undefined;
592
- rules?: Record<string, string> | undefined;
593
- }[];
594
- inventory_items: {
595
- required_quantity: number;
596
- title?: string | undefined;
597
- sku?: string | undefined;
598
- stock_levels?: {
599
- location_id: string;
600
- stocked_quantity: number;
601
- }[] | undefined;
602
- }[];
603
- metadata?: Record<string, unknown> | null | undefined;
604
- ean?: string | null | undefined;
605
- upc?: string | null | undefined;
606
- leadtime_to_ship?: number | null | undefined;
607
- manage_inventory?: boolean | undefined;
608
- allow_backorder?: boolean | undefined;
609
- }[];
610
- }, {
611
- offers: {
612
- variant_id: string;
613
- shipping_profile_id: string;
614
- sku: string;
615
- prices: {
616
- currency_code: string;
617
- amount: number;
618
- min_quantity?: number | null | undefined;
619
- max_quantity?: number | null | undefined;
620
- rules?: Record<string, string> | undefined;
621
- }[];
622
- inventory_items: {
623
- title?: string | undefined;
624
- sku?: string | undefined;
625
- required_quantity?: number | undefined;
626
- stock_levels?: {
627
- location_id: string;
628
- stocked_quantity: number;
629
- }[] | undefined;
630
- }[];
631
- metadata?: Record<string, unknown> | null | undefined;
632
- ean?: string | null | undefined;
633
- upc?: string | null | undefined;
634
- leadtime_to_ship?: number | null | undefined;
635
- manage_inventory?: boolean | undefined;
636
- allow_backorder?: boolean | undefined;
637
- }[];
638
- }>;
174
+ }, z.core.$strict>>;
175
+ }, z.core.$strict>;
639
176
  export type VendorCreateOffersBatchType = z.infer<typeof CreateOffersBatch> & AdditionalData;
640
177
  export declare const VendorCreateOffersBatch: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any>;
641
178
  export {};