@mercurjs/core 2.2.0-canary.1 → 2.2.0-canary.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (837) hide show
  1. package/.medusa/server/src/api/admin/claims/[id]/outbound/items/route.d.ts +20 -0
  2. package/.medusa/server/src/api/admin/claims/[id]/outbound/items/route.js +66 -0
  3. package/.medusa/server/src/api/admin/claims/[id]/request/route.d.ts +10 -0
  4. package/.medusa/server/src/api/admin/claims/[id]/request/route.js +80 -0
  5. package/.medusa/server/src/api/admin/commission-rates/validators.d.ts +4 -4
  6. package/.medusa/server/src/api/admin/exchanges/[id]/outbound/items/route.d.ts +22 -0
  7. package/.medusa/server/src/api/admin/exchanges/[id]/outbound/items/route.js +68 -0
  8. package/.medusa/server/src/api/admin/exchanges/[id]/request/route.d.ts +10 -0
  9. package/.medusa/server/src/api/admin/exchanges/[id]/request/route.js +81 -0
  10. package/.medusa/server/src/api/admin/members/validators.d.ts +2 -2
  11. package/.medusa/server/src/api/admin/middlewares.js +25 -38
  12. package/.medusa/server/src/api/admin/offers/query-config.js +8 -8
  13. package/.medusa/server/src/api/admin/offers/validators.d.ts +8 -8
  14. package/.medusa/server/src/api/admin/order-edits/[id]/items/route.d.ts +26 -0
  15. package/.medusa/server/src/api/admin/order-edits/[id]/items/route.js +57 -0
  16. package/.medusa/server/src/api/admin/order-groups/apply-request-filter.d.ts +2 -0
  17. package/.medusa/server/src/api/admin/order-groups/apply-request-filter.js +140 -0
  18. package/.medusa/server/src/api/admin/order-groups/middlewares.js +3 -1
  19. package/.medusa/server/src/api/admin/order-groups/validators.d.ts +7 -4
  20. package/.medusa/server/src/api/admin/order-groups/validators.js +7 -1
  21. package/.medusa/server/src/api/admin/orders/middlewares.d.ts +2 -0
  22. package/.medusa/server/src/api/admin/orders/middlewares.js +42 -0
  23. package/.medusa/server/src/api/admin/orders/resolve-order-seller-id.d.ts +11 -0
  24. package/.medusa/server/src/api/admin/orders/resolve-order-seller-id.js +24 -0
  25. package/.medusa/server/src/api/admin/orders/validators.d.ts +73 -27
  26. package/.medusa/server/src/api/admin/orders/validators.js +9 -29
  27. package/.medusa/server/src/api/admin/payouts/validators.d.ts +2 -2
  28. package/.medusa/server/src/api/admin/product-attributes/[id]/route.js +3 -3
  29. package/.medusa/server/src/api/admin/product-attributes/[id]/values/[value_id]/route.js +3 -3
  30. package/.medusa/server/src/api/admin/product-attributes/[id]/values/route.js +2 -2
  31. package/.medusa/server/src/api/admin/product-attributes/middlewares.js +15 -1
  32. package/.medusa/server/src/api/admin/product-attributes/query-config.js +1 -2
  33. package/.medusa/server/src/api/admin/product-attributes/route.js +6 -3
  34. package/.medusa/server/src/api/admin/product-attributes/validators.d.ts +5 -9
  35. package/.medusa/server/src/api/admin/product-attributes/validators.js +2 -15
  36. package/.medusa/server/src/api/admin/product-categories/[id]/products/route.js +3 -3
  37. package/.medusa/server/src/api/admin/product-categories/[id]/route.js +8 -7
  38. package/.medusa/server/src/api/admin/product-categories/query-config.js +1 -2
  39. package/.medusa/server/src/api/admin/product-categories/route.js +4 -4
  40. package/.medusa/server/src/api/admin/product-categories/validators.d.ts +8 -8
  41. package/.medusa/server/src/api/admin/product-changes/[id]/cancel/route.js +5 -6
  42. package/.medusa/server/src/api/admin/product-changes/[id]/confirm/route.js +5 -5
  43. package/.medusa/server/src/api/admin/products/[id]/attributes/[attribute_id]/route.d.ts +10 -4
  44. package/.medusa/server/src/api/admin/products/[id]/attributes/[attribute_id]/route.js +60 -23
  45. package/.medusa/server/src/api/admin/products/[id]/attributes/batch/route.d.ts +3 -2
  46. package/.medusa/server/src/api/admin/products/[id]/attributes/batch/route.js +11 -22
  47. package/.medusa/server/src/api/admin/products/[id]/attributes/route.d.ts +2 -3
  48. package/.medusa/server/src/api/admin/products/[id]/attributes/route.js +40 -25
  49. package/.medusa/server/src/api/admin/products/[id]/confirm/route.d.ts +12 -0
  50. package/.medusa/server/src/api/admin/products/[id]/confirm/route.js +16 -6
  51. package/.medusa/server/src/api/admin/products/[id]/preview/route.d.ts +8 -1
  52. package/.medusa/server/src/api/admin/products/[id]/preview/route.js +20 -7
  53. package/.medusa/server/src/api/admin/products/[id]/reject/route.d.ts +8 -0
  54. package/.medusa/server/src/api/admin/products/[id]/reject/route.js +13 -8
  55. package/.medusa/server/src/api/admin/products/[id]/request-changes/route.d.ts +9 -0
  56. package/.medusa/server/src/api/admin/products/[id]/request-changes/route.js +16 -10
  57. package/.medusa/server/src/api/admin/products/[id]/route.js +6 -6
  58. package/.medusa/server/src/api/admin/products/[id]/variants/[variant_id]/route.js +5 -5
  59. package/.medusa/server/src/api/admin/products/[id]/variants/route.js +22 -4
  60. package/.medusa/server/src/api/admin/products/middlewares.js +8 -4
  61. package/.medusa/server/src/api/admin/products/query-config.js +12 -18
  62. package/.medusa/server/src/api/admin/products/route.js +4 -9
  63. package/.medusa/server/src/api/admin/products/validators.d.ts +1049 -205
  64. package/.medusa/server/src/api/admin/products/validators.js +114 -16
  65. package/.medusa/server/src/api/admin/returns/[id]/receive/confirm/route.d.ts +9 -0
  66. package/.medusa/server/src/api/admin/returns/[id]/receive/confirm/route.js +35 -0
  67. package/.medusa/server/src/api/admin/sellers/validators.d.ts +14 -14
  68. package/.medusa/server/src/api/admin/shipping-options/middlewares.d.ts +2 -0
  69. package/.medusa/server/src/api/admin/shipping-options/middlewares.js +46 -0
  70. package/.medusa/server/src/api/admin/shipping-profiles/middlewares.d.ts +2 -0
  71. package/.medusa/server/src/api/admin/shipping-profiles/middlewares.js +46 -0
  72. package/.medusa/server/src/api/{vendor/product-brands → admin/stock-locations}/middlewares.d.ts +1 -1
  73. package/.medusa/server/src/api/admin/stock-locations/middlewares.js +46 -0
  74. package/.medusa/server/src/api/store/carts/[id]/line-items/route.js +23 -5
  75. package/.medusa/server/src/api/store/carts/[id]/line-items/validators.d.ts +0 -3
  76. package/.medusa/server/src/api/store/carts/[id]/line-items/validators.js +1 -2
  77. package/.medusa/server/src/api/store/middlewares.js +7 -9
  78. package/.medusa/server/src/api/store/order-groups/validators.d.ts +2 -2
  79. package/.medusa/server/src/api/store/products/[id]/route.js +3 -18
  80. package/.medusa/server/src/api/store/products/middlewares.js +1 -7
  81. package/.medusa/server/src/api/store/products/query-config.d.ts +1 -3
  82. package/.medusa/server/src/api/store/products/query-config.js +14 -17
  83. package/.medusa/server/src/api/store/products/route.js +3 -19
  84. package/.medusa/server/src/api/store/products/validators.d.ts +0 -6
  85. package/.medusa/server/src/api/store/products/validators.js +1 -2
  86. package/.medusa/server/src/api/store/sellers/validators.d.ts +2 -2
  87. package/.medusa/server/src/api/utils/filter-attributes-by-category-link.d.ts +17 -0
  88. package/.medusa/server/src/api/utils/filter-attributes-by-category-link.js +58 -0
  89. package/.medusa/server/src/api/utils/format-product-attributes.d.ts +51 -5
  90. package/.medusa/server/src/api/utils/format-product-attributes.js +176 -31
  91. package/.medusa/server/src/api/utils/index.d.ts +1 -0
  92. package/.medusa/server/src/api/utils/index.js +2 -1
  93. package/.medusa/server/src/api/vendor/campaigns/validators.d.ts +2 -2
  94. package/.medusa/server/src/api/vendor/claims/[id]/cancel/route.d.ts +4 -0
  95. package/.medusa/server/src/api/vendor/claims/[id]/cancel/route.js +17 -0
  96. package/.medusa/server/src/api/vendor/claims/[id]/claim-items/[action_id]/route.d.ts +9 -0
  97. package/.medusa/server/src/api/vendor/claims/[id]/claim-items/[action_id]/route.js +32 -0
  98. package/.medusa/server/src/api/vendor/claims/[id]/claim-items/route.d.ts +6 -0
  99. package/.medusa/server/src/api/vendor/claims/[id]/claim-items/route.js +15 -0
  100. package/.medusa/server/src/api/vendor/claims/[id]/inbound/items/[action_id]/route.d.ts +9 -0
  101. package/.medusa/server/src/api/vendor/claims/[id]/inbound/items/[action_id]/route.js +46 -0
  102. package/.medusa/server/src/api/vendor/claims/[id]/inbound/items/route.d.ts +6 -0
  103. package/.medusa/server/src/api/vendor/claims/[id]/inbound/items/route.js +26 -0
  104. package/.medusa/server/src/api/vendor/claims/[id]/inbound/shipping-method/[action_id]/route.d.ts +9 -0
  105. package/.medusa/server/src/api/vendor/claims/[id]/inbound/shipping-method/[action_id]/route.js +39 -0
  106. package/.medusa/server/src/api/vendor/claims/[id]/inbound/shipping-method/route.d.ts +6 -0
  107. package/.medusa/server/src/api/vendor/claims/[id]/inbound/shipping-method/route.js +26 -0
  108. package/.medusa/server/src/api/vendor/claims/[id]/outbound/items/[action_id]/route.d.ts +9 -0
  109. package/.medusa/server/src/api/vendor/claims/[id]/outbound/items/[action_id]/route.js +32 -0
  110. package/.medusa/server/src/api/vendor/claims/[id]/outbound/items/route.d.ts +12 -0
  111. package/.medusa/server/src/api/vendor/claims/[id]/outbound/items/route.js +47 -0
  112. package/.medusa/server/src/api/vendor/claims/[id]/outbound/shipping-method/[action_id]/route.d.ts +9 -0
  113. package/.medusa/server/src/api/vendor/claims/[id]/outbound/shipping-method/[action_id]/route.js +32 -0
  114. package/.medusa/server/src/api/vendor/claims/[id]/outbound/shipping-method/route.d.ts +6 -0
  115. package/.medusa/server/src/api/vendor/claims/[id]/outbound/shipping-method/route.js +15 -0
  116. package/.medusa/server/src/api/vendor/claims/[id]/request/route.d.ts +6 -0
  117. package/.medusa/server/src/api/vendor/claims/[id]/request/route.js +34 -0
  118. package/.medusa/server/src/api/vendor/claims/[id]/route.d.ts +3 -0
  119. package/.medusa/server/src/api/vendor/claims/[id]/route.js +19 -0
  120. package/.medusa/server/src/api/vendor/claims/helpers.d.ts +2 -0
  121. package/.medusa/server/src/api/vendor/claims/helpers.js +19 -0
  122. package/.medusa/server/src/api/vendor/claims/middlewares.d.ts +2 -0
  123. package/.medusa/server/src/api/vendor/claims/middlewares.js +184 -0
  124. package/.medusa/server/src/api/vendor/claims/query-config.d.ts +12 -0
  125. package/.medusa/server/src/api/vendor/claims/query-config.js +31 -0
  126. package/.medusa/server/src/api/vendor/claims/route.d.ts +5 -0
  127. package/.medusa/server/src/api/vendor/claims/route.js +35 -0
  128. package/.medusa/server/src/api/vendor/claims/validators.d.ts +378 -0
  129. package/.medusa/server/src/api/vendor/claims/validators.js +89 -0
  130. package/.medusa/server/src/api/vendor/collections/validators.d.ts +2 -2
  131. package/.medusa/server/src/api/vendor/currencies/validators.d.ts +2 -2
  132. package/.medusa/server/src/api/vendor/customers/validators.d.ts +2 -2
  133. package/.medusa/server/src/api/vendor/exchanges/[id]/cancel/route.d.ts +4 -0
  134. package/.medusa/server/src/api/vendor/exchanges/[id]/cancel/route.js +17 -0
  135. package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/items/[action_id]/route.d.ts +9 -0
  136. package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/items/[action_id]/route.js +46 -0
  137. package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/items/route.d.ts +6 -0
  138. package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/items/route.js +26 -0
  139. package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/shipping-method/[action_id]/route.d.ts +9 -0
  140. package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/shipping-method/[action_id]/route.js +45 -0
  141. package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/shipping-method/route.d.ts +6 -0
  142. package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/shipping-method/route.js +26 -0
  143. package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/items/[action_id]/route.d.ts +9 -0
  144. package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/items/[action_id]/route.js +32 -0
  145. package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/items/route.d.ts +12 -0
  146. package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/items/route.js +47 -0
  147. package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/shipping-method/[action_id]/route.d.ts +9 -0
  148. package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/shipping-method/[action_id]/route.js +32 -0
  149. package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/shipping-method/route.d.ts +6 -0
  150. package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/shipping-method/route.js +15 -0
  151. package/.medusa/server/src/api/vendor/exchanges/[id]/request/route.d.ts +6 -0
  152. package/.medusa/server/src/api/vendor/exchanges/[id]/request/route.js +34 -0
  153. package/.medusa/server/src/api/vendor/exchanges/helpers.d.ts +2 -0
  154. package/.medusa/server/src/api/vendor/exchanges/helpers.js +19 -0
  155. package/.medusa/server/src/api/vendor/exchanges/middlewares.d.ts +2 -0
  156. package/.medusa/server/src/api/vendor/exchanges/middlewares.js +155 -0
  157. package/.medusa/server/src/api/vendor/exchanges/query-config.d.ts +7 -0
  158. package/.medusa/server/src/api/vendor/exchanges/query-config.js +23 -0
  159. package/.medusa/server/src/api/vendor/exchanges/route.d.ts +5 -0
  160. package/.medusa/server/src/api/vendor/exchanges/route.js +35 -0
  161. package/.medusa/server/src/api/vendor/exchanges/validators.d.ts +313 -0
  162. package/.medusa/server/src/api/vendor/exchanges/validators.js +71 -0
  163. package/.medusa/server/src/api/vendor/fulfillment-providers/validators.d.ts +2 -2
  164. package/.medusa/server/src/api/vendor/fulfillment-sets/validators.d.ts +16 -16
  165. package/.medusa/server/src/api/vendor/inventory-items/validators.d.ts +8 -8
  166. package/.medusa/server/src/api/vendor/middlewares.js +77 -71
  167. package/.medusa/server/src/api/vendor/offers/query-config.js +8 -8
  168. package/.medusa/server/src/api/vendor/offers/validators.d.ts +10 -10
  169. package/.medusa/server/src/api/vendor/order-edits/[id]/confirm/route.d.ts +9 -0
  170. package/.medusa/server/src/api/vendor/order-edits/[id]/confirm/route.js +24 -0
  171. package/.medusa/server/src/api/vendor/order-edits/[id]/items/[action_id]/route.d.ts +14 -0
  172. package/.medusa/server/src/api/vendor/order-edits/[id]/items/[action_id]/route.js +41 -0
  173. package/.medusa/server/src/api/vendor/order-edits/[id]/items/item/[item_id]/route.d.ts +10 -0
  174. package/.medusa/server/src/api/vendor/order-edits/[id]/items/item/[item_id]/route.js +30 -0
  175. package/.medusa/server/src/api/vendor/order-edits/[id]/items/route.d.ts +16 -0
  176. package/.medusa/server/src/api/vendor/order-edits/[id]/items/route.js +45 -0
  177. package/.medusa/server/src/api/vendor/order-edits/[id]/request/route.d.ts +10 -0
  178. package/.medusa/server/src/api/vendor/order-edits/[id]/request/route.js +25 -0
  179. package/.medusa/server/src/api/vendor/order-edits/[id]/route.d.ts +10 -0
  180. package/.medusa/server/src/api/vendor/order-edits/[id]/route.js +26 -0
  181. package/.medusa/server/src/api/vendor/order-edits/[id]/shipping-method/[action_id]/route.d.ts +14 -0
  182. package/.medusa/server/src/api/vendor/order-edits/[id]/shipping-method/[action_id]/route.js +41 -0
  183. package/.medusa/server/src/api/vendor/order-edits/[id]/shipping-method/route.d.ts +9 -0
  184. package/.medusa/server/src/api/vendor/order-edits/[id]/shipping-method/route.js +20 -0
  185. package/.medusa/server/src/api/vendor/order-edits/middlewares.d.ts +2 -0
  186. package/.medusa/server/src/api/vendor/order-edits/middlewares.js +106 -0
  187. package/.medusa/server/src/api/vendor/order-edits/route.d.ts +10 -0
  188. package/.medusa/server/src/api/vendor/order-edits/route.js +21 -0
  189. package/.medusa/server/src/api/vendor/order-edits/validators.d.ts +166 -0
  190. package/.medusa/server/src/api/vendor/order-edits/validators.js +50 -0
  191. package/.medusa/server/src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/cancel/route.js +3 -3
  192. package/.medusa/server/src/api/vendor/orders/[id]/fulfillments/route.js +3 -3
  193. package/.medusa/server/src/api/vendor/orders/apply-request-filter.d.ts +2 -0
  194. package/.medusa/server/src/api/vendor/orders/apply-request-filter.js +99 -0
  195. package/.medusa/server/src/api/vendor/orders/middlewares.js +3 -1
  196. package/.medusa/server/src/api/vendor/orders/query-config.js +34 -11
  197. package/.medusa/server/src/api/vendor/orders/resolve-offer-items.d.ts +40 -0
  198. package/.medusa/server/src/api/vendor/orders/resolve-offer-items.js +66 -0
  199. package/.medusa/server/src/api/vendor/orders/validators.d.ts +7 -4
  200. package/.medusa/server/src/api/vendor/orders/validators.js +7 -1
  201. package/.medusa/server/src/api/vendor/payment-collections/[id]/mark-as-paid/route.d.ts +3 -0
  202. package/.medusa/server/src/api/vendor/payment-collections/[id]/mark-as-paid/route.js +25 -0
  203. package/.medusa/server/src/api/vendor/payment-collections/helpers.d.ts +3 -0
  204. package/.medusa/server/src/api/vendor/payment-collections/helpers.js +30 -0
  205. package/.medusa/server/src/api/vendor/payment-collections/middlewares.d.ts +2 -0
  206. package/.medusa/server/src/api/vendor/payment-collections/middlewares.js +17 -0
  207. package/.medusa/server/src/api/vendor/payment-collections/query-config.d.ts +7 -0
  208. package/.medusa/server/src/api/vendor/payment-collections/query-config.js +26 -0
  209. package/.medusa/server/src/api/vendor/payment-collections/validators.d.ts +17 -0
  210. package/.medusa/server/src/api/vendor/payment-collections/validators.js +12 -0
  211. package/.medusa/server/src/api/vendor/payments/helpers.d.ts +9 -0
  212. package/.medusa/server/src/api/vendor/payments/helpers.js +23 -8
  213. package/.medusa/server/src/api/vendor/payments/validators.d.ts +4 -4
  214. package/.medusa/server/src/api/vendor/payouts/validators.d.ts +2 -2
  215. package/.medusa/server/src/api/vendor/price-lists/validators.d.ts +2 -2
  216. package/.medusa/server/src/api/vendor/price-preferences/validators.d.ts +2 -2
  217. package/.medusa/server/src/api/vendor/product-attributes/middlewares.js +15 -1
  218. package/.medusa/server/src/api/vendor/product-attributes/route.js +4 -1
  219. package/.medusa/server/src/api/vendor/product-attributes/validators.d.ts +3 -7
  220. package/.medusa/server/src/api/vendor/product-attributes/validators.js +2 -15
  221. package/.medusa/server/src/api/vendor/product-categories/[id]/products/route.d.ts +4 -0
  222. package/.medusa/server/src/api/vendor/product-categories/[id]/products/route.js +36 -0
  223. package/.medusa/server/src/api/vendor/product-categories/middlewares.js +9 -1
  224. package/.medusa/server/src/api/vendor/product-categories/query-config.js +1 -2
  225. package/.medusa/server/src/api/vendor/product-categories/validators.d.ts +21 -4
  226. package/.medusa/server/src/api/vendor/product-categories/validators.js +7 -2
  227. package/.medusa/server/src/api/vendor/product-types/validators.d.ts +2 -2
  228. package/.medusa/server/src/api/vendor/products/[id]/attributes/[attribute_id]/route.d.ts +18 -5
  229. package/.medusa/server/src/api/vendor/products/[id]/attributes/[attribute_id]/route.js +77 -17
  230. package/.medusa/server/src/api/vendor/products/[id]/attributes/batch/route.d.ts +12 -0
  231. package/.medusa/server/src/api/vendor/products/[id]/attributes/batch/route.js +46 -0
  232. package/.medusa/server/src/api/vendor/products/[id]/attributes/route.d.ts +10 -6
  233. package/.medusa/server/src/api/vendor/products/[id]/attributes/route.js +58 -25
  234. package/.medusa/server/src/api/vendor/products/[id]/cancel/route.d.ts +5 -7
  235. package/.medusa/server/src/api/vendor/products/[id]/cancel/route.js +12 -15
  236. package/.medusa/server/src/api/vendor/products/[id]/route.d.ts +18 -9
  237. package/.medusa/server/src/api/vendor/products/[id]/route.js +32 -16
  238. package/.medusa/server/src/api/vendor/products/[id]/variants/[variant_id]/route.d.ts +11 -9
  239. package/.medusa/server/src/api/vendor/products/[id]/variants/[variant_id]/route.js +40 -21
  240. package/.medusa/server/src/api/vendor/products/[id]/variants/route.d.ts +9 -5
  241. package/.medusa/server/src/api/vendor/products/[id]/variants/route.js +28 -10
  242. package/.medusa/server/src/api/vendor/products/helpers.d.ts +8 -0
  243. package/.medusa/server/src/api/vendor/products/helpers.js +26 -0
  244. package/.medusa/server/src/api/vendor/products/middlewares.js +34 -5
  245. package/.medusa/server/src/api/vendor/products/query-config.js +12 -17
  246. package/.medusa/server/src/api/vendor/products/route.d.ts +11 -1
  247. package/.medusa/server/src/api/vendor/products/route.js +25 -12
  248. package/.medusa/server/src/api/vendor/products/validators.d.ts +389 -70
  249. package/.medusa/server/src/api/vendor/products/validators.js +115 -14
  250. package/.medusa/server/src/api/vendor/promotions/validators.d.ts +4 -4
  251. package/.medusa/server/src/api/vendor/refund-reasons/validators.d.ts +2 -2
  252. package/.medusa/server/src/api/vendor/regions/validators.d.ts +4 -4
  253. package/.medusa/server/src/api/vendor/reservations/[id]/route.d.ts +5 -0
  254. package/.medusa/server/src/api/vendor/reservations/[id]/route.js +39 -0
  255. package/.medusa/server/src/api/vendor/reservations/helpers.d.ts +2 -0
  256. package/.medusa/server/src/api/vendor/reservations/helpers.js +21 -0
  257. package/.medusa/server/src/api/{admin/product-brands → vendor/reservations}/middlewares.d.ts +1 -1
  258. package/.medusa/server/src/api/vendor/reservations/middlewares.js +61 -0
  259. package/.medusa/server/src/api/vendor/reservations/query-config.d.ts +19 -0
  260. package/.medusa/server/src/api/vendor/reservations/query-config.js +48 -0
  261. package/.medusa/server/src/api/vendor/reservations/route.d.ts +4 -0
  262. package/.medusa/server/src/api/vendor/reservations/route.js +35 -0
  263. package/.medusa/server/src/api/vendor/reservations/validators.d.ts +296 -0
  264. package/.medusa/server/src/api/vendor/reservations/validators.js +40 -0
  265. package/.medusa/server/src/api/vendor/return-reasons/validators.d.ts +2 -2
  266. package/.medusa/server/src/api/vendor/returns/[id]/receive/confirm/route.js +3 -3
  267. package/.medusa/server/src/api/vendor/returns/validators.d.ts +4 -4
  268. package/.medusa/server/src/api/vendor/sales-channels/validators.d.ts +2 -2
  269. package/.medusa/server/src/api/vendor/sellers/validators.d.ts +4 -4
  270. package/.medusa/server/src/api/vendor/shipping-option-types/validators.d.ts +2 -2
  271. package/.medusa/server/src/api/vendor/shipping-options/middlewares.js +13 -1
  272. package/.medusa/server/src/api/vendor/shipping-options/validators.d.ts +43 -40
  273. package/.medusa/server/src/api/vendor/shipping-options/validators.js +2 -1
  274. package/.medusa/server/src/api/vendor/shipping-profiles/validators.d.ts +4 -4
  275. package/.medusa/server/src/api/vendor/stock-locations/validators.d.ts +2 -2
  276. package/.medusa/server/src/api/vendor/stores/validators.d.ts +2 -2
  277. package/.medusa/server/src/links/cart-line-item-offer-link.js +9 -2
  278. package/.medusa/server/src/links/category-seller-link.js +2 -2
  279. package/.medusa/server/src/links/offer-price-link.js +13 -0
  280. package/.medusa/server/src/links/offer-variant-link.js +2 -2
  281. package/.medusa/server/src/links/order-line-item-offer-link.js +10 -2
  282. package/.medusa/server/src/links/product-attribute-category-link.d.ts +16 -0
  283. package/.medusa/server/src/links/product-attribute-category-link.js +40 -0
  284. package/.medusa/server/src/links/product-attribute-product-link.d.ts +10 -0
  285. package/.medusa/server/src/links/product-attribute-product-link.js +29 -0
  286. package/.medusa/server/src/links/product-attribute-value-link.d.ts +22 -0
  287. package/.medusa/server/src/links/product-attribute-value-link.js +46 -0
  288. package/.medusa/server/src/links/product-change-link.d.ts +8 -0
  289. package/.medusa/server/src/links/product-change-link.js +27 -0
  290. package/.medusa/server/src/links/product-seller-link.js +2 -2
  291. package/.medusa/server/src/links/product-variant-attribute-link.js +21 -0
  292. package/.medusa/server/src/links/product-variant-attribute-value-link.d.ts +2 -0
  293. package/.medusa/server/src/links/product-variant-attribute-value-link.js +21 -0
  294. package/.medusa/server/src/modules/{product/migrations/Migration20260414141012.d.ts → offer/migrations/Migration20260526000000.d.ts} +1 -1
  295. package/.medusa/server/src/modules/offer/migrations/Migration20260526000000.js +16 -0
  296. package/.medusa/server/src/modules/offer/models/offer.d.ts +0 -1
  297. package/.medusa/server/src/modules/offer/models/offer.js +1 -7
  298. package/.medusa/server/src/modules/offer/service.d.ts +0 -1
  299. package/.medusa/server/src/modules/product-attribute/index.d.ts +36 -0
  300. package/.medusa/server/src/modules/product-attribute/index.js +14 -0
  301. package/.medusa/server/src/modules/product-attribute/joiner-config.d.ts +1 -0
  302. package/.medusa/server/src/modules/product-attribute/joiner-config.js +17 -0
  303. package/.medusa/server/src/modules/{product/migrations/Migration20260415151424.d.ts → product-attribute/migrations/Migration20260601000000.d.ts} +1 -1
  304. package/.medusa/server/src/modules/product-attribute/migrations/Migration20260601000000.js +62 -0
  305. package/.medusa/server/src/modules/product-attribute/migrations/Migration20260601000001.d.ts +11 -0
  306. package/.medusa/server/src/modules/product-attribute/migrations/Migration20260601000001.js +29 -0
  307. package/.medusa/server/src/modules/product-attribute/models/index.d.ts +2 -0
  308. package/.medusa/server/src/modules/product-attribute/models/index.js +11 -0
  309. package/.medusa/server/src/modules/product-attribute/models/product-attribute-value.d.ts +25 -0
  310. package/.medusa/server/src/modules/product-attribute/models/product-attribute-value.js +29 -0
  311. package/.medusa/server/src/modules/product-attribute/models/product-attribute.d.ts +26 -0
  312. package/.medusa/server/src/modules/product-attribute/models/product-attribute.js +53 -0
  313. package/.medusa/server/src/modules/product-attribute/service.d.ts +55 -0
  314. package/.medusa/server/src/modules/product-attribute/service.js +15 -0
  315. package/.medusa/server/src/modules/product-edit/index.d.ts +36 -0
  316. package/.medusa/server/src/modules/{subscription → product-edit}/index.js +4 -2
  317. package/.medusa/server/src/modules/product-edit/joiner-config.d.ts +1 -0
  318. package/.medusa/server/src/modules/product-edit/joiner-config.js +17 -0
  319. package/.medusa/server/src/modules/{product/migrations/Migration20260416104248.d.ts → product-edit/migrations/Migration20260601130000.d.ts} +1 -1
  320. package/.medusa/server/src/modules/product-edit/migrations/Migration20260601130000.js +78 -0
  321. package/.medusa/server/src/modules/product-edit/models/index.d.ts +2 -0
  322. package/.medusa/server/src/modules/product-edit/models/index.js +11 -0
  323. package/.medusa/server/src/modules/product-edit/models/product-change-action.d.ts +49 -0
  324. package/.medusa/server/src/modules/{product → product-edit}/models/product-change-action.js +1 -1
  325. package/.medusa/server/src/modules/product-edit/models/product-change.d.ts +31 -0
  326. package/.medusa/server/src/modules/product-edit/models/product-change.js +52 -0
  327. package/.medusa/server/src/modules/product-edit/service.d.ts +84 -0
  328. package/.medusa/server/src/modules/product-edit/service.js +15 -0
  329. package/.medusa/server/src/subscribers/link-order-line-items-to-offers.d.ts +6 -0
  330. package/.medusa/server/src/subscribers/link-order-line-items-to-offers.js +94 -0
  331. package/.medusa/server/src/subscribers/order-edit-confirmed.d.ts +5 -0
  332. package/.medusa/server/src/subscribers/order-edit-confirmed.js +22 -0
  333. package/.medusa/server/src/types/cart-line-item.d.ts +0 -9
  334. package/.medusa/server/src/utils/disable-medusa-middlewares.js +5 -1
  335. package/.medusa/server/src/with-mercur.js +1 -6
  336. package/.medusa/server/src/workflows/cart/hooks/before-refreshing-payment-collection.js +36 -0
  337. package/.medusa/server/src/workflows/cart/hooks/index.d.ts +3 -2
  338. package/.medusa/server/src/workflows/cart/hooks/index.js +4 -3
  339. package/.medusa/server/src/workflows/cart/hooks/set-pricing-context.js +94 -0
  340. package/.medusa/server/src/workflows/cart/hooks/validate.d.ts +1 -0
  341. package/.medusa/server/src/workflows/cart/hooks/validate.js +107 -0
  342. package/.medusa/server/src/workflows/cart/steps/index.d.ts +0 -3
  343. package/.medusa/server/src/workflows/cart/steps/index.js +1 -4
  344. package/.medusa/server/src/workflows/cart/utils/fields.js +29 -2
  345. package/.medusa/server/src/workflows/cart/workflows/complete-cart-with-split-orders.js +29 -3
  346. package/.medusa/server/src/workflows/cart/workflows/index.d.ts +0 -2
  347. package/.medusa/server/src/workflows/cart/workflows/index.js +1 -3
  348. package/.medusa/server/src/workflows/index.d.ts +1 -1
  349. package/.medusa/server/src/workflows/index.js +2 -2
  350. package/.medusa/server/src/workflows/offer/steps/add-offer-prices.d.ts +22 -0
  351. package/.medusa/server/src/workflows/offer/steps/add-offer-prices.js +64 -0
  352. package/.medusa/server/src/workflows/offer/steps/create-offers.d.ts +0 -1
  353. package/.medusa/server/src/workflows/offer/steps/delete-offers.d.ts +6 -1
  354. package/.medusa/server/src/workflows/offer/steps/delete-offers.js +10 -6
  355. package/.medusa/server/src/workflows/offer/steps/ensure-variant-price-sets.d.ts +15 -0
  356. package/.medusa/server/src/workflows/offer/steps/ensure-variant-price-sets.js +61 -0
  357. package/.medusa/server/src/workflows/offer/steps/index.d.ts +4 -1
  358. package/.medusa/server/src/workflows/offer/steps/index.js +5 -2
  359. package/.medusa/server/src/workflows/offer/steps/remove-offer-prices.d.ts +3 -0
  360. package/.medusa/server/src/workflows/offer/steps/remove-offer-prices.js +15 -0
  361. package/.medusa/server/src/workflows/offer/steps/update-offers.d.ts +0 -1
  362. package/.medusa/server/src/workflows/offer/utils/assert-offer-price-ownership.d.ts +17 -0
  363. package/.medusa/server/src/workflows/offer/utils/assert-offer-price-ownership.js +27 -0
  364. package/.medusa/server/src/workflows/offer/utils/index.d.ts +1 -0
  365. package/.medusa/server/src/workflows/offer/utils/index.js +2 -1
  366. package/.medusa/server/src/workflows/offer/workflows/batch-offer-inventory-items.d.ts +17 -31
  367. package/.medusa/server/src/workflows/offer/workflows/batch-offer-inventory-items.js +1 -1
  368. package/.medusa/server/src/workflows/offer/workflows/create-offers.d.ts +12 -111
  369. package/.medusa/server/src/workflows/offer/workflows/create-offers.js +98 -45
  370. package/.medusa/server/src/workflows/offer/workflows/delete-offers.js +2 -2
  371. package/.medusa/server/src/workflows/offer/workflows/update-offers.d.ts +21 -116
  372. package/.medusa/server/src/workflows/offer/workflows/update-offers.js +136 -20
  373. package/.medusa/server/src/workflows/order/workflows/cancel-order-fulfillment.d.ts +1 -1
  374. package/.medusa/server/src/workflows/order/workflows/cancel-order-fulfillment.js +3 -4
  375. package/.medusa/server/src/workflows/order/workflows/confirm-claim-request.d.ts +7 -0
  376. package/.medusa/server/src/workflows/order/workflows/confirm-claim-request.js +151 -0
  377. package/.medusa/server/src/workflows/order/workflows/confirm-exchange-request.d.ts +7 -0
  378. package/.medusa/server/src/workflows/order/workflows/confirm-exchange-request.js +159 -0
  379. package/.medusa/server/src/workflows/order/workflows/confirm-return-receive.d.ts +1 -1
  380. package/.medusa/server/src/workflows/order/workflows/confirm-return-receive.js +3 -4
  381. package/.medusa/server/src/workflows/order/workflows/create-order-fulfillment.d.ts +10 -33
  382. package/.medusa/server/src/workflows/order/workflows/create-order-fulfillment.js +3 -4
  383. package/.medusa/server/src/workflows/order/workflows/index.d.ts +2 -0
  384. package/.medusa/server/src/workflows/order/workflows/index.js +3 -1
  385. package/.medusa/server/src/workflows/product/events.d.ts +5 -47
  386. package/.medusa/server/src/workflows/product/events.js +7 -49
  387. package/.medusa/server/src/workflows/product/index.d.ts +1 -1
  388. package/.medusa/server/src/workflows/product/index.js +2 -2
  389. package/.medusa/server/src/workflows/product/steps/index.d.ts +3 -28
  390. package/.medusa/server/src/workflows/product/steps/index.js +4 -29
  391. package/.medusa/server/src/workflows/product/steps/replace-product-attribute-value-links.d.ts +28 -0
  392. package/.medusa/server/src/workflows/product/steps/replace-product-attribute-value-links.js +72 -0
  393. package/.medusa/server/src/workflows/product/steps/resolve-attribute-refs.d.ts +90 -0
  394. package/.medusa/server/src/workflows/product/steps/resolve-attribute-refs.js +185 -0
  395. package/.medusa/server/src/workflows/product/steps/validate-products-status.d.ts +19 -0
  396. package/.medusa/server/src/workflows/product/steps/validate-products-status.js +28 -0
  397. package/.medusa/server/src/workflows/product/steps/validate-seller-product-permissions.d.ts +0 -1
  398. package/.medusa/server/src/workflows/product/steps/validate-seller-product-permissions.js +2 -21
  399. package/.medusa/server/src/workflows/product/workflows/confirm-products.d.ts +13 -1
  400. package/.medusa/server/src/workflows/product/workflows/confirm-products.js +41 -30
  401. package/.medusa/server/src/workflows/product/workflows/create-products.d.ts +59 -3
  402. package/.medusa/server/src/workflows/product/workflows/create-products.js +202 -16
  403. package/.medusa/server/src/workflows/product/workflows/index.d.ts +3 -26
  404. package/.medusa/server/src/workflows/product/workflows/index.js +4 -27
  405. package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product-category.d.ts +1 -1
  406. package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product-category.js +3 -4
  407. package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product.d.ts +1 -1
  408. package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product.js +3 -4
  409. package/.medusa/server/src/workflows/product/workflows/reject-product.d.ts +8 -1
  410. package/.medusa/server/src/workflows/product/workflows/reject-product.js +42 -38
  411. package/.medusa/server/src/workflows/product/workflows/request-product-change.d.ts +25 -0
  412. package/.medusa/server/src/workflows/product/workflows/request-product-change.js +69 -0
  413. package/.medusa/server/src/workflows/product/workflows/update-products.d.ts +39 -3
  414. package/.medusa/server/src/workflows/product/workflows/update-products.js +148 -10
  415. package/.medusa/server/src/workflows/product-attribute/events.d.ts +19 -0
  416. package/.medusa/server/src/workflows/product-attribute/events.js +23 -0
  417. package/.medusa/server/src/workflows/{subscription → product-attribute}/index.d.ts +1 -0
  418. package/.medusa/server/src/workflows/{subscription → product-attribute}/index.js +2 -1
  419. package/.medusa/server/src/workflows/product-attribute/steps/create-product-attribute-values.d.ts +37 -0
  420. package/.medusa/server/src/workflows/product-attribute/steps/create-product-attribute-values.js +18 -0
  421. package/.medusa/server/src/workflows/product-attribute/steps/create-product-attributes.d.ts +44 -0
  422. package/.medusa/server/src/workflows/product-attribute/steps/create-product-attributes.js +18 -0
  423. package/.medusa/server/src/workflows/{product → product-attribute}/steps/delete-product-attribute-values.d.ts +1 -0
  424. package/.medusa/server/src/workflows/product-attribute/steps/delete-product-attribute-values.js +18 -0
  425. package/.medusa/server/src/workflows/{product → product-attribute}/steps/delete-product-attributes.d.ts +1 -0
  426. package/.medusa/server/src/workflows/product-attribute/steps/delete-product-attributes.js +18 -0
  427. package/.medusa/server/src/workflows/product-attribute/steps/index.d.ts +10 -0
  428. package/.medusa/server/src/workflows/product-attribute/steps/index.js +27 -0
  429. package/.medusa/server/src/workflows/product-attribute/steps/update-product-attribute-values.d.ts +38 -0
  430. package/.medusa/server/src/workflows/product-attribute/steps/update-product-attribute-values.js +23 -0
  431. package/.medusa/server/src/workflows/product-attribute/steps/update-product-attributes.d.ts +38 -0
  432. package/.medusa/server/src/workflows/{product → product-attribute}/steps/update-product-attributes.js +7 -6
  433. package/.medusa/server/src/workflows/product-attribute/steps/upsert-product-attribute-values.d.ts +43 -0
  434. package/.medusa/server/src/workflows/product-attribute/steps/upsert-product-attribute-values.js +51 -0
  435. package/.medusa/server/src/workflows/product-attribute/steps/upsert-product-options-for-axis.d.ts +7 -0
  436. package/.medusa/server/src/workflows/product-attribute/steps/upsert-product-options-for-axis.js +59 -0
  437. package/.medusa/server/src/workflows/product-attribute/steps/validate-attribute-accepts-values.d.ts +6 -0
  438. package/.medusa/server/src/workflows/product-attribute/steps/validate-attribute-accepts-values.js +20 -0
  439. package/.medusa/server/src/workflows/product-attribute/steps/validate-product-attribute-input.d.ts +7 -0
  440. package/.medusa/server/src/workflows/product-attribute/steps/validate-product-attribute-input.js +20 -0
  441. package/.medusa/server/src/workflows/product-attribute/workflows/add-product-attribute.d.ts +52 -0
  442. package/.medusa/server/src/workflows/product-attribute/workflows/add-product-attribute.js +120 -0
  443. package/.medusa/server/src/workflows/product-attribute/workflows/batch-product-attribute-values.d.ts +23 -0
  444. package/.medusa/server/src/workflows/product-attribute/workflows/batch-product-attribute-values.js +252 -0
  445. package/.medusa/server/src/workflows/product-attribute/workflows/create-product-attribute-values.d.ts +18 -0
  446. package/.medusa/server/src/workflows/product-attribute/workflows/create-product-attribute-values.js +26 -0
  447. package/.medusa/server/src/workflows/product-attribute/workflows/create-product-attributes.d.ts +19 -0
  448. package/.medusa/server/src/workflows/product-attribute/workflows/create-product-attributes.js +64 -0
  449. package/.medusa/server/src/workflows/product-attribute/workflows/delete-product-attribute-values.d.ts +16 -0
  450. package/.medusa/server/src/workflows/product-attribute/workflows/delete-product-attribute-values.js +40 -0
  451. package/.medusa/server/src/workflows/product-attribute/workflows/delete-product-attributes.d.ts +23 -0
  452. package/.medusa/server/src/workflows/product-attribute/workflows/delete-product-attributes.js +31 -0
  453. package/.medusa/server/src/workflows/product-attribute/workflows/detach-product-attribute.d.ts +17 -0
  454. package/.medusa/server/src/workflows/product-attribute/workflows/detach-product-attribute.js +62 -0
  455. package/.medusa/server/src/workflows/product-attribute/workflows/index.d.ts +13 -0
  456. package/.medusa/server/src/workflows/product-attribute/workflows/index.js +30 -0
  457. package/.medusa/server/src/workflows/product-attribute/workflows/materialize-product-attributes.d.ts +135 -0
  458. package/.medusa/server/src/workflows/product-attribute/workflows/materialize-product-attributes.js +43 -0
  459. package/.medusa/server/src/workflows/product-attribute/workflows/sync-product-attribute-options.d.ts +24 -0
  460. package/.medusa/server/src/workflows/product-attribute/workflows/sync-product-attribute-options.js +27 -0
  461. package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attribute-values.d.ts +18 -0
  462. package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attribute-values.js +27 -0
  463. package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attribute.d.ts +23 -0
  464. package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attribute.js +67 -0
  465. package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attributes.d.ts +18 -0
  466. package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attributes.js +27 -0
  467. package/.medusa/server/src/workflows/product-attribute/workflows/upsert-product-attribute-values.d.ts +18 -0
  468. package/.medusa/server/src/workflows/product-attribute/workflows/upsert-product-attribute-values.js +26 -0
  469. package/.medusa/server/src/workflows/product-edit/events.d.ts +13 -0
  470. package/.medusa/server/src/workflows/product-edit/events.js +17 -0
  471. package/.medusa/server/src/workflows/product-edit/index.d.ts +1 -0
  472. package/.medusa/server/src/workflows/product-edit/index.js +2 -1
  473. package/.medusa/server/src/workflows/product-edit/steps/add-product-change-action.d.ts +38 -0
  474. package/.medusa/server/src/workflows/product-edit/steps/add-product-change-action.js +18 -0
  475. package/.medusa/server/src/workflows/product-edit/steps/cancel-product-change.d.ts +38 -2
  476. package/.medusa/server/src/workflows/product-edit/steps/cancel-product-change.js +28 -10
  477. package/.medusa/server/src/workflows/product-edit/steps/confirm-product-change-validation.d.ts +15 -0
  478. package/.medusa/server/src/workflows/product-edit/steps/confirm-product-change-validation.js +25 -0
  479. package/.medusa/server/src/workflows/product-edit/steps/confirm-product-changes.d.ts +46 -3
  480. package/.medusa/server/src/workflows/product-edit/steps/confirm-product-changes.js +44 -7
  481. package/.medusa/server/src/workflows/product-edit/steps/create-product-change-actions.d.ts +41 -14
  482. package/.medusa/server/src/workflows/product-edit/steps/create-product-change-actions.js +20 -11
  483. package/.medusa/server/src/workflows/product-edit/steps/create-product-changes.d.ts +46 -16
  484. package/.medusa/server/src/workflows/product-edit/steps/create-product-changes.js +11 -18
  485. package/.medusa/server/src/workflows/product-edit/steps/decline-product-change.d.ts +44 -3
  486. package/.medusa/server/src/workflows/product-edit/steps/decline-product-change.js +37 -10
  487. package/.medusa/server/src/workflows/product-edit/steps/index.d.ts +5 -3
  488. package/.medusa/server/src/workflows/product-edit/steps/index.js +6 -4
  489. package/.medusa/server/src/workflows/product-edit/steps/update-product-change-actions.d.ts +49 -0
  490. package/.medusa/server/src/workflows/product-edit/steps/update-product-change-actions.js +34 -0
  491. package/.medusa/server/src/workflows/product-edit/steps/validate-no-pending-product-change.d.ts +7 -7
  492. package/.medusa/server/src/workflows/product-edit/steps/validate-no-pending-product-change.js +29 -13
  493. package/.medusa/server/src/workflows/product-edit/steps/validate-product-change-is-pending.d.ts +10 -0
  494. package/.medusa/server/src/workflows/product-edit/steps/validate-product-change-is-pending.js +14 -0
  495. package/.medusa/server/src/workflows/product-edit/workflows/apply-product-attribute-change-actions.d.ts +23 -0
  496. package/.medusa/server/src/workflows/product-edit/workflows/apply-product-attribute-change-actions.js +139 -0
  497. package/.medusa/server/src/workflows/product-edit/workflows/apply-product-change-actions.d.ts +38 -0
  498. package/.medusa/server/src/workflows/product-edit/workflows/apply-product-change-actions.js +191 -0
  499. package/.medusa/server/src/workflows/product-edit/workflows/auto-confirm-product-change.d.ts +14 -13
  500. package/.medusa/server/src/workflows/product-edit/workflows/auto-confirm-product-change.js +14 -22
  501. package/.medusa/server/src/workflows/product-edit/workflows/cancel-product-change.d.ts +17 -0
  502. package/.medusa/server/src/workflows/product-edit/workflows/cancel-product-change.js +35 -0
  503. package/.medusa/server/src/workflows/product-edit/workflows/confirm-product-change.d.ts +30 -0
  504. package/.medusa/server/src/workflows/product-edit/workflows/confirm-product-change.js +55 -0
  505. package/.medusa/server/src/workflows/product-edit/workflows/create-product-change.d.ts +17 -0
  506. package/.medusa/server/src/workflows/product-edit/workflows/create-product-change.js +26 -0
  507. package/.medusa/server/src/workflows/product-edit/workflows/index.d.ts +10 -8
  508. package/.medusa/server/src/workflows/product-edit/workflows/index.js +11 -9
  509. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-delete-product.d.ts +14 -17
  510. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-delete-product.js +21 -46
  511. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-attributes.d.ts +55 -0
  512. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-attributes.js +198 -0
  513. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-fields.d.ts +22 -15
  514. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-fields.js +126 -50
  515. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-variants.d.ts +35 -0
  516. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-variants.js +108 -0
  517. package/.medusa/server/src/workflows/product-edit/workflows/record-product-audit-change.d.ts +36 -0
  518. package/.medusa/server/src/workflows/product-edit/workflows/record-product-audit-change.js +53 -0
  519. package/.medusa/server/src/workflows/product-edit/workflows/reject-product-change.d.ts +18 -0
  520. package/.medusa/server/src/workflows/product-edit/workflows/reject-product-change.js +36 -0
  521. package/.medusa/server/src/workflows/product-edit/workflows/stage-product-change.d.ts +35 -0
  522. package/.medusa/server/src/workflows/product-edit/workflows/stage-product-change.js +57 -0
  523. package/.medusa/server/src/workflows/seller/workflows/create-sellers.d.ts +20 -2
  524. package/.medusa/server/src/workflows/seller/workflows/create-sellers.js +1 -1
  525. package/.medusa/server/src/workflows/seller/workflows/update-seller-address.d.ts +14 -2
  526. package/.medusa/server/src/workflows/seller/workflows/update-seller-address.js +1 -1
  527. package/.medusa/server/src/workflows/seller/workflows/update-seller-payment-details.d.ts +14 -2
  528. package/.medusa/server/src/workflows/seller/workflows/update-seller-payment-details.js +1 -1
  529. package/.medusa/server/src/workflows/seller/workflows/update-seller-professional-details.d.ts +14 -2
  530. package/.medusa/server/src/workflows/seller/workflows/update-seller-professional-details.js +1 -1
  531. package/.medusa/server/src/workflows/seller/workflows/update-seller.d.ts +14 -2
  532. package/.medusa/server/src/workflows/seller/workflows/update-seller.js +1 -1
  533. package/package.json +1 -1
  534. package/.medusa/server/src/api/admin/product-brands/[id]/route.d.ts +0 -7
  535. package/.medusa/server/src/api/admin/product-brands/[id]/route.js +0 -51
  536. package/.medusa/server/src/api/admin/product-brands/[id]/sellers/route.d.ts +0 -3
  537. package/.medusa/server/src/api/admin/product-brands/[id]/sellers/route.js +0 -20
  538. package/.medusa/server/src/api/admin/product-brands/middlewares.js +0 -49
  539. package/.medusa/server/src/api/admin/product-brands/query-config.d.ts +0 -12
  540. package/.medusa/server/src/api/admin/product-brands/query-config.js +0 -24
  541. package/.medusa/server/src/api/admin/product-brands/route.d.ts +0 -6
  542. package/.medusa/server/src/api/admin/product-brands/route.js +0 -38
  543. package/.medusa/server/src/api/admin/product-brands/validators.d.ts +0 -284
  544. package/.medusa/server/src/api/admin/product-brands/validators.js +0 -41
  545. package/.medusa/server/src/api/admin/products/batch/route.d.ts +0 -4
  546. package/.medusa/server/src/api/admin/products/batch/route.js +0 -36
  547. package/.medusa/server/src/api/admin/subscription-plans/[id]/overrides/[override_id]/route.d.ts +0 -6
  548. package/.medusa/server/src/api/admin/subscription-plans/[id]/overrides/[override_id]/route.js +0 -43
  549. package/.medusa/server/src/api/admin/subscription-plans/[id]/overrides/route.d.ts +0 -4
  550. package/.medusa/server/src/api/admin/subscription-plans/[id]/overrides/route.js +0 -24
  551. package/.medusa/server/src/api/admin/subscription-plans/[id]/route.d.ts +0 -6
  552. package/.medusa/server/src/api/admin/subscription-plans/[id]/route.js +0 -43
  553. package/.medusa/server/src/api/admin/subscription-plans/middlewares.d.ts +0 -2
  554. package/.medusa/server/src/api/admin/subscription-plans/middlewares.js +0 -81
  555. package/.medusa/server/src/api/admin/subscription-plans/query-config.d.ts +0 -17
  556. package/.medusa/server/src/api/admin/subscription-plans/query-config.js +0 -43
  557. package/.medusa/server/src/api/admin/subscription-plans/route.d.ts +0 -5
  558. package/.medusa/server/src/api/admin/subscription-plans/route.js +0 -35
  559. package/.medusa/server/src/api/admin/subscription-plans/validators.d.ts +0 -117
  560. package/.medusa/server/src/api/admin/subscription-plans/validators.js +0 -42
  561. package/.medusa/server/src/api/store/product-brands/[id]/route.d.ts +0 -2
  562. package/.medusa/server/src/api/store/product-brands/[id]/route.js +0 -18
  563. package/.medusa/server/src/api/store/product-brands/middlewares.d.ts +0 -2
  564. package/.medusa/server/src/api/store/product-brands/middlewares.js +0 -23
  565. package/.medusa/server/src/api/store/product-brands/query-config.d.ts +0 -12
  566. package/.medusa/server/src/api/store/product-brands/query-config.js +0 -23
  567. package/.medusa/server/src/api/store/product-brands/route.d.ts +0 -2
  568. package/.medusa/server/src/api/store/product-brands/route.js +0 -21
  569. package/.medusa/server/src/api/store/product-brands/validators.d.ts +0 -215
  570. package/.medusa/server/src/api/store/product-brands/validators.js +0 -21
  571. package/.medusa/server/src/api/utils/wrap-variants-with-offers-inventory.d.ts +0 -12
  572. package/.medusa/server/src/api/utils/wrap-variants-with-offers-inventory.js +0 -165
  573. package/.medusa/server/src/api/utils/wrap-variants-with-offers-prices.d.ts +0 -12
  574. package/.medusa/server/src/api/utils/wrap-variants-with-offers-prices.js +0 -64
  575. package/.medusa/server/src/api/vendor/product-brands/[id]/route.d.ts +0 -3
  576. package/.medusa/server/src/api/vendor/product-brands/[id]/route.js +0 -18
  577. package/.medusa/server/src/api/vendor/product-brands/middlewares.js +0 -23
  578. package/.medusa/server/src/api/vendor/product-brands/query-config.d.ts +0 -12
  579. package/.medusa/server/src/api/vendor/product-brands/query-config.js +0 -24
  580. package/.medusa/server/src/api/vendor/product-brands/route.d.ts +0 -3
  581. package/.medusa/server/src/api/vendor/product-brands/route.js +0 -21
  582. package/.medusa/server/src/api/vendor/product-brands/validators.d.ts +0 -221
  583. package/.medusa/server/src/api/vendor/product-brands/validators.js +0 -22
  584. package/.medusa/server/src/api/vendor/subscription/middlewares.d.ts +0 -2
  585. package/.medusa/server/src/api/vendor/subscription/middlewares.js +0 -28
  586. package/.medusa/server/src/api/vendor/subscription/route.d.ts +0 -3
  587. package/.medusa/server/src/api/vendor/subscription/route.js +0 -31
  588. package/.medusa/server/src/links/brand-seller-link.js +0 -16
  589. package/.medusa/server/src/links/offer-price-set-link.js +0 -15
  590. package/.medusa/server/src/modules/product/index.d.ts +0 -7
  591. package/.medusa/server/src/modules/product/index.js +0 -14
  592. package/.medusa/server/src/modules/product/migrations/Migration20260414141012.js +0 -169
  593. package/.medusa/server/src/modules/product/migrations/Migration20260415151424.js +0 -14
  594. package/.medusa/server/src/modules/product/migrations/Migration20260416104248.js +0 -14
  595. package/.medusa/server/src/modules/product/migrations/Migration20260416105443.d.ts +0 -5
  596. package/.medusa/server/src/modules/product/migrations/Migration20260416105443.js +0 -16
  597. package/.medusa/server/src/modules/product/migrations/Migration20260421093258.d.ts +0 -5
  598. package/.medusa/server/src/modules/product/migrations/Migration20260421093258.js +0 -22
  599. package/.medusa/server/src/modules/product/migrations/Migration20260422105949.d.ts +0 -5
  600. package/.medusa/server/src/modules/product/migrations/Migration20260422105949.js +0 -32
  601. package/.medusa/server/src/modules/product/migrations/Migration20260422112250.d.ts +0 -5
  602. package/.medusa/server/src/modules/product/migrations/Migration20260422112250.js +0 -16
  603. package/.medusa/server/src/modules/product/migrations/Migration20260424120000.d.ts +0 -5
  604. package/.medusa/server/src/modules/product/migrations/Migration20260424120000.js +0 -16
  605. package/.medusa/server/src/modules/product/migrations/Migration20260427140959.d.ts +0 -5
  606. package/.medusa/server/src/modules/product/migrations/Migration20260427140959.js +0 -20
  607. package/.medusa/server/src/modules/product/migrations/Migration20260427141021.d.ts +0 -5
  608. package/.medusa/server/src/modules/product/migrations/Migration20260427141021.js +0 -16
  609. package/.medusa/server/src/modules/product/migrations/Migration20260428115720.d.ts +0 -5
  610. package/.medusa/server/src/modules/product/migrations/Migration20260428115720.js +0 -16
  611. package/.medusa/server/src/modules/product/migrations/Migration20260430143600.d.ts +0 -5
  612. package/.medusa/server/src/modules/product/migrations/Migration20260430143600.js +0 -15
  613. package/.medusa/server/src/modules/product/migrations/Migration20260430144500.d.ts +0 -5
  614. package/.medusa/server/src/modules/product/migrations/Migration20260430144500.js +0 -23
  615. package/.medusa/server/src/modules/product/migrations/Migration20260430150000.d.ts +0 -5
  616. package/.medusa/server/src/modules/product/migrations/Migration20260430150000.js +0 -14
  617. package/.medusa/server/src/modules/product/migrations/Migration20260520120000.d.ts +0 -5
  618. package/.medusa/server/src/modules/product/migrations/Migration20260520120000.js +0 -16
  619. package/.medusa/server/src/modules/product/models/index.d.ts +0 -13
  620. package/.medusa/server/src/modules/product/models/index.js +0 -33
  621. package/.medusa/server/src/modules/product/models/product-attribute-value.d.ts +0 -1676
  622. package/.medusa/server/src/modules/product/models/product-attribute-value.js +0 -38
  623. package/.medusa/server/src/modules/product/models/product-attribute.d.ts +0 -1597
  624. package/.medusa/server/src/modules/product/models/product-attribute.js +0 -57
  625. package/.medusa/server/src/modules/product/models/product-brand.d.ts +0 -539
  626. package/.medusa/server/src/modules/product/models/product-brand.js +0 -34
  627. package/.medusa/server/src/modules/product/models/product-category.d.ts +0 -1658
  628. package/.medusa/server/src/modules/product/models/product-category.js +0 -55
  629. package/.medusa/server/src/modules/product/models/product-change-action.d.ts +0 -1081
  630. package/.medusa/server/src/modules/product/models/product-change.d.ts +0 -547
  631. package/.medusa/server/src/modules/product/models/product-change.js +0 -50
  632. package/.medusa/server/src/modules/product/models/product-collection.d.ts +0 -540
  633. package/.medusa/server/src/modules/product/models/product-collection.js +0 -27
  634. package/.medusa/server/src/modules/product/models/product-image.d.ts +0 -1733
  635. package/.medusa/server/src/modules/product/models/product-image.js +0 -51
  636. package/.medusa/server/src/modules/product/models/product-tag.d.ts +0 -549
  637. package/.medusa/server/src/modules/product/models/product-tag.js +0 -26
  638. package/.medusa/server/src/modules/product/models/product-type.d.ts +0 -541
  639. package/.medusa/server/src/modules/product/models/product-type.js +0 -26
  640. package/.medusa/server/src/modules/product/models/product-variant-product-image.d.ts +0 -3352
  641. package/.medusa/server/src/modules/product/models/product-variant-product-image.js +0 -19
  642. package/.medusa/server/src/modules/product/models/product-variant.d.ts +0 -1617
  643. package/.medusa/server/src/modules/product/models/product-variant.js +0 -84
  644. package/.medusa/server/src/modules/product/models/product.d.ts +0 -547
  645. package/.medusa/server/src/modules/product/models/product.js +0 -137
  646. package/.medusa/server/src/modules/product/repositories/product-category.d.ts +0 -53
  647. package/.medusa/server/src/modules/product/repositories/product-category.js +0 -381
  648. package/.medusa/server/src/modules/product/service.d.ts +0 -11013
  649. package/.medusa/server/src/modules/product/service.js +0 -1471
  650. package/.medusa/server/src/modules/product/services/product-category.d.ts +0 -37
  651. package/.medusa/server/src/modules/product/services/product-category.js +0 -166
  652. package/.medusa/server/src/modules/subscription/index.d.ts +0 -35
  653. package/.medusa/server/src/modules/subscription/migrations/Migration20260324135903.d.ts +0 -5
  654. package/.medusa/server/src/modules/subscription/migrations/Migration20260324135903.js +0 -24
  655. package/.medusa/server/src/modules/subscription/models/index.d.ts +0 -2
  656. package/.medusa/server/src/modules/subscription/models/index.js +0 -11
  657. package/.medusa/server/src/modules/subscription/models/subscription-override.d.ts +0 -20
  658. package/.medusa/server/src/modules/subscription/models/subscription-override.js +0 -36
  659. package/.medusa/server/src/modules/subscription/models/subscription-plan.d.ts +0 -20
  660. package/.medusa/server/src/modules/subscription/models/subscription-plan.js +0 -32
  661. package/.medusa/server/src/modules/subscription/service.d.ts +0 -49
  662. package/.medusa/server/src/modules/subscription/service.js +0 -17
  663. package/.medusa/server/src/workflows/cart/hooks/validate-add-to-cart-stock.js +0 -52
  664. package/.medusa/server/src/workflows/cart/hooks/validate-update-line-item-stock.js +0 -60
  665. package/.medusa/server/src/workflows/cart/steps/calculate-offer-prices.d.ts +0 -19
  666. package/.medusa/server/src/workflows/cart/steps/calculate-offer-prices.js +0 -39
  667. package/.medusa/server/src/workflows/cart/steps/decorate-line-item-with-offer.d.ts +0 -8
  668. package/.medusa/server/src/workflows/cart/steps/decorate-line-item-with-offer.js +0 -45
  669. package/.medusa/server/src/workflows/cart/steps/get-line-item-actions.d.ts +0 -21
  670. package/.medusa/server/src/workflows/cart/steps/get-line-item-actions.js +0 -85
  671. package/.medusa/server/src/workflows/cart/workflows/add-to-cart.d.ts +0 -12
  672. package/.medusa/server/src/workflows/cart/workflows/add-to-cart.js +0 -235
  673. package/.medusa/server/src/workflows/cart/workflows/update-line-item-in-cart.d.ts +0 -16
  674. package/.medusa/server/src/workflows/cart/workflows/update-line-item-in-cart.js +0 -87
  675. package/.medusa/server/src/workflows/product/steps/associate-sellers-with-product-brand.d.ts +0 -8
  676. package/.medusa/server/src/workflows/product/steps/associate-sellers-with-product-brand.js +0 -26
  677. package/.medusa/server/src/workflows/product/steps/batch-link-products-in-category.d.ts +0 -7
  678. package/.medusa/server/src/workflows/product/steps/batch-link-products-in-category.js +0 -61
  679. package/.medusa/server/src/workflows/product/steps/batch-product-attributes.d.ts +0 -11
  680. package/.medusa/server/src/workflows/product/steps/batch-product-attributes.js +0 -16
  681. package/.medusa/server/src/workflows/product/steps/create-product-attribute-values.d.ts +0 -6
  682. package/.medusa/server/src/workflows/product/steps/create-product-attribute-values.js +0 -17
  683. package/.medusa/server/src/workflows/product/steps/create-product-attributes.d.ts +0 -2
  684. package/.medusa/server/src/workflows/product/steps/create-product-attributes.js +0 -17
  685. package/.medusa/server/src/workflows/product/steps/create-product-brands.d.ts +0 -2
  686. package/.medusa/server/src/workflows/product/steps/create-product-brands.js +0 -17
  687. package/.medusa/server/src/workflows/product/steps/create-product-categories.d.ts +0 -1548
  688. package/.medusa/server/src/workflows/product/steps/create-product-categories.js +0 -18
  689. package/.medusa/server/src/workflows/product/steps/create-product-variants.d.ts +0 -2
  690. package/.medusa/server/src/workflows/product/steps/create-product-variants.js +0 -18
  691. package/.medusa/server/src/workflows/product/steps/create-products.d.ts +0 -2
  692. package/.medusa/server/src/workflows/product/steps/create-products.js +0 -17
  693. package/.medusa/server/src/workflows/product/steps/delete-product-attribute-values.js +0 -17
  694. package/.medusa/server/src/workflows/product/steps/delete-product-attributes.js +0 -17
  695. package/.medusa/server/src/workflows/product/steps/delete-product-brands.d.ts +0 -1
  696. package/.medusa/server/src/workflows/product/steps/delete-product-brands.js +0 -17
  697. package/.medusa/server/src/workflows/product/steps/delete-product-categories.d.ts +0 -1
  698. package/.medusa/server/src/workflows/product/steps/delete-product-categories.js +0 -17
  699. package/.medusa/server/src/workflows/product/steps/delete-product-variants.d.ts +0 -1
  700. package/.medusa/server/src/workflows/product/steps/delete-product-variants.js +0 -17
  701. package/.medusa/server/src/workflows/product/steps/delete-products.d.ts +0 -1
  702. package/.medusa/server/src/workflows/product/steps/delete-products.js +0 -17
  703. package/.medusa/server/src/workflows/product/steps/detach-sellers-from-product-brand.d.ts +0 -8
  704. package/.medusa/server/src/workflows/product/steps/detach-sellers-from-product-brand.js +0 -26
  705. package/.medusa/server/src/workflows/product/steps/remove-attribute-from-product.d.ts +0 -6
  706. package/.medusa/server/src/workflows/product/steps/remove-attribute-from-product.js +0 -11
  707. package/.medusa/server/src/workflows/product/steps/update-product-attribute-values.d.ts +0 -7
  708. package/.medusa/server/src/workflows/product/steps/update-product-attribute-values.js +0 -22
  709. package/.medusa/server/src/workflows/product/steps/update-product-attributes.d.ts +0 -7
  710. package/.medusa/server/src/workflows/product/steps/update-product-brands.d.ts +0 -7
  711. package/.medusa/server/src/workflows/product/steps/update-product-brands.js +0 -28
  712. package/.medusa/server/src/workflows/product/steps/update-product-categories.d.ts +0 -1552
  713. package/.medusa/server/src/workflows/product/steps/update-product-categories.js +0 -20
  714. package/.medusa/server/src/workflows/product/steps/update-product-variants.d.ts +0 -10
  715. package/.medusa/server/src/workflows/product/steps/update-product-variants.js +0 -32
  716. package/.medusa/server/src/workflows/product/steps/update-products.d.ts +0 -10
  717. package/.medusa/server/src/workflows/product/steps/update-products.js +0 -33
  718. package/.medusa/server/src/workflows/product/steps/upsert-product-attribute-values.d.ts +0 -5
  719. package/.medusa/server/src/workflows/product/steps/upsert-product-attribute-values.js +0 -30
  720. package/.medusa/server/src/workflows/product/steps/validate-attribute-accepts-values.d.ts +0 -5
  721. package/.medusa/server/src/workflows/product/steps/validate-attribute-accepts-values.js +0 -19
  722. package/.medusa/server/src/workflows/product/steps/validate-confirm-products.d.ts +0 -3
  723. package/.medusa/server/src/workflows/product/steps/validate-confirm-products.js +0 -14
  724. package/.medusa/server/src/workflows/product/steps/validate-delete-product-attribute-values.d.ts +0 -5
  725. package/.medusa/server/src/workflows/product/steps/validate-delete-product-attribute-values.js +0 -19
  726. package/.medusa/server/src/workflows/product/steps/validate-delete-product-attributes.d.ts +0 -5
  727. package/.medusa/server/src/workflows/product/steps/validate-delete-product-attributes.js +0 -30
  728. package/.medusa/server/src/workflows/product/steps/validate-reject-product.d.ts +0 -3
  729. package/.medusa/server/src/workflows/product/steps/validate-reject-product.js +0 -12
  730. package/.medusa/server/src/workflows/product/steps/validate-request-changes.d.ts +0 -3
  731. package/.medusa/server/src/workflows/product/steps/validate-request-changes.js +0 -12
  732. package/.medusa/server/src/workflows/product/steps/validate-resubmit-product.d.ts +0 -3
  733. package/.medusa/server/src/workflows/product/steps/validate-resubmit-product.js +0 -12
  734. package/.medusa/server/src/workflows/product/workflows/batch-link-products-in-category.d.ts +0 -8
  735. package/.medusa/server/src/workflows/product/workflows/batch-link-products-in-category.js +0 -10
  736. package/.medusa/server/src/workflows/product/workflows/batch-product-attributes.d.ts +0 -12
  737. package/.medusa/server/src/workflows/product/workflows/batch-product-attributes.js +0 -23
  738. package/.medusa/server/src/workflows/product/workflows/batch-products.d.ts +0 -3
  739. package/.medusa/server/src/workflows/product/workflows/batch-products.js +0 -86
  740. package/.medusa/server/src/workflows/product/workflows/create-product-attribute-values.d.ts +0 -8
  741. package/.medusa/server/src/workflows/product/workflows/create-product-attribute-values.js +0 -21
  742. package/.medusa/server/src/workflows/product/workflows/create-product-attributes.d.ts +0 -7
  743. package/.medusa/server/src/workflows/product/workflows/create-product-attributes.js +0 -18
  744. package/.medusa/server/src/workflows/product/workflows/create-product-brands.d.ts +0 -7
  745. package/.medusa/server/src/workflows/product/workflows/create-product-brands.js +0 -19
  746. package/.medusa/server/src/workflows/product/workflows/create-product-categories.d.ts +0 -1553
  747. package/.medusa/server/src/workflows/product/workflows/create-product-categories.js +0 -18
  748. package/.medusa/server/src/workflows/product/workflows/create-product-variants.d.ts +0 -3
  749. package/.medusa/server/src/workflows/product/workflows/create-product-variants.js +0 -25
  750. package/.medusa/server/src/workflows/product/workflows/delete-product-attribute-values.d.ts +0 -6
  751. package/.medusa/server/src/workflows/product/workflows/delete-product-attribute-values.js +0 -20
  752. package/.medusa/server/src/workflows/product/workflows/delete-product-attributes.d.ts +0 -6
  753. package/.medusa/server/src/workflows/product/workflows/delete-product-attributes.js +0 -20
  754. package/.medusa/server/src/workflows/product/workflows/delete-product-brands.d.ts +0 -6
  755. package/.medusa/server/src/workflows/product/workflows/delete-product-brands.js +0 -19
  756. package/.medusa/server/src/workflows/product/workflows/delete-product-categories.d.ts +0 -6
  757. package/.medusa/server/src/workflows/product/workflows/delete-product-categories.js +0 -18
  758. package/.medusa/server/src/workflows/product/workflows/delete-product-variants.d.ts +0 -8
  759. package/.medusa/server/src/workflows/product/workflows/delete-product-variants.js +0 -24
  760. package/.medusa/server/src/workflows/product/workflows/delete-products.d.ts +0 -6
  761. package/.medusa/server/src/workflows/product/workflows/delete-products.js +0 -19
  762. package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product-brand.d.ts +0 -14
  763. package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product-brand.js +0 -21
  764. package/.medusa/server/src/workflows/product/workflows/remove-attribute-from-product.d.ts +0 -7
  765. package/.medusa/server/src/workflows/product/workflows/remove-attribute-from-product.js +0 -20
  766. package/.medusa/server/src/workflows/product/workflows/request-product-changes.d.ts +0 -11
  767. package/.medusa/server/src/workflows/product/workflows/request-product-changes.js +0 -61
  768. package/.medusa/server/src/workflows/product/workflows/resubmit-product.d.ts +0 -8
  769. package/.medusa/server/src/workflows/product/workflows/resubmit-product.js +0 -48
  770. package/.medusa/server/src/workflows/product/workflows/submit-seller-products.d.ts +0 -3
  771. package/.medusa/server/src/workflows/product/workflows/submit-seller-products.js +0 -76
  772. package/.medusa/server/src/workflows/product/workflows/update-product-attribute-values.d.ts +0 -8
  773. package/.medusa/server/src/workflows/product/workflows/update-product-attribute-values.js +0 -18
  774. package/.medusa/server/src/workflows/product/workflows/update-product-attributes.d.ts +0 -8
  775. package/.medusa/server/src/workflows/product/workflows/update-product-attributes.js +0 -18
  776. package/.medusa/server/src/workflows/product/workflows/update-product-brands.d.ts +0 -8
  777. package/.medusa/server/src/workflows/product/workflows/update-product-brands.js +0 -19
  778. package/.medusa/server/src/workflows/product/workflows/update-product-categories.d.ts +0 -1555
  779. package/.medusa/server/src/workflows/product/workflows/update-product-categories.js +0 -18
  780. package/.medusa/server/src/workflows/product/workflows/update-product-variants.d.ts +0 -3
  781. package/.medusa/server/src/workflows/product/workflows/update-product-variants.js +0 -36
  782. package/.medusa/server/src/workflows/product/workflows/upsert-product-attribute-values.d.ts +0 -8
  783. package/.medusa/server/src/workflows/product/workflows/upsert-product-attribute-values.js +0 -21
  784. package/.medusa/server/src/workflows/product-edit/steps/retrieve-product-with-change.d.ts +0 -5
  785. package/.medusa/server/src/workflows/product-edit/steps/retrieve-product-with-change.js +0 -11
  786. package/.medusa/server/src/workflows/product-edit/steps/validate-product-change-pending.d.ts +0 -11
  787. package/.medusa/server/src/workflows/product-edit/steps/validate-product-change-pending.js +0 -21
  788. package/.medusa/server/src/workflows/product-edit/workflows/cancel-product-edit.d.ts +0 -19
  789. package/.medusa/server/src/workflows/product-edit/workflows/cancel-product-edit.js +0 -40
  790. package/.medusa/server/src/workflows/product-edit/workflows/confirm-product-edit.d.ts +0 -21
  791. package/.medusa/server/src/workflows/product-edit/workflows/confirm-product-edit.js +0 -44
  792. package/.medusa/server/src/workflows/product-edit/workflows/decline-product-edit.d.ts +0 -16
  793. package/.medusa/server/src/workflows/product-edit/workflows/decline-product-edit.js +0 -42
  794. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-add-attribute.d.ts +0 -19
  795. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-add-attribute.js +0 -66
  796. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-add-variant.d.ts +0 -17
  797. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-add-variant.js +0 -58
  798. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-remove-attribute.d.ts +0 -17
  799. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-remove-attribute.js +0 -62
  800. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-remove-variant.d.ts +0 -16
  801. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-remove-variant.js +0 -68
  802. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-variant.d.ts +0 -21
  803. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-variant.js +0 -89
  804. package/.medusa/server/src/workflows/subscription/steps/create-subscription-overrides.d.ts +0 -31
  805. package/.medusa/server/src/workflows/subscription/steps/create-subscription-overrides.js +0 -17
  806. package/.medusa/server/src/workflows/subscription/steps/create-subscription-plans.d.ts +0 -31
  807. package/.medusa/server/src/workflows/subscription/steps/create-subscription-plans.js +0 -17
  808. package/.medusa/server/src/workflows/subscription/steps/delete-subscription-overrides.d.ts +0 -2
  809. package/.medusa/server/src/workflows/subscription/steps/delete-subscription-overrides.js +0 -17
  810. package/.medusa/server/src/workflows/subscription/steps/delete-subscription-plans.d.ts +0 -2
  811. package/.medusa/server/src/workflows/subscription/steps/delete-subscription-plans.js +0 -17
  812. package/.medusa/server/src/workflows/subscription/steps/index.d.ts +0 -6
  813. package/.medusa/server/src/workflows/subscription/steps/index.js +0 -23
  814. package/.medusa/server/src/workflows/subscription/steps/update-subscription-overrides.d.ts +0 -31
  815. package/.medusa/server/src/workflows/subscription/steps/update-subscription-overrides.js +0 -17
  816. package/.medusa/server/src/workflows/subscription/steps/update-subscription-plans.d.ts +0 -31
  817. package/.medusa/server/src/workflows/subscription/steps/update-subscription-plans.js +0 -17
  818. package/.medusa/server/src/workflows/subscription/workflows/create-subscription-overrides.d.ts +0 -31
  819. package/.medusa/server/src/workflows/subscription/workflows/create-subscription-overrides.js +0 -11
  820. package/.medusa/server/src/workflows/subscription/workflows/create-subscription-plans.d.ts +0 -31
  821. package/.medusa/server/src/workflows/subscription/workflows/create-subscription-plans.js +0 -11
  822. package/.medusa/server/src/workflows/subscription/workflows/delete-subscription-overrides.d.ts +0 -5
  823. package/.medusa/server/src/workflows/subscription/workflows/delete-subscription-overrides.js +0 -11
  824. package/.medusa/server/src/workflows/subscription/workflows/delete-subscription-plans.d.ts +0 -5
  825. package/.medusa/server/src/workflows/subscription/workflows/delete-subscription-plans.js +0 -11
  826. package/.medusa/server/src/workflows/subscription/workflows/index.d.ts +0 -6
  827. package/.medusa/server/src/workflows/subscription/workflows/index.js +0 -23
  828. package/.medusa/server/src/workflows/subscription/workflows/update-subscription-overrides.d.ts +0 -31
  829. package/.medusa/server/src/workflows/subscription/workflows/update-subscription-overrides.js +0 -11
  830. package/.medusa/server/src/workflows/subscription/workflows/update-subscription-plans.d.ts +0 -31
  831. package/.medusa/server/src/workflows/subscription/workflows/update-subscription-plans.js +0 -11
  832. package/.medusa/server/src/workflows/utils/override-workflow.d.ts +0 -12
  833. package/.medusa/server/src/workflows/utils/override-workflow.js +0 -21
  834. /package/.medusa/server/src/links/{brand-seller-link.d.ts → offer-price-link.d.ts} +0 -0
  835. /package/.medusa/server/src/links/{offer-price-set-link.d.ts → product-variant-attribute-link.d.ts} +0 -0
  836. /package/.medusa/server/src/workflows/cart/hooks/{validate-add-to-cart-stock.d.ts → before-refreshing-payment-collection.d.ts} +0 -0
  837. /package/.medusa/server/src/workflows/cart/hooks/{validate-update-line-item-stock.d.ts → set-pricing-context.d.ts} +0 -0
