Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
100 changes: 98 additions & 2 deletions bun.lock

Large diffs are not rendered by default.

157 changes: 157 additions & 0 deletions src/routeTree.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { Route as ScrutinsRouteImport } from './routes/scrutins'
import { Route as RechercheRouteImport } from './routes/recherche'
import { Route as Legislature16RouteImport } from './routes/legislature-16'
import { Route as GroupesRouteImport } from './routes/groupes'
import { Route as DevelopersRouteImport } from './routes/developers'
import { Route as DeputesRouteImport } from './routes/deputes'
import { Route as ConfidentialiteRouteImport } from './routes/confidentialite'
import { Route as BlogRouteImport } from './routes/blog'
Expand All @@ -28,6 +29,12 @@ import { Route as ApiVisitsRouteImport } from './routes/api/visits'
import { Route as ApiStatusRouteImport } from './routes/api/status'
import { Route as ApiMetaRouteImport } from './routes/api/meta'
import { Route as ApiAiChatRouteImport } from './routes/api/ai-chat'
import { Route as ApiV1IndexRouteImport } from './routes/api/v1/index'
import { Route as ApiV1ScrutinsRouteImport } from './routes/api/v1/scrutins'
import { Route as ApiV1GroupesRouteImport } from './routes/api/v1/groupes'
import { Route as ApiV1DeputesRouteImport } from './routes/api/v1/deputes'
import { Route as ApiV1ScrutinsNumeroRouteImport } from './routes/api/v1/scrutins.$numero'
import { Route as ApiV1KeysCreateRouteImport } from './routes/api/v1/keys/create'

