Fix customerSchema

This commit is contained in:
Lorenzo Stramaccia 2022-11-25 15:32:54 +01:00
parent 035334a439
commit fffb17977a

View File

@ -5,6 +5,7 @@ export const getCustomerAddressBodySchema = z.object({
})
export const customerSchema = z.object({
customer: z.object({
id: z.string(),
firstName: z.string(),
lastName: z.string(),
@ -14,6 +15,7 @@ export const customerSchema = z.object({
notes: z.string().optional(),
acceptsMarketing: z.boolean().optional(),
})
})
export const addressSchema = z.object({
id: z.string(),