30 lines
598 B
TypeScript
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[];
|
|
};
|