@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CampaignBudgetTypeValues, Context, DAL, FilterablePromotionProps, FindConfig, InferEntityType, InternalModuleDeclaration, ModuleJoinerConfig, ModulesSdkTypes, PromotionDTO, PromotionTypes } from "@medusajs/framework/types";
|
|
2
2
|
import { ApplicationMethodAllocation, ApplicationMethodTargetType, CampaignBudgetType, PromotionStatus, PromotionType } from "@medusajs/framework/utils";
|
|
3
|
-
import { ApplicationMethod, Campaign, CampaignBudget, Promotion, PromotionRule, PromotionRuleValue } from "../models";
|
|
3
|
+
import { ApplicationMethod, Campaign, CampaignBudget, CampaignBudgetUsage, Promotion, PromotionRule, PromotionRuleValue } from "../models";
|
|
4
4
|
import { ApplicationMethodRuleTypes } from "../types";
|
|
5
5
|
type InjectedDependencies = {
|
|
6
6
|
baseRepository: DAL.RepositoryService;
|
|
@@ -10,6 +10,7 @@ type InjectedDependencies = {
|
|
|
10
10
|
promotionRuleValueService: ModulesSdkTypes.IMedusaInternalService<any>;
|
|
11
11
|
campaignService: ModulesSdkTypes.IMedusaInternalService<any>;
|
|
12
12
|
campaignBudgetService: ModulesSdkTypes.IMedusaInternalService<any>;
|
|
13
|
+
campaignBudgetUsageService: ModulesSdkTypes.IMedusaInternalService<any>;
|
|
13
14
|
};
|
|
14
15
|
declare const PromotionModuleService_base: import("@medusajs/framework/utils").MedusaServiceReturnType<{
|
|
15
16
|
Promotion: {
|
|
@@ -24,6 +25,9 @@ declare const PromotionModuleService_base: import("@medusajs/framework/utils").M
|
|
|
24
25
|
CampaignBudget: {
|
|
25
26
|
dto: PromotionTypes.CampaignBudgetDTO;
|
|
26
27
|
};
|
|
28
|
+
CampaignBudgetUsage: {
|
|
29
|
+
dto: PromotionTypes.CampaignBudgetUsageDTO;
|
|
30
|
+
};
|
|
27
31
|
PromotionRule: {
|
|
28
32
|
dto: PromotionTypes.PromotionRuleDTO;
|
|
29
33
|
};
|
|
@@ -40,11 +44,15 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
40
44
|
protected promotionRuleValueService_: ModulesSdkTypes.IMedusaInternalService<InferEntityType<typeof PromotionRuleValue>>;
|
|
41
45
|
protected campaignService_: ModulesSdkTypes.IMedusaInternalService<InferEntityType<typeof Campaign>>;
|
|
42
46
|
protected campaignBudgetService_: ModulesSdkTypes.IMedusaInternalService<InferEntityType<typeof CampaignBudget>>;
|
|
43
|
-
|
|
47
|
+
protected campaignBudgetUsageService_: ModulesSdkTypes.IMedusaInternalService<InferEntityType<typeof CampaignBudgetUsage>>;
|
|
48
|
+
constructor({ baseRepository, promotionService, applicationMethodService, promotionRuleService, promotionRuleValueService, campaignService, campaignBudgetService, campaignBudgetUsageService, }: InjectedDependencies, moduleDeclaration: InternalModuleDeclaration);
|
|
44
49
|
__joinerConfig(): ModuleJoinerConfig;
|
|
45
50
|
listActivePromotions(filters?: FilterablePromotionProps, config?: FindConfig<PromotionDTO>, sharedContext?: Context): Promise<PromotionDTO[]>;
|
|
46
|
-
|
|
47
|
-
|
|
51
|
+
protected listActivePromotions_(filters?: FilterablePromotionProps, config?: FindConfig<PromotionDTO>, sharedContext?: Context): Promise<InferEntityType<typeof Promotion>[]>;
|
|
52
|
+
protected registerCampaignBudgetUsageByAttribute_(budgetId: string, attributeValue: string, sharedContext?: Context): Promise<void>;
|
|
53
|
+
protected revertCampaignBudgetUsageByAttribute_(budgetId: string, attributeValue: string, sharedContext?: Context): Promise<void>;
|
|
54
|
+
registerUsage(computedActions: PromotionTypes.UsageComputedActions[], registrationContext: PromotionTypes.CampaignBudgetUsageContext, sharedContext?: Context): Promise<void>;
|
|
55
|
+
revertUsage(computedActions: PromotionTypes.UsageComputedActions[], registrationContext: PromotionTypes.CampaignBudgetUsageContext, sharedContext?: Context): Promise<void>;
|
|
48
56
|
computeActions(promotionCodes: string[], applicationContext: PromotionTypes.ComputeActionContext, options?: PromotionTypes.ComputeActionOptions, sharedContext?: Context): Promise<PromotionTypes.ComputeActions[]>;
|
|
49
57
|
createPromotions(data: PromotionTypes.CreatePromotionDTO, sharedContext?: Context): Promise<PromotionTypes.PromotionDTO>;
|
|
50
58
|
createPromotions(data: PromotionTypes.CreatePromotionDTO[], sharedContext?: Context): Promise<PromotionTypes.PromotionDTO[]>;
|
|
@@ -52,6 +60,7 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
52
60
|
id: string;
|
|
53
61
|
code: string;
|
|
54
62
|
is_automatic: boolean;
|
|
63
|
+
is_tax_inclusive: boolean;
|
|
55
64
|
type: PromotionType;
|
|
56
65
|
status: PromotionStatus;
|
|
57
66
|
campaign: {
|
|
@@ -67,7 +76,19 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
67
76
|
currency_code: string | null;
|
|
68
77
|
limit: number | null;
|
|
69
78
|
used: number;
|
|
70
|
-
campaign: any;
|
|
79
|
+
campaign: /*elided*/ any;
|
|
80
|
+
attribute: string | null;
|
|
81
|
+
usages: {
|
|
82
|
+
id: string;
|
|
83
|
+
attribute_value: string;
|
|
84
|
+
used: number;
|
|
85
|
+
budget: /*elided*/ any;
|
|
86
|
+
raw_used: Record<string, unknown>;
|
|
87
|
+
created_at: Date;
|
|
88
|
+
updated_at: Date;
|
|
89
|
+
deleted_at: Date | null;
|
|
90
|
+
budget_id: string;
|
|
91
|
+
}[];
|
|
71
92
|
raw_limit: Record<string, unknown> | null;
|
|
72
93
|
raw_used: Record<string, unknown>;
|
|
73
94
|
created_at: Date;
|
|
@@ -75,7 +96,7 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
75
96
|
deleted_at: Date | null;
|
|
76
97
|
campaign_id: string;
|
|
77
98
|
};
|
|
78
|
-
promotions: any[];
|
|
99
|
+
promotions: /*elided*/ any[];
|
|
79
100
|
created_at: Date;
|
|
80
101
|
updated_at: Date;
|
|
81
102
|
deleted_at: Date | null;
|
|
@@ -90,7 +111,7 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
90
111
|
type: import("@medusajs/framework/utils").ApplicationMethodType;
|
|
91
112
|
target_type: ApplicationMethodTargetType;
|
|
92
113
|
allocation: ApplicationMethodAllocation | null;
|
|
93
|
-
promotion: any;
|
|
114
|
+
promotion: /*elided*/ any;
|
|
94
115
|
target_rules: {
|
|
95
116
|
id: string;
|
|
96
117
|
description: string | null;
|
|
@@ -99,15 +120,15 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
99
120
|
values: {
|
|
100
121
|
id: string;
|
|
101
122
|
value: string;
|
|
102
|
-
promotion_rule: any;
|
|
123
|
+
promotion_rule: /*elided*/ any;
|
|
103
124
|
created_at: Date;
|
|
104
125
|
updated_at: Date;
|
|
105
126
|
deleted_at: Date | null;
|
|
106
127
|
promotion_rule_id: string;
|
|
107
128
|
}[];
|
|
108
|
-
promotions: any[];
|
|
109
|
-
method_target_rules: any[];
|
|
110
|
-
method_buy_rules: any[];
|
|
129
|
+
promotions: /*elided*/ any[];
|
|
130
|
+
method_target_rules: /*elided*/ any[];
|
|
131
|
+
method_buy_rules: /*elided*/ any[];
|
|
111
132
|
created_at: Date;
|
|
112
133
|
updated_at: Date;
|
|
113
134
|
deleted_at: Date | null;
|
|
@@ -120,15 +141,15 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
120
141
|
values: {
|
|
121
142
|
id: string;
|
|
122
143
|
value: string;
|
|
123
|
-
promotion_rule: any;
|
|
144
|
+
promotion_rule: /*elided*/ any;
|
|
124
145
|
created_at: Date;
|
|
125
146
|
updated_at: Date;
|
|
126
147
|
deleted_at: Date | null;
|
|
127
148
|
promotion_rule_id: string;
|
|
128
149
|
}[];
|
|
129
|
-
promotions: any[];
|
|
130
|
-
method_target_rules: any[];
|
|
131
|
-
method_buy_rules: any[];
|
|
150
|
+
promotions: /*elided*/ any[];
|
|
151
|
+
method_target_rules: /*elided*/ any[];
|
|
152
|
+
method_buy_rules: /*elided*/ any[];
|
|
132
153
|
created_at: Date;
|
|
133
154
|
updated_at: Date;
|
|
134
155
|
deleted_at: Date | null;
|
|
@@ -150,15 +171,57 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
150
171
|
values: {
|
|
151
172
|
id: string;
|
|
152
173
|
value: string;
|
|
153
|
-
promotion_rule: any;
|
|
174
|
+
promotion_rule: /*elided*/ any;
|
|
154
175
|
created_at: Date;
|
|
155
176
|
updated_at: Date;
|
|
156
177
|
deleted_at: Date | null;
|
|
157
178
|
promotion_rule_id: string;
|
|
158
179
|
}[];
|
|
159
|
-
promotions: any[];
|
|
160
|
-
method_target_rules:
|
|
161
|
-
|
|
180
|
+
promotions: /*elided*/ any[];
|
|
181
|
+
method_target_rules: {
|
|
182
|
+
id: string;
|
|
183
|
+
value: number | null;
|
|
184
|
+
currency_code: string | null;
|
|
185
|
+
max_quantity: number | null;
|
|
186
|
+
apply_to_quantity: number | null;
|
|
187
|
+
buy_rules_min_quantity: number | null;
|
|
188
|
+
type: import("@medusajs/framework/utils").ApplicationMethodType;
|
|
189
|
+
target_type: ApplicationMethodTargetType;
|
|
190
|
+
allocation: ApplicationMethodAllocation | null;
|
|
191
|
+
promotion: /*elided*/ any;
|
|
192
|
+
target_rules: /*elided*/ any[];
|
|
193
|
+
buy_rules: /*elided*/ any[];
|
|
194
|
+
raw_value: Record<string, unknown> | null;
|
|
195
|
+
raw_max_quantity: Record<string, unknown> | null;
|
|
196
|
+
raw_apply_to_quantity: Record<string, unknown> | null;
|
|
197
|
+
raw_buy_rules_min_quantity: Record<string, unknown> | null;
|
|
198
|
+
created_at: Date;
|
|
199
|
+
updated_at: Date;
|
|
200
|
+
deleted_at: Date | null;
|
|
201
|
+
promotion_id: string;
|
|
202
|
+
}[];
|
|
203
|
+
method_buy_rules: {
|
|
204
|
+
id: string;
|
|
205
|
+
value: number | null;
|
|
206
|
+
currency_code: string | null;
|
|
207
|
+
max_quantity: number | null;
|
|
208
|
+
apply_to_quantity: number | null;
|
|
209
|
+
buy_rules_min_quantity: number | null;
|
|
210
|
+
type: import("@medusajs/framework/utils").ApplicationMethodType;
|
|
211
|
+
target_type: ApplicationMethodTargetType;
|
|
212
|
+
allocation: ApplicationMethodAllocation | null;
|
|
213
|
+
promotion: /*elided*/ any;
|
|
214
|
+
target_rules: /*elided*/ any[];
|
|
215
|
+
buy_rules: /*elided*/ any[];
|
|
216
|
+
raw_value: Record<string, unknown> | null;
|
|
217
|
+
raw_max_quantity: Record<string, unknown> | null;
|
|
218
|
+
raw_apply_to_quantity: Record<string, unknown> | null;
|
|
219
|
+
raw_buy_rules_min_quantity: Record<string, unknown> | null;
|
|
220
|
+
created_at: Date;
|
|
221
|
+
updated_at: Date;
|
|
222
|
+
deleted_at: Date | null;
|
|
223
|
+
promotion_id: string;
|
|
224
|
+
}[];
|
|
162
225
|
created_at: Date;
|
|
163
226
|
updated_at: Date;
|
|
164
227
|
deleted_at: Date | null;
|
|
@@ -174,6 +237,7 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
174
237
|
id: string;
|
|
175
238
|
code: string;
|
|
176
239
|
is_automatic: boolean;
|
|
240
|
+
is_tax_inclusive: boolean;
|
|
177
241
|
type: PromotionType;
|
|
178
242
|
status: PromotionStatus;
|
|
179
243
|
campaign: {
|
|
@@ -189,7 +253,19 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
189
253
|
currency_code: string | null;
|
|
190
254
|
limit: number | null;
|
|
191
255
|
used: number;
|
|
192
|
-
campaign: any;
|
|
256
|
+
campaign: /*elided*/ any;
|
|
257
|
+
attribute: string | null;
|
|
258
|
+
usages: {
|
|
259
|
+
id: string;
|
|
260
|
+
attribute_value: string;
|
|
261
|
+
used: number;
|
|
262
|
+
budget: /*elided*/ any;
|
|
263
|
+
raw_used: Record<string, unknown>;
|
|
264
|
+
created_at: Date;
|
|
265
|
+
updated_at: Date;
|
|
266
|
+
deleted_at: Date | null;
|
|
267
|
+
budget_id: string;
|
|
268
|
+
}[];
|
|
193
269
|
raw_limit: Record<string, unknown> | null;
|
|
194
270
|
raw_used: Record<string, unknown>;
|
|
195
271
|
created_at: Date;
|
|
@@ -197,7 +273,7 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
197
273
|
deleted_at: Date | null;
|
|
198
274
|
campaign_id: string;
|
|
199
275
|
};
|
|
200
|
-
promotions: any[];
|
|
276
|
+
promotions: /*elided*/ any[];
|
|
201
277
|
created_at: Date;
|
|
202
278
|
updated_at: Date;
|
|
203
279
|
deleted_at: Date | null;
|
|
@@ -212,7 +288,7 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
212
288
|
type: import("@medusajs/framework/utils").ApplicationMethodType;
|
|
213
289
|
target_type: ApplicationMethodTargetType;
|
|
214
290
|
allocation: ApplicationMethodAllocation | null;
|
|
215
|
-
promotion: any;
|
|
291
|
+
promotion: /*elided*/ any;
|
|
216
292
|
target_rules: {
|
|
217
293
|
id: string;
|
|
218
294
|
description: string | null;
|
|
@@ -221,15 +297,15 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
221
297
|
values: {
|
|
222
298
|
id: string;
|
|
223
299
|
value: string;
|
|
224
|
-
promotion_rule: any;
|
|
300
|
+
promotion_rule: /*elided*/ any;
|
|
225
301
|
created_at: Date;
|
|
226
302
|
updated_at: Date;
|
|
227
303
|
deleted_at: Date | null;
|
|
228
304
|
promotion_rule_id: string;
|
|
229
305
|
}[];
|
|
230
|
-
promotions: any[];
|
|
231
|
-
method_target_rules: any[];
|
|
232
|
-
method_buy_rules: any[];
|
|
306
|
+
promotions: /*elided*/ any[];
|
|
307
|
+
method_target_rules: /*elided*/ any[];
|
|
308
|
+
method_buy_rules: /*elided*/ any[];
|
|
233
309
|
created_at: Date;
|
|
234
310
|
updated_at: Date;
|
|
235
311
|
deleted_at: Date | null;
|
|
@@ -242,15 +318,15 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
242
318
|
values: {
|
|
243
319
|
id: string;
|
|
244
320
|
value: string;
|
|
245
|
-
promotion_rule: any;
|
|
321
|
+
promotion_rule: /*elided*/ any;
|
|
246
322
|
created_at: Date;
|
|
247
323
|
updated_at: Date;
|
|
248
324
|
deleted_at: Date | null;
|
|
249
325
|
promotion_rule_id: string;
|
|
250
326
|
}[];
|
|
251
|
-
promotions: any[];
|
|
252
|
-
method_target_rules: any[];
|
|
253
|
-
method_buy_rules: any[];
|
|
327
|
+
promotions: /*elided*/ any[];
|
|
328
|
+
method_target_rules: /*elided*/ any[];
|
|
329
|
+
method_buy_rules: /*elided*/ any[];
|
|
254
330
|
created_at: Date;
|
|
255
331
|
updated_at: Date;
|
|
256
332
|
deleted_at: Date | null;
|
|
@@ -272,15 +348,57 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
272
348
|
values: {
|
|
273
349
|
id: string;
|
|
274
350
|
value: string;
|
|
275
|
-
promotion_rule: any;
|
|
351
|
+
promotion_rule: /*elided*/ any;
|
|
276
352
|
created_at: Date;
|
|
277
353
|
updated_at: Date;
|
|
278
354
|
deleted_at: Date | null;
|
|
279
355
|
promotion_rule_id: string;
|
|
280
356
|
}[];
|
|
281
|
-
promotions: any[];
|
|
282
|
-
method_target_rules:
|
|
283
|
-
|
|
357
|
+
promotions: /*elided*/ any[];
|
|
358
|
+
method_target_rules: {
|
|
359
|
+
id: string;
|
|
360
|
+
value: number | null;
|
|
361
|
+
currency_code: string | null;
|
|
362
|
+
max_quantity: number | null;
|
|
363
|
+
apply_to_quantity: number | null;
|
|
364
|
+
buy_rules_min_quantity: number | null;
|
|
365
|
+
type: import("@medusajs/framework/utils").ApplicationMethodType;
|
|
366
|
+
target_type: ApplicationMethodTargetType;
|
|
367
|
+
allocation: ApplicationMethodAllocation | null;
|
|
368
|
+
promotion: /*elided*/ any;
|
|
369
|
+
target_rules: /*elided*/ any[];
|
|
370
|
+
buy_rules: /*elided*/ any[];
|
|
371
|
+
raw_value: Record<string, unknown> | null;
|
|
372
|
+
raw_max_quantity: Record<string, unknown> | null;
|
|
373
|
+
raw_apply_to_quantity: Record<string, unknown> | null;
|
|
374
|
+
raw_buy_rules_min_quantity: Record<string, unknown> | null;
|
|
375
|
+
created_at: Date;
|
|
376
|
+
updated_at: Date;
|
|
377
|
+
deleted_at: Date | null;
|
|
378
|
+
promotion_id: string;
|
|
379
|
+
}[];
|
|
380
|
+
method_buy_rules: {
|
|
381
|
+
id: string;
|
|
382
|
+
value: number | null;
|
|
383
|
+
currency_code: string | null;
|
|
384
|
+
max_quantity: number | null;
|
|
385
|
+
apply_to_quantity: number | null;
|
|
386
|
+
buy_rules_min_quantity: number | null;
|
|
387
|
+
type: import("@medusajs/framework/utils").ApplicationMethodType;
|
|
388
|
+
target_type: ApplicationMethodTargetType;
|
|
389
|
+
allocation: ApplicationMethodAllocation | null;
|
|
390
|
+
promotion: /*elided*/ any;
|
|
391
|
+
target_rules: /*elided*/ any[];
|
|
392
|
+
buy_rules: /*elided*/ any[];
|
|
393
|
+
raw_value: Record<string, unknown> | null;
|
|
394
|
+
raw_max_quantity: Record<string, unknown> | null;
|
|
395
|
+
raw_apply_to_quantity: Record<string, unknown> | null;
|
|
396
|
+
raw_buy_rules_min_quantity: Record<string, unknown> | null;
|
|
397
|
+
created_at: Date;
|
|
398
|
+
updated_at: Date;
|
|
399
|
+
deleted_at: Date | null;
|
|
400
|
+
promotion_id: string;
|
|
401
|
+
}[];
|
|
284
402
|
created_at: Date;
|
|
285
403
|
updated_at: Date;
|
|
286
404
|
deleted_at: Date | null;
|
|
@@ -299,7 +417,7 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
299
417
|
values: {
|
|
300
418
|
id: string;
|
|
301
419
|
value: string;
|
|
302
|
-
promotion_rule: any;
|
|
420
|
+
promotion_rule: /*elided*/ any;
|
|
303
421
|
created_at: Date;
|
|
304
422
|
updated_at: Date;
|
|
305
423
|
deleted_at: Date | null;
|
|
@@ -309,6 +427,7 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
309
427
|
id: string;
|
|
310
428
|
code: string;
|
|
311
429
|
is_automatic: boolean;
|
|
430
|
+
is_tax_inclusive: boolean;
|
|
312
431
|
type: PromotionType;
|
|
313
432
|
status: PromotionStatus;
|
|
314
433
|
campaign: {
|
|
@@ -324,7 +443,19 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
324
443
|
currency_code: string | null;
|
|
325
444
|
limit: number | null;
|
|
326
445
|
used: number;
|
|
327
|
-
campaign: any;
|
|
446
|
+
campaign: /*elided*/ any;
|
|
447
|
+
attribute: string | null;
|
|
448
|
+
usages: {
|
|
449
|
+
id: string;
|
|
450
|
+
attribute_value: string;
|
|
451
|
+
used: number;
|
|
452
|
+
budget: /*elided*/ any;
|
|
453
|
+
raw_used: Record<string, unknown>;
|
|
454
|
+
created_at: Date;
|
|
455
|
+
updated_at: Date;
|
|
456
|
+
deleted_at: Date | null;
|
|
457
|
+
budget_id: string;
|
|
458
|
+
}[];
|
|
328
459
|
raw_limit: Record<string, unknown> | null;
|
|
329
460
|
raw_used: Record<string, unknown>;
|
|
330
461
|
created_at: Date;
|
|
@@ -332,7 +463,7 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
332
463
|
deleted_at: Date | null;
|
|
333
464
|
campaign_id: string;
|
|
334
465
|
};
|
|
335
|
-
promotions: any[];
|
|
466
|
+
promotions: /*elided*/ any[];
|
|
336
467
|
created_at: Date;
|
|
337
468
|
updated_at: Date;
|
|
338
469
|
deleted_at: Date | null;
|
|
@@ -347,9 +478,9 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
347
478
|
type: import("@medusajs/framework/utils").ApplicationMethodType;
|
|
348
479
|
target_type: ApplicationMethodTargetType;
|
|
349
480
|
allocation: ApplicationMethodAllocation | null;
|
|
350
|
-
promotion: any;
|
|
351
|
-
target_rules: any[];
|
|
352
|
-
buy_rules: any[];
|
|
481
|
+
promotion: /*elided*/ any;
|
|
482
|
+
target_rules: /*elided*/ any[];
|
|
483
|
+
buy_rules: /*elided*/ any[];
|
|
353
484
|
raw_value: Record<string, unknown> | null;
|
|
354
485
|
raw_max_quantity: Record<string, unknown> | null;
|
|
355
486
|
raw_apply_to_quantity: Record<string, unknown> | null;
|
|
@@ -359,7 +490,7 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
359
490
|
deleted_at: Date | null;
|
|
360
491
|
promotion_id: string;
|
|
361
492
|
};
|
|
362
|
-
rules: any[];
|
|
493
|
+
rules: /*elided*/ any[];
|
|
363
494
|
created_at: Date;
|
|
364
495
|
updated_at: Date;
|
|
365
496
|
deleted_at: Date | null;
|
|
@@ -375,9 +506,60 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
375
506
|
type: import("@medusajs/framework/utils").ApplicationMethodType;
|
|
376
507
|
target_type: ApplicationMethodTargetType;
|
|
377
508
|
allocation: ApplicationMethodAllocation | null;
|
|
378
|
-
promotion:
|
|
379
|
-
|
|
380
|
-
|
|
509
|
+
promotion: {
|
|
510
|
+
id: string;
|
|
511
|
+
code: string;
|
|
512
|
+
is_automatic: boolean;
|
|
513
|
+
is_tax_inclusive: boolean;
|
|
514
|
+
type: PromotionType;
|
|
515
|
+
status: PromotionStatus;
|
|
516
|
+
campaign: {
|
|
517
|
+
id: string;
|
|
518
|
+
name: string;
|
|
519
|
+
description: string | null;
|
|
520
|
+
campaign_identifier: string;
|
|
521
|
+
starts_at: Date | null;
|
|
522
|
+
ends_at: Date | null;
|
|
523
|
+
budget: {
|
|
524
|
+
id: string;
|
|
525
|
+
type: CampaignBudgetType;
|
|
526
|
+
currency_code: string | null;
|
|
527
|
+
limit: number | null;
|
|
528
|
+
used: number;
|
|
529
|
+
campaign: /*elided*/ any;
|
|
530
|
+
attribute: string | null;
|
|
531
|
+
usages: {
|
|
532
|
+
id: string;
|
|
533
|
+
attribute_value: string;
|
|
534
|
+
used: number;
|
|
535
|
+
budget: /*elided*/ any;
|
|
536
|
+
raw_used: Record<string, unknown>;
|
|
537
|
+
created_at: Date;
|
|
538
|
+
updated_at: Date;
|
|
539
|
+
deleted_at: Date | null;
|
|
540
|
+
budget_id: string;
|
|
541
|
+
}[];
|
|
542
|
+
raw_limit: Record<string, unknown> | null;
|
|
543
|
+
raw_used: Record<string, unknown>;
|
|
544
|
+
created_at: Date;
|
|
545
|
+
updated_at: Date;
|
|
546
|
+
deleted_at: Date | null;
|
|
547
|
+
campaign_id: string;
|
|
548
|
+
};
|
|
549
|
+
promotions: /*elided*/ any[];
|
|
550
|
+
created_at: Date;
|
|
551
|
+
updated_at: Date;
|
|
552
|
+
deleted_at: Date | null;
|
|
553
|
+
};
|
|
554
|
+
application_method: /*elided*/ any;
|
|
555
|
+
rules: /*elided*/ any[];
|
|
556
|
+
created_at: Date;
|
|
557
|
+
updated_at: Date;
|
|
558
|
+
deleted_at: Date | null;
|
|
559
|
+
campaign_id: string | null;
|
|
560
|
+
};
|
|
561
|
+
target_rules: /*elided*/ any[];
|
|
562
|
+
buy_rules: /*elided*/ any[];
|
|
381
563
|
raw_value: Record<string, unknown> | null;
|
|
382
564
|
raw_max_quantity: Record<string, unknown> | null;
|
|
383
565
|
raw_apply_to_quantity: Record<string, unknown> | null;
|
|
@@ -397,9 +579,60 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
397
579
|
type: import("@medusajs/framework/utils").ApplicationMethodType;
|
|
398
580
|
target_type: ApplicationMethodTargetType;
|
|
399
581
|
allocation: ApplicationMethodAllocation | null;
|
|
400
|
-
promotion:
|
|
401
|
-
|
|
402
|
-
|
|
582
|
+
promotion: {
|
|
583
|
+
id: string;
|
|
584
|
+
code: string;
|
|
585
|
+
is_automatic: boolean;
|
|
586
|
+
is_tax_inclusive: boolean;
|
|
587
|
+
type: PromotionType;
|
|
588
|
+
status: PromotionStatus;
|
|
589
|
+
campaign: {
|
|
590
|
+
id: string;
|
|
591
|
+
name: string;
|
|
592
|
+
description: string | null;
|
|
593
|
+
campaign_identifier: string;
|
|
594
|
+
starts_at: Date | null;
|
|
595
|
+
ends_at: Date | null;
|
|
596
|
+
budget: {
|
|
597
|
+
id: string;
|
|
598
|
+
type: CampaignBudgetType;
|
|
599
|
+
currency_code: string | null;
|
|
600
|
+
limit: number | null;
|
|
601
|
+
used: number;
|
|
602
|
+
campaign: /*elided*/ any;
|
|
603
|
+
attribute: string | null;
|
|
604
|
+
usages: {
|
|
605
|
+
id: string;
|
|
606
|
+
attribute_value: string;
|
|
607
|
+
used: number;
|
|
608
|
+
budget: /*elided*/ any;
|
|
609
|
+
raw_used: Record<string, unknown>;
|
|
610
|
+
created_at: Date;
|
|
611
|
+
updated_at: Date;
|
|
612
|
+
deleted_at: Date | null;
|
|
613
|
+
budget_id: string;
|
|
614
|
+
}[];
|
|
615
|
+
raw_limit: Record<string, unknown> | null;
|
|
616
|
+
raw_used: Record<string, unknown>;
|
|
617
|
+
created_at: Date;
|
|
618
|
+
updated_at: Date;
|
|
619
|
+
deleted_at: Date | null;
|
|
620
|
+
campaign_id: string;
|
|
621
|
+
};
|
|
622
|
+
promotions: /*elided*/ any[];
|
|
623
|
+
created_at: Date;
|
|
624
|
+
updated_at: Date;
|
|
625
|
+
deleted_at: Date | null;
|
|
626
|
+
};
|
|
627
|
+
application_method: /*elided*/ any;
|
|
628
|
+
rules: /*elided*/ any[];
|
|
629
|
+
created_at: Date;
|
|
630
|
+
updated_at: Date;
|
|
631
|
+
deleted_at: Date | null;
|
|
632
|
+
campaign_id: string | null;
|
|
633
|
+
};
|
|
634
|
+
target_rules: /*elided*/ any[];
|
|
635
|
+
buy_rules: /*elided*/ any[];
|
|
403
636
|
raw_value: Record<string, unknown> | null;
|
|
404
637
|
raw_max_quantity: Record<string, unknown> | null;
|
|
405
638
|
raw_apply_to_quantity: Record<string, unknown> | null;
|
|
@@ -437,7 +670,19 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
437
670
|
currency_code: string | null;
|
|
438
671
|
limit: number | null;
|
|
439
672
|
used: number;
|
|
440
|
-
campaign: any;
|
|
673
|
+
campaign: /*elided*/ any;
|
|
674
|
+
attribute: string | null;
|
|
675
|
+
usages: {
|
|
676
|
+
id: string;
|
|
677
|
+
attribute_value: string;
|
|
678
|
+
used: number;
|
|
679
|
+
budget: /*elided*/ any;
|
|
680
|
+
raw_used: Record<string, unknown>;
|
|
681
|
+
created_at: Date;
|
|
682
|
+
updated_at: Date;
|
|
683
|
+
deleted_at: Date | null;
|
|
684
|
+
budget_id: string;
|
|
685
|
+
}[];
|
|
441
686
|
raw_limit: Record<string, unknown> | null;
|
|
442
687
|
raw_used: Record<string, unknown>;
|
|
443
688
|
created_at: Date;
|
|
@@ -449,9 +694,10 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
449
694
|
id: string;
|
|
450
695
|
code: string;
|
|
451
696
|
is_automatic: boolean;
|
|
697
|
+
is_tax_inclusive: boolean;
|
|
452
698
|
type: PromotionType;
|
|
453
699
|
status: PromotionStatus;
|
|
454
|
-
campaign: any;
|
|
700
|
+
campaign: /*elided*/ any;
|
|
455
701
|
application_method: {
|
|
456
702
|
id: string;
|
|
457
703
|
value: number | null;
|
|
@@ -462,7 +708,7 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
462
708
|
type: import("@medusajs/framework/utils").ApplicationMethodType;
|
|
463
709
|
target_type: ApplicationMethodTargetType;
|
|
464
710
|
allocation: ApplicationMethodAllocation | null;
|
|
465
|
-
promotion: any;
|
|
711
|
+
promotion: /*elided*/ any;
|
|
466
712
|
target_rules: {
|
|
467
713
|
id: string;
|
|
468
714
|
description: string | null;
|
|
@@ -471,15 +717,15 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
471
717
|
values: {
|
|
472
718
|
id: string;
|
|
473
719
|
value: string;
|
|
474
|
-
promotion_rule: any;
|
|
720
|
+
promotion_rule: /*elided*/ any;
|
|
475
721
|
created_at: Date;
|
|
476
722
|
updated_at: Date;
|
|
477
723
|
deleted_at: Date | null;
|
|
478
724
|
promotion_rule_id: string;
|
|
479
725
|
}[];
|
|
480
|
-
promotions: any[];
|
|
481
|
-
method_target_rules: any[];
|
|
482
|
-
method_buy_rules: any[];
|
|
726
|
+
promotions: /*elided*/ any[];
|
|
727
|
+
method_target_rules: /*elided*/ any[];
|
|
728
|
+
method_buy_rules: /*elided*/ any[];
|
|
483
729
|
created_at: Date;
|
|
484
730
|
updated_at: Date;
|
|
485
731
|
deleted_at: Date | null;
|
|
@@ -492,15 +738,15 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
492
738
|
values: {
|
|
493
739
|
id: string;
|
|
494
740
|
value: string;
|
|
495
|
-
promotion_rule: any;
|
|
741
|
+
promotion_rule: /*elided*/ any;
|
|
496
742
|
created_at: Date;
|
|
497
743
|
updated_at: Date;
|
|
498
744
|
deleted_at: Date | null;
|
|
499
745
|
promotion_rule_id: string;
|
|
500
746
|
}[];
|
|
501
|
-
promotions: any[];
|
|
502
|
-
method_target_rules: any[];
|
|
503
|
-
method_buy_rules: any[];
|
|
747
|
+
promotions: /*elided*/ any[];
|
|
748
|
+
method_target_rules: /*elided*/ any[];
|
|
749
|
+
method_buy_rules: /*elided*/ any[];
|
|
504
750
|
created_at: Date;
|
|
505
751
|
updated_at: Date;
|
|
506
752
|
deleted_at: Date | null;
|
|
@@ -522,15 +768,57 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
522
768
|
values: {
|
|
523
769
|
id: string;
|
|
524
770
|
value: string;
|
|
525
|
-
promotion_rule: any;
|
|
771
|
+
promotion_rule: /*elided*/ any;
|
|
526
772
|
created_at: Date;
|
|
527
773
|
updated_at: Date;
|
|
528
774
|
deleted_at: Date | null;
|
|
529
775
|
promotion_rule_id: string;
|
|
530
776
|
}[];
|
|
531
|
-
promotions: any[];
|
|
532
|
-
method_target_rules:
|
|
533
|
-
|
|
777
|
+
promotions: /*elided*/ any[];
|
|
778
|
+
method_target_rules: {
|
|
779
|
+
id: string;
|
|
780
|
+
value: number | null;
|
|
781
|
+
currency_code: string | null;
|
|
782
|
+
max_quantity: number | null;
|
|
783
|
+
apply_to_quantity: number | null;
|
|
784
|
+
buy_rules_min_quantity: number | null;
|
|
785
|
+
type: import("@medusajs/framework/utils").ApplicationMethodType;
|
|
786
|
+
target_type: ApplicationMethodTargetType;
|
|
787
|
+
allocation: ApplicationMethodAllocation | null;
|
|
788
|
+
promotion: /*elided*/ any;
|
|
789
|
+
target_rules: /*elided*/ any[];
|
|
790
|
+
buy_rules: /*elided*/ any[];
|
|
791
|
+
raw_value: Record<string, unknown> | null;
|
|
792
|
+
raw_max_quantity: Record<string, unknown> | null;
|
|
793
|
+
raw_apply_to_quantity: Record<string, unknown> | null;
|
|
794
|
+
raw_buy_rules_min_quantity: Record<string, unknown> | null;
|
|
795
|
+
created_at: Date;
|
|
796
|
+
updated_at: Date;
|
|
797
|
+
deleted_at: Date | null;
|
|
798
|
+
promotion_id: string;
|
|
799
|
+
}[];
|
|
800
|
+
method_buy_rules: {
|
|
801
|
+
id: string;
|
|
802
|
+
value: number | null;
|
|
803
|
+
currency_code: string | null;
|
|
804
|
+
max_quantity: number | null;
|
|
805
|
+
apply_to_quantity: number | null;
|
|
806
|
+
buy_rules_min_quantity: number | null;
|
|
807
|
+
type: import("@medusajs/framework/utils").ApplicationMethodType;
|
|
808
|
+
target_type: ApplicationMethodTargetType;
|
|
809
|
+
allocation: ApplicationMethodAllocation | null;
|
|
810
|
+
promotion: /*elided*/ any;
|
|
811
|
+
target_rules: /*elided*/ any[];
|
|
812
|
+
buy_rules: /*elided*/ any[];
|
|
813
|
+
raw_value: Record<string, unknown> | null;
|
|
814
|
+
raw_max_quantity: Record<string, unknown> | null;
|
|
815
|
+
raw_apply_to_quantity: Record<string, unknown> | null;
|
|
816
|
+
raw_buy_rules_min_quantity: Record<string, unknown> | null;
|
|
817
|
+
created_at: Date;
|
|
818
|
+
updated_at: Date;
|
|
819
|
+
deleted_at: Date | null;
|
|
820
|
+
promotion_id: string;
|
|
821
|
+
}[];
|
|
534
822
|
created_at: Date;
|
|
535
823
|
updated_at: Date;
|
|
536
824
|
deleted_at: Date | null;
|
|
@@ -563,7 +851,19 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
563
851
|
currency_code: string | null;
|
|
564
852
|
limit: number | null;
|
|
565
853
|
used: number;
|
|
566
|
-
campaign: any;
|
|
854
|
+
campaign: /*elided*/ any;
|
|
855
|
+
attribute: string | null;
|
|
856
|
+
usages: {
|
|
857
|
+
id: string;
|
|
858
|
+
attribute_value: string;
|
|
859
|
+
used: number;
|
|
860
|
+
budget: /*elided*/ any;
|
|
861
|
+
raw_used: Record<string, unknown>;
|
|
862
|
+
created_at: Date;
|
|
863
|
+
updated_at: Date;
|
|
864
|
+
deleted_at: Date | null;
|
|
865
|
+
budget_id: string;
|
|
866
|
+
}[];
|
|
567
867
|
raw_limit: Record<string, unknown> | null;
|
|
568
868
|
raw_used: Record<string, unknown>;
|
|
569
869
|
created_at: Date;
|
|
@@ -575,9 +875,10 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
575
875
|
id: string;
|
|
576
876
|
code: string;
|
|
577
877
|
is_automatic: boolean;
|
|
878
|
+
is_tax_inclusive: boolean;
|
|
578
879
|
type: PromotionType;
|
|
579
880
|
status: PromotionStatus;
|
|
580
|
-
campaign: any;
|
|
881
|
+
campaign: /*elided*/ any;
|
|
581
882
|
application_method: {
|
|
582
883
|
id: string;
|
|
583
884
|
value: number | null;
|
|
@@ -588,7 +889,7 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
588
889
|
type: import("@medusajs/framework/utils").ApplicationMethodType;
|
|
589
890
|
target_type: ApplicationMethodTargetType;
|
|
590
891
|
allocation: ApplicationMethodAllocation | null;
|
|
591
|
-
promotion: any;
|
|
892
|
+
promotion: /*elided*/ any;
|
|
592
893
|
target_rules: {
|
|
593
894
|
id: string;
|
|
594
895
|
description: string | null;
|
|
@@ -597,15 +898,15 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
597
898
|
values: {
|
|
598
899
|
id: string;
|
|
599
900
|
value: string;
|
|
600
|
-
promotion_rule: any;
|
|
901
|
+
promotion_rule: /*elided*/ any;
|
|
601
902
|
created_at: Date;
|
|
602
903
|
updated_at: Date;
|
|
603
904
|
deleted_at: Date | null;
|
|
604
905
|
promotion_rule_id: string;
|
|
605
906
|
}[];
|
|
606
|
-
promotions: any[];
|
|
607
|
-
method_target_rules: any[];
|
|
608
|
-
method_buy_rules: any[];
|
|
907
|
+
promotions: /*elided*/ any[];
|
|
908
|
+
method_target_rules: /*elided*/ any[];
|
|
909
|
+
method_buy_rules: /*elided*/ any[];
|
|
609
910
|
created_at: Date;
|
|
610
911
|
updated_at: Date;
|
|
611
912
|
deleted_at: Date | null;
|
|
@@ -618,15 +919,15 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
618
919
|
values: {
|
|
619
920
|
id: string;
|
|
620
921
|
value: string;
|
|
621
|
-
promotion_rule: any;
|
|
922
|
+
promotion_rule: /*elided*/ any;
|
|
622
923
|
created_at: Date;
|
|
623
924
|
updated_at: Date;
|
|
624
925
|
deleted_at: Date | null;
|
|
625
926
|
promotion_rule_id: string;
|
|
626
927
|
}[];
|
|
627
|
-
promotions: any[];
|
|
628
|
-
method_target_rules: any[];
|
|
629
|
-
method_buy_rules: any[];
|
|
928
|
+
promotions: /*elided*/ any[];
|
|
929
|
+
method_target_rules: /*elided*/ any[];
|
|
930
|
+
method_buy_rules: /*elided*/ any[];
|
|
630
931
|
created_at: Date;
|
|
631
932
|
updated_at: Date;
|
|
632
933
|
deleted_at: Date | null;
|
|
@@ -648,15 +949,57 @@ export default class PromotionModuleService extends PromotionModuleService_base
|
|
|
648
949
|
values: {
|
|
649
950
|
id: string;
|
|
650
951
|
value: string;
|
|
651
|
-
promotion_rule: any;
|
|
952
|
+
promotion_rule: /*elided*/ any;
|
|
652
953
|
created_at: Date;
|
|
653
954
|
updated_at: Date;
|
|
654
955
|
deleted_at: Date | null;
|
|
655
956
|
promotion_rule_id: string;
|
|
656
957
|
}[];
|
|
657
|
-
promotions: any[];
|
|
658
|
-
method_target_rules:
|
|
659
|
-
|
|
958
|
+
promotions: /*elided*/ any[];
|
|
959
|
+
method_target_rules: {
|
|
960
|
+
id: string;
|
|
961
|
+
value: number | null;
|
|
962
|
+
currency_code: string | null;
|
|
963
|
+
max_quantity: number | null;
|
|
964
|
+
apply_to_quantity: number | null;
|
|
965
|
+
buy_rules_min_quantity: number | null;
|
|
966
|
+
type: import("@medusajs/framework/utils").ApplicationMethodType;
|
|
967
|
+
target_type: ApplicationMethodTargetType;
|
|
968
|
+
allocation: ApplicationMethodAllocation | null;
|
|
969
|
+
promotion: /*elided*/ any;
|
|
970
|
+
target_rules: /*elided*/ any[];
|
|
971
|
+
buy_rules: /*elided*/ any[];
|
|
972
|
+
raw_value: Record<string, unknown> | null;
|
|
973
|
+
raw_max_quantity: Record<string, unknown> | null;
|
|
974
|
+
raw_apply_to_quantity: Record<string, unknown> | null;
|
|
975
|
+
raw_buy_rules_min_quantity: Record<string, unknown> | null;
|
|
976
|
+
created_at: Date;
|
|
977
|
+
updated_at: Date;
|
|
978
|
+
deleted_at: Date | null;
|
|
979
|
+
promotion_id: string;
|
|
980
|
+
}[];
|
|
981
|
+
method_buy_rules: {
|
|
982
|
+
id: string;
|
|
983
|
+
value: number | null;
|
|
984
|
+
currency_code: string | null;
|
|
985
|
+
max_quantity: number | null;
|
|
986
|
+
apply_to_quantity: number | null;
|
|
987
|
+
buy_rules_min_quantity: number | null;
|
|
988
|
+
type: import("@medusajs/framework/utils").ApplicationMethodType;
|
|
989
|
+
target_type: ApplicationMethodTargetType;
|
|
990
|
+
allocation: ApplicationMethodAllocation | null;
|
|
991
|
+
promotion: /*elided*/ any;
|
|
992
|
+
target_rules: /*elided*/ any[];
|
|
993
|
+
buy_rules: /*elided*/ any[];
|
|
994
|
+
raw_value: Record<string, unknown> | null;
|
|
995
|
+
raw_max_quantity: Record<string, unknown> | null;
|
|
996
|
+
raw_apply_to_quantity: Record<string, unknown> | null;
|
|
997
|
+
raw_buy_rules_min_quantity: Record<string, unknown> | null;
|
|
998
|
+
created_at: Date;
|
|
999
|
+
updated_at: Date;
|
|
1000
|
+
deleted_at: Date | null;
|
|
1001
|
+
promotion_id: string;
|
|
1002
|
+
}[];
|
|
660
1003
|
created_at: Date;
|
|
661
1004
|
updated_at: Date;
|
|
662
1005
|
deleted_at: Date | null;
|