From b91bbecb1be55b96f92eaca6f4bb8d33982b0834 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sat, 28 Nov 2020 00:28:02 +0300 Subject: feat: match new event interface --- src/types.ts | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'src/types.ts') 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; } -- cgit v1.2.3