diff options
author | eug-vs <eug-vs@keemail.me> | 2020-11-28 00:28:02 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-11-28 00:28:02 +0300 |
commit | b91bbecb1be55b96f92eaca6f4bb8d33982b0834 (patch) | |
tree | db236dcdb2393ae58bd62cadf57658ebaa49d66e /src/types.ts | |
parent | 270a348496ee4d001e3dc3776a67e8376ff40674 (diff) | |
download | famcs-kit-b91bbecb1be55b96f92eaca6f4bb8d33982b0834.tar.gz |
feat: match new event interface
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; } |