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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (837) hide show
  1. package/.medusa/server/src/api/admin/claims/[id]/outbound/items/route.d.ts +20 -0
  2. package/.medusa/server/src/api/admin/claims/[id]/outbound/items/route.js +66 -0
  3. package/.medusa/server/src/api/admin/claims/[id]/request/route.d.ts +10 -0
  4. package/.medusa/server/src/api/admin/claims/[id]/request/route.js +80 -0
  5. package/.medusa/server/src/api/admin/commission-rates/validators.d.ts +4 -4
  6. package/.medusa/server/src/api/admin/exchanges/[id]/outbound/items/route.d.ts +22 -0
  7. package/.medusa/server/src/api/admin/exchanges/[id]/outbound/items/route.js +68 -0
  8. package/.medusa/server/src/api/admin/exchanges/[id]/request/route.d.ts +10 -0
  9. package/.medusa/server/src/api/admin/exchanges/[id]/request/route.js +81 -0
  10. package/.medusa/server/src/api/admin/members/validators.d.ts +2 -2
  11. package/.medusa/server/src/api/admin/middlewares.js +25 -38
  12. package/.medusa/server/src/api/admin/offers/query-config.js +8 -8
  13. package/.medusa/server/src/api/admin/offers/validators.d.ts +8 -8
  14. package/.medusa/server/src/api/admin/order-edits/[id]/items/route.d.ts +26 -0
  15. package/.medusa/server/src/api/admin/order-edits/[id]/items/route.js +57 -0
  16. package/.medusa/server/src/api/admin/order-groups/apply-request-filter.d.ts +2 -0
  17. package/.medusa/server/src/api/admin/order-groups/apply-request-filter.js +140 -0
  18. package/.medusa/server/src/api/admin/order-groups/middlewares.js +3 -1
  19. package/.medusa/server/src/api/admin/order-groups/validators.d.ts +7 -4
  20. package/.medusa/server/src/api/admin/order-groups/validators.js +7 -1
  21. package/.medusa/server/src/api/admin/orders/middlewares.d.ts +2 -0
  22. package/.medusa/server/src/api/admin/orders/middlewares.js +42 -0
  23. package/.medusa/server/src/api/admin/orders/resolve-order-seller-id.d.ts +11 -0
  24. package/.medusa/server/src/api/admin/orders/resolve-order-seller-id.js +24 -0
  25. package/.medusa/server/src/api/admin/orders/validators.d.ts +73 -27
  26. package/.medusa/server/src/api/admin/orders/validators.js +9 -29
  27. package/.medusa/server/src/api/admin/payouts/validators.d.ts +2 -2
  28. package/.medusa/server/src/api/admin/product-attributes/[id]/route.js +3 -3
  29. package/.medusa/server/src/api/admin/product-attributes/[id]/values/[value_id]/route.js +3 -3
  30. package/.medusa/server/src/api/admin/product-attributes/[id]/values/route.js +2 -2
  31. package/.medusa/server/src/api/admin/product-attributes/middlewares.js +15 -1
  32. package/.medusa/server/src/api/admin/product-attributes/query-config.js +1 -2
  33. package/.medusa/server/src/api/admin/product-attributes/route.js +6 -3
  34. package/.medusa/server/src/api/admin/product-attributes/validators.d.ts +5 -9
  35. package/.medusa/server/src/api/admin/product-attributes/validators.js +2 -15
  36. package/.medusa/server/src/api/admin/product-categories/[id]/products/route.js +3 -3
  37. package/.medusa/server/src/api/admin/product-categories/[id]/route.js +8 -7
  38. package/.medusa/server/src/api/admin/product-categories/query-config.js +1 -2
  39. package/.medusa/server/src/api/admin/product-categories/route.js +4 -4
  40. package/.medusa/server/src/api/admin/product-categories/validators.d.ts +8 -8
  41. package/.medusa/server/src/api/admin/product-changes/[id]/cancel/route.js +5 -6
  42. package/.medusa/server/src/api/admin/product-changes/[id]/confirm/route.js +5 -5
  43. package/.medusa/server/src/api/admin/products/[id]/attributes/[attribute_id]/route.d.ts +10 -4
  44. package/.medusa/server/src/api/admin/products/[id]/attributes/[attribute_id]/route.js +60 -23
  45. package/.medusa/server/src/api/admin/products/[id]/attributes/batch/route.d.ts +3 -2
  46. package/.medusa/server/src/api/admin/products/[id]/attributes/batch/route.js +11 -22
  47. package/.medusa/server/src/api/admin/products/[id]/attributes/route.d.ts +2 -3
  48. package/.medusa/server/src/api/admin/products/[id]/attributes/route.js +40 -25
  49. package/.medusa/server/src/api/admin/products/[id]/confirm/route.d.ts +12 -0
  50. package/.medusa/server/src/api/admin/products/[id]/confirm/route.js +16 -6
  51. package/.medusa/server/src/api/admin/products/[id]/preview/route.d.ts +8 -1
  52. package/.medusa/server/src/api/admin/products/[id]/preview/route.js +20 -7
  53. package/.medusa/server/src/api/admin/products/[id]/reject/route.d.ts +8 -0
  54. package/.medusa/server/src/api/admin/products/[id]/reject/route.js +13 -8
  55. package/.medusa/server/src/api/admin/products/[id]/request-changes/route.d.ts +9 -0
  56. package/.medusa/server/src/api/admin/products/[id]/request-changes/route.js +16 -10
  57. package/.medusa/server/src/api/admin/products/[id]/route.js +6 -6
  58. package/.medusa/server/src/api/admin/products/[id]/variants/[variant_id]/route.js +5 -5
  59. package/.medusa/server/src/api/admin/products/[id]/variants/route.js +22 -4
  60. package/.medusa/server/src/api/admin/products/middlewares.js +8 -4
  61. package/.medusa/server/src/api/admin/products/query-config.js +12 -18
  62. package/.medusa/server/src/api/admin/products/route.js +4 -9
  63. package/.medusa/server/src/api/admin/products/validators.d.ts +1049 -205
  64. package/.medusa/server/src/api/admin/products/validators.js +114 -16
  65. package/.medusa/server/src/api/admin/returns/[id]/receive/confirm/route.d.ts +9 -0
  66. package/.medusa/server/src/api/admin/returns/[id]/receive/confirm/route.js +35 -0
  67. package/.medusa/server/src/api/admin/sellers/validators.d.ts +14 -14
  68. package/.medusa/server/src/api/admin/shipping-options/middlewares.d.ts +2 -0
  69. package/.medusa/server/src/api/admin/shipping-options/middlewares.js +46 -0
  70. package/.medusa/server/src/api/admin/shipping-profiles/middlewares.d.ts +2 -0
  71. package/.medusa/server/src/api/admin/shipping-profiles/middlewares.js +46 -0
  72. package/.medusa/server/src/api/{vendor/product-brands → admin/stock-locations}/middlewares.d.ts +1 -1
  73. package/.medusa/server/src/api/admin/stock-locations/middlewares.js +46 -0
  74. package/.medusa/server/src/api/store/carts/[id]/line-items/route.js +23 -5
  75. package/.medusa/server/src/api/store/carts/[id]/line-items/validators.d.ts +0 -3
  76. package/.medusa/server/src/api/store/carts/[id]/line-items/validators.js +1 -2
  77. package/.medusa/server/src/api/store/middlewares.js +7 -9
  78. package/.medusa/server/src/api/store/order-groups/validators.d.ts +2 -2
  79. package/.medusa/server/src/api/store/products/[id]/route.js +3 -18
  80. package/.medusa/server/src/api/store/products/middlewares.js +1 -7
  81. package/.medusa/server/src/api/store/products/query-config.d.ts +1 -3
  82. package/.medusa/server/src/api/store/products/query-config.js +14 -17
  83. package/.medusa/server/src/api/store/products/route.js +3 -19
  84. package/.medusa/server/src/api/store/products/validators.d.ts +0 -6
  85. package/.medusa/server/src/api/store/products/validators.js +1 -2
  86. package/.medusa/server/src/api/store/sellers/validators.d.ts +2 -2
  87. package/.medusa/server/src/api/utils/filter-attributes-by-category-link.d.ts +17 -0
  88. package/.medusa/server/src/api/utils/filter-attributes-by-category-link.js +58 -0
  89. package/.medusa/server/src/api/utils/format-product-attributes.d.ts +51 -5
  90. package/.medusa/server/src/api/utils/format-product-attributes.js +176 -31
  91. package/.medusa/server/src/api/utils/index.d.ts +1 -0
  92. package/.medusa/server/src/api/utils/index.js +2 -1
  93. package/.medusa/server/src/api/vendor/campaigns/validators.d.ts +2 -2
  94. package/.medusa/server/src/api/vendor/claims/[id]/cancel/route.d.ts +4 -0
  95. package/.medusa/server/src/api/vendor/claims/[id]/cancel/route.js +17 -0
  96. package/.medusa/server/src/api/vendor/claims/[id]/claim-items/[action_id]/route.d.ts +9 -0
  97. package/.medusa/server/src/api/vendor/claims/[id]/claim-items/[action_id]/route.js +32 -0
  98. package/.medusa/server/src/api/vendor/claims/[id]/claim-items/route.d.ts +6 -0
  99. package/.medusa/server/src/api/vendor/claims/[id]/claim-items/route.js +15 -0
  100. package/.medusa/server/src/api/vendor/claims/[id]/inbound/items/[action_id]/route.d.ts +9 -0
  101. package/.medusa/server/src/api/vendor/claims/[id]/inbound/items/[action_id]/route.js +46 -0
  102. package/.medusa/server/src/api/vendor/claims/[id]/inbound/items/route.d.ts +6 -0
  103. package/.medusa/server/src/api/vendor/claims/[id]/inbound/items/route.js +26 -0
  104. package/.medusa/server/src/api/vendor/claims/[id]/inbound/shipping-method/[action_id]/route.d.ts +9 -0
  105. package/.medusa/server/src/api/vendor/claims/[id]/inbound/shipping-method/[action_id]/route.js +39 -0
  106. package/.medusa/server/src/api/vendor/claims/[id]/inbound/shipping-method/route.d.ts +6 -0
  107. package/.medusa/server/src/api/vendor/claims/[id]/inbound/shipping-method/route.js +26 -0
  108. package/.medusa/server/src/api/vendor/claims/[id]/outbound/items/[action_id]/route.d.ts +9 -0
  109. package/.medusa/server/src/api/vendor/claims/[id]/outbound/items/[action_id]/route.js +32 -0
  110. package/.medusa/server/src/api/vendor/claims/[id]/outbound/items/route.d.ts +12 -0
  111. package/.medusa/server/src/api/vendor/claims/[id]/outbound/items/route.js +47 -0
  112. package/.medusa/server/src/api/vendor/claims/[id]/outbound/shipping-method/[action_id]/route.d.ts +9 -0
  113. package/.medusa/server/src/api/vendor/claims/[id]/outbound/shipping-method/[action_id]/route.js +32 -0
  114. package/.medusa/server/src/api/vendor/claims/[id]/outbound/shipping-method/route.d.ts +6 -0
  115. package/.medusa/server/src/api/vendor/claims/[id]/outbound/shipping-method/route.js +15 -0
  116. package/.medusa/server/src/api/vendor/claims/[id]/request/route.d.ts +6 -0
  117. package/.medusa/server/src/api/vendor/claims/[id]/request/route.js +34 -0
  118. package/.medusa/server/src/api/vendor/claims/[id]/route.d.ts +3 -0
  119. package/.medusa/server/src/api/vendor/claims/[id]/route.js +19 -0
  120. package/.medusa/server/src/api/vendor/claims/helpers.d.ts +2 -0
  121. package/.medusa/server/src/api/vendor/claims/helpers.js +19 -0
  122. package/.medusa/server/src/api/vendor/claims/middlewares.d.ts +2 -0
  123. package/.medusa/server/src/api/vendor/claims/middlewares.js +184 -0
  124. package/.medusa/server/src/api/vendor/claims/query-config.d.ts +12 -0
  125. package/.medusa/server/src/api/vendor/claims/query-config.js +31 -0
  126. package/.medusa/server/src/api/vendor/claims/route.d.ts +5 -0
  127. package/.medusa/server/src/api/vendor/claims/route.js +35 -0
  128. package/.medusa/server/src/api/vendor/claims/validators.d.ts +378 -0
  129. package/.medusa/server/src/api/vendor/claims/validators.js +89 -0
  130. package/.medusa/server/src/api/vendor/collections/validators.d.ts +2 -2
  131. package/.medusa/server/src/api/vendor/currencies/validators.d.ts +2 -2
  132. package/.medusa/server/src/api/vendor/customers/validators.d.ts +2 -2
  133. package/.medusa/server/src/api/vendor/exchanges/[id]/cancel/route.d.ts +4 -0
  134. package/.medusa/server/src/api/vendor/exchanges/[id]/cancel/route.js +17 -0
  135. package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/items/[action_id]/route.d.ts +9 -0
  136. package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/items/[action_id]/route.js +46 -0
  137. package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/items/route.d.ts +6 -0
  138. package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/items/route.js +26 -0
  139. package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/shipping-method/[action_id]/route.d.ts +9 -0
  140. package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/shipping-method/[action_id]/route.js +45 -0
  141. package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/shipping-method/route.d.ts +6 -0
  142. package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/shipping-method/route.js +26 -0
  143. package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/items/[action_id]/route.d.ts +9 -0
  144. package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/items/[action_id]/route.js +32 -0
  145. package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/items/route.d.ts +12 -0
  146. package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/items/route.js +47 -0
  147. package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/shipping-method/[action_id]/route.d.ts +9 -0
  148. package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/shipping-method/[action_id]/route.js +32 -0
  149. package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/shipping-method/route.d.ts +6 -0
  150. package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/shipping-method/route.js +15 -0
  151. package/.medusa/server/src/api/vendor/exchanges/[id]/request/route.d.ts +6 -0
  152. package/.medusa/server/src/api/vendor/exchanges/[id]/request/route.js +34 -0
  153. package/.medusa/server/src/api/vendor/exchanges/helpers.d.ts +2 -0
  154. package/.medusa/server/src/api/vendor/exchanges/helpers.js +19 -0
  155. package/.medusa/server/src/api/vendor/exchanges/middlewares.d.ts +2 -0
  156. package/.medusa/server/src/api/vendor/exchanges/middlewares.js +155 -0
  157. package/.medusa/server/src/api/vendor/exchanges/query-config.d.ts +7 -0
  158. package/.medusa/server/src/api/vendor/exchanges/query-config.js +23 -0
  159. package/.medusa/server/src/api/vendor/exchanges/route.d.ts +5 -0
  160. package/.medusa/server/src/api/vendor/exchanges/route.js +35 -0
  161. package/.medusa/server/src/api/vendor/exchanges/validators.d.ts +313 -0
  162. package/.medusa/server/src/api/vendor/exchanges/validators.js +71 -0
  163. package/.medusa/server/src/api/vendor/fulfillment-providers/validators.d.ts +2 -2
  164. package/.medusa/server/src/api/vendor/fulfillment-sets/validators.d.ts +16 -16
  165. package/.medusa/server/src/api/vendor/inventory-items/validators.d.ts +8 -8
  166. package/.medusa/server/src/api/vendor/middlewares.js +77 -71
  167. package/.medusa/server/src/api/vendor/offers/query-config.js +8 -8
  168. package/.medusa/server/src/api/vendor/offers/validators.d.ts +10 -10
  169. package/.medusa/server/src/api/vendor/order-edits/[id]/confirm/route.d.ts +9 -0
  170. package/.medusa/server/src/api/vendor/order-edits/[id]/confirm/route.js +24 -0
  171. package/.medusa/server/src/api/vendor/order-edits/[id]/items/[action_id]/route.d.ts +14 -0
  172. package/.medusa/server/src/api/vendor/order-edits/[id]/items/[action_id]/route.js +41 -0
  173. package/.medusa/server/src/api/vendor/order-edits/[id]/items/item/[item_id]/route.d.ts +10 -0
  174. package/.medusa/server/src/api/vendor/order-edits/[id]/items/item/[item_id]/route.js +30 -0
  175. package/.medusa/server/src/api/vendor/order-edits/[id]/items/route.d.ts +16 -0
  176. package/.medusa/server/src/api/vendor/order-edits/[id]/items/route.js +45 -0
  177. package/.medusa/server/src/api/vendor/order-edits/[id]/request/route.d.ts +10 -0
  178. package/.medusa/server/src/api/vendor/order-edits/[id]/request/route.js +25 -0
  179. package/.medusa/server/src/api/vendor/order-edits/[id]/route.d.ts +10 -0
  180. package/.medusa/server/src/api/vendor/order-edits/[id]/route.js +26 -0
  181. package/.medusa/server/src/api/vendor/order-edits/[id]/shipping-method/[action_id]/route.d.ts +14 -0
  182. package/.medusa/server/src/api/vendor/order-edits/[id]/shipping-method/[action_id]/route.js +41 -0
  183. package/.medusa/server/src/api/vendor/order-edits/[id]/shipping-method/route.d.ts +9 -0
  184. package/.medusa/server/src/api/vendor/order-edits/[id]/shipping-method/route.js +20 -0
  185. package/.medusa/server/src/api/vendor/order-edits/middlewares.d.ts +2 -0
  186. package/.medusa/server/src/api/vendor/order-edits/middlewares.js +106 -0
  187. package/.medusa/server/src/api/vendor/order-edits/route.d.ts +10 -0
  188. package/.medusa/server/src/api/vendor/order-edits/route.js +21 -0
  189. package/.medusa/server/src/api/vendor/order-edits/validators.d.ts +166 -0
  190. package/.medusa/server/src/api/vendor/order-edits/validators.js +50 -0
  191. package/.medusa/server/src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/cancel/route.js +3 -3
  192. package/.medusa/server/src/api/vendor/orders/[id]/fulfillments/route.js +3 -3
  193. package/.medusa/server/src/api/vendor/orders/apply-request-filter.d.ts +2 -0
  194. package/.medusa/server/src/api/vendor/orders/apply-request-filter.js +99 -0
  195. package/.medusa/server/src/api/vendor/orders/middlewares.js +3 -1
  196. package/.medusa/server/src/api/vendor/orders/query-config.js +34 -11
  197. package/.medusa/server/src/api/vendor/orders/resolve-offer-items.d.ts +40 -0
  198. package/.medusa/server/src/api/vendor/orders/resolve-offer-items.js +66 -0
  199. package/.medusa/server/src/api/vendor/orders/validators.d.ts +7 -4
  200. package/.medusa/server/src/api/vendor/orders/validators.js +7 -1
  201. package/.medusa/server/src/api/vendor/payment-collections/[id]/mark-as-paid/route.d.ts +3 -0
  202. package/.medusa/server/src/api/vendor/payment-collections/[id]/mark-as-paid/route.js +25 -0
  203. package/.medusa/server/src/api/vendor/payment-collections/helpers.d.ts +3 -0
  204. package/.medusa/server/src/api/vendor/payment-collections/helpers.js +30 -0
  205. package/.medusa/server/src/api/vendor/payment-collections/middlewares.d.ts +2 -0
  206. package/.medusa/server/src/api/vendor/payment-collections/middlewares.js +17 -0
  207. package/.medusa/server/src/api/vendor/payment-collections/query-config.d.ts +7 -0
  208. package/.medusa/server/src/api/vendor/payment-collections/query-config.js +26 -0
  209. package/.medusa/server/src/api/vendor/payment-collections/validators.d.ts +17 -0
  210. package/.medusa/server/src/api/vendor/payment-collections/validators.js +12 -0
  211. package/.medusa/server/src/api/vendor/payments/helpers.d.ts +9 -0
  212. package/.medusa/server/src/api/vendor/payments/helpers.js +23 -8
  213. package/.medusa/server/src/api/vendor/payments/validators.d.ts +4 -4
  214. package/.medusa/server/src/api/vendor/payouts/validators.d.ts +2 -2
  215. package/.medusa/server/src/api/vendor/price-lists/validators.d.ts +2 -2
  216. package/.medusa/server/src/api/vendor/price-preferences/validators.d.ts +2 -2
  217. package/.medusa/server/src/api/vendor/product-attributes/middlewares.js +15 -1
  218. package/.medusa/server/src/api/vendor/product-attributes/route.js +4 -1
  219. package/.medusa/server/src/api/vendor/product-attributes/validators.d.ts +3 -7
  220. package/.medusa/server/src/api/vendor/product-attributes/validators.js +2 -15
  221. package/.medusa/server/src/api/vendor/product-categories/[id]/products/route.d.ts +4 -0
  222. package/.medusa/server/src/api/vendor/product-categories/[id]/products/route.js +36 -0
  223. package/.medusa/server/src/api/vendor/product-categories/middlewares.js +9 -1
  224. package/.medusa/server/src/api/vendor/product-categories/query-config.js +1 -2
  225. package/.medusa/server/src/api/vendor/product-categories/validators.d.ts +21 -4
  226. package/.medusa/server/src/api/vendor/product-categories/validators.js +7 -2
  227. package/.medusa/server/src/api/vendor/product-types/validators.d.ts +2 -2
  228. package/.medusa/server/src/api/vendor/products/[id]/attributes/[attribute_id]/route.d.ts +18 -5
  229. package/.medusa/server/src/api/vendor/products/[id]/attributes/[attribute_id]/route.js +77 -17
  230. package/.medusa/server/src/api/vendor/products/[id]/attributes/batch/route.d.ts +12 -0
  231. package/.medusa/server/src/api/vendor/products/[id]/attributes/batch/route.js +46 -0
  232. package/.medusa/server/src/api/vendor/products/[id]/attributes/route.d.ts +10 -6
  233. package/.medusa/server/src/api/vendor/products/[id]/attributes/route.js +58 -25
  234. package/.medusa/server/src/api/vendor/products/[id]/cancel/route.d.ts +5 -7
  235. package/.medusa/server/src/api/vendor/products/[id]/cancel/route.js +12 -15
  236. package/.medusa/server/src/api/vendor/products/[id]/route.d.ts +18 -9
  237. package/.medusa/server/src/api/vendor/products/[id]/route.js +32 -16
  238. package/.medusa/server/src/api/vendor/products/[id]/variants/[variant_id]/route.d.ts +11 -9
  239. package/.medusa/server/src/api/vendor/products/[id]/variants/[variant_id]/route.js +40 -21
  240. package/.medusa/server/src/api/vendor/products/[id]/variants/route.d.ts +9 -5
  241. package/.medusa/server/src/api/vendor/products/[id]/variants/route.js +28 -10
  242. package/.medusa/server/src/api/vendor/products/helpers.d.ts +8 -0
  243. package/.medusa/server/src/api/vendor/products/helpers.js +26 -0
  244. package/.medusa/server/src/api/vendor/products/middlewares.js +34 -5
  245. package/.medusa/server/src/api/vendor/products/query-config.js +12 -17
  246. package/.medusa/server/src/api/vendor/products/route.d.ts +11 -1
  247. package/.medusa/server/src/api/vendor/products/route.js +25 -12
  248. package/.medusa/server/src/api/vendor/products/validators.d.ts +389 -70
  249. package/.medusa/server/src/api/vendor/products/validators.js +115 -14
  250. package/.medusa/server/src/api/vendor/promotions/validators.d.ts +4 -4
  251. package/.medusa/server/src/api/vendor/refund-reasons/validators.d.ts +2 -2
  252. package/.medusa/server/src/api/vendor/regions/validators.d.ts +4 -4
  253. package/.medusa/server/src/api/vendor/reservations/[id]/route.d.ts +5 -0
  254. package/.medusa/server/src/api/vendor/reservations/[id]/route.js +39 -0
  255. package/.medusa/server/src/api/vendor/reservations/helpers.d.ts +2 -0
  256. package/.medusa/server/src/api/vendor/reservations/helpers.js +21 -0
  257. package/.medusa/server/src/api/{admin/product-brands → vendor/reservations}/middlewares.d.ts +1 -1
  258. package/.medusa/server/src/api/vendor/reservations/middlewares.js +61 -0
  259. package/.medusa/server/src/api/vendor/reservations/query-config.d.ts +19 -0
  260. package/.medusa/server/src/api/vendor/reservations/query-config.js +48 -0
  261. package/.medusa/server/src/api/vendor/reservations/route.d.ts +4 -0
  262. package/.medusa/server/src/api/vendor/reservations/route.js +35 -0
  263. package/.medusa/server/src/api/vendor/reservations/validators.d.ts +296 -0
  264. package/.medusa/server/src/api/vendor/reservations/validators.js +40 -0
  265. package/.medusa/server/src/api/vendor/return-reasons/validators.d.ts +2 -2
  266. package/.medusa/server/src/api/vendor/returns/[id]/receive/confirm/route.js +3 -3
  267. package/.medusa/server/src/api/vendor/returns/validators.d.ts +4 -4
  268. package/.medusa/server/src/api/vendor/sales-channels/validators.d.ts +2 -2
  269. package/.medusa/server/src/api/vendor/sellers/validators.d.ts +4 -4
  270. package/.medusa/server/src/api/vendor/shipping-option-types/validators.d.ts +2 -2
  271. package/.medusa/server/src/api/vendor/shipping-options/middlewares.js +13 -1
  272. package/.medusa/server/src/api/vendor/shipping-options/validators.d.ts +43 -40
  273. package/.medusa/server/src/api/vendor/shipping-options/validators.js +2 -1
  274. package/.medusa/server/src/api/vendor/shipping-profiles/validators.d.ts +4 -4
  275. package/.medusa/server/src/api/vendor/stock-locations/validators.d.ts +2 -2
  276. package/.medusa/server/src/api/vendor/stores/validators.d.ts +2 -2
  277. package/.medusa/server/src/links/cart-line-item-offer-link.js +9 -2
  278. package/.medusa/server/src/links/category-seller-link.js +2 -2
  279. package/.medusa/server/src/links/offer-price-link.js +13 -0
  280. package/.medusa/server/src/links/offer-variant-link.js +2 -2
  281. package/.medusa/server/src/links/order-line-item-offer-link.js +10 -2
  282. package/.medusa/server/src/links/product-attribute-category-link.d.ts +16 -0
  283. package/.medusa/server/src/links/product-attribute-category-link.js +40 -0
  284. package/.medusa/server/src/links/product-attribute-product-link.d.ts +10 -0
  285. package/.medusa/server/src/links/product-attribute-product-link.js +29 -0
  286. package/.medusa/server/src/links/product-attribute-value-link.d.ts +22 -0
  287. package/.medusa/server/src/links/product-attribute-value-link.js +46 -0
  288. package/.medusa/server/src/links/product-change-link.d.ts +8 -0
  289. package/.medusa/server/src/links/product-change-link.js +27 -0
  290. package/.medusa/server/src/links/product-seller-link.js +2 -2
  291. package/.medusa/server/src/links/product-variant-attribute-link.js +21 -0
  292. package/.medusa/server/src/links/product-variant-attribute-value-link.d.ts +2 -0
  293. package/.medusa/server/src/links/product-variant-attribute-value-link.js +21 -0
  294. package/.medusa/server/src/modules/{product/migrations/Migration20260414141012.d.ts → offer/migrations/Migration20260526000000.d.ts} +1 -1
  295. package/.medusa/server/src/modules/offer/migrations/Migration20260526000000.js +16 -0
  296. package/.medusa/server/src/modules/offer/models/offer.d.ts +0 -1
  297. package/.medusa/server/src/modules/offer/models/offer.js +1 -7
  298. package/.medusa/server/src/modules/offer/service.d.ts +0 -1
  299. package/.medusa/server/src/modules/product-attribute/index.d.ts +36 -0
  300. package/.medusa/server/src/modules/product-attribute/index.js +14 -0
  301. package/.medusa/server/src/modules/product-attribute/joiner-config.d.ts +1 -0
  302. package/.medusa/server/src/modules/product-attribute/joiner-config.js +17 -0
  303. package/.medusa/server/src/modules/{product/migrations/Migration20260415151424.d.ts → product-attribute/migrations/Migration20260601000000.d.ts} +1 -1
  304. package/.medusa/server/src/modules/product-attribute/migrations/Migration20260601000000.js +62 -0
  305. package/.medusa/server/src/modules/product-attribute/migrations/Migration20260601000001.d.ts +11 -0
  306. package/.medusa/server/src/modules/product-attribute/migrations/Migration20260601000001.js +29 -0
  307. package/.medusa/server/src/modules/product-attribute/models/index.d.ts +2 -0
  308. package/.medusa/server/src/modules/product-attribute/models/index.js +11 -0
  309. package/.medusa/server/src/modules/product-attribute/models/product-attribute-value.d.ts +25 -0
  310. package/.medusa/server/src/modules/product-attribute/models/product-attribute-value.js +29 -0
  311. package/.medusa/server/src/modules/product-attribute/models/product-attribute.d.ts +26 -0
  312. package/.medusa/server/src/modules/product-attribute/models/product-attribute.js +53 -0
  313. package/.medusa/server/src/modules/product-attribute/service.d.ts +55 -0
  314. package/.medusa/server/src/modules/product-attribute/service.js +15 -0
  315. package/.medusa/server/src/modules/product-edit/index.d.ts +36 -0
  316. package/.medusa/server/src/modules/{subscription → product-edit}/index.js +4 -2
  317. package/.medusa/server/src/modules/product-edit/joiner-config.d.ts +1 -0
  318. package/.medusa/server/src/modules/product-edit/joiner-config.js +17 -0
  319. package/.medusa/server/src/modules/{product/migrations/Migration20260416104248.d.ts → product-edit/migrations/Migration20260601130000.d.ts} +1 -1
  320. package/.medusa/server/src/modules/product-edit/migrations/Migration20260601130000.js +78 -0
  321. package/.medusa/server/src/modules/product-edit/models/index.d.ts +2 -0
  322. package/.medusa/server/src/modules/product-edit/models/index.js +11 -0
  323. package/.medusa/server/src/modules/product-edit/models/product-change-action.d.ts +49 -0
  324. package/.medusa/server/src/modules/{product → product-edit}/models/product-change-action.js +1 -1
  325. package/.medusa/server/src/modules/product-edit/models/product-change.d.ts +31 -0
  326. package/.medusa/server/src/modules/product-edit/models/product-change.js +52 -0
  327. package/.medusa/server/src/modules/product-edit/service.d.ts +84 -0
  328. package/.medusa/server/src/modules/product-edit/service.js +15 -0
  329. package/.medusa/server/src/subscribers/link-order-line-items-to-offers.d.ts +6 -0
  330. package/.medusa/server/src/subscribers/link-order-line-items-to-offers.js +94 -0
  331. package/.medusa/server/src/subscribers/order-edit-confirmed.d.ts +5 -0
  332. package/.medusa/server/src/subscribers/order-edit-confirmed.js +22 -0
  333. package/.medusa/server/src/types/cart-line-item.d.ts +0 -9
  334. package/.medusa/server/src/utils/disable-medusa-middlewares.js +5 -1
  335. package/.medusa/server/src/with-mercur.js +1 -6
  336. package/.medusa/server/src/workflows/cart/hooks/before-refreshing-payment-collection.js +36 -0
  337. package/.medusa/server/src/workflows/cart/hooks/index.d.ts +3 -2
  338. package/.medusa/server/src/workflows/cart/hooks/index.js +4 -3
  339. package/.medusa/server/src/workflows/cart/hooks/set-pricing-context.js +94 -0
  340. package/.medusa/server/src/workflows/cart/hooks/validate.d.ts +1 -0
  341. package/.medusa/server/src/workflows/cart/hooks/validate.js +107 -0
  342. package/.medusa/server/src/workflows/cart/steps/index.d.ts +0 -3
  343. package/.medusa/server/src/workflows/cart/steps/index.js +1 -4
  344. package/.medusa/server/src/workflows/cart/utils/fields.js +29 -2
  345. package/.medusa/server/src/workflows/cart/workflows/complete-cart-with-split-orders.js +29 -3
  346. package/.medusa/server/src/workflows/cart/workflows/index.d.ts +0 -2
  347. package/.medusa/server/src/workflows/cart/workflows/index.js +1 -3
  348. package/.medusa/server/src/workflows/index.d.ts +1 -1
  349. package/.medusa/server/src/workflows/index.js +2 -2
  350. package/.medusa/server/src/workflows/offer/steps/add-offer-prices.d.ts +22 -0
  351. package/.medusa/server/src/workflows/offer/steps/add-offer-prices.js +64 -0
  352. package/.medusa/server/src/workflows/offer/steps/create-offers.d.ts +0 -1
  353. package/.medusa/server/src/workflows/offer/steps/delete-offers.d.ts +6 -1
  354. package/.medusa/server/src/workflows/offer/steps/delete-offers.js +10 -6
  355. package/.medusa/server/src/workflows/offer/steps/ensure-variant-price-sets.d.ts +15 -0
  356. package/.medusa/server/src/workflows/offer/steps/ensure-variant-price-sets.js +61 -0
  357. package/.medusa/server/src/workflows/offer/steps/index.d.ts +4 -1
  358. package/.medusa/server/src/workflows/offer/steps/index.js +5 -2
  359. package/.medusa/server/src/workflows/offer/steps/remove-offer-prices.d.ts +3 -0
  360. package/.medusa/server/src/workflows/offer/steps/remove-offer-prices.js +15 -0
  361. package/.medusa/server/src/workflows/offer/steps/update-offers.d.ts +0 -1
  362. package/.medusa/server/src/workflows/offer/utils/assert-offer-price-ownership.d.ts +17 -0
  363. package/.medusa/server/src/workflows/offer/utils/assert-offer-price-ownership.js +27 -0
  364. package/.medusa/server/src/workflows/offer/utils/index.d.ts +1 -0
  365. package/.medusa/server/src/workflows/offer/utils/index.js +2 -1
  366. package/.medusa/server/src/workflows/offer/workflows/batch-offer-inventory-items.d.ts +17 -31
  367. package/.medusa/server/src/workflows/offer/workflows/batch-offer-inventory-items.js +1 -1
  368. package/.medusa/server/src/workflows/offer/workflows/create-offers.d.ts +12 -111
  369. package/.medusa/server/src/workflows/offer/workflows/create-offers.js +98 -45
  370. package/.medusa/server/src/workflows/offer/workflows/delete-offers.js +2 -2
  371. package/.medusa/server/src/workflows/offer/workflows/update-offers.d.ts +21 -116
  372. package/.medusa/server/src/workflows/offer/workflows/update-offers.js +136 -20
  373. package/.medusa/server/src/workflows/order/workflows/cancel-order-fulfillment.d.ts +1 -1
  374. package/.medusa/server/src/workflows/order/workflows/cancel-order-fulfillment.js +3 -4
  375. package/.medusa/server/src/workflows/order/workflows/confirm-claim-request.d.ts +7 -0
  376. package/.medusa/server/src/workflows/order/workflows/confirm-claim-request.js +151 -0
  377. package/.medusa/server/src/workflows/order/workflows/confirm-exchange-request.d.ts +7 -0
  378. package/.medusa/server/src/workflows/order/workflows/confirm-exchange-request.js +159 -0
  379. package/.medusa/server/src/workflows/order/workflows/confirm-return-receive.d.ts +1 -1
  380. package/.medusa/server/src/workflows/order/workflows/confirm-return-receive.js +3 -4
  381. package/.medusa/server/src/workflows/order/workflows/create-order-fulfillment.d.ts +10 -33
  382. package/.medusa/server/src/workflows/order/workflows/create-order-fulfillment.js +3 -4
  383. package/.medusa/server/src/workflows/order/workflows/index.d.ts +2 -0
  384. package/.medusa/server/src/workflows/order/workflows/index.js +3 -1
  385. package/.medusa/server/src/workflows/product/events.d.ts +5 -47
  386. package/.medusa/server/src/workflows/product/events.js +7 -49
  387. package/.medusa/server/src/workflows/product/index.d.ts +1 -1
  388. package/.medusa/server/src/workflows/product/index.js +2 -2
  389. package/.medusa/server/src/workflows/product/steps/index.d.ts +3 -28
  390. package/.medusa/server/src/workflows/product/steps/index.js +4 -29
  391. package/.medusa/server/src/workflows/product/steps/replace-product-attribute-value-links.d.ts +28 -0
  392. package/.medusa/server/src/workflows/product/steps/replace-product-attribute-value-links.js +72 -0
  393. package/.medusa/server/src/workflows/product/steps/resolve-attribute-refs.d.ts +90 -0
  394. package/.medusa/server/src/workflows/product/steps/resolve-attribute-refs.js +185 -0
  395. package/.medusa/server/src/workflows/product/steps/validate-products-status.d.ts +19 -0
  396. package/.medusa/server/src/workflows/product/steps/validate-products-status.js +28 -0
  397. package/.medusa/server/src/workflows/product/steps/validate-seller-product-permissions.d.ts +0 -1
  398. package/.medusa/server/src/workflows/product/steps/validate-seller-product-permissions.js +2 -21
  399. package/.medusa/server/src/workflows/product/workflows/confirm-products.d.ts +13 -1
  400. package/.medusa/server/src/workflows/product/workflows/confirm-products.js +41 -30
  401. package/.medusa/server/src/workflows/product/workflows/create-products.d.ts +59 -3
  402. package/.medusa/server/src/workflows/product/workflows/create-products.js +202 -16
  403. package/.medusa/server/src/workflows/product/workflows/index.d.ts +3 -26
  404. package/.medusa/server/src/workflows/product/workflows/index.js +4 -27
  405. package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product-category.d.ts +1 -1
  406. package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product-category.js +3 -4
  407. package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product.d.ts +1 -1
  408. package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product.js +3 -4
  409. package/.medusa/server/src/workflows/product/workflows/reject-product.d.ts +8 -1
  410. package/.medusa/server/src/workflows/product/workflows/reject-product.js +42 -38
  411. package/.medusa/server/src/workflows/product/workflows/request-product-change.d.ts +25 -0
  412. package/.medusa/server/src/workflows/product/workflows/request-product-change.js +69 -0
  413. package/.medusa/server/src/workflows/product/workflows/update-products.d.ts +39 -3
  414. package/.medusa/server/src/workflows/product/workflows/update-products.js +148 -10
  415. package/.medusa/server/src/workflows/product-attribute/events.d.ts +19 -0
  416. package/.medusa/server/src/workflows/product-attribute/events.js +23 -0
  417. package/.medusa/server/src/workflows/{subscription → product-attribute}/index.d.ts +1 -0
  418. package/.medusa/server/src/workflows/{subscription → product-attribute}/index.js +2 -1
  419. package/.medusa/server/src/workflows/product-attribute/steps/create-product-attribute-values.d.ts +37 -0
  420. package/.medusa/server/src/workflows/product-attribute/steps/create-product-attribute-values.js +18 -0
  421. package/.medusa/server/src/workflows/product-attribute/steps/create-product-attributes.d.ts +44 -0
  422. package/.medusa/server/src/workflows/product-attribute/steps/create-product-attributes.js +18 -0
  423. package/.medusa/server/src/workflows/{product → product-attribute}/steps/delete-product-attribute-values.d.ts +1 -0
  424. package/.medusa/server/src/workflows/product-attribute/steps/delete-product-attribute-values.js +18 -0
  425. package/.medusa/server/src/workflows/{product → product-attribute}/steps/delete-product-attributes.d.ts +1 -0
  426. package/.medusa/server/src/workflows/product-attribute/steps/delete-product-attributes.js +18 -0
  427. package/.medusa/server/src/workflows/product-attribute/steps/index.d.ts +10 -0
  428. package/.medusa/server/src/workflows/product-attribute/steps/index.js +27 -0
  429. package/.medusa/server/src/workflows/product-attribute/steps/update-product-attribute-values.d.ts +38 -0
  430. package/.medusa/server/src/workflows/product-attribute/steps/update-product-attribute-values.js +23 -0
  431. package/.medusa/server/src/workflows/product-attribute/steps/update-product-attributes.d.ts +38 -0
  432. package/.medusa/server/src/workflows/{product → product-attribute}/steps/update-product-attributes.js +7 -6
  433. package/.medusa/server/src/workflows/product-attribute/steps/upsert-product-attribute-values.d.ts +43 -0
  434. package/.medusa/server/src/workflows/product-attribute/steps/upsert-product-attribute-values.js +51 -0
  435. package/.medusa/server/src/workflows/product-attribute/steps/upsert-product-options-for-axis.d.ts +7 -0
  436. package/.medusa/server/src/workflows/product-attribute/steps/upsert-product-options-for-axis.js +59 -0
  437. package/.medusa/server/src/workflows/product-attribute/steps/validate-attribute-accepts-values.d.ts +6 -0
  438. package/.medusa/server/src/workflows/product-attribute/steps/validate-attribute-accepts-values.js +20 -0
  439. package/.medusa/server/src/workflows/product-attribute/steps/validate-product-attribute-input.d.ts +7 -0
  440. package/.medusa/server/src/workflows/product-attribute/steps/validate-product-attribute-input.js +20 -0
  441. package/.medusa/server/src/workflows/product-attribute/workflows/add-product-attribute.d.ts +52 -0
  442. package/.medusa/server/src/workflows/product-attribute/workflows/add-product-attribute.js +120 -0
  443. package/.medusa/server/src/workflows/product-attribute/workflows/batch-product-attribute-values.d.ts +23 -0
  444. package/.medusa/server/src/workflows/product-attribute/workflows/batch-product-attribute-values.js +252 -0
  445. package/.medusa/server/src/workflows/product-attribute/workflows/create-product-attribute-values.d.ts +18 -0
  446. package/.medusa/server/src/workflows/product-attribute/workflows/create-product-attribute-values.js +26 -0
  447. package/.medusa/server/src/workflows/product-attribute/workflows/create-product-attributes.d.ts +19 -0
  448. package/.medusa/server/src/workflows/product-attribute/workflows/create-product-attributes.js +64 -0
  449. package/.medusa/server/src/workflows/product-attribute/workflows/delete-product-attribute-values.d.ts +16 -0
  450. package/.medusa/server/src/workflows/product-attribute/workflows/delete-product-attribute-values.js +40 -0
  451. package/.medusa/server/src/workflows/product-attribute/workflows/delete-product-attributes.d.ts +23 -0
  452. package/.medusa/server/src/workflows/product-attribute/workflows/delete-product-attributes.js +31 -0
  453. package/.medusa/server/src/workflows/product-attribute/workflows/detach-product-attribute.d.ts +17 -0
  454. package/.medusa/server/src/workflows/product-attribute/workflows/detach-product-attribute.js +62 -0
  455. package/.medusa/server/src/workflows/product-attribute/workflows/index.d.ts +13 -0
  456. package/.medusa/server/src/workflows/product-attribute/workflows/index.js +30 -0
  457. package/.medusa/server/src/workflows/product-attribute/workflows/materialize-product-attributes.d.ts +135 -0
  458. package/.medusa/server/src/workflows/product-attribute/workflows/materialize-product-attributes.js +43 -0
  459. package/.medusa/server/src/workflows/product-attribute/workflows/sync-product-attribute-options.d.ts +24 -0
  460. package/.medusa/server/src/workflows/product-attribute/workflows/sync-product-attribute-options.js +27 -0
  461. package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attribute-values.d.ts +18 -0
  462. package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attribute-values.js +27 -0
  463. package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attribute.d.ts +23 -0
  464. package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attribute.js +67 -0
  465. package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attributes.d.ts +18 -0
  466. package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attributes.js +27 -0
  467. package/.medusa/server/src/workflows/product-attribute/workflows/upsert-product-attribute-values.d.ts +18 -0
  468. package/.medusa/server/src/workflows/product-attribute/workflows/upsert-product-attribute-values.js +26 -0
  469. package/.medusa/server/src/workflows/product-edit/events.d.ts +13 -0
  470. package/.medusa/server/src/workflows/product-edit/events.js +17 -0
  471. package/.medusa/server/src/workflows/product-edit/index.d.ts +1 -0
  472. package/.medusa/server/src/workflows/product-edit/index.js +2 -1
  473. package/.medusa/server/src/workflows/product-edit/steps/add-product-change-action.d.ts +38 -0
  474. package/.medusa/server/src/workflows/product-edit/steps/add-product-change-action.js +18 -0
  475. package/.medusa/server/src/workflows/product-edit/steps/cancel-product-change.d.ts +38 -2
  476. package/.medusa/server/src/workflows/product-edit/steps/cancel-product-change.js +28 -10
  477. package/.medusa/server/src/workflows/product-edit/steps/confirm-product-change-validation.d.ts +15 -0
  478. package/.medusa/server/src/workflows/product-edit/steps/confirm-product-change-validation.js +25 -0
  479. package/.medusa/server/src/workflows/product-edit/steps/confirm-product-changes.d.ts +46 -3
  480. package/.medusa/server/src/workflows/product-edit/steps/confirm-product-changes.js +44 -7
  481. package/.medusa/server/src/workflows/product-edit/steps/create-product-change-actions.d.ts +41 -14
  482. package/.medusa/server/src/workflows/product-edit/steps/create-product-change-actions.js +20 -11
  483. package/.medusa/server/src/workflows/product-edit/steps/create-product-changes.d.ts +46 -16
  484. package/.medusa/server/src/workflows/product-edit/steps/create-product-changes.js +11 -18
  485. package/.medusa/server/src/workflows/product-edit/steps/decline-product-change.d.ts +44 -3
  486. package/.medusa/server/src/workflows/product-edit/steps/decline-product-change.js +37 -10
  487. package/.medusa/server/src/workflows/product-edit/steps/index.d.ts +5 -3
  488. package/.medusa/server/src/workflows/product-edit/steps/index.js +6 -4
  489. package/.medusa/server/src/workflows/product-edit/steps/update-product-change-actions.d.ts +49 -0
  490. package/.medusa/server/src/workflows/product-edit/steps/update-product-change-actions.js +34 -0
  491. package/.medusa/server/src/workflows/product-edit/steps/validate-no-pending-product-change.d.ts +7 -7
  492. package/.medusa/server/src/workflows/product-edit/steps/validate-no-pending-product-change.js +29 -13
  493. package/.medusa/server/src/workflows/product-edit/steps/validate-product-change-is-pending.d.ts +10 -0
  494. package/.medusa/server/src/workflows/product-edit/steps/validate-product-change-is-pending.js +14 -0
  495. package/.medusa/server/src/workflows/product-edit/workflows/apply-product-attribute-change-actions.d.ts +23 -0
  496. package/.medusa/server/src/workflows/product-edit/workflows/apply-product-attribute-change-actions.js +139 -0
  497. package/.medusa/server/src/workflows/product-edit/workflows/apply-product-change-actions.d.ts +38 -0
  498. package/.medusa/server/src/workflows/product-edit/workflows/apply-product-change-actions.js +191 -0
  499. package/.medusa/server/src/workflows/product-edit/workflows/auto-confirm-product-change.d.ts +14 -13
  500. package/.medusa/server/src/workflows/product-edit/workflows/auto-confirm-product-change.js +14 -22
  501. package/.medusa/server/src/workflows/product-edit/workflows/cancel-product-change.d.ts +17 -0
  502. package/.medusa/server/src/workflows/product-edit/workflows/cancel-product-change.js +35 -0
  503. package/.medusa/server/src/workflows/product-edit/workflows/confirm-product-change.d.ts +30 -0
  504. package/.medusa/server/src/workflows/product-edit/workflows/confirm-product-change.js +55 -0
  505. package/.medusa/server/src/workflows/product-edit/workflows/create-product-change.d.ts +17 -0
  506. package/.medusa/server/src/workflows/product-edit/workflows/create-product-change.js +26 -0
  507. package/.medusa/server/src/workflows/product-edit/workflows/index.d.ts +10 -8
  508. package/.medusa/server/src/workflows/product-edit/workflows/index.js +11 -9
  509. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-delete-product.d.ts +14 -17
  510. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-delete-product.js +21 -46
  511. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-attributes.d.ts +55 -0
  512. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-attributes.js +198 -0
  513. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-fields.d.ts +22 -15
  514. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-fields.js +126 -50
  515. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-variants.d.ts +35 -0
  516. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-variants.js +108 -0
  517. package/.medusa/server/src/workflows/product-edit/workflows/record-product-audit-change.d.ts +36 -0
  518. package/.medusa/server/src/workflows/product-edit/workflows/record-product-audit-change.js +53 -0
  519. package/.medusa/server/src/workflows/product-edit/workflows/reject-product-change.d.ts +18 -0
  520. package/.medusa/server/src/workflows/product-edit/workflows/reject-product-change.js +36 -0
  521. package/.medusa/server/src/workflows/product-edit/workflows/stage-product-change.d.ts +35 -0
  522. package/.medusa/server/src/workflows/product-edit/workflows/stage-product-change.js +57 -0
  523. package/.medusa/server/src/workflows/seller/workflows/create-sellers.d.ts +20 -2
  524. package/.medusa/server/src/workflows/seller/workflows/create-sellers.js +1 -1
  525. package/.medusa/server/src/workflows/seller/workflows/update-seller-address.d.ts +14 -2
  526. package/.medusa/server/src/workflows/seller/workflows/update-seller-address.js +1 -1
  527. package/.medusa/server/src/workflows/seller/workflows/update-seller-payment-details.d.ts +14 -2
  528. package/.medusa/server/src/workflows/seller/workflows/update-seller-payment-details.js +1 -1
  529. package/.medusa/server/src/workflows/seller/workflows/update-seller-professional-details.d.ts +14 -2
  530. package/.medusa/server/src/workflows/seller/workflows/update-seller-professional-details.js +1 -1
  531. package/.medusa/server/src/workflows/seller/workflows/update-seller.d.ts +14 -2
  532. package/.medusa/server/src/workflows/seller/workflows/update-seller.js +1 -1
  533. package/package.json +1 -1
  534. package/.medusa/server/src/api/admin/product-brands/[id]/route.d.ts +0 -7
  535. package/.medusa/server/src/api/admin/product-brands/[id]/route.js +0 -51
  536. package/.medusa/server/src/api/admin/product-brands/[id]/sellers/route.d.ts +0 -3
  537. package/.medusa/server/src/api/admin/product-brands/[id]/sellers/route.js +0 -20
  538. package/.medusa/server/src/api/admin/product-brands/middlewares.js +0 -49
  539. package/.medusa/server/src/api/admin/product-brands/query-config.d.ts +0 -12
  540. package/.medusa/server/src/api/admin/product-brands/query-config.js +0 -24
  541. package/.medusa/server/src/api/admin/product-brands/route.d.ts +0 -6
  542. package/.medusa/server/src/api/admin/product-brands/route.js +0 -38
  543. package/.medusa/server/src/api/admin/product-brands/validators.d.ts +0 -284
  544. package/.medusa/server/src/api/admin/product-brands/validators.js +0 -41
  545. package/.medusa/server/src/api/admin/products/batch/route.d.ts +0 -4
  546. package/.medusa/server/src/api/admin/products/batch/route.js +0 -36
  547. package/.medusa/server/src/api/admin/subscription-plans/[id]/overrides/[override_id]/route.d.ts +0 -6
  548. package/.medusa/server/src/api/admin/subscription-plans/[id]/overrides/[override_id]/route.js +0 -43
  549. package/.medusa/server/src/api/admin/subscription-plans/[id]/overrides/route.d.ts +0 -4
  550. package/.medusa/server/src/api/admin/subscription-plans/[id]/overrides/route.js +0 -24
  551. package/.medusa/server/src/api/admin/subscription-plans/[id]/route.d.ts +0 -6
  552. package/.medusa/server/src/api/admin/subscription-plans/[id]/route.js +0 -43
  553. package/.medusa/server/src/api/admin/subscription-plans/middlewares.d.ts +0 -2
  554. package/.medusa/server/src/api/admin/subscription-plans/middlewares.js +0 -81
  555. package/.medusa/server/src/api/admin/subscription-plans/query-config.d.ts +0 -17
  556. package/.medusa/server/src/api/admin/subscription-plans/query-config.js +0 -43
  557. package/.medusa/server/src/api/admin/subscription-plans/route.d.ts +0 -5
  558. package/.medusa/server/src/api/admin/subscription-plans/route.js +0 -35
  559. package/.medusa/server/src/api/admin/subscription-plans/validators.d.ts +0 -117
  560. package/.medusa/server/src/api/admin/subscription-plans/validators.js +0 -42
  561. package/.medusa/server/src/api/store/product-brands/[id]/route.d.ts +0 -2
  562. package/.medusa/server/src/api/store/product-brands/[id]/route.js +0 -18
  563. package/.medusa/server/src/api/store/product-brands/middlewares.d.ts +0 -2
  564. package/.medusa/server/src/api/store/product-brands/middlewares.js +0 -23
  565. package/.medusa/server/src/api/store/product-brands/query-config.d.ts +0 -12
  566. package/.medusa/server/src/api/store/product-brands/query-config.js +0 -23
  567. package/.medusa/server/src/api/store/product-brands/route.d.ts +0 -2
  568. package/.medusa/server/src/api/store/product-brands/route.js +0 -21
  569. package/.medusa/server/src/api/store/product-brands/validators.d.ts +0 -215
  570. package/.medusa/server/src/api/store/product-brands/validators.js +0 -21
  571. package/.medusa/server/src/api/utils/wrap-variants-with-offers-inventory.d.ts +0 -12
  572. package/.medusa/server/src/api/utils/wrap-variants-with-offers-inventory.js +0 -165
  573. package/.medusa/server/src/api/utils/wrap-variants-with-offers-prices.d.ts +0 -12
  574. package/.medusa/server/src/api/utils/wrap-variants-with-offers-prices.js +0 -64
  575. package/.medusa/server/src/api/vendor/product-brands/[id]/route.d.ts +0 -3
  576. package/.medusa/server/src/api/vendor/product-brands/[id]/route.js +0 -18
  577. package/.medusa/server/src/api/vendor/product-brands/middlewares.js +0 -23
  578. package/.medusa/server/src/api/vendor/product-brands/query-config.d.ts +0 -12
  579. package/.medusa/server/src/api/vendor/product-brands/query-config.js +0 -24
  580. package/.medusa/server/src/api/vendor/product-brands/route.d.ts +0 -3
  581. package/.medusa/server/src/api/vendor/product-brands/route.js +0 -21
  582. package/.medusa/server/src/api/vendor/product-brands/validators.d.ts +0 -221
  583. package/.medusa/server/src/api/vendor/product-brands/validators.js +0 -22
  584. package/.medusa/server/src/api/vendor/subscription/middlewares.d.ts +0 -2
  585. package/.medusa/server/src/api/vendor/subscription/middlewares.js +0 -28
  586. package/.medusa/server/src/api/vendor/subscription/route.d.ts +0 -3
  587. package/.medusa/server/src/api/vendor/subscription/route.js +0 -31
  588. package/.medusa/server/src/links/brand-seller-link.js +0 -16
  589. package/.medusa/server/src/links/offer-price-set-link.js +0 -15
  590. package/.medusa/server/src/modules/product/index.d.ts +0 -7
  591. package/.medusa/server/src/modules/product/index.js +0 -14
  592. package/.medusa/server/src/modules/product/migrations/Migration20260414141012.js +0 -169
  593. package/.medusa/server/src/modules/product/migrations/Migration20260415151424.js +0 -14
  594. package/.medusa/server/src/modules/product/migrations/Migration20260416104248.js +0 -14
  595. package/.medusa/server/src/modules/product/migrations/Migration20260416105443.d.ts +0 -5
  596. package/.medusa/server/src/modules/product/migrations/Migration20260416105443.js +0 -16
  597. package/.medusa/server/src/modules/product/migrations/Migration20260421093258.d.ts +0 -5
  598. package/.medusa/server/src/modules/product/migrations/Migration20260421093258.js +0 -22
  599. package/.medusa/server/src/modules/product/migrations/Migration20260422105949.d.ts +0 -5
  600. package/.medusa/server/src/modules/product/migrations/Migration20260422105949.js +0 -32
  601. package/.medusa/server/src/modules/product/migrations/Migration20260422112250.d.ts +0 -5
  602. package/.medusa/server/src/modules/product/migrations/Migration20260422112250.js +0 -16
  603. package/.medusa/server/src/modules/product/migrations/Migration20260424120000.d.ts +0 -5
  604. package/.medusa/server/src/modules/product/migrations/Migration20260424120000.js +0 -16
  605. package/.medusa/server/src/modules/product/migrations/Migration20260427140959.d.ts +0 -5
  606. package/.medusa/server/src/modules/product/migrations/Migration20260427140959.js +0 -20
  607. package/.medusa/server/src/modules/product/migrations/Migration20260427141021.d.ts +0 -5
  608. package/.medusa/server/src/modules/product/migrations/Migration20260427141021.js +0 -16
  609. package/.medusa/server/src/modules/product/migrations/Migration20260428115720.d.ts +0 -5
  610. package/.medusa/server/src/modules/product/migrations/Migration20260428115720.js +0 -16
  611. package/.medusa/server/src/modules/product/migrations/Migration20260430143600.d.ts +0 -5
  612. package/.medusa/server/src/modules/product/migrations/Migration20260430143600.js +0 -15
  613. package/.medusa/server/src/modules/product/migrations/Migration20260430144500.d.ts +0 -5
  614. package/.medusa/server/src/modules/product/migrations/Migration20260430144500.js +0 -23
  615. package/.medusa/server/src/modules/product/migrations/Migration20260430150000.d.ts +0 -5
  616. package/.medusa/server/src/modules/product/migrations/Migration20260430150000.js +0 -14
  617. package/.medusa/server/src/modules/product/migrations/Migration20260520120000.d.ts +0 -5
  618. package/.medusa/server/src/modules/product/migrations/Migration20260520120000.js +0 -16
  619. package/.medusa/server/src/modules/product/models/index.d.ts +0 -13
  620. package/.medusa/server/src/modules/product/models/index.js +0 -33
  621. package/.medusa/server/src/modules/product/models/product-attribute-value.d.ts +0 -1676
  622. package/.medusa/server/src/modules/product/models/product-attribute-value.js +0 -38
  623. package/.medusa/server/src/modules/product/models/product-attribute.d.ts +0 -1597
  624. package/.medusa/server/src/modules/product/models/product-attribute.js +0 -57
  625. package/.medusa/server/src/modules/product/models/product-brand.d.ts +0 -539
  626. package/.medusa/server/src/modules/product/models/product-brand.js +0 -34
  627. package/.medusa/server/src/modules/product/models/product-category.d.ts +0 -1658
  628. package/.medusa/server/src/modules/product/models/product-category.js +0 -55
  629. package/.medusa/server/src/modules/product/models/product-change-action.d.ts +0 -1081
  630. package/.medusa/server/src/modules/product/models/product-change.d.ts +0 -547
  631. package/.medusa/server/src/modules/product/models/product-change.js +0 -50
  632. package/.medusa/server/src/modules/product/models/product-collection.d.ts +0 -540
  633. package/.medusa/server/src/modules/product/models/product-collection.js +0 -27
  634. package/.medusa/server/src/modules/product/models/product-image.d.ts +0 -1733
  635. package/.medusa/server/src/modules/product/models/product-image.js +0 -51
  636. package/.medusa/server/src/modules/product/models/product-tag.d.ts +0 -549
  637. package/.medusa/server/src/modules/product/models/product-tag.js +0 -26
  638. package/.medusa/server/src/modules/product/models/product-type.d.ts +0 -541
  639. package/.medusa/server/src/modules/product/models/product-type.js +0 -26
  640. package/.medusa/server/src/modules/product/models/product-variant-product-image.d.ts +0 -3352
  641. package/.medusa/server/src/modules/product/models/product-variant-product-image.js +0 -19
  642. package/.medusa/server/src/modules/product/models/product-variant.d.ts +0 -1617
  643. package/.medusa/server/src/modules/product/models/product-variant.js +0 -84
  644. package/.medusa/server/src/modules/product/models/product.d.ts +0 -547
  645. package/.medusa/server/src/modules/product/models/product.js +0 -137
  646. package/.medusa/server/src/modules/product/repositories/product-category.d.ts +0 -53
  647. package/.medusa/server/src/modules/product/repositories/product-category.js +0 -381
  648. package/.medusa/server/src/modules/product/service.d.ts +0 -11013
  649. package/.medusa/server/src/modules/product/service.js +0 -1471
  650. package/.medusa/server/src/modules/product/services/product-category.d.ts +0 -37
  651. package/.medusa/server/src/modules/product/services/product-category.js +0 -166
  652. package/.medusa/server/src/modules/subscription/index.d.ts +0 -35
  653. package/.medusa/server/src/modules/subscription/migrations/Migration20260324135903.d.ts +0 -5
  654. package/.medusa/server/src/modules/subscription/migrations/Migration20260324135903.js +0 -24
  655. package/.medusa/server/src/modules/subscription/models/index.d.ts +0 -2
  656. package/.medusa/server/src/modules/subscription/models/index.js +0 -11
  657. package/.medusa/server/src/modules/subscription/models/subscription-override.d.ts +0 -20
  658. package/.medusa/server/src/modules/subscription/models/subscription-override.js +0 -36
  659. package/.medusa/server/src/modules/subscription/models/subscription-plan.d.ts +0 -20
  660. package/.medusa/server/src/modules/subscription/models/subscription-plan.js +0 -32
  661. package/.medusa/server/src/modules/subscription/service.d.ts +0 -49
  662. package/.medusa/server/src/modules/subscription/service.js +0 -17
  663. package/.medusa/server/src/workflows/cart/hooks/validate-add-to-cart-stock.js +0 -52
  664. package/.medusa/server/src/workflows/cart/hooks/validate-update-line-item-stock.js +0 -60
  665. package/.medusa/server/src/workflows/cart/steps/calculate-offer-prices.d.ts +0 -19
  666. package/.medusa/server/src/workflows/cart/steps/calculate-offer-prices.js +0 -39
  667. package/.medusa/server/src/workflows/cart/steps/decorate-line-item-with-offer.d.ts +0 -8
  668. package/.medusa/server/src/workflows/cart/steps/decorate-line-item-with-offer.js +0 -45
  669. package/.medusa/server/src/workflows/cart/steps/get-line-item-actions.d.ts +0 -21
  670. package/.medusa/server/src/workflows/cart/steps/get-line-item-actions.js +0 -85
  671. package/.medusa/server/src/workflows/cart/workflows/add-to-cart.d.ts +0 -12
  672. package/.medusa/server/src/workflows/cart/workflows/add-to-cart.js +0 -235
  673. package/.medusa/server/src/workflows/cart/workflows/update-line-item-in-cart.d.ts +0 -16
  674. package/.medusa/server/src/workflows/cart/workflows/update-line-item-in-cart.js +0 -87
  675. package/.medusa/server/src/workflows/product/steps/associate-sellers-with-product-brand.d.ts +0 -8
  676. package/.medusa/server/src/workflows/product/steps/associate-sellers-with-product-brand.js +0 -26
  677. package/.medusa/server/src/workflows/product/steps/batch-link-products-in-category.d.ts +0 -7
  678. package/.medusa/server/src/workflows/product/steps/batch-link-products-in-category.js +0 -61
  679. package/.medusa/server/src/workflows/product/steps/batch-product-attributes.d.ts +0 -11
  680. package/.medusa/server/src/workflows/product/steps/batch-product-attributes.js +0 -16
  681. package/.medusa/server/src/workflows/product/steps/create-product-attribute-values.d.ts +0 -6
  682. package/.medusa/server/src/workflows/product/steps/create-product-attribute-values.js +0 -17
  683. package/.medusa/server/src/workflows/product/steps/create-product-attributes.d.ts +0 -2
  684. package/.medusa/server/src/workflows/product/steps/create-product-attributes.js +0 -17
  685. package/.medusa/server/src/workflows/product/steps/create-product-brands.d.ts +0 -2
  686. package/.medusa/server/src/workflows/product/steps/create-product-brands.js +0 -17
  687. package/.medusa/server/src/workflows/product/steps/create-product-categories.d.ts +0 -1548
  688. package/.medusa/server/src/workflows/product/steps/create-product-categories.js +0 -18
  689. package/.medusa/server/src/workflows/product/steps/create-product-variants.d.ts +0 -2
  690. package/.medusa/server/src/workflows/product/steps/create-product-variants.js +0 -18
  691. package/.medusa/server/src/workflows/product/steps/create-products.d.ts +0 -2
  692. package/.medusa/server/src/workflows/product/steps/create-products.js +0 -17
  693. package/.medusa/server/src/workflows/product/steps/delete-product-attribute-values.js +0 -17
  694. package/.medusa/server/src/workflows/product/steps/delete-product-attributes.js +0 -17
  695. package/.medusa/server/src/workflows/product/steps/delete-product-brands.d.ts +0 -1
  696. package/.medusa/server/src/workflows/product/steps/delete-product-brands.js +0 -17
  697. package/.medusa/server/src/workflows/product/steps/delete-product-categories.d.ts +0 -1
  698. package/.medusa/server/src/workflows/product/steps/delete-product-categories.js +0 -17
  699. package/.medusa/server/src/workflows/product/steps/delete-product-variants.d.ts +0 -1
  700. package/.medusa/server/src/workflows/product/steps/delete-product-variants.js +0 -17
  701. package/.medusa/server/src/workflows/product/steps/delete-products.d.ts +0 -1
  702. package/.medusa/server/src/workflows/product/steps/delete-products.js +0 -17
  703. package/.medusa/server/src/workflows/product/steps/detach-sellers-from-product-brand.d.ts +0 -8
  704. package/.medusa/server/src/workflows/product/steps/detach-sellers-from-product-brand.js +0 -26
  705. package/.medusa/server/src/workflows/product/steps/remove-attribute-from-product.d.ts +0 -6
  706. package/.medusa/server/src/workflows/product/steps/remove-attribute-from-product.js +0 -11
  707. package/.medusa/server/src/workflows/product/steps/update-product-attribute-values.d.ts +0 -7
  708. package/.medusa/server/src/workflows/product/steps/update-product-attribute-values.js +0 -22
  709. package/.medusa/server/src/workflows/product/steps/update-product-attributes.d.ts +0 -7
  710. package/.medusa/server/src/workflows/product/steps/update-product-brands.d.ts +0 -7
  711. package/.medusa/server/src/workflows/product/steps/update-product-brands.js +0 -28
  712. package/.medusa/server/src/workflows/product/steps/update-product-categories.d.ts +0 -1552
  713. package/.medusa/server/src/workflows/product/steps/update-product-categories.js +0 -20
  714. package/.medusa/server/src/workflows/product/steps/update-product-variants.d.ts +0 -10
  715. package/.medusa/server/src/workflows/product/steps/update-product-variants.js +0 -32
  716. package/.medusa/server/src/workflows/product/steps/update-products.d.ts +0 -10
  717. package/.medusa/server/src/workflows/product/steps/update-products.js +0 -33
  718. package/.medusa/server/src/workflows/product/steps/upsert-product-attribute-values.d.ts +0 -5
  719. package/.medusa/server/src/workflows/product/steps/upsert-product-attribute-values.js +0 -30
  720. package/.medusa/server/src/workflows/product/steps/validate-attribute-accepts-values.d.ts +0 -5
  721. package/.medusa/server/src/workflows/product/steps/validate-attribute-accepts-values.js +0 -19
  722. package/.medusa/server/src/workflows/product/steps/validate-confirm-products.d.ts +0 -3
  723. package/.medusa/server/src/workflows/product/steps/validate-confirm-products.js +0 -14
  724. package/.medusa/server/src/workflows/product/steps/validate-delete-product-attribute-values.d.ts +0 -5
  725. package/.medusa/server/src/workflows/product/steps/validate-delete-product-attribute-values.js +0 -19
  726. package/.medusa/server/src/workflows/product/steps/validate-delete-product-attributes.d.ts +0 -5
  727. package/.medusa/server/src/workflows/product/steps/validate-delete-product-attributes.js +0 -30
  728. package/.medusa/server/src/workflows/product/steps/validate-reject-product.d.ts +0 -3
  729. package/.medusa/server/src/workflows/product/steps/validate-reject-product.js +0 -12
  730. package/.medusa/server/src/workflows/product/steps/validate-request-changes.d.ts +0 -3
  731. package/.medusa/server/src/workflows/product/steps/validate-request-changes.js +0 -12
  732. package/.medusa/server/src/workflows/product/steps/validate-resubmit-product.d.ts +0 -3
  733. package/.medusa/server/src/workflows/product/steps/validate-resubmit-product.js +0 -12
  734. package/.medusa/server/src/workflows/product/workflows/batch-link-products-in-category.d.ts +0 -8
  735. package/.medusa/server/src/workflows/product/workflows/batch-link-products-in-category.js +0 -10
  736. package/.medusa/server/src/workflows/product/workflows/batch-product-attributes.d.ts +0 -12
  737. package/.medusa/server/src/workflows/product/workflows/batch-product-attributes.js +0 -23
  738. package/.medusa/server/src/workflows/product/workflows/batch-products.d.ts +0 -3
  739. package/.medusa/server/src/workflows/product/workflows/batch-products.js +0 -86
  740. package/.medusa/server/src/workflows/product/workflows/create-product-attribute-values.d.ts +0 -8
  741. package/.medusa/server/src/workflows/product/workflows/create-product-attribute-values.js +0 -21
  742. package/.medusa/server/src/workflows/product/workflows/create-product-attributes.d.ts +0 -7
  743. package/.medusa/server/src/workflows/product/workflows/create-product-attributes.js +0 -18
  744. package/.medusa/server/src/workflows/product/workflows/create-product-brands.d.ts +0 -7
  745. package/.medusa/server/src/workflows/product/workflows/create-product-brands.js +0 -19
  746. package/.medusa/server/src/workflows/product/workflows/create-product-categories.d.ts +0 -1553
  747. package/.medusa/server/src/workflows/product/workflows/create-product-categories.js +0 -18
  748. package/.medusa/server/src/workflows/product/workflows/create-product-variants.d.ts +0 -3
  749. package/.medusa/server/src/workflows/product/workflows/create-product-variants.js +0 -25
  750. package/.medusa/server/src/workflows/product/workflows/delete-product-attribute-values.d.ts +0 -6
  751. package/.medusa/server/src/workflows/product/workflows/delete-product-attribute-values.js +0 -20
  752. package/.medusa/server/src/workflows/product/workflows/delete-product-attributes.d.ts +0 -6
  753. package/.medusa/server/src/workflows/product/workflows/delete-product-attributes.js +0 -20
  754. package/.medusa/server/src/workflows/product/workflows/delete-product-brands.d.ts +0 -6
  755. package/.medusa/server/src/workflows/product/workflows/delete-product-brands.js +0 -19
  756. package/.medusa/server/src/workflows/product/workflows/delete-product-categories.d.ts +0 -6
  757. package/.medusa/server/src/workflows/product/workflows/delete-product-categories.js +0 -18
  758. package/.medusa/server/src/workflows/product/workflows/delete-product-variants.d.ts +0 -8
  759. package/.medusa/server/src/workflows/product/workflows/delete-product-variants.js +0 -24
  760. package/.medusa/server/src/workflows/product/workflows/delete-products.d.ts +0 -6
  761. package/.medusa/server/src/workflows/product/workflows/delete-products.js +0 -19
  762. package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product-brand.d.ts +0 -14
  763. package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product-brand.js +0 -21
  764. package/.medusa/server/src/workflows/product/workflows/remove-attribute-from-product.d.ts +0 -7
  765. package/.medusa/server/src/workflows/product/workflows/remove-attribute-from-product.js +0 -20
  766. package/.medusa/server/src/workflows/product/workflows/request-product-changes.d.ts +0 -11
  767. package/.medusa/server/src/workflows/product/workflows/request-product-changes.js +0 -61
  768. package/.medusa/server/src/workflows/product/workflows/resubmit-product.d.ts +0 -8
  769. package/.medusa/server/src/workflows/product/workflows/resubmit-product.js +0 -48
  770. package/.medusa/server/src/workflows/product/workflows/submit-seller-products.d.ts +0 -3
  771. package/.medusa/server/src/workflows/product/workflows/submit-seller-products.js +0 -76
  772. package/.medusa/server/src/workflows/product/workflows/update-product-attribute-values.d.ts +0 -8
  773. package/.medusa/server/src/workflows/product/workflows/update-product-attribute-values.js +0 -18
  774. package/.medusa/server/src/workflows/product/workflows/update-product-attributes.d.ts +0 -8
  775. package/.medusa/server/src/workflows/product/workflows/update-product-attributes.js +0 -18
  776. package/.medusa/server/src/workflows/product/workflows/update-product-brands.d.ts +0 -8
  777. package/.medusa/server/src/workflows/product/workflows/update-product-brands.js +0 -19
  778. package/.medusa/server/src/workflows/product/workflows/update-product-categories.d.ts +0 -1555
  779. package/.medusa/server/src/workflows/product/workflows/update-product-categories.js +0 -18
  780. package/.medusa/server/src/workflows/product/workflows/update-product-variants.d.ts +0 -3
  781. package/.medusa/server/src/workflows/product/workflows/update-product-variants.js +0 -36
  782. package/.medusa/server/src/workflows/product/workflows/upsert-product-attribute-values.d.ts +0 -8
  783. package/.medusa/server/src/workflows/product/workflows/upsert-product-attribute-values.js +0 -21
  784. package/.medusa/server/src/workflows/product-edit/steps/retrieve-product-with-change.d.ts +0 -5
  785. package/.medusa/server/src/workflows/product-edit/steps/retrieve-product-with-change.js +0 -11
  786. package/.medusa/server/src/workflows/product-edit/steps/validate-product-change-pending.d.ts +0 -11
  787. package/.medusa/server/src/workflows/product-edit/steps/validate-product-change-pending.js +0 -21
  788. package/.medusa/server/src/workflows/product-edit/workflows/cancel-product-edit.d.ts +0 -19
  789. package/.medusa/server/src/workflows/product-edit/workflows/cancel-product-edit.js +0 -40
  790. package/.medusa/server/src/workflows/product-edit/workflows/confirm-product-edit.d.ts +0 -21
  791. package/.medusa/server/src/workflows/product-edit/workflows/confirm-product-edit.js +0 -44
  792. package/.medusa/server/src/workflows/product-edit/workflows/decline-product-edit.d.ts +0 -16
  793. package/.medusa/server/src/workflows/product-edit/workflows/decline-product-edit.js +0 -42
  794. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-add-attribute.d.ts +0 -19
  795. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-add-attribute.js +0 -66
  796. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-add-variant.d.ts +0 -17
  797. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-add-variant.js +0 -58
  798. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-remove-attribute.d.ts +0 -17
  799. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-remove-attribute.js +0 -62
  800. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-remove-variant.d.ts +0 -16
  801. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-remove-variant.js +0 -68
  802. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-variant.d.ts +0 -21
  803. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-variant.js +0 -89
  804. package/.medusa/server/src/workflows/subscription/steps/create-subscription-overrides.d.ts +0 -31
  805. package/.medusa/server/src/workflows/subscription/steps/create-subscription-overrides.js +0 -17
  806. package/.medusa/server/src/workflows/subscription/steps/create-subscription-plans.d.ts +0 -31
  807. package/.medusa/server/src/workflows/subscription/steps/create-subscription-plans.js +0 -17
  808. package/.medusa/server/src/workflows/subscription/steps/delete-subscription-overrides.d.ts +0 -2
  809. package/.medusa/server/src/workflows/subscription/steps/delete-subscription-overrides.js +0 -17
  810. package/.medusa/server/src/workflows/subscription/steps/delete-subscription-plans.d.ts +0 -2
  811. package/.medusa/server/src/workflows/subscription/steps/delete-subscription-plans.js +0 -17
  812. package/.medusa/server/src/workflows/subscription/steps/index.d.ts +0 -6
  813. package/.medusa/server/src/workflows/subscription/steps/index.js +0 -23
  814. package/.medusa/server/src/workflows/subscription/steps/update-subscription-overrides.d.ts +0 -31
  815. package/.medusa/server/src/workflows/subscription/steps/update-subscription-overrides.js +0 -17
  816. package/.medusa/server/src/workflows/subscription/steps/update-subscription-plans.d.ts +0 -31
  817. package/.medusa/server/src/workflows/subscription/steps/update-subscription-plans.js +0 -17
  818. package/.medusa/server/src/workflows/subscription/workflows/create-subscription-overrides.d.ts +0 -31
  819. package/.medusa/server/src/workflows/subscription/workflows/create-subscription-overrides.js +0 -11
  820. package/.medusa/server/src/workflows/subscription/workflows/create-subscription-plans.d.ts +0 -31
  821. package/.medusa/server/src/workflows/subscription/workflows/create-subscription-plans.js +0 -11
  822. package/.medusa/server/src/workflows/subscription/workflows/delete-subscription-overrides.d.ts +0 -5
  823. package/.medusa/server/src/workflows/subscription/workflows/delete-subscription-overrides.js +0 -11
  824. package/.medusa/server/src/workflows/subscription/workflows/delete-subscription-plans.d.ts +0 -5
  825. package/.medusa/server/src/workflows/subscription/workflows/delete-subscription-plans.js +0 -11
  826. package/.medusa/server/src/workflows/subscription/workflows/index.d.ts +0 -6
  827. package/.medusa/server/src/workflows/subscription/workflows/index.js +0 -23
  828. package/.medusa/server/src/workflows/subscription/workflows/update-subscription-overrides.d.ts +0 -31
  829. package/.medusa/server/src/workflows/subscription/workflows/update-subscription-overrides.js +0 -11
  830. package/.medusa/server/src/workflows/subscription/workflows/update-subscription-plans.d.ts +0 -31
  831. package/.medusa/server/src/workflows/subscription/workflows/update-subscription-plans.js +0 -11
  832. package/.medusa/server/src/workflows/utils/override-workflow.d.ts +0 -12
  833. package/.medusa/server/src/workflows/utils/override-workflow.js +0 -21
  834. /package/.medusa/server/src/links/{brand-seller-link.d.ts → offer-price-link.d.ts} +0 -0
  835. /package/.medusa/server/src/links/{offer-price-set-link.d.ts → product-variant-attribute-link.d.ts} +0 -0
  836. /package/.medusa/server/src/workflows/cart/hooks/{validate-add-to-cart-stock.d.ts → before-refreshing-payment-collection.d.ts} +0 -0
  837. /package/.medusa/server/src/workflows/cart/hooks/{validate-update-line-item-stock.d.ts → set-pricing-context.d.ts} +0 -0
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod";
2
- import { ProductStatus } from "@mercurjs/types";
3
2
  import { AdditionalData } from "@medusajs/framework/types";
