@medusajs/link-modules 0.2.12-snapshot-20240523143641 → 0.2.12-snapshot-20240524064838
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/index.d.ts +0 -2
- package/dist/definitions/index.js +0 -2
- 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
- package/dist/definitions/customer-auth.d.ts +0 -2
- package/dist/definitions/customer-auth.js +0 -62
- package/dist/definitions/user-auth.d.ts +0 -2
- package/dist/definitions/user-auth.js +0 -62
@@ -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
|
],
|
@@ -30,5 +30,3 @@ __exportStar(require("./region-payment-provider"), exports);
|
|
30
30
|
__exportStar(require("./sales-channel-location"), exports);
|
31
31
|
__exportStar(require("./shipping-option-price-set"), exports);
|
32
32
|
__exportStar(require("./order-fulfillment"), exports);
|
33
|
-
__exportStar(require("./user-auth"), exports);
|
34
|
-
__exportStar(require("./customer-auth"), exports);
|
@@ -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-snapshot-
|
3
|
+
"version": "0.2.12-snapshot-20240524064838",
|
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-snapshot-
|
43
|
-
"@medusajs/types": "1.12.0-snapshot-
|
44
|
-
"@medusajs/utils": "1.12.0-snapshot-
|
42
|
+
"@medusajs/modules-sdk": "1.13.0-snapshot-20240524064838",
|
43
|
+
"@medusajs/types": "1.12.0-snapshot-20240524064838",
|
44
|
+
"@medusajs/utils": "1.12.0-snapshot-20240524064838",
|
45
45
|
"@mikro-orm/core": "5.9.7",
|
46
46
|
"@mikro-orm/postgresql": "5.9.7",
|
47
47
|
"awilix": "^8.0.0"
|
@@ -1,62 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.CustomerAuth = void 0;
|
4
|
-
const modules_sdk_1 = require("@medusajs/modules-sdk");
|
5
|
-
const utils_1 = require("@medusajs/utils");
|
6
|
-
exports.CustomerAuth = {
|
7
|
-
serviceName: utils_1.LINKS.CustomerAuth,
|
8
|
-
isLink: true,
|
9
|
-
databaseConfig: {
|
10
|
-
tableName: "customer_auth_identity",
|
11
|
-
idPrefix: "cusauth",
|
12
|
-
},
|
13
|
-
alias: [
|
14
|
-
{
|
15
|
-
name: "customer_auth_identity",
|
16
|
-
},
|
17
|
-
{
|
18
|
-
name: "customer_auth_identities",
|
19
|
-
},
|
20
|
-
],
|
21
|
-
primaryKeys: ["id", "customer_id", "auth_identity_id"],
|
22
|
-
relationships: [
|
23
|
-
{
|
24
|
-
serviceName: modules_sdk_1.Modules.CUSTOMER,
|
25
|
-
primaryKey: "id",
|
26
|
-
foreignKey: "customer_id",
|
27
|
-
alias: "customer",
|
28
|
-
},
|
29
|
-
{
|
30
|
-
serviceName: modules_sdk_1.Modules.AUTH,
|
31
|
-
primaryKey: "id",
|
32
|
-
foreignKey: "auth_identity_id",
|
33
|
-
alias: "auth",
|
34
|
-
},
|
35
|
-
],
|
36
|
-
extends: [
|
37
|
-
{
|
38
|
-
serviceName: modules_sdk_1.Modules.CUSTOMER,
|
39
|
-
fieldAlias: {
|
40
|
-
auth_identity: "auth_link.auth_identity",
|
41
|
-
},
|
42
|
-
relationship: {
|
43
|
-
serviceName: utils_1.LINKS.CustomerAuth,
|
44
|
-
primaryKey: "customer_id",
|
45
|
-
foreignKey: "id",
|
46
|
-
alias: "auth_link",
|
47
|
-
},
|
48
|
-
},
|
49
|
-
{
|
50
|
-
serviceName: modules_sdk_1.Modules.AUTH,
|
51
|
-
fieldAlias: {
|
52
|
-
customer: "customer_link.customer",
|
53
|
-
},
|
54
|
-
relationship: {
|
55
|
-
serviceName: utils_1.LINKS.CustomerAuth,
|
56
|
-
primaryKey: "auth_identity_id",
|
57
|
-
foreignKey: "id",
|
58
|
-
alias: "customer_link",
|
59
|
-
},
|
60
|
-
},
|
61
|
-
],
|
62
|
-
};
|
@@ -1,62 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.UserAuth = void 0;
|
4
|
-
const modules_sdk_1 = require("@medusajs/modules-sdk");
|
5
|
-
const utils_1 = require("@medusajs/utils");
|
6
|
-
exports.UserAuth = {
|
7
|
-
serviceName: utils_1.LINKS.UserAuth,
|
8
|
-
isLink: true,
|
9
|
-
databaseConfig: {
|
10
|
-
tableName: "user_auth_identity",
|
11
|
-
idPrefix: "usrauth",
|
12
|
-
},
|
13
|
-
alias: [
|
14
|
-
{
|
15
|
-
name: "user_auth_identity",
|
16
|
-
},
|
17
|
-
{
|
18
|
-
name: "user_auth_identities",
|
19
|
-
},
|
20
|
-
],
|
21
|
-
primaryKeys: ["id", "user_id", "auth_identity_id"],
|
22
|
-
relationships: [
|
23
|
-
{
|
24
|
-
serviceName: modules_sdk_1.Modules.USER,
|
25
|
-
primaryKey: "id",
|
26
|
-
foreignKey: "user_id",
|
27
|
-
alias: "user",
|
28
|
-
},
|
29
|
-
{
|
30
|
-
serviceName: modules_sdk_1.Modules.AUTH,
|
31
|
-
primaryKey: "id",
|
32
|
-
foreignKey: "auth_identity_id",
|
33
|
-
alias: "auth",
|
34
|
-
},
|
35
|
-
],
|
36
|
-
extends: [
|
37
|
-
{
|
38
|
-
serviceName: modules_sdk_1.Modules.USER,
|
39
|
-
fieldAlias: {
|
40
|
-
auth_identity: "auth_link.auth_identity",
|
41
|
-
},
|
42
|
-
relationship: {
|
43
|
-
serviceName: utils_1.LINKS.UserAuth,
|
44
|
-
primaryKey: "user_id",
|
45
|
-
foreignKey: "id",
|
46
|
-
alias: "auth_link",
|
47
|
-
},
|
48
|
-
},
|
49
|
-
{
|
50
|
-
serviceName: modules_sdk_1.Modules.AUTH,
|
51
|
-
fieldAlias: {
|
52
|
-
user: "user_link.user",
|
53
|
-
},
|
54
|
-
relationship: {
|
55
|
-
serviceName: utils_1.LINKS.UserAuth,
|
56
|
-
primaryKey: "auth_identity_id",
|
57
|
-
foreignKey: "id",
|
58
|
-
alias: "user_link",
|
59
|
-
},
|
60
|
-
},
|
61
|
-
],
|
62
|
-
};
|