Merged in feat/basic-user (pull request #3135)
feat(SW-3610): Get basic user from api * feat(SW-3610): Get basic user from api * . * Optional profileid Approved-by: Anton Gunnarsson
This commit is contained in:
@@ -128,6 +128,30 @@ export const getUserSchema = z
|
||||
}
|
||||
})
|
||||
|
||||
export const getBasicUserSchema = z.object({
|
||||
dateOfBirth: z.string().optional().default("1900-01-01"),
|
||||
firstName: z.string(),
|
||||
language: z
|
||||
.string()
|
||||
.transform((s) => s.charAt(0).toUpperCase() + s.slice(1))
|
||||
.optional(),
|
||||
lastName: z.string(),
|
||||
phoneNumber: z.string().optional(),
|
||||
profileId: z.string().optional(),
|
||||
membershipNumber: z.string(),
|
||||
tier: scandicFriendsTier,
|
||||
address: z
|
||||
.object({
|
||||
city: z.string().optional(),
|
||||
country: z.string().optional(),
|
||||
countryCode: z.nativeEnum(countriesMap).optional(),
|
||||
streetAddress: z.string().optional(),
|
||||
zipCode: z.string().optional(),
|
||||
})
|
||||
.optional()
|
||||
.nullable(),
|
||||
})
|
||||
|
||||
export const creditCardSchema = z
|
||||
.object({
|
||||
attribute: z.object({
|
||||
|
||||
Reference in New Issue
Block a user