@medusajs/pricing 0.1.13-snapshot-20240905140403 → 0.1.13-snapshot-20240906131500
Sign up to get free protection for your applications and to get access to all the features.
@@ -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,8 +1,13 @@
|
|
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/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
|
});
|
package/dist/schema/index.d.ts
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
export declare const schema = "\ntype PriceSet {\n id:
|
1
|
+
export declare const schema = "\ntype PriceSet {\n id: ID!\n prices: [MoneyAmount]\n calculated_price: CalculatedPriceSet\n}\n\ntype MoneyAmount {\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
2
|
export default schema;
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schema/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schema/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM,0oCAwDlB,CAAA;AAED,eAAe,MAAM,CAAA"}
|
package/dist/schema/index.js
CHANGED
@@ -3,16 +3,59 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.schema = void 0;
|
4
4
|
exports.schema = `
|
5
5
|
type PriceSet {
|
6
|
-
id:
|
7
|
-
|
6
|
+
id: ID!
|
7
|
+
prices: [MoneyAmount]
|
8
|
+
calculated_price: CalculatedPriceSet
|
8
9
|
}
|
9
10
|
|
10
11
|
type MoneyAmount {
|
11
|
-
id:
|
12
|
+
id: ID!
|
12
13
|
currency_code: String
|
13
14
|
amount: Float
|
14
15
|
min_quantity: Float
|
15
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
|
16
59
|
}
|
17
60
|
`;
|
18
61
|
exports.default = exports.schema;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@medusajs/pricing",
|
3
|
-
"version": "0.1.13-snapshot-
|
3
|
+
"version": "0.1.13-snapshot-20240906131500",
|
4
4
|
"description": "Medusa Pricing module",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"types": "dist/index.d.ts",
|
@@ -33,11 +33,11 @@
|
|
33
33
|
"orm:cache:clear": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts mikro-orm cache:clear"
|
34
34
|
},
|
35
35
|
"devDependencies": {
|
36
|
-
"@medusajs/types": "1.12.0-snapshot-
|
36
|
+
"@medusajs/types": "1.12.0-snapshot-20240906131500",
|
37
37
|
"@mikro-orm/cli": "5.9.7",
|
38
38
|
"cross-env": "^5.2.1",
|
39
39
|
"jest": "^29.7.0",
|
40
|
-
"medusa-test-utils": "1.1.45-snapshot-
|
40
|
+
"medusa-test-utils": "1.1.45-snapshot-20240906131500",
|
41
41
|
"rimraf": "^3.0.2",
|
42
42
|
"ts-jest": "^29.1.1",
|
43
43
|
"ts-node": "^10.9.1",
|
@@ -45,7 +45,7 @@
|
|
45
45
|
"typescript": "^5.1.6"
|
46
46
|
},
|
47
47
|
"dependencies": {
|
48
|
-
"@medusajs/utils": "1.12.0-snapshot-
|
48
|
+
"@medusajs/utils": "1.12.0-snapshot-20240906131500"
|
49
49
|
},
|
50
50
|
"peerDependencies": {
|
51
51
|
"@mikro-orm/core": "5.9.7",
|