26 lines
655 B
TypeScript
26 lines
655 B
TypeScript
import { z } from "zod"
|
|
|
|
import { countriesMap } from "@/components/TempDesignSystem/Form/Country/countries"
|
|
|
|
export const getUserSchema = z.object({
|
|
address: z.object({
|
|
city: z.string().optional(),
|
|
country: z.nativeEnum(countriesMap),
|
|
streetAddress: z.string().optional(),
|
|
zipCode: z.string(),
|
|
}),
|
|
dateOfBirth: z.string(),
|
|
email: z.string().email(),
|
|
name: z.string(),
|
|
language: z.string(),
|
|
lastName: z.string(),
|
|
membership: z.object({
|
|
currentPoints: z.number(),
|
|
expirationDate: z.string(),
|
|
membershipNumber: z.string(),
|
|
memberSince: z.string(),
|
|
}),
|
|
phoneNumber: z.string(),
|
|
profileId: z.string(),
|
|
})
|