Rocket.Chat/apps/meteor/client/lib/utils/window.RocketChatDesktop.d.ts
2023-07-04 11:40:48 -03:00

15 lines
517 B
TypeScript

type OutlookEventsResponse = { status: 'success' | 'canceled' };
// eslint-disable-next-line @typescript-eslint/naming-convention
interface Window {
RocketChatDesktop:
| {
openInternalVideoChatWindow?: (url: string, options: undefined) => void;
getOutlookEvents?: (date: Date) => Promise<OutlookEventsResponse>;
setOutlookExchangeUrl?: (url: string, userId: string) => Promise<void>;
hasOutlookCredentials?: () => Promise<boolean>;
clearOutlookCredentials?: () => void;
}
| undefined;
}