@arrowhealth/bridge-sdk
Version:
Bridge SDK provides web applications the ability to integrate with the Bridge Platform.
52 lines (51 loc) • 1.24 kB
TypeScript
import { AuthUser, LoginResult, Org, RuntimeDetails, UserSession } from './interfaces';
/**
* Clear internal storage cache set by bridge
* @private
*/
export declare function clearCache(): void;
/**
* Permits account to get the assigned org from chrome storage
* @private
* @returns
*/
export declare function getOrg(): Promise<Org>;
/**
* Requests page details
*
* @returns
*/
export declare function getRuntimeDetails(): Promise<RuntimeDetails>;
/**
* Permits account to get the current user's session
* @private
* @returns
*/
export declare function getUserSession(): Promise<UserSession>;
/**
* Permits account to login.
* @private
*/
export declare function login(realm: string, user: string, pw: string): Promise<LoginResult>;
/**
* Permits account to logout.
* @private
*/
export declare function logout(): Promise<void>;
/**
* Permits account to open account application
* @private
*/
export declare function openApp(): void;
/**
* Permits account to set authenticated user
* @private
* @param authUser
*/
export declare function setAuthUser(authUser: AuthUser | null): void;
/**
* Permits account to set the org
* @private
* @param org
*/
export declare function setOrg(org: Org | null): void;