@mercurjs/core 2.1.2-canary.5 → 2.2.0-canary.1

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