@medusajs/order 0.1.3 → 1.0.0-rc-20241003153304

Sign up to get free protection for your applications and to get access to all the features.
Files changed (379) hide show
  1. package/dist/index.d.ts +6 -8
  2. package/dist/index.d.ts.map +1 -0
  3. package/dist/index.js +4 -26
  4. package/dist/index.js.map +1 -1
  5. package/dist/joiner-config.d.ts +2 -5
  6. package/dist/joiner-config.d.ts.map +1 -0
  7. package/dist/joiner-config.js +21 -28
  8. package/dist/joiner-config.js.map +1 -1
  9. package/dist/migrations/Migration20240219102530.d.ts +1 -0
  10. package/dist/migrations/Migration20240219102530.d.ts.map +1 -0
  11. package/dist/migrations/Migration20240219102530.js +53 -19
  12. package/dist/migrations/Migration20240219102530.js.map +1 -1
  13. package/dist/migrations/Migration20240604100512.d.ts +5 -0
  14. package/dist/migrations/Migration20240604100512.d.ts.map +1 -0
  15. package/dist/migrations/Migration20240604100512.js +371 -0
  16. package/dist/migrations/Migration20240604100512.js.map +1 -0
  17. package/dist/migrations/Migration20240715102100.d.ts +5 -0
  18. package/dist/migrations/Migration20240715102100.d.ts.map +1 -0
  19. package/dist/migrations/Migration20240715102100.js +15 -0
  20. package/dist/migrations/Migration20240715102100.js.map +1 -0
  21. package/dist/migrations/Migration20240715174100.d.ts +5 -0
  22. package/dist/migrations/Migration20240715174100.d.ts.map +1 -0
  23. package/dist/migrations/Migration20240715174100.js +21 -0
  24. package/dist/migrations/Migration20240715174100.js.map +1 -0
  25. package/dist/migrations/Migration20240716081800.d.ts +5 -0
  26. package/dist/migrations/Migration20240716081800.d.ts.map +1 -0
  27. package/dist/migrations/Migration20240716081800.js +67 -0
  28. package/dist/migrations/Migration20240716081800.js.map +1 -0
  29. package/dist/migrations/Migration20240801085921.d.ts +5 -0
  30. package/dist/migrations/Migration20240801085921.d.ts.map +1 -0
  31. package/dist/migrations/Migration20240801085921.js +30 -0
  32. package/dist/migrations/Migration20240801085921.js.map +1 -0
  33. package/dist/migrations/Migration20240821164505.d.ts +6 -0
  34. package/dist/migrations/Migration20240821164505.d.ts.map +1 -0
  35. package/dist/migrations/Migration20240821164505.js +26 -0
  36. package/dist/migrations/Migration20240821164505.js.map +1 -0
  37. package/dist/migrations/Migration20240821170920.d.ts +6 -0
  38. package/dist/migrations/Migration20240821170920.d.ts.map +1 -0
  39. package/dist/migrations/Migration20240821170920.js +18 -0
  40. package/dist/migrations/Migration20240821170920.js.map +1 -0
  41. package/dist/migrations/Migration20240827133639.d.ts +6 -0
  42. package/dist/migrations/Migration20240827133639.d.ts.map +1 -0
  43. package/dist/migrations/Migration20240827133639.js +17 -0
  44. package/dist/migrations/Migration20240827133639.js.map +1 -0
  45. package/dist/migrations/Migration20240902195921.d.ts +6 -0
  46. package/dist/migrations/Migration20240902195921.d.ts.map +1 -0
  47. package/dist/migrations/Migration20240902195921.js +16 -0
  48. package/dist/migrations/Migration20240902195921.js.map +1 -0
  49. package/dist/migrations/Migration20240913092514.d.ts +6 -0
  50. package/dist/migrations/Migration20240913092514.d.ts.map +1 -0
  51. package/dist/migrations/Migration20240913092514.js +17 -0
  52. package/dist/migrations/Migration20240913092514.js.map +1 -0
  53. package/dist/models/address.d.ts +4 -3
  54. package/dist/models/address.d.ts.map +1 -0
  55. package/dist/models/address.js +22 -22
  56. package/dist/models/address.js.map +1 -1
  57. package/dist/models/adjustment-line.d.ts +5 -3
  58. package/dist/models/adjustment-line.d.ts.map +1 -0
  59. package/dist/models/adjustment-line.js +6 -1
  60. package/dist/models/adjustment-line.js.map +1 -1
  61. package/dist/models/claim-item-image.d.ts +19 -0
  62. package/dist/models/claim-item-image.d.ts.map +1 -0
  63. package/dist/models/claim-item-image.js +109 -0
  64. package/dist/models/claim-item-image.js.map +1 -0
  65. package/dist/models/claim-item.d.ts +29 -0
  66. package/dist/models/claim-item.d.ts.map +1 -0
  67. package/dist/models/claim-item.js +157 -0
  68. package/dist/models/claim-item.js.map +1 -0
  69. package/dist/models/claim.d.ts +37 -0
  70. package/dist/models/claim.d.ts.map +1 -0
  71. package/dist/models/claim.js +201 -0
  72. package/dist/models/claim.js.map +1 -0
  73. package/dist/models/exchange-item.d.ts +24 -0
  74. package/dist/models/exchange-item.d.ts.map +1 -0
  75. package/dist/models/exchange-item.js +138 -0
  76. package/dist/models/exchange-item.js.map +1 -0
  77. package/dist/models/exchange.d.ts +35 -0
  78. package/dist/models/exchange.d.ts.map +1 -0
  79. package/dist/models/exchange.js +194 -0
  80. package/dist/models/exchange.js.map +1 -0
  81. package/dist/models/index.d.ts +18 -9
  82. package/dist/models/index.d.ts.map +1 -0
  83. package/dist/models/index.js +26 -10
  84. package/dist/models/index.js.map +1 -1
  85. package/dist/models/line-item-adjustment.d.ts +5 -3
  86. package/dist/models/line-item-adjustment.d.ts.map +1 -0
  87. package/dist/models/line-item-adjustment.js +12 -12
  88. package/dist/models/line-item-adjustment.js.map +1 -1
  89. package/dist/models/line-item-tax-line.d.ts +5 -3
  90. package/dist/models/line-item-tax-line.d.ts.map +1 -0
  91. package/dist/models/line-item-tax-line.js +12 -12
  92. package/dist/models/line-item-tax-line.js.map +1 -1
  93. package/dist/models/line-item.d.ts +11 -8
  94. package/dist/models/line-item.d.ts.map +1 -0
  95. package/dist/models/line-item.js +58 -39
  96. package/dist/models/line-item.js.map +1 -1
  97. package/dist/models/order-change-action.d.ts +17 -6
  98. package/dist/models/order-change-action.d.ts.map +1 -0
  99. package/dist/models/order-change-action.js +110 -8
  100. package/dist/models/order-change-action.js.map +1 -1
  101. package/dist/models/order-change.d.ts +18 -6
  102. package/dist/models/order-change.d.ts.map +1 -0
  103. package/dist/models/order-change.js +108 -6
  104. package/dist/models/order-change.js.map +1 -1
  105. package/dist/models/order-item.d.ts +10 -7
  106. package/dist/models/order-item.d.ts.map +1 -0
  107. package/dist/models/order-item.js +29 -19
  108. package/dist/models/order-item.js.map +1 -1
  109. package/dist/models/order-shipping-method.d.ts +17 -7
  110. package/dist/models/order-shipping-method.d.ts.map +1 -0
  111. package/dist/models/order-shipping-method.js +113 -33
  112. package/dist/models/order-shipping-method.js.map +1 -1
  113. package/dist/models/order-summary.d.ts +7 -8
  114. package/dist/models/order-summary.d.ts.map +1 -0
  115. package/dist/models/order-summary.js +14 -10
  116. package/dist/models/order-summary.js.map +1 -1
  117. package/dist/models/order.d.ts +13 -11
  118. package/dist/models/order.d.ts.map +1 -0
  119. package/dist/models/order.js +12 -2
  120. package/dist/models/order.js.map +1 -1
  121. package/dist/models/return-item.d.ts +31 -0
  122. package/dist/models/return-item.d.ts.map +1 -0
  123. package/dist/models/return-item.js +180 -0
  124. package/dist/models/return-item.js.map +1 -0
  125. package/dist/models/return-reason.d.ts +22 -0
  126. package/dist/models/return-reason.d.ts.map +1 -0
  127. package/dist/models/return-reason.js +122 -0
  128. package/dist/models/return-reason.js.map +1 -0
  129. package/dist/models/return.d.ts +41 -0
  130. package/dist/models/return.d.ts.map +1 -0
  131. package/dist/models/return.js +227 -0
  132. package/dist/models/return.js.map +1 -0
  133. package/dist/models/shipping-method-adjustment.d.ts +5 -3
  134. package/dist/models/shipping-method-adjustment.d.ts.map +1 -0
  135. package/dist/models/shipping-method-adjustment.js +12 -12
  136. package/dist/models/shipping-method-adjustment.js.map +1 -1
  137. package/dist/models/shipping-method-tax-line.d.ts +5 -3
  138. package/dist/models/shipping-method-tax-line.d.ts.map +1 -0
  139. package/dist/models/shipping-method-tax-line.js +12 -12
  140. package/dist/models/shipping-method-tax-line.js.map +1 -1
  141. package/dist/models/shipping-method.d.ts +10 -7
  142. package/dist/models/shipping-method.d.ts.map +1 -0
  143. package/dist/models/shipping-method.js +42 -24
  144. package/dist/models/shipping-method.js.map +1 -1
  145. package/dist/models/tax-line.d.ts +4 -2
  146. package/dist/models/tax-line.d.ts.map +1 -0
  147. package/dist/models/tax-line.js +8 -1
  148. package/dist/models/tax-line.js.map +1 -1
  149. package/dist/models/transaction.d.ts +18 -6
  150. package/dist/models/transaction.d.ts.map +1 -0
  151. package/dist/models/transaction.js +133 -24
  152. package/dist/models/transaction.js.map +1 -1
  153. package/dist/repositories/claim.d.ts +9 -0
  154. package/dist/repositories/claim.d.ts.map +1 -0
  155. package/dist/repositories/claim.js +11 -0
  156. package/dist/repositories/claim.js.map +1 -0
  157. package/dist/repositories/exchange.d.ts +9 -0
  158. package/dist/repositories/exchange.d.ts.map +1 -0
  159. package/dist/repositories/exchange.js +11 -0
  160. package/dist/repositories/exchange.js.map +1 -0
  161. package/dist/repositories/index.d.ts +5 -2
  162. package/dist/repositories/index.d.ts.map +1 -0
  163. package/dist/repositories/index.js +8 -17
  164. package/dist/repositories/index.js.map +1 -1
  165. package/dist/repositories/order.d.ts +2 -4
  166. package/dist/repositories/order.d.ts.map +1 -0
  167. package/dist/repositories/order.js +3 -86
  168. package/dist/repositories/order.js.map +1 -1
  169. package/dist/repositories/return.d.ts +9 -0
  170. package/dist/repositories/return.d.ts.map +1 -0
  171. package/dist/repositories/return.js +11 -0
  172. package/dist/repositories/return.js.map +1 -0
  173. package/dist/schema/index.d.ts +3 -0
  174. package/dist/schema/index.d.ts.map +1 -0
  175. package/dist/schema/index.js +556 -0
  176. package/dist/schema/index.js.map +1 -0
  177. package/dist/services/actions/cancel-claim.d.ts +3 -0
  178. package/dist/services/actions/cancel-claim.d.ts.map +1 -0
  179. package/dist/services/actions/cancel-claim.js +85 -0
  180. package/dist/services/actions/cancel-claim.js.map +1 -0
  181. package/dist/services/actions/cancel-exchange.d.ts +3 -0
  182. package/dist/services/actions/cancel-exchange.d.ts.map +1 -0
  183. package/dist/services/actions/cancel-exchange.js +71 -0
  184. package/dist/services/actions/cancel-exchange.js.map +1 -0
  185. package/dist/services/actions/cancel-fulfillment.d.ts +3 -0
  186. package/dist/services/actions/cancel-fulfillment.d.ts.map +1 -0
  187. package/dist/services/actions/cancel-fulfillment.js +31 -0
  188. package/dist/services/actions/cancel-fulfillment.js.map +1 -0
  189. package/dist/services/actions/cancel-return.d.ts +3 -0
  190. package/dist/services/actions/cancel-return.d.ts.map +1 -0
  191. package/dist/services/actions/cancel-return.js +69 -0
  192. package/dist/services/actions/cancel-return.js.map +1 -0
  193. package/dist/services/actions/create-claim.d.ts +3 -0
  194. package/dist/services/actions/create-claim.d.ts.map +1 -0
  195. package/dist/services/actions/create-claim.js +225 -0
  196. package/dist/services/actions/create-claim.js.map +1 -0
  197. package/dist/services/actions/create-exchange.d.ts +3 -0
  198. package/dist/services/actions/create-exchange.d.ts.map +1 -0
  199. package/dist/services/actions/create-exchange.js +191 -0
  200. package/dist/services/actions/create-exchange.js.map +1 -0
  201. package/dist/services/actions/create-return.d.ts +3 -0
  202. package/dist/services/actions/create-return.d.ts.map +1 -0
  203. package/dist/services/actions/create-return.js +100 -0
  204. package/dist/services/actions/create-return.js.map +1 -0
  205. package/dist/services/actions/index.d.ts +12 -0
  206. package/dist/services/actions/index.d.ts.map +1 -0
  207. package/dist/services/actions/index.js +28 -0
  208. package/dist/services/actions/index.js.map +1 -0
  209. package/dist/services/actions/receive-return.d.ts +3 -0
  210. package/dist/services/actions/receive-return.d.ts.map +1 -0
  211. package/dist/services/actions/receive-return.js +71 -0
  212. package/dist/services/actions/receive-return.js.map +1 -0
  213. package/dist/services/actions/register-delivery.d.ts +3 -0
  214. package/dist/services/actions/register-delivery.d.ts.map +1 -0
  215. package/dist/services/actions/register-delivery.js +29 -0
  216. package/dist/services/actions/register-delivery.js.map +1 -0
  217. package/dist/services/actions/register-fulfillment.d.ts +3 -0
  218. package/dist/services/actions/register-fulfillment.d.ts.map +1 -0
  219. package/dist/services/actions/register-fulfillment.js +29 -0
  220. package/dist/services/actions/register-fulfillment.js.map +1 -0
  221. package/dist/services/actions/register-shipment.d.ts +3 -0
  222. package/dist/services/actions/register-shipment.d.ts.map +1 -0
  223. package/dist/services/actions/register-shipment.js +37 -0
  224. package/dist/services/actions/register-shipment.js.map +1 -0
  225. package/dist/services/index.d.ts +1 -1
  226. package/dist/services/index.d.ts.map +1 -0
  227. package/dist/services/index.js +1 -3
  228. package/dist/services/index.js.map +1 -1
  229. package/dist/services/order-module-service.d.ts +191 -109
  230. package/dist/services/order-module-service.d.ts.map +1 -0
  231. package/dist/services/order-module-service.js +1165 -425
  232. package/dist/services/order-module-service.js.map +1 -1
  233. package/dist/services/order-service.d.ts +6 -5
  234. package/dist/services/order-service.d.ts.map +1 -0
  235. package/dist/services/order-service.js +2 -2
  236. package/dist/services/order-service.js.map +1 -1
  237. package/dist/tsconfig.tsbuildinfo +1 -0
  238. package/dist/types/address.d.ts +2 -1
  239. package/dist/types/address.d.ts.map +1 -0
  240. package/dist/types/index.d.ts +5 -2
  241. package/dist/types/index.d.ts.map +1 -0
  242. package/dist/types/index.js +2 -0
  243. package/dist/types/index.js.map +1 -1
  244. package/dist/types/line-item-adjustment.d.ts +2 -1
  245. package/dist/types/line-item-adjustment.d.ts.map +1 -0
  246. package/dist/types/line-item-tax-line.d.ts +1 -0
  247. package/dist/types/line-item-tax-line.d.ts.map +1 -0
  248. package/dist/types/line-item.d.ts +2 -1
  249. package/dist/types/line-item.d.ts.map +1 -0
  250. package/dist/types/order-change.d.ts +4 -0
  251. package/dist/types/order-change.d.ts.map +1 -0
  252. package/dist/types/order-change.js +3 -0
  253. package/dist/types/order-change.js.map +1 -0
  254. package/dist/types/order-detail.d.ts +3 -2
  255. package/dist/types/order-detail.d.ts.map +1 -0
  256. package/dist/types/order.d.ts +4 -3
  257. package/dist/types/order.d.ts.map +1 -0
  258. package/dist/types/return-reason.d.ts +5 -0
  259. package/dist/types/return-reason.d.ts.map +1 -0
  260. package/dist/types/return-reason.js +3 -0
  261. package/dist/types/return-reason.js.map +1 -0
  262. package/dist/types/shipping-method-adjustment.d.ts +2 -1
  263. package/dist/types/shipping-method-adjustment.d.ts.map +1 -0
  264. package/dist/types/shipping-method-tax-line.d.ts +1 -0
  265. package/dist/types/shipping-method-tax-line.d.ts.map +1 -0
  266. package/dist/types/shipping-method.d.ts +5 -1
  267. package/dist/types/shipping-method.d.ts.map +1 -0
  268. package/dist/types/tax-line.d.ts +2 -1
  269. package/dist/types/tax-line.d.ts.map +1 -0
  270. package/dist/types/transaction.d.ts +2 -1
  271. package/dist/types/transaction.d.ts.map +1 -0
  272. package/dist/types/utils/index.d.ts +41 -23
  273. package/dist/types/utils/index.d.ts.map +1 -0
  274. package/dist/types/utils/index.js +0 -1
  275. package/dist/types/utils/index.js.map +1 -1
  276. package/dist/utils/actions/cancel-item-fulfillment.d.ts +2 -0
  277. package/dist/utils/actions/cancel-item-fulfillment.d.ts.map +1 -0
  278. package/dist/utils/actions/cancel-item-fulfillment.js +34 -0
  279. package/dist/utils/actions/cancel-item-fulfillment.js.map +1 -0
  280. package/dist/utils/actions/cancel-return.d.ts +1 -0
  281. package/dist/utils/actions/cancel-return.d.ts.map +1 -0
  282. package/dist/utils/actions/cancel-return.js +9 -16
  283. package/dist/utils/actions/cancel-return.js.map +1 -1
  284. package/dist/utils/actions/deliver-item.d.ts +2 -0
  285. package/dist/utils/actions/deliver-item.d.ts.map +1 -0
  286. package/dist/utils/actions/deliver-item.js +38 -0
  287. package/dist/utils/actions/deliver-item.js.map +1 -0
  288. package/dist/utils/actions/fulfill-item.d.ts +1 -0
  289. package/dist/utils/actions/fulfill-item.d.ts.map +1 -0
  290. package/dist/utils/actions/fulfill-item.js +8 -12
  291. package/dist/utils/actions/fulfill-item.js.map +1 -1
  292. package/dist/utils/actions/index.d.ts +7 -1
  293. package/dist/utils/actions/index.d.ts.map +1 -0
  294. package/dist/utils/actions/index.js +6 -1
  295. package/dist/utils/actions/index.js.map +1 -1
  296. package/dist/utils/actions/item-add.d.ts +1 -0
  297. package/dist/utils/actions/item-add.d.ts.map +1 -0
  298. package/dist/utils/actions/item-add.js +17 -26
  299. package/dist/utils/actions/item-add.js.map +1 -1
  300. package/dist/utils/actions/item-remove.d.ts +1 -0
  301. package/dist/utils/actions/item-remove.d.ts.map +1 -0
  302. package/dist/utils/actions/item-remove.js +10 -30
  303. package/dist/utils/actions/item-remove.js.map +1 -1
  304. package/dist/utils/actions/item-update.d.ts +2 -0
  305. package/dist/utils/actions/item-update.d.ts.map +1 -0
  306. package/dist/utils/actions/item-update.js +37 -0
  307. package/dist/utils/actions/item-update.js.map +1 -0
  308. package/dist/utils/actions/receive-damaged-return-item.d.ts +1 -0
  309. package/dist/utils/actions/receive-damaged-return-item.d.ts.map +1 -0
  310. package/dist/utils/actions/receive-damaged-return-item.js +11 -37
  311. package/dist/utils/actions/receive-damaged-return-item.js.map +1 -1
  312. package/dist/utils/actions/receive-return-item.d.ts +1 -0
  313. package/dist/utils/actions/receive-return-item.d.ts.map +1 -0
  314. package/dist/utils/actions/receive-return-item.js +9 -38
  315. package/dist/utils/actions/receive-return-item.js.map +1 -1
  316. package/dist/utils/actions/reinstate-item.d.ts +2 -0
  317. package/dist/utils/actions/reinstate-item.d.ts.map +1 -0
  318. package/dist/utils/actions/reinstate-item.js +32 -0
  319. package/dist/utils/actions/reinstate-item.js.map +1 -0
  320. package/dist/utils/actions/return-item.d.ts +1 -0
  321. package/dist/utils/actions/return-item.d.ts.map +1 -0
  322. package/dist/utils/actions/return-item.js +10 -15
  323. package/dist/utils/actions/return-item.js.map +1 -1
  324. package/dist/utils/actions/ship-item.d.ts +1 -0
  325. package/dist/utils/actions/ship-item.d.ts.map +1 -0
  326. package/dist/utils/actions/ship-item.js +8 -12
  327. package/dist/utils/actions/ship-item.js.map +1 -1
  328. package/dist/utils/actions/shipping-add.d.ts +1 -0
  329. package/dist/utils/actions/shipping-add.d.ts.map +1 -0
  330. package/dist/utils/actions/shipping-add.js +18 -18
  331. package/dist/utils/actions/shipping-add.js.map +1 -1
  332. package/dist/utils/actions/shipping-remove.d.ts +2 -0
  333. package/dist/utils/actions/shipping-remove.d.ts.map +1 -0
  334. package/dist/utils/actions/shipping-remove.js +22 -0
  335. package/dist/utils/actions/shipping-remove.js.map +1 -0
  336. package/dist/utils/actions/write-off-item.d.ts +1 -0
  337. package/dist/utils/actions/write-off-item.d.ts.map +1 -0
  338. package/dist/utils/actions/write-off-item.js +8 -12
  339. package/dist/utils/actions/write-off-item.js.map +1 -1
  340. package/dist/utils/apply-order-changes.d.ts +18 -0
  341. package/dist/utils/apply-order-changes.d.ts.map +1 -0
  342. package/dist/utils/apply-order-changes.js +98 -0
  343. package/dist/utils/apply-order-changes.js.map +1 -0
  344. package/dist/utils/base-repository-find.d.ts +3 -0
  345. package/dist/utils/base-repository-find.d.ts.map +1 -0
  346. package/dist/utils/base-repository-find.js +154 -0
  347. package/dist/utils/base-repository-find.js.map +1 -0
  348. package/dist/utils/calculate-order-change.d.ts +12 -6
  349. package/dist/utils/calculate-order-change.d.ts.map +1 -0
  350. package/dist/utils/calculate-order-change.js +56 -187
  351. package/dist/utils/calculate-order-change.js.map +1 -1
  352. package/dist/utils/index.d.ts +4 -1
  353. package/dist/utils/index.d.ts.map +1 -0
  354. package/dist/utils/index.js +3 -1
  355. package/dist/utils/index.js.map +1 -1
  356. package/dist/utils/set-action-reference.d.ts +2 -0
  357. package/dist/utils/set-action-reference.d.ts.map +1 -0
  358. package/dist/utils/set-action-reference.js +10 -0
  359. package/dist/utils/set-action-reference.js.map +1 -0
  360. package/dist/utils/transform-order.d.ts +5 -4
  361. package/dist/utils/transform-order.d.ts.map +1 -0
  362. package/dist/utils/transform-order.js +138 -21
  363. package/dist/utils/transform-order.js.map +1 -1
  364. package/package.json +25 -26
  365. package/dist/module-definition.d.ts +0 -2
  366. package/dist/module-definition.js +0 -59
  367. package/dist/module-definition.js.map +0 -1
  368. package/dist/scripts/bin/run-seed.d.ts +0 -3
  369. package/dist/scripts/bin/run-seed.js +0 -49
  370. package/dist/scripts/bin/run-seed.js.map +0 -1
  371. package/dist/services/order-change-service.d.ts +0 -15
  372. package/dist/services/order-change-service.js +0 -96
  373. package/dist/services/order-change-service.js.map +0 -1
  374. package/dist/utils/action-key.d.ts +0 -13
  375. package/dist/utils/action-key.js +0 -18
  376. package/dist/utils/action-key.js.map +0 -1
  377. package/dist/utils/actions/cancel.d.ts +0 -1
  378. package/dist/utils/actions/cancel.js +0 -8
  379. package/dist/utils/actions/cancel.js.map +0 -1
