Riverside,whereby doesnt have videoApi handle that (#3494)

This commit is contained in:
Hariom Balhara authored and GitHub committed 2022-07-22 11:52:17 +00:00
1 parent 9b5d311136
commit e04cb8fc61
2 files changed
+19 -12

No files matched your search

+9 -6
View File
@@ -9,14 +9,17 @@ export interface VideoCallData {
url: string;
}
export interface VideoApiAdapter {
createMeeting(event: CalendarEvent): Promise<VideoCallData>;
// VideoApiAdapter is defined by the Video App. The App currently can choose to not define it. So, consider in type that VideoApiAdapter can be undefined.
export type VideoApiAdapter =
| {
createMeeting(event: CalendarEvent): Promise<VideoCallData>;
updateMeeting(bookingRef: PartialReference, event: CalendarEvent): Promise<VideoCallData>;
updateMeeting(bookingRef: PartialReference, event: CalendarEvent): Promise<VideoCallData>;
deleteMeeting(uid: string): Promise<unknown>;
deleteMeeting(uid: string): Promise<unknown>;
getAvailability(dateFrom?: string, dateTo?: string): Promise<EventBusyDate[]>;
}
getAvailability(dateFrom?: string, dateTo?: string): Promise<EventBusyDate[]>;
}
| undefined;
export type VideoApiAdapterFactory = (credential: Credential) => VideoApiAdapter;