@medusajs/link-modules 0.2.8 → 0.2.9-next-20240305095805
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/definitions/cart-customer.d.ts +2 -0
- package/dist/definitions/cart-customer.js +29 -0
- package/dist/definitions/cart-payment-collection.d.ts +2 -0
- package/dist/definitions/cart-payment-collection.js +62 -0
- package/dist/definitions/cart-promotion.d.ts +2 -0
- package/dist/definitions/cart-promotion.js +56 -0
- package/dist/definitions/cart-region.d.ts +2 -0
- package/dist/definitions/cart-region.js +29 -0
- package/dist/definitions/cart-sales-channel.js +7 -41
- package/dist/definitions/index.d.ts +9 -4
- package/dist/definitions/index.js +9 -4
- package/dist/definitions/publishable-api-key-sales-channel.js +10 -6
- package/dist/definitions/region-payment-provider.d.ts +2 -0
- package/dist/definitions/region-payment-provider.js +65 -0
- package/dist/initialize/index.js +1 -1
- package/dist/links.d.ts +3 -1
- package/dist/links.js +4 -2
- package/package.json +4 -4
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CartCustomer = void 0;
|
|
4
|
+
const modules_sdk_1 = require("@medusajs/modules-sdk");
|
|
5
|
+
exports.CartCustomer = {
|
|
6
|
+
isLink: true,
|
|
7
|
+
isReadOnlyLink: true,
|
|
8
|
+
extends: [
|
|
9
|
+
{
|
|
10
|
+
serviceName: modules_sdk_1.Modules.CART,
|
|
11
|
+
relationship: {
|
|
12
|
+
serviceName: modules_sdk_1.Modules.CUSTOMER,
|
|
13
|
+
primaryKey: "id",
|
|
14
|
+
foreignKey: "customer_id",
|
|
15
|
+
alias: "customer",
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
serviceName: modules_sdk_1.Modules.CUSTOMER,
|
|
20
|
+
relationship: {
|
|
21
|
+
serviceName: modules_sdk_1.Modules.CART,
|
|
22
|
+
primaryKey: "customer_id",
|
|
23
|
+
foreignKey: "id",
|
|
24
|
+
alias: "carts",
|
|
25
|
+
isList: true,
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CartPaymentCollection = void 0;
|
|
4
|
+
const modules_sdk_1 = require("@medusajs/modules-sdk");
|
|
5
|
+
const links_1 = require("../links");
|
|
6
|
+
exports.CartPaymentCollection = {
|
|
7
|
+
serviceName: links_1.LINKS.CartPaymentCollection,
|
|
8
|
+
isLink: true,
|
|
9
|
+
databaseConfig: {
|
|
10
|
+
tableName: "cart_payment_collection",
|
|
11
|
+
idPrefix: "capaycol",
|
|
12
|
+
},
|
|
13
|
+
alias: [
|
|
14
|
+
{
|
|
15
|
+
name: ["cart_payment_collection", "cart_payment_collections"],
|
|
16
|
+
args: {
|
|
17
|
+
entity: "LinkCartPaymentCollection",
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
primaryKeys: ["id", "cart_id", "payment_collection_id"],
|
|
22
|
+
relationships: [
|
|
23
|
+
{
|
|
24
|
+
serviceName: modules_sdk_1.Modules.CART,
|
|
25
|
+
primaryKey: "id",
|
|
26
|
+
foreignKey: "cart_id",
|
|
27
|
+
alias: "cart",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
serviceName: modules_sdk_1.Modules.PAYMENT,
|
|
31
|
+
primaryKey: "id",
|
|
32
|
+
foreignKey: "payment_collection_id",
|
|
33
|
+
alias: "payment_collection",
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
extends: [
|
|
37
|
+
{
|
|
38
|
+
serviceName: modules_sdk_1.Modules.CART,
|
|
39
|
+
fieldAlias: {
|
|
40
|
+
payment_collection: "payment_collection_link.payment_collection",
|
|
41
|
+
},
|
|
42
|
+
relationship: {
|
|
43
|
+
serviceName: links_1.LINKS.CartPaymentCollection,
|
|
44
|
+
primaryKey: "cart_id",
|
|
45
|
+
foreignKey: "id",
|
|
46
|
+
alias: "payment_collection_link",
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
serviceName: modules_sdk_1.Modules.PAYMENT,
|
|
51
|
+
fieldAlias: {
|
|
52
|
+
cart: "cart_link.cart",
|
|
53
|
+
},
|
|
54
|
+
relationship: {
|
|
55
|
+
serviceName: links_1.LINKS.CartPaymentCollection,
|
|
56
|
+
primaryKey: "payment_collection_id",
|
|
57
|
+
foreignKey: "id",
|
|
58
|
+
alias: "cart_link",
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CartPromotion = void 0;
|
|
4
|
+
const modules_sdk_1 = require("@medusajs/modules-sdk");
|
|
5
|
+
const links_1 = require("../links");
|
|
6
|
+
exports.CartPromotion = {
|
|
7
|
+
serviceName: links_1.LINKS.CartPromotion,
|
|
8
|
+
isLink: true,
|
|
9
|
+
databaseConfig: {
|
|
10
|
+
tableName: "cart_promotion",
|
|
11
|
+
idPrefix: "cartpromo",
|
|
12
|
+
},
|
|
13
|
+
alias: [
|
|
14
|
+
{
|
|
15
|
+
name: ["cart_promotion", "cart_promotions"],
|
|
16
|
+
args: {
|
|
17
|
+
entity: "LinkCartPromotion",
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
primaryKeys: ["id", "cart_id", "promotion_id"],
|
|
22
|
+
relationships: [
|
|
23
|
+
{
|
|
24
|
+
serviceName: modules_sdk_1.Modules.CART,
|
|
25
|
+
primaryKey: "id",
|
|
26
|
+
foreignKey: "cart_id",
|
|
27
|
+
alias: "cart",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
serviceName: modules_sdk_1.Modules.PROMOTION,
|
|
31
|
+
primaryKey: "id",
|
|
32
|
+
foreignKey: "promotion_id",
|
|
33
|
+
alias: "promotion",
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
extends: [
|
|
37
|
+
{
|
|
38
|
+
serviceName: modules_sdk_1.Modules.CART,
|
|
39
|
+
relationship: {
|
|
40
|
+
serviceName: links_1.LINKS.CartPromotion,
|
|
41
|
+
primaryKey: "cart_id",
|
|
42
|
+
foreignKey: "id",
|
|
43
|
+
alias: "cart_link",
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
serviceName: modules_sdk_1.Modules.PROMOTION,
|
|
48
|
+
relationship: {
|
|
49
|
+
serviceName: links_1.LINKS.CartPromotion,
|
|
50
|
+
primaryKey: "promotion_id",
|
|
51
|
+
foreignKey: "id",
|
|
52
|
+
alias: "promotion_link",
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CartRegion = void 0;
|
|
4
|
+
const modules_sdk_1 = require("@medusajs/modules-sdk");
|
|
5
|
+
exports.CartRegion = {
|
|
6
|
+
isLink: true,
|
|
7
|
+
isReadOnlyLink: true,
|
|
8
|
+
extends: [
|
|
9
|
+
{
|
|
10
|
+
serviceName: modules_sdk_1.Modules.CART,
|
|
11
|
+
relationship: {
|
|
12
|
+
serviceName: modules_sdk_1.Modules.REGION,
|
|
13
|
+
primaryKey: "id",
|
|
14
|
+
foreignKey: "region_id",
|
|
15
|
+
alias: "region",
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
serviceName: modules_sdk_1.Modules.REGION,
|
|
20
|
+
relationship: {
|
|
21
|
+
serviceName: modules_sdk_1.Modules.CART,
|
|
22
|
+
primaryKey: "region_id",
|
|
23
|
+
foreignKey: "id",
|
|
24
|
+
alias: "carts",
|
|
25
|
+
isList: true,
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
};
|
|
@@ -2,60 +2,26 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CartSalesChannel = void 0;
|
|
4
4
|
const modules_sdk_1 = require("@medusajs/modules-sdk");
|
|
5
|
-
const links_1 = require("../links");
|
|
6
5
|
exports.CartSalesChannel = {
|
|
7
|
-
serviceName: links_1.LINKS.CartSalesChannel,
|
|
8
6
|
isLink: true,
|
|
9
|
-
|
|
10
|
-
tableName: "cart_sales_channel",
|
|
11
|
-
idPrefix: "cartsc",
|
|
12
|
-
},
|
|
13
|
-
alias: [
|
|
14
|
-
{
|
|
15
|
-
name: "cart_sales_channel",
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
name: "cart_sales_channels",
|
|
19
|
-
},
|
|
20
|
-
],
|
|
21
|
-
primaryKeys: ["id", "cart_id", "sales_channel_id"],
|
|
22
|
-
relationships: [
|
|
23
|
-
{
|
|
24
|
-
serviceName: modules_sdk_1.Modules.CART,
|
|
25
|
-
primaryKey: "id",
|
|
26
|
-
foreignKey: "cart_id",
|
|
27
|
-
alias: "cart",
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
serviceName: modules_sdk_1.Modules.SALES_CHANNEL,
|
|
31
|
-
primaryKey: "id",
|
|
32
|
-
foreignKey: "sales_channel_id",
|
|
33
|
-
alias: "sales_channel",
|
|
34
|
-
},
|
|
35
|
-
],
|
|
7
|
+
isReadOnlyLink: true,
|
|
36
8
|
extends: [
|
|
37
9
|
{
|
|
38
10
|
serviceName: modules_sdk_1.Modules.CART,
|
|
39
|
-
fieldAlias: {
|
|
40
|
-
sales_channel: "sales_channel_link.sales_channel",
|
|
41
|
-
},
|
|
42
11
|
relationship: {
|
|
43
|
-
serviceName:
|
|
44
|
-
primaryKey: "
|
|
45
|
-
foreignKey: "
|
|
46
|
-
alias: "
|
|
12
|
+
serviceName: modules_sdk_1.Modules.SALES_CHANNEL,
|
|
13
|
+
primaryKey: "id",
|
|
14
|
+
foreignKey: "sales_channel_id",
|
|
15
|
+
alias: "sales_channel",
|
|
47
16
|
},
|
|
48
17
|
},
|
|
49
18
|
{
|
|
50
19
|
serviceName: modules_sdk_1.Modules.SALES_CHANNEL,
|
|
51
|
-
fieldAlias: {
|
|
52
|
-
carts: "cart_link.cart",
|
|
53
|
-
},
|
|
54
20
|
relationship: {
|
|
55
|
-
serviceName:
|
|
21
|
+
serviceName: modules_sdk_1.Modules.CART,
|
|
56
22
|
primaryKey: "sales_channel_id",
|
|
57
23
|
foreignKey: "id",
|
|
58
|
-
alias: "
|
|
24
|
+
alias: "carts",
|
|
59
25
|
isList: true,
|
|
60
26
|
},
|
|
61
27
|
},
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
export * from "./cart-customer";
|
|
2
|
+
export * from "./cart-payment-collection";
|
|
3
|
+
export * from "./cart-promotion";
|
|
4
|
+
export * from "./cart-region";
|
|
5
|
+
export * from "./cart-sales-channel";
|
|
1
6
|
export * from "./inventory-level-stock-location";
|
|
7
|
+
export * from "./order-sales-channel";
|
|
8
|
+
export * from "./product-sales-channel";
|
|
9
|
+
export * from "./product-shipping-profile";
|
|
2
10
|
export * from "./product-variant-inventory-item";
|
|
3
11
|
export * from "./product-variant-price-set";
|
|
4
|
-
export * from "./product-shipping-profile";
|
|
5
|
-
export * from "./product-sales-channel";
|
|
6
|
-
export * from "./cart-sales-channel";
|
|
7
|
-
export * from "./order-sales-channel";
|
|
8
12
|
export * from "./publishable-api-key-sales-channel";
|
|
13
|
+
export * from "./region-payment-provider";
|
|
@@ -14,11 +14,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./cart-customer"), exports);
|
|
18
|
+
__exportStar(require("./cart-payment-collection"), exports);
|
|
19
|
+
__exportStar(require("./cart-promotion"), exports);
|
|
20
|
+
__exportStar(require("./cart-region"), exports);
|
|
21
|
+
__exportStar(require("./cart-sales-channel"), exports);
|
|
17
22
|
__exportStar(require("./inventory-level-stock-location"), exports);
|
|
23
|
+
__exportStar(require("./order-sales-channel"), exports);
|
|
24
|
+
__exportStar(require("./product-sales-channel"), exports);
|
|
25
|
+
__exportStar(require("./product-shipping-profile"), exports);
|
|
18
26
|
__exportStar(require("./product-variant-inventory-item"), exports);
|
|
19
27
|
__exportStar(require("./product-variant-price-set"), exports);
|
|
20
|
-
__exportStar(require("./product-shipping-profile"), exports);
|
|
21
|
-
__exportStar(require("./product-sales-channel"), exports);
|
|
22
|
-
__exportStar(require("./cart-sales-channel"), exports);
|
|
23
|
-
__exportStar(require("./order-sales-channel"), exports);
|
|
24
28
|
__exportStar(require("./publishable-api-key-sales-channel"), exports);
|
|
29
|
+
__exportStar(require("./region-payment-provider"), exports);
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PublishableApiKeySalesChannel = void 0;
|
|
4
4
|
const links_1 = require("../links");
|
|
5
|
+
const modules_sdk_1 = require("@medusajs/modules-sdk");
|
|
5
6
|
exports.PublishableApiKeySalesChannel = {
|
|
6
7
|
serviceName: links_1.LINKS.PublishableApiKeySalesChannel,
|
|
7
8
|
isLink: true,
|
|
@@ -20,14 +21,14 @@ exports.PublishableApiKeySalesChannel = {
|
|
|
20
21
|
primaryKeys: ["id", "publishable_key_id", "sales_channel_id"],
|
|
21
22
|
relationships: [
|
|
22
23
|
{
|
|
23
|
-
serviceName:
|
|
24
|
+
serviceName: modules_sdk_1.Modules.API_KEY,
|
|
24
25
|
isInternalService: true,
|
|
25
26
|
primaryKey: "id",
|
|
26
27
|
foreignKey: "publishable_key_id",
|
|
27
|
-
alias: "
|
|
28
|
+
alias: "api_key",
|
|
28
29
|
},
|
|
29
30
|
{
|
|
30
|
-
serviceName:
|
|
31
|
+
serviceName: modules_sdk_1.Modules.SALES_CHANNEL,
|
|
31
32
|
isInternalService: true,
|
|
32
33
|
primaryKey: "id",
|
|
33
34
|
foreignKey: "sales_channel_id",
|
|
@@ -36,7 +37,7 @@ exports.PublishableApiKeySalesChannel = {
|
|
|
36
37
|
],
|
|
37
38
|
extends: [
|
|
38
39
|
{
|
|
39
|
-
serviceName:
|
|
40
|
+
serviceName: modules_sdk_1.Modules.API_KEY,
|
|
40
41
|
fieldAlias: {
|
|
41
42
|
sales_channels: "sales_channels_link.sales_channel",
|
|
42
43
|
},
|
|
@@ -50,13 +51,16 @@ exports.PublishableApiKeySalesChannel = {
|
|
|
50
51
|
},
|
|
51
52
|
},
|
|
52
53
|
{
|
|
53
|
-
serviceName:
|
|
54
|
+
serviceName: modules_sdk_1.Modules.SALES_CHANNEL,
|
|
55
|
+
fieldAlias: {
|
|
56
|
+
api_keys: "api_keys_link.api_key",
|
|
57
|
+
},
|
|
54
58
|
relationship: {
|
|
55
59
|
serviceName: links_1.LINKS.PublishableApiKeySalesChannel,
|
|
56
60
|
isInternalService: true,
|
|
57
61
|
primaryKey: "sales_channel_id",
|
|
58
62
|
foreignKey: "id",
|
|
59
|
-
alias: "
|
|
63
|
+
alias: "api_keys_link",
|
|
60
64
|
isList: true,
|
|
61
65
|
},
|
|
62
66
|
},
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RegionPaymentProvider = void 0;
|
|
4
|
+
const modules_sdk_1 = require("@medusajs/modules-sdk");
|
|
5
|
+
const links_1 = require("../links");
|
|
6
|
+
exports.RegionPaymentProvider = {
|
|
7
|
+
serviceName: links_1.LINKS.RegionPaymentProvider,
|
|
8
|
+
isLink: true,
|
|
9
|
+
databaseConfig: {
|
|
10
|
+
tableName: "region_payment_provider",
|
|
11
|
+
idPrefix: "regpp",
|
|
12
|
+
},
|
|
13
|
+
alias: [
|
|
14
|
+
{
|
|
15
|
+
name: ["region_payment_provider", "region_payment_providers"],
|
|
16
|
+
args: {
|
|
17
|
+
entity: "LinkRegionPaymentProvider",
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
primaryKeys: ["id", "region_id", "payment_provider_id"],
|
|
22
|
+
relationships: [
|
|
23
|
+
{
|
|
24
|
+
serviceName: modules_sdk_1.Modules.REGION,
|
|
25
|
+
primaryKey: "id",
|
|
26
|
+
foreignKey: "region_id",
|
|
27
|
+
alias: "region",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
serviceName: modules_sdk_1.Modules.PAYMENT,
|
|
31
|
+
primaryKey: "id",
|
|
32
|
+
foreignKey: "payment_provider_id",
|
|
33
|
+
alias: "payment_provider",
|
|
34
|
+
args: { methodSuffix: "PaymentProviders" },
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
extends: [
|
|
38
|
+
{
|
|
39
|
+
serviceName: modules_sdk_1.Modules.REGION,
|
|
40
|
+
fieldAlias: {
|
|
41
|
+
payment_providers: "payment_provider_link.payment_provider",
|
|
42
|
+
},
|
|
43
|
+
relationship: {
|
|
44
|
+
serviceName: links_1.LINKS.RegionPaymentProvider,
|
|
45
|
+
primaryKey: "region_id",
|
|
46
|
+
foreignKey: "id",
|
|
47
|
+
alias: "payment_provider_link",
|
|
48
|
+
isList: true,
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
serviceName: modules_sdk_1.Modules.PAYMENT,
|
|
53
|
+
fieldAlias: {
|
|
54
|
+
regions: "region_link.region",
|
|
55
|
+
},
|
|
56
|
+
relationship: {
|
|
57
|
+
serviceName: links_1.LINKS.RegionPaymentProvider,
|
|
58
|
+
primaryKey: "payment_provider_id",
|
|
59
|
+
foreignKey: "id",
|
|
60
|
+
alias: "region_link",
|
|
61
|
+
isList: true,
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
};
|
package/dist/initialize/index.js
CHANGED
|
@@ -74,7 +74,7 @@ const initialize = async (options, modulesDefinition, injectedDependencies) => {
|
|
|
74
74
|
!modulesLoadedKeys.includes(foreign.serviceName))) {
|
|
75
75
|
continue;
|
|
76
76
|
}
|
|
77
|
-
const logger = injectedDependencies?.[utils_1.ContainerRegistrationKeys.LOGGER] ?? console
|
|
77
|
+
const logger = injectedDependencies?.[utils_1.ContainerRegistrationKeys.LOGGER] ?? console;
|
|
78
78
|
definition.schema = (0, utils_2.generateGraphQLSchema)(definition, primary, foreign, {
|
|
79
79
|
logger,
|
|
80
80
|
});
|
package/dist/links.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export declare const LINKS: {
|
|
2
2
|
ProductVariantInventoryItem: string;
|
|
3
3
|
ProductVariantPriceSet: string;
|
|
4
|
+
CartPaymentCollection: string;
|
|
5
|
+
RegionPaymentProvider: string;
|
|
6
|
+
CartPromotion: string;
|
|
4
7
|
ProductShippingProfile: string;
|
|
5
8
|
ProductSalesChannel: string;
|
|
6
|
-
CartSalesChannel: string;
|
|
7
9
|
OrderSalesChannel: string;
|
|
8
10
|
PublishableApiKeySalesChannel: string;
|
|
9
11
|
};
|
package/dist/links.js
CHANGED
|
@@ -6,10 +6,12 @@ const utils_1 = require("./utils");
|
|
|
6
6
|
exports.LINKS = {
|
|
7
7
|
ProductVariantInventoryItem: (0, utils_1.composeLinkName)(modules_sdk_1.Modules.PRODUCT, "variant_id", modules_sdk_1.Modules.INVENTORY, "inventory_item_id"),
|
|
8
8
|
ProductVariantPriceSet: (0, utils_1.composeLinkName)(modules_sdk_1.Modules.PRODUCT, "variant_id", modules_sdk_1.Modules.PRICING, "price_set_id"),
|
|
9
|
+
CartPaymentCollection: (0, utils_1.composeLinkName)(modules_sdk_1.Modules.CART, "cart_id", modules_sdk_1.Modules.PAYMENT, "payment_collection_id"),
|
|
10
|
+
RegionPaymentProvider: (0, utils_1.composeLinkName)(modules_sdk_1.Modules.REGION, "region_id", modules_sdk_1.Modules.PAYMENT, "payment_provider_id"),
|
|
11
|
+
CartPromotion: (0, utils_1.composeLinkName)(modules_sdk_1.Modules.CART, "cart_id", modules_sdk_1.Modules.PROMOTION, "promotion_id"),
|
|
9
12
|
// Internal services
|
|
10
13
|
ProductShippingProfile: (0, utils_1.composeLinkName)(modules_sdk_1.Modules.PRODUCT, "variant_id", "shippingProfileService", "profile_id"),
|
|
11
14
|
ProductSalesChannel: (0, utils_1.composeLinkName)(modules_sdk_1.Modules.PRODUCT, "product_id", modules_sdk_1.Modules.SALES_CHANNEL, "sales_channel_id"),
|
|
12
|
-
CartSalesChannel: (0, utils_1.composeLinkName)(modules_sdk_1.Modules.CART, "cart_id", modules_sdk_1.Modules.SALES_CHANNEL, "sales_channel_id"),
|
|
13
15
|
OrderSalesChannel: (0, utils_1.composeLinkName)("orderService", "order_id", modules_sdk_1.Modules.SALES_CHANNEL, "sales_channel_id"),
|
|
14
|
-
PublishableApiKeySalesChannel: (0, utils_1.composeLinkName)(
|
|
16
|
+
PublishableApiKeySalesChannel: (0, utils_1.composeLinkName)(modules_sdk_1.Modules.API_KEY, "api_key_id", modules_sdk_1.Modules.SALES_CHANNEL, "sales_channel_id"),
|
|
15
17
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medusajs/link-modules",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.9-next-20240305095805",
|
|
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": "
|
|
43
|
-
"@medusajs/types": "
|
|
44
|
-
"@medusajs/utils": "
|
|
42
|
+
"@medusajs/modules-sdk": "1.12.9-next-20240305095805",
|
|
43
|
+
"@medusajs/types": "1.11.14-next-20240305095805",
|
|
44
|
+
"@medusajs/utils": "1.11.7-next-20240305095805",
|
|
45
45
|
"@mikro-orm/core": "5.9.7",
|
|
46
46
|
"@mikro-orm/postgresql": "5.9.7",
|
|
47
47
|
"awilix": "^8.0.0"
|