@@ -12,33 +12,35 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
12
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- const utils_1 = require("@medusajs/utils");
15
+ const utils_1 = require("@medusajs/framework/utils");
16
16
  const core_1 = require("@mikro-orm/core");
17
17
  const line_item_1 = __importDefault(require("./line-item"));
18
18
  const order_1 = __importDefault(require("./order"));
19
+ const tableName = "order_item";
19
20
  const OrderIdIndex = (0, utils_1.createPsqlIndexStatementHelper)({
20
- tableName: "order_item",
21
+ tableName,
21
22
  columns: ["order_id"],
22
23
  where: "deleted_at IS NOT NULL",
23
24
  });
24
25
  const OrderVersionIndex = (0, utils_1.createPsqlIndexStatementHelper)({
25
- tableName: "order_item",
26
+ tableName,
26
27
  columns: ["version"],
27
28
  where: "deleted_at IS NOT NULL",
28
29
  });
29
30
  const ItemIdIndex = (0, utils_1.createPsqlIndexStatementHelper)({
30
- tableName: "order_item",
31
+ tableName,
31
32
  columns: ["item_id"],
32
33
  where: "deleted_at IS NOT NULL",
33
34
  });
34
35
  const DeletedAtIndex = (0, utils_1.createPsqlIndexStatementHelper)({
35
- tableName: "order",
36
+ tableName,
36
37
  columns: "deleted_at",
37
38
  where: "deleted_at IS NOT NULL",
38
39
  });
