@mercurjs/core 2.2.1 → 2.3.0-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 (116) hide show
  1. package/.medusa/server/src/api/admin/campaigns/helpers.d.ts +2 -0
  2. package/.medusa/server/src/api/admin/campaigns/helpers.js +152 -0
  3. package/.medusa/server/src/api/admin/campaigns/middlewares.d.ts +2 -0
  4. package/.medusa/server/src/api/admin/campaigns/middlewares.js +42 -0
  5. package/.medusa/server/src/api/admin/inventory-items/middlewares.d.ts +2 -0
  6. package/.medusa/server/src/api/admin/inventory-items/middlewares.js +46 -0
  7. package/.medusa/server/src/api/admin/middlewares.js +25 -15
  8. package/.medusa/server/src/api/admin/price-lists/middlewares.d.ts +2 -0
  9. package/.medusa/server/src/api/admin/price-lists/middlewares.js +57 -0
  10. package/.medusa/server/src/api/admin/reservations/middlewares.d.ts +2 -0
  11. package/.medusa/server/src/api/admin/reservations/middlewares.js +76 -0
  12. package/.medusa/server/src/api/admin/reservations/query-config.d.ts +9 -0
  13. package/.medusa/server/src/api/admin/reservations/query-config.js +48 -0
  14. package/.medusa/server/src/api/admin/reservations/validators.d.ts +123 -0
  15. package/.medusa/server/src/api/admin/reservations/validators.js +12 -0
  16. package/.medusa/server/src/api/admin/reviews/[id]/respond/route.d.ts +4 -0
  17. package/.medusa/server/src/api/admin/reviews/[id]/respond/route.js +22 -0
  18. package/.medusa/server/src/api/admin/reviews/[id]/route.d.ts +6 -0
  19. package/.medusa/server/src/api/admin/reviews/[id]/route.js +47 -0
  20. package/.medusa/server/src/api/admin/reviews/middlewares.d.ts +2 -0
  21. package/.medusa/server/src/api/admin/reviews/middlewares.js +60 -0
  22. package/.medusa/server/src/api/admin/reviews/query-config.d.ts +11 -0
  23. package/.medusa/server/src/api/admin/reviews/query-config.js +35 -0
  24. package/.medusa/server/src/api/admin/reviews/route.d.ts +3 -0
  25. package/.medusa/server/src/api/admin/reviews/route.js +20 -0
  26. package/.medusa/server/src/api/admin/reviews/validators.d.ts +62 -0
  27. package/.medusa/server/src/api/admin/reviews/validators.js +35 -0
  28. package/.medusa/server/src/api/store/middlewares.js +3 -1
  29. package/.medusa/server/src/api/store/reviews/[id]/route.d.ts +6 -0
  30. package/.medusa/server/src/api/store/reviews/[id]/route.js +53 -0
  31. package/.medusa/server/src/api/store/reviews/helpers.d.ts +2 -0
  32. package/.medusa/server/src/api/store/reviews/helpers.js +24 -0
  33. package/.medusa/server/src/api/store/reviews/middlewares.d.ts +2 -0
  34. package/.medusa/server/src/api/store/reviews/middlewares.js +48 -0
  35. package/.medusa/server/src/api/store/reviews/query-config.d.ts +11 -0
  36. package/.medusa/server/src/api/store/reviews/query-config.js +27 -0
  37. package/.medusa/server/src/api/store/reviews/route.d.ts +5 -0
  38. package/.medusa/server/src/api/store/reviews/route.js +47 -0
  39. package/.medusa/server/src/api/store/reviews/validators.d.ts +52 -0
  40. package/.medusa/server/src/api/store/reviews/validators.js +21 -0
  41. package/.medusa/server/src/api/vendor/campaigns/helpers.d.ts +9 -0
  42. package/.medusa/server/src/api/vendor/campaigns/helpers.js +68 -2
  43. package/.medusa/server/src/api/vendor/campaigns/middlewares.js +3 -1
  44. package/.medusa/server/src/api/vendor/campaigns/route.js +3 -1
  45. package/.medusa/server/src/api/vendor/campaigns/validators.d.ts +18 -6
  46. package/.medusa/server/src/api/vendor/campaigns/validators.js +3 -1
  47. package/.medusa/server/src/api/vendor/middlewares.js +23 -21
  48. package/.medusa/server/src/api/vendor/orders/validators.d.ts +2 -2
  49. package/.medusa/server/src/api/vendor/price-lists/validators.d.ts +93 -6
  50. package/.medusa/server/src/api/vendor/price-lists/validators.js +4 -1
  51. package/.medusa/server/src/api/vendor/promotions/validators.d.ts +88 -88
  52. package/.medusa/server/src/api/vendor/reservations/middlewares.js +119 -2
  53. package/.medusa/server/src/api/vendor/reservations/query-config.js +6 -1
  54. package/.medusa/server/src/api/vendor/reservations/validators.d.ts +3 -0
  55. package/.medusa/server/src/api/vendor/reservations/validators.js +4 -1
  56. package/.medusa/server/src/api/vendor/reviews/[id]/route.d.ts +5 -0
  57. package/.medusa/server/src/api/vendor/reviews/[id]/route.js +39 -0
  58. package/.medusa/server/src/api/vendor/reviews/helpers.d.ts +2 -0
  59. package/.medusa/server/src/api/vendor/reviews/helpers.js +24 -0
  60. package/.medusa/server/src/api/vendor/reviews/middlewares.d.ts +2 -0
  61. package/.medusa/server/src/api/vendor/reviews/middlewares.js +45 -0
  62. package/.medusa/server/src/api/vendor/reviews/query-config.d.ts +11 -0
  63. package/.medusa/server/src/api/vendor/reviews/query-config.js +32 -0
  64. package/.medusa/server/src/api/vendor/reviews/route.d.ts +3 -0
  65. package/.medusa/server/src/api/vendor/reviews/route.js +21 -0
  66. package/.medusa/server/src/api/vendor/reviews/validators.d.ts +48 -0
  67. package/.medusa/server/src/api/vendor/reviews/validators.js +31 -0
  68. package/.medusa/server/src/api/vendor/sellers/validators.d.ts +12 -12
  69. package/.medusa/server/src/api/vendor/shipping-options/validators.d.ts +70 -70
  70. package/.medusa/server/src/links/customer-review.d.ts +2 -0
  71. package/.medusa/server/src/links/customer-review.js +13 -0
  72. package/.medusa/server/src/links/order-review.d.ts +2 -0
  73. package/.medusa/server/src/links/order-review.js +13 -0
  74. package/.medusa/server/src/links/product-review.d.ts +2 -0
  75. package/.medusa/server/src/links/product-review.js +13 -0
  76. package/.medusa/server/src/links/seller-review.d.ts +2 -0
  77. package/.medusa/server/src/links/seller-review.js +13 -0
  78. package/.medusa/server/src/modules/review/index.d.ts +21 -0
  79. package/.medusa/server/src/modules/review/index.js +12 -0
  80. package/.medusa/server/src/modules/review/migrations/Migration20260729120000.d.ts +5 -0
  81. package/.medusa/server/src/modules/review/migrations/Migration20260729120000.js +16 -0
  82. package/.medusa/server/src/modules/review/models/index.d.ts +1 -0
  83. package/.medusa/server/src/modules/review/models/index.js +9 -0
  84. package/.medusa/server/src/modules/review/models/review.d.ts +10 -0
  85. package/.medusa/server/src/modules/review/models/review.js +14 -0
  86. package/.medusa/server/src/modules/review/service.d.ts +19 -0
  87. package/.medusa/server/src/modules/review/service.js +71 -0
  88. package/.medusa/server/src/utils/disable-medusa-middlewares.js +5 -1
  89. package/.medusa/server/src/workflows/index.d.ts +2 -0
  90. package/.medusa/server/src/workflows/index.js +3 -1
  91. package/.medusa/server/src/workflows/offer/workflows/create-offers.js +11 -9
  92. package/.medusa/server/src/workflows/review/index.d.ts +2 -0
  93. package/.medusa/server/src/workflows/review/index.js +19 -0
  94. package/.medusa/server/src/workflows/review/steps/create-review.d.ts +13 -0
  95. package/.medusa/server/src/workflows/review/steps/create-review.js +41 -0
  96. package/.medusa/server/src/workflows/review/steps/delete-review.d.ts +1 -0
  97. package/.medusa/server/src/workflows/review/steps/delete-review.js +17 -0
  98. package/.medusa/server/src/workflows/review/steps/index.d.ts +5 -0
  99. package/.medusa/server/src/workflows/review/steps/index.js +22 -0
  100. package/.medusa/server/src/workflows/review/steps/respond-review.d.ts +13 -0
  101. package/.medusa/server/src/workflows/review/steps/respond-review.js +28 -0
  102. package/.medusa/server/src/workflows/review/steps/update-review.d.ts +13 -0
  103. package/.medusa/server/src/workflows/review/steps/update-review.js +24 -0
  104. package/.medusa/server/src/workflows/review/steps/validate-review.d.ts +2 -0
  105. package/.medusa/server/src/workflows/review/steps/validate-review.js +36 -0
  106. package/.medusa/server/src/workflows/review/workflows/create-review.d.ts +13 -0
  107. package/.medusa/server/src/workflows/review/workflows/create-review.js +40 -0
  108. package/.medusa/server/src/workflows/review/workflows/delete-review.d.ts +1 -0
  109. package/.medusa/server/src/workflows/review/workflows/delete-review.js +12 -0
  110. package/.medusa/server/src/workflows/review/workflows/index.d.ts +4 -0
  111. package/.medusa/server/src/workflows/review/workflows/index.js +21 -0
  112. package/.medusa/server/src/workflows/review/workflows/respond-review.d.ts +13 -0
  113. package/.medusa/server/src/workflows/review/workflows/respond-review.js +12 -0
  114. package/.medusa/server/src/workflows/review/workflows/update-review.d.ts +13 -0
  115. package/.medusa/server/src/workflows/review/workflows/update-review.js +12 -0
  116. package/package.json +6 -6
