Files
web/types/user.ts
2024-04-02 13:43:23 +02:00

37 lines
575 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> {
journeys: Journey[]
membershipId: number
nights: number
points: number
qualifyingPoints: number
shortcuts: ShortcutLink[]
stays: Stay[]
victories: Victory[]
}