@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.
Files changed (212) hide show
  1. package/dist/definitions/cart-payment-collection.d.ts +2 -1
  2. package/dist/definitions/cart-payment-collection.d.ts.map +1 -0
  3. package/dist/definitions/cart-payment-collection.js +15 -9
  4. package/dist/definitions/cart-payment-collection.js.map +1 -0
  5. package/dist/definitions/cart-promotion.d.ts +2 -1
  6. package/dist/definitions/cart-promotion.d.ts.map +1 -0
  7. package/dist/definitions/cart-promotion.js +22 -18
  8. package/dist/definitions/cart-promotion.js.map +1 -0
  9. package/dist/definitions/fulfillment-provider-location.d.ts +3 -0
  10. package/dist/definitions/fulfillment-provider-location.d.ts.map +1 -0
  11. package/dist/definitions/fulfillment-provider-location.js +72 -0
  12. package/dist/definitions/fulfillment-provider-location.js.map +1 -0
  13. package/dist/definitions/fulfillment-set-location.d.ts +3 -2
  14. package/dist/definitions/fulfillment-set-location.d.ts.map +1 -0
  15. package/dist/definitions/fulfillment-set-location.js +42 -33
  16. package/dist/definitions/fulfillment-set-location.js.map +1 -0
  17. package/dist/definitions/index.d.ts +7 -9
  18. package/dist/definitions/index.d.ts.map +1 -0
  19. package/dist/definitions/index.js +7 -9
  20. package/dist/definitions/index.js.map +1 -0
  21. package/dist/definitions/order-cart.d.ts +3 -0
  22. package/dist/definitions/order-cart.d.ts.map +1 -0
  23. package/dist/definitions/order-cart.js +68 -0
  24. package/dist/definitions/order-cart.js.map +1 -0
  25. package/dist/definitions/order-claim-payment-collection.d.ts +3 -0
  26. package/dist/definitions/order-claim-payment-collection.d.ts.map +1 -0
  27. package/dist/definitions/order-claim-payment-collection.js +74 -0
  28. package/dist/definitions/order-claim-payment-collection.js.map +1 -0
  29. package/dist/definitions/order-exchange-payment-collection.d.ts +3 -0
  30. package/dist/definitions/order-exchange-payment-collection.d.ts.map +1 -0
  31. package/dist/definitions/order-exchange-payment-collection.js +74 -0
  32. package/dist/definitions/order-exchange-payment-collection.js.map +1 -0
  33. package/dist/definitions/order-fulfillment.d.ts +3 -0
  34. package/dist/definitions/order-fulfillment.d.ts.map +1 -0
  35. package/dist/definitions/order-fulfillment.js +72 -0
  36. package/dist/definitions/order-fulfillment.js.map +1 -0
  37. package/dist/definitions/order-payment-collection.d.ts +3 -0
  38. package/dist/definitions/order-payment-collection.d.ts.map +1 -0
  39. package/dist/definitions/order-payment-collection.js +72 -0
  40. package/dist/definitions/order-payment-collection.js.map +1 -0
  41. package/dist/definitions/order-promotion.d.ts +2 -1
  42. package/dist/definitions/order-promotion.d.ts.map +1 -0
  43. package/dist/definitions/order-promotion.js +20 -11
  44. package/dist/definitions/order-promotion.js.map +1 -0
  45. package/dist/definitions/order-return-fulfillment.d.ts +3 -0
  46. package/dist/definitions/order-return-fulfillment.d.ts.map +1 -0
  47. package/dist/definitions/order-return-fulfillment.js +69 -0
  48. package/dist/definitions/order-return-fulfillment.js.map +1 -0
  49. package/dist/definitions/product-sales-channel.d.ts +2 -1
  50. package/dist/definitions/product-sales-channel.d.ts.map +1 -0
  51. package/dist/definitions/product-sales-channel.js +18 -9
  52. package/dist/definitions/product-sales-channel.js.map +1 -0
  53. package/dist/definitions/product-variant-inventory-item.d.ts +2 -1
  54. package/dist/definitions/product-variant-inventory-item.d.ts.map +1 -0
  55. package/dist/definitions/product-variant-inventory-item.js +21 -11
  56. package/dist/definitions/product-variant-inventory-item.js.map +1 -0
  57. package/dist/definitions/product-variant-price-set.d.ts +2 -1
  58. package/dist/definitions/product-variant-price-set.d.ts.map +1 -0
  59. package/dist/definitions/product-variant-price-set.js +18 -12
  60. package/dist/definitions/product-variant-price-set.js.map +1 -0
  61. package/dist/definitions/publishable-api-key-sales-channel.d.ts +2 -1
  62. package/dist/definitions/publishable-api-key-sales-channel.d.ts.map +1 -0
  63. package/dist/definitions/publishable-api-key-sales-channel.js +22 -8
  64. package/dist/definitions/publishable-api-key-sales-channel.js.map +1 -0
  65. package/dist/definitions/readonly/cart-customer.d.ts +3 -0
  66. package/dist/definitions/readonly/cart-customer.d.ts.map +1 -0
  67. package/dist/definitions/{cart-customer.js → readonly/cart-customer.js} +14 -5
  68. package/dist/definitions/readonly/cart-customer.js.map +1 -0
  69. package/dist/definitions/readonly/cart-product.d.ts +3 -0
  70. package/dist/definitions/readonly/cart-product.d.ts.map +1 -0
  71. package/dist/definitions/readonly/cart-product.js +50 -0
  72. package/dist/definitions/readonly/cart-product.js.map +1 -0
  73. package/dist/definitions/readonly/cart-region.d.ts +3 -0
  74. package/dist/definitions/readonly/cart-region.d.ts.map +1 -0
  75. package/dist/definitions/{cart-region.js → readonly/cart-region.js} +14 -5
  76. package/dist/definitions/readonly/cart-region.js.map +1 -0
  77. package/dist/definitions/readonly/cart-sales-channel.d.ts +3 -0
  78. package/dist/definitions/readonly/cart-sales-channel.d.ts.map +1 -0
  79. package/dist/definitions/{cart-sales-channel.js → readonly/cart-sales-channel.js} +14 -5
  80. package/dist/definitions/readonly/cart-sales-channel.js.map +1 -0
  81. package/dist/definitions/readonly/index.d.ts +12 -0
  82. package/dist/definitions/readonly/index.d.ts.map +1 -0
  83. package/dist/definitions/readonly/index.js +28 -0
  84. package/dist/definitions/readonly/index.js.map +1 -0
  85. package/dist/definitions/readonly/inventory-level-stock-location.d.ts +3 -0
  86. package/dist/definitions/readonly/inventory-level-stock-location.d.ts.map +1 -0
  87. package/dist/definitions/{inventory-level-stock-location.js → readonly/inventory-level-stock-location.js} +8 -3
  88. package/dist/definitions/readonly/inventory-level-stock-location.js.map +1 -0
  89. package/dist/definitions/readonly/line-item-adjustment-promotion.d.ts +3 -0
  90. package/dist/definitions/readonly/line-item-adjustment-promotion.d.ts.map +1 -0
  91. package/dist/definitions/readonly/line-item-adjustment-promotion.js +24 -0
  92. package/dist/definitions/readonly/line-item-adjustment-promotion.js.map +1 -0
  93. package/dist/definitions/readonly/order-customer.d.ts +3 -0
  94. package/dist/definitions/readonly/order-customer.d.ts.map +1 -0
  95. package/dist/definitions/{order-customer.js → readonly/order-customer.js} +14 -5
  96. package/dist/definitions/readonly/order-customer.js.map +1 -0
  97. package/dist/definitions/readonly/order-product.d.ts +3 -0
  98. package/dist/definitions/readonly/order-product.d.ts.map +1 -0
  99. package/dist/definitions/readonly/order-product.js +51 -0
  100. package/dist/definitions/readonly/order-product.js.map +1 -0
  101. package/dist/definitions/readonly/order-region.d.ts +3 -0
  102. package/dist/definitions/readonly/order-region.d.ts.map +1 -0
  103. package/dist/definitions/{order-region.js → readonly/order-region.js} +14 -5
  104. package/dist/definitions/readonly/order-region.js.map +1 -0
  105. package/dist/definitions/readonly/order-sales-channel.d.ts +3 -0
  106. package/dist/definitions/readonly/order-sales-channel.d.ts.map +1 -0
  107. package/dist/definitions/readonly/order-sales-channel.js +38 -0
  108. package/dist/definitions/readonly/order-sales-channel.js.map +1 -0
  109. package/dist/definitions/readonly/store-currency.d.ts +3 -0
  110. package/dist/definitions/readonly/store-currency.d.ts.map +1 -0
  111. package/dist/definitions/readonly/store-currency.js +24 -0
  112. package/dist/definitions/readonly/store-currency.js.map +1 -0
  113. package/dist/definitions/region-payment-provider.d.ts +2 -1
  114. package/dist/definitions/region-payment-provider.d.ts.map +1 -0
  115. package/dist/definitions/region-payment-provider.js +20 -11
  116. package/dist/definitions/region-payment-provider.js.map +1 -0
  117. package/dist/definitions/sales-channel-location.d.ts +2 -1
  118. package/dist/definitions/sales-channel-location.d.ts.map +1 -0
  119. package/dist/definitions/sales-channel-location.js +23 -11
  120. package/dist/definitions/sales-channel-location.js.map +1 -0
  121. package/dist/definitions/shipping-option-price-set.d.ts +2 -1
  122. package/dist/definitions/shipping-option-price-set.d.ts.map +1 -0
  123. package/dist/definitions/shipping-option-price-set.js +12 -9
  124. package/dist/definitions/shipping-option-price-set.js.map +1 -0
  125. package/dist/index.d.ts +3 -2
  126. package/dist/index.d.ts.map +1 -0
  127. package/dist/index.js +3 -2
  128. package/dist/index.js.map +1 -0
  129. package/dist/initialize/index.d.ts +13 -4
  130. package/dist/initialize/index.d.ts.map +1 -0
  131. package/dist/initialize/index.js +42 -28
  132. package/dist/initialize/index.js.map +1 -0
  133. package/dist/initialize/module-definition.d.ts +2 -1
  134. package/dist/initialize/module-definition.d.ts.map +1 -0
  135. package/dist/initialize/module-definition.js +2 -2
  136. package/dist/initialize/module-definition.js.map +1 -0
  137. package/dist/loaders/connection.d.ts +2 -1
  138. package/dist/loaders/connection.d.ts.map +1 -0
  139. package/dist/loaders/connection.js +3 -3
  140. package/dist/loaders/connection.js.map +1 -0
  141. package/dist/loaders/container.d.ts +2 -2
  142. package/dist/loaders/container.d.ts.map +1 -0
  143. package/dist/loaders/container.js +6 -7
  144. package/dist/loaders/container.js.map +1 -0
  145. package/dist/loaders/index.d.ts +2 -1
  146. package/dist/loaders/index.d.ts.map +1 -0
  147. package/dist/loaders/index.js +2 -2
  148. package/dist/loaders/index.js.map +1 -0
  149. package/dist/migration/index.d.ts +103 -2
  150. package/dist/migration/index.d.ts.map +1 -0
  151. package/dist/migration/index.js +341 -46
  152. package/dist/migration/index.js.map +1 -0
  153. package/dist/repositories/index.d.ts +2 -1
  154. package/dist/repositories/index.d.ts.map +1 -0
  155. package/dist/repositories/index.js +2 -1
  156. package/dist/repositories/index.js.map +1 -0
  157. package/dist/repositories/link.d.ts +20 -20
  158. package/dist/repositories/link.d.ts.map +1 -0
  159. package/dist/repositories/link.js +3 -3
  160. package/dist/repositories/link.js.map +1 -0
  161. package/dist/services/dynamic-service-class.d.ts +2 -1
  162. package/dist/services/dynamic-service-class.d.ts.map +1 -0
  163. package/dist/services/dynamic-service-class.js +10 -3
  164. package/dist/services/dynamic-service-class.js.map +1 -0
  165. package/dist/services/index.d.ts +1 -0
  166. package/dist/services/index.d.ts.map +1 -0
  167. package/dist/services/index.js +1 -0
  168. package/dist/services/index.js.map +1 -0
  169. package/dist/services/link-module-service.d.ts +5 -3
  170. package/dist/services/link-module-service.d.ts.map +1 -0
  171. package/dist/services/link-module-service.js +34 -41
  172. package/dist/services/link-module-service.js.map +1 -0
  173. package/dist/services/link.d.ts +2 -1
  174. package/dist/services/link.d.ts.map +1 -0
  175. package/dist/services/link.js +2 -1
  176. package/dist/services/link.js.map +1 -0
  177. package/dist/tsconfig.tsbuildinfo +1 -0
  178. package/dist/types/index.d.ts +2 -1
  179. package/dist/types/index.d.ts.map +1 -0
  180. package/dist/types/index.js +1 -0
  181. package/dist/types/index.js.map +1 -0
  182. package/dist/utils/compress-name.d.ts +2 -0
  183. package/dist/utils/compress-name.d.ts.map +1 -0
  184. package/dist/utils/compress-name.js +33 -0
  185. package/dist/utils/compress-name.js.map +1 -0
  186. package/dist/utils/generate-entity.d.ts +2 -1
  187. package/dist/utils/generate-entity.d.ts.map +1 -0
  188. package/dist/utils/generate-entity.js +6 -6
  189. package/dist/utils/generate-entity.js.map +1 -0
  190. package/dist/utils/generate-schema.d.ts +2 -1
  191. package/dist/utils/generate-schema.d.ts.map +1 -0
  192. package/dist/utils/generate-schema.js +76 -20
  193. package/dist/utils/generate-schema.js.map +1 -0
  194. package/dist/utils/index.d.ts +1 -1
  195. package/dist/utils/index.d.ts.map +1 -0
  196. package/dist/utils/index.js +5 -6
  197. package/dist/utils/index.js.map +1 -0
  198. package/package.json +22 -15
  199. package/dist/definitions/cart-customer.d.ts +0 -2
  200. package/dist/definitions/cart-region.d.ts +0 -2
  201. package/dist/definitions/cart-sales-channel.d.ts +0 -2
  202. package/dist/definitions/inventory-level-stock-location.d.ts +0 -2
  203. package/dist/definitions/order-customer.d.ts +0 -2
  204. package/dist/definitions/order-region.d.ts +0 -2
  205. package/dist/definitions/order-sales-channel.d.ts +0 -2
  206. package/dist/definitions/order-sales-channel.js +0 -67
  207. package/dist/definitions/product-shipping-profile.d.ts +0 -2
  208. package/dist/definitions/product-shipping-profile.js +0 -61
  209. package/dist/definitions/store-default-currency.d.ts +0 -2
  210. package/dist/definitions/store-default-currency.js +0 -19
  211. package/dist/utils/compose-link-name.d.ts +0 -2
  212. package/dist/utils/compose-link-name.js +0 -12
