@mercurjs/core-plugin 2.0.0-canary.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 (831) hide show
  1. package/.medusa/server/src/api/admin/commission-rates/[id]/route.d.ts +6 -0
  2. package/.medusa/server/src/api/admin/commission-rates/[id]/route.js +43 -0
  3. package/.medusa/server/src/api/admin/commission-rates/[id]/rules/route.d.ts +4 -0
  4. package/.medusa/server/src/api/admin/commission-rates/[id]/rules/route.js +21 -0
  5. package/.medusa/server/src/api/admin/commission-rates/middlewares.d.ts +2 -0
  6. package/.medusa/server/src/api/admin/commission-rates/middlewares.js +51 -0
  7. package/.medusa/server/src/api/admin/commission-rates/query-config.d.ts +11 -0
  8. package/.medusa/server/src/api/admin/commission-rates/query-config.js +32 -0
  9. package/.medusa/server/src/api/admin/commission-rates/route.d.ts +5 -0
  10. package/.medusa/server/src/api/admin/commission-rates/route.js +35 -0
  11. package/.medusa/server/src/api/admin/commission-rates/validators.d.ts +271 -0
  12. package/.medusa/server/src/api/admin/commission-rates/validators.js +61 -0
  13. package/.medusa/server/src/api/admin/middlewares.d.ts +2 -0
  14. package/.medusa/server/src/api/admin/middlewares.js +14 -0
  15. package/.medusa/server/src/api/admin/order-groups/[id]/route.d.ts +3 -0
  16. package/.medusa/server/src/api/admin/order-groups/[id]/route.js +20 -0
  17. package/.medusa/server/src/api/admin/order-groups/middlewares.d.ts +2 -0
  18. package/.medusa/server/src/api/admin/order-groups/middlewares.js +23 -0
  19. package/.medusa/server/src/api/admin/order-groups/query-config.d.ts +11 -0
  20. package/.medusa/server/src/api/admin/order-groups/query-config.js +22 -0
  21. package/.medusa/server/src/api/admin/order-groups/route.d.ts +3 -0
  22. package/.medusa/server/src/api/admin/order-groups/route.js +21 -0
  23. package/.medusa/server/src/api/admin/order-groups/validators.d.ts +133 -0
  24. package/.medusa/server/src/api/admin/order-groups/validators.js +20 -0
  25. package/.medusa/server/src/api/admin/payouts/[id]/route.d.ts +3 -0
  26. package/.medusa/server/src/api/admin/payouts/[id]/route.js +18 -0
  27. package/.medusa/server/src/api/admin/payouts/middlewares.d.ts +2 -0
  28. package/.medusa/server/src/api/admin/payouts/middlewares.js +23 -0
  29. package/.medusa/server/src/api/admin/payouts/query-config.d.ts +11 -0
  30. package/.medusa/server/src/api/admin/payouts/query-config.js +29 -0
  31. package/.medusa/server/src/api/admin/payouts/route.d.ts +3 -0
  32. package/.medusa/server/src/api/admin/payouts/route.js +21 -0
  33. package/.medusa/server/src/api/admin/payouts/validators.d.ts +124 -0
  34. package/.medusa/server/src/api/admin/payouts/validators.js +17 -0
  35. package/.medusa/server/src/api/admin/sellers/[id]/route.d.ts +3 -0
  36. package/.medusa/server/src/api/admin/sellers/[id]/route.js +18 -0
  37. package/.medusa/server/src/api/admin/sellers/middlewares.d.ts +2 -0
  38. package/.medusa/server/src/api/admin/sellers/middlewares.js +23 -0
  39. package/.medusa/server/src/api/admin/sellers/query-config.d.ts +11 -0
  40. package/.medusa/server/src/api/admin/sellers/query-config.js +38 -0
  41. package/.medusa/server/src/api/admin/sellers/route.d.ts +3 -0
  42. package/.medusa/server/src/api/admin/sellers/route.js +21 -0
  43. package/.medusa/server/src/api/admin/sellers/validators.d.ts +133 -0
  44. package/.medusa/server/src/api/admin/sellers/validators.js +20 -0
  45. package/.medusa/server/src/api/hooks/payout/route.d.ts +2 -0
  46. package/.medusa/server/src/api/hooks/payout/route.js +26 -0
  47. package/.medusa/server/src/api/middlewares.d.ts +2 -0
  48. package/.medusa/server/src/api/middlewares.js +10 -0
  49. package/.medusa/server/src/api/store/carts/[id]/complete/query-config.d.ts +5 -0
  50. package/.medusa/server/src/api/store/carts/[id]/complete/query-config.js +17 -0
  51. package/.medusa/server/src/api/store/carts/[id]/complete/route.d.ts +4 -0
  52. package/.medusa/server/src/api/store/carts/[id]/complete/route.js +50 -0
  53. package/.medusa/server/src/api/store/carts/[id]/complete/validators.d.ts +9 -0
  54. package/.medusa/server/src/api/store/carts/[id]/complete/validators.js +6 -0
  55. package/.medusa/server/src/api/store/carts/[id]/promotions/route.d.ts +3 -0
  56. package/.medusa/server/src/api/store/carts/[id]/promotions/route.js +23 -0
  57. package/.medusa/server/src/api/store/carts/[id]/shipping-methods/route.d.ts +3 -0
  58. package/.medusa/server/src/api/store/carts/[id]/shipping-methods/route.js +19 -0
  59. package/.medusa/server/src/api/store/carts/helpers.d.ts +3 -0
  60. package/.medusa/server/src/api/store/carts/helpers.js +147 -0
  61. package/.medusa/server/src/api/store/carts/middlewares.d.ts +2 -0
  62. package/.medusa/server/src/api/store/carts/middlewares.js +16 -0
  63. package/.medusa/server/src/api/store/middlewares.d.ts +2 -0
  64. package/.medusa/server/src/api/store/middlewares.js +12 -0
  65. package/.medusa/server/src/api/store/order-groups/[id]/route.d.ts +3 -0
  66. package/.medusa/server/src/api/store/order-groups/[id]/route.js +22 -0
  67. package/.medusa/server/src/api/store/order-groups/middlewares.d.ts +2 -0
  68. package/.medusa/server/src/api/store/order-groups/middlewares.js +25 -0
  69. package/.medusa/server/src/api/store/order-groups/query-config.d.ts +13 -0
  70. package/.medusa/server/src/api/store/order-groups/query-config.js +32 -0
  71. package/.medusa/server/src/api/store/order-groups/route.d.ts +3 -0
  72. package/.medusa/server/src/api/store/order-groups/route.js +25 -0
  73. package/.medusa/server/src/api/store/order-groups/validators.d.ts +118 -0
  74. package/.medusa/server/src/api/store/order-groups/validators.js +15 -0
  75. package/.medusa/server/src/api/store/sellers/[id]/route.d.ts +3 -0
  76. package/.medusa/server/src/api/store/sellers/[id]/route.js +22 -0
  77. package/.medusa/server/src/api/store/sellers/middlewares.d.ts +2 -0
  78. package/.medusa/server/src/api/store/sellers/middlewares.js +23 -0
  79. package/.medusa/server/src/api/store/sellers/query-config.d.ts +13 -0
  80. package/.medusa/server/src/api/store/sellers/query-config.js +31 -0
  81. package/.medusa/server/src/api/store/sellers/route.d.ts +3 -0
  82. package/.medusa/server/src/api/store/sellers/route.js +25 -0
  83. package/.medusa/server/src/api/store/sellers/validators.d.ts +127 -0
  84. package/.medusa/server/src/api/store/sellers/validators.js +18 -0
  85. package/.medusa/server/src/api/store/shipping-options/route.d.ts +4 -0
  86. package/.medusa/server/src/api/store/shipping-options/route.js +17 -0
  87. package/.medusa/server/src/api/utils/index.d.ts +1 -0
  88. package/.medusa/server/src/api/utils/index.js +18 -0
  89. package/.medusa/server/src/api/utils/unless-base-url.d.ts +10 -0
  90. package/.medusa/server/src/api/utils/unless-base-url.js +20 -0
  91. package/.medusa/server/src/api/vendor/campaigns/[id]/promotions/route.d.ts +4 -0
  92. package/.medusa/server/src/api/vendor/campaigns/[id]/promotions/route.js +21 -0
  93. package/.medusa/server/src/api/vendor/campaigns/[id]/route.d.ts +6 -0
  94. package/.medusa/server/src/api/vendor/campaigns/[id]/route.js +42 -0
  95. package/.medusa/server/src/api/vendor/campaigns/helpers.d.ts +3 -0
  96. package/.medusa/server/src/api/vendor/campaigns/helpers.js +30 -0
  97. package/.medusa/server/src/api/vendor/campaigns/middlewares.d.ts +2 -0
  98. package/.medusa/server/src/api/vendor/campaigns/middlewares.js +63 -0
  99. package/.medusa/server/src/api/vendor/campaigns/query-config.d.ts +11 -0
  100. package/.medusa/server/src/api/vendor/campaigns/query-config.js +27 -0
  101. package/.medusa/server/src/api/vendor/campaigns/route.d.ts +5 -0
  102. package/.medusa/server/src/api/vendor/campaigns/route.js +35 -0
  103. package/.medusa/server/src/api/vendor/campaigns/validators.d.ts +191 -0
  104. package/.medusa/server/src/api/vendor/campaigns/validators.js +70 -0
  105. package/.medusa/server/src/api/vendor/collections/[id]/products/route.d.ts +3 -0
  106. package/.medusa/server/src/api/vendor/collections/[id]/products/route.js +23 -0
  107. package/.medusa/server/src/api/vendor/collections/[id]/route.d.ts +3 -0
  108. package/.medusa/server/src/api/vendor/collections/[id]/route.js +25 -0
  109. package/.medusa/server/src/api/vendor/collections/helpers.d.ts +4 -0
  110. package/.medusa/server/src/api/vendor/collections/helpers.js +29 -0
  111. package/.medusa/server/src/api/vendor/collections/middlewares.d.ts +2 -0
  112. package/.medusa/server/src/api/vendor/collections/middlewares.js +32 -0
  113. package/.medusa/server/src/api/vendor/collections/query-config.d.ts +9 -0
  114. package/.medusa/server/src/api/vendor/collections/query-config.js +20 -0
  115. package/.medusa/server/src/api/vendor/collections/route.d.ts +4 -0
  116. package/.medusa/server/src/api/vendor/collections/route.js +26 -0
  117. package/.medusa/server/src/api/vendor/collections/validators.d.ts +169 -0
  118. package/.medusa/server/src/api/vendor/collections/validators.js +19 -0
  119. package/.medusa/server/src/api/vendor/currencies/[code]/route.d.ts +3 -0
  120. package/.medusa/server/src/api/vendor/currencies/[code]/route.js +19 -0
  121. package/.medusa/server/src/api/vendor/currencies/middlewares.d.ts +2 -0
  122. package/.medusa/server/src/api/vendor/currencies/middlewares.js +23 -0
  123. package/.medusa/server/src/api/vendor/currencies/query-config.d.ts +12 -0
  124. package/.medusa/server/src/api/vendor/currencies/query-config.js +23 -0
  125. package/.medusa/server/src/api/vendor/currencies/route.d.ts +4 -0
  126. package/.medusa/server/src/api/vendor/currencies/route.js +21 -0
  127. package/.medusa/server/src/api/vendor/currencies/validators.d.ts +46 -0
  128. package/.medusa/server/src/api/vendor/currencies/validators.js +15 -0
  129. package/.medusa/server/src/api/vendor/customers/[id]/route.d.ts +3 -0
  130. package/.medusa/server/src/api/vendor/customers/[id]/route.js +21 -0
  131. package/.medusa/server/src/api/vendor/customers/helpers.d.ts +2 -0
  132. package/.medusa/server/src/api/vendor/customers/helpers.js +20 -0
  133. package/.medusa/server/src/api/vendor/customers/middlewares.d.ts +2 -0
  134. package/.medusa/server/src/api/vendor/customers/middlewares.js +33 -0
  135. package/.medusa/server/src/api/vendor/customers/query-config.d.ts +11 -0
  136. package/.medusa/server/src/api/vendor/customers/query-config.js +28 -0
  137. package/.medusa/server/src/api/vendor/customers/route.d.ts +3 -0
  138. package/.medusa/server/src/api/vendor/customers/route.js +21 -0
  139. package/.medusa/server/src/api/vendor/customers/validators.d.ts +127 -0
  140. package/.medusa/server/src/api/vendor/customers/validators.js +18 -0
  141. package/.medusa/server/src/api/vendor/fulfillment-providers/middlewares.d.ts +2 -0
  142. package/.medusa/server/src/api/vendor/fulfillment-providers/middlewares.js +16 -0
  143. package/.medusa/server/src/api/vendor/fulfillment-providers/query-config.d.ts +7 -0
  144. package/.medusa/server/src/api/vendor/fulfillment-providers/query-config.js +11 -0
  145. package/.medusa/server/src/api/vendor/fulfillment-providers/route.d.ts +3 -0
  146. package/.medusa/server/src/api/vendor/fulfillment-providers/route.js +21 -0
  147. package/.medusa/server/src/api/vendor/fulfillment-providers/validators.d.ts +35 -0
  148. package/.medusa/server/src/api/vendor/fulfillment-providers/validators.js +17 -0
  149. package/.medusa/server/src/api/vendor/fulfillment-sets/[id]/route.d.ts +3 -0
  150. package/.medusa/server/src/api/vendor/fulfillment-sets/[id]/route.js +20 -0
  151. package/.medusa/server/src/api/vendor/fulfillment-sets/[id]/service-zones/[zone_id]/route.d.ts +6 -0
  152. package/.medusa/server/src/api/vendor/fulfillment-sets/[id]/service-zones/[zone_id]/route.js +61 -0
  153. package/.medusa/server/src/api/vendor/fulfillment-sets/[id]/service-zones/route.d.ts +4 -0
  154. package/.medusa/server/src/api/vendor/fulfillment-sets/[id]/service-zones/route.js +25 -0
  155. package/.medusa/server/src/api/vendor/fulfillment-sets/helpers.d.ts +3 -0
  156. package/.medusa/server/src/api/vendor/fulfillment-sets/helpers.js +40 -0
  157. package/.medusa/server/src/api/vendor/fulfillment-sets/middlewares.d.ts +2 -0
  158. package/.medusa/server/src/api/vendor/fulfillment-sets/middlewares.js +44 -0
  159. package/.medusa/server/src/api/vendor/fulfillment-sets/query-config.d.ts +13 -0
  160. package/.medusa/server/src/api/vendor/fulfillment-sets/query-config.js +34 -0
  161. package/.medusa/server/src/api/vendor/fulfillment-sets/validators.d.ts +365 -0
  162. package/.medusa/server/src/api/vendor/fulfillment-sets/validators.js +56 -0
  163. package/.medusa/server/src/api/vendor/inventory-items/[id]/location-levels/[location_id]/route.d.ts +5 -0
  164. package/.medusa/server/src/api/vendor/inventory-items/[id]/location-levels/[location_id]/route.js +48 -0
  165. package/.medusa/server/src/api/vendor/inventory-items/[id]/location-levels/batch/route.d.ts +4 -0
  166. package/.medusa/server/src/api/vendor/inventory-items/[id]/location-levels/batch/route.js +30 -0
  167. package/.medusa/server/src/api/vendor/inventory-items/[id]/location-levels/route.d.ts +5 -0
  168. package/.medusa/server/src/api/vendor/inventory-items/[id]/location-levels/route.js +42 -0
  169. package/.medusa/server/src/api/vendor/inventory-items/[id]/route.d.ts +6 -0
  170. package/.medusa/server/src/api/vendor/inventory-items/[id]/route.js +42 -0
  171. package/.medusa/server/src/api/vendor/inventory-items/helpers.d.ts +3 -0
  172. package/.medusa/server/src/api/vendor/inventory-items/helpers.js +30 -0
  173. package/.medusa/server/src/api/vendor/inventory-items/location-levels/batch/route.d.ts +4 -0
  174. package/.medusa/server/src/api/vendor/inventory-items/location-levels/batch/route.js +22 -0
  175. package/.medusa/server/src/api/vendor/inventory-items/middlewares.d.ts +2 -0
  176. package/.medusa/server/src/api/vendor/inventory-items/middlewares.js +100 -0
  177. package/.medusa/server/src/api/vendor/inventory-items/query-config.d.ts +22 -0
  178. package/.medusa/server/src/api/vendor/inventory-items/query-config.js +58 -0
  179. package/.medusa/server/src/api/vendor/inventory-items/route.d.ts +5 -0
  180. package/.medusa/server/src/api/vendor/inventory-items/route.js +35 -0
  181. package/.medusa/server/src/api/vendor/inventory-items/validators.d.ts +773 -0
  182. package/.medusa/server/src/api/vendor/inventory-items/validators.js +117 -0
  183. package/.medusa/server/src/api/vendor/middlewares.d.ts +2 -0
  184. package/.medusa/server/src/api/vendor/middlewares.js +105 -0
  185. package/.medusa/server/src/api/vendor/orders/[id]/cancel/route.d.ts +3 -0
  186. package/.medusa/server/src/api/vendor/orders/[id]/cancel/route.js +26 -0
  187. package/.medusa/server/src/api/vendor/orders/[id]/changes/route.d.ts +3 -0
  188. package/.medusa/server/src/api/vendor/orders/[id]/changes/route.js +21 -0
  189. package/.medusa/server/src/api/vendor/orders/[id]/complete/route.d.ts +3 -0
  190. package/.medusa/server/src/api/vendor/orders/[id]/complete/route.js +25 -0
  191. package/.medusa/server/src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/cancel/route.d.ts +3 -0
  192. package/.medusa/server/src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/cancel/route.js +27 -0
  193. package/.medusa/server/src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/mark-as-delivered/route.d.ts +3 -0
  194. package/.medusa/server/src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/mark-as-delivered/route.js +26 -0
  195. package/.medusa/server/src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/shipments/route.d.ts +4 -0
  196. package/.medusa/server/src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/shipments/route.js +28 -0
  197. package/.medusa/server/src/api/vendor/orders/[id]/fulfillments/route.d.ts +4 -0
  198. package/.medusa/server/src/api/vendor/orders/[id]/fulfillments/route.js +20 -0
  199. package/.medusa/server/src/api/vendor/orders/[id]/preview/route.d.ts +3 -0
  200. package/.medusa/server/src/api/vendor/orders/[id]/preview/route.js +15 -0
  201. package/.medusa/server/src/api/vendor/orders/[id]/route.d.ts +3 -0
  202. package/.medusa/server/src/api/vendor/orders/[id]/route.js +19 -0
  203. package/.medusa/server/src/api/vendor/orders/helpers.d.ts +2 -0
  204. package/.medusa/server/src/api/vendor/orders/helpers.js +23 -0
  205. package/.medusa/server/src/api/vendor/orders/middlewares.d.ts +2 -0
  206. package/.medusa/server/src/api/vendor/orders/middlewares.js +88 -0
  207. package/.medusa/server/src/api/vendor/orders/query-config.d.ts +18 -0
  208. package/.medusa/server/src/api/vendor/orders/query-config.js +58 -0
  209. package/.medusa/server/src/api/vendor/orders/route.d.ts +3 -0
  210. package/.medusa/server/src/api/vendor/orders/route.js +29 -0
  211. package/.medusa/server/src/api/vendor/orders/validators.d.ts +225 -0
  212. package/.medusa/server/src/api/vendor/orders/validators.js +45 -0
  213. package/.medusa/server/src/api/vendor/payments/[id]/capture/route.d.ts +4 -0
  214. package/.medusa/server/src/api/vendor/payments/[id]/capture/route.js +21 -0
  215. package/.medusa/server/src/api/vendor/payments/[id]/refund/route.d.ts +4 -0
  216. package/.medusa/server/src/api/vendor/payments/[id]/refund/route.js +21 -0
  217. package/.medusa/server/src/api/vendor/payments/[id]/route.d.ts +3 -0
  218. package/.medusa/server/src/api/vendor/payments/[id]/route.js +12 -0
  219. package/.medusa/server/src/api/vendor/payments/helpers.d.ts +3 -0
  220. package/.medusa/server/src/api/vendor/payments/helpers.js +30 -0
  221. package/.medusa/server/src/api/vendor/payments/middlewares.d.ts +2 -0
  222. package/.medusa/server/src/api/vendor/payments/middlewares.js +56 -0
  223. package/.medusa/server/src/api/vendor/payments/payment-providers/route.d.ts +3 -0
  224. package/.medusa/server/src/api/vendor/payments/payment-providers/route.js +21 -0
  225. package/.medusa/server/src/api/vendor/payments/query-config.d.ts +18 -0
  226. package/.medusa/server/src/api/vendor/payments/query-config.js +37 -0
  227. package/.medusa/server/src/api/vendor/payments/route.d.ts +3 -0
  228. package/.medusa/server/src/api/vendor/payments/route.js +21 -0
  229. package/.medusa/server/src/api/vendor/payments/validators.d.ts +174 -0
  230. package/.medusa/server/src/api/vendor/payments/validators.js +37 -0
  231. package/.medusa/server/src/api/vendor/payout-accounts/[id]/onboarding/route.d.ts +4 -0
  232. package/.medusa/server/src/api/vendor/payout-accounts/[id]/onboarding/route.js +26 -0
  233. package/.medusa/server/src/api/vendor/payout-accounts/[id]/route.d.ts +3 -0
  234. package/.medusa/server/src/api/vendor/payout-accounts/[id]/route.js +18 -0
  235. package/.medusa/server/src/api/vendor/payout-accounts/helpers.d.ts +2 -0
  236. package/.medusa/server/src/api/vendor/payout-accounts/helpers.js +20 -0
  237. package/.medusa/server/src/api/vendor/payout-accounts/middlewares.d.ts +2 -0
  238. package/.medusa/server/src/api/vendor/payout-accounts/middlewares.js +49 -0
  239. package/.medusa/server/src/api/vendor/payout-accounts/query-config.d.ts +18 -0
  240. package/.medusa/server/src/api/vendor/payout-accounts/query-config.js +40 -0
  241. package/.medusa/server/src/api/vendor/payout-accounts/route.d.ts +5 -0
  242. package/.medusa/server/src/api/vendor/payout-accounts/route.js +40 -0
  243. package/.medusa/server/src/api/vendor/payout-accounts/validators.d.ts +52 -0
  244. package/.medusa/server/src/api/vendor/payout-accounts/validators.js +23 -0
  245. package/.medusa/server/src/api/vendor/payouts/[id]/route.d.ts +3 -0
  246. package/.medusa/server/src/api/vendor/payouts/[id]/route.js +21 -0
  247. package/.medusa/server/src/api/vendor/payouts/helpers.d.ts +2 -0
  248. package/.medusa/server/src/api/vendor/payouts/helpers.js +20 -0
  249. package/.medusa/server/src/api/vendor/payouts/middlewares.d.ts +2 -0
  250. package/.medusa/server/src/api/vendor/payouts/middlewares.js +33 -0
  251. package/.medusa/server/src/api/vendor/payouts/query-config.d.ts +11 -0
  252. package/.medusa/server/src/api/vendor/payouts/query-config.js +24 -0
  253. package/.medusa/server/src/api/vendor/payouts/route.d.ts +3 -0
  254. package/.medusa/server/src/api/vendor/payouts/route.js +21 -0
  255. package/.medusa/server/src/api/vendor/payouts/validators.d.ts +118 -0
  256. package/.medusa/server/src/api/vendor/payouts/validators.js +15 -0
  257. package/.medusa/server/src/api/vendor/price-lists/[id]/prices/batch/route.d.ts +5 -0
  258. package/.medusa/server/src/api/vendor/price-lists/[id]/prices/batch/route.js +48 -0
  259. package/.medusa/server/src/api/vendor/price-lists/[id]/prices/route.d.ts +3 -0
  260. package/.medusa/server/src/api/vendor/price-lists/[id]/prices/route.js +27 -0
  261. package/.medusa/server/src/api/vendor/price-lists/[id]/products/route.d.ts +4 -0
  262. package/.medusa/server/src/api/vendor/price-lists/[id]/products/route.js +31 -0
  263. package/.medusa/server/src/api/vendor/price-lists/[id]/route.d.ts +6 -0
  264. package/.medusa/server/src/api/vendor/price-lists/[id]/route.js +40 -0
  265. package/.medusa/server/src/api/vendor/price-lists/helpers.d.ts +5 -0
  266. package/.medusa/server/src/api/vendor/price-lists/helpers.js +71 -0
  267. package/.medusa/server/src/api/vendor/price-lists/middlewares.d.ts +2 -0
  268. package/.medusa/server/src/api/vendor/price-lists/middlewares.js +111 -0
  269. package/.medusa/server/src/api/vendor/price-lists/query-config.d.ts +14 -0
  270. package/.medusa/server/src/api/vendor/price-lists/query-config.js +44 -0
  271. package/.medusa/server/src/api/vendor/price-lists/route.d.ts +5 -0
  272. package/.medusa/server/src/api/vendor/price-lists/route.js +40 -0
  273. package/.medusa/server/src/api/vendor/price-lists/validators.d.ts +285 -0
  274. package/.medusa/server/src/api/vendor/price-lists/validators.js +58 -0
  275. package/.medusa/server/src/api/vendor/price-preferences/[id]/route.d.ts +3 -0
  276. package/.medusa/server/src/api/vendor/price-preferences/[id]/route.js +20 -0
  277. package/.medusa/server/src/api/vendor/price-preferences/middlewares.d.ts +2 -0
  278. package/.medusa/server/src/api/vendor/price-preferences/middlewares.js +23 -0
  279. package/.medusa/server/src/api/vendor/price-preferences/query-config.d.ts +10 -0
  280. package/.medusa/server/src/api/vendor/price-preferences/query-config.js +21 -0
  281. package/.medusa/server/src/api/vendor/price-preferences/route.d.ts +3 -0
  282. package/.medusa/server/src/api/vendor/price-preferences/route.js +21 -0
  283. package/.medusa/server/src/api/vendor/price-preferences/validators.d.ts +43 -0
  284. package/.medusa/server/src/api/vendor/price-preferences/validators.js +16 -0
  285. package/.medusa/server/src/api/vendor/product-categories/[id]/products/route.d.ts +3 -0
  286. package/.medusa/server/src/api/vendor/product-categories/[id]/products/route.js +27 -0
  287. package/.medusa/server/src/api/vendor/product-categories/[id]/route.d.ts +3 -0
  288. package/.medusa/server/src/api/vendor/product-categories/[id]/route.js +20 -0
  289. package/.medusa/server/src/api/vendor/product-categories/helpers.d.ts +2 -0
  290. package/.medusa/server/src/api/vendor/product-categories/helpers.js +24 -0
  291. package/.medusa/server/src/api/vendor/product-categories/middlewares.d.ts +2 -0
  292. package/.medusa/server/src/api/vendor/product-categories/middlewares.js +65 -0
  293. package/.medusa/server/src/api/vendor/product-categories/query-config.d.ts +9 -0
  294. package/.medusa/server/src/api/vendor/product-categories/query-config.js +27 -0
  295. package/.medusa/server/src/api/vendor/product-categories/route.d.ts +3 -0
  296. package/.medusa/server/src/api/vendor/product-categories/route.js +21 -0
  297. package/.medusa/server/src/api/vendor/product-categories/validators.d.ts +58 -0
  298. package/.medusa/server/src/api/vendor/product-categories/validators.js +22 -0
  299. package/.medusa/server/src/api/vendor/product-tags/[id]/route.d.ts +3 -0
  300. package/.medusa/server/src/api/vendor/product-tags/[id]/route.js +20 -0
  301. package/.medusa/server/src/api/vendor/product-tags/middlewares.d.ts +2 -0
  302. package/.medusa/server/src/api/vendor/product-tags/middlewares.js +23 -0
  303. package/.medusa/server/src/api/vendor/product-tags/query-config.d.ts +11 -0
  304. package/.medusa/server/src/api/vendor/product-tags/query-config.js +21 -0
  305. package/.medusa/server/src/api/vendor/product-tags/route.d.ts +3 -0
  306. package/.medusa/server/src/api/vendor/product-tags/route.js +21 -0
  307. package/.medusa/server/src/api/vendor/product-tags/validators.d.ts +60 -0
  308. package/.medusa/server/src/api/vendor/product-tags/validators.js +19 -0
  309. package/.medusa/server/src/api/vendor/product-types/[id]/route.d.ts +3 -0
  310. package/.medusa/server/src/api/vendor/product-types/[id]/route.js +20 -0
  311. package/.medusa/server/src/api/vendor/product-types/middlewares.d.ts +2 -0
  312. package/.medusa/server/src/api/vendor/product-types/middlewares.js +23 -0
  313. package/.medusa/server/src/api/vendor/product-types/query-config.d.ts +11 -0
  314. package/.medusa/server/src/api/vendor/product-types/query-config.js +21 -0
  315. package/.medusa/server/src/api/vendor/product-types/route.d.ts +3 -0
  316. package/.medusa/server/src/api/vendor/product-types/route.js +21 -0
  317. package/.medusa/server/src/api/vendor/product-types/validators.d.ts +40 -0
  318. package/.medusa/server/src/api/vendor/product-types/validators.js +15 -0
  319. package/.medusa/server/src/api/vendor/product-variants/middlewares.d.ts +2 -0
  320. package/.medusa/server/src/api/vendor/product-variants/middlewares.js +26 -0
  321. package/.medusa/server/src/api/vendor/product-variants/query-config.d.ts +12 -0
  322. package/.medusa/server/src/api/vendor/product-variants/query-config.js +41 -0
  323. package/.medusa/server/src/api/vendor/product-variants/route.d.ts +3 -0
  324. package/.medusa/server/src/api/vendor/product-variants/route.js +21 -0
  325. package/.medusa/server/src/api/vendor/product-variants/validators.d.ts +128 -0
  326. package/.medusa/server/src/api/vendor/product-variants/validators.js +20 -0
  327. package/.medusa/server/src/api/vendor/products/[id]/options/[option_id]/route.d.ts +5 -0
  328. package/.medusa/server/src/api/vendor/products/[id]/options/[option_id]/route.js +43 -0
  329. package/.medusa/server/src/api/vendor/products/[id]/options/route.d.ts +4 -0
  330. package/.medusa/server/src/api/vendor/products/[id]/options/route.js +34 -0
  331. package/.medusa/server/src/api/vendor/products/[id]/route.d.ts +6 -0
  332. package/.medusa/server/src/api/vendor/products/[id]/route.js +58 -0
  333. package/.medusa/server/src/api/vendor/products/[id]/variants/[variant_id]/route.d.ts +6 -0
  334. package/.medusa/server/src/api/vendor/products/[id]/variants/[variant_id]/route.js +57 -0
  335. package/.medusa/server/src/api/vendor/products/[id]/variants/route.d.ts +5 -0
  336. package/.medusa/server/src/api/vendor/products/[id]/variants/route.js +55 -0
  337. package/.medusa/server/src/api/vendor/products/helpers.d.ts +2 -0
  338. package/.medusa/server/src/api/vendor/products/helpers.js +20 -0
  339. package/.medusa/server/src/api/vendor/products/middlewares.d.ts +2 -0
  340. package/.medusa/server/src/api/vendor/products/middlewares.js +112 -0
  341. package/.medusa/server/src/api/vendor/products/query-config.d.ts +22 -0
  342. package/.medusa/server/src/api/vendor/products/query-config.js +61 -0
  343. package/.medusa/server/src/api/vendor/products/route.d.ts +5 -0
  344. package/.medusa/server/src/api/vendor/products/route.js +43 -0
  345. package/.medusa/server/src/api/vendor/products/validators.d.ts +2192 -0
  346. package/.medusa/server/src/api/vendor/products/validators.js +168 -0
  347. package/.medusa/server/src/api/vendor/promotions/[id]/[rule_type]/route.d.ts +4 -0
  348. package/.medusa/server/src/api/vendor/promotions/[id]/[rule_type]/route.js +103 -0
  349. package/.medusa/server/src/api/vendor/promotions/[id]/buy-rules/batch/route.d.ts +5 -0
  350. package/.medusa/server/src/api/vendor/promotions/[id]/buy-rules/batch/route.js +23 -0
  351. package/.medusa/server/src/api/vendor/promotions/[id]/route.d.ts +6 -0
  352. package/.medusa/server/src/api/vendor/promotions/[id]/route.js +42 -0
  353. package/.medusa/server/src/api/vendor/promotions/[id]/rules/batch/route.d.ts +5 -0
  354. package/.medusa/server/src/api/vendor/promotions/[id]/rules/batch/route.js +23 -0
  355. package/.medusa/server/src/api/vendor/promotions/[id]/target-rules/batch/route.d.ts +5 -0
  356. package/.medusa/server/src/api/vendor/promotions/[id]/target-rules/batch/route.js +23 -0
  357. package/.medusa/server/src/api/vendor/promotions/helpers.d.ts +13 -0
  358. package/.medusa/server/src/api/vendor/promotions/helpers.js +70 -0
  359. package/.medusa/server/src/api/vendor/promotions/middlewares.d.ts +2 -0
  360. package/.medusa/server/src/api/vendor/promotions/middlewares.js +100 -0
  361. package/.medusa/server/src/api/vendor/promotions/query-config.d.ts +29 -0
  362. package/.medusa/server/src/api/vendor/promotions/query-config.js +60 -0
  363. package/.medusa/server/src/api/vendor/promotions/route.d.ts +5 -0
  364. package/.medusa/server/src/api/vendor/promotions/route.js +35 -0
  365. package/.medusa/server/src/api/vendor/promotions/rule-attribute-options/[rule_type]/route.d.ts +4 -0
  366. package/.medusa/server/src/api/vendor/promotions/rule-attribute-options/[rule_type]/route.js +18 -0
  367. package/.medusa/server/src/api/vendor/promotions/rule-value-options/[rule_type]/[rule_attribute_id]/route.d.ts +4 -0
  368. package/.medusa/server/src/api/vendor/promotions/rule-value-options/[rule_type]/[rule_attribute_id]/route.js +54 -0
  369. package/.medusa/server/src/api/vendor/promotions/utils/index.d.ts +5 -0
  370. package/.medusa/server/src/api/vendor/promotions/utils/index.js +22 -0
  371. package/.medusa/server/src/api/vendor/promotions/utils/operators-map.d.ts +18 -0
  372. package/.medusa/server/src/api/vendor/promotions/utils/operators-map.js +22 -0
  373. package/.medusa/server/src/api/vendor/promotions/utils/rule-attributes-map.d.ts +11 -0
  374. package/.medusa/server/src/api/vendor/promotions/utils/rule-attributes-map.js +155 -0
  375. package/.medusa/server/src/api/vendor/promotions/utils/rule-query-configuration.d.ts +5 -0
  376. package/.medusa/server/src/api/vendor/promotions/utils/rule-query-configuration.js +61 -0
  377. package/.medusa/server/src/api/vendor/promotions/utils/validate-rule-attribute.d.ts +8 -0
  378. package/.medusa/server/src/api/vendor/promotions/utils/validate-rule-attribute.js +18 -0
  379. package/.medusa/server/src/api/vendor/promotions/utils/validate-rule-type.d.ts +1 -0
  380. package/.medusa/server/src/api/vendor/promotions/utils/validate-rule-type.js +12 -0
  381. package/.medusa/server/src/api/vendor/promotions/validators.d.ts +1082 -0
  382. package/.medusa/server/src/api/vendor/promotions/validators.js +134 -0
  383. package/.medusa/server/src/api/vendor/refund-reasons/[id]/route.d.ts +3 -0
  384. package/.medusa/server/src/api/vendor/refund-reasons/[id]/route.js +20 -0
  385. package/.medusa/server/src/api/vendor/refund-reasons/middlewares.d.ts +2 -0
  386. package/.medusa/server/src/api/vendor/refund-reasons/middlewares.js +23 -0
  387. package/.medusa/server/src/api/vendor/refund-reasons/query-config.d.ts +11 -0
  388. package/.medusa/server/src/api/vendor/refund-reasons/query-config.js +22 -0
  389. package/.medusa/server/src/api/vendor/refund-reasons/route.d.ts +3 -0
  390. package/.medusa/server/src/api/vendor/refund-reasons/route.js +21 -0
  391. package/.medusa/server/src/api/vendor/refund-reasons/validators.d.ts +121 -0
  392. package/.medusa/server/src/api/vendor/refund-reasons/validators.js +16 -0
  393. package/.medusa/server/src/api/vendor/regions/[id]/route.d.ts +3 -0
  394. package/.medusa/server/src/api/vendor/regions/[id]/route.js +18 -0
  395. package/.medusa/server/src/api/vendor/regions/middlewares.d.ts +2 -0
  396. package/.medusa/server/src/api/vendor/regions/middlewares.js +23 -0
  397. package/.medusa/server/src/api/vendor/regions/query-config.d.ts +11 -0
  398. package/.medusa/server/src/api/vendor/regions/query-config.js +24 -0
  399. package/.medusa/server/src/api/vendor/regions/route.d.ts +3 -0
  400. package/.medusa/server/src/api/vendor/regions/route.js +21 -0
  401. package/.medusa/server/src/api/vendor/regions/validators.d.ts +127 -0
  402. package/.medusa/server/src/api/vendor/regions/validators.js +18 -0
  403. package/.medusa/server/src/api/vendor/return-reasons/[id]/route.d.ts +3 -0
  404. package/.medusa/server/src/api/vendor/return-reasons/[id]/route.js +20 -0
  405. package/.medusa/server/src/api/vendor/return-reasons/middlewares.d.ts +2 -0
  406. package/.medusa/server/src/api/vendor/return-reasons/middlewares.js +23 -0
  407. package/.medusa/server/src/api/vendor/return-reasons/query-config.d.ts +12 -0
  408. package/.medusa/server/src/api/vendor/return-reasons/query-config.js +28 -0
  409. package/.medusa/server/src/api/vendor/return-reasons/route.d.ts +3 -0
  410. package/.medusa/server/src/api/vendor/return-reasons/route.js +21 -0
  411. package/.medusa/server/src/api/vendor/return-reasons/validators.d.ts +133 -0
  412. package/.medusa/server/src/api/vendor/return-reasons/validators.js +22 -0
  413. package/.medusa/server/src/api/vendor/returns/[id]/cancel/route.d.ts +4 -0
  414. package/.medusa/server/src/api/vendor/returns/[id]/cancel/route.js +19 -0
  415. package/.medusa/server/src/api/vendor/returns/[id]/dismiss-items/[action_id]/route.d.ts +5 -0
  416. package/.medusa/server/src/api/vendor/returns/[id]/dismiss-items/[action_id]/route.js +56 -0
  417. package/.medusa/server/src/api/vendor/returns/[id]/dismiss-items/route.d.ts +4 -0
  418. package/.medusa/server/src/api/vendor/returns/[id]/dismiss-items/route.js +28 -0
  419. package/.medusa/server/src/api/vendor/returns/[id]/receive/confirm/route.d.ts +4 -0
  420. package/.medusa/server/src/api/vendor/returns/[id]/receive/confirm/route.js +31 -0
  421. package/.medusa/server/src/api/vendor/returns/[id]/receive/route.d.ts +5 -0
  422. package/.medusa/server/src/api/vendor/returns/[id]/receive/route.js +51 -0
  423. package/.medusa/server/src/api/vendor/returns/[id]/receive-items/[action_id]/route.d.ts +5 -0
  424. package/.medusa/server/src/api/vendor/returns/[id]/receive-items/[action_id]/route.js +56 -0
  425. package/.medusa/server/src/api/vendor/returns/[id]/receive-items/route.d.ts +4 -0
  426. package/.medusa/server/src/api/vendor/returns/[id]/receive-items/route.js +28 -0
  427. package/.medusa/server/src/api/vendor/returns/[id]/request/route.d.ts +5 -0
  428. package/.medusa/server/src/api/vendor/returns/[id]/request/route.js +46 -0
  429. package/.medusa/server/src/api/vendor/returns/[id]/request-items/[action_id]/route.d.ts +5 -0
  430. package/.medusa/server/src/api/vendor/returns/[id]/request-items/[action_id]/route.js +56 -0
  431. package/.medusa/server/src/api/vendor/returns/[id]/request-items/route.d.ts +4 -0
  432. package/.medusa/server/src/api/vendor/returns/[id]/request-items/route.js +28 -0
  433. package/.medusa/server/src/api/vendor/returns/[id]/route.d.ts +5 -0
  434. package/.medusa/server/src/api/vendor/returns/[id]/route.js +45 -0
  435. package/.medusa/server/src/api/vendor/returns/[id]/shipping-method/[action_id]/route.d.ts +5 -0
  436. package/.medusa/server/src/api/vendor/returns/[id]/shipping-method/[action_id]/route.js +56 -0
  437. package/.medusa/server/src/api/vendor/returns/[id]/shipping-method/route.d.ts +4 -0
  438. package/.medusa/server/src/api/vendor/returns/[id]/shipping-method/route.js +28 -0
  439. package/.medusa/server/src/api/vendor/returns/helpers.d.ts +2 -0
  440. package/.medusa/server/src/api/vendor/returns/helpers.js +21 -0
  441. package/.medusa/server/src/api/vendor/returns/middlewares.d.ts +2 -0
  442. package/.medusa/server/src/api/vendor/returns/middlewares.js +189 -0
  443. package/.medusa/server/src/api/vendor/returns/query-config.d.ts +12 -0
  444. package/.medusa/server/src/api/vendor/returns/query-config.js +38 -0
  445. package/.medusa/server/src/api/vendor/returns/route.d.ts +5 -0
  446. package/.medusa/server/src/api/vendor/returns/route.js +52 -0
  447. package/.medusa/server/src/api/vendor/returns/validators.d.ts +439 -0
  448. package/.medusa/server/src/api/vendor/returns/validators.js +91 -0
  449. package/.medusa/server/src/api/vendor/sales-channels/[id]/products/route.d.ts +4 -0
  450. package/.medusa/server/src/api/vendor/sales-channels/[id]/products/route.js +24 -0
  451. package/.medusa/server/src/api/vendor/sales-channels/[id]/route.d.ts +3 -0
  452. package/.medusa/server/src/api/vendor/sales-channels/[id]/route.js +20 -0
  453. package/.medusa/server/src/api/vendor/sales-channels/helpers.d.ts +2 -0
  454. package/.medusa/server/src/api/vendor/sales-channels/helpers.js +14 -0
  455. package/.medusa/server/src/api/vendor/sales-channels/middlewares.d.ts +2 -0
  456. package/.medusa/server/src/api/vendor/sales-channels/middlewares.js +32 -0
  457. package/.medusa/server/src/api/vendor/sales-channels/query-config.d.ts +10 -0
  458. package/.medusa/server/src/api/vendor/sales-channels/query-config.js +22 -0
  459. package/.medusa/server/src/api/vendor/sales-channels/route.d.ts +3 -0
  460. package/.medusa/server/src/api/vendor/sales-channels/route.js +21 -0
  461. package/.medusa/server/src/api/vendor/sales-channels/validators.d.ts +43 -0
  462. package/.medusa/server/src/api/vendor/sales-channels/validators.js +16 -0
  463. package/.medusa/server/src/api/vendor/sellers/me/route.d.ts +5 -0
  464. package/.medusa/server/src/api/vendor/sellers/me/route.js +32 -0
  465. package/.medusa/server/src/api/vendor/sellers/middlewares.d.ts +2 -0
  466. package/.medusa/server/src/api/vendor/sellers/middlewares.js +32 -0
  467. package/.medusa/server/src/api/vendor/sellers/query-config.d.ts +11 -0
  468. package/.medusa/server/src/api/vendor/sellers/query-config.js +32 -0
  469. package/.medusa/server/src/api/vendor/sellers/route.d.ts +4 -0
  470. package/.medusa/server/src/api/vendor/sellers/route.js +22 -0
  471. package/.medusa/server/src/api/vendor/sellers/validators.d.ts +112 -0
  472. package/.medusa/server/src/api/vendor/sellers/validators.js +43 -0
  473. package/.medusa/server/src/api/vendor/shipping-option-types/[id]/route.d.ts +3 -0
  474. package/.medusa/server/src/api/vendor/shipping-option-types/[id]/route.js +14 -0
  475. package/.medusa/server/src/api/vendor/shipping-option-types/helpers.d.ts +2 -0
  476. package/.medusa/server/src/api/vendor/shipping-option-types/helpers.js +15 -0
  477. package/.medusa/server/src/api/vendor/shipping-option-types/middlewares.d.ts +2 -0
  478. package/.medusa/server/src/api/vendor/shipping-option-types/middlewares.js +23 -0
  479. package/.medusa/server/src/api/vendor/shipping-option-types/query-config.d.ts +12 -0
  480. package/.medusa/server/src/api/vendor/shipping-option-types/query-config.js +23 -0
  481. package/.medusa/server/src/api/vendor/shipping-option-types/route.d.ts +3 -0
  482. package/.medusa/server/src/api/vendor/shipping-option-types/route.js +21 -0
  483. package/.medusa/server/src/api/vendor/shipping-option-types/validators.d.ts +130 -0
  484. package/.medusa/server/src/api/vendor/shipping-option-types/validators.js +19 -0
  485. package/.medusa/server/src/api/vendor/shipping-options/[id]/route.d.ts +6 -0
  486. package/.medusa/server/src/api/vendor/shipping-options/[id]/route.js +46 -0
  487. package/.medusa/server/src/api/vendor/shipping-options/[id]/rules/batch/route.d.ts +5 -0
  488. package/.medusa/server/src/api/vendor/shipping-options/[id]/rules/batch/route.js +26 -0
  489. package/.medusa/server/src/api/vendor/shipping-options/helpers.d.ts +12 -0
  490. package/.medusa/server/src/api/vendor/shipping-options/helpers.js +64 -0
  491. package/.medusa/server/src/api/vendor/shipping-options/middlewares.d.ts +2 -0
  492. package/.medusa/server/src/api/vendor/shipping-options/middlewares.js +63 -0
  493. package/.medusa/server/src/api/vendor/shipping-options/query-config.d.ts +22 -0
  494. package/.medusa/server/src/api/vendor/shipping-options/query-config.js +47 -0
  495. package/.medusa/server/src/api/vendor/shipping-options/route.d.ts +5 -0
  496. package/.medusa/server/src/api/vendor/shipping-options/route.js +35 -0
  497. package/.medusa/server/src/api/vendor/shipping-options/validators.d.ts +860 -0
  498. package/.medusa/server/src/api/vendor/shipping-options/validators.js +130 -0
  499. package/.medusa/server/src/api/vendor/shipping-profiles/[id]/route.d.ts +6 -0
  500. package/.medusa/server/src/api/vendor/shipping-profiles/[id]/route.js +38 -0
  501. package/.medusa/server/src/api/vendor/shipping-profiles/helpers.d.ts +3 -0
  502. package/.medusa/server/src/api/vendor/shipping-profiles/helpers.js +30 -0
  503. package/.medusa/server/src/api/vendor/shipping-profiles/middlewares.d.ts +2 -0
  504. package/.medusa/server/src/api/vendor/shipping-profiles/middlewares.js +54 -0
  505. package/.medusa/server/src/api/vendor/shipping-profiles/query-config.d.ts +11 -0
  506. package/.medusa/server/src/api/vendor/shipping-profiles/query-config.js +22 -0
  507. package/.medusa/server/src/api/vendor/shipping-profiles/route.d.ts +5 -0
  508. package/.medusa/server/src/api/vendor/shipping-profiles/route.js +35 -0
  509. package/.medusa/server/src/api/vendor/shipping-profiles/validators.d.ts +155 -0
  510. package/.medusa/server/src/api/vendor/shipping-profiles/validators.js +32 -0
  511. package/.medusa/server/src/api/vendor/stock-locations/[id]/fulfillment-providers/route.d.ts +4 -0
  512. package/.medusa/server/src/api/vendor/stock-locations/[id]/fulfillment-providers/route.js +30 -0
  513. package/.medusa/server/src/api/vendor/stock-locations/[id]/fulfillment-sets/route.d.ts +4 -0
  514. package/.medusa/server/src/api/vendor/stock-locations/[id]/fulfillment-sets/route.js +23 -0
  515. package/.medusa/server/src/api/vendor/stock-locations/[id]/route.d.ts +6 -0
  516. package/.medusa/server/src/api/vendor/stock-locations/[id]/route.js +43 -0
  517. package/.medusa/server/src/api/vendor/stock-locations/[id]/sales-channels/route.d.ts +4 -0
  518. package/.medusa/server/src/api/vendor/stock-locations/[id]/sales-channels/route.js +22 -0
  519. package/.medusa/server/src/api/vendor/stock-locations/helpers.d.ts +3 -0
  520. package/.medusa/server/src/api/vendor/stock-locations/helpers.js +30 -0
  521. package/.medusa/server/src/api/vendor/stock-locations/middlewares.d.ts +2 -0
  522. package/.medusa/server/src/api/vendor/stock-locations/middlewares.js +79 -0
  523. package/.medusa/server/src/api/vendor/stock-locations/query-config.d.ts +11 -0
  524. package/.medusa/server/src/api/vendor/stock-locations/query-config.js +30 -0
  525. package/.medusa/server/src/api/vendor/stock-locations/route.d.ts +5 -0
  526. package/.medusa/server/src/api/vendor/stock-locations/route.js +35 -0
  527. package/.medusa/server/src/api/vendor/stock-locations/validators.d.ts +287 -0
  528. package/.medusa/server/src/api/vendor/stock-locations/validators.js +47 -0
  529. package/.medusa/server/src/api/vendor/stores/middlewares.d.ts +2 -0
  530. package/.medusa/server/src/api/vendor/stores/middlewares.js +16 -0
  531. package/.medusa/server/src/api/vendor/stores/query-config.d.ts +11 -0
  532. package/.medusa/server/src/api/vendor/stores/query-config.js +26 -0
  533. package/.medusa/server/src/api/vendor/stores/route.d.ts +3 -0
  534. package/.medusa/server/src/api/vendor/stores/route.js +21 -0
  535. package/.medusa/server/src/api/vendor/stores/validators.d.ts +40 -0
  536. package/.medusa/server/src/api/vendor/stores/validators.js +15 -0
  537. package/.medusa/server/src/api/vendor/uploads/middlewares.d.ts +2 -0
  538. package/.medusa/server/src/api/vendor/uploads/middlewares.js +16 -0
  539. package/.medusa/server/src/api/vendor/uploads/route.d.ts +3 -0
  540. package/.medusa/server/src/api/vendor/uploads/route.js +24 -0
  541. package/.medusa/server/src/links/campaign-seller-link.d.ts +2 -0
  542. package/.medusa/server/src/links/campaign-seller-link.js +10 -0
  543. package/.medusa/server/src/links/inventory-item-seller-link.d.ts +2 -0
  544. package/.medusa/server/src/links/inventory-item-seller-link.js +10 -0
  545. package/.medusa/server/src/links/line-item-commission-line-link.d.ts +2 -0
  546. package/.medusa/server/src/links/line-item-commission-line-link.js +21 -0
  547. package/.medusa/server/src/links/order-group-cart-link.d.ts +2 -0
  548. package/.medusa/server/src/links/order-group-cart-link.js +15 -0
  549. package/.medusa/server/src/links/order-group-order-link.d.ts +2 -0
  550. package/.medusa/server/src/links/order-group-order-link.js +14 -0
  551. package/.medusa/server/src/links/order-payout-link.d.ts +2 -0
  552. package/.medusa/server/src/links/order-payout-link.js +13 -0
  553. package/.medusa/server/src/links/order-seller-link.d.ts +2 -0
  554. package/.medusa/server/src/links/order-seller-link.js +10 -0
  555. package/.medusa/server/src/links/payout-seller-link.d.ts +2 -0
  556. package/.medusa/server/src/links/payout-seller-link.js +13 -0
  557. package/.medusa/server/src/links/price-list-seller-link.d.ts +2 -0
  558. package/.medusa/server/src/links/price-list-seller-link.js +10 -0
  559. package/.medusa/server/src/links/product-seller-link.d.ts +2 -0
  560. package/.medusa/server/src/links/product-seller-link.js +10 -0
  561. package/.medusa/server/src/links/promotion-seller-link.d.ts +2 -0
  562. package/.medusa/server/src/links/promotion-seller-link.js +10 -0
  563. package/.medusa/server/src/links/seller-customer-link.d.ts +2 -0
  564. package/.medusa/server/src/links/seller-customer-link.js +10 -0
  565. package/.medusa/server/src/links/seller-payout-account-link.d.ts +2 -0
  566. package/.medusa/server/src/links/seller-payout-account-link.js +10 -0
  567. package/.medusa/server/src/links/shipping-option-seller-link.d.ts +2 -0
  568. package/.medusa/server/src/links/shipping-option-seller-link.js +10 -0
  569. package/.medusa/server/src/links/shipping-profile-seller-link.d.ts +2 -0
  570. package/.medusa/server/src/links/shipping-profile-seller-link.js +10 -0
  571. package/.medusa/server/src/links/stock-location-seller-link.d.ts +2 -0
  572. package/.medusa/server/src/links/stock-location-seller-link.js +10 -0
  573. package/.medusa/server/src/modules/commission/index.d.ts +49 -0
  574. package/.medusa/server/src/modules/commission/index.js +12 -0
  575. package/.medusa/server/src/modules/commission/migrations/Migration20260130132817.d.ts +5 -0
  576. package/.medusa/server/src/modules/commission/migrations/Migration20260130132817.js +26 -0
  577. package/.medusa/server/src/modules/commission/models/commission-line.d.ts +10 -0
  578. package/.medusa/server/src/modules/commission/models/commission-line.js +14 -0
  579. package/.medusa/server/src/modules/commission/models/commission-rate.d.ts +21 -0
  580. package/.medusa/server/src/modules/commission/models/commission-rate.js +26 -0
  581. package/.medusa/server/src/modules/commission/models/commission-rule.d.ts +20 -0
  582. package/.medusa/server/src/modules/commission/models/commission-rule.js +17 -0
  583. package/.medusa/server/src/modules/commission/models/index.d.ts +3 -0
  584. package/.medusa/server/src/modules/commission/models/index.js +13 -0
  585. package/.medusa/server/src/modules/commission/service.d.ts +63 -0
  586. package/.medusa/server/src/modules/commission/service.js +184 -0
  587. package/.medusa/server/src/modules/payout/index.d.ts +77 -0
  588. package/.medusa/server/src/modules/payout/index.js +14 -0
  589. package/.medusa/server/src/modules/payout/loaders/provider.d.ts +5 -0
  590. package/.medusa/server/src/modules/payout/loaders/provider.js +28 -0
  591. package/.medusa/server/src/modules/payout/migrations/Migration20260130132816.d.ts +5 -0
  592. package/.medusa/server/src/modules/payout/migrations/Migration20260130132816.js +42 -0
  593. package/.medusa/server/src/modules/payout/migrations/Migration20260216152209.d.ts +5 -0
  594. package/.medusa/server/src/modules/payout/migrations/Migration20260216152209.js +14 -0
  595. package/.medusa/server/src/modules/payout/models/balance.d.ts +53 -0
  596. package/.medusa/server/src/modules/payout/models/balance.js +35 -0
  597. package/.medusa/server/src/modules/payout/models/index.d.ts +5 -0
  598. package/.medusa/server/src/modules/payout/models/index.js +14 -0
  599. package/.medusa/server/src/modules/payout/models/onboarding.d.ts +35 -0
  600. package/.medusa/server/src/modules/payout/models/onboarding.js +14 -0
  601. package/.medusa/server/src/modules/payout/models/payout-account.d.ts +41 -0
  602. package/.medusa/server/src/modules/payout/models/payout-account.js +28 -0
  603. package/.medusa/server/src/modules/payout/models/payout.d.ts +41 -0
  604. package/.medusa/server/src/modules/payout/models/payout.js +18 -0
  605. package/.medusa/server/src/modules/payout/models/transaction.d.ts +40 -0
  606. package/.medusa/server/src/modules/payout/models/transaction.js +26 -0
  607. package/.medusa/server/src/modules/payout/providers/index.d.ts +1 -0
  608. package/.medusa/server/src/modules/payout/providers/index.js +6 -0
  609. package/.medusa/server/src/modules/payout/providers/system.d.ts +8 -0
  610. package/.medusa/server/src/modules/payout/providers/system.js +32 -0
  611. package/.medusa/server/src/modules/payout/services/index.d.ts +2 -0
  612. package/.medusa/server/src/modules/payout/services/index.js +24 -0
  613. package/.medusa/server/src/modules/payout/services/payout-module-service.d.ts +220 -0
  614. package/.medusa/server/src/modules/payout/services/payout-module-service.js +278 -0
  615. package/.medusa/server/src/modules/payout/services/provider-service.d.ts +17 -0
  616. package/.medusa/server/src/modules/payout/services/provider-service.js +32 -0
  617. package/.medusa/server/src/modules/payout/utils/calculate-payout-transactions.d.ts +10 -0
  618. package/.medusa/server/src/modules/payout/utils/calculate-payout-transactions.js +17 -0
  619. package/.medusa/server/src/modules/payout/utils/index.d.ts +1 -0
  620. package/.medusa/server/src/modules/payout/utils/index.js +18 -0
  621. package/.medusa/server/src/modules/seller/index.d.ts +35 -0
  622. package/.medusa/server/src/modules/seller/index.js +12 -0
  623. package/.medusa/server/src/modules/seller/migrations/Migration20260123112516.d.ts +5 -0
  624. package/.medusa/server/src/modules/seller/migrations/Migration20260123112516.js +20 -0
  625. package/.medusa/server/src/modules/seller/migrations/Migration20260126130937.d.ts +5 -0
  626. package/.medusa/server/src/modules/seller/migrations/Migration20260126130937.js +18 -0
  627. package/.medusa/server/src/modules/seller/models/index.d.ts +2 -0
  628. package/.medusa/server/src/modules/seller/models/index.js +11 -0
  629. package/.medusa/server/src/modules/seller/models/order-group.d.ts +8 -0
  630. package/.medusa/server/src/modules/seller/models/order-group.js +12 -0
  631. package/.medusa/server/src/modules/seller/models/seller.d.ts +18 -0
  632. package/.medusa/server/src/modules/seller/models/seller.js +22 -0
  633. package/.medusa/server/src/modules/seller/repositories/index.d.ts +1 -0
  634. package/.medusa/server/src/modules/seller/repositories/index.js +6 -0
  635. package/.medusa/server/src/modules/seller/repositories/order-group.d.ts +17 -0
  636. package/.medusa/server/src/modules/seller/repositories/order-group.js +179 -0
  637. package/.medusa/server/src/modules/seller/service.d.ts +80 -0
  638. package/.medusa/server/src/modules/seller/service.js +129 -0
  639. package/.medusa/server/src/subscribers/payout-webhook.d.ts +4 -0
  640. package/.medusa/server/src/subscribers/payout-webhook.js +27 -0
  641. package/.medusa/server/src/workflows/campaign/index.d.ts +2 -0
  642. package/.medusa/server/src/workflows/campaign/index.js +19 -0
  643. package/.medusa/server/src/workflows/campaign/steps/index.d.ts +1 -0
  644. package/.medusa/server/src/workflows/campaign/steps/index.js +18 -0
  645. package/.medusa/server/src/workflows/campaign/steps/link-seller-campaign.d.ts +6 -0
  646. package/.medusa/server/src/workflows/campaign/steps/link-seller-campaign.js +36 -0
  647. package/.medusa/server/src/workflows/campaign/workflows/create-seller-campaigns.d.ts +7 -0
  648. package/.medusa/server/src/workflows/campaign/workflows/create-seller-campaigns.js +20 -0
  649. package/.medusa/server/src/workflows/campaign/workflows/index.d.ts +1 -0
  650. package/.medusa/server/src/workflows/campaign/workflows/index.js +18 -0
  651. package/.medusa/server/src/workflows/cart/index.d.ts +2 -0
  652. package/.medusa/server/src/workflows/cart/index.js +19 -0
  653. package/.medusa/server/src/workflows/cart/steps/index.d.ts +2 -0
  654. package/.medusa/server/src/workflows/cart/steps/index.js +19 -0
  655. package/.medusa/server/src/workflows/cart/steps/prepare-adjustments-from-promotion-actions.d.ts +6 -0
  656. package/.medusa/server/src/workflows/cart/steps/prepare-adjustments-from-promotion-actions.js +106 -0
  657. package/.medusa/server/src/workflows/cart/steps/validate-seller-cart-items.d.ts +15 -0
  658. package/.medusa/server/src/workflows/cart/steps/validate-seller-cart-items.js +17 -0
  659. package/.medusa/server/src/workflows/cart/steps/validate-seller-cart-shipping.d.ts +18 -0
  660. package/.medusa/server/src/workflows/cart/steps/validate-seller-cart-shipping.js +18 -0
  661. package/.medusa/server/src/workflows/cart/utils/fields.d.ts +3 -0
  662. package/.medusa/server/src/workflows/cart/utils/fields.js +154 -0
  663. package/.medusa/server/src/workflows/cart/utils/index.d.ts +4 -0
  664. package/.medusa/server/src/workflows/cart/utils/index.js +21 -0
  665. package/.medusa/server/src/workflows/cart/utils/prepare-confirm-inventory-input.d.ts +28 -0
  666. package/.medusa/server/src/workflows/cart/utils/prepare-confirm-inventory-input.js +165 -0
  667. package/.medusa/server/src/workflows/cart/utils/prepare-line-item-data.d.ts +71 -0
  668. package/.medusa/server/src/workflows/cart/utils/prepare-line-item-data.js +90 -0
  669. package/.medusa/server/src/workflows/cart/utils/schemas.d.ts +3 -0
  670. package/.medusa/server/src/workflows/cart/utils/schemas.js +7 -0
  671. package/.medusa/server/src/workflows/cart/workflows/add-seller-shipping-method-to-cart.d.ts +7 -0
  672. package/.medusa/server/src/workflows/cart/workflows/add-seller-shipping-method-to-cart.js +130 -0
  673. package/.medusa/server/src/workflows/cart/workflows/complete-cart-with-split-orders.d.ts +13 -0
  674. package/.medusa/server/src/workflows/cart/workflows/complete-cart-with-split-orders.js +379 -0
  675. package/.medusa/server/src/workflows/cart/workflows/index.d.ts +4 -0
  676. package/.medusa/server/src/workflows/cart/workflows/index.js +21 -0
  677. package/.medusa/server/src/workflows/cart/workflows/list-seller-shipping-options-for-cart.d.ts +21 -0
  678. package/.medusa/server/src/workflows/cart/workflows/list-seller-shipping-options-for-cart.js +217 -0
  679. package/.medusa/server/src/workflows/cart/workflows/update-cart-seller-promotions.d.ts +5 -0
  680. package/.medusa/server/src/workflows/cart/workflows/update-cart-seller-promotions.js +74 -0
  681. package/.medusa/server/src/workflows/commission/index.d.ts +2 -0
  682. package/.medusa/server/src/workflows/commission/index.js +19 -0
  683. package/.medusa/server/src/workflows/commission/steps/create-commission-rates.d.ts +30 -0
  684. package/.medusa/server/src/workflows/commission/steps/create-commission-rates.js +17 -0
  685. package/.medusa/server/src/workflows/commission/steps/create-commission-rules.d.ts +34 -0
  686. package/.medusa/server/src/workflows/commission/steps/create-commission-rules.js +21 -0
  687. package/.medusa/server/src/workflows/commission/steps/delete-commission-rates.d.ts +2 -0
  688. package/.medusa/server/src/workflows/commission/steps/delete-commission-rates.js +17 -0
  689. package/.medusa/server/src/workflows/commission/steps/delete-commission-rules.d.ts +2 -0
  690. package/.medusa/server/src/workflows/commission/steps/delete-commission-rules.js +24 -0
  691. package/.medusa/server/src/workflows/commission/steps/get-commission-lines.d.ts +3 -0
  692. package/.medusa/server/src/workflows/commission/steps/get-commission-lines.js +15 -0
  693. package/.medusa/server/src/workflows/commission/steps/index.d.ts +8 -0
  694. package/.medusa/server/src/workflows/commission/steps/index.js +25 -0
  695. package/.medusa/server/src/workflows/commission/steps/update-commission-rates.d.ts +30 -0
  696. package/.medusa/server/src/workflows/commission/steps/update-commission-rates.js +17 -0
  697. package/.medusa/server/src/workflows/commission/steps/update-commission-rules.d.ts +30 -0
  698. package/.medusa/server/src/workflows/commission/steps/update-commission-rules.js +24 -0
  699. package/.medusa/server/src/workflows/commission/steps/upsert-commission-lines.d.ts +7 -0
  700. package/.medusa/server/src/workflows/commission/steps/upsert-commission-lines.js +12 -0
  701. package/.medusa/server/src/workflows/commission/workflows/batch-commission-rules.d.ts +9 -0
  702. package/.medusa/server/src/workflows/commission/workflows/batch-commission-rules.js +19 -0
  703. package/.medusa/server/src/workflows/commission/workflows/create-commission-rates.d.ts +30 -0
  704. package/.medusa/server/src/workflows/commission/workflows/create-commission-rates.js +11 -0
  705. package/.medusa/server/src/workflows/commission/workflows/delete-commission-rates.d.ts +8 -0
  706. package/.medusa/server/src/workflows/commission/workflows/delete-commission-rates.js +16 -0
  707. package/.medusa/server/src/workflows/commission/workflows/index.d.ts +5 -0
  708. package/.medusa/server/src/workflows/commission/workflows/index.js +22 -0
  709. package/.medusa/server/src/workflows/commission/workflows/refresh-order-commission-lines.d.ts +6 -0
  710. package/.medusa/server/src/workflows/commission/workflows/refresh-order-commission-lines.js +79 -0
  711. package/.medusa/server/src/workflows/commission/workflows/update-commission-rates.d.ts +30 -0
  712. package/.medusa/server/src/workflows/commission/workflows/update-commission-rates.js +11 -0
  713. package/.medusa/server/src/workflows/events.d.ts +17 -0
  714. package/.medusa/server/src/workflows/events.js +21 -0
  715. package/.medusa/server/src/workflows/hooks/product-created.d.ts +1 -0
  716. package/.medusa/server/src/workflows/hooks/product-created.js +68 -0
  717. package/.medusa/server/src/workflows/hooks/product-variant-created.d.ts +1 -0
  718. package/.medusa/server/src/workflows/hooks/product-variant-created.js +50 -0
  719. package/.medusa/server/src/workflows/index.d.ts +13 -0
  720. package/.medusa/server/src/workflows/index.js +30 -0
  721. package/.medusa/server/src/workflows/inventory-item/index.d.ts +2 -0
  722. package/.medusa/server/src/workflows/inventory-item/index.js +19 -0
  723. package/.medusa/server/src/workflows/inventory-item/steps/index.d.ts +1 -0
  724. package/.medusa/server/src/workflows/inventory-item/steps/index.js +18 -0
  725. package/.medusa/server/src/workflows/inventory-item/steps/link-seller-inventory-item.d.ts +6 -0
  726. package/.medusa/server/src/workflows/inventory-item/steps/link-seller-inventory-item.js +36 -0
  727. package/.medusa/server/src/workflows/inventory-item/workflows/create-seller-inventory-items.d.ts +7 -0
  728. package/.medusa/server/src/workflows/inventory-item/workflows/create-seller-inventory-items.js +20 -0
  729. package/.medusa/server/src/workflows/inventory-item/workflows/index.d.ts +1 -0
  730. package/.medusa/server/src/workflows/inventory-item/workflows/index.js +18 -0
  731. package/.medusa/server/src/workflows/order-group/index.d.ts +1 -0
  732. package/.medusa/server/src/workflows/order-group/index.js +18 -0
  733. package/.medusa/server/src/workflows/order-group/steps/create-order-group.d.ts +11 -0
  734. package/.medusa/server/src/workflows/order-group/steps/create-order-group.js +17 -0
  735. package/.medusa/server/src/workflows/order-group/steps/index.d.ts +1 -0
  736. package/.medusa/server/src/workflows/order-group/steps/index.js +18 -0
  737. package/.medusa/server/src/workflows/payout/index.d.ts +2 -0
  738. package/.medusa/server/src/workflows/payout/index.js +19 -0
  739. package/.medusa/server/src/workflows/payout/steps/add-payout-transactions.d.ts +11 -0
  740. package/.medusa/server/src/workflows/payout/steps/add-payout-transactions.js +24 -0
  741. package/.medusa/server/src/workflows/payout/steps/create-onboarding.d.ts +2 -0
  742. package/.medusa/server/src/workflows/payout/steps/create-onboarding.js +11 -0
  743. package/.medusa/server/src/workflows/payout/steps/create-payout-account.d.ts +2 -0
  744. package/.medusa/server/src/workflows/payout/steps/create-payout-account.js +11 -0
  745. package/.medusa/server/src/workflows/payout/steps/create-payout.d.ts +3 -0
  746. package/.medusa/server/src/workflows/payout/steps/create-payout.js +12 -0
  747. package/.medusa/server/src/workflows/payout/steps/index.d.ts +6 -0
  748. package/.medusa/server/src/workflows/payout/steps/index.js +23 -0
  749. package/.medusa/server/src/workflows/payout/steps/update-payout-account.d.ts +58 -0
  750. package/.medusa/server/src/workflows/payout/steps/update-payout-account.js +27 -0
  751. package/.medusa/server/src/workflows/payout/steps/update-payout.d.ts +58 -0
  752. package/.medusa/server/src/workflows/payout/steps/update-payout.js +27 -0
  753. package/.medusa/server/src/workflows/payout/workflows/create-onboarding.d.ts +2 -0
  754. package/.medusa/server/src/workflows/payout/workflows/create-onboarding.js +10 -0
  755. package/.medusa/server/src/workflows/payout/workflows/create-payout-account.d.ts +6 -0
  756. package/.medusa/server/src/workflows/payout/workflows/create-payout-account.js +25 -0
  757. package/.medusa/server/src/workflows/payout/workflows/create-payout.d.ts +3 -0
  758. package/.medusa/server/src/workflows/payout/workflows/create-payout.js +50 -0
  759. package/.medusa/server/src/workflows/payout/workflows/credit-order-to-payout-account.d.ts +9 -0
  760. package/.medusa/server/src/workflows/payout/workflows/credit-order-to-payout-account.js +45 -0
  761. package/.medusa/server/src/workflows/payout/workflows/index.d.ts +5 -0
  762. package/.medusa/server/src/workflows/payout/workflows/index.js +22 -0
  763. package/.medusa/server/src/workflows/payout/workflows/process-payout.d.ts +5 -0
  764. package/.medusa/server/src/workflows/payout/workflows/process-payout.js +67 -0
  765. package/.medusa/server/src/workflows/price-list/index.d.ts +2 -0
  766. package/.medusa/server/src/workflows/price-list/index.js +19 -0
  767. package/.medusa/server/src/workflows/price-list/steps/index.d.ts +1 -0
  768. package/.medusa/server/src/workflows/price-list/steps/index.js +18 -0
  769. package/.medusa/server/src/workflows/price-list/steps/link-seller-price-list.d.ts +6 -0
  770. package/.medusa/server/src/workflows/price-list/steps/link-seller-price-list.js +36 -0
  771. package/.medusa/server/src/workflows/price-list/workflows/create-seller-price-lists.d.ts +7 -0
  772. package/.medusa/server/src/workflows/price-list/workflows/create-seller-price-lists.js +20 -0
  773. package/.medusa/server/src/workflows/price-list/workflows/index.d.ts +1 -0
  774. package/.medusa/server/src/workflows/price-list/workflows/index.js +18 -0
  775. package/.medusa/server/src/workflows/promotion/index.d.ts +2 -0
  776. package/.medusa/server/src/workflows/promotion/index.js +19 -0
  777. package/.medusa/server/src/workflows/promotion/steps/index.d.ts +2 -0
  778. package/.medusa/server/src/workflows/promotion/steps/index.js +19 -0
  779. package/.medusa/server/src/workflows/promotion/steps/link-seller-promotion.d.ts +6 -0
  780. package/.medusa/server/src/workflows/promotion/steps/link-seller-promotion.js +36 -0
  781. package/.medusa/server/src/workflows/promotion/steps/register-usage.d.ts +11 -0
  782. package/.medusa/server/src/workflows/promotion/steps/register-usage.js +27 -0
  783. package/.medusa/server/src/workflows/promotion/workflows/create-seller-promotions.d.ts +7 -0
  784. package/.medusa/server/src/workflows/promotion/workflows/create-seller-promotions.js +20 -0
  785. package/.medusa/server/src/workflows/promotion/workflows/index.d.ts +1 -0
  786. package/.medusa/server/src/workflows/promotion/workflows/index.js +18 -0
  787. package/.medusa/server/src/workflows/seller/index.d.ts +2 -0
  788. package/.medusa/server/src/workflows/seller/index.js +19 -0
  789. package/.medusa/server/src/workflows/seller/steps/create-seller.d.ts +2 -0
  790. package/.medusa/server/src/workflows/seller/steps/create-seller.js +17 -0
  791. package/.medusa/server/src/workflows/seller/steps/index.d.ts +2 -0
  792. package/.medusa/server/src/workflows/seller/steps/index.js +19 -0
  793. package/.medusa/server/src/workflows/seller/steps/update-seller.d.ts +2 -0
  794. package/.medusa/server/src/workflows/seller/steps/update-seller.js +20 -0
  795. package/.medusa/server/src/workflows/seller/workflows/create-seller.d.ts +7 -0
  796. package/.medusa/server/src/workflows/seller/workflows/create-seller.js +16 -0
  797. package/.medusa/server/src/workflows/seller/workflows/index.d.ts +2 -0
  798. package/.medusa/server/src/workflows/seller/workflows/index.js +19 -0
  799. package/.medusa/server/src/workflows/seller/workflows/update-seller.d.ts +2 -0
  800. package/.medusa/server/src/workflows/seller/workflows/update-seller.js +9 -0
  801. package/.medusa/server/src/workflows/shipping-option/index.d.ts +2 -0
  802. package/.medusa/server/src/workflows/shipping-option/index.js +19 -0
  803. package/.medusa/server/src/workflows/shipping-option/steps/index.d.ts +1 -0
  804. package/.medusa/server/src/workflows/shipping-option/steps/index.js +18 -0
  805. package/.medusa/server/src/workflows/shipping-option/steps/link-seller-shipping-option.d.ts +6 -0
  806. package/.medusa/server/src/workflows/shipping-option/steps/link-seller-shipping-option.js +36 -0
  807. package/.medusa/server/src/workflows/shipping-option/workflows/create-seller-shipping-options.d.ts +7 -0
  808. package/.medusa/server/src/workflows/shipping-option/workflows/create-seller-shipping-options.js +18 -0
  809. package/.medusa/server/src/workflows/shipping-option/workflows/index.d.ts +1 -0
  810. package/.medusa/server/src/workflows/shipping-option/workflows/index.js +18 -0
  811. package/.medusa/server/src/workflows/shipping-profile/index.d.ts +2 -0
  812. package/.medusa/server/src/workflows/shipping-profile/index.js +19 -0
  813. package/.medusa/server/src/workflows/shipping-profile/steps/index.d.ts +1 -0
  814. package/.medusa/server/src/workflows/shipping-profile/steps/index.js +18 -0
  815. package/.medusa/server/src/workflows/shipping-profile/steps/link-seller-shipping-profile.d.ts +6 -0
  816. package/.medusa/server/src/workflows/shipping-profile/steps/link-seller-shipping-profile.js +36 -0
  817. package/.medusa/server/src/workflows/shipping-profile/workflows/create-seller-shipping-profiles.d.ts +7 -0
  818. package/.medusa/server/src/workflows/shipping-profile/workflows/create-seller-shipping-profiles.js +20 -0
  819. package/.medusa/server/src/workflows/shipping-profile/workflows/index.d.ts +1 -0
  820. package/.medusa/server/src/workflows/shipping-profile/workflows/index.js +18 -0
  821. package/.medusa/server/src/workflows/stock-location/index.d.ts +2 -0
  822. package/.medusa/server/src/workflows/stock-location/index.js +19 -0
  823. package/.medusa/server/src/workflows/stock-location/steps/index.d.ts +1 -0
  824. package/.medusa/server/src/workflows/stock-location/steps/index.js +18 -0
  825. package/.medusa/server/src/workflows/stock-location/steps/link-seller-stock-location.d.ts +6 -0
  826. package/.medusa/server/src/workflows/stock-location/steps/link-seller-stock-location.js +36 -0
  827. package/.medusa/server/src/workflows/stock-location/workflows/create-seller-stock-locations.d.ts +7 -0
  828. package/.medusa/server/src/workflows/stock-location/workflows/create-seller-stock-locations.js +20 -0
  829. package/.medusa/server/src/workflows/stock-location/workflows/index.d.ts +1 -0
  830. package/.medusa/server/src/workflows/stock-location/workflows/index.js +18 -0
  831. package/package.json +78 -0
