summaryrefslogtreecommitdiffstats
path: root/src/features/reservations/types.ts
blob: e29354e53a74b4fcf5d6b8d23ba2802be4d48657 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
export type ReservationStatus = "active" | "completed" | "cancelled";

export type Reservation = {
  id: string;
  officeId: string;
  officeName: string;
  userId: string;
  userEmail: string;
  date: string;
  startTime: string;
  endTime: string;
  status: ReservationStatus;
  checkInAt?: unknown;
  createdAt?: unknown;
  lockIds?: string[];
};

export type CreateReservationInput = {
  officeId: string;
  officeName: string;
  userId: string;
  userEmail: string;
  date: string;
  startTime: string;
  endTime: string;
};