Files
web/types/user.ts
2024-04-16 09:24:31 +02:00

41 lines
646 B
TypeScript

import { z } from "zod"
import { getUserSchema } from "@/server/routers/user/output"
type Journey = {
tag: string
title: string
}
type ShortcutLink = {
href: string
title: string
}
export type Stay = {
dateArrive: Date
dateDepart: Date
guests: number
hotel: string
}
type Victory = {
tag: string
title: string
}
export interface User extends z.infer<typeof getUserSchema> {
country: string
dob: string
firstname: string
journeys: Journey[]
lastname: string
membershipId: number
nights: number
points: number
qualifyingPoints: number
shortcuts: ShortcutLink[]
stays: Stay[]
victories: Victory[]
}