@mercurjs/core 2.2.0 → 2.2.1-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.
- package/.medusa/server/src/api/admin/middlewares.js +17 -15
- package/.medusa/server/src/api/admin/promotions/[id]/[rule_type]/route.d.ts +2 -0
- package/.medusa/server/src/api/admin/promotions/[id]/[rule_type]/route.js +107 -0
- package/.medusa/server/src/api/admin/promotions/[id]/cost/route.d.ts +3 -0
- package/.medusa/server/src/api/admin/promotions/[id]/cost/route.js +19 -0
- package/.medusa/server/src/api/admin/promotions/[id]/cost/validators.d.ts +12 -0
- package/.medusa/server/src/api/admin/promotions/[id]/cost/validators.js +9 -0
- package/.medusa/server/src/api/admin/promotions/helpers.d.ts +2 -0
- package/.medusa/server/src/api/admin/promotions/helpers.js +35 -0
- package/.medusa/server/src/api/admin/promotions/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/admin/promotions/middlewares.js +58 -0
- package/.medusa/server/src/api/admin/promotions/rule-attribute-options/[rule_type]/route.d.ts +3 -0
- package/.medusa/server/src/api/admin/promotions/rule-attribute-options/[rule_type]/route.js +20 -0
- package/.medusa/server/src/api/admin/promotions/rule-value-options/[rule_type]/[rule_attribute_id]/route.d.ts +3 -0
- package/.medusa/server/src/api/admin/promotions/rule-value-options/[rule_type]/[rule_attribute_id]/route.js +49 -0
- package/.medusa/server/src/api/admin/promotions/utils/index.d.ts +5 -0
- package/.medusa/server/src/api/admin/promotions/utils/index.js +22 -0
- package/.medusa/server/src/api/admin/promotions/utils/operators-map.d.ts +18 -0
- package/.medusa/server/src/api/admin/promotions/utils/operators-map.js +22 -0
- package/.medusa/server/src/api/admin/promotions/utils/rule-attributes-map.d.ts +11 -0
- package/.medusa/server/src/api/admin/promotions/utils/rule-attributes-map.js +163 -0
- package/.medusa/server/src/api/admin/promotions/utils/rule-query-configuration.d.ts +5 -0
- package/.medusa/server/src/api/admin/promotions/utils/rule-query-configuration.js +66 -0
- package/.medusa/server/src/api/admin/promotions/utils/validate-rule-attribute.d.ts +8 -0
- package/.medusa/server/src/api/admin/promotions/utils/validate-rule-attribute.js +18 -0
- package/.medusa/server/src/api/admin/promotions/utils/validate-rule-type.d.ts +1 -0
- package/.medusa/server/src/api/admin/promotions/utils/validate-rule-type.js +12 -0
- package/.medusa/server/src/api/store/carts/[id]/line-items/route.js +2 -1
- package/.medusa/server/src/api/store/offers/middlewares.js +13 -2
- package/.medusa/server/src/api/store/order-groups/query-config.js +29 -8
- package/.medusa/server/src/api/store/products/middlewares.js +30 -1
- package/.medusa/server/src/api/store/products/validators.d.ts +8 -2
- package/.medusa/server/src/api/store/products/validators.js +5 -2
- package/.medusa/server/src/api/vendor/promotions/query-config.js +3 -1
- package/.medusa/server/src/api/vendor/promotions/rule-value-options/[rule_type]/[rule_attribute_id]/route.js +19 -9
- package/.medusa/server/src/api/vendor/promotions/utils/rule-attributes-map.js +4 -4
- package/.medusa/server/src/api/vendor/promotions/utils/rule-query-configuration.d.ts +1 -0
- package/.medusa/server/src/api/vendor/promotions/utils/rule-query-configuration.js +10 -1
- package/.medusa/server/src/api/vendor/promotions/validators.d.ts +292 -25
- package/.medusa/server/src/api/vendor/promotions/validators.js +26 -7
- package/.medusa/server/src/links/promotion-cost-link.d.ts +2 -0
- package/.medusa/server/src/links/promotion-cost-link.js +18 -0
- package/.medusa/server/src/modules/payout/services/payout-module-service.js +9 -2
- package/.medusa/server/src/modules/promotion-cost/index.d.ts +21 -0
- package/.medusa/server/src/modules/promotion-cost/index.js +12 -0
- package/.medusa/server/src/modules/promotion-cost/migrations/Migration20260722120000.d.ts +5 -0
- package/.medusa/server/src/modules/promotion-cost/migrations/Migration20260722120000.js +16 -0
- package/.medusa/server/src/modules/promotion-cost/models/index.d.ts +1 -0
- package/.medusa/server/src/modules/promotion-cost/models/index.js +9 -0
- package/.medusa/server/src/modules/promotion-cost/models/promotion-cost.d.ts +8 -0
- package/.medusa/server/src/modules/promotion-cost/models/promotion-cost.js +21 -0
- package/.medusa/server/src/modules/promotion-cost/service.d.ts +24 -0
- package/.medusa/server/src/modules/promotion-cost/service.js +38 -0
- package/.medusa/server/src/utils/disable-medusa-middlewares.js +2 -1
- package/.medusa/server/src/workflows/cart/steps/prepare-adjustments-from-promotion-actions.js +3 -3
- package/.medusa/server/src/workflows/cart/utils/fields.js +2 -1
- package/.medusa/server/src/workflows/cart/workflows/complete-cart-with-split-orders.js +10 -2
- package/.medusa/server/src/workflows/cart/workflows/list-seller-shipping-options-for-cart.js +3 -1
- package/.medusa/server/src/workflows/index.d.ts +1 -0
- package/.medusa/server/src/workflows/index.js +2 -1
- package/.medusa/server/src/workflows/offer/workflows/create-offers.js +47 -1
- package/.medusa/server/src/workflows/product-attribute/workflows/create-and-link-product-attributes.js +12 -2
- package/.medusa/server/src/workflows/product-attribute/workflows/remove-product-attributes-from-product.d.ts +2 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/remove-product-attributes-from-product.js +11 -6
- package/.medusa/server/src/workflows/product-attribute/workflows/upsert-product-attribute-values.js +54 -3
- package/.medusa/server/src/workflows/promotion/workflows/create-seller-promotions.js +11 -3
- package/.medusa/server/src/workflows/promotion-cost/index.d.ts +2 -0
- package/.medusa/server/src/workflows/promotion-cost/index.js +19 -0
- package/.medusa/server/src/workflows/promotion-cost/steps/index.d.ts +1 -0
- package/.medusa/server/src/workflows/promotion-cost/steps/index.js +18 -0
- package/.medusa/server/src/workflows/promotion-cost/steps/upsert-promotion-costs.d.ts +12 -0
- package/.medusa/server/src/workflows/promotion-cost/steps/upsert-promotion-costs.js +40 -0
- package/.medusa/server/src/workflows/promotion-cost/workflows/index.d.ts +1 -0
- package/.medusa/server/src/workflows/promotion-cost/workflows/index.js +18 -0
- package/.medusa/server/src/workflows/promotion-cost/workflows/upsert-promotion-costs.d.ts +12 -0
- package/.medusa/server/src/workflows/promotion-cost/workflows/upsert-promotion-costs.js +10 -0
- package/package.json +4 -4
|
@@ -91,11 +91,15 @@ export declare const VendorGetPromotionsParamsFields: z.ZodObject<{
|
|
|
91
91
|
$lte?: any;
|
|
92
92
|
}>]>]>>;
|
|
93
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">>;
|
|
94
95
|
application_method: z.ZodOptional<z.ZodObject<{
|
|
95
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">]>>;
|
|
96
98
|
}, "strip", z.ZodTypeAny, {
|
|
99
|
+
type?: string | string[] | undefined;
|
|
97
100
|
currency_code?: string | string[] | undefined;
|
|
98
101
|
}, {
|
|
102
|
+
type?: string | string[] | undefined;
|
|
99
103
|
currency_code?: string | string[] | undefined;
|
|
100
104
|
}>>;
|
|
101
105
|
created_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
@@ -226,7 +230,9 @@ export declare const VendorGetPromotionsParamsFields: z.ZodObject<{
|
|
|
226
230
|
q?: string | undefined;
|
|
227
231
|
deleted_at?: any;
|
|
228
232
|
campaign_id?: string | string[] | undefined;
|
|
233
|
+
is_automatic?: boolean | undefined;
|
|
229
234
|
application_method?: {
|
|
235
|
+
type?: string | string[] | undefined;
|
|
230
236
|
currency_code?: string | string[] | undefined;
|
|
231
237
|
} | undefined;
|
|
232
238
|
}, {
|
|
@@ -237,7 +243,9 @@ export declare const VendorGetPromotionsParamsFields: z.ZodObject<{
|
|
|
237
243
|
q?: string | undefined;
|
|
238
244
|
deleted_at?: any;
|
|
239
245
|
campaign_id?: string | string[] | undefined;
|
|
246
|
+
is_automatic?: boolean | "true" | "false" | undefined;
|
|
240
247
|
application_method?: {
|
|
248
|
+
type?: string | string[] | undefined;
|
|
241
249
|
currency_code?: string | string[] | undefined;
|
|
242
250
|
} | undefined;
|
|
243
251
|
}>;
|
|
@@ -331,11 +339,15 @@ export declare const VendorGetPromotionsParams: z.ZodObject<{
|
|
|
331
339
|
$lte?: any;
|
|
332
340
|
}>]>]>>;
|
|
333
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">>;
|
|
334
343
|
application_method: z.ZodOptional<z.ZodObject<{
|
|
335
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">]>>;
|
|
336
346
|
}, "strip", z.ZodTypeAny, {
|
|
347
|
+
type?: string | string[] | undefined;
|
|
337
348
|
currency_code?: string | string[] | undefined;
|
|
338
349
|
}, {
|
|
350
|
+
type?: string | string[] | undefined;
|
|
339
351
|
currency_code?: string | string[] | undefined;
|
|
340
352
|
}>>;
|
|
341
353
|
created_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
@@ -471,7 +483,9 @@ export declare const VendorGetPromotionsParams: z.ZodObject<{
|
|
|
471
483
|
q?: string | undefined;
|
|
472
484
|
deleted_at?: any;
|
|
473
485
|
campaign_id?: string | string[] | undefined;
|
|
486
|
+
is_automatic?: boolean | undefined;
|
|
474
487
|
application_method?: {
|
|
488
|
+
type?: string | string[] | undefined;
|
|
475
489
|
currency_code?: string | string[] | undefined;
|
|
476
490
|
} | undefined;
|
|
477
491
|
}, {
|
|
@@ -487,7 +501,9 @@ export declare const VendorGetPromotionsParams: z.ZodObject<{
|
|
|
487
501
|
q?: string | undefined;
|
|
488
502
|
deleted_at?: any;
|
|
489
503
|
campaign_id?: string | string[] | undefined;
|
|
504
|
+
is_automatic?: boolean | "true" | "false" | undefined;
|
|
490
505
|
application_method?: {
|
|
506
|
+
type?: string | string[] | undefined;
|
|
491
507
|
currency_code?: string | string[] | undefined;
|
|
492
508
|
} | undefined;
|
|
493
509
|
}>;
|
|
@@ -497,13 +513,13 @@ export declare const VendorGetPromotionRuleParams: z.ZodObject<{
|
|
|
497
513
|
application_method_type: z.ZodOptional<z.ZodString>;
|
|
498
514
|
application_method_target_type: z.ZodOptional<z.ZodString>;
|
|
499
515
|
}, "strip", z.ZodTypeAny, {
|
|
516
|
+
application_method_target_type?: string | undefined;
|
|
500
517
|
promotion_type?: string | undefined;
|
|
501
518
|
application_method_type?: string | undefined;
|
|
502
|
-
application_method_target_type?: string | undefined;
|
|
503
519
|
}, {
|
|
520
|
+
application_method_target_type?: string | undefined;
|
|
504
521
|
promotion_type?: string | undefined;
|
|
505
522
|
application_method_type?: string | undefined;
|
|
506
|
-
application_method_target_type?: string | undefined;
|
|
507
523
|
}>;
|
|
508
524
|
export type VendorGetPromotionRuleTypeParamsType = z.infer<typeof VendorGetPromotionRuleTypeParams>;
|
|
509
525
|
export declare const VendorGetPromotionRuleTypeParams: z.ZodObject<{
|
|
@@ -514,14 +530,14 @@ export declare const VendorGetPromotionRuleTypeParams: z.ZodObject<{
|
|
|
514
530
|
application_method_target_type: z.ZodOptional<z.ZodString>;
|
|
515
531
|
}, "strip", z.ZodTypeAny, {
|
|
516
532
|
fields?: string | undefined;
|
|
533
|
+
application_method_target_type?: string | undefined;
|
|
517
534
|
promotion_type?: string | undefined;
|
|
518
535
|
application_method_type?: string | undefined;
|
|
519
|
-
application_method_target_type?: string | undefined;
|
|
520
536
|
}, {
|
|
521
537
|
fields?: string | undefined;
|
|
538
|
+
application_method_target_type?: string | undefined;
|
|
522
539
|
promotion_type?: string | undefined;
|
|
523
540
|
application_method_type?: string | undefined;
|
|
524
|
-
application_method_target_type?: string | undefined;
|
|
525
541
|
}>;
|
|
526
542
|
export type VendorGetPromotionsRuleValueParamsType = z.infer<typeof VendorGetPromotionsRuleValueParams>;
|
|
527
543
|
export declare const VendorGetPromotionsRuleValueParams: z.ZodObject<{
|
|
@@ -598,7 +614,7 @@ export declare const VendorCreateApplicationMethod: z.ZodObject<{
|
|
|
598
614
|
max_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
599
615
|
type: z.ZodNativeEnum<typeof ApplicationMethodType>;
|
|
600
616
|
target_type: z.ZodNativeEnum<typeof ApplicationMethodTargetType>;
|
|
601
|
-
allocation: z.ZodOptional<z.ZodEnum<["each", "across"]>>;
|
|
617
|
+
allocation: z.ZodOptional<z.ZodEnum<["each", "across", "once"]>>;
|
|
602
618
|
target_rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
603
619
|
operator: z.ZodNativeEnum<typeof PromotionRuleOperator>;
|
|
604
620
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -640,7 +656,7 @@ export declare const VendorCreateApplicationMethod: z.ZodObject<{
|
|
|
640
656
|
currency_code?: string | undefined;
|
|
641
657
|
max_quantity?: number | null | undefined;
|
|
642
658
|
description?: string | null | undefined;
|
|
643
|
-
allocation?: "each" | "across" | undefined;
|
|
659
|
+
allocation?: "each" | "across" | "once" | undefined;
|
|
644
660
|
target_rules?: {
|
|
645
661
|
values: string | string[];
|
|
646
662
|
attribute: string;
|
|
@@ -662,7 +678,7 @@ export declare const VendorCreateApplicationMethod: z.ZodObject<{
|
|
|
662
678
|
currency_code?: string | undefined;
|
|
663
679
|
max_quantity?: number | null | undefined;
|
|
664
680
|
description?: string | null | undefined;
|
|
665
|
-
allocation?: "each" | "across" | undefined;
|
|
681
|
+
allocation?: "each" | "across" | "once" | undefined;
|
|
666
682
|
target_rules?: {
|
|
667
683
|
values: string | string[];
|
|
668
684
|
attribute: string;
|
|
@@ -686,7 +702,7 @@ export declare const VendorUpdateApplicationMethod: z.ZodObject<{
|
|
|
686
702
|
currency_code: z.ZodOptional<z.ZodString>;
|
|
687
703
|
type: z.ZodOptional<z.ZodNativeEnum<typeof ApplicationMethodType>>;
|
|
688
704
|
target_type: z.ZodOptional<z.ZodNativeEnum<typeof ApplicationMethodTargetType>>;
|
|
689
|
-
allocation: z.ZodOptional<z.ZodEnum<["each", "across"]>>;
|
|
705
|
+
allocation: z.ZodOptional<z.ZodEnum<["each", "across", "once"]>>;
|
|
690
706
|
apply_to_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
691
707
|
buy_rules_min_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
692
708
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -696,7 +712,7 @@ export declare const VendorUpdateApplicationMethod: z.ZodObject<{
|
|
|
696
712
|
max_quantity?: number | null | undefined;
|
|
697
713
|
description?: string | null | undefined;
|
|
698
714
|
target_type?: ApplicationMethodTargetType | undefined;
|
|
699
|
-
allocation?: "each" | "across" | undefined;
|
|
715
|
+
allocation?: "each" | "across" | "once" | undefined;
|
|
700
716
|
apply_to_quantity?: number | null | undefined;
|
|
701
717
|
buy_rules_min_quantity?: number | null | undefined;
|
|
702
718
|
}, {
|
|
@@ -706,18 +722,96 @@ export declare const VendorUpdateApplicationMethod: z.ZodObject<{
|
|
|
706
722
|
max_quantity?: number | null | undefined;
|
|
707
723
|
description?: string | null | undefined;
|
|
708
724
|
target_type?: ApplicationMethodTargetType | undefined;
|
|
709
|
-
allocation?: "each" | "across" | undefined;
|
|
725
|
+
allocation?: "each" | "across" | "once" | undefined;
|
|
710
726
|
apply_to_quantity?: number | null | undefined;
|
|
711
727
|
buy_rules_min_quantity?: number | null | undefined;
|
|
712
728
|
}>;
|
|
713
729
|
export type VendorCreatePromotionType = z.infer<typeof VendorCreatePromotion>;
|
|
714
|
-
export declare const VendorCreatePromotion: z.ZodEffects<z.ZodObject<{
|
|
730
|
+
export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
715
731
|
code: z.ZodString;
|
|
716
732
|
is_automatic: z.ZodOptional<z.ZodBoolean>;
|
|
717
733
|
type: z.ZodNativeEnum<typeof PromotionType>;
|
|
718
734
|
is_tax_inclusive: z.ZodOptional<z.ZodBoolean>;
|
|
719
735
|
status: z.ZodDefault<z.ZodNativeEnum<typeof PromotionStatus>>;
|
|
720
736
|
campaign_id: z.ZodOptional<z.ZodString>;
|
|
737
|
+
campaign: z.ZodOptional<z.ZodObject<{
|
|
738
|
+
name: z.ZodString;
|
|
739
|
+
campaign_identifier: z.ZodString;
|
|
740
|
+
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>;
|
|
743
|
+
limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
744
|
+
currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
745
|
+
attribute: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
746
|
+
}, "strict", z.ZodTypeAny, {
|
|
747
|
+
type: import("@medusajs/framework/utils").CampaignBudgetType;
|
|
748
|
+
limit?: number | null | undefined;
|
|
749
|
+
currency_code?: string | null | undefined;
|
|
750
|
+
attribute?: string | null | undefined;
|
|
751
|
+
}, {
|
|
752
|
+
type: import("@medusajs/framework/utils").CampaignBudgetType;
|
|
753
|
+
limit?: number | null | undefined;
|
|
754
|
+
currency_code?: string | null | undefined;
|
|
755
|
+
attribute?: string | null | undefined;
|
|
756
|
+
}>, {
|
|
757
|
+
type: import("@medusajs/framework/utils").CampaignBudgetType;
|
|
758
|
+
limit?: number | null | undefined;
|
|
759
|
+
currency_code?: string | null | undefined;
|
|
760
|
+
attribute?: string | null | undefined;
|
|
761
|
+
}, {
|
|
762
|
+
type: import("@medusajs/framework/utils").CampaignBudgetType;
|
|
763
|
+
limit?: number | null | undefined;
|
|
764
|
+
currency_code?: string | null | undefined;
|
|
765
|
+
attribute?: string | null | undefined;
|
|
766
|
+
}>, {
|
|
767
|
+
type: import("@medusajs/framework/utils").CampaignBudgetType;
|
|
768
|
+
limit?: number | null | undefined;
|
|
769
|
+
currency_code?: string | null | undefined;
|
|
770
|
+
attribute?: string | null | undefined;
|
|
771
|
+
}, {
|
|
772
|
+
type: import("@medusajs/framework/utils").CampaignBudgetType;
|
|
773
|
+
limit?: number | null | undefined;
|
|
774
|
+
currency_code?: string | null | undefined;
|
|
775
|
+
attribute?: string | null | undefined;
|
|
776
|
+
}>, {
|
|
777
|
+
type: import("@medusajs/framework/utils").CampaignBudgetType;
|
|
778
|
+
limit?: number | null | undefined;
|
|
779
|
+
currency_code?: string | null | undefined;
|
|
780
|
+
attribute?: string | null | undefined;
|
|
781
|
+
}, {
|
|
782
|
+
type: import("@medusajs/framework/utils").CampaignBudgetType;
|
|
783
|
+
limit?: number | null | undefined;
|
|
784
|
+
currency_code?: string | 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
|
+
starts_at?: Date | null | undefined;
|
|
794
|
+
ends_at?: Date | null | undefined;
|
|
795
|
+
budget?: {
|
|
796
|
+
type: import("@medusajs/framework/utils").CampaignBudgetType;
|
|
797
|
+
limit?: number | null | undefined;
|
|
798
|
+
currency_code?: string | null | undefined;
|
|
799
|
+
attribute?: string | null | undefined;
|
|
800
|
+
} | null | undefined;
|
|
801
|
+
}, {
|
|
802
|
+
name: string;
|
|
803
|
+
campaign_identifier: string;
|
|
804
|
+
description?: string | null | undefined;
|
|
805
|
+
starts_at?: Date | null | undefined;
|
|
806
|
+
ends_at?: Date | null | undefined;
|
|
807
|
+
budget?: {
|
|
808
|
+
type: import("@medusajs/framework/utils").CampaignBudgetType;
|
|
809
|
+
limit?: number | null | undefined;
|
|
810
|
+
currency_code?: string | null | undefined;
|
|
811
|
+
attribute?: string | null | undefined;
|
|
812
|
+
} | null | undefined;
|
|
813
|
+
}>>;
|
|
814
|
+
limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
721
815
|
application_method: z.ZodObject<{
|
|
722
816
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
723
817
|
value: z.ZodNumber;
|
|
@@ -725,7 +819,7 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodObject<{
|
|
|
725
819
|
max_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
726
820
|
type: z.ZodNativeEnum<typeof ApplicationMethodType>;
|
|
727
821
|
target_type: z.ZodNativeEnum<typeof ApplicationMethodTargetType>;
|
|
728
|
-
allocation: z.ZodOptional<z.ZodEnum<["each", "across"]>>;
|
|
822
|
+
allocation: z.ZodOptional<z.ZodEnum<["each", "across", "once"]>>;
|
|
729
823
|
target_rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
730
824
|
operator: z.ZodNativeEnum<typeof PromotionRuleOperator>;
|
|
731
825
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -767,7 +861,7 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodObject<{
|
|
|
767
861
|
currency_code?: string | undefined;
|
|
768
862
|
max_quantity?: number | null | undefined;
|
|
769
863
|
description?: string | null | undefined;
|
|
770
|
-
allocation?: "each" | "across" | undefined;
|
|
864
|
+
allocation?: "each" | "across" | "once" | undefined;
|
|
771
865
|
target_rules?: {
|
|
772
866
|
values: string | string[];
|
|
773
867
|
attribute: string;
|
|
@@ -789,7 +883,7 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodObject<{
|
|
|
789
883
|
currency_code?: string | undefined;
|
|
790
884
|
max_quantity?: number | null | undefined;
|
|
791
885
|
description?: string | null | undefined;
|
|
792
|
-
allocation?: "each" | "across" | undefined;
|
|
886
|
+
allocation?: "each" | "across" | "once" | undefined;
|
|
793
887
|
target_rules?: {
|
|
794
888
|
values: string | string[];
|
|
795
889
|
attribute: string;
|
|
@@ -821,6 +915,7 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodObject<{
|
|
|
821
915
|
operator: PromotionRuleOperator;
|
|
822
916
|
description?: string | null | undefined;
|
|
823
917
|
}>, "many">>;
|
|
918
|
+
additional_data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
824
919
|
}, "strict", z.ZodTypeAny, {
|
|
825
920
|
code: string;
|
|
826
921
|
type: PromotionType;
|
|
@@ -832,7 +927,7 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodObject<{
|
|
|
832
927
|
currency_code?: string | undefined;
|
|
833
928
|
max_quantity?: number | null | undefined;
|
|
834
929
|
description?: string | null | undefined;
|
|
835
|
-
allocation?: "each" | "across" | undefined;
|
|
930
|
+
allocation?: "each" | "across" | "once" | undefined;
|
|
836
931
|
target_rules?: {
|
|
837
932
|
values: string | string[];
|
|
838
933
|
attribute: string;
|
|
@@ -848,15 +943,30 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodObject<{
|
|
|
848
943
|
apply_to_quantity?: number | null | undefined;
|
|
849
944
|
buy_rules_min_quantity?: number | null | undefined;
|
|
850
945
|
};
|
|
946
|
+
limit?: number | null | undefined;
|
|
851
947
|
rules?: {
|
|
852
948
|
values: string | string[];
|
|
853
949
|
attribute: string;
|
|
854
950
|
operator: PromotionRuleOperator;
|
|
855
951
|
description?: string | null | undefined;
|
|
856
952
|
}[] | undefined;
|
|
953
|
+
additional_data?: Record<string, unknown> | null | undefined;
|
|
857
954
|
campaign_id?: string | undefined;
|
|
858
955
|
is_tax_inclusive?: boolean | undefined;
|
|
859
956
|
is_automatic?: boolean | undefined;
|
|
957
|
+
campaign?: {
|
|
958
|
+
name: string;
|
|
959
|
+
campaign_identifier: string;
|
|
960
|
+
description?: string | null | undefined;
|
|
961
|
+
starts_at?: Date | null | undefined;
|
|
962
|
+
ends_at?: Date | null | undefined;
|
|
963
|
+
budget?: {
|
|
964
|
+
type: import("@medusajs/framework/utils").CampaignBudgetType;
|
|
965
|
+
limit?: number | null | undefined;
|
|
966
|
+
currency_code?: string | null | undefined;
|
|
967
|
+
attribute?: string | null | undefined;
|
|
968
|
+
} | null | undefined;
|
|
969
|
+
} | undefined;
|
|
860
970
|
}, {
|
|
861
971
|
code: string;
|
|
862
972
|
type: PromotionType;
|
|
@@ -867,7 +977,7 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodObject<{
|
|
|
867
977
|
currency_code?: string | undefined;
|
|
868
978
|
max_quantity?: number | null | undefined;
|
|
869
979
|
description?: string | null | undefined;
|
|
870
|
-
allocation?: "each" | "across" | undefined;
|
|
980
|
+
allocation?: "each" | "across" | "once" | undefined;
|
|
871
981
|
target_rules?: {
|
|
872
982
|
values: string | string[];
|
|
873
983
|
attribute: string;
|
|
@@ -884,15 +994,30 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodObject<{
|
|
|
884
994
|
buy_rules_min_quantity?: number | null | undefined;
|
|
885
995
|
};
|
|
886
996
|
status?: PromotionStatus | undefined;
|
|
997
|
+
limit?: number | null | undefined;
|
|
887
998
|
rules?: {
|
|
888
999
|
values: string | string[];
|
|
889
1000
|
attribute: string;
|
|
890
1001
|
operator: PromotionRuleOperator;
|
|
891
1002
|
description?: string | null | undefined;
|
|
892
1003
|
}[] | undefined;
|
|
1004
|
+
additional_data?: Record<string, unknown> | null | undefined;
|
|
893
1005
|
campaign_id?: string | undefined;
|
|
894
1006
|
is_tax_inclusive?: boolean | undefined;
|
|
895
1007
|
is_automatic?: boolean | undefined;
|
|
1008
|
+
campaign?: {
|
|
1009
|
+
name: string;
|
|
1010
|
+
campaign_identifier: string;
|
|
1011
|
+
description?: string | null | undefined;
|
|
1012
|
+
starts_at?: Date | null | undefined;
|
|
1013
|
+
ends_at?: Date | null | undefined;
|
|
1014
|
+
budget?: {
|
|
1015
|
+
type: import("@medusajs/framework/utils").CampaignBudgetType;
|
|
1016
|
+
limit?: number | null | undefined;
|
|
1017
|
+
currency_code?: string | null | undefined;
|
|
1018
|
+
attribute?: string | null | undefined;
|
|
1019
|
+
} | null | undefined;
|
|
1020
|
+
} | undefined;
|
|
896
1021
|
}>, {
|
|
897
1022
|
code: string;
|
|
898
1023
|
type: PromotionType;
|
|
@@ -904,7 +1029,7 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodObject<{
|
|
|
904
1029
|
currency_code?: string | undefined;
|
|
905
1030
|
max_quantity?: number | null | undefined;
|
|
906
1031
|
description?: string | null | undefined;
|
|
907
|
-
allocation?: "each" | "across" | undefined;
|
|
1032
|
+
allocation?: "each" | "across" | "once" | undefined;
|
|
908
1033
|
target_rules?: {
|
|
909
1034
|
values: string | string[];
|
|
910
1035
|
attribute: string;
|
|
@@ -920,15 +1045,30 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodObject<{
|
|
|
920
1045
|
apply_to_quantity?: number | null | undefined;
|
|
921
1046
|
buy_rules_min_quantity?: number | null | undefined;
|
|
922
1047
|
};
|
|
1048
|
+
limit?: number | null | undefined;
|
|
923
1049
|
rules?: {
|
|
924
1050
|
values: string | string[];
|
|
925
1051
|
attribute: string;
|
|
926
1052
|
operator: PromotionRuleOperator;
|
|
927
1053
|
description?: string | null | undefined;
|
|
928
1054
|
}[] | undefined;
|
|
1055
|
+
additional_data?: Record<string, unknown> | null | undefined;
|
|
929
1056
|
campaign_id?: string | undefined;
|
|
930
1057
|
is_tax_inclusive?: boolean | undefined;
|
|
931
1058
|
is_automatic?: boolean | undefined;
|
|
1059
|
+
campaign?: {
|
|
1060
|
+
name: string;
|
|
1061
|
+
campaign_identifier: string;
|
|
1062
|
+
description?: string | null | undefined;
|
|
1063
|
+
starts_at?: Date | null | undefined;
|
|
1064
|
+
ends_at?: Date | null | undefined;
|
|
1065
|
+
budget?: {
|
|
1066
|
+
type: import("@medusajs/framework/utils").CampaignBudgetType;
|
|
1067
|
+
limit?: number | null | undefined;
|
|
1068
|
+
currency_code?: string | null | undefined;
|
|
1069
|
+
attribute?: string | null | undefined;
|
|
1070
|
+
} | null | undefined;
|
|
1071
|
+
} | undefined;
|
|
932
1072
|
}, {
|
|
933
1073
|
code: string;
|
|
934
1074
|
type: PromotionType;
|
|
@@ -939,7 +1079,7 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodObject<{
|
|
|
939
1079
|
currency_code?: string | undefined;
|
|
940
1080
|
max_quantity?: number | null | undefined;
|
|
941
1081
|
description?: string | null | undefined;
|
|
942
|
-
allocation?: "each" | "across" | undefined;
|
|
1082
|
+
allocation?: "each" | "across" | "once" | undefined;
|
|
943
1083
|
target_rules?: {
|
|
944
1084
|
values: string | string[];
|
|
945
1085
|
attribute: string;
|
|
@@ -956,15 +1096,132 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodObject<{
|
|
|
956
1096
|
buy_rules_min_quantity?: number | null | undefined;
|
|
957
1097
|
};
|
|
958
1098
|
status?: PromotionStatus | undefined;
|
|
1099
|
+
limit?: number | null | undefined;
|
|
959
1100
|
rules?: {
|
|
960
1101
|
values: string | string[];
|
|
961
1102
|
attribute: string;
|
|
962
1103
|
operator: PromotionRuleOperator;
|
|
963
1104
|
description?: string | null | undefined;
|
|
964
1105
|
}[] | undefined;
|
|
1106
|
+
additional_data?: Record<string, unknown> | null | undefined;
|
|
965
1107
|
campaign_id?: string | undefined;
|
|
966
1108
|
is_tax_inclusive?: boolean | undefined;
|
|
967
1109
|
is_automatic?: boolean | undefined;
|
|
1110
|
+
campaign?: {
|
|
1111
|
+
name: string;
|
|
1112
|
+
campaign_identifier: string;
|
|
1113
|
+
description?: string | null | undefined;
|
|
1114
|
+
starts_at?: Date | null | undefined;
|
|
1115
|
+
ends_at?: Date | null | undefined;
|
|
1116
|
+
budget?: {
|
|
1117
|
+
type: import("@medusajs/framework/utils").CampaignBudgetType;
|
|
1118
|
+
limit?: number | null | undefined;
|
|
1119
|
+
currency_code?: string | null | undefined;
|
|
1120
|
+
attribute?: string | null | undefined;
|
|
1121
|
+
} | null | undefined;
|
|
1122
|
+
} | undefined;
|
|
1123
|
+
}>, {
|
|
1124
|
+
code: string;
|
|
1125
|
+
type: PromotionType;
|
|
1126
|
+
status: PromotionStatus;
|
|
1127
|
+
application_method: {
|
|
1128
|
+
value: number;
|
|
1129
|
+
type: ApplicationMethodType;
|
|
1130
|
+
target_type: ApplicationMethodTargetType;
|
|
1131
|
+
currency_code?: string | undefined;
|
|
1132
|
+
max_quantity?: number | null | undefined;
|
|
1133
|
+
description?: string | null | undefined;
|
|
1134
|
+
allocation?: "each" | "across" | "once" | undefined;
|
|
1135
|
+
target_rules?: {
|
|
1136
|
+
values: string | string[];
|
|
1137
|
+
attribute: string;
|
|
1138
|
+
operator: PromotionRuleOperator;
|
|
1139
|
+
description?: string | null | undefined;
|
|
1140
|
+
}[] | undefined;
|
|
1141
|
+
buy_rules?: {
|
|
1142
|
+
values: string | string[];
|
|
1143
|
+
attribute: string;
|
|
1144
|
+
operator: PromotionRuleOperator;
|
|
1145
|
+
description?: string | null | undefined;
|
|
1146
|
+
}[] | undefined;
|
|
1147
|
+
apply_to_quantity?: number | null | undefined;
|
|
1148
|
+
buy_rules_min_quantity?: number | null | undefined;
|
|
1149
|
+
};
|
|
1150
|
+
limit?: number | null | undefined;
|
|
1151
|
+
rules?: {
|
|
1152
|
+
values: string | string[];
|
|
1153
|
+
attribute: string;
|
|
1154
|
+
operator: PromotionRuleOperator;
|
|
1155
|
+
description?: string | null | undefined;
|
|
1156
|
+
}[] | undefined;
|
|
1157
|
+
additional_data?: Record<string, unknown> | null | undefined;
|
|
1158
|
+
campaign_id?: string | undefined;
|
|
1159
|
+
is_tax_inclusive?: boolean | undefined;
|
|
1160
|
+
is_automatic?: boolean | undefined;
|
|
1161
|
+
campaign?: {
|
|
1162
|
+
name: string;
|
|
1163
|
+
campaign_identifier: string;
|
|
1164
|
+
description?: string | null | undefined;
|
|
1165
|
+
starts_at?: Date | null | undefined;
|
|
1166
|
+
ends_at?: Date | null | undefined;
|
|
1167
|
+
budget?: {
|
|
1168
|
+
type: import("@medusajs/framework/utils").CampaignBudgetType;
|
|
1169
|
+
limit?: number | null | undefined;
|
|
1170
|
+
currency_code?: string | null | undefined;
|
|
1171
|
+
attribute?: string | null | undefined;
|
|
1172
|
+
} | null | undefined;
|
|
1173
|
+
} | undefined;
|
|
1174
|
+
}, {
|
|
1175
|
+
code: string;
|
|
1176
|
+
type: PromotionType;
|
|
1177
|
+
application_method: {
|
|
1178
|
+
value: number;
|
|
1179
|
+
type: ApplicationMethodType;
|
|
1180
|
+
target_type: ApplicationMethodTargetType;
|
|
1181
|
+
currency_code?: string | undefined;
|
|
1182
|
+
max_quantity?: number | null | undefined;
|
|
1183
|
+
description?: string | null | undefined;
|
|
1184
|
+
allocation?: "each" | "across" | "once" | undefined;
|
|
1185
|
+
target_rules?: {
|
|
1186
|
+
values: string | string[];
|
|
1187
|
+
attribute: string;
|
|
1188
|
+
operator: PromotionRuleOperator;
|
|
1189
|
+
description?: string | null | undefined;
|
|
1190
|
+
}[] | undefined;
|
|
1191
|
+
buy_rules?: {
|
|
1192
|
+
values: string | string[];
|
|
1193
|
+
attribute: string;
|
|
1194
|
+
operator: PromotionRuleOperator;
|
|
1195
|
+
description?: string | null | undefined;
|
|
1196
|
+
}[] | undefined;
|
|
1197
|
+
apply_to_quantity?: number | null | undefined;
|
|
1198
|
+
buy_rules_min_quantity?: number | null | undefined;
|
|
1199
|
+
};
|
|
1200
|
+
status?: PromotionStatus | undefined;
|
|
1201
|
+
limit?: number | null | undefined;
|
|
1202
|
+
rules?: {
|
|
1203
|
+
values: string | string[];
|
|
1204
|
+
attribute: string;
|
|
1205
|
+
operator: PromotionRuleOperator;
|
|
1206
|
+
description?: string | null | undefined;
|
|
1207
|
+
}[] | undefined;
|
|
1208
|
+
additional_data?: Record<string, unknown> | null | undefined;
|
|
1209
|
+
campaign_id?: string | undefined;
|
|
1210
|
+
is_tax_inclusive?: boolean | undefined;
|
|
1211
|
+
is_automatic?: boolean | undefined;
|
|
1212
|
+
campaign?: {
|
|
1213
|
+
name: string;
|
|
1214
|
+
campaign_identifier: string;
|
|
1215
|
+
description?: string | null | undefined;
|
|
1216
|
+
starts_at?: Date | null | undefined;
|
|
1217
|
+
ends_at?: Date | null | undefined;
|
|
1218
|
+
budget?: {
|
|
1219
|
+
type: import("@medusajs/framework/utils").CampaignBudgetType;
|
|
1220
|
+
limit?: number | null | undefined;
|
|
1221
|
+
currency_code?: string | null | undefined;
|
|
1222
|
+
attribute?: string | null | undefined;
|
|
1223
|
+
} | null | undefined;
|
|
1224
|
+
} | undefined;
|
|
968
1225
|
}>;
|
|
969
1226
|
export type VendorUpdatePromotionType = z.infer<typeof VendorUpdatePromotion>;
|
|
970
1227
|
export declare const VendorUpdatePromotion: z.ZodEffects<z.ZodObject<{
|
|
@@ -974,6 +1231,7 @@ export declare const VendorUpdatePromotion: z.ZodEffects<z.ZodObject<{
|
|
|
974
1231
|
type: z.ZodOptional<z.ZodNativeEnum<typeof PromotionType>>;
|
|
975
1232
|
status: z.ZodOptional<z.ZodNativeEnum<typeof PromotionStatus>>;
|
|
976
1233
|
campaign_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1234
|
+
limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
977
1235
|
application_method: z.ZodOptional<z.ZodObject<{
|
|
978
1236
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
979
1237
|
value: z.ZodOptional<z.ZodNumber>;
|
|
@@ -981,7 +1239,7 @@ export declare const VendorUpdatePromotion: z.ZodEffects<z.ZodObject<{
|
|
|
981
1239
|
currency_code: z.ZodOptional<z.ZodString>;
|
|
982
1240
|
type: z.ZodOptional<z.ZodNativeEnum<typeof ApplicationMethodType>>;
|
|
983
1241
|
target_type: z.ZodOptional<z.ZodNativeEnum<typeof ApplicationMethodTargetType>>;
|
|
984
|
-
allocation: z.ZodOptional<z.ZodEnum<["each", "across"]>>;
|
|
1242
|
+
allocation: z.ZodOptional<z.ZodEnum<["each", "across", "once"]>>;
|
|
985
1243
|
apply_to_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
986
1244
|
buy_rules_min_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
987
1245
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -991,7 +1249,7 @@ export declare const VendorUpdatePromotion: z.ZodEffects<z.ZodObject<{
|
|
|
991
1249
|
max_quantity?: number | null | undefined;
|
|
992
1250
|
description?: string | null | undefined;
|
|
993
1251
|
target_type?: ApplicationMethodTargetType | undefined;
|
|
994
|
-
allocation?: "each" | "across" | undefined;
|
|
1252
|
+
allocation?: "each" | "across" | "once" | undefined;
|
|
995
1253
|
apply_to_quantity?: number | null | undefined;
|
|
996
1254
|
buy_rules_min_quantity?: number | null | undefined;
|
|
997
1255
|
}, {
|
|
@@ -1001,14 +1259,17 @@ export declare const VendorUpdatePromotion: z.ZodEffects<z.ZodObject<{
|
|
|
1001
1259
|
max_quantity?: number | null | undefined;
|
|
1002
1260
|
description?: string | null | undefined;
|
|
1003
1261
|
target_type?: ApplicationMethodTargetType | undefined;
|
|
1004
|
-
allocation?: "each" | "across" | undefined;
|
|
1262
|
+
allocation?: "each" | "across" | "once" | undefined;
|
|
1005
1263
|
apply_to_quantity?: number | null | undefined;
|
|
1006
1264
|
buy_rules_min_quantity?: number | null | undefined;
|
|
1007
1265
|
}>>;
|
|
1266
|
+
additional_data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1008
1267
|
}, "strict", z.ZodTypeAny, {
|
|
1009
1268
|
code?: string | undefined;
|
|
1010
1269
|
type?: PromotionType | undefined;
|
|
1011
1270
|
status?: PromotionStatus | undefined;
|
|
1271
|
+
limit?: number | null | undefined;
|
|
1272
|
+
additional_data?: Record<string, unknown> | null | undefined;
|
|
1012
1273
|
campaign_id?: string | null | undefined;
|
|
1013
1274
|
is_tax_inclusive?: boolean | undefined;
|
|
1014
1275
|
is_automatic?: boolean | undefined;
|
|
@@ -1019,7 +1280,7 @@ export declare const VendorUpdatePromotion: z.ZodEffects<z.ZodObject<{
|
|
|
1019
1280
|
max_quantity?: number | null | undefined;
|
|
1020
1281
|
description?: string | null | undefined;
|
|
1021
1282
|
target_type?: ApplicationMethodTargetType | undefined;
|
|
1022
|
-
allocation?: "each" | "across" | undefined;
|
|
1283
|
+
allocation?: "each" | "across" | "once" | undefined;
|
|
1023
1284
|
apply_to_quantity?: number | null | undefined;
|
|
1024
1285
|
buy_rules_min_quantity?: number | null | undefined;
|
|
1025
1286
|
} | undefined;
|
|
@@ -1027,6 +1288,8 @@ export declare const VendorUpdatePromotion: z.ZodEffects<z.ZodObject<{
|
|
|
1027
1288
|
code?: string | undefined;
|
|
1028
1289
|
type?: PromotionType | undefined;
|
|
1029
1290
|
status?: PromotionStatus | undefined;
|
|
1291
|
+
limit?: number | null | undefined;
|
|
1292
|
+
additional_data?: Record<string, unknown> | null | undefined;
|
|
1030
1293
|
campaign_id?: string | null | undefined;
|
|
1031
1294
|
is_tax_inclusive?: boolean | undefined;
|
|
1032
1295
|
is_automatic?: boolean | undefined;
|
|
@@ -1037,7 +1300,7 @@ export declare const VendorUpdatePromotion: z.ZodEffects<z.ZodObject<{
|
|
|
1037
1300
|
max_quantity?: number | null | undefined;
|
|
1038
1301
|
description?: string | null | undefined;
|
|
1039
1302
|
target_type?: ApplicationMethodTargetType | undefined;
|
|
1040
|
-
allocation?: "each" | "across" | undefined;
|
|
1303
|
+
allocation?: "each" | "across" | "once" | undefined;
|
|
1041
1304
|
apply_to_quantity?: number | null | undefined;
|
|
1042
1305
|
buy_rules_min_quantity?: number | null | undefined;
|
|
1043
1306
|
} | undefined;
|
|
@@ -1045,6 +1308,8 @@ export declare const VendorUpdatePromotion: z.ZodEffects<z.ZodObject<{
|
|
|
1045
1308
|
code?: string | undefined;
|
|
1046
1309
|
type?: PromotionType | undefined;
|
|
1047
1310
|
status?: PromotionStatus | undefined;
|
|
1311
|
+
limit?: number | null | undefined;
|
|
1312
|
+
additional_data?: Record<string, unknown> | null | undefined;
|
|
1048
1313
|
campaign_id?: string | null | undefined;
|
|
1049
1314
|
is_tax_inclusive?: boolean | undefined;
|
|
1050
1315
|
is_automatic?: boolean | undefined;
|
|
@@ -1055,7 +1320,7 @@ export declare const VendorUpdatePromotion: z.ZodEffects<z.ZodObject<{
|
|
|
1055
1320
|
max_quantity?: number | null | undefined;
|
|
1056
1321
|
description?: string | null | undefined;
|
|
1057
1322
|
target_type?: ApplicationMethodTargetType | undefined;
|
|
1058
|
-
allocation?: "each" | "across" | undefined;
|
|
1323
|
+
allocation?: "each" | "across" | "once" | undefined;
|
|
1059
1324
|
apply_to_quantity?: number | null | undefined;
|
|
1060
1325
|
buy_rules_min_quantity?: number | null | undefined;
|
|
1061
1326
|
} | undefined;
|
|
@@ -1063,6 +1328,8 @@ export declare const VendorUpdatePromotion: z.ZodEffects<z.ZodObject<{
|
|
|
1063
1328
|
code?: string | undefined;
|
|
1064
1329
|
type?: PromotionType | undefined;
|
|
1065
1330
|
status?: PromotionStatus | undefined;
|
|
1331
|
+
limit?: number | null | undefined;
|
|
1332
|
+
additional_data?: Record<string, unknown> | null | undefined;
|
|
1066
1333
|
campaign_id?: string | null | undefined;
|
|
1067
1334
|
is_tax_inclusive?: boolean | undefined;
|
|
1068
1335
|
is_automatic?: boolean | undefined;
|
|
@@ -1073,7 +1340,7 @@ export declare const VendorUpdatePromotion: z.ZodEffects<z.ZodObject<{
|
|
|
1073
1340
|
max_quantity?: number | null | undefined;
|
|
1074
1341
|
description?: string | null | undefined;
|
|
1075
1342
|
target_type?: ApplicationMethodTargetType | undefined;
|
|
1076
|
-
allocation?: "each" | "across" | undefined;
|
|
1343
|
+
allocation?: "each" | "across" | "once" | undefined;
|
|
1077
1344
|
apply_to_quantity?: number | null | undefined;
|
|
1078
1345
|
buy_rules_min_quantity?: number | null | undefined;
|
|
1079
1346
|
} | undefined;
|