4
3
  export type AdminGetProductsParamsType = z.infer<typeof AdminGetProductsParams>;
5
4
  export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
@@ -10,9 +9,12 @@ export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
10
9
  title: z.ZodOptional<z.ZodString>;
11
10
  handle: z.ZodOptional<z.ZodString>;
12
11
  seller_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
13
- status: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof ProductStatus>, "many">>;
14
- is_restricted: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
15
- brand_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
12
+ status: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<{
13
+ readonly DRAFT: "draft";
14
+ readonly PROPOSED: "proposed";
15
+ readonly PUBLISHED: "published";
16
+ readonly REJECTED: "rejected";
17
+ }>, "many">>;
16
18
  collection_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
17
19
  type_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
18
20
  category_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
@@ -21,8 +23,6 @@ export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
21
23
  ean: z.ZodOptional<z.ZodString>;
22
24
  upc: z.ZodOptional<z.ZodString>;
23
25
  barcode: z.ZodOptional<z.ZodString>;
24
- created_by: z.ZodOptional<z.ZodString>;
25
- created_by_actor: z.ZodOptional<z.ZodString>;
26
26
  created_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
27
27
  $eq: any;
28
28
  $ne: any;
@@ -144,47 +144,39 @@ export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
144
144
  $lte?: any;
