mirror of
https://github.com/hanzoai/calendar.git
synced 2026-09-24 22:42:24 +00:00
Co-authored-by: Peer Richelsen <[email protected]> Co-authored-by: Omar López <[email protected]>
17 lines
506 B
TypeScript
17 lines
506 B
TypeScript
import { z } from "zod";
|
|
|
|
import { WEBHOOK_TRIGGER_EVENTS } from "@calcom/features/webhooks/lib/constants";
|
|
|
|
import { webhookIdAndEventTypeIdSchema } from "./types";
|
|
|
|
export const ZListInputSchema = webhookIdAndEventTypeIdSchema
|
|
.extend({
|
|
appId: z.string().optional(),
|
|
teamId: z.number().optional(),
|
|
eventTypeId: z.number().optional(),
|
|
eventTriggers: z.enum(WEBHOOK_TRIGGER_EVENTS).array().optional(),
|
|
})
|
|
.optional();
|
|
|
|
export type TListInputSchema = z.infer<typeof ZListInputSchema>;
|