import { z } from 'zod'; export const ProfileSchema = z.object({ email: z.string() }); export const CustomerFormCreateSchema = z.object({ type: z.string(), text: z.string() }); export type CustomerFormCreate = z.infer; export const CustomerFormUpdateSchema = z.object({ id: z.string(), type: z.string().optional(), text: z.string().optional() }); export type CustomerFormUpdate = z.infer; export const CustomerFormSchema = z.object({ id: z.string(), type: z.string(), text: z.string(), createdAt: z.string().transform(arg => new Date(arg)), updatedAt: z.string().transform(arg => new Date(arg)) }); export const CustomerFormListSchema = z.array(CustomerFormSchema); export type CustomerForm = z.infer; export const ApiResponseContextSchema = z.object({ params: z.object({ id: z.string(), type: z.string().optional(), text: z.string().optional() }) });