As Google Meet is always installed, this fixes the doubling (#3093)

* As Google Meet is always installed, this fixes the doubling

* Make entire Google link clickable, fix extraData

* Attempt at type fixing :)

* AdditionalInformation for the booking page?

* Update packages/emails/src/components/LocationInfo.tsx

Being explicit :)

* Exclude AdditionalInformation as it is irrelevant here

Co-authored-by: Peer Richelsen <[email protected]>
Co-authored-by: Omar López <[email protected]>
This commit is contained in:
authored and GitHub committed 2022-06-17 18:34:41 +00:00
1 parent b9b3fef202
commit 159c026533
12 files changed
+72 -74

No files matched your search

+2 -2
View File
@@ -34,7 +34,7 @@ export type NewCalendarEventType = {
type: string;
password: string;
url: string;
additionalInfo: Record<string, any>;
additionalInfo: Record<string, unknown>;
};
export type CalendarEventType = {
@@ -154,7 +154,7 @@ export interface Calendar {
uid: string,
event: CalendarEvent,
externalCalendarId?: string | null
): Promise<Event | Event[]>;
): Promise<NewCalendarEventType | NewCalendarEventType[]>;
deleteEvent(uid: string, event: CalendarEvent, externalCalendarId?: string | null): Promise<unknown>;
+3 -2
View File
@@ -1,4 +1,5 @@
import type { PartialReference } from "./EventManager";
import type { NewCalendarEventType, AdditionalInformation } from "@calcom/types/Calendar";
import type { VideoCallData } from "./VideoApiAdapter";
export type Event = AdditionalInformation & VideoCallData;
export type Event = AdditionalInformation | NewCalendarEventType | VideoCallData;
+3 -3
View File
@@ -11,12 +11,12 @@ export interface PartialReference {
externalCalendarId?: string | null;
}
export interface EventResult {
export interface EventResult<T> {
type: string;
success: boolean;
uid: string;
createdEvent?: Event;
updatedEvent?: Event | Event[];
createdEvent?: T;
updatedEvent?: T | T[];
originalEvent: CalendarEvent;
}