The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.
TypeScript b2b-marketplacecomposable-commerceecommerceenterpriseheadless-commercemarketplacemedusamedusajsmulti-vendortypescript
feat(cli): add develop, build, start commands and withMercur config wrapper (#860)
Viktor Holik34bbabb110ec
diff --git a/.claude/skills/code-review/references/review-checklist.md b/.claude/skills/code-review/references/review-checklist.mdindex 70f9d8581..bca142501 100644--- a/.claude/skills/code-review/references/review-checklist.md+++ b/.claude/skills/code-review/references/review-checklist.md@@ -2,7 +2,7 @@Area-specific checks for mercur code review. Use alongside the main `SKILL.md`.-## API Routes (`packages/core-plugin/`, `packages/registry/`)+## API Routes (`packages/core/`, `packages/registry/`)- [ ] Route handler has concrete generics: `AuthenticatedMedusaRequest<BodyType>`, `MedusaResponse<ResponseType>`- [ ] Request validation matches the generic body typediff --git a/.claude/skills/migration-guide/SKILL.md b/.claude/skills/migration-guide/SKILL.mdindex d59988c3e..afc71462f 100644--- a/.claude/skills/migration-guide/SKILL.md+++ b/.claude/skills/migration-guide/SKILL.md@@ -59,7 +59,7 @@ Based on classification, read from `docs/migrations/mercur-1.x-to-2.0/`:## Stop conditionsStop and ask the user when:-- A custom module depends on internal APIs not exposed in `@mercurjs/core-plugin`+- A custom module depends on internal APIs not exposed in `@mercurjs/core`- A third-party integration (Resend, Stripe Connect, Stripe Tax) is a launch blocker and has no 2.0 equivalent- Database schema conflicts cannot be resolved with standard migrations- The project uses MedusaJS core modificationsdiff --git a/.mercur/_generated/index.ts b/.mercur/_generated/index.tsindex 2877b24b1..db475a9c4 100644--- a/.mercur/_generated/index.ts+++ b/.mercur/_generated/index.ts@@ -168,7 +168,7 @@ export type Routes = {};};};- orders: typeof import("@mercurjs/core-plugin/api/admin/orders/route") & {+ orders: typeof import("@mercurjs/core/api/admin/orders/route") & {$id: typeof import("@medusajs/medusa/api/admin/orders/[id]/route") & {archive: typeof import("@medusajs/medusa/api/admin/orders/[id]/archive/route");cancel: typeof import("@medusajs/medusa/api/admin/orders/[id]/cancel/route");@@ -227,7 +227,7 @@ export type Routes = {$id: typeof import("@medusajs/medusa/api/admin/product-types/[id]/route");};productVariants: typeof import("@medusajs/medusa/api/admin/product-variants/route");- products: typeof import("@mercurjs/core-plugin/api/admin/products/route") & {+ products: typeof import("@mercurjs/core/api/admin/products/route") & {$id: typeof import("@medusajs/medusa/api/admin/products/[id]/route") & {images: {$imageId: {@@ -414,20 +414,20 @@ export type Routes = {subscribe: typeof import("@medusajs/medusa/api/admin/workflows-executions/[workflow_id]/subscribe/route");};};- commissionRates: typeof import("@mercurjs/core-plugin/api/admin/commission-rates/route") & {- $id: typeof import("@mercurjs/core-plugin/api/admin/commission-rates/[id]/route") & {- rules: typeof import("@mercurjs/core-plugin/api/admin/commission-rates/[id]/rules/route");+ commissionRates: typeof import("@mercurjs/core/api/admin/commission-rates/route") & {+ $id: typeof import("@mercurjs/core/api/admin/commission-rates/[id]/route") & {+ rules: typeof import("@mercurjs/core/api/admin/commission-rates/[id]/rules/route");};};- orderGroups: typeof import("@mercurjs/core-plugin/api/admin/order-groups/route") & {- $id: typeof import("@mercurjs/core-plugin/api/admin/order-groups/[id]/route");+ orderGroups: typeof import("@mercurjs/core/api/admin/order-groups/route") & {+ $id: typeof import("@mercurjs/core/api/admin/order-groups/[id]/route");};- payouts: typeof import("@mercurjs/core-plugin/api/admin/payouts/route") & {- $id: typeof import("@mercurjs/core-plugin/api/admin/payouts/[id]/route");+ payouts: typeof import("@mercurjs/core/api/admin/payouts/route") & {+ $id: typeof import("@mercurjs/core/api/admin/payouts/[id]/route");};- sellers: typeof import("@mercurjs/core-plugin/api/admin/sellers/route") & {- invite: typeof import("@mercurjs/core-plugin/api/admin/sellers/invite/route");- $id: typeof import("@mercurjs/core-plugin/api/admin/sellers/[id]/route");+ sellers: typeof import("@mercurjs/core/api/admin/sellers/route") & {+ invite: typeof import("@mercurjs/core/api/admin/sellers/invite/route");+ $id: typeof import("@mercurjs/core/api/admin/sellers/[id]/route");};};auth: {@@ -447,13 +447,13 @@ export type Routes = {store: {carts: typeof import("@medusajs/medusa/api/store/carts/route") & {$id: typeof import("@medusajs/medusa/api/store/carts/[id]/route") & {- complete: typeof import("@mercurjs/core-plugin/api/store/carts/[id]/complete/route");+ complete: typeof import("@mercurjs/core/api/store/carts/[id]/complete/route");customer: typeof import("@medusajs/medusa/api/store/carts/[id]/customer/route");lineItems: typeof import("@medusajs/medusa/api/store/carts/[id]/line-items/route") & {$lineId: typeof import("@medusajs/medusa/api/store/carts/[id]/line-items/[line_id]/route");};- promotions: typeof import("@mercurjs/core-plugin/api/store/carts/[id]/promotions/route");- shippingMethods: typeof import("@mercurjs/core-plugin/api/store/carts/[id]/shipping-methods/route");+ promotions: typeof import("@mercurjs/core/api/store/carts/[id]/promotions/route");+ shippingMethods: typeof import("@mercurjs/core/api/store/carts/[id]/shipping-methods/route");taxes: typeof import("@medusajs/medusa/api/store/carts/[id]/taxes/route");};};@@ -509,189 +509,189 @@ export type Routes = {$id: typeof import("@medusajs/medusa/api/store/return-reasons/[id]/route");};returns: typeof import("@medusajs/medusa/api/store/returns/route");- shippingOptions: typeof import("@mercurjs/core-plugin/api/store/shipping-options/route") & {+ shippingOptions: typeof import("@mercurjs/core/api/store/shipping-options/route") & {$id: {calculate: typeof import("@medusajs/medusa/api/store/shipping-options/[id]/calculate/route");};};- orderGroups: typeof import("@mercurjs/core-plugin/api/store/order-groups/route") & {- $id: typeof import("@mercurjs/core-plugin/api/store/order-groups/[id]/route");+ orderGroups: typeof import("@mercurjs/core/api/store/order-groups/route") & {+ $id: typeof import("@mercurjs/core/api/store/order-groups/[id]/route");};- sellers: typeof import("@mercurjs/core-plugin/api/store/sellers/route") & {- $id: typeof import("@mercurjs/core-plugin/api/store/sellers/[id]/route");+ sellers: typeof import("@mercurjs/core/api/store/sellers/route") & {+ $id: typeof import("@mercurjs/core/api/store/sellers/[id]/route");};};vendor: {- campaigns: typeof import("@mercurjs/core-plugin/api/vendor/campaigns/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/campaigns/[id]/route") & {- promotions: typeof import("@mercurjs/core-plugin/api/vendor/campaigns/[id]/promotions/route");+ campaigns: typeof import("@mercurjs/core/api/vendor/campaigns/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/campaigns/[id]/route") & {+ promotions: typeof import("@mercurjs/core/api/vendor/campaigns/[id]/promotions/route");};};- collections: typeof import("@mercurjs/core-plugin/api/vendor/collections/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/collections/[id]/route") & {- products: typeof import("@mercurjs/core-plugin/api/vendor/collections/[id]/products/route");+ collections: typeof import("@mercurjs/core/api/vendor/collections/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/collections/[id]/route") & {+ products: typeof import("@mercurjs/core/api/vendor/collections/[id]/products/route");};};- currencies: typeof import("@mercurjs/core-plugin/api/vendor/currencies/route") & {- $code: typeof import("@mercurjs/core-plugin/api/vendor/currencies/[code]/route");+ currencies: typeof import("@mercurjs/core/api/vendor/currencies/route") & {+ $code: typeof import("@mercurjs/core/api/vendor/currencies/[code]/route");};- customers: typeof import("@mercurjs/core-plugin/api/vendor/customers/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/customers/[id]/route");+ customers: typeof import("@mercurjs/core/api/vendor/customers/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/customers/[id]/route");};fulfillmentSets: {- $id: typeof import("@mercurjs/core-plugin/api/vendor/fulfillment-sets/[id]/route") & {- serviceZones: typeof import("@mercurjs/core-plugin/api/vendor/fulfillment-sets/[id]/service-zones/route") & {- $zoneId: typeof import("@mercurjs/core-plugin/api/vendor/fulfillment-sets/[id]/service-zones/[zone_id]/route");+ $id: typeof import("@mercurjs/core/api/vendor/fulfillment-sets/[id]/route") & {+ serviceZones: typeof import("@mercurjs/core/api/vendor/fulfillment-sets/[id]/service-zones/route") & {+ $zoneId: typeof import("@mercurjs/core/api/vendor/fulfillment-sets/[id]/service-zones/[zone_id]/route");};};};- inventoryItems: typeof import("@mercurjs/core-plugin/api/vendor/inventory-items/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/inventory-items/[id]/route") & {- locationLevels: typeof import("@mercurjs/core-plugin/api/vendor/inventory-items/[id]/location-levels/route") & {- $locationId: typeof import("@mercurjs/core-plugin/api/vendor/inventory-items/[id]/location-levels/[location_id]/route");- batch: typeof import("@mercurjs/core-plugin/api/vendor/inventory-items/[id]/location-levels/batch/route");+ inventoryItems: typeof import("@mercurjs/core/api/vendor/inventory-items/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/inventory-items/[id]/route") & {+ locationLevels: typeof import("@mercurjs/core/api/vendor/inventory-items/[id]/location-levels/route") & {+ $locationId: typeof import("@mercurjs/core/api/vendor/inventory-items/[id]/location-levels/[location_id]/route");+ batch: typeof import("@mercurjs/core/api/vendor/inventory-items/[id]/location-levels/batch/route");};};};- orders: typeof import("@mercurjs/core-plugin/api/vendor/orders/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/route") & {- cancel: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/cancel/route");- changes: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/changes/route");- complete: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/complete/route");- fulfillments: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/fulfillments/route") & {+ orders: typeof import("@mercurjs/core/api/vendor/orders/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/orders/[id]/route") & {+ cancel: typeof import("@mercurjs/core/api/vendor/orders/[id]/cancel/route");+ changes: typeof import("@mercurjs/core/api/vendor/orders/[id]/changes/route");+ complete: typeof import("@mercurjs/core/api/vendor/orders/[id]/complete/route");+ fulfillments: typeof import("@mercurjs/core/api/vendor/orders/[id]/fulfillments/route") & {$fulfillmentId: {- cancel: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/cancel/route");- markAsDelivered: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/mark-as-delivered/route");- shipments: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/shipments/route");+ cancel: typeof import("@mercurjs/core/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/cancel/route");+ markAsDelivered: typeof import("@mercurjs/core/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/mark-as-delivered/route");+ shipments: typeof import("@mercurjs/core/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/shipments/route");};};- preview: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/preview/route");+ preview: typeof import("@mercurjs/core/api/vendor/orders/[id]/preview/route");};};- payments: typeof import("@mercurjs/core-plugin/api/vendor/payments/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/payments/[id]/route") & {- capture: typeof import("@mercurjs/core-plugin/api/vendor/payments/[id]/capture/route");- refund: typeof import("@mercurjs/core-plugin/api/vendor/payments/[id]/refund/route");+ payments: typeof import("@mercurjs/core/api/vendor/payments/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/payments/[id]/route") & {+ capture: typeof import("@mercurjs/core/api/vendor/payments/[id]/capture/route");+ refund: typeof import("@mercurjs/core/api/vendor/payments/[id]/refund/route");};- paymentProviders: typeof import("@mercurjs/core-plugin/api/vendor/payments/payment-providers/route");+ paymentProviders: typeof import("@mercurjs/core/api/vendor/payments/payment-providers/route");};- payoutAccounts: typeof import("@mercurjs/core-plugin/api/vendor/payout-accounts/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/payout-accounts/[id]/route") & {- onboarding: typeof import("@mercurjs/core-plugin/api/vendor/payout-accounts/[id]/onboarding/route");+ payoutAccounts: typeof import("@mercurjs/core/api/vendor/payout-accounts/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/payout-accounts/[id]/route") & {+ onboarding: typeof import("@mercurjs/core/api/vendor/payout-accounts/[id]/onboarding/route");};};- payouts: typeof import("@mercurjs/core-plugin/api/vendor/payouts/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/payouts/[id]/route");+ payouts: typeof import("@mercurjs/core/api/vendor/payouts/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/payouts/[id]/route");};- priceLists: typeof import("@mercurjs/core-plugin/api/vendor/price-lists/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/price-lists/[id]/route") & {- products: typeof import("@mercurjs/core-plugin/api/vendor/price-lists/[id]/products/route");+ priceLists: typeof import("@mercurjs/core/api/vendor/price-lists/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/price-lists/[id]/route") & {+ products: typeof import("@mercurjs/core/api/vendor/price-lists/[id]/products/route");};};- pricePreferences: typeof import("@mercurjs/core-plugin/api/vendor/price-preferences/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/price-preferences/[id]/route");+ pricePreferences: typeof import("@mercurjs/core/api/vendor/price-preferences/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/price-preferences/[id]/route");};- productCategories: typeof import("@mercurjs/core-plugin/api/vendor/product-categories/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/product-categories/[id]/route") & {- products: typeof import("@mercurjs/core-plugin/api/vendor/product-categories/[id]/products/route");+ productCategories: typeof import("@mercurjs/core/api/vendor/product-categories/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/product-categories/[id]/route") & {+ products: typeof import("@mercurjs/core/api/vendor/product-categories/[id]/products/route");};};- productTags: typeof import("@mercurjs/core-plugin/api/vendor/product-tags/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/product-tags/[id]/route");+ productTags: typeof import("@mercurjs/core/api/vendor/product-tags/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/product-tags/[id]/route");};- productTypes: typeof import("@mercurjs/core-plugin/api/vendor/product-types/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/product-types/[id]/route");+ productTypes: typeof import("@mercurjs/core/api/vendor/product-types/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/product-types/[id]/route");};- products: typeof import("@mercurjs/core-plugin/api/vendor/products/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/products/[id]/route") & {- options: typeof import("@mercurjs/core-plugin/api/vendor/products/[id]/options/route") & {- $optionId: typeof import("@mercurjs/core-plugin/api/vendor/products/[id]/options/[option_id]/route");+ products: typeof import("@mercurjs/core/api/vendor/products/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/products/[id]/route") & {+ options: typeof import("@mercurjs/core/api/vendor/products/[id]/options/route") & {+ $optionId: typeof import("@mercurjs/core/api/vendor/products/[id]/options/[option_id]/route");};- variants: typeof import("@mercurjs/core-plugin/api/vendor/products/[id]/variants/route") & {- $variantId: typeof import("@mercurjs/core-plugin/api/vendor/products/[id]/variants/[variant_id]/route");+ variants: typeof import("@mercurjs/core/api/vendor/products/[id]/variants/route") & {+ $variantId: typeof import("@mercurjs/core/api/vendor/products/[id]/variants/[variant_id]/route");};};};- promotions: typeof import("@mercurjs/core-plugin/api/vendor/promotions/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/promotions/[id]/route") & {- $ruleType: typeof import("@mercurjs/core-plugin/api/vendor/promotions/[id]/[rule_type]/route");+ promotions: typeof import("@mercurjs/core/api/vendor/promotions/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/promotions/[id]/route") & {+ $ruleType: typeof import("@mercurjs/core/api/vendor/promotions/[id]/[rule_type]/route");buyRules: {- batch: typeof import("@mercurjs/core-plugin/api/vendor/promotions/[id]/buy-rules/batch/route");+ batch: typeof import("@mercurjs/core/api/vendor/promotions/[id]/buy-rules/batch/route");};rules: {- batch: typeof import("@mercurjs/core-plugin/api/vendor/promotions/[id]/rules/batch/route");+ batch: typeof import("@mercurjs/core/api/vendor/promotions/[id]/rules/batch/route");};targetRules: {- batch: typeof import("@mercurjs/core-plugin/api/vendor/promotions/[id]/target-rules/batch/route");+ batch: typeof import("@mercurjs/core/api/vendor/promotions/[id]/target-rules/batch/route");};};ruleAttributeOptions: {- $ruleType: typeof import("@mercurjs/core-plugin/api/vendor/promotions/rule-attribute-options/[rule_type]/route");+ $ruleType: typeof import("@mercurjs/core/api/vendor/promotions/rule-attribute-options/[rule_type]/route");};ruleValueOptions: {$ruleType: {- $ruleAttributeId: typeof import("@mercurjs/core-plugin/api/vendor/promotions/rule-value-options/[rule_type]/[rule_attribute_id]/route");+ $ruleAttributeId: typeof import("@mercurjs/core/api/vendor/promotions/rule-value-options/[rule_type]/[rule_attribute_id]/route");};};};- refundReasons: typeof import("@mercurjs/core-plugin/api/vendor/refund-reasons/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/refund-reasons/[id]/route");+ refundReasons: typeof import("@mercurjs/core/api/vendor/refund-reasons/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/refund-reasons/[id]/route");};- regions: typeof import("@mercurjs/core-plugin/api/vendor/regions/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/regions/[id]/route");+ regions: typeof import("@mercurjs/core/api/vendor/regions/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/regions/[id]/route");};- returnReasons: typeof import("@mercurjs/core-plugin/api/vendor/return-reasons/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/return-reasons/[id]/route");+ returnReasons: typeof import("@mercurjs/core/api/vendor/return-reasons/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/return-reasons/[id]/route");};- returns: typeof import("@mercurjs/core-plugin/api/vendor/returns/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/route") & {- cancel: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/cancel/route");- dismissItems: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/dismiss-items/route") & {- $actionId: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/dismiss-items/[action_id]/route");+ returns: typeof import("@mercurjs/core/api/vendor/returns/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/returns/[id]/route") & {+ cancel: typeof import("@mercurjs/core/api/vendor/returns/[id]/cancel/route");+ dismissItems: typeof import("@mercurjs/core/api/vendor/returns/[id]/dismiss-items/route") & {+ $actionId: typeof import("@mercurjs/core/api/vendor/returns/[id]/dismiss-items/[action_id]/route");};- receive: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/receive/route") & {- confirm: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/receive/confirm/route");+ receive: typeof import("@mercurjs/core/api/vendor/returns/[id]/receive/route") & {+ confirm: typeof import("@mercurjs/core/api/vendor/returns/[id]/receive/confirm/route");};- receiveItems: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/receive-items/route") & {- $actionId: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/receive-items/[action_id]/route");+ receiveItems: typeof import("@mercurjs/core/api/vendor/returns/[id]/receive-items/route") & {+ $actionId: typeof import("@mercurjs/core/api/vendor/returns/[id]/receive-items/[action_id]/route");};- request: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/request/route");- requestItems: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/request-items/route") & {- $actionId: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/request-items/[action_id]/route");+ request: typeof import("@mercurjs/core/api/vendor/returns/[id]/request/route");+ requestItems: typeof import("@mercurjs/core/api/vendor/returns/[id]/request-items/route") & {+ $actionId: typeof import("@mercurjs/core/api/vendor/returns/[id]/request-items/[action_id]/route");};- shippingMethod: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/shipping-method/route") & {- $actionId: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/shipping-method/[action_id]/route");+ shippingMethod: typeof import("@mercurjs/core/api/vendor/returns/[id]/shipping-method/route") & {+ $actionId: typeof import("@mercurjs/core/api/vendor/returns/[id]/shipping-method/[action_id]/route");};};};- salesChannels: typeof import("@mercurjs/core-plugin/api/vendor/sales-channels/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/sales-channels/[id]/route") & {- products: typeof import("@mercurjs/core-plugin/api/vendor/sales-channels/[id]/products/route");+ salesChannels: typeof import("@mercurjs/core/api/vendor/sales-channels/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/sales-channels/[id]/route") & {+ products: typeof import("@mercurjs/core/api/vendor/sales-channels/[id]/products/route");};};- sellers: typeof import("@mercurjs/core-plugin/api/vendor/sellers/route") & {- me: typeof import("@mercurjs/core-plugin/api/vendor/sellers/me/route");+ sellers: typeof import("@mercurjs/core/api/vendor/sellers/route") & {+ me: typeof import("@mercurjs/core/api/vendor/sellers/me/route");};- shippingOptionTypes: typeof import("@mercurjs/core-plugin/api/vendor/shipping-option-types/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/shipping-option-types/[id]/route");+ shippingOptionTypes: typeof import("@mercurjs/core/api/vendor/shipping-option-types/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/shipping-option-types/[id]/route");};- shippingOptions: typeof import("@mercurjs/core-plugin/api/vendor/shipping-options/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/shipping-options/[id]/route") & {+ shippingOptions: typeof import("@mercurjs/core/api/vendor/shipping-options/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/shipping-options/[id]/route") & {rules: {- batch: typeof import("@mercurjs/core-plugin/api/vendor/shipping-options/[id]/rules/batch/route");+ batch: typeof import("@mercurjs/core/api/vendor/shipping-options/[id]/rules/batch/route");};};};- shippingProfiles: typeof import("@mercurjs/core-plugin/api/vendor/shipping-profiles/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/shipping-profiles/[id]/route");+ shippingProfiles: typeof import("@mercurjs/core/api/vendor/shipping-profiles/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/shipping-profiles/[id]/route");};- stockLocations: typeof import("@mercurjs/core-plugin/api/vendor/stock-locations/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/stock-locations/[id]/route") & {- fulfillmentProviders: typeof import("@mercurjs/core-plugin/api/vendor/stock-locations/[id]/fulfillment-providers/route");- fulfillmentSets: typeof import("@mercurjs/core-plugin/api/vendor/stock-locations/[id]/fulfillment-sets/route");- salesChannels: typeof import("@mercurjs/core-plugin/api/vendor/stock-locations/[id]/sales-channels/route");+ stockLocations: typeof import("@mercurjs/core/api/vendor/stock-locations/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/stock-locations/[id]/route") & {+ fulfillmentProviders: typeof import("@mercurjs/core/api/vendor/stock-locations/[id]/fulfillment-providers/route");+ fulfillmentSets: typeof import("@mercurjs/core/api/vendor/stock-locations/[id]/fulfillment-sets/route");+ salesChannels: typeof import("@mercurjs/core/api/vendor/stock-locations/[id]/sales-channels/route");};};- uploads: typeof import("@mercurjs/core-plugin/api/vendor/uploads/route");+ uploads: typeof import("@mercurjs/core/api/vendor/uploads/route");};};diff --git a/AGENTS.md b/AGENTS.mdindex bc9fed765..896f4681f 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -19,7 +19,7 @@ mercur/├── packages/admin/ # Admin dashboard UI├── packages/cli/ # @mercurjs/cli — scaffolding, blocks, codegen├── packages/client/ # @mercurjs/client — typed API client-├── packages/core-plugin/ # @mercurjs/core-plugin — core Medusa plugin+├── packages/core/ # @mercurjs/core — core Medusa plugin├── packages/dashboard-sdk/ # Vite plugin for dashboard apps├── packages/registry/ # Official block registry├── packages/types/ # @mercurjs/types — shared type definitionsdiff --git a/CLAUDE.md b/CLAUDE.mdindex 3f44a99c9..acd7d9d92 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -12,7 +12,7 @@ mercur/│ ├── admin/ # Admin dashboard UI│ ├── cli/ # @mercurjs/cli - CLI tool│ ├── client/ # @mercurjs/client - API client-│ ├── core-plugin/ # @mercurjs/core-plugin - Core Medusa plugin (modules, workflows, providers)+│ ├── core/ # @mercurjs/core - Core Medusa plugin (modules, workflows, providers)│ ├── dashboard-sdk/ # @mercurjs/dashboard-sdk - Vite plugin for dashboards│ ├── dashboard-shared/ # Shared UI components for admin and vendor dashboards│ ├── registry/ # Official block registry@@ -162,7 +162,7 @@ export default {React-based vendor portal UI framework.-## Core Package (`packages/core-plugin`)+## Core Package (`packages/core`)MedusaJS v2 plugin providing marketplace functionality.diff --git a/RELEASING.md b/RELEASING.mdindex fb69b6454..e3160b601 100644--- a/RELEASING.md+++ b/RELEASING.md@@ -12,7 +12,7 @@ All packages are published under the `@mercurjs` scope on npm.- `@mercurjs/types`- `@mercurjs/dashboard-sdk`- `@mercurjs/dashboard-shared`-- `@mercurjs/core-plugin`+- `@mercurjs/core`- `@mercurjs/vendor`- `@mercurjs/payout-stripe-connect`diff --git a/apps/api/.mercur/_generated/index.ts b/apps/api/.mercur/index.d.tssimilarity index 73%rename from apps/api/.mercur/_generated/index.tsrename to apps/api/.mercur/index.d.tsindex c80930790..79fd7f5be 100644--- a/apps/api/.mercur/_generated/index.ts+++ b/apps/api/.mercur/index.d.ts@@ -142,7 +142,7 @@ export type Routes = {$id: typeof import("@medusajs/medusa/api/admin/invites/[id]/route") & {resend: typeof import("@medusajs/medusa/api/admin/invites/[id]/resend/route");};- accept: typeof import("@mercurjs/core-plugin/api/admin/invites/accept/route");+ accept: typeof import("@mercurjs/core/api/admin/invites/accept/route");};locales: typeof import("@medusajs/medusa/api/admin/locales/route") & {$code: typeof import("@medusajs/medusa/api/admin/locales/[code]/route");@@ -168,7 +168,7 @@ export type Routes = {};};};- orders: typeof import("@mercurjs/core-plugin/api/admin/orders/route") & {+ orders: typeof import("@mercurjs/core/api/admin/orders/route") & {$id: typeof import("@medusajs/medusa/api/admin/orders/[id]/route") & {archive: typeof import("@medusajs/medusa/api/admin/orders/[id]/archive/route");cancel: typeof import("@medusajs/medusa/api/admin/orders/[id]/cancel/route");@@ -227,7 +227,7 @@ export type Routes = {$id: typeof import("@medusajs/medusa/api/admin/product-types/[id]/route");};productVariants: typeof import("@medusajs/medusa/api/admin/product-variants/route");- products: typeof import("@mercurjs/core-plugin/api/admin/products/route") & {+ products: typeof import("@mercurjs/core/api/admin/products/route") & {$id: typeof import("@medusajs/medusa/api/admin/products/[id]/route") & {images: {$imageId: {@@ -414,20 +414,20 @@ export type Routes = {subscribe: typeof import("@medusajs/medusa/api/admin/workflows-executions/[workflow_id]/subscribe/route");};};- commissionRates: typeof import("@mercurjs/core-plugin/api/admin/commission-rates/route") & {- $id: typeof import("@mercurjs/core-plugin/api/admin/commission-rates/[id]/route") & {- rules: typeof import("@mercurjs/core-plugin/api/admin/commission-rates/[id]/rules/route");+ commissionRates: typeof import("@mercurjs/core/api/admin/commission-rates/route") & {+ $id: typeof import("@mercurjs/core/api/admin/commission-rates/[id]/route") & {+ rules: typeof import("@mercurjs/core/api/admin/commission-rates/[id]/rules/route");};};- orderGroups: typeof import("@mercurjs/core-plugin/api/admin/order-groups/route") & {- $id: typeof import("@mercurjs/core-plugin/api/admin/order-groups/[id]/route");+ orderGroups: typeof import("@mercurjs/core/api/admin/order-groups/route") & {+ $id: typeof import("@mercurjs/core/api/admin/order-groups/[id]/route");};- payouts: typeof import("@mercurjs/core-plugin/api/admin/payouts/route") & {- $id: typeof import("@mercurjs/core-plugin/api/admin/payouts/[id]/route");+ payouts: typeof import("@mercurjs/core/api/admin/payouts/route") & {+ $id: typeof import("@mercurjs/core/api/admin/payouts/[id]/route");};- sellers: typeof import("@mercurjs/core-plugin/api/admin/sellers/route") & {- invite: typeof import("@mercurjs/core-plugin/api/admin/sellers/invite/route");- $id: typeof import("@mercurjs/core-plugin/api/admin/sellers/[id]/route");+ sellers: typeof import("@mercurjs/core/api/admin/sellers/route") & {+ invite: typeof import("@mercurjs/core/api/admin/sellers/invite/route");+ $id: typeof import("@mercurjs/core/api/admin/sellers/[id]/route");};custom: typeof import("../../src/api/admin/custom/route");};@@ -448,13 +448,13 @@ export type Routes = {store: {carts: typeof import("@medusajs/medusa/api/store/carts/route") & {$id: typeof import("@medusajs/medusa/api/store/carts/[id]/route") & {- complete: typeof import("@mercurjs/core-plugin/api/store/carts/[id]/complete/route");+ complete: typeof import("@mercurjs/core/api/store/carts/[id]/complete/route");customer: typeof import("@medusajs/medusa/api/store/carts/[id]/customer/route");lineItems: typeof import("@medusajs/medusa/api/store/carts/[id]/line-items/route") & {$lineId: typeof import("@medusajs/medusa/api/store/carts/[id]/line-items/[line_id]/route");};- promotions: typeof import("@mercurjs/core-plugin/api/store/carts/[id]/promotions/route");- shippingMethods: typeof import("@mercurjs/core-plugin/api/store/carts/[id]/shipping-methods/route");+ promotions: typeof import("@mercurjs/core/api/store/carts/[id]/promotions/route");+ shippingMethods: typeof import("@mercurjs/core/api/store/carts/[id]/shipping-methods/route");taxes: typeof import("@medusajs/medusa/api/store/carts/[id]/taxes/route");};};@@ -510,190 +510,190 @@ export type Routes = {$id: typeof import("@medusajs/medusa/api/store/return-reasons/[id]/route");};returns: typeof import("@medusajs/medusa/api/store/returns/route");- shippingOptions: typeof import("@mercurjs/core-plugin/api/store/shipping-options/route") & {+ shippingOptions: typeof import("@mercurjs/core/api/store/shipping-options/route") & {$id: {calculate: typeof import("@medusajs/medusa/api/store/shipping-options/[id]/calculate/route");};};- orderGroups: typeof import("@mercurjs/core-plugin/api/store/order-groups/route") & {- $id: typeof import("@mercurjs/core-plugin/api/store/order-groups/[id]/route");+ orderGroups: typeof import("@mercurjs/core/api/store/order-groups/route") & {+ $id: typeof import("@mercurjs/core/api/store/order-groups/[id]/route");};- sellers: typeof import("@mercurjs/core-plugin/api/store/sellers/route") & {- $id: typeof import("@mercurjs/core-plugin/api/store/sellers/[id]/route");+ sellers: typeof import("@mercurjs/core/api/store/sellers/route") & {+ $id: typeof import("@mercurjs/core/api/store/sellers/[id]/route");};custom: typeof import("../../src/api/store/custom/route");};vendor: {- campaigns: typeof import("@mercurjs/core-plugin/api/vendor/campaigns/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/campaigns/[id]/route") & {- promotions: typeof import("@mercurjs/core-plugin/api/vendor/campaigns/[id]/promotions/route");+ campaigns: typeof import("@mercurjs/core/api/vendor/campaigns/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/campaigns/[id]/route") & {+ promotions: typeof import("@mercurjs/core/api/vendor/campaigns/[id]/promotions/route");};};- collections: typeof import("@mercurjs/core-plugin/api/vendor/collections/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/collections/[id]/route") & {- products: typeof import("@mercurjs/core-plugin/api/vendor/collections/[id]/products/route");+ collections: typeof import("@mercurjs/core/api/vendor/collections/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/collections/[id]/route") & {+ products: typeof import("@mercurjs/core/api/vendor/collections/[id]/products/route");};};- currencies: typeof import("@mercurjs/core-plugin/api/vendor/currencies/route") & {- $code: typeof import("@mercurjs/core-plugin/api/vendor/currencies/[code]/route");+ currencies: typeof import("@mercurjs/core/api/vendor/currencies/route") & {+ $code: typeof import("@mercurjs/core/api/vendor/currencies/[code]/route");};- customers: typeof import("@mercurjs/core-plugin/api/vendor/customers/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/customers/[id]/route");+ customers: typeof import("@mercurjs/core/api/vendor/customers/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/customers/[id]/route");};fulfillmentSets: {- $id: typeof import("@mercurjs/core-plugin/api/vendor/fulfillment-sets/[id]/route") & {- serviceZones: typeof import("@mercurjs/core-plugin/api/vendor/fulfillment-sets/[id]/service-zones/route") & {- $zoneId: typeof import("@mercurjs/core-plugin/api/vendor/fulfillment-sets/[id]/service-zones/[zone_id]/route");+ $id: typeof import("@mercurjs/core/api/vendor/fulfillment-sets/[id]/route") & {+ serviceZones: typeof import("@mercurjs/core/api/vendor/fulfillment-sets/[id]/service-zones/route") & {+ $zoneId: typeof import("@mercurjs/core/api/vendor/fulfillment-sets/[id]/service-zones/[zone_id]/route");};};};- inventoryItems: typeof import("@mercurjs/core-plugin/api/vendor/inventory-items/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/inventory-items/[id]/route") & {- locationLevels: typeof import("@mercurjs/core-plugin/api/vendor/inventory-items/[id]/location-levels/route") & {- $locationId: typeof import("@mercurjs/core-plugin/api/vendor/inventory-items/[id]/location-levels/[location_id]/route");- batch: typeof import("@mercurjs/core-plugin/api/vendor/inventory-items/[id]/location-levels/batch/route");+ inventoryItems: typeof import("@mercurjs/core/api/vendor/inventory-items/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/inventory-items/[id]/route") & {+ locationLevels: typeof import("@mercurjs/core/api/vendor/inventory-items/[id]/location-levels/route") & {+ $locationId: typeof import("@mercurjs/core/api/vendor/inventory-items/[id]/location-levels/[location_id]/route");+ batch: typeof import("@mercurjs/core/api/vendor/inventory-items/[id]/location-levels/batch/route");};};};- orders: typeof import("@mercurjs/core-plugin/api/vendor/orders/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/route") & {- cancel: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/cancel/route");- changes: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/changes/route");- complete: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/complete/route");- fulfillments: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/fulfillments/route") & {+ orders: typeof import("@mercurjs/core/api/vendor/orders/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/orders/[id]/route") & {+ cancel: typeof import("@mercurjs/core/api/vendor/orders/[id]/cancel/route");+ changes: typeof import("@mercurjs/core/api/vendor/orders/[id]/changes/route");+ complete: typeof import("@mercurjs/core/api/vendor/orders/[id]/complete/route");+ fulfillments: typeof import("@mercurjs/core/api/vendor/orders/[id]/fulfillments/route") & {$fulfillmentId: {- cancel: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/cancel/route");- markAsDelivered: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/mark-as-delivered/route");- shipments: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/shipments/route");+ cancel: typeof import("@mercurjs/core/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/cancel/route");+ markAsDelivered: typeof import("@mercurjs/core/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/mark-as-delivered/route");+ shipments: typeof import("@mercurjs/core/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/shipments/route");};};- preview: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/preview/route");+ preview: typeof import("@mercurjs/core/api/vendor/orders/[id]/preview/route");};};- payments: typeof import("@mercurjs/core-plugin/api/vendor/payments/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/payments/[id]/route") & {- capture: typeof import("@mercurjs/core-plugin/api/vendor/payments/[id]/capture/route");- refund: typeof import("@mercurjs/core-plugin/api/vendor/payments/[id]/refund/route");+ payments: typeof import("@mercurjs/core/api/vendor/payments/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/payments/[id]/route") & {+ capture: typeof import("@mercurjs/core/api/vendor/payments/[id]/capture/route");+ refund: typeof import("@mercurjs/core/api/vendor/payments/[id]/refund/route");};- paymentProviders: typeof import("@mercurjs/core-plugin/api/vendor/payments/payment-providers/route");+ paymentProviders: typeof import("@mercurjs/core/api/vendor/payments/payment-providers/route");};- payoutAccounts: typeof import("@mercurjs/core-plugin/api/vendor/payout-accounts/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/payout-accounts/[id]/route") & {- onboarding: typeof import("@mercurjs/core-plugin/api/vendor/payout-accounts/[id]/onboarding/route");+ payoutAccounts: typeof import("@mercurjs/core/api/vendor/payout-accounts/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/payout-accounts/[id]/route") & {+ onboarding: typeof import("@mercurjs/core/api/vendor/payout-accounts/[id]/onboarding/route");};};- payouts: typeof import("@mercurjs/core-plugin/api/vendor/payouts/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/payouts/[id]/route");+ payouts: typeof import("@mercurjs/core/api/vendor/payouts/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/payouts/[id]/route");};- priceLists: typeof import("@mercurjs/core-plugin/api/vendor/price-lists/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/price-lists/[id]/route") & {- products: typeof import("@mercurjs/core-plugin/api/vendor/price-lists/[id]/products/route");+ priceLists: typeof import("@mercurjs/core/api/vendor/price-lists/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/price-lists/[id]/route") & {+ products: typeof import("@mercurjs/core/api/vendor/price-lists/[id]/products/route");};};- pricePreferences: typeof import("@mercurjs/core-plugin/api/vendor/price-preferences/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/price-preferences/[id]/route");+ pricePreferences: typeof import("@mercurjs/core/api/vendor/price-preferences/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/price-preferences/[id]/route");};- productCategories: typeof import("@mercurjs/core-plugin/api/vendor/product-categories/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/product-categories/[id]/route") & {- products: typeof import("@mercurjs/core-plugin/api/vendor/product-categories/[id]/products/route");+ productCategories: typeof import("@mercurjs/core/api/vendor/product-categories/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/product-categories/[id]/route") & {+ products: typeof import("@mercurjs/core/api/vendor/product-categories/[id]/products/route");};};- productTags: typeof import("@mercurjs/core-plugin/api/vendor/product-tags/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/product-tags/[id]/route");+ productTags: typeof import("@mercurjs/core/api/vendor/product-tags/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/product-tags/[id]/route");};- productTypes: typeof import("@mercurjs/core-plugin/api/vendor/product-types/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/product-types/[id]/route");+ productTypes: typeof import("@mercurjs/core/api/vendor/product-types/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/product-types/[id]/route");};- products: typeof import("@mercurjs/core-plugin/api/vendor/products/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/products/[id]/route") & {- options: typeof import("@mercurjs/core-plugin/api/vendor/products/[id]/options/route") & {- $optionId: typeof import("@mercurjs/core-plugin/api/vendor/products/[id]/options/[option_id]/route");+ products: typeof import("@mercurjs/core/api/vendor/products/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/products/[id]/route") & {+ options: typeof import("@mercurjs/core/api/vendor/products/[id]/options/route") & {+ $optionId: typeof import("@mercurjs/core/api/vendor/products/[id]/options/[option_id]/route");};- variants: typeof import("@mercurjs/core-plugin/api/vendor/products/[id]/variants/route") & {- $variantId: typeof import("@mercurjs/core-plugin/api/vendor/products/[id]/variants/[variant_id]/route");+ variants: typeof import("@mercurjs/core/api/vendor/products/[id]/variants/route") & {+ $variantId: typeof import("@mercurjs/core/api/vendor/products/[id]/variants/[variant_id]/route");};};};- promotions: typeof import("@mercurjs/core-plugin/api/vendor/promotions/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/promotions/[id]/route") & {- $ruleType: typeof import("@mercurjs/core-plugin/api/vendor/promotions/[id]/[rule_type]/route");+ promotions: typeof import("@mercurjs/core/api/vendor/promotions/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/promotions/[id]/route") & {+ $ruleType: typeof import("@mercurjs/core/api/vendor/promotions/[id]/[rule_type]/route");buyRules: {- batch: typeof import("@mercurjs/core-plugin/api/vendor/promotions/[id]/buy-rules/batch/route");+ batch: typeof import("@mercurjs/core/api/vendor/promotions/[id]/buy-rules/batch/route");};rules: {- batch: typeof import("@mercurjs/core-plugin/api/vendor/promotions/[id]/rules/batch/route");+ batch: typeof import("@mercurjs/core/api/vendor/promotions/[id]/rules/batch/route");};targetRules: {- batch: typeof import("@mercurjs/core-plugin/api/vendor/promotions/[id]/target-rules/batch/route");+ batch: typeof import("@mercurjs/core/api/vendor/promotions/[id]/target-rules/batch/route");};};ruleAttributeOptions: {- $ruleType: typeof import("@mercurjs/core-plugin/api/vendor/promotions/rule-attribute-options/[rule_type]/route");+ $ruleType: typeof import("@mercurjs/core/api/vendor/promotions/rule-attribute-options/[rule_type]/route");};ruleValueOptions: {$ruleType: {- $ruleAttributeId: typeof import("@mercurjs/core-plugin/api/vendor/promotions/rule-value-options/[rule_type]/[rule_attribute_id]/route");+ $ruleAttributeId: typeof import("@mercurjs/core/api/vendor/promotions/rule-value-options/[rule_type]/[rule_attribute_id]/route");};};};- refundReasons: typeof import("@mercurjs/core-plugin/api/vendor/refund-reasons/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/refund-reasons/[id]/route");+ refundReasons: typeof import("@mercurjs/core/api/vendor/refund-reasons/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/refund-reasons/[id]/route");};- regions: typeof import("@mercurjs/core-plugin/api/vendor/regions/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/regions/[id]/route");+ regions: typeof import("@mercurjs/core/api/vendor/regions/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/regions/[id]/route");};- returnReasons: typeof import("@mercurjs/core-plugin/api/vendor/return-reasons/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/return-reasons/[id]/route");+ returnReasons: typeof import("@mercurjs/core/api/vendor/return-reasons/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/return-reasons/[id]/route");};- returns: typeof import("@mercurjs/core-plugin/api/vendor/returns/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/route") & {- cancel: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/cancel/route");- dismissItems: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/dismiss-items/route") & {- $actionId: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/dismiss-items/[action_id]/route");+ returns: typeof import("@mercurjs/core/api/vendor/returns/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/returns/[id]/route") & {+ cancel: typeof import("@mercurjs/core/api/vendor/returns/[id]/cancel/route");+ dismissItems: typeof import("@mercurjs/core/api/vendor/returns/[id]/dismiss-items/route") & {+ $actionId: typeof import("@mercurjs/core/api/vendor/returns/[id]/dismiss-items/[action_id]/route");};- receive: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/receive/route") & {- confirm: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/receive/confirm/route");+ receive: typeof import("@mercurjs/core/api/vendor/returns/[id]/receive/route") & {+ confirm: typeof import("@mercurjs/core/api/vendor/returns/[id]/receive/confirm/route");};- receiveItems: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/receive-items/route") & {- $actionId: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/receive-items/[action_id]/route");+ receiveItems: typeof import("@mercurjs/core/api/vendor/returns/[id]/receive-items/route") & {+ $actionId: typeof import("@mercurjs/core/api/vendor/returns/[id]/receive-items/[action_id]/route");};- request: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/request/route");- requestItems: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/request-items/route") & {- $actionId: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/request-items/[action_id]/route");+ request: typeof import("@mercurjs/core/api/vendor/returns/[id]/request/route");+ requestItems: typeof import("@mercurjs/core/api/vendor/returns/[id]/request-items/route") & {+ $actionId: typeof import("@mercurjs/core/api/vendor/returns/[id]/request-items/[action_id]/route");};- shippingMethod: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/shipping-method/route") & {- $actionId: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/shipping-method/[action_id]/route");+ shippingMethod: typeof import("@mercurjs/core/api/vendor/returns/[id]/shipping-method/route") & {+ $actionId: typeof import("@mercurjs/core/api/vendor/returns/[id]/shipping-method/[action_id]/route");};};};- salesChannels: typeof import("@mercurjs/core-plugin/api/vendor/sales-channels/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/sales-channels/[id]/route") & {- products: typeof import("@mercurjs/core-plugin/api/vendor/sales-channels/[id]/products/route");+ salesChannels: typeof import("@mercurjs/core/api/vendor/sales-channels/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/sales-channels/[id]/route") & {+ products: typeof import("@mercurjs/core/api/vendor/sales-channels/[id]/products/route");};};- sellers: typeof import("@mercurjs/core-plugin/api/vendor/sellers/route") & {- me: typeof import("@mercurjs/core-plugin/api/vendor/sellers/me/route");+ sellers: typeof import("@mercurjs/core/api/vendor/sellers/route") & {+ me: typeof import("@mercurjs/core/api/vendor/sellers/me/route");};- shippingOptionTypes: typeof import("@mercurjs/core-plugin/api/vendor/shipping-option-types/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/shipping-option-types/[id]/route");+ shippingOptionTypes: typeof import("@mercurjs/core/api/vendor/shipping-option-types/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/shipping-option-types/[id]/route");};- shippingOptions: typeof import("@mercurjs/core-plugin/api/vendor/shipping-options/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/shipping-options/[id]/route") & {+ shippingOptions: typeof import("@mercurjs/core/api/vendor/shipping-options/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/shipping-options/[id]/route") & {rules: {- batch: typeof import("@mercurjs/core-plugin/api/vendor/shipping-options/[id]/rules/batch/route");+ batch: typeof import("@mercurjs/core/api/vendor/shipping-options/[id]/rules/batch/route");};};};- shippingProfiles: typeof import("@mercurjs/core-plugin/api/vendor/shipping-profiles/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/shipping-profiles/[id]/route");+ shippingProfiles: typeof import("@mercurjs/core/api/vendor/shipping-profiles/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/shipping-profiles/[id]/route");};- stockLocations: typeof import("@mercurjs/core-plugin/api/vendor/stock-locations/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/stock-locations/[id]/route") & {- fulfillmentProviders: typeof import("@mercurjs/core-plugin/api/vendor/stock-locations/[id]/fulfillment-providers/route");- fulfillmentSets: typeof import("@mercurjs/core-plugin/api/vendor/stock-locations/[id]/fulfillment-sets/route");- salesChannels: typeof import("@mercurjs/core-plugin/api/vendor/stock-locations/[id]/sales-channels/route");+ stockLocations: typeof import("@mercurjs/core/api/vendor/stock-locations/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/stock-locations/[id]/route") & {+ fulfillmentProviders: typeof import("@mercurjs/core/api/vendor/stock-locations/[id]/fulfillment-providers/route");+ fulfillmentSets: typeof import("@mercurjs/core/api/vendor/stock-locations/[id]/fulfillment-sets/route");+ salesChannels: typeof import("@mercurjs/core/api/vendor/stock-locations/[id]/sales-channels/route");};};- uploads: typeof import("@mercurjs/core-plugin/api/vendor/uploads/route");+ uploads: typeof import("@mercurjs/core/api/vendor/uploads/route");};};diff --git a/apps/api/medusa-config.ts b/apps/api/medusa-config.tsindex 489053af0..a1f86fda0 100644--- a/apps/api/medusa-config.ts+++ b/apps/api/medusa-config.ts@@ -1,14 +1,14 @@-import { loadEnv, defineConfig } from '@medusajs/framework/utils'+import { loadEnv } from '@medusajs/framework/utils'+import { withMercur } from '@mercurjs/core'loadEnv(process.env.NODE_ENV || 'development', process.cwd())-module.exports = defineConfig({+module.exports = withMercur({projectConfig: {databaseUrl: process.env.DATABASE_URL,http: {storeCors: process.env.STORE_CORS!,adminCors: process.env.ADMIN_CORS!,- // @ts-expect-error: vendorCors is not defined in medusa config modulevendorCors: process.env.VENDOR_CORS!,authCors: process.env.AUTH_CORS!,jwtSecret: process.env.JWT_SECRET || "supersecret",@@ -16,15 +16,11 @@ module.exports = defineConfig({}},featureFlags: {- rbac: true,seller_registration: true},modules: [{- resolve: "@medusajs/medusa/rbac",- },- {- resolve: '@mercurjs/core-plugin/modules/admin-ui',+ resolve: '@mercurjs/core/modules/admin-ui',options: {appDir: '',path: '/dashboard',@@ -32,7 +28,7 @@ module.exports = defineConfig({}},{- resolve: '@mercurjs/core-plugin/modules/vendor-ui',+ resolve: '@mercurjs/core/modules/vendor-ui',options: {appDir: '',path: '/seller',@@ -40,10 +36,4 @@ module.exports = defineConfig({}},],- plugins: [- {- resolve: "@mercurjs/core-plugin",- options: {}- }- ]})diff --git a/apps/api/package.json b/apps/api/package.jsonindex b0f4ca6fa..b8c886b54 100644--- a/apps/api/package.json+++ b/apps/api/package.json@@ -6,7 +6,7 @@"license": "MIT","exports": {"./_generated": {- "types": "./.mercur/_generated/index.ts"+ "types": "./.mercur/index.d.ts"}},"keywords": [@@ -19,8 +19,8 @@],"scripts": {"seed": "medusa exec ./src/scripts/seed.ts",- "start": "medusa start",- "dev": "medusa develop",+ "start": "mercurjs start",+ "dev": "mercurjs develop","test:integration:http": "TEST_TYPE=integration:http NODE_OPTIONS=--experimental-vm-modules jest --silent=false --runInBand --forceExit","test:integration:modules": "TEST_TYPE=integration:modules NODE_OPTIONS=--experimental-vm-modules jest --silent=false --runInBand --forceExit","test:unit": "TEST_TYPE=unit NODE_OPTIONS=--experimental-vm-modules jest --silent --runInBand --forceExit"@@ -33,7 +33,7 @@"@medusajs/admin-shared": "^2.13.4","@medusajs/medusa": "^2.13.4","@medusajs/draft-order": "2.13.4",- "@mercurjs/core-plugin": "*",+ "@mercurjs/core": "*","@mercurjs/types": "*","http-proxy-middleware": "^3.0.3","@mercurjs/cli": "*"diff --git a/apps/api/src/scripts/seed.ts b/apps/api/src/scripts/seed.tsindex 9c50c6e1e..a94e30b79 100644--- a/apps/api/src/scripts/seed.ts+++ b/apps/api/src/scripts/seed.ts@@ -31,7 +31,7 @@ import {} from "@medusajs/medusa/core-flows";import { ApiKey } from "../../.medusa/types/query-entry-points";import { MercurModules } from "@mercurjs/types";-import { createSellerDefaultsWorkflow } from '@mercurjs/core-plugin/workflows'+import { createSellerDefaultsWorkflow } from '@mercurjs/core/workflows'const updateStoreCurrencies = createWorkflow("update-store-currencies",diff --git a/apps/docs/v2/developer-guide/custom-fields.mdx b/apps/docs/v2/developer-guide/custom-fields.mdxindex b63da0a6d..77f4cd0a8 100644--- a/apps/docs/v2/developer-guide/custom-fields.mdx+++ b/apps/docs/v2/developer-guide/custom-fields.mdx@@ -20,7 +20,7 @@ module.exports = defineConfig({// ...modules: [{- resolve: "@mercurjs/core-plugin/modules/custom-fields",+ resolve: "@mercurjs/core/modules/custom-fields",options: {customFields: {Product: {@@ -117,7 +117,7 @@ The module ships with two workflow steps you can compose into your own workflowsimport {upsertCustomFieldsStep,deleteCustomFieldsStep,-} from "@mercurjs/core-plugin/workflows";+} from "@mercurjs/core/workflows";```- **`upsertCustomFieldsStep`** — Takes `{ alias, data }` where `alias` is the entity name (e.g. `"product"`) and `data` contains the entity ID and field values.diff --git a/apps/docs/v2/developer-guide/overview.mdx b/apps/docs/v2/developer-guide/overview.mdxindex 286c7a6e9..05e236446 100644--- a/apps/docs/v2/developer-guide/overview.mdx+++ b/apps/docs/v2/developer-guide/overview.mdx@@ -90,10 +90,10 @@ Three interfaces consume the APIs:## Core plugin-The core plugin (`@mercurjs/core-plugin`) is the main package that contains all marketplace logic. It's structured as a standard MedusaJS plugin:+The core plugin (`@mercurjs/core`) is the main package that contains all marketplace logic. It's structured as a standard MedusaJS plugin:```-core-plugin/src/+core/src/├── modules/ # Data models and services│ ├── seller/ # Seller registration, profiles, order groups│ ├── commission/ # Commission rates, rules, calculationdiff --git a/apps/docs/v2/getting-started/concepts.mdx b/apps/docs/v2/getting-started/concepts.mdxindex 38af68490..fbeb75aa7 100644--- a/apps/docs/v2/getting-started/concepts.mdx+++ b/apps/docs/v2/getting-started/concepts.mdx@@ -33,7 +33,7 @@ Each route is composed of a handler, middleware, query configuration, and valida## Core Plugin-The core plugin (`@mercurjs/core-plugin`) is the main package that contains all of Mercur's marketplace logic — modules, links, workflows, API routes, subscribers, and providers. It is installed as a standard MedusaJS plugin and serves as the foundation that blocks extend.+The core plugin (`@mercurjs/core`) is the main package that contains all of Mercur's marketplace logic — modules, links, workflows, API routes, subscribers, and providers. It is installed as a standard MedusaJS plugin and serves as the foundation that blocks extend.## Modulesdiff --git a/apps/docs/v2/how-to-guides/stripe-connect-integration.mdx b/apps/docs/v2/how-to-guides/stripe-connect-integration.mdxindex 50f61c2b6..a82f6f9a4 100644--- a/apps/docs/v2/how-to-guides/stripe-connect-integration.mdx+++ b/apps/docs/v2/how-to-guides/stripe-connect-integration.mdx@@ -114,7 +114,7 @@ module.exports = defineConfig({modules: [// ... payment provider above{- resolve: "@mercurjs/core-plugin/modules/payout",+ resolve: "@mercurjs/core/modules/payout",options: {providers: [{@@ -318,7 +318,7 @@ Card authorizations in Europe typically last **7 days**. Design your seller acce```ts{- resolve: "@mercurjs/core-plugin/modules/payout",+ resolve: "@mercurjs/core/modules/payout",options: {authorizationWindowMs: 7 * 24 * 60 * 60 * 1000, // 7 dayssellerActionWindowMs: 72 * 60 * 60 * 1000, // 72 hoursdiff --git a/apps/docs/v2/migrations/from-1-x-to-2-0.mdx b/apps/docs/v2/migrations/from-1-x-to-2-0.mdxindex cd5d5c0bf..841135977 100644--- a/apps/docs/v2/migrations/from-1-x-to-2-0.mdx+++ b/apps/docs/v2/migrations/from-1-x-to-2-0.mdx@@ -15,8 +15,8 @@ Start with a working 2.0 project (see [Installation](/v2/getting-started/install| 1.x Package | 2.0 Equivalent ||-------------|----------------|-| `@mercurjs/b2c-core` | `@mercurjs/core-plugin` |-| `@mercurjs/commission` | Built into core-plugin |+| `@mercurjs/b2c-core` | `@mercurjs/core` |+| `@mercurjs/commission` | Built into core || `@mercurjs/algolia` | Block: `mercurjs add algolia` || `@mercurjs/resend` | No 2.0 equivalent — port manually || `@mercurjs/payment-stripe-connect` | No 2.0 equivalent — port manually |@@ -34,7 +34,7 @@ Start with a working 2.0 project (see [Installation](/v2/getting-started/install## What You DON'T Need to Port-Built into core-plugin today:+Built into core today:- `seller`- `payout`@@ -104,7 +104,7 @@ See [Order Groups](/v2/core-concepts/order-groups) for the full 2.0 data model a### Modules-Copy to `packages/api/src/modules/`, register in `medusa-config.ts`. Update imports from `@mercurjs/b2c-core` to `@mercurjs/core-plugin`.+Copy to `packages/api/src/modules/`, register in `medusa-config.ts`. Update imports from `@mercurjs/b2c-core` to `@mercurjs/core`.### Workflows@@ -125,7 +125,7 @@ Run `bunx @mercurjs/cli@latest codegen` after adding routes.### Links and Subscribers-Copy to `packages/api/src/links/` and `src/subscribers/`. Don't duplicate links that core-plugin already provides (seller↔product, seller↔order, etc.).+Copy to `packages/api/src/links/` and `src/subscribers/`. Don't duplicate links that core already provides (seller↔product, seller↔order, etc.).### Custom Providersdiff --git a/apps/docs/v2/migrations/overview.mdx b/apps/docs/v2/migrations/overview.mdxindex 2973c53c3..458a3598f 100644--- a/apps/docs/v2/migrations/overview.mdx+++ b/apps/docs/v2/migrations/overview.mdx@@ -5,7 +5,7 @@ description: Understand what changes between Mercur 1.x and 2.0 and how to migra# Migration Overview-Mercur 2.0 replaces the monolithic plugin architecture (`@mercurjs/b2c-core`) with a block-based model (`@mercurjs/core-plugin` + registry blocks).+Mercur 2.0 replaces the monolithic plugin architecture (`@mercurjs/b2c-core`) with a block-based model (`@mercurjs/core` + registry blocks).This guide is about **porting your existing 1.x code to a 2.0 project**. For setting up a fresh 2.0 project, see [Installation](/v2/getting-started/installation).@@ -17,8 +17,8 @@ If you're using an AI Agent/IDE (Claude Code, Cursor, or similar), your project| 1.x | 2.0 ||-------|--------|-| `@mercurjs/b2c-core` (monolithic) | `@mercurjs/core-plugin` — all core modules built in |-| `@mercurjs/commission` (separate) | Built into core-plugin |+| `@mercurjs/b2c-core` (monolithic) | `@mercurjs/core` — all core modules built in |+| `@mercurjs/commission` (separate) | Built into core || `@mercurjs/algolia`, reviews, requests | Registry blocks (`mercurjs add ...`) || `@medusajs/admin-vite-plugin` | `@mercurjs/dashboard-sdk` (virtual modules) || `@medusajs/js-sdk` (manual hooks) | `@mercurjs/client` (generated typed client) |@@ -38,7 +38,7 @@ If you're using an AI Agent/IDE (Claude Code, Cursor, or similar), your project**Most users don't need to migrate much.** Core-plugin and the official registry blocks cover most standard marketplace functionality. Core-admin/vendor panels provide 34+ pages out of the box.You only need to port:-- **Custom modules** — business-specific modules not covered by core-plugin or blocks+- **Custom modules** — business-specific modules not covered by core or blocks- **Custom workflows and routes** — your own endpoints and business logic- **Custom dashboard pages** — only if you have domain-specific pages not in core-admin/vendordiff --git a/apps/vendor/src/lib/client.ts b/apps/vendor/src/lib/client.tsindex 6116165ca..bc9cd6700 100644--- a/apps/vendor/src/lib/client.ts+++ b/apps/vendor/src/lib/client.ts@@ -1,5 +1,5 @@import { createClient, type InferClient } from "@mercurjs/client"-import type { Routes } from '@mercurjs/core-plugin/_generated'+import type { Routes } from '@mercurjs/core/_generated'declare const __BACKEND_URL__: stringdiff --git a/bun.lock b/bun.lockindex 624389937..725bc84d5 100644--- a/bun.lock+++ b/bun.lock@@ -5,7 +5,7 @@"": {"name": "mercur","dependencies": {- "@mercurjs/core-plugin": "workspace:*",+ "@mercurjs/core": "workspace:*",},"devDependencies": {"@eslint/js": "^9.39.2",@@ -70,7 +70,7 @@"@medusajs/framework": "^2.13.4","@medusajs/medusa": "^2.13.4","@mercurjs/cli": "*",- "@mercurjs/core-plugin": "*",+ "@mercurjs/core": "*","@mercurjs/types": "*","http-proxy-middleware": "^3.0.3",},@@ -135,7 +135,7 @@"@medusajs/draft-order": "^2.13.4","@medusajs/framework": "^2.13.4","@medusajs/medusa": "^2.13.4",- "@mercurjs/core-plugin": "*",+ "@mercurjs/core": "*","jsonwebtoken": "^9.0.2","meilisearch": "^0.47.0","scrypt-kdf": "^2.0.1",@@ -154,7 +154,7 @@},"packages/admin": {"name": "@mercurjs/admin",- "version": "2.0.1",+ "version": "2.0.2","dependencies": {"@ariakit/react": "^0.4.15","@babel/runtime": "^7.26.10",@@ -199,7 +199,7 @@"devDependencies": {"@medusajs/types": "2.13.4","@medusajs/ui-preset": "2.13.4",- "@mercurjs/core-plugin": "workspace:*",+ "@mercurjs/core": "workspace:*","@mercurjs/dashboard-sdk": "workspace:*","@mercurjs/types": "workspace:*","@types/react": "^18.2.66",@@ -214,7 +214,7 @@},"packages/cli": {"name": "@mercurjs/cli",- "version": "2.0.1",+ "version": "2.0.2","bin": {"mercurjs": "./dist/index.js",},@@ -226,11 +226,13 @@"@medusajs/dashboard": "2.13.4","@medusajs/framework": "2.13.4","@mercurjs/dashboard-sdk": "2.0.0-canary.97",+ "@types/cross-spawn": "^6.0.6","@vitejs/plugin-react": "^4.2.1","autoprefixer": "^10.4.19","commander": "^14.0.2","compression": "^1.8.0","cosmiconfig": "^9.0.0",+ "cross-spawn": "^7.0.6","deepmerge": "^4.3.1","diff": "^8.0.2","execa": "^9.6.0",@@ -244,8 +246,10 @@"ora": "^9.0.0","outdent": "^0.8.0","pg": "^8.17.1",+ "pkg-dir": "^9.0.0","postcss": "^8.4.38","prompts": "^2.4.2",+ "resolve-cwd": "^3.0.0","tailwindcss": "^3.4.3","tar": "^7.5.2","terminal-link": "^5.0.0",@@ -269,7 +273,7 @@},"packages/client": {"name": "@mercurjs/client",- "version": "2.0.1",+ "version": "2.0.2","dependencies": {"@tanstack/react-query": "^5.64.2","qs": "^6.12.1",@@ -284,9 +288,9 @@"typescript": ">=4.8.0",},},- "packages/core-plugin": {- "name": "@mercurjs/core-plugin",- "version": "2.0.1",+ "packages/core": {+ "name": "@mercurjs/core",+ "version": "2.0.2","devDependencies": {"@medusajs/cli": "^2.13.4","@medusajs/core-flows": "^2.13.4",@@ -296,7 +300,7 @@"@medusajs/test-utils": "^2.13.4","@medusajs/types": "2.13.4","@medusajs/ui": "4.1.1",- "@mercurjs/cli": "2.0.1",+ "@mercurjs/cli": "2.0.2","@mercurjs/types": "workspace:*","@swc/core": "^1.7.28","@types/cors": "^2.8.17",@@ -330,7 +334,7 @@},"packages/dashboard-sdk": {"name": "@mercurjs/dashboard-sdk",- "version": "2.0.1",+ "version": "2.0.2","dependencies": {"@babel/parser": "7.25.6","@babel/traverse": "7.25.6",@@ -347,7 +351,7 @@},"packages/dashboard-shared": {"name": "@mercurjs/dashboard-shared",- "version": "2.0.1",+ "version": "2.0.2","dependencies": {"@ariakit/react": "^0.4.15","@babel/runtime": "^7.26.10",@@ -389,7 +393,7 @@"zod": "3.25.76",},"devDependencies": {- "@mercurjs/core-plugin": "workspace:*",+ "@mercurjs/core": "workspace:*","@mercurjs/dashboard-sdk": "workspace:*","@mercurjs/types": "workspace:*","@types/lodash.debounce": "^4.0.8",@@ -401,7 +405,7 @@},"packages/providers/payout-stripe-connect": {"name": "@mercurjs/payout-stripe-connect",- "version": "2.0.1",+ "version": "2.0.2","dependencies": {"stripe": "^15.5.0",},@@ -425,7 +429,7 @@"@medusajs/medusa": "^2.13.4","@medusajs/ui": "4.1.1","@mercurjs/client": "workspace:*",- "@mercurjs/core-plugin": "workspace:*",+ "@mercurjs/core": "workspace:*","@mercurjs/dashboard-sdk": "*","@mercurjs/dashboard-shared": "workspace:*","@mercurjs/vendor": "workspace:*",@@ -459,7 +463,7 @@},"packages/types": {"name": "@mercurjs/types",- "version": "2.0.1",+ "version": "2.0.2","dependencies": {"@medusajs/types": "2.13.4",},@@ -469,7 +473,7 @@},"packages/vendor": {"name": "@mercurjs/vendor",- "version": "2.0.1",+ "version": "2.0.2","dependencies": {"@ariakit/react": "^0.4.15","@babel/runtime": "^7.26.10",@@ -514,7 +518,7 @@"devDependencies": {"@medusajs/types": "2.13.4","@medusajs/ui-preset": "2.13.4",- "@mercurjs/core-plugin": "workspace:*",+ "@mercurjs/core": "workspace:*","@mercurjs/dashboard-sdk": "workspace:*","@mercurjs/types": "workspace:*","@types/react": "^18.2.66",@@ -1134,7 +1138,7 @@"@mercurjs/client": ["@mercurjs/client@workspace:packages/client"],- "@mercurjs/core-plugin": ["@mercurjs/core-plugin@workspace:packages/core-plugin"],+ "@mercurjs/core": ["@mercurjs/core@workspace:packages/core"],"@mercurjs/dashboard-sdk": ["@mercurjs/dashboard-sdk@workspace:packages/dashboard-sdk"],@@ -1850,6 +1854,8 @@"@types/cors": ["@types/[email protected]", "", { "dependencies": { "@types/node": "*" } }, "sha512-mFNylyeyqN93lfe/9CSxOGREz8cpzAhH+E93xJ4xWQf62V8sQ/24reV2nyzUWM6H6Xji+GGHpkbLe7pVoUEskg=="],+ "@types/cross-spawn": ["@types/[email protected]", "", { "dependencies": { "@types/node": "*" } }, "sha512-fXRhhUkG4H3TQk5dBhQ7m/JDdSNHKwR2BBia62lhwEIq9xGiQKLxd6LymNhn47SjXhsUEPmxi+PKw2OkW4LLjA=="],+"@types/estree": ["@types/[email protected]", "", {}, "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w=="],"@types/express": ["@types/[email protected]", "", { "dependencies": { "@types/body-parser": "*", "@types/express-serve-static-core": "^4.17.33", "@types/qs": "*", "@types/serve-static": "^1" } }, "sha512-dVd04UKsfpINUnK0yBoYHDF3xu7xVH4BuDotC/xGuycx4CgbP48X/KF/586bcObxT0HENHXEU8Nqtu6NR+eKhw=="],@@ -2442,6 +2448,8 @@"find-up": ["[email protected]", "", { "dependencies": { "locate-path": "^6.0.0", "path-exists": "^4.0.0" } }, "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng=="],+ "find-up-simple": ["[email protected]", "", {}, "sha512-afd4O7zpqHeRyg4PfDQsXmlDe2PfdHtJt6Akt8jOWaApLOZk5JXs6VMR29lz03pRe9mpykrRCYIYxaJYcfpncQ=="],+"fix-dts-default-cjs-exports": ["[email protected]", "", { "dependencies": { "magic-string": "^0.30.17", "mlly": "^1.7.4", "rollup": "^4.34.8" } }, "sha512-pVIECanWFC61Hzl2+oOCtoJ3F17kglZC/6N94eRWycFgBH35hHx0Li604ZIzhseh97mf2p0cv7vVrOZGoqhlEg=="],"flat-cache": ["[email protected]", "", { "dependencies": { "flatted": "^3.2.9", "keyv": "^4.5.4" } }, "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw=="],@@ -3040,7 +3048,7 @@"pirates": ["[email protected]", "", {}, "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA=="],- "pkg-dir": ["[email protected]", "", { "dependencies": { "find-up": "^4.0.0" } }, "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ=="],+ "pkg-dir": ["[email protected]", "", { "dependencies": { "find-up-simple": "^1.0.0" } }, "sha512-BMmxOuokumBehLGYwCKMBJxpAGSBbvGTtDn1yUV9UpCAvC4F7UWHoPTGSDGPV8eQPkYq/G8b0g1W5vIc5K/EhA=="],"pkg-types": ["[email protected]", "", { "dependencies": { "confbox": "^0.1.8", "mlly": "^1.7.4", "pathe": "^2.0.1" } }, "sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ=="],@@ -3676,8 +3684,6 @@"@medusajs/utils/jsonwebtoken": ["[email protected]", "", { "dependencies": { "jws": "^4.0.1", "lodash.includes": "^4.3.0", "lodash.isboolean": "^3.0.3", "lodash.isinteger": "^4.0.4", "lodash.isnumber": "^3.0.3", "lodash.isplainobject": "^4.0.6", "lodash.isstring": "^4.0.1", "lodash.once": "^4.0.0", "ms": "^2.1.1", "semver": "^7.5.4" } }, "sha512-MT/xP0CrubFRNLNKvxJ2BYfy53Zkm++5bX9dtuPbqAeQpTVe0MQTFhao8+Cp//EmJp244xt6Drw/GVEGCUj40g=="],- "@mercurjs/admin/@medusajs/admin-shared": ["@medusajs/[email protected]", "", {}, "sha512-pHfPibjFa8LiUxDUf64hFGXk0Q6jcg/yTpU/b9paOdxHowIUyVoOjubmmplpV8s0YDsacL8UioSFK2Js+vrutQ=="],-"@mercurjs/admin/@mercurjs/client": ["@mercurjs/[email protected]", "", { "dependencies": { "@tanstack/react-query": "^5.64.2", "qs": "^6.12.1" }, "peerDependencies": { "typescript": ">=4.8.0" } }, "sha512-K/cFfsuJas2JC7d4aM5MJuYR9O3fgDP1HaNfj25FmAjWvuHpRpDIQTpOBCYuoURftrKOTPzopNvP7zxwue/IXg=="],"@mercurjs/admin/@mercurjs/dashboard-shared": ["@mercurjs/[email protected]", "", { "dependencies": { "@ariakit/react": "^0.4.15", "@babel/runtime": "^7.26.10", "@dnd-kit/core": "^6.1.0", "@dnd-kit/sortable": "^8.0.0", "@dnd-kit/utilities": "^3.2.2", "@hookform/error-message": "^2.0.1", "@hookform/resolvers": "3.4.2", "@medusajs/admin-shared": "^2.13.3", "@medusajs/dashboard": "^2.13.3", "@medusajs/icons": "2.13.3", "@medusajs/ui": "4.1.1", "@mercurjs/client": "2.0.0-canary.97", "@radix-ui/react-dialog": "1.1.4", "@radix-ui/react-dismissable-layer": "1.1.4", "@tanstack/react-query": "5.64.2", "@tanstack/react-table": "8.20.5", "@tanstack/react-virtual": "^3.8.3", "@uiw/react-json-view": "^2.0.0-alpha.17", "cmdk": "^0.2.0", "copy-to-clipboard": "^3.3.3", "date-fns": "^3.6.0", "i18next": "23.7.11", "i18next-browser-languagedetector": "7.2.0", "i18next-http-backend": "2.4.2", "lodash.debounce": "^4.0.8", "lodash.isequal": "^4.5.0", "match-sorter": "^6.3.4", "motion": "^11.15.0", "qs": "^6.12.1", "radix-ui": "1.1.2", "react-country-flag": "^3.1.0", "react-currency-input-field": "^3.6.11", "react-helmet-async": "^2.0.5", "react-hook-form": "7.49.1", "react-i18next": "13.5.0", "react-jwt": "^1.2.0", "react-router-dom": "6.30.3", "zod": "3.25.76" } }, "sha512-LueWIqtFE/5jcOsApZxuDO8iJs3FAcwo5135Y0xA17QJHzjYSDoZbx+QBiJWQxIu/eobnGxRJxTtC0fPM69uJg=="],@@ -3688,9 +3694,9 @@"@mercurjs/cli/@mercurjs/dashboard-sdk": ["@mercurjs/[email protected]", "", { "dependencies": { "@babel/parser": "7.25.6", "@babel/traverse": "7.25.6", "@babel/types": "7.25.6", "esbuild-register": "^3.6.0" } }, "sha512-Q0W+bOjALdwrwte503rIrEoE0MrMwNe//MtdiGNJAP20jO9VWxTUS0R1bABCT3HHjXP4SDMv3/7C0OcfSVUU2w=="],- "@mercurjs/core-plugin/@types/node": ["@types/[email protected]", "", { "dependencies": { "undici-types": "~6.21.0" } }, "sha512-8kzdPJ3FsNsVIurqBs7oodNnCEVbni9yUEkaHbgptDACOPW04jimGagZ51E6+lXUwJjgnBw+hyko/lkFWCldqw=="],+ "@mercurjs/core/@types/node": ["@types/[email protected]", "", { "dependencies": { "undici-types": "~6.21.0" } }, "sha512-8kzdPJ3FsNsVIurqBs7oodNnCEVbni9yUEkaHbgptDACOPW04jimGagZ51E6+lXUwJjgnBw+hyko/lkFWCldqw=="],- "@mercurjs/core-plugin/jsonwebtoken": ["[email protected]", "", { "dependencies": { "jws": "^4.0.1", "lodash.includes": "^4.3.0", "lodash.isboolean": "^3.0.3", "lodash.isinteger": "^4.0.4", "lodash.isnumber": "^3.0.3", "lodash.isplainobject": "^4.0.6", "lodash.isstring": "^4.0.1", "lodash.once": "^4.0.0", "ms": "^2.1.1", "semver": "^7.5.4" } }, "sha512-MT/xP0CrubFRNLNKvxJ2BYfy53Zkm++5bX9dtuPbqAeQpTVe0MQTFhao8+Cp//EmJp244xt6Drw/GVEGCUj40g=="],+ "@mercurjs/core/jsonwebtoken": ["[email protected]", "", { "dependencies": { "jws": "^4.0.1", "lodash.includes": "^4.3.0", "lodash.isboolean": "^3.0.3", "lodash.isinteger": "^4.0.4", "lodash.isnumber": "^3.0.3", "lodash.isplainobject": "^4.0.6", "lodash.isstring": "^4.0.1", "lodash.once": "^4.0.0", "ms": "^2.1.1", "semver": "^7.5.4" } }, "sha512-MT/xP0CrubFRNLNKvxJ2BYfy53Zkm++5bX9dtuPbqAeQpTVe0MQTFhao8+Cp//EmJp244xt6Drw/GVEGCUj40g=="],"@mercurjs/dashboard-sdk/@types/node": ["@types/[email protected]", "", { "dependencies": { "undici-types": "~6.21.0" } }, "sha512-F0R/h2+dsy5wJAUe3tAU6oqa2qbWY5TpNfL/RGmo1y38hiyO1w3x2jPtt76wmuaJI4DQnOBu21cNXQ2STIUUWg=="],@@ -3974,6 +3980,8 @@"import-fresh/resolve-from": ["[email protected]", "", {}, "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g=="],+ "import-local/pkg-dir": ["[email protected]", "", { "dependencies": { "find-up": "^4.0.0" } }, "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ=="],+"inquirer/ansi-escapes": ["[email protected]", "", { "dependencies": { "type-fest": "^0.21.3" } }, "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ=="],"inquirer/cli-cursor": ["[email protected]", "", { "dependencies": { "restore-cursor": "^3.1.0" } }, "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw=="],@@ -4044,8 +4052,6 @@"pg-god/tslib": ["[email protected]", "", {}, "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg=="],- "pkg-dir/find-up": ["[email protected]", "", { "dependencies": { "locate-path": "^5.0.0", "path-exists": "^4.0.0" } }, "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw=="],-"pretty-format/ansi-styles": ["[email protected]", "", {}, "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA=="],"pretty-format/react-is": ["[email protected]", "", {}, "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg=="],@@ -4212,9 +4218,9 @@"@mercurjs/admin/@mercurjs/dashboard-shared/@medusajs/icons": ["@medusajs/[email protected]", "", { "peerDependencies": { "react": "^18.3.1" } }, "sha512-yL4J5hAl8URgYT/rCj1ndTbw1HMTwu1B1CwUtmcXweQqplOnYP6nUr2LrYTH9BkTNeFdLp0uCT8hE+2jtulZnw=="],- "@mercurjs/core-plugin/@types/node/undici-types": ["[email protected]", "", {}, "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ=="],+ "@mercurjs/core/@types/node/undici-types": ["[email protected]", "", {}, "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ=="],- "@mercurjs/core-plugin/jsonwebtoken/jws": ["[email protected]", "", { "dependencies": { "jwa": "^2.0.1", "safe-buffer": "^5.0.1" } }, "sha512-EKI/M/yqPncGUUh44xz0PxSidXFr/+r0pA70+gIYhjv+et7yxM+s29Y+VGDkovRofQem0fs7Uvf4+YmAdyRduA=="],+ "@mercurjs/core/jsonwebtoken/jws": ["[email protected]", "", { "dependencies": { "jwa": "^2.0.1", "safe-buffer": "^5.0.1" } }, "sha512-EKI/M/yqPncGUUh44xz0PxSidXFr/+r0pA70+gIYhjv+et7yxM+s29Y+VGDkovRofQem0fs7Uvf4+YmAdyRduA=="],"@mercurjs/dashboard-sdk/@types/node/undici-types": ["[email protected]", "", {}, "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ=="],@@ -4372,6 +4378,8 @@"glob/minimatch/brace-expansion": ["[email protected]", "", { "dependencies": { "balanced-match": "^4.0.2" } }, "sha512-h+DEnpVvxmfVefa4jFbCf5HdH5YMDXRsmKflpf1pILZWRFlTbJpxeU55nJl4Smt5HQaGzg1o6RHFPJaOqnmBDg=="],+ "import-local/pkg-dir/find-up": ["[email protected]", "", { "dependencies": { "locate-path": "^5.0.0", "path-exists": "^4.0.0" } }, "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw=="],+"inquirer/ansi-escapes/type-fest": ["[email protected]", "", {}, "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w=="],"inquirer/cli-cursor/restore-cursor": ["[email protected]", "", { "dependencies": { "onetime": "^5.1.0", "signal-exit": "^3.0.2" } }, "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA=="],@@ -4420,8 +4428,6 @@"password-prompt/ansi-escapes/type-fest": ["[email protected]", "", {}, "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w=="],- "pkg-dir/find-up/locate-path": ["[email protected]", "", { "dependencies": { "p-locate": "^4.1.0" } }, "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g=="],-"protobufjs/@types/node/undici-types": ["[email protected]", "", {}, "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ=="],"send/debug/ms": ["[email protected]", "", {}, "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A=="],@@ -4566,7 +4572,7 @@"@mercurjs/admin/@mercurjs/dashboard-shared/@medusajs/dashboard/@medusajs/ui": ["@medusajs/[email protected]", "", { "dependencies": { "@dnd-kit/core": "^6.1.0", "@dnd-kit/sortable": "^8.0.0", "@dnd-kit/utilities": "^3.2.2", "@medusajs/icons": "2.13.3", "@radix-ui/react-dialog": "1.1.4", "@radix-ui/react-dismissable-layer": "1.1.4", "@tanstack/react-table": "8.20.5", "clsx": "^1.2.1", "copy-to-clipboard": "^3.3.3", "cva": "1.0.0-beta.1", "lodash.isequal": "^4.5.0", "prism-react-renderer": "^2.0.6", "prismjs": "^1.30.0", "radix-ui": "1.1.2", "react-aria": "^3.33.1", "react-currency-input-field": "^3.6.11", "react-stately": "^3.31.1", "sonner": "^1.5.0", "tailwind-merge": "^2.2.1" }, "peerDependencies": { "react": "^18.3.1", "react-dom": "^18.3.1" } }, "sha512-mvjPFT6yN3I0YElmuSCnbiFnAZ1X4HpVWU46SXKW5PO9raM6Ny/kGDMB3GG2jPGX1Z18CoWAc5rDss8s0deh/g=="],- "@mercurjs/core-plugin/jsonwebtoken/jws/jwa": ["[email protected]", "", { "dependencies": { "buffer-equal-constant-time": "^1.0.1", "ecdsa-sig-formatter": "1.0.11", "safe-buffer": "^5.0.1" } }, "sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg=="],+ "@mercurjs/core/jsonwebtoken/jws/jwa": ["[email protected]", "", { "dependencies": { "buffer-equal-constant-time": "^1.0.1", "ecdsa-sig-formatter": "1.0.11", "safe-buffer": "^5.0.1" } }, "sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg=="],"@mercurjs/integration-tests/jest/@jest/core/@jest/console": ["@jest/[email protected]", "", { "dependencies": { "@jest/types": "30.3.0", "@types/node": "*", "chalk": "^4.1.2", "jest-message-util": "30.3.0", "jest-util": "30.3.0", "slash": "^3.0.0" } }, "sha512-PAwCvFJ4696XP2qZj+LAn1BWjZaJ6RjG6c7/lkMaUJnkyMS34ucuIsfqYvfskVNvUI27R/u4P1HMYFnlVXG/Ww=="],@@ -4714,12 +4720,12 @@"glob/minimatch/brace-expansion/balanced-match": ["[email protected]", "", {}, "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA=="],+ "import-local/pkg-dir/find-up/locate-path": ["[email protected]", "", { "dependencies": { "p-locate": "^4.1.0" } }, "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g=="],+"inquirer/cli-cursor/restore-cursor/signal-exit": ["[email protected]", "", {}, "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ=="],"jest-cli/yargs/cliui/wrap-ansi": ["[email protected]", "", { "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0" } }, "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q=="],- "pkg-dir/find-up/locate-path/p-locate": ["[email protected]", "", { "dependencies": { "p-limit": "^2.2.0" } }, "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A=="],-"@istanbuljs/load-nyc-config/find-up/locate-path/p-locate/p-limit": ["[email protected]", "", { "dependencies": { "p-try": "^2.0.0" } }, "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w=="],"@medusajs/cli/ora/cli-cursor/restore-cursor/signal-exit": ["[email protected]", "", {}, "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ=="],@@ -4970,7 +4976,7 @@"@oclif/plugin-help/@oclif/config/@oclif/errors/fs-extra/universalify": ["[email protected]", "", {}, "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg=="],- "pkg-dir/find-up/locate-path/p-locate/p-limit": ["[email protected]", "", { "dependencies": { "p-try": "^2.0.0" } }, "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w=="],+ "import-local/pkg-dir/find-up/locate-path/p-locate": ["[email protected]", "", { "dependencies": { "p-limit": "^2.2.0" } }, "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A=="],"@mercurjs/integration-tests/jest/@jest/core/@jest/reporters/glob/jackspeak": ["[email protected]", "", { "dependencies": { "@isaacs/cliui": "^8.0.2" }, "optionalDependencies": { "@pkgjs/parseargs": "^0.11.0" } }, "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw=="],@@ -5290,6 +5296,8 @@"@mercurjs/registry/jest/jest-cli/yargs/cliui/wrap-ansi": ["[email protected]", "", { "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0" } }, "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q=="],+ "import-local/pkg-dir/find-up/locate-path/p-locate/p-limit": ["[email protected]", "", { "dependencies": { "p-try": "^2.0.0" } }, "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w=="],+"@mercurjs/integration-tests/jest/@jest/core/@jest/reporters/glob/jackspeak/@isaacs/cliui": ["@isaacs/[email protected]", "", { "dependencies": { "string-width": "^5.1.2", "string-width-cjs": "npm:string-width@^4.2.0", "strip-ansi": "^7.0.1", "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", "wrap-ansi": "^8.1.0", "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" } }, "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA=="],"@mercurjs/integration-tests/jest/@jest/core/@jest/reporters/glob/minimatch/brace-expansion": ["[email protected]", "", { "dependencies": { "balanced-match": "^1.0.0" } }, "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ=="],diff --git a/integration-tests/.mercur/_generated/index.ts b/integration-tests/.mercur/_generated/index.tsindex 8cbaf5f08..19b0c505c 100644--- a/integration-tests/.mercur/_generated/index.ts+++ b/integration-tests/.mercur/_generated/index.ts@@ -142,7 +142,7 @@ export type Routes = {$id: typeof import("@medusajs/medusa/api/admin/invites/[id]/route") & {resend: typeof import("@medusajs/medusa/api/admin/invites/[id]/resend/route");};- accept: typeof import("@mercurjs/core-plugin/api/admin/invites/accept/route");+ accept: typeof import("@mercurjs/core/api/admin/invites/accept/route");};locales: typeof import("@medusajs/medusa/api/admin/locales/route") & {$code: typeof import("@medusajs/medusa/api/admin/locales/[code]/route");@@ -168,7 +168,7 @@ export type Routes = {};};};- orders: typeof import("@mercurjs/core-plugin/api/admin/orders/route") & {+ orders: typeof import("@mercurjs/core/api/admin/orders/route") & {$id: typeof import("@medusajs/medusa/api/admin/orders/[id]/route") & {archive: typeof import("@medusajs/medusa/api/admin/orders/[id]/archive/route");cancel: typeof import("@medusajs/medusa/api/admin/orders/[id]/cancel/route");@@ -227,7 +227,7 @@ export type Routes = {$id: typeof import("@medusajs/medusa/api/admin/product-types/[id]/route");};productVariants: typeof import("@medusajs/medusa/api/admin/product-variants/route");- products: typeof import("@mercurjs/core-plugin/api/admin/products/route") & {+ products: typeof import("@mercurjs/core/api/admin/products/route") & {$id: typeof import("@medusajs/medusa/api/admin/products/[id]/route") & {images: {$imageId: {@@ -414,20 +414,20 @@ export type Routes = {subscribe: typeof import("@medusajs/medusa/api/admin/workflows-executions/[workflow_id]/subscribe/route");};};- commissionRates: typeof import("@mercurjs/core-plugin/api/admin/commission-rates/route") & {- $id: typeof import("@mercurjs/core-plugin/api/admin/commission-rates/[id]/route") & {- rules: typeof import("@mercurjs/core-plugin/api/admin/commission-rates/[id]/rules/route");+ commissionRates: typeof import("@mercurjs/core/api/admin/commission-rates/route") & {+ $id: typeof import("@mercurjs/core/api/admin/commission-rates/[id]/route") & {+ rules: typeof import("@mercurjs/core/api/admin/commission-rates/[id]/rules/route");};};- orderGroups: typeof import("@mercurjs/core-plugin/api/admin/order-groups/route") & {- $id: typeof import("@mercurjs/core-plugin/api/admin/order-groups/[id]/route");+ orderGroups: typeof import("@mercurjs/core/api/admin/order-groups/route") & {+ $id: typeof import("@mercurjs/core/api/admin/order-groups/[id]/route");};- payouts: typeof import("@mercurjs/core-plugin/api/admin/payouts/route") & {- $id: typeof import("@mercurjs/core-plugin/api/admin/payouts/[id]/route");+ payouts: typeof import("@mercurjs/core/api/admin/payouts/route") & {+ $id: typeof import("@mercurjs/core/api/admin/payouts/[id]/route");};- sellers: typeof import("@mercurjs/core-plugin/api/admin/sellers/route") & {- invite: typeof import("@mercurjs/core-plugin/api/admin/sellers/invite/route");- $id: typeof import("@mercurjs/core-plugin/api/admin/sellers/[id]/route");+ sellers: typeof import("@mercurjs/core/api/admin/sellers/route") & {+ invite: typeof import("@mercurjs/core/api/admin/sellers/invite/route");+ $id: typeof import("@mercurjs/core/api/admin/sellers/[id]/route");};};auth: {@@ -447,13 +447,13 @@ export type Routes = {store: {carts: typeof import("@medusajs/medusa/api/store/carts/route") & {$id: typeof import("@medusajs/medusa/api/store/carts/[id]/route") & {- complete: typeof import("@mercurjs/core-plugin/api/store/carts/[id]/complete/route");+ complete: typeof import("@mercurjs/core/api/store/carts/[id]/complete/route");customer: typeof import("@medusajs/medusa/api/store/carts/[id]/customer/route");lineItems: typeof import("@medusajs/medusa/api/store/carts/[id]/line-items/route") & {$lineId: typeof import("@medusajs/medusa/api/store/carts/[id]/line-items/[line_id]/route");};- promotions: typeof import("@mercurjs/core-plugin/api/store/carts/[id]/promotions/route");- shippingMethods: typeof import("@mercurjs/core-plugin/api/store/carts/[id]/shipping-methods/route");+ promotions: typeof import("@mercurjs/core/api/store/carts/[id]/promotions/route");+ shippingMethods: typeof import("@mercurjs/core/api/store/carts/[id]/shipping-methods/route");taxes: typeof import("@medusajs/medusa/api/store/carts/[id]/taxes/route");};};@@ -509,189 +509,189 @@ export type Routes = {$id: typeof import("@medusajs/medusa/api/store/return-reasons/[id]/route");};returns: typeof import("@medusajs/medusa/api/store/returns/route");- shippingOptions: typeof import("@mercurjs/core-plugin/api/store/shipping-options/route") & {+ shippingOptions: typeof import("@mercurjs/core/api/store/shipping-options/route") & {$id: {calculate: typeof import("@medusajs/medusa/api/store/shipping-options/[id]/calculate/route");};};- orderGroups: typeof import("@mercurjs/core-plugin/api/store/order-groups/route") & {- $id: typeof import("@mercurjs/core-plugin/api/store/order-groups/[id]/route");+ orderGroups: typeof import("@mercurjs/core/api/store/order-groups/route") & {+ $id: typeof import("@mercurjs/core/api/store/order-groups/[id]/route");};- sellers: typeof import("@mercurjs/core-plugin/api/store/sellers/route") & {- $id: typeof import("@mercurjs/core-plugin/api/store/sellers/[id]/route");+ sellers: typeof import("@mercurjs/core/api/store/sellers/route") & {+ $id: typeof import("@mercurjs/core/api/store/sellers/[id]/route");};};vendor: {- campaigns: typeof import("@mercurjs/core-plugin/api/vendor/campaigns/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/campaigns/[id]/route") & {- promotions: typeof import("@mercurjs/core-plugin/api/vendor/campaigns/[id]/promotions/route");+ campaigns: typeof import("@mercurjs/core/api/vendor/campaigns/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/campaigns/[id]/route") & {+ promotions: typeof import("@mercurjs/core/api/vendor/campaigns/[id]/promotions/route");};};- collections: typeof import("@mercurjs/core-plugin/api/vendor/collections/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/collections/[id]/route") & {- products: typeof import("@mercurjs/core-plugin/api/vendor/collections/[id]/products/route");+ collections: typeof import("@mercurjs/core/api/vendor/collections/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/collections/[id]/route") & {+ products: typeof import("@mercurjs/core/api/vendor/collections/[id]/products/route");};};- currencies: typeof import("@mercurjs/core-plugin/api/vendor/currencies/route") & {- $code: typeof import("@mercurjs/core-plugin/api/vendor/currencies/[code]/route");+ currencies: typeof import("@mercurjs/core/api/vendor/currencies/route") & {+ $code: typeof import("@mercurjs/core/api/vendor/currencies/[code]/route");};- customers: typeof import("@mercurjs/core-plugin/api/vendor/customers/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/customers/[id]/route");+ customers: typeof import("@mercurjs/core/api/vendor/customers/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/customers/[id]/route");};fulfillmentSets: {- $id: typeof import("@mercurjs/core-plugin/api/vendor/fulfillment-sets/[id]/route") & {- serviceZones: typeof import("@mercurjs/core-plugin/api/vendor/fulfillment-sets/[id]/service-zones/route") & {- $zoneId: typeof import("@mercurjs/core-plugin/api/vendor/fulfillment-sets/[id]/service-zones/[zone_id]/route");+ $id: typeof import("@mercurjs/core/api/vendor/fulfillment-sets/[id]/route") & {+ serviceZones: typeof import("@mercurjs/core/api/vendor/fulfillment-sets/[id]/service-zones/route") & {+ $zoneId: typeof import("@mercurjs/core/api/vendor/fulfillment-sets/[id]/service-zones/[zone_id]/route");};};};- inventoryItems: typeof import("@mercurjs/core-plugin/api/vendor/inventory-items/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/inventory-items/[id]/route") & {- locationLevels: typeof import("@mercurjs/core-plugin/api/vendor/inventory-items/[id]/location-levels/route") & {- $locationId: typeof import("@mercurjs/core-plugin/api/vendor/inventory-items/[id]/location-levels/[location_id]/route");- batch: typeof import("@mercurjs/core-plugin/api/vendor/inventory-items/[id]/location-levels/batch/route");+ inventoryItems: typeof import("@mercurjs/core/api/vendor/inventory-items/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/inventory-items/[id]/route") & {+ locationLevels: typeof import("@mercurjs/core/api/vendor/inventory-items/[id]/location-levels/route") & {+ $locationId: typeof import("@mercurjs/core/api/vendor/inventory-items/[id]/location-levels/[location_id]/route");+ batch: typeof import("@mercurjs/core/api/vendor/inventory-items/[id]/location-levels/batch/route");};};};- orders: typeof import("@mercurjs/core-plugin/api/vendor/orders/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/route") & {- cancel: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/cancel/route");- changes: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/changes/route");- complete: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/complete/route");- fulfillments: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/fulfillments/route") & {+ orders: typeof import("@mercurjs/core/api/vendor/orders/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/orders/[id]/route") & {+ cancel: typeof import("@mercurjs/core/api/vendor/orders/[id]/cancel/route");+ changes: typeof import("@mercurjs/core/api/vendor/orders/[id]/changes/route");+ complete: typeof import("@mercurjs/core/api/vendor/orders/[id]/complete/route");+ fulfillments: typeof import("@mercurjs/core/api/vendor/orders/[id]/fulfillments/route") & {$fulfillmentId: {- cancel: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/cancel/route");- markAsDelivered: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/mark-as-delivered/route");- shipments: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/shipments/route");+ cancel: typeof import("@mercurjs/core/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/cancel/route");+ markAsDelivered: typeof import("@mercurjs/core/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/mark-as-delivered/route");+ shipments: typeof import("@mercurjs/core/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/shipments/route");};};- preview: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/preview/route");+ preview: typeof import("@mercurjs/core/api/vendor/orders/[id]/preview/route");};};- payments: typeof import("@mercurjs/core-plugin/api/vendor/payments/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/payments/[id]/route") & {- capture: typeof import("@mercurjs/core-plugin/api/vendor/payments/[id]/capture/route");- refund: typeof import("@mercurjs/core-plugin/api/vendor/payments/[id]/refund/route");+ payments: typeof import("@mercurjs/core/api/vendor/payments/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/payments/[id]/route") & {+ capture: typeof import("@mercurjs/core/api/vendor/payments/[id]/capture/route");+ refund: typeof import("@mercurjs/core/api/vendor/payments/[id]/refund/route");};- paymentProviders: typeof import("@mercurjs/core-plugin/api/vendor/payments/payment-providers/route");+ paymentProviders: typeof import("@mercurjs/core/api/vendor/payments/payment-providers/route");};- payoutAccounts: typeof import("@mercurjs/core-plugin/api/vendor/payout-accounts/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/payout-accounts/[id]/route") & {- onboarding: typeof import("@mercurjs/core-plugin/api/vendor/payout-accounts/[id]/onboarding/route");+ payoutAccounts: typeof import("@mercurjs/core/api/vendor/payout-accounts/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/payout-accounts/[id]/route") & {+ onboarding: typeof import("@mercurjs/core/api/vendor/payout-accounts/[id]/onboarding/route");};};- payouts: typeof import("@mercurjs/core-plugin/api/vendor/payouts/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/payouts/[id]/route");+ payouts: typeof import("@mercurjs/core/api/vendor/payouts/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/payouts/[id]/route");};- priceLists: typeof import("@mercurjs/core-plugin/api/vendor/price-lists/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/price-lists/[id]/route") & {- products: typeof import("@mercurjs/core-plugin/api/vendor/price-lists/[id]/products/route");+ priceLists: typeof import("@mercurjs/core/api/vendor/price-lists/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/price-lists/[id]/route") & {+ products: typeof import("@mercurjs/core/api/vendor/price-lists/[id]/products/route");};};- pricePreferences: typeof import("@mercurjs/core-plugin/api/vendor/price-preferences/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/price-preferences/[id]/route");+ pricePreferences: typeof import("@mercurjs/core/api/vendor/price-preferences/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/price-preferences/[id]/route");};- productCategories: typeof import("@mercurjs/core-plugin/api/vendor/product-categories/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/product-categories/[id]/route") & {- products: typeof import("@mercurjs/core-plugin/api/vendor/product-categories/[id]/products/route");+ productCategories: typeof import("@mercurjs/core/api/vendor/product-categories/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/product-categories/[id]/route") & {+ products: typeof import("@mercurjs/core/api/vendor/product-categories/[id]/products/route");};};- productTags: typeof import("@mercurjs/core-plugin/api/vendor/product-tags/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/product-tags/[id]/route");+ productTags: typeof import("@mercurjs/core/api/vendor/product-tags/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/product-tags/[id]/route");};- productTypes: typeof import("@mercurjs/core-plugin/api/vendor/product-types/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/product-types/[id]/route");+ productTypes: typeof import("@mercurjs/core/api/vendor/product-types/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/product-types/[id]/route");};- products: typeof import("@mercurjs/core-plugin/api/vendor/products/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/products/[id]/route") & {- options: typeof import("@mercurjs/core-plugin/api/vendor/products/[id]/options/route") & {- $optionId: typeof import("@mercurjs/core-plugin/api/vendor/products/[id]/options/[option_id]/route");+ products: typeof import("@mercurjs/core/api/vendor/products/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/products/[id]/route") & {+ options: typeof import("@mercurjs/core/api/vendor/products/[id]/options/route") & {+ $optionId: typeof import("@mercurjs/core/api/vendor/products/[id]/options/[option_id]/route");};- variants: typeof import("@mercurjs/core-plugin/api/vendor/products/[id]/variants/route") & {- $variantId: typeof import("@mercurjs/core-plugin/api/vendor/products/[id]/variants/[variant_id]/route");+ variants: typeof import("@mercurjs/core/api/vendor/products/[id]/variants/route") & {+ $variantId: typeof import("@mercurjs/core/api/vendor/products/[id]/variants/[variant_id]/route");};};};- promotions: typeof import("@mercurjs/core-plugin/api/vendor/promotions/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/promotions/[id]/route") & {- $ruleType: typeof import("@mercurjs/core-plugin/api/vendor/promotions/[id]/[rule_type]/route");+ promotions: typeof import("@mercurjs/core/api/vendor/promotions/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/promotions/[id]/route") & {+ $ruleType: typeof import("@mercurjs/core/api/vendor/promotions/[id]/[rule_type]/route");buyRules: {- batch: typeof import("@mercurjs/core-plugin/api/vendor/promotions/[id]/buy-rules/batch/route");+ batch: typeof import("@mercurjs/core/api/vendor/promotions/[id]/buy-rules/batch/route");};rules: {- batch: typeof import("@mercurjs/core-plugin/api/vendor/promotions/[id]/rules/batch/route");+ batch: typeof import("@mercurjs/core/api/vendor/promotions/[id]/rules/batch/route");};targetRules: {- batch: typeof import("@mercurjs/core-plugin/api/vendor/promotions/[id]/target-rules/batch/route");+ batch: typeof import("@mercurjs/core/api/vendor/promotions/[id]/target-rules/batch/route");};};ruleAttributeOptions: {- $ruleType: typeof import("@mercurjs/core-plugin/api/vendor/promotions/rule-attribute-options/[rule_type]/route");+ $ruleType: typeof import("@mercurjs/core/api/vendor/promotions/rule-attribute-options/[rule_type]/route");};ruleValueOptions: {$ruleType: {- $ruleAttributeId: typeof import("@mercurjs/core-plugin/api/vendor/promotions/rule-value-options/[rule_type]/[rule_attribute_id]/route");+ $ruleAttributeId: typeof import("@mercurjs/core/api/vendor/promotions/rule-value-options/[rule_type]/[rule_attribute_id]/route");};};};- refundReasons: typeof import("@mercurjs/core-plugin/api/vendor/refund-reasons/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/refund-reasons/[id]/route");+ refundReasons: typeof import("@mercurjs/core/api/vendor/refund-reasons/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/refund-reasons/[id]/route");};- regions: typeof import("@mercurjs/core-plugin/api/vendor/regions/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/regions/[id]/route");+ regions: typeof import("@mercurjs/core/api/vendor/regions/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/regions/[id]/route");};- returnReasons: typeof import("@mercurjs/core-plugin/api/vendor/return-reasons/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/return-reasons/[id]/route");+ returnReasons: typeof import("@mercurjs/core/api/vendor/return-reasons/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/return-reasons/[id]/route");};- returns: typeof import("@mercurjs/core-plugin/api/vendor/returns/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/route") & {- cancel: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/cancel/route");- dismissItems: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/dismiss-items/route") & {- $actionId: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/dismiss-items/[action_id]/route");+ returns: typeof import("@mercurjs/core/api/vendor/returns/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/returns/[id]/route") & {+ cancel: typeof import("@mercurjs/core/api/vendor/returns/[id]/cancel/route");+ dismissItems: typeof import("@mercurjs/core/api/vendor/returns/[id]/dismiss-items/route") & {+ $actionId: typeof import("@mercurjs/core/api/vendor/returns/[id]/dismiss-items/[action_id]/route");};- receive: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/receive/route") & {- confirm: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/receive/confirm/route");+ receive: typeof import("@mercurjs/core/api/vendor/returns/[id]/receive/route") & {+ confirm: typeof import("@mercurjs/core/api/vendor/returns/[id]/receive/confirm/route");};- receiveItems: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/receive-items/route") & {- $actionId: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/receive-items/[action_id]/route");+ receiveItems: typeof import("@mercurjs/core/api/vendor/returns/[id]/receive-items/route") & {+ $actionId: typeof import("@mercurjs/core/api/vendor/returns/[id]/receive-items/[action_id]/route");};- request: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/request/route");- requestItems: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/request-items/route") & {- $actionId: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/request-items/[action_id]/route");+ request: typeof import("@mercurjs/core/api/vendor/returns/[id]/request/route");+ requestItems: typeof import("@mercurjs/core/api/vendor/returns/[id]/request-items/route") & {+ $actionId: typeof import("@mercurjs/core/api/vendor/returns/[id]/request-items/[action_id]/route");};- shippingMethod: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/shipping-method/route") & {- $actionId: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/shipping-method/[action_id]/route");+ shippingMethod: typeof import("@mercurjs/core/api/vendor/returns/[id]/shipping-method/route") & {+ $actionId: typeof import("@mercurjs/core/api/vendor/returns/[id]/shipping-method/[action_id]/route");};};};- salesChannels: typeof import("@mercurjs/core-plugin/api/vendor/sales-channels/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/sales-channels/[id]/route") & {- products: typeof import("@mercurjs/core-plugin/api/vendor/sales-channels/[id]/products/route");+ salesChannels: typeof import("@mercurjs/core/api/vendor/sales-channels/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/sales-channels/[id]/route") & {+ products: typeof import("@mercurjs/core/api/vendor/sales-channels/[id]/products/route");};};- sellers: typeof import("@mercurjs/core-plugin/api/vendor/sellers/route") & {- me: typeof import("@mercurjs/core-plugin/api/vendor/sellers/me/route");+ sellers: typeof import("@mercurjs/core/api/vendor/sellers/route") & {+ me: typeof import("@mercurjs/core/api/vendor/sellers/me/route");};- shippingOptionTypes: typeof import("@mercurjs/core-plugin/api/vendor/shipping-option-types/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/shipping-option-types/[id]/route");+ shippingOptionTypes: typeof import("@mercurjs/core/api/vendor/shipping-option-types/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/shipping-option-types/[id]/route");};- shippingOptions: typeof import("@mercurjs/core-plugin/api/vendor/shipping-options/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/shipping-options/[id]/route") & {+ shippingOptions: typeof import("@mercurjs/core/api/vendor/shipping-options/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/shipping-options/[id]/route") & {rules: {- batch: typeof import("@mercurjs/core-plugin/api/vendor/shipping-options/[id]/rules/batch/route");+ batch: typeof import("@mercurjs/core/api/vendor/shipping-options/[id]/rules/batch/route");};};};- shippingProfiles: typeof import("@mercurjs/core-plugin/api/vendor/shipping-profiles/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/shipping-profiles/[id]/route");+ shippingProfiles: typeof import("@mercurjs/core/api/vendor/shipping-profiles/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/shipping-profiles/[id]/route");};- stockLocations: typeof import("@mercurjs/core-plugin/api/vendor/stock-locations/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/stock-locations/[id]/route") & {- fulfillmentProviders: typeof import("@mercurjs/core-plugin/api/vendor/stock-locations/[id]/fulfillment-providers/route");- fulfillmentSets: typeof import("@mercurjs/core-plugin/api/vendor/stock-locations/[id]/fulfillment-sets/route");- salesChannels: typeof import("@mercurjs/core-plugin/api/vendor/stock-locations/[id]/sales-channels/route");+ stockLocations: typeof import("@mercurjs/core/api/vendor/stock-locations/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/stock-locations/[id]/route") & {+ fulfillmentProviders: typeof import("@mercurjs/core/api/vendor/stock-locations/[id]/fulfillment-providers/route");+ fulfillmentSets: typeof import("@mercurjs/core/api/vendor/stock-locations/[id]/fulfillment-sets/route");+ salesChannels: typeof import("@mercurjs/core/api/vendor/stock-locations/[id]/sales-channels/route");};};- uploads: typeof import("@mercurjs/core-plugin/api/vendor/uploads/route");+ uploads: typeof import("@mercurjs/core/api/vendor/uploads/route");};};diff --git a/integration-tests/helpers/create-seller-user.ts b/integration-tests/helpers/create-seller-user.tsindex 83ca710aa..f5e4d37a4 100644--- a/integration-tests/helpers/create-seller-user.ts+++ b/integration-tests/helpers/create-seller-user.ts@@ -8,7 +8,7 @@ import {} from "@medusajs/framework/utils"import jwt from "jsonwebtoken"import Scrypt from "scrypt-kdf"-import { createSellersWorkflow } from "@mercurjs/core-plugin/workflows"+import { createSellersWorkflow } from "@mercurjs/core/workflows"export const vendorHeaders = {headers: { "x-medusa-access-token": "test_token" },diff --git a/integration-tests/http/seller/vendor/seller.spec.ts b/integration-tests/http/seller/vendor/seller.spec.tsindex c3e03d55c..2289ce03c 100644--- a/integration-tests/http/seller/vendor/seller.spec.ts+++ b/integration-tests/http/seller/vendor/seller.spec.ts@@ -5,7 +5,7 @@ import {createAdminUser,} from "../../../helpers/create-admin-user"import { createSellerUser } from "../../../helpers/create-seller-user"-import { createSellerDefaultsWorkflow } from "@mercurjs/core-plugin/workflows"+import { createSellerDefaultsWorkflow } from "@mercurjs/core/workflows"import { SellerRole } from "@mercurjs/types"jest.setTimeout(50000)diff --git a/integration-tests/medusa-config.ts b/integration-tests/medusa-config.tsindex 1df5761a5..35c64c7cc 100644--- a/integration-tests/medusa-config.ts+++ b/integration-tests/medusa-config.ts@@ -22,7 +22,7 @@ module.exports = defineConfig({resolve: "@medusajs/medusa/rbac",},{- resolve: '@mercurjs/core-plugin/modules/admin-ui',+ resolve: '@mercurjs/core/modules/admin-ui',options: {appDir: '',path: '/dashboard',@@ -30,7 +30,7 @@ module.exports = defineConfig({}},{- resolve: '@mercurjs/core-plugin/modules/vendor-ui',+ resolve: '@mercurjs/core/modules/vendor-ui',options: {appDir: '',path: '/seller',@@ -48,7 +48,7 @@ module.exports = defineConfig({],plugins: [{- resolve: "@mercurjs/core-plugin",+ resolve: "@mercurjs/core",options: {}}]diff --git a/integration-tests/package.json b/integration-tests/package.jsonindex c8b8d8dbb..4bd114e6c 100644--- a/integration-tests/package.json+++ b/integration-tests/package.json@@ -9,7 +9,7 @@"dependencies": {"@medusajs/framework": "^2.13.4","@medusajs/medusa": "^2.13.4",- "@mercurjs/core-plugin": "*",+ "@mercurjs/core": "*","jsonwebtoken": "^9.0.2","scrypt-kdf": "^2.0.1","@medusajs/draft-order": "^2.13.4",diff --git a/package.json b/package.jsonindex bfbf81090..ce8c1db54 100644--- a/package.json+++ b/package.json@@ -10,7 +10,7 @@"check-types": "turbo run check-types"},"dependencies": {- "@mercurjs/core-plugin": "workspace:*"+ "@mercurjs/core": "workspace:*"},"devDependencies": {"@eslint/js": "^9.39.2",diff --git a/packages/admin/package.json b/packages/admin/package.jsonindex 0b76bb549..8ad68a5cf 100644--- a/packages/admin/package.json+++ b/packages/admin/package.json@@ -80,7 +80,7 @@"tsup": "^8.0.2","typescript": "5.9.3","@medusajs/types": "2.13.4",- "@mercurjs/core-plugin": "workspace:*",+ "@mercurjs/core": "workspace:*","@mercurjs/dashboard-sdk": "workspace:*","@mercurjs/types": "workspace:*"}diff --git a/packages/admin/src/lib/client/client.ts b/packages/admin/src/lib/client/client.tsindex 96d568a1b..81ec4b5a7 100644--- a/packages/admin/src/lib/client/client.ts+++ b/packages/admin/src/lib/client/client.ts@@ -1,5 +1,5 @@import { createClient, InferClient } from '@mercurjs/client'-import { Routes } from '@mercurjs/core-plugin/_generated'+import { Routes } from '@mercurjs/core/_generated'import config from 'virtual:mercur/config'export const backendUrl = config.backendUrl ?? 'http://localhost:9000'diff --git a/packages/cli/package.json b/packages/cli/package.jsonindex 2c35087be..a59048afa 100644--- a/packages/cli/package.json+++ b/packages/cli/package.json@@ -38,42 +38,46 @@},"dependencies": {"@antfu/ni": "^27.0.1",+ "@medusajs/admin-bundler": "2.13.4",+ "@medusajs/admin-shared": "2.13.4",+ "@medusajs/admin-vite-plugin": "2.13.4",+ "@medusajs/dashboard": "2.13.4",+ "@medusajs/framework": "2.13.4",+ "@mercurjs/dashboard-sdk": "2.0.0-canary.97",+ "@types/cross-spawn": "^6.0.6",+ "@vitejs/plugin-react": "^4.2.1",+ "autoprefixer": "^10.4.19","commander": "^14.0.2",+ "compression": "^1.8.0","cosmiconfig": "^9.0.0",+ "cross-spawn": "^7.0.6","deepmerge": "^4.3.1","diff": "^8.0.2","execa": "^9.6.0",+ "express": "^4.21.0","fast-glob": "^3.3.3","fs-extra": "^11.3.2",+ "get-port": "^5.1.1",+ "glob": "11.1.0","kleur": "^4.1.5","open": "^11.0.0","ora": "^9.0.0",+ "outdent": "^0.8.0","pg": "^8.17.1",+ "pkg-dir": "^9.0.0",+ "postcss": "^8.4.38","prompts": "^2.4.2",+ "resolve-cwd": "^3.0.0",+ "tailwindcss": "^3.4.3","tar": "^7.5.2","terminal-link": "^5.0.0","ts-morph": "^27.0.2","tsconfig-paths": "^4.2.0","typescript": "5.9.3","validate-npm-package-name": "^7.0.2",- "wait-on": "^9.0.3",- "zod": "3.25.76",- "@medusajs/admin-shared": "2.13.4",- "@medusajs/admin-vite-plugin": "2.13.4",- "@medusajs/dashboard": "2.13.4",- "@vitejs/plugin-react": "^4.2.1",- "autoprefixer": "^10.4.19",- "compression": "^1.8.0",- "express": "^4.21.0",- "get-port": "^5.1.1",- "glob": "11.1.0",- "outdent": "^0.8.0",- "postcss": "^8.4.38",- "tailwindcss": "^3.4.3","vite": "^5.4.21",- "@medusajs/admin-bundler": "2.13.4",- "@medusajs/framework": "2.13.4",- "@mercurjs/dashboard-sdk": "2.0.0-canary.97"+ "wait-on": "^9.0.3",+ "zod": "3.25.76"},"devDependencies": {"@types/fs-extra": "^11.0.4",diff --git a/packages/cli/src/codegen/constants.ts b/packages/cli/src/codegen/constants.tsindex d28c616ec..cfa83bf14 100644--- a/packages/cli/src/codegen/constants.ts+++ b/packages/cli/src/codegen/constants.ts@@ -1,4 +1,4 @@-export const DIST_DIR = ".mercur/_generated";+export const DIST_DIR = ".mercur";export const ROUTE_FILE_PATTERN = /route\.(ts|js)$/;export const defaultMedusaRoutes = {@@ -294,131 +294,131 @@ export const defaultMedusaRoutes = {export const defaultMercurRoutes = {// Admin routes- "/admin/commission-rates": "typeof import(\"@mercurjs/core-plugin/api/admin/commission-rates/route\")",- "/admin/commission-rates/:id": "typeof import(\"@mercurjs/core-plugin/api/admin/commission-rates/[id]/route\")",- "/admin/commission-rates/:id/rules": "typeof import(\"@mercurjs/core-plugin/api/admin/commission-rates/[id]/rules/route\")",- "/admin/order-groups": "typeof import(\"@mercurjs/core-plugin/api/admin/order-groups/route\")",- "/admin/order-groups/:id": "typeof import(\"@mercurjs/core-plugin/api/admin/order-groups/[id]/route\")",- "/admin/payouts": "typeof import(\"@mercurjs/core-plugin/api/admin/payouts/route\")",- "/admin/payouts/:id": "typeof import(\"@mercurjs/core-plugin/api/admin/payouts/[id]/route\")",- "/admin/orders": "typeof import(\"@mercurjs/core-plugin/api/admin/orders/route\")",- "/admin/products": "typeof import(\"@mercurjs/core-plugin/api/admin/products/route\")",- "/admin/invites/accept": "typeof import(\"@mercurjs/core-plugin/api/admin/invites/accept/route\")",- "/admin/sellers": "typeof import(\"@mercurjs/core-plugin/api/admin/sellers/route\")",- "/admin/sellers/invite": "typeof import(\"@mercurjs/core-plugin/api/admin/sellers/invite/route\")",- "/admin/sellers/:id": "typeof import(\"@mercurjs/core-plugin/api/admin/sellers/[id]/route\")",+ "/admin/commission-rates": "typeof import(\"@mercurjs/core/api/admin/commission-rates/route\")",+ "/admin/commission-rates/:id": "typeof import(\"@mercurjs/core/api/admin/commission-rates/[id]/route\")",+ "/admin/commission-rates/:id/rules": "typeof import(\"@mercurjs/core/api/admin/commission-rates/[id]/rules/route\")",+ "/admin/order-groups": "typeof import(\"@mercurjs/core/api/admin/order-groups/route\")",+ "/admin/order-groups/:id": "typeof import(\"@mercurjs/core/api/admin/order-groups/[id]/route\")",+ "/admin/payouts": "typeof import(\"@mercurjs/core/api/admin/payouts/route\")",+ "/admin/payouts/:id": "typeof import(\"@mercurjs/core/api/admin/payouts/[id]/route\")",+ "/admin/orders": "typeof import(\"@mercurjs/core/api/admin/orders/route\")",+ "/admin/products": "typeof import(\"@mercurjs/core/api/admin/products/route\")",+ "/admin/invites/accept": "typeof import(\"@mercurjs/core/api/admin/invites/accept/route\")",+ "/admin/sellers": "typeof import(\"@mercurjs/core/api/admin/sellers/route\")",+ "/admin/sellers/invite": "typeof import(\"@mercurjs/core/api/admin/sellers/invite/route\")",+ "/admin/sellers/:id": "typeof import(\"@mercurjs/core/api/admin/sellers/[id]/route\")",// Store routes- "/store/carts/:id/complete": "typeof import(\"@mercurjs/core-plugin/api/store/carts/[id]/complete/route\")",- "/store/carts/:id/promotions": "typeof import(\"@mercurjs/core-plugin/api/store/carts/[id]/promotions/route\")",- "/store/carts/:id/shipping-methods": "typeof import(\"@mercurjs/core-plugin/api/store/carts/[id]/shipping-methods/route\")",- "/store/order-groups": "typeof import(\"@mercurjs/core-plugin/api/store/order-groups/route\")",- "/store/order-groups/:id": "typeof import(\"@mercurjs/core-plugin/api/store/order-groups/[id]/route\")",- "/store/sellers": "typeof import(\"@mercurjs/core-plugin/api/store/sellers/route\")",- "/store/sellers/:id": "typeof import(\"@mercurjs/core-plugin/api/store/sellers/[id]/route\")",- "/store/shipping-options": "typeof import(\"@mercurjs/core-plugin/api/store/shipping-options/route\")",+ "/store/carts/:id/complete": "typeof import(\"@mercurjs/core/api/store/carts/[id]/complete/route\")",+ "/store/carts/:id/promotions": "typeof import(\"@mercurjs/core/api/store/carts/[id]/promotions/route\")",+ "/store/carts/:id/shipping-methods": "typeof import(\"@mercurjs/core/api/store/carts/[id]/shipping-methods/route\")",+ "/store/order-groups": "typeof import(\"@mercurjs/core/api/store/order-groups/route\")",+ "/store/order-groups/:id": "typeof import(\"@mercurjs/core/api/store/order-groups/[id]/route\")",+ "/store/sellers": "typeof import(\"@mercurjs/core/api/store/sellers/route\")",+ "/store/sellers/:id": "typeof import(\"@mercurjs/core/api/store/sellers/[id]/route\")",+ "/store/shipping-options": "typeof import(\"@mercurjs/core/api/store/shipping-options/route\")",// Vendor routes- "/vendor/campaigns": "typeof import(\"@mercurjs/core-plugin/api/vendor/campaigns/route\")",- "/vendor/campaigns/:id": "typeof import(\"@mercurjs/core-plugin/api/vendor/campaigns/[id]/route\")",- "/vendor/campaigns/:id/promotions": "typeof import(\"@mercurjs/core-plugin/api/vendor/campaigns/[id]/promotions/route\")",- "/vendor/collections": "typeof import(\"@mercurjs/core-plugin/api/vendor/collections/route\")",- "/vendor/collections/:id": "typeof import(\"@mercurjs/core-plugin/api/vendor/collections/[id]/route\")",- "/vendor/collections/:id/products": "typeof import(\"@mercurjs/core-plugin/api/vendor/collections/[id]/products/route\")",- "/vendor/currencies": "typeof import(\"@mercurjs/core-plugin/api/vendor/currencies/route\")",- "/vendor/currencies/:code": "typeof import(\"@mercurjs/core-plugin/api/vendor/currencies/[code]/route\")",- "/vendor/customers": "typeof import(\"@mercurjs/core-plugin/api/vendor/customers/route\")",- "/vendor/customers/:id": "typeof import(\"@mercurjs/core-plugin/api/vendor/customers/[id]/route\")",- "/vendor/fulfillment-sets/:id": "typeof import(\"@mercurjs/core-plugin/api/vendor/fulfillment-sets/[id]/route\")",- "/vendor/fulfillment-sets/:id/service-zones": "typeof import(\"@mercurjs/core-plugin/api/vendor/fulfillment-sets/[id]/service-zones/route\")",- "/vendor/fulfillment-sets/:id/service-zones/:zone_id": "typeof import(\"@mercurjs/core-plugin/api/vendor/fulfillment-sets/[id]/service-zones/[zone_id]/route\")",- "/vendor/inventory-items": "typeof import(\"@mercurjs/core-plugin/api/vendor/inventory-items/route\")",- "/vendor/inventory-items/:id": "typeof import(\"@mercurjs/core-plugin/api/vendor/inventory-items/[id]/route\")",- "/vendor/inventory-items/:id/location-levels": "typeof import(\"@mercurjs/core-plugin/api/vendor/inventory-items/[id]/location-levels/route\")",- "/vendor/inventory-items/:id/location-levels/:location_id": "typeof import(\"@mercurjs/core-plugin/api/vendor/inventory-items/[id]/location-levels/[location_id]/route\")",- "/vendor/inventory-items/:id/location-levels/batch": "typeof import(\"@mercurjs/core-plugin/api/vendor/inventory-items/[id]/location-levels/batch/route\")",- "/vendor/orders": "typeof import(\"@mercurjs/core-plugin/api/vendor/orders/route\")",- "/vendor/orders/:id": "typeof import(\"@mercurjs/core-plugin/api/vendor/orders/[id]/route\")",- "/vendor/orders/:id/cancel": "typeof import(\"@mercurjs/core-plugin/api/vendor/orders/[id]/cancel/route\")",- "/vendor/orders/:id/changes": "typeof import(\"@mercurjs/core-plugin/api/vendor/orders/[id]/changes/route\")",- "/vendor/orders/:id/complete": "typeof import(\"@mercurjs/core-plugin/api/vendor/orders/[id]/complete/route\")",- "/vendor/orders/:id/fulfillments": "typeof import(\"@mercurjs/core-plugin/api/vendor/orders/[id]/fulfillments/route\")",- "/vendor/orders/:id/fulfillments/:fulfillment_id/cancel": "typeof import(\"@mercurjs/core-plugin/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/cancel/route\")",- "/vendor/orders/:id/fulfillments/:fulfillment_id/mark-as-delivered": "typeof import(\"@mercurjs/core-plugin/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/mark-as-delivered/route\")",- "/vendor/orders/:id/fulfillments/:fulfillment_id/shipments": "typeof import(\"@mercurjs/core-plugin/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/shipments/route\")",- "/vendor/orders/:id/preview": "typeof import(\"@mercurjs/core-plugin/api/vendor/orders/[id]/preview/route\")",- "/vendor/payments": "typeof import(\"@mercurjs/core-plugin/api/vendor/payments/route\")",- "/vendor/payments/:id": "typeof import(\"@mercurjs/core-plugin/api/vendor/payments/[id]/route\")",- "/vendor/payments/:id/capture": "typeof import(\"@mercurjs/core-plugin/api/vendor/payments/[id]/capture/route\")",- "/vendor/payments/:id/refund": "typeof import(\"@mercurjs/core-plugin/api/vendor/payments/[id]/refund/route\")",- "/vendor/payments/payment-providers": "typeof import(\"@mercurjs/core-plugin/api/vendor/payments/payment-providers/route\")",- "/vendor/payout-accounts": "typeof import(\"@mercurjs/core-plugin/api/vendor/payout-accounts/route\")",- "/vendor/payout-accounts/:id": "typeof import(\"@mercurjs/core-plugin/api/vendor/payout-accounts/[id]/route\")",- "/vendor/payout-accounts/:id/onboarding": "typeof import(\"@mercurjs/core-plugin/api/vendor/payout-accounts/[id]/onboarding/route\")",- "/vendor/payouts": "typeof import(\"@mercurjs/core-plugin/api/vendor/payouts/route\")",- "/vendor/payouts/:id": "typeof import(\"@mercurjs/core-plugin/api/vendor/payouts/[id]/route\")",- "/vendor/price-lists": "typeof import(\"@mercurjs/core-plugin/api/vendor/price-lists/route\")",- "/vendor/price-lists/:id": "typeof import(\"@mercurjs/core-plugin/api/vendor/price-lists/[id]/route\")",- "/vendor/price-lists/:id/products": "typeof import(\"@mercurjs/core-plugin/api/vendor/price-lists/[id]/products/route\")",- "/vendor/price-preferences": "typeof import(\"@mercurjs/core-plugin/api/vendor/price-preferences/route\")",- "/vendor/price-preferences/:id": "typeof import(\"@mercurjs/core-plugin/api/vendor/price-preferences/[id]/route\")",- "/vendor/product-categories": "typeof import(\"@mercurjs/core-plugin/api/vendor/product-categories/route\")",- "/vendor/product-categories/:id": "typeof import(\"@mercurjs/core-plugin/api/vendor/product-categories/[id]/route\")",- "/vendor/product-categories/:id/products": "typeof import(\"@mercurjs/core-plugin/api/vendor/product-categories/[id]/products/route\")",- "/vendor/product-tags": "typeof import(\"@mercurjs/core-plugin/api/vendor/product-tags/route\")",- "/vendor/product-tags/:id": "typeof import(\"@mercurjs/core-plugin/api/vendor/product-tags/[id]/route\")",- "/vendor/product-types": "typeof import(\"@mercurjs/core-plugin/api/vendor/product-types/route\")",- "/vendor/product-types/:id": "typeof import(\"@mercurjs/core-plugin/api/vendor/product-types/[id]/route\")",- "/vendor/products": "typeof import(\"@mercurjs/core-plugin/api/vendor/products/route\")",- "/vendor/products/:id": "typeof import(\"@mercurjs/core-plugin/api/vendor/products/[id]/route\")",- "/vendor/products/:id/options": "typeof import(\"@mercurjs/core-plugin/api/vendor/products/[id]/options/route\")",- "/vendor/products/:id/options/:option_id": "typeof import(\"@mercurjs/core-plugin/api/vendor/products/[id]/options/[option_id]/route\")",- "/vendor/products/:id/variants": "typeof import(\"@mercurjs/core-plugin/api/vendor/products/[id]/variants/route\")",- "/vendor/products/:id/variants/:variant_id": "typeof import(\"@mercurjs/core-plugin/api/vendor/products/[id]/variants/[variant_id]/route\")",- "/vendor/promotions": "typeof import(\"@mercurjs/core-plugin/api/vendor/promotions/route\")",- "/vendor/promotions/:id": "typeof import(\"@mercurjs/core-plugin/api/vendor/promotions/[id]/route\")",- "/vendor/promotions/:id/:rule_type": "typeof import(\"@mercurjs/core-plugin/api/vendor/promotions/[id]/[rule_type]/route\")",- "/vendor/promotions/:id/buy-rules/batch": "typeof import(\"@mercurjs/core-plugin/api/vendor/promotions/[id]/buy-rules/batch/route\")",- "/vendor/promotions/:id/rules/batch": "typeof import(\"@mercurjs/core-plugin/api/vendor/promotions/[id]/rules/batch/route\")",- "/vendor/promotions/:id/target-rules/batch": "typeof import(\"@mercurjs/core-plugin/api/vendor/promotions/[id]/target-rules/batch/route\")",- "/vendor/promotions/rule-attribute-options/:rule_type": "typeof import(\"@mercurjs/core-plugin/api/vendor/promotions/rule-attribute-options/[rule_type]/route\")",- "/vendor/promotions/rule-value-options/:rule_type/:rule_attribute_id": "typeof import(\"@mercurjs/core-plugin/api/vendor/promotions/rule-value-options/[rule_type]/[rule_attribute_id]/route\")",- "/vendor/refund-reasons": "typeof import(\"@mercurjs/core-plugin/api/vendor/refund-reasons/route\")",- "/vendor/refund-reasons/:id": "typeof import(\"@mercurjs/core-plugin/api/vendor/refund-reasons/[id]/route\")",- "/vendor/regions": "typeof import(\"@mercurjs/core-plugin/api/vendor/regions/route\")",- "/vendor/regions/:id": "typeof import(\"@mercurjs/core-plugin/api/vendor/regions/[id]/route\")",- "/vendor/return-reasons": "typeof import(\"@mercurjs/core-plugin/api/vendor/return-reasons/route\")",- "/vendor/return-reasons/:id": "typeof import(\"@mercurjs/core-plugin/api/vendor/return-reasons/[id]/route\")",- "/vendor/returns": "typeof import(\"@mercurjs/core-plugin/api/vendor/returns/route\")",- "/vendor/returns/:id": "typeof import(\"@mercurjs/core-plugin/api/vendor/returns/[id]/route\")",- "/vendor/returns/:id/cancel": "typeof import(\"@mercurjs/core-plugin/api/vendor/returns/[id]/cancel/route\")",- "/vendor/returns/:id/dismiss-items": "typeof import(\"@mercurjs/core-plugin/api/vendor/returns/[id]/dismiss-items/route\")",- "/vendor/returns/:id/dismiss-items/:action_id": "typeof import(\"@mercurjs/core-plugin/api/vendor/returns/[id]/dismiss-items/[action_id]/route\")",- "/vendor/returns/:id/receive": "typeof import(\"@mercurjs/core-plugin/api/vendor/returns/[id]/receive/route\")",- "/vendor/returns/:id/receive-items": "typeof import(\"@mercurjs/core-plugin/api/vendor/returns/[id]/receive-items/route\")",- "/vendor/returns/:id/receive-items/:action_id": "typeof import(\"@mercurjs/core-plugin/api/vendor/returns/[id]/receive-items/[action_id]/route\")",- "/vendor/returns/:id/receive/confirm": "typeof import(\"@mercurjs/core-plugin/api/vendor/returns/[id]/receive/confirm/route\")",- "/vendor/returns/:id/request": "typeof import(\"@mercurjs/core-plugin/api/vendor/returns/[id]/request/route\")",- "/vendor/returns/:id/request-items": "typeof import(\"@mercurjs/core-plugin/api/vendor/returns/[id]/request-items/route\")",- "/vendor/returns/:id/request-items/:action_id": "typeof import(\"@mercurjs/core-plugin/api/vendor/returns/[id]/request-items/[action_id]/route\")",- "/vendor/returns/:id/shipping-method": "typeof import(\"@mercurjs/core-plugin/api/vendor/returns/[id]/shipping-method/route\")",- "/vendor/returns/:id/shipping-method/:action_id": "typeof import(\"@mercurjs/core-plugin/api/vendor/returns/[id]/shipping-method/[action_id]/route\")",- "/vendor/sales-channels": "typeof import(\"@mercurjs/core-plugin/api/vendor/sales-channels/route\")",- "/vendor/sales-channels/:id": "typeof import(\"@mercurjs/core-plugin/api/vendor/sales-channels/[id]/route\")",- "/vendor/sales-channels/:id/products": "typeof import(\"@mercurjs/core-plugin/api/vendor/sales-channels/[id]/products/route\")",- "/vendor/sellers": "typeof import(\"@mercurjs/core-plugin/api/vendor/sellers/route\")",- "/vendor/sellers/me": "typeof import(\"@mercurjs/core-plugin/api/vendor/sellers/me/route\")",- "/vendor/shipping-option-types": "typeof import(\"@mercurjs/core-plugin/api/vendor/shipping-option-types/route\")",- "/vendor/shipping-option-types/:id": "typeof import(\"@mercurjs/core-plugin/api/vendor/shipping-option-types/[id]/route\")",- "/vendor/shipping-options": "typeof import(\"@mercurjs/core-plugin/api/vendor/shipping-options/route\")",- "/vendor/shipping-options/:id": "typeof import(\"@mercurjs/core-plugin/api/vendor/shipping-options/[id]/route\")",- "/vendor/shipping-options/:id/rules/batch": "typeof import(\"@mercurjs/core-plugin/api/vendor/shipping-options/[id]/rules/batch/route\")",- "/vendor/shipping-profiles": "typeof import(\"@mercurjs/core-plugin/api/vendor/shipping-profiles/route\")",- "/vendor/shipping-profiles/:id": "typeof import(\"@mercurjs/core-plugin/api/vendor/shipping-profiles/[id]/route\")",- "/vendor/stock-locations": "typeof import(\"@mercurjs/core-plugin/api/vendor/stock-locations/route\")",- "/vendor/stock-locations/:id": "typeof import(\"@mercurjs/core-plugin/api/vendor/stock-locations/[id]/route\")",- "/vendor/stock-locations/:id/fulfillment-providers": "typeof import(\"@mercurjs/core-plugin/api/vendor/stock-locations/[id]/fulfillment-providers/route\")",- "/vendor/stock-locations/:id/fulfillment-sets": "typeof import(\"@mercurjs/core-plugin/api/vendor/stock-locations/[id]/fulfillment-sets/route\")",- "/vendor/stock-locations/:id/sales-channels": "typeof import(\"@mercurjs/core-plugin/api/vendor/stock-locations/[id]/sales-channels/route\")",- "/vendor/uploads": "typeof import(\"@mercurjs/core-plugin/api/vendor/uploads/route\")",+ "/vendor/campaigns": "typeof import(\"@mercurjs/core/api/vendor/campaigns/route\")",+ "/vendor/campaigns/:id": "typeof import(\"@mercurjs/core/api/vendor/campaigns/[id]/route\")",+ "/vendor/campaigns/:id/promotions": "typeof import(\"@mercurjs/core/api/vendor/campaigns/[id]/promotions/route\")",+ "/vendor/collections": "typeof import(\"@mercurjs/core/api/vendor/collections/route\")",+ "/vendor/collections/:id": "typeof import(\"@mercurjs/core/api/vendor/collections/[id]/route\")",+ "/vendor/collections/:id/products": "typeof import(\"@mercurjs/core/api/vendor/collections/[id]/products/route\")",+ "/vendor/currencies": "typeof import(\"@mercurjs/core/api/vendor/currencies/route\")",+ "/vendor/currencies/:code": "typeof import(\"@mercurjs/core/api/vendor/currencies/[code]/route\")",+ "/vendor/customers": "typeof import(\"@mercurjs/core/api/vendor/customers/route\")",+ "/vendor/customers/:id": "typeof import(\"@mercurjs/core/api/vendor/customers/[id]/route\")",+ "/vendor/fulfillment-sets/:id": "typeof import(\"@mercurjs/core/api/vendor/fulfillment-sets/[id]/route\")",+ "/vendor/fulfillment-sets/:id/service-zones": "typeof import(\"@mercurjs/core/api/vendor/fulfillment-sets/[id]/service-zones/route\")",+ "/vendor/fulfillment-sets/:id/service-zones/:zone_id": "typeof import(\"@mercurjs/core/api/vendor/fulfillment-sets/[id]/service-zones/[zone_id]/route\")",+ "/vendor/inventory-items": "typeof import(\"@mercurjs/core/api/vendor/inventory-items/route\")",+ "/vendor/inventory-items/:id": "typeof import(\"@mercurjs/core/api/vendor/inventory-items/[id]/route\")",+ "/vendor/inventory-items/:id/location-levels": "typeof import(\"@mercurjs/core/api/vendor/inventory-items/[id]/location-levels/route\")",+ "/vendor/inventory-items/:id/location-levels/:location_id": "typeof import(\"@mercurjs/core/api/vendor/inventory-items/[id]/location-levels/[location_id]/route\")",+ "/vendor/inventory-items/:id/location-levels/batch": "typeof import(\"@mercurjs/core/api/vendor/inventory-items/[id]/location-levels/batch/route\")",+ "/vendor/orders": "typeof import(\"@mercurjs/core/api/vendor/orders/route\")",+ "/vendor/orders/:id": "typeof import(\"@mercurjs/core/api/vendor/orders/[id]/route\")",+ "/vendor/orders/:id/cancel": "typeof import(\"@mercurjs/core/api/vendor/orders/[id]/cancel/route\")",+ "/vendor/orders/:id/changes": "typeof import(\"@mercurjs/core/api/vendor/orders/[id]/changes/route\")",+ "/vendor/orders/:id/complete": "typeof import(\"@mercurjs/core/api/vendor/orders/[id]/complete/route\")",+ "/vendor/orders/:id/fulfillments": "typeof import(\"@mercurjs/core/api/vendor/orders/[id]/fulfillments/route\")",+ "/vendor/orders/:id/fulfillments/:fulfillment_id/cancel": "typeof import(\"@mercurjs/core/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/cancel/route\")",+ "/vendor/orders/:id/fulfillments/:fulfillment_id/mark-as-delivered": "typeof import(\"@mercurjs/core/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/mark-as-delivered/route\")",+ "/vendor/orders/:id/fulfillments/:fulfillment_id/shipments": "typeof import(\"@mercurjs/core/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/shipments/route\")",+ "/vendor/orders/:id/preview": "typeof import(\"@mercurjs/core/api/vendor/orders/[id]/preview/route\")",+ "/vendor/payments": "typeof import(\"@mercurjs/core/api/vendor/payments/route\")",+ "/vendor/payments/:id": "typeof import(\"@mercurjs/core/api/vendor/payments/[id]/route\")",+ "/vendor/payments/:id/capture": "typeof import(\"@mercurjs/core/api/vendor/payments/[id]/capture/route\")",+ "/vendor/payments/:id/refund": "typeof import(\"@mercurjs/core/api/vendor/payments/[id]/refund/route\")",+ "/vendor/payments/payment-providers": "typeof import(\"@mercurjs/core/api/vendor/payments/payment-providers/route\")",+ "/vendor/payout-accounts": "typeof import(\"@mercurjs/core/api/vendor/payout-accounts/route\")",+ "/vendor/payout-accounts/:id": "typeof import(\"@mercurjs/core/api/vendor/payout-accounts/[id]/route\")",+ "/vendor/payout-accounts/:id/onboarding": "typeof import(\"@mercurjs/core/api/vendor/payout-accounts/[id]/onboarding/route\")",+ "/vendor/payouts": "typeof import(\"@mercurjs/core/api/vendor/payouts/route\")",+ "/vendor/payouts/:id": "typeof import(\"@mercurjs/core/api/vendor/payouts/[id]/route\")",+ "/vendor/price-lists": "typeof import(\"@mercurjs/core/api/vendor/price-lists/route\")",+ "/vendor/price-lists/:id": "typeof import(\"@mercurjs/core/api/vendor/price-lists/[id]/route\")",+ "/vendor/price-lists/:id/products": "typeof import(\"@mercurjs/core/api/vendor/price-lists/[id]/products/route\")",+ "/vendor/price-preferences": "typeof import(\"@mercurjs/core/api/vendor/price-preferences/route\")",+ "/vendor/price-preferences/:id": "typeof import(\"@mercurjs/core/api/vendor/price-preferences/[id]/route\")",+ "/vendor/product-categories": "typeof import(\"@mercurjs/core/api/vendor/product-categories/route\")",+ "/vendor/product-categories/:id": "typeof import(\"@mercurjs/core/api/vendor/product-categories/[id]/route\")",+ "/vendor/product-categories/:id/products": "typeof import(\"@mercurjs/core/api/vendor/product-categories/[id]/products/route\")",+ "/vendor/product-tags": "typeof import(\"@mercurjs/core/api/vendor/product-tags/route\")",+ "/vendor/product-tags/:id": "typeof import(\"@mercurjs/core/api/vendor/product-tags/[id]/route\")",+ "/vendor/product-types": "typeof import(\"@mercurjs/core/api/vendor/product-types/route\")",+ "/vendor/product-types/:id": "typeof import(\"@mercurjs/core/api/vendor/product-types/[id]/route\")",+ "/vendor/products": "typeof import(\"@mercurjs/core/api/vendor/products/route\")",+ "/vendor/products/:id": "typeof import(\"@mercurjs/core/api/vendor/products/[id]/route\")",+ "/vendor/products/:id/options": "typeof import(\"@mercurjs/core/api/vendor/products/[id]/options/route\")",+ "/vendor/products/:id/options/:option_id": "typeof import(\"@mercurjs/core/api/vendor/products/[id]/options/[option_id]/route\")",+ "/vendor/products/:id/variants": "typeof import(\"@mercurjs/core/api/vendor/products/[id]/variants/route\")",+ "/vendor/products/:id/variants/:variant_id": "typeof import(\"@mercurjs/core/api/vendor/products/[id]/variants/[variant_id]/route\")",+ "/vendor/promotions": "typeof import(\"@mercurjs/core/api/vendor/promotions/route\")",+ "/vendor/promotions/:id": "typeof import(\"@mercurjs/core/api/vendor/promotions/[id]/route\")",+ "/vendor/promotions/:id/:rule_type": "typeof import(\"@mercurjs/core/api/vendor/promotions/[id]/[rule_type]/route\")",+ "/vendor/promotions/:id/buy-rules/batch": "typeof import(\"@mercurjs/core/api/vendor/promotions/[id]/buy-rules/batch/route\")",+ "/vendor/promotions/:id/rules/batch": "typeof import(\"@mercurjs/core/api/vendor/promotions/[id]/rules/batch/route\")",+ "/vendor/promotions/:id/target-rules/batch": "typeof import(\"@mercurjs/core/api/vendor/promotions/[id]/target-rules/batch/route\")",+ "/vendor/promotions/rule-attribute-options/:rule_type": "typeof import(\"@mercurjs/core/api/vendor/promotions/rule-attribute-options/[rule_type]/route\")",+ "/vendor/promotions/rule-value-options/:rule_type/:rule_attribute_id": "typeof import(\"@mercurjs/core/api/vendor/promotions/rule-value-options/[rule_type]/[rule_attribute_id]/route\")",+ "/vendor/refund-reasons": "typeof import(\"@mercurjs/core/api/vendor/refund-reasons/route\")",+ "/vendor/refund-reasons/:id": "typeof import(\"@mercurjs/core/api/vendor/refund-reasons/[id]/route\")",+ "/vendor/regions": "typeof import(\"@mercurjs/core/api/vendor/regions/route\")",+ "/vendor/regions/:id": "typeof import(\"@mercurjs/core/api/vendor/regions/[id]/route\")",+ "/vendor/return-reasons": "typeof import(\"@mercurjs/core/api/vendor/return-reasons/route\")",+ "/vendor/return-reasons/:id": "typeof import(\"@mercurjs/core/api/vendor/return-reasons/[id]/route\")",+ "/vendor/returns": "typeof import(\"@mercurjs/core/api/vendor/returns/route\")",+ "/vendor/returns/:id": "typeof import(\"@mercurjs/core/api/vendor/returns/[id]/route\")",+ "/vendor/returns/:id/cancel": "typeof import(\"@mercurjs/core/api/vendor/returns/[id]/cancel/route\")",+ "/vendor/returns/:id/dismiss-items": "typeof import(\"@mercurjs/core/api/vendor/returns/[id]/dismiss-items/route\")",+ "/vendor/returns/:id/dismiss-items/:action_id": "typeof import(\"@mercurjs/core/api/vendor/returns/[id]/dismiss-items/[action_id]/route\")",+ "/vendor/returns/:id/receive": "typeof import(\"@mercurjs/core/api/vendor/returns/[id]/receive/route\")",+ "/vendor/returns/:id/receive-items": "typeof import(\"@mercurjs/core/api/vendor/returns/[id]/receive-items/route\")",+ "/vendor/returns/:id/receive-items/:action_id": "typeof import(\"@mercurjs/core/api/vendor/returns/[id]/receive-items/[action_id]/route\")",+ "/vendor/returns/:id/receive/confirm": "typeof import(\"@mercurjs/core/api/vendor/returns/[id]/receive/confirm/route\")",+ "/vendor/returns/:id/request": "typeof import(\"@mercurjs/core/api/vendor/returns/[id]/request/route\")",+ "/vendor/returns/:id/request-items": "typeof import(\"@mercurjs/core/api/vendor/returns/[id]/request-items/route\")",+ "/vendor/returns/:id/request-items/:action_id": "typeof import(\"@mercurjs/core/api/vendor/returns/[id]/request-items/[action_id]/route\")",+ "/vendor/returns/:id/shipping-method": "typeof import(\"@mercurjs/core/api/vendor/returns/[id]/shipping-method/route\")",+ "/vendor/returns/:id/shipping-method/:action_id": "typeof import(\"@mercurjs/core/api/vendor/returns/[id]/shipping-method/[action_id]/route\")",+ "/vendor/sales-channels": "typeof import(\"@mercurjs/core/api/vendor/sales-channels/route\")",+ "/vendor/sales-channels/:id": "typeof import(\"@mercurjs/core/api/vendor/sales-channels/[id]/route\")",+ "/vendor/sales-channels/:id/products": "typeof import(\"@mercurjs/core/api/vendor/sales-channels/[id]/products/route\")",+ "/vendor/sellers": "typeof import(\"@mercurjs/core/api/vendor/sellers/route\")",+ "/vendor/sellers/me": "typeof import(\"@mercurjs/core/api/vendor/sellers/me/route\")",+ "/vendor/shipping-option-types": "typeof import(\"@mercurjs/core/api/vendor/shipping-option-types/route\")",+ "/vendor/shipping-option-types/:id": "typeof import(\"@mercurjs/core/api/vendor/shipping-option-types/[id]/route\")",+ "/vendor/shipping-options": "typeof import(\"@mercurjs/core/api/vendor/shipping-options/route\")",+ "/vendor/shipping-options/:id": "typeof import(\"@mercurjs/core/api/vendor/shipping-options/[id]/route\")",+ "/vendor/shipping-options/:id/rules/batch": "typeof import(\"@mercurjs/core/api/vendor/shipping-options/[id]/rules/batch/route\")",+ "/vendor/shipping-profiles": "typeof import(\"@mercurjs/core/api/vendor/shipping-profiles/route\")",+ "/vendor/shipping-profiles/:id": "typeof import(\"@mercurjs/core/api/vendor/shipping-profiles/[id]/route\")",+ "/vendor/stock-locations": "typeof import(\"@mercurjs/core/api/vendor/stock-locations/route\")",+ "/vendor/stock-locations/:id": "typeof import(\"@mercurjs/core/api/vendor/stock-locations/[id]/route\")",+ "/vendor/stock-locations/:id/fulfillment-providers": "typeof import(\"@mercurjs/core/api/vendor/stock-locations/[id]/fulfillment-providers/route\")",+ "/vendor/stock-locations/:id/fulfillment-sets": "typeof import(\"@mercurjs/core/api/vendor/stock-locations/[id]/fulfillment-sets/route\")",+ "/vendor/stock-locations/:id/sales-channels": "typeof import(\"@mercurjs/core/api/vendor/stock-locations/[id]/sales-channels/route\")",+ "/vendor/uploads": "typeof import(\"@mercurjs/core/api/vendor/uploads/route\")",}\ No newline at end of filediff --git a/packages/cli/src/codegen/index.ts b/packages/cli/src/codegen/index.tsindex a5060f0e7..b8a33afd3 100644--- a/packages/cli/src/codegen/index.ts+++ b/packages/cli/src/codegen/index.ts@@ -127,7 +127,7 @@ export type Routes = ${routesType};}export async function writeRouteTypes(rootDir: string) {- const entryFilePath = path.join(rootDir, DIST_DIR, "index.ts");+ const entryFilePath = path.join(rootDir, DIST_DIR, "index.d.ts");const apiDir = path.join(rootDir, "src", "api");const entryDir = path.dirname(entryFilePath);diff --git a/packages/cli/src/commands/build.ts b/packages/cli/src/commands/build.tsnew file mode 100644index 000000000..1c5650744--- /dev/null+++ b/packages/cli/src/commands/build.ts@@ -0,0 +1,59 @@+import * as path from "path";+import { Command } from "commander";+import { z } from "zod";+import spawn from "cross-spawn";+import { writeRouteTypes } from "@/src/codegen";+import { getCommandBin } from "@/src/utils/get-command-bin";+import { handleError } from "@/src/utils/handle-error";+import { logger } from "@/src/utils/logger";++export const buildOptionsSchema = z.object({+ cwd: z.string(),+});++export const build = new Command()+ .name("build")+ .description("build the mercur application")+ .option(+ "-c, --cwd <cwd>",+ "the working directory. defaults to the current directory.",+ process.cwd()+ )+ .allowUnknownOption()+ .action(async (opts) => {+ await runBuild({+ cwd: path.resolve(opts.cwd),+ });+ });++async function runBuild(opts: z.infer<typeof buildOptionsSchema>) {+ try {+ const options = buildOptionsSchema.parse(opts);++ await writeRouteTypes(options.cwd);+ const medusaBin = await getCommandBin("@medusajs/cli", "medusa", options.cwd);++ const spawnCommand = process.argv+ .slice(2)+ .filter((arg) => !["build"].includes(arg));++ return new Promise<void>((res, rej) => {+ spawn(medusaBin, ["build", ...spawnCommand], {+ cwd: options.cwd,+ env: { ...process.env, FORCE_COLOR: "3" },+ stdio: "inherit",+ })+ .on("exit", (code: number | null) => {+ if (code === 0 || code === null) {+ res();+ } else {+ process.exit(code);+ }+ })+ .on("error", rej);+ });+ } catch (error) {+ logger.break();+ handleError(error);+ }+}diff --git a/packages/cli/src/commands/develop.ts b/packages/cli/src/commands/develop.tsnew file mode 100644index 000000000..89814942b--- /dev/null+++ b/packages/cli/src/commands/develop.ts@@ -0,0 +1,63 @@+import * as path from "path";+import { Command } from "commander";+import { z } from "zod";+import spawn from "cross-spawn";+import { writeRouteTypes } from "@/src/codegen";+import { getCommandBin } from "@/src/utils/get-command-bin";+import { patchMedusa } from "@/src/utils/patch-medusa";+import { handleError } from "@/src/utils/handle-error";+import { logger } from "@/src/utils/logger";++export const developOptionsSchema = z.object({+ cwd: z.string(),+});++export const develop = new Command()+ .name("develop")+ .description("start the mercur development server")+ .option(+ "-c, --cwd <cwd>",+ "the working directory. defaults to the current directory.",+ process.cwd()+ )+ .allowUnknownOption()+ .action(async (opts) => {+ await runDevelop({+ cwd: path.resolve(opts.cwd),+ });+ });++async function runDevelop(opts: z.infer<typeof developOptionsSchema>) {+ try {+ const options = developOptionsSchema.parse(opts);++ await writeRouteTypes(options.cwd);+ await patchMedusa();++ const medusaBin = await getCommandBin("@medusajs/cli", "medusa", options.cwd);++ // Pass through any extra args after "develop"+ const spawnCommand = process.argv+ .slice(2)+ .filter((arg) => !["develop"].includes(arg));++ return new Promise<void>((res, rej) => {+ spawn(medusaBin, ["develop", ...spawnCommand], {+ cwd: options.cwd,+ env: { ...process.env, FORCE_COLOR: "3" },+ stdio: "inherit",+ })+ .on("exit", (code: number | null) => {+ if (code === 0 || code === null) {+ res();+ } else {+ process.exit(code);+ }+ })+ .on("error", rej);+ });+ } catch (error) {+ logger.break();+ handleError(error);+ }+}diff --git a/packages/cli/src/commands/start.ts b/packages/cli/src/commands/start.tsnew file mode 100644index 000000000..f6ed0644c--- /dev/null+++ b/packages/cli/src/commands/start.ts@@ -0,0 +1,62 @@+import * as path from "path";+import { Command } from "commander";+import { z } from "zod";+import spawn from "cross-spawn";+import { writeRouteTypes } from "@/src/codegen";+import { getCommandBin } from "@/src/utils/get-command-bin";+import { patchMedusa } from "@/src/utils/patch-medusa";+import { handleError } from "@/src/utils/handle-error";+import { logger } from "@/src/utils/logger";++export const startOptionsSchema = z.object({+ cwd: z.string(),+});++export const start = new Command()+ .name("start")+ .description("start the mercur application")+ .option(+ "-c, --cwd <cwd>",+ "the working directory. defaults to the current directory.",+ process.cwd()+ )+ .allowUnknownOption()+ .action(async (opts) => {+ await runStart({+ cwd: path.resolve(opts.cwd),+ });+ });++async function runStart(opts: z.infer<typeof startOptionsSchema>) {+ try {+ const options = startOptionsSchema.parse(opts);++ await writeRouteTypes(options.cwd);+ await patchMedusa();++ const medusaBin = await getCommandBin("@medusajs/cli", "medusa", options.cwd);++ const spawnCommand = process.argv+ .slice(2)+ .filter((arg) => !["start"].includes(arg));++ return new Promise<void>((res, rej) => {+ spawn(medusaBin, ["start", ...spawnCommand], {+ cwd: options.cwd,+ env: { ...process.env, FORCE_COLOR: "3" },+ stdio: "inherit",+ })+ .on("exit", (code: number | null) => {+ if (code === 0 || code === null) {+ res();+ } else {+ process.exit(code);+ }+ })+ .on("error", rej);+ });+ } catch (error) {+ logger.break();+ handleError(error);+ }+}diff --git a/packages/cli/src/index.ts b/packages/cli/src/index.tsindex 5c8786d10..644c1858f 100755--- a/packages/cli/src/index.ts+++ b/packages/cli/src/index.ts@@ -12,6 +12,9 @@ import { init } from "./commands/init";import { search } from "./commands/search";import { telemetry } from "./commands/telemetry";import { view } from "./commands/view";+import { build } from "./commands/build";+import { develop } from "./commands/develop";+import { start } from "./commands/start";import { pluginBuild } from "./commands/plugin-build";process.on("SIGINT", () => process.exit(0));@@ -39,7 +42,10 @@ async function main() {.addCommand(search).addCommand(telemetry).addCommand(view)- .addCommand(pluginBuild);+ .addCommand(pluginBuild)+ .addCommand(build)+ .addCommand(develop)+ .addCommand(start);program.parse();}diff --git a/packages/cli/src/utils/get-command-bin.ts b/packages/cli/src/utils/get-command-bin.tsnew file mode 100644index 000000000..38b786e9c--- /dev/null+++ b/packages/cli/src/utils/get-command-bin.ts@@ -0,0 +1,27 @@+import * as path from "path";+import { readFileSync } from "fs";+import { packageDirectory } from "pkg-dir";+import resolveCwd from "resolve-cwd";++export async function resolveBinAsync(pkg: string, executable = pkg) {+ const resolved = resolveCwd(pkg);+ const pkgDir = await packageDirectory({ cwd: resolved });++ if (!pkgDir) throw new Error(`Could not find package.json for '${pkg}'`);++ const { bin } = JSON.parse(readFileSync(path.join(pkgDir, "package.json"), "utf-8"));+ const binPath = typeof bin === "object" ? bin[executable] : bin;++ if (!binPath) throw new Error(`No bin '${executable}' in module '${pkg}'`);++ return path.join(pkgDir, binPath);+}++export async function getCommandBin(+ command: string,+ executable: string = command,+ rootFolder: string = process.cwd()+): Promise<string> {+ const bin = await resolveBinAsync(command, executable);+ return path.resolve(rootFolder, bin);+}diff --git a/packages/cli/src/utils/patch-medusa.ts b/packages/cli/src/utils/patch-medusa.tsnew file mode 100644index 000000000..f740d6a0a--- /dev/null+++ b/packages/cli/src/utils/patch-medusa.ts@@ -0,0 +1,70 @@+import { writeFileSync } from "fs";+import { join } from "path";+import fg from "fast-glob";+import resolveCwd from "resolve-cwd";+import { packageDirectory } from "pkg-dir";+import { logger } from "@/src/utils/logger";++/**+ * Middleware files within @medusajs/medusa that Mercur overrides.+ * Each entry maps a file path to the named export that must remain+ * as an empty array so the parent aggregator can still spread it.+ */+const MIDDLEWARES_TO_DISABLE: Record<string, string> = {+ "dist/api/admin/products/middlewares.js": "adminProductRoutesMiddlewares",+ "dist/api/admin/product-variants/middlewares.js": "adminProductVariantRoutesMiddlewares",+};++/**+ * Route directories within @medusajs/medusa to disable.+ * All route.js files under these globs get patched with+ * defineFileConfig({ isDisabled: () => true }).+ */+const ROUTE_GLOBS_TO_DISABLE = [+ "dist/api/admin/products/**/route.js",+ "dist/api/admin/product-variants/**/route.js",+];++const DISABLED_ROUTE_CONTENT = `"use strict";+Object.defineProperty(exports, "__esModule", { value: true });+const utils_1 = require("@medusajs/framework/utils");+(0, utils_1.defineFileConfig)({+ isDisabled: () => true,+});+`;++function buildDisabledMiddlewareContent(exportName: string) {+ return `"use strict";+Object.defineProperty(exports, "__esModule", { value: true });+exports.${exportName} = void 0;+exports.${exportName} = [];+`;+}++export async function patchMedusa() {+ try {+ const resolved = resolveCwd("@medusajs/medusa");+ const medusaDir = await packageDirectory({ cwd: resolved });++ if (!medusaDir) {+ logger.warn("Could not find @medusajs/medusa package directory, skipping patches.");+ return;+ }++ // Patch middleware files (export empty arrays)+ for (const [file, exportName] of Object.entries(MIDDLEWARES_TO_DISABLE)) {+ const filePath = join(medusaDir, file);+ writeFileSync(filePath, buildDisabledMiddlewareContent(exportName));+ }++ // Patch route files (defineFileConfig isDisabled)+ for (const glob of ROUTE_GLOBS_TO_DISABLE) {+ const routeFiles = await fg(glob, { cwd: medusaDir, absolute: true });+ for (const routeFile of routeFiles) {+ writeFileSync(routeFile, DISABLED_ROUTE_CONTENT);+ }+ }+ } catch (err) {+ logger.error(`Failed to patch Medusa: ${err}`);+ }+}diff --git a/packages/core-plugin/.gitignore b/packages/core/.gitignoresimilarity index 100%rename from packages/core-plugin/.gitignorerename to packages/core/.gitignorediff --git a/packages/core-plugin/.mercur/_generated/index.ts b/packages/core/.mercur/_generated/index.tssimilarity index 99%rename from packages/core-plugin/.mercur/_generated/index.tsrename to packages/core/.mercur/_generated/index.tsindex 180c9182f..8a9cab9ab 100644--- a/packages/core-plugin/.mercur/_generated/index.ts+++ b/packages/core/.mercur/_generated/index.ts@@ -142,7 +142,7 @@ export type Routes = {$id: typeof import("@medusajs/medusa/api/admin/invites/[id]/route") & {resend: typeof import("@medusajs/medusa/api/admin/invites/[id]/resend/route");};- accept: typeof import("@mercurjs/core-plugin/api/admin/invites/accept/route");+ accept: typeof import("@mercurjs/core/api/admin/invites/accept/route");};locales: typeof import("@medusajs/medusa/api/admin/locales/route") & {$code: typeof import("@medusajs/medusa/api/admin/locales/[code]/route");@@ -427,7 +427,7 @@ export type Routes = {$id: typeof import("../../src/api/admin/payouts/[id]/route");};sellers: typeof import("../../src/api/admin/sellers/route") & {- invite: typeof import("@mercurjs/core-plugin/api/admin/sellers/invite/route");+ invite: typeof import("@mercurjs/core/api/admin/sellers/invite/route");$id: typeof import("../../src/api/admin/sellers/[id]/route") & {address: typeof import("../../src/api/admin/sellers/[id]/address/route");approve: typeof import("../../src/api/admin/sellers/[id]/approve/route");diff --git a/packages/core/.mercur/index.d.ts b/packages/core/.mercur/index.d.tsnew file mode 100644index 000000000..8a9cab9ab--- /dev/null+++ b/packages/core/.mercur/index.d.ts@@ -0,0 +1,763 @@+// This file is generated automatically by Mercur CLI+// Do not edit this file manually++export type Routes = {+ admin: {+ apiKeys: typeof import("@medusajs/medusa/api/admin/api-keys/route") & {+ $id: typeof import("@medusajs/medusa/api/admin/api-keys/[id]/route") & {+ revoke: typeof import("@medusajs/medusa/api/admin/api-keys/[id]/revoke/route");+ salesChannels: typeof import("@medusajs/medusa/api/admin/api-keys/[id]/sales-channels/route");+ };+ };+ campaigns: typeof import("@medusajs/medusa/api/admin/campaigns/route") & {+ $id: typeof import("@medusajs/medusa/api/admin/campaigns/[id]/route") & {+ promotions: typeof import("@medusajs/medusa/api/admin/campaigns/[id]/promotions/route");+ };+ };+ claims: typeof import("@medusajs/medusa/api/admin/claims/route") & {+ $id: typeof import("@medusajs/medusa/api/admin/claims/[id]/route") & {+ cancel: typeof import("@medusajs/medusa/api/admin/claims/[id]/cancel/route");+ claimItems: typeof import("@medusajs/medusa/api/admin/claims/[id]/claim-items/route") & {+ $actionId: typeof import("@medusajs/medusa/api/admin/claims/[id]/claim-items/[action_id]/route");+ };+ inbound: {+ items: typeof import("@medusajs/medusa/api/admin/claims/[id]/inbound/items/route") & {+ $actionId: typeof import("@medusajs/medusa/api/admin/claims/[id]/inbound/items/[action_id]/route");+ };+ shippingMethod: typeof import("@medusajs/medusa/api/admin/claims/[id]/inbound/shipping-method/route") & {+ $actionId: typeof import("@medusajs/medusa/api/admin/claims/[id]/inbound/shipping-method/[action_id]/route");+ };+ };+ outbound: {+ items: typeof import("@medusajs/medusa/api/admin/claims/[id]/outbound/items/route") & {+ $actionId: typeof import("@medusajs/medusa/api/admin/claims/[id]/outbound/items/[action_id]/route");+ };+ shippingMethod: typeof import("@medusajs/medusa/api/admin/claims/[id]/outbound/shipping-method/route") & {+ $actionId: typeof import("@medusajs/medusa/api/admin/claims/[id]/outbound/shipping-method/[action_id]/route");+ };+ };+ request: typeof import("@medusajs/medusa/api/admin/claims/[id]/request/route");+ };+ };+ collections: typeof import("@medusajs/medusa/api/admin/collections/route") & {+ $id: typeof import("@medusajs/medusa/api/admin/collections/[id]/route") & {+ products: typeof import("@medusajs/medusa/api/admin/collections/[id]/products/route");+ };+ };+ currencies: typeof import("@medusajs/medusa/api/admin/currencies/route") & {+ $code: typeof import("@medusajs/medusa/api/admin/currencies/[code]/route");+ };+ customerGroups: typeof import("@medusajs/medusa/api/admin/customer-groups/route") & {+ $id: typeof import("@medusajs/medusa/api/admin/customer-groups/[id]/route") & {+ customers: typeof import("@medusajs/medusa/api/admin/customer-groups/[id]/customers/route");+ };+ };+ customers: typeof import("@medusajs/medusa/api/admin/customers/route") & {+ $id: typeof import("@medusajs/medusa/api/admin/customers/[id]/route") & {+ addresses: typeof import("@medusajs/medusa/api/admin/customers/[id]/addresses/route") & {+ $addressId: typeof import("@medusajs/medusa/api/admin/customers/[id]/addresses/[address_id]/route");+ };+ customerGroups: typeof import("@medusajs/medusa/api/admin/customers/[id]/customer-groups/route");+ };+ };+ draftOrders: typeof import("@medusajs/medusa/api/admin/draft-orders/route") & {+ $id: typeof import("@medusajs/medusa/api/admin/draft-orders/[id]/route") & {+ convertToOrder: typeof import("@medusajs/medusa/api/admin/draft-orders/[id]/convert-to-order/route");+ edit: typeof import("@medusajs/medusa/api/admin/draft-orders/[id]/edit/route") & {+ confirm: typeof import("@medusajs/medusa/api/admin/draft-orders/[id]/edit/confirm/route");+ items: typeof import("@medusajs/medusa/api/admin/draft-orders/[id]/edit/items/route") & {+ $actionId: typeof import("@medusajs/medusa/api/admin/draft-orders/[id]/edit/items/[action_id]/route");+ item: {+ $itemId: typeof import("@medusajs/medusa/api/admin/draft-orders/[id]/edit/items/item/[item_id]/route");+ };+ };+ promotions: typeof import("@medusajs/medusa/api/admin/draft-orders/[id]/edit/promotions/route");+ request: typeof import("@medusajs/medusa/api/admin/draft-orders/[id]/edit/request/route");+ shippingMethods: typeof import("@medusajs/medusa/api/admin/draft-orders/[id]/edit/shipping-methods/route") & {+ $actionId: typeof import("@medusajs/medusa/api/admin/draft-orders/[id]/edit/shipping-methods/[action_id]/route");+ method: {+ $methodId: typeof import("@medusajs/medusa/api/admin/draft-orders/[id]/edit/shipping-methods/method/[method_id]/route");+ };+ };+ };+ };+ };+ exchanges: typeof import("@medusajs/medusa/api/admin/exchanges/route") & {+ $id: typeof import("@medusajs/medusa/api/admin/exchanges/[id]/route") & {+ cancel: typeof import("@medusajs/medusa/api/admin/exchanges/[id]/cancel/route");+ inbound: {+ items: typeof import("@medusajs/medusa/api/admin/exchanges/[id]/inbound/items/route") & {+ $actionId: typeof import("@medusajs/medusa/api/admin/exchanges/[id]/inbound/items/[action_id]/route");+ };+ shippingMethod: typeof import("@medusajs/medusa/api/admin/exchanges/[id]/inbound/shipping-method/route") & {+ $actionId: typeof import("@medusajs/medusa/api/admin/exchanges/[id]/inbound/shipping-method/[action_id]/route");+ };+ };+ outbound: {+ items: typeof import("@medusajs/medusa/api/admin/exchanges/[id]/outbound/items/route") & {+ $actionId: typeof import("@medusajs/medusa/api/admin/exchanges/[id]/outbound/items/[action_id]/route");+ };+ shippingMethod: typeof import("@medusajs/medusa/api/admin/exchanges/[id]/outbound/shipping-method/route") & {+ $actionId: typeof import("@medusajs/medusa/api/admin/exchanges/[id]/outbound/shipping-method/[action_id]/route");+ };+ };+ request: typeof import("@medusajs/medusa/api/admin/exchanges/[id]/request/route");+ };+ };+ featureFlags: typeof import("@medusajs/medusa/api/admin/feature-flags/route");+ fulfillmentProviders: typeof import("@medusajs/medusa/api/admin/fulfillment-providers/route") & {+ $id: {+ options: typeof import("@medusajs/medusa/api/admin/fulfillment-providers/[id]/options/route");+ };+ };+ fulfillmentSets: {+ $id: typeof import("@medusajs/medusa/api/admin/fulfillment-sets/[id]/route") & {+ serviceZones: typeof import("@medusajs/medusa/api/admin/fulfillment-sets/[id]/service-zones/route") & {+ $zoneId: typeof import("@medusajs/medusa/api/admin/fulfillment-sets/[id]/service-zones/[zone_id]/route");+ };+ };+ };+ fulfillments: typeof import("@medusajs/medusa/api/admin/fulfillments/route") & {+ $id: {+ cancel: typeof import("@medusajs/medusa/api/admin/fulfillments/[id]/cancel/route");+ shipment: typeof import("@medusajs/medusa/api/admin/fulfillments/[id]/shipment/route");+ };+ };+ index: {+ details: typeof import("@medusajs/medusa/api/admin/index/details/route");+ sync: typeof import("@medusajs/medusa/api/admin/index/sync/route");+ };+ inventoryItems: typeof import("@medusajs/medusa/api/admin/inventory-items/route") & {+ $id: typeof import("@medusajs/medusa/api/admin/inventory-items/[id]/route") & {+ locationLevels: typeof import("@medusajs/medusa/api/admin/inventory-items/[id]/location-levels/route") & {+ $locationId: typeof import("@medusajs/medusa/api/admin/inventory-items/[id]/location-levels/[location_id]/route");+ batch: typeof import("@medusajs/medusa/api/admin/inventory-items/[id]/location-levels/batch/route");+ };+ };+ locationLevels: {+ batch: typeof import("@medusajs/medusa/api/admin/inventory-items/location-levels/batch/route");+ };+ };+ invites: typeof import("@medusajs/medusa/api/admin/invites/route") & {+ $id: typeof import("@medusajs/medusa/api/admin/invites/[id]/route") & {+ resend: typeof import("@medusajs/medusa/api/admin/invites/[id]/resend/route");+ };+ accept: typeof import("@mercurjs/core/api/admin/invites/accept/route");+ };+ locales: typeof import("@medusajs/medusa/api/admin/locales/route") & {+ $code: typeof import("@medusajs/medusa/api/admin/locales/[code]/route");+ };+ notifications: typeof import("@medusajs/medusa/api/admin/notifications/route") & {+ $id: typeof import("@medusajs/medusa/api/admin/notifications/[id]/route");+ };+ orderChanges: {+ $id: typeof import("@medusajs/medusa/api/admin/order-changes/[id]/route");+ };+ orderEdits: typeof import("@medusajs/medusa/api/admin/order-edits/route") & {+ $id: typeof import("@medusajs/medusa/api/admin/order-edits/[id]/route") & {+ confirm: typeof import("@medusajs/medusa/api/admin/order-edits/[id]/confirm/route");+ items: typeof import("@medusajs/medusa/api/admin/order-edits/[id]/items/route") & {+ $actionId: typeof import("@medusajs/medusa/api/admin/order-edits/[id]/items/[action_id]/route");+ item: {+ $itemId: typeof import("@medusajs/medusa/api/admin/order-edits/[id]/items/item/[item_id]/route");+ };+ };+ request: typeof import("@medusajs/medusa/api/admin/order-edits/[id]/request/route");+ shippingMethod: typeof import("@medusajs/medusa/api/admin/order-edits/[id]/shipping-method/route") & {+ $actionId: typeof import("@medusajs/medusa/api/admin/order-edits/[id]/shipping-method/[action_id]/route");+ };+ };+ };+ orders: typeof import("../../src/api/admin/orders/route") & {+ $id: typeof import("@medusajs/medusa/api/admin/orders/[id]/route") & {+ archive: typeof import("@medusajs/medusa/api/admin/orders/[id]/archive/route");+ cancel: typeof import("@medusajs/medusa/api/admin/orders/[id]/cancel/route");+ changes: typeof import("@medusajs/medusa/api/admin/orders/[id]/changes/route");+ complete: typeof import("@medusajs/medusa/api/admin/orders/[id]/complete/route");+ creditLines: typeof import("@medusajs/medusa/api/admin/orders/[id]/credit-lines/route");+ fulfillments: typeof import("@medusajs/medusa/api/admin/orders/[id]/fulfillments/route") & {+ $fulfillmentId: {+ cancel: typeof import("@medusajs/medusa/api/admin/orders/[id]/fulfillments/[fulfillment_id]/cancel/route");+ markAsDelivered: typeof import("@medusajs/medusa/api/admin/orders/[id]/fulfillments/[fulfillment_id]/mark-as-delivered/route");+ shipments: typeof import("@medusajs/medusa/api/admin/orders/[id]/fulfillments/[fulfillment_id]/shipments/route");+ };+ };+ lineItems: typeof import("@medusajs/medusa/api/admin/orders/[id]/line-items/route");+ preview: typeof import("@medusajs/medusa/api/admin/orders/[id]/preview/route");+ shippingOptions: typeof import("@medusajs/medusa/api/admin/orders/[id]/shipping-options/route");+ transfer: typeof import("@medusajs/medusa/api/admin/orders/[id]/transfer/route") & {+ cancel: typeof import("@medusajs/medusa/api/admin/orders/[id]/transfer/cancel/route");+ };+ orderGroup: typeof import("../../src/api/admin/orders/[id]/order-group/route");+ };+ export: typeof import("@medusajs/medusa/api/admin/orders/export/route");+ };+ paymentCollections: typeof import("@medusajs/medusa/api/admin/payment-collections/route") & {+ $id: typeof import("@medusajs/medusa/api/admin/payment-collections/[id]/route") & {+ markAsPaid: typeof import("@medusajs/medusa/api/admin/payment-collections/[id]/mark-as-paid/route");+ };+ };+ payments: typeof import("@medusajs/medusa/api/admin/payments/route") & {+ $id: typeof import("@medusajs/medusa/api/admin/payments/[id]/route") & {+ capture: typeof import("@medusajs/medusa/api/admin/payments/[id]/capture/route");+ refund: typeof import("@medusajs/medusa/api/admin/payments/[id]/refund/route");+ };+ paymentProviders: typeof import("@medusajs/medusa/api/admin/payments/payment-providers/route");+ };+ plugins: typeof import("@medusajs/medusa/api/admin/plugins/route");+ priceLists: typeof import("@medusajs/medusa/api/admin/price-lists/route") & {+ $id: typeof import("@medusajs/medusa/api/admin/price-lists/[id]/route") & {+ prices: typeof import("@medusajs/medusa/api/admin/price-lists/[id]/prices/route") & {+ batch: typeof import("@medusajs/medusa/api/admin/price-lists/[id]/prices/batch/route");+ };+ products: typeof import("@medusajs/medusa/api/admin/price-lists/[id]/products/route");+ };+ };+ pricePreferences: typeof import("@medusajs/medusa/api/admin/price-preferences/route") & {+ $id: typeof import("@medusajs/medusa/api/admin/price-preferences/[id]/route");+ };+ productCategories: typeof import("@medusajs/medusa/api/admin/product-categories/route") & {+ $id: typeof import("@medusajs/medusa/api/admin/product-categories/[id]/route") & {+ products: typeof import("@medusajs/medusa/api/admin/product-categories/[id]/products/route");+ };+ };+ productTags: typeof import("@medusajs/medusa/api/admin/product-tags/route") & {+ $id: typeof import("@medusajs/medusa/api/admin/product-tags/[id]/route");+ };+ productTypes: typeof import("@medusajs/medusa/api/admin/product-types/route") & {+ $id: typeof import("@medusajs/medusa/api/admin/product-types/[id]/route");+ };+ productVariants: typeof import("@medusajs/medusa/api/admin/product-variants/route");+ products: typeof import("../../src/api/admin/products/route") & {+ $id: typeof import("@medusajs/medusa/api/admin/products/[id]/route") & {+ images: {+ $imageId: {+ variants: {+ batch: typeof import("@medusajs/medusa/api/admin/products/[id]/images/[image_id]/variants/batch/route");+ };+ };+ };+ options: typeof import("@medusajs/medusa/api/admin/products/[id]/options/route") & {+ $optionId: typeof import("@medusajs/medusa/api/admin/products/[id]/options/[option_id]/route");+ };+ variants: typeof import("@medusajs/medusa/api/admin/products/[id]/variants/route") & {+ $variantId: typeof import("@medusajs/medusa/api/admin/products/[id]/variants/[variant_id]/route") & {+ images: {+ batch: typeof import("@medusajs/medusa/api/admin/products/[id]/variants/[variant_id]/images/batch/route");+ };+ inventoryItems: typeof import("@medusajs/medusa/api/admin/products/[id]/variants/[variant_id]/inventory-items/route") & {+ $inventoryItemId: typeof import("@medusajs/medusa/api/admin/products/[id]/variants/[variant_id]/inventory-items/[inventory_item_id]/route");+ };+ };+ batch: typeof import("@medusajs/medusa/api/admin/products/[id]/variants/batch/route");+ inventoryItems: {+ batch: typeof import("@medusajs/medusa/api/admin/products/[id]/variants/inventory-items/batch/route");+ };+ };+ };+ batch: typeof import("@medusajs/medusa/api/admin/products/batch/route");+ export: typeof import("@medusajs/medusa/api/admin/products/export/route");+ import: typeof import("@medusajs/medusa/api/admin/products/import/route") & {+ $transactionId: {+ confirm: typeof import("@medusajs/medusa/api/admin/products/import/[transaction_id]/confirm/route");+ };+ };+ imports: typeof import("@medusajs/medusa/api/admin/products/imports/route") & {+ $transactionId: {+ confirm: typeof import("@medusajs/medusa/api/admin/products/imports/[transaction_id]/confirm/route");+ };+ };+ };+ promotions: typeof import("@medusajs/medusa/api/admin/promotions/route") & {+ $id: typeof import("@medusajs/medusa/api/admin/promotions/[id]/route") & {+ $ruleType: typeof import("@medusajs/medusa/api/admin/promotions/[id]/[rule_type]/route");+ buyRules: {+ batch: typeof import("@medusajs/medusa/api/admin/promotions/[id]/buy-rules/batch/route");+ };+ rules: {+ batch: typeof import("@medusajs/medusa/api/admin/promotions/[id]/rules/batch/route");+ };+ targetRules: {+ batch: typeof import("@medusajs/medusa/api/admin/promotions/[id]/target-rules/batch/route");+ };+ };+ ruleAttributeOptions: {+ $ruleType: typeof import("@medusajs/medusa/api/admin/promotions/rule-attribute-options/[rule_type]/route");+ };+ ruleValueOptions: {+ $ruleType: {+ $ruleAttributeId: typeof import("@medusajs/medusa/api/admin/promotions/rule-value-options/[rule_type]/[rule_attribute_id]/route");+ };+ };+ };+ rbac: {+ policies: typeof import("@medusajs/medusa/api/admin/rbac/policies/route") & {+ $id: typeof import("@medusajs/medusa/api/admin/rbac/policies/[id]/route");+ };+ roles: typeof import("@medusajs/medusa/api/admin/rbac/roles/route") & {+ $id: typeof import("@medusajs/medusa/api/admin/rbac/roles/[id]/route") & {+ policies: typeof import("@medusajs/medusa/api/admin/rbac/roles/[id]/policies/route") & {+ $policyId: typeof import("@medusajs/medusa/api/admin/rbac/roles/[id]/policies/[policy_id]/route");+ };+ };+ };+ };+ refundReasons: typeof import("@medusajs/medusa/api/admin/refund-reasons/route") & {+ $id: typeof import("@medusajs/medusa/api/admin/refund-reasons/[id]/route");+ };+ regions: typeof import("@medusajs/medusa/api/admin/regions/route") & {+ $id: typeof import("@medusajs/medusa/api/admin/regions/[id]/route");+ };+ reservations: typeof import("@medusajs/medusa/api/admin/reservations/route") & {+ $id: typeof import("@medusajs/medusa/api/admin/reservations/[id]/route");+ };+ returnReasons: typeof import("@medusajs/medusa/api/admin/return-reasons/route") & {+ $id: typeof import("@medusajs/medusa/api/admin/return-reasons/[id]/route");+ };+ returns: typeof import("@medusajs/medusa/api/admin/returns/route") & {+ $id: typeof import("@medusajs/medusa/api/admin/returns/[id]/route") & {+ cancel: typeof import("@medusajs/medusa/api/admin/returns/[id]/cancel/route");+ dismissItems: typeof import("@medusajs/medusa/api/admin/returns/[id]/dismiss-items/route") & {+ $actionId: typeof import("@medusajs/medusa/api/admin/returns/[id]/dismiss-items/[action_id]/route");+ };+ receive: typeof import("@medusajs/medusa/api/admin/returns/[id]/receive/route") & {+ confirm: typeof import("@medusajs/medusa/api/admin/returns/[id]/receive/confirm/route");+ };+ receiveItems: typeof import("@medusajs/medusa/api/admin/returns/[id]/receive-items/route") & {+ $actionId: typeof import("@medusajs/medusa/api/admin/returns/[id]/receive-items/[action_id]/route");+ };+ request: typeof import("@medusajs/medusa/api/admin/returns/[id]/request/route");+ requestItems: typeof import("@medusajs/medusa/api/admin/returns/[id]/request-items/route") & {+ $actionId: typeof import("@medusajs/medusa/api/admin/returns/[id]/request-items/[action_id]/route");+ };+ shippingMethod: typeof import("@medusajs/medusa/api/admin/returns/[id]/shipping-method/route") & {+ $actionId: typeof import("@medusajs/medusa/api/admin/returns/[id]/shipping-method/[action_id]/route");+ };+ };+ };+ salesChannels: typeof import("@medusajs/medusa/api/admin/sales-channels/route") & {+ $id: typeof import("@medusajs/medusa/api/admin/sales-channels/[id]/route") & {+ products: typeof import("@medusajs/medusa/api/admin/sales-channels/[id]/products/route");+ };+ };+ shippingOptionTypes: typeof import("@medusajs/medusa/api/admin/shipping-option-types/route") & {+ $id: typeof import("@medusajs/medusa/api/admin/shipping-option-types/[id]/route");+ };+ shippingOptions: typeof import("@medusajs/medusa/api/admin/shipping-options/route") & {+ $id: typeof import("@medusajs/medusa/api/admin/shipping-options/[id]/route") & {+ rules: {+ batch: typeof import("@medusajs/medusa/api/admin/shipping-options/[id]/rules/batch/route");+ };+ };+ };+ shippingProfiles: typeof import("@medusajs/medusa/api/admin/shipping-profiles/route") & {+ $id: typeof import("@medusajs/medusa/api/admin/shipping-profiles/[id]/route");+ };+ stockLocations: typeof import("@medusajs/medusa/api/admin/stock-locations/route") & {+ $id: typeof import("@medusajs/medusa/api/admin/stock-locations/[id]/route") & {+ fulfillmentProviders: typeof import("@medusajs/medusa/api/admin/stock-locations/[id]/fulfillment-providers/route");+ fulfillmentSets: typeof import("@medusajs/medusa/api/admin/stock-locations/[id]/fulfillment-sets/route");+ salesChannels: typeof import("@medusajs/medusa/api/admin/stock-locations/[id]/sales-channels/route");+ };+ };+ stores: typeof import("@medusajs/medusa/api/admin/stores/route") & {+ $id: typeof import("@medusajs/medusa/api/admin/stores/[id]/route");+ };+ taxProviders: typeof import("@medusajs/medusa/api/admin/tax-providers/route");+ taxRates: typeof import("@medusajs/medusa/api/admin/tax-rates/route") & {+ $id: typeof import("@medusajs/medusa/api/admin/tax-rates/[id]/route") & {+ rules: typeof import("@medusajs/medusa/api/admin/tax-rates/[id]/rules/route") & {+ $ruleId: typeof import("@medusajs/medusa/api/admin/tax-rates/[id]/rules/[rule_id]/route");+ };+ };+ };+ taxRegions: typeof import("@medusajs/medusa/api/admin/tax-regions/route") & {+ $id: typeof import("@medusajs/medusa/api/admin/tax-regions/[id]/route");+ };+ translations: typeof import("@medusajs/medusa/api/admin/translations/route") & {+ batch: typeof import("@medusajs/medusa/api/admin/translations/batch/route");+ entities: typeof import("@medusajs/medusa/api/admin/translations/entities/route");+ settings: typeof import("@medusajs/medusa/api/admin/translations/settings/route") & {+ batch: typeof import("@medusajs/medusa/api/admin/translations/settings/batch/route");+ };+ statistics: typeof import("@medusajs/medusa/api/admin/translations/statistics/route");+ };+ uploads: typeof import("@medusajs/medusa/api/admin/uploads/route") & {+ $id: typeof import("@medusajs/medusa/api/admin/uploads/[id]/route");+ presignedUrls: typeof import("@medusajs/medusa/api/admin/uploads/presigned-urls/route");+ };+ users: typeof import("@medusajs/medusa/api/admin/users/route") & {+ $id: typeof import("@medusajs/medusa/api/admin/users/[id]/route");+ me: typeof import("@medusajs/medusa/api/admin/users/me/route");+ };+ views: {+ $entity: {+ columns: typeof import("@medusajs/medusa/api/admin/views/[entity]/columns/route");+ configurations: typeof import("@medusajs/medusa/api/admin/views/[entity]/configurations/route") & {+ $id: typeof import("@medusajs/medusa/api/admin/views/[entity]/configurations/[id]/route");+ active: typeof import("@medusajs/medusa/api/admin/views/[entity]/configurations/active/route");+ };+ };+ };+ workflowsExecutions: typeof import("@medusajs/medusa/api/admin/workflows-executions/route") & {+ $id: typeof import("@medusajs/medusa/api/admin/workflows-executions/[id]/route");+ $workflowId: {+ $transactionId: typeof import("@medusajs/medusa/api/admin/workflows-executions/[workflow_id]/[transaction_id]/route") & {+ $stepId: {+ subscribe: typeof import("@medusajs/medusa/api/admin/workflows-executions/[workflow_id]/[transaction_id]/[step_id]/subscribe/route");+ };+ };+ run: typeof import("@medusajs/medusa/api/admin/workflows-executions/[workflow_id]/run/route");+ steps: {+ failure: typeof import("@medusajs/medusa/api/admin/workflows-executions/[workflow_id]/steps/failure/route");+ success: typeof import("@medusajs/medusa/api/admin/workflows-executions/[workflow_id]/steps/success/route");+ };+ subscribe: typeof import("@medusajs/medusa/api/admin/workflows-executions/[workflow_id]/subscribe/route");+ };+ };+ commissionRates: typeof import("../../src/api/admin/commission-rates/route") & {+ $id: typeof import("../../src/api/admin/commission-rates/[id]/route") & {+ rules: typeof import("../../src/api/admin/commission-rates/[id]/rules/route");+ };+ };+ orderGroups: typeof import("../../src/api/admin/order-groups/route") & {+ $id: typeof import("../../src/api/admin/order-groups/[id]/route");+ };+ payouts: typeof import("../../src/api/admin/payouts/route") & {+ $id: typeof import("../../src/api/admin/payouts/[id]/route");+ };+ sellers: typeof import("../../src/api/admin/sellers/route") & {+ invite: typeof import("@mercurjs/core/api/admin/sellers/invite/route");+ $id: typeof import("../../src/api/admin/sellers/[id]/route") & {+ address: typeof import("../../src/api/admin/sellers/[id]/address/route");+ approve: typeof import("../../src/api/admin/sellers/[id]/approve/route");+ members: typeof import("../../src/api/admin/sellers/[id]/members/route") & {+ $memberId: typeof import("../../src/api/admin/sellers/[id]/members/[member_id]/route");+ invite: typeof import("../../src/api/admin/sellers/[id]/members/invite/route");+ invites: typeof import("../../src/api/admin/sellers/[id]/members/invites/route");+ };+ paymentDetails: typeof import("../../src/api/admin/sellers/[id]/payment-details/route");+ professionalDetails: typeof import("../../src/api/admin/sellers/[id]/professional-details/route");+ suspend: typeof import("../../src/api/admin/sellers/[id]/suspend/route");+ terminate: typeof import("../../src/api/admin/sellers/[id]/terminate/route");+ unsuspend: typeof import("../../src/api/admin/sellers/[id]/unsuspend/route");+ unterminate: typeof import("../../src/api/admin/sellers/[id]/unterminate/route");+ };+ };+ attributes: typeof import("../../src/api/admin/attributes/route") & {+ $id: typeof import("../../src/api/admin/attributes/[id]/route") & {+ values: typeof import("../../src/api/admin/attributes/[id]/values/route") & {+ $valueId: typeof import("../../src/api/admin/attributes/[id]/values/[value_id]/route");+ };+ };+ };+ subscriptionPlans: typeof import("../../src/api/admin/subscription-plans/route") & {+ $id: typeof import("../../src/api/admin/subscription-plans/[id]/route") & {+ overrides: typeof import("../../src/api/admin/subscription-plans/[id]/overrides/route") & {+ $overrideId: typeof import("../../src/api/admin/subscription-plans/[id]/overrides/[override_id]/route");+ };+ };+ };+ };+ auth: {+ $actorType: {+ $authProvider: typeof import("@medusajs/medusa/api/auth/[actor_type]/[auth_provider]/route") & {+ callback: typeof import("@medusajs/medusa/api/auth/[actor_type]/[auth_provider]/callback/route");+ register: typeof import("@medusajs/medusa/api/auth/[actor_type]/[auth_provider]/register/route");+ resetPassword: typeof import("@medusajs/medusa/api/auth/[actor_type]/[auth_provider]/reset-password/route");+ update: typeof import("@medusajs/medusa/api/auth/[actor_type]/[auth_provider]/update/route");+ };+ };+ session: typeof import("@medusajs/medusa/api/auth/session/route");+ token: {+ refresh: typeof import("@medusajs/medusa/api/auth/token/refresh/route");+ };+ };+ store: {+ carts: typeof import("@medusajs/medusa/api/store/carts/route") & {+ $id: typeof import("@medusajs/medusa/api/store/carts/[id]/route") & {+ complete: typeof import("../../src/api/store/carts/[id]/complete/route");+ customer: typeof import("@medusajs/medusa/api/store/carts/[id]/customer/route");+ lineItems: typeof import("@medusajs/medusa/api/store/carts/[id]/line-items/route") & {+ $lineId: typeof import("@medusajs/medusa/api/store/carts/[id]/line-items/[line_id]/route");+ };+ promotions: typeof import("../../src/api/store/carts/[id]/promotions/route");+ shippingMethods: typeof import("../../src/api/store/carts/[id]/shipping-methods/route");+ taxes: typeof import("@medusajs/medusa/api/store/carts/[id]/taxes/route");+ };+ };+ collections: typeof import("@medusajs/medusa/api/store/collections/route") & {+ $id: typeof import("@medusajs/medusa/api/store/collections/[id]/route");+ };+ currencies: typeof import("@medusajs/medusa/api/store/currencies/route") & {+ $code: typeof import("@medusajs/medusa/api/store/currencies/[code]/route");+ };+ customers: typeof import("@medusajs/medusa/api/store/customers/route") & {+ me: typeof import("@medusajs/medusa/api/store/customers/me/route") & {+ addresses: typeof import("@medusajs/medusa/api/store/customers/me/addresses/route") & {+ $addressId: typeof import("@medusajs/medusa/api/store/customers/me/addresses/[address_id]/route");+ };+ };+ };+ locales: typeof import("@medusajs/medusa/api/store/locales/route");+ orders: typeof import("@medusajs/medusa/api/store/orders/route") & {+ $id: typeof import("@medusajs/medusa/api/store/orders/[id]/route") & {+ transfer: {+ accept: typeof import("@medusajs/medusa/api/store/orders/[id]/transfer/accept/route");+ cancel: typeof import("@medusajs/medusa/api/store/orders/[id]/transfer/cancel/route");+ decline: typeof import("@medusajs/medusa/api/store/orders/[id]/transfer/decline/route");+ request: typeof import("@medusajs/medusa/api/store/orders/[id]/transfer/request/route");+ };+ };+ };+ paymentCollections: typeof import("@medusajs/medusa/api/store/payment-collections/route") & {+ $id: {+ paymentSessions: typeof import("@medusajs/medusa/api/store/payment-collections/[id]/payment-sessions/route");+ };+ };+ paymentProviders: typeof import("@medusajs/medusa/api/store/payment-providers/route");+ productCategories: typeof import("@medusajs/medusa/api/store/product-categories/route") & {+ $id: typeof import("@medusajs/medusa/api/store/product-categories/[id]/route");+ };+ productTags: typeof import("@medusajs/medusa/api/store/product-tags/route") & {+ $id: typeof import("@medusajs/medusa/api/store/product-tags/[id]/route");+ };+ productTypes: typeof import("@medusajs/medusa/api/store/product-types/route") & {+ $id: typeof import("@medusajs/medusa/api/store/product-types/[id]/route");+ };+ productVariants: typeof import("@medusajs/medusa/api/store/product-variants/route") & {+ $id: typeof import("@medusajs/medusa/api/store/product-variants/[id]/route");+ };+ products: typeof import("@medusajs/medusa/api/store/products/route") & {+ $id: typeof import("@medusajs/medusa/api/store/products/[id]/route");+ };+ regions: typeof import("@medusajs/medusa/api/store/regions/route") & {+ $id: typeof import("@medusajs/medusa/api/store/regions/[id]/route");+ };+ returnReasons: typeof import("@medusajs/medusa/api/store/return-reasons/route") & {+ $id: typeof import("@medusajs/medusa/api/store/return-reasons/[id]/route");+ };+ returns: typeof import("@medusajs/medusa/api/store/returns/route");+ shippingOptions: typeof import("../../src/api/store/shipping-options/route") & {+ $id: {+ calculate: typeof import("@medusajs/medusa/api/store/shipping-options/[id]/calculate/route");+ };+ };+ orderGroups: typeof import("../../src/api/store/order-groups/route") & {+ $id: typeof import("../../src/api/store/order-groups/[id]/route");+ };+ sellers: typeof import("../../src/api/store/sellers/route") & {+ $id: typeof import("../../src/api/store/sellers/[id]/route");+ };+ };+ vendor: {+ campaigns: typeof import("../../src/api/vendor/campaigns/route") & {+ $id: typeof import("../../src/api/vendor/campaigns/[id]/route") & {+ promotions: typeof import("../../src/api/vendor/campaigns/[id]/promotions/route");+ };+ };+ collections: typeof import("../../src/api/vendor/collections/route") & {+ $id: typeof import("../../src/api/vendor/collections/[id]/route") & {+ products: typeof import("../../src/api/vendor/collections/[id]/products/route");+ };+ };+ currencies: typeof import("../../src/api/vendor/currencies/route") & {+ $code: typeof import("../../src/api/vendor/currencies/[code]/route");+ };+ customers: typeof import("../../src/api/vendor/customers/route") & {+ $id: typeof import("../../src/api/vendor/customers/[id]/route");+ };+ fulfillmentSets: {+ $id: typeof import("../../src/api/vendor/fulfillment-sets/[id]/route") & {+ serviceZones: typeof import("../../src/api/vendor/fulfillment-sets/[id]/service-zones/route") & {+ $zoneId: typeof import("../../src/api/vendor/fulfillment-sets/[id]/service-zones/[zone_id]/route");+ };+ };+ };+ inventoryItems: typeof import("../../src/api/vendor/inventory-items/route") & {+ $id: typeof import("../../src/api/vendor/inventory-items/[id]/route") & {+ locationLevels: typeof import("../../src/api/vendor/inventory-items/[id]/location-levels/route") & {+ $locationId: typeof import("../../src/api/vendor/inventory-items/[id]/location-levels/[location_id]/route");+ batch: typeof import("../../src/api/vendor/inventory-items/[id]/location-levels/batch/route");+ };+ };+ locationLevels: {+ batch: typeof import("../../src/api/vendor/inventory-items/location-levels/batch/route");+ };+ };+ orders: typeof import("../../src/api/vendor/orders/route") & {+ $id: typeof import("../../src/api/vendor/orders/[id]/route") & {+ cancel: typeof import("../../src/api/vendor/orders/[id]/cancel/route");+ changes: typeof import("../../src/api/vendor/orders/[id]/changes/route");+ complete: typeof import("../../src/api/vendor/orders/[id]/complete/route");+ fulfillments: typeof import("../../src/api/vendor/orders/[id]/fulfillments/route") & {+ $fulfillmentId: {+ cancel: typeof import("../../src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/cancel/route");+ markAsDelivered: typeof import("../../src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/mark-as-delivered/route");+ shipments: typeof import("../../src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/shipments/route");+ };+ };+ preview: typeof import("../../src/api/vendor/orders/[id]/preview/route");+ };+ };+ payments: typeof import("../../src/api/vendor/payments/route") & {+ $id: typeof import("../../src/api/vendor/payments/[id]/route") & {+ capture: typeof import("../../src/api/vendor/payments/[id]/capture/route");+ refund: typeof import("../../src/api/vendor/payments/[id]/refund/route");+ };+ paymentProviders: typeof import("../../src/api/vendor/payments/payment-providers/route");+ };+ payoutAccounts: typeof import("../../src/api/vendor/payout-accounts/route") & {+ $id: typeof import("../../src/api/vendor/payout-accounts/[id]/route") & {+ onboarding: typeof import("../../src/api/vendor/payout-accounts/[id]/onboarding/route");+ };+ };+ payouts: typeof import("../../src/api/vendor/payouts/route") & {+ $id: typeof import("../../src/api/vendor/payouts/[id]/route");+ };+ priceLists: typeof import("../../src/api/vendor/price-lists/route") & {+ $id: typeof import("../../src/api/vendor/price-lists/[id]/route") & {+ products: typeof import("../../src/api/vendor/price-lists/[id]/products/route");+ prices: typeof import("../../src/api/vendor/price-lists/[id]/prices/route") & {+ batch: typeof import("../../src/api/vendor/price-lists/[id]/prices/batch/route");+ };+ };+ };+ pricePreferences: typeof import("../../src/api/vendor/price-preferences/route") & {+ $id: typeof import("../../src/api/vendor/price-preferences/[id]/route");+ };+ productCategories: typeof import("../../src/api/vendor/product-categories/route") & {+ $id: typeof import("../../src/api/vendor/product-categories/[id]/route") & {+ products: typeof import("../../src/api/vendor/product-categories/[id]/products/route");+ };+ };+ productTags: typeof import("../../src/api/vendor/product-tags/route") & {+ $id: typeof import("../../src/api/vendor/product-tags/[id]/route");+ };+ productTypes: typeof import("../../src/api/vendor/product-types/route") & {+ $id: typeof import("../../src/api/vendor/product-types/[id]/route");+ };+ products: typeof import("../../src/api/vendor/products/route") & {+ $id: typeof import("../../src/api/vendor/products/[id]/route") & {+ options: typeof import("../../src/api/vendor/products/[id]/options/route") & {+ $optionId: typeof import("../../src/api/vendor/products/[id]/options/[option_id]/route");+ };+ variants: typeof import("../../src/api/vendor/products/[id]/variants/route") & {+ $variantId: typeof import("../../src/api/vendor/products/[id]/variants/[variant_id]/route") & {+ media: typeof import("../../src/api/vendor/products/[id]/variants/[variant_id]/media/route");+ };+ };+ attributes: typeof import("../../src/api/vendor/products/[id]/attributes/route") & {+ $attributeId: typeof import("../../src/api/vendor/products/[id]/attributes/[attribute_id]/route");+ };+ };+ };+ promotions: typeof import("../../src/api/vendor/promotions/route") & {+ $id: typeof import("../../src/api/vendor/promotions/[id]/route") & {+ $ruleType: typeof import("../../src/api/vendor/promotions/[id]/[rule_type]/route");+ buyRules: {+ batch: typeof import("../../src/api/vendor/promotions/[id]/buy-rules/batch/route");+ };+ rules: {+ batch: typeof import("../../src/api/vendor/promotions/[id]/rules/batch/route");+ };+ targetRules: {+ batch: typeof import("../../src/api/vendor/promotions/[id]/target-rules/batch/route");+ };+ };+ ruleAttributeOptions: {+ $ruleType: typeof import("../../src/api/vendor/promotions/rule-attribute-options/[rule_type]/route");+ };+ ruleValueOptions: {+ $ruleType: {+ $ruleAttributeId: typeof import("../../src/api/vendor/promotions/rule-value-options/[rule_type]/[rule_attribute_id]/route");+ };+ };+ };+ refundReasons: typeof import("../../src/api/vendor/refund-reasons/route") & {+ $id: typeof import("../../src/api/vendor/refund-reasons/[id]/route");+ };+ regions: typeof import("../../src/api/vendor/regions/route") & {+ $id: typeof import("../../src/api/vendor/regions/[id]/route");+ };+ returnReasons: typeof import("../../src/api/vendor/return-reasons/route") & {+ $id: typeof import("../../src/api/vendor/return-reasons/[id]/route");+ };+ returns: typeof import("../../src/api/vendor/returns/route") & {+ $id: typeof import("../../src/api/vendor/returns/[id]/route") & {+ cancel: typeof import("../../src/api/vendor/returns/[id]/cancel/route");+ dismissItems: typeof import("../../src/api/vendor/returns/[id]/dismiss-items/route") & {+ $actionId: typeof import("../../src/api/vendor/returns/[id]/dismiss-items/[action_id]/route");+ };+ receive: typeof import("../../src/api/vendor/returns/[id]/receive/route") & {+ confirm: typeof import("../../src/api/vendor/returns/[id]/receive/confirm/route");+ };+ receiveItems: typeof import("../../src/api/vendor/returns/[id]/receive-items/route") & {+ $actionId: typeof import("../../src/api/vendor/returns/[id]/receive-items/[action_id]/route");+ };+ request: typeof import("../../src/api/vendor/returns/[id]/request/route");+ requestItems: typeof import("../../src/api/vendor/returns/[id]/request-items/route") & {+ $actionId: typeof import("../../src/api/vendor/returns/[id]/request-items/[action_id]/route");+ };+ shippingMethod: typeof import("../../src/api/vendor/returns/[id]/shipping-method/route") & {+ $actionId: typeof import("../../src/api/vendor/returns/[id]/shipping-method/[action_id]/route");+ };+ };+ };+ salesChannels: typeof import("../../src/api/vendor/sales-channels/route") & {+ $id: typeof import("../../src/api/vendor/sales-channels/[id]/route") & {+ products: typeof import("../../src/api/vendor/sales-channels/[id]/products/route");+ };+ };+ sellers: typeof import("../../src/api/vendor/sellers/route") & {+ me: typeof import("../../src/api/vendor/sellers/me/route");+ $id: typeof import("../../src/api/vendor/sellers/[id]/route") & {+ address: typeof import("../../src/api/vendor/sellers/[id]/address/route");+ members: typeof import("../../src/api/vendor/sellers/[id]/members/route") & {+ $memberId: typeof import("../../src/api/vendor/sellers/[id]/members/[member_id]/route");+ invites: typeof import("../../src/api/vendor/sellers/[id]/members/invites/route");+ me: typeof import("../../src/api/vendor/sellers/[id]/members/me/route");+ };+ paymentDetails: typeof import("../../src/api/vendor/sellers/[id]/payment-details/route");+ professionalDetails: typeof import("../../src/api/vendor/sellers/[id]/professional-details/route");+ };+ select: typeof import("../../src/api/vendor/sellers/select/route");+ };+ shippingOptionTypes: typeof import("../../src/api/vendor/shipping-option-types/route") & {+ $id: typeof import("../../src/api/vendor/shipping-option-types/[id]/route");+ };+ shippingOptions: typeof import("../../src/api/vendor/shipping-options/route") & {+ $id: typeof import("../../src/api/vendor/shipping-options/[id]/route") & {+ rules: {+ batch: typeof import("../../src/api/vendor/shipping-options/[id]/rules/batch/route");+ };+ };+ };+ shippingProfiles: typeof import("../../src/api/vendor/shipping-profiles/route") & {+ $id: typeof import("../../src/api/vendor/shipping-profiles/[id]/route");+ };+ stockLocations: typeof import("../../src/api/vendor/stock-locations/route") & {+ $id: typeof import("../../src/api/vendor/stock-locations/[id]/route") & {+ fulfillmentProviders: typeof import("../../src/api/vendor/stock-locations/[id]/fulfillment-providers/route");+ fulfillmentSets: typeof import("../../src/api/vendor/stock-locations/[id]/fulfillment-sets/route");+ salesChannels: typeof import("../../src/api/vendor/stock-locations/[id]/sales-channels/route");+ };+ };+ uploads: typeof import("../../src/api/vendor/uploads/route");+ attributes: typeof import("../../src/api/vendor/attributes/route");+ featureFlags: typeof import("../../src/api/vendor/feature-flags/route");+ fulfillmentProviders: typeof import("../../src/api/vendor/fulfillment-providers/route");+ members: {+ invites: {+ accept: typeof import("../../src/api/vendor/members/invites/accept/route");+ };+ me: typeof import("../../src/api/vendor/members/me/route");+ };+ productVariants: typeof import("../../src/api/vendor/product-variants/route");+ stores: typeof import("../../src/api/vendor/stores/route");+ subscription: typeof import("../../src/api/vendor/subscription/route");+ };+ hooks: {+ payout: typeof import("../../src/api/hooks/payout/route");+ };+};diff --git a/packages/core-plugin/package.json b/packages/core/package.jsonsimilarity index 88%rename from packages/core-plugin/package.jsonrename to packages/core/package.jsonindex 8a85c4d9d..53d6e2a7f 100644--- a/packages/core-plugin/package.json+++ b/packages/core/package.json@@ -1,10 +1,10 @@{- "name": "@mercurjs/core-plugin",+ "name": "@mercurjs/core","version": "2.0.2","repository": {"type": "git","url": "https://github.com/mercurjs/mercur",- "directory": "packages/core-plugin"+ "directory": "packages/core"},"description": "Core plugin for MercurJS.","author": "Medusa (https://medusajs.com)",@@ -13,6 +13,10 @@".medusa/server"],"exports": {+ ".": {+ "types": "./.medusa/server/src/with-mercur.d.ts",+ "default": "./.medusa/server/src/with-mercur.js"+ },"./_generated": {"types": "./.mercur/_generated/index.ts"},@@ -24,6 +28,10 @@"default": "./.medusa/server/src/modules/*/index.js"},"./providers/*": "./.medusa/server/src/providers/*/index.js",+ "./with-mercur": {+ "types": "./.medusa/server/src/with-mercur.d.ts",+ "default": "./.medusa/server/src/with-mercur.js"+ },"./*": "./.medusa/server/src/*.js"},"keywords": [diff --git a/packages/core-plugin/src/api/README.md b/packages/core/src/api/README.mdsimilarity index 100%rename from packages/core-plugin/src/api/README.mdrename to packages/core/src/api/README.mddiff --git a/packages/core-plugin/src/api/admin/attributes/[id]/route.ts b/packages/core/src/api/admin/attributes/[id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/attributes/[id]/route.tsrename to packages/core/src/api/admin/attributes/[id]/route.tsdiff --git a/packages/core-plugin/src/api/admin/attributes/[id]/values/[value_id]/route.ts b/packages/core/src/api/admin/attributes/[id]/values/[value_id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/attributes/[id]/values/[value_id]/route.tsrename to packages/core/src/api/admin/attributes/[id]/values/[value_id]/route.tsdiff --git a/packages/core-plugin/src/api/admin/attributes/[id]/values/route.ts b/packages/core/src/api/admin/attributes/[id]/values/route.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/attributes/[id]/values/route.tsrename to packages/core/src/api/admin/attributes/[id]/values/route.tsdiff --git a/packages/core-plugin/src/api/admin/attributes/middlewares.ts b/packages/core/src/api/admin/attributes/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/attributes/middlewares.tsrename to packages/core/src/api/admin/attributes/middlewares.tsdiff --git a/packages/core-plugin/src/api/admin/attributes/query-config.ts b/packages/core/src/api/admin/attributes/query-config.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/attributes/query-config.tsrename to packages/core/src/api/admin/attributes/query-config.tsdiff --git a/packages/core-plugin/src/api/admin/attributes/route.ts b/packages/core/src/api/admin/attributes/route.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/attributes/route.tsrename to packages/core/src/api/admin/attributes/route.tsdiff --git a/packages/core-plugin/src/api/admin/attributes/validators.ts b/packages/core/src/api/admin/attributes/validators.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/attributes/validators.tsrename to packages/core/src/api/admin/attributes/validators.tsdiff --git a/packages/core-plugin/src/api/admin/commission-rates/[id]/route.ts b/packages/core/src/api/admin/commission-rates/[id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/commission-rates/[id]/route.tsrename to packages/core/src/api/admin/commission-rates/[id]/route.tsdiff --git a/packages/core-plugin/src/api/admin/commission-rates/[id]/rules/route.ts b/packages/core/src/api/admin/commission-rates/[id]/rules/route.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/commission-rates/[id]/rules/route.tsrename to packages/core/src/api/admin/commission-rates/[id]/rules/route.tsdiff --git a/packages/core-plugin/src/api/admin/commission-rates/middlewares.ts b/packages/core/src/api/admin/commission-rates/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/commission-rates/middlewares.tsrename to packages/core/src/api/admin/commission-rates/middlewares.tsdiff --git a/packages/core-plugin/src/api/admin/commission-rates/query-config.ts b/packages/core/src/api/admin/commission-rates/query-config.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/commission-rates/query-config.tsrename to packages/core/src/api/admin/commission-rates/query-config.tsdiff --git a/packages/core-plugin/src/api/admin/commission-rates/route.ts b/packages/core/src/api/admin/commission-rates/route.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/commission-rates/route.tsrename to packages/core/src/api/admin/commission-rates/route.tsdiff --git a/packages/core-plugin/src/api/admin/commission-rates/validators.ts b/packages/core/src/api/admin/commission-rates/validators.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/commission-rates/validators.tsrename to packages/core/src/api/admin/commission-rates/validators.tsdiff --git a/packages/core-plugin/src/api/admin/middlewares.ts b/packages/core/src/api/admin/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/middlewares.tsrename to packages/core/src/api/admin/middlewares.tsdiff --git a/packages/core-plugin/src/api/admin/order-groups/[id]/route.ts b/packages/core/src/api/admin/order-groups/[id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/order-groups/[id]/route.tsrename to packages/core/src/api/admin/order-groups/[id]/route.tsdiff --git a/packages/core-plugin/src/api/admin/order-groups/middlewares.ts b/packages/core/src/api/admin/order-groups/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/order-groups/middlewares.tsrename to packages/core/src/api/admin/order-groups/middlewares.tsdiff --git a/packages/core-plugin/src/api/admin/order-groups/query-config.ts b/packages/core/src/api/admin/order-groups/query-config.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/order-groups/query-config.tsrename to packages/core/src/api/admin/order-groups/query-config.tsdiff --git a/packages/core-plugin/src/api/admin/order-groups/route.ts b/packages/core/src/api/admin/order-groups/route.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/order-groups/route.tsrename to packages/core/src/api/admin/order-groups/route.tsdiff --git a/packages/core-plugin/src/api/admin/order-groups/validators.ts b/packages/core/src/api/admin/order-groups/validators.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/order-groups/validators.tsrename to packages/core/src/api/admin/order-groups/validators.tsdiff --git a/packages/core-plugin/src/api/admin/orders/[id]/order-group/route.ts b/packages/core/src/api/admin/orders/[id]/order-group/route.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/orders/[id]/order-group/route.tsrename to packages/core/src/api/admin/orders/[id]/order-group/route.tsdiff --git a/packages/core-plugin/src/api/admin/orders/route.ts b/packages/core/src/api/admin/orders/route.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/orders/route.tsrename to packages/core/src/api/admin/orders/route.tsdiff --git a/packages/core-plugin/src/api/admin/orders/validators.ts b/packages/core/src/api/admin/orders/validators.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/orders/validators.tsrename to packages/core/src/api/admin/orders/validators.tsdiff --git a/packages/core-plugin/src/api/admin/payouts/[id]/route.ts b/packages/core/src/api/admin/payouts/[id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/payouts/[id]/route.tsrename to packages/core/src/api/admin/payouts/[id]/route.tsdiff --git a/packages/core-plugin/src/api/admin/payouts/middlewares.ts b/packages/core/src/api/admin/payouts/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/payouts/middlewares.tsrename to packages/core/src/api/admin/payouts/middlewares.tsdiff --git a/packages/core-plugin/src/api/admin/payouts/query-config.ts b/packages/core/src/api/admin/payouts/query-config.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/payouts/query-config.tsrename to packages/core/src/api/admin/payouts/query-config.tsdiff --git a/packages/core-plugin/src/api/admin/payouts/route.ts b/packages/core/src/api/admin/payouts/route.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/payouts/route.tsrename to packages/core/src/api/admin/payouts/route.tsdiff --git a/packages/core-plugin/src/api/admin/payouts/validators.ts b/packages/core/src/api/admin/payouts/validators.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/payouts/validators.tsrename to packages/core/src/api/admin/payouts/validators.tsdiff --git a/packages/core-plugin/src/api/admin/products/route.ts b/packages/core/src/api/admin/products/route.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/products/route.tsrename to packages/core/src/api/admin/products/route.tsdiff --git a/packages/core-plugin/src/api/admin/products/validators.ts b/packages/core/src/api/admin/products/validators.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/products/validators.tsrename to packages/core/src/api/admin/products/validators.tsdiff --git a/packages/core-plugin/src/api/admin/sellers/[id]/address/route.ts b/packages/core/src/api/admin/sellers/[id]/address/route.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/sellers/[id]/address/route.tsrename to packages/core/src/api/admin/sellers/[id]/address/route.tsdiff --git a/packages/core-plugin/src/api/admin/sellers/[id]/approve/route.ts b/packages/core/src/api/admin/sellers/[id]/approve/route.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/sellers/[id]/approve/route.tsrename to packages/core/src/api/admin/sellers/[id]/approve/route.tsdiff --git a/packages/core-plugin/src/api/admin/sellers/[id]/members/[member_id]/route.ts b/packages/core/src/api/admin/sellers/[id]/members/[member_id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/sellers/[id]/members/[member_id]/route.tsrename to packages/core/src/api/admin/sellers/[id]/members/[member_id]/route.tsdiff --git a/packages/core-plugin/src/api/admin/sellers/[id]/members/invite/route.ts b/packages/core/src/api/admin/sellers/[id]/members/invite/route.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/sellers/[id]/members/invite/route.tsrename to packages/core/src/api/admin/sellers/[id]/members/invite/route.tsdiff --git a/packages/core-plugin/src/api/admin/sellers/[id]/members/invites/route.ts b/packages/core/src/api/admin/sellers/[id]/members/invites/route.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/sellers/[id]/members/invites/route.tsrename to packages/core/src/api/admin/sellers/[id]/members/invites/route.tsdiff --git a/packages/core-plugin/src/api/admin/sellers/[id]/members/route.ts b/packages/core/src/api/admin/sellers/[id]/members/route.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/sellers/[id]/members/route.tsrename to packages/core/src/api/admin/sellers/[id]/members/route.tsdiff --git a/packages/core-plugin/src/api/admin/sellers/[id]/payment-details/route.ts b/packages/core/src/api/admin/sellers/[id]/payment-details/route.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/sellers/[id]/payment-details/route.tsrename to packages/core/src/api/admin/sellers/[id]/payment-details/route.tsdiff --git a/packages/core-plugin/src/api/admin/sellers/[id]/professional-details/route.ts b/packages/core/src/api/admin/sellers/[id]/professional-details/route.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/sellers/[id]/professional-details/route.tsrename to packages/core/src/api/admin/sellers/[id]/professional-details/route.tsdiff --git a/packages/core-plugin/src/api/admin/sellers/[id]/route.ts b/packages/core/src/api/admin/sellers/[id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/sellers/[id]/route.tsrename to packages/core/src/api/admin/sellers/[id]/route.tsdiff --git a/packages/core-plugin/src/api/admin/sellers/[id]/suspend/route.ts b/packages/core/src/api/admin/sellers/[id]/suspend/route.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/sellers/[id]/suspend/route.tsrename to packages/core/src/api/admin/sellers/[id]/suspend/route.tsdiff --git a/packages/core-plugin/src/api/admin/sellers/[id]/terminate/route.ts b/packages/core/src/api/admin/sellers/[id]/terminate/route.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/sellers/[id]/terminate/route.tsrename to packages/core/src/api/admin/sellers/[id]/terminate/route.tsdiff --git a/packages/core-plugin/src/api/admin/sellers/[id]/unsuspend/route.ts b/packages/core/src/api/admin/sellers/[id]/unsuspend/route.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/sellers/[id]/unsuspend/route.tsrename to packages/core/src/api/admin/sellers/[id]/unsuspend/route.tsdiff --git a/packages/core-plugin/src/api/admin/sellers/[id]/unterminate/route.ts b/packages/core/src/api/admin/sellers/[id]/unterminate/route.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/sellers/[id]/unterminate/route.tsrename to packages/core/src/api/admin/sellers/[id]/unterminate/route.tsdiff --git a/packages/core-plugin/src/api/admin/sellers/middlewares.ts b/packages/core/src/api/admin/sellers/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/sellers/middlewares.tsrename to packages/core/src/api/admin/sellers/middlewares.tsdiff --git a/packages/core-plugin/src/api/admin/sellers/query-config.ts b/packages/core/src/api/admin/sellers/query-config.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/sellers/query-config.tsrename to packages/core/src/api/admin/sellers/query-config.tsdiff --git a/packages/core-plugin/src/api/admin/sellers/route.ts b/packages/core/src/api/admin/sellers/route.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/sellers/route.tsrename to packages/core/src/api/admin/sellers/route.tsdiff --git a/packages/core-plugin/src/api/admin/sellers/validators.ts b/packages/core/src/api/admin/sellers/validators.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/sellers/validators.tsrename to packages/core/src/api/admin/sellers/validators.tsdiff --git a/packages/core-plugin/src/api/admin/subscription-plans/[id]/overrides/[override_id]/route.ts b/packages/core/src/api/admin/subscription-plans/[id]/overrides/[override_id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/subscription-plans/[id]/overrides/[override_id]/route.tsrename to packages/core/src/api/admin/subscription-plans/[id]/overrides/[override_id]/route.tsdiff --git a/packages/core-plugin/src/api/admin/subscription-plans/[id]/overrides/route.ts b/packages/core/src/api/admin/subscription-plans/[id]/overrides/route.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/subscription-plans/[id]/overrides/route.tsrename to packages/core/src/api/admin/subscription-plans/[id]/overrides/route.tsdiff --git a/packages/core-plugin/src/api/admin/subscription-plans/[id]/route.ts b/packages/core/src/api/admin/subscription-plans/[id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/subscription-plans/[id]/route.tsrename to packages/core/src/api/admin/subscription-plans/[id]/route.tsdiff --git a/packages/core-plugin/src/api/admin/subscription-plans/middlewares.ts b/packages/core/src/api/admin/subscription-plans/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/subscription-plans/middlewares.tsrename to packages/core/src/api/admin/subscription-plans/middlewares.tsdiff --git a/packages/core-plugin/src/api/admin/subscription-plans/query-config.ts b/packages/core/src/api/admin/subscription-plans/query-config.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/subscription-plans/query-config.tsrename to packages/core/src/api/admin/subscription-plans/query-config.tsdiff --git a/packages/core-plugin/src/api/admin/subscription-plans/route.ts b/packages/core/src/api/admin/subscription-plans/route.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/subscription-plans/route.tsrename to packages/core/src/api/admin/subscription-plans/route.tsdiff --git a/packages/core-plugin/src/api/admin/subscription-plans/validators.ts b/packages/core/src/api/admin/subscription-plans/validators.tssimilarity index 100%rename from packages/core-plugin/src/api/admin/subscription-plans/validators.tsrename to packages/core/src/api/admin/subscription-plans/validators.tsdiff --git a/packages/core-plugin/src/api/hooks/middlewares.ts b/packages/core/src/api/hooks/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/hooks/middlewares.tsrename to packages/core/src/api/hooks/middlewares.tsdiff --git a/packages/core-plugin/src/api/hooks/payout/route.ts b/packages/core/src/api/hooks/payout/route.tssimilarity index 100%rename from packages/core-plugin/src/api/hooks/payout/route.tsrename to packages/core/src/api/hooks/payout/route.tsdiff --git a/packages/core-plugin/src/api/middlewares.ts b/packages/core/src/api/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/middlewares.tsrename to packages/core/src/api/middlewares.tsdiff --git a/packages/core-plugin/src/api/store/carts/[id]/complete/query-config.ts b/packages/core/src/api/store/carts/[id]/complete/query-config.tssimilarity index 100%rename from packages/core-plugin/src/api/store/carts/[id]/complete/query-config.tsrename to packages/core/src/api/store/carts/[id]/complete/query-config.tsdiff --git a/packages/core-plugin/src/api/store/carts/[id]/complete/route.ts b/packages/core/src/api/store/carts/[id]/complete/route.tssimilarity index 100%rename from packages/core-plugin/src/api/store/carts/[id]/complete/route.tsrename to packages/core/src/api/store/carts/[id]/complete/route.tsdiff --git a/packages/core-plugin/src/api/store/carts/[id]/complete/validators.ts b/packages/core/src/api/store/carts/[id]/complete/validators.tssimilarity index 100%rename from packages/core-plugin/src/api/store/carts/[id]/complete/validators.tsrename to packages/core/src/api/store/carts/[id]/complete/validators.tsdiff --git a/packages/core-plugin/src/api/store/carts/[id]/promotions/route.ts b/packages/core/src/api/store/carts/[id]/promotions/route.tssimilarity index 100%rename from packages/core-plugin/src/api/store/carts/[id]/promotions/route.tsrename to packages/core/src/api/store/carts/[id]/promotions/route.tsdiff --git a/packages/core-plugin/src/api/store/carts/[id]/shipping-methods/route.ts b/packages/core/src/api/store/carts/[id]/shipping-methods/route.tssimilarity index 100%rename from packages/core-plugin/src/api/store/carts/[id]/shipping-methods/route.tsrename to packages/core/src/api/store/carts/[id]/shipping-methods/route.tsdiff --git a/packages/core-plugin/src/api/store/carts/helpers.ts b/packages/core/src/api/store/carts/helpers.tssimilarity index 100%rename from packages/core-plugin/src/api/store/carts/helpers.tsrename to packages/core/src/api/store/carts/helpers.tsdiff --git a/packages/core-plugin/src/api/store/carts/middlewares.ts b/packages/core/src/api/store/carts/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/store/carts/middlewares.tsrename to packages/core/src/api/store/carts/middlewares.tsdiff --git a/packages/core-plugin/src/api/store/middlewares.ts b/packages/core/src/api/store/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/store/middlewares.tsrename to packages/core/src/api/store/middlewares.tsdiff --git a/packages/core-plugin/src/api/store/order-groups/[id]/route.ts b/packages/core/src/api/store/order-groups/[id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/store/order-groups/[id]/route.tsrename to packages/core/src/api/store/order-groups/[id]/route.tsdiff --git a/packages/core-plugin/src/api/store/order-groups/middlewares.ts b/packages/core/src/api/store/order-groups/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/store/order-groups/middlewares.tsrename to packages/core/src/api/store/order-groups/middlewares.tsdiff --git a/packages/core-plugin/src/api/store/order-groups/query-config.ts b/packages/core/src/api/store/order-groups/query-config.tssimilarity index 100%rename from packages/core-plugin/src/api/store/order-groups/query-config.tsrename to packages/core/src/api/store/order-groups/query-config.tsdiff --git a/packages/core-plugin/src/api/store/order-groups/route.ts b/packages/core/src/api/store/order-groups/route.tssimilarity index 100%rename from packages/core-plugin/src/api/store/order-groups/route.tsrename to packages/core/src/api/store/order-groups/route.tsdiff --git a/packages/core-plugin/src/api/store/order-groups/validators.ts b/packages/core/src/api/store/order-groups/validators.tssimilarity index 100%rename from packages/core-plugin/src/api/store/order-groups/validators.tsrename to packages/core/src/api/store/order-groups/validators.tsdiff --git a/packages/core-plugin/src/api/store/sellers/[id]/route.ts b/packages/core/src/api/store/sellers/[id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/store/sellers/[id]/route.tsrename to packages/core/src/api/store/sellers/[id]/route.tsdiff --git a/packages/core-plugin/src/api/store/sellers/middlewares.ts b/packages/core/src/api/store/sellers/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/store/sellers/middlewares.tsrename to packages/core/src/api/store/sellers/middlewares.tsdiff --git a/packages/core-plugin/src/api/store/sellers/query-config.ts b/packages/core/src/api/store/sellers/query-config.tssimilarity index 100%rename from packages/core-plugin/src/api/store/sellers/query-config.tsrename to packages/core/src/api/store/sellers/query-config.tsdiff --git a/packages/core-plugin/src/api/store/sellers/route.ts b/packages/core/src/api/store/sellers/route.tssimilarity index 100%rename from packages/core-plugin/src/api/store/sellers/route.tsrename to packages/core/src/api/store/sellers/route.tsdiff --git a/packages/core-plugin/src/api/store/sellers/validators.ts b/packages/core/src/api/store/sellers/validators.tssimilarity index 100%rename from packages/core-plugin/src/api/store/sellers/validators.tsrename to packages/core/src/api/store/sellers/validators.tsdiff --git a/packages/core-plugin/src/api/store/shipping-options/route.ts b/packages/core/src/api/store/shipping-options/route.tssimilarity index 100%rename from packages/core-plugin/src/api/store/shipping-options/route.tsrename to packages/core/src/api/store/shipping-options/route.tsdiff --git a/packages/core-plugin/src/api/utils/ensure-seller-middleware.ts b/packages/core/src/api/utils/ensure-seller-middleware.tssimilarity index 100%rename from packages/core-plugin/src/api/utils/ensure-seller-middleware.tsrename to packages/core/src/api/utils/ensure-seller-middleware.tsdiff --git a/packages/core-plugin/src/api/utils/filter-by-seller-id.ts b/packages/core/src/api/utils/filter-by-seller-id.tssimilarity index 100%rename from packages/core-plugin/src/api/utils/filter-by-seller-id.tsrename to packages/core/src/api/utils/filter-by-seller-id.tsdiff --git a/packages/core-plugin/src/api/utils/index.ts b/packages/core/src/api/utils/index.tssimilarity index 100%rename from packages/core-plugin/src/api/utils/index.tsrename to packages/core/src/api/utils/index.tsdiff --git a/packages/core-plugin/src/api/utils/scan-unauthenticated-routes.ts b/packages/core/src/api/utils/scan-unauthenticated-routes.tssimilarity index 100%rename from packages/core-plugin/src/api/utils/scan-unauthenticated-routes.tsrename to packages/core/src/api/utils/scan-unauthenticated-routes.tsdiff --git a/packages/core-plugin/src/api/utils/unless-base-url.ts b/packages/core/src/api/utils/unless-base-url.tssimilarity index 100%rename from packages/core-plugin/src/api/utils/unless-base-url.tsrename to packages/core/src/api/utils/unless-base-url.tsdiff --git a/packages/core-plugin/src/api/utils/vendor-cors-middleware.ts b/packages/core/src/api/utils/vendor-cors-middleware.tssimilarity index 100%rename from packages/core-plugin/src/api/utils/vendor-cors-middleware.tsrename to packages/core/src/api/utils/vendor-cors-middleware.tsdiff --git a/packages/core-plugin/src/api/vendor/attributes/middlewares.ts b/packages/core/src/api/vendor/attributes/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/attributes/middlewares.tsrename to packages/core/src/api/vendor/attributes/middlewares.tsdiff --git a/packages/core-plugin/src/api/vendor/attributes/route.ts b/packages/core/src/api/vendor/attributes/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/attributes/route.tsrename to packages/core/src/api/vendor/attributes/route.tsdiff --git a/packages/core-plugin/src/api/vendor/campaigns/[id]/promotions/route.ts b/packages/core/src/api/vendor/campaigns/[id]/promotions/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/campaigns/[id]/promotions/route.tsrename to packages/core/src/api/vendor/campaigns/[id]/promotions/route.tsdiff --git a/packages/core-plugin/src/api/vendor/campaigns/[id]/route.ts b/packages/core/src/api/vendor/campaigns/[id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/campaigns/[id]/route.tsrename to packages/core/src/api/vendor/campaigns/[id]/route.tsdiff --git a/packages/core-plugin/src/api/vendor/campaigns/helpers.ts b/packages/core/src/api/vendor/campaigns/helpers.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/campaigns/helpers.tsrename to packages/core/src/api/vendor/campaigns/helpers.tsdiff --git a/packages/core-plugin/src/api/vendor/campaigns/middlewares.ts b/packages/core/src/api/vendor/campaigns/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/campaigns/middlewares.tsrename to packages/core/src/api/vendor/campaigns/middlewares.tsdiff --git a/packages/core-plugin/src/api/vendor/campaigns/query-config.ts b/packages/core/src/api/vendor/campaigns/query-config.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/campaigns/query-config.tsrename to packages/core/src/api/vendor/campaigns/query-config.tsdiff --git a/packages/core-plugin/src/api/vendor/campaigns/route.ts b/packages/core/src/api/vendor/campaigns/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/campaigns/route.tsrename to packages/core/src/api/vendor/campaigns/route.tsdiff --git a/packages/core-plugin/src/api/vendor/campaigns/validators.ts b/packages/core/src/api/vendor/campaigns/validators.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/campaigns/validators.tsrename to packages/core/src/api/vendor/campaigns/validators.tsdiff --git a/packages/core-plugin/src/api/vendor/collections/[id]/products/route.ts b/packages/core/src/api/vendor/collections/[id]/products/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/collections/[id]/products/route.tsrename to packages/core/src/api/vendor/collections/[id]/products/route.tsdiff --git a/packages/core-plugin/src/api/vendor/collections/[id]/route.ts b/packages/core/src/api/vendor/collections/[id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/collections/[id]/route.tsrename to packages/core/src/api/vendor/collections/[id]/route.tsdiff --git a/packages/core-plugin/src/api/vendor/collections/helpers.ts b/packages/core/src/api/vendor/collections/helpers.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/collections/helpers.tsrename to packages/core/src/api/vendor/collections/helpers.tsdiff --git a/packages/core-plugin/src/api/vendor/collections/middlewares.ts b/packages/core/src/api/vendor/collections/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/collections/middlewares.tsrename to packages/core/src/api/vendor/collections/middlewares.tsdiff --git a/packages/core-plugin/src/api/vendor/collections/query-config.ts b/packages/core/src/api/vendor/collections/query-config.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/collections/query-config.tsrename to packages/core/src/api/vendor/collections/query-config.tsdiff --git a/packages/core-plugin/src/api/vendor/collections/route.ts b/packages/core/src/api/vendor/collections/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/collections/route.tsrename to packages/core/src/api/vendor/collections/route.tsdiff --git a/packages/core-plugin/src/api/vendor/collections/validators.ts b/packages/core/src/api/vendor/collections/validators.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/collections/validators.tsrename to packages/core/src/api/vendor/collections/validators.tsdiff --git a/packages/core-plugin/src/api/vendor/currencies/[code]/route.ts b/packages/core/src/api/vendor/currencies/[code]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/currencies/[code]/route.tsrename to packages/core/src/api/vendor/currencies/[code]/route.tsdiff --git a/packages/core-plugin/src/api/vendor/currencies/middlewares.ts b/packages/core/src/api/vendor/currencies/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/currencies/middlewares.tsrename to packages/core/src/api/vendor/currencies/middlewares.tsdiff --git a/packages/core-plugin/src/api/vendor/currencies/query-config.ts b/packages/core/src/api/vendor/currencies/query-config.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/currencies/query-config.tsrename to packages/core/src/api/vendor/currencies/query-config.tsdiff --git a/packages/core-plugin/src/api/vendor/currencies/route.ts b/packages/core/src/api/vendor/currencies/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/currencies/route.tsrename to packages/core/src/api/vendor/currencies/route.tsdiff --git a/packages/core-plugin/src/api/vendor/currencies/validators.ts b/packages/core/src/api/vendor/currencies/validators.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/currencies/validators.tsrename to packages/core/src/api/vendor/currencies/validators.tsdiff --git a/packages/core-plugin/src/api/vendor/customers/[id]/route.ts b/packages/core/src/api/vendor/customers/[id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/customers/[id]/route.tsrename to packages/core/src/api/vendor/customers/[id]/route.tsdiff --git a/packages/core-plugin/src/api/vendor/customers/helpers.ts b/packages/core/src/api/vendor/customers/helpers.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/customers/helpers.tsrename to packages/core/src/api/vendor/customers/helpers.tsdiff --git a/packages/core-plugin/src/api/vendor/customers/middlewares.ts b/packages/core/src/api/vendor/customers/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/customers/middlewares.tsrename to packages/core/src/api/vendor/customers/middlewares.tsdiff --git a/packages/core-plugin/src/api/vendor/customers/query-config.ts b/packages/core/src/api/vendor/customers/query-config.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/customers/query-config.tsrename to packages/core/src/api/vendor/customers/query-config.tsdiff --git a/packages/core-plugin/src/api/vendor/customers/route.ts b/packages/core/src/api/vendor/customers/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/customers/route.tsrename to packages/core/src/api/vendor/customers/route.tsdiff --git a/packages/core-plugin/src/api/vendor/customers/validators.ts b/packages/core/src/api/vendor/customers/validators.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/customers/validators.tsrename to packages/core/src/api/vendor/customers/validators.tsdiff --git a/packages/core-plugin/src/api/vendor/feature-flags/route.ts b/packages/core/src/api/vendor/feature-flags/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/feature-flags/route.tsrename to packages/core/src/api/vendor/feature-flags/route.tsdiff --git a/packages/core-plugin/src/api/vendor/fulfillment-providers/middlewares.ts b/packages/core/src/api/vendor/fulfillment-providers/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/fulfillment-providers/middlewares.tsrename to packages/core/src/api/vendor/fulfillment-providers/middlewares.tsdiff --git a/packages/core-plugin/src/api/vendor/fulfillment-providers/query-config.ts b/packages/core/src/api/vendor/fulfillment-providers/query-config.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/fulfillment-providers/query-config.tsrename to packages/core/src/api/vendor/fulfillment-providers/query-config.tsdiff --git a/packages/core-plugin/src/api/vendor/fulfillment-providers/route.ts b/packages/core/src/api/vendor/fulfillment-providers/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/fulfillment-providers/route.tsrename to packages/core/src/api/vendor/fulfillment-providers/route.tsdiff --git a/packages/core-plugin/src/api/vendor/fulfillment-providers/validators.ts b/packages/core/src/api/vendor/fulfillment-providers/validators.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/fulfillment-providers/validators.tsrename to packages/core/src/api/vendor/fulfillment-providers/validators.tsdiff --git a/packages/core-plugin/src/api/vendor/fulfillment-sets/[id]/route.ts b/packages/core/src/api/vendor/fulfillment-sets/[id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/fulfillment-sets/[id]/route.tsrename to packages/core/src/api/vendor/fulfillment-sets/[id]/route.tsdiff --git a/packages/core-plugin/src/api/vendor/fulfillment-sets/[id]/service-zones/[zone_id]/route.ts b/packages/core/src/api/vendor/fulfillment-sets/[id]/service-zones/[zone_id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/fulfillment-sets/[id]/service-zones/[zone_id]/route.tsrename to packages/core/src/api/vendor/fulfillment-sets/[id]/service-zones/[zone_id]/route.tsdiff --git a/packages/core-plugin/src/api/vendor/fulfillment-sets/[id]/service-zones/route.ts b/packages/core/src/api/vendor/fulfillment-sets/[id]/service-zones/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/fulfillment-sets/[id]/service-zones/route.tsrename to packages/core/src/api/vendor/fulfillment-sets/[id]/service-zones/route.tsdiff --git a/packages/core-plugin/src/api/vendor/fulfillment-sets/helpers.ts b/packages/core/src/api/vendor/fulfillment-sets/helpers.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/fulfillment-sets/helpers.tsrename to packages/core/src/api/vendor/fulfillment-sets/helpers.tsdiff --git a/packages/core-plugin/src/api/vendor/fulfillment-sets/middlewares.ts b/packages/core/src/api/vendor/fulfillment-sets/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/fulfillment-sets/middlewares.tsrename to packages/core/src/api/vendor/fulfillment-sets/middlewares.tsdiff --git a/packages/core-plugin/src/api/vendor/fulfillment-sets/query-config.ts b/packages/core/src/api/vendor/fulfillment-sets/query-config.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/fulfillment-sets/query-config.tsrename to packages/core/src/api/vendor/fulfillment-sets/query-config.tsdiff --git a/packages/core-plugin/src/api/vendor/fulfillment-sets/validators.ts b/packages/core/src/api/vendor/fulfillment-sets/validators.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/fulfillment-sets/validators.tsrename to packages/core/src/api/vendor/fulfillment-sets/validators.tsdiff --git a/packages/core-plugin/src/api/vendor/inventory-items/[id]/location-levels/[location_id]/route.ts b/packages/core/src/api/vendor/inventory-items/[id]/location-levels/[location_id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/inventory-items/[id]/location-levels/[location_id]/route.tsrename to packages/core/src/api/vendor/inventory-items/[id]/location-levels/[location_id]/route.tsdiff --git a/packages/core-plugin/src/api/vendor/inventory-items/[id]/location-levels/batch/route.ts b/packages/core/src/api/vendor/inventory-items/[id]/location-levels/batch/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/inventory-items/[id]/location-levels/batch/route.tsrename to packages/core/src/api/vendor/inventory-items/[id]/location-levels/batch/route.tsdiff --git a/packages/core-plugin/src/api/vendor/inventory-items/[id]/location-levels/route.ts b/packages/core/src/api/vendor/inventory-items/[id]/location-levels/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/inventory-items/[id]/location-levels/route.tsrename to packages/core/src/api/vendor/inventory-items/[id]/location-levels/route.tsdiff --git a/packages/core-plugin/src/api/vendor/inventory-items/[id]/route.ts b/packages/core/src/api/vendor/inventory-items/[id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/inventory-items/[id]/route.tsrename to packages/core/src/api/vendor/inventory-items/[id]/route.tsdiff --git a/packages/core-plugin/src/api/vendor/inventory-items/helpers.ts b/packages/core/src/api/vendor/inventory-items/helpers.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/inventory-items/helpers.tsrename to packages/core/src/api/vendor/inventory-items/helpers.tsdiff --git a/packages/core-plugin/src/api/vendor/inventory-items/location-levels/batch/route.ts b/packages/core/src/api/vendor/inventory-items/location-levels/batch/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/inventory-items/location-levels/batch/route.tsrename to packages/core/src/api/vendor/inventory-items/location-levels/batch/route.tsdiff --git a/packages/core-plugin/src/api/vendor/inventory-items/middlewares.ts b/packages/core/src/api/vendor/inventory-items/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/inventory-items/middlewares.tsrename to packages/core/src/api/vendor/inventory-items/middlewares.tsdiff --git a/packages/core-plugin/src/api/vendor/inventory-items/query-config.ts b/packages/core/src/api/vendor/inventory-items/query-config.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/inventory-items/query-config.tsrename to packages/core/src/api/vendor/inventory-items/query-config.tsdiff --git a/packages/core-plugin/src/api/vendor/inventory-items/route.ts b/packages/core/src/api/vendor/inventory-items/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/inventory-items/route.tsrename to packages/core/src/api/vendor/inventory-items/route.tsdiff --git a/packages/core-plugin/src/api/vendor/inventory-items/validators.ts b/packages/core/src/api/vendor/inventory-items/validators.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/inventory-items/validators.tsrename to packages/core/src/api/vendor/inventory-items/validators.tsdiff --git a/packages/core-plugin/src/api/vendor/members/invites/accept/route.ts b/packages/core/src/api/vendor/members/invites/accept/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/members/invites/accept/route.tsrename to packages/core/src/api/vendor/members/invites/accept/route.tsdiff --git a/packages/core-plugin/src/api/vendor/members/me/route.ts b/packages/core/src/api/vendor/members/me/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/members/me/route.tsrename to packages/core/src/api/vendor/members/me/route.tsdiff --git a/packages/core-plugin/src/api/vendor/members/middlewares.ts b/packages/core/src/api/vendor/members/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/members/middlewares.tsrename to packages/core/src/api/vendor/members/middlewares.tsdiff --git a/packages/core-plugin/src/api/vendor/members/validators.ts b/packages/core/src/api/vendor/members/validators.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/members/validators.tsrename to packages/core/src/api/vendor/members/validators.tsdiff --git a/packages/core-plugin/src/api/vendor/middlewares.ts b/packages/core/src/api/vendor/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/middlewares.tsrename to packages/core/src/api/vendor/middlewares.tsdiff --git a/packages/core-plugin/src/api/vendor/orders/[id]/cancel/route.ts b/packages/core/src/api/vendor/orders/[id]/cancel/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/orders/[id]/cancel/route.tsrename to packages/core/src/api/vendor/orders/[id]/cancel/route.tsdiff --git a/packages/core-plugin/src/api/vendor/orders/[id]/changes/route.ts b/packages/core/src/api/vendor/orders/[id]/changes/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/orders/[id]/changes/route.tsrename to packages/core/src/api/vendor/orders/[id]/changes/route.tsdiff --git a/packages/core-plugin/src/api/vendor/orders/[id]/complete/route.ts b/packages/core/src/api/vendor/orders/[id]/complete/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/orders/[id]/complete/route.tsrename to packages/core/src/api/vendor/orders/[id]/complete/route.tsdiff --git a/packages/core-plugin/src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/cancel/route.ts b/packages/core/src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/cancel/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/cancel/route.tsrename to packages/core/src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/cancel/route.tsdiff --git a/packages/core-plugin/src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/mark-as-delivered/route.ts b/packages/core/src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/mark-as-delivered/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/mark-as-delivered/route.tsrename to packages/core/src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/mark-as-delivered/route.tsdiff --git a/packages/core-plugin/src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/shipments/route.ts b/packages/core/src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/shipments/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/shipments/route.tsrename to packages/core/src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/shipments/route.tsdiff --git a/packages/core-plugin/src/api/vendor/orders/[id]/fulfillments/route.ts b/packages/core/src/api/vendor/orders/[id]/fulfillments/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/orders/[id]/fulfillments/route.tsrename to packages/core/src/api/vendor/orders/[id]/fulfillments/route.tsdiff --git a/packages/core-plugin/src/api/vendor/orders/[id]/preview/route.ts b/packages/core/src/api/vendor/orders/[id]/preview/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/orders/[id]/preview/route.tsrename to packages/core/src/api/vendor/orders/[id]/preview/route.tsdiff --git a/packages/core-plugin/src/api/vendor/orders/[id]/route.ts b/packages/core/src/api/vendor/orders/[id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/orders/[id]/route.tsrename to packages/core/src/api/vendor/orders/[id]/route.tsdiff --git a/packages/core-plugin/src/api/vendor/orders/helpers.ts b/packages/core/src/api/vendor/orders/helpers.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/orders/helpers.tsrename to packages/core/src/api/vendor/orders/helpers.tsdiff --git a/packages/core-plugin/src/api/vendor/orders/middlewares.ts b/packages/core/src/api/vendor/orders/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/orders/middlewares.tsrename to packages/core/src/api/vendor/orders/middlewares.tsdiff --git a/packages/core-plugin/src/api/vendor/orders/query-config.ts b/packages/core/src/api/vendor/orders/query-config.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/orders/query-config.tsrename to packages/core/src/api/vendor/orders/query-config.tsdiff --git a/packages/core-plugin/src/api/vendor/orders/route.ts b/packages/core/src/api/vendor/orders/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/orders/route.tsrename to packages/core/src/api/vendor/orders/route.tsdiff --git a/packages/core-plugin/src/api/vendor/orders/validators.ts b/packages/core/src/api/vendor/orders/validators.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/orders/validators.tsrename to packages/core/src/api/vendor/orders/validators.tsdiff --git a/packages/core-plugin/src/api/vendor/payments/[id]/capture/route.ts b/packages/core/src/api/vendor/payments/[id]/capture/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/payments/[id]/capture/route.tsrename to packages/core/src/api/vendor/payments/[id]/capture/route.tsdiff --git a/packages/core-plugin/src/api/vendor/payments/[id]/refund/route.ts b/packages/core/src/api/vendor/payments/[id]/refund/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/payments/[id]/refund/route.tsrename to packages/core/src/api/vendor/payments/[id]/refund/route.tsdiff --git a/packages/core-plugin/src/api/vendor/payments/[id]/route.ts b/packages/core/src/api/vendor/payments/[id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/payments/[id]/route.tsrename to packages/core/src/api/vendor/payments/[id]/route.tsdiff --git a/packages/core-plugin/src/api/vendor/payments/helpers.ts b/packages/core/src/api/vendor/payments/helpers.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/payments/helpers.tsrename to packages/core/src/api/vendor/payments/helpers.tsdiff --git a/packages/core-plugin/src/api/vendor/payments/middlewares.ts b/packages/core/src/api/vendor/payments/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/payments/middlewares.tsrename to packages/core/src/api/vendor/payments/middlewares.tsdiff --git a/packages/core-plugin/src/api/vendor/payments/payment-providers/route.ts b/packages/core/src/api/vendor/payments/payment-providers/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/payments/payment-providers/route.tsrename to packages/core/src/api/vendor/payments/payment-providers/route.tsdiff --git a/packages/core-plugin/src/api/vendor/payments/query-config.ts b/packages/core/src/api/vendor/payments/query-config.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/payments/query-config.tsrename to packages/core/src/api/vendor/payments/query-config.tsdiff --git a/packages/core-plugin/src/api/vendor/payments/route.ts b/packages/core/src/api/vendor/payments/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/payments/route.tsrename to packages/core/src/api/vendor/payments/route.tsdiff --git a/packages/core-plugin/src/api/vendor/payments/validators.ts b/packages/core/src/api/vendor/payments/validators.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/payments/validators.tsrename to packages/core/src/api/vendor/payments/validators.tsdiff --git a/packages/core-plugin/src/api/vendor/payout-accounts/[id]/onboarding/route.ts b/packages/core/src/api/vendor/payout-accounts/[id]/onboarding/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/payout-accounts/[id]/onboarding/route.tsrename to packages/core/src/api/vendor/payout-accounts/[id]/onboarding/route.tsdiff --git a/packages/core-plugin/src/api/vendor/payout-accounts/[id]/route.ts b/packages/core/src/api/vendor/payout-accounts/[id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/payout-accounts/[id]/route.tsrename to packages/core/src/api/vendor/payout-accounts/[id]/route.tsdiff --git a/packages/core-plugin/src/api/vendor/payout-accounts/helpers.ts b/packages/core/src/api/vendor/payout-accounts/helpers.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/payout-accounts/helpers.tsrename to packages/core/src/api/vendor/payout-accounts/helpers.tsdiff --git a/packages/core-plugin/src/api/vendor/payout-accounts/middlewares.ts b/packages/core/src/api/vendor/payout-accounts/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/payout-accounts/middlewares.tsrename to packages/core/src/api/vendor/payout-accounts/middlewares.tsdiff --git a/packages/core-plugin/src/api/vendor/payout-accounts/query-config.ts b/packages/core/src/api/vendor/payout-accounts/query-config.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/payout-accounts/query-config.tsrename to packages/core/src/api/vendor/payout-accounts/query-config.tsdiff --git a/packages/core-plugin/src/api/vendor/payout-accounts/route.ts b/packages/core/src/api/vendor/payout-accounts/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/payout-accounts/route.tsrename to packages/core/src/api/vendor/payout-accounts/route.tsdiff --git a/packages/core-plugin/src/api/vendor/payout-accounts/validators.ts b/packages/core/src/api/vendor/payout-accounts/validators.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/payout-accounts/validators.tsrename to packages/core/src/api/vendor/payout-accounts/validators.tsdiff --git a/packages/core-plugin/src/api/vendor/payouts/[id]/route.ts b/packages/core/src/api/vendor/payouts/[id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/payouts/[id]/route.tsrename to packages/core/src/api/vendor/payouts/[id]/route.tsdiff --git a/packages/core-plugin/src/api/vendor/payouts/helpers.ts b/packages/core/src/api/vendor/payouts/helpers.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/payouts/helpers.tsrename to packages/core/src/api/vendor/payouts/helpers.tsdiff --git a/packages/core-plugin/src/api/vendor/payouts/middlewares.ts b/packages/core/src/api/vendor/payouts/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/payouts/middlewares.tsrename to packages/core/src/api/vendor/payouts/middlewares.tsdiff --git a/packages/core-plugin/src/api/vendor/payouts/query-config.ts b/packages/core/src/api/vendor/payouts/query-config.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/payouts/query-config.tsrename to packages/core/src/api/vendor/payouts/query-config.tsdiff --git a/packages/core-plugin/src/api/vendor/payouts/route.ts b/packages/core/src/api/vendor/payouts/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/payouts/route.tsrename to packages/core/src/api/vendor/payouts/route.tsdiff --git a/packages/core-plugin/src/api/vendor/payouts/validators.ts b/packages/core/src/api/vendor/payouts/validators.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/payouts/validators.tsrename to packages/core/src/api/vendor/payouts/validators.tsdiff --git a/packages/core-plugin/src/api/vendor/price-lists/[id]/prices/batch/route.ts b/packages/core/src/api/vendor/price-lists/[id]/prices/batch/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/price-lists/[id]/prices/batch/route.tsrename to packages/core/src/api/vendor/price-lists/[id]/prices/batch/route.tsdiff --git a/packages/core-plugin/src/api/vendor/price-lists/[id]/prices/route.ts b/packages/core/src/api/vendor/price-lists/[id]/prices/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/price-lists/[id]/prices/route.tsrename to packages/core/src/api/vendor/price-lists/[id]/prices/route.tsdiff --git a/packages/core-plugin/src/api/vendor/price-lists/[id]/products/route.ts b/packages/core/src/api/vendor/price-lists/[id]/products/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/price-lists/[id]/products/route.tsrename to packages/core/src/api/vendor/price-lists/[id]/products/route.tsdiff --git a/packages/core-plugin/src/api/vendor/price-lists/[id]/route.ts b/packages/core/src/api/vendor/price-lists/[id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/price-lists/[id]/route.tsrename to packages/core/src/api/vendor/price-lists/[id]/route.tsdiff --git a/packages/core-plugin/src/api/vendor/price-lists/helpers.ts b/packages/core/src/api/vendor/price-lists/helpers.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/price-lists/helpers.tsrename to packages/core/src/api/vendor/price-lists/helpers.tsdiff --git a/packages/core-plugin/src/api/vendor/price-lists/middlewares.ts b/packages/core/src/api/vendor/price-lists/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/price-lists/middlewares.tsrename to packages/core/src/api/vendor/price-lists/middlewares.tsdiff --git a/packages/core-plugin/src/api/vendor/price-lists/query-config.ts b/packages/core/src/api/vendor/price-lists/query-config.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/price-lists/query-config.tsrename to packages/core/src/api/vendor/price-lists/query-config.tsdiff --git a/packages/core-plugin/src/api/vendor/price-lists/route.ts b/packages/core/src/api/vendor/price-lists/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/price-lists/route.tsrename to packages/core/src/api/vendor/price-lists/route.tsdiff --git a/packages/core-plugin/src/api/vendor/price-lists/validators.ts b/packages/core/src/api/vendor/price-lists/validators.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/price-lists/validators.tsrename to packages/core/src/api/vendor/price-lists/validators.tsdiff --git a/packages/core-plugin/src/api/vendor/price-preferences/[id]/route.ts b/packages/core/src/api/vendor/price-preferences/[id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/price-preferences/[id]/route.tsrename to packages/core/src/api/vendor/price-preferences/[id]/route.tsdiff --git a/packages/core-plugin/src/api/vendor/price-preferences/middlewares.ts b/packages/core/src/api/vendor/price-preferences/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/price-preferences/middlewares.tsrename to packages/core/src/api/vendor/price-preferences/middlewares.tsdiff --git a/packages/core-plugin/src/api/vendor/price-preferences/query-config.ts b/packages/core/src/api/vendor/price-preferences/query-config.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/price-preferences/query-config.tsrename to packages/core/src/api/vendor/price-preferences/query-config.tsdiff --git a/packages/core-plugin/src/api/vendor/price-preferences/route.ts b/packages/core/src/api/vendor/price-preferences/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/price-preferences/route.tsrename to packages/core/src/api/vendor/price-preferences/route.tsdiff --git a/packages/core-plugin/src/api/vendor/price-preferences/validators.ts b/packages/core/src/api/vendor/price-preferences/validators.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/price-preferences/validators.tsrename to packages/core/src/api/vendor/price-preferences/validators.tsdiff --git a/packages/core-plugin/src/api/vendor/product-categories/[id]/products/route.ts b/packages/core/src/api/vendor/product-categories/[id]/products/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/product-categories/[id]/products/route.tsrename to packages/core/src/api/vendor/product-categories/[id]/products/route.tsdiff --git a/packages/core-plugin/src/api/vendor/product-categories/[id]/route.ts b/packages/core/src/api/vendor/product-categories/[id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/product-categories/[id]/route.tsrename to packages/core/src/api/vendor/product-categories/[id]/route.tsdiff --git a/packages/core-plugin/src/api/vendor/product-categories/helpers.ts b/packages/core/src/api/vendor/product-categories/helpers.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/product-categories/helpers.tsrename to packages/core/src/api/vendor/product-categories/helpers.tsdiff --git a/packages/core-plugin/src/api/vendor/product-categories/middlewares.ts b/packages/core/src/api/vendor/product-categories/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/product-categories/middlewares.tsrename to packages/core/src/api/vendor/product-categories/middlewares.tsdiff --git a/packages/core-plugin/src/api/vendor/product-categories/query-config.ts b/packages/core/src/api/vendor/product-categories/query-config.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/product-categories/query-config.tsrename to packages/core/src/api/vendor/product-categories/query-config.tsdiff --git a/packages/core-plugin/src/api/vendor/product-categories/route.ts b/packages/core/src/api/vendor/product-categories/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/product-categories/route.tsrename to packages/core/src/api/vendor/product-categories/route.tsdiff --git a/packages/core-plugin/src/api/vendor/product-categories/validators.ts b/packages/core/src/api/vendor/product-categories/validators.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/product-categories/validators.tsrename to packages/core/src/api/vendor/product-categories/validators.tsdiff --git a/packages/core-plugin/src/api/vendor/product-tags/[id]/route.ts b/packages/core/src/api/vendor/product-tags/[id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/product-tags/[id]/route.tsrename to packages/core/src/api/vendor/product-tags/[id]/route.tsdiff --git a/packages/core-plugin/src/api/vendor/product-tags/middlewares.ts b/packages/core/src/api/vendor/product-tags/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/product-tags/middlewares.tsrename to packages/core/src/api/vendor/product-tags/middlewares.tsdiff --git a/packages/core-plugin/src/api/vendor/product-tags/query-config.ts b/packages/core/src/api/vendor/product-tags/query-config.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/product-tags/query-config.tsrename to packages/core/src/api/vendor/product-tags/query-config.tsdiff --git a/packages/core-plugin/src/api/vendor/product-tags/route.ts b/packages/core/src/api/vendor/product-tags/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/product-tags/route.tsrename to packages/core/src/api/vendor/product-tags/route.tsdiff --git a/packages/core-plugin/src/api/vendor/product-tags/validators.ts b/packages/core/src/api/vendor/product-tags/validators.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/product-tags/validators.tsrename to packages/core/src/api/vendor/product-tags/validators.tsdiff --git a/packages/core-plugin/src/api/vendor/product-types/[id]/route.ts b/packages/core/src/api/vendor/product-types/[id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/product-types/[id]/route.tsrename to packages/core/src/api/vendor/product-types/[id]/route.tsdiff --git a/packages/core-plugin/src/api/vendor/product-types/middlewares.ts b/packages/core/src/api/vendor/product-types/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/product-types/middlewares.tsrename to packages/core/src/api/vendor/product-types/middlewares.tsdiff --git a/packages/core-plugin/src/api/vendor/product-types/query-config.ts b/packages/core/src/api/vendor/product-types/query-config.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/product-types/query-config.tsrename to packages/core/src/api/vendor/product-types/query-config.tsdiff --git a/packages/core-plugin/src/api/vendor/product-types/route.ts b/packages/core/src/api/vendor/product-types/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/product-types/route.tsrename to packages/core/src/api/vendor/product-types/route.tsdiff --git a/packages/core-plugin/src/api/vendor/product-types/validators.ts b/packages/core/src/api/vendor/product-types/validators.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/product-types/validators.tsrename to packages/core/src/api/vendor/product-types/validators.tsdiff --git a/packages/core-plugin/src/api/vendor/product-variants/middlewares.ts b/packages/core/src/api/vendor/product-variants/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/product-variants/middlewares.tsrename to packages/core/src/api/vendor/product-variants/middlewares.tsdiff --git a/packages/core-plugin/src/api/vendor/product-variants/query-config.ts b/packages/core/src/api/vendor/product-variants/query-config.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/product-variants/query-config.tsrename to packages/core/src/api/vendor/product-variants/query-config.tsdiff --git a/packages/core-plugin/src/api/vendor/product-variants/route.ts b/packages/core/src/api/vendor/product-variants/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/product-variants/route.tsrename to packages/core/src/api/vendor/product-variants/route.tsdiff --git a/packages/core-plugin/src/api/vendor/product-variants/validators.ts b/packages/core/src/api/vendor/product-variants/validators.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/product-variants/validators.tsrename to packages/core/src/api/vendor/product-variants/validators.tsdiff --git a/packages/core-plugin/src/api/vendor/products/[id]/attributes/[attribute_id]/route.ts b/packages/core/src/api/vendor/products/[id]/attributes/[attribute_id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/products/[id]/attributes/[attribute_id]/route.tsrename to packages/core/src/api/vendor/products/[id]/attributes/[attribute_id]/route.tsdiff --git a/packages/core-plugin/src/api/vendor/products/[id]/attributes/route.ts b/packages/core/src/api/vendor/products/[id]/attributes/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/products/[id]/attributes/route.tsrename to packages/core/src/api/vendor/products/[id]/attributes/route.tsdiff --git a/packages/core-plugin/src/api/vendor/products/[id]/attributes/utils.ts b/packages/core/src/api/vendor/products/[id]/attributes/utils.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/products/[id]/attributes/utils.tsrename to packages/core/src/api/vendor/products/[id]/attributes/utils.tsdiff --git a/packages/core-plugin/src/api/vendor/products/[id]/options/[option_id]/route.ts b/packages/core/src/api/vendor/products/[id]/options/[option_id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/products/[id]/options/[option_id]/route.tsrename to packages/core/src/api/vendor/products/[id]/options/[option_id]/route.tsdiff --git a/packages/core-plugin/src/api/vendor/products/[id]/options/route.ts b/packages/core/src/api/vendor/products/[id]/options/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/products/[id]/options/route.tsrename to packages/core/src/api/vendor/products/[id]/options/route.tsdiff --git a/packages/core-plugin/src/api/vendor/products/[id]/route.ts b/packages/core/src/api/vendor/products/[id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/products/[id]/route.tsrename to packages/core/src/api/vendor/products/[id]/route.tsdiff --git a/packages/core-plugin/src/api/vendor/products/[id]/variants/[variant_id]/media/route.ts b/packages/core/src/api/vendor/products/[id]/variants/[variant_id]/media/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/products/[id]/variants/[variant_id]/media/route.tsrename to packages/core/src/api/vendor/products/[id]/variants/[variant_id]/media/route.tsdiff --git a/packages/core-plugin/src/api/vendor/products/[id]/variants/[variant_id]/route.ts b/packages/core/src/api/vendor/products/[id]/variants/[variant_id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/products/[id]/variants/[variant_id]/route.tsrename to packages/core/src/api/vendor/products/[id]/variants/[variant_id]/route.tsdiff --git a/packages/core-plugin/src/api/vendor/products/[id]/variants/route.ts b/packages/core/src/api/vendor/products/[id]/variants/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/products/[id]/variants/route.tsrename to packages/core/src/api/vendor/products/[id]/variants/route.tsdiff --git a/packages/core-plugin/src/api/vendor/products/helpers.ts b/packages/core/src/api/vendor/products/helpers.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/products/helpers.tsrename to packages/core/src/api/vendor/products/helpers.tsdiff --git a/packages/core-plugin/src/api/vendor/products/middlewares.ts b/packages/core/src/api/vendor/products/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/products/middlewares.tsrename to packages/core/src/api/vendor/products/middlewares.tsdiff --git a/packages/core-plugin/src/api/vendor/products/query-config.ts b/packages/core/src/api/vendor/products/query-config.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/products/query-config.tsrename to packages/core/src/api/vendor/products/query-config.tsdiff --git a/packages/core-plugin/src/api/vendor/products/route.ts b/packages/core/src/api/vendor/products/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/products/route.tsrename to packages/core/src/api/vendor/products/route.tsdiff --git a/packages/core-plugin/src/api/vendor/products/utils/transform-product-attributes.ts b/packages/core/src/api/vendor/products/utils/transform-product-attributes.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/products/utils/transform-product-attributes.tsrename to packages/core/src/api/vendor/products/utils/transform-product-attributes.tsdiff --git a/packages/core-plugin/src/api/vendor/products/validators.ts b/packages/core/src/api/vendor/products/validators.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/products/validators.tsrename to packages/core/src/api/vendor/products/validators.tsdiff --git a/packages/core-plugin/src/api/vendor/promotions/[id]/[rule_type]/route.ts b/packages/core/src/api/vendor/promotions/[id]/[rule_type]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/promotions/[id]/[rule_type]/route.tsrename to packages/core/src/api/vendor/promotions/[id]/[rule_type]/route.tsdiff --git a/packages/core-plugin/src/api/vendor/promotions/[id]/buy-rules/batch/route.ts b/packages/core/src/api/vendor/promotions/[id]/buy-rules/batch/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/promotions/[id]/buy-rules/batch/route.tsrename to packages/core/src/api/vendor/promotions/[id]/buy-rules/batch/route.tsdiff --git a/packages/core-plugin/src/api/vendor/promotions/[id]/route.ts b/packages/core/src/api/vendor/promotions/[id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/promotions/[id]/route.tsrename to packages/core/src/api/vendor/promotions/[id]/route.tsdiff --git a/packages/core-plugin/src/api/vendor/promotions/[id]/rules/batch/route.ts b/packages/core/src/api/vendor/promotions/[id]/rules/batch/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/promotions/[id]/rules/batch/route.tsrename to packages/core/src/api/vendor/promotions/[id]/rules/batch/route.tsdiff --git a/packages/core-plugin/src/api/vendor/promotions/[id]/target-rules/batch/route.ts b/packages/core/src/api/vendor/promotions/[id]/target-rules/batch/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/promotions/[id]/target-rules/batch/route.tsrename to packages/core/src/api/vendor/promotions/[id]/target-rules/batch/route.tsdiff --git a/packages/core-plugin/src/api/vendor/promotions/helpers.ts b/packages/core/src/api/vendor/promotions/helpers.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/promotions/helpers.tsrename to packages/core/src/api/vendor/promotions/helpers.tsdiff --git a/packages/core-plugin/src/api/vendor/promotions/middlewares.ts b/packages/core/src/api/vendor/promotions/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/promotions/middlewares.tsrename to packages/core/src/api/vendor/promotions/middlewares.tsdiff --git a/packages/core-plugin/src/api/vendor/promotions/query-config.ts b/packages/core/src/api/vendor/promotions/query-config.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/promotions/query-config.tsrename to packages/core/src/api/vendor/promotions/query-config.tsdiff --git a/packages/core-plugin/src/api/vendor/promotions/route.ts b/packages/core/src/api/vendor/promotions/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/promotions/route.tsrename to packages/core/src/api/vendor/promotions/route.tsdiff --git a/packages/core-plugin/src/api/vendor/promotions/rule-attribute-options/[rule_type]/route.ts b/packages/core/src/api/vendor/promotions/rule-attribute-options/[rule_type]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/promotions/rule-attribute-options/[rule_type]/route.tsrename to packages/core/src/api/vendor/promotions/rule-attribute-options/[rule_type]/route.tsdiff --git a/packages/core-plugin/src/api/vendor/promotions/rule-value-options/[rule_type]/[rule_attribute_id]/route.ts b/packages/core/src/api/vendor/promotions/rule-value-options/[rule_type]/[rule_attribute_id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/promotions/rule-value-options/[rule_type]/[rule_attribute_id]/route.tsrename to packages/core/src/api/vendor/promotions/rule-value-options/[rule_type]/[rule_attribute_id]/route.tsdiff --git a/packages/core-plugin/src/api/vendor/promotions/utils/index.ts b/packages/core/src/api/vendor/promotions/utils/index.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/promotions/utils/index.tsrename to packages/core/src/api/vendor/promotions/utils/index.tsdiff --git a/packages/core-plugin/src/api/vendor/promotions/utils/operators-map.ts b/packages/core/src/api/vendor/promotions/utils/operators-map.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/promotions/utils/operators-map.tsrename to packages/core/src/api/vendor/promotions/utils/operators-map.tsdiff --git a/packages/core-plugin/src/api/vendor/promotions/utils/rule-attributes-map.ts b/packages/core/src/api/vendor/promotions/utils/rule-attributes-map.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/promotions/utils/rule-attributes-map.tsrename to packages/core/src/api/vendor/promotions/utils/rule-attributes-map.tsdiff --git a/packages/core-plugin/src/api/vendor/promotions/utils/rule-query-configuration.ts b/packages/core/src/api/vendor/promotions/utils/rule-query-configuration.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/promotions/utils/rule-query-configuration.tsrename to packages/core/src/api/vendor/promotions/utils/rule-query-configuration.tsdiff --git a/packages/core-plugin/src/api/vendor/promotions/utils/validate-rule-attribute.ts b/packages/core/src/api/vendor/promotions/utils/validate-rule-attribute.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/promotions/utils/validate-rule-attribute.tsrename to packages/core/src/api/vendor/promotions/utils/validate-rule-attribute.tsdiff --git a/packages/core-plugin/src/api/vendor/promotions/utils/validate-rule-type.ts b/packages/core/src/api/vendor/promotions/utils/validate-rule-type.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/promotions/utils/validate-rule-type.tsrename to packages/core/src/api/vendor/promotions/utils/validate-rule-type.tsdiff --git a/packages/core-plugin/src/api/vendor/promotions/validators.ts b/packages/core/src/api/vendor/promotions/validators.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/promotions/validators.tsrename to packages/core/src/api/vendor/promotions/validators.tsdiff --git a/packages/core-plugin/src/api/vendor/refund-reasons/[id]/route.ts b/packages/core/src/api/vendor/refund-reasons/[id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/refund-reasons/[id]/route.tsrename to packages/core/src/api/vendor/refund-reasons/[id]/route.tsdiff --git a/packages/core-plugin/src/api/vendor/refund-reasons/middlewares.ts b/packages/core/src/api/vendor/refund-reasons/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/refund-reasons/middlewares.tsrename to packages/core/src/api/vendor/refund-reasons/middlewares.tsdiff --git a/packages/core-plugin/src/api/vendor/refund-reasons/query-config.ts b/packages/core/src/api/vendor/refund-reasons/query-config.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/refund-reasons/query-config.tsrename to packages/core/src/api/vendor/refund-reasons/query-config.tsdiff --git a/packages/core-plugin/src/api/vendor/refund-reasons/route.ts b/packages/core/src/api/vendor/refund-reasons/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/refund-reasons/route.tsrename to packages/core/src/api/vendor/refund-reasons/route.tsdiff --git a/packages/core-plugin/src/api/vendor/refund-reasons/validators.ts b/packages/core/src/api/vendor/refund-reasons/validators.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/refund-reasons/validators.tsrename to packages/core/src/api/vendor/refund-reasons/validators.tsdiff --git a/packages/core-plugin/src/api/vendor/regions/[id]/route.ts b/packages/core/src/api/vendor/regions/[id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/regions/[id]/route.tsrename to packages/core/src/api/vendor/regions/[id]/route.tsdiff --git a/packages/core-plugin/src/api/vendor/regions/middlewares.ts b/packages/core/src/api/vendor/regions/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/regions/middlewares.tsrename to packages/core/src/api/vendor/regions/middlewares.tsdiff --git a/packages/core-plugin/src/api/vendor/regions/query-config.ts b/packages/core/src/api/vendor/regions/query-config.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/regions/query-config.tsrename to packages/core/src/api/vendor/regions/query-config.tsdiff --git a/packages/core-plugin/src/api/vendor/regions/route.ts b/packages/core/src/api/vendor/regions/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/regions/route.tsrename to packages/core/src/api/vendor/regions/route.tsdiff --git a/packages/core-plugin/src/api/vendor/regions/validators.ts b/packages/core/src/api/vendor/regions/validators.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/regions/validators.tsrename to packages/core/src/api/vendor/regions/validators.tsdiff --git a/packages/core-plugin/src/api/vendor/return-reasons/[id]/route.ts b/packages/core/src/api/vendor/return-reasons/[id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/return-reasons/[id]/route.tsrename to packages/core/src/api/vendor/return-reasons/[id]/route.tsdiff --git a/packages/core-plugin/src/api/vendor/return-reasons/middlewares.ts b/packages/core/src/api/vendor/return-reasons/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/return-reasons/middlewares.tsrename to packages/core/src/api/vendor/return-reasons/middlewares.tsdiff --git a/packages/core-plugin/src/api/vendor/return-reasons/query-config.ts b/packages/core/src/api/vendor/return-reasons/query-config.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/return-reasons/query-config.tsrename to packages/core/src/api/vendor/return-reasons/query-config.tsdiff --git a/packages/core-plugin/src/api/vendor/return-reasons/route.ts b/packages/core/src/api/vendor/return-reasons/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/return-reasons/route.tsrename to packages/core/src/api/vendor/return-reasons/route.tsdiff --git a/packages/core-plugin/src/api/vendor/return-reasons/validators.ts b/packages/core/src/api/vendor/return-reasons/validators.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/return-reasons/validators.tsrename to packages/core/src/api/vendor/return-reasons/validators.tsdiff --git a/packages/core-plugin/src/api/vendor/returns/[id]/cancel/route.ts b/packages/core/src/api/vendor/returns/[id]/cancel/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/returns/[id]/cancel/route.tsrename to packages/core/src/api/vendor/returns/[id]/cancel/route.tsdiff --git a/packages/core-plugin/src/api/vendor/returns/[id]/dismiss-items/[action_id]/route.ts b/packages/core/src/api/vendor/returns/[id]/dismiss-items/[action_id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/returns/[id]/dismiss-items/[action_id]/route.tsrename to packages/core/src/api/vendor/returns/[id]/dismiss-items/[action_id]/route.tsdiff --git a/packages/core-plugin/src/api/vendor/returns/[id]/dismiss-items/route.ts b/packages/core/src/api/vendor/returns/[id]/dismiss-items/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/returns/[id]/dismiss-items/route.tsrename to packages/core/src/api/vendor/returns/[id]/dismiss-items/route.tsdiff --git a/packages/core-plugin/src/api/vendor/returns/[id]/receive-items/[action_id]/route.ts b/packages/core/src/api/vendor/returns/[id]/receive-items/[action_id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/returns/[id]/receive-items/[action_id]/route.tsrename to packages/core/src/api/vendor/returns/[id]/receive-items/[action_id]/route.tsdiff --git a/packages/core-plugin/src/api/vendor/returns/[id]/receive-items/route.ts b/packages/core/src/api/vendor/returns/[id]/receive-items/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/returns/[id]/receive-items/route.tsrename to packages/core/src/api/vendor/returns/[id]/receive-items/route.tsdiff --git a/packages/core-plugin/src/api/vendor/returns/[id]/receive/confirm/route.ts b/packages/core/src/api/vendor/returns/[id]/receive/confirm/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/returns/[id]/receive/confirm/route.tsrename to packages/core/src/api/vendor/returns/[id]/receive/confirm/route.tsdiff --git a/packages/core-plugin/src/api/vendor/returns/[id]/receive/route.ts b/packages/core/src/api/vendor/returns/[id]/receive/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/returns/[id]/receive/route.tsrename to packages/core/src/api/vendor/returns/[id]/receive/route.tsdiff --git a/packages/core-plugin/src/api/vendor/returns/[id]/request-items/[action_id]/route.ts b/packages/core/src/api/vendor/returns/[id]/request-items/[action_id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/returns/[id]/request-items/[action_id]/route.tsrename to packages/core/src/api/vendor/returns/[id]/request-items/[action_id]/route.tsdiff --git a/packages/core-plugin/src/api/vendor/returns/[id]/request-items/route.ts b/packages/core/src/api/vendor/returns/[id]/request-items/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/returns/[id]/request-items/route.tsrename to packages/core/src/api/vendor/returns/[id]/request-items/route.tsdiff --git a/packages/core-plugin/src/api/vendor/returns/[id]/request/route.ts b/packages/core/src/api/vendor/returns/[id]/request/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/returns/[id]/request/route.tsrename to packages/core/src/api/vendor/returns/[id]/request/route.tsdiff --git a/packages/core-plugin/src/api/vendor/returns/[id]/route.ts b/packages/core/src/api/vendor/returns/[id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/returns/[id]/route.tsrename to packages/core/src/api/vendor/returns/[id]/route.tsdiff --git a/packages/core-plugin/src/api/vendor/returns/[id]/shipping-method/[action_id]/route.ts b/packages/core/src/api/vendor/returns/[id]/shipping-method/[action_id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/returns/[id]/shipping-method/[action_id]/route.tsrename to packages/core/src/api/vendor/returns/[id]/shipping-method/[action_id]/route.tsdiff --git a/packages/core-plugin/src/api/vendor/returns/[id]/shipping-method/route.ts b/packages/core/src/api/vendor/returns/[id]/shipping-method/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/returns/[id]/shipping-method/route.tsrename to packages/core/src/api/vendor/returns/[id]/shipping-method/route.tsdiff --git a/packages/core-plugin/src/api/vendor/returns/helpers.ts b/packages/core/src/api/vendor/returns/helpers.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/returns/helpers.tsrename to packages/core/src/api/vendor/returns/helpers.tsdiff --git a/packages/core-plugin/src/api/vendor/returns/middlewares.ts b/packages/core/src/api/vendor/returns/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/returns/middlewares.tsrename to packages/core/src/api/vendor/returns/middlewares.tsdiff --git a/packages/core-plugin/src/api/vendor/returns/query-config.ts b/packages/core/src/api/vendor/returns/query-config.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/returns/query-config.tsrename to packages/core/src/api/vendor/returns/query-config.tsdiff --git a/packages/core-plugin/src/api/vendor/returns/route.ts b/packages/core/src/api/vendor/returns/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/returns/route.tsrename to packages/core/src/api/vendor/returns/route.tsdiff --git a/packages/core-plugin/src/api/vendor/returns/validators.ts b/packages/core/src/api/vendor/returns/validators.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/returns/validators.tsrename to packages/core/src/api/vendor/returns/validators.tsdiff --git a/packages/core-plugin/src/api/vendor/sales-channels/[id]/products/route.ts b/packages/core/src/api/vendor/sales-channels/[id]/products/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/sales-channels/[id]/products/route.tsrename to packages/core/src/api/vendor/sales-channels/[id]/products/route.tsdiff --git a/packages/core-plugin/src/api/vendor/sales-channels/[id]/route.ts b/packages/core/src/api/vendor/sales-channels/[id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/sales-channels/[id]/route.tsrename to packages/core/src/api/vendor/sales-channels/[id]/route.tsdiff --git a/packages/core-plugin/src/api/vendor/sales-channels/helpers.ts b/packages/core/src/api/vendor/sales-channels/helpers.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/sales-channels/helpers.tsrename to packages/core/src/api/vendor/sales-channels/helpers.tsdiff --git a/packages/core-plugin/src/api/vendor/sales-channels/middlewares.ts b/packages/core/src/api/vendor/sales-channels/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/sales-channels/middlewares.tsrename to packages/core/src/api/vendor/sales-channels/middlewares.tsdiff --git a/packages/core-plugin/src/api/vendor/sales-channels/query-config.ts b/packages/core/src/api/vendor/sales-channels/query-config.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/sales-channels/query-config.tsrename to packages/core/src/api/vendor/sales-channels/query-config.tsdiff --git a/packages/core-plugin/src/api/vendor/sales-channels/route.ts b/packages/core/src/api/vendor/sales-channels/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/sales-channels/route.tsrename to packages/core/src/api/vendor/sales-channels/route.tsdiff --git a/packages/core-plugin/src/api/vendor/sales-channels/validators.ts b/packages/core/src/api/vendor/sales-channels/validators.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/sales-channels/validators.tsrename to packages/core/src/api/vendor/sales-channels/validators.tsdiff --git a/packages/core-plugin/src/api/vendor/sellers/[id]/address/route.ts b/packages/core/src/api/vendor/sellers/[id]/address/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/sellers/[id]/address/route.tsrename to packages/core/src/api/vendor/sellers/[id]/address/route.tsdiff --git a/packages/core-plugin/src/api/vendor/sellers/[id]/members/[member_id]/route.ts b/packages/core/src/api/vendor/sellers/[id]/members/[member_id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/sellers/[id]/members/[member_id]/route.tsrename to packages/core/src/api/vendor/sellers/[id]/members/[member_id]/route.tsdiff --git a/packages/core-plugin/src/api/vendor/sellers/[id]/members/invites/route.ts b/packages/core/src/api/vendor/sellers/[id]/members/invites/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/sellers/[id]/members/invites/route.tsrename to packages/core/src/api/vendor/sellers/[id]/members/invites/route.tsdiff --git a/packages/core-plugin/src/api/vendor/sellers/[id]/members/me/route.ts b/packages/core/src/api/vendor/sellers/[id]/members/me/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/sellers/[id]/members/me/route.tsrename to packages/core/src/api/vendor/sellers/[id]/members/me/route.tsdiff --git a/packages/core-plugin/src/api/vendor/sellers/[id]/members/route.ts b/packages/core/src/api/vendor/sellers/[id]/members/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/sellers/[id]/members/route.tsrename to packages/core/src/api/vendor/sellers/[id]/members/route.tsdiff --git a/packages/core-plugin/src/api/vendor/sellers/[id]/payment-details/route.ts b/packages/core/src/api/vendor/sellers/[id]/payment-details/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/sellers/[id]/payment-details/route.tsrename to packages/core/src/api/vendor/sellers/[id]/payment-details/route.tsdiff --git a/packages/core-plugin/src/api/vendor/sellers/[id]/professional-details/route.ts b/packages/core/src/api/vendor/sellers/[id]/professional-details/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/sellers/[id]/professional-details/route.tsrename to packages/core/src/api/vendor/sellers/[id]/professional-details/route.tsdiff --git a/packages/core-plugin/src/api/vendor/sellers/[id]/route.ts b/packages/core/src/api/vendor/sellers/[id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/sellers/[id]/route.tsrename to packages/core/src/api/vendor/sellers/[id]/route.tsdiff --git a/packages/core-plugin/src/api/vendor/sellers/me/route.ts b/packages/core/src/api/vendor/sellers/me/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/sellers/me/route.tsrename to packages/core/src/api/vendor/sellers/me/route.tsdiff --git a/packages/core-plugin/src/api/vendor/sellers/middlewares.ts b/packages/core/src/api/vendor/sellers/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/sellers/middlewares.tsrename to packages/core/src/api/vendor/sellers/middlewares.tsdiff --git a/packages/core-plugin/src/api/vendor/sellers/query-config.ts b/packages/core/src/api/vendor/sellers/query-config.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/sellers/query-config.tsrename to packages/core/src/api/vendor/sellers/query-config.tsdiff --git a/packages/core-plugin/src/api/vendor/sellers/route.ts b/packages/core/src/api/vendor/sellers/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/sellers/route.tsrename to packages/core/src/api/vendor/sellers/route.tsdiff --git a/packages/core-plugin/src/api/vendor/sellers/select/route.ts b/packages/core/src/api/vendor/sellers/select/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/sellers/select/route.tsrename to packages/core/src/api/vendor/sellers/select/route.tsdiff --git a/packages/core-plugin/src/api/vendor/sellers/validators.ts b/packages/core/src/api/vendor/sellers/validators.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/sellers/validators.tsrename to packages/core/src/api/vendor/sellers/validators.tsdiff --git a/packages/core-plugin/src/api/vendor/shipping-option-types/[id]/route.ts b/packages/core/src/api/vendor/shipping-option-types/[id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/shipping-option-types/[id]/route.tsrename to packages/core/src/api/vendor/shipping-option-types/[id]/route.tsdiff --git a/packages/core-plugin/src/api/vendor/shipping-option-types/helpers.ts b/packages/core/src/api/vendor/shipping-option-types/helpers.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/shipping-option-types/helpers.tsrename to packages/core/src/api/vendor/shipping-option-types/helpers.tsdiff --git a/packages/core-plugin/src/api/vendor/shipping-option-types/middlewares.ts b/packages/core/src/api/vendor/shipping-option-types/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/shipping-option-types/middlewares.tsrename to packages/core/src/api/vendor/shipping-option-types/middlewares.tsdiff --git a/packages/core-plugin/src/api/vendor/shipping-option-types/query-config.ts b/packages/core/src/api/vendor/shipping-option-types/query-config.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/shipping-option-types/query-config.tsrename to packages/core/src/api/vendor/shipping-option-types/query-config.tsdiff --git a/packages/core-plugin/src/api/vendor/shipping-option-types/route.ts b/packages/core/src/api/vendor/shipping-option-types/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/shipping-option-types/route.tsrename to packages/core/src/api/vendor/shipping-option-types/route.tsdiff --git a/packages/core-plugin/src/api/vendor/shipping-option-types/validators.ts b/packages/core/src/api/vendor/shipping-option-types/validators.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/shipping-option-types/validators.tsrename to packages/core/src/api/vendor/shipping-option-types/validators.tsdiff --git a/packages/core-plugin/src/api/vendor/shipping-options/[id]/route.ts b/packages/core/src/api/vendor/shipping-options/[id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/shipping-options/[id]/route.tsrename to packages/core/src/api/vendor/shipping-options/[id]/route.tsdiff --git a/packages/core-plugin/src/api/vendor/shipping-options/[id]/rules/batch/route.ts b/packages/core/src/api/vendor/shipping-options/[id]/rules/batch/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/shipping-options/[id]/rules/batch/route.tsrename to packages/core/src/api/vendor/shipping-options/[id]/rules/batch/route.tsdiff --git a/packages/core-plugin/src/api/vendor/shipping-options/helpers.ts b/packages/core/src/api/vendor/shipping-options/helpers.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/shipping-options/helpers.tsrename to packages/core/src/api/vendor/shipping-options/helpers.tsdiff --git a/packages/core-plugin/src/api/vendor/shipping-options/middlewares.ts b/packages/core/src/api/vendor/shipping-options/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/shipping-options/middlewares.tsrename to packages/core/src/api/vendor/shipping-options/middlewares.tsdiff --git a/packages/core-plugin/src/api/vendor/shipping-options/query-config.ts b/packages/core/src/api/vendor/shipping-options/query-config.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/shipping-options/query-config.tsrename to packages/core/src/api/vendor/shipping-options/query-config.tsdiff --git a/packages/core-plugin/src/api/vendor/shipping-options/route.ts b/packages/core/src/api/vendor/shipping-options/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/shipping-options/route.tsrename to packages/core/src/api/vendor/shipping-options/route.tsdiff --git a/packages/core-plugin/src/api/vendor/shipping-options/validators.ts b/packages/core/src/api/vendor/shipping-options/validators.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/shipping-options/validators.tsrename to packages/core/src/api/vendor/shipping-options/validators.tsdiff --git a/packages/core-plugin/src/api/vendor/shipping-profiles/[id]/route.ts b/packages/core/src/api/vendor/shipping-profiles/[id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/shipping-profiles/[id]/route.tsrename to packages/core/src/api/vendor/shipping-profiles/[id]/route.tsdiff --git a/packages/core-plugin/src/api/vendor/shipping-profiles/helpers.ts b/packages/core/src/api/vendor/shipping-profiles/helpers.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/shipping-profiles/helpers.tsrename to packages/core/src/api/vendor/shipping-profiles/helpers.tsdiff --git a/packages/core-plugin/src/api/vendor/shipping-profiles/middlewares.ts b/packages/core/src/api/vendor/shipping-profiles/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/shipping-profiles/middlewares.tsrename to packages/core/src/api/vendor/shipping-profiles/middlewares.tsdiff --git a/packages/core-plugin/src/api/vendor/shipping-profiles/query-config.ts b/packages/core/src/api/vendor/shipping-profiles/query-config.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/shipping-profiles/query-config.tsrename to packages/core/src/api/vendor/shipping-profiles/query-config.tsdiff --git a/packages/core-plugin/src/api/vendor/shipping-profiles/route.ts b/packages/core/src/api/vendor/shipping-profiles/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/shipping-profiles/route.tsrename to packages/core/src/api/vendor/shipping-profiles/route.tsdiff --git a/packages/core-plugin/src/api/vendor/shipping-profiles/validators.ts b/packages/core/src/api/vendor/shipping-profiles/validators.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/shipping-profiles/validators.tsrename to packages/core/src/api/vendor/shipping-profiles/validators.tsdiff --git a/packages/core-plugin/src/api/vendor/stock-locations/[id]/fulfillment-providers/route.ts b/packages/core/src/api/vendor/stock-locations/[id]/fulfillment-providers/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/stock-locations/[id]/fulfillment-providers/route.tsrename to packages/core/src/api/vendor/stock-locations/[id]/fulfillment-providers/route.tsdiff --git a/packages/core-plugin/src/api/vendor/stock-locations/[id]/fulfillment-sets/route.ts b/packages/core/src/api/vendor/stock-locations/[id]/fulfillment-sets/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/stock-locations/[id]/fulfillment-sets/route.tsrename to packages/core/src/api/vendor/stock-locations/[id]/fulfillment-sets/route.tsdiff --git a/packages/core-plugin/src/api/vendor/stock-locations/[id]/route.ts b/packages/core/src/api/vendor/stock-locations/[id]/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/stock-locations/[id]/route.tsrename to packages/core/src/api/vendor/stock-locations/[id]/route.tsdiff --git a/packages/core-plugin/src/api/vendor/stock-locations/[id]/sales-channels/route.ts b/packages/core/src/api/vendor/stock-locations/[id]/sales-channels/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/stock-locations/[id]/sales-channels/route.tsrename to packages/core/src/api/vendor/stock-locations/[id]/sales-channels/route.tsdiff --git a/packages/core-plugin/src/api/vendor/stock-locations/helpers.ts b/packages/core/src/api/vendor/stock-locations/helpers.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/stock-locations/helpers.tsrename to packages/core/src/api/vendor/stock-locations/helpers.tsdiff --git a/packages/core-plugin/src/api/vendor/stock-locations/middlewares.ts b/packages/core/src/api/vendor/stock-locations/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/stock-locations/middlewares.tsrename to packages/core/src/api/vendor/stock-locations/middlewares.tsdiff --git a/packages/core-plugin/src/api/vendor/stock-locations/query-config.ts b/packages/core/src/api/vendor/stock-locations/query-config.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/stock-locations/query-config.tsrename to packages/core/src/api/vendor/stock-locations/query-config.tsdiff --git a/packages/core-plugin/src/api/vendor/stock-locations/route.ts b/packages/core/src/api/vendor/stock-locations/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/stock-locations/route.tsrename to packages/core/src/api/vendor/stock-locations/route.tsdiff --git a/packages/core-plugin/src/api/vendor/stock-locations/validators.ts b/packages/core/src/api/vendor/stock-locations/validators.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/stock-locations/validators.tsrename to packages/core/src/api/vendor/stock-locations/validators.tsdiff --git a/packages/core-plugin/src/api/vendor/stores/middlewares.ts b/packages/core/src/api/vendor/stores/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/stores/middlewares.tsrename to packages/core/src/api/vendor/stores/middlewares.tsdiff --git a/packages/core-plugin/src/api/vendor/stores/query-config.ts b/packages/core/src/api/vendor/stores/query-config.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/stores/query-config.tsrename to packages/core/src/api/vendor/stores/query-config.tsdiff --git a/packages/core-plugin/src/api/vendor/stores/route.ts b/packages/core/src/api/vendor/stores/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/stores/route.tsrename to packages/core/src/api/vendor/stores/route.tsdiff --git a/packages/core-plugin/src/api/vendor/stores/validators.ts b/packages/core/src/api/vendor/stores/validators.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/stores/validators.tsrename to packages/core/src/api/vendor/stores/validators.tsdiff --git a/packages/core-plugin/src/api/vendor/subscription/middlewares.ts b/packages/core/src/api/vendor/subscription/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/subscription/middlewares.tsrename to packages/core/src/api/vendor/subscription/middlewares.tsdiff --git a/packages/core-plugin/src/api/vendor/subscription/route.ts b/packages/core/src/api/vendor/subscription/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/subscription/route.tsrename to packages/core/src/api/vendor/subscription/route.tsdiff --git a/packages/core-plugin/src/api/vendor/uploads/middlewares.ts b/packages/core/src/api/vendor/uploads/middlewares.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/uploads/middlewares.tsrename to packages/core/src/api/vendor/uploads/middlewares.tsdiff --git a/packages/core-plugin/src/api/vendor/uploads/route.ts b/packages/core/src/api/vendor/uploads/route.tssimilarity index 100%rename from packages/core-plugin/src/api/vendor/uploads/route.tsrename to packages/core/src/api/vendor/uploads/route.tsdiff --git a/packages/core-plugin/src/feature-flags/seller-registration.ts b/packages/core/src/feature-flags/seller-registration.tssimilarity index 100%rename from packages/core-plugin/src/feature-flags/seller-registration.tsrename to packages/core/src/feature-flags/seller-registration.tsdiff --git a/packages/core-plugin/src/links/README.md b/packages/core/src/links/README.mdsimilarity index 100%rename from packages/core-plugin/src/links/README.mdrename to packages/core/src/links/README.mddiff --git a/packages/core-plugin/src/links/campaign-seller-link.ts b/packages/core/src/links/campaign-seller-link.tssimilarity index 100%rename from packages/core-plugin/src/links/campaign-seller-link.tsrename to packages/core/src/links/campaign-seller-link.tsdiff --git a/packages/core-plugin/src/links/category-attribute-link.ts b/packages/core/src/links/category-attribute-link.tssimilarity index 100%rename from packages/core-plugin/src/links/category-attribute-link.tsrename to packages/core/src/links/category-attribute-link.tsdiff --git a/packages/core-plugin/src/links/fulfillment-set-seller-link.ts b/packages/core/src/links/fulfillment-set-seller-link.tssimilarity index 100%rename from packages/core-plugin/src/links/fulfillment-set-seller-link.tsrename to packages/core/src/links/fulfillment-set-seller-link.tsdiff --git a/packages/core-plugin/src/links/inventory-item-seller-link.ts b/packages/core/src/links/inventory-item-seller-link.tssimilarity index 100%rename from packages/core-plugin/src/links/inventory-item-seller-link.tsrename to packages/core/src/links/inventory-item-seller-link.tsdiff --git a/packages/core-plugin/src/links/line-item-commission-line-link.ts b/packages/core/src/links/line-item-commission-line-link.tssimilarity index 100%rename from packages/core-plugin/src/links/line-item-commission-line-link.tsrename to packages/core/src/links/line-item-commission-line-link.tsdiff --git a/packages/core-plugin/src/links/order-group-cart-link.ts b/packages/core/src/links/order-group-cart-link.tssimilarity index 100%rename from packages/core-plugin/src/links/order-group-cart-link.tsrename to packages/core/src/links/order-group-cart-link.tsdiff --git a/packages/core-plugin/src/links/order-group-order-link.ts b/packages/core/src/links/order-group-order-link.tssimilarity index 100%rename from packages/core-plugin/src/links/order-group-order-link.tsrename to packages/core/src/links/order-group-order-link.tsdiff --git a/packages/core-plugin/src/links/order-payout-link.ts b/packages/core/src/links/order-payout-link.tssimilarity index 100%rename from packages/core-plugin/src/links/order-payout-link.tsrename to packages/core/src/links/order-payout-link.tsdiff --git a/packages/core-plugin/src/links/order-seller-link.ts b/packages/core/src/links/order-seller-link.tssimilarity index 100%rename from packages/core-plugin/src/links/order-seller-link.tsrename to packages/core/src/links/order-seller-link.tsdiff --git a/packages/core-plugin/src/links/payout-seller-link.ts b/packages/core/src/links/payout-seller-link.tssimilarity index 100%rename from packages/core-plugin/src/links/payout-seller-link.tsrename to packages/core/src/links/payout-seller-link.tsdiff --git a/packages/core-plugin/src/links/price-list-seller-link.ts b/packages/core/src/links/price-list-seller-link.tssimilarity index 100%rename from packages/core-plugin/src/links/price-list-seller-link.tsrename to packages/core/src/links/price-list-seller-link.tsdiff --git a/packages/core-plugin/src/links/product-attribute-value-link.ts b/packages/core/src/links/product-attribute-value-link.tssimilarity index 100%rename from packages/core-plugin/src/links/product-attribute-value-link.tsrename to packages/core/src/links/product-attribute-value-link.tsdiff --git a/packages/core-plugin/src/links/product-seller-link.ts b/packages/core/src/links/product-seller-link.tssimilarity index 100%rename from packages/core-plugin/src/links/product-seller-link.tsrename to packages/core/src/links/product-seller-link.tsdiff --git a/packages/core-plugin/src/links/product-vendor-product-attribute-link.ts b/packages/core/src/links/product-vendor-product-attribute-link.tssimilarity index 100%rename from packages/core-plugin/src/links/product-vendor-product-attribute-link.tsrename to packages/core/src/links/product-vendor-product-attribute-link.tsdiff --git a/packages/core-plugin/src/links/promotion-seller-link.ts b/packages/core/src/links/promotion-seller-link.tssimilarity index 100%rename from packages/core-plugin/src/links/promotion-seller-link.tsrename to packages/core/src/links/promotion-seller-link.tsdiff --git a/packages/core-plugin/src/links/seller-attribute-link.ts b/packages/core/src/links/seller-attribute-link.tssimilarity index 100%rename from packages/core-plugin/src/links/seller-attribute-link.tsrename to packages/core/src/links/seller-attribute-link.tsdiff --git a/packages/core-plugin/src/links/seller-attribute-value-link.ts b/packages/core/src/links/seller-attribute-value-link.tssimilarity index 100%rename from packages/core-plugin/src/links/seller-attribute-value-link.tsrename to packages/core/src/links/seller-attribute-value-link.tsdiff --git a/packages/core-plugin/src/links/seller-customer-link.ts b/packages/core/src/links/seller-customer-link.tssimilarity index 100%rename from packages/core-plugin/src/links/seller-customer-link.tsrename to packages/core/src/links/seller-customer-link.tsdiff --git a/packages/core-plugin/src/links/seller-member-rbac-role.ts b/packages/core/src/links/seller-member-rbac-role.tssimilarity index 100%rename from packages/core-plugin/src/links/seller-member-rbac-role.tsrename to packages/core/src/links/seller-member-rbac-role.tsdiff --git a/packages/core-plugin/src/links/seller-payout-account-link.ts b/packages/core/src/links/seller-payout-account-link.tssimilarity index 100%rename from packages/core-plugin/src/links/seller-payout-account-link.tsrename to packages/core/src/links/seller-payout-account-link.tsdiff --git a/packages/core-plugin/src/links/seller-vendor-product-attribute-link.ts b/packages/core/src/links/seller-vendor-product-attribute-link.tssimilarity index 100%rename from packages/core-plugin/src/links/seller-vendor-product-attribute-link.tsrename to packages/core/src/links/seller-vendor-product-attribute-link.tsdiff --git a/packages/core-plugin/src/links/service-zone-seller-link.ts b/packages/core/src/links/service-zone-seller-link.tssimilarity index 100%rename from packages/core-plugin/src/links/service-zone-seller-link.tsrename to packages/core/src/links/service-zone-seller-link.tsdiff --git a/packages/core-plugin/src/links/shipping-option-seller-link.ts b/packages/core/src/links/shipping-option-seller-link.tssimilarity index 100%rename from packages/core-plugin/src/links/shipping-option-seller-link.tsrename to packages/core/src/links/shipping-option-seller-link.tsdiff --git a/packages/core-plugin/src/links/shipping-profile-seller-link.ts b/packages/core/src/links/shipping-profile-seller-link.tssimilarity index 100%rename from packages/core-plugin/src/links/shipping-profile-seller-link.tsrename to packages/core/src/links/shipping-profile-seller-link.tsdiff --git a/packages/core-plugin/src/links/stock-location-seller-link.ts b/packages/core/src/links/stock-location-seller-link.tssimilarity index 100%rename from packages/core-plugin/src/links/stock-location-seller-link.tsrename to packages/core/src/links/stock-location-seller-link.tsdiff --git a/packages/core-plugin/src/modules/README.md b/packages/core/src/modules/README.mdsimilarity index 100%rename from packages/core-plugin/src/modules/README.mdrename to packages/core/src/modules/README.mddiff --git a/packages/core-plugin/src/modules/admin-ui/index.ts b/packages/core/src/modules/admin-ui/index.tssimilarity index 100%rename from packages/core-plugin/src/modules/admin-ui/index.tsrename to packages/core/src/modules/admin-ui/index.tsdiff --git a/packages/core-plugin/src/modules/admin-ui/services/admin-ui-module-service.ts b/packages/core/src/modules/admin-ui/services/admin-ui-module-service.tssimilarity index 100%rename from packages/core-plugin/src/modules/admin-ui/services/admin-ui-module-service.tsrename to packages/core/src/modules/admin-ui/services/admin-ui-module-service.tsdiff --git a/packages/core-plugin/src/modules/attribute/index.ts b/packages/core/src/modules/attribute/index.tssimilarity index 100%rename from packages/core-plugin/src/modules/attribute/index.tsrename to packages/core/src/modules/attribute/index.tsdiff --git a/packages/core-plugin/src/modules/attribute/migrations/Migration20260325000000.ts b/packages/core/src/modules/attribute/migrations/Migration20260325000000.tssimilarity index 100%rename from packages/core-plugin/src/modules/attribute/migrations/Migration20260325000000.tsrename to packages/core/src/modules/attribute/migrations/Migration20260325000000.tsdiff --git a/packages/core-plugin/src/modules/attribute/models/attribute-possible-value.ts b/packages/core/src/modules/attribute/models/attribute-possible-value.tssimilarity index 100%rename from packages/core-plugin/src/modules/attribute/models/attribute-possible-value.tsrename to packages/core/src/modules/attribute/models/attribute-possible-value.tsdiff --git a/packages/core-plugin/src/modules/attribute/models/attribute-value.ts b/packages/core/src/modules/attribute/models/attribute-value.tssimilarity index 100%rename from packages/core-plugin/src/modules/attribute/models/attribute-value.tsrename to packages/core/src/modules/attribute/models/attribute-value.tsdiff --git a/packages/core-plugin/src/modules/attribute/models/attribute.ts b/packages/core/src/modules/attribute/models/attribute.tssimilarity index 100%rename from packages/core-plugin/src/modules/attribute/models/attribute.tsrename to packages/core/src/modules/attribute/models/attribute.tsdiff --git a/packages/core-plugin/src/modules/attribute/models/index.ts b/packages/core/src/modules/attribute/models/index.tssimilarity index 100%rename from packages/core-plugin/src/modules/attribute/models/index.tsrename to packages/core/src/modules/attribute/models/index.tsdiff --git a/packages/core-plugin/src/modules/attribute/service.ts b/packages/core/src/modules/attribute/service.tssimilarity index 100%rename from packages/core-plugin/src/modules/attribute/service.tsrename to packages/core/src/modules/attribute/service.tsdiff --git a/packages/core-plugin/src/modules/codegen/index.ts b/packages/core/src/modules/codegen/index.tssimilarity index 100%rename from packages/core-plugin/src/modules/codegen/index.tsrename to packages/core/src/modules/codegen/index.tsdiff --git a/packages/core-plugin/src/modules/codegen/services/codegen-module-service.ts b/packages/core/src/modules/codegen/services/codegen-module-service.tssimilarity index 100%rename from packages/core-plugin/src/modules/codegen/services/codegen-module-service.tsrename to packages/core/src/modules/codegen/services/codegen-module-service.tsdiff --git a/packages/core-plugin/src/modules/commission/index.ts b/packages/core/src/modules/commission/index.tssimilarity index 100%rename from packages/core-plugin/src/modules/commission/index.tsrename to packages/core/src/modules/commission/index.tsdiff --git a/packages/core-plugin/src/modules/commission/migrations/.snapshot-medusa-commission.json b/packages/core/src/modules/commission/migrations/.snapshot-medusa-commission.jsonsimilarity index 100%rename from packages/core-plugin/src/modules/commission/migrations/.snapshot-medusa-commission.jsonrename to packages/core/src/modules/commission/migrations/.snapshot-medusa-commission.jsondiff --git a/packages/core-plugin/src/modules/commission/migrations/Migration20260130132817.ts b/packages/core/src/modules/commission/migrations/Migration20260130132817.tssimilarity index 100%rename from packages/core-plugin/src/modules/commission/migrations/Migration20260130132817.tsrename to packages/core/src/modules/commission/migrations/Migration20260130132817.tsdiff --git a/packages/core-plugin/src/modules/commission/models/commission-line.ts b/packages/core/src/modules/commission/models/commission-line.tssimilarity index 100%rename from packages/core-plugin/src/modules/commission/models/commission-line.tsrename to packages/core/src/modules/commission/models/commission-line.tsdiff --git a/packages/core-plugin/src/modules/commission/models/commission-rate.ts b/packages/core/src/modules/commission/models/commission-rate.tssimilarity index 100%rename from packages/core-plugin/src/modules/commission/models/commission-rate.tsrename to packages/core/src/modules/commission/models/commission-rate.tsdiff --git a/packages/core-plugin/src/modules/commission/models/commission-rule.ts b/packages/core/src/modules/commission/models/commission-rule.tssimilarity index 100%rename from packages/core-plugin/src/modules/commission/models/commission-rule.tsrename to packages/core/src/modules/commission/models/commission-rule.tsdiff --git a/packages/core-plugin/src/modules/commission/models/index.ts b/packages/core/src/modules/commission/models/index.tssimilarity index 100%rename from packages/core-plugin/src/modules/commission/models/index.tsrename to packages/core/src/modules/commission/models/index.tsdiff --git a/packages/core-plugin/src/modules/commission/service.ts b/packages/core/src/modules/commission/service.tssimilarity index 100%rename from packages/core-plugin/src/modules/commission/service.tsrename to packages/core/src/modules/commission/service.tsdiff --git a/packages/core-plugin/src/modules/custom-fields/index.ts b/packages/core/src/modules/custom-fields/index.tssimilarity index 100%rename from packages/core-plugin/src/modules/custom-fields/index.tsrename to packages/core/src/modules/custom-fields/index.tsdiff --git a/packages/core-plugin/src/modules/custom-fields/loaders.ts b/packages/core/src/modules/custom-fields/loaders.tssimilarity index 100%rename from packages/core-plugin/src/modules/custom-fields/loaders.tsrename to packages/core/src/modules/custom-fields/loaders.tsdiff --git a/packages/core-plugin/src/modules/custom-fields/services/custom-fields-module-service.ts b/packages/core/src/modules/custom-fields/services/custom-fields-module-service.tssimilarity index 100%rename from packages/core-plugin/src/modules/custom-fields/services/custom-fields-module-service.tsrename to packages/core/src/modules/custom-fields/services/custom-fields-module-service.tsdiff --git a/packages/core-plugin/src/modules/custom-fields/utils/generate-entity.ts b/packages/core/src/modules/custom-fields/utils/generate-entity.tssimilarity index 100%rename from packages/core-plugin/src/modules/custom-fields/utils/generate-entity.tsrename to packages/core/src/modules/custom-fields/utils/generate-entity.tsdiff --git a/packages/core-plugin/src/modules/payout/index.ts b/packages/core/src/modules/payout/index.tssimilarity index 100%rename from packages/core-plugin/src/modules/payout/index.tsrename to packages/core/src/modules/payout/index.tsdiff --git a/packages/core-plugin/src/modules/payout/loaders/provider.ts b/packages/core/src/modules/payout/loaders/provider.tssimilarity index 100%rename from packages/core-plugin/src/modules/payout/loaders/provider.tsrename to packages/core/src/modules/payout/loaders/provider.tsdiff --git a/packages/core-plugin/src/modules/payout/migrations/.snapshot-medusa-payout.json b/packages/core/src/modules/payout/migrations/.snapshot-medusa-payout.jsonsimilarity index 100%rename from packages/core-plugin/src/modules/payout/migrations/.snapshot-medusa-payout.jsonrename to packages/core/src/modules/payout/migrations/.snapshot-medusa-payout.jsondiff --git a/packages/core-plugin/src/modules/payout/migrations/Migration20260130132816.ts b/packages/core/src/modules/payout/migrations/Migration20260130132816.tssimilarity index 100%rename from packages/core-plugin/src/modules/payout/migrations/Migration20260130132816.tsrename to packages/core/src/modules/payout/migrations/Migration20260130132816.tsdiff --git a/packages/core-plugin/src/modules/payout/migrations/Migration20260216152209.ts b/packages/core/src/modules/payout/migrations/Migration20260216152209.tssimilarity index 100%rename from packages/core-plugin/src/modules/payout/migrations/Migration20260216152209.tsrename to packages/core/src/modules/payout/migrations/Migration20260216152209.tsdiff --git a/packages/core-plugin/src/modules/payout/migrations/Migration20260317000000.ts b/packages/core/src/modules/payout/migrations/Migration20260317000000.tssimilarity index 100%rename from packages/core-plugin/src/modules/payout/migrations/Migration20260317000000.tsrename to packages/core/src/modules/payout/migrations/Migration20260317000000.tsdiff --git a/packages/core-plugin/src/modules/payout/migrations/Migration20260323170925.ts b/packages/core/src/modules/payout/migrations/Migration20260323170925.tssimilarity index 100%rename from packages/core-plugin/src/modules/payout/migrations/Migration20260323170925.tsrename to packages/core/src/modules/payout/migrations/Migration20260323170925.tsdiff --git a/packages/core-plugin/src/modules/payout/models/index.ts b/packages/core/src/modules/payout/models/index.tssimilarity index 100%rename from packages/core-plugin/src/modules/payout/models/index.tsrename to packages/core/src/modules/payout/models/index.tsdiff --git a/packages/core-plugin/src/modules/payout/models/onboarding.ts b/packages/core/src/modules/payout/models/onboarding.tssimilarity index 100%rename from packages/core-plugin/src/modules/payout/models/onboarding.tsrename to packages/core/src/modules/payout/models/onboarding.tsdiff --git a/packages/core-plugin/src/modules/payout/models/payout-account.ts b/packages/core/src/modules/payout/models/payout-account.tssimilarity index 100%rename from packages/core-plugin/src/modules/payout/models/payout-account.tsrename to packages/core/src/modules/payout/models/payout-account.tsdiff --git a/packages/core-plugin/src/modules/payout/models/payout.ts b/packages/core/src/modules/payout/models/payout.tssimilarity index 100%rename from packages/core-plugin/src/modules/payout/models/payout.tsrename to packages/core/src/modules/payout/models/payout.tsdiff --git a/packages/core-plugin/src/modules/payout/providers/index.ts b/packages/core/src/modules/payout/providers/index.tssimilarity index 100%rename from packages/core-plugin/src/modules/payout/providers/index.tsrename to packages/core/src/modules/payout/providers/index.tsdiff --git a/packages/core-plugin/src/modules/payout/providers/system.ts b/packages/core/src/modules/payout/providers/system.tssimilarity index 100%rename from packages/core-plugin/src/modules/payout/providers/system.tsrename to packages/core/src/modules/payout/providers/system.tsdiff --git a/packages/core-plugin/src/modules/payout/services/index.ts b/packages/core/src/modules/payout/services/index.tssimilarity index 100%rename from packages/core-plugin/src/modules/payout/services/index.tsrename to packages/core/src/modules/payout/services/index.tsdiff --git a/packages/core-plugin/src/modules/payout/services/payout-module-service.ts b/packages/core/src/modules/payout/services/payout-module-service.tssimilarity index 100%rename from packages/core-plugin/src/modules/payout/services/payout-module-service.tsrename to packages/core/src/modules/payout/services/payout-module-service.tsdiff --git a/packages/core-plugin/src/modules/payout/services/provider-service.ts b/packages/core/src/modules/payout/services/provider-service.tssimilarity index 100%rename from packages/core-plugin/src/modules/payout/services/provider-service.tsrename to packages/core/src/modules/payout/services/provider-service.tsdiff --git a/packages/core-plugin/src/modules/seller/index.ts b/packages/core/src/modules/seller/index.tssimilarity index 100%rename from packages/core-plugin/src/modules/seller/index.tsrename to packages/core/src/modules/seller/index.tsdiff --git a/packages/core-plugin/src/modules/seller/loaders/register-feature-flags.ts b/packages/core/src/modules/seller/loaders/register-feature-flags.tssimilarity index 100%rename from packages/core-plugin/src/modules/seller/loaders/register-feature-flags.tsrename to packages/core/src/modules/seller/loaders/register-feature-flags.tsdiff --git a/packages/core-plugin/src/modules/seller/migrations/.snapshot-medusa-seller.json b/packages/core/src/modules/seller/migrations/.snapshot-medusa-seller.jsonsimilarity index 100%rename from packages/core-plugin/src/modules/seller/migrations/.snapshot-medusa-seller.jsonrename to packages/core/src/modules/seller/migrations/.snapshot-medusa-seller.jsondiff --git a/packages/core-plugin/src/modules/seller/migrations/Migration20260324104737.ts b/packages/core/src/modules/seller/migrations/Migration20260324104737.tssimilarity index 100%rename from packages/core-plugin/src/modules/seller/migrations/Migration20260324104737.tsrename to packages/core/src/modules/seller/migrations/Migration20260324104737.tsdiff --git a/packages/core-plugin/src/modules/seller/migrations/Migration20260330093053.ts b/packages/core/src/modules/seller/migrations/Migration20260330093053.tssimilarity index 100%rename from packages/core-plugin/src/modules/seller/migrations/Migration20260330093053.tsrename to packages/core/src/modules/seller/migrations/Migration20260330093053.tsdiff --git a/packages/core-plugin/src/modules/seller/migrations/Migration20260331113435.ts b/packages/core/src/modules/seller/migrations/Migration20260331113435.tssimilarity index 100%rename from packages/core-plugin/src/modules/seller/migrations/Migration20260331113435.tsrename to packages/core/src/modules/seller/migrations/Migration20260331113435.tsdiff --git a/packages/core-plugin/src/modules/seller/migrations/Migration20260401093720.ts b/packages/core/src/modules/seller/migrations/Migration20260401093720.tssimilarity index 100%rename from packages/core-plugin/src/modules/seller/migrations/Migration20260401093720.tsrename to packages/core/src/modules/seller/migrations/Migration20260401093720.tsdiff --git a/packages/core-plugin/src/modules/seller/models/address.ts b/packages/core/src/modules/seller/models/address.tssimilarity index 100%rename from packages/core-plugin/src/modules/seller/models/address.tsrename to packages/core/src/modules/seller/models/address.tsdiff --git a/packages/core-plugin/src/modules/seller/models/index.ts b/packages/core/src/modules/seller/models/index.tssimilarity index 100%rename from packages/core-plugin/src/modules/seller/models/index.tsrename to packages/core/src/modules/seller/models/index.tsdiff --git a/packages/core-plugin/src/modules/seller/models/member-invite.ts b/packages/core/src/modules/seller/models/member-invite.tssimilarity index 100%rename from packages/core-plugin/src/modules/seller/models/member-invite.tsrename to packages/core/src/modules/seller/models/member-invite.tsdiff --git a/packages/core-plugin/src/modules/seller/models/member.ts b/packages/core/src/modules/seller/models/member.tssimilarity index 100%rename from packages/core-plugin/src/modules/seller/models/member.tsrename to packages/core/src/modules/seller/models/member.tsdiff --git a/packages/core-plugin/src/modules/seller/models/order-group.ts b/packages/core/src/modules/seller/models/order-group.tssimilarity index 100%rename from packages/core-plugin/src/modules/seller/models/order-group.tsrename to packages/core/src/modules/seller/models/order-group.tsdiff --git a/packages/core-plugin/src/modules/seller/models/payment-details.ts b/packages/core/src/modules/seller/models/payment-details.tssimilarity index 100%rename from packages/core-plugin/src/modules/seller/models/payment-details.tsrename to packages/core/src/modules/seller/models/payment-details.tsdiff --git a/packages/core-plugin/src/modules/seller/models/professional-details.ts b/packages/core/src/modules/seller/models/professional-details.tssimilarity index 100%rename from packages/core-plugin/src/modules/seller/models/professional-details.tsrename to packages/core/src/modules/seller/models/professional-details.tsdiff --git a/packages/core-plugin/src/modules/seller/models/seller-member.ts b/packages/core/src/modules/seller/models/seller-member.tssimilarity index 100%rename from packages/core-plugin/src/modules/seller/models/seller-member.tsrename to packages/core/src/modules/seller/models/seller-member.tsdiff --git a/packages/core-plugin/src/modules/seller/models/seller.ts b/packages/core/src/modules/seller/models/seller.tssimilarity index 100%rename from packages/core-plugin/src/modules/seller/models/seller.tsrename to packages/core/src/modules/seller/models/seller.tsdiff --git a/packages/core-plugin/src/modules/seller/repositories/index.ts b/packages/core/src/modules/seller/repositories/index.tssimilarity index 100%rename from packages/core-plugin/src/modules/seller/repositories/index.tsrename to packages/core/src/modules/seller/repositories/index.tsdiff --git a/packages/core-plugin/src/modules/seller/repositories/order-group.ts b/packages/core/src/modules/seller/repositories/order-group.tssimilarity index 100%rename from packages/core-plugin/src/modules/seller/repositories/order-group.tsrename to packages/core/src/modules/seller/repositories/order-group.tsdiff --git a/packages/core-plugin/src/modules/seller/service.ts b/packages/core/src/modules/seller/service.tssimilarity index 100%rename from packages/core-plugin/src/modules/seller/service.tsrename to packages/core/src/modules/seller/service.tsdiff --git a/packages/core-plugin/src/modules/subscription/index.ts b/packages/core/src/modules/subscription/index.tssimilarity index 100%rename from packages/core-plugin/src/modules/subscription/index.tsrename to packages/core/src/modules/subscription/index.tsdiff --git a/packages/core-plugin/src/modules/subscription/migrations/.snapshot-medusa-subscription.json b/packages/core/src/modules/subscription/migrations/.snapshot-medusa-subscription.jsonsimilarity index 100%rename from packages/core-plugin/src/modules/subscription/migrations/.snapshot-medusa-subscription.jsonrename to packages/core/src/modules/subscription/migrations/.snapshot-medusa-subscription.jsondiff --git a/packages/core-plugin/src/modules/subscription/migrations/Migration20260324135903.ts b/packages/core/src/modules/subscription/migrations/Migration20260324135903.tssimilarity index 100%rename from packages/core-plugin/src/modules/subscription/migrations/Migration20260324135903.tsrename to packages/core/src/modules/subscription/migrations/Migration20260324135903.tsdiff --git a/packages/core-plugin/src/modules/subscription/models/index.ts b/packages/core/src/modules/subscription/models/index.tssimilarity index 100%rename from packages/core-plugin/src/modules/subscription/models/index.tsrename to packages/core/src/modules/subscription/models/index.tsdiff --git a/packages/core-plugin/src/modules/subscription/models/subscription-override.ts b/packages/core/src/modules/subscription/models/subscription-override.tssimilarity index 100%rename from packages/core-plugin/src/modules/subscription/models/subscription-override.tsrename to packages/core/src/modules/subscription/models/subscription-override.tsdiff --git a/packages/core-plugin/src/modules/subscription/models/subscription-plan.ts b/packages/core/src/modules/subscription/models/subscription-plan.tssimilarity index 100%rename from packages/core-plugin/src/modules/subscription/models/subscription-plan.tsrename to packages/core/src/modules/subscription/models/subscription-plan.tsdiff --git a/packages/core-plugin/src/modules/subscription/service.ts b/packages/core/src/modules/subscription/service.tssimilarity index 100%rename from packages/core-plugin/src/modules/subscription/service.tsrename to packages/core/src/modules/subscription/service.tsdiff --git a/packages/core-plugin/src/modules/vendor-product-attribute/index.ts b/packages/core/src/modules/vendor-product-attribute/index.tssimilarity index 100%rename from packages/core-plugin/src/modules/vendor-product-attribute/index.tsrename to packages/core/src/modules/vendor-product-attribute/index.tsdiff --git a/packages/core-plugin/src/modules/vendor-product-attribute/migrations/Migration20260325000000.ts b/packages/core/src/modules/vendor-product-attribute/migrations/Migration20260325000000.tssimilarity index 100%rename from packages/core-plugin/src/modules/vendor-product-attribute/migrations/Migration20260325000000.tsrename to packages/core/src/modules/vendor-product-attribute/migrations/Migration20260325000000.tsdiff --git a/packages/core-plugin/src/modules/vendor-product-attribute/models/vendor-product-attribute.ts b/packages/core/src/modules/vendor-product-attribute/models/vendor-product-attribute.tssimilarity index 100%rename from packages/core-plugin/src/modules/vendor-product-attribute/models/vendor-product-attribute.tsrename to packages/core/src/modules/vendor-product-attribute/models/vendor-product-attribute.tsdiff --git a/packages/core-plugin/src/modules/vendor-product-attribute/service.ts b/packages/core/src/modules/vendor-product-attribute/service.tssimilarity index 100%rename from packages/core-plugin/src/modules/vendor-product-attribute/service.tsrename to packages/core/src/modules/vendor-product-attribute/service.tsdiff --git a/packages/core-plugin/src/modules/vendor-ui/index.ts b/packages/core/src/modules/vendor-ui/index.tssimilarity index 100%rename from packages/core-plugin/src/modules/vendor-ui/index.tsrename to packages/core/src/modules/vendor-ui/index.tsdiff --git a/packages/core-plugin/src/modules/vendor-ui/services/vendor-ui-module-service.ts b/packages/core/src/modules/vendor-ui/services/vendor-ui-module-service.tssimilarity index 100%rename from packages/core-plugin/src/modules/vendor-ui/services/vendor-ui-module-service.tsrename to packages/core/src/modules/vendor-ui/services/vendor-ui-module-service.tsdiff --git a/packages/core-plugin/src/policies/seller.ts b/packages/core/src/policies/seller.tssimilarity index 100%rename from packages/core-plugin/src/policies/seller.tsrename to packages/core/src/policies/seller.tsdiff --git a/packages/core-plugin/src/providers/README.md b/packages/core/src/providers/README.mdsimilarity index 100%rename from packages/core-plugin/src/providers/README.mdrename to packages/core/src/providers/README.mddiff --git a/packages/core-plugin/src/subscribers/payout-webhook.ts b/packages/core/src/subscribers/payout-webhook.tssimilarity index 100%rename from packages/core-plugin/src/subscribers/payout-webhook.tsrename to packages/core/src/subscribers/payout-webhook.tsdiff --git a/packages/core-plugin/src/types/seller-context.ts b/packages/core/src/types/seller-context.tssimilarity index 100%rename from packages/core-plugin/src/types/seller-context.tsrename to packages/core/src/types/seller-context.tsdiff --git a/packages/core-plugin/src/utils/dashboard/dashboard-base.ts b/packages/core/src/utils/dashboard/dashboard-base.tssimilarity index 100%rename from packages/core-plugin/src/utils/dashboard/dashboard-base.tsrename to packages/core/src/utils/dashboard/dashboard-base.tsdiff --git a/packages/core/src/with-mercur.ts b/packages/core/src/with-mercur.tsnew file mode 100644index 000000000..21c827b51--- /dev/null+++ b/packages/core/src/with-mercur.ts@@ -0,0 +1,63 @@+import type { InputConfigWithArrayModules } from "@medusajs/framework/types"+import { defineConfig } from '@medusajs/framework/utils'++type HttpConfig = NonNullable<NonNullable<InputConfigWithArrayModules["projectConfig"]>["http"]>++export type MercurInputConfig = Omit<InputConfigWithArrayModules, "projectConfig"> & {+ projectConfig?: Omit<NonNullable<InputConfigWithArrayModules["projectConfig"]>, "http"> & {+ http?: HttpConfig & {+ vendorCors?: string+ }+ }+}++export function withMercur(config: MercurInputConfig = {}): InputConfigWithArrayModules {+ const projectConfig = {+ ...config.projectConfig,+ http: {+ ...config.projectConfig?.http,+ } as any,+ }++ const admin = {+ ...config.admin,+ disable: config.admin?.disable ?? true,+ }++ const featureFlags = {+ ...config.featureFlags,+ rbac: config.featureFlags?.rbac ?? true,+ }++ const modules = [+ ...(config.modules ?? []),+ ...((config.modules ?? []).some(+ (m) =>+ typeof m === "object" &&+ "resolve" in m &&+ m.resolve === "@medusajs/medusa/rbac"+ )+ ? []+ : [{ resolve: "@medusajs/medusa/rbac" as const }]),+ ]++ const plugins = [+ ...(config.plugins ?? []),+ ...(!config.plugins?.some(+ (p) =>+ (typeof p === "string" ? p : p.resolve) === "@mercurjs/core"+ )+ ? [{ resolve: "@mercurjs/core", options: {} }]+ : []),+ ]++ // @ts-ignore+ return defineConfig({+ ...config,+ projectConfig,+ admin,+ featureFlags,+ modules,+ plugins,+ } as InputConfigWithArrayModules)+}diff --git a/packages/core-plugin/src/workflows/README.md b/packages/core/src/workflows/README.mdsimilarity index 100%rename from packages/core-plugin/src/workflows/README.mdrename to packages/core/src/workflows/README.mddiff --git a/packages/core-plugin/src/workflows/attribute/index.ts b/packages/core/src/workflows/attribute/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/attribute/index.tsrename to packages/core/src/workflows/attribute/index.tsdiff --git a/packages/core-plugin/src/workflows/attribute/steps/create-attribute-possible-values.ts b/packages/core/src/workflows/attribute/steps/create-attribute-possible-values.tssimilarity index 100%rename from packages/core-plugin/src/workflows/attribute/steps/create-attribute-possible-values.tsrename to packages/core/src/workflows/attribute/steps/create-attribute-possible-values.tsdiff --git a/packages/core-plugin/src/workflows/attribute/steps/create-attributes.ts b/packages/core/src/workflows/attribute/steps/create-attributes.tssimilarity index 100%rename from packages/core-plugin/src/workflows/attribute/steps/create-attributes.tsrename to packages/core/src/workflows/attribute/steps/create-attributes.tsdiff --git a/packages/core-plugin/src/workflows/attribute/steps/delete-attribute.ts b/packages/core/src/workflows/attribute/steps/delete-attribute.tssimilarity index 100%rename from packages/core-plugin/src/workflows/attribute/steps/delete-attribute.tsrename to packages/core/src/workflows/attribute/steps/delete-attribute.tsdiff --git a/packages/core-plugin/src/workflows/attribute/steps/index.ts b/packages/core/src/workflows/attribute/steps/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/attribute/steps/index.tsrename to packages/core/src/workflows/attribute/steps/index.tsdiff --git a/packages/core-plugin/src/workflows/attribute/steps/update-attribute-possible-value.ts b/packages/core/src/workflows/attribute/steps/update-attribute-possible-value.tssimilarity index 100%rename from packages/core-plugin/src/workflows/attribute/steps/update-attribute-possible-value.tsrename to packages/core/src/workflows/attribute/steps/update-attribute-possible-value.tsdiff --git a/packages/core-plugin/src/workflows/attribute/steps/update-attributes.ts b/packages/core/src/workflows/attribute/steps/update-attributes.tssimilarity index 100%rename from packages/core-plugin/src/workflows/attribute/steps/update-attributes.tsrename to packages/core/src/workflows/attribute/steps/update-attributes.tsdiff --git a/packages/core-plugin/src/workflows/attribute/steps/validate-attribute-delete.ts b/packages/core/src/workflows/attribute/steps/validate-attribute-delete.tssimilarity index 100%rename from packages/core-plugin/src/workflows/attribute/steps/validate-attribute-delete.tsrename to packages/core/src/workflows/attribute/steps/validate-attribute-delete.tsdiff --git a/packages/core-plugin/src/workflows/attribute/steps/validate-possible-values-removal.ts b/packages/core/src/workflows/attribute/steps/validate-possible-values-removal.tssimilarity index 100%rename from packages/core-plugin/src/workflows/attribute/steps/validate-possible-values-removal.tsrename to packages/core/src/workflows/attribute/steps/validate-possible-values-removal.tsdiff --git a/packages/core-plugin/src/workflows/attribute/workflows/create-attribute-possible-values.ts b/packages/core/src/workflows/attribute/workflows/create-attribute-possible-values.tssimilarity index 100%rename from packages/core-plugin/src/workflows/attribute/workflows/create-attribute-possible-values.tsrename to packages/core/src/workflows/attribute/workflows/create-attribute-possible-values.tsdiff --git a/packages/core-plugin/src/workflows/attribute/workflows/create-attributes.ts b/packages/core/src/workflows/attribute/workflows/create-attributes.tssimilarity index 100%rename from packages/core-plugin/src/workflows/attribute/workflows/create-attributes.tsrename to packages/core/src/workflows/attribute/workflows/create-attributes.tsdiff --git a/packages/core-plugin/src/workflows/attribute/workflows/delete-attribute.ts b/packages/core/src/workflows/attribute/workflows/delete-attribute.tssimilarity index 100%rename from packages/core-plugin/src/workflows/attribute/workflows/delete-attribute.tsrename to packages/core/src/workflows/attribute/workflows/delete-attribute.tsdiff --git a/packages/core-plugin/src/workflows/attribute/workflows/index.ts b/packages/core/src/workflows/attribute/workflows/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/attribute/workflows/index.tsrename to packages/core/src/workflows/attribute/workflows/index.tsdiff --git a/packages/core-plugin/src/workflows/attribute/workflows/update-attribute-possible-value.ts b/packages/core/src/workflows/attribute/workflows/update-attribute-possible-value.tssimilarity index 100%rename from packages/core-plugin/src/workflows/attribute/workflows/update-attribute-possible-value.tsrename to packages/core/src/workflows/attribute/workflows/update-attribute-possible-value.tsdiff --git a/packages/core-plugin/src/workflows/attribute/workflows/update-attributes.ts b/packages/core/src/workflows/attribute/workflows/update-attributes.tssimilarity index 100%rename from packages/core-plugin/src/workflows/attribute/workflows/update-attributes.tsrename to packages/core/src/workflows/attribute/workflows/update-attributes.tsdiff --git a/packages/core-plugin/src/workflows/campaign/index.ts b/packages/core/src/workflows/campaign/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/campaign/index.tsrename to packages/core/src/workflows/campaign/index.tsdiff --git a/packages/core-plugin/src/workflows/campaign/steps/index.ts b/packages/core/src/workflows/campaign/steps/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/campaign/steps/index.tsrename to packages/core/src/workflows/campaign/steps/index.tsdiff --git a/packages/core-plugin/src/workflows/campaign/steps/link-seller-campaign.ts b/packages/core/src/workflows/campaign/steps/link-seller-campaign.tssimilarity index 100%rename from packages/core-plugin/src/workflows/campaign/steps/link-seller-campaign.tsrename to packages/core/src/workflows/campaign/steps/link-seller-campaign.tsdiff --git a/packages/core-plugin/src/workflows/campaign/workflows/create-seller-campaigns.ts b/packages/core/src/workflows/campaign/workflows/create-seller-campaigns.tssimilarity index 100%rename from packages/core-plugin/src/workflows/campaign/workflows/create-seller-campaigns.tsrename to packages/core/src/workflows/campaign/workflows/create-seller-campaigns.tsdiff --git a/packages/core-plugin/src/workflows/campaign/workflows/index.ts b/packages/core/src/workflows/campaign/workflows/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/campaign/workflows/index.tsrename to packages/core/src/workflows/campaign/workflows/index.tsdiff --git a/packages/core-plugin/src/workflows/cart/index.ts b/packages/core/src/workflows/cart/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/cart/index.tsrename to packages/core/src/workflows/cart/index.tsdiff --git a/packages/core-plugin/src/workflows/cart/steps/index.ts b/packages/core/src/workflows/cart/steps/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/cart/steps/index.tsrename to packages/core/src/workflows/cart/steps/index.tsdiff --git a/packages/core-plugin/src/workflows/cart/steps/prepare-adjustments-from-promotion-actions.ts b/packages/core/src/workflows/cart/steps/prepare-adjustments-from-promotion-actions.tssimilarity index 100%rename from packages/core-plugin/src/workflows/cart/steps/prepare-adjustments-from-promotion-actions.tsrename to packages/core/src/workflows/cart/steps/prepare-adjustments-from-promotion-actions.tsdiff --git a/packages/core-plugin/src/workflows/cart/steps/validate-seller-cart-items.ts b/packages/core/src/workflows/cart/steps/validate-seller-cart-items.tssimilarity index 100%rename from packages/core-plugin/src/workflows/cart/steps/validate-seller-cart-items.tsrename to packages/core/src/workflows/cart/steps/validate-seller-cart-items.tsdiff --git a/packages/core-plugin/src/workflows/cart/steps/validate-seller-cart-shipping.ts b/packages/core/src/workflows/cart/steps/validate-seller-cart-shipping.tssimilarity index 100%rename from packages/core-plugin/src/workflows/cart/steps/validate-seller-cart-shipping.tsrename to packages/core/src/workflows/cart/steps/validate-seller-cart-shipping.tsdiff --git a/packages/core-plugin/src/workflows/cart/utils/fields.ts b/packages/core/src/workflows/cart/utils/fields.tssimilarity index 100%rename from packages/core-plugin/src/workflows/cart/utils/fields.tsrename to packages/core/src/workflows/cart/utils/fields.tsdiff --git a/packages/core-plugin/src/workflows/cart/utils/index.ts b/packages/core/src/workflows/cart/utils/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/cart/utils/index.tsrename to packages/core/src/workflows/cart/utils/index.tsdiff --git a/packages/core-plugin/src/workflows/cart/utils/prepare-confirm-inventory-input.ts b/packages/core/src/workflows/cart/utils/prepare-confirm-inventory-input.tssimilarity index 100%rename from packages/core-plugin/src/workflows/cart/utils/prepare-confirm-inventory-input.tsrename to packages/core/src/workflows/cart/utils/prepare-confirm-inventory-input.tsdiff --git a/packages/core-plugin/src/workflows/cart/utils/prepare-line-item-data.ts b/packages/core/src/workflows/cart/utils/prepare-line-item-data.tssimilarity index 100%rename from packages/core-plugin/src/workflows/cart/utils/prepare-line-item-data.tsrename to packages/core/src/workflows/cart/utils/prepare-line-item-data.tsdiff --git a/packages/core-plugin/src/workflows/cart/utils/schemas.ts b/packages/core/src/workflows/cart/utils/schemas.tssimilarity index 100%rename from packages/core-plugin/src/workflows/cart/utils/schemas.tsrename to packages/core/src/workflows/cart/utils/schemas.tsdiff --git a/packages/core-plugin/src/workflows/cart/workflows/add-seller-shipping-method-to-cart.ts b/packages/core/src/workflows/cart/workflows/add-seller-shipping-method-to-cart.tssimilarity index 100%rename from packages/core-plugin/src/workflows/cart/workflows/add-seller-shipping-method-to-cart.tsrename to packages/core/src/workflows/cart/workflows/add-seller-shipping-method-to-cart.tsdiff --git a/packages/core-plugin/src/workflows/cart/workflows/complete-cart-with-split-orders.ts b/packages/core/src/workflows/cart/workflows/complete-cart-with-split-orders.tssimilarity index 100%rename from packages/core-plugin/src/workflows/cart/workflows/complete-cart-with-split-orders.tsrename to packages/core/src/workflows/cart/workflows/complete-cart-with-split-orders.tsdiff --git a/packages/core-plugin/src/workflows/cart/workflows/index.ts b/packages/core/src/workflows/cart/workflows/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/cart/workflows/index.tsrename to packages/core/src/workflows/cart/workflows/index.tsdiff --git a/packages/core-plugin/src/workflows/cart/workflows/list-seller-shipping-options-for-cart.ts b/packages/core/src/workflows/cart/workflows/list-seller-shipping-options-for-cart.tssimilarity index 100%rename from packages/core-plugin/src/workflows/cart/workflows/list-seller-shipping-options-for-cart.tsrename to packages/core/src/workflows/cart/workflows/list-seller-shipping-options-for-cart.tsdiff --git a/packages/core-plugin/src/workflows/cart/workflows/update-cart-seller-promotions.ts b/packages/core/src/workflows/cart/workflows/update-cart-seller-promotions.tssimilarity index 100%rename from packages/core-plugin/src/workflows/cart/workflows/update-cart-seller-promotions.tsrename to packages/core/src/workflows/cart/workflows/update-cart-seller-promotions.tsdiff --git a/packages/core-plugin/src/workflows/commission/index.ts b/packages/core/src/workflows/commission/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/commission/index.tsrename to packages/core/src/workflows/commission/index.tsdiff --git a/packages/core-plugin/src/workflows/commission/steps/create-commission-rates.ts b/packages/core/src/workflows/commission/steps/create-commission-rates.tssimilarity index 100%rename from packages/core-plugin/src/workflows/commission/steps/create-commission-rates.tsrename to packages/core/src/workflows/commission/steps/create-commission-rates.tsdiff --git a/packages/core-plugin/src/workflows/commission/steps/create-commission-rules.ts b/packages/core/src/workflows/commission/steps/create-commission-rules.tssimilarity index 100%rename from packages/core-plugin/src/workflows/commission/steps/create-commission-rules.tsrename to packages/core/src/workflows/commission/steps/create-commission-rules.tsdiff --git a/packages/core-plugin/src/workflows/commission/steps/delete-commission-rates.ts b/packages/core/src/workflows/commission/steps/delete-commission-rates.tssimilarity index 100%rename from packages/core-plugin/src/workflows/commission/steps/delete-commission-rates.tsrename to packages/core/src/workflows/commission/steps/delete-commission-rates.tsdiff --git a/packages/core-plugin/src/workflows/commission/steps/delete-commission-rules.ts b/packages/core/src/workflows/commission/steps/delete-commission-rules.tssimilarity index 100%rename from packages/core-plugin/src/workflows/commission/steps/delete-commission-rules.tsrename to packages/core/src/workflows/commission/steps/delete-commission-rules.tsdiff --git a/packages/core-plugin/src/workflows/commission/steps/get-commission-lines.ts b/packages/core/src/workflows/commission/steps/get-commission-lines.tssimilarity index 100%rename from packages/core-plugin/src/workflows/commission/steps/get-commission-lines.tsrename to packages/core/src/workflows/commission/steps/get-commission-lines.tsdiff --git a/packages/core-plugin/src/workflows/commission/steps/index.ts b/packages/core/src/workflows/commission/steps/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/commission/steps/index.tsrename to packages/core/src/workflows/commission/steps/index.tsdiff --git a/packages/core-plugin/src/workflows/commission/steps/update-commission-rates.ts b/packages/core/src/workflows/commission/steps/update-commission-rates.tssimilarity index 100%rename from packages/core-plugin/src/workflows/commission/steps/update-commission-rates.tsrename to packages/core/src/workflows/commission/steps/update-commission-rates.tsdiff --git a/packages/core-plugin/src/workflows/commission/steps/update-commission-rules.ts b/packages/core/src/workflows/commission/steps/update-commission-rules.tssimilarity index 100%rename from packages/core-plugin/src/workflows/commission/steps/update-commission-rules.tsrename to packages/core/src/workflows/commission/steps/update-commission-rules.tsdiff --git a/packages/core-plugin/src/workflows/commission/steps/upsert-commission-lines.ts b/packages/core/src/workflows/commission/steps/upsert-commission-lines.tssimilarity index 100%rename from packages/core-plugin/src/workflows/commission/steps/upsert-commission-lines.tsrename to packages/core/src/workflows/commission/steps/upsert-commission-lines.tsdiff --git a/packages/core-plugin/src/workflows/commission/workflows/batch-commission-rules.ts b/packages/core/src/workflows/commission/workflows/batch-commission-rules.tssimilarity index 100%rename from packages/core-plugin/src/workflows/commission/workflows/batch-commission-rules.tsrename to packages/core/src/workflows/commission/workflows/batch-commission-rules.tsdiff --git a/packages/core-plugin/src/workflows/commission/workflows/create-commission-rates.ts b/packages/core/src/workflows/commission/workflows/create-commission-rates.tssimilarity index 100%rename from packages/core-plugin/src/workflows/commission/workflows/create-commission-rates.tsrename to packages/core/src/workflows/commission/workflows/create-commission-rates.tsdiff --git a/packages/core-plugin/src/workflows/commission/workflows/delete-commission-rates.ts b/packages/core/src/workflows/commission/workflows/delete-commission-rates.tssimilarity index 100%rename from packages/core-plugin/src/workflows/commission/workflows/delete-commission-rates.tsrename to packages/core/src/workflows/commission/workflows/delete-commission-rates.tsdiff --git a/packages/core-plugin/src/workflows/commission/workflows/index.ts b/packages/core/src/workflows/commission/workflows/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/commission/workflows/index.tsrename to packages/core/src/workflows/commission/workflows/index.tsdiff --git a/packages/core-plugin/src/workflows/commission/workflows/refresh-order-commission-lines.ts b/packages/core/src/workflows/commission/workflows/refresh-order-commission-lines.tssimilarity index 100%rename from packages/core-plugin/src/workflows/commission/workflows/refresh-order-commission-lines.tsrename to packages/core/src/workflows/commission/workflows/refresh-order-commission-lines.tsdiff --git a/packages/core-plugin/src/workflows/commission/workflows/update-commission-rates.ts b/packages/core/src/workflows/commission/workflows/update-commission-rates.tssimilarity index 100%rename from packages/core-plugin/src/workflows/commission/workflows/update-commission-rates.tsrename to packages/core/src/workflows/commission/workflows/update-commission-rates.tsdiff --git a/packages/core-plugin/src/workflows/custom-fields/index.ts b/packages/core/src/workflows/custom-fields/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/custom-fields/index.tsrename to packages/core/src/workflows/custom-fields/index.tsdiff --git a/packages/core-plugin/src/workflows/custom-fields/steps/delete-custom-fields.ts b/packages/core/src/workflows/custom-fields/steps/delete-custom-fields.tssimilarity index 100%rename from packages/core-plugin/src/workflows/custom-fields/steps/delete-custom-fields.tsrename to packages/core/src/workflows/custom-fields/steps/delete-custom-fields.tsdiff --git a/packages/core-plugin/src/workflows/custom-fields/steps/index.ts b/packages/core/src/workflows/custom-fields/steps/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/custom-fields/steps/index.tsrename to packages/core/src/workflows/custom-fields/steps/index.tsdiff --git a/packages/core-plugin/src/workflows/custom-fields/steps/upsert-custom-fields.ts b/packages/core/src/workflows/custom-fields/steps/upsert-custom-fields.tssimilarity index 100%rename from packages/core-plugin/src/workflows/custom-fields/steps/upsert-custom-fields.tsrename to packages/core/src/workflows/custom-fields/steps/upsert-custom-fields.tsdiff --git a/packages/core-plugin/src/workflows/events.ts b/packages/core/src/workflows/events.tssimilarity index 100%rename from packages/core-plugin/src/workflows/events.tsrename to packages/core/src/workflows/events.tsdiff --git a/packages/core-plugin/src/workflows/hooks/product-created.ts b/packages/core/src/workflows/hooks/product-created.tssimilarity index 100%rename from packages/core-plugin/src/workflows/hooks/product-created.tsrename to packages/core/src/workflows/hooks/product-created.tsdiff --git a/packages/core-plugin/src/workflows/hooks/product-variant-created.ts b/packages/core/src/workflows/hooks/product-variant-created.tssimilarity index 100%rename from packages/core-plugin/src/workflows/hooks/product-variant-created.tsrename to packages/core/src/workflows/hooks/product-variant-created.tsdiff --git a/packages/core-plugin/src/workflows/index.ts b/packages/core/src/workflows/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/index.tsrename to packages/core/src/workflows/index.tsdiff --git a/packages/core-plugin/src/workflows/inventory-item/index.ts b/packages/core/src/workflows/inventory-item/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/inventory-item/index.tsrename to packages/core/src/workflows/inventory-item/index.tsdiff --git a/packages/core-plugin/src/workflows/inventory-item/steps/index.ts b/packages/core/src/workflows/inventory-item/steps/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/inventory-item/steps/index.tsrename to packages/core/src/workflows/inventory-item/steps/index.tsdiff --git a/packages/core-plugin/src/workflows/inventory-item/steps/link-seller-inventory-item.ts b/packages/core/src/workflows/inventory-item/steps/link-seller-inventory-item.tssimilarity index 100%rename from packages/core-plugin/src/workflows/inventory-item/steps/link-seller-inventory-item.tsrename to packages/core/src/workflows/inventory-item/steps/link-seller-inventory-item.tsdiff --git a/packages/core-plugin/src/workflows/inventory-item/workflows/create-seller-inventory-items.ts b/packages/core/src/workflows/inventory-item/workflows/create-seller-inventory-items.tssimilarity index 100%rename from packages/core-plugin/src/workflows/inventory-item/workflows/create-seller-inventory-items.tsrename to packages/core/src/workflows/inventory-item/workflows/create-seller-inventory-items.tsdiff --git a/packages/core-plugin/src/workflows/inventory-item/workflows/index.ts b/packages/core/src/workflows/inventory-item/workflows/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/inventory-item/workflows/index.tsrename to packages/core/src/workflows/inventory-item/workflows/index.tsdiff --git a/packages/core-plugin/src/workflows/order-group/index.ts b/packages/core/src/workflows/order-group/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/order-group/index.tsrename to packages/core/src/workflows/order-group/index.tsdiff --git a/packages/core-plugin/src/workflows/order-group/steps/create-order-group.ts b/packages/core/src/workflows/order-group/steps/create-order-group.tssimilarity index 100%rename from packages/core-plugin/src/workflows/order-group/steps/create-order-group.tsrename to packages/core/src/workflows/order-group/steps/create-order-group.tsdiff --git a/packages/core-plugin/src/workflows/order-group/steps/index.ts b/packages/core/src/workflows/order-group/steps/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/order-group/steps/index.tsrename to packages/core/src/workflows/order-group/steps/index.tsdiff --git a/packages/core-plugin/src/workflows/order-group/utils/aggregate-status.ts b/packages/core/src/workflows/order-group/utils/aggregate-status.tssimilarity index 100%rename from packages/core-plugin/src/workflows/order-group/utils/aggregate-status.tsrename to packages/core/src/workflows/order-group/utils/aggregate-status.tsdiff --git a/packages/core-plugin/src/workflows/order-group/workflows/get-order-group-detail.ts b/packages/core/src/workflows/order-group/workflows/get-order-group-detail.tssimilarity index 100%rename from packages/core-plugin/src/workflows/order-group/workflows/get-order-group-detail.tsrename to packages/core/src/workflows/order-group/workflows/get-order-group-detail.tsdiff --git a/packages/core-plugin/src/workflows/order-group/workflows/get-order-groups-list.ts b/packages/core/src/workflows/order-group/workflows/get-order-groups-list.tssimilarity index 100%rename from packages/core-plugin/src/workflows/order-group/workflows/get-order-groups-list.tsrename to packages/core/src/workflows/order-group/workflows/get-order-groups-list.tsdiff --git a/packages/core-plugin/src/workflows/payout/index.ts b/packages/core/src/workflows/payout/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/payout/index.tsrename to packages/core/src/workflows/payout/index.tsdiff --git a/packages/core-plugin/src/workflows/payout/steps/create-onboarding.ts b/packages/core/src/workflows/payout/steps/create-onboarding.tssimilarity index 100%rename from packages/core-plugin/src/workflows/payout/steps/create-onboarding.tsrename to packages/core/src/workflows/payout/steps/create-onboarding.tsdiff --git a/packages/core-plugin/src/workflows/payout/steps/create-payout-account.ts b/packages/core/src/workflows/payout/steps/create-payout-account.tssimilarity index 100%rename from packages/core-plugin/src/workflows/payout/steps/create-payout-account.tsrename to packages/core/src/workflows/payout/steps/create-payout-account.tsdiff --git a/packages/core-plugin/src/workflows/payout/steps/create-payout.ts b/packages/core/src/workflows/payout/steps/create-payout.tssimilarity index 100%rename from packages/core-plugin/src/workflows/payout/steps/create-payout.tsrename to packages/core/src/workflows/payout/steps/create-payout.tsdiff --git a/packages/core-plugin/src/workflows/payout/steps/index.ts b/packages/core/src/workflows/payout/steps/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/payout/steps/index.tsrename to packages/core/src/workflows/payout/steps/index.tsdiff --git a/packages/core-plugin/src/workflows/payout/steps/update-payout-account.ts b/packages/core/src/workflows/payout/steps/update-payout-account.tssimilarity index 100%rename from packages/core-plugin/src/workflows/payout/steps/update-payout-account.tsrename to packages/core/src/workflows/payout/steps/update-payout-account.tsdiff --git a/packages/core-plugin/src/workflows/payout/steps/update-payout.ts b/packages/core/src/workflows/payout/steps/update-payout.tssimilarity index 100%rename from packages/core-plugin/src/workflows/payout/steps/update-payout.tsrename to packages/core/src/workflows/payout/steps/update-payout.tsdiff --git a/packages/core-plugin/src/workflows/payout/steps/validate-seller-payout-account.ts b/packages/core/src/workflows/payout/steps/validate-seller-payout-account.tssimilarity index 100%rename from packages/core-plugin/src/workflows/payout/steps/validate-seller-payout-account.tsrename to packages/core/src/workflows/payout/steps/validate-seller-payout-account.tsdiff --git a/packages/core-plugin/src/workflows/payout/workflows/create-onboarding.ts b/packages/core/src/workflows/payout/workflows/create-onboarding.tssimilarity index 100%rename from packages/core-plugin/src/workflows/payout/workflows/create-onboarding.tsrename to packages/core/src/workflows/payout/workflows/create-onboarding.tsdiff --git a/packages/core-plugin/src/workflows/payout/workflows/create-payout-account.ts b/packages/core/src/workflows/payout/workflows/create-payout-account.tssimilarity index 100%rename from packages/core-plugin/src/workflows/payout/workflows/create-payout-account.tsrename to packages/core/src/workflows/payout/workflows/create-payout-account.tsdiff --git a/packages/core-plugin/src/workflows/payout/workflows/create-payout.ts b/packages/core/src/workflows/payout/workflows/create-payout.tssimilarity index 100%rename from packages/core-plugin/src/workflows/payout/workflows/create-payout.tsrename to packages/core/src/workflows/payout/workflows/create-payout.tsdiff --git a/packages/core-plugin/src/workflows/payout/workflows/index.ts b/packages/core/src/workflows/payout/workflows/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/payout/workflows/index.tsrename to packages/core/src/workflows/payout/workflows/index.tsdiff --git a/packages/core-plugin/src/workflows/payout/workflows/process-payout-for-webhook.ts b/packages/core/src/workflows/payout/workflows/process-payout-for-webhook.tssimilarity index 100%rename from packages/core-plugin/src/workflows/payout/workflows/process-payout-for-webhook.tsrename to packages/core/src/workflows/payout/workflows/process-payout-for-webhook.tsdiff --git a/packages/core-plugin/src/workflows/price-list/index.ts b/packages/core/src/workflows/price-list/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/price-list/index.tsrename to packages/core/src/workflows/price-list/index.tsdiff --git a/packages/core-plugin/src/workflows/price-list/steps/index.ts b/packages/core/src/workflows/price-list/steps/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/price-list/steps/index.tsrename to packages/core/src/workflows/price-list/steps/index.tsdiff --git a/packages/core-plugin/src/workflows/price-list/steps/link-seller-price-list.ts b/packages/core/src/workflows/price-list/steps/link-seller-price-list.tssimilarity index 100%rename from packages/core-plugin/src/workflows/price-list/steps/link-seller-price-list.tsrename to packages/core/src/workflows/price-list/steps/link-seller-price-list.tsdiff --git a/packages/core-plugin/src/workflows/price-list/workflows/create-seller-price-lists.ts b/packages/core/src/workflows/price-list/workflows/create-seller-price-lists.tssimilarity index 100%rename from packages/core-plugin/src/workflows/price-list/workflows/create-seller-price-lists.tsrename to packages/core/src/workflows/price-list/workflows/create-seller-price-lists.tsdiff --git a/packages/core-plugin/src/workflows/price-list/workflows/index.ts b/packages/core/src/workflows/price-list/workflows/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/price-list/workflows/index.tsrename to packages/core/src/workflows/price-list/workflows/index.tsdiff --git a/packages/core-plugin/src/workflows/product-attribute/steps/create-attribute-value.ts b/packages/core/src/workflows/product-attribute/steps/create-attribute-value.tssimilarity index 100%rename from packages/core-plugin/src/workflows/product-attribute/steps/create-attribute-value.tsrename to packages/core/src/workflows/product-attribute/steps/create-attribute-value.tsdiff --git a/packages/core-plugin/src/workflows/product-attribute/steps/create-attribute-values.ts b/packages/core/src/workflows/product-attribute/steps/create-attribute-values.tssimilarity index 100%rename from packages/core-plugin/src/workflows/product-attribute/steps/create-attribute-values.tsrename to packages/core/src/workflows/product-attribute/steps/create-attribute-values.tsdiff --git a/packages/core-plugin/src/workflows/product-attribute/steps/create-vendor-product-attribute.ts b/packages/core/src/workflows/product-attribute/steps/create-vendor-product-attribute.tssimilarity index 100%rename from packages/core-plugin/src/workflows/product-attribute/steps/create-vendor-product-attribute.tsrename to packages/core/src/workflows/product-attribute/steps/create-vendor-product-attribute.tsdiff --git a/packages/core-plugin/src/workflows/product-attribute/steps/delete-attribute-value.ts b/packages/core/src/workflows/product-attribute/steps/delete-attribute-value.tssimilarity index 100%rename from packages/core-plugin/src/workflows/product-attribute/steps/delete-attribute-value.tsrename to packages/core/src/workflows/product-attribute/steps/delete-attribute-value.tsdiff --git a/packages/core-plugin/src/workflows/product-attribute/steps/index.ts b/packages/core/src/workflows/product-attribute/steps/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/product-attribute/steps/index.tsrename to packages/core/src/workflows/product-attribute/steps/index.tsdiff --git a/packages/core-plugin/src/workflows/product-attribute/steps/restore-variant-image-associations.ts b/packages/core/src/workflows/product-attribute/steps/restore-variant-image-associations.tssimilarity index 100%rename from packages/core-plugin/src/workflows/product-attribute/steps/restore-variant-image-associations.tsrename to packages/core/src/workflows/product-attribute/steps/restore-variant-image-associations.tsdiff --git a/packages/core-plugin/src/workflows/product-attribute/steps/save-variant-image-associations.ts b/packages/core/src/workflows/product-attribute/steps/save-variant-image-associations.tssimilarity index 100%rename from packages/core-plugin/src/workflows/product-attribute/steps/save-variant-image-associations.tsrename to packages/core/src/workflows/product-attribute/steps/save-variant-image-associations.tsdiff --git a/packages/core-plugin/src/workflows/product-attribute/steps/validate-attribute-value.ts b/packages/core/src/workflows/product-attribute/steps/validate-attribute-value.tssimilarity index 100%rename from packages/core-plugin/src/workflows/product-attribute/steps/validate-attribute-value.tsrename to packages/core/src/workflows/product-attribute/steps/validate-attribute-value.tsdiff --git a/packages/core-plugin/src/workflows/product-attribute/utils/find-or-create-vendor-attribute.ts b/packages/core/src/workflows/product-attribute/utils/find-or-create-vendor-attribute.tssimilarity index 100%rename from packages/core-plugin/src/workflows/product-attribute/utils/find-or-create-vendor-attribute.tsrename to packages/core/src/workflows/product-attribute/utils/find-or-create-vendor-attribute.tsdiff --git a/packages/core-plugin/src/workflows/product-attribute/utils/get-applicable-attributes.ts b/packages/core/src/workflows/product-attribute/utils/get-applicable-attributes.tssimilarity index 100%rename from packages/core-plugin/src/workflows/product-attribute/utils/get-applicable-attributes.tsrename to packages/core/src/workflows/product-attribute/utils/get-applicable-attributes.tsdiff --git a/packages/core-plugin/src/workflows/product-attribute/utils/products-created-handler.ts b/packages/core/src/workflows/product-attribute/utils/products-created-handler.tssimilarity index 100%rename from packages/core-plugin/src/workflows/product-attribute/utils/products-created-handler.tsrename to packages/core/src/workflows/product-attribute/utils/products-created-handler.tsdiff --git a/packages/core-plugin/src/workflows/product-attribute/workflows/convert-attribute-to-option.ts b/packages/core/src/workflows/product-attribute/workflows/convert-attribute-to-option.tssimilarity index 100%rename from packages/core-plugin/src/workflows/product-attribute/workflows/convert-attribute-to-option.tsrename to packages/core/src/workflows/product-attribute/workflows/convert-attribute-to-option.tsdiff --git a/packages/core-plugin/src/workflows/product-attribute/workflows/convert-option-to-attribute.ts b/packages/core/src/workflows/product-attribute/workflows/convert-option-to-attribute.tssimilarity index 100%rename from packages/core-plugin/src/workflows/product-attribute/workflows/convert-option-to-attribute.tsrename to packages/core/src/workflows/product-attribute/workflows/convert-option-to-attribute.tsdiff --git a/packages/core-plugin/src/workflows/product-attribute/workflows/create-and-link-attribute-values.ts b/packages/core/src/workflows/product-attribute/workflows/create-and-link-attribute-values.tssimilarity index 100%rename from packages/core-plugin/src/workflows/product-attribute/workflows/create-and-link-attribute-values.tsrename to packages/core/src/workflows/product-attribute/workflows/create-and-link-attribute-values.tsdiff --git a/packages/core-plugin/src/workflows/product-attribute/workflows/create-attribute-value.ts b/packages/core/src/workflows/product-attribute/workflows/create-attribute-value.tssimilarity index 100%rename from packages/core-plugin/src/workflows/product-attribute/workflows/create-attribute-value.tsrename to packages/core/src/workflows/product-attribute/workflows/create-attribute-value.tsdiff --git a/packages/core-plugin/src/workflows/product-attribute/workflows/create-vendor-product-attribute.ts b/packages/core/src/workflows/product-attribute/workflows/create-vendor-product-attribute.tssimilarity index 100%rename from packages/core-plugin/src/workflows/product-attribute/workflows/create-vendor-product-attribute.tsrename to packages/core/src/workflows/product-attribute/workflows/create-vendor-product-attribute.tsdiff --git a/packages/core-plugin/src/workflows/product-attribute/workflows/delete-attribute-value.ts b/packages/core/src/workflows/product-attribute/workflows/delete-attribute-value.tssimilarity index 100%rename from packages/core-plugin/src/workflows/product-attribute/workflows/delete-attribute-value.tsrename to packages/core/src/workflows/product-attribute/workflows/delete-attribute-value.tsdiff --git a/packages/core-plugin/src/workflows/product-attribute/workflows/index.ts b/packages/core/src/workflows/product-attribute/workflows/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/product-attribute/workflows/index.tsrename to packages/core/src/workflows/product-attribute/workflows/index.tsdiff --git a/packages/core-plugin/src/workflows/product-attribute/workflows/sync-product-attribute-values.ts b/packages/core/src/workflows/product-attribute/workflows/sync-product-attribute-values.tssimilarity index 100%rename from packages/core-plugin/src/workflows/product-attribute/workflows/sync-product-attribute-values.tsrename to packages/core/src/workflows/product-attribute/workflows/sync-product-attribute-values.tsdiff --git a/packages/core-plugin/src/workflows/product-attribute/workflows/update-product-with-variant-images.ts b/packages/core/src/workflows/product-attribute/workflows/update-product-with-variant-images.tssimilarity index 100%rename from packages/core-plugin/src/workflows/product-attribute/workflows/update-product-with-variant-images.tsrename to packages/core/src/workflows/product-attribute/workflows/update-product-with-variant-images.tsdiff --git a/packages/core-plugin/src/workflows/promotion/index.ts b/packages/core/src/workflows/promotion/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/promotion/index.tsrename to packages/core/src/workflows/promotion/index.tsdiff --git a/packages/core-plugin/src/workflows/promotion/steps/index.ts b/packages/core/src/workflows/promotion/steps/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/promotion/steps/index.tsrename to packages/core/src/workflows/promotion/steps/index.tsdiff --git a/packages/core-plugin/src/workflows/promotion/steps/link-seller-promotion.ts b/packages/core/src/workflows/promotion/steps/link-seller-promotion.tssimilarity index 100%rename from packages/core-plugin/src/workflows/promotion/steps/link-seller-promotion.tsrename to packages/core/src/workflows/promotion/steps/link-seller-promotion.tsdiff --git a/packages/core-plugin/src/workflows/promotion/steps/register-usage.ts b/packages/core/src/workflows/promotion/steps/register-usage.tssimilarity index 100%rename from packages/core-plugin/src/workflows/promotion/steps/register-usage.tsrename to packages/core/src/workflows/promotion/steps/register-usage.tsdiff --git a/packages/core-plugin/src/workflows/promotion/workflows/create-seller-promotions.ts b/packages/core/src/workflows/promotion/workflows/create-seller-promotions.tssimilarity index 100%rename from packages/core-plugin/src/workflows/promotion/workflows/create-seller-promotions.tsrename to packages/core/src/workflows/promotion/workflows/create-seller-promotions.tsdiff --git a/packages/core-plugin/src/workflows/promotion/workflows/index.ts b/packages/core/src/workflows/promotion/workflows/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/promotion/workflows/index.tsrename to packages/core/src/workflows/promotion/workflows/index.tsdiff --git a/packages/core-plugin/src/workflows/seller/index.ts b/packages/core/src/workflows/seller/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/index.tsrename to packages/core/src/workflows/seller/index.tsdiff --git a/packages/core-plugin/src/workflows/seller/steps/create-member-invites.ts b/packages/core/src/workflows/seller/steps/create-member-invites.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/steps/create-member-invites.tsrename to packages/core/src/workflows/seller/steps/create-member-invites.tsdiff --git a/packages/core-plugin/src/workflows/seller/steps/create-seller-default-roles.ts b/packages/core/src/workflows/seller/steps/create-seller-default-roles.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/steps/create-seller-default-roles.tsrename to packages/core/src/workflows/seller/steps/create-seller-default-roles.tsdiff --git a/packages/core-plugin/src/workflows/seller/steps/create-seller-member.ts b/packages/core/src/workflows/seller/steps/create-seller-member.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/steps/create-seller-member.tsrename to packages/core/src/workflows/seller/steps/create-seller-member.tsdiff --git a/packages/core-plugin/src/workflows/seller/steps/create-seller.ts b/packages/core/src/workflows/seller/steps/create-seller.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/steps/create-seller.tsrename to packages/core/src/workflows/seller/steps/create-seller.tsdiff --git a/packages/core-plugin/src/workflows/seller/steps/delete-member-invite.ts b/packages/core/src/workflows/seller/steps/delete-member-invite.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/steps/delete-member-invite.tsrename to packages/core/src/workflows/seller/steps/delete-member-invite.tsdiff --git a/packages/core-plugin/src/workflows/seller/steps/delete-seller-member.ts b/packages/core/src/workflows/seller/steps/delete-seller-member.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/steps/delete-seller-member.tsrename to packages/core/src/workflows/seller/steps/delete-seller-member.tsdiff --git a/packages/core-plugin/src/workflows/seller/steps/delete-seller-professional-details.ts b/packages/core/src/workflows/seller/steps/delete-seller-professional-details.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/steps/delete-seller-professional-details.tsrename to packages/core/src/workflows/seller/steps/delete-seller-professional-details.tsdiff --git a/packages/core-plugin/src/workflows/seller/steps/delete-seller.ts b/packages/core/src/workflows/seller/steps/delete-seller.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/steps/delete-seller.tsrename to packages/core/src/workflows/seller/steps/delete-seller.tsdiff --git a/packages/core-plugin/src/workflows/seller/steps/index.ts b/packages/core/src/workflows/seller/steps/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/steps/index.tsrename to packages/core/src/workflows/seller/steps/index.tsdiff --git a/packages/core-plugin/src/workflows/seller/steps/send-invitation-email.ts b/packages/core/src/workflows/seller/steps/send-invitation-email.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/steps/send-invitation-email.tsrename to packages/core/src/workflows/seller/steps/send-invitation-email.tsdiff --git a/packages/core-plugin/src/workflows/seller/steps/update-payment-details.ts b/packages/core/src/workflows/seller/steps/update-payment-details.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/steps/update-payment-details.tsrename to packages/core/src/workflows/seller/steps/update-payment-details.tsdiff --git a/packages/core-plugin/src/workflows/seller/steps/update-seller-address.ts b/packages/core/src/workflows/seller/steps/update-seller-address.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/steps/update-seller-address.tsrename to packages/core/src/workflows/seller/steps/update-seller-address.tsdiff --git a/packages/core-plugin/src/workflows/seller/steps/update-seller-member.ts b/packages/core/src/workflows/seller/steps/update-seller-member.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/steps/update-seller-member.tsrename to packages/core/src/workflows/seller/steps/update-seller-member.tsdiff --git a/packages/core-plugin/src/workflows/seller/steps/update-seller-professional-details.ts b/packages/core/src/workflows/seller/steps/update-seller-professional-details.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/steps/update-seller-professional-details.tsrename to packages/core/src/workflows/seller/steps/update-seller-professional-details.tsdiff --git a/packages/core-plugin/src/workflows/seller/steps/update-seller.ts b/packages/core/src/workflows/seller/steps/update-seller.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/steps/update-seller.tsrename to packages/core/src/workflows/seller/steps/update-seller.tsdiff --git a/packages/core-plugin/src/workflows/seller/steps/upsert-member.ts b/packages/core/src/workflows/seller/steps/upsert-member.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/steps/upsert-member.tsrename to packages/core/src/workflows/seller/steps/upsert-member.tsdiff --git a/packages/core-plugin/src/workflows/seller/steps/validate-approve-seller.ts b/packages/core/src/workflows/seller/steps/validate-approve-seller.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/steps/validate-approve-seller.tsrename to packages/core/src/workflows/seller/steps/validate-approve-seller.tsdiff --git a/packages/core-plugin/src/workflows/seller/steps/validate-member-invite-token.ts b/packages/core/src/workflows/seller/steps/validate-member-invite-token.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/steps/validate-member-invite-token.tsrename to packages/core/src/workflows/seller/steps/validate-member-invite-token.tsdiff --git a/packages/core-plugin/src/workflows/seller/steps/validate-not-owner.ts b/packages/core/src/workflows/seller/steps/validate-not-owner.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/steps/validate-not-owner.tsrename to packages/core/src/workflows/seller/steps/validate-not-owner.tsdiff --git a/packages/core-plugin/src/workflows/seller/steps/validate-remove-seller-member.ts b/packages/core/src/workflows/seller/steps/validate-remove-seller-member.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/steps/validate-remove-seller-member.tsrename to packages/core/src/workflows/seller/steps/validate-remove-seller-member.tsdiff --git a/packages/core-plugin/src/workflows/seller/steps/validate-suspend-seller.ts b/packages/core/src/workflows/seller/steps/validate-suspend-seller.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/steps/validate-suspend-seller.tsrename to packages/core/src/workflows/seller/steps/validate-suspend-seller.tsdiff --git a/packages/core-plugin/src/workflows/seller/steps/validate-terminate-seller.ts b/packages/core/src/workflows/seller/steps/validate-terminate-seller.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/steps/validate-terminate-seller.tsrename to packages/core/src/workflows/seller/steps/validate-terminate-seller.tsdiff --git a/packages/core-plugin/src/workflows/seller/steps/validate-unsuspend-seller.ts b/packages/core/src/workflows/seller/steps/validate-unsuspend-seller.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/steps/validate-unsuspend-seller.tsrename to packages/core/src/workflows/seller/steps/validate-unsuspend-seller.tsdiff --git a/packages/core-plugin/src/workflows/seller/steps/validate-unterminate-seller.ts b/packages/core/src/workflows/seller/steps/validate-unterminate-seller.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/steps/validate-unterminate-seller.tsrename to packages/core/src/workflows/seller/steps/validate-unterminate-seller.tsdiff --git a/packages/core-plugin/src/workflows/seller/workflows/accept-member-invite.ts b/packages/core/src/workflows/seller/workflows/accept-member-invite.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/workflows/accept-member-invite.tsrename to packages/core/src/workflows/seller/workflows/accept-member-invite.tsdiff --git a/packages/core-plugin/src/workflows/seller/workflows/add-seller-member.ts b/packages/core/src/workflows/seller/workflows/add-seller-member.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/workflows/add-seller-member.tsrename to packages/core/src/workflows/seller/workflows/add-seller-member.tsdiff --git a/packages/core-plugin/src/workflows/seller/workflows/approve-seller.ts b/packages/core/src/workflows/seller/workflows/approve-seller.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/workflows/approve-seller.tsrename to packages/core/src/workflows/seller/workflows/approve-seller.tsdiff --git a/packages/core-plugin/src/workflows/seller/workflows/create-member-invites.ts b/packages/core/src/workflows/seller/workflows/create-member-invites.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/workflows/create-member-invites.tsrename to packages/core/src/workflows/seller/workflows/create-member-invites.tsdiff --git a/packages/core-plugin/src/workflows/seller/workflows/create-seller-account.ts b/packages/core/src/workflows/seller/workflows/create-seller-account.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/workflows/create-seller-account.tsrename to packages/core/src/workflows/seller/workflows/create-seller-account.tsdiff --git a/packages/core-plugin/src/workflows/seller/workflows/create-seller-defaults.ts b/packages/core/src/workflows/seller/workflows/create-seller-defaults.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/workflows/create-seller-defaults.tsrename to packages/core/src/workflows/seller/workflows/create-seller-defaults.tsdiff --git a/packages/core-plugin/src/workflows/seller/workflows/create-sellers.ts b/packages/core/src/workflows/seller/workflows/create-sellers.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/workflows/create-sellers.tsrename to packages/core/src/workflows/seller/workflows/create-sellers.tsdiff --git a/packages/core-plugin/src/workflows/seller/workflows/delete-seller-professional-details.ts b/packages/core/src/workflows/seller/workflows/delete-seller-professional-details.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/workflows/delete-seller-professional-details.tsrename to packages/core/src/workflows/seller/workflows/delete-seller-professional-details.tsdiff --git a/packages/core-plugin/src/workflows/seller/workflows/delete-seller.ts b/packages/core/src/workflows/seller/workflows/delete-seller.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/workflows/delete-seller.tsrename to packages/core/src/workflows/seller/workflows/delete-seller.tsdiff --git a/packages/core-plugin/src/workflows/seller/workflows/index.ts b/packages/core/src/workflows/seller/workflows/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/workflows/index.tsrename to packages/core/src/workflows/seller/workflows/index.tsdiff --git a/packages/core-plugin/src/workflows/seller/workflows/invite-seller.ts b/packages/core/src/workflows/seller/workflows/invite-seller.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/workflows/invite-seller.tsrename to packages/core/src/workflows/seller/workflows/invite-seller.tsdiff --git a/packages/core-plugin/src/workflows/seller/workflows/remove-seller-member.ts b/packages/core/src/workflows/seller/workflows/remove-seller-member.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/workflows/remove-seller-member.tsrename to packages/core/src/workflows/seller/workflows/remove-seller-member.tsdiff --git a/packages/core-plugin/src/workflows/seller/workflows/suspend-seller.ts b/packages/core/src/workflows/seller/workflows/suspend-seller.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/workflows/suspend-seller.tsrename to packages/core/src/workflows/seller/workflows/suspend-seller.tsdiff --git a/packages/core-plugin/src/workflows/seller/workflows/terminate-seller.ts b/packages/core/src/workflows/seller/workflows/terminate-seller.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/workflows/terminate-seller.tsrename to packages/core/src/workflows/seller/workflows/terminate-seller.tsdiff --git a/packages/core-plugin/src/workflows/seller/workflows/unsuspend-seller.ts b/packages/core/src/workflows/seller/workflows/unsuspend-seller.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/workflows/unsuspend-seller.tsrename to packages/core/src/workflows/seller/workflows/unsuspend-seller.tsdiff --git a/packages/core-plugin/src/workflows/seller/workflows/unterminate-seller.ts b/packages/core/src/workflows/seller/workflows/unterminate-seller.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/workflows/unterminate-seller.tsrename to packages/core/src/workflows/seller/workflows/unterminate-seller.tsdiff --git a/packages/core-plugin/src/workflows/seller/workflows/update-member-role.ts b/packages/core/src/workflows/seller/workflows/update-member-role.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/workflows/update-member-role.tsrename to packages/core/src/workflows/seller/workflows/update-member-role.tsdiff --git a/packages/core-plugin/src/workflows/seller/workflows/update-seller-address.ts b/packages/core/src/workflows/seller/workflows/update-seller-address.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/workflows/update-seller-address.tsrename to packages/core/src/workflows/seller/workflows/update-seller-address.tsdiff --git a/packages/core-plugin/src/workflows/seller/workflows/update-seller-payment-details.ts b/packages/core/src/workflows/seller/workflows/update-seller-payment-details.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/workflows/update-seller-payment-details.tsrename to packages/core/src/workflows/seller/workflows/update-seller-payment-details.tsdiff --git a/packages/core-plugin/src/workflows/seller/workflows/update-seller-professional-details.ts b/packages/core/src/workflows/seller/workflows/update-seller-professional-details.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/workflows/update-seller-professional-details.tsrename to packages/core/src/workflows/seller/workflows/update-seller-professional-details.tsdiff --git a/packages/core-plugin/src/workflows/seller/workflows/update-seller.ts b/packages/core/src/workflows/seller/workflows/update-seller.tssimilarity index 100%rename from packages/core-plugin/src/workflows/seller/workflows/update-seller.tsrename to packages/core/src/workflows/seller/workflows/update-seller.tsdiff --git a/packages/core-plugin/src/workflows/shipping-option/index.ts b/packages/core/src/workflows/shipping-option/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/shipping-option/index.tsrename to packages/core/src/workflows/shipping-option/index.tsdiff --git a/packages/core-plugin/src/workflows/shipping-option/steps/index.ts b/packages/core/src/workflows/shipping-option/steps/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/shipping-option/steps/index.tsrename to packages/core/src/workflows/shipping-option/steps/index.tsdiff --git a/packages/core-plugin/src/workflows/shipping-option/steps/link-seller-shipping-option.ts b/packages/core/src/workflows/shipping-option/steps/link-seller-shipping-option.tssimilarity index 100%rename from packages/core-plugin/src/workflows/shipping-option/steps/link-seller-shipping-option.tsrename to packages/core/src/workflows/shipping-option/steps/link-seller-shipping-option.tsdiff --git a/packages/core-plugin/src/workflows/shipping-option/workflows/create-seller-shipping-options.ts b/packages/core/src/workflows/shipping-option/workflows/create-seller-shipping-options.tssimilarity index 100%rename from packages/core-plugin/src/workflows/shipping-option/workflows/create-seller-shipping-options.tsrename to packages/core/src/workflows/shipping-option/workflows/create-seller-shipping-options.tsdiff --git a/packages/core-plugin/src/workflows/shipping-option/workflows/index.ts b/packages/core/src/workflows/shipping-option/workflows/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/shipping-option/workflows/index.tsrename to packages/core/src/workflows/shipping-option/workflows/index.tsdiff --git a/packages/core-plugin/src/workflows/shipping-profile/index.ts b/packages/core/src/workflows/shipping-profile/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/shipping-profile/index.tsrename to packages/core/src/workflows/shipping-profile/index.tsdiff --git a/packages/core-plugin/src/workflows/shipping-profile/steps/index.ts b/packages/core/src/workflows/shipping-profile/steps/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/shipping-profile/steps/index.tsrename to packages/core/src/workflows/shipping-profile/steps/index.tsdiff --git a/packages/core-plugin/src/workflows/shipping-profile/steps/link-seller-shipping-profile.ts b/packages/core/src/workflows/shipping-profile/steps/link-seller-shipping-profile.tssimilarity index 100%rename from packages/core-plugin/src/workflows/shipping-profile/steps/link-seller-shipping-profile.tsrename to packages/core/src/workflows/shipping-profile/steps/link-seller-shipping-profile.tsdiff --git a/packages/core-plugin/src/workflows/shipping-profile/workflows/create-seller-shipping-profiles.ts b/packages/core/src/workflows/shipping-profile/workflows/create-seller-shipping-profiles.tssimilarity index 100%rename from packages/core-plugin/src/workflows/shipping-profile/workflows/create-seller-shipping-profiles.tsrename to packages/core/src/workflows/shipping-profile/workflows/create-seller-shipping-profiles.tsdiff --git a/packages/core-plugin/src/workflows/shipping-profile/workflows/index.ts b/packages/core/src/workflows/shipping-profile/workflows/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/shipping-profile/workflows/index.tsrename to packages/core/src/workflows/shipping-profile/workflows/index.tsdiff --git a/packages/core-plugin/src/workflows/stock-location/index.ts b/packages/core/src/workflows/stock-location/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/stock-location/index.tsrename to packages/core/src/workflows/stock-location/index.tsdiff --git a/packages/core-plugin/src/workflows/stock-location/steps/index.ts b/packages/core/src/workflows/stock-location/steps/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/stock-location/steps/index.tsrename to packages/core/src/workflows/stock-location/steps/index.tsdiff --git a/packages/core-plugin/src/workflows/stock-location/steps/link-seller-stock-location.ts b/packages/core/src/workflows/stock-location/steps/link-seller-stock-location.tssimilarity index 100%rename from packages/core-plugin/src/workflows/stock-location/steps/link-seller-stock-location.tsrename to packages/core/src/workflows/stock-location/steps/link-seller-stock-location.tsdiff --git a/packages/core-plugin/src/workflows/stock-location/workflows/create-seller-stock-locations.ts b/packages/core/src/workflows/stock-location/workflows/create-seller-stock-locations.tssimilarity index 100%rename from packages/core-plugin/src/workflows/stock-location/workflows/create-seller-stock-locations.tsrename to packages/core/src/workflows/stock-location/workflows/create-seller-stock-locations.tsdiff --git a/packages/core-plugin/src/workflows/stock-location/workflows/index.ts b/packages/core/src/workflows/stock-location/workflows/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/stock-location/workflows/index.tsrename to packages/core/src/workflows/stock-location/workflows/index.tsdiff --git a/packages/core-plugin/src/workflows/subscription/index.ts b/packages/core/src/workflows/subscription/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/subscription/index.tsrename to packages/core/src/workflows/subscription/index.tsdiff --git a/packages/core-plugin/src/workflows/subscription/steps/create-subscription-overrides.ts b/packages/core/src/workflows/subscription/steps/create-subscription-overrides.tssimilarity index 100%rename from packages/core-plugin/src/workflows/subscription/steps/create-subscription-overrides.tsrename to packages/core/src/workflows/subscription/steps/create-subscription-overrides.tsdiff --git a/packages/core-plugin/src/workflows/subscription/steps/create-subscription-plans.ts b/packages/core/src/workflows/subscription/steps/create-subscription-plans.tssimilarity index 100%rename from packages/core-plugin/src/workflows/subscription/steps/create-subscription-plans.tsrename to packages/core/src/workflows/subscription/steps/create-subscription-plans.tsdiff --git a/packages/core-plugin/src/workflows/subscription/steps/delete-subscription-overrides.ts b/packages/core/src/workflows/subscription/steps/delete-subscription-overrides.tssimilarity index 100%rename from packages/core-plugin/src/workflows/subscription/steps/delete-subscription-overrides.tsrename to packages/core/src/workflows/subscription/steps/delete-subscription-overrides.tsdiff --git a/packages/core-plugin/src/workflows/subscription/steps/delete-subscription-plans.ts b/packages/core/src/workflows/subscription/steps/delete-subscription-plans.tssimilarity index 100%rename from packages/core-plugin/src/workflows/subscription/steps/delete-subscription-plans.tsrename to packages/core/src/workflows/subscription/steps/delete-subscription-plans.tsdiff --git a/packages/core-plugin/src/workflows/subscription/steps/index.ts b/packages/core/src/workflows/subscription/steps/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/subscription/steps/index.tsrename to packages/core/src/workflows/subscription/steps/index.tsdiff --git a/packages/core-plugin/src/workflows/subscription/steps/update-subscription-overrides.ts b/packages/core/src/workflows/subscription/steps/update-subscription-overrides.tssimilarity index 100%rename from packages/core-plugin/src/workflows/subscription/steps/update-subscription-overrides.tsrename to packages/core/src/workflows/subscription/steps/update-subscription-overrides.tsdiff --git a/packages/core-plugin/src/workflows/subscription/steps/update-subscription-plans.ts b/packages/core/src/workflows/subscription/steps/update-subscription-plans.tssimilarity index 100%rename from packages/core-plugin/src/workflows/subscription/steps/update-subscription-plans.tsrename to packages/core/src/workflows/subscription/steps/update-subscription-plans.tsdiff --git a/packages/core-plugin/src/workflows/subscription/workflows/create-subscription-overrides.ts b/packages/core/src/workflows/subscription/workflows/create-subscription-overrides.tssimilarity index 100%rename from packages/core-plugin/src/workflows/subscription/workflows/create-subscription-overrides.tsrename to packages/core/src/workflows/subscription/workflows/create-subscription-overrides.tsdiff --git a/packages/core-plugin/src/workflows/subscription/workflows/create-subscription-plans.ts b/packages/core/src/workflows/subscription/workflows/create-subscription-plans.tssimilarity index 100%rename from packages/core-plugin/src/workflows/subscription/workflows/create-subscription-plans.tsrename to packages/core/src/workflows/subscription/workflows/create-subscription-plans.tsdiff --git a/packages/core-plugin/src/workflows/subscription/workflows/delete-subscription-overrides.ts b/packages/core/src/workflows/subscription/workflows/delete-subscription-overrides.tssimilarity index 100%rename from packages/core-plugin/src/workflows/subscription/workflows/delete-subscription-overrides.tsrename to packages/core/src/workflows/subscription/workflows/delete-subscription-overrides.tsdiff --git a/packages/core-plugin/src/workflows/subscription/workflows/delete-subscription-plans.ts b/packages/core/src/workflows/subscription/workflows/delete-subscription-plans.tssimilarity index 100%rename from packages/core-plugin/src/workflows/subscription/workflows/delete-subscription-plans.tsrename to packages/core/src/workflows/subscription/workflows/delete-subscription-plans.tsdiff --git a/packages/core-plugin/src/workflows/subscription/workflows/index.ts b/packages/core/src/workflows/subscription/workflows/index.tssimilarity index 100%rename from packages/core-plugin/src/workflows/subscription/workflows/index.tsrename to packages/core/src/workflows/subscription/workflows/index.tsdiff --git a/packages/core-plugin/src/workflows/subscription/workflows/update-subscription-overrides.ts b/packages/core/src/workflows/subscription/workflows/update-subscription-overrides.tssimilarity index 100%rename from packages/core-plugin/src/workflows/subscription/workflows/update-subscription-overrides.tsrename to packages/core/src/workflows/subscription/workflows/update-subscription-overrides.tsdiff --git a/packages/core-plugin/src/workflows/subscription/workflows/update-subscription-plans.ts b/packages/core/src/workflows/subscription/workflows/update-subscription-plans.tssimilarity index 100%rename from packages/core-plugin/src/workflows/subscription/workflows/update-subscription-plans.tsrename to packages/core/src/workflows/subscription/workflows/update-subscription-plans.tsdiff --git a/packages/core-plugin/tsconfig.json b/packages/core/tsconfig.jsonsimilarity index 100%rename from packages/core-plugin/tsconfig.jsonrename to packages/core/tsconfig.jsondiff --git a/packages/dashboard-shared/package.json b/packages/dashboard-shared/package.jsonindex 36f0c0a80..e70089d7b 100644--- a/packages/dashboard-shared/package.json+++ b/packages/dashboard-shared/package.json@@ -64,7 +64,7 @@},"devDependencies": {"@mercurjs/types": "workspace:*",- "@mercurjs/core-plugin": "workspace:*",+ "@mercurjs/core": "workspace:*","@mercurjs/dashboard-sdk": "workspace:*","tsup": "^8.0.2","typescript": "5.9.3",diff --git a/packages/registry/.mercur/_generated/index.ts b/packages/registry/.mercur/_generated/index.tsindex 6c851e7f7..b166580da 100644--- a/packages/registry/.mercur/_generated/index.ts+++ b/packages/registry/.mercur/_generated/index.ts@@ -168,7 +168,7 @@ export type Routes = {};};};- orders: typeof import("@mercurjs/core-plugin/api/admin/orders/route") & {+ orders: typeof import("@mercurjs/core/api/admin/orders/route") & {$id: typeof import("@medusajs/medusa/api/admin/orders/[id]/route") & {archive: typeof import("@medusajs/medusa/api/admin/orders/[id]/archive/route");cancel: typeof import("@medusajs/medusa/api/admin/orders/[id]/cancel/route");@@ -227,7 +227,7 @@ export type Routes = {$id: typeof import("@medusajs/medusa/api/admin/product-types/[id]/route");};productVariants: typeof import("@medusajs/medusa/api/admin/product-variants/route");- products: typeof import("@mercurjs/core-plugin/api/admin/products/route") & {+ products: typeof import("@mercurjs/core/api/admin/products/route") & {$id: typeof import("@medusajs/medusa/api/admin/products/[id]/route") & {images: {$imageId: {@@ -414,19 +414,19 @@ export type Routes = {subscribe: typeof import("@medusajs/medusa/api/admin/workflows-executions/[workflow_id]/subscribe/route");};};- commissionRates: typeof import("@mercurjs/core-plugin/api/admin/commission-rates/route") & {- $id: typeof import("@mercurjs/core-plugin/api/admin/commission-rates/[id]/route") & {- rules: typeof import("@mercurjs/core-plugin/api/admin/commission-rates/[id]/rules/route");+ commissionRates: typeof import("@mercurjs/core/api/admin/commission-rates/route") & {+ $id: typeof import("@mercurjs/core/api/admin/commission-rates/[id]/route") & {+ rules: typeof import("@mercurjs/core/api/admin/commission-rates/[id]/rules/route");};};- orderGroups: typeof import("@mercurjs/core-plugin/api/admin/order-groups/route") & {- $id: typeof import("@mercurjs/core-plugin/api/admin/order-groups/[id]/route");+ orderGroups: typeof import("@mercurjs/core/api/admin/order-groups/route") & {+ $id: typeof import("@mercurjs/core/api/admin/order-groups/[id]/route");};- payouts: typeof import("@mercurjs/core-plugin/api/admin/payouts/route") & {- $id: typeof import("@mercurjs/core-plugin/api/admin/payouts/[id]/route");+ payouts: typeof import("@mercurjs/core/api/admin/payouts/route") & {+ $id: typeof import("@mercurjs/core/api/admin/payouts/[id]/route");};- sellers: typeof import("@mercurjs/core-plugin/api/admin/sellers/route") & {- $id: typeof import("@mercurjs/core-plugin/api/admin/sellers/[id]/route");+ sellers: typeof import("@mercurjs/core/api/admin/sellers/route") & {+ $id: typeof import("@mercurjs/core/api/admin/sellers/[id]/route");};reviews: typeof import("../../src/reviews/api/admin/reviews/route") & {$id: typeof import("../../src/reviews/api/admin/reviews/[id]/route");@@ -458,13 +458,13 @@ export type Routes = {store: {carts: typeof import("@medusajs/medusa/api/store/carts/route") & {$id: typeof import("@medusajs/medusa/api/store/carts/[id]/route") & {- complete: typeof import("@mercurjs/core-plugin/api/store/carts/[id]/complete/route");+ complete: typeof import("@mercurjs/core/api/store/carts/[id]/complete/route");customer: typeof import("@medusajs/medusa/api/store/carts/[id]/customer/route");lineItems: typeof import("@medusajs/medusa/api/store/carts/[id]/line-items/route") & {$lineId: typeof import("@medusajs/medusa/api/store/carts/[id]/line-items/[line_id]/route");};- promotions: typeof import("@mercurjs/core-plugin/api/store/carts/[id]/promotions/route");- shippingMethods: typeof import("@mercurjs/core-plugin/api/store/carts/[id]/shipping-methods/route");+ promotions: typeof import("@mercurjs/core/api/store/carts/[id]/promotions/route");+ shippingMethods: typeof import("@mercurjs/core/api/store/carts/[id]/shipping-methods/route");taxes: typeof import("@medusajs/medusa/api/store/carts/[id]/taxes/route");};};@@ -521,16 +521,16 @@ export type Routes = {$id: typeof import("@medusajs/medusa/api/store/return-reasons/[id]/route");};returns: typeof import("@medusajs/medusa/api/store/returns/route");- shippingOptions: typeof import("@mercurjs/core-plugin/api/store/shipping-options/route") & {+ shippingOptions: typeof import("@mercurjs/core/api/store/shipping-options/route") & {$id: {calculate: typeof import("@medusajs/medusa/api/store/shipping-options/[id]/calculate/route");};};- orderGroups: typeof import("@mercurjs/core-plugin/api/store/order-groups/route") & {- $id: typeof import("@mercurjs/core-plugin/api/store/order-groups/[id]/route");+ orderGroups: typeof import("@mercurjs/core/api/store/order-groups/route") & {+ $id: typeof import("@mercurjs/core/api/store/order-groups/[id]/route");};- sellers: typeof import("@mercurjs/core-plugin/api/store/sellers/route") & {- $id: typeof import("@mercurjs/core-plugin/api/store/sellers/[id]/route");+ sellers: typeof import("@mercurjs/core/api/store/sellers/route") & {+ $id: typeof import("@mercurjs/core/api/store/sellers/[id]/route");};reviews: typeof import("../../src/reviews/api/store/reviews/route") & {$id: typeof import("../../src/reviews/api/store/reviews/[id]/route");@@ -542,179 +542,179 @@ export type Routes = {};};vendor: {- campaigns: typeof import("@mercurjs/core-plugin/api/vendor/campaigns/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/campaigns/[id]/route") & {- promotions: typeof import("@mercurjs/core-plugin/api/vendor/campaigns/[id]/promotions/route");+ campaigns: typeof import("@mercurjs/core/api/vendor/campaigns/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/campaigns/[id]/route") & {+ promotions: typeof import("@mercurjs/core/api/vendor/campaigns/[id]/promotions/route");};};- collections: typeof import("@mercurjs/core-plugin/api/vendor/collections/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/collections/[id]/route") & {- products: typeof import("@mercurjs/core-plugin/api/vendor/collections/[id]/products/route");+ collections: typeof import("@mercurjs/core/api/vendor/collections/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/collections/[id]/route") & {+ products: typeof import("@mercurjs/core/api/vendor/collections/[id]/products/route");};};- currencies: typeof import("@mercurjs/core-plugin/api/vendor/currencies/route") & {- $code: typeof import("@mercurjs/core-plugin/api/vendor/currencies/[code]/route");+ currencies: typeof import("@mercurjs/core/api/vendor/currencies/route") & {+ $code: typeof import("@mercurjs/core/api/vendor/currencies/[code]/route");};- customers: typeof import("@mercurjs/core-plugin/api/vendor/customers/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/customers/[id]/route");+ customers: typeof import("@mercurjs/core/api/vendor/customers/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/customers/[id]/route");};fulfillmentSets: {- $id: typeof import("@mercurjs/core-plugin/api/vendor/fulfillment-sets/[id]/route") & {- serviceZones: typeof import("@mercurjs/core-plugin/api/vendor/fulfillment-sets/[id]/service-zones/route") & {- $zoneId: typeof import("@mercurjs/core-plugin/api/vendor/fulfillment-sets/[id]/service-zones/[zone_id]/route");+ $id: typeof import("@mercurjs/core/api/vendor/fulfillment-sets/[id]/route") & {+ serviceZones: typeof import("@mercurjs/core/api/vendor/fulfillment-sets/[id]/service-zones/route") & {+ $zoneId: typeof import("@mercurjs/core/api/vendor/fulfillment-sets/[id]/service-zones/[zone_id]/route");};};};- inventoryItems: typeof import("@mercurjs/core-plugin/api/vendor/inventory-items/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/inventory-items/[id]/route") & {- locationLevels: typeof import("@mercurjs/core-plugin/api/vendor/inventory-items/[id]/location-levels/route") & {- $locationId: typeof import("@mercurjs/core-plugin/api/vendor/inventory-items/[id]/location-levels/[location_id]/route");- batch: typeof import("@mercurjs/core-plugin/api/vendor/inventory-items/[id]/location-levels/batch/route");+ inventoryItems: typeof import("@mercurjs/core/api/vendor/inventory-items/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/inventory-items/[id]/route") & {+ locationLevels: typeof import("@mercurjs/core/api/vendor/inventory-items/[id]/location-levels/route") & {+ $locationId: typeof import("@mercurjs/core/api/vendor/inventory-items/[id]/location-levels/[location_id]/route");+ batch: typeof import("@mercurjs/core/api/vendor/inventory-items/[id]/location-levels/batch/route");};};};- orders: typeof import("@mercurjs/core-plugin/api/vendor/orders/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/route") & {- cancel: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/cancel/route");- changes: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/changes/route");- complete: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/complete/route");- fulfillments: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/fulfillments/route") & {+ orders: typeof import("@mercurjs/core/api/vendor/orders/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/orders/[id]/route") & {+ cancel: typeof import("@mercurjs/core/api/vendor/orders/[id]/cancel/route");+ changes: typeof import("@mercurjs/core/api/vendor/orders/[id]/changes/route");+ complete: typeof import("@mercurjs/core/api/vendor/orders/[id]/complete/route");+ fulfillments: typeof import("@mercurjs/core/api/vendor/orders/[id]/fulfillments/route") & {$fulfillmentId: {- cancel: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/cancel/route");- markAsDelivered: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/mark-as-delivered/route");- shipments: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/shipments/route");+ cancel: typeof import("@mercurjs/core/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/cancel/route");+ markAsDelivered: typeof import("@mercurjs/core/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/mark-as-delivered/route");+ shipments: typeof import("@mercurjs/core/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/shipments/route");};};- preview: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/preview/route");+ preview: typeof import("@mercurjs/core/api/vendor/orders/[id]/preview/route");};};- payments: typeof import("@mercurjs/core-plugin/api/vendor/payments/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/payments/[id]/route") & {- capture: typeof import("@mercurjs/core-plugin/api/vendor/payments/[id]/capture/route");- refund: typeof import("@mercurjs/core-plugin/api/vendor/payments/[id]/refund/route");+ payments: typeof import("@mercurjs/core/api/vendor/payments/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/payments/[id]/route") & {+ capture: typeof import("@mercurjs/core/api/vendor/payments/[id]/capture/route");+ refund: typeof import("@mercurjs/core/api/vendor/payments/[id]/refund/route");};- paymentProviders: typeof import("@mercurjs/core-plugin/api/vendor/payments/payment-providers/route");+ paymentProviders: typeof import("@mercurjs/core/api/vendor/payments/payment-providers/route");};- payoutAccounts: typeof import("@mercurjs/core-plugin/api/vendor/payout-accounts/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/payout-accounts/[id]/route") & {- onboarding: typeof import("@mercurjs/core-plugin/api/vendor/payout-accounts/[id]/onboarding/route");+ payoutAccounts: typeof import("@mercurjs/core/api/vendor/payout-accounts/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/payout-accounts/[id]/route") & {+ onboarding: typeof import("@mercurjs/core/api/vendor/payout-accounts/[id]/onboarding/route");};};- payouts: typeof import("@mercurjs/core-plugin/api/vendor/payouts/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/payouts/[id]/route");+ payouts: typeof import("@mercurjs/core/api/vendor/payouts/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/payouts/[id]/route");};- priceLists: typeof import("@mercurjs/core-plugin/api/vendor/price-lists/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/price-lists/[id]/route") & {- products: typeof import("@mercurjs/core-plugin/api/vendor/price-lists/[id]/products/route");+ priceLists: typeof import("@mercurjs/core/api/vendor/price-lists/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/price-lists/[id]/route") & {+ products: typeof import("@mercurjs/core/api/vendor/price-lists/[id]/products/route");};};- pricePreferences: typeof import("@mercurjs/core-plugin/api/vendor/price-preferences/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/price-preferences/[id]/route");+ pricePreferences: typeof import("@mercurjs/core/api/vendor/price-preferences/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/price-preferences/[id]/route");};- productCategories: typeof import("@mercurjs/core-plugin/api/vendor/product-categories/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/product-categories/[id]/route") & {- products: typeof import("@mercurjs/core-plugin/api/vendor/product-categories/[id]/products/route");+ productCategories: typeof import("@mercurjs/core/api/vendor/product-categories/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/product-categories/[id]/route") & {+ products: typeof import("@mercurjs/core/api/vendor/product-categories/[id]/products/route");};};- productTags: typeof import("@mercurjs/core-plugin/api/vendor/product-tags/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/product-tags/[id]/route");+ productTags: typeof import("@mercurjs/core/api/vendor/product-tags/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/product-tags/[id]/route");};- productTypes: typeof import("@mercurjs/core-plugin/api/vendor/product-types/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/product-types/[id]/route");+ productTypes: typeof import("@mercurjs/core/api/vendor/product-types/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/product-types/[id]/route");};- products: typeof import("@mercurjs/core-plugin/api/vendor/products/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/products/[id]/route") & {- options: typeof import("@mercurjs/core-plugin/api/vendor/products/[id]/options/route") & {- $optionId: typeof import("@mercurjs/core-plugin/api/vendor/products/[id]/options/[option_id]/route");+ products: typeof import("@mercurjs/core/api/vendor/products/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/products/[id]/route") & {+ options: typeof import("@mercurjs/core/api/vendor/products/[id]/options/route") & {+ $optionId: typeof import("@mercurjs/core/api/vendor/products/[id]/options/[option_id]/route");};- variants: typeof import("@mercurjs/core-plugin/api/vendor/products/[id]/variants/route") & {- $variantId: typeof import("@mercurjs/core-plugin/api/vendor/products/[id]/variants/[variant_id]/route");+ variants: typeof import("@mercurjs/core/api/vendor/products/[id]/variants/route") & {+ $variantId: typeof import("@mercurjs/core/api/vendor/products/[id]/variants/[variant_id]/route");};};import: typeof import("../../src/product-import-export/api/vendor/products/import/route");export: typeof import("../../src/product-import-export/api/vendor/products/export/route");};- promotions: typeof import("@mercurjs/core-plugin/api/vendor/promotions/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/promotions/[id]/route") & {- $ruleType: typeof import("@mercurjs/core-plugin/api/vendor/promotions/[id]/[rule_type]/route");+ promotions: typeof import("@mercurjs/core/api/vendor/promotions/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/promotions/[id]/route") & {+ $ruleType: typeof import("@mercurjs/core/api/vendor/promotions/[id]/[rule_type]/route");buyRules: {- batch: typeof import("@mercurjs/core-plugin/api/vendor/promotions/[id]/buy-rules/batch/route");+ batch: typeof import("@mercurjs/core/api/vendor/promotions/[id]/buy-rules/batch/route");};rules: {- batch: typeof import("@mercurjs/core-plugin/api/vendor/promotions/[id]/rules/batch/route");+ batch: typeof import("@mercurjs/core/api/vendor/promotions/[id]/rules/batch/route");};targetRules: {- batch: typeof import("@mercurjs/core-plugin/api/vendor/promotions/[id]/target-rules/batch/route");+ batch: typeof import("@mercurjs/core/api/vendor/promotions/[id]/target-rules/batch/route");};};ruleAttributeOptions: {- $ruleType: typeof import("@mercurjs/core-plugin/api/vendor/promotions/rule-attribute-options/[rule_type]/route");+ $ruleType: typeof import("@mercurjs/core/api/vendor/promotions/rule-attribute-options/[rule_type]/route");};ruleValueOptions: {$ruleType: {- $ruleAttributeId: typeof import("@mercurjs/core-plugin/api/vendor/promotions/rule-value-options/[rule_type]/[rule_attribute_id]/route");+ $ruleAttributeId: typeof import("@mercurjs/core/api/vendor/promotions/rule-value-options/[rule_type]/[rule_attribute_id]/route");};};};- refundReasons: typeof import("@mercurjs/core-plugin/api/vendor/refund-reasons/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/refund-reasons/[id]/route");+ refundReasons: typeof import("@mercurjs/core/api/vendor/refund-reasons/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/refund-reasons/[id]/route");};- regions: typeof import("@mercurjs/core-plugin/api/vendor/regions/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/regions/[id]/route");+ regions: typeof import("@mercurjs/core/api/vendor/regions/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/regions/[id]/route");};- returnReasons: typeof import("@mercurjs/core-plugin/api/vendor/return-reasons/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/return-reasons/[id]/route");+ returnReasons: typeof import("@mercurjs/core/api/vendor/return-reasons/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/return-reasons/[id]/route");};- returns: typeof import("@mercurjs/core-plugin/api/vendor/returns/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/route") & {- cancel: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/cancel/route");- dismissItems: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/dismiss-items/route") & {- $actionId: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/dismiss-items/[action_id]/route");+ returns: typeof import("@mercurjs/core/api/vendor/returns/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/returns/[id]/route") & {+ cancel: typeof import("@mercurjs/core/api/vendor/returns/[id]/cancel/route");+ dismissItems: typeof import("@mercurjs/core/api/vendor/returns/[id]/dismiss-items/route") & {+ $actionId: typeof import("@mercurjs/core/api/vendor/returns/[id]/dismiss-items/[action_id]/route");};- receive: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/receive/route") & {- confirm: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/receive/confirm/route");+ receive: typeof import("@mercurjs/core/api/vendor/returns/[id]/receive/route") & {+ confirm: typeof import("@mercurjs/core/api/vendor/returns/[id]/receive/confirm/route");};- receiveItems: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/receive-items/route") & {- $actionId: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/receive-items/[action_id]/route");+ receiveItems: typeof import("@mercurjs/core/api/vendor/returns/[id]/receive-items/route") & {+ $actionId: typeof import("@mercurjs/core/api/vendor/returns/[id]/receive-items/[action_id]/route");};- request: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/request/route");- requestItems: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/request-items/route") & {- $actionId: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/request-items/[action_id]/route");+ request: typeof import("@mercurjs/core/api/vendor/returns/[id]/request/route");+ requestItems: typeof import("@mercurjs/core/api/vendor/returns/[id]/request-items/route") & {+ $actionId: typeof import("@mercurjs/core/api/vendor/returns/[id]/request-items/[action_id]/route");};- shippingMethod: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/shipping-method/route") & {- $actionId: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/shipping-method/[action_id]/route");+ shippingMethod: typeof import("@mercurjs/core/api/vendor/returns/[id]/shipping-method/route") & {+ $actionId: typeof import("@mercurjs/core/api/vendor/returns/[id]/shipping-method/[action_id]/route");};};};- salesChannels: typeof import("@mercurjs/core-plugin/api/vendor/sales-channels/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/sales-channels/[id]/route") & {- products: typeof import("@mercurjs/core-plugin/api/vendor/sales-channels/[id]/products/route");+ salesChannels: typeof import("@mercurjs/core/api/vendor/sales-channels/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/sales-channels/[id]/route") & {+ products: typeof import("@mercurjs/core/api/vendor/sales-channels/[id]/products/route");};};- sellers: typeof import("@mercurjs/core-plugin/api/vendor/sellers/route") & {- me: typeof import("@mercurjs/core-plugin/api/vendor/sellers/me/route");+ sellers: typeof import("@mercurjs/core/api/vendor/sellers/route") & {+ me: typeof import("@mercurjs/core/api/vendor/sellers/me/route");};- shippingOptionTypes: typeof import("@mercurjs/core-plugin/api/vendor/shipping-option-types/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/shipping-option-types/[id]/route");+ shippingOptionTypes: typeof import("@mercurjs/core/api/vendor/shipping-option-types/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/shipping-option-types/[id]/route");};- shippingOptions: typeof import("@mercurjs/core-plugin/api/vendor/shipping-options/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/shipping-options/[id]/route") & {+ shippingOptions: typeof import("@mercurjs/core/api/vendor/shipping-options/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/shipping-options/[id]/route") & {rules: {- batch: typeof import("@mercurjs/core-plugin/api/vendor/shipping-options/[id]/rules/batch/route");+ batch: typeof import("@mercurjs/core/api/vendor/shipping-options/[id]/rules/batch/route");};};};- shippingProfiles: typeof import("@mercurjs/core-plugin/api/vendor/shipping-profiles/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/shipping-profiles/[id]/route");+ shippingProfiles: typeof import("@mercurjs/core/api/vendor/shipping-profiles/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/shipping-profiles/[id]/route");};- stockLocations: typeof import("@mercurjs/core-plugin/api/vendor/stock-locations/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/stock-locations/[id]/route") & {- fulfillmentProviders: typeof import("@mercurjs/core-plugin/api/vendor/stock-locations/[id]/fulfillment-providers/route");- fulfillmentSets: typeof import("@mercurjs/core-plugin/api/vendor/stock-locations/[id]/fulfillment-sets/route");- salesChannels: typeof import("@mercurjs/core-plugin/api/vendor/stock-locations/[id]/sales-channels/route");+ stockLocations: typeof import("@mercurjs/core/api/vendor/stock-locations/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/stock-locations/[id]/route") & {+ fulfillmentProviders: typeof import("@mercurjs/core/api/vendor/stock-locations/[id]/fulfillment-providers/route");+ fulfillmentSets: typeof import("@mercurjs/core/api/vendor/stock-locations/[id]/fulfillment-sets/route");+ salesChannels: typeof import("@mercurjs/core/api/vendor/stock-locations/[id]/sales-channels/route");};};- uploads: typeof import("@mercurjs/core-plugin/api/vendor/uploads/route");+ uploads: typeof import("@mercurjs/core/api/vendor/uploads/route");reviews: typeof import("../../src/reviews/api/vendor/reviews/route") & {$id: typeof import("../../src/reviews/api/vendor/reviews/[id]/route");};diff --git a/packages/registry/package.json b/packages/registry/package.jsonindex 50e562805..729446b27 100644--- a/packages/registry/package.json+++ b/packages/registry/package.json@@ -22,7 +22,7 @@"@tanstack/react-table": "8.20.5","@mercurjs/client": "workspace:*","zod": "3.25.76",- "@mercurjs/core-plugin": "workspace:*",+ "@mercurjs/core": "workspace:*","@mercurjs/vendor": "workspace:*","@medusajs/core-flows": "^2.13.4","react-hook-form": "7.49.1",diff --git a/packages/registry/r/algolia.json b/packages/registry/r/algolia.jsonindex 4fceba65e..867a55dfd 100644--- a/packages/registry/r/algolia.json+++ b/packages/registry/r/algolia.json@@ -61,7 +61,7 @@},{"path": "algolia/subscribers/algolia-fulfillment-set-changed.ts",- "content": "import { SubscriberArgs, SubscriberConfig } from '@medusajs/framework'\nimport { ContainerRegistrationKeys, Modules } from '@medusajs/framework/utils'\n\nimport { AlgoliaEvents, IntermediateEvents } from '../modules/algolia/types'\nimport sellerFulfillmentSet from '@mercurjs/core-plugin/links/fulfillment-set-seller-link'\nimport productSellerLink from '@mercurjs/core-plugin/links/product-seller-link'\n\nexport default async function fulfillmentSetChangedHandler({\n event,\n container\n}: SubscriberArgs<{ id: string }>) {\n const fulfillment_set_id = event.data.id\n const query = container.resolve(ContainerRegistrationKeys.QUERY)\n const eventBus = container.resolve(Modules.EVENT_BUS)\n\n const {\n data: [seller]\n } = await query.graph({\n entity: sellerFulfillmentSet.entryPoint,\n fields: ['seller_id'],\n filters: {\n fulfillment_set_id\n },\n withDeleted: true\n })\n\n if (!seller) {\n return\n }\n\n const { data: products } = await query.graph({\n entity: productSellerLink.entryPoint,\n fields: ['product_id'],\n filters: {\n seller_id: seller.seller_id\n }\n })\n\n await eventBus.emit({\n name: AlgoliaEvents.PRODUCTS_CHANGED,\n data: { ids: products.map((p) => p.product_id) }\n })\n}\n\nexport const config: SubscriberConfig = {\n event: IntermediateEvents.FULFILLMENT_SET_CHANGED,\n context: {\n subscriberId: 'fulfillment-set-changed-handler'\n }\n}\n",+ "content": "import { SubscriberArgs, SubscriberConfig } from '@medusajs/framework'\nimport { ContainerRegistrationKeys, Modules } from '@medusajs/framework/utils'\n\nimport { AlgoliaEvents, IntermediateEvents } from '../modules/algolia/types'\nimport sellerFulfillmentSet from '@mercurjs/core/links/fulfillment-set-seller-link'\nimport productSellerLink from '@mercurjs/core/links/product-seller-link'\n\nexport default async function fulfillmentSetChangedHandler({\n event,\n container\n}: SubscriberArgs<{ id: string }>) {\n const fulfillment_set_id = event.data.id\n const query = container.resolve(ContainerRegistrationKeys.QUERY)\n const eventBus = container.resolve(Modules.EVENT_BUS)\n\n const {\n data: [seller]\n } = await query.graph({\n entity: sellerFulfillmentSet.entryPoint,\n fields: ['seller_id'],\n filters: {\n fulfillment_set_id\n },\n withDeleted: true\n })\n\n if (!seller) {\n return\n }\n\n const { data: products } = await query.graph({\n entity: productSellerLink.entryPoint,\n fields: ['product_id'],\n filters: {\n seller_id: seller.seller_id\n }\n })\n\n await eventBus.emit({\n name: AlgoliaEvents.PRODUCTS_CHANGED,\n data: { ids: products.map((p) => p.product_id) }\n })\n}\n\nexport const config: SubscriberConfig = {\n event: IntermediateEvents.FULFILLMENT_SET_CHANGED,\n context: {\n subscriberId: 'fulfillment-set-changed-handler'\n }\n}\n","type": "registry:api"},{@@ -71,17 +71,17 @@},{"path": "algolia/subscribers/algolia-service-zone-changed.ts",- "content": "import { SubscriberArgs, SubscriberConfig } from '@medusajs/framework'\nimport { ContainerRegistrationKeys, Modules } from '@medusajs/framework/utils'\n\nimport { AlgoliaEvents, IntermediateEvents } from '../modules/algolia/types'\nimport productSellerLink from '@mercurjs/core-plugin/links/product-seller-link'\nimport sellerServiceZone from '@mercurjs/core-plugin/links/service-zone-seller-link'\n\nexport default async function serviceZoneChangedHandler({\n event,\n container\n}: SubscriberArgs<{ id: string }>) {\n const service_zone_id = event.data.id\n const query = container.resolve(ContainerRegistrationKeys.QUERY)\n const eventBus = container.resolve(Modules.EVENT_BUS)\n\n const {\n data: [seller]\n } = await query.graph({\n entity: sellerServiceZone.entryPoint,\n fields: ['seller_id'],\n filters: {\n service_zone_id\n },\n withDeleted: true\n })\n\n if (!seller) {\n return\n }\n\n const { data: products } = await query.graph({\n entity: productSellerLink.entryPoint,\n fields: ['product_id'],\n filters: {\n seller_id: seller.seller_id\n }\n })\n\n await eventBus.emit({\n name: AlgoliaEvents.PRODUCTS_CHANGED,\n data: { ids: products.map((p) => p.product_id) }\n })\n}\n\nexport const config: SubscriberConfig = {\n event: IntermediateEvents.SERVICE_ZONE_CHANGED,\n context: {\n subscriberId: 'service-zone-changed-handler'\n }\n}\n",+ "content": "import { SubscriberArgs, SubscriberConfig } from '@medusajs/framework'\nimport { ContainerRegistrationKeys, Modules } from '@medusajs/framework/utils'\n\nimport { AlgoliaEvents, IntermediateEvents } from '../modules/algolia/types'\nimport productSellerLink from '@mercurjs/core/links/product-seller-link'\nimport sellerServiceZone from '@mercurjs/core/links/service-zone-seller-link'\n\nexport default async function serviceZoneChangedHandler({\n event,\n container\n}: SubscriberArgs<{ id: string }>) {\n const service_zone_id = event.data.id\n const query = container.resolve(ContainerRegistrationKeys.QUERY)\n const eventBus = container.resolve(Modules.EVENT_BUS)\n\n const {\n data: [seller]\n } = await query.graph({\n entity: sellerServiceZone.entryPoint,\n fields: ['seller_id'],\n filters: {\n service_zone_id\n },\n withDeleted: true\n })\n\n if (!seller) {\n return\n }\n\n const { data: products } = await query.graph({\n entity: productSellerLink.entryPoint,\n fields: ['product_id'],\n filters: {\n seller_id: seller.seller_id\n }\n })\n\n await eventBus.emit({\n name: AlgoliaEvents.PRODUCTS_CHANGED,\n data: { ids: products.map((p) => p.product_id) }\n })\n}\n\nexport const config: SubscriberConfig = {\n event: IntermediateEvents.SERVICE_ZONE_CHANGED,\n context: {\n subscriberId: 'service-zone-changed-handler'\n }\n}\n","type": "registry:api"},{"path": "algolia/subscribers/algolia-shipping-option-changed.ts",- "content": "import { SubscriberArgs, SubscriberConfig } from '@medusajs/framework'\nimport { ContainerRegistrationKeys, Modules } from '@medusajs/framework/utils'\n\nimport { AlgoliaEvents, IntermediateEvents } from '../modules/algolia/types'\nimport productSellerLink from '@mercurjs/core-plugin/links/product-seller-link'\nimport shippingOptionSellerLink from '@mercurjs/core-plugin/links/shipping-option-seller-link'\n\nexport default async function shippingOptionChangedHandler({\n event,\n container\n}: SubscriberArgs<{ id: string }>) {\n const shipping_option_id = event.data.id\n const query = container.resolve(ContainerRegistrationKeys.QUERY)\n const eventBus = container.resolve(Modules.EVENT_BUS)\n\n const {\n data: [seller]\n } = await query.graph({\n entity: shippingOptionSellerLink.entryPoint,\n fields: ['seller_id'],\n filters: {\n shipping_option_id\n },\n withDeleted: true\n })\n\n if (!seller) {\n return\n }\n\n const { data: products } = await query.graph({\n entity: productSellerLink.entryPoint,\n fields: ['product_id'],\n filters: {\n seller_id: seller.seller_id\n }\n })\n\n await eventBus.emit({\n name: AlgoliaEvents.PRODUCTS_CHANGED,\n data: { ids: products.map((p) => p.product_id) }\n })\n}\n\nexport const config: SubscriberConfig = {\n event: IntermediateEvents.SHIPPING_OPTION_CHANGED,\n context: {\n subscriberId: 'shipping-option-changed-handler'\n }\n}\n",+ "content": "import { SubscriberArgs, SubscriberConfig } from '@medusajs/framework'\nimport { ContainerRegistrationKeys, Modules } from '@medusajs/framework/utils'\n\nimport { AlgoliaEvents, IntermediateEvents } from '../modules/algolia/types'\nimport productSellerLink from '@mercurjs/core/links/product-seller-link'\nimport shippingOptionSellerLink from '@mercurjs/core/links/shipping-option-seller-link'\n\nexport default async function shippingOptionChangedHandler({\n event,\n container\n}: SubscriberArgs<{ id: string }>) {\n const shipping_option_id = event.data.id\n const query = container.resolve(ContainerRegistrationKeys.QUERY)\n const eventBus = container.resolve(Modules.EVENT_BUS)\n\n const {\n data: [seller]\n } = await query.graph({\n entity: shippingOptionSellerLink.entryPoint,\n fields: ['seller_id'],\n filters: {\n shipping_option_id\n },\n withDeleted: true\n })\n\n if (!seller) {\n return\n }\n\n const { data: products } = await query.graph({\n entity: productSellerLink.entryPoint,\n fields: ['product_id'],\n filters: {\n seller_id: seller.seller_id\n }\n })\n\n await eventBus.emit({\n name: AlgoliaEvents.PRODUCTS_CHANGED,\n data: { ids: products.map((p) => p.product_id) }\n })\n}\n\nexport const config: SubscriberConfig = {\n event: IntermediateEvents.SHIPPING_OPTION_CHANGED,\n context: {\n subscriberId: 'shipping-option-changed-handler'\n }\n}\n","type": "registry:api"},{"path": "algolia/subscribers/algolia-stock-location-changed.ts",- "content": "import { SubscriberArgs, SubscriberConfig } from '@medusajs/framework'\nimport { ContainerRegistrationKeys, Modules } from '@medusajs/framework/utils'\n\nimport { AlgoliaEvents, IntermediateEvents } from '../modules/algolia/types'\nimport productSellerLink from '@mercurjs/core-plugin/links/product-seller-link'\nimport stockLocationSellerLink from '@mercurjs/core-plugin/links/stock-location-seller-link'\n\nexport default async function stockLocationChangedHandler({\n event,\n container\n}: SubscriberArgs<{ id: string }>) {\n const stock_location_id = event.data.id\n const query = container.resolve(ContainerRegistrationKeys.QUERY)\n const eventBus = container.resolve(Modules.EVENT_BUS)\n\n const {\n data: [seller]\n } = await query.graph({\n entity: stockLocationSellerLink.entryPoint,\n fields: ['seller_id'],\n filters: {\n stock_location_id\n },\n withDeleted: true\n })\n\n if (!seller) {\n return\n }\n\n const { data: products } = await query.graph({\n entity: productSellerLink.entryPoint,\n fields: ['product_id'],\n filters: {\n seller_id: seller.seller_id\n }\n })\n\n await eventBus.emit({\n name: AlgoliaEvents.PRODUCTS_CHANGED,\n data: { ids: products.map((p) => p.product_id) }\n })\n}\n\nexport const config: SubscriberConfig = {\n event: IntermediateEvents.STOCK_LOCATION_CHANGED,\n context: {\n subscriberId: 'stock-location-changed-handler'\n }\n}\n",+ "content": "import { SubscriberArgs, SubscriberConfig } from '@medusajs/framework'\nimport { ContainerRegistrationKeys, Modules } from '@medusajs/framework/utils'\n\nimport { AlgoliaEvents, IntermediateEvents } from '../modules/algolia/types'\nimport productSellerLink from '@mercurjs/core/links/product-seller-link'\nimport stockLocationSellerLink from '@mercurjs/core/links/stock-location-seller-link'\n\nexport default async function stockLocationChangedHandler({\n event,\n container\n}: SubscriberArgs<{ id: string }>) {\n const stock_location_id = event.data.id\n const query = container.resolve(ContainerRegistrationKeys.QUERY)\n const eventBus = container.resolve(Modules.EVENT_BUS)\n\n const {\n data: [seller]\n } = await query.graph({\n entity: stockLocationSellerLink.entryPoint,\n fields: ['seller_id'],\n filters: {\n stock_location_id\n },\n withDeleted: true\n })\n\n if (!seller) {\n return\n }\n\n const { data: products } = await query.graph({\n entity: productSellerLink.entryPoint,\n fields: ['product_id'],\n filters: {\n seller_id: seller.seller_id\n }\n })\n\n await eventBus.emit({\n name: AlgoliaEvents.PRODUCTS_CHANGED,\n data: { ids: products.map((p) => p.product_id) }\n })\n}\n\nexport const config: SubscriberConfig = {\n event: IntermediateEvents.STOCK_LOCATION_CHANGED,\n context: {\n subscriberId: 'stock-location-changed-handler'\n }\n}\n","type": "registry:api"},{diff --git a/packages/registry/r/registry.json b/packages/registry/r/registry.jsonindex ffcd12086..b417ff870 100644--- a/packages/registry/r/registry.json+++ b/packages/registry/r/registry.json@@ -518,7 +518,7 @@"description": "Admin approval system powered by the Custom Fields module. Admins can list, review, accept or reject entity requests.","dependencies": [],"registryDependencies": [],- "docs": "## Prerequisites\n\nThis block requires the **Custom Fields module** (`@mercurjs/core-plugin/modules/custom-fields`). Make sure it is registered in your `medusa-config.ts`.\n\n## Configuration\n\nAdd request-related custom fields to the entities you want to support approval workflows for. Product already has a built-in `status` field, so you only need to configure custom fields for other entities.\n\nAdd these fields to your Custom Fields module options in `medusa-config.ts`:\n\n```ts\n{\n resolve: \"@mercurjs/core-plugin/modules/custom-fields\",\n options: {\n customFields: {\n ProductCollection: {\n request_status: {\n type: \"enum\",\n enum: [\"draft\", \"pending\", \"accepted\", \"rejected\"],\n defaultValue: \"draft\",\n },\n submitter_id: { type: \"string\", nullable: true },\n reviewer_id: { type: \"string\", nullable: true },\n reviewer_note: { type: \"text\", nullable: true },\n },\n // Add the same fields to other entities as needed:\n // ProductCategory, ProductType, ProductTag\n },\n },\n}\n```\n\n## Middlewares\n\nAdd the request middlewares to your `api/middlewares.ts`:\n\n```ts\nimport { defineMiddlewares } from \"@medusajs/medusa\";\nimport { adminRequestsMiddlewares } from \"./admin/requests/middlewares\";\nimport { vendorProductCollectionRequestsMiddlewares } from \"./vendor/requests/product-collections/middlewares\";\nimport { vendorProductCategoryRequestsMiddlewares } from \"./vendor/requests/product-categories/middlewares\";\nimport { vendorProductTypeRequestsMiddlewares } from \"./vendor/requests/product-types/middlewares\";\nimport { vendorProductTagRequestsMiddlewares } from \"./vendor/requests/product-tags/middlewares\";\n\nexport default defineMiddlewares({\n routes: [\n ...adminRequestsMiddlewares,\n ...vendorProductCollectionRequestsMiddlewares,\n ...vendorProductCategoryRequestsMiddlewares,\n ...vendorProductTypeRequestsMiddlewares,\n ...vendorProductTagRequestsMiddlewares,\n ],\n});\n```\n\nIf you already have a `middlewares.ts` file, merge the middleware imports and spread them into your existing `routes` array.\n\n## Database Migrations\n\nAfter updating the custom fields configuration, run migrations:\n\n```bash\nnpx medusa db:migrate\n```\n\n## Run codegen\n\nAfter installing the block, regenerate SDK types:\n\n```bash\nnpx @mercurjs/cli@latest codegen\n```\n\n## API Endpoints\n\n### Admin\n\n- `GET /admin/requests/:type` \u2014 List entities with request custom fields (filterable by `request_status`, `submitter_id`)\n- `GET /admin/requests/:type/:id` \u2014 Retrieve entity with request custom fields\n- `POST /admin/requests/:type/:id/accept` \u2014 Accept a request\n- `POST /admin/requests/:type/:id/reject` \u2014 Reject a request\n\nSupported `:type` values: `product_collection`, `product_category`, `product_type`, `product_tag`\n\n### Vendor\n\n- `GET /vendor/requests/product-collections` \u2014 List vendor's collection requests\n- `POST /vendor/requests/product-collections` \u2014 Create a collection request\n- `GET /vendor/requests/product-categories` \u2014 List vendor's category requests\n- `POST /vendor/requests/product-categories` \u2014 Create a category request\n- `GET /vendor/requests/product-types` \u2014 List vendor's type requests\n- `POST /vendor/requests/product-types` \u2014 Create a type request\n- `GET /vendor/requests/product-tags` \u2014 List vendor's tag requests\n- `POST /vendor/requests/product-tags` \u2014 Create a tag request",+ "docs": "## Prerequisites\n\nThis block requires the **Custom Fields module** (`@mercurjs/core/modules/custom-fields`). Make sure it is registered in your `medusa-config.ts`.\n\n## Configuration\n\nAdd request-related custom fields to the entities you want to support approval workflows for. Product already has a built-in `status` field, so you only need to configure custom fields for other entities.\n\nAdd these fields to your Custom Fields module options in `medusa-config.ts`:\n\n```ts\n{\n resolve: \"@mercurjs/core/modules/custom-fields\",\n options: {\n customFields: {\n ProductCollection: {\n request_status: {\n type: \"enum\",\n enum: [\"draft\", \"pending\", \"accepted\", \"rejected\"],\n defaultValue: \"draft\",\n },\n submitter_id: { type: \"string\", nullable: true },\n reviewer_id: { type: \"string\", nullable: true },\n reviewer_note: { type: \"text\", nullable: true },\n },\n // Add the same fields to other entities as needed:\n // ProductCategory, ProductType, ProductTag\n },\n },\n}\n```\n\n## Middlewares\n\nAdd the request middlewares to your `api/middlewares.ts`:\n\n```ts\nimport { defineMiddlewares } from \"@medusajs/medusa\";\nimport { adminRequestsMiddlewares } from \"./admin/requests/middlewares\";\nimport { vendorProductCollectionRequestsMiddlewares } from \"./vendor/requests/product-collections/middlewares\";\nimport { vendorProductCategoryRequestsMiddlewares } from \"./vendor/requests/product-categories/middlewares\";\nimport { vendorProductTypeRequestsMiddlewares } from \"./vendor/requests/product-types/middlewares\";\nimport { vendorProductTagRequestsMiddlewares } from \"./vendor/requests/product-tags/middlewares\";\n\nexport default defineMiddlewares({\n routes: [\n ...adminRequestsMiddlewares,\n ...vendorProductCollectionRequestsMiddlewares,\n ...vendorProductCategoryRequestsMiddlewares,\n ...vendorProductTypeRequestsMiddlewares,\n ...vendorProductTagRequestsMiddlewares,\n ],\n});\n```\n\nIf you already have a `middlewares.ts` file, merge the middleware imports and spread them into your existing `routes` array.\n\n## Database Migrations\n\nAfter updating the custom fields configuration, run migrations:\n\n```bash\nnpx medusa db:migrate\n```\n\n## Run codegen\n\nAfter installing the block, regenerate SDK types:\n\n```bash\nnpx @mercurjs/cli@latest codegen\n```\n\n## API Endpoints\n\n### Admin\n\n- `GET /admin/requests/:type` \u2014 List entities with request custom fields (filterable by `request_status`, `submitter_id`)\n- `GET /admin/requests/:type/:id` \u2014 Retrieve entity with request custom fields\n- `POST /admin/requests/:type/:id/accept` \u2014 Accept a request\n- `POST /admin/requests/:type/:id/reject` \u2014 Reject a request\n\nSupported `:type` values: `product_collection`, `product_category`, `product_type`, `product_tag`\n\n### Vendor\n\n- `GET /vendor/requests/product-collections` \u2014 List vendor's collection requests\n- `POST /vendor/requests/product-collections` \u2014 Create a collection request\n- `GET /vendor/requests/product-categories` \u2014 List vendor's category requests\n- `POST /vendor/requests/product-categories` \u2014 Create a category request\n- `GET /vendor/requests/product-types` \u2014 List vendor's type requests\n- `POST /vendor/requests/product-types` \u2014 Create a type request\n- `GET /vendor/requests/product-tags` \u2014 List vendor's tag requests\n- `POST /vendor/requests/product-tags` \u2014 Create a tag request","files": [{"path": "requests/types/index.ts",diff --git a/packages/registry/r/requests.json b/packages/registry/r/requests.jsonindex bbf87cac0..b66b908f5 100644--- a/packages/registry/r/requests.json+++ b/packages/registry/r/requests.json@@ -4,7 +4,7 @@"description": "Admin approval system powered by the Custom Fields module. Admins can list, review, accept or reject entity requests.","dependencies": [],"registryDependencies": [],- "docs": "## Prerequisites\n\nThis block requires the **Custom Fields module** (`@mercurjs/core-plugin/modules/custom-fields`). Make sure it is registered in your `medusa-config.ts`.\n\n## Configuration\n\nAdd request-related custom fields to the entities you want to support approval workflows for. Product already has a built-in `status` field, so you only need to configure custom fields for other entities.\n\nAdd these fields to your Custom Fields module options in `medusa-config.ts`:\n\n```ts\n{\n resolve: \"@mercurjs/core-plugin/modules/custom-fields\",\n options: {\n customFields: {\n ProductCollection: {\n request_status: {\n type: \"enum\",\n enum: [\"draft\", \"pending\", \"accepted\", \"rejected\"],\n defaultValue: \"draft\",\n },\n submitter_id: { type: \"string\", nullable: true },\n reviewer_id: { type: \"string\", nullable: true },\n reviewer_note: { type: \"text\", nullable: true },\n },\n // Add the same fields to other entities as needed:\n // ProductCategory, ProductType, ProductTag\n },\n },\n}\n```\n\n## Middlewares\n\nAdd the request middlewares to your `api/middlewares.ts`:\n\n```ts\nimport { defineMiddlewares } from \"@medusajs/medusa\";\nimport { adminRequestsMiddlewares } from \"./admin/requests/middlewares\";\nimport { vendorProductCollectionRequestsMiddlewares } from \"./vendor/requests/product-collections/middlewares\";\nimport { vendorProductCategoryRequestsMiddlewares } from \"./vendor/requests/product-categories/middlewares\";\nimport { vendorProductTypeRequestsMiddlewares } from \"./vendor/requests/product-types/middlewares\";\nimport { vendorProductTagRequestsMiddlewares } from \"./vendor/requests/product-tags/middlewares\";\n\nexport default defineMiddlewares({\n routes: [\n ...adminRequestsMiddlewares,\n ...vendorProductCollectionRequestsMiddlewares,\n ...vendorProductCategoryRequestsMiddlewares,\n ...vendorProductTypeRequestsMiddlewares,\n ...vendorProductTagRequestsMiddlewares,\n ],\n});\n```\n\nIf you already have a `middlewares.ts` file, merge the middleware imports and spread them into your existing `routes` array.\n\n## Database Migrations\n\nAfter updating the custom fields configuration, run migrations:\n\n```bash\nnpx medusa db:migrate\n```\n\n## Run codegen\n\nAfter installing the block, regenerate SDK types:\n\n```bash\nnpx @mercurjs/cli@latest codegen\n```\n\n## API Endpoints\n\n### Admin\n\n- `GET /admin/requests/:type` — List entities with request custom fields (filterable by `request_status`, `submitter_id`)\n- `GET /admin/requests/:type/:id` — Retrieve entity with request custom fields\n- `POST /admin/requests/:type/:id/accept` — Accept a request\n- `POST /admin/requests/:type/:id/reject` — Reject a request\n\nSupported `:type` values: `product_collection`, `product_category`, `product_type`, `product_tag`\n\n### Vendor\n\n- `GET /vendor/requests/product-collections` — List vendor's collection requests\n- `POST /vendor/requests/product-collections` — Create a collection request\n- `GET /vendor/requests/product-categories` — List vendor's category requests\n- `POST /vendor/requests/product-categories` — Create a category request\n- `GET /vendor/requests/product-types` — List vendor's type requests\n- `POST /vendor/requests/product-types` — Create a type request\n- `GET /vendor/requests/product-tags` — List vendor's tag requests\n- `POST /vendor/requests/product-tags` — Create a tag request",+ "docs": "## Prerequisites\n\nThis block requires the **Custom Fields module** (`@mercurjs/core/modules/custom-fields`). Make sure it is registered in your `medusa-config.ts`.\n\n## Configuration\n\nAdd request-related custom fields to the entities you want to support approval workflows for. Product already has a built-in `status` field, so you only need to configure custom fields for other entities.\n\nAdd these fields to your Custom Fields module options in `medusa-config.ts`:\n\n```ts\n{\n resolve: \"@mercurjs/core/modules/custom-fields\",\n options: {\n customFields: {\n ProductCollection: {\n request_status: {\n type: \"enum\",\n enum: [\"draft\", \"pending\", \"accepted\", \"rejected\"],\n defaultValue: \"draft\",\n },\n submitter_id: { type: \"string\", nullable: true },\n reviewer_id: { type: \"string\", nullable: true },\n reviewer_note: { type: \"text\", nullable: true },\n },\n // Add the same fields to other entities as needed:\n // ProductCategory, ProductType, ProductTag\n },\n },\n}\n```\n\n## Middlewares\n\nAdd the request middlewares to your `api/middlewares.ts`:\n\n```ts\nimport { defineMiddlewares } from \"@medusajs/medusa\";\nimport { adminRequestsMiddlewares } from \"./admin/requests/middlewares\";\nimport { vendorProductCollectionRequestsMiddlewares } from \"./vendor/requests/product-collections/middlewares\";\nimport { vendorProductCategoryRequestsMiddlewares } from \"./vendor/requests/product-categories/middlewares\";\nimport { vendorProductTypeRequestsMiddlewares } from \"./vendor/requests/product-types/middlewares\";\nimport { vendorProductTagRequestsMiddlewares } from \"./vendor/requests/product-tags/middlewares\";\n\nexport default defineMiddlewares({\n routes: [\n ...adminRequestsMiddlewares,\n ...vendorProductCollectionRequestsMiddlewares,\n ...vendorProductCategoryRequestsMiddlewares,\n ...vendorProductTypeRequestsMiddlewares,\n ...vendorProductTagRequestsMiddlewares,\n ],\n});\n```\n\nIf you already have a `middlewares.ts` file, merge the middleware imports and spread them into your existing `routes` array.\n\n## Database Migrations\n\nAfter updating the custom fields configuration, run migrations:\n\n```bash\nnpx medusa db:migrate\n```\n\n## Run codegen\n\nAfter installing the block, regenerate SDK types:\n\n```bash\nnpx @mercurjs/cli@latest codegen\n```\n\n## API Endpoints\n\n### Admin\n\n- `GET /admin/requests/:type` — List entities with request custom fields (filterable by `request_status`, `submitter_id`)\n- `GET /admin/requests/:type/:id` — Retrieve entity with request custom fields\n- `POST /admin/requests/:type/:id/accept` — Accept a request\n- `POST /admin/requests/:type/:id/reject` — Reject a request\n\nSupported `:type` values: `product_collection`, `product_category`, `product_type`, `product_tag`\n\n### Vendor\n\n- `GET /vendor/requests/product-collections` — List vendor's collection requests\n- `POST /vendor/requests/product-collections` — Create a collection request\n- `GET /vendor/requests/product-categories` — List vendor's category requests\n- `POST /vendor/requests/product-categories` — Create a category request\n- `GET /vendor/requests/product-types` — List vendor's type requests\n- `POST /vendor/requests/product-types` — Create a type request\n- `GET /vendor/requests/product-tags` — List vendor's tag requests\n- `POST /vendor/requests/product-tags` — Create a tag request","categories": ["api","workflow"@@ -32,17 +32,17 @@},{"path": "requests/workflows/requests/workflows/accept-request.ts",- "content": "import { createWorkflow, WorkflowResponse } from \"@medusajs/framework/workflows-sdk\"\nimport { upsertCustomFieldsStep } from \"@mercurjs/core-plugin/workflows\"\n\nimport { RequestStatus } from \"../../../types\"\nimport { validateRequestStatusStep } from \"../steps\"\n\ntype AcceptRequestWorkflowInput = {\n alias: string\n entity_id: string\n reviewer_id: string\n reviewer_note?: string\n}\n\nexport const acceptRequestWorkflow = createWorkflow(\n \"accept-request\",\n (input: AcceptRequestWorkflowInput) => {\n validateRequestStatusStep({\n alias: input.alias,\n entity_id: input.entity_id,\n expected_status: RequestStatus.PENDING,\n })\n\n const result = upsertCustomFieldsStep({\n alias: input.alias,\n data: {\n id: input.entity_id,\n request_status: RequestStatus.ACCEPTED,\n reviewer_id: input.reviewer_id,\n reviewer_note: input.reviewer_note ?? null,\n },\n })\n\n return new WorkflowResponse(result)\n }\n)\n",+ "content": "import { createWorkflow, WorkflowResponse } from \"@medusajs/framework/workflows-sdk\"\nimport { upsertCustomFieldsStep } from \"@mercurjs/core/workflows\"\n\nimport { RequestStatus } from \"../../../types\"\nimport { validateRequestStatusStep } from \"../steps\"\n\ntype AcceptRequestWorkflowInput = {\n alias: string\n entity_id: string\n reviewer_id: string\n reviewer_note?: string\n}\n\nexport const acceptRequestWorkflow = createWorkflow(\n \"accept-request\",\n (input: AcceptRequestWorkflowInput) => {\n validateRequestStatusStep({\n alias: input.alias,\n entity_id: input.entity_id,\n expected_status: RequestStatus.PENDING,\n })\n\n const result = upsertCustomFieldsStep({\n alias: input.alias,\n data: {\n id: input.entity_id,\n request_status: RequestStatus.ACCEPTED,\n reviewer_id: input.reviewer_id,\n reviewer_note: input.reviewer_note ?? null,\n },\n })\n\n return new WorkflowResponse(result)\n }\n)\n","type": "registry:api"},{"path": "requests/workflows/requests/workflows/reject-request.ts",- "content": "import { createWorkflow, WorkflowResponse } from \"@medusajs/framework/workflows-sdk\"\nimport { upsertCustomFieldsStep } from \"@mercurjs/core-plugin/workflows\"\n\nimport { RequestStatus } from \"../../../types\"\nimport { validateRequestStatusStep } from \"../steps\"\n\ntype RejectRequestWorkflowInput = {\n alias: string\n entity_id: string\n reviewer_id: string\n reviewer_note?: string\n}\n\nexport const rejectRequestWorkflow = createWorkflow(\n \"reject-request\",\n (input: RejectRequestWorkflowInput) => {\n validateRequestStatusStep({\n alias: input.alias,\n entity_id: input.entity_id,\n expected_status: RequestStatus.PENDING,\n })\n\n const result = upsertCustomFieldsStep({\n alias: input.alias,\n data: {\n id: input.entity_id,\n request_status: RequestStatus.REJECTED,\n reviewer_id: input.reviewer_id,\n reviewer_note: input.reviewer_note ?? null,\n },\n })\n\n return new WorkflowResponse(result)\n }\n)\n",+ "content": "import { createWorkflow, WorkflowResponse } from \"@medusajs/framework/workflows-sdk\"\nimport { upsertCustomFieldsStep } from \"@mercurjs/core/workflows\"\n\nimport { RequestStatus } from \"../../../types\"\nimport { validateRequestStatusStep } from \"../steps\"\n\ntype RejectRequestWorkflowInput = {\n alias: string\n entity_id: string\n reviewer_id: string\n reviewer_note?: string\n}\n\nexport const rejectRequestWorkflow = createWorkflow(\n \"reject-request\",\n (input: RejectRequestWorkflowInput) => {\n validateRequestStatusStep({\n alias: input.alias,\n entity_id: input.entity_id,\n expected_status: RequestStatus.PENDING,\n })\n\n const result = upsertCustomFieldsStep({\n alias: input.alias,\n data: {\n id: input.entity_id,\n request_status: RequestStatus.REJECTED,\n reviewer_id: input.reviewer_id,\n reviewer_note: input.reviewer_note ?? null,\n },\n })\n\n return new WorkflowResponse(result)\n }\n)\n","type": "registry:api"},{"path": "requests/workflows/requests/workflows/create-product-collection-request.ts",- "content": "import { createWorkflow, transform, WorkflowResponse } from \"@medusajs/framework/workflows-sdk\"\nimport { createCollectionsWorkflow } from \"@medusajs/medusa/core-flows\"\nimport { upsertCustomFieldsStep } from \"@mercurjs/core-plugin/workflows\"\n\nimport { RequestStatus } from \"../../../types\"\n\ntype CreateProductCollectionRequestWorkflowInput = {\n product_collection: {\n title: string\n handle?: string\n metadata?: Record<string, unknown>\n }\n submitter_id: string\n}\n\nexport const createProductCollectionRequestWorkflow = createWorkflow(\n \"create-product-collection-request\",\n function (input: CreateProductCollectionRequestWorkflowInput) {\n const collections = createCollectionsWorkflow.runAsStep({\n input: {\n collections: [input.product_collection],\n },\n })\n\n const upsertInput = transform({ collections, input }, (data) => ({\n alias: \"product_collection\",\n data: {\n id: data.collections[0]!.id,\n request_status: RequestStatus.PENDING,\n submitter_id: data.input.submitter_id,\n },\n }))\n\n upsertCustomFieldsStep(upsertInput)\n\n const collection = transform({ collections }, (data) => data.collections[0]!)\n\n return new WorkflowResponse(collection)\n }\n)\n",+ "content": "import { createWorkflow, transform, WorkflowResponse } from \"@medusajs/framework/workflows-sdk\"\nimport { createCollectionsWorkflow } from \"@medusajs/medusa/core-flows\"\nimport { upsertCustomFieldsStep } from \"@mercurjs/core/workflows\"\n\nimport { RequestStatus } from \"../../../types\"\n\ntype CreateProductCollectionRequestWorkflowInput = {\n product_collection: {\n title: string\n handle?: string\n metadata?: Record<string, unknown>\n }\n submitter_id: string\n}\n\nexport const createProductCollectionRequestWorkflow = createWorkflow(\n \"create-product-collection-request\",\n function (input: CreateProductCollectionRequestWorkflowInput) {\n const collections = createCollectionsWorkflow.runAsStep({\n input: {\n collections: [input.product_collection],\n },\n })\n\n const upsertInput = transform({ collections, input }, (data) => ({\n alias: \"product_collection\",\n data: {\n id: data.collections[0]!.id,\n request_status: RequestStatus.PENDING,\n submitter_id: data.input.submitter_id,\n },\n }))\n\n upsertCustomFieldsStep(upsertInput)\n\n const collection = transform({ collections }, (data) => data.collections[0]!)\n\n return new WorkflowResponse(collection)\n }\n)\n","type": "registry:api"},{@@ -102,12 +102,12 @@},{"path": "requests/api/vendor/requests/product-collections/helpers.ts",- "content": "import { MedusaNextFunction, AuthenticatedMedusaRequest, MedusaResponse } from \"@medusajs/framework/http\"\nimport { MercurModules } from \"@mercurjs/types\"\nimport type { CustomFieldsModuleService } from \"@mercurjs/core-plugin/modules/custom-fields\"\n\nexport function applyRequestCustomFieldsFilter() {\n return async function (\n req: AuthenticatedMedusaRequest,\n _res: MedusaResponse,\n next: MedusaNextFunction\n ) {\n const customFieldsService = req.scope.resolve<CustomFieldsModuleService>(MercurModules.CUSTOM_FIELDS)\n\n const filters: Record<string, string | string[]> = {\n submitter_id: req.auth_context!.actor_id,\n }\n\n if (req.filterableFields.request_status) {\n filters.request_status = req.filterableFields.request_status as string | string[]\n delete req.filterableFields.request_status\n }\n\n const customFieldRows = await customFieldsService.list(\"product_collection\", filters, {})\n\n const entityIds = customFieldRows.map((row) => row[\"product_collection_id\"])\n\n req.filterableFields.id = entityIds\n\n return next()\n }\n}\n",+ "content": "import { MedusaNextFunction, AuthenticatedMedusaRequest, MedusaResponse } from \"@medusajs/framework/http\"\nimport { MercurModules } from \"@mercurjs/types\"\nimport type { CustomFieldsModuleService } from \"@mercurjs/core/modules/custom-fields\"\n\nexport function applyRequestCustomFieldsFilter() {\n return async function (\n req: AuthenticatedMedusaRequest,\n _res: MedusaResponse,\n next: MedusaNextFunction\n ) {\n const customFieldsService = req.scope.resolve<CustomFieldsModuleService>(MercurModules.CUSTOM_FIELDS)\n\n const filters: Record<string, string | string[]> = {\n submitter_id: req.auth_context!.actor_id,\n }\n\n if (req.filterableFields.request_status) {\n filters.request_status = req.filterableFields.request_status as string | string[]\n delete req.filterableFields.request_status\n }\n\n const customFieldRows = await customFieldsService.list(\"product_collection\", filters, {})\n\n const entityIds = customFieldRows.map((row) => row[\"product_collection_id\"])\n\n req.filterableFields.id = entityIds\n\n return next()\n }\n}\n","type": "registry:api"},{"path": "requests/workflows/requests/workflows/create-product-category-request.ts",- "content": "import { createWorkflow, transform, WorkflowResponse } from \"@medusajs/framework/workflows-sdk\"\nimport { createProductCategoriesWorkflow } from \"@medusajs/medusa/core-flows\"\nimport { upsertCustomFieldsStep } from \"@mercurjs/core-plugin/workflows\"\n\nimport { RequestStatus } from \"../../../types\"\n\ntype CreateProductCategoryRequestWorkflowInput = {\n product_category: {\n name: string\n handle?: string\n description?: string\n is_active?: boolean\n is_internal?: boolean\n parent_category_id?: string | null\n metadata?: Record<string, unknown>\n }\n submitter_id: string\n}\n\nexport const createProductCategoryRequestWorkflow = createWorkflow(\n \"create-product-category-request\",\n function (input: CreateProductCategoryRequestWorkflowInput) {\n const categories = createProductCategoriesWorkflow.runAsStep({\n input: {\n product_categories: [input.product_category],\n },\n })\n\n const upsertInput = transform({ categories, input }, (data) => ({\n alias: \"product_category\",\n data: {\n id: data.categories[0]!.id,\n request_status: RequestStatus.PENDING,\n submitter_id: data.input.submitter_id,\n },\n }))\n\n upsertCustomFieldsStep(upsertInput)\n\n const category = transform({ categories }, (data) => data.categories[0]!)\n\n return new WorkflowResponse(category)\n }\n)\n",+ "content": "import { createWorkflow, transform, WorkflowResponse } from \"@medusajs/framework/workflows-sdk\"\nimport { createProductCategoriesWorkflow } from \"@medusajs/medusa/core-flows\"\nimport { upsertCustomFieldsStep } from \"@mercurjs/core/workflows\"\n\nimport { RequestStatus } from \"../../../types\"\n\ntype CreateProductCategoryRequestWorkflowInput = {\n product_category: {\n name: string\n handle?: string\n description?: string\n is_active?: boolean\n is_internal?: boolean\n parent_category_id?: string | null\n metadata?: Record<string, unknown>\n }\n submitter_id: string\n}\n\nexport const createProductCategoryRequestWorkflow = createWorkflow(\n \"create-product-category-request\",\n function (input: CreateProductCategoryRequestWorkflowInput) {\n const categories = createProductCategoriesWorkflow.runAsStep({\n input: {\n product_categories: [input.product_category],\n },\n })\n\n const upsertInput = transform({ categories, input }, (data) => ({\n alias: \"product_category\",\n data: {\n id: data.categories[0]!.id,\n request_status: RequestStatus.PENDING,\n submitter_id: data.input.submitter_id,\n },\n }))\n\n upsertCustomFieldsStep(upsertInput)\n\n const category = transform({ categories }, (data) => data.categories[0]!)\n\n return new WorkflowResponse(category)\n }\n)\n","type": "registry:api"},{@@ -132,12 +132,12 @@},{"path": "requests/api/vendor/requests/product-categories/helpers.ts",- "content": "import { MedusaNextFunction, AuthenticatedMedusaRequest, MedusaResponse } from \"@medusajs/framework/http\"\nimport { MercurModules } from \"@mercurjs/types\"\nimport type { CustomFieldsModuleService } from \"@mercurjs/core-plugin/modules/custom-fields\"\n\nexport function applyRequestCustomFieldsFilter() {\n return async function (\n req: AuthenticatedMedusaRequest,\n _res: MedusaResponse,\n next: MedusaNextFunction\n ) {\n const customFieldsService = req.scope.resolve<CustomFieldsModuleService>(MercurModules.CUSTOM_FIELDS)\n\n const filters: Record<string, string | string[]> = {\n submitter_id: req.auth_context!.actor_id,\n }\n\n if (req.filterableFields.request_status) {\n filters.request_status = req.filterableFields.request_status as string | string[]\n delete req.filterableFields.request_status\n }\n\n const customFieldRows = await customFieldsService.list(\"product_category\", filters, {})\n\n const entityIds = customFieldRows.map((row) => row[\"product_category_id\"])\n\n req.filterableFields.id = entityIds\n\n return next()\n }\n}\n",+ "content": "import { MedusaNextFunction, AuthenticatedMedusaRequest, MedusaResponse } from \"@medusajs/framework/http\"\nimport { MercurModules } from \"@mercurjs/types\"\nimport type { CustomFieldsModuleService } from \"@mercurjs/core/modules/custom-fields\"\n\nexport function applyRequestCustomFieldsFilter() {\n return async function (\n req: AuthenticatedMedusaRequest,\n _res: MedusaResponse,\n next: MedusaNextFunction\n ) {\n const customFieldsService = req.scope.resolve<CustomFieldsModuleService>(MercurModules.CUSTOM_FIELDS)\n\n const filters: Record<string, string | string[]> = {\n submitter_id: req.auth_context!.actor_id,\n }\n\n if (req.filterableFields.request_status) {\n filters.request_status = req.filterableFields.request_status as string | string[]\n delete req.filterableFields.request_status\n }\n\n const customFieldRows = await customFieldsService.list(\"product_category\", filters, {})\n\n const entityIds = customFieldRows.map((row) => row[\"product_category_id\"])\n\n req.filterableFields.id = entityIds\n\n return next()\n }\n}\n","type": "registry:api"},{"path": "requests/workflows/requests/workflows/create-product-type-request.ts",- "content": "import { createWorkflow, transform, WorkflowResponse } from \"@medusajs/framework/workflows-sdk\"\nimport { createProductTypesWorkflow } from \"@medusajs/medusa/core-flows\"\nimport { upsertCustomFieldsStep } from \"@mercurjs/core-plugin/workflows\"\n\nimport { RequestStatus } from \"../../../types\"\n\ntype CreateProductTypeRequestWorkflowInput = {\n product_type: {\n value: string\n metadata?: Record<string, unknown>\n }\n submitter_id: string\n}\n\nexport const createProductTypeRequestWorkflow = createWorkflow(\n \"create-product-type-request\",\n function (input: CreateProductTypeRequestWorkflowInput) {\n const productTypes = createProductTypesWorkflow.runAsStep({\n input: {\n product_types: [input.product_type],\n },\n })\n\n const upsertInput = transform({ productTypes, input }, (data) => ({\n alias: \"product_type\",\n data: {\n id: data.productTypes[0]!.id,\n request_status: RequestStatus.PENDING,\n submitter_id: data.input.submitter_id,\n },\n }))\n\n upsertCustomFieldsStep(upsertInput)\n\n const productType = transform({ productTypes }, (data) => data.productTypes[0]!)\n\n return new WorkflowResponse(productType)\n }\n)\n",+ "content": "import { createWorkflow, transform, WorkflowResponse } from \"@medusajs/framework/workflows-sdk\"\nimport { createProductTypesWorkflow } from \"@medusajs/medusa/core-flows\"\nimport { upsertCustomFieldsStep } from \"@mercurjs/core/workflows\"\n\nimport { RequestStatus } from \"../../../types\"\n\ntype CreateProductTypeRequestWorkflowInput = {\n product_type: {\n value: string\n metadata?: Record<string, unknown>\n }\n submitter_id: string\n}\n\nexport const createProductTypeRequestWorkflow = createWorkflow(\n \"create-product-type-request\",\n function (input: CreateProductTypeRequestWorkflowInput) {\n const productTypes = createProductTypesWorkflow.runAsStep({\n input: {\n product_types: [input.product_type],\n },\n })\n\n const upsertInput = transform({ productTypes, input }, (data) => ({\n alias: \"product_type\",\n data: {\n id: data.productTypes[0]!.id,\n request_status: RequestStatus.PENDING,\n submitter_id: data.input.submitter_id,\n },\n }))\n\n upsertCustomFieldsStep(upsertInput)\n\n const productType = transform({ productTypes }, (data) => data.productTypes[0]!)\n\n return new WorkflowResponse(productType)\n }\n)\n","type": "registry:api"},{@@ -162,12 +162,12 @@},{"path": "requests/api/vendor/requests/product-types/helpers.ts",- "content": "import { MedusaNextFunction, AuthenticatedMedusaRequest, MedusaResponse } from \"@medusajs/framework/http\"\nimport { MercurModules } from \"@mercurjs/types\"\nimport type { CustomFieldsModuleService } from \"@mercurjs/core-plugin/modules/custom-fields\"\n\nexport function applyRequestCustomFieldsFilter() {\n return async function (\n req: AuthenticatedMedusaRequest,\n _res: MedusaResponse,\n next: MedusaNextFunction\n ) {\n const customFieldsService = req.scope.resolve<CustomFieldsModuleService>(MercurModules.CUSTOM_FIELDS)\n\n const filters: Record<string, string | string[]> = {\n submitter_id: req.auth_context!.actor_id,\n }\n\n if (req.filterableFields.request_status) {\n filters.request_status = req.filterableFields.request_status as string | string[]\n delete req.filterableFields.request_status\n }\n\n const customFieldRows = await customFieldsService.list(\"product_type\", filters, {})\n\n const entityIds = customFieldRows.map((row) => row[\"product_type_id\"])\n\n req.filterableFields.id = entityIds\n\n return next()\n }\n}\n",+ "content": "import { MedusaNextFunction, AuthenticatedMedusaRequest, MedusaResponse } from \"@medusajs/framework/http\"\nimport { MercurModules } from \"@mercurjs/types\"\nimport type { CustomFieldsModuleService } from \"@mercurjs/core/modules/custom-fields\"\n\nexport function applyRequestCustomFieldsFilter() {\n return async function (\n req: AuthenticatedMedusaRequest,\n _res: MedusaResponse,\n next: MedusaNextFunction\n ) {\n const customFieldsService = req.scope.resolve<CustomFieldsModuleService>(MercurModules.CUSTOM_FIELDS)\n\n const filters: Record<string, string | string[]> = {\n submitter_id: req.auth_context!.actor_id,\n }\n\n if (req.filterableFields.request_status) {\n filters.request_status = req.filterableFields.request_status as string | string[]\n delete req.filterableFields.request_status\n }\n\n const customFieldRows = await customFieldsService.list(\"product_type\", filters, {})\n\n const entityIds = customFieldRows.map((row) => row[\"product_type_id\"])\n\n req.filterableFields.id = entityIds\n\n return next()\n }\n}\n","type": "registry:api"},{"path": "requests/workflows/requests/workflows/create-product-tag-request.ts",- "content": "import { createWorkflow, transform, WorkflowResponse } from \"@medusajs/framework/workflows-sdk\"\nimport { createProductTagsWorkflow } from \"@medusajs/medusa/core-flows\"\nimport { upsertCustomFieldsStep } from \"@mercurjs/core-plugin/workflows\"\n\nimport { RequestStatus } from \"../../../types\"\n\ntype CreateProductTagRequestWorkflowInput = {\n product_tag: {\n value: string\n metadata?: Record<string, unknown>\n }\n submitter_id: string\n}\n\nexport const createProductTagRequestWorkflow = createWorkflow(\n \"create-product-tag-request\",\n function (input: CreateProductTagRequestWorkflowInput) {\n const productTags = createProductTagsWorkflow.runAsStep({\n input: {\n product_tags: [input.product_tag],\n },\n })\n\n const upsertInput = transform({ productTags, input }, (data) => ({\n alias: \"product_tag\",\n data: {\n id: data.productTags[0]!.id,\n request_status: RequestStatus.PENDING,\n submitter_id: data.input.submitter_id,\n },\n }))\n\n upsertCustomFieldsStep(upsertInput)\n\n const productTag = transform({ productTags }, (data) => data.productTags[0]!)\n\n return new WorkflowResponse(productTag)\n }\n)\n",+ "content": "import { createWorkflow, transform, WorkflowResponse } from \"@medusajs/framework/workflows-sdk\"\nimport { createProductTagsWorkflow } from \"@medusajs/medusa/core-flows\"\nimport { upsertCustomFieldsStep } from \"@mercurjs/core/workflows\"\n\nimport { RequestStatus } from \"../../../types\"\n\ntype CreateProductTagRequestWorkflowInput = {\n product_tag: {\n value: string\n metadata?: Record<string, unknown>\n }\n submitter_id: string\n}\n\nexport const createProductTagRequestWorkflow = createWorkflow(\n \"create-product-tag-request\",\n function (input: CreateProductTagRequestWorkflowInput) {\n const productTags = createProductTagsWorkflow.runAsStep({\n input: {\n product_tags: [input.product_tag],\n },\n })\n\n const upsertInput = transform({ productTags, input }, (data) => ({\n alias: \"product_tag\",\n data: {\n id: data.productTags[0]!.id,\n request_status: RequestStatus.PENDING,\n submitter_id: data.input.submitter_id,\n },\n }))\n\n upsertCustomFieldsStep(upsertInput)\n\n const productTag = transform({ productTags }, (data) => data.productTags[0]!)\n\n return new WorkflowResponse(productTag)\n }\n)\n","type": "registry:api"},{@@ -192,12 +192,12 @@},{"path": "requests/api/vendor/requests/product-tags/helpers.ts",- "content": "import { MedusaNextFunction, AuthenticatedMedusaRequest, MedusaResponse } from \"@medusajs/framework/http\"\nimport { MercurModules } from \"@mercurjs/types\"\nimport type { CustomFieldsModuleService } from \"@mercurjs/core-plugin/modules/custom-fields\"\n\nexport function applyRequestCustomFieldsFilter() {\n return async function (\n req: AuthenticatedMedusaRequest,\n _res: MedusaResponse,\n next: MedusaNextFunction\n ) {\n const customFieldsService = req.scope.resolve<CustomFieldsModuleService>(MercurModules.CUSTOM_FIELDS)\n\n const filters: Record<string, string | string[]> = {\n submitter_id: req.auth_context!.actor_id,\n }\n\n if (req.filterableFields.request_status) {\n filters.request_status = req.filterableFields.request_status as string | string[]\n delete req.filterableFields.request_status\n }\n\n const customFieldRows = await customFieldsService.list(\"product_tag\", filters, {})\n\n const entityIds = customFieldRows.map((row) => row[\"product_tag_id\"])\n\n req.filterableFields.id = entityIds\n\n return next()\n }\n}\n",+ "content": "import { MedusaNextFunction, AuthenticatedMedusaRequest, MedusaResponse } from \"@medusajs/framework/http\"\nimport { MercurModules } from \"@mercurjs/types\"\nimport type { CustomFieldsModuleService } from \"@mercurjs/core/modules/custom-fields\"\n\nexport function applyRequestCustomFieldsFilter() {\n return async function (\n req: AuthenticatedMedusaRequest,\n _res: MedusaResponse,\n next: MedusaNextFunction\n ) {\n const customFieldsService = req.scope.resolve<CustomFieldsModuleService>(MercurModules.CUSTOM_FIELDS)\n\n const filters: Record<string, string | string[]> = {\n submitter_id: req.auth_context!.actor_id,\n }\n\n if (req.filterableFields.request_status) {\n filters.request_status = req.filterableFields.request_status as string | string[]\n delete req.filterableFields.request_status\n }\n\n const customFieldRows = await customFieldsService.list(\"product_tag\", filters, {})\n\n const entityIds = customFieldRows.map((row) => row[\"product_tag_id\"])\n\n req.filterableFields.id = entityIds\n\n return next()\n }\n}\n","type": "registry:api"},{"path": "requests/api/store/requests/helpers.ts",- "content": "import { MedusaNextFunction, MedusaRequest, MedusaResponse } from \"@medusajs/framework/http\"\nimport { MercurModules } from \"@mercurjs/types\"\nimport type { CustomFieldsModuleService } from \"@mercurjs/core-plugin/modules/custom-fields\"\n\nexport function excludePendingRequestEntities(alias: string) {\n return async function (\n req: MedusaRequest,\n _res: MedusaResponse,\n next: MedusaNextFunction\n ) {\n const customFieldsService = req.scope.resolve<CustomFieldsModuleService>(MercurModules.CUSTOM_FIELDS)\n\n const pendingRows = await customFieldsService.list(alias, {\n request_status: 'pending',\n }, {})\n\n const pendingIds = pendingRows.map((row: Record<string, string>) => row[`${alias}_id`])\n\n if (pendingIds.length > 0) {\n const existingIdFilter = req.filterableFields.id\n\n if (existingIdFilter) {\n // If there's already an id filter, intersect with non-pending\n const existingIds = Array.isArray(existingIdFilter)\n ? existingIdFilter\n : [existingIdFilter]\n\n req.filterableFields.id = existingIds.filter(\n (id) => !pendingIds.includes(id as string)\n )\n } else {\n req.filterableFields.id = { $nin: pendingIds }\n }\n }\n\n return next()\n }\n}\n",+ "content": "import { MedusaNextFunction, MedusaRequest, MedusaResponse } from \"@medusajs/framework/http\"\nimport { MercurModules } from \"@mercurjs/types\"\nimport type { CustomFieldsModuleService } from \"@mercurjs/core/modules/custom-fields\"\n\nexport function excludePendingRequestEntities(alias: string) {\n return async function (\n req: MedusaRequest,\n _res: MedusaResponse,\n next: MedusaNextFunction\n ) {\n const customFieldsService = req.scope.resolve<CustomFieldsModuleService>(MercurModules.CUSTOM_FIELDS)\n\n const pendingRows = await customFieldsService.list(alias, {\n request_status: 'pending',\n }, {})\n\n const pendingIds = pendingRows.map((row: Record<string, string>) => row[`${alias}_id`])\n\n if (pendingIds.length > 0) {\n const existingIdFilter = req.filterableFields.id\n\n if (existingIdFilter) {\n // If there's already an id filter, intersect with non-pending\n const existingIds = Array.isArray(existingIdFilter)\n ? existingIdFilter\n : [existingIdFilter]\n\n req.filterableFields.id = existingIds.filter(\n (id) => !pendingIds.includes(id as string)\n )\n } else {\n req.filterableFields.id = { $nin: pendingIds }\n }\n }\n\n return next()\n }\n}\n","type": "registry:api"},{@@ -207,7 +207,7 @@},{"path": "requests/workflows/hooks/seller-created.ts",- "content": "import { createSellerWorkflow } from \"@mercurjs/core-plugin/workflows\"\nimport { StepResponse } from \"@medusajs/framework/workflows-sdk\"\nimport { MedusaError } from \"@medusajs/framework/utils\"\nimport { SellerStatus } from \"@mercurjs/types\"\n\ncreateSellerWorkflow.hooks.validateSellerInput(\n async ({ input }) => {\n if (input.seller.status === SellerStatus.ACTIVE) {\n throw new MedusaError(\n MedusaError.Types.INVALID_DATA,\n `Seller cannot be created with status \"active\". Use \"pending\" status and submit for review.`\n )\n }\n\n return new StepResponse(undefined)\n }\n)\n",+ "content": "import { createSellerWorkflow } from \"@mercurjs/core/workflows\"\nimport { StepResponse } from \"@medusajs/framework/workflows-sdk\"\nimport { MedusaError } from \"@medusajs/framework/utils\"\nimport { SellerStatus } from \"@mercurjs/types\"\n\ncreateSellerWorkflow.hooks.validateSellerInput(\n async ({ input }) => {\n if (input.seller.status === SellerStatus.ACTIVE) {\n throw new MedusaError(\n MedusaError.Types.INVALID_DATA,\n `Seller cannot be created with status \"active\". Use \"pending\" status and submit for review.`\n )\n }\n\n return new StepResponse(undefined)\n }\n)\n","type": "registry:api"},{diff --git a/packages/registry/r/reviews.json b/packages/registry/r/reviews.jsonindex 4d89949fc..81a37af7a 100644--- a/packages/registry/r/reviews.json+++ b/packages/registry/r/reviews.json@@ -56,7 +56,7 @@},{"path": "reviews/links/seller-review.ts",- "content": "import { defineLink } from \"@medusajs/framework/utils\";\n\nimport ReviewModule from \"../modules/reviews\";\nimport SellerModule from \"@mercurjs/core-plugin/modules/seller\";\n\nexport default defineLink(SellerModule.linkable.seller, {\n linkable: ReviewModule.linkable.review,\n isList: true,\n});\n",+ "content": "import { defineLink } from \"@medusajs/framework/utils\";\n\nimport ReviewModule from \"../modules/reviews\";\nimport SellerModule from \"@mercurjs/core/modules/seller\";\n\nexport default defineLink(SellerModule.linkable.seller, {\n linkable: ReviewModule.linkable.review,\n isList: true,\n});\n","type": "registry:api"},{diff --git a/packages/registry/registry.json b/packages/registry/registry.jsonindex ffcd12086..b417ff870 100644--- a/packages/registry/registry.json+++ b/packages/registry/registry.json@@ -518,7 +518,7 @@"description": "Admin approval system powered by the Custom Fields module. Admins can list, review, accept or reject entity requests.","dependencies": [],"registryDependencies": [],- "docs": "## Prerequisites\n\nThis block requires the **Custom Fields module** (`@mercurjs/core-plugin/modules/custom-fields`). Make sure it is registered in your `medusa-config.ts`.\n\n## Configuration\n\nAdd request-related custom fields to the entities you want to support approval workflows for. Product already has a built-in `status` field, so you only need to configure custom fields for other entities.\n\nAdd these fields to your Custom Fields module options in `medusa-config.ts`:\n\n```ts\n{\n resolve: \"@mercurjs/core-plugin/modules/custom-fields\",\n options: {\n customFields: {\n ProductCollection: {\n request_status: {\n type: \"enum\",\n enum: [\"draft\", \"pending\", \"accepted\", \"rejected\"],\n defaultValue: \"draft\",\n },\n submitter_id: { type: \"string\", nullable: true },\n reviewer_id: { type: \"string\", nullable: true },\n reviewer_note: { type: \"text\", nullable: true },\n },\n // Add the same fields to other entities as needed:\n // ProductCategory, ProductType, ProductTag\n },\n },\n}\n```\n\n## Middlewares\n\nAdd the request middlewares to your `api/middlewares.ts`:\n\n```ts\nimport { defineMiddlewares } from \"@medusajs/medusa\";\nimport { adminRequestsMiddlewares } from \"./admin/requests/middlewares\";\nimport { vendorProductCollectionRequestsMiddlewares } from \"./vendor/requests/product-collections/middlewares\";\nimport { vendorProductCategoryRequestsMiddlewares } from \"./vendor/requests/product-categories/middlewares\";\nimport { vendorProductTypeRequestsMiddlewares } from \"./vendor/requests/product-types/middlewares\";\nimport { vendorProductTagRequestsMiddlewares } from \"./vendor/requests/product-tags/middlewares\";\n\nexport default defineMiddlewares({\n routes: [\n ...adminRequestsMiddlewares,\n ...vendorProductCollectionRequestsMiddlewares,\n ...vendorProductCategoryRequestsMiddlewares,\n ...vendorProductTypeRequestsMiddlewares,\n ...vendorProductTagRequestsMiddlewares,\n ],\n});\n```\n\nIf you already have a `middlewares.ts` file, merge the middleware imports and spread them into your existing `routes` array.\n\n## Database Migrations\n\nAfter updating the custom fields configuration, run migrations:\n\n```bash\nnpx medusa db:migrate\n```\n\n## Run codegen\n\nAfter installing the block, regenerate SDK types:\n\n```bash\nnpx @mercurjs/cli@latest codegen\n```\n\n## API Endpoints\n\n### Admin\n\n- `GET /admin/requests/:type` \u2014 List entities with request custom fields (filterable by `request_status`, `submitter_id`)\n- `GET /admin/requests/:type/:id` \u2014 Retrieve entity with request custom fields\n- `POST /admin/requests/:type/:id/accept` \u2014 Accept a request\n- `POST /admin/requests/:type/:id/reject` \u2014 Reject a request\n\nSupported `:type` values: `product_collection`, `product_category`, `product_type`, `product_tag`\n\n### Vendor\n\n- `GET /vendor/requests/product-collections` \u2014 List vendor's collection requests\n- `POST /vendor/requests/product-collections` \u2014 Create a collection request\n- `GET /vendor/requests/product-categories` \u2014 List vendor's category requests\n- `POST /vendor/requests/product-categories` \u2014 Create a category request\n- `GET /vendor/requests/product-types` \u2014 List vendor's type requests\n- `POST /vendor/requests/product-types` \u2014 Create a type request\n- `GET /vendor/requests/product-tags` \u2014 List vendor's tag requests\n- `POST /vendor/requests/product-tags` \u2014 Create a tag request",+ "docs": "## Prerequisites\n\nThis block requires the **Custom Fields module** (`@mercurjs/core/modules/custom-fields`). Make sure it is registered in your `medusa-config.ts`.\n\n## Configuration\n\nAdd request-related custom fields to the entities you want to support approval workflows for. Product already has a built-in `status` field, so you only need to configure custom fields for other entities.\n\nAdd these fields to your Custom Fields module options in `medusa-config.ts`:\n\n```ts\n{\n resolve: \"@mercurjs/core/modules/custom-fields\",\n options: {\n customFields: {\n ProductCollection: {\n request_status: {\n type: \"enum\",\n enum: [\"draft\", \"pending\", \"accepted\", \"rejected\"],\n defaultValue: \"draft\",\n },\n submitter_id: { type: \"string\", nullable: true },\n reviewer_id: { type: \"string\", nullable: true },\n reviewer_note: { type: \"text\", nullable: true },\n },\n // Add the same fields to other entities as needed:\n // ProductCategory, ProductType, ProductTag\n },\n },\n}\n```\n\n## Middlewares\n\nAdd the request middlewares to your `api/middlewares.ts`:\n\n```ts\nimport { defineMiddlewares } from \"@medusajs/medusa\";\nimport { adminRequestsMiddlewares } from \"./admin/requests/middlewares\";\nimport { vendorProductCollectionRequestsMiddlewares } from \"./vendor/requests/product-collections/middlewares\";\nimport { vendorProductCategoryRequestsMiddlewares } from \"./vendor/requests/product-categories/middlewares\";\nimport { vendorProductTypeRequestsMiddlewares } from \"./vendor/requests/product-types/middlewares\";\nimport { vendorProductTagRequestsMiddlewares } from \"./vendor/requests/product-tags/middlewares\";\n\nexport default defineMiddlewares({\n routes: [\n ...adminRequestsMiddlewares,\n ...vendorProductCollectionRequestsMiddlewares,\n ...vendorProductCategoryRequestsMiddlewares,\n ...vendorProductTypeRequestsMiddlewares,\n ...vendorProductTagRequestsMiddlewares,\n ],\n});\n```\n\nIf you already have a `middlewares.ts` file, merge the middleware imports and spread them into your existing `routes` array.\n\n## Database Migrations\n\nAfter updating the custom fields configuration, run migrations:\n\n```bash\nnpx medusa db:migrate\n```\n\n## Run codegen\n\nAfter installing the block, regenerate SDK types:\n\n```bash\nnpx @mercurjs/cli@latest codegen\n```\n\n## API Endpoints\n\n### Admin\n\n- `GET /admin/requests/:type` \u2014 List entities with request custom fields (filterable by `request_status`, `submitter_id`)\n- `GET /admin/requests/:type/:id` \u2014 Retrieve entity with request custom fields\n- `POST /admin/requests/:type/:id/accept` \u2014 Accept a request\n- `POST /admin/requests/:type/:id/reject` \u2014 Reject a request\n\nSupported `:type` values: `product_collection`, `product_category`, `product_type`, `product_tag`\n\n### Vendor\n\n- `GET /vendor/requests/product-collections` \u2014 List vendor's collection requests\n- `POST /vendor/requests/product-collections` \u2014 Create a collection request\n- `GET /vendor/requests/product-categories` \u2014 List vendor's category requests\n- `POST /vendor/requests/product-categories` \u2014 Create a category request\n- `GET /vendor/requests/product-types` \u2014 List vendor's type requests\n- `POST /vendor/requests/product-types` \u2014 Create a type request\n- `GET /vendor/requests/product-tags` \u2014 List vendor's tag requests\n- `POST /vendor/requests/product-tags` \u2014 Create a tag request","files": [{"path": "requests/types/index.ts",diff --git a/packages/registry/src/algolia/subscribers/algolia-fulfillment-set-changed.ts b/packages/registry/src/algolia/subscribers/algolia-fulfillment-set-changed.tsindex 60a656c31..ee3170d03 100644--- a/packages/registry/src/algolia/subscribers/algolia-fulfillment-set-changed.ts+++ b/packages/registry/src/algolia/subscribers/algolia-fulfillment-set-changed.ts@@ -2,8 +2,8 @@ import { SubscriberArgs, SubscriberConfig } from '@medusajs/framework'import { ContainerRegistrationKeys, Modules } from '@medusajs/framework/utils'import { AlgoliaEvents, IntermediateEvents } from '../modules/algolia/types'-import sellerFulfillmentSet from '@mercurjs/core-plugin/links/fulfillment-set-seller-link'-import productSellerLink from '@mercurjs/core-plugin/links/product-seller-link'+import sellerFulfillmentSet from '@mercurjs/core/links/fulfillment-set-seller-link'+import productSellerLink from '@mercurjs/core/links/product-seller-link'export default async function fulfillmentSetChangedHandler({event,diff --git a/packages/registry/src/algolia/subscribers/algolia-service-zone-changed.ts b/packages/registry/src/algolia/subscribers/algolia-service-zone-changed.tsindex 91af8e9dd..b31b31ccb 100644--- a/packages/registry/src/algolia/subscribers/algolia-service-zone-changed.ts+++ b/packages/registry/src/algolia/subscribers/algolia-service-zone-changed.ts@@ -2,8 +2,8 @@ import { SubscriberArgs, SubscriberConfig } from '@medusajs/framework'import { ContainerRegistrationKeys, Modules } from '@medusajs/framework/utils'import { AlgoliaEvents, IntermediateEvents } from '../modules/algolia/types'-import productSellerLink from '@mercurjs/core-plugin/links/product-seller-link'-import sellerServiceZone from '@mercurjs/core-plugin/links/service-zone-seller-link'+import productSellerLink from '@mercurjs/core/links/product-seller-link'+import sellerServiceZone from '@mercurjs/core/links/service-zone-seller-link'export default async function serviceZoneChangedHandler({event,diff --git a/packages/registry/src/algolia/subscribers/algolia-shipping-option-changed.ts b/packages/registry/src/algolia/subscribers/algolia-shipping-option-changed.tsindex c5ec4782c..724f90e67 100644--- a/packages/registry/src/algolia/subscribers/algolia-shipping-option-changed.ts+++ b/packages/registry/src/algolia/subscribers/algolia-shipping-option-changed.ts@@ -2,8 +2,8 @@ import { SubscriberArgs, SubscriberConfig } from '@medusajs/framework'import { ContainerRegistrationKeys, Modules } from '@medusajs/framework/utils'import { AlgoliaEvents, IntermediateEvents } from '../modules/algolia/types'-import productSellerLink from '@mercurjs/core-plugin/links/product-seller-link'-import shippingOptionSellerLink from '@mercurjs/core-plugin/links/shipping-option-seller-link'+import productSellerLink from '@mercurjs/core/links/product-seller-link'+import shippingOptionSellerLink from '@mercurjs/core/links/shipping-option-seller-link'export default async function shippingOptionChangedHandler({event,diff --git a/packages/registry/src/algolia/subscribers/algolia-stock-location-changed.ts b/packages/registry/src/algolia/subscribers/algolia-stock-location-changed.tsindex 28acab67f..c616dacd7 100644--- a/packages/registry/src/algolia/subscribers/algolia-stock-location-changed.ts+++ b/packages/registry/src/algolia/subscribers/algolia-stock-location-changed.ts@@ -2,8 +2,8 @@ import { SubscriberArgs, SubscriberConfig } from '@medusajs/framework'import { ContainerRegistrationKeys, Modules } from '@medusajs/framework/utils'import { AlgoliaEvents, IntermediateEvents } from '../modules/algolia/types'-import productSellerLink from '@mercurjs/core-plugin/links/product-seller-link'-import stockLocationSellerLink from '@mercurjs/core-plugin/links/stock-location-seller-link'+import productSellerLink from '@mercurjs/core/links/product-seller-link'+import stockLocationSellerLink from '@mercurjs/core/links/stock-location-seller-link'export default async function stockLocationChangedHandler({event,diff --git a/packages/registry/src/requests/api/store/requests/helpers.ts b/packages/registry/src/requests/api/store/requests/helpers.tsindex 46363933f..f0106e8cd 100644--- a/packages/registry/src/requests/api/store/requests/helpers.ts+++ b/packages/registry/src/requests/api/store/requests/helpers.ts@@ -1,6 +1,6 @@import { MedusaNextFunction, MedusaRequest, MedusaResponse } from "@medusajs/framework/http"import { MercurModules } from "@mercurjs/types"-import type { CustomFieldsModuleService } from "@mercurjs/core-plugin/modules/custom-fields"+import type { CustomFieldsModuleService } from "@mercurjs/core/modules/custom-fields"export function excludePendingRequestEntities(alias: string) {return async function (diff --git a/packages/registry/src/requests/api/vendor/requests/product-categories/helpers.ts b/packages/registry/src/requests/api/vendor/requests/product-categories/helpers.tsindex 229189487..ede6a6075 100644--- a/packages/registry/src/requests/api/vendor/requests/product-categories/helpers.ts+++ b/packages/registry/src/requests/api/vendor/requests/product-categories/helpers.ts@@ -1,6 +1,6 @@import { MedusaNextFunction, AuthenticatedMedusaRequest, MedusaResponse } from "@medusajs/framework/http"import { MercurModules } from "@mercurjs/types"-import type { CustomFieldsModuleService } from "@mercurjs/core-plugin/modules/custom-fields"+import type { CustomFieldsModuleService } from "@mercurjs/core/modules/custom-fields"export function applyRequestCustomFieldsFilter() {return async function (diff --git a/packages/registry/src/requests/api/vendor/requests/product-collections/helpers.ts b/packages/registry/src/requests/api/vendor/requests/product-collections/helpers.tsindex e523f97e3..cc7be5fbd 100644--- a/packages/registry/src/requests/api/vendor/requests/product-collections/helpers.ts+++ b/packages/registry/src/requests/api/vendor/requests/product-collections/helpers.ts@@ -1,6 +1,6 @@import { MedusaNextFunction, AuthenticatedMedusaRequest, MedusaResponse } from "@medusajs/framework/http"import { MercurModules } from "@mercurjs/types"-import type { CustomFieldsModuleService } from "@mercurjs/core-plugin/modules/custom-fields"+import type { CustomFieldsModuleService } from "@mercurjs/core/modules/custom-fields"export function applyRequestCustomFieldsFilter() {return async function (diff --git a/packages/registry/src/requests/api/vendor/requests/product-tags/helpers.ts b/packages/registry/src/requests/api/vendor/requests/product-tags/helpers.tsindex aa5f8fa4e..f71b137db 100644--- a/packages/registry/src/requests/api/vendor/requests/product-tags/helpers.ts+++ b/packages/registry/src/requests/api/vendor/requests/product-tags/helpers.ts@@ -1,6 +1,6 @@import { MedusaNextFunction, AuthenticatedMedusaRequest, MedusaResponse } from "@medusajs/framework/http"import { MercurModules } from "@mercurjs/types"-import type { CustomFieldsModuleService } from "@mercurjs/core-plugin/modules/custom-fields"+import type { CustomFieldsModuleService } from "@mercurjs/core/modules/custom-fields"export function applyRequestCustomFieldsFilter() {return async function (diff --git a/packages/registry/src/requests/api/vendor/requests/product-types/helpers.ts b/packages/registry/src/requests/api/vendor/requests/product-types/helpers.tsindex 498fb3f5f..7fbf7338b 100644--- a/packages/registry/src/requests/api/vendor/requests/product-types/helpers.ts+++ b/packages/registry/src/requests/api/vendor/requests/product-types/helpers.ts@@ -1,6 +1,6 @@import { MedusaNextFunction, AuthenticatedMedusaRequest, MedusaResponse } from "@medusajs/framework/http"import { MercurModules } from "@mercurjs/types"-import type { CustomFieldsModuleService } from "@mercurjs/core-plugin/modules/custom-fields"+import type { CustomFieldsModuleService } from "@mercurjs/core/modules/custom-fields"export function applyRequestCustomFieldsFilter() {return async function (diff --git a/packages/registry/src/requests/workflows/hooks/seller-created.ts b/packages/registry/src/requests/workflows/hooks/seller-created.tsindex 3e75f17d9..0a63aa699 100644--- a/packages/registry/src/requests/workflows/hooks/seller-created.ts+++ b/packages/registry/src/requests/workflows/hooks/seller-created.ts@@ -1,4 +1,4 @@-import { createSellerWorkflow } from "@mercurjs/core-plugin/workflows"+import { createSellerWorkflow } from "@mercurjs/core/workflows"import { StepResponse } from "@medusajs/framework/workflows-sdk"import { MedusaError } from "@medusajs/framework/utils"import { SellerStatus } from "@mercurjs/types"diff --git a/packages/registry/src/requests/workflows/requests/workflows/accept-request.ts b/packages/registry/src/requests/workflows/requests/workflows/accept-request.tsindex 7467a1790..97909e709 100644--- a/packages/registry/src/requests/workflows/requests/workflows/accept-request.ts+++ b/packages/registry/src/requests/workflows/requests/workflows/accept-request.ts@@ -1,5 +1,5 @@import { createWorkflow, WorkflowResponse } from "@medusajs/framework/workflows-sdk"-import { upsertCustomFieldsStep } from "@mercurjs/core-plugin/workflows"+import { upsertCustomFieldsStep } from "@mercurjs/core/workflows"import { RequestStatus } from "../../../types"import { validateRequestStatusStep } from "../steps"diff --git a/packages/registry/src/requests/workflows/requests/workflows/create-product-category-request.ts b/packages/registry/src/requests/workflows/requests/workflows/create-product-category-request.tsindex 0a8ec8e52..2773c41e1 100644--- a/packages/registry/src/requests/workflows/requests/workflows/create-product-category-request.ts+++ b/packages/registry/src/requests/workflows/requests/workflows/create-product-category-request.ts@@ -1,6 +1,6 @@import { createWorkflow, transform, WorkflowResponse } from "@medusajs/framework/workflows-sdk"import { createProductCategoriesWorkflow } from "@medusajs/medusa/core-flows"-import { upsertCustomFieldsStep } from "@mercurjs/core-plugin/workflows"+import { upsertCustomFieldsStep } from "@mercurjs/core/workflows"import { RequestStatus } from "../../../types"diff --git a/packages/registry/src/requests/workflows/requests/workflows/create-product-collection-request.ts b/packages/registry/src/requests/workflows/requests/workflows/create-product-collection-request.tsindex e0671a03a..83d8e1404 100644--- a/packages/registry/src/requests/workflows/requests/workflows/create-product-collection-request.ts+++ b/packages/registry/src/requests/workflows/requests/workflows/create-product-collection-request.ts@@ -1,6 +1,6 @@import { createWorkflow, transform, WorkflowResponse } from "@medusajs/framework/workflows-sdk"import { createCollectionsWorkflow } from "@medusajs/medusa/core-flows"-import { upsertCustomFieldsStep } from "@mercurjs/core-plugin/workflows"+import { upsertCustomFieldsStep } from "@mercurjs/core/workflows"import { RequestStatus } from "../../../types"diff --git a/packages/registry/src/requests/workflows/requests/workflows/create-product-tag-request.ts b/packages/registry/src/requests/workflows/requests/workflows/create-product-tag-request.tsindex b1cec9519..0d1450ccd 100644--- a/packages/registry/src/requests/workflows/requests/workflows/create-product-tag-request.ts+++ b/packages/registry/src/requests/workflows/requests/workflows/create-product-tag-request.ts@@ -1,6 +1,6 @@import { createWorkflow, transform, WorkflowResponse } from "@medusajs/framework/workflows-sdk"import { createProductTagsWorkflow } from "@medusajs/medusa/core-flows"-import { upsertCustomFieldsStep } from "@mercurjs/core-plugin/workflows"+import { upsertCustomFieldsStep } from "@mercurjs/core/workflows"import { RequestStatus } from "../../../types"diff --git a/packages/registry/src/requests/workflows/requests/workflows/create-product-type-request.ts b/packages/registry/src/requests/workflows/requests/workflows/create-product-type-request.tsindex ecdc4a5bb..a9a02710b 100644--- a/packages/registry/src/requests/workflows/requests/workflows/create-product-type-request.ts+++ b/packages/registry/src/requests/workflows/requests/workflows/create-product-type-request.ts@@ -1,6 +1,6 @@import { createWorkflow, transform, WorkflowResponse } from "@medusajs/framework/workflows-sdk"import { createProductTypesWorkflow } from "@medusajs/medusa/core-flows"-import { upsertCustomFieldsStep } from "@mercurjs/core-plugin/workflows"+import { upsertCustomFieldsStep } from "@mercurjs/core/workflows"import { RequestStatus } from "../../../types"diff --git a/packages/registry/src/requests/workflows/requests/workflows/reject-request.ts b/packages/registry/src/requests/workflows/requests/workflows/reject-request.tsindex 726f9d0c8..9b9fd3744 100644--- a/packages/registry/src/requests/workflows/requests/workflows/reject-request.ts+++ b/packages/registry/src/requests/workflows/requests/workflows/reject-request.ts@@ -1,5 +1,5 @@import { createWorkflow, WorkflowResponse } from "@medusajs/framework/workflows-sdk"-import { upsertCustomFieldsStep } from "@mercurjs/core-plugin/workflows"+import { upsertCustomFieldsStep } from "@mercurjs/core/workflows"import { RequestStatus } from "../../../types"import { validateRequestStatusStep } from "../steps"diff --git a/packages/registry/src/reviews/links/seller-review.ts b/packages/registry/src/reviews/links/seller-review.tsindex e8cc1fd20..7460753d9 100644--- a/packages/registry/src/reviews/links/seller-review.ts+++ b/packages/registry/src/reviews/links/seller-review.ts@@ -1,7 +1,7 @@import { defineLink } from "@medusajs/framework/utils";import ReviewModule from "../modules/reviews";-import SellerModule from "@mercurjs/core-plugin/modules/seller";+import SellerModule from "@mercurjs/core/modules/seller";export default defineLink(SellerModule.linkable.seller, {linkable: ReviewModule.linkable.review,diff --git a/packages/vendor/.mercur/_generated/index.ts b/packages/vendor/.mercur/_generated/index.tsindex 8cbaf5f08..19b0c505c 100644--- a/packages/vendor/.mercur/_generated/index.ts+++ b/packages/vendor/.mercur/_generated/index.ts@@ -142,7 +142,7 @@ export type Routes = {$id: typeof import("@medusajs/medusa/api/admin/invites/[id]/route") & {resend: typeof import("@medusajs/medusa/api/admin/invites/[id]/resend/route");};- accept: typeof import("@mercurjs/core-plugin/api/admin/invites/accept/route");+ accept: typeof import("@mercurjs/core/api/admin/invites/accept/route");};locales: typeof import("@medusajs/medusa/api/admin/locales/route") & {$code: typeof import("@medusajs/medusa/api/admin/locales/[code]/route");@@ -168,7 +168,7 @@ export type Routes = {};};};- orders: typeof import("@mercurjs/core-plugin/api/admin/orders/route") & {+ orders: typeof import("@mercurjs/core/api/admin/orders/route") & {$id: typeof import("@medusajs/medusa/api/admin/orders/[id]/route") & {archive: typeof import("@medusajs/medusa/api/admin/orders/[id]/archive/route");cancel: typeof import("@medusajs/medusa/api/admin/orders/[id]/cancel/route");@@ -227,7 +227,7 @@ export type Routes = {$id: typeof import("@medusajs/medusa/api/admin/product-types/[id]/route");};productVariants: typeof import("@medusajs/medusa/api/admin/product-variants/route");- products: typeof import("@mercurjs/core-plugin/api/admin/products/route") & {+ products: typeof import("@mercurjs/core/api/admin/products/route") & {$id: typeof import("@medusajs/medusa/api/admin/products/[id]/route") & {images: {$imageId: {@@ -414,20 +414,20 @@ export type Routes = {subscribe: typeof import("@medusajs/medusa/api/admin/workflows-executions/[workflow_id]/subscribe/route");};};- commissionRates: typeof import("@mercurjs/core-plugin/api/admin/commission-rates/route") & {- $id: typeof import("@mercurjs/core-plugin/api/admin/commission-rates/[id]/route") & {- rules: typeof import("@mercurjs/core-plugin/api/admin/commission-rates/[id]/rules/route");+ commissionRates: typeof import("@mercurjs/core/api/admin/commission-rates/route") & {+ $id: typeof import("@mercurjs/core/api/admin/commission-rates/[id]/route") & {+ rules: typeof import("@mercurjs/core/api/admin/commission-rates/[id]/rules/route");};};- orderGroups: typeof import("@mercurjs/core-plugin/api/admin/order-groups/route") & {- $id: typeof import("@mercurjs/core-plugin/api/admin/order-groups/[id]/route");+ orderGroups: typeof import("@mercurjs/core/api/admin/order-groups/route") & {+ $id: typeof import("@mercurjs/core/api/admin/order-groups/[id]/route");};- payouts: typeof import("@mercurjs/core-plugin/api/admin/payouts/route") & {- $id: typeof import("@mercurjs/core-plugin/api/admin/payouts/[id]/route");+ payouts: typeof import("@mercurjs/core/api/admin/payouts/route") & {+ $id: typeof import("@mercurjs/core/api/admin/payouts/[id]/route");};- sellers: typeof import("@mercurjs/core-plugin/api/admin/sellers/route") & {- invite: typeof import("@mercurjs/core-plugin/api/admin/sellers/invite/route");- $id: typeof import("@mercurjs/core-plugin/api/admin/sellers/[id]/route");+ sellers: typeof import("@mercurjs/core/api/admin/sellers/route") & {+ invite: typeof import("@mercurjs/core/api/admin/sellers/invite/route");+ $id: typeof import("@mercurjs/core/api/admin/sellers/[id]/route");};};auth: {@@ -447,13 +447,13 @@ export type Routes = {store: {carts: typeof import("@medusajs/medusa/api/store/carts/route") & {$id: typeof import("@medusajs/medusa/api/store/carts/[id]/route") & {- complete: typeof import("@mercurjs/core-plugin/api/store/carts/[id]/complete/route");+ complete: typeof import("@mercurjs/core/api/store/carts/[id]/complete/route");customer: typeof import("@medusajs/medusa/api/store/carts/[id]/customer/route");lineItems: typeof import("@medusajs/medusa/api/store/carts/[id]/line-items/route") & {$lineId: typeof import("@medusajs/medusa/api/store/carts/[id]/line-items/[line_id]/route");};- promotions: typeof import("@mercurjs/core-plugin/api/store/carts/[id]/promotions/route");- shippingMethods: typeof import("@mercurjs/core-plugin/api/store/carts/[id]/shipping-methods/route");+ promotions: typeof import("@mercurjs/core/api/store/carts/[id]/promotions/route");+ shippingMethods: typeof import("@mercurjs/core/api/store/carts/[id]/shipping-methods/route");taxes: typeof import("@medusajs/medusa/api/store/carts/[id]/taxes/route");};};@@ -509,189 +509,189 @@ export type Routes = {$id: typeof import("@medusajs/medusa/api/store/return-reasons/[id]/route");};returns: typeof import("@medusajs/medusa/api/store/returns/route");- shippingOptions: typeof import("@mercurjs/core-plugin/api/store/shipping-options/route") & {+ shippingOptions: typeof import("@mercurjs/core/api/store/shipping-options/route") & {$id: {calculate: typeof import("@medusajs/medusa/api/store/shipping-options/[id]/calculate/route");};};- orderGroups: typeof import("@mercurjs/core-plugin/api/store/order-groups/route") & {- $id: typeof import("@mercurjs/core-plugin/api/store/order-groups/[id]/route");+ orderGroups: typeof import("@mercurjs/core/api/store/order-groups/route") & {+ $id: typeof import("@mercurjs/core/api/store/order-groups/[id]/route");};- sellers: typeof import("@mercurjs/core-plugin/api/store/sellers/route") & {- $id: typeof import("@mercurjs/core-plugin/api/store/sellers/[id]/route");+ sellers: typeof import("@mercurjs/core/api/store/sellers/route") & {+ $id: typeof import("@mercurjs/core/api/store/sellers/[id]/route");};};vendor: {- campaigns: typeof import("@mercurjs/core-plugin/api/vendor/campaigns/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/campaigns/[id]/route") & {- promotions: typeof import("@mercurjs/core-plugin/api/vendor/campaigns/[id]/promotions/route");+ campaigns: typeof import("@mercurjs/core/api/vendor/campaigns/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/campaigns/[id]/route") & {+ promotions: typeof import("@mercurjs/core/api/vendor/campaigns/[id]/promotions/route");};};- collections: typeof import("@mercurjs/core-plugin/api/vendor/collections/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/collections/[id]/route") & {- products: typeof import("@mercurjs/core-plugin/api/vendor/collections/[id]/products/route");+ collections: typeof import("@mercurjs/core/api/vendor/collections/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/collections/[id]/route") & {+ products: typeof import("@mercurjs/core/api/vendor/collections/[id]/products/route");};};- currencies: typeof import("@mercurjs/core-plugin/api/vendor/currencies/route") & {- $code: typeof import("@mercurjs/core-plugin/api/vendor/currencies/[code]/route");+ currencies: typeof import("@mercurjs/core/api/vendor/currencies/route") & {+ $code: typeof import("@mercurjs/core/api/vendor/currencies/[code]/route");};- customers: typeof import("@mercurjs/core-plugin/api/vendor/customers/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/customers/[id]/route");+ customers: typeof import("@mercurjs/core/api/vendor/customers/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/customers/[id]/route");};fulfillmentSets: {- $id: typeof import("@mercurjs/core-plugin/api/vendor/fulfillment-sets/[id]/route") & {- serviceZones: typeof import("@mercurjs/core-plugin/api/vendor/fulfillment-sets/[id]/service-zones/route") & {- $zoneId: typeof import("@mercurjs/core-plugin/api/vendor/fulfillment-sets/[id]/service-zones/[zone_id]/route");+ $id: typeof import("@mercurjs/core/api/vendor/fulfillment-sets/[id]/route") & {+ serviceZones: typeof import("@mercurjs/core/api/vendor/fulfillment-sets/[id]/service-zones/route") & {+ $zoneId: typeof import("@mercurjs/core/api/vendor/fulfillment-sets/[id]/service-zones/[zone_id]/route");};};};- inventoryItems: typeof import("@mercurjs/core-plugin/api/vendor/inventory-items/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/inventory-items/[id]/route") & {- locationLevels: typeof import("@mercurjs/core-plugin/api/vendor/inventory-items/[id]/location-levels/route") & {- $locationId: typeof import("@mercurjs/core-plugin/api/vendor/inventory-items/[id]/location-levels/[location_id]/route");- batch: typeof import("@mercurjs/core-plugin/api/vendor/inventory-items/[id]/location-levels/batch/route");+ inventoryItems: typeof import("@mercurjs/core/api/vendor/inventory-items/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/inventory-items/[id]/route") & {+ locationLevels: typeof import("@mercurjs/core/api/vendor/inventory-items/[id]/location-levels/route") & {+ $locationId: typeof import("@mercurjs/core/api/vendor/inventory-items/[id]/location-levels/[location_id]/route");+ batch: typeof import("@mercurjs/core/api/vendor/inventory-items/[id]/location-levels/batch/route");};};};- orders: typeof import("@mercurjs/core-plugin/api/vendor/orders/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/route") & {- cancel: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/cancel/route");- changes: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/changes/route");- complete: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/complete/route");- fulfillments: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/fulfillments/route") & {+ orders: typeof import("@mercurjs/core/api/vendor/orders/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/orders/[id]/route") & {+ cancel: typeof import("@mercurjs/core/api/vendor/orders/[id]/cancel/route");+ changes: typeof import("@mercurjs/core/api/vendor/orders/[id]/changes/route");+ complete: typeof import("@mercurjs/core/api/vendor/orders/[id]/complete/route");+ fulfillments: typeof import("@mercurjs/core/api/vendor/orders/[id]/fulfillments/route") & {$fulfillmentId: {- cancel: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/cancel/route");- markAsDelivered: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/mark-as-delivered/route");- shipments: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/shipments/route");+ cancel: typeof import("@mercurjs/core/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/cancel/route");+ markAsDelivered: typeof import("@mercurjs/core/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/mark-as-delivered/route");+ shipments: typeof import("@mercurjs/core/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/shipments/route");};};- preview: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/preview/route");+ preview: typeof import("@mercurjs/core/api/vendor/orders/[id]/preview/route");};};- payments: typeof import("@mercurjs/core-plugin/api/vendor/payments/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/payments/[id]/route") & {- capture: typeof import("@mercurjs/core-plugin/api/vendor/payments/[id]/capture/route");- refund: typeof import("@mercurjs/core-plugin/api/vendor/payments/[id]/refund/route");+ payments: typeof import("@mercurjs/core/api/vendor/payments/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/payments/[id]/route") & {+ capture: typeof import("@mercurjs/core/api/vendor/payments/[id]/capture/route");+ refund: typeof import("@mercurjs/core/api/vendor/payments/[id]/refund/route");};- paymentProviders: typeof import("@mercurjs/core-plugin/api/vendor/payments/payment-providers/route");+ paymentProviders: typeof import("@mercurjs/core/api/vendor/payments/payment-providers/route");};- payoutAccounts: typeof import("@mercurjs/core-plugin/api/vendor/payout-accounts/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/payout-accounts/[id]/route") & {- onboarding: typeof import("@mercurjs/core-plugin/api/vendor/payout-accounts/[id]/onboarding/route");+ payoutAccounts: typeof import("@mercurjs/core/api/vendor/payout-accounts/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/payout-accounts/[id]/route") & {+ onboarding: typeof import("@mercurjs/core/api/vendor/payout-accounts/[id]/onboarding/route");};};- payouts: typeof import("@mercurjs/core-plugin/api/vendor/payouts/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/payouts/[id]/route");+ payouts: typeof import("@mercurjs/core/api/vendor/payouts/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/payouts/[id]/route");};- priceLists: typeof import("@mercurjs/core-plugin/api/vendor/price-lists/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/price-lists/[id]/route") & {- products: typeof import("@mercurjs/core-plugin/api/vendor/price-lists/[id]/products/route");+ priceLists: typeof import("@mercurjs/core/api/vendor/price-lists/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/price-lists/[id]/route") & {+ products: typeof import("@mercurjs/core/api/vendor/price-lists/[id]/products/route");};};- pricePreferences: typeof import("@mercurjs/core-plugin/api/vendor/price-preferences/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/price-preferences/[id]/route");+ pricePreferences: typeof import("@mercurjs/core/api/vendor/price-preferences/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/price-preferences/[id]/route");};- productCategories: typeof import("@mercurjs/core-plugin/api/vendor/product-categories/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/product-categories/[id]/route") & {- products: typeof import("@mercurjs/core-plugin/api/vendor/product-categories/[id]/products/route");+ productCategories: typeof import("@mercurjs/core/api/vendor/product-categories/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/product-categories/[id]/route") & {+ products: typeof import("@mercurjs/core/api/vendor/product-categories/[id]/products/route");};};- productTags: typeof import("@mercurjs/core-plugin/api/vendor/product-tags/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/product-tags/[id]/route");+ productTags: typeof import("@mercurjs/core/api/vendor/product-tags/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/product-tags/[id]/route");};- productTypes: typeof import("@mercurjs/core-plugin/api/vendor/product-types/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/product-types/[id]/route");+ productTypes: typeof import("@mercurjs/core/api/vendor/product-types/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/product-types/[id]/route");};- products: typeof import("@mercurjs/core-plugin/api/vendor/products/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/products/[id]/route") & {- options: typeof import("@mercurjs/core-plugin/api/vendor/products/[id]/options/route") & {- $optionId: typeof import("@mercurjs/core-plugin/api/vendor/products/[id]/options/[option_id]/route");+ products: typeof import("@mercurjs/core/api/vendor/products/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/products/[id]/route") & {+ options: typeof import("@mercurjs/core/api/vendor/products/[id]/options/route") & {+ $optionId: typeof import("@mercurjs/core/api/vendor/products/[id]/options/[option_id]/route");};- variants: typeof import("@mercurjs/core-plugin/api/vendor/products/[id]/variants/route") & {- $variantId: typeof import("@mercurjs/core-plugin/api/vendor/products/[id]/variants/[variant_id]/route");+ variants: typeof import("@mercurjs/core/api/vendor/products/[id]/variants/route") & {+ $variantId: typeof import("@mercurjs/core/api/vendor/products/[id]/variants/[variant_id]/route");};};};- promotions: typeof import("@mercurjs/core-plugin/api/vendor/promotions/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/promotions/[id]/route") & {- $ruleType: typeof import("@mercurjs/core-plugin/api/vendor/promotions/[id]/[rule_type]/route");+ promotions: typeof import("@mercurjs/core/api/vendor/promotions/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/promotions/[id]/route") & {+ $ruleType: typeof import("@mercurjs/core/api/vendor/promotions/[id]/[rule_type]/route");buyRules: {- batch: typeof import("@mercurjs/core-plugin/api/vendor/promotions/[id]/buy-rules/batch/route");+ batch: typeof import("@mercurjs/core/api/vendor/promotions/[id]/buy-rules/batch/route");};rules: {- batch: typeof import("@mercurjs/core-plugin/api/vendor/promotions/[id]/rules/batch/route");+ batch: typeof import("@mercurjs/core/api/vendor/promotions/[id]/rules/batch/route");};targetRules: {- batch: typeof import("@mercurjs/core-plugin/api/vendor/promotions/[id]/target-rules/batch/route");+ batch: typeof import("@mercurjs/core/api/vendor/promotions/[id]/target-rules/batch/route");};};ruleAttributeOptions: {- $ruleType: typeof import("@mercurjs/core-plugin/api/vendor/promotions/rule-attribute-options/[rule_type]/route");+ $ruleType: typeof import("@mercurjs/core/api/vendor/promotions/rule-attribute-options/[rule_type]/route");};ruleValueOptions: {$ruleType: {- $ruleAttributeId: typeof import("@mercurjs/core-plugin/api/vendor/promotions/rule-value-options/[rule_type]/[rule_attribute_id]/route");+ $ruleAttributeId: typeof import("@mercurjs/core/api/vendor/promotions/rule-value-options/[rule_type]/[rule_attribute_id]/route");};};};- refundReasons: typeof import("@mercurjs/core-plugin/api/vendor/refund-reasons/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/refund-reasons/[id]/route");+ refundReasons: typeof import("@mercurjs/core/api/vendor/refund-reasons/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/refund-reasons/[id]/route");};- regions: typeof import("@mercurjs/core-plugin/api/vendor/regions/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/regions/[id]/route");+ regions: typeof import("@mercurjs/core/api/vendor/regions/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/regions/[id]/route");};- returnReasons: typeof import("@mercurjs/core-plugin/api/vendor/return-reasons/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/return-reasons/[id]/route");+ returnReasons: typeof import("@mercurjs/core/api/vendor/return-reasons/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/return-reasons/[id]/route");};- returns: typeof import("@mercurjs/core-plugin/api/vendor/returns/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/route") & {- cancel: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/cancel/route");- dismissItems: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/dismiss-items/route") & {- $actionId: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/dismiss-items/[action_id]/route");+ returns: typeof import("@mercurjs/core/api/vendor/returns/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/returns/[id]/route") & {+ cancel: typeof import("@mercurjs/core/api/vendor/returns/[id]/cancel/route");+ dismissItems: typeof import("@mercurjs/core/api/vendor/returns/[id]/dismiss-items/route") & {+ $actionId: typeof import("@mercurjs/core/api/vendor/returns/[id]/dismiss-items/[action_id]/route");};- receive: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/receive/route") & {- confirm: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/receive/confirm/route");+ receive: typeof import("@mercurjs/core/api/vendor/returns/[id]/receive/route") & {+ confirm: typeof import("@mercurjs/core/api/vendor/returns/[id]/receive/confirm/route");};- receiveItems: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/receive-items/route") & {- $actionId: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/receive-items/[action_id]/route");+ receiveItems: typeof import("@mercurjs/core/api/vendor/returns/[id]/receive-items/route") & {+ $actionId: typeof import("@mercurjs/core/api/vendor/returns/[id]/receive-items/[action_id]/route");};- request: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/request/route");- requestItems: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/request-items/route") & {- $actionId: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/request-items/[action_id]/route");+ request: typeof import("@mercurjs/core/api/vendor/returns/[id]/request/route");+ requestItems: typeof import("@mercurjs/core/api/vendor/returns/[id]/request-items/route") & {+ $actionId: typeof import("@mercurjs/core/api/vendor/returns/[id]/request-items/[action_id]/route");};- shippingMethod: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/shipping-method/route") & {- $actionId: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/shipping-method/[action_id]/route");+ shippingMethod: typeof import("@mercurjs/core/api/vendor/returns/[id]/shipping-method/route") & {+ $actionId: typeof import("@mercurjs/core/api/vendor/returns/[id]/shipping-method/[action_id]/route");};};};- salesChannels: typeof import("@mercurjs/core-plugin/api/vendor/sales-channels/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/sales-channels/[id]/route") & {- products: typeof import("@mercurjs/core-plugin/api/vendor/sales-channels/[id]/products/route");+ salesChannels: typeof import("@mercurjs/core/api/vendor/sales-channels/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/sales-channels/[id]/route") & {+ products: typeof import("@mercurjs/core/api/vendor/sales-channels/[id]/products/route");};};- sellers: typeof import("@mercurjs/core-plugin/api/vendor/sellers/route") & {- me: typeof import("@mercurjs/core-plugin/api/vendor/sellers/me/route");+ sellers: typeof import("@mercurjs/core/api/vendor/sellers/route") & {+ me: typeof import("@mercurjs/core/api/vendor/sellers/me/route");};- shippingOptionTypes: typeof import("@mercurjs/core-plugin/api/vendor/shipping-option-types/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/shipping-option-types/[id]/route");+ shippingOptionTypes: typeof import("@mercurjs/core/api/vendor/shipping-option-types/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/shipping-option-types/[id]/route");};- shippingOptions: typeof import("@mercurjs/core-plugin/api/vendor/shipping-options/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/shipping-options/[id]/route") & {+ shippingOptions: typeof import("@mercurjs/core/api/vendor/shipping-options/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/shipping-options/[id]/route") & {rules: {- batch: typeof import("@mercurjs/core-plugin/api/vendor/shipping-options/[id]/rules/batch/route");+ batch: typeof import("@mercurjs/core/api/vendor/shipping-options/[id]/rules/batch/route");};};};- shippingProfiles: typeof import("@mercurjs/core-plugin/api/vendor/shipping-profiles/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/shipping-profiles/[id]/route");+ shippingProfiles: typeof import("@mercurjs/core/api/vendor/shipping-profiles/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/shipping-profiles/[id]/route");};- stockLocations: typeof import("@mercurjs/core-plugin/api/vendor/stock-locations/route") & {- $id: typeof import("@mercurjs/core-plugin/api/vendor/stock-locations/[id]/route") & {- fulfillmentProviders: typeof import("@mercurjs/core-plugin/api/vendor/stock-locations/[id]/fulfillment-providers/route");- fulfillmentSets: typeof import("@mercurjs/core-plugin/api/vendor/stock-locations/[id]/fulfillment-sets/route");- salesChannels: typeof import("@mercurjs/core-plugin/api/vendor/stock-locations/[id]/sales-channels/route");+ stockLocations: typeof import("@mercurjs/core/api/vendor/stock-locations/route") & {+ $id: typeof import("@mercurjs/core/api/vendor/stock-locations/[id]/route") & {+ fulfillmentProviders: typeof import("@mercurjs/core/api/vendor/stock-locations/[id]/fulfillment-providers/route");+ fulfillmentSets: typeof import("@mercurjs/core/api/vendor/stock-locations/[id]/fulfillment-sets/route");+ salesChannels: typeof import("@mercurjs/core/api/vendor/stock-locations/[id]/sales-channels/route");};};- uploads: typeof import("@mercurjs/core-plugin/api/vendor/uploads/route");+ uploads: typeof import("@mercurjs/core/api/vendor/uploads/route");};};diff --git a/packages/vendor/package.json b/packages/vendor/package.jsonindex 37d91198a..1494cfe69 100644--- a/packages/vendor/package.json+++ b/packages/vendor/package.json@@ -83,7 +83,7 @@"tsup": "^8.0.2","typescript": "5.9.3","@medusajs/types": "2.13.4",- "@mercurjs/core-plugin": "workspace:*",+ "@mercurjs/core": "workspace:*","@mercurjs/dashboard-sdk": "workspace:*","@mercurjs/types": "workspace:*"}diff --git a/packages/vendor/src/lib/client/client.ts b/packages/vendor/src/lib/client/client.tsindex 96d568a1b..81ec4b5a7 100644--- a/packages/vendor/src/lib/client/client.ts+++ b/packages/vendor/src/lib/client/client.ts@@ -1,5 +1,5 @@import { createClient, InferClient } from '@mercurjs/client'-import { Routes } from '@mercurjs/core-plugin/_generated'+import { Routes } from '@mercurjs/core/_generated'import config from 'virtual:mercur/config'export const backendUrl = config.backendUrl ?? 'http://localhost:9000'diff --git a/templates/basic/.claude/skills/migration-guide/SKILL.md b/templates/basic/.claude/skills/migration-guide/SKILL.mdindex 5d623c76a..b09f67431 100644--- a/templates/basic/.claude/skills/migration-guide/SKILL.md+++ b/templates/basic/.claude/skills/migration-guide/SKILL.md@@ -15,8 +15,8 @@ Use this skill when:| 1.x | 2.0 ||-------|--------|-| `@mercurjs/b2c-core` | `@mercurjs/core-plugin` — all core modules built in |-| `@mercurjs/commission` | Built into core-plugin |+| `@mercurjs/b2c-core` | `@mercurjs/core` — all core modules built in |+| `@mercurjs/commission` | Built into core || `@mercurjs/algolia` | Registry block: `mercurjs add algolia` || `@mercurjs/resend` | No 2.0 equivalent — port manually || `@mercurjs/payment-stripe-connect` | No 2.0 equivalent — port manually |@@ -47,7 +47,7 @@ Use this skill when:| `from "@hooks/*"` | `from "@mercurjs/dashboard-shared"` or local || `from "@components/*"` | `from "@mercurjs/dashboard-shared"` || `from "@lib/*"` | `from "@mercurjs/dashboard-shared"` |-| `from "@mercurjs/b2c-core"` | `from "@mercurjs/core-plugin"` |+| `from "@mercurjs/b2c-core"` | `from "@mercurjs/core"` |## Provider Registration@@ -76,7 +76,7 @@ import { Modules, ModuleProvider } from "@medusajs/framework/utils"plugins: [{ resolve: "@mercurjs/b2c-core", options: {} }]// 2.0-plugins: [{ resolve: "@mercurjs/core-plugin", options: {} }]+plugins: [{ resolve: "@mercurjs/core", options: {} }]// + individual module registrations in modules array```@@ -108,7 +108,7 @@ Communicate classification to user before proceeding.### Step 3: Map each elementFor every custom element found, determine:-- Has 2.0 equivalent in core-plugin? → skip, already there+- Has 2.0 equivalent in core? → skip, already there- Has registry block? → install with `mercurjs add <block>`- Needs manual port? → queue for Step 4@@ -119,7 +119,7 @@ Port in this order:2. **Providers** — copy to `packages/api/src/providers/`, fix imports3. **Modules** — copy to `packages/api/src/modules/`, register in config4. **Workflows** — copy to `packages/api/src/workflows/<entity>/`-5. **Links** — copy to `packages/api/src/links/` (skip core-plugin duplicates)+5. **Links** — copy to `packages/api/src/links/` (skip core duplicates)6. **Subscribers** — copy to `packages/api/src/subscribers/`7. **API routes** — copy to `packages/api/src/api/`, type both generics8. **Middleware** — merge into `packages/api/src/api/middlewares.ts`@@ -141,7 +141,7 @@ After dashboard: run `bun vite build` in `apps/admin` and `apps/vendor`.## Stop ConditionsStop and ask the user when:-- A custom module depends on internal APIs not in core-plugin+- A custom module depends on internal APIs not in core- A third-party integration has no clear migration path- Database schema conflicts arise- The old project uses MedusaJS core modifications@@ -153,7 +153,7 @@ Stop and ask the user when:- Do not attempt in-place upgrades of 1.x projects- Do not install 1.x packages in a 2.0 project- Do not create barrel `index.ts` files in `workflows/` or `steps/` (conflicts with block installation)-- Do not duplicate links that core-plugin already provides+- Do not duplicate links that core already provides## More Infodiff --git a/templates/basic/packages/api/medusa-config.ts b/templates/basic/packages/api/medusa-config.tsindex c4f023713..dc02ef5c9 100644--- a/templates/basic/packages/api/medusa-config.ts+++ b/templates/basic/packages/api/medusa-config.ts@@ -28,14 +28,14 @@ module.exports = defineConfig({resolve: "@medusajs/medusa/rbac",},{- resolve: '@mercurjs/core-plugin/modules/admin-ui',+ resolve: '@mercurjs/core/modules/admin-ui',options: {appDir: path.join(__dirname, '../../apps/admin'),path: '/dashboard',} as DashboardModuleOptions},{- resolve: '@mercurjs/core-plugin/modules/vendor-ui',+ resolve: '@mercurjs/core/modules/vendor-ui',options: {appDir: path.join(__dirname, '../../apps/vendor'),path: '/seller',@@ -43,7 +43,7 @@ module.exports = defineConfig({},],plugins: [{- resolve: "@mercurjs/core-plugin",+ resolve: "@mercurjs/core",options: {}}]})diff --git a/templates/basic/packages/api/package.json b/templates/basic/packages/api/package.jsonindex aff802614..ccef65ff2 100644--- a/templates/basic/packages/api/package.json+++ b/templates/basic/packages/api/package.json@@ -34,7 +34,7 @@"@medusajs/admin-shared": "^2.13.4","@medusajs/medusa": "^2.13.4","@medusajs/draft-order": "2.13.4",- "@mercurjs/core-plugin": "2.0.2",+ "@mercurjs/core": "2.0.2","@mercurjs/types": "2.0.2","http-proxy-middleware": "^3.0.3","@mercurjs/cli": "2.0.2"diff --git a/tools/template-sync/config.ts b/tools/template-sync/config.tsindex 28a3784b9..af2048ee6 100644--- a/tools/template-sync/config.ts+++ b/tools/template-sync/config.ts@@ -118,11 +118,11 @@ export const templateBasicRules: TemplateBasicRule[] = [id: "api-extension-knowledge",description: "How the starter backend should explain routes, modules, workflows, links, and codegen.",sourcePaths: [- "packages/core-plugin/AGENTS.md",- "packages/core-plugin/src/api/README.md",- "packages/core-plugin/src/modules/README.md",+ "packages/core/AGENTS.md",+ "packages/core/src/api/README.md",+ "packages/core/src/modules/README.md","packages/types/AGENTS.md",- "packages/core-plugin/package.json",+ "packages/core/package.json",],targetPaths: ["templates/basic/AGENTS.md",