* trpc procedures an middleware refactor * allow use sessionMiddleware without a req object * sync with the new tRPC structure * tRPC refactor on routing form app * import Prisma from @prisma/client * Lazy load apps from appstore * remove unrelated changes * Add types for PaymentService * type fixes * Merge branch 'main' into roae85/cal-1514-set-the-user-session-only-on-the * fix typo * remove console.log * remove explicit types from apstore object * linter fixes --------- Co-authored-by: Keith Williams <keithwillcode@gmail.com> Co-authored-by: Hariom Balhara <hariombalhara@gmail.com>
21 lines
612 B
TypeScript
21 lines
612 B
TypeScript
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(),
|
|
shouldConnect: z.boolean().optional(),
|
|
settings: RoutingFormSettings.optional(),
|
|
});
|
|
|
|
export type TFormMutationInputSchema = z.infer<typeof ZFormMutationInputSchema>;
|