@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,14 +3,10 @@ import { z } from "zod";
3
3
  export type VendorGetPromotionParamsType = z.infer<typeof VendorGetPromotionParams>;
4
4
  export declare const VendorGetPromotionParams: 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 VendorGetPromotionsParamsFields: z.ZodObject<{
12
8
  q: z.ZodOptional<z.ZodString>;
13
- code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodUnion<readonly [any, z.ZodObject<{
9
+ code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodUnion<readonly [any, z.ZodObject<{
14
10
  $eq: any;
15
11
  $ne: any;
16
12
  $in: any;
@@ -23,34 +19,8 @@ export declare const VendorGetPromotionsParamsFields: z.ZodObject<{
23
19
  $gte: any;
24
20
  $lt: any;
25
21
  $lte: any;
26
- }, z.core.$strip, z.ZodTypeAny, {
27
- $nin?: any;
28
- $eq?: any;
29
- $ne?: any;
30
- $in?: any;
31
- $like?: any;
32
- $ilike?: any;
33
- $re?: any;
34
- $contains?: any;
35
- $gt?: any;
36
- $gte?: any;
37
- $lt?: any;
38
- $lte?: any;
39
- }, {
40
- $nin?: any;
41
- $eq?: any;
42
- $ne?: any;
43
- $in?: any;
44
- $like?: any;
45
- $ilike?: any;
46
- $re?: any;
47
- $contains?: any;
48
- $gt?: any;
49
- $gte?: any;
50
- $lt?: any;
51
- $lte?: any;
52
- }>]>]>>;
53
- id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodUnion<readonly [any, z.ZodObject<{
22
+ }, z.core.$strip>]>]>>;
23
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodUnion<readonly [any, z.ZodObject<{
54
24
  $eq: any;
55
25
  $ne: any;
56
26
  $in: any;
@@ -63,45 +33,16 @@ export declare const VendorGetPromotionsParamsFields: z.ZodObject<{
63
33
  $gte: any;
64
34
  $lt: any;
65
35
  $lte: any;
66
- }, z.core.$strip, z.ZodTypeAny, {
67
- $nin?: any;
68
- $eq?: any;
69
- $ne?: any;
70
- $in?: any;
71
- $like?: any;
72
- $ilike?: any;
73
- $re?: any;
74
- $contains?: any;
75
- $gt?: any;
76
- $gte?: any;
77
- $lt?: any;
78
- $lte?: any;
79
- }, {
80
- $nin?: any;
81
- $eq?: any;
82
- $ne?: any;
83
- $in?: any;
84
- $like?: any;
85
- $ilike?: any;
86
- $re?: any;
87
- $contains?: any;
88
- $gt?: any;
89
- $gte?: any;
90
- $lt?: any;
91
- $lte?: any;
92
- }>]>]>>;
93
- campaign_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
94
- is_automatic: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
36
+ }, z.core.$strip>]>]>>;
37
+ campaign_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
38
+ is_automatic: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
39
+ true: "true";
40
+ false: "false";
41
+ }>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
95
42
  application_method: z.ZodOptional<z.ZodObject<{
96
- currency_code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
97
- type: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
98
- }, "strip", z.ZodTypeAny, {
99
- type?: string | string[] | undefined;
100
- currency_code?: string | string[] | undefined;
101
- }, {
102
- type?: string | string[] | undefined;
103
- currency_code?: string | string[] | undefined;
104
- }>>;
43
+ currency_code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
44
+ type: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
45
+ }, z.core.$strip>>;
105
46
  created_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
106
47
  $eq: any;
107
48
  $ne: any;
@@ -115,33 +56,7 @@ export declare const VendorGetPromotionsParamsFields: z.ZodObject<{
115
56
  $gte: any;
116
57
  $lt: any;
117
58
  $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
- }>]>>;
59
+ }, z.core.$strip>]>>;
145
60
  updated_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
146
61
  $eq: any;
147
62
  $ne: any;
@@ -155,33 +70,7 @@ export declare const VendorGetPromotionsParamsFields: z.ZodObject<{
155
70
  $gte: any;
156
71
  $lt: any;
157
72
  $lte: any;
158
- }, z.core.$strip, z.ZodTypeAny, {
159
- $nin?: any;
160
- $eq?: any;
161
- $ne?: any;
162
- $in?: any;
163
- $like?: any;
164
- $ilike?: any;
165
- $re?: any;
166
- $contains?: any;
167
- $gt?: any;
168
- $gte?: any;
169
- $lt?: any;
170
- $lte?: any;
171
- }, {
172
- $nin?: any;
173
- $eq?: any;
174
- $ne?: any;
175
- $in?: any;
176
- $like?: any;
177
- $ilike?: any;
178
- $re?: any;
179
- $contains?: any;
180
- $gt?: any;
181
- $gte?: any;
182
- $lt?: any;
183
- $lte?: any;
184
- }>]>>;
73
+ }, z.core.$strip>]>>;
185
74
  deleted_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
186
75
  $eq: any;
187
76
  $ne: any;
@@ -195,60 +84,8 @@ export declare const VendorGetPromotionsParamsFields: z.ZodObject<{
195
84
  $gte: any;
196
85
  $lt: any;
197
86
  $lte: any;
198
- }, z.core.$strip, z.ZodTypeAny, {
199
- $nin?: any;
200
- $eq?: any;
201
- $ne?: any;
202
- $in?: any;
203
- $like?: any;
204
- $ilike?: any;
205
- $re?: any;
206
- $contains?: any;
207
- $gt?: any;
208
- $gte?: any;
209
- $lt?: any;
210
- $lte?: any;
211
- }, {
212
- $nin?: any;
213
- $eq?: any;
214
- $ne?: any;
215
- $in?: any;
216
- $like?: any;
217
- $ilike?: any;
218
- $re?: any;
219
- $contains?: any;
220
- $gt?: any;
221
- $gte?: any;
222
- $lt?: any;
223
- $lte?: any;
224
- }>]>>;
225
- }, "strip", z.ZodTypeAny, {
226
- id?: any;
227
- created_at?: any;
228
- updated_at?: any;
229
- q?: string | undefined;
230
- code?: any;
231
- deleted_at?: any;
232
- campaign_id?: string | string[] | undefined;
233
- is_automatic?: boolean | undefined;
234
- application_method?: {
235
- type?: string | string[] | undefined;
236
- currency_code?: string | string[] | undefined;
237
- } | undefined;
238
- }, {
239
- id?: any;
240
- created_at?: any;
241
- updated_at?: any;
242
- q?: string | undefined;
243
- code?: any;
244
- deleted_at?: any;
245
- campaign_id?: string | string[] | undefined;
246
- is_automatic?: boolean | "true" | "false" | undefined;
247
- application_method?: {
248
- type?: string | string[] | undefined;
249
- currency_code?: string | string[] | undefined;
250
- } | undefined;
251
- }>;
87
+ }, z.core.$strip>]>>;
88
+ }, z.core.$strip>;
252
89
  export type VendorGetPromotionsParamsType = z.infer<typeof VendorGetPromotionsParams>;
