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

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 (841) 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]/confirm/route.d.ts +12 -0
  15. package/.medusa/server/src/api/admin/order-edits/[id]/confirm/route.js +27 -0
  16. package/.medusa/server/src/api/admin/order-edits/[id]/items/route.d.ts +26 -0
  17. package/.medusa/server/src/api/admin/order-edits/[id]/items/route.js +57 -0
  18. package/.medusa/server/src/api/admin/order-groups/apply-request-filter.d.ts +2 -0
  19. package/.medusa/server/src/api/admin/order-groups/apply-request-filter.js +140 -0
  20. package/.medusa/server/src/api/admin/order-groups/middlewares.js +3 -1
  21. package/.medusa/server/src/api/admin/order-groups/validators.d.ts +7 -4
  22. package/.medusa/server/src/api/admin/order-groups/validators.js +7 -1
  23. package/.medusa/server/src/api/admin/orders/middlewares.d.ts +2 -0
  24. package/.medusa/server/src/api/admin/orders/middlewares.js +42 -0
  25. package/.medusa/server/src/api/admin/orders/resolve-order-seller-id.d.ts +11 -0
  26. package/.medusa/server/src/api/admin/orders/resolve-order-seller-id.js +24 -0
  27. package/.medusa/server/src/api/admin/orders/validators.d.ts +73 -27
  28. package/.medusa/server/src/api/admin/orders/validators.js +9 -29
  29. package/.medusa/server/src/api/admin/payouts/validators.d.ts +2 -2
  30. package/.medusa/server/src/api/admin/product-attributes/[id]/route.js +3 -3
  31. package/.medusa/server/src/api/admin/product-attributes/[id]/values/[value_id]/route.js +3 -3
  32. package/.medusa/server/src/api/admin/product-attributes/[id]/values/route.js +2 -2
  33. package/.medusa/server/src/api/admin/product-attributes/middlewares.js +15 -1
  34. package/.medusa/server/src/api/admin/product-attributes/query-config.js +1 -2
  35. package/.medusa/server/src/api/admin/product-attributes/route.js +6 -3
  36. package/.medusa/server/src/api/admin/product-attributes/validators.d.ts +5 -9
  37. package/.medusa/server/src/api/admin/product-attributes/validators.js +2 -15
  38. package/.medusa/server/src/api/admin/product-categories/[id]/products/route.js +3 -3
  39. package/.medusa/server/src/api/admin/product-categories/[id]/route.js +8 -7
  40. package/.medusa/server/src/api/admin/product-categories/query-config.js +1 -2
  41. package/.medusa/server/src/api/admin/product-categories/route.js +4 -4
  42. package/.medusa/server/src/api/admin/product-categories/validators.d.ts +8 -8
  43. package/.medusa/server/src/api/admin/product-changes/[id]/cancel/route.js +5 -6
  44. package/.medusa/server/src/api/admin/product-changes/[id]/confirm/route.js +5 -5
  45. package/.medusa/server/src/api/admin/products/[id]/attributes/[attribute_id]/route.d.ts +10 -4
  46. package/.medusa/server/src/api/admin/products/[id]/attributes/[attribute_id]/route.js +60 -23
  47. package/.medusa/server/src/api/admin/products/[id]/attributes/batch/route.d.ts +3 -2
  48. package/.medusa/server/src/api/admin/products/[id]/attributes/batch/route.js +11 -22
  49. package/.medusa/server/src/api/admin/products/[id]/attributes/route.d.ts +2 -3
  50. package/.medusa/server/src/api/admin/products/[id]/attributes/route.js +40 -25
  51. package/.medusa/server/src/api/admin/products/[id]/confirm/route.d.ts +12 -0
  52. package/.medusa/server/src/api/admin/products/[id]/confirm/route.js +16 -6
  53. package/.medusa/server/src/api/admin/products/[id]/preview/route.d.ts +8 -1
  54. package/.medusa/server/src/api/admin/products/[id]/preview/route.js +20 -7
  55. package/.medusa/server/src/api/admin/products/[id]/reject/route.d.ts +8 -0
  56. package/.medusa/server/src/api/admin/products/[id]/reject/route.js +13 -8
  57. package/.medusa/server/src/api/admin/products/[id]/request-changes/route.d.ts +9 -0
  58. package/.medusa/server/src/api/admin/products/[id]/request-changes/route.js +16 -10
  59. package/.medusa/server/src/api/admin/products/[id]/route.js +6 -6
  60. package/.medusa/server/src/api/admin/products/[id]/variants/[variant_id]/route.js +5 -5
  61. package/.medusa/server/src/api/admin/products/[id]/variants/route.js +22 -4
  62. package/.medusa/server/src/api/admin/products/middlewares.js +8 -4
  63. package/.medusa/server/src/api/admin/products/query-config.js +12 -18
  64. package/.medusa/server/src/api/admin/products/route.js +4 -9
  65. package/.medusa/server/src/api/admin/products/validators.d.ts +1049 -205
  66. package/.medusa/server/src/api/admin/products/validators.js +114 -16
  67. package/.medusa/server/src/api/admin/returns/[id]/receive/confirm/route.d.ts +9 -0
  68. package/.medusa/server/src/api/admin/returns/[id]/receive/confirm/route.js +35 -0
  69. package/.medusa/server/src/api/admin/sellers/validators.d.ts +14 -14
  70. package/.medusa/server/src/api/admin/shipping-options/middlewares.d.ts +2 -0
  71. package/.medusa/server/src/api/admin/shipping-options/middlewares.js +46 -0
  72. package/.medusa/server/src/api/admin/shipping-profiles/middlewares.d.ts +2 -0
  73. package/.medusa/server/src/api/admin/shipping-profiles/middlewares.js +46 -0
  74. package/.medusa/server/src/api/{vendor/product-brands → admin/stock-locations}/middlewares.d.ts +1 -1
  75. package/.medusa/server/src/api/admin/stock-locations/middlewares.js +46 -0
  76. package/.medusa/server/src/api/store/carts/[id]/line-items/route.js +23 -5
  77. package/.medusa/server/src/api/store/carts/[id]/line-items/validators.d.ts +0 -3
  78. package/.medusa/server/src/api/store/carts/[id]/line-items/validators.js +1 -2
  79. package/.medusa/server/src/api/store/middlewares.js +7 -9
  80. package/.medusa/server/src/api/store/order-groups/validators.d.ts +2 -2
  81. package/.medusa/server/src/api/store/products/[id]/route.js +3 -18
  82. package/.medusa/server/src/api/store/products/middlewares.js +1 -7
  83. package/.medusa/server/src/api/store/products/query-config.d.ts +1 -3
  84. package/.medusa/server/src/api/store/products/query-config.js +14 -17
  85. package/.medusa/server/src/api/store/products/route.js +3 -19
  86. package/.medusa/server/src/api/store/products/validators.d.ts +0 -6
  87. package/.medusa/server/src/api/store/products/validators.js +1 -2
  88. package/.medusa/server/src/api/store/sellers/validators.d.ts +2 -2
  89. package/.medusa/server/src/api/utils/filter-attributes-by-category-link.d.ts +17 -0
  90. package/.medusa/server/src/api/utils/filter-attributes-by-category-link.js +58 -0
  91. package/.medusa/server/src/api/utils/format-product-attributes.d.ts +51 -5
  92. package/.medusa/server/src/api/utils/format-product-attributes.js +176 -31
  93. package/.medusa/server/src/api/utils/index.d.ts +1 -0
  94. package/.medusa/server/src/api/utils/index.js +2 -1
  95. package/.medusa/server/src/api/vendor/campaigns/validators.d.ts +2 -2
  96. package/.medusa/server/src/api/vendor/claims/[id]/cancel/route.d.ts +4 -0
  97. package/.medusa/server/src/api/vendor/claims/[id]/cancel/route.js +17 -0
  98. package/.medusa/server/src/api/vendor/claims/[id]/claim-items/[action_id]/route.d.ts +9 -0
  99. package/.medusa/server/src/api/vendor/claims/[id]/claim-items/[action_id]/route.js +32 -0
  100. package/.medusa/server/src/api/vendor/claims/[id]/claim-items/route.d.ts +6 -0
  101. package/.medusa/server/src/api/vendor/claims/[id]/claim-items/route.js +15 -0
  102. package/.medusa/server/src/api/vendor/claims/[id]/inbound/items/[action_id]/route.d.ts +9 -0
  103. package/.medusa/server/src/api/vendor/claims/[id]/inbound/items/[action_id]/route.js +46 -0
  104. package/.medusa/server/src/api/vendor/claims/[id]/inbound/items/route.d.ts +6 -0
  105. package/.medusa/server/src/api/vendor/claims/[id]/inbound/items/route.js +26 -0
  106. package/.medusa/server/src/api/vendor/claims/[id]/inbound/shipping-method/[action_id]/route.d.ts +9 -0
  107. package/.medusa/server/src/api/vendor/claims/[id]/inbound/shipping-method/[action_id]/route.js +39 -0
  108. package/.medusa/server/src/api/vendor/claims/[id]/inbound/shipping-method/route.d.ts +6 -0
  109. package/.medusa/server/src/api/vendor/claims/[id]/inbound/shipping-method/route.js +26 -0
  110. package/.medusa/server/src/api/vendor/claims/[id]/outbound/items/[action_id]/route.d.ts +9 -0
  111. package/.medusa/server/src/api/vendor/claims/[id]/outbound/items/[action_id]/route.js +32 -0
  112. package/.medusa/server/src/api/vendor/claims/[id]/outbound/items/route.d.ts +12 -0
  113. package/.medusa/server/src/api/vendor/claims/[id]/outbound/items/route.js +47 -0
  114. package/.medusa/server/src/api/vendor/claims/[id]/outbound/shipping-method/[action_id]/route.d.ts +9 -0
  115. package/.medusa/server/src/api/vendor/claims/[id]/outbound/shipping-method/[action_id]/route.js +32 -0
  116. package/.medusa/server/src/api/vendor/claims/[id]/outbound/shipping-method/route.d.ts +6 -0
  117. package/.medusa/server/src/api/vendor/claims/[id]/outbound/shipping-method/route.js +15 -0
  118. package/.medusa/server/src/api/vendor/claims/[id]/request/route.d.ts +6 -0
  119. package/.medusa/server/src/api/vendor/claims/[id]/request/route.js +34 -0
  120. package/.medusa/server/src/api/vendor/claims/[id]/route.d.ts +3 -0
  121. package/.medusa/server/src/api/vendor/claims/[id]/route.js +19 -0
  122. package/.medusa/server/src/api/vendor/claims/helpers.d.ts +2 -0
  123. package/.medusa/server/src/api/vendor/claims/helpers.js +19 -0
  124. package/.medusa/server/src/api/vendor/claims/middlewares.d.ts +2 -0
  125. package/.medusa/server/src/api/vendor/claims/middlewares.js +184 -0
  126. package/.medusa/server/src/api/vendor/claims/query-config.d.ts +12 -0
  127. package/.medusa/server/src/api/vendor/claims/query-config.js +31 -0
  128. package/.medusa/server/src/api/vendor/claims/route.d.ts +5 -0
  129. package/.medusa/server/src/api/vendor/claims/route.js +35 -0
  130. package/.medusa/server/src/api/vendor/claims/validators.d.ts +378 -0
  131. package/.medusa/server/src/api/vendor/claims/validators.js +89 -0
  132. package/.medusa/server/src/api/vendor/collections/validators.d.ts +2 -2
  133. package/.medusa/server/src/api/vendor/currencies/validators.d.ts +2 -2
  134. package/.medusa/server/src/api/vendor/customers/validators.d.ts +2 -2
  135. package/.medusa/server/src/api/vendor/exchanges/[id]/cancel/route.d.ts +4 -0
  136. package/.medusa/server/src/api/vendor/exchanges/[id]/cancel/route.js +17 -0
  137. package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/items/[action_id]/route.d.ts +9 -0
  138. package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/items/[action_id]/route.js +46 -0
  139. package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/items/route.d.ts +6 -0
  140. package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/items/route.js +26 -0
  141. package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/shipping-method/[action_id]/route.d.ts +9 -0
  142. package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/shipping-method/[action_id]/route.js +45 -0
  143. package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/shipping-method/route.d.ts +6 -0
  144. package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/shipping-method/route.js +26 -0
  145. package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/items/[action_id]/route.d.ts +9 -0
  146. package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/items/[action_id]/route.js +32 -0
  147. package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/items/route.d.ts +12 -0
  148. package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/items/route.js +47 -0
  149. package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/shipping-method/[action_id]/route.d.ts +9 -0
  150. package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/shipping-method/[action_id]/route.js +32 -0
  151. package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/shipping-method/route.d.ts +6 -0
  152. package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/shipping-method/route.js +15 -0
  153. package/.medusa/server/src/api/vendor/exchanges/[id]/request/route.d.ts +6 -0
  154. package/.medusa/server/src/api/vendor/exchanges/[id]/request/route.js +34 -0
  155. package/.medusa/server/src/api/vendor/exchanges/helpers.d.ts +2 -0
  156. package/.medusa/server/src/api/vendor/exchanges/helpers.js +19 -0
  157. package/.medusa/server/src/api/vendor/exchanges/middlewares.d.ts +2 -0
  158. package/.medusa/server/src/api/vendor/exchanges/middlewares.js +155 -0
  159. package/.medusa/server/src/api/vendor/exchanges/query-config.d.ts +7 -0
  160. package/.medusa/server/src/api/vendor/exchanges/query-config.js +23 -0
  161. package/.medusa/server/src/api/vendor/exchanges/route.d.ts +5 -0
  162. package/.medusa/server/src/api/vendor/exchanges/route.js +35 -0
  163. package/.medusa/server/src/api/vendor/exchanges/validators.d.ts +313 -0
  164. package/.medusa/server/src/api/vendor/exchanges/validators.js +71 -0
  165. package/.medusa/server/src/api/vendor/fulfillment-providers/validators.d.ts +2 -2
  166. package/.medusa/server/src/api/vendor/fulfillment-sets/validators.d.ts +16 -16
  167. package/.medusa/server/src/api/vendor/inventory-items/validators.d.ts +8 -8
  168. package/.medusa/server/src/api/vendor/middlewares.js +77 -71
  169. package/.medusa/server/src/api/vendor/offers/query-config.js +8 -8
  170. package/.medusa/server/src/api/vendor/offers/validators.d.ts +10 -10
  171. package/.medusa/server/src/api/vendor/order-edits/[id]/confirm/route.d.ts +14 -0
  172. package/.medusa/server/src/api/vendor/order-edits/[id]/confirm/route.js +29 -0
  173. package/.medusa/server/src/api/vendor/order-edits/[id]/items/[action_id]/route.d.ts +14 -0
  174. package/.medusa/server/src/api/vendor/order-edits/[id]/items/[action_id]/route.js +41 -0
  175. package/.medusa/server/src/api/vendor/order-edits/[id]/items/item/[item_id]/route.d.ts +10 -0
  176. package/.medusa/server/src/api/vendor/order-edits/[id]/items/item/[item_id]/route.js +30 -0
  177. package/.medusa/server/src/api/vendor/order-edits/[id]/items/route.d.ts +16 -0
  178. package/.medusa/server/src/api/vendor/order-edits/[id]/items/route.js +45 -0
  179. package/.medusa/server/src/api/vendor/order-edits/[id]/request/route.d.ts +10 -0
  180. package/.medusa/server/src/api/vendor/order-edits/[id]/request/route.js +25 -0
  181. package/.medusa/server/src/api/vendor/order-edits/[id]/route.d.ts +10 -0
  182. package/.medusa/server/src/api/vendor/order-edits/[id]/route.js +26 -0
  183. package/.medusa/server/src/api/vendor/order-edits/[id]/shipping-method/[action_id]/route.d.ts +14 -0
  184. package/.medusa/server/src/api/vendor/order-edits/[id]/shipping-method/[action_id]/route.js +41 -0
  185. package/.medusa/server/src/api/vendor/order-edits/[id]/shipping-method/route.d.ts +9 -0
  186. package/.medusa/server/src/api/vendor/order-edits/[id]/shipping-method/route.js +20 -0
  187. package/.medusa/server/src/api/vendor/order-edits/middlewares.d.ts +2 -0
  188. package/.medusa/server/src/api/vendor/order-edits/middlewares.js +106 -0
  189. package/.medusa/server/src/api/vendor/order-edits/route.d.ts +10 -0
  190. package/.medusa/server/src/api/vendor/order-edits/route.js +21 -0
  191. package/.medusa/server/src/api/vendor/order-edits/validators.d.ts +166 -0
  192. package/.medusa/server/src/api/vendor/order-edits/validators.js +50 -0
  193. package/.medusa/server/src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/cancel/route.js +3 -3
  194. package/.medusa/server/src/api/vendor/orders/[id]/fulfillments/route.js +3 -3
  195. package/.medusa/server/src/api/vendor/orders/apply-request-filter.d.ts +2 -0
  196. package/.medusa/server/src/api/vendor/orders/apply-request-filter.js +99 -0
  197. package/.medusa/server/src/api/vendor/orders/middlewares.js +3 -1
  198. package/.medusa/server/src/api/vendor/orders/query-config.js +34 -11
  199. package/.medusa/server/src/api/vendor/orders/resolve-offer-items.d.ts +40 -0
  200. package/.medusa/server/src/api/vendor/orders/resolve-offer-items.js +66 -0
  201. package/.medusa/server/src/api/vendor/orders/validators.d.ts +7 -4
  202. package/.medusa/server/src/api/vendor/orders/validators.js +7 -1
  203. package/.medusa/server/src/api/vendor/payment-collections/[id]/mark-as-paid/route.d.ts +3 -0
  204. package/.medusa/server/src/api/vendor/payment-collections/[id]/mark-as-paid/route.js +25 -0
  205. package/.medusa/server/src/api/vendor/payment-collections/helpers.d.ts +3 -0
  206. package/.medusa/server/src/api/vendor/payment-collections/helpers.js +30 -0
  207. package/.medusa/server/src/api/vendor/payment-collections/middlewares.d.ts +2 -0
  208. package/.medusa/server/src/api/vendor/payment-collections/middlewares.js +17 -0
  209. package/.medusa/server/src/api/vendor/payment-collections/query-config.d.ts +7 -0
  210. package/.medusa/server/src/api/vendor/payment-collections/query-config.js +26 -0
  211. package/.medusa/server/src/api/vendor/payment-collections/validators.d.ts +17 -0
  212. package/.medusa/server/src/api/vendor/payment-collections/validators.js +12 -0
  213. package/.medusa/server/src/api/vendor/payments/helpers.d.ts +9 -0
  214. package/.medusa/server/src/api/vendor/payments/helpers.js +23 -8
  215. package/.medusa/server/src/api/vendor/payments/validators.d.ts +4 -4
  216. package/.medusa/server/src/api/vendor/payouts/validators.d.ts +2 -2
  217. package/.medusa/server/src/api/vendor/price-lists/validators.d.ts +2 -2
  218. package/.medusa/server/src/api/vendor/price-preferences/validators.d.ts +2 -2
  219. package/.medusa/server/src/api/vendor/product-attributes/middlewares.js +15 -1
  220. package/.medusa/server/src/api/vendor/product-attributes/route.js +4 -1
  221. package/.medusa/server/src/api/vendor/product-attributes/validators.d.ts +3 -7
  222. package/.medusa/server/src/api/vendor/product-attributes/validators.js +2 -15
  223. package/.medusa/server/src/api/vendor/product-categories/[id]/products/route.d.ts +4 -0
  224. package/.medusa/server/src/api/vendor/product-categories/[id]/products/route.js +36 -0
  225. package/.medusa/server/src/api/vendor/product-categories/middlewares.js +9 -1
  226. package/.medusa/server/src/api/vendor/product-categories/query-config.js +1 -2
  227. package/.medusa/server/src/api/vendor/product-categories/validators.d.ts +21 -4
  228. package/.medusa/server/src/api/vendor/product-categories/validators.js +7 -2
  229. package/.medusa/server/src/api/vendor/product-types/validators.d.ts +2 -2
  230. package/.medusa/server/src/api/vendor/products/[id]/attributes/[attribute_id]/route.d.ts +18 -5
  231. package/.medusa/server/src/api/vendor/products/[id]/attributes/[attribute_id]/route.js +77 -17
  232. package/.medusa/server/src/api/vendor/products/[id]/attributes/batch/route.d.ts +12 -0
  233. package/.medusa/server/src/api/vendor/products/[id]/attributes/batch/route.js +46 -0
  234. package/.medusa/server/src/api/vendor/products/[id]/attributes/route.d.ts +10 -6
  235. package/.medusa/server/src/api/vendor/products/[id]/attributes/route.js +58 -25
  236. package/.medusa/server/src/api/vendor/products/[id]/cancel/route.d.ts +5 -7
  237. package/.medusa/server/src/api/vendor/products/[id]/cancel/route.js +12 -15
  238. package/.medusa/server/src/api/vendor/products/[id]/route.d.ts +18 -9
  239. package/.medusa/server/src/api/vendor/products/[id]/route.js +32 -16
  240. package/.medusa/server/src/api/vendor/products/[id]/variants/[variant_id]/route.d.ts +11 -9
  241. package/.medusa/server/src/api/vendor/products/[id]/variants/[variant_id]/route.js +46 -21
  242. package/.medusa/server/src/api/vendor/products/[id]/variants/route.d.ts +9 -5
  243. package/.medusa/server/src/api/vendor/products/[id]/variants/route.js +28 -10
  244. package/.medusa/server/src/api/vendor/products/helpers.d.ts +8 -0
  245. package/.medusa/server/src/api/vendor/products/helpers.js +26 -0
  246. package/.medusa/server/src/api/vendor/products/middlewares.js +34 -5
  247. package/.medusa/server/src/api/vendor/products/query-config.js +12 -17
  248. package/.medusa/server/src/api/vendor/products/route.d.ts +11 -1
  249. package/.medusa/server/src/api/vendor/products/route.js +25 -12
  250. package/.medusa/server/src/api/vendor/products/validators.d.ts +389 -70
  251. package/.medusa/server/src/api/vendor/products/validators.js +115 -14
  252. package/.medusa/server/src/api/vendor/promotions/validators.d.ts +4 -4
  253. package/.medusa/server/src/api/vendor/refund-reasons/validators.d.ts +2 -2
  254. package/.medusa/server/src/api/vendor/regions/validators.d.ts +4 -4
  255. package/.medusa/server/src/api/vendor/reservations/[id]/route.d.ts +5 -0
  256. package/.medusa/server/src/api/vendor/reservations/[id]/route.js +39 -0
  257. package/.medusa/server/src/api/vendor/reservations/helpers.d.ts +2 -0
  258. package/.medusa/server/src/api/vendor/reservations/helpers.js +21 -0
  259. package/.medusa/server/src/api/{admin/product-brands → vendor/reservations}/middlewares.d.ts +1 -1
  260. package/.medusa/server/src/api/vendor/reservations/middlewares.js +61 -0
  261. package/.medusa/server/src/api/vendor/reservations/query-config.d.ts +19 -0
  262. package/.medusa/server/src/api/vendor/reservations/query-config.js +48 -0
  263. package/.medusa/server/src/api/vendor/reservations/route.d.ts +4 -0
  264. package/.medusa/server/src/api/vendor/reservations/route.js +35 -0
  265. package/.medusa/server/src/api/vendor/reservations/validators.d.ts +296 -0
  266. package/.medusa/server/src/api/vendor/reservations/validators.js +40 -0
  267. package/.medusa/server/src/api/vendor/return-reasons/validators.d.ts +2 -2
  268. package/.medusa/server/src/api/vendor/returns/[id]/receive/confirm/route.js +3 -3
  269. package/.medusa/server/src/api/vendor/returns/validators.d.ts +4 -4
  270. package/.medusa/server/src/api/vendor/sales-channels/validators.d.ts +2 -2
  271. package/.medusa/server/src/api/vendor/sellers/validators.d.ts +4 -4
  272. package/.medusa/server/src/api/vendor/shipping-option-types/validators.d.ts +2 -2
  273. package/.medusa/server/src/api/vendor/shipping-options/middlewares.js +13 -1
  274. package/.medusa/server/src/api/vendor/shipping-options/validators.d.ts +43 -40
  275. package/.medusa/server/src/api/vendor/shipping-options/validators.js +2 -1
  276. package/.medusa/server/src/api/vendor/shipping-profiles/validators.d.ts +4 -4
  277. package/.medusa/server/src/api/vendor/stock-locations/validators.d.ts +2 -2
  278. package/.medusa/server/src/api/vendor/stores/validators.d.ts +2 -2
  279. package/.medusa/server/src/links/cart-line-item-offer-link.js +9 -2
  280. package/.medusa/server/src/links/category-seller-link.js +2 -2
  281. package/.medusa/server/src/links/offer-price-link.js +13 -0
  282. package/.medusa/server/src/links/offer-variant-link.js +2 -2
  283. package/.medusa/server/src/links/order-line-item-offer-link.js +10 -2
  284. package/.medusa/server/src/links/product-attribute-category-link.d.ts +16 -0
  285. package/.medusa/server/src/links/product-attribute-category-link.js +40 -0
  286. package/.medusa/server/src/links/product-attribute-product-link.d.ts +10 -0
  287. package/.medusa/server/src/links/product-attribute-product-link.js +29 -0
  288. package/.medusa/server/src/links/product-attribute-value-link.d.ts +22 -0
  289. package/.medusa/server/src/links/product-attribute-value-link.js +46 -0
  290. package/.medusa/server/src/links/product-change-link.d.ts +8 -0
  291. package/.medusa/server/src/links/product-change-link.js +27 -0
  292. package/.medusa/server/src/links/product-seller-link.js +2 -2
  293. package/.medusa/server/src/links/product-variant-attribute-link.js +21 -0
  294. package/.medusa/server/src/links/product-variant-attribute-value-link.d.ts +2 -0
  295. package/.medusa/server/src/links/product-variant-attribute-value-link.js +21 -0
  296. package/.medusa/server/src/modules/{product/migrations/Migration20260414141012.d.ts → offer/migrations/Migration20260526000000.d.ts} +1 -1
  297. package/.medusa/server/src/modules/offer/migrations/Migration20260526000000.js +16 -0
  298. package/.medusa/server/src/modules/offer/models/offer.d.ts +0 -1
  299. package/.medusa/server/src/modules/offer/models/offer.js +1 -7
  300. package/.medusa/server/src/modules/offer/service.d.ts +0 -1
  301. package/.medusa/server/src/modules/product-attribute/index.d.ts +36 -0
  302. package/.medusa/server/src/modules/product-attribute/index.js +14 -0
  303. package/.medusa/server/src/modules/product-attribute/joiner-config.d.ts +1 -0
  304. package/.medusa/server/src/modules/product-attribute/joiner-config.js +17 -0
  305. package/.medusa/server/src/modules/{product/migrations/Migration20260415151424.d.ts → product-attribute/migrations/Migration20260601000000.d.ts} +1 -1
  306. package/.medusa/server/src/modules/product-attribute/migrations/Migration20260601000000.js +62 -0
  307. package/.medusa/server/src/modules/product-attribute/migrations/Migration20260601000001.d.ts +11 -0
  308. package/.medusa/server/src/modules/product-attribute/migrations/Migration20260601000001.js +29 -0
  309. package/.medusa/server/src/modules/product-attribute/models/index.d.ts +2 -0
  310. package/.medusa/server/src/modules/product-attribute/models/index.js +11 -0
  311. package/.medusa/server/src/modules/product-attribute/models/product-attribute-value.d.ts +25 -0
  312. package/.medusa/server/src/modules/product-attribute/models/product-attribute-value.js +29 -0
  313. package/.medusa/server/src/modules/product-attribute/models/product-attribute.d.ts +26 -0
  314. package/.medusa/server/src/modules/product-attribute/models/product-attribute.js +53 -0
  315. package/.medusa/server/src/modules/product-attribute/service.d.ts +55 -0
  316. package/.medusa/server/src/modules/product-attribute/service.js +15 -0
  317. package/.medusa/server/src/modules/product-edit/index.d.ts +36 -0
  318. package/.medusa/server/src/modules/{subscription → product-edit}/index.js +4 -2
  319. package/.medusa/server/src/modules/product-edit/joiner-config.d.ts +1 -0
  320. package/.medusa/server/src/modules/product-edit/joiner-config.js +17 -0
  321. package/.medusa/server/src/modules/{product/migrations/Migration20260416104248.d.ts → product-edit/migrations/Migration20260601130000.d.ts} +1 -1
  322. package/.medusa/server/src/modules/product-edit/migrations/Migration20260601130000.js +78 -0
  323. package/.medusa/server/src/modules/product-edit/models/index.d.ts +2 -0
  324. package/.medusa/server/src/modules/product-edit/models/index.js +11 -0
  325. package/.medusa/server/src/modules/product-edit/models/product-change-action.d.ts +49 -0
  326. package/.medusa/server/src/modules/{product → product-edit}/models/product-change-action.js +1 -1
  327. package/.medusa/server/src/modules/product-edit/models/product-change.d.ts +31 -0
  328. package/.medusa/server/src/modules/product-edit/models/product-change.js +52 -0
  329. package/.medusa/server/src/modules/product-edit/service.d.ts +84 -0
  330. package/.medusa/server/src/modules/product-edit/service.js +15 -0
  331. package/.medusa/server/src/subscribers/link-order-line-items-to-offers.d.ts +6 -0
  332. package/.medusa/server/src/subscribers/link-order-line-items-to-offers.js +94 -0
  333. package/.medusa/server/src/subscribers/order-edit-confirmed.d.ts +5 -0
  334. package/.medusa/server/src/subscribers/order-edit-confirmed.js +22 -0
  335. package/.medusa/server/src/types/cart-line-item.d.ts +0 -9
  336. package/.medusa/server/src/utils/disable-medusa-middlewares.js +5 -1
  337. package/.medusa/server/src/with-mercur.js +1 -6
  338. package/.medusa/server/src/workflows/cart/hooks/before-refreshing-payment-collection.js +36 -0
  339. package/.medusa/server/src/workflows/cart/hooks/index.d.ts +3 -2
  340. package/.medusa/server/src/workflows/cart/hooks/index.js +4 -3
  341. package/.medusa/server/src/workflows/cart/hooks/set-pricing-context.js +94 -0
  342. package/.medusa/server/src/workflows/cart/hooks/validate.d.ts +1 -0
  343. package/.medusa/server/src/workflows/cart/hooks/validate.js +107 -0
  344. package/.medusa/server/src/workflows/cart/steps/index.d.ts +0 -3
  345. package/.medusa/server/src/workflows/cart/steps/index.js +1 -4
  346. package/.medusa/server/src/workflows/cart/utils/fields.js +29 -2
  347. package/.medusa/server/src/workflows/cart/workflows/complete-cart-with-split-orders.js +29 -3
  348. package/.medusa/server/src/workflows/cart/workflows/index.d.ts +0 -2
  349. package/.medusa/server/src/workflows/cart/workflows/index.js +1 -3
  350. package/.medusa/server/src/workflows/index.d.ts +1 -1
  351. package/.medusa/server/src/workflows/index.js +2 -2
  352. package/.medusa/server/src/workflows/offer/steps/add-offer-prices.d.ts +22 -0
  353. package/.medusa/server/src/workflows/offer/steps/add-offer-prices.js +64 -0
  354. package/.medusa/server/src/workflows/offer/steps/create-offers.d.ts +0 -1
  355. package/.medusa/server/src/workflows/offer/steps/delete-offers.d.ts +6 -1
  356. package/.medusa/server/src/workflows/offer/steps/delete-offers.js +10 -6
  357. package/.medusa/server/src/workflows/offer/steps/ensure-variant-price-sets.d.ts +15 -0
  358. package/.medusa/server/src/workflows/offer/steps/ensure-variant-price-sets.js +61 -0
  359. package/.medusa/server/src/workflows/offer/steps/index.d.ts +4 -1
  360. package/.medusa/server/src/workflows/offer/steps/index.js +5 -2
  361. package/.medusa/server/src/workflows/offer/steps/remove-offer-prices.d.ts +3 -0
  362. package/.medusa/server/src/workflows/offer/steps/remove-offer-prices.js +15 -0
  363. package/.medusa/server/src/workflows/offer/steps/update-offers.d.ts +0 -1
  364. package/.medusa/server/src/workflows/offer/utils/assert-offer-price-ownership.d.ts +17 -0
  365. package/.medusa/server/src/workflows/offer/utils/assert-offer-price-ownership.js +27 -0
  366. package/.medusa/server/src/workflows/offer/utils/index.d.ts +1 -0
  367. package/.medusa/server/src/workflows/offer/utils/index.js +2 -1
  368. package/.medusa/server/src/workflows/offer/workflows/batch-offer-inventory-items.d.ts +17 -31
  369. package/.medusa/server/src/workflows/offer/workflows/batch-offer-inventory-items.js +1 -1
  370. package/.medusa/server/src/workflows/offer/workflows/create-offers.d.ts +12 -111
  371. package/.medusa/server/src/workflows/offer/workflows/create-offers.js +98 -45
  372. package/.medusa/server/src/workflows/offer/workflows/delete-offers.js +2 -2
  373. package/.medusa/server/src/workflows/offer/workflows/update-offers.d.ts +21 -116
  374. package/.medusa/server/src/workflows/offer/workflows/update-offers.js +136 -20
  375. package/.medusa/server/src/workflows/order/workflows/cancel-order-fulfillment.d.ts +1 -1
  376. package/.medusa/server/src/workflows/order/workflows/cancel-order-fulfillment.js +3 -4
  377. package/.medusa/server/src/workflows/order/workflows/confirm-claim-request.d.ts +7 -0
  378. package/.medusa/server/src/workflows/order/workflows/confirm-claim-request.js +151 -0
  379. package/.medusa/server/src/workflows/order/workflows/confirm-exchange-request.d.ts +7 -0
  380. package/.medusa/server/src/workflows/order/workflows/confirm-exchange-request.js +159 -0
  381. package/.medusa/server/src/workflows/order/workflows/confirm-order-edit-request.d.ts +7 -0
  382. package/.medusa/server/src/workflows/order/workflows/confirm-order-edit-request.js +165 -0
  383. package/.medusa/server/src/workflows/order/workflows/confirm-return-receive.d.ts +1 -1
  384. package/.medusa/server/src/workflows/order/workflows/confirm-return-receive.js +3 -4
  385. package/.medusa/server/src/workflows/order/workflows/create-order-fulfillment.d.ts +10 -33
  386. package/.medusa/server/src/workflows/order/workflows/create-order-fulfillment.js +3 -4
  387. package/.medusa/server/src/workflows/order/workflows/index.d.ts +3 -0
  388. package/.medusa/server/src/workflows/order/workflows/index.js +4 -1
  389. package/.medusa/server/src/workflows/product/events.d.ts +5 -47
  390. package/.medusa/server/src/workflows/product/events.js +7 -49
  391. package/.medusa/server/src/workflows/product/index.d.ts +1 -1
  392. package/.medusa/server/src/workflows/product/index.js +2 -2
  393. package/.medusa/server/src/workflows/product/steps/index.d.ts +3 -28
  394. package/.medusa/server/src/workflows/product/steps/index.js +4 -29
  395. package/.medusa/server/src/workflows/product/steps/replace-product-attribute-value-links.d.ts +28 -0
  396. package/.medusa/server/src/workflows/product/steps/replace-product-attribute-value-links.js +72 -0
  397. package/.medusa/server/src/workflows/product/steps/resolve-attribute-refs.d.ts +90 -0
  398. package/.medusa/server/src/workflows/product/steps/resolve-attribute-refs.js +185 -0
  399. package/.medusa/server/src/workflows/product/steps/validate-products-status.d.ts +19 -0
  400. package/.medusa/server/src/workflows/product/steps/validate-products-status.js +28 -0
  401. package/.medusa/server/src/workflows/product/steps/validate-seller-product-permissions.d.ts +0 -1
  402. package/.medusa/server/src/workflows/product/steps/validate-seller-product-permissions.js +2 -21
  403. package/.medusa/server/src/workflows/product/workflows/confirm-products.d.ts +13 -1
  404. package/.medusa/server/src/workflows/product/workflows/confirm-products.js +41 -30
  405. package/.medusa/server/src/workflows/product/workflows/create-products.d.ts +59 -3
  406. package/.medusa/server/src/workflows/product/workflows/create-products.js +202 -16
  407. package/.medusa/server/src/workflows/product/workflows/index.d.ts +3 -26
  408. package/.medusa/server/src/workflows/product/workflows/index.js +4 -27
  409. package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product-category.d.ts +1 -1
  410. package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product-category.js +3 -4
  411. package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product.d.ts +1 -1
  412. package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product.js +3 -4
  413. package/.medusa/server/src/workflows/product/workflows/reject-product.d.ts +8 -1
  414. package/.medusa/server/src/workflows/product/workflows/reject-product.js +42 -38
  415. package/.medusa/server/src/workflows/product/workflows/request-product-change.d.ts +25 -0
  416. package/.medusa/server/src/workflows/product/workflows/request-product-change.js +69 -0
  417. package/.medusa/server/src/workflows/product/workflows/update-products.d.ts +39 -3
  418. package/.medusa/server/src/workflows/product/workflows/update-products.js +148 -10
  419. package/.medusa/server/src/workflows/product-attribute/events.d.ts +19 -0
  420. package/.medusa/server/src/workflows/product-attribute/events.js +23 -0
  421. package/.medusa/server/src/workflows/{subscription → product-attribute}/index.d.ts +1 -0
  422. package/.medusa/server/src/workflows/{subscription → product-attribute}/index.js +2 -1
  423. package/.medusa/server/src/workflows/product-attribute/steps/create-product-attribute-values.d.ts +37 -0
  424. package/.medusa/server/src/workflows/product-attribute/steps/create-product-attribute-values.js +18 -0
  425. package/.medusa/server/src/workflows/product-attribute/steps/create-product-attributes.d.ts +44 -0
  426. package/.medusa/server/src/workflows/product-attribute/steps/create-product-attributes.js +18 -0
  427. package/.medusa/server/src/workflows/{product → product-attribute}/steps/delete-product-attribute-values.d.ts +1 -0
  428. package/.medusa/server/src/workflows/product-attribute/steps/delete-product-attribute-values.js +18 -0
  429. package/.medusa/server/src/workflows/{product → product-attribute}/steps/delete-product-attributes.d.ts +1 -0
  430. package/.medusa/server/src/workflows/product-attribute/steps/delete-product-attributes.js +18 -0
  431. package/.medusa/server/src/workflows/product-attribute/steps/index.d.ts +10 -0
  432. package/.medusa/server/src/workflows/product-attribute/steps/index.js +27 -0
  433. package/.medusa/server/src/workflows/product-attribute/steps/update-product-attribute-values.d.ts +38 -0
  434. package/.medusa/server/src/workflows/product-attribute/steps/update-product-attribute-values.js +23 -0
  435. package/.medusa/server/src/workflows/product-attribute/steps/update-product-attributes.d.ts +38 -0
  436. package/.medusa/server/src/workflows/{product → product-attribute}/steps/update-product-attributes.js +7 -6
  437. package/.medusa/server/src/workflows/product-attribute/steps/upsert-product-attribute-values.d.ts +43 -0
  438. package/.medusa/server/src/workflows/product-attribute/steps/upsert-product-attribute-values.js +51 -0
  439. package/.medusa/server/src/workflows/product-attribute/steps/upsert-product-options-for-axis.d.ts +7 -0
  440. package/.medusa/server/src/workflows/product-attribute/steps/upsert-product-options-for-axis.js +59 -0
  441. package/.medusa/server/src/workflows/product-attribute/steps/validate-attribute-accepts-values.d.ts +6 -0
  442. package/.medusa/server/src/workflows/product-attribute/steps/validate-attribute-accepts-values.js +20 -0
  443. package/.medusa/server/src/workflows/product-attribute/steps/validate-product-attribute-input.d.ts +7 -0
  444. package/.medusa/server/src/workflows/product-attribute/steps/validate-product-attribute-input.js +20 -0
  445. package/.medusa/server/src/workflows/product-attribute/workflows/add-product-attribute.d.ts +52 -0
  446. package/.medusa/server/src/workflows/product-attribute/workflows/add-product-attribute.js +120 -0
  447. package/.medusa/server/src/workflows/product-attribute/workflows/batch-product-attribute-values.d.ts +23 -0
  448. package/.medusa/server/src/workflows/product-attribute/workflows/batch-product-attribute-values.js +252 -0
  449. package/.medusa/server/src/workflows/product-attribute/workflows/create-product-attribute-values.d.ts +18 -0
  450. package/.medusa/server/src/workflows/product-attribute/workflows/create-product-attribute-values.js +26 -0
  451. package/.medusa/server/src/workflows/product-attribute/workflows/create-product-attributes.d.ts +19 -0
  452. package/.medusa/server/src/workflows/product-attribute/workflows/create-product-attributes.js +64 -0
  453. package/.medusa/server/src/workflows/product-attribute/workflows/delete-product-attribute-values.d.ts +16 -0
  454. package/.medusa/server/src/workflows/product-attribute/workflows/delete-product-attribute-values.js +40 -0
  455. package/.medusa/server/src/workflows/product-attribute/workflows/delete-product-attributes.d.ts +23 -0
  456. package/.medusa/server/src/workflows/product-attribute/workflows/delete-product-attributes.js +31 -0
  457. package/.medusa/server/src/workflows/product-attribute/workflows/detach-product-attribute.d.ts +17 -0
  458. package/.medusa/server/src/workflows/product-attribute/workflows/detach-product-attribute.js +62 -0
  459. package/.medusa/server/src/workflows/product-attribute/workflows/index.d.ts +13 -0
  460. package/.medusa/server/src/workflows/product-attribute/workflows/index.js +30 -0
  461. package/.medusa/server/src/workflows/product-attribute/workflows/materialize-product-attributes.d.ts +135 -0
  462. package/.medusa/server/src/workflows/product-attribute/workflows/materialize-product-attributes.js +43 -0
  463. package/.medusa/server/src/workflows/product-attribute/workflows/sync-product-attribute-options.d.ts +24 -0
  464. package/.medusa/server/src/workflows/product-attribute/workflows/sync-product-attribute-options.js +27 -0
  465. package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attribute-values.d.ts +18 -0
  466. package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attribute-values.js +27 -0
  467. package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attribute.d.ts +23 -0
  468. package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attribute.js +67 -0
  469. package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attributes.d.ts +18 -0
  470. package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attributes.js +27 -0
  471. package/.medusa/server/src/workflows/product-attribute/workflows/upsert-product-attribute-values.d.ts +18 -0
  472. package/.medusa/server/src/workflows/product-attribute/workflows/upsert-product-attribute-values.js +26 -0
  473. package/.medusa/server/src/workflows/product-edit/events.d.ts +13 -0
  474. package/.medusa/server/src/workflows/product-edit/events.js +17 -0
  475. package/.medusa/server/src/workflows/product-edit/index.d.ts +1 -0
  476. package/.medusa/server/src/workflows/product-edit/index.js +2 -1
  477. package/.medusa/server/src/workflows/product-edit/steps/add-product-change-action.d.ts +38 -0
  478. package/.medusa/server/src/workflows/product-edit/steps/add-product-change-action.js +18 -0
  479. package/.medusa/server/src/workflows/product-edit/steps/cancel-product-change.d.ts +38 -2
  480. package/.medusa/server/src/workflows/product-edit/steps/cancel-product-change.js +28 -10
  481. package/.medusa/server/src/workflows/product-edit/steps/confirm-product-change-validation.d.ts +15 -0
  482. package/.medusa/server/src/workflows/product-edit/steps/confirm-product-change-validation.js +25 -0
  483. package/.medusa/server/src/workflows/product-edit/steps/confirm-product-changes.d.ts +46 -3
  484. package/.medusa/server/src/workflows/product-edit/steps/confirm-product-changes.js +44 -7
  485. package/.medusa/server/src/workflows/product-edit/steps/create-product-change-actions.d.ts +41 -14
  486. package/.medusa/server/src/workflows/product-edit/steps/create-product-change-actions.js +20 -11
  487. package/.medusa/server/src/workflows/product-edit/steps/create-product-changes.d.ts +46 -16
  488. package/.medusa/server/src/workflows/product-edit/steps/create-product-changes.js +11 -18
  489. package/.medusa/server/src/workflows/product-edit/steps/decline-product-change.d.ts +44 -3
  490. package/.medusa/server/src/workflows/product-edit/steps/decline-product-change.js +37 -10
  491. package/.medusa/server/src/workflows/product-edit/steps/index.d.ts +5 -3
  492. package/.medusa/server/src/workflows/product-edit/steps/index.js +6 -4
  493. package/.medusa/server/src/workflows/product-edit/steps/update-product-change-actions.d.ts +49 -0
  494. package/.medusa/server/src/workflows/product-edit/steps/update-product-change-actions.js +34 -0
  495. package/.medusa/server/src/workflows/product-edit/steps/validate-no-pending-product-change.d.ts +7 -7
  496. package/.medusa/server/src/workflows/product-edit/steps/validate-no-pending-product-change.js +29 -13
  497. package/.medusa/server/src/workflows/product-edit/steps/validate-product-change-is-pending.d.ts +10 -0
  498. package/.medusa/server/src/workflows/product-edit/steps/validate-product-change-is-pending.js +14 -0
  499. package/.medusa/server/src/workflows/product-edit/workflows/apply-product-attribute-change-actions.d.ts +23 -0
  500. package/.medusa/server/src/workflows/product-edit/workflows/apply-product-attribute-change-actions.js +139 -0
  501. package/.medusa/server/src/workflows/product-edit/workflows/apply-product-change-actions.d.ts +38 -0
  502. package/.medusa/server/src/workflows/product-edit/workflows/apply-product-change-actions.js +191 -0
  503. package/.medusa/server/src/workflows/product-edit/workflows/auto-confirm-product-change.d.ts +14 -13
  504. package/.medusa/server/src/workflows/product-edit/workflows/auto-confirm-product-change.js +14 -22
  505. package/.medusa/server/src/workflows/product-edit/workflows/cancel-product-change.d.ts +17 -0
  506. package/.medusa/server/src/workflows/product-edit/workflows/cancel-product-change.js +35 -0
  507. package/.medusa/server/src/workflows/product-edit/workflows/confirm-product-change.d.ts +30 -0
  508. package/.medusa/server/src/workflows/product-edit/workflows/confirm-product-change.js +55 -0
  509. package/.medusa/server/src/workflows/product-edit/workflows/create-product-change.d.ts +17 -0
  510. package/.medusa/server/src/workflows/product-edit/workflows/create-product-change.js +26 -0
  511. package/.medusa/server/src/workflows/product-edit/workflows/index.d.ts +10 -8
  512. package/.medusa/server/src/workflows/product-edit/workflows/index.js +11 -9
  513. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-delete-product.d.ts +14 -17
  514. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-delete-product.js +21 -46
  515. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-attributes.d.ts +55 -0
  516. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-attributes.js +198 -0
  517. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-fields.d.ts +22 -15
  518. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-fields.js +126 -50
  519. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-variants.d.ts +35 -0
  520. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-variants.js +157 -0
  521. package/.medusa/server/src/workflows/product-edit/workflows/record-product-audit-change.d.ts +36 -0
  522. package/.medusa/server/src/workflows/product-edit/workflows/record-product-audit-change.js +53 -0
  523. package/.medusa/server/src/workflows/product-edit/workflows/reject-product-change.d.ts +18 -0
  524. package/.medusa/server/src/workflows/product-edit/workflows/reject-product-change.js +36 -0
  525. package/.medusa/server/src/workflows/product-edit/workflows/stage-product-change.d.ts +35 -0
  526. package/.medusa/server/src/workflows/product-edit/workflows/stage-product-change.js +57 -0
  527. package/.medusa/server/src/workflows/seller/workflows/create-sellers.d.ts +20 -2
  528. package/.medusa/server/src/workflows/seller/workflows/create-sellers.js +1 -1
  529. package/.medusa/server/src/workflows/seller/workflows/update-seller-address.d.ts +14 -2
  530. package/.medusa/server/src/workflows/seller/workflows/update-seller-address.js +1 -1
  531. package/.medusa/server/src/workflows/seller/workflows/update-seller-payment-details.d.ts +14 -2
  532. package/.medusa/server/src/workflows/seller/workflows/update-seller-payment-details.js +1 -1
  533. package/.medusa/server/src/workflows/seller/workflows/update-seller-professional-details.d.ts +14 -2
  534. package/.medusa/server/src/workflows/seller/workflows/update-seller-professional-details.js +1 -1
  535. package/.medusa/server/src/workflows/seller/workflows/update-seller.d.ts +14 -2
  536. package/.medusa/server/src/workflows/seller/workflows/update-seller.js +1 -1
  537. package/package.json +1 -1
  538. package/.medusa/server/src/api/admin/product-brands/[id]/route.d.ts +0 -7
  539. package/.medusa/server/src/api/admin/product-brands/[id]/route.js +0 -51
  540. package/.medusa/server/src/api/admin/product-brands/[id]/sellers/route.d.ts +0 -3
  541. package/.medusa/server/src/api/admin/product-brands/[id]/sellers/route.js +0 -20
  542. package/.medusa/server/src/api/admin/product-brands/middlewares.js +0 -49
  543. package/.medusa/server/src/api/admin/product-brands/query-config.d.ts +0 -12
  544. package/.medusa/server/src/api/admin/product-brands/query-config.js +0 -24
  545. package/.medusa/server/src/api/admin/product-brands/route.d.ts +0 -6
  546. package/.medusa/server/src/api/admin/product-brands/route.js +0 -38
  547. package/.medusa/server/src/api/admin/product-brands/validators.d.ts +0 -284
  548. package/.medusa/server/src/api/admin/product-brands/validators.js +0 -41
  549. package/.medusa/server/src/api/admin/products/batch/route.d.ts +0 -4
  550. package/.medusa/server/src/api/admin/products/batch/route.js +0 -36
  551. package/.medusa/server/src/api/admin/subscription-plans/[id]/overrides/[override_id]/route.d.ts +0 -6
  552. package/.medusa/server/src/api/admin/subscription-plans/[id]/overrides/[override_id]/route.js +0 -43
  553. package/.medusa/server/src/api/admin/subscription-plans/[id]/overrides/route.d.ts +0 -4
  554. package/.medusa/server/src/api/admin/subscription-plans/[id]/overrides/route.js +0 -24
  555. package/.medusa/server/src/api/admin/subscription-plans/[id]/route.d.ts +0 -6
  556. package/.medusa/server/src/api/admin/subscription-plans/[id]/route.js +0 -43
  557. package/.medusa/server/src/api/admin/subscription-plans/middlewares.d.ts +0 -2
  558. package/.medusa/server/src/api/admin/subscription-plans/middlewares.js +0 -81
  559. package/.medusa/server/src/api/admin/subscription-plans/query-config.d.ts +0 -17
  560. package/.medusa/server/src/api/admin/subscription-plans/query-config.js +0 -43
  561. package/.medusa/server/src/api/admin/subscription-plans/route.d.ts +0 -5
  562. package/.medusa/server/src/api/admin/subscription-plans/route.js +0 -35
  563. package/.medusa/server/src/api/admin/subscription-plans/validators.d.ts +0 -117
  564. package/.medusa/server/src/api/admin/subscription-plans/validators.js +0 -42
  565. package/.medusa/server/src/api/store/product-brands/[id]/route.d.ts +0 -2
  566. package/.medusa/server/src/api/store/product-brands/[id]/route.js +0 -18
  567. package/.medusa/server/src/api/store/product-brands/middlewares.d.ts +0 -2
  568. package/.medusa/server/src/api/store/product-brands/middlewares.js +0 -23
  569. package/.medusa/server/src/api/store/product-brands/query-config.d.ts +0 -12
  570. package/.medusa/server/src/api/store/product-brands/query-config.js +0 -23
  571. package/.medusa/server/src/api/store/product-brands/route.d.ts +0 -2
  572. package/.medusa/server/src/api/store/product-brands/route.js +0 -21
  573. package/.medusa/server/src/api/store/product-brands/validators.d.ts +0 -215
  574. package/.medusa/server/src/api/store/product-brands/validators.js +0 -21
  575. package/.medusa/server/src/api/utils/wrap-variants-with-offers-inventory.d.ts +0 -12
  576. package/.medusa/server/src/api/utils/wrap-variants-with-offers-inventory.js +0 -165
  577. package/.medusa/server/src/api/utils/wrap-variants-with-offers-prices.d.ts +0 -12
  578. package/.medusa/server/src/api/utils/wrap-variants-with-offers-prices.js +0 -64
  579. package/.medusa/server/src/api/vendor/product-brands/[id]/route.d.ts +0 -3
  580. package/.medusa/server/src/api/vendor/product-brands/[id]/route.js +0 -18
  581. package/.medusa/server/src/api/vendor/product-brands/middlewares.js +0 -23
  582. package/.medusa/server/src/api/vendor/product-brands/query-config.d.ts +0 -12
  583. package/.medusa/server/src/api/vendor/product-brands/query-config.js +0 -24
  584. package/.medusa/server/src/api/vendor/product-brands/route.d.ts +0 -3
  585. package/.medusa/server/src/api/vendor/product-brands/route.js +0 -21
  586. package/.medusa/server/src/api/vendor/product-brands/validators.d.ts +0 -221
  587. package/.medusa/server/src/api/vendor/product-brands/validators.js +0 -22
  588. package/.medusa/server/src/api/vendor/subscription/middlewares.d.ts +0 -2
  589. package/.medusa/server/src/api/vendor/subscription/middlewares.js +0 -28
  590. package/.medusa/server/src/api/vendor/subscription/route.d.ts +0 -3
  591. package/.medusa/server/src/api/vendor/subscription/route.js +0 -31
  592. package/.medusa/server/src/links/brand-seller-link.js +0 -16
  593. package/.medusa/server/src/links/offer-price-set-link.js +0 -15
  594. package/.medusa/server/src/modules/product/index.d.ts +0 -7
  595. package/.medusa/server/src/modules/product/index.js +0 -14
  596. package/.medusa/server/src/modules/product/migrations/Migration20260414141012.js +0 -169
  597. package/.medusa/server/src/modules/product/migrations/Migration20260415151424.js +0 -14
  598. package/.medusa/server/src/modules/product/migrations/Migration20260416104248.js +0 -14
  599. package/.medusa/server/src/modules/product/migrations/Migration20260416105443.d.ts +0 -5
  600. package/.medusa/server/src/modules/product/migrations/Migration20260416105443.js +0 -16
  601. package/.medusa/server/src/modules/product/migrations/Migration20260421093258.d.ts +0 -5
  602. package/.medusa/server/src/modules/product/migrations/Migration20260421093258.js +0 -22
  603. package/.medusa/server/src/modules/product/migrations/Migration20260422105949.d.ts +0 -5
  604. package/.medusa/server/src/modules/product/migrations/Migration20260422105949.js +0 -32
  605. package/.medusa/server/src/modules/product/migrations/Migration20260422112250.d.ts +0 -5
  606. package/.medusa/server/src/modules/product/migrations/Migration20260422112250.js +0 -16
  607. package/.medusa/server/src/modules/product/migrations/Migration20260424120000.d.ts +0 -5
  608. package/.medusa/server/src/modules/product/migrations/Migration20260424120000.js +0 -16
  609. package/.medusa/server/src/modules/product/migrations/Migration20260427140959.d.ts +0 -5
  610. package/.medusa/server/src/modules/product/migrations/Migration20260427140959.js +0 -20
  611. package/.medusa/server/src/modules/product/migrations/Migration20260427141021.d.ts +0 -5
  612. package/.medusa/server/src/modules/product/migrations/Migration20260427141021.js +0 -16
  613. package/.medusa/server/src/modules/product/migrations/Migration20260428115720.d.ts +0 -5
  614. package/.medusa/server/src/modules/product/migrations/Migration20260428115720.js +0 -16
  615. package/.medusa/server/src/modules/product/migrations/Migration20260430143600.d.ts +0 -5
  616. package/.medusa/server/src/modules/product/migrations/Migration20260430143600.js +0 -15
  617. package/.medusa/server/src/modules/product/migrations/Migration20260430144500.d.ts +0 -5
  618. package/.medusa/server/src/modules/product/migrations/Migration20260430144500.js +0 -23
  619. package/.medusa/server/src/modules/product/migrations/Migration20260430150000.d.ts +0 -5
  620. package/.medusa/server/src/modules/product/migrations/Migration20260430150000.js +0 -14
  621. package/.medusa/server/src/modules/product/migrations/Migration20260520120000.d.ts +0 -5
  622. package/.medusa/server/src/modules/product/migrations/Migration20260520120000.js +0 -16
  623. package/.medusa/server/src/modules/product/models/index.d.ts +0 -13
  624. package/.medusa/server/src/modules/product/models/index.js +0 -33
  625. package/.medusa/server/src/modules/product/models/product-attribute-value.d.ts +0 -1676
  626. package/.medusa/server/src/modules/product/models/product-attribute-value.js +0 -38
  627. package/.medusa/server/src/modules/product/models/product-attribute.d.ts +0 -1597
  628. package/.medusa/server/src/modules/product/models/product-attribute.js +0 -57
  629. package/.medusa/server/src/modules/product/models/product-brand.d.ts +0 -539
  630. package/.medusa/server/src/modules/product/models/product-brand.js +0 -34
  631. package/.medusa/server/src/modules/product/models/product-category.d.ts +0 -1658
  632. package/.medusa/server/src/modules/product/models/product-category.js +0 -55
  633. package/.medusa/server/src/modules/product/models/product-change-action.d.ts +0 -1081
  634. package/.medusa/server/src/modules/product/models/product-change.d.ts +0 -547
  635. package/.medusa/server/src/modules/product/models/product-change.js +0 -50
  636. package/.medusa/server/src/modules/product/models/product-collection.d.ts +0 -540
  637. package/.medusa/server/src/modules/product/models/product-collection.js +0 -27
  638. package/.medusa/server/src/modules/product/models/product-image.d.ts +0 -1733
  639. package/.medusa/server/src/modules/product/models/product-image.js +0 -51
  640. package/.medusa/server/src/modules/product/models/product-tag.d.ts +0 -549
  641. package/.medusa/server/src/modules/product/models/product-tag.js +0 -26
  642. package/.medusa/server/src/modules/product/models/product-type.d.ts +0 -541
  643. package/.medusa/server/src/modules/product/models/product-type.js +0 -26
  644. package/.medusa/server/src/modules/product/models/product-variant-product-image.d.ts +0 -3352
  645. package/.medusa/server/src/modules/product/models/product-variant-product-image.js +0 -19
  646. package/.medusa/server/src/modules/product/models/product-variant.d.ts +0 -1617
  647. package/.medusa/server/src/modules/product/models/product-variant.js +0 -84
  648. package/.medusa/server/src/modules/product/models/product.d.ts +0 -547
  649. package/.medusa/server/src/modules/product/models/product.js +0 -137
  650. package/.medusa/server/src/modules/product/repositories/product-category.d.ts +0 -53
  651. package/.medusa/server/src/modules/product/repositories/product-category.js +0 -381
  652. package/.medusa/server/src/modules/product/service.d.ts +0 -11013
  653. package/.medusa/server/src/modules/product/service.js +0 -1471
  654. package/.medusa/server/src/modules/product/services/product-category.d.ts +0 -37
  655. package/.medusa/server/src/modules/product/services/product-category.js +0 -166
  656. package/.medusa/server/src/modules/subscription/index.d.ts +0 -35
  657. package/.medusa/server/src/modules/subscription/migrations/Migration20260324135903.d.ts +0 -5
  658. package/.medusa/server/src/modules/subscription/migrations/Migration20260324135903.js +0 -24
  659. package/.medusa/server/src/modules/subscription/models/index.d.ts +0 -2
  660. package/.medusa/server/src/modules/subscription/models/index.js +0 -11
  661. package/.medusa/server/src/modules/subscription/models/subscription-override.d.ts +0 -20
  662. package/.medusa/server/src/modules/subscription/models/subscription-override.js +0 -36
  663. package/.medusa/server/src/modules/subscription/models/subscription-plan.d.ts +0 -20
  664. package/.medusa/server/src/modules/subscription/models/subscription-plan.js +0 -32
  665. package/.medusa/server/src/modules/subscription/service.d.ts +0 -49
  666. package/.medusa/server/src/modules/subscription/service.js +0 -17
  667. package/.medusa/server/src/workflows/cart/hooks/validate-add-to-cart-stock.js +0 -52
  668. package/.medusa/server/src/workflows/cart/hooks/validate-update-line-item-stock.js +0 -60
  669. package/.medusa/server/src/workflows/cart/steps/calculate-offer-prices.d.ts +0 -19
  670. package/.medusa/server/src/workflows/cart/steps/calculate-offer-prices.js +0 -39
  671. package/.medusa/server/src/workflows/cart/steps/decorate-line-item-with-offer.d.ts +0 -8
  672. package/.medusa/server/src/workflows/cart/steps/decorate-line-item-with-offer.js +0 -45
  673. package/.medusa/server/src/workflows/cart/steps/get-line-item-actions.d.ts +0 -21
  674. package/.medusa/server/src/workflows/cart/steps/get-line-item-actions.js +0 -85
  675. package/.medusa/server/src/workflows/cart/workflows/add-to-cart.d.ts +0 -12
  676. package/.medusa/server/src/workflows/cart/workflows/add-to-cart.js +0 -235
  677. package/.medusa/server/src/workflows/cart/workflows/update-line-item-in-cart.d.ts +0 -16
  678. package/.medusa/server/src/workflows/cart/workflows/update-line-item-in-cart.js +0 -87
  679. package/.medusa/server/src/workflows/product/steps/associate-sellers-with-product-brand.d.ts +0 -8
  680. package/.medusa/server/src/workflows/product/steps/associate-sellers-with-product-brand.js +0 -26
  681. package/.medusa/server/src/workflows/product/steps/batch-link-products-in-category.d.ts +0 -7
  682. package/.medusa/server/src/workflows/product/steps/batch-link-products-in-category.js +0 -61
  683. package/.medusa/server/src/workflows/product/steps/batch-product-attributes.d.ts +0 -11
  684. package/.medusa/server/src/workflows/product/steps/batch-product-attributes.js +0 -16
  685. package/.medusa/server/src/workflows/product/steps/create-product-attribute-values.d.ts +0 -6
  686. package/.medusa/server/src/workflows/product/steps/create-product-attribute-values.js +0 -17
  687. package/.medusa/server/src/workflows/product/steps/create-product-attributes.d.ts +0 -2
  688. package/.medusa/server/src/workflows/product/steps/create-product-attributes.js +0 -17
  689. package/.medusa/server/src/workflows/product/steps/create-product-brands.d.ts +0 -2
  690. package/.medusa/server/src/workflows/product/steps/create-product-brands.js +0 -17
  691. package/.medusa/server/src/workflows/product/steps/create-product-categories.d.ts +0 -1548
  692. package/.medusa/server/src/workflows/product/steps/create-product-categories.js +0 -18
  693. package/.medusa/server/src/workflows/product/steps/create-product-variants.d.ts +0 -2
  694. package/.medusa/server/src/workflows/product/steps/create-product-variants.js +0 -18
  695. package/.medusa/server/src/workflows/product/steps/create-products.d.ts +0 -2
  696. package/.medusa/server/src/workflows/product/steps/create-products.js +0 -17
  697. package/.medusa/server/src/workflows/product/steps/delete-product-attribute-values.js +0 -17
  698. package/.medusa/server/src/workflows/product/steps/delete-product-attributes.js +0 -17
  699. package/.medusa/server/src/workflows/product/steps/delete-product-brands.d.ts +0 -1
  700. package/.medusa/server/src/workflows/product/steps/delete-product-brands.js +0 -17
  701. package/.medusa/server/src/workflows/product/steps/delete-product-categories.d.ts +0 -1
  702. package/.medusa/server/src/workflows/product/steps/delete-product-categories.js +0 -17
  703. package/.medusa/server/src/workflows/product/steps/delete-product-variants.d.ts +0 -1
  704. package/.medusa/server/src/workflows/product/steps/delete-product-variants.js +0 -17
  705. package/.medusa/server/src/workflows/product/steps/delete-products.d.ts +0 -1
  706. package/.medusa/server/src/workflows/product/steps/delete-products.js +0 -17
  707. package/.medusa/server/src/workflows/product/steps/detach-sellers-from-product-brand.d.ts +0 -8
  708. package/.medusa/server/src/workflows/product/steps/detach-sellers-from-product-brand.js +0 -26
  709. package/.medusa/server/src/workflows/product/steps/remove-attribute-from-product.d.ts +0 -6
  710. package/.medusa/server/src/workflows/product/steps/remove-attribute-from-product.js +0 -11
  711. package/.medusa/server/src/workflows/product/steps/update-product-attribute-values.d.ts +0 -7
  712. package/.medusa/server/src/workflows/product/steps/update-product-attribute-values.js +0 -22
  713. package/.medusa/server/src/workflows/product/steps/update-product-attributes.d.ts +0 -7
  714. package/.medusa/server/src/workflows/product/steps/update-product-brands.d.ts +0 -7
  715. package/.medusa/server/src/workflows/product/steps/update-product-brands.js +0 -28
  716. package/.medusa/server/src/workflows/product/steps/update-product-categories.d.ts +0 -1552
  717. package/.medusa/server/src/workflows/product/steps/update-product-categories.js +0 -20
  718. package/.medusa/server/src/workflows/product/steps/update-product-variants.d.ts +0 -10
  719. package/.medusa/server/src/workflows/product/steps/update-product-variants.js +0 -32
  720. package/.medusa/server/src/workflows/product/steps/update-products.d.ts +0 -10
  721. package/.medusa/server/src/workflows/product/steps/update-products.js +0 -33
  722. package/.medusa/server/src/workflows/product/steps/upsert-product-attribute-values.d.ts +0 -5
  723. package/.medusa/server/src/workflows/product/steps/upsert-product-attribute-values.js +0 -30
  724. package/.medusa/server/src/workflows/product/steps/validate-attribute-accepts-values.d.ts +0 -5
  725. package/.medusa/server/src/workflows/product/steps/validate-attribute-accepts-values.js +0 -19
  726. package/.medusa/server/src/workflows/product/steps/validate-confirm-products.d.ts +0 -3
  727. package/.medusa/server/src/workflows/product/steps/validate-confirm-products.js +0 -14
  728. package/.medusa/server/src/workflows/product/steps/validate-delete-product-attribute-values.d.ts +0 -5
  729. package/.medusa/server/src/workflows/product/steps/validate-delete-product-attribute-values.js +0 -19
  730. package/.medusa/server/src/workflows/product/steps/validate-delete-product-attributes.d.ts +0 -5
  731. package/.medusa/server/src/workflows/product/steps/validate-delete-product-attributes.js +0 -30
  732. package/.medusa/server/src/workflows/product/steps/validate-reject-product.d.ts +0 -3
  733. package/.medusa/server/src/workflows/product/steps/validate-reject-product.js +0 -12
  734. package/.medusa/server/src/workflows/product/steps/validate-request-changes.d.ts +0 -3
  735. package/.medusa/server/src/workflows/product/steps/validate-request-changes.js +0 -12
  736. package/.medusa/server/src/workflows/product/steps/validate-resubmit-product.d.ts +0 -3
  737. package/.medusa/server/src/workflows/product/steps/validate-resubmit-product.js +0 -12
  738. package/.medusa/server/src/workflows/product/workflows/batch-link-products-in-category.d.ts +0 -8
  739. package/.medusa/server/src/workflows/product/workflows/batch-link-products-in-category.js +0 -10
  740. package/.medusa/server/src/workflows/product/workflows/batch-product-attributes.d.ts +0 -12
  741. package/.medusa/server/src/workflows/product/workflows/batch-product-attributes.js +0 -23
  742. package/.medusa/server/src/workflows/product/workflows/batch-products.d.ts +0 -3
  743. package/.medusa/server/src/workflows/product/workflows/batch-products.js +0 -86
  744. package/.medusa/server/src/workflows/product/workflows/create-product-attribute-values.d.ts +0 -8
  745. package/.medusa/server/src/workflows/product/workflows/create-product-attribute-values.js +0 -21
  746. package/.medusa/server/src/workflows/product/workflows/create-product-attributes.d.ts +0 -7
  747. package/.medusa/server/src/workflows/product/workflows/create-product-attributes.js +0 -18
  748. package/.medusa/server/src/workflows/product/workflows/create-product-brands.d.ts +0 -7
  749. package/.medusa/server/src/workflows/product/workflows/create-product-brands.js +0 -19
  750. package/.medusa/server/src/workflows/product/workflows/create-product-categories.d.ts +0 -1553
  751. package/.medusa/server/src/workflows/product/workflows/create-product-categories.js +0 -18
  752. package/.medusa/server/src/workflows/product/workflows/create-product-variants.d.ts +0 -3
  753. package/.medusa/server/src/workflows/product/workflows/create-product-variants.js +0 -25
  754. package/.medusa/server/src/workflows/product/workflows/delete-product-attribute-values.d.ts +0 -6
  755. package/.medusa/server/src/workflows/product/workflows/delete-product-attribute-values.js +0 -20
  756. package/.medusa/server/src/workflows/product/workflows/delete-product-attributes.d.ts +0 -6
  757. package/.medusa/server/src/workflows/product/workflows/delete-product-attributes.js +0 -20
  758. package/.medusa/server/src/workflows/product/workflows/delete-product-brands.d.ts +0 -6
  759. package/.medusa/server/src/workflows/product/workflows/delete-product-brands.js +0 -19
  760. package/.medusa/server/src/workflows/product/workflows/delete-product-categories.d.ts +0 -6
  761. package/.medusa/server/src/workflows/product/workflows/delete-product-categories.js +0 -18
  762. package/.medusa/server/src/workflows/product/workflows/delete-product-variants.d.ts +0 -8
  763. package/.medusa/server/src/workflows/product/workflows/delete-product-variants.js +0 -24
  764. package/.medusa/server/src/workflows/product/workflows/delete-products.d.ts +0 -6
  765. package/.medusa/server/src/workflows/product/workflows/delete-products.js +0 -19
  766. package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product-brand.d.ts +0 -14
  767. package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product-brand.js +0 -21
  768. package/.medusa/server/src/workflows/product/workflows/remove-attribute-from-product.d.ts +0 -7
  769. package/.medusa/server/src/workflows/product/workflows/remove-attribute-from-product.js +0 -20
  770. package/.medusa/server/src/workflows/product/workflows/request-product-changes.d.ts +0 -11
  771. package/.medusa/server/src/workflows/product/workflows/request-product-changes.js +0 -61
  772. package/.medusa/server/src/workflows/product/workflows/resubmit-product.d.ts +0 -8
  773. package/.medusa/server/src/workflows/product/workflows/resubmit-product.js +0 -48
  774. package/.medusa/server/src/workflows/product/workflows/submit-seller-products.d.ts +0 -3
  775. package/.medusa/server/src/workflows/product/workflows/submit-seller-products.js +0 -76
  776. package/.medusa/server/src/workflows/product/workflows/update-product-attribute-values.d.ts +0 -8
  777. package/.medusa/server/src/workflows/product/workflows/update-product-attribute-values.js +0 -18
  778. package/.medusa/server/src/workflows/product/workflows/update-product-attributes.d.ts +0 -8
  779. package/.medusa/server/src/workflows/product/workflows/update-product-attributes.js +0 -18
  780. package/.medusa/server/src/workflows/product/workflows/update-product-brands.d.ts +0 -8
  781. package/.medusa/server/src/workflows/product/workflows/update-product-brands.js +0 -19
  782. package/.medusa/server/src/workflows/product/workflows/update-product-categories.d.ts +0 -1555
  783. package/.medusa/server/src/workflows/product/workflows/update-product-categories.js +0 -18
  784. package/.medusa/server/src/workflows/product/workflows/update-product-variants.d.ts +0 -3
  785. package/.medusa/server/src/workflows/product/workflows/update-product-variants.js +0 -36
  786. package/.medusa/server/src/workflows/product/workflows/upsert-product-attribute-values.d.ts +0 -8
  787. package/.medusa/server/src/workflows/product/workflows/upsert-product-attribute-values.js +0 -21
  788. package/.medusa/server/src/workflows/product-edit/steps/retrieve-product-with-change.d.ts +0 -5
  789. package/.medusa/server/src/workflows/product-edit/steps/retrieve-product-with-change.js +0 -11
  790. package/.medusa/server/src/workflows/product-edit/steps/validate-product-change-pending.d.ts +0 -11
  791. package/.medusa/server/src/workflows/product-edit/steps/validate-product-change-pending.js +0 -21
  792. package/.medusa/server/src/workflows/product-edit/workflows/cancel-product-edit.d.ts +0 -19
  793. package/.medusa/server/src/workflows/product-edit/workflows/cancel-product-edit.js +0 -40
  794. package/.medusa/server/src/workflows/product-edit/workflows/confirm-product-edit.d.ts +0 -21
  795. package/.medusa/server/src/workflows/product-edit/workflows/confirm-product-edit.js +0 -44
  796. package/.medusa/server/src/workflows/product-edit/workflows/decline-product-edit.d.ts +0 -16
  797. package/.medusa/server/src/workflows/product-edit/workflows/decline-product-edit.js +0 -42
  798. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-add-attribute.d.ts +0 -19
  799. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-add-attribute.js +0 -66
  800. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-add-variant.d.ts +0 -17
  801. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-add-variant.js +0 -58
  802. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-remove-attribute.d.ts +0 -17
  803. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-remove-attribute.js +0 -62
  804. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-remove-variant.d.ts +0 -16
  805. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-remove-variant.js +0 -68
  806. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-variant.d.ts +0 -21
  807. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-variant.js +0 -89
  808. package/.medusa/server/src/workflows/subscription/steps/create-subscription-overrides.d.ts +0 -31
  809. package/.medusa/server/src/workflows/subscription/steps/create-subscription-overrides.js +0 -17
  810. package/.medusa/server/src/workflows/subscription/steps/create-subscription-plans.d.ts +0 -31
  811. package/.medusa/server/src/workflows/subscription/steps/create-subscription-plans.js +0 -17
  812. package/.medusa/server/src/workflows/subscription/steps/delete-subscription-overrides.d.ts +0 -2
  813. package/.medusa/server/src/workflows/subscription/steps/delete-subscription-overrides.js +0 -17
  814. package/.medusa/server/src/workflows/subscription/steps/delete-subscription-plans.d.ts +0 -2
  815. package/.medusa/server/src/workflows/subscription/steps/delete-subscription-plans.js +0 -17
  816. package/.medusa/server/src/workflows/subscription/steps/index.d.ts +0 -6
  817. package/.medusa/server/src/workflows/subscription/steps/index.js +0 -23
  818. package/.medusa/server/src/workflows/subscription/steps/update-subscription-overrides.d.ts +0 -31
  819. package/.medusa/server/src/workflows/subscription/steps/update-subscription-overrides.js +0 -17
  820. package/.medusa/server/src/workflows/subscription/steps/update-subscription-plans.d.ts +0 -31
  821. package/.medusa/server/src/workflows/subscription/steps/update-subscription-plans.js +0 -17
  822. package/.medusa/server/src/workflows/subscription/workflows/create-subscription-overrides.d.ts +0 -31
  823. package/.medusa/server/src/workflows/subscription/workflows/create-subscription-overrides.js +0 -11
  824. package/.medusa/server/src/workflows/subscription/workflows/create-subscription-plans.d.ts +0 -31
  825. package/.medusa/server/src/workflows/subscription/workflows/create-subscription-plans.js +0 -11
  826. package/.medusa/server/src/workflows/subscription/workflows/delete-subscription-overrides.d.ts +0 -5
  827. package/.medusa/server/src/workflows/subscription/workflows/delete-subscription-overrides.js +0 -11
  828. package/.medusa/server/src/workflows/subscription/workflows/delete-subscription-plans.d.ts +0 -5
  829. package/.medusa/server/src/workflows/subscription/workflows/delete-subscription-plans.js +0 -11
  830. package/.medusa/server/src/workflows/subscription/workflows/index.d.ts +0 -6
  831. package/.medusa/server/src/workflows/subscription/workflows/index.js +0 -23
  832. package/.medusa/server/src/workflows/subscription/workflows/update-subscription-overrides.d.ts +0 -31
  833. package/.medusa/server/src/workflows/subscription/workflows/update-subscription-overrides.js +0 -11
  834. package/.medusa/server/src/workflows/subscription/workflows/update-subscription-plans.d.ts +0 -31
  835. package/.medusa/server/src/workflows/subscription/workflows/update-subscription-plans.js +0 -11
  836. package/.medusa/server/src/workflows/utils/override-workflow.d.ts +0 -12
  837. package/.medusa/server/src/workflows/utils/override-workflow.js +0 -21
  838. /package/.medusa/server/src/links/{brand-seller-link.d.ts → offer-price-link.d.ts} +0 -0
  839. /package/.medusa/server/src/links/{offer-price-set-link.d.ts → product-variant-attribute-link.d.ts} +0 -0
  840. /package/.medusa/server/src/workflows/cart/hooks/{validate-add-to-cart-stock.d.ts → before-refreshing-payment-collection.d.ts} +0 -0
  841. /package/.medusa/server/src/workflows/cart/hooks/{validate-update-line-item-stock.d.ts → set-pricing-context.d.ts} +0 -0
