add calendarview event creation
This commit is contained in:
@@ -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[];
|
||||
};
|
||||
Reference in New Issue
Block a user