Fix customerSchema

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

View File

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