@@ -1,1548 +0,0 @@
1
- import { CreateProductCategoryDTO } from "@mercurjs/types";
2
- export declare const createProductCategoriesStep: import("@medusajs/framework/workflows-sdk").StepFunction<CreateProductCategoryDTO[], {
3
- id: string;
4
- name: string;
5
- description: string;
6
- handle: string;
7
- mpath: string;
8
- is_active: boolean;
9
- is_internal: boolean;
10
- is_restricted: boolean;
11
- rank: number;
12
- metadata: Record<string, unknown> | null;
13
- parent_category: /*elided*/ any;
14
- category_children: /*elided*/ any[];
15
- products: {
16
- id: string;
17
- title: string;
18
- handle: string;
19
- subtitle: string | null;
20
- description: string | null;
21
- is_giftcard: boolean;
22
- thumbnail: string | null;
23
- weight: string | null;
24
- length: string | null;
25
- height: string | null;
26
- width: string | null;
27
- origin_country: string | null;
28
- hs_code: string | null;
29
- mid_code: string | null;
30
- material: string | null;
31
- discountable: boolean;
32
- external_id: string | null;
33
- metadata: Record<string, unknown> | null;
34
- status: import("@mercurjs/types").ProductStatus;
35
- is_restricted: boolean;
36
- created_by: string | null;
37
- created_by_actor: string | null;
38
- variants: {
39
- id: string;
40
- title: string;
41
- barcode: string | null;
42
- sku: string | null;
43
- ean: string | null;
44
- upc: string | null;
45
- hs_code: string | null;
46
- origin_country: string | null;
47
- mid_code: string | null;
48
- material: string | null;
49
- weight: number | null;
50
- length: number | null;
51
- height: number | null;
52
- width: number | null;
53
- metadata: Record<string, unknown> | null;
54
- variant_rank: number | null;
55
- thumbnail: string | null;
56
- product: /*elided*/ any;
57
- images: {
58
- id: string;
59
- url: string;
60
- metadata: Record<string, unknown> | null;
61
- rank: number;
62
- product: /*elided*/ any;
63
- variants: /*elided*/ any[];
64
- created_at: Date;
65
- updated_at: Date;
66
- deleted_at: Date | null;
67
- product_id: string;
68
- }[];
69
- attribute_values: {
70
- id: string;
71
- handle: string | null;
72
- name: string;
73
- rank: number;
74
- is_active: boolean;
75
- metadata: Record<string, unknown> | null;
76
- attribute: {
77
- id: string;
78
- handle: string | null;
79
- name: string;
80
- description: string | null;
81
- type: import("@mercurjs/types").AttributeType;
82
- is_required: boolean;
83
- is_filterable: boolean;
84
- is_variant_axis: boolean;
85
- rank: number;
86
- is_active: boolean;
87
- created_by: string | null;
88
- metadata: Record<string, unknown> | null;
89
- values: /*elided*/ any[];
90
- categories: /*elided*/ any[];
91
- product: /*elided*/ any;
92
- variant_products: /*elided*/ any[];
93
- created_at: Date;
94
- updated_at: Date;
95
- deleted_at: Date | null;
96
- product_id: string | null;
97
- };
98
- variants: /*elided*/ any[];
99
- products: /*elided*/ any[];
100
- created_at: Date;
101
- updated_at: Date;
102
- deleted_at: Date | null;
103
- attribute_id: string;
104
- }[];
105
- raw_weight: Record<string, unknown> | null;
106
- raw_length: Record<string, unknown> | null;
107
- raw_height: Record<string, unknown> | null;
108
- raw_width: Record<string, unknown> | null;
109
- raw_variant_rank: Record<string, unknown> | null;
110
- created_at: Date;
111
- updated_at: Date;
112
- deleted_at: Date | null;
113
- product_id: string | null;
114
- }[];
115
- type: {
116
- id: string;
117
- value: string;
118
- metadata: Record<string, unknown> | null;
119
- products: /*elided*/ any[];
120
- created_at: Date;
121
- updated_at: Date;
122
- deleted_at: Date | null;
123
- };
124
- brand: {
125
- id: string;
126
- name: string;
127
- handle: string;
128
- is_restricted: boolean;
129
- metadata: Record<string, unknown> | null;
130
- products: /*elided*/ any[];
131
- created_at: Date;
132
- updated_at: Date;
133
- deleted_at: Date | null;
134
- };
135
- tags: {
136
- id: string;
137
- value: string;
138
- metadata: Record<string, unknown> | null;
139
- products: /*elided*/ any[];
140
- created_at: Date;
141
- updated_at: Date;
142
- deleted_at: Date | null;
143
- }[];
144
- images: {
145
- id: string;
146
- url: string;
147
- metadata: Record<string, unknown> | null;
148
- rank: number;
149
- product: /*elided*/ any;
150
- variants: {
151
- id: string;
152
- title: string;
153
- barcode: string | null;
154
- sku: string | null;
155
- ean: string | null;
156
- upc: string | null;
157
- hs_code: string | null;
158
- origin_country: string | null;
159
- mid_code: string | null;
160
- material: string | null;
161
- weight: number | null;
162
- length: number | null;
163
- height: number | null;
164
- width: number | null;
165
- metadata: Record<string, unknown> | null;
166
- variant_rank: number | null;
167
- thumbnail: string | null;
168
- product: /*elided*/ any;
169
- images: /*elided*/ any[];
170
- attribute_values: {
171
- id: string;
172
- handle: string | null;
173
- name: string;
174
- rank: number;
175
- is_active: boolean;
176
- metadata: Record<string, unknown> | null;
177
- attribute: {
178
- id: string;
179
- handle: string | null;
180
- name: string;
181
- description: string | null;
182
- type: import("@mercurjs/types").AttributeType;
183
- is_required: boolean;
184
- is_filterable: boolean;
185
- is_variant_axis: boolean;
186
- rank: number;
187
- is_active: boolean;
188
- created_by: string | null;
189
- metadata: Record<string, unknown> | null;
190
- values: /*elided*/ any[];
191
- categories: /*elided*/ any[];
192
- product: /*elided*/ any;
193
- variant_products: /*elided*/ any[];
194
- created_at: Date;
195
- updated_at: Date;
196
- deleted_at: Date | null;
197
- product_id: string | null;
198
- };
199
- variants: /*elided*/ any[];
200
- products: /*elided*/ any[];
201
- created_at: Date;
202
- updated_at: Date;
203
- deleted_at: Date | null;
204
- attribute_id: string;
205
- }[];
206
- raw_weight: Record<string, unknown> | null;
207
- raw_length: Record<string, unknown> | null;
208
- raw_height: Record<string, unknown> | null;
209
- raw_width: Record<string, unknown> | null;
210
- raw_variant_rank: Record<string, unknown> | null;
211
- created_at: Date;
212
- updated_at: Date;
213
- deleted_at: Date | null;
214
- product_id: string | null;
215
- }[];
216
- created_at: Date;
217
- updated_at: Date;
218
- deleted_at: Date | null;
219
- product_id: string;
220
- }[];
221
- collection: {
222
- id: string;
223
- title: string;
224
- handle: string;
225
- metadata: Record<string, unknown> | null;
226
- products: /*elided*/ any[];
227
- created_at: Date;
228
- updated_at: Date;
229
- deleted_at: Date | null;
230
- };
231
- categories: /*elided*/ any[];
232
- variant_attributes: {
233
- id: string;
234
- handle: string | null;
235
- name: string;
236
- description: string | null;
237
- type: import("@mercurjs/types").AttributeType;
238
- is_required: boolean;
239
- is_filterable: boolean;
240
- is_variant_axis: boolean;
241
- rank: number;
242
- is_active: boolean;
243
- created_by: string | null;
244
- metadata: Record<string, unknown> | null;
245
- values: {
246
- id: string;
247
- handle: string | null;
248
- name: string;
249
- rank: number;
250
- is_active: boolean;
251
- metadata: Record<string, unknown> | null;
252
- attribute: /*elided*/ any;
253
- variants: {
254
- id: string;
255
- title: string;
256
- barcode: string | null;
257
- sku: string | null;
258
- ean: string | null;
259
- upc: string | null;
260
- hs_code: string | null;
261
- origin_country: string | null;
262
- mid_code: string | null;
263
- material: string | null;
264
- weight: number | null;
265
- length: number | null;
266
- height: number | null;
267
- width: number | null;
268
- metadata: Record<string, unknown> | null;
269
- variant_rank: number | null;
270
- thumbnail: string | null;
271
- product: /*elided*/ any;
272
- images: {
273
- id: string;
274
- url: string;
275
- metadata: Record<string, unknown> | null;
276
- rank: number;
277
- product: /*elided*/ any;
278
- variants: /*elided*/ any[];
279
- created_at: Date;
280
- updated_at: Date;
281
- deleted_at: Date | null;
282
- product_id: string;
283
- }[];
284
- attribute_values: /*elided*/ any[];
285
- raw_weight: Record<string, unknown> | null;
286
- raw_length: Record<string, unknown> | null;
287
- raw_height: Record<string, unknown> | null;
288
- raw_width: Record<string, unknown> | null;
289
- raw_variant_rank: Record<string, unknown> | null;
290
- created_at: Date;
291
- updated_at: Date;
292
- deleted_at: Date | null;
293
- product_id: string | null;
294
- }[];
295
- products: /*elided*/ any[];
296
- created_at: Date;
297
- updated_at: Date;
298
- deleted_at: Date | null;
299
- attribute_id: string;
300
- }[];
301
- categories: /*elided*/ any[];
302
- product: /*elided*/ any;
303
- variant_products: /*elided*/ any[];
304
- created_at: Date;
305
- updated_at: Date;
306
- deleted_at: Date | null;
307
- product_id: string | null;
308
- }[];
309
- custom_attributes: {
310
- id: string;
311
- handle: string | null;
312
- name: string;
313
- description: string | null;
314
- type: import("@mercurjs/types").AttributeType;
315
- is_required: boolean;
316
- is_filterable: boolean;
317
- is_variant_axis: boolean;
318
- rank: number;
319
- is_active: boolean;
320
- created_by: string | null;
321
- metadata: Record<string, unknown> | null;
322
- values: {
323
- id: string;
324
- handle: string | null;
325
- name: string;
326
- rank: number;
327
- is_active: boolean;
328
- metadata: Record<string, unknown> | null;
329
- attribute: /*elided*/ any;
330
- variants: {
331
- id: string;
332
- title: string;
333
- barcode: string | null;
334
- sku: string | null;
335
- ean: string | null;
336
- upc: string | null;
337
- hs_code: string | null;
338
- origin_country: string | null;
339
- mid_code: string | null;
340
- material: string | null;
341
- weight: number | null;
342
- length: number | null;
343
- height: number | null;
344
- width: number | null;
345
- metadata: Record<string, unknown> | null;
346
- variant_rank: number | null;
347
- thumbnail: string | null;
348
- product: /*elided*/ any;
349
- images: {
350
- id: string;
351
- url: string;
352
- metadata: Record<string, unknown> | null;
353
- rank: number;
354
- product: /*elided*/ any;
355
- variants: /*elided*/ any[];
356
- created_at: Date;
357
- updated_at: Date;
358
- deleted_at: Date | null;
359
- product_id: string;
360
- }[];
361
- attribute_values: /*elided*/ any[];
362
- raw_weight: Record<string, unknown> | null;
363
- raw_length: Record<string, unknown> | null;
364
- raw_height: Record<string, unknown> | null;
365
- raw_width: Record<string, unknown> | null;
366
- raw_variant_rank: Record<string, unknown> | null;
367
- created_at: Date;
368
- updated_at: Date;
369
- deleted_at: Date | null;
370
- product_id: string | null;
371
- }[];
372
- products: /*elided*/ any[];
373
- created_at: Date;
374
- updated_at: Date;
375
- deleted_at: Date | null;
376
- attribute_id: string;
377
- }[];
378
- categories: /*elided*/ any[];
379
- product: /*elided*/ any;
380
- variant_products: /*elided*/ any[];
381
- created_at: Date;
382
- updated_at: Date;
383
- deleted_at: Date | null;
384
- product_id: string | null;
385
- }[];
386
- attribute_values: {
387
- id: string;
388
- handle: string | null;
389
- name: string;
390
- rank: number;
391
- is_active: boolean;
392
- metadata: Record<string, unknown> | null;
393
- attribute: {
394
- id: string;
395
- handle: string | null;
396
- name: string;
397
- description: string | null;
398
- type: import("@mercurjs/types").AttributeType;
399
- is_required: boolean;
400
- is_filterable: boolean;
401
- is_variant_axis: boolean;
402
- rank: number;
403
- is_active: boolean;
404
- created_by: string | null;
405
- metadata: Record<string, unknown> | null;
406
- values: /*elided*/ any[];
407
- categories: /*elided*/ any[];
408
- product: /*elided*/ any;
409
- variant_products: /*elided*/ any[];
410
- created_at: Date;
411
- updated_at: Date;
412
- deleted_at: Date | null;
413
- product_id: string | null;
414
- };
415
- variants: {
416
- id: string;
417
- title: string;
418
- barcode: string | null;
419
- sku: string | null;
420
- ean: string | null;
421
- upc: string | null;
422
- hs_code: string | null;
423
- origin_country: string | null;
424
- mid_code: string | null;
425
- material: string | null;
426
- weight: number | null;
427
- length: number | null;
428
- height: number | null;
429
- width: number | null;
430
- metadata: Record<string, unknown> | null;
431
- variant_rank: number | null;
432
- thumbnail: string | null;
433
- product: /*elided*/ any;
434
- images: {
435
- id: string;
436
- url: string;
437
- metadata: Record<string, unknown> | null;
438
- rank: number;
439
- product: /*elided*/ any;
440
- variants: /*elided*/ any[];
441
- created_at: Date;
442
- updated_at: Date;
443
- deleted_at: Date | null;
444
- product_id: string;
445
- }[];
446
- attribute_values: /*elided*/ any[];
447
- raw_weight: Record<string, unknown> | null;
448
- raw_length: Record<string, unknown> | null;
449
- raw_height: Record<string, unknown> | null;
450
- raw_width: Record<string, unknown> | null;
451
- raw_variant_rank: Record<string, unknown> | null;
452
- created_at: Date;
453
- updated_at: Date;
454
- deleted_at: Date | null;
455
- product_id: string | null;
456
- }[];
457
- products: /*elided*/ any[];
458
- created_at: Date;
459
- updated_at: Date;
460
- deleted_at: Date | null;
461
- attribute_id: string;
462
- }[];
463
- changes: {
464
- id: string;
465
- product: /*elided*/ any;
466
- status: import("@mercurjs/types").ProductChangeStatus;
467
- internal_note: string | null;
468
- external_note: string | null;
469
- created_by: string | null;
470
- confirmed_by: string | null;
471
- confirmed_at: Date | null;
472
- declined_by: string | null;
473
- declined_at: Date | null;
474
- declined_reason: string | null;
475
- canceled_by: string | null;
476
- canceled_at: Date | null;
477
- metadata: Record<string, unknown> | null;
478
- actions: {
479
- id: string;
480
- product_id: string;
481
- ordering: number;
482
- action: string;
483
- details: Record<string, unknown>;
484
- internal_note: string | null;
485
- applied: boolean;
486
- product_change: /*elided*/ any;
487
- created_at: Date;
488
- updated_at: Date;
489
- deleted_at: Date | null;
490
- product_change_id: string | null;
491
- }[];
492
- created_at: Date;
493
- updated_at: Date;
494
- deleted_at: Date | null;
495
- product_id: string;
496
- }[];
497
- created_at: Date;
498
- updated_at: Date;
499
- deleted_at: Date | null;
500
- type_id: string | null;
501
- brand_id: string | null;
502
- collection_id: string | null;
503
- }[];
504
- attributes: {
505
- id: string;
506
- handle: string | null;
507
- name: string;
508
- description: string | null;
509
- type: import("@mercurjs/types").AttributeType;
510
- is_required: boolean;
511
- is_filterable: boolean;
512
- is_variant_axis: boolean;
513
- rank: number;
514
- is_active: boolean;
515
- created_by: string | null;
516
- metadata: Record<string, unknown> | null;
517
- values: {
518
- id: string;
519
- handle: string | null;
520
- name: string;
521
- rank: number;
522
- is_active: boolean;
523
- metadata: Record<string, unknown> | null;
524
- attribute: /*elided*/ any;
525
- variants: {
526
- id: string;
527
- title: string;
528
- barcode: string | null;
529
- sku: string | null;
530
- ean: string | null;
531
- upc: string | null;
532
- hs_code: string | null;
533
- origin_country: string | null;
534
- mid_code: string | null;
535
- material: string | null;
536
- weight: number | null;
537
- length: number | null;
538
- height: number | null;
539
- width: number | null;
540
- metadata: Record<string, unknown> | null;
541
- variant_rank: number | null;
542
- thumbnail: string | null;
543
- product: {
544
- id: string;
545
- title: string;
546
- handle: string;
547
- subtitle: string | null;
548
- description: string | null;
549
- is_giftcard: boolean;
550
- thumbnail: string | null;
551
- weight: string | null;
552
- length: string | null;
553
- height: string | null;
554
- width: string | null;
555
- origin_country: string | null;
556
- hs_code: string | null;
557
- mid_code: string | null;
558
- material: string | null;
559
- discountable: boolean;
560
- external_id: string | null;
561
- metadata: Record<string, unknown> | null;
562
- status: import("@mercurjs/types").ProductStatus;
563
- is_restricted: boolean;
564
- created_by: string | null;
565
- created_by_actor: string | null;
566
- variants: /*elided*/ any[];
567
- type: {
568
- id: string;
569
- value: string;
570
- metadata: Record<string, unknown> | null;
571
- products: /*elided*/ any[];
572
- created_at: Date;
573
- updated_at: Date;
574
- deleted_at: Date | null;
575
- };
576
- brand: {
577
- id: string;
578
- name: string;
579
- handle: string;
580
- is_restricted: boolean;
581
- metadata: Record<string, unknown> | null;
582
- products: /*elided*/ any[];
583
- created_at: Date;
584
- updated_at: Date;
585
- deleted_at: Date | null;
586
- };
587
- tags: {
588
- id: string;
589
- value: string;
590
- metadata: Record<string, unknown> | null;
591
- products: /*elided*/ any[];
592
- created_at: Date;
593
- updated_at: Date;
594
- deleted_at: Date | null;
595
- }[];
596
- images: {
597
- id: string;
598
- url: string;
599
- metadata: Record<string, unknown> | null;
600
- rank: number;
601
- product: /*elided*/ any;
602
- variants: /*elided*/ any[];
603
- created_at: Date;
604
- updated_at: Date;
605
- deleted_at: Date | null;
606
- product_id: string;
607
- }[];
608
- collection: {
609
- id: string;
610
- title: string;
611
- handle: string;
612
- metadata: Record<string, unknown> | null;
613
- products: /*elided*/ any[];
614
- created_at: Date;
615
- updated_at: Date;
616
- deleted_at: Date | null;
617
- };
618
- categories: /*elided*/ any[];
619
- variant_attributes: /*elided*/ any[];
620
- custom_attributes: /*elided*/ any[];
621
- attribute_values: /*elided*/ any[];
622
- changes: {
623
- id: string;
624
- product: /*elided*/ any;
625
- status: import("@mercurjs/types").ProductChangeStatus;
626
- internal_note: string | null;
627
- external_note: string | null;
628
- created_by: string | null;
629
- confirmed_by: string | null;
630
- confirmed_at: Date | null;
631
- declined_by: string | null;
632
- declined_at: Date | null;
633
- declined_reason: string | null;
634
- canceled_by: string | null;
635
- canceled_at: Date | null;
636
- metadata: Record<string, unknown> | null;
637
- actions: {
638
- id: string;
639
- product_id: string;
640
- ordering: number;
641
- action: string;
642
- details: Record<string, unknown>;
643
- internal_note: string | null;
644
- applied: boolean;
645
- product_change: /*elided*/ any;
646
- created_at: Date;
647
- updated_at: Date;
648
- deleted_at: Date | null;
649
- product_change_id: string | null;
650
- }[];
651
- created_at: Date;
652
- updated_at: Date;
653
- deleted_at: Date | null;
654
- product_id: string;
655
- }[];
656
- created_at: Date;
657
- updated_at: Date;
658
- deleted_at: Date | null;
659
- type_id: string | null;
660
- brand_id: string | null;
661
- collection_id: string | null;
662
- };
663
- images: {
664
- id: string;
665
- url: string;
666
- metadata: Record<string, unknown> | null;
667
- rank: number;
668
- product: {
669
- id: string;
670
- title: string;
671
- handle: string;
672
- subtitle: string | null;
673
- description: string | null;
674
- is_giftcard: boolean;
675
- thumbnail: string | null;
676
- weight: string | null;
677
- length: string | null;
678
- height: string | null;
679
- width: string | null;
680
- origin_country: string | null;
681
- hs_code: string | null;
682
- mid_code: string | null;
683
- material: string | null;
684
- discountable: boolean;
685
- external_id: string | null;
686
- metadata: Record<string, unknown> | null;
687
- status: import("@mercurjs/types").ProductStatus;
688
- is_restricted: boolean;
689
- created_by: string | null;
690
- created_by_actor: string | null;
691
- variants: /*elided*/ any[];
692
- type: {
693
- id: string;
694
- value: string;
695
- metadata: Record<string, unknown> | null;
696
- products: /*elided*/ any[];
697
- created_at: Date;
698
- updated_at: Date;
699
- deleted_at: Date | null;
700
- };
701
- brand: {
702
- id: string;
703
- name: string;
704
- handle: string;
705
- is_restricted: boolean;
706
- metadata: Record<string, unknown> | null;
707
- products: /*elided*/ any[];
708
- created_at: Date;
709
- updated_at: Date;
710
- deleted_at: Date | null;
711
- };
712
- tags: {
713
- id: string;
714
- value: string;
715
- metadata: Record<string, unknown> | null;
716
- products: /*elided*/ any[];
717
- created_at: Date;
718
- updated_at: Date;
719
- deleted_at: Date | null;
720
- }[];
721
- images: /*elided*/ any[];
722
- collection: {
723
- id: string;
724
- title: string;
725
- handle: string;
726
- metadata: Record<string, unknown> | null;
727
- products: /*elided*/ any[];
728
- created_at: Date;
729
- updated_at: Date;
730
- deleted_at: Date | null;
731
- };
732
- categories: /*elided*/ any[];
733
- variant_attributes: /*elided*/ any[];
734
- custom_attributes: /*elided*/ any[];
735
- attribute_values: /*elided*/ any[];
736
- changes: {
737
- id: string;
738
- product: /*elided*/ any;
739
- status: import("@mercurjs/types").ProductChangeStatus;
740
- internal_note: string | null;
741
- external_note: string | null;
742
- created_by: string | null;
743
- confirmed_by: string | null;
744
- confirmed_at: Date | null;
745
- declined_by: string | null;
746
- declined_at: Date | null;
747
- declined_reason: string | null;
748
- canceled_by: string | null;
749
- canceled_at: Date | null;
750
- metadata: Record<string, unknown> | null;
751
- actions: {
752
- id: string;
753
- product_id: string;
754
- ordering: number;
755
- action: string;
756
- details: Record<string, unknown>;
757
- internal_note: string | null;
758
- applied: boolean;
759
- product_change: /*elided*/ any;
760
- created_at: Date;
761
- updated_at: Date;
762
- deleted_at: Date | null;
763
- product_change_id: string | null;
764
- }[];
765
- created_at: Date;
766
- updated_at: Date;
767
- deleted_at: Date | null;
768
- product_id: string;
769
- }[];
770
- created_at: Date;
771
- updated_at: Date;
772
- deleted_at: Date | null;
773
- type_id: string | null;
774
- brand_id: string | null;
775
- collection_id: string | null;
776
- };
777
- variants: /*elided*/ any[];
778
- created_at: Date;
779
- updated_at: Date;
780
- deleted_at: Date | null;
781
- product_id: string;
782
- }[];
783
- attribute_values: /*elided*/ any[];
784
- raw_weight: Record<string, unknown> | null;
785
- raw_length: Record<string, unknown> | null;
786
- raw_height: Record<string, unknown> | null;
787
- raw_width: Record<string, unknown> | null;
788
- raw_variant_rank: Record<string, unknown> | null;
789
- created_at: Date;
790
- updated_at: Date;
791
- deleted_at: Date | null;
792
- product_id: string | null;
793
- }[];
794
- products: {
795
- id: string;
796
- title: string;
797
- handle: string;
798
- subtitle: string | null;
799
- description: string | null;
800
- is_giftcard: boolean;
801
- thumbnail: string | null;
802
- weight: string | null;
803
- length: string | null;
804
- height: string | null;
805
- width: string | null;
806
- origin_country: string | null;
807
- hs_code: string | null;
808
- mid_code: string | null;
809
- material: string | null;
810
- discountable: boolean;
811
- external_id: string | null;
812
- metadata: Record<string, unknown> | null;
813
- status: import("@mercurjs/types").ProductStatus;
814
- is_restricted: boolean;
815
- created_by: string | null;
816
- created_by_actor: string | null;
817
- variants: {
818
- id: string;
819
- title: string;
820
- barcode: string | null;
821
- sku: string | null;
822
- ean: string | null;
823
- upc: string | null;
824
- hs_code: string | null;
825
- origin_country: string | null;
826
- mid_code: string | null;
827
- material: string | null;
828
- weight: number | null;
829
- length: number | null;
830
- height: number | null;
831
- width: number | null;
832
- metadata: Record<string, unknown> | null;
833
- variant_rank: number | null;
834
- thumbnail: string | null;
835
- product: /*elided*/ any;
836
- images: {
837
- id: string;
838
- url: string;
839
- metadata: Record<string, unknown> | null;
840
- rank: number;
841
- product: /*elided*/ any;
842
- variants: /*elided*/ any[];
843
- created_at: Date;
844
- updated_at: Date;
845
- deleted_at: Date | null;
846
- product_id: string;
847
- }[];
848
- attribute_values: /*elided*/ any[];
849
- raw_weight: Record<string, unknown> | null;
850
- raw_length: Record<string, unknown> | null;
851
- raw_height: Record<string, unknown> | null;
852
- raw_width: Record<string, unknown> | null;
853
- raw_variant_rank: Record<string, unknown> | null;
854
- created_at: Date;
855
- updated_at: Date;
856
- deleted_at: Date | null;
857
- product_id: string | null;
858
- }[];
859
- type: {
860
- id: string;
861
- value: string;
862
- metadata: Record<string, unknown> | null;
863
- products: /*elided*/ any[];
864
- created_at: Date;
865
- updated_at: Date;
866
- deleted_at: Date | null;
867
- };
868
- brand: {
869
- id: string;
870
- name: string;
871
- handle: string;
872
- is_restricted: boolean;
873
- metadata: Record<string, unknown> | null;
874
- products: /*elided*/ any[];
875
- created_at: Date;
876
- updated_at: Date;
877
- deleted_at: Date | null;
878
- };
879
- tags: {
880
- id: string;
881
- value: string;
882
- metadata: Record<string, unknown> | null;
883
- products: /*elided*/ any[];
884
- created_at: Date;
885
- updated_at: Date;
886
- deleted_at: Date | null;
887
- }[];
888
- images: {
889
- id: string;
890
- url: string;
891
- metadata: Record<string, unknown> | null;
892
- rank: number;
893
- product: /*elided*/ any;
894
- variants: {
895
- id: string;
896
- title: string;
897
- barcode: string | null;
898
- sku: string | null;
899
- ean: string | null;
900
- upc: string | null;
901
- hs_code: string | null;
902
- origin_country: string | null;
903
- mid_code: string | null;
904
- material: string | null;
905
- weight: number | null;
906
- length: number | null;
907
- height: number | null;
908
- width: number | null;
909
- metadata: Record<string, unknown> | null;
910
- variant_rank: number | null;
911
- thumbnail: string | null;
912
- product: /*elided*/ any;
913
- images: /*elided*/ any[];
914
- attribute_values: /*elided*/ any[];
915
- raw_weight: Record<string, unknown> | null;
916
- raw_length: Record<string, unknown> | null;
917
- raw_height: Record<string, unknown> | null;
918
- raw_width: Record<string, unknown> | null;
919
- raw_variant_rank: Record<string, unknown> | null;
920
- created_at: Date;
921
- updated_at: Date;
922
- deleted_at: Date | null;
923
- product_id: string | null;
924
- }[];
925
- created_at: Date;
926
- updated_at: Date;
927
- deleted_at: Date | null;
928
- product_id: string;
929
- }[];
930
- collection: {
931
- id: string;
932
- title: string;
933
- handle: string;
934
- metadata: Record<string, unknown> | null;
935
- products: /*elided*/ any[];
936
- created_at: Date;
937
- updated_at: Date;
938
- deleted_at: Date | null;
939
- };
940
- categories: /*elided*/ any[];
941
- variant_attributes: /*elided*/ any[];
942
- custom_attributes: /*elided*/ any[];
943
- attribute_values: /*elided*/ any[];
944
- changes: {
945
- id: string;
946
- product: /*elided*/ any;
947
- status: import("@mercurjs/types").ProductChangeStatus;
948
- internal_note: string | null;
949
- external_note: string | null;
950
- created_by: string | null;
951
- confirmed_by: string | null;
952
- confirmed_at: Date | null;
953
- declined_by: string | null;
954
- declined_at: Date | null;
955
- declined_reason: string | null;
956
- canceled_by: string | null;
957
- canceled_at: Date | null;
958
- metadata: Record<string, unknown> | null;
959
- actions: {
960
- id: string;
961
- product_id: string;
962
- ordering: number;
963
- action: string;
964
- details: Record<string, unknown>;
965
- internal_note: string | null;
966
- applied: boolean;
967
- product_change: /*elided*/ any;
968
- created_at: Date;
969
- updated_at: Date;
970
- deleted_at: Date | null;
971
- product_change_id: string | null;
972
- }[];
973
- created_at: Date;
974
- updated_at: Date;
975
- deleted_at: Date | null;
976
- product_id: string;
977
- }[];
978
- created_at: Date;
979
- updated_at: Date;
980
- deleted_at: Date | null;
981
- type_id: string | null;
982
- brand_id: string | null;
983
- collection_id: string | null;
984
- }[];
985
- created_at: Date;
986
- updated_at: Date;
987
- deleted_at: Date | null;
988
- attribute_id: string;
989
- }[];
990
- categories: /*elided*/ any[];
991
- product: {
992
- id: string;
993
- title: string;
994
- handle: string;
995
- subtitle: string | null;
996
- description: string | null;
997
- is_giftcard: boolean;
998
- thumbnail: string | null;
999
- weight: string | null;
1000
- length: string | null;
1001
- height: string | null;
1002
- width: string | null;
1003
- origin_country: string | null;
1004
- hs_code: string | null;
1005
- mid_code: string | null;
1006
- material: string | null;
1007
- discountable: boolean;
1008
- external_id: string | null;
1009
- metadata: Record<string, unknown> | null;
1010
- status: import("@mercurjs/types").ProductStatus;
1011
- is_restricted: boolean;
1012
- created_by: string | null;
1013
- created_by_actor: string | null;
1014
- variants: {
1015
- id: string;
1016
- title: string;
1017
- barcode: string | null;
1018
- sku: string | null;
1019
- ean: string | null;
1020
- upc: string | null;
1021
- hs_code: string | null;
1022
- origin_country: string | null;
1023
- mid_code: string | null;
1024
- material: string | null;
1025
- weight: number | null;
1026
- length: number | null;
1027
- height: number | null;
1028
- width: number | null;
1029
- metadata: Record<string, unknown> | null;
1030
- variant_rank: number | null;
1031
- thumbnail: string | null;
1032
- product: /*elided*/ any;
1033
- images: {
1034
- id: string;
1035
- url: string;
1036
- metadata: Record<string, unknown> | null;
1037
- rank: number;
1038
- product: /*elided*/ any;
1039
- variants: /*elided*/ any[];
1040
- created_at: Date;
1041
- updated_at: Date;
1042
- deleted_at: Date | null;
1043
- product_id: string;
1044
- }[];
1045
- attribute_values: {
1046
- id: string;
1047
- handle: string | null;
1048
- name: string;
1049
- rank: number;
1050
- is_active: boolean;
1051
- metadata: Record<string, unknown> | null;
1052
- attribute: /*elided*/ any;
1053
- variants: /*elided*/ any[];
1054
- products: /*elided*/ any[];
1055
- created_at: Date;
1056
- updated_at: Date;
1057
- deleted_at: Date | null;
1058
- attribute_id: string;
1059
- }[];
1060
- raw_weight: Record<string, unknown> | null;
1061
- raw_length: Record<string, unknown> | null;
1062
- raw_height: Record<string, unknown> | null;
1063
- raw_width: Record<string, unknown> | null;
1064
- raw_variant_rank: Record<string, unknown> | null;
1065
- created_at: Date;
1066
- updated_at: Date;
1067
- deleted_at: Date | null;
1068
- product_id: string | null;
1069
- }[];
1070
- type: {
1071
- id: string;
1072
- value: string;
1073
- metadata: Record<string, unknown> | null;
1074
- products: /*elided*/ any[];
1075
- created_at: Date;
1076
- updated_at: Date;
1077
- deleted_at: Date | null;
1078
- };
1079
- brand: {
1080
- id: string;
1081
- name: string;
1082
- handle: string;
1083
- is_restricted: boolean;
1084
- metadata: Record<string, unknown> | null;
1085
- products: /*elided*/ any[];
1086
- created_at: Date;
1087
- updated_at: Date;
1088
- deleted_at: Date | null;
1089
- };
1090
- tags: {
1091
- id: string;
1092
- value: string;
1093
- metadata: Record<string, unknown> | null;
1094
- products: /*elided*/ any[];
1095
- created_at: Date;
1096
- updated_at: Date;
1097
- deleted_at: Date | null;
1098
- }[];
1099
- images: {
1100
- id: string;
1101
- url: string;
1102
- metadata: Record<string, unknown> | null;
1103
- rank: number;
1104
- product: /*elided*/ any;
1105
- variants: {
1106
- id: string;
1107
- title: string;
1108
- barcode: string | null;
1109
- sku: string | null;
1110
- ean: string | null;
1111
- upc: string | null;
1112
- hs_code: string | null;
1113
- origin_country: string | null;
1114
- mid_code: string | null;
1115
- material: string | null;
1116
- weight: number | null;
1117
- length: number | null;
1118
- height: number | null;
1119
- width: number | null;
1120
- metadata: Record<string, unknown> | null;
1121
- variant_rank: number | null;
1122
- thumbnail: string | null;
1123
- product: /*elided*/ any;
1124
- images: /*elided*/ any[];
1125
- attribute_values: {
1126
- id: string;
1127
- handle: string | null;
1128
- name: string;
1129
- rank: number;
1130
- is_active: boolean;
1131
- metadata: Record<string, unknown> | null;
1132
- attribute: /*elided*/ any;
1133
- variants: /*elided*/ any[];
1134
- products: /*elided*/ any[];
1135
- created_at: Date;
1136
- updated_at: Date;
1137
- deleted_at: Date | null;
1138
- attribute_id: string;
1139
- }[];
1140
- raw_weight: Record<string, unknown> | null;
1141
- raw_length: Record<string, unknown> | null;
1142
- raw_height: Record<string, unknown> | null;
1143
- raw_width: Record<string, unknown> | null;
1144
- raw_variant_rank: Record<string, unknown> | null;
1145
- created_at: Date;
1146
- updated_at: Date;
1147
- deleted_at: Date | null;
1148
- product_id: string | null;
1149
- }[];
1150
- created_at: Date;
1151
- updated_at: Date;
1152
- deleted_at: Date | null;
1153
- product_id: string;
1154
- }[];
1155
- collection: {
1156
- id: string;
1157
- title: string;
1158
- handle: string;
1159
- metadata: Record<string, unknown> | null;
1160
- products: /*elided*/ any[];
1161
- created_at: Date;
1162
- updated_at: Date;
1163
- deleted_at: Date | null;
1164
- };
1165
- categories: /*elided*/ any[];
1166
- variant_attributes: /*elided*/ any[];
1167
- custom_attributes: /*elided*/ any[];
1168
- attribute_values: {
1169
- id: string;
1170
- handle: string | null;
1171
- name: string;
1172
- rank: number;
1173
- is_active: boolean;
1174
- metadata: Record<string, unknown> | null;
1175
- attribute: /*elided*/ any;
1176
- variants: {
1177
- id: string;
1178
- title: string;
1179
- barcode: string | null;
1180
- sku: string | null;
1181
- ean: string | null;
1182
- upc: string | null;
1183
- hs_code: string | null;
1184
- origin_country: string | null;
1185
- mid_code: string | null;
1186
- material: string | null;
1187
- weight: number | null;
1188
- length: number | null;
1189
- height: number | null;
1190
- width: number | null;
1191
- metadata: Record<string, unknown> | null;
1192
- variant_rank: number | null;
1193
- thumbnail: string | null;
1194
- product: /*elided*/ any;
1195
- images: {
1196
- id: string;
1197
- url: string;
1198
- metadata: Record<string, unknown> | null;
1199
- rank: number;
1200
- product: /*elided*/ any;
1201
- variants: /*elided*/ any[];
1202
- created_at: Date;
1203
- updated_at: Date;
1204
- deleted_at: Date | null;
1205
- product_id: string;
1206
- }[];
1207
- attribute_values: /*elided*/ any[];
1208
- raw_weight: Record<string, unknown> | null;
1209
- raw_length: Record<string, unknown> | null;
1210
- raw_height: Record<string, unknown> | null;
1211
- raw_width: Record<string, unknown> | null;
1212
- raw_variant_rank: Record<string, unknown> | null;
1213
- created_at: Date;
1214
- updated_at: Date;
1215
- deleted_at: Date | null;
1216
- product_id: string | null;
1217
- }[];
1218
- products: /*elided*/ any[];
1219
- created_at: Date;
1220
- updated_at: Date;
1221
- deleted_at: Date | null;
1222
- attribute_id: string;
1223
- }[];
1224
- changes: {
1225
- id: string;
1226
- product: /*elided*/ any;
1227
- status: import("@mercurjs/types").ProductChangeStatus;
1228
- internal_note: string | null;
1229
- external_note: string | null;
1230
- created_by: string | null;
1231
- confirmed_by: string | null;
1232
- confirmed_at: Date | null;
1233
- declined_by: string | null;
1234
- declined_at: Date | null;
1235
- declined_reason: string | null;
1236
- canceled_by: string | null;
1237
- canceled_at: Date | null;
1238
- metadata: Record<string, unknown> | null;
1239
- actions: {
1240
- id: string;
1241
- product_id: string;
1242
- ordering: number;
1243
- action: string;
1244
- details: Record<string, unknown>;
1245
- internal_note: string | null;
1246
- applied: boolean;
1247
- product_change: /*elided*/ any;
1248
- created_at: Date;
1249
- updated_at: Date;
1250
- deleted_at: Date | null;
1251
- product_change_id: string | null;
1252
- }[];
1253
- created_at: Date;
1254
- updated_at: Date;
1255
- deleted_at: Date | null;
1256
- product_id: string;
1257
- }[];
1258
- created_at: Date;
1259
- updated_at: Date;
1260
- deleted_at: Date | null;
1261
- type_id: string | null;
1262
- brand_id: string | null;
1263
- collection_id: string | null;
1264
- };
1265
- variant_products: {
1266
- id: string;
1267
- title: string;
1268
- handle: string;
1269
- subtitle: string | null;
1270
- description: string | null;
1271
- is_giftcard: boolean;
1272
- thumbnail: string | null;
1273
- weight: string | null;
1274
- length: string | null;
1275
- height: string | null;
1276
- width: string | null;
1277
- origin_country: string | null;
1278
- hs_code: string | null;
1279
- mid_code: string | null;
1280
- material: string | null;
1281
- discountable: boolean;
1282
- external_id: string | null;
1283
- metadata: Record<string, unknown> | null;
1284
- status: import("@mercurjs/types").ProductStatus;
1285
- is_restricted: boolean;
1286
- created_by: string | null;
1287
- created_by_actor: string | null;
1288
- variants: {
1289
- id: string;
1290
- title: string;
1291
- barcode: string | null;
1292
- sku: string | null;
1293
- ean: string | null;
1294
- upc: string | null;
1295
- hs_code: string | null;
1296
- origin_country: string | null;
1297
- mid_code: string | null;
1298
- material: string | null;
1299
- weight: number | null;
1300
- length: number | null;
1301
- height: number | null;
1302
- width: number | null;
1303
- metadata: Record<string, unknown> | null;
1304
- variant_rank: number | null;
1305
- thumbnail: string | null;
1306
- product: /*elided*/ any;
1307
- images: {
1308
- id: string;
1309
- url: string;
1310
- metadata: Record<string, unknown> | null;
1311
- rank: number;
1312
- product: /*elided*/ any;
1313
- variants: /*elided*/ any[];
1314
- created_at: Date;
1315
- updated_at: Date;
1316
- deleted_at: Date | null;
1317
- product_id: string;
1318
- }[];
1319
- attribute_values: {
1320
- id: string;
1321
- handle: string | null;
1322
- name: string;
1323
- rank: number;
1324
- is_active: boolean;
1325
- metadata: Record<string, unknown> | null;
1326
- attribute: /*elided*/ any;
1327
- variants: /*elided*/ any[];
1328
- products: /*elided*/ any[];
1329
- created_at: Date;
1330
- updated_at: Date;
1331
- deleted_at: Date | null;
1332
- attribute_id: string;
1333
- }[];
1334
- raw_weight: Record<string, unknown> | null;
1335
- raw_length: Record<string, unknown> | null;
1336
- raw_height: Record<string, unknown> | null;
1337
- raw_width: Record<string, unknown> | null;
1338
- raw_variant_rank: Record<string, unknown> | null;
1339
- created_at: Date;
1340
- updated_at: Date;
1341
- deleted_at: Date | null;
1342
- product_id: string | null;
1343
- }[];
1344
- type: {
1345
- id: string;
1346
- value: string;
1347
- metadata: Record<string, unknown> | null;
1348
- products: /*elided*/ any[];
1349
- created_at: Date;
1350
- updated_at: Date;
1351
- deleted_at: Date | null;
1352
- };
1353
- brand: {
1354
- id: string;
1355
- name: string;
1356
- handle: string;
1357
- is_restricted: boolean;
1358
- metadata: Record<string, unknown> | null;
1359
- products: /*elided*/ any[];
1360
- created_at: Date;
1361
- updated_at: Date;
1362
- deleted_at: Date | null;
1363
- };
1364
- tags: {
1365
- id: string;
1366
- value: string;
1367
- metadata: Record<string, unknown> | null;
1368
- products: /*elided*/ any[];
1369
- created_at: Date;
1370
- updated_at: Date;
1371
- deleted_at: Date | null;
1372
- }[];
1373
- images: {
1374
- id: string;
1375
- url: string;
1376
- metadata: Record<string, unknown> | null;
1377
- rank: number;
1378
- product: /*elided*/ any;
1379
- variants: {
1380
- id: string;
1381
- title: string;
1382
- barcode: string | null;
1383
- sku: string | null;
1384
- ean: string | null;
1385
- upc: string | null;
1386
- hs_code: string | null;
1387
- origin_country: string | null;
1388
- mid_code: string | null;
1389
- material: string | null;
1390
- weight: number | null;
1391
- length: number | null;
1392
- height: number | null;
1393
- width: number | null;
1394
- metadata: Record<string, unknown> | null;
1395
- variant_rank: number | null;
1396
- thumbnail: string | null;
1397
- product: /*elided*/ any;
1398
- images: /*elided*/ any[];
1399
- attribute_values: {
1400
- id: string;
1401
- handle: string | null;
1402
- name: string;
1403
- rank: number;
1404
- is_active: boolean;
1405
- metadata: Record<string, unknown> | null;
1406
- attribute: /*elided*/ any;
1407
- variants: /*elided*/ any[];
1408
- products: /*elided*/ any[];
1409
- created_at: Date;
1410
- updated_at: Date;
1411
- deleted_at: Date | null;
1412
- attribute_id: string;
1413
- }[];
1414
- raw_weight: Record<string, unknown> | null;
1415
- raw_length: Record<string, unknown> | null;
1416
- raw_height: Record<string, unknown> | null;
1417
- raw_width: Record<string, unknown> | null;
1418
- raw_variant_rank: Record<string, unknown> | null;
1419
- created_at: Date;
1420
- updated_at: Date;
1421
- deleted_at: Date | null;
1422
- product_id: string | null;
1423
- }[];
1424
- created_at: Date;
1425
- updated_at: Date;
1426
- deleted_at: Date | null;
1427
- product_id: string;
1428
- }[];
1429
- collection: {
1430
- id: string;
1431
- title: string;
1432
- handle: string;
1433
- metadata: Record<string, unknown> | null;
1434
- products: /*elided*/ any[];
1435
- created_at: Date;
1436
- updated_at: Date;
1437
- deleted_at: Date | null;
1438
- };
1439
- categories: /*elided*/ any[];
1440
- variant_attributes: /*elided*/ any[];
1441
- custom_attributes: /*elided*/ any[];
1442
- attribute_values: {
1443
- id: string;
1444
- handle: string | null;
1445
- name: string;
1446
- rank: number;
1447
- is_active: boolean;
1448
- metadata: Record<string, unknown> | null;
1449
- attribute: /*elided*/ any;
1450
- variants: {
1451
- id: string;
1452
- title: string;
1453
- barcode: string | null;
1454
- sku: string | null;
1455
- ean: string | null;
1456
- upc: string | null;
1457
- hs_code: string | null;
1458
- origin_country: string | null;
1459
- mid_code: string | null;
1460
- material: string | null;
1461
- weight: number | null;
1462
- length: number | null;
1463
- height: number | null;
1464
- width: number | null;
1465
- metadata: Record<string, unknown> | null;
1466
- variant_rank: number | null;
1467
- thumbnail: string | null;
1468
- product: /*elided*/ any;
1469
- images: {
1470
- id: string;
1471
- url: string;
1472
- metadata: Record<string, unknown> | null;
1473
- rank: number;
1474
- product: /*elided*/ any;
1475
- variants: /*elided*/ any[];
1476
- created_at: Date;
1477
- updated_at: Date;
1478
- deleted_at: Date | null;
1479
- product_id: string;
1480
- }[];
1481
- attribute_values: /*elided*/ any[];
1482
- raw_weight: Record<string, unknown> | null;
1483
- raw_length: Record<string, unknown> | null;
1484
- raw_height: Record<string, unknown> | null;
1485
- raw_width: Record<string, unknown> | null;
1486
- raw_variant_rank: Record<string, unknown> | null;
1487
- created_at: Date;
1488
- updated_at: Date;
1489
- deleted_at: Date | null;
1490
- product_id: string | null;
1491
- }[];
1492
- products: /*elided*/ any[];
1493
- created_at: Date;
1494
- updated_at: Date;
1495
- deleted_at: Date | null;
1496
- attribute_id: string;
1497
- }[];
1498
- changes: {
1499
- id: string;
1500
- product: /*elided*/ any;
1501
- status: import("@mercurjs/types").ProductChangeStatus;
1502
- internal_note: string | null;
1503
- external_note: string | null;
1504
- created_by: string | null;
1505
- confirmed_by: string | null;
1506
- confirmed_at: Date | null;
1507
- declined_by: string | null;
1508
- declined_at: Date | null;
1509
- declined_reason: string | null;
1510
- canceled_by: string | null;
1511
- canceled_at: Date | null;
1512
- metadata: Record<string, unknown> | null;
1513
- actions: {
1514
- id: string;
1515
- product_id: string;
1516
- ordering: number;
1517
- action: string;
1518
- details: Record<string, unknown>;
1519
- internal_note: string | null;
1520
- applied: boolean;
1521
- product_change: /*elided*/ any;
1522
- created_at: Date;
1523
- updated_at: Date;
1524
- deleted_at: Date | null;
1525
- product_change_id: string | null;
1526
- }[];
1527
- created_at: Date;
1528
- updated_at: Date;
1529
- deleted_at: Date | null;
1530
- product_id: string;
1531
- }[];
1532
- created_at: Date;
1533
- updated_at: Date;
1534
- deleted_at: Date | null;
1535
- type_id: string | null;
1536
- brand_id: string | null;
1537
- collection_id: string | null;
1538
- }[];
1539
- created_at: Date;
1540
- updated_at: Date;
1541
- deleted_at: Date | null;
1542
- product_id: string | null;
1543
- }[];
1544
- created_at: Date;
1545
- updated_at: Date;
1546
- deleted_at: Date | null;
1547
- parent_category_id: string | null;
1548
- }[]>;