Skip to content

Email for professionals and teams

556 B
Raw Blame
export type BookingEventInput = {
	name: string;
	slug: string;
	description: string;
	color: string;
	hostIds: string[];
	durationMinutes: number;
	location: string;
	weekdays: number[];
	startTime: string;
	endTime: string;
	timeRanges: BookingTimeRange[];
	timeZone: string;
	enabled: boolean;
};

export type BookingTimeRange = { startTime: string; endTime: string };

export type BookingEventRecord = BookingEventInput & {
	id: string;
	userId: string;
};

export type ExistingCalendarEvent = typeof import("@/db/schema").calendarEvents.$inferSelect;