253
90
  export declare const VendorGetPromotionsParams: z.ZodObject<{
254
91
  fields: z.ZodOptional<z.ZodString>;
@@ -256,9 +93,8 @@ export declare const VendorGetPromotionsParams: z.ZodObject<{
256
93
  limit: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
257
94
  order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
258
95
  with_deleted: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
259
- } & {
260
96
  q: z.ZodOptional<z.ZodString>;
261
- code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodUnion<readonly [any, z.ZodObject<{
97
+ code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodUnion<readonly [any, z.ZodObject<{
262
98
  $eq: any;
263
99
  $ne: any;
264
100
  $in: any;
@@ -271,34 +107,8 @@ export declare const VendorGetPromotionsParams: z.ZodObject<{
271
107
  $gte: any;
272
108
  $lt: any;
273
109
  $lte: any;
274
- }, z.core.$strip, z.ZodTypeAny, {
275
- $nin?: any;
276
- $eq?: any;
277
- $ne?: any;
278
- $in?: any;
279
- $like?: any;
280
- $ilike?: any;
281
- $re?: any;
282
- $contains?: any;
283
- $gt?: any;
284
- $gte?: any;
285
- $lt?: any;
286
- $lte?: any;
287
- }, {
288
- $nin?: any;
289
- $eq?: any;
290
- $ne?: any;
291
- $in?: any;
292
- $like?: any;
293
- $ilike?: any;
294
- $re?: any;
295
- $contains?: any;
296
- $gt?: any;
297
- $gte?: any;
298
- $lt?: any;
299
- $lte?: any;
300
- }>]>]>>;
301
- id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodUnion<readonly [any, z.ZodObject<{
110
+ }, z.core.$strip>]>]>>;
111
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodUnion<readonly [any, z.ZodObject<{
302
112
  $eq: any;
303
113
  $ne: any;
304
114
  $in: any;
@@ -311,45 +121,16 @@ export declare const VendorGetPromotionsParams: z.ZodObject<{
311
121
  $gte: any;
312
122
  $lt: any;
313
123
  $lte: any;
314
- }, z.core.$strip, z.ZodTypeAny, {
315
- $nin?: any;
316
- $eq?: any;
317
- $ne?: any;
318
- $in?: any;
319
- $like?: any;
320
- $ilike?: any;
321
- $re?: any;
322
- $contains?: any;
323
- $gt?: any;
324
- $gte?: any;
325
- $lt?: any;
326
- $lte?: any;
327
- }, {
328
- $nin?: any;
329
- $eq?: any;
330
- $ne?: any;
331
- $in?: any;
332
- $like?: any;
333
- $ilike?: any;
334
- $re?: any;
335
- $contains?: any;
336
- $gt?: any;
337
- $gte?: any;
338
- $lt?: any;
339
- $lte?: any;
340
- }>]>]>>;
341
- campaign_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
342
- is_automatic: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
124
+ }, z.core.$strip>]>]>>;
125
+ campaign_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
126
+ is_automatic: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
127
+ true: "true";
128
+ false: "false";
129
+ }>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
343
130
  application_method: z.ZodOptional<z.ZodObject<{
344
- currency_code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
345
- type: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
346
- }, "strip", z.ZodTypeAny, {
347
- type?: string | string[] | undefined;
348
- currency_code?: string | string[] | undefined;
349
- }, {
350
- type?: string | string[] | undefined;
351
- currency_code?: string | string[] | undefined;
352
- }>>;
131
+ currency_code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
132
+ type: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
133
+ }, z.core.$strip>>;
353
134
  created_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
354
135
  $eq: any;
355
136
  $ne: any;
@@ -363,33 +144,7 @@ export declare const VendorGetPromotionsParams: z.ZodObject<{
363
144
  $gte: any;
364
145
  $lt: any;
365
146
  $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
- }>]>>;
147
+ }, z.core.$strip>]>>;
393
148
  updated_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
394
149
  $eq: any;
395
150
  $ne: any;
@@ -403,33 +158,7 @@ export declare const VendorGetPromotionsParams: z.ZodObject<{
403
158
  $gte: any;
404
159
  $lt: any;
405
160
  $lte: any;
406
- }, z.core.$strip, z.ZodTypeAny, {
407
- $nin?: any;
408
- $eq?: any;
409
- $ne?: any;
410
- $in?: any;
411
- $like?: any;
412
- $ilike?: any;
413
- $re?: any;
414
- $contains?: any;
415
- $gt?: any;
416
- $gte?: any;
417
- $lt?: any;
418
- $lte?: any;
419
- }, {
420
- $nin?: any;
421
- $eq?: any;
422
- $ne?: any;
423
- $in?: any;
424
- $like?: any;
425
- $ilike?: any;
426
- $re?: any;
427
- $contains?: any;
428
- $gt?: any;
429
- $gte?: any;
430
- $lt?: any;
431
- $lte?: any;
432
- }>]>>;
161
+ }, z.core.$strip>]>>;
433
162
  deleted_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
434
163
  $eq: any;
435
164
  $ne: any;
@@ -443,102 +172,21 @@ export declare const VendorGetPromotionsParams: z.ZodObject<{
443
172
  $gte: any;
444
173
  $lt: any;
445
174
  $lte: any;
446
- }, z.core.$strip, z.ZodTypeAny, {
447
- $nin?: any;
448
- $eq?: any;
449
- $ne?: any;
450
- $in?: any;
451
- $like?: any;
452
- $ilike?: any;
453
- $re?: any;
454
- $contains?: any;
455
- $gt?: any;
456
- $gte?: any;
457
- $lt?: any;
458
- $lte?: any;
459
- }, {
460
- $nin?: any;
461
- $eq?: any;
462
- $ne?: any;
463
- $in?: any;
464
- $like?: any;
465
- $ilike?: any;
466
- $re?: any;
467
- $contains?: any;
468
- $gt?: any;
469
- $gte?: any;
470
- $lt?: any;
471
- $lte?: any;
472
- }>]>>;
473
- }, "strip", z.ZodTypeAny, {
474
- order?: string | undefined;
475
- id?: any;
476
- created_at?: any;
477
- updated_at?: any;
478
- q?: string | undefined;
479
- fields?: string | undefined;
480
- code?: any;
481
- offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
482
- limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
483
- with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
484
- deleted_at?: any;
485
- campaign_id?: string | string[] | undefined;
486
- is_automatic?: boolean | undefined;
487
- application_method?: {
488
- type?: string | string[] | undefined;
489
- currency_code?: string | string[] | undefined;
490
- } | undefined;
491
- }, {
492
- order?: string | undefined;
493
- id?: any;
494
- created_at?: any;
495
- updated_at?: any;
496
- q?: string | undefined;
497
- fields?: string | undefined;
498
- code?: any;
499
- offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
500
- limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
501
- with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
502
- deleted_at?: any;
503
- campaign_id?: string | string[] | undefined;
504
- is_automatic?: boolean | "true" | "false" | undefined;
505
- application_method?: {
506
- type?: string | string[] | undefined;
507
- currency_code?: string | string[] | undefined;
508
- } | undefined;
509
- }>;
175
+ }, z.core.$strip>]>>;
176
+ }, z.core.$strip>;
510
177
  export type VendorGetPromotionRuleParamsType = z.infer<typeof VendorGetPromotionRuleParams>;