const StatutRoute = StatutRouteImport.update({
id: '/statut',
Expand All @@ -54,6 +61,11 @@ const GroupesRoute = GroupesRouteImport.update({
path: '/groupes',
getParentRoute: () => rootRouteImport,
} as any)
const DevelopersRoute = DevelopersRouteImport.update({
id: '/developers',
path: '/developers',
getParentRoute: () => rootRouteImport,
} as any)
const DeputesRoute = DeputesRouteImport.update({
id: '/deputes',
path: '/deputes',
Expand Down Expand Up @@ -124,13 +136,44 @@ const ApiAiChatRoute = ApiAiChatRouteImport.update({
path: '/api/ai-chat',
getParentRoute: () => rootRouteImport,
} as any)
const ApiV1IndexRoute = ApiV1IndexRouteImport.update({
id: '/api/v1/',
path: '/api/v1/',
getParentRoute: () => rootRouteImport,
} as any)
const ApiV1ScrutinsRoute = ApiV1ScrutinsRouteImport.update({
id: '/api/v1/scrutins',
path: '/api/v1/scrutins',
getParentRoute: () => rootRouteImport,
} as any)
const ApiV1GroupesRoute = ApiV1GroupesRouteImport.update({
id: '/api/v1/groupes',
path: '/api/v1/groupes',
getParentRoute: () => rootRouteImport,
} as any)
const ApiV1DeputesRoute = ApiV1DeputesRouteImport.update({
id: '/api/v1/deputes',
path: '/api/v1/deputes',
getParentRoute: () => rootRouteImport,
} as any)
const ApiV1ScrutinsNumeroRoute = ApiV1ScrutinsNumeroRouteImport.update({
id: '/$numero',
path: '/$numero',
getParentRoute: () => ApiV1ScrutinsRoute,
} as any)
const ApiV1KeysCreateRoute = ApiV1KeysCreateRouteImport.update({
id: '/api/v1/keys/create',
path: '/api/v1/keys/create',
getParentRoute: () => rootRouteImport,
} as any)

export interface FileRoutesByFullPath {
'/': typeof IndexRoute
'/a-propos': typeof AProposRoute
'/blog': typeof BlogRouteWithChildren
'/confidentialite': typeof ConfidentialiteRoute
'/deputes': typeof DeputesRoute
'/developers': typeof DevelopersRoute
'/groupes': typeof GroupesRouteWithChildren
'/legislature-16': typeof Legislature16Route
'/recherche': typeof RechercheRoute
Expand All @@ -145,12 +188,19 @@ export interface FileRoutesByFullPath {
'/groupes/$sigle': typeof GroupesSigleRoute
'/scrutin/$numero': typeof ScrutinNumeroRoute
'/blog/': typeof BlogIndexRoute
'/api/v1/deputes': typeof ApiV1DeputesRoute
'/api/v1/groupes': typeof ApiV1GroupesRoute
'/api/v1/scrutins': typeof ApiV1ScrutinsRouteWithChildren
'/api/v1/': typeof ApiV1IndexRoute
'/api/v1/keys/create': typeof ApiV1KeysCreateRoute
'/api/v1/scrutins/$numero': typeof ApiV1ScrutinsNumeroRoute
}
export interface FileRoutesByTo {
'/': typeof IndexRoute
'/a-propos': typeof AProposRoute
'/confidentialite': typeof ConfidentialiteRoute
'/deputes': typeof DeputesRoute
'/developers': typeof DevelopersRoute
'/groupes': typeof GroupesRouteWithChildren
'/legislature-16': typeof Legislature16Route
'/recherche': typeof RechercheRoute
Expand All @@ -165,6 +215,12 @@ export interface FileRoutesByTo {
'/groupes/$sigle': typeof GroupesSigleRoute
'/scrutin/$numero': typeof ScrutinNumeroRoute
'/blog': typeof BlogIndexRoute
'/api/v1/deputes': typeof ApiV1DeputesRoute
'/api/v1/groupes': typeof ApiV1GroupesRoute
'/api/v1/scrutins': typeof ApiV1ScrutinsRouteWithChildren
'/api/v1': typeof ApiV1IndexRoute
'/api/v1/keys/create': typeof ApiV1KeysCreateRoute
'/api/v1/scrutins/$numero': typeof ApiV1ScrutinsNumeroRoute
}
export interface FileRoutesById {
__root__: typeof rootRouteImport
Expand All @@ -173,6 +229,7 @@ export interface FileRoutesById {
'/blog': typeof BlogRouteWithChildren
'/confidentialite': typeof ConfidentialiteRoute
'/deputes': typeof DeputesRoute
'/developers': typeof DevelopersRoute
'/groupes': typeof GroupesRouteWithChildren
'/legislature-16': typeof Legislature16Route
'/recherche': typeof RechercheRoute
Expand All @@ -187,6 +244,12 @@ export interface FileRoutesById {
'/groupes/$sigle': typeof GroupesSigleRoute
'/scrutin/$numero': typeof ScrutinNumeroRoute
'/blog/': typeof BlogIndexRoute
'/api/v1/deputes': typeof ApiV1DeputesRoute
'/api/v1/groupes': typeof ApiV1GroupesRoute
'/api/v1/scrutins': typeof ApiV1ScrutinsRouteWithChildren
'/api/v1/': typeof ApiV1IndexRoute
'/api/v1/keys/create': typeof ApiV1KeysCreateRoute
'/api/v1/scrutins/$numero': typeof ApiV1ScrutinsNumeroRoute
}
export interface FileRouteTypes {
fileRoutesByFullPath: FileRoutesByFullPath
Expand All @@ -196,6 +259,7 @@ export interface FileRouteTypes {
| '/blog'
| '/confidentialite'
| '/deputes'
| '/developers'
| '/groupes'
| '/legislature-16'
| '/recherche'
Expand All @@ -210,12 +274,19 @@ export interface FileRouteTypes {
| '/groupes/$sigle'
| '/scrutin/$numero'
| '/blog/'
| '/api/v1/deputes'
| '/api/v1/groupes'
| '/api/v1/scrutins'
| '/api/v1/'
| '/api/v1/keys/create'
| '/api/v1/scrutins/$numero'
fileRoutesByTo: FileRoutesByTo
to:
| '/'
| '/a-propos'
| '/confidentialite'
| '/deputes'
| '/developers'
| '/groupes'
| '/legislature-16'
| '/recherche'
Expand All @@ -230,13 +301,20 @@ export interface FileRouteTypes {
| '/groupes/$sigle'
| '/scrutin/$numero'
| '/blog'
| '/api/v1/deputes'
| '/api/v1/groupes'
| '/api/v1/scrutins'
| '/api/v1'
| '/api/v1/keys/create'
| '/api/v1/scrutins/$numero'
id:
| '__root__'
| '/'
| '/a-propos'
| '/blog'
| '/confidentialite'
| '/deputes'
| '/developers'
| '/groupes'
| '/legislature-16'
| '/recherche'
Expand All @@ -251,6 +329,12 @@ export interface FileRouteTypes {
| '/groupes/$sigle'
| '/scrutin/$numero'
| '/blog/'
| '/api/v1/deputes'
| '/api/v1/groupes'
| '/api/v1/scrutins'
| '/api/v1/'
| '/api/v1/keys/create'
| '/api/v1/scrutins/$numero'
fileRoutesById: FileRoutesById
}
export interface RootRouteChildren {
Expand All @@ -259,6 +343,7 @@ export interface RootRouteChildren {
BlogRoute: typeof BlogRouteWithChildren
ConfidentialiteRoute: typeof ConfidentialiteRoute
DeputesRoute: typeof DeputesRoute
DevelopersRoute: typeof DevelopersRoute
GroupesRoute: typeof GroupesRouteWithChildren
Legislature16Route: typeof Legislature16Route
RechercheRoute: typeof RechercheRoute
Expand All @@ -270,6 +355,11 @@ export interface RootRouteChildren {
ApiVisitsRoute: typeof ApiVisitsRoute
DeputeSlugRoute: typeof DeputeSlugRoute
ScrutinNumeroRoute: typeof ScrutinNumeroRoute
ApiV1DeputesRoute: typeof ApiV1DeputesRoute
ApiV1GroupesRoute: typeof ApiV1GroupesRoute
ApiV1ScrutinsRoute: typeof ApiV1ScrutinsRouteWithChildren
ApiV1IndexRoute: typeof ApiV1IndexRoute
ApiV1KeysCreateRoute: typeof ApiV1KeysCreateRoute
}

declare module '@tanstack/react-router' {
Expand Down Expand Up @@ -309,6 +399,13 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof GroupesRouteImport
parentRoute: typeof rootRouteImport
}
'/developers': {
id: '/developers'
path: '/developers'
fullPath: '/developers'
preLoaderRoute: typeof DevelopersRouteImport
parentRoute: typeof rootRouteImport
}
'/deputes': {
id: '/deputes'
path: '/deputes'
Expand Down Expand Up @@ -407,6 +504,48 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof ApiAiChatRouteImport
parentRoute: typeof rootRouteImport
}
'/api/v1/': {
id: '/api/v1/'
path: '/api/v1'
fullPath: '/api/v1/'
preLoaderRoute: typeof ApiV1IndexRouteImport
parentRoute: typeof rootRouteImport
}
'/api/v1/scrutins': {
id: '/api/v1/scrutins'
path: '/api/v1/scrutins'
fullPath: '/api/v1/scrutins'
preLoaderRoute: typeof ApiV1ScrutinsRouteImport
parentRoute: typeof rootRouteImport
}
'/api/v1/groupes': {
id: '/api/v1/groupes'
path: '/api/v1/groupes'
fullPath: '/api/v1/groupes'
preLoaderRoute: typeof ApiV1GroupesRouteImport
parentRoute: typeof rootRouteImport
}
'/api/v1/deputes': {
id: '/api/v1/deputes'
path: '/api/v1/deputes'
fullPath: '/api/v1/deputes'
preLoaderRoute: typeof ApiV1DeputesRouteImport
parentRoute: typeof rootRouteImport
}
'/api/v1/scrutins/$numero': {
id: '/api/v1/scrutins/$numero'
path: '/$numero'
fullPath: '/api/v1/scrutins/$numero'
preLoaderRoute: typeof ApiV1ScrutinsNumeroRouteImport
parentRoute: typeof ApiV1ScrutinsRoute
}
'/api/v1/keys/create': {
id: '/api/v1/keys/create'
path: '/api/v1/keys/create'
fullPath: '/api/v1/keys/create'
preLoaderRoute: typeof ApiV1KeysCreateRouteImport
parentRoute: typeof rootRouteImport
}
}
}

Expand All @@ -433,12 +572,25 @@ const GroupesRouteChildren: GroupesRouteChildren = {
const GroupesRouteWithChildren =
GroupesRoute._addFileChildren(GroupesRouteChildren)

interface ApiV1ScrutinsRouteChildren {
ApiV1ScrutinsNumeroRoute: typeof ApiV1ScrutinsNumeroRoute
}

const ApiV1ScrutinsRouteChildren: ApiV1ScrutinsRouteChildren = {
ApiV1ScrutinsNumeroRoute: ApiV1ScrutinsNumeroRoute,
}

const ApiV1ScrutinsRouteWithChildren = ApiV1ScrutinsRoute._addFileChildren(
ApiV1ScrutinsRouteChildren,
)

const rootRouteChildren: RootRouteChildren = {
IndexRoute: IndexRoute,
AProposRoute: AProposRoute,
BlogRoute: BlogRouteWithChildren,
ConfidentialiteRoute: ConfidentialiteRoute,
DeputesRoute: DeputesRoute,
DevelopersRoute: DevelopersRoute,
GroupesRoute: GroupesRouteWithChildren,
Legislature16Route: Legislature16Route,
RechercheRoute: RechercheRoute,
Expand All @@ -450,6 +602,11 @@ const rootRouteChildren: RootRouteChildren = {
ApiVisitsRoute: ApiVisitsRoute,
DeputeSlugRoute: DeputeSlugRoute,
ScrutinNumeroRoute: ScrutinNumeroRoute,
ApiV1DeputesRoute: ApiV1DeputesRoute,
ApiV1GroupesRoute: ApiV1GroupesRoute,
ApiV1ScrutinsRoute: ApiV1ScrutinsRouteWithChildren,
ApiV1IndexRoute: ApiV1IndexRoute,
ApiV1KeysCreateRoute: ApiV1KeysCreateRoute,
}
export const routeTree = rootRouteImport
._addFileChildren(rootRouteChildren)
Expand Down
Loading
Loading