470 lines
17 KiB
TypeScript
470 lines
17 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 { createServerRootRoute } from '@tanstack/react-start/server'
|
|
|
|
import { Route as rootRouteImport } from './routes/__root'
|
|
import { Route as LogoutRouteImport } from './routes/logout'
|
|
import { Route as LoginRouteImport } from './routes/login'
|
|
import { Route as AuthedRouteImport } from './routes/_authed'
|
|
import { Route as AuthedIndexRouteImport } from './routes/_authed/index'
|
|
import { Route as AuthedSettingsRouteImport } from './routes/_authed/settings'
|
|
import { Route as AuthedAdminRouteImport } from './routes/_authed/admin'
|
|
import { Route as AuthedTournamentsIndexRouteImport } from './routes/_authed/tournaments/index'
|
|
import { Route as AuthedAdminIndexRouteImport } from './routes/_authed/admin/index'
|
|
import { Route as AuthedTournamentsTournamentIdRouteImport } from './routes/_authed/tournaments/$tournamentId'
|
|
import { Route as AuthedTeamsTeamIdRouteImport } from './routes/_authed/teams.$teamId'
|
|
import { Route as AuthedProfilePlayerIdRouteImport } from './routes/_authed/profile.$playerId'
|
|
import { Route as AuthedAdminPreviewRouteImport } from './routes/_authed/admin/preview'
|
|
import { Route as AuthedAdminTournamentsIndexRouteImport } from './routes/_authed/admin/tournaments/index'
|
|
import { Route as AuthedAdminTournamentsIdRouteImport } from './routes/_authed/admin/tournaments/$id'
|
|
import { ServerRoute as ApiTournamentsUploadLogoServerRouteImport } from './routes/api/tournaments/upload-logo'
|
|
import { ServerRoute as ApiEventsSplatServerRouteImport } from './routes/api/events.$'
|
|
import { ServerRoute as ApiAuthSplatServerRouteImport } from './routes/api/auth.$'
|
|
import { ServerRoute as ApiFilesCollectionRecordIdFileServerRouteImport } from './routes/api/files/$collection/$recordId/$file'
|
|
|
|
const rootServerRouteImport = createServerRootRoute()
|
|
|
|
const LogoutRoute = LogoutRouteImport.update({
|
|
id: '/logout',
|
|
path: '/logout',
|
|
getParentRoute: () => rootRouteImport,
|
|
} as any)
|
|
const LoginRoute = LoginRouteImport.update({
|
|
id: '/login',
|
|
path: '/login',
|
|
getParentRoute: () => rootRouteImport,
|
|
} as any)
|
|
const AuthedRoute = AuthedRouteImport.update({
|
|
id: '/_authed',
|
|
getParentRoute: () => rootRouteImport,
|
|
} as any)
|
|
const AuthedIndexRoute = AuthedIndexRouteImport.update({
|
|
id: '/',
|
|
path: '/',
|
|
getParentRoute: () => AuthedRoute,
|
|
} as any)
|
|
const AuthedSettingsRoute = AuthedSettingsRouteImport.update({
|
|
id: '/settings',
|
|
path: '/settings',
|
|
getParentRoute: () => AuthedRoute,
|
|
} as any)
|
|
const AuthedAdminRoute = AuthedAdminRouteImport.update({
|
|
id: '/admin',
|
|
path: '/admin',
|
|
getParentRoute: () => AuthedRoute,
|
|
} as any)
|
|
const AuthedTournamentsIndexRoute = AuthedTournamentsIndexRouteImport.update({
|
|
id: '/tournaments/',
|
|
path: '/tournaments/',
|
|
getParentRoute: () => AuthedRoute,
|
|
} as any)
|
|
const AuthedAdminIndexRoute = AuthedAdminIndexRouteImport.update({
|
|
id: '/',
|
|
path: '/',
|
|
getParentRoute: () => AuthedAdminRoute,
|
|
} as any)
|
|
const AuthedTournamentsTournamentIdRoute =
|
|
AuthedTournamentsTournamentIdRouteImport.update({
|
|
id: '/tournaments/$tournamentId',
|
|
path: '/tournaments/$tournamentId',
|
|
getParentRoute: () => AuthedRoute,
|
|
} as any)
|
|
const AuthedTeamsTeamIdRoute = AuthedTeamsTeamIdRouteImport.update({
|
|
id: '/teams/$teamId',
|
|
path: '/teams/$teamId',
|
|
getParentRoute: () => AuthedRoute,
|
|
} as any)
|
|
const AuthedProfilePlayerIdRoute = AuthedProfilePlayerIdRouteImport.update({
|
|
id: '/profile/$playerId',
|
|
path: '/profile/$playerId',
|
|
getParentRoute: () => AuthedRoute,
|
|
} as any)
|
|
const AuthedAdminPreviewRoute = AuthedAdminPreviewRouteImport.update({
|
|
id: '/preview',
|
|
path: '/preview',
|
|
getParentRoute: () => AuthedAdminRoute,
|
|
} as any)
|
|
const AuthedAdminTournamentsIndexRoute =
|
|
AuthedAdminTournamentsIndexRouteImport.update({
|
|
id: '/tournaments/',
|
|
path: '/tournaments/',
|
|
getParentRoute: () => AuthedAdminRoute,
|
|
} as any)
|
|
const AuthedAdminTournamentsIdRoute =
|
|
AuthedAdminTournamentsIdRouteImport.update({
|
|
id: '/tournaments/$id',
|
|
path: '/tournaments/$id',
|
|
getParentRoute: () => AuthedAdminRoute,
|
|
} as any)
|
|
const ApiTournamentsUploadLogoServerRoute =
|
|
ApiTournamentsUploadLogoServerRouteImport.update({
|
|
id: '/api/tournaments/upload-logo',
|
|
path: '/api/tournaments/upload-logo',
|
|
getParentRoute: () => rootServerRouteImport,
|
|
} as any)
|
|
const ApiEventsSplatServerRoute = ApiEventsSplatServerRouteImport.update({
|
|
id: '/api/events/$',
|
|
path: '/api/events/$',
|
|
getParentRoute: () => rootServerRouteImport,
|
|
} as any)
|
|
const ApiAuthSplatServerRoute = ApiAuthSplatServerRouteImport.update({
|
|
id: '/api/auth/$',
|
|
path: '/api/auth/$',
|
|
getParentRoute: () => rootServerRouteImport,
|
|
} as any)
|
|
const ApiFilesCollectionRecordIdFileServerRoute =
|
|
ApiFilesCollectionRecordIdFileServerRouteImport.update({
|
|
id: '/api/files/$collection/$recordId/$file',
|
|
path: '/api/files/$collection/$recordId/$file',
|
|
getParentRoute: () => rootServerRouteImport,
|
|
} as any)
|
|
|
|
export interface FileRoutesByFullPath {
|
|
'/login': typeof LoginRoute
|
|
'/logout': typeof LogoutRoute
|
|
'/admin': typeof AuthedAdminRouteWithChildren
|
|
'/settings': typeof AuthedSettingsRoute
|
|
'/': typeof AuthedIndexRoute
|
|
'/admin/preview': typeof AuthedAdminPreviewRoute
|
|
'/profile/$playerId': typeof AuthedProfilePlayerIdRoute
|
|
'/teams/$teamId': typeof AuthedTeamsTeamIdRoute
|
|
'/tournaments/$tournamentId': typeof AuthedTournamentsTournamentIdRoute
|
|
'/admin/': typeof AuthedAdminIndexRoute
|
|
'/tournaments': typeof AuthedTournamentsIndexRoute
|
|
'/admin/tournaments/$id': typeof AuthedAdminTournamentsIdRoute
|
|
'/admin/tournaments': typeof AuthedAdminTournamentsIndexRoute
|
|
}
|
|
export interface FileRoutesByTo {
|
|
'/login': typeof LoginRoute
|
|
'/logout': typeof LogoutRoute
|
|
'/settings': typeof AuthedSettingsRoute
|
|
'/': typeof AuthedIndexRoute
|
|
'/admin/preview': typeof AuthedAdminPreviewRoute
|
|
'/profile/$playerId': typeof AuthedProfilePlayerIdRoute
|
|
'/teams/$teamId': typeof AuthedTeamsTeamIdRoute
|
|
'/tournaments/$tournamentId': typeof AuthedTournamentsTournamentIdRoute
|
|
'/admin': typeof AuthedAdminIndexRoute
|
|
'/tournaments': typeof AuthedTournamentsIndexRoute
|
|
'/admin/tournaments/$id': typeof AuthedAdminTournamentsIdRoute
|
|
'/admin/tournaments': typeof AuthedAdminTournamentsIndexRoute
|
|
}
|
|
export interface FileRoutesById {
|
|
__root__: typeof rootRouteImport
|
|
'/_authed': typeof AuthedRouteWithChildren
|
|
'/login': typeof LoginRoute
|
|
'/logout': typeof LogoutRoute
|
|
'/_authed/admin': typeof AuthedAdminRouteWithChildren
|
|
'/_authed/settings': typeof AuthedSettingsRoute
|
|
'/_authed/': typeof AuthedIndexRoute
|
|
'/_authed/admin/preview': typeof AuthedAdminPreviewRoute
|
|
'/_authed/profile/$playerId': typeof AuthedProfilePlayerIdRoute
|
|
'/_authed/teams/$teamId': typeof AuthedTeamsTeamIdRoute
|
|
'/_authed/tournaments/$tournamentId': typeof AuthedTournamentsTournamentIdRoute
|
|
'/_authed/admin/': typeof AuthedAdminIndexRoute
|
|
'/_authed/tournaments/': typeof AuthedTournamentsIndexRoute
|
|
'/_authed/admin/tournaments/$id': typeof AuthedAdminTournamentsIdRoute
|
|
'/_authed/admin/tournaments/': typeof AuthedAdminTournamentsIndexRoute
|
|
}
|
|
export interface FileRouteTypes {
|
|
fileRoutesByFullPath: FileRoutesByFullPath
|
|
fullPaths:
|
|
| '/login'
|
|
| '/logout'
|
|
| '/admin'
|
|
| '/settings'
|
|
| '/'
|
|
| '/admin/preview'
|
|
| '/profile/$playerId'
|
|
| '/teams/$teamId'
|
|
| '/tournaments/$tournamentId'
|
|
| '/admin/'
|
|
| '/tournaments'
|
|
| '/admin/tournaments/$id'
|
|
| '/admin/tournaments'
|
|
fileRoutesByTo: FileRoutesByTo
|
|
to:
|
|
| '/login'
|
|
| '/logout'
|
|
| '/settings'
|
|
| '/'
|
|
| '/admin/preview'
|
|
| '/profile/$playerId'
|
|
| '/teams/$teamId'
|
|
| '/tournaments/$tournamentId'
|
|
| '/admin'
|
|
| '/tournaments'
|
|
| '/admin/tournaments/$id'
|
|
| '/admin/tournaments'
|
|
id:
|
|
| '__root__'
|
|
| '/_authed'
|
|
| '/login'
|
|
| '/logout'
|
|
| '/_authed/admin'
|
|
| '/_authed/settings'
|
|
| '/_authed/'
|
|
| '/_authed/admin/preview'
|
|
| '/_authed/profile/$playerId'
|
|
| '/_authed/teams/$teamId'
|
|
| '/_authed/tournaments/$tournamentId'
|
|
| '/_authed/admin/'
|
|
| '/_authed/tournaments/'
|
|
| '/_authed/admin/tournaments/$id'
|
|
| '/_authed/admin/tournaments/'
|
|
fileRoutesById: FileRoutesById
|
|
}
|
|
export interface RootRouteChildren {
|
|
AuthedRoute: typeof AuthedRouteWithChildren
|
|
LoginRoute: typeof LoginRoute
|
|
LogoutRoute: typeof LogoutRoute
|
|
}
|
|
export interface FileServerRoutesByFullPath {
|
|
'/api/auth/$': typeof ApiAuthSplatServerRoute
|
|
'/api/events/$': typeof ApiEventsSplatServerRoute
|
|
'/api/tournaments/upload-logo': typeof ApiTournamentsUploadLogoServerRoute
|
|
'/api/files/$collection/$recordId/$file': typeof ApiFilesCollectionRecordIdFileServerRoute
|
|
}
|
|
export interface FileServerRoutesByTo {
|
|
'/api/auth/$': typeof ApiAuthSplatServerRoute
|
|
'/api/events/$': typeof ApiEventsSplatServerRoute
|
|
'/api/tournaments/upload-logo': typeof ApiTournamentsUploadLogoServerRoute
|
|
'/api/files/$collection/$recordId/$file': typeof ApiFilesCollectionRecordIdFileServerRoute
|
|
}
|
|
export interface FileServerRoutesById {
|
|
__root__: typeof rootServerRouteImport
|
|
'/api/auth/$': typeof ApiAuthSplatServerRoute
|
|
'/api/events/$': typeof ApiEventsSplatServerRoute
|
|
'/api/tournaments/upload-logo': typeof ApiTournamentsUploadLogoServerRoute
|
|
'/api/files/$collection/$recordId/$file': typeof ApiFilesCollectionRecordIdFileServerRoute
|
|
}
|
|
export interface FileServerRouteTypes {
|
|
fileServerRoutesByFullPath: FileServerRoutesByFullPath
|
|
fullPaths:
|
|
| '/api/auth/$'
|
|
| '/api/events/$'
|
|
| '/api/tournaments/upload-logo'
|
|
| '/api/files/$collection/$recordId/$file'
|
|
fileServerRoutesByTo: FileServerRoutesByTo
|
|
to:
|
|
| '/api/auth/$'
|
|
| '/api/events/$'
|
|
| '/api/tournaments/upload-logo'
|
|
| '/api/files/$collection/$recordId/$file'
|
|
id:
|
|
| '__root__'
|
|
| '/api/auth/$'
|
|
| '/api/events/$'
|
|
| '/api/tournaments/upload-logo'
|
|
| '/api/files/$collection/$recordId/$file'
|
|
fileServerRoutesById: FileServerRoutesById
|
|
}
|
|
export interface RootServerRouteChildren {
|
|
ApiAuthSplatServerRoute: typeof ApiAuthSplatServerRoute
|
|
ApiEventsSplatServerRoute: typeof ApiEventsSplatServerRoute
|
|
ApiTournamentsUploadLogoServerRoute: typeof ApiTournamentsUploadLogoServerRoute
|
|
ApiFilesCollectionRecordIdFileServerRoute: typeof ApiFilesCollectionRecordIdFileServerRoute
|
|
}
|
|
|
|
declare module '@tanstack/react-router' {
|
|
interface FileRoutesByPath {
|
|
'/logout': {
|
|
id: '/logout'
|
|
path: '/logout'
|
|
fullPath: '/logout'
|
|
preLoaderRoute: typeof LogoutRouteImport
|
|
parentRoute: typeof rootRouteImport
|
|
}
|
|
'/login': {
|
|
id: '/login'
|
|
path: '/login'
|
|
fullPath: '/login'
|
|
preLoaderRoute: typeof LoginRouteImport
|
|
parentRoute: typeof rootRouteImport
|
|
}
|
|
'/_authed': {
|
|
id: '/_authed'
|
|
path: ''
|
|
fullPath: ''
|
|
preLoaderRoute: typeof AuthedRouteImport
|
|
parentRoute: typeof rootRouteImport
|
|
}
|
|
'/_authed/': {
|
|
id: '/_authed/'
|
|
path: '/'
|
|
fullPath: '/'
|
|
preLoaderRoute: typeof AuthedIndexRouteImport
|
|
parentRoute: typeof AuthedRoute
|
|
}
|
|
'/_authed/settings': {
|
|
id: '/_authed/settings'
|
|
path: '/settings'
|
|
fullPath: '/settings'
|
|
preLoaderRoute: typeof AuthedSettingsRouteImport
|
|
parentRoute: typeof AuthedRoute
|
|
}
|
|
'/_authed/admin': {
|
|
id: '/_authed/admin'
|
|
path: '/admin'
|
|
fullPath: '/admin'
|
|
preLoaderRoute: typeof AuthedAdminRouteImport
|
|
parentRoute: typeof AuthedRoute
|
|
}
|
|
'/_authed/tournaments/': {
|
|
id: '/_authed/tournaments/'
|
|
path: '/tournaments'
|
|
fullPath: '/tournaments'
|
|
preLoaderRoute: typeof AuthedTournamentsIndexRouteImport
|
|
parentRoute: typeof AuthedRoute
|
|
}
|
|
'/_authed/admin/': {
|
|
id: '/_authed/admin/'
|
|
path: '/'
|
|
fullPath: '/admin/'
|
|
preLoaderRoute: typeof AuthedAdminIndexRouteImport
|
|
parentRoute: typeof AuthedAdminRoute
|
|
}
|
|
'/_authed/tournaments/$tournamentId': {
|
|
id: '/_authed/tournaments/$tournamentId'
|
|
path: '/tournaments/$tournamentId'
|
|
fullPath: '/tournaments/$tournamentId'
|
|
preLoaderRoute: typeof AuthedTournamentsTournamentIdRouteImport
|
|
parentRoute: typeof AuthedRoute
|
|
}
|
|
'/_authed/teams/$teamId': {
|
|
id: '/_authed/teams/$teamId'
|
|
path: '/teams/$teamId'
|
|
fullPath: '/teams/$teamId'
|
|
preLoaderRoute: typeof AuthedTeamsTeamIdRouteImport
|
|
parentRoute: typeof AuthedRoute
|
|
}
|
|
'/_authed/profile/$playerId': {
|
|
id: '/_authed/profile/$playerId'
|
|
path: '/profile/$playerId'
|
|
fullPath: '/profile/$playerId'
|
|
preLoaderRoute: typeof AuthedProfilePlayerIdRouteImport
|
|
parentRoute: typeof AuthedRoute
|
|
}
|
|
'/_authed/admin/preview': {
|
|
id: '/_authed/admin/preview'
|
|
path: '/preview'
|
|
fullPath: '/admin/preview'
|
|
preLoaderRoute: typeof AuthedAdminPreviewRouteImport
|
|
parentRoute: typeof AuthedAdminRoute
|
|
}
|
|
'/_authed/admin/tournaments/': {
|
|
id: '/_authed/admin/tournaments/'
|
|
path: '/tournaments'
|
|
fullPath: '/admin/tournaments'
|
|
preLoaderRoute: typeof AuthedAdminTournamentsIndexRouteImport
|
|
parentRoute: typeof AuthedAdminRoute
|
|
}
|
|
'/_authed/admin/tournaments/$id': {
|
|
id: '/_authed/admin/tournaments/$id'
|
|
path: '/tournaments/$id'
|
|
fullPath: '/admin/tournaments/$id'
|
|
preLoaderRoute: typeof AuthedAdminTournamentsIdRouteImport
|
|
parentRoute: typeof AuthedAdminRoute
|
|
}
|
|
}
|
|
}
|
|
declare module '@tanstack/react-start/server' {
|
|
interface ServerFileRoutesByPath {
|
|
'/api/tournaments/upload-logo': {
|
|
id: '/api/tournaments/upload-logo'
|
|
path: '/api/tournaments/upload-logo'
|
|
fullPath: '/api/tournaments/upload-logo'
|
|
preLoaderRoute: typeof ApiTournamentsUploadLogoServerRouteImport
|
|
parentRoute: typeof rootServerRouteImport
|
|
}
|
|
'/api/events/$': {
|
|
id: '/api/events/$'
|
|
path: '/api/events/$'
|
|
fullPath: '/api/events/$'
|
|
preLoaderRoute: typeof ApiEventsSplatServerRouteImport
|
|
parentRoute: typeof rootServerRouteImport
|
|
}
|
|
'/api/auth/$': {
|
|
id: '/api/auth/$'
|
|
path: '/api/auth/$'
|
|
fullPath: '/api/auth/$'
|
|
preLoaderRoute: typeof ApiAuthSplatServerRouteImport
|
|
parentRoute: typeof rootServerRouteImport
|
|
}
|
|
'/api/files/$collection/$recordId/$file': {
|
|
id: '/api/files/$collection/$recordId/$file'
|
|
path: '/api/files/$collection/$recordId/$file'
|
|
fullPath: '/api/files/$collection/$recordId/$file'
|
|
preLoaderRoute: typeof ApiFilesCollectionRecordIdFileServerRouteImport
|
|
parentRoute: typeof rootServerRouteImport
|
|
}
|
|
}
|
|
}
|
|
|
|
interface AuthedAdminRouteChildren {
|
|
AuthedAdminPreviewRoute: typeof AuthedAdminPreviewRoute
|
|
AuthedAdminIndexRoute: typeof AuthedAdminIndexRoute
|
|
AuthedAdminTournamentsIdRoute: typeof AuthedAdminTournamentsIdRoute
|
|
AuthedAdminTournamentsIndexRoute: typeof AuthedAdminTournamentsIndexRoute
|
|
}
|
|
|
|
const AuthedAdminRouteChildren: AuthedAdminRouteChildren = {
|
|
AuthedAdminPreviewRoute: AuthedAdminPreviewRoute,
|
|
AuthedAdminIndexRoute: AuthedAdminIndexRoute,
|
|
AuthedAdminTournamentsIdRoute: AuthedAdminTournamentsIdRoute,
|
|
AuthedAdminTournamentsIndexRoute: AuthedAdminTournamentsIndexRoute,
|
|
}
|
|
|
|
const AuthedAdminRouteWithChildren = AuthedAdminRoute._addFileChildren(
|
|
AuthedAdminRouteChildren,
|
|
)
|
|
|
|
interface AuthedRouteChildren {
|
|
AuthedAdminRoute: typeof AuthedAdminRouteWithChildren
|
|
AuthedSettingsRoute: typeof AuthedSettingsRoute
|
|
AuthedIndexRoute: typeof AuthedIndexRoute
|
|
AuthedProfilePlayerIdRoute: typeof AuthedProfilePlayerIdRoute
|
|
AuthedTeamsTeamIdRoute: typeof AuthedTeamsTeamIdRoute
|
|
AuthedTournamentsTournamentIdRoute: typeof AuthedTournamentsTournamentIdRoute
|
|
AuthedTournamentsIndexRoute: typeof AuthedTournamentsIndexRoute
|
|
}
|
|
|
|
const AuthedRouteChildren: AuthedRouteChildren = {
|
|
AuthedAdminRoute: AuthedAdminRouteWithChildren,
|
|
AuthedSettingsRoute: AuthedSettingsRoute,
|
|
AuthedIndexRoute: AuthedIndexRoute,
|
|
AuthedProfilePlayerIdRoute: AuthedProfilePlayerIdRoute,
|
|
AuthedTeamsTeamIdRoute: AuthedTeamsTeamIdRoute,
|
|
AuthedTournamentsTournamentIdRoute: AuthedTournamentsTournamentIdRoute,
|
|
AuthedTournamentsIndexRoute: AuthedTournamentsIndexRoute,
|
|
}
|
|
|
|
const AuthedRouteWithChildren =
|
|
AuthedRoute._addFileChildren(AuthedRouteChildren)
|
|
|
|
const rootRouteChildren: RootRouteChildren = {
|
|
AuthedRoute: AuthedRouteWithChildren,
|
|
LoginRoute: LoginRoute,
|
|
LogoutRoute: LogoutRoute,
|
|
}
|
|
export const routeTree = rootRouteImport
|
|
._addFileChildren(rootRouteChildren)
|
|
._addFileTypes<FileRouteTypes>()
|
|
const rootServerRouteChildren: RootServerRouteChildren = {
|
|
ApiAuthSplatServerRoute: ApiAuthSplatServerRoute,
|
|
ApiEventsSplatServerRoute: ApiEventsSplatServerRoute,
|
|
ApiTournamentsUploadLogoServerRoute: ApiTournamentsUploadLogoServerRoute,
|
|
ApiFilesCollectionRecordIdFileServerRoute:
|
|
ApiFilesCollectionRecordIdFileServerRoute,
|
|
}
|
|
export const serverRouteTree = rootServerRouteImport
|
|
._addFileChildren(rootServerRouteChildren)
|
|
._addFileTypes<FileServerRouteTypes>()
|