@thoughtspot/visual-embed-sdk 1.29.0-alpha.7 → 1.29.0-alpha.SCAL-205893-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/package.json +1 -1
- package/cjs/src/auth.d.ts +14 -17
- package/cjs/src/auth.d.ts.map +1 -1
- package/cjs/src/auth.js +45 -59
- package/cjs/src/auth.js.map +1 -1
- package/cjs/src/auth.spec.d.ts +12 -0
- package/cjs/src/auth.spec.d.ts.map +1 -1
- package/cjs/src/auth.spec.js +89 -67
- package/cjs/src/auth.spec.js.map +1 -1
- package/cjs/src/authToken.d.ts +1 -1
- package/cjs/src/authToken.d.ts.map +1 -1
- package/cjs/src/authToken.js +18 -5
- package/cjs/src/authToken.js.map +1 -1
- package/cjs/src/authToken.spec.d.ts +2 -0
- package/cjs/src/authToken.spec.d.ts.map +1 -0
- package/cjs/src/authToken.spec.js +29 -0
- package/cjs/src/authToken.spec.js.map +1 -0
- package/cjs/src/embed/app.spec.js +4 -2
- package/cjs/src/embed/app.spec.js.map +1 -1
- package/cjs/src/embed/base.d.ts.map +1 -1
- package/cjs/src/embed/base.js +2 -0
- package/cjs/src/embed/base.js.map +1 -1
- package/cjs/src/embed/base.spec.js +1 -0
- package/cjs/src/embed/base.spec.js.map +1 -1
- package/cjs/src/embed/embed.spec.js +3 -0
- package/cjs/src/embed/embed.spec.js.map +1 -1
- package/cjs/src/embed/events.spec.js +3 -0
- package/cjs/src/embed/events.spec.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +2 -0
- package/cjs/src/embed/liveboard.spec.js.map +1 -1
- package/cjs/src/embed/pinboard.spec.js +3 -0
- package/cjs/src/embed/pinboard.spec.js.map +1 -1
- package/cjs/src/embed/sage.spec.js +3 -0
- package/cjs/src/embed/sage.spec.js.map +1 -1
- package/cjs/src/embed/search.spec.js +1 -0
- package/cjs/src/embed/search.spec.js.map +1 -1
- package/cjs/src/embed/ts-embed-trigger.spec.js +3 -0
- package/cjs/src/embed/ts-embed-trigger.spec.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +7 -0
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +7 -0
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/index.d.ts +2 -1
- package/cjs/src/index.d.ts.map +1 -1
- package/cjs/src/index.js +2 -1
- package/cjs/src/index.js.map +1 -1
- package/cjs/src/mixpanel-service.d.ts +2 -1
- package/cjs/src/mixpanel-service.d.ts.map +1 -1
- package/cjs/src/mixpanel-service.js +1 -0
- package/cjs/src/mixpanel-service.js.map +1 -1
- package/cjs/src/mixpanel-service.spec.js +7 -0
- package/cjs/src/mixpanel-service.spec.js.map +1 -1
- package/cjs/src/react/index.d.ts +1 -1
- package/cjs/src/react/index.d.ts.map +1 -1
- package/cjs/src/react/index.js +2 -1
- package/cjs/src/react/index.js.map +1 -1
- package/cjs/src/react/index.spec.js +6 -0
- package/cjs/src/react/index.spec.js.map +1 -1
- package/cjs/src/types.d.ts +79 -47
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +61 -46
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/authService/authService.d.ts +1 -0
- package/cjs/src/utils/authService/authService.d.ts.map +1 -1
- package/cjs/src/utils/authService/authService.js +1 -0
- package/cjs/src/utils/authService/authService.js.map +1 -1
- package/cjs/src/utils/authService/authService.spec.js +18 -5
- package/cjs/src/utils/authService/authService.spec.js.map +1 -1
- package/cjs/src/utils/authService/tokenizedAuthService.d.ts +15 -2
- package/cjs/src/utils/authService/tokenizedAuthService.d.ts.map +1 -1
- package/cjs/src/utils/authService/tokenizedAuthService.js +39 -9
- package/cjs/src/utils/authService/tokenizedAuthService.js.map +1 -1
- package/cjs/src/utils/authService/tokenizedAuthService.spec.d.ts +2 -0
- package/cjs/src/utils/authService/tokenizedAuthService.spec.d.ts.map +1 -0
- package/cjs/src/utils/authService/tokenizedAuthService.spec.js +32 -0
- package/cjs/src/utils/authService/tokenizedAuthService.spec.js.map +1 -0
- package/cjs/src/utils/graphql/answerService/answerService.d.ts +10 -0
- package/cjs/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.js +10 -0
- package/cjs/src/utils/graphql/answerService/answerService.js.map +1 -1
- package/cjs/src/utils/processData.js +2 -2
- package/cjs/src/utils/processData.js.map +1 -1
- package/cjs/src/utils/processData.spec.js +3 -2
- package/cjs/src/utils/processData.spec.js.map +1 -1
- package/cjs/src/utils/sessionInfoService.d.ts +66 -0
- package/cjs/src/utils/sessionInfoService.d.ts.map +1 -0
- package/cjs/src/utils/sessionInfoService.js +92 -0
- package/cjs/src/utils/sessionInfoService.js.map +1 -0
- package/cjs/src/utils.d.ts +1 -1
- package/cjs/src/utils.d.ts.map +1 -1
- package/cjs/src/utils.js +4 -1
- package/cjs/src/utils.js.map +1 -1
- package/dist/src/auth.d.ts +14 -17
- package/dist/src/auth.d.ts.map +1 -1
- package/dist/src/auth.spec.d.ts +12 -0
- package/dist/src/auth.spec.d.ts.map +1 -1
- package/dist/src/authToken.d.ts +1 -1
- package/dist/src/authToken.d.ts.map +1 -1
- package/dist/src/authToken.spec.d.ts +2 -0
- package/dist/src/authToken.spec.d.ts.map +1 -0
- package/dist/src/embed/base.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/index.d.ts +2 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/mixpanel-service.d.ts +2 -1
- package/dist/src/mixpanel-service.d.ts.map +1 -1
- package/dist/src/react/index.d.ts +1 -1
- package/dist/src/react/index.d.ts.map +1 -1
- package/dist/src/types.d.ts +79 -47
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/authService/authService.d.ts +1 -0
- package/dist/src/utils/authService/authService.d.ts.map +1 -1
- package/dist/src/utils/authService/tokenizedAuthService.d.ts +15 -2
- package/dist/src/utils/authService/tokenizedAuthService.d.ts.map +1 -1
- package/dist/src/utils/authService/tokenizedAuthService.spec.d.ts +2 -0
- package/dist/src/utils/authService/tokenizedAuthService.spec.d.ts.map +1 -0
- package/dist/src/utils/graphql/answerService/answerService.d.ts +10 -0
- package/dist/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/dist/src/utils/sessionInfoService.d.ts +66 -0
- package/dist/src/utils/sessionInfoService.d.ts.map +1 -0
- package/dist/src/utils.d.ts +1 -1
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +225 -105
- package/dist/tsembed-react.js +225 -104
- package/dist/tsembed.es.js +233 -116
- package/dist/tsembed.js +233 -116
- package/dist/visual-embed-sdk-react-full.d.ts +171 -66
- package/dist/visual-embed-sdk-react.d.ts +171 -66
- package/dist/visual-embed-sdk.d.ts +171 -66
- package/lib/package.json +1 -1
- package/lib/src/auth.d.ts +14 -17
- package/lib/src/auth.d.ts.map +1 -1
- package/lib/src/auth.js +44 -56
- package/lib/src/auth.js.map +1 -1
- package/lib/src/auth.spec.d.ts +12 -0
- package/lib/src/auth.spec.d.ts.map +1 -1
- package/lib/src/auth.spec.js +88 -66
- package/lib/src/auth.spec.js.map +1 -1
- package/lib/src/authToken.d.ts +1 -1
- package/lib/src/authToken.d.ts.map +1 -1
- package/lib/src/authToken.js +18 -5
- package/lib/src/authToken.js.map +1 -1
- package/lib/src/authToken.spec.d.ts +2 -0
- package/lib/src/authToken.spec.d.ts.map +1 -0
- package/lib/src/authToken.spec.js +26 -0
- package/lib/src/authToken.spec.js.map +1 -0
- package/lib/src/embed/app.spec.js +4 -2
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/base.d.ts.map +1 -1
- package/lib/src/embed/base.js +3 -1
- package/lib/src/embed/base.js.map +1 -1
- package/lib/src/embed/base.spec.js +1 -0
- package/lib/src/embed/base.spec.js.map +1 -1
- package/lib/src/embed/embed.spec.js +2 -0
- package/lib/src/embed/embed.spec.js.map +1 -1
- package/lib/src/embed/events.spec.js +2 -0
- package/lib/src/embed/events.spec.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +2 -0
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/embed/pinboard.spec.js +2 -0
- package/lib/src/embed/pinboard.spec.js.map +1 -1
- package/lib/src/embed/sage.spec.js +2 -0
- package/lib/src/embed/sage.spec.js.map +1 -1
- package/lib/src/embed/search.spec.js +1 -0
- package/lib/src/embed/search.spec.js.map +1 -1
- package/lib/src/embed/ts-embed-trigger.spec.js +2 -0
- package/lib/src/embed/ts-embed-trigger.spec.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +7 -0
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +7 -0
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/index.d.ts +2 -1
- package/lib/src/index.d.ts.map +1 -1
- package/lib/src/index.js +2 -1
- package/lib/src/index.js.map +1 -1
- package/lib/src/mixpanel-service.d.ts +2 -1
- package/lib/src/mixpanel-service.d.ts.map +1 -1
- package/lib/src/mixpanel-service.js +1 -0
- package/lib/src/mixpanel-service.js.map +1 -1
- package/lib/src/mixpanel-service.spec.js +7 -0
- package/lib/src/mixpanel-service.spec.js.map +1 -1
- package/lib/src/react/index.d.ts +1 -1
- package/lib/src/react/index.d.ts.map +1 -1
- package/lib/src/react/index.js +1 -1
- package/lib/src/react/index.js.map +1 -1
- package/lib/src/react/index.spec.js +6 -0
- package/lib/src/react/index.spec.js.map +1 -1
- package/lib/src/types.d.ts +79 -47
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +61 -46
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/authService/authService.d.ts +1 -0
- package/lib/src/utils/authService/authService.d.ts.map +1 -1
- package/lib/src/utils/authService/authService.js +1 -0
- package/lib/src/utils/authService/authService.js.map +1 -1
- package/lib/src/utils/authService/authService.spec.js +18 -5
- package/lib/src/utils/authService/authService.spec.js.map +1 -1
- package/lib/src/utils/authService/tokenizedAuthService.d.ts +15 -2
- package/lib/src/utils/authService/tokenizedAuthService.d.ts.map +1 -1
- package/lib/src/utils/authService/tokenizedAuthService.js +37 -8
- package/lib/src/utils/authService/tokenizedAuthService.js.map +1 -1
- package/lib/src/utils/authService/tokenizedAuthService.spec.d.ts +2 -0
- package/lib/src/utils/authService/tokenizedAuthService.spec.d.ts.map +1 -0
- package/lib/src/utils/authService/tokenizedAuthService.spec.js +29 -0
- package/lib/src/utils/authService/tokenizedAuthService.spec.js.map +1 -0
- package/lib/src/utils/graphql/answerService/answerService.d.ts +10 -0
- package/lib/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.js +10 -0
- package/lib/src/utils/graphql/answerService/answerService.js.map +1 -1
- package/lib/src/utils/processData.js +3 -3
- package/lib/src/utils/processData.js.map +1 -1
- package/lib/src/utils/processData.spec.js +3 -2
- package/lib/src/utils/processData.spec.js.map +1 -1
- package/lib/src/utils/sessionInfoService.d.ts +66 -0
- package/lib/src/utils/sessionInfoService.d.ts.map +1 -0
- package/lib/src/utils/sessionInfoService.js +85 -0
- package/lib/src/utils/sessionInfoService.js.map +1 -0
- package/lib/src/utils.d.ts +1 -1
- package/lib/src/utils.d.ts.map +1 -1
- package/lib/src/utils.js +4 -1
- package/lib/src/utils.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +176 -67
- package/package.json +1 -1
- package/src/auth.spec.ts +92 -72
- package/src/auth.ts +46 -68
- package/src/authToken.spec.ts +31 -0
- package/src/authToken.ts +17 -5
- package/src/embed/app.spec.ts +4 -2
- package/src/embed/base.spec.ts +1 -0
- package/src/embed/base.ts +3 -0
- package/src/embed/embed.spec.ts +2 -0
- package/src/embed/events.spec.ts +2 -0
- package/src/embed/liveboard.spec.ts +2 -0
- package/src/embed/pinboard.spec.ts +2 -0
- package/src/embed/sage.spec.ts +3 -0
- package/src/embed/search.spec.ts +1 -0
- package/src/embed/ts-embed-trigger.spec.ts +3 -0
- package/src/embed/ts-embed.spec.ts +8 -0
- package/src/embed/ts-embed.ts +7 -0
- package/src/index.ts +2 -1
- package/src/mixpanel-service.spec.ts +12 -3
- package/src/mixpanel-service.ts +3 -1
- package/src/react/index.spec.tsx +7 -0
- package/src/react/index.tsx +1 -0
- package/src/types.ts +80 -47
- package/src/utils/authService/authService.spec.ts +18 -5
- package/src/utils/authService/authService.ts +1 -0
- package/src/utils/authService/tokenizedAuthService.spec.ts +36 -0
- package/src/utils/authService/tokenizedAuthService.ts +38 -8
- package/src/utils/graphql/answerService/answerService.ts +10 -0
- package/src/utils/processData.spec.ts +3 -2
- package/src/utils/processData.ts +3 -3
- package/src/utils/sessionInfoService.ts +101 -0
- package/src/utils.ts +7 -2
|
@@ -1746,12 +1746,6 @@ export declare let loggedInStatus: boolean;
|
|
|
1746
1746
|
export declare let samlAuthWindow: Window;
|
|
1747
1747
|
export declare let samlCompletionPromise: Promise<void>;
|
|
1748
1748
|
export declare const SSO_REDIRECTION_MARKER_GUID = "5e16222e-ef02-43e9-9fbd-24226bf3ce5b";
|
|
1749
|
-
interface sessionInfoInterface {
|
|
1750
|
-
userGUID: any;
|
|
1751
|
-
isPublicUser: any;
|
|
1752
|
-
mixpanelToken: any;
|
|
1753
|
-
[key: string]: any;
|
|
1754
|
-
}
|
|
1755
1749
|
/**
|
|
1756
1750
|
* Enum for auth failure types. This is the parameter passed to the listner
|
|
1757
1751
|
* of {@link AuthStatus.FAILURE}.
|
|
@@ -1869,7 +1863,7 @@ export declare function notifyAuthSDKSuccess(): void;
|
|
|
1869
1863
|
/**
|
|
1870
1864
|
*
|
|
1871
1865
|
*/
|
|
1872
|
-
export declare function notifyAuthSuccess(): void
|
|
1866
|
+
export declare function notifyAuthSuccess(): Promise<void>;
|
|
1873
1867
|
/**
|
|
1874
1868
|
*
|
|
1875
1869
|
* @param failureType
|
|
@@ -1879,19 +1873,23 @@ export declare function notifyAuthFailure(failureType: AuthFailureType): void;
|
|
|
1879
1873
|
*
|
|
1880
1874
|
*/
|
|
1881
1875
|
export declare function notifyLogout(): void;
|
|
1882
|
-
export declare const initSession: (sessionDetails: sessionInfoInterface) => void;
|
|
1883
|
-
export declare const getSessionDetails: (sessionInfoResp: any) => sessionInfoInterface;
|
|
1884
1876
|
/**
|
|
1885
|
-
*
|
|
1877
|
+
* Services to be called after the login is successful,
|
|
1878
|
+
* This should be called after the cookie is set for cookie auth or
|
|
1879
|
+
* after the token is set for cookieless.
|
|
1880
|
+
*
|
|
1881
|
+
* @return {Promise<void>}
|
|
1882
|
+
* @example
|
|
1883
|
+
* ```js
|
|
1884
|
+
* await postLoginService();
|
|
1885
|
+
* ```
|
|
1886
|
+
* @version SDK: 1.28.3 | ThoughtSpot: *
|
|
1886
1887
|
*/
|
|
1887
|
-
export declare function
|
|
1888
|
+
export declare function postLoginService(): Promise<void>;
|
|
1888
1889
|
/**
|
|
1889
|
-
* Return
|
|
1890
|
-
* authentication is successful. And info is available.
|
|
1891
|
-
*
|
|
1892
|
-
* @group Global methods
|
|
1890
|
+
* Return releaseVersion if available
|
|
1893
1891
|
*/
|
|
1894
|
-
export declare function
|
|
1892
|
+
export declare function getReleaseVersion(): string;
|
|
1895
1893
|
/**
|
|
1896
1894
|
* Perform token based authentication
|
|
1897
1895
|
*
|
|
@@ -1927,7 +1925,72 @@ export declare const authenticate: (embedConfig: EmbedConfig) => Promise<boolean
|
|
|
1927
1925
|
* Check if we are authenticated to the ThoughtSpot cluster
|
|
1928
1926
|
*/
|
|
1929
1927
|
export declare const isAuthenticated: () => boolean;
|
|
1930
|
-
|
|
1928
|
+
|
|
1929
|
+
export type SessionInfo = {
|
|
1930
|
+
releaseVersion: string;
|
|
1931
|
+
userGUID: string;
|
|
1932
|
+
currentOrgId: number;
|
|
1933
|
+
privileges: string[];
|
|
1934
|
+
mixpanelToken: string;
|
|
1935
|
+
isPublicUser: boolean;
|
|
1936
|
+
clusterId: string;
|
|
1937
|
+
clusterName: string;
|
|
1938
|
+
[key: string]: any;
|
|
1939
|
+
};
|
|
1940
|
+
/**
|
|
1941
|
+
* Returns the session info object and caches it for future use.
|
|
1942
|
+
* Once fetched the session info object is cached and returned from the cache on
|
|
1943
|
+
* subsequent calls.
|
|
1944
|
+
*
|
|
1945
|
+
* @example ```js
|
|
1946
|
+
* const sessionInfo = await getSessionInfo();
|
|
1947
|
+
* console.log(sessionInfo);
|
|
1948
|
+
* ```
|
|
1949
|
+
* @version SDK: 1.28.3 | ThoughtSpot: *
|
|
1950
|
+
* @returns {Promise<SessionInfo>} The session info object.
|
|
1951
|
+
*/
|
|
1952
|
+
export declare function getSessionInfo(): Promise<SessionInfo>;
|
|
1953
|
+
/**
|
|
1954
|
+
* Returns the cached session info object. If the client is not authenticated the
|
|
1955
|
+
* function will return null.
|
|
1956
|
+
*
|
|
1957
|
+
* @example ```js
|
|
1958
|
+
* const sessionInfo = getCachedSessionInfo();
|
|
1959
|
+
* if (sessionInfo) {
|
|
1960
|
+
* console.log(sessionInfo);
|
|
1961
|
+
* } else {
|
|
1962
|
+
* console.log('Not authenticated');
|
|
1963
|
+
* }
|
|
1964
|
+
* ```
|
|
1965
|
+
* @returns {SessionInfo | null} The session info object.
|
|
1966
|
+
* @version SDK: 1.28.3 | ThoughtSpot: *
|
|
1967
|
+
*/
|
|
1968
|
+
export declare function getCachedSessionInfo(): SessionInfo | null;
|
|
1969
|
+
/**
|
|
1970
|
+
* Processes the session info response and returns the session info object.
|
|
1971
|
+
*
|
|
1972
|
+
* @param sessionInfoResp {any} Response from the session info API.
|
|
1973
|
+
* @returns {SessionInfo} The session info object.
|
|
1974
|
+
* @example ```js
|
|
1975
|
+
* const sessionInfoResp = await fetch(sessionInfoPath);
|
|
1976
|
+
* const sessionInfo = getSessionDetails(sessionInfoResp);
|
|
1977
|
+
* console.log(sessionInfo);
|
|
1978
|
+
* ```
|
|
1979
|
+
* @version SDK: 1.28.3 | ThoughtSpot: *
|
|
1980
|
+
*/
|
|
1981
|
+
export declare const getSessionDetails: (sessionInfoResp: any) => SessionInfo;
|
|
1982
|
+
/**
|
|
1983
|
+
* Resets the cached session info object and forces a new fetch on the next call.
|
|
1984
|
+
*
|
|
1985
|
+
* @example ```js
|
|
1986
|
+
* resetCachedSessionInfo();
|
|
1987
|
+
* const sessionInfo = await getSessionInfo();
|
|
1988
|
+
* console.log(sessionInfo);
|
|
1989
|
+
* ```
|
|
1990
|
+
* @version SDK: 1.28.3 | ThoughtSpot ts7.april.cl, 7.2.1
|
|
1991
|
+
* @returns {void}
|
|
1992
|
+
*/
|
|
1993
|
+
export declare function resetCachedSessionInfo(): void;
|
|
1931
1994
|
|
|
1932
1995
|
/**
|
|
1933
1996
|
* Copyright (c) 2023
|
|
@@ -2513,6 +2576,23 @@ export interface EmbedConfig {
|
|
|
2513
2576
|
* @version SDK: 1.28.4 | Thoughtspot: 10.0.0.cl, 9.5.0.sw
|
|
2514
2577
|
*/
|
|
2515
2578
|
currencyFormat?: string;
|
|
2579
|
+
/**
|
|
2580
|
+
* This flag is used to disable the token verification in the SDK.
|
|
2581
|
+
* Enabling this flag will also disable the caching of the token.
|
|
2582
|
+
*
|
|
2583
|
+
* @hidden
|
|
2584
|
+
*
|
|
2585
|
+
* @example
|
|
2586
|
+
* ```js
|
|
2587
|
+
* init({
|
|
2588
|
+
* ...embedConfig,
|
|
2589
|
+
* disableTokenVerification : true
|
|
2590
|
+
* })
|
|
2591
|
+
* ```
|
|
2592
|
+
*
|
|
2593
|
+
* @version SDK: 1.28.5 | Thoughtspot: *
|
|
2594
|
+
*/
|
|
2595
|
+
disableTokenVerification?: boolean;
|
|
2516
2596
|
}
|
|
2517
2597
|
export interface LayoutConfig {
|
|
2518
2598
|
}
|
|
@@ -3112,7 +3192,7 @@ export interface RuntimeFilter {
|
|
|
3112
3192
|
* a single operand, whereas other operators like BW and IN accept multiple
|
|
3113
3193
|
* operands.
|
|
3114
3194
|
*/
|
|
3115
|
-
values: (number | boolean | string)[];
|
|
3195
|
+
values: (number | boolean | string | bigint)[];
|
|
3116
3196
|
}
|
|
3117
3197
|
/**
|
|
3118
3198
|
* A filter that can be applied to ThoughtSpot Answers, Liveboards, or
|
|
@@ -3166,6 +3246,8 @@ export declare enum EmbedEvent {
|
|
|
3166
3246
|
/**
|
|
3167
3247
|
* Authentication has either succeeded or failed.
|
|
3168
3248
|
*
|
|
3249
|
+
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
3250
|
+
*
|
|
3169
3251
|
* @example
|
|
3170
3252
|
*```js
|
|
3171
3253
|
* appEmbed.on(EmbedEvent.AuthInit, payload => {
|
|
@@ -3179,6 +3261,8 @@ export declare enum EmbedEvent {
|
|
|
3179
3261
|
* The embed object container has loaded.
|
|
3180
3262
|
*
|
|
3181
3263
|
* @returns timestamp - The timestamp when the event was generated.
|
|
3264
|
+
*
|
|
3265
|
+
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
3182
3266
|
* @example
|
|
3183
3267
|
*```js
|
|
3184
3268
|
* liveboardEmbed.on(EmbedEvent.Load, hideLoader)
|
|
@@ -3193,6 +3277,8 @@ export declare enum EmbedEvent {
|
|
|
3193
3277
|
* Data pertaining to answer or Liveboard is received
|
|
3194
3278
|
*
|
|
3195
3279
|
* @return data - The answer or Liveboard data
|
|
3280
|
+
*
|
|
3281
|
+
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
3196
3282
|
* @example
|
|
3197
3283
|
*```js
|
|
3198
3284
|
* liveboardEmbed.on(EmbedEvent.Data, payload => {
|
|
@@ -3211,6 +3297,7 @@ export declare enum EmbedEvent {
|
|
|
3211
3297
|
/**
|
|
3212
3298
|
* Search query has been updated by the user.
|
|
3213
3299
|
*
|
|
3300
|
+
* @version SDK: 1.4.0 | ThoughtSpot: ts7.sep.cl, 8.4.1.sw
|
|
3214
3301
|
* @example
|
|
3215
3302
|
*```js
|
|
3216
3303
|
* searchEmbed.on(EmbedEvent.QueryChanged, payload => console.log('data', payload))
|
|
@@ -3220,12 +3307,14 @@ export declare enum EmbedEvent {
|
|
|
3220
3307
|
/**
|
|
3221
3308
|
* A drill-down operation has been performed.
|
|
3222
3309
|
*
|
|
3310
|
+
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
3311
|
+
*
|
|
3223
3312
|
* @returns additionalFilters - Any additional filters applied
|
|
3224
3313
|
* @returns drillDownColumns - The columns on which drill down was performed
|
|
3225
3314
|
* @returns nonFilteredColumns - The columns that were not filtered
|
|
3226
3315
|
* @example
|
|
3227
3316
|
*```js
|
|
3228
|
-
* searchEmbed.
|
|
3317
|
+
* searchEmbed.on(EmbedEvent.DrillDown, {
|
|
3229
3318
|
* points: {
|
|
3230
3319
|
* clickedPoint,
|
|
3231
3320
|
* selectedPoints: selectedPoint
|
|
@@ -3258,6 +3347,8 @@ export declare enum EmbedEvent {
|
|
|
3258
3347
|
* One or more data sources have been selected.
|
|
3259
3348
|
*
|
|
3260
3349
|
* @returns dataSourceIds - the list of data sources
|
|
3350
|
+
*
|
|
3351
|
+
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
3261
3352
|
* @example
|
|
3262
3353
|
* ```js
|
|
3263
3354
|
* searchEmbed.on(EmbedEvent.DataSourceSelected, payload => {
|
|
@@ -3285,6 +3376,8 @@ export declare enum EmbedEvent {
|
|
|
3285
3376
|
* @returns actionId - ID of the custom action
|
|
3286
3377
|
* @returns payload {@link CustomActionPayload} - Response payload with the
|
|
3287
3378
|
* Answer or Liveboard data
|
|
3379
|
+
*
|
|
3380
|
+
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
3288
3381
|
* @example
|
|
3289
3382
|
* ```js
|
|
3290
3383
|
* appEmbed.on(EmbedEvent.customAction, payload => {
|
|
@@ -3332,21 +3425,18 @@ export declare enum EmbedEvent {
|
|
|
3332
3425
|
/**
|
|
3333
3426
|
* An error has occurred. This event is fired for the following error types:
|
|
3334
3427
|
*
|
|
3335
|
-
* API - API call failure error.
|
|
3336
|
-
*
|
|
3337
|
-
*
|
|
3338
|
-
*
|
|
3339
|
-
*
|
|
3340
|
-
*
|
|
3341
|
-
* NON_EXIST_FILTER - Error due to a non-existent filter.
|
|
3428
|
+
* `API` - API call failure error.
|
|
3429
|
+
* `FULLSCREEN` - Error when presenting a Liveboard or visualization in full screen mode.
|
|
3430
|
+
* `SINGLE_VALUE_FILTER` - Error due to multiple values in the single value filter.
|
|
3431
|
+
* `NON_EXIST_FILTER` - Error due to a non-existent filter.
|
|
3432
|
+
* `INVALID_DATE_VALUE` - Invalid date value error.
|
|
3433
|
+
* `INVALID_OPERATOR` - Use of invalid operator during filter application.
|
|
3342
3434
|
*
|
|
3343
|
-
*
|
|
3344
|
-
*
|
|
3345
|
-
* INVALID_OPERATOR - Use of invalid operator during filter application.
|
|
3346
|
-
*
|
|
3347
|
-
* For more information, see [Developer Documentation](https://developers.thoughtspot.com/docs/events-app-integration#errorType)
|
|
3435
|
+
* For more information, see https://developers.thoughtspot.com/docs/events-app-integration#errorType
|
|
3348
3436
|
*
|
|
3349
3437
|
* @returns error - An error object or message
|
|
3438
|
+
*
|
|
3439
|
+
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
3350
3440
|
* @example
|
|
3351
3441
|
* ```js
|
|
3352
3442
|
* // API error
|
|
@@ -3372,6 +3462,9 @@ export declare enum EmbedEvent {
|
|
|
3372
3462
|
* The embedded object has sent an alert.
|
|
3373
3463
|
*
|
|
3374
3464
|
* @returns alert - An alert object
|
|
3465
|
+
*
|
|
3466
|
+
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
3467
|
+
*
|
|
3375
3468
|
* @example
|
|
3376
3469
|
* ```js
|
|
3377
3470
|
* searchEmbed.on(EmbedEvent.Alert)
|
|
@@ -3381,6 +3474,8 @@ export declare enum EmbedEvent {
|
|
|
3381
3474
|
/**
|
|
3382
3475
|
* The ThoughtSpot auth session has expired.
|
|
3383
3476
|
*
|
|
3477
|
+
* @version SDK: 1.4.0 | ThoughtSpot: ts7.sep.cl, 8.4.1.sw
|
|
3478
|
+
*
|
|
3384
3479
|
* @example
|
|
3385
3480
|
*```js
|
|
3386
3481
|
* appEmbed.on(EmbedEvent.AuthExpire, showAuthExpired)
|
|
@@ -3434,6 +3529,7 @@ export declare enum EmbedEvent {
|
|
|
3434
3529
|
/**
|
|
3435
3530
|
* Detects the route change.
|
|
3436
3531
|
*
|
|
3532
|
+
* @version SDK: 1.7.0 | ThoughtSpot: 8.0.0.cl, 8.4.1.sw
|
|
3437
3533
|
* @example
|
|
3438
3534
|
*```js
|
|
3439
3535
|
* searchEmbed.on(EmbedEvent.RouteChange, payload =>
|
|
@@ -3514,8 +3610,7 @@ export declare enum EmbedEvent {
|
|
|
3514
3610
|
*/
|
|
3515
3611
|
LiveboardRendered = "PinboardRendered",
|
|
3516
3612
|
/**
|
|
3517
|
-
*
|
|
3518
|
-
* is triggered on all events.
|
|
3613
|
+
* Emits all events.
|
|
3519
3614
|
*
|
|
3520
3615
|
* @Version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
|
|
3521
3616
|
* @example
|
|
@@ -3532,13 +3627,13 @@ export declare enum EmbedEvent {
|
|
|
3532
3627
|
* @Version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
3533
3628
|
* @example
|
|
3534
3629
|
*```js
|
|
3535
|
-
* //
|
|
3630
|
+
* //Emit when action starts
|
|
3536
3631
|
* searchEmbed.on(EmbedEvent.Save, payload => {
|
|
3537
3632
|
* console.log('Save', payload)
|
|
3538
3633
|
* }, {
|
|
3539
3634
|
* start: true
|
|
3540
3635
|
* })
|
|
3541
|
-
* //
|
|
3636
|
+
* //emit when action ends
|
|
3542
3637
|
* searchEmbed.on(EmbedEvent.Save, payload => {
|
|
3543
3638
|
* console.log('Save', payload)
|
|
3544
3639
|
* })
|
|
@@ -3556,7 +3651,7 @@ export declare enum EmbedEvent {
|
|
|
3556
3651
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
3557
3652
|
* @example
|
|
3558
3653
|
*```js
|
|
3559
|
-
* liveboardEmbed.
|
|
3654
|
+
* liveboardEmbed.on(EmbedEvent.Download, {
|
|
3560
3655
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
3561
3656
|
* })
|
|
3562
3657
|
*```
|
|
@@ -3568,10 +3663,10 @@ export declare enum EmbedEvent {
|
|
|
3568
3663
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.0.sw
|
|
3569
3664
|
* @example
|
|
3570
3665
|
*```js
|
|
3571
|
-
* //
|
|
3666
|
+
* //emit when action starts
|
|
3572
3667
|
* searchEmbed.on(EmbedEvent.DownloadAsPng, payload => {
|
|
3573
3668
|
* console.log('download PNG', payload)}, {start: true })
|
|
3574
|
-
* //
|
|
3669
|
+
* //emit when action ends
|
|
3575
3670
|
* searchEmbed.on(EmbedEvent.DownloadAsPng, payload => {
|
|
3576
3671
|
* console.log('download PNG', payload)})
|
|
3577
3672
|
*```
|
|
@@ -3583,10 +3678,10 @@ export declare enum EmbedEvent {
|
|
|
3583
3678
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
3584
3679
|
* @example
|
|
3585
3680
|
*```js
|
|
3586
|
-
* //
|
|
3681
|
+
* //emit when action starts
|
|
3587
3682
|
* searchEmbed.on(EmbedEvent.DownloadAsPdf, payload => {
|
|
3588
3683
|
* console.log('download PDF', payload)}, {start: true })
|
|
3589
|
-
* //
|
|
3684
|
+
* //emit when action ends
|
|
3590
3685
|
* searchEmbed.on(EmbedEvent.DownloadAsPdf, payload => {
|
|
3591
3686
|
* console.log('download PDF', payload)})
|
|
3592
3687
|
*```
|
|
@@ -3598,10 +3693,10 @@ export declare enum EmbedEvent {
|
|
|
3598
3693
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
3599
3694
|
* @example
|
|
3600
3695
|
*```js
|
|
3601
|
-
* //
|
|
3696
|
+
* //emit when action starts
|
|
3602
3697
|
* searchEmbed.on(EmbedEvent.DownloadAsCSV, payload => {
|
|
3603
3698
|
* console.log('download CSV', payload)}, {start: true })
|
|
3604
|
-
* //
|
|
3699
|
+
* //emit when action ends
|
|
3605
3700
|
* searchEmbed.on(EmbedEvent.DownloadAsCSV, payload => {
|
|
3606
3701
|
* console.log('download CSV', payload)})
|
|
3607
3702
|
*```
|
|
@@ -3613,10 +3708,10 @@ export declare enum EmbedEvent {
|
|
|
3613
3708
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
3614
3709
|
* @example
|
|
3615
3710
|
*```js
|
|
3616
|
-
* //
|
|
3711
|
+
* //emit when action starts
|
|
3617
3712
|
* searchEmbed.on(EmbedEvent.DownloadAsXlsx, payload => {
|
|
3618
3713
|
* console.log('download Xlsx', payload)}, { start: true })
|
|
3619
|
-
* //
|
|
3714
|
+
* //emit when action ends
|
|
3620
3715
|
* searchEmbed.on(EmbedEvent.DownloadAsXlsx, payload => {
|
|
3621
3716
|
* console.log('download Xlsx', payload)})
|
|
3622
3717
|
*```
|
|
@@ -3628,7 +3723,7 @@ export declare enum EmbedEvent {
|
|
|
3628
3723
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
3629
3724
|
* @example
|
|
3630
3725
|
*```js
|
|
3631
|
-
* //
|
|
3726
|
+
* //emit when action starts
|
|
3632
3727
|
* appEmbed.on(EmbedEvent.AnswerDelete, payload => {
|
|
3633
3728
|
* console.log('delete answer', payload)}, {start: true })
|
|
3634
3729
|
* //trigger when action is completed
|
|
@@ -3643,13 +3738,13 @@ export declare enum EmbedEvent {
|
|
|
3643
3738
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
3644
3739
|
* @example
|
|
3645
3740
|
*```js
|
|
3646
|
-
* //
|
|
3741
|
+
* //emit when action starts
|
|
3647
3742
|
* searchEmbed.on(EmbedEvent.Pin, payload => {
|
|
3648
3743
|
* console.log('pin', payload)
|
|
3649
3744
|
* }, {
|
|
3650
3745
|
* start: true
|
|
3651
3746
|
* })
|
|
3652
|
-
* //
|
|
3747
|
+
* //emit when action ends
|
|
3653
3748
|
* searchEmbed.on(EmbedEvent.Pin, payload => {
|
|
3654
3749
|
* console.log('pin', payload)
|
|
3655
3750
|
* })
|
|
@@ -3662,13 +3757,13 @@ export declare enum EmbedEvent {
|
|
|
3662
3757
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
3663
3758
|
* @example
|
|
3664
3759
|
*```js
|
|
3665
|
-
* //
|
|
3760
|
+
* //emit when action starts
|
|
3666
3761
|
* searchEmbed.on(EmbedEvent.SpotIQAnalyze, payload => {
|
|
3667
3762
|
* console.log('SpotIQAnalyze', payload)
|
|
3668
3763
|
* }, {
|
|
3669
3764
|
* start: true
|
|
3670
3765
|
* })
|
|
3671
|
-
* //
|
|
3766
|
+
* //emit when action ends
|
|
3672
3767
|
* searchEmbed.on(EmbedEvent.SpotIQAnalyze, payload => {
|
|
3673
3768
|
* console.log('SpotIQ analyze', payload)
|
|
3674
3769
|
* })
|
|
@@ -3681,13 +3776,13 @@ export declare enum EmbedEvent {
|
|
|
3681
3776
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
3682
3777
|
* @example
|
|
3683
3778
|
*```js
|
|
3684
|
-
* //
|
|
3779
|
+
* //emit when action starts
|
|
3685
3780
|
* searchEmbed.on(EmbedEvent.Share, payload => {
|
|
3686
3781
|
* console.log('Share', payload)
|
|
3687
3782
|
* }, {
|
|
3688
3783
|
* start: true
|
|
3689
3784
|
* })
|
|
3690
|
-
* //
|
|
3785
|
+
* //emit when action ends
|
|
3691
3786
|
* searchEmbed.on(EmbedEvent.Share, payload => {
|
|
3692
3787
|
* console.log('Share', payload)
|
|
3693
3788
|
* })
|
|
@@ -3762,10 +3857,10 @@ export declare enum EmbedEvent {
|
|
|
3762
3857
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
3763
3858
|
* @example
|
|
3764
3859
|
*```js
|
|
3765
|
-
* //
|
|
3860
|
+
* //emit when action starts
|
|
3766
3861
|
* searchEmbed.on(EmbedEvent.ExportTML, payload => {
|
|
3767
3862
|
* console.log('Export TML', payload)}, { start: true })
|
|
3768
|
-
* //
|
|
3863
|
+
* //emit when action ends
|
|
3769
3864
|
* searchEmbed.on(EmbedEvent.ExportTML, payload => {
|
|
3770
3865
|
* console.log('Export TML', payload)})
|
|
3771
3866
|
*```
|
|
@@ -3789,10 +3884,10 @@ export declare enum EmbedEvent {
|
|
|
3789
3884
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
3790
3885
|
* @example
|
|
3791
3886
|
*```js
|
|
3792
|
-
* //
|
|
3887
|
+
* //emit when action starts
|
|
3793
3888
|
* appEmbed.on(EmbedEvent.CopyAEdit, payload => {
|
|
3794
3889
|
* console.log('Copy and edit', payload)}, {start: true })
|
|
3795
|
-
* //
|
|
3890
|
+
* //emit when action ends
|
|
3796
3891
|
* appEmbed.on(EmbedEvent.CopyAEdit, payload => {
|
|
3797
3892
|
* console.log('Copy and edit', payload)})
|
|
3798
3893
|
*```
|
|
@@ -3894,7 +3989,7 @@ export declare enum EmbedEvent {
|
|
|
3894
3989
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
3895
3990
|
* @example
|
|
3896
3991
|
*```js
|
|
3897
|
-
* liveboardEmbed.
|
|
3992
|
+
* liveboardEmbed.on(EmbedEvent.Present)
|
|
3898
3993
|
*```
|
|
3899
3994
|
* @example
|
|
3900
3995
|
*```js
|
|
@@ -3910,7 +4005,7 @@ export declare enum EmbedEvent {
|
|
|
3910
4005
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
3911
4006
|
* @example
|
|
3912
4007
|
*```js
|
|
3913
|
-
* liveboardEmbed.
|
|
4008
|
+
* liveboardEmbed.on(EmbedEvent.Delete,
|
|
3914
4009
|
* {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
3915
4010
|
*```
|
|
3916
4011
|
*/
|
|
@@ -3921,7 +4016,7 @@ export declare enum EmbedEvent {
|
|
|
3921
4016
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
3922
4017
|
* @example
|
|
3923
4018
|
*```js
|
|
3924
|
-
* liveboardEmbed.
|
|
4019
|
+
* liveboardEmbed.on(EmbedEvent.SchedulesList)
|
|
3925
4020
|
*```
|
|
3926
4021
|
*/
|
|
3927
4022
|
SchedulesList = "schedule-list",
|
|
@@ -3931,7 +4026,7 @@ export declare enum EmbedEvent {
|
|
|
3931
4026
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
3932
4027
|
* @example
|
|
3933
4028
|
*```js
|
|
3934
|
-
* liveboardEmbed.
|
|
4029
|
+
* liveboardEmbed.on(EmbedEvent.Cancel)
|
|
3935
4030
|
*```
|
|
3936
4031
|
*/
|
|
3937
4032
|
Cancel = "cancel",
|
|
@@ -3941,7 +4036,7 @@ export declare enum EmbedEvent {
|
|
|
3941
4036
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
3942
4037
|
* @example
|
|
3943
4038
|
*```js
|
|
3944
|
-
* liveboardEmbed.
|
|
4039
|
+
* liveboardEmbed.on(EmbedEvent.Explore, {
|
|
3945
4040
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
3946
4041
|
*```
|
|
3947
4042
|
*/
|
|
@@ -3952,7 +4047,7 @@ export declare enum EmbedEvent {
|
|
|
3952
4047
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
3953
4048
|
* @example
|
|
3954
4049
|
*```js
|
|
3955
|
-
* liveboardEmbed.
|
|
4050
|
+
* liveboardEmbed.on(EmbedEvent.CopyLink, {
|
|
3956
4051
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
3957
4052
|
*```
|
|
3958
4053
|
*/
|
|
@@ -4330,7 +4425,7 @@ export declare enum HostEvent {
|
|
|
4330
4425
|
*
|
|
4331
4426
|
* @example
|
|
4332
4427
|
* ```js
|
|
4333
|
-
* liveboardEmbed.trigger(HostEvent.
|
|
4428
|
+
* liveboardEmbed.trigger(HostEvent.getExportRequestForCurrentPinboard).then(
|
|
4334
4429
|
* data=>console.log(data))
|
|
4335
4430
|
* ```
|
|
4336
4431
|
* @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1.sw
|
|
@@ -4794,7 +4889,7 @@ export declare enum HostEvent {
|
|
|
4794
4889
|
*
|
|
4795
4890
|
* ```js
|
|
4796
4891
|
* liveboardEmbed.trigger(HostEvent.UpdateFilters, {
|
|
4797
|
-
* filter: { column: 'column name', oper: 'IN', values: [1,2,3]
|
|
4892
|
+
* filter: { column: 'column name', oper: 'IN', values: [1,2,3]}
|
|
4798
4893
|
* })
|
|
4799
4894
|
* ```
|
|
4800
4895
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
@@ -5944,7 +6039,7 @@ export declare enum Action {
|
|
|
5944
6039
|
* disabledActions: [Action.TML] // to disable all TML actions
|
|
5945
6040
|
* ```
|
|
5946
6041
|
*
|
|
5947
|
-
* @version SDK : 1.28.
|
|
6042
|
+
* @version SDK : 1.28.3 | Thoughtspot: 9.12.0.cl
|
|
5948
6043
|
*/
|
|
5949
6044
|
TML = "tml",
|
|
5950
6045
|
/**
|
|
@@ -6518,6 +6613,16 @@ export interface UnderlyingDataPoint {
|
|
|
6518
6613
|
* const data = await underlying.fetchData(0, 100);
|
|
6519
6614
|
* })
|
|
6520
6615
|
* ```
|
|
6616
|
+
* @example
|
|
6617
|
+
* ```js
|
|
6618
|
+
* embed.on(EmbedEvent.Data, async (e) => {
|
|
6619
|
+
* const service = await embed.getAnswerService();
|
|
6620
|
+
* await service.addColumns([
|
|
6621
|
+
* "<column guid>"
|
|
6622
|
+
* ]);
|
|
6623
|
+
* console.log(await service.fetchData());
|
|
6624
|
+
* });
|
|
6625
|
+
* ```
|
|
6521
6626
|
* @version SDK: 1.25.0| ThoughtSpot: 9.10.0.cl
|
|
6522
6627
|
* @group Events
|
|
6523
6628
|
*/
|
|
@@ -6657,7 +6762,7 @@ export declare function uploadMixpanelEvent(eventId: string, eventProps?: {}): v
|
|
|
6657
6762
|
*
|
|
6658
6763
|
* @param sessionInfo
|
|
6659
6764
|
*/
|
|
6660
|
-
export declare function initMixpanel(sessionInfo:
|
|
6765
|
+
export declare function initMixpanel(sessionInfo: SessionInfo): void;
|
|
6661
6766
|
/**
|
|
6662
6767
|
*
|
|
6663
6768
|
*/
|
|
@@ -6674,7 +6779,7 @@ export declare function testResetMixpanel(): void;
|
|
|
6674
6779
|
*/
|
|
6675
6780
|
export declare const tokenizedFetch: typeof fetch;
|
|
6676
6781
|
|
|
6677
|
-
export declare
|
|
6782
|
+
export declare function getAuthenticationToken(embedConfig: EmbedConfig): Promise<string>;
|
|
6678
6783
|
/**
|
|
6679
6784
|
* Resets the auth token and a new token will be fetched on the next request.
|
|
6680
6785
|
*
|