@medusajs/order 0.1.3 → 1.0.0-rc-20241001083650

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 +20 -21
  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
@@ -0,0 +1 @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AO;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,2BAA2B,CAAC,aAAa,EAAE;;iDACd;AAG9B;IADC,IAAA,eAAQ,EAAC,EAAE,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACzB;AAG/B;IADC,IAAA,mBAAY,GAAE;;;;6CAGd;AAGD;IADC,IAAA,aAAM,GAAE;;;;2CAGR;AA3GkB,aAAa;IAFjC,IAAA,aAAM,EAAC,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;IACvC,IAAA,aAAM,EAAC,gBAAQ,CAAC,kCAAkC,CAAC;GAC/B,aAAa,CA4GjC;kBA5GoB,aAAa"}
@@ -1,14 +1,23 @@
1
- export { default as Address } from "./address";
2
- export { default as LineItem } from "./line-item";
3
- export { default as LineItemAdjustment } from "./line-item-adjustment";
4
- export { default as LineItemTaxLine } from "./line-item-tax-line";
1
+ export { default as OrderAddress } from "./address";
2
+ export { default as OrderClaim } from "./claim";
3
+ export { default as OrderClaimItem } from "./claim-item";
4
+ export { default as OrderClaimItemImage } from "./claim-item-image";
5
+ export { default as OrderExchange } from "./exchange";
6
+ export { default as OrderExchangeItem } from "./exchange-item";
7
+ export { default as OrderLineItem } from "./line-item";
8
+ export { default as OrderLineItemAdjustment } from "./line-item-adjustment";
9
+ export { default as OrderLineItemTaxLine } from "./line-item-tax-line";
5
10
  export { default as Order } from "./order";
6
11
  export { default as OrderChange } from "./order-change";
7
12
  export { default as OrderChangeAction } from "./order-change-action";
8
13
  export { default as OrderItem } from "./order-item";
9
- export { default as OrderShippingMethod } from "./order-shipping-method";
14
+ export { default as OrderShipping } from "./order-shipping-method";
10
15
  export { default as OrderSummary } from "./order-summary";
11
- export { default as ShippingMethod } from "./shipping-method";
12
- export { default as ShippingMethodAdjustment } from "./shipping-method-adjustment";
13
- export { default as ShippingMethodTaxLine } from "./shipping-method-tax-line";
14
- export { default as Transaction } from "./transaction";
16
+ export { default as Return } from "./return";
17
+ export { default as ReturnItem } from "./return-item";
18
+ export { default as ReturnReason } from "./return-reason";
19
+ export { default as OrderShippingMethod } from "./shipping-method";
20
+ export { default as OrderShippingMethodAdjustment } from "./shipping-method-adjustment";
21
+ export { default as OrderShippingMethodTaxLine } from "./shipping-method-tax-line";
22
+ export { default as OrderTransaction } from "./transaction";
23
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,WAAW,CAAA;AACnD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,SAAS,CAAA;AAC/C,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,cAAc,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AACnE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,YAAY,CAAA;AACrD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAC9D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,aAAa,CAAA;AACtD,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,wBAAwB,CAAA;AAC3E,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AACtE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AACpE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,cAAc,CAAA;AACnD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAClE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,iBAAiB,CAAA;AACzD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,eAAe,CAAA;AACrD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,iBAAiB,CAAA;AACzD,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAClE,OAAO,EAAE,OAAO,IAAI,6BAA6B,EAAE,MAAM,8BAA8B,CAAA;AACvF,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,4BAA4B,CAAA;AAClF,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,eAAe,CAAA"}
@@ -3,15 +3,25 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Transaction = exports.ShippingMethodTaxLine = exports.ShippingMethodAdjustment = exports.ShippingMethod = exports.OrderSummary = exports.OrderShippingMethod = exports.OrderItem = exports.OrderChangeAction = exports.OrderChange = exports.Order = exports.LineItemTaxLine = exports.LineItemAdjustment = exports.LineItem = exports.Address = void 0;
6
+ exports.OrderTransaction = exports.OrderShippingMethodTaxLine = exports.OrderShippingMethodAdjustment = exports.OrderShippingMethod = exports.ReturnReason = exports.ReturnItem = exports.Return = exports.OrderSummary = exports.OrderShipping = exports.OrderItem = exports.OrderChangeAction = exports.OrderChange = exports.Order = exports.OrderLineItemTaxLine = exports.OrderLineItemAdjustment = exports.OrderLineItem = exports.OrderExchangeItem = exports.OrderExchange = exports.OrderClaimItemImage = exports.OrderClaimItem = exports.OrderClaim = exports.OrderAddress = void 0;
7
7
  var address_1 = require("./address");
