@medusajs/link-modules 0.2.12-snapshot-20240718083016 → 0.2.12-snapshot-20240719133408
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,70 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.OrderPaymentCollection = void 0;
|
4
|
+
const utils_1 = require("@medusajs/utils");
|
5
|
+
exports.OrderPaymentCollection = {
|
6
|
+
serviceName: utils_1.LINKS.OrderPaymentCollection,
|
7
|
+
isLink: true,
|
8
|
+
databaseConfig: {
|
9
|
+
tableName: "order_payment_collection",
|
10
|
+
idPrefix: "ordpay",
|
11
|
+
},
|
12
|
+
alias: [
|
13
|
+
{
|
14
|
+
name: ["order_payment_collection", "order_payment_collections"],
|
15
|
+
args: {
|
16
|
+
entity: "LinkOrderPaymentCollection",
|
17
|
+
},
|
18
|
+
},
|
19
|
+
],
|
20
|
+
primaryKeys: ["id", "order_id", "payment_collection_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.PAYMENT,
|
33
|
+
primaryKey: "id",
|
34
|
+
foreignKey: "payment_collection_id",
|
35
|
+
alias: "payment_collection",
|
36
|
+
args: {
|
37
|
+
methodSuffix: "PaymentCollections",
|
38
|
+
},
|
39
|
+
},
|
40
|
+
],
|
41
|
+
extends: [
|
42
|
+
{
|
43
|
+
serviceName: utils_1.Modules.ORDER,
|
44
|
+
fieldAlias: {
|
45
|
+
payment_collections: {
|
46
|
+
path: "payment_collections_link.payment_collection",
|
47
|
+
isList: true,
|
48
|
+
},
|
49
|
+
},
|
50
|
+
relationship: {
|
51
|
+
serviceName: utils_1.LINKS.OrderPaymentCollection,
|
52
|
+
primaryKey: "order_id",
|
53
|
+
foreignKey: "id",
|
54
|
+
alias: "payment_collections_link",
|
55
|
+
},
|
56
|
+
},
|
57
|
+
{
|
58
|
+
serviceName: utils_1.Modules.PAYMENT,
|
59
|
+
fieldAlias: {
|
60
|
+
order: "order_link.order",
|
61
|
+
},
|
62
|
+
relationship: {
|
63
|
+
serviceName: utils_1.LINKS.OrderPaymentCollection,
|
64
|
+
primaryKey: "payment_collection_id",
|
65
|
+
foreignKey: "id",
|
66
|
+
alias: "order_link",
|
67
|
+
},
|
68
|
+
},
|
69
|
+
],
|
70
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"order-promotion.d.ts","sourceRoot":"","sources":["../../src/definitions/order-promotion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,cAAc,EAAE,kBA2D5B,CAAA"}
|
@@ -1,7 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.OrderPromotion = void 0;
|
4
|
-
const modules_sdk_1 = require("@medusajs/modules-sdk");
|
5
4
|
const utils_1 = require("@medusajs/utils");
|
6
5
|
exports.OrderPromotion = {
|
7
6
|
serviceName: utils_1.LINKS.OrderPromotion,
|
@@ -21,35 +20,44 @@ exports.OrderPromotion = {
|
|
21
20
|
primaryKeys: ["id", "order_id", "promotion_id"],
|
22
21
|
relationships: [
|
23
22
|
{
|
24
|
-
serviceName:
|
23
|
+
serviceName: utils_1.Modules.ORDER,
|
25
24
|
primaryKey: "id",
|
26
25
|
foreignKey: "order_id",
|
27
26
|
alias: "order",
|
27
|
+
args: {
|
28
|
+
methodSuffix: "Orders",
|
29
|
+
},
|
28
30
|
},
|
29
31
|
{
|
30
|
-
serviceName:
|
32
|
+
serviceName: utils_1.Modules.PROMOTION,
|
31
33
|
primaryKey: "id",
|
32
34
|
foreignKey: "promotion_id",
|
33
35
|
alias: "promotion",
|
36
|
+
args: {
|
37
|
+
methodSuffix: "Promotions",
|
38
|
+
},
|
34
39
|
},
|
35
40
|
],
|
36
41
|
extends: [
|
37
42
|
{
|
38
|
-
serviceName:
|
43
|
+
serviceName: utils_1.Modules.ORDER,
|
44
|
+
fieldAlias: {
|
45
|
+
promotion: "promotion_link.promotion",
|
46
|
+
},
|
39
47
|
relationship: {
|
40
48
|
serviceName: utils_1.LINKS.OrderPromotion,
|
41
49
|
primaryKey: "order_id",
|
42
50
|
foreignKey: "id",
|
43
|
-
alias: "
|
51
|
+
alias: "promotion_link",
|
44
52
|
},
|
45
53
|
},
|
46
54
|
{
|
47
|
-
serviceName:
|
55
|
+
serviceName: utils_1.Modules.PROMOTION,
|
48
56
|
relationship: {
|
49
57
|
serviceName: utils_1.LINKS.OrderPromotion,
|
50
58
|
primaryKey: "promotion_id",
|
51
59
|
foreignKey: "id",
|
52
|
-
alias: "
|
60
|
+
alias: "order_link",
|
53
61
|
},
|
54
62
|
},
|
55
63
|
],
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"product-sales-channel.d.ts","sourceRoot":"","sources":["../../src/definitions/product-sales-channel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,mBAAmB,EAAE,kBA6DjC,CAAA"}
|
@@ -1,7 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.ProductSalesChannel = void 0;
|
4
|
-
const modules_sdk_1 = require("@medusajs/modules-sdk");
|
5
4
|
const utils_1 = require("@medusajs/utils");
|
6
5
|
exports.ProductSalesChannel = {
|
7
6
|
serviceName: utils_1.LINKS.ProductSalesChannel,
|
@@ -21,22 +20,27 @@ exports.ProductSalesChannel = {
|
|
21
20
|
primaryKeys: ["id", "product_id", "sales_channel_id"],
|
22
21
|
relationships: [
|
23
22
|
{
|
24
|
-
serviceName:
|
23
|
+
serviceName: utils_1.Modules.PRODUCT,
|
25
24
|
primaryKey: "id",
|
26
25
|
foreignKey: "product_id",
|
27
26
|
alias: "product",
|
27
|
+
args: {
|
28
|
+
methodSuffix: "Products",
|
29
|
+
},
|
28
30
|
},
|
29
31
|
{
|
30
|
-
serviceName:
|
31
|
-
isInternalService: true,
|
32
|
+
serviceName: utils_1.Modules.SALES_CHANNEL,
|
32
33
|
primaryKey: "id",
|
33
34
|
foreignKey: "sales_channel_id",
|
34
35
|
alias: "sales_channel",
|
36
|
+
args: {
|
37
|
+
methodSuffix: "SalesChannels",
|
38
|
+
},
|
35
39
|
},
|
36
40
|
],
|
37
41
|
extends: [
|
38
42
|
{
|
39
|
-
serviceName:
|
43
|
+
serviceName: utils_1.Modules.PRODUCT,
|
40
44
|
fieldAlias: {
|
41
45
|
sales_channels: "sales_channels_link.sales_channel",
|
42
46
|
},
|
@@ -49,10 +53,9 @@ exports.ProductSalesChannel = {
|
|
49
53
|
},
|
50
54
|
},
|
51
55
|
{
|
52
|
-
serviceName:
|
56
|
+
serviceName: utils_1.Modules.SALES_CHANNEL,
|
53
57
|
relationship: {
|
54
58
|
serviceName: utils_1.LINKS.ProductSalesChannel,
|
55
|
-
isInternalService: true,
|
56
59
|
primaryKey: "sales_channel_id",
|
57
60
|
foreignKey: "id",
|
58
61
|
alias: "products_link",
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"product-variant-inventory-item.d.ts","sourceRoot":"","sources":["../../src/definitions/product-variant-inventory-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,2BAA2B,EAAE,kBA0EzC,CAAA"}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.ProductVariantInventoryItem = void 0;
|
4
4
|
const utils_1 = require("@medusajs/utils");
|
5
|
-
const modules_sdk_1 = require("@medusajs/modules-sdk");
|
6
5
|
exports.ProductVariantInventoryItem = {
|
7
6
|
serviceName: utils_1.LINKS.ProductVariantInventoryItem,
|
8
7
|
isLink: true,
|
@@ -30,25 +29,31 @@ exports.ProductVariantInventoryItem = {
|
|
30
29
|
primaryKeys: ["id", "variant_id", "inventory_item_id"],
|
31
30
|
relationships: [
|
32
31
|
{
|
33
|
-
serviceName:
|
32
|
+
serviceName: utils_1.Modules.PRODUCT,
|
34
33
|
primaryKey: "id",
|
35
34
|
foreignKey: "variant_id",
|
36
35
|
alias: "variant",
|
37
36
|
args: {
|
38
|
-
methodSuffix: "
|
37
|
+
methodSuffix: "ProductVariants",
|
39
38
|
},
|
40
39
|
},
|
41
40
|
{
|
42
|
-
serviceName:
|
41
|
+
serviceName: utils_1.Modules.INVENTORY,
|
43
42
|
primaryKey: "id",
|
44
43
|
foreignKey: "inventory_item_id",
|
45
44
|
alias: "inventory",
|
45
|
+
args: {
|
46
|
+
methodSuffix: "InventoryItems",
|
47
|
+
},
|
46
48
|
deleteCascade: true,
|
47
49
|
},
|
48
50
|
],
|
49
51
|
extends: [
|
50
52
|
{
|
51
|
-
serviceName:
|
53
|
+
serviceName: utils_1.Modules.PRODUCT,
|
54
|
+
fieldAlias: {
|
55
|
+
inventory: "inventory_items.inventory",
|
56
|
+
},
|
52
57
|
relationship: {
|
53
58
|
serviceName: utils_1.LINKS.ProductVariantInventoryItem,
|
54
59
|
primaryKey: "variant_id",
|
@@ -58,15 +63,16 @@ exports.ProductVariantInventoryItem = {
|
|
58
63
|
},
|
59
64
|
},
|
60
65
|
{
|
61
|
-
serviceName:
|
66
|
+
serviceName: utils_1.Modules.INVENTORY,
|
62
67
|
fieldAlias: {
|
63
|
-
|
68
|
+
variants: "variant_link.variant",
|
64
69
|
},
|
65
70
|
relationship: {
|
66
71
|
serviceName: utils_1.LINKS.ProductVariantInventoryItem,
|
67
72
|
primaryKey: "inventory_item_id",
|
68
73
|
foreignKey: "id",
|
69
74
|
alias: "variant_link",
|
75
|
+
isList: true,
|
70
76
|
},
|
71
77
|
},
|
72
78
|
],
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"product-variant-price-set.d.ts","sourceRoot":"","sources":["../../src/definitions/product-variant-price-set.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,sBAAsB,EAAE,kBAoEpC,CAAA"}
|
@@ -1,7 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.ProductVariantPriceSet = void 0;
|
4
|
-
const modules_sdk_1 = require("@medusajs/modules-sdk");
|
5
4
|
const utils_1 = require("@medusajs/utils");
|
6
5
|
exports.ProductVariantPriceSet = {
|
7
6
|
serviceName: utils_1.LINKS.ProductVariantPriceSet,
|
@@ -21,29 +20,31 @@ exports.ProductVariantPriceSet = {
|
|
21
20
|
primaryKeys: ["id", "variant_id", "price_set_id"],
|
22
21
|
relationships: [
|
23
22
|
{
|
24
|
-
serviceName:
|
25
|
-
// TODO: Remove this when product module is the default product service
|
26
|
-
isInternalService: true,
|
23
|
+
serviceName: utils_1.Modules.PRODUCT,
|
27
24
|
primaryKey: "id",
|
28
25
|
foreignKey: "variant_id",
|
29
26
|
alias: "variant",
|
30
27
|
args: {
|
31
|
-
methodSuffix: "
|
28
|
+
methodSuffix: "ProductVariants",
|
32
29
|
},
|
33
30
|
},
|
34
31
|
{
|
35
|
-
serviceName:
|
32
|
+
serviceName: utils_1.Modules.PRICING,
|
36
33
|
primaryKey: "id",
|
37
34
|
foreignKey: "price_set_id",
|
38
35
|
alias: "price_set",
|
36
|
+
args: {
|
37
|
+
methodSuffix: "PriceSets",
|
38
|
+
},
|
39
39
|
deleteCascade: true,
|
40
40
|
},
|
41
41
|
],
|
42
42
|
extends: [
|
43
43
|
{
|
44
|
-
serviceName:
|
44
|
+
serviceName: utils_1.Modules.PRODUCT,
|
45
45
|
fieldAlias: {
|
46
46
|
price_set: "price_set_link.price_set",
|
47
|
+
prices: "price_set_link.price_set.prices",
|
47
48
|
calculated_price: {
|
48
49
|
path: "price_set_link.price_set.calculated_price",
|
49
50
|
forwardArgumentsOnPath: ["price_set_link.price_set"],
|
@@ -57,7 +58,7 @@ exports.ProductVariantPriceSet = {
|
|
57
58
|
},
|
58
59
|
},
|
59
60
|
{
|
60
|
-
serviceName:
|
61
|
+
serviceName: utils_1.Modules.PRICING,
|
61
62
|
relationship: {
|
62
63
|
serviceName: utils_1.LINKS.ProductVariantPriceSet,
|
63
64
|
primaryKey: "price_set_id",
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"publishable-api-key-sales-channel.d.ts","sourceRoot":"","sources":["../../src/definitions/publishable-api-key-sales-channel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,6BAA6B,EAAE,kBAgE3C,CAAA"}
|
@@ -1,7 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.PublishableApiKeySalesChannel = void 0;
|
4
|
-
const modules_sdk_1 = require("@medusajs/modules-sdk");
|
5
4
|
const utils_1 = require("@medusajs/utils");
|
6
5
|
exports.PublishableApiKeySalesChannel = {
|
7
6
|
serviceName: utils_1.LINKS.PublishableApiKeySalesChannel,
|
@@ -21,21 +20,27 @@ exports.PublishableApiKeySalesChannel = {
|
|
21
20
|
primaryKeys: ["id", "publishable_key_id", "sales_channel_id"],
|
22
21
|
relationships: [
|
23
22
|
{
|
24
|
-
serviceName:
|
23
|
+
serviceName: utils_1.Modules.API_KEY,
|
25
24
|
primaryKey: "id",
|
26
25
|
foreignKey: "publishable_key_id",
|
27
26
|
alias: "api_key",
|
27
|
+
args: {
|
28
|
+
methodSuffix: "ApiKeys",
|
29
|
+
},
|
28
30
|
},
|
29
31
|
{
|
30
|
-
serviceName:
|
32
|
+
serviceName: utils_1.Modules.SALES_CHANNEL,
|
31
33
|
primaryKey: "id",
|
32
34
|
foreignKey: "sales_channel_id",
|
33
35
|
alias: "sales_channel",
|
36
|
+
args: {
|
37
|
+
methodSuffix: "SalesChannels",
|
38
|
+
},
|
34
39
|
},
|
35
40
|
],
|
36
41
|
extends: [
|
37
42
|
{
|
38
|
-
serviceName:
|
43
|
+
serviceName: utils_1.Modules.API_KEY,
|
39
44
|
fieldAlias: {
|
40
45
|
sales_channels: "sales_channels_link.sales_channel",
|
41
46
|
},
|
@@ -48,7 +53,7 @@ exports.PublishableApiKeySalesChannel = {
|
|
48
53
|
},
|
49
54
|
},
|
50
55
|
{
|
51
|
-
serviceName:
|
56
|
+
serviceName: utils_1.Modules.SALES_CHANNEL,
|
52
57
|
fieldAlias: {
|
53
58
|
publishable_api_keys: "api_keys_link.api_key",
|
54
59
|
},
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cart-customer.d.ts","sourceRoot":"","sources":["../../../src/definitions/readonly/cart-customer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,YAAY,EAAE,kBA8B1B,CAAA"}
|
@@ -1,27 +1,33 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.CartCustomer = void 0;
|
4
|
-
const
|
4
|
+
const utils_1 = require("@medusajs/utils");
|
5
5
|
exports.CartCustomer = {
|
6
6
|
isLink: true,
|
7
7
|
isReadOnlyLink: true,
|
8
8
|
extends: [
|
9
9
|
{
|
10
|
-
serviceName:
|
10
|
+
serviceName: utils_1.Modules.CART,
|
11
11
|
relationship: {
|
12
|
-
serviceName:
|
12
|
+
serviceName: utils_1.Modules.CUSTOMER,
|
13
13
|
primaryKey: "id",
|
14
14
|
foreignKey: "customer_id",
|
15
15
|
alias: "customer",
|
16
|
+
args: {
|
17
|
+
methodSuffix: "Customers",
|
18
|
+
},
|
16
19
|
},
|
17
20
|
},
|
18
21
|
{
|
19
|
-
serviceName:
|
22
|
+
serviceName: utils_1.Modules.CUSTOMER,
|
20
23
|
relationship: {
|
21
|
-
serviceName:
|
24
|
+
serviceName: utils_1.Modules.CART,
|
22
25
|
primaryKey: "customer_id",
|
23
26
|
foreignKey: "id",
|
24
27
|
alias: "carts",
|
28
|
+
args: {
|
29
|
+
methodSuffix: "Carts",
|
30
|
+
},
|
25
31
|
isList: true,
|
26
32
|
},
|
27
33
|
},
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cart-product.d.ts","sourceRoot":"","sources":["../../../src/definitions/readonly/cart-product.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,WAAW,EAAE,kBA0CzB,CAAA"}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.CartProduct = void 0;
|
4
|
+
const utils_1 = require("@medusajs/utils");
|
5
|
+
exports.CartProduct = {
|
6
|
+
isLink: true,
|
7
|
+
isReadOnlyLink: true,
|
8
|
+
extends: [
|
9
|
+
{
|
10
|
+
serviceName: utils_1.Modules.CART,
|
11
|
+
relationship: {
|
12
|
+
serviceName: utils_1.Modules.PRODUCT,
|
13
|
+
primaryKey: "id",
|
14
|
+
foreignKey: "items.product_id",
|
15
|
+
alias: "product",
|
16
|
+
args: {
|
17
|
+
methodSuffix: "Products",
|
18
|
+
},
|
19
|
+
},
|
20
|
+
},
|
21
|
+
{
|
22
|
+
serviceName: utils_1.Modules.CART,
|
23
|
+
relationship: {
|
24
|
+
serviceName: utils_1.Modules.PRODUCT,
|
25
|
+
primaryKey: "id",
|
26
|
+
foreignKey: "items.variant_id",
|
27
|
+
alias: "variant",
|
28
|
+
args: {
|
29
|
+
methodSuffix: "ProductVariants",
|
30
|
+
},
|
31
|
+
},
|
32
|
+
},
|
33
|
+
{
|
34
|
+
serviceName: utils_1.Modules.PRODUCT,
|
35
|
+
relationship: {
|
36
|
+
serviceName: utils_1.Modules.CART,
|
37
|
+
primaryKey: "variant_id",
|
38
|
+
foreignKey: "id",
|
39
|
+
alias: "cart_items",
|
40
|
+
isList: true,
|
41
|
+
args: {
|
42
|
+
methodSuffix: "LineItems",
|
43
|
+
},
|
44
|
+
},
|
45
|
+
},
|
46
|
+
],
|
47
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cart-region.d.ts","sourceRoot":"","sources":["../../../src/definitions/readonly/cart-region.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,UAAU,EAAE,kBA8BxB,CAAA"}
|
@@ -1,27 +1,33 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.CartRegion = void 0;
|
4
|
-
const
|
4
|
+
const utils_1 = require("@medusajs/utils");
|
5
5
|
exports.CartRegion = {
|
6
6
|
isLink: true,
|
7
7
|
isReadOnlyLink: true,
|
8
8
|
extends: [
|
9
9
|
{
|
10
|
-
serviceName:
|
10
|
+
serviceName: utils_1.Modules.CART,
|
11
11
|
relationship: {
|
12
|
-
serviceName:
|
12
|
+
serviceName: utils_1.Modules.REGION,
|
13
13
|
primaryKey: "id",
|
14
14
|
foreignKey: "region_id",
|
15
15
|
alias: "region",
|
16
|
+
args: {
|
17
|
+
methodSuffix: "Regions",
|
18
|
+
},
|
16
19
|
},
|
17
20
|
},
|
18
21
|
{
|
19
|
-
serviceName:
|
22
|
+
serviceName: utils_1.Modules.REGION,
|
20
23
|
relationship: {
|
21
|
-
serviceName:
|
24
|
+
serviceName: utils_1.Modules.CART,
|
22
25
|
primaryKey: "region_id",
|
23
26
|
foreignKey: "id",
|
24
27
|
alias: "carts",
|
28
|
+
args: {
|
29
|
+
methodSuffix: "Carts",
|
30
|
+
},
|
25
31
|
isList: true,
|
26
32
|
},
|
27
33
|
},
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cart-sales-channel.d.ts","sourceRoot":"","sources":["../../../src/definitions/readonly/cart-sales-channel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,gBAAgB,EAAE,kBA8B9B,CAAA"}
|
@@ -1,27 +1,33 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.CartSalesChannel = void 0;
|
4
|
-
const
|
4
|
+
const utils_1 = require("@medusajs/utils");
|
5
5
|
exports.CartSalesChannel = {
|
6
6
|
isLink: true,
|
7
7
|
isReadOnlyLink: true,
|
8
8
|
extends: [
|
9
9
|
{
|
10
|
-
serviceName:
|
10
|
+
serviceName: utils_1.Modules.CART,
|
11
11
|
relationship: {
|
12
|
-
serviceName:
|
12
|
+
serviceName: utils_1.Modules.SALES_CHANNEL,
|
13
13
|
primaryKey: "id",
|
14
14
|
foreignKey: "sales_channel_id",
|
15
15
|
alias: "sales_channel",
|
16
|
+
args: {
|
17
|
+
methodSuffix: "SalesChannels",
|
18
|
+
},
|
16
19
|
},
|
17
20
|
},
|
18
21
|
{
|
19
|
-
serviceName:
|
22
|
+
serviceName: utils_1.Modules.SALES_CHANNEL,
|
20
23
|
relationship: {
|
21
|
-
serviceName:
|
24
|
+
serviceName: utils_1.Modules.CART,
|
22
25
|
primaryKey: "sales_channel_id",
|
23
26
|
foreignKey: "id",
|
24
27
|
alias: "carts",
|
28
|
+
args: {
|
29
|
+
methodSuffix: "Carts",
|
30
|
+
},
|
25
31
|
isList: true,
|
26
32
|
},
|
27
33
|
},
|
@@ -0,0 +1,12 @@
|
|
1
|
+
export * from "./cart-customer";
|
2
|
+
export * from "./cart-product";
|
3
|
+
export * from "./cart-region";
|
4
|
+
export * from "./cart-sales-channel";
|
5
|
+
export * from "./inventory-level-stock-location";
|
6
|
+
export * from "./line-item-adjustment-promotion";
|
7
|
+
export * from "./order-customer";
|
8
|
+
export * from "./order-product";
|
9
|
+
export * from "./order-region";
|
10
|
+
export * from "./order-sales-channel";
|
11
|
+
export * from "./store-currency";
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/definitions/readonly/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,sBAAsB,CAAA;AACpC,cAAc,kCAAkC,CAAA;AAChD,cAAc,kCAAkC,CAAA;AAChD,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,uBAAuB,CAAA;AACrC,cAAc,kBAAkB,CAAA"}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./cart-customer"), exports);
|
18
|
+
__exportStar(require("./cart-product"), exports);
|
19
|
+
__exportStar(require("./cart-region"), exports);
|
20
|
+
__exportStar(require("./cart-sales-channel"), exports);
|
21
|
+
__exportStar(require("./inventory-level-stock-location"), exports);
|
22
|
+
__exportStar(require("./line-item-adjustment-promotion"), exports);
|
23
|
+
__exportStar(require("./order-customer"), exports);
|
24
|
+
__exportStar(require("./order-product"), exports);
|
25
|
+
__exportStar(require("./order-region"), exports);
|
26
|
+
__exportStar(require("./order-sales-channel"), exports);
|
27
|
+
__exportStar(require("./store-currency"), exports);
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"inventory-level-stock-location.d.ts","sourceRoot":"","sources":["../../../src/definitions/readonly/inventory-level-stock-location.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,2BAA2B,EAAE,kBAkBzC,CAAA"}
|