@mercurjs/core 2.3.2-canary.1 → 2.3.2-canary.2
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.
- package/.medusa/server/src/api/admin/campaigns/middlewares.js +9 -1
- package/.medusa/server/src/api/admin/collections/middlewares.js +33 -1
- package/.medusa/server/src/api/admin/collections/validators.d.ts +10 -10
- package/.medusa/server/src/api/admin/commission-rates/middlewares.js +39 -1
- package/.medusa/server/src/api/admin/commission-rates/validators.d.ts +14 -14
- package/.medusa/server/src/api/admin/customer-groups/middlewares.js +9 -1
- package/.medusa/server/src/api/admin/inventory-items/middlewares.js +9 -1
- package/.medusa/server/src/api/admin/members/middlewares.js +9 -1
- package/.medusa/server/src/api/admin/members/validators.d.ts +2 -2
- package/.medusa/server/src/api/admin/middlewares.js +6 -1
- package/.medusa/server/src/api/admin/offers/middlewares.js +23 -3
- package/.medusa/server/src/api/admin/offers/validators.d.ts +4 -4
- package/.medusa/server/src/api/admin/order-groups/middlewares.js +15 -1
- package/.medusa/server/src/api/admin/order-groups/validators.d.ts +12 -12
- package/.medusa/server/src/api/admin/orders/middlewares.js +9 -1
- package/.medusa/server/src/api/admin/payouts/middlewares.js +15 -1
- package/.medusa/server/src/api/admin/payouts/validators.d.ts +6 -6
- package/.medusa/server/src/api/admin/price-lists/middlewares.js +9 -1
- package/.medusa/server/src/api/admin/product-attributes/middlewares.js +53 -3
- package/.medusa/server/src/api/admin/product-attributes/validators.d.ts +12 -12
- package/.medusa/server/src/api/admin/product-categories/middlewares.js +45 -1
- package/.medusa/server/src/api/admin/product-categories/validators.d.ts +12 -12
- package/.medusa/server/src/api/admin/product-changes/middlewares.js +15 -1
- package/.medusa/server/src/api/admin/products/middlewares.js +101 -3
- package/.medusa/server/src/api/admin/products/validators.d.ts +36 -36
- package/.medusa/server/src/api/admin/promotions/middlewares.js +21 -1
- package/.medusa/server/src/api/admin/reservations/middlewares.js +11 -3
- package/.medusa/server/src/api/admin/reservations/validators.d.ts +6 -6
- package/.medusa/server/src/api/admin/reviews/middlewares.js +33 -1
- package/.medusa/server/src/api/admin/reviews/validators.d.ts +6 -6
- package/.medusa/server/src/api/admin/sellers/middlewares.js +117 -1
- package/.medusa/server/src/api/admin/sellers/validators.d.ts +20 -20
- package/.medusa/server/src/api/admin/shipping-options/middlewares.js +9 -1
- package/.medusa/server/src/api/admin/shipping-profiles/middlewares.js +9 -1
- package/.medusa/server/src/api/admin/stock-locations/middlewares.js +9 -1
- package/.medusa/server/src/api/store/offers/validators.d.ts +14 -14
- package/.medusa/server/src/api/store/order-groups/validators.d.ts +4 -4
- package/.medusa/server/src/api/store/product-attributes/validators.d.ts +8 -8
- package/.medusa/server/src/api/store/product-categories/validators.d.ts +8 -8
- package/.medusa/server/src/api/store/products/validators.d.ts +10 -10
- package/.medusa/server/src/api/store/sellers/validators.d.ts +4 -4
- package/.medusa/server/src/api/utils/ensure-seller-middleware.js +13 -8
- package/.medusa/server/src/api/utils/index.d.ts +2 -0
- package/.medusa/server/src/api/utils/index.js +3 -1
- package/.medusa/server/src/api/utils/policy-resources.d.ts +59 -0
- package/.medusa/server/src/api/utils/policy-resources.js +64 -0
- package/.medusa/server/src/api/utils/resolve-admin-roles-middleware.d.ts +19 -0
- package/.medusa/server/src/api/utils/resolve-admin-roles-middleware.js +55 -0
- package/.medusa/server/src/api/vendor/campaigns/middlewares.js +39 -1
- package/.medusa/server/src/api/vendor/campaigns/validators.d.ts +14 -14
- package/.medusa/server/src/api/vendor/claims/middlewares.js +129 -1
- package/.medusa/server/src/api/vendor/claims/validators.d.ts +8 -8
- package/.medusa/server/src/api/vendor/collections/middlewares.js +21 -1
- package/.medusa/server/src/api/vendor/collections/validators.d.ts +10 -10
- package/.medusa/server/src/api/vendor/currencies/middlewares.js +15 -1
- package/.medusa/server/src/api/vendor/currencies/validators.d.ts +4 -4
- package/.medusa/server/src/api/vendor/customer-groups/middlewares.js +39 -1
- package/.medusa/server/src/api/vendor/customer-groups/validators.d.ts +8 -8
- package/.medusa/server/src/api/vendor/customers/middlewares.js +21 -1
- package/.medusa/server/src/api/vendor/customers/validators.d.ts +4 -4
- package/.medusa/server/src/api/vendor/exchanges/middlewares.js +105 -1
- package/.medusa/server/src/api/vendor/exchanges/validators.d.ts +6 -6
- package/.medusa/server/src/api/vendor/fulfillment-providers/middlewares.js +9 -1
- package/.medusa/server/src/api/vendor/fulfillment-sets/middlewares.js +33 -1
- package/.medusa/server/src/api/vendor/fulfillment-sets/validators.d.ts +16 -16
- package/.medusa/server/src/api/vendor/inventory-items/middlewares.js +69 -1
- package/.medusa/server/src/api/vendor/inventory-items/validators.d.ts +16 -16
- package/.medusa/server/src/api/vendor/members/middlewares.js +15 -1
- package/.medusa/server/src/api/vendor/offers/middlewares.js +45 -1
- package/.medusa/server/src/api/vendor/offers/validators.d.ts +23 -23
- package/.medusa/server/src/api/vendor/order-edits/middlewares.js +69 -1
- package/.medusa/server/src/api/vendor/orders/middlewares.js +63 -1
- package/.medusa/server/src/api/vendor/orders/validators.d.ts +12 -12
- package/.medusa/server/src/api/vendor/payments/middlewares.js +33 -1
- package/.medusa/server/src/api/vendor/payments/validators.d.ts +6 -6
- package/.medusa/server/src/api/vendor/payout-accounts/middlewares.js +27 -1
- package/.medusa/server/src/api/vendor/payouts/middlewares.js +15 -1
- package/.medusa/server/src/api/vendor/payouts/validators.d.ts +6 -6
- package/.medusa/server/src/api/vendor/price-lists/middlewares.js +51 -1
- package/.medusa/server/src/api/vendor/price-lists/validators.d.ts +16 -16
- package/.medusa/server/src/api/vendor/price-preferences/middlewares.js +15 -1
- package/.medusa/server/src/api/vendor/price-preferences/validators.d.ts +2 -2
- package/.medusa/server/src/api/vendor/product-attributes/middlewares.js +17 -3
- package/.medusa/server/src/api/vendor/product-attributes/validators.d.ts +12 -12
- package/.medusa/server/src/api/vendor/product-categories/middlewares.js +21 -1
- package/.medusa/server/src/api/vendor/product-categories/validators.d.ts +12 -12
- package/.medusa/server/src/api/vendor/product-tags/middlewares.js +15 -1
- package/.medusa/server/src/api/vendor/product-tags/validators.d.ts +6 -6
- package/.medusa/server/src/api/vendor/product-types/middlewares.js +15 -1
- package/.medusa/server/src/api/vendor/product-types/validators.d.ts +2 -2
- package/.medusa/server/src/api/vendor/product-variants/middlewares.js +9 -1
- package/.medusa/server/src/api/vendor/product-variants/validators.d.ts +18 -18
- package/.medusa/server/src/api/vendor/products/middlewares.js +79 -5
- package/.medusa/server/src/api/vendor/products/validators.d.ts +36 -36
- package/.medusa/server/src/api/vendor/promotions/middlewares.js +69 -1
- package/.medusa/server/src/api/vendor/promotions/validators.d.ts +127 -127
- package/.medusa/server/src/api/vendor/refund-reasons/middlewares.js +15 -1
- package/.medusa/server/src/api/vendor/refund-reasons/validators.d.ts +6 -6
- package/.medusa/server/src/api/vendor/regions/middlewares.js +15 -1
- package/.medusa/server/src/api/vendor/regions/validators.d.ts +10 -10
- package/.medusa/server/src/api/vendor/reservations/middlewares.js +39 -7
- package/.medusa/server/src/api/vendor/reservations/validators.d.ts +14 -14
- package/.medusa/server/src/api/vendor/return-reasons/middlewares.js +15 -1
- package/.medusa/server/src/api/vendor/return-reasons/validators.d.ts +6 -6
- package/.medusa/server/src/api/vendor/returns/middlewares.js +135 -1
- package/.medusa/server/src/api/vendor/returns/validators.d.ts +14 -14
- package/.medusa/server/src/api/vendor/reviews/middlewares.js +21 -1
- package/.medusa/server/src/api/vendor/reviews/validators.d.ts +4 -4
- package/.medusa/server/src/api/vendor/sales-channels/middlewares.js +21 -1
- package/.medusa/server/src/api/vendor/sellers/middlewares.js +14 -1
- package/.medusa/server/src/api/vendor/shipping-option-types/middlewares.js +15 -1
- package/.medusa/server/src/api/vendor/shipping-option-types/validators.d.ts +6 -6
- package/.medusa/server/src/api/vendor/shipping-options/middlewares.js +39 -1
- package/.medusa/server/src/api/vendor/shipping-options/validators.d.ts +12 -12
- package/.medusa/server/src/api/vendor/shipping-profiles/middlewares.js +33 -1
- package/.medusa/server/src/api/vendor/shipping-profiles/validators.d.ts +14 -14
- package/.medusa/server/src/api/vendor/stock-locations/middlewares.js +51 -1
- package/.medusa/server/src/api/vendor/stock-locations/validators.d.ts +10 -10
- package/.medusa/server/src/api/vendor/stores/validators.d.ts +4 -4
- package/.medusa/server/src/api/vendor/uploads/middlewares.js +9 -1
- package/.medusa/server/src/modules/seller/utils/ensure-seller-default-roles.js +47 -5
- package/.medusa/server/src/policies/commission.d.ts +1 -0
- package/.medusa/server/src/policies/commission.js +12 -0
- package/.medusa/server/src/policies/offer.d.ts +1 -0
- package/.medusa/server/src/policies/offer.js +7 -0
- package/.medusa/server/src/policies/payout.d.ts +1 -0
- package/.medusa/server/src/policies/payout.js +7 -0
- package/.medusa/server/src/policies/product-attribute.d.ts +1 -0
- package/.medusa/server/src/policies/product-attribute.js +7 -0
- package/.medusa/server/src/policies/product-edit.d.ts +1 -0
- package/.medusa/server/src/policies/product-edit.js +7 -0
- package/.medusa/server/src/policies/review.d.ts +1 -0
- package/.medusa/server/src/policies/review.js +7 -0
- package/.medusa/server/src/policies/seller.js +8 -17
- package/.medusa/server/src/utils/generate-resource-policies.d.ts +7 -0
- package/.medusa/server/src/utils/generate-resource-policies.js +30 -0
- package/.medusa/server/src/with-mercur.js +6 -2
- package/package.json +3 -3
|
@@ -24,10 +24,10 @@ export declare const VendorGetPromotionsParamsFields: z.ZodObject<{
|
|
|
24
24
|
$lt: any;
|
|
25
25
|
$lte: any;
|
|
26
26
|
}, z.core.$strip, z.ZodTypeAny, {
|
|
27
|
+
$nin?: any;
|
|
27
28
|
$eq?: any;
|
|
28
29
|
$ne?: any;
|
|
29
30
|
$in?: any;
|
|
30
|
-
$nin?: any;
|
|
31
31
|
$like?: any;
|
|
32
32
|
$ilike?: any;
|
|
33
33
|
$re?: any;
|
|
@@ -37,10 +37,10 @@ export declare const VendorGetPromotionsParamsFields: z.ZodObject<{
|
|
|
37
37
|
$lt?: any;
|
|
38
38
|
$lte?: any;
|
|
39
39
|
}, {
|
|
40
|
+
$nin?: any;
|
|
40
41
|
$eq?: any;
|
|
41
42
|
$ne?: any;
|
|
42
43
|
$in?: any;
|
|
43
|
-
$nin?: any;
|
|
44
44
|
$like?: any;
|
|
45
45
|
$ilike?: any;
|
|
46
46
|
$re?: any;
|
|
@@ -64,10 +64,10 @@ export declare const VendorGetPromotionsParamsFields: z.ZodObject<{
|
|
|
64
64
|
$lt: any;
|
|
65
65
|
$lte: any;
|
|
66
66
|
}, z.core.$strip, z.ZodTypeAny, {
|
|
67
|
+
$nin?: any;
|
|
67
68
|
$eq?: any;
|
|
68
69
|
$ne?: any;
|
|
69
70
|
$in?: any;
|
|
70
|
-
$nin?: any;
|
|
71
71
|
$like?: any;
|
|
72
72
|
$ilike?: any;
|
|
73
73
|
$re?: any;
|
|
@@ -77,10 +77,10 @@ export declare const VendorGetPromotionsParamsFields: z.ZodObject<{
|
|
|
77
77
|
$lt?: any;
|
|
78
78
|
$lte?: any;
|
|
79
79
|
}, {
|
|
80
|
+
$nin?: any;
|
|
80
81
|
$eq?: any;
|
|
81
82
|
$ne?: any;
|
|
82
83
|
$in?: any;
|
|
83
|
-
$nin?: any;
|
|
84
84
|
$like?: any;
|
|
85
85
|
$ilike?: any;
|
|
86
86
|
$re?: any;
|
|
@@ -116,10 +116,10 @@ export declare const VendorGetPromotionsParamsFields: z.ZodObject<{
|
|
|
116
116
|
$lt: any;
|
|
117
117
|
$lte: any;
|
|
118
118
|
}, z.core.$strip, z.ZodTypeAny, {
|
|
119
|
+
$nin?: any;
|
|
119
120
|
$eq?: any;
|
|
120
121
|
$ne?: any;
|
|
121
122
|
$in?: any;
|
|
122
|
-
$nin?: any;
|
|
123
123
|
$like?: any;
|
|
124
124
|
$ilike?: any;
|
|
125
125
|
$re?: any;
|
|
@@ -129,10 +129,10 @@ export declare const VendorGetPromotionsParamsFields: z.ZodObject<{
|
|
|
129
129
|
$lt?: any;
|
|
130
130
|
$lte?: any;
|
|
131
131
|
}, {
|
|
132
|
+
$nin?: any;
|
|
132
133
|
$eq?: any;
|
|
133
134
|
$ne?: any;
|
|
134
135
|
$in?: any;
|
|
135
|
-
$nin?: any;
|
|
136
136
|
$like?: any;
|
|
137
137
|
$ilike?: any;
|
|
138
138
|
$re?: any;
|
|
@@ -156,10 +156,10 @@ export declare const VendorGetPromotionsParamsFields: z.ZodObject<{
|
|
|
156
156
|
$lt: any;
|
|
157
157
|
$lte: any;
|
|
158
158
|
}, z.core.$strip, z.ZodTypeAny, {
|
|
159
|
+
$nin?: any;
|
|
159
160
|
$eq?: any;
|
|
160
161
|
$ne?: any;
|
|
161
162
|
$in?: any;
|
|
162
|
-
$nin?: any;
|
|
163
163
|
$like?: any;
|
|
164
164
|
$ilike?: any;
|
|
165
165
|
$re?: any;
|
|
@@ -169,10 +169,10 @@ export declare const VendorGetPromotionsParamsFields: z.ZodObject<{
|
|
|
169
169
|
$lt?: any;
|
|
170
170
|
$lte?: any;
|
|
171
171
|
}, {
|
|
172
|
+
$nin?: any;
|
|
172
173
|
$eq?: any;
|
|
173
174
|
$ne?: any;
|
|
174
175
|
$in?: any;
|
|
175
|
-
$nin?: any;
|
|
176
176
|
$like?: any;
|
|
177
177
|
$ilike?: any;
|
|
178
178
|
$re?: any;
|
|
@@ -196,10 +196,10 @@ export declare const VendorGetPromotionsParamsFields: z.ZodObject<{
|
|
|
196
196
|
$lt: any;
|
|
197
197
|
$lte: any;
|
|
198
198
|
}, z.core.$strip, z.ZodTypeAny, {
|
|
199
|
+
$nin?: any;
|
|
199
200
|
$eq?: any;
|
|
200
201
|
$ne?: any;
|
|
201
202
|
$in?: any;
|
|
202
|
-
$nin?: any;
|
|
203
203
|
$like?: any;
|
|
204
204
|
$ilike?: any;
|
|
205
205
|
$re?: any;
|
|
@@ -209,10 +209,10 @@ export declare const VendorGetPromotionsParamsFields: z.ZodObject<{
|
|
|
209
209
|
$lt?: any;
|
|
210
210
|
$lte?: any;
|
|
211
211
|
}, {
|
|
212
|
+
$nin?: any;
|
|
212
213
|
$eq?: any;
|
|
213
214
|
$ne?: any;
|
|
214
215
|
$in?: any;
|
|
215
|
-
$nin?: any;
|
|
216
216
|
$like?: any;
|
|
217
217
|
$ilike?: any;
|
|
218
218
|
$re?: any;
|
|
@@ -226,8 +226,8 @@ export declare const VendorGetPromotionsParamsFields: z.ZodObject<{
|
|
|
226
226
|
id?: any;
|
|
227
227
|
created_at?: any;
|
|
228
228
|
updated_at?: any;
|
|
229
|
-
code?: any;
|
|
230
229
|
q?: string | undefined;
|
|
230
|
+
code?: any;
|
|
231
231
|
deleted_at?: any;
|
|
232
232
|
campaign_id?: string | string[] | undefined;
|
|
233
233
|
is_automatic?: boolean | undefined;
|
|
@@ -239,8 +239,8 @@ export declare const VendorGetPromotionsParamsFields: z.ZodObject<{
|
|
|
239
239
|
id?: any;
|
|
240
240
|
created_at?: any;
|
|
241
241
|
updated_at?: any;
|
|
242
|
-
code?: any;
|
|
243
242
|
q?: string | undefined;
|
|
243
|
+
code?: any;
|
|
244
244
|
deleted_at?: any;
|
|
245
245
|
campaign_id?: string | string[] | undefined;
|
|
246
246
|
is_automatic?: boolean | "true" | "false" | undefined;
|
|
@@ -272,10 +272,10 @@ export declare const VendorGetPromotionsParams: z.ZodObject<{
|
|
|
272
272
|
$lt: any;
|
|
273
273
|
$lte: any;
|
|
274
274
|
}, z.core.$strip, z.ZodTypeAny, {
|
|
275
|
+
$nin?: any;
|
|
275
276
|
$eq?: any;
|
|
276
277
|
$ne?: any;
|
|
277
278
|
$in?: any;
|
|
278
|
-
$nin?: any;
|
|
279
279
|
$like?: any;
|
|
280
280
|
$ilike?: any;
|
|
281
281
|
$re?: any;
|
|
@@ -285,10 +285,10 @@ export declare const VendorGetPromotionsParams: z.ZodObject<{
|
|
|
285
285
|
$lt?: any;
|
|
286
286
|
$lte?: any;
|
|
287
287
|
}, {
|
|
288
|
+
$nin?: any;
|
|
288
289
|
$eq?: any;
|
|
289
290
|
$ne?: any;
|
|
290
291
|
$in?: any;
|
|
291
|
-
$nin?: any;
|
|
292
292
|
$like?: any;
|
|
293
293
|
$ilike?: any;
|
|
294
294
|
$re?: any;
|
|
@@ -312,10 +312,10 @@ export declare const VendorGetPromotionsParams: z.ZodObject<{
|
|
|
312
312
|
$lt: any;
|
|
313
313
|
$lte: any;
|
|
314
314
|
}, z.core.$strip, z.ZodTypeAny, {
|
|
315
|
+
$nin?: any;
|
|
315
316
|
$eq?: any;
|
|
316
317
|
$ne?: any;
|
|
317
318
|
$in?: any;
|
|
318
|
-
$nin?: any;
|
|
319
319
|
$like?: any;
|
|
320
320
|
$ilike?: any;
|
|
321
321
|
$re?: any;
|
|
@@ -325,10 +325,10 @@ export declare const VendorGetPromotionsParams: z.ZodObject<{
|
|
|
325
325
|
$lt?: any;
|
|
326
326
|
$lte?: any;
|
|
327
327
|
}, {
|
|
328
|
+
$nin?: any;
|
|
328
329
|
$eq?: any;
|
|
329
330
|
$ne?: any;
|
|
330
331
|
$in?: any;
|
|
331
|
-
$nin?: any;
|
|
332
332
|
$like?: any;
|
|
333
333
|
$ilike?: any;
|
|
334
334
|
$re?: any;
|
|
@@ -364,10 +364,10 @@ export declare const VendorGetPromotionsParams: z.ZodObject<{
|
|
|
364
364
|
$lt: any;
|
|
365
365
|
$lte: any;
|
|
366
366
|
}, z.core.$strip, z.ZodTypeAny, {
|
|
367
|
+
$nin?: any;
|
|
367
368
|
$eq?: any;
|
|
368
369
|
$ne?: any;
|
|
369
370
|
$in?: any;
|
|
370
|
-
$nin?: any;
|
|
371
371
|
$like?: any;
|
|
372
372
|
$ilike?: any;
|
|
373
373
|
$re?: any;
|
|
@@ -377,10 +377,10 @@ export declare const VendorGetPromotionsParams: z.ZodObject<{
|
|
|
377
377
|
$lt?: any;
|
|
378
378
|
$lte?: any;
|
|
379
379
|
}, {
|
|
380
|
+
$nin?: any;
|
|
380
381
|
$eq?: any;
|
|
381
382
|
$ne?: any;
|
|
382
383
|
$in?: any;
|
|
383
|
-
$nin?: any;
|
|
384
384
|
$like?: any;
|
|
385
385
|
$ilike?: any;
|
|
386
386
|
$re?: any;
|
|
@@ -404,10 +404,10 @@ export declare const VendorGetPromotionsParams: z.ZodObject<{
|
|
|
404
404
|
$lt: any;
|
|
405
405
|
$lte: any;
|
|
406
406
|
}, z.core.$strip, z.ZodTypeAny, {
|
|
407
|
+
$nin?: any;
|
|
407
408
|
$eq?: any;
|
|
408
409
|
$ne?: any;
|
|
409
410
|
$in?: any;
|
|
410
|
-
$nin?: any;
|
|
411
411
|
$like?: any;
|
|
412
412
|
$ilike?: any;
|
|
413
413
|
$re?: any;
|
|
@@ -417,10 +417,10 @@ export declare const VendorGetPromotionsParams: z.ZodObject<{
|
|
|
417
417
|
$lt?: any;
|
|
418
418
|
$lte?: any;
|
|
419
419
|
}, {
|
|
420
|
+
$nin?: any;
|
|
420
421
|
$eq?: any;
|
|
421
422
|
$ne?: any;
|
|
422
423
|
$in?: any;
|
|
423
|
-
$nin?: any;
|
|
424
424
|
$like?: any;
|
|
425
425
|
$ilike?: any;
|
|
426
426
|
$re?: any;
|
|
@@ -444,10 +444,10 @@ export declare const VendorGetPromotionsParams: z.ZodObject<{
|
|
|
444
444
|
$lt: any;
|
|
445
445
|
$lte: any;
|
|
446
446
|
}, z.core.$strip, z.ZodTypeAny, {
|
|
447
|
+
$nin?: any;
|
|
447
448
|
$eq?: any;
|
|
448
449
|
$ne?: any;
|
|
449
450
|
$in?: any;
|
|
450
|
-
$nin?: any;
|
|
451
451
|
$like?: any;
|
|
452
452
|
$ilike?: any;
|
|
453
453
|
$re?: any;
|
|
@@ -457,10 +457,10 @@ export declare const VendorGetPromotionsParams: z.ZodObject<{
|
|
|
457
457
|
$lt?: any;
|
|
458
458
|
$lte?: any;
|
|
459
459
|
}, {
|
|
460
|
+
$nin?: any;
|
|
460
461
|
$eq?: any;
|
|
461
462
|
$ne?: any;
|
|
462
463
|
$in?: any;
|
|
463
|
-
$nin?: any;
|
|
464
464
|
$like?: any;
|
|
465
465
|
$ilike?: any;
|
|
466
466
|
$re?: any;
|
|
@@ -475,12 +475,12 @@ export declare const VendorGetPromotionsParams: z.ZodObject<{
|
|
|
475
475
|
id?: any;
|
|
476
476
|
created_at?: any;
|
|
477
477
|
updated_at?: any;
|
|
478
|
+
q?: string | undefined;
|
|
478
479
|
fields?: string | undefined;
|
|
479
480
|
code?: any;
|
|
480
481
|
offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
481
482
|
limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
482
483
|
with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
483
|
-
q?: string | undefined;
|
|
484
484
|
deleted_at?: any;
|
|
485
485
|
campaign_id?: string | string[] | undefined;
|
|
486
486
|
is_automatic?: boolean | undefined;
|
|
@@ -493,12 +493,12 @@ export declare const VendorGetPromotionsParams: z.ZodObject<{
|
|
|
493
493
|
id?: any;
|
|
494
494
|
created_at?: any;
|
|
495
495
|
updated_at?: any;
|
|
496
|
+
q?: string | undefined;
|
|
496
497
|
fields?: string | undefined;
|
|
497
498
|
code?: any;
|
|
498
499
|
offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
499
500
|
limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
500
501
|
with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
501
|
-
q?: string | undefined;
|
|
502
502
|
deleted_at?: any;
|
|
503
503
|
campaign_id?: string | string[] | undefined;
|
|
504
504
|
is_automatic?: boolean | "true" | "false" | undefined;
|
|
@@ -552,21 +552,21 @@ export declare const VendorGetPromotionsRuleValueParams: z.ZodObject<{
|
|
|
552
552
|
application_method_target_type: z.ZodOptional<z.ZodString>;
|
|
553
553
|
}, "strip", z.ZodTypeAny, {
|
|
554
554
|
order?: string | undefined;
|
|
555
|
+
q?: string | undefined;
|
|
555
556
|
fields?: string | undefined;
|
|
556
557
|
value?: string | string[] | undefined;
|
|
557
558
|
offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
558
559
|
limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
559
560
|
with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
560
|
-
q?: string | undefined;
|
|
561
561
|
application_method_target_type?: string | undefined;
|
|
562
562
|
}, {
|
|
563
563
|
order?: string | undefined;
|
|
564
|
+
q?: string | undefined;
|
|
564
565
|
fields?: string | undefined;
|
|
565
566
|
value?: string | string[] | undefined;
|
|
566
567
|
offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
567
568
|
limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
568
569
|
with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
569
|
-
q?: string | undefined;
|
|
570
570
|
application_method_target_type?: string | undefined;
|
|
571
571
|
}>;
|
|
572
572
|
export type VendorCreatePromotionRuleType = z.infer<typeof VendorCreatePromotionRule>;
|
|
@@ -650,8 +650,8 @@ export declare const VendorCreateApplicationMethod: z.ZodObject<{
|
|
|
650
650
|
apply_to_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
651
651
|
buy_rules_min_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
652
652
|
}, "strict", z.ZodTypeAny, {
|
|
653
|
-
value: number;
|
|
654
653
|
type: ApplicationMethodType;
|
|
654
|
+
value: number;
|
|
655
655
|
target_type: ApplicationMethodTargetType;
|
|
656
656
|
currency_code?: string | undefined;
|
|
657
657
|
max_quantity?: number | null | undefined;
|
|
@@ -672,8 +672,8 @@ export declare const VendorCreateApplicationMethod: z.ZodObject<{
|
|
|
672
672
|
apply_to_quantity?: number | null | undefined;
|
|
673
673
|
buy_rules_min_quantity?: number | null | undefined;
|
|
674
674
|
}, {
|
|
675
|
-
value: number;
|
|
676
675
|
type: ApplicationMethodType;
|
|
676
|
+
value: number;
|
|
677
677
|
target_type: ApplicationMethodTargetType;
|
|
678
678
|
currency_code?: string | undefined;
|
|
679
679
|
max_quantity?: number | null | undefined;
|
|
@@ -706,9 +706,9 @@ export declare const VendorUpdateApplicationMethod: z.ZodObject<{
|
|
|
706
706
|
apply_to_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
707
707
|
buy_rules_min_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
708
708
|
}, "strict", z.ZodTypeAny, {
|
|
709
|
-
value?: number | undefined;
|
|
710
709
|
type?: ApplicationMethodType | undefined;
|
|
711
710
|
currency_code?: string | undefined;
|
|
711
|
+
value?: number | undefined;
|
|
712
712
|
max_quantity?: number | null | undefined;
|
|
713
713
|
description?: string | null | undefined;
|
|
714
714
|
target_type?: ApplicationMethodTargetType | undefined;
|
|
@@ -716,9 +716,9 @@ export declare const VendorUpdateApplicationMethod: z.ZodObject<{
|
|
|
716
716
|
apply_to_quantity?: number | null | undefined;
|
|
717
717
|
buy_rules_min_quantity?: number | null | undefined;
|
|
718
718
|
}, {
|
|
719
|
-
value?: number | undefined;
|
|
720
719
|
type?: ApplicationMethodType | undefined;
|
|
721
720
|
currency_code?: string | undefined;
|
|
721
|
+
value?: number | undefined;
|
|
722
722
|
max_quantity?: number | null | undefined;
|
|
723
723
|
description?: string | null | undefined;
|
|
724
724
|
target_type?: ApplicationMethodTargetType | undefined;
|
|
@@ -745,43 +745,43 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObjec
|
|
|
745
745
|
attribute: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
746
746
|
}, "strict", z.ZodTypeAny, {
|
|
747
747
|
type: import("@medusajs/framework/utils").CampaignBudgetType;
|
|
748
|
-
limit?: number | null | undefined;
|
|
749
748
|
currency_code?: string | null | undefined;
|
|
749
|
+
limit?: number | null | undefined;
|
|
750
750
|
attribute?: string | null | undefined;
|
|
751
751
|
}, {
|
|
752
752
|
type: import("@medusajs/framework/utils").CampaignBudgetType;
|
|
753
|
-
limit?: number | null | undefined;
|
|
754
753
|
currency_code?: string | null | undefined;
|
|
754
|
+
limit?: number | null | undefined;
|
|
755
755
|
attribute?: string | null | undefined;
|
|
756
756
|
}>, {
|
|
757
757
|
type: import("@medusajs/framework/utils").CampaignBudgetType;
|
|
758
|
-
limit?: number | null | undefined;
|
|
759
758
|
currency_code?: string | null | undefined;
|
|
759
|
+
limit?: number | null | undefined;
|
|
760
760
|
attribute?: string | null | undefined;
|
|
761
761
|
}, {
|
|
762
762
|
type: import("@medusajs/framework/utils").CampaignBudgetType;
|
|
763
|
-
limit?: number | null | undefined;
|
|
764
763
|
currency_code?: string | null | undefined;
|
|
764
|
+
limit?: number | null | undefined;
|
|
765
765
|
attribute?: string | null | undefined;
|
|
766
766
|
}>, {
|
|
767
767
|
type: import("@medusajs/framework/utils").CampaignBudgetType;
|
|
768
|
-
limit?: number | null | undefined;
|
|
769
768
|
currency_code?: string | null | undefined;
|
|
769
|
+
limit?: number | null | undefined;
|
|
770
770
|
attribute?: string | null | undefined;
|
|
771
771
|
}, {
|
|
772
772
|
type: import("@medusajs/framework/utils").CampaignBudgetType;
|
|
773
|
-
limit?: number | null | undefined;
|
|
774
773
|
currency_code?: string | null | undefined;
|
|
774
|
+
limit?: number | null | undefined;
|
|
775
775
|
attribute?: string | null | undefined;
|
|
776
776
|
}>, {
|
|
777
777
|
type: import("@medusajs/framework/utils").CampaignBudgetType;
|
|
778
|
-
limit?: number | null | undefined;
|
|
779
778
|
currency_code?: string | null | undefined;
|
|
779
|
+
limit?: number | null | undefined;
|
|
780
780
|
attribute?: string | null | undefined;
|
|
781
781
|
}, {
|
|
782
782
|
type: import("@medusajs/framework/utils").CampaignBudgetType;
|
|
783
|
-
limit?: number | null | undefined;
|
|
784
783
|
currency_code?: string | null | undefined;
|
|
784
|
+
limit?: number | null | undefined;
|
|
785
785
|
attribute?: string | null | undefined;
|
|
786
786
|
}>>>;
|
|
787
787
|
starts_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
@@ -794,8 +794,8 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObjec
|
|
|
794
794
|
starts_at?: Date | null | undefined;
|
|
795
795
|
budget?: {
|
|
796
796
|
type: import("@medusajs/framework/utils").CampaignBudgetType;
|
|
797
|
-
limit?: number | null | undefined;
|
|
798
797
|
currency_code?: string | null | undefined;
|
|
798
|
+
limit?: number | null | undefined;
|
|
799
799
|
attribute?: string | null | undefined;
|
|
800
800
|
} | null | undefined;
|
|
801
801
|
}, {
|
|
@@ -806,8 +806,8 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObjec
|
|
|
806
806
|
starts_at?: Date | null | undefined;
|
|
807
807
|
budget?: {
|
|
808
808
|
type: import("@medusajs/framework/utils").CampaignBudgetType;
|
|
809
|
-
limit?: number | null | undefined;
|
|
810
809
|
currency_code?: string | null | undefined;
|
|
810
|
+
limit?: number | null | undefined;
|
|
811
811
|
attribute?: string | null | undefined;
|
|
812
812
|
} | null | undefined;
|
|
813
813
|
}>>;
|
|
@@ -855,8 +855,8 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObjec
|
|
|
855
855
|
apply_to_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
856
856
|
buy_rules_min_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
857
857
|
}, "strict", z.ZodTypeAny, {
|
|
858
|
-
value: number;
|
|
859
858
|
type: ApplicationMethodType;
|
|
859
|
+
value: number;
|
|
860
860
|
target_type: ApplicationMethodTargetType;
|
|
861
861
|
currency_code?: string | undefined;
|
|
862
862
|
max_quantity?: number | null | undefined;
|
|
@@ -877,8 +877,8 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObjec
|
|
|
877
877
|
apply_to_quantity?: number | null | undefined;
|
|
878
878
|
buy_rules_min_quantity?: number | null | undefined;
|
|
879
879
|
}, {
|
|
880
|
-
value: number;
|
|
881
880
|
type: ApplicationMethodType;
|
|
881
|
+
value: number;
|
|
882
882
|
target_type: ApplicationMethodTargetType;
|
|
883
883
|
currency_code?: string | undefined;
|
|
884
884
|
max_quantity?: number | null | undefined;
|
|
@@ -917,12 +917,12 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObjec
|
|
|
917
917
|
}>, "many">>;
|
|
918
918
|
additional_data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
919
919
|
}, "strict", z.ZodTypeAny, {
|
|
920
|
-
code: string;
|
|
921
920
|
type: PromotionType;
|
|
922
921
|
status: PromotionStatus;
|
|
922
|
+
code: string;
|
|
923
923
|
application_method: {
|
|
924
|
-
value: number;
|
|
925
924
|
type: ApplicationMethodType;
|
|
925
|
+
value: number;
|
|
926
926
|
target_type: ApplicationMethodTargetType;
|
|
927
927
|
currency_code?: string | undefined;
|
|
928
928
|
max_quantity?: number | null | undefined;
|
|
@@ -943,15 +943,6 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObjec
|
|
|
943
943
|
apply_to_quantity?: number | null | undefined;
|
|
944
944
|
buy_rules_min_quantity?: number | null | undefined;
|
|
945
945
|
};
|
|
946
|
-
limit?: number | null | undefined;
|
|
947
|
-
rules?: {
|
|
948
|
-
values: string | string[];
|
|
949
|
-
operator: PromotionRuleOperator;
|
|
950
|
-
attribute: string;
|
|
951
|
-
description?: string | null | undefined;
|
|
952
|
-
}[] | undefined;
|
|
953
|
-
campaign_id?: string | undefined;
|
|
954
|
-
additional_data?: Record<string, unknown> | null | undefined;
|
|
955
946
|
campaign?: {
|
|
956
947
|
name: string;
|
|
957
948
|
campaign_identifier: string;
|
|
@@ -960,19 +951,28 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObjec
|
|
|
960
951
|
starts_at?: Date | null | undefined;
|
|
961
952
|
budget?: {
|
|
962
953
|
type: import("@medusajs/framework/utils").CampaignBudgetType;
|
|
963
|
-
limit?: number | null | undefined;
|
|
964
954
|
currency_code?: string | null | undefined;
|
|
955
|
+
limit?: number | null | undefined;
|
|
965
956
|
attribute?: string | null | undefined;
|
|
966
957
|
} | null | undefined;
|
|
967
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
968
|
is_tax_inclusive?: boolean | undefined;
|
|
969
969
|
is_automatic?: boolean | undefined;
|
|
970
970
|
}, {
|
|
971
|
-
code: string;
|
|
972
971
|
type: PromotionType;
|
|
972
|
+
code: string;
|
|
973
973
|
application_method: {
|
|
974
|
-
value: number;
|
|
975
974
|
type: ApplicationMethodType;
|
|
975
|
+
value: number;
|
|
976
976
|
target_type: ApplicationMethodTargetType;
|
|
977
977
|
currency_code?: string | undefined;
|
|
978
978
|
max_quantity?: number | null | undefined;
|
|
@@ -993,16 +993,6 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObjec
|
|
|
993
993
|
apply_to_quantity?: number | null | undefined;
|
|
994
994
|
buy_rules_min_quantity?: number | null | undefined;
|
|
995
995
|
};
|
|
996
|
-
status?: PromotionStatus | undefined;
|
|
997
|
-
limit?: number | null | undefined;
|
|
998
|
-
rules?: {
|
|
999
|
-
values: string | string[];
|
|
1000
|
-
operator: PromotionRuleOperator;
|
|
1001
|
-
attribute: string;
|
|
1002
|
-
description?: string | null | undefined;
|
|
1003
|
-
}[] | undefined;
|
|
1004
|
-
campaign_id?: string | undefined;
|
|
1005
|
-
additional_data?: Record<string, unknown> | null | undefined;
|
|
1006
996
|
campaign?: {
|
|
1007
997
|
name: string;
|
|
1008
998
|
campaign_identifier: string;
|
|
@@ -1011,20 +1001,30 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObjec
|
|
|
1011
1001
|
starts_at?: Date | null | undefined;
|
|
1012
1002
|
budget?: {
|
|
1013
1003
|
type: import("@medusajs/framework/utils").CampaignBudgetType;
|
|
1014
|
-
limit?: number | null | undefined;
|
|
1015
1004
|
currency_code?: string | null | undefined;
|
|
1005
|
+
limit?: number | null | undefined;
|
|
1016
1006
|
attribute?: string | null | undefined;
|
|
1017
1007
|
} | null | undefined;
|
|
1018
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
1019
|
is_tax_inclusive?: boolean | undefined;
|
|
1020
1020
|
is_automatic?: boolean | undefined;
|
|
1021
1021
|
}>, {
|
|
1022
|
-
code: string;
|
|
1023
1022
|
type: PromotionType;
|
|
1024
1023
|
status: PromotionStatus;
|
|
1024
|
+
code: string;
|
|
1025
1025
|
application_method: {
|
|
1026
|
-
value: number;
|
|
1027
1026
|
type: ApplicationMethodType;
|
|
1027
|
+
value: number;
|
|
1028
1028
|
target_type: ApplicationMethodTargetType;
|
|
1029
1029
|
currency_code?: string | undefined;
|
|
1030
1030
|
max_quantity?: number | null | undefined;
|
|
@@ -1045,15 +1045,6 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObjec
|
|
|
1045
1045
|
apply_to_quantity?: number | null | undefined;
|
|
1046
1046
|
buy_rules_min_quantity?: number | null | undefined;
|
|
1047
1047
|
};
|
|
1048
|
-
limit?: number | null | undefined;
|
|
1049
|
-
rules?: {
|
|
1050
|
-
values: string | string[];
|
|
1051
|
-
operator: PromotionRuleOperator;
|
|
1052
|
-
attribute: string;
|
|
1053
|
-
description?: string | null | undefined;
|
|
1054
|
-
}[] | undefined;
|
|
1055
|
-
campaign_id?: string | undefined;
|
|
1056
|
-
additional_data?: Record<string, unknown> | null | undefined;
|
|
1057
1048
|
campaign?: {
|
|
1058
1049
|
name: string;
|
|
1059
1050
|
campaign_identifier: string;
|
|
@@ -1062,19 +1053,28 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObjec
|
|
|
1062
1053
|
starts_at?: Date | null | undefined;
|
|
1063
1054
|
budget?: {
|
|
1064
1055
|
type: import("@medusajs/framework/utils").CampaignBudgetType;
|
|
1065
|
-
limit?: number | null | undefined;
|
|
1066
1056
|
currency_code?: string | null | undefined;
|
|
1057
|
+
limit?: number | null | undefined;
|
|
1067
1058
|
attribute?: string | null | undefined;
|
|
1068
1059
|
} | null | undefined;
|
|
1069
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
1070
|
is_tax_inclusive?: boolean | undefined;
|
|
1071
1071
|
is_automatic?: boolean | undefined;
|
|
1072
1072
|
}, {
|
|
1073
|
-
code: string;
|
|
1074
1073
|
type: PromotionType;
|
|
1074
|
+
code: string;
|
|
1075
1075
|
application_method: {
|
|
1076
|
-
value: number;
|
|
1077
1076
|
type: ApplicationMethodType;
|
|
1077
|
+
value: number;
|
|
1078
1078
|
target_type: ApplicationMethodTargetType;
|
|
1079
1079
|
currency_code?: string | undefined;
|
|
1080
1080
|
max_quantity?: number | null | undefined;
|
|
@@ -1095,16 +1095,6 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObjec
|
|
|
1095
1095
|
apply_to_quantity?: number | null | undefined;
|
|
1096
1096
|
buy_rules_min_quantity?: number | null | undefined;
|
|
1097
1097
|
};
|
|
1098
|
-
status?: PromotionStatus | undefined;
|
|
1099
|
-
limit?: number | null | undefined;
|
|
1100
|
-
rules?: {
|
|
1101
|
-
values: string | string[];
|
|
1102
|
-
operator: PromotionRuleOperator;
|
|
1103
|
-
attribute: string;
|
|
1104
|
-
description?: string | null | undefined;
|
|
1105
|
-
}[] | undefined;
|
|
1106
|
-
campaign_id?: string | undefined;
|
|
1107
|
-
additional_data?: Record<string, unknown> | null | undefined;
|
|
1108
1098
|
campaign?: {
|
|
1109
1099
|
name: string;
|
|
1110
1100
|
campaign_identifier: string;
|
|
@@ -1113,20 +1103,30 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObjec
|
|
|
1113
1103
|
starts_at?: Date | null | undefined;
|
|
1114
1104
|
budget?: {
|
|
1115
1105
|
type: import("@medusajs/framework/utils").CampaignBudgetType;
|
|
1116
|
-
limit?: number | null | undefined;
|
|
1117
1106
|
currency_code?: string | null | undefined;
|
|
1107
|
+
limit?: number | null | undefined;
|
|
1118
1108
|
attribute?: string | null | undefined;
|
|
1119
1109
|
} | null | undefined;
|
|
1120
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
1121
|
is_tax_inclusive?: boolean | undefined;
|
|
1122
1122
|
is_automatic?: boolean | undefined;
|
|
1123
1123
|
}>, {
|
|
1124
|
-
code: string;
|
|
1125
1124
|
type: PromotionType;
|
|
1126
1125
|
status: PromotionStatus;
|
|
1126
|
+
code: string;
|
|
1127
1127
|
application_method: {
|
|
1128
|
-
value: number;
|
|
1129
1128
|
type: ApplicationMethodType;
|
|
1129
|
+
value: number;
|
|
1130
1130
|
target_type: ApplicationMethodTargetType;
|
|
1131
1131
|
currency_code?: string | undefined;
|
|
1132
1132
|
max_quantity?: number | null | undefined;
|
|
@@ -1147,15 +1147,6 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObjec
|
|
|
1147
1147
|
apply_to_quantity?: number | null | undefined;
|
|
1148
1148
|
buy_rules_min_quantity?: number | null | undefined;
|
|
1149
1149
|
};
|
|
1150
|
-
limit?: number | null | undefined;
|
|
1151
|
-
rules?: {
|
|
1152
|
-
values: string | string[];
|
|
1153
|
-
operator: PromotionRuleOperator;
|
|
1154
|
-
attribute: string;
|
|
1155
|
-
description?: string | null | undefined;
|
|
1156
|
-
}[] | undefined;
|
|
1157
|
-
campaign_id?: string | undefined;
|
|
1158
|
-
additional_data?: Record<string, unknown> | null | undefined;
|
|
1159
1150
|
campaign?: {
|
|
1160
1151
|
name: string;
|
|
1161
1152
|
campaign_identifier: string;
|
|
@@ -1164,19 +1155,28 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObjec
|
|
|
1164
1155
|
starts_at?: Date | null | undefined;
|
|
1165
1156
|
budget?: {
|
|
1166
1157
|
type: import("@medusajs/framework/utils").CampaignBudgetType;
|
|
1167
|
-
limit?: number | null | undefined;
|
|
1168
1158
|
currency_code?: string | null | undefined;
|
|
1159
|
+
limit?: number | null | undefined;
|
|
1169
1160
|
attribute?: string | null | undefined;
|
|
1170
1161
|
} | null | undefined;
|
|
1171
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
1172
|
is_tax_inclusive?: boolean | undefined;
|
|
1173
1173
|
is_automatic?: boolean | undefined;
|
|
1174
1174
|
}, {
|
|
1175
|
-
code: string;
|
|
1176
1175
|
type: PromotionType;
|
|
1176
|
+
code: string;
|
|
1177
1177
|
application_method: {
|
|
1178
|
-
value: number;
|
|
1179
1178
|
type: ApplicationMethodType;
|
|
1179
|
+
value: number;
|
|
1180
1180
|
target_type: ApplicationMethodTargetType;
|
|
1181
1181
|
currency_code?: string | undefined;
|
|
1182
1182
|
max_quantity?: number | null | undefined;
|
|
@@ -1197,16 +1197,6 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObjec
|
|
|
1197
1197
|
apply_to_quantity?: number | null | undefined;
|
|
1198
1198
|
buy_rules_min_quantity?: number | null | undefined;
|
|
1199
1199
|
};
|
|
1200
|
-
status?: PromotionStatus | undefined;
|
|
1201
|
-
limit?: number | null | undefined;
|
|
1202
|
-
rules?: {
|
|
1203
|
-
values: string | string[];
|
|
1204
|
-
operator: PromotionRuleOperator;
|
|
1205
|
-
attribute: string;
|
|
1206
|
-
description?: string | null | undefined;
|
|
1207
|
-
}[] | undefined;
|
|
1208
|
-
campaign_id?: string | undefined;
|
|
1209
|
-
additional_data?: Record<string, unknown> | null | undefined;
|
|
1210
1200
|
campaign?: {
|
|
1211
1201
|
name: string;
|
|
1212
1202
|
campaign_identifier: string;
|
|
@@ -1215,11 +1205,21 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObjec
|
|
|
1215
1205
|
starts_at?: Date | null | undefined;
|
|
1216
1206
|
budget?: {
|
|
1217
1207
|
type: import("@medusajs/framework/utils").CampaignBudgetType;
|
|
1218
|
-
limit?: number | null | undefined;
|
|
1219
1208
|
currency_code?: string | null | undefined;
|
|
1209
|
+
limit?: number | null | undefined;
|
|
1220
1210
|
attribute?: string | null | undefined;
|
|
1221
1211
|
} | null | undefined;
|
|
1222
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
1223
|
is_tax_inclusive?: boolean | undefined;
|
|
1224
1224
|
is_automatic?: boolean | undefined;
|
|
1225
1225
|
}>;
|
|
@@ -1243,9 +1243,9 @@ export declare const VendorUpdatePromotion: z.ZodEffects<z.ZodObject<{
|
|
|
1243
1243
|
apply_to_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1244
1244
|
buy_rules_min_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1245
1245
|
}, "strict", z.ZodTypeAny, {
|
|
1246
|
-
value?: number | undefined;
|
|
1247
1246
|
type?: ApplicationMethodType | undefined;
|
|
1248
1247
|
currency_code?: string | undefined;
|
|
1248
|
+
value?: number | undefined;
|
|
1249
1249
|
max_quantity?: number | null | undefined;
|
|
1250
1250
|
description?: string | null | undefined;
|
|
1251
1251
|
target_type?: ApplicationMethodTargetType | undefined;
|
|
@@ -1253,9 +1253,9 @@ export declare const VendorUpdatePromotion: z.ZodEffects<z.ZodObject<{
|
|
|
1253
1253
|
apply_to_quantity?: number | null | undefined;
|
|
1254
1254
|
buy_rules_min_quantity?: number | null | undefined;
|
|
1255
1255
|
}, {
|
|
1256
|
-
value?: number | undefined;
|
|
1257
1256
|
type?: ApplicationMethodType | undefined;
|
|
1258
1257
|
currency_code?: string | undefined;
|
|
1258
|
+
value?: number | undefined;
|
|
1259
1259
|
max_quantity?: number | null | undefined;
|
|
1260
1260
|
description?: string | null | undefined;
|
|
1261
1261
|
target_type?: ApplicationMethodTargetType | undefined;
|
|
@@ -1265,18 +1265,18 @@ export declare const VendorUpdatePromotion: z.ZodEffects<z.ZodObject<{
|
|
|
1265
1265
|
}>>;
|
|
1266
1266
|
additional_data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1267
1267
|
}, "strict", z.ZodTypeAny, {
|
|
1268
|
-
code?: string | undefined;
|
|
1269
1268
|
type?: PromotionType | undefined;
|
|
1270
1269
|
status?: PromotionStatus | undefined;
|
|
1270
|
+
code?: string | undefined;
|
|
1271
1271
|
limit?: number | null | undefined;
|
|
1272
1272
|
campaign_id?: string | null | undefined;
|
|
1273
1273
|
additional_data?: Record<string, unknown> | null | undefined;
|
|
1274
1274
|
is_tax_inclusive?: boolean | undefined;
|
|
1275
1275
|
is_automatic?: boolean | undefined;
|
|
1276
1276
|
application_method?: {
|
|
1277
|
-
value?: number | undefined;
|
|
1278
1277
|
type?: ApplicationMethodType | undefined;
|
|
1279
1278
|
currency_code?: string | undefined;
|
|
1279
|
+
value?: number | undefined;
|
|
1280
1280
|
max_quantity?: number | null | undefined;
|
|
1281
1281
|
description?: string | null | undefined;
|
|
1282
1282
|
target_type?: ApplicationMethodTargetType | undefined;
|
|
@@ -1285,18 +1285,18 @@ export declare const VendorUpdatePromotion: z.ZodEffects<z.ZodObject<{
|
|
|
1285
1285
|
buy_rules_min_quantity?: number | null | undefined;
|
|
1286
1286
|
} | undefined;
|
|
1287
1287
|
}, {
|
|
1288
|
-
code?: string | undefined;
|
|
1289
1288
|
type?: PromotionType | undefined;
|
|
1290
1289
|
status?: PromotionStatus | undefined;
|
|
1290
|
+
code?: string | undefined;
|
|
1291
1291
|
limit?: number | null | undefined;
|
|
1292
1292
|
campaign_id?: string | null | undefined;
|
|
1293
1293
|
additional_data?: Record<string, unknown> | null | undefined;
|
|
1294
1294
|
is_tax_inclusive?: boolean | undefined;
|
|
1295
1295
|
is_automatic?: boolean | undefined;
|
|
1296
1296
|
application_method?: {
|
|
1297
|
-
value?: number | undefined;
|
|
1298
1297
|
type?: ApplicationMethodType | undefined;
|
|
1299
1298
|
currency_code?: string | undefined;
|
|
1299
|
+
value?: number | undefined;
|
|
1300
1300
|
max_quantity?: number | null | undefined;
|
|
1301
1301
|
description?: string | null | undefined;
|
|
1302
1302
|
target_type?: ApplicationMethodTargetType | undefined;
|
|
@@ -1305,18 +1305,18 @@ export declare const VendorUpdatePromotion: z.ZodEffects<z.ZodObject<{
|
|
|
1305
1305
|
buy_rules_min_quantity?: number | null | undefined;
|
|
1306
1306
|
} | undefined;
|
|
1307
1307
|
}>, {
|
|
1308
|
-
code?: string | undefined;
|
|
1309
1308
|
type?: PromotionType | undefined;
|
|
1310
1309
|
status?: PromotionStatus | undefined;
|
|
1310
|
+
code?: string | undefined;
|
|
1311
1311
|
limit?: number | null | undefined;
|
|
1312
1312
|
campaign_id?: string | null | undefined;
|
|
1313
1313
|
additional_data?: Record<string, unknown> | null | undefined;
|
|
1314
1314
|
is_tax_inclusive?: boolean | undefined;
|
|
1315
1315
|
is_automatic?: boolean | undefined;
|
|
1316
1316
|
application_method?: {
|
|
1317
|
-
value?: number | undefined;
|
|
1318
1317
|
type?: ApplicationMethodType | undefined;
|
|
1319
1318
|
currency_code?: string | undefined;
|
|
1319
|
+
value?: number | undefined;
|
|
1320
1320
|
max_quantity?: number | null | undefined;
|
|
1321
1321
|
description?: string | null | undefined;
|
|
1322
1322
|
target_type?: ApplicationMethodTargetType | undefined;
|
|
@@ -1325,18 +1325,18 @@ export declare const VendorUpdatePromotion: z.ZodEffects<z.ZodObject<{
|
|
|
1325
1325
|
buy_rules_min_quantity?: number | null | undefined;
|
|
1326
1326
|
} | undefined;
|
|
1327
1327
|
}, {
|
|
1328
|
-
code?: string | undefined;
|
|
1329
1328
|
type?: PromotionType | undefined;
|
|
1330
1329
|
status?: PromotionStatus | undefined;
|
|
1330
|
+
code?: string | undefined;
|
|
1331
1331
|
limit?: number | null | undefined;
|
|
1332
1332
|
campaign_id?: string | null | undefined;
|
|
1333
1333
|
additional_data?: Record<string, unknown> | null | undefined;
|
|
1334
1334
|
is_tax_inclusive?: boolean | undefined;
|
|
1335
1335
|
is_automatic?: boolean | undefined;
|
|
1336
1336
|
application_method?: {
|
|
1337
|
-
value?: number | undefined;
|
|
1338
1337
|
type?: ApplicationMethodType | undefined;
|
|
1339
1338
|
currency_code?: string | undefined;
|
|
1339
|
+
value?: number | undefined;
|
|
1340
1340
|
max_quantity?: number | null | undefined;
|
|
1341
1341
|
description?: string | null | undefined;
|
|
1342
1342
|
target_type?: ApplicationMethodTargetType | undefined;
|