8
- Object.defineProperty(exports, "Address", { enumerable: true, get: function () { return __importDefault(address_1).default; } });
8
+ Object.defineProperty(exports, "OrderAddress", { enumerable: true, get: function () { return __importDefault(address_1).default; } });
9
+ var claim_1 = require("./claim");
10
+ Object.defineProperty(exports, "OrderClaim", { enumerable: true, get: function () { return __importDefault(claim_1).default; } });
11
+ var claim_item_1 = require("./claim-item");
12
+ Object.defineProperty(exports, "OrderClaimItem", { enumerable: true, get: function () { return __importDefault(claim_item_1).default; } });
13
+ var claim_item_image_1 = require("./claim-item-image");
14
+ Object.defineProperty(exports, "OrderClaimItemImage", { enumerable: true, get: function () { return __importDefault(claim_item_image_1).default; } });
15
+ var exchange_1 = require("./exchange");
16
+ Object.defineProperty(exports, "OrderExchange", { enumerable: true, get: function () { return __importDefault(exchange_1).default; } });
17
+ var exchange_item_1 = require("./exchange-item");
18
+ Object.defineProperty(exports, "OrderExchangeItem", { enumerable: true, get: function () { return __importDefault(exchange_item_1).default; } });
9
19
  var line_item_1 = require("./line-item");
10
- Object.defineProperty(exports, "LineItem", { enumerable: true, get: function () { return __importDefault(line_item_1).default; } });
20
+ Object.defineProperty(exports, "OrderLineItem", { enumerable: true, get: function () { return __importDefault(line_item_1).default; } });
11
21
  var line_item_adjustment_1 = require("./line-item-adjustment");
12
- Object.defineProperty(exports, "LineItemAdjustment", { enumerable: true, get: function () { return __importDefault(line_item_adjustment_1).default; } });
22
+ Object.defineProperty(exports, "OrderLineItemAdjustment", { enumerable: true, get: function () { return __importDefault(line_item_adjustment_1).default; } });
13
23
  var line_item_tax_line_1 = require("./line-item-tax-line");
14
- Object.defineProperty(exports, "LineItemTaxLine", { enumerable: true, get: function () { return __importDefault(line_item_tax_line_1).default; } });
24
+ Object.defineProperty(exports, "OrderLineItemTaxLine", { enumerable: true, get: function () { return __importDefault(line_item_tax_line_1).default; } });
15
25
  var order_1 = require("./order");
16
26
  Object.defineProperty(exports, "Order", { enumerable: true, get: function () { return __importDefault(order_1).default; } });
17
27
  var order_change_1 = require("./order-change");
