diff options
Diffstat (limited to 'src/types.ts')
-rw-r--r-- | src/types.ts | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/src/types.ts b/src/types.ts index 7243934..a239702 100644 --- a/src/types.ts +++ b/src/types.ts @@ -8,15 +8,19 @@ export interface User extends Base { username: string; } +export interface EventContext { + participants: string[]; + conferenceId: string; + attendanceId: string; +} + export interface Event extends Base { - status?: 'running' | 'complete' | 'failed'; + name: string; + schedule: string; + status?: 'running' | 'complete' | 'failed' | 'notStarted'; failReason?: string; - data: { - name: string; - participants: string[]; - date: string; - conferenceId: string; - attendanceId: string; - } + context: EventContext; + nextRunAt: string; + lastRunAt: string; } |