@@ -3,42 +3,45 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.vendorMiddlewares = void 0;
4
4
  const framework_1 = require("@medusajs/framework");
5
5
  const middlewares_1 = require("./campaigns/middlewares");
6
- const middlewares_2 = require("./collections/middlewares");
7
- const middlewares_3 = require("./members/middlewares");
8
- const middlewares_4 = require("./currencies/middlewares");
9
- const middlewares_5 = require("./customers/middlewares");
10
- const middlewares_6 = require("./fulfillment-providers/middlewares");
11
- const middlewares_7 = require("./fulfillment-sets/middlewares");
12
- const middlewares_8 = require("./inventory-items/middlewares");
13
- const middlewares_9 = require("./offers/middlewares");
14
- const middlewares_10 = require("./orders/middlewares");
15
- const middlewares_11 = require("./payments/middlewares");
16
- const middlewares_12 = require("./payouts/middlewares");
17
- const middlewares_13 = require("./payout-accounts/middlewares");
18
- const middlewares_14 = require("./price-lists/middlewares");
19
- const middlewares_15 = require("./price-preferences/middlewares");
20
- const middlewares_16 = require("./product-categories/middlewares");
21
- const middlewares_17 = require("./products/middlewares");
22
- const middlewares_18 = require("./product-types/middlewares");
23
- const middlewares_19 = require("./product-variants/middlewares");
24
- const middlewares_20 = require("./promotions/middlewares");
25
- const middlewares_21 = require("./regions/middlewares");
26
- const middlewares_22 = require("./refund-reasons/middlewares");
27
- const middlewares_23 = require("./return-reasons/middlewares");
28
- const middlewares_24 = require("./returns/middlewares");
29
- const middlewares_25 = require("./sales-channels/middlewares");
30
- const middlewares_26 = require("./sellers/middlewares");
31
- const middlewares_27 = require("./shipping-options/middlewares");
32
- const middlewares_28 = require("./shipping-option-types/middlewares");
33
- const middlewares_29 = require("./shipping-profiles/middlewares");
34
- const middlewares_30 = require("./stock-locations/middlewares");
35
- const middlewares_31 = require("./stores/middlewares");
36
- const middlewares_32 = require("./subscription/middlewares");
37
- const middlewares_33 = require("./uploads/middlewares");
6
+ const middlewares_2 = require("./claims/middlewares");
7
+ const middlewares_3 = require("./collections/middlewares");
8
+ const middlewares_4 = require("./members/middlewares");
9
+ const middlewares_5 = require("./currencies/middlewares");
10
+ const middlewares_6 = require("./customers/middlewares");
11
+ const middlewares_7 = require("./exchanges/middlewares");
12
+ const middlewares_8 = require("./fulfillment-providers/middlewares");
13
+ const middlewares_9 = require("./fulfillment-sets/middlewares");
14
+ const middlewares_10 = require("./inventory-items/middlewares");
15
+ const middlewares_11 = require("./offers/middlewares");
16
+ const middlewares_12 = require("./order-edits/middlewares");
17
+ const middlewares_13 = require("./orders/middlewares");
18
+ const middlewares_14 = require("./payment-collections/middlewares");
19
+ const middlewares_15 = require("./payments/middlewares");
20
+ const middlewares_16 = require("./payouts/middlewares");
21
+ const middlewares_17 = require("./payout-accounts/middlewares");
22
+ const middlewares_18 = require("./price-lists/middlewares");
23
+ const middlewares_19 = require("./price-preferences/middlewares");
24
+ const middlewares_20 = require("./product-categories/middlewares");
25
+ const middlewares_21 = require("./products/middlewares");
26
+ const middlewares_22 = require("./product-types/middlewares");
27
+ const middlewares_23 = require("./product-variants/middlewares");
28
+ const middlewares_24 = require("./promotions/middlewares");
29
+ const middlewares_25 = require("./regions/middlewares");
30
+ const middlewares_26 = require("./refund-reasons/middlewares");
31
+ const middlewares_27 = require("./reservations/middlewares");
32
+ const middlewares_28 = require("./return-reasons/middlewares");
33
+ const middlewares_29 = require("./returns/middlewares");
34
+ const middlewares_30 = require("./sales-channels/middlewares");
35
+ const middlewares_31 = require("./sellers/middlewares");
36
+ const middlewares_32 = require("./shipping-options/middlewares");
37
+ const middlewares_33 = require("./shipping-option-types/middlewares");
38
+ const middlewares_34 = require("./shipping-profiles/middlewares");
39
+ const middlewares_35 = require("./stock-locations/middlewares");
40
+ const middlewares_36 = require("./stores/middlewares");
41
+ const middlewares_37 = require("./uploads/middlewares");
38
42
  const utils_1 = require("../utils");
