2023-05-09 19:27:05 +00:00
|
|
|
import z from "zod";
|
|
|
|
|
|
|
|
import { RoutingFormSettings } from "@calcom/prisma/zod-utils";
|
|
|
|
|
|
|
|
import { zodFields, zodRoutes } from "../zod";
|
|
|
|
|
|
|
|
export const ZFormMutationInputSchema = z.object({
|
|
|
|
id: z.string(),
|
|
|
|
name: z.string(),
|
|
|
|
description: z.string().nullable().optional(),
|
|
|
|
disabled: z.boolean().optional(),
|
|
|
|
fields: zodFields,
|
|
|
|
routes: zodRoutes,
|
|
|
|
addFallback: z.boolean().optional(),
|
|
|
|
duplicateFrom: z.string().nullable().optional(),
|
2023-06-15 08:58:07 +00:00
|
|
|
teamId: z.number().nullish().default(null),
|
2023-05-09 19:27:05 +00:00
|
|
|
shouldConnect: z.boolean().optional(),
|
|
|
|
settings: RoutingFormSettings.optional(),
|
|
|
|
});
|
|
|
|
|
|
|
|
export type TFormMutationInputSchema = z.infer<typeof ZFormMutationInputSchema>;
|