@@ -21,15 +31,21 @@ Object.defineProperty(exports, "OrderChangeAction", { enumerable: true, get: fun
21
31
  var order_item_1 = require("./order-item");
22
32
  Object.defineProperty(exports, "OrderItem", { enumerable: true, get: function () { return __importDefault(order_item_1).default; } });
23
33
  var order_shipping_method_1 = require("./order-shipping-method");
24
- Object.defineProperty(exports, "OrderShippingMethod", { enumerable: true, get: function () { return __importDefault(order_shipping_method_1).default; } });
34
+ Object.defineProperty(exports, "OrderShipping", { enumerable: true, get: function () { return __importDefault(order_shipping_method_1).default; } });
25
35
  var order_summary_1 = require("./order-summary");
26
36
  Object.defineProperty(exports, "OrderSummary", { enumerable: true, get: function () { return __importDefault(order_summary_1).default; } });
37
+ var return_1 = require("./return");
38
+ Object.defineProperty(exports, "Return", { enumerable: true, get: function () { return __importDefault(return_1).default; } });
39
+ var return_item_1 = require("./return-item");
40
+ Object.defineProperty(exports, "ReturnItem", { enumerable: true, get: function () { return __importDefault(return_item_1).default; } });
41
+ var return_reason_1 = require("./return-reason");
42
+ Object.defineProperty(exports, "ReturnReason", { enumerable: true, get: function () { return __importDefault(return_reason_1).default; } });
27
43
  var shipping_method_1 = require("./shipping-method");
28
- Object.defineProperty(exports, "ShippingMethod", { enumerable: true, get: function () { return __importDefault(shipping_method_1).default; } });
44
+ Object.defineProperty(exports, "OrderShippingMethod", { enumerable: true, get: function () { return __importDefault(shipping_method_1).default; } });
29
45
  var shipping_method_adjustment_1 = require("./shipping-method-adjustment");
30
- Object.defineProperty(exports, "ShippingMethodAdjustment", { enumerable: true, get: function () { return __importDefault(shipping_method_adjustment_1).default; } });
46
+ Object.defineProperty(exports, "OrderShippingMethodAdjustment", { enumerable: true, get: function () { return __importDefault(shipping_method_adjustment_1).default; } });
31
47
  var shipping_method_tax_line_1 = require("./shipping-method-tax-line");
32
- Object.defineProperty(exports, "ShippingMethodTaxLine", { enumerable: true, get: function () { return __importDefault(shipping_method_tax_line_1).default; } });
48
+ Object.defineProperty(exports, "OrderShippingMethodTaxLine", { enumerable: true, get: function () { return __importDefault(shipping_method_tax_line_1).default; } });
33
49
  var transaction_1 = require("./transaction");
34
- Object.defineProperty(exports, "Transaction", { enumerable: true, get: function () { return __importDefault(transaction_1).default; } });
50
+ Object.defineProperty(exports, "OrderTransaction", { enumerable: true, get: function () { return __importDefault(transaction_1).default; } });
35
51
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;;;;AAAA,qCAA8C;AAArC,mHAAA,OAAO,OAAW;AAC3B,yCAAiD;AAAxC,sHAAA,OAAO,OAAY;AAC5B,+DAAsE;AAA7D,2IAAA,OAAO,OAAsB;AACtC,2DAAiE;AAAxD,sIAAA,OAAO,OAAmB;AACnC,iCAA0C;AAAjC,+GAAA,OAAO,OAAS;AACzB,+CAAuD;AAA9C,4HAAA,OAAO,OAAe;AAC/B,6DAAoE;AAA3D,yIAAA,OAAO,OAAqB;AACrC,2CAAmD;AAA1C,wHAAA,OAAO,OAAa;AAC7B,iEAAwE;AAA/D,6IAAA,OAAO,OAAuB;AACvC,iDAAyD;AAAhD,8HAAA,OAAO,OAAgB;AAChC,qDAA6D;AAApD,kIAAA,OAAO,OAAkB;AAClC,2EAAkF;AAAzE,uJAAA,OAAO,OAA4B;AAC5C,uEAA6E;AAApE,kJAAA,OAAO,OAAyB;AACzC,6CAAsD;AAA7C,2HAAA,OAAO,OAAe"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;;;;AAAA,qCAAmD;AAA1C,wHAAA,OAAO,OAAgB;AAChC,iCAA+C;AAAtC,oHAAA,OAAO,OAAc;AAC9B,2CAAwD;AAA/C,6HAAA,OAAO,OAAkB;AAClC,uDAAmE;AAA1D,wIAAA,OAAO,OAAuB;AACvC,uCAAqD;AAA5C,0HAAA,OAAO,OAAiB;AACjC,iDAA8D;AAArD,mIAAA,OAAO,OAAqB;AACrC,yCAAsD;AAA7C,2HAAA,OAAO,OAAiB;AACjC,+DAA2E;AAAlE,gJAAA,OAAO,OAA2B;AAC3C,2DAAsE;AAA7D,2IAAA,OAAO,OAAwB;AACxC,iCAA0C;AAAjC,+GAAA,OAAO,OAAS;AACzB,+CAAuD;AAA9C,4HAAA,OAAO,OAAe;AAC/B,6DAAoE;AAA3D,yIAAA,OAAO,OAAqB;AACrC,2CAAmD;AAA1C,wHAAA,OAAO,OAAa;AAC7B,iEAAkE;AAAzD,uIAAA,OAAO,OAAiB;AACjC,iDAAyD;AAAhD,8HAAA,OAAO,OAAgB;AAChC,mCAA4C;AAAnC,iHAAA,OAAO,OAAU;AAC1B,6CAAqD;AAA5C,0HAAA,OAAO,OAAc;AAC9B,iDAAyD;AAAhD,8HAAA,OAAO,OAAgB;AAChC,qDAAkE;AAAzD,uIAAA,OAAO,OAAuB;AACvC,2EAAuF;AAA9E,4JAAA,OAAO,OAAiC;AACjD,uEAAkF;AAAzE,uJAAA,OAAO,OAA8B;AAC9C,6CAA2D;AAAlD,gIAAA,OAAO,OAAoB"}
@@ -1,8 +1,10 @@
1
+ import { Rel } from "@mikro-orm/core";
1
2
  import AdjustmentLine from "./adjustment-line";
2
- import LineItem from "./line-item";
3
- export default class LineItemAdjustment extends AdjustmentLine {
4
- item: LineItem;
3
+ import OrderLineItem from "./line-item";
4
+ export default class OrderLineItemAdjustment extends AdjustmentLine {
5
+ item: Rel<OrderLineItem>;
5
6
  item_id: string;
6
7
  onCreate(): void;
7
8
  onInit(): void;
8
9
  }
10
+ //# sourceMappingURL=line-item-adjustment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"line-item-adjustment.d.ts","sourceRoot":"","sources":["../../src/models/line-item-adjustment.ts"],"names":[],"mappings":"AAIA,OAAO,EAA2C,GAAG,EAAE,MAAM,iBAAiB,CAAA;AAC9E,OAAO,cAAc,MAAM,mBAAmB,CAAA;AAC9C,OAAO,aAAa,MAAM,aAAa,CAAA;AAQvC,MAAM,CAAC,OAAO,OAAO,uBAAwB,SAAQ,cAAc;IAIjE,IAAI,EAAE,GAAG,CAAC,aAAa,CAAC,CAAA;IAUxB,OAAO,EAAE,MAAM,CAAA;IAGf,QAAQ;IAMR,MAAM;CAIP"}
@@ -12,7 +12,7 @@ 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 adjustment_line_1 = __importDefault(require("./adjustment-line"));
18
18
  const line_item_1 = __importDefault(require("./line-item"));
@@ -20,22 +20,22 @@ const ItemIdIndex = (0, utils_1.createPsqlIndexStatementHelper)({
20
20
  tableName: "order_line_item_adjustment",
21
21
  columns: "item_id",
22
22
  });
23
- let LineItemAdjustment = class LineItemAdjustment extends adjustment_line_1.default {
23
+ let OrderLineItemAdjustment = class OrderLineItemAdjustment extends adjustment_line_1.default {
24
24
  onCreate() {
25
25
  this.id = (0, utils_1.generateEntityId)(this.id, "ordliadj");
26
- this.item_id ?? (this.item_id = this.item?.id);
26
+ this.item_id ??= this.item?.id;
27
27
  }
28
28
  onInit() {
29
29
  this.id = (0, utils_1.generateEntityId)(this.id, "ordliadj");
30
- this.item_id ?? (this.item_id = this.item?.id);
30
+ this.item_id ??= this.item?.id;
31
31
  }
32
32
  };
33
33
  __decorate([
34
34
  (0, core_1.ManyToOne)(() => line_item_1.default, {
35
35
  persist: false,
36
36
  }),
37
- __metadata("design:type", line_item_1.default)
38
- ], LineItemAdjustment.prototype, "item", void 0);
37
+ __metadata("design:type", Object)
38
+ ], OrderLineItemAdjustment.prototype, "item", void 0);
39
39
  __decorate([
40
40
  (0, core_1.ManyToOne)({
41
41
  entity: () => line_item_1.default,
@@ -46,21 +46,21 @@ __decorate([
46
46
  }),
47
47
  ItemIdIndex.MikroORMIndex(),
48
48
  __metadata("design:type", String)
49
- ], LineItemAdjustment.prototype, "item_id", void 0);
49
+ ], OrderLineItemAdjustment.prototype, "item_id", void 0);
50
50
  __decorate([
51
51
  (0, core_1.BeforeCreate)(),
52
52
  __metadata("design:type", Function),
53
53
  __metadata("design:paramtypes", []),
54
54
  __metadata("design:returntype", void 0)
55
- ], LineItemAdjustment.prototype, "onCreate", null);
55
+ ], OrderLineItemAdjustment.prototype, "onCreate", null);
56
56
  __decorate([
57
57
  (0, core_1.OnInit)(),
58
58
  __metadata("design:type", Function),
59
59
  __metadata("design:paramtypes", []),
60
60
  __metadata("design:returntype", void 0)
61
- ], LineItemAdjustment.prototype, "onInit", null);
62
- LineItemAdjustment = __decorate([
61
+ ], OrderLineItemAdjustment.prototype, "onInit", null);
62
+ OrderLineItemAdjustment = __decorate([
63
63
  (0, core_1.Entity)({ tableName: "order_line_item_adjustment" })
64
- ], LineItemAdjustment);
65
- exports.default = LineItemAdjustment;
64
+ ], OrderLineItemAdjustment);
65
+ exports.default = OrderLineItemAdjustment;
66
66
  //# sourceMappingURL=line-item-adjustment.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"line-item-adjustment.js","sourceRoot":"","sources":["../../src/models/line-item-adjustment.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,2CAGwB;AACxB,0CAAyE;AACzE,wEAA8C;AAC9C,4DAAkC;AAElC,MAAM,WAAW,GAAG,IAAA,sCAA8B,EAAC;IACjD,SAAS,EAAE,4BAA4B;IACvC,OAAO,EAAE,SAAS;CACnB,CAAC,CAAA;AAGa,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,yBA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CACnB,CAAC,CAAA;AAGa,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,yBAAc;IAiBjE,QAAQ;QACN,IAAI,CAAC,EAAE,GAAG,IAAA,wBAAgB,EAAC,IAAI,CAAC,EAAE,EAAE,UAAU,CAAC,CAAA;QAC/C,IAAI,CAAC,OAAO,KAAK,IAAI,CAAC,IAAI,EAAE,EAAE,CAAA;IAChC,CAAC;IAGD,MAAM;QACJ,IAAI,CAAC,EAAE,GAAG,IAAA,wBAAgB,EAAC,IAAI,CAAC,EAAE,EAAE,UAAU,CAAC,CAAA;QAC/C,IAAI,CAAC,OAAO,KAAK,IAAI,CAAC,IAAI,EAAE,EAAE,CAAA;IAChC,CAAC;CACF,CAAA;AAvBC;IAHC,IAAA,gBAAS,EAAC,GAAG,EAAE,CAAC,mBAAa,EAAE;QAC9B,OAAO,EAAE,KAAK;KACf,CAAC;;qDACsB;AAUxB;IARC,IAAA,gBAAS,EAAC;QACT,MAAM,EAAE,GAAG,EAAE,CAAC,mBAAa;QAC3B,UAAU,EAAE,MAAM;QAClB,SAAS,EAAE,SAAS;QACpB,QAAQ,EAAE,SAAS;QACnB,OAAO,EAAE,IAAI;KACd,CAAC;IACD,WAAW,CAAC,aAAa,EAAE;;wDACb;AAGf;IADC,IAAA,mBAAY,GAAE;;;;uDAId;AAGD;IADC,IAAA,aAAM,GAAE;;;;qDAIR;AA1BkB,uBAAuB;IAD3C,IAAA,aAAM,EAAC,EAAE,SAAS,EAAE,4BAA4B,EAAE,CAAC;GAC/B,uBAAuB,CA2B3C;kBA3BoB,uBAAuB"}
