@medusajs/promotion 0.0.5-snapshot-20240704130951 → 0.0.5-snapshot-20240711051411
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/joiner-config.d.ts.map +1 -1
- package/dist/joiner-config.js +0 -5
- package/dist/models/campaign-budget.d.ts +1 -1
- package/dist/models/campaign-budget.d.ts.map +1 -1
- package/dist/models/campaign.d.ts +1 -1
- package/dist/models/campaign.d.ts.map +1 -1
- package/dist/models/promotion-rule.d.ts +1 -1
- package/dist/models/promotion-rule.d.ts.map +1 -1
- package/dist/models/promotion.d.ts +1 -1
- package/dist/models/promotion.d.ts.map +1 -1
- package/package.json +5 -8
package/dist/index.d.ts
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
import {
|
2
|
-
declare const
|
3
|
-
|
1
|
+
import { PromotionModuleService } from "./services";
|
2
|
+
declare const _default: import("@medusajs/types").ModuleExports<typeof PromotionModuleService> & {
|
3
|
+
linkable: Record<string, any>;
|
4
|
+
};
|
5
|
+
export default _default;
|
4
6
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAA;;;;AAElD,wBAEE"}
|
package/dist/index.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const utils_1 = require("@medusajs/utils");
|
3
4
|
const _services_1 = require("./services");
|
4
|
-
|
5
|
+
exports.default = (0, utils_1.Module)(utils_1.Modules.PROMOTION, {
|
5
6
|
service: _services_1.PromotionModuleService,
|
6
|
-
};
|
7
|
-
exports.default = moduleDefinition;
|
7
|
+
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"joiner-config.d.ts","sourceRoot":"","sources":["../src/joiner-config.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,
|
1
|
+
{"version":3,"file":"joiner-config.d.ts","sourceRoot":"","sources":["../src/joiner-config.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,uOAEvB,CAAA"}
|
package/dist/joiner-config.js
CHANGED
@@ -5,9 +5,4 @@ const utils_1 = require("@medusajs/utils");
|
|
5
5
|
const _models_1 = require("./models");
|
6
6
|
exports.joinerConfig = (0, utils_1.defineJoinerConfig)(utils_1.Modules.PROMOTION, {
|
7
7
|
models: [_models_1.Promotion, _models_1.Campaign, _models_1.PromotionRule],
|
8
|
-
linkableKeys: {
|
9
|
-
promotion_id: _models_1.Promotion.name,
|
10
|
-
campaign_id: _models_1.Campaign.name,
|
11
|
-
promotion_rule_id: _models_1.PromotionRule.name,
|
12
|
-
},
|
13
8
|
});
|
@@ -2,7 +2,7 @@ import { BigNumberRawValue, CampaignBudgetTypeValues, DAL } from "@medusajs/type
|
|
2
2
|
import { BigNumber } from "@medusajs/utils";
|
3
3
|
import { OptionalProps, Rel } from "@mikro-orm/core";
|
4
4
|
import Campaign from "./campaign";
|
5
|
-
type OptionalFields = "description" | "limit" | "used" | DAL.
|
5
|
+
type OptionalFields = "description" | "limit" | "used" | DAL.SoftDeletableModelDateColumns;
|
6
6
|
export default class CampaignBudget {
|
7
7
|
[OptionalProps]?: OptionalFields;
|
8
8
|
id: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"campaign-budget.d.ts","sourceRoot":"","sources":["../../src/models/campaign-budget.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,wBAAwB,EACxB,GAAG,EACJ,MAAM,iBAAiB,CAAA;AACxB,OAAO,EACL,SAAS,EAKV,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAQL,aAAa,EAGb,GAAG,EACJ,MAAM,iBAAiB,CAAA;AACxB,OAAO,QAAQ,MAAM,YAAY,CAAA;AAEjC,KAAK,cAAc,GACf,aAAa,GACb,OAAO,GACP,MAAM,GACN,GAAG,CAAC,
|
1
|
+
{"version":3,"file":"campaign-budget.d.ts","sourceRoot":"","sources":["../../src/models/campaign-budget.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,wBAAwB,EACxB,GAAG,EACJ,MAAM,iBAAiB,CAAA;AACxB,OAAO,EACL,SAAS,EAKV,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAQL,aAAa,EAGb,GAAG,EACJ,MAAM,iBAAiB,CAAA;AACxB,OAAO,QAAQ,MAAM,YAAY,CAAA;AAEjC,KAAK,cAAc,GACf,aAAa,GACb,OAAO,GACP,MAAM,GACN,GAAG,CAAC,6BAA6B,CAAA;AAIrC,MAAM,CAAC,OAAO,OAAO,cAAc;IACjC,CAAC,aAAa,CAAC,CAAC,EAAE,cAAc,CAAA;IAGhC,EAAE,EAAG,MAAM,CAAA;IAIX,IAAI,EAAE,wBAAwB,CAAA;IAK9B,QAAQ,EAAE,GAAG,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAO;IAGrC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAO;IAGnC,KAAK,EAAE,SAAS,GAAG,MAAM,GAAG,IAAI,CAAO;IAGvC,SAAS,EAAE,iBAAiB,GAAG,IAAI,CAAO;IAG1C,IAAI,EAAE,SAAS,GAAG,MAAM,CAAI;IAG5B,QAAQ,EAAE,iBAAiB,CAAA;IAO3B,UAAU,EAAE,IAAI,CAAA;IAQhB,UAAU,EAAE,IAAI,CAAA;IAGhB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAO;IAG9B,QAAQ;IAKR,MAAM;CAGP"}
|
@@ -3,7 +3,7 @@ import { Collection, OptionalProps, Rel } from "@mikro-orm/core";
|
|
3
3
|
import CampaignBudget from "./campaign-budget";
|
4
4
|
import Promotion from "./promotion";
|
5
5
|
type OptionalRelations = "budget";
|
6
|
-
type OptionalFields = "description" | "starts_at" | "ends_at" | DAL.
|
6
|
+
type OptionalFields = "description" | "starts_at" | "ends_at" | DAL.SoftDeletableModelDateColumns;
|
7
7
|
export default class Campaign {
|
8
8
|
[OptionalProps]?: OptionalFields | OptionalRelations;
|
9
9
|
id: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"campaign.d.ts","sourceRoot":"","sources":["../../src/models/campaign.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAA;AAOrC,OAAO,EAEL,UAAU,EAMV,aAAa,EAGb,GAAG,EACJ,MAAM,iBAAiB,CAAA;AACxB,OAAO,cAAc,MAAM,mBAAmB,CAAA;AAC9C,OAAO,SAAS,MAAM,aAAa,CAAA;AAEnC,KAAK,iBAAiB,GAAG,QAAQ,CAAA;AACjC,KAAK,cAAc,GACf,aAAa,GACb,WAAW,GACX,SAAS,GACT,GAAG,CAAC,
|
1
|
+
{"version":3,"file":"campaign.d.ts","sourceRoot":"","sources":["../../src/models/campaign.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAA;AAOrC,OAAO,EAEL,UAAU,EAMV,aAAa,EAGb,GAAG,EACJ,MAAM,iBAAiB,CAAA;AACxB,OAAO,cAAc,MAAM,mBAAmB,CAAA;AAC9C,OAAO,SAAS,MAAM,aAAa,CAAA;AAEnC,KAAK,iBAAiB,GAAG,QAAQ,CAAA;AACjC,KAAK,cAAc,GACf,aAAa,GACb,WAAW,GACX,SAAS,GACT,GAAG,CAAC,6BAA6B,CAAA;AAYrC,MAAM,CAAC,OAAO,OAAO,QAAQ;IAC3B,CAAC,aAAa,CAAC,CAAC,EAAE,cAAc,GAAG,iBAAiB,CAAA;IAGpD,EAAE,EAAG,MAAM,CAAA;IAIX,IAAI,EAAE,MAAM,CAAA;IAIZ,WAAW,EAAE,MAAM,GAAG,IAAI,CAAO;IAIjC,mBAAmB,EAAE,MAAM,CAAA;IAM3B,SAAS,EAAE,IAAI,GAAG,IAAI,CAAO;IAM7B,OAAO,EAAE,IAAI,GAAG,IAAI,CAAO;IAQ3B,MAAM,EAAE,GAAG,CAAC,cAAc,CAAC,GAAG,IAAI,CAAO;IAGzC,UAAU,gCAAuC;IAOjD,UAAU,EAAE,IAAI,CAAA;IAQhB,UAAU,EAAE,IAAI,CAAA;IAGhB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAO;IAG9B,QAAQ;IAKR,MAAM;CAGP"}
|
@@ -3,7 +3,7 @@ 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,iBAAiB,CAAA;AAElE,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,
|
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,iBAAiB,CAAA;AAElE,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"}
|
@@ -3,7 +3,7 @@ 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;
|
@@ -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,i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QAAQ;IAKR,MAAM;CAGP"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@medusajs/promotion",
|
3
|
-
"version": "0.0.5-snapshot-
|
3
|
+
"version": "0.0.5-snapshot-20240711051411",
|
4
4
|
"description": "Medusa Promotion module",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"types": "dist/index.d.ts",
|
@@ -34,11 +34,11 @@
|
|
34
34
|
"orm:cache:clear": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts mikro-orm cache:clear"
|
35
35
|
},
|
36
36
|
"devDependencies": {
|
37
|
-
"@medusajs/types": "1.12.0-snapshot-
|
37
|
+
"@medusajs/types": "1.12.0-snapshot-20240711051411",
|
38
38
|
"@mikro-orm/cli": "5.9.7",
|
39
39
|
"cross-env": "^5.2.1",
|
40
40
|
"jest": "^29.7.0",
|
41
|
-
"medusa-test-utils": "1.1.45-snapshot-
|
41
|
+
"medusa-test-utils": "1.1.45-snapshot-20240711051411",
|
42
42
|
"rimraf": "^3.0.2",
|
43
43
|
"ts-jest": "^29.1.1",
|
44
44
|
"ts-node": "^10.9.1",
|
@@ -46,13 +46,10 @@
|
|
46
46
|
"typescript": "^5.1.6"
|
47
47
|
},
|
48
48
|
"dependencies": {
|
49
|
-
"@medusajs/
|
50
|
-
"@medusajs/utils": "1.12.0-snapshot-20240704130951",
|
49
|
+
"@medusajs/utils": "1.12.0-snapshot-20240711051411",
|
51
50
|
"@mikro-orm/core": "5.9.7",
|
52
51
|
"@mikro-orm/migrations": "5.9.7",
|
53
52
|
"@mikro-orm/postgresql": "5.9.7",
|
54
|
-
"awilix": "^8.0.0"
|
55
|
-
"dotenv": "^16.4.5",
|
56
|
-
"knex": "2.4.2"
|
53
|
+
"awilix": "^8.0.0"
|
57
54
|
}
|
58
55
|
}
|