@medusajs/order 0.1.3-snapshot-20240718073308 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (331) hide show
  1. package/dist/index.d.ts +8 -6
  2. package/dist/index.js +26 -4
  3. package/dist/index.js.map +1 -1
  4. package/dist/joiner-config.d.ts +5 -0
  5. package/dist/joiner-config.js +36 -0
  6. package/dist/joiner-config.js.map +1 -0
  7. package/dist/migrations/Migration20240219102530.d.ts +0 -1
  8. package/dist/migrations/Migration20240219102530.js +4 -38
  9. package/dist/migrations/Migration20240219102530.js.map +1 -1
  10. package/dist/models/address.d.ts +1 -2
  11. package/dist/models/adjustment-line.d.ts +1 -3
  12. package/dist/models/adjustment-line.js +0 -5
  13. package/dist/models/adjustment-line.js.map +1 -1
  14. package/dist/models/index.d.ts +0 -9
  15. package/dist/models/index.js +1 -17
  16. package/dist/models/index.js.map +1 -1
  17. package/dist/models/line-item-adjustment.d.ts +1 -3
  18. package/dist/models/line-item-adjustment.js +3 -3
  19. package/dist/models/line-item-adjustment.js.map +1 -1
  20. package/dist/models/line-item-tax-line.d.ts +1 -3
  21. package/dist/models/line-item-tax-line.js +3 -3
  22. package/dist/models/line-item-tax-line.js.map +1 -1
  23. package/dist/models/line-item.d.ts +1 -3
  24. package/dist/models/line-item.js +4 -18
  25. package/dist/models/line-item.js.map +1 -1
  26. package/dist/models/order-change-action.d.ts +4 -15
  27. package/dist/models/order-change-action.js +7 -102
  28. package/dist/models/order-change-action.js.map +1 -1
  29. package/dist/models/order-change.d.ts +5 -17
  30. package/dist/models/order-change.js +4 -109
  31. package/dist/models/order-change.js.map +1 -1
  32. package/dist/models/order-item.d.ts +4 -5
  33. package/dist/models/order-item.js +13 -13
  34. package/dist/models/order-item.js.map +1 -1
  35. package/dist/models/order-shipping-method.d.ts +4 -14
  36. package/dist/models/order-shipping-method.js +13 -89
  37. package/dist/models/order-shipping-method.js.map +1 -1
  38. package/dist/models/order-summary.d.ts +2 -6
  39. package/dist/models/order-summary.js +6 -9
  40. package/dist/models/order-summary.js.map +1 -1
  41. package/dist/models/order.d.ts +4 -6
  42. package/dist/models/order.js +1 -11
  43. package/dist/models/order.js.map +1 -1
  44. package/dist/models/shipping-method-adjustment.d.ts +1 -3
  45. package/dist/models/shipping-method-adjustment.js +3 -3
  46. package/dist/models/shipping-method-adjustment.js.map +1 -1
  47. package/dist/models/shipping-method-tax-line.d.ts +1 -3
  48. package/dist/models/shipping-method-tax-line.js +3 -3
  49. package/dist/models/shipping-method-tax-line.js.map +1 -1
  50. package/dist/models/shipping-method.d.ts +0 -2
  51. package/dist/models/shipping-method.js +4 -17
  52. package/dist/models/shipping-method.js.map +1 -1
  53. package/dist/models/tax-line.d.ts +0 -2
  54. package/dist/models/tax-line.js +0 -7
  55. package/dist/models/tax-line.js.map +1 -1
  56. package/dist/models/transaction.d.ts +3 -15
  57. package/dist/models/transaction.js +4 -109
  58. package/dist/models/transaction.js.map +1 -1
  59. package/dist/module-definition.d.ts +2 -0
  60. package/dist/module-definition.js +59 -0
  61. package/dist/module-definition.js.map +1 -0
  62. package/dist/repositories/index.d.ts +1 -4
  63. package/dist/repositories/index.js +16 -7
  64. package/dist/repositories/index.js.map +1 -1
  65. package/dist/repositories/order.d.ts +3 -1
  66. package/dist/repositories/order.js +85 -2
  67. package/dist/repositories/order.js.map +1 -1
  68. package/dist/scripts/bin/run-seed.d.ts +3 -0
  69. package/dist/scripts/bin/run-seed.js +49 -0
  70. package/dist/scripts/bin/run-seed.js.map +1 -0
  71. package/dist/services/index.d.ts +1 -1
  72. package/dist/services/index.js +3 -1
  73. package/dist/services/index.js.map +1 -1
  74. package/dist/services/order-change-service.d.ts +15 -0
  75. package/dist/services/order-change-service.js +96 -0
  76. package/dist/services/order-change-service.js.map +1 -0
  77. package/dist/services/order-module-service.d.ts +67 -138
  78. package/dist/services/order-module-service.js +240 -990
  79. package/dist/services/order-module-service.js.map +1 -1
  80. package/dist/services/order-service.d.ts +4 -5
  81. package/dist/services/order-service.js +1 -1
  82. package/dist/services/order-service.js.map +1 -1
  83. package/dist/types/address.d.ts +0 -1
  84. package/dist/types/index.d.ts +1 -3
  85. package/dist/types/index.js +0 -1
  86. package/dist/types/index.js.map +1 -1
  87. package/dist/types/line-item-adjustment.d.ts +0 -1
  88. package/dist/types/line-item-tax-line.d.ts +0 -1
  89. package/dist/types/line-item.d.ts +0 -1
  90. package/dist/types/order-detail.d.ts +1 -2
  91. package/dist/types/order.d.ts +2 -3
  92. package/dist/types/shipping-method-adjustment.d.ts +0 -1
  93. package/dist/types/shipping-method-tax-line.d.ts +0 -1
  94. package/dist/types/shipping-method.d.ts +0 -4
  95. package/dist/types/tax-line.d.ts +0 -1
  96. package/dist/types/transaction.d.ts +0 -1
  97. package/dist/types/utils/index.d.ts +11 -43
  98. package/dist/types/utils/index.js.map +1 -1
  99. package/dist/utils/action-key.d.ts +13 -0
  100. package/dist/utils/action-key.js +18 -0
  101. package/dist/utils/action-key.js.map +1 -0
  102. package/dist/utils/actions/cancel-return.d.ts +0 -1
  103. package/dist/utils/actions/cancel-return.js +6 -7
  104. package/dist/utils/actions/cancel-return.js.map +1 -1
  105. package/dist/utils/actions/cancel.d.ts +0 -1
  106. package/dist/utils/actions/cancel.js +2 -2
  107. package/dist/utils/actions/cancel.js.map +1 -1
  108. package/dist/utils/actions/fulfill-item.d.ts +0 -1
  109. package/dist/utils/actions/fulfill-item.js +6 -7
  110. package/dist/utils/actions/fulfill-item.js.map +1 -1
  111. package/dist/utils/actions/index.d.ts +0 -4
  112. package/dist/utils/actions/index.js +0 -3
  113. package/dist/utils/actions/index.js.map +1 -1
  114. package/dist/utils/actions/item-add.d.ts +0 -1
  115. package/dist/utils/actions/item-add.js +14 -17
  116. package/dist/utils/actions/item-add.js.map +1 -1
  117. package/dist/utils/actions/item-remove.d.ts +0 -1
  118. package/dist/utils/actions/item-remove.js +10 -11
  119. package/dist/utils/actions/item-remove.js.map +1 -1
  120. package/dist/utils/actions/receive-damaged-return-item.d.ts +0 -1
  121. package/dist/utils/actions/receive-damaged-return-item.js +7 -8
  122. package/dist/utils/actions/receive-damaged-return-item.js.map +1 -1
  123. package/dist/utils/actions/receive-return-item.d.ts +0 -1
  124. package/dist/utils/actions/receive-return-item.js +7 -8
  125. package/dist/utils/actions/receive-return-item.js.map +1 -1
  126. package/dist/utils/actions/return-item.d.ts +0 -1
  127. package/dist/utils/actions/return-item.js +8 -9
  128. package/dist/utils/actions/return-item.js.map +1 -1
  129. package/dist/utils/actions/ship-item.d.ts +0 -1
  130. package/dist/utils/actions/ship-item.js +6 -7
  131. package/dist/utils/actions/ship-item.js.map +1 -1
  132. package/dist/utils/actions/shipping-add.d.ts +0 -1
  133. package/dist/utils/actions/shipping-add.js +7 -16
  134. package/dist/utils/actions/shipping-add.js.map +1 -1
  135. package/dist/utils/actions/write-off-item.d.ts +0 -1
  136. package/dist/utils/actions/write-off-item.js +6 -7
  137. package/dist/utils/actions/write-off-item.js.map +1 -1
  138. package/dist/utils/calculate-order-change.d.ts +2 -11
  139. package/dist/utils/calculate-order-change.js +70 -68
  140. package/dist/utils/calculate-order-change.js.map +1 -1
  141. package/dist/utils/index.d.ts +1 -4
  142. package/dist/utils/index.js +1 -3
  143. package/dist/utils/index.js.map +1 -1
  144. package/dist/utils/transform-order.d.ts +2 -4
  145. package/dist/utils/transform-order.js +17 -131
  146. package/dist/utils/transform-order.js.map +1 -1
  147. package/package.json +14 -8
  148. package/dist/index.d.ts.map +0 -1
  149. package/dist/migrations/Migration20240219102530.d.ts.map +0 -1
  150. package/dist/migrations/Migration20240604100512.d.ts +0 -5
  151. package/dist/migrations/Migration20240604100512.d.ts.map +0 -1
  152. package/dist/migrations/Migration20240604100512.js +0 -364
  153. package/dist/migrations/Migration20240604100512.js.map +0 -1
  154. package/dist/migrations/Migration20240715102100.d.ts +0 -5
  155. package/dist/migrations/Migration20240715102100.d.ts.map +0 -1
  156. package/dist/migrations/Migration20240715102100.js +0 -15
  157. package/dist/migrations/Migration20240715102100.js.map +0 -1
  158. package/dist/migrations/Migration20240715174100.d.ts +0 -5
  159. package/dist/migrations/Migration20240715174100.d.ts.map +0 -1
  160. package/dist/migrations/Migration20240715174100.js +0 -21
  161. package/dist/migrations/Migration20240715174100.js.map +0 -1
  162. package/dist/migrations/Migration20240716081800.d.ts +0 -5
  163. package/dist/migrations/Migration20240716081800.d.ts.map +0 -1
  164. package/dist/migrations/Migration20240716081800.js +0 -67
  165. package/dist/migrations/Migration20240716081800.js.map +0 -1
  166. package/dist/models/address.d.ts.map +0 -1
  167. package/dist/models/adjustment-line.d.ts.map +0 -1
  168. package/dist/models/claim-item-image.d.ts +0 -19
  169. package/dist/models/claim-item-image.d.ts.map +0 -1
  170. package/dist/models/claim-item-image.js +0 -109
  171. package/dist/models/claim-item-image.js.map +0 -1
  172. package/dist/models/claim-item.d.ts +0 -29
  173. package/dist/models/claim-item.d.ts.map +0 -1
  174. package/dist/models/claim-item.js +0 -156
  175. package/dist/models/claim-item.js.map +0 -1
  176. package/dist/models/claim.d.ts +0 -36
  177. package/dist/models/claim.d.ts.map +0 -1
  178. package/dist/models/claim.js +0 -195
  179. package/dist/models/claim.js.map +0 -1
  180. package/dist/models/exchange-item.d.ts +0 -24
  181. package/dist/models/exchange-item.d.ts.map +0 -1
  182. package/dist/models/exchange-item.js +0 -138
  183. package/dist/models/exchange-item.js.map +0 -1
  184. package/dist/models/exchange.d.ts +0 -34
  185. package/dist/models/exchange.d.ts.map +0 -1
  186. package/dist/models/exchange.js +0 -188
  187. package/dist/models/exchange.js.map +0 -1
  188. package/dist/models/index.d.ts.map +0 -1
  189. package/dist/models/line-item-adjustment.d.ts.map +0 -1
  190. package/dist/models/line-item-tax-line.d.ts.map +0 -1
  191. package/dist/models/line-item.d.ts.map +0 -1
  192. package/dist/models/order-change-action.d.ts.map +0 -1
  193. package/dist/models/order-change.d.ts.map +0 -1
  194. package/dist/models/order-item.d.ts.map +0 -1
  195. package/dist/models/order-shipping-method.d.ts.map +0 -1
  196. package/dist/models/order-summary.d.ts.map +0 -1
  197. package/dist/models/order.d.ts.map +0 -1
  198. package/dist/models/return-item.d.ts +0 -29
  199. package/dist/models/return-item.d.ts.map +0 -1
  200. package/dist/models/return-item.js +0 -170
  201. package/dist/models/return-item.js.map +0 -1
  202. package/dist/models/return-reason.d.ts +0 -21
  203. package/dist/models/return-reason.d.ts.map +0 -1
  204. package/dist/models/return-reason.js +0 -120
  205. package/dist/models/return-reason.js.map +0 -1
  206. package/dist/models/return.d.ts +0 -39
  207. package/dist/models/return.d.ts.map +0 -1
  208. package/dist/models/return.js +0 -216
  209. package/dist/models/return.js.map +0 -1
  210. package/dist/models/shipping-method-adjustment.d.ts.map +0 -1
  211. package/dist/models/shipping-method-tax-line.d.ts.map +0 -1
  212. package/dist/models/shipping-method.d.ts.map +0 -1
  213. package/dist/models/tax-line.d.ts.map +0 -1
  214. package/dist/models/transaction.d.ts.map +0 -1
  215. package/dist/repositories/claim.d.ts +0 -9
  216. package/dist/repositories/claim.d.ts.map +0 -1
  217. package/dist/repositories/claim.js +0 -11
  218. package/dist/repositories/claim.js.map +0 -1
  219. package/dist/repositories/exchange.d.ts +0 -9
  220. package/dist/repositories/exchange.d.ts.map +0 -1
  221. package/dist/repositories/exchange.js +0 -11
  222. package/dist/repositories/exchange.js.map +0 -1
  223. package/dist/repositories/index.d.ts.map +0 -1
  224. package/dist/repositories/order.d.ts.map +0 -1
  225. package/dist/repositories/return.d.ts +0 -9
  226. package/dist/repositories/return.d.ts.map +0 -1
  227. package/dist/repositories/return.js +0 -11
  228. package/dist/repositories/return.js.map +0 -1
  229. package/dist/services/actions/cancel-claim.d.ts +0 -3
  230. package/dist/services/actions/cancel-claim.d.ts.map +0 -1
  231. package/dist/services/actions/cancel-claim.js +0 -107
  232. package/dist/services/actions/cancel-claim.js.map +0 -1
  233. package/dist/services/actions/cancel-exchange.d.ts +0 -3
  234. package/dist/services/actions/cancel-exchange.d.ts.map +0 -1
  235. package/dist/services/actions/cancel-exchange.js +0 -92
  236. package/dist/services/actions/cancel-exchange.js.map +0 -1
  237. package/dist/services/actions/cancel-fulfillment.d.ts +0 -3
  238. package/dist/services/actions/cancel-fulfillment.d.ts.map +0 -1
  239. package/dist/services/actions/cancel-fulfillment.js +0 -32
  240. package/dist/services/actions/cancel-fulfillment.js.map +0 -1
  241. package/dist/services/actions/cancel-return.d.ts +0 -3
  242. package/dist/services/actions/cancel-return.d.ts.map +0 -1
  243. package/dist/services/actions/cancel-return.js +0 -72
  244. package/dist/services/actions/cancel-return.js.map +0 -1
  245. package/dist/services/actions/create-claim.d.ts +0 -3
  246. package/dist/services/actions/create-claim.d.ts.map +0 -1
  247. package/dist/services/actions/create-claim.js +0 -228
  248. package/dist/services/actions/create-claim.js.map +0 -1
  249. package/dist/services/actions/create-exchange.d.ts +0 -3
  250. package/dist/services/actions/create-exchange.d.ts.map +0 -1
  251. package/dist/services/actions/create-exchange.js +0 -193
  252. package/dist/services/actions/create-exchange.js.map +0 -1
  253. package/dist/services/actions/create-return.d.ts +0 -3
  254. package/dist/services/actions/create-return.d.ts.map +0 -1
  255. package/dist/services/actions/create-return.js +0 -102
  256. package/dist/services/actions/create-return.js.map +0 -1
  257. package/dist/services/actions/index.d.ts +0 -11
  258. package/dist/services/actions/index.d.ts.map +0 -1
  259. package/dist/services/actions/index.js +0 -27
  260. package/dist/services/actions/index.js.map +0 -1
  261. package/dist/services/actions/receive-return.d.ts +0 -3
  262. package/dist/services/actions/receive-return.d.ts.map +0 -1
  263. package/dist/services/actions/receive-return.js +0 -73
  264. package/dist/services/actions/receive-return.js.map +0 -1
  265. package/dist/services/actions/register-fulfillment.d.ts +0 -3
  266. package/dist/services/actions/register-fulfillment.d.ts.map +0 -1
  267. package/dist/services/actions/register-fulfillment.js +0 -30
  268. package/dist/services/actions/register-fulfillment.js.map +0 -1
  269. package/dist/services/actions/register-shipment.d.ts +0 -3
  270. package/dist/services/actions/register-shipment.d.ts.map +0 -1
  271. package/dist/services/actions/register-shipment.js +0 -38
  272. package/dist/services/actions/register-shipment.js.map +0 -1
  273. package/dist/services/index.d.ts.map +0 -1
  274. package/dist/services/order-module-service.d.ts.map +0 -1
  275. package/dist/services/order-service.d.ts.map +0 -1
  276. package/dist/types/address.d.ts.map +0 -1
  277. package/dist/types/index.d.ts.map +0 -1
  278. package/dist/types/line-item-adjustment.d.ts.map +0 -1
  279. package/dist/types/line-item-tax-line.d.ts.map +0 -1
  280. package/dist/types/line-item.d.ts.map +0 -1
  281. package/dist/types/order-change.d.ts +0 -6
  282. package/dist/types/order-change.d.ts.map +0 -1
  283. package/dist/types/order-change.js +0 -3
  284. package/dist/types/order-change.js.map +0 -1
  285. package/dist/types/order-detail.d.ts.map +0 -1
  286. package/dist/types/order.d.ts.map +0 -1
  287. package/dist/types/shipping-method-adjustment.d.ts.map +0 -1
  288. package/dist/types/shipping-method-tax-line.d.ts.map +0 -1
  289. package/dist/types/shipping-method.d.ts.map +0 -1
  290. package/dist/types/tax-line.d.ts.map +0 -1
  291. package/dist/types/transaction.d.ts.map +0 -1
  292. package/dist/types/utils/index.d.ts.map +0 -1
  293. package/dist/utils/actions/cancel-item-fulfillment.d.ts +0 -2
  294. package/dist/utils/actions/cancel-item-fulfillment.d.ts.map +0 -1
  295. package/dist/utils/actions/cancel-item-fulfillment.js +0 -39
  296. package/dist/utils/actions/cancel-item-fulfillment.js.map +0 -1
  297. package/dist/utils/actions/cancel-return.d.ts.map +0 -1
  298. package/dist/utils/actions/cancel.d.ts.map +0 -1
  299. package/dist/utils/actions/fulfill-item.d.ts.map +0 -1
  300. package/dist/utils/actions/index.d.ts.map +0 -1
  301. package/dist/utils/actions/item-add.d.ts.map +0 -1
  302. package/dist/utils/actions/item-remove.d.ts.map +0 -1
  303. package/dist/utils/actions/receive-damaged-return-item.d.ts.map +0 -1
  304. package/dist/utils/actions/receive-return-item.d.ts.map +0 -1
  305. package/dist/utils/actions/reinstate-item.d.ts +0 -2
  306. package/dist/utils/actions/reinstate-item.d.ts.map +0 -1
  307. package/dist/utils/actions/reinstate-item.js +0 -37
  308. package/dist/utils/actions/reinstate-item.js.map +0 -1
  309. package/dist/utils/actions/return-item.d.ts.map +0 -1
  310. package/dist/utils/actions/ship-item.d.ts.map +0 -1
  311. package/dist/utils/actions/shipping-add.d.ts.map +0 -1
  312. package/dist/utils/actions/shipping-remove.d.ts +0 -2
  313. package/dist/utils/actions/shipping-remove.d.ts.map +0 -1
  314. package/dist/utils/actions/shipping-remove.js +0 -41
  315. package/dist/utils/actions/shipping-remove.js.map +0 -1
  316. package/dist/utils/actions/write-off-item.d.ts.map +0 -1
  317. package/dist/utils/apply-order-changes.d.ts +0 -18
  318. package/dist/utils/apply-order-changes.d.ts.map +0 -1
  319. package/dist/utils/apply-order-changes.js +0 -95
  320. package/dist/utils/apply-order-changes.js.map +0 -1
  321. package/dist/utils/base-repository-find.d.ts +0 -3
  322. package/dist/utils/base-repository-find.d.ts.map +0 -1
  323. package/dist/utils/base-repository-find.js +0 -142
  324. package/dist/utils/base-repository-find.js.map +0 -1
  325. package/dist/utils/calculate-order-change.d.ts.map +0 -1
  326. package/dist/utils/index.d.ts.map +0 -1
  327. package/dist/utils/set-action-reference.d.ts +0 -3
  328. package/dist/utils/set-action-reference.d.ts.map +0 -1
  329. package/dist/utils/set-action-reference.js +0 -17
  330. package/dist/utils/set-action-reference.js.map +0 -1
  331. package/dist/utils/transform-order.d.ts.map +0 -1
