@mercurjs/b2c-core 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.medusa/server/src/admin/index.js +38862 -0
- package/.medusa/server/src/admin/index.mjs +38846 -0
- package/.medusa/server/src/api/admin/attributes/[id]/route.d.ts +177 -0
- package/.medusa/server/src/api/admin/attributes/[id]/route.js +240 -0
- package/.medusa/server/src/api/admin/attributes/[id]/values/[value_id]/route.d.ts +116 -0
- package/.medusa/server/src/api/admin/attributes/[id]/values/[value_id]/route.js +152 -0
- package/.medusa/server/src/api/admin/attributes/[id]/values/route.d.ts +111 -0
- package/.medusa/server/src/api/admin/attributes/[id]/values/route.js +151 -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 +194 -0
- package/.medusa/server/src/api/admin/attributes/route.js +241 -0
- package/.medusa/server/src/api/admin/attributes/validators.d.ts +497 -0
- package/.medusa/server/src/api/admin/attributes/validators.js +80 -0
- package/.medusa/server/src/api/admin/configuration/[id]/route.d.ts +37 -0
- package/.medusa/server/src/api/admin/configuration/[id]/route.js +47 -0
- package/.medusa/server/src/api/admin/configuration/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/admin/configuration/middlewares.js +23 -0
- package/.medusa/server/src/api/admin/configuration/route.d.ts +77 -0
- package/.medusa/server/src/api/admin/configuration/route.js +102 -0
- package/.medusa/server/src/api/admin/configuration/validators.d.ts +59 -0
- package/.medusa/server/src/api/admin/configuration/validators.js +18 -0
- package/.medusa/server/src/api/admin/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/admin/middlewares.js +16 -0
- package/.medusa/server/src/api/admin/notifications/route.d.ts +55 -0
- package/.medusa/server/src/api/admin/notifications/route.js +67 -0
- package/.medusa/server/src/api/admin/order-sets/[id]/route.d.ts +47 -0
- package/.medusa/server/src/api/admin/order-sets/[id]/route.js +61 -0
- package/.medusa/server/src/api/admin/order-sets/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/admin/order-sets/middlewares.js +23 -0
- package/.medusa/server/src/api/admin/order-sets/query-config.d.ts +11 -0
- package/.medusa/server/src/api/admin/order-sets/query-config.js +68 -0
- package/.medusa/server/src/api/admin/order-sets/route.d.ts +60 -0
- package/.medusa/server/src/api/admin/order-sets/route.js +97 -0
- package/.medusa/server/src/api/admin/order-sets/validators.d.ts +24 -0
- package/.medusa/server/src/api/admin/order-sets/validators.js +12 -0
- package/.medusa/server/src/api/admin/orders/[id]/route.d.ts +4 -0
- package/.medusa/server/src/api/admin/orders/[id]/route.js +20 -0
- package/.medusa/server/src/api/admin/products/[id]/applicable-attributes/route.d.ts +50 -0
- package/.medusa/server/src/api/admin/products/[id]/applicable-attributes/route.js +58 -0
- package/.medusa/server/src/api/admin/products/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/admin/products/middlewares.js +16 -0
- package/.medusa/server/src/api/admin/products/query-config.d.ts +10 -0
- package/.medusa/server/src/api/admin/products/query-config.js +24 -0
- package/.medusa/server/src/api/admin/products/validators.d.ts +1803 -0
- package/.medusa/server/src/api/admin/products/validators.js +236 -0
- package/.medusa/server/src/api/admin/sellers/[id]/customer-groups/route.d.ts +73 -0
- package/.medusa/server/src/api/admin/sellers/[id]/customer-groups/route.js +100 -0
- package/.medusa/server/src/api/admin/sellers/[id]/orders/route.d.ts +73 -0
- package/.medusa/server/src/api/admin/sellers/[id]/orders/route.js +113 -0
- package/.medusa/server/src/api/admin/sellers/[id]/products/route.d.ts +73 -0
- package/.medusa/server/src/api/admin/sellers/[id]/products/route.js +100 -0
- package/.medusa/server/src/api/admin/sellers/[id]/route.d.ts +134 -0
- package/.medusa/server/src/api/admin/sellers/[id]/route.js +167 -0
- package/.medusa/server/src/api/admin/sellers/invite/route.d.ts +52 -0
- package/.medusa/server/src/api/admin/sellers/invite/route.js +61 -0
- package/.medusa/server/src/api/admin/sellers/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/admin/sellers/middlewares.js +58 -0
- package/.medusa/server/src/api/admin/sellers/query-config.d.ts +31 -0
- package/.medusa/server/src/api/admin/sellers/query-config.js +43 -0
- package/.medusa/server/src/api/admin/sellers/route.d.ts +54 -0
- package/.medusa/server/src/api/admin/sellers/route.js +71 -0
- package/.medusa/server/src/api/admin/sellers/validators.d.ts +134 -0
- package/.medusa/server/src/api/admin/sellers/validators.js +45 -0
- package/.medusa/server/src/api/admin/stock-locations/route.d.ts +2 -0
- package/.medusa/server/src/api/admin/stock-locations/route.js +21 -0
- package/.medusa/server/src/api/admin/talk-js/route.d.ts +2 -0
- package/.medusa/server/src/api/admin/talk-js/route.js +9 -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/payouts/route.d.ts +2 -0
- package/.medusa/server/src/api/hooks/payouts/route.js +22 -0
- package/.medusa/server/src/api/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/middlewares.js +10 -0
- package/.medusa/server/src/api/openapi/admin/attribute.d.ts +106 -0
- package/.medusa/server/src/api/openapi/admin/attribute.js +108 -0
- package/.medusa/server/src/api/openapi/admin/commission.d.ts +177 -0
- package/.medusa/server/src/api/openapi/admin/commission.js +179 -0
- package/.medusa/server/src/api/openapi/admin/configuration.d.ts +16 -0
- package/.medusa/server/src/api/openapi/admin/configuration.js +18 -0
- package/.medusa/server/src/api/openapi/admin/notification.d.ts +33 -0
- package/.medusa/server/src/api/openapi/admin/notification.js +35 -0
- package/.medusa/server/src/api/openapi/admin/order-set.d.ts +78 -0
- package/.medusa/server/src/api/openapi/admin/order-set.js +80 -0
- package/.medusa/server/src/api/openapi/admin/request.d.ts +45 -0
- package/.medusa/server/src/api/openapi/admin/request.js +47 -0
- package/.medusa/server/src/api/openapi/admin/return-request.d.ts +86 -0
- package/.medusa/server/src/api/openapi/admin/return-request.js +88 -0
- package/.medusa/server/src/api/openapi/admin/seller.d.ts +97 -0
- package/.medusa/server/src/api/openapi/admin/seller.js +99 -0
- package/.medusa/server/src/api/openapi/store/order-set.d.ts +78 -0
- package/.medusa/server/src/api/openapi/store/order-set.js +80 -0
- package/.medusa/server/src/api/openapi/store/return.d.ts +111 -0
- package/.medusa/server/src/api/openapi/store/return.js +113 -0
- package/.medusa/server/src/api/openapi/store/seller.d.ts +64 -0
- package/.medusa/server/src/api/openapi/store/seller.js +66 -0
- package/.medusa/server/src/api/openapi/store/wishlist.d.ts +146 -0
- package/.medusa/server/src/api/openapi/store/wishlist.js +148 -0
- package/.medusa/server/src/api/openapi/vendor/attribute.d.ts +73 -0
- package/.medusa/server/src/api/openapi/vendor/attribute.js +75 -0
- package/.medusa/server/src/api/openapi/vendor/auth.d.ts +129 -0
- package/.medusa/server/src/api/openapi/vendor/auth.js +131 -0
- package/.medusa/server/src/api/openapi/vendor/campaign.d.ts +87 -0
- package/.medusa/server/src/api/openapi/vendor/campaign.js +89 -0
- package/.medusa/server/src/api/openapi/vendor/commission.d.ts +177 -0
- package/.medusa/server/src/api/openapi/vendor/commission.js +179 -0
- package/.medusa/server/src/api/openapi/vendor/customer.d.ts +48 -0
- package/.medusa/server/src/api/openapi/vendor/customer.js +50 -0
- package/.medusa/server/src/api/openapi/vendor/fulfillment.d.ts +463 -0
- package/.medusa/server/src/api/openapi/vendor/fulfillment.js +465 -0
- package/.medusa/server/src/api/openapi/vendor/marketplace.d.ts +26 -0
- package/.medusa/server/src/api/openapi/vendor/marketplace.js +28 -0
- package/.medusa/server/src/api/openapi/vendor/notification.d.ts +33 -0
- package/.medusa/server/src/api/openapi/vendor/notification.js +35 -0
- package/.medusa/server/src/api/openapi/vendor/onboarding.d.ts +39 -0
- package/.medusa/server/src/api/openapi/vendor/onboarding.js +41 -0
- package/.medusa/server/src/api/openapi/vendor/order.d.ts +1521 -0
- package/.medusa/server/src/api/openapi/vendor/order.js +1523 -0
- package/.medusa/server/src/api/openapi/vendor/payout.d.ts +110 -0
- package/.medusa/server/src/api/openapi/vendor/payout.js +112 -0
- package/.medusa/server/src/api/openapi/vendor/price-list.d.ts +124 -0
- package/.medusa/server/src/api/openapi/vendor/price-list.js +126 -0
- package/.medusa/server/src/api/openapi/vendor/price-preference.d.ts +47 -0
- package/.medusa/server/src/api/openapi/vendor/price-preference.js +49 -0
- package/.medusa/server/src/api/openapi/vendor/product.d.ts +467 -0
- package/.medusa/server/src/api/openapi/vendor/product.js +469 -0
- package/.medusa/server/src/api/openapi/vendor/promotion.d.ts +165 -0
- package/.medusa/server/src/api/openapi/vendor/promotion.js +167 -0
- package/.medusa/server/src/api/openapi/vendor/region.d.ts +58 -0
- package/.medusa/server/src/api/openapi/vendor/region.js +60 -0
- package/.medusa/server/src/api/openapi/vendor/request.d.ts +38 -0
- package/.medusa/server/src/api/openapi/vendor/request.js +40 -0
- package/.medusa/server/src/api/openapi/vendor/reservation.d.ts +54 -0
- package/.medusa/server/src/api/openapi/vendor/reservation.js +56 -0
- package/.medusa/server/src/api/openapi/vendor/return-request.d.ts +72 -0
- package/.medusa/server/src/api/openapi/vendor/return-request.js +74 -0
- package/.medusa/server/src/api/openapi/vendor/return.d.ts +111 -0
- package/.medusa/server/src/api/openapi/vendor/return.js +113 -0
- package/.medusa/server/src/api/openapi/vendor/review.d.ts +28 -0
- package/.medusa/server/src/api/openapi/vendor/review.js +30 -0
- package/.medusa/server/src/api/openapi/vendor/sales-channels.d.ts +44 -0
- package/.medusa/server/src/api/openapi/vendor/sales-channels.js +46 -0
- package/.medusa/server/src/api/openapi/vendor/seller.d.ts +170 -0
- package/.medusa/server/src/api/openapi/vendor/seller.js +172 -0
- package/.medusa/server/src/api/openapi/vendor/store.d.ts +54 -0
- package/.medusa/server/src/api/openapi/vendor/store.js +56 -0
- package/.medusa/server/src/api/store/carts/[id]/complete/route.d.ts +2 -0
- package/.medusa/server/src/api/store/carts/[id]/complete/route.js +20 -0
- package/.medusa/server/src/api/store/carts/[id]/line-items/[line_id]/route.d.ts +3 -0
- package/.medusa/server/src/api/store/carts/[id]/line-items/[line_id]/route.js +17 -0
- package/.medusa/server/src/api/store/carts/[id]/shipping-methods/route.d.ts +5 -0
- package/.medusa/server/src/api/store/carts/[id]/shipping-methods/route.js +43 -0
- package/.medusa/server/src/api/store/carts/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/store/carts/middlewares.js +60 -0
- package/.medusa/server/src/api/store/carts/validators.d.ts +9 -0
- package/.medusa/server/src/api/store/carts/validators.js +8 -0
- package/.medusa/server/src/api/store/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/store/middlewares.js +27 -0
- package/.medusa/server/src/api/store/order-set/[id]/route.d.ts +2 -0
- package/.medusa/server/src/api/store/order-set/[id]/route.js +15 -0
- package/.medusa/server/src/api/store/order-set/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/store/order-set/middlewares.js +23 -0
- package/.medusa/server/src/api/store/order-set/query-config.d.ts +11 -0
- package/.medusa/server/src/api/store/order-set/query-config.js +50 -0
- package/.medusa/server/src/api/store/order-set/route.d.ts +76 -0
- package/.medusa/server/src/api/store/order-set/route.js +104 -0
- package/.medusa/server/src/api/store/order-set/validators.d.ts +19 -0
- package/.medusa/server/src/api/store/order-set/validators.js +9 -0
- package/.medusa/server/src/api/store/returns/[id]/route.d.ts +2 -0
- package/.medusa/server/src/api/store/returns/[id]/route.js +22 -0
- package/.medusa/server/src/api/store/returns/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/store/returns/middlewares.js +23 -0
- package/.medusa/server/src/api/store/returns/query-config.d.ts +11 -0
- package/.medusa/server/src/api/store/returns/query-config.js +29 -0
- package/.medusa/server/src/api/store/returns/route.d.ts +76 -0
- package/.medusa/server/src/api/store/returns/route.js +102 -0
- package/.medusa/server/src/api/store/returns/validators.d.ts +19 -0
- package/.medusa/server/src/api/store/returns/validators.js +9 -0
- package/.medusa/server/src/api/store/seller/[handle]/route.d.ts +36 -0
- package/.medusa/server/src/api/store/seller/[handle]/route.js +53 -0
- package/.medusa/server/src/api/store/seller/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/store/seller/middlewares.js +23 -0
- package/.medusa/server/src/api/store/seller/query-config.d.ts +11 -0
- package/.medusa/server/src/api/store/seller/query-config.js +27 -0
- package/.medusa/server/src/api/store/seller/route.d.ts +53 -0
- package/.medusa/server/src/api/store/seller/route.js +71 -0
- package/.medusa/server/src/api/store/seller/validators.d.ts +21 -0
- package/.medusa/server/src/api/store/seller/validators.js +9 -0
- package/.medusa/server/src/api/store/shipping-options/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/store/shipping-options/middlewares.js +24 -0
- package/.medusa/server/src/api/store/shipping-options/query-config.d.ts +10 -0
- package/.medusa/server/src/api/store/shipping-options/query-config.js +14 -0
- package/.medusa/server/src/api/store/shipping-options/return/route.d.ts +50 -0
- package/.medusa/server/src/api/store/shipping-options/return/route.js +65 -0
- package/.medusa/server/src/api/store/shipping-options/route.d.ts +2 -0
- package/.medusa/server/src/api/store/shipping-options/route.js +14 -0
- package/.medusa/server/src/api/store/shipping-options/validators.d.ts +77 -0
- package/.medusa/server/src/api/store/shipping-options/validators.js +28 -0
- package/.medusa/server/src/api/store/wishlist/[id]/product/[reference_id]/route.d.ts +46 -0
- package/.medusa/server/src/api/store/wishlist/[id]/product/[reference_id]/route.js +61 -0
- package/.medusa/server/src/api/store/wishlist/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/store/wishlist/middlewares.js +39 -0
- package/.medusa/server/src/api/store/wishlist/query-config.d.ts +11 -0
- package/.medusa/server/src/api/store/wishlist/query-config.js +43 -0
- package/.medusa/server/src/api/store/wishlist/route.d.ts +103 -0
- package/.medusa/server/src/api/store/wishlist/route.js +152 -0
- package/.medusa/server/src/api/store/wishlist/validators.d.ts +63 -0
- package/.medusa/server/src/api/store/wishlist/validators.js +45 -0
- package/.medusa/server/src/api/vendor/attributes/[id]/route.d.ts +48 -0
- package/.medusa/server/src/api/vendor/attributes/[id]/route.js +65 -0
- package/.medusa/server/src/api/vendor/attributes/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/attributes/middlewares.js +56 -0
- package/.medusa/server/src/api/vendor/attributes/query-config.d.ts +20 -0
- package/.medusa/server/src/api/vendor/attributes/query-config.js +40 -0
- package/.medusa/server/src/api/vendor/attributes/route.d.ts +80 -0
- package/.medusa/server/src/api/vendor/attributes/route.js +99 -0
- package/.medusa/server/src/api/vendor/attributes/validators.d.ts +34 -0
- package/.medusa/server/src/api/vendor/attributes/validators.js +16 -0
- package/.medusa/server/src/api/vendor/campaigns/[id]/route.d.ts +116 -0
- package/.medusa/server/src/api/vendor/campaigns/[id]/route.js +161 -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 +90 -0
- package/.medusa/server/src/api/vendor/campaigns/route.js +138 -0
- package/.medusa/server/src/api/vendor/campaigns/validators.d.ts +206 -0
- package/.medusa/server/src/api/vendor/campaigns/validators.js +63 -0
- package/.medusa/server/src/api/vendor/configuration/route.d.ts +26 -0
- package/.medusa/server/src/api/vendor/configuration/route.js +48 -0
- package/.medusa/server/src/api/vendor/cors.d.ts +2 -0
- package/.medusa/server/src/api/vendor/cors.js +18 -0
- package/.medusa/server/src/api/vendor/customer-groups/[id]/customers/route.d.ts +37 -0
- package/.medusa/server/src/api/vendor/customer-groups/[id]/customers/route.js +62 -0
- package/.medusa/server/src/api/vendor/customer-groups/[id]/route.d.ts +109 -0
- package/.medusa/server/src/api/vendor/customer-groups/[id]/route.js +159 -0
- package/.medusa/server/src/api/vendor/customer-groups/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/customer-groups/middlewares.js +75 -0
- package/.medusa/server/src/api/vendor/customer-groups/query-config.d.ts +11 -0
- package/.medusa/server/src/api/vendor/customer-groups/query-config.js +25 -0
- package/.medusa/server/src/api/vendor/customer-groups/route.d.ts +80 -0
- package/.medusa/server/src/api/vendor/customer-groups/route.js +123 -0
- package/.medusa/server/src/api/vendor/customer-groups/validators.d.ts +65 -0
- package/.medusa/server/src/api/vendor/customer-groups/validators.js +21 -0
- package/.medusa/server/src/api/vendor/customers/[id]/customer-groups/route.d.ts +37 -0
- package/.medusa/server/src/api/vendor/customers/[id]/customer-groups/route.js +65 -0
- package/.medusa/server/src/api/vendor/customers/[id]/orders/route.d.ts +60 -0
- package/.medusa/server/src/api/vendor/customers/[id]/orders/route.js +90 -0
- package/.medusa/server/src/api/vendor/customers/[id]/route.d.ts +31 -0
- package/.medusa/server/src/api/vendor/customers/[id]/route.js +48 -0
- package/.medusa/server/src/api/vendor/customers/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/customers/middlewares.js +38 -0
- package/.medusa/server/src/api/vendor/customers/query-config.d.ts +23 -0
- package/.medusa/server/src/api/vendor/customers/query-config.js +70 -0
- package/.medusa/server/src/api/vendor/customers/route.d.ts +51 -0
- package/.medusa/server/src/api/vendor/customers/route.js +69 -0
- package/.medusa/server/src/api/vendor/customers/utils.d.ts +2 -0
- package/.medusa/server/src/api/vendor/customers/utils.js +27 -0
- package/.medusa/server/src/api/vendor/customers/validators.d.ts +68 -0
- package/.medusa/server/src/api/vendor/customers/validators.js +18 -0
- package/.medusa/server/src/api/vendor/fulfillment-providers/[id]/options/route.d.ts +38 -0
- package/.medusa/server/src/api/vendor/fulfillment-providers/[id]/options/route.js +49 -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 +11 -0
- package/.medusa/server/src/api/vendor/fulfillment-providers/query-config.js +15 -0
- package/.medusa/server/src/api/vendor/fulfillment-providers/route.d.ts +53 -0
- package/.medusa/server/src/api/vendor/fulfillment-providers/route.js +71 -0
- package/.medusa/server/src/api/vendor/fulfillment-providers/validators.d.ts +21 -0
- package/.medusa/server/src/api/vendor/fulfillment-providers/validators.js +9 -0
- package/.medusa/server/src/api/vendor/fulfillment-sets/[id]/route.d.ts +40 -0
- package/.medusa/server/src/api/vendor/fulfillment-sets/[id]/route.js +63 -0
- package/.medusa/server/src/api/vendor/fulfillment-sets/[id]/service-zones/[zone_id]/route.d.ts +88 -0
- package/.medusa/server/src/api/vendor/fulfillment-sets/[id]/service-zones/[zone_id]/route.js +132 -0
- package/.medusa/server/src/api/vendor/fulfillment-sets/[id]/service-zones/route.d.ts +37 -0
- package/.medusa/server/src/api/vendor/fulfillment-sets/[id]/service-zones/route.js +60 -0
- package/.medusa/server/src/api/vendor/fulfillment-sets/helpers.d.ts +5 -0
- package/.medusa/server/src/api/vendor/fulfillment-sets/helpers.js +10 -0
- package/.medusa/server/src/api/vendor/fulfillment-sets/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/fulfillment-sets/middlewares.js +71 -0
- package/.medusa/server/src/api/vendor/fulfillment-sets/query-config.d.ts +11 -0
- package/.medusa/server/src/api/vendor/fulfillment-sets/query-config.js +24 -0
- package/.medusa/server/src/api/vendor/fulfillment-sets/validators.d.ts +433 -0
- package/.medusa/server/src/api/vendor/fulfillment-sets/validators.js +205 -0
- package/.medusa/server/src/api/vendor/inventory-items/[id]/location-levels/[location_id]/route.d.ts +65 -0
- package/.medusa/server/src/api/vendor/inventory-items/[id]/location-levels/[location_id]/route.js +115 -0
- package/.medusa/server/src/api/vendor/inventory-items/[id]/location-levels/batch/route.d.ts +30 -0
- package/.medusa/server/src/api/vendor/inventory-items/[id]/location-levels/batch/route.js +70 -0
- package/.medusa/server/src/api/vendor/inventory-items/[id]/location-levels/route.d.ts +53 -0
- package/.medusa/server/src/api/vendor/inventory-items/[id]/location-levels/route.js +98 -0
- package/.medusa/server/src/api/vendor/inventory-items/[id]/route.d.ts +53 -0
- package/.medusa/server/src/api/vendor/inventory-items/[id]/route.js +95 -0
- package/.medusa/server/src/api/vendor/inventory-items/location-levels/batch/route.d.ts +23 -0
- package/.medusa/server/src/api/vendor/inventory-items/location-levels/batch/route.js +52 -0
- package/.medusa/server/src/api/vendor/inventory-items/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/inventory-items/middlewares.js +114 -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 +52 -0
- package/.medusa/server/src/api/vendor/inventory-items/route.d.ts +18 -0
- package/.medusa/server/src/api/vendor/inventory-items/route.js +45 -0
- package/.medusa/server/src/api/vendor/inventory-items/utils.d.ts +15 -0
- package/.medusa/server/src/api/vendor/inventory-items/utils.js +74 -0
- package/.medusa/server/src/api/vendor/inventory-items/validators.d.ts +381 -0
- package/.medusa/server/src/api/vendor/inventory-items/validators.js +86 -0
- package/.medusa/server/src/api/vendor/invites/accept/route.d.ts +37 -0
- package/.medusa/server/src/api/vendor/invites/accept/route.js +56 -0
- package/.medusa/server/src/api/vendor/invites/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/invites/middlewares.js +34 -0
- package/.medusa/server/src/api/vendor/invites/query-config.d.ts +11 -0
- package/.medusa/server/src/api/vendor/invites/query-config.js +21 -0
- package/.medusa/server/src/api/vendor/invites/route.d.ts +85 -0
- package/.medusa/server/src/api/vendor/invites/route.js +140 -0
- package/.medusa/server/src/api/vendor/invites/validators.d.ts +74 -0
- package/.medusa/server/src/api/vendor/invites/validators.js +23 -0
- package/.medusa/server/src/api/vendor/me/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/me/middlewares.js +16 -0
- package/.medusa/server/src/api/vendor/me/route.d.ts +25 -0
- package/.medusa/server/src/api/vendor/me/route.js +37 -0
- package/.medusa/server/src/api/vendor/members/[id]/route.d.ts +104 -0
- package/.medusa/server/src/api/vendor/members/[id]/route.js +145 -0
- package/.medusa/server/src/api/vendor/members/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/members/middlewares.js +48 -0
- package/.medusa/server/src/api/vendor/members/query-config.d.ts +11 -0
- package/.medusa/server/src/api/vendor/members/query-config.js +24 -0
- package/.medusa/server/src/api/vendor/members/route.d.ts +62 -0
- package/.medusa/server/src/api/vendor/members/route.js +82 -0
- package/.medusa/server/src/api/vendor/members/validators.d.ts +58 -0
- package/.medusa/server/src/api/vendor/members/validators.js +18 -0
- package/.medusa/server/src/api/vendor/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/middlewares.js +115 -0
- package/.medusa/server/src/api/vendor/notifications/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/notifications/middlewares.js +16 -0
- package/.medusa/server/src/api/vendor/notifications/query-config.d.ts +11 -0
- package/.medusa/server/src/api/vendor/notifications/query-config.js +23 -0
- package/.medusa/server/src/api/vendor/notifications/route.d.ts +83 -0
- package/.medusa/server/src/api/vendor/notifications/route.js +107 -0
- package/.medusa/server/src/api/vendor/notifications/validators.d.ts +21 -0
- package/.medusa/server/src/api/vendor/notifications/validators.js +10 -0
- package/.medusa/server/src/api/vendor/orders/[id]/cancel/route.d.ts +31 -0
- package/.medusa/server/src/api/vendor/orders/[id]/cancel/route.js +56 -0
- package/.medusa/server/src/api/vendor/orders/[id]/changes/route.d.ts +39 -0
- package/.medusa/server/src/api/vendor/orders/[id]/changes/route.js +54 -0
- package/.medusa/server/src/api/vendor/orders/[id]/complete/route.d.ts +31 -0
- package/.medusa/server/src/api/vendor/orders/[id]/complete/route.js +55 -0
- package/.medusa/server/src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/cancel/route.d.ts +37 -0
- package/.medusa/server/src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/cancel/route.js +61 -0
- package/.medusa/server/src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/mark-as-delivered/route.d.ts +37 -0
- package/.medusa/server/src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/mark-as-delivered/route.js +57 -0
- package/.medusa/server/src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/shipments/route.d.ts +43 -0
- package/.medusa/server/src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/shipments/route.js +67 -0
- package/.medusa/server/src/api/vendor/orders/[id]/fulfillments/route.d.ts +37 -0
- package/.medusa/server/src/api/vendor/orders/[id]/fulfillments/route.js +52 -0
- package/.medusa/server/src/api/vendor/orders/[id]/route.d.ts +31 -0
- package/.medusa/server/src/api/vendor/orders/[id]/route.js +50 -0
- package/.medusa/server/src/api/vendor/orders/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/orders/middlewares.js +135 -0
- package/.medusa/server/src/api/vendor/orders/query-config.d.ts +22 -0
- package/.medusa/server/src/api/vendor/orders/query-config.js +97 -0
- package/.medusa/server/src/api/vendor/orders/route.d.ts +96 -0
- package/.medusa/server/src/api/vendor/orders/route.js +138 -0
- package/.medusa/server/src/api/vendor/orders/validators.d.ts +250 -0
- package/.medusa/server/src/api/vendor/orders/validators.js +75 -0
- package/.medusa/server/src/api/vendor/payout-account/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/payout-account/middlewares.js +35 -0
- package/.medusa/server/src/api/vendor/payout-account/onboarding/route.d.ts +30 -0
- package/.medusa/server/src/api/vendor/payout-account/onboarding/route.js +56 -0
- package/.medusa/server/src/api/vendor/payout-account/query-config.d.ts +7 -0
- package/.medusa/server/src/api/vendor/payout-account/query-config.js +18 -0
- package/.medusa/server/src/api/vendor/payout-account/route.d.ts +59 -0
- package/.medusa/server/src/api/vendor/payout-account/route.js +100 -0
- package/.medusa/server/src/api/vendor/payout-account/sync/route.d.ts +54 -0
- package/.medusa/server/src/api/vendor/payout-account/sync/route.js +77 -0
- package/.medusa/server/src/api/vendor/payout-account/utils.d.ts +2 -0
- package/.medusa/server/src/api/vendor/payout-account/utils.js +19 -0
- package/.medusa/server/src/api/vendor/payout-account/validators.d.ts +43 -0
- package/.medusa/server/src/api/vendor/payout-account/validators.js +35 -0
- package/.medusa/server/src/api/vendor/payouts/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/payouts/middlewares.js +18 -0
- package/.medusa/server/src/api/vendor/payouts/query-config.d.ts +7 -0
- package/.medusa/server/src/api/vendor/payouts/query-config.js +11 -0
- package/.medusa/server/src/api/vendor/payouts/route.d.ts +86 -0
- package/.medusa/server/src/api/vendor/payouts/route.js +119 -0
- package/.medusa/server/src/api/vendor/payouts/validators.d.ts +21 -0
- package/.medusa/server/src/api/vendor/payouts/validators.js +9 -0
- package/.medusa/server/src/api/vendor/price-lists/[id]/prices/[price_id]/route.d.ts +44 -0
- package/.medusa/server/src/api/vendor/price-lists/[id]/prices/[price_id]/route.js +75 -0
- package/.medusa/server/src/api/vendor/price-lists/[id]/prices/route.d.ts +43 -0
- package/.medusa/server/src/api/vendor/price-lists/[id]/prices/route.js +69 -0
- package/.medusa/server/src/api/vendor/price-lists/[id]/products/route.d.ts +102 -0
- package/.medusa/server/src/api/vendor/price-lists/[id]/products/route.js +164 -0
- package/.medusa/server/src/api/vendor/price-lists/[id]/route.d.ts +111 -0
- package/.medusa/server/src/api/vendor/price-lists/[id]/route.js +154 -0
- package/.medusa/server/src/api/vendor/price-lists/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/price-lists/middlewares.js +109 -0
- package/.medusa/server/src/api/vendor/price-lists/query-config.d.ts +22 -0
- package/.medusa/server/src/api/vendor/price-lists/query-config.js +52 -0
- package/.medusa/server/src/api/vendor/price-lists/route.d.ts +87 -0
- package/.medusa/server/src/api/vendor/price-lists/route.js +124 -0
- package/.medusa/server/src/api/vendor/price-lists/validators.d.ts +412 -0
- package/.medusa/server/src/api/vendor/price-lists/validators.js +85 -0
- package/.medusa/server/src/api/vendor/price-preferences/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/price-preferences/middlewares.js +16 -0
- package/.medusa/server/src/api/vendor/price-preferences/query-config.d.ts +9 -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 +92 -0
- package/.medusa/server/src/api/vendor/price-preferences/route.js +111 -0
- package/.medusa/server/src/api/vendor/price-preferences/validators.d.ts +52 -0
- package/.medusa/server/src/api/vendor/price-preferences/validators.js +19 -0
- package/.medusa/server/src/api/vendor/product-categories/[id]/products/route.d.ts +2 -0
- package/.medusa/server/src/api/vendor/product-categories/[id]/products/route.js +24 -0
- package/.medusa/server/src/api/vendor/product-categories/[id]/route.d.ts +36 -0
- package/.medusa/server/src/api/vendor/product-categories/[id]/route.js +51 -0
- package/.medusa/server/src/api/vendor/product-categories/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/product-categories/middlewares.js +32 -0
- package/.medusa/server/src/api/vendor/product-categories/query-config.d.ts +22 -0
- package/.medusa/server/src/api/vendor/product-categories/query-config.js +47 -0
- package/.medusa/server/src/api/vendor/product-categories/route.d.ts +53 -0
- package/.medusa/server/src/api/vendor/product-categories/route.js +72 -0
- package/.medusa/server/src/api/vendor/product-categories/utils.d.ts +5 -0
- package/.medusa/server/src/api/vendor/product-categories/utils.js +30 -0
- package/.medusa/server/src/api/vendor/product-categories/validators.d.ts +57 -0
- package/.medusa/server/src/api/vendor/product-categories/validators.js +11 -0
- package/.medusa/server/src/api/vendor/product-collections/[id]/products/route.d.ts +2 -0
- package/.medusa/server/src/api/vendor/product-collections/[id]/products/route.js +24 -0
- package/.medusa/server/src/api/vendor/product-collections/[id]/route.d.ts +36 -0
- package/.medusa/server/src/api/vendor/product-collections/[id]/route.js +51 -0
- package/.medusa/server/src/api/vendor/product-collections/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/product-collections/middlewares.js +32 -0
- package/.medusa/server/src/api/vendor/product-collections/query-config.d.ts +22 -0
- package/.medusa/server/src/api/vendor/product-collections/query-config.js +42 -0
- package/.medusa/server/src/api/vendor/product-collections/route.d.ts +53 -0
- package/.medusa/server/src/api/vendor/product-collections/route.js +72 -0
- package/.medusa/server/src/api/vendor/product-collections/utils.d.ts +5 -0
- package/.medusa/server/src/api/vendor/product-collections/utils.js +29 -0
- package/.medusa/server/src/api/vendor/product-collections/validators.d.ts +42 -0
- package/.medusa/server/src/api/vendor/product-collections/validators.js +13 -0
- package/.medusa/server/src/api/vendor/product-tags/[id]/route.d.ts +36 -0
- package/.medusa/server/src/api/vendor/product-tags/[id]/route.js +51 -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 +53 -0
- package/.medusa/server/src/api/vendor/product-tags/route.js +66 -0
- package/.medusa/server/src/api/vendor/product-tags/validators.d.ts +82 -0
- package/.medusa/server/src/api/vendor/product-tags/validators.js +25 -0
- package/.medusa/server/src/api/vendor/product-types/[id]/route.d.ts +36 -0
- package/.medusa/server/src/api/vendor/product-types/[id]/route.js +51 -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 +53 -0
- package/.medusa/server/src/api/vendor/product-types/route.js +71 -0
- package/.medusa/server/src/api/vendor/product-types/validators.d.ts +21 -0
- package/.medusa/server/src/api/vendor/product-types/validators.js +9 -0
- package/.medusa/server/src/api/vendor/products/[id]/applicable-attributes/route.d.ts +69 -0
- package/.medusa/server/src/api/vendor/products/[id]/applicable-attributes/route.js +115 -0
- package/.medusa/server/src/api/vendor/products/[id]/options/[option_id]/route.d.ts +92 -0
- package/.medusa/server/src/api/vendor/products/[id]/options/[option_id]/route.js +157 -0
- package/.medusa/server/src/api/vendor/products/[id]/options/route.d.ts +43 -0
- package/.medusa/server/src/api/vendor/products/[id]/options/route.js +86 -0
- package/.medusa/server/src/api/vendor/products/[id]/route.d.ts +116 -0
- package/.medusa/server/src/api/vendor/products/[id]/route.js +175 -0
- package/.medusa/server/src/api/vendor/products/[id]/status/route.d.ts +43 -0
- package/.medusa/server/src/api/vendor/products/[id]/status/route.js +69 -0
- package/.medusa/server/src/api/vendor/products/[id]/variants/[variant_id]/route.d.ts +92 -0
- package/.medusa/server/src/api/vendor/products/[id]/variants/[variant_id]/route.js +161 -0
- package/.medusa/server/src/api/vendor/products/[id]/variants/route.d.ts +43 -0
- package/.medusa/server/src/api/vendor/products/[id]/variants/route.js +89 -0
- package/.medusa/server/src/api/vendor/products/export/route.d.ts +2 -0
- package/.medusa/server/src/api/vendor/products/export/route.js +17 -0
- package/.medusa/server/src/api/vendor/products/import/route.d.ts +2 -0
- package/.medusa/server/src/api/vendor/products/import/route.js +24 -0
- package/.medusa/server/src/api/vendor/products/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/products/middlewares.js +174 -0
- package/.medusa/server/src/api/vendor/products/query-config.d.ts +11 -0
- package/.medusa/server/src/api/vendor/products/query-config.js +50 -0
- package/.medusa/server/src/api/vendor/products/route.d.ts +89 -0
- package/.medusa/server/src/api/vendor/products/route.js +153 -0
- package/.medusa/server/src/api/vendor/products/utils.d.ts +5 -0
- package/.medusa/server/src/api/vendor/products/utils.js +33 -0
- package/.medusa/server/src/api/vendor/products/validators.d.ts +1642 -0
- package/.medusa/server/src/api/vendor/products/validators.js +231 -0
- package/.medusa/server/src/api/vendor/promotions/[id]/[rule_type]/route.d.ts +56 -0
- package/.medusa/server/src/api/vendor/promotions/[id]/[rule_type]/route.js +160 -0
- package/.medusa/server/src/api/vendor/promotions/[id]/buy-rules/batch/route.d.ts +37 -0
- package/.medusa/server/src/api/vendor/promotions/[id]/buy-rules/batch/route.js +66 -0
- package/.medusa/server/src/api/vendor/promotions/[id]/route.d.ts +110 -0
- package/.medusa/server/src/api/vendor/promotions/[id]/route.js +157 -0
- package/.medusa/server/src/api/vendor/promotions/[id]/rules/batch/route.d.ts +37 -0
- package/.medusa/server/src/api/vendor/promotions/[id]/rules/batch/route.js +66 -0
- package/.medusa/server/src/api/vendor/promotions/[id]/target-rules/batch/route.d.ts +37 -0
- package/.medusa/server/src/api/vendor/promotions/[id]/target-rules/batch/route.js +66 -0
- package/.medusa/server/src/api/vendor/promotions/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/promotions/middlewares.js +124 -0
- package/.medusa/server/src/api/vendor/promotions/query-config.d.ts +27 -0
- package/.medusa/server/src/api/vendor/promotions/query-config.js +54 -0
- package/.medusa/server/src/api/vendor/promotions/route.d.ts +83 -0
- package/.medusa/server/src/api/vendor/promotions/route.js +128 -0
- package/.medusa/server/src/api/vendor/promotions/rule-attribute-options/[rule_type]/route.d.ts +64 -0
- package/.medusa/server/src/api/vendor/promotions/rule-attribute-options/[rule_type]/route.js +80 -0
- package/.medusa/server/src/api/vendor/promotions/rule-value-options/[rule_type]/[rule_attribute_id]/route.d.ts +64 -0
- package/.medusa/server/src/api/vendor/promotions/rule-value-options/[rule_type]/[rule_attribute_id]/route.js +133 -0
- package/.medusa/server/src/api/vendor/promotions/utils.d.ts +72 -0
- package/.medusa/server/src/api/vendor/promotions/utils.js +123 -0
- package/.medusa/server/src/api/vendor/promotions/validators.d.ts +625 -0
- package/.medusa/server/src/api/vendor/promotions/validators.js +140 -0
- package/.medusa/server/src/api/vendor/regions/[id]/route.d.ts +36 -0
- package/.medusa/server/src/api/vendor/regions/[id]/route.js +51 -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 +25 -0
- package/.medusa/server/src/api/vendor/regions/route.d.ts +53 -0
- package/.medusa/server/src/api/vendor/regions/route.js +72 -0
- package/.medusa/server/src/api/vendor/regions/validators.d.ts +21 -0
- package/.medusa/server/src/api/vendor/regions/validators.js +9 -0
- package/.medusa/server/src/api/vendor/reservations/[id]/route.d.ts +116 -0
- package/.medusa/server/src/api/vendor/reservations/[id]/route.js +180 -0
- package/.medusa/server/src/api/vendor/reservations/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/reservations/middlewares.js +121 -0
- package/.medusa/server/src/api/vendor/reservations/query-config.d.ts +11 -0
- package/.medusa/server/src/api/vendor/reservations/query-config.js +26 -0
- package/.medusa/server/src/api/vendor/reservations/route.d.ts +90 -0
- package/.medusa/server/src/api/vendor/reservations/route.js +135 -0
- package/.medusa/server/src/api/vendor/reservations/validators.d.ts +89 -0
- package/.medusa/server/src/api/vendor/reservations/validators.js +26 -0
- package/.medusa/server/src/api/vendor/returns/[id]/dismiss-items/[action_id]/route.d.ts +91 -0
- package/.medusa/server/src/api/vendor/returns/[id]/dismiss-items/[action_id]/route.js +138 -0
- package/.medusa/server/src/api/vendor/returns/[id]/dismiss-items/route.d.ts +43 -0
- package/.medusa/server/src/api/vendor/returns/[id]/dismiss-items/route.js +65 -0
- package/.medusa/server/src/api/vendor/returns/[id]/receive/confirm/route.d.ts +39 -0
- package/.medusa/server/src/api/vendor/returns/[id]/receive/confirm/route.js +65 -0
- package/.medusa/server/src/api/vendor/returns/[id]/receive/route.d.ts +45 -0
- package/.medusa/server/src/api/vendor/returns/[id]/receive/route.js +70 -0
- package/.medusa/server/src/api/vendor/returns/[id]/receive-items/[action_id]/route.d.ts +91 -0
- package/.medusa/server/src/api/vendor/returns/[id]/receive-items/[action_id]/route.js +138 -0
- package/.medusa/server/src/api/vendor/returns/[id]/receive-items/route.d.ts +43 -0
- package/.medusa/server/src/api/vendor/returns/[id]/receive-items/route.js +65 -0
- package/.medusa/server/src/api/vendor/returns/[id]/route.d.ts +37 -0
- package/.medusa/server/src/api/vendor/returns/[id]/route.js +54 -0
- package/.medusa/server/src/api/vendor/returns/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/returns/middlewares.js +126 -0
- package/.medusa/server/src/api/vendor/returns/query-config.d.ts +11 -0
- package/.medusa/server/src/api/vendor/returns/query-config.js +35 -0
- package/.medusa/server/src/api/vendor/returns/route.d.ts +54 -0
- package/.medusa/server/src/api/vendor/returns/route.js +82 -0
- package/.medusa/server/src/api/vendor/returns/validators.d.ts +152 -0
- package/.medusa/server/src/api/vendor/returns/validators.js +30 -0
- package/.medusa/server/src/api/vendor/sales-channels/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/sales-channels/middlewares.js +16 -0
- package/.medusa/server/src/api/vendor/sales-channels/query-config.d.ts +11 -0
- package/.medusa/server/src/api/vendor/sales-channels/query-config.js +24 -0
- package/.medusa/server/src/api/vendor/sales-channels/route.d.ts +35 -0
- package/.medusa/server/src/api/vendor/sales-channels/route.js +54 -0
- package/.medusa/server/src/api/vendor/sales-channels/validators.d.ts +9 -0
- package/.medusa/server/src/api/vendor/sales-channels/validators.js +6 -0
- package/.medusa/server/src/api/vendor/sellers/me/onboarding/route.d.ts +47 -0
- package/.medusa/server/src/api/vendor/sellers/me/onboarding/route.js +81 -0
- package/.medusa/server/src/api/vendor/sellers/me/route.d.ts +53 -0
- package/.medusa/server/src/api/vendor/sellers/me/route.js +78 -0
- package/.medusa/server/src/api/vendor/sellers/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/sellers/middlewares.js +39 -0
- package/.medusa/server/src/api/vendor/sellers/query-config.d.ts +18 -0
- package/.medusa/server/src/api/vendor/sellers/query-config.js +43 -0
- package/.medusa/server/src/api/vendor/sellers/route.d.ts +30 -0
- package/.medusa/server/src/api/vendor/sellers/route.js +74 -0
- package/.medusa/server/src/api/vendor/sellers/validators.d.ts +251 -0
- package/.medusa/server/src/api/vendor/sellers/validators.js +47 -0
- package/.medusa/server/src/api/vendor/shipping-options/[id]/route.d.ts +106 -0
- package/.medusa/server/src/api/vendor/shipping-options/[id]/route.js +151 -0
- package/.medusa/server/src/api/vendor/shipping-options/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/shipping-options/middlewares.js +69 -0
- package/.medusa/server/src/api/vendor/shipping-options/query-config.d.ts +11 -0
- package/.medusa/server/src/api/vendor/shipping-options/query-config.js +29 -0
- package/.medusa/server/src/api/vendor/shipping-options/route.d.ts +64 -0
- package/.medusa/server/src/api/vendor/shipping-options/route.js +128 -0
- package/.medusa/server/src/api/vendor/shipping-options/validators.d.ts +301 -0
- package/.medusa/server/src/api/vendor/shipping-options/validators.js +127 -0
- package/.medusa/server/src/api/vendor/shipping-profiles/[id]/route.d.ts +114 -0
- package/.medusa/server/src/api/vendor/shipping-profiles/[id]/route.js +157 -0
- package/.medusa/server/src/api/vendor/shipping-profiles/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/shipping-profiles/middlewares.js +63 -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 +67 -0
- package/.medusa/server/src/api/vendor/shipping-profiles/route.js +129 -0
- package/.medusa/server/src/api/vendor/shipping-profiles/validators.d.ts +82 -0
- package/.medusa/server/src/api/vendor/shipping-profiles/validators.js +24 -0
- package/.medusa/server/src/api/vendor/statistics/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/statistics/middlewares.js +13 -0
- package/.medusa/server/src/api/vendor/statistics/route.d.ts +39 -0
- package/.medusa/server/src/api/vendor/statistics/route.js +56 -0
- package/.medusa/server/src/api/vendor/statistics/validators.d.ts +24 -0
- package/.medusa/server/src/api/vendor/statistics/validators.js +17 -0
- package/.medusa/server/src/api/vendor/stock-locations/[id]/fulfillment-providers/route.d.ts +53 -0
- package/.medusa/server/src/api/vendor/stock-locations/[id]/fulfillment-providers/route.js +84 -0
- package/.medusa/server/src/api/vendor/stock-locations/[id]/fulfillment-sets/route.d.ts +42 -0
- package/.medusa/server/src/api/vendor/stock-locations/[id]/fulfillment-sets/route.js +75 -0
- package/.medusa/server/src/api/vendor/stock-locations/[id]/route.d.ts +115 -0
- package/.medusa/server/src/api/vendor/stock-locations/[id]/route.js +175 -0
- package/.medusa/server/src/api/vendor/stock-locations/[id]/sales-channels/route.d.ts +53 -0
- package/.medusa/server/src/api/vendor/stock-locations/[id]/sales-channels/route.js +78 -0
- package/.medusa/server/src/api/vendor/stock-locations/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/stock-locations/middlewares.js +92 -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 +67 -0
- package/.medusa/server/src/api/vendor/stock-locations/route.js +129 -0
- package/.medusa/server/src/api/vendor/stock-locations/validators.d.ts +297 -0
- package/.medusa/server/src/api/vendor/stock-locations/validators.js +136 -0
- package/.medusa/server/src/api/vendor/stores/[id]/route.d.ts +36 -0
- package/.medusa/server/src/api/vendor/stores/[id]/route.js +53 -0
- package/.medusa/server/src/api/vendor/stores/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/vendor/stores/middlewares.js +23 -0
- package/.medusa/server/src/api/vendor/stores/query-config.d.ts +11 -0
- package/.medusa/server/src/api/vendor/stores/query-config.js +27 -0
- package/.medusa/server/src/api/vendor/stores/route.d.ts +53 -0
- package/.medusa/server/src/api/vendor/stores/route.js +72 -0
- package/.medusa/server/src/api/vendor/stores/validators.d.ts +9 -0
- package/.medusa/server/src/api/vendor/stores/validators.js +6 -0
- package/.medusa/server/src/api/vendor/talkjs/route.d.ts +2 -0
- package/.medusa/server/src/api/vendor/talkjs/route.js +28 -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/jobs/daily-payouts-summary.d.ts +6 -0
- package/.medusa/server/src/jobs/daily-payouts-summary.js +56 -0
- package/.medusa/server/src/jobs/daily-payouts.d.ts +6 -0
- package/.medusa/server/src/jobs/daily-payouts.js +51 -0
- package/.medusa/server/src/links/category-attribute.d.ts +2 -0
- package/.medusa/server/src/links/category-attribute.js +16 -0
- package/.medusa/server/src/links/category-taxcode.d.ts +2 -0
- package/.medusa/server/src/links/category-taxcode.js +13 -0
- package/.medusa/server/src/links/customer-wishlist.d.ts +2 -0
- package/.medusa/server/src/links/customer-wishlist.js +14 -0
- package/.medusa/server/src/links/order-payout.d.ts +2 -0
- package/.medusa/server/src/links/order-payout.js +13 -0
- package/.medusa/server/src/links/order-set-order.d.ts +2 -0
- package/.medusa/server/src/links/order-set-order.js +13 -0
- package/.medusa/server/src/links/order-set-readonly-links.d.ts +1 -0
- package/.medusa/server/src/links/order-set-readonly-links.js +52 -0
- package/.medusa/server/src/links/order-split-order-payment.d.ts +2 -0
- package/.medusa/server/src/links/order-split-order-payment.js +10 -0
- package/.medusa/server/src/links/product-attribute-value.d.ts +2 -0
- package/.medusa/server/src/links/product-attribute-value.js +16 -0
- package/.medusa/server/src/links/seller-campaign.d.ts +2 -0
- package/.medusa/server/src/links/seller-campaign.js +13 -0
- package/.medusa/server/src/links/seller-customer-group.d.ts +2 -0
- package/.medusa/server/src/links/seller-customer-group.js +13 -0
- package/.medusa/server/src/links/seller-fulfillment-set.d.ts +2 -0
- package/.medusa/server/src/links/seller-fulfillment-set.js +13 -0
- package/.medusa/server/src/links/seller-inventory-item.d.ts +2 -0
- package/.medusa/server/src/links/seller-inventory-item.js +13 -0
- package/.medusa/server/src/links/seller-order.d.ts +2 -0
- package/.medusa/server/src/links/seller-order.js +13 -0
- package/.medusa/server/src/links/seller-payout-account.d.ts +2 -0
- package/.medusa/server/src/links/seller-payout-account.js +10 -0
- package/.medusa/server/src/links/seller-price-list.d.ts +2 -0
- package/.medusa/server/src/links/seller-price-list.js +13 -0
- package/.medusa/server/src/links/seller-product.d.ts +2 -0
- package/.medusa/server/src/links/seller-product.js +13 -0
- package/.medusa/server/src/links/seller-promotion.d.ts +2 -0
- package/.medusa/server/src/links/seller-promotion.js +13 -0
- package/.medusa/server/src/links/seller-return.d.ts +2 -0
- package/.medusa/server/src/links/seller-return.js +13 -0
- package/.medusa/server/src/links/seller-service-zone.d.ts +2 -0
- package/.medusa/server/src/links/seller-service-zone.js +13 -0
- package/.medusa/server/src/links/seller-shipping-option.d.ts +2 -0
- package/.medusa/server/src/links/seller-shipping-option.js +13 -0
- package/.medusa/server/src/links/seller-shipping-profile.d.ts +2 -0
- package/.medusa/server/src/links/seller-shipping-profile.js +13 -0
- package/.medusa/server/src/links/seller-stock-location.d.ts +2 -0
- package/.medusa/server/src/links/seller-stock-location.js +13 -0
- package/.medusa/server/src/links/wishlist-product.d.ts +2 -0
- package/.medusa/server/src/links/wishlist-product.js +14 -0
- package/.medusa/server/src/modules/attribute/index.d.ts +50 -0
- package/.medusa/server/src/modules/attribute/index.js +14 -0
- package/.medusa/server/src/modules/attribute/migrations/Migration20250617080244.d.ts +5 -0
- package/.medusa/server/src/modules/attribute/migrations/Migration20250617080244.js +30 -0
- package/.medusa/server/src/modules/attribute/migrations/Migration20250620110849.d.ts +5 -0
- package/.medusa/server/src/modules/attribute/migrations/Migration20250620110849.js +14 -0
- package/.medusa/server/src/modules/attribute/migrations/Migration20250828065431.d.ts +5 -0
- package/.medusa/server/src/modules/attribute/migrations/Migration20250828065431.js +14 -0
- package/.medusa/server/src/modules/attribute/models/attribute-possible-value.d.ts +25 -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 +25 -0
- package/.medusa/server/src/modules/attribute/models/attribute-value.js +18 -0
- package/.medusa/server/src/modules/attribute/models/attribute.d.ts +26 -0
- package/.medusa/server/src/modules/attribute/models/attribute.js +29 -0
- package/.medusa/server/src/modules/attribute/service.d.ts +111 -0
- package/.medusa/server/src/modules/attribute/service.js +77 -0
- package/.medusa/server/src/modules/configuration/index.d.ts +23 -0
- package/.medusa/server/src/modules/configuration/index.js +16 -0
- package/.medusa/server/src/modules/configuration/migrations/Migration20250114063624.d.ts +5 -0
- package/.medusa/server/src/modules/configuration/migrations/Migration20250114063624.js +16 -0
- package/.medusa/server/src/modules/configuration/migrations/Migration20250324131111.d.ts +5 -0
- package/.medusa/server/src/modules/configuration/migrations/Migration20250324131111.js +16 -0
- package/.medusa/server/src/modules/configuration/models/configuration-rule.d.ts +5 -0
- package/.medusa/server/src/modules/configuration/models/configuration-rule.js +17 -0
- package/.medusa/server/src/modules/configuration/models/index.d.ts +1 -0
- package/.medusa/server/src/modules/configuration/models/index.js +18 -0
- package/.medusa/server/src/modules/configuration/service.d.ts +12 -0
- package/.medusa/server/src/modules/configuration/service.js +17 -0
- package/.medusa/server/src/modules/marketplace/index.d.ts +22 -0
- package/.medusa/server/src/modules/marketplace/index.js +14 -0
- package/.medusa/server/src/modules/marketplace/migrations/Migration20241207151814.d.ts +5 -0
- package/.medusa/server/src/modules/marketplace/migrations/Migration20241207151814.js +15 -0
- package/.medusa/server/src/modules/marketplace/models/index.d.ts +1 -0
- package/.medusa/server/src/modules/marketplace/models/index.js +18 -0
- package/.medusa/server/src/modules/marketplace/models/order-set.d.ts +8 -0
- package/.medusa/server/src/modules/marketplace/models/order-set.js +13 -0
- package/.medusa/server/src/modules/marketplace/service.d.ts +13 -0
- package/.medusa/server/src/modules/marketplace/service.js +10 -0
- package/.medusa/server/src/modules/payout/index.d.ts +64 -0
- package/.medusa/server/src/modules/payout/index.js +14 -0
- package/.medusa/server/src/modules/payout/migrations/Migration20250317090626.d.ts +5 -0
- package/.medusa/server/src/modules/payout/migrations/Migration20250317090626.js +28 -0
- package/.medusa/server/src/modules/payout/migrations/Migration20250612144913.d.ts +5 -0
- package/.medusa/server/src/modules/payout/migrations/Migration20250612144913.js +18 -0
- package/.medusa/server/src/modules/payout/models/index.d.ts +4 -0
- package/.medusa/server/src/modules/payout/models/index.js +21 -0
- package/.medusa/server/src/modules/payout/models/onboarding.d.ts +27 -0
- package/.medusa/server/src/modules/payout/models/onboarding.js +14 -0
- package/.medusa/server/src/modules/payout/models/payout-account.d.ts +33 -0
- package/.medusa/server/src/modules/payout/models/payout-account.js +17 -0
- package/.medusa/server/src/modules/payout/models/payout-reversal.d.ts +32 -0
- package/.medusa/server/src/modules/payout/models/payout-reversal.js +15 -0
- package/.medusa/server/src/modules/payout/models/payout.d.ts +32 -0
- package/.medusa/server/src/modules/payout/models/payout.js +17 -0
- package/.medusa/server/src/modules/payout/service.d.ts +443 -0
- package/.medusa/server/src/modules/payout/service.js +164 -0
- package/.medusa/server/src/modules/payout/services/index.d.ts +1 -0
- package/.medusa/server/src/modules/payout/services/index.js +18 -0
- package/.medusa/server/src/modules/payout/services/provider.d.ts +29 -0
- package/.medusa/server/src/modules/payout/services/provider.js +137 -0
- package/.medusa/server/src/modules/seller/index.d.ts +65 -0
- package/.medusa/server/src/modules/seller/index.js +27 -0
- package/.medusa/server/src/modules/seller/migrations/Migration20241206125415.d.ts +5 -0
- package/.medusa/server/src/modules/seller/migrations/Migration20241206125415.js +28 -0
- package/.medusa/server/src/modules/seller/migrations/Migration20250212131627.d.ts +5 -0
- package/.medusa/server/src/modules/seller/migrations/Migration20250212131627.js +20 -0
- package/.medusa/server/src/modules/seller/migrations/Migration20250225083755.d.ts +5 -0
- package/.medusa/server/src/modules/seller/migrations/Migration20250225083755.js +26 -0
- package/.medusa/server/src/modules/seller/migrations/Migration20250225094708.d.ts +5 -0
- package/.medusa/server/src/modules/seller/migrations/Migration20250225094708.js +18 -0
- package/.medusa/server/src/modules/seller/migrations/Migration20250307091819.d.ts +5 -0
- package/.medusa/server/src/modules/seller/migrations/Migration20250307091819.js +16 -0
- package/.medusa/server/src/modules/seller/migrations/Migration20250313065552.d.ts +5 -0
- package/.medusa/server/src/modules/seller/migrations/Migration20250313065552.js +19 -0
- package/.medusa/server/src/modules/seller/migrations/Migration20250530111528.d.ts +5 -0
- package/.medusa/server/src/modules/seller/migrations/Migration20250530111528.js +14 -0
- package/.medusa/server/src/modules/seller/models/index.d.ts +4 -0
- package/.medusa/server/src/modules/seller/models/index.js +21 -0
- package/.medusa/server/src/modules/seller/models/invite.d.ts +51 -0
- package/.medusa/server/src/modules/seller/models/invite.js +16 -0
- package/.medusa/server/src/modules/seller/models/member.d.ts +51 -0
- package/.medusa/server/src/modules/seller/models/member.js +17 -0
- package/.medusa/server/src/modules/seller/models/onboarding.d.ts +43 -0
- package/.medusa/server/src/modules/seller/models/onboarding.js +14 -0
- package/.medusa/server/src/modules/seller/models/seller.d.ts +51 -0
- package/.medusa/server/src/modules/seller/models/seller.js +28 -0
- package/.medusa/server/src/modules/seller/service.d.ts +268 -0
- package/.medusa/server/src/modules/seller/service.js +110 -0
- package/.medusa/server/src/modules/seller/utils.d.ts +23 -0
- package/.medusa/server/src/modules/seller/utils.js +78 -0
- package/.medusa/server/src/modules/split-order-payment/index.d.ts +22 -0
- package/.medusa/server/src/modules/split-order-payment/index.js +14 -0
- package/.medusa/server/src/modules/split-order-payment/migrations/Migration20250516075429.d.ts +5 -0
- package/.medusa/server/src/modules/split-order-payment/migrations/Migration20250516075429.js +15 -0
- package/.medusa/server/src/modules/split-order-payment/models/split-order-payment.d.ts +9 -0
- package/.medusa/server/src/modules/split-order-payment/models/split-order-payment.js +14 -0
- package/.medusa/server/src/modules/split-order-payment/service.d.ts +14 -0
- package/.medusa/server/src/modules/split-order-payment/service.js +10 -0
- package/.medusa/server/src/modules/taxcode/index.d.ts +22 -0
- package/.medusa/server/src/modules/taxcode/index.js +14 -0
- package/.medusa/server/src/modules/taxcode/migrations/Migration20250116135408.d.ts +5 -0
- package/.medusa/server/src/modules/taxcode/migrations/Migration20250116135408.js +16 -0
- package/.medusa/server/src/modules/taxcode/models/taxcode.d.ts +7 -0
- package/.medusa/server/src/modules/taxcode/models/taxcode.js +11 -0
- package/.medusa/server/src/modules/taxcode/service.d.ts +18 -0
- package/.medusa/server/src/modules/taxcode/service.js +30 -0
- package/.medusa/server/src/modules/wishlist/index.d.ts +23 -0
- package/.medusa/server/src/modules/wishlist/index.js +29 -0
- package/.medusa/server/src/modules/wishlist/migrations/Migration20250424110903.d.ts +5 -0
- package/.medusa/server/src/modules/wishlist/migrations/Migration20250424110903.js +15 -0
- package/.medusa/server/src/modules/wishlist/models/wishlist.d.ts +4 -0
- package/.medusa/server/src/modules/wishlist/models/wishlist.js +9 -0
- package/.medusa/server/src/modules/wishlist/service.d.ts +9 -0
- package/.medusa/server/src/modules/wishlist/service.js +10 -0
- package/.medusa/server/src/modules/wishlist/utils.d.ts +42 -0
- package/.medusa/server/src/modules/wishlist/utils.js +48 -0
- package/.medusa/server/src/shared/infra/http/middlewares/apply-reference-filter.d.ts +6 -0
- package/.medusa/server/src/shared/infra/http/middlewares/apply-reference-filter.js +15 -0
- package/.medusa/server/src/shared/infra/http/middlewares/apply-request-status-filter.d.ts +6 -0
- package/.medusa/server/src/shared/infra/http/middlewares/apply-request-status-filter.js +15 -0
- package/.medusa/server/src/shared/infra/http/middlewares/apply-request-type-filter.d.ts +6 -0
- package/.medusa/server/src/shared/infra/http/middlewares/apply-request-type-filter.js +15 -0
- package/.medusa/server/src/shared/infra/http/middlewares/check-configuration-rule.d.ts +5 -0
- package/.medusa/server/src/shared/infra/http/middlewares/check-configuration-rule.js +23 -0
- package/.medusa/server/src/shared/infra/http/middlewares/check-customer-ownership.d.ts +9 -0
- package/.medusa/server/src/shared/infra/http/middlewares/check-customer-ownership.js +34 -0
- package/.medusa/server/src/shared/infra/http/middlewares/check-ownership.d.ts +34 -0
- package/.medusa/server/src/shared/infra/http/middlewares/check-ownership.js +66 -0
- package/.medusa/server/src/shared/infra/http/middlewares/check-seller-approved.d.ts +3 -0
- package/.medusa/server/src/shared/infra/http/middlewares/check-seller-approved.js +23 -0
- package/.medusa/server/src/shared/infra/http/middlewares/filter-by-seller-id.d.ts +6 -0
- package/.medusa/server/src/shared/infra/http/middlewares/filter-by-seller-id.js +15 -0
- package/.medusa/server/src/shared/infra/http/middlewares/index.d.ts +9 -0
- package/.medusa/server/src/shared/infra/http/middlewares/index.js +26 -0
- package/.medusa/server/src/shared/infra/http/middlewares/store-active-guard.d.ts +9 -0
- package/.medusa/server/src/shared/infra/http/middlewares/store-active-guard.js +24 -0
- package/.medusa/server/src/shared/infra/http/utils/admin.d.ts +2 -0
- package/.medusa/server/src/shared/infra/http/utils/admin.js +14 -0
- package/.medusa/server/src/shared/infra/http/utils/hosts.d.ts +23 -0
- package/.medusa/server/src/shared/infra/http/utils/hosts.js +43 -0
- package/.medusa/server/src/shared/infra/http/utils/index.d.ts +5 -0
- package/.medusa/server/src/shared/infra/http/utils/index.js +22 -0
- package/.medusa/server/src/shared/infra/http/utils/products.d.ts +5 -0
- package/.medusa/server/src/shared/infra/http/utils/products.js +52 -0
- package/.medusa/server/src/shared/infra/http/utils/seller.d.ts +3 -0
- package/.medusa/server/src/shared/infra/http/utils/seller.js +19 -0
- package/.medusa/server/src/shared/infra/http/utils/unless-base-url.d.ts +10 -0
- package/.medusa/server/src/shared/infra/http/utils/unless-base-url.js +20 -0
- package/.medusa/server/src/shared/infra/http/utils/zod.d.ts +8 -0
- package/.medusa/server/src/shared/infra/http/utils/zod.js +8 -0
- package/.medusa/server/src/shared/utils/index.d.ts +1 -0
- package/.medusa/server/src/shared/utils/index.js +18 -0
- package/.medusa/server/src/shared/utils/money.d.ts +16 -0
- package/.medusa/server/src/shared/utils/money.js +68 -0
- package/.medusa/server/src/subscribers/algolia-fulfillment-set-changed.d.ts +5 -0
- package/.medusa/server/src/subscribers/algolia-fulfillment-set-changed.js +45 -0
- package/.medusa/server/src/subscribers/algolia-inventory-item.changed.d.ts +5 -0
- package/.medusa/server/src/subscribers/algolia-inventory-item.changed.js +31 -0
- package/.medusa/server/src/subscribers/algolia-service-zone-changed.d.ts +5 -0
- package/.medusa/server/src/subscribers/algolia-service-zone-changed.js +45 -0
- package/.medusa/server/src/subscribers/algolia-shipping-option-changed.d.ts +5 -0
- package/.medusa/server/src/subscribers/algolia-shipping-option-changed.js +45 -0
- package/.medusa/server/src/subscribers/algolia-stock-location-changed.d.ts +5 -0
- package/.medusa/server/src/subscribers/algolia-stock-location-changed.js +45 -0
- package/.medusa/server/src/subscribers/notification-admin-new-order-set.d.ts +5 -0
- package/.medusa/server/src/subscribers/notification-admin-new-order-set.js +41 -0
- package/.medusa/server/src/subscribers/notification-seller-new-order.d.ts +5 -0
- package/.medusa/server/src/subscribers/notification-seller-new-order.js +53 -0
- package/.medusa/server/src/subscribers/order-set-placed-payment-capture.d.ts +6 -0
- package/.medusa/server/src/subscribers/order-set-placed-payment-capture.js +49 -0
- package/.medusa/server/src/subscribers/payout-order.d.ts +5 -0
- package/.medusa/server/src/subscribers/payout-order.js +23 -0
- package/.medusa/server/src/subscribers/payout-webhook.d.ts +4 -0
- package/.medusa/server/src/subscribers/payout-webhook.js +31 -0
- package/.medusa/server/src/subscribers/seller-creation-request-accepted.d.ts +4 -0
- package/.medusa/server/src/subscribers/seller-creation-request-accepted.js +27 -0
- package/.medusa/server/src/subscribers/seller-status-changed.d.ts +7 -0
- package/.medusa/server/src/subscribers/seller-status-changed.js +38 -0
- package/.medusa/server/src/subscribers/split-payment-payment-captured.d.ts +5 -0
- package/.medusa/server/src/subscribers/split-payment-payment-captured.js +24 -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 +38 -0
- package/.medusa/server/src/workflows/attribute/steps/create-attribute-possible-values.js +18 -0
- package/.medusa/server/src/workflows/attribute/steps/create-attribute-value.d.ts +37 -0
- package/.medusa/server/src/workflows/attribute/steps/create-attribute-value.js +21 -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-value.d.ts +2 -0
- package/.medusa/server/src/workflows/attribute/steps/delete-attribute-value.js +18 -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 +8 -0
- package/.medusa/server/src/workflows/attribute/steps/index.js +25 -0
- package/.medusa/server/src/workflows/attribute/steps/update-attribute-possible-value.d.ts +37 -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 +20 -0
- package/.medusa/server/src/workflows/attribute/steps/update-attributes.js +37 -0
- package/.medusa/server/src/workflows/attribute/steps/validate-attribute-value.d.ts +3 -0
- package/.medusa/server/src/workflows/attribute/steps/validate-attribute-value.js +53 -0
- package/.medusa/server/src/workflows/attribute/utils/index.d.ts +3 -0
- package/.medusa/server/src/workflows/attribute/utils/index.js +20 -0
- package/.medusa/server/src/workflows/attribute/utils/products-created-handler.d.ts +6 -0
- package/.medusa/server/src/workflows/attribute/utils/products-created-handler.js +35 -0
- package/.medusa/server/src/workflows/attribute/utils/products-updated-handler.d.ts +7 -0
- package/.medusa/server/src/workflows/attribute/utils/products-updated-handler.js +64 -0
- package/.medusa/server/src/workflows/attribute/utils/validate-attribute-values-to-link.d.ts +7 -0
- package/.medusa/server/src/workflows/attribute/utils/validate-attribute-values-to-link.js +43 -0
- package/.medusa/server/src/workflows/attribute/workflows/create-attribute-possible-values.d.ts +37 -0
- package/.medusa/server/src/workflows/attribute/workflows/create-attribute-possible-values.js +11 -0
- package/.medusa/server/src/workflows/attribute/workflows/create-attribute-value.d.ts +37 -0
- package/.medusa/server/src/workflows/attribute/workflows/create-attribute-value.js +32 -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-value.d.ts +3 -0
- package/.medusa/server/src/workflows/attribute/workflows/delete-attribute-value.js +38 -0
- package/.medusa/server/src/workflows/attribute/workflows/delete-attribute.d.ts +6 -0
- package/.medusa/server/src/workflows/attribute/workflows/delete-attribute.js +10 -0
- package/.medusa/server/src/workflows/attribute/workflows/index.d.ts +7 -0
- package/.medusa/server/src/workflows/attribute/workflows/index.js +24 -0
- package/.medusa/server/src/workflows/attribute/workflows/update-attribute-possible-value.d.ts +37 -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 +23 -0
- package/.medusa/server/src/workflows/attribute/workflows/update-attributes.js +68 -0
- package/.medusa/server/src/workflows/campaigns/index.d.ts +1 -0
- package/.medusa/server/src/workflows/campaigns/index.js +18 -0
- package/.medusa/server/src/workflows/campaigns/workflows/create-vendor-campaign.d.ts +5 -0
- package/.medusa/server/src/workflows/campaigns/workflows/create-vendor-campaign.js +27 -0
- package/.medusa/server/src/workflows/campaigns/workflows/index.d.ts +1 -0
- package/.medusa/server/src/workflows/campaigns/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/create-order-set.d.ts +13 -0
- package/.medusa/server/src/workflows/cart/steps/create-order-set.js +14 -0
- package/.medusa/server/src/workflows/cart/steps/filter-seller-shipping-options.d.ts +26 -0
- package/.medusa/server/src/workflows/cart/steps/filter-seller-shipping-options.js +56 -0
- package/.medusa/server/src/workflows/cart/steps/index.d.ts +4 -0
- package/.medusa/server/src/workflows/cart/steps/index.js +21 -0
- package/.medusa/server/src/workflows/cart/steps/validate-cart-sellers.d.ts +6 -0
- package/.medusa/server/src/workflows/cart/steps/validate-cart-sellers.js +29 -0
- package/.medusa/server/src/workflows/cart/steps/validate-cart-shipping-options.d.ts +9 -0
- package/.medusa/server/src/workflows/cart/steps/validate-cart-shipping-options.js +48 -0
- package/.medusa/server/src/workflows/cart/utils/complete-cart-fields.d.ts +1 -0
- package/.medusa/server/src/workflows/cart/utils/complete-cart-fields.js +76 -0
- package/.medusa/server/src/workflows/cart/utils/index.d.ts +3 -0
- package/.medusa/server/src/workflows/cart/utils/index.js +20 -0
- package/.medusa/server/src/workflows/cart/utils/prepare-confirm-inventory-input.d.ts +15 -0
- package/.medusa/server/src/workflows/cart/utils/prepare-confirm-inventory-input.js +92 -0
- package/.medusa/server/src/workflows/cart/utils/prepare-line-item-data.d.ts +40 -0
- package/.medusa/server/src/workflows/cart/utils/prepare-line-item-data.js +82 -0
- package/.medusa/server/src/workflows/cart/workflows/add-seller-shipping-method-to-cart.d.ts +9 -0
- package/.medusa/server/src/workflows/cart/workflows/add-seller-shipping-method-to-cart.js +78 -0
- package/.medusa/server/src/workflows/cart/workflows/delete-seller-line-item.d.ts +6 -0
- package/.medusa/server/src/workflows/cart/workflows/delete-seller-line-item.js +50 -0
- package/.medusa/server/src/workflows/cart/workflows/index.d.ts +6 -0
- package/.medusa/server/src/workflows/cart/workflows/index.js +23 -0
- package/.medusa/server/src/workflows/cart/workflows/list-seller-return-shipping-options-for-order.d.ts +3 -0
- package/.medusa/server/src/workflows/cart/workflows/list-seller-return-shipping-options-for-order.js +27 -0
- package/.medusa/server/src/workflows/cart/workflows/list-seller-shipping-options-for-cart.d.ts +25 -0
- package/.medusa/server/src/workflows/cart/workflows/list-seller-shipping-options-for-cart.js +17 -0
- package/.medusa/server/src/workflows/cart/workflows/remove-cart-shipping-method.d.ts +5 -0
- package/.medusa/server/src/workflows/cart/workflows/remove-cart-shipping-method.js +9 -0
- package/.medusa/server/src/workflows/cart/workflows/split-and-complete-cart.d.ts +9 -0
- package/.medusa/server/src/workflows/cart/workflows/split-and-complete-cart.js +246 -0
- package/.medusa/server/src/workflows/common/index.d.ts +1 -0
- package/.medusa/server/src/workflows/common/index.js +18 -0
- package/.medusa/server/src/workflows/common/steps/emit-multiple-events-step.d.ts +6 -0
- package/.medusa/server/src/workflows/common/steps/emit-multiple-events-step.js +12 -0
- package/.medusa/server/src/workflows/common/steps/index.d.ts +1 -0
- package/.medusa/server/src/workflows/common/steps/index.js +18 -0
- package/.medusa/server/src/workflows/configuration/index.d.ts +2 -0
- package/.medusa/server/src/workflows/configuration/index.js +19 -0
- package/.medusa/server/src/workflows/configuration/steps/create-configuration-rule.d.ts +9 -0
- package/.medusa/server/src/workflows/configuration/steps/create-configuration-rule.js +14 -0
- package/.medusa/server/src/workflows/configuration/steps/index.d.ts +2 -0
- package/.medusa/server/src/workflows/configuration/steps/index.js +19 -0
- package/.medusa/server/src/workflows/configuration/steps/update-configuration-rule.d.ts +9 -0
- package/.medusa/server/src/workflows/configuration/steps/update-configuration-rule.js +11 -0
- package/.medusa/server/src/workflows/configuration/workflows/create-configuration-rule.d.ts +9 -0
- package/.medusa/server/src/workflows/configuration/workflows/create-configuration-rule.js +9 -0
- package/.medusa/server/src/workflows/configuration/workflows/index.d.ts +2 -0
- package/.medusa/server/src/workflows/configuration/workflows/index.js +19 -0
- package/.medusa/server/src/workflows/configuration/workflows/update-configuration-rule.d.ts +9 -0
- package/.medusa/server/src/workflows/configuration/workflows/update-configuration-rule.js +9 -0
- package/.medusa/server/src/workflows/customer-groups/index.d.ts +1 -0
- package/.medusa/server/src/workflows/customer-groups/index.js +18 -0
- package/.medusa/server/src/workflows/customer-groups/workflows/create-seller-customer-group.d.ts +7 -0
- package/.medusa/server/src/workflows/customer-groups/workflows/create-seller-customer-group.js +29 -0
- package/.medusa/server/src/workflows/customer-groups/workflows/index.d.ts +1 -0
- package/.medusa/server/src/workflows/customer-groups/workflows/index.js +18 -0
- package/.medusa/server/src/workflows/fulfillment-set/create-location-fulfillment-set-and-associate-with-seller.d.ts +10 -0
- package/.medusa/server/src/workflows/fulfillment-set/create-location-fulfillment-set-and-associate-with-seller.js +36 -0
- package/.medusa/server/src/workflows/fulfillment-set/create-vendor-service-zone.d.ts +7 -0
- package/.medusa/server/src/workflows/fulfillment-set/create-vendor-service-zone.js +30 -0
- package/.medusa/server/src/workflows/fulfillment-set/delete-vendor-service-zone.d.ts +6 -0
- package/.medusa/server/src/workflows/fulfillment-set/delete-vendor-service-zone.js +34 -0
- package/.medusa/server/src/workflows/fulfillment-set/index.d.ts +3 -0
- package/.medusa/server/src/workflows/fulfillment-set/index.js +20 -0
- package/.medusa/server/src/workflows/hooks/order-shipment-created.d.ts +1 -0
- package/.medusa/server/src/workflows/hooks/order-shipment-created.js +31 -0
- package/.medusa/server/src/workflows/hooks/product-collections-updated.d.ts +1 -0
- package/.medusa/server/src/workflows/hooks/product-collections-updated.js +19 -0
- package/.medusa/server/src/workflows/hooks/product-created.d.ts +1 -0
- package/.medusa/server/src/workflows/hooks/product-created.js +111 -0
- package/.medusa/server/src/workflows/hooks/product-deleted.d.ts +1 -0
- package/.medusa/server/src/workflows/hooks/product-deleted.js +12 -0
- package/.medusa/server/src/workflows/hooks/product-options-updated.d.ts +1 -0
- package/.medusa/server/src/workflows/hooks/product-options-updated.js +16 -0
- package/.medusa/server/src/workflows/hooks/product-tags-updated.d.ts +1 -0
- package/.medusa/server/src/workflows/hooks/product-tags-updated.js +19 -0
- package/.medusa/server/src/workflows/hooks/product-updated.d.ts +1 -0
- package/.medusa/server/src/workflows/hooks/product-updated.js +18 -0
- package/.medusa/server/src/workflows/hooks/product-variant-created.d.ts +1 -0
- package/.medusa/server/src/workflows/hooks/product-variant-created.js +42 -0
- package/.medusa/server/src/workflows/hooks/product-variants-updated.d.ts +1 -0
- package/.medusa/server/src/workflows/hooks/product-variants-updated.js +16 -0
- package/.medusa/server/src/workflows/index.d.ts +14 -0
- package/.medusa/server/src/workflows/index.js +31 -0
- package/.medusa/server/src/workflows/order/index.d.ts +2 -0
- package/.medusa/server/src/workflows/order/index.js +19 -0
- package/.medusa/server/src/workflows/order/steps/calculate-payout-for-order.d.ts +3 -0
- package/.medusa/server/src/workflows/order/steps/calculate-payout-for-order.js +34 -0
- package/.medusa/server/src/workflows/order/steps/calculate-total-commission.d.ts +6 -0
- package/.medusa/server/src/workflows/order/steps/calculate-total-commission.js +28 -0
- package/.medusa/server/src/workflows/order/steps/create-payout.d.ts +5 -0
- package/.medusa/server/src/workflows/order/steps/create-payout.js +21 -0
- package/.medusa/server/src/workflows/order/steps/index.d.ts +4 -0
- package/.medusa/server/src/workflows/order/steps/index.js +21 -0
- package/.medusa/server/src/workflows/order/steps/validate-no-existing-payout-for-order.d.ts +1 -0
- package/.medusa/server/src/workflows/order/steps/validate-no-existing-payout-for-order.js +23 -0
- package/.medusa/server/src/workflows/order/steps/validate-seller-payout-account.d.ts +2 -0
- package/.medusa/server/src/workflows/order/steps/validate-seller-payout-account.js +15 -0
- package/.medusa/server/src/workflows/order/utils/aggregate-status.d.ts +2 -0
- package/.medusa/server/src/workflows/order/utils/aggregate-status.js +69 -0
- package/.medusa/server/src/workflows/order/workflows/cancel-order.d.ts +4 -0
- package/.medusa/server/src/workflows/order/workflows/cancel-order.js +56 -0
- package/.medusa/server/src/workflows/order/workflows/get-vendor-order-list.d.ts +3 -0
- package/.medusa/server/src/workflows/order/workflows/get-vendor-order-list.js +41 -0
- package/.medusa/server/src/workflows/order/workflows/index.d.ts +3 -0
- package/.medusa/server/src/workflows/order/workflows/index.js +20 -0
- package/.medusa/server/src/workflows/order/workflows/process-payout-for-order.d.ts +5 -0
- package/.medusa/server/src/workflows/order/workflows/process-payout-for-order.js +82 -0
- package/.medusa/server/src/workflows/order-set/index.d.ts +1 -0
- package/.medusa/server/src/workflows/order-set/index.js +18 -0
- package/.medusa/server/src/workflows/order-set/utils/format-order-sets.d.ts +4 -0
- package/.medusa/server/src/workflows/order-set/utils/format-order-sets.js +75 -0
- package/.medusa/server/src/workflows/order-set/utils/index.d.ts +1 -0
- package/.medusa/server/src/workflows/order-set/utils/index.js +18 -0
- package/.medusa/server/src/workflows/order-set/workflows/get-formatted-order-set-list.d.ts +12 -0
- package/.medusa/server/src/workflows/order-set/workflows/get-formatted-order-set-list.js +62 -0
- package/.medusa/server/src/workflows/order-set/workflows/index.d.ts +1 -0
- package/.medusa/server/src/workflows/order-set/workflows/index.js +18 -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-payout-reversal.d.ts +8 -0
- package/.medusa/server/src/workflows/payout/steps/create-payout-reversal.js +25 -0
- package/.medusa/server/src/workflows/payout/steps/index.d.ts +2 -0
- package/.medusa/server/src/workflows/payout/steps/index.js +19 -0
- package/.medusa/server/src/workflows/payout/steps/update-payout-account.d.ts +2 -0
- package/.medusa/server/src/workflows/payout/steps/update-payout-account.js +15 -0
- package/.medusa/server/src/workflows/payout/workflows/index.d.ts +1 -0
- package/.medusa/server/src/workflows/payout/workflows/index.js +18 -0
- package/.medusa/server/src/workflows/payout/workflows/process-payout-webhook-action.d.ts +7 -0
- package/.medusa/server/src/workflows/payout/workflows/process-payout-webhook-action.js +20 -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/validate-vendor-price-list-prices.d.ts +7 -0
- package/.medusa/server/src/workflows/price-list/steps/validate-vendor-price-list-prices.js +60 -0
- package/.medusa/server/src/workflows/price-list/workflows/batch-vendor-price-list-prices.d.ts +10 -0
- package/.medusa/server/src/workflows/price-list/workflows/batch-vendor-price-list-prices.js +26 -0
- package/.medusa/server/src/workflows/price-list/workflows/create-vendor-price-list-prices.d.ts +6 -0
- package/.medusa/server/src/workflows/price-list/workflows/create-vendor-price-list-prices.js +21 -0
- package/.medusa/server/src/workflows/price-list/workflows/create-vendor-price-list.d.ts +5 -0
- package/.medusa/server/src/workflows/price-list/workflows/create-vendor-price-list.js +34 -0
- package/.medusa/server/src/workflows/price-list/workflows/index.d.ts +3 -0
- package/.medusa/server/src/workflows/price-list/workflows/index.js +20 -0
- package/.medusa/server/src/workflows/product/index.d.ts +2 -0
- package/.medusa/server/src/workflows/product/index.js +19 -0
- package/.medusa/server/src/workflows/product/steps/index.d.ts +1 -0
- package/.medusa/server/src/workflows/product/steps/index.js +18 -0
- package/.medusa/server/src/workflows/product/steps/update-product-status.d.ts +5 -0
- package/.medusa/server/src/workflows/product/steps/update-product-status.js +13 -0
- package/.medusa/server/src/workflows/product/workflows/index.d.ts +1 -0
- package/.medusa/server/src/workflows/product/workflows/index.js +18 -0
- package/.medusa/server/src/workflows/product/workflows/update-product-status.d.ts +5 -0
- package/.medusa/server/src/workflows/product/workflows/update-product-status.js +9 -0
- package/.medusa/server/src/workflows/promotions/index.d.ts +2 -0
- package/.medusa/server/src/workflows/promotions/index.js +19 -0
- package/.medusa/server/src/workflows/promotions/steps/index.d.ts +4 -0
- package/.medusa/server/src/workflows/promotions/steps/index.js +21 -0
- package/.medusa/server/src/workflows/promotions/steps/register-usage-step.d.ts +3 -0
- package/.medusa/server/src/workflows/promotions/steps/register-usage-step.js +21 -0
- package/.medusa/server/src/workflows/promotions/steps/verify-vendor-campaign.d.ts +6 -0
- package/.medusa/server/src/workflows/promotions/steps/verify-vendor-campaign.js +27 -0
- package/.medusa/server/src/workflows/promotions/steps/verify-vendor-promotion.d.ts +5 -0
- package/.medusa/server/src/workflows/promotions/steps/verify-vendor-promotion.js +12 -0
- package/.medusa/server/src/workflows/promotions/steps/verify-vendor-target-promotion-rules.d.ts +5 -0
- package/.medusa/server/src/workflows/promotions/steps/verify-vendor-target-promotion-rules.js +31 -0
- package/.medusa/server/src/workflows/promotions/workflows/batch-vendor-promotion-rules.d.ts +5 -0
- package/.medusa/server/src/workflows/promotions/workflows/batch-vendor-promotion-rules.js +18 -0
- package/.medusa/server/src/workflows/promotions/workflows/create-vendor-promotion.d.ts +5 -0
- package/.medusa/server/src/workflows/promotions/workflows/create-vendor-promotion.js +48 -0
- package/.medusa/server/src/workflows/promotions/workflows/index.d.ts +3 -0
- package/.medusa/server/src/workflows/promotions/workflows/index.js +20 -0
- package/.medusa/server/src/workflows/promotions/workflows/update-vendor-promotion.d.ts +5 -0
- package/.medusa/server/src/workflows/promotions/workflows/update-vendor-promotion.js +16 -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 +2 -0
- package/.medusa/server/src/workflows/seller/steps/create-member-invites.js +14 -0
- package/.medusa/server/src/workflows/seller/steps/create-member.d.ts +2 -0
- package/.medusa/server/src/workflows/seller/steps/create-member.js +14 -0
- package/.medusa/server/src/workflows/seller/steps/create-payment-account.d.ts +45 -0
- package/.medusa/server/src/workflows/seller/steps/create-payment-account.js +17 -0
- package/.medusa/server/src/workflows/seller/steps/create-payout-onboarding.d.ts +45 -0
- package/.medusa/server/src/workflows/seller/steps/create-payout-onboarding.js +11 -0
- package/.medusa/server/src/workflows/seller/steps/create-seller-onboarding.d.ts +59 -0
- package/.medusa/server/src/workflows/seller/steps/create-seller-onboarding.js +13 -0
- package/.medusa/server/src/workflows/seller/steps/create-seller-shipping-profile.d.ts +2 -0
- package/.medusa/server/src/workflows/seller/steps/create-seller-shipping-profile.js +30 -0
- package/.medusa/server/src/workflows/seller/steps/create-seller.d.ts +2 -0
- package/.medusa/server/src/workflows/seller/steps/create-seller.js +21 -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 +14 -0
- package/.medusa/server/src/workflows/seller/steps/delete-member.d.ts +1 -0
- package/.medusa/server/src/workflows/seller/steps/delete-member.js +20 -0
- package/.medusa/server/src/workflows/seller/steps/delete-seller.d.ts +1 -0
- package/.medusa/server/src/workflows/seller/steps/delete-seller.js +14 -0
- package/.medusa/server/src/workflows/seller/steps/get-seller-products.d.ts +2 -0
- package/.medusa/server/src/workflows/seller/steps/get-seller-products.js +55 -0
- package/.medusa/server/src/workflows/seller/steps/index.d.ts +21 -0
- package/.medusa/server/src/workflows/seller/steps/index.js +38 -0
- package/.medusa/server/src/workflows/seller/steps/recalculate-onboarding.d.ts +58 -0
- package/.medusa/server/src/workflows/seller/steps/recalculate-onboarding.js +84 -0
- package/.medusa/server/src/workflows/seller/steps/send-invitation-email.d.ts +2 -0
- package/.medusa/server/src/workflows/seller/steps/send-invitation-email.js +31 -0
- package/.medusa/server/src/workflows/seller/steps/sync-stripe-account.d.ts +44 -0
- package/.medusa/server/src/workflows/seller/steps/sync-stripe-account.js +11 -0
- package/.medusa/server/src/workflows/seller/steps/update-member-invite.d.ts +2 -0
- package/.medusa/server/src/workflows/seller/steps/update-member-invite.js +18 -0
- package/.medusa/server/src/workflows/seller/steps/update-member.d.ts +2 -0
- package/.medusa/server/src/workflows/seller/steps/update-member.js +15 -0
- package/.medusa/server/src/workflows/seller/steps/update-seller.d.ts +2 -0
- package/.medusa/server/src/workflows/seller/steps/update-seller.js +34 -0
- package/.medusa/server/src/workflows/seller/steps/validate-member-invites.d.ts +59 -0
- package/.medusa/server/src/workflows/seller/steps/validate-member-invites.js +11 -0
- package/.medusa/server/src/workflows/seller/steps/validate-no-existing-payout-account-for-seller.d.ts +1 -0
- package/.medusa/server/src/workflows/seller/steps/validate-no-existing-payout-account-for-seller.js +21 -0
- package/.medusa/server/src/workflows/seller/steps/validate-payout-account-exists-for-seller.d.ts +3 -0
- package/.medusa/server/src/workflows/seller/steps/validate-payout-account-exists-for-seller.js +24 -0
- package/.medusa/server/src/workflows/seller/steps/validate-products-to-import.d.ts +70 -0
- package/.medusa/server/src/workflows/seller/steps/validate-products-to-import.js +16 -0
- package/.medusa/server/src/workflows/seller/workflows/accept-member-invite.d.ts +64 -0
- package/.medusa/server/src/workflows/seller/workflows/accept-member-invite.js +27 -0
- package/.medusa/server/src/workflows/seller/workflows/create-onboarding-for-seller.d.ts +50 -0
- package/.medusa/server/src/workflows/seller/workflows/create-onboarding-for-seller.js +14 -0
- package/.medusa/server/src/workflows/seller/workflows/create-payout-account-for-seller.d.ts +50 -0
- package/.medusa/server/src/workflows/seller/workflows/create-payout-account-for-seller.js +27 -0
- package/.medusa/server/src/workflows/seller/workflows/create-seller.d.ts +10 -0
- package/.medusa/server/src/workflows/seller/workflows/create-seller.js +27 -0
- package/.medusa/server/src/workflows/seller/workflows/delete-member-invite.d.ts +1 -0
- package/.medusa/server/src/workflows/seller/workflows/delete-member-invite.js +9 -0
- package/.medusa/server/src/workflows/seller/workflows/delete-member.d.ts +1 -0
- package/.medusa/server/src/workflows/seller/workflows/delete-member.js +9 -0
- package/.medusa/server/src/workflows/seller/workflows/delete-seller.d.ts +1 -0
- package/.medusa/server/src/workflows/seller/workflows/delete-seller.js +9 -0
- package/.medusa/server/src/workflows/seller/workflows/export-seller-products.d.ts +1 -0
- package/.medusa/server/src/workflows/seller/workflows/export-seller-products.js +18 -0
- package/.medusa/server/src/workflows/seller/workflows/import-seller-products.d.ts +5 -0
- package/.medusa/server/src/workflows/seller/workflows/import-seller-products.js +39 -0
- package/.medusa/server/src/workflows/seller/workflows/index.d.ts +15 -0
- package/.medusa/server/src/workflows/seller/workflows/index.js +32 -0
- package/.medusa/server/src/workflows/seller/workflows/invite-member.d.ts +2 -0
- package/.medusa/server/src/workflows/seller/workflows/invite-member.js +9 -0
- package/.medusa/server/src/workflows/seller/workflows/invite-seller.d.ts +2 -0
- package/.medusa/server/src/workflows/seller/workflows/invite-seller.js +9 -0
- package/.medusa/server/src/workflows/seller/workflows/recalculate-onboarding.d.ts +58 -0
- package/.medusa/server/src/workflows/seller/workflows/recalculate-onboarding.js +9 -0
- package/.medusa/server/src/workflows/seller/workflows/sync-stripe-account.d.ts +44 -0
- package/.medusa/server/src/workflows/seller/workflows/sync-stripe-account.js +9 -0
- package/.medusa/server/src/workflows/seller/workflows/update-member.d.ts +2 -0
- package/.medusa/server/src/workflows/seller/workflows/update-member.js +9 -0
- package/.medusa/server/src/workflows/seller/workflows/update-seller.d.ts +2 -0
- package/.medusa/server/src/workflows/seller/workflows/update-seller.js +9 -0
- package/.medusa/server/src/workflows/split-order-payment/index.d.ts +2 -0
- package/.medusa/server/src/workflows/split-order-payment/index.js +19 -0
- package/.medusa/server/src/workflows/split-order-payment/steps/create-split-order-payments.d.ts +2 -0
- package/.medusa/server/src/workflows/split-order-payment/steps/create-split-order-payments.js +35 -0
- package/.medusa/server/src/workflows/split-order-payment/steps/index.d.ts +3 -0
- package/.medusa/server/src/workflows/split-order-payment/steps/index.js +20 -0
- package/.medusa/server/src/workflows/split-order-payment/steps/update-split-order-payment.d.ts +16 -0
- package/.medusa/server/src/workflows/split-order-payment/steps/update-split-order-payment.js +17 -0
- package/.medusa/server/src/workflows/split-order-payment/steps/validate-refund-split-order-payment.d.ts +6 -0
- package/.medusa/server/src/workflows/split-order-payment/steps/validate-refund-split-order-payment.js +27 -0
- package/.medusa/server/src/workflows/split-order-payment/workflows/index.d.ts +3 -0
- package/.medusa/server/src/workflows/split-order-payment/workflows/index.js +20 -0
- package/.medusa/server/src/workflows/split-order-payment/workflows/mark-split-order-payments-as-captured.d.ts +15 -0
- package/.medusa/server/src/workflows/split-order-payment/workflows/mark-split-order-payments-as-captured.js +28 -0
- package/.medusa/server/src/workflows/split-order-payment/workflows/partial-payment-refund.d.ts +8 -0
- package/.medusa/server/src/workflows/split-order-payment/workflows/partial-payment-refund.js +77 -0
- package/.medusa/server/src/workflows/split-order-payment/workflows/refund-split-order-payment.d.ts +16 -0
- package/.medusa/server/src/workflows/split-order-payment/workflows/refund-split-order-payment.js +16 -0
- package/.medusa/server/src/workflows/wishlist/index.d.ts +2 -0
- package/.medusa/server/src/workflows/wishlist/index.js +19 -0
- package/.medusa/server/src/workflows/wishlist/steps/create-wishlist.d.ts +2 -0
- package/.medusa/server/src/workflows/wishlist/steps/create-wishlist.js +37 -0
- package/.medusa/server/src/workflows/wishlist/steps/delete-wishlist.d.ts +5 -0
- package/.medusa/server/src/workflows/wishlist/steps/delete-wishlist.js +22 -0
- package/.medusa/server/src/workflows/wishlist/steps/index.d.ts +2 -0
- package/.medusa/server/src/workflows/wishlist/steps/index.js +19 -0
- package/.medusa/server/src/workflows/wishlist/workflows/create-wishlist.d.ts +2 -0
- package/.medusa/server/src/workflows/wishlist/workflows/create-wishlist.js +11 -0
- package/.medusa/server/src/workflows/wishlist/workflows/delete-wishlist.d.ts +5 -0
- package/.medusa/server/src/workflows/wishlist/workflows/delete-wishlist.js +11 -0
- package/.medusa/server/src/workflows/wishlist/workflows/index.d.ts +2 -0
- package/.medusa/server/src/workflows/wishlist/workflows/index.js +19 -0
- package/README.md +22 -0
- package/package.json +86 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { AcceptMemberInviteDTO } from "@mercurjs/framework";
|
|
2
|
+
export declare const validateMemberInviteStep: import("@medusajs/framework/workflows-sdk").StepFunction<AcceptMemberInviteDTO, {
|
|
3
|
+
id: string;
|
|
4
|
+
email: string;
|
|
5
|
+
role: import("@mercurjs/framework").MemberRole;
|
|
6
|
+
seller: {
|
|
7
|
+
id: string;
|
|
8
|
+
store_status: import("@mercurjs/framework").StoreStatus;
|
|
9
|
+
name: string;
|
|
10
|
+
handle: string;
|
|
11
|
+
description: string | null;
|
|
12
|
+
photo: string | null;
|
|
13
|
+
email: string | null;
|
|
14
|
+
phone: string | null;
|
|
15
|
+
address_line: string | null;
|
|
16
|
+
city: string | null;
|
|
17
|
+
state: string | null;
|
|
18
|
+
postal_code: string | null;
|
|
19
|
+
country_code: string | null;
|
|
20
|
+
tax_id: string | null;
|
|
21
|
+
members: {
|
|
22
|
+
id: string;
|
|
23
|
+
role: import("@mercurjs/framework").MemberRole;
|
|
24
|
+
name: string;
|
|
25
|
+
email: string | null;
|
|
26
|
+
bio: string | null;
|
|
27
|
+
phone: string | null;
|
|
28
|
+
photo: string | null;
|
|
29
|
+
seller: /*elided*/ any;
|
|
30
|
+
created_at: Date;
|
|
31
|
+
updated_at: Date;
|
|
32
|
+
deleted_at: Date | null;
|
|
33
|
+
seller_id: string;
|
|
34
|
+
}[];
|
|
35
|
+
invites: /*elided*/ any[];
|
|
36
|
+
onboarding: {
|
|
37
|
+
id: string;
|
|
38
|
+
store_information: boolean;
|
|
39
|
+
stripe_connection: boolean;
|
|
40
|
+
locations_shipping: boolean;
|
|
41
|
+
products: boolean;
|
|
42
|
+
seller: /*elided*/ any;
|
|
43
|
+
created_at: Date;
|
|
44
|
+
updated_at: Date;
|
|
45
|
+
deleted_at: Date | null;
|
|
46
|
+
seller_id: string;
|
|
47
|
+
};
|
|
48
|
+
created_at: Date;
|
|
49
|
+
updated_at: Date;
|
|
50
|
+
deleted_at: Date | null;
|
|
51
|
+
};
|
|
52
|
+
token: string;
|
|
53
|
+
expires_at: Date;
|
|
54
|
+
accepted: boolean;
|
|
55
|
+
created_at: Date;
|
|
56
|
+
updated_at: Date;
|
|
57
|
+
deleted_at: Date | null;
|
|
58
|
+
seller_id: string;
|
|
59
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateMemberInviteStep = void 0;
|
|
4
|
+
const workflows_sdk_1 = require("@medusajs/framework/workflows-sdk");
|
|
5
|
+
const seller_1 = require("../../../modules/seller");
|
|
6
|
+
exports.validateMemberInviteStep = (0, workflows_sdk_1.createStep)("validate-member-invite", async (input, { container }) => {
|
|
7
|
+
const service = container.resolve(seller_1.SELLER_MODULE);
|
|
8
|
+
const invite = await service.validateInviteToken(input.token);
|
|
9
|
+
return new workflows_sdk_1.StepResponse(invite);
|
|
10
|
+
});
|
|
11
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdGUtbWVtYmVyLWludml0ZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvd29ya2Zsb3dzL3NlbGxlci9zdGVwcy92YWxpZGF0ZS1tZW1iZXItaW52aXRlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxxRUFBNkU7QUFHN0Usb0RBQTZFO0FBRWhFLFFBQUEsd0JBQXdCLEdBQUcsSUFBQSwwQkFBVSxFQUNoRCx3QkFBd0IsRUFDeEIsS0FBSyxFQUFFLEtBQTRCLEVBQUUsRUFBRSxTQUFTLEVBQUUsRUFBRSxFQUFFO0lBQ3BELE1BQU0sT0FBTyxHQUFHLFNBQVMsQ0FBQyxPQUFPLENBQXNCLHNCQUFhLENBQUMsQ0FBQztJQUV0RSxNQUFNLE1BQU0sR0FBRyxNQUFNLE9BQU8sQ0FBQyxtQkFBbUIsQ0FBQyxLQUFLLENBQUMsS0FBSyxDQUFDLENBQUM7SUFFOUQsT0FBTyxJQUFJLDRCQUFZLENBQUMsTUFBTSxDQUFDLENBQUM7QUFDbEMsQ0FBQyxDQUNGLENBQUMifQ==
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const validateNoExistingPayoutAccountForSellerStep: import("@medusajs/framework/workflows-sdk").StepFunction<string, unknown>;
|
package/.medusa/server/src/workflows/seller/steps/validate-no-existing-payout-account-for-seller.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.validateNoExistingPayoutAccountForSellerStep = void 0;
|
|
7
|
+
const utils_1 = require("@medusajs/framework/utils");
|
|
8
|
+
const workflows_sdk_1 = require("@medusajs/framework/workflows-sdk");
|
|
9
|
+
const seller_payout_account_1 = __importDefault(require("../../../links/seller-payout-account"));
|
|
10
|
+
exports.validateNoExistingPayoutAccountForSellerStep = (0, workflows_sdk_1.createStep)('validate-no-existing-payout-account-for-seller', async (sellerId, { container }) => {
|
|
11
|
+
const query = container.resolve(utils_1.ContainerRegistrationKeys.QUERY);
|
|
12
|
+
const { data: sellerPayoutAccountRelations } = await query.graph({
|
|
13
|
+
entity: seller_payout_account_1.default.entryPoint,
|
|
14
|
+
fields: ['id'],
|
|
15
|
+
filters: { seller_id: sellerId }
|
|
16
|
+
});
|
|
17
|
+
if (sellerPayoutAccountRelations.length > 0) {
|
|
18
|
+
throw new utils_1.MedusaError(utils_1.MedusaError.Types.DUPLICATE_ERROR, 'Payment account already exists for seller');
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdGUtbm8tZXhpc3RpbmctcGF5b3V0LWFjY291bnQtZm9yLXNlbGxlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy93b3JrZmxvd3Mvc2VsbGVyL3N0ZXBzL3ZhbGlkYXRlLW5vLWV4aXN0aW5nLXBheW91dC1hY2NvdW50LWZvci1zZWxsZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUEscURBR2tDO0FBQ2xDLHFFQUE4RDtBQUU5RCxpR0FBMEU7QUFFN0QsUUFBQSw0Q0FBNEMsR0FBRyxJQUFBLDBCQUFVLEVBQ3BFLGdEQUFnRCxFQUNoRCxLQUFLLEVBQUUsUUFBZ0IsRUFBRSxFQUFFLFNBQVMsRUFBRSxFQUFFLEVBQUU7SUFDeEMsTUFBTSxLQUFLLEdBQUcsU0FBUyxDQUFDLE9BQU8sQ0FBQyxpQ0FBeUIsQ0FBQyxLQUFLLENBQUMsQ0FBQTtJQUVoRSxNQUFNLEVBQUUsSUFBSSxFQUFFLDRCQUE0QixFQUFFLEdBQUcsTUFBTSxLQUFLLENBQUMsS0FBSyxDQUFDO1FBQy9ELE1BQU0sRUFBRSwrQkFBdUIsQ0FBQyxVQUFVO1FBQzFDLE1BQU0sRUFBRSxDQUFDLElBQUksQ0FBQztRQUNkLE9BQU8sRUFBRSxFQUFFLFNBQVMsRUFBRSxRQUFRLEVBQUU7S0FDakMsQ0FBQyxDQUFBO0lBRUYsSUFBSSw0QkFBNEIsQ0FBQyxNQUFNLEdBQUcsQ0FBQyxFQUFFLENBQUM7UUFDNUMsTUFBTSxJQUFJLG1CQUFXLENBQ25CLG1CQUFXLENBQUMsS0FBSyxDQUFDLGVBQWUsRUFDakMsMkNBQTJDLENBQzVDLENBQUE7SUFDSCxDQUFDO0FBQ0gsQ0FBQyxDQUNGLENBQUEifQ==
|
package/.medusa/server/src/workflows/seller/steps/validate-payout-account-exists-for-seller.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.validatePayoutAccountExistsForSellerStep = void 0;
|
|
7
|
+
const utils_1 = require("@medusajs/framework/utils");
|
|
8
|
+
const workflows_sdk_1 = require("@medusajs/framework/workflows-sdk");
|
|
9
|
+
const seller_payout_account_1 = __importDefault(require("../../../links/seller-payout-account"));
|
|
10
|
+
exports.validatePayoutAccountExistsForSellerStep = (0, workflows_sdk_1.createStep)('validate-payout-account-exists-for-seller', async (sellerId, { container }) => {
|
|
11
|
+
const query = container.resolve(utils_1.ContainerRegistrationKeys.QUERY);
|
|
12
|
+
const { data: [sellerPayoutAccountRelations] } = await query.graph({
|
|
13
|
+
entity: seller_payout_account_1.default.entryPoint,
|
|
14
|
+
fields: ['id', 'payout_account_id'],
|
|
15
|
+
filters: { seller_id: sellerId }
|
|
16
|
+
});
|
|
17
|
+
if (!sellerPayoutAccountRelations) {
|
|
18
|
+
throw new utils_1.MedusaError(utils_1.MedusaError.Types.NOT_FOUND, 'No payment account exists for seller');
|
|
19
|
+
}
|
|
20
|
+
return new workflows_sdk_1.StepResponse({
|
|
21
|
+
id: sellerPayoutAccountRelations.payout_account_id
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdGUtcGF5b3V0LWFjY291bnQtZXhpc3RzLWZvci1zZWxsZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvd29ya2Zsb3dzL3NlbGxlci9zdGVwcy92YWxpZGF0ZS1wYXlvdXQtYWNjb3VudC1leGlzdHMtZm9yLXNlbGxlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSxxREFHa0M7QUFDbEMscUVBQTRFO0FBRTVFLGlHQUEwRTtBQUU3RCxRQUFBLHdDQUF3QyxHQUFHLElBQUEsMEJBQVUsRUFDaEUsMkNBQTJDLEVBQzNDLEtBQUssRUFBRSxRQUFnQixFQUFFLEVBQUUsU0FBUyxFQUFFLEVBQUUsRUFBRTtJQUN4QyxNQUFNLEtBQUssR0FBRyxTQUFTLENBQUMsT0FBTyxDQUFDLGlDQUF5QixDQUFDLEtBQUssQ0FBQyxDQUFBO0lBRWhFLE1BQU0sRUFDSixJQUFJLEVBQUUsQ0FBQyw0QkFBNEIsQ0FBQyxFQUNyQyxHQUFHLE1BQU0sS0FBSyxDQUFDLEtBQUssQ0FBQztRQUNwQixNQUFNLEVBQUUsK0JBQXVCLENBQUMsVUFBVTtRQUMxQyxNQUFNLEVBQUUsQ0FBQyxJQUFJLEVBQUUsbUJBQW1CLENBQUM7UUFDbkMsT0FBTyxFQUFFLEVBQUUsU0FBUyxFQUFFLFFBQVEsRUFBRTtLQUNqQyxDQUFDLENBQUE7SUFFRixJQUFJLENBQUMsNEJBQTRCLEVBQUUsQ0FBQztRQUNsQyxNQUFNLElBQUksbUJBQVcsQ0FDbkIsbUJBQVcsQ0FBQyxLQUFLLENBQUMsU0FBUyxFQUMzQixzQ0FBc0MsQ0FDdkMsQ0FBQTtJQUNILENBQUM7SUFFRCxPQUFPLElBQUksNEJBQVksQ0FBQztRQUN0QixFQUFFLEVBQUUsNEJBQTRCLENBQUMsaUJBQWlCO0tBQ25ELENBQUMsQ0FBQTtBQUNKLENBQUMsQ0FDRixDQUFBIn0=
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { ProductStatus } from '@medusajs/framework/utils';
|
|
2
|
+
export declare const validateProductsToImportStep: import("@medusajs/framework/workflows-sdk").StepFunction<unknown[], {
|
|
3
|
+
status: ProductStatus;
|
|
4
|
+
title: string;
|
|
5
|
+
is_giftcard: boolean;
|
|
6
|
+
discountable: boolean;
|
|
7
|
+
length?: number | undefined;
|
|
8
|
+
options?: {
|
|
9
|
+
values: string[];
|
|
10
|
+
title: string;
|
|
11
|
+
}[] | undefined;
|
|
12
|
+
handle?: string | undefined;
|
|
13
|
+
description?: string | undefined;
|
|
14
|
+
variants?: {
|
|
15
|
+
title: string;
|
|
16
|
+
prices: {
|
|
17
|
+
currency_code: string;
|
|
18
|
+
amount: number;
|
|
19
|
+
min_quantity?: number | null | undefined;
|
|
20
|
+
max_quantity?: number | null | undefined;
|
|
21
|
+
rules?: Record<string, string> | undefined;
|
|
22
|
+
}[];
|
|
23
|
+
allow_backorder: false;
|
|
24
|
+
manage_inventory: true;
|
|
25
|
+
sku?: string | undefined;
|
|
26
|
+
ean?: string | undefined;
|
|
27
|
+
upc?: string | undefined;
|
|
28
|
+
barcode?: string | undefined;
|
|
29
|
+
hs_code?: string | undefined;
|
|
30
|
+
mid_code?: string | undefined;
|
|
31
|
+
variant_rank?: number | undefined;
|
|
32
|
+
weight?: number | undefined;
|
|
33
|
+
length?: number | undefined;
|
|
34
|
+
height?: number | undefined;
|
|
35
|
+
width?: number | undefined;
|
|
36
|
+
origin_country?: string | undefined;
|
|
37
|
+
material?: string | undefined;
|
|
38
|
+
metadata?: Record<string, unknown> | undefined;
|
|
39
|
+
options?: Record<string, string> | undefined;
|
|
40
|
+
inventory_items?: {
|
|
41
|
+
inventory_item_id: string;
|
|
42
|
+
required_quantity: number;
|
|
43
|
+
}[] | undefined;
|
|
44
|
+
}[] | undefined;
|
|
45
|
+
subtitle?: string | undefined;
|
|
46
|
+
thumbnail?: string | undefined;
|
|
47
|
+
width?: number | undefined;
|
|
48
|
+
weight?: number | undefined;
|
|
49
|
+
height?: number | undefined;
|
|
50
|
+
origin_country?: string | undefined;
|
|
51
|
+
hs_code?: string | undefined;
|
|
52
|
+
mid_code?: string | undefined;
|
|
53
|
+
material?: string | undefined;
|
|
54
|
+
collection_id?: string | undefined;
|
|
55
|
+
categories?: {
|
|
56
|
+
id: string;
|
|
57
|
+
}[] | undefined;
|
|
58
|
+
type_id?: string | undefined;
|
|
59
|
+
tags?: {
|
|
60
|
+
id: string;
|
|
61
|
+
}[] | undefined;
|
|
62
|
+
images?: {
|
|
63
|
+
url: string;
|
|
64
|
+
}[] | undefined;
|
|
65
|
+
external_id?: string | undefined;
|
|
66
|
+
metadata?: Record<string, unknown> | undefined;
|
|
67
|
+
sales_channels?: {
|
|
68
|
+
id: string;
|
|
69
|
+
}[] | undefined;
|
|
70
|
+
}[]>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateProductsToImportStep = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const workflows_sdk_1 = require("@medusajs/framework/workflows-sdk");
|
|
6
|
+
const validators_1 = require("../../../api/vendor/products/validators");
|
|
7
|
+
exports.validateProductsToImportStep = (0, workflows_sdk_1.createStep)('validate-products-to-import', async (products) => {
|
|
8
|
+
const toCreate = products.map((product) => ({
|
|
9
|
+
...validators_1.CreateProduct.extend({
|
|
10
|
+
status: zod_1.z.string().optional()
|
|
11
|
+
}).parse(product),
|
|
12
|
+
status: 'proposed'
|
|
13
|
+
}));
|
|
14
|
+
return new workflows_sdk_1.StepResponse(toCreate);
|
|
15
|
+
});
|
|
16
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdGUtcHJvZHVjdHMtdG8taW1wb3J0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vc3JjL3dvcmtmbG93cy9zZWxsZXIvc3RlcHMvdmFsaWRhdGUtcHJvZHVjdHMtdG8taW1wb3J0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLDZCQUF1QjtBQUd2QixxRUFBNEU7QUFFNUUsd0VBQXVFO0FBRTFELFFBQUEsNEJBQTRCLEdBQUcsSUFBQSwwQkFBVSxFQUNwRCw2QkFBNkIsRUFDN0IsS0FBSyxFQUFFLFFBQW1CLEVBQUUsRUFBRTtJQUM1QixNQUFNLFFBQVEsR0FBRyxRQUFRLENBQUMsR0FBRyxDQUFDLENBQUMsT0FBTyxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBQzFDLEdBQUcsMEJBQWEsQ0FBQyxNQUFNLENBQUM7WUFDdEIsTUFBTSxFQUFFLE9BQUMsQ0FBQyxNQUFNLEVBQUUsQ0FBQyxRQUFRLEVBQUU7U0FDOUIsQ0FBQyxDQUFDLEtBQUssQ0FBQyxPQUFPLENBQUM7UUFDakIsTUFBTSxFQUFFLFVBQTJCO0tBQ3BDLENBQUMsQ0FBQyxDQUFBO0lBRUgsT0FBTyxJQUFJLDRCQUFZLENBQUMsUUFBUSxDQUFDLENBQUE7QUFDbkMsQ0FBQyxDQUNGLENBQUEifQ==
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { AcceptMemberInviteDTO } from "@mercurjs/framework";
|
|
2
|
+
type AcceptMemberInviteWorkflowInput = {
|
|
3
|
+
invite: AcceptMemberInviteDTO;
|
|
4
|
+
authIdentityId: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const acceptMemberInvitesWorkflow: import("@medusajs/workflows-sdk").ReturnWorkflow<AcceptMemberInviteWorkflowInput, {
|
|
7
|
+
id: string;
|
|
8
|
+
email: string;
|
|
9
|
+
role: import("@mercurjs/framework").MemberRole;
|
|
10
|
+
seller: {
|
|
11
|
+
id: string;
|
|
12
|
+
store_status: import("@mercurjs/framework").StoreStatus;
|
|
13
|
+
name: string;
|
|
14
|
+
handle: string;
|
|
15
|
+
description: string | null;
|
|
16
|
+
photo: string | null;
|
|
17
|
+
email: string | null;
|
|
18
|
+
phone: string | null;
|
|
19
|
+
address_line: string | null;
|
|
20
|
+
city: string | null;
|
|
21
|
+
state: string | null;
|
|
22
|
+
postal_code: string | null;
|
|
23
|
+
country_code: string | null;
|
|
24
|
+
tax_id: string | null;
|
|
25
|
+
members: {
|
|
26
|
+
id: string;
|
|
27
|
+
role: import("@mercurjs/framework").MemberRole;
|
|
28
|
+
name: string;
|
|
29
|
+
email: string | null;
|
|
30
|
+
bio: string | null;
|
|
31
|
+
phone: string | null;
|
|
32
|
+
photo: string | null;
|
|
33
|
+
seller: /*elided*/ any;
|
|
34
|
+
created_at: Date;
|
|
35
|
+
updated_at: Date;
|
|
36
|
+
deleted_at: Date | null;
|
|
37
|
+
seller_id: string;
|
|
38
|
+
}[];
|
|
39
|
+
invites: /*elided*/ any[];
|
|
40
|
+
onboarding: {
|
|
41
|
+
id: string;
|
|
42
|
+
store_information: boolean;
|
|
43
|
+
stripe_connection: boolean;
|
|
44
|
+
locations_shipping: boolean;
|
|
45
|
+
products: boolean;
|
|
46
|
+
seller: /*elided*/ any;
|
|
47
|
+
created_at: Date;
|
|
48
|
+
updated_at: Date;
|
|
49
|
+
deleted_at: Date | null;
|
|
50
|
+
seller_id: string;
|
|
51
|
+
};
|
|
52
|
+
created_at: Date;
|
|
53
|
+
updated_at: Date;
|
|
54
|
+
deleted_at: Date | null;
|
|
55
|
+
};
|
|
56
|
+
token: string;
|
|
57
|
+
expires_at: Date;
|
|
58
|
+
accepted: boolean;
|
|
59
|
+
created_at: Date;
|
|
60
|
+
updated_at: Date;
|
|
61
|
+
deleted_at: Date | null;
|
|
62
|
+
seller_id: string;
|
|
63
|
+
}, []>;
|
|
64
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.acceptMemberInvitesWorkflow = void 0;
|
|
4
|
+
const workflows_sdk_1 = require("@medusajs/framework/workflows-sdk");
|
|
5
|
+
const core_flows_1 = require("@medusajs/medusa/core-flows");
|
|
6
|
+
const workflows_sdk_2 = require("@medusajs/workflows-sdk");
|
|
7
|
+
const steps_1 = require("../steps");
|
|
8
|
+
const validate_member_invites_1 = require("../steps/validate-member-invites");
|
|
9
|
+
exports.acceptMemberInvitesWorkflow = (0, workflows_sdk_2.createWorkflow)("accept-member-invite", function (input) {
|
|
10
|
+
const invite = (0, validate_member_invites_1.validateMemberInviteStep)(input.invite);
|
|
11
|
+
const [member] = (0, workflows_sdk_1.parallelize)((0, steps_1.createMemberStep)({
|
|
12
|
+
seller_id: invite.seller.id,
|
|
13
|
+
name: input.invite.name,
|
|
14
|
+
role: invite.role,
|
|
15
|
+
email: invite.email,
|
|
16
|
+
}), (0, steps_1.updateMemberInviteStep)({
|
|
17
|
+
id: invite.id,
|
|
18
|
+
accepted: true,
|
|
19
|
+
}));
|
|
20
|
+
(0, core_flows_1.setAuthAppMetadataStep)({
|
|
21
|
+
authIdentityId: input.authIdentityId,
|
|
22
|
+
actorType: "seller",
|
|
23
|
+
value: member.id,
|
|
24
|
+
});
|
|
25
|
+
return new workflows_sdk_2.WorkflowResponse(invite);
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNjZXB0LW1lbWJlci1pbnZpdGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvd29ya2Zsb3dzL3NlbGxlci93b3JrZmxvd3MvYWNjZXB0LW1lbWJlci1pbnZpdGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEscUVBQWdFO0FBQ2hFLDREQUFxRTtBQUNyRSwyREFBMkU7QUFJM0Usb0NBQW9FO0FBQ3BFLDhFQUE0RTtBQU8vRCxRQUFBLDJCQUEyQixHQUFHLElBQUEsOEJBQWMsRUFDdkQsc0JBQXNCLEVBQ3RCLFVBQVUsS0FBc0M7SUFDOUMsTUFBTSxNQUFNLEdBQUcsSUFBQSxrREFBd0IsRUFBQyxLQUFLLENBQUMsTUFBTSxDQUFDLENBQUM7SUFFdEQsTUFBTSxDQUFDLE1BQU0sQ0FBQyxHQUFHLElBQUEsMkJBQVcsRUFDMUIsSUFBQSx3QkFBZ0IsRUFBQztRQUNmLFNBQVMsRUFBRSxNQUFNLENBQUMsTUFBTSxDQUFDLEVBQUU7UUFDM0IsSUFBSSxFQUFFLEtBQUssQ0FBQyxNQUFNLENBQUMsSUFBSTtRQUN2QixJQUFJLEVBQUUsTUFBTSxDQUFDLElBQUk7UUFDakIsS0FBSyxFQUFFLE1BQU0sQ0FBQyxLQUFLO0tBQ3BCLENBQUMsRUFDRixJQUFBLDhCQUFzQixFQUFDO1FBQ3JCLEVBQUUsRUFBRSxNQUFNLENBQUMsRUFBRTtRQUNiLFFBQVEsRUFBRSxJQUFJO0tBQ2YsQ0FBQyxDQUNILENBQUM7SUFFRixJQUFBLG1DQUFzQixFQUFDO1FBQ3JCLGNBQWMsRUFBRSxLQUFLLENBQUMsY0FBYztRQUNwQyxTQUFTLEVBQUUsUUFBUTtRQUNuQixLQUFLLEVBQUUsTUFBTSxDQUFDLEVBQUU7S0FDakIsQ0FBQyxDQUFDO0lBRUgsT0FBTyxJQUFJLGdDQUFnQixDQUFDLE1BQU0sQ0FBQyxDQUFDO0FBQ3RDLENBQUMsQ0FDRixDQUFDIn0=
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { CreateOnboardingDTO } from '@mercurjs/framework';
|
|
2
|
+
type CreateOnboardingForSellerInput = {
|
|
3
|
+
context: CreateOnboardingDTO['context'];
|
|
4
|
+
seller_id: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const createOnboardingForSellerWorkflow: import("@medusajs/workflows-sdk").ReturnWorkflow<CreateOnboardingForSellerInput, {
|
|
7
|
+
id: string;
|
|
8
|
+
data: Record<string, unknown> | null;
|
|
9
|
+
context: Record<string, unknown> | null;
|
|
10
|
+
payout_account: {
|
|
11
|
+
id: string;
|
|
12
|
+
status: import("@mercurjs/framework").PayoutAccountStatus;
|
|
13
|
+
reference_id: string;
|
|
14
|
+
data: Record<string, unknown>;
|
|
15
|
+
context: Record<string, unknown> | null;
|
|
16
|
+
onboarding: /*elided*/ any;
|
|
17
|
+
payouts: {
|
|
18
|
+
id: string;
|
|
19
|
+
currency_code: string;
|
|
20
|
+
amount: number;
|
|
21
|
+
data: Record<string, unknown> | null;
|
|
22
|
+
payout_account: /*elided*/ any;
|
|
23
|
+
reversals: {
|
|
24
|
+
id: string;
|
|
25
|
+
currency_code: string;
|
|
26
|
+
amount: number;
|
|
27
|
+
data: Record<string, unknown> | null;
|
|
28
|
+
payout: /*elided*/ any;
|
|
29
|
+
raw_amount: Record<string, unknown>;
|
|
30
|
+
created_at: Date;
|
|
31
|
+
updated_at: Date;
|
|
32
|
+
deleted_at: Date | null;
|
|
33
|
+
payout_id: string;
|
|
34
|
+
}[];
|
|
35
|
+
raw_amount: Record<string, unknown>;
|
|
36
|
+
created_at: Date;
|
|
37
|
+
updated_at: Date;
|
|
38
|
+
deleted_at: Date | null;
|
|
39
|
+
payout_account_id: string;
|
|
40
|
+
}[];
|
|
41
|
+
created_at: Date;
|
|
42
|
+
updated_at: Date;
|
|
43
|
+
deleted_at: Date | null;
|
|
44
|
+
};
|
|
45
|
+
created_at: Date;
|
|
46
|
+
updated_at: Date;
|
|
47
|
+
deleted_at: Date | null;
|
|
48
|
+
payout_account_id: string;
|
|
49
|
+
}, []>;
|
|
50
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createOnboardingForSellerWorkflow = void 0;
|
|
4
|
+
const workflows_sdk_1 = require("@medusajs/workflows-sdk");
|
|
5
|
+
const steps_1 = require("../steps");
|
|
6
|
+
exports.createOnboardingForSellerWorkflow = (0, workflows_sdk_1.createWorkflow)('create-onboarding-for-seller', function (input) {
|
|
7
|
+
const { id } = (0, steps_1.validatePayoutAccountExistsForSellerStep)(input.seller_id);
|
|
8
|
+
const onboarding = (0, steps_1.createPayoutOnboardingStep)({
|
|
9
|
+
context: input.context,
|
|
10
|
+
payout_account_id: id
|
|
11
|
+
});
|
|
12
|
+
return new workflows_sdk_1.WorkflowResponse(onboarding);
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JlYXRlLW9uYm9hcmRpbmctZm9yLXNlbGxlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy93b3JrZmxvd3Mvc2VsbGVyL3dvcmtmbG93cy9jcmVhdGUtb25ib2FyZGluZy1mb3Itc2VsbGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLDJEQUEwRTtBQUkxRSxvQ0FHaUI7QUFPSixRQUFBLGlDQUFpQyxHQUFHLElBQUEsOEJBQWMsRUFDN0QsOEJBQThCLEVBQzlCLFVBQVUsS0FBcUM7SUFDN0MsTUFBTSxFQUFFLEVBQUUsRUFBRSxHQUFHLElBQUEsZ0RBQXdDLEVBQUMsS0FBSyxDQUFDLFNBQVMsQ0FBQyxDQUFBO0lBRXhFLE1BQU0sVUFBVSxHQUFHLElBQUEsa0NBQTBCLEVBQUM7UUFDNUMsT0FBTyxFQUFFLEtBQUssQ0FBQyxPQUFPO1FBQ3RCLGlCQUFpQixFQUFFLEVBQUU7S0FDdEIsQ0FBQyxDQUFBO0lBRUYsT0FBTyxJQUFJLGdDQUFnQixDQUFDLFVBQVUsQ0FBQyxDQUFBO0FBQ3pDLENBQUMsQ0FDRixDQUFBIn0=
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { CreatePayoutAccountDTO } from "@mercurjs/framework";
|
|
2
|
+
type CreatePayoutAccountForSellerInput = {
|
|
3
|
+
context: CreatePayoutAccountDTO["context"];
|
|
4
|
+
seller_id: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const createPayoutAccountForSellerWorkflow: import("@medusajs/workflows-sdk").ReturnWorkflow<CreatePayoutAccountForSellerInput, {
|
|
7
|
+
id: string;
|
|
8
|
+
status: import("@mercurjs/framework").PayoutAccountStatus;
|
|
9
|
+
reference_id: string;
|
|
10
|
+
data: Record<string, unknown>;
|
|
11
|
+
context: Record<string, unknown> | null;
|
|
12
|
+
onboarding: {
|
|
13
|
+
id: string;
|
|
14
|
+
data: Record<string, unknown> | null;
|
|
15
|
+
context: Record<string, unknown> | null;
|
|
16
|
+
payout_account: /*elided*/ any;
|
|
17
|
+
created_at: Date;
|
|
18
|
+
updated_at: Date;
|
|
19
|
+
deleted_at: Date | null;
|
|
20
|
+
payout_account_id: string;
|
|
21
|
+
};
|
|
22
|
+
payouts: {
|
|
23
|
+
id: string;
|
|
24
|
+
currency_code: string;
|
|
25
|
+
amount: number;
|
|
26
|
+
data: Record<string, unknown> | null;
|
|
27
|
+
payout_account: /*elided*/ any;
|
|
28
|
+
reversals: {
|
|
29
|
+
id: string;
|
|
30
|
+
currency_code: string;
|
|
31
|
+
amount: number;
|
|
32
|
+
data: Record<string, unknown> | null;
|
|
33
|
+
payout: /*elided*/ any;
|
|
34
|
+
raw_amount: Record<string, unknown>;
|
|
35
|
+
created_at: Date;
|
|
36
|
+
updated_at: Date;
|
|
37
|
+
deleted_at: Date | null;
|
|
38
|
+
payout_id: string;
|
|
39
|
+
}[];
|
|
40
|
+
raw_amount: Record<string, unknown>;
|
|
41
|
+
created_at: Date;
|
|
42
|
+
updated_at: Date;
|
|
43
|
+
deleted_at: Date | null;
|
|
44
|
+
payout_account_id: string;
|
|
45
|
+
}[];
|
|
46
|
+
created_at: Date;
|
|
47
|
+
updated_at: Date;
|
|
48
|
+
deleted_at: Date | null;
|
|
49
|
+
}, []>;
|
|
50
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createPayoutAccountForSellerWorkflow = void 0;
|
|
4
|
+
const core_flows_1 = require("@medusajs/medusa/core-flows");
|
|
5
|
+
const workflows_sdk_1 = require("@medusajs/workflows-sdk");
|
|
6
|
+
const payout_1 = require("../../../modules/payout");
|
|
7
|
+
const seller_1 = require("../../../modules/seller");
|
|
8
|
+
const steps_1 = require("../steps");
|
|
9
|
+
exports.createPayoutAccountForSellerWorkflow = (0, workflows_sdk_1.createWorkflow)({
|
|
10
|
+
name: "create-payout-account-for-seller",
|
|
11
|
+
idempotent: true,
|
|
12
|
+
}, function (input) {
|
|
13
|
+
(0, steps_1.validateNoExistingPayoutAccountForSellerStep)(input.seller_id);
|
|
14
|
+
const payoutAccount = (0, steps_1.createPayoutAccountStep)({ context: input.context });
|
|
15
|
+
(0, core_flows_1.createRemoteLinkStep)([
|
|
16
|
+
{
|
|
17
|
+
[seller_1.SELLER_MODULE]: {
|
|
18
|
+
seller_id: input.seller_id,
|
|
19
|
+
},
|
|
20
|
+
[payout_1.PAYOUT_MODULE]: {
|
|
21
|
+
payout_account_id: payoutAccount.id,
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
]);
|
|
25
|
+
return new workflows_sdk_1.WorkflowResponse(payoutAccount);
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JlYXRlLXBheW91dC1hY2NvdW50LWZvci1zZWxsZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvd29ya2Zsb3dzL3NlbGxlci93b3JrZmxvd3MvY3JlYXRlLXBheW91dC1hY2NvdW50LWZvci1zZWxsZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsNERBQW1FO0FBQ25FLDJEQUEyRTtBQUczRSxvREFBd0Q7QUFDeEQsb0RBQXdEO0FBRXhELG9DQUdrQjtBQU9MLFFBQUEsb0NBQW9DLEdBQUcsSUFBQSw4QkFBYyxFQUNoRTtJQUNFLElBQUksRUFBRSxrQ0FBa0M7SUFDeEMsVUFBVSxFQUFFLElBQUk7Q0FDakIsRUFDRCxVQUFVLEtBQXdDO0lBQ2hELElBQUEsb0RBQTRDLEVBQUMsS0FBSyxDQUFDLFNBQVMsQ0FBQyxDQUFDO0lBRTlELE1BQU0sYUFBYSxHQUFHLElBQUEsK0JBQXVCLEVBQUMsRUFBRSxPQUFPLEVBQUUsS0FBSyxDQUFDLE9BQU8sRUFBRSxDQUFDLENBQUM7SUFFMUUsSUFBQSxpQ0FBb0IsRUFBQztRQUNuQjtZQUNFLENBQUMsc0JBQWEsQ0FBQyxFQUFFO2dCQUNmLFNBQVMsRUFBRSxLQUFLLENBQUMsU0FBUzthQUMzQjtZQUNELENBQUMsc0JBQWEsQ0FBQyxFQUFFO2dCQUNmLGlCQUFpQixFQUFFLGFBQWEsQ0FBQyxFQUFFO2FBQ3BDO1NBQ0Y7S0FDRixDQUFDLENBQUM7SUFFSCxPQUFPLElBQUksZ0NBQWdCLENBQUMsYUFBYSxDQUFDLENBQUM7QUFDN0MsQ0FBQyxDQUNGLENBQUMifQ==
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CreateMemberDTO, CreateSellerDTO } from "@mercurjs/framework";
|
|
2
|
+
type CreateSellerWorkflowInput = {
|
|
3
|
+
seller: CreateSellerDTO;
|
|
4
|
+
member: Omit<CreateMemberDTO, "seller_id">;
|
|
5
|
+
auth_identity_id: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const createSellerWorkflow: import("@medusajs/workflows-sdk").ReturnWorkflow<CreateSellerWorkflowInput, import("@mercurjs/framework").SellerDTO, [import("@medusajs/workflows-sdk").Hook<"sellerCreated", {
|
|
8
|
+
sellerId: (string | import("@medusajs/workflows-sdk").WorkflowData<string>) & string;
|
|
9
|
+
}, unknown>]>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createSellerWorkflow = void 0;
|
|
4
|
+
const workflows_sdk_1 = require("@medusajs/framework/workflows-sdk");
|
|
5
|
+
const core_flows_1 = require("@medusajs/medusa/core-flows");
|
|
6
|
+
const workflows_sdk_2 = require("@medusajs/workflows-sdk");
|
|
7
|
+
const steps_1 = require("../steps");
|
|
8
|
+
exports.createSellerWorkflow = (0, workflows_sdk_2.createWorkflow)("create-seller", function (input) {
|
|
9
|
+
const seller = (0, steps_1.createSellerStep)(input.seller);
|
|
10
|
+
const memberInput = (0, workflows_sdk_1.transform)({ seller, member: input.member }, ({ member, seller }) => ({
|
|
11
|
+
...member,
|
|
12
|
+
seller_id: seller.id,
|
|
13
|
+
}));
|
|
14
|
+
const member = (0, steps_1.createMemberStep)(memberInput);
|
|
15
|
+
(0, steps_1.createSellerOnboardingStep)(seller);
|
|
16
|
+
(0, core_flows_1.setAuthAppMetadataStep)({
|
|
17
|
+
authIdentityId: input.auth_identity_id,
|
|
18
|
+
actorType: "seller",
|
|
19
|
+
value: member.id,
|
|
20
|
+
});
|
|
21
|
+
(0, steps_1.createSellerShippingProfileStep)(seller);
|
|
22
|
+
const sellerCreatedHook = (0, workflows_sdk_2.createHook)("sellerCreated", {
|
|
23
|
+
sellerId: seller.id,
|
|
24
|
+
});
|
|
25
|
+
return new workflows_sdk_2.WorkflowResponse(seller, { hooks: [sellerCreatedHook] });
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JlYXRlLXNlbGxlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy93b3JrZmxvd3Mvc2VsbGVyL3dvcmtmbG93cy9jcmVhdGUtc2VsbGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLHFFQUE4RDtBQUM5RCw0REFBcUU7QUFDckUsMkRBSWlDO0FBSWpDLG9DQUtrQjtBQVFMLFFBQUEsb0JBQW9CLEdBQUcsSUFBQSw4QkFBYyxFQUNoRCxlQUFlLEVBQ2YsVUFBVSxLQUFnQztJQUN4QyxNQUFNLE1BQU0sR0FBRyxJQUFBLHdCQUFnQixFQUFDLEtBQUssQ0FBQyxNQUFNLENBQUMsQ0FBQztJQUU5QyxNQUFNLFdBQVcsR0FBRyxJQUFBLHlCQUFTLEVBQzNCLEVBQUUsTUFBTSxFQUFFLE1BQU0sRUFBRSxLQUFLLENBQUMsTUFBTSxFQUFFLEVBQ2hDLENBQUMsRUFBRSxNQUFNLEVBQUUsTUFBTSxFQUFFLEVBQUUsRUFBRSxDQUFDLENBQUM7UUFDdkIsR0FBRyxNQUFNO1FBQ1QsU0FBUyxFQUFFLE1BQU0sQ0FBQyxFQUFFO0tBQ3JCLENBQUMsQ0FDSCxDQUFDO0lBRUYsTUFBTSxNQUFNLEdBQUcsSUFBQSx3QkFBZ0IsRUFBQyxXQUFXLENBQUMsQ0FBQztJQUM3QyxJQUFBLGtDQUEwQixFQUFDLE1BQU0sQ0FBQyxDQUFDO0lBRW5DLElBQUEsbUNBQXNCLEVBQUM7UUFDckIsY0FBYyxFQUFFLEtBQUssQ0FBQyxnQkFBZ0I7UUFDdEMsU0FBUyxFQUFFLFFBQVE7UUFDbkIsS0FBSyxFQUFFLE1BQU0sQ0FBQyxFQUFFO0tBQ2pCLENBQUMsQ0FBQztJQUVILElBQUEsdUNBQStCLEVBQUMsTUFBTSxDQUFDLENBQUM7SUFDeEMsTUFBTSxpQkFBaUIsR0FBRyxJQUFBLDBCQUFVLEVBQUMsZUFBZSxFQUFFO1FBQ3BELFFBQVEsRUFBRSxNQUFNLENBQUMsRUFBRTtLQUNwQixDQUFDLENBQUM7SUFDSCxPQUFPLElBQUksZ0NBQWdCLENBQUMsTUFBTSxFQUFFLEVBQUUsS0FBSyxFQUFFLENBQUMsaUJBQWlCLENBQUMsRUFBRSxDQUFDLENBQUM7QUFDdEUsQ0FBQyxDQUNGLENBQUMifQ==
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const deleteMemberInvitesWorkflow: import("@medusajs/workflows-sdk").ReturnWorkflow<string, unknown, any[]>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deleteMemberInvitesWorkflow = void 0;
|
|
4
|
+
const workflows_sdk_1 = require("@medusajs/workflows-sdk");
|
|
5
|
+
const steps_1 = require("../steps");
|
|
6
|
+
exports.deleteMemberInvitesWorkflow = (0, workflows_sdk_1.createWorkflow)('delete-member-invite', function (id) {
|
|
7
|
+
(0, steps_1.deleteMemberInvitesStep)(id);
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVsZXRlLW1lbWJlci1pbnZpdGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvd29ya2Zsb3dzL3NlbGxlci93b3JrZmxvd3MvZGVsZXRlLW1lbWJlci1pbnZpdGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsMkRBQXdEO0FBRXhELG9DQUFrRDtBQUVyQyxRQUFBLDJCQUEyQixHQUFHLElBQUEsOEJBQWMsRUFDdkQsc0JBQXNCLEVBQ3RCLFVBQVUsRUFBVTtJQUNsQixJQUFBLCtCQUF1QixFQUFDLEVBQUUsQ0FBQyxDQUFBO0FBQzdCLENBQUMsQ0FDRixDQUFBIn0=
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const deleteMemberWorkflow: import("@medusajs/workflows-sdk").ReturnWorkflow<string, unknown, any[]>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deleteMemberWorkflow = void 0;
|
|
4
|
+
const workflows_sdk_1 = require("@medusajs/workflows-sdk");
|
|
5
|
+
const steps_1 = require("../steps");
|
|
6
|
+
exports.deleteMemberWorkflow = (0, workflows_sdk_1.createWorkflow)('delete-member', function (id) {
|
|
7
|
+
(0, steps_1.deleteMemberStep)(id);
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVsZXRlLW1lbWJlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy93b3JrZmxvd3Mvc2VsbGVyL3dvcmtmbG93cy9kZWxldGUtbWVtYmVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLDJEQUF3RDtBQUV4RCxvQ0FBMkM7QUFFOUIsUUFBQSxvQkFBb0IsR0FBRyxJQUFBLDhCQUFjLEVBQ2hELGVBQWUsRUFDZixVQUFVLEVBQVU7SUFDbEIsSUFBQSx3QkFBZ0IsRUFBQyxFQUFFLENBQUMsQ0FBQTtBQUN0QixDQUFDLENBQ0YsQ0FBQSJ9
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const deleteSellerWorkflow: import("@medusajs/workflows-sdk").ReturnWorkflow<string, unknown, any[]>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deleteSellerWorkflow = void 0;
|
|
4
|
+
const workflows_sdk_1 = require("@medusajs/workflows-sdk");
|
|
5
|
+
const steps_1 = require("../steps");
|
|
6
|
+
exports.deleteSellerWorkflow = (0, workflows_sdk_1.createWorkflow)('delete-seller', function (id) {
|
|
7
|
+
(0, steps_1.deleteSellerStep)(id);
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVsZXRlLXNlbGxlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy93b3JrZmxvd3Mvc2VsbGVyL3dvcmtmbG93cy9kZWxldGUtc2VsbGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLDJEQUF3RDtBQUV4RCxvQ0FBMkM7QUFFOUIsUUFBQSxvQkFBb0IsR0FBRyxJQUFBLDhCQUFjLEVBQ2hELGVBQWUsRUFDZixVQUFVLEVBQVU7SUFDbEIsSUFBQSx3QkFBZ0IsRUFBQyxFQUFFLENBQUMsQ0FBQTtBQUN0QixDQUFDLENBQ0YsQ0FBQSJ9
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const exportSellerProductsWorkflow: import("@medusajs/workflows-sdk").ReturnWorkflow<string, any, []>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.exportSellerProductsWorkflow = void 0;
|
|
4
|
+
const core_flows_1 = require("@medusajs/medusa/core-flows");
|
|
5
|
+
const workflows_sdk_1 = require("@medusajs/workflows-sdk");
|
|
6
|
+
const steps_1 = require("../steps");
|
|
7
|
+
exports.exportSellerProductsWorkflow = (0, workflows_sdk_1.createWorkflow)('export-seller-products', function (seller_id) {
|
|
8
|
+
const products = (0, steps_1.getSellerProductsStep)(seller_id);
|
|
9
|
+
const file = (0, core_flows_1.generateProductCsvStep)(products);
|
|
10
|
+
const fileDetails = (0, core_flows_1.useRemoteQueryStep)({
|
|
11
|
+
fields: ['id', 'url'],
|
|
12
|
+
entry_point: 'file',
|
|
13
|
+
variables: { id: file.id },
|
|
14
|
+
list: false
|
|
15
|
+
});
|
|
16
|
+
return new workflows_sdk_1.WorkflowResponse(fileDetails);
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhwb3J0LXNlbGxlci1wcm9kdWN0cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy93b3JrZmxvd3Mvc2VsbGVyL3dvcmtmbG93cy9leHBvcnQtc2VsbGVyLXByb2R1Y3RzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLDREQUdvQztBQUNwQywyREFBMEU7QUFFMUUsb0NBQWdEO0FBRW5DLFFBQUEsNEJBQTRCLEdBQUcsSUFBQSw4QkFBYyxFQUN4RCx3QkFBd0IsRUFDeEIsVUFBVSxTQUFpQjtJQUN6QixNQUFNLFFBQVEsR0FBRyxJQUFBLDZCQUFxQixFQUFDLFNBQVMsQ0FBQyxDQUFBO0lBRWpELE1BQU0sSUFBSSxHQUFHLElBQUEsbUNBQXNCLEVBQUMsUUFBUSxDQUFDLENBQUE7SUFDN0MsTUFBTSxXQUFXLEdBQUcsSUFBQSwrQkFBa0IsRUFBQztRQUNyQyxNQUFNLEVBQUUsQ0FBQyxJQUFJLEVBQUUsS0FBSyxDQUFDO1FBQ3JCLFdBQVcsRUFBRSxNQUFNO1FBQ25CLFNBQVMsRUFBRSxFQUFFLEVBQUUsRUFBRSxJQUFJLENBQUMsRUFBRSxFQUFFO1FBQzFCLElBQUksRUFBRSxLQUFLO0tBQ1osQ0FBQyxDQUFBO0lBRUYsT0FBTyxJQUFJLGdDQUFnQixDQUFDLFdBQVcsQ0FBQyxDQUFBO0FBQzFDLENBQUMsQ0FDRixDQUFBIn0=
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.importSellerProductsWorkflow = void 0;
|
|
4
|
+
const core_flows_1 = require("@medusajs/medusa/core-flows");
|
|
5
|
+
const workflows_sdk_1 = require("@medusajs/workflows-sdk");
|
|
6
|
+
const framework_1 = require("@mercurjs/framework");
|
|
7
|
+
const steps_1 = require("../steps");
|
|
8
|
+
exports.importSellerProductsWorkflow = (0, workflows_sdk_1.createWorkflow)("import-seller-products", function (input) {
|
|
9
|
+
const products = (0, core_flows_1.parseProductCsvStep)(input.file_content);
|
|
10
|
+
const batchCreate = (0, steps_1.validateProductsToImportStep)(products);
|
|
11
|
+
const created = core_flows_1.createProductsWorkflow.runAsStep({
|
|
12
|
+
input: {
|
|
13
|
+
products: batchCreate,
|
|
14
|
+
additional_data: { seller_id: input.seller_id },
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
const requestsPayload = (0, workflows_sdk_1.transform)({ created, input }, ({ created, input }) => {
|
|
18
|
+
return created.map((p) => ({
|
|
19
|
+
data: {
|
|
20
|
+
...p,
|
|
21
|
+
product_id: p.id,
|
|
22
|
+
},
|
|
23
|
+
submitter_id: input.submitter_id,
|
|
24
|
+
type: "product",
|
|
25
|
+
status: "pending",
|
|
26
|
+
}));
|
|
27
|
+
});
|
|
28
|
+
const eventPayload = (0, workflows_sdk_1.transform)({ requestsPayload, input }, ({ requestsPayload, input }) => ({
|
|
29
|
+
request_payloads: requestsPayload,
|
|
30
|
+
seller_id: input.seller_id,
|
|
31
|
+
submitter_id: input.submitter_id,
|
|
32
|
+
}));
|
|
33
|
+
(0, core_flows_1.emitEventStep)({
|
|
34
|
+
eventName: framework_1.ImportSellerProductsRequestUpdatedEvent.TO_CREATE,
|
|
35
|
+
data: eventPayload,
|
|
36
|
+
});
|
|
37
|
+
return new workflows_sdk_1.WorkflowResponse(created);
|
|
38
|
+
});
|
|
39
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW1wb3J0LXNlbGxlci1wcm9kdWN0cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy93b3JrZmxvd3Mvc2VsbGVyL3dvcmtmbG93cy9pbXBvcnQtc2VsbGVyLXByb2R1Y3RzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLDREQUlxQztBQUNyQywyREFJaUM7QUFFakMsbURBRzZCO0FBRTdCLG9DQUF3RDtBQUUzQyxRQUFBLDRCQUE0QixHQUFHLElBQUEsOEJBQWMsRUFDeEQsd0JBQXdCLEVBQ3hCLFVBQVUsS0FJVDtJQUNDLE1BQU0sUUFBUSxHQUFHLElBQUEsZ0NBQW1CLEVBQUMsS0FBSyxDQUFDLFlBQVksQ0FBQyxDQUFDO0lBQ3pELE1BQU0sV0FBVyxHQUFHLElBQUEsb0NBQTRCLEVBQUMsUUFBUSxDQUFDLENBQUM7SUFFM0QsTUFBTSxPQUFPLEdBQUcsbUNBQXNCLENBQUMsU0FBUyxDQUFDO1FBQy9DLEtBQUssRUFBRTtZQUNMLFFBQVEsRUFBRSxXQUFXO1lBQ3JCLGVBQWUsRUFBRSxFQUFFLFNBQVMsRUFBRSxLQUFLLENBQUMsU0FBUyxFQUFFO1NBQ2hEO0tBQ0YsQ0FBQyxDQUFDO0lBRUgsTUFBTSxlQUFlLEdBQUcsSUFBQSx5QkFBUyxFQUMvQixFQUFFLE9BQU8sRUFBRSxLQUFLLEVBQUUsRUFDbEIsQ0FBQyxFQUFFLE9BQU8sRUFBRSxLQUFLLEVBQUUsRUFBRSxFQUFFO1FBQ3JCLE9BQU8sT0FBTyxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUMsRUFBRSxFQUFFLENBQUMsQ0FBQztZQUN6QixJQUFJLEVBQUU7Z0JBQ0osR0FBRyxDQUFDO2dCQUNKLFVBQVUsRUFBRSxDQUFDLENBQUMsRUFBRTthQUNqQjtZQUNELFlBQVksRUFBRSxLQUFLLENBQUMsWUFBWTtZQUNoQyxJQUFJLEVBQUUsU0FBUztZQUNmLE1BQU0sRUFBRSxTQUEwQjtTQUNuQyxDQUFDLENBQUMsQ0FBQztJQUNOLENBQUMsQ0FDRixDQUFDO0lBRUYsTUFBTSxZQUFZLEdBQUcsSUFBQSx5QkFBUyxFQUM1QixFQUFFLGVBQWUsRUFBRSxLQUFLLEVBQUUsRUFDMUIsQ0FBQyxFQUFFLGVBQWUsRUFBRSxLQUFLLEVBQUUsRUFBRSxFQUFFLENBQUMsQ0FBQztRQUMvQixnQkFBZ0IsRUFBRSxlQUFlO1FBQ2pDLFNBQVMsRUFBRSxLQUFLLENBQUMsU0FBUztRQUMxQixZQUFZLEVBQUUsS0FBSyxDQUFDLFlBQVk7S0FDakMsQ0FBQyxDQUNILENBQUM7SUFFRixJQUFBLDBCQUFhLEVBQUM7UUFDWixTQUFTLEVBQUUsbURBQXVDLENBQUMsU0FBUztRQUM1RCxJQUFJLEVBQUUsWUFBWTtLQUNuQixDQUFDLENBQUM7SUFFSCxPQUFPLElBQUksZ0NBQWdCLENBQUMsT0FBTyxDQUFDLENBQUM7QUFDdkMsQ0FBQyxDQUNGLENBQUMifQ==
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from "./create-seller";
|
|
2
|
+
export * from "./update-seller";
|
|
3
|
+
export * from "./delete-seller";
|
|
4
|
+
export * from "./create-onboarding-for-seller";
|
|
5
|
+
export * from "./create-payout-account-for-seller";
|
|
6
|
+
export * from "./recalculate-onboarding";
|
|
7
|
+
export * from "./export-seller-products";
|
|
8
|
+
export * from "./import-seller-products";
|
|
9
|
+
export * from "./invite-seller";
|
|
10
|
+
export * from "./sync-stripe-account";
|
|
11
|
+
export * from "./accept-member-invite";
|
|
12
|
+
export * from "./delete-member-invite";
|
|
13
|
+
export * from "./delete-member";
|
|
14
|
+
export * from "./invite-member";
|
|
15
|
+
export * from "./update-member";
|