- Removed obsolete onboarding routes: complete, create-complex, index, verify-email, and verify. - Introduced new setup stepper page for onboarding process. - Created a multi-step setup component to handle complex creation with validation. - Added new schemas for complex creation and plan features. - Implemented detailed steps for complex name, location, plan selection, and court setup. - Enhanced error handling and user feedback during the onboarding process.
409 lines
14 KiB
TypeScript
409 lines
14 KiB
TypeScript
/* eslint-disable */
|
|
|
|
// @ts-nocheck
|
|
|
|
// noinspection JSUnusedGlobalSymbols
|
|
|
|
// This file was automatically generated by TanStack Router.
|
|
// You should NOT make any changes in this file as it will be overwritten.
|
|
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
|
|
|
|
import { Route as rootRouteImport } from './routes/__root'
|
|
import { Route as SignupRouteImport } from './routes/signup'
|
|
import { Route as SelectComplexRouteImport } from './routes/select-complex'
|
|
import { Route as ResetPasswordRouteImport } from './routes/reset-password'
|
|
import { Route as OnboardRouteImport } from './routes/onboard'
|
|
import { Route as LoginRouteImport } from './routes/login'
|
|
import { Route as InviteRouteImport } from './routes/invite'
|
|
import { Route as AuthCallbackRouteImport } from './routes/auth-callback'
|
|
import { Route as AppRouteRouteImport } from './routes/_app/route'
|
|
import { Route as OnboardSetupRouteImport } from './routes/onboard/setup'
|
|
import { Route as AppProfileRouteImport } from './routes/_app/profile'
|
|
import { Route as ComplexSlugBookingRouteImport } from './routes/$complexSlug/booking'
|
|
import { Route as AppAuthenticatedRouteRouteImport } from './routes/_app/_authenticated/route'
|
|
import { Route as AppAuthenticatedIndexRouteImport } from './routes/_app/_authenticated/index'
|
|
import { Route as ComplexSlugBookingIndexRouteImport } from './routes/$complexSlug/booking/index'
|
|
import { Route as ComplexSlugBookingConfirmedBookingCodeRouteImport } from './routes/$complexSlug/booking/confirmed/$bookingCode'
|
|
import { Route as AppAuthenticatedComplexSlugEditRouteImport } from './routes/_app/_authenticated/complex/$slug/edit'
|
|
|
|
const SignupRoute = SignupRouteImport.update({
|
|
id: '/signup',
|
|
path: '/signup',
|
|
getParentRoute: () => rootRouteImport,
|
|
} as any)
|
|
const SelectComplexRoute = SelectComplexRouteImport.update({
|
|
id: '/select-complex',
|
|
path: '/select-complex',
|
|
getParentRoute: () => rootRouteImport,
|
|
} as any)
|
|
const ResetPasswordRoute = ResetPasswordRouteImport.update({
|
|
id: '/reset-password',
|
|
path: '/reset-password',
|
|
getParentRoute: () => rootRouteImport,
|
|
} as any)
|
|
const OnboardRoute = OnboardRouteImport.update({
|
|
id: '/onboard',
|
|
path: '/onboard',
|
|
getParentRoute: () => rootRouteImport,
|
|
} as any)
|
|
const LoginRoute = LoginRouteImport.update({
|
|
id: '/login',
|
|
path: '/login',
|
|
getParentRoute: () => rootRouteImport,
|
|
} as any)
|
|
const InviteRoute = InviteRouteImport.update({
|
|
id: '/invite',
|
|
path: '/invite',
|
|
getParentRoute: () => rootRouteImport,
|
|
} as any)
|
|
const AuthCallbackRoute = AuthCallbackRouteImport.update({
|
|
id: '/auth-callback',
|
|
path: '/auth-callback',
|
|
getParentRoute: () => rootRouteImport,
|
|
} as any)
|
|
const AppRouteRoute = AppRouteRouteImport.update({
|
|
id: '/_app',
|
|
getParentRoute: () => rootRouteImport,
|
|
} as any)
|
|
const OnboardSetupRoute = OnboardSetupRouteImport.update({
|
|
id: '/setup',
|
|
path: '/setup',
|
|
getParentRoute: () => OnboardRoute,
|
|
} as any)
|
|
const AppProfileRoute = AppProfileRouteImport.update({
|
|
id: '/profile',
|
|
path: '/profile',
|
|
getParentRoute: () => AppRouteRoute,
|
|
} as any)
|
|
const ComplexSlugBookingRoute = ComplexSlugBookingRouteImport.update({
|
|
id: '/$complexSlug/booking',
|
|
path: '/$complexSlug/booking',
|
|
getParentRoute: () => rootRouteImport,
|
|
} as any)
|
|
const AppAuthenticatedRouteRoute = AppAuthenticatedRouteRouteImport.update({
|
|
id: '/_authenticated',
|
|
getParentRoute: () => AppRouteRoute,
|
|
} as any)
|
|
const AppAuthenticatedIndexRoute = AppAuthenticatedIndexRouteImport.update({
|
|
id: '/',
|
|
path: '/',
|
|
getParentRoute: () => AppAuthenticatedRouteRoute,
|
|
} as any)
|
|
const ComplexSlugBookingIndexRoute = ComplexSlugBookingIndexRouteImport.update({
|
|
id: '/',
|
|
path: '/',
|
|
getParentRoute: () => ComplexSlugBookingRoute,
|
|
} as any)
|
|
const ComplexSlugBookingConfirmedBookingCodeRoute =
|
|
ComplexSlugBookingConfirmedBookingCodeRouteImport.update({
|
|
id: '/confirmed/$bookingCode',
|
|
path: '/confirmed/$bookingCode',
|
|
getParentRoute: () => ComplexSlugBookingRoute,
|
|
} as any)
|
|
const AppAuthenticatedComplexSlugEditRoute =
|
|
AppAuthenticatedComplexSlugEditRouteImport.update({
|
|
id: '/complex/$slug/edit',
|
|
path: '/complex/$slug/edit',
|
|
getParentRoute: () => AppAuthenticatedRouteRoute,
|
|
} as any)
|
|
|
|
export interface FileRoutesByFullPath {
|
|
'/': typeof AppAuthenticatedIndexRoute
|
|
'/auth-callback': typeof AuthCallbackRoute
|
|
'/invite': typeof InviteRoute
|
|
'/login': typeof LoginRoute
|
|
'/onboard': typeof OnboardRouteWithChildren
|
|
'/reset-password': typeof ResetPasswordRoute
|
|
'/select-complex': typeof SelectComplexRoute
|
|
'/signup': typeof SignupRoute
|
|
'/$complexSlug/booking': typeof ComplexSlugBookingRouteWithChildren
|
|
'/profile': typeof AppProfileRoute
|
|
'/onboard/setup': typeof OnboardSetupRoute
|
|
'/$complexSlug/booking/': typeof ComplexSlugBookingIndexRoute
|
|
'/$complexSlug/booking/confirmed/$bookingCode': typeof ComplexSlugBookingConfirmedBookingCodeRoute
|
|
'/complex/$slug/edit': typeof AppAuthenticatedComplexSlugEditRoute
|
|
}
|
|
export interface FileRoutesByTo {
|
|
'/': typeof AppAuthenticatedIndexRoute
|
|
'/auth-callback': typeof AuthCallbackRoute
|
|
'/invite': typeof InviteRoute
|
|
'/login': typeof LoginRoute
|
|
'/onboard': typeof OnboardRouteWithChildren
|
|
'/reset-password': typeof ResetPasswordRoute
|
|
'/select-complex': typeof SelectComplexRoute
|
|
'/signup': typeof SignupRoute
|
|
'/profile': typeof AppProfileRoute
|
|
'/onboard/setup': typeof OnboardSetupRoute
|
|
'/$complexSlug/booking': typeof ComplexSlugBookingIndexRoute
|
|
'/$complexSlug/booking/confirmed/$bookingCode': typeof ComplexSlugBookingConfirmedBookingCodeRoute
|
|
'/complex/$slug/edit': typeof AppAuthenticatedComplexSlugEditRoute
|
|
}
|
|
export interface FileRoutesById {
|
|
__root__: typeof rootRouteImport
|
|
'/_app': typeof AppRouteRouteWithChildren
|
|
'/auth-callback': typeof AuthCallbackRoute
|
|
'/invite': typeof InviteRoute
|
|
'/login': typeof LoginRoute
|
|
'/onboard': typeof OnboardRouteWithChildren
|
|
'/reset-password': typeof ResetPasswordRoute
|
|
'/select-complex': typeof SelectComplexRoute
|
|
'/signup': typeof SignupRoute
|
|
'/_app/_authenticated': typeof AppAuthenticatedRouteRouteWithChildren
|
|
'/$complexSlug/booking': typeof ComplexSlugBookingRouteWithChildren
|
|
'/_app/profile': typeof AppProfileRoute
|
|
'/onboard/setup': typeof OnboardSetupRoute
|
|
'/$complexSlug/booking/': typeof ComplexSlugBookingIndexRoute
|
|
'/_app/_authenticated/': typeof AppAuthenticatedIndexRoute
|
|
'/$complexSlug/booking/confirmed/$bookingCode': typeof ComplexSlugBookingConfirmedBookingCodeRoute
|
|
'/_app/_authenticated/complex/$slug/edit': typeof AppAuthenticatedComplexSlugEditRoute
|
|
}
|
|
export interface FileRouteTypes {
|
|
fileRoutesByFullPath: FileRoutesByFullPath
|
|
fullPaths:
|
|
| '/'
|
|
| '/auth-callback'
|
|
| '/invite'
|
|
| '/login'
|
|
| '/onboard'
|
|
| '/reset-password'
|
|
| '/select-complex'
|
|
| '/signup'
|
|
| '/$complexSlug/booking'
|
|
| '/profile'
|
|
| '/onboard/setup'
|
|
| '/$complexSlug/booking/'
|
|
| '/$complexSlug/booking/confirmed/$bookingCode'
|
|
| '/complex/$slug/edit'
|
|
fileRoutesByTo: FileRoutesByTo
|
|
to:
|
|
| '/'
|
|
| '/auth-callback'
|
|
| '/invite'
|
|
| '/login'
|
|
| '/onboard'
|
|
| '/reset-password'
|
|
| '/select-complex'
|
|
| '/signup'
|
|
| '/profile'
|
|
| '/onboard/setup'
|
|
| '/$complexSlug/booking'
|
|
| '/$complexSlug/booking/confirmed/$bookingCode'
|
|
| '/complex/$slug/edit'
|
|
id:
|
|
| '__root__'
|
|
| '/_app'
|
|
| '/auth-callback'
|
|
| '/invite'
|
|
| '/login'
|
|
| '/onboard'
|
|
| '/reset-password'
|
|
| '/select-complex'
|
|
| '/signup'
|
|
| '/_app/_authenticated'
|
|
| '/$complexSlug/booking'
|
|
| '/_app/profile'
|
|
| '/onboard/setup'
|
|
| '/$complexSlug/booking/'
|
|
| '/_app/_authenticated/'
|
|
| '/$complexSlug/booking/confirmed/$bookingCode'
|
|
| '/_app/_authenticated/complex/$slug/edit'
|
|
fileRoutesById: FileRoutesById
|
|
}
|
|
export interface RootRouteChildren {
|
|
AppRouteRoute: typeof AppRouteRouteWithChildren
|
|
AuthCallbackRoute: typeof AuthCallbackRoute
|
|
InviteRoute: typeof InviteRoute
|
|
LoginRoute: typeof LoginRoute
|
|
OnboardRoute: typeof OnboardRouteWithChildren
|
|
ResetPasswordRoute: typeof ResetPasswordRoute
|
|
SelectComplexRoute: typeof SelectComplexRoute
|
|
SignupRoute: typeof SignupRoute
|
|
ComplexSlugBookingRoute: typeof ComplexSlugBookingRouteWithChildren
|
|
}
|
|
|
|
declare module '@tanstack/react-router' {
|
|
interface FileRoutesByPath {
|
|
'/signup': {
|
|
id: '/signup'
|
|
path: '/signup'
|
|
fullPath: '/signup'
|
|
preLoaderRoute: typeof SignupRouteImport
|
|
parentRoute: typeof rootRouteImport
|
|
}
|
|
'/select-complex': {
|
|
id: '/select-complex'
|
|
path: '/select-complex'
|
|
fullPath: '/select-complex'
|
|
preLoaderRoute: typeof SelectComplexRouteImport
|
|
parentRoute: typeof rootRouteImport
|
|
}
|
|
'/reset-password': {
|
|
id: '/reset-password'
|
|
path: '/reset-password'
|
|
fullPath: '/reset-password'
|
|
preLoaderRoute: typeof ResetPasswordRouteImport
|
|
parentRoute: typeof rootRouteImport
|
|
}
|
|
'/onboard': {
|
|
id: '/onboard'
|
|
path: '/onboard'
|
|
fullPath: '/onboard'
|
|
preLoaderRoute: typeof OnboardRouteImport
|
|
parentRoute: typeof rootRouteImport
|
|
}
|
|
'/login': {
|
|
id: '/login'
|
|
path: '/login'
|
|
fullPath: '/login'
|
|
preLoaderRoute: typeof LoginRouteImport
|
|
parentRoute: typeof rootRouteImport
|
|
}
|
|
'/invite': {
|
|
id: '/invite'
|
|
path: '/invite'
|
|
fullPath: '/invite'
|
|
preLoaderRoute: typeof InviteRouteImport
|
|
parentRoute: typeof rootRouteImport
|
|
}
|
|
'/auth-callback': {
|
|
id: '/auth-callback'
|
|
path: '/auth-callback'
|
|
fullPath: '/auth-callback'
|
|
preLoaderRoute: typeof AuthCallbackRouteImport
|
|
parentRoute: typeof rootRouteImport
|
|
}
|
|
'/_app': {
|
|
id: '/_app'
|
|
path: ''
|
|
fullPath: '/'
|
|
preLoaderRoute: typeof AppRouteRouteImport
|
|
parentRoute: typeof rootRouteImport
|
|
}
|
|
'/onboard/setup': {
|
|
id: '/onboard/setup'
|
|
path: '/setup'
|
|
fullPath: '/onboard/setup'
|
|
preLoaderRoute: typeof OnboardSetupRouteImport
|
|
parentRoute: typeof OnboardRoute
|
|
}
|
|
'/_app/profile': {
|
|
id: '/_app/profile'
|
|
path: '/profile'
|
|
fullPath: '/profile'
|
|
preLoaderRoute: typeof AppProfileRouteImport
|
|
parentRoute: typeof AppRouteRoute
|
|
}
|
|
'/$complexSlug/booking': {
|
|
id: '/$complexSlug/booking'
|
|
path: '/$complexSlug/booking'
|
|
fullPath: '/$complexSlug/booking'
|
|
preLoaderRoute: typeof ComplexSlugBookingRouteImport
|
|
parentRoute: typeof rootRouteImport
|
|
}
|
|
'/_app/_authenticated': {
|
|
id: '/_app/_authenticated'
|
|
path: ''
|
|
fullPath: '/'
|
|
preLoaderRoute: typeof AppAuthenticatedRouteRouteImport
|
|
parentRoute: typeof AppRouteRoute
|
|
}
|
|
'/_app/_authenticated/': {
|
|
id: '/_app/_authenticated/'
|
|
path: '/'
|
|
fullPath: '/'
|
|
preLoaderRoute: typeof AppAuthenticatedIndexRouteImport
|
|
parentRoute: typeof AppAuthenticatedRouteRoute
|
|
}
|
|
'/$complexSlug/booking/': {
|
|
id: '/$complexSlug/booking/'
|
|
path: '/'
|
|
fullPath: '/$complexSlug/booking/'
|
|
preLoaderRoute: typeof ComplexSlugBookingIndexRouteImport
|
|
parentRoute: typeof ComplexSlugBookingRoute
|
|
}
|
|
'/$complexSlug/booking/confirmed/$bookingCode': {
|
|
id: '/$complexSlug/booking/confirmed/$bookingCode'
|
|
path: '/confirmed/$bookingCode'
|
|
fullPath: '/$complexSlug/booking/confirmed/$bookingCode'
|
|
preLoaderRoute: typeof ComplexSlugBookingConfirmedBookingCodeRouteImport
|
|
parentRoute: typeof ComplexSlugBookingRoute
|
|
}
|
|
'/_app/_authenticated/complex/$slug/edit': {
|
|
id: '/_app/_authenticated/complex/$slug/edit'
|
|
path: '/complex/$slug/edit'
|
|
fullPath: '/complex/$slug/edit'
|
|
preLoaderRoute: typeof AppAuthenticatedComplexSlugEditRouteImport
|
|
parentRoute: typeof AppAuthenticatedRouteRoute
|
|
}
|
|
}
|
|
}
|
|
|
|
interface AppAuthenticatedRouteRouteChildren {
|
|
AppAuthenticatedIndexRoute: typeof AppAuthenticatedIndexRoute
|
|
AppAuthenticatedComplexSlugEditRoute: typeof AppAuthenticatedComplexSlugEditRoute
|
|
}
|
|
|
|
const AppAuthenticatedRouteRouteChildren: AppAuthenticatedRouteRouteChildren = {
|
|
AppAuthenticatedIndexRoute: AppAuthenticatedIndexRoute,
|
|
AppAuthenticatedComplexSlugEditRoute: AppAuthenticatedComplexSlugEditRoute,
|
|
}
|
|
|
|
const AppAuthenticatedRouteRouteWithChildren =
|
|
AppAuthenticatedRouteRoute._addFileChildren(
|
|
AppAuthenticatedRouteRouteChildren,
|
|
)
|
|
|
|
interface AppRouteRouteChildren {
|
|
AppAuthenticatedRouteRoute: typeof AppAuthenticatedRouteRouteWithChildren
|
|
AppProfileRoute: typeof AppProfileRoute
|
|
}
|
|
|
|
const AppRouteRouteChildren: AppRouteRouteChildren = {
|
|
AppAuthenticatedRouteRoute: AppAuthenticatedRouteRouteWithChildren,
|
|
AppProfileRoute: AppProfileRoute,
|
|
}
|
|
|
|
const AppRouteRouteWithChildren = AppRouteRoute._addFileChildren(
|
|
AppRouteRouteChildren,
|
|
)
|
|
|
|
interface OnboardRouteChildren {
|
|
OnboardSetupRoute: typeof OnboardSetupRoute
|
|
}
|
|
|
|
const OnboardRouteChildren: OnboardRouteChildren = {
|
|
OnboardSetupRoute: OnboardSetupRoute,
|
|
}
|
|
|
|
const OnboardRouteWithChildren =
|
|
OnboardRoute._addFileChildren(OnboardRouteChildren)
|
|
|
|
interface ComplexSlugBookingRouteChildren {
|
|
ComplexSlugBookingIndexRoute: typeof ComplexSlugBookingIndexRoute
|
|
ComplexSlugBookingConfirmedBookingCodeRoute: typeof ComplexSlugBookingConfirmedBookingCodeRoute
|
|
}
|
|
|
|
const ComplexSlugBookingRouteChildren: ComplexSlugBookingRouteChildren = {
|
|
ComplexSlugBookingIndexRoute: ComplexSlugBookingIndexRoute,
|
|
ComplexSlugBookingConfirmedBookingCodeRoute:
|
|
ComplexSlugBookingConfirmedBookingCodeRoute,
|
|
}
|
|
|
|
const ComplexSlugBookingRouteWithChildren =
|
|
ComplexSlugBookingRoute._addFileChildren(ComplexSlugBookingRouteChildren)
|
|
|
|
const rootRouteChildren: RootRouteChildren = {
|
|
AppRouteRoute: AppRouteRouteWithChildren,
|
|
AuthCallbackRoute: AuthCallbackRoute,
|
|
InviteRoute: InviteRoute,
|
|
LoginRoute: LoginRoute,
|
|
OnboardRoute: OnboardRouteWithChildren,
|
|
ResetPasswordRoute: ResetPasswordRoute,
|
|
SelectComplexRoute: SelectComplexRoute,
|
|
SignupRoute: SignupRoute,
|
|
ComplexSlugBookingRoute: ComplexSlugBookingRouteWithChildren,
|
|
}
|
|
export const routeTree = rootRouteImport
|
|
._addFileChildren(rootRouteChildren)
|
|
._addFileTypes<FileRouteTypes>()
|