- Implemented complex member and invitation schemas using Zod for validation. - Created new API endpoints for inviting, accepting, revoking, and canceling complex user invitations. - Developed handlers for managing complex users, including listing, inviting, revoking, and canceling invitations. - Added frontend components for displaying and managing complex users and invitations. - Introduced session storage management for pending invitations. - Integrated Gravatar for user avatars based on email. - Created database migration for complex invitations table.
491 lines
17 KiB
TypeScript
491 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 { Route as rootRouteImport } from './routes/__root'
|
|
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 OnboardIndexRouteImport } from './routes/onboard/index'
|
|
import { Route as OnboardVerifyEmailRouteImport } from './routes/onboard/verify-email'
|
|
import { Route as OnboardVerifyRouteImport } from './routes/onboard/verify'
|
|
import { Route as OnboardCreateComplexRouteImport } from './routes/onboard/create-complex'
|
|
import { Route as OnboardCompleteRouteImport } from './routes/onboard/complete'
|
|
import { Route as AppProfileRouteImport } from './routes/_app/profile'
|
|
import { Route as AppAboutRouteImport } from './routes/_app/about'
|
|
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 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 OnboardIndexRoute = OnboardIndexRouteImport.update({
|
|
id: '/',
|
|
path: '/',
|
|
getParentRoute: () => OnboardRoute,
|
|
} as any)
|
|
const OnboardVerifyEmailRoute = OnboardVerifyEmailRouteImport.update({
|
|
id: '/verify-email',
|
|
path: '/verify-email',
|
|
getParentRoute: () => OnboardRoute,
|
|
} as any)
|
|
const OnboardVerifyRoute = OnboardVerifyRouteImport.update({
|
|
id: '/verify',
|
|
path: '/verify',
|
|
getParentRoute: () => OnboardRoute,
|
|
} as any)
|
|
const OnboardCreateComplexRoute = OnboardCreateComplexRouteImport.update({
|
|
id: '/create-complex',
|
|
path: '/create-complex',
|
|
getParentRoute: () => OnboardRoute,
|
|
} as any)
|
|
const OnboardCompleteRoute = OnboardCompleteRouteImport.update({
|
|
id: '/complete',
|
|
path: '/complete',
|
|
getParentRoute: () => OnboardRoute,
|
|
} as any)
|
|
const AppProfileRoute = AppProfileRouteImport.update({
|
|
id: '/profile',
|
|
path: '/profile',
|
|
getParentRoute: () => AppRouteRoute,
|
|
} as any)
|
|
const AppAboutRoute = AppAboutRouteImport.update({
|
|
id: '/about',
|
|
path: '/about',
|
|
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
|
|
'/$complexSlug/booking': typeof ComplexSlugBookingRouteWithChildren
|
|
'/about': typeof AppAboutRoute
|
|
'/profile': typeof AppProfileRoute
|
|
'/onboard/complete': typeof OnboardCompleteRoute
|
|
'/onboard/create-complex': typeof OnboardCreateComplexRoute
|
|
'/onboard/verify': typeof OnboardVerifyRoute
|
|
'/onboard/verify-email': typeof OnboardVerifyEmailRoute
|
|
'/onboard/': typeof OnboardIndexRoute
|
|
'/$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
|
|
'/reset-password': typeof ResetPasswordRoute
|
|
'/select-complex': typeof SelectComplexRoute
|
|
'/about': typeof AppAboutRoute
|
|
'/profile': typeof AppProfileRoute
|
|
'/onboard/complete': typeof OnboardCompleteRoute
|
|
'/onboard/create-complex': typeof OnboardCreateComplexRoute
|
|
'/onboard/verify': typeof OnboardVerifyRoute
|
|
'/onboard/verify-email': typeof OnboardVerifyEmailRoute
|
|
'/onboard': typeof OnboardIndexRoute
|
|
'/$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
|
|
'/_app/_authenticated': typeof AppAuthenticatedRouteRouteWithChildren
|
|
'/$complexSlug/booking': typeof ComplexSlugBookingRouteWithChildren
|
|
'/_app/about': typeof AppAboutRoute
|
|
'/_app/profile': typeof AppProfileRoute
|
|
'/onboard/complete': typeof OnboardCompleteRoute
|
|
'/onboard/create-complex': typeof OnboardCreateComplexRoute
|
|
'/onboard/verify': typeof OnboardVerifyRoute
|
|
'/onboard/verify-email': typeof OnboardVerifyEmailRoute
|
|
'/onboard/': typeof OnboardIndexRoute
|
|
'/$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'
|
|
| '/$complexSlug/booking'
|
|
| '/about'
|
|
| '/profile'
|
|
| '/onboard/complete'
|
|
| '/onboard/create-complex'
|
|
| '/onboard/verify'
|
|
| '/onboard/verify-email'
|
|
| '/onboard/'
|
|
| '/$complexSlug/booking/'
|
|
| '/$complexSlug/booking/confirmed/$bookingCode'
|
|
| '/complex/$slug/edit'
|
|
fileRoutesByTo: FileRoutesByTo
|
|
to:
|
|
| '/'
|
|
| '/auth-callback'
|
|
| '/invite'
|
|
| '/login'
|
|
| '/reset-password'
|
|
| '/select-complex'
|
|
| '/about'
|
|
| '/profile'
|
|
| '/onboard/complete'
|
|
| '/onboard/create-complex'
|
|
| '/onboard/verify'
|
|
| '/onboard/verify-email'
|
|
| '/onboard'
|
|
| '/$complexSlug/booking'
|
|
| '/$complexSlug/booking/confirmed/$bookingCode'
|
|
| '/complex/$slug/edit'
|
|
id:
|
|
| '__root__'
|
|
| '/_app'
|
|
| '/auth-callback'
|
|
| '/invite'
|
|
| '/login'
|
|
| '/onboard'
|
|
| '/reset-password'
|
|
| '/select-complex'
|
|
| '/_app/_authenticated'
|
|
| '/$complexSlug/booking'
|
|
| '/_app/about'
|
|
| '/_app/profile'
|
|
| '/onboard/complete'
|
|
| '/onboard/create-complex'
|
|
| '/onboard/verify'
|
|
| '/onboard/verify-email'
|
|
| '/onboard/'
|
|
| '/$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
|
|
ComplexSlugBookingRoute: typeof ComplexSlugBookingRouteWithChildren
|
|
}
|
|
|
|
declare module '@tanstack/react-router' {
|
|
interface FileRoutesByPath {
|
|
'/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/': {
|
|
id: '/onboard/'
|
|
path: '/'
|
|
fullPath: '/onboard/'
|
|
preLoaderRoute: typeof OnboardIndexRouteImport
|
|
parentRoute: typeof OnboardRoute
|
|
}
|
|
'/onboard/verify-email': {
|
|
id: '/onboard/verify-email'
|
|
path: '/verify-email'
|
|
fullPath: '/onboard/verify-email'
|
|
preLoaderRoute: typeof OnboardVerifyEmailRouteImport
|
|
parentRoute: typeof OnboardRoute
|
|
}
|
|
'/onboard/verify': {
|
|
id: '/onboard/verify'
|
|
path: '/verify'
|
|
fullPath: '/onboard/verify'
|
|
preLoaderRoute: typeof OnboardVerifyRouteImport
|
|
parentRoute: typeof OnboardRoute
|
|
}
|
|
'/onboard/create-complex': {
|
|
id: '/onboard/create-complex'
|
|
path: '/create-complex'
|
|
fullPath: '/onboard/create-complex'
|
|
preLoaderRoute: typeof OnboardCreateComplexRouteImport
|
|
parentRoute: typeof OnboardRoute
|
|
}
|
|
'/onboard/complete': {
|
|
id: '/onboard/complete'
|
|
path: '/complete'
|
|
fullPath: '/onboard/complete'
|
|
preLoaderRoute: typeof OnboardCompleteRouteImport
|
|
parentRoute: typeof OnboardRoute
|
|
}
|
|
'/_app/profile': {
|
|
id: '/_app/profile'
|
|
path: '/profile'
|
|
fullPath: '/profile'
|
|
preLoaderRoute: typeof AppProfileRouteImport
|
|
parentRoute: typeof AppRouteRoute
|
|
}
|
|
'/_app/about': {
|
|
id: '/_app/about'
|
|
path: '/about'
|
|
fullPath: '/about'
|
|
preLoaderRoute: typeof AppAboutRouteImport
|
|
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
|
|
AppAboutRoute: typeof AppAboutRoute
|
|
AppProfileRoute: typeof AppProfileRoute
|
|
}
|
|
|
|
const AppRouteRouteChildren: AppRouteRouteChildren = {
|
|
AppAuthenticatedRouteRoute: AppAuthenticatedRouteRouteWithChildren,
|
|
AppAboutRoute: AppAboutRoute,
|
|
AppProfileRoute: AppProfileRoute,
|
|
}
|
|
|
|
const AppRouteRouteWithChildren = AppRouteRoute._addFileChildren(
|
|
AppRouteRouteChildren,
|
|
)
|
|
|
|
interface OnboardRouteChildren {
|
|
OnboardCompleteRoute: typeof OnboardCompleteRoute
|
|
OnboardCreateComplexRoute: typeof OnboardCreateComplexRoute
|
|
OnboardVerifyRoute: typeof OnboardVerifyRoute
|
|
OnboardVerifyEmailRoute: typeof OnboardVerifyEmailRoute
|
|
OnboardIndexRoute: typeof OnboardIndexRoute
|
|
}
|
|
|
|
const OnboardRouteChildren: OnboardRouteChildren = {
|
|
OnboardCompleteRoute: OnboardCompleteRoute,
|
|
OnboardCreateComplexRoute: OnboardCreateComplexRoute,
|
|
OnboardVerifyRoute: OnboardVerifyRoute,
|
|
OnboardVerifyEmailRoute: OnboardVerifyEmailRoute,
|
|
OnboardIndexRoute: OnboardIndexRoute,
|
|
}
|
|
|
|
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,
|
|
ComplexSlugBookingRoute: ComplexSlugBookingRouteWithChildren,
|
|
}
|
|
export const routeTree = rootRouteImport
|
|
._addFileChildren(rootRouteChildren)
|
|
._addFileTypes<FileRouteTypes>()
|