@medusajs/promotion 3.0.0-snapshot-20250410112222 → 3.0.0-snapshot-20251104011621
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
|
@@ -5,7 +5,9 @@ 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 campaign_1 = __importDefault(require("./campaign"));
|
|
8
|
-
const
|
|
8
|
+
const campaign_budget_usage_1 = __importDefault(require("./campaign-budget-usage"));
|
|
9
|
+
const CampaignBudget = utils_1.model
|
|
10
|
+
.define({ name: "CampaignBudget", tableName: "promotion_campaign_budget" }, {
|
|
9
11
|
id: utils_1.model.id({ prefix: "probudg" }).primaryKey(),
|
|
10
12
|
type: utils_1.model
|
|
11
13
|
.enum(utils_1.PromotionUtils.CampaignBudgetType)
|
|
@@ -16,6 +18,20 @@ const CampaignBudget = utils_1.model.define({ name: "CampaignBudget", tableName:
|
|
|
16
18
|
campaign: utils_1.model.belongsTo(() => campaign_1.default, {
|
|
17
19
|
mappedBy: "budget",
|
|
18
20
|
}),
|
|
21
|
+
/**
|
|
22
|
+
* @since 2.11.0
|
|
23
|
+
*/
|
|
24
|
+
attribute: utils_1.model.text().nullable(), // e.g. "customer_id", "customer_email"
|
|
25
|
+
// usages when budget type is "limit/use by attribute"
|
|
26
|
+
/**
|
|
27
|
+
* @since 2.11.0
|
|
28
|
+
*/
|
|
29
|
+
usages: utils_1.model.hasMany(() => campaign_budget_usage_1.default, {
|
|
30
|
+
mappedBy: "budget",
|
|
31
|
+
}),
|
|
32
|
+
})
|
|
33
|
+
.cascades({
|
|
34
|
+
delete: ["usages"],
|
|
19
35
|
});
|
|
20
36
|
exports.default = CampaignBudget;
|
|
21
37
|
//# sourceMappingURL=campaign-budget.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"campaign-budget.js","sourceRoot":"","sources":["../../src/models/campaign-budget.ts"],"names":[],"mappings":";;;;;AAAA,qDAAiE;AACjE,0DAAiC;
|
|
1
|
+
{"version":3,"file":"campaign-budget.js","sourceRoot":"","sources":["../../src/models/campaign-budget.ts"],"names":[],"mappings":";;;;;AAAA,qDAAiE;AACjE,0DAAiC;AACjC,oFAAyD;AAEzD,MAAM,cAAc,GAAG,aAAK;KACzB,MAAM,CACL,EAAE,IAAI,EAAE,gBAAgB,EAAE,SAAS,EAAE,2BAA2B,EAAE,EAClE;IACE,EAAE,EAAE,aAAK,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC,UAAU,EAAE;IAChD,IAAI,EAAE,aAAK;SACR,IAAI,CAAC,sBAAc,CAAC,kBAAkB,CAAC;SACvC,KAAK,CAAC,0BAA0B,CAAC;IACpC,aAAa,EAAE,aAAK,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IACtC,KAAK,EAAE,aAAK,CAAC,SAAS,EAAE,CAAC,QAAQ,EAAE;IACnC,IAAI,EAAE,aAAK,CAAC,SAAS,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAClC,QAAQ,EAAE,aAAK,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,kBAAQ,EAAE;QACxC,QAAQ,EAAE,QAAQ;KACnB,CAAC;IAEF;;OAEG;IACH,SAAS,EAAE,aAAK,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,EAAE,uCAAuC;IAE3E,sDAAsD;IACtD;;OAEG;IACH,MAAM,EAAE,aAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,+BAAmB,EAAE;QAC/C,QAAQ,EAAE,QAAQ;KACnB,CAAC;CACH,CACF;KACA,QAAQ,CAAC;IACR,MAAM,EAAE,CAAC,QAAQ,CAAC;CACnB,CAAC,CAAA;AAEJ,kBAAe,cAAc,CAAA"}
|
|
@@ -11,12 +11,13 @@ declare const Campaign: import("@medusajs/framework/utils").DmlEntity<import("@m
|
|
|
11
11
|
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
12
12
|
code: import("@medusajs/framework/utils").TextProperty;
|
|
13
13
|
is_automatic: import("@medusajs/framework/utils").BooleanProperty;
|
|
14
|
+
is_tax_inclusive: import("@medusajs/framework/utils").BooleanProperty;
|
|
14
15
|
type: import("@medusajs/framework/utils").EnumProperty<typeof import("@medusajs/framework/utils").PromotionType>;
|
|
15
16
|
status: import("@medusajs/framework/utils").EnumProperty<typeof import("@medusajs/framework/utils").PromotionStatus>;
|
|
16
|
-
campaign: import("@medusajs/framework/utils").RelationNullableModifier<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder
|
|
17
|
+
campaign: import("@medusajs/framework/utils").RelationNullableModifier<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
17
18
|
readonly name: "Campaign";
|
|
18
19
|
readonly tableName: "promotion_campaign";
|
|
19
|
-
}>, import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder
|
|
20
|
+
}>, import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
20
21
|
readonly name: "Campaign";
|
|
21
22
|
readonly tableName: "promotion_campaign";
|
|
22
23
|
}>, undefined>, true>;
|
|
@@ -30,7 +31,7 @@ declare const Campaign: import("@medusajs/framework/utils").DmlEntity<import("@m
|
|
|
30
31
|
type: import("@medusajs/framework/utils").EnumProperty<typeof import("@medusajs/framework/utils").ApplicationMethodType>;
|
|
31
32
|
target_type: import("@medusajs/framework/utils").EnumProperty<typeof import("@medusajs/framework/utils").ApplicationMethodTargetType>;
|
|
32
33
|
allocation: import("@medusajs/framework/utils").NullableModifier<import("@medusajs/framework/utils").ApplicationMethodAllocation, import("@medusajs/framework/utils").EnumProperty<typeof import("@medusajs/framework/utils").ApplicationMethodAllocation>>;
|
|
33
|
-
promotion: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder
|
|
34
|
+
promotion: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, "Promotion">, undefined>;
|
|
34
35
|
target_rules: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
35
36
|
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
36
37
|
description: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
@@ -39,7 +40,7 @@ declare const Campaign: import("@medusajs/framework/utils").DmlEntity<import("@m
|
|
|
39
40
|
values: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
40
41
|
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
41
42
|
value: import("@medusajs/framework/utils").TextProperty;
|
|
42
|
-
promotion_rule: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder
|
|
43
|
+
promotion_rule: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
43
44
|
readonly name: "PromotionRule";
|
|
44
45
|
readonly tableName: "promotion_rule";
|
|
45
46
|
}>, undefined>;
|
|
@@ -47,12 +48,12 @@ declare const Campaign: import("@medusajs/framework/utils").DmlEntity<import("@m
|
|
|
47
48
|
readonly name: "PromotionRuleValue";
|
|
48
49
|
readonly tableName: "promotion_rule_value";
|
|
49
50
|
}>>;
|
|
50
|
-
promotions: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder
|
|
51
|
-
method_target_rules: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder
|
|
51
|
+
promotions: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, "Promotion">>;
|
|
52
|
+
method_target_rules: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
52
53
|
readonly name: "ApplicationMethod";
|
|
53
54
|
readonly tableName: "promotion_application_method";
|
|
54
55
|
}>>;
|
|
55
|
-
method_buy_rules: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder
|
|
56
|
+
method_buy_rules: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
56
57
|
readonly name: "ApplicationMethod";
|
|
57
58
|
readonly tableName: "promotion_application_method";
|
|
58
59
|
}>>;
|
|
@@ -68,7 +69,7 @@ declare const Campaign: import("@medusajs/framework/utils").DmlEntity<import("@m
|
|
|
68
69
|
values: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
69
70
|
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
70
71
|
value: import("@medusajs/framework/utils").TextProperty;
|
|
71
|
-
promotion_rule: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder
|
|
72
|
+
promotion_rule: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
72
73
|
readonly name: "PromotionRule";
|
|
73
74
|
readonly tableName: "promotion_rule";
|
|
74
75
|
}>, undefined>;
|
|
@@ -76,12 +77,12 @@ declare const Campaign: import("@medusajs/framework/utils").DmlEntity<import("@m
|
|
|
76
77
|
readonly name: "PromotionRuleValue";
|
|
77
78
|
readonly tableName: "promotion_rule_value";
|
|
78
79
|
}>>;
|
|
79
|
-
promotions: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder
|
|
80
|
-
method_target_rules: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder
|
|
80
|
+
promotions: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, "Promotion">>;
|
|
81
|
+
method_target_rules: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
81
82
|
readonly name: "ApplicationMethod";
|
|
82
83
|
readonly tableName: "promotion_application_method";
|
|
83
84
|
}>>;
|
|
84
|
-
method_buy_rules: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder
|
|
85
|
+
method_buy_rules: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
85
86
|
readonly name: "ApplicationMethod";
|
|
86
87
|
readonly tableName: "promotion_application_method";
|
|
87
88
|
}>>;
|
|
@@ -102,7 +103,7 @@ declare const Campaign: import("@medusajs/framework/utils").DmlEntity<import("@m
|
|
|
102
103
|
type: import("@medusajs/framework/utils").EnumProperty<typeof import("@medusajs/framework/utils").ApplicationMethodType>;
|
|
103
104
|
target_type: import("@medusajs/framework/utils").EnumProperty<typeof import("@medusajs/framework/utils").ApplicationMethodTargetType>;
|
|
104
105
|
allocation: import("@medusajs/framework/utils").NullableModifier<import("@medusajs/framework/utils").ApplicationMethodAllocation, import("@medusajs/framework/utils").EnumProperty<typeof import("@medusajs/framework/utils").ApplicationMethodAllocation>>;
|
|
105
|
-
promotion: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder
|
|
106
|
+
promotion: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, "Promotion">, undefined>;
|
|
106
107
|
target_rules: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
107
108
|
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
108
109
|
description: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
@@ -111,7 +112,7 @@ declare const Campaign: import("@medusajs/framework/utils").DmlEntity<import("@m
|
|
|
111
112
|
values: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
112
113
|
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
113
114
|
value: import("@medusajs/framework/utils").TextProperty;
|
|
114
|
-
promotion_rule: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder
|
|
115
|
+
promotion_rule: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
115
116
|
readonly name: "PromotionRule";
|
|
116
117
|
readonly tableName: "promotion_rule";
|
|
117
118
|
}>, undefined>;
|
|
@@ -119,12 +120,12 @@ declare const Campaign: import("@medusajs/framework/utils").DmlEntity<import("@m
|
|
|
119
120
|
readonly name: "PromotionRuleValue";
|
|
120
121
|
readonly tableName: "promotion_rule_value";
|
|
121
122
|
}>>;
|
|
122
|
-
promotions: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder
|
|
123
|
-
method_target_rules: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder
|
|
123
|
+
promotions: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, "Promotion">>;
|
|
124
|
+
method_target_rules: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
124
125
|
readonly name: "ApplicationMethod";
|
|
125
126
|
readonly tableName: "promotion_application_method";
|
|
126
127
|
}>>;
|
|
127
|
-
method_buy_rules: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder
|
|
128
|
+
method_buy_rules: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
128
129
|
readonly name: "ApplicationMethod";
|
|
129
130
|
readonly tableName: "promotion_application_method";
|
|
130
131
|
}>>;
|
|
@@ -140,7 +141,7 @@ declare const Campaign: import("@medusajs/framework/utils").DmlEntity<import("@m
|
|
|
140
141
|
values: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
141
142
|
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
142
143
|
value: import("@medusajs/framework/utils").TextProperty;
|
|
143
|
-
promotion_rule: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder
|
|
144
|
+
promotion_rule: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
144
145
|
readonly name: "PromotionRule";
|
|
145
146
|
readonly tableName: "promotion_rule";
|
|
146
147
|
}>, undefined>;
|
|
@@ -148,12 +149,12 @@ declare const Campaign: import("@medusajs/framework/utils").DmlEntity<import("@m
|
|
|
148
149
|
readonly name: "PromotionRuleValue";
|
|
149
150
|
readonly tableName: "promotion_rule_value";
|
|
150
151
|
}>>;
|
|
151
|
-
promotions: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder
|
|
152
|
-
method_target_rules: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder
|
|
152
|
+
promotions: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, "Promotion">>;
|
|
153
|
+
method_target_rules: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
153
154
|
readonly name: "ApplicationMethod";
|
|
154
155
|
readonly tableName: "promotion_application_method";
|
|
155
156
|
}>>;
|
|
156
|
-
method_buy_rules: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder
|
|
157
|
+
method_buy_rules: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
157
158
|
readonly name: "ApplicationMethod";
|
|
158
159
|
readonly tableName: "promotion_application_method";
|
|
159
160
|
}>>;
|
|
@@ -173,7 +174,7 @@ declare const Campaign: import("@medusajs/framework/utils").DmlEntity<import("@m
|
|
|
173
174
|
values: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
174
175
|
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
175
176
|
value: import("@medusajs/framework/utils").TextProperty;
|
|
176
|
-
promotion_rule: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder
|
|
177
|
+
promotion_rule: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
177
178
|
readonly name: "PromotionRule";
|
|
178
179
|
readonly tableName: "promotion_rule";
|
|
179
180
|
}>, undefined>;
|
|
@@ -181,12 +182,50 @@ declare const Campaign: import("@medusajs/framework/utils").DmlEntity<import("@m
|
|
|
181
182
|
readonly name: "PromotionRuleValue";
|
|
182
183
|
readonly tableName: "promotion_rule_value";
|
|
183
184
|
}>>;
|
|
184
|
-
promotions: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder
|
|
185
|
-
method_target_rules: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<
|
|
185
|
+
promotions: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, "Promotion">>;
|
|
186
|
+
method_target_rules: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
187
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
188
|
+
value: import("@medusajs/framework/utils").NullableModifier<number, import("@medusajs/framework/utils").BigNumberProperty>;
|
|
189
|
+
currency_code: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
190
|
+
max_quantity: import("@medusajs/framework/utils").NullableModifier<number, import("@medusajs/framework/utils").NumberProperty>;
|
|
191
|
+
apply_to_quantity: import("@medusajs/framework/utils").NullableModifier<number, import("@medusajs/framework/utils").NumberProperty>;
|
|
192
|
+
buy_rules_min_quantity: import("@medusajs/framework/utils").NullableModifier<number, import("@medusajs/framework/utils").NumberProperty>;
|
|
193
|
+
type: import("@medusajs/framework/utils").EnumProperty<typeof import("@medusajs/framework/utils").ApplicationMethodType>;
|
|
194
|
+
target_type: import("@medusajs/framework/utils").EnumProperty<typeof import("@medusajs/framework/utils").ApplicationMethodTargetType>;
|
|
195
|
+
allocation: import("@medusajs/framework/utils").NullableModifier<import("@medusajs/framework/utils").ApplicationMethodAllocation, import("@medusajs/framework/utils").EnumProperty<typeof import("@medusajs/framework/utils").ApplicationMethodAllocation>>;
|
|
196
|
+
promotion: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, "Promotion">, undefined>;
|
|
197
|
+
target_rules: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
198
|
+
readonly name: "PromotionRule";
|
|
199
|
+
readonly tableName: "promotion_rule";
|
|
200
|
+
}>>;
|
|
201
|
+
buy_rules: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
202
|
+
readonly name: "PromotionRule";
|
|
203
|
+
readonly tableName: "promotion_rule";
|
|
204
|
+
}>>;
|
|
205
|
+
}>, {
|
|
186
206
|
readonly name: "ApplicationMethod";
|
|
187
207
|
readonly tableName: "promotion_application_method";
|
|
188
208
|
}>>;
|
|
189
|
-
method_buy_rules: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<
|
|
209
|
+
method_buy_rules: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
210
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
211
|
+
value: import("@medusajs/framework/utils").NullableModifier<number, import("@medusajs/framework/utils").BigNumberProperty>;
|
|
212
|
+
currency_code: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
213
|
+
max_quantity: import("@medusajs/framework/utils").NullableModifier<number, import("@medusajs/framework/utils").NumberProperty>;
|
|
214
|
+
apply_to_quantity: import("@medusajs/framework/utils").NullableModifier<number, import("@medusajs/framework/utils").NumberProperty>;
|
|
215
|
+
buy_rules_min_quantity: import("@medusajs/framework/utils").NullableModifier<number, import("@medusajs/framework/utils").NumberProperty>;
|
|
216
|
+
type: import("@medusajs/framework/utils").EnumProperty<typeof import("@medusajs/framework/utils").ApplicationMethodType>;
|
|
217
|
+
target_type: import("@medusajs/framework/utils").EnumProperty<typeof import("@medusajs/framework/utils").ApplicationMethodTargetType>;
|
|
218
|
+
allocation: import("@medusajs/framework/utils").NullableModifier<import("@medusajs/framework/utils").ApplicationMethodAllocation, import("@medusajs/framework/utils").EnumProperty<typeof import("@medusajs/framework/utils").ApplicationMethodAllocation>>;
|
|
219
|
+
promotion: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, "Promotion">, undefined>;
|
|
220
|
+
target_rules: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
221
|
+
readonly name: "PromotionRule";
|
|
222
|
+
readonly tableName: "promotion_rule";
|
|
223
|
+
}>>;
|
|
224
|
+
buy_rules: import("@medusajs/framework/utils").ManyToMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, {
|
|
225
|
+
readonly name: "PromotionRule";
|
|
226
|
+
readonly tableName: "promotion_rule";
|
|
227
|
+
}>>;
|
|
228
|
+
}>, {
|
|
190
229
|
readonly name: "ApplicationMethod";
|
|
191
230
|
readonly tableName: "promotion_application_method";
|
|
192
231
|
}>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"campaign.d.ts","sourceRoot":"","sources":["../../src/models/campaign.ts"],"names":[],"mappings":"AACA,OAAO,cAAc,MAAM,mBAAmB,CAAA;AAG9C,QAAA,MAAM,QAAQ;;;;;;;+EAWQ,OAAO,cAAc,mDAArB,OAAO,cAAc
|
|
1
|
+
{"version":3,"file":"campaign.d.ts","sourceRoot":"","sources":["../../src/models/campaign.ts"],"names":[],"mappings":"AACA,OAAO,cAAc,MAAM,mBAAmB,CAAA;AAG9C,QAAA,MAAM,QAAQ;;;;;;;+EAWQ,OAAO,cAAc,mDAArB,OAAO,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBvC,CAAA;AAEJ,eAAe,QAAQ,CAAA"}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -4,4 +4,5 @@ export { default as CampaignBudget } from "./campaign-budget";
|
|
|
4
4
|
export { default as Promotion } from "./promotion";
|
|
5
5
|
export { default as PromotionRule } from "./promotion-rule";
|
|
6
6
|
export { default as PromotionRuleValue } from "./promotion-rule-value";
|
|
7
|
+
export { default as CampaignBudgetUsage } from "./campaign-budget-usage";
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACnE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAA;AAChD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAC7D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAC3D,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,wBAAwB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACnE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAA;AAChD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAC7D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAC3D,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AACtE,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,yBAAyB,CAAA"}
|
package/dist/models/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.PromotionRuleValue = exports.PromotionRule = exports.Promotion = exports.CampaignBudget = exports.Campaign = exports.ApplicationMethod = void 0;
|
|
6
|
+
exports.CampaignBudgetUsage = exports.PromotionRuleValue = exports.PromotionRule = exports.Promotion = exports.CampaignBudget = exports.Campaign = exports.ApplicationMethod = void 0;
|
|
7
7
|
var application_method_1 = require("./application-method");
|
|
8
8
|
Object.defineProperty(exports, "ApplicationMethod", { enumerable: true, get: function () { return __importDefault(application_method_1).default; } });
|
|
9
9
|
var campaign_1 = require("./campaign");
|
|
@@ -16,4 +16,6 @@ var promotion_rule_1 = require("./promotion-rule");
|
|
|
16
16
|
Object.defineProperty(exports, "PromotionRule", { enumerable: true, get: function () { return __importDefault(promotion_rule_1).default; } });
|
|
17
17
|
var promotion_rule_value_1 = require("./promotion-rule-value");
|
|
18
18
|
Object.defineProperty(exports, "PromotionRuleValue", { enumerable: true, get: function () { return __importDefault(promotion_rule_value_1).default; } });
|
|
19
|
+
var campaign_budget_usage_1 = require("./campaign-budget-usage");
|
|
20
|
+
Object.defineProperty(exports, "CampaignBudgetUsage", { enumerable: true, get: function () { return __importDefault(campaign_budget_usage_1).default; } });
|
|
19
21
|
//# sourceMappingURL=index.js.map
|
package/dist/models/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;;;;AAAA,2DAAmE;AAA1D,wIAAA,OAAO,OAAqB;AACrC,uCAAgD;AAAvC,qHAAA,OAAO,OAAY;AAC5B,qDAA6D;AAApD,kIAAA,OAAO,OAAkB;AAClC,yCAAkD;AAAzC,uHAAA,OAAO,OAAa;AAC7B,mDAA2D;AAAlD,gIAAA,OAAO,OAAiB;AACjC,+DAAsE;AAA7D,2IAAA,OAAO,OAAsB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;;;;AAAA,2DAAmE;AAA1D,wIAAA,OAAO,OAAqB;AACrC,uCAAgD;AAAvC,qHAAA,OAAO,OAAY;AAC5B,qDAA6D;AAApD,kIAAA,OAAO,OAAkB;AAClC,yCAAkD;AAAzC,uHAAA,OAAO,OAAa;AAC7B,mDAA2D;AAAlD,gIAAA,OAAO,OAAiB;AACjC,+DAAsE;AAA7D,2IAAA,OAAO,OAAsB;AACtC,iEAAwE;AAA/D,6IAAA,OAAO,OAAuB"}
|