
* Fixes error types * Type fixes * Refactors video meeting handling * More type fixes * Type fixes * More fixes * Makes language non optional * Adds missing translations * Apply suggestions from code review Co-authored-by: Alex Johansson <alexander@n1s.se> * Feedback Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> Co-authored-by: Alex Johansson <alexander@n1s.se>
28 lines
525 B
TypeScript
28 lines
525 B
TypeScript
import { Booking } from "@prisma/client";
|
|
|
|
import { LocationType } from "@lib/location";
|
|
|
|
export type BookingConfirmBody = {
|
|
confirmed: boolean;
|
|
id: number;
|
|
};
|
|
|
|
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;
|
|
language: string;
|
|
};
|
|
|
|
export type BookingResponse = Booking & {
|
|
paymentUid?: string;
|
|
};
|