@medusajs/promotion 0.0.5 → 1.0.0-rc-20241001083650
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +5 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -20
- package/dist/index.js.map +1 -0
- package/dist/joiner-config.d.ts +1 -8
- package/dist/joiner-config.d.ts.map +1 -1
- package/dist/joiner-config.js +11 -36
- package/dist/joiner-config.js.map +1 -0
- package/dist/migrations/Migration20240227120221.d.ts.map +1 -1
- package/dist/migrations/Migration20240227120221.js +11 -2
- package/dist/migrations/Migration20240227120221.js.map +1 -0
- package/dist/migrations/Migration20240617102917.d.ts +6 -0
- package/dist/migrations/Migration20240617102917.d.ts.map +1 -0
- package/dist/migrations/Migration20240617102917.js +16 -0
- package/dist/migrations/Migration20240617102917.js.map +1 -0
- package/dist/migrations/Migration20240624153824.d.ts +6 -0
- package/dist/migrations/Migration20240624153824.d.ts.map +1 -0
- package/dist/migrations/Migration20240624153824.js +16 -0
- package/dist/migrations/Migration20240624153824.js.map +1 -0
- package/dist/models/application-method.d.ts +5 -7
- package/dist/models/application-method.d.ts.map +1 -1
- package/dist/models/application-method.js +18 -7
- package/dist/models/application-method.js.map +1 -0
- package/dist/models/campaign-budget.d.ts +8 -7
- package/dist/models/campaign-budget.d.ts.map +1 -1
- package/dist/models/campaign-budget.js +10 -5
- package/dist/models/campaign-budget.js.map +1 -0
- package/dist/models/campaign.d.ts +4 -5
- package/dist/models/campaign.d.ts.map +1 -1
- package/dist/models/campaign.js +12 -14
- package/dist/models/campaign.js.map +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/index.js.map +1 -0
- package/dist/models/promotion-rule-value.d.ts +2 -1
- package/dist/models/promotion-rule-value.d.ts.map +1 -1
- package/dist/models/promotion-rule-value.js +3 -2
- package/dist/models/promotion-rule-value.js.map +1 -0
- package/dist/models/promotion-rule.d.ts +2 -2
- package/dist/models/promotion-rule.d.ts.map +1 -1
- package/dist/models/promotion-rule.js +2 -1
- package/dist/models/promotion-rule.js.map +1 -0
- package/dist/models/promotion.d.ts +6 -5
- package/dist/models/promotion.d.ts.map +1 -1
- package/dist/models/promotion.js +10 -5
- package/dist/models/promotion.js.map +1 -0
- package/dist/schema/index.d.ts +3 -0
- package/dist/schema/index.d.ts.map +1 -0
- package/dist/schema/index.js +99 -0
- package/dist/schema/index.js.map +1 -0
- package/dist/services/index.js +1 -0
- package/dist/services/index.js.map +1 -0
- package/dist/services/promotion-module.d.ts +41 -26
- package/dist/services/promotion-module.d.ts.map +1 -1
- package/dist/services/promotion-module.js +293 -100
- package/dist/services/promotion-module.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types/application-method.d.ts +12 -10
- package/dist/types/application-method.d.ts.map +1 -1
- package/dist/types/application-method.js +1 -0
- package/dist/types/application-method.js.map +1 -0
- package/dist/types/campaign-budget.d.ts +8 -6
- package/dist/types/campaign-budget.d.ts.map +1 -1
- package/dist/types/campaign-budget.js +1 -0
- package/dist/types/campaign-budget.js.map +1 -0
- package/dist/types/campaign.d.ts +7 -9
- package/dist/types/campaign.d.ts.map +1 -1
- package/dist/types/campaign.js +1 -0
- package/dist/types/campaign.js.map +1 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/promotion-rule-value.d.ts +1 -1
- package/dist/types/promotion-rule-value.d.ts.map +1 -1
- package/dist/types/promotion-rule-value.js +1 -0
- package/dist/types/promotion-rule-value.js.map +1 -0
- package/dist/types/promotion-rule.d.ts +1 -1
- package/dist/types/promotion-rule.d.ts.map +1 -1
- package/dist/types/promotion-rule.js +1 -0
- package/dist/types/promotion-rule.js.map +1 -0
- package/dist/types/promotion.d.ts +3 -3
- package/dist/types/promotion.d.ts.map +1 -1
- package/dist/types/promotion.js +1 -0
- package/dist/types/promotion.js.map +1 -0
- package/dist/utils/compute-actions/buy-get.d.ts +6 -3
- package/dist/utils/compute-actions/buy-get.d.ts.map +1 -1
- package/dist/utils/compute-actions/buy-get.js +98 -34
- package/dist/utils/compute-actions/buy-get.js.map +1 -0
- package/dist/utils/compute-actions/index.js +1 -0
- package/dist/utils/compute-actions/index.js.map +1 -0
- package/dist/utils/compute-actions/line-items.d.ts +2 -2
- package/dist/utils/compute-actions/line-items.d.ts.map +1 -1
- package/dist/utils/compute-actions/line-items.js +10 -10
- package/dist/utils/compute-actions/line-items.js.map +1 -0
- package/dist/utils/compute-actions/shipping-methods.d.ts +3 -3
- package/dist/utils/compute-actions/shipping-methods.d.ts.map +1 -1
- package/dist/utils/compute-actions/shipping-methods.js +20 -22
- package/dist/utils/compute-actions/shipping-methods.js.map +1 -0
- package/dist/utils/compute-actions/usage.d.ts +2 -3
- package/dist/utils/compute-actions/usage.d.ts.map +1 -1
- package/dist/utils/compute-actions/usage.js +6 -13
- package/dist/utils/compute-actions/usage.js.map +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/validations/application-method.d.ts.map +1 -1
- package/dist/utils/validations/application-method.js +6 -5
- package/dist/utils/validations/application-method.js.map +1 -0
- package/dist/utils/validations/index.js +1 -0
- package/dist/utils/validations/index.js.map +1 -0
- package/dist/utils/validations/promotion-rule.d.ts +2 -2
- package/dist/utils/validations/promotion-rule.d.ts.map +1 -1
- package/dist/utils/validations/promotion-rule.js +27 -7
- package/dist/utils/validations/promotion-rule.js.map +1 -0
- package/package.json +20 -21
- package/dist/initialize/index.d.ts +0 -5
- package/dist/initialize/index.d.ts.map +0 -1
- package/dist/initialize/index.js +0 -16
- package/dist/loaders/connection.d.ts +0 -5
- package/dist/loaders/connection.d.ts.map +0 -1
- package/dist/loaders/connection.js +0 -41
- package/dist/loaders/container.d.ts +0 -3
- package/dist/loaders/container.d.ts.map +0 -1
- package/dist/loaders/container.js +0 -34
- package/dist/loaders/index.d.ts +0 -3
- package/dist/loaders/index.d.ts.map +0 -1
- package/dist/loaders/index.js +0 -18
- package/dist/module-definition.d.ts +0 -5
- package/dist/module-definition.d.ts.map +0 -1
- package/dist/module-definition.js +0 -50
- package/dist/repositories/campaign.d.ts +0 -16
- package/dist/repositories/campaign.d.ts.map +0 -1
- package/dist/repositories/campaign.js +0 -90
- package/dist/repositories/index.d.ts +0 -3
- package/dist/repositories/index.d.ts.map +0 -1
- package/dist/repositories/index.js +0 -7
@@ -1,9 +1,9 @@
|
|
1
|
-
import { DAL, PromotionRuleOperatorValues } from "@medusajs/types";
|
1
|
+
import { DAL, PromotionRuleOperatorValues } from "@medusajs/framework/types";
|
2
2
|
import { Collection, OptionalProps } from "@mikro-orm/core";
|
3
3
|
import ApplicationMethod from "./application-method";
|
4
4
|
import Promotion from "./promotion";
|
5
5
|
import PromotionRuleValue from "./promotion-rule-value";
|
6
|
-
type OptionalFields = "description" | DAL.
|
6
|
+
type OptionalFields = "description" | DAL.SoftDeletableModelDateColumns;
|
7
7
|
type OptionalRelations = "values" | "promotions";
|
8
8
|
export default class PromotionRule {
|
9
9
|
[OptionalProps]?: OptionalFields | OptionalRelations;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"promotion-rule.d.ts","sourceRoot":"","sources":["../../src/models/promotion-rule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,2BAA2B,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"promotion-rule.d.ts","sourceRoot":"","sources":["../../src/models/promotion-rule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,2BAA2B,EAAE,MAAM,2BAA2B,CAAA;AAM5E,OAAO,EAGL,UAAU,EAQV,aAAa,EAId,MAAM,iBAAiB,CAAA;AACxB,OAAO,iBAAiB,MAAM,sBAAsB,CAAA;AACpD,OAAO,SAAS,MAAM,aAAa,CAAA;AACnC,OAAO,kBAAkB,MAAM,wBAAwB,CAAA;AAEvD,KAAK,cAAc,GAAG,aAAa,GAAG,GAAG,CAAC,6BAA6B,CAAA;AACvE,KAAK,iBAAiB,GAAG,QAAQ,GAAG,YAAY,CAAA;AAIhD,MAAM,CAAC,OAAO,OAAO,aAAa;IAChC,CAAC,aAAa,CAAC,CAAC,EAAE,cAAc,GAAG,iBAAiB,CAAA;IAGpD,EAAE,EAAG,MAAM,CAAA;IAGX,WAAW,EAAE,MAAM,GAAG,IAAI,CAAO;IAIjC,SAAS,EAAE,MAAM,CAAA;IAIjB,QAAQ,EAAE,2BAA2B,CAAA;IAKrC,MAAM,yCAAgD;IAGtD,UAAU,gCAAuC;IAMjD,mBAAmB,wCAA+C;IAMlE,gBAAgB,wCAA+C;IAO/D,UAAU,EAAE,IAAI,CAAA;IAQhB,UAAU,EAAE,IAAI,CAAA;IAGhB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAO;IAG9B,QAAQ;IAKR,MAAM;CAGP"}
|
@@ -12,7 +12,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
12
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
13
13
|
};
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
15
|
-
const utils_1 = require("@medusajs/utils");
|
15
|
+
const utils_1 = require("@medusajs/framework/utils");
|
16
16
|
const core_1 = require("@mikro-orm/core");
|
17
17
|
const application_method_1 = __importDefault(require("./application-method"));
|
18
18
|
const promotion_1 = __importDefault(require("./promotion"));
|
@@ -107,3 +107,4 @@ PromotionRule = __decorate([
|
|
107
107
|
(0, core_1.Filter)(utils_1.DALUtils.mikroOrmSoftDeletableFilterOptions)
|
108
108
|
], PromotionRule);
|
109
109
|
exports.default = PromotionRule;
|
110
|
+
//# sourceMappingURL=promotion-rule.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"promotion-rule.js","sourceRoot":"","sources":["../../src/models/promotion-rule.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,qDAIkC;AAClC,0CAewB;AACxB,8EAAoD;AACpD,4DAAmC;AACnC,kFAAuD;AAOxC,IAAM,aAAa,GAAnB,MAAM,aAAa;IA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|
+
import { DAL, PromotionTypeValues } from "@medusajs/framework/types";
|
2
|
+
import { Collection, OptionalProps, Rel } from "@mikro-orm/core";
|
3
3
|
import ApplicationMethod from "./application-method";
|
4
4
|
import Campaign from "./campaign";
|
5
5
|
import PromotionRule from "./promotion-rule";
|
6
|
-
type OptionalFields = "is_automatic" | DAL.
|
6
|
+
type OptionalFields = "is_automatic" | DAL.SoftDeletableModelDateColumns;
|
7
7
|
type OptionalRelations = "application_method" | "campaign";
|
8
8
|
export default class Promotion {
|
9
9
|
[OptionalProps]?: OptionalFields | OptionalRelations;
|
10
10
|
id: string;
|
11
11
|
code: string;
|
12
|
-
|
12
|
+
campaign_id: string | null;
|
13
|
+
campaign: Rel<Campaign> | null;
|
13
14
|
is_automatic: boolean;
|
14
15
|
type: PromotionTypeValues;
|
15
|
-
application_method: ApplicationMethod
|
16
|
+
application_method: Rel<ApplicationMethod>;
|
16
17
|
rules: Collection<PromotionRule, object>;
|
17
18
|
created_at: Date;
|
18
19
|
updated_at: Date;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"promotion.d.ts","sourceRoot":"","sources":["../../src/models/promotion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,mBAAmB,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"promotion.d.ts","sourceRoot":"","sources":["../../src/models/promotion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAOpE,OAAO,EAEL,UAAU,EASV,aAAa,EAGb,GAAG,EAEJ,MAAM,iBAAiB,CAAA;AACxB,OAAO,iBAAiB,MAAM,sBAAsB,CAAA;AACpD,OAAO,QAAQ,MAAM,YAAY,CAAA;AACjC,OAAO,aAAa,MAAM,kBAAkB,CAAA;AAE5C,KAAK,cAAc,GAAG,cAAc,GAAG,GAAG,CAAC,6BAA6B,CAAA;AACxE,KAAK,iBAAiB,GAAG,oBAAoB,GAAG,UAAU,CAAA;AAI1D,MAAM,CAAC,OAAO,OAAO,SAAS;IAC5B,CAAC,aAAa,CAAC,CAAC,EAAE,cAAc,GAAG,iBAAiB,CAAA;IAGpD,EAAE,EAAG,MAAM,CAAA;IASX,IAAI,EAAE,MAAM,CAAA;IAQZ,WAAW,EAAE,MAAM,GAAG,IAAI,CAAO;IAGjC,QAAQ,EAAE,GAAG,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAA;IAG9B,YAAY,EAAE,OAAO,CAAQ;IAI7B,IAAI,EAAE,mBAAmB,CAAA;IAOzB,kBAAkB,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAA;IAO1C,KAAK,oCAA2C;IAOhD,UAAU,EAAE,IAAI,CAAA;IAQhB,UAAU,EAAE,IAAI,CAAA;IAGhB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAO;IAG9B,QAAQ;IAKR,MAAM;CAGP"}
|
package/dist/models/promotion.js
CHANGED
@@ -12,14 +12,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
12
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
13
13
|
};
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
15
|
-
const utils_1 = require("@medusajs/utils");
|
15
|
+
const utils_1 = require("@medusajs/framework/utils");
|
16
16
|
const core_1 = require("@mikro-orm/core");
|
17
17
|
const application_method_1 = __importDefault(require("./application-method"));
|
18
18
|
const campaign_1 = __importDefault(require("./campaign"));
|
19
19
|
const promotion_rule_1 = __importDefault(require("./promotion-rule"));
|
20
20
|
let Promotion = class Promotion {
|
21
21
|
constructor() {
|
22
|
-
this.
|
22
|
+
this.campaign_id = null;
|
23
23
|
this.is_automatic = false;
|
24
24
|
this.rules = new core_1.Collection(this);
|
25
25
|
this.deleted_at = null;
|
@@ -46,13 +46,17 @@ __decorate([
|
|
46
46
|
__metadata("design:type", String)
|
47
47
|
], Promotion.prototype, "code", void 0);
|
48
48
|
__decorate([
|
49
|
-
(0, utils_1.Searchable)(),
|
50
49
|
(0, core_1.ManyToOne)(() => campaign_1.default, {
|
50
|
+
columnType: "text",
|
51
51
|
fieldName: "campaign_id",
|
52
52
|
nullable: true,
|
53
|
-
|
53
|
+
mapToPk: true,
|
54
54
|
}),
|
55
55
|
__metadata("design:type", Object)
|
56
|
+
], Promotion.prototype, "campaign_id", void 0);
|
57
|
+
__decorate([
|
58
|
+
(0, core_1.ManyToOne)(() => campaign_1.default, { persist: false }),
|
59
|
+
__metadata("design:type", Object)
|
56
60
|
], Promotion.prototype, "campaign", void 0);
|
57
61
|
__decorate([
|
58
62
|
(0, core_1.Property)({ columnType: "boolean", default: false }),
|
@@ -69,7 +73,7 @@ __decorate([
|
|
69
73
|
mappedBy: (am) => am.promotion,
|
70
74
|
cascade: ["soft-remove"],
|
71
75
|
}),
|
72
|
-
__metadata("design:type",
|
76
|
+
__metadata("design:type", Object)
|
73
77
|
], Promotion.prototype, "application_method", void 0);
|
74
78
|
__decorate([
|
75
79
|
(0, core_1.ManyToMany)(() => promotion_rule_1.default, "promotions", {
|
@@ -117,3 +121,4 @@ Promotion = __decorate([
|
|
117
121
|
(0, core_1.Filter)(utils_1.DALUtils.mikroOrmSoftDeletableFilterOptions)
|
118
122
|
], Promotion);
|
119
123
|
exports.default = Promotion;
|
124
|
+
//# sourceMappingURL=promotion.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"promotion.js","sourceRoot":"","sources":["../../src/models/promotion.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,qDAKkC;AAClC,0CAgBwB;AACxB,8EAAoD;AACpD,0DAAiC;AACjC,sEAA4C;AAO7B,IAAM,SAAS,GAAf,MAAM,SAAS;IAAf;QAqBb,gBAAW,GAAkB,IAAI,CAAA;QAMjC,iBAAY,GAAY,KAAK,CAAA;QAkB7B,UAAK,GAAG,IAAI,iBAAU,CAAqB,IAAI,CAAC,CAAA;QAkBhD,eAAU,GAAgB,IAAI,CAAA;IAWhC,CAAC;IARC,QAAQ;QACN,IAAI,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S;QAC9B,OAAO,EAAE,CAAC,aAAa,CAAQ;KAChC,CAAC;;qDACwC;AAO1C;IALC,IAAA,iBAAU,EAAC,GAAG,EAAE,CAAC,wBAAa,EAAE,YAAY,EAAE;QAC7C,KAAK,EAAE,IAAI;QACX,UAAU,EAAE,0BAA0B;QACtC,OAAO,EAAE,CAAC,aAAa,CAAQ;KAChC,CAAC;;wCAC8C;AAOhD;IALC,IAAA,eAAQ,EAAC;QACR,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE;QAC1B,UAAU,EAAE,aAAa;QACzB,UAAU,EAAE,OAAO;KACpB,CAAC;8BACU,IAAI;6CAAA;AAQhB;IANC,IAAA,eAAQ,EAAC;QACR,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE;QAC1B,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE;QAC1B,UAAU,EAAE,aAAa;QACzB,UAAU,EAAE,OAAO;KACpB,CAAC;8BACU,IAAI;6CAAA;AAGhB;IADC,IAAA,eAAQ,EAAC,EAAE,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CAC1B;AAG9B;IADC,IAAA,mBAAY,GAAE;;;;yCAGd;AAGD;IADC,IAAA,aAAM,GAAE;;;;uCAGR;AAzEkB,SAAS;IAF7B,IAAA,aAAM,EAAC,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC;IAClC,IAAA,aAAM,EAAC,gBAAQ,CAAC,kCAAkC,CAAC;GAC/B,SAAS,CA0E7B;kBA1EoB,SAAS"}
|
@@ -0,0 +1,3 @@
|
|
1
|
+
declare const _default: "\nenum PromotionTypeValues {\n standard\n buyget\n}\n\nenum PromotionRuleOperatorValues {\n gt\n lt\n eq\n ne\n in\n lte\n gte\n}\n\nenum CampaignBudgetTypeValues {\n spend\n usage\n}\n\nenum ApplicationMethodTypeValues {\n fixed\n percentage\n}\n\nenum ApplicationMethodTargetTypeValues {\n order\n shipping_methods\n items\n}\n\nenum ApplicationMethodAllocationValues {\n each\n across\n}\n\ntype Promotion {\n id: ID!\n code: String\n type: PromotionTypeValues\n is_automatic: Boolean\n application_method: ApplicationMethod\n rules: [PromotionRule]\n campaign_id: String\n campaign: Campaign\n}\n\ntype PromotionRule {\n id: ID!\n description: String\n attribute: String\n operator: PromotionRuleOperatorValues\n values: [PromotionRuleValue!]!\n}\n\ntype PromotionRuleValue {\n id: ID!\n value: String\n}\n\ntype Campaign {\n id: ID!\n name: String\n description: String\n campaign_identifier: String\n starts_at: DateTime\n ends_at: DateTime\n budget: CampaignBudget\n promotions: [Promotion]\n}\n\ntype CampaignBudget {\n id: ID!\n type: CampaignBudgetTypeValues\n limit: Int\n used: Int\n currency_code: String\n}\n\ntype ApplicationMethod {\n id: ID!\n type: ApplicationMethodTypeValues\n target_type: ApplicationMethodTargetTypeValues\n allocation: ApplicationMethodAllocationValues\n value: Float\n currency_code: String\n max_quantity: Int\n buy_rules_min_quantity: Int\n apply_to_quantity: Int\n promotion: Promotion\n target_rules: [PromotionRule]\n buy_rules: [PromotionRule]\n}\n\n";
|
2
|
+
export default _default;
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schema/index.ts"],"names":[],"mappings":";AAAA,wBA+FC"}
|
@@ -0,0 +1,99 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = `
|
4
|
+
enum PromotionTypeValues {
|
5
|
+
standard
|
6
|
+
buyget
|
7
|
+
}
|
8
|
+
|
9
|
+
enum PromotionRuleOperatorValues {
|
10
|
+
gt
|
11
|
+
lt
|
12
|
+
eq
|
13
|
+
ne
|
14
|
+
in
|
15
|
+
lte
|
16
|
+
gte
|
17
|
+
}
|
18
|
+
|
19
|
+
enum CampaignBudgetTypeValues {
|
20
|
+
spend
|
21
|
+
usage
|
22
|
+
}
|
23
|
+
|
24
|
+
enum ApplicationMethodTypeValues {
|
25
|
+
fixed
|
26
|
+
percentage
|
27
|
+
}
|
28
|
+
|
29
|
+
enum ApplicationMethodTargetTypeValues {
|
30
|
+
order
|
31
|
+
shipping_methods
|
32
|
+
items
|
33
|
+
}
|
34
|
+
|
35
|
+
enum ApplicationMethodAllocationValues {
|
36
|
+
each
|
37
|
+
across
|
38
|
+
}
|
39
|
+
|
40
|
+
type Promotion {
|
41
|
+
id: ID!
|
42
|
+
code: String
|
43
|
+
type: PromotionTypeValues
|
44
|
+
is_automatic: Boolean
|
45
|
+
application_method: ApplicationMethod
|
46
|
+
rules: [PromotionRule]
|
47
|
+
campaign_id: String
|
48
|
+
campaign: Campaign
|
49
|
+
}
|
50
|
+
|
51
|
+
type PromotionRule {
|
52
|
+
id: ID!
|
53
|
+
description: String
|
54
|
+
attribute: String
|
55
|
+
operator: PromotionRuleOperatorValues
|
56
|
+
values: [PromotionRuleValue!]!
|
57
|
+
}
|
58
|
+
|
59
|
+
type PromotionRuleValue {
|
60
|
+
id: ID!
|
61
|
+
value: String
|
62
|
+
}
|
63
|
+
|
64
|
+
type Campaign {
|
65
|
+
id: ID!
|
66
|
+
name: String
|
67
|
+
description: String
|
68
|
+
campaign_identifier: String
|
69
|
+
starts_at: DateTime
|
70
|
+
ends_at: DateTime
|
71
|
+
budget: CampaignBudget
|
72
|
+
promotions: [Promotion]
|
73
|
+
}
|
74
|
+
|
75
|
+
type CampaignBudget {
|
76
|
+
id: ID!
|
77
|
+
type: CampaignBudgetTypeValues
|
78
|
+
limit: Int
|
79
|
+
used: Int
|
80
|
+
currency_code: String
|
81
|
+
}
|
82
|
+
|
83
|
+
type ApplicationMethod {
|
84
|
+
id: ID!
|
85
|
+
type: ApplicationMethodTypeValues
|
86
|
+
target_type: ApplicationMethodTargetTypeValues
|
87
|
+
allocation: ApplicationMethodAllocationValues
|
88
|
+
value: Float
|
89
|
+
currency_code: String
|
90
|
+
max_quantity: Int
|
91
|
+
buy_rules_min_quantity: Int
|
92
|
+
apply_to_quantity: Int
|
93
|
+
promotion: Promotion
|
94
|
+
target_rules: [PromotionRule]
|
95
|
+
buy_rules: [PromotionRule]
|
96
|
+
}
|
97
|
+
|
98
|
+
`;
|
99
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schema/index.ts"],"names":[],"mappings":";;AAAA,kBAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+Fd,CAAA"}
|
package/dist/services/index.js
CHANGED
@@ -6,3 +6,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.PromotionModuleService = void 0;
|
7
7
|
var promotion_module_1 = require("./promotion-module");
|
8
8
|
Object.defineProperty(exports, "PromotionModuleService", { enumerable: true, get: function () { return __importDefault(promotion_module_1).default; } });
|
9
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":";;;;;;AAAA,uDAAsE;AAA7D,2IAAA,OAAO,OAA0B"}
|
@@ -1,17 +1,19 @@
|
|
1
|
-
import { Context, DAL, InternalModuleDeclaration, ModuleJoinerConfig, ModulesSdkTypes, PromotionTypes } from "@medusajs/types";
|
2
|
-
import { ModulesSdkUtils } from "@medusajs/utils";
|
1
|
+
import { CampaignBudgetTypeValues, Context, DAL, InternalModuleDeclaration, ModuleJoinerConfig, ModulesSdkTypes, PromotionTypes } from "@medusajs/framework/types";
|
3
2
|
import { ApplicationMethod, Campaign, CampaignBudget, Promotion, PromotionRule, PromotionRuleValue } from "../models";
|
4
3
|
import { ApplicationMethodRuleTypes } from "../types";
|
5
4
|
type InjectedDependencies = {
|
6
5
|
baseRepository: DAL.RepositoryService;
|
7
|
-
promotionService: ModulesSdkTypes.
|
8
|
-
applicationMethodService: ModulesSdkTypes.
|
9
|
-
promotionRuleService: ModulesSdkTypes.
|
10
|
-
promotionRuleValueService: ModulesSdkTypes.
|
11
|
-
campaignService: ModulesSdkTypes.
|
12
|
-
campaignBudgetService: ModulesSdkTypes.
|
6
|
+
promotionService: ModulesSdkTypes.IMedusaInternalService<any>;
|
7
|
+
applicationMethodService: ModulesSdkTypes.IMedusaInternalService<any>;
|
8
|
+
promotionRuleService: ModulesSdkTypes.IMedusaInternalService<any>;
|
9
|
+
promotionRuleValueService: ModulesSdkTypes.IMedusaInternalService<any>;
|
10
|
+
campaignService: ModulesSdkTypes.IMedusaInternalService<any>;
|
11
|
+
campaignBudgetService: ModulesSdkTypes.IMedusaInternalService<any>;
|
13
12
|
};
|
14
|
-
declare const PromotionModuleService_base:
|
13
|
+
declare const PromotionModuleService_base: import("@medusajs/framework/utils").MedusaServiceReturnType<{
|
14
|
+
Promotion: {
|
15
|
+
dto: PromotionTypes.PromotionDTO;
|
16
|
+
};
|
15
17
|
ApplicationMethod: {
|
16
18
|
dto: PromotionTypes.ApplicationMethodDTO;
|
17
19
|
};
|
@@ -28,31 +30,32 @@ declare const PromotionModuleService_base: new (container: InjectedDependencies)
|
|
28
30
|
dto: PromotionTypes.PromotionRuleValueDTO;
|
29
31
|
};
|
30
32
|
}>;
|
31
|
-
export default class PromotionModuleService
|
33
|
+
export default class PromotionModuleService extends PromotionModuleService_base implements PromotionTypes.IPromotionModuleService {
|
32
34
|
protected readonly moduleDeclaration: InternalModuleDeclaration;
|
33
35
|
protected baseRepository_: DAL.RepositoryService;
|
34
|
-
protected promotionService_: ModulesSdkTypes.
|
35
|
-
protected applicationMethodService_: ModulesSdkTypes.
|
36
|
-
protected promotionRuleService_: ModulesSdkTypes.
|
37
|
-
protected promotionRuleValueService_: ModulesSdkTypes.
|
38
|
-
protected campaignService_: ModulesSdkTypes.
|
39
|
-
protected campaignBudgetService_: ModulesSdkTypes.
|
36
|
+
protected promotionService_: ModulesSdkTypes.IMedusaInternalService<Promotion>;
|
37
|
+
protected applicationMethodService_: ModulesSdkTypes.IMedusaInternalService<ApplicationMethod>;
|
38
|
+
protected promotionRuleService_: ModulesSdkTypes.IMedusaInternalService<PromotionRule>;
|
39
|
+
protected promotionRuleValueService_: ModulesSdkTypes.IMedusaInternalService<PromotionRuleValue>;
|
40
|
+
protected campaignService_: ModulesSdkTypes.IMedusaInternalService<Campaign>;
|
41
|
+
protected campaignBudgetService_: ModulesSdkTypes.IMedusaInternalService<CampaignBudget>;
|
40
42
|
constructor({ baseRepository, promotionService, applicationMethodService, promotionRuleService, promotionRuleValueService, campaignService, campaignBudgetService, }: InjectedDependencies, moduleDeclaration: InternalModuleDeclaration);
|
41
43
|
__joinerConfig(): ModuleJoinerConfig;
|
42
44
|
registerUsage(computedActions: PromotionTypes.UsageComputedActions[], sharedContext?: Context): Promise<void>;
|
45
|
+
revertUsage(computedActions: PromotionTypes.UsageComputedActions[], sharedContext?: Context): Promise<void>;
|
43
46
|
computeActions(promotionCodes: string[], applicationContext: PromotionTypes.ComputeActionContext, options?: PromotionTypes.ComputeActionOptions, sharedContext?: Context): Promise<PromotionTypes.ComputeActions[]>;
|
44
|
-
|
45
|
-
|
46
|
-
protected
|
47
|
-
|
48
|
-
|
49
|
-
protected
|
47
|
+
createPromotions(data: PromotionTypes.CreatePromotionDTO, sharedContext?: Context): Promise<PromotionTypes.PromotionDTO>;
|
48
|
+
createPromotions(data: PromotionTypes.CreatePromotionDTO[], sharedContext?: Context): Promise<PromotionTypes.PromotionDTO[]>;
|
49
|
+
protected createPromotions_(data: PromotionTypes.CreatePromotionDTO[], sharedContext?: Context): Promise<Promotion[]>;
|
50
|
+
updatePromotions(data: PromotionTypes.UpdatePromotionDTO, sharedContext?: Context): Promise<PromotionTypes.PromotionDTO>;
|
51
|
+
updatePromotions(data: PromotionTypes.UpdatePromotionDTO[], sharedContext?: Context): Promise<PromotionTypes.PromotionDTO[]>;
|
52
|
+
protected updatePromotions_(data: PromotionTypes.UpdatePromotionDTO[], sharedContext?: Context): Promise<Promotion[]>;
|
50
53
|
updatePromotionRules(data: PromotionTypes.UpdatePromotionRuleDTO[], sharedContext?: Context): Promise<PromotionTypes.PromotionRuleDTO[]>;
|
51
|
-
protected updatePromotionRules_(data: PromotionTypes.UpdatePromotionRuleDTO[], sharedContext?: Context): Promise<
|
54
|
+
protected updatePromotionRules_(data: PromotionTypes.UpdatePromotionRuleDTO[], sharedContext?: Context): Promise<PromotionRule[]>;
|
52
55
|
addPromotionRules(promotionId: string, rulesData: PromotionTypes.CreatePromotionRuleDTO[], sharedContext?: Context): Promise<PromotionTypes.PromotionRuleDTO[]>;
|
53
56
|
addPromotionTargetRules(promotionId: string, rulesData: PromotionTypes.CreatePromotionRuleDTO[], sharedContext?: Context): Promise<PromotionTypes.PromotionRuleDTO[]>;
|
54
57
|
addPromotionBuyRules(promotionId: string, rulesData: PromotionTypes.CreatePromotionRuleDTO[], sharedContext?: Context): Promise<PromotionTypes.PromotionRuleDTO[]>;
|
55
|
-
protected createPromotionRulesAndValues_(rulesData: PromotionTypes.CreatePromotionRuleDTO[], relationName: "promotions" | "method_target_rules" | "method_buy_rules", relation: Promotion | ApplicationMethod, sharedContext?: Context): Promise<
|
58
|
+
protected createPromotionRulesAndValues_(rulesData: PromotionTypes.CreatePromotionRuleDTO[], relationName: "promotions" | "method_target_rules" | "method_buy_rules", relation: Promotion | ApplicationMethod, sharedContext?: Context): Promise<PromotionRule[]>;
|
56
59
|
removePromotionRules(promotionId: string, ruleIds: string[], sharedContext?: Context): Promise<void>;
|
57
60
|
protected removePromotionRules_(promotionId: string, ruleIds: string[], sharedContext?: Context): Promise<void>;
|
58
61
|
removePromotionTargetRules(promotionId: string, ruleIds: string[], sharedContext?: Context): Promise<void>;
|
@@ -60,10 +63,22 @@ export default class PromotionModuleService<TApplicationMethod extends Applicati
|
|
60
63
|
protected removeApplicationMethodRules_(promotionId: string, ruleIds: string[], relation: ApplicationMethodRuleTypes.TARGET_RULES | ApplicationMethodRuleTypes.BUY_RULES, sharedContext?: Context): Promise<void>;
|
61
64
|
createCampaigns(data: PromotionTypes.CreateCampaignDTO, sharedContext?: Context): Promise<PromotionTypes.CampaignDTO>;
|
62
65
|
createCampaigns(data: PromotionTypes.CreateCampaignDTO[], sharedContext?: Context): Promise<PromotionTypes.CampaignDTO[]>;
|
63
|
-
protected createCampaigns_(data: PromotionTypes.CreateCampaignDTO[], sharedContext?: Context): Promise<
|
66
|
+
protected createCampaigns_(data: PromotionTypes.CreateCampaignDTO[], sharedContext?: Context): Promise<Campaign[]>;
|
67
|
+
protected validateCampaignBudgetData(data: {
|
68
|
+
type?: CampaignBudgetTypeValues;
|
69
|
+
currency_code?: string | null;
|
70
|
+
}): void;
|
64
71
|
updateCampaigns(data: PromotionTypes.UpdateCampaignDTO, sharedContext?: Context): Promise<PromotionTypes.CampaignDTO>;
|
65
72
|
updateCampaigns(data: PromotionTypes.UpdateCampaignDTO[], sharedContext?: Context): Promise<PromotionTypes.CampaignDTO[]>;
|
66
|
-
protected updateCampaigns_(data: PromotionTypes.UpdateCampaignDTO[], sharedContext?: Context): Promise<
|
73
|
+
protected updateCampaigns_(data: PromotionTypes.UpdateCampaignDTO[], sharedContext?: Context): Promise<Campaign[]>;
|
74
|
+
addPromotionsToCampaign(data: PromotionTypes.AddPromotionsToCampaignDTO, sharedContext?: Context): Promise<{
|
75
|
+
ids: string[];
|
76
|
+
}>;
|
77
|
+
protected addPromotionsToCampaign_(data: PromotionTypes.AddPromotionsToCampaignDTO, sharedContext?: Context): Promise<string[]>;
|
78
|
+
removePromotionsFromCampaign(data: PromotionTypes.AddPromotionsToCampaignDTO, sharedContext?: Context): Promise<{
|
79
|
+
ids: string[];
|
80
|
+
}>;
|
81
|
+
protected removePromotionsFromCampaign_(data: PromotionTypes.AddPromotionsToCampaignDTO, sharedContext?: Context): Promise<string[]>;
|
67
82
|
}
|
68
83
|
export {};
|
69
84
|
//# sourceMappingURL=promotion-module.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"promotion-module.d.ts","sourceRoot":"","sources":["../../src/services/promotion-module.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,GAAG,EACH,yBAAyB,EACzB,kBAAkB,EAClB,eAAe,EACf,cAAc,EACf,MAAM,
|
1
|
+
{"version":3,"file":"promotion-module.d.ts","sourceRoot":"","sources":["../../src/services/promotion-module.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,OAAO,EACP,GAAG,EACH,yBAAyB,EACzB,kBAAkB,EAClB,eAAe,EACf,cAAc,EACf,MAAM,2BAA2B,CAAA;AAoBlC,OAAO,EACL,iBAAiB,EACjB,QAAQ,EACR,cAAc,EACd,SAAS,EACT,aAAa,EACb,kBAAkB,EACnB,MAAM,SAAS,CAAA;AAChB,OAAO,EACL,0BAA0B,EAU3B,MAAM,QAAQ,CAAA;AAWf,KAAK,oBAAoB,GAAG;IAC1B,cAAc,EAAE,GAAG,CAAC,iBAAiB,CAAA;IACrC,gBAAgB,EAAE,eAAe,CAAC,sBAAsB,CAAC,GAAG,CAAC,CAAA;IAC7D,wBAAwB,EAAE,eAAe,CAAC,sBAAsB,CAAC,GAAG,CAAC,CAAA;IACrE,oBAAoB,EAAE,eAAe,CAAC,sBAAsB,CAAC,GAAG,CAAC,CAAA;IACjE,yBAAyB,EAAE,eAAe,CAAC,sBAAsB,CAAC,GAAG,CAAC,CAAA;IACtE,eAAe,EAAE,eAAe,CAAC,sBAAsB,CAAC,GAAG,CAAC,CAAA;IAC5D,qBAAqB,EAAE,eAAe,CAAC,sBAAsB,CAAC,GAAG,CAAC,CAAA;CACnE,CAAA;;eAIc;QAAE,GAAG,EAAE,cAAc,CAAC,YAAY,CAAA;KAAE;uBAC5B;QAAE,GAAG,EAAE,cAAc,CAAC,oBAAoB,CAAA;KAAE;cACrD;QAAE,GAAG,EAAE,cAAc,CAAC,WAAW,CAAA;KA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