Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Fix: stop Products lighting up alongside Inventory

Damian Legawiecea4a39bfd012
diff --git a/packages/dashboard-starter/src/routeTree.gen.ts b/packages/dashboard-starter/src/routeTree.gen.ts
index 90fb72c483..2d34d186a0 100644
--- a/packages/dashboard-starter/src/routeTree.gen.ts
+++ b/packages/dashboard-starter/src/routeTree.gen.ts
@@ -18,20 +18,24 @@ import { Route as authenticatedIndexRouteImport } from './../../dashboard/src/ro
import { Route as acceptInvitationDotinvitationIdRouteImport } from './../../dashboard/src/routes/accept-invitation.$invitationId'
import { Route as authenticatedStoreIdRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId'
import { Route as IndexRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/index'
+import { Route as SuppliersRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/suppliers'
import { Route as SettingsRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/settings'
import { Route as ReturnsRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/returns'
import { Route as GettingStartedRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/getting-started'
import { Route as ExchangesRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/exchanges'
import { Route as ClaimsRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/claims'
import { Route as SplatRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/$'
+import { Route as TransfersIndexRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/transfers/index'
import { Route as SettingsIndexRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/settings/index'
import { Route as SellersIndexRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/sellers/index'
+import { Route as PurchaseOrdersIndexRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/purchase-orders/index'
import { Route as PromotionsIndexRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/promotions/index'
import { Route as ProductsIndexRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/products/index'
import { Route as OrdersIndexRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/orders/index'
import { Route as CustomersIndexRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/customers/index'
import { Route as CompaniesIndexRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/companies/index'
import { Route as BrandsDotindexRouteImport } from './../../dashboard-plugin-example/src/routes/brands.index'
+import { Route as TransfersNewRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/transfers/new'
import { Route as SettingsTaxRatesRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/settings/tax-rates'
import { Route as SettingsTaxCategoriesRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/settings/tax-categories'
import { Route as SettingsStoreRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/settings/store'
@@ -55,11 +59,11 @@ import { Route as SettingsApiKeysRouteImport } from './../../dashboard/src/route
import { Route as SettingsAllowedOriginsRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/settings/allowed-origins'
import { Route as SellersTransfersRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/sellers/transfers'
import { Route as SellersSellerIdRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/sellers/$sellerId'
+import { Route as PurchaseOrdersNewRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/purchase-orders/new'
import { Route as PromotionsNewRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/promotions/new'
import { Route as PromotionsGiftCardsRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/promotions/gift-cards'
import { Route as PromotionsPromotionIdRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/promotions/$promotionId'
import { Route as ProductsTranslationsRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/products/translations'
-import { Route as ProductsSuppliersRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/products/suppliers'
import { Route as ProductsOptionsRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/products/options'
import { Route as ProductsNewRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/products/new'
import { Route as ProductsMediaRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/products/media'
@@ -70,21 +74,21 @@ import { Route as CustomersGroupsRouteImport } from './../../dashboard/src/route
import { Route as CustomersCustomerIdRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/customers/$customerId'
import { Route as CompaniesCompanyIdRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/companies/$companyId'
import { Route as BrandsDotbrandIdRouteImport } from './../../dashboard-plugin-example/src/routes/brands.$brandId'
+import { Route as TransfersTransferIdIndexRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/transfers/$transferId/index'
import { Route as SettingsWebhooksIndexRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/settings/webhooks/index'
import { Route as SettingsImportsIndexRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/settings/imports/index'
import { Route as SettingsDeliveryProfilesIndexRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/settings/delivery-profiles/index'
import { Route as SellersPayoutsIndexRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/sellers/payouts/index'
-import { Route as ProductsTransfersIndexRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/products/transfers/index'
-import { Route as ProductsPurchaseOrdersIndexRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/products/purchase-orders/index'
+import { Route as PurchaseOrdersPurchaseOrderIdIndexRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/purchase-orders/$purchaseOrderId/index'
import { Route as ProductsPriceListsIndexRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/products/price-lists/index'
import { Route as ProductsCollectionsIndexRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/products/collections/index'
import { Route as ProductsCategoriesIndexRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/products/categories/index'
import { Route as ProductsCatalogsIndexRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/products/catalogs/index'
import { Route as OrdersOrderIdIndexRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/orders/$orderId/index'
+import { Route as TransfersTransferIdEditRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/transfers/$transferId/edit'
import { Route as SettingsWebhooksWebhookEndpointIdRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/settings/webhooks/$webhookEndpointId'
import { Route as SellersPayoutsPayoutIdRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/sellers/payouts/$payoutId'
-import { Route as ProductsTransfersNewRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/products/transfers/new'
-import { Route as ProductsPurchaseOrdersNewRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/products/purchase-orders/new'
+import { Route as PurchaseOrdersPurchaseOrderIdEditRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/purchase-orders/$purchaseOrderId/edit'
import { Route as ProductsPriceListsNewRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/products/price-lists/new'
import { Route as ProductsCollectionsNewRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/products/collections/new'
import { Route as ProductsCollectionsCollectionIdRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/products/collections/$collectionId'
@@ -93,11 +97,7 @@ import { Route as ProductsCategoriesCategoryIdRouteImport } from './../../dashbo
import { Route as ProductsCatalogsCatalogIdRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/products/catalogs/$catalogId'
import { Route as OrdersOrderIdEditRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/orders/$orderId/edit'
import { Route as SettingsDeliveryProfilesProfileIdIndexRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/settings/delivery-profiles/$profileId/index'
-import { Route as ProductsTransfersTransferIdIndexRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/products/transfers/$transferId/index'
-import { Route as ProductsPurchaseOrdersPurchaseOrderIdIndexRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/products/purchase-orders/$purchaseOrderId/index'
import { Route as ProductsPriceListsPriceListIdIndexRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/products/price-lists/$priceListId/index'
-import { Route as ProductsTransfersTransferIdEditRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/products/transfers/$transferId/edit'
-import { Route as ProductsPurchaseOrdersPurchaseOrderIdEditRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/products/purchase-orders/$purchaseOrderId/edit'
import { Route as SettingsDeliveryProfilesProfileIdMethodsNewRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/settings/delivery-profiles/$profileId/methods/new'
import { Route as SettingsDeliveryProfilesProfileIdMethodsMethodIdRouteImport } from './../../dashboard/src/routes/_authenticated/$storeId/settings/delivery-profiles/$profileId/methods/$methodId'
@@ -146,6 +146,11 @@ const IndexRoute = IndexRouteImport.update({
path: '/',
getParentRoute: () => authenticatedStoreIdRoute,
} as any)
+const SuppliersRoute = SuppliersRouteImport.update({
+ id: '/suppliers',
+ path: '/suppliers',
+ getParentRoute: () => authenticatedStoreIdRoute,
+} as any)
const SettingsRoute = SettingsRouteImport.update({
id: '/settings',
path: '/settings',
@@ -176,6 +181,11 @@ const SplatRoute = SplatRouteImport.update({
path: '/$',
getParentRoute: () => authenticatedStoreIdRoute,
} as any)
+const TransfersIndexRoute = TransfersIndexRouteImport.update({
+ id: '/transfers/',
+ path: '/transfers/',
+ getParentRoute: () => authenticatedStoreIdRoute,
+} as any)
const SettingsIndexRoute = SettingsIndexRouteImport.update({
id: '/',
path: '/',
@@ -186,6 +196,11 @@ const SellersIndexRoute = SellersIndexRouteImport.update({
path: '/sellers/',
getParentRoute: () => authenticatedStoreIdRoute,
} as any)
+const PurchaseOrdersIndexRoute = PurchaseOrdersIndexRouteImport.update({
+ id: '/purchase-orders/',
+ path: '/purchase-orders/',
+ getParentRoute: () => authenticatedStoreIdRoute,
+} as any)
const PromotionsIndexRoute = PromotionsIndexRouteImport.update({
id: '/promotions/',
path: '/promotions/',
@@ -216,6 +231,11 @@ const BrandsDotindexRoute = BrandsDotindexRouteImport.update({
path: '/brands/',
getParentRoute: () => authenticatedStoreIdRoute,
} as any)
+const TransfersNewRoute = TransfersNewRouteImport.update({
+ id: '/transfers/new',
+ path: '/transfers/new',
+ getParentRoute: () => authenticatedStoreIdRoute,
+} as any)
const SettingsTaxRatesRoute = SettingsTaxRatesRouteImport.update({
id: '/tax-rates',
path: '/tax-rates',
@@ -333,6 +353,11 @@ const SellersSellerIdRoute = SellersSellerIdRouteImport.update({
path: '/sellers/$sellerId',
getParentRoute: () => authenticatedStoreIdRoute,
} as any)
+const PurchaseOrdersNewRoute = PurchaseOrdersNewRouteImport.update({
+ id: '/purchase-orders/new',
+ path: '/purchase-orders/new',
+ getParentRoute: () => authenticatedStoreIdRoute,
+} as any)
const PromotionsNewRoute = PromotionsNewRouteImport.update({
id: '/promotions/new',
path: '/promotions/new',
@@ -353,11 +378,6 @@ const ProductsTranslationsRoute = ProductsTranslationsRouteImport.update({
path: '/products/translations',
getParentRoute: () => authenticatedStoreIdRoute,
} as any)
-const ProductsSuppliersRoute = ProductsSuppliersRouteImport.update({
- id: '/products/suppliers',
- path: '/products/suppliers',
- getParentRoute: () => authenticatedStoreIdRoute,
-} as any)
const ProductsOptionsRoute = ProductsOptionsRouteImport.update({
id: '/products/options',
path: '/products/options',
@@ -408,6 +428,12 @@ const BrandsDotbrandIdRoute = BrandsDotbrandIdRouteImport.update({
path: '/brands/$brandId',
getParentRoute: () => authenticatedStoreIdRoute,
} as any)
+const TransfersTransferIdIndexRoute =
+ TransfersTransferIdIndexRouteImport.update({
+ id: '/transfers/$transferId/',
+ path: '/transfers/$transferId/',
+ getParentRoute: () => authenticatedStoreIdRoute,
+ } as any)
const SettingsWebhooksIndexRoute = SettingsWebhooksIndexRouteImport.update({
id: '/webhooks/',
path: '/webhooks/',
@@ -429,15 +455,10 @@ const SellersPayoutsIndexRoute = SellersPayoutsIndexRouteImport.update({
path: '/sellers/payouts/',
getParentRoute: () => authenticatedStoreIdRoute,
} as any)
-const ProductsTransfersIndexRoute = ProductsTransfersIndexRouteImport.update({
- id: '/products/transfers/',
- path: '/products/transfers/',
- getParentRoute: () => authenticatedStoreIdRoute,
-} as any)
-const ProductsPurchaseOrdersIndexRoute =
- ProductsPurchaseOrdersIndexRouteImport.update({
- id: '/products/purchase-orders/',
- path: '/products/purchase-orders/',
+const PurchaseOrdersPurchaseOrderIdIndexRoute =
+ PurchaseOrdersPurchaseOrderIdIndexRouteImport.update({
+ id: '/purchase-orders/$purchaseOrderId/',
+ path: '/purchase-orders/$purchaseOrderId/',
getParentRoute: () => authenticatedStoreIdRoute,
} as any)
const ProductsPriceListsIndexRoute = ProductsPriceListsIndexRouteImport.update({
@@ -466,6 +487,11 @@ const OrdersOrderIdIndexRoute = OrdersOrderIdIndexRouteImport.update({
path: '/orders/$orderId/',
getParentRoute: () => authenticatedStoreIdRoute,
} as any)
+const TransfersTransferIdEditRoute = TransfersTransferIdEditRouteImport.update({
+ id: '/transfers/$transferId/edit',
+ path: '/transfers/$transferId/edit',
+ getParentRoute: () => authenticatedStoreIdRoute,
+} as any)
const SettingsWebhooksWebhookEndpointIdRoute =
SettingsWebhooksWebhookEndpointIdRouteImport.update({
id: '/webhooks/$webhookEndpointId',
@@ -477,15 +503,10 @@ const SellersPayoutsPayoutIdRoute = SellersPayoutsPayoutIdRouteImport.update({
path: '/sellers/payouts/$payoutId',
getParentRoute: () => authenticatedStoreIdRoute,
} as any)
-const ProductsTransfersNewRoute = ProductsTransfersNewRouteImport.update({
- id: '/products/transfers/new',
- path: '/products/transfers/new',
- getParentRoute: () => authenticatedStoreIdRoute,
-} as any)
-const ProductsPurchaseOrdersNewRoute =
- ProductsPurchaseOrdersNewRouteImport.update({
- id: '/products/purchase-orders/new',
- path: '/products/purchase-orders/new',
+const PurchaseOrdersPurchaseOrderIdEditRoute =
+ PurchaseOrdersPurchaseOrderIdEditRouteImport.update({
+ id: '/purchase-orders/$purchaseOrderId/edit',
+ path: '/purchase-orders/$purchaseOrderId/edit',
getParentRoute: () => authenticatedStoreIdRoute,
} as any)
const ProductsPriceListsNewRoute = ProductsPriceListsNewRouteImport.update({
@@ -532,36 +553,12 @@ const SettingsDeliveryProfilesProfileIdIndexRoute =
path: '/delivery-profiles/$profileId/',
getParentRoute: () => SettingsRoute,
} as any)
-const ProductsTransfersTransferIdIndexRoute =
- ProductsTransfersTransferIdIndexRouteImport.update({
- id: '/products/transfers/$transferId/',
- path: '/products/transfers/$transferId/',
- getParentRoute: () => authenticatedStoreIdRoute,
- } as any)
-const ProductsPurchaseOrdersPurchaseOrderIdIndexRoute =
- ProductsPurchaseOrdersPurchaseOrderIdIndexRouteImport.update({
- id: '/products/purchase-orders/$purchaseOrderId/',
- path: '/products/purchase-orders/$purchaseOrderId/',
- getParentRoute: () => authenticatedStoreIdRoute,
- } as any)
const ProductsPriceListsPriceListIdIndexRoute =
ProductsPriceListsPriceListIdIndexRouteImport.update({
id: '/products/price-lists/$priceListId/',
path: '/products/price-lists/$priceListId/',
getParentRoute: () => authenticatedStoreIdRoute,
} as any)
-const ProductsTransfersTransferIdEditRoute =
- ProductsTransfersTransferIdEditRouteImport.update({
- id: '/products/transfers/$transferId/edit',
- path: '/products/transfers/$transferId/edit',
- getParentRoute: () => authenticatedStoreIdRoute,
- } as any)
-const ProductsPurchaseOrdersPurchaseOrderIdEditRoute =
- ProductsPurchaseOrdersPurchaseOrderIdEditRouteImport.update({
- id: '/products/purchase-orders/$purchaseOrderId/edit',
- path: '/products/purchase-orders/$purchaseOrderId/edit',
- getParentRoute: () => authenticatedStoreIdRoute,
- } as any)
const SettingsDeliveryProfilesProfileIdMethodsNewRoute =
SettingsDeliveryProfilesProfileIdMethodsNewRouteImport.update({
id: '/delivery-profiles/$profileId/methods/new',
@@ -589,6 +586,7 @@ export interface FileRoutesByFullPath {
'/$storeId/getting-started': typeof GettingStartedRoute
'/$storeId/returns': typeof ReturnsRoute
'/$storeId/settings': typeof SettingsRouteWithChildren
+ '/$storeId/suppliers': typeof SuppliersRoute
'/$storeId/': typeof IndexRoute
'/$storeId/brands/$brandId': typeof BrandsDotbrandIdRoute
'/$storeId/companies/$companyId': typeof CompaniesCompanyIdRoute
@@ -600,11 +598,11 @@ export interface FileRoutesByFullPath {
'/$storeId/products/media': typeof ProductsMediaRoute
'/$storeId/products/new': typeof ProductsNewRoute
'/$storeId/products/options': typeof ProductsOptionsRoute
- '/$storeId/products/suppliers': typeof ProductsSuppliersRoute
'/$storeId/products/translations': typeof ProductsTranslationsRoute
'/$storeId/promotions/$promotionId': typeof PromotionsPromotionIdRoute
'/$storeId/promotions/gift-cards': typeof PromotionsGiftCardsRoute
'/$storeId/promotions/new': typeof PromotionsNewRoute
+ '/$storeId/purchase-orders/new': typeof PurchaseOrdersNewRoute
'/$storeId/sellers/$sellerId': typeof SellersSellerIdRoute
'/$storeId/sellers/transfers': typeof SellersTransfersRoute
'/$storeId/settings/allowed-origins': typeof SettingsAllowedOriginsRoute
@@ -628,14 +626,17 @@ export interface FileRoutesByFullPath {
'/$storeId/settings/store': typeof SettingsStoreRoute
'/$storeId/settings/tax-categories': typeof SettingsTaxCategoriesRoute
'/$storeId/settings/tax-rates': typeof SettingsTaxRatesRoute
+ '/$storeId/transfers/new': typeof TransfersNewRoute
'/$storeId/brands/': typeof BrandsDotindexRoute
'/$storeId/companies/': typeof CompaniesIndexRoute
'/$storeId/customers/': typeof CustomersIndexRoute
'/$storeId/orders/': typeof OrdersIndexRoute
'/$storeId/products/': typeof ProductsIndexRoute
'/$storeId/promotions/': typeof PromotionsIndexRoute
+ '/$storeId/purchase-orders/': typeof PurchaseOrdersIndexRoute
'/$storeId/sellers/': typeof SellersIndexRoute
'/$storeId/settings/': typeof SettingsIndexRoute
+ '/$storeId/transfers/': typeof TransfersIndexRoute
'/$storeId/orders/$orderId/edit': typeof OrdersOrderIdEditRoute
'/$storeId/products/catalogs/$catalogId': typeof ProductsCatalogsCatalogIdRoute
'/$storeId/products/categories/$categoryId': typeof ProductsCategoriesCategoryIdRoute
@@ -643,26 +644,22 @@ export interface FileRoutesByFullPath {
'/$storeId/products/collections/$collectionId': typeof ProductsCollectionsCollectionIdRoute
'/$storeId/products/collections/new': typeof ProductsCollectionsNewRoute
'/$storeId/products/price-lists/new': typeof ProductsPriceListsNewRoute
- '/$storeId/products/purchase-orders/new': typeof ProductsPurchaseOrdersNewRoute
- '/$storeId/products/transfers/new': typeof ProductsTransfersNewRoute
+ '/$storeId/purchase-orders/$purchaseOrderId/edit': typeof PurchaseOrdersPurchaseOrderIdEditRoute
'/$storeId/sellers/payouts/$payoutId': typeof SellersPayoutsPayoutIdRoute
'/$storeId/settings/webhooks/$webhookEndpointId': typeof SettingsWebhooksWebhookEndpointIdRoute
+ '/$storeId/transfers/$transferId/edit': typeof TransfersTransferIdEditRoute
'/$storeId/orders/$orderId/': typeof OrdersOrderIdIndexRoute
'/$storeId/products/catalogs/': typeof ProductsCatalogsIndexRoute
'/$storeId/products/categories/': typeof ProductsCategoriesIndexRoute
'/$storeId/products/collections/': typeof ProductsCollectionsIndexRoute
'/$storeId/products/price-lists/': typeof ProductsPriceListsIndexRoute
- '/$storeId/products/purchase-orders/': typeof ProductsPurchaseOrdersIndexRoute
- '/$storeId/products/transfers/': typeof ProductsTransfersIndexRoute
+ '/$storeId/purchase-orders/$purchaseOrderId/': typeof PurchaseOrdersPurchaseOrderIdIndexRoute
'/$storeId/sellers/payouts/': typeof SellersPayoutsIndexRoute
'/$storeId/settings/delivery-profiles/': typeof SettingsDeliveryProfilesIndexRoute
'/$storeId/settings/imports/': typeof SettingsImportsIndexRoute
'/$storeId/settings/webhooks/': typeof SettingsWebhooksIndexRoute
- '/$storeId/products/purchase-orders/$purchaseOrderId/edit': typeof ProductsPurchaseOrdersPurchaseOrderIdEditRoute
- '/$storeId/products/transfers/$transferId/edit': typeof ProductsTransfersTransferIdEditRoute
+ '/$storeId/transfers/$transferId/': typeof TransfersTransferIdIndexRoute
'/$storeId/products/price-lists/$priceListId/': typeof ProductsPriceListsPriceListIdIndexRoute
- '/$storeId/products/purchase-orders/$purchaseOrderId/': typeof ProductsPurchaseOrdersPurchaseOrderIdIndexRoute
- '/$storeId/products/transfers/$transferId/': typeof ProductsTransfersTransferIdIndexRoute
'/$storeId/settings/delivery-profiles/$profileId/': typeof SettingsDeliveryProfilesProfileIdIndexRoute
'/$storeId/settings/delivery-profiles/$profileId/methods/$methodId': typeof SettingsDeliveryProfilesProfileIdMethodsMethodIdRoute
'/$storeId/settings/delivery-profiles/$profileId/methods/new': typeof SettingsDeliveryProfilesProfileIdMethodsNewRoute
@@ -679,6 +676,7 @@ export interface FileRoutesByTo {
'/$storeId/exchanges': typeof ExchangesRoute
'/$storeId/getting-started': typeof GettingStartedRoute
'/$storeId/returns': typeof ReturnsRoute
+ '/$storeId/suppliers': typeof SuppliersRoute
'/$storeId': typeof IndexRoute
'/$storeId/brands/$brandId': typeof BrandsDotbrandIdRoute
'/$storeId/companies/$companyId': typeof CompaniesCompanyIdRoute
@@ -690,11 +688,11 @@ export interface FileRoutesByTo {
'/$storeId/products/media': typeof ProductsMediaRoute
'/$storeId/products/new': typeof ProductsNewRoute
'/$storeId/products/options': typeof ProductsOptionsRoute
- '/$storeId/products/suppliers': typeof ProductsSuppliersRoute
'/$storeId/products/translations': typeof ProductsTranslationsRoute
'/$storeId/promotions/$promotionId': typeof PromotionsPromotionIdRoute
'/$storeId/promotions/gift-cards': typeof PromotionsGiftCardsRoute
'/$storeId/promotions/new': typeof PromotionsNewRoute
+ '/$storeId/purchase-orders/new': typeof PurchaseOrdersNewRoute
'/$storeId/sellers/$sellerId': typeof SellersSellerIdRoute
'/$storeId/sellers/transfers': typeof SellersTransfersRoute
'/$storeId/settings/allowed-origins': typeof SettingsAllowedOriginsRoute
@@ -718,14 +716,17 @@ export interface FileRoutesByTo {
'/$storeId/settings/store': typeof SettingsStoreRoute
'/$storeId/settings/tax-categories': typeof SettingsTaxCategoriesRoute
'/$storeId/settings/tax-rates': typeof SettingsTaxRatesRoute
+ '/$storeId/transfers/new': typeof TransfersNewRoute
'/$storeId/brands': typeof BrandsDotindexRoute
'/$storeId/companies': typeof CompaniesIndexRoute
'/$storeId/customers': typeof CustomersIndexRoute
'/$storeId/orders': typeof OrdersIndexRoute
'/$storeId/products': typeof ProductsIndexRoute
'/$storeId/promotions': typeof PromotionsIndexRoute
+ '/$storeId/purchase-orders': typeof PurchaseOrdersIndexRoute
'/$storeId/sellers': typeof SellersIndexRoute
'/$storeId/settings': typeof SettingsIndexRoute
+ '/$storeId/transfers': typeof TransfersIndexRoute
'/$storeId/orders/$orderId/edit': typeof OrdersOrderIdEditRoute
'/$storeId/products/catalogs/$catalogId': typeof ProductsCatalogsCatalogIdRoute
'/$storeId/products/categories/$categoryId': typeof ProductsCategoriesCategoryIdRoute
@@ -733,26 +734,22 @@ export interface FileRoutesByTo {
'/$storeId/products/collections/$collectionId': typeof ProductsCollectionsCollectionIdRoute
'/$storeId/products/collections/new': typeof ProductsCollectionsNewRoute
'/$storeId/products/price-lists/new': typeof ProductsPriceListsNewRoute
- '/$storeId/products/purchase-orders/new': typeof ProductsPurchaseOrdersNewRoute
- '/$storeId/products/transfers/new': typeof ProductsTransfersNewRoute
+ '/$storeId/purchase-orders/$purchaseOrderId/edit': typeof PurchaseOrdersPurchaseOrderIdEditRoute
'/$storeId/sellers/payouts/$payoutId': typeof SellersPayoutsPayoutIdRoute
'/$storeId/settings/webhooks/$webhookEndpointId': typeof SettingsWebhooksWebhookEndpointIdRoute
+ '/$storeId/transfers/$transferId/edit': typeof TransfersTransferIdEditRoute
'/$storeId/orders/$orderId': typeof OrdersOrderIdIndexRoute
'/$storeId/products/catalogs': typeof ProductsCatalogsIndexRoute
'/$storeId/products/categories': typeof ProductsCategoriesIndexRoute
'/$storeId/products/collections': typeof ProductsCollectionsIndexRoute
'/$storeId/products/price-lists': typeof ProductsPriceListsIndexRoute
- '/$storeId/products/purchase-orders': typeof ProductsPurchaseOrdersIndexRoute
- '/$storeId/products/transfers': typeof ProductsTransfersIndexRoute
+ '/$storeId/purchase-orders/$purchaseOrderId': typeof PurchaseOrdersPurchaseOrderIdIndexRoute
'/$storeId/sellers/payouts': typeof SellersPayoutsIndexRoute
'/$storeId/settings/delivery-profiles': typeof SettingsDeliveryProfilesIndexRoute
'/$storeId/settings/imports': typeof SettingsImportsIndexRoute
'/$storeId/settings/webhooks': typeof SettingsWebhooksIndexRoute
- '/$storeId/products/purchase-orders/$purchaseOrderId/edit': typeof ProductsPurchaseOrdersPurchaseOrderIdEditRoute
- '/$storeId/products/transfers/$transferId/edit': typeof ProductsTransfersTransferIdEditRoute
+ '/$storeId/transfers/$transferId': typeof TransfersTransferIdIndexRoute
'/$storeId/products/price-lists/$priceListId': typeof ProductsPriceListsPriceListIdIndexRoute
- '/$storeId/products/purchase-orders/$purchaseOrderId': typeof ProductsPurchaseOrdersPurchaseOrderIdIndexRoute
- '/$storeId/products/transfers/$transferId': typeof ProductsTransfersTransferIdIndexRoute
'/$storeId/settings/delivery-profiles/$profileId': typeof SettingsDeliveryProfilesProfileIdIndexRoute
'/$storeId/settings/delivery-profiles/$profileId/methods/$methodId': typeof SettingsDeliveryProfilesProfileIdMethodsMethodIdRoute
'/$storeId/settings/delivery-profiles/$profileId/methods/new': typeof SettingsDeliveryProfilesProfileIdMethodsNewRoute
@@ -773,6 +770,7 @@ export interface FileRoutesById {
'/_authenticated/$storeId/getting-started': typeof GettingStartedRoute
'/_authenticated/$storeId/returns': typeof ReturnsRoute
'/_authenticated/$storeId/settings': typeof SettingsRouteWithChildren
+ '/_authenticated/$storeId/suppliers': typeof SuppliersRoute
'/_authenticated/$storeId/': typeof IndexRoute
'/_authenticated/$storeId/brands/$brandId': typeof BrandsDotbrandIdRoute
'/_authenticated/$storeId/companies/$companyId': typeof CompaniesCompanyIdRoute
@@ -784,11 +782,11 @@ export interface FileRoutesById {
'/_authenticated/$storeId/products/media': typeof ProductsMediaRoute
'/_authenticated/$storeId/products/new': typeof ProductsNewRoute
'/_authenticated/$storeId/products/options': typeof ProductsOptionsRoute
- '/_authenticated/$storeId/products/suppliers': typeof ProductsSuppliersRoute
'/_authenticated/$storeId/products/translations': typeof ProductsTranslationsRoute
'/_authenticated/$storeId/promotions/$promotionId': typeof PromotionsPromotionIdRoute
'/_authenticated/$storeId/promotions/gift-cards': typeof PromotionsGiftCardsRoute
'/_authenticated/$storeId/promotions/new': typeof PromotionsNewRoute
+ '/_authenticated/$storeId/purchase-orders/new': typeof PurchaseOrdersNewRoute
'/_authenticated/$storeId/sellers/$sellerId': typeof SellersSellerIdRoute
'/_authenticated/$storeId/sellers/transfers': typeof SellersTransfersRoute
'/_authenticated/$storeId/settings/allowed-origins': typeof SettingsAllowedOriginsRoute
@@ -812,14 +810,17 @@ export interface FileRoutesById {
'/_authenticated/$storeId/settings/store': typeof SettingsStoreRoute
'/_authenticated/$storeId/settings/tax-categories': typeof SettingsTaxCategoriesRoute
'/_authenticated/$storeId/settings/tax-rates': typeof SettingsTaxRatesRoute
+ '/_authenticated/$storeId/transfers/new': typeof TransfersNewRoute
'/_authenticated/$storeId/brands/': typeof BrandsDotindexRoute
'/_authenticated/$storeId/companies/': typeof CompaniesIndexRoute
'/_authenticated/$storeId/customers/': typeof CustomersIndexRoute
'/_authenticated/$storeId/orders/': typeof OrdersIndexRoute
'/_authenticated/$storeId/products/': typeof ProductsIndexRoute
'/_authenticated/$storeId/promotions/': typeof PromotionsIndexRoute
+ '/_authenticated/$storeId/purchase-orders/': typeof PurchaseOrdersIndexRoute
'/_authenticated/$storeId/sellers/': typeof SellersIndexRoute
'/_authenticated/$storeId/settings/': typeof SettingsIndexRoute
+ '/_authenticated/$storeId/transfers/': typeof TransfersIndexRoute
'/_authenticated/$storeId/orders/$orderId/edit': typeof OrdersOrderIdEditRoute
'/_authenticated/$storeId/products/catalogs/$catalogId': typeof ProductsCatalogsCatalogIdRoute
'/_authenticated/$storeId/products/categories/$categoryId': typeof ProductsCategoriesCategoryIdRoute
@@ -827,26 +828,22 @@ export interface FileRoutesById {
'/_authenticated/$storeId/products/collections/$collectionId': typeof ProductsCollectionsCollectionIdRoute
'/_authenticated/$storeId/products/collections/new': typeof ProductsCollectionsNewRoute
'/_authenticated/$storeId/products/price-lists/new': typeof ProductsPriceListsNewRoute
- '/_authenticated/$storeId/products/purchase-orders/new': typeof ProductsPurchaseOrdersNewRoute
- '/_authenticated/$storeId/products/transfers/new': typeof ProductsTransfersNewRoute
+ '/_authenticated/$storeId/purchase-orders/$purchaseOrderId/edit': typeof PurchaseOrdersPurchaseOrderIdEditRoute
'/_authenticated/$storeId/sellers/payouts/$payoutId': typeof SellersPayoutsPayoutIdRoute
'/_authenticated/$storeId/settings/webhooks/$webhookEndpointId': typeof SettingsWebhooksWebhookEndpointIdRoute
+ '/_authenticated/$storeId/transfers/$transferId/edit': typeof TransfersTransferIdEditRoute
'/_authenticated/$storeId/orders/$orderId/': typeof OrdersOrderIdIndexRoute
'/_authenticated/$storeId/products/catalogs/': typeof ProductsCatalogsIndexRoute
'/_authenticated/$storeId/products/categories/': typeof ProductsCategoriesIndexRoute
'/_authenticated/$storeId/products/collections/': typeof ProductsCollectionsIndexRoute
'/_authenticated/$storeId/products/price-lists/': typeof ProductsPriceListsIndexRoute
- '/_authenticated/$storeId/products/purchase-orders/': typeof ProductsPurchaseOrdersIndexRoute
- '/_authenticated/$storeId/products/transfers/': typeof ProductsTransfersIndexRoute
+ '/_authenticated/$storeId/purchase-orders/$purchaseOrderId/': typeof PurchaseOrdersPurchaseOrderIdIndexRoute
'/_authenticated/$storeId/sellers/payouts/': typeof SellersPayoutsIndexRoute
'/_authenticated/$storeId/settings/delivery-profiles/': typeof SettingsDeliveryProfilesIndexRoute
'/_authenticated/$storeId/settings/imports/': typeof SettingsImportsIndexRoute
'/_authenticated/$storeId/settings/webhooks/': typeof SettingsWebhooksIndexRoute
- '/_authenticated/$storeId/products/purchase-orders/$purchaseOrderId/edit': typeof ProductsPurchaseOrdersPurchaseOrderIdEditRoute
- '/_authenticated/$storeId/products/transfers/$transferId/edit': typeof ProductsTransfersTransferIdEditRoute
+ '/_authenticated/$storeId/transfers/$transferId/': typeof TransfersTransferIdIndexRoute
'/_authenticated/$storeId/products/price-lists/$priceListId/': typeof ProductsPriceListsPriceListIdIndexRoute
- '/_authenticated/$storeId/products/purchase-orders/$purchaseOrderId/': typeof ProductsPurchaseOrdersPurchaseOrderIdIndexRoute
- '/_authenticated/$storeId/products/transfers/$transferId/': typeof ProductsTransfersTransferIdIndexRoute
'/_authenticated/$storeId/settings/delivery-profiles/$profileId/': typeof SettingsDeliveryProfilesProfileIdIndexRoute
'/_authenticated/$storeId/settings/delivery-profiles/$profileId/methods/$methodId': typeof SettingsDeliveryProfilesProfileIdMethodsMethodIdRoute
'/_authenticated/$storeId/settings/delivery-profiles/$profileId/methods/new': typeof SettingsDeliveryProfilesProfileIdMethodsNewRoute
@@ -867,6 +864,7 @@ export interface FileRouteTypes {
| '/$storeId/getting-started'
| '/$storeId/returns'
| '/$storeId/settings'
+ | '/$storeId/suppliers'
| '/$storeId/'
| '/$storeId/brands/$brandId'
| '/$storeId/companies/$companyId'
@@ -878,11 +876,11 @@ export interface FileRouteTypes {
| '/$storeId/products/media'
| '/$storeId/products/new'
| '/$storeId/products/options'
- | '/$storeId/products/suppliers'
| '/$storeId/products/translations'
| '/$storeId/promotions/$promotionId'
| '/$storeId/promotions/gift-cards'
| '/$storeId/promotions/new'
+ | '/$storeId/purchase-orders/new'
| '/$storeId/sellers/$sellerId'
| '/$storeId/sellers/transfers'
| '/$storeId/settings/allowed-origins'
@@ -906,14 +904,17 @@ export interface FileRouteTypes {
| '/$storeId/settings/store'
| '/$storeId/settings/tax-categories'
| '/$storeId/settings/tax-rates'
+ | '/$storeId/transfers/new'
| '/$storeId/brands/'
| '/$storeId/companies/'
| '/$storeId/customers/'
| '/$storeId/orders/'
| '/$storeId/products/'
| '/$storeId/promotions/'
+ | '/$storeId/purchase-orders/'
| '/$storeId/sellers/'
| '/$storeId/settings/'
+ | '/$storeId/transfers/'
| '/$storeId/orders/$orderId/edit'
| '/$storeId/products/catalogs/$catalogId'
| '/$storeId/products/categories/$categoryId'
@@ -921,26 +922,22 @@ export interface FileRouteTypes {
| '/$storeId/products/collections/$collectionId'
| '/$storeId/products/collections/new'
| '/$storeId/products/price-lists/new'
- | '/$storeId/products/purchase-orders/new'
- | '/$storeId/products/transfers/new'
+ | '/$storeId/purchase-orders/$purchaseOrderId/edit'
| '/$storeId/sellers/payouts/$payoutId'
| '/$storeId/settings/webhooks/$webhookEndpointId'
+ | '/$storeId/transfers/$transferId/edit'
| '/$storeId/orders/$orderId/'
| '/$storeId/products/catalogs/'
| '/$storeId/products/categories/'
| '/$storeId/products/collections/'
| '/$storeId/products/price-lists/'
- | '/$storeId/products/purchase-orders/'
- | '/$storeId/products/transfers/'
+ | '/$storeId/purchase-orders/$purchaseOrderId/'
| '/$storeId/sellers/payouts/'
| '/$storeId/settings/delivery-profiles/'
| '/$storeId/settings/imports/'
| '/$storeId/settings/webhooks/'
- | '/$storeId/products/purchase-orders/$purchaseOrderId/edit'
- | '/$storeId/products/transfers/$transferId/edit'
+ | '/$storeId/transfers/$transferId/'
| '/$storeId/products/price-lists/$priceListId/'
- | '/$storeId/products/purchase-orders/$purchaseOrderId/'
- | '/$storeId/products/transfers/$transferId/'
| '/$storeId/settings/delivery-profiles/$profileId/'
| '/$storeId/settings/delivery-profiles/$profileId/methods/$methodId'
| '/$storeId/settings/delivery-profiles/$profileId/methods/new'
@@ -957,6 +954,7 @@ export interface FileRouteTypes {
| '/$storeId/exchanges'
| '/$storeId/getting-started'
| '/$storeId/returns'
+ | '/$storeId/suppliers'
| '/$storeId'
| '/$storeId/brands/$brandId'
| '/$storeId/companies/$companyId'
@@ -968,11 +966,11 @@ export interface FileRouteTypes {
| '/$storeId/products/media'
| '/$storeId/products/new'
| '/$storeId/products/options'
- | '/$storeId/products/suppliers'
| '/$storeId/products/translations'
| '/$storeId/promotions/$promotionId'
| '/$storeId/promotions/gift-cards'
| '/$storeId/promotions/new'
+ | '/$storeId/purchase-orders/new'
| '/$storeId/sellers/$sellerId'
| '/$storeId/sellers/transfers'
| '/$storeId/settings/allowed-origins'
@@ -996,14 +994,17 @@ export interface FileRouteTypes {
| '/$storeId/settings/store'
| '/$storeId/settings/tax-categories'
| '/$storeId/settings/tax-rates'
+ | '/$storeId/transfers/new'
| '/$storeId/brands'
| '/$storeId/companies'
| '/$storeId/customers'
| '/$storeId/orders'
| '/$storeId/products'
| '/$storeId/promotions'
+ | '/$storeId/purchase-orders'
| '/$storeId/sellers'
| '/$storeId/settings'
+ | '/$storeId/transfers'
| '/$storeId/orders/$orderId/edit'
| '/$storeId/products/catalogs/$catalogId'
| '/$storeId/products/categories/$categoryId'
@@ -1011,26 +1012,22 @@ export interface FileRouteTypes {
| '/$storeId/products/collections/$collectionId'
| '/$storeId/products/collections/new'
| '/$storeId/products/price-lists/new'
- | '/$storeId/products/purchase-orders/new'
- | '/$storeId/products/transfers/new'
+ | '/$storeId/purchase-orders/$purchaseOrderId/edit'
| '/$storeId/sellers/payouts/$payoutId'
| '/$storeId/settings/webhooks/$webhookEndpointId'
+ | '/$storeId/transfers/$transferId/edit'
| '/$storeId/orders/$orderId'
| '/$storeId/products/catalogs'
| '/$storeId/products/categories'
| '/$storeId/products/collections'
| '/$storeId/products/price-lists'
- | '/$storeId/products/purchase-orders'
- | '/$storeId/products/transfers'
+ | '/$storeId/purchase-orders/$purchaseOrderId'
| '/$storeId/sellers/payouts'
| '/$storeId/settings/delivery-profiles'
| '/$storeId/settings/imports'
| '/$storeId/settings/webhooks'
- | '/$storeId/products/purchase-orders/$purchaseOrderId/edit'
- | '/$storeId/products/transfers/$transferId/edit'
+ | '/$storeId/transfers/$transferId'
| '/$storeId/products/price-lists/$priceListId'
- | '/$storeId/products/purchase-orders/$purchaseOrderId'
- | '/$storeId/products/transfers/$transferId'
| '/$storeId/settings/delivery-profiles/$profileId'
| '/$storeId/settings/delivery-profiles/$profileId/methods/$methodId'
| '/$storeId/settings/delivery-profiles/$profileId/methods/new'
@@ -1050,6 +1047,7 @@ export interface FileRouteTypes {
| '/_authenticated/$storeId/getting-started'
| '/_authenticated/$storeId/returns'
| '/_authenticated/$storeId/settings'
+ | '/_authenticated/$storeId/suppliers'
| '/_authenticated/$storeId/'
| '/_authenticated/$storeId/brands/$brandId'
| '/_authenticated/$storeId/companies/$companyId'
@@ -1061,11 +1059,11 @@ export interface FileRouteTypes {
| '/_authenticated/$storeId/products/media'
| '/_authenticated/$storeId/products/new'
| '/_authenticated/$storeId/products/options'
- | '/_authenticated/$storeId/products/suppliers'
| '/_authenticated/$storeId/products/translations'
| '/_authenticated/$storeId/promotions/$promotionId'
| '/_authenticated/$storeId/promotions/gift-cards'
| '/_authenticated/$storeId/promotions/new'
+ | '/_authenticated/$storeId/purchase-orders/new'
| '/_authenticated/$storeId/sellers/$sellerId'
| '/_authenticated/$storeId/sellers/transfers'
| '/_authenticated/$storeId/settings/allowed-origins'
@@ -1089,14 +1087,17 @@ export interface FileRouteTypes {
| '/_authenticated/$storeId/settings/store'
| '/_authenticated/$storeId/settings/tax-categories'
| '/_authenticated/$storeId/settings/tax-rates'
+ | '/_authenticated/$storeId/transfers/new'
| '/_authenticated/$storeId/brands/'
| '/_authenticated/$storeId/companies/'
| '/_authenticated/$storeId/customers/'
| '/_authenticated/$storeId/orders/'
| '/_authenticated/$storeId/products/'
| '/_authenticated/$storeId/promotions/'
+ | '/_authenticated/$storeId/purchase-orders/'
| '/_authenticated/$storeId/sellers/'
| '/_authenticated/$storeId/settings/'
+ | '/_authenticated/$storeId/transfers/'
| '/_authenticated/$storeId/orders/$orderId/edit'
| '/_authenticated/$storeId/products/catalogs/$catalogId'
| '/_authenticated/$storeId/products/categories/$categoryId'
@@ -1104,26 +1105,22 @@ export interface FileRouteTypes {
| '/_authenticated/$storeId/products/collections/$collectionId'
| '/_authenticated/$storeId/products/collections/new'
| '/_authenticated/$storeId/products/price-lists/new'
- | '/_authenticated/$storeId/products/purchase-orders/new'
- | '/_authenticated/$storeId/products/transfers/new'
+ | '/_authenticated/$storeId/purchase-orders/$purchaseOrderId/edit'
| '/_authenticated/$storeId/sellers/payouts/$payoutId'
| '/_authenticated/$storeId/settings/webhooks/$webhookEndpointId'
+ | '/_authenticated/$storeId/transfers/$transferId/edit'
| '/_authenticated/$storeId/orders/$orderId/'
| '/_authenticated/$storeId/products/catalogs/'
| '/_authenticated/$storeId/products/categories/'
| '/_authenticated/$storeId/products/collections/'
| '/_authenticated/$storeId/products/price-lists/'
- | '/_authenticated/$storeId/products/purchase-orders/'
- | '/_authenticated/$storeId/products/transfers/'
+ | '/_authenticated/$storeId/purchase-orders/$purchaseOrderId/'
| '/_authenticated/$storeId/sellers/payouts/'
| '/_authenticated/$storeId/settings/delivery-profiles/'
| '/_authenticated/$storeId/settings/imports/'
| '/_authenticated/$storeId/settings/webhooks/'
- | '/_authenticated/$storeId/products/purchase-orders/$purchaseOrderId/edit'
- | '/_authenticated/$storeId/products/transfers/$transferId/edit'
+ | '/_authenticated/$storeId/transfers/$transferId/'
| '/_authenticated/$storeId/products/price-lists/$priceListId/'
- | '/_authenticated/$storeId/products/purchase-orders/$purchaseOrderId/'
- | '/_authenticated/$storeId/products/transfers/$transferId/'
| '/_authenticated/$storeId/settings/delivery-profiles/$profileId/'
| '/_authenticated/$storeId/settings/delivery-profiles/$profileId/methods/$methodId'
| '/_authenticated/$storeId/settings/delivery-profiles/$profileId/methods/new'
@@ -1203,6 +1200,13 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof IndexRouteImport
parentRoute: typeof authenticatedStoreIdRoute
}
+ '/_authenticated/$storeId/suppliers': {
+ id: '/_authenticated/$storeId/suppliers'
+ path: '/suppliers'
+ fullPath: '/$storeId/suppliers'
+ preLoaderRoute: typeof SuppliersRouteImport
+ parentRoute: typeof authenticatedStoreIdRoute
+ }
'/_authenticated/$storeId/settings': {
id: '/_authenticated/$storeId/settings'
path: '/settings'
@@ -1245,6 +1249,13 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof SplatRouteImport
parentRoute: typeof authenticatedStoreIdRoute
}
+ '/_authenticated/$storeId/transfers/': {
+ id: '/_authenticated/$storeId/transfers/'
+ path: '/transfers'
+ fullPath: '/$storeId/transfers/'
+ preLoaderRoute: typeof TransfersIndexRouteImport
+ parentRoute: typeof authenticatedStoreIdRoute
+ }
'/_authenticated/$storeId/settings/': {
id: '/_authenticated/$storeId/settings/'
path: '/'
@@ -1259,6 +1270,13 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof SellersIndexRouteImport
parentRoute: typeof authenticatedStoreIdRoute
}
+ '/_authenticated/$storeId/purchase-orders/': {
+ id: '/_authenticated/$storeId/purchase-orders/'
+ path: '/purchase-orders'
+ fullPath: '/$storeId/purchase-orders/'
+ preLoaderRoute: typeof PurchaseOrdersIndexRouteImport
+ parentRoute: typeof authenticatedStoreIdRoute
+ }
'/_authenticated/$storeId/promotions/': {
id: '/_authenticated/$storeId/promotions/'
path: '/promotions'
@@ -1301,6 +1319,13 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof BrandsDotindexRouteImport
parentRoute: typeof authenticatedStoreIdRoute
}
+ '/_authenticated/$storeId/transfers/new': {
+ id: '/_authenticated/$storeId/transfers/new'
+ path: '/transfers/new'
+ fullPath: '/$storeId/transfers/new'
+ preLoaderRoute: typeof TransfersNewRouteImport
+ parentRoute: typeof authenticatedStoreIdRoute
+ }
'/_authenticated/$storeId/settings/tax-rates': {
id: '/_authenticated/$storeId/settings/tax-rates'
path: '/tax-rates'
@@ -1462,6 +1487,13 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof SellersSellerIdRouteImport
parentRoute: typeof authenticatedStoreIdRoute
}
+ '/_authenticated/$storeId/purchase-orders/new': {
+ id: '/_authenticated/$storeId/purchase-orders/new'
+ path: '/purchase-orders/new'
+ fullPath: '/$storeId/purchase-orders/new'
+ preLoaderRoute: typeof PurchaseOrdersNewRouteImport
+ parentRoute: typeof authenticatedStoreIdRoute
+ }
'/_authenticated/$storeId/promotions/new': {
id: '/_authenticated/$storeId/promotions/new'
path: '/promotions/new'
@@ -1490,13 +1522,6 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof ProductsTranslationsRouteImport
parentRoute: typeof authenticatedStoreIdRoute
}
- '/_authenticated/$storeId/products/suppliers': {
- id: '/_authenticated/$storeId/products/suppliers'
- path: '/products/suppliers'
- fullPath: '/$storeId/products/suppliers'
- preLoaderRoute: typeof ProductsSuppliersRouteImport
- parentRoute: typeof authenticatedStoreIdRoute
- }
'/_authenticated/$storeId/products/options': {
id: '/_authenticated/$storeId/products/options'
path: '/products/options'
@@ -1567,6 +1592,13 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof BrandsDotbrandIdRouteImport
parentRoute: typeof authenticatedStoreIdRoute
}
+ '/_authenticated/$storeId/transfers/$transferId/': {
+ id: '/_authenticated/$storeId/transfers/$transferId/'
+ path: '/transfers/$transferId'
+ fullPath: '/$storeId/transfers/$transferId/'
+ preLoaderRoute: typeof TransfersTransferIdIndexRouteImport
+ parentRoute: typeof authenticatedStoreIdRoute
+ }
'/_authenticated/$storeId/settings/webhooks/': {
id: '/_authenticated/$storeId/settings/webhooks/'
path: '/webhooks'
@@ -1595,18 +1627,11 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof SellersPayoutsIndexRouteImport
parentRoute: typeof authenticatedStoreIdRoute
}
- '/_authenticated/$storeId/products/transfers/': {
- id: '/_authenticated/$storeId/products/transfers/'
- path: '/products/transfers'
- fullPath: '/$storeId/products/transfers/'
- preLoaderRoute: typeof ProductsTransfersIndexRouteImport
- parentRoute: typeof authenticatedStoreIdRoute
- }
- '/_authenticated/$storeId/products/purchase-orders/': {
- id: '/_authenticated/$storeId/products/purchase-orders/'
- path: '/products/purchase-orders'
- fullPath: '/$storeId/products/purchase-orders/'
- preLoaderRoute: typeof ProductsPurchaseOrdersIndexRouteImport
+ '/_authenticated/$storeId/purchase-orders/$purchaseOrderId/': {
+ id: '/_authenticated/$storeId/purchase-orders/$purchaseOrderId/'
+ path: '/purchase-orders/$purchaseOrderId'
+ fullPath: '/$storeId/purchase-orders/$purchaseOrderId/'
+ preLoaderRoute: typeof PurchaseOrdersPurchaseOrderIdIndexRouteImport
parentRoute: typeof authenticatedStoreIdRoute
}
'/_authenticated/$storeId/products/price-lists/': {
@@ -1644,6 +1669,13 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof OrdersOrderIdIndexRouteImport
parentRoute: typeof authenticatedStoreIdRoute
}
+ '/_authenticated/$storeId/transfers/$transferId/edit': {
+ id: '/_authenticated/$storeId/transfers/$transferId/edit'
+ path: '/transfers/$transferId/edit'
+ fullPath: '/$storeId/transfers/$transferId/edit'
+ preLoaderRoute: typeof TransfersTransferIdEditRouteImport
+ parentRoute: typeof authenticatedStoreIdRoute
+ }
'/_authenticated/$storeId/settings/webhooks/$webhookEndpointId': {
id: '/_authenticated/$storeId/settings/webhooks/$webhookEndpointId'
path: '/webhooks/$webhookEndpointId'
@@ -1658,18 +1690,11 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof SellersPayoutsPayoutIdRouteImport
parentRoute: typeof authenticatedStoreIdRoute
}
- '/_authenticated/$storeId/products/transfers/new': {
- id: '/_authenticated/$storeId/products/transfers/new'
- path: '/products/transfers/new'
- fullPath: '/$storeId/products/transfers/new'
- preLoaderRoute: typeof ProductsTransfersNewRouteImport
- parentRoute: typeof authenticatedStoreIdRoute
- }
- '/_authenticated/$storeId/products/purchase-orders/new': {
- id: '/_authenticated/$storeId/products/purchase-orders/new'
- path: '/products/purchase-orders/new'
- fullPath: '/$storeId/products/purchase-orders/new'
- preLoaderRoute: typeof ProductsPurchaseOrdersNewRouteImport
+ '/_authenticated/$storeId/purchase-orders/$purchaseOrderId/edit': {
+ id: '/_authenticated/$storeId/purchase-orders/$purchaseOrderId/edit'
+ path: '/purchase-orders/$purchaseOrderId/edit'
+ fullPath: '/$storeId/purchase-orders/$purchaseOrderId/edit'
+ preLoaderRoute: typeof PurchaseOrdersPurchaseOrderIdEditRouteImport
parentRoute: typeof authenticatedStoreIdRoute
}
'/_authenticated/$storeId/products/price-lists/new': {
@@ -1728,20 +1753,6 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof SettingsDeliveryProfilesProfileIdIndexRouteImport
parentRoute: typeof SettingsRoute
}
- '/_authenticated/$storeId/products/transfers/$transferId/': {
- id: '/_authenticated/$storeId/products/transfers/$transferId/'
- path: '/products/transfers/$transferId'
- fullPath: '/$storeId/products/transfers/$transferId/'
- preLoaderRoute: typeof ProductsTransfersTransferIdIndexRouteImport
- parentRoute: typeof authenticatedStoreIdRoute
- }
- '/_authenticated/$storeId/products/purchase-orders/$purchaseOrderId/': {
- id: '/_authenticated/$storeId/products/purchase-orders/$purchaseOrderId/'
- path: '/products/purchase-orders/$purchaseOrderId'
- fullPath: '/$storeId/products/purchase-orders/$purchaseOrderId/'
- preLoaderRoute: typeof ProductsPurchaseOrdersPurchaseOrderIdIndexRouteImport
- parentRoute: typeof authenticatedStoreIdRoute
- }
'/_authenticated/$storeId/products/price-lists/$priceListId/': {
id: '/_authenticated/$storeId/products/price-lists/$priceListId/'
path: '/products/price-lists/$priceListId'
@@ -1749,20 +1760,6 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof ProductsPriceListsPriceListIdIndexRouteImport
parentRoute: typeof authenticatedStoreIdRoute
}
- '/_authenticated/$storeId/products/transfers/$transferId/edit': {
- id: '/_authenticated/$storeId/products/transfers/$transferId/edit'
- path: '/products/transfers/$transferId/edit'
- fullPath: '/$storeId/products/transfers/$transferId/edit'
- preLoaderRoute: typeof ProductsTransfersTransferIdEditRouteImport
- parentRoute: typeof authenticatedStoreIdRoute
- }
- '/_authenticated/$storeId/products/purchase-orders/$purchaseOrderId/edit': {
- id: '/_authenticated/$storeId/products/purchase-orders/$purchaseOrderId/edit'
- path: '/products/purchase-orders/$purchaseOrderId/edit'
- fullPath: '/$storeId/products/purchase-orders/$purchaseOrderId/edit'
- preLoaderRoute: typeof ProductsPurchaseOrdersPurchaseOrderIdEditRouteImport
- parentRoute: typeof authenticatedStoreIdRoute
- }
'/_authenticated/$storeId/settings/delivery-profiles/$profileId/methods/new': {
id: '/_authenticated/$storeId/settings/delivery-profiles/$profileId/methods/new'
path: '/delivery-profiles/$profileId/methods/new'
@@ -1859,6 +1856,7 @@ interface authenticatedStoreIdRouteChildren {
GettingStartedRoute: typeof GettingStartedRoute
ReturnsRoute: typeof ReturnsRoute
SettingsRoute: typeof SettingsRouteWithChildren
+ SuppliersRoute: typeof SuppliersRoute
IndexRoute: typeof IndexRoute
BrandsDotbrandIdRoute: typeof BrandsDotbrandIdRoute
CompaniesCompanyIdRoute: typeof CompaniesCompanyIdRoute
@@ -1870,20 +1868,23 @@ interface authenticatedStoreIdRouteChildren {
ProductsMediaRoute: typeof ProductsMediaRoute
ProductsNewRoute: typeof ProductsNewRoute
ProductsOptionsRoute: typeof ProductsOptionsRoute
- ProductsSuppliersRoute: typeof ProductsSuppliersRoute
ProductsTranslationsRoute: typeof ProductsTranslationsRoute
PromotionsPromotionIdRoute: typeof PromotionsPromotionIdRoute
PromotionsGiftCardsRoute: typeof PromotionsGiftCardsRoute
PromotionsNewRoute: typeof PromotionsNewRoute
+ PurchaseOrdersNewRoute: typeof PurchaseOrdersNewRoute
SellersSellerIdRoute: typeof SellersSellerIdRoute
SellersTransfersRoute: typeof SellersTransfersRoute
+ TransfersNewRoute: typeof TransfersNewRoute
BrandsDotindexRoute: typeof BrandsDotindexRoute
CompaniesIndexRoute: typeof CompaniesIndexRoute
CustomersIndexRoute: typeof CustomersIndexRoute
OrdersIndexRoute: typeof OrdersIndexRoute
ProductsIndexRoute: typeof ProductsIndexRoute
PromotionsIndexRoute: typeof PromotionsIndexRoute
+ PurchaseOrdersIndexRoute: typeof PurchaseOrdersIndexRoute
SellersIndexRoute: typeof SellersIndexRoute
+ TransfersIndexRoute: typeof TransfersIndexRoute
OrdersOrderIdEditRoute: typeof OrdersOrderIdEditRoute
ProductsCatalogsCatalogIdRoute: typeof ProductsCatalogsCatalogIdRoute
ProductsCategoriesCategoryIdRoute: typeof ProductsCategoriesCategoryIdRoute
@@ -1891,22 +1892,18 @@ interface authenticatedStoreIdRouteChildren {
ProductsCollectionsCollectionIdRoute: typeof ProductsCollectionsCollectionIdRoute
ProductsCollectionsNewRoute: typeof ProductsCollectionsNewRoute
ProductsPriceListsNewRoute: typeof ProductsPriceListsNewRoute
- ProductsPurchaseOrdersNewRoute: typeof ProductsPurchaseOrdersNewRoute
- ProductsTransfersNewRoute: typeof ProductsTransfersNewRoute
+ PurchaseOrdersPurchaseOrderIdEditRoute: typeof PurchaseOrdersPurchaseOrderIdEditRoute
SellersPayoutsPayoutIdRoute: typeof SellersPayoutsPayoutIdRoute
+ TransfersTransferIdEditRoute: typeof TransfersTransferIdEditRoute
OrdersOrderIdIndexRoute: typeof OrdersOrderIdIndexRoute
ProductsCatalogsIndexRoute: typeof ProductsCatalogsIndexRoute
ProductsCategoriesIndexRoute: typeof ProductsCategoriesIndexRoute
ProductsCollectionsIndexRoute: typeof ProductsCollectionsIndexRoute
ProductsPriceListsIndexRoute: typeof ProductsPriceListsIndexRoute
- ProductsPurchaseOrdersIndexRoute: typeof ProductsPurchaseOrdersIndexRoute
- ProductsTransfersIndexRoute: typeof ProductsTransfersIndexRoute
+ PurchaseOrdersPurchaseOrderIdIndexRoute: typeof PurchaseOrdersPurchaseOrderIdIndexRoute
SellersPayoutsIndexRoute: typeof SellersPayoutsIndexRoute
- ProductsPurchaseOrdersPurchaseOrderIdEditRoute: typeof ProductsPurchaseOrdersPurchaseOrderIdEditRoute
- ProductsTransfersTransferIdEditRoute: typeof ProductsTransfersTransferIdEditRoute
+ TransfersTransferIdIndexRoute: typeof TransfersTransferIdIndexRoute
ProductsPriceListsPriceListIdIndexRoute: typeof ProductsPriceListsPriceListIdIndexRoute
- ProductsPurchaseOrdersPurchaseOrderIdIndexRoute: typeof ProductsPurchaseOrdersPurchaseOrderIdIndexRoute
- ProductsTransfersTransferIdIndexRoute: typeof ProductsTransfersTransferIdIndexRoute
}
const authenticatedStoreIdRouteChildren: authenticatedStoreIdRouteChildren = {
@@ -1916,6 +1913,7 @@ const authenticatedStoreIdRouteChildren: authenticatedStoreIdRouteChildren = {
GettingStartedRoute: GettingStartedRoute,
ReturnsRoute: ReturnsRoute,
SettingsRoute: SettingsRouteWithChildren,
+ SuppliersRoute: SuppliersRoute,
IndexRoute: IndexRoute,
BrandsDotbrandIdRoute: BrandsDotbrandIdRoute,
CompaniesCompanyIdRoute: CompaniesCompanyIdRoute,
@@ -1927,20 +1925,23 @@ const authenticatedStoreIdRouteChildren: authenticatedStoreIdRouteChildren = {
ProductsMediaRoute: ProductsMediaRoute,
ProductsNewRoute: ProductsNewRoute,
ProductsOptionsRoute: ProductsOptionsRoute,
- ProductsSuppliersRoute: ProductsSuppliersRoute,
ProductsTranslationsRoute: ProductsTranslationsRoute,
PromotionsPromotionIdRoute: PromotionsPromotionIdRoute,
PromotionsGiftCardsRoute: PromotionsGiftCardsRoute,
PromotionsNewRoute: PromotionsNewRoute,
+ PurchaseOrdersNewRoute: PurchaseOrdersNewRoute,
SellersSellerIdRoute: SellersSellerIdRoute,
SellersTransfersRoute: SellersTransfersRoute,
+ TransfersNewRoute: TransfersNewRoute,
BrandsDotindexRoute: BrandsDotindexRoute,
CompaniesIndexRoute: CompaniesIndexRoute,
CustomersIndexRoute: CustomersIndexRoute,
OrdersIndexRoute: OrdersIndexRoute,
ProductsIndexRoute: ProductsIndexRoute,
PromotionsIndexRoute: PromotionsIndexRoute,
+ PurchaseOrdersIndexRoute: PurchaseOrdersIndexRoute,
SellersIndexRoute: SellersIndexRoute,
+ TransfersIndexRoute: TransfersIndexRoute,
OrdersOrderIdEditRoute: OrdersOrderIdEditRoute,
ProductsCatalogsCatalogIdRoute: ProductsCatalogsCatalogIdRoute,
ProductsCategoriesCategoryIdRoute: ProductsCategoriesCategoryIdRoute,
@@ -1948,25 +1949,21 @@ const authenticatedStoreIdRouteChildren: authenticatedStoreIdRouteChildren = {
ProductsCollectionsCollectionIdRoute: ProductsCollectionsCollectionIdRoute,
ProductsCollectionsNewRoute: ProductsCollectionsNewRoute,
ProductsPriceListsNewRoute: ProductsPriceListsNewRoute,
- ProductsPurchaseOrdersNewRoute: ProductsPurchaseOrdersNewRoute,
- ProductsTransfersNewRoute: ProductsTransfersNewRoute,
+ PurchaseOrdersPurchaseOrderIdEditRoute:
+ PurchaseOrdersPurchaseOrderIdEditRoute,
SellersPayoutsPayoutIdRoute: SellersPayoutsPayoutIdRoute,
+ TransfersTransferIdEditRoute: TransfersTransferIdEditRoute,
OrdersOrderIdIndexRoute: OrdersOrderIdIndexRoute,
ProductsCatalogsIndexRoute: ProductsCatalogsIndexRoute,
ProductsCategoriesIndexRoute: ProductsCategoriesIndexRoute,
ProductsCollectionsIndexRoute: ProductsCollectionsIndexRoute,
ProductsPriceListsIndexRoute: ProductsPriceListsIndexRoute,
- ProductsPurchaseOrdersIndexRoute: ProductsPurchaseOrdersIndexRoute,
- ProductsTransfersIndexRoute: ProductsTransfersIndexRoute,
+ PurchaseOrdersPurchaseOrderIdIndexRoute:
+ PurchaseOrdersPurchaseOrderIdIndexRoute,
SellersPayoutsIndexRoute: SellersPayoutsIndexRoute,
- ProductsPurchaseOrdersPurchaseOrderIdEditRoute:
- ProductsPurchaseOrdersPurchaseOrderIdEditRoute,
- ProductsTransfersTransferIdEditRoute: ProductsTransfersTransferIdEditRoute,
+ TransfersTransferIdIndexRoute: TransfersTransferIdIndexRoute,
ProductsPriceListsPriceListIdIndexRoute:
ProductsPriceListsPriceListIdIndexRoute,
- ProductsPurchaseOrdersPurchaseOrderIdIndexRoute:
- ProductsPurchaseOrdersPurchaseOrderIdIndexRoute,
- ProductsTransfersTransferIdIndexRoute: ProductsTransfersTransferIdIndexRoute,
}
const authenticatedStoreIdRouteWithChildren =
diff --git a/packages/dashboard/e2e/stock-transfers.spec.ts b/packages/dashboard/e2e/stock-transfers.spec.ts
index 918161771d..4dabe9af95 100644
--- a/packages/dashboard/e2e/stock-transfers.spec.ts
+++ b/packages/dashboard/e2e/stock-transfers.spec.ts
@@ -7,7 +7,7 @@ import {
login,
} from './helpers'
-const TRANSFERS_PATH = (storeId: string) => `/${storeId}/products/transfers`
+const TRANSFERS_PATH = (storeId: string) => `/${storeId}/transfers`
const CTA = /new transfer/i
/**
diff --git a/packages/dashboard/src/nav/default.ts b/packages/dashboard/src/nav/default.ts
index 1bd088a82c..1401889741 100644
--- a/packages/dashboard/src/nav/default.ts
+++ b/packages/dashboard/src/nav/default.ts
@@ -157,7 +157,7 @@ nav.add({
nav.add({
key: 'inventory',
labelKey: 'admin.nav.inventory',
- path: '/products/transfers',
+ path: '/transfers',
icon: WarehouseIcon,
subject: Subject.StockTransfer,
position: 350,
@@ -165,21 +165,21 @@ nav.add({
{
key: 'inventory.transfers',
labelKey: 'admin.nav.transfers',
- path: '/products/transfers',
+ path: '/transfers',
subject: Subject.StockTransfer,
position: 100,
},
{
key: 'inventory.purchase-orders',
labelKey: 'admin.nav.purchase_orders',
- path: '/products/purchase-orders',
+ path: '/purchase-orders',
subject: Subject.PurchaseOrder,
position: 200,
},
{
key: 'inventory.suppliers',
labelKey: 'admin.nav.suppliers',
- path: '/products/suppliers',
+ path: '/suppliers',
subject: Subject.Supplier,
position: 300,
},
diff --git a/packages/dashboard/src/routeTree.gen.ts b/packages/dashboard/src/routeTree.gen.ts
index 9506955321..851aa95060 100644
--- a/packages/dashboard/src/routeTree.gen.ts
+++ b/packages/dashboard/src/routeTree.gen.ts
@@ -18,19 +18,23 @@ import { Route as authenticatedIndexRouteImport } from './routes/_authenticated/
import { Route as acceptInvitationDotinvitationIdRouteImport } from './routes/accept-invitation.$invitationId'
import { Route as authenticatedStoreIdRouteImport } from './routes/_authenticated/$storeId'
import { Route as IndexRouteImport } from './routes/_authenticated/$storeId/index'
+import { Route as SuppliersRouteImport } from './routes/_authenticated/$storeId/suppliers'
import { Route as SettingsRouteImport } from './routes/_authenticated/$storeId/settings'
import { Route as ReturnsRouteImport } from './routes/_authenticated/$storeId/returns'
import { Route as GettingStartedRouteImport } from './routes/_authenticated/$storeId/getting-started'
import { Route as ExchangesRouteImport } from './routes/_authenticated/$storeId/exchanges'
import { Route as ClaimsRouteImport } from './routes/_authenticated/$storeId/claims'
import { Route as SplatRouteImport } from './routes/_authenticated/$storeId/$'
+import { Route as TransfersIndexRouteImport } from './routes/_authenticated/$storeId/transfers/index'
import { Route as SettingsIndexRouteImport } from './routes/_authenticated/$storeId/settings/index'
import { Route as SellersIndexRouteImport } from './routes/_authenticated/$storeId/sellers/index'
+import { Route as PurchaseOrdersIndexRouteImport } from './routes/_authenticated/$storeId/purchase-orders/index'
import { Route as PromotionsIndexRouteImport } from './routes/_authenticated/$storeId/promotions/index'
import { Route as ProductsIndexRouteImport } from './routes/_authenticated/$storeId/products/index'
import { Route as OrdersIndexRouteImport } from './routes/_authenticated/$storeId/orders/index'
import { Route as CustomersIndexRouteImport } from './routes/_authenticated/$storeId/customers/index'
import { Route as CompaniesIndexRouteImport } from './routes/_authenticated/$storeId/companies/index'
+import { Route as TransfersNewRouteImport } from './routes/_authenticated/$storeId/transfers/new'
import { Route as SettingsTaxRatesRouteImport } from './routes/_authenticated/$storeId/settings/tax-rates'
import { Route as SettingsTaxCategoriesRouteImport } from './routes/_authenticated/$storeId/settings/tax-categories'
import { Route as SettingsStoreRouteImport } from './routes/_authenticated/$storeId/settings/store'
@@ -54,11 +58,11 @@ import { Route as SettingsApiKeysRouteImport } from './routes/_authenticated/$st
import { Route as SettingsAllowedOriginsRouteImport } from './routes/_authenticated/$storeId/settings/allowed-origins'
import { Route as SellersTransfersRouteImport } from './routes/_authenticated/$storeId/sellers/transfers'
import { Route as SellersSellerIdRouteImport } from './routes/_authenticated/$storeId/sellers/$sellerId'
+import { Route as PurchaseOrdersNewRouteImport } from './routes/_authenticated/$storeId/purchase-orders/new'
import { Route as PromotionsNewRouteImport } from './routes/_authenticated/$storeId/promotions/new'
import { Route as PromotionsGiftCardsRouteImport } from './routes/_authenticated/$storeId/promotions/gift-cards'
import { Route as PromotionsPromotionIdRouteImport } from './routes/_authenticated/$storeId/promotions/$promotionId'
import { Route as ProductsTranslationsRouteImport } from './routes/_authenticated/$storeId/products/translations'
-import { Route as ProductsSuppliersRouteImport } from './routes/_authenticated/$storeId/products/suppliers'
import { Route as ProductsOptionsRouteImport } from './routes/_authenticated/$storeId/products/options'
import { Route as ProductsNewRouteImport } from './routes/_authenticated/$storeId/products/new'
import { Route as ProductsMediaRouteImport } from './routes/_authenticated/$storeId/products/media'
@@ -68,21 +72,21 @@ import { Route as OrdersDraftsRouteImport } from './routes/_authenticated/$store
import { Route as CustomersGroupsRouteImport } from './routes/_authenticated/$storeId/customers/groups'
import { Route as CustomersCustomerIdRouteImport } from './routes/_authenticated/$storeId/customers/$customerId'
import { Route as CompaniesCompanyIdRouteImport } from './routes/_authenticated/$storeId/companies/$companyId'
+import { Route as TransfersTransferIdIndexRouteImport } from './routes/_authenticated/$storeId/transfers/$transferId/index'
import { Route as SettingsWebhooksIndexRouteImport } from './routes/_authenticated/$storeId/settings/webhooks/index'
import { Route as SettingsImportsIndexRouteImport } from './routes/_authenticated/$storeId/settings/imports/index'
import { Route as SettingsDeliveryProfilesIndexRouteImport } from './routes/_authenticated/$storeId/settings/delivery-profiles/index'
import { Route as SellersPayoutsIndexRouteImport } from './routes/_authenticated/$storeId/sellers/payouts/index'
-import { Route as ProductsTransfersIndexRouteImport } from './routes/_authenticated/$storeId/products/transfers/index'
-import { Route as ProductsPurchaseOrdersIndexRouteImport } from './routes/_authenticated/$storeId/products/purchase-orders/index'
+import { Route as PurchaseOrdersPurchaseOrderIdIndexRouteImport } from './routes/_authenticated/$storeId/purchase-orders/$purchaseOrderId/index'
import { Route as ProductsPriceListsIndexRouteImport } from './routes/_authenticated/$storeId/products/price-lists/index'
import { Route as ProductsCollectionsIndexRouteImport } from './routes/_authenticated/$storeId/products/collections/index'
import { Route as ProductsCategoriesIndexRouteImport } from './routes/_authenticated/$storeId/products/categories/index'
import { Route as ProductsCatalogsIndexRouteImport } from './routes/_authenticated/$storeId/products/catalogs/index'
import { Route as OrdersOrderIdIndexRouteImport } from './routes/_authenticated/$storeId/orders/$orderId/index'
+import { Route as TransfersTransferIdEditRouteImport } from './routes/_authenticated/$storeId/transfers/$transferId/edit'
import { Route as SettingsWebhooksWebhookEndpointIdRouteImport } from './routes/_authenticated/$storeId/settings/webhooks/$webhookEndpointId'
import { Route as SellersPayoutsPayoutIdRouteImport } from './routes/_authenticated/$storeId/sellers/payouts/$payoutId'
-import { Route as ProductsTransfersNewRouteImport } from './routes/_authenticated/$storeId/products/transfers/new'
-import { Route as ProductsPurchaseOrdersNewRouteImport } from './routes/_authenticated/$storeId/products/purchase-orders/new'
+import { Route as PurchaseOrdersPurchaseOrderIdEditRouteImport } from './routes/_authenticated/$storeId/purchase-orders/$purchaseOrderId/edit'
import { Route as ProductsPriceListsNewRouteImport } from './routes/_authenticated/$storeId/products/price-lists/new'
import { Route as ProductsCollectionsNewRouteImport } from './routes/_authenticated/$storeId/products/collections/new'
import { Route as ProductsCollectionsCollectionIdRouteImport } from './routes/_authenticated/$storeId/products/collections/$collectionId'
@@ -91,11 +95,7 @@ import { Route as ProductsCategoriesCategoryIdRouteImport } from './routes/_auth
import { Route as ProductsCatalogsCatalogIdRouteImport } from './routes/_authenticated/$storeId/products/catalogs/$catalogId'
import { Route as OrdersOrderIdEditRouteImport } from './routes/_authenticated/$storeId/orders/$orderId/edit'
import { Route as SettingsDeliveryProfilesProfileIdIndexRouteImport } from './routes/_authenticated/$storeId/settings/delivery-profiles/$profileId/index'
-import { Route as ProductsTransfersTransferIdIndexRouteImport } from './routes/_authenticated/$storeId/products/transfers/$transferId/index'
-import { Route as ProductsPurchaseOrdersPurchaseOrderIdIndexRouteImport } from './routes/_authenticated/$storeId/products/purchase-orders/$purchaseOrderId/index'
import { Route as ProductsPriceListsPriceListIdIndexRouteImport } from './routes/_authenticated/$storeId/products/price-lists/$priceListId/index'
-import { Route as ProductsTransfersTransferIdEditRouteImport } from './routes/_authenticated/$storeId/products/transfers/$transferId/edit'
-import { Route as ProductsPurchaseOrdersPurchaseOrderIdEditRouteImport } from './routes/_authenticated/$storeId/products/purchase-orders/$purchaseOrderId/edit'
import { Route as SettingsDeliveryProfilesProfileIdMethodsNewRouteImport } from './routes/_authenticated/$storeId/settings/delivery-profiles/$profileId/methods/new'
import { Route as SettingsDeliveryProfilesProfileIdMethodsMethodIdRouteImport } from './routes/_authenticated/$storeId/settings/delivery-profiles/$profileId/methods/$methodId'
@@ -144,6 +144,11 @@ const IndexRoute = IndexRouteImport.update({
path: '/',
getParentRoute: () => authenticatedStoreIdRoute,
} as any)
+const SuppliersRoute = SuppliersRouteImport.update({
+ id: '/suppliers',
+ path: '/suppliers',
+ getParentRoute: () => authenticatedStoreIdRoute,
+} as any)
const SettingsRoute = SettingsRouteImport.update({
id: '/settings',
path: '/settings',
@@ -174,6 +179,11 @@ const SplatRoute = SplatRouteImport.update({
path: '/$',
getParentRoute: () => authenticatedStoreIdRoute,
} as any)
+const TransfersIndexRoute = TransfersIndexRouteImport.update({
+ id: '/transfers/',
+ path: '/transfers/',
+ getParentRoute: () => authenticatedStoreIdRoute,
+} as any)
const SettingsIndexRoute = SettingsIndexRouteImport.update({
id: '/',
path: '/',
@@ -184,6 +194,11 @@ const SellersIndexRoute = SellersIndexRouteImport.update({
path: '/sellers/',
getParentRoute: () => authenticatedStoreIdRoute,
} as any)
+const PurchaseOrdersIndexRoute = PurchaseOrdersIndexRouteImport.update({
+ id: '/purchase-orders/',
+ path: '/purchase-orders/',
+ getParentRoute: () => authenticatedStoreIdRoute,
+} as any)
const PromotionsIndexRoute = PromotionsIndexRouteImport.update({
id: '/promotions/',
path: '/promotions/',
@@ -209,6 +224,11 @@ const CompaniesIndexRoute = CompaniesIndexRouteImport.update({
path: '/companies/',
getParentRoute: () => authenticatedStoreIdRoute,
} as any)
+const TransfersNewRoute = TransfersNewRouteImport.update({
+ id: '/transfers/new',
+ path: '/transfers/new',
+ getParentRoute: () => authenticatedStoreIdRoute,
+} as any)
const SettingsTaxRatesRoute = SettingsTaxRatesRouteImport.update({
id: '/tax-rates',
path: '/tax-rates',
@@ -326,6 +346,11 @@ const SellersSellerIdRoute = SellersSellerIdRouteImport.update({
path: '/sellers/$sellerId',
getParentRoute: () => authenticatedStoreIdRoute,
} as any)
+const PurchaseOrdersNewRoute = PurchaseOrdersNewRouteImport.update({
+ id: '/purchase-orders/new',
+ path: '/purchase-orders/new',
+ getParentRoute: () => authenticatedStoreIdRoute,
+} as any)
const PromotionsNewRoute = PromotionsNewRouteImport.update({
id: '/promotions/new',
path: '/promotions/new',
@@ -346,11 +371,6 @@ const ProductsTranslationsRoute = ProductsTranslationsRouteImport.update({
path: '/products/translations',
getParentRoute: () => authenticatedStoreIdRoute,
} as any)
-const ProductsSuppliersRoute = ProductsSuppliersRouteImport.update({
- id: '/products/suppliers',
- path: '/products/suppliers',
- getParentRoute: () => authenticatedStoreIdRoute,
-} as any)
const ProductsOptionsRoute = ProductsOptionsRouteImport.update({
id: '/products/options',
path: '/products/options',
@@ -396,6 +416,12 @@ const CompaniesCompanyIdRoute = CompaniesCompanyIdRouteImport.update({
path: '/companies/$companyId',
getParentRoute: () => authenticatedStoreIdRoute,
} as any)
+const TransfersTransferIdIndexRoute =
+ TransfersTransferIdIndexRouteImport.update({
+ id: '/transfers/$transferId/',
+ path: '/transfers/$transferId/',
+ getParentRoute: () => authenticatedStoreIdRoute,
+ } as any)
const SettingsWebhooksIndexRoute = SettingsWebhooksIndexRouteImport.update({
id: '/webhooks/',
path: '/webhooks/',
@@ -417,15 +443,10 @@ const SellersPayoutsIndexRoute = SellersPayoutsIndexRouteImport.update({
path: '/sellers/payouts/',
getParentRoute: () => authenticatedStoreIdRoute,
} as any)
-const ProductsTransfersIndexRoute = ProductsTransfersIndexRouteImport.update({
- id: '/products/transfers/',
- path: '/products/transfers/',
- getParentRoute: () => authenticatedStoreIdRoute,
-} as any)
-const ProductsPurchaseOrdersIndexRoute =
- ProductsPurchaseOrdersIndexRouteImport.update({
- id: '/products/purchase-orders/',
- path: '/products/purchase-orders/',
+const PurchaseOrdersPurchaseOrderIdIndexRoute =
+ PurchaseOrdersPurchaseOrderIdIndexRouteImport.update({
+ id: '/purchase-orders/$purchaseOrderId/',
+ path: '/purchase-orders/$purchaseOrderId/',
getParentRoute: () => authenticatedStoreIdRoute,
} as any)
const ProductsPriceListsIndexRoute = ProductsPriceListsIndexRouteImport.update({
@@ -454,6 +475,11 @@ const OrdersOrderIdIndexRoute = OrdersOrderIdIndexRouteImport.update({
path: '/orders/$orderId/',
getParentRoute: () => authenticatedStoreIdRoute,
} as any)
+const TransfersTransferIdEditRoute = TransfersTransferIdEditRouteImport.update({
+ id: '/transfers/$transferId/edit',
+ path: '/transfers/$transferId/edit',
+ getParentRoute: () => authenticatedStoreIdRoute,
+} as any)
const SettingsWebhooksWebhookEndpointIdRoute =
SettingsWebhooksWebhookEndpointIdRouteImport.update({
id: '/webhooks/$webhookEndpointId',
@@ -465,15 +491,10 @@ const SellersPayoutsPayoutIdRoute = SellersPayoutsPayoutIdRouteImport.update({
path: '/sellers/payouts/$payoutId',
getParentRoute: () => authenticatedStoreIdRoute,
} as any)
-const ProductsTransfersNewRoute = ProductsTransfersNewRouteImport.update({
- id: '/products/transfers/new',
- path: '/products/transfers/new',
- getParentRoute: () => authenticatedStoreIdRoute,
-} as any)
-const ProductsPurchaseOrdersNewRoute =
- ProductsPurchaseOrdersNewRouteImport.update({
- id: '/products/purchase-orders/new',
- path: '/products/purchase-orders/new',
+const PurchaseOrdersPurchaseOrderIdEditRoute =
+ PurchaseOrdersPurchaseOrderIdEditRouteImport.update({
+ id: '/purchase-orders/$purchaseOrderId/edit',
+ path: '/purchase-orders/$purchaseOrderId/edit',
getParentRoute: () => authenticatedStoreIdRoute,
} as any)
const ProductsPriceListsNewRoute = ProductsPriceListsNewRouteImport.update({
@@ -520,36 +541,12 @@ const SettingsDeliveryProfilesProfileIdIndexRoute =
path: '/delivery-profiles/$profileId/',
getParentRoute: () => SettingsRoute,
} as any)
-const ProductsTransfersTransferIdIndexRoute =
- ProductsTransfersTransferIdIndexRouteImport.update({
- id: '/products/transfers/$transferId/',
- path: '/products/transfers/$transferId/',
- getParentRoute: () => authenticatedStoreIdRoute,
- } as any)
-const ProductsPurchaseOrdersPurchaseOrderIdIndexRoute =
- ProductsPurchaseOrdersPurchaseOrderIdIndexRouteImport.update({
- id: '/products/purchase-orders/$purchaseOrderId/',
- path: '/products/purchase-orders/$purchaseOrderId/',
- getParentRoute: () => authenticatedStoreIdRoute,
- } as any)
const ProductsPriceListsPriceListIdIndexRoute =
ProductsPriceListsPriceListIdIndexRouteImport.update({
id: '/products/price-lists/$priceListId/',
path: '/products/price-lists/$priceListId/',
getParentRoute: () => authenticatedStoreIdRoute,
} as any)
-const ProductsTransfersTransferIdEditRoute =
- ProductsTransfersTransferIdEditRouteImport.update({
- id: '/products/transfers/$transferId/edit',
- path: '/products/transfers/$transferId/edit',
- getParentRoute: () => authenticatedStoreIdRoute,
- } as any)
-const ProductsPurchaseOrdersPurchaseOrderIdEditRoute =
- ProductsPurchaseOrdersPurchaseOrderIdEditRouteImport.update({
- id: '/products/purchase-orders/$purchaseOrderId/edit',
- path: '/products/purchase-orders/$purchaseOrderId/edit',
- getParentRoute: () => authenticatedStoreIdRoute,
- } as any)
const SettingsDeliveryProfilesProfileIdMethodsNewRoute =
SettingsDeliveryProfilesProfileIdMethodsNewRouteImport.update({
id: '/delivery-profiles/$profileId/methods/new',
@@ -577,6 +574,7 @@ export interface FileRoutesByFullPath {
'/$storeId/getting-started': typeof GettingStartedRoute
'/$storeId/returns': typeof ReturnsRoute
'/$storeId/settings': typeof SettingsRouteWithChildren
+ '/$storeId/suppliers': typeof SuppliersRoute
'/$storeId/': typeof IndexRoute
'/$storeId/companies/$companyId': typeof CompaniesCompanyIdRoute
'/$storeId/customers/$customerId': typeof CustomersCustomerIdRoute
@@ -587,11 +585,11 @@ export interface FileRoutesByFullPath {
'/$storeId/products/media': typeof ProductsMediaRoute
'/$storeId/products/new': typeof ProductsNewRoute
'/$storeId/products/options': typeof ProductsOptionsRoute
- '/$storeId/products/suppliers': typeof ProductsSuppliersRoute
'/$storeId/products/translations': typeof ProductsTranslationsRoute
'/$storeId/promotions/$promotionId': typeof PromotionsPromotionIdRoute
'/$storeId/promotions/gift-cards': typeof PromotionsGiftCardsRoute
'/$storeId/promotions/new': typeof PromotionsNewRoute
+ '/$storeId/purchase-orders/new': typeof PurchaseOrdersNewRoute
'/$storeId/sellers/$sellerId': typeof SellersSellerIdRoute
'/$storeId/sellers/transfers': typeof SellersTransfersRoute
'/$storeId/settings/allowed-origins': typeof SettingsAllowedOriginsRoute
@@ -615,13 +613,16 @@ export interface FileRoutesByFullPath {
'/$storeId/settings/store': typeof SettingsStoreRoute
'/$storeId/settings/tax-categories': typeof SettingsTaxCategoriesRoute
'/$storeId/settings/tax-rates': typeof SettingsTaxRatesRoute
+ '/$storeId/transfers/new': typeof TransfersNewRoute
'/$storeId/companies/': typeof CompaniesIndexRoute
'/$storeId/customers/': typeof CustomersIndexRoute
'/$storeId/orders/': typeof OrdersIndexRoute
'/$storeId/products/': typeof ProductsIndexRoute
'/$storeId/promotions/': typeof PromotionsIndexRoute
+ '/$storeId/purchase-orders/': typeof PurchaseOrdersIndexRoute
'/$storeId/sellers/': typeof SellersIndexRoute
'/$storeId/settings/': typeof SettingsIndexRoute
+ '/$storeId/transfers/': typeof TransfersIndexRoute
'/$storeId/orders/$orderId/edit': typeof OrdersOrderIdEditRoute
'/$storeId/products/catalogs/$catalogId': typeof ProductsCatalogsCatalogIdRoute
'/$storeId/products/categories/$categoryId': typeof ProductsCategoriesCategoryIdRoute
@@ -629,26 +630,22 @@ export interface FileRoutesByFullPath {
'/$storeId/products/collections/$collectionId': typeof ProductsCollectionsCollectionIdRoute
'/$storeId/products/collections/new': typeof ProductsCollectionsNewRoute
'/$storeId/products/price-lists/new': typeof ProductsPriceListsNewRoute
- '/$storeId/products/purchase-orders/new': typeof ProductsPurchaseOrdersNewRoute
- '/$storeId/products/transfers/new': typeof ProductsTransfersNewRoute
+ '/$storeId/purchase-orders/$purchaseOrderId/edit': typeof PurchaseOrdersPurchaseOrderIdEditRoute
'/$storeId/sellers/payouts/$payoutId': typeof SellersPayoutsPayoutIdRoute
'/$storeId/settings/webhooks/$webhookEndpointId': typeof SettingsWebhooksWebhookEndpointIdRoute
+ '/$storeId/transfers/$transferId/edit': typeof TransfersTransferIdEditRoute
'/$storeId/orders/$orderId/': typeof OrdersOrderIdIndexRoute
'/$storeId/products/catalogs/': typeof ProductsCatalogsIndexRoute
'/$storeId/products/categories/': typeof ProductsCategoriesIndexRoute
'/$storeId/products/collections/': typeof ProductsCollectionsIndexRoute
'/$storeId/products/price-lists/': typeof ProductsPriceListsIndexRoute
- '/$storeId/products/purchase-orders/': typeof ProductsPurchaseOrdersIndexRoute
- '/$storeId/products/transfers/': typeof ProductsTransfersIndexRoute
+ '/$storeId/purchase-orders/$purchaseOrderId/': typeof PurchaseOrdersPurchaseOrderIdIndexRoute
'/$storeId/sellers/payouts/': typeof SellersPayoutsIndexRoute
'/$storeId/settings/delivery-profiles/': typeof SettingsDeliveryProfilesIndexRoute
'/$storeId/settings/imports/': typeof SettingsImportsIndexRoute
'/$storeId/settings/webhooks/': typeof SettingsWebhooksIndexRoute
- '/$storeId/products/purchase-orders/$purchaseOrderId/edit': typeof ProductsPurchaseOrdersPurchaseOrderIdEditRoute
- '/$storeId/products/transfers/$transferId/edit': typeof ProductsTransfersTransferIdEditRoute
+ '/$storeId/transfers/$transferId/': typeof TransfersTransferIdIndexRoute
'/$storeId/products/price-lists/$priceListId/': typeof ProductsPriceListsPriceListIdIndexRoute
- '/$storeId/products/purchase-orders/$purchaseOrderId/': typeof ProductsPurchaseOrdersPurchaseOrderIdIndexRoute
- '/$storeId/products/transfers/$transferId/': typeof ProductsTransfersTransferIdIndexRoute
'/$storeId/settings/delivery-profiles/$profileId/': typeof SettingsDeliveryProfilesProfileIdIndexRoute
'/$storeId/settings/delivery-profiles/$profileId/methods/$methodId': typeof SettingsDeliveryProfilesProfileIdMethodsMethodIdRoute
'/$storeId/settings/delivery-profiles/$profileId/methods/new': typeof SettingsDeliveryProfilesProfileIdMethodsNewRoute
@@ -665,6 +662,7 @@ export interface FileRoutesByTo {
'/$storeId/exchanges': typeof ExchangesRoute
'/$storeId/getting-started': typeof GettingStartedRoute
'/$storeId/returns': typeof ReturnsRoute
+ '/$storeId/suppliers': typeof SuppliersRoute
'/$storeId': typeof IndexRoute
'/$storeId/companies/$companyId': typeof CompaniesCompanyIdRoute
'/$storeId/customers/$customerId': typeof CustomersCustomerIdRoute
@@ -675,11 +673,11 @@ export interface FileRoutesByTo {
'/$storeId/products/media': typeof ProductsMediaRoute
'/$storeId/products/new': typeof ProductsNewRoute
'/$storeId/products/options': typeof ProductsOptionsRoute
- '/$storeId/products/suppliers': typeof ProductsSuppliersRoute
'/$storeId/products/translations': typeof ProductsTranslationsRoute
'/$storeId/promotions/$promotionId': typeof PromotionsPromotionIdRoute
'/$storeId/promotions/gift-cards': typeof PromotionsGiftCardsRoute
'/$storeId/promotions/new': typeof PromotionsNewRoute
+ '/$storeId/purchase-orders/new': typeof PurchaseOrdersNewRoute
'/$storeId/sellers/$sellerId': typeof SellersSellerIdRoute
'/$storeId/sellers/transfers': typeof SellersTransfersRoute
'/$storeId/settings/allowed-origins': typeof SettingsAllowedOriginsRoute
@@ -703,13 +701,16 @@ export interface FileRoutesByTo {
'/$storeId/settings/store': typeof SettingsStoreRoute
'/$storeId/settings/tax-categories': typeof SettingsTaxCategoriesRoute
'/$storeId/settings/tax-rates': typeof SettingsTaxRatesRoute
+ '/$storeId/transfers/new': typeof TransfersNewRoute
'/$storeId/companies': typeof CompaniesIndexRoute
'/$storeId/customers': typeof CustomersIndexRoute
'/$storeId/orders': typeof OrdersIndexRoute
'/$storeId/products': typeof ProductsIndexRoute
'/$storeId/promotions': typeof PromotionsIndexRoute
+ '/$storeId/purchase-orders': typeof PurchaseOrdersIndexRoute
'/$storeId/sellers': typeof SellersIndexRoute
'/$storeId/settings': typeof SettingsIndexRoute
+ '/$storeId/transfers': typeof TransfersIndexRoute
'/$storeId/orders/$orderId/edit': typeof OrdersOrderIdEditRoute
'/$storeId/products/catalogs/$catalogId': typeof ProductsCatalogsCatalogIdRoute
'/$storeId/products/categories/$categoryId': typeof ProductsCategoriesCategoryIdRoute
@@ -717,26 +718,22 @@ export interface FileRoutesByTo {
'/$storeId/products/collections/$collectionId': typeof ProductsCollectionsCollectionIdRoute
'/$storeId/products/collections/new': typeof ProductsCollectionsNewRoute
'/$storeId/products/price-lists/new': typeof ProductsPriceListsNewRoute
- '/$storeId/products/purchase-orders/new': typeof ProductsPurchaseOrdersNewRoute
- '/$storeId/products/transfers/new': typeof ProductsTransfersNewRoute
+ '/$storeId/purchase-orders/$purchaseOrderId/edit': typeof PurchaseOrdersPurchaseOrderIdEditRoute
'/$storeId/sellers/payouts/$payoutId': typeof SellersPayoutsPayoutIdRoute
'/$storeId/settings/webhooks/$webhookEndpointId': typeof SettingsWebhooksWebhookEndpointIdRoute
+ '/$storeId/transfers/$transferId/edit': typeof TransfersTransferIdEditRoute
'/$storeId/orders/$orderId': typeof OrdersOrderIdIndexRoute
'/$storeId/products/catalogs': typeof ProductsCatalogsIndexRoute
'/$storeId/products/categories': typeof ProductsCategoriesIndexRoute
'/$storeId/products/collections': typeof ProductsCollectionsIndexRoute
'/$storeId/products/price-lists': typeof ProductsPriceListsIndexRoute
- '/$storeId/products/purchase-orders': typeof ProductsPurchaseOrdersIndexRoute
- '/$storeId/products/transfers': typeof ProductsTransfersIndexRoute
+ '/$storeId/purchase-orders/$purchaseOrderId': typeof PurchaseOrdersPurchaseOrderIdIndexRoute
'/$storeId/sellers/payouts': typeof SellersPayoutsIndexRoute
'/$storeId/settings/delivery-profiles': typeof SettingsDeliveryProfilesIndexRoute
'/$storeId/settings/imports': typeof SettingsImportsIndexRoute
'/$storeId/settings/webhooks': typeof SettingsWebhooksIndexRoute
- '/$storeId/products/purchase-orders/$purchaseOrderId/edit': typeof ProductsPurchaseOrdersPurchaseOrderIdEditRoute
- '/$storeId/products/transfers/$transferId/edit': typeof ProductsTransfersTransferIdEditRoute
+ '/$storeId/transfers/$transferId': typeof TransfersTransferIdIndexRoute
'/$storeId/products/price-lists/$priceListId': typeof ProductsPriceListsPriceListIdIndexRoute
- '/$storeId/products/purchase-orders/$purchaseOrderId': typeof ProductsPurchaseOrdersPurchaseOrderIdIndexRoute
- '/$storeId/products/transfers/$transferId': typeof ProductsTransfersTransferIdIndexRoute
'/$storeId/settings/delivery-profiles/$profileId': typeof SettingsDeliveryProfilesProfileIdIndexRoute
'/$storeId/settings/delivery-profiles/$profileId/methods/$methodId': typeof SettingsDeliveryProfilesProfileIdMethodsMethodIdRoute
'/$storeId/settings/delivery-profiles/$profileId/methods/new': typeof SettingsDeliveryProfilesProfileIdMethodsNewRoute
@@ -757,6 +754,7 @@ export interface FileRoutesById {
'/_authenticated/$storeId/getting-started': typeof GettingStartedRoute
'/_authenticated/$storeId/returns': typeof ReturnsRoute
'/_authenticated/$storeId/settings': typeof SettingsRouteWithChildren
+ '/_authenticated/$storeId/suppliers': typeof SuppliersRoute
'/_authenticated/$storeId/': typeof IndexRoute
'/_authenticated/$storeId/companies/$companyId': typeof CompaniesCompanyIdRoute
'/_authenticated/$storeId/customers/$customerId': typeof CustomersCustomerIdRoute
@@ -767,11 +765,11 @@ export interface FileRoutesById {
'/_authenticated/$storeId/products/media': typeof ProductsMediaRoute
'/_authenticated/$storeId/products/new': typeof ProductsNewRoute
'/_authenticated/$storeId/products/options': typeof ProductsOptionsRoute
- '/_authenticated/$storeId/products/suppliers': typeof ProductsSuppliersRoute
'/_authenticated/$storeId/products/translations': typeof ProductsTranslationsRoute
'/_authenticated/$storeId/promotions/$promotionId': typeof PromotionsPromotionIdRoute
'/_authenticated/$storeId/promotions/gift-cards': typeof PromotionsGiftCardsRoute
'/_authenticated/$storeId/promotions/new': typeof PromotionsNewRoute
+ '/_authenticated/$storeId/purchase-orders/new': typeof PurchaseOrdersNewRoute
'/_authenticated/$storeId/sellers/$sellerId': typeof SellersSellerIdRoute
'/_authenticated/$storeId/sellers/transfers': typeof SellersTransfersRoute
'/_authenticated/$storeId/settings/allowed-origins': typeof SettingsAllowedOriginsRoute
@@ -795,13 +793,16 @@ export interface FileRoutesById {
'/_authenticated/$storeId/settings/store': typeof SettingsStoreRoute
'/_authenticated/$storeId/settings/tax-categories': typeof SettingsTaxCategoriesRoute
'/_authenticated/$storeId/settings/tax-rates': typeof SettingsTaxRatesRoute
+ '/_authenticated/$storeId/transfers/new': typeof TransfersNewRoute
'/_authenticated/$storeId/companies/': typeof CompaniesIndexRoute
'/_authenticated/$storeId/customers/': typeof CustomersIndexRoute
'/_authenticated/$storeId/orders/': typeof OrdersIndexRoute
'/_authenticated/$storeId/products/': typeof ProductsIndexRoute
'/_authenticated/$storeId/promotions/': typeof PromotionsIndexRoute
+ '/_authenticated/$storeId/purchase-orders/': typeof PurchaseOrdersIndexRoute
'/_authenticated/$storeId/sellers/': typeof SellersIndexRoute
'/_authenticated/$storeId/settings/': typeof SettingsIndexRoute
+ '/_authenticated/$storeId/transfers/': typeof TransfersIndexRoute
'/_authenticated/$storeId/orders/$orderId/edit': typeof OrdersOrderIdEditRoute
'/_authenticated/$storeId/products/catalogs/$catalogId': typeof ProductsCatalogsCatalogIdRoute
'/_authenticated/$storeId/products/categories/$categoryId': typeof ProductsCategoriesCategoryIdRoute
@@ -809,26 +810,22 @@ export interface FileRoutesById {
'/_authenticated/$storeId/products/collections/$collectionId': typeof ProductsCollectionsCollectionIdRoute
'/_authenticated/$storeId/products/collections/new': typeof ProductsCollectionsNewRoute
'/_authenticated/$storeId/products/price-lists/new': typeof ProductsPriceListsNewRoute
- '/_authenticated/$storeId/products/purchase-orders/new': typeof ProductsPurchaseOrdersNewRoute
- '/_authenticated/$storeId/products/transfers/new': typeof ProductsTransfersNewRoute
+ '/_authenticated/$storeId/purchase-orders/$purchaseOrderId/edit': typeof PurchaseOrdersPurchaseOrderIdEditRoute
'/_authenticated/$storeId/sellers/payouts/$payoutId': typeof SellersPayoutsPayoutIdRoute
'/_authenticated/$storeId/settings/webhooks/$webhookEndpointId': typeof SettingsWebhooksWebhookEndpointIdRoute
+ '/_authenticated/$storeId/transfers/$transferId/edit': typeof TransfersTransferIdEditRoute
'/_authenticated/$storeId/orders/$orderId/': typeof OrdersOrderIdIndexRoute
'/_authenticated/$storeId/products/catalogs/': typeof ProductsCatalogsIndexRoute
'/_authenticated/$storeId/products/categories/': typeof ProductsCategoriesIndexRoute
'/_authenticated/$storeId/products/collections/': typeof ProductsCollectionsIndexRoute
'/_authenticated/$storeId/products/price-lists/': typeof ProductsPriceListsIndexRoute
- '/_authenticated/$storeId/products/purchase-orders/': typeof ProductsPurchaseOrdersIndexRoute
- '/_authenticated/$storeId/products/transfers/': typeof ProductsTransfersIndexRoute
+ '/_authenticated/$storeId/purchase-orders/$purchaseOrderId/': typeof PurchaseOrdersPurchaseOrderIdIndexRoute
'/_authenticated/$storeId/sellers/payouts/': typeof SellersPayoutsIndexRoute
'/_authenticated/$storeId/settings/delivery-profiles/': typeof SettingsDeliveryProfilesIndexRoute
'/_authenticated/$storeId/settings/imports/': typeof SettingsImportsIndexRoute
'/_authenticated/$storeId/settings/webhooks/': typeof SettingsWebhooksIndexRoute
- '/_authenticated/$storeId/products/purchase-orders/$purchaseOrderId/edit': typeof ProductsPurchaseOrdersPurchaseOrderIdEditRoute
- '/_authenticated/$storeId/products/transfers/$transferId/edit': typeof ProductsTransfersTransferIdEditRoute
+ '/_authenticated/$storeId/transfers/$transferId/': typeof TransfersTransferIdIndexRoute
'/_authenticated/$storeId/products/price-lists/$priceListId/': typeof ProductsPriceListsPriceListIdIndexRoute
- '/_authenticated/$storeId/products/purchase-orders/$purchaseOrderId/': typeof ProductsPurchaseOrdersPurchaseOrderIdIndexRoute
- '/_authenticated/$storeId/products/transfers/$transferId/': typeof ProductsTransfersTransferIdIndexRoute
'/_authenticated/$storeId/settings/delivery-profiles/$profileId/': typeof SettingsDeliveryProfilesProfileIdIndexRoute
'/_authenticated/$storeId/settings/delivery-profiles/$profileId/methods/$methodId': typeof SettingsDeliveryProfilesProfileIdMethodsMethodIdRoute
'/_authenticated/$storeId/settings/delivery-profiles/$profileId/methods/new': typeof SettingsDeliveryProfilesProfileIdMethodsNewRoute
@@ -849,6 +846,7 @@ export interface FileRouteTypes {
| '/$storeId/getting-started'
| '/$storeId/returns'
| '/$storeId/settings'
+ | '/$storeId/suppliers'
| '/$storeId/'
| '/$storeId/companies/$companyId'
| '/$storeId/customers/$customerId'
@@ -859,11 +857,11 @@ export interface FileRouteTypes {
| '/$storeId/products/media'
| '/$storeId/products/new'
| '/$storeId/products/options'
- | '/$storeId/products/suppliers'
| '/$storeId/products/translations'
| '/$storeId/promotions/$promotionId'
| '/$storeId/promotions/gift-cards'
| '/$storeId/promotions/new'
+ | '/$storeId/purchase-orders/new'
| '/$storeId/sellers/$sellerId'
| '/$storeId/sellers/transfers'
| '/$storeId/settings/allowed-origins'
@@ -887,13 +885,16 @@ export interface FileRouteTypes {
| '/$storeId/settings/store'
| '/$storeId/settings/tax-categories'
| '/$storeId/settings/tax-rates'
+ | '/$storeId/transfers/new'
| '/$storeId/companies/'
| '/$storeId/customers/'
| '/$storeId/orders/'
| '/$storeId/products/'
| '/$storeId/promotions/'
+ | '/$storeId/purchase-orders/'
| '/$storeId/sellers/'
| '/$storeId/settings/'
+ | '/$storeId/transfers/'
| '/$storeId/orders/$orderId/edit'
| '/$storeId/products/catalogs/$catalogId'
| '/$storeId/products/categories/$categoryId'
@@ -901,26 +902,22 @@ export interface FileRouteTypes {
| '/$storeId/products/collections/$collectionId'
| '/$storeId/products/collections/new'
| '/$storeId/products/price-lists/new'
- | '/$storeId/products/purchase-orders/new'
- | '/$storeId/products/transfers/new'
+ | '/$storeId/purchase-orders/$purchaseOrderId/edit'
| '/$storeId/sellers/payouts/$payoutId'
| '/$storeId/settings/webhooks/$webhookEndpointId'
+ | '/$storeId/transfers/$transferId/edit'
| '/$storeId/orders/$orderId/'
| '/$storeId/products/catalogs/'
| '/$storeId/products/categories/'
| '/$storeId/products/collections/'
| '/$storeId/products/price-lists/'
- | '/$storeId/products/purchase-orders/'
- | '/$storeId/products/transfers/'
+ | '/$storeId/purchase-orders/$purchaseOrderId/'
| '/$storeId/sellers/payouts/'
| '/$storeId/settings/delivery-profiles/'
| '/$storeId/settings/imports/'
| '/$storeId/settings/webhooks/'
- | '/$storeId/products/purchase-orders/$purchaseOrderId/edit'
- | '/$storeId/products/transfers/$transferId/edit'
+ | '/$storeId/transfers/$transferId/'
| '/$storeId/products/price-lists/$priceListId/'
- | '/$storeId/products/purchase-orders/$purchaseOrderId/'
- | '/$storeId/products/transfers/$transferId/'
| '/$storeId/settings/delivery-profiles/$profileId/'
| '/$storeId/settings/delivery-profiles/$profileId/methods/$methodId'
| '/$storeId/settings/delivery-profiles/$profileId/methods/new'
@@ -937,6 +934,7 @@ export interface FileRouteTypes {
| '/$storeId/exchanges'
| '/$storeId/getting-started'
| '/$storeId/returns'
+ | '/$storeId/suppliers'
| '/$storeId'
| '/$storeId/companies/$companyId'
| '/$storeId/customers/$customerId'
@@ -947,11 +945,11 @@ export interface FileRouteTypes {
| '/$storeId/products/media'
| '/$storeId/products/new'
| '/$storeId/products/options'
- | '/$storeId/products/suppliers'
| '/$storeId/products/translations'
| '/$storeId/promotions/$promotionId'
| '/$storeId/promotions/gift-cards'
| '/$storeId/promotions/new'
+ | '/$storeId/purchase-orders/new'
| '/$storeId/sellers/$sellerId'
| '/$storeId/sellers/transfers'
| '/$storeId/settings/allowed-origins'
@@ -975,13 +973,16 @@ export interface FileRouteTypes {
| '/$storeId/settings/store'
| '/$storeId/settings/tax-categories'
| '/$storeId/settings/tax-rates'
+ | '/$storeId/transfers/new'
| '/$storeId/companies'
| '/$storeId/customers'
| '/$storeId/orders'
| '/$storeId/products'
| '/$storeId/promotions'
+ | '/$storeId/purchase-orders'
| '/$storeId/sellers'
| '/$storeId/settings'
+ | '/$storeId/transfers'
| '/$storeId/orders/$orderId/edit'
| '/$storeId/products/catalogs/$catalogId'
| '/$storeId/products/categories/$categoryId'
@@ -989,26 +990,22 @@ export interface FileRouteTypes {
| '/$storeId/products/collections/$collectionId'
| '/$storeId/products/collections/new'
| '/$storeId/products/price-lists/new'
- | '/$storeId/products/purchase-orders/new'
- | '/$storeId/products/transfers/new'
+ | '/$storeId/purchase-orders/$purchaseOrderId/edit'
| '/$storeId/sellers/payouts/$payoutId'
| '/$storeId/settings/webhooks/$webhookEndpointId'
+ | '/$storeId/transfers/$transferId/edit'
| '/$storeId/orders/$orderId'
| '/$storeId/products/catalogs'
| '/$storeId/products/categories'
| '/$storeId/products/collections'
| '/$storeId/products/price-lists'
- | '/$storeId/products/purchase-orders'
- | '/$storeId/products/transfers'
+ | '/$storeId/purchase-orders/$purchaseOrderId'
| '/$storeId/sellers/payouts'
| '/$storeId/settings/delivery-profiles'
| '/$storeId/settings/imports'
| '/$storeId/settings/webhooks'
- | '/$storeId/products/purchase-orders/$purchaseOrderId/edit'
- | '/$storeId/products/transfers/$transferId/edit'
+ | '/$storeId/transfers/$transferId'
| '/$storeId/products/price-lists/$priceListId'
- | '/$storeId/products/purchase-orders/$purchaseOrderId'
- | '/$storeId/products/transfers/$transferId'
| '/$storeId/settings/delivery-profiles/$profileId'
| '/$storeId/settings/delivery-profiles/$profileId/methods/$methodId'
| '/$storeId/settings/delivery-profiles/$profileId/methods/new'
@@ -1028,6 +1025,7 @@ export interface FileRouteTypes {
| '/_authenticated/$storeId/getting-started'
| '/_authenticated/$storeId/returns'
| '/_authenticated/$storeId/settings'
+ | '/_authenticated/$storeId/suppliers'
| '/_authenticated/$storeId/'
| '/_authenticated/$storeId/companies/$companyId'
| '/_authenticated/$storeId/customers/$customerId'
@@ -1038,11 +1036,11 @@ export interface FileRouteTypes {
| '/_authenticated/$storeId/products/media'
| '/_authenticated/$storeId/products/new'
| '/_authenticated/$storeId/products/options'
- | '/_authenticated/$storeId/products/suppliers'
| '/_authenticated/$storeId/products/translations'
| '/_authenticated/$storeId/promotions/$promotionId'
| '/_authenticated/$storeId/promotions/gift-cards'
| '/_authenticated/$storeId/promotions/new'
+ | '/_authenticated/$storeId/purchase-orders/new'
| '/_authenticated/$storeId/sellers/$sellerId'
| '/_authenticated/$storeId/sellers/transfers'
| '/_authenticated/$storeId/settings/allowed-origins'
@@ -1066,13 +1064,16 @@ export interface FileRouteTypes {
| '/_authenticated/$storeId/settings/store'
| '/_authenticated/$storeId/settings/tax-categories'
| '/_authenticated/$storeId/settings/tax-rates'
+ | '/_authenticated/$storeId/transfers/new'
| '/_authenticated/$storeId/companies/'
| '/_authenticated/$storeId/customers/'
| '/_authenticated/$storeId/orders/'
| '/_authenticated/$storeId/products/'
| '/_authenticated/$storeId/promotions/'
+ | '/_authenticated/$storeId/purchase-orders/'
| '/_authenticated/$storeId/sellers/'
| '/_authenticated/$storeId/settings/'
+ | '/_authenticated/$storeId/transfers/'
| '/_authenticated/$storeId/orders/$orderId/edit'
| '/_authenticated/$storeId/products/catalogs/$catalogId'
| '/_authenticated/$storeId/products/categories/$categoryId'
@@ -1080,26 +1081,22 @@ export interface FileRouteTypes {
| '/_authenticated/$storeId/products/collections/$collectionId'
| '/_authenticated/$storeId/products/collections/new'
| '/_authenticated/$storeId/products/price-lists/new'
- | '/_authenticated/$storeId/products/purchase-orders/new'
- | '/_authenticated/$storeId/products/transfers/new'
+ | '/_authenticated/$storeId/purchase-orders/$purchaseOrderId/edit'
| '/_authenticated/$storeId/sellers/payouts/$payoutId'
| '/_authenticated/$storeId/settings/webhooks/$webhookEndpointId'
+ | '/_authenticated/$storeId/transfers/$transferId/edit'
| '/_authenticated/$storeId/orders/$orderId/'
| '/_authenticated/$storeId/products/catalogs/'
| '/_authenticated/$storeId/products/categories/'
| '/_authenticated/$storeId/products/collections/'
| '/_authenticated/$storeId/products/price-lists/'
- | '/_authenticated/$storeId/products/purchase-orders/'
- | '/_authenticated/$storeId/products/transfers/'
+ | '/_authenticated/$storeId/purchase-orders/$purchaseOrderId/'
| '/_authenticated/$storeId/sellers/payouts/'
| '/_authenticated/$storeId/settings/delivery-profiles/'
| '/_authenticated/$storeId/settings/imports/'
| '/_authenticated/$storeId/settings/webhooks/'
- | '/_authenticated/$storeId/products/purchase-orders/$purchaseOrderId/edit'
- | '/_authenticated/$storeId/products/transfers/$transferId/edit'
+ | '/_authenticated/$storeId/transfers/$transferId/'
| '/_authenticated/$storeId/products/price-lists/$priceListId/'
- | '/_authenticated/$storeId/products/purchase-orders/$purchaseOrderId/'
- | '/_authenticated/$storeId/products/transfers/$transferId/'
| '/_authenticated/$storeId/settings/delivery-profiles/$profileId/'
| '/_authenticated/$storeId/settings/delivery-profiles/$profileId/methods/$methodId'
| '/_authenticated/$storeId/settings/delivery-profiles/$profileId/methods/new'
@@ -1179,6 +1176,13 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof IndexRouteImport
parentRoute: typeof authenticatedStoreIdRoute
}
+ '/_authenticated/$storeId/suppliers': {
+ id: '/_authenticated/$storeId/suppliers'
+ path: '/suppliers'
+ fullPath: '/$storeId/suppliers'
+ preLoaderRoute: typeof SuppliersRouteImport
+ parentRoute: typeof authenticatedStoreIdRoute
+ }
'/_authenticated/$storeId/settings': {
id: '/_authenticated/$storeId/settings'
path: '/settings'
@@ -1221,6 +1225,13 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof SplatRouteImport
parentRoute: typeof authenticatedStoreIdRoute
}
+ '/_authenticated/$storeId/transfers/': {
+ id: '/_authenticated/$storeId/transfers/'
+ path: '/transfers'
+ fullPath: '/$storeId/transfers/'
+ preLoaderRoute: typeof TransfersIndexRouteImport
+ parentRoute: typeof authenticatedStoreIdRoute
+ }
'/_authenticated/$storeId/settings/': {
id: '/_authenticated/$storeId/settings/'
path: '/'
@@ -1235,6 +1246,13 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof SellersIndexRouteImport
parentRoute: typeof authenticatedStoreIdRoute
}
+ '/_authenticated/$storeId/purchase-orders/': {
+ id: '/_authenticated/$storeId/purchase-orders/'
+ path: '/purchase-orders'
+ fullPath: '/$storeId/purchase-orders/'
+ preLoaderRoute: typeof PurchaseOrdersIndexRouteImport
+ parentRoute: typeof authenticatedStoreIdRoute
+ }
'/_authenticated/$storeId/promotions/': {
id: '/_authenticated/$storeId/promotions/'
path: '/promotions'
@@ -1270,6 +1288,13 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof CompaniesIndexRouteImport
parentRoute: typeof authenticatedStoreIdRoute
}
+ '/_authenticated/$storeId/transfers/new': {
+ id: '/_authenticated/$storeId/transfers/new'
+ path: '/transfers/new'
+ fullPath: '/$storeId/transfers/new'
+ preLoaderRoute: typeof TransfersNewRouteImport
+ parentRoute: typeof authenticatedStoreIdRoute
+ }
'/_authenticated/$storeId/settings/tax-rates': {
id: '/_authenticated/$storeId/settings/tax-rates'
path: '/tax-rates'
@@ -1431,6 +1456,13 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof SellersSellerIdRouteImport
parentRoute: typeof authenticatedStoreIdRoute
}
+ '/_authenticated/$storeId/purchase-orders/new': {
+ id: '/_authenticated/$storeId/purchase-orders/new'
+ path: '/purchase-orders/new'
+ fullPath: '/$storeId/purchase-orders/new'
+ preLoaderRoute: typeof PurchaseOrdersNewRouteImport
+ parentRoute: typeof authenticatedStoreIdRoute
+ }
'/_authenticated/$storeId/promotions/new': {
id: '/_authenticated/$storeId/promotions/new'
path: '/promotions/new'
@@ -1459,13 +1491,6 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof ProductsTranslationsRouteImport
parentRoute: typeof authenticatedStoreIdRoute
}
- '/_authenticated/$storeId/products/suppliers': {
- id: '/_authenticated/$storeId/products/suppliers'
- path: '/products/suppliers'
- fullPath: '/$storeId/products/suppliers'
- preLoaderRoute: typeof ProductsSuppliersRouteImport
- parentRoute: typeof authenticatedStoreIdRoute
- }
'/_authenticated/$storeId/products/options': {
id: '/_authenticated/$storeId/products/options'
path: '/products/options'
@@ -1529,6 +1554,13 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof CompaniesCompanyIdRouteImport
parentRoute: typeof authenticatedStoreIdRoute
}
+ '/_authenticated/$storeId/transfers/$transferId/': {
+ id: '/_authenticated/$storeId/transfers/$transferId/'
+ path: '/transfers/$transferId'
+ fullPath: '/$storeId/transfers/$transferId/'
+ preLoaderRoute: typeof TransfersTransferIdIndexRouteImport
+ parentRoute: typeof authenticatedStoreIdRoute
+ }
'/_authenticated/$storeId/settings/webhooks/': {
id: '/_authenticated/$storeId/settings/webhooks/'
path: '/webhooks'
@@ -1557,18 +1589,11 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof SellersPayoutsIndexRouteImport
parentRoute: typeof authenticatedStoreIdRoute
}
- '/_authenticated/$storeId/products/transfers/': {
- id: '/_authenticated/$storeId/products/transfers/'
- path: '/products/transfers'
- fullPath: '/$storeId/products/transfers/'
- preLoaderRoute: typeof ProductsTransfersIndexRouteImport
- parentRoute: typeof authenticatedStoreIdRoute
- }
- '/_authenticated/$storeId/products/purchase-orders/': {
- id: '/_authenticated/$storeId/products/purchase-orders/'
- path: '/products/purchase-orders'
- fullPath: '/$storeId/products/purchase-orders/'
- preLoaderRoute: typeof ProductsPurchaseOrdersIndexRouteImport
+ '/_authenticated/$storeId/purchase-orders/$purchaseOrderId/': {
+ id: '/_authenticated/$storeId/purchase-orders/$purchaseOrderId/'
+ path: '/purchase-orders/$purchaseOrderId'
+ fullPath: '/$storeId/purchase-orders/$purchaseOrderId/'
+ preLoaderRoute: typeof PurchaseOrdersPurchaseOrderIdIndexRouteImport
parentRoute: typeof authenticatedStoreIdRoute
}
'/_authenticated/$storeId/products/price-lists/': {
@@ -1606,6 +1631,13 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof OrdersOrderIdIndexRouteImport
parentRoute: typeof authenticatedStoreIdRoute
}
+ '/_authenticated/$storeId/transfers/$transferId/edit': {
+ id: '/_authenticated/$storeId/transfers/$transferId/edit'
+ path: '/transfers/$transferId/edit'
+ fullPath: '/$storeId/transfers/$transferId/edit'
+ preLoaderRoute: typeof TransfersTransferIdEditRouteImport
+ parentRoute: typeof authenticatedStoreIdRoute
+ }
'/_authenticated/$storeId/settings/webhooks/$webhookEndpointId': {
id: '/_authenticated/$storeId/settings/webhooks/$webhookEndpointId'
path: '/webhooks/$webhookEndpointId'
@@ -1620,18 +1652,11 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof SellersPayoutsPayoutIdRouteImport
parentRoute: typeof authenticatedStoreIdRoute
}
- '/_authenticated/$storeId/products/transfers/new': {
- id: '/_authenticated/$storeId/products/transfers/new'
- path: '/products/transfers/new'
- fullPath: '/$storeId/products/transfers/new'
- preLoaderRoute: typeof ProductsTransfersNewRouteImport
- parentRoute: typeof authenticatedStoreIdRoute
- }
- '/_authenticated/$storeId/products/purchase-orders/new': {
- id: '/_authenticated/$storeId/products/purchase-orders/new'
- path: '/products/purchase-orders/new'
- fullPath: '/$storeId/products/purchase-orders/new'
- preLoaderRoute: typeof ProductsPurchaseOrdersNewRouteImport
+ '/_authenticated/$storeId/purchase-orders/$purchaseOrderId/edit': {
+ id: '/_authenticated/$storeId/purchase-orders/$purchaseOrderId/edit'
+ path: '/purchase-orders/$purchaseOrderId/edit'
+ fullPath: '/$storeId/purchase-orders/$purchaseOrderId/edit'
+ preLoaderRoute: typeof PurchaseOrdersPurchaseOrderIdEditRouteImport
parentRoute: typeof authenticatedStoreIdRoute
}
'/_authenticated/$storeId/products/price-lists/new': {
@@ -1690,20 +1715,6 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof SettingsDeliveryProfilesProfileIdIndexRouteImport
parentRoute: typeof SettingsRoute
}
- '/_authenticated/$storeId/products/transfers/$transferId/': {
- id: '/_authenticated/$storeId/products/transfers/$transferId/'
- path: '/products/transfers/$transferId'
- fullPath: '/$storeId/products/transfers/$transferId/'
- preLoaderRoute: typeof ProductsTransfersTransferIdIndexRouteImport
- parentRoute: typeof authenticatedStoreIdRoute
- }
- '/_authenticated/$storeId/products/purchase-orders/$purchaseOrderId/': {
- id: '/_authenticated/$storeId/products/purchase-orders/$purchaseOrderId/'
- path: '/products/purchase-orders/$purchaseOrderId'
- fullPath: '/$storeId/products/purchase-orders/$purchaseOrderId/'
- preLoaderRoute: typeof ProductsPurchaseOrdersPurchaseOrderIdIndexRouteImport
- parentRoute: typeof authenticatedStoreIdRoute
- }
'/_authenticated/$storeId/products/price-lists/$priceListId/': {
id: '/_authenticated/$storeId/products/price-lists/$priceListId/'
path: '/products/price-lists/$priceListId'
@@ -1711,20 +1722,6 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof ProductsPriceListsPriceListIdIndexRouteImport
parentRoute: typeof authenticatedStoreIdRoute
}
- '/_authenticated/$storeId/products/transfers/$transferId/edit': {
- id: '/_authenticated/$storeId/products/transfers/$transferId/edit'
- path: '/products/transfers/$transferId/edit'
- fullPath: '/$storeId/products/transfers/$transferId/edit'
- preLoaderRoute: typeof ProductsTransfersTransferIdEditRouteImport
- parentRoute: typeof authenticatedStoreIdRoute
- }
- '/_authenticated/$storeId/products/purchase-orders/$purchaseOrderId/edit': {
- id: '/_authenticated/$storeId/products/purchase-orders/$purchaseOrderId/edit'
- path: '/products/purchase-orders/$purchaseOrderId/edit'
- fullPath: '/$storeId/products/purchase-orders/$purchaseOrderId/edit'
- preLoaderRoute: typeof ProductsPurchaseOrdersPurchaseOrderIdEditRouteImport
- parentRoute: typeof authenticatedStoreIdRoute
- }
'/_authenticated/$storeId/settings/delivery-profiles/$profileId/methods/new': {
id: '/_authenticated/$storeId/settings/delivery-profiles/$profileId/methods/new'
path: '/delivery-profiles/$profileId/methods/new'
@@ -1821,6 +1818,7 @@ interface authenticatedStoreIdRouteChildren {
GettingStartedRoute: typeof GettingStartedRoute
ReturnsRoute: typeof ReturnsRoute
SettingsRoute: typeof SettingsRouteWithChildren
+ SuppliersRoute: typeof SuppliersRoute
IndexRoute: typeof IndexRoute
CompaniesCompanyIdRoute: typeof CompaniesCompanyIdRoute
CustomersCustomerIdRoute: typeof CustomersCustomerIdRoute
@@ -1831,19 +1829,22 @@ interface authenticatedStoreIdRouteChildren {
ProductsMediaRoute: typeof ProductsMediaRoute
ProductsNewRoute: typeof ProductsNewRoute
ProductsOptionsRoute: typeof ProductsOptionsRoute
- ProductsSuppliersRoute: typeof ProductsSuppliersRoute
ProductsTranslationsRoute: typeof ProductsTranslationsRoute
PromotionsPromotionIdRoute: typeof PromotionsPromotionIdRoute
PromotionsGiftCardsRoute: typeof PromotionsGiftCardsRoute
PromotionsNewRoute: typeof PromotionsNewRoute
+ PurchaseOrdersNewRoute: typeof PurchaseOrdersNewRoute
SellersSellerIdRoute: typeof SellersSellerIdRoute
SellersTransfersRoute: typeof SellersTransfersRoute
+ TransfersNewRoute: typeof TransfersNewRoute
CompaniesIndexRoute: typeof CompaniesIndexRoute
CustomersIndexRoute: typeof CustomersIndexRoute
OrdersIndexRoute: typeof OrdersIndexRoute
ProductsIndexRoute: typeof ProductsIndexRoute
PromotionsIndexRoute: typeof PromotionsIndexRoute
+ PurchaseOrdersIndexRoute: typeof PurchaseOrdersIndexRoute
SellersIndexRoute: typeof SellersIndexRoute
+ TransfersIndexRoute: typeof TransfersIndexRoute
OrdersOrderIdEditRoute: typeof OrdersOrderIdEditRoute
ProductsCatalogsCatalogIdRoute: typeof ProductsCatalogsCatalogIdRoute
ProductsCategoriesCategoryIdRoute: typeof ProductsCategoriesCategoryIdRoute
@@ -1851,22 +1852,18 @@ interface authenticatedStoreIdRouteChildren {
ProductsCollectionsCollectionIdRoute: typeof ProductsCollectionsCollectionIdRoute
ProductsCollectionsNewRoute: typeof ProductsCollectionsNewRoute
ProductsPriceListsNewRoute: typeof ProductsPriceListsNewRoute
- ProductsPurchaseOrdersNewRoute: typeof ProductsPurchaseOrdersNewRoute
- ProductsTransfersNewRoute: typeof ProductsTransfersNewRoute
+ PurchaseOrdersPurchaseOrderIdEditRoute: typeof PurchaseOrdersPurchaseOrderIdEditRoute
SellersPayoutsPayoutIdRoute: typeof SellersPayoutsPayoutIdRoute
+ TransfersTransferIdEditRoute: typeof TransfersTransferIdEditRoute
OrdersOrderIdIndexRoute: typeof OrdersOrderIdIndexRoute
ProductsCatalogsIndexRoute: typeof ProductsCatalogsIndexRoute
ProductsCategoriesIndexRoute: typeof ProductsCategoriesIndexRoute
ProductsCollectionsIndexRoute: typeof ProductsCollectionsIndexRoute
ProductsPriceListsIndexRoute: typeof ProductsPriceListsIndexRoute
- ProductsPurchaseOrdersIndexRoute: typeof ProductsPurchaseOrdersIndexRoute
- ProductsTransfersIndexRoute: typeof ProductsTransfersIndexRoute
+ PurchaseOrdersPurchaseOrderIdIndexRoute: typeof PurchaseOrdersPurchaseOrderIdIndexRoute
SellersPayoutsIndexRoute: typeof SellersPayoutsIndexRoute
- ProductsPurchaseOrdersPurchaseOrderIdEditRoute: typeof ProductsPurchaseOrdersPurchaseOrderIdEditRoute
- ProductsTransfersTransferIdEditRoute: typeof ProductsTransfersTransferIdEditRoute
+ TransfersTransferIdIndexRoute: typeof TransfersTransferIdIndexRoute
ProductsPriceListsPriceListIdIndexRoute: typeof ProductsPriceListsPriceListIdIndexRoute
- ProductsPurchaseOrdersPurchaseOrderIdIndexRoute: typeof ProductsPurchaseOrdersPurchaseOrderIdIndexRoute
- ProductsTransfersTransferIdIndexRoute: typeof ProductsTransfersTransferIdIndexRoute
}
const authenticatedStoreIdRouteChildren: authenticatedStoreIdRouteChildren = {
@@ -1876,6 +1873,7 @@ const authenticatedStoreIdRouteChildren: authenticatedStoreIdRouteChildren = {
GettingStartedRoute: GettingStartedRoute,
ReturnsRoute: ReturnsRoute,
SettingsRoute: SettingsRouteWithChildren,
+ SuppliersRoute: SuppliersRoute,
IndexRoute: IndexRoute,
CompaniesCompanyIdRoute: CompaniesCompanyIdRoute,
CustomersCustomerIdRoute: CustomersCustomerIdRoute,
@@ -1886,19 +1884,22 @@ const authenticatedStoreIdRouteChildren: authenticatedStoreIdRouteChildren = {
ProductsMediaRoute: ProductsMediaRoute,
ProductsNewRoute: ProductsNewRoute,
ProductsOptionsRoute: ProductsOptionsRoute,
- ProductsSuppliersRoute: ProductsSuppliersRoute,
ProductsTranslationsRoute: ProductsTranslationsRoute,
PromotionsPromotionIdRoute: PromotionsPromotionIdRoute,
PromotionsGiftCardsRoute: PromotionsGiftCardsRoute,
PromotionsNewRoute: PromotionsNewRoute,
+ PurchaseOrdersNewRoute: PurchaseOrdersNewRoute,
SellersSellerIdRoute: SellersSellerIdRoute,
SellersTransfersRoute: SellersTransfersRoute,
+ TransfersNewRoute: TransfersNewRoute,
CompaniesIndexRoute: CompaniesIndexRoute,
CustomersIndexRoute: CustomersIndexRoute,
OrdersIndexRoute: OrdersIndexRoute,
ProductsIndexRoute: ProductsIndexRoute,
PromotionsIndexRoute: PromotionsIndexRoute,
+ PurchaseOrdersIndexRoute: PurchaseOrdersIndexRoute,
SellersIndexRoute: SellersIndexRoute,
+ TransfersIndexRoute: TransfersIndexRoute,
OrdersOrderIdEditRoute: OrdersOrderIdEditRoute,
ProductsCatalogsCatalogIdRoute: ProductsCatalogsCatalogIdRoute,
ProductsCategoriesCategoryIdRoute: ProductsCategoriesCategoryIdRoute,
@@ -1906,25 +1907,21 @@ const authenticatedStoreIdRouteChildren: authenticatedStoreIdRouteChildren = {
ProductsCollectionsCollectionIdRoute: ProductsCollectionsCollectionIdRoute,
ProductsCollectionsNewRoute: ProductsCollectionsNewRoute,
ProductsPriceListsNewRoute: ProductsPriceListsNewRoute,
- ProductsPurchaseOrdersNewRoute: ProductsPurchaseOrdersNewRoute,
- ProductsTransfersNewRoute: ProductsTransfersNewRoute,
+ PurchaseOrdersPurchaseOrderIdEditRoute:
+ PurchaseOrdersPurchaseOrderIdEditRoute,
SellersPayoutsPayoutIdRoute: SellersPayoutsPayoutIdRoute,
+ TransfersTransferIdEditRoute: TransfersTransferIdEditRoute,
OrdersOrderIdIndexRoute: OrdersOrderIdIndexRoute,
ProductsCatalogsIndexRoute: ProductsCatalogsIndexRoute,
ProductsCategoriesIndexRoute: ProductsCategoriesIndexRoute,
ProductsCollectionsIndexRoute: ProductsCollectionsIndexRoute,
ProductsPriceListsIndexRoute: ProductsPriceListsIndexRoute,
- ProductsPurchaseOrdersIndexRoute: ProductsPurchaseOrdersIndexRoute,
- ProductsTransfersIndexRoute: ProductsTransfersIndexRoute,
+ PurchaseOrdersPurchaseOrderIdIndexRoute:
+ PurchaseOrdersPurchaseOrderIdIndexRoute,
SellersPayoutsIndexRoute: SellersPayoutsIndexRoute,
- ProductsPurchaseOrdersPurchaseOrderIdEditRoute:
- ProductsPurchaseOrdersPurchaseOrderIdEditRoute,
- ProductsTransfersTransferIdEditRoute: ProductsTransfersTransferIdEditRoute,
+ TransfersTransferIdIndexRoute: TransfersTransferIdIndexRoute,
ProductsPriceListsPriceListIdIndexRoute:
ProductsPriceListsPriceListIdIndexRoute,
- ProductsPurchaseOrdersPurchaseOrderIdIndexRoute:
- ProductsPurchaseOrdersPurchaseOrderIdIndexRoute,
- ProductsTransfersTransferIdIndexRoute: ProductsTransfersTransferIdIndexRoute,
}
const authenticatedStoreIdRouteWithChildren =
diff --git a/packages/dashboard/src/routes/_authenticated/$storeId/products/purchase-orders/$purchaseOrderId/edit.tsx b/packages/dashboard/src/routes/_authenticated/$storeId/purchase-orders/$purchaseOrderId/edit.tsx
similarity index 89%
rename from packages/dashboard/src/routes/_authenticated/$storeId/products/purchase-orders/$purchaseOrderId/edit.tsx
rename to packages/dashboard/src/routes/_authenticated/$storeId/purchase-orders/$purchaseOrderId/edit.tsx
index 836cf12eaa..804608956a 100644
--- a/packages/dashboard/src/routes/_authenticated/$storeId/products/purchase-orders/$purchaseOrderId/edit.tsx
+++ b/packages/dashboard/src/routes/_authenticated/$storeId/purchase-orders/$purchaseOrderId/edit.tsx
@@ -5,14 +5,11 @@ import { useTranslation } from 'react-i18next'
import {
PurchaseOrderForm,
type PurchaseOrderFormValues,
-} from '../../../../../../components/spree/purchase-order-form'
-import {
- usePurchaseOrder,
- useUpdatePurchaseOrder,
-} from '../../../../../../hooks/use-purchase-orders'
+} from '../../../../../components/spree/purchase-order-form'
+import { usePurchaseOrder, useUpdatePurchaseOrder } from '../../../../../hooks/use-purchase-orders'
export const Route = createFileRoute(
- '/_authenticated/$storeId/products/purchase-orders/$purchaseOrderId/edit',
+ '/_authenticated/$storeId/purchase-orders/$purchaseOrderId/edit',
)({
component: EditPurchaseOrderPage,
})
@@ -26,7 +23,7 @@ function EditPurchaseOrderPage() {
const backToOrder = () =>
navigate({
- to: '/$storeId/products/purchase-orders/$purchaseOrderId',
+ to: '/$storeId/purchase-orders/$purchaseOrderId',
params: { storeId, purchaseOrderId },
})
@@ -42,7 +39,7 @@ function EditPurchaseOrderPage() {
<div className="flex flex-col gap-6">
<PageHeader
title={t('admin.purchase_orders.edit_title', { number: purchaseOrder.number })}
- backTo={`products/purchase-orders/${purchaseOrderId}`}
+ backTo={`purchase-orders/${purchaseOrderId}`}
/>
<Alert>
<AlertDescription>{t('admin.purchase_orders.errors.not_editable')}</AlertDescription>
@@ -76,7 +73,7 @@ function EditPurchaseOrderPage() {
return (
<PurchaseOrderForm
title={t('admin.purchase_orders.edit_title', { number: purchaseOrder.number })}
- backTo={`products/purchase-orders/${purchaseOrderId}`}
+ backTo={`purchase-orders/${purchaseOrderId}`}
initial={{
supplierId: purchaseOrder.supplier_id ?? '',
destinationId: purchaseOrder.destination_location_id ?? '',
diff --git a/packages/dashboard/src/routes/_authenticated/$storeId/products/purchase-orders/$purchaseOrderId/index.tsx b/packages/dashboard/src/routes/_authenticated/$storeId/purchase-orders/$purchaseOrderId/index.tsx
similarity index 93%
rename from packages/dashboard/src/routes/_authenticated/$storeId/products/purchase-orders/$purchaseOrderId/index.tsx
rename to packages/dashboard/src/routes/_authenticated/$storeId/purchase-orders/$purchaseOrderId/index.tsx
index 2021c2c474..15033478aa 100644
--- a/packages/dashboard/src/routes/_authenticated/$storeId/products/purchase-orders/$purchaseOrderId/index.tsx
+++ b/packages/dashboard/src/routes/_authenticated/$storeId/purchase-orders/$purchaseOrderId/index.tsx
@@ -22,24 +22,22 @@ import { PencilIcon, Trash2Icon, XCircleIcon } from '@spree/dashboard-ui/icons'
import { createFileRoute, Link, useNavigate } from '@tanstack/react-router'
import { useState } from 'react'
import { useTranslation } from 'react-i18next'
-import { InventoryStatusBadge } from '../../../../../../components/spree/inventory-status-badge'
-import { QuantityCell, QuantityHead } from '../../../../../../components/spree/quantity-cell'
-import { ResourceDetailSkeleton } from '../../../../../../components/spree/route-pending'
-import { StockHistoryCard } from '../../../../../../components/spree/stock-history-card'
-import { VariantLink } from '../../../../../../components/spree/variant-link'
+import { InventoryStatusBadge } from '../../../../../components/spree/inventory-status-badge'
+import { QuantityCell, QuantityHead } from '../../../../../components/spree/quantity-cell'
+import { ResourceDetailSkeleton } from '../../../../../components/spree/route-pending'
+import { StockHistoryCard } from '../../../../../components/spree/stock-history-card'
+import { VariantLink } from '../../../../../components/spree/variant-link'
import {
useCancelPurchaseOrder,
useDeletePurchaseOrder,
useMarkPurchaseOrderOrdered,
usePurchaseOrder,
useReceivePurchaseOrder,
-} from '../../../../../../hooks/use-purchase-orders'
-import { spreeJsonLinkResolver } from '../../../../../../lib/json-link-resolver'
-import { isClosed } from '../../../../../../schemas/inventory-operations'
+} from '../../../../../hooks/use-purchase-orders'
+import { spreeJsonLinkResolver } from '../../../../../lib/json-link-resolver'
+import { isClosed } from '../../../../../schemas/inventory-operations'
-export const Route = createFileRoute(
- '/_authenticated/$storeId/products/purchase-orders/$purchaseOrderId/',
-)({
+export const Route = createFileRoute('/_authenticated/$storeId/purchase-orders/$purchaseOrderId/')({
component: PurchaseOrderDetailPage,
})
@@ -98,7 +96,7 @@ function SummaryCard({ purchaseOrder }: { purchaseOrder: PurchaseOrder }) {
<dd>
{purchaseOrder.supplier_id ? (
<Link
- to="/$storeId/products/suppliers"
+ to="/$storeId/suppliers"
params={{ storeId }}
search={{ edit: purchaseOrder.supplier_id }}
className="text-foreground hover:underline"
@@ -368,13 +366,13 @@ function PurchaseOrderHeader({ purchaseOrder }: { purchaseOrder: PurchaseOrder }
.catch(() => false)
if (!deleted) return
- navigate({ to: '/$storeId/products/purchase-orders', params: { storeId } })
+ navigate({ to: '/$storeId/purchase-orders', params: { storeId } })
}
return (
<PageHeader
title={purchaseOrder.number}
- backTo="products/purchase-orders"
+ backTo="purchase-orders"
badges={<InventoryStatusBadge status={purchaseOrder.status} resource="purchase_orders" />}
actions={
open && (
@@ -384,7 +382,7 @@ function PurchaseOrderHeader({ purchaseOrder }: { purchaseOrder: PurchaseOrder }
{purchaseOrder.editable && (
<Button variant="outline" asChild>
<Link
- to="/$storeId/products/purchase-orders/$purchaseOrderId/edit"
+ to="/$storeId/purchase-orders/$purchaseOrderId/edit"
params={{ storeId, purchaseOrderId: purchaseOrder.id }}
>
<PencilIcon className="size-4" />
diff --git a/packages/dashboard/src/routes/_authenticated/$storeId/products/purchase-orders/index.tsx b/packages/dashboard/src/routes/_authenticated/$storeId/purchase-orders/index.tsx
similarity index 90%
rename from packages/dashboard/src/routes/_authenticated/$storeId/products/purchase-orders/index.tsx
rename to packages/dashboard/src/routes/_authenticated/$storeId/purchase-orders/index.tsx
index 6cd971360a..b3360e5b89 100644
--- a/packages/dashboard/src/routes/_authenticated/$storeId/products/purchase-orders/index.tsx
+++ b/packages/dashboard/src/routes/_authenticated/$storeId/purchase-orders/index.tsx
@@ -11,10 +11,10 @@ import { Button, RowActions, useConfirm, useRowClickBridge } from '@spree/dashbo
import { EyeIcon, PlusIcon } from '@spree/dashboard-ui/icons'
import { createFileRoute, useNavigate } from '@tanstack/react-router'
import { useTranslation } from 'react-i18next'
-import { useDeletePurchaseOrder } from '../../../../../hooks/use-purchase-orders'
-import '../../../../../tables/purchase-orders'
+import { useDeletePurchaseOrder } from '../../../../hooks/use-purchase-orders'
+import '../../../../tables/purchase-orders'
-export const Route = createFileRoute('/_authenticated/$storeId/products/purchase-orders/')({
+export const Route = createFileRoute('/_authenticated/$storeId/purchase-orders/')({
validateSearch: resourceSearchSchema,
component: PurchaseOrdersPage,
})
@@ -30,13 +30,13 @@ function PurchaseOrdersPage() {
function openDetail(id: string) {
navigate({
- to: '/$storeId/products/purchase-orders/$purchaseOrderId',
+ to: '/$storeId/purchase-orders/$purchaseOrderId',
params: { storeId, purchaseOrderId: id },
})
}
function openCreate() {
- navigate({ to: '/$storeId/products/purchase-orders/new', params: { storeId } })
+ navigate({ to: '/$storeId/purchase-orders/new', params: { storeId } })
}
useRowClickBridge('data-purchase-order-id', openDetail)
diff --git a/packages/dashboard/src/routes/_authenticated/$storeId/products/purchase-orders/new.tsx b/packages/dashboard/src/routes/_authenticated/$storeId/purchase-orders/new.tsx
similarity index 81%
rename from packages/dashboard/src/routes/_authenticated/$storeId/products/purchase-orders/new.tsx
rename to packages/dashboard/src/routes/_authenticated/$storeId/purchase-orders/new.tsx
index 2a13c0772d..a4ebada14a 100644
--- a/packages/dashboard/src/routes/_authenticated/$storeId/products/purchase-orders/new.tsx
+++ b/packages/dashboard/src/routes/_authenticated/$storeId/purchase-orders/new.tsx
@@ -4,10 +4,10 @@ import {
EMPTY_PURCHASE_ORDER,
PurchaseOrderForm,
type PurchaseOrderFormValues,
-} from '../../../../../components/spree/purchase-order-form'
-import { useCreatePurchaseOrder } from '../../../../../hooks/use-purchase-orders'
+} from '../../../../components/spree/purchase-order-form'
+import { useCreatePurchaseOrder } from '../../../../hooks/use-purchase-orders'
-export const Route = createFileRoute('/_authenticated/$storeId/products/purchase-orders/new')({
+export const Route = createFileRoute('/_authenticated/$storeId/purchase-orders/new')({
component: NewPurchaseOrderPage,
})
@@ -37,7 +37,7 @@ function NewPurchaseOrderPage() {
if (!purchaseOrder) return
navigate({
- to: '/$storeId/products/purchase-orders/$purchaseOrderId',
+ to: '/$storeId/purchase-orders/$purchaseOrderId',
params: { storeId, purchaseOrderId: purchaseOrder.id },
})
}
@@ -46,12 +46,12 @@ function NewPurchaseOrderPage() {
<PurchaseOrderForm
initial={EMPTY_PURCHASE_ORDER}
title={t('admin.purchase_orders.new_title')}
- backTo="products/purchase-orders"
+ backTo="purchase-orders"
submitLabel={t('admin.purchase_orders.actions.create_draft')}
pendingLabel={t('admin.actions.creating')}
pending={createMutation.isPending}
onSubmit={handleSubmit}
- onCancel={() => navigate({ to: '/$storeId/products/purchase-orders', params: { storeId } })}
+ onCancel={() => navigate({ to: '/$storeId/purchase-orders', params: { storeId } })}
/>
)
}
diff --git a/packages/dashboard/src/routes/_authenticated/$storeId/products/suppliers.tsx b/packages/dashboard/src/routes/_authenticated/$storeId/suppliers.tsx
similarity index 93%
rename from packages/dashboard/src/routes/_authenticated/$storeId/products/suppliers.tsx
rename to packages/dashboard/src/routes/_authenticated/$storeId/suppliers.tsx
index 5ca0d06413..8ae86e5d28 100644
--- a/packages/dashboard/src/routes/_authenticated/$storeId/products/suppliers.tsx
+++ b/packages/dashboard/src/routes/_authenticated/$storeId/suppliers.tsx
@@ -12,16 +12,16 @@ import { PencilIcon, PlusIcon } from '@spree/dashboard-ui/icons'
import { createFileRoute, useNavigate } from '@tanstack/react-router'
import { useTranslation } from 'react-i18next'
import { z } from 'zod/v4'
-import { SupplierSheet } from '../../../../components/spree/supplier-sheet'
-import { useDeleteSupplier } from '../../../../hooks/use-suppliers'
-import '../../../../tables/suppliers'
+import { SupplierSheet } from '../../../components/spree/supplier-sheet'
+import { useDeleteSupplier } from '../../../hooks/use-suppliers'
+import '../../../tables/suppliers'
const suppliersSearchSchema = resourceSearchSchema.extend({
edit: z.string().optional(),
new: z.coerce.boolean().optional(),
})
-export const Route = createFileRoute('/_authenticated/$storeId/products/suppliers')({
+export const Route = createFileRoute('/_authenticated/$storeId/suppliers')({
validateSearch: suppliersSearchSchema,
component: SuppliersPage,
})
diff --git a/packages/dashboard/src/routes/_authenticated/$storeId/products/transfers/$transferId/edit.tsx b/packages/dashboard/src/routes/_authenticated/$storeId/transfers/$transferId/edit.tsx
similarity index 85%
rename from packages/dashboard/src/routes/_authenticated/$storeId/products/transfers/$transferId/edit.tsx
rename to packages/dashboard/src/routes/_authenticated/$storeId/transfers/$transferId/edit.tsx
index e2c7a5422d..73eaa3d7df 100644
--- a/packages/dashboard/src/routes/_authenticated/$storeId/products/transfers/$transferId/edit.tsx
+++ b/packages/dashboard/src/routes/_authenticated/$storeId/transfers/$transferId/edit.tsx
@@ -5,15 +5,12 @@ import { useTranslation } from 'react-i18next'
import {
StockTransferForm,
type StockTransferFormValues,
-} from '../../../../../../components/spree/stock-transfer-form'
-import {
- useStockTransfer,
- useUpdateStockTransfer,
-} from '../../../../../../hooks/use-stock-transfers'
+} from '../../../../../components/spree/stock-transfer-form'
+import { useStockTransfer, useUpdateStockTransfer } from '../../../../../hooks/use-stock-transfers'
-export const Route = createFileRoute(
- '/_authenticated/$storeId/products/transfers/$transferId/edit',
-)({ component: EditStockTransferPage })
+export const Route = createFileRoute('/_authenticated/$storeId/transfers/$transferId/edit')({
+ component: EditStockTransferPage,
+})
function EditStockTransferPage() {
const { t } = useTranslation()
@@ -23,7 +20,7 @@ function EditStockTransferPage() {
const updateMutation = useUpdateStockTransfer(transferId)
const backToTransfer = () =>
- navigate({ to: '/$storeId/products/transfers/$transferId', params: { storeId, transferId } })
+ navigate({ to: '/$storeId/transfers/$transferId', params: { storeId, transferId } })
if (isLoading || !transfer) {
return <div className="p-4 text-muted-foreground text-sm">{t('admin.common.loading')}</div>
@@ -37,7 +34,7 @@ function EditStockTransferPage() {
<div className="flex flex-col gap-6">
<PageHeader
title={t('admin.stock_transfers.edit_title', { number: transfer.number })}
- backTo={`products/transfers/${transferId}`}
+ backTo={`transfers/${transferId}`}
/>
<Alert>
<AlertDescription>{t('admin.stock_transfers.errors.not_editable')}</AlertDescription>
@@ -69,7 +66,7 @@ function EditStockTransferPage() {
return (
<StockTransferForm
title={t('admin.stock_transfers.edit_title', { number: transfer.number })}
- backTo={`products/transfers/${transferId}`}
+ backTo={`transfers/${transferId}`}
initial={{
sourceId: transfer.source_location_id ?? '',
destinationId: transfer.destination_location_id ?? '',
diff --git a/packages/dashboard/src/routes/_authenticated/$storeId/products/transfers/$transferId/index.tsx b/packages/dashboard/src/routes/_authenticated/$storeId/transfers/$transferId/index.tsx
similarity index 94%
rename from packages/dashboard/src/routes/_authenticated/$storeId/products/transfers/$transferId/index.tsx
rename to packages/dashboard/src/routes/_authenticated/$storeId/transfers/$transferId/index.tsx
index dc563b4be6..bb47609bc7 100644
--- a/packages/dashboard/src/routes/_authenticated/$storeId/products/transfers/$transferId/index.tsx
+++ b/packages/dashboard/src/routes/_authenticated/$storeId/transfers/$transferId/index.tsx
@@ -34,27 +34,27 @@ import { PencilIcon, Trash2Icon, XCircleIcon } from '@spree/dashboard-ui/icons'
import { createFileRoute, Link, useNavigate } from '@tanstack/react-router'
import { useMemo, useState } from 'react'
import { useTranslation } from 'react-i18next'
-import { InventoryStatusBadge } from '../../../../../../components/spree/inventory-status-badge'
-import { QuantityCell, QuantityHead } from '../../../../../../components/spree/quantity-cell'
-import { ResourceDetailSkeleton } from '../../../../../../components/spree/route-pending'
-import { StockHistoryCard } from '../../../../../../components/spree/stock-history-card'
-import { TransferCancelDialog } from '../../../../../../components/spree/transfer-cancel-dialog'
-import { VariantLink } from '../../../../../../components/spree/variant-link'
+import { InventoryStatusBadge } from '../../../../../components/spree/inventory-status-badge'
+import { QuantityCell, QuantityHead } from '../../../../../components/spree/quantity-cell'
+import { ResourceDetailSkeleton } from '../../../../../components/spree/route-pending'
+import { StockHistoryCard } from '../../../../../components/spree/stock-history-card'
+import { TransferCancelDialog } from '../../../../../components/spree/transfer-cancel-dialog'
+import { VariantLink } from '../../../../../components/spree/variant-link'
import {
useDeleteStockTransfer,
useMarkStockTransferInTransit,
useMarkStockTransferReady,
useReceiveStockTransfer,
useStockTransfer,
-} from '../../../../../../hooks/use-stock-transfers'
-import { spreeJsonLinkResolver } from '../../../../../../lib/json-link-resolver'
+} from '../../../../../hooks/use-stock-transfers'
+import { spreeJsonLinkResolver } from '../../../../../lib/json-link-resolver'
import {
DISCREPANCY_REASONS,
isClosed,
isInFlight,
-} from '../../../../../../schemas/inventory-operations'
+} from '../../../../../schemas/inventory-operations'
-export const Route = createFileRoute('/_authenticated/$storeId/products/transfers/$transferId/')({
+export const Route = createFileRoute('/_authenticated/$storeId/transfers/$transferId/')({
component: StockTransferDetailPage,
})
@@ -471,7 +471,7 @@ function TransferHeader({ transfer }: { transfer: StockTransfer }) {
.catch(() => false)
if (!deleted) return
- navigate({ to: '/$storeId/products/transfers', params: { storeId } })
+ navigate({ to: '/$storeId/transfers', params: { storeId } })
}
return (
@@ -481,7 +481,7 @@ function TransferHeader({ transfer }: { transfer: StockTransfer }) {
)}
<PageHeader
title={transfer.number}
- backTo="products/transfers"
+ backTo="transfers"
badges={<InventoryStatusBadge status={transfer.status} resource="stock_transfers" />}
actions={
open && (
@@ -491,7 +491,7 @@ function TransferHeader({ transfer }: { transfer: StockTransfer }) {
{transfer.editable && (
<Button variant="outline" asChild>
<Link
- to="/$storeId/products/transfers/$transferId/edit"
+ to="/$storeId/transfers/$transferId/edit"
params={{ storeId, transferId: transfer.id }}
>
<PencilIcon className="size-4" />
diff --git a/packages/dashboard/src/routes/_authenticated/$storeId/products/transfers/index.tsx b/packages/dashboard/src/routes/_authenticated/$storeId/transfers/index.tsx
similarity index 88%
rename from packages/dashboard/src/routes/_authenticated/$storeId/products/transfers/index.tsx
rename to packages/dashboard/src/routes/_authenticated/$storeId/transfers/index.tsx
index 67e13d0629..9a1ef8dc30 100644
--- a/packages/dashboard/src/routes/_authenticated/$storeId/products/transfers/index.tsx
+++ b/packages/dashboard/src/routes/_authenticated/$storeId/transfers/index.tsx
@@ -11,10 +11,10 @@ import { Button, RowActions, useConfirm, useRowClickBridge } from '@spree/dashbo
import { EyeIcon, PlusIcon } from '@spree/dashboard-ui/icons'
import { createFileRoute, useNavigate } from '@tanstack/react-router'
import { useTranslation } from 'react-i18next'
-import { useDeleteStockTransfer } from '../../../../../hooks/use-stock-transfers'
-import '../../../../../tables/stock-transfers'
+import { useDeleteStockTransfer } from '../../../../hooks/use-stock-transfers'
+import '../../../../tables/stock-transfers'
-export const Route = createFileRoute('/_authenticated/$storeId/products/transfers/')({
+export const Route = createFileRoute('/_authenticated/$storeId/transfers/')({
validateSearch: resourceSearchSchema,
component: StockTransfersPage,
})
@@ -30,13 +30,13 @@ function StockTransfersPage() {
function openDetail(id: string) {
navigate({
- to: '/$storeId/products/transfers/$transferId',
+ to: '/$storeId/transfers/$transferId',
params: { storeId, transferId: id },
})
}
function openCreate() {
- navigate({ to: '/$storeId/products/transfers/new', params: { storeId } })
+ navigate({ to: '/$storeId/transfers/new', params: { storeId } })
}
useRowClickBridge('data-stock-transfer-id', openDetail)
diff --git a/packages/dashboard/src/routes/_authenticated/$storeId/products/transfers/new.tsx b/packages/dashboard/src/routes/_authenticated/$storeId/transfers/new.tsx
similarity index 78%
rename from packages/dashboard/src/routes/_authenticated/$storeId/products/transfers/new.tsx
rename to packages/dashboard/src/routes/_authenticated/$storeId/transfers/new.tsx
index 28a6a7c19a..9570e60c15 100644
--- a/packages/dashboard/src/routes/_authenticated/$storeId/products/transfers/new.tsx
+++ b/packages/dashboard/src/routes/_authenticated/$storeId/transfers/new.tsx
@@ -4,10 +4,10 @@ import {
EMPTY_STOCK_TRANSFER,
StockTransferForm,
type StockTransferFormValues,
-} from '../../../../../components/spree/stock-transfer-form'
-import { useCreateStockTransfer } from '../../../../../hooks/use-stock-transfers'
+} from '../../../../components/spree/stock-transfer-form'
+import { useCreateStockTransfer } from '../../../../hooks/use-stock-transfers'
-export const Route = createFileRoute('/_authenticated/$storeId/products/transfers/new')({
+export const Route = createFileRoute('/_authenticated/$storeId/transfers/new')({
component: NewStockTransferPage,
})
@@ -35,7 +35,7 @@ function NewStockTransferPage() {
if (!transfer) return
navigate({
- to: '/$storeId/products/transfers/$transferId',
+ to: '/$storeId/transfers/$transferId',
params: { storeId, transferId: transfer.id },
})
}
@@ -44,12 +44,12 @@ function NewStockTransferPage() {
<StockTransferForm
initial={EMPTY_STOCK_TRANSFER}
title={t('admin.stock_transfers.new_title')}
- backTo="products/transfers"
+ backTo="transfers"
submitLabel={t('admin.stock_transfers.actions.create_draft')}
pendingLabel={t('admin.actions.creating')}
pending={createMutation.isPending}
onSubmit={handleSubmit}
- onCancel={() => navigate({ to: '/$storeId/products/transfers', params: { storeId } })}
+ onCancel={() => navigate({ to: '/$storeId/transfers', params: { storeId } })}
/>
)
}
diff --git a/packages/dashboard/src/search/create-actions.ts b/packages/dashboard/src/search/create-actions.ts
index 84e8f000c3..38e0d5f4c6 100644
--- a/packages/dashboard/src/search/create-actions.ts
+++ b/packages/dashboard/src/search/create-actions.ts
@@ -162,7 +162,7 @@ createActionRegistry.add({
icon: BoxesIcon,
subject: Subject.StockTransfer,
position: 510,
- getRoute: (storeId) => ({ to: `/${storeId}/products/transfers`, search: { new: true } }),
+ getRoute: (storeId) => ({ to: `/${storeId}/transfers`, search: { new: true } }),
})
createActionRegistry.add({