145
145
  }>]>>;
146
146
  }, "strip", z.ZodTypeAny, {
147
+ seller_id?: string | string[] | undefined;
147
148
  id?: string | string[] | undefined;
148
149
  created_at?: any;
149
150
  updated_at?: any;
150
- status?: ProductStatus[] | undefined;
151
+ status?: ("draft" | "proposed" | "published" | "rejected")[] | undefined;
151
152
  q?: string | undefined;
152
- seller_id?: string | string[] | undefined;
153
153
  sku?: string | undefined;
154
154
  ean?: string | undefined;
155
155
  upc?: string | undefined;
156
- created_by?: string | undefined;
157
156
  deleted_at?: any;
158
157
  title?: string | undefined;
159
158
  handle?: string | undefined;
160
159
  collection_id?: string | string[] | undefined;
161
160
  type_id?: string | string[] | undefined;
162
161
  tag_id?: string | string[] | undefined;
163
- is_restricted?: boolean | undefined;
164
- brand_id?: string | string[] | undefined;
165
- created_by_actor?: string | undefined;
166
162
  barcode?: string | undefined;
167
163
  category_id?: string | string[] | undefined;
168
164
  }, {
165
+ seller_id?: string | string[] | undefined;
169
166
  id?: string | string[] | undefined;
170
167
  created_at?: any;
171
168
  updated_at?: any;
172
- status?: ProductStatus[] | undefined;
169
+ status?: ("draft" | "proposed" | "published" | "rejected")[] | undefined;
173
170
  q?: string | undefined;
174
- seller_id?: string | string[] | undefined;
175
171
  sku?: string | undefined;
176
172
  ean?: string | undefined;
177
173
  upc?: string | undefined;
178
- created_by?: string | undefined;
179
174
  deleted_at?: any;
180
175
  title?: string | undefined;
181
176
  handle?: string | undefined;
182
177
  collection_id?: string | string[] | undefined;
183
178
  type_id?: string | string[] | undefined;
184
179
  tag_id?: string | string[] | undefined;
185
- is_restricted?: string | boolean | undefined;
186
- brand_id?: string | string[] | undefined;
187
- created_by_actor?: string | undefined;
188
180
  barcode?: string | undefined;
189
181
  category_id?: string | string[] | undefined;
190
182
  }>, "many">>>;
