@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
@@ -0,0 +1,51 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.OrderProduct = void 0;
|
4
|
+
const utils_1 = require("@medusajs/framework/utils");
|
5
|
+
exports.OrderProduct = {
|
6
|
+
isLink: true,
|
7
|
+
isReadOnlyLink: true,
|
8
|
+
extends: [
|
9
|
+
{
|
10
|
+
serviceName: utils_1.Modules.ORDER,
|
11
|
+
relationship: {
|
12
|
+
serviceName: utils_1.Modules.PRODUCT,
|
13
|
+
entity: "Product",
|
14
|
+
primaryKey: "id",
|
15
|
+
foreignKey: "items.product_id",
|
16
|
+
alias: "product",
|
17
|
+
args: {
|
18
|
+
methodSuffix: "Products",
|
19
|
+
},
|
20
|
+
},
|
21
|
+
},
|
22
|
+
{
|
23
|
+
serviceName: utils_1.Modules.ORDER,
|
24
|
+
relationship: {
|
25
|
+
serviceName: utils_1.Modules.PRODUCT,
|
26
|
+
entity: "ProductVariant",
|
27
|
+
primaryKey: "id",
|
28
|
+
foreignKey: "items.variant_id",
|
29
|
+
alias: "variant",
|
30
|
+
args: {
|
31
|
+
methodSuffix: "ProductVariants",
|
32
|
+
},
|
33
|
+
},
|
34
|
+
},
|
35
|
+
{
|
36
|
+
serviceName: utils_1.Modules.PRODUCT,
|
37
|
+
relationship: {
|
38
|
+
serviceName: utils_1.Modules.ORDER,
|
39
|
+
entity: "OrderLineItem",
|
40
|
+
primaryKey: "variant_id",
|
41
|
+
foreignKey: "id",
|
42
|
+
alias: "order_items",
|
43
|
+
isList: true,
|
44
|
+
args: {
|
45
|
+
methodSuffix: "OrderLineItems",
|
46
|
+
},
|
47
|
+
},
|
48
|
+
},
|
49
|
+
],
|
50
|
+
};
|
51
|
+
//# sourceMappingURL=order-product.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"order-product.js","sourceRoot":"","sources":["../../../src/definitions/readonly/order-product.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,KAAK;YAC1B,YAAY,EAAE;gBACZ,WAAW,EAAE,eAAO,CAAC,OAAO;gBAC5B,MAAM,EAAE,SAAS;gBACjB,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,KAAK;YAC1B,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,KAAK;gBAC1B,MAAM,EAAE,eAAe;gBACvB,UAAU,EAAE,YAAY;gBACxB,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,aAAa;gBACpB,MAAM,EAAE,IAAI;gBACZ,IAAI,EAAE;oBACJ,YAAY,EAAE,gBAAgB;iBAC/B;aACF;SACF;KACF;CACF,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"order-region.d.ts","sourceRoot":"","sources":["../../../src/definitions/readonly/order-region.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAG9D,eAAO,MAAM,WAAW,EAAE,kBAgCzB,CAAA"}
|
@@ -1,29 +1,38 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.OrderRegion = void 0;
|
4
|
-
const
|
4
|
+
const utils_1 = require("@medusajs/framework/utils");
|
5
5
|
exports.OrderRegion = {
|
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.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.ORDER,
|
26
|
+
entity: "Order",
|
22
27
|
primaryKey: "region_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-region.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"order-region.js","sourceRoot":"","sources":["../../../src/definitions/readonly/order-region.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,KAAK;YAC1B,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,KAAK;gBAC1B,MAAM,EAAE,OAAO;gBACf,UAAU,EAAE,WAAW;gBACvB,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-sales-channel.d.ts","sourceRoot":"","sources":["../../../src/definitions/readonly/order-sales-channel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAG9D,eAAO,MAAM,iBAAiB,EAAE,kBAgC/B,CAAA"}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.OrderSalesChannel = void 0;
|
4
|
+
const utils_1 = require("@medusajs/framework/utils");
|
5
|
+
exports.OrderSalesChannel = {
|
6
|
+
isLink: true,
|
7
|
+
isReadOnlyLink: true,
|
8
|
+
extends: [
|
9
|
+
{
|
10
|
+
serviceName: utils_1.Modules.ORDER,
|
11
|
+
relationship: {
|
12
|
+
serviceName: utils_1.Modules.SALES_CHANNEL,
|
13
|
+
entity: "SalesChannel",
|
14
|
+
primaryKey: "id",
|
15
|
+
foreignKey: "sales_channel_id",
|
16
|
+
alias: "sales_channel",
|
17
|
+
args: {
|
18
|
+
methodSuffix: "SalesChannels",
|
19
|
+
},
|
20
|
+
},
|
21
|
+
},
|
22
|
+
{
|
23
|
+
serviceName: utils_1.Modules.SALES_CHANNEL,
|
24
|
+
relationship: {
|
25
|
+
serviceName: utils_1.Modules.ORDER,
|
26
|
+
entity: "Order",
|
27
|
+
primaryKey: "sales_channel_id",
|
28
|
+
foreignKey: "id",
|
29
|
+
alias: "orders",
|
30
|
+
args: {
|
31
|
+
methodSuffix: "Orders",
|
32
|
+
},
|
33
|
+
isList: true,
|
34
|
+
},
|
35
|
+
},
|
36
|
+
],
|
37
|
+
};
|
38
|
+
//# sourceMappingURL=order-sales-channel.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"order-sales-channel.js","sourceRoot":"","sources":["../../../src/definitions/readonly/order-sales-channel.ts"],"names":[],"mappings":";;;AACA,qDAAmD;AAEtC,QAAA,iBAAiB,GAAuB;IACnD,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,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,KAAK;gBAC1B,MAAM,EAAE,OAAO;gBACf,UAAU,EAAE,kBAAkB;gBAC9B,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":"store-currency.d.ts","sourceRoot":"","sources":["../../../src/definitions/readonly/store-currency.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAG9D,eAAO,MAAM,eAAe,EAAE,kBAkB7B,CAAA"}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.StoreCurrencies = void 0;
|
4
|
+
const utils_1 = require("@medusajs/framework/utils");
|
5
|
+
exports.StoreCurrencies = {
|
6
|
+
isLink: true,
|
7
|
+
isReadOnlyLink: true,
|
8
|
+
extends: [
|
9
|
+
{
|
10
|
+
serviceName: utils_1.Modules.STORE,
|
11
|
+
relationship: {
|
12
|
+
serviceName: utils_1.Modules.CURRENCY,
|
13
|
+
entity: "Currency",
|
14
|
+
primaryKey: "code",
|
15
|
+
foreignKey: "supported_currencies.currency_code",
|
16
|
+
alias: "currency",
|
17
|
+
args: {
|
18
|
+
methodSuffix: "Currencies",
|
19
|
+
},
|
20
|
+
},
|
21
|
+
},
|
22
|
+
],
|
23
|
+
};
|
24
|
+
//# sourceMappingURL=store-currency.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"store-currency.js","sourceRoot":"","sources":["../../../src/definitions/readonly/store-currency.ts"],"names":[],"mappings":";;;AACA,qDAAmD;AAEtC,QAAA,eAAe,GAAuB;IACjD,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,MAAM;gBAClB,UAAU,EAAE,oCAAoC;gBAChD,KAAK,EAAE,UAAU;gBACjB,IAAI,EAAE;oBACJ,YAAY,EAAE,YAAY;iBAC3B;aACF;SACF;KACF;CACF,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"region-payment-provider.d.ts","sourceRoot":"","sources":["../../src/definitions/region-payment-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAG9D,eAAO,MAAM,qBAAqB,EAAE,kBAoEnC,CAAA"}
|
@@ -1,8 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.RegionPaymentProvider = void 0;
|
4
|
-
const
|
5
|
-
const utils_1 = require("@medusajs/utils");
|
4
|
+
const utils_1 = require("@medusajs/framework/utils");
|
6
5
|
exports.RegionPaymentProvider = {
|
7
6
|
serviceName: utils_1.LINKS.RegionPaymentProvider,
|
8
7
|
isLink: true,
|
@@ -13,21 +12,24 @@ exports.RegionPaymentProvider = {
|
|
13
12
|
alias: [
|
14
13
|
{
|
15
14
|
name: ["region_payment_provider", "region_payment_providers"],
|
16
|
-
|
17
|
-
entity: "LinkRegionPaymentProvider",
|
18
|
-
},
|
15
|
+
entity: "LinkRegionPaymentProvider",
|
19
16
|
},
|
20
17
|
],
|
21
18
|
primaryKeys: ["id", "region_id", "payment_provider_id"],
|
22
19
|
relationships: [
|
23
20
|
{
|
24
|
-
serviceName:
|
21
|
+
serviceName: utils_1.Modules.REGION,
|
22
|
+
entity: "Region",
|
25
23
|
primaryKey: "id",
|
26
24
|
foreignKey: "region_id",
|
27
25
|
alias: "region",
|
26
|
+
args: {
|
27
|
+
methodSuffix: "Regions",
|
28
|
+
},
|
28
29
|
},
|
29
30
|
{
|
30
|
-
serviceName:
|
31
|
+
serviceName: utils_1.Modules.PAYMENT,
|
32
|
+
entity: "PaymentProvider",
|
31
33
|
primaryKey: "id",
|
32
34
|
foreignKey: "payment_provider_id",
|
33
35
|
alias: "payment_provider",
|
@@ -36,9 +38,12 @@ exports.RegionPaymentProvider = {
|
|
36
38
|
],
|
37
39
|
extends: [
|
38
40
|
{
|
39
|
-
serviceName:
|
41
|
+
serviceName: utils_1.Modules.REGION,
|
40
42
|
fieldAlias: {
|
41
|
-
payment_providers:
|
43
|
+
payment_providers: {
|
44
|
+
path: "payment_provider_link.payment_provider",
|
45
|
+
isList: true,
|
46
|
+
},
|
42
47
|
},
|
43
48
|
relationship: {
|
44
49
|
serviceName: utils_1.LINKS.RegionPaymentProvider,
|
@@ -49,9 +54,12 @@ exports.RegionPaymentProvider = {
|
|
49
54
|
},
|
50
55
|
},
|
51
56
|
{
|
52
|
-
serviceName:
|
57
|
+
serviceName: utils_1.Modules.PAYMENT,
|
53
58
|
fieldAlias: {
|
54
|
-
regions:
|
59
|
+
regions: {
|
60
|
+
path: "region_link.region",
|
61
|
+
isList: true,
|
62
|
+
},
|
55
63
|
},
|
56
64
|
relationship: {
|
57
65
|
serviceName: utils_1.LINKS.RegionPaymentProvider,
|
@@ -63,3 +71,4 @@ exports.RegionPaymentProvider = {
|
|
63
71
|
},
|
64
72
|
],
|
65
73
|
};
|
74
|
+
//# sourceMappingURL=region-payment-provider.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"region-payment-provider.js","sourceRoot":"","sources":["../../src/definitions/region-payment-provider.ts"],"names":[],"mappings":";;;AACA,qDAA0D;AAE7C,QAAA,qBAAqB,GAAuB;IACvD,WAAW,EAAE,aAAK,CAAC,qBAAqB;IACxC,MAAM,EAAE,IAAI;IACZ,cAAc,EAAE;QACd,SAAS,EAAE,yBAAyB;QACpC,QAAQ,EAAE,OAAO;KAClB;IACD,KAAK,EAAE;QACL;YACE,IAAI,EAAE,CAAC,yBAAyB,EAAE,0BAA0B,CAAC;YAC7D,MAAM,EAAE,2BAA2B;SACpC;KACF;IACD,WAAW,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,qBAAqB,CAAC;IACvD,aAAa,EAAE;QACb;YACE,WAAW,EAAE,eAAO,CAAC,MAAM;YAC3B,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,IAAI;YAChB,UAAU,EAAE,WAAW;YACvB,KAAK,EAAE,QAAQ;YACf,IAAI,EAAE;gBACJ,YAAY,EAAE,SAAS;aACxB;SACF;QACD;YACE,WAAW,EAAE,eAAO,CAAC,OAAO;YAC5B,MAAM,EAAE,iBAAiB;YACzB,UAAU,EAAE,IAAI;YAChB,UAAU,EAAE,qBAAqB;YACjC,KAAK,EAAE,kBAAkB;YACzB,IAAI,EAAE,EAAE,YAAY,EAAE,kBAAkB,EAAE;SAC3C;KACF;IACD,OAAO,EAAE;QACP;YACE,WAAW,EAAE,eAAO,CAAC,MAAM;YAC3B,UAAU,EAAE;gBACV,iBAAiB,EAAE;oBACjB,IAAI,EAAE,wCAAwC;oBAC9C,MAAM,EAAE,IAAI;iBACb;aACF;YACD,YAAY,EAAE;gBACZ,WAAW,EAAE,aAAK,CAAC,qBAAqB;gBACxC,UAAU,EAAE,WAAW;gBACvB,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,uBAAuB;gBAC9B,MAAM,EAAE,IAAI;aACb;SACF;QACD;YACE,WAAW,EAAE,eAAO,CAAC,OAAO;YAC5B,UAAU,EAAE;gBACV,OAAO,EAAE;oBACP,IAAI,EAAE,oBAAoB;oBAC1B,MAAM,EAAE,IAAI;iBACb;aACF;YACD,YAAY,EAAE;gBACZ,WAAW,EAAE,aAAK,CAAC,qBAAqB;gBACxC,UAAU,EAAE,qBAAqB;gBACjC,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,aAAa;gBACpB,MAAM,EAAE,IAAI;aACb;SACF;KACF;CACF,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"sales-channel-location.d.ts","sourceRoot":"","sources":["../../src/definitions/sales-channel-location.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAG9D,eAAO,MAAM,oBAAoB,EAAE,kBAsElC,CAAA"}
|
@@ -1,8 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.SalesChannelLocation = void 0;
|
4
|
-
const
|
5
|
-
const utils_1 = require("@medusajs/utils");
|
4
|
+
const utils_1 = require("@medusajs/framework/utils");
|
6
5
|
exports.SalesChannelLocation = {
|
7
6
|
serviceName: utils_1.LINKS.SalesChannelLocation,
|
8
7
|
isLink: true,
|
@@ -13,31 +12,40 @@ exports.SalesChannelLocation = {
|
|
13
12
|
alias: [
|
14
13
|
{
|
15
14
|
name: ["sales_channel_location", "sales_channel_locations"],
|
16
|
-
|
17
|
-
entity: "LinkSalesChannelLocation",
|
18
|
-
},
|
15
|
+
entity: "LinkSalesChannelLocation",
|
19
16
|
},
|
20
17
|
],
|
21
18
|
primaryKeys: ["id", "sales_channel_id", "stock_location_id"],
|
22
19
|
relationships: [
|
23
20
|
{
|
24
|
-
serviceName:
|
21
|
+
serviceName: utils_1.Modules.SALES_CHANNEL,
|
22
|
+
entity: "SalesChannel",
|
25
23
|
primaryKey: "id",
|
26
24
|
foreignKey: "sales_channel_id",
|
27
25
|
alias: "sales_channel",
|
26
|
+
args: {
|
27
|
+
methodSuffix: "SalesChannels",
|
28
|
+
},
|
28
29
|
},
|
29
30
|
{
|
30
|
-
serviceName:
|
31
|
+
serviceName: utils_1.Modules.STOCK_LOCATION,
|
32
|
+
entity: "StockLocation",
|
31
33
|
primaryKey: "id",
|
32
34
|
foreignKey: "stock_location_id",
|
33
35
|
alias: "location",
|
36
|
+
args: {
|
37
|
+
methodSuffix: "StockLocations",
|
38
|
+
},
|
34
39
|
},
|
35
40
|
],
|
36
41
|
extends: [
|
37
42
|
{
|
38
|
-
serviceName:
|
43
|
+
serviceName: utils_1.Modules.SALES_CHANNEL,
|
39
44
|
fieldAlias: {
|
40
|
-
stock_locations:
|
45
|
+
stock_locations: {
|
46
|
+
path: "locations_link.location",
|
47
|
+
isList: true,
|
48
|
+
},
|
41
49
|
},
|
42
50
|
relationship: {
|
43
51
|
serviceName: utils_1.LINKS.SalesChannelLocation,
|
@@ -48,9 +56,12 @@ exports.SalesChannelLocation = {
|
|
48
56
|
},
|
49
57
|
},
|
50
58
|
{
|
51
|
-
serviceName:
|
59
|
+
serviceName: utils_1.Modules.STOCK_LOCATION,
|
52
60
|
fieldAlias: {
|
53
|
-
sales_channels:
|
61
|
+
sales_channels: {
|
62
|
+
path: "sales_channels_link.sales_channel",
|
63
|
+
isList: true,
|
64
|
+
},
|
54
65
|
},
|
55
66
|
relationship: {
|
56
67
|
serviceName: utils_1.LINKS.SalesChannelLocation,
|
@@ -62,3 +73,4 @@ exports.SalesChannelLocation = {
|
|
62
73
|
},
|
63
74
|
],
|
64
75
|
};
|
76
|
+
//# sourceMappingURL=sales-channel-location.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"sales-channel-location.js","sourceRoot":"","sources":["../../src/definitions/sales-channel-location.ts"],"names":[],"mappings":";;;AACA,qDAA0D;AAE7C,QAAA,oBAAoB,GAAuB;IACtD,WAAW,EAAE,aAAK,CAAC,oBAAoB;IACvC,MAAM,EAAE,IAAI;IACZ,cAAc,EAAE;QACd,SAAS,EAAE,8BAA8B;QACzC,QAAQ,EAAE,OAAO;KAClB;IACD,KAAK,EAAE;QACL;YACE,IAAI,EAAE,CAAC,wBAAwB,EAAE,yBAAyB,CAAC;YAC3D,MAAM,EAAE,0BAA0B;SACnC;KACF;IACD,WAAW,EAAE,CAAC,IAAI,EAAE,kBAAkB,EAAE,mBAAmB,CAAC;IAC5D,aAAa,EAAE;QACb;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;QACD;YACE,WAAW,EAAE,eAAO,CAAC,cAAc;YACnC,MAAM,EAAE,eAAe;YACvB,UAAU,EAAE,IAAI;YAChB,UAAU,EAAE,mBAAmB;YAC/B,KAAK,EAAE,UAAU;YACjB,IAAI,EAAE;gBACJ,YAAY,EAAE,gBAAgB;aAC/B;SACF;KACF;IACD,OAAO,EAAE;QACP;YACE,WAAW,EAAE,eAAO,CAAC,aAAa;YAClC,UAAU,EAAE;gBACV,eAAe,EAAE;oBACf,IAAI,EAAE,yBAAyB;oBAC/B,MAAM,EAAE,IAAI;iBACb;aACF;YACD,YAAY,EAAE;gBACZ,WAAW,EAAE,aAAK,CAAC,oBAAoB;gBACvC,UAAU,EAAE,kBAAkB;gBAC9B,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,gBAAgB;gBACvB,MAAM,EAAE,IAAI;aACb;SACF;QACD;YACE,WAAW,EAAE,eAAO,CAAC,cAAc;YACnC,UAAU,EAAE;gBACV,cAAc,EAAE;oBACd,IAAI,EAAE,mCAAmC;oBACzC,MAAM,EAAE,IAAI;iBACb;aACF;YACD,YAAY,EAAE;gBACZ,WAAW,EAAE,aAAK,CAAC,oBAAoB;gBACvC,UAAU,EAAE,mBAAmB;gBAC/B,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,qBAAqB;gBAC5B,MAAM,EAAE,IAAI;aACb;SACF;KACF;CACF,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"shipping-option-price-set.d.ts","sourceRoot":"","sources":["../../src/definitions/shipping-option-price-set.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAG9D,eAAO,MAAM,sBAAsB,EAAE,kBAsEpC,CAAA"}
|
@@ -1,8 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.ShippingOptionPriceSet = void 0;
|
4
|
-
const
|
5
|
-
const utils_1 = require("@medusajs/utils");
|
4
|
+
const utils_1 = require("@medusajs/framework/utils");
|
6
5
|
exports.ShippingOptionPriceSet = {
|
7
6
|
serviceName: utils_1.LINKS.ShippingOptionPriceSet,
|
8
7
|
isLink: true,
|
@@ -13,15 +12,14 @@ exports.ShippingOptionPriceSet = {
|
|
13
12
|
alias: [
|
14
13
|
{
|
15
14
|
name: ["shipping_option_price_set", "shipping_option_price_sets"],
|
16
|
-
|
17
|
-
entity: "LinkShippingOptionPriceSet",
|
18
|
-
},
|
15
|
+
entity: "LinkShippingOptionPriceSet",
|
19
16
|
},
|
20
17
|
],
|
21
18
|
primaryKeys: ["id", "shipping_option_id", "price_set_id"],
|
22
19
|
relationships: [
|
23
20
|
{
|
24
|
-
serviceName:
|
21
|
+
serviceName: utils_1.Modules.FULFILLMENT,
|
22
|
+
entity: "ShippingOption",
|
25
23
|
primaryKey: "id",
|
26
24
|
foreignKey: "shipping_option_id",
|
27
25
|
alias: "shipping_option",
|
@@ -30,16 +28,20 @@ exports.ShippingOptionPriceSet = {
|
|
30
28
|
},
|
31
29
|
},
|
32
30
|
{
|
33
|
-
serviceName:
|
31
|
+
serviceName: utils_1.Modules.PRICING,
|
32
|
+
entity: "PriceSet",
|
34
33
|
primaryKey: "id",
|
35
34
|
foreignKey: "price_set_id",
|
36
35
|
alias: "price_set",
|
36
|
+
args: {
|
37
|
+
methodSuffix: "PriceSets",
|
38
|
+
},
|
37
39
|
deleteCascade: true,
|
38
40
|
},
|
39
41
|
],
|
40
42
|
extends: [
|
41
43
|
{
|
42
|
-
serviceName:
|
44
|
+
serviceName: utils_1.Modules.FULFILLMENT,
|
43
45
|
fieldAlias: {
|
44
46
|
prices: {
|
45
47
|
path: "price_set_link.price_set.prices",
|
@@ -58,7 +60,7 @@ exports.ShippingOptionPriceSet = {
|
|
58
60
|
},
|
59
61
|
},
|
60
62
|
{
|
61
|
-
serviceName:
|
63
|
+
serviceName: utils_1.Modules.PRICING,
|
62
64
|
relationship: {
|
63
65
|
serviceName: utils_1.LINKS.ShippingOptionPriceSet,
|
64
66
|
primaryKey: "price_set_id",
|
@@ -71,3 +73,4 @@ exports.ShippingOptionPriceSet = {
|
|
71
73
|
},
|
72
74
|
],
|
73
75
|
};
|
76
|
+
//# sourceMappingURL=shipping-option-price-set.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"shipping-option-price-set.js","sourceRoot":"","sources":["../../src/definitions/shipping-option-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,oBAAoB,EAAE,cAAc,CAAC;IACzD,aAAa,EAAE;QACb;YACE,WAAW,EAAE,eAAO,CAAC,WAAW;YAChC,MAAM,EAAE,gBAAgB;YACxB,UAAU,EAAE,IAAI;YAChB,UAAU,EAAE,oBAAoB;YAChC,KAAK,EAAE,iBAAiB;YACxB,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,WAAW;YAChC,UAAU,EAAE;gBACV,MAAM,EAAE;oBACN,IAAI,EAAE,iCAAiC;oBACvC,MAAM,EAAE,IAAI;iBACb;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,oBAAoB;gBAChC,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,sBAAsB;aAC9B;YACD,UAAU,EAAE;gBACV,eAAe,EAAE,sCAAsC;aACxD;SACF;KACF;CACF,CAAA"}
|
package/dist/index.d.ts
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA"}
|
package/dist/index.js
CHANGED
@@ -15,7 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./initialize"), exports);
|
18
|
-
__exportStar(require("./types"), exports);
|
19
18
|
__exportStar(require("./loaders"), exports);
|
19
|
+
__exportStar(require("./migration"), exports);
|
20
20
|
__exportStar(require("./services"), exports);
|
21
|
-
__exportStar(require("./
|
21
|
+
__exportStar(require("./types"), exports);
|
22
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,4CAAyB;AACzB,8CAA2B;AAC3B,6CAA0B;AAC1B,0CAAuB"}
|
@@ -1,7 +1,16 @@
|
|
1
|
-
import { InternalModuleDeclaration } from "@medusajs/
|
2
|
-
import {
|
1
|
+
import { ExternalModuleDeclaration, ILinkModule, InternalModuleDeclaration, ModuleJoinerConfig, ModuleServiceInitializeCustomDataLayerOptions, ModuleServiceInitializeOptions } from "@medusajs/framework/types";
|
2
|
+
import { MigrationsExecutionPlanner } from "../migration";
|
3
3
|
import { InitializeModuleInjectableDependencies } from "../types";
|
4
|
-
export declare const initialize: (options?: ModuleServiceInitializeOptions | ModuleServiceInitializeCustomDataLayerOptions | ExternalModuleDeclaration | InternalModuleDeclaration,
|
4
|
+
export declare const initialize: (options?: ModuleServiceInitializeOptions | ModuleServiceInitializeCustomDataLayerOptions | ExternalModuleDeclaration | InternalModuleDeclaration, pluginLinksDefinitions?: ModuleJoinerConfig[], injectedDependencies?: InitializeModuleInjectableDependencies) => Promise<{
|
5
5
|
[link: string]: ILinkModule;
|
6
6
|
}>;
|
7
|
-
|
7
|
+
/**
|
8
|
+
* Prepare an execution plan and run the migrations accordingly.
|
9
|
+
* It includes creating, updating, deleting the tables according to the execution plan.
|
10
|
+
* If any unsafe sql is identified then we will notify the user to act manually.
|
11
|
+
*
|
12
|
+
* @param options
|
13
|
+
* @param pluginLinksDefinition
|
14
|
+
*/
|
15
|
+
export declare function getMigrationPlanner(options: ModuleServiceInitializeOptions, pluginLinksDefinition?: ModuleJoinerConfig[]): MigrationsExecutionPlanner;
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/initialize/index.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,yBAAyB,EACzB,WAAW,EACX,yBAAyB,EAGzB,kBAAkB,EAClB,6CAA6C,EAC7C,8BAA8B,EAC/B,MAAM,2BAA2B,CAAA;AAWlC,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAA;AACzD,OAAO,EAAE,sCAAsC,EAAE,MAAM,UAAU,CAAA;AAIjE,eAAO,MAAM,UAAU,aAEjB,8BAA8B,GAC9B,6CAA6C,GAC7C,yBAAyB,GACzB,yBAAyB,2BACJ,kBAAkB,EAAE,yBACtB,sCAAsC,KAC5D,OAAO,CAAC;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,CAAA;CAAE,CA6IzC,CAAA;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,8BAA8B,EACvC,qBAAqB,CAAC,EAAE,kBAAkB,EAAE,8BA+C7C"}
|