cal.pub0.org/packages/trpc/server/routers/viewer/webhook/delete.schema.ts

12 lines
320 B
TypeScript

import { z } from "zod";
import { webhookIdAndEventTypeIdSchema } from "./types";
export const ZDeleteInputSchema = webhookIdAndEventTypeIdSchema.extend({
id: z.string(),
eventTypeId: z.number().optional(),
teamId: z.number().optional(),
});
export type TDeleteInputSchema = z.infer<typeof ZDeleteInputSchema>;