39
- const middlewares_34 = require("./product-attributes/middlewares");
40
- const middlewares_35 = require("./product-brands/middlewares");
41
- const middlewares_36 = require("./product-tags/middlewares");
43
+ const middlewares_38 = require("./product-attributes/middlewares");
44
+ const middlewares_39 = require("./product-tags/middlewares");
42
45
  const unauthenticatedRoutes = [
43
46
  /^\/vendor\/sellers$/,
44
47
  /^\/vendor\/sellers\/select$/,
@@ -76,41 +79,44 @@ exports.vendorMiddlewares = [
76
79
  (0, utils_1.unlessBaseUrl)(unauthenticatedRoutes, utils_1.ensureSellerMiddleware),
77
80
  ],
78
81
  },
79
- ...middlewares_3.vendorMembersMiddlewares,
82
+ ...middlewares_4.vendorMembersMiddlewares,
80
83
  ...middlewares_1.vendorCampaignsMiddlewares,
81
- ...middlewares_2.vendorCollectionsMiddlewares,
82
- ...middlewares_4.vendorCurrenciesMiddlewares,
83
- ...middlewares_5.vendorCustomersMiddlewares,
84
- ...middlewares_6.vendorFulfillmentProvidersMiddlewares,
85
- ...middlewares_7.vendorFulfillmentSetsMiddlewares,
86
- ...middlewares_8.vendorInventoryItemsMiddlewares,
87
- ...middlewares_9.vendorOffersMiddlewares,
88
- ...middlewares_10.vendorOrdersMiddlewares,
89
- ...middlewares_11.vendorPaymentsMiddlewares,
90
- ...middlewares_12.vendorPayoutsMiddlewares,
91
- ...middlewares_13.vendorPayoutAccountsMiddlewares,
92
- ...middlewares_14.vendorPriceListsMiddlewares,
93
- ...middlewares_15.vendorPricePreferencesMiddlewares,
94
- ...middlewares_16.vendorProductCategoriesMiddlewares,
95
- ...middlewares_34.vendorProductAttributesMiddlewares,
96
- ...middlewares_35.vendorProductBrandsMiddlewares,
97
- ...middlewares_17.vendorProductsMiddlewares,
98
- ...middlewares_18.vendorProductTypesMiddlewares,
99
- ...middlewares_19.vendorProductVariantsMiddlewares,
100
- ...middlewares_20.vendorPromotionsMiddlewares,
101
- ...middlewares_21.vendorRegionsMiddlewares,
102
- ...middlewares_22.vendorRefundReasonsMiddlewares,
103
- ...middlewares_23.vendorReturnReasonsMiddlewares,
104
- ...middlewares_24.vendorReturnsMiddlewares,
105
- ...middlewares_25.vendorSalesChannelsMiddlewares,
106
- ...middlewares_26.vendorSellersMiddlewares,
107
- ...middlewares_27.vendorShippingOptionsMiddlewares,
108
- ...middlewares_28.vendorShippingOptionTypesMiddlewares,
109
- ...middlewares_29.vendorShippingProfilesMiddlewares,
110
- ...middlewares_30.vendorStockLocationsMiddlewares,
111
- ...middlewares_31.vendorStoresMiddlewares,
112
- ...middlewares_33.vendorUploadsMiddlewares,
113
- ...middlewares_36.vendorProductTagsMiddlewares,
114
- ...middlewares_32.vendorSubscriptionMiddlewares,
84
+ ...middlewares_2.vendorClaimsMiddlewares,
85
+ ...middlewares_3.vendorCollectionsMiddlewares,
86
+ ...middlewares_5.vendorCurrenciesMiddlewares,
87
+ ...middlewares_6.vendorCustomersMiddlewares,
88
+ ...middlewares_7.vendorExchangesMiddlewares,
89
+ ...middlewares_8.vendorFulfillmentProvidersMiddlewares,
90
+ ...middlewares_9.vendorFulfillmentSetsMiddlewares,
91
+ ...middlewares_10.vendorInventoryItemsMiddlewares,
92
+ ...middlewares_11.vendorOffersMiddlewares,
93
+ ...middlewares_12.vendorOrderEditsMiddlewares,
94
+ ...middlewares_13.vendorOrdersMiddlewares,
95
+ ...middlewares_14.vendorPaymentCollectionsMiddlewares,
96
+ ...middlewares_15.vendorPaymentsMiddlewares,
97
+ ...middlewares_16.vendorPayoutsMiddlewares,
98
+ ...middlewares_17.vendorPayoutAccountsMiddlewares,
99
+ ...middlewares_18.vendorPriceListsMiddlewares,
100
+ ...middlewares_19.vendorPricePreferencesMiddlewares,
101
+ ...middlewares_20.vendorProductCategoriesMiddlewares,
102
+ ...middlewares_38.vendorProductAttributesMiddlewares,
103
+ ...middlewares_21.vendorProductsMiddlewares,
104
+ ...middlewares_22.vendorProductTypesMiddlewares,
105
+ ...middlewares_23.vendorProductVariantsMiddlewares,
106
+ ...middlewares_24.vendorPromotionsMiddlewares,
107
+ ...middlewares_25.vendorRegionsMiddlewares,
108
+ ...middlewares_26.vendorRefundReasonsMiddlewares,
109
+ ...middlewares_27.vendorReservationsMiddlewares,
110
+ ...middlewares_28.vendorReturnReasonsMiddlewares,
111
+ ...middlewares_29.vendorReturnsMiddlewares,
112
+ ...middlewares_30.vendorSalesChannelsMiddlewares,
113
+ ...middlewares_31.vendorSellersMiddlewares,
114
+ ...middlewares_32.vendorShippingOptionsMiddlewares,
115
+ ...middlewares_33.vendorShippingOptionTypesMiddlewares,
116
+ ...middlewares_34.vendorShippingProfilesMiddlewares,
117
+ ...middlewares_35.vendorStockLocationsMiddlewares,
118
+ ...middlewares_36.vendorStoresMiddlewares,
119
+ ...middlewares_37.vendorUploadsMiddlewares,
120
+ ...middlewares_39.vendorProductTagsMiddlewares,
115
121
  ];
