Hooked up calendar viewing to API, still needs a lot more polish

This commit is contained in:
2025-11-23 17:00:47 -05:00
parent b8bf809c14
commit 531371d059
11 changed files with 312 additions and 240 deletions

36
shared/types/calendar.ts Normal file
View File

@@ -0,0 +1,36 @@
export interface CalendarEvent {
id: number;
name: string;
start: Date;
end: Date;
location: string;
color: string;
description: string;
creator_id: number;
cancelled: boolean;
created_at: Date;
updated_at: Date;
creator_name?: string | null;
eventSignups?: CalendarSignup[] | null;
}
export enum CalendarAttendance {
Attending = "attending",
NotAttending = "not_attending",
Maybe = "maybe"
}
export interface CalendarSignup {
memberID: number;
eventID: number;
state: CalendarAttendance;
}
export interface CalendarEventShort {
id: number;
name: string;
start: Date;
end: Date;
color: string;
}