@medusajs/link-modules 0.2.12-snapshot-20240718083016 → 0.2.12-snapshot-20240719080828
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/definitions/cart-payment-collection.d.ts +1 -0
- package/dist/definitions/cart-payment-collection.d.ts.map +1 -0
- package/dist/definitions/cart-payment-collection.js +10 -5
- package/dist/definitions/cart-promotion.d.ts +1 -0
- package/dist/definitions/cart-promotion.d.ts.map +1 -0
- package/dist/definitions/cart-promotion.js +14 -14
- package/dist/definitions/fulfillment-set-location.d.ts +2 -1
- package/dist/definitions/fulfillment-set-location.d.ts.map +1 -0
- package/dist/definitions/fulfillment-set-location.js +35 -30
- package/dist/definitions/index.d.ts +5 -9
- package/dist/definitions/index.d.ts.map +1 -0
- package/dist/definitions/index.js +4 -9
- package/dist/definitions/order-cart.d.ts +3 -0
- package/dist/definitions/order-cart.d.ts.map +1 -0
- package/dist/definitions/order-cart.js +67 -0
- package/dist/definitions/order-claim-payment-collection.d.ts +3 -0
- package/dist/definitions/order-claim-payment-collection.d.ts.map +1 -0
- package/dist/definitions/order-claim-payment-collection.js +73 -0
- package/dist/definitions/order-exchange-payment-collection.d.ts +3 -0
- package/dist/definitions/order-exchange-payment-collection.d.ts.map +1 -0
- package/dist/definitions/order-exchange-payment-collection.js +73 -0
- package/dist/definitions/order-fulfillment.d.ts +3 -0
- package/dist/definitions/order-fulfillment.d.ts.map +1 -0
- package/dist/definitions/order-fulfillment.js +66 -0
- package/dist/definitions/order-payment-collection.d.ts +3 -0
- package/dist/definitions/order-payment-collection.d.ts.map +1 -0
- package/dist/definitions/order-payment-collection.js +70 -0
- package/dist/definitions/order-promotion.d.ts +1 -0
- package/dist/definitions/order-promotion.d.ts.map +1 -0
- package/dist/definitions/order-promotion.js +15 -7
- package/dist/definitions/product-sales-channel.d.ts +1 -0
- package/dist/definitions/product-sales-channel.d.ts.map +1 -0
- package/dist/definitions/product-sales-channel.js +10 -7
- package/dist/definitions/product-variant-inventory-item.d.ts +1 -0
- package/dist/definitions/product-variant-inventory-item.d.ts.map +1 -0
- package/dist/definitions/product-variant-inventory-item.js +13 -7
- package/dist/definitions/product-variant-price-set.d.ts +1 -0
- package/dist/definitions/product-variant-price-set.d.ts.map +1 -0
- package/dist/definitions/product-variant-price-set.js +9 -8
- package/dist/definitions/publishable-api-key-sales-channel.d.ts +1 -0
- package/dist/definitions/publishable-api-key-sales-channel.d.ts.map +1 -0
- package/dist/definitions/publishable-api-key-sales-channel.js +10 -5
- package/dist/definitions/{cart-customer.d.ts → readonly/cart-customer.d.ts} +1 -0
- package/dist/definitions/readonly/cart-customer.d.ts.map +1 -0
- package/dist/definitions/{cart-customer.js → readonly/cart-customer.js} +11 -5
- package/dist/definitions/readonly/cart-product.d.ts +3 -0
- package/dist/definitions/readonly/cart-product.d.ts.map +1 -0
- package/dist/definitions/readonly/cart-product.js +47 -0
- package/dist/definitions/{cart-region.d.ts → readonly/cart-region.d.ts} +1 -0
- package/dist/definitions/readonly/cart-region.d.ts.map +1 -0
- package/dist/definitions/{cart-region.js → readonly/cart-region.js} +11 -5
- package/dist/definitions/{cart-sales-channel.d.ts → readonly/cart-sales-channel.d.ts} +1 -0
- package/dist/definitions/readonly/cart-sales-channel.d.ts.map +1 -0
- package/dist/definitions/{cart-sales-channel.js → readonly/cart-sales-channel.js} +11 -5
- package/dist/definitions/readonly/index.d.ts +12 -0
- package/dist/definitions/readonly/index.d.ts.map +1 -0
- package/dist/definitions/readonly/index.js +27 -0
- package/dist/definitions/{inventory-level-stock-location.d.ts → readonly/inventory-level-stock-location.d.ts} +1 -0
- package/dist/definitions/readonly/inventory-level-stock-location.d.ts.map +1 -0
- package/dist/definitions/{inventory-level-stock-location.js → readonly/inventory-level-stock-location.js} +6 -3
- package/dist/definitions/readonly/line-item-adjustment-promotion.d.ts +3 -0
- package/dist/definitions/readonly/line-item-adjustment-promotion.d.ts.map +1 -0
- package/dist/definitions/readonly/line-item-adjustment-promotion.js +22 -0
- package/dist/definitions/{order-customer.d.ts → readonly/order-customer.d.ts} +1 -0
- package/dist/definitions/readonly/order-customer.d.ts.map +1 -0
- package/dist/definitions/{order-customer.js → readonly/order-customer.js} +11 -5
- package/dist/definitions/readonly/order-product.d.ts +3 -0
- package/dist/definitions/readonly/order-product.d.ts.map +1 -0
- package/dist/definitions/readonly/order-product.js +47 -0
- package/dist/definitions/{order-region.d.ts → readonly/order-region.d.ts} +1 -0
- package/dist/definitions/readonly/order-region.d.ts.map +1 -0
- package/dist/definitions/{order-region.js → readonly/order-region.js} +11 -5
- package/dist/definitions/{order-sales-channel.d.ts → readonly/order-sales-channel.d.ts} +1 -0
- package/dist/definitions/readonly/order-sales-channel.d.ts.map +1 -0
- package/dist/definitions/readonly/order-sales-channel.js +35 -0
- package/dist/definitions/readonly/store-currency.d.ts +3 -0
- package/dist/definitions/readonly/store-currency.d.ts.map +1 -0
- package/dist/definitions/readonly/store-currency.js +22 -0
- package/dist/definitions/region-payment-provider.d.ts +1 -0
- package/dist/definitions/region-payment-provider.d.ts.map +1 -0
- package/dist/definitions/region-payment-provider.js +7 -5
- package/dist/definitions/sales-channel-location.d.ts +1 -0
- package/dist/definitions/sales-channel-location.d.ts.map +1 -0
- package/dist/definitions/sales-channel-location.js +10 -5
- package/dist/definitions/shipping-option-price-set.d.ts +1 -0
- package/dist/definitions/shipping-option-price-set.d.ts.map +1 -0
- package/dist/definitions/shipping-option-price-set.js +7 -5
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/initialize/index.d.ts +2 -0
- package/dist/initialize/index.d.ts.map +1 -0
- package/dist/initialize/index.js +30 -14
- package/dist/initialize/module-definition.d.ts +1 -0
- package/dist/initialize/module-definition.d.ts.map +1 -0
- package/dist/loaders/connection.d.ts +1 -0
- package/dist/loaders/connection.d.ts.map +1 -0
- package/dist/loaders/container.d.ts +1 -0
- package/dist/loaders/container.d.ts.map +1 -0
- package/dist/loaders/index.d.ts +1 -0
- package/dist/loaders/index.d.ts.map +1 -0
- package/dist/migration/index.d.ts +2 -0
- package/dist/migration/index.d.ts.map +1 -0
- package/dist/migration/index.js +31 -7
- package/dist/repositories/index.d.ts +1 -0
- package/dist/repositories/index.d.ts.map +1 -0
- package/dist/repositories/link.d.ts +6 -4
- package/dist/repositories/link.d.ts.map +1 -0
- package/dist/services/dynamic-service-class.d.ts +1 -0
- package/dist/services/dynamic-service-class.d.ts.map +1 -0
- package/dist/services/dynamic-service-class.js +7 -0
- package/dist/services/index.d.ts +1 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/link-module-service.d.ts +1 -0
- package/dist/services/link-module-service.d.ts.map +1 -0
- package/dist/services/link-module-service.js +28 -36
- package/dist/services/link.d.ts +1 -0
- package/dist/services/link.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/utils/compose-link-name.d.ts +1 -0
- package/dist/utils/compose-link-name.d.ts.map +1 -0
- package/dist/utils/generate-entity.d.ts +1 -0
- package/dist/utils/generate-entity.d.ts.map +1 -0
- package/dist/utils/generate-schema.d.ts +1 -0
- package/dist/utils/generate-schema.d.ts.map +1 -0
- package/dist/utils/generate-schema.js +5 -4
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +2 -2
- package/package.json +6 -7
- package/dist/definitions/order-sales-channel.js +0 -67
- package/dist/definitions/product-shipping-profile.d.ts +0 -2
- package/dist/definitions/product-shipping-profile.js +0 -61
- package/dist/definitions/store-default-currency.d.ts +0 -2
- package/dist/definitions/store-default-currency.js +0 -19
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cart-payment-collection.d.ts","sourceRoot":"","sources":["../../src/definitions/cart-payment-collection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,qBAAqB,EAAE,kBA8DnC,CAAA"}
|
@@ -1,7 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.CartPaymentCollection = void 0;
|
4
|
-
const modules_sdk_1 = require("@medusajs/modules-sdk");
|
5
4
|
const utils_1 = require("@medusajs/utils");
|
6
5
|
exports.CartPaymentCollection = {
|
7
6
|
serviceName: utils_1.LINKS.CartPaymentCollection,
|
@@ -21,21 +20,27 @@ exports.CartPaymentCollection = {
|
|
21
20
|
primaryKeys: ["id", "cart_id", "payment_collection_id"],
|
22
21
|
relationships: [
|
23
22
|
{
|
24
|
-
serviceName:
|
23
|
+
serviceName: utils_1.Modules.CART,
|
25
24
|
primaryKey: "id",
|
26
25
|
foreignKey: "cart_id",
|
27
26
|
alias: "cart",
|
27
|
+
args: {
|
28
|
+
methodSuffix: "Carts",
|
29
|
+
},
|
28
30
|
},
|
29
31
|
{
|
30
|
-
serviceName:
|
32
|
+
serviceName: utils_1.Modules.PAYMENT,
|
31
33
|
primaryKey: "id",
|
32
34
|
foreignKey: "payment_collection_id",
|
33
35
|
alias: "payment_collection",
|
36
|
+
args: {
|
37
|
+
methodSuffix: "PaymentCollections",
|
38
|
+
},
|
34
39
|
},
|
35
40
|
],
|
36
41
|
extends: [
|
37
42
|
{
|
38
|
-
serviceName:
|
43
|
+
serviceName: utils_1.Modules.CART,
|
39
44
|
fieldAlias: {
|
40
45
|
payment_collection: "payment_collection_link.payment_collection",
|
41
46
|
},
|
@@ -47,7 +52,7 @@ exports.CartPaymentCollection = {
|
|
47
52
|
},
|
48
53
|
},
|
49
54
|
{
|
50
|
-
serviceName:
|
55
|
+
serviceName: utils_1.Modules.PAYMENT,
|
51
56
|
fieldAlias: {
|
52
57
|
cart: "cart_link.cart",
|
53
58
|
},
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cart-promotion.d.ts","sourceRoot":"","sources":["../../src/definitions/cart-promotion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,aAAa,EAAE,kBAmD3B,CAAA"}
|
@@ -1,7 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.CartPromotion = void 0;
|
4
|
-
const modules_sdk_1 = require("@medusajs/modules-sdk");
|
5
4
|
const utils_1 = require("@medusajs/utils");
|
6
5
|
exports.CartPromotion = {
|
7
6
|
serviceName: utils_1.LINKS.CartPromotion,
|
@@ -21,35 +20,36 @@ exports.CartPromotion = {
|
|
21
20
|
primaryKeys: ["id", "cart_id", "promotion_id"],
|
22
21
|
relationships: [
|
23
22
|
{
|
24
|
-
serviceName:
|
23
|
+
serviceName: utils_1.Modules.CART,
|
25
24
|
primaryKey: "id",
|
26
25
|
foreignKey: "cart_id",
|
27
26
|
alias: "cart",
|
27
|
+
args: {
|
28
|
+
methodSuffix: "Carts",
|
29
|
+
},
|
28
30
|
},
|
29
31
|
{
|
30
|
-
serviceName:
|
32
|
+
serviceName: utils_1.Modules.PROMOTION,
|
31
33
|
primaryKey: "id",
|
32
34
|
foreignKey: "promotion_id",
|
33
|
-
alias: "
|
35
|
+
alias: "promotions",
|
36
|
+
args: {
|
37
|
+
methodSuffix: "Promotions",
|
38
|
+
},
|
34
39
|
},
|
35
40
|
],
|
36
41
|
extends: [
|
37
42
|
{
|
38
|
-
serviceName:
|
43
|
+
serviceName: utils_1.Modules.CART,
|
44
|
+
fieldAlias: {
|
45
|
+
promotions: "cart_link.promotions",
|
46
|
+
},
|
39
47
|
relationship: {
|
40
48
|
serviceName: utils_1.LINKS.CartPromotion,
|
41
49
|
primaryKey: "cart_id",
|
42
50
|
foreignKey: "id",
|
43
51
|
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",
|
52
|
+
isList: true,
|
53
53
|
},
|
54
54
|
},
|
55
55
|
],
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"fulfillment-set-location.d.ts","sourceRoot":"","sources":["../../src/definitions/fulfillment-set-location.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,sBAAsB,EAAE,kBAgEpC,CAAA"}
|
@@ -1,56 +1,49 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
const modules_sdk_1 = require("@medusajs/modules-sdk");
|
3
|
+
exports.LocationFulfillmentSet = void 0;
|
5
4
|
const utils_1 = require("@medusajs/utils");
|
6
|
-
exports.
|
7
|
-
serviceName: utils_1.LINKS.
|
5
|
+
exports.LocationFulfillmentSet = {
|
6
|
+
serviceName: utils_1.LINKS.LocationFulfillmentSet,
|
8
7
|
isLink: true,
|
9
8
|
databaseConfig: {
|
10
|
-
tableName: "
|
11
|
-
idPrefix: "
|
9
|
+
tableName: "location_fulfillment_set",
|
10
|
+
idPrefix: "locfs",
|
12
11
|
},
|
13
12
|
alias: [
|
14
13
|
{
|
15
|
-
name: ["
|
14
|
+
name: ["location_fulfillment_set", "location_fulfillment_sets"],
|
16
15
|
args: {
|
17
|
-
entity: "
|
16
|
+
entity: "LinkLocationFulfillmentSet",
|
18
17
|
},
|
19
18
|
},
|
20
19
|
],
|
21
|
-
primaryKeys: ["id", "
|
20
|
+
primaryKeys: ["id", "stock_location_id", "fulfillment_set_id"],
|
22
21
|
relationships: [
|
23
22
|
{
|
24
|
-
serviceName:
|
25
|
-
primaryKey: "id",
|
26
|
-
foreignKey: "fulfillment_set_id",
|
27
|
-
alias: "fulfillment_set",
|
28
|
-
},
|
29
|
-
{
|
30
|
-
serviceName: modules_sdk_1.Modules.STOCK_LOCATION,
|
23
|
+
serviceName: utils_1.Modules.STOCK_LOCATION,
|
31
24
|
primaryKey: "id",
|
32
25
|
foreignKey: "stock_location_id",
|
33
26
|
alias: "location",
|
27
|
+
args: {
|
28
|
+
methodSuffix: "StockLocations",
|
29
|
+
},
|
34
30
|
},
|
35
|
-
],
|
36
|
-
extends: [
|
37
31
|
{
|
38
|
-
serviceName:
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
primaryKey: "fulfillment_set_id",
|
45
|
-
foreignKey: "id",
|
46
|
-
alias: "locations_link",
|
47
|
-
isList: true,
|
32
|
+
serviceName: utils_1.Modules.FULFILLMENT,
|
33
|
+
primaryKey: "id",
|
34
|
+
foreignKey: "fulfillment_set_id",
|
35
|
+
alias: "fulfillment_set",
|
36
|
+
args: {
|
37
|
+
methodSuffix: "FulfillmentSets",
|
48
38
|
},
|
39
|
+
deleteCascade: true,
|
49
40
|
},
|
41
|
+
],
|
42
|
+
extends: [
|
50
43
|
{
|
51
|
-
serviceName:
|
44
|
+
serviceName: utils_1.Modules.STOCK_LOCATION,
|
52
45
|
relationship: {
|
53
|
-
serviceName: utils_1.LINKS.
|
46
|
+
serviceName: utils_1.LINKS.LocationFulfillmentSet,
|
54
47
|
primaryKey: "stock_location_id",
|
55
48
|
foreignKey: "id",
|
56
49
|
alias: "fulfillment_set_link",
|
@@ -60,5 +53,17 @@ exports.FulfillmentSetLocation = {
|
|
60
53
|
fulfillment_sets: "fulfillment_set_link.fulfillment_set",
|
61
54
|
},
|
62
55
|
},
|
56
|
+
{
|
57
|
+
serviceName: utils_1.Modules.FULFILLMENT,
|
58
|
+
fieldAlias: {
|
59
|
+
location: "locations_link.location",
|
60
|
+
},
|
61
|
+
relationship: {
|
62
|
+
serviceName: utils_1.LINKS.LocationFulfillmentSet,
|
63
|
+
primaryKey: "fulfillment_set_id",
|
64
|
+
foreignKey: "id",
|
65
|
+
alias: "locations_link",
|
66
|
+
},
|
67
|
+
},
|
63
68
|
],
|
64
69
|
};
|
@@ -1,20 +1,16 @@
|
|
1
|
-
export * from "./cart-customer";
|
2
1
|
export * from "./cart-payment-collection";
|
3
2
|
export * from "./cart-promotion";
|
4
|
-
export * from "./cart-region";
|
5
|
-
export * from "./cart-sales-channel";
|
6
3
|
export * from "./fulfillment-set-location";
|
7
|
-
export * from "./
|
8
|
-
export * from "./order-
|
4
|
+
export * from "./order-cart";
|
5
|
+
export * from "./order-fulfillment";
|
6
|
+
export * from "./order-payment-collection";
|
9
7
|
export * from "./order-promotion";
|
10
|
-
export * from "./order-region";
|
11
|
-
export * from "./order-sales-channel";
|
12
8
|
export * from "./product-sales-channel";
|
13
|
-
export * from "./product-shipping-profile";
|
14
9
|
export * from "./product-variant-inventory-item";
|
15
10
|
export * from "./product-variant-price-set";
|
16
11
|
export * from "./publishable-api-key-sales-channel";
|
12
|
+
export * from "./readonly";
|
17
13
|
export * from "./region-payment-provider";
|
18
14
|
export * from "./sales-channel-location";
|
19
15
|
export * from "./shipping-option-price-set";
|
20
|
-
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/definitions/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,kBAAkB,CAAA;AAChC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,cAAc,CAAA;AAC5B,cAAc,qBAAqB,CAAA;AACnC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,mBAAmB,CAAA;AACjC,cAAc,yBAAyB,CAAA;AACvC,cAAc,kCAAkC,CAAA;AAChD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,qCAAqC,CAAA;AACnD,cAAc,YAAY,CAAA;AAC1B,cAAc,2BAA2B,CAAA;AACzC,cAAc,0BAA0B,CAAA;AACxC,cAAc,6BAA6B,CAAA"}
|
@@ -14,23 +14,18 @@ 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
17
|
__exportStar(require("./cart-payment-collection"), exports);
|
19
18
|
__exportStar(require("./cart-promotion"), exports);
|
20
|
-
__exportStar(require("./cart-region"), exports);
|
21
|
-
__exportStar(require("./cart-sales-channel"), exports);
|
22
19
|
__exportStar(require("./fulfillment-set-location"), exports);
|
23
|
-
__exportStar(require("./
|
24
|
-
__exportStar(require("./order-
|
20
|
+
__exportStar(require("./order-cart"), exports);
|
21
|
+
__exportStar(require("./order-fulfillment"), exports);
|
22
|
+
__exportStar(require("./order-payment-collection"), exports);
|
25
23
|
__exportStar(require("./order-promotion"), exports);
|
26
|
-
__exportStar(require("./order-region"), exports);
|
27
|
-
__exportStar(require("./order-sales-channel"), exports);
|
28
24
|
__exportStar(require("./product-sales-channel"), exports);
|
29
|
-
__exportStar(require("./product-shipping-profile"), exports);
|
30
25
|
__exportStar(require("./product-variant-inventory-item"), exports);
|
31
26
|
__exportStar(require("./product-variant-price-set"), exports);
|
32
27
|
__exportStar(require("./publishable-api-key-sales-channel"), exports);
|
28
|
+
__exportStar(require("./readonly"), exports);
|
33
29
|
__exportStar(require("./region-payment-provider"), exports);
|
34
30
|
__exportStar(require("./sales-channel-location"), exports);
|
35
31
|
__exportStar(require("./shipping-option-price-set"), exports);
|
36
|
-
__exportStar(require("./store-default-currency"), exports);
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"order-cart.d.ts","sourceRoot":"","sources":["../../src/definitions/order-cart.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,SAAS,EAAE,kBA8DvB,CAAA"}
|
@@ -0,0 +1,67 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.OrderCart = void 0;
|
4
|
+
const utils_1 = require("@medusajs/utils");
|
5
|
+
exports.OrderCart = {
|
6
|
+
serviceName: utils_1.LINKS.OrderCart,
|
7
|
+
isLink: true,
|
8
|
+
databaseConfig: {
|
9
|
+
tableName: "order_cart",
|
10
|
+
idPrefix: "ordercart",
|
11
|
+
},
|
12
|
+
alias: [
|
13
|
+
{
|
14
|
+
name: ["order_cart", "order_carts"],
|
15
|
+
args: {
|
16
|
+
entity: "LinkOrderCart",
|
17
|
+
},
|
18
|
+
},
|
19
|
+
],
|
20
|
+
primaryKeys: ["id", "order_id", "cart_id"],
|
21
|
+
relationships: [
|
22
|
+
{
|
23
|
+
serviceName: utils_1.Modules.ORDER,
|
24
|
+
primaryKey: "id",
|
25
|
+
foreignKey: "order_id",
|
26
|
+
alias: "order",
|
27
|
+
args: {
|
28
|
+
methodSuffix: "Orders",
|
29
|
+
},
|
30
|
+
},
|
31
|
+
{
|
32
|
+
serviceName: utils_1.Modules.CART,
|
33
|
+
primaryKey: "id",
|
34
|
+
foreignKey: "cart_id",
|
35
|
+
alias: "cart",
|
36
|
+
args: {
|
37
|
+
methodSuffix: "Carts",
|
38
|
+
},
|
39
|
+
},
|
40
|
+
],
|
41
|
+
extends: [
|
42
|
+
{
|
43
|
+
serviceName: utils_1.Modules.ORDER,
|
44
|
+
fieldAlias: {
|
45
|
+
cart: "cart_link.cart",
|
46
|
+
},
|
47
|
+
relationship: {
|
48
|
+
serviceName: utils_1.LINKS.OrderCart,
|
49
|
+
primaryKey: "order_id",
|
50
|
+
foreignKey: "id",
|
51
|
+
alias: "cart_link",
|
52
|
+
},
|
53
|
+
},
|
54
|
+
{
|
55
|
+
serviceName: utils_1.Modules.CART,
|
56
|
+
fieldAlias: {
|
57
|
+
order: "order_link.order",
|
58
|
+
},
|
59
|
+
relationship: {
|
60
|
+
serviceName: utils_1.LINKS.OrderCart,
|
61
|
+
primaryKey: "cart_id",
|
62
|
+
foreignKey: "id",
|
63
|
+
alias: "order_link",
|
64
|
+
},
|
65
|
+
},
|
66
|
+
],
|
67
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"order-claim-payment-collection.d.ts","sourceRoot":"","sources":["../../src/definitions/order-claim-payment-collection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,2BAA2B,EAAE,kBAoEzC,CAAA"}
|
@@ -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 @@
|
|
1
|
+
{"version":3,"file":"order-exchange-payment-collection.d.ts","sourceRoot":"","sources":["../../src/definitions/order-exchange-payment-collection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,8BAA8B,EAAE,kBAoE5C,CAAA"}
|
@@ -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
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"order-fulfillment.d.ts","sourceRoot":"","sources":["../../src/definitions/order-fulfillment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,gBAAgB,EAAE,kBA6D9B,CAAA"}
|
@@ -0,0 +1,66 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.OrderFulfillment = void 0;
|
4
|
+
const utils_1 = require("@medusajs/utils");
|
5
|
+
exports.OrderFulfillment = {
|
6
|
+
serviceName: utils_1.LINKS.OrderFulfillment,
|
7
|
+
isLink: true,
|
8
|
+
databaseConfig: {
|
9
|
+
tableName: "order_fulfillment",
|
10
|
+
idPrefix: "ordful",
|
11
|
+
},
|
12
|
+
alias: [
|
13
|
+
{
|
14
|
+
name: ["order_fulfillment", "order_fulfillments"],
|
15
|
+
args: {
|
16
|
+
entity: "LinkOrderFulfillment",
|
17
|
+
},
|
18
|
+
},
|
19
|
+
],
|
20
|
+
primaryKeys: ["id", "order_id", "fulfillment_id"],
|
21
|
+
relationships: [
|
22
|
+
{
|
23
|
+
serviceName: utils_1.Modules.ORDER,
|
24
|
+
primaryKey: "id",
|
25
|
+
foreignKey: "order_id",
|
26
|
+
alias: "order",
|
27
|
+
args: {
|
28
|
+
methodSuffix: "Orders",
|
29
|
+
},
|
30
|
+
},
|
31
|
+
{
|
32
|
+
serviceName: utils_1.Modules.FULFILLMENT,
|
33
|
+
primaryKey: "id",
|
34
|
+
foreignKey: "fulfillment_id",
|
35
|
+
alias: "fulfillments",
|
36
|
+
args: {
|
37
|
+
// TODO: We are not suppose to know the module implementation here, wait for later to think about inferring it
|
38
|
+
methodSuffix: "Fulfillments",
|
39
|
+
},
|
40
|
+
},
|
41
|
+
],
|
42
|
+
extends: [
|
43
|
+
{
|
44
|
+
serviceName: utils_1.Modules.ORDER,
|
45
|
+
fieldAlias: {
|
46
|
+
fulfillments: "fulfillment_link.fulfillments",
|
47
|
+
},
|
48
|
+
relationship: {
|
49
|
+
serviceName: utils_1.LINKS.OrderFulfillment,
|
50
|
+
primaryKey: "order_id",
|
51
|
+
foreignKey: "id",
|
52
|
+
alias: "fulfillment_link",
|
53
|
+
isList: true,
|
54
|
+
},
|
55
|
+
},
|
56
|
+
{
|
57
|
+
serviceName: utils_1.Modules.FULFILLMENT,
|
58
|
+
relationship: {
|
59
|
+
serviceName: utils_1.LINKS.OrderFulfillment,
|
60
|
+
primaryKey: "fulfillment_id",
|
61
|
+
foreignKey: "id",
|
62
|
+
alias: "order_link",
|
63
|
+
},
|
64
|
+
},
|
65
|
+
],
|
66
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"order-payment-collection.d.ts","sourceRoot":"","sources":["../../src/definitions/order-payment-collection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,sBAAsB,EAAE,kBAiEpC,CAAA"}
|