116
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWlkZGxld2FyZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvYXBpL3ZlbmRvci9taWRkbGV3YXJlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxtREFHNEI7QUFFNUIseURBQW9FO0FBQ3BFLDJEQUF3RTtBQUN4RSx1REFBZ0U7QUFDaEUsMERBQXNFO0FBQ3RFLHlEQUFvRTtBQUNwRSxxRUFBMkY7QUFDM0YsZ0VBQWlGO0FBQ2pGLCtEQUErRTtBQUMvRSxzREFBOEQ7QUFDOUQsdURBQThEO0FBQzlELHlEQUFrRTtBQUNsRSx3REFBZ0U7QUFDaEUsZ0VBQStFO0FBQy9FLDREQUF1RTtBQUN2RSxrRUFBbUY7QUFDbkYsbUVBQXFGO0FBQ3JGLHlEQUFrRTtBQUNsRSw4REFBMkU7QUFDM0UsaUVBQWlGO0FBQ2pGLDJEQUFzRTtBQUN0RSx3REFBZ0U7QUFDaEUsK0RBQTZFO0FBQzdFLCtEQUE2RTtBQUM3RSx3REFBZ0U7QUFDaEUsK0RBQTZFO0FBQzdFLHdEQUFnRTtBQUNoRSxpRUFBaUY7QUFDakYsc0VBQTBGO0FBQzFGLGtFQUFtRjtBQUNuRixnRUFBK0U7QUFDL0UsdURBQThEO0FBQzlELDZEQUEwRTtBQUMxRSx3REFBZ0U7QUFDaEUsb0NBQWl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LEdBQUcsOENBQWdDO0lBQ25DLEdBQUcsOENBQStCO0lBQ2xDLEdBQUcsc0NBQXVCO0lBQzFCLEdBQUcsMENBQTJCO0lBQzlCLEdBQUcsc0NBQXVCO0lBQzFCLEdBQUcsa0RBQW1DO0lBQ3RDLEdBQUcsd0NBQXlCO0lBQzVCLEdBQUcsdUNBQXdCO0lBQzNCLEdBQUcsOENBQStCO0lBQ2xDLEdBQUcsMENBQTJCO0lBQzlCLEdBQUcsZ0RBQWlDO0lBQ3BDLEdBQUcsaURBQWtDO0lBQ3JDLEdBQUcsaURBQWtDO0lBQ3JDLEdBQUcsd0NBQXlCO0lBQzVCLEdBQUcsNENBQTZCO0lBQ2hDLEdBQUcsK0NBQWdDO0lBQ25DLEdBQUcsMENBQTJCO0lBQzlCLEdBQUcsdUNBQXdCO0lBQzNCLEdBQUcsNkNBQThCO0lBQ2pDLEdBQUcsNENBQTZCO0lBQ2hDLEdBQUcsNkNBQThCO0lBQ2pDLEdBQUcsdUNBQXdCO0lBQzNCLEdBQUcsNkNBQThCO0lBQ2pDLEdBQUcsdUNBQXdCO0lBQzNCLEdBQUcsK0NBQWdDO0lBQ25DLEdBQUcsbURBQW9DO0lBQ3ZDLEdBQUcsZ0RBQWlDO0lBQ3BDLEdBQUcsOENBQStCO0lBQ2xDLEdBQUcsc0NBQXVCO0lBQzFCLEdBQUcsdUNBQXdCO0lBQzNCLEdBQUcsMkNBQTRCO0NBQ2hDLENBQUEifQ==
@@ -6,7 +6,6 @@ exports.defaultVendorOfferFields = [
6
6
  "seller_id",
7
7
  "variant_id",
8
8
  "shipping_profile_id",
9
- "price_set_id",
10
9
  "sku",
11
10
  "ean",
12
11
  "upc",
@@ -23,12 +22,13 @@ exports.defaultVendorOfferFields = [
23
22
  "product_variant.sku",
24
23
  "shipping_profile.id",
25
24
  "shipping_profile.name",
26
- "price_set.id",
27
- "price_set.prices.id",
28
- "price_set.prices.amount",
29
- "price_set.prices.currency_code",
30
- "price_set.prices.min_quantity",
31
- "price_set.prices.max_quantity",
25
+ "prices.id",
26
+ "prices.amount",
27
+ "prices.currency_code",
28
+ "prices.min_quantity",
29
+ "prices.max_quantity",
30
+ "prices.price_rules.attribute",
31
+ "prices.price_rules.value",
32
32
  "inventory_items.inventory_item_id",
33
33
  "inventory_items.required_quantity",
34
34
  "inventory_items.id",
@@ -44,4 +44,4 @@ exports.vendorOfferQueryConfig = {
44
44
  isList: false,
45
45
  },
46
46
  };
47
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVlcnktY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2FwaS92ZW5kb3Ivb2ZmZXJzL3F1ZXJ5LWNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBYSxRQUFBLHdCQUF3QixHQUFHO0lBQ3RDLElBQUk7SUFDSixXQUFXO0lBQ1gsWUFBWTtJQUNaLHFCQUFxQjtJQUNyQixjQUFjO0lBQ2QsS0FBSztJQUNMLEtBQUs7SUFDTCxLQUFLO0lBQ0wsWUFBWTtJQUNaLFVBQVU7SUFDVixZQUFZO0lBQ1osWUFBWTtJQUNaLFlBQVk7SUFDWixXQUFXO0lBQ1gsYUFBYTtJQUNiLGVBQWU7SUFDZixvQkFBb0I7SUFDcEIsdUJBQXVCO0lBQ3ZCLHFCQUFxQjtJQUNyQixxQkFBcUI7SUFDckIsdUJBQXVCO0lBQ3ZCLGNBQWM7SUFDZCxxQkFBcUI7SUFDckIseUJBQXlCO0lBQ3pCLGdDQUFnQztJQUNoQywrQkFBK0I7SUFDL0IsK0JBQStCO0lBQy9CLG1DQUFtQztJQUNuQyxtQ0FBbUM7SUFDbkMsb0JBQW9CO0lBQ3BCLHFCQUFxQjtDQUN0QixDQUFBO0FBRVksUUFBQSxzQkFBc0IsR0FBRztJQUNwQyxJQUFJLEVBQUU7UUFDSixRQUFR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7UUFDUixRQUFRLEVBQUUsZ0NBQXdCO1FBQ2xDLE1BQU0sRUFBRSxLQUFLO0tBQ2Q7Q0FDRixDQUFBIn0=
@@ -215,12 +215,12 @@ export declare const VendorGetOffersParams: z.ZodObject<{
215
215
  }, "strict", z.ZodTypeAny, {
216
216
  offset: number;
217
217
  limit: number;
218
+ order?: string | undefined;
218
219
  id?: string | string[] | undefined;
219
220
  created_at?: any;
220
221
  updated_at?: any;
221
222
  q?: string | undefined;
222
223
  fields?: string | undefined;
223
- order?: string | undefined;
224
224
  with_deleted?: boolean | undefined;
225
225
  variant_id?: string | string[] | undefined;
226
226
  shipping_profile_id?: string | string[] | undefined;
@@ -228,6 +228,7 @@ export declare const VendorGetOffersParams: z.ZodObject<{
228
228
  ean?: string | string[] | undefined;
229
229
  upc?: string | string[] | undefined;
230
230
  }, {
231
+ order?: string | undefined;
231
232
  id?: string | string[] | undefined;
232
233
  created_at?: any;
233
234
  updated_at?: any;
@@ -235,7 +236,6 @@ export declare const VendorGetOffersParams: z.ZodObject<{
235
236
  limit?: unknown;
236
237
  q?: string | undefined;
237
238
  fields?: string | undefined;
238
- order?: string | undefined;
239
239
  with_deleted?: unknown;
240
240
  variant_id?: string | string[] | undefined;
241
241
  shipping_profile_id?: string | string[] | undefined;
@@ -321,9 +321,9 @@ export declare const VendorCreateOffer: z.ZodObject<{
321
321
  stocked_quantity: number;
322
322
  }[] | undefined;
323
323
  }[];
324
+ metadata?: Record<string, unknown> | null | undefined;
324
325
  ean?: string | null | undefined;
325
326
  upc?: string | null | undefined;
326
- metadata?: Record<string, unknown> | null | undefined;
327
327
  }, {
328
328
  variant_id: string;
329
329
  shipping_profile_id: string;
@@ -344,9 +344,9 @@ export declare const VendorCreateOffer: z.ZodObject<{
344
344
  stocked_quantity: number;
345
345
  }[] | undefined;
346
346
  }[];
347
+ metadata?: Record<string, unknown> | null | undefined;
347
348
  ean?: string | null | undefined;
348
349
  upc?: string | null | undefined;
349
- metadata?: Record<string, unknown> | null | undefined;
350
350
  }>;
351
351
  export type VendorUpdateOfferType = z.infer<typeof VendorUpdateOffer>;
352
352
  export declare const VendorUpdateOffer: z.ZodObject<{
@@ -380,9 +380,9 @@ export declare const VendorUpdateOffer: z.ZodObject<{
380
380
  rules?: Record<string, string> | undefined;
381
381
  }>, "many">>;
382
382
  }, "strict", z.ZodTypeAny, {
383
+ metadata?: Record<string, unknown> | null | undefined;
383
384
  shipping_profile_id?: string | undefined;
384
385
  sku?: string | undefined;
385
- metadata?: Record<string, unknown> | null | undefined;
386
386
  prices?: {
387
387
  amount: number;
388
388
  currency_code: string;
@@ -392,9 +392,9 @@ export declare const VendorUpdateOffer: z.ZodObject<{
392
392
  rules?: Record<string, string> | undefined;
393
393
  }[] | undefined;
394
394
  }, {
395
+ metadata?: Record<string, unknown> | null | undefined;
395
396
  shipping_profile_id?: string | undefined;
396
397
  sku?: string | undefined;
397
- metadata?: Record<string, unknown> | null | undefined;
398
398
  prices?: {
399
399
  amount: number;
400
400
  currency_code: string;
@@ -527,9 +527,9 @@ export declare const VendorCreateOffersBatch: z.ZodObject<{
527
527
  stocked_quantity: number;
528
528
  }[] | undefined;
529
529
  }[];
530
+ metadata?: Record<string, unknown> | null | undefined;
530
531
  ean?: string | null | undefined;
531
532
  upc?: string | null | undefined;
532
- metadata?: Record<string, unknown> | null | undefined;
533
533
  }, {
534
534
  variant_id: string;
535
535
  shipping_profile_id: string;
@@ -550,9 +550,9 @@ export declare const VendorCreateOffersBatch: z.ZodObject<{
550
550
  stocked_quantity: number;
551
551
  }[] | undefined;
552
552
  }[];
553
+ metadata?: Record<string, unknown> | null | undefined;
553
554
  ean?: string | null | undefined;
554
555
  upc?: string | null | undefined;
555
- metadata?: Record<string, unknown> | null | undefined;
556
556
  }>, "many">;
557
557
  }, "strict", z.ZodTypeAny, {
558
558
  offers: {
@@ -575,9 +575,9 @@ export declare const VendorCreateOffersBatch: z.ZodObject<{
575
575
  stocked_quantity: number;
576
576
  }[] | undefined;
577
577
  }[];
578
+ metadata?: Record<string, unknown> | null | undefined;
578
579
  ean?: string | null | undefined;
579
580
  upc?: string | null | undefined;
580
- metadata?: Record<string, unknown> | null | undefined;
581
581
  }[];
