* On booking add team members & translation * Add team members to round robin create * Only update calendars on reschedule if there is a calendar reference * Send email on reschedules * Send team email on cancelled event * Add team members to calendar event description * Clean up * Convert other emails to organizer & teams * Type check fixes * More type fixes * Change organizer scheduled input to an object * early return updateCalendarEvent * Introduce team member type * Fix type errors * Put team members before attendees * Remove lodash cloneDeep * Update packages/core/EventManager.ts Co-authored-by: Omar López <zomars@me.com> * Remove booking select object * Revert "Remove booking select object" This reverts commit 9f121ff4ebbaec9a0643111f96c5337b930ddd5b. * Refactor email manager (#7270) Co-authored-by: zomars <zomars@me.com> * Type change * Remove conditional check for updateAllCalendarEvents --------- Co-authored-by: zomars <zomars@me.com>
40 lines
1.0 KiB
TypeScript
40 lines
1.0 KiB
TypeScript
import type { 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: Person[] };
|
|
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 };
|