@medusajs/link-modules 0.2.12-preview-20240702060633 → 0.2.12-preview-20240702120643

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,2 @@
1
+ import { ModuleJoinerConfig } from "@medusajs/types";
2
+ export declare const OrderClaimPaymentCollection: ModuleJoinerConfig;
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrderClaimPaymentCollection = void 0;
4
+ const utils_1 = require("@medusajs/utils");
5
+ exports.OrderClaimPaymentCollection = {
6
+ serviceName: utils_1.LINKS.OrderClaimPaymentCollection,
7
+ isLink: true,
8
+ databaseConfig: {
9
+ tableName: "order_claim_payment_collection",
10
+ idPrefix: "claimpay",
11
+ },
12
+ alias: [
13
+ {
14
+ name: [
15
+ "order_claim_payment_collection",
16
+ "order_claim_payment_collections",
17
+ ],
18
+ args: {
19
+ entity: "LinkOrderClaimPaymentCollection",
20
+ },
21
+ },
22
+ ],
23
+ primaryKeys: ["id", "claim_id", "payment_collection_id"],
24
+ relationships: [
25
+ {
26
+ serviceName: utils_1.Modules.ORDER,
27
+ primaryKey: "id",
28
+ foreignKey: "claim_id",
29
+ alias: "order",
30
+ args: {
31
+ methodSuffix: "OrderClaims",
32
+ },
33
+ },
34
+ {
35
+ serviceName: utils_1.Modules.PAYMENT,
36
+ primaryKey: "id",
37
+ foreignKey: "payment_collection_id",
38
+ alias: "payment_collection",
39
+ args: {
40
+ methodSuffix: "PaymentCollections",
41
+ },
42
+ },
43
+ ],
44
+ extends: [
45
+ {
46
+ serviceName: utils_1.Modules.ORDER,
47
+ fieldAlias: {
48
+ claim_payment_collections: {
49
+ path: "claim_payment_collections_link.payment_collection",
50
+ isList: true,
51
+ },
52
+ },
53
+ relationship: {
54
+ serviceName: utils_1.LINKS.OrderClaimPaymentCollection,
55
+ primaryKey: "claim_id",
56
+ foreignKey: "id",
57
+ alias: "claim_payment_collections_link",
58
+ },
59
+ },
60
+ {
61
+ serviceName: utils_1.Modules.PAYMENT,
62
+ fieldAlias: {
63
+ claim: "order_claim_link.order",
64
+ },
65
+ relationship: {
66
+ serviceName: utils_1.LINKS.OrderClaimPaymentCollection,
67
+ primaryKey: "payment_collection_id",
68
+ foreignKey: "id",
69
+ alias: "order_claim_link",
70
+ },
71
+ },
72
+ ],
73
+ };
@@ -0,0 +1,2 @@
1
+ import { ModuleJoinerConfig } from "@medusajs/types";
2
+ export declare const OrderExchangePaymentCollection: ModuleJoinerConfig;
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrderExchangePaymentCollection = void 0;
4
+ const utils_1 = require("@medusajs/utils");
5
+ exports.OrderExchangePaymentCollection = {
6
+ serviceName: utils_1.LINKS.OrderExchangePaymentCollection,
7
+ isLink: true,
8
+ databaseConfig: {
9
+ tableName: "order_exchange_payment_collection",
10
+ idPrefix: "excpay",
11
+ },
12
+ alias: [
13
+ {
14
+ name: [
15
+ "order_exchange_payment_collection",
16
+ "order_exchange_payment_collections",
17
+ ],
18
+ args: {
19
+ entity: "LinkOrderExchangePaymentCollection",
20
+ },
21
+ },
22
+ ],
23
+ primaryKeys: ["id", "exchange_id", "payment_collection_id"],
24
+ relationships: [
25
+ {
26
+ serviceName: utils_1.Modules.ORDER,
27
+ primaryKey: "id",
28
+ foreignKey: "exchange_id",
29
+ alias: "order",
30
+ args: {
31
+ methodSuffix: "OrderExchanges",
32
+ },
33
+ },
34
+ {
35
+ serviceName: utils_1.Modules.PAYMENT,
36
+ primaryKey: "id",
37
+ foreignKey: "payment_collection_id",
38
+ alias: "payment_collection",
39
+ args: {
40
+ methodSuffix: "PaymentCollections",
41
+ },
42
+ },
43
+ ],
44
+ extends: [
45
+ {
46
+ serviceName: utils_1.Modules.ORDER,
47
+ fieldAlias: {
48
+ exchange_payment_collections: {
49
+ path: "exchange_payment_collections_link.payment_collection",
50
+ isList: true,
51
+ },
52
+ },
53
+ relationship: {
54
+ serviceName: utils_1.LINKS.OrderExchangePaymentCollection,
55
+ primaryKey: "exchange_id",
56
+ foreignKey: "id",
57
+ alias: "exchange_payment_collections_link",
58
+ },
59
+ },
60
+ {
61
+ serviceName: utils_1.Modules.PAYMENT,
62
+ fieldAlias: {
63
+ exchange: "order_exchange_link.order",
64
+ },
65
+ relationship: {
66
+ serviceName: utils_1.LINKS.OrderExchangePaymentCollection,
67
+ primaryKey: "payment_collection_id",
68
+ foreignKey: "id",
69
+ alias: "order_exchange_link",
70
+ },
71
+ },
72
+ ],
73
+ };
@@ -7,7 +7,7 @@ exports.OrderPaymentCollection = {
7
7
  isLink: true,
8
8
  databaseConfig: {
9
9
  tableName: "order_payment_collection",
10
- idPrefix: "capaycol",
10
+ idPrefix: "ordpay",
11
11
  },
12
12
  alias: [
13
13
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/link-modules",
3
- "version": "0.2.12-preview-20240702060633",
3
+ "version": "0.2.12-preview-20240702120643",
4
4
  "description": "Medusa Default Link Modules Package and Definitions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -29,7 +29,7 @@
29
29
  "test:integration": "jest --passWithNoTests"
30
30
  },
31
31
  "devDependencies": {
32
- "@medusajs/types": "1.12.0-preview-20240702060633",
32
+ "@medusajs/types": "1.12.0-preview-20240702120643",
33
33
  "cross-env": "^5.2.1",
34
34
  "jest": "^29.7.0",
35
35
  "pg-god": "^1.0.12",
@@ -39,8 +39,8 @@
39
39
  "typescript": "^5.1.6"
40
40
  },
41
41
  "dependencies": {
42
- "@medusajs/modules-sdk": "1.13.0-preview-20240702060633",
43
- "@medusajs/utils": "1.12.0-preview-20240702060633",
42
+ "@medusajs/modules-sdk": "1.13.0-preview-20240702120643",
43
+ "@medusajs/utils": "1.12.0-preview-20240702120643",
44
44
  "@mikro-orm/core": "5.9.7",
45
45
  "@mikro-orm/postgresql": "5.9.7",
46
46
  "awilix": "^8.0.0"