@@ -1,8 +1,10 @@
1
- import LineItem from "./line-item";
1
+ import { Rel } from "@mikro-orm/core";
2
+ import OrderLineItem from "./line-item";
2
3
  import TaxLine from "./tax-line";
3
- export default class LineItemTaxLine extends TaxLine {
4
- item: LineItem;
4
+ export default class OrderLineItemTaxLine extends TaxLine {
5
+ item: Rel<OrderLineItem>;
5
6
  item_id: string;
6
7
  onCreate(): void;
7
8
  onInit(): void;
8
9
  }
10
+ //# sourceMappingURL=line-item-tax-line.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"line-item-tax-line.d.ts","sourceRoot":"","sources":["../../src/models/line-item-tax-line.ts"],"names":[],"mappings":"AAIA,OAAO,EAML,GAAG,EACJ,MAAM,iBAAiB,CAAA;AACxB,OAAO,aAAa,MAAM,aAAa,CAAA;AACvC,OAAO,OAAO,MAAM,YAAY,CAAA;AAQhC,MAAM,CAAC,OAAO,OAAO,oBAAqB,SAAQ,OAAO;IAKvD,IAAI,EAAE,GAAG,CAAC,aAAa,CAAC,CAAA;IAUxB,OAAO,EAAE,MAAM,CAAA;IAGf,QAAQ;IAMR,MAAM;CAIP"}
@@ -12,7 +12,7 @@ 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 tax_line_1 = __importDefault(require("./tax-line"));
@@ -20,14 +20,14 @@ const ItemIdIndex = (0, utils_1.createPsqlIndexStatementHelper)({
20
20
  tableName: "order_line_item_tax_line",
21
21
  columns: "item_id",
22
22
  });
23
- let LineItemTaxLine = class LineItemTaxLine extends tax_line_1.default {
23
+ let OrderLineItemTaxLine = class OrderLineItemTaxLine extends tax_line_1.default {
24
24
  onCreate() {
25
25
  this.id = (0, utils_1.generateEntityId)(this.id, "ordlitxl");
26
- this.item_id ?? (this.item_id = this.item?.id);
26
+ this.item_id ??= this.item?.id;
27
27
  }
28
28
  onInit() {
29
29
  this.id = (0, utils_1.generateEntityId)(this.id, "ordlitxl");
30
- this.item_id ?? (this.item_id = this.item?.id);
30
+ this.item_id ??= this.item?.id;
31
31
  }
32
32
  };
33
33
  __decorate([
@@ -35,8 +35,8 @@ __decorate([
35
35
  fieldName: "item_id",
36
36
  persist: false,
37
37
  }),
38
- __metadata("design:type", line_item_1.default)
39
- ], LineItemTaxLine.prototype, "item", void 0);
38
+ __metadata("design:type", Object)
39
+ ], OrderLineItemTaxLine.prototype, "item", void 0);
40
40
  __decorate([
41
41
  (0, core_1.ManyToOne)({
42
42
  entity: () => line_item_1.default,
@@ -47,21 +47,21 @@ __decorate([
47
47
  }),
48
48
  ItemIdIndex.MikroORMIndex(),
49
49
  __metadata("design:type", String)
50
- ], LineItemTaxLine.prototype, "item_id", void 0);
50
+ ], OrderLineItemTaxLine.prototype, "item_id", void 0);
51
51
  __decorate([
52
52
  (0, core_1.BeforeCreate)(),
53
53
  __metadata("design:type", Function),
54
54
  __metadata("design:paramtypes", []),
55
55
  __metadata("design:returntype", void 0)
56
- ], LineItemTaxLine.prototype, "onCreate", null);
56
+ ], OrderLineItemTaxLine.prototype, "onCreate", null);
57
57
  __decorate([
58
58
  (0, core_1.OnInit)(),
59
59
  __metadata("design:type", Function),
60
60
  __metadata("design:paramtypes", []),
61
61
  __metadata("design:returntype", void 0)
62
- ], LineItemTaxLine.prototype, "onInit", null);
63
- LineItemTaxLine = __decorate([
62
+ ], OrderLineItemTaxLine.prototype, "onInit", null);
63
+ OrderLineItemTaxLine = __decorate([
64
64
  (0, core_1.Entity)({ tableName: "order_line_item_tax_line" })
65
- ], LineItemTaxLine);
66
- exports.default = LineItemTaxLine;
65
+ ], OrderLineItemTaxLine);
66
+ exports.default = OrderLineItemTaxLine;
67
67
  //# sourceMappingURL=line-item-tax-line.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"line-item-tax-line.js","sourceRoot":"","sources":["../../src/models/line-item-tax-line.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,2CAGwB;AACxB,0CAMwB;AACxB,4DAAkC;AAClC,0DAAgC;AAEhC,MAAM,WAAW,GAAG,IAAA,sCAA8B,EAAC;IACjD,SAAS,EAAE,0BAA0B;IACrC,OAAO,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awValue, DAL } from "@medusajs/types";