511
178
  export declare const VendorGetPromotionRuleParams: z.ZodObject<{
512
179
  promotion_type: z.ZodOptional<z.ZodString>;
513
180
  application_method_type: z.ZodOptional<z.ZodString>;
514
181
  application_method_target_type: z.ZodOptional<z.ZodString>;
515
- }, "strip", z.ZodTypeAny, {
516
- application_method_target_type?: string | undefined;
517
- promotion_type?: string | undefined;
518
- application_method_type?: string | undefined;
519
- }, {
520
- application_method_target_type?: string | undefined;
521
- promotion_type?: string | undefined;
522
- application_method_type?: string | undefined;
523
- }>;
182
+ }, z.core.$strip>;
524
183
  export type VendorGetPromotionRuleTypeParamsType = z.infer<typeof VendorGetPromotionRuleTypeParams>;
525
184
  export declare const VendorGetPromotionRuleTypeParams: z.ZodObject<{
526
185
  fields: z.ZodOptional<z.ZodString>;
527
- } & {
528
186
  promotion_type: z.ZodOptional<z.ZodString>;
529
187
  application_method_type: z.ZodOptional<z.ZodString>;
530
188
  application_method_target_type: z.ZodOptional<z.ZodString>;
531
- }, "strip", z.ZodTypeAny, {
532
- fields?: string | undefined;
533
- application_method_target_type?: string | undefined;
534
- promotion_type?: string | undefined;
535
- application_method_type?: string | undefined;
536
- }, {
537
- fields?: string | undefined;
538
- application_method_target_type?: string | undefined;
539
- promotion_type?: string | undefined;
540
- application_method_type?: string | undefined;
541
- }>;
189
+ }, z.core.$strip>;
542
190
  export type VendorGetPromotionsRuleValueParamsType = z.infer<typeof VendorGetPromotionsRuleValueParams>;
543
191
  export declare const VendorGetPromotionsRuleValueParams: z.ZodObject<{
544
192
  fields: z.ZodOptional<z.ZodString>;
@@ -546,690 +194,133 @@ export declare const VendorGetPromotionsRuleValueParams: z.ZodObject<{
546
194
  limit: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
547
195
  order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
548
196
  with_deleted: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
549
- } & {
550
197
  q: z.ZodOptional<z.ZodString>;
551
- value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
198
+ value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
552
199
  application_method_target_type: z.ZodOptional<z.ZodString>;
553
- }, "strip", z.ZodTypeAny, {
554
- order?: string | undefined;
555
- q?: string | undefined;
556
- fields?: string | undefined;
557
- value?: string | string[] | undefined;
558
- offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
559
- limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
560
- with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
561
- application_method_target_type?: string | undefined;
562
- }, {
563
- order?: string | undefined;
564
- q?: string | undefined;
565
- fields?: string | undefined;
566
- value?: string | string[] | undefined;
567
- offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
568
- limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
569
- with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
570
- application_method_target_type?: string | undefined;
571
- }>;
200
+ }, z.core.$strip>;
572
201
  export type VendorCreatePromotionRuleType = z.infer<typeof VendorCreatePromotionRule>;
573
202
  export declare const VendorCreatePromotionRule: z.ZodObject<{
574
- operator: z.ZodNativeEnum<typeof PromotionRuleOperator>;
203
+ operator: z.ZodEnum<typeof PromotionRuleOperator>;
575
204
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
576
205
  attribute: z.ZodString;
577
- values: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
578
- }, "strict", z.ZodTypeAny, {
579
- values: string | string[];
580
- operator: PromotionRuleOperator;
581
- attribute: string;
582
- description?: string | null | undefined;
583
- }, {
584
- values: string | string[];
585
- operator: PromotionRuleOperator;
586
- attribute: string;
587
- description?: string | null | undefined;
588
- }>;
206
+ values: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
207
+ }, z.core.$strict>;
589
208
  export type VendorUpdatePromotionRuleType = z.infer<typeof VendorUpdatePromotionRule>;
590
209
  export declare const VendorUpdatePromotionRule: z.ZodObject<{
591
210
  id: z.ZodString;
592
- operator: z.ZodOptional<z.ZodNativeEnum<typeof PromotionRuleOperator>>;
211
+ operator: z.ZodOptional<z.ZodEnum<typeof PromotionRuleOperator>>;
593
212
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
594
213
  attribute: z.ZodOptional<z.ZodString>;
595
- values: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
596
- }, "strict", z.ZodTypeAny, {
597
- values: string | string[];
598
- id: string;
599
- description?: string | null | undefined;
600
- operator?: PromotionRuleOperator | undefined;
601
- attribute?: string | undefined;
602
- }, {
603
- values: string | string[];
604
- id: string;
605
- description?: string | null | undefined;
606
- operator?: PromotionRuleOperator | undefined;
607
- attribute?: string | undefined;
608
- }>;
214
+ values: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
215
+ }, z.core.$strict>;
609
216
  export type VendorCreateApplicationMethodType = z.infer<typeof VendorCreateApplicationMethod>;
