add calendarview event creation

This commit is contained in:
Schneider Roland
2025-11-23 22:26:16 +01:00
parent 008b644bb1
commit 6b975dadac
24 changed files with 583 additions and 31 deletions

View File

@@ -0,0 +1,22 @@
import { Event } from '../../events/models/event.model';
export interface EventsInRangeDTO {
startTime?: Date;
endTime?: Date;
}
export type BookingUserDto = {
id: number;
name: string; // Assuming user has a 'name' property
email: string; // Assuming user has a 'name' property
};
// This represents a booking with nested user info
export type BookingWithUserDto = {
user: BookingUserDto | null;
id: number;
};
// The final shape of a calendar event occurrence
export type CalendarEventDto = Omit<Event, 'bookings'> & {
isModified?: boolean;
eventBookings: BookingWithUserDto[];
};