Merged in feat/sw-1975-get-profile-v2 (pull request #1651)
Use get Profile V2 endpoint Approved-by: Linus Flood
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
export type PointsColumnProps = {
|
||||
title: string
|
||||
subtitle?: string
|
||||
value?: number
|
||||
value?: number | null
|
||||
}
|
||||
|
||||
@@ -3,9 +3,12 @@ import type { z } from "zod"
|
||||
import type { RouterOutput } from "@/lib/trpc/client"
|
||||
import type {
|
||||
creditCardSchema,
|
||||
friendsMembershipSchema,
|
||||
getUserSchema,
|
||||
membershipSchema,
|
||||
sasMembershipSchema,
|
||||
userLoyaltySchema,
|
||||
} from "@/server/routers/user/output"
|
||||
import type { getFriendsMembership } from "@/utils/user"
|
||||
|
||||
/**
|
||||
* All extended field needs to be added by API team to response or
|
||||
@@ -17,6 +20,12 @@ export type SafeUser = RouterOutput["user"]["getSafely"]
|
||||
|
||||
export type CreditCard = z.output<typeof creditCardSchema>
|
||||
|
||||
export type Membership = z.output<typeof membershipSchema>
|
||||
export type UserLoyalty = z.output<typeof userLoyaltySchema>
|
||||
|
||||
export type Memberships = Membership[]
|
||||
export type Membership = UserLoyalty["memberships"][number]
|
||||
export type NativeFriendsMembership = z.output<typeof friendsMembershipSchema>
|
||||
export type EurobonusMembership = z.output<typeof sasMembershipSchema>
|
||||
|
||||
export type FriendsMembership = ReturnType<typeof getFriendsMembership>
|
||||
|
||||
export type EurobonusTier = EurobonusMembership["tier"]
|
||||
|
||||
Reference in New Issue
Block a user