2021-09-22 18:36:13 +00:00
|
|
|
import { Booking } from "@prisma/client";
|
|
|
|
|
2021-09-22 19:52:38 +00:00
|
|
|
import { LocationType } from "@lib/location";
|
|
|
|
|
2021-09-22 18:36:13 +00:00
|
|
|
export type BookingCreateBody = {
|
|
|
|
email: string;
|
|
|
|
end: string;
|
|
|
|
eventTypeId: number;
|
|
|
|
guests: string[];
|
|
|
|
location?: LocationType;
|
|
|
|
name: string;
|
|
|
|
notes: string;
|
|
|
|
rescheduleUid?: string;
|
|
|
|
start: string;
|
|
|
|
timeZone: string;
|
|
|
|
users?: string[];
|
|
|
|
user?: string;
|
2021-10-25 13:05:21 +00:00
|
|
|
language: string;
|
2021-09-22 18:36:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export type BookingResponse = Booking & {
|
|
|
|
paymentUid?: string;
|
|
|
|
};
|