chore: add memberships "endoint"

This commit is contained in:
Matilda Landström
2024-06-14 10:35:41 +02:00
committed by Michael Zetterberg
parent f40a6d4288
commit 3e54d3c29e
10 changed files with 175 additions and 1 deletions

View File

@@ -181,3 +181,13 @@ export const getCreditCardsSchema = z.object({
})
),
})
export const getMembershipCardsSchema = z.array(
z.object({
currentPoints: z.number(),
expirationDate: z.string(),
membershipNumber: z.string(),
memberSince: z.string(),
membershipType: z.string(),
})
)