@medusajs/link-modules 0.2.12 → 1.0.0-rc-20241001083650
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 +2 -1
- package/dist/definitions/cart-payment-collection.d.ts.map +1 -0
- package/dist/definitions/cart-payment-collection.js +15 -9
- package/dist/definitions/cart-payment-collection.js.map +1 -0
- package/dist/definitions/cart-promotion.d.ts +2 -1
- package/dist/definitions/cart-promotion.d.ts.map +1 -0
- package/dist/definitions/cart-promotion.js +22 -18
- package/dist/definitions/cart-promotion.js.map +1 -0
- package/dist/definitions/fulfillment-provider-location.d.ts +3 -0
- package/dist/definitions/fulfillment-provider-location.d.ts.map +1 -0
- package/dist/definitions/fulfillment-provider-location.js +72 -0
- package/dist/definitions/fulfillment-provider-location.js.map +1 -0
- package/dist/definitions/fulfillment-set-location.d.ts +3 -2
- package/dist/definitions/fulfillment-set-location.d.ts.map +1 -0
- package/dist/definitions/fulfillment-set-location.js +42 -33
- package/dist/definitions/fulfillment-set-location.js.map +1 -0
- package/dist/definitions/index.d.ts +7 -9
- package/dist/definitions/index.d.ts.map +1 -0
- package/dist/definitions/index.js +7 -9
- package/dist/definitions/index.js.map +1 -0
- 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 +68 -0
- package/dist/definitions/order-cart.js.map +1 -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 +74 -0
- package/dist/definitions/order-claim-payment-collection.js.map +1 -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 +74 -0
- package/dist/definitions/order-exchange-payment-collection.js.map +1 -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 +72 -0
- package/dist/definitions/order-fulfillment.js.map +1 -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 +72 -0
- package/dist/definitions/order-payment-collection.js.map +1 -0
- package/dist/definitions/order-promotion.d.ts +2 -1
- package/dist/definitions/order-promotion.d.ts.map +1 -0
- package/dist/definitions/order-promotion.js +20 -11
- package/dist/definitions/order-promotion.js.map +1 -0
- package/dist/definitions/order-return-fulfillment.d.ts +3 -0
- package/dist/definitions/order-return-fulfillment.d.ts.map +1 -0
- package/dist/definitions/order-return-fulfillment.js +69 -0
- package/dist/definitions/order-return-fulfillment.js.map +1 -0
- package/dist/definitions/product-sales-channel.d.ts +2 -1
- package/dist/definitions/product-sales-channel.d.ts.map +1 -0
- package/dist/definitions/product-sales-channel.js +18 -9
- package/dist/definitions/product-sales-channel.js.map +1 -0
- package/dist/definitions/product-variant-inventory-item.d.ts +2 -1
- package/dist/definitions/product-variant-inventory-item.d.ts.map +1 -0
- package/dist/definitions/product-variant-inventory-item.js +21 -11
- package/dist/definitions/product-variant-inventory-item.js.map +1 -0
- package/dist/definitions/product-variant-price-set.d.ts +2 -1
- package/dist/definitions/product-variant-price-set.d.ts.map +1 -0
- package/dist/definitions/product-variant-price-set.js +18 -12
- package/dist/definitions/product-variant-price-set.js.map +1 -0
- package/dist/definitions/publishable-api-key-sales-channel.d.ts +2 -1
- package/dist/definitions/publishable-api-key-sales-channel.d.ts.map +1 -0
- package/dist/definitions/publishable-api-key-sales-channel.js +22 -8
- package/dist/definitions/publishable-api-key-sales-channel.js.map +1 -0
- package/dist/definitions/readonly/cart-customer.d.ts +3 -0
- package/dist/definitions/readonly/cart-customer.d.ts.map +1 -0
- package/dist/definitions/{cart-customer.js → readonly/cart-customer.js} +14 -5
- package/dist/definitions/readonly/cart-customer.js.map +1 -0
- 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 +50 -0
- package/dist/definitions/readonly/cart-product.js.map +1 -0
- package/dist/definitions/readonly/cart-region.d.ts +3 -0
- package/dist/definitions/readonly/cart-region.d.ts.map +1 -0
- package/dist/definitions/{cart-region.js → readonly/cart-region.js} +14 -5
- package/dist/definitions/readonly/cart-region.js.map +1 -0
- package/dist/definitions/readonly/cart-sales-channel.d.ts +3 -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} +14 -5
- package/dist/definitions/readonly/cart-sales-channel.js.map +1 -0
- 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 +28 -0
- package/dist/definitions/readonly/index.js.map +1 -0
- package/dist/definitions/readonly/inventory-level-stock-location.d.ts +3 -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} +8 -3
- package/dist/definitions/readonly/inventory-level-stock-location.js.map +1 -0
- 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 +24 -0
- package/dist/definitions/readonly/line-item-adjustment-promotion.js.map +1 -0
- package/dist/definitions/readonly/order-customer.d.ts +3 -0
- package/dist/definitions/readonly/order-customer.d.ts.map +1 -0
- package/dist/definitions/{order-customer.js → readonly/order-customer.js} +14 -5
- package/dist/definitions/readonly/order-customer.js.map +1 -0
- 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 +51 -0
- package/dist/definitions/readonly/order-product.js.map +1 -0
- package/dist/definitions/readonly/order-region.d.ts +3 -0
- package/dist/definitions/readonly/order-region.d.ts.map +1 -0
- package/dist/definitions/{order-region.js → readonly/order-region.js} +14 -5
- package/dist/definitions/readonly/order-region.js.map +1 -0
- package/dist/definitions/readonly/order-sales-channel.d.ts +3 -0
- package/dist/definitions/readonly/order-sales-channel.d.ts.map +1 -0
- package/dist/definitions/readonly/order-sales-channel.js +38 -0
- package/dist/definitions/readonly/order-sales-channel.js.map +1 -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 +24 -0
- package/dist/definitions/readonly/store-currency.js.map +1 -0
- package/dist/definitions/region-payment-provider.d.ts +2 -1
- package/dist/definitions/region-payment-provider.d.ts.map +1 -0
- package/dist/definitions/region-payment-provider.js +20 -11
- package/dist/definitions/region-payment-provider.js.map +1 -0
- package/dist/definitions/sales-channel-location.d.ts +2 -1
- package/dist/definitions/sales-channel-location.d.ts.map +1 -0
- package/dist/definitions/sales-channel-location.js +23 -11
- package/dist/definitions/sales-channel-location.js.map +1 -0
- package/dist/definitions/shipping-option-price-set.d.ts +2 -1
- package/dist/definitions/shipping-option-price-set.d.ts.map +1 -0
- package/dist/definitions/shipping-option-price-set.js +12 -9
- package/dist/definitions/shipping-option-price-set.js.map +1 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -0
- package/dist/initialize/index.d.ts +13 -4
- package/dist/initialize/index.d.ts.map +1 -0
- package/dist/initialize/index.js +42 -28
- package/dist/initialize/index.js.map +1 -0
- package/dist/initialize/module-definition.d.ts +2 -1
- package/dist/initialize/module-definition.d.ts.map +1 -0
- package/dist/initialize/module-definition.js +2 -2
- package/dist/initialize/module-definition.js.map +1 -0
- package/dist/loaders/connection.d.ts +2 -1
- package/dist/loaders/connection.d.ts.map +1 -0
- package/dist/loaders/connection.js +3 -3
- package/dist/loaders/connection.js.map +1 -0
- package/dist/loaders/container.d.ts +2 -2
- package/dist/loaders/container.d.ts.map +1 -0
- package/dist/loaders/container.js +6 -7
- package/dist/loaders/container.js.map +1 -0
- package/dist/loaders/index.d.ts +2 -1
- package/dist/loaders/index.d.ts.map +1 -0
- package/dist/loaders/index.js +2 -2
- package/dist/loaders/index.js.map +1 -0
- package/dist/migration/index.d.ts +103 -2
- package/dist/migration/index.d.ts.map +1 -0
- package/dist/migration/index.js +341 -46
- package/dist/migration/index.js.map +1 -0
- package/dist/repositories/index.d.ts +2 -1
- package/dist/repositories/index.d.ts.map +1 -0
- package/dist/repositories/index.js +2 -1
- package/dist/repositories/index.js.map +1 -0
- package/dist/repositories/link.d.ts +20 -20
- package/dist/repositories/link.d.ts.map +1 -0
- package/dist/repositories/link.js +3 -3
- package/dist/repositories/link.js.map +1 -0
- package/dist/services/dynamic-service-class.d.ts +2 -1
- package/dist/services/dynamic-service-class.d.ts.map +1 -0
- package/dist/services/dynamic-service-class.js +10 -3
- package/dist/services/dynamic-service-class.js.map +1 -0
- package/dist/services/index.d.ts +1 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/index.js +1 -0
- package/dist/services/index.js.map +1 -0
- package/dist/services/link-module-service.d.ts +5 -3
- package/dist/services/link-module-service.d.ts.map +1 -0
- package/dist/services/link-module-service.js +34 -41
- package/dist/services/link-module-service.js.map +1 -0
- package/dist/services/link.d.ts +2 -1
- package/dist/services/link.d.ts.map +1 -0
- package/dist/services/link.js +2 -1
- package/dist/services/link.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -0
- package/dist/utils/compress-name.d.ts +2 -0
- package/dist/utils/compress-name.d.ts.map +1 -0
- package/dist/utils/compress-name.js +33 -0
- package/dist/utils/compress-name.js.map +1 -0
- package/dist/utils/generate-entity.d.ts +2 -1
- package/dist/utils/generate-entity.d.ts.map +1 -0
- package/dist/utils/generate-entity.js +6 -6
- package/dist/utils/generate-entity.js.map +1 -0
- package/dist/utils/generate-schema.d.ts +2 -1
- package/dist/utils/generate-schema.d.ts.map +1 -0
- package/dist/utils/generate-schema.js +76 -20
- package/dist/utils/generate-schema.js.map +1 -0
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +5 -6
- package/dist/utils/index.js.map +1 -0
- package/package.json +22 -15
- package/dist/definitions/cart-customer.d.ts +0 -2
- package/dist/definitions/cart-region.d.ts +0 -2
- package/dist/definitions/cart-sales-channel.d.ts +0 -2
- package/dist/definitions/inventory-level-stock-location.d.ts +0 -2
- package/dist/definitions/order-customer.d.ts +0 -2
- package/dist/definitions/order-region.d.ts +0 -2
- package/dist/definitions/order-sales-channel.d.ts +0 -2
- 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
- package/dist/utils/compose-link-name.d.ts +0 -2
- package/dist/utils/compose-link-name.js +0 -12
@@ -1,8 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.ProductVariantPriceSet = void 0;
|
4
|
-
const
|
5
|
-
const utils_1 = require("@medusajs/utils");
|
4
|
+
const utils_1 = require("@medusajs/framework/utils");
|
6
5
|
exports.ProductVariantPriceSet = {
|
7
6
|
serviceName: utils_1.LINKS.ProductVariantPriceSet,
|
8
7
|
isLink: true,
|
@@ -13,37 +12,43 @@ exports.ProductVariantPriceSet = {
|
|
13
12
|
alias: [
|
14
13
|
{
|
15
14
|
name: ["product_variant_price_set", "product_variant_price_sets"],
|
16
|
-
|
17
|
-
entity: "LinkProductVariantPriceSet",
|
18
|
-
},
|
15
|
+
entity: "LinkProductVariantPriceSet",
|
19
16
|
},
|
20
17
|
],
|
21
18
|
primaryKeys: ["id", "variant_id", "price_set_id"],
|
22
19
|
relationships: [
|
23
20
|
{
|
24
|
-
serviceName:
|
25
|
-
|
26
|
-
isInternalService: true,
|
21
|
+
serviceName: utils_1.Modules.PRODUCT,
|
22
|
+
entity: "ProductVariant",
|
27
23
|
primaryKey: "id",
|
28
24
|
foreignKey: "variant_id",
|
29
25
|
alias: "variant",
|
30
26
|
args: {
|
31
|
-
methodSuffix: "
|
27
|
+
methodSuffix: "ProductVariants",
|
32
28
|
},
|
33
29
|
},
|
34
30
|
{
|
35
|
-
serviceName:
|
31
|
+
serviceName: utils_1.Modules.PRICING,
|
32
|
+
entity: "PriceSet",
|
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: {
|
48
|
+
path: "price_set_link.price_set.prices",
|
49
|
+
isList: true,
|
50
|
+
forwardArgumentsOnPath: ["price_set_link.price_set"],
|
51
|
+
},
|
47
52
|
calculated_price: {
|
48
53
|
path: "price_set_link.price_set.calculated_price",
|
49
54
|
forwardArgumentsOnPath: ["price_set_link.price_set"],
|
@@ -57,7 +62,7 @@ exports.ProductVariantPriceSet = {
|
|
57
62
|
},
|
58
63
|
},
|
59
64
|
{
|
60
|
-
serviceName:
|
65
|
+
serviceName: utils_1.Modules.PRICING,
|
61
66
|
relationship: {
|
62
67
|
serviceName: utils_1.LINKS.ProductVariantPriceSet,
|
63
68
|
primaryKey: "price_set_id",
|
@@ -70,3 +75,4 @@ exports.ProductVariantPriceSet = {
|
|
70
75
|
},
|
71
76
|
],
|
72
77
|
};
|
78
|
+
//# sourceMappingURL=product-variant-price-set.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"product-variant-price-set.js","sourceRoot":"","sources":["../../src/definitions/product-variant-price-set.ts"],"names":[],"mappings":";;;AACA,qDAA0D;AAE7C,QAAA,sBAAsB,GAAuB;IACxD,WAAW,EAAE,aAAK,CAAC,sBAAsB;IACzC,MAAM,EAAE,IAAI;IACZ,cAAc,EAAE;QACd,SAAS,EAAE,2BAA2B;QACtC,QAAQ,EAAE,MAAM;KACjB;IACD,KAAK,EAAE;QACL;YACE,IAAI,EAAE,CAAC,2BAA2B,EAAE,4BAA4B,CAAC;YACjE,MAAM,EAAE,4BAA4B;SACrC;KACF;IACD,WAAW,EAAE,CAAC,IAAI,EAAE,YAAY,EAAE,cAAc,CAAC;IACjD,aAAa,EAAE;QACb;YACE,WAAW,EAAE,eAAO,CAAC,OAAO;YAC5B,MAAM,EAAE,gBAAgB;YACxB,UAAU,EAAE,IAAI;YAChB,UAAU,EAAE,YAAY;YACxB,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE;gBACJ,YAAY,EAAE,iBAAiB;aAChC;SACF;QACD;YACE,WAAW,EAAE,eAAO,CAAC,OAAO;YAC5B,MAAM,EAAE,UAAU;YAClB,UAAU,EAAE,IAAI;YAChB,UAAU,EAAE,cAAc;YAC1B,KAAK,EAAE,WAAW;YAClB,IAAI,EAAE;gBACJ,YAAY,EAAE,WAAW;aAC1B;YACD,aAAa,EAAE,IAAI;SACpB;KACF;IACD,OAAO,EAAE;QACP;YACE,WAAW,EAAE,eAAO,CAAC,OAAO;YAC5B,UAAU,EAAE;gBACV,SAAS,EAAE,0BAA0B;gBACrC,MAAM,EAAE;oBACN,IAAI,EAAE,iCAAiC;oBACvC,MAAM,EAAE,IAAI;oBACZ,sBAAsB,EAAE,CAAC,0BAA0B,CAAC;iBACrD;gBACD,gBAAgB,EAAE;oBAChB,IAAI,EAAE,2CAA2C;oBACjD,sBAAsB,EAAE,CAAC,0BAA0B,CAAC;iBACrD;aACF;YACD,YAAY,EAAE;gBACZ,WAAW,EAAE,aAAK,CAAC,sBAAsB;gBACzC,UAAU,EAAE,YAAY;gBACxB,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,gBAAgB;aACxB;SACF;QACD;YACE,WAAW,EAAE,eAAO,CAAC,OAAO;YAC5B,YAAY,EAAE;gBACZ,WAAW,EAAE,aAAK,CAAC,sBAAsB;gBACzC,UAAU,EAAE,cAAc;gBAC1B,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,cAAc;aACtB;YACD,UAAU,EAAE;gBACV,OAAO,EAAE,sBAAsB;aAChC;SACF;KACF;CACF,CAAA"}
|
@@ -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,2BAA2B,CAAA;AAG9D,eAAO,MAAM,6BAA6B,EAAE,kBAwE3C,CAAA"}
|
@@ -1,8 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.PublishableApiKeySalesChannel = void 0;
|
4
|
-
const
|
5
|
-
const utils_1 = require("@medusajs/utils");
|
4
|
+
const utils_1 = require("@medusajs/framework/utils");
|
6
5
|
exports.PublishableApiKeySalesChannel = {
|
7
6
|
serviceName: utils_1.LINKS.PublishableApiKeySalesChannel,
|
8
7
|
isLink: true,
|
@@ -21,23 +20,34 @@ 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,
|
24
|
+
entity: "ApiKey",
|
25
25
|
primaryKey: "id",
|
26
26
|
foreignKey: "publishable_key_id",
|
27
27
|
alias: "api_key",
|
28
|
+
args: {
|
29
|
+
methodSuffix: "ApiKeys",
|
30
|
+
},
|
28
31
|
},
|
29
32
|
{
|
30
|
-
serviceName:
|
33
|
+
serviceName: utils_1.Modules.SALES_CHANNEL,
|
34
|
+
entity: "SalesChannel",
|
31
35
|
primaryKey: "id",
|
32
36
|
foreignKey: "sales_channel_id",
|
33
37
|
alias: "sales_channel",
|
38
|
+
args: {
|
39
|
+
methodSuffix: "SalesChannels",
|
40
|
+
},
|
34
41
|
},
|
35
42
|
],
|
36
43
|
extends: [
|
37
44
|
{
|
38
|
-
serviceName:
|
45
|
+
serviceName: utils_1.Modules.API_KEY,
|
39
46
|
fieldAlias: {
|
40
|
-
sales_channels:
|
47
|
+
sales_channels: {
|
48
|
+
path: "sales_channels_link.sales_channel",
|
49
|
+
isList: true,
|
50
|
+
},
|
41
51
|
},
|
42
52
|
relationship: {
|
43
53
|
serviceName: utils_1.LINKS.PublishableApiKeySalesChannel,
|
@@ -48,9 +58,12 @@ exports.PublishableApiKeySalesChannel = {
|
|
48
58
|
},
|
49
59
|
},
|
50
60
|
{
|
51
|
-
serviceName:
|
61
|
+
serviceName: utils_1.Modules.SALES_CHANNEL,
|
52
62
|
fieldAlias: {
|
53
|
-
publishable_api_keys:
|
63
|
+
publishable_api_keys: {
|
64
|
+
path: "api_keys_link.api_key",
|
65
|
+
isList: true,
|
66
|
+
},
|
54
67
|
},
|
55
68
|
relationship: {
|
56
69
|
serviceName: utils_1.LINKS.PublishableApiKeySalesChannel,
|
@@ -62,3 +75,4 @@ exports.PublishableApiKeySalesChannel = {
|
|
62
75
|
},
|
63
76
|
],
|
64
77
|
};
|
78
|
+
//# sourceMappingURL=publishable-api-key-sales-channel.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"publishable-api-key-sales-channel.js","sourceRoot":"","sources":["../../src/definitions/publishable-api-key-sales-channel.ts"],"names":[],"mappings":";;;AACA,qDAA0D;AAE7C,QAAA,6BAA6B,GAAuB;IAC/D,WAAW,EAAE,aAAK,CAAC,6BAA6B;IAChD,MAAM,EAAE,IAAI;IACZ,cAAc,EAAE;QACd,SAAS,EAAE,mCAAmC;QAC9C,QAAQ,EAAE,MAAM;KACjB;IACD,KAAK,EAAE;QACL;YACE,IAAI,EAAE;gBACJ,mCAAmC;gBACnC,oCAAoC;aACrC;SACF;KACF;IACD,WAAW,EAAE,CAAC,IAAI,EAAE,oBAAoB,EAAE,kBAAkB,CAAC;IAC7D,aAAa,EAAE;QACb;YACE,WAAW,EAAE,eAAO,CAAC,OAAO;YAC5B,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,IAAI;YAChB,UAAU,EAAE,oBAAoB;YAChC,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE;gBACJ,YAAY,EAAE,SAAS;aACxB;SACF;QACD;YACE,WAAW,EAAE,eAAO,CAAC,aAAa;YAClC,MAAM,EAAE,cAAc;YACtB,UAAU,EAAE,IAAI;YAChB,UAAU,EAAE,kBAAkB;YAC9B,KAAK,EAAE,eAAe;YACtB,IAAI,EAAE;gBACJ,YAAY,EAAE,eAAe;aAC9B;SACF;KACF;IACD,OAAO,EAAE;QACP;YACE,WAAW,EAAE,eAAO,CAAC,OAAO;YAC5B,UAAU,EAAE;gBACV,cAAc,EAAE;oBACd,IAAI,EAAE,mCAAmC;oBACzC,MAAM,EAAE,IAAI;iBACb;aACF;YACD,YAAY,EAAE;gBACZ,WAAW,EAAE,aAAK,CAAC,6BAA6B;gBAChD,UAAU,EAAE,oBAAoB;gBAChC,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,qBAAqB;gBAC5B,MAAM,EAAE,IAAI;aACb;SACF;QACD;YACE,WAAW,EAAE,eAAO,CAAC,aAAa;YAClC,UAAU,EAAE;gBACV,oBAAoB,EAAE;oBACpB,IAAI,EAAE,uBAAuB;oBAC7B,MAAM,EAAE,IAAI;iBACb;aACF;YACD,YAAY,EAAE;gBACZ,WAAW,EAAE,aAAK,CAAC,6BAA6B;gBAChD,UAAU,EAAE,kBAAkB;gBAC9B,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,eAAe;gBACtB,MAAM,EAAE,IAAI;aACb;SACF;KACF;CACF,CAAA"}
|
@@ -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,2BAA2B,CAAA;AAG9D,eAAO,MAAM,YAAY,EAAE,kBAgC1B,CAAA"}
|
@@ -1,29 +1,38 @@
|
|
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/framework/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
|
+
entity: "Customer",
|
13
14
|
primaryKey: "id",
|
14
15
|
foreignKey: "customer_id",
|
15
16
|
alias: "customer",
|
17
|
+
args: {
|
18
|
+
methodSuffix: "Customers",
|
19
|
+
},
|
16
20
|
},
|
17
21
|
},
|
18
22
|
{
|
19
|
-
serviceName:
|
23
|
+
serviceName: utils_1.Modules.CUSTOMER,
|
20
24
|
relationship: {
|
21
|
-
serviceName:
|
25
|
+
serviceName: utils_1.Modules.CART,
|
26
|
+
entity: "Cart",
|
22
27
|
primaryKey: "customer_id",
|
23
28
|
foreignKey: "id",
|
24
29
|
alias: "carts",
|
30
|
+
args: {
|
31
|
+
methodSuffix: "Carts",
|
32
|
+
},
|
25
33
|
isList: true,
|
26
34
|
},
|
27
35
|
},
|
28
36
|
],
|
29
37
|
};
|
38
|
+
//# sourceMappingURL=cart-customer.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cart-customer.js","sourceRoot":"","sources":["../../../src/definitions/readonly/cart-customer.ts"],"names":[],"mappings":";;;AACA,qDAAmD;AAEtC,QAAA,YAAY,GAAuB;IAC9C,MAAM,EAAE,IAAI;IACZ,cAAc,EAAE,IAAI;IACpB,OAAO,EAAE;QACP;YACE,WAAW,EAAE,eAAO,CAAC,IAAI;YACzB,YAAY,EAAE;gBACZ,WAAW,EAAE,eAAO,CAAC,QAAQ;gBAC7B,MAAM,EAAE,UAAU;gBAClB,UAAU,EAAE,IAAI;gBAChB,UAAU,EAAE,aAAa;gBACzB,KAAK,EAAE,UAAU;gBACjB,IAAI,EAAE;oBACJ,YAAY,EAAE,WAAW;iBAC1B;aACF;SACF;QACD;YACE,WAAW,EAAE,eAAO,CAAC,QAAQ;YAC7B,YAAY,EAAE;gBACZ,WAAW,EAAE,eAAO,CAAC,IAAI;gBACzB,MAAM,EAAE,MAAM;gBACd,UAAU,EAAE,aAAa;gBACzB,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,OAAO;gBACd,IAAI,EAAE;oBACJ,YAAY,EAAE,OAAO;iBACtB;gBACD,MAAM,EAAE,IAAI;aACb;SACF;KACF;CACF,CAAA"}
|
@@ -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,2BAA2B,CAAA;AAG9D,eAAO,MAAM,WAAW,EAAE,kBA4CzB,CAAA"}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.CartProduct = void 0;
|
4
|
+
const utils_1 = require("@medusajs/framework/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
|
+
entity: "ProductVariant",
|
26
|
+
primaryKey: "id",
|
27
|
+
foreignKey: "items.variant_id",
|
28
|
+
alias: "variant",
|
29
|
+
args: {
|
30
|
+
methodSuffix: "ProductVariants",
|
31
|
+
},
|
32
|
+
},
|
33
|
+
},
|
34
|
+
{
|
35
|
+
serviceName: utils_1.Modules.PRODUCT,
|
36
|
+
relationship: {
|
37
|
+
serviceName: utils_1.Modules.CART,
|
38
|
+
entity: "LineItem",
|
39
|
+
primaryKey: "variant_id",
|
40
|
+
foreignKey: "id",
|
41
|
+
alias: "cart_items",
|
42
|
+
isList: true,
|
43
|
+
args: {
|
44
|
+
methodSuffix: "LineItems",
|
45
|
+
},
|
46
|
+
},
|
47
|
+
},
|
48
|
+
],
|
49
|
+
};
|
50
|
+
//# sourceMappingURL=cart-product.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cart-product.js","sourceRoot":"","sources":["../../../src/definitions/readonly/cart-product.ts"],"names":[],"mappings":";;;AACA,qDAAmD;AAEtC,QAAA,WAAW,GAAuB;IAC7C,MAAM,EAAE,IAAI;IACZ,cAAc,EAAE,IAAI;IACpB,OAAO,EAAE;QACP;YACE,WAAW,EAAE,eAAO,CAAC,IAAI;YACzB,YAAY,EAAE;gBACZ,WAAW,EAAE,eAAO,CAAC,OAAO;gBAC5B,UAAU,EAAE,IAAI;gBAChB,UAAU,EAAE,kBAAkB;gBAC9B,KAAK,EAAE,SAAS;gBAChB,IAAI,EAAE;oBACJ,YAAY,EAAE,UAAU;iBACzB;aACF;SACF;QACD;YACE,WAAW,EAAE,eAAO,CAAC,IAAI;YACzB,YAAY,EAAE;gBACZ,WAAW,EAAE,eAAO,CAAC,OAAO;gBAC5B,MAAM,EAAE,gBAAgB;gBACxB,UAAU,EAAE,IAAI;gBAChB,UAAU,EAAE,kBAAkB;gBAC9B,KAAK,EAAE,SAAS;gBAChB,IAAI,EAAE;oBACJ,YAAY,EAAE,iBAAiB;iBAChC;aACF;SACF;QACD;YACE,WAAW,EAAE,eAAO,CAAC,OAAO;YAC5B,YAAY,EAAE;gBACZ,WAAW,EAAE,eAAO,CAAC,IAAI;gBACzB,MAAM,EAAE,UAAU;gBAClB,UAAU,EAAE,YAAY;gBACxB,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,YAAY;gBACnB,MAAM,EAAE,IAAI;gBACZ,IAAI,EAAE;oBACJ,YAAY,EAAE,WAAW;iBAC1B;aACF;SACF;KACF;CACF,CAAA"}
|
@@ -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,2BAA2B,CAAA;AAG9D,eAAO,MAAM,UAAU,EAAE,kBAgCxB,CAAA"}
|
@@ -1,29 +1,38 @@
|
|
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/framework/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
|
+
entity: "Region",
|
13
14
|
primaryKey: "id",
|
14
15
|
foreignKey: "region_id",
|
15
16
|
alias: "region",
|
17
|
+
args: {
|
18
|
+
methodSuffix: "Regions",
|
19
|
+
},
|
16
20
|
},
|
17
21
|
},
|
18
22
|
{
|
19
|
-
serviceName:
|
23
|
+
serviceName: utils_1.Modules.REGION,
|
20
24
|
relationship: {
|
21
|
-
serviceName:
|
25
|
+
serviceName: utils_1.Modules.CART,
|
26
|
+
entity: "Cart",
|
22
27
|
primaryKey: "region_id",
|
23
28
|
foreignKey: "id",
|
24
29
|
alias: "carts",
|
30
|
+
args: {
|
31
|
+
methodSuffix: "Carts",
|
32
|
+
},
|
25
33
|
isList: true,
|
26
34
|
},
|
27
35
|
},
|
28
36
|
],
|
29
37
|
};
|
38
|
+
//# sourceMappingURL=cart-region.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cart-region.js","sourceRoot":"","sources":["../../../src/definitions/readonly/cart-region.ts"],"names":[],"mappings":";;;AACA,qDAAmD;AAEtC,QAAA,UAAU,GAAuB;IAC5C,MAAM,EAAE,IAAI;IACZ,cAAc,EAAE,IAAI;IACpB,OAAO,EAAE;QACP;YACE,WAAW,EAAE,eAAO,CAAC,IAAI;YACzB,YAAY,EAAE;gBACZ,WAAW,EAAE,eAAO,CAAC,MAAM;gBAC3B,MAAM,EAAE,QAAQ;gBAChB,UAAU,EAAE,IAAI;gBAChB,UAAU,EAAE,WAAW;gBACvB,KAAK,EAAE,QAAQ;gBACf,IAAI,EAAE;oBACJ,YAAY,EAAE,SAAS;iBACxB;aACF;SACF;QACD;YACE,WAAW,EAAE,eAAO,CAAC,MAAM;YAC3B,YAAY,EAAE;gBACZ,WAAW,EAAE,eAAO,CAAC,IAAI;gBACzB,MAAM,EAAE,MAAM;gBACd,UAAU,EAAE,WAAW;gBACvB,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,OAAO;gBACd,IAAI,EAAE;oBACJ,YAAY,EAAE,OAAO;iBACtB;gBACD,MAAM,EAAE,IAAI;aACb;SACF;KACF;CACF,CAAA"}
|
@@ -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,2BAA2B,CAAA;AAG9D,eAAO,MAAM,gBAAgB,EAAE,kBAgC9B,CAAA"}
|
@@ -1,29 +1,38 @@
|
|
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/framework/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
|
+
entity: "SalesChannel",
|
13
14
|
primaryKey: "id",
|
14
15
|
foreignKey: "sales_channel_id",
|
15
16
|
alias: "sales_channel",
|
17
|
+
args: {
|
18
|
+
methodSuffix: "SalesChannels",
|
19
|
+
},
|
16
20
|
},
|
17
21
|
},
|
18
22
|
{
|
19
|
-
serviceName:
|
23
|
+
serviceName: utils_1.Modules.SALES_CHANNEL,
|
20
24
|
relationship: {
|
21
|
-
serviceName:
|
25
|
+
serviceName: utils_1.Modules.CART,
|
26
|
+
entity: "Cart",
|
22
27
|
primaryKey: "sales_channel_id",
|
23
28
|
foreignKey: "id",
|
24
29
|
alias: "carts",
|
30
|
+
args: {
|
31
|
+
methodSuffix: "Carts",
|
32
|
+
},
|
25
33
|
isList: true,
|
26
34
|
},
|
27
35
|
},
|
28
36
|
],
|
29
37
|
};
|
38
|
+
//# sourceMappingURL=cart-sales-channel.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cart-sales-channel.js","sourceRoot":"","sources":["../../../src/definitions/readonly/cart-sales-channel.ts"],"names":[],"mappings":";;;AACA,qDAAmD;AAEtC,QAAA,gBAAgB,GAAuB;IAClD,MAAM,EAAE,IAAI;IACZ,cAAc,EAAE,IAAI;IACpB,OAAO,EAAE;QACP;YACE,WAAW,EAAE,eAAO,CAAC,IAAI;YACzB,YAAY,EAAE;gBACZ,WAAW,EAAE,eAAO,CAAC,aAAa;gBAClC,MAAM,EAAE,cAAc;gBACtB,UAAU,EAAE,IAAI;gBAChB,UAAU,EAAE,kBAAkB;gBAC9B,KAAK,EAAE,eAAe;gBACtB,IAAI,EAAE;oBACJ,YAAY,EAAE,eAAe;iBAC9B;aACF;SACF;QACD;YACE,WAAW,EAAE,eAAO,CAAC,aAAa;YAClC,YAAY,EAAE;gBACZ,WAAW,EAAE,eAAO,CAAC,IAAI;gBACzB,MAAM,EAAE,MAAM;gBACd,UAAU,EAAE,kBAAkB;gBAC9B,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,OAAO;gBACd,IAAI,EAAE;oBACJ,YAAY,EAAE,OAAO;iBACtB;gBACD,MAAM,EAAE,IAAI;aACb;SACF;KACF;CACF,CAAA"}
|
@@ -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,28 @@
|
|
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);
|
28
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/definitions/readonly/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAA+B;AAC/B,iDAA8B;AAC9B,gDAA6B;AAC7B,uDAAoC;AACpC,mEAAgD;AAChD,mEAAgD;AAChD,mDAAgC;AAChC,kDAA+B;AAC/B,iDAA8B;AAC9B,wDAAqC;AACrC,mDAAgC"}
|
@@ -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,2BAA2B,CAAA;AAG9D,eAAO,MAAM,2BAA2B,EAAE,kBAmBzC,CAAA"}
|
@@ -1,20 +1,25 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.InventoryLevelStockLocation = void 0;
|
4
|
-
const
|
4
|
+
const utils_1 = require("@medusajs/framework/utils");
|
5
5
|
exports.InventoryLevelStockLocation = {
|
6
6
|
isLink: true,
|
7
7
|
isReadOnlyLink: true,
|
8
8
|
extends: [
|
9
9
|
{
|
10
|
-
serviceName:
|
10
|
+
serviceName: utils_1.Modules.INVENTORY,
|
11
11
|
relationship: {
|
12
|
-
serviceName:
|
12
|
+
serviceName: utils_1.Modules.STOCK_LOCATION,
|
13
|
+
entity: "StockLocation",
|
13
14
|
primaryKey: "id",
|
14
15
|
foreignKey: "location_id",
|
15
16
|
alias: "stock_locations",
|
17
|
+
args: {
|
18
|
+
methodSuffix: "StockLocations",
|
19
|
+
},
|
16
20
|
isList: true,
|
17
21
|
},
|
18
22
|
},
|
19
23
|
],
|
20
24
|
};
|
25
|
+
//# sourceMappingURL=inventory-level-stock-location.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"inventory-level-stock-location.js","sourceRoot":"","sources":["../../../src/definitions/readonly/inventory-level-stock-location.ts"],"names":[],"mappings":";;;AACA,qDAAmD;AAEtC,QAAA,2BAA2B,GAAuB;IAC7D,MAAM,EAAE,IAAI;IACZ,cAAc,EAAE,IAAI;IACpB,OAAO,EAAE;QACP;YACE,WAAW,EAAE,eAAO,CAAC,SAAS;YAC9B,YAAY,EAAE;gBACZ,WAAW,EAAE,eAAO,CAAC,cAAc;gBACnC,MAAM,EAAE,eAAe;gBACvB,UAAU,EAAE,IAAI;gBAChB,UAAU,EAAE,aAAa;gBACzB,KAAK,EAAE,iBAAiB;gBACxB,IAAI,EAAE;oBACJ,YAAY,EAAE,gBAAgB;iBAC/B;gBACD,MAAM,EAAE,IAAI;aACb;SACF;KACF;CACF,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"line-item-adjustment-promotion.d.ts","sourceRoot":"","sources":["../../../src/definitions/readonly/line-item-adjustment-promotion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAG9D,eAAO,MAAM,2BAA2B,EAAE,kBAkBzC,CAAA"}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.LineItemAdjustmentPromotion = void 0;
|
4
|
+
const utils_1 = require("@medusajs/framework/utils");
|
5
|
+
exports.LineItemAdjustmentPromotion = {
|
6
|
+
isLink: true,
|
7
|
+
isReadOnlyLink: true,
|
8
|
+
extends: [
|
9
|
+
{
|
10
|
+
serviceName: utils_1.Modules.CART,
|
11
|
+
relationship: {
|
12
|
+
serviceName: utils_1.Modules.PROMOTION,
|
13
|
+
entity: "Promotion",
|
14
|
+
primaryKey: "id",
|
15
|
+
foreignKey: "promotion_id",
|
16
|
+
alias: "promotion",
|
17
|
+
args: {
|
18
|
+
methodSuffix: "Promotions",
|
19
|
+
},
|
20
|
+
},
|
21
|
+
},
|
22
|
+
],
|
23
|
+
};
|
24
|
+
//# sourceMappingURL=line-item-adjustment-promotion.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"line-item-adjustment-promotion.js","sourceRoot":"","sources":["../../../src/definitions/readonly/line-item-adjustment-promotion.ts"],"names":[],"mappings":";;;AACA,qDAAmD;AAEtC,QAAA,2BAA2B,GAAuB;IAC7D,MAAM,EAAE,IAAI;IACZ,cAAc,EAAE,IAAI;IACpB,OAAO,EAAE;QACP;YACE,WAAW,EAAE,eAAO,CAAC,IAAI;YACzB,YAAY,EAAE;gBACZ,WAAW,EAAE,eAAO,CAAC,SAAS;gBAC9B,MAAM,EAAE,WAAW;gBACnB,UAAU,EAAE,IAAI;gBAChB,UAAU,EAAE,cAAc;gBAC1B,KAAK,EAAE,WAAW;gBAClB,IAAI,EAAE;oBACJ,YAAY,EAAE,YAAY;iBAC3B;aACF;SACF;KACF;CACF,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"order-customer.d.ts","sourceRoot":"","sources":["../../../src/definitions/readonly/order-customer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAG9D,eAAO,MAAM,aAAa,EAAE,kBAgC3B,CAAA"}
|
@@ -1,29 +1,38 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.OrderCustomer = void 0;
|
4
|
-
const
|
4
|
+
const utils_1 = require("@medusajs/framework/utils");
|
5
5
|
exports.OrderCustomer = {
|
6
6
|
isLink: true,
|
7
7
|
isReadOnlyLink: true,
|
8
8
|
extends: [
|
9
9
|
{
|
10
|
-
serviceName:
|
10
|
+
serviceName: utils_1.Modules.ORDER,
|
11
11
|
relationship: {
|
12
|
-
serviceName:
|
12
|
+
serviceName: utils_1.Modules.CUSTOMER,
|
13
|
+
entity: "Customer",
|
13
14
|
primaryKey: "id",
|
14
15
|
foreignKey: "customer_id",
|
15
16
|
alias: "customer",
|
17
|
+
args: {
|
18
|
+
methodSuffix: "Customers",
|
19
|
+
},
|
16
20
|
},
|
17
21
|
},
|
18
22
|
{
|
19
|
-
serviceName:
|
23
|
+
serviceName: utils_1.Modules.CUSTOMER,
|
20
24
|
relationship: {
|
21
|
-
serviceName:
|
25
|
+
serviceName: utils_1.Modules.ORDER,
|
26
|
+
entity: "Order",
|
22
27
|
primaryKey: "customer_id",
|
23
28
|
foreignKey: "id",
|
24
29
|
alias: "orders",
|
30
|
+
args: {
|
31
|
+
methodSuffix: "Orders",
|
32
|
+
},
|
25
33
|
isList: true,
|
26
34
|
},
|
27
35
|
},
|
28
36
|
],
|
29
37
|
};
|
38
|
+
//# sourceMappingURL=order-customer.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"order-customer.js","sourceRoot":"","sources":["../../../src/definitions/readonly/order-customer.ts"],"names":[],"mappings":";;;AACA,qDAAmD;AAEtC,QAAA,aAAa,GAAuB;IAC/C,MAAM,EAAE,IAAI;IACZ,cAAc,EAAE,IAAI;IACpB,OAAO,EAAE;QACP;YACE,WAAW,EAAE,eAAO,CAAC,KAAK;YAC1B,YAAY,EAAE;gBACZ,WAAW,EAAE,eAAO,CAAC,QAAQ;gBAC7B,MAAM,EAAE,UAAU;gBAClB,UAAU,EAAE,IAAI;gBAChB,UAAU,EAAE,aAAa;gBACzB,KAAK,EAAE,UAAU;gBACjB,IAAI,EAAE;oBACJ,YAAY,EAAE,WAAW;iBAC1B;aACF;SACF;QACD;YACE,WAAW,EAAE,eAAO,CAAC,QAAQ;YAC7B,YAAY,EAAE;gBACZ,WAAW,EAAE,eAAO,CAAC,KAAK;gBAC1B,MAAM,EAAE,OAAO;gBACf,UAAU,EAAE,aAAa;gBACzB,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,QAAQ;gBACf,IAAI,EAAE;oBACJ,YAAY,EAAE,QAAQ;iBACvB;gBACD,MAAM,EAAE,IAAI;aACb;SACF;KACF;CACF,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"order-product.d.ts","sourceRoot":"","sources":["../../../src/definitions/readonly/order-product.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAG9D,eAAO,MAAM,YAAY,EAAE,kBA6C1B,CAAA"}
|