@mercurjs/core 2.2.0-canary.3 → 2.2.0-canary.7

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 (634) hide show
  1. package/.medusa/server/src/api/admin/middlewares.js +9 -13
  2. package/.medusa/server/src/api/admin/offers/query-config.js +8 -8
  3. package/.medusa/server/src/api/admin/product-attributes/[id]/route.js +3 -3
  4. package/.medusa/server/src/api/admin/product-attributes/[id]/values/[value_id]/route.js +3 -3
  5. package/.medusa/server/src/api/admin/product-attributes/[id]/values/route.js +2 -2
  6. package/.medusa/server/src/api/admin/product-attributes/middlewares.js +15 -1
  7. package/.medusa/server/src/api/admin/product-attributes/query-config.js +1 -2
  8. package/.medusa/server/src/api/admin/product-attributes/route.js +6 -3
  9. package/.medusa/server/src/api/admin/product-attributes/validators.d.ts +1 -5
  10. package/.medusa/server/src/api/admin/product-attributes/validators.js +2 -15
  11. package/.medusa/server/src/api/admin/product-categories/[id]/products/route.js +3 -3
  12. package/.medusa/server/src/api/admin/product-categories/[id]/route.js +8 -7
  13. package/.medusa/server/src/api/admin/product-categories/query-config.js +1 -2
  14. package/.medusa/server/src/api/admin/product-categories/route.js +4 -4
  15. package/.medusa/server/src/api/admin/product-categories/validators.d.ts +8 -8
  16. package/.medusa/server/src/api/admin/product-changes/[id]/cancel/route.js +5 -6
  17. package/.medusa/server/src/api/admin/product-changes/[id]/confirm/route.js +5 -5
  18. package/.medusa/server/src/api/admin/products/[id]/attributes/[attribute_id]/route.d.ts +1 -4
  19. package/.medusa/server/src/api/admin/products/[id]/attributes/[attribute_id]/route.js +42 -30
  20. package/.medusa/server/src/api/admin/products/[id]/attributes/batch/route.d.ts +3 -2
  21. package/.medusa/server/src/api/admin/products/[id]/attributes/batch/route.js +11 -22
  22. package/.medusa/server/src/api/admin/products/[id]/attributes/route.d.ts +2 -3
  23. package/.medusa/server/src/api/admin/products/[id]/attributes/route.js +40 -25
  24. package/.medusa/server/src/api/admin/products/[id]/confirm/route.d.ts +12 -0
  25. package/.medusa/server/src/api/admin/products/[id]/confirm/route.js +16 -6
  26. package/.medusa/server/src/api/admin/products/[id]/preview/route.d.ts +8 -1
  27. package/.medusa/server/src/api/admin/products/[id]/preview/route.js +20 -7
  28. package/.medusa/server/src/api/admin/products/[id]/reject/route.d.ts +8 -0
  29. package/.medusa/server/src/api/admin/products/[id]/reject/route.js +13 -8
  30. package/.medusa/server/src/api/admin/products/[id]/request-changes/route.d.ts +9 -0
  31. package/.medusa/server/src/api/admin/products/[id]/request-changes/route.js +16 -10
  32. package/.medusa/server/src/api/admin/products/[id]/route.js +6 -6
  33. package/.medusa/server/src/api/admin/products/[id]/variants/[variant_id]/route.js +5 -5
  34. package/.medusa/server/src/api/admin/products/[id]/variants/route.js +22 -4
  35. package/.medusa/server/src/api/admin/products/middlewares.js +8 -4
  36. package/.medusa/server/src/api/admin/products/query-config.js +12 -18
  37. package/.medusa/server/src/api/admin/products/route.js +4 -9
  38. package/.medusa/server/src/api/admin/products/validators.d.ts +1040 -214
  39. package/.medusa/server/src/api/admin/products/validators.js +108 -16
  40. package/.medusa/server/src/api/store/carts/[id]/line-items/route.js +11 -5
  41. package/.medusa/server/src/api/store/carts/[id]/line-items/validators.d.ts +3 -3
  42. package/.medusa/server/src/api/store/carts/[id]/line-items/validators.js +2 -2
  43. package/.medusa/server/src/api/store/middlewares.js +7 -9
  44. package/.medusa/server/src/api/store/products/[id]/route.js +3 -18
  45. package/.medusa/server/src/api/store/products/middlewares.js +1 -7
  46. package/.medusa/server/src/api/store/products/query-config.d.ts +1 -3
  47. package/.medusa/server/src/api/store/products/query-config.js +14 -17
  48. package/.medusa/server/src/api/store/products/route.js +3 -19
  49. package/.medusa/server/src/api/store/products/validators.d.ts +0 -6
  50. package/.medusa/server/src/api/store/products/validators.js +1 -2
  51. package/.medusa/server/src/api/utils/filter-attributes-by-category-link.d.ts +17 -0
  52. package/.medusa/server/src/api/utils/filter-attributes-by-category-link.js +58 -0
  53. package/.medusa/server/src/api/utils/format-product-attributes.d.ts +51 -5
  54. package/.medusa/server/src/api/utils/format-product-attributes.js +174 -31
  55. package/.medusa/server/src/api/utils/index.d.ts +1 -0
  56. package/.medusa/server/src/api/utils/index.js +2 -1
  57. package/.medusa/server/src/api/vendor/middlewares.js +7 -11
  58. package/.medusa/server/src/api/vendor/offers/query-config.js +8 -8
  59. package/.medusa/server/src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/cancel/route.js +3 -3
  60. package/.medusa/server/src/api/vendor/orders/[id]/fulfillments/route.js +3 -3
  61. package/.medusa/server/src/api/vendor/product-attributes/middlewares.js +15 -1
  62. package/.medusa/server/src/api/vendor/product-attributes/route.js +4 -1
  63. package/.medusa/server/src/api/vendor/product-attributes/validators.d.ts +1 -5
  64. package/.medusa/server/src/api/vendor/product-attributes/validators.js +2 -15
  65. package/.medusa/server/src/api/vendor/product-categories/query-config.js +1 -2
  66. package/.medusa/server/src/api/vendor/product-categories/validators.d.ts +4 -4
  67. package/.medusa/server/src/api/vendor/products/[id]/attributes/[attribute_id]/route.d.ts +6 -5
  68. package/.medusa/server/src/api/vendor/products/[id]/attributes/[attribute_id]/route.js +41 -16
  69. package/.medusa/server/src/api/vendor/products/[id]/attributes/route.d.ts +10 -6
  70. package/.medusa/server/src/api/vendor/products/[id]/attributes/route.js +60 -25
  71. package/.medusa/server/src/api/vendor/products/[id]/cancel/route.d.ts +5 -7
  72. package/.medusa/server/src/api/vendor/products/[id]/cancel/route.js +14 -15
  73. package/.medusa/server/src/api/vendor/products/[id]/route.d.ts +18 -9
  74. package/.medusa/server/src/api/vendor/products/[id]/route.js +35 -16
  75. package/.medusa/server/src/api/vendor/products/[id]/variants/[variant_id]/route.d.ts +11 -9
  76. package/.medusa/server/src/api/vendor/products/[id]/variants/[variant_id]/route.js +43 -21
  77. package/.medusa/server/src/api/vendor/products/[id]/variants/route.d.ts +9 -5
  78. package/.medusa/server/src/api/vendor/products/[id]/variants/route.js +30 -10
  79. package/.medusa/server/src/api/vendor/products/helpers.d.ts +8 -0
  80. package/.medusa/server/src/api/vendor/products/helpers.js +26 -0
  81. package/.medusa/server/src/api/vendor/products/middlewares.js +17 -5
  82. package/.medusa/server/src/api/vendor/products/query-config.js +12 -17
  83. package/.medusa/server/src/api/vendor/products/route.d.ts +11 -1
  84. package/.medusa/server/src/api/vendor/products/route.js +25 -12
  85. package/.medusa/server/src/api/vendor/products/validators.d.ts +292 -58
  86. package/.medusa/server/src/api/vendor/products/validators.js +78 -14
  87. package/.medusa/server/src/api/vendor/returns/[id]/receive/confirm/route.js +3 -3
  88. package/.medusa/server/src/links/category-seller-link.js +2 -2
  89. package/.medusa/server/src/links/offer-price-link.js +13 -0
  90. package/.medusa/server/src/links/offer-variant-link.js +2 -2
  91. package/.medusa/server/src/links/product-attribute-category-link.d.ts +16 -0
  92. package/.medusa/server/src/links/product-attribute-category-link.js +40 -0
  93. package/.medusa/server/src/links/product-attribute-product-link.d.ts +10 -0
  94. package/.medusa/server/src/links/product-attribute-product-link.js +29 -0
  95. package/.medusa/server/src/links/product-attribute-value-link.d.ts +22 -0
  96. package/.medusa/server/src/links/product-attribute-value-link.js +46 -0
  97. package/.medusa/server/src/links/product-change-link.d.ts +8 -0
  98. package/.medusa/server/src/links/product-change-link.js +27 -0
  99. package/.medusa/server/src/links/product-seller-link.js +2 -2
  100. package/.medusa/server/src/links/product-variant-attribute-link.js +21 -0
  101. package/.medusa/server/src/links/product-variant-attribute-value-link.d.ts +2 -0
  102. package/.medusa/server/src/links/product-variant-attribute-value-link.js +21 -0
  103. package/.medusa/server/src/modules/{product/migrations/Migration20260414141012.d.ts → offer/migrations/Migration20260526000000.d.ts} +1 -1
  104. package/.medusa/server/src/modules/offer/migrations/Migration20260526000000.js +16 -0
  105. package/.medusa/server/src/modules/offer/models/offer.d.ts +0 -1
  106. package/.medusa/server/src/modules/offer/models/offer.js +1 -7
  107. package/.medusa/server/src/modules/offer/service.d.ts +0 -1
  108. package/.medusa/server/src/modules/product-attribute/index.d.ts +36 -0
  109. package/.medusa/server/src/modules/product-attribute/index.js +14 -0
  110. package/.medusa/server/src/modules/product-attribute/joiner-config.d.ts +1 -0
  111. package/.medusa/server/src/modules/product-attribute/joiner-config.js +17 -0
  112. package/.medusa/server/src/modules/{product/migrations/Migration20260415151424.d.ts → product-attribute/migrations/Migration20260601000000.d.ts} +1 -1
  113. package/.medusa/server/src/modules/product-attribute/migrations/Migration20260601000000.js +62 -0
  114. package/.medusa/server/src/modules/product-attribute/migrations/Migration20260601000001.d.ts +11 -0
  115. package/.medusa/server/src/modules/product-attribute/migrations/Migration20260601000001.js +29 -0
  116. package/.medusa/server/src/modules/product-attribute/models/index.d.ts +2 -0
  117. package/.medusa/server/src/modules/product-attribute/models/index.js +11 -0
  118. package/.medusa/server/src/modules/product-attribute/models/product-attribute-value.d.ts +25 -0
  119. package/.medusa/server/src/modules/product-attribute/models/product-attribute-value.js +29 -0
  120. package/.medusa/server/src/modules/product-attribute/models/product-attribute.d.ts +26 -0
  121. package/.medusa/server/src/modules/product-attribute/models/product-attribute.js +53 -0
  122. package/.medusa/server/src/modules/product-attribute/service.d.ts +55 -0
  123. package/.medusa/server/src/modules/product-attribute/service.js +15 -0
  124. package/.medusa/server/src/modules/product-edit/index.d.ts +36 -0
  125. package/.medusa/server/src/modules/{subscription → product-edit}/index.js +4 -2
  126. package/.medusa/server/src/modules/product-edit/joiner-config.d.ts +1 -0
  127. package/.medusa/server/src/modules/product-edit/joiner-config.js +17 -0
  128. package/.medusa/server/src/modules/{product/migrations/Migration20260416104248.d.ts → product-edit/migrations/Migration20260601130000.d.ts} +1 -1
  129. package/.medusa/server/src/modules/product-edit/migrations/Migration20260601130000.js +78 -0
  130. package/.medusa/server/src/modules/product-edit/models/index.d.ts +2 -0
  131. package/.medusa/server/src/modules/product-edit/models/index.js +11 -0
  132. package/.medusa/server/src/modules/product-edit/models/product-change-action.d.ts +49 -0
  133. package/.medusa/server/src/modules/{product → product-edit}/models/product-change-action.js +1 -1
  134. package/.medusa/server/src/modules/product-edit/models/product-change.d.ts +31 -0
  135. package/.medusa/server/src/modules/product-edit/models/product-change.js +52 -0
  136. package/.medusa/server/src/modules/product-edit/service.d.ts +84 -0
  137. package/.medusa/server/src/modules/product-edit/service.js +15 -0
  138. package/.medusa/server/src/types/cart-line-item.d.ts +0 -9
  139. package/.medusa/server/src/with-mercur.js +1 -6
  140. package/.medusa/server/src/workflows/cart/hooks/before-refreshing-payment-collection.js +36 -0
  141. package/.medusa/server/src/workflows/cart/hooks/index.d.ts +3 -2
  142. package/.medusa/server/src/workflows/cart/hooks/index.js +4 -3
  143. package/.medusa/server/src/workflows/cart/hooks/set-pricing-context.js +94 -0
  144. package/.medusa/server/src/workflows/cart/hooks/validate.d.ts +1 -0
  145. package/.medusa/server/src/workflows/cart/hooks/validate.js +107 -0
  146. package/.medusa/server/src/workflows/cart/steps/index.d.ts +0 -3
  147. package/.medusa/server/src/workflows/cart/steps/index.js +1 -4
  148. package/.medusa/server/src/workflows/cart/utils/fields.js +1 -2
  149. package/.medusa/server/src/workflows/cart/workflows/index.d.ts +0 -2
  150. package/.medusa/server/src/workflows/cart/workflows/index.js +1 -3
  151. package/.medusa/server/src/workflows/index.d.ts +1 -1
  152. package/.medusa/server/src/workflows/index.js +2 -2
  153. package/.medusa/server/src/workflows/offer/steps/add-offer-prices.d.ts +22 -0
  154. package/.medusa/server/src/workflows/offer/steps/add-offer-prices.js +64 -0
  155. package/.medusa/server/src/workflows/offer/steps/create-offers.d.ts +0 -1
  156. package/.medusa/server/src/workflows/offer/steps/delete-offers.d.ts +6 -1
  157. package/.medusa/server/src/workflows/offer/steps/delete-offers.js +10 -6
  158. package/.medusa/server/src/workflows/offer/steps/ensure-variant-price-sets.d.ts +15 -0
  159. package/.medusa/server/src/workflows/offer/steps/ensure-variant-price-sets.js +61 -0
  160. package/.medusa/server/src/workflows/offer/steps/index.d.ts +4 -1
  161. package/.medusa/server/src/workflows/offer/steps/index.js +5 -2
  162. package/.medusa/server/src/workflows/offer/steps/remove-offer-prices.d.ts +3 -0
  163. package/.medusa/server/src/workflows/offer/steps/remove-offer-prices.js +15 -0
  164. package/.medusa/server/src/workflows/offer/steps/update-offers.d.ts +0 -1
  165. package/.medusa/server/src/workflows/offer/utils/assert-offer-price-ownership.d.ts +17 -0
  166. package/.medusa/server/src/workflows/offer/utils/assert-offer-price-ownership.js +27 -0
  167. package/.medusa/server/src/workflows/offer/utils/index.d.ts +1 -0
  168. package/.medusa/server/src/workflows/offer/utils/index.js +2 -1
  169. package/.medusa/server/src/workflows/offer/workflows/batch-offer-inventory-items.d.ts +17 -31
  170. package/.medusa/server/src/workflows/offer/workflows/batch-offer-inventory-items.js +1 -1
  171. package/.medusa/server/src/workflows/offer/workflows/create-offers.d.ts +12 -111
  172. package/.medusa/server/src/workflows/offer/workflows/create-offers.js +98 -45
  173. package/.medusa/server/src/workflows/offer/workflows/delete-offers.js +2 -2
  174. package/.medusa/server/src/workflows/offer/workflows/update-offers.d.ts +21 -116
  175. package/.medusa/server/src/workflows/offer/workflows/update-offers.js +136 -20
  176. package/.medusa/server/src/workflows/order/workflows/cancel-order-fulfillment.d.ts +1 -1
  177. package/.medusa/server/src/workflows/order/workflows/cancel-order-fulfillment.js +3 -4
  178. package/.medusa/server/src/workflows/order/workflows/confirm-return-receive.d.ts +1 -1
  179. package/.medusa/server/src/workflows/order/workflows/confirm-return-receive.js +3 -4
  180. package/.medusa/server/src/workflows/order/workflows/create-order-fulfillment.d.ts +10 -33
  181. package/.medusa/server/src/workflows/order/workflows/create-order-fulfillment.js +3 -4
  182. package/.medusa/server/src/workflows/product/events.d.ts +5 -47
  183. package/.medusa/server/src/workflows/product/events.js +7 -49
  184. package/.medusa/server/src/workflows/product/index.d.ts +1 -1
  185. package/.medusa/server/src/workflows/product/index.js +2 -2
  186. package/.medusa/server/src/workflows/product/steps/index.d.ts +3 -28
  187. package/.medusa/server/src/workflows/product/steps/index.js +4 -29
  188. package/.medusa/server/src/workflows/product/steps/replace-product-attribute-value-links.d.ts +28 -0
  189. package/.medusa/server/src/workflows/product/steps/replace-product-attribute-value-links.js +72 -0
  190. package/.medusa/server/src/workflows/product/steps/resolve-attribute-refs.d.ts +90 -0
  191. package/.medusa/server/src/workflows/product/steps/resolve-attribute-refs.js +185 -0
  192. package/.medusa/server/src/workflows/product/steps/validate-products-status.d.ts +19 -0
  193. package/.medusa/server/src/workflows/product/steps/validate-products-status.js +28 -0
  194. package/.medusa/server/src/workflows/product/steps/validate-seller-product-permissions.d.ts +0 -1
  195. package/.medusa/server/src/workflows/product/steps/validate-seller-product-permissions.js +2 -21
  196. package/.medusa/server/src/workflows/product/workflows/confirm-products.d.ts +13 -1
  197. package/.medusa/server/src/workflows/product/workflows/confirm-products.js +41 -30
  198. package/.medusa/server/src/workflows/product/workflows/create-products.d.ts +59 -3
  199. package/.medusa/server/src/workflows/product/workflows/create-products.js +202 -16
  200. package/.medusa/server/src/workflows/product/workflows/index.d.ts +3 -26
  201. package/.medusa/server/src/workflows/product/workflows/index.js +4 -27
  202. package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product-category.d.ts +1 -1
  203. package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product-category.js +3 -4
  204. package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product.d.ts +1 -1
  205. package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product.js +3 -4
  206. package/.medusa/server/src/workflows/product/workflows/reject-product.d.ts +8 -1
  207. package/.medusa/server/src/workflows/product/workflows/reject-product.js +42 -38
  208. package/.medusa/server/src/workflows/product/workflows/request-product-change.d.ts +25 -0
  209. package/.medusa/server/src/workflows/product/workflows/request-product-change.js +69 -0
  210. package/.medusa/server/src/workflows/product/workflows/update-products.d.ts +39 -3
  211. package/.medusa/server/src/workflows/product/workflows/update-products.js +148 -10
  212. package/.medusa/server/src/workflows/product-attribute/events.d.ts +19 -0
  213. package/.medusa/server/src/workflows/product-attribute/events.js +23 -0
  214. package/.medusa/server/src/workflows/{subscription → product-attribute}/index.d.ts +1 -0
  215. package/.medusa/server/src/workflows/{subscription → product-attribute}/index.js +2 -1
  216. package/.medusa/server/src/workflows/product-attribute/steps/create-product-attribute-values.d.ts +37 -0
  217. package/.medusa/server/src/workflows/product-attribute/steps/create-product-attribute-values.js +18 -0
  218. package/.medusa/server/src/workflows/product-attribute/steps/create-product-attributes.d.ts +44 -0
  219. package/.medusa/server/src/workflows/product-attribute/steps/create-product-attributes.js +18 -0
  220. package/.medusa/server/src/workflows/{product → product-attribute}/steps/delete-product-attribute-values.d.ts +1 -0
  221. package/.medusa/server/src/workflows/product-attribute/steps/delete-product-attribute-values.js +18 -0
  222. package/.medusa/server/src/workflows/{product → product-attribute}/steps/delete-product-attributes.d.ts +1 -0
  223. package/.medusa/server/src/workflows/product-attribute/steps/delete-product-attributes.js +18 -0
  224. package/.medusa/server/src/workflows/product-attribute/steps/index.d.ts +10 -0
  225. package/.medusa/server/src/workflows/product-attribute/steps/index.js +27 -0
  226. package/.medusa/server/src/workflows/product-attribute/steps/update-product-attribute-values.d.ts +38 -0
  227. package/.medusa/server/src/workflows/product-attribute/steps/update-product-attribute-values.js +23 -0
  228. package/.medusa/server/src/workflows/product-attribute/steps/update-product-attributes.d.ts +38 -0
  229. package/.medusa/server/src/workflows/{product → product-attribute}/steps/update-product-attributes.js +7 -6
  230. package/.medusa/server/src/workflows/product-attribute/steps/upsert-product-attribute-values.d.ts +43 -0
  231. package/.medusa/server/src/workflows/product-attribute/steps/upsert-product-attribute-values.js +51 -0
  232. package/.medusa/server/src/workflows/product-attribute/steps/upsert-product-options-for-axis.d.ts +7 -0
  233. package/.medusa/server/src/workflows/product-attribute/steps/upsert-product-options-for-axis.js +59 -0
  234. package/.medusa/server/src/workflows/product-attribute/steps/validate-attribute-accepts-values.d.ts +6 -0
  235. package/.medusa/server/src/workflows/product-attribute/steps/validate-attribute-accepts-values.js +20 -0
  236. package/.medusa/server/src/workflows/product-attribute/steps/validate-product-attribute-input.d.ts +7 -0
  237. package/.medusa/server/src/workflows/product-attribute/steps/validate-product-attribute-input.js +20 -0
  238. package/.medusa/server/src/workflows/product-attribute/workflows/add-product-attribute.d.ts +52 -0
  239. package/.medusa/server/src/workflows/product-attribute/workflows/add-product-attribute.js +120 -0
  240. package/.medusa/server/src/workflows/product-attribute/workflows/batch-product-attribute-values.d.ts +23 -0
  241. package/.medusa/server/src/workflows/product-attribute/workflows/batch-product-attribute-values.js +252 -0
  242. package/.medusa/server/src/workflows/product-attribute/workflows/create-product-attribute-values.d.ts +18 -0
  243. package/.medusa/server/src/workflows/product-attribute/workflows/create-product-attribute-values.js +26 -0
  244. package/.medusa/server/src/workflows/product-attribute/workflows/create-product-attributes.d.ts +19 -0
  245. package/.medusa/server/src/workflows/product-attribute/workflows/create-product-attributes.js +64 -0
  246. package/.medusa/server/src/workflows/product-attribute/workflows/delete-product-attribute-values.d.ts +16 -0
  247. package/.medusa/server/src/workflows/product-attribute/workflows/delete-product-attribute-values.js +40 -0
  248. package/.medusa/server/src/workflows/product-attribute/workflows/delete-product-attributes.d.ts +23 -0
  249. package/.medusa/server/src/workflows/product-attribute/workflows/delete-product-attributes.js +31 -0
  250. package/.medusa/server/src/workflows/product-attribute/workflows/detach-product-attribute.d.ts +17 -0
  251. package/.medusa/server/src/workflows/product-attribute/workflows/detach-product-attribute.js +62 -0
  252. package/.medusa/server/src/workflows/product-attribute/workflows/index.d.ts +12 -0
  253. package/.medusa/server/src/workflows/product-attribute/workflows/index.js +29 -0
  254. package/.medusa/server/src/workflows/product-attribute/workflows/materialize-product-attributes.d.ts +135 -0
  255. package/.medusa/server/src/workflows/product-attribute/workflows/materialize-product-attributes.js +43 -0
  256. package/.medusa/server/src/workflows/product-attribute/workflows/sync-product-attribute-options.d.ts +24 -0
  257. package/.medusa/server/src/workflows/product-attribute/workflows/sync-product-attribute-options.js +27 -0
  258. package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attribute-values.d.ts +18 -0
  259. package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attribute-values.js +27 -0
  260. package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attributes.d.ts +18 -0
  261. package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attributes.js +27 -0
  262. package/.medusa/server/src/workflows/product-attribute/workflows/upsert-product-attribute-values.d.ts +18 -0
  263. package/.medusa/server/src/workflows/product-attribute/workflows/upsert-product-attribute-values.js +26 -0
  264. package/.medusa/server/src/workflows/product-edit/events.d.ts +13 -0
  265. package/.medusa/server/src/workflows/product-edit/events.js +17 -0
  266. package/.medusa/server/src/workflows/product-edit/index.d.ts +1 -0
  267. package/.medusa/server/src/workflows/product-edit/index.js +2 -1
  268. package/.medusa/server/src/workflows/product-edit/steps/add-product-change-action.d.ts +38 -0
  269. package/.medusa/server/src/workflows/product-edit/steps/add-product-change-action.js +18 -0
  270. package/.medusa/server/src/workflows/product-edit/steps/cancel-product-change.d.ts +38 -2
  271. package/.medusa/server/src/workflows/product-edit/steps/cancel-product-change.js +28 -10
  272. package/.medusa/server/src/workflows/product-edit/steps/confirm-product-change-validation.d.ts +15 -0
  273. package/.medusa/server/src/workflows/product-edit/steps/confirm-product-change-validation.js +25 -0
  274. package/.medusa/server/src/workflows/product-edit/steps/confirm-product-changes.d.ts +46 -3
  275. package/.medusa/server/src/workflows/product-edit/steps/confirm-product-changes.js +44 -7
  276. package/.medusa/server/src/workflows/product-edit/steps/create-product-change-actions.d.ts +41 -14
  277. package/.medusa/server/src/workflows/product-edit/steps/create-product-change-actions.js +20 -11
  278. package/.medusa/server/src/workflows/product-edit/steps/create-product-changes.d.ts +46 -16
  279. package/.medusa/server/src/workflows/product-edit/steps/create-product-changes.js +11 -18
  280. package/.medusa/server/src/workflows/product-edit/steps/decline-product-change.d.ts +44 -3
  281. package/.medusa/server/src/workflows/product-edit/steps/decline-product-change.js +37 -10
  282. package/.medusa/server/src/workflows/product-edit/steps/index.d.ts +5 -3
  283. package/.medusa/server/src/workflows/product-edit/steps/index.js +6 -4
  284. package/.medusa/server/src/workflows/product-edit/steps/update-product-change-actions.d.ts +49 -0
  285. package/.medusa/server/src/workflows/product-edit/steps/update-product-change-actions.js +34 -0
  286. package/.medusa/server/src/workflows/product-edit/steps/validate-no-pending-product-change.d.ts +7 -7
  287. package/.medusa/server/src/workflows/product-edit/steps/validate-no-pending-product-change.js +29 -13
  288. package/.medusa/server/src/workflows/product-edit/steps/validate-product-change-is-pending.d.ts +10 -0
  289. package/.medusa/server/src/workflows/product-edit/steps/validate-product-change-is-pending.js +14 -0
  290. package/.medusa/server/src/workflows/product-edit/workflows/apply-product-attribute-change-actions.d.ts +23 -0
  291. package/.medusa/server/src/workflows/product-edit/workflows/apply-product-attribute-change-actions.js +139 -0
  292. package/.medusa/server/src/workflows/product-edit/workflows/apply-product-change-actions.d.ts +38 -0
  293. package/.medusa/server/src/workflows/product-edit/workflows/apply-product-change-actions.js +191 -0
  294. package/.medusa/server/src/workflows/product-edit/workflows/auto-confirm-product-change.d.ts +14 -13
  295. package/.medusa/server/src/workflows/product-edit/workflows/auto-confirm-product-change.js +14 -22
  296. package/.medusa/server/src/workflows/product-edit/workflows/cancel-product-change.d.ts +17 -0
  297. package/.medusa/server/src/workflows/product-edit/workflows/cancel-product-change.js +35 -0
  298. package/.medusa/server/src/workflows/product-edit/workflows/confirm-product-change.d.ts +30 -0
  299. package/.medusa/server/src/workflows/product-edit/workflows/confirm-product-change.js +55 -0
  300. package/.medusa/server/src/workflows/product-edit/workflows/create-product-change.d.ts +17 -0
  301. package/.medusa/server/src/workflows/product-edit/workflows/create-product-change.js +26 -0
  302. package/.medusa/server/src/workflows/product-edit/workflows/index.d.ts +10 -8
  303. package/.medusa/server/src/workflows/product-edit/workflows/index.js +11 -9
  304. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-delete-product.d.ts +14 -17
  305. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-delete-product.js +21 -46
  306. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-attributes.d.ts +55 -0
  307. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-attributes.js +198 -0
  308. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-fields.d.ts +22 -15
  309. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-fields.js +126 -50
  310. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-variants.d.ts +35 -0
  311. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-variants.js +108 -0
  312. package/.medusa/server/src/workflows/product-edit/workflows/record-product-audit-change.d.ts +36 -0
  313. package/.medusa/server/src/workflows/product-edit/workflows/record-product-audit-change.js +53 -0
  314. package/.medusa/server/src/workflows/product-edit/workflows/reject-product-change.d.ts +18 -0
  315. package/.medusa/server/src/workflows/product-edit/workflows/reject-product-change.js +36 -0
  316. package/.medusa/server/src/workflows/product-edit/workflows/stage-product-change.d.ts +35 -0
  317. package/.medusa/server/src/workflows/product-edit/workflows/stage-product-change.js +57 -0
  318. package/.medusa/server/src/workflows/seller/workflows/create-sellers.d.ts +20 -2
  319. package/.medusa/server/src/workflows/seller/workflows/create-sellers.js +1 -1
  320. package/.medusa/server/src/workflows/seller/workflows/update-seller-address.d.ts +14 -2
  321. package/.medusa/server/src/workflows/seller/workflows/update-seller-address.js +1 -1
  322. package/.medusa/server/src/workflows/seller/workflows/update-seller-payment-details.d.ts +14 -2
  323. package/.medusa/server/src/workflows/seller/workflows/update-seller-payment-details.js +1 -1
  324. package/.medusa/server/src/workflows/seller/workflows/update-seller-professional-details.d.ts +14 -2
  325. package/.medusa/server/src/workflows/seller/workflows/update-seller-professional-details.js +1 -1
  326. package/.medusa/server/src/workflows/seller/workflows/update-seller.d.ts +14 -2
  327. package/.medusa/server/src/workflows/seller/workflows/update-seller.js +1 -1
  328. package/package.json +3 -3
  329. package/.medusa/server/src/api/admin/product-brands/[id]/route.d.ts +0 -7
  330. package/.medusa/server/src/api/admin/product-brands/[id]/route.js +0 -51
  331. package/.medusa/server/src/api/admin/product-brands/[id]/sellers/route.d.ts +0 -3
  332. package/.medusa/server/src/api/admin/product-brands/[id]/sellers/route.js +0 -20
  333. package/.medusa/server/src/api/admin/product-brands/middlewares.d.ts +0 -2
  334. package/.medusa/server/src/api/admin/product-brands/middlewares.js +0 -49
  335. package/.medusa/server/src/api/admin/product-brands/query-config.d.ts +0 -12
  336. package/.medusa/server/src/api/admin/product-brands/query-config.js +0 -24
  337. package/.medusa/server/src/api/admin/product-brands/route.d.ts +0 -6
  338. package/.medusa/server/src/api/admin/product-brands/route.js +0 -38
  339. package/.medusa/server/src/api/admin/product-brands/validators.d.ts +0 -284
  340. package/.medusa/server/src/api/admin/product-brands/validators.js +0 -41
  341. package/.medusa/server/src/api/admin/products/batch/route.d.ts +0 -4
  342. package/.medusa/server/src/api/admin/products/batch/route.js +0 -36
  343. package/.medusa/server/src/api/admin/subscription-plans/[id]/overrides/[override_id]/route.d.ts +0 -6
  344. package/.medusa/server/src/api/admin/subscription-plans/[id]/overrides/[override_id]/route.js +0 -43
  345. package/.medusa/server/src/api/admin/subscription-plans/[id]/overrides/route.d.ts +0 -4
  346. package/.medusa/server/src/api/admin/subscription-plans/[id]/overrides/route.js +0 -24
  347. package/.medusa/server/src/api/admin/subscription-plans/[id]/route.d.ts +0 -6
  348. package/.medusa/server/src/api/admin/subscription-plans/[id]/route.js +0 -43
  349. package/.medusa/server/src/api/admin/subscription-plans/middlewares.d.ts +0 -2
  350. package/.medusa/server/src/api/admin/subscription-plans/middlewares.js +0 -81
  351. package/.medusa/server/src/api/admin/subscription-plans/query-config.d.ts +0 -17
  352. package/.medusa/server/src/api/admin/subscription-plans/query-config.js +0 -43
  353. package/.medusa/server/src/api/admin/subscription-plans/route.d.ts +0 -5
  354. package/.medusa/server/src/api/admin/subscription-plans/route.js +0 -35
  355. package/.medusa/server/src/api/admin/subscription-plans/validators.d.ts +0 -117
  356. package/.medusa/server/src/api/admin/subscription-plans/validators.js +0 -42
  357. package/.medusa/server/src/api/store/product-brands/[id]/route.d.ts +0 -2
  358. package/.medusa/server/src/api/store/product-brands/[id]/route.js +0 -18
  359. package/.medusa/server/src/api/store/product-brands/middlewares.d.ts +0 -2
  360. package/.medusa/server/src/api/store/product-brands/middlewares.js +0 -23
  361. package/.medusa/server/src/api/store/product-brands/query-config.d.ts +0 -12
  362. package/.medusa/server/src/api/store/product-brands/query-config.js +0 -23
  363. package/.medusa/server/src/api/store/product-brands/route.d.ts +0 -2
  364. package/.medusa/server/src/api/store/product-brands/route.js +0 -21
  365. package/.medusa/server/src/api/store/product-brands/validators.d.ts +0 -215
  366. package/.medusa/server/src/api/store/product-brands/validators.js +0 -21
  367. package/.medusa/server/src/api/utils/wrap-variants-with-offers-inventory.d.ts +0 -12
  368. package/.medusa/server/src/api/utils/wrap-variants-with-offers-inventory.js +0 -165
  369. package/.medusa/server/src/api/utils/wrap-variants-with-offers-prices.d.ts +0 -12
  370. package/.medusa/server/src/api/utils/wrap-variants-with-offers-prices.js +0 -64
  371. package/.medusa/server/src/api/vendor/product-brands/[id]/route.d.ts +0 -3
  372. package/.medusa/server/src/api/vendor/product-brands/[id]/route.js +0 -18
  373. package/.medusa/server/src/api/vendor/product-brands/middlewares.d.ts +0 -2
  374. package/.medusa/server/src/api/vendor/product-brands/middlewares.js +0 -23
  375. package/.medusa/server/src/api/vendor/product-brands/query-config.d.ts +0 -12
  376. package/.medusa/server/src/api/vendor/product-brands/query-config.js +0 -24
  377. package/.medusa/server/src/api/vendor/product-brands/route.d.ts +0 -3
  378. package/.medusa/server/src/api/vendor/product-brands/route.js +0 -21
  379. package/.medusa/server/src/api/vendor/product-brands/validators.d.ts +0 -221
  380. package/.medusa/server/src/api/vendor/product-brands/validators.js +0 -22
  381. package/.medusa/server/src/api/vendor/subscription/middlewares.d.ts +0 -2
  382. package/.medusa/server/src/api/vendor/subscription/middlewares.js +0 -28
  383. package/.medusa/server/src/api/vendor/subscription/route.d.ts +0 -3
  384. package/.medusa/server/src/api/vendor/subscription/route.js +0 -31
  385. package/.medusa/server/src/links/brand-seller-link.js +0 -16
  386. package/.medusa/server/src/links/offer-price-set-link.js +0 -15
  387. package/.medusa/server/src/modules/product/index.d.ts +0 -7
  388. package/.medusa/server/src/modules/product/index.js +0 -14
  389. package/.medusa/server/src/modules/product/migrations/Migration20260414141012.js +0 -169
  390. package/.medusa/server/src/modules/product/migrations/Migration20260415151424.js +0 -14
  391. package/.medusa/server/src/modules/product/migrations/Migration20260416104248.js +0 -14
  392. package/.medusa/server/src/modules/product/migrations/Migration20260416105443.d.ts +0 -5
  393. package/.medusa/server/src/modules/product/migrations/Migration20260416105443.js +0 -16
  394. package/.medusa/server/src/modules/product/migrations/Migration20260421093258.d.ts +0 -5
  395. package/.medusa/server/src/modules/product/migrations/Migration20260421093258.js +0 -22
  396. package/.medusa/server/src/modules/product/migrations/Migration20260422105949.d.ts +0 -5
  397. package/.medusa/server/src/modules/product/migrations/Migration20260422105949.js +0 -32
  398. package/.medusa/server/src/modules/product/migrations/Migration20260422112250.d.ts +0 -5
  399. package/.medusa/server/src/modules/product/migrations/Migration20260422112250.js +0 -16
  400. package/.medusa/server/src/modules/product/migrations/Migration20260424120000.d.ts +0 -5
  401. package/.medusa/server/src/modules/product/migrations/Migration20260424120000.js +0 -16
  402. package/.medusa/server/src/modules/product/migrations/Migration20260427140959.d.ts +0 -5
  403. package/.medusa/server/src/modules/product/migrations/Migration20260427140959.js +0 -20
  404. package/.medusa/server/src/modules/product/migrations/Migration20260427141021.d.ts +0 -5
  405. package/.medusa/server/src/modules/product/migrations/Migration20260427141021.js +0 -16
  406. package/.medusa/server/src/modules/product/migrations/Migration20260428115720.d.ts +0 -5
  407. package/.medusa/server/src/modules/product/migrations/Migration20260428115720.js +0 -16
  408. package/.medusa/server/src/modules/product/migrations/Migration20260430143600.d.ts +0 -5
  409. package/.medusa/server/src/modules/product/migrations/Migration20260430143600.js +0 -15
  410. package/.medusa/server/src/modules/product/migrations/Migration20260430144500.d.ts +0 -5
  411. package/.medusa/server/src/modules/product/migrations/Migration20260430144500.js +0 -23
  412. package/.medusa/server/src/modules/product/migrations/Migration20260430150000.d.ts +0 -5
  413. package/.medusa/server/src/modules/product/migrations/Migration20260430150000.js +0 -14
  414. package/.medusa/server/src/modules/product/migrations/Migration20260520120000.d.ts +0 -5
  415. package/.medusa/server/src/modules/product/migrations/Migration20260520120000.js +0 -16
  416. package/.medusa/server/src/modules/product/models/index.d.ts +0 -13
  417. package/.medusa/server/src/modules/product/models/index.js +0 -33
  418. package/.medusa/server/src/modules/product/models/product-attribute-value.d.ts +0 -1698
  419. package/.medusa/server/src/modules/product/models/product-attribute-value.js +0 -38
  420. package/.medusa/server/src/modules/product/models/product-attribute.d.ts +0 -1627
  421. package/.medusa/server/src/modules/product/models/product-attribute.js +0 -57
  422. package/.medusa/server/src/modules/product/models/product-brand.d.ts +0 -551
  423. package/.medusa/server/src/modules/product/models/product-brand.js +0 -34
  424. package/.medusa/server/src/modules/product/models/product-category.d.ts +0 -1692
  425. package/.medusa/server/src/modules/product/models/product-category.js +0 -55
  426. package/.medusa/server/src/modules/product/models/product-change-action.d.ts +0 -1105
  427. package/.medusa/server/src/modules/product/models/product-change.d.ts +0 -559
  428. package/.medusa/server/src/modules/product/models/product-change.js +0 -50
  429. package/.medusa/server/src/modules/product/models/product-collection.d.ts +0 -552
  430. package/.medusa/server/src/modules/product/models/product-collection.js +0 -27
  431. package/.medusa/server/src/modules/product/models/product-image.d.ts +0 -1745
  432. package/.medusa/server/src/modules/product/models/product-image.js +0 -51
  433. package/.medusa/server/src/modules/product/models/product-tag.d.ts +0 -561
  434. package/.medusa/server/src/modules/product/models/product-tag.js +0 -26
  435. package/.medusa/server/src/modules/product/models/product-type.d.ts +0 -553
  436. package/.medusa/server/src/modules/product/models/product-type.js +0 -26
  437. package/.medusa/server/src/modules/product/models/product-variant-product-image.d.ts +0 -3366
  438. package/.medusa/server/src/modules/product/models/product-variant-product-image.js +0 -19
  439. package/.medusa/server/src/modules/product/models/product-variant.d.ts +0 -1619
  440. package/.medusa/server/src/modules/product/models/product-variant.js +0 -87
  441. package/.medusa/server/src/modules/product/models/product.d.ts +0 -559
  442. package/.medusa/server/src/modules/product/models/product.js +0 -137
  443. package/.medusa/server/src/modules/product/repositories/product-category.d.ts +0 -53
  444. package/.medusa/server/src/modules/product/repositories/product-category.js +0 -381
  445. package/.medusa/server/src/modules/product/service.d.ts +0 -11209
  446. package/.medusa/server/src/modules/product/service.js +0 -1471
  447. package/.medusa/server/src/modules/product/services/product-category.d.ts +0 -37
  448. package/.medusa/server/src/modules/product/services/product-category.js +0 -166
  449. package/.medusa/server/src/modules/subscription/index.d.ts +0 -35
  450. package/.medusa/server/src/modules/subscription/migrations/Migration20260324135903.d.ts +0 -5
  451. package/.medusa/server/src/modules/subscription/migrations/Migration20260324135903.js +0 -24
  452. package/.medusa/server/src/modules/subscription/models/index.d.ts +0 -2
  453. package/.medusa/server/src/modules/subscription/models/index.js +0 -11
  454. package/.medusa/server/src/modules/subscription/models/subscription-override.d.ts +0 -20
  455. package/.medusa/server/src/modules/subscription/models/subscription-override.js +0 -36
  456. package/.medusa/server/src/modules/subscription/models/subscription-plan.d.ts +0 -20
  457. package/.medusa/server/src/modules/subscription/models/subscription-plan.js +0 -32
  458. package/.medusa/server/src/modules/subscription/service.d.ts +0 -49
  459. package/.medusa/server/src/modules/subscription/service.js +0 -17
  460. package/.medusa/server/src/workflows/cart/hooks/validate-add-to-cart-stock.js +0 -52
  461. package/.medusa/server/src/workflows/cart/hooks/validate-update-line-item-stock.js +0 -60
  462. package/.medusa/server/src/workflows/cart/steps/calculate-offer-prices.d.ts +0 -19
  463. package/.medusa/server/src/workflows/cart/steps/calculate-offer-prices.js +0 -39
  464. package/.medusa/server/src/workflows/cart/steps/decorate-line-item-with-offer.d.ts +0 -8
  465. package/.medusa/server/src/workflows/cart/steps/decorate-line-item-with-offer.js +0 -45
  466. package/.medusa/server/src/workflows/cart/steps/get-line-item-actions.d.ts +0 -21
  467. package/.medusa/server/src/workflows/cart/steps/get-line-item-actions.js +0 -85
  468. package/.medusa/server/src/workflows/cart/workflows/add-to-cart.d.ts +0 -12
  469. package/.medusa/server/src/workflows/cart/workflows/add-to-cart.js +0 -235
  470. package/.medusa/server/src/workflows/cart/workflows/update-line-item-in-cart.d.ts +0 -16
  471. package/.medusa/server/src/workflows/cart/workflows/update-line-item-in-cart.js +0 -87
  472. package/.medusa/server/src/workflows/product/steps/associate-sellers-with-product-brand.d.ts +0 -8
  473. package/.medusa/server/src/workflows/product/steps/associate-sellers-with-product-brand.js +0 -26
  474. package/.medusa/server/src/workflows/product/steps/batch-link-products-in-category.d.ts +0 -7
  475. package/.medusa/server/src/workflows/product/steps/batch-link-products-in-category.js +0 -61
  476. package/.medusa/server/src/workflows/product/steps/batch-product-attributes.d.ts +0 -11
  477. package/.medusa/server/src/workflows/product/steps/batch-product-attributes.js +0 -16
  478. package/.medusa/server/src/workflows/product/steps/create-product-attribute-values.d.ts +0 -6
  479. package/.medusa/server/src/workflows/product/steps/create-product-attribute-values.js +0 -17
  480. package/.medusa/server/src/workflows/product/steps/create-product-attributes.d.ts +0 -2
  481. package/.medusa/server/src/workflows/product/steps/create-product-attributes.js +0 -17
  482. package/.medusa/server/src/workflows/product/steps/create-product-brands.d.ts +0 -2
  483. package/.medusa/server/src/workflows/product/steps/create-product-brands.js +0 -17
  484. package/.medusa/server/src/workflows/product/steps/create-product-categories.d.ts +0 -1576
  485. package/.medusa/server/src/workflows/product/steps/create-product-categories.js +0 -18
  486. package/.medusa/server/src/workflows/product/steps/create-product-variants.d.ts +0 -2
  487. package/.medusa/server/src/workflows/product/steps/create-product-variants.js +0 -18
  488. package/.medusa/server/src/workflows/product/steps/create-products.d.ts +0 -2
  489. package/.medusa/server/src/workflows/product/steps/create-products.js +0 -17
  490. package/.medusa/server/src/workflows/product/steps/delete-product-attribute-values.js +0 -17
  491. package/.medusa/server/src/workflows/product/steps/delete-product-attributes.js +0 -17
  492. package/.medusa/server/src/workflows/product/steps/delete-product-brands.d.ts +0 -1
  493. package/.medusa/server/src/workflows/product/steps/delete-product-brands.js +0 -17
  494. package/.medusa/server/src/workflows/product/steps/delete-product-categories.d.ts +0 -1
  495. package/.medusa/server/src/workflows/product/steps/delete-product-categories.js +0 -17
  496. package/.medusa/server/src/workflows/product/steps/delete-product-variants.d.ts +0 -1
  497. package/.medusa/server/src/workflows/product/steps/delete-product-variants.js +0 -17
  498. package/.medusa/server/src/workflows/product/steps/delete-products.d.ts +0 -1
  499. package/.medusa/server/src/workflows/product/steps/delete-products.js +0 -17
  500. package/.medusa/server/src/workflows/product/steps/detach-sellers-from-product-brand.d.ts +0 -8
  501. package/.medusa/server/src/workflows/product/steps/detach-sellers-from-product-brand.js +0 -26
  502. package/.medusa/server/src/workflows/product/steps/remove-attribute-from-product.d.ts +0 -6
  503. package/.medusa/server/src/workflows/product/steps/remove-attribute-from-product.js +0 -11
  504. package/.medusa/server/src/workflows/product/steps/update-product-attribute-values.d.ts +0 -7
  505. package/.medusa/server/src/workflows/product/steps/update-product-attribute-values.js +0 -22
  506. package/.medusa/server/src/workflows/product/steps/update-product-attributes.d.ts +0 -7
  507. package/.medusa/server/src/workflows/product/steps/update-product-brands.d.ts +0 -7
  508. package/.medusa/server/src/workflows/product/steps/update-product-brands.js +0 -28
  509. package/.medusa/server/src/workflows/product/steps/update-product-categories.d.ts +0 -1580
  510. package/.medusa/server/src/workflows/product/steps/update-product-categories.js +0 -20
  511. package/.medusa/server/src/workflows/product/steps/update-product-variants.d.ts +0 -10
  512. package/.medusa/server/src/workflows/product/steps/update-product-variants.js +0 -32
  513. package/.medusa/server/src/workflows/product/steps/update-products.d.ts +0 -10
  514. package/.medusa/server/src/workflows/product/steps/update-products.js +0 -33
  515. package/.medusa/server/src/workflows/product/steps/upsert-product-attribute-values.d.ts +0 -5
  516. package/.medusa/server/src/workflows/product/steps/upsert-product-attribute-values.js +0 -30
  517. package/.medusa/server/src/workflows/product/steps/validate-attribute-accepts-values.d.ts +0 -5
  518. package/.medusa/server/src/workflows/product/steps/validate-attribute-accepts-values.js +0 -19
  519. package/.medusa/server/src/workflows/product/steps/validate-confirm-products.d.ts +0 -3
  520. package/.medusa/server/src/workflows/product/steps/validate-confirm-products.js +0 -14
  521. package/.medusa/server/src/workflows/product/steps/validate-delete-product-attribute-values.d.ts +0 -5
  522. package/.medusa/server/src/workflows/product/steps/validate-delete-product-attribute-values.js +0 -19
  523. package/.medusa/server/src/workflows/product/steps/validate-delete-product-attributes.d.ts +0 -5
  524. package/.medusa/server/src/workflows/product/steps/validate-delete-product-attributes.js +0 -30
  525. package/.medusa/server/src/workflows/product/steps/validate-reject-product.d.ts +0 -3
  526. package/.medusa/server/src/workflows/product/steps/validate-reject-product.js +0 -12
  527. package/.medusa/server/src/workflows/product/steps/validate-request-changes.d.ts +0 -3
  528. package/.medusa/server/src/workflows/product/steps/validate-request-changes.js +0 -12
  529. package/.medusa/server/src/workflows/product/steps/validate-resubmit-product.d.ts +0 -3
  530. package/.medusa/server/src/workflows/product/steps/validate-resubmit-product.js +0 -12
  531. package/.medusa/server/src/workflows/product/workflows/batch-link-products-in-category.d.ts +0 -8
  532. package/.medusa/server/src/workflows/product/workflows/batch-link-products-in-category.js +0 -10
  533. package/.medusa/server/src/workflows/product/workflows/batch-product-attributes.d.ts +0 -12
  534. package/.medusa/server/src/workflows/product/workflows/batch-product-attributes.js +0 -23
  535. package/.medusa/server/src/workflows/product/workflows/batch-products.d.ts +0 -3
  536. package/.medusa/server/src/workflows/product/workflows/batch-products.js +0 -86
  537. package/.medusa/server/src/workflows/product/workflows/create-product-attribute-values.d.ts +0 -8
  538. package/.medusa/server/src/workflows/product/workflows/create-product-attribute-values.js +0 -21
  539. package/.medusa/server/src/workflows/product/workflows/create-product-attributes.d.ts +0 -7
  540. package/.medusa/server/src/workflows/product/workflows/create-product-attributes.js +0 -18
  541. package/.medusa/server/src/workflows/product/workflows/create-product-brands.d.ts +0 -7
  542. package/.medusa/server/src/workflows/product/workflows/create-product-brands.js +0 -19
  543. package/.medusa/server/src/workflows/product/workflows/create-product-categories.d.ts +0 -1581
  544. package/.medusa/server/src/workflows/product/workflows/create-product-categories.js +0 -18
  545. package/.medusa/server/src/workflows/product/workflows/create-product-variants.d.ts +0 -3
  546. package/.medusa/server/src/workflows/product/workflows/create-product-variants.js +0 -25
  547. package/.medusa/server/src/workflows/product/workflows/delete-product-attribute-values.d.ts +0 -6
  548. package/.medusa/server/src/workflows/product/workflows/delete-product-attribute-values.js +0 -20
  549. package/.medusa/server/src/workflows/product/workflows/delete-product-attributes.d.ts +0 -6
  550. package/.medusa/server/src/workflows/product/workflows/delete-product-attributes.js +0 -20
  551. package/.medusa/server/src/workflows/product/workflows/delete-product-brands.d.ts +0 -6
  552. package/.medusa/server/src/workflows/product/workflows/delete-product-brands.js +0 -19
  553. package/.medusa/server/src/workflows/product/workflows/delete-product-categories.d.ts +0 -6
  554. package/.medusa/server/src/workflows/product/workflows/delete-product-categories.js +0 -18
  555. package/.medusa/server/src/workflows/product/workflows/delete-product-variants.d.ts +0 -8
  556. package/.medusa/server/src/workflows/product/workflows/delete-product-variants.js +0 -24
  557. package/.medusa/server/src/workflows/product/workflows/delete-products.d.ts +0 -6
  558. package/.medusa/server/src/workflows/product/workflows/delete-products.js +0 -19
  559. package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product-brand.d.ts +0 -14
  560. package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product-brand.js +0 -21
  561. package/.medusa/server/src/workflows/product/workflows/remove-attribute-from-product.d.ts +0 -7
  562. package/.medusa/server/src/workflows/product/workflows/remove-attribute-from-product.js +0 -20
  563. package/.medusa/server/src/workflows/product/workflows/request-product-changes.d.ts +0 -11
  564. package/.medusa/server/src/workflows/product/workflows/request-product-changes.js +0 -61
  565. package/.medusa/server/src/workflows/product/workflows/resubmit-product.d.ts +0 -8
  566. package/.medusa/server/src/workflows/product/workflows/resubmit-product.js +0 -48
  567. package/.medusa/server/src/workflows/product/workflows/submit-seller-products.d.ts +0 -3
  568. package/.medusa/server/src/workflows/product/workflows/submit-seller-products.js +0 -76
  569. package/.medusa/server/src/workflows/product/workflows/update-product-attribute-values.d.ts +0 -8
  570. package/.medusa/server/src/workflows/product/workflows/update-product-attribute-values.js +0 -18
  571. package/.medusa/server/src/workflows/product/workflows/update-product-attributes.d.ts +0 -8
  572. package/.medusa/server/src/workflows/product/workflows/update-product-attributes.js +0 -18
  573. package/.medusa/server/src/workflows/product/workflows/update-product-brands.d.ts +0 -8
  574. package/.medusa/server/src/workflows/product/workflows/update-product-brands.js +0 -19
  575. package/.medusa/server/src/workflows/product/workflows/update-product-categories.d.ts +0 -1583
  576. package/.medusa/server/src/workflows/product/workflows/update-product-categories.js +0 -18
  577. package/.medusa/server/src/workflows/product/workflows/update-product-variants.d.ts +0 -3
  578. package/.medusa/server/src/workflows/product/workflows/update-product-variants.js +0 -36
  579. package/.medusa/server/src/workflows/product/workflows/upsert-product-attribute-values.d.ts +0 -8
  580. package/.medusa/server/src/workflows/product/workflows/upsert-product-attribute-values.js +0 -21
  581. package/.medusa/server/src/workflows/product-edit/steps/retrieve-product-with-change.d.ts +0 -5
  582. package/.medusa/server/src/workflows/product-edit/steps/retrieve-product-with-change.js +0 -11
  583. package/.medusa/server/src/workflows/product-edit/steps/validate-product-change-pending.d.ts +0 -11
  584. package/.medusa/server/src/workflows/product-edit/steps/validate-product-change-pending.js +0 -21
  585. package/.medusa/server/src/workflows/product-edit/workflows/cancel-product-edit.d.ts +0 -19
  586. package/.medusa/server/src/workflows/product-edit/workflows/cancel-product-edit.js +0 -40
  587. package/.medusa/server/src/workflows/product-edit/workflows/confirm-product-edit.d.ts +0 -21
  588. package/.medusa/server/src/workflows/product-edit/workflows/confirm-product-edit.js +0 -44
  589. package/.medusa/server/src/workflows/product-edit/workflows/decline-product-edit.d.ts +0 -16
  590. package/.medusa/server/src/workflows/product-edit/workflows/decline-product-edit.js +0 -42
  591. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-add-attribute.d.ts +0 -19
  592. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-add-attribute.js +0 -66
  593. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-add-variant.d.ts +0 -17
  594. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-add-variant.js +0 -58
  595. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-remove-attribute.d.ts +0 -17
  596. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-remove-attribute.js +0 -62
  597. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-remove-variant.d.ts +0 -16
  598. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-remove-variant.js +0 -68
  599. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-variant.d.ts +0 -21
  600. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-variant.js +0 -89
  601. package/.medusa/server/src/workflows/subscription/steps/create-subscription-overrides.d.ts +0 -31
  602. package/.medusa/server/src/workflows/subscription/steps/create-subscription-overrides.js +0 -17
  603. package/.medusa/server/src/workflows/subscription/steps/create-subscription-plans.d.ts +0 -31
  604. package/.medusa/server/src/workflows/subscription/steps/create-subscription-plans.js +0 -17
  605. package/.medusa/server/src/workflows/subscription/steps/delete-subscription-overrides.d.ts +0 -2
  606. package/.medusa/server/src/workflows/subscription/steps/delete-subscription-overrides.js +0 -17
  607. package/.medusa/server/src/workflows/subscription/steps/delete-subscription-plans.d.ts +0 -2
  608. package/.medusa/server/src/workflows/subscription/steps/delete-subscription-plans.js +0 -17
  609. package/.medusa/server/src/workflows/subscription/steps/index.d.ts +0 -6
  610. package/.medusa/server/src/workflows/subscription/steps/index.js +0 -23
  611. package/.medusa/server/src/workflows/subscription/steps/update-subscription-overrides.d.ts +0 -31
  612. package/.medusa/server/src/workflows/subscription/steps/update-subscription-overrides.js +0 -17
  613. package/.medusa/server/src/workflows/subscription/steps/update-subscription-plans.d.ts +0 -31
  614. package/.medusa/server/src/workflows/subscription/steps/update-subscription-plans.js +0 -17
  615. package/.medusa/server/src/workflows/subscription/workflows/create-subscription-overrides.d.ts +0 -31
  616. package/.medusa/server/src/workflows/subscription/workflows/create-subscription-overrides.js +0 -11
  617. package/.medusa/server/src/workflows/subscription/workflows/create-subscription-plans.d.ts +0 -31
  618. package/.medusa/server/src/workflows/subscription/workflows/create-subscription-plans.js +0 -11
  619. package/.medusa/server/src/workflows/subscription/workflows/delete-subscription-overrides.d.ts +0 -5
  620. package/.medusa/server/src/workflows/subscription/workflows/delete-subscription-overrides.js +0 -11
  621. package/.medusa/server/src/workflows/subscription/workflows/delete-subscription-plans.d.ts +0 -5
  622. package/.medusa/server/src/workflows/subscription/workflows/delete-subscription-plans.js +0 -11
  623. package/.medusa/server/src/workflows/subscription/workflows/index.d.ts +0 -6
  624. package/.medusa/server/src/workflows/subscription/workflows/index.js +0 -23
  625. package/.medusa/server/src/workflows/subscription/workflows/update-subscription-overrides.d.ts +0 -31
  626. package/.medusa/server/src/workflows/subscription/workflows/update-subscription-overrides.js +0 -11
  627. package/.medusa/server/src/workflows/subscription/workflows/update-subscription-plans.d.ts +0 -31
  628. package/.medusa/server/src/workflows/subscription/workflows/update-subscription-plans.js +0 -11
  629. package/.medusa/server/src/workflows/utils/override-workflow.d.ts +0 -12
  630. package/.medusa/server/src/workflows/utils/override-workflow.js +0 -21
  631. /package/.medusa/server/src/links/{brand-seller-link.d.ts → offer-price-link.d.ts} +0 -0
  632. /package/.medusa/server/src/links/{offer-price-set-link.d.ts → product-variant-attribute-link.d.ts} +0 -0
  633. /package/.medusa/server/src/workflows/cart/hooks/{validate-add-to-cart-stock.d.ts → before-refreshing-payment-collection.d.ts} +0 -0
  634. /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;
