aboutsummaryrefslogtreecommitdiff
path: root/src/types.ts
blob: 941bbbb7bd5be67ddcbb5b97872bfb0a3739e2c9 (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
27
28
29
30
31
interface Base {
  _id: string;
  createdAt: string;
  updatedAt: string;
}

export interface User extends Base {
  username: string;
}

export interface EventContext {
  participants: string[];
  conferenceId: string;
  attendanceId: string;
}

export interface Event extends Base {
  name: string;
  schedule: string;
  status?: 'running' | 'complete' | 'failed' | 'notStarted';
  failReason?: string;
  context: EventContext;
  nextRunAt: string;
  lastRunAt: string;
}

export interface Log extends Base {
  message: string;
  eventId: string;
}