610
217
  export declare const VendorCreateApplicationMethod: z.ZodObject<{
611
218
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
612
219
  value: z.ZodNumber;
613
220
  currency_code: z.ZodOptional<z.ZodString>;
614
221
  max_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
615
- type: z.ZodNativeEnum<typeof ApplicationMethodType>;
616
- target_type: z.ZodNativeEnum<typeof ApplicationMethodTargetType>;
617
- allocation: z.ZodOptional<z.ZodEnum<["each", "across", "once"]>>;
222
+ type: z.ZodEnum<typeof ApplicationMethodType>;
223
+ target_type: z.ZodEnum<typeof ApplicationMethodTargetType>;
224
+ allocation: z.ZodOptional<z.ZodEnum<{
225
+ once: "once";
226
+ each: "each";
227
+ across: "across";
228
+ }>>;
618
229
  target_rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
619
- operator: z.ZodNativeEnum<typeof PromotionRuleOperator>;
230
+ operator: z.ZodEnum<typeof PromotionRuleOperator>;
620
231
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
621
232
  attribute: z.ZodString;
622
- values: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
623
- }, "strict", z.ZodTypeAny, {
624
- values: string | string[];
625
- operator: PromotionRuleOperator;
626
- attribute: string;
627
- description?: string | null | undefined;
628
- }, {
629
- values: string | string[];
630
- operator: PromotionRuleOperator;
631
- attribute: string;
632
- description?: string | null | undefined;
633
- }>, "many">>;
233
+ values: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
234
+ }, z.core.$strict>>>;
634
235
  buy_rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
635
- operator: z.ZodNativeEnum<typeof PromotionRuleOperator>;
236
+ operator: z.ZodEnum<typeof PromotionRuleOperator>;
636
237
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
637
238
  attribute: z.ZodString;
638
- values: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
639
- }, "strict", z.ZodTypeAny, {
640
- values: string | string[];
641
- operator: PromotionRuleOperator;
642
- attribute: string;
643
- description?: string | null | undefined;
644
- }, {
645
- values: string | string[];
646
- operator: PromotionRuleOperator;
647
- attribute: string;
648
- description?: string | null | undefined;
649
- }>, "many">>;
239
+ values: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
240
+ }, z.core.$strict>>>;
650
241
  apply_to_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
651
242
  buy_rules_min_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
652
- }, "strict", z.ZodTypeAny, {
653
- type: ApplicationMethodType;
654
- value: number;
655
- target_type: ApplicationMethodTargetType;
656
- currency_code?: string | undefined;
657
- max_quantity?: number | null | undefined;
658
- description?: string | null | undefined;
659
- allocation?: "once" | "each" | "across" | undefined;
660
- target_rules?: {
661
- values: string | string[];
662
- operator: PromotionRuleOperator;
663
- attribute: string;
664
- description?: string | null | undefined;
665
- }[] | undefined;
666
- buy_rules?: {
667
- values: string | string[];
668
- operator: PromotionRuleOperator;
669
- attribute: string;
670
- description?: string | null | undefined;
671
- }[] | undefined;
672
- apply_to_quantity?: number | null | undefined;
673
- buy_rules_min_quantity?: number | null | undefined;
674
- }, {
675
- type: ApplicationMethodType;
676
- value: number;
677
- target_type: ApplicationMethodTargetType;
678
- currency_code?: string | undefined;
679
- max_quantity?: number | null | undefined;
680
- description?: string | null | undefined;
681
- allocation?: "once" | "each" | "across" | undefined;
682
- target_rules?: {
683
- values: string | string[];
684
- operator: PromotionRuleOperator;
685
- attribute: string;
686
- description?: string | null | undefined;
687
- }[] | undefined;
688
- buy_rules?: {
689
- values: string | string[];
690
- operator: PromotionRuleOperator;
691
- attribute: string;
692
- description?: string | null | undefined;
693
- }[] | undefined;
694
- apply_to_quantity?: number | null | undefined;
695
- buy_rules_min_quantity?: number | null | undefined;
696
- }>;
243
+ }, z.core.$strict>;
697
244
  export type VendorUpdateApplicationMethodType = z.infer<typeof VendorUpdateApplicationMethod>;
698
245
  export declare const VendorUpdateApplicationMethod: z.ZodObject<{
699
246
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
700
247
  value: z.ZodOptional<z.ZodNumber>;
701
248
  max_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
702
249
  currency_code: z.ZodOptional<z.ZodString>;
703
- type: z.ZodOptional<z.ZodNativeEnum<typeof ApplicationMethodType>>;
704
- target_type: z.ZodOptional<z.ZodNativeEnum<typeof ApplicationMethodTargetType>>;
705
- allocation: z.ZodOptional<z.ZodEnum<["each", "across", "once"]>>;
250
+ type: z.ZodOptional<z.ZodEnum<typeof ApplicationMethodType>>;
251
+ target_type: z.ZodOptional<z.ZodEnum<typeof ApplicationMethodTargetType>>;
252
+ allocation: z.ZodOptional<z.ZodEnum<{
253
+ once: "once";
254
+ each: "each";
255
+ across: "across";
256
+ }>>;
706
257
  apply_to_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
707
258
  buy_rules_min_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
708
- }, "strict", z.ZodTypeAny, {
709
- type?: ApplicationMethodType | undefined;
710
- currency_code?: string | undefined;
711
- value?: number | undefined;
712
- max_quantity?: number | null | undefined;
713
- description?: string | null | undefined;
714
- target_type?: ApplicationMethodTargetType | undefined;
715
- allocation?: "once" | "each" | "across" | undefined;
716
- apply_to_quantity?: number | null | undefined;
717
- buy_rules_min_quantity?: number | null | undefined;
718
- }, {
719
- type?: ApplicationMethodType | undefined;
720
- currency_code?: string | undefined;
721
- value?: number | undefined;
722
- max_quantity?: number | null | undefined;
723
- description?: string | null | undefined;
724
- target_type?: ApplicationMethodTargetType | undefined;
725
- allocation?: "once" | "each" | "across" | undefined;
726
- apply_to_quantity?: number | null | undefined;
727
- buy_rules_min_quantity?: number | null | undefined;
728
- }>;
259
+ }, z.core.$strict>;
729
260
  export type VendorCreatePromotionType = z.infer<typeof VendorCreatePromotion>;
