mirror of
https://github.com/hanzoai/calendar.git
synced 2026-10-30 14:46:43 +00:00
36 lines
944 B
TypeScript
36 lines
944 B
TypeScript
/**
|
|
* Domain types for Booking Cancellation Service
|
|
* These types are framework-agnostic and contain only the data required for booking cancellation operations
|
|
*/
|
|
import type { z } from "zod";
|
|
|
|
import type { bookingCancelInput } from "@calcom/prisma/zod-utils";
|
|
|
|
/**
|
|
* The booking data required for cancellation
|
|
*/
|
|
export type CancelRegularBookingData = z.infer<typeof bookingCancelInput>;
|
|
|
|
/**
|
|
* Additional metadata for booking cancellation, typically used for platform integrations
|
|
*/
|
|
export type CancelBookingMeta = {
|
|
userId?: number;
|
|
platformClientId?: string;
|
|
platformRescheduleUrl?: string;
|
|
platformCancelUrl?: string;
|
|
platformBookingUrl?: string;
|
|
arePlatformEmailsEnabled?: boolean;
|
|
};
|
|
|
|
/**
|
|
* The response returned after attempting to cancel a booking
|
|
*/
|
|
export type HandleCancelBookingResponse = {
|
|
success: boolean;
|
|
message: string;
|
|
onlyRemovedAttendee: boolean;
|
|
bookingId: number;
|
|
bookingUid: string;
|
|
};
|