@mercurjs/core 2.2.0-canary.8 → 2.2.0-rc.0

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 (698) hide show
  1. package/.medusa/server/src/api/admin/claims/[id]/outbound/items/route.d.ts +13 -0
  2. package/.medusa/server/src/api/admin/claims/[id]/outbound/items/route.js +59 -0
  3. package/.medusa/server/src/api/admin/claims/[id]/request/route.d.ts +4 -0
  4. package/.medusa/server/src/api/admin/claims/[id]/request/route.js +74 -0
  5. package/.medusa/server/src/api/admin/collections/[id]/route.d.ts +7 -0
  6. package/.medusa/server/src/api/admin/collections/[id]/route.js +48 -0
  7. package/.medusa/server/src/api/admin/collections/middlewares.d.ts +2 -0
  8. package/.medusa/server/src/api/admin/collections/middlewares.js +49 -0
  9. package/.medusa/server/src/api/admin/collections/query-config.d.ts +12 -0
  10. package/.medusa/server/src/api/admin/collections/query-config.js +29 -0
  11. package/.medusa/server/src/api/admin/collections/route.d.ts +6 -0
  12. package/.medusa/server/src/api/admin/collections/route.js +36 -0
  13. package/.medusa/server/src/api/admin/collections/validators.d.ts +262 -0
  14. package/.medusa/server/src/api/admin/collections/validators.js +42 -0
  15. package/.medusa/server/src/api/admin/commission-rates/query-config.js +6 -4
  16. package/.medusa/server/src/api/admin/commission-rates/route.js +4 -1
  17. package/.medusa/server/src/api/admin/commission-rates/validators.d.ts +89 -58
  18. package/.medusa/server/src/api/admin/commission-rates/validators.js +16 -9
  19. package/.medusa/server/src/api/admin/customer-groups/middlewares.d.ts +2 -0
  20. package/.medusa/server/src/api/admin/customer-groups/middlewares.js +43 -0
  21. package/.medusa/server/src/api/admin/customer-groups/validators.d.ts +257 -0
  22. package/.medusa/server/src/api/admin/customer-groups/validators.js +12 -0
  23. package/.medusa/server/src/api/admin/exchanges/[id]/outbound/items/route.d.ts +14 -0
  24. package/.medusa/server/src/api/admin/exchanges/[id]/outbound/items/route.js +60 -0
  25. package/.medusa/server/src/api/admin/exchanges/[id]/request/route.d.ts +4 -0
  26. package/.medusa/server/src/api/admin/exchanges/[id]/request/route.js +75 -0
  27. package/.medusa/server/src/api/admin/members/validators.d.ts +14 -15
  28. package/.medusa/server/src/api/admin/middlewares.js +31 -36
  29. package/.medusa/server/src/api/admin/offers/middlewares.js +3 -1
  30. package/.medusa/server/src/api/admin/offers/query-config.js +3 -1
  31. package/.medusa/server/src/api/admin/offers/validators.d.ts +74 -55
  32. package/.medusa/server/src/api/admin/offers/validators.js +8 -1
  33. package/.medusa/server/src/api/admin/order-edits/[id]/confirm/route.d.ts +3 -0
  34. package/.medusa/server/src/api/admin/order-edits/[id]/confirm/route.js +18 -0
  35. package/.medusa/server/src/api/admin/order-edits/[id]/items/route.d.ts +15 -0
  36. package/.medusa/server/src/api/admin/order-edits/[id]/items/route.js +46 -0
  37. package/.medusa/server/src/api/admin/order-groups/helpers.d.ts +2 -0
  38. package/.medusa/server/src/api/admin/order-groups/helpers.js +53 -0
  39. package/.medusa/server/src/api/admin/order-groups/middlewares.js +3 -1
  40. package/.medusa/server/src/api/admin/order-groups/route.js +4 -2
  41. package/.medusa/server/src/api/admin/order-groups/validators.d.ts +20 -21
  42. package/.medusa/server/src/api/admin/orders/[id]/commission-lines/route.d.ts +7 -0
  43. package/.medusa/server/src/api/admin/orders/[id]/commission-lines/route.js +17 -0
  44. package/.medusa/server/src/api/admin/orders/middlewares.d.ts +2 -0
  45. package/.medusa/server/src/api/admin/orders/middlewares.js +42 -0
  46. package/.medusa/server/src/api/admin/orders/resolve-order-seller-id.d.ts +2 -0
  47. package/.medusa/server/src/api/admin/orders/resolve-order-seller-id.js +15 -0
  48. package/.medusa/server/src/api/admin/orders/validators.d.ts +1 -287
  49. package/.medusa/server/src/api/admin/orders/validators.js +9 -29
  50. package/.medusa/server/src/api/admin/payouts/validators.d.ts +18 -19
  51. package/.medusa/server/src/api/admin/product-attributes/[id]/route.js +2 -2
  52. package/.medusa/server/src/api/admin/product-attributes/[id]/values/[value_id]/route.js +2 -2
  53. package/.medusa/server/src/api/admin/product-attributes/middlewares.js +1 -3
  54. package/.medusa/server/src/api/admin/product-attributes/query-config.js +4 -1
  55. package/.medusa/server/src/api/admin/product-attributes/route.d.ts +2 -2
  56. package/.medusa/server/src/api/admin/product-attributes/route.js +2 -5
  57. package/.medusa/server/src/api/admin/product-attributes/validators.d.ts +129 -140
  58. package/.medusa/server/src/api/admin/product-attributes/validators.js +1 -3
  59. package/.medusa/server/src/api/admin/product-categories/[id]/route.js +8 -11
  60. package/.medusa/server/src/api/admin/product-categories/query-config.js +7 -1
  61. package/.medusa/server/src/api/admin/product-categories/route.js +5 -8
  62. package/.medusa/server/src/api/admin/product-categories/validators.d.ts +153 -93
  63. package/.medusa/server/src/api/admin/product-categories/validators.js +11 -1
  64. package/.medusa/server/src/api/admin/product-changes/[id]/cancel/route.d.ts +0 -7
  65. package/.medusa/server/src/api/admin/product-changes/[id]/cancel/route.js +1 -8
  66. package/.medusa/server/src/api/admin/product-changes/[id]/confirm/route.d.ts +0 -7
  67. package/.medusa/server/src/api/admin/product-changes/[id]/confirm/route.js +1 -8
  68. package/.medusa/server/src/api/admin/products/[id]/attributes/batch/route.js +6 -9
  69. package/.medusa/server/src/api/admin/products/[id]/confirm/route.d.ts +0 -12
  70. package/.medusa/server/src/api/admin/products/[id]/confirm/route.js +1 -13
  71. package/.medusa/server/src/api/admin/products/[id]/preview/route.d.ts +0 -7
  72. package/.medusa/server/src/api/admin/products/[id]/preview/route.js +1 -8
  73. package/.medusa/server/src/api/admin/products/[id]/reject/route.d.ts +0 -8
  74. package/.medusa/server/src/api/admin/products/[id]/reject/route.js +1 -9
  75. package/.medusa/server/src/api/admin/products/[id]/request-changes/route.d.ts +0 -9
  76. package/.medusa/server/src/api/admin/products/[id]/request-changes/route.js +1 -10
  77. package/.medusa/server/src/api/admin/products/[id]/route.js +9 -3
  78. package/.medusa/server/src/api/admin/products/[id]/sellers/route.d.ts +3 -0
  79. package/.medusa/server/src/api/admin/products/[id]/sellers/route.js +13 -0
  80. package/.medusa/server/src/api/admin/products/middlewares.js +6 -42
  81. package/.medusa/server/src/api/admin/products/query-config.js +41 -16
  82. package/.medusa/server/src/api/admin/products/route.js +9 -1
  83. package/.medusa/server/src/api/admin/products/validators.d.ts +558 -1306
  84. package/.medusa/server/src/api/admin/products/validators.js +59 -87
  85. package/.medusa/server/src/api/admin/returns/[id]/receive/confirm/route.d.ts +3 -0
  86. package/.medusa/server/src/api/admin/returns/[id]/receive/confirm/route.js +29 -0
  87. package/.medusa/server/src/api/admin/sellers/middlewares.js +1 -20
  88. package/.medusa/server/src/api/admin/sellers/validators.d.ts +75 -96
  89. package/.medusa/server/src/api/admin/sellers/validators.js +3 -4
  90. package/.medusa/server/src/api/admin/shipping-options/middlewares.d.ts +2 -0
  91. package/.medusa/server/src/api/admin/shipping-options/middlewares.js +46 -0
  92. package/.medusa/server/src/api/admin/shipping-profiles/middlewares.d.ts +2 -0
  93. package/.medusa/server/src/api/admin/shipping-profiles/middlewares.js +46 -0
  94. package/.medusa/server/src/api/admin/stock-locations/middlewares.d.ts +2 -0
  95. package/.medusa/server/src/api/admin/stock-locations/middlewares.js +46 -0
  96. package/.medusa/server/src/api/store/carts/[id]/complete/route.js +1 -5
  97. package/.medusa/server/src/api/store/carts/[id]/complete/validators.d.ts +1 -1
  98. package/.medusa/server/src/api/store/carts/[id]/line-items/route.js +13 -1
  99. package/.medusa/server/src/api/store/carts/[id]/line-items/validators.d.ts +0 -3
  100. package/.medusa/server/src/api/store/carts/[id]/line-items/validators.js +1 -2
  101. package/.medusa/server/src/api/store/carts/[id]/shipping-methods/route.js +6 -2
  102. package/.medusa/server/src/api/store/middlewares.js +15 -11
  103. package/.medusa/server/src/api/store/offers/[id]/route.d.ts +3 -0
  104. package/.medusa/server/src/api/store/offers/[id]/route.js +28 -0
  105. package/.medusa/server/src/api/store/offers/helpers.d.ts +43 -0
  106. package/.medusa/server/src/api/store/offers/helpers.js +191 -0
  107. package/.medusa/server/src/api/store/offers/middlewares.d.ts +2 -0
  108. package/.medusa/server/src/api/store/offers/middlewares.js +64 -0
  109. package/.medusa/server/src/api/store/offers/query-config.d.ts +12 -0
  110. package/.medusa/server/src/api/store/offers/query-config.js +50 -0
  111. package/.medusa/server/src/api/store/offers/route.d.ts +3 -0
  112. package/.medusa/server/src/api/store/offers/route.js +30 -0
  113. package/.medusa/server/src/api/store/offers/validators.d.ts +158 -0
  114. package/.medusa/server/src/api/store/offers/validators.js +29 -0
  115. package/.medusa/server/src/api/store/order-groups/validators.d.ts +16 -17
  116. package/.medusa/server/src/api/store/product-attributes/validators.d.ts +50 -46
  117. package/.medusa/server/src/api/store/product-categories/validators.d.ts +59 -53
  118. package/.medusa/server/src/api/store/products/[id]/route.js +9 -5
  119. package/.medusa/server/src/api/store/products/helpers.d.ts +10 -0
  120. package/.medusa/server/src/api/store/products/helpers.js +20 -0
  121. package/.medusa/server/src/api/store/products/middlewares.js +37 -24
  122. package/.medusa/server/src/api/store/products/query-config.js +23 -7
  123. package/.medusa/server/src/api/store/products/route.js +9 -1
  124. package/.medusa/server/src/api/store/products/validators.d.ts +69 -65
  125. package/.medusa/server/src/api/store/search/middlewares.d.ts +2 -0
  126. package/.medusa/server/src/api/store/search/middlewares.js +73 -0
  127. package/.medusa/server/src/api/store/search/route.d.ts +8 -0
  128. package/.medusa/server/src/api/store/search/route.js +25 -0
  129. package/.medusa/server/src/api/store/search/validators.d.ts +27 -0
  130. package/.medusa/server/src/api/store/search/validators.js +17 -0
  131. package/.medusa/server/src/api/store/sellers/validators.d.ts +35 -34
  132. package/.medusa/server/src/api/utils/filter-attributes-by-category-link.d.ts +0 -15
  133. package/.medusa/server/src/api/utils/filter-attributes-by-category-link.js +22 -26
  134. package/.medusa/server/src/api/utils/format-product-attributes.d.ts +5 -50
  135. package/.medusa/server/src/api/utils/format-product-attributes.js +90 -164
  136. package/.medusa/server/src/api/utils/index.d.ts +2 -0
  137. package/.medusa/server/src/api/utils/index.js +3 -1
  138. package/.medusa/server/src/api/utils/offers.d.ts +50 -0
  139. package/.medusa/server/src/api/utils/offers.js +286 -0
  140. package/.medusa/server/src/api/utils/order-commission-lines.d.ts +11 -0
  141. package/.medusa/server/src/api/utils/order-commission-lines.js +71 -0
  142. package/.medusa/server/src/api/utils/product-attribute-fields.d.ts +5 -0
  143. package/.medusa/server/src/api/utils/product-attribute-fields.js +35 -0
  144. package/.medusa/server/src/api/utils/sellers.d.ts +2 -0
  145. package/.medusa/server/src/api/utils/sellers.js +23 -0
  146. package/.medusa/server/src/api/vendor/campaigns/validators.d.ts +14 -15
  147. package/.medusa/server/src/api/vendor/claims/[id]/cancel/route.d.ts +4 -0
  148. package/.medusa/server/src/api/vendor/claims/[id]/cancel/route.js +17 -0
  149. package/.medusa/server/src/api/vendor/claims/[id]/claim-items/[action_id]/route.d.ts +9 -0
  150. package/.medusa/server/src/api/vendor/claims/[id]/claim-items/[action_id]/route.js +32 -0
  151. package/.medusa/server/src/api/vendor/claims/[id]/claim-items/route.d.ts +6 -0
  152. package/.medusa/server/src/api/vendor/claims/[id]/claim-items/route.js +15 -0
  153. package/.medusa/server/src/api/vendor/claims/[id]/inbound/items/[action_id]/route.d.ts +9 -0
  154. package/.medusa/server/src/api/vendor/claims/[id]/inbound/items/[action_id]/route.js +46 -0
  155. package/.medusa/server/src/api/vendor/claims/[id]/inbound/items/route.d.ts +6 -0
  156. package/.medusa/server/src/api/vendor/claims/[id]/inbound/items/route.js +26 -0
  157. package/.medusa/server/src/api/vendor/claims/[id]/inbound/shipping-method/[action_id]/route.d.ts +9 -0
  158. package/.medusa/server/src/api/vendor/claims/[id]/inbound/shipping-method/[action_id]/route.js +39 -0
  159. package/.medusa/server/src/api/vendor/claims/[id]/inbound/shipping-method/route.d.ts +6 -0
  160. package/.medusa/server/src/api/vendor/claims/[id]/inbound/shipping-method/route.js +26 -0
  161. package/.medusa/server/src/api/vendor/claims/[id]/outbound/items/[action_id]/route.d.ts +9 -0
  162. package/.medusa/server/src/api/vendor/claims/[id]/outbound/items/[action_id]/route.js +32 -0
  163. package/.medusa/server/src/api/vendor/claims/[id]/outbound/items/route.d.ts +6 -0
  164. package/.medusa/server/src/api/vendor/claims/[id]/outbound/items/route.js +41 -0
  165. package/.medusa/server/src/api/vendor/claims/[id]/outbound/shipping-method/[action_id]/route.d.ts +9 -0
  166. package/.medusa/server/src/api/vendor/claims/[id]/outbound/shipping-method/[action_id]/route.js +32 -0
  167. package/.medusa/server/src/api/vendor/claims/[id]/outbound/shipping-method/route.d.ts +6 -0
  168. package/.medusa/server/src/api/vendor/claims/[id]/outbound/shipping-method/route.js +15 -0
  169. package/.medusa/server/src/api/vendor/claims/[id]/request/route.d.ts +6 -0
  170. package/.medusa/server/src/api/vendor/claims/[id]/request/route.js +31 -0
  171. package/.medusa/server/src/api/vendor/claims/[id]/route.d.ts +3 -0
  172. package/.medusa/server/src/api/vendor/claims/[id]/route.js +19 -0
  173. package/.medusa/server/src/api/vendor/claims/helpers.d.ts +2 -0
  174. package/.medusa/server/src/api/vendor/claims/helpers.js +19 -0
  175. package/.medusa/server/src/api/vendor/claims/middlewares.d.ts +2 -0
  176. package/.medusa/server/src/api/vendor/claims/middlewares.js +184 -0
  177. package/.medusa/server/src/api/vendor/claims/query-config.d.ts +12 -0
  178. package/.medusa/server/src/api/vendor/claims/query-config.js +31 -0
  179. package/.medusa/server/src/api/vendor/claims/route.d.ts +5 -0
  180. package/.medusa/server/src/api/vendor/claims/route.js +35 -0
  181. package/.medusa/server/src/api/vendor/claims/validators.d.ts +377 -0
  182. package/.medusa/server/src/api/vendor/claims/validators.js +89 -0
  183. package/.medusa/server/src/api/vendor/collections/query-config.js +7 -1
  184. package/.medusa/server/src/api/vendor/collections/validators.d.ts +22 -23
  185. package/.medusa/server/src/api/vendor/currencies/validators.d.ts +14 -15
  186. package/.medusa/server/src/api/vendor/customer-groups/[id]/customers/route.d.ts +4 -0
  187. package/.medusa/server/src/api/vendor/customer-groups/[id]/customers/route.js +20 -0
  188. package/.medusa/server/src/api/vendor/customer-groups/[id]/route.d.ts +6 -0
  189. package/.medusa/server/src/api/vendor/customer-groups/[id]/route.js +43 -0
  190. package/.medusa/server/src/api/vendor/customer-groups/helpers.d.ts +3 -0
  191. package/.medusa/server/src/api/vendor/customer-groups/helpers.js +38 -0
  192. package/.medusa/server/src/api/vendor/customer-groups/middlewares.d.ts +2 -0
  193. package/.medusa/server/src/api/vendor/customer-groups/middlewares.js +62 -0
  194. package/.medusa/server/src/api/vendor/customer-groups/query-config.d.ts +11 -0
  195. package/.medusa/server/src/api/vendor/customer-groups/query-config.js +22 -0
  196. package/.medusa/server/src/api/vendor/customer-groups/route.d.ts +5 -0
  197. package/.medusa/server/src/api/vendor/customer-groups/route.js +35 -0
  198. package/.medusa/server/src/api/vendor/customer-groups/validators.d.ts +156 -0
  199. package/.medusa/server/src/api/vendor/customer-groups/validators.js +35 -0
  200. package/.medusa/server/src/api/vendor/customers/[id]/customer-groups/route.d.ts +4 -0
  201. package/.medusa/server/src/api/vendor/customers/[id]/customer-groups/route.js +27 -0
  202. package/.medusa/server/src/api/vendor/customers/[id]/route.js +13 -1
  203. package/.medusa/server/src/api/vendor/customers/middlewares.js +9 -1
  204. package/.medusa/server/src/api/vendor/customers/validators.d.ts +47 -32
  205. package/.medusa/server/src/api/vendor/customers/validators.js +9 -2
  206. package/.medusa/server/src/api/vendor/exchanges/[id]/cancel/route.d.ts +4 -0
  207. package/.medusa/server/src/api/vendor/exchanges/[id]/cancel/route.js +17 -0
  208. package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/items/[action_id]/route.d.ts +9 -0
  209. package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/items/[action_id]/route.js +46 -0
  210. package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/items/route.d.ts +6 -0
  211. package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/items/route.js +26 -0
  212. package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/shipping-method/[action_id]/route.d.ts +9 -0
  213. package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/shipping-method/[action_id]/route.js +45 -0
  214. package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/shipping-method/route.d.ts +6 -0
  215. package/.medusa/server/src/api/vendor/exchanges/[id]/inbound/shipping-method/route.js +26 -0
  216. package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/items/[action_id]/route.d.ts +9 -0
  217. package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/items/[action_id]/route.js +32 -0
  218. package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/items/route.d.ts +6 -0
  219. package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/items/route.js +41 -0
  220. package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/shipping-method/[action_id]/route.d.ts +9 -0
  221. package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/shipping-method/[action_id]/route.js +32 -0
  222. package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/shipping-method/route.d.ts +6 -0
  223. package/.medusa/server/src/api/vendor/exchanges/[id]/outbound/shipping-method/route.js +15 -0
  224. package/.medusa/server/src/api/vendor/exchanges/[id]/request/route.d.ts +6 -0
  225. package/.medusa/server/src/api/vendor/exchanges/[id]/request/route.js +31 -0
  226. package/.medusa/server/src/api/vendor/exchanges/helpers.d.ts +2 -0
  227. package/.medusa/server/src/api/vendor/exchanges/helpers.js +19 -0
  228. package/.medusa/server/src/api/vendor/exchanges/middlewares.d.ts +2 -0
  229. package/.medusa/server/src/api/vendor/exchanges/middlewares.js +155 -0
  230. package/.medusa/server/src/api/vendor/exchanges/query-config.d.ts +7 -0
  231. package/.medusa/server/src/api/vendor/exchanges/query-config.js +23 -0
  232. package/.medusa/server/src/api/vendor/exchanges/route.d.ts +5 -0
  233. package/.medusa/server/src/api/vendor/exchanges/route.js +35 -0
  234. package/.medusa/server/src/api/vendor/exchanges/validators.d.ts +312 -0
  235. package/.medusa/server/src/api/vendor/exchanges/validators.js +71 -0
  236. package/.medusa/server/src/api/vendor/fulfillment-providers/validators.d.ts +24 -23
  237. package/.medusa/server/src/api/vendor/fulfillment-sets/validators.d.ts +18 -18
  238. package/.medusa/server/src/api/vendor/inventory-items/validators.d.ts +104 -110
  239. package/.medusa/server/src/api/vendor/middlewares.js +77 -67
  240. package/.medusa/server/src/api/vendor/offers/query-config.js +2 -1
  241. package/.medusa/server/src/api/vendor/offers/validators.d.ts +54 -59
  242. package/.medusa/server/src/api/vendor/offers/validators.js +4 -8
  243. package/.medusa/server/src/api/vendor/order-edits/[id]/confirm/route.d.ts +3 -0
  244. package/.medusa/server/src/api/vendor/order-edits/[id]/confirm/route.js +18 -0
  245. package/.medusa/server/src/api/vendor/order-edits/[id]/items/[action_id]/route.d.ts +5 -0
  246. package/.medusa/server/src/api/vendor/order-edits/[id]/items/[action_id]/route.js +32 -0
  247. package/.medusa/server/src/api/vendor/order-edits/[id]/items/item/[item_id]/route.d.ts +4 -0
  248. package/.medusa/server/src/api/vendor/order-edits/[id]/items/item/[item_id]/route.js +24 -0
  249. package/.medusa/server/src/api/vendor/order-edits/[id]/items/route.d.ts +4 -0
  250. package/.medusa/server/src/api/vendor/order-edits/[id]/items/route.js +33 -0
  251. package/.medusa/server/src/api/vendor/order-edits/[id]/request/route.d.ts +3 -0
  252. package/.medusa/server/src/api/vendor/order-edits/[id]/request/route.js +18 -0
  253. package/.medusa/server/src/api/vendor/order-edits/[id]/route.d.ts +3 -0
  254. package/.medusa/server/src/api/vendor/order-edits/[id]/route.js +19 -0
  255. package/.medusa/server/src/api/vendor/order-edits/[id]/shipping-method/[action_id]/route.d.ts +5 -0
  256. package/.medusa/server/src/api/vendor/order-edits/[id]/shipping-method/[action_id]/route.js +32 -0
  257. package/.medusa/server/src/api/vendor/order-edits/[id]/shipping-method/route.d.ts +4 -0
  258. package/.medusa/server/src/api/vendor/order-edits/[id]/shipping-method/route.js +15 -0
  259. package/.medusa/server/src/api/vendor/order-edits/middlewares.d.ts +2 -0
  260. package/.medusa/server/src/api/vendor/order-edits/middlewares.js +94 -0
  261. package/.medusa/server/src/api/vendor/order-edits/route.d.ts +4 -0
  262. package/.medusa/server/src/api/vendor/order-edits/route.js +15 -0
  263. package/.medusa/server/src/api/vendor/order-edits/validators.d.ts +160 -0
  264. package/.medusa/server/src/api/vendor/order-edits/validators.js +50 -0
  265. package/.medusa/server/src/api/vendor/orders/[id]/commission-lines/route.d.ts +7 -0
  266. package/.medusa/server/src/api/vendor/orders/[id]/commission-lines/route.js +18 -0
  267. package/.medusa/server/src/api/vendor/orders/query-config.js +34 -11
  268. package/.medusa/server/src/api/vendor/orders/resolve-offer-items.d.ts +23 -0
  269. package/.medusa/server/src/api/vendor/orders/resolve-offer-items.js +75 -0
  270. package/.medusa/server/src/api/vendor/orders/validators.d.ts +23 -24
  271. package/.medusa/server/src/api/vendor/payments/helpers.js +14 -8
  272. package/.medusa/server/src/api/vendor/payments/validators.d.ts +38 -38
  273. package/.medusa/server/src/api/vendor/payout-accounts/validators.d.ts +11 -12
  274. package/.medusa/server/src/api/vendor/payouts/validators.d.ts +18 -19
  275. package/.medusa/server/src/api/vendor/price-lists/validators.d.ts +38 -40
  276. package/.medusa/server/src/api/vendor/price-preferences/validators.d.ts +14 -15
  277. package/.medusa/server/src/api/vendor/product-attributes/query-config.js +4 -2
  278. package/.medusa/server/src/api/vendor/product-attributes/route.js +1 -3
  279. package/.medusa/server/src/api/vendor/product-attributes/validators.d.ts +92 -104
  280. package/.medusa/server/src/api/vendor/product-attributes/validators.js +1 -1
  281. package/.medusa/server/src/api/vendor/product-categories/[id]/products/route.js +2 -2
  282. package/.medusa/server/src/api/vendor/product-categories/query-config.js +7 -1
  283. package/.medusa/server/src/api/vendor/product-categories/validators.d.ts +89 -83
  284. package/.medusa/server/src/api/vendor/product-tags/validators.d.ts +2 -2
  285. package/.medusa/server/src/api/vendor/product-types/validators.d.ts +14 -15
  286. package/.medusa/server/src/api/vendor/product-variants/middlewares.js +11 -19
  287. package/.medusa/server/src/api/vendor/product-variants/query-config.js +1 -3
  288. package/.medusa/server/src/api/vendor/product-variants/validators.d.ts +103 -97
  289. package/.medusa/server/src/api/vendor/products/[id]/attributes/batch/route.d.ts +2 -9
  290. package/.medusa/server/src/api/vendor/products/[id]/attributes/batch/route.js +3 -27
  291. package/.medusa/server/src/api/vendor/products/[id]/cancel/route.d.ts +0 -6
  292. package/.medusa/server/src/api/vendor/products/[id]/cancel/route.js +1 -9
  293. package/.medusa/server/src/api/vendor/products/[id]/preview/route.d.ts +0 -9
  294. package/.medusa/server/src/api/vendor/products/[id]/preview/route.js +1 -10
  295. package/.medusa/server/src/api/vendor/products/[id]/route.d.ts +0 -14
  296. package/.medusa/server/src/api/vendor/products/[id]/route.js +10 -20
  297. package/.medusa/server/src/api/vendor/products/[id]/variants/[variant_id]/route.d.ts +0 -8
  298. package/.medusa/server/src/api/vendor/products/[id]/variants/[variant_id]/route.js +3 -14
  299. package/.medusa/server/src/api/vendor/products/[id]/variants/route.d.ts +0 -7
  300. package/.medusa/server/src/api/vendor/products/[id]/variants/route.js +2 -11
  301. package/.medusa/server/src/api/vendor/products/helpers.d.ts +6 -5
  302. package/.medusa/server/src/api/vendor/products/helpers.js +54 -10
  303. package/.medusa/server/src/api/vendor/products/middlewares.js +14 -55
  304. package/.medusa/server/src/api/vendor/products/query-config.js +52 -15
  305. package/.medusa/server/src/api/vendor/products/route.d.ts +0 -9
  306. package/.medusa/server/src/api/vendor/products/route.js +14 -17
  307. package/.medusa/server/src/api/vendor/products/validators.d.ts +436 -816
  308. package/.medusa/server/src/api/vendor/products/validators.js +65 -97
  309. package/.medusa/server/src/api/vendor/promotions/validators.d.ts +47 -49
  310. package/.medusa/server/src/api/vendor/refund-reasons/validators.d.ts +18 -19
  311. package/.medusa/server/src/api/vendor/regions/validators.d.ts +20 -21
  312. package/.medusa/server/src/api/vendor/reservations/[id]/route.d.ts +5 -0
  313. package/.medusa/server/src/api/vendor/reservations/[id]/route.js +39 -0
  314. package/.medusa/server/src/api/vendor/reservations/helpers.d.ts +2 -0
  315. package/.medusa/server/src/api/vendor/reservations/helpers.js +18 -0
  316. package/.medusa/server/src/api/vendor/reservations/middlewares.d.ts +2 -0
  317. package/.medusa/server/src/api/vendor/reservations/middlewares.js +44 -0
  318. package/.medusa/server/src/api/vendor/reservations/query-config.d.ts +19 -0
  319. package/.medusa/server/src/api/vendor/reservations/query-config.js +45 -0
  320. package/.medusa/server/src/api/vendor/reservations/route.d.ts +4 -0
  321. package/.medusa/server/src/api/vendor/reservations/route.js +35 -0
  322. package/.medusa/server/src/api/vendor/reservations/validators.d.ts +295 -0
  323. package/.medusa/server/src/api/vendor/reservations/validators.js +40 -0
  324. package/.medusa/server/src/api/vendor/return-reasons/validators.d.ts +18 -19
  325. package/.medusa/server/src/api/vendor/returns/validators.d.ts +25 -26
  326. package/.medusa/server/src/api/vendor/sales-channels/[id]/products/route.js +2 -1
  327. package/.medusa/server/src/api/vendor/sales-channels/helpers.d.ts +1 -0
  328. package/.medusa/server/src/api/vendor/sales-channels/helpers.js +25 -2
  329. package/.medusa/server/src/api/vendor/sales-channels/validators.d.ts +25 -24
  330. package/.medusa/server/src/api/vendor/sellers/middlewares.js +1 -18
  331. package/.medusa/server/src/api/vendor/sellers/route.js +6 -2
  332. package/.medusa/server/src/api/vendor/sellers/validators.d.ts +25 -46
  333. package/.medusa/server/src/api/vendor/sellers/validators.js +2 -2
  334. package/.medusa/server/src/api/vendor/shipping-option-types/validators.d.ts +18 -19
  335. package/.medusa/server/src/api/vendor/shipping-options/middlewares.js +13 -1
  336. package/.medusa/server/src/api/vendor/shipping-options/validators.d.ts +100 -98
  337. package/.medusa/server/src/api/vendor/shipping-options/validators.js +2 -1
  338. package/.medusa/server/src/api/vendor/shipping-profiles/validators.d.ts +20 -21
  339. package/.medusa/server/src/api/vendor/stock-locations/validators.d.ts +18 -19
  340. package/.medusa/server/src/api/vendor/stores/validators.d.ts +14 -15
  341. package/.medusa/server/src/links/cart-line-item-offer-link.js +9 -2
  342. package/.medusa/server/src/links/media-product-category-link.d.ts +20 -0
  343. package/.medusa/server/src/links/media-product-category-link.js +34 -0
  344. package/.medusa/server/src/links/media-product-collection-link.d.ts +18 -0
  345. package/.medusa/server/src/links/media-product-collection-link.js +32 -0
  346. package/.medusa/server/src/links/offer-product-link.js +15 -0
  347. package/.medusa/server/src/links/order-line-item-offer-link.js +10 -2
  348. package/.medusa/server/src/links/product-attribute-category-link.d.ts +0 -14
  349. package/.medusa/server/src/links/product-attribute-category-link.js +4 -21
  350. package/.medusa/server/src/links/product-attribute-option-mirror-link.d.ts +6 -0
  351. package/.medusa/server/src/links/product-attribute-option-mirror-link.js +24 -0
  352. package/.medusa/server/src/links/product-attribute-product-link.d.ts +0 -5
  353. package/.medusa/server/src/links/product-attribute-product-link.js +2 -7
  354. package/.medusa/server/src/links/product-attribute-value-option-value-mirror-link.d.ts +6 -0
  355. package/.medusa/server/src/links/product-attribute-value-option-value-mirror-link.js +24 -0
  356. package/.medusa/server/src/links/{product-variant-attribute-value-link.d.ts → product-attribute-value-pivot-link.d.ts} +3 -0
  357. package/.medusa/server/src/links/product-attribute-value-pivot-link.js +23 -0
  358. package/.medusa/server/src/links/seller-customer-group-link.js +15 -0
  359. package/.medusa/server/src/migration-scripts/drop-fulfillment-global-unique-indexes.js +6 -1
  360. package/.medusa/server/src/migration-scripts/rename-default-store.d.ts +2 -0
  361. package/.medusa/server/src/migration-scripts/rename-default-store.js +12 -0
  362. package/.medusa/server/src/modules/commission/index.d.ts +14 -0
  363. package/.medusa/server/src/modules/commission/index.js +3 -1
  364. package/.medusa/server/src/modules/commission/loaders/seed-default-commission-rate.d.ts +11 -0
  365. package/.medusa/server/src/modules/commission/loaders/seed-default-commission-rate.js +35 -0
  366. package/.medusa/server/src/modules/commission/migrations/Migration20260615120000.d.ts +5 -0
  367. package/.medusa/server/src/modules/commission/migrations/Migration20260615120000.js +46 -0
  368. package/.medusa/server/src/modules/commission/models/commission-line.d.ts +2 -1
  369. package/.medusa/server/src/modules/commission/models/commission-line.js +3 -2
  370. package/.medusa/server/src/modules/commission/models/commission-rate-value.d.ts +25 -0
  371. package/.medusa/server/src/modules/commission/models/commission-rate-value.js +17 -0
  372. package/.medusa/server/src/modules/commission/models/commission-rate.d.ts +9 -4
  373. package/.medusa/server/src/modules/commission/models/commission-rate.js +9 -6
  374. package/.medusa/server/src/modules/commission/models/commission-rule.d.ts +8 -3
  375. package/.medusa/server/src/modules/commission/models/index.d.ts +1 -0
  376. package/.medusa/server/src/modules/commission/models/index.js +4 -2
  377. package/.medusa/server/src/modules/commission/service.d.ts +170 -10
  378. package/.medusa/server/src/modules/commission/service.js +270 -114
  379. package/.medusa/server/src/modules/media/index.d.ts +21 -0
  380. package/.medusa/server/src/modules/media/index.js +12 -0
  381. package/.medusa/server/src/modules/media/migrations/Migration20260616000000.d.ts +5 -0
  382. package/.medusa/server/src/modules/media/migrations/Migration20260616000000.js +16 -0
  383. package/.medusa/server/src/modules/media/models/index.d.ts +1 -0
  384. package/.medusa/server/src/modules/media/models/index.js +9 -0
  385. package/.medusa/server/src/modules/media/models/media-image.d.ts +32 -0
  386. package/.medusa/server/src/modules/media/models/media-image.js +41 -0
  387. package/.medusa/server/src/modules/media/service.d.ts +17 -0
  388. package/.medusa/server/src/modules/media/service.js +10 -0
  389. package/.medusa/server/src/modules/offer/migrations/Migration20260622000000.d.ts +5 -0
  390. package/.medusa/server/src/modules/offer/migrations/Migration20260622000000.js +16 -0
  391. package/.medusa/server/src/modules/offer/models/offer.d.ts +2 -0
  392. package/.medusa/server/src/modules/offer/models/offer.js +8 -1
  393. package/.medusa/server/src/modules/offer/service.d.ts +10 -0
  394. package/.medusa/server/src/modules/offer/service.js +100 -1
  395. package/.medusa/server/src/modules/product-attribute/migrations/Migration20260601000002.d.ts +14 -0
  396. package/.medusa/server/src/modules/product-attribute/migrations/Migration20260601000002.js +31 -0
  397. package/.medusa/server/src/modules/product-attribute/models/product-attribute-value.d.ts +2 -0
  398. package/.medusa/server/src/modules/product-attribute/models/product-attribute-value.js +2 -1
  399. package/.medusa/server/src/modules/product-attribute/models/product-attribute.d.ts +2 -0
  400. package/.medusa/server/src/modules/product-attribute/models/product-attribute.js +2 -1
  401. package/.medusa/server/src/modules/product-attribute/service.d.ts +18 -3
  402. package/.medusa/server/src/modules/product-attribute/service.js +213 -1
  403. package/.medusa/server/src/modules/search/abstract-search-provider.d.ts +9 -0
  404. package/.medusa/server/src/modules/search/abstract-search-provider.js +20 -0
  405. package/.medusa/server/src/modules/search/index.d.ts +10 -0
  406. package/.medusa/server/src/modules/search/index.js +31 -0
  407. package/.medusa/server/src/modules/search/lib/build-docs.d.ts +84 -0
  408. package/.medusa/server/src/modules/search/lib/build-docs.js +207 -0
  409. package/.medusa/server/src/modules/search/lib/reindex.d.ts +7 -0
  410. package/.medusa/server/src/modules/search/lib/reindex.js +61 -0
  411. package/.medusa/server/src/modules/search/lib/sync.d.ts +9 -0
  412. package/.medusa/server/src/modules/search/lib/sync.js +73 -0
  413. package/.medusa/server/src/modules/search/loaders/providers.d.ts +5 -0
  414. package/.medusa/server/src/modules/search/loaders/providers.js +26 -0
  415. package/.medusa/server/src/modules/search/providers/index.d.ts +1 -0
  416. package/.medusa/server/src/modules/search/providers/index.js +6 -0
  417. package/.medusa/server/src/modules/search/providers/orama/index.d.ts +4 -0
  418. package/.medusa/server/src/modules/search/providers/orama/index.js +12 -0
  419. package/.medusa/server/src/modules/search/providers/orama/service.d.ts +19 -0
  420. package/.medusa/server/src/modules/search/providers/orama/service.js +148 -0
  421. package/.medusa/server/src/modules/search/providers/orama/types.d.ts +10 -0
  422. package/.medusa/server/src/modules/search/providers/orama/types.js +3 -0
  423. package/.medusa/server/src/modules/search/services/index.d.ts +2 -0
  424. package/.medusa/server/src/modules/search/services/index.js +24 -0
  425. package/.medusa/server/src/modules/search/services/search-module-service.d.ts +25 -0
  426. package/.medusa/server/src/modules/search/services/search-module-service.js +60 -0
  427. package/.medusa/server/src/modules/search/services/search-provider-service.d.ts +15 -0
  428. package/.medusa/server/src/modules/search/services/search-provider-service.js +30 -0
  429. package/.medusa/server/src/modules/seller/migrations/Migration20260616120000.d.ts +5 -0
  430. package/.medusa/server/src/modules/seller/migrations/Migration20260616120000.js +16 -0
  431. package/.medusa/server/src/modules/seller/models/address.d.ts +2 -2
  432. package/.medusa/server/src/modules/seller/models/member-invite.d.ts +2 -2
  433. package/.medusa/server/src/modules/seller/models/member.d.ts +2 -2
  434. package/.medusa/server/src/modules/seller/models/payment-details.d.ts +2 -2
  435. package/.medusa/server/src/modules/seller/models/payment-details.js +3 -3
  436. package/.medusa/server/src/modules/seller/models/professional-details.d.ts +2 -2
  437. package/.medusa/server/src/modules/seller/models/seller-member.d.ts +4 -4
  438. package/.medusa/server/src/modules/seller/models/seller.d.ts +2 -2
  439. package/.medusa/server/src/modules/seller/repositories/order-group.js +1 -11
  440. package/.medusa/server/src/modules/seller/service.d.ts +16 -16
  441. package/.medusa/server/src/modules/seller/service.js +1 -2
  442. package/.medusa/server/src/subscribers/link-order-line-items-to-offers.d.ts +6 -0
  443. package/.medusa/server/src/subscribers/link-order-line-items-to-offers.js +94 -0
  444. package/.medusa/server/src/subscribers/order-edit-confirmed.d.ts +12 -0
  445. package/.medusa/server/src/subscribers/order-edit-confirmed.js +34 -0
  446. package/.medusa/server/src/subscribers/search-offer-changed.d.ts +6 -0
  447. package/.medusa/server/src/subscribers/search-offer-changed.js +34 -0
  448. package/.medusa/server/src/subscribers/search-product-changed.d.ts +5 -0
  449. package/.medusa/server/src/subscribers/search-product-changed.js +29 -0
  450. package/.medusa/server/src/subscribers/search-product-deleted.d.ts +5 -0
  451. package/.medusa/server/src/subscribers/search-product-deleted.js +23 -0
  452. package/.medusa/server/src/subscribers/search-reindex.d.ts +3 -0
  453. package/.medusa/server/src/subscribers/search-reindex.js +23 -0
  454. package/.medusa/server/src/subscribers/search-seller-changed.d.ts +5 -0
  455. package/.medusa/server/src/subscribers/search-seller-changed.js +44 -0
  456. package/.medusa/server/src/utils/dashboard/dashboard-base.js +6 -2
  457. package/.medusa/server/src/utils/disable-medusa-middlewares.js +7 -1
  458. package/.medusa/server/src/workflows/cart/hooks/validate.js +1 -12
  459. package/.medusa/server/src/workflows/cart/steps/prepare-adjustments-from-promotion-actions.js +3 -5
  460. package/.medusa/server/src/workflows/cart/utils/fields.js +25 -9
  461. package/.medusa/server/src/workflows/cart/utils/prepare-line-item-data.js +1 -3
  462. package/.medusa/server/src/workflows/cart/workflows/add-seller-shipping-method-to-cart.js +1 -2
  463. package/.medusa/server/src/workflows/cart/workflows/complete-cart-with-split-orders.js +19 -16
  464. package/.medusa/server/src/workflows/cart/workflows/list-seller-shipping-options-for-cart.d.ts +2 -2
  465. package/.medusa/server/src/workflows/cart/workflows/list-seller-shipping-options-for-cart.js +1 -2
  466. package/.medusa/server/src/workflows/commission/steps/create-commission-rates.d.ts +1 -28
  467. package/.medusa/server/src/workflows/commission/steps/create-commission-rules.d.ts +13 -4
  468. package/.medusa/server/src/workflows/commission/steps/index.d.ts +1 -0
  469. package/.medusa/server/src/workflows/commission/steps/index.js +2 -1
  470. package/.medusa/server/src/workflows/commission/steps/update-commission-rates.d.ts +13 -4
  471. package/.medusa/server/src/workflows/commission/steps/update-commission-rules.d.ts +13 -4
  472. package/.medusa/server/src/workflows/commission/steps/upsert-commission-lines.d.ts +2 -2
  473. package/.medusa/server/src/workflows/commission/steps/upsert-commission-lines.js +1 -1
  474. package/.medusa/server/src/workflows/commission/steps/validate-commission-rates-deletable.d.ts +2 -0
  475. package/.medusa/server/src/workflows/commission/steps/validate-commission-rates-deletable.js +19 -0
  476. package/.medusa/server/src/workflows/commission/workflows/create-commission-rates.d.ts +1 -28
  477. package/.medusa/server/src/workflows/commission/workflows/delete-commission-rates.d.ts +1 -2
  478. package/.medusa/server/src/workflows/commission/workflows/delete-commission-rates.js +3 -1
  479. package/.medusa/server/src/workflows/commission/workflows/refresh-order-commission-lines.js +2 -1
  480. package/.medusa/server/src/workflows/commission/workflows/update-commission-rates.d.ts +13 -4
  481. package/.medusa/server/src/workflows/customer-group/index.d.ts +2 -0
  482. package/.medusa/server/src/workflows/customer-group/index.js +19 -0
  483. package/.medusa/server/src/workflows/customer-group/steps/index.d.ts +1 -0
  484. package/.medusa/server/src/workflows/customer-group/steps/index.js +18 -0
  485. package/.medusa/server/src/workflows/customer-group/steps/link-seller-customer-group.d.ts +6 -0
  486. package/.medusa/server/src/workflows/customer-group/steps/link-seller-customer-group.js +38 -0
  487. package/.medusa/server/src/workflows/customer-group/workflows/create-seller-customer-groups.d.ts +7 -0
  488. package/.medusa/server/src/workflows/customer-group/workflows/create-seller-customer-groups.js +20 -0
  489. package/.medusa/server/src/workflows/customer-group/workflows/index.d.ts +1 -0
  490. package/.medusa/server/src/workflows/customer-group/workflows/index.js +18 -0
  491. package/.medusa/server/src/workflows/index.d.ts +2 -0
  492. package/.medusa/server/src/workflows/index.js +3 -1
  493. package/.medusa/server/src/workflows/media/index.d.ts +2 -0
  494. package/.medusa/server/src/workflows/media/index.js +19 -0
  495. package/.medusa/server/src/workflows/media/steps/create-images.d.ts +20 -0
  496. package/.medusa/server/src/workflows/media/steps/create-images.js +21 -0
  497. package/.medusa/server/src/workflows/media/steps/delete-images.d.ts +3 -0
  498. package/.medusa/server/src/workflows/media/steps/delete-images.js +21 -0
  499. package/.medusa/server/src/workflows/media/steps/index.d.ts +2 -0
  500. package/.medusa/server/src/workflows/media/steps/index.js +19 -0
  501. package/.medusa/server/src/workflows/media/workflows/create-product-category-with-images.d.ts +8 -0
  502. package/.medusa/server/src/workflows/media/workflows/create-product-category-with-images.js +23 -0
  503. package/.medusa/server/src/workflows/media/workflows/create-product-collection-with-images.d.ts +8 -0
  504. package/.medusa/server/src/workflows/media/workflows/create-product-collection-with-images.js +23 -0
  505. package/.medusa/server/src/workflows/media/workflows/delete-product-category-with-images.d.ts +5 -0
  506. package/.medusa/server/src/workflows/media/workflows/delete-product-category-with-images.js +21 -0
  507. package/.medusa/server/src/workflows/media/workflows/delete-product-collection-with-images.d.ts +5 -0
  508. package/.medusa/server/src/workflows/media/workflows/delete-product-collection-with-images.js +21 -0
  509. package/.medusa/server/src/workflows/media/workflows/index.d.ts +8 -0
  510. package/.medusa/server/src/workflows/media/workflows/index.js +25 -0
  511. package/.medusa/server/src/workflows/media/workflows/set-category-images.d.ts +13 -0
  512. package/.medusa/server/src/workflows/media/workflows/set-category-images.js +71 -0
  513. package/.medusa/server/src/workflows/media/workflows/set-collection-images.d.ts +13 -0
  514. package/.medusa/server/src/workflows/media/workflows/set-collection-images.js +71 -0
  515. package/.medusa/server/src/workflows/media/workflows/update-product-category-with-images.d.ts +9 -0
  516. package/.medusa/server/src/workflows/media/workflows/update-product-category-with-images.js +22 -0
  517. package/.medusa/server/src/workflows/media/workflows/update-product-collection-with-images.d.ts +9 -0
  518. package/.medusa/server/src/workflows/media/workflows/update-product-collection-with-images.js +22 -0
  519. package/.medusa/server/src/workflows/offer/steps/add-offer-prices.d.ts +0 -12
  520. package/.medusa/server/src/workflows/offer/steps/add-offer-prices.js +1 -16
  521. package/.medusa/server/src/workflows/offer/steps/create-offers.d.ts +2 -0
  522. package/.medusa/server/src/workflows/offer/steps/ensure-variant-price-sets.d.ts +0 -9
  523. package/.medusa/server/src/workflows/offer/steps/ensure-variant-price-sets.js +1 -10
  524. package/.medusa/server/src/workflows/offer/steps/update-offers.d.ts +2 -5
  525. package/.medusa/server/src/workflows/offer/steps/update-offers.js +1 -1
  526. package/.medusa/server/src/workflows/offer/utils/assert-offer-price-ownership.d.ts +0 -11
  527. package/.medusa/server/src/workflows/offer/utils/assert-offer-price-ownership.js +1 -12
  528. package/.medusa/server/src/workflows/offer/utils/prepare-offer-inventory-input.d.ts +0 -10
  529. package/.medusa/server/src/workflows/offer/utils/prepare-offer-inventory-input.js +1 -19
  530. package/.medusa/server/src/workflows/offer/workflows/create-offers.js +4 -16
  531. package/.medusa/server/src/workflows/offer/workflows/delete-offers.js +7 -2
  532. package/.medusa/server/src/workflows/offer/workflows/update-offers.d.ts +0 -11
  533. package/.medusa/server/src/workflows/offer/workflows/update-offers.js +2 -23
  534. package/.medusa/server/src/workflows/order/workflows/cancel-order-fulfillment.d.ts +1 -2
  535. package/.medusa/server/src/workflows/order/workflows/cancel-order-fulfillment.js +1 -2
  536. package/.medusa/server/src/workflows/order/workflows/confirm-claim-request.d.ts +7 -0
  537. package/.medusa/server/src/workflows/order/workflows/confirm-claim-request.js +149 -0
  538. package/.medusa/server/src/workflows/order/workflows/confirm-exchange-request.d.ts +7 -0
  539. package/.medusa/server/src/workflows/order/workflows/confirm-exchange-request.js +152 -0
  540. package/.medusa/server/src/workflows/order/workflows/confirm-order-edit-request.d.ts +7 -0
  541. package/.medusa/server/src/workflows/order/workflows/confirm-order-edit-request.js +165 -0
  542. package/.medusa/server/src/workflows/order/workflows/confirm-return-receive.js +1 -9
  543. package/.medusa/server/src/workflows/order/workflows/create-order-fulfillment.js +2 -3
  544. package/.medusa/server/src/workflows/order/workflows/index.d.ts +3 -0
  545. package/.medusa/server/src/workflows/order/workflows/index.js +4 -1
  546. package/.medusa/server/src/workflows/order-group/utils/aggregate-status.js +1 -7
  547. package/.medusa/server/src/workflows/order-group/workflows/get-order-groups-list.d.ts +1 -0
  548. package/.medusa/server/src/workflows/order-group/workflows/get-order-groups-list.js +11 -2
  549. package/.medusa/server/src/workflows/payout/workflows/create-payout.js +34 -21
  550. package/.medusa/server/src/workflows/product/events.d.ts +0 -6
  551. package/.medusa/server/src/workflows/product/events.js +1 -7
  552. package/.medusa/server/src/workflows/product/steps/index.d.ts +0 -2
  553. package/.medusa/server/src/workflows/product/steps/index.js +1 -3
  554. package/.medusa/server/src/workflows/product/steps/validate-products-status.d.ts +0 -8
  555. package/.medusa/server/src/workflows/product/steps/validate-products-status.js +1 -9
  556. package/.medusa/server/src/workflows/product/steps/validate-seller-product-permissions.js +1 -3
  557. package/.medusa/server/src/workflows/product/workflows/confirm-products.d.ts +0 -16
  558. package/.medusa/server/src/workflows/product/workflows/confirm-products.js +1 -13
  559. package/.medusa/server/src/workflows/product/workflows/create-products.d.ts +4 -52
  560. package/.medusa/server/src/workflows/product/workflows/create-products.js +69 -158
  561. package/.medusa/server/src/workflows/product/workflows/index.d.ts +0 -1
  562. package/.medusa/server/src/workflows/product/workflows/index.js +1 -2
  563. package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product-category.d.ts +0 -7
  564. package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product-category.js +1 -1
  565. package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product.d.ts +0 -7
  566. package/.medusa/server/src/workflows/product/workflows/link-sellers-to-product.js +1 -1
  567. package/.medusa/server/src/workflows/product/workflows/reject-product.d.ts +0 -7
  568. package/.medusa/server/src/workflows/product/workflows/reject-product.js +1 -8
  569. package/.medusa/server/src/workflows/product/workflows/request-product-change.d.ts +0 -14
  570. package/.medusa/server/src/workflows/product/workflows/request-product-change.js +1 -15
  571. package/.medusa/server/src/workflows/product-attribute/events.d.ts +0 -9
  572. package/.medusa/server/src/workflows/product-attribute/events.js +1 -10
  573. package/.medusa/server/src/workflows/product-attribute/steps/create-product-attribute-values.d.ts +1 -31
  574. package/.medusa/server/src/workflows/product-attribute/steps/create-product-attributes.d.ts +1 -41
  575. package/.medusa/server/src/workflows/product-attribute/steps/create-product-attributes.js +1 -1
  576. package/.medusa/server/src/workflows/product-attribute/steps/detach-product-option-values-from-product.d.ts +14 -0
  577. package/.medusa/server/src/workflows/product-attribute/steps/detach-product-option-values-from-product.js +40 -0
  578. package/.medusa/server/src/workflows/product-attribute/steps/index.d.ts +3 -4
  579. package/.medusa/server/src/workflows/product-attribute/steps/index.js +4 -5
  580. package/.medusa/server/src/workflows/product-attribute/steps/update-product-attribute-values.d.ts +6 -3
  581. package/.medusa/server/src/workflows/product-attribute/steps/update-product-attribute-values.js +17 -2
  582. package/.medusa/server/src/workflows/product-attribute/steps/update-product-attributes.d.ts +1 -31
  583. package/.medusa/server/src/workflows/product-attribute/steps/validate-product-attributes-not-linked.d.ts +2 -0
  584. package/.medusa/server/src/workflows/product-attribute/steps/validate-product-attributes-not-linked.js +28 -0
  585. package/.medusa/server/src/workflows/product-attribute/steps/validate-product-attributes-not-required.d.ts +7 -0
  586. package/.medusa/server/src/workflows/product-attribute/steps/validate-product-attributes-not-required.js +16 -0
  587. package/.medusa/server/src/workflows/product-attribute/workflows/add-product-attributes-to-product.d.ts +9 -0
  588. package/.medusa/server/src/workflows/product-attribute/workflows/add-product-attributes-to-product.js +242 -0
  589. package/.medusa/server/src/workflows/product-attribute/workflows/create-and-link-product-attributes.d.ts +14 -0
  590. package/.medusa/server/src/workflows/product-attribute/workflows/create-and-link-product-attributes.js +27 -0
  591. package/.medusa/server/src/workflows/product-attribute/workflows/create-product-attribute-values.js +44 -3
  592. package/.medusa/server/src/workflows/product-attribute/workflows/create-product-attributes.js +41 -17
  593. package/.medusa/server/src/workflows/product-attribute/workflows/delete-product-attribute-values.js +36 -15
  594. package/.medusa/server/src/workflows/product-attribute/workflows/delete-product-attributes.d.ts +0 -7
  595. package/.medusa/server/src/workflows/product-attribute/workflows/delete-product-attributes.js +11 -8
  596. package/.medusa/server/src/workflows/product-attribute/workflows/index.d.ts +4 -5
  597. package/.medusa/server/src/workflows/product-attribute/workflows/index.js +5 -6
  598. package/.medusa/server/src/workflows/product-attribute/workflows/remove-product-attributes-from-product.d.ts +10 -0
  599. package/.medusa/server/src/workflows/product-attribute/workflows/remove-product-attributes-from-product.js +83 -0
  600. package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attribute-values.js +34 -1
  601. package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attributes-on-product.d.ts +11 -0
  602. package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attributes-on-product.js +285 -0
  603. package/.medusa/server/src/workflows/product-attribute/workflows/update-product-attributes.js +15 -1
  604. package/.medusa/server/src/workflows/product-attribute/workflows/upsert-product-attribute-values.d.ts +4 -11
  605. package/.medusa/server/src/workflows/product-attribute/workflows/upsert-product-attribute-values.js +19 -19
  606. package/.medusa/server/src/workflows/product-edit/events.d.ts +0 -7
  607. package/.medusa/server/src/workflows/product-edit/events.js +1 -8
  608. package/.medusa/server/src/workflows/product-edit/steps/apply-variant-image-links.d.ts +16 -0
  609. package/.medusa/server/src/workflows/product-edit/steps/apply-variant-image-links.js +35 -0
  610. package/.medusa/server/src/workflows/product-edit/steps/confirm-product-change-validation.d.ts +0 -4
  611. package/.medusa/server/src/workflows/product-edit/steps/confirm-product-change-validation.js +1 -5
  612. package/.medusa/server/src/workflows/product-edit/steps/confirm-product-changes.d.ts +0 -6
  613. package/.medusa/server/src/workflows/product-edit/steps/confirm-product-changes.js +1 -7
  614. package/.medusa/server/src/workflows/product-edit/steps/create-product-change-actions.d.ts +0 -5
  615. package/.medusa/server/src/workflows/product-edit/steps/create-product-change-actions.js +1 -6
  616. package/.medusa/server/src/workflows/product-edit/steps/create-product-changes.d.ts +0 -6
  617. package/.medusa/server/src/workflows/product-edit/steps/create-product-changes.js +1 -1
  618. package/.medusa/server/src/workflows/product-edit/steps/decline-product-change.d.ts +0 -5
  619. package/.medusa/server/src/workflows/product-edit/steps/decline-product-change.js +1 -6
  620. package/.medusa/server/src/workflows/product-edit/steps/index.d.ts +1 -0
  621. package/.medusa/server/src/workflows/product-edit/steps/index.js +2 -1
  622. package/.medusa/server/src/workflows/product-edit/steps/update-product-change-actions.d.ts +0 -5
  623. package/.medusa/server/src/workflows/product-edit/steps/update-product-change-actions.js +1 -6
  624. package/.medusa/server/src/workflows/product-edit/steps/validate-no-pending-product-change.d.ts +0 -6
  625. package/.medusa/server/src/workflows/product-edit/steps/validate-no-pending-product-change.js +2 -8
  626. package/.medusa/server/src/workflows/product-edit/workflows/apply-product-attribute-change-actions.d.ts +5 -19
  627. package/.medusa/server/src/workflows/product-edit/workflows/apply-product-attribute-change-actions.js +11 -128
  628. package/.medusa/server/src/workflows/product-edit/workflows/apply-product-change-actions.d.ts +0 -31
  629. package/.medusa/server/src/workflows/product-edit/workflows/apply-product-change-actions.js +43 -50
  630. package/.medusa/server/src/workflows/product-edit/workflows/auto-confirm-product-change.d.ts +1 -9
  631. package/.medusa/server/src/workflows/product-edit/workflows/auto-confirm-product-change.js +3 -11
  632. package/.medusa/server/src/workflows/product-edit/workflows/confirm-product-change.d.ts +0 -11
  633. package/.medusa/server/src/workflows/product-edit/workflows/confirm-product-change.js +1 -12
  634. package/.medusa/server/src/workflows/product-edit/workflows/index.d.ts +1 -1
  635. package/.medusa/server/src/workflows/product-edit/workflows/index.js +2 -2
  636. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-delete-product.d.ts +0 -7
  637. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-delete-product.js +10 -9
  638. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-attributes.d.ts +4 -46
  639. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-attributes.js +11 -162
  640. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-product.d.ts +11 -0
  641. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-product.js +133 -0
  642. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-variants.d.ts +0 -10
  643. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-variants.js +71 -17
  644. package/.medusa/server/src/workflows/product-edit/workflows/record-product-audit-change.d.ts +0 -24
  645. package/.medusa/server/src/workflows/product-edit/workflows/record-product-audit-change.js +1 -15
  646. package/.medusa/server/src/workflows/product-edit/workflows/stage-product-change.d.ts +1 -25
  647. package/.medusa/server/src/workflows/product-edit/workflows/stage-product-change.js +2 -15
  648. package/.medusa/server/src/workflows/promotion/steps/register-usage.d.ts +0 -3
  649. package/.medusa/server/src/workflows/promotion/steps/register-usage.js +1 -4
  650. package/.medusa/server/src/workflows/seller/steps/create-seller-member.d.ts +4 -4
  651. package/.medusa/server/src/workflows/seller/steps/update-member.d.ts +2 -2
  652. package/.medusa/server/src/workflows/seller/steps/update-seller-member.d.ts +4 -4
  653. package/.medusa/server/src/workflows/seller/workflows/accept-member-invite.js +1 -2
  654. package/.medusa/server/src/workflows/seller/workflows/add-seller-member.d.ts +4 -4
  655. package/.medusa/server/src/workflows/seller/workflows/create-sellers.js +1 -2
  656. package/.medusa/server/src/workflows/seller/workflows/update-member.d.ts +2 -2
  657. package/package.json +19 -18
  658. package/.medusa/server/src/api/admin/products/[id]/attributes/[attribute_id]/route.d.ts +0 -4
  659. package/.medusa/server/src/api/admin/products/[id]/attributes/[attribute_id]/route.js +0 -65
  660. package/.medusa/server/src/api/admin/products/[id]/attributes/route.d.ts +0 -5
  661. package/.medusa/server/src/api/admin/products/[id]/attributes/route.js +0 -63
  662. package/.medusa/server/src/api/vendor/products/[id]/attributes/[attribute_id]/route.d.ts +0 -10
  663. package/.medusa/server/src/api/vendor/products/[id]/attributes/[attribute_id]/route.js +0 -62
  664. package/.medusa/server/src/api/vendor/products/[id]/attributes/route.d.ts +0 -15
  665. package/.medusa/server/src/api/vendor/products/[id]/attributes/route.js +0 -82
  666. package/.medusa/server/src/links/line-item-commission-line-link.js +0 -21
  667. package/.medusa/server/src/links/product-attribute-value-link.d.ts +0 -22
  668. package/.medusa/server/src/links/product-attribute-value-link.js +0 -46
  669. package/.medusa/server/src/links/product-variant-attribute-link.js +0 -21
  670. package/.medusa/server/src/links/product-variant-attribute-value-link.js +0 -21
  671. package/.medusa/server/src/workflows/product/steps/replace-product-attribute-value-links.d.ts +0 -28
  672. package/.medusa/server/src/workflows/product/steps/replace-product-attribute-value-links.js +0 -72
  673. package/.medusa/server/src/workflows/product/steps/resolve-attribute-refs.d.ts +0 -90
  674. package/.medusa/server/src/workflows/product/steps/resolve-attribute-refs.js +0 -185
  675. package/.medusa/server/src/workflows/product/workflows/update-products.d.ts +0 -39
  676. package/.medusa/server/src/workflows/product/workflows/update-products.js +0 -161
  677. package/.medusa/server/src/workflows/product-attribute/steps/upsert-product-attribute-values.d.ts +0 -43
  678. package/.medusa/server/src/workflows/product-attribute/steps/upsert-product-attribute-values.js +0 -51
  679. package/.medusa/server/src/workflows/product-attribute/steps/upsert-product-options-for-axis.d.ts +0 -7
  680. package/.medusa/server/src/workflows/product-attribute/steps/upsert-product-options-for-axis.js +0 -59
  681. package/.medusa/server/src/workflows/product-attribute/steps/validate-attribute-accepts-values.d.ts +0 -6
  682. package/.medusa/server/src/workflows/product-attribute/steps/validate-attribute-accepts-values.js +0 -20
  683. package/.medusa/server/src/workflows/product-attribute/steps/validate-product-attribute-input.d.ts +0 -7
  684. package/.medusa/server/src/workflows/product-attribute/steps/validate-product-attribute-input.js +0 -20
  685. package/.medusa/server/src/workflows/product-attribute/workflows/add-product-attribute.d.ts +0 -52
  686. package/.medusa/server/src/workflows/product-attribute/workflows/add-product-attribute.js +0 -120
  687. package/.medusa/server/src/workflows/product-attribute/workflows/batch-product-attribute-values.d.ts +0 -23
  688. package/.medusa/server/src/workflows/product-attribute/workflows/batch-product-attribute-values.js +0 -252
  689. package/.medusa/server/src/workflows/product-attribute/workflows/detach-product-attribute.d.ts +0 -17
  690. package/.medusa/server/src/workflows/product-attribute/workflows/detach-product-attribute.js +0 -62
  691. package/.medusa/server/src/workflows/product-attribute/workflows/materialize-product-attributes.d.ts +0 -135
  692. package/.medusa/server/src/workflows/product-attribute/workflows/materialize-product-attributes.js +0 -43
  693. package/.medusa/server/src/workflows/product-attribute/workflows/sync-product-attribute-options.d.ts +0 -24
  694. package/.medusa/server/src/workflows/product-attribute/workflows/sync-product-attribute-options.js +0 -27
  695. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-fields.d.ts +0 -25
  696. package/.medusa/server/src/workflows/product-edit/workflows/product-edit-update-fields.js +0 -148
  697. /package/.medusa/server/src/links/{line-item-commission-line-link.d.ts → offer-product-link.d.ts} +0 -0
  698. /package/.medusa/server/src/links/{product-variant-attribute-link.d.ts → seller-customer-group-link.d.ts} +0 -0