730
- export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObject<{
261
+ export declare const VendorCreatePromotion: z.ZodObject<{
731
262
  code: z.ZodString;
732
263
  is_automatic: z.ZodOptional<z.ZodBoolean>;
733
- type: z.ZodNativeEnum<typeof PromotionType>;
264
+ type: z.ZodEnum<typeof PromotionType>;
734
265
  is_tax_inclusive: z.ZodOptional<z.ZodBoolean>;
735
- status: z.ZodDefault<z.ZodNativeEnum<typeof PromotionStatus>>;
266
+ status: z.ZodDefault<z.ZodEnum<typeof PromotionStatus>>;
736
267
  campaign_id: z.ZodOptional<z.ZodString>;
737
268
  campaign: z.ZodOptional<z.ZodObject<{
738
269
  name: z.ZodString;
739
270
  campaign_identifier: z.ZodString;
740
271
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
741
- budget: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
742
- type: z.ZodNativeEnum<typeof import("@medusajs/framework/utils").CampaignBudgetType>;
272
+ budget: z.ZodOptional<z.ZodNullable<z.ZodObject<{
273
+ type: z.ZodEnum<typeof import("@medusajs/framework/utils").CampaignBudgetType>;
743
274
  limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
744
275
  currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
745
276
  attribute: z.ZodOptional<z.ZodNullable<z.ZodString>>;
746
- }, "strict", z.ZodTypeAny, {
747
- type: import("@medusajs/framework/utils").CampaignBudgetType;
748
- currency_code?: string | null | undefined;
749
- limit?: number | null | undefined;
750
- attribute?: string | null | undefined;
751
- }, {
752
- type: import("@medusajs/framework/utils").CampaignBudgetType;
753
- currency_code?: string | null | undefined;
754
- limit?: number | null | undefined;
755
- attribute?: string | null | undefined;
756
- }>, {
757
- type: import("@medusajs/framework/utils").CampaignBudgetType;
758
- currency_code?: string | null | undefined;
759
- limit?: number | null | undefined;
760
- attribute?: string | null | undefined;
761
- }, {
762
- type: import("@medusajs/framework/utils").CampaignBudgetType;
763
- currency_code?: string | null | undefined;
764
- limit?: number | null | undefined;
765
- attribute?: string | null | undefined;
766
- }>, {
767
- type: import("@medusajs/framework/utils").CampaignBudgetType;
768
- currency_code?: string | null | undefined;
769
- limit?: number | null | undefined;
770
- attribute?: string | null | undefined;
771
- }, {
772
- type: import("@medusajs/framework/utils").CampaignBudgetType;
773
- currency_code?: string | null | undefined;
774
- limit?: number | null | undefined;
775
- attribute?: string | null | undefined;
776
- }>, {
777
- type: import("@medusajs/framework/utils").CampaignBudgetType;
778
- currency_code?: string | null | undefined;
779
- limit?: number | null | undefined;
780
- attribute?: string | null | undefined;
781
- }, {
782
- type: import("@medusajs/framework/utils").CampaignBudgetType;
783
- currency_code?: string | null | undefined;
784
- limit?: number | null | undefined;
785
- attribute?: string | null | undefined;
786
- }>>>;
787
- starts_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
788
- ends_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
789
- }, "strict", z.ZodTypeAny, {
790
- name: string;
791
- campaign_identifier: string;
792
- description?: string | null | undefined;
793
- ends_at?: Date | null | undefined;
794
- starts_at?: Date | null | undefined;
795
- budget?: {
796
- type: import("@medusajs/framework/utils").CampaignBudgetType;
797
- currency_code?: string | null | undefined;
798
- limit?: number | null | undefined;
799
- attribute?: string | null | undefined;
800
- } | null | undefined;
801
- }, {
802
- name: string;
803
- campaign_identifier: string;
804
- description?: string | null | undefined;
805
- ends_at?: Date | null | undefined;
806
- starts_at?: Date | null | undefined;
807
- budget?: {
808
- type: import("@medusajs/framework/utils").CampaignBudgetType;
809
- currency_code?: string | null | undefined;
810
- limit?: number | null | undefined;
811
- attribute?: string | null | undefined;
812
- } | null | undefined;
813
- }>>;
277
+ }, z.core.$strict>>>;
278
+ starts_at: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
279
+ ends_at: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
280
+ }, z.core.$strict>>;
814
281
  limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
815
282
  application_method: z.ZodObject<{
816
283
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
817
284
  value: z.ZodNumber;
818
285
  currency_code: z.ZodOptional<z.ZodString>;
819
286
  max_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
820
- type: z.ZodNativeEnum<typeof ApplicationMethodType>;
821
- target_type: z.ZodNativeEnum<typeof ApplicationMethodTargetType>;
822
- allocation: z.ZodOptional<z.ZodEnum<["each", "across", "once"]>>;
287
+ type: z.ZodEnum<typeof ApplicationMethodType>;
288
+ target_type: z.ZodEnum<typeof ApplicationMethodTargetType>;
289
+ allocation: z.ZodOptional<z.ZodEnum<{
290
+ once: "once";
291
+ each: "each";
292
+ across: "across";
293
+ }>>;
823
294
  target_rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
824
- operator: z.ZodNativeEnum<typeof PromotionRuleOperator>;
295
+ operator: z.ZodEnum<typeof PromotionRuleOperator>;
825
296
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
826
297
  attribute: z.ZodString;
827
- values: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
828
- }, "strict", z.ZodTypeAny, {
829
- values: string | string[];
830
- operator: PromotionRuleOperator;
831
- attribute: string;
832
- description?: string | null | undefined;
833
- }, {
834
- values: string | string[];
835
- operator: PromotionRuleOperator;
836
- attribute: string;
837
- description?: string | null | undefined;
838
- }>, "many">>;
298
+ values: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
299
+ }, z.core.$strict>>>;
839
300
  buy_rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
840
- operator: z.ZodNativeEnum<typeof PromotionRuleOperator>;
301
+ operator: z.ZodEnum<typeof PromotionRuleOperator>;
841
302
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
842
303
  attribute: z.ZodString;
843
- values: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
844
- }, "strict", z.ZodTypeAny, {
845
- values: string | string[];
846
- operator: PromotionRuleOperator;
847
- attribute: string;
848
- description?: string | null | undefined;
849
- }, {
850
- values: string | string[];
851
- operator: PromotionRuleOperator;
852
- attribute: string;
853
- description?: string | null | undefined;
854
- }>, "many">>;
304
+ values: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
305
+ }, z.core.$strict>>>;
855
306
  apply_to_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
856
307
  buy_rules_min_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
857
- }, "strict", z.ZodTypeAny, {
858
- type: ApplicationMethodType;
859
- value: number;
860
- target_type: ApplicationMethodTargetType;
861
- currency_code?: string | undefined;
862
- max_quantity?: number | null | undefined;
863
- description?: string | null | undefined;
864
- allocation?: "once" | "each" | "across" | undefined;
865
- target_rules?: {
866
- values: string | string[];
867
- operator: PromotionRuleOperator;
868
- attribute: string;
869
- description?: string | null | undefined;
870
- }[] | undefined;
871
- buy_rules?: {
872
- values: string | string[];
873
- operator: PromotionRuleOperator;
874
- attribute: string;
875
- description?: string | null | undefined;
876
- }[] | undefined;
877
- apply_to_quantity?: number | null | undefined;
878
- buy_rules_min_quantity?: number | null | undefined;
879
- }, {
880
- type: ApplicationMethodType;
881
- value: number;
882
- target_type: ApplicationMethodTargetType;
883
- currency_code?: string | undefined;
884
- max_quantity?: number | null | undefined;
885
- description?: string | null | undefined;
886
- allocation?: "once" | "each" | "across" | undefined;
887
- target_rules?: {
888
- values: string | string[];
889
- operator: PromotionRuleOperator;
890
- attribute: string;
891
- description?: string | null | undefined;
892
- }[] | undefined;
893
- buy_rules?: {
894
- values: string | string[];
895
- operator: PromotionRuleOperator;
896
- attribute: string;
897
- description?: string | null | undefined;
898
- }[] | undefined;
899
- apply_to_quantity?: number | null | undefined;
900
- buy_rules_min_quantity?: number | null | undefined;
901
- }>;
308
+ }, z.core.$strict>;
902
309
  rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
