Skip to content

The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.

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.md
index 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 type
diff --git a/.claude/skills/migration-guide/SKILL.md b/.claude/skills/migration-guide/SKILL.md
index 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 conditions
Stop 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 modifications
diff --git a/.mercur/_generated/index.ts b/.mercur/_generated/index.ts
index 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.md
index 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 definitions
diff --git a/CLAUDE.md b/CLAUDE.md
index 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.md
index 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.ts
similarity index 73%
rename from apps/api/.mercur/_generated/index.ts
rename to apps/api/.mercur/index.d.ts
index 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.ts
index 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 module
vendorCors: 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.json
index 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.ts
index 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.mdx
index 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 workflows
import {
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.mdx
index 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, calculation
diff --git a/apps/docs/v2/getting-started/concepts.mdx b/apps/docs/v2/getting-started/concepts.mdx
index 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.
## Modules
diff --git a/apps/docs/v2/how-to-guides/stripe-connect-integration.mdx b/apps/docs/v2/how-to-guides/stripe-connect-integration.mdx
index 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 days
sellerActionWindowMs: 72 * 60 * 60 * 1000, // 72 hours
diff --git a/apps/docs/v2/migrations/from-1-x-to-2-0.mdx b/apps/docs/v2/migrations/from-1-x-to-2-0.mdx
index 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 Providers
diff --git a/apps/docs/v2/migrations/overview.mdx b/apps/docs/v2/migrations/overview.mdx
index 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/vendor
diff --git a/apps/vendor/src/lib/client.ts b/apps/vendor/src/lib/client.ts
index 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__: string
diff --git a/bun.lock b/bun.lock
index 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.ts
index 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.ts
index 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.ts
index 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.ts
index 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.json
index 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.json
index 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.json
index 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.ts
index 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.json
index 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.ts
index 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 file
diff --git a/packages/cli/src/codegen/index.ts b/packages/cli/src/codegen/index.ts
index 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.ts
new file mode 100644
index 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.ts
new file mode 100644
index 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.ts
new file mode 100644
index 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.ts
index 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.ts
new file mode 100644
index 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.ts
new file mode 100644
index 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/.gitignore
similarity index 100%
rename from packages/core-plugin/.gitignore
rename to packages/core/.gitignore
diff --git a/packages/core-plugin/.mercur/_generated/index.ts b/packages/core/.mercur/_generated/index.ts
similarity index 99%
rename from packages/core-plugin/.mercur/_generated/index.ts
rename to packages/core/.mercur/_generated/index.ts
index 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.ts
new file mode 100644
index 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.json
similarity index 88%
rename from packages/core-plugin/package.json
rename to packages/core/package.json
index 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.md
similarity index 100%
rename from packages/core-plugin/src/api/README.md
rename to packages/core/src/api/README.md
diff --git a/packages/core-plugin/src/api/admin/attributes/[id]/route.ts b/packages/core/src/api/admin/attributes/[id]/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/attributes/[id]/route.ts
rename to packages/core/src/api/admin/attributes/[id]/route.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/attributes/[id]/values/[value_id]/route.ts
rename to packages/core/src/api/admin/attributes/[id]/values/[value_id]/route.ts
diff --git a/packages/core-plugin/src/api/admin/attributes/[id]/values/route.ts b/packages/core/src/api/admin/attributes/[id]/values/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/attributes/[id]/values/route.ts
rename to packages/core/src/api/admin/attributes/[id]/values/route.ts
diff --git a/packages/core-plugin/src/api/admin/attributes/middlewares.ts b/packages/core/src/api/admin/attributes/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/attributes/middlewares.ts
rename to packages/core/src/api/admin/attributes/middlewares.ts
diff --git a/packages/core-plugin/src/api/admin/attributes/query-config.ts b/packages/core/src/api/admin/attributes/query-config.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/attributes/query-config.ts
rename to packages/core/src/api/admin/attributes/query-config.ts
diff --git a/packages/core-plugin/src/api/admin/attributes/route.ts b/packages/core/src/api/admin/attributes/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/attributes/route.ts
rename to packages/core/src/api/admin/attributes/route.ts
diff --git a/packages/core-plugin/src/api/admin/attributes/validators.ts b/packages/core/src/api/admin/attributes/validators.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/attributes/validators.ts
rename to packages/core/src/api/admin/attributes/validators.ts
diff --git a/packages/core-plugin/src/api/admin/commission-rates/[id]/route.ts b/packages/core/src/api/admin/commission-rates/[id]/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/commission-rates/[id]/route.ts
rename to packages/core/src/api/admin/commission-rates/[id]/route.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/commission-rates/[id]/rules/route.ts
rename to packages/core/src/api/admin/commission-rates/[id]/rules/route.ts
diff --git a/packages/core-plugin/src/api/admin/commission-rates/middlewares.ts b/packages/core/src/api/admin/commission-rates/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/commission-rates/middlewares.ts
rename to packages/core/src/api/admin/commission-rates/middlewares.ts
diff --git a/packages/core-plugin/src/api/admin/commission-rates/query-config.ts b/packages/core/src/api/admin/commission-rates/query-config.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/commission-rates/query-config.ts
rename to packages/core/src/api/admin/commission-rates/query-config.ts
diff --git a/packages/core-plugin/src/api/admin/commission-rates/route.ts b/packages/core/src/api/admin/commission-rates/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/commission-rates/route.ts
rename to packages/core/src/api/admin/commission-rates/route.ts
diff --git a/packages/core-plugin/src/api/admin/commission-rates/validators.ts b/packages/core/src/api/admin/commission-rates/validators.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/commission-rates/validators.ts
rename to packages/core/src/api/admin/commission-rates/validators.ts
diff --git a/packages/core-plugin/src/api/admin/middlewares.ts b/packages/core/src/api/admin/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/middlewares.ts
rename to packages/core/src/api/admin/middlewares.ts
diff --git a/packages/core-plugin/src/api/admin/order-groups/[id]/route.ts b/packages/core/src/api/admin/order-groups/[id]/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/order-groups/[id]/route.ts
rename to packages/core/src/api/admin/order-groups/[id]/route.ts
diff --git a/packages/core-plugin/src/api/admin/order-groups/middlewares.ts b/packages/core/src/api/admin/order-groups/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/order-groups/middlewares.ts
rename to packages/core/src/api/admin/order-groups/middlewares.ts
diff --git a/packages/core-plugin/src/api/admin/order-groups/query-config.ts b/packages/core/src/api/admin/order-groups/query-config.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/order-groups/query-config.ts
rename to packages/core/src/api/admin/order-groups/query-config.ts
diff --git a/packages/core-plugin/src/api/admin/order-groups/route.ts b/packages/core/src/api/admin/order-groups/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/order-groups/route.ts
rename to packages/core/src/api/admin/order-groups/route.ts
diff --git a/packages/core-plugin/src/api/admin/order-groups/validators.ts b/packages/core/src/api/admin/order-groups/validators.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/order-groups/validators.ts
rename to packages/core/src/api/admin/order-groups/validators.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/orders/[id]/order-group/route.ts
rename to packages/core/src/api/admin/orders/[id]/order-group/route.ts
diff --git a/packages/core-plugin/src/api/admin/orders/route.ts b/packages/core/src/api/admin/orders/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/orders/route.ts
rename to packages/core/src/api/admin/orders/route.ts
diff --git a/packages/core-plugin/src/api/admin/orders/validators.ts b/packages/core/src/api/admin/orders/validators.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/orders/validators.ts
rename to packages/core/src/api/admin/orders/validators.ts
diff --git a/packages/core-plugin/src/api/admin/payouts/[id]/route.ts b/packages/core/src/api/admin/payouts/[id]/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/payouts/[id]/route.ts
rename to packages/core/src/api/admin/payouts/[id]/route.ts
diff --git a/packages/core-plugin/src/api/admin/payouts/middlewares.ts b/packages/core/src/api/admin/payouts/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/payouts/middlewares.ts
rename to packages/core/src/api/admin/payouts/middlewares.ts
diff --git a/packages/core-plugin/src/api/admin/payouts/query-config.ts b/packages/core/src/api/admin/payouts/query-config.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/payouts/query-config.ts
rename to packages/core/src/api/admin/payouts/query-config.ts
diff --git a/packages/core-plugin/src/api/admin/payouts/route.ts b/packages/core/src/api/admin/payouts/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/payouts/route.ts
rename to packages/core/src/api/admin/payouts/route.ts
diff --git a/packages/core-plugin/src/api/admin/payouts/validators.ts b/packages/core/src/api/admin/payouts/validators.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/payouts/validators.ts
rename to packages/core/src/api/admin/payouts/validators.ts
diff --git a/packages/core-plugin/src/api/admin/products/route.ts b/packages/core/src/api/admin/products/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/products/route.ts
rename to packages/core/src/api/admin/products/route.ts
diff --git a/packages/core-plugin/src/api/admin/products/validators.ts b/packages/core/src/api/admin/products/validators.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/products/validators.ts
rename to packages/core/src/api/admin/products/validators.ts
diff --git a/packages/core-plugin/src/api/admin/sellers/[id]/address/route.ts b/packages/core/src/api/admin/sellers/[id]/address/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/sellers/[id]/address/route.ts
rename to packages/core/src/api/admin/sellers/[id]/address/route.ts
diff --git a/packages/core-plugin/src/api/admin/sellers/[id]/approve/route.ts b/packages/core/src/api/admin/sellers/[id]/approve/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/sellers/[id]/approve/route.ts
rename to packages/core/src/api/admin/sellers/[id]/approve/route.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/sellers/[id]/members/[member_id]/route.ts
rename to packages/core/src/api/admin/sellers/[id]/members/[member_id]/route.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/sellers/[id]/members/invite/route.ts
rename to packages/core/src/api/admin/sellers/[id]/members/invite/route.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/sellers/[id]/members/invites/route.ts
rename to packages/core/src/api/admin/sellers/[id]/members/invites/route.ts
diff --git a/packages/core-plugin/src/api/admin/sellers/[id]/members/route.ts b/packages/core/src/api/admin/sellers/[id]/members/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/sellers/[id]/members/route.ts
rename to packages/core/src/api/admin/sellers/[id]/members/route.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/sellers/[id]/payment-details/route.ts
rename to packages/core/src/api/admin/sellers/[id]/payment-details/route.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/sellers/[id]/professional-details/route.ts
rename to packages/core/src/api/admin/sellers/[id]/professional-details/route.ts
diff --git a/packages/core-plugin/src/api/admin/sellers/[id]/route.ts b/packages/core/src/api/admin/sellers/[id]/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/sellers/[id]/route.ts
rename to packages/core/src/api/admin/sellers/[id]/route.ts
diff --git a/packages/core-plugin/src/api/admin/sellers/[id]/suspend/route.ts b/packages/core/src/api/admin/sellers/[id]/suspend/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/sellers/[id]/suspend/route.ts
rename to packages/core/src/api/admin/sellers/[id]/suspend/route.ts
diff --git a/packages/core-plugin/src/api/admin/sellers/[id]/terminate/route.ts b/packages/core/src/api/admin/sellers/[id]/terminate/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/sellers/[id]/terminate/route.ts
rename to packages/core/src/api/admin/sellers/[id]/terminate/route.ts
diff --git a/packages/core-plugin/src/api/admin/sellers/[id]/unsuspend/route.ts b/packages/core/src/api/admin/sellers/[id]/unsuspend/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/sellers/[id]/unsuspend/route.ts
rename to packages/core/src/api/admin/sellers/[id]/unsuspend/route.ts
diff --git a/packages/core-plugin/src/api/admin/sellers/[id]/unterminate/route.ts b/packages/core/src/api/admin/sellers/[id]/unterminate/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/sellers/[id]/unterminate/route.ts
rename to packages/core/src/api/admin/sellers/[id]/unterminate/route.ts
diff --git a/packages/core-plugin/src/api/admin/sellers/middlewares.ts b/packages/core/src/api/admin/sellers/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/sellers/middlewares.ts
rename to packages/core/src/api/admin/sellers/middlewares.ts
diff --git a/packages/core-plugin/src/api/admin/sellers/query-config.ts b/packages/core/src/api/admin/sellers/query-config.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/sellers/query-config.ts
rename to packages/core/src/api/admin/sellers/query-config.ts
diff --git a/packages/core-plugin/src/api/admin/sellers/route.ts b/packages/core/src/api/admin/sellers/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/sellers/route.ts
rename to packages/core/src/api/admin/sellers/route.ts
diff --git a/packages/core-plugin/src/api/admin/sellers/validators.ts b/packages/core/src/api/admin/sellers/validators.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/sellers/validators.ts
rename to packages/core/src/api/admin/sellers/validators.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/subscription-plans/[id]/overrides/[override_id]/route.ts
rename to packages/core/src/api/admin/subscription-plans/[id]/overrides/[override_id]/route.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/subscription-plans/[id]/overrides/route.ts
rename to packages/core/src/api/admin/subscription-plans/[id]/overrides/route.ts
diff --git a/packages/core-plugin/src/api/admin/subscription-plans/[id]/route.ts b/packages/core/src/api/admin/subscription-plans/[id]/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/subscription-plans/[id]/route.ts
rename to packages/core/src/api/admin/subscription-plans/[id]/route.ts
diff --git a/packages/core-plugin/src/api/admin/subscription-plans/middlewares.ts b/packages/core/src/api/admin/subscription-plans/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/subscription-plans/middlewares.ts
rename to packages/core/src/api/admin/subscription-plans/middlewares.ts
diff --git a/packages/core-plugin/src/api/admin/subscription-plans/query-config.ts b/packages/core/src/api/admin/subscription-plans/query-config.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/subscription-plans/query-config.ts
rename to packages/core/src/api/admin/subscription-plans/query-config.ts
diff --git a/packages/core-plugin/src/api/admin/subscription-plans/route.ts b/packages/core/src/api/admin/subscription-plans/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/subscription-plans/route.ts
rename to packages/core/src/api/admin/subscription-plans/route.ts
diff --git a/packages/core-plugin/src/api/admin/subscription-plans/validators.ts b/packages/core/src/api/admin/subscription-plans/validators.ts
similarity index 100%
rename from packages/core-plugin/src/api/admin/subscription-plans/validators.ts
rename to packages/core/src/api/admin/subscription-plans/validators.ts
diff --git a/packages/core-plugin/src/api/hooks/middlewares.ts b/packages/core/src/api/hooks/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/hooks/middlewares.ts
rename to packages/core/src/api/hooks/middlewares.ts
diff --git a/packages/core-plugin/src/api/hooks/payout/route.ts b/packages/core/src/api/hooks/payout/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/hooks/payout/route.ts
rename to packages/core/src/api/hooks/payout/route.ts
diff --git a/packages/core-plugin/src/api/middlewares.ts b/packages/core/src/api/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/middlewares.ts
rename to packages/core/src/api/middlewares.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/store/carts/[id]/complete/query-config.ts
rename to packages/core/src/api/store/carts/[id]/complete/query-config.ts
diff --git a/packages/core-plugin/src/api/store/carts/[id]/complete/route.ts b/packages/core/src/api/store/carts/[id]/complete/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/store/carts/[id]/complete/route.ts
rename to packages/core/src/api/store/carts/[id]/complete/route.ts
diff --git a/packages/core-plugin/src/api/store/carts/[id]/complete/validators.ts b/packages/core/src/api/store/carts/[id]/complete/validators.ts
similarity index 100%
rename from packages/core-plugin/src/api/store/carts/[id]/complete/validators.ts
rename to packages/core/src/api/store/carts/[id]/complete/validators.ts
diff --git a/packages/core-plugin/src/api/store/carts/[id]/promotions/route.ts b/packages/core/src/api/store/carts/[id]/promotions/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/store/carts/[id]/promotions/route.ts
rename to packages/core/src/api/store/carts/[id]/promotions/route.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/store/carts/[id]/shipping-methods/route.ts
rename to packages/core/src/api/store/carts/[id]/shipping-methods/route.ts
diff --git a/packages/core-plugin/src/api/store/carts/helpers.ts b/packages/core/src/api/store/carts/helpers.ts
similarity index 100%
rename from packages/core-plugin/src/api/store/carts/helpers.ts
rename to packages/core/src/api/store/carts/helpers.ts
diff --git a/packages/core-plugin/src/api/store/carts/middlewares.ts b/packages/core/src/api/store/carts/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/store/carts/middlewares.ts
rename to packages/core/src/api/store/carts/middlewares.ts
diff --git a/packages/core-plugin/src/api/store/middlewares.ts b/packages/core/src/api/store/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/store/middlewares.ts
rename to packages/core/src/api/store/middlewares.ts
diff --git a/packages/core-plugin/src/api/store/order-groups/[id]/route.ts b/packages/core/src/api/store/order-groups/[id]/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/store/order-groups/[id]/route.ts
rename to packages/core/src/api/store/order-groups/[id]/route.ts
diff --git a/packages/core-plugin/src/api/store/order-groups/middlewares.ts b/packages/core/src/api/store/order-groups/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/store/order-groups/middlewares.ts
rename to packages/core/src/api/store/order-groups/middlewares.ts
diff --git a/packages/core-plugin/src/api/store/order-groups/query-config.ts b/packages/core/src/api/store/order-groups/query-config.ts
similarity index 100%
rename from packages/core-plugin/src/api/store/order-groups/query-config.ts
rename to packages/core/src/api/store/order-groups/query-config.ts
diff --git a/packages/core-plugin/src/api/store/order-groups/route.ts b/packages/core/src/api/store/order-groups/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/store/order-groups/route.ts
rename to packages/core/src/api/store/order-groups/route.ts
diff --git a/packages/core-plugin/src/api/store/order-groups/validators.ts b/packages/core/src/api/store/order-groups/validators.ts
similarity index 100%
rename from packages/core-plugin/src/api/store/order-groups/validators.ts
rename to packages/core/src/api/store/order-groups/validators.ts
diff --git a/packages/core-plugin/src/api/store/sellers/[id]/route.ts b/packages/core/src/api/store/sellers/[id]/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/store/sellers/[id]/route.ts
rename to packages/core/src/api/store/sellers/[id]/route.ts
diff --git a/packages/core-plugin/src/api/store/sellers/middlewares.ts b/packages/core/src/api/store/sellers/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/store/sellers/middlewares.ts
rename to packages/core/src/api/store/sellers/middlewares.ts
diff --git a/packages/core-plugin/src/api/store/sellers/query-config.ts b/packages/core/src/api/store/sellers/query-config.ts
similarity index 100%
rename from packages/core-plugin/src/api/store/sellers/query-config.ts
rename to packages/core/src/api/store/sellers/query-config.ts
diff --git a/packages/core-plugin/src/api/store/sellers/route.ts b/packages/core/src/api/store/sellers/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/store/sellers/route.ts
rename to packages/core/src/api/store/sellers/route.ts
diff --git a/packages/core-plugin/src/api/store/sellers/validators.ts b/packages/core/src/api/store/sellers/validators.ts
similarity index 100%
rename from packages/core-plugin/src/api/store/sellers/validators.ts
rename to packages/core/src/api/store/sellers/validators.ts
diff --git a/packages/core-plugin/src/api/store/shipping-options/route.ts b/packages/core/src/api/store/shipping-options/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/store/shipping-options/route.ts
rename to packages/core/src/api/store/shipping-options/route.ts
diff --git a/packages/core-plugin/src/api/utils/ensure-seller-middleware.ts b/packages/core/src/api/utils/ensure-seller-middleware.ts
similarity index 100%
rename from packages/core-plugin/src/api/utils/ensure-seller-middleware.ts
rename to packages/core/src/api/utils/ensure-seller-middleware.ts
diff --git a/packages/core-plugin/src/api/utils/filter-by-seller-id.ts b/packages/core/src/api/utils/filter-by-seller-id.ts
similarity index 100%
rename from packages/core-plugin/src/api/utils/filter-by-seller-id.ts
rename to packages/core/src/api/utils/filter-by-seller-id.ts
diff --git a/packages/core-plugin/src/api/utils/index.ts b/packages/core/src/api/utils/index.ts
similarity index 100%
rename from packages/core-plugin/src/api/utils/index.ts
rename to packages/core/src/api/utils/index.ts
diff --git a/packages/core-plugin/src/api/utils/scan-unauthenticated-routes.ts b/packages/core/src/api/utils/scan-unauthenticated-routes.ts
similarity index 100%
rename from packages/core-plugin/src/api/utils/scan-unauthenticated-routes.ts
rename to packages/core/src/api/utils/scan-unauthenticated-routes.ts
diff --git a/packages/core-plugin/src/api/utils/unless-base-url.ts b/packages/core/src/api/utils/unless-base-url.ts
similarity index 100%
rename from packages/core-plugin/src/api/utils/unless-base-url.ts
rename to packages/core/src/api/utils/unless-base-url.ts
diff --git a/packages/core-plugin/src/api/utils/vendor-cors-middleware.ts b/packages/core/src/api/utils/vendor-cors-middleware.ts
similarity index 100%
rename from packages/core-plugin/src/api/utils/vendor-cors-middleware.ts
rename to packages/core/src/api/utils/vendor-cors-middleware.ts
diff --git a/packages/core-plugin/src/api/vendor/attributes/middlewares.ts b/packages/core/src/api/vendor/attributes/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/attributes/middlewares.ts
rename to packages/core/src/api/vendor/attributes/middlewares.ts
diff --git a/packages/core-plugin/src/api/vendor/attributes/route.ts b/packages/core/src/api/vendor/attributes/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/attributes/route.ts
rename to packages/core/src/api/vendor/attributes/route.ts
diff --git a/packages/core-plugin/src/api/vendor/campaigns/[id]/promotions/route.ts b/packages/core/src/api/vendor/campaigns/[id]/promotions/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/campaigns/[id]/promotions/route.ts
rename to packages/core/src/api/vendor/campaigns/[id]/promotions/route.ts
diff --git a/packages/core-plugin/src/api/vendor/campaigns/[id]/route.ts b/packages/core/src/api/vendor/campaigns/[id]/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/campaigns/[id]/route.ts
rename to packages/core/src/api/vendor/campaigns/[id]/route.ts
diff --git a/packages/core-plugin/src/api/vendor/campaigns/helpers.ts b/packages/core/src/api/vendor/campaigns/helpers.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/campaigns/helpers.ts
rename to packages/core/src/api/vendor/campaigns/helpers.ts
diff --git a/packages/core-plugin/src/api/vendor/campaigns/middlewares.ts b/packages/core/src/api/vendor/campaigns/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/campaigns/middlewares.ts
rename to packages/core/src/api/vendor/campaigns/middlewares.ts
diff --git a/packages/core-plugin/src/api/vendor/campaigns/query-config.ts b/packages/core/src/api/vendor/campaigns/query-config.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/campaigns/query-config.ts
rename to packages/core/src/api/vendor/campaigns/query-config.ts
diff --git a/packages/core-plugin/src/api/vendor/campaigns/route.ts b/packages/core/src/api/vendor/campaigns/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/campaigns/route.ts
rename to packages/core/src/api/vendor/campaigns/route.ts
diff --git a/packages/core-plugin/src/api/vendor/campaigns/validators.ts b/packages/core/src/api/vendor/campaigns/validators.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/campaigns/validators.ts
rename to packages/core/src/api/vendor/campaigns/validators.ts
diff --git a/packages/core-plugin/src/api/vendor/collections/[id]/products/route.ts b/packages/core/src/api/vendor/collections/[id]/products/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/collections/[id]/products/route.ts
rename to packages/core/src/api/vendor/collections/[id]/products/route.ts
diff --git a/packages/core-plugin/src/api/vendor/collections/[id]/route.ts b/packages/core/src/api/vendor/collections/[id]/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/collections/[id]/route.ts
rename to packages/core/src/api/vendor/collections/[id]/route.ts
diff --git a/packages/core-plugin/src/api/vendor/collections/helpers.ts b/packages/core/src/api/vendor/collections/helpers.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/collections/helpers.ts
rename to packages/core/src/api/vendor/collections/helpers.ts
diff --git a/packages/core-plugin/src/api/vendor/collections/middlewares.ts b/packages/core/src/api/vendor/collections/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/collections/middlewares.ts
rename to packages/core/src/api/vendor/collections/middlewares.ts
diff --git a/packages/core-plugin/src/api/vendor/collections/query-config.ts b/packages/core/src/api/vendor/collections/query-config.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/collections/query-config.ts
rename to packages/core/src/api/vendor/collections/query-config.ts
diff --git a/packages/core-plugin/src/api/vendor/collections/route.ts b/packages/core/src/api/vendor/collections/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/collections/route.ts
rename to packages/core/src/api/vendor/collections/route.ts
diff --git a/packages/core-plugin/src/api/vendor/collections/validators.ts b/packages/core/src/api/vendor/collections/validators.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/collections/validators.ts
rename to packages/core/src/api/vendor/collections/validators.ts
diff --git a/packages/core-plugin/src/api/vendor/currencies/[code]/route.ts b/packages/core/src/api/vendor/currencies/[code]/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/currencies/[code]/route.ts
rename to packages/core/src/api/vendor/currencies/[code]/route.ts
diff --git a/packages/core-plugin/src/api/vendor/currencies/middlewares.ts b/packages/core/src/api/vendor/currencies/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/currencies/middlewares.ts
rename to packages/core/src/api/vendor/currencies/middlewares.ts
diff --git a/packages/core-plugin/src/api/vendor/currencies/query-config.ts b/packages/core/src/api/vendor/currencies/query-config.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/currencies/query-config.ts
rename to packages/core/src/api/vendor/currencies/query-config.ts
diff --git a/packages/core-plugin/src/api/vendor/currencies/route.ts b/packages/core/src/api/vendor/currencies/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/currencies/route.ts
rename to packages/core/src/api/vendor/currencies/route.ts
diff --git a/packages/core-plugin/src/api/vendor/currencies/validators.ts b/packages/core/src/api/vendor/currencies/validators.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/currencies/validators.ts
rename to packages/core/src/api/vendor/currencies/validators.ts
diff --git a/packages/core-plugin/src/api/vendor/customers/[id]/route.ts b/packages/core/src/api/vendor/customers/[id]/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/customers/[id]/route.ts
rename to packages/core/src/api/vendor/customers/[id]/route.ts
diff --git a/packages/core-plugin/src/api/vendor/customers/helpers.ts b/packages/core/src/api/vendor/customers/helpers.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/customers/helpers.ts
rename to packages/core/src/api/vendor/customers/helpers.ts
diff --git a/packages/core-plugin/src/api/vendor/customers/middlewares.ts b/packages/core/src/api/vendor/customers/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/customers/middlewares.ts
rename to packages/core/src/api/vendor/customers/middlewares.ts
diff --git a/packages/core-plugin/src/api/vendor/customers/query-config.ts b/packages/core/src/api/vendor/customers/query-config.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/customers/query-config.ts
rename to packages/core/src/api/vendor/customers/query-config.ts
diff --git a/packages/core-plugin/src/api/vendor/customers/route.ts b/packages/core/src/api/vendor/customers/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/customers/route.ts
rename to packages/core/src/api/vendor/customers/route.ts
diff --git a/packages/core-plugin/src/api/vendor/customers/validators.ts b/packages/core/src/api/vendor/customers/validators.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/customers/validators.ts
rename to packages/core/src/api/vendor/customers/validators.ts
diff --git a/packages/core-plugin/src/api/vendor/feature-flags/route.ts b/packages/core/src/api/vendor/feature-flags/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/feature-flags/route.ts
rename to packages/core/src/api/vendor/feature-flags/route.ts
diff --git a/packages/core-plugin/src/api/vendor/fulfillment-providers/middlewares.ts b/packages/core/src/api/vendor/fulfillment-providers/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/fulfillment-providers/middlewares.ts
rename to packages/core/src/api/vendor/fulfillment-providers/middlewares.ts
diff --git a/packages/core-plugin/src/api/vendor/fulfillment-providers/query-config.ts b/packages/core/src/api/vendor/fulfillment-providers/query-config.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/fulfillment-providers/query-config.ts
rename to packages/core/src/api/vendor/fulfillment-providers/query-config.ts
diff --git a/packages/core-plugin/src/api/vendor/fulfillment-providers/route.ts b/packages/core/src/api/vendor/fulfillment-providers/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/fulfillment-providers/route.ts
rename to packages/core/src/api/vendor/fulfillment-providers/route.ts
diff --git a/packages/core-plugin/src/api/vendor/fulfillment-providers/validators.ts b/packages/core/src/api/vendor/fulfillment-providers/validators.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/fulfillment-providers/validators.ts
rename to packages/core/src/api/vendor/fulfillment-providers/validators.ts
diff --git a/packages/core-plugin/src/api/vendor/fulfillment-sets/[id]/route.ts b/packages/core/src/api/vendor/fulfillment-sets/[id]/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/fulfillment-sets/[id]/route.ts
rename to packages/core/src/api/vendor/fulfillment-sets/[id]/route.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/fulfillment-sets/[id]/service-zones/[zone_id]/route.ts
rename to packages/core/src/api/vendor/fulfillment-sets/[id]/service-zones/[zone_id]/route.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/fulfillment-sets/[id]/service-zones/route.ts
rename to packages/core/src/api/vendor/fulfillment-sets/[id]/service-zones/route.ts
diff --git a/packages/core-plugin/src/api/vendor/fulfillment-sets/helpers.ts b/packages/core/src/api/vendor/fulfillment-sets/helpers.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/fulfillment-sets/helpers.ts
rename to packages/core/src/api/vendor/fulfillment-sets/helpers.ts
diff --git a/packages/core-plugin/src/api/vendor/fulfillment-sets/middlewares.ts b/packages/core/src/api/vendor/fulfillment-sets/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/fulfillment-sets/middlewares.ts
rename to packages/core/src/api/vendor/fulfillment-sets/middlewares.ts
diff --git a/packages/core-plugin/src/api/vendor/fulfillment-sets/query-config.ts b/packages/core/src/api/vendor/fulfillment-sets/query-config.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/fulfillment-sets/query-config.ts
rename to packages/core/src/api/vendor/fulfillment-sets/query-config.ts
diff --git a/packages/core-plugin/src/api/vendor/fulfillment-sets/validators.ts b/packages/core/src/api/vendor/fulfillment-sets/validators.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/fulfillment-sets/validators.ts
rename to packages/core/src/api/vendor/fulfillment-sets/validators.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/inventory-items/[id]/location-levels/[location_id]/route.ts
rename to packages/core/src/api/vendor/inventory-items/[id]/location-levels/[location_id]/route.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/inventory-items/[id]/location-levels/batch/route.ts
rename to packages/core/src/api/vendor/inventory-items/[id]/location-levels/batch/route.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/inventory-items/[id]/location-levels/route.ts
rename to packages/core/src/api/vendor/inventory-items/[id]/location-levels/route.ts
diff --git a/packages/core-plugin/src/api/vendor/inventory-items/[id]/route.ts b/packages/core/src/api/vendor/inventory-items/[id]/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/inventory-items/[id]/route.ts
rename to packages/core/src/api/vendor/inventory-items/[id]/route.ts
diff --git a/packages/core-plugin/src/api/vendor/inventory-items/helpers.ts b/packages/core/src/api/vendor/inventory-items/helpers.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/inventory-items/helpers.ts
rename to packages/core/src/api/vendor/inventory-items/helpers.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/inventory-items/location-levels/batch/route.ts
rename to packages/core/src/api/vendor/inventory-items/location-levels/batch/route.ts
diff --git a/packages/core-plugin/src/api/vendor/inventory-items/middlewares.ts b/packages/core/src/api/vendor/inventory-items/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/inventory-items/middlewares.ts
rename to packages/core/src/api/vendor/inventory-items/middlewares.ts
diff --git a/packages/core-plugin/src/api/vendor/inventory-items/query-config.ts b/packages/core/src/api/vendor/inventory-items/query-config.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/inventory-items/query-config.ts
rename to packages/core/src/api/vendor/inventory-items/query-config.ts
diff --git a/packages/core-plugin/src/api/vendor/inventory-items/route.ts b/packages/core/src/api/vendor/inventory-items/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/inventory-items/route.ts
rename to packages/core/src/api/vendor/inventory-items/route.ts
diff --git a/packages/core-plugin/src/api/vendor/inventory-items/validators.ts b/packages/core/src/api/vendor/inventory-items/validators.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/inventory-items/validators.ts
rename to packages/core/src/api/vendor/inventory-items/validators.ts
diff --git a/packages/core-plugin/src/api/vendor/members/invites/accept/route.ts b/packages/core/src/api/vendor/members/invites/accept/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/members/invites/accept/route.ts
rename to packages/core/src/api/vendor/members/invites/accept/route.ts
diff --git a/packages/core-plugin/src/api/vendor/members/me/route.ts b/packages/core/src/api/vendor/members/me/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/members/me/route.ts
rename to packages/core/src/api/vendor/members/me/route.ts
diff --git a/packages/core-plugin/src/api/vendor/members/middlewares.ts b/packages/core/src/api/vendor/members/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/members/middlewares.ts
rename to packages/core/src/api/vendor/members/middlewares.ts
diff --git a/packages/core-plugin/src/api/vendor/members/validators.ts b/packages/core/src/api/vendor/members/validators.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/members/validators.ts
rename to packages/core/src/api/vendor/members/validators.ts
diff --git a/packages/core-plugin/src/api/vendor/middlewares.ts b/packages/core/src/api/vendor/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/middlewares.ts
rename to packages/core/src/api/vendor/middlewares.ts
diff --git a/packages/core-plugin/src/api/vendor/orders/[id]/cancel/route.ts b/packages/core/src/api/vendor/orders/[id]/cancel/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/orders/[id]/cancel/route.ts
rename to packages/core/src/api/vendor/orders/[id]/cancel/route.ts
diff --git a/packages/core-plugin/src/api/vendor/orders/[id]/changes/route.ts b/packages/core/src/api/vendor/orders/[id]/changes/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/orders/[id]/changes/route.ts
rename to packages/core/src/api/vendor/orders/[id]/changes/route.ts
diff --git a/packages/core-plugin/src/api/vendor/orders/[id]/complete/route.ts b/packages/core/src/api/vendor/orders/[id]/complete/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/orders/[id]/complete/route.ts
rename to packages/core/src/api/vendor/orders/[id]/complete/route.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/cancel/route.ts
rename to packages/core/src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/cancel/route.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/mark-as-delivered/route.ts
rename to packages/core/src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/mark-as-delivered/route.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/shipments/route.ts
rename to packages/core/src/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/shipments/route.ts
diff --git a/packages/core-plugin/src/api/vendor/orders/[id]/fulfillments/route.ts b/packages/core/src/api/vendor/orders/[id]/fulfillments/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/orders/[id]/fulfillments/route.ts
rename to packages/core/src/api/vendor/orders/[id]/fulfillments/route.ts
diff --git a/packages/core-plugin/src/api/vendor/orders/[id]/preview/route.ts b/packages/core/src/api/vendor/orders/[id]/preview/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/orders/[id]/preview/route.ts
rename to packages/core/src/api/vendor/orders/[id]/preview/route.ts
diff --git a/packages/core-plugin/src/api/vendor/orders/[id]/route.ts b/packages/core/src/api/vendor/orders/[id]/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/orders/[id]/route.ts
rename to packages/core/src/api/vendor/orders/[id]/route.ts
diff --git a/packages/core-plugin/src/api/vendor/orders/helpers.ts b/packages/core/src/api/vendor/orders/helpers.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/orders/helpers.ts
rename to packages/core/src/api/vendor/orders/helpers.ts
diff --git a/packages/core-plugin/src/api/vendor/orders/middlewares.ts b/packages/core/src/api/vendor/orders/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/orders/middlewares.ts
rename to packages/core/src/api/vendor/orders/middlewares.ts
diff --git a/packages/core-plugin/src/api/vendor/orders/query-config.ts b/packages/core/src/api/vendor/orders/query-config.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/orders/query-config.ts
rename to packages/core/src/api/vendor/orders/query-config.ts
diff --git a/packages/core-plugin/src/api/vendor/orders/route.ts b/packages/core/src/api/vendor/orders/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/orders/route.ts
rename to packages/core/src/api/vendor/orders/route.ts
diff --git a/packages/core-plugin/src/api/vendor/orders/validators.ts b/packages/core/src/api/vendor/orders/validators.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/orders/validators.ts
rename to packages/core/src/api/vendor/orders/validators.ts
diff --git a/packages/core-plugin/src/api/vendor/payments/[id]/capture/route.ts b/packages/core/src/api/vendor/payments/[id]/capture/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/payments/[id]/capture/route.ts
rename to packages/core/src/api/vendor/payments/[id]/capture/route.ts
diff --git a/packages/core-plugin/src/api/vendor/payments/[id]/refund/route.ts b/packages/core/src/api/vendor/payments/[id]/refund/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/payments/[id]/refund/route.ts
rename to packages/core/src/api/vendor/payments/[id]/refund/route.ts
diff --git a/packages/core-plugin/src/api/vendor/payments/[id]/route.ts b/packages/core/src/api/vendor/payments/[id]/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/payments/[id]/route.ts
rename to packages/core/src/api/vendor/payments/[id]/route.ts
diff --git a/packages/core-plugin/src/api/vendor/payments/helpers.ts b/packages/core/src/api/vendor/payments/helpers.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/payments/helpers.ts
rename to packages/core/src/api/vendor/payments/helpers.ts
diff --git a/packages/core-plugin/src/api/vendor/payments/middlewares.ts b/packages/core/src/api/vendor/payments/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/payments/middlewares.ts
rename to packages/core/src/api/vendor/payments/middlewares.ts
diff --git a/packages/core-plugin/src/api/vendor/payments/payment-providers/route.ts b/packages/core/src/api/vendor/payments/payment-providers/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/payments/payment-providers/route.ts
rename to packages/core/src/api/vendor/payments/payment-providers/route.ts
diff --git a/packages/core-plugin/src/api/vendor/payments/query-config.ts b/packages/core/src/api/vendor/payments/query-config.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/payments/query-config.ts
rename to packages/core/src/api/vendor/payments/query-config.ts
diff --git a/packages/core-plugin/src/api/vendor/payments/route.ts b/packages/core/src/api/vendor/payments/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/payments/route.ts
rename to packages/core/src/api/vendor/payments/route.ts
diff --git a/packages/core-plugin/src/api/vendor/payments/validators.ts b/packages/core/src/api/vendor/payments/validators.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/payments/validators.ts
rename to packages/core/src/api/vendor/payments/validators.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/payout-accounts/[id]/onboarding/route.ts
rename to packages/core/src/api/vendor/payout-accounts/[id]/onboarding/route.ts
diff --git a/packages/core-plugin/src/api/vendor/payout-accounts/[id]/route.ts b/packages/core/src/api/vendor/payout-accounts/[id]/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/payout-accounts/[id]/route.ts
rename to packages/core/src/api/vendor/payout-accounts/[id]/route.ts
diff --git a/packages/core-plugin/src/api/vendor/payout-accounts/helpers.ts b/packages/core/src/api/vendor/payout-accounts/helpers.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/payout-accounts/helpers.ts
rename to packages/core/src/api/vendor/payout-accounts/helpers.ts
diff --git a/packages/core-plugin/src/api/vendor/payout-accounts/middlewares.ts b/packages/core/src/api/vendor/payout-accounts/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/payout-accounts/middlewares.ts
rename to packages/core/src/api/vendor/payout-accounts/middlewares.ts
diff --git a/packages/core-plugin/src/api/vendor/payout-accounts/query-config.ts b/packages/core/src/api/vendor/payout-accounts/query-config.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/payout-accounts/query-config.ts
rename to packages/core/src/api/vendor/payout-accounts/query-config.ts
diff --git a/packages/core-plugin/src/api/vendor/payout-accounts/route.ts b/packages/core/src/api/vendor/payout-accounts/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/payout-accounts/route.ts
rename to packages/core/src/api/vendor/payout-accounts/route.ts
diff --git a/packages/core-plugin/src/api/vendor/payout-accounts/validators.ts b/packages/core/src/api/vendor/payout-accounts/validators.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/payout-accounts/validators.ts
rename to packages/core/src/api/vendor/payout-accounts/validators.ts
diff --git a/packages/core-plugin/src/api/vendor/payouts/[id]/route.ts b/packages/core/src/api/vendor/payouts/[id]/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/payouts/[id]/route.ts
rename to packages/core/src/api/vendor/payouts/[id]/route.ts
diff --git a/packages/core-plugin/src/api/vendor/payouts/helpers.ts b/packages/core/src/api/vendor/payouts/helpers.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/payouts/helpers.ts
rename to packages/core/src/api/vendor/payouts/helpers.ts
diff --git a/packages/core-plugin/src/api/vendor/payouts/middlewares.ts b/packages/core/src/api/vendor/payouts/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/payouts/middlewares.ts
rename to packages/core/src/api/vendor/payouts/middlewares.ts
diff --git a/packages/core-plugin/src/api/vendor/payouts/query-config.ts b/packages/core/src/api/vendor/payouts/query-config.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/payouts/query-config.ts
rename to packages/core/src/api/vendor/payouts/query-config.ts
diff --git a/packages/core-plugin/src/api/vendor/payouts/route.ts b/packages/core/src/api/vendor/payouts/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/payouts/route.ts
rename to packages/core/src/api/vendor/payouts/route.ts
diff --git a/packages/core-plugin/src/api/vendor/payouts/validators.ts b/packages/core/src/api/vendor/payouts/validators.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/payouts/validators.ts
rename to packages/core/src/api/vendor/payouts/validators.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/price-lists/[id]/prices/batch/route.ts
rename to packages/core/src/api/vendor/price-lists/[id]/prices/batch/route.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/price-lists/[id]/prices/route.ts
rename to packages/core/src/api/vendor/price-lists/[id]/prices/route.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/price-lists/[id]/products/route.ts
rename to packages/core/src/api/vendor/price-lists/[id]/products/route.ts
diff --git a/packages/core-plugin/src/api/vendor/price-lists/[id]/route.ts b/packages/core/src/api/vendor/price-lists/[id]/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/price-lists/[id]/route.ts
rename to packages/core/src/api/vendor/price-lists/[id]/route.ts
diff --git a/packages/core-plugin/src/api/vendor/price-lists/helpers.ts b/packages/core/src/api/vendor/price-lists/helpers.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/price-lists/helpers.ts
rename to packages/core/src/api/vendor/price-lists/helpers.ts
diff --git a/packages/core-plugin/src/api/vendor/price-lists/middlewares.ts b/packages/core/src/api/vendor/price-lists/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/price-lists/middlewares.ts
rename to packages/core/src/api/vendor/price-lists/middlewares.ts
diff --git a/packages/core-plugin/src/api/vendor/price-lists/query-config.ts b/packages/core/src/api/vendor/price-lists/query-config.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/price-lists/query-config.ts
rename to packages/core/src/api/vendor/price-lists/query-config.ts
diff --git a/packages/core-plugin/src/api/vendor/price-lists/route.ts b/packages/core/src/api/vendor/price-lists/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/price-lists/route.ts
rename to packages/core/src/api/vendor/price-lists/route.ts
diff --git a/packages/core-plugin/src/api/vendor/price-lists/validators.ts b/packages/core/src/api/vendor/price-lists/validators.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/price-lists/validators.ts
rename to packages/core/src/api/vendor/price-lists/validators.ts
diff --git a/packages/core-plugin/src/api/vendor/price-preferences/[id]/route.ts b/packages/core/src/api/vendor/price-preferences/[id]/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/price-preferences/[id]/route.ts
rename to packages/core/src/api/vendor/price-preferences/[id]/route.ts
diff --git a/packages/core-plugin/src/api/vendor/price-preferences/middlewares.ts b/packages/core/src/api/vendor/price-preferences/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/price-preferences/middlewares.ts
rename to packages/core/src/api/vendor/price-preferences/middlewares.ts
diff --git a/packages/core-plugin/src/api/vendor/price-preferences/query-config.ts b/packages/core/src/api/vendor/price-preferences/query-config.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/price-preferences/query-config.ts
rename to packages/core/src/api/vendor/price-preferences/query-config.ts
diff --git a/packages/core-plugin/src/api/vendor/price-preferences/route.ts b/packages/core/src/api/vendor/price-preferences/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/price-preferences/route.ts
rename to packages/core/src/api/vendor/price-preferences/route.ts
diff --git a/packages/core-plugin/src/api/vendor/price-preferences/validators.ts b/packages/core/src/api/vendor/price-preferences/validators.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/price-preferences/validators.ts
rename to packages/core/src/api/vendor/price-preferences/validators.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/product-categories/[id]/products/route.ts
rename to packages/core/src/api/vendor/product-categories/[id]/products/route.ts
diff --git a/packages/core-plugin/src/api/vendor/product-categories/[id]/route.ts b/packages/core/src/api/vendor/product-categories/[id]/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/product-categories/[id]/route.ts
rename to packages/core/src/api/vendor/product-categories/[id]/route.ts
diff --git a/packages/core-plugin/src/api/vendor/product-categories/helpers.ts b/packages/core/src/api/vendor/product-categories/helpers.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/product-categories/helpers.ts
rename to packages/core/src/api/vendor/product-categories/helpers.ts
diff --git a/packages/core-plugin/src/api/vendor/product-categories/middlewares.ts b/packages/core/src/api/vendor/product-categories/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/product-categories/middlewares.ts
rename to packages/core/src/api/vendor/product-categories/middlewares.ts
diff --git a/packages/core-plugin/src/api/vendor/product-categories/query-config.ts b/packages/core/src/api/vendor/product-categories/query-config.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/product-categories/query-config.ts
rename to packages/core/src/api/vendor/product-categories/query-config.ts
diff --git a/packages/core-plugin/src/api/vendor/product-categories/route.ts b/packages/core/src/api/vendor/product-categories/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/product-categories/route.ts
rename to packages/core/src/api/vendor/product-categories/route.ts
diff --git a/packages/core-plugin/src/api/vendor/product-categories/validators.ts b/packages/core/src/api/vendor/product-categories/validators.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/product-categories/validators.ts
rename to packages/core/src/api/vendor/product-categories/validators.ts
diff --git a/packages/core-plugin/src/api/vendor/product-tags/[id]/route.ts b/packages/core/src/api/vendor/product-tags/[id]/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/product-tags/[id]/route.ts
rename to packages/core/src/api/vendor/product-tags/[id]/route.ts
diff --git a/packages/core-plugin/src/api/vendor/product-tags/middlewares.ts b/packages/core/src/api/vendor/product-tags/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/product-tags/middlewares.ts
rename to packages/core/src/api/vendor/product-tags/middlewares.ts
diff --git a/packages/core-plugin/src/api/vendor/product-tags/query-config.ts b/packages/core/src/api/vendor/product-tags/query-config.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/product-tags/query-config.ts
rename to packages/core/src/api/vendor/product-tags/query-config.ts
diff --git a/packages/core-plugin/src/api/vendor/product-tags/route.ts b/packages/core/src/api/vendor/product-tags/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/product-tags/route.ts
rename to packages/core/src/api/vendor/product-tags/route.ts
diff --git a/packages/core-plugin/src/api/vendor/product-tags/validators.ts b/packages/core/src/api/vendor/product-tags/validators.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/product-tags/validators.ts
rename to packages/core/src/api/vendor/product-tags/validators.ts
diff --git a/packages/core-plugin/src/api/vendor/product-types/[id]/route.ts b/packages/core/src/api/vendor/product-types/[id]/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/product-types/[id]/route.ts
rename to packages/core/src/api/vendor/product-types/[id]/route.ts
diff --git a/packages/core-plugin/src/api/vendor/product-types/middlewares.ts b/packages/core/src/api/vendor/product-types/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/product-types/middlewares.ts
rename to packages/core/src/api/vendor/product-types/middlewares.ts
diff --git a/packages/core-plugin/src/api/vendor/product-types/query-config.ts b/packages/core/src/api/vendor/product-types/query-config.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/product-types/query-config.ts
rename to packages/core/src/api/vendor/product-types/query-config.ts
diff --git a/packages/core-plugin/src/api/vendor/product-types/route.ts b/packages/core/src/api/vendor/product-types/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/product-types/route.ts
rename to packages/core/src/api/vendor/product-types/route.ts
diff --git a/packages/core-plugin/src/api/vendor/product-types/validators.ts b/packages/core/src/api/vendor/product-types/validators.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/product-types/validators.ts
rename to packages/core/src/api/vendor/product-types/validators.ts
diff --git a/packages/core-plugin/src/api/vendor/product-variants/middlewares.ts b/packages/core/src/api/vendor/product-variants/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/product-variants/middlewares.ts
rename to packages/core/src/api/vendor/product-variants/middlewares.ts
diff --git a/packages/core-plugin/src/api/vendor/product-variants/query-config.ts b/packages/core/src/api/vendor/product-variants/query-config.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/product-variants/query-config.ts
rename to packages/core/src/api/vendor/product-variants/query-config.ts
diff --git a/packages/core-plugin/src/api/vendor/product-variants/route.ts b/packages/core/src/api/vendor/product-variants/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/product-variants/route.ts
rename to packages/core/src/api/vendor/product-variants/route.ts
diff --git a/packages/core-plugin/src/api/vendor/product-variants/validators.ts b/packages/core/src/api/vendor/product-variants/validators.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/product-variants/validators.ts
rename to packages/core/src/api/vendor/product-variants/validators.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/products/[id]/attributes/[attribute_id]/route.ts
rename to packages/core/src/api/vendor/products/[id]/attributes/[attribute_id]/route.ts
diff --git a/packages/core-plugin/src/api/vendor/products/[id]/attributes/route.ts b/packages/core/src/api/vendor/products/[id]/attributes/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/products/[id]/attributes/route.ts
rename to packages/core/src/api/vendor/products/[id]/attributes/route.ts
diff --git a/packages/core-plugin/src/api/vendor/products/[id]/attributes/utils.ts b/packages/core/src/api/vendor/products/[id]/attributes/utils.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/products/[id]/attributes/utils.ts
rename to packages/core/src/api/vendor/products/[id]/attributes/utils.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/products/[id]/options/[option_id]/route.ts
rename to packages/core/src/api/vendor/products/[id]/options/[option_id]/route.ts
diff --git a/packages/core-plugin/src/api/vendor/products/[id]/options/route.ts b/packages/core/src/api/vendor/products/[id]/options/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/products/[id]/options/route.ts
rename to packages/core/src/api/vendor/products/[id]/options/route.ts
diff --git a/packages/core-plugin/src/api/vendor/products/[id]/route.ts b/packages/core/src/api/vendor/products/[id]/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/products/[id]/route.ts
rename to packages/core/src/api/vendor/products/[id]/route.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/products/[id]/variants/[variant_id]/media/route.ts
rename to packages/core/src/api/vendor/products/[id]/variants/[variant_id]/media/route.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/products/[id]/variants/[variant_id]/route.ts
rename to packages/core/src/api/vendor/products/[id]/variants/[variant_id]/route.ts
diff --git a/packages/core-plugin/src/api/vendor/products/[id]/variants/route.ts b/packages/core/src/api/vendor/products/[id]/variants/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/products/[id]/variants/route.ts
rename to packages/core/src/api/vendor/products/[id]/variants/route.ts
diff --git a/packages/core-plugin/src/api/vendor/products/helpers.ts b/packages/core/src/api/vendor/products/helpers.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/products/helpers.ts
rename to packages/core/src/api/vendor/products/helpers.ts
diff --git a/packages/core-plugin/src/api/vendor/products/middlewares.ts b/packages/core/src/api/vendor/products/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/products/middlewares.ts
rename to packages/core/src/api/vendor/products/middlewares.ts
diff --git a/packages/core-plugin/src/api/vendor/products/query-config.ts b/packages/core/src/api/vendor/products/query-config.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/products/query-config.ts
rename to packages/core/src/api/vendor/products/query-config.ts
diff --git a/packages/core-plugin/src/api/vendor/products/route.ts b/packages/core/src/api/vendor/products/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/products/route.ts
rename to packages/core/src/api/vendor/products/route.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/products/utils/transform-product-attributes.ts
rename to packages/core/src/api/vendor/products/utils/transform-product-attributes.ts
diff --git a/packages/core-plugin/src/api/vendor/products/validators.ts b/packages/core/src/api/vendor/products/validators.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/products/validators.ts
rename to packages/core/src/api/vendor/products/validators.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/promotions/[id]/[rule_type]/route.ts
rename to packages/core/src/api/vendor/promotions/[id]/[rule_type]/route.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/promotions/[id]/buy-rules/batch/route.ts
rename to packages/core/src/api/vendor/promotions/[id]/buy-rules/batch/route.ts
diff --git a/packages/core-plugin/src/api/vendor/promotions/[id]/route.ts b/packages/core/src/api/vendor/promotions/[id]/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/promotions/[id]/route.ts
rename to packages/core/src/api/vendor/promotions/[id]/route.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/promotions/[id]/rules/batch/route.ts
rename to packages/core/src/api/vendor/promotions/[id]/rules/batch/route.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/promotions/[id]/target-rules/batch/route.ts
rename to packages/core/src/api/vendor/promotions/[id]/target-rules/batch/route.ts
diff --git a/packages/core-plugin/src/api/vendor/promotions/helpers.ts b/packages/core/src/api/vendor/promotions/helpers.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/promotions/helpers.ts
rename to packages/core/src/api/vendor/promotions/helpers.ts
diff --git a/packages/core-plugin/src/api/vendor/promotions/middlewares.ts b/packages/core/src/api/vendor/promotions/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/promotions/middlewares.ts
rename to packages/core/src/api/vendor/promotions/middlewares.ts
diff --git a/packages/core-plugin/src/api/vendor/promotions/query-config.ts b/packages/core/src/api/vendor/promotions/query-config.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/promotions/query-config.ts
rename to packages/core/src/api/vendor/promotions/query-config.ts
diff --git a/packages/core-plugin/src/api/vendor/promotions/route.ts b/packages/core/src/api/vendor/promotions/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/promotions/route.ts
rename to packages/core/src/api/vendor/promotions/route.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/promotions/rule-attribute-options/[rule_type]/route.ts
rename to packages/core/src/api/vendor/promotions/rule-attribute-options/[rule_type]/route.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/promotions/rule-value-options/[rule_type]/[rule_attribute_id]/route.ts
rename to packages/core/src/api/vendor/promotions/rule-value-options/[rule_type]/[rule_attribute_id]/route.ts
diff --git a/packages/core-plugin/src/api/vendor/promotions/utils/index.ts b/packages/core/src/api/vendor/promotions/utils/index.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/promotions/utils/index.ts
rename to packages/core/src/api/vendor/promotions/utils/index.ts
diff --git a/packages/core-plugin/src/api/vendor/promotions/utils/operators-map.ts b/packages/core/src/api/vendor/promotions/utils/operators-map.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/promotions/utils/operators-map.ts
rename to packages/core/src/api/vendor/promotions/utils/operators-map.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/promotions/utils/rule-attributes-map.ts
rename to packages/core/src/api/vendor/promotions/utils/rule-attributes-map.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/promotions/utils/rule-query-configuration.ts
rename to packages/core/src/api/vendor/promotions/utils/rule-query-configuration.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/promotions/utils/validate-rule-attribute.ts
rename to packages/core/src/api/vendor/promotions/utils/validate-rule-attribute.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/promotions/utils/validate-rule-type.ts
rename to packages/core/src/api/vendor/promotions/utils/validate-rule-type.ts
diff --git a/packages/core-plugin/src/api/vendor/promotions/validators.ts b/packages/core/src/api/vendor/promotions/validators.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/promotions/validators.ts
rename to packages/core/src/api/vendor/promotions/validators.ts
diff --git a/packages/core-plugin/src/api/vendor/refund-reasons/[id]/route.ts b/packages/core/src/api/vendor/refund-reasons/[id]/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/refund-reasons/[id]/route.ts
rename to packages/core/src/api/vendor/refund-reasons/[id]/route.ts
diff --git a/packages/core-plugin/src/api/vendor/refund-reasons/middlewares.ts b/packages/core/src/api/vendor/refund-reasons/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/refund-reasons/middlewares.ts
rename to packages/core/src/api/vendor/refund-reasons/middlewares.ts
diff --git a/packages/core-plugin/src/api/vendor/refund-reasons/query-config.ts b/packages/core/src/api/vendor/refund-reasons/query-config.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/refund-reasons/query-config.ts
rename to packages/core/src/api/vendor/refund-reasons/query-config.ts
diff --git a/packages/core-plugin/src/api/vendor/refund-reasons/route.ts b/packages/core/src/api/vendor/refund-reasons/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/refund-reasons/route.ts
rename to packages/core/src/api/vendor/refund-reasons/route.ts
diff --git a/packages/core-plugin/src/api/vendor/refund-reasons/validators.ts b/packages/core/src/api/vendor/refund-reasons/validators.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/refund-reasons/validators.ts
rename to packages/core/src/api/vendor/refund-reasons/validators.ts
diff --git a/packages/core-plugin/src/api/vendor/regions/[id]/route.ts b/packages/core/src/api/vendor/regions/[id]/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/regions/[id]/route.ts
rename to packages/core/src/api/vendor/regions/[id]/route.ts
diff --git a/packages/core-plugin/src/api/vendor/regions/middlewares.ts b/packages/core/src/api/vendor/regions/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/regions/middlewares.ts
rename to packages/core/src/api/vendor/regions/middlewares.ts
diff --git a/packages/core-plugin/src/api/vendor/regions/query-config.ts b/packages/core/src/api/vendor/regions/query-config.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/regions/query-config.ts
rename to packages/core/src/api/vendor/regions/query-config.ts
diff --git a/packages/core-plugin/src/api/vendor/regions/route.ts b/packages/core/src/api/vendor/regions/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/regions/route.ts
rename to packages/core/src/api/vendor/regions/route.ts
diff --git a/packages/core-plugin/src/api/vendor/regions/validators.ts b/packages/core/src/api/vendor/regions/validators.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/regions/validators.ts
rename to packages/core/src/api/vendor/regions/validators.ts
diff --git a/packages/core-plugin/src/api/vendor/return-reasons/[id]/route.ts b/packages/core/src/api/vendor/return-reasons/[id]/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/return-reasons/[id]/route.ts
rename to packages/core/src/api/vendor/return-reasons/[id]/route.ts
diff --git a/packages/core-plugin/src/api/vendor/return-reasons/middlewares.ts b/packages/core/src/api/vendor/return-reasons/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/return-reasons/middlewares.ts
rename to packages/core/src/api/vendor/return-reasons/middlewares.ts
diff --git a/packages/core-plugin/src/api/vendor/return-reasons/query-config.ts b/packages/core/src/api/vendor/return-reasons/query-config.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/return-reasons/query-config.ts
rename to packages/core/src/api/vendor/return-reasons/query-config.ts
diff --git a/packages/core-plugin/src/api/vendor/return-reasons/route.ts b/packages/core/src/api/vendor/return-reasons/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/return-reasons/route.ts
rename to packages/core/src/api/vendor/return-reasons/route.ts
diff --git a/packages/core-plugin/src/api/vendor/return-reasons/validators.ts b/packages/core/src/api/vendor/return-reasons/validators.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/return-reasons/validators.ts
rename to packages/core/src/api/vendor/return-reasons/validators.ts
diff --git a/packages/core-plugin/src/api/vendor/returns/[id]/cancel/route.ts b/packages/core/src/api/vendor/returns/[id]/cancel/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/returns/[id]/cancel/route.ts
rename to packages/core/src/api/vendor/returns/[id]/cancel/route.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/returns/[id]/dismiss-items/[action_id]/route.ts
rename to packages/core/src/api/vendor/returns/[id]/dismiss-items/[action_id]/route.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/returns/[id]/dismiss-items/route.ts
rename to packages/core/src/api/vendor/returns/[id]/dismiss-items/route.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/returns/[id]/receive-items/[action_id]/route.ts
rename to packages/core/src/api/vendor/returns/[id]/receive-items/[action_id]/route.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/returns/[id]/receive-items/route.ts
rename to packages/core/src/api/vendor/returns/[id]/receive-items/route.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/returns/[id]/receive/confirm/route.ts
rename to packages/core/src/api/vendor/returns/[id]/receive/confirm/route.ts
diff --git a/packages/core-plugin/src/api/vendor/returns/[id]/receive/route.ts b/packages/core/src/api/vendor/returns/[id]/receive/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/returns/[id]/receive/route.ts
rename to packages/core/src/api/vendor/returns/[id]/receive/route.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/returns/[id]/request-items/[action_id]/route.ts
rename to packages/core/src/api/vendor/returns/[id]/request-items/[action_id]/route.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/returns/[id]/request-items/route.ts
rename to packages/core/src/api/vendor/returns/[id]/request-items/route.ts
diff --git a/packages/core-plugin/src/api/vendor/returns/[id]/request/route.ts b/packages/core/src/api/vendor/returns/[id]/request/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/returns/[id]/request/route.ts
rename to packages/core/src/api/vendor/returns/[id]/request/route.ts
diff --git a/packages/core-plugin/src/api/vendor/returns/[id]/route.ts b/packages/core/src/api/vendor/returns/[id]/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/returns/[id]/route.ts
rename to packages/core/src/api/vendor/returns/[id]/route.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/returns/[id]/shipping-method/[action_id]/route.ts
rename to packages/core/src/api/vendor/returns/[id]/shipping-method/[action_id]/route.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/returns/[id]/shipping-method/route.ts
rename to packages/core/src/api/vendor/returns/[id]/shipping-method/route.ts
diff --git a/packages/core-plugin/src/api/vendor/returns/helpers.ts b/packages/core/src/api/vendor/returns/helpers.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/returns/helpers.ts
rename to packages/core/src/api/vendor/returns/helpers.ts
diff --git a/packages/core-plugin/src/api/vendor/returns/middlewares.ts b/packages/core/src/api/vendor/returns/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/returns/middlewares.ts
rename to packages/core/src/api/vendor/returns/middlewares.ts
diff --git a/packages/core-plugin/src/api/vendor/returns/query-config.ts b/packages/core/src/api/vendor/returns/query-config.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/returns/query-config.ts
rename to packages/core/src/api/vendor/returns/query-config.ts
diff --git a/packages/core-plugin/src/api/vendor/returns/route.ts b/packages/core/src/api/vendor/returns/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/returns/route.ts
rename to packages/core/src/api/vendor/returns/route.ts
diff --git a/packages/core-plugin/src/api/vendor/returns/validators.ts b/packages/core/src/api/vendor/returns/validators.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/returns/validators.ts
rename to packages/core/src/api/vendor/returns/validators.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/sales-channels/[id]/products/route.ts
rename to packages/core/src/api/vendor/sales-channels/[id]/products/route.ts
diff --git a/packages/core-plugin/src/api/vendor/sales-channels/[id]/route.ts b/packages/core/src/api/vendor/sales-channels/[id]/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/sales-channels/[id]/route.ts
rename to packages/core/src/api/vendor/sales-channels/[id]/route.ts
diff --git a/packages/core-plugin/src/api/vendor/sales-channels/helpers.ts b/packages/core/src/api/vendor/sales-channels/helpers.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/sales-channels/helpers.ts
rename to packages/core/src/api/vendor/sales-channels/helpers.ts
diff --git a/packages/core-plugin/src/api/vendor/sales-channels/middlewares.ts b/packages/core/src/api/vendor/sales-channels/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/sales-channels/middlewares.ts
rename to packages/core/src/api/vendor/sales-channels/middlewares.ts
diff --git a/packages/core-plugin/src/api/vendor/sales-channels/query-config.ts b/packages/core/src/api/vendor/sales-channels/query-config.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/sales-channels/query-config.ts
rename to packages/core/src/api/vendor/sales-channels/query-config.ts
diff --git a/packages/core-plugin/src/api/vendor/sales-channels/route.ts b/packages/core/src/api/vendor/sales-channels/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/sales-channels/route.ts
rename to packages/core/src/api/vendor/sales-channels/route.ts
diff --git a/packages/core-plugin/src/api/vendor/sales-channels/validators.ts b/packages/core/src/api/vendor/sales-channels/validators.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/sales-channels/validators.ts
rename to packages/core/src/api/vendor/sales-channels/validators.ts
diff --git a/packages/core-plugin/src/api/vendor/sellers/[id]/address/route.ts b/packages/core/src/api/vendor/sellers/[id]/address/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/sellers/[id]/address/route.ts
rename to packages/core/src/api/vendor/sellers/[id]/address/route.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/sellers/[id]/members/[member_id]/route.ts
rename to packages/core/src/api/vendor/sellers/[id]/members/[member_id]/route.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/sellers/[id]/members/invites/route.ts
rename to packages/core/src/api/vendor/sellers/[id]/members/invites/route.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/sellers/[id]/members/me/route.ts
rename to packages/core/src/api/vendor/sellers/[id]/members/me/route.ts
diff --git a/packages/core-plugin/src/api/vendor/sellers/[id]/members/route.ts b/packages/core/src/api/vendor/sellers/[id]/members/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/sellers/[id]/members/route.ts
rename to packages/core/src/api/vendor/sellers/[id]/members/route.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/sellers/[id]/payment-details/route.ts
rename to packages/core/src/api/vendor/sellers/[id]/payment-details/route.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/sellers/[id]/professional-details/route.ts
rename to packages/core/src/api/vendor/sellers/[id]/professional-details/route.ts
diff --git a/packages/core-plugin/src/api/vendor/sellers/[id]/route.ts b/packages/core/src/api/vendor/sellers/[id]/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/sellers/[id]/route.ts
rename to packages/core/src/api/vendor/sellers/[id]/route.ts
diff --git a/packages/core-plugin/src/api/vendor/sellers/me/route.ts b/packages/core/src/api/vendor/sellers/me/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/sellers/me/route.ts
rename to packages/core/src/api/vendor/sellers/me/route.ts
diff --git a/packages/core-plugin/src/api/vendor/sellers/middlewares.ts b/packages/core/src/api/vendor/sellers/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/sellers/middlewares.ts
rename to packages/core/src/api/vendor/sellers/middlewares.ts
diff --git a/packages/core-plugin/src/api/vendor/sellers/query-config.ts b/packages/core/src/api/vendor/sellers/query-config.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/sellers/query-config.ts
rename to packages/core/src/api/vendor/sellers/query-config.ts
diff --git a/packages/core-plugin/src/api/vendor/sellers/route.ts b/packages/core/src/api/vendor/sellers/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/sellers/route.ts
rename to packages/core/src/api/vendor/sellers/route.ts
diff --git a/packages/core-plugin/src/api/vendor/sellers/select/route.ts b/packages/core/src/api/vendor/sellers/select/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/sellers/select/route.ts
rename to packages/core/src/api/vendor/sellers/select/route.ts
diff --git a/packages/core-plugin/src/api/vendor/sellers/validators.ts b/packages/core/src/api/vendor/sellers/validators.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/sellers/validators.ts
rename to packages/core/src/api/vendor/sellers/validators.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/shipping-option-types/[id]/route.ts
rename to packages/core/src/api/vendor/shipping-option-types/[id]/route.ts
diff --git a/packages/core-plugin/src/api/vendor/shipping-option-types/helpers.ts b/packages/core/src/api/vendor/shipping-option-types/helpers.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/shipping-option-types/helpers.ts
rename to packages/core/src/api/vendor/shipping-option-types/helpers.ts
diff --git a/packages/core-plugin/src/api/vendor/shipping-option-types/middlewares.ts b/packages/core/src/api/vendor/shipping-option-types/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/shipping-option-types/middlewares.ts
rename to packages/core/src/api/vendor/shipping-option-types/middlewares.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/shipping-option-types/query-config.ts
rename to packages/core/src/api/vendor/shipping-option-types/query-config.ts
diff --git a/packages/core-plugin/src/api/vendor/shipping-option-types/route.ts b/packages/core/src/api/vendor/shipping-option-types/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/shipping-option-types/route.ts
rename to packages/core/src/api/vendor/shipping-option-types/route.ts
diff --git a/packages/core-plugin/src/api/vendor/shipping-option-types/validators.ts b/packages/core/src/api/vendor/shipping-option-types/validators.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/shipping-option-types/validators.ts
rename to packages/core/src/api/vendor/shipping-option-types/validators.ts
diff --git a/packages/core-plugin/src/api/vendor/shipping-options/[id]/route.ts b/packages/core/src/api/vendor/shipping-options/[id]/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/shipping-options/[id]/route.ts
rename to packages/core/src/api/vendor/shipping-options/[id]/route.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/shipping-options/[id]/rules/batch/route.ts
rename to packages/core/src/api/vendor/shipping-options/[id]/rules/batch/route.ts
diff --git a/packages/core-plugin/src/api/vendor/shipping-options/helpers.ts b/packages/core/src/api/vendor/shipping-options/helpers.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/shipping-options/helpers.ts
rename to packages/core/src/api/vendor/shipping-options/helpers.ts
diff --git a/packages/core-plugin/src/api/vendor/shipping-options/middlewares.ts b/packages/core/src/api/vendor/shipping-options/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/shipping-options/middlewares.ts
rename to packages/core/src/api/vendor/shipping-options/middlewares.ts
diff --git a/packages/core-plugin/src/api/vendor/shipping-options/query-config.ts b/packages/core/src/api/vendor/shipping-options/query-config.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/shipping-options/query-config.ts
rename to packages/core/src/api/vendor/shipping-options/query-config.ts
diff --git a/packages/core-plugin/src/api/vendor/shipping-options/route.ts b/packages/core/src/api/vendor/shipping-options/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/shipping-options/route.ts
rename to packages/core/src/api/vendor/shipping-options/route.ts
diff --git a/packages/core-plugin/src/api/vendor/shipping-options/validators.ts b/packages/core/src/api/vendor/shipping-options/validators.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/shipping-options/validators.ts
rename to packages/core/src/api/vendor/shipping-options/validators.ts
diff --git a/packages/core-plugin/src/api/vendor/shipping-profiles/[id]/route.ts b/packages/core/src/api/vendor/shipping-profiles/[id]/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/shipping-profiles/[id]/route.ts
rename to packages/core/src/api/vendor/shipping-profiles/[id]/route.ts
diff --git a/packages/core-plugin/src/api/vendor/shipping-profiles/helpers.ts b/packages/core/src/api/vendor/shipping-profiles/helpers.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/shipping-profiles/helpers.ts
rename to packages/core/src/api/vendor/shipping-profiles/helpers.ts
diff --git a/packages/core-plugin/src/api/vendor/shipping-profiles/middlewares.ts b/packages/core/src/api/vendor/shipping-profiles/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/shipping-profiles/middlewares.ts
rename to packages/core/src/api/vendor/shipping-profiles/middlewares.ts
diff --git a/packages/core-plugin/src/api/vendor/shipping-profiles/query-config.ts b/packages/core/src/api/vendor/shipping-profiles/query-config.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/shipping-profiles/query-config.ts
rename to packages/core/src/api/vendor/shipping-profiles/query-config.ts
diff --git a/packages/core-plugin/src/api/vendor/shipping-profiles/route.ts b/packages/core/src/api/vendor/shipping-profiles/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/shipping-profiles/route.ts
rename to packages/core/src/api/vendor/shipping-profiles/route.ts
diff --git a/packages/core-plugin/src/api/vendor/shipping-profiles/validators.ts b/packages/core/src/api/vendor/shipping-profiles/validators.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/shipping-profiles/validators.ts
rename to packages/core/src/api/vendor/shipping-profiles/validators.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/stock-locations/[id]/fulfillment-providers/route.ts
rename to packages/core/src/api/vendor/stock-locations/[id]/fulfillment-providers/route.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/stock-locations/[id]/fulfillment-sets/route.ts
rename to packages/core/src/api/vendor/stock-locations/[id]/fulfillment-sets/route.ts
diff --git a/packages/core-plugin/src/api/vendor/stock-locations/[id]/route.ts b/packages/core/src/api/vendor/stock-locations/[id]/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/stock-locations/[id]/route.ts
rename to packages/core/src/api/vendor/stock-locations/[id]/route.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/stock-locations/[id]/sales-channels/route.ts
rename to packages/core/src/api/vendor/stock-locations/[id]/sales-channels/route.ts
diff --git a/packages/core-plugin/src/api/vendor/stock-locations/helpers.ts b/packages/core/src/api/vendor/stock-locations/helpers.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/stock-locations/helpers.ts
rename to packages/core/src/api/vendor/stock-locations/helpers.ts
diff --git a/packages/core-plugin/src/api/vendor/stock-locations/middlewares.ts b/packages/core/src/api/vendor/stock-locations/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/stock-locations/middlewares.ts
rename to packages/core/src/api/vendor/stock-locations/middlewares.ts
diff --git a/packages/core-plugin/src/api/vendor/stock-locations/query-config.ts b/packages/core/src/api/vendor/stock-locations/query-config.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/stock-locations/query-config.ts
rename to packages/core/src/api/vendor/stock-locations/query-config.ts
diff --git a/packages/core-plugin/src/api/vendor/stock-locations/route.ts b/packages/core/src/api/vendor/stock-locations/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/stock-locations/route.ts
rename to packages/core/src/api/vendor/stock-locations/route.ts
diff --git a/packages/core-plugin/src/api/vendor/stock-locations/validators.ts b/packages/core/src/api/vendor/stock-locations/validators.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/stock-locations/validators.ts
rename to packages/core/src/api/vendor/stock-locations/validators.ts
diff --git a/packages/core-plugin/src/api/vendor/stores/middlewares.ts b/packages/core/src/api/vendor/stores/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/stores/middlewares.ts
rename to packages/core/src/api/vendor/stores/middlewares.ts
diff --git a/packages/core-plugin/src/api/vendor/stores/query-config.ts b/packages/core/src/api/vendor/stores/query-config.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/stores/query-config.ts
rename to packages/core/src/api/vendor/stores/query-config.ts
diff --git a/packages/core-plugin/src/api/vendor/stores/route.ts b/packages/core/src/api/vendor/stores/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/stores/route.ts
rename to packages/core/src/api/vendor/stores/route.ts
diff --git a/packages/core-plugin/src/api/vendor/stores/validators.ts b/packages/core/src/api/vendor/stores/validators.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/stores/validators.ts
rename to packages/core/src/api/vendor/stores/validators.ts
diff --git a/packages/core-plugin/src/api/vendor/subscription/middlewares.ts b/packages/core/src/api/vendor/subscription/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/subscription/middlewares.ts
rename to packages/core/src/api/vendor/subscription/middlewares.ts
diff --git a/packages/core-plugin/src/api/vendor/subscription/route.ts b/packages/core/src/api/vendor/subscription/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/subscription/route.ts
rename to packages/core/src/api/vendor/subscription/route.ts
diff --git a/packages/core-plugin/src/api/vendor/uploads/middlewares.ts b/packages/core/src/api/vendor/uploads/middlewares.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/uploads/middlewares.ts
rename to packages/core/src/api/vendor/uploads/middlewares.ts
diff --git a/packages/core-plugin/src/api/vendor/uploads/route.ts b/packages/core/src/api/vendor/uploads/route.ts
similarity index 100%
rename from packages/core-plugin/src/api/vendor/uploads/route.ts
rename to packages/core/src/api/vendor/uploads/route.ts
diff --git a/packages/core-plugin/src/feature-flags/seller-registration.ts b/packages/core/src/feature-flags/seller-registration.ts
similarity index 100%
rename from packages/core-plugin/src/feature-flags/seller-registration.ts
rename to packages/core/src/feature-flags/seller-registration.ts
diff --git a/packages/core-plugin/src/links/README.md b/packages/core/src/links/README.md
similarity index 100%
rename from packages/core-plugin/src/links/README.md
rename to packages/core/src/links/README.md
diff --git a/packages/core-plugin/src/links/campaign-seller-link.ts b/packages/core/src/links/campaign-seller-link.ts
similarity index 100%
rename from packages/core-plugin/src/links/campaign-seller-link.ts
rename to packages/core/src/links/campaign-seller-link.ts
diff --git a/packages/core-plugin/src/links/category-attribute-link.ts b/packages/core/src/links/category-attribute-link.ts
similarity index 100%
rename from packages/core-plugin/src/links/category-attribute-link.ts
rename to packages/core/src/links/category-attribute-link.ts
diff --git a/packages/core-plugin/src/links/fulfillment-set-seller-link.ts b/packages/core/src/links/fulfillment-set-seller-link.ts
similarity index 100%
rename from packages/core-plugin/src/links/fulfillment-set-seller-link.ts
rename to packages/core/src/links/fulfillment-set-seller-link.ts
diff --git a/packages/core-plugin/src/links/inventory-item-seller-link.ts b/packages/core/src/links/inventory-item-seller-link.ts
similarity index 100%
rename from packages/core-plugin/src/links/inventory-item-seller-link.ts
rename to packages/core/src/links/inventory-item-seller-link.ts
diff --git a/packages/core-plugin/src/links/line-item-commission-line-link.ts b/packages/core/src/links/line-item-commission-line-link.ts
similarity index 100%
rename from packages/core-plugin/src/links/line-item-commission-line-link.ts
rename to packages/core/src/links/line-item-commission-line-link.ts
diff --git a/packages/core-plugin/src/links/order-group-cart-link.ts b/packages/core/src/links/order-group-cart-link.ts
similarity index 100%
rename from packages/core-plugin/src/links/order-group-cart-link.ts
rename to packages/core/src/links/order-group-cart-link.ts
diff --git a/packages/core-plugin/src/links/order-group-order-link.ts b/packages/core/src/links/order-group-order-link.ts
similarity index 100%
rename from packages/core-plugin/src/links/order-group-order-link.ts
rename to packages/core/src/links/order-group-order-link.ts
diff --git a/packages/core-plugin/src/links/order-payout-link.ts b/packages/core/src/links/order-payout-link.ts
similarity index 100%
rename from packages/core-plugin/src/links/order-payout-link.ts
rename to packages/core/src/links/order-payout-link.ts
diff --git a/packages/core-plugin/src/links/order-seller-link.ts b/packages/core/src/links/order-seller-link.ts
similarity index 100%
rename from packages/core-plugin/src/links/order-seller-link.ts
rename to packages/core/src/links/order-seller-link.ts
diff --git a/packages/core-plugin/src/links/payout-seller-link.ts b/packages/core/src/links/payout-seller-link.ts
similarity index 100%
rename from packages/core-plugin/src/links/payout-seller-link.ts
rename to packages/core/src/links/payout-seller-link.ts
diff --git a/packages/core-plugin/src/links/price-list-seller-link.ts b/packages/core/src/links/price-list-seller-link.ts
similarity index 100%
rename from packages/core-plugin/src/links/price-list-seller-link.ts
rename to packages/core/src/links/price-list-seller-link.ts
diff --git a/packages/core-plugin/src/links/product-attribute-value-link.ts b/packages/core/src/links/product-attribute-value-link.ts
similarity index 100%
rename from packages/core-plugin/src/links/product-attribute-value-link.ts
rename to packages/core/src/links/product-attribute-value-link.ts
diff --git a/packages/core-plugin/src/links/product-seller-link.ts b/packages/core/src/links/product-seller-link.ts
similarity index 100%
rename from packages/core-plugin/src/links/product-seller-link.ts
rename to packages/core/src/links/product-seller-link.ts
diff --git a/packages/core-plugin/src/links/product-vendor-product-attribute-link.ts b/packages/core/src/links/product-vendor-product-attribute-link.ts
similarity index 100%
rename from packages/core-plugin/src/links/product-vendor-product-attribute-link.ts
rename to packages/core/src/links/product-vendor-product-attribute-link.ts
diff --git a/packages/core-plugin/src/links/promotion-seller-link.ts b/packages/core/src/links/promotion-seller-link.ts
similarity index 100%
rename from packages/core-plugin/src/links/promotion-seller-link.ts
rename to packages/core/src/links/promotion-seller-link.ts
diff --git a/packages/core-plugin/src/links/seller-attribute-link.ts b/packages/core/src/links/seller-attribute-link.ts
similarity index 100%
rename from packages/core-plugin/src/links/seller-attribute-link.ts
rename to packages/core/src/links/seller-attribute-link.ts
diff --git a/packages/core-plugin/src/links/seller-attribute-value-link.ts b/packages/core/src/links/seller-attribute-value-link.ts
similarity index 100%
rename from packages/core-plugin/src/links/seller-attribute-value-link.ts
rename to packages/core/src/links/seller-attribute-value-link.ts
diff --git a/packages/core-plugin/src/links/seller-customer-link.ts b/packages/core/src/links/seller-customer-link.ts
similarity index 100%
rename from packages/core-plugin/src/links/seller-customer-link.ts
rename to packages/core/src/links/seller-customer-link.ts
diff --git a/packages/core-plugin/src/links/seller-member-rbac-role.ts b/packages/core/src/links/seller-member-rbac-role.ts
similarity index 100%
rename from packages/core-plugin/src/links/seller-member-rbac-role.ts
rename to packages/core/src/links/seller-member-rbac-role.ts
diff --git a/packages/core-plugin/src/links/seller-payout-account-link.ts b/packages/core/src/links/seller-payout-account-link.ts
similarity index 100%
rename from packages/core-plugin/src/links/seller-payout-account-link.ts
rename to packages/core/src/links/seller-payout-account-link.ts
diff --git a/packages/core-plugin/src/links/seller-vendor-product-attribute-link.ts b/packages/core/src/links/seller-vendor-product-attribute-link.ts
similarity index 100%
rename from packages/core-plugin/src/links/seller-vendor-product-attribute-link.ts
rename to packages/core/src/links/seller-vendor-product-attribute-link.ts
diff --git a/packages/core-plugin/src/links/service-zone-seller-link.ts b/packages/core/src/links/service-zone-seller-link.ts
similarity index 100%
rename from packages/core-plugin/src/links/service-zone-seller-link.ts
rename to packages/core/src/links/service-zone-seller-link.ts
diff --git a/packages/core-plugin/src/links/shipping-option-seller-link.ts b/packages/core/src/links/shipping-option-seller-link.ts
similarity index 100%
rename from packages/core-plugin/src/links/shipping-option-seller-link.ts
rename to packages/core/src/links/shipping-option-seller-link.ts
diff --git a/packages/core-plugin/src/links/shipping-profile-seller-link.ts b/packages/core/src/links/shipping-profile-seller-link.ts
similarity index 100%
rename from packages/core-plugin/src/links/shipping-profile-seller-link.ts
rename to packages/core/src/links/shipping-profile-seller-link.ts
diff --git a/packages/core-plugin/src/links/stock-location-seller-link.ts b/packages/core/src/links/stock-location-seller-link.ts
similarity index 100%
rename from packages/core-plugin/src/links/stock-location-seller-link.ts
rename to packages/core/src/links/stock-location-seller-link.ts
diff --git a/packages/core-plugin/src/modules/README.md b/packages/core/src/modules/README.md
similarity index 100%
rename from packages/core-plugin/src/modules/README.md
rename to packages/core/src/modules/README.md
diff --git a/packages/core-plugin/src/modules/admin-ui/index.ts b/packages/core/src/modules/admin-ui/index.ts
similarity index 100%
rename from packages/core-plugin/src/modules/admin-ui/index.ts
rename to packages/core/src/modules/admin-ui/index.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/modules/admin-ui/services/admin-ui-module-service.ts
rename to packages/core/src/modules/admin-ui/services/admin-ui-module-service.ts
diff --git a/packages/core-plugin/src/modules/attribute/index.ts b/packages/core/src/modules/attribute/index.ts
similarity index 100%
rename from packages/core-plugin/src/modules/attribute/index.ts
rename to packages/core/src/modules/attribute/index.ts
diff --git a/packages/core-plugin/src/modules/attribute/migrations/Migration20260325000000.ts b/packages/core/src/modules/attribute/migrations/Migration20260325000000.ts
similarity index 100%
rename from packages/core-plugin/src/modules/attribute/migrations/Migration20260325000000.ts
rename to packages/core/src/modules/attribute/migrations/Migration20260325000000.ts
diff --git a/packages/core-plugin/src/modules/attribute/models/attribute-possible-value.ts b/packages/core/src/modules/attribute/models/attribute-possible-value.ts
similarity index 100%
rename from packages/core-plugin/src/modules/attribute/models/attribute-possible-value.ts
rename to packages/core/src/modules/attribute/models/attribute-possible-value.ts
diff --git a/packages/core-plugin/src/modules/attribute/models/attribute-value.ts b/packages/core/src/modules/attribute/models/attribute-value.ts
similarity index 100%
rename from packages/core-plugin/src/modules/attribute/models/attribute-value.ts
rename to packages/core/src/modules/attribute/models/attribute-value.ts
diff --git a/packages/core-plugin/src/modules/attribute/models/attribute.ts b/packages/core/src/modules/attribute/models/attribute.ts
similarity index 100%
rename from packages/core-plugin/src/modules/attribute/models/attribute.ts
rename to packages/core/src/modules/attribute/models/attribute.ts
diff --git a/packages/core-plugin/src/modules/attribute/models/index.ts b/packages/core/src/modules/attribute/models/index.ts
similarity index 100%
rename from packages/core-plugin/src/modules/attribute/models/index.ts
rename to packages/core/src/modules/attribute/models/index.ts
diff --git a/packages/core-plugin/src/modules/attribute/service.ts b/packages/core/src/modules/attribute/service.ts
similarity index 100%
rename from packages/core-plugin/src/modules/attribute/service.ts
rename to packages/core/src/modules/attribute/service.ts
diff --git a/packages/core-plugin/src/modules/codegen/index.ts b/packages/core/src/modules/codegen/index.ts
similarity index 100%
rename from packages/core-plugin/src/modules/codegen/index.ts
rename to packages/core/src/modules/codegen/index.ts
diff --git a/packages/core-plugin/src/modules/codegen/services/codegen-module-service.ts b/packages/core/src/modules/codegen/services/codegen-module-service.ts
similarity index 100%
rename from packages/core-plugin/src/modules/codegen/services/codegen-module-service.ts
rename to packages/core/src/modules/codegen/services/codegen-module-service.ts
diff --git a/packages/core-plugin/src/modules/commission/index.ts b/packages/core/src/modules/commission/index.ts
similarity index 100%
rename from packages/core-plugin/src/modules/commission/index.ts
rename to packages/core/src/modules/commission/index.ts
diff --git a/packages/core-plugin/src/modules/commission/migrations/.snapshot-medusa-commission.json b/packages/core/src/modules/commission/migrations/.snapshot-medusa-commission.json
similarity index 100%
rename from packages/core-plugin/src/modules/commission/migrations/.snapshot-medusa-commission.json
rename to packages/core/src/modules/commission/migrations/.snapshot-medusa-commission.json
diff --git a/packages/core-plugin/src/modules/commission/migrations/Migration20260130132817.ts b/packages/core/src/modules/commission/migrations/Migration20260130132817.ts
similarity index 100%
rename from packages/core-plugin/src/modules/commission/migrations/Migration20260130132817.ts
rename to packages/core/src/modules/commission/migrations/Migration20260130132817.ts
diff --git a/packages/core-plugin/src/modules/commission/models/commission-line.ts b/packages/core/src/modules/commission/models/commission-line.ts
similarity index 100%
rename from packages/core-plugin/src/modules/commission/models/commission-line.ts
rename to packages/core/src/modules/commission/models/commission-line.ts
diff --git a/packages/core-plugin/src/modules/commission/models/commission-rate.ts b/packages/core/src/modules/commission/models/commission-rate.ts
similarity index 100%
rename from packages/core-plugin/src/modules/commission/models/commission-rate.ts
rename to packages/core/src/modules/commission/models/commission-rate.ts
diff --git a/packages/core-plugin/src/modules/commission/models/commission-rule.ts b/packages/core/src/modules/commission/models/commission-rule.ts
similarity index 100%
rename from packages/core-plugin/src/modules/commission/models/commission-rule.ts
rename to packages/core/src/modules/commission/models/commission-rule.ts
diff --git a/packages/core-plugin/src/modules/commission/models/index.ts b/packages/core/src/modules/commission/models/index.ts
similarity index 100%
rename from packages/core-plugin/src/modules/commission/models/index.ts
rename to packages/core/src/modules/commission/models/index.ts
diff --git a/packages/core-plugin/src/modules/commission/service.ts b/packages/core/src/modules/commission/service.ts
similarity index 100%
rename from packages/core-plugin/src/modules/commission/service.ts
rename to packages/core/src/modules/commission/service.ts
diff --git a/packages/core-plugin/src/modules/custom-fields/index.ts b/packages/core/src/modules/custom-fields/index.ts
similarity index 100%
rename from packages/core-plugin/src/modules/custom-fields/index.ts
rename to packages/core/src/modules/custom-fields/index.ts
diff --git a/packages/core-plugin/src/modules/custom-fields/loaders.ts b/packages/core/src/modules/custom-fields/loaders.ts
similarity index 100%
rename from packages/core-plugin/src/modules/custom-fields/loaders.ts
rename to packages/core/src/modules/custom-fields/loaders.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/modules/custom-fields/services/custom-fields-module-service.ts
rename to packages/core/src/modules/custom-fields/services/custom-fields-module-service.ts
diff --git a/packages/core-plugin/src/modules/custom-fields/utils/generate-entity.ts b/packages/core/src/modules/custom-fields/utils/generate-entity.ts
similarity index 100%
rename from packages/core-plugin/src/modules/custom-fields/utils/generate-entity.ts
rename to packages/core/src/modules/custom-fields/utils/generate-entity.ts
diff --git a/packages/core-plugin/src/modules/payout/index.ts b/packages/core/src/modules/payout/index.ts
similarity index 100%
rename from packages/core-plugin/src/modules/payout/index.ts
rename to packages/core/src/modules/payout/index.ts
diff --git a/packages/core-plugin/src/modules/payout/loaders/provider.ts b/packages/core/src/modules/payout/loaders/provider.ts
similarity index 100%
rename from packages/core-plugin/src/modules/payout/loaders/provider.ts
rename to packages/core/src/modules/payout/loaders/provider.ts
diff --git a/packages/core-plugin/src/modules/payout/migrations/.snapshot-medusa-payout.json b/packages/core/src/modules/payout/migrations/.snapshot-medusa-payout.json
similarity index 100%
rename from packages/core-plugin/src/modules/payout/migrations/.snapshot-medusa-payout.json
rename to packages/core/src/modules/payout/migrations/.snapshot-medusa-payout.json
diff --git a/packages/core-plugin/src/modules/payout/migrations/Migration20260130132816.ts b/packages/core/src/modules/payout/migrations/Migration20260130132816.ts
similarity index 100%
rename from packages/core-plugin/src/modules/payout/migrations/Migration20260130132816.ts
rename to packages/core/src/modules/payout/migrations/Migration20260130132816.ts
diff --git a/packages/core-plugin/src/modules/payout/migrations/Migration20260216152209.ts b/packages/core/src/modules/payout/migrations/Migration20260216152209.ts
similarity index 100%
rename from packages/core-plugin/src/modules/payout/migrations/Migration20260216152209.ts
rename to packages/core/src/modules/payout/migrations/Migration20260216152209.ts
diff --git a/packages/core-plugin/src/modules/payout/migrations/Migration20260317000000.ts b/packages/core/src/modules/payout/migrations/Migration20260317000000.ts
similarity index 100%
rename from packages/core-plugin/src/modules/payout/migrations/Migration20260317000000.ts
rename to packages/core/src/modules/payout/migrations/Migration20260317000000.ts
diff --git a/packages/core-plugin/src/modules/payout/migrations/Migration20260323170925.ts b/packages/core/src/modules/payout/migrations/Migration20260323170925.ts
similarity index 100%
rename from packages/core-plugin/src/modules/payout/migrations/Migration20260323170925.ts
rename to packages/core/src/modules/payout/migrations/Migration20260323170925.ts
diff --git a/packages/core-plugin/src/modules/payout/models/index.ts b/packages/core/src/modules/payout/models/index.ts
similarity index 100%
rename from packages/core-plugin/src/modules/payout/models/index.ts
rename to packages/core/src/modules/payout/models/index.ts
diff --git a/packages/core-plugin/src/modules/payout/models/onboarding.ts b/packages/core/src/modules/payout/models/onboarding.ts
similarity index 100%
rename from packages/core-plugin/src/modules/payout/models/onboarding.ts
rename to packages/core/src/modules/payout/models/onboarding.ts
diff --git a/packages/core-plugin/src/modules/payout/models/payout-account.ts b/packages/core/src/modules/payout/models/payout-account.ts
similarity index 100%
rename from packages/core-plugin/src/modules/payout/models/payout-account.ts
rename to packages/core/src/modules/payout/models/payout-account.ts
diff --git a/packages/core-plugin/src/modules/payout/models/payout.ts b/packages/core/src/modules/payout/models/payout.ts
similarity index 100%
rename from packages/core-plugin/src/modules/payout/models/payout.ts
rename to packages/core/src/modules/payout/models/payout.ts
diff --git a/packages/core-plugin/src/modules/payout/providers/index.ts b/packages/core/src/modules/payout/providers/index.ts
similarity index 100%
rename from packages/core-plugin/src/modules/payout/providers/index.ts
rename to packages/core/src/modules/payout/providers/index.ts
diff --git a/packages/core-plugin/src/modules/payout/providers/system.ts b/packages/core/src/modules/payout/providers/system.ts
similarity index 100%
rename from packages/core-plugin/src/modules/payout/providers/system.ts
rename to packages/core/src/modules/payout/providers/system.ts
diff --git a/packages/core-plugin/src/modules/payout/services/index.ts b/packages/core/src/modules/payout/services/index.ts
similarity index 100%
rename from packages/core-plugin/src/modules/payout/services/index.ts
rename to packages/core/src/modules/payout/services/index.ts
diff --git a/packages/core-plugin/src/modules/payout/services/payout-module-service.ts b/packages/core/src/modules/payout/services/payout-module-service.ts
similarity index 100%
rename from packages/core-plugin/src/modules/payout/services/payout-module-service.ts
rename to packages/core/src/modules/payout/services/payout-module-service.ts
diff --git a/packages/core-plugin/src/modules/payout/services/provider-service.ts b/packages/core/src/modules/payout/services/provider-service.ts
similarity index 100%
rename from packages/core-plugin/src/modules/payout/services/provider-service.ts
rename to packages/core/src/modules/payout/services/provider-service.ts
diff --git a/packages/core-plugin/src/modules/seller/index.ts b/packages/core/src/modules/seller/index.ts
similarity index 100%
rename from packages/core-plugin/src/modules/seller/index.ts
rename to packages/core/src/modules/seller/index.ts
diff --git a/packages/core-plugin/src/modules/seller/loaders/register-feature-flags.ts b/packages/core/src/modules/seller/loaders/register-feature-flags.ts
similarity index 100%
rename from packages/core-plugin/src/modules/seller/loaders/register-feature-flags.ts
rename to packages/core/src/modules/seller/loaders/register-feature-flags.ts
diff --git a/packages/core-plugin/src/modules/seller/migrations/.snapshot-medusa-seller.json b/packages/core/src/modules/seller/migrations/.snapshot-medusa-seller.json
similarity index 100%
rename from packages/core-plugin/src/modules/seller/migrations/.snapshot-medusa-seller.json
rename to packages/core/src/modules/seller/migrations/.snapshot-medusa-seller.json
diff --git a/packages/core-plugin/src/modules/seller/migrations/Migration20260324104737.ts b/packages/core/src/modules/seller/migrations/Migration20260324104737.ts
similarity index 100%
rename from packages/core-plugin/src/modules/seller/migrations/Migration20260324104737.ts
rename to packages/core/src/modules/seller/migrations/Migration20260324104737.ts
diff --git a/packages/core-plugin/src/modules/seller/migrations/Migration20260330093053.ts b/packages/core/src/modules/seller/migrations/Migration20260330093053.ts
similarity index 100%
rename from packages/core-plugin/src/modules/seller/migrations/Migration20260330093053.ts
rename to packages/core/src/modules/seller/migrations/Migration20260330093053.ts
diff --git a/packages/core-plugin/src/modules/seller/migrations/Migration20260331113435.ts b/packages/core/src/modules/seller/migrations/Migration20260331113435.ts
similarity index 100%
rename from packages/core-plugin/src/modules/seller/migrations/Migration20260331113435.ts
rename to packages/core/src/modules/seller/migrations/Migration20260331113435.ts
diff --git a/packages/core-plugin/src/modules/seller/migrations/Migration20260401093720.ts b/packages/core/src/modules/seller/migrations/Migration20260401093720.ts
similarity index 100%
rename from packages/core-plugin/src/modules/seller/migrations/Migration20260401093720.ts
rename to packages/core/src/modules/seller/migrations/Migration20260401093720.ts
diff --git a/packages/core-plugin/src/modules/seller/models/address.ts b/packages/core/src/modules/seller/models/address.ts
similarity index 100%
rename from packages/core-plugin/src/modules/seller/models/address.ts
rename to packages/core/src/modules/seller/models/address.ts
diff --git a/packages/core-plugin/src/modules/seller/models/index.ts b/packages/core/src/modules/seller/models/index.ts
similarity index 100%
rename from packages/core-plugin/src/modules/seller/models/index.ts
rename to packages/core/src/modules/seller/models/index.ts
diff --git a/packages/core-plugin/src/modules/seller/models/member-invite.ts b/packages/core/src/modules/seller/models/member-invite.ts
similarity index 100%
rename from packages/core-plugin/src/modules/seller/models/member-invite.ts
rename to packages/core/src/modules/seller/models/member-invite.ts
diff --git a/packages/core-plugin/src/modules/seller/models/member.ts b/packages/core/src/modules/seller/models/member.ts
similarity index 100%
rename from packages/core-plugin/src/modules/seller/models/member.ts
rename to packages/core/src/modules/seller/models/member.ts
diff --git a/packages/core-plugin/src/modules/seller/models/order-group.ts b/packages/core/src/modules/seller/models/order-group.ts
similarity index 100%
rename from packages/core-plugin/src/modules/seller/models/order-group.ts
rename to packages/core/src/modules/seller/models/order-group.ts
diff --git a/packages/core-plugin/src/modules/seller/models/payment-details.ts b/packages/core/src/modules/seller/models/payment-details.ts
similarity index 100%
rename from packages/core-plugin/src/modules/seller/models/payment-details.ts
rename to packages/core/src/modules/seller/models/payment-details.ts
diff --git a/packages/core-plugin/src/modules/seller/models/professional-details.ts b/packages/core/src/modules/seller/models/professional-details.ts
similarity index 100%
rename from packages/core-plugin/src/modules/seller/models/professional-details.ts
rename to packages/core/src/modules/seller/models/professional-details.ts
diff --git a/packages/core-plugin/src/modules/seller/models/seller-member.ts b/packages/core/src/modules/seller/models/seller-member.ts
similarity index 100%
rename from packages/core-plugin/src/modules/seller/models/seller-member.ts
rename to packages/core/src/modules/seller/models/seller-member.ts
diff --git a/packages/core-plugin/src/modules/seller/models/seller.ts b/packages/core/src/modules/seller/models/seller.ts
similarity index 100%
rename from packages/core-plugin/src/modules/seller/models/seller.ts
rename to packages/core/src/modules/seller/models/seller.ts
diff --git a/packages/core-plugin/src/modules/seller/repositories/index.ts b/packages/core/src/modules/seller/repositories/index.ts
similarity index 100%
rename from packages/core-plugin/src/modules/seller/repositories/index.ts
rename to packages/core/src/modules/seller/repositories/index.ts
diff --git a/packages/core-plugin/src/modules/seller/repositories/order-group.ts b/packages/core/src/modules/seller/repositories/order-group.ts
similarity index 100%
rename from packages/core-plugin/src/modules/seller/repositories/order-group.ts
rename to packages/core/src/modules/seller/repositories/order-group.ts
diff --git a/packages/core-plugin/src/modules/seller/service.ts b/packages/core/src/modules/seller/service.ts
similarity index 100%
rename from packages/core-plugin/src/modules/seller/service.ts
rename to packages/core/src/modules/seller/service.ts
diff --git a/packages/core-plugin/src/modules/subscription/index.ts b/packages/core/src/modules/subscription/index.ts
similarity index 100%
rename from packages/core-plugin/src/modules/subscription/index.ts
rename to packages/core/src/modules/subscription/index.ts
diff --git a/packages/core-plugin/src/modules/subscription/migrations/.snapshot-medusa-subscription.json b/packages/core/src/modules/subscription/migrations/.snapshot-medusa-subscription.json
similarity index 100%
rename from packages/core-plugin/src/modules/subscription/migrations/.snapshot-medusa-subscription.json
rename to packages/core/src/modules/subscription/migrations/.snapshot-medusa-subscription.json
diff --git a/packages/core-plugin/src/modules/subscription/migrations/Migration20260324135903.ts b/packages/core/src/modules/subscription/migrations/Migration20260324135903.ts
similarity index 100%
rename from packages/core-plugin/src/modules/subscription/migrations/Migration20260324135903.ts
rename to packages/core/src/modules/subscription/migrations/Migration20260324135903.ts
diff --git a/packages/core-plugin/src/modules/subscription/models/index.ts b/packages/core/src/modules/subscription/models/index.ts
similarity index 100%
rename from packages/core-plugin/src/modules/subscription/models/index.ts
rename to packages/core/src/modules/subscription/models/index.ts
diff --git a/packages/core-plugin/src/modules/subscription/models/subscription-override.ts b/packages/core/src/modules/subscription/models/subscription-override.ts
similarity index 100%
rename from packages/core-plugin/src/modules/subscription/models/subscription-override.ts
rename to packages/core/src/modules/subscription/models/subscription-override.ts
diff --git a/packages/core-plugin/src/modules/subscription/models/subscription-plan.ts b/packages/core/src/modules/subscription/models/subscription-plan.ts
similarity index 100%
rename from packages/core-plugin/src/modules/subscription/models/subscription-plan.ts
rename to packages/core/src/modules/subscription/models/subscription-plan.ts
diff --git a/packages/core-plugin/src/modules/subscription/service.ts b/packages/core/src/modules/subscription/service.ts
similarity index 100%
rename from packages/core-plugin/src/modules/subscription/service.ts
rename to packages/core/src/modules/subscription/service.ts
diff --git a/packages/core-plugin/src/modules/vendor-product-attribute/index.ts b/packages/core/src/modules/vendor-product-attribute/index.ts
similarity index 100%
rename from packages/core-plugin/src/modules/vendor-product-attribute/index.ts
rename to packages/core/src/modules/vendor-product-attribute/index.ts
diff --git a/packages/core-plugin/src/modules/vendor-product-attribute/migrations/Migration20260325000000.ts b/packages/core/src/modules/vendor-product-attribute/migrations/Migration20260325000000.ts
similarity index 100%
rename from packages/core-plugin/src/modules/vendor-product-attribute/migrations/Migration20260325000000.ts
rename to packages/core/src/modules/vendor-product-attribute/migrations/Migration20260325000000.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/modules/vendor-product-attribute/models/vendor-product-attribute.ts
rename to packages/core/src/modules/vendor-product-attribute/models/vendor-product-attribute.ts
diff --git a/packages/core-plugin/src/modules/vendor-product-attribute/service.ts b/packages/core/src/modules/vendor-product-attribute/service.ts
similarity index 100%
rename from packages/core-plugin/src/modules/vendor-product-attribute/service.ts
rename to packages/core/src/modules/vendor-product-attribute/service.ts
diff --git a/packages/core-plugin/src/modules/vendor-ui/index.ts b/packages/core/src/modules/vendor-ui/index.ts
similarity index 100%
rename from packages/core-plugin/src/modules/vendor-ui/index.ts
rename to packages/core/src/modules/vendor-ui/index.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/modules/vendor-ui/services/vendor-ui-module-service.ts
rename to packages/core/src/modules/vendor-ui/services/vendor-ui-module-service.ts
diff --git a/packages/core-plugin/src/policies/seller.ts b/packages/core/src/policies/seller.ts
similarity index 100%
rename from packages/core-plugin/src/policies/seller.ts
rename to packages/core/src/policies/seller.ts
diff --git a/packages/core-plugin/src/providers/README.md b/packages/core/src/providers/README.md
similarity index 100%
rename from packages/core-plugin/src/providers/README.md
rename to packages/core/src/providers/README.md
diff --git a/packages/core-plugin/src/subscribers/payout-webhook.ts b/packages/core/src/subscribers/payout-webhook.ts
similarity index 100%
rename from packages/core-plugin/src/subscribers/payout-webhook.ts
rename to packages/core/src/subscribers/payout-webhook.ts
diff --git a/packages/core-plugin/src/types/seller-context.ts b/packages/core/src/types/seller-context.ts
similarity index 100%
rename from packages/core-plugin/src/types/seller-context.ts
rename to packages/core/src/types/seller-context.ts
diff --git a/packages/core-plugin/src/utils/dashboard/dashboard-base.ts b/packages/core/src/utils/dashboard/dashboard-base.ts
similarity index 100%
rename from packages/core-plugin/src/utils/dashboard/dashboard-base.ts
rename to packages/core/src/utils/dashboard/dashboard-base.ts
diff --git a/packages/core/src/with-mercur.ts b/packages/core/src/with-mercur.ts
new file mode 100644
index 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.md
similarity index 100%
rename from packages/core-plugin/src/workflows/README.md
rename to packages/core/src/workflows/README.md
diff --git a/packages/core-plugin/src/workflows/attribute/index.ts b/packages/core/src/workflows/attribute/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/attribute/index.ts
rename to packages/core/src/workflows/attribute/index.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/attribute/steps/create-attribute-possible-values.ts
rename to packages/core/src/workflows/attribute/steps/create-attribute-possible-values.ts
diff --git a/packages/core-plugin/src/workflows/attribute/steps/create-attributes.ts b/packages/core/src/workflows/attribute/steps/create-attributes.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/attribute/steps/create-attributes.ts
rename to packages/core/src/workflows/attribute/steps/create-attributes.ts
diff --git a/packages/core-plugin/src/workflows/attribute/steps/delete-attribute.ts b/packages/core/src/workflows/attribute/steps/delete-attribute.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/attribute/steps/delete-attribute.ts
rename to packages/core/src/workflows/attribute/steps/delete-attribute.ts
diff --git a/packages/core-plugin/src/workflows/attribute/steps/index.ts b/packages/core/src/workflows/attribute/steps/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/attribute/steps/index.ts
rename to packages/core/src/workflows/attribute/steps/index.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/attribute/steps/update-attribute-possible-value.ts
rename to packages/core/src/workflows/attribute/steps/update-attribute-possible-value.ts
diff --git a/packages/core-plugin/src/workflows/attribute/steps/update-attributes.ts b/packages/core/src/workflows/attribute/steps/update-attributes.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/attribute/steps/update-attributes.ts
rename to packages/core/src/workflows/attribute/steps/update-attributes.ts
diff --git a/packages/core-plugin/src/workflows/attribute/steps/validate-attribute-delete.ts b/packages/core/src/workflows/attribute/steps/validate-attribute-delete.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/attribute/steps/validate-attribute-delete.ts
rename to packages/core/src/workflows/attribute/steps/validate-attribute-delete.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/attribute/steps/validate-possible-values-removal.ts
rename to packages/core/src/workflows/attribute/steps/validate-possible-values-removal.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/attribute/workflows/create-attribute-possible-values.ts
rename to packages/core/src/workflows/attribute/workflows/create-attribute-possible-values.ts
diff --git a/packages/core-plugin/src/workflows/attribute/workflows/create-attributes.ts b/packages/core/src/workflows/attribute/workflows/create-attributes.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/attribute/workflows/create-attributes.ts
rename to packages/core/src/workflows/attribute/workflows/create-attributes.ts
diff --git a/packages/core-plugin/src/workflows/attribute/workflows/delete-attribute.ts b/packages/core/src/workflows/attribute/workflows/delete-attribute.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/attribute/workflows/delete-attribute.ts
rename to packages/core/src/workflows/attribute/workflows/delete-attribute.ts
diff --git a/packages/core-plugin/src/workflows/attribute/workflows/index.ts b/packages/core/src/workflows/attribute/workflows/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/attribute/workflows/index.ts
rename to packages/core/src/workflows/attribute/workflows/index.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/attribute/workflows/update-attribute-possible-value.ts
rename to packages/core/src/workflows/attribute/workflows/update-attribute-possible-value.ts
diff --git a/packages/core-plugin/src/workflows/attribute/workflows/update-attributes.ts b/packages/core/src/workflows/attribute/workflows/update-attributes.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/attribute/workflows/update-attributes.ts
rename to packages/core/src/workflows/attribute/workflows/update-attributes.ts
diff --git a/packages/core-plugin/src/workflows/campaign/index.ts b/packages/core/src/workflows/campaign/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/campaign/index.ts
rename to packages/core/src/workflows/campaign/index.ts
diff --git a/packages/core-plugin/src/workflows/campaign/steps/index.ts b/packages/core/src/workflows/campaign/steps/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/campaign/steps/index.ts
rename to packages/core/src/workflows/campaign/steps/index.ts
diff --git a/packages/core-plugin/src/workflows/campaign/steps/link-seller-campaign.ts b/packages/core/src/workflows/campaign/steps/link-seller-campaign.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/campaign/steps/link-seller-campaign.ts
rename to packages/core/src/workflows/campaign/steps/link-seller-campaign.ts
diff --git a/packages/core-plugin/src/workflows/campaign/workflows/create-seller-campaigns.ts b/packages/core/src/workflows/campaign/workflows/create-seller-campaigns.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/campaign/workflows/create-seller-campaigns.ts
rename to packages/core/src/workflows/campaign/workflows/create-seller-campaigns.ts
diff --git a/packages/core-plugin/src/workflows/campaign/workflows/index.ts b/packages/core/src/workflows/campaign/workflows/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/campaign/workflows/index.ts
rename to packages/core/src/workflows/campaign/workflows/index.ts
diff --git a/packages/core-plugin/src/workflows/cart/index.ts b/packages/core/src/workflows/cart/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/cart/index.ts
rename to packages/core/src/workflows/cart/index.ts
diff --git a/packages/core-plugin/src/workflows/cart/steps/index.ts b/packages/core/src/workflows/cart/steps/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/cart/steps/index.ts
rename to packages/core/src/workflows/cart/steps/index.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/cart/steps/prepare-adjustments-from-promotion-actions.ts
rename to packages/core/src/workflows/cart/steps/prepare-adjustments-from-promotion-actions.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/cart/steps/validate-seller-cart-items.ts
rename to packages/core/src/workflows/cart/steps/validate-seller-cart-items.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/cart/steps/validate-seller-cart-shipping.ts
rename to packages/core/src/workflows/cart/steps/validate-seller-cart-shipping.ts
diff --git a/packages/core-plugin/src/workflows/cart/utils/fields.ts b/packages/core/src/workflows/cart/utils/fields.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/cart/utils/fields.ts
rename to packages/core/src/workflows/cart/utils/fields.ts
diff --git a/packages/core-plugin/src/workflows/cart/utils/index.ts b/packages/core/src/workflows/cart/utils/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/cart/utils/index.ts
rename to packages/core/src/workflows/cart/utils/index.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/cart/utils/prepare-confirm-inventory-input.ts
rename to packages/core/src/workflows/cart/utils/prepare-confirm-inventory-input.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/cart/utils/prepare-line-item-data.ts
rename to packages/core/src/workflows/cart/utils/prepare-line-item-data.ts
diff --git a/packages/core-plugin/src/workflows/cart/utils/schemas.ts b/packages/core/src/workflows/cart/utils/schemas.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/cart/utils/schemas.ts
rename to packages/core/src/workflows/cart/utils/schemas.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/cart/workflows/add-seller-shipping-method-to-cart.ts
rename to packages/core/src/workflows/cart/workflows/add-seller-shipping-method-to-cart.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/cart/workflows/complete-cart-with-split-orders.ts
rename to packages/core/src/workflows/cart/workflows/complete-cart-with-split-orders.ts
diff --git a/packages/core-plugin/src/workflows/cart/workflows/index.ts b/packages/core/src/workflows/cart/workflows/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/cart/workflows/index.ts
rename to packages/core/src/workflows/cart/workflows/index.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/cart/workflows/list-seller-shipping-options-for-cart.ts
rename to packages/core/src/workflows/cart/workflows/list-seller-shipping-options-for-cart.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/cart/workflows/update-cart-seller-promotions.ts
rename to packages/core/src/workflows/cart/workflows/update-cart-seller-promotions.ts
diff --git a/packages/core-plugin/src/workflows/commission/index.ts b/packages/core/src/workflows/commission/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/commission/index.ts
rename to packages/core/src/workflows/commission/index.ts
diff --git a/packages/core-plugin/src/workflows/commission/steps/create-commission-rates.ts b/packages/core/src/workflows/commission/steps/create-commission-rates.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/commission/steps/create-commission-rates.ts
rename to packages/core/src/workflows/commission/steps/create-commission-rates.ts
diff --git a/packages/core-plugin/src/workflows/commission/steps/create-commission-rules.ts b/packages/core/src/workflows/commission/steps/create-commission-rules.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/commission/steps/create-commission-rules.ts
rename to packages/core/src/workflows/commission/steps/create-commission-rules.ts
diff --git a/packages/core-plugin/src/workflows/commission/steps/delete-commission-rates.ts b/packages/core/src/workflows/commission/steps/delete-commission-rates.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/commission/steps/delete-commission-rates.ts
rename to packages/core/src/workflows/commission/steps/delete-commission-rates.ts
diff --git a/packages/core-plugin/src/workflows/commission/steps/delete-commission-rules.ts b/packages/core/src/workflows/commission/steps/delete-commission-rules.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/commission/steps/delete-commission-rules.ts
rename to packages/core/src/workflows/commission/steps/delete-commission-rules.ts
diff --git a/packages/core-plugin/src/workflows/commission/steps/get-commission-lines.ts b/packages/core/src/workflows/commission/steps/get-commission-lines.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/commission/steps/get-commission-lines.ts
rename to packages/core/src/workflows/commission/steps/get-commission-lines.ts
diff --git a/packages/core-plugin/src/workflows/commission/steps/index.ts b/packages/core/src/workflows/commission/steps/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/commission/steps/index.ts
rename to packages/core/src/workflows/commission/steps/index.ts
diff --git a/packages/core-plugin/src/workflows/commission/steps/update-commission-rates.ts b/packages/core/src/workflows/commission/steps/update-commission-rates.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/commission/steps/update-commission-rates.ts
rename to packages/core/src/workflows/commission/steps/update-commission-rates.ts
diff --git a/packages/core-plugin/src/workflows/commission/steps/update-commission-rules.ts b/packages/core/src/workflows/commission/steps/update-commission-rules.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/commission/steps/update-commission-rules.ts
rename to packages/core/src/workflows/commission/steps/update-commission-rules.ts
diff --git a/packages/core-plugin/src/workflows/commission/steps/upsert-commission-lines.ts b/packages/core/src/workflows/commission/steps/upsert-commission-lines.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/commission/steps/upsert-commission-lines.ts
rename to packages/core/src/workflows/commission/steps/upsert-commission-lines.ts
diff --git a/packages/core-plugin/src/workflows/commission/workflows/batch-commission-rules.ts b/packages/core/src/workflows/commission/workflows/batch-commission-rules.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/commission/workflows/batch-commission-rules.ts
rename to packages/core/src/workflows/commission/workflows/batch-commission-rules.ts
diff --git a/packages/core-plugin/src/workflows/commission/workflows/create-commission-rates.ts b/packages/core/src/workflows/commission/workflows/create-commission-rates.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/commission/workflows/create-commission-rates.ts
rename to packages/core/src/workflows/commission/workflows/create-commission-rates.ts
diff --git a/packages/core-plugin/src/workflows/commission/workflows/delete-commission-rates.ts b/packages/core/src/workflows/commission/workflows/delete-commission-rates.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/commission/workflows/delete-commission-rates.ts
rename to packages/core/src/workflows/commission/workflows/delete-commission-rates.ts
diff --git a/packages/core-plugin/src/workflows/commission/workflows/index.ts b/packages/core/src/workflows/commission/workflows/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/commission/workflows/index.ts
rename to packages/core/src/workflows/commission/workflows/index.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/commission/workflows/refresh-order-commission-lines.ts
rename to packages/core/src/workflows/commission/workflows/refresh-order-commission-lines.ts
diff --git a/packages/core-plugin/src/workflows/commission/workflows/update-commission-rates.ts b/packages/core/src/workflows/commission/workflows/update-commission-rates.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/commission/workflows/update-commission-rates.ts
rename to packages/core/src/workflows/commission/workflows/update-commission-rates.ts
diff --git a/packages/core-plugin/src/workflows/custom-fields/index.ts b/packages/core/src/workflows/custom-fields/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/custom-fields/index.ts
rename to packages/core/src/workflows/custom-fields/index.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/custom-fields/steps/delete-custom-fields.ts
rename to packages/core/src/workflows/custom-fields/steps/delete-custom-fields.ts
diff --git a/packages/core-plugin/src/workflows/custom-fields/steps/index.ts b/packages/core/src/workflows/custom-fields/steps/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/custom-fields/steps/index.ts
rename to packages/core/src/workflows/custom-fields/steps/index.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/custom-fields/steps/upsert-custom-fields.ts
rename to packages/core/src/workflows/custom-fields/steps/upsert-custom-fields.ts
diff --git a/packages/core-plugin/src/workflows/events.ts b/packages/core/src/workflows/events.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/events.ts
rename to packages/core/src/workflows/events.ts
diff --git a/packages/core-plugin/src/workflows/hooks/product-created.ts b/packages/core/src/workflows/hooks/product-created.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/hooks/product-created.ts
rename to packages/core/src/workflows/hooks/product-created.ts
diff --git a/packages/core-plugin/src/workflows/hooks/product-variant-created.ts b/packages/core/src/workflows/hooks/product-variant-created.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/hooks/product-variant-created.ts
rename to packages/core/src/workflows/hooks/product-variant-created.ts
diff --git a/packages/core-plugin/src/workflows/index.ts b/packages/core/src/workflows/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/index.ts
rename to packages/core/src/workflows/index.ts
diff --git a/packages/core-plugin/src/workflows/inventory-item/index.ts b/packages/core/src/workflows/inventory-item/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/inventory-item/index.ts
rename to packages/core/src/workflows/inventory-item/index.ts
diff --git a/packages/core-plugin/src/workflows/inventory-item/steps/index.ts b/packages/core/src/workflows/inventory-item/steps/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/inventory-item/steps/index.ts
rename to packages/core/src/workflows/inventory-item/steps/index.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/inventory-item/steps/link-seller-inventory-item.ts
rename to packages/core/src/workflows/inventory-item/steps/link-seller-inventory-item.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/inventory-item/workflows/create-seller-inventory-items.ts
rename to packages/core/src/workflows/inventory-item/workflows/create-seller-inventory-items.ts
diff --git a/packages/core-plugin/src/workflows/inventory-item/workflows/index.ts b/packages/core/src/workflows/inventory-item/workflows/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/inventory-item/workflows/index.ts
rename to packages/core/src/workflows/inventory-item/workflows/index.ts
diff --git a/packages/core-plugin/src/workflows/order-group/index.ts b/packages/core/src/workflows/order-group/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/order-group/index.ts
rename to packages/core/src/workflows/order-group/index.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/order-group/steps/create-order-group.ts
rename to packages/core/src/workflows/order-group/steps/create-order-group.ts
diff --git a/packages/core-plugin/src/workflows/order-group/steps/index.ts b/packages/core/src/workflows/order-group/steps/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/order-group/steps/index.ts
rename to packages/core/src/workflows/order-group/steps/index.ts
diff --git a/packages/core-plugin/src/workflows/order-group/utils/aggregate-status.ts b/packages/core/src/workflows/order-group/utils/aggregate-status.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/order-group/utils/aggregate-status.ts
rename to packages/core/src/workflows/order-group/utils/aggregate-status.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/order-group/workflows/get-order-group-detail.ts
rename to packages/core/src/workflows/order-group/workflows/get-order-group-detail.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/order-group/workflows/get-order-groups-list.ts
rename to packages/core/src/workflows/order-group/workflows/get-order-groups-list.ts
diff --git a/packages/core-plugin/src/workflows/payout/index.ts b/packages/core/src/workflows/payout/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/payout/index.ts
rename to packages/core/src/workflows/payout/index.ts
diff --git a/packages/core-plugin/src/workflows/payout/steps/create-onboarding.ts b/packages/core/src/workflows/payout/steps/create-onboarding.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/payout/steps/create-onboarding.ts
rename to packages/core/src/workflows/payout/steps/create-onboarding.ts
diff --git a/packages/core-plugin/src/workflows/payout/steps/create-payout-account.ts b/packages/core/src/workflows/payout/steps/create-payout-account.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/payout/steps/create-payout-account.ts
rename to packages/core/src/workflows/payout/steps/create-payout-account.ts
diff --git a/packages/core-plugin/src/workflows/payout/steps/create-payout.ts b/packages/core/src/workflows/payout/steps/create-payout.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/payout/steps/create-payout.ts
rename to packages/core/src/workflows/payout/steps/create-payout.ts
diff --git a/packages/core-plugin/src/workflows/payout/steps/index.ts b/packages/core/src/workflows/payout/steps/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/payout/steps/index.ts
rename to packages/core/src/workflows/payout/steps/index.ts
diff --git a/packages/core-plugin/src/workflows/payout/steps/update-payout-account.ts b/packages/core/src/workflows/payout/steps/update-payout-account.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/payout/steps/update-payout-account.ts
rename to packages/core/src/workflows/payout/steps/update-payout-account.ts
diff --git a/packages/core-plugin/src/workflows/payout/steps/update-payout.ts b/packages/core/src/workflows/payout/steps/update-payout.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/payout/steps/update-payout.ts
rename to packages/core/src/workflows/payout/steps/update-payout.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/payout/steps/validate-seller-payout-account.ts
rename to packages/core/src/workflows/payout/steps/validate-seller-payout-account.ts
diff --git a/packages/core-plugin/src/workflows/payout/workflows/create-onboarding.ts b/packages/core/src/workflows/payout/workflows/create-onboarding.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/payout/workflows/create-onboarding.ts
rename to packages/core/src/workflows/payout/workflows/create-onboarding.ts
diff --git a/packages/core-plugin/src/workflows/payout/workflows/create-payout-account.ts b/packages/core/src/workflows/payout/workflows/create-payout-account.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/payout/workflows/create-payout-account.ts
rename to packages/core/src/workflows/payout/workflows/create-payout-account.ts
diff --git a/packages/core-plugin/src/workflows/payout/workflows/create-payout.ts b/packages/core/src/workflows/payout/workflows/create-payout.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/payout/workflows/create-payout.ts
rename to packages/core/src/workflows/payout/workflows/create-payout.ts
diff --git a/packages/core-plugin/src/workflows/payout/workflows/index.ts b/packages/core/src/workflows/payout/workflows/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/payout/workflows/index.ts
rename to packages/core/src/workflows/payout/workflows/index.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/payout/workflows/process-payout-for-webhook.ts
rename to packages/core/src/workflows/payout/workflows/process-payout-for-webhook.ts
diff --git a/packages/core-plugin/src/workflows/price-list/index.ts b/packages/core/src/workflows/price-list/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/price-list/index.ts
rename to packages/core/src/workflows/price-list/index.ts
diff --git a/packages/core-plugin/src/workflows/price-list/steps/index.ts b/packages/core/src/workflows/price-list/steps/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/price-list/steps/index.ts
rename to packages/core/src/workflows/price-list/steps/index.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/price-list/steps/link-seller-price-list.ts
rename to packages/core/src/workflows/price-list/steps/link-seller-price-list.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/price-list/workflows/create-seller-price-lists.ts
rename to packages/core/src/workflows/price-list/workflows/create-seller-price-lists.ts
diff --git a/packages/core-plugin/src/workflows/price-list/workflows/index.ts b/packages/core/src/workflows/price-list/workflows/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/price-list/workflows/index.ts
rename to packages/core/src/workflows/price-list/workflows/index.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/product-attribute/steps/create-attribute-value.ts
rename to packages/core/src/workflows/product-attribute/steps/create-attribute-value.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/product-attribute/steps/create-attribute-values.ts
rename to packages/core/src/workflows/product-attribute/steps/create-attribute-values.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/product-attribute/steps/create-vendor-product-attribute.ts
rename to packages/core/src/workflows/product-attribute/steps/create-vendor-product-attribute.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/product-attribute/steps/delete-attribute-value.ts
rename to packages/core/src/workflows/product-attribute/steps/delete-attribute-value.ts
diff --git a/packages/core-plugin/src/workflows/product-attribute/steps/index.ts b/packages/core/src/workflows/product-attribute/steps/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/product-attribute/steps/index.ts
rename to packages/core/src/workflows/product-attribute/steps/index.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/product-attribute/steps/restore-variant-image-associations.ts
rename to packages/core/src/workflows/product-attribute/steps/restore-variant-image-associations.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/product-attribute/steps/save-variant-image-associations.ts
rename to packages/core/src/workflows/product-attribute/steps/save-variant-image-associations.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/product-attribute/steps/validate-attribute-value.ts
rename to packages/core/src/workflows/product-attribute/steps/validate-attribute-value.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/product-attribute/utils/find-or-create-vendor-attribute.ts
rename to packages/core/src/workflows/product-attribute/utils/find-or-create-vendor-attribute.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/product-attribute/utils/get-applicable-attributes.ts
rename to packages/core/src/workflows/product-attribute/utils/get-applicable-attributes.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/product-attribute/utils/products-created-handler.ts
rename to packages/core/src/workflows/product-attribute/utils/products-created-handler.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/product-attribute/workflows/convert-attribute-to-option.ts
rename to packages/core/src/workflows/product-attribute/workflows/convert-attribute-to-option.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/product-attribute/workflows/convert-option-to-attribute.ts
rename to packages/core/src/workflows/product-attribute/workflows/convert-option-to-attribute.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/product-attribute/workflows/create-and-link-attribute-values.ts
rename to packages/core/src/workflows/product-attribute/workflows/create-and-link-attribute-values.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/product-attribute/workflows/create-attribute-value.ts
rename to packages/core/src/workflows/product-attribute/workflows/create-attribute-value.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/product-attribute/workflows/create-vendor-product-attribute.ts
rename to packages/core/src/workflows/product-attribute/workflows/create-vendor-product-attribute.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/product-attribute/workflows/delete-attribute-value.ts
rename to packages/core/src/workflows/product-attribute/workflows/delete-attribute-value.ts
diff --git a/packages/core-plugin/src/workflows/product-attribute/workflows/index.ts b/packages/core/src/workflows/product-attribute/workflows/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/product-attribute/workflows/index.ts
rename to packages/core/src/workflows/product-attribute/workflows/index.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/product-attribute/workflows/sync-product-attribute-values.ts
rename to packages/core/src/workflows/product-attribute/workflows/sync-product-attribute-values.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/product-attribute/workflows/update-product-with-variant-images.ts
rename to packages/core/src/workflows/product-attribute/workflows/update-product-with-variant-images.ts
diff --git a/packages/core-plugin/src/workflows/promotion/index.ts b/packages/core/src/workflows/promotion/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/promotion/index.ts
rename to packages/core/src/workflows/promotion/index.ts
diff --git a/packages/core-plugin/src/workflows/promotion/steps/index.ts b/packages/core/src/workflows/promotion/steps/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/promotion/steps/index.ts
rename to packages/core/src/workflows/promotion/steps/index.ts
diff --git a/packages/core-plugin/src/workflows/promotion/steps/link-seller-promotion.ts b/packages/core/src/workflows/promotion/steps/link-seller-promotion.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/promotion/steps/link-seller-promotion.ts
rename to packages/core/src/workflows/promotion/steps/link-seller-promotion.ts
diff --git a/packages/core-plugin/src/workflows/promotion/steps/register-usage.ts b/packages/core/src/workflows/promotion/steps/register-usage.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/promotion/steps/register-usage.ts
rename to packages/core/src/workflows/promotion/steps/register-usage.ts
diff --git a/packages/core-plugin/src/workflows/promotion/workflows/create-seller-promotions.ts b/packages/core/src/workflows/promotion/workflows/create-seller-promotions.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/promotion/workflows/create-seller-promotions.ts
rename to packages/core/src/workflows/promotion/workflows/create-seller-promotions.ts
diff --git a/packages/core-plugin/src/workflows/promotion/workflows/index.ts b/packages/core/src/workflows/promotion/workflows/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/promotion/workflows/index.ts
rename to packages/core/src/workflows/promotion/workflows/index.ts
diff --git a/packages/core-plugin/src/workflows/seller/index.ts b/packages/core/src/workflows/seller/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/index.ts
rename to packages/core/src/workflows/seller/index.ts
diff --git a/packages/core-plugin/src/workflows/seller/steps/create-member-invites.ts b/packages/core/src/workflows/seller/steps/create-member-invites.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/steps/create-member-invites.ts
rename to packages/core/src/workflows/seller/steps/create-member-invites.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/steps/create-seller-default-roles.ts
rename to packages/core/src/workflows/seller/steps/create-seller-default-roles.ts
diff --git a/packages/core-plugin/src/workflows/seller/steps/create-seller-member.ts b/packages/core/src/workflows/seller/steps/create-seller-member.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/steps/create-seller-member.ts
rename to packages/core/src/workflows/seller/steps/create-seller-member.ts
diff --git a/packages/core-plugin/src/workflows/seller/steps/create-seller.ts b/packages/core/src/workflows/seller/steps/create-seller.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/steps/create-seller.ts
rename to packages/core/src/workflows/seller/steps/create-seller.ts
diff --git a/packages/core-plugin/src/workflows/seller/steps/delete-member-invite.ts b/packages/core/src/workflows/seller/steps/delete-member-invite.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/steps/delete-member-invite.ts
rename to packages/core/src/workflows/seller/steps/delete-member-invite.ts
diff --git a/packages/core-plugin/src/workflows/seller/steps/delete-seller-member.ts b/packages/core/src/workflows/seller/steps/delete-seller-member.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/steps/delete-seller-member.ts
rename to packages/core/src/workflows/seller/steps/delete-seller-member.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/steps/delete-seller-professional-details.ts
rename to packages/core/src/workflows/seller/steps/delete-seller-professional-details.ts
diff --git a/packages/core-plugin/src/workflows/seller/steps/delete-seller.ts b/packages/core/src/workflows/seller/steps/delete-seller.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/steps/delete-seller.ts
rename to packages/core/src/workflows/seller/steps/delete-seller.ts
diff --git a/packages/core-plugin/src/workflows/seller/steps/index.ts b/packages/core/src/workflows/seller/steps/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/steps/index.ts
rename to packages/core/src/workflows/seller/steps/index.ts
diff --git a/packages/core-plugin/src/workflows/seller/steps/send-invitation-email.ts b/packages/core/src/workflows/seller/steps/send-invitation-email.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/steps/send-invitation-email.ts
rename to packages/core/src/workflows/seller/steps/send-invitation-email.ts
diff --git a/packages/core-plugin/src/workflows/seller/steps/update-payment-details.ts b/packages/core/src/workflows/seller/steps/update-payment-details.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/steps/update-payment-details.ts
rename to packages/core/src/workflows/seller/steps/update-payment-details.ts
diff --git a/packages/core-plugin/src/workflows/seller/steps/update-seller-address.ts b/packages/core/src/workflows/seller/steps/update-seller-address.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/steps/update-seller-address.ts
rename to packages/core/src/workflows/seller/steps/update-seller-address.ts
diff --git a/packages/core-plugin/src/workflows/seller/steps/update-seller-member.ts b/packages/core/src/workflows/seller/steps/update-seller-member.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/steps/update-seller-member.ts
rename to packages/core/src/workflows/seller/steps/update-seller-member.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/steps/update-seller-professional-details.ts
rename to packages/core/src/workflows/seller/steps/update-seller-professional-details.ts
diff --git a/packages/core-plugin/src/workflows/seller/steps/update-seller.ts b/packages/core/src/workflows/seller/steps/update-seller.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/steps/update-seller.ts
rename to packages/core/src/workflows/seller/steps/update-seller.ts
diff --git a/packages/core-plugin/src/workflows/seller/steps/upsert-member.ts b/packages/core/src/workflows/seller/steps/upsert-member.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/steps/upsert-member.ts
rename to packages/core/src/workflows/seller/steps/upsert-member.ts
diff --git a/packages/core-plugin/src/workflows/seller/steps/validate-approve-seller.ts b/packages/core/src/workflows/seller/steps/validate-approve-seller.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/steps/validate-approve-seller.ts
rename to packages/core/src/workflows/seller/steps/validate-approve-seller.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/steps/validate-member-invite-token.ts
rename to packages/core/src/workflows/seller/steps/validate-member-invite-token.ts
diff --git a/packages/core-plugin/src/workflows/seller/steps/validate-not-owner.ts b/packages/core/src/workflows/seller/steps/validate-not-owner.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/steps/validate-not-owner.ts
rename to packages/core/src/workflows/seller/steps/validate-not-owner.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/steps/validate-remove-seller-member.ts
rename to packages/core/src/workflows/seller/steps/validate-remove-seller-member.ts
diff --git a/packages/core-plugin/src/workflows/seller/steps/validate-suspend-seller.ts b/packages/core/src/workflows/seller/steps/validate-suspend-seller.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/steps/validate-suspend-seller.ts
rename to packages/core/src/workflows/seller/steps/validate-suspend-seller.ts
diff --git a/packages/core-plugin/src/workflows/seller/steps/validate-terminate-seller.ts b/packages/core/src/workflows/seller/steps/validate-terminate-seller.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/steps/validate-terminate-seller.ts
rename to packages/core/src/workflows/seller/steps/validate-terminate-seller.ts
diff --git a/packages/core-plugin/src/workflows/seller/steps/validate-unsuspend-seller.ts b/packages/core/src/workflows/seller/steps/validate-unsuspend-seller.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/steps/validate-unsuspend-seller.ts
rename to packages/core/src/workflows/seller/steps/validate-unsuspend-seller.ts
diff --git a/packages/core-plugin/src/workflows/seller/steps/validate-unterminate-seller.ts b/packages/core/src/workflows/seller/steps/validate-unterminate-seller.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/steps/validate-unterminate-seller.ts
rename to packages/core/src/workflows/seller/steps/validate-unterminate-seller.ts
diff --git a/packages/core-plugin/src/workflows/seller/workflows/accept-member-invite.ts b/packages/core/src/workflows/seller/workflows/accept-member-invite.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/workflows/accept-member-invite.ts
rename to packages/core/src/workflows/seller/workflows/accept-member-invite.ts
diff --git a/packages/core-plugin/src/workflows/seller/workflows/add-seller-member.ts b/packages/core/src/workflows/seller/workflows/add-seller-member.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/workflows/add-seller-member.ts
rename to packages/core/src/workflows/seller/workflows/add-seller-member.ts
diff --git a/packages/core-plugin/src/workflows/seller/workflows/approve-seller.ts b/packages/core/src/workflows/seller/workflows/approve-seller.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/workflows/approve-seller.ts
rename to packages/core/src/workflows/seller/workflows/approve-seller.ts
diff --git a/packages/core-plugin/src/workflows/seller/workflows/create-member-invites.ts b/packages/core/src/workflows/seller/workflows/create-member-invites.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/workflows/create-member-invites.ts
rename to packages/core/src/workflows/seller/workflows/create-member-invites.ts
diff --git a/packages/core-plugin/src/workflows/seller/workflows/create-seller-account.ts b/packages/core/src/workflows/seller/workflows/create-seller-account.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/workflows/create-seller-account.ts
rename to packages/core/src/workflows/seller/workflows/create-seller-account.ts
diff --git a/packages/core-plugin/src/workflows/seller/workflows/create-seller-defaults.ts b/packages/core/src/workflows/seller/workflows/create-seller-defaults.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/workflows/create-seller-defaults.ts
rename to packages/core/src/workflows/seller/workflows/create-seller-defaults.ts
diff --git a/packages/core-plugin/src/workflows/seller/workflows/create-sellers.ts b/packages/core/src/workflows/seller/workflows/create-sellers.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/workflows/create-sellers.ts
rename to packages/core/src/workflows/seller/workflows/create-sellers.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/workflows/delete-seller-professional-details.ts
rename to packages/core/src/workflows/seller/workflows/delete-seller-professional-details.ts
diff --git a/packages/core-plugin/src/workflows/seller/workflows/delete-seller.ts b/packages/core/src/workflows/seller/workflows/delete-seller.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/workflows/delete-seller.ts
rename to packages/core/src/workflows/seller/workflows/delete-seller.ts
diff --git a/packages/core-plugin/src/workflows/seller/workflows/index.ts b/packages/core/src/workflows/seller/workflows/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/workflows/index.ts
rename to packages/core/src/workflows/seller/workflows/index.ts
diff --git a/packages/core-plugin/src/workflows/seller/workflows/invite-seller.ts b/packages/core/src/workflows/seller/workflows/invite-seller.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/workflows/invite-seller.ts
rename to packages/core/src/workflows/seller/workflows/invite-seller.ts
diff --git a/packages/core-plugin/src/workflows/seller/workflows/remove-seller-member.ts b/packages/core/src/workflows/seller/workflows/remove-seller-member.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/workflows/remove-seller-member.ts
rename to packages/core/src/workflows/seller/workflows/remove-seller-member.ts
diff --git a/packages/core-plugin/src/workflows/seller/workflows/suspend-seller.ts b/packages/core/src/workflows/seller/workflows/suspend-seller.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/workflows/suspend-seller.ts
rename to packages/core/src/workflows/seller/workflows/suspend-seller.ts
diff --git a/packages/core-plugin/src/workflows/seller/workflows/terminate-seller.ts b/packages/core/src/workflows/seller/workflows/terminate-seller.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/workflows/terminate-seller.ts
rename to packages/core/src/workflows/seller/workflows/terminate-seller.ts
diff --git a/packages/core-plugin/src/workflows/seller/workflows/unsuspend-seller.ts b/packages/core/src/workflows/seller/workflows/unsuspend-seller.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/workflows/unsuspend-seller.ts
rename to packages/core/src/workflows/seller/workflows/unsuspend-seller.ts
diff --git a/packages/core-plugin/src/workflows/seller/workflows/unterminate-seller.ts b/packages/core/src/workflows/seller/workflows/unterminate-seller.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/workflows/unterminate-seller.ts
rename to packages/core/src/workflows/seller/workflows/unterminate-seller.ts
diff --git a/packages/core-plugin/src/workflows/seller/workflows/update-member-role.ts b/packages/core/src/workflows/seller/workflows/update-member-role.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/workflows/update-member-role.ts
rename to packages/core/src/workflows/seller/workflows/update-member-role.ts
diff --git a/packages/core-plugin/src/workflows/seller/workflows/update-seller-address.ts b/packages/core/src/workflows/seller/workflows/update-seller-address.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/workflows/update-seller-address.ts
rename to packages/core/src/workflows/seller/workflows/update-seller-address.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/workflows/update-seller-payment-details.ts
rename to packages/core/src/workflows/seller/workflows/update-seller-payment-details.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/workflows/update-seller-professional-details.ts
rename to packages/core/src/workflows/seller/workflows/update-seller-professional-details.ts
diff --git a/packages/core-plugin/src/workflows/seller/workflows/update-seller.ts b/packages/core/src/workflows/seller/workflows/update-seller.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/seller/workflows/update-seller.ts
rename to packages/core/src/workflows/seller/workflows/update-seller.ts
diff --git a/packages/core-plugin/src/workflows/shipping-option/index.ts b/packages/core/src/workflows/shipping-option/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/shipping-option/index.ts
rename to packages/core/src/workflows/shipping-option/index.ts
diff --git a/packages/core-plugin/src/workflows/shipping-option/steps/index.ts b/packages/core/src/workflows/shipping-option/steps/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/shipping-option/steps/index.ts
rename to packages/core/src/workflows/shipping-option/steps/index.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/shipping-option/steps/link-seller-shipping-option.ts
rename to packages/core/src/workflows/shipping-option/steps/link-seller-shipping-option.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/shipping-option/workflows/create-seller-shipping-options.ts
rename to packages/core/src/workflows/shipping-option/workflows/create-seller-shipping-options.ts
diff --git a/packages/core-plugin/src/workflows/shipping-option/workflows/index.ts b/packages/core/src/workflows/shipping-option/workflows/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/shipping-option/workflows/index.ts
rename to packages/core/src/workflows/shipping-option/workflows/index.ts
diff --git a/packages/core-plugin/src/workflows/shipping-profile/index.ts b/packages/core/src/workflows/shipping-profile/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/shipping-profile/index.ts
rename to packages/core/src/workflows/shipping-profile/index.ts
diff --git a/packages/core-plugin/src/workflows/shipping-profile/steps/index.ts b/packages/core/src/workflows/shipping-profile/steps/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/shipping-profile/steps/index.ts
rename to packages/core/src/workflows/shipping-profile/steps/index.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/shipping-profile/steps/link-seller-shipping-profile.ts
rename to packages/core/src/workflows/shipping-profile/steps/link-seller-shipping-profile.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/shipping-profile/workflows/create-seller-shipping-profiles.ts
rename to packages/core/src/workflows/shipping-profile/workflows/create-seller-shipping-profiles.ts
diff --git a/packages/core-plugin/src/workflows/shipping-profile/workflows/index.ts b/packages/core/src/workflows/shipping-profile/workflows/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/shipping-profile/workflows/index.ts
rename to packages/core/src/workflows/shipping-profile/workflows/index.ts
diff --git a/packages/core-plugin/src/workflows/stock-location/index.ts b/packages/core/src/workflows/stock-location/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/stock-location/index.ts
rename to packages/core/src/workflows/stock-location/index.ts
diff --git a/packages/core-plugin/src/workflows/stock-location/steps/index.ts b/packages/core/src/workflows/stock-location/steps/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/stock-location/steps/index.ts
rename to packages/core/src/workflows/stock-location/steps/index.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/stock-location/steps/link-seller-stock-location.ts
rename to packages/core/src/workflows/stock-location/steps/link-seller-stock-location.ts
diff --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.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/stock-location/workflows/create-seller-stock-locations.ts
rename to packages/core/src/workflows/stock-location/workflows/create-seller-stock-locations.ts
diff --git a/packages/core-plugin/src/workflows/stock-location/workflows/index.ts b/packages/core/src/workflows/stock-location/workflows/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/stock-location/workflows/index.ts
rename to packages/core/src/workflows/stock-location/workflows/index.ts
diff --git a/packages/core-plugin/src/workflows/subscription/index.ts b/packages/core/src/workflows/subscription/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/subscription/index.ts
rename to packages/core/src/workflows/subscription/index.ts
diff --git a/packages/core-plugin/src/workflows/subscription/steps/create-subscription-overrides.ts b/packages/core/src/workflows/subscription/steps/create-subscription-overrides.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/subscription/steps/create-subscription-overrides.ts
rename to packages/core/src/workflows/subscription/steps/create-subscription-overrides.ts
diff --git a/packages/core-plugin/src/workflows/subscription/steps/create-subscription-plans.ts b/packages/core/src/workflows/subscription/steps/create-subscription-plans.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/subscription/steps/create-subscription-plans.ts
rename to packages/core/src/workflows/subscription/steps/create-subscription-plans.ts
diff --git a/packages/core-plugin/src/workflows/subscription/steps/delete-subscription-overrides.ts b/packages/core/src/workflows/subscription/steps/delete-subscription-overrides.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/subscription/steps/delete-subscription-overrides.ts
rename to packages/core/src/workflows/subscription/steps/delete-subscription-overrides.ts
diff --git a/packages/core-plugin/src/workflows/subscription/steps/delete-subscription-plans.ts b/packages/core/src/workflows/subscription/steps/delete-subscription-plans.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/subscription/steps/delete-subscription-plans.ts
rename to packages/core/src/workflows/subscription/steps/delete-subscription-plans.ts
diff --git a/packages/core-plugin/src/workflows/subscription/steps/index.ts b/packages/core/src/workflows/subscription/steps/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/subscription/steps/index.ts
rename to packages/core/src/workflows/subscription/steps/index.ts
diff --git a/packages/core-plugin/src/workflows/subscription/steps/update-subscription-overrides.ts b/packages/core/src/workflows/subscription/steps/update-subscription-overrides.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/subscription/steps/update-subscription-overrides.ts
rename to packages/core/src/workflows/subscription/steps/update-subscription-overrides.ts
diff --git a/packages/core-plugin/src/workflows/subscription/steps/update-subscription-plans.ts b/packages/core/src/workflows/subscription/steps/update-subscription-plans.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/subscription/steps/update-subscription-plans.ts
rename to packages/core/src/workflows/subscription/steps/update-subscription-plans.ts
diff --git a/packages/core-plugin/src/workflows/subscription/workflows/create-subscription-overrides.ts b/packages/core/src/workflows/subscription/workflows/create-subscription-overrides.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/subscription/workflows/create-subscription-overrides.ts
rename to packages/core/src/workflows/subscription/workflows/create-subscription-overrides.ts
diff --git a/packages/core-plugin/src/workflows/subscription/workflows/create-subscription-plans.ts b/packages/core/src/workflows/subscription/workflows/create-subscription-plans.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/subscription/workflows/create-subscription-plans.ts
rename to packages/core/src/workflows/subscription/workflows/create-subscription-plans.ts
diff --git a/packages/core-plugin/src/workflows/subscription/workflows/delete-subscription-overrides.ts b/packages/core/src/workflows/subscription/workflows/delete-subscription-overrides.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/subscription/workflows/delete-subscription-overrides.ts
rename to packages/core/src/workflows/subscription/workflows/delete-subscription-overrides.ts
diff --git a/packages/core-plugin/src/workflows/subscription/workflows/delete-subscription-plans.ts b/packages/core/src/workflows/subscription/workflows/delete-subscription-plans.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/subscription/workflows/delete-subscription-plans.ts
rename to packages/core/src/workflows/subscription/workflows/delete-subscription-plans.ts
diff --git a/packages/core-plugin/src/workflows/subscription/workflows/index.ts b/packages/core/src/workflows/subscription/workflows/index.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/subscription/workflows/index.ts
rename to packages/core/src/workflows/subscription/workflows/index.ts
diff --git a/packages/core-plugin/src/workflows/subscription/workflows/update-subscription-overrides.ts b/packages/core/src/workflows/subscription/workflows/update-subscription-overrides.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/subscription/workflows/update-subscription-overrides.ts
rename to packages/core/src/workflows/subscription/workflows/update-subscription-overrides.ts
diff --git a/packages/core-plugin/src/workflows/subscription/workflows/update-subscription-plans.ts b/packages/core/src/workflows/subscription/workflows/update-subscription-plans.ts
similarity index 100%
rename from packages/core-plugin/src/workflows/subscription/workflows/update-subscription-plans.ts
rename to packages/core/src/workflows/subscription/workflows/update-subscription-plans.ts
diff --git a/packages/core-plugin/tsconfig.json b/packages/core/tsconfig.json
similarity index 100%
rename from packages/core-plugin/tsconfig.json
rename to packages/core/tsconfig.json
diff --git a/packages/dashboard-shared/package.json b/packages/dashboard-shared/package.json
index 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.ts
index 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.json
index 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.json
index 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.json
index 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.json
index 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.json
index 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.json
index 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.ts
index 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.ts
index 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.ts
index 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.ts
index 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.ts
index 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.ts
index 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.ts
index 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.ts
index 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.ts
index 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.ts
index 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.ts
index 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.ts
index 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.ts
index 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.ts
index 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.ts
index 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.ts
index 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.ts
index 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.ts
index 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.json
index 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.ts
index 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.md
index 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 element
For 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 imports
3. **Modules** — copy to `packages/api/src/modules/`, register in config
4. **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 generics
8. **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 Conditions
Stop 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 Info
diff --git a/templates/basic/packages/api/medusa-config.ts b/templates/basic/packages/api/medusa-config.ts
index 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.json
index 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.ts
index 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",