582
582
  }, {
583
583
  offers: {
@@ -600,8 +600,8 @@ export declare const VendorCreateOffersBatch: z.ZodObject<{
600
600
  stocked_quantity: number;
601
601
  }[] | undefined;
602
602
  }[];
603
+ metadata?: Record<string, unknown> | null | undefined;
603
604
  ean?: string | null | undefined;
604
605
  upc?: string | null | undefined;
605
- metadata?: Record<string, unknown> | null | undefined;
606
606
  }[];
607
607
  }>;
@@ -0,0 +1,9 @@
1
+ import { HttpTypes } from "@medusajs/framework/types";
2
+ import { AuthenticatedMedusaRequest, MedusaResponse } from "@medusajs/framework/http";
3
+ /**
4
+ * `POST /vendor/order-edits/:id/confirm` — mirrors
5
+ * `POST /admin/order-edits/:id/confirm`. Flips a requested edit to
6
+ * `confirmed` and applies its actions. `confirmed_by` is stamped with
7
+ * the seller's id (vendor equivalent of admin's `actor_id`).
8
+ */
9
+ export declare const POST: (req: AuthenticatedMedusaRequest, res: MedusaResponse<HttpTypes.AdminOrderEditPreviewResponse>) => Promise<void>;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.POST = void 0;
4
+ const core_flows_1 = require("@medusajs/core-flows");
5
+ /**
6
+ * `POST /vendor/order-edits/:id/confirm` — mirrors
7
+ * `POST /admin/order-edits/:id/confirm`. Flips a requested edit to
8
+ * `confirmed` and applies its actions. `confirmed_by` is stamped with
9
+ * the seller's id (vendor equivalent of admin's `actor_id`).
10
+ */
11
+ const POST = async (req, res) => {
12
+ const { id } = req.params;
13
+ const { result } = await (0, core_flows_1.confirmOrderEditRequestWorkflow)(req.scope).run({
14
+ input: {
15
+ order_id: id,
16
+ confirmed_by: req.seller_context.seller_id,
17
+ },
18
+ });
19
+ res.json({
20
+ order_preview: result,
21
+ });
22
+ };
23
+ exports.POST = POST;
24
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm91dGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBpL3ZlbmRvci9vcmRlci1lZGl0cy9baWRdL2NvbmZpcm0vcm91dGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEscURBQXNFO0FBT3RFOzs7OztHQUtHO0FBQ0ksTUFBTSxJQUFJLEdBQUcsS0FBSyxFQUN2QixHQUErQixFQUMvQixHQUE0RCxFQUM1RCxFQUFFO0lBQ0YsTUFBTSxFQUFFLEVBQUUsRUFBRSxHQUFHLEdBQUcsQ0FBQyxNQUFNLENBQUE7SUFFekIsTUFBTSxFQUFFLE1BQU0sRUFBRSxHQUFHLE1BQU0sSUFBQSw0Q0FBK0IsRUFBQyxHQUFHLENBQUMsS0FBSyxDQUFDLENBQUMsR0FBRyxDQUFDO1FBQ3RFLEtBQUssRUFBRTtZQUNMLFFBQVEsRUFBRSxFQUFFO1lBQ1osWUFBWSxFQUFFLEdBQUcsQ0FBQyxjQUFlLENBQUMsU0FBUztTQUM1QztLQUNGLENBQUMsQ0FBQTtJQUVGLEdBQUcsQ0FBQyxJQUFJLENBQUM7UUFDUCxhQUFhLEVBQUUsTUFBZ0Q7S0FDaEUsQ0FBQyxDQUFBO0FBQ0osQ0FBQyxDQUFBO0FBaEJZLFFBQUEsSUFBSSxRQWdCaEIifQ==
@@ -0,0 +1,14 @@
1
+ import { HttpTypes } from "@medusajs/framework/types";
2
+ import { AuthenticatedMedusaRequest, MedusaResponse } from "@medusajs/framework/http";
3
+ import { VendorPostOrderEditsItemsActionReqType } from "../../../validators";
4
+ /**
5
+ * `POST /vendor/order-edits/:id/items/:action_id` — mirrors
6
+ * `POST /admin/order-edits/:id/items/:action_id`. Updates an
7
+ * existing add-item action on the draft.
8
+ */
9
+ export declare const POST: (req: AuthenticatedMedusaRequest<VendorPostOrderEditsItemsActionReqType>, res: MedusaResponse<HttpTypes.AdminOrderEditPreviewResponse>) => Promise<void>;
10
+ /**
11
+ * `DELETE /vendor/order-edits/:id/items/:action_id` — removes the
12
+ * add-item action from the draft.
13
+ */
14
+ export declare const DELETE: (req: AuthenticatedMedusaRequest, res: MedusaResponse<HttpTypes.AdminOrderEditPreviewResponse>) => Promise<void>;
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DELETE = exports.POST = void 0;
4
+ const core_flows_1 = require("@medusajs/core-flows");
5
+ /**
6
+ * `POST /vendor/order-edits/:id/items/:action_id` — mirrors
7
+ * `POST /admin/order-edits/:id/items/:action_id`. Updates an
8
+ * existing add-item action on the draft.
9
+ */
10
+ const POST = async (req, res) => {
11
+ const { id, action_id } = req.params;
12
+ const { result } = await (0, core_flows_1.updateOrderEditAddItemWorkflow)(req.scope).run({
13
+ input: {
14
+ data: { ...req.validatedBody },
15
+ order_id: id,
16
+ action_id,
17
+ },
18
+ });
19
+ res.json({
20
+ order_preview: result,
21
+ });
22
+ };
23
+ exports.POST = POST;
24
+ /**
25
+ * `DELETE /vendor/order-edits/:id/items/:action_id` — removes the
26
+ * add-item action from the draft.
27
+ */
28
+ const DELETE = async (req, res) => {
29
+ const { id, action_id } = req.params;
30
+ const { result: orderPreview } = await (0, core_flows_1.removeItemOrderEditActionWorkflow)(req.scope).run({
31
+ input: {
32
+ order_id: id,
33
+ action_id,
34
+ },
35
+ });
36
+ res.json({
37
+ order_preview: orderPreview,
38
+ });
39
+ };
40
+ exports.DELETE = DELETE;
41
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm91dGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBpL3ZlbmRvci9vcmRlci1lZGl0cy9baWRdL2l0ZW1zL1thY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DRixDQUFDLENBQUE7SUFFRixHQUFHLENBQUMsSUFBSSxDQUFDO1FBQ1AsYUFBYSxFQUFFLFlBQXNEO0tBQ3RFLENBQUMsQ0FBQTtBQUNKLENBQUMsQ0FBQTtBQWxCWSxRQUFBLE1BQU0sVUFrQmxCIn0=
@@ -0,0 +1,10 @@
1
+ import { HttpTypes } from "@medusajs/framework/types";
2
+ import { AuthenticatedMedusaRequest, MedusaResponse } from "@medusajs/framework/http";
3
+ import { VendorPostOrderEditsUpdateItemQuantityReqType } from "../../../../validators";
4
+ /**
5
+ * `POST /vendor/order-edits/:id/items/item/:item_id` — mirrors
6
+ * `POST /admin/order-edits/:id/items/item/:item_id`. Updates the
7
+ * quantity (and optional price overrides) on an existing line item
8
+ * inside the order-edit draft.
9
+ */
10
+ export declare const POST: (req: AuthenticatedMedusaRequest<VendorPostOrderEditsUpdateItemQuantityReqType>, res: MedusaResponse<HttpTypes.AdminOrderEditPreviewResponse>) => Promise<void>;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.POST = void 0;
4
+ const core_flows_1 = require("@medusajs/core-flows");
5
+ /**
6
+ * `POST /vendor/order-edits/:id/items/item/:item_id` — mirrors
7
+ * `POST /admin/order-edits/:id/items/item/:item_id`. Updates the
8
+ * quantity (and optional price overrides) on an existing line item
9
+ * inside the order-edit draft.
10
+ */
11
+ const POST = async (req, res) => {
12
+ const { id, item_id } = req.params;
13
+ const { result } = await (0, core_flows_1.orderEditUpdateItemQuantityWorkflow)(req.scope).run({
14
+ input: {
15
+ ...req.validatedBody,
16
+ order_id: id,
17
+ items: [
18
+ {
19
+ ...req.validatedBody,
20
+ id: item_id,
21
+ },
22
+ ],
23
+ },
24
+ });
25
+ res.json({
26
+ order_preview: result,
27
+ });
28
+ };
29
+ exports.POST = POST;
30
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm91dGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBpL3ZlbmRvci9vcmRlci1lZGl0cy9baWRdL2l0ZW1zL2l0ZW0vW2l0ZW1faWRdL3JvdXRlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLHFEQUEwRTtBQVMxRTs7Ozs7R0FLRztBQUNJLE1BQU0sSUFBSSxHQUFHLEtBQUssRUFDdkIsR0FBOEUsRUFDOUUsR0FBNEQsRUFDNUQsRUFBRTtJQUNGLE1BQU0sRUFBRSxFQUFFLEVBQUUsT0FBTyxFQUFFLEdBQUcsR0FBRyxDQUFDLE1BQU0sQ0FBQTtJQUVsQyxNQUFNLEVBQUUsTUFBTSxFQUFFLEdBQUcsTUFBTSxJQUFBLGdEQUFtQyxFQUFDLEdBQUcsQ0FBQyxLQUFLLENBQUMsQ0FBQyxHQUFHLENBQUM7UUFDMUUsS0FBSyxFQUFFO1lBQ0wsR0FBRyxHQUFHLENBQUMsYUFBYTtZQUNwQixRQUFRLEVBQUUsRUFBRTtZQUNaLEtBQUssRUFBRTtnQkFDTDtvQkFDRSxHQUFHLEdBQUcsQ0FBQyxhQUFhO29CQUNwQixFQUFFLEVBQUUsT0FBTztpQkFDWjthQUNGO1NBQ0Y7S0FDRixDQUFDLENBQUE7SUFFRixHQUFHLENBQUMsSUFBSSxDQUFDO1FBQ1AsYUFBYSxFQUFFLE1BQWdEO0tBQ2hFLENBQUMsQ0FBQTtBQUNKLENBQUMsQ0FBQTtBQXRCWSxRQUFBLElBQUksUUFzQmhCIn0=
@@ -0,0 +1,16 @@
1
+ import { HttpTypes } from "@medusajs/framework/types";
2
+ import { AuthenticatedMedusaRequest, MedusaResponse } from "@medusajs/framework/http";
3
+ import { VendorPostOrderEditsAddItemsReqType } from "../../validators";
4
+ /**
5
+ * `POST /vendor/order-edits/:id/items` — mirrors
6
+ * `POST /admin/order-edits/:id/items`. Adds new items to the
7
+ * draft edit on the seller-owned order.
8
+ *
9
+ * Mercur extension: items can be provided as `{ offer_id, quantity }` and the
10
+ * server resolves the offer to its `variant_id + unit_price` for the
11
+ * underlying workflow. The originating offer is stashed in
12
+ * `metadata.offer_id` so the `order-edit-confirmed` subscriber can
13
+ * persist the `order_line_item ↔ offer` link once the new line items are
14
+ * created at confirm time.
15
+ */
16
+ export declare const POST: (req: AuthenticatedMedusaRequest<VendorPostOrderEditsAddItemsReqType>, res: MedusaResponse<HttpTypes.AdminOrderEditPreviewResponse>) => Promise<void>;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.POST = void 0;
4
+ const core_flows_1 = require("@medusajs/core-flows");
5
+ const utils_1 = require("@medusajs/framework/utils");
6
+ const resolve_offer_items_1 = require("../../../orders/resolve-offer-items");
7
+ /**
8
+ * `POST /vendor/order-edits/:id/items` — mirrors
9
+ * `POST /admin/order-edits/:id/items`. Adds new items to the
10
+ * draft edit on the seller-owned order.
11
+ *
12
+ * Mercur extension: items can be provided as `{ offer_id, quantity }` and the
13
+ * server resolves the offer to its `variant_id + unit_price` for the
14
+ * underlying workflow. The originating offer is stashed in
15
+ * `metadata.offer_id` so the `order-edit-confirmed` subscriber can
16
+ * persist the `order_line_item ↔ offer` link once the new line items are
17
+ * created at confirm time.
18
+ */
19
+ const POST = async (req, res) => {
20
+ const { id } = req.params;
21
+ const query = req.scope.resolve(utils_1.ContainerRegistrationKeys.QUERY);
22
+ const { data: orders } = await query.graph({
23
+ entity: "orders",
24
+ fields: ["id", "currency_code"],
25
+ filters: { id },
26
+ });
27
+ const order = orders?.[0];
28
+ if (!order?.currency_code) {
29
+ throw new utils_1.MedusaError(utils_1.MedusaError.Types.NOT_FOUND, `Order ${id} not found`);
30
+ }
31
+ const items = await (0, resolve_offer_items_1.resolveOfferItems)({
32
+ container: req.scope,
33
+ sellerId: req.seller_context.seller_id,
34
+ currencyCode: order.currency_code,
35
+ items: req.validatedBody.items,
36
+ });
37
+ const { result } = await (0, core_flows_1.orderEditAddNewItemWorkflow)(req.scope).run({
38
+ input: { items, order_id: id },
39
+ });
40
+ res.json({
41
+ order_preview: result,
42
+ });
43
+ };
44
+ exports.POST = POST;
45
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm91dGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBpL3ZlbmRvci9vcmRlci1lZGl0cy9baWRdL2l0ZW1zL3JvdXRlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLHFEQUFrRTtBQU1sRSxxREFHa0M7QUFFbEMsNkVBQXVFO0FBR3ZFOzs7Ozs7Ozs7OztHQVdHO0FBQ0ksTUFBTSxJQUFJLEdBQUcsS0FBSyxFQUN2QixHQUFvRSxFQUNwRSxHQUE0RCxFQUM1RCxFQUFFO0lBQ0YsTUFBTSxFQUFFLEVBQUUsRUFBRSxHQUFHLEdBQUcsQ0FBQyxNQUFNLENBQUE7SUFFekIsTUFBTSxLQUFLLEdBQUcsR0FBRyxDQUFDLEtBQUssQ0FBQyxPQUFPLENBQUMsaUNBQXlCLENBQUMsS0FBSyxDQUFDLENBQUE7SUFDaEUsTUFBTSxFQUFFLElBQUksRUFBRSxNQUFNLEVBQUUsR0FBRyxNQUFNLEtBQUssQ0FBQyxLQUFLLENBQUM7UUFDekMsTUFBTSxFQUFFLFFBQVE7UUFDaEIsTUFBTSxFQUFFLENBQUMsSUFBSSxFQUFFLGVBQWUsQ0FBQztRQUMvQixPQUFPLEVBQUUsRUFBRSxFQUFFLEVBQUU7S0FDaEIsQ0FBQyxDQUFBO0lBRUYsTUFBTSxLQUFLLEdBQUcsTUFBTSxFQUFFLENBQUMsQ0FBQyxDQUEyQyxDQUFBO0lBQ25FLElBQUksQ0FBQyxLQUFLLEVBQUUsYUFBYSxFQUFFLENBQUM7UUFDMUIsTUFBTSxJQUFJLG1CQUFXLENBQ25CLG1CQUFXLENBQUMsS0FBSyxDQUFDLFNBQVMsRUFDM0IsU0FBUyxFQUFFLFlBQVksQ0FDeEIsQ0FBQTtJQUNILENBQUM7SUFFRCxNQUFNLEtBQUssR0FBRyxNQUFNLElBQUEsdUNBQWlCLEVBQUM7UUFDcEMsU0FBUyxFQUFFLEdBQUcsQ0FBQyxLQUFLO1FBQ3BCLFFBQVEsRUFBRSxHQUFHLENBQUMsY0FBZSxDQUFDLFNBQVM7UUFDdkMsWUFBWSxFQUFFLEtBQUssQ0FBQyxhQUFhO1FBQ2pDLEtBQUssRUFBRSxHQUFHLENBQUMsYUFBYSxDQUFDLEtBQUs7S0FDL0IsQ0FBQyxDQUFBO0lBRUYsTUFBTSxFQUFFLE1BQU0sRUFBRSxHQUFHLE1BQU0sSUFBQSx3Q0FBMkIsRUFBQyxHQUFHLENBQUMsS0FBSyxDQUFDLENBQUMsR0FBRyxDQUFDO1FBQ2xFLEtBQUssRUFBRSxFQUFFLEtBQUssRUFBRSxRQUFRLEVBQUUsRUFBRSxFQUFFO0tBQy9CLENBQUMsQ0FBQTtJQUVGLEdBQUcsQ0FBQyxJQUFJLENBQUM7UUFDUCxhQUFhLEVBQUUsTUFBZ0Q7S0FDaEUsQ0FBQyxDQUFBO0FBQ0osQ0FBQyxDQUFBO0FBbkNZLFFBQUEsSUFBSSxRQW1DaEIifQ==
@@ -0,0 +1,10 @@
1
+ import { HttpTypes } from "@medusajs/framework/types";
2
+ import { AuthenticatedMedusaRequest, MedusaResponse } from "@medusajs/framework/http";
3
+ /**
4
+ * `POST /vendor/order-edits/:id/request` — mirrors
5
+ * `POST /admin/order-edits/:id/request`. Flips a draft edit to
6
+ * `requested`. `requested_by` is stamped with the seller's id (the
7
+ * vendor equivalent of admin's `actor_id` — see
8
+ * `packages/core/src/api/vendor/returns/[id]/request/route.ts`).
9
+ */
10
+ export declare const POST: (req: AuthenticatedMedusaRequest, res: MedusaResponse<HttpTypes.AdminOrderEditPreviewResponse>) => Promise<void>;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.POST = void 0;
4
+ const core_flows_1 = require("@medusajs/core-flows");
5
+ /**
6
+ * `POST /vendor/order-edits/:id/request` — mirrors
7
+ * `POST /admin/order-edits/:id/request`. Flips a draft edit to
8
+ * `requested`. `requested_by` is stamped with the seller's id (the
9
+ * vendor equivalent of admin's `actor_id` — see
10
+ * `packages/core/src/api/vendor/returns/[id]/request/route.ts`).
11
+ */
12
+ const POST = async (req, res) => {
13
+ const { id } = req.params;
14
+ const { result } = await (0, core_flows_1.requestOrderEditRequestWorkflow)(req.scope).run({
15
+ input: {
16
+ order_id: id,
17
+ requested_by: req.seller_context.seller_id,
18
+ },
19
+ });
20
+ res.json({
21
+ order_preview: result,
22
+ });
23
+ };
24
+ exports.POST = POST;
25
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm91dGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBpL3ZlbmRvci9vcmRlci1lZGl0cy9baWRdL3JlcXVlc3Qvcm91dGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEscURBQXNFO0FBT3RFOzs7Ozs7R0FNRztBQUNJLE1BQU0sSUFBSSxHQUFHLEtBQUssRUFDdkIsR0FBK0IsRUFDL0IsR0FBNEQsRUFDNUQsRUFBRTtJQUNGLE1BQU0sRUFBRSxFQUFFLEVBQUUsR0FBRyxHQUFHLENBQUMsTUFBTSxDQUFBO0lBRXpCLE1BQU0sRUFBRSxNQUFNLEVBQUUsR0FBRyxNQUFNLElBQUEsNENBQStCLEVBQUMsR0FBRyxDQUFDLEtBQUssQ0FBQyxDQUFDLEdBQUcsQ0FBQztRQUN0RSxLQUFLLEVBQUU7WUFDTCxRQUFRLEVBQUUsRUFBRTtZQUNaLFlBQVksRUFBRSxHQUFHLENBQUMsY0FBZSxDQUFDLFNBQVM7U0FDNUM7S0FDRixDQUFDLENBQUE7SUFFRixHQUFHLENBQUMsSUFBSSxDQUFDO1FBQ1AsYUFBYSxFQUFFLE1BQWdEO0tBQ2hFLENBQUMsQ0FBQTtBQUNKLENBQUMsQ0FBQTtBQWhCWSxRQUFBLElBQUksUUFnQmhCIn0=
@@ -0,0 +1,10 @@
1
+ import { HttpTypes } from "@medusajs/framework/types";
2
+ import { AuthenticatedMedusaRequest, MedusaResponse } from "@medusajs/framework/http";
3
+ /**
4
+ * `DELETE /vendor/order-edits/:id` — mirrors
5
+ * `DELETE /admin/order-edits/:id`
6
+ * (medusa/packages/medusa/src/api/admin/order-edits/[id]/route.ts).
7
+ * Cancels a draft edit. Seller-scope enforced upstream by
8
+ * `assertSellerOwnsOrderInParam`.
9
+ */
10
+ export declare const DELETE: (req: AuthenticatedMedusaRequest, res: MedusaResponse<HttpTypes.AdminOrderEditDeleteResponse>) => Promise<void>;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DELETE = void 0;
4
+ const core_flows_1 = require("@medusajs/core-flows");
5
+ /**
6
+ * `DELETE /vendor/order-edits/:id` — mirrors
7
+ * `DELETE /admin/order-edits/:id`
8
+ * (medusa/packages/medusa/src/api/admin/order-edits/[id]/route.ts).
9
+ * Cancels a draft edit. Seller-scope enforced upstream by
10
+ * `assertSellerOwnsOrderInParam`.
11
+ */
12
+ const DELETE = async (req, res) => {
13
+ const { id } = req.params;
14
+ await (0, core_flows_1.cancelBeginOrderEditWorkflow)(req.scope).run({
15
+ input: {
16
+ order_id: id,
17
+ },
18
+ });
19
+ res.status(200).json({
20
+ id,
21
+ object: "order-edit",
22
+ deleted: true,
23
+ });
24
+ };
25
+ exports.DELETE = DELETE;
26
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm91dGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBpL3ZlbmRvci9vcmRlci1lZGl0cy9baWRdL3JvdXRlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLHFEQUFtRTtBQU9uRTs7Ozs7O0dBTUc7QUFDSSxNQUFNLE1BQU0sR0FBRyxLQUFLLEVBQ3pCLEdBQStCLEVBQy9CLEdBQTJELEVBQzNELEVBQUU7SUFDRixNQUFNLEVBQUUsRUFBRSxFQUFFLEdBQUcsR0FBRyxDQUFDLE1BQU0sQ0FBQTtJQUV6QixNQUFNLElBQUEseUNBQTRCLEVBQUMsR0FBRyxDQUFDLEtBQUssQ0FBQyxDQUFDLEdBQUcsQ0FBQztRQUNoRCxLQUFLLEVBQUU7WUFDTCxRQUFRLEVBQUUsRUFBRTtTQUNiO0tBQ0YsQ0FBQyxDQUFBO0lBRUYsR0FBRyxDQUFDLE1BQU0sQ0FBQyxHQUFHLENBQUMsQ0FBQyxJQUFJLENBQUM7UUFDbkIsRUFBRTtRQUNGLE1BQU0sRUFBRSxZQUFZO1FBQ3BCLE9BQU8sRUFBRSxJQUFJO0tBQ2QsQ0FBQyxDQUFBO0FBQ0osQ0FBQyxDQUFBO0FBakJZLFFBQUEsTUFBTSxVQWlCbEIifQ==
@@ -0,0 +1,14 @@
1
+ import { HttpTypes } from "@medusajs/framework/types";
2
+ import { AuthenticatedMedusaRequest, MedusaResponse } from "@medusajs/framework/http";
3
+ import { VendorPostOrderEditsShippingActionReqType } from "../../../validators";
4
+ /**
5
+ * `POST /vendor/order-edits/:id/shipping-method/:action_id` — mirrors
6
+ * `POST /admin/order-edits/:id/shipping-method/:action_id`. Updates
7
+ * an existing add-shipping-method action.
8
+ */
9
+ export declare const POST: (req: AuthenticatedMedusaRequest<VendorPostOrderEditsShippingActionReqType>, res: MedusaResponse<HttpTypes.AdminOrderEditPreviewResponse>) => Promise<void>;
10
+ /**
11
+ * `DELETE /vendor/order-edits/:id/shipping-method/:action_id` —
12
+ * removes the shipping-method action from the draft.
13
+ */
14
+ export declare const DELETE: (req: AuthenticatedMedusaRequest, res: MedusaResponse<HttpTypes.AdminOrderEditPreviewResponse>) => Promise<void>;