@medusajs/pricing 2.7.2-snapshot-20250424113529 → 2.7.2-snapshot-20250424132106
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/joiner-config.d.ts.map +1 -1
- package/dist/joiner-config.js +5 -0
- package/dist/joiner-config.js.map +1 -1
- package/dist/schema/index.d.ts +3 -0
- package/dist/schema/index.d.ts.map +1 -0
- package/dist/schema/index.js +62 -0
- package/dist/schema/index.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"joiner-config.d.ts","sourceRoot":"","sources":["../src/joiner-config.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"joiner-config.d.ts","sourceRoot":"","sources":["../src/joiner-config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY,uOAGvB,CAAA"}
|
package/dist/joiner-config.js
CHANGED
@@ -1,9 +1,14 @@
|
|
1
1
|
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
6
|
exports.joinerConfig = void 0;
|
4
7
|
const utils_1 = require("@medusajs/framework/utils");
|
5
8
|
const _models_1 = require("./models");
|
9
|
+
const schema_1 = __importDefault(require("./schema"));
|
6
10
|
exports.joinerConfig = (0, utils_1.defineJoinerConfig)(utils_1.Modules.PRICING, {
|
11
|
+
schema: schema_1.default,
|
7
12
|
models: [_models_1.PriceSet, _models_1.PriceList, _models_1.Price, _models_1.PricePreference],
|
8
13
|
});
|
9
14
|
//# sourceMappingURL=joiner-config.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"joiner-config.js","sourceRoot":"","sources":["../src/joiner-config.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"joiner-config.js","sourceRoot":"","sources":["../src/joiner-config.ts"],"names":[],"mappings":";;;;;;AAAA,qDAAuE;AACvE,qCAAqE;AACrE,sDAA4C;AAE/B,QAAA,YAAY,GAAG,IAAA,0BAAkB,EAAC,eAAO,CAAC,OAAO,EAAE;IAC9D,MAAM,EAAN,gBAAM;IACN,MAAM,EAAE,CAAC,kBAAQ,EAAE,mBAAS,EAAE,eAAK,EAAE,yBAAe,CAAC;CACtD,CAAC,CAAA"}
|
@@ -0,0 +1,3 @@
|
|
1
|
+
export declare const schema = "\ntype PriceSet {\n id: ID!\n prices: [Price]\n calculated_price: CalculatedPriceSet\n}\n\ntype Price {\n id: ID!\n currency_code: String\n amount: Float\n min_quantity: Float\n max_quantity: Float\n rules_count: Int\n price_rules: [PriceRule]\n created_at: DateTime\n updated_at: DateTime\n deleted_at: DateTime\n}\n\ntype PriceRule {\n id: ID!\n price_set_id: String!\n price_set: PriceSet\n attribute: String!\n value: String!\n priority: Int!\n price_id: String!\n price_list_id: String!\n created_at: DateTime\n updated_at: DateTime\n deleted_at: DateTime\n}\n\ntype CalculatedPriceSet {\n id: ID!\n is_calculated_price_price_list: Boolean\n is_calculated_price_tax_inclusive: Boolean\n calculated_amount: Float\n raw_calculated_amount: JSON\n is_original_price_price_list: Boolean\n is_original_price_tax_inclusive: Boolean\n original_amount: Float\n raw_original_amount: JSON\n currency_code: String\n calculated_price: PriceDetails\n original_price: PriceDetails\n}\n\ntype PriceDetails {\n id: ID\n price_list_id: String\n price_list_type: String\n min_quantity: Float\n max_quantity: Float\n}\n";
|
2
|
+
export default schema;
|
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,eAAO,MAAM,MAAM,8nCAwDlB,CAAA;AAED,eAAe,MAAM,CAAA"}
|
@@ -0,0 +1,62 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.schema = void 0;
|
4
|
+
exports.schema = `
|
5
|
+
type PriceSet {
|
6
|
+
id: ID!
|
7
|
+
prices: [Price]
|
8
|
+
calculated_price: CalculatedPriceSet
|
9
|
+
}
|
10
|
+
|
11
|
+
type Price {
|
12
|
+
id: ID!
|
13
|
+
currency_code: String
|
14
|
+
amount: Float
|
15
|
+
min_quantity: Float
|
16
|
+
max_quantity: Float
|
17
|
+
rules_count: Int
|
18
|
+
price_rules: [PriceRule]
|
19
|
+
created_at: DateTime
|
20
|
+
updated_at: DateTime
|
21
|
+
deleted_at: DateTime
|
22
|
+
}
|
23
|
+
|
24
|
+
type PriceRule {
|
25
|
+
id: ID!
|
26
|
+
price_set_id: String!
|
27
|
+
price_set: PriceSet
|
28
|
+
attribute: String!
|
29
|
+
value: String!
|
30
|
+
priority: Int!
|
31
|
+
price_id: String!
|
32
|
+
price_list_id: String!
|
33
|
+
created_at: DateTime
|
34
|
+
updated_at: DateTime
|
35
|
+
deleted_at: DateTime
|
36
|
+
}
|
37
|
+
|
38
|
+
type CalculatedPriceSet {
|
39
|
+
id: ID!
|
40
|
+
is_calculated_price_price_list: Boolean
|
41
|
+
is_calculated_price_tax_inclusive: Boolean
|
42
|
+
calculated_amount: Float
|
43
|
+
raw_calculated_amount: JSON
|
44
|
+
is_original_price_price_list: Boolean
|
45
|
+
is_original_price_tax_inclusive: Boolean
|
46
|
+
original_amount: Float
|
47
|
+
raw_original_amount: JSON
|
48
|
+
currency_code: String
|
49
|
+
calculated_price: PriceDetails
|
50
|
+
original_price: PriceDetails
|
51
|
+
}
|
52
|
+
|
53
|
+
type PriceDetails {
|
54
|
+
id: ID
|
55
|
+
price_list_id: String
|
56
|
+
price_list_type: String
|
57
|
+
min_quantity: Float
|
58
|
+
max_quantity: Float
|
59
|
+
}
|
60
|
+
`;
|
61
|
+
exports.default = exports.schema;
|
62
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schema/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwDrB,CAAA;AAED,kBAAe,cAAM,CAAA"}
|
@@ -1 +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/migrations/Migration20241127114534.ts","../src/migrations/Migration20241127223829.ts","../src/migrations/Migration20241128055359.ts","../src/migrations/Migration20241212190401.ts","../src/migrations/Migration20250408145122.ts","../src/migrations/Migration20250409122219.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/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"}
|
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/migrations/Migration20241127114534.ts","../src/migrations/Migration20241127223829.ts","../src/migrations/Migration20241128055359.ts","../src/migrations/Migration20241212190401.ts","../src/migrations/Migration20250408145122.ts","../src/migrations/Migration20250409122219.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/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@medusajs/pricing",
|
3
|
-
"version": "2.7.2-snapshot-
|
3
|
+
"version": "2.7.2-snapshot-20250424132106",
|
4
4
|
"description": "Medusa Pricing module",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"types": "dist/index.d.ts",
|
@@ -36,8 +36,8 @@
|
|
36
36
|
"orm:cache:clear": " MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm cache:clear"
|
37
37
|
},
|
38
38
|
"devDependencies": {
|
39
|
-
"@medusajs/framework": "2.7.2-snapshot-
|
40
|
-
"@medusajs/test-utils": "2.7.2-snapshot-
|
39
|
+
"@medusajs/framework": "2.7.2-snapshot-20250424132106",
|
40
|
+
"@medusajs/test-utils": "2.7.2-snapshot-20250424132106",
|
41
41
|
"@mikro-orm/cli": "6.4.3",
|
42
42
|
"@mikro-orm/core": "6.4.3",
|
43
43
|
"@mikro-orm/migrations": "6.4.3",
|
@@ -50,7 +50,7 @@
|
|
50
50
|
"typescript": "^5.6.2"
|
51
51
|
},
|
52
52
|
"peerDependencies": {
|
53
|
-
"@medusajs/framework": "2.7.2-snapshot-
|
53
|
+
"@medusajs/framework": "2.7.2-snapshot-20250424132106",
|
54
54
|
"@mikro-orm/core": "6.4.3",
|
55
55
|
"@mikro-orm/migrations": "6.4.3",
|
56
56
|
"@mikro-orm/postgresql": "6.4.3",
|