Skip to content

Commit db19bb3

Browse files
feat: add booking uid to zapier payload (calcom#24489)
* feat: add booking uid to zapier payload * resolve type check error --------- Co-authored-by: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com>
1 parent 9afdb1a commit db19bb3

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

packages/features/webhooks/lib/scheduleTrigger.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ export async function listBookings(
205205
id: "desc",
206206
},
207207
select: {
208+
uid: true,
208209
title: true,
209210
description: true,
210211
customInputs: true,

packages/features/webhooks/lib/sendPayload.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export type OOOEntryPayloadType = {
7878
export type EventPayloadType = CalendarEvent &
7979
TranscriptionGeneratedPayload &
8080
EventTypeInfo & {
81+
uid?: string | null;
8182
metadata?: { [key: string]: string | number | boolean | null };
8283
bookingId?: number;
8384
status?: string;
@@ -130,6 +131,7 @@ function getZapierPayload(data: WithUTCOffsetType<EventPayloadType & { createdAt
130131
const location = getHumanReadableLocationValue(data.location || "", t);
131132

132133
const body = {
134+
uid: data.uid,
133135
title: data.title,
134136
description: data.description,
135137
customInputs: data.customInputs,

0 commit comments

Comments
 (0)