2
- import { BigNumber } from "@medusajs/utils";
1
+ import { BigNumberRawValue, DAL } from "@medusajs/framework/types";
2
+ import { BigNumber } from "@medusajs/framework/utils";
3
3
  import { Collection, OptionalProps } from "@mikro-orm/core";
4
- import LineItemAdjustment from "./line-item-adjustment";
5
- import LineItemTaxLine from "./line-item-tax-line";
6
- type OptionalLineItemProps = "is_discoutable" | "is_tax_inclusive" | "compare_at_unit_price" | "requires_shipping" | DAL.EntityDateColumns;
7
- export default class LineItem {
4
+ import OrderLineItemAdjustment from "./line-item-adjustment";
5
+ import OrderLineItemTaxLine from "./line-item-tax-line";
6
+ type OptionalLineItemProps = DAL.ModelDateColumns;
7
+ export default class OrderLineItem {
8
8
  [OptionalProps]?: OptionalLineItemProps;
9
9
  id: string;
10
10
  title: string;
@@ -29,12 +29,15 @@ export default class LineItem {
29
29
  raw_compare_at_unit_price: BigNumberRawValue | null;
30
30
  unit_price: BigNumber | number;
31
31
  raw_unit_price: BigNumberRawValue;
32
- tax_lines: Collection<LineItemTaxLine, object>;
33
- adjustments: Collection<LineItemAdjustment, object>;
32
+ is_custom_price: boolean;
33
+ tax_lines: Collection<OrderLineItemTaxLine, object>;
34
+ adjustments: Collection<OrderLineItemAdjustment, object>;
34
35
  metadata: Record<string, unknown> | null;
35
36
  created_at: Date;
36
37
  updated_at: Date;
38
+ deleted_at: Date | null;
37
39
  onCreate(): void;
38
40
  onInit(): void;
39
41
  }
40
42
  export {};
43
+ //# sourceMappingURL=line-item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"line-item.d.ts","sourceRoot":"","sources":["../../src/models/line-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,GAAG,EAAE,MAAM,2BAA2B,CAAA;AAClE,OAAO,EACL,SAAS,EAKV,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAGL,UAAU,EAKV,aAAa,EAId,MAAM,iBAAiB,CAAA;AACxB,OAAO,uBAAuB,M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;IAKhC,SAAS,2CAAkD;IAK3D,WAAW,8CAAqD;IAGhE,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"}
@@ -12,19 +12,26 @@ 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_adjustment_1 = __importDefault(require("./line-item-adjustment"));
18
18
  const line_item_tax_line_1 = __importDefault(require("./line-item-tax-line"));
19
+ const DeletedAtIndex = (0, utils_1.createPsqlIndexStatementHelper)({
20
+ tableName: "order_line_item",
21
+ columns: "deleted_at",
22
+ where: "deleted_at IS NOT NULL",
23
+ });
19
24
  const ProductIdIndex = (0, utils_1.createPsqlIndexStatementHelper)({
20
25
  tableName: "order_line_item",
21
26
  columns: "product_id",
27
+ where: "deleted_at IS NOT NULL",
22
28
  });
23
29
  const VariantIdIndex = (0, utils_1.createPsqlIndexStatementHelper)({
24
30
  tableName: "order_line_item",
25
31
  columns: "variant_id",
32
+ where: "deleted_at IS NOT NULL",
26
33
  });
27
- let LineItem = class LineItem {
34
+ let OrderLineItem = class OrderLineItem {
28
35
  constructor() {
29
36
  this.subtitle = null;
30
37
  this.thumbnail = null;
@@ -45,9 +52,11 @@ let LineItem = class LineItem {
45
52
  this.is_tax_inclusive = false;
46
53
  this.compare_at_unit_price = null;
47
54
  this.raw_compare_at_unit_price = null;
55
+ this.is_custom_price = false;
48
56
  this.tax_lines = new core_1.Collection(this);
49
57
  this.adjustments = new core_1.Collection(this);
50
58
  this.metadata = null;
59
+ this.deleted_at = null;
51
60
  }
52
61
  onCreate() {
53
62
  this.id = (0, utils_1.generateEntityId)(this.id, "ordli");
@@ -59,19 +68,19 @@ let LineItem = class LineItem {
59
68
  __decorate([
60
69
  (0, core_1.PrimaryKey)({ columnType: "text" }),
61
70
  __metadata("design:type", String)
62
- ], LineItem.prototype, "id", void 0);
71
+ ], OrderLineItem.prototype, "id", void 0);
63
72
  __decorate([
64
73
  (0, core_1.Property)({ columnType: "text" }),
65
74
  __metadata("design:type", String)
66
- ], LineItem.prototype, "title", void 0);
75
+ ], OrderLineItem.prototype, "title", void 0);
67
76
  __decorate([
68
77
  (0, core_1.Property)({ columnType: "text", nullable: true }),
69
78
  __metadata("design:type", Object)
70
- ], LineItem.prototype, "subtitle", void 0);
79
+ ], OrderLineItem.prototype, "subtitle", void 0);
71
80
  __decorate([
72
81
  (0, core_1.Property)({ columnType: "text", nullable: true }),
73
82
  __metadata("design:type", Object)
74
- ], LineItem.prototype, "thumbnail", void 0);
83
+ ], OrderLineItem.prototype, "thumbnail", void 0);
75
84
  __decorate([
76
85
  (0, core_1.Property)({
77
86
  columnType: "text",
@@ -79,7 +88,7 @@ __decorate([
79
88
  }),
80
89
  VariantIdIndex.MikroORMIndex(),
81
90
  __metadata("design:type", Object)
82
- ], LineItem.prototype, "variant_id", void 0);
91
+ ], OrderLineItem.prototype, "variant_id", void 0);
83
92
  __decorate([
84
93
  (0, core_1.Property)({
85
94
  columnType: "text",
@@ -87,95 +96,99 @@ __decorate([
87
96
  }),
88
97
  ProductIdIndex.MikroORMIndex(),
89
98
  __metadata("design:type", Object)
90
- ], LineItem.prototype, "product_id", void 0);
99
+ ], OrderLineItem.prototype, "product_id", void 0);
91
100
  __decorate([
92
101
  (0, core_1.Property)({ columnType: "text", nullable: true }),
93
102
  __metadata("design:type", Object)
94
- ], LineItem.prototype, "product_title", void 0);
103
+ ], OrderLineItem.prototype, "product_title", void 0);
95
104
  __decorate([
96
105
  (0, core_1.Property)({ columnType: "text", nullable: true }),
97
106
  __metadata("design:type", Object)
98
- ], LineItem.prototype, "product_description", void 0);
107
+ ], OrderLineItem.prototype, "product_description", void 0);
99
108
  __decorate([
100
109
  (0, core_1.Property)({ columnType: "text", nullable: true }),
101
110
  __metadata("design:type", Object)
102
- ], LineItem.prototype, "product_subtitle", void 0);
111
+ ], OrderLineItem.prototype, "product_subtitle", void 0);
103
112
  __decorate([
104
113
  (0, core_1.Property)({ columnType: "text", nullable: true }),
105
114
  __metadata("design:type", Object)
106
- ], LineItem.prototype, "product_type", void 0);
115
+ ], OrderLineItem.prototype, "product_type", void 0);
107
116
  __decorate([
108
117
  (0, core_1.Property)({ columnType: "text", nullable: true }),
109
118
  __metadata("design:type", Object)
110
- ], LineItem.prototype, "product_collection", void 0);
119
+ ], OrderLineItem.prototype, "product_collection", void 0);
111
120
  __decorate([
112
121
  (0, core_1.Property)({ columnType: "text", nullable: true }),
113
122
  __metadata("design:type", Object)
114
- ], LineItem.prototype, "product_handle", void 0);
123
+ ], OrderLineItem.prototype, "product_handle", void 0);
115
124
  __decorate([
116
125
  (0, core_1.Property)({ columnType: "text", nullable: true }),
117
126
  __metadata("design:type", Object)
118
- ], LineItem.prototype, "variant_sku", void 0);
127
+ ], OrderLineItem.prototype, "variant_sku", void 0);
119
128
  __decorate([
120
129
  (0, core_1.Property)({ columnType: "text", nullable: true }),
121
130
  __metadata("design:type", Object)
122
- ], LineItem.prototype, "variant_barcode", void 0);
131
+ ], OrderLineItem.prototype, "variant_barcode", void 0);
123
132
  __decorate([
124
133
  (0, core_1.Property)({ columnType: "text", nullable: true }),
125
134
  __metadata("design:type", Object)
126
- ], LineItem.prototype, "variant_title", void 0);
135
+ ], OrderLineItem.prototype, "variant_title", void 0);
127
136
  __decorate([
128
137
  (0, core_1.Property)({ columnType: "jsonb", nullable: true }),
129
138
  __metadata("design:type", Object)
130
- ], LineItem.prototype, "variant_option_values", void 0);
139
+ ], OrderLineItem.prototype, "variant_option_values", void 0);
131
140
  __decorate([
132
141
  (0, core_1.Property)({ columnType: "boolean" }),
133
- __metadata("design:type", Object)
134
- ], LineItem.prototype, "requires_shipping", void 0);
142
+ __metadata("design:type", Boolean)
143
+ ], OrderLineItem.prototype, "requires_shipping", void 0);
135
144
  __decorate([
136
145
  (0, core_1.Property)({ columnType: "boolean" }),
137
- __metadata("design:type", Object)
138
- ], LineItem.prototype, "is_discountable", void 0);
146
+ __metadata("design:type", Boolean)
147
+ ], OrderLineItem.prototype, "is_discountable", void 0);
139
148
  __decorate([
140
149
  (0, core_1.Property)({ columnType: "boolean" }),
141
- __metadata("design:type", Object)
142
- ], LineItem.prototype, "is_tax_inclusive", void 0);
150
+ __metadata("design:type", Boolean)
151
+ ], OrderLineItem.prototype, "is_tax_inclusive", void 0);
143
152
  __decorate([
144
153
  (0, utils_1.MikroOrmBigNumberProperty)({
145
154
  nullable: true,
146
155
  }),
147
156
  __metadata("design:type", Object)
148
- ], LineItem.prototype, "compare_at_unit_price", void 0);
157
+ ], OrderLineItem.prototype, "compare_at_unit_price", void 0);
149
158
  __decorate([
150
159
  (0, core_1.Property)({ columnType: "jsonb", nullable: true }),
151
160
  __metadata("design:type", Object)
152
- ], LineItem.prototype, "raw_compare_at_unit_price", void 0);
161
+ ], OrderLineItem.prototype, "raw_compare_at_unit_price", void 0);
153
162
  __decorate([
154
163
  (0, utils_1.MikroOrmBigNumberProperty)({
155
164
  nullable: true,
156
165
  }),
157
166
  __metadata("design:type", Object)
158
- ], LineItem.prototype, "unit_price", void 0);
167
+ ], OrderLineItem.prototype, "unit_price", void 0);
159
168
  __decorate([
160
169
  (0, core_1.Property)({ columnType: "jsonb" }),
161
170
  __metadata("design:type", Object)
162
- ], LineItem.prototype, "raw_unit_price", void 0);
171
+ ], OrderLineItem.prototype, "raw_unit_price", void 0);
172
+ __decorate([
173
+ (0, core_1.Property)({ columnType: "boolean", default: false }),
174
+ __metadata("design:type", Boolean)
175
+ ], OrderLineItem.prototype, "is_custom_price", void 0);
163
176
  __decorate([
164
177
  (0, core_1.OneToMany)(() => line_item_tax_line_1.default, (taxLine) => taxLine.item, {
165
178
  cascade: [core_1.Cascade.PERSIST, "soft-remove"],
166
179
  }),
167
180
  __metadata("design:type", Object)
168
- ], LineItem.prototype, "tax_lines", void 0);
181
+ ], OrderLineItem.prototype, "tax_lines", void 0);
169
182
  __decorate([
170
183
  (0, core_1.OneToMany)(() => line_item_adjustment_1.default, (adjustment) => adjustment.item, {
171
184
  cascade: [core_1.Cascade.PERSIST, "soft-remove"],
172
185
  }),
173
186
  __metadata("design:type", Object)
174
- ], LineItem.prototype, "adjustments", void 0);
187
+ ], OrderLineItem.prototype, "adjustments", void 0);
175
188
  __decorate([
176
189
  (0, core_1.Property)({ columnType: "jsonb", nullable: true }),
177
190
  __metadata("design:type", Object)
178
- ], LineItem.prototype, "metadata", void 0);
191
+ ], OrderLineItem.prototype, "metadata", void 0);
179
192
  __decorate([
180
193
  (0, core_1.Property)({
181
194
  onCreate: () => new Date(),
@@ -183,7 +196,7 @@ __decorate([
183
196
  defaultRaw: "now()",
184
197
  }),
185
198
  __metadata("design:type", Date)
186
- ], LineItem.prototype, "created_at", void 0);
199
+ ], OrderLineItem.prototype, "created_at", void 0);
187
200
  __decorate([
188
201
  (0, core_1.Property)({
189
202
  onCreate: () => new Date(),
@@ -192,21 +205,27 @@ __decorate([
192
205
  defaultRaw: "now()",
193
206
  }),
194
207
  __metadata("design:type", Date)
195
- ], LineItem.prototype, "updated_at", void 0);
208
+ ], OrderLineItem.prototype, "updated_at", void 0);
209
+ __decorate([
210
+ (0, core_1.Property)({ columnType: "timestamptz", nullable: true }),
211
+ DeletedAtIndex.MikroORMIndex(),
212
+ __metadata("design:type", Object)
213
+ ], OrderLineItem.prototype, "deleted_at", void 0);
196
214
  __decorate([
197
215
  (0, core_1.BeforeCreate)(),
198
216
  __metadata("design:type", Function),
199
217
  __metadata("design:paramtypes", []),
200
218
  __metadata("design:returntype", void 0)
201
- ], LineItem.prototype, "onCreate", null);
219
+ ], OrderLineItem.prototype, "onCreate", null);
202
220
  __decorate([
203
221
  (0, core_1.OnInit)(),
204
222
  __metadata("design:type", Function),
205
223
  __metadata("design:paramtypes", []),
206
224
  __metadata("design:returntype", void 0)
207
- ], LineItem.prototype, "onInit", null);
208
- LineItem = __decorate([
209
- (0, core_1.Entity)({ tableName: "order_line_item" })
210
- ], LineItem);
211
- exports.default = LineItem;
225
+ ], OrderLineItem.prototype, "onInit", null);
226
+ OrderLineItem = __decorate([
227
+ (0, core_1.Entity)({ tableName: "order_line_item" }),
228
+ (0, core_1.Filter)(utils_1.DALUtils.mikroOrmSoftDeletableFilterOptions)
229
+ ], OrderLineItem);
230
+ exports.default = OrderLineItem;
212
231
  //# sourceMappingURL=line-item.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"line-item.js","sourceRoot":"","sources":["../../src/models/line-item.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,2CAKwB;AACxB,0CAUwB;AACxB,kFAAuD;AACvD,8EAAkD;AASlD,MAAM,cAAc,GAAG,IAAA,sCAA8B,EAAC;IACpD,SAAS,EAAE,iBAAiB;IAC5B,OAAO,EAAE,YAAY;CACtB,CAAC,CAAA;AAEF,MAAM,cAAc,GAAG,IAAA,sCAA8B,EAAC;IACpD,SAAS,EAAE,iBAAiB;IAC5B,OAAO,EAAE,YAAY;CACtB,CAAC,CAAA;AAGa,IAAM,QAAQ,GAAd,MAAM,QAAQ;IAAd;QAUb,aAAQ,GAAkB,IAAI,CAAA;QAG9B,cAAS,GAAkB,IAAI,CAAA;QAO/B,eAAU,GAAkB,IAAI,CAAA;QAOhC,eAAU,GAAkB,IAAI,CAAA;QAGhC,kBAAa,GAAkB,IAAI,CAAA;QAGnC,wBAAmB,GAAkB,IAAI,CAAA;QAGzC,qBAAgB,GAAkB,IAAI,CAAA;QAGtC,iBAAY,GAAkB,IAAI,CAAA;QAGlC,uBAAkB,GAAkB,IAAI,CAAA;QAGxC,mBAAc,GAAkB,IAAI,CAAA;QAGpC,g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