2023-05-02 11:44:05 +00:00
|
|
|
import { WebhookTriggerEvents } from "@calcom/prisma/enums";
|
2022-07-22 17:27:06 +00:00
|
|
|
|
|
|
|
// this is exported as we can't use `WebhookTriggerEvents` in the frontend straight-off
|
|
|
|
|
|
|
|
export const WEBHOOK_TRIGGER_EVENTS_GROUPED_BY_APP = {
|
|
|
|
core: [
|
|
|
|
WebhookTriggerEvents.BOOKING_CANCELLED,
|
|
|
|
WebhookTriggerEvents.BOOKING_CREATED,
|
|
|
|
WebhookTriggerEvents.BOOKING_RESCHEDULED,
|
2023-06-13 14:57:59 +00:00
|
|
|
WebhookTriggerEvents.BOOKING_PAID,
|
2022-08-15 20:18:41 +00:00
|
|
|
WebhookTriggerEvents.MEETING_ENDED,
|
2023-05-30 15:35:05 +00:00
|
|
|
WebhookTriggerEvents.BOOKING_REQUESTED,
|
|
|
|
WebhookTriggerEvents.BOOKING_REJECTED,
|
2023-05-10 14:56:31 +00:00
|
|
|
WebhookTriggerEvents.RECORDING_READY,
|
2022-08-15 20:18:41 +00:00
|
|
|
] as const,
|
2022-09-22 17:23:43 +00:00
|
|
|
"routing-forms": [WebhookTriggerEvents.FORM_SUBMITTED] as const,
|
2022-07-22 17:27:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export const WEBHOOK_TRIGGER_EVENTS = [
|
|
|
|
...WEBHOOK_TRIGGER_EVENTS_GROUPED_BY_APP.core,
|
2022-09-22 17:23:43 +00:00
|
|
|
...WEBHOOK_TRIGGER_EVENTS_GROUPED_BY_APP["routing-forms"],
|
2022-08-15 20:18:41 +00:00
|
|
|
] as const;
|