@medusajs/promotion 3.0.0-snapshot-20250410105645 → 3.0.0-snapshot-20251104004624
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/dist/migrations/Migration20240227120221.d.ts +1 -1
- package/dist/migrations/Migration20240227120221.d.ts.map +1 -1
- package/dist/migrations/Migration20240227120221.js +1 -1
- package/dist/migrations/Migration20240227120221.js.map +1 -1
- package/dist/migrations/Migration20240617102917.d.ts +1 -1
- package/dist/migrations/Migration20240617102917.d.ts.map +1 -1
- package/dist/migrations/Migration20240617102917.js +1 -1
- package/dist/migrations/Migration20240617102917.js.map +1 -1
- package/dist/migrations/Migration20240624153824.d.ts +1 -1
- package/dist/migrations/Migration20240624153824.d.ts.map +1 -1
- package/dist/migrations/Migration20240624153824.js +1 -1
- package/dist/migrations/Migration20240624153824.js.map +1 -1
- package/dist/migrations/Migration20241211061114.d.ts +1 -1
- package/dist/migrations/Migration20241211061114.d.ts.map +1 -1
- package/dist/migrations/Migration20241211061114.js +1 -1
- package/dist/migrations/Migration20241211061114.js.map +1 -1
- package/dist/migrations/Migration20250113094144.d.ts +1 -1
- package/dist/migrations/Migration20250113094144.d.ts.map +1 -1
- package/dist/migrations/Migration20250113094144.js +1 -1
- package/dist/migrations/Migration20250113094144.js.map +1 -1
- package/dist/migrations/Migration20250120110700.d.ts +1 -1
- package/dist/migrations/Migration20250120110700.d.ts.map +1 -1
- package/dist/migrations/Migration20250120110700.js +1 -1
- package/dist/migrations/Migration20250120110700.js.map +1 -1
- package/dist/migrations/Migration20250226130616.d.ts +1 -1
- package/dist/migrations/Migration20250226130616.d.ts.map +1 -1
- package/dist/migrations/Migration20250226130616.js +1 -1
- package/dist/migrations/Migration20250226130616.js.map +1 -1
- package/dist/migrations/Migration20250508081510.d.ts +6 -0
- package/dist/migrations/Migration20250508081510.d.ts.map +1 -0
- package/dist/migrations/Migration20250508081510.js +14 -0
- package/dist/migrations/Migration20250508081510.js.map +1 -0
- package/dist/migrations/Migration20250828075407.d.ts +6 -0
- package/dist/migrations/Migration20250828075407.d.ts.map +1 -0
- package/dist/migrations/Migration20250828075407.js +34 -0
- package/dist/migrations/Migration20250828075407.js.map +1 -0
- package/dist/migrations/Migration20250909083125.d.ts +6 -0
- package/dist/migrations/Migration20250909083125.d.ts.map +1 -0
- package/dist/migrations/Migration20250909083125.js +25 -0
- package/dist/migrations/Migration20250909083125.js.map +1 -0
- package/dist/migrations/Migration20250916120552.d.ts +6 -0
- package/dist/migrations/Migration20250916120552.d.ts.map +1 -0
- package/dist/migrations/Migration20250916120552.js +14 -0
- package/dist/migrations/Migration20250916120552.js.map +1 -0
- package/dist/migrations/Migration20250917143818.d.ts +6 -0
- package/dist/migrations/Migration20250917143818.d.ts.map +1 -0
- package/dist/migrations/Migration20250917143818.js +18 -0
- package/dist/migrations/Migration20250917143818.js.map +1 -0
- package/dist/migrations/Migration20250919122137.d.ts +6 -0
- package/dist/migrations/Migration20250919122137.d.ts.map +1 -0
- package/dist/migrations/Migration20250919122137.js +14 -0
- package/dist/migrations/Migration20250919122137.js.map +1 -0
- package/dist/migrations/Migration20251006000000.d.ts +6 -0
- package/dist/migrations/Migration20251006000000.d.ts.map +1 -0
- package/dist/migrations/Migration20251006000000.js +16 -0
- package/dist/migrations/Migration20251006000000.js.map +1 -0
- package/dist/models/application-method.d.ts +183 -24
- package/dist/models/application-method.d.ts.map +1 -1
- package/dist/models/campaign-budget-usage.d.ts +268 -0
- package/dist/models/campaign-budget-usage.d.ts.map +1 -0
- package/dist/models/campaign-budget-usage.js +31 -0
- package/dist/models/campaign-budget-usage.js.map +1 -0
- package/dist/models/campaign-budget.d.ts +82 -24
- package/dist/models/campaign-budget.d.ts.map +1 -1
- package/dist/models/campaign-budget.js +17 -1
- package/dist/models/campaign-budget.js.map +1 -1
- package/dist/models/campaign.d.ts +63 -24
- package/dist/models/campaign.d.ts.map +1 -1
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +3 -1
- package/dist/models/index.js.map +1 -1
- package/dist/models/promotion-rule-value.d.ts +360 -19
- package/dist/models/promotion-rule-value.d.ts.map +1 -1
- package/dist/models/promotion-rule-value.js +17 -2
- package/dist/models/promotion-rule-value.js.map +1 -1
- package/dist/models/promotion-rule.d.ts +182 -23
- package/dist/models/promotion-rule.d.ts.map +1 -1
- package/dist/models/promotion-rule.js +13 -0
- package/dist/models/promotion-rule.js.map +1 -1
- package/dist/models/promotion.d.ts +59 -6
- package/dist/models/promotion.d.ts.map +1 -1
- package/dist/models/promotion.js +7 -0
- package/dist/models/promotion.js.map +1 -1
- package/dist/schema/index.d.ts +1 -1
- package/dist/schema/index.d.ts.map +1 -1
- package/dist/schema/index.js +1 -0
- package/dist/schema/index.js.map +1 -1
- package/dist/services/promotion-module.d.ts +420 -77
- package/dist/services/promotion-module.d.ts.map +1 -1
- package/dist/services/promotion-module.js +345 -116
- package/dist/services/promotion-module.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/campaign-budget.d.ts +10 -0
- package/dist/types/campaign-budget.d.ts.map +1 -1
- package/dist/utils/compute-actions/build-promotion-rule-query-filter-from-context.d.ts +12 -0
- package/dist/utils/compute-actions/build-promotion-rule-query-filter-from-context.d.ts.map +1 -0
- package/dist/utils/compute-actions/build-promotion-rule-query-filter-from-context.js +188 -0
- package/dist/utils/compute-actions/build-promotion-rule-query-filter-from-context.js.map +1 -0
- package/dist/utils/compute-actions/buy-get.d.ts +3 -2
- package/dist/utils/compute-actions/buy-get.d.ts.map +1 -1
- package/dist/utils/compute-actions/buy-get.js +251 -84
- package/dist/utils/compute-actions/buy-get.js.map +1 -1
- package/dist/utils/compute-actions/index.d.ts +1 -0
- package/dist/utils/compute-actions/index.d.ts.map +1 -1
- package/dist/utils/compute-actions/index.js +1 -0
- package/dist/utils/compute-actions/index.js.map +1 -1
- package/dist/utils/compute-actions/line-items.d.ts +3 -4
- package/dist/utils/compute-actions/line-items.d.ts.map +1 -1
- package/dist/utils/compute-actions/line-items.js +74 -40
- package/dist/utils/compute-actions/line-items.js.map +1 -1
- package/dist/utils/compute-actions/shipping-methods.d.ts +4 -3
- package/dist/utils/compute-actions/shipping-methods.d.ts.map +1 -1
- package/dist/utils/compute-actions/shipping-methods.js +20 -6
- package/dist/utils/compute-actions/shipping-methods.js.map +1 -1
- package/dist/utils/compute-actions/sort-by-price.d.ts +4 -0
- package/dist/utils/compute-actions/sort-by-price.d.ts.map +1 -0
- package/dist/utils/compute-actions/sort-by-price.js +16 -0
- package/dist/utils/compute-actions/sort-by-price.js.map +1 -0
- package/dist/utils/compute-actions/usage.d.ts +14 -2
- package/dist/utils/compute-actions/usage.d.ts.map +1 -1
- package/dist/utils/compute-actions/usage.js +27 -2
- package/dist/utils/compute-actions/usage.js.map +1 -1
- package/dist/utils/index.js +17 -7
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/validations/application-method.d.ts.map +1 -1
- package/dist/utils/validations/application-method.js +15 -0
- package/dist/utils/validations/application-method.js.map +1 -1
- package/dist/utils/validations/promotion-rule.d.ts +3 -2
- package/dist/utils/validations/promotion-rule.d.ts.map +1 -1
- package/dist/utils/validations/promotion-rule.js +52 -45
- package/dist/utils/validations/promotion-rule.js.map +1 -1
- package/package.json +15 -28
|
@@ -7,7 +7,7 @@ declare const PromotionRuleValue: import("@medusajs/framework/utils").DmlEntity<
|
|
|
7
7
|
description: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
8
8
|
attribute: import("@medusajs/framework/utils").TextProperty;
|
|
9
9
|
operator: import("@medusajs/framework/utils").EnumProperty<typeof import("@medusajs/framework/utils").PromotionRuleOperator>;
|
|
10
|
-
values: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder
|
|
10
|
+
values: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
11
11
|
readonly name: "PromotionRuleValue";
|
|
12
12
|
readonly tableName: "promotion_rule_value";
|
|
13
13
|
}>>;
|
|
@@ -15,6 +15,7 @@ declare const PromotionRuleValue: import("@medusajs/framework/utils").DmlEntity<
|
|
|
15
15
|
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
16
16
|
code: import("@medusajs/framework/utils").TextProperty;
|
|
17
17
|
is_automatic: import("@medusajs/framework/utils").BooleanProperty;
|
|
18
|
+
is_tax_inclusive: import("@medusajs/framework/utils").BooleanProperty;
|
|
18
19
|
type: import("@medusajs/framework/utils").EnumProperty<typeof import("@medusajs/framework/utils").PromotionType>;
|
|
19
20
|
status: import("@medusajs/framework/utils").EnumProperty<typeof import("@medusajs/framework/utils").PromotionStatus>;
|
|
20
21
|
campaign: import("@medusajs/framework/utils").RelationNullableModifier<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
@@ -30,10 +31,23 @@ declare const PromotionRuleValue: import("@medusajs/framework/utils").DmlEntity<
|
|
|
30
31
|
currency_code: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
31
32
|
limit: import("@medusajs/framework/utils").NullableModifier<number, import("@medusajs/framework/utils").BigNumberProperty>;
|
|
32
33
|
used: import("@medusajs/framework/utils").BigNumberProperty;
|
|
33
|
-
campaign: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder
|
|
34
|
+
campaign: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
34
35
|
readonly name: "Campaign";
|
|
35
36
|
readonly tableName: "promotion_campaign";
|
|
36
37
|
}>, undefined>;
|
|
38
|
+
attribute: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
39
|
+
usages: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
40
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
41
|
+
attribute_value: import("@medusajs/framework/utils").TextProperty;
|
|
42
|
+
used: import("@medusajs/framework/utils").BigNumberProperty;
|
|
43
|
+
budget: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
44
|
+
readonly name: "CampaignBudget";
|
|
45
|
+
readonly tableName: "promotion_campaign_budget";
|
|
46
|
+
}>, undefined>;
|
|
47
|
+
}>, {
|
|
48
|
+
readonly name: "CampaignBudgetUsage";
|
|
49
|
+
readonly tableName: "promotion_campaign_budget_usage";
|
|
50
|
+
}>>;
|
|
37
51
|
}>, {
|
|
38
52
|
readonly name: "CampaignBudget";
|
|
39
53
|
readonly tableName: "promotion_campaign_budget";
|
|
@@ -43,15 +57,28 @@ declare const PromotionRuleValue: import("@medusajs/framework/utils").DmlEntity<
|
|
|
43
57
|
currency_code: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
44
58
|
limit: import("@medusajs/framework/utils").NullableModifier<number, import("@medusajs/framework/utils").BigNumberProperty>;
|
|
45
59
|
used: import("@medusajs/framework/utils").BigNumberProperty;
|
|
46
|
-
campaign: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder
|
|
60
|
+
campaign: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
47
61
|
readonly name: "Campaign";
|
|
48
62
|
readonly tableName: "promotion_campaign";
|
|
49
63
|
}>, undefined>;
|
|
64
|
+
attribute: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
65
|
+
usages: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
66
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
67
|
+
attribute_value: import("@medusajs/framework/utils").TextProperty;
|
|
68
|
+
used: import("@medusajs/framework/utils").BigNumberProperty;
|
|
69
|
+
budget: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
70
|
+
readonly name: "CampaignBudget";
|
|
71
|
+
readonly tableName: "promotion_campaign_budget";
|
|
72
|
+
}>, undefined>;
|
|
73
|
+
}>, {
|
|
74
|
+
readonly name: "CampaignBudgetUsage";
|
|
75
|
+
readonly tableName: "promotion_campaign_budget_usage";
|
|
76
|
+
}>>;
|
|
50
77
|
}>, {
|
|
51
78
|
readonly name: "CampaignBudget";
|
|
52
79
|
readonly tableName: "promotion_campaign_budget";
|
|
53
80
|
}>>, false>;
|
|
54
|
-
promotions: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder
|
|
81
|
+
promotions: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, "Promotion">>;
|
|
55
82
|
}>, {
|
|
56
83
|
readonly name: "Campaign";
|
|
57
84
|
readonly tableName: "promotion_campaign";
|
|
@@ -68,10 +95,23 @@ declare const PromotionRuleValue: import("@medusajs/framework/utils").DmlEntity<
|
|
|
68
95
|
currency_code: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
69
96
|
limit: import("@medusajs/framework/utils").NullableModifier<number, import("@medusajs/framework/utils").BigNumberProperty>;
|
|
70
97
|
used: import("@medusajs/framework/utils").BigNumberProperty;
|
|
71
|
-
campaign: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder
|
|
98
|
+
campaign: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
72
99
|
readonly name: "Campaign";
|
|
73
100
|
readonly tableName: "promotion_campaign";
|
|
74
101
|
}>, undefined>;
|
|
102
|
+
attribute: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
103
|
+
usages: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
104
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
105
|
+
attribute_value: import("@medusajs/framework/utils").TextProperty;
|
|
106
|
+
used: import("@medusajs/framework/utils").BigNumberProperty;
|
|
107
|
+
budget: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
108
|
+
readonly name: "CampaignBudget";
|
|
109
|
+
readonly tableName: "promotion_campaign_budget";
|
|
110
|
+
}>, undefined>;
|
|
111
|
+
}>, {
|
|
112
|
+
readonly name: "CampaignBudgetUsage";
|
|
113
|
+
readonly tableName: "promotion_campaign_budget_usage";
|
|
114
|
+
}>>;
|
|
75
115
|
}>, {
|
|
76
116
|
readonly name: "CampaignBudget";
|
|
77
117
|
readonly tableName: "promotion_campaign_budget";
|
|
@@ -81,15 +121,28 @@ declare const PromotionRuleValue: import("@medusajs/framework/utils").DmlEntity<
|
|
|
81
121
|
currency_code: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
82
122
|
limit: import("@medusajs/framework/utils").NullableModifier<number, import("@medusajs/framework/utils").BigNumberProperty>;
|
|
83
123
|
used: import("@medusajs/framework/utils").BigNumberProperty;
|
|
84
|
-
campaign: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder
|
|
124
|
+
campaign: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
85
125
|
readonly name: "Campaign";
|
|
86
126
|
readonly tableName: "promotion_campaign";
|
|
87
127
|
}>, undefined>;
|
|
128
|
+
attribute: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
129
|
+
usages: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
130
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
131
|
+
attribute_value: import("@medusajs/framework/utils").TextProperty;
|
|
132
|
+
used: import("@medusajs/framework/utils").BigNumberProperty;
|
|
133
|
+
budget: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
134
|
+
readonly name: "CampaignBudget";
|
|
135
|
+
readonly tableName: "promotion_campaign_budget";
|
|
136
|
+
}>, undefined>;
|
|
137
|
+
}>, {
|
|
138
|
+
readonly name: "CampaignBudgetUsage";
|
|
139
|
+
readonly tableName: "promotion_campaign_budget_usage";
|
|
140
|
+
}>>;
|
|
88
141
|
}>, {
|
|
89
142
|
readonly name: "CampaignBudget";
|
|
90
143
|
readonly tableName: "promotion_campaign_budget";
|
|
91
144
|
}>>, false>;
|
|
92
|
-
promotions: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder
|
|
145
|
+
promotions: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, "Promotion">>;
|
|
93
146
|
}>, {
|
|
94
147
|
readonly name: "Campaign";
|
|
95
148
|
readonly tableName: "promotion_campaign";
|
|
@@ -104,12 +157,12 @@ declare const PromotionRuleValue: import("@medusajs/framework/utils").DmlEntity<
|
|
|
104
157
|
type: import("@medusajs/framework/utils").EnumProperty<typeof import("@medusajs/framework/utils").ApplicationMethodType>;
|
|
105
158
|
target_type: import("@medusajs/framework/utils").EnumProperty<typeof import("@medusajs/framework/utils").ApplicationMethodTargetType>;
|
|
106
159
|
allocation: import("@medusajs/framework/utils").NullableModifier<import("@medusajs/framework/utils").ApplicationMethodAllocation, import("@medusajs/framework/utils").EnumProperty<typeof import("@medusajs/framework/utils").ApplicationMethodAllocation>>;
|
|
107
|
-
promotion: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder
|
|
108
|
-
target_rules: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder
|
|
160
|
+
promotion: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, "Promotion">, undefined>;
|
|
161
|
+
target_rules: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
109
162
|
readonly name: "PromotionRule";
|
|
110
163
|
readonly tableName: "promotion_rule";
|
|
111
164
|
}>>;
|
|
112
|
-
buy_rules: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder
|
|
165
|
+
buy_rules: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
113
166
|
readonly name: "PromotionRule";
|
|
114
167
|
readonly tableName: "promotion_rule";
|
|
115
168
|
}>>;
|
|
@@ -126,12 +179,12 @@ declare const PromotionRuleValue: import("@medusajs/framework/utils").DmlEntity<
|
|
|
126
179
|
type: import("@medusajs/framework/utils").EnumProperty<typeof import("@medusajs/framework/utils").ApplicationMethodType>;
|
|
127
180
|
target_type: import("@medusajs/framework/utils").EnumProperty<typeof import("@medusajs/framework/utils").ApplicationMethodTargetType>;
|
|
128
181
|
allocation: import("@medusajs/framework/utils").NullableModifier<import("@medusajs/framework/utils").ApplicationMethodAllocation, import("@medusajs/framework/utils").EnumProperty<typeof import("@medusajs/framework/utils").ApplicationMethodAllocation>>;
|
|
129
|
-
promotion: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder
|
|
130
|
-
target_rules: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder
|
|
182
|
+
promotion: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, "Promotion">, undefined>;
|
|
183
|
+
target_rules: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
131
184
|
readonly name: "PromotionRule";
|
|
132
185
|
readonly tableName: "promotion_rule";
|
|
133
186
|
}>>;
|
|
134
|
-
buy_rules: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder
|
|
187
|
+
buy_rules: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
135
188
|
readonly name: "PromotionRule";
|
|
136
189
|
readonly tableName: "promotion_rule";
|
|
137
190
|
}>>;
|
|
@@ -151,12 +204,156 @@ declare const PromotionRuleValue: import("@medusajs/framework/utils").DmlEntity<
|
|
|
151
204
|
type: import("@medusajs/framework/utils").EnumProperty<typeof import("@medusajs/framework/utils").ApplicationMethodType>;
|
|
152
205
|
target_type: import("@medusajs/framework/utils").EnumProperty<typeof import("@medusajs/framework/utils").ApplicationMethodTargetType>;
|
|
153
206
|
allocation: import("@medusajs/framework/utils").NullableModifier<import("@medusajs/framework/utils").ApplicationMethodAllocation, import("@medusajs/framework/utils").EnumProperty<typeof import("@medusajs/framework/utils").ApplicationMethodAllocation>>;
|
|
154
|
-
promotion: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<
|
|
155
|
-
|
|
207
|
+
promotion: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
208
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
209
|
+
code: import("@medusajs/framework/utils").TextProperty;
|
|
210
|
+
is_automatic: import("@medusajs/framework/utils").BooleanProperty;
|
|
211
|
+
is_tax_inclusive: import("@medusajs/framework/utils").BooleanProperty;
|
|
212
|
+
type: import("@medusajs/framework/utils").EnumProperty<typeof import("@medusajs/framework/utils").PromotionType>;
|
|
213
|
+
status: import("@medusajs/framework/utils").EnumProperty<typeof import("@medusajs/framework/utils").PromotionStatus>;
|
|
214
|
+
campaign: import("@medusajs/framework/utils").RelationNullableModifier<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
215
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
216
|
+
name: import("@medusajs/framework/utils").TextProperty;
|
|
217
|
+
description: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
218
|
+
campaign_identifier: import("@medusajs/framework/utils").TextProperty;
|
|
219
|
+
starts_at: import("@medusajs/framework/utils").NullableModifier<Date, import("@medusajs/framework/utils").DateTimeProperty>;
|
|
220
|
+
ends_at: import("@medusajs/framework/utils").NullableModifier<Date, import("@medusajs/framework/utils").DateTimeProperty>;
|
|
221
|
+
budget: import("@medusajs/framework/utils").RelationNullableModifier<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
222
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
223
|
+
type: import("@medusajs/framework/utils").EnumProperty<typeof import("@medusajs/framework/utils").CampaignBudgetType>;
|
|
224
|
+
currency_code: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
225
|
+
limit: import("@medusajs/framework/utils").NullableModifier<number, import("@medusajs/framework/utils").BigNumberProperty>;
|
|
226
|
+
used: import("@medusajs/framework/utils").BigNumberProperty;
|
|
227
|
+
campaign: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
228
|
+
readonly name: "Campaign";
|
|
229
|
+
readonly tableName: "promotion_campaign";
|
|
230
|
+
}>, undefined>;
|
|
231
|
+
attribute: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
232
|
+
usages: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
233
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
234
|
+
attribute_value: import("@medusajs/framework/utils").TextProperty;
|
|
235
|
+
used: import("@medusajs/framework/utils").BigNumberProperty;
|
|
236
|
+
budget: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
237
|
+
readonly name: "CampaignBudget";
|
|
238
|
+
readonly tableName: "promotion_campaign_budget";
|
|
239
|
+
}>, undefined>;
|
|
240
|
+
}>, {
|
|
241
|
+
readonly name: "CampaignBudgetUsage";
|
|
242
|
+
readonly tableName: "promotion_campaign_budget_usage";
|
|
243
|
+
}>>;
|
|
244
|
+
}>, {
|
|
245
|
+
readonly name: "CampaignBudget";
|
|
246
|
+
readonly tableName: "promotion_campaign_budget";
|
|
247
|
+
}>, import("@medusajs/framework/utils").HasOne<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
248
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
249
|
+
type: import("@medusajs/framework/utils").EnumProperty<typeof import("@medusajs/framework/utils").CampaignBudgetType>;
|
|
250
|
+
currency_code: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
251
|
+
limit: import("@medusajs/framework/utils").NullableModifier<number, import("@medusajs/framework/utils").BigNumberProperty>;
|
|
252
|
+
used: import("@medusajs/framework/utils").BigNumberProperty;
|
|
253
|
+
campaign: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
254
|
+
readonly name: "Campaign";
|
|
255
|
+
readonly tableName: "promotion_campaign";
|
|
256
|
+
}>, undefined>;
|
|
257
|
+
attribute: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
258
|
+
usages: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
259
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
260
|
+
attribute_value: import("@medusajs/framework/utils").TextProperty;
|
|
261
|
+
used: import("@medusajs/framework/utils").BigNumberProperty;
|
|
262
|
+
budget: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
263
|
+
readonly name: "CampaignBudget";
|
|
264
|
+
readonly tableName: "promotion_campaign_budget";
|
|
265
|
+
}>, undefined>;
|
|
266
|
+
}>, {
|
|
267
|
+
readonly name: "CampaignBudgetUsage";
|
|
268
|
+
readonly tableName: "promotion_campaign_budget_usage";
|
|
269
|
+
}>>;
|
|
270
|
+
}>, {
|
|
271
|
+
readonly name: "CampaignBudget";
|
|
272
|
+
readonly tableName: "promotion_campaign_budget";
|
|
273
|
+
}>>, false>;
|
|
274
|
+
promotions: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, "Promotion">>;
|
|
275
|
+
}>, {
|
|
276
|
+
readonly name: "Campaign";
|
|
277
|
+
readonly tableName: "promotion_campaign";
|
|
278
|
+
}>, import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
279
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
280
|
+
name: import("@medusajs/framework/utils").TextProperty;
|
|
281
|
+
description: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
282
|
+
campaign_identifier: import("@medusajs/framework/utils").TextProperty;
|
|
283
|
+
starts_at: import("@medusajs/framework/utils").NullableModifier<Date, import("@medusajs/framework/utils").DateTimeProperty>;
|
|
284
|
+
ends_at: import("@medusajs/framework/utils").NullableModifier<Date, import("@medusajs/framework/utils").DateTimeProperty>;
|
|
285
|
+
budget: import("@medusajs/framework/utils").RelationNullableModifier<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
286
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
287
|
+
type: import("@medusajs/framework/utils").EnumProperty<typeof import("@medusajs/framework/utils").CampaignBudgetType>;
|
|
288
|
+
currency_code: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
289
|
+
limit: import("@medusajs/framework/utils").NullableModifier<number, import("@medusajs/framework/utils").BigNumberProperty>;
|
|
290
|
+
used: import("@medusajs/framework/utils").BigNumberProperty;
|
|
291
|
+
campaign: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
292
|
+
readonly name: "Campaign";
|
|
293
|
+
readonly tableName: "promotion_campaign";
|
|
294
|
+
}>, undefined>;
|
|
295
|
+
attribute: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
296
|
+
usages: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
297
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
298
|
+
attribute_value: import("@medusajs/framework/utils").TextProperty;
|
|
299
|
+
used: import("@medusajs/framework/utils").BigNumberProperty;
|
|
300
|
+
budget: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
301
|
+
readonly name: "CampaignBudget";
|
|
302
|
+
readonly tableName: "promotion_campaign_budget";
|
|
303
|
+
}>, undefined>;
|
|
304
|
+
}>, {
|
|
305
|
+
readonly name: "CampaignBudgetUsage";
|
|
306
|
+
readonly tableName: "promotion_campaign_budget_usage";
|
|
307
|
+
}>>;
|
|
308
|
+
}>, {
|
|
309
|
+
readonly name: "CampaignBudget";
|
|
310
|
+
readonly tableName: "promotion_campaign_budget";
|
|
311
|
+
}>, import("@medusajs/framework/utils").HasOne<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
312
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
313
|
+
type: import("@medusajs/framework/utils").EnumProperty<typeof import("@medusajs/framework/utils").CampaignBudgetType>;
|
|
314
|
+
currency_code: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
315
|
+
limit: import("@medusajs/framework/utils").NullableModifier<number, import("@medusajs/framework/utils").BigNumberProperty>;
|
|
316
|
+
used: import("@medusajs/framework/utils").BigNumberProperty;
|
|
317
|
+
campaign: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
318
|
+
readonly name: "Campaign";
|
|
319
|
+
readonly tableName: "promotion_campaign";
|
|
320
|
+
}>, undefined>;
|
|
321
|
+
attribute: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
322
|
+
usages: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
323
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
324
|
+
attribute_value: import("@medusajs/framework/utils").TextProperty;
|
|
325
|
+
used: import("@medusajs/framework/utils").BigNumberProperty;
|
|
326
|
+
budget: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
327
|
+
readonly name: "CampaignBudget";
|
|
328
|
+
readonly tableName: "promotion_campaign_budget";
|
|
329
|
+
}>, undefined>;
|
|
330
|
+
}>, {
|
|
331
|
+
readonly name: "CampaignBudgetUsage";
|
|
332
|
+
readonly tableName: "promotion_campaign_budget_usage";
|
|
333
|
+
}>>;
|
|
334
|
+
}>, {
|
|
335
|
+
readonly name: "CampaignBudget";
|
|
336
|
+
readonly tableName: "promotion_campaign_budget";
|
|
337
|
+
}>>, false>;
|
|
338
|
+
promotions: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, "Promotion">>;
|
|
339
|
+
}>, {
|
|
340
|
+
readonly name: "Campaign";
|
|
341
|
+
readonly tableName: "promotion_campaign";
|
|
342
|
+
}>, undefined>, true>;
|
|
343
|
+
application_method: import("@medusajs/framework/utils").RelationNullableModifier<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
344
|
+
readonly name: "ApplicationMethod";
|
|
345
|
+
readonly tableName: "promotion_application_method";
|
|
346
|
+
}>, import("@medusajs/framework/utils").HasOne<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
347
|
+
readonly name: "ApplicationMethod";
|
|
348
|
+
readonly tableName: "promotion_application_method";
|
|
349
|
+
}>>, false>;
|
|
350
|
+
rules: import("@medusajs/framework/utils").ManyToMany<() => typeof PromotionRule>;
|
|
351
|
+
}>, "Promotion">, undefined>;
|
|
352
|
+
target_rules: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
156
353
|
readonly name: "PromotionRule";
|
|
157
354
|
readonly tableName: "promotion_rule";
|
|
158
355
|
}>>;
|
|
159
|
-
buy_rules: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder
|
|
356
|
+
buy_rules: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
160
357
|
readonly name: "PromotionRule";
|
|
161
358
|
readonly tableName: "promotion_rule";
|
|
162
359
|
}>>;
|
|
@@ -174,12 +371,156 @@ declare const PromotionRuleValue: import("@medusajs/framework/utils").DmlEntity<
|
|
|
174
371
|
type: import("@medusajs/framework/utils").EnumProperty<typeof import("@medusajs/framework/utils").ApplicationMethodType>;
|
|
175
372
|
target_type: import("@medusajs/framework/utils").EnumProperty<typeof import("@medusajs/framework/utils").ApplicationMethodTargetType>;
|
|
176
373
|
allocation: import("@medusajs/framework/utils").NullableModifier<import("@medusajs/framework/utils").ApplicationMethodAllocation, import("@medusajs/framework/utils").EnumProperty<typeof import("@medusajs/framework/utils").ApplicationMethodAllocation>>;
|
|
177
|
-
promotion: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<
|
|
178
|
-
|
|
374
|
+
promotion: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
375
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
376
|
+
code: import("@medusajs/framework/utils").TextProperty;
|
|
377
|
+
is_automatic: import("@medusajs/framework/utils").BooleanProperty;
|
|
378
|
+
is_tax_inclusive: import("@medusajs/framework/utils").BooleanProperty;
|
|
379
|
+
type: import("@medusajs/framework/utils").EnumProperty<typeof import("@medusajs/framework/utils").PromotionType>;
|
|
380
|
+
status: import("@medusajs/framework/utils").EnumProperty<typeof import("@medusajs/framework/utils").PromotionStatus>;
|
|
381
|
+
campaign: import("@medusajs/framework/utils").RelationNullableModifier<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
382
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
383
|
+
name: import("@medusajs/framework/utils").TextProperty;
|
|
384
|
+
description: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
385
|
+
campaign_identifier: import("@medusajs/framework/utils").TextProperty;
|
|
386
|
+
starts_at: import("@medusajs/framework/utils").NullableModifier<Date, import("@medusajs/framework/utils").DateTimeProperty>;
|
|
387
|
+
ends_at: import("@medusajs/framework/utils").NullableModifier<Date, import("@medusajs/framework/utils").DateTimeProperty>;
|
|
388
|
+
budget: import("@medusajs/framework/utils").RelationNullableModifier<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
389
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
390
|
+
type: import("@medusajs/framework/utils").EnumProperty<typeof import("@medusajs/framework/utils").CampaignBudgetType>;
|
|
391
|
+
currency_code: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
392
|
+
limit: import("@medusajs/framework/utils").NullableModifier<number, import("@medusajs/framework/utils").BigNumberProperty>;
|
|
393
|
+
used: import("@medusajs/framework/utils").BigNumberProperty;
|
|
394
|
+
campaign: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
395
|
+
readonly name: "Campaign";
|
|
396
|
+
readonly tableName: "promotion_campaign";
|
|
397
|
+
}>, undefined>;
|
|
398
|
+
attribute: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
399
|
+
usages: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
400
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
401
|
+
attribute_value: import("@medusajs/framework/utils").TextProperty;
|
|
402
|
+
used: import("@medusajs/framework/utils").BigNumberProperty;
|
|
403
|
+
budget: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
404
|
+
readonly name: "CampaignBudget";
|
|
405
|
+
readonly tableName: "promotion_campaign_budget";
|
|
406
|
+
}>, undefined>;
|
|
407
|
+
}>, {
|
|
408
|
+
readonly name: "CampaignBudgetUsage";
|
|
409
|
+
readonly tableName: "promotion_campaign_budget_usage";
|
|
410
|
+
}>>;
|
|
411
|
+
}>, {
|
|
412
|
+
readonly name: "CampaignBudget";
|
|
413
|
+
readonly tableName: "promotion_campaign_budget";
|
|
414
|
+
}>, import("@medusajs/framework/utils").HasOne<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
415
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
416
|
+
type: import("@medusajs/framework/utils").EnumProperty<typeof import("@medusajs/framework/utils").CampaignBudgetType>;
|
|
417
|
+
currency_code: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
418
|
+
limit: import("@medusajs/framework/utils").NullableModifier<number, import("@medusajs/framework/utils").BigNumberProperty>;
|
|
419
|
+
used: import("@medusajs/framework/utils").BigNumberProperty;
|
|
420
|
+
campaign: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
421
|
+
readonly name: "Campaign";
|
|
422
|
+
readonly tableName: "promotion_campaign";
|
|
423
|
+
}>, undefined>;
|
|
424
|
+
attribute: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
425
|
+
usages: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
426
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
427
|
+
attribute_value: import("@medusajs/framework/utils").TextProperty;
|
|
428
|
+
used: import("@medusajs/framework/utils").BigNumberProperty;
|
|
429
|
+
budget: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
430
|
+
readonly name: "CampaignBudget";
|
|
431
|
+
readonly tableName: "promotion_campaign_budget";
|
|
432
|
+
}>, undefined>;
|
|
433
|
+
}>, {
|
|
434
|
+
readonly name: "CampaignBudgetUsage";
|
|
435
|
+
readonly tableName: "promotion_campaign_budget_usage";
|
|
436
|
+
}>>;
|
|
437
|
+
}>, {
|
|
438
|
+
readonly name: "CampaignBudget";
|
|
439
|
+
readonly tableName: "promotion_campaign_budget";
|
|
440
|
+
}>>, false>;
|
|
441
|
+
promotions: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, "Promotion">>;
|
|
442
|
+
}>, {
|
|
443
|
+
readonly name: "Campaign";
|
|
444
|
+
readonly tableName: "promotion_campaign";
|
|
445
|
+
}>, import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
446
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
447
|
+
name: import("@medusajs/framework/utils").TextProperty;
|
|
448
|
+
description: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
449
|
+
campaign_identifier: import("@medusajs/framework/utils").TextProperty;
|
|
450
|
+
starts_at: import("@medusajs/framework/utils").NullableModifier<Date, import("@medusajs/framework/utils").DateTimeProperty>;
|
|
451
|
+
ends_at: import("@medusajs/framework/utils").NullableModifier<Date, import("@medusajs/framework/utils").DateTimeProperty>;
|
|
452
|
+
budget: import("@medusajs/framework/utils").RelationNullableModifier<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
453
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
454
|
+
type: import("@medusajs/framework/utils").EnumProperty<typeof import("@medusajs/framework/utils").CampaignBudgetType>;
|
|
455
|
+
currency_code: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
456
|
+
limit: import("@medusajs/framework/utils").NullableModifier<number, import("@medusajs/framework/utils").BigNumberProperty>;
|
|
457
|
+
used: import("@medusajs/framework/utils").BigNumberProperty;
|
|
458
|
+
campaign: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
459
|
+
readonly name: "Campaign";
|
|
460
|
+
readonly tableName: "promotion_campaign";
|
|
461
|
+
}>, undefined>;
|
|
462
|
+
attribute: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
463
|
+
usages: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
464
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
465
|
+
attribute_value: import("@medusajs/framework/utils").TextProperty;
|
|
466
|
+
used: import("@medusajs/framework/utils").BigNumberProperty;
|
|
467
|
+
budget: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
468
|
+
readonly name: "CampaignBudget";
|
|
469
|
+
readonly tableName: "promotion_campaign_budget";
|
|
470
|
+
}>, undefined>;
|
|
471
|
+
}>, {
|
|
472
|
+
readonly name: "CampaignBudgetUsage";
|
|
473
|
+
readonly tableName: "promotion_campaign_budget_usage";
|
|
474
|
+
}>>;
|
|
475
|
+
}>, {
|
|
476
|
+
readonly name: "CampaignBudget";
|
|
477
|
+
readonly tableName: "promotion_campaign_budget";
|
|
478
|
+
}>, import("@medusajs/framework/utils").HasOne<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
479
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
480
|
+
type: import("@medusajs/framework/utils").EnumProperty<typeof import("@medusajs/framework/utils").CampaignBudgetType>;
|
|
481
|
+
currency_code: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
482
|
+
limit: import("@medusajs/framework/utils").NullableModifier<number, import("@medusajs/framework/utils").BigNumberProperty>;
|
|
483
|
+
used: import("@medusajs/framework/utils").BigNumberProperty;
|
|
484
|
+
campaign: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
485
|
+
readonly name: "Campaign";
|
|
486
|
+
readonly tableName: "promotion_campaign";
|
|
487
|
+
}>, undefined>;
|
|
488
|
+
attribute: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
489
|
+
usages: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
490
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
491
|
+
attribute_value: import("@medusajs/framework/utils").TextProperty;
|
|
492
|
+
used: import("@medusajs/framework/utils").BigNumberProperty;
|
|
493
|
+
budget: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
494
|
+
readonly name: "CampaignBudget";
|
|
495
|
+
readonly tableName: "promotion_campaign_budget";
|
|
496
|
+
}>, undefined>;
|
|
497
|
+
}>, {
|
|
498
|
+
readonly name: "CampaignBudgetUsage";
|
|
499
|
+
readonly tableName: "promotion_campaign_budget_usage";
|
|
500
|
+
}>>;
|
|
501
|
+
}>, {
|
|
502
|
+
readonly name: "CampaignBudget";
|
|
503
|
+
readonly tableName: "promotion_campaign_budget";
|
|
504
|
+
}>>, false>;
|
|
505
|
+
promotions: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, "Promotion">>;
|
|
506
|
+
}>, {
|
|
507
|
+
readonly name: "Campaign";
|
|
508
|
+
readonly tableName: "promotion_campaign";
|
|
509
|
+
}>, undefined>, true>;
|
|
510
|
+
application_method: import("@medusajs/framework/utils").RelationNullableModifier<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
511
|
+
readonly name: "ApplicationMethod";
|
|
512
|
+
readonly tableName: "promotion_application_method";
|
|
513
|
+
}>, import("@medusajs/framework/utils").HasOne<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
514
|
+
readonly name: "ApplicationMethod";
|
|
515
|
+
readonly tableName: "promotion_application_method";
|
|
516
|
+
}>>, false>;
|
|
517
|
+
rules: import("@medusajs/framework/utils").ManyToMany<() => typeof PromotionRule>;
|
|
518
|
+
}>, "Promotion">, undefined>;
|
|
519
|
+
target_rules: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
179
520
|
readonly name: "PromotionRule";
|
|
180
521
|
readonly tableName: "promotion_rule";
|
|
181
522
|
}>>;
|
|
182
|
-
buy_rules: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder
|
|
523
|
+
buy_rules: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
183
524
|
readonly name: "PromotionRule";
|
|
184
525
|
readonly tableName: "promotion_rule";
|
|
185
526
|
}>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"promotion-rule-value.d.ts","sourceRoot":"","sources":["../../src/models/promotion-rule-value.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,kBAAkB,CAAA;AAE5C,QAAA,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"promotion-rule-value.d.ts","sourceRoot":"","sources":["../../src/models/promotion-rule-value.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,kBAAkB,CAAA;AAE5C,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwBpB,CAAA;AAEJ,eAAe,kBAAkB,CAAA"}
|
|
@@ -5,12 +5,27 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const utils_1 = require("@medusajs/framework/utils");
|
|
7
7
|
const promotion_rule_1 = __importDefault(require("./promotion-rule"));
|
|
8
|
-
const PromotionRuleValue = utils_1.model
|
|
8
|
+
const PromotionRuleValue = utils_1.model
|
|
9
|
+
.define({ name: "PromotionRuleValue", tableName: "promotion_rule_value" }, {
|
|
9
10
|
id: utils_1.model.id({ prefix: "prorulval" }).primaryKey(),
|
|
10
11
|
value: utils_1.model.text(),
|
|
11
12
|
promotion_rule: utils_1.model.belongsTo(() => promotion_rule_1.default, {
|
|
12
13
|
mappedBy: "values",
|
|
13
14
|
}),
|
|
14
|
-
})
|
|
15
|
+
})
|
|
16
|
+
.indexes([
|
|
17
|
+
{
|
|
18
|
+
name: "IDX_promotion_rule_value_rule_id_value",
|
|
19
|
+
on: ["promotion_rule_id", "value"],
|
|
20
|
+
unique: false,
|
|
21
|
+
where: "deleted_at IS NULL",
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
name: "IDX_promotion_rule_value_value",
|
|
25
|
+
on: ["value"],
|
|
26
|
+
unique: false,
|
|
27
|
+
where: "deleted_at IS NULL",
|
|
28
|
+
},
|
|
29
|
+
]);
|
|
15
30
|
exports.default = PromotionRuleValue;
|
|
16
31
|
//# sourceMappingURL=promotion-rule-value.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"promotion-rule-value.js","sourceRoot":"","sources":["../../src/models/promotion-rule-value.ts"],"names":[],"mappings":";;;;;AAAA,qDAAiD;AACjD,sEAA4C;AAE5C,MAAM,kBAAkB,GAAG,aAAK,
|
|
1
|
+
{"version":3,"file":"promotion-rule-value.js","sourceRoot":"","sources":["../../src/models/promotion-rule-value.ts"],"names":[],"mappings":";;;;;AAAA,qDAAiD;AACjD,sEAA4C;AAE5C,MAAM,kBAAkB,GAAG,aAAK;KAC7B,MAAM,CACL,EAAE,IAAI,EAAE,oBAAoB,EAAE,SAAS,EAAE,sBAAsB,EAAE,EACjE;IACE,EAAE,EAAE,aAAK,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC,CAAC,UAAU,EAAE;IAClD,KAAK,EAAE,aAAK,CAAC,IAAI,EAAE;IACnB,cAAc,EAAE,aAAK,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,wBAAa,EAAE;QACnD,QAAQ,EAAE,QAAQ;KACnB,CAAC;CACH,CACF;KACA,OAAO,CAAC;IACP;QACE,IAAI,EAAE,wCAAwC;QAC9C,EAAE,EAAE,CAAC,mBAAmB,EAAE,OAAO,CAAC;QAClC,MAAM,EAAE,KAAK;QACb,KAAK,EAAE,oBAAoB;KAC5B;IACD;QACE,IAAI,EAAE,gCAAgC;QACtC,EAAE,EAAE,CAAC,OAAO,CAAC;QACb,MAAM,EAAE,KAAK;QACb,KAAK,EAAE,oBAAoB;KAC5B;CACF,CAAC,CAAA;AAEJ,kBAAe,kBAAkB,CAAA"}
|