Store a list of ids of events and slots that accounts have marked as being interested in, and show aggeregate counts in the schedule.
28 lines
463 B
TypeScript
28 lines
463 B
TypeScript
export interface ScheduleEvent {
|
|
name: string,
|
|
id: string,
|
|
host?: string,
|
|
cancelled?: boolean,
|
|
description?: string,
|
|
interested?: number,
|
|
slots: TimeSlot[],
|
|
}
|
|
|
|
export interface ScheduleLocation {
|
|
name: string,
|
|
id: string,
|
|
description?: string,
|
|
}
|
|
|
|
export interface TimeSlot {
|
|
id: string,
|
|
start: string,
|
|
end: string,
|
|
locations: string[],
|
|
interested?: number,
|
|
}
|
|
|
|
export interface Schedule {
|
|
locations: ScheduleLocation[],
|
|
events: ScheduleEvent[],
|
|
}
|