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:
Anton Gunnarsson
2025-03-04 08:00:33 +00:00
parent c2c3becc96
commit 00fa7819b4
9 changed files with 50 additions and 26 deletions

View File

@@ -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[]