@@ -194,9 +186,12 @@ export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
194
186
  title: z.ZodOptional<z.ZodString>;
195
187
  handle: z.ZodOptional<z.ZodString>;
196
188
  seller_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
197
- status: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof ProductStatus>, "many">>;
198
- is_restricted: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
199
- brand_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
189
+ status: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<{
190
+ readonly DRAFT: "draft";
191
+ readonly PROPOSED: "proposed";
192
+ readonly PUBLISHED: "published";
193
+ readonly REJECTED: "rejected";
194
+ }>, "many">>;
200
195
  collection_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
201
196
  type_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
202
197
  category_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
@@ -205,8 +200,6 @@ export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
205
200
  ean: z.ZodOptional<z.ZodString>;
206
201
  upc: z.ZodOptional<z.ZodString>;
207
202
  barcode: z.ZodOptional<z.ZodString>;
208
- created_by: z.ZodOptional<z.ZodString>;
209
- created_by_actor: z.ZodOptional<z.ZodString>;
210
203
  created_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
211
204
  $eq: any;
212
205
  $ne: any;
@@ -328,47 +321,39 @@ export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
328
321
  $lte?: any;
329
322
  }>]>>;
330
323
  }, "strip", z.ZodTypeAny, {
324
+ seller_id?: string | string[] | undefined;
331
325
  id?: string | string[] | undefined;
332
326
  created_at?: any;
333
327
  updated_at?: any;
334
- status?: ProductStatus[] | undefined;
328
+ status?: ("draft" | "proposed" | "published" | "rejected")[] | undefined;
335
329
  q?: string | undefined;
336
- seller_id?: string | string[] | undefined;
337
330
  sku?: string | undefined;
338
331
  ean?: string | undefined;
339
332
  upc?: string | undefined;
340
- created_by?: string | undefined;
341
333
  deleted_at?: any;
342
334
  title?: string | undefined;
343
335
  handle?: string | undefined;
344
336
  collection_id?: string | string[] | undefined;
345
337
  type_id?: string | string[] | undefined;
346
338
  tag_id?: string | string[] | undefined;
347
- is_restricted?: boolean | undefined;
348
- brand_id?: string | string[] | undefined;
349
- created_by_actor?: string | undefined;
350
339
  barcode?: string | undefined;
351
340
  category_id?: string | string[] | undefined;
352
341
  }, {
342
+ seller_id?: string | string[] | undefined;
353
343
  id?: string | string[] | undefined;
354
344
  created_at?: any;
355
345
  updated_at?: any;
356
- status?: ProductStatus[] | undefined;
346
+ status?: ("draft" | "proposed" | "published" | "rejected")[] | undefined;
357
347
  q?: string | undefined;
358
- seller_id?: string | string[] | undefined;
359
348
  sku?: string | undefined;
360
349
  ean?: string | undefined;
361
350
  upc?: string | undefined;
362
- created_by?: string | undefined;
363
351
  deleted_at?: any;
364
352
  title?: string | undefined;
365
353
  handle?: string | undefined;
366
354
  collection_id?: string | string[] | undefined;
367
355
  type_id?: string | string[] | undefined;
368
356
  tag_id?: string | string[] | undefined;
369
- is_restricted?: string | boolean | undefined;
370
- brand_id?: string | string[] | undefined;
371
- created_by_actor?: string | undefined;
372
357
  barcode?: string | undefined;
373
358
  category_id?: string | string[] | undefined;
374
359
  }>, "many">>>;
