42 lines
827 B
TypeScript
42 lines
827 B
TypeScript
export interface CalendarEvent {
|
|
name: string,
|
|
start: Date,
|
|
end: Date,
|
|
location: string,
|
|
color: string,
|
|
description: string,
|
|
creator: any | null, // user object
|
|
id: number | null
|
|
}
|
|
|
|
export enum CalendarAttendance {
|
|
Attending = "attending",
|
|
NotAttending = "not_attending",
|
|
Maybe = "maybe"
|
|
}
|
|
|
|
export interface CalendarSignup {
|
|
memberID: number,
|
|
eventID: number,
|
|
state: CalendarAttendance
|
|
}
|
|
|
|
export async function createCalendarEvent(eventData: CalendarEvent) {
|
|
|
|
}
|
|
|
|
export async function editCalendarEvent(eventData: CalendarEvent) {
|
|
|
|
}
|
|
|
|
export async function cancelCalendarEvent(eventID: number) {
|
|
|
|
}
|
|
|
|
export async function adminCancelCalendarEvent(eventID: number) {
|
|
|
|
}
|
|
|
|
export async function setCalendarEventAttendance(eventID: number, state: CalendarAttendance) {
|
|
|
|
} |