@@ -577,13 +577,13 @@ export declare const VendorCreatePromotionRule: z.ZodObject<{
577
577
  values: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
578
578
  }, "strict", z.ZodTypeAny, {
579
579
  values: string | string[];
580
- attribute: string;
581
580
  operator: PromotionRuleOperator;
581
+ attribute: string;
582
582
  description?: string | null | undefined;
583
583
  }, {
584
584
  values: string | string[];
585
- attribute: string;
586
585
  operator: PromotionRuleOperator;
586
+ attribute: string;
587
587
  description?: string | null | undefined;
588
588
  }>;
589
589
  export type VendorUpdatePromotionRuleType = z.infer<typeof VendorUpdatePromotionRule>;
@@ -597,14 +597,14 @@ export declare const VendorUpdatePromotionRule: z.ZodObject<{
597
597
  values: string | string[];
598
598
  id: string;
599
599
  description?: string | null | undefined;
600
- attribute?: string | undefined;
601
600
  operator?: PromotionRuleOperator | undefined;
601
+ attribute?: string | undefined;
602
602
  }, {
603
603
  values: string | string[];
604
604
  id: string;
605
605
  description?: string | null | undefined;
606
- attribute?: string | undefined;
607
606
  operator?: PromotionRuleOperator | undefined;
607
+ attribute?: string | undefined;
608
608
  }>;
