@medusajs/link-modules 0.2.12-preview-20240514181410 → 0.2.12-preview-20240515082347
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/definitions/index.d.ts +1 -1
- package/dist/definitions/index.js +1 -1
- package/dist/definitions/order-payment-collection.d.ts +2 -0
- package/dist/definitions/order-payment-collection.js +65 -0
- package/package.json +4 -4
- package/dist/definitions/product-shipping-profile.d.ts +0 -2
- package/dist/definitions/product-shipping-profile.js +0 -61
@@ -1,10 +1,10 @@
|
|
1
1
|
export * from "./cart-payment-collection";
|
2
2
|
export * from "./cart-promotion";
|
3
3
|
export * from "./fulfillment-set-location";
|
4
|
+
export * from "./order-payment-collection";
|
4
5
|
export * from "./order-promotion";
|
5
6
|
export * from "./order-region";
|
6
7
|
export * from "./product-sales-channel";
|
7
|
-
export * from "./product-shipping-profile";
|
8
8
|
export * from "./product-variant-inventory-item";
|
9
9
|
export * from "./product-variant-price-set";
|
10
10
|
export * from "./publishable-api-key-sales-channel";
|
@@ -17,10 +17,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./cart-payment-collection"), exports);
|
18
18
|
__exportStar(require("./cart-promotion"), exports);
|
19
19
|
__exportStar(require("./fulfillment-set-location"), exports);
|
20
|
+
__exportStar(require("./order-payment-collection"), exports);
|
20
21
|
__exportStar(require("./order-promotion"), exports);
|
21
22
|
__exportStar(require("./order-region"), exports);
|
22
23
|
__exportStar(require("./product-sales-channel"), exports);
|
23
|
-
__exportStar(require("./product-shipping-profile"), exports);
|
24
24
|
__exportStar(require("./product-variant-inventory-item"), exports);
|
25
25
|
__exportStar(require("./product-variant-price-set"), exports);
|
26
26
|
__exportStar(require("./publishable-api-key-sales-channel"), exports);
|
@@ -0,0 +1,65 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.OrderPaymentCollection = void 0;
|
4
|
+
const modules_sdk_1 = require("@medusajs/modules-sdk");
|
5
|
+
const utils_1 = require("@medusajs/utils");
|
6
|
+
exports.OrderPaymentCollection = {
|
7
|
+
serviceName: utils_1.LINKS.OrderPaymentCollection,
|
8
|
+
isLink: true,
|
9
|
+
databaseConfig: {
|
10
|
+
tableName: "order_payment_collection",
|
11
|
+
idPrefix: "capaycol",
|
12
|
+
},
|
13
|
+
alias: [
|
14
|
+
{
|
15
|
+
name: ["order_payment_collection", "order_payment_collections"],
|
16
|
+
args: {
|
17
|
+
entity: "LinkOrderPaymentCollection",
|
18
|
+
},
|
19
|
+
},
|
20
|
+
],
|
21
|
+
primaryKeys: ["id", "order_id", "payment_collection_id"],
|
22
|
+
relationships: [
|
23
|
+
{
|
24
|
+
serviceName: modules_sdk_1.Modules.ORDER,
|
25
|
+
primaryKey: "id",
|
26
|
+
foreignKey: "order_id",
|
27
|
+
alias: "order",
|
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.ORDER,
|
39
|
+
fieldAlias: {
|
40
|
+
payment_collections: {
|
41
|
+
path: "payment_collections_link.payment_collection",
|
42
|
+
isList: true,
|
43
|
+
},
|
44
|
+
},
|
45
|
+
relationship: {
|
46
|
+
serviceName: utils_1.LINKS.OrderPaymentCollection,
|
47
|
+
primaryKey: "order_id",
|
48
|
+
foreignKey: "id",
|
49
|
+
alias: "payment_collections_link",
|
50
|
+
},
|
51
|
+
},
|
52
|
+
{
|
53
|
+
serviceName: modules_sdk_1.Modules.PAYMENT,
|
54
|
+
fieldAlias: {
|
55
|
+
order: "order_link.order",
|
56
|
+
},
|
57
|
+
relationship: {
|
58
|
+
serviceName: utils_1.LINKS.OrderPaymentCollection,
|
59
|
+
primaryKey: "payment_collection_id",
|
60
|
+
foreignKey: "id",
|
61
|
+
alias: "order_link",
|
62
|
+
},
|
63
|
+
},
|
64
|
+
],
|
65
|
+
};
|
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-20240515082347",
|
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-20240515082347",
|
43
|
+
"@medusajs/types": "1.12.0-preview-20240515082347",
|
44
|
+
"@medusajs/utils": "1.12.0-preview-20240515082347",
|
45
45
|
"@mikro-orm/core": "5.9.7",
|
46
46
|
"@mikro-orm/postgresql": "5.9.7",
|
47
47
|
"awilix": "^8.0.0"
|
@@ -1,61 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ProductShippingProfile = void 0;
|
4
|
-
const modules_sdk_1 = require("@medusajs/modules-sdk");
|
5
|
-
const utils_1 = require("@medusajs/utils");
|
6
|
-
exports.ProductShippingProfile = {
|
7
|
-
serviceName: utils_1.LINKS.ProductShippingProfile,
|
8
|
-
isLink: true,
|
9
|
-
databaseConfig: {
|
10
|
-
tableName: "product_shipping_profile",
|
11
|
-
idPrefix: "psprof",
|
12
|
-
},
|
13
|
-
alias: [
|
14
|
-
{
|
15
|
-
name: "product_shipping_profile",
|
16
|
-
args: {
|
17
|
-
entity: "LinkProductShippingProfile",
|
18
|
-
},
|
19
|
-
},
|
20
|
-
],
|
21
|
-
primaryKeys: ["id", "product_id", "profile_id"],
|
22
|
-
relationships: [
|
23
|
-
{
|
24
|
-
serviceName: modules_sdk_1.Modules.PRODUCT,
|
25
|
-
primaryKey: "id",
|
26
|
-
foreignKey: "product_id",
|
27
|
-
alias: "product",
|
28
|
-
},
|
29
|
-
{
|
30
|
-
serviceName: "shippingProfileService",
|
31
|
-
isInternalService: true,
|
32
|
-
primaryKey: "id",
|
33
|
-
foreignKey: "profile_id",
|
34
|
-
alias: "profile",
|
35
|
-
},
|
36
|
-
],
|
37
|
-
extends: [
|
38
|
-
{
|
39
|
-
serviceName: modules_sdk_1.Modules.PRODUCT,
|
40
|
-
fieldAlias: {
|
41
|
-
profile: "shipping_profile.profile",
|
42
|
-
},
|
43
|
-
relationship: {
|
44
|
-
serviceName: utils_1.LINKS.ProductShippingProfile,
|
45
|
-
primaryKey: "product_id",
|
46
|
-
foreignKey: "id",
|
47
|
-
alias: "shipping_profile",
|
48
|
-
},
|
49
|
-
},
|
50
|
-
{
|
51
|
-
serviceName: "shippingProfileService",
|
52
|
-
relationship: {
|
53
|
-
serviceName: utils_1.LINKS.ProductShippingProfile,
|
54
|
-
isInternalService: true,
|
55
|
-
primaryKey: "profile_id",
|
56
|
-
foreignKey: "id",
|
57
|
-
alias: "product_link",
|
58
|
-
},
|
59
|
-
},
|
60
|
-
],
|
61
|
-
};
|