ashish-sdk
Version:
ThoughtSpot Embed SDK
20 lines (19 loc) • 866 B
TypeScript
/**
* Copyright: ThoughtSpot Inc. 2012-2016
* Author: Shashank Singh (sunny@thoughtspot.com)
*
* @fileoverview ThoughtSpot Javascript API for use of ThoughtSpot in external webpages.
*/
import { AuthType } from '../types';
export declare enum Events {
THOUGHTSPOT_AUTH_EXPIRED = "ThoughtspotAuthExpired",
EXPORT_VIZ_DATA_TO_PARENT = "exportVizDataToParent",
ALERT = "alert",
EXPORT_VIZ_DATA_TO_CHILD = "exportVizDataToChild",
GET_DATA = "getData"
}
declare type Callback = (...args: any[]) => void;
declare function checkIfLoggedIn(tsHost: string, callback: Callback): void;
declare function initialize(onInitialized: Callback, onAuthExpiration: Callback, _thoughtspotHost: string, authType: AuthType): void;
declare function notifyOnAuthExpiration(): void;
export { initialize, checkIfLoggedIn, notifyOnAuthExpiration };