@mercurjs/core 2.1.0-canary.4
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.
- package/.medusa/server/src/api/admin/attributes/[id]/route.d.ts +5 -0
- package/.medusa/server/src/api/admin/attributes/[id]/route.js +68 -0
- package/.medusa/server/src/api/admin/attributes/[id]/values/[value_id]/route.d.ts +4 -0
- package/.medusa/server/src/api/admin/attributes/[id]/values/[value_id]/route.js +40 -0
- package/.medusa/server/src/api/admin/attributes/[id]/values/route.d.ts +4 -0
- package/.medusa/server/src/api/admin/attributes/[id]/values/route.js +44 -0
- package/.medusa/server/src/api/admin/attributes/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/admin/attributes/middlewares.js +102 -0
- package/.medusa/server/src/api/admin/attributes/query-config.d.ts +20 -0
- package/.medusa/server/src/api/admin/attributes/query-config.js +41 -0
- package/.medusa/server/src/api/admin/attributes/route.d.ts +4 -0
- package/.medusa/server/src/api/admin/attributes/route.js +51 -0
- package/.medusa/server/src/api/admin/attributes/validators.d.ts +793 -0
- package/.medusa/server/src/api/admin/attributes/validators.js +92 -0
- package/.medusa/server/src/api/admin/commission-rates/[id]/route.d.ts +6 -0
- package/.medusa/server/src/api/admin/commission-rates/[id]/route.js +43 -0
- package/.medusa/server/src/api/admin/commission-rates/[id]/rules/route.d.ts +4 -0
- package/.medusa/server/src/api/admin/commission-rates/[id]/rules/route.js +21 -0
- package/.medusa/server/src/api/admin/commission-rates/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/admin/commission-rates/middlewares.js +51 -0
- package/.medusa/server/src/api/admin/commission-rates/query-config.d.ts +11 -0
- package/.medusa/server/src/api/admin/commission-rates/query-config.js +32 -0
- package/.medusa/server/src/api/admin/commission-rates/route.d.ts +5 -0
- package/.medusa/server/src/api/admin/commission-rates/route.js +35 -0
- package/.medusa/server/src/api/admin/commission-rates/validators.d.ts +271 -0
- package/.medusa/server/src/api/admin/commission-rates/validators.js +61 -0
- package/.medusa/server/src/api/admin/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/admin/middlewares.js +65 -0
- package/.medusa/server/src/api/admin/order-groups/[id]/route.d.ts +3 -0
- package/.medusa/server/src/api/admin/order-groups/[id]/route.js +15 -0
- package/.medusa/server/src/api/admin/order-groups/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/admin/order-groups/middlewares.js +23 -0
- package/.medusa/server/src/api/admin/order-groups/query-config.d.ts +11 -0
- package/.medusa/server/src/api/admin/order-groups/query-config.js +22 -0
- package/.medusa/server/src/api/admin/order-groups/route.d.ts +3 -0
- package/.medusa/server/src/api/admin/order-groups/route.js +26 -0
- package/.medusa/server/src/api/admin/order-groups/validators.d.ts +133 -0
- package/.medusa/server/src/api/admin/order-groups/validators.js +20 -0
- package/.medusa/server/src/api/admin/orders/[id]/order-group/route.d.ts +3 -0
- package/.medusa/server/src/api/admin/orders/[id]/order-group/route.js +28 -0
- package/.medusa/server/src/api/admin/orders/route.d.ts +4 -0
- package/.medusa/server/src/api/admin/orders/route.js +3 -0
- package/.medusa/server/src/api/admin/orders/validators.d.ts +289 -0
- package/.medusa/server/src/api/admin/orders/validators.js +34 -0
- package/.medusa/server/src/api/admin/payouts/[id]/route.d.ts +3 -0
- package/.medusa/server/src/api/admin/payouts/[id]/route.js +18 -0
- package/.medusa/server/src/api/admin/payouts/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/admin/payouts/middlewares.js +23 -0
- package/.medusa/server/src/api/admin/payouts/query-config.d.ts +11 -0
- package/.medusa/server/src/api/admin/payouts/query-config.js +29 -0
- package/.medusa/server/src/api/admin/payouts/route.d.ts +3 -0
- package/.medusa/server/src/api/admin/payouts/route.js +21 -0
- package/.medusa/server/src/api/admin/payouts/validators.d.ts +124 -0
- package/.medusa/server/src/api/admin/payouts/validators.js +17 -0
- package/.medusa/server/src/api/admin/products/route.d.ts +4 -0
- package/.medusa/server/src/api/admin/products/route.js +3 -0
- package/.medusa/server/src/api/admin/products/validators.d.ts +828 -0
- package/.medusa/server/src/api/admin/products/validators.js +9 -0
- package/.medusa/server/src/api/admin/sellers/[id]/address/route.d.ts +4 -0
- package/.medusa/server/src/api/admin/sellers/[id]/address/route.js +22 -0
- package/.medusa/server/src/api/admin/sellers/[id]/approve/route.d.ts +3 -0
- package/.medusa/server/src/api/admin/sellers/[id]/approve/route.js +21 -0
- package/.medusa/server/src/api/admin/sellers/[id]/members/[member_id]/route.d.ts +2 -0
- package/.medusa/server/src/api/admin/sellers/[id]/members/[member_id]/route.js +19 -0
- package/.medusa/server/src/api/admin/sellers/[id]/members/invite/route.d.ts +3 -0
- package/.medusa/server/src/api/admin/sellers/[id]/members/invite/route.js +18 -0
- package/.medusa/server/src/api/admin/sellers/[id]/members/invites/route.d.ts +2 -0
- package/.medusa/server/src/api/admin/sellers/[id]/members/invites/route.js +23 -0
- package/.medusa/server/src/api/admin/sellers/[id]/members/route.d.ts +4 -0
- package/.medusa/server/src/api/admin/sellers/[id]/members/route.js +35 -0
- package/.medusa/server/src/api/admin/sellers/[id]/payment-details/route.d.ts +4 -0
- package/.medusa/server/src/api/admin/sellers/[id]/payment-details/route.js +22 -0
- package/.medusa/server/src/api/admin/sellers/[id]/products/route.d.ts +4 -0
- package/.medusa/server/src/api/admin/sellers/[id]/products/route.js +40 -0
- package/.medusa/server/src/api/admin/sellers/[id]/professional-details/route.d.ts +5 -0
- package/.medusa/server/src/api/admin/sellers/[id]/professional-details/route.js +37 -0
- package/.medusa/server/src/api/admin/sellers/[id]/route.d.ts +5 -0
- package/.medusa/server/src/api/admin/sellers/[id]/route.js +38 -0
- package/.medusa/server/src/api/admin/sellers/[id]/suspend/route.d.ts +4 -0
- package/.medusa/server/src/api/admin/sellers/[id]/suspend/route.js +22 -0
- package/.medusa/server/src/api/admin/sellers/[id]/terminate/route.d.ts +4 -0
- package/.medusa/server/src/api/admin/sellers/[id]/terminate/route.js +22 -0
- package/.medusa/server/src/api/admin/sellers/[id]/unsuspend/route.d.ts +3 -0
- package/.medusa/server/src/api/admin/sellers/[id]/unsuspend/route.js +21 -0
- package/.medusa/server/src/api/admin/sellers/[id]/unterminate/route.d.ts +3 -0
- package/.medusa/server/src/api/admin/sellers/[id]/unterminate/route.js +21 -0
- package/.medusa/server/src/api/admin/sellers/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/admin/sellers/middlewares.js +166 -0
- package/.medusa/server/src/api/admin/sellers/query-config.d.ts +34 -0
- package/.medusa/server/src/api/admin/sellers/query-config.js +95 -0
- package/.medusa/server/src/api/admin/sellers/route.d.ts +5 -0
- package/.medusa/server/src/api/admin/sellers/route.js +37 -0
- package/.medusa/server/src/api/admin/sellers/validators.d.ts +496 -0
- package/.medusa/server/src/api/admin/sellers/validators.js +116 -0
- package/.medusa/server/src/api/admin/subscription-plans/[id]/overrides/[override_id]/route.d.ts +6 -0
- package/.medusa/server/src/api/admin/subscription-plans/[id]/overrides/[override_id]/route.js +43 -0
- package/.medusa/server/src/api/admin/subscription-plans/[id]/overrides/route.d.ts +4 -0
- package/.medusa/server/src/api/admin/subscription-plans/[id]/overrides/route.js +24 -0
- package/.medusa/server/src/api/admin/subscription-plans/[id]/route.d.ts +6 -0
- package/.medusa/server/src/api/admin/subscription-plans/[id]/route.js +43 -0
- package/.medusa/server/src/api/admin/subscription-plans/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/admin/subscription-plans/middlewares.js +81 -0
- package/.medusa/server/src/api/admin/subscription-plans/query-config.d.ts +17 -0
- package/.medusa/server/src/api/admin/subscription-plans/query-config.js +43 -0
- package/.medusa/server/src/api/admin/subscription-plans/route.d.ts +5 -0
- package/.medusa/server/src/api/admin/subscription-plans/route.js +35 -0
- package/.medusa/server/src/api/admin/subscription-plans/validators.d.ts +117 -0
- package/.medusa/server/src/api/admin/subscription-plans/validators.js +42 -0
- package/.medusa/server/src/api/hooks/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/hooks/middlewares.js +11 -0
- package/.medusa/server/src/api/hooks/payout/route.d.ts +2 -0
- package/.medusa/server/src/api/hooks/payout/route.js +26 -0
- package/.medusa/server/src/api/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/middlewares.js +40 -0
- package/.medusa/server/src/api/store/carts/[id]/complete/query-config.d.ts +5 -0
- package/.medusa/server/src/api/store/carts/[id]/complete/query-config.js +17 -0
- package/.medusa/server/src/api/store/carts/[id]/complete/route.d.ts +4 -0
- package/.medusa/server/src/api/store/carts/[id]/complete/route.js +50 -0
- package/.medusa/server/src/api/store/carts/[id]/complete/validators.d.ts +9 -0
- package/.medusa/server/src/api/store/carts/[id]/complete/validators.js +6 -0
- package/.medusa/server/src/api/store/carts/[id]/promotions/route.d.ts +3 -0
- package/.medusa/server/src/api/store/carts/[id]/promotions/route.js +23 -0
- package/.medusa/server/src/api/store/carts/[id]/shipping-methods/route.d.ts +3 -0
- package/.medusa/server/src/api/store/carts/[id]/shipping-methods/route.js +19 -0
- package/.medusa/server/src/api/store/carts/helpers.d.ts +3 -0
- package/.medusa/server/src/api/store/carts/helpers.js +147 -0
- package/.medusa/server/src/api/store/carts/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/store/carts/middlewares.js +16 -0
- package/.medusa/server/src/api/store/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/store/middlewares.js +12 -0
- package/.medusa/server/src/api/store/order-groups/[id]/route.d.ts +3 -0
- package/.medusa/server/src/api/store/order-groups/[id]/route.js +22 -0
- package/.medusa/server/src/api/store/order-groups/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/store/order-groups/middlewares.js +25 -0
- package/.medusa/server/src/api/store/order-groups/query-config.d.ts +13 -0
- package/.medusa/server/src/api/store/order-groups/query-config.js +32 -0
- package/.medusa/server/src/api/store/order-groups/route.d.ts +3 -0
- package/.medusa/server/src/api/store/order-groups/route.js +25 -0
- package/.medusa/server/src/api/store/order-groups/validators.d.ts +118 -0
- package/.medusa/server/src/api/store/order-groups/validators.js +15 -0
- package/.medusa/server/src/api/store/sellers/[id]/route.d.ts +4 -0
- package/.medusa/server/src/api/store/sellers/[id]/route.js +22 -0
- package/.medusa/server/src/api/store/sellers/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/store/sellers/middlewares.js +66 -0
- package/.medusa/server/src/api/store/sellers/query-config.d.ts +8 -0
- package/.medusa/server/src/api/store/sellers/query-config.js +30 -0
- package/.medusa/server/src/api/store/sellers/route.d.ts +4 -0
- package/.medusa/server/src/api/store/sellers/route.js +21 -0
- package/.medusa/server/src/api/store/sellers/validators.d.ts +130 -0
- package/.medusa/server/src/api/store/sellers/validators.js +20 -0
- package/.medusa/server/src/api/store/shipping-options/route.d.ts +4 -0
- package/.medusa/server/src/api/store/shipping-options/route.js +17 -0
- package/.medusa/server/src/api/utils/ensure-seller-middleware.d.ts +2 -0
- package/.medusa/server/src/api/utils/ensure-seller-middleware.js +38 -0
- package/.medusa/server/src/api/utils/filter-by-seller-id.d.ts +2 -0
- package/.medusa/server/src/api/utils/filter-by-seller-id.js +10 -0
- package/.medusa/server/src/api/utils/index.d.ts +5 -0
- package/.medusa/server/src/api/utils/index.js +22 -0
- package/.medusa/server/src/api/utils/scan-unauthenticated-routes.d.ts +1 -0
- package/.medusa/server/src/api/utils/scan-unauthenticated-routes.js +65 -0
- package/.medusa/server/src/api/utils/unless-base-url.d.ts +10 -0
- package/.medusa/server/src/api/utils/unless-base-url.js +22 -0
- package/.medusa/server/src/api/utils/vendor-cors-middleware.d.ts +2 -0
- package/.medusa/server/src/api/utils/vendor-cors-middleware.js +18 -0
- package/.medusa/server/src/api/vendor/attributes/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/attributes/middlewares.js +32 -0
- package/.medusa/server/src/api/vendor/attributes/route.d.ts +2 -0
- package/.medusa/server/src/api/vendor/attributes/route.js +20 -0
- package/.medusa/server/src/api/vendor/campaigns/[id]/promotions/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/campaigns/[id]/promotions/route.js +21 -0
- package/.medusa/server/src/api/vendor/campaigns/[id]/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/campaigns/[id]/route.js +42 -0
- package/.medusa/server/src/api/vendor/campaigns/helpers.d.ts +3 -0
- package/.medusa/server/src/api/vendor/campaigns/helpers.js +30 -0
- package/.medusa/server/src/api/vendor/campaigns/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/campaigns/middlewares.js +63 -0
- package/.medusa/server/src/api/vendor/campaigns/query-config.d.ts +11 -0
- package/.medusa/server/src/api/vendor/campaigns/query-config.js +27 -0
- package/.medusa/server/src/api/vendor/campaigns/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/campaigns/route.js +35 -0
- package/.medusa/server/src/api/vendor/campaigns/validators.d.ts +191 -0
- package/.medusa/server/src/api/vendor/campaigns/validators.js +70 -0
- package/.medusa/server/src/api/vendor/collections/[id]/products/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/collections/[id]/products/route.js +23 -0
- package/.medusa/server/src/api/vendor/collections/[id]/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/collections/[id]/route.js +25 -0
- package/.medusa/server/src/api/vendor/collections/helpers.d.ts +4 -0
- package/.medusa/server/src/api/vendor/collections/helpers.js +29 -0
- package/.medusa/server/src/api/vendor/collections/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/collections/middlewares.js +32 -0
- package/.medusa/server/src/api/vendor/collections/query-config.d.ts +9 -0
- package/.medusa/server/src/api/vendor/collections/query-config.js +20 -0
- package/.medusa/server/src/api/vendor/collections/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/collections/route.js +26 -0
- package/.medusa/server/src/api/vendor/collections/validators.d.ts +169 -0
- package/.medusa/server/src/api/vendor/collections/validators.js +19 -0
- package/.medusa/server/src/api/vendor/currencies/[code]/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/currencies/[code]/route.js +19 -0
- package/.medusa/server/src/api/vendor/currencies/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/currencies/middlewares.js +23 -0
- package/.medusa/server/src/api/vendor/currencies/query-config.d.ts +12 -0
- package/.medusa/server/src/api/vendor/currencies/query-config.js +23 -0
- package/.medusa/server/src/api/vendor/currencies/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/currencies/route.js +21 -0
- package/.medusa/server/src/api/vendor/currencies/validators.d.ts +46 -0
- package/.medusa/server/src/api/vendor/currencies/validators.js +15 -0
- package/.medusa/server/src/api/vendor/customers/[id]/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/customers/[id]/route.js +21 -0
- package/.medusa/server/src/api/vendor/customers/helpers.d.ts +2 -0
- package/.medusa/server/src/api/vendor/customers/helpers.js +20 -0
- package/.medusa/server/src/api/vendor/customers/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/customers/middlewares.js +33 -0
- package/.medusa/server/src/api/vendor/customers/query-config.d.ts +11 -0
- package/.medusa/server/src/api/vendor/customers/query-config.js +28 -0
- package/.medusa/server/src/api/vendor/customers/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/customers/route.js +21 -0
- package/.medusa/server/src/api/vendor/customers/validators.d.ts +127 -0
- package/.medusa/server/src/api/vendor/customers/validators.js +19 -0
- package/.medusa/server/src/api/vendor/feature-flags/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/feature-flags/route.js +16 -0
- package/.medusa/server/src/api/vendor/fulfillment-providers/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/fulfillment-providers/middlewares.js +16 -0
- package/.medusa/server/src/api/vendor/fulfillment-providers/query-config.d.ts +7 -0
- package/.medusa/server/src/api/vendor/fulfillment-providers/query-config.js +11 -0
- package/.medusa/server/src/api/vendor/fulfillment-providers/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/fulfillment-providers/route.js +21 -0
- package/.medusa/server/src/api/vendor/fulfillment-providers/validators.d.ts +35 -0
- package/.medusa/server/src/api/vendor/fulfillment-providers/validators.js +18 -0
- package/.medusa/server/src/api/vendor/fulfillment-sets/[id]/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/fulfillment-sets/[id]/route.js +20 -0
- package/.medusa/server/src/api/vendor/fulfillment-sets/[id]/service-zones/[zone_id]/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/fulfillment-sets/[id]/service-zones/[zone_id]/route.js +61 -0
- package/.medusa/server/src/api/vendor/fulfillment-sets/[id]/service-zones/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/fulfillment-sets/[id]/service-zones/route.js +25 -0
- package/.medusa/server/src/api/vendor/fulfillment-sets/helpers.d.ts +3 -0
- package/.medusa/server/src/api/vendor/fulfillment-sets/helpers.js +40 -0
- package/.medusa/server/src/api/vendor/fulfillment-sets/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/fulfillment-sets/middlewares.js +44 -0
- package/.medusa/server/src/api/vendor/fulfillment-sets/query-config.d.ts +13 -0
- package/.medusa/server/src/api/vendor/fulfillment-sets/query-config.js +34 -0
- package/.medusa/server/src/api/vendor/fulfillment-sets/validators.d.ts +365 -0
- package/.medusa/server/src/api/vendor/fulfillment-sets/validators.js +56 -0
- package/.medusa/server/src/api/vendor/inventory-items/[id]/location-levels/[location_id]/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/inventory-items/[id]/location-levels/[location_id]/route.js +48 -0
- package/.medusa/server/src/api/vendor/inventory-items/[id]/location-levels/batch/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/inventory-items/[id]/location-levels/batch/route.js +30 -0
- package/.medusa/server/src/api/vendor/inventory-items/[id]/location-levels/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/inventory-items/[id]/location-levels/route.js +42 -0
- package/.medusa/server/src/api/vendor/inventory-items/[id]/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/inventory-items/[id]/route.js +42 -0
- package/.medusa/server/src/api/vendor/inventory-items/helpers.d.ts +3 -0
- package/.medusa/server/src/api/vendor/inventory-items/helpers.js +30 -0
- package/.medusa/server/src/api/vendor/inventory-items/location-levels/batch/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/inventory-items/location-levels/batch/route.js +22 -0
- package/.medusa/server/src/api/vendor/inventory-items/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/inventory-items/middlewares.js +100 -0
- package/.medusa/server/src/api/vendor/inventory-items/query-config.d.ts +22 -0
- package/.medusa/server/src/api/vendor/inventory-items/query-config.js +58 -0
- package/.medusa/server/src/api/vendor/inventory-items/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/inventory-items/route.js +35 -0
- package/.medusa/server/src/api/vendor/inventory-items/validators.d.ts +773 -0
- package/.medusa/server/src/api/vendor/inventory-items/validators.js +117 -0
- package/.medusa/server/src/api/vendor/members/invites/accept/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/members/invites/accept/route.js +16 -0
- package/.medusa/server/src/api/vendor/members/me/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/members/me/route.js +24 -0
- package/.medusa/server/src/api/vendor/members/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/members/middlewares.js +38 -0
- package/.medusa/server/src/api/vendor/members/validators.d.ts +9 -0
- package/.medusa/server/src/api/vendor/members/validators.js +8 -0
- package/.medusa/server/src/api/vendor/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/middlewares.js +112 -0
- package/.medusa/server/src/api/vendor/orders/[id]/cancel/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/orders/[id]/cancel/route.js +26 -0
- package/.medusa/server/src/api/vendor/orders/[id]/changes/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/orders/[id]/changes/route.js +21 -0
- package/.medusa/server/src/api/vendor/orders/[id]/complete/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/orders/[id]/complete/route.js +25 -0
- package/.medusa/server/src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/cancel/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/cancel/route.js +27 -0
- package/.medusa/server/src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/mark-as-delivered/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/mark-as-delivered/route.js +26 -0
- package/.medusa/server/src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/shipments/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/shipments/route.js +28 -0
- package/.medusa/server/src/api/vendor/orders/[id]/fulfillments/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/orders/[id]/fulfillments/route.js +20 -0
- package/.medusa/server/src/api/vendor/orders/[id]/preview/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/orders/[id]/preview/route.js +15 -0
- package/.medusa/server/src/api/vendor/orders/[id]/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/orders/[id]/route.js +19 -0
- package/.medusa/server/src/api/vendor/orders/helpers.d.ts +2 -0
- package/.medusa/server/src/api/vendor/orders/helpers.js +23 -0
- package/.medusa/server/src/api/vendor/orders/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/orders/middlewares.js +88 -0
- package/.medusa/server/src/api/vendor/orders/query-config.d.ts +18 -0
- package/.medusa/server/src/api/vendor/orders/query-config.js +58 -0
- package/.medusa/server/src/api/vendor/orders/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/orders/route.js +29 -0
- package/.medusa/server/src/api/vendor/orders/validators.d.ts +225 -0
- package/.medusa/server/src/api/vendor/orders/validators.js +45 -0
- package/.medusa/server/src/api/vendor/payments/[id]/capture/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/payments/[id]/capture/route.js +21 -0
- package/.medusa/server/src/api/vendor/payments/[id]/refund/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/payments/[id]/refund/route.js +21 -0
- package/.medusa/server/src/api/vendor/payments/[id]/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/payments/[id]/route.js +12 -0
- package/.medusa/server/src/api/vendor/payments/helpers.d.ts +3 -0
- package/.medusa/server/src/api/vendor/payments/helpers.js +30 -0
- package/.medusa/server/src/api/vendor/payments/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/payments/middlewares.js +56 -0
- package/.medusa/server/src/api/vendor/payments/payment-providers/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/payments/payment-providers/route.js +21 -0
- package/.medusa/server/src/api/vendor/payments/query-config.d.ts +18 -0
- package/.medusa/server/src/api/vendor/payments/query-config.js +37 -0
- package/.medusa/server/src/api/vendor/payments/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/payments/route.js +21 -0
- package/.medusa/server/src/api/vendor/payments/validators.d.ts +174 -0
- package/.medusa/server/src/api/vendor/payments/validators.js +37 -0
- package/.medusa/server/src/api/vendor/payout-accounts/[id]/onboarding/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/payout-accounts/[id]/onboarding/route.js +26 -0
- package/.medusa/server/src/api/vendor/payout-accounts/[id]/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/payout-accounts/[id]/route.js +18 -0
- package/.medusa/server/src/api/vendor/payout-accounts/helpers.d.ts +2 -0
- package/.medusa/server/src/api/vendor/payout-accounts/helpers.js +20 -0
- package/.medusa/server/src/api/vendor/payout-accounts/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/payout-accounts/middlewares.js +49 -0
- package/.medusa/server/src/api/vendor/payout-accounts/query-config.d.ts +18 -0
- package/.medusa/server/src/api/vendor/payout-accounts/query-config.js +40 -0
- package/.medusa/server/src/api/vendor/payout-accounts/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/payout-accounts/route.js +40 -0
- package/.medusa/server/src/api/vendor/payout-accounts/validators.d.ts +52 -0
- package/.medusa/server/src/api/vendor/payout-accounts/validators.js +23 -0
- package/.medusa/server/src/api/vendor/payouts/[id]/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/payouts/[id]/route.js +21 -0
- package/.medusa/server/src/api/vendor/payouts/helpers.d.ts +2 -0
- package/.medusa/server/src/api/vendor/payouts/helpers.js +20 -0
- package/.medusa/server/src/api/vendor/payouts/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/payouts/middlewares.js +33 -0
- package/.medusa/server/src/api/vendor/payouts/query-config.d.ts +11 -0
- package/.medusa/server/src/api/vendor/payouts/query-config.js +24 -0
- package/.medusa/server/src/api/vendor/payouts/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/payouts/route.js +21 -0
- package/.medusa/server/src/api/vendor/payouts/validators.d.ts +118 -0
- package/.medusa/server/src/api/vendor/payouts/validators.js +15 -0
- package/.medusa/server/src/api/vendor/price-lists/[id]/prices/batch/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/price-lists/[id]/prices/batch/route.js +48 -0
- package/.medusa/server/src/api/vendor/price-lists/[id]/prices/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/price-lists/[id]/prices/route.js +27 -0
- package/.medusa/server/src/api/vendor/price-lists/[id]/products/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/price-lists/[id]/products/route.js +31 -0
- package/.medusa/server/src/api/vendor/price-lists/[id]/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/price-lists/[id]/route.js +40 -0
- package/.medusa/server/src/api/vendor/price-lists/helpers.d.ts +5 -0
- package/.medusa/server/src/api/vendor/price-lists/helpers.js +71 -0
- package/.medusa/server/src/api/vendor/price-lists/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/price-lists/middlewares.js +111 -0
- package/.medusa/server/src/api/vendor/price-lists/query-config.d.ts +14 -0
- package/.medusa/server/src/api/vendor/price-lists/query-config.js +44 -0
- package/.medusa/server/src/api/vendor/price-lists/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/price-lists/route.js +40 -0
- package/.medusa/server/src/api/vendor/price-lists/validators.d.ts +285 -0
- package/.medusa/server/src/api/vendor/price-lists/validators.js +58 -0
- package/.medusa/server/src/api/vendor/price-preferences/[id]/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/price-preferences/[id]/route.js +20 -0
- package/.medusa/server/src/api/vendor/price-preferences/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/price-preferences/middlewares.js +23 -0
- package/.medusa/server/src/api/vendor/price-preferences/query-config.d.ts +10 -0
- package/.medusa/server/src/api/vendor/price-preferences/query-config.js +21 -0
- package/.medusa/server/src/api/vendor/price-preferences/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/price-preferences/route.js +21 -0
- package/.medusa/server/src/api/vendor/price-preferences/validators.d.ts +43 -0
- package/.medusa/server/src/api/vendor/price-preferences/validators.js +16 -0
- package/.medusa/server/src/api/vendor/product-categories/[id]/products/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/product-categories/[id]/products/route.js +27 -0
- package/.medusa/server/src/api/vendor/product-categories/[id]/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/product-categories/[id]/route.js +20 -0
- package/.medusa/server/src/api/vendor/product-categories/helpers.d.ts +2 -0
- package/.medusa/server/src/api/vendor/product-categories/helpers.js +24 -0
- package/.medusa/server/src/api/vendor/product-categories/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/product-categories/middlewares.js +65 -0
- package/.medusa/server/src/api/vendor/product-categories/query-config.d.ts +9 -0
- package/.medusa/server/src/api/vendor/product-categories/query-config.js +27 -0
- package/.medusa/server/src/api/vendor/product-categories/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/product-categories/route.js +21 -0
- package/.medusa/server/src/api/vendor/product-categories/validators.d.ts +58 -0
- package/.medusa/server/src/api/vendor/product-categories/validators.js +22 -0
- package/.medusa/server/src/api/vendor/product-tags/[id]/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/product-tags/[id]/route.js +20 -0
- package/.medusa/server/src/api/vendor/product-tags/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/product-tags/middlewares.js +23 -0
- package/.medusa/server/src/api/vendor/product-tags/query-config.d.ts +11 -0
- package/.medusa/server/src/api/vendor/product-tags/query-config.js +21 -0
- package/.medusa/server/src/api/vendor/product-tags/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/product-tags/route.js +21 -0
- package/.medusa/server/src/api/vendor/product-tags/validators.d.ts +60 -0
- package/.medusa/server/src/api/vendor/product-tags/validators.js +19 -0
- package/.medusa/server/src/api/vendor/product-types/[id]/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/product-types/[id]/route.js +20 -0
- package/.medusa/server/src/api/vendor/product-types/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/product-types/middlewares.js +23 -0
- package/.medusa/server/src/api/vendor/product-types/query-config.d.ts +11 -0
- package/.medusa/server/src/api/vendor/product-types/query-config.js +21 -0
- package/.medusa/server/src/api/vendor/product-types/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/product-types/route.js +21 -0
- package/.medusa/server/src/api/vendor/product-types/validators.d.ts +40 -0
- package/.medusa/server/src/api/vendor/product-types/validators.js +15 -0
- package/.medusa/server/src/api/vendor/product-variants/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/product-variants/middlewares.js +26 -0
- package/.medusa/server/src/api/vendor/product-variants/query-config.d.ts +12 -0
- package/.medusa/server/src/api/vendor/product-variants/query-config.js +41 -0
- package/.medusa/server/src/api/vendor/product-variants/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/product-variants/route.js +21 -0
- package/.medusa/server/src/api/vendor/product-variants/validators.d.ts +128 -0
- package/.medusa/server/src/api/vendor/product-variants/validators.js +21 -0
- package/.medusa/server/src/api/vendor/products/[id]/attributes/[attribute_id]/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/products/[id]/attributes/[attribute_id]/route.js +149 -0
- package/.medusa/server/src/api/vendor/products/[id]/attributes/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/products/[id]/attributes/route.js +111 -0
- package/.medusa/server/src/api/vendor/products/[id]/attributes/utils.d.ts +7 -0
- package/.medusa/server/src/api/vendor/products/[id]/attributes/utils.js +16 -0
- package/.medusa/server/src/api/vendor/products/[id]/options/[option_id]/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/products/[id]/options/[option_id]/route.js +74 -0
- package/.medusa/server/src/api/vendor/products/[id]/options/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/products/[id]/options/route.js +34 -0
- package/.medusa/server/src/api/vendor/products/[id]/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/products/[id]/route.js +62 -0
- package/.medusa/server/src/api/vendor/products/[id]/variants/[variant_id]/media/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/products/[id]/variants/[variant_id]/media/route.js +20 -0
- package/.medusa/server/src/api/vendor/products/[id]/variants/[variant_id]/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/products/[id]/variants/[variant_id]/route.js +57 -0
- package/.medusa/server/src/api/vendor/products/[id]/variants/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/products/[id]/variants/route.js +55 -0
- package/.medusa/server/src/api/vendor/products/helpers.d.ts +2 -0
- package/.medusa/server/src/api/vendor/products/helpers.js +20 -0
- package/.medusa/server/src/api/vendor/products/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/products/middlewares.js +142 -0
- package/.medusa/server/src/api/vendor/products/query-config.d.ts +22 -0
- package/.medusa/server/src/api/vendor/products/query-config.js +64 -0
- package/.medusa/server/src/api/vendor/products/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/products/route.js +43 -0
- package/.medusa/server/src/api/vendor/products/utils/transform-product-attributes.d.ts +34 -0
- package/.medusa/server/src/api/vendor/products/utils/transform-product-attributes.js +71 -0
- package/.medusa/server/src/api/vendor/products/validators.d.ts +2352 -0
- package/.medusa/server/src/api/vendor/products/validators.js +213 -0
- package/.medusa/server/src/api/vendor/promotions/[id]/[rule_type]/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/promotions/[id]/[rule_type]/route.js +103 -0
- package/.medusa/server/src/api/vendor/promotions/[id]/buy-rules/batch/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/promotions/[id]/buy-rules/batch/route.js +23 -0
- package/.medusa/server/src/api/vendor/promotions/[id]/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/promotions/[id]/route.js +42 -0
- package/.medusa/server/src/api/vendor/promotions/[id]/rules/batch/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/promotions/[id]/rules/batch/route.js +23 -0
- package/.medusa/server/src/api/vendor/promotions/[id]/target-rules/batch/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/promotions/[id]/target-rules/batch/route.js +23 -0
- package/.medusa/server/src/api/vendor/promotions/helpers.d.ts +13 -0
- package/.medusa/server/src/api/vendor/promotions/helpers.js +70 -0
- package/.medusa/server/src/api/vendor/promotions/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/promotions/middlewares.js +100 -0
- package/.medusa/server/src/api/vendor/promotions/query-config.d.ts +29 -0
- package/.medusa/server/src/api/vendor/promotions/query-config.js +60 -0
- package/.medusa/server/src/api/vendor/promotions/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/promotions/route.js +35 -0
- package/.medusa/server/src/api/vendor/promotions/rule-attribute-options/[rule_type]/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/promotions/rule-attribute-options/[rule_type]/route.js +18 -0
- package/.medusa/server/src/api/vendor/promotions/rule-value-options/[rule_type]/[rule_attribute_id]/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/promotions/rule-value-options/[rule_type]/[rule_attribute_id]/route.js +54 -0
- package/.medusa/server/src/api/vendor/promotions/utils/index.d.ts +5 -0
- package/.medusa/server/src/api/vendor/promotions/utils/index.js +22 -0
- package/.medusa/server/src/api/vendor/promotions/utils/operators-map.d.ts +18 -0
- package/.medusa/server/src/api/vendor/promotions/utils/operators-map.js +22 -0
- package/.medusa/server/src/api/vendor/promotions/utils/rule-attributes-map.d.ts +11 -0
- package/.medusa/server/src/api/vendor/promotions/utils/rule-attributes-map.js +155 -0
- package/.medusa/server/src/api/vendor/promotions/utils/rule-query-configuration.d.ts +5 -0
- package/.medusa/server/src/api/vendor/promotions/utils/rule-query-configuration.js +61 -0
- package/.medusa/server/src/api/vendor/promotions/utils/validate-rule-attribute.d.ts +8 -0
- package/.medusa/server/src/api/vendor/promotions/utils/validate-rule-attribute.js +18 -0
- package/.medusa/server/src/api/vendor/promotions/utils/validate-rule-type.d.ts +1 -0
- package/.medusa/server/src/api/vendor/promotions/utils/validate-rule-type.js +12 -0
- package/.medusa/server/src/api/vendor/promotions/validators.d.ts +1082 -0
- package/.medusa/server/src/api/vendor/promotions/validators.js +134 -0
- package/.medusa/server/src/api/vendor/refund-reasons/[id]/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/refund-reasons/[id]/route.js +20 -0
- package/.medusa/server/src/api/vendor/refund-reasons/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/refund-reasons/middlewares.js +23 -0
- package/.medusa/server/src/api/vendor/refund-reasons/query-config.d.ts +11 -0
- package/.medusa/server/src/api/vendor/refund-reasons/query-config.js +22 -0
- package/.medusa/server/src/api/vendor/refund-reasons/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/refund-reasons/route.js +21 -0
- package/.medusa/server/src/api/vendor/refund-reasons/validators.d.ts +121 -0
- package/.medusa/server/src/api/vendor/refund-reasons/validators.js +16 -0
- package/.medusa/server/src/api/vendor/regions/[id]/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/regions/[id]/route.js +18 -0
- package/.medusa/server/src/api/vendor/regions/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/regions/middlewares.js +23 -0
- package/.medusa/server/src/api/vendor/regions/query-config.d.ts +11 -0
- package/.medusa/server/src/api/vendor/regions/query-config.js +24 -0
- package/.medusa/server/src/api/vendor/regions/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/regions/route.js +21 -0
- package/.medusa/server/src/api/vendor/regions/validators.d.ts +127 -0
- package/.medusa/server/src/api/vendor/regions/validators.js +18 -0
- package/.medusa/server/src/api/vendor/return-reasons/[id]/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/return-reasons/[id]/route.js +20 -0
- package/.medusa/server/src/api/vendor/return-reasons/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/return-reasons/middlewares.js +23 -0
- package/.medusa/server/src/api/vendor/return-reasons/query-config.d.ts +12 -0
- package/.medusa/server/src/api/vendor/return-reasons/query-config.js +28 -0
- package/.medusa/server/src/api/vendor/return-reasons/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/return-reasons/route.js +21 -0
- package/.medusa/server/src/api/vendor/return-reasons/validators.d.ts +133 -0
- package/.medusa/server/src/api/vendor/return-reasons/validators.js +22 -0
- package/.medusa/server/src/api/vendor/returns/[id]/cancel/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/returns/[id]/cancel/route.js +19 -0
- package/.medusa/server/src/api/vendor/returns/[id]/dismiss-items/[action_id]/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/returns/[id]/dismiss-items/[action_id]/route.js +56 -0
- package/.medusa/server/src/api/vendor/returns/[id]/dismiss-items/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/returns/[id]/dismiss-items/route.js +28 -0
- package/.medusa/server/src/api/vendor/returns/[id]/receive/confirm/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/returns/[id]/receive/confirm/route.js +31 -0
- package/.medusa/server/src/api/vendor/returns/[id]/receive/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/returns/[id]/receive/route.js +51 -0
- package/.medusa/server/src/api/vendor/returns/[id]/receive-items/[action_id]/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/returns/[id]/receive-items/[action_id]/route.js +56 -0
- package/.medusa/server/src/api/vendor/returns/[id]/receive-items/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/returns/[id]/receive-items/route.js +28 -0
- package/.medusa/server/src/api/vendor/returns/[id]/request/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/returns/[id]/request/route.js +46 -0
- package/.medusa/server/src/api/vendor/returns/[id]/request-items/[action_id]/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/returns/[id]/request-items/[action_id]/route.js +56 -0
- package/.medusa/server/src/api/vendor/returns/[id]/request-items/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/returns/[id]/request-items/route.js +28 -0
- package/.medusa/server/src/api/vendor/returns/[id]/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/returns/[id]/route.js +45 -0
- package/.medusa/server/src/api/vendor/returns/[id]/shipping-method/[action_id]/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/returns/[id]/shipping-method/[action_id]/route.js +56 -0
- package/.medusa/server/src/api/vendor/returns/[id]/shipping-method/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/returns/[id]/shipping-method/route.js +28 -0
- package/.medusa/server/src/api/vendor/returns/helpers.d.ts +2 -0
- package/.medusa/server/src/api/vendor/returns/helpers.js +21 -0
- package/.medusa/server/src/api/vendor/returns/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/returns/middlewares.js +189 -0
- package/.medusa/server/src/api/vendor/returns/query-config.d.ts +12 -0
- package/.medusa/server/src/api/vendor/returns/query-config.js +38 -0
- package/.medusa/server/src/api/vendor/returns/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/returns/route.js +52 -0
- package/.medusa/server/src/api/vendor/returns/validators.d.ts +439 -0
- package/.medusa/server/src/api/vendor/returns/validators.js +91 -0
- package/.medusa/server/src/api/vendor/sales-channels/[id]/products/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/sales-channels/[id]/products/route.js +24 -0
- package/.medusa/server/src/api/vendor/sales-channels/[id]/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/sales-channels/[id]/route.js +20 -0
- package/.medusa/server/src/api/vendor/sales-channels/helpers.d.ts +2 -0
- package/.medusa/server/src/api/vendor/sales-channels/helpers.js +14 -0
- package/.medusa/server/src/api/vendor/sales-channels/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/sales-channels/middlewares.js +32 -0
- package/.medusa/server/src/api/vendor/sales-channels/query-config.d.ts +10 -0
- package/.medusa/server/src/api/vendor/sales-channels/query-config.js +22 -0
- package/.medusa/server/src/api/vendor/sales-channels/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/sales-channels/route.js +21 -0
- package/.medusa/server/src/api/vendor/sales-channels/validators.d.ts +43 -0
- package/.medusa/server/src/api/vendor/sales-channels/validators.js +17 -0
- package/.medusa/server/src/api/vendor/sellers/[id]/address/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/sellers/[id]/address/route.js +22 -0
- package/.medusa/server/src/api/vendor/sellers/[id]/members/[member_id]/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/sellers/[id]/members/[member_id]/route.js +29 -0
- package/.medusa/server/src/api/vendor/sellers/[id]/members/invites/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/sellers/[id]/members/invites/route.js +24 -0
- package/.medusa/server/src/api/vendor/sellers/[id]/members/me/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/sellers/[id]/members/me/route.js +22 -0
- package/.medusa/server/src/api/vendor/sellers/[id]/members/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/sellers/[id]/members/route.js +35 -0
- package/.medusa/server/src/api/vendor/sellers/[id]/payment-details/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/sellers/[id]/payment-details/route.js +22 -0
- package/.medusa/server/src/api/vendor/sellers/[id]/professional-details/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/sellers/[id]/professional-details/route.js +37 -0
- package/.medusa/server/src/api/vendor/sellers/[id]/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/sellers/[id]/route.js +35 -0
- package/.medusa/server/src/api/vendor/sellers/me/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/sellers/me/route.js +27 -0
- package/.medusa/server/src/api/vendor/sellers/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/sellers/middlewares.js +259 -0
- package/.medusa/server/src/api/vendor/sellers/query-config.d.ts +25 -0
- package/.medusa/server/src/api/vendor/sellers/query-config.js +73 -0
- package/.medusa/server/src/api/vendor/sellers/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/sellers/route.js +50 -0
- package/.medusa/server/src/api/vendor/sellers/select/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/sellers/select/route.js +24 -0
- package/.medusa/server/src/api/vendor/sellers/validators.d.ts +324 -0
- package/.medusa/server/src/api/vendor/sellers/validators.js +103 -0
- package/.medusa/server/src/api/vendor/shipping-option-types/[id]/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/shipping-option-types/[id]/route.js +14 -0
- package/.medusa/server/src/api/vendor/shipping-option-types/helpers.d.ts +2 -0
- package/.medusa/server/src/api/vendor/shipping-option-types/helpers.js +15 -0
- package/.medusa/server/src/api/vendor/shipping-option-types/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/shipping-option-types/middlewares.js +23 -0
- package/.medusa/server/src/api/vendor/shipping-option-types/query-config.d.ts +12 -0
- package/.medusa/server/src/api/vendor/shipping-option-types/query-config.js +23 -0
- package/.medusa/server/src/api/vendor/shipping-option-types/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/shipping-option-types/route.js +21 -0
- package/.medusa/server/src/api/vendor/shipping-option-types/validators.d.ts +130 -0
- package/.medusa/server/src/api/vendor/shipping-option-types/validators.js +19 -0
- package/.medusa/server/src/api/vendor/shipping-options/[id]/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/shipping-options/[id]/route.js +46 -0
- package/.medusa/server/src/api/vendor/shipping-options/[id]/rules/batch/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/shipping-options/[id]/rules/batch/route.js +26 -0
- package/.medusa/server/src/api/vendor/shipping-options/helpers.d.ts +12 -0
- package/.medusa/server/src/api/vendor/shipping-options/helpers.js +64 -0
- package/.medusa/server/src/api/vendor/shipping-options/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/shipping-options/middlewares.js +63 -0
- package/.medusa/server/src/api/vendor/shipping-options/query-config.d.ts +22 -0
- package/.medusa/server/src/api/vendor/shipping-options/query-config.js +47 -0
- package/.medusa/server/src/api/vendor/shipping-options/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/shipping-options/route.js +35 -0
- package/.medusa/server/src/api/vendor/shipping-options/validators.d.ts +860 -0
- package/.medusa/server/src/api/vendor/shipping-options/validators.js +130 -0
- package/.medusa/server/src/api/vendor/shipping-profiles/[id]/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/shipping-profiles/[id]/route.js +38 -0
- package/.medusa/server/src/api/vendor/shipping-profiles/helpers.d.ts +3 -0
- package/.medusa/server/src/api/vendor/shipping-profiles/helpers.js +30 -0
- package/.medusa/server/src/api/vendor/shipping-profiles/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/shipping-profiles/middlewares.js +54 -0
- package/.medusa/server/src/api/vendor/shipping-profiles/query-config.d.ts +11 -0
- package/.medusa/server/src/api/vendor/shipping-profiles/query-config.js +22 -0
- package/.medusa/server/src/api/vendor/shipping-profiles/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/shipping-profiles/route.js +35 -0
- package/.medusa/server/src/api/vendor/shipping-profiles/validators.d.ts +155 -0
- package/.medusa/server/src/api/vendor/shipping-profiles/validators.js +32 -0
- package/.medusa/server/src/api/vendor/stock-locations/[id]/fulfillment-providers/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/stock-locations/[id]/fulfillment-providers/route.js +30 -0
- package/.medusa/server/src/api/vendor/stock-locations/[id]/fulfillment-sets/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/stock-locations/[id]/fulfillment-sets/route.js +23 -0
- package/.medusa/server/src/api/vendor/stock-locations/[id]/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/stock-locations/[id]/route.js +43 -0
- package/.medusa/server/src/api/vendor/stock-locations/[id]/sales-channels/route.d.ts +4 -0
- package/.medusa/server/src/api/vendor/stock-locations/[id]/sales-channels/route.js +22 -0
- package/.medusa/server/src/api/vendor/stock-locations/helpers.d.ts +3 -0
- package/.medusa/server/src/api/vendor/stock-locations/helpers.js +30 -0
- package/.medusa/server/src/api/vendor/stock-locations/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/stock-locations/middlewares.js +79 -0
- package/.medusa/server/src/api/vendor/stock-locations/query-config.d.ts +11 -0
- package/.medusa/server/src/api/vendor/stock-locations/query-config.js +30 -0
- package/.medusa/server/src/api/vendor/stock-locations/route.d.ts +5 -0
- package/.medusa/server/src/api/vendor/stock-locations/route.js +35 -0
- package/.medusa/server/src/api/vendor/stock-locations/validators.d.ts +287 -0
- package/.medusa/server/src/api/vendor/stock-locations/validators.js +47 -0
- package/.medusa/server/src/api/vendor/stores/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/stores/middlewares.js +16 -0
- package/.medusa/server/src/api/vendor/stores/query-config.d.ts +11 -0
- package/.medusa/server/src/api/vendor/stores/query-config.js +26 -0
- package/.medusa/server/src/api/vendor/stores/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/stores/route.js +21 -0
- package/.medusa/server/src/api/vendor/stores/validators.d.ts +40 -0
- package/.medusa/server/src/api/vendor/stores/validators.js +15 -0
- package/.medusa/server/src/api/vendor/subscription/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/subscription/middlewares.js +28 -0
- package/.medusa/server/src/api/vendor/subscription/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/subscription/route.js +31 -0
- package/.medusa/server/src/api/vendor/uploads/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/uploads/middlewares.js +16 -0
- package/.medusa/server/src/api/vendor/uploads/route.d.ts +3 -0
- package/.medusa/server/src/api/vendor/uploads/route.js +24 -0
- package/.medusa/server/src/feature-flags/seller-registration.d.ts +3 -0
- package/.medusa/server/src/feature-flags/seller-registration.js +10 -0
- package/.medusa/server/src/links/campaign-seller-link.d.ts +2 -0
- package/.medusa/server/src/links/campaign-seller-link.js +10 -0
- package/.medusa/server/src/links/category-attribute-link.d.ts +2 -0
- package/.medusa/server/src/links/category-attribute-link.js +16 -0
- package/.medusa/server/src/links/fulfillment-set-seller-link.d.ts +2 -0
- package/.medusa/server/src/links/fulfillment-set-seller-link.js +10 -0
- package/.medusa/server/src/links/inventory-item-seller-link.d.ts +2 -0
- package/.medusa/server/src/links/inventory-item-seller-link.js +10 -0
- package/.medusa/server/src/links/line-item-commission-line-link.d.ts +2 -0
- package/.medusa/server/src/links/line-item-commission-line-link.js +21 -0
- package/.medusa/server/src/links/order-group-cart-link.d.ts +2 -0
- package/.medusa/server/src/links/order-group-cart-link.js +15 -0
- package/.medusa/server/src/links/order-group-order-link.d.ts +2 -0
- package/.medusa/server/src/links/order-group-order-link.js +14 -0
- package/.medusa/server/src/links/order-payout-link.d.ts +2 -0
- package/.medusa/server/src/links/order-payout-link.js +13 -0
- package/.medusa/server/src/links/order-seller-link.d.ts +2 -0
- package/.medusa/server/src/links/order-seller-link.js +10 -0
- package/.medusa/server/src/links/payout-seller-link.d.ts +2 -0
- package/.medusa/server/src/links/payout-seller-link.js +13 -0
- package/.medusa/server/src/links/price-list-seller-link.d.ts +2 -0
- package/.medusa/server/src/links/price-list-seller-link.js +10 -0
- package/.medusa/server/src/links/product-attribute-value-link.d.ts +2 -0
- package/.medusa/server/src/links/product-attribute-value-link.js +16 -0
- package/.medusa/server/src/links/product-seller-link.d.ts +2 -0
- package/.medusa/server/src/links/product-seller-link.js +10 -0
- package/.medusa/server/src/links/product-vendor-product-attribute-link.d.ts +2 -0
- package/.medusa/server/src/links/product-vendor-product-attribute-link.js +16 -0
- package/.medusa/server/src/links/promotion-seller-link.d.ts +2 -0
- package/.medusa/server/src/links/promotion-seller-link.js +10 -0
- package/.medusa/server/src/links/seller-attribute-link.d.ts +2 -0
- package/.medusa/server/src/links/seller-attribute-link.js +13 -0
- package/.medusa/server/src/links/seller-attribute-value-link.d.ts +2 -0
- package/.medusa/server/src/links/seller-attribute-value-link.js +13 -0
- package/.medusa/server/src/links/seller-customer-link.d.ts +2 -0
- package/.medusa/server/src/links/seller-customer-link.js +10 -0
- package/.medusa/server/src/links/seller-member-rbac-role.d.ts +2 -0
- package/.medusa/server/src/links/seller-member-rbac-role.js +13 -0
- package/.medusa/server/src/links/seller-payout-account-link.d.ts +2 -0
- package/.medusa/server/src/links/seller-payout-account-link.js +10 -0
- package/.medusa/server/src/links/seller-vendor-product-attribute-link.d.ts +2 -0
- package/.medusa/server/src/links/seller-vendor-product-attribute-link.js +13 -0
- package/.medusa/server/src/links/service-zone-seller-link.d.ts +2 -0
- package/.medusa/server/src/links/service-zone-seller-link.js +10 -0
- package/.medusa/server/src/links/shipping-option-seller-link.d.ts +2 -0
- package/.medusa/server/src/links/shipping-option-seller-link.js +10 -0
- package/.medusa/server/src/links/shipping-profile-seller-link.d.ts +2 -0
- package/.medusa/server/src/links/shipping-profile-seller-link.js +10 -0
- package/.medusa/server/src/links/stock-location-seller-link.d.ts +2 -0
- package/.medusa/server/src/links/stock-location-seller-link.js +10 -0
- package/.medusa/server/src/modules/admin-ui/index.d.ts +5 -0
- package/.medusa/server/src/modules/admin-ui/index.js +12 -0
- package/.medusa/server/src/modules/admin-ui/services/admin-ui-module-service.d.ts +6 -0
- package/.medusa/server/src/modules/admin-ui/services/admin-ui-module-service.js +14 -0
- package/.medusa/server/src/modules/attribute/index.d.ts +51 -0
- package/.medusa/server/src/modules/attribute/index.js +15 -0
- package/.medusa/server/src/modules/attribute/migrations/Migration20260325000000.d.ts +5 -0
- package/.medusa/server/src/modules/attribute/migrations/Migration20260325000000.js +32 -0
- package/.medusa/server/src/modules/attribute/models/attribute-possible-value.d.ts +27 -0
- package/.medusa/server/src/modules/attribute/models/attribute-possible-value.js +26 -0
- package/.medusa/server/src/modules/attribute/models/attribute-value.d.ts +27 -0
- package/.medusa/server/src/modules/attribute/models/attribute-value.js +26 -0
- package/.medusa/server/src/modules/attribute/models/attribute.d.ts +28 -0
- package/.medusa/server/src/modules/attribute/models/attribute.js +36 -0
- package/.medusa/server/src/modules/attribute/models/index.d.ts +3 -0
- package/.medusa/server/src/modules/attribute/models/index.js +13 -0
- package/.medusa/server/src/modules/attribute/service.d.ts +105 -0
- package/.medusa/server/src/modules/attribute/service.js +74 -0
- package/.medusa/server/src/modules/codegen/index.d.ts +5 -0
- package/.medusa/server/src/modules/codegen/index.js +12 -0
- package/.medusa/server/src/modules/codegen/services/codegen-module-service.d.ts +13 -0
- package/.medusa/server/src/modules/codegen/services/codegen-module-service.js +51 -0
- package/.medusa/server/src/modules/commission/index.d.ts +49 -0
- package/.medusa/server/src/modules/commission/index.js +12 -0
- package/.medusa/server/src/modules/commission/migrations/Migration20260130132817.d.ts +5 -0
- package/.medusa/server/src/modules/commission/migrations/Migration20260130132817.js +26 -0
- package/.medusa/server/src/modules/commission/models/commission-line.d.ts +10 -0
- package/.medusa/server/src/modules/commission/models/commission-line.js +14 -0
- package/.medusa/server/src/modules/commission/models/commission-rate.d.ts +21 -0
- package/.medusa/server/src/modules/commission/models/commission-rate.js +26 -0
- package/.medusa/server/src/modules/commission/models/commission-rule.d.ts +20 -0
- package/.medusa/server/src/modules/commission/models/commission-rule.js +17 -0
- package/.medusa/server/src/modules/commission/models/index.d.ts +3 -0
- package/.medusa/server/src/modules/commission/models/index.js +13 -0
- package/.medusa/server/src/modules/commission/service.d.ts +63 -0
- package/.medusa/server/src/modules/commission/service.js +184 -0
- package/.medusa/server/src/modules/custom-fields/index.d.ts +8 -0
- package/.medusa/server/src/modules/custom-fields/index.js +15 -0
- package/.medusa/server/src/modules/custom-fields/loaders.d.ts +2 -0
- package/.medusa/server/src/modules/custom-fields/loaders.js +129 -0
- package/.medusa/server/src/modules/custom-fields/services/custom-fields-module-service.d.ts +27 -0
- package/.medusa/server/src/modules/custom-fields/services/custom-fields-module-service.js +139 -0
- package/.medusa/server/src/modules/custom-fields/utils/generate-entity.d.ts +13 -0
- package/.medusa/server/src/modules/custom-fields/utils/generate-entity.js +111 -0
- package/.medusa/server/src/modules/payout/index.d.ts +49 -0
- package/.medusa/server/src/modules/payout/index.js +14 -0
- package/.medusa/server/src/modules/payout/loaders/provider.d.ts +5 -0
- package/.medusa/server/src/modules/payout/loaders/provider.js +28 -0
- package/.medusa/server/src/modules/payout/migrations/Migration20260130132816.d.ts +5 -0
- package/.medusa/server/src/modules/payout/migrations/Migration20260130132816.js +42 -0
- package/.medusa/server/src/modules/payout/migrations/Migration20260216152209.d.ts +5 -0
- package/.medusa/server/src/modules/payout/migrations/Migration20260216152209.js +14 -0
- package/.medusa/server/src/modules/payout/migrations/Migration20260317000000.d.ts +5 -0
- package/.medusa/server/src/modules/payout/migrations/Migration20260317000000.js +26 -0
- package/.medusa/server/src/modules/payout/migrations/Migration20260323170925.d.ts +5 -0
- package/.medusa/server/src/modules/payout/migrations/Migration20260323170925.js +24 -0
- package/.medusa/server/src/modules/payout/models/index.d.ts +3 -0
- package/.medusa/server/src/modules/payout/models/index.js +10 -0
- package/.medusa/server/src/modules/payout/models/onboarding.d.ts +21 -0
- package/.medusa/server/src/modules/payout/models/onboarding.js +14 -0
- package/.medusa/server/src/modules/payout/models/payout-account.d.ts +27 -0
- package/.medusa/server/src/modules/payout/models/payout-account.js +20 -0
- package/.medusa/server/src/modules/payout/models/payout.d.ts +27 -0
- package/.medusa/server/src/modules/payout/models/payout.js +18 -0
- package/.medusa/server/src/modules/payout/providers/index.d.ts +1 -0
- package/.medusa/server/src/modules/payout/providers/index.js +6 -0
- package/.medusa/server/src/modules/payout/providers/system.d.ts +8 -0
- package/.medusa/server/src/modules/payout/providers/system.js +32 -0
- package/.medusa/server/src/modules/payout/services/index.d.ts +2 -0
- package/.medusa/server/src/modules/payout/services/index.js +24 -0
- package/.medusa/server/src/modules/payout/services/payout-module-service.d.ts +106 -0
- package/.medusa/server/src/modules/payout/services/payout-module-service.js +156 -0
- package/.medusa/server/src/modules/payout/services/provider-service.d.ts +17 -0
- package/.medusa/server/src/modules/payout/services/provider-service.js +32 -0
- package/.medusa/server/src/modules/seller/index.d.ts +119 -0
- package/.medusa/server/src/modules/seller/index.js +14 -0
- package/.medusa/server/src/modules/seller/loaders/register-feature-flags.d.ts +8 -0
- package/.medusa/server/src/modules/seller/loaders/register-feature-flags.js +18 -0
- package/.medusa/server/src/modules/seller/migrations/Migration20260324104737.d.ts +5 -0
- package/.medusa/server/src/modules/seller/migrations/Migration20260324104737.js +67 -0
- package/.medusa/server/src/modules/seller/migrations/Migration20260330093053.d.ts +5 -0
- package/.medusa/server/src/modules/seller/migrations/Migration20260330093053.js +16 -0
- package/.medusa/server/src/modules/seller/migrations/Migration20260331113435.d.ts +5 -0
- package/.medusa/server/src/modules/seller/migrations/Migration20260331113435.js +15 -0
- package/.medusa/server/src/modules/seller/migrations/Migration20260401093720.d.ts +5 -0
- package/.medusa/server/src/modules/seller/migrations/Migration20260401093720.js +16 -0
- package/.medusa/server/src/modules/seller/migrations/Migration20260410120000.d.ts +5 -0
- package/.medusa/server/src/modules/seller/migrations/Migration20260410120000.js +16 -0
- package/.medusa/server/src/modules/seller/models/address.d.ts +71 -0
- package/.medusa/server/src/modules/seller/models/address.js +26 -0
- package/.medusa/server/src/modules/seller/models/index.d.ts +8 -0
- package/.medusa/server/src/modules/seller/models/index.js +23 -0
- package/.medusa/server/src/modules/seller/models/member-invite.d.ts +71 -0
- package/.medusa/server/src/modules/seller/models/member-invite.js +33 -0
- package/.medusa/server/src/modules/seller/models/member.d.ts +71 -0
- package/.medusa/server/src/modules/seller/models/member.js +29 -0
- package/.medusa/server/src/modules/seller/models/order-group.d.ts +9 -0
- package/.medusa/server/src/modules/seller/models/order-group.js +13 -0
- package/.medusa/server/src/modules/seller/models/payment-details.d.ts +71 -0
- package/.medusa/server/src/modules/seller/models/payment-details.js +22 -0
- package/.medusa/server/src/modules/seller/models/professional-details.d.ts +71 -0
- package/.medusa/server/src/modules/seller/models/professional-details.js +18 -0
- package/.medusa/server/src/modules/seller/models/seller-member.d.ts +147 -0
- package/.medusa/server/src/modules/seller/models/seller-member.js +29 -0
- package/.medusa/server/src/modules/seller/models/seller.d.ts +72 -0
- package/.medusa/server/src/modules/seller/models/seller.js +83 -0
- package/.medusa/server/src/modules/seller/repositories/index.d.ts +1 -0
- package/.medusa/server/src/modules/seller/repositories/index.js +6 -0
- package/.medusa/server/src/modules/seller/repositories/order-group.d.ts +18 -0
- package/.medusa/server/src/modules/seller/repositories/order-group.js +179 -0
- package/.medusa/server/src/modules/seller/service.d.ts +603 -0
- package/.medusa/server/src/modules/seller/service.js +252 -0
- package/.medusa/server/src/modules/subscription/index.d.ts +35 -0
- package/.medusa/server/src/modules/subscription/index.js +12 -0
- package/.medusa/server/src/modules/subscription/migrations/Migration20260324135903.d.ts +5 -0
- package/.medusa/server/src/modules/subscription/migrations/Migration20260324135903.js +24 -0
- package/.medusa/server/src/modules/subscription/models/index.d.ts +2 -0
- package/.medusa/server/src/modules/subscription/models/index.js +11 -0
- package/.medusa/server/src/modules/subscription/models/subscription-override.d.ts +20 -0
- package/.medusa/server/src/modules/subscription/models/subscription-override.js +36 -0
- package/.medusa/server/src/modules/subscription/models/subscription-plan.d.ts +20 -0
- package/.medusa/server/src/modules/subscription/models/subscription-plan.js +32 -0
- package/.medusa/server/src/modules/subscription/service.d.ts +49 -0
- package/.medusa/server/src/modules/subscription/service.js +17 -0
- package/.medusa/server/src/modules/vendor-product-attribute/index.d.ts +23 -0
- package/.medusa/server/src/modules/vendor-product-attribute/index.js +15 -0
- package/.medusa/server/src/modules/vendor-product-attribute/migrations/Migration20260325000000.d.ts +5 -0
- package/.medusa/server/src/modules/vendor-product-attribute/migrations/Migration20260325000000.js +16 -0
- package/.medusa/server/src/modules/vendor-product-attribute/models/vendor-product-attribute.d.ts +11 -0
- package/.medusa/server/src/modules/vendor-product-attribute/models/vendor-product-attribute.js +24 -0
- package/.medusa/server/src/modules/vendor-product-attribute/service.d.ts +14 -0
- package/.medusa/server/src/modules/vendor-product-attribute/service.js +13 -0
- package/.medusa/server/src/modules/vendor-ui/index.d.ts +5 -0
- package/.medusa/server/src/modules/vendor-ui/index.js +12 -0
- package/.medusa/server/src/modules/vendor-ui/services/vendor-ui-module-service.d.ts +6 -0
- package/.medusa/server/src/modules/vendor-ui/services/vendor-ui-module-service.js +14 -0
- package/.medusa/server/src/policies/seller.d.ts +1 -0
- package/.medusa/server/src/policies/seller.js +22 -0
- package/.medusa/server/src/subscribers/payout-webhook.d.ts +4 -0
- package/.medusa/server/src/subscribers/payout-webhook.js +27 -0
- package/.medusa/server/src/types/seller-context.d.ts +11 -0
- package/.medusa/server/src/types/seller-context.js +3 -0
- package/.medusa/server/src/utils/dashboard/dashboard-base.d.ts +31 -0
- package/.medusa/server/src/utils/dashboard/dashboard-base.js +141 -0
- package/.medusa/server/src/with-mercur.d.ts +11 -0
- package/.medusa/server/src/with-mercur.js +44 -0
- package/.medusa/server/src/workflows/attribute/index.d.ts +2 -0
- package/.medusa/server/src/workflows/attribute/index.js +19 -0
- package/.medusa/server/src/workflows/attribute/steps/create-attribute-possible-values.d.ts +40 -0
- package/.medusa/server/src/workflows/attribute/steps/create-attribute-possible-values.js +18 -0
- package/.medusa/server/src/workflows/attribute/steps/create-attributes.d.ts +5 -0
- package/.medusa/server/src/workflows/attribute/steps/create-attributes.js +32 -0
- package/.medusa/server/src/workflows/attribute/steps/delete-attribute.d.ts +6 -0
- package/.medusa/server/src/workflows/attribute/steps/delete-attribute.js +31 -0
- package/.medusa/server/src/workflows/attribute/steps/index.d.ts +7 -0
- package/.medusa/server/src/workflows/attribute/steps/index.js +24 -0
- package/.medusa/server/src/workflows/attribute/steps/update-attribute-possible-value.d.ts +39 -0
- package/.medusa/server/src/workflows/attribute/steps/update-attribute-possible-value.js +18 -0
- package/.medusa/server/src/workflows/attribute/steps/update-attributes.d.ts +21 -0
- package/.medusa/server/src/workflows/attribute/steps/update-attributes.js +37 -0
- package/.medusa/server/src/workflows/attribute/steps/validate-attribute-delete.d.ts +6 -0
- package/.medusa/server/src/workflows/attribute/steps/validate-attribute-delete.js +50 -0
- package/.medusa/server/src/workflows/attribute/steps/validate-possible-values-removal.d.ts +7 -0
- package/.medusa/server/src/workflows/attribute/steps/validate-possible-values-removal.js +70 -0
- package/.medusa/server/src/workflows/attribute/workflows/create-attribute-possible-values.d.ts +39 -0
- package/.medusa/server/src/workflows/attribute/workflows/create-attribute-possible-values.js +11 -0
- package/.medusa/server/src/workflows/attribute/workflows/create-attributes.d.ts +7 -0
- package/.medusa/server/src/workflows/attribute/workflows/create-attributes.js +40 -0
- package/.medusa/server/src/workflows/attribute/workflows/delete-attribute.d.ts +6 -0
- package/.medusa/server/src/workflows/attribute/workflows/delete-attribute.js +11 -0
- package/.medusa/server/src/workflows/attribute/workflows/index.d.ts +5 -0
- package/.medusa/server/src/workflows/attribute/workflows/index.js +22 -0
- package/.medusa/server/src/workflows/attribute/workflows/update-attribute-possible-value.d.ts +39 -0
- package/.medusa/server/src/workflows/attribute/workflows/update-attribute-possible-value.js +11 -0
- package/.medusa/server/src/workflows/attribute/workflows/update-attributes.d.ts +24 -0
- package/.medusa/server/src/workflows/attribute/workflows/update-attributes.js +69 -0
- package/.medusa/server/src/workflows/campaign/index.d.ts +2 -0
- package/.medusa/server/src/workflows/campaign/index.js +19 -0
- package/.medusa/server/src/workflows/campaign/steps/index.d.ts +1 -0
- package/.medusa/server/src/workflows/campaign/steps/index.js +18 -0
- package/.medusa/server/src/workflows/campaign/steps/link-seller-campaign.d.ts +6 -0
- package/.medusa/server/src/workflows/campaign/steps/link-seller-campaign.js +36 -0
- package/.medusa/server/src/workflows/campaign/workflows/create-seller-campaigns.d.ts +7 -0
- package/.medusa/server/src/workflows/campaign/workflows/create-seller-campaigns.js +20 -0
- package/.medusa/server/src/workflows/campaign/workflows/index.d.ts +1 -0
- package/.medusa/server/src/workflows/campaign/workflows/index.js +18 -0
- package/.medusa/server/src/workflows/cart/index.d.ts +2 -0
- package/.medusa/server/src/workflows/cart/index.js +19 -0
- package/.medusa/server/src/workflows/cart/steps/index.d.ts +2 -0
- package/.medusa/server/src/workflows/cart/steps/index.js +19 -0
- package/.medusa/server/src/workflows/cart/steps/prepare-adjustments-from-promotion-actions.d.ts +6 -0
- package/.medusa/server/src/workflows/cart/steps/prepare-adjustments-from-promotion-actions.js +106 -0
- package/.medusa/server/src/workflows/cart/steps/validate-seller-cart-items.d.ts +15 -0
- package/.medusa/server/src/workflows/cart/steps/validate-seller-cart-items.js +17 -0
- package/.medusa/server/src/workflows/cart/steps/validate-seller-cart-shipping.d.ts +18 -0
- package/.medusa/server/src/workflows/cart/steps/validate-seller-cart-shipping.js +18 -0
- package/.medusa/server/src/workflows/cart/utils/fields.d.ts +3 -0
- package/.medusa/server/src/workflows/cart/utils/fields.js +154 -0
- package/.medusa/server/src/workflows/cart/utils/index.d.ts +4 -0
- package/.medusa/server/src/workflows/cart/utils/index.js +21 -0
- package/.medusa/server/src/workflows/cart/utils/prepare-confirm-inventory-input.d.ts +28 -0
- package/.medusa/server/src/workflows/cart/utils/prepare-confirm-inventory-input.js +165 -0
- package/.medusa/server/src/workflows/cart/utils/prepare-line-item-data.d.ts +71 -0
- package/.medusa/server/src/workflows/cart/utils/prepare-line-item-data.js +90 -0
- package/.medusa/server/src/workflows/cart/utils/schemas.d.ts +3 -0
- package/.medusa/server/src/workflows/cart/utils/schemas.js +7 -0
- package/.medusa/server/src/workflows/cart/workflows/add-seller-shipping-method-to-cart.d.ts +7 -0
- package/.medusa/server/src/workflows/cart/workflows/add-seller-shipping-method-to-cart.js +130 -0
- package/.medusa/server/src/workflows/cart/workflows/complete-cart-with-split-orders.d.ts +13 -0
- package/.medusa/server/src/workflows/cart/workflows/complete-cart-with-split-orders.js +379 -0
- package/.medusa/server/src/workflows/cart/workflows/index.d.ts +4 -0
- package/.medusa/server/src/workflows/cart/workflows/index.js +21 -0
- package/.medusa/server/src/workflows/cart/workflows/list-seller-shipping-options-for-cart.d.ts +21 -0
- package/.medusa/server/src/workflows/cart/workflows/list-seller-shipping-options-for-cart.js +217 -0
- package/.medusa/server/src/workflows/cart/workflows/update-cart-seller-promotions.d.ts +5 -0
- package/.medusa/server/src/workflows/cart/workflows/update-cart-seller-promotions.js +74 -0
- package/.medusa/server/src/workflows/commission/index.d.ts +2 -0
- package/.medusa/server/src/workflows/commission/index.js +19 -0
- package/.medusa/server/src/workflows/commission/steps/create-commission-rates.d.ts +30 -0
- package/.medusa/server/src/workflows/commission/steps/create-commission-rates.js +17 -0
- package/.medusa/server/src/workflows/commission/steps/create-commission-rules.d.ts +34 -0
- package/.medusa/server/src/workflows/commission/steps/create-commission-rules.js +21 -0
- package/.medusa/server/src/workflows/commission/steps/delete-commission-rates.d.ts +2 -0
- package/.medusa/server/src/workflows/commission/steps/delete-commission-rates.js +17 -0
- package/.medusa/server/src/workflows/commission/steps/delete-commission-rules.d.ts +2 -0
- package/.medusa/server/src/workflows/commission/steps/delete-commission-rules.js +24 -0
- package/.medusa/server/src/workflows/commission/steps/get-commission-lines.d.ts +3 -0
- package/.medusa/server/src/workflows/commission/steps/get-commission-lines.js +15 -0
- package/.medusa/server/src/workflows/commission/steps/index.d.ts +8 -0
- package/.medusa/server/src/workflows/commission/steps/index.js +25 -0
- package/.medusa/server/src/workflows/commission/steps/update-commission-rates.d.ts +30 -0
- package/.medusa/server/src/workflows/commission/steps/update-commission-rates.js +17 -0
- package/.medusa/server/src/workflows/commission/steps/update-commission-rules.d.ts +30 -0
- package/.medusa/server/src/workflows/commission/steps/update-commission-rules.js +24 -0
- package/.medusa/server/src/workflows/commission/steps/upsert-commission-lines.d.ts +7 -0
- package/.medusa/server/src/workflows/commission/steps/upsert-commission-lines.js +12 -0
- package/.medusa/server/src/workflows/commission/workflows/batch-commission-rules.d.ts +9 -0
- package/.medusa/server/src/workflows/commission/workflows/batch-commission-rules.js +19 -0
- package/.medusa/server/src/workflows/commission/workflows/create-commission-rates.d.ts +30 -0
- package/.medusa/server/src/workflows/commission/workflows/create-commission-rates.js +11 -0
- package/.medusa/server/src/workflows/commission/workflows/delete-commission-rates.d.ts +8 -0
- package/.medusa/server/src/workflows/commission/workflows/delete-commission-rates.js +16 -0
- package/.medusa/server/src/workflows/commission/workflows/index.d.ts +5 -0
- package/.medusa/server/src/workflows/commission/workflows/index.js +22 -0
- package/.medusa/server/src/workflows/commission/workflows/refresh-order-commission-lines.d.ts +6 -0
- package/.medusa/server/src/workflows/commission/workflows/refresh-order-commission-lines.js +79 -0
- package/.medusa/server/src/workflows/commission/workflows/update-commission-rates.d.ts +30 -0
- package/.medusa/server/src/workflows/commission/workflows/update-commission-rates.js +11 -0
- package/.medusa/server/src/workflows/custom-fields/index.d.ts +1 -0
- package/.medusa/server/src/workflows/custom-fields/index.js +18 -0
- package/.medusa/server/src/workflows/custom-fields/steps/delete-custom-fields.d.ts +6 -0
- package/.medusa/server/src/workflows/custom-fields/steps/delete-custom-fields.js +11 -0
- package/.medusa/server/src/workflows/custom-fields/steps/index.d.ts +2 -0
- package/.medusa/server/src/workflows/custom-fields/steps/index.js +19 -0
- package/.medusa/server/src/workflows/custom-fields/steps/upsert-custom-fields.d.ts +15 -0
- package/.medusa/server/src/workflows/custom-fields/steps/upsert-custom-fields.js +11 -0
- package/.medusa/server/src/workflows/events.d.ts +36 -0
- package/.medusa/server/src/workflows/events.js +40 -0
- package/.medusa/server/src/workflows/hooks/product-created.d.ts +1 -0
- package/.medusa/server/src/workflows/hooks/product-created.js +75 -0
- package/.medusa/server/src/workflows/hooks/product-variant-created.d.ts +1 -0
- package/.medusa/server/src/workflows/hooks/product-variant-created.js +50 -0
- package/.medusa/server/src/workflows/index.d.ts +15 -0
- package/.medusa/server/src/workflows/index.js +32 -0
- package/.medusa/server/src/workflows/inventory-item/index.d.ts +2 -0
- package/.medusa/server/src/workflows/inventory-item/index.js +19 -0
- package/.medusa/server/src/workflows/inventory-item/steps/index.d.ts +1 -0
- package/.medusa/server/src/workflows/inventory-item/steps/index.js +18 -0
- package/.medusa/server/src/workflows/inventory-item/steps/link-seller-inventory-item.d.ts +6 -0
- package/.medusa/server/src/workflows/inventory-item/steps/link-seller-inventory-item.js +36 -0
- package/.medusa/server/src/workflows/inventory-item/workflows/create-seller-inventory-items.d.ts +7 -0
- package/.medusa/server/src/workflows/inventory-item/workflows/create-seller-inventory-items.js +20 -0
- package/.medusa/server/src/workflows/inventory-item/workflows/index.d.ts +1 -0
- package/.medusa/server/src/workflows/inventory-item/workflows/index.js +18 -0
- package/.medusa/server/src/workflows/order-group/index.d.ts +3 -0
- package/.medusa/server/src/workflows/order-group/index.js +20 -0
- package/.medusa/server/src/workflows/order-group/steps/create-order-group.d.ts +12 -0
- package/.medusa/server/src/workflows/order-group/steps/create-order-group.js +17 -0
- package/.medusa/server/src/workflows/order-group/steps/index.d.ts +1 -0
- package/.medusa/server/src/workflows/order-group/steps/index.js +18 -0
- package/.medusa/server/src/workflows/order-group/utils/aggregate-status.d.ts +3 -0
- package/.medusa/server/src/workflows/order-group/utils/aggregate-status.js +141 -0
- package/.medusa/server/src/workflows/order-group/workflows/get-order-group-detail.d.ts +6 -0
- package/.medusa/server/src/workflows/order-group/workflows/get-order-group-detail.js +61 -0
- package/.medusa/server/src/workflows/order-group/workflows/get-order-groups-list.d.ts +10 -0
- package/.medusa/server/src/workflows/order-group/workflows/get-order-groups-list.js +67 -0
- package/.medusa/server/src/workflows/payout/index.d.ts +2 -0
- package/.medusa/server/src/workflows/payout/index.js +19 -0
- package/.medusa/server/src/workflows/payout/steps/create-onboarding.d.ts +2 -0
- package/.medusa/server/src/workflows/payout/steps/create-onboarding.js +11 -0
- package/.medusa/server/src/workflows/payout/steps/create-payout-account.d.ts +2 -0
- package/.medusa/server/src/workflows/payout/steps/create-payout-account.js +11 -0
- package/.medusa/server/src/workflows/payout/steps/create-payout.d.ts +3 -0
- package/.medusa/server/src/workflows/payout/steps/create-payout.js +12 -0
- package/.medusa/server/src/workflows/payout/steps/index.d.ts +6 -0
- package/.medusa/server/src/workflows/payout/steps/index.js +23 -0
- package/.medusa/server/src/workflows/payout/steps/update-payout-account.d.ts +35 -0
- package/.medusa/server/src/workflows/payout/steps/update-payout-account.js +27 -0
- package/.medusa/server/src/workflows/payout/steps/update-payout.d.ts +35 -0
- package/.medusa/server/src/workflows/payout/steps/update-payout.js +27 -0
- package/.medusa/server/src/workflows/payout/steps/validate-seller-payout-account.d.ts +5 -0
- package/.medusa/server/src/workflows/payout/steps/validate-seller-payout-account.js +21 -0
- package/.medusa/server/src/workflows/payout/workflows/create-onboarding.d.ts +2 -0
- package/.medusa/server/src/workflows/payout/workflows/create-onboarding.js +10 -0
- package/.medusa/server/src/workflows/payout/workflows/create-payout-account.d.ts +6 -0
- package/.medusa/server/src/workflows/payout/workflows/create-payout-account.js +28 -0
- package/.medusa/server/src/workflows/payout/workflows/create-payout.d.ts +6 -0
- package/.medusa/server/src/workflows/payout/workflows/create-payout.js +70 -0
- package/.medusa/server/src/workflows/payout/workflows/index.d.ts +4 -0
- package/.medusa/server/src/workflows/payout/workflows/index.js +21 -0
- package/.medusa/server/src/workflows/payout/workflows/process-payout-for-webhook.d.ts +5 -0
- package/.medusa/server/src/workflows/payout/workflows/process-payout-for-webhook.js +67 -0
- package/.medusa/server/src/workflows/price-list/index.d.ts +2 -0
- package/.medusa/server/src/workflows/price-list/index.js +19 -0
- package/.medusa/server/src/workflows/price-list/steps/index.d.ts +1 -0
- package/.medusa/server/src/workflows/price-list/steps/index.js +18 -0
- package/.medusa/server/src/workflows/price-list/steps/link-seller-price-list.d.ts +6 -0
- package/.medusa/server/src/workflows/price-list/steps/link-seller-price-list.js +36 -0
- package/.medusa/server/src/workflows/price-list/workflows/create-seller-price-lists.d.ts +7 -0
- package/.medusa/server/src/workflows/price-list/workflows/create-seller-price-lists.js +20 -0
- package/.medusa/server/src/workflows/price-list/workflows/index.d.ts +1 -0
- package/.medusa/server/src/workflows/price-list/workflows/index.js +18 -0
- package/.medusa/server/src/workflows/product-attribute/steps/create-attribute-value.d.ts +39 -0
- package/.medusa/server/src/workflows/product-attribute/steps/create-attribute-value.js +21 -0
- package/.medusa/server/src/workflows/product-attribute/steps/create-attribute-values.d.ts +12 -0
- package/.medusa/server/src/workflows/product-attribute/steps/create-attribute-values.js +24 -0
- package/.medusa/server/src/workflows/product-attribute/steps/create-vendor-product-attribute.d.ts +14 -0
- package/.medusa/server/src/workflows/product-attribute/steps/create-vendor-product-attribute.js +18 -0
- package/.medusa/server/src/workflows/product-attribute/steps/delete-attribute-value.d.ts +2 -0
- package/.medusa/server/src/workflows/product-attribute/steps/delete-attribute-value.js +18 -0
- package/.medusa/server/src/workflows/product-attribute/steps/index.d.ts +7 -0
- package/.medusa/server/src/workflows/product-attribute/steps/index.js +24 -0
- package/.medusa/server/src/workflows/product-attribute/steps/restore-variant-image-associations.d.ts +10 -0
- package/.medusa/server/src/workflows/product-attribute/steps/restore-variant-image-associations.js +49 -0
- package/.medusa/server/src/workflows/product-attribute/steps/save-variant-image-associations.d.ts +8 -0
- package/.medusa/server/src/workflows/product-attribute/steps/save-variant-image-associations.js +29 -0
- package/.medusa/server/src/workflows/product-attribute/steps/validate-attribute-value.d.ts +3 -0
- package/.medusa/server/src/workflows/product-attribute/steps/validate-attribute-value.js +59 -0
- package/.medusa/server/src/workflows/product-attribute/utils/find-or-create-vendor-attribute.d.ts +13 -0
- package/.medusa/server/src/workflows/product-attribute/utils/find-or-create-vendor-attribute.js +56 -0
- package/.medusa/server/src/workflows/product-attribute/utils/get-applicable-attributes.d.ts +2 -0
- package/.medusa/server/src/workflows/product-attribute/utils/get-applicable-attributes.js +58 -0
- package/.medusa/server/src/workflows/product-attribute/utils/products-created-handler.d.ts +8 -0
- package/.medusa/server/src/workflows/product-attribute/utils/products-created-handler.js +100 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/convert-attribute-to-option.d.ts +3 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/convert-attribute-to-option.js +46 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/convert-option-to-attribute.d.ts +3 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/convert-option-to-attribute.js +29 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/create-and-link-attribute-values.d.ts +16 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/create-and-link-attribute-values.js +72 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/create-attribute-value.d.ts +39 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/create-attribute-value.js +35 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/create-vendor-product-attribute.d.ts +24 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/create-vendor-product-attribute.js +42 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/delete-attribute-value.d.ts +3 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/delete-attribute-value.js +59 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/index.d.ts +8 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/index.js +25 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/sync-product-attribute-values.d.ts +20 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/sync-product-attribute-values.js +67 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/update-product-with-variant-images.d.ts +11 -0
- package/.medusa/server/src/workflows/product-attribute/workflows/update-product-with-variant-images.js +34 -0
- package/.medusa/server/src/workflows/promotion/index.d.ts +2 -0
- package/.medusa/server/src/workflows/promotion/index.js +19 -0
- package/.medusa/server/src/workflows/promotion/steps/index.d.ts +2 -0
- package/.medusa/server/src/workflows/promotion/steps/index.js +19 -0
- package/.medusa/server/src/workflows/promotion/steps/link-seller-promotion.d.ts +6 -0
- package/.medusa/server/src/workflows/promotion/steps/link-seller-promotion.js +36 -0
- package/.medusa/server/src/workflows/promotion/steps/register-usage.d.ts +11 -0
- package/.medusa/server/src/workflows/promotion/steps/register-usage.js +27 -0
- package/.medusa/server/src/workflows/promotion/workflows/create-seller-promotions.d.ts +7 -0
- package/.medusa/server/src/workflows/promotion/workflows/create-seller-promotions.js +20 -0
- package/.medusa/server/src/workflows/promotion/workflows/index.d.ts +1 -0
- package/.medusa/server/src/workflows/promotion/workflows/index.js +18 -0
- package/.medusa/server/src/workflows/seller/index.d.ts +2 -0
- package/.medusa/server/src/workflows/seller/index.js +19 -0
- package/.medusa/server/src/workflows/seller/steps/create-member-invites.d.ts +8 -0
- package/.medusa/server/src/workflows/seller/steps/create-member-invites.js +17 -0
- package/.medusa/server/src/workflows/seller/steps/create-seller-default-roles.d.ts +2 -0
- package/.medusa/server/src/workflows/seller/steps/create-seller-default-roles.js +88 -0
- package/.medusa/server/src/workflows/seller/steps/create-seller-member.d.ts +200 -0
- package/.medusa/server/src/workflows/seller/steps/create-seller-member.js +17 -0
- package/.medusa/server/src/workflows/seller/steps/create-seller.d.ts +2 -0
- package/.medusa/server/src/workflows/seller/steps/create-seller.js +17 -0
- package/.medusa/server/src/workflows/seller/steps/delete-member-invite.d.ts +1 -0
- package/.medusa/server/src/workflows/seller/steps/delete-member-invite.js +11 -0
- package/.medusa/server/src/workflows/seller/steps/delete-seller-member.d.ts +1 -0
- package/.medusa/server/src/workflows/seller/steps/delete-seller-member.js +11 -0
- package/.medusa/server/src/workflows/seller/steps/delete-seller-professional-details.d.ts +3 -0
- package/.medusa/server/src/workflows/seller/steps/delete-seller-professional-details.js +28 -0
- package/.medusa/server/src/workflows/seller/steps/delete-seller.d.ts +1 -0
- package/.medusa/server/src/workflows/seller/steps/delete-seller.js +17 -0
- package/.medusa/server/src/workflows/seller/steps/index.d.ts +23 -0
- package/.medusa/server/src/workflows/seller/steps/index.js +40 -0
- package/.medusa/server/src/workflows/seller/steps/send-invitation-email.d.ts +6 -0
- package/.medusa/server/src/workflows/seller/steps/send-invitation-email.js +62 -0
- package/.medusa/server/src/workflows/seller/steps/update-payment-details.d.ts +5 -0
- package/.medusa/server/src/workflows/seller/steps/update-payment-details.js +36 -0
- package/.medusa/server/src/workflows/seller/steps/update-seller-address.d.ts +5 -0
- package/.medusa/server/src/workflows/seller/steps/update-seller-address.js +36 -0
- package/.medusa/server/src/workflows/seller/steps/update-seller-member.d.ts +200 -0
- package/.medusa/server/src/workflows/seller/steps/update-seller-member.js +19 -0
- package/.medusa/server/src/workflows/seller/steps/update-seller-professional-details.d.ts +5 -0
- package/.medusa/server/src/workflows/seller/steps/update-seller-professional-details.js +36 -0
- package/.medusa/server/src/workflows/seller/steps/update-seller.d.ts +7 -0
- package/.medusa/server/src/workflows/seller/steps/update-seller.js +18 -0
- package/.medusa/server/src/workflows/seller/steps/upsert-member.d.ts +3 -0
- package/.medusa/server/src/workflows/seller/steps/upsert-member.js +11 -0
- package/.medusa/server/src/workflows/seller/steps/validate-approve-seller.d.ts +4 -0
- package/.medusa/server/src/workflows/seller/steps/validate-approve-seller.js +12 -0
- package/.medusa/server/src/workflows/seller/steps/validate-member-invite-token.d.ts +1 -0
- package/.medusa/server/src/workflows/seller/steps/validate-member-invite-token.js +11 -0
- package/.medusa/server/src/workflows/seller/steps/validate-not-owner.d.ts +1 -0
- package/.medusa/server/src/workflows/seller/steps/validate-not-owner.js +14 -0
- package/.medusa/server/src/workflows/seller/steps/validate-remove-seller-member.d.ts +3 -0
- package/.medusa/server/src/workflows/seller/steps/validate-remove-seller-member.js +14 -0
- package/.medusa/server/src/workflows/seller/steps/validate-suspend-seller.d.ts +4 -0
- package/.medusa/server/src/workflows/seller/steps/validate-suspend-seller.js +15 -0
- package/.medusa/server/src/workflows/seller/steps/validate-terminate-seller.d.ts +4 -0
- package/.medusa/server/src/workflows/seller/steps/validate-terminate-seller.js +15 -0
- package/.medusa/server/src/workflows/seller/steps/validate-unsuspend-seller.d.ts +4 -0
- package/.medusa/server/src/workflows/seller/steps/validate-unsuspend-seller.js +12 -0
- package/.medusa/server/src/workflows/seller/steps/validate-unterminate-seller.d.ts +4 -0
- package/.medusa/server/src/workflows/seller/steps/validate-unterminate-seller.js +12 -0
- package/.medusa/server/src/workflows/seller/workflows/accept-member-invite.d.ts +8 -0
- package/.medusa/server/src/workflows/seller/workflows/accept-member-invite.js +32 -0
- package/.medusa/server/src/workflows/seller/workflows/add-seller-member.d.ts +202 -0
- package/.medusa/server/src/workflows/seller/workflows/add-seller-member.js +25 -0
- package/.medusa/server/src/workflows/seller/workflows/approve-seller.d.ts +8 -0
- package/.medusa/server/src/workflows/seller/workflows/approve-seller.js +36 -0
- package/.medusa/server/src/workflows/seller/workflows/create-member-invites.d.ts +8 -0
- package/.medusa/server/src/workflows/seller/workflows/create-member-invites.js +17 -0
- package/.medusa/server/src/workflows/seller/workflows/create-seller-account.d.ts +15 -0
- package/.medusa/server/src/workflows/seller/workflows/create-seller-account.js +72 -0
- package/.medusa/server/src/workflows/seller/workflows/create-seller-defaults.d.ts +2 -0
- package/.medusa/server/src/workflows/seller/workflows/create-seller-defaults.js +11 -0
- package/.medusa/server/src/workflows/seller/workflows/create-sellers.d.ts +3 -0
- package/.medusa/server/src/workflows/seller/workflows/create-sellers.js +31 -0
- package/.medusa/server/src/workflows/seller/workflows/delete-seller-professional-details.d.ts +8 -0
- package/.medusa/server/src/workflows/seller/workflows/delete-seller-professional-details.js +17 -0
- package/.medusa/server/src/workflows/seller/workflows/delete-seller.d.ts +6 -0
- package/.medusa/server/src/workflows/seller/workflows/delete-seller.js +18 -0
- package/.medusa/server/src/workflows/seller/workflows/index.d.ts +20 -0
- package/.medusa/server/src/workflows/seller/workflows/index.js +37 -0
- package/.medusa/server/src/workflows/seller/workflows/invite-seller.d.ts +6 -0
- package/.medusa/server/src/workflows/seller/workflows/invite-seller.js +10 -0
- package/.medusa/server/src/workflows/seller/workflows/remove-seller-member.d.ts +7 -0
- package/.medusa/server/src/workflows/seller/workflows/remove-seller-member.js +21 -0
- package/.medusa/server/src/workflows/seller/workflows/suspend-seller.d.ts +9 -0
- package/.medusa/server/src/workflows/seller/workflows/suspend-seller.js +36 -0
- package/.medusa/server/src/workflows/seller/workflows/terminate-seller.d.ts +9 -0
- package/.medusa/server/src/workflows/seller/workflows/terminate-seller.js +36 -0
- package/.medusa/server/src/workflows/seller/workflows/unsuspend-seller.d.ts +8 -0
- package/.medusa/server/src/workflows/seller/workflows/unsuspend-seller.js +36 -0
- package/.medusa/server/src/workflows/seller/workflows/unterminate-seller.d.ts +8 -0
- package/.medusa/server/src/workflows/seller/workflows/unterminate-seller.js +36 -0
- package/.medusa/server/src/workflows/seller/workflows/update-member-role.d.ts +7 -0
- package/.medusa/server/src/workflows/seller/workflows/update-member-role.js +22 -0
- package/.medusa/server/src/workflows/seller/workflows/update-seller-address.d.ts +3 -0
- package/.medusa/server/src/workflows/seller/workflows/update-seller-address.js +17 -0
- package/.medusa/server/src/workflows/seller/workflows/update-seller-payment-details.d.ts +3 -0
- package/.medusa/server/src/workflows/seller/workflows/update-seller-payment-details.js +17 -0
- package/.medusa/server/src/workflows/seller/workflows/update-seller-professional-details.d.ts +3 -0
- package/.medusa/server/src/workflows/seller/workflows/update-seller-professional-details.js +17 -0
- package/.medusa/server/src/workflows/seller/workflows/update-seller.d.ts +3 -0
- package/.medusa/server/src/workflows/seller/workflows/update-seller.js +22 -0
- package/.medusa/server/src/workflows/shipping-option/index.d.ts +2 -0
- package/.medusa/server/src/workflows/shipping-option/index.js +19 -0
- package/.medusa/server/src/workflows/shipping-option/steps/index.d.ts +1 -0
- package/.medusa/server/src/workflows/shipping-option/steps/index.js +18 -0
- package/.medusa/server/src/workflows/shipping-option/steps/link-seller-shipping-option.d.ts +6 -0
- package/.medusa/server/src/workflows/shipping-option/steps/link-seller-shipping-option.js +36 -0
- package/.medusa/server/src/workflows/shipping-option/workflows/create-seller-shipping-options.d.ts +7 -0
- package/.medusa/server/src/workflows/shipping-option/workflows/create-seller-shipping-options.js +18 -0
- package/.medusa/server/src/workflows/shipping-option/workflows/index.d.ts +1 -0
- package/.medusa/server/src/workflows/shipping-option/workflows/index.js +18 -0
- package/.medusa/server/src/workflows/shipping-profile/index.d.ts +2 -0
- package/.medusa/server/src/workflows/shipping-profile/index.js +19 -0
- package/.medusa/server/src/workflows/shipping-profile/steps/index.d.ts +1 -0
- package/.medusa/server/src/workflows/shipping-profile/steps/index.js +18 -0
- package/.medusa/server/src/workflows/shipping-profile/steps/link-seller-shipping-profile.d.ts +6 -0
- package/.medusa/server/src/workflows/shipping-profile/steps/link-seller-shipping-profile.js +36 -0
- package/.medusa/server/src/workflows/shipping-profile/workflows/create-seller-shipping-profiles.d.ts +9 -0
- package/.medusa/server/src/workflows/shipping-profile/workflows/create-seller-shipping-profiles.js +20 -0
- package/.medusa/server/src/workflows/shipping-profile/workflows/index.d.ts +1 -0
- package/.medusa/server/src/workflows/shipping-profile/workflows/index.js +18 -0
- package/.medusa/server/src/workflows/stock-location/index.d.ts +2 -0
- package/.medusa/server/src/workflows/stock-location/index.js +19 -0
- package/.medusa/server/src/workflows/stock-location/steps/index.d.ts +1 -0
- package/.medusa/server/src/workflows/stock-location/steps/index.js +18 -0
- package/.medusa/server/src/workflows/stock-location/steps/link-seller-stock-location.d.ts +6 -0
- package/.medusa/server/src/workflows/stock-location/steps/link-seller-stock-location.js +36 -0
- package/.medusa/server/src/workflows/stock-location/workflows/create-seller-stock-locations.d.ts +7 -0
- package/.medusa/server/src/workflows/stock-location/workflows/create-seller-stock-locations.js +20 -0
- package/.medusa/server/src/workflows/stock-location/workflows/index.d.ts +1 -0
- package/.medusa/server/src/workflows/stock-location/workflows/index.js +18 -0
- package/.medusa/server/src/workflows/subscription/index.d.ts +2 -0
- package/.medusa/server/src/workflows/subscription/index.js +19 -0
- package/.medusa/server/src/workflows/subscription/steps/create-subscription-overrides.d.ts +31 -0
- package/.medusa/server/src/workflows/subscription/steps/create-subscription-overrides.js +17 -0
- package/.medusa/server/src/workflows/subscription/steps/create-subscription-plans.d.ts +31 -0
- package/.medusa/server/src/workflows/subscription/steps/create-subscription-plans.js +17 -0
- package/.medusa/server/src/workflows/subscription/steps/delete-subscription-overrides.d.ts +2 -0
- package/.medusa/server/src/workflows/subscription/steps/delete-subscription-overrides.js +17 -0
- package/.medusa/server/src/workflows/subscription/steps/delete-subscription-plans.d.ts +2 -0
- package/.medusa/server/src/workflows/subscription/steps/delete-subscription-plans.js +17 -0
- package/.medusa/server/src/workflows/subscription/steps/index.d.ts +6 -0
- package/.medusa/server/src/workflows/subscription/steps/index.js +23 -0
- package/.medusa/server/src/workflows/subscription/steps/update-subscription-overrides.d.ts +31 -0
- package/.medusa/server/src/workflows/subscription/steps/update-subscription-overrides.js +17 -0
- package/.medusa/server/src/workflows/subscription/steps/update-subscription-plans.d.ts +31 -0
- package/.medusa/server/src/workflows/subscription/steps/update-subscription-plans.js +17 -0
- package/.medusa/server/src/workflows/subscription/workflows/create-subscription-overrides.d.ts +31 -0
- package/.medusa/server/src/workflows/subscription/workflows/create-subscription-overrides.js +11 -0
- package/.medusa/server/src/workflows/subscription/workflows/create-subscription-plans.d.ts +31 -0
- package/.medusa/server/src/workflows/subscription/workflows/create-subscription-plans.js +11 -0
- package/.medusa/server/src/workflows/subscription/workflows/delete-subscription-overrides.d.ts +5 -0
- package/.medusa/server/src/workflows/subscription/workflows/delete-subscription-overrides.js +11 -0
- package/.medusa/server/src/workflows/subscription/workflows/delete-subscription-plans.d.ts +5 -0
- package/.medusa/server/src/workflows/subscription/workflows/delete-subscription-plans.js +11 -0
- package/.medusa/server/src/workflows/subscription/workflows/index.d.ts +6 -0
- package/.medusa/server/src/workflows/subscription/workflows/index.js +23 -0
- package/.medusa/server/src/workflows/subscription/workflows/update-subscription-overrides.d.ts +31 -0
- package/.medusa/server/src/workflows/subscription/workflows/update-subscription-overrides.js +11 -0
- package/.medusa/server/src/workflows/subscription/workflows/update-subscription-plans.d.ts +31 -0
- package/.medusa/server/src/workflows/subscription/workflows/update-subscription-plans.js +11 -0
- package/package.json +98 -0
|
@@ -0,0 +1,496 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { SellerRole } from "@mercurjs/types";
|
|
3
|
+
export type AdminGetSellerParamsType = z.infer<typeof AdminGetSellerParams>;
|
|
4
|
+
export declare const AdminGetSellerParams: z.ZodObject<{
|
|
5
|
+
fields: z.ZodOptional<z.ZodString>;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
fields?: string | undefined;
|
|
8
|
+
}, {
|
|
9
|
+
fields?: string | undefined;
|
|
10
|
+
}>;
|
|
11
|
+
export type AdminGetSellersParamsType = z.infer<typeof AdminGetSellersParams>;
|
|
12
|
+
export declare const AdminGetSellersParams: z.ZodObject<{
|
|
13
|
+
fields: z.ZodOptional<z.ZodString>;
|
|
14
|
+
} & {
|
|
15
|
+
offset: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
16
|
+
limit: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
17
|
+
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
18
|
+
with_deleted: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
|
|
19
|
+
} & {
|
|
20
|
+
q: z.ZodOptional<z.ZodString>;
|
|
21
|
+
id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
22
|
+
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
23
|
+
handle: z.ZodOptional<z.ZodString>;
|
|
24
|
+
email: z.ZodOptional<z.ZodString>;
|
|
25
|
+
status: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
26
|
+
is_premium: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
|
|
27
|
+
created_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
28
|
+
$eq: any;
|
|
29
|
+
$ne: any;
|
|
30
|
+
$in: any;
|
|
31
|
+
$nin: any;
|
|
32
|
+
$like: any;
|
|
33
|
+
$ilike: any;
|
|
34
|
+
$re: any;
|
|
35
|
+
$contains: any;
|
|
36
|
+
$gt: any;
|
|
37
|
+
$gte: any;
|
|
38
|
+
$lt: any;
|
|
39
|
+
$lte: any;
|
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
$eq?: any;
|
|
42
|
+
$ne?: any;
|
|
43
|
+
$in?: any;
|
|
44
|
+
$nin?: any;
|
|
45
|
+
$like?: any;
|
|
46
|
+
$ilike?: any;
|
|
47
|
+
$re?: any;
|
|
48
|
+
$contains?: any;
|
|
49
|
+
$gt?: any;
|
|
50
|
+
$gte?: any;
|
|
51
|
+
$lt?: any;
|
|
52
|
+
$lte?: any;
|
|
53
|
+
}, {
|
|
54
|
+
$eq?: any;
|
|
55
|
+
$ne?: any;
|
|
56
|
+
$in?: any;
|
|
57
|
+
$nin?: any;
|
|
58
|
+
$like?: any;
|
|
59
|
+
$ilike?: any;
|
|
60
|
+
$re?: any;
|
|
61
|
+
$contains?: any;
|
|
62
|
+
$gt?: any;
|
|
63
|
+
$gte?: any;
|
|
64
|
+
$lt?: any;
|
|
65
|
+
$lte?: any;
|
|
66
|
+
}>]>>;
|
|
67
|
+
updated_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
68
|
+
$eq: any;
|
|
69
|
+
$ne: any;
|
|
70
|
+
$in: any;
|
|
71
|
+
$nin: any;
|
|
72
|
+
$like: any;
|
|
73
|
+
$ilike: any;
|
|
74
|
+
$re: any;
|
|
75
|
+
$contains: any;
|
|
76
|
+
$gt: any;
|
|
77
|
+
$gte: any;
|
|
78
|
+
$lt: any;
|
|
79
|
+
$lte: any;
|
|
80
|
+
}, "strip", z.ZodTypeAny, {
|
|
81
|
+
$eq?: any;
|
|
82
|
+
$ne?: any;
|
|
83
|
+
$in?: any;
|
|
84
|
+
$nin?: any;
|
|
85
|
+
$like?: any;
|
|
86
|
+
$ilike?: any;
|
|
87
|
+
$re?: any;
|
|
88
|
+
$contains?: any;
|
|
89
|
+
$gt?: any;
|
|
90
|
+
$gte?: any;
|
|
91
|
+
$lt?: any;
|
|
92
|
+
$lte?: any;
|
|
93
|
+
}, {
|
|
94
|
+
$eq?: any;
|
|
95
|
+
$ne?: any;
|
|
96
|
+
$in?: any;
|
|
97
|
+
$nin?: any;
|
|
98
|
+
$like?: any;
|
|
99
|
+
$ilike?: any;
|
|
100
|
+
$re?: any;
|
|
101
|
+
$contains?: any;
|
|
102
|
+
$gt?: any;
|
|
103
|
+
$gte?: any;
|
|
104
|
+
$lt?: any;
|
|
105
|
+
$lte?: any;
|
|
106
|
+
}>]>>;
|
|
107
|
+
}, "strip", z.ZodTypeAny, {
|
|
108
|
+
offset: number;
|
|
109
|
+
limit: number;
|
|
110
|
+
id?: string | string[] | undefined;
|
|
111
|
+
created_at?: any;
|
|
112
|
+
updated_at?: any;
|
|
113
|
+
status?: string | string[] | undefined;
|
|
114
|
+
q?: string | undefined;
|
|
115
|
+
fields?: string | undefined;
|
|
116
|
+
order?: string | undefined;
|
|
117
|
+
with_deleted?: boolean | undefined;
|
|
118
|
+
name?: string | string[] | undefined;
|
|
119
|
+
handle?: string | undefined;
|
|
120
|
+
email?: string | undefined;
|
|
121
|
+
is_premium?: boolean | undefined;
|
|
122
|
+
}, {
|
|
123
|
+
id?: string | string[] | undefined;
|
|
124
|
+
created_at?: any;
|
|
125
|
+
updated_at?: any;
|
|
126
|
+
status?: string | string[] | undefined;
|
|
127
|
+
offset?: unknown;
|
|
128
|
+
limit?: unknown;
|
|
129
|
+
q?: string | undefined;
|
|
130
|
+
fields?: string | undefined;
|
|
131
|
+
order?: string | undefined;
|
|
132
|
+
with_deleted?: unknown;
|
|
133
|
+
name?: string | string[] | undefined;
|
|
134
|
+
handle?: string | undefined;
|
|
135
|
+
email?: string | undefined;
|
|
136
|
+
is_premium?: string | boolean | undefined;
|
|
137
|
+
}>;
|
|
138
|
+
export type AdminGetSellerProductsParamsType = z.infer<typeof AdminGetSellerProductsParams>;
|
|
139
|
+
export declare const AdminGetSellerProductsParams: z.ZodObject<{
|
|
140
|
+
fields: z.ZodOptional<z.ZodString>;
|
|
141
|
+
} & {
|
|
142
|
+
offset: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
143
|
+
limit: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
144
|
+
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
145
|
+
with_deleted: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
|
|
146
|
+
} & {
|
|
147
|
+
q: z.ZodOptional<z.ZodString>;
|
|
148
|
+
id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
149
|
+
status: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
150
|
+
collection_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
151
|
+
sales_channel_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
152
|
+
type_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
153
|
+
tag_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
154
|
+
created_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
155
|
+
$eq: any;
|
|
156
|
+
$ne: any;
|
|
157
|
+
$in: any;
|
|
158
|
+
$nin: any;
|
|
159
|
+
$like: any;
|
|
160
|
+
$ilike: any;
|
|
161
|
+
$re: any;
|
|
162
|
+
$contains: any;
|
|
163
|
+
$gt: any;
|
|
164
|
+
$gte: any;
|
|
165
|
+
$lt: any;
|
|
166
|
+
$lte: any;
|
|
167
|
+
}, "strip", z.ZodTypeAny, {
|
|
168
|
+
$eq?: any;
|
|
169
|
+
$ne?: any;
|
|
170
|
+
$in?: any;
|
|
171
|
+
$nin?: any;
|
|
172
|
+
$like?: any;
|
|
173
|
+
$ilike?: any;
|
|
174
|
+
$re?: any;
|
|
175
|
+
$contains?: any;
|
|
176
|
+
$gt?: any;
|
|
177
|
+
$gte?: any;
|
|
178
|
+
$lt?: any;
|
|
179
|
+
$lte?: any;
|
|
180
|
+
}, {
|
|
181
|
+
$eq?: any;
|
|
182
|
+
$ne?: any;
|
|
183
|
+
$in?: any;
|
|
184
|
+
$nin?: any;
|
|
185
|
+
$like?: any;
|
|
186
|
+
$ilike?: any;
|
|
187
|
+
$re?: any;
|
|
188
|
+
$contains?: any;
|
|
189
|
+
$gt?: any;
|
|
190
|
+
$gte?: any;
|
|
191
|
+
$lt?: any;
|
|
192
|
+
$lte?: any;
|
|
193
|
+
}>]>>;
|
|
194
|
+
updated_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
195
|
+
$eq: any;
|
|
196
|
+
$ne: any;
|
|
197
|
+
$in: any;
|
|
198
|
+
$nin: any;
|
|
199
|
+
$like: any;
|
|
200
|
+
$ilike: any;
|
|
201
|
+
$re: any;
|
|
202
|
+
$contains: any;
|
|
203
|
+
$gt: any;
|
|
204
|
+
$gte: any;
|
|
205
|
+
$lt: any;
|
|
206
|
+
$lte: any;
|
|
207
|
+
}, "strip", z.ZodTypeAny, {
|
|
208
|
+
$eq?: any;
|
|
209
|
+
$ne?: any;
|
|
210
|
+
$in?: any;
|
|
211
|
+
$nin?: any;
|
|
212
|
+
$like?: any;
|
|
213
|
+
$ilike?: any;
|
|
214
|
+
$re?: any;
|
|
215
|
+
$contains?: any;
|
|
216
|
+
$gt?: any;
|
|
217
|
+
$gte?: any;
|
|
218
|
+
$lt?: any;
|
|
219
|
+
$lte?: any;
|
|
220
|
+
}, {
|
|
221
|
+
$eq?: any;
|
|
222
|
+
$ne?: any;
|
|
223
|
+
$in?: any;
|
|
224
|
+
$nin?: any;
|
|
225
|
+
$like?: any;
|
|
226
|
+
$ilike?: any;
|
|
227
|
+
$re?: any;
|
|
228
|
+
$contains?: any;
|
|
229
|
+
$gt?: any;
|
|
230
|
+
$gte?: any;
|
|
231
|
+
$lt?: any;
|
|
232
|
+
$lte?: any;
|
|
233
|
+
}>]>>;
|
|
234
|
+
}, "strip", z.ZodTypeAny, {
|
|
235
|
+
offset: number;
|
|
236
|
+
limit: number;
|
|
237
|
+
id?: string | string[] | undefined;
|
|
238
|
+
created_at?: any;
|
|
239
|
+
updated_at?: any;
|
|
240
|
+
status?: string | string[] | undefined;
|
|
241
|
+
q?: string | undefined;
|
|
242
|
+
sales_channel_id?: string | string[] | undefined;
|
|
243
|
+
fields?: string | undefined;
|
|
244
|
+
order?: string | undefined;
|
|
245
|
+
with_deleted?: boolean | undefined;
|
|
246
|
+
collection_id?: string | string[] | undefined;
|
|
247
|
+
type_id?: string | string[] | undefined;
|
|
248
|
+
tag_id?: string | string[] | undefined;
|
|
249
|
+
}, {
|
|
250
|
+
id?: string | string[] | undefined;
|
|
251
|
+
created_at?: any;
|
|
252
|
+
updated_at?: any;
|
|
253
|
+
status?: string | string[] | undefined;
|
|
254
|
+
offset?: unknown;
|
|
255
|
+
limit?: unknown;
|
|
256
|
+
q?: string | undefined;
|
|
257
|
+
sales_channel_id?: string | string[] | undefined;
|
|
258
|
+
fields?: string | undefined;
|
|
259
|
+
order?: string | undefined;
|
|
260
|
+
with_deleted?: unknown;
|
|
261
|
+
collection_id?: string | string[] | undefined;
|
|
262
|
+
type_id?: string | string[] | undefined;
|
|
263
|
+
tag_id?: string | string[] | undefined;
|
|
264
|
+
}>;
|
|
265
|
+
export type AdminCreateSellerType = z.infer<typeof AdminCreateSeller>;
|
|
266
|
+
export declare const AdminCreateSeller: z.ZodObject<{
|
|
267
|
+
name: z.ZodString;
|
|
268
|
+
handle: z.ZodOptional<z.ZodString>;
|
|
269
|
+
email: z.ZodString;
|
|
270
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
271
|
+
logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
272
|
+
banner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
273
|
+
website_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
274
|
+
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
275
|
+
currency_code: z.ZodString;
|
|
276
|
+
status: z.ZodOptional<z.ZodString>;
|
|
277
|
+
status_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
278
|
+
is_premium: z.ZodOptional<z.ZodBoolean>;
|
|
279
|
+
closed_from: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
280
|
+
closed_to: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
281
|
+
closure_note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
282
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
283
|
+
member: z.ZodObject<{
|
|
284
|
+
email: z.ZodString;
|
|
285
|
+
}, "strip", z.ZodTypeAny, {
|
|
286
|
+
email: string;
|
|
287
|
+
}, {
|
|
288
|
+
email: string;
|
|
289
|
+
}>;
|
|
290
|
+
}, "strip", z.ZodTypeAny, {
|
|
291
|
+
currency_code: string;
|
|
292
|
+
name: string;
|
|
293
|
+
email: string;
|
|
294
|
+
member: {
|
|
295
|
+
email: string;
|
|
296
|
+
};
|
|
297
|
+
status?: string | undefined;
|
|
298
|
+
handle?: string | undefined;
|
|
299
|
+
description?: string | null | undefined;
|
|
300
|
+
logo?: string | null | undefined;
|
|
301
|
+
banner?: string | null | undefined;
|
|
302
|
+
website_url?: string | null | undefined;
|
|
303
|
+
external_id?: string | null | undefined;
|
|
304
|
+
status_reason?: string | null | undefined;
|
|
305
|
+
is_premium?: boolean | undefined;
|
|
306
|
+
closed_from?: Date | null | undefined;
|
|
307
|
+
closed_to?: Date | null | undefined;
|
|
308
|
+
closure_note?: string | null | undefined;
|
|
309
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
310
|
+
}, {
|
|
311
|
+
currency_code: string;
|
|
312
|
+
name: string;
|
|
313
|
+
email: string;
|
|
314
|
+
member: {
|
|
315
|
+
email: string;
|
|
316
|
+
};
|
|
317
|
+
status?: string | undefined;
|
|
318
|
+
handle?: string | undefined;
|
|
319
|
+
description?: string | null | undefined;
|
|
320
|
+
logo?: string | null | undefined;
|
|
321
|
+
banner?: string | null | undefined;
|
|
322
|
+
website_url?: string | null | undefined;
|
|
323
|
+
external_id?: string | null | undefined;
|
|
324
|
+
status_reason?: string | null | undefined;
|
|
325
|
+
is_premium?: boolean | undefined;
|
|
326
|
+
closed_from?: Date | null | undefined;
|
|
327
|
+
closed_to?: Date | null | undefined;
|
|
328
|
+
closure_note?: string | null | undefined;
|
|
329
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
330
|
+
}>;
|
|
331
|
+
export type AdminUpdateSellerType = z.infer<typeof AdminUpdateSeller>;
|
|
332
|
+
export declare const AdminUpdateSeller: z.ZodObject<{
|
|
333
|
+
name: z.ZodOptional<z.ZodString>;
|
|
334
|
+
handle: z.ZodOptional<z.ZodString>;
|
|
335
|
+
email: z.ZodOptional<z.ZodString>;
|
|
336
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
337
|
+
logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
338
|
+
banner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
339
|
+
website_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
340
|
+
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
341
|
+
status: z.ZodOptional<z.ZodString>;
|
|
342
|
+
status_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
343
|
+
is_premium: z.ZodOptional<z.ZodBoolean>;
|
|
344
|
+
closed_from: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
345
|
+
closed_to: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
346
|
+
closure_note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
347
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
348
|
+
}, "strip", z.ZodTypeAny, {
|
|
349
|
+
status?: string | undefined;
|
|
350
|
+
name?: string | undefined;
|
|
351
|
+
handle?: string | undefined;
|
|
352
|
+
email?: string | undefined;
|
|
353
|
+
description?: string | null | undefined;
|
|
354
|
+
logo?: string | null | undefined;
|
|
355
|
+
banner?: string | null | undefined;
|
|
356
|
+
website_url?: string | null | undefined;
|
|
357
|
+
external_id?: string | null | undefined;
|
|
358
|
+
status_reason?: string | null | undefined;
|
|
359
|
+
is_premium?: boolean | undefined;
|
|
360
|
+
closed_from?: Date | null | undefined;
|
|
361
|
+
closed_to?: Date | null | undefined;
|
|
362
|
+
closure_note?: string | null | undefined;
|
|
363
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
364
|
+
}, {
|
|
365
|
+
status?: string | undefined;
|
|
366
|
+
name?: string | undefined;
|
|
367
|
+
handle?: string | undefined;
|
|
368
|
+
email?: string | undefined;
|
|
369
|
+
description?: string | null | undefined;
|
|
370
|
+
logo?: string | null | undefined;
|
|
371
|
+
banner?: string | null | undefined;
|
|
372
|
+
website_url?: string | null | undefined;
|
|
373
|
+
external_id?: string | null | undefined;
|
|
374
|
+
status_reason?: string | null | undefined;
|
|
375
|
+
is_premium?: boolean | undefined;
|
|
376
|
+
closed_from?: Date | null | undefined;
|
|
377
|
+
closed_to?: Date | null | undefined;
|
|
378
|
+
closure_note?: string | null | undefined;
|
|
379
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
380
|
+
}>;
|
|
381
|
+
export type AdminSuspendSellerType = z.infer<typeof AdminSuspendSeller>;
|
|
382
|
+
export declare const AdminSuspendSeller: z.ZodObject<{
|
|
383
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
384
|
+
}, "strip", z.ZodTypeAny, {
|
|
385
|
+
reason?: string | undefined;
|
|
386
|
+
}, {
|
|
387
|
+
reason?: string | undefined;
|
|
388
|
+
}>;
|
|
389
|
+
export type AdminTerminateSellerType = z.infer<typeof AdminTerminateSeller>;
|
|
390
|
+
export declare const AdminTerminateSeller: z.ZodObject<{
|
|
391
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
392
|
+
}, "strip", z.ZodTypeAny, {
|
|
393
|
+
reason?: string | undefined;
|
|
394
|
+
}, {
|
|
395
|
+
reason?: string | undefined;
|
|
396
|
+
}>;
|
|
397
|
+
export type AdminAddSellerMemberType = z.infer<typeof AdminAddSellerMember>;
|
|
398
|
+
export declare const AdminAddSellerMember: z.ZodObject<{
|
|
399
|
+
member_id: z.ZodString;
|
|
400
|
+
role_id: z.ZodNativeEnum<typeof SellerRole>;
|
|
401
|
+
}, "strip", z.ZodTypeAny, {
|
|
402
|
+
role_id: SellerRole;
|
|
403
|
+
member_id: string;
|
|
404
|
+
}, {
|
|
405
|
+
role_id: SellerRole;
|
|
406
|
+
member_id: string;
|
|
407
|
+
}>;
|
|
408
|
+
export type AdminInviteSellerMemberType = z.infer<typeof AdminInviteSellerMember>;
|
|
409
|
+
export declare const AdminInviteSellerMember: z.ZodObject<{
|
|
410
|
+
email: z.ZodString;
|
|
411
|
+
role_id: z.ZodNativeEnum<typeof SellerRole>;
|
|
412
|
+
}, "strip", z.ZodTypeAny, {
|
|
413
|
+
email: string;
|
|
414
|
+
role_id: SellerRole;
|
|
415
|
+
}, {
|
|
416
|
+
email: string;
|
|
417
|
+
role_id: SellerRole;
|
|
418
|
+
}>;
|
|
419
|
+
export type AdminUpsertSellerAddressType = z.infer<typeof AdminUpsertSellerAddress>;
|
|
420
|
+
export declare const AdminUpsertSellerAddress: z.ZodObject<{
|
|
421
|
+
company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
422
|
+
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
423
|
+
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
424
|
+
address_1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
425
|
+
address_2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
426
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
427
|
+
country_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
428
|
+
province: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
429
|
+
postal_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
430
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
431
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
432
|
+
}, "strip", z.ZodTypeAny, {
|
|
433
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
434
|
+
company?: string | null | undefined;
|
|
435
|
+
first_name?: string | null | undefined;
|
|
436
|
+
last_name?: string | null | undefined;
|
|
437
|
+
address_1?: string | null | undefined;
|
|
438
|
+
address_2?: string | null | undefined;
|
|
439
|
+
city?: string | null | undefined;
|
|
440
|
+
country_code?: string | null | undefined;
|
|
441
|
+
province?: string | null | undefined;
|
|
442
|
+
postal_code?: string | null | undefined;
|
|
443
|
+
phone?: string | null | undefined;
|
|
444
|
+
}, {
|
|
445
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
446
|
+
company?: string | null | undefined;
|
|
447
|
+
first_name?: string | null | undefined;
|
|
448
|
+
last_name?: string | null | undefined;
|
|
449
|
+
address_1?: string | null | undefined;
|
|
450
|
+
address_2?: string | null | undefined;
|
|
451
|
+
city?: string | null | undefined;
|
|
452
|
+
country_code?: string | null | undefined;
|
|
453
|
+
province?: string | null | undefined;
|
|
454
|
+
postal_code?: string | null | undefined;
|
|
455
|
+
phone?: string | null | undefined;
|
|
456
|
+
}>;
|
|
457
|
+
export type AdminUpsertSellerPaymentDetailsType = z.infer<typeof AdminUpsertSellerPaymentDetails>;
|
|
458
|
+
export declare const AdminUpsertSellerPaymentDetails: z.ZodObject<{
|
|
459
|
+
country_code: z.ZodOptional<z.ZodString>;
|
|
460
|
+
holder_name: z.ZodOptional<z.ZodString>;
|
|
461
|
+
bank_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
462
|
+
iban: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
463
|
+
bic: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
464
|
+
routing_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
465
|
+
account_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
466
|
+
}, "strip", z.ZodTypeAny, {
|
|
467
|
+
country_code?: string | undefined;
|
|
468
|
+
holder_name?: string | undefined;
|
|
469
|
+
bank_name?: string | null | undefined;
|
|
470
|
+
iban?: string | null | undefined;
|
|
471
|
+
bic?: string | null | undefined;
|
|
472
|
+
routing_number?: string | null | undefined;
|
|
473
|
+
account_number?: string | null | undefined;
|
|
474
|
+
}, {
|
|
475
|
+
country_code?: string | undefined;
|
|
476
|
+
holder_name?: string | undefined;
|
|
477
|
+
bank_name?: string | null | undefined;
|
|
478
|
+
iban?: string | null | undefined;
|
|
479
|
+
bic?: string | null | undefined;
|
|
480
|
+
routing_number?: string | null | undefined;
|
|
481
|
+
account_number?: string | null | undefined;
|
|
482
|
+
}>;
|
|
483
|
+
export type AdminUpsertSellerProfessionalDetailsType = z.infer<typeof AdminUpsertSellerProfessionalDetails>;
|
|
484
|
+
export declare const AdminUpsertSellerProfessionalDetails: z.ZodObject<{
|
|
485
|
+
corporate_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
486
|
+
registration_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
487
|
+
tax_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
488
|
+
}, "strip", z.ZodTypeAny, {
|
|
489
|
+
corporate_name?: string | null | undefined;
|
|
490
|
+
registration_number?: string | null | undefined;
|
|
491
|
+
tax_id?: string | null | undefined;
|
|
492
|
+
}, {
|
|
493
|
+
corporate_name?: string | null | undefined;
|
|
494
|
+
registration_number?: string | null | undefined;
|
|
495
|
+
tax_id?: string | null | undefined;
|
|
496
|
+
}>;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminUpsertSellerProfessionalDetails = exports.AdminUpsertSellerPaymentDetails = exports.AdminUpsertSellerAddress = exports.AdminInviteSellerMember = exports.AdminAddSellerMember = exports.AdminTerminateSeller = exports.AdminSuspendSeller = exports.AdminUpdateSeller = exports.AdminCreateSeller = exports.AdminGetSellerProductsParams = exports.AdminGetSellersParams = exports.AdminGetSellerParams = 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
|
+
const types_1 = require("@mercurjs/types");
|
|
8
|
+
exports.AdminGetSellerParams = (0, validators_1.createSelectParams)();
|
|
9
|
+
exports.AdminGetSellersParams = (0, validators_1.createFindParams)({
|
|
10
|
+
offset: 0,
|
|
11
|
+
limit: 50,
|
|
12
|
+
}).merge(zod_1.z.object({
|
|
13
|
+
q: zod_1.z.string().optional(),
|
|
14
|
+
id: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
|
|
15
|
+
name: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
|
|
16
|
+
handle: zod_1.z.string().optional(),
|
|
17
|
+
email: zod_1.z.string().optional(),
|
|
18
|
+
status: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
|
|
19
|
+
is_premium: (0, common_1.booleanString)().optional(),
|
|
20
|
+
created_at: (0, validators_1.createOperatorMap)().optional(),
|
|
21
|
+
updated_at: (0, validators_1.createOperatorMap)().optional(),
|
|
22
|
+
}));
|
|
23
|
+
exports.AdminGetSellerProductsParams = (0, validators_1.createFindParams)({
|
|
24
|
+
offset: 0,
|
|
25
|
+
limit: 50,
|
|
26
|
+
}).merge(zod_1.z.object({
|
|
27
|
+
q: zod_1.z.string().optional(),
|
|
28
|
+
id: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
|
|
29
|
+
status: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
|
|
30
|
+
collection_id: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
|
|
31
|
+
sales_channel_id: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
|
|
32
|
+
type_id: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
|
|
33
|
+
tag_id: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
|
|
34
|
+
created_at: (0, validators_1.createOperatorMap)().optional(),
|
|
35
|
+
updated_at: (0, validators_1.createOperatorMap)().optional(),
|
|
36
|
+
}));
|
|
37
|
+
exports.AdminCreateSeller = zod_1.z.object({
|
|
38
|
+
name: zod_1.z.string(),
|
|
39
|
+
handle: zod_1.z.string().optional(),
|
|
40
|
+
email: zod_1.z.string().email(),
|
|
41
|
+
description: zod_1.z.string().nullable().optional(),
|
|
42
|
+
logo: zod_1.z.string().url().nullable().optional(),
|
|
43
|
+
banner: zod_1.z.string().url().nullable().optional(),
|
|
44
|
+
website_url: zod_1.z.string().nullable().optional(),
|
|
45
|
+
external_id: zod_1.z.string().nullable().optional(),
|
|
46
|
+
currency_code: zod_1.z.string(),
|
|
47
|
+
status: zod_1.z.string().optional(),
|
|
48
|
+
status_reason: zod_1.z.string().nullable().optional(),
|
|
49
|
+
is_premium: zod_1.z.boolean().optional(),
|
|
50
|
+
closed_from: zod_1.z.coerce.date().nullable().optional(),
|
|
51
|
+
closed_to: zod_1.z.coerce.date().nullable().optional(),
|
|
52
|
+
closure_note: zod_1.z.string().nullable().optional(),
|
|
53
|
+
metadata: zod_1.z.record(zod_1.z.unknown()).nullable().optional(),
|
|
54
|
+
member: zod_1.z.object({
|
|
55
|
+
email: zod_1.z.string().email(),
|
|
56
|
+
}),
|
|
57
|
+
});
|
|
58
|
+
exports.AdminUpdateSeller = zod_1.z.object({
|
|
59
|
+
name: zod_1.z.string().optional(),
|
|
60
|
+
handle: zod_1.z.string().optional(),
|
|
61
|
+
email: zod_1.z.string().email().optional(),
|
|
62
|
+
description: zod_1.z.string().nullable().optional(),
|
|
63
|
+
logo: zod_1.z.string().url().nullable().optional(),
|
|
64
|
+
banner: zod_1.z.string().url().nullable().optional(),
|
|
65
|
+
website_url: zod_1.z.string().nullable().optional(),
|
|
66
|
+
external_id: zod_1.z.string().nullable().optional(),
|
|
67
|
+
status: zod_1.z.string().optional(),
|
|
68
|
+
status_reason: zod_1.z.string().nullable().optional(),
|
|
69
|
+
is_premium: zod_1.z.boolean().optional(),
|
|
70
|
+
closed_from: zod_1.z.coerce.date().nullable().optional(),
|
|
71
|
+
closed_to: zod_1.z.coerce.date().nullable().optional(),
|
|
72
|
+
closure_note: zod_1.z.string().nullable().optional(),
|
|
73
|
+
metadata: zod_1.z.record(zod_1.z.unknown()).nullable().optional(),
|
|
74
|
+
});
|
|
75
|
+
exports.AdminSuspendSeller = zod_1.z.object({
|
|
76
|
+
reason: zod_1.z.string().optional(),
|
|
77
|
+
});
|
|
78
|
+
exports.AdminTerminateSeller = zod_1.z.object({
|
|
79
|
+
reason: zod_1.z.string().optional(),
|
|
80
|
+
});
|
|
81
|
+
exports.AdminAddSellerMember = zod_1.z.object({
|
|
82
|
+
member_id: zod_1.z.string(),
|
|
83
|
+
role_id: zod_1.z.nativeEnum(types_1.SellerRole),
|
|
84
|
+
});
|
|
85
|
+
exports.AdminInviteSellerMember = zod_1.z.object({
|
|
86
|
+
email: zod_1.z.string().email(),
|
|
87
|
+
role_id: zod_1.z.nativeEnum(types_1.SellerRole),
|
|
88
|
+
});
|
|
89
|
+
exports.AdminUpsertSellerAddress = zod_1.z.object({
|
|
90
|
+
company: zod_1.z.string().nullable().optional(),
|
|
91
|
+
first_name: zod_1.z.string().nullable().optional(),
|
|
92
|
+
last_name: zod_1.z.string().nullable().optional(),
|
|
93
|
+
address_1: zod_1.z.string().nullable().optional(),
|
|
94
|
+
address_2: zod_1.z.string().nullable().optional(),
|
|
95
|
+
city: zod_1.z.string().nullable().optional(),
|
|
96
|
+
country_code: zod_1.z.string().nullable().optional(),
|
|
97
|
+
province: zod_1.z.string().nullable().optional(),
|
|
98
|
+
postal_code: zod_1.z.string().nullable().optional(),
|
|
99
|
+
phone: zod_1.z.string().nullable().optional(),
|
|
100
|
+
metadata: zod_1.z.record(zod_1.z.unknown()).nullable().optional(),
|
|
101
|
+
});
|
|
102
|
+
exports.AdminUpsertSellerPaymentDetails = zod_1.z.object({
|
|
103
|
+
country_code: zod_1.z.string().optional(),
|
|
104
|
+
holder_name: zod_1.z.string().optional(),
|
|
105
|
+
bank_name: zod_1.z.string().nullable().optional(),
|
|
106
|
+
iban: zod_1.z.string().nullable().optional(),
|
|
107
|
+
bic: zod_1.z.string().nullable().optional(),
|
|
108
|
+
routing_number: zod_1.z.string().nullable().optional(),
|
|
109
|
+
account_number: zod_1.z.string().nullable().optional(),
|
|
110
|
+
});
|
|
111
|
+
exports.AdminUpsertSellerProfessionalDetails = zod_1.z.object({
|
|
112
|
+
corporate_name: zod_1.z.string().nullable().optional(),
|
|
113
|
+
registration_number: zod_1.z.string().nullable().optional(),
|
|
114
|
+
tax_id: zod_1.z.string().nullable().optional(),
|
|
115
|
+
});
|
|
116
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdG9ycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9hcGkvYWRtaW4vc2VsbGVycy92YWxpZGF0b3JzLnR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BRSxPQUFDLENBQUMsTUFBTSxFQUFFLENBQUMsUUFBUSxFQUFFLENBQUMsUUFBUSxFQUFFO0lBQ2hELG1CQUFtQixFQUFFLE9BQUMsQ0FBQyxNQUFNLEVBQUUsQ0FBQyxRQUFRLEVBQUUsQ0FBQyxRQUFRLEVBQUU7SUFDckQsTUFBTSxFQUFFLE9BQUMsQ0FBQyxNQUFNLEVBQUUsQ0FBQyxRQUFRLEVBQUUsQ0FBQyxRQUFRLEVBQUU7Q0FDekMsQ0FBQyxDQUFBIn0=
|
package/.medusa/server/src/api/admin/subscription-plans/[id]/overrides/[override_id]/route.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AuthenticatedMedusaRequest, MedusaResponse } from "@medusajs/framework/http";
|
|
2
|
+
import { HttpTypes } from "@mercurjs/types";
|
|
3
|
+
import { AdminUpdateSubscriptionOverrideType } from "../../../validators";
|
|
4
|
+
export declare const GET: (req: AuthenticatedMedusaRequest, res: MedusaResponse<HttpTypes.AdminSubscriptionOverrideResponse>) => Promise<void>;
|
|
5
|
+
export declare const POST: (req: AuthenticatedMedusaRequest<AdminUpdateSubscriptionOverrideType>, res: MedusaResponse<HttpTypes.AdminSubscriptionOverrideResponse>) => Promise<void>;
|
|
6
|
+
export declare const DELETE: (req: AuthenticatedMedusaRequest, res: MedusaResponse<HttpTypes.AdminSubscriptionOverrideDeleteResponse>) => Promise<void>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DELETE = exports.POST = exports.GET = void 0;
|
|
4
|
+
const utils_1 = require("@medusajs/framework/utils");
|
|
5
|
+
const subscription_1 = require("../../../../../../workflows/subscription");
|
|
6
|
+
const GET = async (req, res) => {
|
|
7
|
+
const query = req.scope.resolve(utils_1.ContainerRegistrationKeys.QUERY);
|
|
8
|
+
const { data: [subscription_override], } = await query.graph({
|
|
9
|
+
entity: "subscription_override",
|
|
10
|
+
fields: req.queryConfig.fields,
|
|
11
|
+
filters: { id: req.params.override_id },
|
|
12
|
+
});
|
|
13
|
+
if (!subscription_override) {
|
|
14
|
+
throw new utils_1.MedusaError(utils_1.MedusaError.Types.NOT_FOUND, `Subscription override with id ${req.params.override_id} was not found`);
|
|
15
|
+
}
|
|
16
|
+
res.json({ subscription_override });
|
|
17
|
+
};
|
|
18
|
+
exports.GET = GET;
|
|
19
|
+
const POST = async (req, res) => {
|
|
20
|
+
const query = req.scope.resolve(utils_1.ContainerRegistrationKeys.QUERY);
|
|
21
|
+
const { result } = await (0, subscription_1.updateSubscriptionOverridesWorkflow)(req.scope).run({
|
|
22
|
+
input: [{ id: req.params.override_id, ...req.validatedBody }],
|
|
23
|
+
});
|
|
24
|
+
const { data: [subscription_override], } = await query.graph({
|
|
25
|
+
entity: "subscription_override",
|
|
26
|
+
fields: req.queryConfig.fields,
|
|
27
|
+
filters: { id: result[0].id },
|
|
28
|
+
});
|
|
29
|
+
res.json({ subscription_override });
|
|
30
|
+
};
|
|
31
|
+
exports.POST = POST;
|
|
32
|
+
const DELETE = async (req, res) => {
|
|
33
|
+
await (0, subscription_1.deleteSubscriptionOverridesWorkflow)(req.scope).run({
|
|
34
|
+
input: { ids: [req.params.override_id] },
|
|
35
|
+
});
|
|
36
|
+
res.json({
|
|
37
|
+
id: req.params.override_id,
|
|
38
|
+
object: "subscription_override",
|
|
39
|
+
deleted: true,
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
exports.DELETE = DELETE;
|
|
43
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm91dGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBpL2FkbWluL3N1YnNjcmlwdGlvbi1wbGFucy9baWRdL292ZXJyaWRlcy9bb3ZlcnJpZGVfaWRdL3JvdXRlLnRzIl0sIm5h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