903
- operator: z.ZodNativeEnum<typeof PromotionRuleOperator>;
310
+ operator: z.ZodEnum<typeof PromotionRuleOperator>;
904
311
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
905
312
  attribute: z.ZodString;
906
- values: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
907
- }, "strict", z.ZodTypeAny, {
908
- values: string | string[];
909
- operator: PromotionRuleOperator;
910
- attribute: string;
911
- description?: string | null | undefined;
912
- }, {
913
- values: string | string[];
914
- operator: PromotionRuleOperator;
915
- attribute: string;
916
- description?: string | null | undefined;
917
- }>, "many">>;
313
+ values: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
314
+ }, z.core.$strict>>>;
918
315
  additional_data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
919
- }, "strict", z.ZodTypeAny, {
920
- type: PromotionType;
921
- status: PromotionStatus;
922
- code: string;
923
- application_method: {
924
- type: ApplicationMethodType;
925
- value: number;
926
- target_type: ApplicationMethodTargetType;
927
- currency_code?: string | undefined;
928
- max_quantity?: number | null | undefined;
929
- description?: string | null | undefined;
930
- allocation?: "once" | "each" | "across" | undefined;
931
- target_rules?: {
932
- values: string | string[];
933
- operator: PromotionRuleOperator;
934
- attribute: string;
935
- description?: string | null | undefined;
936
- }[] | undefined;
937
- buy_rules?: {
938
- values: string | string[];
939
- operator: PromotionRuleOperator;
940
- attribute: string;
941
- description?: string | null | undefined;
942
- }[] | undefined;
943
- apply_to_quantity?: number | null | undefined;
944
- buy_rules_min_quantity?: number | null | undefined;
945
- };
946
- campaign?: {
947
- name: string;
948
- campaign_identifier: string;
949
- description?: string | null | undefined;
950
- ends_at?: Date | null | undefined;
951
- starts_at?: Date | null | undefined;
952
- budget?: {
953
- type: import("@medusajs/framework/utils").CampaignBudgetType;
954
- currency_code?: string | null | undefined;
955
- limit?: number | null | undefined;
956
- attribute?: string | null | undefined;
957
- } | null | undefined;
958
- } | undefined;
959
- limit?: number | null | undefined;
960
- rules?: {
961
- values: string | string[];
962
- operator: PromotionRuleOperator;
963
- attribute: string;
964
- description?: string | null | undefined;
965
- }[] | undefined;
966
- campaign_id?: string | undefined;
967
- additional_data?: Record<string, unknown> | null | undefined;
968
- is_tax_inclusive?: boolean | undefined;
969
- is_automatic?: boolean | undefined;
970
- }, {
971
- type: PromotionType;
972
- code: string;
973
- application_method: {
974
- type: ApplicationMethodType;
975
- value: number;
976
- target_type: ApplicationMethodTargetType;
977
- currency_code?: string | undefined;
978
- max_quantity?: number | null | undefined;
979
- description?: string | null | undefined;
980
- allocation?: "once" | "each" | "across" | undefined;
981
- target_rules?: {
982
- values: string | string[];
983
- operator: PromotionRuleOperator;
984
- attribute: string;
985
- description?: string | null | undefined;
986
- }[] | undefined;
987
- buy_rules?: {
988
- values: string | string[];
989
- operator: PromotionRuleOperator;
990
- attribute: string;
991
- description?: string | null | undefined;
992
- }[] | undefined;
993
- apply_to_quantity?: number | null | undefined;
994
- buy_rules_min_quantity?: number | null | undefined;
995
- };
996
- campaign?: {
997
- name: string;
998
- campaign_identifier: string;
999
- description?: string | null | undefined;
1000
- ends_at?: Date | null | undefined;
1001
- starts_at?: Date | null | undefined;
1002
- budget?: {
1003
- type: import("@medusajs/framework/utils").CampaignBudgetType;
1004
- currency_code?: string | null | undefined;
1005
- limit?: number | null | undefined;
1006
- attribute?: string | null | undefined;
1007
- } | null | undefined;
1008
- } | undefined;
1009
- status?: PromotionStatus | undefined;
1010
- limit?: number | null | undefined;
1011
- rules?: {
1012
- values: string | string[];
1013
- operator: PromotionRuleOperator;
1014
- attribute: string;
1015
- description?: string | null | undefined;
1016
- }[] | undefined;
1017
- campaign_id?: string | undefined;
1018
- additional_data?: Record<string, unknown> | null | undefined;
1019
- is_tax_inclusive?: boolean | undefined;
1020
- is_automatic?: boolean | undefined;
1021
- }>, {
1022
- type: PromotionType;
1023
- status: PromotionStatus;
1024
- code: string;
1025
- application_method: {
1026
- type: ApplicationMethodType;
1027
- value: number;
1028
- target_type: ApplicationMethodTargetType;
1029
- currency_code?: string | undefined;
1030
- max_quantity?: number | null | undefined;
1031
- description?: string | null | undefined;
1032
- allocation?: "once" | "each" | "across" | undefined;
1033
- target_rules?: {
1034
- values: string | string[];
1035
- operator: PromotionRuleOperator;
1036
- attribute: string;
1037
- description?: string | null | undefined;
1038
- }[] | undefined;
1039
- buy_rules?: {
1040
- values: string | string[];
1041
- operator: PromotionRuleOperator;
1042
- attribute: string;
1043
- description?: string | null | undefined;
1044
- }[] | undefined;
1045
- apply_to_quantity?: number | null | undefined;
1046
- buy_rules_min_quantity?: number | null | undefined;
1047
- };
1048
- campaign?: {
1049
- name: string;
1050
- campaign_identifier: string;
1051
- description?: string | null | undefined;
1052
- ends_at?: Date | null | undefined;
1053
- starts_at?: Date | null | undefined;
1054
- budget?: {
1055
- type: import("@medusajs/framework/utils").CampaignBudgetType;
1056
- currency_code?: string | null | undefined;
1057
- limit?: number | null | undefined;
1058
- attribute?: string | null | undefined;
1059
- } | null | undefined;
1060
- } | undefined;
1061
- limit?: number | null | undefined;
1062
- rules?: {
1063
- values: string | string[];
1064
- operator: PromotionRuleOperator;
1065
- attribute: string;
1066
- description?: string | null | undefined;
1067
- }[] | undefined;
1068
- campaign_id?: string | undefined;
1069
- additional_data?: Record<string, unknown> | null | undefined;
1070
- is_tax_inclusive?: boolean | undefined;
1071
- is_automatic?: boolean | undefined;
1072
- }, {
1073
- type: PromotionType;
1074
- code: string;
1075
- application_method: {
1076
- type: ApplicationMethodType;
1077
- value: number;
1078
- target_type: ApplicationMethodTargetType;
1079
- currency_code?: string | undefined;
1080
- max_quantity?: number | null | undefined;
1081
- description?: string | null | undefined;
1082
- allocation?: "once" | "each" | "across" | undefined;
1083
- target_rules?: {
1084
- values: string | string[];
1085
- operator: PromotionRuleOperator;
1086
- attribute: string;
1087
- description?: string | null | undefined;
1088
- }[] | undefined;
1089
- buy_rules?: {
1090
- values: string | string[];
1091
- operator: PromotionRuleOperator;
1092
- attribute: string;
1093
- description?: string | null | undefined;
1094
- }[] | undefined;
1095
- apply_to_quantity?: number | null | undefined;
1096
- buy_rules_min_quantity?: number | null | undefined;
1097
- };
1098
- campaign?: {
1099
- name: string;
1100
- campaign_identifier: string;
1101
- description?: string | null | undefined;
1102
- ends_at?: Date | null | undefined;
1103
- starts_at?: Date | null | undefined;
1104
- budget?: {
1105
- type: import("@medusajs/framework/utils").CampaignBudgetType;
1106
- currency_code?: string | null | undefined;
1107
- limit?: number | null | undefined;
1108
- attribute?: string | null | undefined;
1109
- } | null | undefined;
1110
- } | undefined;
1111
- status?: PromotionStatus | undefined;
1112
- limit?: number | null | undefined;
1113
- rules?: {
1114
- values: string | string[];
1115
- operator: PromotionRuleOperator;
1116
- attribute: string;
1117
- description?: string | null | undefined;
1118
- }[] | undefined;
1119
- campaign_id?: string | undefined;
1120
- additional_data?: Record<string, unknown> | null | undefined;
1121
- is_tax_inclusive?: boolean | undefined;
1122
- is_automatic?: boolean | undefined;
1123
- }>, {
1124
- type: PromotionType;
1125
- status: PromotionStatus;
1126
- code: string;
1127
- application_method: {
1128
- type: ApplicationMethodType;
1129
- value: number;
1130
- target_type: ApplicationMethodTargetType;
1131
- currency_code?: string | undefined;
1132
- max_quantity?: number | null | undefined;
1133
- description?: string | null | undefined;
1134
- allocation?: "once" | "each" | "across" | undefined;
1135
- target_rules?: {
1136
- values: string | string[];
1137
- operator: PromotionRuleOperator;
1138
- attribute: string;
1139
- description?: string | null | undefined;
1140
- }[] | undefined;
1141
- buy_rules?: {
1142
- values: string | string[];
1143
- operator: PromotionRuleOperator;
1144
- attribute: string;
1145
- description?: string | null | undefined;
1146
- }[] | undefined;
1147
- apply_to_quantity?: number | null | undefined;
1148
- buy_rules_min_quantity?: number | null | undefined;
1149
- };
1150
- campaign?: {
1151
- name: string;
1152
- campaign_identifier: string;
1153
- description?: string | null | undefined;
1154
- ends_at?: Date | null | undefined;
1155
- starts_at?: Date | null | undefined;
1156
- budget?: {
1157
- type: import("@medusajs/framework/utils").CampaignBudgetType;
1158
- currency_code?: string | null | undefined;
1159
- limit?: number | null | undefined;
1160
- attribute?: string | null | undefined;
1161
- } | null | undefined;
1162
- } | undefined;
1163
- limit?: number | null | undefined;
1164
- rules?: {
1165
- values: string | string[];
1166
- operator: PromotionRuleOperator;
1167
- attribute: string;
1168
- description?: string | null | undefined;
1169
- }[] | undefined;
1170
- campaign_id?: string | undefined;
1171
- additional_data?: Record<string, unknown> | null | undefined;
1172
- is_tax_inclusive?: boolean | undefined;
1173
- is_automatic?: boolean | undefined;
1174
- }, {
1175
- type: PromotionType;
1176
- code: string;
1177
- application_method: {
1178
- type: ApplicationMethodType;
1179
- value: number;
1180
- target_type: ApplicationMethodTargetType;
1181
- currency_code?: string | undefined;
1182
- max_quantity?: number | null | undefined;
1183
- description?: string | null | undefined;
1184
- allocation?: "once" | "each" | "across" | undefined;
1185
- target_rules?: {
1186
- values: string | string[];
1187
- operator: PromotionRuleOperator;
1188
- attribute: string;
1189
- description?: string | null | undefined;
1190
- }[] | undefined;
1191
- buy_rules?: {
1192
- values: string | string[];
1193
- operator: PromotionRuleOperator;
1194
- attribute: string;
1195
- description?: string | null | undefined;
1196
- }[] | undefined;
1197
- apply_to_quantity?: number | null | undefined;
1198
- buy_rules_min_quantity?: number | null | undefined;
1199
- };
1200
- campaign?: {
1201
- name: string;
1202
- campaign_identifier: string;
1203
- description?: string | null | undefined;
1204
- ends_at?: Date | null | undefined;
1205
- starts_at?: Date | null | undefined;
1206
- budget?: {
1207
- type: import("@medusajs/framework/utils").CampaignBudgetType;
1208
- currency_code?: string | null | undefined;
1209
- limit?: number | null | undefined;
1210
- attribute?: string | null | undefined;
1211
- } | null | undefined;
1212
- } | undefined;
1213
- status?: PromotionStatus | undefined;
1214
- limit?: number | null | undefined;
1215
- rules?: {
1216
- values: string | string[];
1217
- operator: PromotionRuleOperator;
1218
- attribute: string;
1219
- description?: string | null | undefined;
1220
- }[] | undefined;
1221
- campaign_id?: string | undefined;
1222
- additional_data?: Record<string, unknown> | null | undefined;
1223
- is_tax_inclusive?: boolean | undefined;
1224
- is_automatic?: boolean | undefined;
1225
- }>;
316
+ }, z.core.$strict>;
1226
317
  export type VendorUpdatePromotionType = z.infer<typeof VendorUpdatePromotion>;
