From 449a1aff2f086db3b7dd074b95f42aff38873ac3 Mon Sep 17 00:00:00 2001 From: Andrei Luca <1881266+iamandrewluca@users.noreply.github.com> Date: Thu, 28 Nov 2024 17:13:34 +0200 Subject: [PATCH] add WebhookEventType --- types/index.ts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/types/index.ts b/types/index.ts index cae368e..0ae2ccc 100644 --- a/types/index.ts +++ b/types/index.ts @@ -5,3 +5,24 @@ export * as PaymentApi from './payment-transaction-api'; export * as PlannerApi from './planner-api-v1'; export * as TemplateApi from './template-api-v1'; export * as WebhookApi from './webhook-api-models-v1'; + +// TODO: Move it somehow in WebhookApi +export enum WebhookEventType { + COMPLETED = 'booking_completed', + REQUESTED = 'booking_requested', + CANCELLATION_INITIATED = 'cancellation_initiated', + CANCELLATION_IN_PROGRESS = 'cancellation_in_progress', + CANCELLATION_REQUESTED = 'cancellation_requested', + CANCELLATION_COMPLETED = 'cancellation_completed', + CHANGE_INITATED = 'booking_change_initiated', + CHANGE_REQUESTED = 'booking_change_requested', + CHANGE_COMPLETED = 'booking_change_completed', + MODIFIED = 'booking_modified', + PAX_CHANGED = 'pax_changed', + PAYMENT_ADDED = 'payment_added', + PAYMENT_DELETED = 'payment_deleted', + REFUND_ADDED = 'refund_added', + REFUND_CLOSED = 'refund_closed', + REFUND_DELETED = 'refund_deleted', + PING = 'ping', +}