@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,29 @@
|
|
|
1
|
+
import Stripe from "stripe";
|
|
2
|
+
import { ConfigModule, Logger } from "@medusajs/framework/types";
|
|
3
|
+
import { CreatePayoutAccountInput, CreatePayoutAccountResponse, IPayoutProvider, InitializeOnboardingResponse, PayoutWebhookAction, PayoutWebhookActionPayload, ProcessPayoutInput, ProcessPayoutResponse, ReversePayoutInput } from "@mercurjs/framework";
|
|
4
|
+
type InjectedDependencies = {
|
|
5
|
+
logger: Logger;
|
|
6
|
+
configModule: ConfigModule;
|
|
7
|
+
};
|
|
8
|
+
type StripeConnectConfig = {
|
|
9
|
+
apiKey: string;
|
|
10
|
+
webhookSecret: string;
|
|
11
|
+
};
|
|
12
|
+
export declare class PayoutProvider implements IPayoutProvider {
|
|
13
|
+
protected readonly config_: StripeConnectConfig;
|
|
14
|
+
protected readonly logger_: Logger;
|
|
15
|
+
protected readonly client_: Stripe;
|
|
16
|
+
constructor({ logger, configModule }: InjectedDependencies);
|
|
17
|
+
createPayout({ amount, currency, account_reference_id, transaction_id, source_transaction, }: ProcessPayoutInput): Promise<ProcessPayoutResponse>;
|
|
18
|
+
createPayoutAccount({ context, account_id, }: CreatePayoutAccountInput): Promise<CreatePayoutAccountResponse>;
|
|
19
|
+
initializeOnboarding(accountId: string, context: Record<string, unknown>): Promise<InitializeOnboardingResponse>;
|
|
20
|
+
getAccount(accountId: string): Promise<Stripe.Account>;
|
|
21
|
+
reversePayout(input: ReversePayoutInput): Promise<Stripe.Response<Stripe.TransferReversal>>;
|
|
22
|
+
getWebhookActionAndData(payload: PayoutWebhookActionPayload): Promise<{
|
|
23
|
+
action: PayoutWebhookAction;
|
|
24
|
+
data: {
|
|
25
|
+
account_id: string;
|
|
26
|
+
};
|
|
27
|
+
}>;
|
|
28
|
+
}
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,137 @@
|
|
|
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.PayoutProvider = void 0;
|
|
7
|
+
const stripe_1 = __importDefault(require("stripe"));
|
|
8
|
+
const utils_1 = require("@medusajs/framework/utils");
|
|
9
|
+
const __1 = require("..");
|
|
10
|
+
const framework_1 = require("@mercurjs/framework");
|
|
11
|
+
class PayoutProvider {
|
|
12
|
+
constructor({ logger, configModule }) {
|
|
13
|
+
this.logger_ = logger;
|
|
14
|
+
const moduleDef = configModule.modules?.[__1.PAYOUT_MODULE];
|
|
15
|
+
if (typeof moduleDef !== "boolean" && moduleDef?.options) {
|
|
16
|
+
this.config_ = {
|
|
17
|
+
apiKey: process.env.STRIPE_SECRET_API_KEY,
|
|
18
|
+
webhookSecret: process.env
|
|
19
|
+
.STRIPE_CONNECTED_ACCOUNTS_WEBHOOK_SECRET,
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
this.client_ = new stripe_1.default(this.config_.apiKey, {
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
apiVersion: "2025-02-24.acacia",
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
async createPayout({ amount, currency, account_reference_id, transaction_id, source_transaction, }) {
|
|
28
|
+
try {
|
|
29
|
+
this.logger_.info(`Processing payout for transaction with ID ${transaction_id}`);
|
|
30
|
+
const transfer = await this.client_.transfers.create({
|
|
31
|
+
currency,
|
|
32
|
+
destination: account_reference_id,
|
|
33
|
+
amount: (0, framework_1.getSmallestUnit)(amount, currency),
|
|
34
|
+
source_transaction,
|
|
35
|
+
metadata: {
|
|
36
|
+
transaction_id,
|
|
37
|
+
},
|
|
38
|
+
}, { idempotencyKey: transaction_id });
|
|
39
|
+
return {
|
|
40
|
+
data: transfer,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
catch (error) {
|
|
44
|
+
this.logger_.error("Error occured while creating payout", error);
|
|
45
|
+
const message = error?.message ?? "Error occured while creating payout";
|
|
46
|
+
throw new utils_1.MedusaError(utils_1.MedusaError.Types.UNEXPECTED_STATE, message);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
async createPayoutAccount({ context, account_id, }) {
|
|
50
|
+
try {
|
|
51
|
+
const { country } = context;
|
|
52
|
+
this.logger_.info("Creating payment profile");
|
|
53
|
+
if (!(0, utils_1.isPresent)(country)) {
|
|
54
|
+
throw new utils_1.MedusaError(utils_1.MedusaError.Types.INVALID_DATA, `"country" is required`);
|
|
55
|
+
}
|
|
56
|
+
const account = await this.client_.accounts.create({
|
|
57
|
+
country: country,
|
|
58
|
+
type: "standard",
|
|
59
|
+
metadata: {
|
|
60
|
+
account_id,
|
|
61
|
+
},
|
|
62
|
+
});
|
|
63
|
+
return {
|
|
64
|
+
data: account,
|
|
65
|
+
id: account.id,
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
catch (error) {
|
|
69
|
+
const message = error?.message ?? "Error occured while creating payout account";
|
|
70
|
+
throw new utils_1.MedusaError(utils_1.MedusaError.Types.UNEXPECTED_STATE, message);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
async initializeOnboarding(accountId, context) {
|
|
74
|
+
try {
|
|
75
|
+
this.logger_.info("Initializing onboarding");
|
|
76
|
+
if (!(0, utils_1.isPresent)(context.refresh_url)) {
|
|
77
|
+
throw new utils_1.MedusaError(utils_1.MedusaError.Types.INVALID_DATA, `'refresh_url' is required`);
|
|
78
|
+
}
|
|
79
|
+
if (!(0, utils_1.isPresent)(context.return_url)) {
|
|
80
|
+
throw new utils_1.MedusaError(utils_1.MedusaError.Types.INVALID_DATA, `'return_url' is required`);
|
|
81
|
+
}
|
|
82
|
+
const accountLink = await this.client_.accountLinks.create({
|
|
83
|
+
account: accountId,
|
|
84
|
+
refresh_url: context.refresh_url,
|
|
85
|
+
return_url: context.return_url,
|
|
86
|
+
type: "account_onboarding",
|
|
87
|
+
});
|
|
88
|
+
return {
|
|
89
|
+
data: accountLink,
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
catch (error) {
|
|
93
|
+
const message = error?.message ?? "Error occured while initializing onboarding";
|
|
94
|
+
throw new utils_1.MedusaError(utils_1.MedusaError.Types.UNEXPECTED_STATE, message);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
async getAccount(accountId) {
|
|
98
|
+
try {
|
|
99
|
+
const account = await this.client_.accounts.retrieve(accountId);
|
|
100
|
+
return account;
|
|
101
|
+
}
|
|
102
|
+
catch (error) {
|
|
103
|
+
const message = error?.message ?? "Error occured while getting account";
|
|
104
|
+
throw new utils_1.MedusaError(utils_1.MedusaError.Types.UNEXPECTED_STATE, message);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
async reversePayout(input) {
|
|
108
|
+
try {
|
|
109
|
+
const reversal = await this.client_.transfers.createReversal(input.transfer_id, {
|
|
110
|
+
amount: (0, framework_1.getSmallestUnit)(input.amount, input.currency),
|
|
111
|
+
});
|
|
112
|
+
return reversal;
|
|
113
|
+
}
|
|
114
|
+
catch (error) {
|
|
115
|
+
const message = error?.message ?? "Error occured while reversing payout";
|
|
116
|
+
throw new utils_1.MedusaError(utils_1.MedusaError.Types.UNEXPECTED_STATE, message);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
async getWebhookActionAndData(payload) {
|
|
120
|
+
const signature = payload.headers["stripe-signature"];
|
|
121
|
+
const event = this.client_.webhooks.constructEvent(payload.rawData, signature, this.config_.webhookSecret);
|
|
122
|
+
const data = event.data.object;
|
|
123
|
+
switch (event.type) {
|
|
124
|
+
case "account.updated":
|
|
125
|
+
// here you can validate account data to make sure it's valid
|
|
126
|
+
return {
|
|
127
|
+
action: framework_1.PayoutWebhookAction.ACCOUNT_AUTHORIZED,
|
|
128
|
+
data: {
|
|
129
|
+
account_id: data.metadata?.account_id,
|
|
130
|
+
},
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
throw new utils_1.MedusaError(utils_1.MedusaError.Types.UNEXPECTED_STATE, `Unsupported event type: ${event.type}`);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
exports.PayoutProvider = PayoutProvider;
|
|
137
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvdmlkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbW9kdWxlcy9wYXlvdXQvc2VydmljZXMvcHJvdmlkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUEsb0RBQTRCO0FBRzVCLHFEQUFtRTtBQUVuRSwwQkFBbUM7QUFFbkMsbURBVzZCO0FBWTdCLE1BQWEsY0FBYztJQUt6QixZQUFZLEVBQUUsTUFBTSxFQUFFLFlBQVksRUFBd0I7UUFDeEQsSUFBSSxDQUFDLE9BQU8sR0FBRyxNQUFNLENBQUM7UUFFdEIsTUFBTSxTQUFTLEdBQUcsWUFBWSxDQUFDLE9BQU8sRUFBRSxDQUFDLGlCQUFhLENBQUMsQ0FBQztRQUN4RCxJQUFJLE9BQU8sU0FBUyxLQUFLLFNBQVMsSUFBSSxTQUFTLEVBQUUsT0FBTyxFQUFFLENBQUM7WUFDekQsSUFBSSxDQUFDLE9BQU8sR0FBRztnQkFDYixNQUFNLEVBQUUsT0FBTyxDQUFDLEdBQUcsQ0FBQyxxQkFBK0I7Z0JBQ25ELGFBQWEsRUFBRSxPQUFPLENBQUMsR0FBRztxQkFDdkIsd0NBQWtEO2FBQ3RELENBQUM7UUFDSixDQUFDO1FBRUQsSUFBSSxDQUFDLE9BQU8sR0FBRyxJQUFJLGdCQUFNLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxNQUFNLEVBQUU7WUFDN0MsYUFBYTtZQUNiLFVBQVUsRUFBRSxtQkFBbUI7U0FDaEMsQ0FBQyxDQUFDO0lBQ0wsQ0FBQztJQUVELEtBQUssQ0FBQyxZQUFZLENBQUMsRUFDakIsTUFBTSxFQUNOLFFBQVEsRUFDUixvQkFBb0IsRUFDcEIsY0FBYyxFQUNkLGtCQUFrQixHQUNDO1FBQ25CLElBQUksQ0FBQztZQUNILElBQUksQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUNmLDZDQUE2QyxjQUFjLEVBQUUsQ0FDOUQsQ0FBQztZQUVGLE1BQU0sUUFBUSxHQUFHLE1BQU0sSUFBSSxDQUFDLE9BQU8sQ0FBQyxTQUFTLENBQUMsTUFBTSxDQUNsRDtnQkFDRSxRQUFRO2dCQUNSLFdBQVcsRUFBRSxvQkFBb0I7Z0JBQ2pDLE1BQU0sRUFBRSxJQUFBLDJCQUFlLEVBQUMsTUFBTSxFQUFFLFFBQVEsQ0FBQztnQkFDekMsa0JBQWtCO2dCQUNsQixRQUFRLEVBQUU7b0JBQ1IsY0FBYztpQkFDZjthQUNGLEVBQ0QsRUFBRSxjQUFjLEVBQUUsY0FBYyxFQUFFLENBQ25DLENBQUM7WUFFRixPQUFPO2dCQUNMLElBQUksRUFBRSxRQUE4QzthQUNyRCxDQUFDO1FBQ0osQ0FBQztRQUFDLE9BQU8sS0FBSyxFQUFFLENBQUM7WUFDZixJQUFJLENBQUMsT0FBTyxDQUFDLEtBQUssQ0FBQyxxQ0FBcUMsRUFBRSxLQUFLLENBQUMsQ0FBQztZQUVqRSxNQUFNLE9BQU8sR0FBRyxLQUFLLEVBQUUsT0FBTyxJQUFJLHFDQUFxQyxDQUFDO1lBRXhFLE1BQU0sSUFBSSxtQkFBVyxDQUFDLG1CQUFXLENBQUMsS0FBSyxDQUFDLGdCQUFnQixFQUFFLE9BQU8sQ0FBQyxDQUFDO1FBQ3JFLENBQUM7SUFDSCxDQUFDO0lBRUQsS0FBSyxDQUFDLG1CQUFtQixDQUFDLEVBQ3hCLE9BQU8sRUFDUCxVQUFVLEdBQ2U7UUFDekIsSUFBSSxDQUFDO1lBQ0gsTUFBTSxFQUFFLE9BQU8sRUFBRSxHQUFHLE9BQU8sQ0FBQztZQUM1QixJQUFJLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQywwQkFBMEIsQ0FBQyxDQUFDO1lBRTlDLElBQUksQ0FBQyxJQUFBLGlCQUFTLEVBQUMsT0FBTyxDQUFDLEVBQUUsQ0FBQztnQkFDeEIsTUFBTSxJQUFJLG1CQUFXLENBQ25CLG1CQUFXLENBQUMsS0FBSyxDQUFDLFlBQVksRUFDOUIsdUJBQXVCLENBQ3hCLENBQUM7WUFDSixDQUFDO1lBRUQsTUFBTSxPQUFPLEdBQUcsTUFBTSxJQUFJLENBQUMsT0FBTyxDQUFDLFFBQVEsQ0FBQyxNQUFNLENBQUM7Z0JBQ2pELE9BQU8sRUFBRSxPQUFpQjtnQkFDMUIsSUFBSSxFQUFFLFVBQVU7Z0JBQ2hCLFFBQVEsRUFBRTtvQkFDUixVQUFVO2lCQUNYO2FBQ0YsQ0FBQyxDQUFDO1lBRUgsT0FBTztnQkFDTCxJQUFJLEVBQUUsT0FBNkM7Z0JBQ25ELEVBQUUsRUFBRSxPQUFPLENBQUMsRUFBRTthQUNmLENBQUM7UUFDSixDQUFDO1FBQUMsT0FBTyxLQUFLLEVBQUUsQ0FBQztZQUNmLE1BQU0sT0FBTyxHQUNYLEtBQUssRUFBRSxPQUFPLElBQUksNkNBQTZDLENBQUM7WUFDbEUsTUFBTSxJQUFJLG1CQUFXLENBQUMsbUJBQVcsQ0FBQyxLQUFLLENBQUMsZ0JBQWdCLEVBQUUsT0FBTyxDQUFDLENBQUM7UUFDckUsQ0FBQztJQUNILENBQUM7SUFFRCxLQUFLLENBQUMsb0JBQW9CLENBQ3hCLFNBQWlCLEVBQ2pCLE9BQWdDO1FBRWhDLElBQUksQ0FBQztZQUNILElBQUksQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLHlCQUF5QixDQUFDLENBQUM7WUFFN0MsSUFBSSxDQUFDLElBQUEsaUJBQVMsRUFBQyxPQUFPLENBQUMsV0FBVyxDQUFDLEVBQUUsQ0FBQztnQkFDcEMsTUFBTSxJQUFJLG1CQUFXLENBQ25CLG1CQUFXLENBQUMsS0FBSyxDQUFDLFlBQVksRUFDOUIsMkJBQTJCLENBQzVCLENBQUM7WUFDSixDQUFDO1lBRUQsSUFBSSxDQUFDLElBQUEsaUJBQVMsRUFBQyxPQUFPLENBQUMsVUFBVSxDQUFDLEVBQUUsQ0FBQztnQkFDbkMsTUFBTSxJQUFJLG1CQUFXLENBQ25CLG1CQUFXLENBQUMsS0FBSyxDQUFDLFlBQVksRUFDOUIsMEJBQTBCLENBQzNCLENBQUM7WUFDSixDQUFDO1lBRUQsTUFBTSxXQUFXLEdBQUcsTUFBTSxJQUFJLENBQUMsT0FBTyxDQUFDLFlBQVksQ0FBQyxNQUFNLENBQUM7Z0JBQ3pELE9BQU8sRUFBRSxTQUFTO2dCQUNsQixXQUFXLEVBQUUsT0FBTyxDQUFDLFdBQXFCO2dCQUMxQyxVQUFVLEVBQUUsT0FBTyxDQUFDLFVBQW9CO2dCQUN4QyxJQUFJLEVBQUUsb0JBQW9CO2FBQzNCLENBQUMsQ0FBQztZQUVILE9BQU87Z0JBQ0wsSUFBSSxFQUFFLFdBQWlEO2FBQ3hELENBQUM7UUFDSixDQUFDO1FBQUMsT0FBTyxLQUFLLEVBQUUsQ0FBQztZQUNmLE1BQU0sT0FBTyxHQUNYLEtBQUssRUFBRSxPQUFPLElBQUksNkNBQTZDLENBQUM7WUFDbEUsTUFBTSxJQUFJLG1CQUFXLENBQUMsbUJBQVcsQ0FBQyxLQUFLLENBQUMsZ0JBQWdCLEVBQUUsT0FBTyxDQUFDLENBQUM7UUFDckUsQ0FBQztJQUNILENBQUM7SUFFRCxLQUFLLENBQUMsVUFBVSxDQUFDLFNBQWlCO1FBQ2hDLElBQUksQ0FBQztZQUNILE1BQU0sT0FBTyxHQUFHLE1BQU0sSUFBSSxDQUFDLE9BQU8sQ0FBQyxRQUFRLENBQUMsUUFBUSxDQUFDLFNBQVMsQ0FBQyxDQUFDO1lBQ2hFLE9BQU8sT0FBTyxDQUFDO1FBQ2pCLENBQUM7UUFBQyxPQUFPLEtBQUssRUFBRSxDQUFDO1lBQ2YsTUFBTSxPQUFPLEdBQUcsS0FBSyxFQUFFLE9BQU8sSUFBSSxxQ0FBcUMsQ0FBQztZQUN4RSxNQUFNLElBQUksbUJBQVcsQ0FBQyxtQkFBVyxDQUFDLEtBQUssQ0FBQyxnQkFBZ0IsRUFBRSxPQUFPLENBQUMsQ0FBQztRQUNyRSxDQUFDO0lBQ0gsQ0FBQztJQUVELEtBQUssQ0FBQyxhQUFhLENBQUMsS0FBeUI7UUFDM0MsSUFBSSxDQUFDO1lBQ0gsTUFBTSxRQUFRLEdBQUcsTUFBTSxJQUFJLENBQUMsT0FBTyxDQUFDLFNBQVMsQ0FBQyxjQUFjLENBQzFELEtBQUssQ0FBQyxXQUFXLEVBQ2pCO2dCQUNFLE1BQU0sRUFBRSxJQUFBLDJCQUFlLEVBQUMsS0FBSyxDQUFDLE1BQU0sRUFBRSxLQUFLLENBQUMsUUFBUSxDQUFDO2FBQ3RELENBQ0YsQ0FBQztZQUVGLE9BQU8sUUFBUSxDQUFDO1FBQ2xCLENBQUM7UUFBQyxPQUFPLEtBQUssRUFBRSxDQUFDO1lBQ2YsTUFBTSxPQUFPLEdBQUcsS0FBSyxFQUFFLE9BQU8sSUFBSSxzQ0FBc0MsQ0FBQztZQUN6RSxNQUFNLElBQUksbUJBQVcsQ0FBQyxtQkFBVyxDQUFDLEtBQUssQ0FBQyxnQkFBZ0IsRUFBRSxPQUFPLENBQUMsQ0FBQztRQUNyRSxDQUFDO0lBQ0gsQ0FBQztJQUVELEtBQUssQ0FBQyx1QkFBdUIsQ0FBQyxPQUFtQztRQUMvRCxNQUFNLFNBQVMsR0FBRyxPQUFPLENBQUMsT0FBTyxDQUFDLGtCQUFrQixDQUFXLENBQUM7UUFFaEUsTUFBTSxLQUFLLEdBQUcsSUFBSSxDQUFDLE9BQU8sQ0FBQyxRQUFRLENBQUMsY0FBYyxDQUNoRCxPQUFPLENBQUMsT0FBMEIsRUFDbEMsU0FBUyxFQUNULElBQUksQ0FBQyxPQUFPLENBQUMsYUFBYSxDQUMzQixDQUFDO1FBRUYsTUFBTSxJQUFJLEdBQUcsS0FBSyxDQUFDLElBQUksQ0FBQyxNQUF3QixDQUFDO1FBRWpELFFBQVEsS0FBSyxDQUFDLElBQUksRUFBRSxDQUFDO1lBQ25CLEtBQUssaUJBQWlCO2dCQUNwQiw2REFBNkQ7Z0JBQzdELE9BQU87b0JBQ0wsTUFBTSxFQUFFLCtCQUFtQixDQUFDLGtCQUFrQjtvQkFDOUMsSUFBSSxFQUFFO3dCQUNKLFVBQVUsRUFBRSxJQUFJLENBQUMsUUFBUSxFQUFFLFVBQW9CO3FCQUNoRDtpQkFDRixDQUFDO1FBQ04sQ0FBQztRQUVELE1BQU0sSUFBSSxtQkFBVyxDQUNuQixtQkFBVyxDQUFDLEtBQUssQ0FBQyxnQkFBZ0IsRUFDbEMsMkJBQTJCLEtBQUssQ0FBQyxJQUFJLEVBQUUsQ0FDeEMsQ0FBQztJQUNKLENBQUM7Q0FDRjtBQXpMRCx3Q0F5TEMifQ==
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import SellerModuleService from "./service";
|
|
2
|
+
export declare const SELLER_MODULE = "seller";
|
|
3
|
+
export { SellerModuleService };
|
|
4
|
+
export * from "./utils";
|
|
5
|
+
declare const _default: import("@medusajs/types").ModuleExports<typeof SellerModuleService> & {
|
|
6
|
+
linkable: {
|
|
7
|
+
readonly memberInvite: {
|
|
8
|
+
id: {
|
|
9
|
+
serviceName: "seller";
|
|
10
|
+
field: "memberInvite";
|
|
11
|
+
linkable: "member_invite_id";
|
|
12
|
+
primaryKey: "id";
|
|
13
|
+
};
|
|
14
|
+
toJSON: () => {
|
|
15
|
+
serviceName: "seller";
|
|
16
|
+
field: "memberInvite";
|
|
17
|
+
linkable: "member_invite_id";
|
|
18
|
+
primaryKey: "id";
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
readonly member: {
|
|
22
|
+
id: {
|
|
23
|
+
serviceName: "seller";
|
|
24
|
+
field: "member";
|
|
25
|
+
linkable: "member_id";
|
|
26
|
+
primaryKey: "id";
|
|
27
|
+
};
|
|
28
|
+
toJSON: () => {
|
|
29
|
+
serviceName: "seller";
|
|
30
|
+
field: "member";
|
|
31
|
+
linkable: "member_id";
|
|
32
|
+
primaryKey: "id";
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
readonly seller: {
|
|
36
|
+
id: {
|
|
37
|
+
serviceName: "seller";
|
|
38
|
+
field: "seller";
|
|
39
|
+
linkable: "seller_id";
|
|
40
|
+
primaryKey: "id";
|
|
41
|
+
};
|
|
42
|
+
toJSON: () => {
|
|
43
|
+
serviceName: "seller";
|
|
44
|
+
field: "seller";
|
|
45
|
+
linkable: "seller_id";
|
|
46
|
+
primaryKey: "id";
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
readonly sellerOnboarding: {
|
|
50
|
+
id: {
|
|
51
|
+
serviceName: "seller";
|
|
52
|
+
field: "sellerOnboarding";
|
|
53
|
+
linkable: "seller_onboarding_id";
|
|
54
|
+
primaryKey: "id";
|
|
55
|
+
};
|
|
56
|
+
toJSON: () => {
|
|
57
|
+
serviceName: "seller";
|
|
58
|
+
field: "sellerOnboarding";
|
|
59
|
+
linkable: "seller_onboarding_id";
|
|
60
|
+
primaryKey: "id";
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
+
};
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
exports.SellerModuleService = exports.SELLER_MODULE = void 0;
|
|
21
|
+
const utils_1 = require("@medusajs/framework/utils");
|
|
22
|
+
const service_1 = __importDefault(require("./service"));
|
|
23
|
+
exports.SellerModuleService = service_1.default;
|
|
24
|
+
exports.SELLER_MODULE = "seller";
|
|
25
|
+
__exportStar(require("./utils"), exports);
|
|
26
|
+
exports.default = (0, utils_1.Module)(exports.SELLER_MODULE, { service: service_1.default });
|
|
27
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvbW9kdWxlcy9zZWxsZXIvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSxxREFBbUQ7QUFFbkQsd0RBQTRDO0FBR25DLDhCQUhGLGlCQUFtQixDQUdFO0FBRGYsUUFBQSxhQUFhLEdBQUcsUUFBUSxDQUFDO0FBRXRDLDBDQUF3QjtBQUV4QixrQkFBZSxJQUFBLGNBQU0sRUFBQyxxQkFBYSxFQUFFLEVBQUUsT0FBTyxFQUFFLGlCQUFtQixFQUFFLENBQUMsQ0FBQyJ9
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Migration20241206125415 = void 0;
|
|
4
|
+
const migrations_1 = require("@mikro-orm/migrations");
|
|
5
|
+
class Migration20241206125415 extends migrations_1.Migration {
|
|
6
|
+
async up() {
|
|
7
|
+
this.addSql('create table if not exists "seller" ("id" text not null, "name" text not null, "handle" text not null, "description" text null, "photo" text null, "created_at" timestamptz not null default now(), "updated_at" timestamptz not null default now(), "deleted_at" timestamptz null, constraint "seller_pkey" primary key ("id"));');
|
|
8
|
+
this.addSql('CREATE UNIQUE INDEX IF NOT EXISTS "IDX_seller_handle_unique" ON "seller" (handle) WHERE deleted_at IS NULL;');
|
|
9
|
+
this.addSql('CREATE INDEX IF NOT EXISTS "IDX_seller_deleted_at" ON "seller" (deleted_at) WHERE deleted_at IS NULL;');
|
|
10
|
+
this.addSql('create table if not exists "member_invite" ("id" text not null, "email" text not null, "role" text check ("role" in (\'owner\', \'admin\', \'member\')) not null default \'owner\', "seller_id" text not null, "token" text not null, "expires_at" timestamptz not null, "accepted" boolean not null default false, "created_at" timestamptz not null default now(), "updated_at" timestamptz not null default now(), "deleted_at" timestamptz null, constraint "member_invite_pkey" primary key ("id"));');
|
|
11
|
+
this.addSql('CREATE INDEX IF NOT EXISTS "IDX_member_invite_seller_id" ON "member_invite" (seller_id) WHERE deleted_at IS NULL;');
|
|
12
|
+
this.addSql('CREATE INDEX IF NOT EXISTS "IDX_member_invite_deleted_at" ON "member_invite" (deleted_at) WHERE deleted_at IS NULL;');
|
|
13
|
+
this.addSql('create table if not exists "member" ("id" text not null, "role" text check ("role" in (\'owner\', \'admin\', \'member\')) not null default \'owner\', "name" text not null, "bio" text null, "phone" text null, "photo" text null, "seller_id" text not null, "created_at" timestamptz not null default now(), "updated_at" timestamptz not null default now(), "deleted_at" timestamptz null, constraint "member_pkey" primary key ("id"));');
|
|
14
|
+
this.addSql('CREATE INDEX IF NOT EXISTS "IDX_member_seller_id" ON "member" (seller_id) WHERE deleted_at IS NULL;');
|
|
15
|
+
this.addSql('CREATE INDEX IF NOT EXISTS "IDX_member_deleted_at" ON "member" (deleted_at) WHERE deleted_at IS NULL;');
|
|
16
|
+
this.addSql('alter table if exists "member_invite" add constraint "member_invite_seller_id_foreign" foreign key ("seller_id") references "seller" ("id") on update cascade on delete cascade;');
|
|
17
|
+
this.addSql('alter table if exists "member" add constraint "member_seller_id_foreign" foreign key ("seller_id") references "seller" ("id") on update cascade on delete cascade;');
|
|
18
|
+
}
|
|
19
|
+
async down() {
|
|
20
|
+
this.addSql('alter table if exists "member_invite" drop constraint if exists "member_invite_seller_id_foreign";');
|
|
21
|
+
this.addSql('alter table if exists "member" drop constraint if exists "member_seller_id_foreign";');
|
|
22
|
+
this.addSql('drop table if exists "seller" cascade;');
|
|
23
|
+
this.addSql('drop table if exists "member_invite" cascade;');
|
|
24
|
+
this.addSql('drop table if exists "member" cascade;');
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.Migration20241206125415 = Migration20241206125415;
|
|
28
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWlncmF0aW9uMjAyNDEyMDYxMjU0MTUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbW9kdWxlcy9zZWxsZXIvbWlncmF0aW9ucy9NaWdyYXRpb24yMDI0MTIwNjEyNTQxNS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxzREFBa0Q7QUFFbEQsTUFBYSx1QkFBd0IsU0FBUSxzQkFBUztJQUVwRCxLQUFLLENBQUMsRUFBRTtRQUNOLElBQUksQ0FBQyxNQUFNLENBQUMsbVVBQW1VLENBQUMsQ0FBQztRQUNqVixJQUFJLENBQUMsTUFBTSxDQUFDLDZHQUE2RyxDQUFDLENBQUM7UUFDM0gsSUFBSSxDQUFDLE1BQU0sQ0FBQyx1R0FBdUcsQ0FBQyxDQUFDO1FBRXJILElBQUksQ0FBQyxNQUFNLENBQUMsMmVBQTJlLENBQUMsQ0FBQztRQUN6ZixJQUFJLENBQUMsTUFBTSxDQUFDLG1IQUFtSCxDQUFDLENBQUM7UUFDakksSUFBSSxDQUFDLE1BQU0sQ0FBQyxxSEFBcUgsQ0FBQyxDQUFDO1FBRW5JLElBQUksQ0FBQyxNQUFNLENBQUMsOGFBQThhLENBQUMsQ0FBQztRQUM1YixJQUFJLENBQUMsTUFBTSxDQUFDLHFHQUFxRyxDQUFDLENBQUM7UUFDbkgsSUFBSSxDQUFDLE1BQU0sQ0FBQyx1R0FBdUcsQ0FBQyxDQUFDO1FBRXJILElBQUksQ0FBQyxNQUFNLENBQUMsa0xBQWtMLENBQUMsQ0FBQztRQUVoTSxJQUFJLENBQUMsTUFBTSxDQUFDLG9LQUFvSyxDQUFDLENBQUM7SUFDcEwsQ0FBQztJQUVELEtBQUssQ0FBQyxJQUFJO1FBQ1IsSUFBSSxDQUFDLE1BQU0sQ0FBQyxvR0FBb0csQ0FBQyxDQUFDO1FBRWxILElBQUksQ0FBQyxNQUFNLENBQUMsc0ZBQXNGLENBQUMsQ0FBQztRQUVwRyxJQUFJLENBQUMsTUFBTSxDQUFDLHdDQUF3QyxDQUFDLENBQUM7UUFFdEQsSUFBSSxDQUFDLE1BQU0sQ0FBQywrQ0FBK0MsQ0FBQyxDQUFDO1FBRTdELElBQUksQ0FBQyxNQUFNLENBQUMsd0NBQXdDLENBQUMsQ0FBQztJQUN4RCxDQUFDO0NBRUY7QUFoQ0QsMERBZ0NDIn0=
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Migration20250212131627 = void 0;
|
|
4
|
+
const migrations_1 = require("@mikro-orm/migrations");
|
|
5
|
+
class Migration20250212131627 extends migrations_1.Migration {
|
|
6
|
+
async up() {
|
|
7
|
+
this.addSql('drop table if exists "onboarding" cascade;');
|
|
8
|
+
this.addSql('alter table if exists "member" add column if not exists "email" text null;');
|
|
9
|
+
}
|
|
10
|
+
async down() {
|
|
11
|
+
this.addSql('create table if not exists "onboarding" ("id" text not null, "is_payout_account_setup_completed" boolean not null default false, "seller_id" text not null, "created_at" timestamptz not null default now(), "updated_at" timestamptz not null default now(), "deleted_at" timestamptz null, constraint "onboarding_pkey" primary key ("id"));');
|
|
12
|
+
this.addSql('alter table if exists "onboarding" add constraint "onboarding_seller_id_unique" unique ("seller_id");');
|
|
13
|
+
this.addSql('CREATE INDEX IF NOT EXISTS "IDX_onboarding_seller_id" ON "onboarding" (seller_id) WHERE deleted_at IS NULL;');
|
|
14
|
+
this.addSql('CREATE INDEX IF NOT EXISTS "IDX_onboarding_deleted_at" ON "onboarding" (deleted_at) WHERE deleted_at IS NULL;');
|
|
15
|
+
this.addSql('alter table if exists "onboarding" add constraint "onboarding_seller_id_foreign" foreign key ("seller_id") references "seller" ("id") on update cascade;');
|
|
16
|
+
this.addSql('alter table if exists "member" drop column if exists "email";');
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.Migration20250212131627 = Migration20250212131627;
|
|
20
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWlncmF0aW9uMjAyNTAyMTIxMzE2MjcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbW9kdWxlcy9zZWxsZXIvbWlncmF0aW9ucy9NaWdyYXRpb24yMDI1MDIxMjEzMTYyNy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxzREFBaUQ7QUFFakQsTUFBYSx1QkFBd0IsU0FBUSxzQkFBUztJQUNwRCxLQUFLLENBQUMsRUFBRTtRQUNOLElBQUksQ0FBQyxNQUFNLENBQUMsNENBQTRDLENBQUMsQ0FBQTtRQUV6RCxJQUFJLENBQUMsTUFBTSxDQUNULDRFQUE0RSxDQUM3RSxDQUFBO0lBQ0gsQ0FBQztJQUVELEtBQUssQ0FBQyxJQUFJO1FBQ1IsSUFBSSxDQUFDLE1BQU0sQ0FDVCxnVkFBZ1YsQ0FDalYsQ0FBQTtRQUNELElBQUksQ0FBQyxNQUFNLENBQ1QsdUdBQXVHLENBQ3hHLENBQUE7UUFDRCxJQUFJLENBQUMsTUFBTSxDQUNULDZHQUE2RyxDQUM5RyxDQUFBO1FBQ0QsSUFBSSxDQUFDLE1BQU0sQ0FDVCwrR0FBK0csQ0FDaEgsQ0FBQTtRQUVELElBQUksQ0FBQyxNQUFNLENBQ1QsMEpBQTBKLENBQzNKLENBQUE7UUFFRCxJQUFJLENBQUMsTUFBTSxDQUFDLCtEQUErRCxDQUFDLENBQUE7SUFDOUUsQ0FBQztDQUNGO0FBN0JELDBEQTZCQyJ9
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Migration20250225083755 = void 0;
|
|
4
|
+
const migrations_1 = require("@mikro-orm/migrations");
|
|
5
|
+
class Migration20250225083755 extends migrations_1.Migration {
|
|
6
|
+
async up() {
|
|
7
|
+
this.addSql('alter table if exists "seller" add column if not exists "address_line" text null, add column if not exists "city" text null, add column if not exists "postal_code" text null, add column if not exists "country_code" text null, add column if not exists "tax_id" text null;');
|
|
8
|
+
this.addSql('alter table if exists "member_invite" alter column "email" type text using ("email"::text);');
|
|
9
|
+
this.addSql('alter table if exists "member_invite" alter column "email" set not null;');
|
|
10
|
+
this.addSql('alter table if exists "member" alter column "email" type text using ("email"::text);');
|
|
11
|
+
this.addSql('alter table if exists "member" alter column "email" drop not null;');
|
|
12
|
+
}
|
|
13
|
+
async down() {
|
|
14
|
+
this.addSql('alter table if exists "seller" drop column if exists "address_line";');
|
|
15
|
+
this.addSql('alter table if exists "seller" drop column if exists "city";');
|
|
16
|
+
this.addSql('alter table if exists "seller" drop column if exists "postal_code";');
|
|
17
|
+
this.addSql('alter table if exists "seller" drop column if exists "country_code";');
|
|
18
|
+
this.addSql('alter table if exists "seller" drop column if exists "tax_id";');
|
|
19
|
+
this.addSql('alter table if exists "member_invite" alter column "email" type text using ("email"::text);');
|
|
20
|
+
this.addSql('alter table if exists "member_invite" alter column "email" drop not null;');
|
|
21
|
+
this.addSql('alter table if exists "member" alter column "email" type text using ("email"::text);');
|
|
22
|
+
this.addSql('alter table if exists "member" alter column "email" set not null;');
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.Migration20250225083755 = Migration20250225083755;
|
|
26
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWlncmF0aW9uMjAyNTAyMjUwODM3NTUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbW9kdWxlcy9zZWxsZXIvbWlncmF0aW9ucy9NaWdyYXRpb24yMDI1MDIyNTA4Mzc1NS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxzREFBa0Q7QUFFbEQsTUFBYSx1QkFBd0IsU0FBUSxzQkFBUztJQUVwRCxLQUFLLENBQUMsRUFBRTtRQUNOLElBQUksQ0FBQyxNQUFNLENBQUMsZ1JBQWdSLENBQUMsQ0FBQztRQUU5UixJQUFJLENBQUMsTUFBTSxDQUFDLDZGQUE2RixDQUFDLENBQUM7UUFDM0csSUFBSSxDQUFDLE1BQU0sQ0FBQywwRUFBMEUsQ0FBQyxDQUFDO1FBRXhGLElBQUksQ0FBQyxNQUFNLENBQUMsc0ZBQXNGLENBQUMsQ0FBQztRQUNwRyxJQUFJLENBQUMsTUFBTSxDQUFDLG9FQUFvRSxDQUFDLENBQUM7SUFDcEYsQ0FBQztJQUVELEtBQUssQ0FBQyxJQUFJO1FBQ1IsSUFBSSxDQUFDLE1BQU0sQ0FBQyxzRUFBc0UsQ0FBQyxDQUFDO1FBQ3BGLElBQUksQ0FBQyxNQUFNLENBQUMsOERBQThELENBQUMsQ0FBQztRQUM1RSxJQUFJLENBQUMsTUFBTSxDQUFDLHFFQUFxRSxDQUFDLENBQUM7UUFDbkYsSUFBSSxDQUFDLE1BQU0sQ0FBQyxzRUFBc0UsQ0FBQyxDQUFDO1FBQ3BGLElBQUksQ0FBQyxNQUFNLENBQUMsZ0VBQWdFLENBQUMsQ0FBQztRQUU5RSxJQUFJLENBQUMsTUFBTSxDQUFDLDZGQUE2RixDQUFDLENBQUM7UUFDM0csSUFBSSxDQUFDLE1BQU0sQ0FBQywyRUFBMkUsQ0FBQyxDQUFDO1FBRXpGLElBQUksQ0FBQyxNQUFNLENBQUMsc0ZBQXNGLENBQUMsQ0FBQztRQUNwRyxJQUFJLENBQUMsTUFBTSxDQUFDLG1FQUFtRSxDQUFDLENBQUM7SUFDbkYsQ0FBQztDQUVGO0FBMUJELDBEQTBCQyJ9
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Migration20250225094708 = void 0;
|
|
4
|
+
const migrations_1 = require("@mikro-orm/migrations");
|
|
5
|
+
class Migration20250225094708 extends migrations_1.Migration {
|
|
6
|
+
async up() {
|
|
7
|
+
this.addSql('create table if not exists "seller_onboarding" ("id" text not null, "store_information" boolean not null default false, "stripe_connection" boolean not null default false, "locations_shipping" boolean not null default false, "products" boolean not null default false, "seller_id" text not null, "created_at" timestamptz not null default now(), "updated_at" timestamptz not null default now(), "deleted_at" timestamptz null, constraint "seller_onboarding_pkey" primary key ("id"));');
|
|
8
|
+
this.addSql('alter table if exists "seller_onboarding" add constraint "seller_onboarding_seller_id_unique" unique ("seller_id");');
|
|
9
|
+
this.addSql('CREATE INDEX IF NOT EXISTS "IDX_seller_onboarding_seller_id" ON "seller_onboarding" (seller_id) WHERE deleted_at IS NULL;');
|
|
10
|
+
this.addSql('CREATE INDEX IF NOT EXISTS "IDX_seller_onboarding_deleted_at" ON "seller_onboarding" (deleted_at) WHERE deleted_at IS NULL;');
|
|
11
|
+
this.addSql('alter table if exists "seller_onboarding" add constraint "seller_onboarding_seller_id_foreign" foreign key ("seller_id") references "seller" ("id") on update cascade;');
|
|
12
|
+
}
|
|
13
|
+
async down() {
|
|
14
|
+
this.addSql('drop table if exists "seller_onboarding" cascade;');
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.Migration20250225094708 = Migration20250225094708;
|
|
18
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWlncmF0aW9uMjAyNTAyMjUwOTQ3MDguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbW9kdWxlcy9zZWxsZXIvbWlncmF0aW9ucy9NaWdyYXRpb24yMDI1MDIyNTA5NDcwOC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxzREFBaUQ7QUFFakQsTUFBYSx1QkFBd0IsU0FBUSxzQkFBUztJQUNwRCxLQUFLLENBQUMsRUFBRTtRQUNOLElBQUksQ0FBQyxNQUFNLENBQ1Qsa2VBQWtlLENBQ25lLENBQUE7UUFDRCxJQUFJLENBQUMsTUFBTSxDQUNULHFIQUFxSCxDQUN0SCxDQUFBO1FBQ0QsSUFBSSxDQUFDLE1BQU0sQ0FDVCwySEFBMkgsQ0FDNUgsQ0FBQTtRQUNELElBQUksQ0FBQyxNQUFNLENBQ1QsNkhBQTZILENBQzlILENBQUE7UUFFRCxJQUFJLENBQUMsTUFBTSxDQUNULHdLQUF3SyxDQUN6SyxDQUFBO0lBQ0gsQ0FBQztJQUVELEtBQUssQ0FBQyxJQUFJO1FBQ1IsSUFBSSxDQUFDLE1BQU0sQ0FBQyxtREFBbUQsQ0FBQyxDQUFBO0lBQ2xFLENBQUM7Q0FDRjtBQXZCRCwwREF1QkMifQ==
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Migration20250307091819 = void 0;
|
|
4
|
+
const migrations_1 = require("@mikro-orm/migrations");
|
|
5
|
+
class Migration20250307091819 extends migrations_1.Migration {
|
|
6
|
+
async up() {
|
|
7
|
+
this.addSql('alter table if exists "seller" add column if not exists "email" text null, add column if not exists "phone" text null, add column if not exists "state" text null;');
|
|
8
|
+
}
|
|
9
|
+
async down() {
|
|
10
|
+
this.addSql('alter table if exists "seller" drop column if exists "email";');
|
|
11
|
+
this.addSql('alter table if exists "seller" drop column if exists "phone";');
|
|
12
|
+
this.addSql('alter table if exists "seller" drop column if exists "state";');
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.Migration20250307091819 = Migration20250307091819;
|
|
16
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWlncmF0aW9uMjAyNTAzMDcwOTE4MTkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbW9kdWxlcy9zZWxsZXIvbWlncmF0aW9ucy9NaWdyYXRpb24yMDI1MDMwNzA5MTgxOS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxzREFBa0Q7QUFFbEQsTUFBYSx1QkFBd0IsU0FBUSxzQkFBUztJQUVwRCxLQUFLLENBQUMsRUFBRTtRQUNOLElBQUksQ0FBQyxNQUFNLENBQUMsb0tBQW9LLENBQUMsQ0FBQztJQUNwTCxDQUFDO0lBRUQsS0FBSyxDQUFDLElBQUk7UUFDUixJQUFJLENBQUMsTUFBTSxDQUFDLCtEQUErRCxDQUFDLENBQUM7UUFDN0UsSUFBSSxDQUFDLE1BQU0sQ0FBQywrREFBK0QsQ0FBQyxDQUFDO1FBQzdFLElBQUksQ0FBQyxNQUFNLENBQUMsK0RBQStELENBQUMsQ0FBQztJQUMvRSxDQUFDO0NBRUY7QUFaRCwwREFZQyJ9
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Migration20250313065552 = void 0;
|
|
4
|
+
const migrations_1 = require("@mikro-orm/migrations");
|
|
5
|
+
class Migration20250313065552 extends migrations_1.Migration {
|
|
6
|
+
async up() {
|
|
7
|
+
this.addSql(`alter table if exists "seller_onboarding" drop constraint if exists "seller_onboarding_seller_id_unique";`);
|
|
8
|
+
this.addSql(`drop index if exists "seller_onboarding_seller_id_unique";`);
|
|
9
|
+
this.addSql(`drop index if exists "IDX_seller_onboarding_seller_id";`);
|
|
10
|
+
this.addSql(`CREATE UNIQUE INDEX IF NOT EXISTS "IDX_seller_onboarding_seller_id_unique" ON "seller_onboarding" (seller_id) WHERE deleted_at IS NULL;`);
|
|
11
|
+
}
|
|
12
|
+
async down() {
|
|
13
|
+
this.addSql(`drop index if exists "IDX_seller_onboarding_seller_id_unique";`);
|
|
14
|
+
this.addSql(`alter table if exists "seller_onboarding" add constraint "seller_onboarding_seller_id_unique" unique ("seller_id");`);
|
|
15
|
+
this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_seller_onboarding_seller_id" ON "seller_onboarding" (seller_id) WHERE deleted_at IS NULL;`);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.Migration20250313065552 = Migration20250313065552;
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWlncmF0aW9uMjAyNTAzMTMwNjU1NTIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbW9kdWxlcy9zZWxsZXIvbWlncmF0aW9ucy9NaWdyYXRpb24yMDI1MDMxMzA2NTU1Mi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxzREFBa0Q7QUFFbEQsTUFBYSx1QkFBd0IsU0FBUSxzQkFBUztJQUUzQyxLQUFLLENBQUMsRUFBRTtRQUNmLElBQUksQ0FBQyxNQUFNLENBQUMsMkdBQTJHLENBQUMsQ0FBQztRQUN6SCxJQUFJLENBQUMsTUFBTSxDQUFDLDREQUE0RCxDQUFDLENBQUM7UUFDMUUsSUFBSSxDQUFDLE1BQU0sQ0FBQyx5REFBeUQsQ0FBQyxDQUFDO1FBRXZFLElBQUksQ0FBQyxNQUFNLENBQUMseUlBQXlJLENBQUMsQ0FBQztJQUN6SixDQUFDO0lBRVEsS0FBSyxDQUFDLElBQUk7UUFDakIsSUFBSSxDQUFDLE1BQU0sQ0FBQyxnRUFBZ0UsQ0FBQyxDQUFDO1FBRTlFLElBQUksQ0FBQyxNQUFNLENBQUMscUhBQXFILENBQUMsQ0FBQztRQUNuSSxJQUFJLENBQUMsTUFBTSxDQUFDLDJIQUEySCxDQUFDLENBQUM7SUFDM0ksQ0FBQztDQUVGO0FBakJELDBEQWlCQyJ9
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Migration20250530111528 = void 0;
|
|
4
|
+
const migrations_1 = require("@mikro-orm/migrations");
|
|
5
|
+
class Migration20250530111528 extends migrations_1.Migration {
|
|
6
|
+
async up() {
|
|
7
|
+
this.addSql(`alter table if exists "seller" add column if not exists "store_status" text check ("store_status" in ('ACTIVE', 'INACTIVE', 'SUSPENDED')) not null default 'ACTIVE';`);
|
|
8
|
+
}
|
|
9
|
+
async down() {
|
|
10
|
+
this.addSql(`alter table if exists "seller" drop column if exists "store_status";`);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.Migration20250530111528 = Migration20250530111528;
|
|
14
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWlncmF0aW9uMjAyNTA1MzAxMTE1MjguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbW9kdWxlcy9zZWxsZXIvbWlncmF0aW9ucy9NaWdyYXRpb24yMDI1MDUzMDExMTUyOC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxzREFBa0Q7QUFFbEQsTUFBYSx1QkFBd0IsU0FBUSxzQkFBUztJQUUzQyxLQUFLLENBQUMsRUFBRTtRQUNmLElBQUksQ0FBQyxNQUFNLENBQUMsc0tBQXNLLENBQUMsQ0FBQztJQUN0TCxDQUFDO0lBRVEsS0FBSyxDQUFDLElBQUk7UUFDakIsSUFBSSxDQUFDLE1BQU0sQ0FBQyxzRUFBc0UsQ0FBQyxDQUFDO0lBQ3RGLENBQUM7Q0FFRjtBQVZELDBEQVVDIn0=
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./seller"), exports);
|
|
18
|
+
__exportStar(require("./member"), exports);
|
|
19
|
+
__exportStar(require("./invite"), exports);
|
|
20
|
+
__exportStar(require("./onboarding"), exports);
|
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbW9kdWxlcy9zZWxsZXIvbW9kZWxzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSwyQ0FBd0I7QUFDeEIsMkNBQXdCO0FBQ3hCLDJDQUF3QjtBQUN4QiwrQ0FBNEIifQ==
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { MemberRole } from "@mercurjs/framework";
|
|
2
|
+
export declare const MemberInvite: import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
3
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
4
|
+
email: import("@medusajs/framework/utils").TextProperty;
|
|
5
|
+
role: import("@medusajs/framework/utils").EnumProperty<typeof MemberRole>;
|
|
6
|
+
seller: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
7
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
8
|
+
store_status: import("@medusajs/framework/utils").EnumProperty<typeof import("@mercurjs/framework").StoreStatus>;
|
|
9
|
+
name: import("@medusajs/framework/utils").TextProperty;
|
|
10
|
+
handle: import("@medusajs/framework/utils").TextProperty;
|
|
11
|
+
description: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
12
|
+
photo: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
13
|
+
email: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
14
|
+
phone: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
15
|
+
address_line: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
16
|
+
city: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
17
|
+
state: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
18
|
+
postal_code: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
19
|
+
country_code: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
20
|
+
tax_id: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
21
|
+
members: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
22
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
23
|
+
role: import("@medusajs/framework/utils").EnumProperty<typeof MemberRole>;
|
|
24
|
+
name: import("@medusajs/framework/utils").TextProperty;
|
|
25
|
+
email: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
26
|
+
bio: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
27
|
+
phone: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
28
|
+
photo: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
29
|
+
seller: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, "seller">, undefined>;
|
|
30
|
+
}>, "member">>;
|
|
31
|
+
invites: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, "member_invite">>;
|
|
32
|
+
onboarding: import("@medusajs/framework/utils").RelationNullableModifier<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
33
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
34
|
+
store_information: import("@medusajs/framework/utils").BooleanProperty;
|
|
35
|
+
stripe_connection: import("@medusajs/framework/utils").BooleanProperty;
|
|
36
|
+
locations_shipping: import("@medusajs/framework/utils").BooleanProperty;
|
|
37
|
+
products: import("@medusajs/framework/utils").BooleanProperty;
|
|
38
|
+
seller: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, "seller">, undefined>;
|
|
39
|
+
}>, "seller_onboarding">, import("@medusajs/framework/utils").HasOne<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
40
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
41
|
+
store_information: import("@medusajs/framework/utils").BooleanProperty;
|
|
42
|
+
stripe_connection: import("@medusajs/framework/utils").BooleanProperty;
|
|
43
|
+
locations_shipping: import("@medusajs/framework/utils").BooleanProperty;
|
|
44
|
+
products: import("@medusajs/framework/utils").BooleanProperty;
|
|
45
|
+
seller: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, "seller">, undefined>;
|
|
46
|
+
}>, "seller_onboarding">>, false>;
|
|
47
|
+
}>, "seller">, undefined>;
|
|
48
|
+
token: import("@medusajs/framework/utils").TextProperty;
|
|
49
|
+
expires_at: import("@medusajs/framework/utils").DateTimeProperty;
|
|
50
|
+
accepted: import("@medusajs/framework/utils").BooleanProperty;
|
|
51
|
+
}>, "member_invite">;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MemberInvite = void 0;
|
|
4
|
+
const utils_1 = require("@medusajs/framework/utils");
|
|
5
|
+
const framework_1 = require("@mercurjs/framework");
|
|
6
|
+
const seller_1 = require("./seller");
|
|
7
|
+
exports.MemberInvite = utils_1.model.define("member_invite", {
|
|
8
|
+
id: utils_1.model.id({ prefix: "meminv" }).primaryKey(),
|
|
9
|
+
email: utils_1.model.text(),
|
|
10
|
+
role: utils_1.model.enum(framework_1.MemberRole).default(framework_1.MemberRole.OWNER),
|
|
11
|
+
seller: utils_1.model.belongsTo(() => seller_1.Seller, { mappedBy: "invites" }),
|
|
12
|
+
token: utils_1.model.text(),
|
|
13
|
+
expires_at: utils_1.model.dateTime(),
|
|
14
|
+
accepted: utils_1.model.boolean().default(false),
|
|
15
|
+
});
|
|
16
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW52aXRlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vc3JjL21vZHVsZXMvc2VsbGVyL21vZGVscy9pbnZpdGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEscURBQWtEO0FBRWxELG1EQUFpRDtBQUNqRCxxQ0FBa0M7QUFFckIsUUFBQSxZQUFZLEdBQUcsYUFBSyxDQUFDLE1BQU0sQ0FBQyxlQUFlLEVBQUU7SUFDeEQsRUFBRSxFQUFFLGFBQUssQ0FBQyxFQUFFLENBQUMsRUFBRSxNQUFNLEVBQUUsUUFBUSxFQUFFLENBQUMsQ0FBQyxVQUFVLEVBQUU7SUFDL0MsS0FBSyxFQUFFLGFBQUssQ0FBQyxJQUFJLEVBQUU7SUFDbkIsSUFBSSxFQUFFLGFBQUssQ0FBQyxJQUFJLENBQUMsc0JBQVUsQ0FBQyxDQUFDLE9BQU8sQ0FBQyxzQkFBVSxDQUFDLEtBQUssQ0FBQztJQUN0RCxNQUFNLEVBQUUsYUFBSyxDQUFDLFNBQVMsQ0FBQyxHQUFHLEVBQUUsQ0FBQyxlQUFNLEVBQUUsRUFBRSxRQUFRLEVBQUUsU0FBUyxFQUFFLENBQUM7SUFDOUQsS0FBSyxFQUFFLGFBQUssQ0FBQyxJQUFJLEVBQUU7SUFDbkIsVUFBVSxFQUFFLGFBQUssQ0FBQyxRQUFRLEVBQUU7SUFDNUIsUUFBUSxFQUFFLGFBQUssQ0FBQyxPQUFPLEVBQUUsQ0FBQyxPQUFPLENBQUMsS0FBSyxDQUFDO0NBQ3pDLENBQUMsQ0FBQyJ9
|