@@ -1,2 +1,3 @@
1
- import { ModuleJoinerConfig } from "@medusajs/types";
1
+ import { ModuleJoinerConfig } from "@medusajs/framework/types";
2
2
  export declare const CartPaymentCollection: ModuleJoinerConfig;
3
+ //# sourceMappingURL=cart-payment-collection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cart-payment-collection.d.ts","sourceRoot":"","sources":["../../src/definitions/cart-payment-collection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAG9D,eAAO,MAAM,qBAAqB,EAAE,kBA8DnC,CAAA"}
@@ -1,8 +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");
5
- const utils_1 = require("@medusajs/utils");
4
+ const utils_1 = require("@medusajs/framework/utils");
6
5
  exports.CartPaymentCollection = {
7
6
  serviceName: utils_1.LINKS.CartPaymentCollection,
8
7
  isLink: true,
@@ -13,29 +12,35 @@ exports.CartPaymentCollection = {
13
12
  alias: [
14
13
  {
15
14
  name: ["cart_payment_collection", "cart_payment_collections"],
16
- args: {
17
- entity: "LinkCartPaymentCollection",
18
- },
15
+ entity: "LinkCartPaymentCollection",
19
16
  },
20
17
  ],
21
18
  primaryKeys: ["id", "cart_id", "payment_collection_id"],
22
19
  relationships: [
23
20
  {
24
- serviceName: modules_sdk_1.Modules.CART,
21
+ serviceName: utils_1.Modules.CART,
22
+ entity: "Cart",
25
23
  primaryKey: "id",
26
24
  foreignKey: "cart_id",
27
25
  alias: "cart",
26
+ args: {
27
+ methodSuffix: "Carts",
28
+ },
28
29
  },
29
30
  {
30
- serviceName: modules_sdk_1.Modules.PAYMENT,
31
+ serviceName: utils_1.Modules.PAYMENT,
32
+ entity: "PaymentCollection",
31
33
  primaryKey: "id",
32
34
  foreignKey: "payment_collection_id",
33
35
  alias: "payment_collection",
36
+ args: {
37
+ methodSuffix: "PaymentCollections",
38
+ },
34
39
  },
35
40
  ],
36
41
  extends: [
37
42
  {
38
- serviceName: modules_sdk_1.Modules.CART,
43
+ serviceName: utils_1.Modules.CART,
39
44
  fieldAlias: {
40
45
  payment_collection: "payment_collection_link.payment_collection",
41
46
  },
@@ -47,7 +52,7 @@ exports.CartPaymentCollection = {
47
52
  },
48
53
  },
49
54
  {
50
- serviceName: modules_sdk_1.Modules.PAYMENT,
55
+ serviceName: utils_1.Modules.PAYMENT,
51
56
  fieldAlias: {
52
57
  cart: "cart_link.cart",
53
58
  },
@@ -60,3 +65,4 @@ exports.CartPaymentCollection = {
60
65
  },
61
66
  ],
62
67
  };
68
+ //# sourceMappingURL=cart-payment-collection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cart-payment-collection.js","sourceRoot":"","sources":["../../src/definitions/cart-payment-collection.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,UAAU;KACrB;IACD,KAAK,EAAE;QACL;YACE,IAAI,EAAE,CAAC,yBAAyB,EAAE,0BAA0B,CAAC;YAC7D,MAAM,EAAE,2BAA2B;SACpC;KACF;IACD,WAAW,EAAE,CAAC,IAAI,EAAE,SAAS,EAAE,uBAAuB,CAAC;IACvD,aAAa,EAAE;QACb;YACE,WAAW,EAAE,eAAO,CAAC,IAAI;YACzB,MAAM,EAAE,MAAM;YACd,UAAU,EAAE,IAAI;YAChB,UAAU,EAAE,SAAS;YACrB,KAAK,EAAE,MAAM;YACb,IAAI,EAAE;gBACJ,YAAY,EAAE,OAAO;aACtB;SACF;QACD;YACE,WAAW,EAAE,eAAO,CAAC,OAAO;YAC5B,MAAM,EAAE,mBAAmB;YAC3B,UAAU,EAAE,IAAI;YAChB,UAAU,EAAE,uBAAuB;YACnC,KAAK,EAAE,oBAAoB;YAC3B,IAAI,EAAE;gBACJ,YAAY,EAAE,oBAAoB;aACnC;SACF;KACF;IACD,OAAO,EAAE;QACP;YACE,WAAW,EAAE,eAAO,CAAC,IAAI;YACzB,UAAU,EAAE;gBACV,kBAAkB,EAAE,4CAA4C;aACjE;YACD,YAAY,EAAE;gBACZ,WAAW,EAAE,aAAK,CAAC,qBAAqB;gBACxC,UAAU,EAAE,SAAS;gBACrB,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,yBAAyB;aACjC;SACF;QACD;YACE,WAAW,EAAE,eAAO,CAAC,OAAO;YAC5B,UAAU,EAAE;gBACV,IAAI,EAAE,gBAAgB;aACvB;YACD,YAAY,EAAE;gBACZ,WAAW,EAAE,aAAK,CAAC,qBAAqB;gBACxC,UAAU,EAAE,uBAAuB;gBACnC,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,WAAW;aACnB;SACF;KACF;CACF,CAAA"}
@@ -1,2 +1,3 @@
1
- import { ModuleJoinerConfig } from "@medusajs/types";
1
+ import { ModuleJoinerConfig } from "@medusajs/framework/types";
2
2
  export declare const CartPromotion: ModuleJoinerConfig;
3
+ //# sourceMappingURL=cart-promotion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cart-promotion.d.ts","sourceRoot":"","sources":["../../src/definitions/cart-promotion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAG9D,eAAO,MAAM,aAAa,EAAE,kBAsD3B,CAAA"}
@@ -1,8 +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");
5
- const utils_1 = require("@medusajs/utils");
4
+ const utils_1 = require("@medusajs/framework/utils");
6
5
  exports.CartPromotion = {
7
6
  serviceName: utils_1.LINKS.CartPromotion,
8
7
  isLink: true,
@@ -13,44 +12,49 @@ exports.CartPromotion = {
13
12
  alias: [
14
13
  {
15
14
  name: ["cart_promotion", "cart_promotions"],
16
- args: {
17
- entity: "LinkCartPromotion",
18
- },
15
+ entity: "LinkCartPromotion",
19
16
  },
20
17
  ],
21
18
  primaryKeys: ["id", "cart_id", "promotion_id"],
22
19
  relationships: [
23
20
  {
24
- serviceName: modules_sdk_1.Modules.CART,
21
+ serviceName: utils_1.Modules.CART,
22
+ entity: "Cart",
25
23
  primaryKey: "id",
26
24
  foreignKey: "cart_id",
27
25
  alias: "cart",
26
+ args: {
27
+ methodSuffix: "Carts",
28
+ },
28
29
  },
29
30
  {
30
- serviceName: modules_sdk_1.Modules.PROMOTION,
31
+ serviceName: utils_1.Modules.PROMOTION,
32
+ entity: "Promotion",
31
33
  primaryKey: "id",
32
34
  foreignKey: "promotion_id",
33
- alias: "promotion",
35
+ alias: "promotions",
36
+ args: {
37
+ methodSuffix: "Promotions",
38
+ },
34
39
  },
35
40
  ],
36
41
  extends: [
37
42
  {
38
- serviceName: modules_sdk_1.Modules.CART,
43
+ serviceName: utils_1.Modules.CART,
44
+ fieldAlias: {
45
+ promotions: {
46
+ path: "cart_link.promotions",
47
+ isList: true,
48
+ },
49
+ },
39
50
  relationship: {
40
51
  serviceName: utils_1.LINKS.CartPromotion,
41
52
  primaryKey: "cart_id",
42
53
  foreignKey: "id",
43
54
  alias: "cart_link",
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",
55
+ isList: true,
53
56
  },
54
57
  },
55
58
  ],
56
59
  };
60
+ //# sourceMappingURL=cart-promotion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cart-promotion.js","sourceRoot":"","sources":["../../src/definitions/cart-promotion.ts"],"names":[],"mappings":";;;AACA,qDAA0D;AAE7C,QAAA,aAAa,GAAuB;IAC/C,WAAW,EAAE,aAAK,CAAC,aAAa;IAChC,MAAM,EAAE,IAAI;IACZ,cAAc,EAAE;QACd,SAAS,EAAE,gBAAgB;QAC3B,QAAQ,EAAE,WAAW;KACtB;IACD,KAAK,EAAE;QACL;YACE,IAAI,EAAE,CAAC,gBAAgB,EAAE,iBAAiB,CAAC;YAC3C,MAAM,EAAE,mBAAmB;SAC5B;KACF;IACD,WAAW,EAAE,CAAC,IAAI,EAAE,SAAS,EAAE,cAAc,CAAC;IAC9C,aAAa,EAAE;QACb;YACE,WAAW,EAAE,eAAO,CAAC,IAAI;YACzB,MAAM,EAAE,MAAM;YACd,UAAU,EAAE,IAAI;YAChB,UAAU,EAAE,SAAS;YACrB,KAAK,EAAE,MAAM;YACb,IAAI,EAAE;gBACJ,YAAY,EAAE,OAAO;aACtB;SACF;QACD;YACE,WAAW,EAAE,eAAO,CAAC,SAAS;YAC9B,MAAM,EAAE,WAAW;YACnB,UAAU,EAAE,IAAI;YAChB,UAAU,EAAE,cAAc;YAC1B,KAAK,EAAE,YAAY;YACnB,IAAI,EAAE;gBACJ,YAAY,EAAE,YAAY;aAC3B;SACF;KACF;IACD,OAAO,EAAE;QACP;YACE,WAAW,EAAE,eAAO,CAAC,IAAI;YACzB,UAAU,EAAE;gBACV,UAAU,EAAE;oBACV,IAAI,EAAE,sBAAsB;oBAC5B,MAAM,EAAE,IAAI;iBACb;aACF;YACD,YAAY,EAAE;gBACZ,WAAW,EAAE,aAAK,CAAC,aAAa;gBAChC,UAAU,EAAE,SAAS;gBACrB,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,WAAW;gBAClB,MAAM,EAAE,IAAI;aACb;SACF;KACF;CACF,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { ModuleJoinerConfig } from "@medusajs/framework/types";
2
+ export declare const LocationFulfillmentProvider: ModuleJoinerConfig;
3
+ //# sourceMappingURL=fulfillment-provider-location.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fulfillment-provider-location.d.ts","sourceRoot":"","sources":["../../src/definitions/fulfillment-provider-location.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAG9D,eAAO,MAAM,2BAA2B,EAAE,kBAkEzC,CAAA"}
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LocationFulfillmentProvider = void 0;
4
+ const utils_1 = require("@medusajs/framework/utils");
5
+ exports.LocationFulfillmentProvider = {
6
+ serviceName: utils_1.LINKS.LocationFulfillmentProvider,
7
+ isLink: true,
8
+ databaseConfig: {
9
+ tableName: "location_fulfillment_provider",
10
+ idPrefix: "locfp",
11
+ },
12
+ alias: [
13
+ {
14
+ name: ["location_fulfillment_provider", "location_fulfillment_providers"],
15
+ entity: "LinkLocationFulfillmentProvider",
16
+ },
17
+ ],
18
+ primaryKeys: ["id", "stock_location_id", "fulfillment_provider_id"],
19
+ relationships: [
20
+ {
21
+ serviceName: utils_1.Modules.STOCK_LOCATION,
22
+ entity: "StockLocation",
23
+ primaryKey: "id",
24
+ foreignKey: "stock_location_id",
25
+ alias: "location",
26
+ args: { methodSuffix: "StockLocations" },
27
+ },
28
+ {
29
+ serviceName: utils_1.Modules.FULFILLMENT,
30
+ entity: "FulfillmentProvider",
31
+ primaryKey: "id",
32
+ foreignKey: "fulfillment_provider_id",
33
+ alias: "fulfillment_provider",
34
+ args: { methodSuffix: "FulfillmentProviders" },
35
+ },
36
+ ],
37
+ extends: [
38
+ {
39
+ serviceName: utils_1.Modules.STOCK_LOCATION,
40
+ relationship: {
41
+ serviceName: utils_1.LINKS.LocationFulfillmentProvider,
42
+ primaryKey: "stock_location_id",
43
+ foreignKey: "id",
44
+ alias: "fulfillment_provider_link",
45
+ isList: true,
46
+ },
47
+ fieldAlias: {
48
+ fulfillment_providers: {
49
+ path: "fulfillment_provider_link.fulfillment_provider",
50
+ isList: true,
51
+ },
52
+ },
53
+ },
54
+ {
55
+ serviceName: utils_1.Modules.FULFILLMENT,
56
+ relationship: {
57
+ serviceName: utils_1.LINKS.LocationFulfillmentProvider,
58
+ primaryKey: "fulfillment_provider_id",
59
+ foreignKey: "id",
60
+ alias: "locations_link",
61
+ isList: true,
62
+ },
63
+ fieldAlias: {
64
+ locations: {
65
+ path: "locations_link.location",
66
+ isList: true,
67
+ },
68
+ },
69
+ },
70
+ ],
71
+ };
72
+ //# sourceMappingURL=fulfillment-provider-location.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fulfillment-provider-location.js","sourceRoot":"","sources":["../../src/definitions/fulfillment-provider-location.ts"],"names":[],"mappings":";;;AACA,qDAA0D;AAE7C,QAAA,2BAA2B,GAAuB;IAC7D,WAAW,EAAE,aAAK,CAAC,2BAA2B;IAC9C,MAAM,EAAE,IAAI;IACZ,cAAc,EAAE;QACd,SAAS,EAAE,+BAA+B;QAC1C,QAAQ,EAAE,OAAO;KAClB;IACD,KAAK,EAAE;QACL;YACE,IAAI,EAAE,CAAC,+BAA+B,EAAE,gCAAgC,CAAC;YACzE,MAAM,EAAE,iCAAiC;SAC1C;KACF;IACD,WAAW,EAAE,CAAC,IAAI,EAAE,mBAAmB,EAAE,yBAAyB,CAAC;IACnE,aAAa,EAAE;QACb;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,EAAE,YAAY,EAAE,gBAAgB,EAAE;SACzC;QACD;YACE,WAAW,EAAE,eAAO,CAAC,WAAW;YAChC,MAAM,EAAE,qBAAqB;YAC7B,UAAU,EAAE,IAAI;YAChB,UAAU,EAAE,yBAAyB;YACrC,KAAK,EAAE,sBAAsB;YAC7B,IAAI,EAAE,EAAE,YAAY,EAAE,sBAAsB,EAAE;SAC/C;KACF;IACD,OAAO,EAAE;QACP;YACE,WAAW,EAAE,eAAO,CAAC,cAAc;YACnC,YAAY,EAAE;gBACZ,WAAW,EAAE,aAAK,CAAC,2BAA2B;gBAC9C,UAAU,EAAE,mBAAmB;gBAC/B,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,2BAA2B;gBAClC,MAAM,EAAE,IAAI;aACb;YACD,UAAU,EAAE;gBACV,qBAAqB,EAAE;oBACrB,IAAI,EAAE,gDAAgD;oBACtD,MAAM,EAAE,IAAI;iBACb;aACF;SACF;QACD;YACE,WAAW,EAAE,eAAO,CAAC,WAAW;YAChC,YAAY,EAAE;gBACZ,WAAW,EAAE,aAAK,CAAC,2BAA2B;gBAC9C,UAAU,EAAE,yBAAyB;gBACrC,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,gBAAgB;gBACvB,MAAM,EAAE,IAAI;aACb;YACD,UAAU,EAAE;gBACV,SAAS,EAAE;oBACT,IAAI,EAAE,yBAAyB;oBAC/B,MAAM,EAAE,IAAI;iBACb;aACF;SACF;KACF;CACF,CAAA"}
@@ -1,2 +1,3 @@
1
- import { ModuleJoinerConfig } from "@medusajs/types";
2
- export declare const FulfillmentSetLocation: ModuleJoinerConfig;
1
+ import { ModuleJoinerConfig } from "@medusajs/framework/types";
2
+ export declare const LocationFulfillmentSet: ModuleJoinerConfig;
3
+ //# sourceMappingURL=fulfillment-set-location.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fulfillment-set-location.d.ts","sourceRoot":"","sources":["../../src/definitions/fulfillment-set-location.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAG9D,eAAO,MAAM,sBAAsB,EAAE,kBAmEpC,CAAA"}
@@ -1,64 +1,73 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FulfillmentSetLocation = void 0;
4
- const modules_sdk_1 = require("@medusajs/modules-sdk");
5
- const utils_1 = require("@medusajs/utils");
6
- exports.FulfillmentSetLocation = {
7
- serviceName: utils_1.LINKS.FulfillmentSetLocation,
3
+ exports.LocationFulfillmentSet = void 0;
4
+ const utils_1 = require("@medusajs/framework/utils");
5
+ exports.LocationFulfillmentSet = {
6
+ serviceName: utils_1.LINKS.LocationFulfillmentSet,
8
7
  isLink: true,
9
8
  databaseConfig: {
10
- tableName: "fulfillment_set_location",
11
- idPrefix: "fsloc",
9
+ tableName: "location_fulfillment_set",
10
+ idPrefix: "locfs",
12
11
  },
13
12
  alias: [
14
13
  {
15
- name: ["fulfillment_set_location", "fulfillment_set_locations"],
16
- args: {
17
- entity: "LinkFulfillmentSetLocation",
18
- },
14
+ name: ["location_fulfillment_set", "location_fulfillment_sets"],
15
+ entity: "LinkLocationFulfillmentSet",
19
16
  },
20
17
  ],
21
- primaryKeys: ["id", "fulfillment_set_id", "stock_location_id"],
18
+ primaryKeys: ["id", "stock_location_id", "fulfillment_set_id"],
22
19
  relationships: [
23
20
  {
24
- serviceName: modules_sdk_1.Modules.FULFILLMENT,
21
+ serviceName: utils_1.Modules.STOCK_LOCATION,
22
+ entity: "StockLocation",
25
23
  primaryKey: "id",
26
- foreignKey: "fulfillment_set_id",
27
- alias: "fulfillment_set",
24
+ foreignKey: "stock_location_id",
25
+ alias: "location",
26
+ args: {
27
+ methodSuffix: "StockLocations",
28
+ },
28
29
  },
29
30
  {
30
- serviceName: modules_sdk_1.Modules.STOCK_LOCATION,
31
+ serviceName: utils_1.Modules.FULFILLMENT,
32
+ entity: "FulfillmentSet",
31
33
  primaryKey: "id",
32
- foreignKey: "stock_location_id",
33
- alias: "location",
34
+ foreignKey: "fulfillment_set_id",
35
+ alias: "fulfillment_set",
36
+ args: {
37
+ methodSuffix: "FulfillmentSets",
38
+ },
39
+ deleteCascade: true,
34
40
  },
35
41
  ],
36
42
  extends: [
37
43
  {
38
- serviceName: modules_sdk_1.Modules.FULFILLMENT,
39
- fieldAlias: {
40
- stock_locations: "locations_link.location",
41
- },
44
+ serviceName: utils_1.Modules.STOCK_LOCATION,
42
45
  relationship: {
43
- serviceName: utils_1.LINKS.FulfillmentSetLocation,
44
- primaryKey: "fulfillment_set_id",
46
+ serviceName: utils_1.LINKS.LocationFulfillmentSet,
47
+ primaryKey: "stock_location_id",
45
48
  foreignKey: "id",
46
- alias: "locations_link",
49
+ alias: "fulfillment_set_link",
47
50
  isList: true,
48
51
  },
52
+ fieldAlias: {
53
+ fulfillment_sets: {
54
+ path: "fulfillment_set_link.fulfillment_set",
55
+ isList: true,
56
+ },
57
+ },
49
58
  },
50
59
  {
51
- serviceName: modules_sdk_1.Modules.STOCK_LOCATION,
60
+ serviceName: utils_1.Modules.FULFILLMENT,
61
+ fieldAlias: {
62
+ location: "locations_link.location",
63
+ },
52
64
  relationship: {
53
- serviceName: utils_1.LINKS.FulfillmentSetLocation,
54
- primaryKey: "stock_location_id",
65
+ serviceName: utils_1.LINKS.LocationFulfillmentSet,
66
+ primaryKey: "fulfillment_set_id",
55
67
  foreignKey: "id",
56
- alias: "fulfillment_set_link",
57
- isList: true,
58
- },
59
- fieldAlias: {
60
- fulfillment_sets: "fulfillment_set_link.fulfillment_set",
68
+ alias: "locations_link",
61
69
  },
62
70
  },
63
71
  ],
64
72
  };
73
+ //# sourceMappingURL=fulfillment-set-location.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fulfillment-set-location.js","sourceRoot":"","sources":["../../src/definitions/fulfillment-set-location.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,0BAA0B;QACrC,QAAQ,EAAE,OAAO;KAClB;IACD,KAAK,EAAE;QACL;YACE,IAAI,EAAE,CAAC,0BAA0B,EAAE,2BAA2B,CAAC;YAC/D,MAAM,EAAE,4BAA4B;SACrC;KACF;IACD,WAAW,EAAE,CAAC,IAAI,EAAE,mBAAmB,EAAE,oBAAoB,CAAC;IAC9D,aAAa,EAAE;QACb;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;QACD;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;YACD,aAAa,EAAE,IAAI;SACpB;KACF;IACD,OAAO,EAAE;QACP;YACE,WAAW,EAAE,eAAO,CAAC,cAAc;YACnC,YAAY,EAAE;gBACZ,WAAW,EAAE,aAAK,CAAC,sBAAsB;gBACzC,UAAU,EAAE,mBAAmB;gBAC/B,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,sBAAsB;gBAC7B,MAAM,EAAE,IAAI;aACb;YACD,UAAU,EAAE;gBACV,gBAAgB,EAAE;oBAChB,IAAI,EAAE,sCAAsC;oBAC5C,MAAM,EAAE,IAAI;iBACb;aACF;SACF;QACD;YACE,WAAW,EAAE,eAAO,CAAC,WAAW;YAChC,UAAU,EAAE;gBACV,QAAQ,EAAE,yBAAyB;aACpC;YACD,YAAY,EAAE;gBACZ,WAAW,EAAE,aAAK,CAAC,sBAAsB;gBACzC,UAAU,EAAE,oBAAoB;gBAChC,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,gBAAgB;aACxB;SACF;KACF;CACF,CAAA"}
@@ -1,20 +1,18 @@
1
- export * from "./cart-customer";
2
1
  export * from "./cart-payment-collection";
3
2
  export * from "./cart-promotion";
4
- export * from "./cart-region";
5
- export * from "./cart-sales-channel";
3
+ export * from "./fulfillment-provider-location";
6
4
  export * from "./fulfillment-set-location";
7
- export * from "./inventory-level-stock-location";
8
- export * from "./order-customer";
5
+ export * from "./order-cart";
6
+ export * from "./order-fulfillment";
7
+ export * from "./order-payment-collection";
9
8
  export * from "./order-promotion";
10
- export * from "./order-region";
11
- export * from "./order-sales-channel";
9
+ export * from "./order-return-fulfillment";
12
10
  export * from "./product-sales-channel";
13
- export * from "./product-shipping-profile";
14
11
  export * from "./product-variant-inventory-item";
15
12
  export * from "./product-variant-price-set";
16
13
  export * from "./publishable-api-key-sales-channel";
14
+ export * from "./readonly";
17
15
  export * from "./region-payment-provider";
18
16
  export * from "./sales-channel-location";
19
17
  export * from "./shipping-option-price-set";
20
- export * from "./store-default-currency";
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/definitions/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,kBAAkB,CAAA;AAChC,cAAc,iCAAiC,CAAA;AAC/C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,cAAc,CAAA;AAC5B,cAAc,qBAAqB,CAAA;AACnC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,mBAAmB,CAAA;AACjC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,yBAAyB,CAAA;AACvC,cAAc,kCAAkC,CAAA;AAChD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,qCAAqC,CAAA;AACnD,cAAc,YAAY,CAAA;AAC1B,cAAc,2BAA2B,CAAA;AACzC,cAAc,0BAA0B,CAAA;AACxC,cAAc,6BAA6B,CAAA"}
@@ -14,23 +14,21 @@ 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);
18
17
  __exportStar(require("./cart-payment-collection"), exports);
19
18
  __exportStar(require("./cart-promotion"), exports);
20
- __exportStar(require("./cart-region"), exports);
21
- __exportStar(require("./cart-sales-channel"), exports);
19
+ __exportStar(require("./fulfillment-provider-location"), exports);
22
20
  __exportStar(require("./fulfillment-set-location"), exports);
23
- __exportStar(require("./inventory-level-stock-location"), exports);
24
- __exportStar(require("./order-customer"), exports);
21
+ __exportStar(require("./order-cart"), exports);
22
+ __exportStar(require("./order-fulfillment"), exports);
23
+ __exportStar(require("./order-payment-collection"), exports);
25
24
  __exportStar(require("./order-promotion"), exports);
26
- __exportStar(require("./order-region"), exports);
27
- __exportStar(require("./order-sales-channel"), exports);
25
+ __exportStar(require("./order-return-fulfillment"), exports);
28
26
  __exportStar(require("./product-sales-channel"), exports);
29
- __exportStar(require("./product-shipping-profile"), exports);
30
27
  __exportStar(require("./product-variant-inventory-item"), exports);
31
28
  __exportStar(require("./product-variant-price-set"), exports);
32
29
  __exportStar(require("./publishable-api-key-sales-channel"), exports);
30
+ __exportStar(require("./readonly"), exports);
33
31
  __exportStar(require("./region-payment-provider"), exports);
34
32
  __exportStar(require("./sales-channel-location"), exports);
35
33
  __exportStar(require("./shipping-option-price-set"), exports);
36
- __exportStar(require("./store-default-currency"), exports);
34
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/definitions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAAyC;AACzC,mDAAgC;AAChC,kEAA+C;AAC/C,6DAA0C;AAC1C,+CAA4B;AAC5B,sDAAmC;AACnC,6DAA0C;AAC1C,oDAAiC;AACjC,6DAA0C;AAC1C,0DAAuC;AACvC,mEAAgD;AAChD,8DAA2C;AAC3C,sEAAmD;AACnD,6CAA0B;AAC1B,4DAAyC;AACzC,2DAAwC;AACxC,8DAA2C"}
@@ -0,0 +1,3 @@
1
+ import { ModuleJoinerConfig } from "@medusajs/framework/types";
2
+ export declare const OrderCart: ModuleJoinerConfig;
3
+ //# sourceMappingURL=order-cart.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"order-cart.d.ts","sourceRoot":"","sources":["../../src/definitions/order-cart.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAG9D,eAAO,MAAM,SAAS,EAAE,kBA8DvB,CAAA"}
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrderCart = void 0;
4
+ const utils_1 = require("@medusajs/framework/utils");
5
+ exports.OrderCart = {
6
+ serviceName: utils_1.LINKS.OrderCart,
7
+ isLink: true,
8
+ databaseConfig: {
9
+ tableName: "order_cart",
10
+ idPrefix: "ordercart",
11
+ },
12
+ alias: [
13
+ {
14
+ name: ["order_cart", "order_carts"],
15
+ entity: "LinkOrderCart",
16
+ },
17
+ ],
18
+ primaryKeys: ["id", "order_id", "cart_id"],
19
+ relationships: [
20
+ {
21
+ serviceName: utils_1.Modules.ORDER,
22
+ entity: "Order",
23
+ primaryKey: "id",
24
+ foreignKey: "order_id",
25
+ alias: "order",
26
+ args: {
27
+ methodSuffix: "Orders",
28
+ },
29
+ },
30
+ {
31
+ serviceName: utils_1.Modules.CART,
32
+ entity: "Cart",
33
+ primaryKey: "id",
34
+ foreignKey: "cart_id",
35
+ alias: "cart",
36
+ args: {
37
+ methodSuffix: "Carts",
38
+ },
39
+ },
40
+ ],
41
+ extends: [
42
+ {
43
+ serviceName: utils_1.Modules.ORDER,
44
+ fieldAlias: {
45
+ cart: "cart_link.cart",
46
+ },
47
+ relationship: {
48
+ serviceName: utils_1.LINKS.OrderCart,
49
+ primaryKey: "order_id",
50
+ foreignKey: "id",
51
+ alias: "cart_link",
52
+ },
53
+ },
54
+ {
55
+ serviceName: utils_1.Modules.CART,
56
+ fieldAlias: {
57
+ order: "order_link.order",
58
+ },
59
+ relationship: {
60
+ serviceName: utils_1.LINKS.OrderCart,
61
+ primaryKey: "cart_id",
62
+ foreignKey: "id",
63
+ alias: "order_link",
64
+ },
65
+ },
66
+ ],
67
+ };
68
+ //# sourceMappingURL=order-cart.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"order-cart.js","sourceRoot":"","sources":["../../src/definitions/order-cart.ts"],"names":[],"mappings":";;;AACA,qDAA0D;AAE7C,QAAA,SAAS,GAAuB;IAC3C,WAAW,EAAE,aAAK,CAAC,SAAS;IAC5B,MAAM,EAAE,IAAI;IACZ,cAAc,EAAE;QACd,SAAS,EAAE,YAAY;QACvB,QAAQ,EAAE,WAAW;KACtB;IACD,KAAK,EAAE;QACL;YACE,IAAI,EAAE,CAAC,YAAY,EAAE,aAAa,CAAC;YACnC,MAAM,EAAE,eAAe;SACxB;KACF;IACD,WAAW,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,SAAS,CAAC;IAC1C,aAAa,EAAE;QACb;YACE,WAAW,EAAE,eAAO,CAAC,KAAK;YAC1B,MAAM,EAAE,OAAO;YACf,UAAU,EAAE,IAAI;YAChB,UAAU,EAAE,UAAU;YACtB,KAAK,EAAE,OAAO;YACd,IAAI,EAAE;gBACJ,YAAY,EAAE,QAAQ;aACvB;SACF;QACD;YACE,WAAW,EAAE,eAAO,CAAC,IAAI;YACzB,MAAM,EAAE,MAAM;YACd,UAAU,EAAE,IAAI;YAChB,UAAU,EAAE,SAAS;YACrB,KAAK,EAAE,MAAM;YACb,IAAI,EAAE;gBACJ,YAAY,EAAE,OAAO;aACtB;SACF;KACF;IACD,OAAO,EAAE;QACP;YACE,WAAW,EAAE,eAAO,CAAC,KAAK;YAC1B,UAAU,EAAE;gBACV,IAAI,EAAE,gBAAgB;aACvB;YACD,YAAY,EAAE;gBACZ,WAAW,EAAE,aAAK,CAAC,SAAS;gBAC5B,UAAU,EAAE,UAAU;gBACtB,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,WAAW;aACnB;SACF;QACD;YACE,WAAW,EAAE,eAAO,CAAC,IAAI;YACzB,UAAU,EAAE;gBACV,KAAK,EAAE,kBAAkB;aAC1B;YACD,YAAY,EAAE;gBACZ,WAAW,EAAE,aAAK,CAAC,SAAS;gBAC5B,UAAU,EAAE,SAAS;gBACrB,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,YAAY;aACpB;SACF;KACF;CACF,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { ModuleJoinerConfig } from "@medusajs/framework/types";
2
+ export declare const OrderClaimPaymentCollection: ModuleJoinerConfig;
3
+ //# sourceMappingURL=order-claim-payment-collection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"order-claim-payment-collection.d.ts","sourceRoot":"","sources":["../../src/definitions/order-claim-payment-collection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAG9D,eAAO,MAAM,2BAA2B,EAAE,kBAoEzC,CAAA"}
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrderClaimPaymentCollection = void 0;
4
+ const utils_1 = require("@medusajs/framework/utils");
5
+ exports.OrderClaimPaymentCollection = {
6
+ serviceName: utils_1.LINKS.OrderClaimPaymentCollection,
7
+ isLink: true,
8
+ databaseConfig: {
9
+ tableName: "order_claim_payment_collection",
10
+ idPrefix: "claimpay",
11
+ },
12
+ alias: [
13
+ {
14
+ name: [
15
+ "order_claim_payment_collection",
16
+ "order_claim_payment_collections",
17
+ ],
18
+ entity: "LinkOrderClaimPaymentCollection",
19
+ },
20
+ ],
21
+ primaryKeys: ["id", "claim_id", "payment_collection_id"],
22
+ relationships: [
23
+ {
24
+ serviceName: utils_1.Modules.ORDER,
25
+ entity: "OrderClaim",
26
+ primaryKey: "id",
27
+ foreignKey: "claim_id",
28
+ alias: "order",
29
+ args: {
30
+ methodSuffix: "OrderClaims",
31
+ },
32
+ },
33
+ {
34
+ serviceName: utils_1.Modules.PAYMENT,
35
+ entity: "PaymentCollection",
36
+ primaryKey: "id",
37
+ foreignKey: "payment_collection_id",
38
+ alias: "payment_collection",
39
+ args: {
40
+ methodSuffix: "PaymentCollections",
41
+ },
42
+ },
43
+ ],
44
+ extends: [
45
+ {
46
+ serviceName: utils_1.Modules.ORDER,
47
+ fieldAlias: {
48
+ claim_payment_collections: {
49
+ path: "claim_payment_collections_link.payment_collection",
50
+ isList: true,
51
+ },
52
+ },
53
+ relationship: {
54
+ serviceName: utils_1.LINKS.OrderClaimPaymentCollection,
55
+ primaryKey: "claim_id",
56
+ foreignKey: "id",
57
+ alias: "claim_payment_collections_link",
58
+ },
59
+ },
60
+ {
61
+ serviceName: utils_1.Modules.PAYMENT,
62
+ fieldAlias: {
63
+ claim: "order_claim_link.order",
64
+ },
65
+ relationship: {
66
+ serviceName: utils_1.LINKS.OrderClaimPaymentCollection,
67
+ primaryKey: "payment_collection_id",
68
+ foreignKey: "id",
69
+ alias: "order_claim_link",
70
+ },
71
+ },
72
+ ],
73
+ };
74
+ //# sourceMappingURL=order-claim-payment-collection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"order-claim-payment-collection.js","sourceRoot":"","sources":["../../src/definitions/order-claim-payment-collection.ts"],"names":[],"mappings":";;;AACA,qDAA0D;AAE7C,QAAA,2BAA2B,GAAuB;IAC7D,WAAW,EAAE,aAAK,CAAC,2BAA2B;IAC9C,MAAM,EAAE,IAAI;IACZ,cAAc,EAAE;QACd,SAAS,EAAE,gCAAgC;QAC3C,QAAQ,EAAE,UAAU;KACrB;IACD,KAAK,EAAE;QACL;YACE,IAAI,EAAE;gBACJ,gCAAgC;gBAChC,iCAAiC;aAClC;YACD,MAAM,EAAE,iCAAiC;SAC1C;KACF;IACD,WAAW,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,uBAAuB,CAAC;IACxD,aAAa,EAAE;QACb;YACE,WAAW,EAAE,eAAO,CAAC,KAAK;YAC1B,MAAM,EAAE,YAAY;YACpB,UAAU,EAAE,IAAI;YAChB,UAAU,EAAE,UAAU;YACtB,KAAK,EAAE,OAAO;YACd,IAAI,EAAE;gBACJ,YAAY,EAAE,aAAa;aAC5B;SACF;QACD;YACE,WAAW,EAAE,eAAO,CAAC,OAAO;YAC5B,MAAM,EAAE,mBAAmB;YAC3B,UAAU,EAAE,IAAI;YAChB,UAAU,EAAE,uBAAuB;YACnC,KAAK,EAAE,oBAAoB;YAC3B,IAAI,EAAE;gBACJ,YAAY,EAAE,oBAAoB;aACnC;SACF;KACF;IACD,OAAO,EAAE;QACP;YACE,WAAW,EAAE,eAAO,CAAC,KAAK;YAC1B,UAAU,EAAE;gBACV,yBAAyB,EAAE;oBACzB,IAAI,EAAE,mDAAmD;oBACzD,MAAM,EAAE,IAAI;iBACb;aACF;YACD,YAAY,EAAE;gBACZ,WAAW,EAAE,aAAK,CAAC,2BAA2B;gBAC9C,UAAU,EAAE,UAAU;gBACtB,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,gCAAgC;aACxC;SACF;QACD;YACE,WAAW,EAAE,eAAO,CAAC,OAAO;YAC5B,UAAU,EAAE;gBACV,KAAK,EAAE,wBAAwB;aAChC;YACD,YAAY,EAAE;gBACZ,WAAW,EAAE,aAAK,CAAC,2BAA2B;gBAC9C,UAAU,EAAE,uBAAuB;gBACnC,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,kBAAkB;aAC1B;SACF;KACF;CACF,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { ModuleJoinerConfig } from "@medusajs/framework/types";
2
+ export declare const OrderExchangePaymentCollection: ModuleJoinerConfig;
3
+ //# sourceMappingURL=order-exchange-payment-collection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"order-exchange-payment-collection.d.ts","sourceRoot":"","sources":["../../src/definitions/order-exchange-payment-collection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAG9D,eAAO,MAAM,8BAA8B,EAAE,kBAoE5C,CAAA"}