calcom/lib/types/booking.ts
2021-12-03 16:18:31 +00:00

30 lines
598 B
TypeScript

import { Attendee, Booking } from "@prisma/client";
export type BookingConfirmBody = {
confirmed: boolean;
id: number;
};
export type BookingCreateBody = {
email: string;
end: string;
eventTypeId: number;
guests?: string[];
location: string;
name: string;
notes?: string;
rescheduleUid?: string;
start: string;
timeZone: string;
user?: string | string[];
language: string;
customInputs: { label: string; value: string }[];
metadata: {
[key: string]: string;
};
};
export type BookingResponse = Booking & {
paymentUid?: string;
attendees: Attendee[];
};