@@ -147,44 +147,36 @@ export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
147
147
  id?: string | string[] | undefined;
148
148
  created_at?: any;
149
149
  updated_at?: any;
150
- status?: ProductStatus[] | undefined;
150
+ status?: ("draft" | "proposed" | "published" | "rejected")[] | undefined;
151
151
  q?: string | undefined;
152
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
  }, {
169
165
  id?: string | string[] | undefined;
170
166
  created_at?: any;
171
167
  updated_at?: any;
172
- status?: ProductStatus[] | undefined;
168
+ status?: ("draft" | "proposed" | "published" | "rejected")[] | undefined;
173
169
  q?: string | undefined;
174
170
  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;
@@ -331,44 +324,36 @@ export declare const AdminGetProductsParams: z.ZodEffects<z.ZodObject<{} & {
331
324
  id?: string | string[] | undefined;
332
325
  created_at?: any;
333
326
  updated_at?: any;
334
- status?: ProductStatus[] | undefined;
327
+ status?: ("draft" | "proposed" | "published" | "rejected")[] | undefined;
335
328
  q?: string | undefined;
336
329
  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
  }, {
353
342
  id?: string | string[] | undefined;
354
343
  created_at?: any;
355
344
  updated_at?: any;
356
- status?: ProductStatus[] | undefined;
345
+ status?: ("draft" | "proposed" | "published" | "rejected")[] | undefined;
357
346
  q?: string | undefined;
358
347
  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,9 +397,12 @@ 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;
419
407
  sku?: string | null | undefined;
420
408
  ean?: string | null | undefined;
@@ -435,6 +423,7 @@ 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;
439
428
  sku?: string | null | undefined;
440
429
  ean?: string | null | undefined;
@@ -497,8 +486,10 @@ 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;
503
494
  id?: string | undefined;
504
495
  sku?: string | null | undefined;
@@ -529,6 +520,7 @@ 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;
533
525
  id?: string | undefined;
534
526
  sku?: string | null | 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,9 +778,12 @@ 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;
778
788
  sku?: string | null | undefined;
779
789
  ean?: string | null | undefined;
@@ -794,6 +804,7 @@ 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;
798
809
  sku?: string | null | undefined;
799
810
  ean?: string | null | undefined;
@@ -826,8 +837,12 @@ 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;
845
+ status?: "draft" | "proposed" | "published" | "rejected" | undefined;
831
846
  metadata?: Record<string, unknown> | null | undefined;
832
847
  handle?: string | undefined;
833
848
  description?: 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,6 +899,7 @@ 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;
889
904
  sku?: string | null | undefined;
890
905
  ean?: string | null | undefined;
@@ -906,8 +921,12 @@ 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;
929
+ status?: "draft" | "proposed" | "published" | "rejected" | undefined;
911
930
  metadata?: Record<string, unknown> | null | undefined;
912
931
  handle?: string | undefined;
913
932
  description?: 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,6 +985,7 @@ 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;
971
990
  sku?: string | null | undefined;
972
991
  ean?: string | 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,8 +1187,10 @@ 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;
1160
1195
  id?: string | undefined;
1161
1196
  sku?: string | null | undefined;
@@ -1186,6 +1221,7 @@ 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;
1190
1226
  id?: string | undefined;
1191
1227
  sku?: string | null | undefined;
@@ -1226,8 +1262,12 @@ 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;
1270
+ status?: "draft" | "proposed" | "published" | "rejected" | undefined;
1231
1271
  metadata?: Record<string, unknown> | null | undefined;
1232
1272
  title?: string | undefined;
1233
1273
  handle?: 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,6 +1326,7 @@ 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;
1291
1331
  id?: string | undefined;
1292
1332
  sku?: string | null | undefined;
@@ -1318,8 +1358,12 @@ 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;
1366
+ status?: "draft" | "proposed" | "published" | "rejected" | undefined;
1323
1367
  metadata?: Record<string, unknown> | null | undefined;
1324
1368
  title?: string | undefined;
1325
1369
  handle?: 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,6 +1422,7 @@ 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;
1383
1427
  id?: string | undefined;
1384
1428
  sku?: string | null | undefined;
@@ -1439,131 +1483,793 @@ 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
+ sku?: string | null | undefined;
1514
+ ean?: string | null | undefined;
1515
+ upc?: string | null | undefined;
1516
+ metadata?: Record<string, unknown> | 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
+ sku?: string | null | undefined;
1535
+ ean?: string | null | undefined;
1536
+ upc?: string | null | undefined;
1537
+ metadata?: Record<string, unknown> | 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;
1532
- value_ids?: string[] | undefined;
1533
- }>, z.ZodObject<{
1534
- name: z.ZodString;
1535
- type: z.ZodEnum<["single_select", "multi_select", "unit", "toggle", "text"]>;
1536
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1537
- is_variant_axis: z.ZodOptional<z.ZodBoolean>;
1538
- is_filterable: z.ZodOptional<z.ZodBoolean>;
1539
- is_required: z.ZodOptional<z.ZodBoolean>;
1540
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1541
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1542
- }, "strip", z.ZodTypeAny, {
1543
- type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
1544
- name: string;
1545
- values?: string[] | undefined;
1546
- metadata?: Record<string, unknown> | null | undefined;
1547
- description?: string | null | undefined;
1548
- is_required?: boolean | undefined;
1549
- is_filterable?: boolean | undefined;
1550
- is_variant_axis?: boolean | undefined;
1551
- }, {
1552
- type: "single_select" | "multi_select" | "unit" | "toggle" | "text";
1553
- name: string;
1554
- values?: string[] | undefined;
1555
- metadata?: Record<string, unknown> | null | undefined;
1556
- description?: string | null | undefined;
1557
- is_required?: boolean | undefined;
1558
- is_filterable?: boolean | undefined;
1559
- is_variant_axis?: boolean | undefined;
1560
- }>]>, "many">>;
1561
- variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
1562
- id: z.ZodOptional<z.ZodString>;
1563
- title: z.ZodOptional<z.ZodString>;
1564
- sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1565
- ean: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1566
- upc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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
+ sku?: string | null | undefined;
1603
+ ean?: string | null | undefined;
1604
+ upc?: string | null | undefined;
1605
+ metadata?: Record<string, unknown> | 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
+ sku?: string | null | undefined;
1634
+ ean?: string | null | undefined;
1635
+ upc?: string | null | undefined;
1636
+ metadata?: Record<string, unknown> | 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
+ sku?: string | null | undefined;
1668
+ ean?: string | null | undefined;
1669
+ upc?: string | null | undefined;
1670
+ metadata?: Record<string, unknown> | 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
+ sku?: string | null | undefined;
1690
+ ean?: string | null | undefined;
1691
+ upc?: string | null | undefined;
1692
+ metadata?: Record<string, unknown> | 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
+ sku?: string | null | undefined;
1724
+ ean?: string | null | undefined;
1725
+ upc?: string | null | undefined;
1726
+ metadata?: Record<string, unknown> | 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
+ sku?: string | null | undefined;
1746
+ ean?: string | null | undefined;
1747
+ upc?: string | null | undefined;
1748
+ metadata?: Record<string, unknown> | 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
+ sku?: string | null | undefined;
1804
+ ean?: string | null | undefined;
1805
+ upc?: string | null | undefined;
1806
+ metadata?: Record<string, unknown> | 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
+ sku?: string | null | undefined;
1825
+ ean?: string | null | undefined;
1826
+ upc?: string | null | undefined;
1827
+ metadata?: Record<string, unknown> | 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
+ sku?: string | null | undefined;
1893
+ ean?: string | null | undefined;
1894
+ upc?: string | null | undefined;
1895
+ metadata?: Record<string, unknown> | 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
+ sku?: string | null | undefined;
1924
+ ean?: string | null | undefined;
1925
+ upc?: string | null | undefined;
1926
+ metadata?: Record<string, unknown> | 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
+ sku?: string | null | undefined;
1958
+ ean?: string | null | undefined;
1959
+ upc?: string | null | undefined;
1960
+ metadata?: Record<string, unknown> | 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
+ sku?: string | null | undefined;
1980
+ ean?: string | null | undefined;
1981
+ upc?: string | null | undefined;
1982
+ metadata?: Record<string, unknown> | 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
+ sku?: string | null | undefined;
2014
+ ean?: string | null | undefined;
2015
+ upc?: string | null | undefined;
2016
+ metadata?: Record<string, unknown> | 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
+ sku?: string | null | undefined;
2036
+ ean?: string | null | undefined;
2037
+ upc?: string | null | undefined;
2038
+ metadata?: Record<string, unknown> | 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;
2197
+ value_ids?: string[] | undefined;
2198
+ }>, z.ZodObject<{
2199
+ name: z.ZodString;
2200
+ type: z.ZodEnum<["single_select", "multi_select", "text", "toggle", "unit"]>;
2201
+ values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2202
+ is_variant_axis: z.ZodOptional<z.ZodBoolean>;
2203
+ is_filterable: z.ZodOptional<z.ZodBoolean>;
2204
+ is_required: z.ZodOptional<z.ZodBoolean>;
2205
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2206
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
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";
2249
+ name: string;
2250
+ values?: string[] | undefined;
2251
+ metadata?: Record<string, unknown> | null | undefined;
2252
+ description?: string | null | undefined;
2253
+ is_required?: boolean | undefined;
2254
+ is_filterable?: boolean | undefined;
2255
+ is_variant_axis?: boolean | undefined;
2256
+ }, {
2257
+ type: "single_select" | "multi_select" | "text" | "toggle" | "unit";
2258
+ name: string;
2259
+ values?: string[] | undefined;
2260
+ metadata?: Record<string, unknown> | null | undefined;
2261
+ description?: string | null | undefined;
2262
+ is_required?: boolean | undefined;
2263
+ is_filterable?: boolean | undefined;
2264
+ is_variant_axis?: boolean | undefined;
2265
+ }>]>, "many">>;
2266
+ attribute_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
2267
+ variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
2268
+ id: z.ZodOptional<z.ZodString>;
2269
+ title: z.ZodOptional<z.ZodString>;
2270
+ sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2271
+ ean: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2272
+ upc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1567
2273
  isbn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1568
