feat(WEB-169): get profile data from API

This commit is contained in:
Simon Emanuelsson
2024-04-16 12:42:44 +02:00
parent d2c1887179
commit 55794034c5
44 changed files with 632 additions and 607 deletions

View File

@@ -24,16 +24,15 @@ type Victory = {
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> {
country: string
dob: string
firstname: string
firstName: string
journeys: Journey[]
lastname: string
membershipId: number
nights: number
points: number
qualifyingPoints: number
shortcuts: ShortcutLink[]
stays: Stay[]
victories: Victory[]