@medusajs/link-modules 0.2.12-snapshot-20240718073308 → 0.2.12-snapshot-20240718083016

Sign up to get free protection for your applications and to get access to all the features.
Files changed (135) hide show
  1. package/dist/definitions/{readonly/cart-customer.d.ts → cart-customer.d.ts} +0 -1
  2. package/dist/definitions/{readonly/cart-customer.js → cart-customer.js} +5 -11
  3. package/dist/definitions/cart-payment-collection.d.ts +0 -1
  4. package/dist/definitions/cart-payment-collection.js +5 -10
  5. package/dist/definitions/cart-promotion.d.ts +0 -1
  6. package/dist/definitions/cart-promotion.js +14 -14
  7. package/dist/definitions/{readonly/cart-region.d.ts → cart-region.d.ts} +0 -1
  8. package/dist/definitions/{readonly/cart-region.js → cart-region.js} +5 -11
  9. package/dist/definitions/{readonly/cart-sales-channel.d.ts → cart-sales-channel.d.ts} +0 -1
  10. package/dist/definitions/{readonly/cart-sales-channel.js → cart-sales-channel.js} +5 -11
  11. package/dist/definitions/fulfillment-set-location.d.ts +1 -2
  12. package/dist/definitions/fulfillment-set-location.js +30 -35
  13. package/dist/definitions/index.d.ts +9 -5
  14. package/dist/definitions/index.js +9 -4
  15. package/dist/definitions/{readonly/inventory-level-stock-location.d.ts → inventory-level-stock-location.d.ts} +0 -1
  16. package/dist/definitions/{readonly/inventory-level-stock-location.js → inventory-level-stock-location.js} +3 -6
  17. package/dist/definitions/{readonly/order-customer.d.ts → order-customer.d.ts} +0 -1
  18. package/dist/definitions/{readonly/order-customer.js → order-customer.js} +5 -11
  19. package/dist/definitions/order-promotion.d.ts +0 -1
  20. package/dist/definitions/order-promotion.js +7 -15
  21. package/dist/definitions/{readonly/order-region.d.ts → order-region.d.ts} +0 -1
  22. package/dist/definitions/{readonly/order-region.js → order-region.js} +5 -11
  23. package/dist/definitions/{readonly/order-sales-channel.d.ts → order-sales-channel.d.ts} +0 -1
  24. package/dist/definitions/order-sales-channel.js +67 -0
  25. package/dist/definitions/product-sales-channel.d.ts +0 -1
  26. package/dist/definitions/product-sales-channel.js +7 -10
  27. package/dist/definitions/product-shipping-profile.d.ts +2 -0
  28. package/dist/definitions/product-shipping-profile.js +61 -0
  29. package/dist/definitions/product-variant-inventory-item.d.ts +0 -1
  30. package/dist/definitions/product-variant-inventory-item.js +7 -13
  31. package/dist/definitions/product-variant-price-set.d.ts +0 -1
  32. package/dist/definitions/product-variant-price-set.js +8 -9
  33. package/dist/definitions/publishable-api-key-sales-channel.d.ts +0 -1
  34. package/dist/definitions/publishable-api-key-sales-channel.js +5 -10
  35. package/dist/definitions/region-payment-provider.d.ts +0 -1
  36. package/dist/definitions/region-payment-provider.js +5 -7
  37. package/dist/definitions/sales-channel-location.d.ts +0 -1
  38. package/dist/definitions/sales-channel-location.js +5 -10
  39. package/dist/definitions/shipping-option-price-set.d.ts +0 -1
  40. package/dist/definitions/shipping-option-price-set.js +5 -7
  41. package/dist/definitions/store-default-currency.d.ts +2 -0
  42. package/dist/definitions/store-default-currency.js +19 -0
  43. package/dist/index.d.ts +0 -1
  44. package/dist/initialize/index.d.ts +0 -2
  45. package/dist/initialize/index.js +14 -30
  46. package/dist/initialize/module-definition.d.ts +0 -1
  47. package/dist/loaders/connection.d.ts +0 -1
  48. package/dist/loaders/container.d.ts +0 -1
  49. package/dist/loaders/index.d.ts +0 -1
  50. package/dist/migration/index.d.ts +0 -2
  51. package/dist/migration/index.js +7 -31
  52. package/dist/repositories/index.d.ts +0 -1
  53. package/dist/repositories/link.d.ts +4 -6
  54. package/dist/services/dynamic-service-class.d.ts +0 -1
  55. package/dist/services/dynamic-service-class.js +0 -7
  56. package/dist/services/index.d.ts +0 -1
  57. package/dist/services/link-module-service.d.ts +0 -1
  58. package/dist/services/link-module-service.js +36 -28
  59. package/dist/services/link.d.ts +0 -1
  60. package/dist/types/index.d.ts +0 -1
  61. package/dist/utils/compose-link-name.d.ts +0 -1
  62. package/dist/utils/generate-entity.d.ts +0 -1
  63. package/dist/utils/generate-schema.d.ts +0 -1
  64. package/dist/utils/generate-schema.js +4 -5
  65. package/dist/utils/index.d.ts +0 -1
  66. package/dist/utils/index.js +2 -2
  67. package/package.json +7 -6
  68. package/dist/definitions/cart-payment-collection.d.ts.map +0 -1
  69. package/dist/definitions/cart-promotion.d.ts.map +0 -1
  70. package/dist/definitions/fulfillment-set-location.d.ts.map +0 -1
  71. package/dist/definitions/index.d.ts.map +0 -1
  72. package/dist/definitions/order-cart.d.ts +0 -3
  73. package/dist/definitions/order-cart.d.ts.map +0 -1
  74. package/dist/definitions/order-cart.js +0 -67
  75. package/dist/definitions/order-claim-payment-collection.d.ts +0 -3
  76. package/dist/definitions/order-claim-payment-collection.d.ts.map +0 -1
  77. package/dist/definitions/order-claim-payment-collection.js +0 -73
  78. package/dist/definitions/order-exchange-payment-collection.d.ts +0 -3
  79. package/dist/definitions/order-exchange-payment-collection.d.ts.map +0 -1
  80. package/dist/definitions/order-exchange-payment-collection.js +0 -73
  81. package/dist/definitions/order-fulfillment.d.ts +0 -3
  82. package/dist/definitions/order-fulfillment.d.ts.map +0 -1
  83. package/dist/definitions/order-fulfillment.js +0 -66
  84. package/dist/definitions/order-payment-collection.d.ts +0 -3
  85. package/dist/definitions/order-payment-collection.d.ts.map +0 -1
  86. package/dist/definitions/order-payment-collection.js +0 -70
  87. package/dist/definitions/order-promotion.d.ts.map +0 -1
  88. package/dist/definitions/product-sales-channel.d.ts.map +0 -1
  89. package/dist/definitions/product-variant-inventory-item.d.ts.map +0 -1
  90. package/dist/definitions/product-variant-price-set.d.ts.map +0 -1
  91. package/dist/definitions/publishable-api-key-sales-channel.d.ts.map +0 -1
  92. package/dist/definitions/readonly/cart-customer.d.ts.map +0 -1
  93. package/dist/definitions/readonly/cart-product.d.ts +0 -3
  94. package/dist/definitions/readonly/cart-product.d.ts.map +0 -1
  95. package/dist/definitions/readonly/cart-product.js +0 -47
  96. package/dist/definitions/readonly/cart-region.d.ts.map +0 -1
  97. package/dist/definitions/readonly/cart-sales-channel.d.ts.map +0 -1
  98. package/dist/definitions/readonly/index.d.ts +0 -12
  99. package/dist/definitions/readonly/index.d.ts.map +0 -1
  100. package/dist/definitions/readonly/index.js +0 -27
  101. package/dist/definitions/readonly/inventory-level-stock-location.d.ts.map +0 -1
  102. package/dist/definitions/readonly/line-item-adjustment-promotion.d.ts +0 -3
  103. package/dist/definitions/readonly/line-item-adjustment-promotion.d.ts.map +0 -1
  104. package/dist/definitions/readonly/line-item-adjustment-promotion.js +0 -22
  105. package/dist/definitions/readonly/order-customer.d.ts.map +0 -1
  106. package/dist/definitions/readonly/order-product.d.ts +0 -3
  107. package/dist/definitions/readonly/order-product.d.ts.map +0 -1
  108. package/dist/definitions/readonly/order-product.js +0 -47
  109. package/dist/definitions/readonly/order-region.d.ts.map +0 -1
  110. package/dist/definitions/readonly/order-sales-channel.d.ts.map +0 -1
  111. package/dist/definitions/readonly/order-sales-channel.js +0 -35
  112. package/dist/definitions/readonly/store-currency.d.ts +0 -3
  113. package/dist/definitions/readonly/store-currency.d.ts.map +0 -1
  114. package/dist/definitions/readonly/store-currency.js +0 -22
  115. package/dist/definitions/region-payment-provider.d.ts.map +0 -1
  116. package/dist/definitions/sales-channel-location.d.ts.map +0 -1
  117. package/dist/definitions/shipping-option-price-set.d.ts.map +0 -1
  118. package/dist/index.d.ts.map +0 -1
  119. package/dist/initialize/index.d.ts.map +0 -1
  120. package/dist/initialize/module-definition.d.ts.map +0 -1
  121. package/dist/loaders/connection.d.ts.map +0 -1
  122. package/dist/loaders/container.d.ts.map +0 -1
  123. package/dist/loaders/index.d.ts.map +0 -1
  124. package/dist/migration/index.d.ts.map +0 -1
  125. package/dist/repositories/index.d.ts.map +0 -1
  126. package/dist/repositories/link.d.ts.map +0 -1
  127. package/dist/services/dynamic-service-class.d.ts.map +0 -1
  128. package/dist/services/index.d.ts.map +0 -1
  129. package/dist/services/link-module-service.d.ts.map +0 -1
  130. package/dist/services/link.d.ts.map +0 -1
  131. package/dist/types/index.d.ts.map +0 -1
  132. package/dist/utils/compose-link-name.d.ts.map +0 -1
  133. package/dist/utils/generate-entity.d.ts.map +0 -1
  134. package/dist/utils/generate-schema.d.ts.map +0 -1
  135. package/dist/utils/index.d.ts.map +0 -1