2274
  asin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1569
2275
  gtin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1601,8 +2307,10 @@ 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;
1607
2315
  id?: string | undefined;
1608
2316
  sku?: string | null | undefined;
@@ -1633,6 +2341,7 @@ 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;
1637
2346
  id?: string | undefined;
1638
2347
  sku?: string | null | undefined;
@@ -1676,8 +2385,12 @@ 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;
2393
+ status?: "draft" | "proposed" | "published" | "rejected" | undefined;
1681
2394
  metadata?: Record<string, unknown> | null | undefined;
1682
2395
  title?: string | undefined;
1683
2396
  handle?: 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,6 +2449,7 @@ 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;
1741
2454
  id?: string | undefined;
1742
2455
  sku?: string | null | undefined;
@@ -1769,8 +2482,12 @@ 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;
2490
+ status?: "draft" | "proposed" | "published" | "rejected" | undefined;
1774
2491
  metadata?: Record<string, unknown> | null | undefined;
1775
2492
  title?: string | undefined;
1776
2493
  handle?: 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,6 +2546,7 @@ 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;
1834
2551
  id?: string | undefined;
1835
2552
  sku?: string | null | undefined;
@@ -1865,8 +2582,12 @@ 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;
2590
+ status?: "draft" | "proposed" | "published" | "rejected" | undefined;
1870
2591
  metadata?: Record<string, unknown> | null | undefined;