@@ -3,7 +3,7 @@ import { z } from "zod";
3
3
  export type VendorGetPriceListParamsType = z.infer<typeof VendorGetPriceListParams>;
4
4
  export declare const VendorGetPriceListParams: z.ZodObject<{
5
5
  fields: z.ZodOptional<z.ZodString>;
6
- }, "strip", z.ZodTypeAny, {
6
+ }, z.core.$strip, z.ZodTypeAny, {
7
7
  fields?: string | undefined;
8
8
  }, {
9
9
  fields?: string | undefined;
@@ -11,15 +11,14 @@ export declare const VendorGetPriceListParams: z.ZodObject<{
11
11
  export type VendorGetPriceListsParamsType = z.infer<typeof VendorGetPriceListsParams>;
12
12
  export declare const VendorGetPriceListsParams: z.ZodObject<{
13
13
  fields: z.ZodOptional<z.ZodString>;
14
- } & {
15
- offset: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
16
- limit: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
14
+ offset: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
15
+ limit: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
17
16
  order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
18
- with_deleted: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
17
+ with_deleted: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
19
18
  } & {
20
19
  q: z.ZodOptional<z.ZodString>;
21
20
  id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
22
- starts_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
21
+ starts_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
23
22
  $eq: any;
24
23
  $ne: any;
25
24
  $in: any;
@@ -32,7 +31,7 @@ export declare const VendorGetPriceListsParams: z.ZodObject<{
32
31
  $gte: any;
33
32
  $lt: any;
34
33
  $lte: any;
35
- }, "strip", z.ZodTypeAny, {
34
+ }, z.core.$strip, z.ZodTypeAny, {
36
35
  $eq?: any;
37
36
  $ne?: any;
38
37
  $in?: any;
@@ -59,7 +58,7 @@ export declare const VendorGetPriceListsParams: z.ZodObject<{
59
58
  $lt?: any;
60
59
  $lte?: any;
61
60
  }>]>>;
62
- ends_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
61
+ ends_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
63
62
  $eq: any;
64
63
  $ne: any;
65
64
  $in: any;
@@ -72,7 +71,7 @@ export declare const VendorGetPriceListsParams: z.ZodObject<{
72
71
  $gte: any;
73
72
  $lt: any;
74
73
  $lte: any;
75
- }, "strip", z.ZodTypeAny, {
74
+ }, z.core.$strip, z.ZodTypeAny, {
76
75
  $eq?: any;
77
76
  $ne?: any;
78
77
  $in?: any;
@@ -101,25 +100,25 @@ export declare const VendorGetPriceListsParams: z.ZodObject<{
101
100
  }>]>>;
102
101
  status: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof PriceListStatus>, "many">>;
103
102
  }, "strip", z.ZodTypeAny, {
104
- offset: number;
105
- limit: number;
103
+ order?: string | undefined;
106
104
  id?: string | string[] | undefined;
105
+ fields?: string | undefined;
107
106
  status?: PriceListStatus[] | undefined;
107
+ offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
108
+ limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
109
+ with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
108
110
  q?: string | undefined;
109
- fields?: string | undefined;
110
- order?: string | undefined;
111
- with_deleted?: boolean | undefined;
112
111
  starts_at?: any;
113
112
  ends_at?: any;
114
113
  }, {
114
+ order?: string | undefined;
115
115
  id?: string | string[] | undefined;
116
+ fields?: string | undefined;
116
117
  status?: PriceListStatus[] | undefined;
117
- offset?: unknown;
118
- limit?: unknown;
118
+ offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
119
+ limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
120
+ with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
119
121
  q?: string | undefined;
120
- fields?: string | undefined;
121
- order?: string | undefined;
122
- with_deleted?: unknown;
123
122
  starts_at?: any;
124
123
  ends_at?: any;
125
124
  }>;
@@ -133,15 +132,15 @@ export declare const VendorCreatePriceListPrice: z.ZodObject<{
133
132
  rules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
134
133
  }, "strip", z.ZodTypeAny, {
135
134
  variant_id: string;
136
- amount: number;
137
135
  currency_code: string;
136
+ amount: number;
138
137
  min_quantity?: number | null | undefined;
139
138
  max_quantity?: number | null | undefined;
140
139
  rules?: Record<string, string> | undefined;
141
140
  }, {
142
141
  variant_id: string;
143
- amount: number;
144
142
  currency_code: string;
143
+ amount: number;
145
144
  min_quantity?: number | null | undefined;
146
145
  max_quantity?: number | null | undefined;
147
146
  rules?: Record<string, string> | undefined;
@@ -158,16 +157,16 @@ export declare const VendorUpdatePriceListPrice: z.ZodObject<{
158
157
  }, "strip", z.ZodTypeAny, {
159
158
  id: string;
160
159
  variant_id: string;
161
- amount?: number | undefined;
162
160
  currency_code?: string | undefined;
161
+ amount?: number | undefined;
163
162
  min_quantity?: number | null | undefined;
164
163
  max_quantity?: number | null | undefined;
165
164
  rules?: Record<string, string> | undefined;
166
165
  }, {
167
166
  id: string;
168
167
  variant_id: string;
169
- amount?: number | undefined;
170
168
  currency_code?: string | undefined;
169
+ amount?: number | undefined;
171
170
  min_quantity?: number | null | undefined;
172
171
  max_quantity?: number | null | undefined;
173
172
  rules?: Record<string, string> | undefined;
@@ -175,23 +174,22 @@ export declare const VendorUpdatePriceListPrice: z.ZodObject<{
175
174
  export type VendorGetPriceListPricesParamsType = z.infer<typeof VendorGetPriceListPricesParams>;
176
175
  export declare const VendorGetPriceListPricesParams: z.ZodObject<{
177
176
  fields: z.ZodOptional<z.ZodString>;
178
- } & {
179
- offset: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
180
- limit: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
177
+ offset: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
178
+ limit: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
181
179
  order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
182
- with_deleted: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
183
- }, "strip", z.ZodTypeAny, {
184
- offset: number;
185
- limit: number;
180
+ with_deleted: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
181
+ }, z.core.$strip, z.ZodTypeAny, {
186
182
  order?: string | undefined;
187
183
  fields?: string | undefined;
188
- with_deleted?: boolean | undefined;
184
+ offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
185
+ limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
186
+ with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
189
187
  }, {
190
188
  order?: string | undefined;
191
189
  fields?: string | undefined;
192
- offset?: unknown;
193
- limit?: unknown;
194
- with_deleted?: unknown;
190
+ offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
191
+ limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
192
+ with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
195
193
  }>;
196
194
  export type VendorCreatePriceListType = z.infer<typeof VendorCreatePriceList>;
197
195
  export declare const VendorCreatePriceList: z.ZodObject<{
@@ -211,15 +209,15 @@ export declare const VendorCreatePriceList: z.ZodObject<{
211
209
  rules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
212
210
  }, "strip", z.ZodTypeAny, {
213
211
  variant_id: string;
214
- amount: number;
215
212
  currency_code: string;
213
+ amount: number;
216
214
  min_quantity?: number | null | undefined;
217
215
  max_quantity?: number | null | undefined;
218
216
  rules?: Record<string, string> | undefined;
219
217
  }, {
220
218
  variant_id: string;
221
- amount: number;
222
219
  currency_code: string;
220
+ amount: number;
223
221
  min_quantity?: number | null | undefined;
224
222
  max_quantity?: number | null | undefined;
225
223
  rules?: Record<string, string> | undefined;
@@ -232,8 +230,8 @@ export declare const VendorCreatePriceList: z.ZodObject<{
232
230
  rules?: Record<string, string[]> | undefined;
233
231
  prices?: {
234
232
  variant_id: string;
235
- amount: number;
236
233
  currency_code: string;
234
+ amount: number;
237
235
  min_quantity?: number | null | undefined;
238
236
  max_quantity?: number | null | undefined;
239
237
  rules?: Record<string, string> | undefined;
@@ -248,8 +246,8 @@ export declare const VendorCreatePriceList: z.ZodObject<{
248
246
  rules?: Record<string, string[]> | undefined;
249
247
  prices?: {
250
248
  variant_id: string;
251
- amount: number;
252
249
  currency_code: string;
250
+ amount: number;
253
251
  min_quantity?: number | null | undefined;
254
252
  max_quantity?: number | null | undefined;
255
253
  rules?: Record<string, string> | undefined;
@@ -269,16 +267,16 @@ export declare const VendorUpdatePriceList: z.ZodObject<{
269
267
  }, "strip", z.ZodTypeAny, {
270
268
  type?: PriceListType | undefined;
271
269
  status?: PriceListStatus | undefined;
272
- rules?: Record<string, string[]> | undefined;
273
270
  title?: string | undefined;
271
+ rules?: Record<string, string[]> | undefined;
274
272
  description?: string | null | undefined;
275
273
  starts_at?: string | null | undefined;
276
274
  ends_at?: string | null | undefined;
277
275
  }, {
278
276
  type?: PriceListType | undefined;
279
277
  status?: PriceListStatus | undefined;
280
- rules?: Record<string, string[]> | undefined;
281
278
  title?: string | undefined;
279
+ rules?: Record<string, string[]> | undefined;
282
280
  description?: string | null | undefined;
283
281
  starts_at?: string | null | undefined;
284
282
  ends_at?: string | null | undefined;
@@ -2,7 +2,7 @@ import { z } from "zod";
2
2
  export type VendorGetPricePreferenceParamsType = z.infer<typeof VendorGetPricePreferenceParams>;
3
3
  export declare const VendorGetPricePreferenceParams: z.ZodObject<{
4
4
  fields: z.ZodOptional<z.ZodString>;
5
- }, "strip", z.ZodTypeAny, {
5
+ }, z.core.$strip, z.ZodTypeAny, {
6
6
  fields?: string | undefined;
7
7
  }, {
8
8
  fields?: string | undefined;
@@ -10,34 +10,33 @@ export declare const VendorGetPricePreferenceParams: z.ZodObject<{
10
10
  export type VendorGetPricePreferencesParamsType = z.infer<typeof VendorGetPricePreferencesParams>;
11
11
  export declare const VendorGetPricePreferencesParams: z.ZodObject<{
12
12
  fields: z.ZodOptional<z.ZodString>;
13
- } & {
14
- offset: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
15
- limit: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
13
+ offset: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
14
+ limit: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
16
15
  order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
17
- with_deleted: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
16
+ with_deleted: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
18
17
  } & {
19
18
  q: z.ZodOptional<z.ZodString>;
20
19
  id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
21
20
  attribute: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
22
21
  value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
23
22
  }, "strip", z.ZodTypeAny, {
24
- offset: number;
25
- limit: number;
23
+ order?: string | undefined;
26
24
  id?: string | string[] | undefined;
25
+ fields?: string | undefined;
27
26
  value?: string | string[] | undefined;
27
+ offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
28
+ limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
29
+ with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
28
30
  q?: string | undefined;
29
- fields?: string | undefined;
30
- order?: string | undefined;
31
- with_deleted?: boolean | undefined;
32
31
  attribute?: string | string[] | undefined;
33
32
  }, {
33
+ order?: string | undefined;
34
34
  id?: string | string[] | undefined;
35
+ fields?: string | undefined;
35
36
  value?: string | string[] | undefined;
36
- offset?: unknown;
37
- limit?: unknown;
37
+ offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
38
+ limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
39
+ with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
38
40
  q?: string | undefined;
39
- fields?: string | undefined;
40
- order?: string | undefined;
41
- with_deleted?: unknown;
42
41
  attribute?: string | string[] | undefined;
43
42
  }>;
@@ -18,7 +18,9 @@ exports.vendorProductAttributeFields = [
18
18
  "created_at",
19
19
  "updated_at",
20
20
  "*values",
21
- "*categories",
21
+ "categories.id",
22
+ "categories.name",
23
+ "categories.handle",
22
24
  ];
23
25
  exports.vendorProductAttributeQueryConfig = {
24
26
  list: {
@@ -31,4 +33,4 @@ exports.vendorProductAttributeQueryConfig = {
31
33
  isList: false,
32
34
  },
33
35
  };
34
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVlcnktY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2FwaS92ZW5kb3IvcHJvZHVjdC1hdHRyaWJ1dGVzL3F1ZXJ5LWNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBYSxRQUFBLDRCQUE0QixHQUFHO0lBQzFDLElBQUk7SUFDSixNQUFNO0lBQ04sUUFBUTtJQUNSLGFBQWE7SUFDYixNQUFNO0lBQ04sYUFBYTtJQUNiLGVBQWU7SUFDZixpQkFBaUI7SUFDakIsV0FBVztJQUNYLFlBQVk7SUFDWixZQUFZO0lBQ1osTUFBTTtJQUNOLFVBQVU7SUFDVixZQUFZO0lBQ1osWUFBWTtJQUNaLFNBQVM7SUFDVCxhQUFhO0NBQ2QsQ0FBQTtBQUVZLFFBQUEsaUNBQWlDLEdBQUc7SUFDL0MsSUFBSSxFQUFFO1FBQ0osUUFBUSxFQUFFLG9DQUE0QjtRQUN0QyxZQUFZLEVBQUUsRUFBRTtRQUNoQixNQUFNLEVBQUUsSUFBSTtLQUNiO0lBQ0QsUUFBUSxFQUFFO1FBQ1IsUUFBUSxFQUFFLG9DQUE0QjtRQUN0QyxNQUFNLEVBQUUsS0FBSztLQUNkO0NBQ0YsQ0FBQSJ9
36
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVlcnktY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2FwaS92ZW5kb3IvcHJvZHVjdC1hdHRyaWJ1dGVzL3F1ZXJ5LWNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBYSxRQUFBLDRCQUE0QixHQUFHO0lBQzFDLElBQUk7SUFDSixNQUFNO0lBQ04sUUFBUTtJQUNSLGFBQWE7SUFDYixNQUFNO0lBQ04sYUFBYTtJQUNiLGVBQWU7SUFDZixpQkFBaUI7SUFDakIsV0FBVztJQUNYLFlBQVk7SUFDWixZQUFZO0lBQ1osTUFBTTtJQUNOLFVBQVU7SUFDVixZQUFZO0lBQ1osWUFBWTtJQUNaLFNBQVM7SUFDVCxlQUFlO0lBQ2YsaUJBQWlCO0lBQ2pCLG1CQUFtQjtDQUNwQixDQUFBO0FBRVksUUFBQSxpQ0FBaUMsR0FBRztJQUMvQyxJQUFJLEVBQUU7UUFDSixRQUFRLEVBQUUsb0NBQTRCO1FBQ3RDLFlBQVksRUFBRSxFQUFFO1FBQ2hCLE1BQU0sRUFBRSxJQUFJO0tBQ2I7SUFDRCxRQUFRLEVBQUU7UUFDUixRQUFRLEVBQUUsb0NBQTRCO1FBQ3RDLE1BQU0sRUFBRSxLQUFLO0tBQ2Q7Q0FDRixDQUFBIn0=
@@ -4,8 +4,6 @@ exports.GET = void 0;
4
4
  const utils_1 = require("@medusajs/framework/utils");
5
5
  const GET = async (req, res) => {
6
6
  const query = req.scope.resolve(utils_1.ContainerRegistrationKeys.QUERY);
7
- // Same global-only filter as the admin endpoint — vendors should not
8
- // see other products' inline-custom attributes.
9
7
  const { data: product_attributes, metadata } = await query.graph({
10
8
  entity: "product_attribute",
11
9
  fields: req.queryConfig.fields,
@@ -23,4 +21,4 @@ const GET = async (req, res) => {
23
21
  });
24
22
  };
25
23
  exports.GET = GET;
26
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm91dGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBpL3ZlbmRvci9wcm9kdWN0LWF0dHJpYnV0ZXMvcm91dGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBSUEscURBQXFFO0FBRzlELE1BQU0sR0FBRyxHQUFHLEtBQUssRUFDdEIsR0FBK0IsRUFDL0IsR0FBaUUsRUFDakUsRUFBRTtJQUNGLE1BQU0sS0FBSyxHQUFHLEdBQUcsQ0FBQyxLQUFLLENBQUMsT0FBTyxDQUFDLGlDQUF5QixDQUFDLEtBQUssQ0FBQyxDQUFBO0lBRWhFLHFFQUFxRTtJQUNyRSxnREFBZ0Q7SUFDaEQsTUFBTSxFQUFFLElBQUksRUFBRSxrQkFBa0IsRUFBRSxRQUFRLEVBQUUsR0FBRyxNQUFNLEtBQUssQ0FBQyxLQUFLLENBQUM7UUFDL0QsTUFBTSxFQUFFLG1CQUFtQjtRQUMzQixNQUFNLEVBQUUsR0FBRyxDQUFDLFdBQVcsQ0FBQyxNQUFNO1FBQzlCLE9BQU8sRUFBRTtZQUNQLEdBQUcsR0FBRyxDQUFDLGdCQUFnQjtZQUN2QixVQUFVLEVBQUUsSUFBSTtTQUNqQjtRQUNELFVBQVUsRUFBRSxHQUFHLENBQUMsV0FBVyxDQUFDLFVBQVU7S0FDdkMsQ0FBQyxDQUFBO0lBRUYsR0FBRyxDQUFDLElBQUksQ0FBQztRQUNQLGtCQUFrQjtRQUNsQixLQUFLLEVBQUUsUUFBUSxFQUFFLEtBQUssSUFBSSxDQUFDO1FBQzNCLE1BQU0sRUFBRSxRQUFRLEVBQUUsSUFBSSxJQUFJLENBQUM7UUFDM0IsS0FBSyxFQUFFLFFBQVEsRUFBRSxJQUFJLElBQUksQ0FBQztLQUMzQixDQUFDLENBQUE7QUFDSixDQUFDLENBQUE7QUF4QlksUUFBQSxHQUFHLE9Bd0JmIn0=
24
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm91dGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBpL3ZlbmRvci9wcm9kdWN0LWF0dHJpYnV0ZXMvcm91dGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBSUEscURBQXFFO0FBRzlELE1BQU0sR0FBRyxHQUFHLEtBQUssRUFDdEIsR0FBK0IsRUFDL0IsR0FBaUUsRUFDakUsRUFBRTtJQUNGLE1BQU0sS0FBSyxHQUFHLEdBQUcsQ0FBQyxLQUFLLENBQUMsT0FBTyxDQUFDLGlDQUF5QixDQUFDLEtBQUssQ0FBQyxDQUFBO0lBRWhFLE1BQU0sRUFBRSxJQUFJLEVBQUUsa0JBQWtCLEVBQUUsUUFBUSxFQUFFLEdBQUcsTUFBTSxLQUFLLENBQUMsS0FBSyxDQUFDO1FBQy9ELE1BQU0sRUFBRSxtQkFBbUI7UUFDM0IsTUFBTSxFQUFFLEdBQUcsQ0FBQyxXQUFXLENBQUMsTUFBTTtRQUM5QixPQUFPLEVBQUU7WUFDUCxHQUFHLEdBQUcsQ0FBQyxnQkFBZ0I7WUFDdkIsVUFBVSxFQUFFLElBQUk7U0FDakI7UUFDRCxVQUFVLEVBQUUsR0FBRyxDQUFDLFdBQVcsQ0FBQyxVQUFVO0tBQ3ZDLENBQUMsQ0FBQTtJQUVGLEdBQUcsQ0FBQyxJQUFJLENBQUM7UUFDUCxrQkFBa0I7UUFDbEIsS0FBSyxFQUFFLFFBQVEsRUFBRSxLQUFLLElBQUksQ0FBQztRQUMzQixNQUFNLEVBQUUsUUFBUSxFQUFFLElBQUksSUFBSSxDQUFDO1FBQzNCLEtBQUssRUFBRSxRQUFRLEVBQUUsSUFBSSxJQUFJLENBQUM7S0FDM0IsQ0FBQyxDQUFBO0FBQ0osQ0FBQyxDQUFBO0FBdEJZLFFBQUEsR0FBRyxPQXNCZiJ9
@@ -4,7 +4,7 @@ import { AdditionalData } from "@medusajs/framework/types";
4
4
  export type VendorGetProductAttributeParamsType = z.infer<typeof VendorGetProductAttributeParams>;
5
5
  export declare const VendorGetProductAttributeParams: z.ZodObject<{
6
6
  fields: z.ZodOptional<z.ZodString>;
7
- }, "strip", z.ZodTypeAny, {
7
+ }, z.core.$strip, z.ZodTypeAny, {
8
8
  fields?: string | undefined;
9
9
  }, {
10
10
  fields?: string | undefined;
@@ -17,13 +17,13 @@ export declare const VendorGetProductAttributesParams: z.ZodObject<{} & {
17
17
  id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
18
18
  handle: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
19
19
  type: z.ZodOptional<z.ZodUnion<[z.ZodNativeEnum<typeof AttributeType>, z.ZodArray<z.ZodNativeEnum<typeof AttributeType>, "many">]>>;
20
- is_required: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
21
- is_variant_axis: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
22
- is_filterable: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
23
- is_active: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
20
+ is_required: any;
21
+ is_variant_axis: any;
22
+ is_filterable: any;
23
+ is_active: any;
24
24
  product_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>;
25
25
  category_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
26
- created_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
26
+ created_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
27
27
  $eq: any;
28
28
  $ne: any;
29
29
  $in: any;
@@ -36,7 +36,7 @@ export declare const VendorGetProductAttributesParams: z.ZodObject<{} & {
36
36
  $gte: any;
37
37
  $lt: any;
38
38
  $lte: any;
39
- }, "strip", z.ZodTypeAny, {
39
+ }, z.core.$strip, z.ZodTypeAny, {
40
40
  $eq?: any;
41
41
  $ne?: any;
42
42
  $in?: any;
@@ -63,7 +63,7 @@ export declare const VendorGetProductAttributesParams: z.ZodObject<{} & {
63
63
  $lt?: any;
64
64
  $lte?: any;
65
65
  }>]>>;
66
- updated_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
66
+ updated_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
67
67
  $eq: any;
68
68
  $ne: any;
69
69
  $in: any;
@@ -76,7 +76,7 @@ export declare const VendorGetProductAttributesParams: z.ZodObject<{} & {
76
76
  $gte: any;
77
77
  $lt: any;
78
78
  $lte: any;
79
- }, "strip", z.ZodTypeAny, {
79
+ }, z.core.$strip, z.ZodTypeAny, {
80
80
  $eq?: any;
81
81
  $ne?: any;
82
82
  $in?: any;
@@ -104,44 +104,46 @@ export declare const VendorGetProductAttributesParams: z.ZodObject<{} & {
104
104
  $lte?: any;
105
105
  }>]>>;
106
106
  }, "strip", z.ZodTypeAny, {
107
- id?: string | string[] | undefined;
108
- created_at?: any;
109
- updated_at?: any;
110
- type?: AttributeType | AttributeType[] | undefined;
111
- q?: string | undefined;
112
- handle?: string | string[] | undefined;
113
- is_active?: boolean | undefined;
114
- product_id?: string | string[] | null | undefined;
115
- is_required?: boolean | undefined;
116
- is_filterable?: boolean | undefined;
117
- is_variant_axis?: boolean | undefined;
118
- category_id?: string | string[] | undefined;
107
+ [x: string]: any;
108
+ q?: unknown;
109
+ id?: unknown;
110
+ handle?: unknown;
111
+ type?: unknown;
112
+ is_required?: unknown;
113
+ is_variant_axis?: unknown;
114
+ is_filterable?: unknown;
115
+ is_active?: unknown;
116
+ product_id?: unknown;
117
+ category_id?: unknown;
118
+ created_at?: unknown;
119
+ updated_at?: unknown;
119
120
  }, {
120
- id?: string | string[] | undefined;
121
- created_at?: any;
122
- updated_at?: any;
123
- type?: AttributeType | AttributeType[] | undefined;
124
- q?: string | undefined;
125
- handle?: string | string[] | undefined;
126
- is_active?: string | boolean | undefined;
127
- product_id?: string | string[] | null | undefined;
128
- is_required?: string | boolean | undefined;
129
- is_filterable?: string | boolean | undefined;
130
- is_variant_axis?: string | boolean | undefined;
131
- category_id?: string | string[] | undefined;
121
+ [x: string]: any;
122
+ q?: unknown;
123
+ id?: unknown;
124
+ handle?: unknown;
125
+ type?: unknown;
126
+ is_required?: unknown;
127
+ is_variant_axis?: unknown;
128
+ is_filterable?: unknown;
129
+ is_active?: unknown;
130
+ product_id?: unknown;
131
+ category_id?: unknown;
132
+ created_at?: unknown;
133
+ updated_at?: unknown;
132
134
  }>, "many">>>;
133
135
  $or: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
134
136
  q: z.ZodOptional<z.ZodString>;
135
137
  id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
136
138
  handle: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
137
139
  type: z.ZodOptional<z.ZodUnion<[z.ZodNativeEnum<typeof AttributeType>, z.ZodArray<z.ZodNativeEnum<typeof AttributeType>, "many">]>>;
138
- is_required: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
139
- is_variant_axis: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
140
- is_filterable: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
141
- is_active: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
140
+ is_required: any;
141
+ is_variant_axis: any;
142
+ is_filterable: any;
143
+ is_active: any;
142
144
  product_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodNull]>>;
143
145
  category_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
144
- created_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
146
+ created_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
145
147
  $eq: any;
146
148
  $ne: any;
147
149
  $in: any;
@@ -154,7 +156,7 @@ export declare const VendorGetProductAttributesParams: z.ZodObject<{} & {
154
156
  $gte: any;
155
157
  $lt: any;
156
158
  $lte: any;
157
- }, "strip", z.ZodTypeAny, {
159
+ }, z.core.$strip, z.ZodTypeAny, {
158
160
  $eq?: any;
159
161
  $ne?: any;
160
162
  $in?: any;
@@ -181,7 +183,7 @@ export declare const VendorGetProductAttributesParams: z.ZodObject<{} & {
181
183
  $lt?: any;
182
184
  $lte?: any;
183
185
  }>]>>;
184
- updated_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
186
+ updated_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
185
187
  $eq: any;
186
188
  $ne: any;
187
189
  $in: any;
@@ -194,7 +196,7 @@ export declare const VendorGetProductAttributesParams: z.ZodObject<{} & {
194
196
  $gte: any;
195
197
  $lt: any;
196
198
  $lte: any;
197
- }, "strip", z.ZodTypeAny, {
199
+ }, z.core.$strip, z.ZodTypeAny, {
198
200
  $eq?: any;
199
201
  $ne?: any;
200
202
  $in?: any;
@@ -222,33 +224,35 @@ export declare const VendorGetProductAttributesParams: z.ZodObject<{} & {
222
224
  $lte?: any;
223
225
  }>]>>;
224
226
  }, "strip", z.ZodTypeAny, {
225
- id?: string | string[] | undefined;
226
- created_at?: any;
227
- updated_at?: any;
228
- type?: AttributeType | AttributeType[] | undefined;
229
- q?: string | undefined;
230
- handle?: string | string[] | undefined;
231
- is_active?: boolean | undefined;
232
- product_id?: string | string[] | null | undefined;
233
- is_required?: boolean | undefined;
234
- is_filterable?: boolean | undefined;
235
- is_variant_axis?: boolean | undefined;
236
- category_id?: string | string[] | undefined;
227
+ [x: string]: any;
228
+ q?: unknown;
229
+ id?: unknown;
230
+ handle?: unknown;
231
+ type?: unknown;
232
+ is_required?: unknown;
233
+ is_variant_axis?: unknown;
234
+ is_filterable?: unknown;
235
+ is_active?: unknown;
236
+ product_id?: unknown;
237
+ category_id?: unknown;
238
+ created_at?: unknown;
239
+ updated_at?: unknown;
237
240
  }, {
238
- id?: string | string[] | undefined;
239
- created_at?: any;
240
- updated_at?: any;
241
- type?: AttributeType | AttributeType[] | undefined;
242
- q?: string | undefined;
243
- handle?: string | string[] | undefined;
244
- is_active?: string | boolean | undefined;
245
- product_id?: string | string[] | null | undefined;
246
- is_required?: string | boolean | undefined;
247
- is_filterable?: string | boolean | undefined;
248
- is_variant_axis?: string | boolean | undefined;
249
- category_id?: string | string[] | undefined;
241
+ [x: string]: any;
242
+ q?: unknown;
243
+ id?: unknown;
244
+ handle?: unknown;
245
+ type?: unknown;
246
+ is_required?: unknown;
247
+ is_variant_axis?: unknown;
248
+ is_filterable?: unknown;
249
+ is_active?: unknown;
250
+ product_id?: unknown;
251
+ category_id?: unknown;
252
+ created_at?: unknown;
253
+ updated_at?: unknown;
250
254
  }>, "many">>>;
251
- }, "strip", z.ZodTypeAny, {
255
+ }, z.core.$strip, z.ZodTypeAny, {
252
256
  [x: string]: any;
253
257
  $and?: unknown;
254
258
  $or?: unknown;
@@ -273,30 +277,26 @@ declare const CreateProductAttribute: z.ZodObject<{
273
277
  type: AttributeType;
274
278
  name: string;
275
279
  metadata?: Record<string, unknown> | null | undefined;
280
+ rank?: number | undefined;
281
+ is_variant_axis?: boolean | undefined;
282
+ is_required?: boolean | undefined;
276
283
  handle?: string | undefined;
277
284
  description?: string | undefined;
278
285
  is_active?: boolean | undefined;
279
- is_required?: boolean | undefined;
280
286
  is_filterable?: boolean | undefined;
281
- is_variant_axis?: boolean | undefined;
282
- rank?: number | undefined;
283
287
  }, {
284
288
  type: AttributeType;
285
289
  name: string;
286
290
  metadata?: Record<string, unknown> | null | undefined;
291
+ rank?: number | undefined;
292
+ is_variant_axis?: boolean | undefined;
293
+ is_required?: boolean | undefined;
287
294
  handle?: string | undefined;
288
295
  description?: string | undefined;
289
296
  is_active?: boolean | undefined;
290
- is_required?: boolean | undefined;
291
297
  is_filterable?: boolean | undefined;
292
- is_variant_axis?: boolean | undefined;
293
- rank?: number | undefined;
294
298
  }>;
295
- export declare const VendorCreateProductAttribute: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any, z.ZodTypeAny, {
296
- [x: string]: any;
297
- }, {
298
- [x: string]: any;
299
- }> | z.ZodEffects<any, any, any>;
299
+ export declare const VendorCreateProductAttribute: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any>;
300
300
  export type VendorUpdateProductAttributeType = z.infer<typeof UpdateProductAttribute> & AdditionalData;
301
301
  declare const UpdateProductAttribute: z.ZodObject<{
302
302
  name: z.ZodOptional<z.ZodString>;
@@ -310,33 +310,29 @@ declare const UpdateProductAttribute: z.ZodObject<{
310
310
  is_active: z.ZodOptional<z.ZodBoolean>;
311
311
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
312
312
  }, "strip", z.ZodTypeAny, {
313
- type?: AttributeType | undefined;
314
313
  metadata?: Record<string, unknown> | null | undefined;
314
+ type?: AttributeType | undefined;
315
315
  name?: string | undefined;
316
+ rank?: number | undefined;
317
+ is_variant_axis?: boolean | undefined;
318
+ is_required?: boolean | undefined;
316
319
  handle?: string | undefined;
317
320
  description?: string | undefined;
318
321
  is_active?: boolean | undefined;
319
- is_required?: boolean | undefined;
320
322
  is_filterable?: boolean | undefined;
321
- is_variant_axis?: boolean | undefined;
322
- rank?: number | undefined;
323
323
  }, {
324
- type?: AttributeType | undefined;
325
324
  metadata?: Record<string, unknown> | null | undefined;
325
+ type?: AttributeType | undefined;
326
326
  name?: string | undefined;
327
+ rank?: number | undefined;
328
+ is_variant_axis?: boolean | undefined;
329
+ is_required?: boolean | undefined;
327
330
  handle?: string | undefined;
328
331
  description?: string | undefined;
329
332
  is_active?: boolean | undefined;
330
- is_required?: boolean | undefined;
331
333
  is_filterable?: boolean | undefined;
332
- is_variant_axis?: boolean | undefined;
333
- rank?: number | undefined;
334
334
  }>;
335
- export declare const VendorUpdateProductAttribute: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any, z.ZodTypeAny, {
336
- [x: string]: any;
337
- }, {
338
- [x: string]: any;
339
- }> | z.ZodEffects<any, any, any>;
335
+ export declare const VendorUpdateProductAttribute: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any>;
340
336
  export type VendorCreateProductAttributeValueType = z.infer<typeof CreateProductAttributeValue> & AdditionalData;
341
337
  declare const CreateProductAttributeValue: z.ZodObject<{
342
338
  name: z.ZodString;
@@ -347,21 +343,17 @@ declare const CreateProductAttributeValue: z.ZodObject<{
347
343
  }, "strip", z.ZodTypeAny, {
348
344
  name: string;
349
345
  metadata?: Record<string, unknown> | null | undefined;
346
+ rank?: number | undefined;
350
347
  handle?: string | undefined;
351
348
  is_active?: boolean | undefined;
352
- rank?: number | undefined;
353
349
  }, {
354
350
  name: string;
355
351
  metadata?: Record<string, unknown> | null | undefined;
352
+ rank?: number | undefined;
356
353
  handle?: string | undefined;
357
354
  is_active?: boolean | undefined;
358
- rank?: number | undefined;
359
355
  }>;
360
- export declare const VendorCreateProductAttributeValue: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any, z.ZodTypeAny, {
361
- [x: string]: any;
362
- }, {
363
- [x: string]: any;
364
- }> | z.ZodEffects<any, any, any>;
356
+ export declare const VendorCreateProductAttributeValue: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any>;
365
357
  export type VendorUpdateProductAttributeValueType = z.infer<typeof UpdateProductAttributeValue> & AdditionalData;
366
358
  declare const UpdateProductAttributeValue: z.ZodObject<{
367
359
  name: z.ZodOptional<z.ZodString>;
@@ -372,19 +364,15 @@ declare const UpdateProductAttributeValue: z.ZodObject<{
372
364
  }, "strip", z.ZodTypeAny, {
373
365
  metadata?: Record<string, unknown> | null | undefined;
374
366
  name?: string | undefined;
367
+ rank?: number | undefined;
375
368
  handle?: string | undefined;
376
369
  is_active?: boolean | undefined;
377
- rank?: number | undefined;
378
370
  }, {
379
371
  metadata?: Record<string, unknown> | null | undefined;
380
372
  name?: string | undefined;
373
+ rank?: number | undefined;
381
374
  handle?: string | undefined;
382
375
  is_active?: boolean | undefined;
383
- rank?: number | undefined;
384
376
  }>;
385
- export declare const VendorUpdateProductAttributeValue: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any, z.ZodTypeAny, {
386
- [x: string]: any;
387
- }, {
388
- [x: string]: any;
389
- }> | z.ZodEffects<any, any, any>;
377
+ export declare const VendorUpdateProductAttributeValue: (additionalDataValidator?: z.ZodOptional<z.ZodNullable<z.ZodObject<any, any>>>) => z.ZodObject<any, any>;
390
378
  export {};