fix: Create separate calendar events to hide organizer (#21555)
* Add notes to `EventManager.create` * Create `CalendarServiceEvent` * Generate calendar description and remove attendees if event is private in `CalendarManager` * Process event for reschedule method * Refactor calendar services * Clean up comment * Type fixes * Type fix * Type fix
This commit is contained in:
1 parent
e5868837d5
commit
6f1eaaa02e
10 files changed
+121
-94
No files matched your search
Vendored
+6
-2
@@ -256,17 +256,21 @@ export interface IntegrationCalendar extends Ensure<Partial<_SelectedCalendar>,
|
||||
*/
|
||||
export type SelectedCalendarEventTypeIds = (number | null)[];
|
||||
|
||||
export interface CalendarServiceEvent extends CalendarEvent {
|
||||
calendarDescription: string;
|
||||
}
|
||||
|
||||
export interface Calendar {
|
||||
getCredentialId?(): number;
|
||||
createEvent(
|
||||
event: CalendarEvent,
|
||||
event: CalendarServiceEvent,
|
||||
credentialId: number,
|
||||
externalCalendarId?: string
|
||||
): Promise<NewCalendarEventType>;
|
||||
|
||||
updateEvent(
|
||||
uid: string,
|
||||
event: CalendarEvent,
|
||||
event: CalendarServiceEvent,
|
||||
externalCalendarId?: string | null
|
||||
): Promise<NewCalendarEventType | NewCalendarEventType[]>;
|
||||
|
||||
|
||||
Reference in new issue
Block a user