feat: finish my pages overview page according to wireframe
This commit is contained in:
36
types/user.ts
Normal file
36
types/user.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
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[]
|
||||
}
|
||||
Reference in New Issue
Block a user