39
40
  let OrderItem = class OrderItem {
40
41
  constructor() {
41
42
  this.fulfilled_quantity = 0;
43
+ this.delivered_quantity = 0;
42
44
  this.shipped_quantity = 0;
43
45
  this.return_requested_quantity = 0;
44
46
  this.return_received_quantity = 0;
@@ -49,15 +51,15 @@ let OrderItem = class OrderItem {
49
51
  }
50
52
  onCreate() {
51
53
  this.id = (0, utils_1.generateEntityId)(this.id, "orditem");
52
- this.order_id ?? (this.order_id = this.order?.id);
53
- this.item_id ?? (this.item_id = this.item?.id);
54
- this.version ?? (this.version = this.order?.version);
54
+ this.order_id ??= this.order?.id;
55
+ this.item_id ??= this.item?.id;
56
+ this.version ??= this.order?.version;
55
57
  }
56
58
  onInit() {
57
59
  this.id = (0, utils_1.generateEntityId)(this.id, "orditem");
58
- this.order_id ?? (this.order_id = this.order?.id);
59
- this.item_id ?? (this.item_id = this.item?.id);
60
- this.version ?? (this.version = this.order?.version);
60
+ this.order_id ??= this.order?.id;
61
+ this.item_id ??= this.item?.id;
62
+ this.version ??= this.order?.version;
61
63
  }
62
64
  };
63
65
  __decorate([
@@ -74,17 +76,17 @@ __decorate([
74
76
  OrderIdIndex.MikroORMIndex(),
75
77
  __metadata("design:type", String)
76
78
  ], OrderItem.prototype, "order_id", void 0);
77
- __decorate([
78
- (0, core_1.Property)({ columnType: "integer" }),
79
- OrderVersionIndex.MikroORMIndex(),
80
- __metadata("design:type", Number)
81
- ], OrderItem.prototype, "version", void 0);
82
79
  __decorate([
83
80
  (0, core_1.ManyToOne)(() => order_1.default, {
84
81
  persist: false,
85
82
  }),
86
- __metadata("design:type", order_1.default)
83
+ __metadata("design:type", Object)
87
84
  ], OrderItem.prototype, "order", void 0);
85
+ __decorate([
86
+ (0, core_1.Property)({ columnType: "integer" }),
87
+ OrderVersionIndex.MikroORMIndex(),
88
+ __metadata("design:type", Number)
89
+ ], OrderItem.prototype, "version", void 0);
88
90
  __decorate([
89
91
  (0, core_1.ManyToOne)({
90
92
  entity: () => line_item_1.default,
@@ -99,7 +101,7 @@ __decorate([
99
101
  (0, core_1.ManyToOne)(() => line_item_1.default, {
100
102
  persist: false,
101
103
  }),
102
- __metadata("design:type", line_item_1.default)
104
+ __metadata("design:type", Object)
103
105
  ], OrderItem.prototype, "item", void 0);
104
106
  __decorate([
105
107
  (0, utils_1.MikroOrmBigNumberProperty)(),
@@ -117,6 +119,14 @@ __decorate([
117
119
  (0, core_1.Property)({ columnType: "jsonb" }),
118
120
  __metadata("design:type", Object)
119
121
  ], OrderItem.prototype, "raw_fulfilled_quantity", void 0);
122
+ __decorate([
123
+ (0, utils_1.MikroOrmBigNumberProperty)(),
124
+ __metadata("design:type", Object)
125
+ ], OrderItem.prototype, "delivered_quantity", void 0);
126
+ __decorate([
127
+ (0, core_1.Property)({ columnType: "jsonb" }),
128
+ __metadata("design:type", Object)
129
+ ], OrderItem.prototype, "raw_delivered_quantity", void 0);
120
130
  __decorate([
121
131
  (0, utils_1.MikroOrmBigNumberProperty)(),
122
132
  __metadata("design:type", Object)
@@ -196,7 +206,7 @@ __decorate([
196
206
  __metadata("design:returntype", void 0)
197
207
  ], OrderItem.prototype, "onInit", null);
198
208
  OrderItem = __decorate([
199
- (0, core_1.Entity)({ tableName: "order_item" })
209
+ (0, core_1.Entity)({ tableName })
200
210
  ], OrderItem);
201
211
  exports.default = OrderItem;
202
212
  //# sourceMappingURL=order-item.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"order-item.js","sourceRoot":"","sources":["../../src/models/order-item.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,2CAKwB;AACxB,0CAQwB;AACxB,4DAAkC;AAClC,oDAA2B;AAI3B,MAAM,YAAY,GAAG,IAAA,sCAA8B,EAAC;IAClD,SAAS,EAAE,YAAY;IACvB,OAAO,EAAE,CAAC,UAAU,CAAC;IACrB,KAAK,EAAE,wBAAwB;CAChC,CAAC,CAAA;AAEF,MAAM,iBAAiB,GAAG,IAAA,sCAA8B,EAAC;IACvD,SAAS,EAAE,YAAY;IACvB,OAAO,EAAE,CAAC,SAAS,CAAC;IACpB,KAAK,EAAE,wBAAwB;CAChC,CAAC,CAAA;AAEF,MAAM,WAAW,GAAG,IAAA,sCAA8B,EAAC;IACjD,SAAS,EAAE,YAAY;IACvB,OAAO,EAAE,CAAC,SAAS,CAAC;IACpB,KAAK,EAAE,wBAAwB;CAChC,CAAC,CAAA;AAEF,MAAM,cAAc,GAAG,IAAA,sCAA8B,EAAC;IACpD,SAAS,EAAE,OAAO;IAClB,OAAO,EAAE,YAAY;IACrB,KAAK,EAAE,wBAAwB;CAChC,CAAC,CAAA;AAGa,IAAM,SAAS,GAAf,MAAM,SAAS;IAAf;QA6Cb,uBAAkB,GAAuB,CAAC,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I;6CAAA;AAIhB;IAFC,IAAA,eAAQ,EAAC,EAAE,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACvD,cAAc,CAAC,aAAa,EAAE;;6CACD;AAG9B;IADC,IAAA,mBAAY,GAAE;;;;yCAMd;AAGD;IADC,IAAA,aAAM,GAAE;;;;uCAMR;AA1HkB,SAAS;IAD7B,IAAA,aAAM,EAAC,EAAE,SAAS,EAAE,CAAC;GACD,SAAS,CA2H7B;kBA3HoB,SAAS"}
@@ -1,16 +1,25 @@
1
- import { DAL } from "@medusajs/types";
2
- import { OptionalProps } from "@mikro-orm/core";
1
+ import { DAL } from "@medusajs/framework/types";
2
+ import { OptionalProps, Rel } from "@mikro-orm/core";
3
+ import Claim from "./claim";
4
+ import Exchange from "./exchange";
3
5
  import Order from "./order";
4
- import ShippingMethod from "./shipping-method";
5
- type OptionalShippingMethodProps = DAL.EntityDateColumns;
6
- export default class OrderShippingMethod {
6
+ import Return from "./return";
7
+ import OrderShippingMethod from "./shipping-method";
8
+ type OptionalShippingMethodProps = DAL.ModelDateColumns;
9
+ export default class OrderShipping {
7
10
  [OptionalProps]?: OptionalShippingMethodProps;
8
11
  id: string;
9
12
  order_id: string;
13
+ order: Rel<Order>;
14
+ return_id: string | null;
15
+ return: Rel<Return>;
16
+ exchange_id: string | null;
17
+ exchange: Rel<Exchange>;
18
+ claim_id: string | null;
19
+ claim: Rel<Claim>;
10
20
  version: number;
11
- order: Order;
12
21
  shipping_method_id: string;
13
- shipping_method: ShippingMethod;
22
+ shipping_method: Rel<OrderShippingMethod>;
14
23
  created_at: Date;
15
24
  updated_at: Date;
16
25
  deleted_at: Date | null;
@@ -18,3 +27,4 @@ export default class OrderShippingMethod {
18
27
  onInit(): void;
19
28
  }
20
29
  export {};
30
+ //# sourceMappingURL=order-shipping-method.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"order-shipping-method.d.ts","sourceRoot":"","sources":["../../src/models/order-shipping-method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,2BAA2B,CAAA;AAK/C,OAAO,EAKL,aAAa,EAGb,GAAG,EACJ,MAAM,iBAAiB,CAAA;AACxB,OAAO,KAAK,MAAM,SAAS,CAAA;AAC3B,OAAO,QAAQ,MAAM,YAAY,CAAA;AACjC,OAAO,KAAK,MAAM,SAAS,CAAA;AAC3B,OAAO,MAAM,MAAM,UAAU,CAAA;AAC7B,OAAO,mBAAmB,MAAM,mBAAmB,CAAA;AAEnD,KAAK,2BAA2B,GAAG,GAAG,CAAC,gBAAgB,CAAA;AA8CvD,MAAM,CAAC,OAAO,OAAO,aAAa;IAChC,CAAC,aAAa,CAAC,CAAC,EAAE,2BAA2B,CAAA;IAG7C,EAAE,EAAE,MAAM,CAAA;IASV,QAAQ,EAAE,MAAM,CAAA;IAKhB,KAAK,EAAE,GAAG,CAAC,KAAK,CAAC,CAAA;IAUjB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAO;IAM/B,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAUnB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAM1B,QAAQ,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAA;IAUvB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IAMvB,KAAK,EAAE,GAAG,CAAC,KAAK,CAAC,CAAA;IAIjB,OAAO,EAAE,MAAM,CAAA;IASf,kBAAkB,EAAE,MAAM,CAAA;IAK1B,eAAe,EAAE,GAAG,CAAC,mBAAmB,CAAC,CAAA;IAOzC,UAAU,EAAE,IAAI,CAAA;IAQhB,UAAU,EAAE,IAAI,CAAA;IAIhB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAO;IAG9B,QAAQ;IAWR,MAAM;CASP"}
@@ -12,51 +12,77 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
12
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- const utils_1 = require("@medusajs/utils");
15
+ const utils_1 = require("@medusajs/framework/utils");
16
16
  const core_1 = require("@mikro-orm/core");
17
+ const claim_1 = __importDefault(require("./claim"));
18
+ const exchange_1 = __importDefault(require("./exchange"));
17
19
  const order_1 = __importDefault(require("./order"));
20
+ const return_1 = __importDefault(require("./return"));
18
21
  const shipping_method_1 = __importDefault(require("./shipping-method"));
22
+ const tableName = "order_shipping";
19
23
  const OrderIdIndex = (0, utils_1.createPsqlIndexStatementHelper)({
20
- tableName: "order_shipping",
24
+ tableName,
21
25
  columns: ["order_id"],
22
26
  where: "deleted_at IS NOT NULL",
23
27
  });
28
+ const ReturnIdIndex = (0, utils_1.createPsqlIndexStatementHelper)({
29
+ tableName,
30
+ columns: "return_id",
31
+ where: "return_id IS NOT NULL AND deleted_at IS NOT NULL",
32
+ });
33
+ const ExchangeIdIndex = (0, utils_1.createPsqlIndexStatementHelper)({
34
+ tableName,
35
+ columns: ["exchange_id"],
36
+ where: "exchange_id IS NOT NULL AND deleted_at IS NOT NULL",
37
+ });
38
+ const ClaimIdIndex = (0, utils_1.createPsqlIndexStatementHelper)({
39
+ tableName,
40
+ columns: ["claim_id"],
41
+ where: "claim_id IS NOT NULL AND deleted_at IS NOT NULL",
42
+ });
24
43
  const OrderVersionIndex = (0, utils_1.createPsqlIndexStatementHelper)({
25
- tableName: "order_shipping",
44
+ tableName,
26
45
  columns: ["version"],
27
46
  where: "deleted_at IS NOT NULL",
28
47
  });
29
48
  const ItemIdIndex = (0, utils_1.createPsqlIndexStatementHelper)({
30
- tableName: "order_shipping",
49
+ tableName,
31
50
  columns: ["shipping_method_id"],
32
51
  where: "deleted_at IS NOT NULL",
33
52
  });
34
53
  const DeletedAtIndex = (0, utils_1.createPsqlIndexStatementHelper)({
35
- tableName: "order",
54
+ tableName,
36
55
  columns: "deleted_at",
37
56
  where: "deleted_at IS NOT NULL",
38
57
  });
39
- let OrderShippingMethod = class OrderShippingMethod {
58
+ let OrderShipping = class OrderShipping {
40
59
  constructor() {
60
+ this.return_id = null;
41
61
  this.deleted_at = null;
42
62
  }
43
63
  onCreate() {
44
64
  this.id = (0, utils_1.generateEntityId)(this.id, "ordspmv");
45
- this.order_id ?? (this.order_id = this.order?.id);
46
- this.shipping_method_id ?? (this.shipping_method_id = this.shipping_method?.id);
47
- this.version ?? (this.version = this.order?.version);
65
+ this.order_id ??= this.order?.id;
66
+ this.return_id ??= this.return?.id;
67
+ this.claim_id ??= this.claim?.id;
68
+ this.exchange_id ??= this.exchange?.id;
69
+ this.shipping_method_id ??= this.shipping_method?.id;
70
+ this.version ??= this.order?.version;
48
71
  }
49
72
  onInit() {
50
73
  this.id = (0, utils_1.generateEntityId)(this.id, "ordspmv");
51
- this.order_id ?? (this.order_id = this.order?.id);
52
- this.shipping_method_id ?? (this.shipping_method_id = this.shipping_method?.id);
53
- this.version ?? (this.version = this.order?.version);
74
+ this.order_id ??= this.order?.id;
75
+ this.return_id ??= this.return?.id;
76
+ this.claim_id ??= this.claim?.id;
77
+ this.exchange_id ??= this.exchange?.id;
78
+ this.shipping_method_id ??= this.shipping_method?.id;
79
+ this.version ??= this.order?.version;
54
80
  }
55
81
  };
56
82
  __decorate([
57
83
  (0, core_1.PrimaryKey)({ columnType: "text" }),
58
84
  __metadata("design:type", String)
59
- ], OrderShippingMethod.prototype, "id", void 0);
85
+ ], OrderShipping.prototype, "id", void 0);
60
86
  __decorate([
61
87
  (0, core_1.ManyToOne)({
62
88
  entity: () => order_1.default,
@@ -66,18 +92,72 @@ __decorate([
66
92
  }),
67
93
  OrderIdIndex.MikroORMIndex(),
68
94
  __metadata("design:type", String)
69
- ], OrderShippingMethod.prototype, "order_id", void 0);
70
- __decorate([
71
- (0, core_1.Property)({ columnType: "integer" }),
72
- OrderVersionIndex.MikroORMIndex(),
73
- __metadata("design:type", Number)
74
- ], OrderShippingMethod.prototype, "version", void 0);
95
+ ], OrderShipping.prototype, "order_id", void 0);
75
96
  __decorate([
76
97
  (0, core_1.ManyToOne)(() => order_1.default, {
77
98
  persist: false,
78
99
  }),
79
- __metadata("design:type", order_1.default)
80
- ], OrderShippingMethod.prototype, "order", void 0);
100
+ __metadata("design:type", Object)
101
+ ], OrderShipping.prototype, "order", void 0);
102
+ __decorate([
103
+ (0, core_1.ManyToOne)({
104
+ entity: () => return_1.default,
105
+ mapToPk: true,
106
+ fieldName: "return_id",
107
+ columnType: "text",
108
+ nullable: true,
109
+ }),
110
+ ReturnIdIndex.MikroORMIndex(),
111
+ __metadata("design:type", Object)
112
+ ], OrderShipping.prototype, "return_id", void 0);
113
+ __decorate([
114
+ (0, core_1.ManyToOne)(() => return_1.default, {
115
+ persist: false,
116
+ nullable: true,
117
+ }),
118
+ __metadata("design:type", Object)
119
+ ], OrderShipping.prototype, "return", void 0);
120
+ __decorate([
121
+ (0, core_1.ManyToOne)({
122
+ entity: () => exchange_1.default,
123
+ mapToPk: true,
124
+ fieldName: "exchange_id",
125
+ columnType: "text",
126
+ nullable: true,
127
+ }),
128
+ ExchangeIdIndex.MikroORMIndex(),
129
+ __metadata("design:type", Object)
130
+ ], OrderShipping.prototype, "exchange_id", void 0);
131
+ __decorate([
132
+ (0, core_1.ManyToOne)(() => exchange_1.default, {
133
+ persist: false,
134
+ nullable: true,
135
+ }),
136
+ __metadata("design:type", Object)
137
+ ], OrderShipping.prototype, "exchange", void 0);
138
+ __decorate([
139
+ (0, core_1.ManyToOne)({
140
+ entity: () => claim_1.default,
141
+ mapToPk: true,
142
+ fieldName: "claim_id",
143
+ columnType: "text",
144
+ nullable: true,
145
+ }),
146
+ ClaimIdIndex.MikroORMIndex(),
147
+ __metadata("design:type", Object)
148
+ ], OrderShipping.prototype, "claim_id", void 0);
149
+ __decorate([
150
+ (0, core_1.ManyToOne)(() => claim_1.default, {
151
+ persist: false,
152
+ nullable: true,
153
+ }),
154
+ __metadata("design:type", Object)
155
+ ], OrderShipping.prototype, "claim", void 0);
156
+ __decorate([
157
+ (0, core_1.Property)({ columnType: "integer" }),
158
+ OrderVersionIndex.MikroORMIndex(),
159
+ __metadata("design:type", Number)
160
+ ], OrderShipping.prototype, "version", void 0);
81
161
  __decorate([
82
162
  (0, core_1.ManyToOne)({
83
163
  entity: () => shipping_method_1.default,
@@ -87,13 +167,13 @@ __decorate([
87
167
  }),
88
168
  ItemIdIndex.MikroORMIndex(),
89
169
  __metadata("design:type", String)
90
- ], OrderShippingMethod.prototype, "shipping_method_id", void 0);
170
+ ], OrderShipping.prototype, "shipping_method_id", void 0);
91
171
  __decorate([
92
172
  (0, core_1.ManyToOne)(() => shipping_method_1.default, {
93
173
  persist: false,
94
174
  }),
95
- __metadata("design:type", shipping_method_1.default)
96
- ], OrderShippingMethod.prototype, "shipping_method", void 0);
175
+ __metadata("design:type", Object)
176
+ ], OrderShipping.prototype, "shipping_method", void 0);
97
177
  __decorate([
98
178
  (0, core_1.Property)({
99
179
  onCreate: () => new Date(),
@@ -101,7 +181,7 @@ __decorate([
101
181
  defaultRaw: "now()",
102
182
  }),
103
183
  __metadata("design:type", Date)
104
- ], OrderShippingMethod.prototype, "created_at", void 0);
184
+ ], OrderShipping.prototype, "created_at", void 0);
105
185
  __decorate([
106
186
  (0, core_1.Property)({
107
187
  onCreate: () => new Date(),
@@ -110,26 +190,26 @@ __decorate([
110
190
  defaultRaw: "now()",
111
191
  }),
112
192
  __metadata("design:type", Date)
113
- ], OrderShippingMethod.prototype, "updated_at", void 0);
193
+ ], OrderShipping.prototype, "updated_at", void 0);
114
194
  __decorate([
115
195
  (0, core_1.Property)({ columnType: "timestamptz", nullable: true }),
116
196
  DeletedAtIndex.MikroORMIndex(),
117
197
  __metadata("design:type", Object)
118
- ], OrderShippingMethod.prototype, "deleted_at", void 0);
198
+ ], OrderShipping.prototype, "deleted_at", void 0);
119
199
  __decorate([
120
200
  (0, core_1.BeforeCreate)(),
121
201
  __metadata("design:type", Function),
122
202
  __metadata("design:paramtypes", []),
123
203
  __metadata("design:returntype", void 0)
124
- ], OrderShippingMethod.prototype, "onCreate", null);
204
+ ], OrderShipping.prototype, "onCreate", null);
125
205
  __decorate([
126
206
  (0, core_1.OnInit)(),
127
207
  __metadata("design:type", Function),
128
208
  __metadata("design:paramtypes", []),
129
209
  __metadata("design:returntype", void 0)
130
- ], OrderShippingMethod.prototype, "onInit", null);
131
- OrderShippingMethod = __decorate([
132
- (0, core_1.Entity)({ tableName: "order_shipping" })
133
- ], OrderShippingMethod);
134
- exports.default = OrderShippingMethod;
210
+ ], OrderShipping.prototype, "onInit", null);
211
+ OrderShipping = __decorate([
212
+ (0, core_1.Entity)({ tableName })
213
+ ], OrderShipping);
214
+ exports.default = OrderShipping;
135
215
  //# sourceMappingURL=order-shipping-method.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"order-shipping-method.js","sourceRoot":"","sources":["../../src/models/order-shipping-method.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,2CAGwB;AACxB,0CAQwB;AACxB,oDAA2B;AAC3B,wEAA8C;AAI9C,MAAM,YAAY,GAAG,IAAA,sCAA8B,EAAC;IAClD,SAAS,EAAE,gBAAgB;IAC3B,OAAO,EAAE,CAAC,UAAU,CAAC;IACrB,KAAK,EAAE,wBAAwB;CAChC,CAAC,CAAA;AAEF,MAAM,iBAAiB,GAAG,IAAA,sCAA8B,EAAC;IACvD,SAAS,EAAE,gBAAgB;IAC3B,OAAO,EAAE,CAAC,SAAS,CAAC;IACpB,KAAK,EAAE,wBAAwB;CAChC,CAAC,CAAA;AAEF,MAAM,WAAW,GAAG,IAAA,sCAA8B,EAAC;IACjD,SAAS,EAAE,gBAAgB;IAC3B,OAAO,EAAE,CAAC,oBAAoB,CAAC;IAC/B,KAAK,EAAE,wBAAwB;CAChC,CAAC,CAAA;AAEF,MAAM,cAAc,GAAG,IAAA,sCAA8B,EAAC;IACpD,SAAS,EAAE,OAAO;IAClB,OAAO,EAAE,YAAY;IACrB,KAAK,EAAE,wBAAwB;CAChC,CAAC,CAAA;AAGa,IAAM,mBAAmB,GAAzB,MAAM,m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ACe;AAIjB;IAFC,IAAA,eAAQ,EAAC,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC;IACnC,iBAAiB,CAAC,aAAa,EAAE;;8CACnB;AASf;IAPC,IAAA,gBAAS,EAAC;QACT,MAAM,EAAE,GAAG,EAAE,CAAC,yBAAmB;QACjC,SAAS,EAAE,oBAAoB;QAC/B,OAAO,EAAE,IAAI;QACb,UAAU,EAAE,MAAM;KACnB,CAAC;IACD,WAAW,CAAC,aAAa,EAAE;;yDACF;AAK1B;IAHC,IAAA,gBAAS,EAAC,GAAG,EAAE,CAAC,yBAAmB,EAAE;QACpC,OAAO,EAAE,KAAK;KACf,CAAC;;sDACuC;AAOzC;IALC,IAAA,eAAQ,EAAC;QACR,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE;QAC1B,UAAU,EAAE,aAAa;QACzB,UAAU,EAAE,OAAO;KACpB,CAAC;8BACU,IAAI;iDAAA;AAQhB;IANC,IAAA,eAAQ,EAAC;QACR,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE;QAC1B,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE;QAC1B,UAAU,EAAE,aAAa;QACzB,UAAU,EAAE,OAAO;KACpB,CAAC;8BACU,IAAI;iDAAA;AAIhB;IAFC,IAAA,eAAQ,EAAC,EAAE,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACvD,cAAc,CAAC,aAAa,EAAE;;iDACD;AAG9B;IADC,IAAA,mBAAY,GAAE;;;;6CASd;AAGD;IADC,IAAA,aAAM,GAAE;;;;2CASR;AA7HkB,aAAa;IADjC,IAAA,aAAM,EAAC,EAAE,SAAS,EAAE,CAAC;GACD,aAAa,CA8HjC;kBA9HoB,aAAa"}
@@ -1,5 +1,6 @@
1
- import { BigNumber } from "@medusajs/utils";
2
- import { Order } from ".";
1
+ import { BigNumber } from "@medusajs/framework/utils";
2
+ import { Rel } from "@mikro-orm/core";
3
+ import Order from "./order";
3
4
  type OrderSummaryTotals = {
4
5
  total: BigNumber;
5
6
  subtotal: BigNumber;
@@ -13,17 +14,14 @@ type OrderSummaryTotals = {
13
14
  net_total: BigNumber;
14
15
  net_subtotal: BigNumber;
15
16
  net_total_tax: BigNumber;
16
- future_total: BigNumber;
17
- future_subtotal: BigNumber;
18
- future_total_tax: BigNumber;
19
- future_projected_total: BigNumber;
20
17
  balance: BigNumber;
21
- future_balance: BigNumber;
18
+ paid_total: BigNumber;
19
+ refunded_total: BigNumber;
22
20
  };
23
21
  export default class OrderSummary {
24
22
  id: string;
25
23
  order_id: string;
26
- order: Order;
24
+ order: Rel<Order>;
27
25
  version: number;
28
26
  totals: OrderSummaryTotals | null;
29
27
  created_at: Date;
@@ -33,3 +31,4 @@ export default class OrderSummary {
33
31
  onInit(): void;
34
32
  }
35
33
  export {};
34
+ //# sourceMappingURL=order-summary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"order-summary.d.ts","sourceRoot":"","sources":["../../src/models/order-summary.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAGV,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAOL,GAAG,EACJ,MAAM,iBAAiB,CAAA;AACxB,OAAO,KAAK,MAAM,SAAS,CAAA;AAE3B,KAAK,kBAAkB,GAAG;IACxB,KAAK,EAAE,SAAS,CAAA;IAChB,QAAQ,EAAE,SAAS,CAAA;IACnB,SAAS,EAAE,SAAS,CAAA;IAEpB,aAAa,EAAE,SAAS,CAAA;IACxB,eAAe,EAAE,SAAS,CAAA;IAC1B,cAAc,EAAE,SAAS,CAAA;IACzB,oBAAoB,EAAE,SAAS,CAAA;IAC/B,eAAe,EAAE,SAAS,CAAA;IAC1B,eAAe,EAAE,SAAS,CAAA;IAE1B,SAAS,EAAE,SAAS,CAAA;IACpB,YAAY,EAAE,SAAS,CAAA;IACvB,aAAa,EAAE,SAAS,CAAA;IAExB,OAAO,EAAE,SAAS,CAAA;IAElB,UAAU,EAAE,SAAS,CAAA;IACrB,cAAc,EAAE,SAAS,CAAA;CAC1B,CAAA;AAkBD,MAAM,CAAC,OAAO,OAAO,YAAY;IAE/B,EAAE,EAAE,MAAM,CAAA;IASV,QAAQ,EAAE,MAAM,CAAA;IAKhB,KAAK,EAAE,GAAG,CAAC,KAAK,CAAC,CAAA;IAMjB,OAAO,EAAE,MAAM,CAAI;IAGnB,MAAM,EAAE,kBAAkB,GAAG,IAAI,CAA2B;IAO5D,UAAU,EAAE,IAAI,CAAA;IAQhB,UAAU,EAAE,IAAI,CAAA;IAIhB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAO;IAG9B,QAAQ;IAMR,MAAM;CAIP"}
@@ -8,17 +8,21 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
8
  var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
11
14
  Object.defineProperty(exports, "__esModule", { value: true });
12
- const utils_1 = require("@medusajs/utils");
15
+ const utils_1 = require("@medusajs/framework/utils");
13
16
  const core_1 = require("@mikro-orm/core");
14
- const _models_1 = require(".");
17
+ const order_1 = __importDefault(require("./order"));
18
+ const tableName = "order_summary";
15
19
  const OrderIdVersionIndex = (0, utils_1.createPsqlIndexStatementHelper)({
16
- tableName: "order_summary",
20
+ tableName,
17
21
  columns: ["order_id", "version"],
18
22
  where: "deleted_at IS NOT NULL",
19
23
  });
20
24
  const DeletedAtIndex = (0, utils_1.createPsqlIndexStatementHelper)({
21
- tableName: "order",
25
+ tableName,
22
26
  columns: "deleted_at",
23
27
  where: "deleted_at IS NOT NULL",
24
28
  });
@@ -30,11 +34,11 @@ let OrderSummary = class OrderSummary {
30
34
  }
31
35
  onCreate() {
32
36
  this.id = (0, utils_1.generateEntityId)(this.id, "ordsum");
33
- this.order_id ?? (this.order_id = this.order?.id);
37
+ this.order_id ??= this.order?.id;
34
38
  }
35
39
  onInit() {
36
40
  this.id = (0, utils_1.generateEntityId)(this.id, "ordsum");
37
- this.order_id ?? (this.order_id = this.order?.id);
41
+ this.order_id ??= this.order?.id;
38
42
  }
39
43
  };
40
44
  __decorate([
@@ -43,7 +47,7 @@ __decorate([
43
47
  ], OrderSummary.prototype, "id", void 0);
44
48
  __decorate([
45
49
  (0, core_1.ManyToOne)({
46
- entity: () => _models_1.Order,
50
+ entity: () => order_1.default,
47
51
  columnType: "text",
48
52
  fieldName: "order_id",
49
53
  mapToPk: true,
@@ -52,10 +56,10 @@ __decorate([
52
56
  __metadata("design:type", String)
53
57
  ], OrderSummary.prototype, "order_id", void 0);
54
58
  __decorate([
55
- (0, core_1.ManyToOne)(() => _models_1.Order, {
59
+ (0, core_1.ManyToOne)(() => order_1.default, {
56
60
  persist: false,
57
61
  }),
58
- __metadata("design:type", _models_1.Order)
62
+ __metadata("design:type", Object)
59
63
  ], OrderSummary.prototype, "order", void 0);
60
64
  __decorate([
61
65
  (0, core_1.Property)({
@@ -103,7 +107,7 @@ __decorate([
103
107
  __metadata("design:returntype", void 0)
104
108
  ], OrderSummary.prototype, "onInit", null);
105
109
  OrderSummary = __decorate([
106
- (0, core_1.Entity)({ tableName: "order_summary" }),
110
+ (0, core_1.Entity)({ tableName }),
107
111
  OrderIdVersionIndex.MikroORMIndex()
108
112
  ], OrderSummary);
109
113
  exports.default = OrderSummary;
@@ -1 +1 @@
1
- {"version":3,"file":"order-summary.js","sourceRoot":"","sources":["../../src/models/order-summary.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,2CAIwB;AACxB,0CAOwB;AACxB,qCAA+B;AA2B/B,MAAM,mBAAmB,GAAG,IAAA,sCAA8B,EAAC;IACzD,SAAS,EAAE,eAAe;IAC1B,OAAO,EAAE,CAAC,UAAU,EAAE,SAAS,CAAC;IAChC,KAAK,EAAE,wBAAwB;CAChC,C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OAAO;KACpB,CAAC;8BACU,IAAI;gDAAA;AAQhB;IANC,IAAA,eAAQ,EAAC;QACR,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE;QAC1B,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE;QAC1B,UAAU,EAAE,aAAa;QACzB,UAAU,EAAE,OAAO;KACpB,CAAC;8BACU,IAAI;gDAAA;AAIhB;IAFC,IAAA,eAAQ,EAAC,EAAE,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACvD,cAAc,CAAC,aAAa,EAAE;;gDACD;AAG9B;IADC,IAAA,mBAAY,GAAE;;;;4CAId;AAGD;IADC,IAAA,aAAM,GAAE;;;;0CAIR;AAxDkB,YAAY;IAFhC,IAAA,aAAM,EAAC,EAAE,SAAS,EAAE,CAAC;IACrB,mBAAmB,CAAC,aAAa,EAAE;GACf,YAAY,CAyDhC;kBAzDoB,YAAY"}
@@ -1,15 +1,16 @@
1
- import { DAL } from "@medusajs/types";
2
- import { OrderStatus } from "@medusajs/utils";
3
- import { Collection, OptionalProps } from "@mikro-orm/core";
4
- import Address from "./address";
1
+ import { DAL } from "@medusajs/framework/types";
2
+ import { OrderStatus } from "@medusajs/framework/utils";
3
+ import { Collection, OptionalProps, Rel } from "@mikro-orm/core";
4
+ import OrderAddress from "./address";
5
5
  import OrderItem from "./order-item";
6
- import OrderShippingMethod from "./order-shipping-method";
6
+ import OrderShipping from "./order-shipping-method";
7
7
  import OrderSummary from "./order-summary";
8
- import Transaction from "./transaction";
9
- type OptionalOrderProps = "shipping_address" | "billing_address" | DAL.EntityDateColumns;
8
+ import OrderTransaction from "./transaction";
9
+ type OptionalOrderProps = "shipping_address" | "billing_address" | DAL.ModelDateColumns;
10
10
  export default class Order {
11
11
  [OptionalProps]?: OptionalOrderProps;
12
12
  id: string;
13
+ display_id: number;
13
14
  region_id: string | null;
14
15
  customer_id: string | null;
15
16
  version: number;
@@ -19,15 +20,15 @@ export default class Order {
19
20
  email: string | null;
20
21
  currency_code: string;
21
22
  shipping_address_id?: string | null;
22
- shipping_address?: Address | null;
23
+ shipping_address?: Rel<OrderAddress> | null;
23
24
  billing_address_id?: string | null;
24
- billing_address?: Address | null;
25
+ billing_address?: Rel<OrderAddress> | null;
25
26
  no_notification: boolean | null;
26
27
  summary: Collection<OrderSummary, object>;
27
28
  metadata: Record<string, unknown> | null;
28
29
  items: Collection<OrderItem, object>;
29
- shipping_methods: Collection<OrderShippingMethod, object>;
30
- transactions: Collection<Transaction, object>;
30
+ shipping_methods: Collection<OrderShipping, object>;
31
+ transactions: Collection<OrderTransaction, object>;
31
32
  created_at: Date;
32
33
  updated_at: Date;
33
34
  deleted_at: Date | null;
@@ -36,3 +37,4 @@ export default class Order {
36
37
  onInit(): void;
37
38
  }
38
39
  export {};
40
+ //# sourceMappingURL=order.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"order.d.ts","sourceRoot":"","sources":["../../src/models/order.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,2BAA2B,CAAA;AAC/C,OAAO,EACL,WAAW,EAGZ,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAGL,UAAU,EAMV,aAAa,EAGb,GAAG,EACJ,MAAM,iBAAiB,CAAA;AACxB,OAAO,YAAY,MAAM,WAAW,CAAA;AACpC,OAAO,SAAS,MAAM,cAAc,CAAA;AACpC,OAAO,aAAa,MAAM,yBAAyB,CAAA;AACnD,OAAO,YAAY,MAAM,iBAAiB,CAAA;AAC1C,OAAO,gBAAgB,MAAM,eAAe,CAAA;AAE5C,KAAK,kBAAkB,GACnB,kBAAkB,GAClB,iBAAiB,GACjB,GAAG,CAAC,gBAAgB,CAAA;AAyDxB,MAAM,CAAC,OAAO,OAAO,KAAK;IACxB,CAAC,aAAa,CAAC,CAAC,EAAE,kBAAkB,CAAA;IAGpC,EAAE,EAAE,MAAM,CAAA;IAIV,UAAU,EAAE,MAAM,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