@@ -0,0 +1,3 @@
1
+ import { AuthenticatedMedusaRequest, MedusaResponse } from "@medusajs/framework/http";
2
+ import { HttpTypes } from "@mercurjs/types";
3
+ export declare const GET: (req: AuthenticatedMedusaRequest, res: MedusaResponse<HttpTypes.VendorPricePreferenceListResponse>) => Promise<void>;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GET = void 0;
4
+ const utils_1 = require("@medusajs/framework/utils");
5
+ const GET = async (req, res) => {
6
+ const query = req.scope.resolve(utils_1.ContainerRegistrationKeys.QUERY);
7
+ const { data: price_preferences, metadata } = await query.graph({
8
+ entity: "price_preference",
9
+ fields: req.queryConfig.fields,
10
+ filters: req.filterableFields,
11
+ pagination: req.queryConfig.pagination,
12
+ });
13
+ res.json({
14
+ price_preferences,
15
+ count: metadata?.count ?? 0,
16
+ offset: metadata?.skip ?? 0,
17
+ limit: metadata?.take ?? 0,
18
+ });
19
+ };
20
+ exports.GET = GET;
21
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm91dGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBpL3ZlbmRvci9wcmljZS1wcmVmZXJlbmNlcy9yb3V0ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFJQSxxREFBcUU7QUFHOUQsTUFBTSxHQUFHLEdBQUcsS0FBSyxFQUN0QixHQUErQixFQUMvQixHQUFnRSxFQUNoRSxFQUFFO0lBQ0YsTUFBTSxLQUFLLEdBQUcsR0FBRyxDQUFDLEtBQUssQ0FBQyxPQUFPLENBQUMsaUNBQXlCLENBQUMsS0FBSyxDQUFDLENBQUE7SUFFaEUsTUFBTSxFQUFFLElBQUksRUFBRSxpQkFBaUIsRUFBRSxRQUFRLEVBQUUsR0FBRyxNQUFNLEtBQUssQ0FBQyxLQUFLLENBQUM7UUFDOUQsTUFBTSxFQUFFLGtCQUFrQjtRQUMxQixNQUFNLEVBQUUsR0FBRyxDQUFDLFdBQVcsQ0FBQyxNQUFNO1FBQzlCLE9BQU8sRUFBRSxHQUFHLENBQUMsZ0JBQWdCO1FBQzdCLFVBQVUsRUFBRSxHQUFHLENBQUMsV0FBVyxDQUFDLFVBQVU7S0FDdkMsQ0FBQyxDQUFBO0lBRUYsR0FBRyxDQUFDLElBQUksQ0FBQztRQUNQLGlCQUFpQjtRQUNqQixLQUFLLEVBQUUsUUFBUSxFQUFFLEtBQUssSUFBSSxDQUFDO1FBQzNCLE1BQU0sRUFBRSxRQUFRLEVBQUUsSUFBSSxJQUFJLENBQUM7UUFDM0IsS0FBSyxFQUFFLFFBQVEsRUFBRSxJQUFJLElBQUksQ0FBQztLQUMzQixDQUFDLENBQUE7QUFDSixDQUFDLENBQUE7QUFuQlksUUFBQSxHQUFHLE9BbUJmIn0=
@@ -0,0 +1,43 @@
1
+ import { z } from "zod";
2
+ export type VendorGetPricePreferenceParamsType = z.infer<typeof VendorGetPricePreferenceParams>;
3
+ export declare const VendorGetPricePreferenceParams: z.ZodObject<{
4
+ fields: z.ZodOptional<z.ZodString>;
5
+ }, "strip", z.ZodTypeAny, {
6
+ fields?: string | undefined;
7
+ }, {
8
+ fields?: string | undefined;
9
+ }>;
10
+ export type VendorGetPricePreferencesParamsType = z.infer<typeof VendorGetPricePreferencesParams>;
11
+ export declare const VendorGetPricePreferencesParams: z.ZodObject<{
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>;
16
+ order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
17
+ with_deleted: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
18
+ } & {
19
+ q: z.ZodOptional<z.ZodString>;
20
+ id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
21
+ attribute: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
22
+ value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
23
+ }, "strip", z.ZodTypeAny, {
24
+ offset: number;
25
+ limit: number;
26
+ id?: string | string[] | undefined;
27
+ value?: string | string[] | undefined;
28
+ q?: string | undefined;
29
+ fields?: string | undefined;
30
+ order?: string | undefined;
31
+ with_deleted?: boolean | undefined;
32
+ attribute?: string | string[] | undefined;
33
+ }, {
34
+ id?: string | string[] | undefined;
35
+ value?: string | string[] | undefined;
36
+ offset?: unknown;
37
+ limit?: unknown;
38
+ q?: string | undefined;
39
+ fields?: string | undefined;
40
+ order?: string | undefined;
41
+ with_deleted?: unknown;
42
+ attribute?: string | string[] | undefined;
43
+ }>;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VendorGetPricePreferencesParams = exports.VendorGetPricePreferenceParams = void 0;
4
+ const zod_1 = require("zod");
5
+ const validators_1 = require("@medusajs/medusa/api/utils/validators");
6
+ exports.VendorGetPricePreferenceParams = (0, validators_1.createSelectParams)();
7
+ exports.VendorGetPricePreferencesParams = (0, validators_1.createFindParams)({
8
+ offset: 0,
9
+ limit: 10,
10
+ }).merge(zod_1.z.object({
11
+ q: zod_1.z.string().optional(),
12
+ id: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
13
+ attribute: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
14
+ value: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
15
+ }));
16
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdG9ycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9hcGkvdmVuZG9yL3ByaWNlLXByZWZlcmVuY2VzL3ZhbGlkYXRvcnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsNkJBQXVCO0FBQ3ZCLHNFQUc4QztBQUtqQyxRQUFBLDhCQUE4QixHQUFHLElBQUEsK0JBQWtCLEdBQUUsQ0FBQTtBQUtyRCxRQUFBLCtCQUErQixHQUFHLElBQUEsNkJBQWdCLEVBQUM7SUFDOUQsTUFBTSxFQUFFLENBQUM7SUFDVCxLQUFLLEVBQUUsRUFBRTtDQUNWLENBQUMsQ0FBQyxLQUFLLENBQ04sT0FBQyxDQUFDLE1BQU0sQ0FBQztJQUNQLENBQUMsRUFBRSxPQUFDLENBQUMsTUFBTSxFQUFFLENBQUMsUUFBUSxFQUFFO0lBQ3hCLEVBQUUsRUFBRSxPQUFDLENBQUMsS0FBSyxDQUFDLENBQUMsT0FBQyxDQUFDLE1BQU0sRUFBRSxFQUFFLE9BQUMsQ0FBQyxLQUFLLENBQUMsT0FBQyxDQUFDLE1BQU0sRUFBRSxDQUFDLENBQUMsQ0FBQyxDQUFDLFFBQVEsRUFBRTtJQUN6RCxTQUFTLEVBQUUsT0FBQyxDQUFDLEtBQUssQ0FBQyxDQUFDLE9BQUMsQ0FBQyxNQUFNLEVBQUUsRUFBRSxPQUFDLENBQUMsS0FBSyxDQUFDLE9BQUMsQ0FBQyxNQUFNLEVBQUUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxRQUFRLEVBQUU7SUFDaEUsS0FBSyxFQUFFLE9BQUMsQ0FBQyxLQUFLLENBQUMsQ0FBQyxPQUFDLENBQUMsTUFBTSxFQUFFLEVBQUUsT0FBQyxDQUFDLEtBQUssQ0FBQyxPQUFDLENBQUMsTUFBTSxFQUFFLENBQUMsQ0FBQyxDQUFDLENBQUMsUUFBUSxFQUFFO0NBQzdELENBQUMsQ0FDSCxDQUFBIn0=
@@ -0,0 +1,3 @@
1
+ import { AdminProductCategoryResponse, HttpTypes } from "@medusajs/framework/types";
2
+ import { AuthenticatedMedusaRequest, MedusaResponse } from "@medusajs/framework/http";
3
+ export declare const POST: (req: AuthenticatedMedusaRequest<HttpTypes.AdminBatchLink, HttpTypes.AdminProductCategoryParams>, res: MedusaResponse<AdminProductCategoryResponse>) => Promise<void>;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.POST = void 0;
4
+ const core_flows_1 = require("@medusajs/core-flows");
5
+ const http_1 = require("@medusajs/framework/http");
6
+ const helpers_1 = require("../../helpers");
7
+ const POST = async (req, res) => {
8
+ const { id } = req.params;
9
+ const sellerId = req.auth_context.actor_id;
10
+ const productIdsToValidate = [
11
+ ...(req.validatedBody.add || []),
12
+ ...(req.validatedBody.remove || []),
13
+ ];
14
+ await (0, helpers_1.validateSellerProducts)(req.scope, sellerId, productIdsToValidate);
15
+ await (0, core_flows_1.batchLinkProductsToCategoryWorkflow)(req.scope).run({
16
+ input: { id, ...req.validatedBody },
17
+ });
18
+ const category = await (0, http_1.refetchEntity)({
19
+ entity: "product_category",
20
+ idOrFilter: id,
21
+ scope: req.scope,
22
+ fields: req.queryConfig.fields,
23
+ });
24
+ res.status(200).json({ product_category: category });
25
+ };
26
+ exports.POST = POST;
27
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm91dGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBpL3ZlbmRvci9wcm9kdWN0LWNhdGVnb3JpZXMvW2lkXS9wcm9kdWN0cy9yb3V0ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxxREFBMEU7QUFLMUUsbURBSWlDO0FBRWpDLDJDQUFzRDtBQUUvQyxNQUFNLElBQUksR0FBRyxLQUFLLEVBQ3ZCLEdBR0MsRUFDRCxHQUFpRCxFQUNqRCxFQUFFO0lBQ0YsTUFBTSxFQUFFLEVBQUUsRUFBRSxHQUFHLEdBQUcsQ0FBQyxNQUFNLENBQUE7SUFDekIsTUFBTSxRQUFRLEdBQUcsR0FBRyxDQUFDLFlBQVksQ0FBQyxRQUFRLENBQUE7SUFFMUMsTUFBTSxvQkFBb0IsR0FBRztRQUMzQixHQUFHLENBQUMsR0FBRyxDQUFDLGFBQWEsQ0FBQyxHQUFHLElBQUksRUFBRSxDQUFDO1FBQ2hDLEdBQUcsQ0FBQyxHQUFHLENBQUMsYUFBYSxDQUFDLE1BQU0sSUFBSSxFQUFFLENBQUM7S0FDcEMsQ0FBQTtJQUVELE1BQU0sSUFBQSxnQ0FBc0IsRUFBQyxHQUFHLENBQUMsS0FBSyxFQUFFLFFBQVEsRUFBRSxvQkFBb0IsQ0FBQyxDQUFBO0lBRXZFLE1BQU0sSUFBQSxnREFBbUMsRUFBQyxHQUFHLENBQUMsS0FBSyxDQUFDLENBQUMsR0FBRyxDQUFDO1FBQ3ZELEtBQUssRUFBRSxFQUFFLEVBQUUsRUFBRSxHQUFHLEdBQUcsQ0FBQyxhQUFhLEVBQUU7S0FDcEMsQ0FBQyxDQUFBO0lBRUYsTUFBTSxRQUFRLEdBQUcsTUFBTSxJQUFBLG9CQUFhLEVBQUM7UUFDbkMsTUFBTSxFQUFFLGtCQUFrQjtRQUMxQixVQUFVLEVBQUUsRUFBRTtRQUNkLEtBQUssRUFBRSxHQUFHLENBQUMsS0FBSztRQUNoQixNQUFNLEVBQUUsR0FBRyxDQUFDLFdBQVcsQ0FBQyxNQUFNO0tBQy9CLENBQUMsQ0FBQTtJQUVGLEdBQUcsQ0FBQyxNQUFNLENBQUMsR0FBRyxDQUFDLENBQUMsSUFBSSxDQUFDLEVBQUUsZ0JBQWdCLEVBQUUsUUFBUSxFQUFFLENBQUMsQ0FBQTtBQUN0RCxDQUFDLENBQUE7QUE3QlksUUFBQSxJQUFJLFFBNkJoQiJ9
@@ -0,0 +1,3 @@
1
+ import { AuthenticatedMedusaRequest, MedusaResponse } from "@medusajs/framework/http";
2
+ import { HttpTypes } from "@mercurjs/types";
3
+ export declare const GET: (req: AuthenticatedMedusaRequest, res: MedusaResponse<HttpTypes.VendorProductCategoryResponse>) => Promise<void>;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GET = void 0;
4
+ const utils_1 = require("@medusajs/framework/utils");
5
+ const GET = async (req, res) => {
6
+ const query = req.scope.resolve(utils_1.ContainerRegistrationKeys.QUERY);
7
+ const { data: [product_category], } = await query.graph({
8
+ entity: "product_category",
9
+ fields: req.queryConfig.fields,
10
+ filters: {
11
+ id: req.params.id,
12
+ },
13
+ });
14
+ if (!product_category) {
15
+ throw new utils_1.MedusaError(utils_1.MedusaError.Types.NOT_FOUND, `Product category with id ${req.params.id} was not found`);
16
+ }
17
+ res.json({ product_category });
18
+ };
19
+ exports.GET = GET;
20
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm91dGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBpL3ZlbmRvci9wcm9kdWN0LWNhdGVnb3JpZXMvW2lkXS9yb3V0ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFJQSxxREFHa0M7QUFHM0IsTUFBTSxHQUFHLEdBQUcsS0FBSyxFQUN0QixHQUErQixFQUMvQixHQUE0RCxFQUM1RCxFQUFFO0lBQ0YsTUFBTSxLQUFLLEdBQUcsR0FBRyxDQUFDLEtBQUssQ0FBQyxPQUFPLENBQUMsaUNBQXlCLENBQUMsS0FBSyxDQUFDLENBQUE7SUFFaEUsTUFBTSxFQUNKLElBQUksRUFBRSxDQUFDLGdCQUFnQixDQUFDLEdBQ3pCLEdBQUcsTUFBTSxLQUFLLENBQUMsS0FBSyxDQUFDO1FBQ3BCLE1BQU0sRUFBRSxrQkFBa0I7UUFDMUIsTUFBTSxFQUFFLEdBQUcsQ0FBQyxXQUFXLENBQUMsTUFBTTtRQUM5QixPQUFPLEVBQUU7WUFDUCxFQUFFLEVBQUUsR0FBRyxDQUFDLE1BQU0sQ0FBQyxFQUFFO1NBQ2xCO0tBQ0YsQ0FBQyxDQUFBO0lBRUYsSUFBSSxDQUFDLGdCQUFnQixFQUFFLENBQUM7UUFDdEIsTUFBTSxJQUFJLG1CQUFXLENBQ25CLG1CQUFXLENBQUMsS0FBSyxDQUFDLFNBQVMsRUFDM0IsNEJBQTRCLEdBQUcsQ0FBQyxNQUFNLENBQUMsRUFBRSxnQkFBZ0IsQ0FDMUQsQ0FBQTtJQUNILENBQUM7SUFFRCxHQUFHLENBQUMsSUFBSSxDQUFDLEVBQUUsZ0JBQWdCLEVBQUUsQ0FBQyxDQUFBO0FBQ2hDLENBQUMsQ0FBQTtBQXhCWSxRQUFBLEdBQUcsT0F3QmYifQ==
@@ -0,0 +1,2 @@
1
+ import { MedusaContainer } from "@medusajs/framework";
2
+ export declare const validateSellerProducts: (scope: MedusaContainer, sellerId: string, productIds: string[]) => Promise<void>;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.validateSellerProducts = void 0;
4
+ const utils_1 = require("@medusajs/framework/utils");
5
+ const validateSellerProducts = async (scope, sellerId, productIds) => {
6
+ if (!productIds.length) {
7
+ return;
8
+ }
9
+ const query = scope.resolve(utils_1.ContainerRegistrationKeys.QUERY);
10
+ const { data: sellerProducts } = await query.graph({
11
+ entity: "product_seller",
12
+ filters: {
13
+ seller_id: sellerId,
14
+ },
15
+ fields: ["product_id"],
16
+ });
17
+ const sellerProductIds = new Set(sellerProducts.map((p) => p.product_id));
18
+ const invalidProductIds = productIds.filter((id) => !sellerProductIds.has(id));
19
+ if (invalidProductIds.length) {
20
+ throw new utils_1.MedusaError(utils_1.MedusaError.Types.NOT_FOUND, `Products with ids: ${invalidProductIds.join(", ")} were not found`);
21
+ }
22
+ };
23
+ exports.validateSellerProducts = validateSellerProducts;
24
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVscGVycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9hcGkvdmVuZG9yL3Byb2R1Y3QtY2F0ZWdvcmllcy9oZWxwZXJzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUNBLHFEQUdrQztBQUUzQixNQUFNLHNCQUFzQixHQUFHLEtBQUssRUFDekMsS0FBc0IsRUFDdEIsUUFBZ0IsRUFDaEIsVUFBb0IsRUFDcEIsRUFBRTtJQUNGLElBQUksQ0FBQyxVQUFVLENBQUMsTUFBTSxFQUFFLENBQUM7UUFDdkIsT0FBTTtJQUNSLENBQUM7SUFFRCxNQUFNLEtBQUssR0FBRyxLQUFLLENBQUMsT0FBTyxDQUFDLGlDQUF5QixDQUFDLEtBQUssQ0FBQyxDQUFBO0lBRTVELE1BQU0sRUFBRSxJQUFJLEVBQUUsY0FBYyxFQUFFLEdBQUcsTUFBTSxLQUFLLENBQUMsS0FBSyxDQUFDO1FBQ2pELE1BQU0sRUFBRSxnQkFBZ0I7UUFDeEIsT0FBTyxFQUFFO1lBQ1AsU0FBUyxFQUFFLFFBQVE7U0FDcEI7UUFDRCxNQUFNLEVBQUUsQ0FBQyxZQUFZLENBQUM7S0FDdkIsQ0FBQyxDQUFBO0lBRUYsTUFBTSxnQkFBZ0IsR0FBRyxJQUFJLEdBQUcsQ0FBQyxjQUFjLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxFQUFFLEVBQUUsQ0FBQyxDQUFDLENBQUMsVUFBVSxDQUFDLENBQUMsQ0FBQTtJQUV6RSxNQUFNLGlCQUFpQixHQUFHLFVBQVUsQ0FBQyxNQUFNLENBQUMsQ0FBQyxFQUFFLEVBQUUsRUFBRSxDQUFDLENBQUMsZ0JBQWdCLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUE7SUFFOUUsSUFBSSxpQkFBaUIsQ0FBQyxNQUFNLEVBQUUsQ0FBQztRQUM3QixNQUFNLElBQUksbUJBQVcsQ0FDbkIsbUJBQVcsQ0FBQyxLQUFLLENBQUMsU0FBUyxFQUMzQixzQkFBc0IsaUJBQWlCLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxpQkFBaUIsQ0FDcEUsQ0FBQTtJQUNILENBQUM7QUFDSCxDQUFDLENBQUE7QUE3QlksUUFBQSxzQkFBc0IsMEJBNkJsQyJ9
@@ -0,0 +1,2 @@
1
+ import { MiddlewareRoute } from "@medusajs/framework/http";
2
+ export declare const vendorProductCategoriesMiddlewares: MiddlewareRoute[];
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.vendorProductCategoriesMiddlewares = void 0;
37
+ const framework_1 = require("@medusajs/framework");
38
+ const validators_1 = require("@medusajs/medusa/api/utils/validators");
39
+ const QueryConfig = __importStar(require("./query-config"));
40
+ const validators_2 = require("./validators");
41
+ exports.vendorProductCategoriesMiddlewares = [
42
+ {
43
+ method: ["GET"],
44
+ matcher: "/vendor/product-categories",
45
+ middlewares: [
46
+ (0, framework_1.validateAndTransformQuery)(validators_2.VendorGetProductCategoriesParams, QueryConfig.listTransformQueryConfig),
47
+ ],
48
+ },
49
+ {
50
+ method: ["GET"],
51
+ matcher: "/vendor/product-categories/:id",
52
+ middlewares: [
53
+ (0, framework_1.validateAndTransformQuery)(validators_2.VendorGetProductCategoryParams, QueryConfig.retrieveTransformQueryConfig),
54
+ ],
55
+ },
56
+ {
57
+ method: ["POST"],
58
+ matcher: "/vendor/product-categories/:id/products",
59
+ middlewares: [
60
+ (0, framework_1.validateAndTransformBody)((0, validators_1.createLinkBody)()),
61
+ (0, framework_1.validateAndTransformQuery)(validators_2.VendorGetProductCategoryParams, QueryConfig.retrieveTransformQueryConfig),
62
+ ],
63
+ },
64
+ ];
65
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWlkZGxld2FyZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBpL3ZlbmRvci9wcm9kdWN0LWNhdGVnb3JpZXMvbWlkZGxld2FyZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQ0EsbURBRzRCO0FBQzVCLHNFQUFzRTtBQUV0RSw0REFBNkM7QUFDN0MsNkNBR3FCO0FBRVIsUUFBQSxrQ0FBa0MsR0FBc0I7SUFDbkU7UUFDRSxNQUFNLEVBQUUsQ0FBQyxLQUFLLENBQUM7UUFDZixPQUFPLEVBQUUsNEJBQTRCO1FBQ3JDLFdBQVcsRUFBRTtZQUNYLElBQUEscUNBQXlCLEVBQ3ZCLDZDQUFnQyxFQUNoQyxXQUFXLENBQUMsd0JBQXdCLENBQ3JDO1NBQ0Y7S0FDRjtJQUNEO1FBQ0UsTUFBTSxFQUFFLENBQUMsS0FBSyxDQUFDO1FBQ2YsT0FBTyxFQUFFLGdDQUFnQztRQUN6QyxXQUFXLEVBQUU7WUFDWCxJQUFBLHFDQUF5QixFQUN2QiwyQ0FBOEIsRUFDOUIsV0FBVyxDQUFDLDRCQUE0QixDQUN6QztTQUNGO0tBQ0Y7SUFDRDtRQUNFLE1BQU0sRUFBRSxDQUFDLE1BQU0sQ0FBQztRQUNoQixPQUFPLEVBQUUseUNBQXlDO1FBQ2xELFdBQVcsRUFBRTtZQUNYLElBQUEsb0NBQXdCLEVBQUMsSUFBQSwyQkFBYyxHQUFFLENBQUM7WUFDMUMsSUFBQSxxQ0FBeUIsRUFDdkIsMkNBQThCLEVBQzlCLFdBQVcsQ0FBQyw0QkFBNEIsQ0FDekM7U0FDRjtLQUNGO0NBQ0YsQ0FBQSJ9
@@ -0,0 +1,9 @@
1
+ export declare const defaultVendorProductCategoryFields: string[];
2
+ export declare const retrieveTransformQueryConfig: {
3
+ defaults: string[];
4
+ isList: boolean;
5
+ };
6
+ export declare const listTransformQueryConfig: {
7
+ isList: boolean;
8
+ defaults: string[];
9
+ };
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.listTransformQueryConfig = exports.retrieveTransformQueryConfig = exports.defaultVendorProductCategoryFields = void 0;
4
+ exports.defaultVendorProductCategoryFields = [
5
+ "id",
6
+ "name",
7
+ "description",
8
+ "handle",
9
+ "rank",
10
+ "parent_category_id",
11
+ "is_active",
12
+ "is_internal",
13
+ "created_at",
14
+ "updated_at",
15
+ "metadata",
16
+ "*parent_category",
17
+ "*category_children",
18
+ ];
19
+ exports.retrieveTransformQueryConfig = {
20
+ defaults: exports.defaultVendorProductCategoryFields,
21
+ isList: false,
22
+ };
23
+ exports.listTransformQueryConfig = {
24
+ ...exports.retrieveTransformQueryConfig,
25
+ isList: true,
26
+ };
27
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVlcnktY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2FwaS92ZW5kb3IvcHJvZHVjdC1jYXRlZ29yaWVzL3F1ZXJ5LWNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBYSxRQUFBLGtDQUFrQyxHQUFHO0lBQ2hELElBQUk7SUFDSixNQUFNO0lBQ04sYUFBYTtJQUNiLFFBQVE7SUFDUixNQUFNO0lBQ04sb0JBQW9CO0lBQ3BCLFdBQVc7SUFDWCxhQUFhO0lBQ2IsWUFBWTtJQUNaLFlBQVk7SUFDWixVQUFVO0lBQ1Ysa0JBQWtCO0lBQ2xCLG9CQUFvQjtDQUNyQixDQUFBO0FBRVksUUFBQSw0QkFBNEIsR0FBRztJQUMxQyxRQUFRLEVBQUUsMENBQWtDO0lBQzVDLE1BQU0sRUFBRSxLQUFLO0NBQ2QsQ0FBQTtBQUVZLFFBQUEsd0JBQXdCLEdBQUc7SUFDdEMsR0FBRyxvQ0FBNEI7SUFDL0IsTUFBTSxFQUFFLElBQUk7Q0FDYixDQUFBIn0=
@@ -0,0 +1,3 @@
1
+ import { AuthenticatedMedusaRequest, MedusaResponse } from "@medusajs/framework/http";
2
+ import { HttpTypes } from "@mercurjs/types";
3
+ export declare const GET: (req: AuthenticatedMedusaRequest, res: MedusaResponse<HttpTypes.VendorProductCategoryListResponse>) => Promise<void>;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GET = void 0;
4
+ const utils_1 = require("@medusajs/framework/utils");
5
+ const GET = async (req, res) => {
6
+ const query = req.scope.resolve(utils_1.ContainerRegistrationKeys.QUERY);
7
+ const { data: product_categories, metadata } = await query.graph({
8
+ entity: "product_category",
9
+ fields: req.queryConfig.fields,
10
+ filters: req.filterableFields,
11
+ pagination: req.queryConfig.pagination,
12
+ });
13
+ res.json({
14
+ product_categories,
15
+ count: metadata?.count ?? 0,
16
+ offset: metadata?.skip ?? 0,
17
+ limit: metadata?.take ?? 0,
18
+ });
19
+ };
20
+ exports.GET = GET;
21
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm91dGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBpL3ZlbmRvci9wcm9kdWN0LWNhdGVnb3JpZXMvcm91dGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBSUEscURBQXFFO0FBRzlELE1BQU0sR0FBRyxHQUFHLEtBQUssRUFDdEIsR0FBK0IsRUFDL0IsR0FBZ0UsRUFDaEUsRUFBRTtJQUNGLE1BQU0sS0FBSyxHQUFHLEdBQUcsQ0FBQyxLQUFLLENBQUMsT0FBTyxDQUFDLGlDQUF5QixDQUFDLEtBQUssQ0FBQyxDQUFBO0lBRWhFLE1BQU0sRUFBRSxJQUFJLEVBQUUsa0JBQWtCLEVBQUUsUUFBUSxFQUFFLEdBQUcsTUFBTSxLQUFLLENBQUMsS0FBSyxDQUFDO1FBQy9ELE1BQU0sRUFBRSxrQkFBa0I7UUFDMUIsTUFBTSxFQUFFLEdBQUcsQ0FBQyxXQUFXLENBQUMsTUFBTTtRQUM5QixPQUFPLEVBQUUsR0FBRyxDQUFDLGdCQUFnQjtRQUM3QixVQUFVLEVBQUUsR0FBRyxDQUFDLFdBQVcsQ0FBQyxVQUFVO0tBQ3ZDLENBQUMsQ0FBQTtJQUVGLEdBQUcsQ0FBQyxJQUFJLENBQUM7UUFDUCxrQkFBa0I7UUFDbEIsS0FBSyxFQUFFLFFBQVEsRUFBRSxLQUFLLElBQUksQ0FBQztRQUMzQixNQUFNLEVBQUUsUUFBUSxFQUFFLElBQUksSUFBSSxDQUFDO1FBQzNCLEtBQUssRUFBRSxRQUFRLEVBQUUsSUFBSSxJQUFJLENBQUM7S0FDM0IsQ0FBQyxDQUFBO0FBQ0osQ0FBQyxDQUFBO0FBbkJZLFFBQUEsR0FBRyxPQW1CZiJ9
@@ -0,0 +1,58 @@
1
+ import { z } from "zod";
2
+ export type VendorGetProductCategoryParamsType = z.infer<typeof VendorGetProductCategoryParams>;
3
+ export declare const VendorGetProductCategoryParams: z.ZodObject<{
4
+ fields: z.ZodOptional<z.ZodString>;
5
+ }, "strip", z.ZodTypeAny, {
6
+ fields?: string | undefined;
7
+ }, {
8
+ fields?: string | undefined;
9
+ }>;
10
+ export type VendorGetProductCategoriesParamsType = z.infer<typeof VendorGetProductCategoriesParams>;
11
+ export declare const VendorGetProductCategoriesParams: z.ZodObject<{
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>;
16
+ order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
17
+ with_deleted: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
18
+ } & {
19
+ q: z.ZodOptional<z.ZodString>;
20
+ id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
21
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
22
+ handle: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
23
+ parent_category_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
24
+ include_ancestors_tree: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
25
+ include_descendants_tree: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
26
+ is_active: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
27
+ is_internal: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
28
+ }, "strip", z.ZodTypeAny, {
29
+ offset: number;
30
+ limit: number;
31
+ id?: string | string[] | undefined;
32
+ q?: string | undefined;
33
+ fields?: string | undefined;
34
+ order?: string | undefined;
35
+ with_deleted?: boolean | undefined;
36
+ name?: string | string[] | undefined;
37
+ handle?: string | string[] | undefined;
38
+ parent_category_id?: string | string[] | undefined;
39
+ is_active?: boolean | undefined;
40
+ is_internal?: boolean | undefined;
41
+ include_ancestors_tree?: boolean | undefined;
42
+ include_descendants_tree?: boolean | undefined;
43
+ }, {
44
+ id?: string | string[] | undefined;
45
+ offset?: unknown;
46
+ limit?: unknown;
47
+ q?: string | undefined;
48
+ fields?: string | undefined;
49
+ order?: string | undefined;
50
+ with_deleted?: unknown;
51
+ name?: string | string[] | undefined;
52
+ handle?: string | string[] | undefined;
53
+ parent_category_id?: string | string[] | undefined;
54
+ is_active?: string | boolean | undefined;
55
+ is_internal?: string | boolean | undefined;
56
+ include_ancestors_tree?: string | boolean | undefined;
57
+ include_descendants_tree?: string | boolean | undefined;
58
+ }>;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VendorGetProductCategoriesParams = exports.VendorGetProductCategoryParams = void 0;
4
+ const zod_1 = require("zod");
5
+ const validators_1 = require("@medusajs/medusa/api/utils/validators");
6
+ const common_1 = require("@medusajs/medusa/api/utils/common-validators/common");
7
+ exports.VendorGetProductCategoryParams = (0, validators_1.createSelectParams)();
8
+ exports.VendorGetProductCategoriesParams = (0, validators_1.createFindParams)({
9
+ offset: 0,
10
+ limit: 50,
11
+ }).merge(zod_1.z.object({
12
+ q: zod_1.z.string().optional(),
13
+ id: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
14
+ name: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
15
+ handle: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
16
+ parent_category_id: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
17
+ include_ancestors_tree: (0, common_1.booleanString)().optional(),
18
+ include_descendants_tree: (0, common_1.booleanString)().optional(),
19
+ is_active: (0, common_1.booleanString)().optional(),
20
+ is_internal: (0, common_1.booleanString)().optional(),
21
+ }));
22
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdG9ycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9hcGkvdmVuZG9yL3Byb2R1Y3QtY2F0ZWdvcmllcy92YWxpZGF0b3JzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLDZCQUF1QjtBQUN2QixzRUFHOEM7QUFDOUMsZ0ZBQW1GO0FBS3RFLFFBQUEsOEJBQThCLEdBQUcsSUFBQSwrQkFBa0IsR0FBRSxDQUFBO0FBS3JELFFBQUEsZ0NBQWdDLEdBQUcsSUFBQSw2QkFBZ0IsRUFBQztJQUMvRCxNQUFNLEVBQUUsQ0FBQztJQUNULEtBQUssRUFBRSxFQUFFO0NBQ1YsQ0FBQyxDQUFDLEtBQUssQ0FDTixPQUFDLENBQUMsTUFBTSxDQUFDO0lBQ1AsQ0FBQyxFQUFFLE9BQUMsQ0FBQyxNQUFNLEVBQUUsQ0FBQyxRQUFRLEVBQUU7SUFDeEIsRUFBRSxFQUFFLE9BQUMsQ0FBQyxLQUFLLENBQUMsQ0FBQyxPQUFDLENBQUMsTUFBTSxFQUFFLEVBQUUsT0FBQyxDQUFDLEtBQUssQ0FBQyxPQUFDLENBQUMsTUFBTSxFQUFFLENBQUMsQ0FBQyxDQUFDLENBQUMsUUFBUSxFQUFFO0lBQ3pELElBQUksRUFBRSxPQUFDLENBQUMsS0FBSyxDQUFDLENBQUMsT0FBQyxDQUFDLE1BQU0sRUFBRSxFQUFFLE9BQUMsQ0FBQyxLQUFLLENBQUMsT0FBQyxDQUFDLE1BQU0sRUFBRSxDQUFDLENBQUMsQ0FBQyxDQUFDLFFBQVEsRUFBRTtJQUMzRCxNQUFNLEVBQUUsT0FBQyxDQUFDLEtBQUssQ0FBQyxDQUFDLE9BQUMsQ0FBQyxNQUFNLEVBQUUsRUFBRSxPQUFDLENBQUMsS0FBSyxDQUFDLE9BQUMsQ0FBQyxNQUFNLEVBQUUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxRQUFRLEVBQUU7SUFDN0Qsa0JBQWtCLEVBQUUsT0FBQyxDQUFDLEtBQUssQ0FBQyxDQUFDLE9BQUMsQ0FBQyxNQUFNLEVBQUUsRUFBRSxPQUFDLENBQUMsS0FBSyxDQUFDLE9BQUMsQ0FBQyxNQUFNLEVBQUUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxRQUFRLEVBQUU7SUFDekUsc0JBQXNCLEVBQUUsSUFBQSxzQkFBYSxHQUFFLENBQUMsUUFBUSxFQUFFO0lBQ2xELHdCQUF3QixFQUFFLElBQUEsc0JBQWEsR0FBRSxDQUFDLFFBQVEsRUFBRTtJQUNwRCxTQUFTLEVBQUUsSUFBQSxzQkFBYSxHQUFFLENBQUMsUUFBUSxFQUFFO0lBQ3JDLFdBQVcsRUFBRSxJQUFBLHNCQUFhLEdBQUUsQ0FBQyxRQUFRLEVBQUU7Q0FDeEMsQ0FBQyxDQUNILENBQUEifQ==
@@ -0,0 +1,3 @@
1
+ import { AuthenticatedMedusaRequest, MedusaResponse } from "@medusajs/framework/http";
2
+ import { HttpTypes } from "@mercurjs/types";
3
+ export declare const GET: (req: AuthenticatedMedusaRequest, res: MedusaResponse<HttpTypes.VendorProductTagResponse>) => Promise<void>;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GET = void 0;
4
+ const utils_1 = require("@medusajs/framework/utils");
5
+ const GET = async (req, res) => {
6
+ const query = req.scope.resolve(utils_1.ContainerRegistrationKeys.QUERY);
7
+ const { data: [product_tag], } = await query.graph({
8
+ entity: "product_tag",
9
+ fields: req.queryConfig.fields,
10
+ filters: {
11
+ id: req.params.id,
12
+ },
13
+ });
14
+ if (!product_tag) {
15
+ throw new utils_1.MedusaError(utils_1.MedusaError.Types.NOT_FOUND, `Product tag with id ${req.params.id} was not found`);
16
+ }
17
+ res.json({ product_tag });
18
+ };
19
+ exports.GET = GET;
20
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm91dGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBpL3ZlbmRvci9wcm9kdWN0LXRhZ3MvW2lkXS9yb3V0ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFJQSxxREFHa0M7QUFHM0IsTUFBTSxHQUFHLEdBQUcsS0FBSyxFQUN0QixHQUErQixFQUMvQixHQUF1RCxFQUN2RCxFQUFFO0lBQ0YsTUFBTSxLQUFLLEdBQUcsR0FBRyxDQUFDLEtBQUssQ0FBQyxPQUFPLENBQUMsaUNBQXlCLENBQUMsS0FBSyxDQUFDLENBQUE7SUFFaEUsTUFBTSxFQUNKLElBQUksRUFBRSxDQUFDLFdBQVcsQ0FBQyxHQUNwQixHQUFHLE1BQU0sS0FBSyxDQUFDLEtBQUssQ0FBQztRQUNwQixNQUFNLEVBQUUsYUFBYTtRQUNyQixNQUFNLEVBQUUsR0FBRyxDQUFDLFdBQVcsQ0FBQyxNQUFNO1FBQzlCLE9BQU8sRUFBRTtZQUNQLEVBQUUsRUFBRSxHQUFHLENBQUMsTUFBTSxDQUFDLEVBQUU7U0FDbEI7S0FDRixDQUFDLENBQUE7SUFFRixJQUFJLENBQUMsV0FBVyxFQUFFLENBQUM7UUFDakIsTUFBTSxJQUFJLG1CQUFXLENBQ25CLG1CQUFXLENBQUMsS0FBSyxDQUFDLFNBQVMsRUFDM0IsdUJBQXVCLEdBQUcsQ0FBQyxNQUFNLENBQUMsRUFBRSxnQkFBZ0IsQ0FDckQsQ0FBQTtJQUNILENBQUM7SUFFRCxHQUFHLENBQUMsSUFBSSxDQUFDLEVBQUUsV0FBVyxFQUFFLENBQUMsQ0FBQTtBQUMzQixDQUFDLENBQUE7QUF4QlksUUFBQSxHQUFHLE9Bd0JmIn0=
@@ -0,0 +1,2 @@
1
+ import { MiddlewareRoute } from "@medusajs/framework/http";
2
+ export declare const vendorProductTagsMiddlewares: MiddlewareRoute[];
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.vendorProductTagsMiddlewares = void 0;
4
+ const framework_1 = require("@medusajs/framework");
5
+ const query_config_1 = require("./query-config");
6
+ const validators_1 = require("./validators");
7
+ exports.vendorProductTagsMiddlewares = [
8
+ {
9
+ method: ["GET"],
10
+ matcher: "/vendor/product-tags",
11
+ middlewares: [
12
+ (0, framework_1.validateAndTransformQuery)(validators_1.VendorGetProductTagsParams, query_config_1.vendorProductTagsQueryConfig.list),
13
+ ],
14
+ },
15
+ {
16
+ method: ["GET"],
17
+ matcher: "/vendor/product-tags/:id",
18
+ middlewares: [
19
+ (0, framework_1.validateAndTransformQuery)(validators_1.VendorGetProductTagParams, query_config_1.vendorProductTagsQueryConfig.retrieve),
20
+ ],
21
+ },
22
+ ];
23
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWlkZGxld2FyZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBpL3ZlbmRvci9wcm9kdWN0LXRhZ3MvbWlkZGxld2FyZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQ0EsbURBQStEO0FBRS9ELGlEQUE2RDtBQUM3RCw2Q0FHcUI7QUFFUixRQUFBLDRCQUE0QixHQUFzQjtJQUM3RDtRQUNFLE1BQU0sRUFBRSxDQUFDLEtBQUssQ0FBQztRQUNmLE9BQU8sRUFBRSxzQkFBc0I7UUFDL0IsV0FBVyxFQUFFO1lBQ1gsSUFBQSxxQ0FBeUIsRUFDdkIsdUNBQTBCLEVBQzFCLDJDQUE0QixDQUFDLElBQUksQ0FDbEM7U0FDRjtLQUNGO0lBQ0Q7UUFDRSxNQUFNLEVBQUUsQ0FBQyxLQUFLLENBQUM7UUFDZixPQUFPLEVBQUUsMEJBQTBCO1FBQ25DLFdBQVcsRUFBRTtZQUNYLElBQUEscUNBQXlCLEVBQ3ZCLHNDQUF5QixFQUN6QiwyQ0FBNEIsQ0FBQyxRQUFRLENBQ3RDO1NBQ0Y7S0FDRjtDQUNGLENBQUEifQ==
@@ -0,0 +1,11 @@
1
+ export declare const vendorProductTagFields: string[];
2
+ export declare const vendorProductTagsQueryConfig: {
3
+ list: {
4
+ defaults: string[];
5
+ isList: boolean;
6
+ };
7
+ retrieve: {
8
+ defaults: string[];
9
+ isList: boolean;
10
+ };
11
+ };
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.vendorProductTagsQueryConfig = exports.vendorProductTagFields = void 0;
4
+ exports.vendorProductTagFields = [
5
+ "id",
6
+ "value",
7
+ "metadata",
8
+ "created_at",
9
+ "updated_at",
10
+ ];
11
+ exports.vendorProductTagsQueryConfig = {
12
+ list: {
13
+ defaults: exports.vendorProductTagFields,
14
+ isList: true,
15
+ },
16
+ retrieve: {
17
+ defaults: exports.vendorProductTagFields,
18
+ isList: false,
19
+ },
20
+ };
21
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVlcnktY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2FwaS92ZW5kb3IvcHJvZHVjdC10YWdzL3F1ZXJ5LWNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBYSxRQUFBLHNCQUFzQixHQUFHO0lBQ3BDLElBQUk7SUFDSixPQUFPO0lBQ1AsVUFBVTtJQUNWLFlBQVk7SUFDWixZQUFZO0NBQ2IsQ0FBQTtBQUVZLFFBQUEsNEJBQTRCLEdBQUc7SUFDMUMsSUFBSSxFQUFFO1FBQ0osUUFBUSxFQUFFLDhCQUFzQjtRQUNoQyxNQUFNLEVBQUUsSUFBSTtLQUNiO0lBQ0QsUUFBUSxFQUFFO1FBQ1IsUUFBUSxFQUFFLDhCQUFzQjtRQUNoQyxNQUFNLEVBQUUsS0FBSztLQUNkO0NBQ0YsQ0FBQSJ9
@@ -0,0 +1,3 @@
1
+ import { AuthenticatedMedusaRequest, MedusaResponse } from "@medusajs/framework/http";
2
+ import { HttpTypes } from "@mercurjs/types";
3
+ export declare const GET: (req: AuthenticatedMedusaRequest, res: MedusaResponse<HttpTypes.VendorProductTagListResponse>) => Promise<void>;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GET = void 0;
4
+ const utils_1 = require("@medusajs/framework/utils");
5
+ const GET = async (req, res) => {
6
+ const query = req.scope.resolve(utils_1.ContainerRegistrationKeys.QUERY);
7
+ const { data: product_tags, metadata } = await query.graph({
8
+ entity: "product_tag",
9
+ fields: req.queryConfig.fields,
10
+ filters: req.filterableFields,
11
+ pagination: req.queryConfig.pagination,
12
+ });
13
+ res.json({
14
+ product_tags,
15
+ count: metadata?.count ?? 0,
16
+ offset: metadata?.skip ?? 0,
17
+ limit: metadata?.take ?? 0,
18
+ });
19
+ };
20
+ exports.GET = GET;
21
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm91dGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBpL3ZlbmRvci9wcm9kdWN0LXRhZ3Mvcm91dGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBSUEscURBQXFFO0FBRzlELE1BQU0sR0FBRyxHQUFHLEtBQUssRUFDdEIsR0FBK0IsRUFDL0IsR0FBMkQsRUFDM0QsRUFBRTtJQUNGLE1BQU0sS0FBSyxHQUFHLEdBQUcsQ0FBQyxLQUFLLENBQUMsT0FBTyxDQUFDLGlDQUF5QixDQUFDLEtBQUssQ0FBQyxDQUFBO0lBRWhFLE1BQU0sRUFBRSxJQUFJLEVBQUUsWUFBWSxFQUFFLFFBQVEsRUFBRSxHQUFHLE1BQU0sS0FBSyxDQUFDLEtBQUssQ0FBQztRQUN6RCxNQUFNLEVBQUUsYUFBYTtRQUNyQixNQUFNLEVBQUUsR0FBRyxDQUFDLFdBQVcsQ0FBQyxNQUFNO1FBQzlCLE9BQU8sRUFBRSxHQUFHLENBQUMsZ0JBQWdCO1FBQzdCLFVBQVUsRUFBRSxHQUFHLENBQUMsV0FBVyxDQUFDLFVBQVU7S0FDdkMsQ0FBQyxDQUFBO0lBRUYsR0FBRyxDQUFDLElBQUksQ0FBQztRQUNQLFlBQVk7UUFDWixLQUFLLEVBQUUsUUFBUSxFQUFFLEtBQUssSUFBSSxDQUFDO1FBQzNCLE1BQU0sRUFBRSxRQUFRLEVBQUUsSUFBSSxJQUFJLENBQUM7UUFDM0IsS0FBSyxFQUFFLFFBQVEsRUFBRSxJQUFJLElBQUksQ0FBQztLQUMzQixDQUFDLENBQUE7QUFDSixDQUFDLENBQUE7QUFuQlksUUFBQSxHQUFHLE9BbUJmIn0=
@@ -0,0 +1,60 @@
1
+ import { z } from "zod";
2
+ export type VendorGetProductTagParamsType = z.infer<typeof VendorGetProductTagParams>;
3
+ export declare const VendorGetProductTagParams: z.ZodObject<{
4
+ fields: z.ZodOptional<z.ZodString>;
5
+ }, "strip", z.ZodTypeAny, {
6
+ fields?: string | undefined;
7
+ }, {
8
+ fields?: string | undefined;
9
+ }>;
10
+ export declare const VendorGetProductTagsParamsFields: z.ZodObject<{
11
+ q: z.ZodOptional<z.ZodString>;
12
+ id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
13
+ value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ id?: string | string[] | undefined;
16
+ value?: string | string[] | undefined;
17
+ q?: string | undefined;
18
+ }, {
19
+ id?: string | string[] | undefined;
20
+ value?: string | string[] | undefined;
21
+ q?: string | undefined;
22
+ }>;
23
+ export type VendorGetProductTagsParamsType = z.infer<typeof VendorGetProductTagsParams>;
24
+ export declare const VendorGetProductTagsParams: z.ZodObject<{} & {
25
+ [x: string]: any;
26
+ $and: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
27
+ q: z.ZodOptional<z.ZodString>;
28
+ id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
29
+ value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
30
+ }, "strip", z.ZodTypeAny, {
31
+ id?: string | string[] | undefined;
32
+ value?: string | string[] | undefined;
33
+ q?: string | undefined;
34
+ }, {
35
+ id?: string | string[] | undefined;
36
+ value?: string | string[] | undefined;
37
+ q?: string | undefined;
38
+ }>, "many">>>;
39
+ $or: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
40
+ q: z.ZodOptional<z.ZodString>;
41
+ id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
42
+ value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
43
+ }, "strip", z.ZodTypeAny, {
44
+ id?: string | string[] | undefined;
45
+ value?: string | string[] | undefined;
46
+ q?: string | undefined;
47
+ }, {
48
+ id?: string | string[] | undefined;
49
+ value?: string | string[] | undefined;
50
+ q?: string | undefined;
51
+ }>, "many">>>;
52
+ }, "strip", z.ZodTypeAny, {
53
+ [x: string]: any;
54
+ $and?: unknown;
55
+ $or?: unknown;
56
+ }, {
57
+ [x: string]: any;
58
+ $and?: unknown;
59
+ $or?: unknown;
60
+ }>;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VendorGetProductTagsParams = exports.VendorGetProductTagsParamsFields = exports.VendorGetProductTagParams = void 0;
4
+ const zod_1 = require("zod");
5
+ const common_1 = require("@medusajs/medusa/api/utils/common-validators/common");
6
+ const validators_1 = require("@medusajs/medusa/api/utils/validators");
7
+ exports.VendorGetProductTagParams = (0, validators_1.createSelectParams)();
8
+ exports.VendorGetProductTagsParamsFields = zod_1.z.object({
9
+ q: zod_1.z.string().optional(),
10
+ id: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
11
+ value: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
12
+ });
13
+ exports.VendorGetProductTagsParams = (0, validators_1.createFindParams)({
14
+ limit: 20,
15
+ offset: 0,
16
+ })
17
+ .merge(exports.VendorGetProductTagsParamsFields)
18
+ .merge((0, common_1.applyAndAndOrOperators)(exports.VendorGetProductTagsParamsFields));
19
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdG9ycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9hcGkvdmVuZG9yL3Byb2R1Y3QtdGFncy92YWxpZGF0b3JzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLDZCQUF1QjtBQUV2QixnRkFBNEY7QUFDNUYsc0VBRzhDO0FBS2pDLFFBQUEseUJBQXlCLEdBQUcsSUFBQSwrQkFBa0IsR0FBRSxDQUFBO0FBRWhELFFBQUEsZ0NBQWdDLEdBQUcsT0FBQyxDQUFDLE1BQU0sQ0FBQztJQUN2RCxDQUFDLEVBQUUsT0FBQyxDQUFDLE1BQU0sRUFBRSxDQUFDLFFBQVEsRUFBRTtJQUN4QixFQUFFLEVBQUUsT0FBQyxDQUFDLEtBQUssQ0FBQyxDQUFDLE9BQUMsQ0FBQyxNQUFNLEVBQUUsRUFBRSxPQUFDLENBQUMsS0FBSyxDQUFDLE9BQUMsQ0FBQyxNQUFNLEVBQUUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxRQUFRLEVBQUU7SUFDekQsS0FBSyxFQUFFLE9BQUMsQ0FBQyxLQUFLLENBQUMsQ0FBQyxPQUFDLENBQUMsTUFBTSxFQUFFLEVBQUUsT0FBQyxDQUFDLEtBQUssQ0FBQyxPQUFDLENBQUMsTUFBTSxFQUFFLENBQUMsQ0FBQyxDQUFDLENBQUMsUUFBUSxFQUFFO0NBQzdELENBQUMsQ0FBQTtBQUtXLFFBQUEsMEJBQTBCLEdBQUcsSUFBQSw2QkFBZ0IsRUFBQztJQUN6RCxLQUFLLEVBQUUsRUFBRTtJQUNULE1BQU0sRUFBRSxDQUFDO0NBQ1YsQ0FBQztLQUNDLEtBQUssQ0FBQyx3Q0FBZ0MsQ0FBQztLQUN2QyxLQUFLLENBQUMsSUFBQSwrQkFBc0IsRUFBQyx3Q0FBZ0MsQ0FBQyxDQUFDLENBQUEifQ==
@@ -0,0 +1,3 @@
1
+ import { AuthenticatedMedusaRequest, MedusaResponse } from "@medusajs/framework";
2
+ import { HttpTypes } from "@mercurjs/types";
3
+ export declare const GET: (req: AuthenticatedMedusaRequest, res: MedusaResponse<HttpTypes.VendorProductTypeResponse>) => Promise<void>;