* Fixing types from handleErrorJson usage and Credential * Replace credential prisma type for a better suitable * Improvements on zoom video adapter * Renamed extendedCredentialType and put it in a best suited file * Frontend display invalid credential * Fix styles and text * Fix type required for fake daily credentials
25 lines
807 B
TypeScript
25 lines
807 B
TypeScript
import type { EventBusyDate } from "./Calendar";
|
|
import { CredentialPayload } from "./Credential";
|
|
|
|
export interface VideoCallData {
|
|
type: string;
|
|
id: string;
|
|
password: string;
|
|
url: string;
|
|
}
|
|
|
|
// 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>;
|
|
|
|
deleteMeeting(uid: string): Promise<unknown>;
|
|
|
|
getAvailability(dateFrom?: string, dateTo?: string): Promise<EventBusyDate[]>;
|
|
}
|
|
| undefined;
|
|
|
|
export type VideoApiAdapterFactory = (credential: CredentialPayload) => VideoApiAdapter;
|