Merged in feat/membership-schema-update (pull request #1459)
Update membership schema to adapt for API changes Approved-by: Michael Zetterberg
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
import { z } from "zod"
|
||||
import type { z } from "zod"
|
||||
|
||||
import {
|
||||
import type { RouterOutput } from "@/lib/trpc/client"
|
||||
import type {
|
||||
creditCardSchema,
|
||||
getUserSchema,
|
||||
membershipSchema,
|
||||
} from "@/server/routers/user/output"
|
||||
|
||||
import type { RouterOutput } from "@/lib/trpc/client"
|
||||
|
||||
/**
|
||||
* All extended field needs to be added by API team to response or
|
||||
* we have to get the values from elsewhere
|
||||
@@ -18,6 +17,6 @@ export type SafeUser = RouterOutput["user"]["getSafely"]
|
||||
|
||||
export type CreditCard = z.output<typeof creditCardSchema>
|
||||
|
||||
export interface Membership extends z.output<typeof membershipSchema> {}
|
||||
export type Membership = z.output<typeof membershipSchema>
|
||||
|
||||
export type Memberships = Membership[]
|
||||
|
||||
Reference in New Issue
Block a user