@medusajs/link-modules 0.2.12-snapshot-20240717160031 → 0.2.12-snapshot-20240718083016
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/definitions/{readonly/cart-customer.d.ts → cart-customer.d.ts} +0 -1
- package/dist/definitions/{readonly/cart-customer.js → cart-customer.js} +5 -11
- package/dist/definitions/cart-payment-collection.d.ts +0 -1
- package/dist/definitions/cart-payment-collection.js +5 -10
- package/dist/definitions/cart-promotion.d.ts +0 -1
- package/dist/definitions/cart-promotion.js +14 -14
- package/dist/definitions/{readonly/cart-region.d.ts → cart-region.d.ts} +0 -1
- package/dist/definitions/{readonly/cart-region.js → cart-region.js} +5 -11
- package/dist/definitions/{readonly/cart-sales-channel.d.ts → cart-sales-channel.d.ts} +0 -1
- package/dist/definitions/{readonly/cart-sales-channel.js → cart-sales-channel.js} +5 -11
- package/dist/definitions/fulfillment-set-location.d.ts +1 -2
- package/dist/definitions/fulfillment-set-location.js +30 -35
- package/dist/definitions/index.d.ts +9 -5
- package/dist/definitions/index.js +9 -4
- package/dist/definitions/{readonly/inventory-level-stock-location.d.ts → inventory-level-stock-location.d.ts} +0 -1
- package/dist/definitions/{readonly/inventory-level-stock-location.js → inventory-level-stock-location.js} +3 -6
- package/dist/definitions/{readonly/order-customer.d.ts → order-customer.d.ts} +0 -1
- package/dist/definitions/{readonly/order-customer.js → order-customer.js} +5 -11
- package/dist/definitions/order-promotion.d.ts +0 -1
- package/dist/definitions/order-promotion.js +7 -15
- package/dist/definitions/{readonly/order-region.d.ts → order-region.d.ts} +0 -1
- package/dist/definitions/{readonly/order-region.js → order-region.js} +5 -11
- package/dist/definitions/{readonly/order-sales-channel.d.ts → order-sales-channel.d.ts} +0 -1
- package/dist/definitions/order-sales-channel.js +67 -0
- package/dist/definitions/product-sales-channel.d.ts +0 -1
- package/dist/definitions/product-sales-channel.js +7 -10
- package/dist/definitions/product-shipping-profile.d.ts +2 -0
- package/dist/definitions/product-shipping-profile.js +61 -0
- package/dist/definitions/product-variant-inventory-item.d.ts +0 -1
- package/dist/definitions/product-variant-inventory-item.js +7 -13
- package/dist/definitions/product-variant-price-set.d.ts +0 -1
- package/dist/definitions/product-variant-price-set.js +8 -9
- package/dist/definitions/publishable-api-key-sales-channel.d.ts +0 -1
- package/dist/definitions/publishable-api-key-sales-channel.js +5 -10
- package/dist/definitions/region-payment-provider.d.ts +0 -1
- package/dist/definitions/region-payment-provider.js +5 -7
- package/dist/definitions/sales-channel-location.d.ts +0 -1
- package/dist/definitions/sales-channel-location.js +5 -10
- package/dist/definitions/shipping-option-price-set.d.ts +0 -1
- package/dist/definitions/shipping-option-price-set.js +5 -7
- package/dist/definitions/store-default-currency.d.ts +2 -0
- package/dist/definitions/store-default-currency.js +19 -0
- package/dist/index.d.ts +0 -1
- package/dist/initialize/index.d.ts +0 -2
- package/dist/initialize/index.js +14 -30
- package/dist/initialize/module-definition.d.ts +0 -1
- package/dist/loaders/connection.d.ts +0 -1
- package/dist/loaders/container.d.ts +0 -1
- package/dist/loaders/index.d.ts +0 -1
- package/dist/migration/index.d.ts +0 -2
- package/dist/migration/index.js +7 -31
- package/dist/repositories/index.d.ts +0 -1
- package/dist/repositories/link.d.ts +4 -6
- package/dist/services/dynamic-service-class.d.ts +0 -1
- package/dist/services/dynamic-service-class.js +0 -7
- package/dist/services/index.d.ts +0 -1
- package/dist/services/link-module-service.d.ts +0 -1
- package/dist/services/link-module-service.js +36 -28
- package/dist/services/link.d.ts +0 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/utils/compose-link-name.d.ts +0 -1
- package/dist/utils/generate-entity.d.ts +0 -1
- package/dist/utils/generate-schema.d.ts +0 -1
- package/dist/utils/generate-schema.js +4 -5
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.js +2 -2
- package/package.json +7 -6
- package/dist/definitions/cart-payment-collection.d.ts.map +0 -1
- package/dist/definitions/cart-promotion.d.ts.map +0 -1
- package/dist/definitions/fulfillment-set-location.d.ts.map +0 -1
- package/dist/definitions/index.d.ts.map +0 -1
- package/dist/definitions/order-cart.d.ts +0 -3
- package/dist/definitions/order-cart.d.ts.map +0 -1
- package/dist/definitions/order-cart.js +0 -67
- package/dist/definitions/order-claim-payment-collection.d.ts +0 -3
- package/dist/definitions/order-claim-payment-collection.d.ts.map +0 -1
- package/dist/definitions/order-claim-payment-collection.js +0 -73
- package/dist/definitions/order-exchange-payment-collection.d.ts +0 -3
- package/dist/definitions/order-exchange-payment-collection.d.ts.map +0 -1
- package/dist/definitions/order-exchange-payment-collection.js +0 -73
- package/dist/definitions/order-fulfillment.d.ts +0 -3
- package/dist/definitions/order-fulfillment.d.ts.map +0 -1
- package/dist/definitions/order-fulfillment.js +0 -66
- package/dist/definitions/order-payment-collection.d.ts +0 -3
- package/dist/definitions/order-payment-collection.d.ts.map +0 -1
- package/dist/definitions/order-payment-collection.js +0 -70
- package/dist/definitions/order-promotion.d.ts.map +0 -1
- package/dist/definitions/product-sales-channel.d.ts.map +0 -1
- package/dist/definitions/product-variant-inventory-item.d.ts.map +0 -1
- package/dist/definitions/product-variant-price-set.d.ts.map +0 -1
- package/dist/definitions/publishable-api-key-sales-channel.d.ts.map +0 -1
- package/dist/definitions/readonly/cart-customer.d.ts.map +0 -1
- package/dist/definitions/readonly/cart-product.d.ts +0 -3
- package/dist/definitions/readonly/cart-product.d.ts.map +0 -1
- package/dist/definitions/readonly/cart-product.js +0 -47
- package/dist/definitions/readonly/cart-region.d.ts.map +0 -1
- package/dist/definitions/readonly/cart-sales-channel.d.ts.map +0 -1
- package/dist/definitions/readonly/index.d.ts +0 -12
- package/dist/definitions/readonly/index.d.ts.map +0 -1
- package/dist/definitions/readonly/index.js +0 -27
- package/dist/definitions/readonly/inventory-level-stock-location.d.ts.map +0 -1
- package/dist/definitions/readonly/line-item-adjustment-promotion.d.ts +0 -3
- package/dist/definitions/readonly/line-item-adjustment-promotion.d.ts.map +0 -1
- package/dist/definitions/readonly/line-item-adjustment-promotion.js +0 -22
- package/dist/definitions/readonly/order-customer.d.ts.map +0 -1
- package/dist/definitions/readonly/order-product.d.ts +0 -3
- package/dist/definitions/readonly/order-product.d.ts.map +0 -1
- package/dist/definitions/readonly/order-product.js +0 -47
- package/dist/definitions/readonly/order-region.d.ts.map +0 -1
- package/dist/definitions/readonly/order-sales-channel.d.ts.map +0 -1
- package/dist/definitions/readonly/order-sales-channel.js +0 -35
- package/dist/definitions/readonly/store-currency.d.ts +0 -3
- package/dist/definitions/readonly/store-currency.d.ts.map +0 -1
- package/dist/definitions/readonly/store-currency.js +0 -22
- package/dist/definitions/region-payment-provider.d.ts.map +0 -1
- package/dist/definitions/sales-channel-location.d.ts.map +0 -1
- package/dist/definitions/shipping-option-price-set.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/initialize/index.d.ts.map +0 -1
- package/dist/initialize/module-definition.d.ts.map +0 -1
- package/dist/loaders/connection.d.ts.map +0 -1
- package/dist/loaders/container.d.ts.map +0 -1
- package/dist/loaders/index.d.ts.map +0 -1
- package/dist/migration/index.d.ts.map +0 -1
- package/dist/repositories/index.d.ts.map +0 -1
- package/dist/repositories/link.d.ts.map +0 -1
- package/dist/services/dynamic-service-class.d.ts.map +0 -1
- package/dist/services/index.d.ts.map +0 -1
- package/dist/services/link-module-service.d.ts.map +0 -1
- package/dist/services/link.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/utils/compose-link-name.d.ts.map +0 -1
- package/dist/utils/generate-entity.d.ts.map +0 -1
- package/dist/utils/generate-schema.d.ts.map +0 -1
- package/dist/utils/index.d.ts.map +0 -1
@@ -1,33 +1,27 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.CartCustomer = void 0;
|
4
|
-
const
|
4
|
+
const modules_sdk_1 = require("@medusajs/modules-sdk");
|
5
5
|
exports.CartCustomer = {
|
6
6
|
isLink: true,
|
7
7
|
isReadOnlyLink: true,
|
8
8
|
extends: [
|
9
9
|
{
|
10
|
-
serviceName:
|
10
|
+
serviceName: modules_sdk_1.Modules.CART,
|
11
11
|
relationship: {
|
12
|
-
serviceName:
|
12
|
+
serviceName: modules_sdk_1.Modules.CUSTOMER,
|
13
13
|
primaryKey: "id",
|
14
14
|
foreignKey: "customer_id",
|
15
15
|
alias: "customer",
|
16
|
-
args: {
|
17
|
-
methodSuffix: "Customers",
|
18
|
-
},
|
19
16
|
},
|
20
17
|
},
|
21
18
|
{
|
22
|
-
serviceName:
|
19
|
+
serviceName: modules_sdk_1.Modules.CUSTOMER,
|
23
20
|
relationship: {
|
24
|
-
serviceName:
|
21
|
+
serviceName: modules_sdk_1.Modules.CART,
|
25
22
|
primaryKey: "customer_id",
|
26
23
|
foreignKey: "id",
|
27
24
|
alias: "carts",
|
28
|
-
args: {
|
29
|
-
methodSuffix: "Carts",
|
30
|
-
},
|
31
25
|
isList: true,
|
32
26
|
},
|
33
27
|
},
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.CartPaymentCollection = void 0;
|
4
|
+
const modules_sdk_1 = require("@medusajs/modules-sdk");
|
4
5
|
const utils_1 = require("@medusajs/utils");
|
5
6
|
exports.CartPaymentCollection = {
|
6
7
|
serviceName: utils_1.LINKS.CartPaymentCollection,
|
@@ -20,27 +21,21 @@ exports.CartPaymentCollection = {
|
|
20
21
|
primaryKeys: ["id", "cart_id", "payment_collection_id"],
|
21
22
|
relationships: [
|
22
23
|
{
|
23
|
-
serviceName:
|
24
|
+
serviceName: modules_sdk_1.Modules.CART,
|
24
25
|
primaryKey: "id",
|
25
26
|
foreignKey: "cart_id",
|
26
27
|
alias: "cart",
|
27
|
-
args: {
|
28
|
-
methodSuffix: "Carts",
|
29
|
-
},
|
30
28
|
},
|
31
29
|
{
|
32
|
-
serviceName:
|
30
|
+
serviceName: modules_sdk_1.Modules.PAYMENT,
|
33
31
|
primaryKey: "id",
|
34
32
|
foreignKey: "payment_collection_id",
|
35
33
|
alias: "payment_collection",
|
36
|
-
args: {
|
37
|
-
methodSuffix: "PaymentCollections",
|
38
|
-
},
|
39
34
|
},
|
40
35
|
],
|
41
36
|
extends: [
|
42
37
|
{
|
43
|
-
serviceName:
|
38
|
+
serviceName: modules_sdk_1.Modules.CART,
|
44
39
|
fieldAlias: {
|
45
40
|
payment_collection: "payment_collection_link.payment_collection",
|
46
41
|
},
|
@@ -52,7 +47,7 @@ exports.CartPaymentCollection = {
|
|
52
47
|
},
|
53
48
|
},
|
54
49
|
{
|
55
|
-
serviceName:
|
50
|
+
serviceName: modules_sdk_1.Modules.PAYMENT,
|
56
51
|
fieldAlias: {
|
57
52
|
cart: "cart_link.cart",
|
58
53
|
},
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.CartPromotion = void 0;
|
4
|
+
const modules_sdk_1 = require("@medusajs/modules-sdk");
|
4
5
|
const utils_1 = require("@medusajs/utils");
|
5
6
|
exports.CartPromotion = {
|
6
7
|
serviceName: utils_1.LINKS.CartPromotion,
|
@@ -20,36 +21,35 @@ exports.CartPromotion = {
|
|
20
21
|
primaryKeys: ["id", "cart_id", "promotion_id"],
|
21
22
|
relationships: [
|
22
23
|
{
|
23
|
-
serviceName:
|
24
|
+
serviceName: modules_sdk_1.Modules.CART,
|
24
25
|
primaryKey: "id",
|
25
26
|
foreignKey: "cart_id",
|
26
27
|
alias: "cart",
|
27
|
-
args: {
|
28
|
-
methodSuffix: "Carts",
|
29
|
-
},
|
30
28
|
},
|
31
29
|
{
|
32
|
-
serviceName:
|
30
|
+
serviceName: modules_sdk_1.Modules.PROMOTION,
|
33
31
|
primaryKey: "id",
|
34
32
|
foreignKey: "promotion_id",
|
35
|
-
alias: "
|
36
|
-
args: {
|
37
|
-
methodSuffix: "Promotions",
|
38
|
-
},
|
33
|
+
alias: "promotion",
|
39
34
|
},
|
40
35
|
],
|
41
36
|
extends: [
|
42
37
|
{
|
43
|
-
serviceName:
|
44
|
-
fieldAlias: {
|
45
|
-
promotions: "cart_link.promotions",
|
46
|
-
},
|
38
|
+
serviceName: modules_sdk_1.Modules.CART,
|
47
39
|
relationship: {
|
48
40
|
serviceName: utils_1.LINKS.CartPromotion,
|
49
41
|
primaryKey: "cart_id",
|
50
42
|
foreignKey: "id",
|
51
43
|
alias: "cart_link",
|
52
|
-
|
44
|
+
},
|
45
|
+
},
|
46
|
+
{
|
47
|
+
serviceName: modules_sdk_1.Modules.PROMOTION,
|
48
|
+
relationship: {
|
49
|
+
serviceName: utils_1.LINKS.CartPromotion,
|
50
|
+
primaryKey: "promotion_id",
|
51
|
+
foreignKey: "id",
|
52
|
+
alias: "promotion_link",
|
53
53
|
},
|
54
54
|
},
|
55
55
|
],
|
@@ -1,33 +1,27 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.CartRegion = void 0;
|
4
|
-
const
|
4
|
+
const modules_sdk_1 = require("@medusajs/modules-sdk");
|
5
5
|
exports.CartRegion = {
|
6
6
|
isLink: true,
|
7
7
|
isReadOnlyLink: true,
|
8
8
|
extends: [
|
9
9
|
{
|
10
|
-
serviceName:
|
10
|
+
serviceName: modules_sdk_1.Modules.CART,
|
11
11
|
relationship: {
|
12
|
-
serviceName:
|
12
|
+
serviceName: modules_sdk_1.Modules.REGION,
|
13
13
|
primaryKey: "id",
|
14
14
|
foreignKey: "region_id",
|
15
15
|
alias: "region",
|
16
|
-
args: {
|
17
|
-
methodSuffix: "Regions",
|
18
|
-
},
|
19
16
|
},
|
20
17
|
},
|
21
18
|
{
|
22
|
-
serviceName:
|
19
|
+
serviceName: modules_sdk_1.Modules.REGION,
|
23
20
|
relationship: {
|
24
|
-
serviceName:
|
21
|
+
serviceName: modules_sdk_1.Modules.CART,
|
25
22
|
primaryKey: "region_id",
|
26
23
|
foreignKey: "id",
|
27
24
|
alias: "carts",
|
28
|
-
args: {
|
29
|
-
methodSuffix: "Carts",
|
30
|
-
},
|
31
25
|
isList: true,
|
32
26
|
},
|
33
27
|
},
|
@@ -1,33 +1,27 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.CartSalesChannel = void 0;
|
4
|
-
const
|
4
|
+
const modules_sdk_1 = require("@medusajs/modules-sdk");
|
5
5
|
exports.CartSalesChannel = {
|
6
6
|
isLink: true,
|
7
7
|
isReadOnlyLink: true,
|
8
8
|
extends: [
|
9
9
|
{
|
10
|
-
serviceName:
|
10
|
+
serviceName: modules_sdk_1.Modules.CART,
|
11
11
|
relationship: {
|
12
|
-
serviceName:
|
12
|
+
serviceName: modules_sdk_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
|
-
},
|
19
16
|
},
|
20
17
|
},
|
21
18
|
{
|
22
|
-
serviceName:
|
19
|
+
serviceName: modules_sdk_1.Modules.SALES_CHANNEL,
|
23
20
|
relationship: {
|
24
|
-
serviceName:
|
21
|
+
serviceName: modules_sdk_1.Modules.CART,
|
25
22
|
primaryKey: "sales_channel_id",
|
26
23
|
foreignKey: "id",
|
27
24
|
alias: "carts",
|
28
|
-
args: {
|
29
|
-
methodSuffix: "Carts",
|
30
|
-
},
|
31
25
|
isList: true,
|
32
26
|
},
|
33
27
|
},
|
@@ -1,68 +1,63 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.FulfillmentSetLocation = void 0;
|
4
|
+
const modules_sdk_1 = require("@medusajs/modules-sdk");
|
4
5
|
const utils_1 = require("@medusajs/utils");
|
5
|
-
exports.
|
6
|
-
serviceName: utils_1.LINKS.
|
6
|
+
exports.FulfillmentSetLocation = {
|
7
|
+
serviceName: utils_1.LINKS.FulfillmentSetLocation,
|
7
8
|
isLink: true,
|
8
9
|
databaseConfig: {
|
9
|
-
tableName: "
|
10
|
-
idPrefix: "
|
10
|
+
tableName: "fulfillment_set_location",
|
11
|
+
idPrefix: "fsloc",
|
11
12
|
},
|
12
13
|
alias: [
|
13
14
|
{
|
14
|
-
name: ["
|
15
|
+
name: ["fulfillment_set_location", "fulfillment_set_locations"],
|
15
16
|
args: {
|
16
|
-
entity: "
|
17
|
+
entity: "LinkFulfillmentSetLocation",
|
17
18
|
},
|
18
19
|
},
|
19
20
|
],
|
20
|
-
primaryKeys: ["id", "
|
21
|
+
primaryKeys: ["id", "fulfillment_set_id", "stock_location_id"],
|
21
22
|
relationships: [
|
22
23
|
{
|
23
|
-
serviceName:
|
24
|
+
serviceName: modules_sdk_1.Modules.FULFILLMENT,
|
24
25
|
primaryKey: "id",
|
25
|
-
foreignKey: "
|
26
|
-
alias: "
|
27
|
-
args: {
|
28
|
-
methodSuffix: "StockLocations",
|
29
|
-
},
|
26
|
+
foreignKey: "fulfillment_set_id",
|
27
|
+
alias: "fulfillment_set",
|
30
28
|
},
|
31
29
|
{
|
32
|
-
serviceName:
|
30
|
+
serviceName: modules_sdk_1.Modules.STOCK_LOCATION,
|
33
31
|
primaryKey: "id",
|
34
|
-
foreignKey: "
|
35
|
-
alias: "
|
36
|
-
args: {
|
37
|
-
methodSuffix: "FulfillmentSets",
|
38
|
-
},
|
39
|
-
deleteCascade: true,
|
32
|
+
foreignKey: "stock_location_id",
|
33
|
+
alias: "location",
|
40
34
|
},
|
41
35
|
],
|
42
36
|
extends: [
|
43
37
|
{
|
44
|
-
serviceName:
|
38
|
+
serviceName: modules_sdk_1.Modules.FULFILLMENT,
|
39
|
+
fieldAlias: {
|
40
|
+
stock_locations: "locations_link.location",
|
41
|
+
},
|
45
42
|
relationship: {
|
46
|
-
serviceName: utils_1.LINKS.
|
47
|
-
primaryKey: "
|
43
|
+
serviceName: utils_1.LINKS.FulfillmentSetLocation,
|
44
|
+
primaryKey: "fulfillment_set_id",
|
48
45
|
foreignKey: "id",
|
49
|
-
alias: "
|
46
|
+
alias: "locations_link",
|
50
47
|
isList: true,
|
51
48
|
},
|
52
|
-
fieldAlias: {
|
53
|
-
fulfillment_sets: "fulfillment_set_link.fulfillment_set",
|
54
|
-
},
|
55
49
|
},
|
56
50
|
{
|
57
|
-
serviceName:
|
58
|
-
fieldAlias: {
|
59
|
-
location: "locations_link.location",
|
60
|
-
},
|
51
|
+
serviceName: modules_sdk_1.Modules.STOCK_LOCATION,
|
61
52
|
relationship: {
|
62
|
-
serviceName: utils_1.LINKS.
|
63
|
-
primaryKey: "
|
53
|
+
serviceName: utils_1.LINKS.FulfillmentSetLocation,
|
54
|
+
primaryKey: "stock_location_id",
|
64
55
|
foreignKey: "id",
|
65
|
-
alias: "
|
56
|
+
alias: "fulfillment_set_link",
|
57
|
+
isList: true,
|
58
|
+
},
|
59
|
+
fieldAlias: {
|
60
|
+
fulfillment_sets: "fulfillment_set_link.fulfillment_set",
|
66
61
|
},
|
67
62
|
},
|
68
63
|
],
|
@@ -1,16 +1,20 @@
|
|
1
|
+
export * from "./cart-customer";
|
1
2
|
export * from "./cart-payment-collection";
|
2
3
|
export * from "./cart-promotion";
|
4
|
+
export * from "./cart-region";
|
5
|
+
export * from "./cart-sales-channel";
|
3
6
|
export * from "./fulfillment-set-location";
|
4
|
-
export * from "./
|
5
|
-
export * from "./order-
|
6
|
-
export * from "./order-payment-collection";
|
7
|
+
export * from "./inventory-level-stock-location";
|
8
|
+
export * from "./order-customer";
|
7
9
|
export * from "./order-promotion";
|
10
|
+
export * from "./order-region";
|
11
|
+
export * from "./order-sales-channel";
|
8
12
|
export * from "./product-sales-channel";
|
13
|
+
export * from "./product-shipping-profile";
|
9
14
|
export * from "./product-variant-inventory-item";
|
10
15
|
export * from "./product-variant-price-set";
|
11
16
|
export * from "./publishable-api-key-sales-channel";
|
12
|
-
export * from "./readonly";
|
13
17
|
export * from "./region-payment-provider";
|
14
18
|
export * from "./sales-channel-location";
|
15
19
|
export * from "./shipping-option-price-set";
|
16
|
-
|
20
|
+
export * from "./store-default-currency";
|
@@ -14,18 +14,23 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./cart-customer"), exports);
|
17
18
|
__exportStar(require("./cart-payment-collection"), exports);
|
18
19
|
__exportStar(require("./cart-promotion"), exports);
|
20
|
+
__exportStar(require("./cart-region"), exports);
|
21
|
+
__exportStar(require("./cart-sales-channel"), exports);
|
19
22
|
__exportStar(require("./fulfillment-set-location"), exports);
|
20
|
-
__exportStar(require("./
|
21
|
-
__exportStar(require("./order-
|
22
|
-
__exportStar(require("./order-payment-collection"), exports);
|
23
|
+
__exportStar(require("./inventory-level-stock-location"), exports);
|
24
|
+
__exportStar(require("./order-customer"), exports);
|
23
25
|
__exportStar(require("./order-promotion"), exports);
|
26
|
+
__exportStar(require("./order-region"), exports);
|
27
|
+
__exportStar(require("./order-sales-channel"), exports);
|
24
28
|
__exportStar(require("./product-sales-channel"), exports);
|
29
|
+
__exportStar(require("./product-shipping-profile"), exports);
|
25
30
|
__exportStar(require("./product-variant-inventory-item"), exports);
|
26
31
|
__exportStar(require("./product-variant-price-set"), exports);
|
27
32
|
__exportStar(require("./publishable-api-key-sales-channel"), exports);
|
28
|
-
__exportStar(require("./readonly"), exports);
|
29
33
|
__exportStar(require("./region-payment-provider"), exports);
|
30
34
|
__exportStar(require("./sales-channel-location"), exports);
|
31
35
|
__exportStar(require("./shipping-option-price-set"), exports);
|
36
|
+
__exportStar(require("./store-default-currency"), exports);
|
@@ -1,21 +1,18 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.InventoryLevelStockLocation = void 0;
|
4
|
-
const
|
4
|
+
const modules_sdk_1 = require("@medusajs/modules-sdk");
|
5
5
|
exports.InventoryLevelStockLocation = {
|
6
6
|
isLink: true,
|
7
7
|
isReadOnlyLink: true,
|
8
8
|
extends: [
|
9
9
|
{
|
10
|
-
serviceName:
|
10
|
+
serviceName: modules_sdk_1.Modules.INVENTORY,
|
11
11
|
relationship: {
|
12
|
-
serviceName:
|
12
|
+
serviceName: modules_sdk_1.Modules.STOCK_LOCATION,
|
13
13
|
primaryKey: "id",
|
14
14
|
foreignKey: "location_id",
|
15
15
|
alias: "stock_locations",
|
16
|
-
args: {
|
17
|
-
methodSuffix: "StockLocations",
|
18
|
-
},
|
19
16
|
isList: true,
|
20
17
|
},
|
21
18
|
},
|
@@ -1,33 +1,27 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.OrderCustomer = void 0;
|
4
|
-
const
|
4
|
+
const modules_sdk_1 = require("@medusajs/modules-sdk");
|
5
5
|
exports.OrderCustomer = {
|
6
6
|
isLink: true,
|
7
7
|
isReadOnlyLink: true,
|
8
8
|
extends: [
|
9
9
|
{
|
10
|
-
serviceName:
|
10
|
+
serviceName: modules_sdk_1.Modules.ORDER,
|
11
11
|
relationship: {
|
12
|
-
serviceName:
|
12
|
+
serviceName: modules_sdk_1.Modules.CUSTOMER,
|
13
13
|
primaryKey: "id",
|
14
14
|
foreignKey: "customer_id",
|
15
15
|
alias: "customer",
|
16
|
-
args: {
|
17
|
-
methodSuffix: "Customers",
|
18
|
-
},
|
19
16
|
},
|
20
17
|
},
|
21
18
|
{
|
22
|
-
serviceName:
|
19
|
+
serviceName: modules_sdk_1.Modules.CUSTOMER,
|
23
20
|
relationship: {
|
24
|
-
serviceName:
|
21
|
+
serviceName: modules_sdk_1.Modules.ORDER,
|
25
22
|
primaryKey: "customer_id",
|
26
23
|
foreignKey: "id",
|
27
24
|
alias: "orders",
|
28
|
-
args: {
|
29
|
-
methodSuffix: "Orders",
|
30
|
-
},
|
31
25
|
isList: true,
|
32
26
|
},
|
33
27
|
},
|
@@ -1,6 +1,7 @@
|
|
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");
|
4
5
|
const utils_1 = require("@medusajs/utils");
|
5
6
|
exports.OrderPromotion = {
|
6
7
|
serviceName: utils_1.LINKS.OrderPromotion,
|
@@ -20,44 +21,35 @@ exports.OrderPromotion = {
|
|
20
21
|
primaryKeys: ["id", "order_id", "promotion_id"],
|
21
22
|
relationships: [
|
22
23
|
{
|
23
|
-
serviceName:
|
24
|
+
serviceName: modules_sdk_1.Modules.ORDER,
|
24
25
|
primaryKey: "id",
|
25
26
|
foreignKey: "order_id",
|
26
27
|
alias: "order",
|
27
|
-
args: {
|
28
|
-
methodSuffix: "Orders",
|
29
|
-
},
|
30
28
|
},
|
31
29
|
{
|
32
|
-
serviceName:
|
30
|
+
serviceName: modules_sdk_1.Modules.PROMOTION,
|
33
31
|
primaryKey: "id",
|
34
32
|
foreignKey: "promotion_id",
|
35
33
|
alias: "promotion",
|
36
|
-
args: {
|
37
|
-
methodSuffix: "Promotions",
|
38
|
-
},
|
39
34
|
},
|
40
35
|
],
|
41
36
|
extends: [
|
42
37
|
{
|
43
|
-
serviceName:
|
44
|
-
fieldAlias: {
|
45
|
-
promotion: "promotion_link.promotion",
|
46
|
-
},
|
38
|
+
serviceName: modules_sdk_1.Modules.ORDER,
|
47
39
|
relationship: {
|
48
40
|
serviceName: utils_1.LINKS.OrderPromotion,
|
49
41
|
primaryKey: "order_id",
|
50
42
|
foreignKey: "id",
|
51
|
-
alias: "
|
43
|
+
alias: "order_link",
|
52
44
|
},
|
53
45
|
},
|
54
46
|
{
|
55
|
-
serviceName:
|
47
|
+
serviceName: modules_sdk_1.Modules.PROMOTION,
|
56
48
|
relationship: {
|
57
49
|
serviceName: utils_1.LINKS.OrderPromotion,
|
58
50
|
primaryKey: "promotion_id",
|
59
51
|
foreignKey: "id",
|
60
|
-
alias: "
|
52
|
+
alias: "promotion_link",
|
61
53
|
},
|
62
54
|
},
|
63
55
|
],
|
@@ -1,33 +1,27 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.OrderRegion = void 0;
|
4
|
-
const
|
4
|
+
const modules_sdk_1 = require("@medusajs/modules-sdk");
|
5
5
|
exports.OrderRegion = {
|
6
6
|
isLink: true,
|
7
7
|
isReadOnlyLink: true,
|
8
8
|
extends: [
|
9
9
|
{
|
10
|
-
serviceName:
|
10
|
+
serviceName: modules_sdk_1.Modules.ORDER,
|
11
11
|
relationship: {
|
12
|
-
serviceName:
|
12
|
+
serviceName: modules_sdk_1.Modules.REGION,
|
13
13
|
primaryKey: "id",
|
14
14
|
foreignKey: "region_id",
|
15
15
|
alias: "region",
|
16
|
-
args: {
|
17
|
-
methodSuffix: "Regions",
|
18
|
-
},
|
19
16
|
},
|
20
17
|
},
|
21
18
|
{
|
22
|
-
serviceName:
|
19
|
+
serviceName: modules_sdk_1.Modules.REGION,
|
23
20
|
relationship: {
|
24
|
-
serviceName:
|
21
|
+
serviceName: modules_sdk_1.Modules.ORDER,
|
25
22
|
primaryKey: "region_id",
|
26
23
|
foreignKey: "id",
|
27
24
|
alias: "orders",
|
28
|
-
args: {
|
29
|
-
methodSuffix: "Orders",
|
30
|
-
},
|
31
25
|
isList: true,
|
32
26
|
},
|
33
27
|
},
|