609
609
  export type VendorCreateApplicationMethodType = z.infer<typeof VendorCreateApplicationMethod>;
610
610
  export declare const VendorCreateApplicationMethod: z.ZodObject<{
@@ -622,13 +622,13 @@ export declare const VendorCreateApplicationMethod: z.ZodObject<{
622
622
  values: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
623
623
  }, "strict", z.ZodTypeAny, {
624
624
  values: string | string[];
625
- attribute: string;
626
625
  operator: PromotionRuleOperator;
626
+ attribute: string;
627
627
  description?: string | null | undefined;
628
628
  }, {
629
629
  values: string | string[];
630
- attribute: string;
631
630
  operator: PromotionRuleOperator;
631
+ attribute: string;
632
632
  description?: string | null | undefined;
633
633
  }>, "many">>;
634
634
  buy_rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -638,13 +638,13 @@ export declare const VendorCreateApplicationMethod: z.ZodObject<{
638
638
  values: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
639
639
  }, "strict", z.ZodTypeAny, {
640
640
  values: string | string[];
641
- attribute: string;
642
641
  operator: PromotionRuleOperator;
642
+ attribute: string;
643
643
  description?: string | null | undefined;
644
644
  }, {
645
645
  values: string | string[];
646
- attribute: string;
647
646
  operator: PromotionRuleOperator;
647
+ attribute: string;
648
648
  description?: string | null | undefined;
649
649
  }>, "many">>;
650
650
  apply_to_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -656,17 +656,17 @@ export declare const VendorCreateApplicationMethod: z.ZodObject<{
656
656
  currency_code?: string | undefined;
657
657
  max_quantity?: number | null | undefined;
658
658
  description?: string | null | undefined;
659
- allocation?: "each" | "across" | "once" | undefined;
659
+ allocation?: "once" | "each" | "across" | undefined;
660
660
  target_rules?: {
661
661
  values: string | string[];
662
- attribute: string;
663
662
  operator: PromotionRuleOperator;
663
+ attribute: string;
664
664
  description?: string | null | undefined;
665
665
  }[] | undefined;
666
666
  buy_rules?: {
667
667
  values: string | string[];
668
- attribute: string;
669
668
  operator: PromotionRuleOperator;
669
+ attribute: string;
670
670
  description?: string | null | undefined;
671
671
  }[] | undefined;
672
672
  apply_to_quantity?: number | null | undefined;
@@ -678,17 +678,17 @@ export declare const VendorCreateApplicationMethod: z.ZodObject<{
678
678
  currency_code?: string | undefined;
679
679
  max_quantity?: number | null | undefined;
680
680
  description?: string | null | undefined;
681
- allocation?: "each" | "across" | "once" | undefined;
681
+ allocation?: "once" | "each" | "across" | undefined;
682
682
  target_rules?: {
683
683
  values: string | string[];
684
- attribute: string;
685
684
  operator: PromotionRuleOperator;
685
+ attribute: string;
686
686
  description?: string | null | undefined;
687
687
  }[] | undefined;
688
688
  buy_rules?: {
689
689
  values: string | string[];
690
- attribute: string;
691
690
  operator: PromotionRuleOperator;
691
+ attribute: string;
692
692
  description?: string | null | undefined;
693
693
  }[] | undefined;
694
694
  apply_to_quantity?: number | null | undefined;
@@ -712,7 +712,7 @@ export declare const VendorUpdateApplicationMethod: z.ZodObject<{
712
712
  max_quantity?: number | null | undefined;
713
713
  description?: string | null | undefined;
714
714
  target_type?: ApplicationMethodTargetType | undefined;
715
- allocation?: "each" | "across" | "once" | undefined;
715
+ allocation?: "once" | "each" | "across" | undefined;
716
716
  apply_to_quantity?: number | null | undefined;
717
717
  buy_rules_min_quantity?: number | null | undefined;
718
718
  }, {
@@ -722,7 +722,7 @@ export declare const VendorUpdateApplicationMethod: z.ZodObject<{
722
722
  max_quantity?: number | null | undefined;
723
723
  description?: string | null | undefined;
724
724
  target_type?: ApplicationMethodTargetType | undefined;
725
- allocation?: "each" | "across" | "once" | undefined;
725
+ allocation?: "once" | "each" | "across" | undefined;
726
726
  apply_to_quantity?: number | null | undefined;
727
727
  buy_rules_min_quantity?: number | null | undefined;
728
728
  }>;
@@ -790,8 +790,8 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObjec
790
790
  name: string;
791
791
  campaign_identifier: string;
792
792
  description?: string | null | undefined;
793
- starts_at?: Date | null | undefined;
794
793
  ends_at?: Date | null | undefined;
794
+ starts_at?: Date | null | undefined;
795
795
  budget?: {
796
796
  type: import("@medusajs/framework/utils").CampaignBudgetType;
797
797
  limit?: number | null | undefined;
@@ -802,8 +802,8 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObjec
802
802
  name: string;
803
803
  campaign_identifier: string;
804
804
  description?: string | null | undefined;
805
- starts_at?: Date | null | undefined;
806
805
  ends_at?: Date | null | undefined;
806
+ starts_at?: Date | null | undefined;
807
807
  budget?: {
808
808
  type: import("@medusajs/framework/utils").CampaignBudgetType;
809
809
  limit?: number | null | undefined;
@@ -827,13 +827,13 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObjec
827
827
  values: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
828
828
  }, "strict", z.ZodTypeAny, {
829
829
  values: string | string[];
830
- attribute: string;
831
830
  operator: PromotionRuleOperator;
831
+ attribute: string;
832
832
  description?: string | null | undefined;
833
833
  }, {
834
834
  values: string | string[];
835
- attribute: string;
836
835
  operator: PromotionRuleOperator;
836
+ attribute: string;
837
837
  description?: string | null | undefined;
838
838
  }>, "many">>;
839
839
  buy_rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -843,13 +843,13 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObjec
843
843
  values: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
844
844
  }, "strict", z.ZodTypeAny, {
845
845
  values: string | string[];
846
- attribute: string;
847
846
  operator: PromotionRuleOperator;
847
+ attribute: string;
848
848
  description?: string | null | undefined;
849
849
  }, {
850
850
  values: string | string[];
851
- attribute: string;
852
851
  operator: PromotionRuleOperator;
852
+ attribute: string;
853
853
  description?: string | null | undefined;
854
854
  }>, "many">>;
855
855
  apply_to_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -861,17 +861,17 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObjec
861
861
  currency_code?: string | undefined;
862
862
  max_quantity?: number | null | undefined;
863
863
  description?: string | null | undefined;
864
- allocation?: "each" | "across" | "once" | undefined;
864
+ allocation?: "once" | "each" | "across" | undefined;
865
865
  target_rules?: {
866
866
  values: string | string[];
867
- attribute: string;
868
867
  operator: PromotionRuleOperator;
868
+ attribute: string;
869
869
  description?: string | null | undefined;
870
870
  }[] | undefined;
871
871
  buy_rules?: {
872
872
  values: string | string[];
873
- attribute: string;
874
873
  operator: PromotionRuleOperator;
874
+ attribute: string;
875
875
  description?: string | null | undefined;
876
876
  }[] | undefined;
877
877
  apply_to_quantity?: number | null | undefined;
@@ -883,17 +883,17 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObjec
883
883
  currency_code?: string | undefined;
884
884
  max_quantity?: number | null | undefined;
885
885
  description?: string | null | undefined;
886
- allocation?: "each" | "across" | "once" | undefined;
886
+ allocation?: "once" | "each" | "across" | undefined;
887
887
  target_rules?: {
888
888
  values: string | string[];
889
- attribute: string;
890
889
  operator: PromotionRuleOperator;
890
+ attribute: string;
891
891
  description?: string | null | undefined;
892
892
  }[] | undefined;
893
893
  buy_rules?: {
894
894
  values: string | string[];
895
- attribute: string;
896
895
  operator: PromotionRuleOperator;
896
+ attribute: string;
897
897
  description?: string | null | undefined;
898
898
  }[] | undefined;
899
899
  apply_to_quantity?: number | null | undefined;
@@ -906,13 +906,13 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObjec
906
906
  values: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
907
907
  }, "strict", z.ZodTypeAny, {
908
908
  values: string | string[];
909
- attribute: string;
910
909
  operator: PromotionRuleOperator;
910
+ attribute: string;
911
911
  description?: string | null | undefined;
912
912
  }, {
913
913
  values: string | string[];
914
- attribute: string;
915
914
  operator: PromotionRuleOperator;
915
+ attribute: string;
916
916
  description?: string | null | undefined;
917
917
  }>, "many">>;
918
918
  additional_data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
@@ -927,17 +927,17 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObjec
927
927
  currency_code?: string | undefined;
928
928
  max_quantity?: number | null | undefined;
929
929
  description?: string | null | undefined;
930
- allocation?: "each" | "across" | "once" | undefined;
930
+ allocation?: "once" | "each" | "across" | undefined;
931
931
  target_rules?: {
932
932
  values: string | string[];
933
- attribute: string;
934
933
  operator: PromotionRuleOperator;
934
+ attribute: string;
935
935
  description?: string | null | undefined;
936
936
  }[] | undefined;
937
937
  buy_rules?: {
938
938
  values: string | string[];
939
- attribute: string;
940
939
  operator: PromotionRuleOperator;
940
+ attribute: string;
941
941
  description?: string | null | undefined;
942
942
  }[] | undefined;
943
943
  apply_to_quantity?: number | null | undefined;
@@ -946,20 +946,18 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObjec
946
946
  limit?: number | null | undefined;
947
947
  rules?: {
948
948
  values: string | string[];
949
- attribute: string;
950
949
  operator: PromotionRuleOperator;
950
+ attribute: string;
951
951
  description?: string | null | undefined;
952
952
  }[] | undefined;
953
- additional_data?: Record<string, unknown> | null | undefined;
954
953
  campaign_id?: string | undefined;
955
- is_tax_inclusive?: boolean | undefined;
956
- is_automatic?: boolean | undefined;
954
+ additional_data?: Record<string, unknown> | null | undefined;
957
955
  campaign?: {
958
956
  name: string;
959
957
  campaign_identifier: string;
960
958
  description?: string | null | undefined;
961
- starts_at?: Date | null | undefined;
962
959
  ends_at?: Date | null | undefined;
960
+ starts_at?: Date | null | undefined;
963
961
  budget?: {
964
962
  type: import("@medusajs/framework/utils").CampaignBudgetType;
965
963
  limit?: number | null | undefined;
@@ -967,6 +965,8 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObjec
967
965
  attribute?: string | null | undefined;
968
966
  } | null | undefined;
969
967
  } | undefined;
968
+ is_tax_inclusive?: boolean | undefined;
969
+ is_automatic?: boolean | undefined;
970
970
  }, {
971
971
  code: string;
972
972
  type: PromotionType;
@@ -977,17 +977,17 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObjec
977
977
  currency_code?: string | undefined;
978
978
  max_quantity?: number | null | undefined;
979
979
  description?: string | null | undefined;
980
- allocation?: "each" | "across" | "once" | undefined;
980
+ allocation?: "once" | "each" | "across" | undefined;
981
981
  target_rules?: {
982
982
  values: string | string[];
983
- attribute: string;
984
983
  operator: PromotionRuleOperator;
984
+ attribute: string;
985
985
  description?: string | null | undefined;
986
986
  }[] | undefined;
987
987
  buy_rules?: {
988
988
  values: string | string[];
989
- attribute: string;
990
989
  operator: PromotionRuleOperator;
990
+ attribute: string;
991
991
  description?: string | null | undefined;
992
992
  }[] | undefined;
993
993
  apply_to_quantity?: number | null | undefined;
@@ -997,20 +997,18 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObjec
997
997
  limit?: number | null | undefined;
998
998
  rules?: {
999
999
  values: string | string[];
1000
- attribute: string;
1001
1000
  operator: PromotionRuleOperator;
1001
+ attribute: string;
1002
1002
  description?: string | null | undefined;
1003
1003
  }[] | undefined;
1004
- additional_data?: Record<string, unknown> | null | undefined;
1005
1004
  campaign_id?: string | undefined;
1006
- is_tax_inclusive?: boolean | undefined;
1007
- is_automatic?: boolean | undefined;
1005
+ additional_data?: Record<string, unknown> | null | undefined;
1008
1006
  campaign?: {
1009
1007
  name: string;
1010
1008
  campaign_identifier: string;
1011
1009
  description?: string | null | undefined;
1012
- starts_at?: Date | null | undefined;
1013
1010
  ends_at?: Date | null | undefined;
1011
+ starts_at?: Date | null | undefined;
1014
1012
  budget?: {
1015
1013
  type: import("@medusajs/framework/utils").CampaignBudgetType;
1016
1014
  limit?: number | null | undefined;
@@ -1018,6 +1016,8 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObjec
1018
1016
  attribute?: string | null | undefined;
1019
1017
  } | null | undefined;
1020
1018
  } | undefined;
1019
+ is_tax_inclusive?: boolean | undefined;
1020
+ is_automatic?: boolean | undefined;
1021
1021
  }>, {
1022
1022
  code: string;
1023
1023
  type: PromotionType;
@@ -1029,17 +1029,17 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObjec
1029
1029
  currency_code?: string | undefined;
1030
1030
  max_quantity?: number | null | undefined;
1031
1031
  description?: string | null | undefined;
1032
- allocation?: "each" | "across" | "once" | undefined;
1032
+ allocation?: "once" | "each" | "across" | undefined;
1033
1033
  target_rules?: {
1034
1034
  values: string | string[];
1035
- attribute: string;
1036
1035
  operator: PromotionRuleOperator;
1036
+ attribute: string;
1037
1037
  description?: string | null | undefined;
1038
1038
  }[] | undefined;
1039
1039
  buy_rules?: {
1040
1040
  values: string | string[];
1041
- attribute: string;
1042
1041
  operator: PromotionRuleOperator;
1042
+ attribute: string;
1043
1043
  description?: string | null | undefined;
1044
1044
  }[] | undefined;
1045
1045
  apply_to_quantity?: number | null | undefined;
@@ -1048,20 +1048,18 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObjec
1048
1048
  limit?: number | null | undefined;
1049
1049
  rules?: {
1050
1050
  values: string | string[];
1051
- attribute: string;
1052
1051
  operator: PromotionRuleOperator;
1052
+ attribute: string;
1053
1053
  description?: string | null | undefined;
1054
1054
  }[] | undefined;
1055
- additional_data?: Record<string, unknown> | null | undefined;
1056
1055
  campaign_id?: string | undefined;
1057
- is_tax_inclusive?: boolean | undefined;
1058
- is_automatic?: boolean | undefined;
1056
+ additional_data?: Record<string, unknown> | null | undefined;
1059
1057
  campaign?: {
1060
1058
  name: string;
1061
1059
  campaign_identifier: string;
1062
1060
  description?: string | null | undefined;
1063
- starts_at?: Date | null | undefined;
1064
1061
  ends_at?: Date | null | undefined;
1062
+ starts_at?: Date | null | undefined;
1065
1063
  budget?: {
1066
1064
  type: import("@medusajs/framework/utils").CampaignBudgetType;
1067
1065
  limit?: number | null | undefined;
@@ -1069,6 +1067,8 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObjec
1069
1067
  attribute?: string | null | undefined;
1070
1068
  } | null | undefined;
1071
1069
  } | undefined;
1070
+ is_tax_inclusive?: boolean | undefined;
1071
+ is_automatic?: boolean | undefined;
1072
1072
  }, {
1073
1073
  code: string;
1074
1074
  type: PromotionType;
@@ -1079,17 +1079,17 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObjec
1079
1079
  currency_code?: string | undefined;
1080
1080
  max_quantity?: number | null | undefined;
1081
1081
  description?: string | null | undefined;
1082
- allocation?: "each" | "across" | "once" | undefined;
1082
+ allocation?: "once" | "each" | "across" | undefined;
1083
1083
  target_rules?: {
1084
1084
  values: string | string[];
1085
- attribute: string;
1086
1085
  operator: PromotionRuleOperator;
1086
+ attribute: string;
1087
1087
  description?: string | null | undefined;
1088
1088
  }[] | undefined;
1089
1089
  buy_rules?: {
1090
1090
  values: string | string[];
1091
- attribute: string;
1092
1091
  operator: PromotionRuleOperator;
1092
+ attribute: string;
1093
1093
  description?: string | null | undefined;
1094
1094
  }[] | undefined;
1095
1095
  apply_to_quantity?: number | null | undefined;
@@ -1099,20 +1099,18 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObjec
1099
1099
  limit?: number | null | undefined;
1100
1100
  rules?: {
1101
1101
  values: string | string[];
1102
- attribute: string;
1103
1102
  operator: PromotionRuleOperator;
1103
+ attribute: string;
1104
1104
  description?: string | null | undefined;
1105
1105
  }[] | undefined;
1106
- additional_data?: Record<string, unknown> | null | undefined;
1107
1106
  campaign_id?: string | undefined;
1108
- is_tax_inclusive?: boolean | undefined;
1109
- is_automatic?: boolean | undefined;
1107
+ additional_data?: Record<string, unknown> | null | undefined;
1110
1108
  campaign?: {
1111
1109
  name: string;
1112
1110
  campaign_identifier: string;
1113
1111
  description?: string | null | undefined;
1114
- starts_at?: Date | null | undefined;
1115
1112
  ends_at?: Date | null | undefined;
1113
+ starts_at?: Date | null | undefined;
1116
1114
  budget?: {
1117
1115
  type: import("@medusajs/framework/utils").CampaignBudgetType;
1118
1116
  limit?: number | null | undefined;
@@ -1120,6 +1118,8 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObjec
1120
1118
  attribute?: string | null | undefined;
1121
1119
  } | null | undefined;
1122
1120
  } | undefined;
1121
+ is_tax_inclusive?: boolean | undefined;
1122
+ is_automatic?: boolean | undefined;
1123
1123
  }>, {
1124
1124
  code: string;
1125
1125
  type: PromotionType;
@@ -1131,17 +1131,17 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObjec
1131
1131
  currency_code?: string | undefined;
1132
1132
  max_quantity?: number | null | undefined;
1133
1133
  description?: string | null | undefined;
1134
- allocation?: "each" | "across" | "once" | undefined;
1134
+ allocation?: "once" | "each" | "across" | undefined;
1135
1135
  target_rules?: {
1136
1136
  values: string | string[];
1137
- attribute: string;
1138
1137
  operator: PromotionRuleOperator;
1138
+ attribute: string;
1139
1139
  description?: string | null | undefined;
1140
1140
  }[] | undefined;
1141
1141
  buy_rules?: {
1142
1142
  values: string | string[];
1143
- attribute: string;
1144
1143
  operator: PromotionRuleOperator;
1144
+ attribute: string;
1145
1145
  description?: string | null | undefined;
1146
1146
  }[] | undefined;
1147
1147
  apply_to_quantity?: number | null | undefined;
@@ -1150,20 +1150,18 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObjec
1150
1150
  limit?: number | null | undefined;
1151
1151
  rules?: {
1152
1152
  values: string | string[];
1153
- attribute: string;
1154
1153
  operator: PromotionRuleOperator;
1154
+ attribute: string;
1155
1155
  description?: string | null | undefined;
1156
1156
  }[] | undefined;
1157
- additional_data?: Record<string, unknown> | null | undefined;
1158
1157
  campaign_id?: string | undefined;
1159
- is_tax_inclusive?: boolean | undefined;
1160
- is_automatic?: boolean | undefined;
1158
+ additional_data?: Record<string, unknown> | null | undefined;
1161
1159
  campaign?: {
1162
1160
  name: string;
1163
1161
  campaign_identifier: string;
1164
1162
  description?: string | null | undefined;
1165
- starts_at?: Date | null | undefined;
1166
1163
  ends_at?: Date | null | undefined;
1164
+ starts_at?: Date | null | undefined;
1167
1165
  budget?: {
1168
1166
  type: import("@medusajs/framework/utils").CampaignBudgetType;
1169
1167
  limit?: number | null | undefined;
@@ -1171,6 +1169,8 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObjec
1171
1169
  attribute?: string | null | undefined;
1172
1170
  } | null | undefined;
1173
1171
  } | undefined;
1172
+ is_tax_inclusive?: boolean | undefined;
1173
+ is_automatic?: boolean | undefined;
1174
1174
  }, {
1175
1175
  code: string;
1176
1176
  type: PromotionType;
@@ -1181,17 +1181,17 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObjec
1181
1181
  currency_code?: string | undefined;
1182
1182
  max_quantity?: number | null | undefined;
1183
1183
  description?: string | null | undefined;
1184
- allocation?: "each" | "across" | "once" | undefined;
1184
+ allocation?: "once" | "each" | "across" | undefined;
1185
1185
  target_rules?: {
1186
1186
  values: string | string[];
1187
- attribute: string;
1188
1187
  operator: PromotionRuleOperator;
1188
+ attribute: string;
1189
1189
  description?: string | null | undefined;
1190
1190
  }[] | undefined;
1191
1191
  buy_rules?: {
1192
1192
  values: string | string[];
1193
- attribute: string;
1194
1193
  operator: PromotionRuleOperator;
1194
+ attribute: string;
1195
1195
  description?: string | null | undefined;
1196
1196
  }[] | undefined;
1197
1197
  apply_to_quantity?: number | null | undefined;
@@ -1201,20 +1201,18 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObjec
1201
1201
  limit?: number | null | undefined;
1202
1202
  rules?: {
1203
1203
  values: string | string[];
1204
- attribute: string;
1205
1204
  operator: PromotionRuleOperator;
1205
+ attribute: string;
1206
1206
  description?: string | null | undefined;
1207
1207
  }[] | undefined;
1208
- additional_data?: Record<string, unknown> | null | undefined;
1209
1208
  campaign_id?: string | undefined;
1210
- is_tax_inclusive?: boolean | undefined;
1211
- is_automatic?: boolean | undefined;
1209
+ additional_data?: Record<string, unknown> | null | undefined;
1212
1210
  campaign?: {
1213
1211
  name: string;
1214
1212
  campaign_identifier: string;
1215
1213
  description?: string | null | undefined;
1216
- starts_at?: Date | null | undefined;
1217
1214
  ends_at?: Date | null | undefined;
1215
+ starts_at?: Date | null | undefined;
1218
1216
  budget?: {
1219
1217
  type: import("@medusajs/framework/utils").CampaignBudgetType;
1220
1218
  limit?: number | null | undefined;
@@ -1222,6 +1220,8 @@ export declare const VendorCreatePromotion: z.ZodEffects<z.ZodEffects<z.ZodObjec
1222
1220
  attribute?: string | null | undefined;
1223
1221
  } | null | undefined;
1224
1222
  } | undefined;
1223
+ is_tax_inclusive?: boolean | undefined;
1224
+ is_automatic?: boolean | undefined;
1225
1225
  }>;
1226
1226
  export type VendorUpdatePromotionType = z.infer<typeof VendorUpdatePromotion>;
1227
1227
  export declare const VendorUpdatePromotion: z.ZodEffects<z.ZodObject<{
@@ -1249,7 +1249,7 @@ export declare const VendorUpdatePromotion: z.ZodEffects<z.ZodObject<{
1249
1249
  max_quantity?: number | null | undefined;
1250
1250
  description?: string | null | undefined;
1251
1251
  target_type?: ApplicationMethodTargetType | undefined;
1252
- allocation?: "each" | "across" | "once" | undefined;
1252
+ allocation?: "once" | "each" | "across" | undefined;
1253
1253
  apply_to_quantity?: number | null | undefined;
1254
1254
  buy_rules_min_quantity?: number | null | undefined;
1255
1255
  }, {
@@ -1259,7 +1259,7 @@ export declare const VendorUpdatePromotion: z.ZodEffects<z.ZodObject<{
1259
1259
  max_quantity?: number | null | undefined;
1260
1260
  description?: string | null | undefined;
1261
1261
  target_type?: ApplicationMethodTargetType | undefined;
1262
- allocation?: "each" | "across" | "once" | undefined;
1262
+ allocation?: "once" | "each" | "across" | undefined;
1263
1263
  apply_to_quantity?: number | null | undefined;
1264
1264
  buy_rules_min_quantity?: number | null | undefined;
1265
1265
  }>>;
@@ -1269,8 +1269,8 @@ export declare const VendorUpdatePromotion: z.ZodEffects<z.ZodObject<{
1269
1269
  type?: PromotionType | undefined;
1270
1270
  status?: PromotionStatus | undefined;
1271
1271
  limit?: number | null | undefined;
1272
- additional_data?: Record<string, unknown> | null | undefined;
1273
1272
  campaign_id?: string | null | undefined;
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?: {
@@ -1280,7 +1280,7 @@ export declare const VendorUpdatePromotion: z.ZodEffects<z.ZodObject<{
1280
1280
  max_quantity?: number | null | undefined;
1281
1281
  description?: string | null | undefined;
1282
1282
  target_type?: ApplicationMethodTargetType | undefined;
1283
- allocation?: "each" | "across" | "once" | undefined;
1283
+ allocation?: "once" | "each" | "across" | undefined;
1284
1284
  apply_to_quantity?: number | null | undefined;
1285
1285
  buy_rules_min_quantity?: number | null | undefined;
1286
1286
  } | undefined;
@@ -1289,8 +1289,8 @@ export declare const VendorUpdatePromotion: z.ZodEffects<z.ZodObject<{
1289
1289
  type?: PromotionType | undefined;
1290
1290
  status?: PromotionStatus | undefined;
1291
1291
  limit?: number | null | undefined;
1292
- additional_data?: Record<string, unknown> | null | undefined;
1293
1292
  campaign_id?: string | null | undefined;
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?: {
@@ -1300,7 +1300,7 @@ export declare const VendorUpdatePromotion: z.ZodEffects<z.ZodObject<{
1300
1300
  max_quantity?: number | null | undefined;
1301
1301
  description?: string | null | undefined;
1302
1302
  target_type?: ApplicationMethodTargetType | undefined;
1303
- allocation?: "each" | "across" | "once" | undefined;
1303
+ allocation?: "once" | "each" | "across" | undefined;
1304
1304
  apply_to_quantity?: number | null | undefined;
1305
1305
  buy_rules_min_quantity?: number | null | undefined;
1306
1306
  } | undefined;
@@ -1309,8 +1309,8 @@ export declare const VendorUpdatePromotion: z.ZodEffects<z.ZodObject<{
1309
1309
  type?: PromotionType | undefined;
1310
1310
  status?: PromotionStatus | undefined;
1311
1311
  limit?: number | null | undefined;
1312
- additional_data?: Record<string, unknown> | null | undefined;
1313
1312
  campaign_id?: string | null | undefined;
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?: {
@@ -1320,7 +1320,7 @@ export declare const VendorUpdatePromotion: z.ZodEffects<z.ZodObject<{
1320
1320
  max_quantity?: number | null | undefined;
1321
1321
  description?: string | null | undefined;
1322
1322
  target_type?: ApplicationMethodTargetType | undefined;
1323
- allocation?: "each" | "across" | "once" | undefined;
1323
+ allocation?: "once" | "each" | "across" | undefined;
1324
1324
  apply_to_quantity?: number | null | undefined;
1325
1325
  buy_rules_min_quantity?: number | null | undefined;
1326
1326
  } | undefined;
@@ -1329,8 +1329,8 @@ export declare const VendorUpdatePromotion: z.ZodEffects<z.ZodObject<{
1329
1329
  type?: PromotionType | undefined;
1330
1330
  status?: PromotionStatus | undefined;
1331
1331
  limit?: number | null | undefined;
1332
- additional_data?: Record<string, unknown> | null | undefined;
1333
1332
  campaign_id?: string | null | undefined;
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?: {
@@ -1340,7 +1340,7 @@ export declare const VendorUpdatePromotion: z.ZodEffects<z.ZodObject<{
1340
1340
  max_quantity?: number | null | undefined;
1341
1341
  description?: string | null | undefined;
1342
1342
  target_type?: ApplicationMethodTargetType | undefined;
1343
- allocation?: "each" | "across" | "once" | undefined;
1343
+ allocation?: "once" | "each" | "across" | undefined;
1344
1344
  apply_to_quantity?: number | null | undefined;
1345
1345
  buy_rules_min_quantity?: number | null | undefined;
1346
1346
  } | undefined;