@@ -1,3 +1,2 @@
1
1
  import { ModuleJoinerConfig } from "@medusajs/types";
2
2
  export declare const CartCustomer: ModuleJoinerConfig;
3
- //# sourceMappingURL=cart-customer.d.ts.map
@@ -1,33 +1,27 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CartCustomer = void 0;
4
- const utils_1 = require("@medusajs/utils");
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: utils_1.Modules.CART,
10
+ serviceName: modules_sdk_1.Modules.CART,
11
11
  relationship: {
12
- serviceName: utils_1.Modules.CUSTOMER,
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: utils_1.Modules.CUSTOMER,
19
+ serviceName: modules_sdk_1.Modules.CUSTOMER,
23
20
  relationship: {
24
- serviceName: utils_1.Modules.CART,
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,3 +1,2 @@
1
1
  import { ModuleJoinerConfig } from "@medusajs/types";
2
2
  export declare const CartPaymentCollection: ModuleJoinerConfig;
3
- //# sourceMappingURL=cart-payment-collection.d.ts.map
@@ -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: utils_1.Modules.CART,
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: utils_1.Modules.PAYMENT,
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: utils_1.Modules.CART,
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: utils_1.Modules.PAYMENT,
50
+ serviceName: modules_sdk_1.Modules.PAYMENT,
56
51
  fieldAlias: {
57
52
  cart: "cart_link.cart",
58
53
  },
@@ -1,3 +1,2 @@
1
1
  import { ModuleJoinerConfig } from "@medusajs/types";
2
2
  export declare const CartPromotion: ModuleJoinerConfig;
3
- //# sourceMappingURL=cart-promotion.d.ts.map
@@ -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: utils_1.Modules.CART,
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: utils_1.Modules.PROMOTION,
30
+ serviceName: modules_sdk_1.Modules.PROMOTION,
33
31
  primaryKey: "id",
34
32
  foreignKey: "promotion_id",
35
- alias: "promotions",
36
- args: {
37
- methodSuffix: "Promotions",
38
- },
33
+ alias: "promotion",
39
34
  },
40
35
  ],
