@medusajs/link-modules 0.2.12-snapshot-20240523153451 → 0.2.12-snapshot-20240524064838
Sign up to get free protection for your applications and to get access to all the features.
@@ -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);
|
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
|
-
};
|