feat(SW-66, SW-348): search functionality and ui
This commit is contained in:
+6
-23
@@ -1,32 +1,15 @@
|
||||
import { z } from "zod"
|
||||
|
||||
import { creditCardSchema, getUserSchema } from "@/server/routers/user/output"
|
||||
|
||||
type Journey = {
|
||||
tag: string
|
||||
title: string
|
||||
}
|
||||
|
||||
type ShortcutLink = {
|
||||
href: string
|
||||
title: string
|
||||
}
|
||||
|
||||
type Victory = {
|
||||
tag: string
|
||||
title: string
|
||||
}
|
||||
import { creditCardSchema, getUserSchema, membershipSchema } from "@/server/routers/user/output"
|
||||
|
||||
/**
|
||||
* 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> {
|
||||
name: string
|
||||
journeys: Journey[]
|
||||
nights: number
|
||||
shortcuts: ShortcutLink[]
|
||||
victories: Victory[]
|
||||
}
|
||||
export interface User extends z.output<typeof getUserSchema> { }
|
||||
|
||||
export type CreditCard = z.output<typeof creditCardSchema>
|
||||
|
||||
export interface Membership extends z.output<typeof membershipSchema> { }
|
||||
|
||||
export type Memberships = Membership[]
|
||||
|
||||
Reference in New Issue
Block a user