built create event UI
This commit is contained in:
42
ui/src/api/calendar.ts
Normal file
42
ui/src/api/calendar.ts
Normal file
@@ -0,0 +1,42 @@
|
||||
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) {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user