2
0
Files
cal/calcom/packages/app-store/routing-forms/trpc/response.schema.ts
2024-08-09 00:39:27 +02:00

15 lines
344 B
TypeScript

import { z } from "zod";
export const ZResponseInputSchema = z.object({
formId: z.string(),
formFillerId: z.string(),
response: z.record(
z.object({
label: z.string(),
value: z.union([z.string(), z.number(), z.array(z.string())]),
})
),
});
export type TResponseInputSchema = z.infer<typeof ZResponseInputSchema>;