Files
calendar/packages/core/builders/CalendarEvent/class.ts
T
6d79f80928 refactor: use BookingReference instead of DailyEventReference (#3667)
* refactor: use BookingReference instead of DailyEventReference

* refactor: migrate DailyEventReference records to BookingReference

* refactor: drop DailyEventReference table

* fix linting

* Daily Video API adapter fixes

Co-authored-by: zomars <zomars@me.com>
2022-08-10 18:53:05 -06:00

40 lines
1.0 KiB
TypeScript

import { DestinationCalendar } from "@prisma/client";
import type {
AdditionalInformation,
CalendarEvent,
ConferenceData,
Person,
VideoCallData,
} from "@calcom/types/Calendar";
class CalendarEventClass implements CalendarEvent {
type!: string;
title!: string;
startTime!: string;
endTime!: string;
organizer!: Person;
attendees!: Person[];
description?: string | null;
team?: { name: string; members: string[] };
location?: string | null;
conferenceData?: ConferenceData;
additionalInformation?: AdditionalInformation;
uid?: string | null;
videoCallData?: VideoCallData;
paymentInfo?: any;
destinationCalendar?: DestinationCalendar | null;
cancellationReason?: string | null;
rejectionReason?: string | null;
hideCalendarNotes?: boolean;
additionalNotes?: string | null | undefined;
recurrence?: string;
constructor(initProps?: CalendarEvent) {
// If more parameters are given we update this
Object.assign(this, initProps);
}
}
export { CalendarEventClass };