aboutsummaryrefslogtreecommitdiff
path: root/src/types.ts
blob: a2397024f59a60c548b02b6684cac23c01395923 (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
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;
}