Files
web/types/user.ts
Michael Zetterberg d7766a89de Revert "feat: use v1 profile api"
This reverts commit 61e6d7ee39 and 2cfdbc19a9.
2024-05-21 15:58:30 +02:00

31 lines
536 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
}
type Victory = {
tag: string
title: string
}
/**
* All extended field needs to be added by API team to response or
* we have to get the values from elsewhere
*/
export interface User extends z.infer<typeof getUserSchema> {
firstName: string
journeys: Journey[]
nights: number
shortcuts: ShortcutLink[]
victories: Victory[]
}