@@ -412,14 +397,17 @@ declare const CreateProductVariant: z.ZodObject<{
412
397
  origin_country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
413
398
  material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
414
399
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
400
+ /** Stock Medusa: maps option title -> chosen value name (e.g. `{ Color: "Blue" }`). */
401
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
415
402
  attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
416
403
  }, "strict", z.ZodTypeAny, {
417
404
  title: string;
405
+ options?: Record<string, string> | undefined;
418
406
  length?: number | null | undefined;
407
+ metadata?: Record<string, unknown> | null | undefined;
419
408
  sku?: string | null | undefined;
420
409
  ean?: string | null | undefined;
421
410
  upc?: string | null | undefined;
422
- metadata?: Record<string, unknown> | null | undefined;
423
411
  weight?: number | null | undefined;
424
412
  height?: number | null | undefined;
425
413
  width?: number | null | undefined;
@@ -435,11 +423,12 @@ declare const CreateProductVariant: z.ZodObject<{
435
423
  attribute_values?: Record<string, string | string[]> | undefined;
436
424
  }, {
437
425
  title: string;
426
+ options?: Record<string, string> | undefined;
438
427
  length?: number | null | undefined;
428
+ metadata?: Record<string, unknown> | null | undefined;
439
429
  sku?: string | null | undefined;
440
430
  ean?: string | null | undefined;
441
431
  upc?: string | null | undefined;
442
- metadata?: Record<string, unknown> | null | undefined;
443
432
  weight?: number | null | undefined;
444
433
  height?: number | null | undefined;
445
434
  width?: number | null | undefined;
@@ -497,14 +486,16 @@ declare const UpdateProductVariant: z.ZodObject<{
497
486
  max_quantity?: number | null | undefined;
498
487
  rules?: Record<string, string> | undefined;
499
488
  }>, "many">>;
489
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
500
490
  attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
501
491
  }, "strict", z.ZodTypeAny, {
492
+ options?: Record<string, string> | undefined;
502
493
  length?: number | null | undefined;
494
+ metadata?: Record<string, unknown> | null | undefined;
503
495
  id?: string | undefined;
504
496
  sku?: string | null | undefined;
505
497
  ean?: string | null | undefined;
506
498
  upc?: string | null | undefined;
507
- metadata?: Record<string, unknown> | null | undefined;
508
499
  title?: string | undefined;
509
500
  prices?: {
510
501
  id?: string | undefined;
@@ -529,12 +520,13 @@ declare const UpdateProductVariant: z.ZodObject<{
529
520
  variant_rank?: number | undefined;
530
521
  attribute_values?: Record<string, string | string[]> | undefined;
531
522
  }, {
523
+ options?: Record<string, string> | undefined;
532
524
  length?: number | null | undefined;
525
+ metadata?: Record<string, unknown> | null | undefined;
533
526
  id?: string | undefined;
534
527
  sku?: string | null | undefined;
535
528
  ean?: string | null | undefined;
536
529
  upc?: string | null | undefined;
537
- metadata?: Record<string, unknown> | null | undefined;
538
530
  title?: string | undefined;
539
531
  prices?: {
540
532
  id?: string | undefined;
@@ -651,12 +643,15 @@ declare const CreateProduct: z.ZodObject<{
651
643
  }>, "many">>;
652
644
  thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
653
645
  handle: z.ZodOptional<z.ZodString>;
654
- status: z.ZodOptional<z.ZodNativeEnum<typeof ProductStatus>>;
646
+ status: z.ZodOptional<z.ZodNativeEnum<{
647
+ readonly DRAFT: "draft";
648
+ readonly PROPOSED: "proposed";
649
+ readonly PUBLISHED: "published";
650
+ readonly REJECTED: "rejected";
651
+ }>>;
655
652
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
656
653
  type_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
657
654
  collection_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
658
- brand_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
659
- is_restricted: z.ZodOptional<z.ZodBoolean>;
660
655
  seller_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
661
656
  categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
662
657
  id: z.ZodString;
@@ -672,11 +667,22 @@ declare const CreateProduct: z.ZodObject<{
672
667
  }, {
673
668
  id: string;
674
669
  }>, "many">>;
670
+ /** Stock Medusa product options: drives variant generation. */
671
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
672
+ title: z.ZodString;
673
+ values: z.ZodArray<z.ZodString, "many">;
674
+ }, "strip", z.ZodTypeAny, {
675
+ values: string[];
676
+ title: string;
677
+ }, {
678
+ values: string[];
679
+ title: string;
680
+ }>, "many">>;
675
681
  variant_attributes: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
676
682
  attribute_id: z.ZodString;
677
683
  value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
678
684
  values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
679
- }, "strip", z.ZodTypeAny, {
685
+ }, "strict", z.ZodTypeAny, {
680
686
  attribute_id: string;
681
687
  values?: string[] | undefined;
682
688
  value_ids?: string[] | undefined;
@@ -686,15 +692,15 @@ declare const CreateProduct: z.ZodObject<{
686
692
  value_ids?: string[] | undefined;
687
693
  }>, z.ZodObject<{
688
694
  name: z.ZodString;
689
- type: z.ZodEnum<["single_select", "multi_select", "unit", "toggle", "text"]>;
695
+ type: z.ZodEnum<["single_select", "multi_select", "text", "toggle", "unit"]>;
690
696
  values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
691
697
  is_variant_axis: z.ZodOptional<z.ZodBoolean>;
692
698
  is_filterable: z.ZodOptional<z.ZodBoolean>;
693
699
  is_required: z.ZodOptional<z.ZodBoolean>;
694
700
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
695
701
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
696
- }, "strip", z.ZodTypeAny, {
697
- type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
702
+ }, "strict", z.ZodTypeAny, {
703
+ type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
698
704
  name: string;
699
705
  values?: string[] | undefined;
700
706
  metadata?: Record<string, unknown> | null | undefined;
@@ -703,7 +709,7 @@ declare const CreateProduct: z.ZodObject<{
703
709
  is_filterable?: boolean | undefined;
704
710
  is_variant_axis?: boolean | undefined;
705
711
  }, {
706
- type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
712
+ type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
707
713
  name: string;
708
714
  values?: string[] | undefined;
709
715
  metadata?: Record<string, unknown> | null | undefined;
@@ -716,7 +722,7 @@ declare const CreateProduct: z.ZodObject<{
716
722
  attribute_id: z.ZodString;
717
723
  value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
718
724
  values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
719
- }, "strip", z.ZodTypeAny, {
725
+ }, "strict", z.ZodTypeAny, {
720
726
  attribute_id: string;
721
727
  values?: string[] | undefined;
722
728
  value_ids?: string[] | undefined;
@@ -726,15 +732,15 @@ declare const CreateProduct: z.ZodObject<{
726
732
  value_ids?: string[] | undefined;
727
733
  }>, z.ZodObject<{
728
734
  name: z.ZodString;
729
- type: z.ZodEnum<["single_select", "multi_select", "unit", "toggle", "text"]>;
735
+ type: z.ZodEnum<["single_select", "multi_select", "text", "toggle", "unit"]>;
730
736
  values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
731
737
  is_variant_axis: z.ZodOptional<z.ZodBoolean>;
732
738
  is_filterable: z.ZodOptional<z.ZodBoolean>;
733
739
  is_required: z.ZodOptional<z.ZodBoolean>;
734
740
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
735
741
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
736
- }, "strip", z.ZodTypeAny, {
737
- type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
742
+ }, "strict", z.ZodTypeAny, {
743
+ type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
738
744
  name: string;
739
745
  values?: string[] | undefined;
740
746
  metadata?: Record<string, unknown> | null | undefined;
@@ -743,7 +749,7 @@ declare const CreateProduct: z.ZodObject<{
743
749
  is_filterable?: boolean | undefined;
744
750
  is_variant_axis?: boolean | undefined;
745
751
  }, {
746
- type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
752
+ type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
747
753
  name: string;
748
754
  values?: string[] | undefined;
749
755
  metadata?: Record<string, unknown> | null | undefined;
@@ -752,6 +758,7 @@ declare const CreateProduct: z.ZodObject<{
752
758
  is_filterable?: boolean | undefined;
753
759
  is_variant_axis?: boolean | undefined;
754
760
  }>]>, "many">>;
761
+ attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
755
762
  variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
756
763
  title: z.ZodString;
757
764
  sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -771,14 +778,17 @@ declare const CreateProduct: z.ZodObject<{
771
778
  origin_country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
772
779
  material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
773
780
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
781
+ /** Stock Medusa: maps option title -> chosen value name (e.g. `{ Color: "Blue" }`). */
782
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
774
783
  attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
775
784
  }, "strict", z.ZodTypeAny, {
776
785
  title: string;
786
+ options?: Record<string, string> | undefined;
777
787
  length?: number | null | undefined;
788
+ metadata?: Record<string, unknown> | null | undefined;
778
789
  sku?: string | null | undefined;
779
790
  ean?: string | null | undefined;
780
791
  upc?: string | null | undefined;
781
- metadata?: Record<string, unknown> | null | undefined;
782
792
  weight?: number | null | undefined;
783
793
  height?: number | null | undefined;
784
794
  width?: number | null | undefined;
@@ -794,11 +804,12 @@ declare const CreateProduct: z.ZodObject<{
794
804
  attribute_values?: Record<string, string | string[]> | undefined;
795
805
  }, {
796
806
  title: string;
807
+ options?: Record<string, string> | undefined;
797
808
  length?: number | null | undefined;
809
+ metadata?: Record<string, unknown> | null | undefined;
798
810
  sku?: string | null | undefined;
799
811
  ean?: string | null | undefined;
800
812
  upc?: string | null | undefined;
801
- metadata?: Record<string, unknown> | null | undefined;
802
813
  weight?: number | null | undefined;
803
814
  height?: number | null | undefined;
804
815
  width?: number | null | undefined;
@@ -826,9 +837,13 @@ declare const CreateProduct: z.ZodObject<{
826
837
  title: string;
827
838
  is_giftcard: boolean;
828
839
  discountable: boolean;
840
+ options?: {
841
+ values: string[];
842
+ title: string;
843
+ }[] | undefined;
829
844
  length?: number | null | undefined;
830
- status?: ProductStatus | undefined;
831
845
  metadata?: Record<string, unknown> | null | undefined;
846
+ status?: "draft" | "proposed" | "published" | "rejected" | undefined;
832
847
  handle?: string | undefined;
833
848
  description?: string | null | undefined;
834
849
  external_id?: string | null | undefined;
@@ -836,8 +851,6 @@ declare const CreateProduct: z.ZodObject<{
836
851
  collection_id?: string | null | undefined;
837
852
  type_id?: string | null | undefined;
838
853
  subtitle?: string | null | undefined;
839
- is_restricted?: boolean | undefined;
840
- brand_id?: string | null | undefined;
841
854
  weight?: number | null | undefined;
842
855
  height?: number | null | undefined;
843
856
  width?: number | null | undefined;
@@ -845,6 +858,7 @@ declare const CreateProduct: z.ZodObject<{
845
858
  origin_country?: string | null | undefined;
846
859
  mid_code?: string | null | undefined;
847
860
  material?: string | null | undefined;
861
+ attribute_values?: Record<string, string | string[]> | undefined;
848
862
  images?: {
849
863
  url: string;
850
864
  }[] | undefined;
@@ -860,7 +874,7 @@ declare const CreateProduct: z.ZodObject<{
860
874
  values?: string[] | undefined;
861
875
  value_ids?: string[] | undefined;
862
876
  } | {
863
- type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
877
+ type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
864
878
  name: string;
865
879
  values?: string[] | undefined;
866
880
  metadata?: Record<string, unknown> | null | undefined;
@@ -874,7 +888,7 @@ declare const CreateProduct: z.ZodObject<{
874
888
  values?: string[] | undefined;
875
889
  value_ids?: string[] | undefined;
876
890
  } | {
877
- type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
891
+ type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
878
892
  name: string;
879
893
  values?: string[] | undefined;
880
894
  metadata?: Record<string, unknown> | null | undefined;
@@ -885,11 +899,12 @@ declare const CreateProduct: z.ZodObject<{
885
899
  })[] | undefined;
886
900
  variants?: {
887
901
  title: string;
902
+ options?: Record<string, string> | undefined;
888
903
  length?: number | null | undefined;
904
+ metadata?: Record<string, unknown> | null | undefined;
889
905
  sku?: string | null | undefined;
890
906
  ean?: string | null | undefined;
891
907
  upc?: string | null | undefined;
892
- metadata?: Record<string, unknown> | null | undefined;
893
908
  weight?: number | null | undefined;
894
909
  height?: number | null | undefined;
895
910
  width?: number | null | undefined;
@@ -906,9 +921,13 @@ declare const CreateProduct: z.ZodObject<{
906
921
  }[] | undefined;
907
922
  }, {
908
923
  title: string;
924
+ options?: {
925
+ values: string[];
926
+ title: string;
927
+ }[] | undefined;
909
928
  length?: number | null | undefined;
910
- status?: ProductStatus | undefined;
911
929
  metadata?: Record<string, unknown> | null | undefined;
930
+ status?: "draft" | "proposed" | "published" | "rejected" | undefined;
912
931
  handle?: string | undefined;
913
932
  description?: string | null | undefined;
914
933
  external_id?: string | null | undefined;
@@ -916,10 +935,8 @@ declare const CreateProduct: z.ZodObject<{
916
935
  collection_id?: string | null | undefined;
917
936
  type_id?: string | null | undefined;
918
937
  subtitle?: string | null | undefined;
919
- is_restricted?: boolean | undefined;
920
938
  is_giftcard?: string | boolean | undefined;
921
939
  discountable?: string | boolean | undefined;
922
- brand_id?: string | null | undefined;
923
940
  weight?: number | null | undefined;
924
941
  height?: number | null | undefined;
925
942
  width?: number | null | undefined;
@@ -927,6 +944,7 @@ declare const CreateProduct: z.ZodObject<{
927
944
  origin_country?: string | null | undefined;
928
945
  mid_code?: string | null | undefined;
929
946
  material?: string | null | undefined;
947
+ attribute_values?: Record<string, string | string[]> | undefined;
930
948
  images?: {
931
949
  url: string;
932
950
  }[] | undefined;
@@ -942,7 +960,7 @@ declare const CreateProduct: z.ZodObject<{
942
960
  values?: string[] | undefined;
943
961
  value_ids?: string[] | undefined;
944
962
  } | {
945
- type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
963
+ type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
946
964
  name: string;
947
965
  values?: string[] | undefined;
948
966
  metadata?: Record<string, unknown> | null | undefined;
@@ -956,7 +974,7 @@ declare const CreateProduct: z.ZodObject<{
956
974
  values?: string[] | undefined;
957
975
  value_ids?: string[] | undefined;
958
976
  } | {
959
- type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
977
+ type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
960
978
  name: string;
961
979
  values?: string[] | undefined;
962
980
  metadata?: Record<string, unknown> | null | undefined;
@@ -967,11 +985,12 @@ declare const CreateProduct: z.ZodObject<{
967
985
  })[] | undefined;
968
986
  variants?: {
969
987
  title: string;
988
+ options?: Record<string, string> | undefined;
970
989
  length?: number | null | undefined;
990
+ metadata?: Record<string, unknown> | null | undefined;
971
991
  sku?: string | null | undefined;
972
992
  ean?: string | null | undefined;
973
993
  upc?: string | null | undefined;
974
- metadata?: Record<string, unknown> | null | undefined;
975
994
  weight?: number | null | undefined;
976
995
  height?: number | null | undefined;
977
996
  width?: number | null | undefined;
@@ -1011,12 +1030,15 @@ export declare const UpdateProduct: z.ZodObject<{
1011
1030
  }>, "many">>;
1012
1031
  thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1013
1032
  handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1014
- status: z.ZodOptional<z.ZodNativeEnum<typeof ProductStatus>>;
1033
+ status: z.ZodOptional<z.ZodNativeEnum<{
1034
+ readonly DRAFT: "draft";
1035
+ readonly PROPOSED: "proposed";
1036
+ readonly PUBLISHED: "published";
1037
+ readonly REJECTED: "rejected";
1038
+ }>>;
1015
1039
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1016
1040
  type_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1017
1041
  collection_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1018
- brand_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1019
- is_restricted: z.ZodOptional<z.ZodBoolean>;
1020
1042
  categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
1021
1043
  id: z.ZodString;
1022
1044
  }, "strip", z.ZodTypeAny, {
@@ -1031,11 +1053,21 @@ export declare const UpdateProduct: z.ZodObject<{
1031
1053
  }, {
1032
1054
  id: string;
1033
1055
  }>, "many">>;
1056
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
1057
+ title: z.ZodString;
1058
+ values: z.ZodArray<z.ZodString, "many">;
1059
+ }, "strip", z.ZodTypeAny, {
1060
+ values: string[];
1061
+ title: string;
1062
+ }, {
1063
+ values: string[];
1064
+ title: string;
1065
+ }>, "many">>;
1034
1066
  variant_attributes: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1035
1067
  attribute_id: z.ZodString;
1036
1068
  value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1037
1069
  values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1038
- }, "strip", z.ZodTypeAny, {
1070
+ }, "strict", z.ZodTypeAny, {
1039
1071
  attribute_id: string;
1040
1072
  values?: string[] | undefined;
1041
1073
  value_ids?: string[] | undefined;
@@ -1045,15 +1077,15 @@ export declare const UpdateProduct: z.ZodObject<{
1045
1077
  value_ids?: string[] | undefined;
1046
1078
  }>, z.ZodObject<{
1047
1079
  name: z.ZodString;
1048
- type: z.ZodEnum<["single_select", "multi_select", "unit", "toggle", "text"]>;
1080
+ type: z.ZodEnum<["single_select", "multi_select", "text", "toggle", "unit"]>;
1049
1081
  values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1050
1082
  is_variant_axis: z.ZodOptional<z.ZodBoolean>;
1051
1083
  is_filterable: z.ZodOptional<z.ZodBoolean>;
1052
1084
  is_required: z.ZodOptional<z.ZodBoolean>;
1053
1085
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1054
1086
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1055
- }, "strip", z.ZodTypeAny, {
1056
- type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
1087
+ }, "strict", z.ZodTypeAny, {
1088
+ type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
1057
1089
  name: string;
1058
1090
  values?: string[] | undefined;
1059
1091
  metadata?: Record<string, unknown> | null | undefined;
@@ -1062,7 +1094,7 @@ export declare const UpdateProduct: z.ZodObject<{
1062
1094
  is_filterable?: boolean | undefined;
1063
1095
  is_variant_axis?: boolean | undefined;
1064
1096
  }, {
1065
- type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
1097
+ type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
1066
1098
  name: string;
1067
1099
  values?: string[] | undefined;
1068
1100
  metadata?: Record<string, unknown> | null | undefined;
@@ -1075,7 +1107,7 @@ export declare const UpdateProduct: z.ZodObject<{
1075
1107
  attribute_id: z.ZodString;
1076
1108
  value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1077
1109
  values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1078
- }, "strip", z.ZodTypeAny, {
1110
+ }, "strict", z.ZodTypeAny, {
1079
1111
  attribute_id: string;
1080
1112
  values?: string[] | undefined;
1081
1113
  value_ids?: string[] | undefined;
@@ -1085,15 +1117,15 @@ export declare const UpdateProduct: z.ZodObject<{
1085
1117
  value_ids?: string[] | undefined;
1086
1118
  }>, z.ZodObject<{
1087
1119
  name: z.ZodString;
1088
- type: z.ZodEnum<["single_select", "multi_select", "unit", "toggle", "text"]>;
1120
+ type: z.ZodEnum<["single_select", "multi_select", "text", "toggle", "unit"]>;
1089
1121
  values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1090
1122
  is_variant_axis: z.ZodOptional<z.ZodBoolean>;
1091
1123
  is_filterable: z.ZodOptional<z.ZodBoolean>;
1092
1124
  is_required: z.ZodOptional<z.ZodBoolean>;
1093
1125
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1094
1126
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1095
- }, "strip", z.ZodTypeAny, {
1096
- type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
1127
+ }, "strict", z.ZodTypeAny, {
1128
+ type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
1097
1129
  name: string;
1098
1130
  values?: string[] | undefined;
1099
1131
  metadata?: Record<string, unknown> | null | undefined;
@@ -1102,7 +1134,7 @@ export declare const UpdateProduct: z.ZodObject<{
1102
1134
  is_filterable?: boolean | undefined;
1103
1135
  is_variant_axis?: boolean | undefined;
1104
1136
  }, {
1105
- type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
1137
+ type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
1106
1138
  name: string;
1107
1139
  values?: string[] | undefined;
1108
1140
  metadata?: Record<string, unknown> | null | undefined;
@@ -1111,6 +1143,7 @@ export declare const UpdateProduct: z.ZodObject<{
1111
1143
  is_filterable?: boolean | undefined;
1112
1144
  is_variant_axis?: boolean | undefined;
1113
1145
  }>]>, "many">>;
1146
+ attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
1114
1147
  variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
1115
1148
  id: z.ZodOptional<z.ZodString>;
1116
1149
  title: z.ZodOptional<z.ZodString>;
@@ -1154,14 +1187,16 @@ export declare const UpdateProduct: z.ZodObject<{
1154
1187
  max_quantity?: number | null | undefined;
1155
1188
  rules?: Record<string, string> | undefined;
1156
1189
  }>, "many">>;
1190
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1157
1191
  attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
1158
1192
  }, "strict", z.ZodTypeAny, {
1193
+ options?: Record<string, string> | undefined;
1159
1194
  length?: number | null | undefined;
1195
+ metadata?: Record<string, unknown> | null | undefined;
1160
1196
  id?: string | undefined;
1161
1197
  sku?: string | null | undefined;
1162
1198
  ean?: string | null | undefined;
1163
1199
  upc?: string | null | undefined;
1164
- metadata?: Record<string, unknown> | null | undefined;
1165
1200
  title?: string | undefined;
1166
1201
  prices?: {
1167
1202
  id?: string | undefined;
@@ -1186,12 +1221,13 @@ export declare const UpdateProduct: z.ZodObject<{
1186
1221
  variant_rank?: number | undefined;
1187
1222
  attribute_values?: Record<string, string | string[]> | undefined;
1188
1223
  }, {
1224
+ options?: Record<string, string> | undefined;
1189
1225
  length?: number | null | undefined;
1226
+ metadata?: Record<string, unknown> | null | undefined;
1190
1227
  id?: string | undefined;
1191
1228
  sku?: string | null | undefined;
1192
1229
  ean?: string | null | undefined;
1193
1230
  upc?: string | null | undefined;
1194
- metadata?: Record<string, unknown> | null | undefined;
1195
1231
  title?: string | undefined;
1196
1232
  prices?: {
1197
1233
  id?: string | undefined;
@@ -1226,9 +1262,13 @@ export declare const UpdateProduct: z.ZodObject<{
1226
1262
  material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1227
1263
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1228
1264
  }, "strict", z.ZodTypeAny, {
1265
+ options?: {
1266
+ values: string[];
1267
+ title: string;
1268
+ }[] | undefined;
1229
1269
  length?: number | null | undefined;
1230
- status?: ProductStatus | undefined;
1231
1270
  metadata?: Record<string, unknown> | null | undefined;
1271
+ status?: "draft" | "proposed" | "published" | "rejected" | undefined;
1232
1272
  title?: string | undefined;
1233
1273
  handle?: string | null | undefined;
1234
1274
  description?: string | null | undefined;
@@ -1237,10 +1277,8 @@ export declare const UpdateProduct: z.ZodObject<{
1237
1277
  collection_id?: string | null | undefined;
1238
1278
  type_id?: string | null | undefined;
1239
1279
  subtitle?: string | null | undefined;
1240
- is_restricted?: boolean | undefined;
1241
1280
  is_giftcard?: boolean | undefined;
1242
1281
  discountable?: boolean | undefined;
1243
- brand_id?: string | null | undefined;
1244
1282
  weight?: number | null | undefined;
1245
1283
  height?: number | null | undefined;
1246
1284
  width?: number | null | undefined;
@@ -1248,6 +1286,7 @@ export declare const UpdateProduct: z.ZodObject<{
1248
1286
  origin_country?: string | null | undefined;
1249
1287
  mid_code?: string | null | undefined;
1250
1288
  material?: string | null | undefined;
1289
+ attribute_values?: Record<string, string | string[]> | undefined;
1251
1290
  images?: {
1252
1291
  url: string;
1253
1292
  id?: string | undefined;
@@ -1263,7 +1302,7 @@ export declare const UpdateProduct: z.ZodObject<{
1263
1302
  values?: string[] | undefined;
1264
1303
  value_ids?: string[] | undefined;
1265
1304
  } | {
1266
- type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
1305
+ type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
1267
1306
  name: string;
1268
1307
  values?: string[] | undefined;
1269
1308
  metadata?: Record<string, unknown> | null | undefined;
@@ -1277,7 +1316,7 @@ export declare const UpdateProduct: z.ZodObject<{
1277
1316
  values?: string[] | undefined;
1278
1317
  value_ids?: string[] | undefined;
1279
1318
  } | {
1280
- type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
1319
+ type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
1281
1320
  name: string;
1282
1321
  values?: string[] | undefined;
1283
1322
  metadata?: Record<string, unknown> | null | undefined;
@@ -1287,12 +1326,13 @@ export declare const UpdateProduct: z.ZodObject<{
1287
1326
  is_variant_axis?: boolean | undefined;
1288
1327
  })[] | undefined;
1289
1328
  variants?: {
1329
+ options?: Record<string, string> | undefined;
1290
1330
  length?: number | null | undefined;
1331
+ metadata?: Record<string, unknown> | null | undefined;
1291
1332
  id?: string | undefined;
1292
1333
  sku?: string | null | undefined;
1293
1334
  ean?: string | null | undefined;
1294
1335
  upc?: string | null | undefined;
1295
- metadata?: Record<string, unknown> | null | undefined;
1296
1336
  title?: string | undefined;
1297
1337
  prices?: {
1298
1338
  id?: string | undefined;
@@ -1318,9 +1358,13 @@ export declare const UpdateProduct: z.ZodObject<{
1318
1358
  attribute_values?: Record<string, string | string[]> | undefined;
1319
1359
  }[] | undefined;
1320
1360
  }, {
1361
+ options?: {
1362
+ values: string[];
1363
+ title: string;
1364
+ }[] | undefined;
1321
1365
  length?: number | null | undefined;
1322
- status?: ProductStatus | undefined;
1323
1366
  metadata?: Record<string, unknown> | null | undefined;
1367
+ status?: "draft" | "proposed" | "published" | "rejected" | undefined;
1324
1368
  title?: string | undefined;
1325
1369
  handle?: string | null | undefined;
1326
1370
  description?: string | null | undefined;
@@ -1329,10 +1373,8 @@ export declare const UpdateProduct: z.ZodObject<{
1329
1373
  collection_id?: string | null | undefined;
1330
1374
  type_id?: string | null | undefined;
1331
1375
  subtitle?: string | null | undefined;
1332
- is_restricted?: boolean | undefined;
1333
1376
  is_giftcard?: string | boolean | undefined;
1334
1377
  discountable?: string | boolean | undefined;
1335
- brand_id?: string | null | undefined;
1336
1378
  weight?: number | null | undefined;
1337
1379
  height?: number | null | undefined;
1338
1380
  width?: number | null | undefined;
@@ -1340,6 +1382,7 @@ export declare const UpdateProduct: z.ZodObject<{
1340
1382
  origin_country?: string | null | undefined;
1341
1383
  mid_code?: string | null | undefined;
1342
1384
  material?: string | null | undefined;
1385
+ attribute_values?: Record<string, string | string[]> | undefined;
1343
1386
  images?: {
1344
1387
  url: string;
1345
1388
  id?: string | undefined;
@@ -1355,7 +1398,7 @@ export declare const UpdateProduct: z.ZodObject<{
1355
1398
  values?: string[] | undefined;
1356
1399
  value_ids?: string[] | undefined;
1357
1400
  } | {
1358
- type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
1401
+ type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
1359
1402
  name: string;
1360
1403
  values?: string[] | undefined;
1361
1404
  metadata?: Record<string, unknown> | null | undefined;
@@ -1369,7 +1412,7 @@ export declare const UpdateProduct: z.ZodObject<{
1369
1412
  values?: string[] | undefined;
1370
1413
  value_ids?: string[] | undefined;
1371
1414
  } | {
1372
- type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
1415
+ type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
1373
1416
  name: string;
1374
1417
  values?: string[] | undefined;
1375
1418
  metadata?: Record<string, unknown> | null | undefined;
@@ -1379,12 +1422,13 @@ export declare const UpdateProduct: z.ZodObject<{
1379
1422
  is_variant_axis?: boolean | undefined;
1380
1423
  })[] | undefined;
1381
1424
  variants?: {
1425
+ options?: Record<string, string> | undefined;
1382
1426
  length?: number | null | undefined;
1427
+ metadata?: Record<string, unknown> | null | undefined;
1383
1428
  id?: string | undefined;
1384
1429
  sku?: string | null | undefined;
1385
1430
  ean?: string | null | undefined;
1386
1431
  upc?: string | null | undefined;
1387
- metadata?: Record<string, unknown> | null | undefined;
1388
1432
  title?: string | undefined;
1389
1433
  prices?: {
1390
1434
  id?: string | undefined;
@@ -1439,108 +1483,769 @@ export declare const AdminRequestProductChanges: z.ZodObject<{
1439
1483
  }, {
1440
1484
  message?: string | undefined;
1441
1485
  }>;
1442
- declare const BatchProducts: z.ZodObject<{
1486
+ declare const BatchProductVariants: z.ZodObject<{
1487
+ create: z.ZodOptional<z.ZodArray<z.ZodObject<{
1488
+ title: z.ZodString;
1489
+ sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1490
+ ean: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1491
+ upc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1492
+ isbn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1493
+ asin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1494
+ gtin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1495
+ barcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1496
+ hs_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1497
+ mid_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1498
+ variant_rank: z.ZodOptional<z.ZodNumber>;
1499
+ weight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1500
+ length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1501
+ height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1502
+ width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1503
+ origin_country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1504
+ material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1505
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1506
+ /** Stock Medusa: maps option title -> chosen value name (e.g. `{ Color: "Blue" }`). */
1507
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1508
+ attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
1509
+ }, "strict", z.ZodTypeAny, {
1510
+ title: string;
1511
+ options?: Record<string, string> | undefined;
1512
+ length?: number | null | undefined;
1513
+ metadata?: Record<string, unknown> | null | undefined;
1514
+ sku?: string | null | undefined;
1515
+ ean?: string | null | undefined;
1516
+ upc?: string | null | undefined;
1517
+ weight?: number | null | undefined;
1518
+ height?: number | null | undefined;
1519
+ width?: number | null | undefined;
1520
+ hs_code?: string | null | undefined;
1521
+ origin_country?: string | null | undefined;
1522
+ mid_code?: string | null | undefined;
1523
+ material?: string | null | undefined;
1524
+ isbn?: string | null | undefined;
1525
+ asin?: string | null | undefined;
1526
+ gtin?: string | null | undefined;
1527
+ barcode?: string | null | undefined;
1528
+ variant_rank?: number | undefined;
1529
+ attribute_values?: Record<string, string | string[]> | undefined;
1530
+ }, {
1531
+ title: string;
1532
+ options?: Record<string, string> | undefined;
1533
+ length?: number | null | undefined;
1534
+ metadata?: Record<string, unknown> | null | undefined;
1535
+ sku?: string | null | undefined;
1536
+ ean?: string | null | undefined;
1537
+ upc?: string | null | undefined;
1538
+ weight?: number | null | undefined;
1539
+ height?: number | null | undefined;
1540
+ width?: number | null | undefined;
1541
+ hs_code?: string | null | undefined;
1542
+ origin_country?: string | null | undefined;
1543
+ mid_code?: string | null | undefined;
1544
+ material?: string | null | undefined;
1545
+ isbn?: string | null | undefined;
1546
+ asin?: string | null | undefined;
1547
+ gtin?: string | null | undefined;
1548
+ barcode?: string | null | undefined;
1549
+ variant_rank?: number | undefined;
1550
+ attribute_values?: Record<string, string | string[]> | undefined;
1551
+ }>, "many">>;
1443
1552
  update: z.ZodOptional<z.ZodArray<z.ZodObject<{
1444
1553
  title: z.ZodOptional<z.ZodString>;
1445
- subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1446
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1447
- discountable: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
1448
- is_giftcard: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
1449
- images: z.ZodOptional<z.ZodArray<z.ZodObject<{
1554
+ sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1555
+ ean: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1556
+ upc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1557
+ isbn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1558
+ asin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1559
+ gtin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1560
+ barcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1561
+ hs_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1562
+ mid_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1563
+ thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1564
+ variant_rank: z.ZodOptional<z.ZodNumber>;
1565
+ weight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1566
+ length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1567
+ height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1568
+ width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1569
+ origin_country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1570
+ material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1571
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1572
+ prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
1450
1573
  id: z.ZodOptional<z.ZodString>;
1451
- url: z.ZodString;
1574
+ currency_code: z.ZodOptional<z.ZodString>;
1575
+ amount: z.ZodOptional<z.ZodNumber>;
1576
+ min_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1577
+ max_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1578
+ rules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1452
1579
  }, "strip", z.ZodTypeAny, {
1453
- url: string;
1454
1580
  id?: string | undefined;
1581
+ amount?: number | undefined;
1582
+ currency_code?: string | undefined;
1583
+ min_quantity?: number | null | undefined;
1584
+ max_quantity?: number | null | undefined;
1585
+ rules?: Record<string, string> | undefined;
1455
1586
  }, {
1456
- url: string;
1457
1587
  id?: string | undefined;
1588
+ amount?: number | undefined;
1589
+ currency_code?: string | undefined;
1590
+ min_quantity?: number | null | undefined;
1591
+ max_quantity?: number | null | undefined;
1592
+ rules?: Record<string, string> | undefined;
1458
1593
  }>, "many">>;
1459
- thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1460
- handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1461
- status: z.ZodOptional<z.ZodNativeEnum<typeof ProductStatus>>;
1462
- external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1463
- type_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1464
- collection_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1465
- brand_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1466
- is_restricted: z.ZodOptional<z.ZodBoolean>;
1467
- categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
1468
- id: z.ZodString;
1469
- }, "strip", z.ZodTypeAny, {
1470
- id: string;
1471
- }, {
1472
- id: string;
1473
- }>, "many">>;
1474
- tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
1475
- id: z.ZodString;
1476
- }, "strip", z.ZodTypeAny, {
1477
- id: string;
1478
- }, {
1479
- id: string;
1480
- }>, "many">>;
1481
- variant_attributes: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1482
- attribute_id: z.ZodString;
1483
- value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1484
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1485
- }, "strip", z.ZodTypeAny, {
1486
- attribute_id: string;
1487
- values?: string[] | undefined;
1488
- value_ids?: string[] | undefined;
1489
- }, {
1490
- attribute_id: string;
1491
- values?: string[] | undefined;
1492
- value_ids?: string[] | undefined;
1493
- }>, z.ZodObject<{
1494
- name: z.ZodString;
1495
- type: z.ZodEnum<["single_select", "multi_select", "unit", "toggle", "text"]>;
1496
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1497
- is_variant_axis: z.ZodOptional<z.ZodBoolean>;
1498
- is_filterable: z.ZodOptional<z.ZodBoolean>;
1499
- is_required: z.ZodOptional<z.ZodBoolean>;
1500
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1501
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1502
- }, "strip", z.ZodTypeAny, {
1503
- type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
1504
- name: string;
1505
- values?: string[] | undefined;
1506
- metadata?: Record<string, unknown> | null | undefined;
1507
- description?: string | null | undefined;
1508
- is_required?: boolean | undefined;
1509
- is_filterable?: boolean | undefined;
1510
- is_variant_axis?: boolean | undefined;
1511
- }, {
1512
- type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
1513
- name: string;
1514
- values?: string[] | undefined;
1515
- metadata?: Record<string, unknown> | null | undefined;
1516
- description?: string | null | undefined;
1517
- is_required?: boolean | undefined;
1518
- is_filterable?: boolean | undefined;
1519
- is_variant_axis?: boolean | undefined;
1520
- }>]>, "many">>;
1521
- product_attributes: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1522
- attribute_id: z.ZodString;
1523
- value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1524
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1525
- }, "strip", z.ZodTypeAny, {
1526
- attribute_id: string;
1527
- values?: string[] | undefined;
1528
- value_ids?: string[] | undefined;
1529
- }, {
1530
- attribute_id: string;
1531
- values?: string[] | undefined;
1594
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1595
+ attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
1596
+ } & {
1597
+ id: z.ZodString;
1598
+ }, "strict", z.ZodTypeAny, {
1599
+ id: string;
1600
+ options?: Record<string, string> | undefined;
1601
+ length?: number | null | undefined;
1602
+ metadata?: Record<string, unknown> | null | undefined;
1603
+ sku?: string | null | undefined;
1604
+ ean?: string | null | undefined;
1605
+ upc?: string | null | undefined;
1606
+ title?: string | undefined;
1607
+ prices?: {
1608
+ id?: string | undefined;
1609
+ amount?: number | undefined;
1610
+ currency_code?: string | undefined;
1611
+ min_quantity?: number | null | undefined;
1612
+ max_quantity?: number | null | undefined;
1613
+ rules?: Record<string, string> | undefined;
1614
+ }[] | undefined;
1615
+ thumbnail?: string | null | undefined;
1616
+ weight?: number | null | undefined;
1617
+ height?: number | null | undefined;
1618
+ width?: number | null | undefined;
1619
+ hs_code?: string | null | undefined;
1620
+ origin_country?: string | null | undefined;
1621
+ mid_code?: string | null | undefined;
1622
+ material?: string | null | undefined;
1623
+ isbn?: string | null | undefined;
1624
+ asin?: string | null | undefined;
1625
+ gtin?: string | null | undefined;
1626
+ barcode?: string | null | undefined;
1627
+ variant_rank?: number | undefined;
1628
+ attribute_values?: Record<string, string | string[]> | undefined;
1629
+ }, {
1630
+ id: string;
1631
+ options?: Record<string, string> | undefined;
1632
+ length?: number | null | undefined;
1633
+ metadata?: Record<string, unknown> | null | undefined;
1634
+ sku?: string | null | undefined;
1635
+ ean?: string | null | undefined;
1636
+ upc?: string | null | undefined;
1637
+ title?: string | undefined;
1638
+ prices?: {
1639
+ id?: string | undefined;
1640
+ amount?: number | undefined;
1641
+ currency_code?: string | undefined;
1642
+ min_quantity?: number | null | undefined;
1643
+ max_quantity?: number | null | undefined;
1644
+ rules?: Record<string, string> | undefined;
1645
+ }[] | undefined;
1646
+ thumbnail?: string | null | undefined;
1647
+ weight?: number | null | undefined;
1648
+ height?: number | null | undefined;
1649
+ width?: number | null | undefined;
1650
+ hs_code?: string | null | undefined;
1651
+ origin_country?: string | null | undefined;
1652
+ mid_code?: string | null | undefined;
1653
+ material?: string | null | undefined;
1654
+ isbn?: string | null | undefined;
1655
+ asin?: string | null | undefined;
1656
+ gtin?: string | null | undefined;
1657
+ barcode?: string | null | undefined;
1658
+ variant_rank?: number | undefined;
1659
+ attribute_values?: Record<string, string | string[]> | undefined;
1660
+ }>, "many">>;
1661
+ delete: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1662
+ }, "strip", z.ZodTypeAny, {
1663
+ create?: {
1664
+ title: string;
1665
+ options?: Record<string, string> | undefined;
1666
+ length?: number | null | undefined;
1667
+ metadata?: Record<string, unknown> | null | undefined;
1668
+ sku?: string | null | undefined;
1669
+ ean?: string | null | undefined;
1670
+ upc?: string | null | undefined;
1671
+ weight?: number | null | undefined;
1672
+ height?: number | null | undefined;
1673
+ width?: number | null | undefined;
1674
+ hs_code?: string | null | undefined;
1675
+ origin_country?: string | null | undefined;
1676
+ mid_code?: string | null | undefined;
1677
+ material?: string | null | undefined;
1678
+ isbn?: string | null | undefined;
1679
+ asin?: string | null | undefined;
1680
+ gtin?: string | null | undefined;
1681
+ barcode?: string | null | undefined;
1682
+ variant_rank?: number | undefined;
1683
+ attribute_values?: Record<string, string | string[]> | undefined;
1684
+ }[] | undefined;
1685
+ update?: {
1686
+ id: string;
1687
+ options?: Record<string, string> | undefined;
1688
+ length?: number | null | undefined;
1689
+ metadata?: Record<string, unknown> | null | undefined;
1690
+ sku?: string | null | undefined;
1691
+ ean?: string | null | undefined;
1692
+ upc?: string | null | undefined;
1693
+ title?: string | undefined;
1694
+ prices?: {
1695
+ id?: string | undefined;
1696
+ amount?: number | undefined;
1697
+ currency_code?: string | undefined;
1698
+ min_quantity?: number | null | undefined;
1699
+ max_quantity?: number | null | undefined;
1700
+ rules?: Record<string, string> | undefined;
1701
+ }[] | undefined;
1702
+ thumbnail?: string | null | undefined;
1703
+ weight?: number | null | undefined;
1704
+ height?: number | null | undefined;
1705
+ width?: number | null | undefined;
1706
+ hs_code?: string | null | undefined;
1707
+ origin_country?: string | null | undefined;
1708
+ mid_code?: string | null | undefined;
1709
+ material?: string | null | undefined;
1710
+ isbn?: string | null | undefined;
1711
+ asin?: string | null | undefined;
1712
+ gtin?: string | null | undefined;
1713
+ barcode?: string | null | undefined;
1714
+ variant_rank?: number | undefined;
1715
+ attribute_values?: Record<string, string | string[]> | undefined;
1716
+ }[] | undefined;
1717
+ delete?: string[] | undefined;
1718
+ }, {
1719
+ create?: {
1720
+ title: string;
1721
+ options?: Record<string, string> | undefined;
1722
+ length?: number | null | undefined;
1723
+ metadata?: Record<string, unknown> | null | undefined;
1724
+ sku?: string | null | undefined;
1725
+ ean?: string | null | undefined;
1726
+ upc?: string | null | undefined;
1727
+ weight?: number | null | undefined;
1728
+ height?: number | null | undefined;
1729
+ width?: number | null | undefined;
1730
+ hs_code?: string | null | undefined;
1731
+ origin_country?: string | null | undefined;
1732
+ mid_code?: string | null | undefined;
1733
+ material?: string | null | undefined;
1734
+ isbn?: string | null | undefined;
1735
+ asin?: string | null | undefined;
1736
+ gtin?: string | null | undefined;
1737
+ barcode?: string | null | undefined;
1738
+ variant_rank?: number | undefined;
1739
+ attribute_values?: Record<string, string | string[]> | undefined;
1740
+ }[] | undefined;
1741
+ update?: {
1742
+ id: string;
1743
+ options?: Record<string, string> | undefined;
1744
+ length?: number | null | undefined;
1745
+ metadata?: Record<string, unknown> | null | undefined;
1746
+ sku?: string | null | undefined;
1747
+ ean?: string | null | undefined;
1748
+ upc?: string | null | undefined;
1749
+ title?: string | undefined;
1750
+ prices?: {
1751
+ id?: string | undefined;
1752
+ amount?: number | undefined;
1753
+ currency_code?: string | undefined;
1754
+ min_quantity?: number | null | undefined;
1755
+ max_quantity?: number | null | undefined;
1756
+ rules?: Record<string, string> | undefined;
1757
+ }[] | undefined;
1758
+ thumbnail?: string | null | undefined;
1759
+ weight?: number | null | undefined;
1760
+ height?: number | null | undefined;
1761
+ width?: number | null | undefined;
1762
+ hs_code?: string | null | undefined;
1763
+ origin_country?: string | null | undefined;
1764
+ mid_code?: string | null | undefined;
1765
+ material?: string | null | undefined;
1766
+ isbn?: string | null | undefined;
1767
+ asin?: string | null | undefined;
1768
+ gtin?: string | null | undefined;
1769
+ barcode?: string | null | undefined;
1770
+ variant_rank?: number | undefined;
1771
+ attribute_values?: Record<string, string | string[]> | undefined;
1772
+ }[] | undefined;
1773
+ delete?: string[] | undefined;
1774
+ }>;
1775
+ export type AdminBatchProductVariantsType = z.infer<typeof BatchProductVariants>;
1776
+ export declare const AdminBatchProductVariants: z.ZodObject<{
1777
+ create: z.ZodOptional<z.ZodArray<z.ZodObject<{
1778
+ title: z.ZodString;
1779
+ sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1780
+ ean: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1781
+ upc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1782
+ isbn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1783
+ asin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1784
+ gtin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1785
+ barcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1786
+ hs_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1787
+ mid_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1788
+ variant_rank: z.ZodOptional<z.ZodNumber>;
1789
+ weight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1790
+ length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1791
+ height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1792
+ width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1793
+ origin_country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1794
+ material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1795
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1796
+ /** Stock Medusa: maps option title -> chosen value name (e.g. `{ Color: "Blue" }`). */
1797
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1798
+ attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
1799
+ }, "strict", z.ZodTypeAny, {
1800
+ title: string;
1801
+ options?: Record<string, string> | undefined;
1802
+ length?: number | null | undefined;
1803
+ metadata?: Record<string, unknown> | null | undefined;
1804
+ sku?: string | null | undefined;
1805
+ ean?: string | null | undefined;
1806
+ upc?: string | null | undefined;
1807
+ weight?: number | null | undefined;
1808
+ height?: number | null | undefined;
1809
+ width?: number | null | undefined;
1810
+ hs_code?: string | null | undefined;
1811
+ origin_country?: string | null | undefined;
1812
+ mid_code?: string | null | undefined;
1813
+ material?: string | null | undefined;
1814
+ isbn?: string | null | undefined;
1815
+ asin?: string | null | undefined;
1816
+ gtin?: string | null | undefined;
1817
+ barcode?: string | null | undefined;
1818
+ variant_rank?: number | undefined;
1819
+ attribute_values?: Record<string, string | string[]> | undefined;
1820
+ }, {
1821
+ title: string;
1822
+ options?: Record<string, string> | undefined;
1823
+ length?: number | null | undefined;
1824
+ metadata?: Record<string, unknown> | null | undefined;
1825
+ sku?: string | null | undefined;
1826
+ ean?: string | null | undefined;
1827
+ upc?: string | null | undefined;
1828
+ weight?: number | null | undefined;
1829
+ height?: number | null | undefined;
1830
+ width?: number | null | undefined;
1831
+ hs_code?: string | null | undefined;
1832
+ origin_country?: string | null | undefined;
1833
+ mid_code?: string | null | undefined;
1834
+ material?: string | null | undefined;
1835
+ isbn?: string | null | undefined;
1836
+ asin?: string | null | undefined;
1837
+ gtin?: string | null | undefined;
1838
+ barcode?: string | null | undefined;
1839
+ variant_rank?: number | undefined;
1840
+ attribute_values?: Record<string, string | string[]> | undefined;
1841
+ }>, "many">>;
1842
+ update: z.ZodOptional<z.ZodArray<z.ZodObject<{
1843
+ title: z.ZodOptional<z.ZodString>;
1844
+ sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1845
+ ean: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1846
+ upc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1847
+ isbn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1848
+ asin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1849
+ gtin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1850
+ barcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1851
+ hs_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1852
+ mid_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1853
+ thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1854
+ variant_rank: z.ZodOptional<z.ZodNumber>;
1855
+ weight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1856
+ length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1857
+ height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1858
+ width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1859
+ origin_country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1860
+ material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1861
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1862
+ prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
1863
+ id: z.ZodOptional<z.ZodString>;
1864
+ currency_code: z.ZodOptional<z.ZodString>;
1865
+ amount: z.ZodOptional<z.ZodNumber>;
1866
+ min_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1867
+ max_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1868
+ rules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1869
+ }, "strip", z.ZodTypeAny, {
1870
+ id?: string | undefined;
1871
+ amount?: number | undefined;
1872
+ currency_code?: string | undefined;
1873
+ min_quantity?: number | null | undefined;
1874
+ max_quantity?: number | null | undefined;
1875
+ rules?: Record<string, string> | undefined;
1876
+ }, {
1877
+ id?: string | undefined;
1878
+ amount?: number | undefined;
1879
+ currency_code?: string | undefined;
1880
+ min_quantity?: number | null | undefined;
1881
+ max_quantity?: number | null | undefined;
1882
+ rules?: Record<string, string> | undefined;
1883
+ }>, "many">>;
1884
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1885
+ attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
1886
+ } & {
1887
+ id: z.ZodString;
1888
+ }, "strict", z.ZodTypeAny, {
1889
+ id: string;
1890
+ options?: Record<string, string> | undefined;
1891
+ length?: number | null | undefined;
1892
+ metadata?: Record<string, unknown> | null | undefined;
1893
+ sku?: string | null | undefined;
1894
+ ean?: string | null | undefined;
1895
+ upc?: string | null | undefined;
1896
+ title?: string | undefined;
1897
+ prices?: {
1898
+ id?: string | undefined;
1899
+ amount?: number | undefined;
1900
+ currency_code?: string | undefined;
1901
+ min_quantity?: number | null | undefined;
1902
+ max_quantity?: number | null | undefined;
1903
+ rules?: Record<string, string> | undefined;
1904
+ }[] | undefined;
1905
+ thumbnail?: string | null | undefined;
1906
+ weight?: number | null | undefined;
1907
+ height?: number | null | undefined;
1908
+ width?: number | null | undefined;
1909
+ hs_code?: string | null | undefined;
1910
+ origin_country?: string | null | undefined;
1911
+ mid_code?: string | null | undefined;
1912
+ material?: string | null | undefined;
1913
+ isbn?: string | null | undefined;
1914
+ asin?: string | null | undefined;
1915
+ gtin?: string | null | undefined;
1916
+ barcode?: string | null | undefined;
1917
+ variant_rank?: number | undefined;
1918
+ attribute_values?: Record<string, string | string[]> | undefined;
1919
+ }, {
1920
+ id: string;
1921
+ options?: Record<string, string> | undefined;
1922
+ length?: number | null | undefined;
1923
+ metadata?: Record<string, unknown> | null | undefined;
1924
+ sku?: string | null | undefined;
1925
+ ean?: string | null | undefined;
1926
+ upc?: string | null | undefined;
1927
+ title?: string | undefined;
1928
+ prices?: {
1929
+ id?: string | undefined;
1930
+ amount?: number | undefined;
1931
+ currency_code?: string | undefined;
1932
+ min_quantity?: number | null | undefined;
1933
+ max_quantity?: number | null | undefined;
1934
+ rules?: Record<string, string> | undefined;
1935
+ }[] | undefined;
1936
+ thumbnail?: string | null | undefined;
1937
+ weight?: number | null | undefined;
1938
+ height?: number | null | undefined;
1939
+ width?: number | null | undefined;
1940
+ hs_code?: string | null | undefined;
1941
+ origin_country?: string | null | undefined;
1942
+ mid_code?: string | null | undefined;
1943
+ material?: string | null | undefined;
1944
+ isbn?: string | null | undefined;
1945
+ asin?: string | null | undefined;
1946
+ gtin?: string | null | undefined;
1947
+ barcode?: string | null | undefined;
1948
+ variant_rank?: number | undefined;
1949
+ attribute_values?: Record<string, string | string[]> | undefined;
1950
+ }>, "many">>;
1951
+ delete: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1952
+ }, "strip", z.ZodTypeAny, {
1953
+ create?: {
1954
+ title: string;
1955
+ options?: Record<string, string> | undefined;
1956
+ length?: number | null | undefined;
1957
+ metadata?: Record<string, unknown> | null | undefined;
1958
+ sku?: string | null | undefined;
1959
+ ean?: string | null | undefined;
1960
+ upc?: string | null | undefined;
1961
+ weight?: number | null | undefined;
1962
+ height?: number | null | undefined;
1963
+ width?: number | null | undefined;
1964
+ hs_code?: string | null | undefined;
1965
+ origin_country?: string | null | undefined;
1966
+ mid_code?: string | null | undefined;
1967
+ material?: string | null | undefined;
1968
+ isbn?: string | null | undefined;
1969
+ asin?: string | null | undefined;
1970
+ gtin?: string | null | undefined;
1971
+ barcode?: string | null | undefined;
1972
+ variant_rank?: number | undefined;
1973
+ attribute_values?: Record<string, string | string[]> | undefined;
1974
+ }[] | undefined;
1975
+ update?: {
1976
+ id: string;
1977
+ options?: Record<string, string> | undefined;
1978
+ length?: number | null | undefined;
1979
+ metadata?: Record<string, unknown> | null | undefined;
1980
+ sku?: string | null | undefined;
1981
+ ean?: string | null | undefined;
1982
+ upc?: string | null | undefined;
1983
+ title?: string | undefined;
1984
+ prices?: {
1985
+ id?: string | undefined;
1986
+ amount?: number | undefined;
1987
+ currency_code?: string | undefined;
1988
+ min_quantity?: number | null | undefined;
1989
+ max_quantity?: number | null | undefined;
1990
+ rules?: Record<string, string> | undefined;
1991
+ }[] | undefined;
1992
+ thumbnail?: string | null | undefined;
1993
+ weight?: number | null | undefined;
1994
+ height?: number | null | undefined;
1995
+ width?: number | null | undefined;
1996
+ hs_code?: string | null | undefined;
1997
+ origin_country?: string | null | undefined;
1998
+ mid_code?: string | null | undefined;
1999
+ material?: string | null | undefined;
2000
+ isbn?: string | null | undefined;
2001
+ asin?: string | null | undefined;
2002
+ gtin?: string | null | undefined;
2003
+ barcode?: string | null | undefined;
2004
+ variant_rank?: number | undefined;
2005
+ attribute_values?: Record<string, string | string[]> | undefined;
2006
+ }[] | undefined;
2007
+ delete?: string[] | undefined;
2008
+ }, {
2009
+ create?: {
2010
+ title: string;
2011
+ options?: Record<string, string> | undefined;
2012
+ length?: number | null | undefined;
2013
+ metadata?: Record<string, unknown> | null | undefined;
2014
+ sku?: string | null | undefined;
2015
+ ean?: string | null | undefined;
2016
+ upc?: string | null | undefined;
2017
+ weight?: number | null | undefined;
2018
+ height?: number | null | undefined;
2019
+ width?: number | null | undefined;
2020
+ hs_code?: string | null | undefined;
2021
+ origin_country?: string | null | undefined;
2022
+ mid_code?: string | null | undefined;
2023
+ material?: string | null | undefined;
2024
+ isbn?: string | null | undefined;
2025
+ asin?: string | null | undefined;
2026
+ gtin?: string | null | undefined;
2027
+ barcode?: string | null | undefined;
2028
+ variant_rank?: number | undefined;
2029
+ attribute_values?: Record<string, string | string[]> | undefined;
2030
+ }[] | undefined;
2031
+ update?: {
2032
+ id: string;
2033
+ options?: Record<string, string> | undefined;
2034
+ length?: number | null | undefined;
2035
+ metadata?: Record<string, unknown> | null | undefined;
2036
+ sku?: string | null | undefined;
2037
+ ean?: string | null | undefined;
2038
+ upc?: string | null | undefined;
2039
+ title?: string | undefined;
2040
+ prices?: {
2041
+ id?: string | undefined;
2042
+ amount?: number | undefined;
2043
+ currency_code?: string | undefined;
2044
+ min_quantity?: number | null | undefined;
2045
+ max_quantity?: number | null | undefined;
2046
+ rules?: Record<string, string> | undefined;
2047
+ }[] | undefined;
2048
+ thumbnail?: string | null | undefined;
2049
+ weight?: number | null | undefined;
2050
+ height?: number | null | undefined;
2051
+ width?: number | null | undefined;
2052
+ hs_code?: string | null | undefined;
2053
+ origin_country?: string | null | undefined;
2054
+ mid_code?: string | null | undefined;
2055
+ material?: string | null | undefined;
2056
+ isbn?: string | null | undefined;
2057
+ asin?: string | null | undefined;
2058
+ gtin?: string | null | undefined;
2059
+ barcode?: string | null | undefined;
2060
+ variant_rank?: number | undefined;
2061
+ attribute_values?: Record<string, string | string[]> | undefined;
2062
+ }[] | undefined;
2063
+ delete?: string[] | undefined;
2064
+ }>;
2065
+ export type AdminBatchVariantInventoryItemsType = z.infer<typeof AdminBatchVariantInventoryItems>;
2066
+ export declare const AdminBatchVariantInventoryItems: z.ZodObject<{
2067
+ create: z.ZodOptional<z.ZodArray<z.ZodObject<{
2068
+ variant_id: z.ZodString;
2069
+ inventory_item_id: z.ZodString;
2070
+ required_quantity: z.ZodOptional<z.ZodNumber>;
2071
+ }, "strict", z.ZodTypeAny, {
2072
+ variant_id: string;
2073
+ inventory_item_id: string;
2074
+ required_quantity?: number | undefined;
2075
+ }, {
2076
+ variant_id: string;
2077
+ inventory_item_id: string;
2078
+ required_quantity?: number | undefined;
2079
+ }>, "many">>;
2080
+ update: z.ZodOptional<z.ZodArray<z.ZodObject<{
2081
+ variant_id: z.ZodString;
2082
+ inventory_item_id: z.ZodString;
2083
+ required_quantity: z.ZodOptional<z.ZodNumber>;
2084
+ }, "strict", z.ZodTypeAny, {
2085
+ variant_id: string;
2086
+ inventory_item_id: string;
2087
+ required_quantity?: number | undefined;
2088
+ }, {
2089
+ variant_id: string;
2090
+ inventory_item_id: string;
2091
+ required_quantity?: number | undefined;
2092
+ }>, "many">>;
2093
+ delete: z.ZodOptional<z.ZodArray<z.ZodObject<{
2094
+ variant_id: z.ZodString;
2095
+ inventory_item_id: z.ZodString;
2096
+ }, "strict", z.ZodTypeAny, {
2097
+ variant_id: string;
2098
+ inventory_item_id: string;
2099
+ }, {
2100
+ variant_id: string;
2101
+ inventory_item_id: string;
2102
+ }>, "many">>;
2103
+ }, "strip", z.ZodTypeAny, {
2104
+ create?: {
2105
+ variant_id: string;
2106
+ inventory_item_id: string;
2107
+ required_quantity?: number | undefined;
2108
+ }[] | undefined;
2109
+ update?: {
2110
+ variant_id: string;
2111
+ inventory_item_id: string;
2112
+ required_quantity?: number | undefined;
2113
+ }[] | undefined;
2114
+ delete?: {
2115
+ variant_id: string;
2116
+ inventory_item_id: string;
2117
+ }[] | undefined;
2118
+ }, {
2119
+ create?: {
2120
+ variant_id: string;
2121
+ inventory_item_id: string;
2122
+ required_quantity?: number | undefined;
2123
+ }[] | undefined;
2124
+ update?: {
2125
+ variant_id: string;
2126
+ inventory_item_id: string;
2127
+ required_quantity?: number | undefined;
2128
+ }[] | undefined;
2129
+ delete?: {
2130
+ variant_id: string;
2131
+ inventory_item_id: string;
2132
+ }[] | undefined;
2133
+ }>;
2134
+ declare const BatchProducts: z.ZodObject<{
2135
+ update: z.ZodOptional<z.ZodArray<z.ZodObject<{
2136
+ title: z.ZodOptional<z.ZodString>;
2137
+ subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2138
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2139
+ discountable: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
2140
+ is_giftcard: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
2141
+ images: z.ZodOptional<z.ZodArray<z.ZodObject<{
2142
+ id: z.ZodOptional<z.ZodString>;
2143
+ url: z.ZodString;
2144
+ }, "strip", z.ZodTypeAny, {
2145
+ url: string;
2146
+ id?: string | undefined;
2147
+ }, {
2148
+ url: string;
2149
+ id?: string | undefined;
2150
+ }>, "many">>;
2151
+ thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2152
+ handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2153
+ status: z.ZodOptional<z.ZodNativeEnum<{
2154
+ readonly DRAFT: "draft";
2155
+ readonly PROPOSED: "proposed";
2156
+ readonly PUBLISHED: "published";
2157
+ readonly REJECTED: "rejected";
2158
+ }>>;
2159
+ external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2160
+ type_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2161
+ collection_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2162
+ categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
2163
+ id: z.ZodString;
2164
+ }, "strip", z.ZodTypeAny, {
2165
+ id: string;
2166
+ }, {
2167
+ id: string;
2168
+ }>, "many">>;
2169
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
2170
+ id: z.ZodString;
2171
+ }, "strip", z.ZodTypeAny, {
2172
+ id: string;
2173
+ }, {
2174
+ id: string;
2175
+ }>, "many">>;
2176
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
2177
+ title: z.ZodString;
2178
+ values: z.ZodArray<z.ZodString, "many">;
2179
+ }, "strip", z.ZodTypeAny, {
2180
+ values: string[];
2181
+ title: string;
2182
+ }, {
2183
+ values: string[];
2184
+ title: string;
2185
+ }>, "many">>;
2186
+ variant_attributes: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
2187
+ attribute_id: z.ZodString;
2188
+ value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2189
+ values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2190
+ }, "strict", z.ZodTypeAny, {
2191
+ attribute_id: string;
2192
+ values?: string[] | undefined;
2193
+ value_ids?: string[] | undefined;
2194
+ }, {
2195
+ attribute_id: string;
2196
+ values?: string[] | undefined;
1532
2197
  value_ids?: string[] | undefined;
1533
2198
  }>, z.ZodObject<{
1534
2199
  name: z.ZodString;
1535
- type: z.ZodEnum<["single_select", "multi_select", "unit", "toggle", "text"]>;
2200
+ type: z.ZodEnum<["single_select", "multi_select", "text", "toggle", "unit"]>;
1536
2201
  values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1537
2202
  is_variant_axis: z.ZodOptional<z.ZodBoolean>;
1538
2203
  is_filterable: z.ZodOptional<z.ZodBoolean>;
1539
2204
  is_required: z.ZodOptional<z.ZodBoolean>;
1540
2205
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1541
2206
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1542
- }, "strip", z.ZodTypeAny, {
1543
- type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
2207
+ }, "strict", z.ZodTypeAny, {
2208
+ type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
2209
+ name: string;
2210
+ values?: string[] | undefined;
2211
+ metadata?: Record<string, unknown> | null | undefined;
2212
+ description?: string | null | undefined;
2213
+ is_required?: boolean | undefined;
2214
+ is_filterable?: boolean | undefined;
2215
+ is_variant_axis?: boolean | undefined;
2216
+ }, {
2217
+ type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
2218
+ name: string;
2219
+ values?: string[] | undefined;
2220
+ metadata?: Record<string, unknown> | null | undefined;
2221
+ description?: string | null | undefined;
2222
+ is_required?: boolean | undefined;
2223
+ is_filterable?: boolean | undefined;
2224
+ is_variant_axis?: boolean | undefined;
2225
+ }>]>, "many">>;
2226
+ product_attributes: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
2227
+ attribute_id: z.ZodString;
2228
+ value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2229
+ values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2230
+ }, "strict", z.ZodTypeAny, {
2231
+ attribute_id: string;
2232
+ values?: string[] | undefined;
2233
+ value_ids?: string[] | undefined;
2234
+ }, {
2235
+ attribute_id: string;
2236
+ values?: string[] | undefined;
2237
+ value_ids?: string[] | undefined;
2238
+ }>, z.ZodObject<{
2239
+ name: z.ZodString;
2240
+ type: z.ZodEnum<["single_select", "multi_select", "text", "toggle", "unit"]>;
2241
+ values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2242
+ is_variant_axis: z.ZodOptional<z.ZodBoolean>;
2243
+ is_filterable: z.ZodOptional<z.ZodBoolean>;
2244
+ is_required: z.ZodOptional<z.ZodBoolean>;
2245
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2246
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2247
+ }, "strict", z.ZodTypeAny, {
2248
+ type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
1544
2249
  name: string;
1545
2250
  values?: string[] | undefined;
1546
2251
  metadata?: Record<string, unknown> | null | undefined;
@@ -1549,7 +2254,7 @@ declare const BatchProducts: z.ZodObject<{
1549
2254
  is_filterable?: boolean | undefined;
1550
2255
  is_variant_axis?: boolean | undefined;
1551
2256
  }, {
1552
- type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
2257
+ type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
1553
2258
  name: string;
1554
2259
  values?: string[] | undefined;
1555
2260
  metadata?: Record<string, unknown> | null | undefined;
@@ -1558,6 +2263,7 @@ declare const BatchProducts: z.ZodObject<{
1558
2263
  is_filterable?: boolean | undefined;
1559
2264
  is_variant_axis?: boolean | undefined;
1560
2265
  }>]>, "many">>;
2266
+ attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
1561
2267
  variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
1562
2268
  id: z.ZodOptional<z.ZodString>;
1563
2269
  title: z.ZodOptional<z.ZodString>;
@@ -1601,14 +2307,16 @@ declare const BatchProducts: z.ZodObject<{
1601
2307
  max_quantity?: number | null | undefined;
1602
2308
  rules?: Record<string, string> | undefined;
1603
2309
  }>, "many">>;
2310
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1604
2311
  attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
1605
2312
  }, "strict", z.ZodTypeAny, {
2313
+ options?: Record<string, string> | undefined;
1606
2314
  length?: number | null | undefined;
2315
+ metadata?: Record<string, unknown> | null | undefined;
1607
2316
  id?: string | undefined;
1608
2317
  sku?: string | null | undefined;
1609
2318
  ean?: string | null | undefined;
1610
2319
  upc?: string | null | undefined;
1611
- metadata?: Record<string, unknown> | null | undefined;
1612
2320
  title?: string | undefined;
1613
2321
  prices?: {
1614
2322
  id?: string | undefined;
@@ -1633,12 +2341,13 @@ declare const BatchProducts: z.ZodObject<{
1633
2341
  variant_rank?: number | undefined;
1634
2342
  attribute_values?: Record<string, string | string[]> | undefined;
1635
2343
  }, {
2344
+ options?: Record<string, string> | undefined;
1636
2345
  length?: number | null | undefined;
2346
+ metadata?: Record<string, unknown> | null | undefined;
1637
2347
  id?: string | undefined;
1638
2348
  sku?: string | null | undefined;
1639
2349
  ean?: string | null | undefined;
1640
2350
  upc?: string | null | undefined;
1641
- metadata?: Record<string, unknown> | null | undefined;
1642
2351
  title?: string | undefined;
1643
2352
  prices?: {
1644
2353
  id?: string | undefined;
@@ -1676,9 +2385,13 @@ declare const BatchProducts: z.ZodObject<{
1676
2385
  id: z.ZodString;
1677
2386
  }, "strict", z.ZodTypeAny, {
1678
2387
  id: string;
2388
+ options?: {
2389
+ values: string[];
2390
+ title: string;
2391
+ }[] | undefined;
1679
2392
  length?: number | null | undefined;
1680
- status?: ProductStatus | undefined;
1681
2393
  metadata?: Record<string, unknown> | null | undefined;
2394
+ status?: "draft" | "proposed" | "published" | "rejected" | undefined;
1682
2395
  title?: string | undefined;
1683
2396
  handle?: string | null | undefined;
1684
2397
  description?: string | null | undefined;
@@ -1687,10 +2400,8 @@ declare const BatchProducts: z.ZodObject<{
1687
2400
  collection_id?: string | null | undefined;
1688
2401
  type_id?: string | null | undefined;
1689
2402
  subtitle?: string | null | undefined;
1690
- is_restricted?: boolean | undefined;
1691
2403
  is_giftcard?: boolean | undefined;
1692
2404
  discountable?: boolean | undefined;
1693
- brand_id?: string | null | undefined;
1694
2405
  weight?: number | null | undefined;
1695
2406
  height?: number | null | undefined;
1696
2407
  width?: number | null | undefined;
@@ -1698,6 +2409,7 @@ declare const BatchProducts: z.ZodObject<{
1698
2409
  origin_country?: string | null | undefined;
1699
2410
  mid_code?: string | null | undefined;
1700
2411
  material?: string | null | undefined;
2412
+ attribute_values?: Record<string, string | string[]> | undefined;
1701
2413
  images?: {
1702
2414
  url: string;
1703
2415
  id?: string | undefined;
@@ -1713,7 +2425,7 @@ declare const BatchProducts: z.ZodObject<{
1713
2425
  values?: string[] | undefined;
1714
2426
  value_ids?: string[] | undefined;
1715
2427
  } | {
1716
- type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
2428
+ type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
1717
2429
  name: string;
1718
2430
  values?: string[] | undefined;
1719
2431
  metadata?: Record<string, unknown> | null | undefined;
@@ -1727,7 +2439,7 @@ declare const BatchProducts: z.ZodObject<{
1727
2439
  values?: string[] | undefined;
1728
2440
  value_ids?: string[] | undefined;
1729
2441
  } | {
1730
- type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
2442
+ type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
1731
2443
  name: string;
1732
2444
  values?: string[] | undefined;
1733
2445
  metadata?: Record<string, unknown> | null | undefined;
@@ -1737,12 +2449,13 @@ declare const BatchProducts: z.ZodObject<{
1737
2449
  is_variant_axis?: boolean | undefined;
1738
2450
  })[] | undefined;
1739
2451
  variants?: {
2452
+ options?: Record<string, string> | undefined;
1740
2453
  length?: number | null | undefined;
2454
+ metadata?: Record<string, unknown> | null | undefined;
1741
2455
  id?: string | undefined;
1742
2456
  sku?: string | null | undefined;
1743
2457
  ean?: string | null | undefined;
1744
2458
  upc?: string | null | undefined;
1745
- metadata?: Record<string, unknown> | null | undefined;
1746
2459
  title?: string | undefined;
1747
2460
  prices?: {
1748
2461
  id?: string | undefined;
@@ -1769,9 +2482,13 @@ declare const BatchProducts: z.ZodObject<{
1769
2482
  }[] | undefined;
1770
2483
  }, {
1771
2484
  id: string;
2485
+ options?: {
2486
+ values: string[];
2487
+ title: string;
2488
+ }[] | undefined;
1772
2489
  length?: number | null | undefined;
1773
- status?: ProductStatus | undefined;
1774
2490
  metadata?: Record<string, unknown> | null | undefined;
2491
+ status?: "draft" | "proposed" | "published" | "rejected" | undefined;
1775
2492
  title?: string | undefined;
1776
2493
  handle?: string | null | undefined;
1777
2494
  description?: string | null | undefined;
@@ -1780,10 +2497,8 @@ declare const BatchProducts: z.ZodObject<{
1780
2497
  collection_id?: string | null | undefined;
1781
2498
  type_id?: string | null | undefined;
1782
2499
  subtitle?: string | null | undefined;
1783
- is_restricted?: boolean | undefined;
1784
2500
  is_giftcard?: string | boolean | undefined;
1785
2501
  discountable?: string | boolean | undefined;
1786
- brand_id?: string | null | undefined;
1787
2502
  weight?: number | null | undefined;
1788
2503
  height?: number | null | undefined;
1789
2504
  width?: number | null | undefined;
@@ -1791,6 +2506,7 @@ declare const BatchProducts: z.ZodObject<{
1791
2506
  origin_country?: string | null | undefined;
1792
2507
  mid_code?: string | null | undefined;
1793
2508
  material?: string | null | undefined;
2509
+ attribute_values?: Record<string, string | string[]> | undefined;
1794
2510
  images?: {
1795
2511
  url: string;
1796
2512
  id?: string | undefined;
@@ -1806,7 +2522,7 @@ declare const BatchProducts: z.ZodObject<{
1806
2522
  values?: string[] | undefined;
1807
2523
  value_ids?: string[] | undefined;
1808
2524
  } | {
1809
- type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
2525
+ type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
1810
2526
  name: string;
1811
2527
  values?: string[] | undefined;
1812
2528
  metadata?: Record<string, unknown> | null | undefined;
@@ -1820,7 +2536,7 @@ declare const BatchProducts: z.ZodObject<{
1820
2536
  values?: string[] | undefined;
1821
2537
  value_ids?: string[] | undefined;
1822
2538
  } | {
1823
- type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
2539
+ type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
1824
2540
  name: string;
1825
2541
  values?: string[] | undefined;
1826
2542
  metadata?: Record<string, unknown> | null | undefined;
@@ -1830,12 +2546,13 @@ declare const BatchProducts: z.ZodObject<{
1830
2546
  is_variant_axis?: boolean | undefined;
1831
2547
  })[] | undefined;
1832
2548
  variants?: {
2549
+ options?: Record<string, string> | undefined;
1833
2550
  length?: number | null | undefined;
2551
+ metadata?: Record<string, unknown> | null | undefined;
1834
2552
  id?: string | undefined;
1835
2553
  sku?: string | null | undefined;
1836
2554
  ean?: string | null | undefined;
1837
2555
  upc?: string | null | undefined;
1838
- metadata?: Record<string, unknown> | null | undefined;
1839
2556
  title?: string | undefined;
1840
2557
  prices?: {
1841
2558
  id?: string | undefined;
@@ -1865,9 +2582,13 @@ declare const BatchProducts: z.ZodObject<{
1865
2582
  }, "strip", z.ZodTypeAny, {
1866
2583
  update?: {
1867
2584
  id: string;
2585
+ options?: {
2586
+ values: string[];
2587
+ title: string;
2588
+ }[] | undefined;
1868
2589
  length?: number | null | undefined;
1869
- status?: ProductStatus | undefined;
1870
2590
  metadata?: Record<string, unknown> | null | undefined;
2591
+ status?: "draft" | "proposed" | "published" | "rejected" | undefined;
1871
2592
  title?: string | undefined;
1872
2593
  handle?: string | null | undefined;
1873
2594
  description?: string | null | undefined;
@@ -1876,10 +2597,8 @@ declare const BatchProducts: z.ZodObject<{
1876
2597
  collection_id?: string | null | undefined;
1877
2598
  type_id?: string | null | undefined;
1878
2599
  subtitle?: string | null | undefined;
1879
- is_restricted?: boolean | undefined;
1880
2600
  is_giftcard?: boolean | undefined;
1881
2601
  discountable?: boolean | undefined;
1882
- brand_id?: string | null | undefined;
1883
2602
  weight?: number | null | undefined;
1884
2603
  height?: number | null | undefined;
1885
2604
  width?: number | null | undefined;
@@ -1887,6 +2606,7 @@ declare const BatchProducts: z.ZodObject<{
1887
2606
  origin_country?: string | null | undefined;
1888
2607
  mid_code?: string | null | undefined;
1889
2608
  material?: string | null | undefined;
2609
+ attribute_values?: Record<string, string | string[]> | undefined;
1890
2610
  images?: {
1891
2611
  url: string;
1892
2612
  id?: string | undefined;
@@ -1902,7 +2622,7 @@ declare const BatchProducts: z.ZodObject<{
1902
2622
  values?: string[] | undefined;
1903
2623
  value_ids?: string[] | undefined;
1904
2624
  } | {
1905
- type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
2625
+ type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
1906
2626
  name: string;
1907
2627
  values?: string[] | undefined;
1908
2628
  metadata?: Record<string, unknown> | null | undefined;
@@ -1916,7 +2636,7 @@ declare const BatchProducts: z.ZodObject<{
1916
2636
  values?: string[] | undefined;
1917
2637
  value_ids?: string[] | undefined;
1918
2638
  } | {
1919
- type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
2639
+ type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
1920
2640
  name: string;
1921
2641
  values?: string[] | undefined;
1922
2642
  metadata?: Record<string, unknown> | null | undefined;
@@ -1926,12 +2646,13 @@ declare const BatchProducts: z.ZodObject<{
1926
2646
  is_variant_axis?: boolean | undefined;
1927
2647
  })[] | undefined;
1928
2648
  variants?: {
2649
+ options?: Record<string, string> | undefined;
1929
2650
  length?: number | null | undefined;
2651
+ metadata?: Record<string, unknown> | null | undefined;
1930
2652
  id?: string | undefined;
1931
2653
  sku?: string | null | undefined;
1932
2654
  ean?: string | null | undefined;
1933
2655
  upc?: string | null | undefined;
1934
- metadata?: Record<string, unknown> | null | undefined;
1935
2656
  title?: string | undefined;
1936
2657
  prices?: {
1937
2658
  id?: string | undefined;
@@ -1961,9 +2682,13 @@ declare const BatchProducts: z.ZodObject<{
1961
2682
  }, {
1962
2683
  update?: {
1963
2684
  id: string;
2685
+ options?: {
2686
+ values: string[];
2687
+ title: string;
2688
+ }[] | undefined;
1964
2689
  length?: number | null | undefined;
1965
- status?: ProductStatus | undefined;
1966
2690
  metadata?: Record<string, unknown> | null | undefined;
2691
+ status?: "draft" | "proposed" | "published" | "rejected" | undefined;
1967
2692
  title?: string | undefined;
1968
2693
  handle?: string | null | undefined;
1969
2694
  description?: string | null | undefined;
@@ -1972,10 +2697,8 @@ declare const BatchProducts: z.ZodObject<{
1972
2697
  collection_id?: string | null | undefined;
1973
2698
  type_id?: string | null | undefined;
1974
2699
  subtitle?: string | null | undefined;
1975
- is_restricted?: boolean | undefined;
1976
2700
  is_giftcard?: string | boolean | undefined;
1977
2701
  discountable?: string | boolean | undefined;
1978
- brand_id?: string | null | undefined;
1979
2702
  weight?: number | null | undefined;
1980
2703
  height?: number | null | undefined;
1981
2704
  width?: number | null | undefined;
@@ -1983,6 +2706,7 @@ declare const BatchProducts: z.ZodObject<{
1983
2706
  origin_country?: string | null | undefined;
1984
2707
  mid_code?: string | null | undefined;
1985
2708
  material?: string | null | undefined;
2709
+ attribute_values?: Record<string, string | string[]> | undefined;
1986
2710
  images?: {
1987
2711
  url: string;
1988
2712
  id?: string | undefined;
@@ -1998,7 +2722,7 @@ declare const BatchProducts: z.ZodObject<{
1998
2722
  values?: string[] | undefined;
1999
2723
  value_ids?: string[] | undefined;
2000
2724
  } | {
2001
- type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
2725
+ type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
2002
2726
  name: string;
2003
2727
  values?: string[] | undefined;
2004
2728
  metadata?: Record<string, unknown> | null | undefined;
@@ -2012,7 +2736,7 @@ declare const BatchProducts: z.ZodObject<{
2012
2736
  values?: string[] | undefined;
2013
2737
  value_ids?: string[] | undefined;
2014
2738
  } | {
2015
- type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
2739
+ type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
2016
2740
  name: string;
2017
2741
  values?: string[] | undefined;
2018
2742
  metadata?: Record<string, unknown> | null | undefined;
@@ -2022,12 +2746,13 @@ declare const BatchProducts: z.ZodObject<{
2022
2746
  is_variant_axis?: boolean | undefined;
2023
2747
  })[] | undefined;
2024
2748
  variants?: {
2749
+ options?: Record<string, string> | undefined;
2025
2750
  length?: number | null | undefined;
2751
+ metadata?: Record<string, unknown> | null | undefined;
2026
2752
  id?: string | undefined;
2027
2753
  sku?: string | null | undefined;
2028
2754
  ean?: string | null | undefined;
2029
2755
  upc?: string | null | undefined;
2030
- metadata?: Record<string, unknown> | null | undefined;
2031
2756
  title?: string | undefined;
2032
2757
  prices?: {
2033
2758
  id?: string | undefined;
@@ -2102,4 +2827,123 @@ export declare const AdminBatchProductAttributes: z.ZodObject<{
2102
2827
  })[] | undefined;
2103
2828
  delete?: string[] | undefined;
2104
2829
  }>;
2830
+ export type AdminAddProductAttributeType = z.infer<typeof AdminAddProductAttribute>;
2831
+ export declare const AdminAddProductAttribute: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
2832
+ attribute_id: z.ZodOptional<z.ZodString>;
2833
+ attribute_value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2834
+ name: z.ZodOptional<z.ZodString>;
2835
+ type: z.ZodOptional<z.ZodEnum<["single_select", "multi_select", "text", "toggle", "unit"]>>;
2836
+ is_variant_axis: z.ZodOptional<z.ZodBoolean>;
2837
+ is_filterable: z.ZodOptional<z.ZodBoolean>;
2838
+ is_required: z.ZodOptional<z.ZodBoolean>;
2839
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2840
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2841
+ values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2842
+ }, "strict", z.ZodTypeAny, {
2843
+ values?: string[] | undefined;
2844
+ metadata?: Record<string, unknown> | null | undefined;
2845
+ type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
2846
+ name?: string | undefined;
2847
+ description?: string | null | undefined;
2848
+ is_required?: boolean | undefined;
2849
+ is_filterable?: boolean | undefined;
2850
+ is_variant_axis?: boolean | undefined;
2851
+ attribute_id?: string | undefined;
2852
+ attribute_value_ids?: string[] | undefined;
2853
+ }, {
2854
+ values?: string[] | undefined;
2855
+ metadata?: Record<string, unknown> | null | undefined;
2856
+ type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
2857
+ name?: string | undefined;
2858
+ description?: string | null | undefined;
2859
+ is_required?: boolean | undefined;
2860
+ is_filterable?: boolean | undefined;
2861
+ is_variant_axis?: boolean | undefined;
2862
+ attribute_id?: string | undefined;
2863
+ attribute_value_ids?: string[] | undefined;
2864
+ }>, {
2865
+ values?: string[] | undefined;
2866
+ metadata?: Record<string, unknown> | null | undefined;
2867
+ type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
2868
+ name?: string | undefined;
2869
+ description?: string | null | undefined;
2870
+ is_required?: boolean | undefined;
2871
+ is_filterable?: boolean | undefined;
2872
+ is_variant_axis?: boolean | undefined;
2873
+ attribute_id?: string | undefined;
2874
+ attribute_value_ids?: string[] | undefined;
2875
+ }, {
2876
+ values?: string[] | undefined;
2877
+ metadata?: Record<string, unknown> | null | undefined;
2878
+ type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
2879
+ name?: string | undefined;
2880
+ description?: string | null | undefined;
2881
+ is_required?: boolean | undefined;
2882
+ is_filterable?: boolean | undefined;
2883
+ is_variant_axis?: boolean | undefined;
2884
+ attribute_id?: string | undefined;
2885
+ attribute_value_ids?: string[] | undefined;
2886
+ }>, {
2887
+ values?: string[] | undefined;
2888
+ metadata?: Record<string, unknown> | null | undefined;
2889
+ type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
2890
+ name?: string | undefined;
2891
+ description?: string | null | undefined;
2892
+ is_required?: boolean | undefined;
2893
+ is_filterable?: boolean | undefined;
2894
+ is_variant_axis?: boolean | undefined;
2895
+ attribute_id?: string | undefined;
2896
+ attribute_value_ids?: string[] | undefined;
2897
+ }, {
2898
+ values?: string[] | undefined;
2899
+ metadata?: Record<string, unknown> | null | undefined;
2900
+ type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
2901
+ name?: string | undefined;
2902
+ description?: string | null | undefined;
2903
+ is_required?: boolean | undefined;
2904
+ is_filterable?: boolean | undefined;
2905
+ is_variant_axis?: boolean | undefined;
2906
+ attribute_id?: string | undefined;
2907
+ attribute_value_ids?: string[] | undefined;
2908
+ }>, {
2909
+ values?: string[] | undefined;
2910
+ metadata?: Record<string, unknown> | null | undefined;
2911
+ type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
2912
+ name?: string | undefined;
2913
+ description?: string | null | undefined;
2914
+ is_required?: boolean | undefined;
2915
+ is_filterable?: boolean | undefined;
2916
+ is_variant_axis?: boolean | undefined;
2917
+ attribute_id?: string | undefined;
2918
+ attribute_value_ids?: string[] | undefined;
2919
+ }, {
2920
+ values?: string[] | undefined;
2921
+ metadata?: Record<string, unknown> | null | undefined;
2922
+ type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
2923
+ name?: string | undefined;
2924
+ description?: string | null | undefined;
2925
+ is_required?: boolean | undefined;
2926
+ is_filterable?: boolean | undefined;
2927
+ is_variant_axis?: boolean | undefined;
2928
+ attribute_id?: string | undefined;
2929
+ attribute_value_ids?: string[] | undefined;
2930
+ }>;
2931
+ /**
2932
+ * `POST /admin/products/:id/attributes/:attribute_id` — atomic value-set
2933
+ * replacement for an attribute on a product. Admin goes direct against
2934
+ * `detachProductAttributeWorkflow` + `addProductAttributeWorkflow`
2935
+ * (no staging — operators don't go through the ProductChange flow that
2936
+ * sellers do), so the route handler chains both calls.
2937
+ */
2938
+ export type AdminUpdateProductAttributeType = z.infer<typeof AdminUpdateProductAttribute>;
2939
+ export declare const AdminUpdateProductAttribute: z.ZodObject<{
2940
+ attribute_value_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2941
+ values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2942
+ }, "strict", z.ZodTypeAny, {
2943
+ values?: string[] | undefined;
2944
+ attribute_value_ids?: string[] | undefined;
2945
+ }, {
2946
+ values?: string[] | undefined;
2947
+ attribute_value_ids?: string[] | undefined;
2948
+ }>;
2105
2949
  export {};