From db19bb3d51f1eb9cfe0cf916cc2428bb8095039d Mon Sep 17 00:00:00 2001 From: Dhairyashil Shinde <93669429+dhairyashiil@users.noreply.github.com> Date: Thu, 16 Oct 2025 13:37:49 +0530 Subject: [PATCH] feat: add booking uid to zapier payload (#24489) * feat: add booking uid to zapier payload * resolve type check error --------- Co-authored-by: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com> --- packages/features/webhooks/lib/scheduleTrigger.ts | 1 + packages/features/webhooks/lib/sendPayload.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/packages/features/webhooks/lib/scheduleTrigger.ts b/packages/features/webhooks/lib/scheduleTrigger.ts index efdb21c717..3d60ec3b56 100644 --- a/packages/features/webhooks/lib/scheduleTrigger.ts +++ b/packages/features/webhooks/lib/scheduleTrigger.ts @@ -205,6 +205,7 @@ export async function listBookings( id: "desc", }, select: { + uid: true, title: true, description: true, customInputs: true, diff --git a/packages/features/webhooks/lib/sendPayload.ts b/packages/features/webhooks/lib/sendPayload.ts index 18d6e8701a..f4b78ed349 100644 --- a/packages/features/webhooks/lib/sendPayload.ts +++ b/packages/features/webhooks/lib/sendPayload.ts @@ -78,6 +78,7 @@ export type OOOEntryPayloadType = { export type EventPayloadType = CalendarEvent & TranscriptionGeneratedPayload & EventTypeInfo & { + uid?: string | null; metadata?: { [key: string]: string | number | boolean | null }; bookingId?: number; status?: string; @@ -130,6 +131,7 @@ function getZapierPayload(data: WithUTCOffsetType