@medusajs/pricing 0.2.0-snapshot-20240429062340 → 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 +6 -6
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -9
- package/dist/index.js.map +1 -0
- package/dist/joiner-config.d.ts +2 -10
- package/dist/joiner-config.d.ts.map +1 -0
- package/dist/joiner-config.js +6 -48
- package/dist/joiner-config.js.map +1 -0
- package/dist/migrations/Migration20230929122253.d.ts +1 -0
- package/dist/migrations/Migration20230929122253.d.ts.map +1 -0
- package/dist/migrations/Migration20230929122253.js +1 -0
- package/dist/migrations/Migration20230929122253.js.map +1 -0
- package/dist/migrations/Migration20240322094407.d.ts +1 -0
- package/dist/migrations/Migration20240322094407.d.ts.map +1 -0
- package/dist/migrations/Migration20240322094407.js +1 -0
- package/dist/migrations/Migration20240322094407.js.map +1 -0
- package/dist/migrations/Migration20240322113359.d.ts +1 -0
- package/dist/migrations/Migration20240322113359.d.ts.map +1 -0
- package/dist/migrations/Migration20240322113359.js +1 -0
- package/dist/migrations/Migration20240322113359.js.map +1 -0
- package/dist/migrations/Migration20240322120125.d.ts +1 -0
- package/dist/migrations/Migration20240322120125.d.ts.map +1 -0
- package/dist/migrations/Migration20240322120125.js +1 -0
- package/dist/migrations/Migration20240322120125.js.map +1 -0
- package/dist/migrations/Migration20240626133555.d.ts +5 -0
- package/dist/migrations/Migration20240626133555.d.ts.map +1 -0
- package/dist/migrations/Migration20240626133555.js +34 -0
- package/dist/migrations/Migration20240626133555.js.map +1 -0
- package/dist/migrations/Migration20240704094505.d.ts +6 -0
- package/dist/migrations/Migration20240704094505.d.ts.map +1 -0
- package/dist/migrations/Migration20240704094505.js +16 -0
- package/dist/migrations/Migration20240704094505.js.map +1 -0
- package/dist/models/index.d.ts +2 -3
- package/dist/models/index.d.ts.map +1 -0
- package/dist/models/index.js +4 -7
- package/dist/models/index.js.map +1 -0
- package/dist/models/price-list-rule.d.ts +7 -9
- package/dist/models/price-list-rule.d.ts.map +1 -0
- package/dist/models/price-list-rule.js +10 -30
- package/dist/models/price-list-rule.js.map +1 -0
- package/dist/models/price-list.d.ts +4 -5
- package/dist/models/price-list.d.ts.map +1 -0
- package/dist/models/price-list.js +2 -10
- package/dist/models/price-list.js.map +1 -0
- package/dist/models/price-preference.d.ts +13 -0
- package/dist/models/price-preference.d.ts.map +1 -0
- package/dist/models/{rule-type.js → price-preference.js} +37 -41
- package/dist/models/price-preference.js.map +1 -0
- package/dist/models/price-rule.d.ts +6 -10
- package/dist/models/price-rule.d.ts.map +1 -0
- package/dist/models/price-rule.js +8 -46
- package/dist/models/price-rule.js.map +1 -0
- package/dist/models/price-set.d.ts +1 -4
- package/dist/models/price-set.d.ts.map +1 -0
- package/dist/models/price-set.js +2 -20
- package/dist/models/price-set.js.map +1 -0
- package/dist/models/price.d.ts +7 -6
- package/dist/models/price.d.ts.map +1 -0
- package/dist/models/price.js +7 -6
- package/dist/models/price.js.map +1 -0
- package/dist/repositories/index.d.ts +2 -1
- package/dist/repositories/index.d.ts.map +1 -0
- package/dist/repositories/index.js +2 -1
- package/dist/repositories/index.js.map +1 -0
- package/dist/repositories/pricing.d.ts +3 -2
- package/dist/repositories/pricing.d.ts.map +1 -0
- package/dist/repositories/pricing.js +41 -45
- package/dist/repositories/pricing.js.map +1 -0
- package/dist/schema/index.d.ts +2 -1
- package/dist/schema/index.d.ts.map +1 -0
- package/dist/schema/index.js +48 -4
- package/dist/schema/index.js.map +1 -0
- package/dist/services/index.d.ts +1 -2
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/index.js +2 -5
- package/dist/services/index.js.map +1 -0
- package/dist/services/pricing-module.d.ts +66 -53
- package/dist/services/pricing-module.d.ts.map +1 -0
- package/dist/services/pricing-module.js +625 -631
- package/dist/services/pricing-module.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/services/index.d.ts +30 -2
- package/dist/types/services/index.d.ts.map +1 -0
- package/dist/types/services/index.js +1 -16
- package/dist/types/services/index.js.map +1 -0
- package/dist/utils/events.d.ts +83 -0
- package/dist/utils/events.d.ts.map +1 -0
- package/dist/utils/events.js +67 -0
- package/dist/utils/events.js.map +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +2 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/validate-price-list-dates.d.ts +1 -0
- package/dist/utils/validate-price-list-dates.d.ts.map +1 -0
- package/dist/utils/validate-price-list-dates.js +2 -1
- package/dist/utils/validate-price-list-dates.js.map +1 -0
- package/package.json +20 -21
- package/dist/initialize/index.d.ts +0 -4
- package/dist/initialize/index.js +0 -17
- package/dist/loaders/connection.d.ts +0 -4
- package/dist/loaders/connection.js +0 -40
- package/dist/loaders/container.d.ts +0 -2
- package/dist/loaders/container.js +0 -34
- package/dist/loaders/index.d.ts +0 -2
- package/dist/loaders/index.js +0 -18
- package/dist/models/price-list-rule-value.d.ts +0 -17
- package/dist/models/price-list-rule-value.js +0 -102
- package/dist/models/price-set-rule-type.d.ts +0 -10
- package/dist/models/price-set-rule-type.js +0 -108
- package/dist/models/rule-type.d.ts +0 -17
- package/dist/module-definition.d.ts +0 -4
- package/dist/module-definition.js +0 -50
- package/dist/scripts/bin/run-seed.d.ts +0 -3
- package/dist/scripts/bin/run-seed.js +0 -38
- package/dist/scripts/seed.d.ts +0 -4
- package/dist/scripts/seed.js +0 -67
- package/dist/services/price-list.d.ts +0 -16
- package/dist/services/price-list.js +0 -34
- package/dist/services/rule-type.d.ts +0 -15
- package/dist/services/rule-type.js +0 -53
- package/dist/types/services/price-list.d.ts +0 -18
- package/dist/types/services/price-list.js +0 -2
- package/dist/types/services/price-set.d.ts +0 -4
- package/dist/types/services/price-set.js +0 -2
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"pric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ACxB,CAAC,CAAC,KAAK,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,EAAE,EAAE;gBACpC,GAAG,CAAC,EAAE,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,KAAK,CAAA;gBAC5B,OAAO,GAAG,CAAA;YACZ,CAAC,EAAE,EAAE,CAAC;YACR,CAAC,CAAC,EAAE,CAAC;KACR,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAA;IAEzC,OAAO,IAAA,kBAAU,EAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAA;AACzC,CAAC,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"root":["../src/index.ts","../src/joiner-config.ts","../src/migrations/migration20230929122253.ts","../src/migrations/migration20240322094407.ts","../src/migrations/migration20240322113359.ts","../src/migrations/migration20240322120125.ts","../src/migrations/migration20240626133555.ts","../src/migrations/migration20240704094505.ts","../src/models/index.ts","../src/models/price-list-rule.ts","../src/models/price-list.ts","../src/models/price-preference.ts","../src/models/price-rule.ts","../src/models/price-set.ts","../src/models/price.ts","../src/repositories/index.ts","../src/repositories/pricing.ts","../src/schema/index.ts","../src/services/index.ts","../src/services/pricing-module.ts","../src/services/__tests__/index.spec.ts","../src/types/index.ts","../src/types/services/index.ts","../src/utils/events.ts","../src/utils/index.ts","../src/utils/validate-price-list-dates.ts"],"version":"5.6.2"}
|
package/dist/types/index.d.ts
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAElD,MAAM,MAAM,sCAAsC,GAAG;IACnD,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,OAAO,KAAK,YAAY,MAAM,YAAY,CAAA"}
|
package/dist/types/index.js
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,2DAA0C"}
|
@@ -1,2 +1,30 @@
|
|
1
|
-
|
2
|
-
export
|
1
|
+
import { PriceListStatus, PricingTypes } from "@medusajs/framework/types";
|
2
|
+
export interface CreatePriceListDTO extends PricingTypes.CreatePriceListDTO {
|
3
|
+
rules_count?: number;
|
4
|
+
price_list_rules?: {
|
5
|
+
attribute: string;
|
6
|
+
value: string;
|
7
|
+
}[];
|
8
|
+
prices?: PricingTypes.CreatePriceListPriceDTO[];
|
9
|
+
}
|
10
|
+
export interface UpdatePriceListDTO {
|
11
|
+
id: string;
|
12
|
+
title?: string;
|
13
|
+
description?: string | null;
|
14
|
+
starts_at?: string | null;
|
15
|
+
ends_at?: string | null;
|
16
|
+
status?: PriceListStatus;
|
17
|
+
number_rules?: number;
|
18
|
+
}
|
19
|
+
export interface UpdatePriceSetInput extends PricingTypes.UpdatePriceSetDTO {
|
20
|
+
id: string;
|
21
|
+
}
|
22
|
+
export interface UpsertPriceDTO extends Omit<PricingTypes.CreatePriceDTO, "rules"> {
|
23
|
+
id?: string;
|
24
|
+
price_list_id?: string;
|
25
|
+
price_rules: PricingTypes.CreatePriceRuleDTO[];
|
26
|
+
}
|
27
|
+
export interface UpdatePricePreferenceInput extends PricingTypes.UpdatePricePreferenceDTO {
|
28
|
+
id: string;
|
29
|
+
}
|
30
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/services/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAEzE,MAAM,WAAW,kBAAmB,SAAQ,YAAY,CAAC,kBAAkB;IACzE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,gBAAgB,CAAC,EAAE;QACjB,SAAS,EAAE,MAAM,CAAA;QACjB,KAAK,EAAE,MAAM,CAAA;KACd,EAAE,CAAA;IACH,MAAM,CAAC,EAAE,YAAY,CAAC,uBAAuB,EAAE,CAAA;CAChD;AAED,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,MAAM,CAAC,EAAE,eAAe,CAAA;IACxB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,MAAM,WAAW,mBAAoB,SAAQ,YAAY,CAAC,iBAAiB;IACzE,EAAE,EAAE,MAAM,CAAA;CACX;AAED,MAAM,WAAW,cACf,SAAQ,IAAI,CAAC,YAAY,CAAC,cAAc,EAAE,OAAO,CAAC;IAClD,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,WAAW,EAAE,YAAY,CAAC,kBAAkB,EAAE,CAAA;CAC/C;AAED,MAAM,WAAW,0BACf,SAAQ,YAAY,CAAC,wBAAwB;IAC7C,EAAE,EAAE,MAAM,CAAA;CACX"}
|
@@ -1,18 +1,3 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
-
if (k2 === undefined) k2 = k;
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
-
}
|
8
|
-
Object.defineProperty(o, k2, desc);
|
9
|
-
}) : (function(o, m, k, k2) {
|
10
|
-
if (k2 === undefined) k2 = k;
|
11
|
-
o[k2] = m[k];
|
12
|
-
}));
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
-
};
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
|
18
|
-
__exportStar(require("./price-set"), exports);
|
3
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/services/index.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,83 @@
|
|
1
|
+
export declare const eventBuilders: {
|
2
|
+
createdPriceSet: ({ data, sharedContext, }: {
|
3
|
+
data: {
|
4
|
+
id: string;
|
5
|
+
} | {
|
6
|
+
id: string;
|
7
|
+
}[];
|
8
|
+
sharedContext: import("@medusajs/types").Context;
|
9
|
+
}) => void;
|
10
|
+
createdPrice: ({ data, sharedContext, }: {
|
11
|
+
data: {
|
12
|
+
id: string;
|
13
|
+
} | {
|
14
|
+
id: string;
|
15
|
+
}[];
|
16
|
+
sharedContext: import("@medusajs/types").Context;
|
17
|
+
}) => void;
|
18
|
+
createdPriceRule: ({ data, sharedContext, }: {
|
19
|
+
data: {
|
20
|
+
id: string;
|
21
|
+
} | {
|
22
|
+
id: string;
|
23
|
+
}[];
|
24
|
+
sharedContext: import("@medusajs/types").Context;
|
25
|
+
}) => void;
|
26
|
+
createdPriceList: ({ data, sharedContext, }: {
|
27
|
+
data: {
|
28
|
+
id: string;
|
29
|
+
} | {
|
30
|
+
id: string;
|
31
|
+
}[];
|
32
|
+
sharedContext: import("@medusajs/types").Context;
|
33
|
+
}) => void;
|
34
|
+
createdPriceListRule: ({ data, sharedContext, }: {
|
35
|
+
data: {
|
36
|
+
id: string;
|
37
|
+
} | {
|
38
|
+
id: string;
|
39
|
+
}[];
|
40
|
+
sharedContext: import("@medusajs/types").Context;
|
41
|
+
}) => void;
|
42
|
+
attachedPriceListRule: ({ data, sharedContext, }: {
|
43
|
+
data: {
|
44
|
+
id: string;
|
45
|
+
} | {
|
46
|
+
id: string;
|
47
|
+
}[];
|
48
|
+
sharedContext: import("@medusajs/types").Context;
|
49
|
+
}) => void;
|
50
|
+
updatedPrice: ({ data, sharedContext, }: {
|
51
|
+
data: {
|
52
|
+
id: string;
|
53
|
+
} | {
|
54
|
+
id: string;
|
55
|
+
}[];
|
56
|
+
sharedContext: import("@medusajs/types").Context;
|
57
|
+
}) => void;
|
58
|
+
updatedPriceRule: ({ data, sharedContext, }: {
|
59
|
+
data: {
|
60
|
+
id: string;
|
61
|
+
} | {
|
62
|
+
id: string;
|
63
|
+
}[];
|
64
|
+
sharedContext: import("@medusajs/types").Context;
|
65
|
+
}) => void;
|
66
|
+
deletedPrice: ({ data, sharedContext, }: {
|
67
|
+
data: {
|
68
|
+
id: string;
|
69
|
+
} | {
|
70
|
+
id: string;
|
71
|
+
}[];
|
72
|
+
sharedContext: import("@medusajs/types").Context;
|
73
|
+
}) => void;
|
74
|
+
deletedPriceRule: ({ data, sharedContext, }: {
|
75
|
+
data: {
|
76
|
+
id: string;
|
77
|
+
} | {
|
78
|
+
id: string;
|
79
|
+
}[];
|
80
|
+
sharedContext: import("@medusajs/types").Context;
|
81
|
+
}) => void;
|
82
|
+
};
|
83
|
+
//# sourceMappingURL=events.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/utils/events.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6DzB,CAAA"}
|
@@ -0,0 +1,67 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.eventBuilders = void 0;
|
4
|
+
const utils_1 = require("@medusajs/framework/utils");
|
5
|
+
exports.eventBuilders = {
|
6
|
+
createdPriceSet: (0, utils_1.moduleEventBuilderFactory)({
|
7
|
+
source: utils_1.Modules.PRICING,
|
8
|
+
action: utils_1.CommonEvents.CREATED,
|
9
|
+
object: "price_set",
|
10
|
+
eventsEnum: utils_1.PricingEvents,
|
11
|
+
}),
|
12
|
+
createdPrice: (0, utils_1.moduleEventBuilderFactory)({
|
13
|
+
source: utils_1.Modules.PRICING,
|
14
|
+
action: utils_1.CommonEvents.CREATED,
|
15
|
+
object: "price",
|
16
|
+
eventsEnum: utils_1.PricingEvents,
|
17
|
+
}),
|
18
|
+
createdPriceRule: (0, utils_1.moduleEventBuilderFactory)({
|
19
|
+
source: utils_1.Modules.PRICING,
|
20
|
+
action: utils_1.CommonEvents.CREATED,
|
21
|
+
object: "price_rule",
|
22
|
+
eventsEnum: utils_1.PricingEvents,
|
23
|
+
}),
|
24
|
+
createdPriceList: (0, utils_1.moduleEventBuilderFactory)({
|
25
|
+
source: utils_1.Modules.PRICING,
|
26
|
+
action: utils_1.CommonEvents.CREATED,
|
27
|
+
object: "price_list",
|
28
|
+
eventsEnum: utils_1.PricingEvents,
|
29
|
+
}),
|
30
|
+
createdPriceListRule: (0, utils_1.moduleEventBuilderFactory)({
|
31
|
+
source: utils_1.Modules.PRICING,
|
32
|
+
action: utils_1.CommonEvents.CREATED,
|
33
|
+
object: "price_list_rule",
|
34
|
+
eventsEnum: utils_1.PricingEvents,
|
35
|
+
}),
|
36
|
+
attachedPriceListRule: (0, utils_1.moduleEventBuilderFactory)({
|
37
|
+
source: utils_1.Modules.PRICING,
|
38
|
+
action: utils_1.CommonEvents.ATTACHED,
|
39
|
+
object: "price_list_rule",
|
40
|
+
eventsEnum: utils_1.PricingEvents,
|
41
|
+
}),
|
42
|
+
updatedPrice: (0, utils_1.moduleEventBuilderFactory)({
|
43
|
+
source: utils_1.Modules.PRICING,
|
44
|
+
action: utils_1.CommonEvents.UPDATED,
|
45
|
+
object: "price",
|
46
|
+
eventsEnum: utils_1.PricingEvents,
|
47
|
+
}),
|
48
|
+
updatedPriceRule: (0, utils_1.moduleEventBuilderFactory)({
|
49
|
+
source: utils_1.Modules.PRICING,
|
50
|
+
action: utils_1.CommonEvents.UPDATED,
|
51
|
+
object: "price_rule",
|
52
|
+
eventsEnum: utils_1.PricingEvents,
|
53
|
+
}),
|
54
|
+
deletedPrice: (0, utils_1.moduleEventBuilderFactory)({
|
55
|
+
source: utils_1.Modules.PRICING,
|
56
|
+
action: utils_1.CommonEvents.DELETED,
|
57
|
+
object: "price",
|
58
|
+
eventsEnum: utils_1.PricingEvents,
|
59
|
+
}),
|
60
|
+
deletedPriceRule: (0, utils_1.moduleEventBuilderFactory)({
|
61
|
+
source: utils_1.Modules.PRICING,
|
62
|
+
action: utils_1.CommonEvents.DELETED,
|
63
|
+
object: "price_rule",
|
64
|
+
eventsEnum: utils_1.PricingEvents,
|
65
|
+
}),
|
66
|
+
};
|
67
|
+
//# sourceMappingURL=events.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/utils/events.ts"],"names":[],"mappings":";;;AAAA,qDAKkC;AAErB,QAAA,aAAa,GAAG;IAC3B,eAAe,EAAE,IAAA,iCAAyB,EAAC;QACzC,MAAM,EAAE,eAAO,CAAC,OAAO;QACvB,MAAM,EAAE,oBAAY,CAAC,OAAO;QAC5B,MAAM,EAAE,WAAW;QACnB,UAAU,EAAE,qBAAa;KAC1B,CAAC;IACF,YAAY,EAAE,IAAA,iCAAyB,EAAC;QACtC,MAAM,EAAE,eAAO,CAAC,OAAO;QACvB,MAAM,EAAE,oBAAY,CAAC,OAAO;QAC5B,MAAM,EAAE,OAAO;QACf,UAAU,EAAE,qBAAa;KAC1B,CAAC;IACF,gBAAgB,EAAE,IAAA,iCAAyB,EAAC;QAC1C,MAAM,EAAE,eAAO,CAAC,OAAO;QACvB,MAAM,EAAE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MAAM,EAAE,oBAAY,CAAC,OAAO;QAC5B,MAAM,EAAE,YAAY;QACpB,UAAU,EAAE,qBAAa;KAC1B,CAAC;CACH,CAAA"}
|
package/dist/utils/index.d.ts
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAA;AAC3C,cAAc,UAAU,CAAA"}
|
package/dist/utils/index.js
CHANGED
@@ -15,3 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./validate-price-list-dates"), exports);
|
18
|
+
__exportStar(require("./events"), exports);
|
19
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA2C;AAC3C,2CAAwB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"validate-price-list-dates.d.ts","sourceRoot":"","sources":["../../src/utils/validate-price-list-dates.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB,kBAAmB;IACpD,SAAS,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,CAAA;IAChC,OAAO,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,CAAA;CAC/B,SAcA,CAAA"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.validatePriceListDates = void 0;
|
4
|
-
const utils_1 = require("@medusajs/utils");
|
4
|
+
const utils_1 = require("@medusajs/framework/utils");
|
5
5
|
const validatePriceListDates = (priceListData) => {
|
6
6
|
if (!!priceListData.starts_at && !(0, utils_1.isDate)(priceListData.starts_at)) {
|
7
7
|
throw new utils_1.MedusaError(utils_1.MedusaError.Types.INVALID_DATA, `Cannot set price list starts at with with invalid date string: ${priceListData.starts_at}`);
|
@@ -11,3 +11,4 @@ const validatePriceListDates = (priceListData) => {
|
|
11
11
|
}
|
12
12
|
};
|
13
13
|
exports.validatePriceListDates = validatePriceListDates;
|
14
|
+
//# sourceMappingURL=validate-price-list-dates.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"validate-price-list-dates.js","sourceRoot":"","sources":["../../src/utils/validate-price-list-dates.ts"],"names":[],"mappings":";;;AAAA,qDAA+D;AAExD,MAAM,sBAAsB,GAAG,CAAC,aAGtC,EAAE,EAAE;IACH,IAAI,CAAC,CAAC,aAAa,CAAC,SAAS,IAAI,CAAC,IAAA,cAAM,EAAC,aAAa,CAAC,SAAS,CAAC,EAAE,CAAC;QAClE,MAAM,IAAI,mBAAW,CACnB,mBAAW,CAAC,KAAK,CAAC,YAAY,EAC9B,kEAAkE,aAAa,CAAC,SAAS,EAAE,CAC5F,CAAA;IACH,CAAC;IAED,IAAI,CAAC,CAAC,aAAa,CAAC,OAAO,IAAI,CAAC,IAAA,cAAM,EAAC,aAAa,CAAC,OAAO,CAAC,EAAE,CAAC;QAC9D,MAAM,IAAI,mBAAW,CACnB,mBAAW,CAAC,KAAK,CAAC,YAAY,EAC9B,gEAAgE,aAAa,CAAC,OAAO,EAAE,CACxF,CAAA;IACH,CAAC;AACH,CAAC,CAAA;AAjBY,QAAA,sBAAsB,0BAiBlC"}
|
package/package.json
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
{
|
2
2
|
"name": "@medusajs/pricing",
|
3
|
-
"version": "0.
|
3
|
+
"version": "1.0.0-rc-20241001083650",
|
4
4
|
"description": "Medusa Pricing module",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"types": "dist/index.d.ts",
|
7
7
|
"files": [
|
8
|
-
"dist"
|
8
|
+
"dist",
|
9
|
+
"!dist/**/__tests__",
|
10
|
+
"!dist/**/__mocks__",
|
11
|
+
"!dist/**/__fixtures__"
|
9
12
|
],
|
10
13
|
"engines": {
|
11
|
-
"node": ">=
|
12
|
-
},
|
13
|
-
"bin": {
|
14
|
-
"medusa-pricing-seed": "dist/scripts/bin/run-seed.js"
|
14
|
+
"node": ">=20"
|
15
15
|
},
|
16
16
|
"repository": {
|
17
17
|
"type": "git",
|
@@ -26,8 +26,8 @@
|
|
26
26
|
"scripts": {
|
27
27
|
"watch": "tsc --build --watch",
|
28
28
|
"watch:test": "tsc --build tsconfig.spec.json --watch",
|
29
|
-
"
|
30
|
-
"build": "rimraf dist && tsc --build &&
|
29
|
+
"resolve:aliases": "tsc --showConfig -p tsconfig.json > tsconfig.resolved.json && tsc-alias -p tsconfig.resolved.json && rimraf tsconfig.resolved.json",
|
30
|
+
"build": "rimraf dist && tsc --build && npm run resolve:aliases",
|
31
31
|
"test": "jest --runInBand --bail --forceExit -- src/**/__tests__/**/*.ts",
|
32
32
|
"test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts",
|
33
33
|
"migration:generate": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts mikro-orm migration:generate",
|
@@ -37,25 +37,24 @@
|
|
37
37
|
"orm:cache:clear": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts mikro-orm cache:clear"
|
38
38
|
},
|
39
39
|
"devDependencies": {
|
40
|
+
"@medusajs/framework": "1.0.0-rc-20241001083650",
|
40
41
|
"@mikro-orm/cli": "5.9.7",
|
41
|
-
"
|
42
|
-
"
|
43
|
-
"
|
42
|
+
"@mikro-orm/core": "5.9.7",
|
43
|
+
"@mikro-orm/migrations": "5.9.7",
|
44
|
+
"@mikro-orm/postgresql": "5.9.7",
|
45
|
+
"@swc/core": "^1.7.28",
|
46
|
+
"@swc/jest": "^0.2.36",
|
47
|
+
"jest": "^29.7.0",
|
48
|
+
"medusa-test-utils": "2.0.0-rc-20241001083650",
|
44
49
|
"rimraf": "^3.0.2",
|
45
|
-
"ts-jest": "^29.1.1",
|
46
|
-
"ts-node": "^10.9.1",
|
47
50
|
"tsc-alias": "^1.8.6",
|
48
|
-
"typescript": "^5.
|
51
|
+
"typescript": "^5.6.2"
|
49
52
|
},
|
50
|
-
"
|
51
|
-
"@medusajs/
|
52
|
-
"@medusajs/types": "1.12.0-snapshot-20240429062340",
|
53
|
-
"@medusajs/utils": "1.12.0-snapshot-20240429062340",
|
53
|
+
"peerDependencies": {
|
54
|
+
"@medusajs/framework": "1.0.0-rc-20241001083650",
|
54
55
|
"@mikro-orm/core": "5.9.7",
|
55
56
|
"@mikro-orm/migrations": "5.9.7",
|
56
57
|
"@mikro-orm/postgresql": "5.9.7",
|
57
|
-
"awilix": "^8.0.
|
58
|
-
"dotenv": "^16.4.5",
|
59
|
-
"knex": "2.4.2"
|
58
|
+
"awilix": "^8.0.1"
|
60
59
|
}
|
61
60
|
}
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import { ExternalModuleDeclaration, InternalModuleDeclaration } from "@medusajs/modules-sdk";
|
2
|
-
import { IPricingModuleService, ModulesSdkTypes } from "@medusajs/types";
|
3
|
-
import { InitializeModuleInjectableDependencies } from "../types";
|
4
|
-
export declare const initialize: (options?: ModulesSdkTypes.ModuleServiceInitializeOptions | ModulesSdkTypes.ModuleServiceInitializeCustomDataLayerOptions | ExternalModuleDeclaration | InternalModuleDeclaration, injectedDependencies?: InitializeModuleInjectableDependencies) => Promise<IPricingModuleService>;
|
package/dist/initialize/index.js
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.initialize = void 0;
|
4
|
-
const modules_sdk_1 = require("@medusajs/modules-sdk");
|
5
|
-
const module_definition_1 = require("../module-definition");
|
6
|
-
const initialize = async (options, injectedDependencies) => {
|
7
|
-
const serviceKey = modules_sdk_1.Modules.PRICING;
|
8
|
-
const loaded = await modules_sdk_1.MedusaModule.bootstrap({
|
9
|
-
moduleKey: serviceKey,
|
10
|
-
defaultPath: modules_sdk_1.MODULE_PACKAGE_NAMES[modules_sdk_1.Modules.PRICING],
|
11
|
-
declaration: options,
|
12
|
-
injectedDependencies,
|
13
|
-
moduleExports: module_definition_1.moduleDefinition,
|
14
|
-
});
|
15
|
-
return loaded[serviceKey];
|
16
|
-
};
|
17
|
-
exports.initialize = initialize;
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import { InternalModuleDeclaration, LoaderOptions } from "@medusajs/modules-sdk";
|
2
|
-
import { ModulesSdkTypes } from "@medusajs/types";
|
3
|
-
declare const _default: ({ options, container, logger, }: LoaderOptions<ModulesSdkTypes.ModuleServiceInitializeOptions | ModulesSdkTypes.ModuleServiceInitializeCustomDataLayerOptions>, moduleDeclaration?: InternalModuleDeclaration) => Promise<void>;
|
4
|
-
export default _default;
|
@@ -1,40 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
-
if (k2 === undefined) k2 = k;
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
-
}
|
8
|
-
Object.defineProperty(o, k2, desc);
|
9
|
-
}) : (function(o, m, k, k2) {
|
10
|
-
if (k2 === undefined) k2 = k;
|
11
|
-
o[k2] = m[k];
|
12
|
-
}));
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
-
}) : function(o, v) {
|
16
|
-
o["default"] = v;
|
17
|
-
});
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
19
|
-
if (mod && mod.__esModule) return mod;
|
20
|
-
var result = {};
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
22
|
-
__setModuleDefault(result, mod);
|
23
|
-
return result;
|
24
|
-
};
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
26
|
-
const utils_1 = require("@medusajs/utils");
|
27
|
-
const PricingModels = __importStar(require("../models"));
|
28
|
-
exports.default = async ({ options, container, logger, }, moduleDeclaration) => {
|
29
|
-
const entities = Object.values(PricingModels);
|
30
|
-
const pathToMigrations = __dirname + "/../migrations";
|
31
|
-
await utils_1.ModulesSdkUtils.mikroOrmConnectionLoader({
|
32
|
-
moduleName: "pricing",
|
33
|
-
entities,
|
34
|
-
container,
|
35
|
-
options,
|
36
|
-
moduleDeclaration,
|
37
|
-
logger,
|
38
|
-
pathToMigrations,
|
39
|
-
});
|
40
|
-
};
|
@@ -1,34 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
-
if (k2 === undefined) k2 = k;
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
-
}
|
8
|
-
Object.defineProperty(o, k2, desc);
|
9
|
-
}) : (function(o, m, k, k2) {
|
10
|
-
if (k2 === undefined) k2 = k;
|
11
|
-
o[k2] = m[k];
|
12
|
-
}));
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
-
}) : function(o, v) {
|
16
|
-
o["default"] = v;
|
17
|
-
});
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
19
|
-
if (mod && mod.__esModule) return mod;
|
20
|
-
var result = {};
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
22
|
-
__setModuleDefault(result, mod);
|
23
|
-
return result;
|
24
|
-
};
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
26
|
-
const utils_1 = require("@medusajs/utils");
|
27
|
-
const ModuleModels = __importStar(require("../models"));
|
28
|
-
const ModuleRepositories = __importStar(require("../repositories"));
|
29
|
-
const ModuleServices = __importStar(require("../services"));
|
30
|
-
exports.default = utils_1.ModulesSdkUtils.moduleContainerLoaderFactory({
|
31
|
-
moduleModels: ModuleModels,
|
32
|
-
moduleRepositories: ModuleRepositories,
|
33
|
-
moduleServices: ModuleServices,
|
34
|
-
});
|
package/dist/loaders/index.d.ts
DELETED
package/dist/loaders/index.js
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
-
if (k2 === undefined) k2 = k;
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
-
}
|
8
|
-
Object.defineProperty(o, k2, desc);
|
9
|
-
}) : (function(o, m, k, k2) {
|
10
|
-
if (k2 === undefined) k2 = k;
|
11
|
-
o[k2] = m[k];
|
12
|
-
}));
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
-
};
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
__exportStar(require("./connection"), exports);
|
18
|
-
__exportStar(require("./container"), exports);
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import { DAL } from "@medusajs/types";
|
2
|
-
import { OptionalProps } from "@mikro-orm/core";
|
3
|
-
import PriceListRule from "./price-list-rule";
|
4
|
-
type OptionalFields = DAL.SoftDeletableEntityDateColumns;
|
5
|
-
export default class PriceListRuleValue {
|
6
|
-
[OptionalProps]?: OptionalFields;
|
7
|
-
id: string;
|
8
|
-
price_list_rule_id: string;
|
9
|
-
price_list_rule: PriceListRule;
|
10
|
-
value: string;
|
11
|
-
created_at: Date;
|
12
|
-
updated_at: Date;
|
13
|
-
deleted_at: Date | null;
|
14
|
-
onCreate(): void;
|
15
|
-
onInit(): void;
|
16
|
-
}
|
17
|
-
export {};
|