Fixed enum

pull/9078/head
Syed Ali Shahbaz 2022-05-26 12:25:13 +05:30 committed by Agusti Fernandez Pardo
parent 81793aebcd
commit c185883e5a
1 changed files with 6 additions and 1 deletions

View File

@ -1,8 +1,13 @@
import { z } from "zod"; import { z } from "zod";
import { WebhookTriggerEvents } from "@calcom/prisma/client";
import { _WebhookModel as Webhook } from "@calcom/prisma/zod"; import { _WebhookModel as Webhook } from "@calcom/prisma/zod";
export const WebhookTriggerEvents: {
BOOKING_CREATED: 'BOOKING_CREATED',
BOOKING_RESCHEDULED: 'BOOKING_RESCHEDULED',
BOOKING_CANCELLED: 'BOOKING_CANCELLED'
};
export const WEBHOOK_TRIGGER_EVENTS = [ export const WEBHOOK_TRIGGER_EVENTS = [
WebhookTriggerEvents.BOOKING_CANCELLED, WebhookTriggerEvents.BOOKING_CANCELLED,
WebhookTriggerEvents.BOOKING_CREATED, WebhookTriggerEvents.BOOKING_CREATED,