implement add event via fullcalendar

This commit is contained in:
Roland Schneider
2025-11-24 21:19:11 +01:00
parent 6b975dadac
commit 35a591fcf7
3 changed files with 78 additions and 42 deletions

View File

@@ -1,4 +1,5 @@
import { Event } from '../../events/models/event.model';
import { EventType } from '../../event-type/models/event-type.model';
export interface EventsInRangeDTO {
startTime?: Date;
endTime?: Date;
@@ -16,7 +17,13 @@ export type BookingWithUserDto = {
};
// The final shape of a calendar event occurrence
export type CalendarEventDto = Omit<Event, 'bookings'> & {
export type CalendarEventDto = {
title: string;
startTime: string,
endTime: string,
description: string,
isModified?: boolean;
eventBookings: BookingWithUserDto[];
eventType: EventType
};