@@ -1,21 +0,0 @@
1
- import { DAL } from "@medusajs/types";
2
- import { OptionalProps, Rel } from "@mikro-orm/core";
3
- type OptionalOrderProps = "parent_return_reason" | DAL.ModelDateColumns;
4
- export default class ReturnReason {
5
- [OptionalProps]?: OptionalOrderProps;
6
- id: string;
7
- value: string;
8
- label: string;
9
- description: string | null;
10
- parent_return_reason_id?: string | null;
11
- parent_return_reason?: Rel<ReturnReason> | null;
12
- return_reason_children: Rel<ReturnReason>[];
13
- metadata: Record<string, unknown> | null;
14
- created_at: Date;
15
- updated_at: Date;
16
- deleted_at: Date | null;
17
- onCreate(): void;
18
- onInit(): void;
19
- }
20
- export {};
21
- //# sourceMappingURL=return-reason.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"return-reason.d.ts","sourceRoot":"","sources":["../../src/models/return-reason.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAA;AAMrC,OAAO,EAQL,aAAa,EAGb,GAAG,EACJ,MAAM,iBAAiB,CAAA;AAoBxB,KAAK,kBAAkB,GAAG,sBAAsB,GAAG,GAAG,CAAC,gBAAgB,CAAA;AAIvE,MAAM,CAAC,OAAO,OAAO,YAAY;IAC/B,CAAC,aAAa,CAAC,CAAC,EAAE,kBAAkB,CAAA;IAGpC,EAAE,EAAE,MAAM,CAAA;IAIV,KAAK,EAAE,MAAM,CAAA;IAGb,KAAK,EAAE,MAAM,CAAA;IAGb,WAAW,EAAE,MAAM,GAAG,IAAI,CAAO;IAIjC,uBAAuB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAQvC,oBAAoB,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC,GAAG,IAAI,CAAA;IAO/C,sBAAsB,EAAE,GAAG,CAAC,YAAY,CAAC,EAAE,CAAA;IAG3C,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAO;IAO/C,UAAU,EAAE,IAAI,CAAA;IAQhB,UAAU,EAAE,IAAI,CAAA;IAIhB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAO;IAG9B,QAAQ;IAKR,MAAM;CAGP"}
@@ -1,120 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- const utils_1 = require("@medusajs/utils");
13
- const core_1 = require("@mikro-orm/core");
14
- const DeletedAtIndex = (0, utils_1.createPsqlIndexStatementHelper)({
15
- tableName: "return_reason",
16
- columns: "deleted_at",
17
- where: "deleted_at IS NOT NULL",
18
- });
19
- const ValueIndex = (0, utils_1.createPsqlIndexStatementHelper)({
20
- tableName: "return_reason",
21
- columns: "value",
22
- where: "deleted_at IS NOT NULL",
23
- });
24
- const ParentIndex = (0, utils_1.createPsqlIndexStatementHelper)({
25
- tableName: "return_reason",
26
- columns: "parent_return_reason_id",
27
- where: "deleted_at IS NOT NULL",
28
- });
29
- let ReturnReason = class ReturnReason {
30
- constructor() {
31
- this.description = null;
32
- this.metadata = null;
33
- this.deleted_at = null;
34
- }
35
- onCreate() {
36
- this.id = (0, utils_1.generateEntityId)(this.id, "rr");
37
- }
38
- onInit() {
39
- this.id = (0, utils_1.generateEntityId)(this.id, "rr");
40
- }
41
- };
42
- __decorate([
43
- (0, core_1.PrimaryKey)({ columnType: "text" }),
44
- __metadata("design:type", String)
45
- ], ReturnReason.prototype, "id", void 0);
46
- __decorate([
47
- (0, core_1.Property)({ columnType: "text" }),
48
- ValueIndex.MikroORMIndex(),
49
- __metadata("design:type", String)
50
- ], ReturnReason.prototype, "value", void 0);
51
- __decorate([
52
- (0, core_1.Property)({ columnType: "text" }),
53
- __metadata("design:type", String)
54
- ], ReturnReason.prototype, "label", void 0);
55
- __decorate([
56
- (0, core_1.Property)({ columnType: "text", nullable: true }),
57
- __metadata("design:type", Object)
58
- ], ReturnReason.prototype, "description", void 0);
59
- __decorate([
60
- (0, core_1.Property)({ columnType: "text", nullable: true }),
61
- ParentIndex.MikroORMIndex(),
62
- __metadata("design:type", Object)
63
- ], ReturnReason.prototype, "parent_return_reason_id", void 0);
64
- __decorate([
65
- (0, core_1.ManyToOne)({
66
- entity: () => ReturnReason,
67
- fieldName: "parent_return_reason_id",
68
- nullable: true,
69
- cascade: [core_1.Cascade.PERSIST],
70
- }),
71
- __metadata("design:type", Object)
72
- ], ReturnReason.prototype, "parent_return_reason", void 0);
73
- __decorate([
74
- (0, core_1.OneToMany)(() => ReturnReason, (return_reason) => return_reason.parent_return_reason, { cascade: [core_1.Cascade.PERSIST] }),
75
- __metadata("design:type", Array)
76
- ], ReturnReason.prototype, "return_reason_children", void 0);
77
- __decorate([
78
- (0, core_1.Property)({ columnType: "jsonb", nullable: true }),
79
- __metadata("design:type", Object)
80
- ], ReturnReason.prototype, "metadata", void 0);
81
- __decorate([
82
- (0, core_1.Property)({
83
- onCreate: () => new Date(),
84
- columnType: "timestamptz",
85
- defaultRaw: "now()",
86
- }),
87
- __metadata("design:type", Date)
88
- ], ReturnReason.prototype, "created_at", void 0);
89
- __decorate([
90
- (0, core_1.Property)({
91
- onCreate: () => new Date(),
92
- onUpdate: () => new Date(),
93
- columnType: "timestamptz",
94
- defaultRaw: "now()",
95
- }),
96
- __metadata("design:type", Date)
97
- ], ReturnReason.prototype, "updated_at", void 0);
98
- __decorate([
99
- (0, core_1.Property)({ columnType: "timestamptz", nullable: true }),
100
- DeletedAtIndex.MikroORMIndex(),
101
- __metadata("design:type", Object)
102
- ], ReturnReason.prototype, "deleted_at", void 0);
103
- __decorate([
104
- (0, core_1.BeforeCreate)(),
105
- __metadata("design:type", Function),
106
- __metadata("design:paramtypes", []),
107
- __metadata("design:returntype", void 0)
108
- ], ReturnReason.prototype, "onCreate", null);
109
- __decorate([
110
- (0, core_1.OnInit)(),
111
- __metadata("design:type", Function),
112
- __metadata("design:paramtypes", []),
113
- __metadata("design:returntype", void 0)
114
- ], ReturnReason.prototype, "onInit", null);
115
- ReturnReason = __decorate([
116
- (0, core_1.Entity)({ tableName: "return_reason" }),
117
- (0, core_1.Filter)(utils_1.DALUtils.mikroOrmSoftDeletableFilterOptions)
118
- ], ReturnReason);
119
- exports.default = ReturnReason;
120
- //# sourceMappingURL=return-reason.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"return-reason.js","sourceRoot":"","sources":["../../src/models/return-reason.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,2CAIwB;AACxB,0CAYwB;AAExB,MAAM,cAAc,GAAG,IAAA,sCAA8B,EAAC;IACpD,SAAS,EAAE,eAAe;IAC1B,OAAO,EAAE,YAAY;IACrB,KAAK,EAAE,wBAAwB;CAChC,CAAC,CAAA;AAEF,MAAM,UAAU,GAAG,IAAA,sCAA8B,EAAC;IAChD,SAAS,EAAE,eAAe;IAC1B,OAAO,EAAE,OAAO;IAChB,KAAK,EAAE,wBAAwB;CAChC,CAAC,CAAA;AAEF,MAAM,WAAW,GAAG,IAAA,sCAA8B,EAAC;IACjD,SAAS,EAAE,eAAe;IAC1B,OAAO,EAAE,yBAAyB;IAClC,KAAK,EAAE,wBAAwB;CAChC,CAAC,CAAA;AAMa,IAAM,YAAY,GAAlB,MAAM,YAAY;IAAlB;QAcb,gBAAW,GAAkB,IAAI,CAAA;QAsBjC,aAAQ,GAAmC,IAAI,CAAA;QAmB/C,eAAU,GAAgB,IAAI,CAAA;IAWhC,CAAC;IARC,QAAQ;QACN,IAAI,CAAC,EAAE,GAAG,IAAA,wBAAgB,EAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,CAAA;IAC3C,CAAC;IAGD,MAAM;QACJ,IAAI,CAAC,EAAE,GAAG,IAAA,wBAAgB,EAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,CAAA;IAC3C,CAAC;CACF,CAAA;AA9DC;IADC,IAAA,iBAAU,EAAC,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC;;wCACzB;AAIV;IAFC,IAAA,eAAQ,EAAC,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC;IAChC,UAAU,CAAC,aAAa,EA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EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACvD,cAAc,CAAC,aAAa,EAAE;;gDACD;AAG9B;IADC,IAAA,mBAAY,GAAE;;;;4CAGd;AAGD;IADC,IAAA,aAAM,GAAE;;;;0CAGR;AAjEkB,YAAY;IAFhC,IAAA,aAAM,EAAC,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;IACtC,IAAA,aAAM,EAAC,gBAAQ,CAAC,kCAAkC,CAAC;GAC/B,YAAY,CAkEhC;kBAlEoB,YAAY"}
@@ -1,39 +0,0 @@
1
- import { BigNumberRawValue, DAL } from "@medusajs/types";
2
- import { BigNumber, ReturnStatus } from "@medusajs/utils";
3
- import { Collection, OptionalProps, Rel } from "@mikro-orm/core";
4
- import { ReturnItem, Transaction } from ".";
5
- import Claim from "./claim";
6
- import Exchange from "./exchange";
7
- import Order from "./order";
8
- import OrderShippingMethod from "./order-shipping-method";
9
- type OptionalReturnProps = DAL.ModelDateColumns;
10
- export default class Return {
11
- [OptionalProps]?: OptionalReturnProps;
12
- id: string;
13
- order_id: string;
14
- order: Rel<Order>;
15
- exchange: Rel<Exchange>;
16
- exchange_id: string | null;
17
- claim: Rel<Claim>;
18
- claim_id: string | null;
19
- order_version: number;
20
- display_id: number;
21
- status: ReturnStatus;
22
- location_id: string | null;
23
- no_notification: boolean | null;
24
- refund_amount: BigNumber | number;
25
- raw_refund_amount: BigNumberRawValue;
26
- items: Collection<ReturnItem, object>;
27
- shipping_methods: Collection<OrderShippingMethod, object>;
28
- transactions: Collection<Transaction, object>;
29
- metadata: Record<string, unknown> | null;
30
- created_at: Date;
31
- updated_at: Date;
32
- deleted_at: Date | null;
33
- received_at: Date | null;
34
- canceled_at: Date | null;
35
- onCreate(): void;
36
- onInit(): void;
37
- }
38
- export {};
39
- //# sourceMappingURL=return.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"return.d.ts","sourceRoot":"","sources":["../../src/models/return.ts"],"names":[],"mappings":"AAAA,O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,GAAG,IAAI,CAAO;IAO/C,UAAU,EAAE,IAAI,CAAA;IAQhB,UAAU,EAAE,IAAI,CAAA;IAIhB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAO;IAG9B,WAAW,EAAE,IAAI,GAAG,IAAI,CAAO;IAG/B,WAAW,EAAE,IAAI,GAAG,IAAI,CAAO;IAG/B,QAAQ;IAKR,MAAM;CAGP"}
@@ -1,216 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- const utils_1 = require("@medusajs/utils");
16
- const core_1 = require("@mikro-orm/core");
17
- const _models_1 = require(".");
18
- const claim_1 = __importDefault(require("./claim"));
19
- const exchange_1 = __importDefault(require("./exchange"));
20
- const order_1 = __importDefault(require("./order"));
21
- const order_shipping_method_1 = __importDefault(require("./order-shipping-method"));
22
- const DisplayIdIndex = (0, utils_1.createPsqlIndexStatementHelper)({
23
- tableName: "return",
24
- columns: "display_id",
25
- where: "deleted_at IS NOT NULL",
26
- });
27
- const ReturnDeletedAtIndex = (0, utils_1.createPsqlIndexStatementHelper)({
28
- tableName: "return",
29
- columns: "deleted_at",
30
- where: "deleted_at IS NOT NULL",
31
- });
32
- const OrderIdIndex = (0, utils_1.createPsqlIndexStatementHelper)({
33
- tableName: "return",
34
- columns: ["order_id"],
35
- where: "deleted_at IS NOT NULL",
36
- });
37
- const ExchangeIdIndex = (0, utils_1.createPsqlIndexStatementHelper)({
38
- tableName: "return",
39
- columns: ["exchange_id"],
40
- where: "exchange_id IS NOT NULL AND deleted_at IS NOT NULL",
41
- });
42
- const ClaimIdIndex = (0, utils_1.createPsqlIndexStatementHelper)({
43
- tableName: "return",
44
- columns: ["claim_id"],
45
- where: "claim_id IS NOT NULL AND deleted_at IS NOT NULL",
46
- });
47
- let Return = class Return {
48
- constructor() {
49
- this.exchange_id = null;
50
- this.claim_id = null;
51
- this.status = utils_1.ReturnStatus.REQUESTED;
52
- this.location_id = null;
53
- this.no_notification = null;
54
- this.items = new core_1.Collection(this);
55
- this.shipping_methods = new core_1.Collection(this);
56
- this.transactions = new core_1.Collection(this);
57
- this.metadata = null;
58
- this.deleted_at = null;
59
- this.received_at = null;
60
- this.canceled_at = null;
61
- }
62
- onCreate() {
63
- this.id = (0, utils_1.generateEntityId)(this.id, "return");
64
- }
65
- onInit() {
66
- this.id = (0, utils_1.generateEntityId)(this.id, "return");
67
- }
68
- };
69
- __decorate([
70
- (0, core_1.PrimaryKey)({ columnType: "text" }),
71
- __metadata("design:type", String)
72
- ], Return.prototype, "id", void 0);
73
- __decorate([
74
- (0, core_1.ManyToOne)({
75
- entity: () => order_1.default,
76
- mapToPk: true,
77
- fieldName: "order_id",
78
- columnType: "text",
79
- }),
80
- OrderIdIndex.MikroORMIndex(),
81
- __metadata("design:type", String)
82
- ], Return.prototype, "order_id", void 0);
83
- __decorate([
84
- (0, core_1.ManyToOne)(() => order_1.default, {
85
- persist: false,
86
- }),
87
- __metadata("design:type", Object)
88
- ], Return.prototype, "order", void 0);
89
- __decorate([
90
- (0, core_1.OneToOne)({
91
- entity: () => exchange_1.default,
92
- fieldName: "exchange_id",
93
- nullable: true,
94
- }),
95
- __metadata("design:type", Object)
96
- ], Return.prototype, "exchange", void 0);
97
- __decorate([
98
- (0, core_1.Property)({ columnType: "text", nullable: true }),
99
- ExchangeIdIndex.MikroORMIndex(),
100
- __metadata("design:type", Object)
101
- ], Return.prototype, "exchange_id", void 0);
102
- __decorate([
103
- (0, core_1.OneToOne)({
104
- entity: () => claim_1.default,
105
- fieldName: "claim_id",
106
- nullable: true,
107
- }),
108
- __metadata("design:type", Object)
109
- ], Return.prototype, "claim", void 0);
110
- __decorate([
111
- (0, core_1.Property)({ columnType: "text", nullable: true }),
112
- ClaimIdIndex.MikroORMIndex(),
113
- __metadata("design:type", Object)
114
- ], Return.prototype, "claim_id", void 0);
115
- __decorate([
116
- (0, core_1.Property)({
117
- columnType: "integer",
118
- }),
119
- __metadata("design:type", Number)
120
- ], Return.prototype, "order_version", void 0);
121
- __decorate([
122
- (0, core_1.Property)({ autoincrement: true, primary: false }),
123
- DisplayIdIndex.MikroORMIndex(),
124
- __metadata("design:type", Number)
125
- ], Return.prototype, "display_id", void 0);
126
- __decorate([
127
- (0, core_1.Enum)({ items: () => utils_1.ReturnStatus, default: utils_1.ReturnStatus.REQUESTED }),
128
- __metadata("design:type", String)
129
- ], Return.prototype, "status", void 0);
130
- __decorate([
131
- (0, core_1.Property)({ columnType: "text", nullable: true }),
132
- __metadata("design:type", Object)
133
- ], Return.prototype, "location_id", void 0);
134
- __decorate([
135
- (0, core_1.Property)({ columnType: "boolean", nullable: true }),
136
- __metadata("design:type", Object)
137
- ], Return.prototype, "no_notification", void 0);
138
- __decorate([
139
- (0, utils_1.MikroOrmBigNumberProperty)({
140
- nullable: true,
141
- }),
142
- __metadata("design:type", Object)
143
- ], Return.prototype, "refund_amount", void 0);
144
- __decorate([
145
- (0, core_1.Property)({ columnType: "jsonb", nullable: true }),
146
- __metadata("design:type", Object)
147
- ], Return.prototype, "raw_refund_amount", void 0);
148
- __decorate([
149
- (0, core_1.OneToMany)(() => _models_1.ReturnItem, (itemDetail) => itemDetail.return, {
150
- cascade: [core_1.Cascade.PERSIST],
151
- }),
152
- __metadata("design:type", Object)
153
- ], Return.prototype, "items", void 0);
154
- __decorate([
155
- (0, core_1.OneToMany)(() => order_shipping_method_1.default, (shippingMethod) => shippingMethod.return, {
156
- cascade: [core_1.Cascade.PERSIST],
157
- }),
158
- __metadata("design:type", Object)
159
- ], Return.prototype, "shipping_methods", void 0);
160
- __decorate([
161
- (0, core_1.OneToMany)(() => _models_1.Transaction, (transaction) => transaction.return, {
162
- cascade: [core_1.Cascade.PERSIST],
163
- }),
164
- __metadata("design:type", Object)
165
- ], Return.prototype, "transactions", void 0);
166
- __decorate([
167
- (0, core_1.Property)({ columnType: "jsonb", nullable: true }),
168
- __metadata("design:type", Object)
169
- ], Return.prototype, "metadata", void 0);
170
- __decorate([
171
- (0, core_1.Property)({
172
- onCreate: () => new Date(),
173
- columnType: "timestamptz",
174
- defaultRaw: "now()",
175
- }),
176
- __metadata("design:type", Date)
177
- ], Return.prototype, "created_at", void 0);
178
- __decorate([
179
- (0, core_1.Property)({
180
- onCreate: () => new Date(),
181
- onUpdate: () => new Date(),
182
- columnType: "timestamptz",
183
- defaultRaw: "now()",
184
- }),
185
- __metadata("design:type", Date)
186
- ], Return.prototype, "updated_at", void 0);
187
- __decorate([
188
- (0, core_1.Property)({ columnType: "timestamptz", nullable: true }),
189
- ReturnDeletedAtIndex.MikroORMIndex(),
190
- __metadata("design:type", Object)
191
- ], Return.prototype, "deleted_at", void 0);
192
- __decorate([
193
- (0, core_1.Property)({ columnType: "timestamptz", nullable: true }),
194
- __metadata("design:type", Object)
195
- ], Return.prototype, "received_at", void 0);
196
- __decorate([
197
- (0, core_1.Property)({ columnType: "timestamptz", nullable: true }),
198
- __metadata("design:type", Object)
199
- ], Return.prototype, "canceled_at", void 0);
200
- __decorate([
201
- (0, core_1.BeforeCreate)(),
202
- __metadata("design:type", Function),
203
- __metadata("design:paramtypes", []),
204
- __metadata("design:returntype", void 0)
205
- ], Return.prototype, "onCreate", null);
206
- __decorate([
207
- (0, core_1.OnInit)(),
208
- __metadata("design:type", Function),
209
- __metadata("design:paramtypes", []),
210
- __metadata("design:returntype", void 0)
211
- ], Return.prototype, "onInit", null);
212
- Return = __decorate([
213
- (0, core_1.Entity)({ tableName: "return" })
214
- ], Return);
215
- exports.default = Return;
216
- //# sourceMappingURL=return.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"return.js","sourceRoot":"","sources":["../../src/models/return.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,2CAMwB;AACxB,0CAcwB;AACxB,qCAAiD;AACjD,oDAA2B;AAC3B,0DAAiC;AACjC,oDAA2B;AAC3B,oFAAyD;AAIzD,MAAM,cAAc,GAAG,IAAA,sCAA8B,EAAC;IACpD,SAAS,EAAE,QAAQ;IACnB,OAAO,EAAE,YAAY;IACrB,KAAK,EAAE,wBAAwB;CAChC,CAAC,CAAA;AAEF,MAAM,oBAAoB,GAAG,IAAA,sCAA8B,EAAC;IAC1D,SAAS,EAAE,QAAQ;IACnB,OAAO,EAAE,YAAY;IACrB,KAAK,EAAE,wBAAwB;CAChC,CAAC,CAAA;AAEF,MAAM,YAAY,GAAG,IAAA,sCAA8B,EAAC;IAClD,SAAS,EAAE,QAAQ;IACnB,OAAO,EAAE,CAAC,UAAU,CAAC;IACrB,KAAK,EAAE,wBAAwB;CAChC,CAAC,CAAA;AAEF,MAAM,eAAe,GAAG,IAAA,sCAA8B,EAAC;IACrD,SAAS,EAAE,QAAQ;IACnB,OAAO,EAAE,CAAC,aAAa,CAAC;IACxB,KAAK,EAAE,oDAAoD;CAC5D,CAAC,CAAA;AAEF,MAAM,YAAY,GAAG,IAAA,sCAA8B,EAAC;IAClD,SAAS,EAAE,QAAQ;IACnB,OAAO,EAAE,CAAC,UAAU,CAAC;IACrB,KAAK,EAAE,iDAAiD;CACzD,CAAC,CAAA;AAGa,IAAM,MAAM,GAAZ,MAAM,MAAM;IAAZ;QA6Bb,gBAAW,GAAkB,IAAI,CAAA;QAWjC,aAAQ,GAAkB,IAAI,CAAA;QAY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CACzB;AAG/B;IADC,IAAA,mBAAY,GAAE;;;;sCAGd;AAGD;IADC,IAAA,aAAM,GAAE;;;;oCAGR;AA3HkB,MAAM;IAD1B,IAAA,aAAM,EAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC;GACX,MAAM,CA4H1B;kBA5HoB,MAAM"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"shipping-method-adjustment.d.ts","sourceRoot":"","sources":["../../src/models/shipping-method-adjustment.ts"],"names":[],"mappings":"AAIA,OAAO,EAA2C,GAAG,EAAE,MAAM,iBAAiB,CAAA;AAC9E,OAAO,cAAc,MAAM,mBAAmB,CAAA;AAC9C,OAAO,cAAc,MAAM,mBAAmB,CAAA;AAQ9C,MAAM,CAAC,OAAO,OAAO,wBAAyB,SAAQ,cAAc;IAIlE,eAAe,EAAE,GAAG,CAAC,cAAc,CAAC,CAAA;IAUpC,kBAAkB,EAAE,MAAM,CAAA;IAG1B,QAAQ;IAMR,MAAM;CAIP"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"shipping-method-tax-line.d.ts","sourceRoot":"","sources":["../../src/models/shipping-method-tax-line.ts"],"names":[],"mappings":"AAIA,OAAO,EAA2C,GAAG,EAAE,MAAM,iBAAiB,CAAA;AAC9E,OAAO,cAAc,MAAM,mBAAmB,CAAA;AAC9C,OAAO,OAAO,MAAM,YAAY,CAAA;AAQhC,MAAM,CAAC,OAAO,OAAO,qBAAsB,SAAQ,OAAO;IAIxD,eAAe,EAAE,GAAG,CAAC,cAAc,CAAC,CAAA;IAUpC,kBAAkB,EAAE,MAAM,CAAA;IAG1B,QAAQ;IAMR,MAAM;CAIP"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"shipping-method.d.ts","sourceRoot":"","sources":["../../src/models/shipping-method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACnD,OAAO,EACL,SAAS,EAKV,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAGL,U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AA;IAI7B,aAAa,EAAE,MAAM,CAAA;IAMrB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAO;IAO/B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAO;IAOlC,UAAU,EAAE,IAAI,CAAA;IAQhB,UAAU,EAAE,IAAI,CAAA;IAIhB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAO;IAG9B,QAAQ;IASR,MAAM;CAOP"}
@@ -1,9 +0,0 @@
1
- import { DALUtils } from "@medusajs/utils";
2
- import { OrderClaim } from "../models";
3
- declare const OrderClaimRepository_base: new ({ manager }: {
4
- manager: any;
5
- }) => DALUtils.MikroOrmBaseRepository<OrderClaim>;
6
- export declare class OrderClaimRepository extends OrderClaimRepository_base {
7
- }
8
- export {};
9
- //# sourceMappingURL=claim.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"claim.d.ts","sourceRoot":"","sources":["../../src/repositories/claim.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;;;;AAGpC,qBAAa,oBAAqB,SAAQ,yBAEzC;CAAG"}
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OrderClaimRepository = void 0;
4
- const utils_1 = require("@medusajs/utils");
5
- const _models_1 = require("../models");
6
- const base_repository_find_1 = require("../utils/base-repository-find");
7
- class OrderClaimRepository extends utils_1.DALUtils.mikroOrmBaseRepositoryFactory(_models_1.OrderClaim) {
8
- }
9
- exports.OrderClaimRepository = OrderClaimRepository;
10
- (0, base_repository_find_1.setFindMethods)(OrderClaimRepository, _models_1.OrderClaim);
11
- //# sourceMappingURL=claim.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"claim.js","sourceRoot":"","sources":["../../src/repositories/claim.ts"],"names":[],"mappings":";;;AAAA,2CAA0C;AAC1C,qCAAoC;AACpC,wEAA8D;AAE9D,MAAa,oBAAqB,SAAQ,gBAAQ,CAAC,6BAA6B,CAC9E,oBAAU,CACX;CAAG;AAFJ,oDAEI;AAEJ,IAAA,qCAAc,EAAC,oBAAoB,EAAE,oBAAU,CAAC,CAAA"}
@@ -1,9 +0,0 @@
1
- import { DALUtils } from "@medusajs/utils";
2
- import { OrderExchange } from "../models";
3
- declare const OrderExchangeRepository_base: new ({ manager }: {
4
- manager: any;
5
- }) => DALUtils.MikroOrmBaseRepository<OrderExchange>;
6
- export declare class OrderExchangeRepository extends OrderExchangeRepository_base {
7
- }
8
- export {};
9
- //# sourceMappingURL=exchange.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"exchange.d.ts","sourceRoot":"","sources":["../../src/repositories/exchange.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;;;;AAGvC,qBAAa,uBAAwB,SAAQ,4BAE5C;CAAG"}
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OrderExchangeRepository = void 0;
4
- const utils_1 = require("@medusajs/utils");
5
- const _models_1 = require("../models");
6
- const base_repository_find_1 = require("../utils/base-repository-find");
7
- class OrderExchangeRepository extends utils_1.DALUtils.mikroOrmBaseRepositoryFactory(_models_1.OrderExchange) {
8
- }
9
- exports.OrderExchangeRepository = OrderExchangeRepository;
10
- (0, base_repository_find_1.setFindMethods)(OrderExchangeRepository, _models_1.OrderExchange);
11
- //# sourceMappingURL=exchange.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"exchange.js","sourceRoot":"","sources":["../../src/repositories/exchange.ts"],"names":[],"mappings":";;;AAAA,2CAA0C;AAC1C,qCAAuC;AACvC,wEAA8D;AAE9D,MAAa,uBAAwB,SAAQ,gBAAQ,CAAC,6BAA6B,CACjF,uBAAa,CACd;CAAG;AAFJ,0DAEI;AAEJ,IAAA,qCAAc,EAAC,uBAAuB,EAAE,uBAAa,CAAC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/repositories/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,IAAI,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAC1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"order.d.ts","sourceRoot":"","sources":["../../src/repositories/order.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;;;;AAG/B,qBAAa,eAAgB,SAAQ,oBAEpC;CAAG"}
@@ -1,9 +0,0 @@
1
- import { DALUtils } from "@medusajs/utils";
2
- import { Return } from "../models";
3
- declare const ReturnRepository_base: new ({ manager }: {
4
- manager: any;
5
- }) => DALUtils.MikroOrmBaseRepository<Return>;
6
- export declare class ReturnRepository extends ReturnRepository_base {
7
- }
8
- export {};
9
- //# sourceMappingURL=return.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"return.d.ts","sourceRoot":"","sources":["../../src/repositories/return.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;;;;AAGhC,qBAAa,gBAAiB,SAAQ,qBAErC;CAAG"}
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ReturnRepository = void 0;
4
- const utils_1 = require("@medusajs/utils");
5
- const _models_1 = require("../models");
6
- const base_repository_find_1 = require("../utils/base-repository-find");
7
- class ReturnRepository extends utils_1.DALUtils.mikroOrmBaseRepositoryFactory(_models_1.Return) {
8
- }
9
- exports.ReturnRepository = ReturnRepository;
10
- (0, base_repository_find_1.setFindMethods)(ReturnRepository, _models_1.Return);
11
- //# sourceMappingURL=return.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"return.js","sourceRoot":"","sources":["../../src/repositories/return.ts"],"names":[],"mappings":";;;AAAA,2CAA0C;AAC1C,qCAAgC;AAChC,wEAA8D;AAE9D,MAAa,gBAAiB,SAAQ,gBAAQ,CAAC,6BAA6B,CAC1E,gBAAM,CACP;CAAG;AAFJ,4CAEI;AAEJ,IAAA,qCAAc,EAAC,gBAAgB,EAAE,gBAAM,CAAC,CAAA"}
@@ -1,3 +0,0 @@
1
- import { Context, OrderTypes } from "@medusajs/types";
2
- export declare function cancelClaim(this: any, data: OrderTypes.CancelOrderClaimDTO, sharedContext?: Context): Promise<any>;
3
- //# sourceMappingURL=cancel-claim.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cancel-claim.d.ts","sourceRoot":"","sources":["../../../src/services/actions/cancel-claim.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EAEP,UAAU,EACX,MAAM,iBAAiB,CAAA;AA0BxB,wBAAsB,WAAW,CAC/B,IAAI,EAAE,GAAG,EACT,IAAI,EAAE,UAAU,CAAC,mBAAmB,EACpC,aAAa,CAAC,EAAE,OAAO,gBA6GxB"}