41
36
  extends: [
42
37
  {
43
- serviceName: utils_1.Modules.CART,
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
- isList: true,
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,3 +1,2 @@
1
1
  import { ModuleJoinerConfig } from "@medusajs/types";
2
2
  export declare const CartRegion: ModuleJoinerConfig;
3
- //# sourceMappingURL=cart-region.d.ts.map
@@ -1,33 +1,27 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CartRegion = void 0;
4
- const utils_1 = require("@medusajs/utils");
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: utils_1.Modules.CART,
10
+ serviceName: modules_sdk_1.Modules.CART,
11
11
  relationship: {
12
- serviceName: utils_1.Modules.REGION,
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: utils_1.Modules.REGION,
19
+ serviceName: modules_sdk_1.Modules.REGION,
23
20
  relationship: {
24
- serviceName: utils_1.Modules.CART,
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,3 +1,2 @@
1
1
  import { ModuleJoinerConfig } from "@medusajs/types";
2
2
  export declare const CartSalesChannel: ModuleJoinerConfig;
3
- //# sourceMappingURL=cart-sales-channel.d.ts.map
@@ -1,33 +1,27 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CartSalesChannel = void 0;
4
- const utils_1 = require("@medusajs/utils");
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: utils_1.Modules.CART,
10
+ serviceName: modules_sdk_1.Modules.CART,
11
11
  relationship: {
12
- serviceName: utils_1.Modules.SALES_CHANNEL,
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: utils_1.Modules.SALES_CHANNEL,
19
+ serviceName: modules_sdk_1.Modules.SALES_CHANNEL,
23
20
  relationship: {
24
- serviceName: utils_1.Modules.CART,
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,3 +1,2 @@
1
1
  import { ModuleJoinerConfig } from "@medusajs/types";
2
- export declare const LocationFulfillmentSet: ModuleJoinerConfig;
3
- //# sourceMappingURL=fulfillment-set-location.d.ts.map
2
+ export declare const FulfillmentSetLocation: ModuleJoinerConfig;
@@ -1,68 +1,63 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LocationFulfillmentSet = void 0;
3
+ exports.FulfillmentSetLocation = void 0;
4
+ const modules_sdk_1 = require("@medusajs/modules-sdk");
4
5
  const utils_1 = require("@medusajs/utils");
5
- exports.LocationFulfillmentSet = {
6
- serviceName: utils_1.LINKS.LocationFulfillmentSet,
6
+ exports.FulfillmentSetLocation = {
7
+ serviceName: utils_1.LINKS.FulfillmentSetLocation,
7
8
  isLink: true,
8
9
  databaseConfig: {
9
- tableName: "location_fulfillment_set",
10
- idPrefix: "locfs",
10
+ tableName: "fulfillment_set_location",
11
+ idPrefix: "fsloc",
11
12
  },
12
13
  alias: [
13
14
  {
14
- name: ["location_fulfillment_set", "location_fulfillment_sets"],
15
+ name: ["fulfillment_set_location", "fulfillment_set_locations"],
15
16
  args: {
16
- entity: "LinkLocationFulfillmentSet",
17
+ entity: "LinkFulfillmentSetLocation",
17
18
  },
18
19
  },
19
20
  ],
20
- primaryKeys: ["id", "stock_location_id", "fulfillment_set_id"],
21
+ primaryKeys: ["id", "fulfillment_set_id", "stock_location_id"],
21
22
  relationships: [
22
23
  {
23
- serviceName: utils_1.Modules.STOCK_LOCATION,
24
+ serviceName: modules_sdk_1.Modules.FULFILLMENT,
24
25
  primaryKey: "id",
25
- foreignKey: "stock_location_id",
26
- alias: "location",
27
- args: {
28
- methodSuffix: "StockLocations",
29
- },
26
+ foreignKey: "fulfillment_set_id",
27
+ alias: "fulfillment_set",
30
28
  },
31
29
  {
32
- serviceName: utils_1.Modules.FULFILLMENT,
30
+ serviceName: modules_sdk_1.Modules.STOCK_LOCATION,
33
31
  primaryKey: "id",
34
- foreignKey: "fulfillment_set_id",
35
- alias: "fulfillment_set",
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: utils_1.Modules.STOCK_LOCATION,
38
+ serviceName: modules_sdk_1.Modules.FULFILLMENT,
39
+ fieldAlias: {
40
+ stock_locations: "locations_link.location",
41
+ },
45
42
  relationship: {
46
- serviceName: utils_1.LINKS.LocationFulfillmentSet,
47
- primaryKey: "stock_location_id",
43
+ serviceName: utils_1.LINKS.FulfillmentSetLocation,
44
+ primaryKey: "fulfillment_set_id",
48
45
  foreignKey: "id",
49
- alias: "fulfillment_set_link",
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: utils_1.Modules.FULFILLMENT,
58
- fieldAlias: {
59
- location: "locations_link.location",
60
- },
51
+ serviceName: modules_sdk_1.Modules.STOCK_LOCATION,
61
52
  relationship: {
62
- serviceName: utils_1.LINKS.LocationFulfillmentSet,
63
- primaryKey: "fulfillment_set_id",
53
+ serviceName: utils_1.LINKS.FulfillmentSetLocation,
54
+ primaryKey: "stock_location_id",
64
55
  foreignKey: "id",
65
- alias: "locations_link",
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 "./order-cart";
5
- export * from "./order-fulfillment";
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
- //# sourceMappingURL=index.d.ts.map
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("./order-cart"), exports);
21
- __exportStar(require("./order-fulfillment"), exports);
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,3 +1,2 @@
1
1
  import { ModuleJoinerConfig } from "@medusajs/types";
2
2
  export declare const InventoryLevelStockLocation: ModuleJoinerConfig;
3
- //# sourceMappingURL=inventory-level-stock-location.d.ts.map
@@ -1,21 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InventoryLevelStockLocation = void 0;
4
- const utils_1 = require("@medusajs/utils");
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: utils_1.Modules.INVENTORY,
10
+ serviceName: modules_sdk_1.Modules.INVENTORY,
11
11
  relationship: {
12
- serviceName: utils_1.Modules.STOCK_LOCATION,
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,3 +1,2 @@
1
1
  import { ModuleJoinerConfig } from "@medusajs/types";
2
2
  export declare const OrderCustomer: ModuleJoinerConfig;
3
- //# sourceMappingURL=order-customer.d.ts.map
@@ -1,33 +1,27 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OrderCustomer = void 0;
4
- const utils_1 = require("@medusajs/utils");
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: utils_1.Modules.ORDER,
10
+ serviceName: modules_sdk_1.Modules.ORDER,
11
11
  relationship: {
12
- serviceName: utils_1.Modules.CUSTOMER,
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: utils_1.Modules.CUSTOMER,
19
+ serviceName: modules_sdk_1.Modules.CUSTOMER,
23
20
  relationship: {
24
- serviceName: utils_1.Modules.ORDER,
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,3 +1,2 @@
1
1
  import { ModuleJoinerConfig } from "@medusajs/types";
2
2
  export declare const OrderPromotion: ModuleJoinerConfig;
3
- //# sourceMappingURL=order-promotion.d.ts.map
@@ -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: utils_1.Modules.ORDER,
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: utils_1.Modules.PROMOTION,
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: utils_1.Modules.ORDER,
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: "promotion_link",
43
+ alias: "order_link",
52
44
  },
53
45
  },
54
46
  {
55
- serviceName: utils_1.Modules.PROMOTION,
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: "order_link",
52
+ alias: "promotion_link",
61
53
  },
62
54
  },
63
55
  ],
@@ -1,3 +1,2 @@
1
1
  import { ModuleJoinerConfig } from "@medusajs/types";
2
2
  export declare const OrderRegion: ModuleJoinerConfig;
3
- //# sourceMappingURL=order-region.d.ts.map
@@ -1,33 +1,27 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OrderRegion = void 0;
4
- const utils_1 = require("@medusajs/utils");
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: utils_1.Modules.ORDER,
10
+ serviceName: modules_sdk_1.Modules.ORDER,
11
11
  relationship: {
12
- serviceName: utils_1.Modules.REGION,
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: utils_1.Modules.REGION,
19
+ serviceName: modules_sdk_1.Modules.REGION,
23
20
  relationship: {
24
- serviceName: utils_1.Modules.ORDER,
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
  },
@@ -1,3 +1,2 @@
1
1
  import { ModuleJoinerConfig } from "@medusajs/types";
2
2
  export declare const OrderSalesChannel: ModuleJoinerConfig;
3
- //# sourceMappingURL=order-sales-channel.d.ts.map