@medusajs/link-modules 0.2.12-preview-20240523131811 → 0.2.12-preview-20240523180535
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/definitions/cart-promotion.js +5 -10
- package/dist/definitions/readonly/index.d.ts +1 -0
- package/dist/definitions/readonly/index.js +1 -0
- package/dist/definitions/readonly/line-item-adjustment-promotion.d.ts +2 -0
- package/dist/definitions/readonly/line-item-adjustment-promotion.js +19 -0
- package/package.json +4 -4
@@ -30,26 +30,21 @@ exports.CartPromotion = {
|
|
30
30
|
serviceName: modules_sdk_1.Modules.PROMOTION,
|
31
31
|
primaryKey: "id",
|
32
32
|
foreignKey: "promotion_id",
|
33
|
-
alias: "
|
33
|
+
alias: "promotions",
|
34
34
|
},
|
35
35
|
],
|
36
36
|
extends: [
|
37
37
|
{
|
38
38
|
serviceName: modules_sdk_1.Modules.CART,
|
39
|
+
fieldAlias: {
|
40
|
+
promotions: "cart_link.promotions",
|
41
|
+
},
|
39
42
|
relationship: {
|
40
43
|
serviceName: utils_1.LINKS.CartPromotion,
|
41
44
|
primaryKey: "cart_id",
|
42
45
|
foreignKey: "id",
|
43
46
|
alias: "cart_link",
|
44
|
-
|
45
|
-
},
|
46
|
-
{
|
47
|
-
serviceName: modules_sdk_1.Modules.PROMOTION,
|
48
|
-
relationship: {
|
49
|
-
serviceName: utils_1.LINKS.CartPromotion,
|
50
|
-
primaryKey: "promotion_id",
|
51
|
-
foreignKey: "id",
|
52
|
-
alias: "promotion_link",
|
47
|
+
isList: true,
|
53
48
|
},
|
54
49
|
},
|
55
50
|
],
|
@@ -3,6 +3,7 @@ export * from "./cart-product";
|
|
3
3
|
export * from "./cart-region";
|
4
4
|
export * from "./cart-sales-channel";
|
5
5
|
export * from "./inventory-level-stock-location";
|
6
|
+
export * from "./line-item-adjustment-promotion";
|
6
7
|
export * from "./order-customer";
|
7
8
|
export * from "./order-product";
|
8
9
|
export * from "./order-sales-channel";
|
@@ -19,6 +19,7 @@ __exportStar(require("./cart-product"), exports);
|
|
19
19
|
__exportStar(require("./cart-region"), exports);
|
20
20
|
__exportStar(require("./cart-sales-channel"), exports);
|
21
21
|
__exportStar(require("./inventory-level-stock-location"), exports);
|
22
|
+
__exportStar(require("./line-item-adjustment-promotion"), exports);
|
22
23
|
__exportStar(require("./order-customer"), exports);
|
23
24
|
__exportStar(require("./order-product"), exports);
|
24
25
|
__exportStar(require("./order-sales-channel"), exports);
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.LineItemAdjustmentPromotion = void 0;
|
4
|
+
const modules_sdk_1 = require("@medusajs/modules-sdk");
|
5
|
+
exports.LineItemAdjustmentPromotion = {
|
6
|
+
isLink: true,
|
7
|
+
isReadOnlyLink: true,
|
8
|
+
extends: [
|
9
|
+
{
|
10
|
+
serviceName: modules_sdk_1.Modules.CART,
|
11
|
+
relationship: {
|
12
|
+
serviceName: modules_sdk_1.Modules.PROMOTION,
|
13
|
+
primaryKey: "id",
|
14
|
+
foreignKey: "promotion_id",
|
15
|
+
alias: "promotion",
|
16
|
+
},
|
17
|
+
},
|
18
|
+
],
|
19
|
+
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@medusajs/link-modules",
|
3
|
-
"version": "0.2.12-preview-
|
3
|
+
"version": "0.2.12-preview-20240523180535",
|
4
4
|
"description": "Medusa Default Link Modules Package and Definitions",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"types": "dist/index.d.ts",
|
@@ -39,9 +39,9 @@
|
|
39
39
|
"typescript": "^5.1.6"
|
40
40
|
},
|
41
41
|
"dependencies": {
|
42
|
-
"@medusajs/modules-sdk": "1.13.0-preview-
|
43
|
-
"@medusajs/types": "1.12.0-preview-
|
44
|
-
"@medusajs/utils": "1.12.0-preview-
|
42
|
+
"@medusajs/modules-sdk": "1.13.0-preview-20240523180535",
|
43
|
+
"@medusajs/types": "1.12.0-preview-20240523180535",
|
44
|
+
"@medusajs/utils": "1.12.0-preview-20240523180535",
|
45
45
|
"@mikro-orm/core": "5.9.7",
|
46
46
|
"@mikro-orm/postgresql": "5.9.7",
|
47
47
|
"awilix": "^8.0.0"
|