1227
- export declare const VendorUpdatePromotion: z.ZodEffects<z.ZodObject<{
318
+ export declare const VendorUpdatePromotion: z.ZodObject<{
1228
319
  code: z.ZodOptional<z.ZodString>;
1229
320
  is_automatic: z.ZodOptional<z.ZodBoolean>;
1230
321
  is_tax_inclusive: z.ZodOptional<z.ZodBoolean>;
1231
- type: z.ZodOptional<z.ZodNativeEnum<typeof PromotionType>>;
1232
- status: z.ZodOptional<z.ZodNativeEnum<typeof PromotionStatus>>;
322
+ type: z.ZodOptional<z.ZodEnum<typeof PromotionType>>;
323
+ status: z.ZodOptional<z.ZodEnum<typeof PromotionStatus>>;
1233
324
  campaign_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1234
325
  limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1235
326
  application_method: z.ZodOptional<z.ZodObject<{
@@ -1237,111 +328,15 @@ export declare const VendorUpdatePromotion: z.ZodEffects<z.ZodObject<{
1237
328
  value: z.ZodOptional<z.ZodNumber>;
1238
329
  max_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1239
330
  currency_code: z.ZodOptional<z.ZodString>;
1240
- type: z.ZodOptional<z.ZodNativeEnum<typeof ApplicationMethodType>>;
1241
- target_type: z.ZodOptional<z.ZodNativeEnum<typeof ApplicationMethodTargetType>>;
1242
- allocation: z.ZodOptional<z.ZodEnum<["each", "across", "once"]>>;
331
+ type: z.ZodOptional<z.ZodEnum<typeof ApplicationMethodType>>;
332
+ target_type: z.ZodOptional<z.ZodEnum<typeof ApplicationMethodTargetType>>;
333
+ allocation: z.ZodOptional<z.ZodEnum<{
334
+ once: "once";
335
+ each: "each";
336
+ across: "across";
337
+ }>>;
1243
338
  apply_to_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1244
339
  buy_rules_min_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1245
- }, "strict", z.ZodTypeAny, {
1246
- type?: ApplicationMethodType | undefined;
1247
- currency_code?: string | undefined;
1248
- value?: number | undefined;
1249
- max_quantity?: number | null | undefined;
1250
- description?: string | null | undefined;
1251
- target_type?: ApplicationMethodTargetType | undefined;
1252
- allocation?: "once" | "each" | "across" | undefined;
1253
- apply_to_quantity?: number | null | undefined;
1254
- buy_rules_min_quantity?: number | null | undefined;
1255
- }, {
1256
- type?: ApplicationMethodType | undefined;
1257
- currency_code?: string | undefined;
1258
- value?: number | undefined;
1259
- max_quantity?: number | null | undefined;
1260
- description?: string | null | undefined;
1261
- target_type?: ApplicationMethodTargetType | undefined;
1262
- allocation?: "once" | "each" | "across" | undefined;
1263
- apply_to_quantity?: number | null | undefined;
1264
- buy_rules_min_quantity?: number | null | undefined;
1265
- }>>;
340
+ }, z.core.$strict>>;
1266
341
  additional_data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1267
- }, "strict", z.ZodTypeAny, {
1268
- type?: PromotionType | undefined;
1269
- status?: PromotionStatus | undefined;
1270
- code?: string | undefined;
1271
- limit?: number | null | undefined;
1272
- campaign_id?: string | null | undefined;
1273
- additional_data?: Record<string, unknown> | null | undefined;
1274
- is_tax_inclusive?: boolean | undefined;
1275
- is_automatic?: boolean | undefined;
1276
- application_method?: {
1277
- type?: ApplicationMethodType | undefined;
1278
- currency_code?: string | undefined;
1279
- value?: number | undefined;
1280
- max_quantity?: number | null | undefined;
1281
- description?: string | null | undefined;
1282
- target_type?: ApplicationMethodTargetType | undefined;
1283
- allocation?: "once" | "each" | "across" | undefined;
1284
- apply_to_quantity?: number | null | undefined;
1285
- buy_rules_min_quantity?: number | null | undefined;
1286
- } | undefined;
1287
- }, {
1288
- type?: PromotionType | undefined;
1289
- status?: PromotionStatus | undefined;
1290
- code?: string | undefined;
1291
- limit?: number | null | undefined;
1292
- campaign_id?: string | null | undefined;
1293
- additional_data?: Record<string, unknown> | null | undefined;
1294
- is_tax_inclusive?: boolean | undefined;
1295
- is_automatic?: boolean | undefined;
1296
- application_method?: {
1297
- type?: ApplicationMethodType | undefined;
1298
- currency_code?: string | undefined;
1299
- value?: number | undefined;
1300
- max_quantity?: number | null | undefined;
1301
- description?: string | null | undefined;
1302
- target_type?: ApplicationMethodTargetType | undefined;
1303
- allocation?: "once" | "each" | "across" | undefined;
1304
- apply_to_quantity?: number | null | undefined;
1305
- buy_rules_min_quantity?: number | null | undefined;
1306
- } | undefined;
1307
- }>, {
1308
- type?: PromotionType | undefined;
1309
- status?: PromotionStatus | undefined;
1310
- code?: string | undefined;
1311
- limit?: number | null | undefined;
1312
- campaign_id?: string | null | undefined;
1313
- additional_data?: Record<string, unknown> | null | undefined;
1314
- is_tax_inclusive?: boolean | undefined;
1315
- is_automatic?: boolean | undefined;
1316
- application_method?: {
1317
- type?: ApplicationMethodType | undefined;
1318
- currency_code?: string | undefined;
1319
- value?: number | undefined;
1320
- max_quantity?: number | null | undefined;
1321
- description?: string | null | undefined;
1322
- target_type?: ApplicationMethodTargetType | undefined;
1323
- allocation?: "once" | "each" | "across" | undefined;
1324
- apply_to_quantity?: number | null | undefined;
1325
- buy_rules_min_quantity?: number | null | undefined;
1326
- } | undefined;
1327
- }, {
1328
- type?: PromotionType | undefined;
1329
- status?: PromotionStatus | undefined;
1330
- code?: string | undefined;
1331
- limit?: number | null | undefined;
1332
- campaign_id?: string | null | undefined;
1333
- additional_data?: Record<string, unknown> | null | undefined;
1334
- is_tax_inclusive?: boolean | undefined;
1335
- is_automatic?: boolean | undefined;
1336
- application_method?: {
1337
- type?: ApplicationMethodType | undefined;
1338
- currency_code?: string | undefined;
1339
- value?: number | undefined;
1340
- max_quantity?: number | null | undefined;
1341
- description?: string | null | undefined;
1342
- target_type?: ApplicationMethodTargetType | undefined;
1343
- allocation?: "once" | "each" | "across" | undefined;
1344
- apply_to_quantity?: number | null | undefined;
1345
- buy_rules_min_quantity?: number | null | undefined;
1346
- } | undefined;
1347
- }>;
342
+ }, z.core.$strict>;