1871
2592
  title?: string | undefined;
1872
2593
  handle?: 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,6 +2646,7 @@ 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;
1930
2651
  id?: string | undefined;
1931
2652
  sku?: string | null | undefined;
@@ -1961,8 +2682,12 @@ 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;
2690
+ status?: "draft" | "proposed" | "published" | "rejected" | undefined;
1966
2691
  metadata?: Record<string, unknown> | null | undefined;
1967
2692
  title?: string | undefined;
1968
2693
  handle?: 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,6 +2746,7 @@ 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;
2026
2751
  id?: string | undefined;
2027
2752
  sku?: string | null | undefined;
@@ -2102,4 +2827,105 @@ 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
+ type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
2845
+ metadata?: Record<string, unknown> | null | 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
+ type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
2856
+ metadata?: Record<string, unknown> | null | 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
+ type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
2867
+ metadata?: Record<string, unknown> | null | 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
+ type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
2878
+ metadata?: Record<string, unknown> | null | 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
+ type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
2889
+ metadata?: Record<string, unknown> | null | 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
+ type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
2900
+ metadata?: Record<string, unknown> | null | 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
+ type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
2911
+ metadata?: Record<string, unknown> | null | 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
+ type?: "single_select" | "multi_select" | "text" | "toggle" | "unit" | undefined;
2922
+ metadata?: Record<string, unknown> | null | 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
+ }>;
2105
2931
  export {};