refactor: v2 OAuth webhooks & workflows (#17959)
* refactor: handleMarkNoShow OAuth webhook handling * refactor: confirm / decline booking OAuth webhook handling * refactor: pass oauth client to calendar event * refactor: pass oauth params * fix import * fix tests * chore: bump libraries * chore: bump libraries * chore: republish platform libraries * chore: republish platform libraries * fix: use replexica key in v2 and unit test CI * lock file * fixup! Merge branch 'main' into lauris/cal-4807-platform-refactor-oauth-webhooks * Revert "fix: use replexica key in v2 and unit test CI" This reverts commit 0bd6c364535f9e11a4d1497a6bd8909885562080. --------- Co-authored-by: Morgan <[email protected]> Co-authored-by: Morgan Vernay <[email protected]>
This commit is contained in:
13 files changed
+5834
-107
No files matched your search
@@ -276,12 +276,23 @@ export const requiredCustomInputSchema = z.union([
|
||||
|
||||
export type BookingCreateBody = z.input<typeof bookingCreateBodySchema>;
|
||||
|
||||
const PlatformClientParamsSchema = z.object({
|
||||
platformClientId: z.string().optional(),
|
||||
platformRescheduleUrl: z.string().nullable().optional(),
|
||||
platformCancelUrl: z.string().nullable().optional(),
|
||||
platformBookingUrl: z.string().nullable().optional(),
|
||||
platformBookingLocation: z.string().optional(),
|
||||
});
|
||||
|
||||
export type PlatformClientParams = z.infer<typeof PlatformClientParamsSchema>;
|
||||
|
||||
export const bookingConfirmPatchBodySchema = z.object({
|
||||
bookingId: z.number(),
|
||||
confirmed: z.boolean(),
|
||||
recurringEventId: z.string().optional(),
|
||||
reason: z.string().optional(),
|
||||
emailsEnabled: z.boolean().default(true),
|
||||
platformClientParams: PlatformClientParamsSchema.optional(),
|
||||
});
|
||||
|
||||
// `responses` is merged with it during handleNewBooking call because `responses` schema is dynamic and depends on eventType
|
||||
|
||||
Reference in new issue
Block a user