@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
|
@@ -17,7 +17,8 @@ declare module '@thoughtspot/visual-embed-sdk' {
|
|
|
17
17
|
import { PinboardEmbed, LiveboardViewConfig, LiveboardEmbed } from '@thoughtspot/visual-embed-sdk/embed/liveboard';
|
|
18
18
|
import { SearchEmbed, SearchViewConfig } from '@thoughtspot/visual-embed-sdk/embed/search';
|
|
19
19
|
import { SearchBarEmbed, SearchBarViewConfig } from '@thoughtspot/visual-embed-sdk/embed/search-bar';
|
|
20
|
-
import { AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter
|
|
20
|
+
import { AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter } from '@thoughtspot/visual-embed-sdk/auth';
|
|
21
|
+
import { getSessionInfo } from '@thoughtspot/visual-embed-sdk/utils/sessionInfoService';
|
|
21
22
|
import { AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig, PrefetchFeatures, FrameParams, DOMSelector, HomeLeftNavItem, HomepageModule, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, ContextMenuTriggerOptions, RuntimeParameter, LogLevel, VizPoint, CustomActionPayload } from '@thoughtspot/visual-embed-sdk/types';
|
|
22
23
|
import { CustomCssVariables } from '@thoughtspot/visual-embed-sdk/css-variables';
|
|
23
24
|
import { SageEmbed, SageViewConfig } from '@thoughtspot/visual-embed-sdk/embed/sage';
|
|
@@ -1383,12 +1384,6 @@ declare module '@thoughtspot/visual-embed-sdk/auth' {
|
|
|
1383
1384
|
export let samlAuthWindow: Window;
|
|
1384
1385
|
export let samlCompletionPromise: Promise<void>;
|
|
1385
1386
|
export const SSO_REDIRECTION_MARKER_GUID = "5e16222e-ef02-43e9-9fbd-24226bf3ce5b";
|
|
1386
|
-
interface sessionInfoInterface {
|
|
1387
|
-
userGUID: any;
|
|
1388
|
-
isPublicUser: any;
|
|
1389
|
-
mixpanelToken: any;
|
|
1390
|
-
[key: string]: any;
|
|
1391
|
-
}
|
|
1392
1387
|
/**
|
|
1393
1388
|
* Enum for auth failure types. This is the parameter passed to the listner
|
|
1394
1389
|
* of {@link AuthStatus.FAILURE}.
|
|
@@ -1506,7 +1501,7 @@ declare module '@thoughtspot/visual-embed-sdk/auth' {
|
|
|
1506
1501
|
/**
|
|
1507
1502
|
*
|
|
1508
1503
|
*/
|
|
1509
|
-
export function notifyAuthSuccess(): void
|
|
1504
|
+
export function notifyAuthSuccess(): Promise<void>;
|
|
1510
1505
|
/**
|
|
1511
1506
|
*
|
|
1512
1507
|
* @param failureType
|
|
@@ -1516,19 +1511,23 @@ declare module '@thoughtspot/visual-embed-sdk/auth' {
|
|
|
1516
1511
|
*
|
|
1517
1512
|
*/
|
|
1518
1513
|
export function notifyLogout(): void;
|
|
1519
|
-
export const initSession: (sessionDetails: sessionInfoInterface) => void;
|
|
1520
|
-
export const getSessionDetails: (sessionInfoResp: any) => sessionInfoInterface;
|
|
1521
1514
|
/**
|
|
1522
|
-
*
|
|
1515
|
+
* Services to be called after the login is successful,
|
|
1516
|
+
* This should be called after the cookie is set for cookie auth or
|
|
1517
|
+
* after the token is set for cookieless.
|
|
1518
|
+
*
|
|
1519
|
+
* @return {Promise<void>}
|
|
1520
|
+
* @example
|
|
1521
|
+
* ```js
|
|
1522
|
+
* await postLoginService();
|
|
1523
|
+
* ```
|
|
1524
|
+
* @version SDK: 1.28.3 | ThoughtSpot: *
|
|
1523
1525
|
*/
|
|
1524
|
-
export function
|
|
1526
|
+
export function postLoginService(): Promise<void>;
|
|
1525
1527
|
/**
|
|
1526
|
-
* Return
|
|
1527
|
-
* authentication is successful. And info is available.
|
|
1528
|
-
*
|
|
1529
|
-
* @group Global methods
|
|
1528
|
+
* Return releaseVersion if available
|
|
1530
1529
|
*/
|
|
1531
|
-
export function
|
|
1530
|
+
export function getReleaseVersion(): string;
|
|
1532
1531
|
/**
|
|
1533
1532
|
* Perform token based authentication
|
|
1534
1533
|
*
|
|
@@ -1564,7 +1563,74 @@ declare module '@thoughtspot/visual-embed-sdk/auth' {
|
|
|
1564
1563
|
* Check if we are authenticated to the ThoughtSpot cluster
|
|
1565
1564
|
*/
|
|
1566
1565
|
export const isAuthenticated: () => boolean;
|
|
1567
|
-
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
declare module '@thoughtspot/visual-embed-sdk/utils/sessionInfoService' {
|
|
1569
|
+
export type SessionInfo = {
|
|
1570
|
+
releaseVersion: string;
|
|
1571
|
+
userGUID: string;
|
|
1572
|
+
currentOrgId: number;
|
|
1573
|
+
privileges: string[];
|
|
1574
|
+
mixpanelToken: string;
|
|
1575
|
+
isPublicUser: boolean;
|
|
1576
|
+
clusterId: string;
|
|
1577
|
+
clusterName: string;
|
|
1578
|
+
[key: string]: any;
|
|
1579
|
+
};
|
|
1580
|
+
/**
|
|
1581
|
+
* Returns the session info object and caches it for future use.
|
|
1582
|
+
* Once fetched the session info object is cached and returned from the cache on
|
|
1583
|
+
* subsequent calls.
|
|
1584
|
+
*
|
|
1585
|
+
* @example ```js
|
|
1586
|
+
* const sessionInfo = await getSessionInfo();
|
|
1587
|
+
* console.log(sessionInfo);
|
|
1588
|
+
* ```
|
|
1589
|
+
* @version SDK: 1.28.3 | ThoughtSpot: *
|
|
1590
|
+
* @returns {Promise<SessionInfo>} The session info object.
|
|
1591
|
+
*/
|
|
1592
|
+
export function getSessionInfo(): Promise<SessionInfo>;
|
|
1593
|
+
/**
|
|
1594
|
+
* Returns the cached session info object. If the client is not authenticated the
|
|
1595
|
+
* function will return null.
|
|
1596
|
+
*
|
|
1597
|
+
* @example ```js
|
|
1598
|
+
* const sessionInfo = getCachedSessionInfo();
|
|
1599
|
+
* if (sessionInfo) {
|
|
1600
|
+
* console.log(sessionInfo);
|
|
1601
|
+
* } else {
|
|
1602
|
+
* console.log('Not authenticated');
|
|
1603
|
+
* }
|
|
1604
|
+
* ```
|
|
1605
|
+
* @returns {SessionInfo | null} The session info object.
|
|
1606
|
+
* @version SDK: 1.28.3 | ThoughtSpot: *
|
|
1607
|
+
*/
|
|
1608
|
+
export function getCachedSessionInfo(): SessionInfo | null;
|
|
1609
|
+
/**
|
|
1610
|
+
* Processes the session info response and returns the session info object.
|
|
1611
|
+
*
|
|
1612
|
+
* @param sessionInfoResp {any} Response from the session info API.
|
|
1613
|
+
* @returns {SessionInfo} The session info object.
|
|
1614
|
+
* @example ```js
|
|
1615
|
+
* const sessionInfoResp = await fetch(sessionInfoPath);
|
|
1616
|
+
* const sessionInfo = getSessionDetails(sessionInfoResp);
|
|
1617
|
+
* console.log(sessionInfo);
|
|
1618
|
+
* ```
|
|
1619
|
+
* @version SDK: 1.28.3 | ThoughtSpot: *
|
|
1620
|
+
*/
|
|
1621
|
+
export const getSessionDetails: (sessionInfoResp: any) => SessionInfo;
|
|
1622
|
+
/**
|
|
1623
|
+
* Resets the cached session info object and forces a new fetch on the next call.
|
|
1624
|
+
*
|
|
1625
|
+
* @example ```js
|
|
1626
|
+
* resetCachedSessionInfo();
|
|
1627
|
+
* const sessionInfo = await getSessionInfo();
|
|
1628
|
+
* console.log(sessionInfo);
|
|
1629
|
+
* ```
|
|
1630
|
+
* @version SDK: 1.28.3 | ThoughtSpot ts7.april.cl, 7.2.1
|
|
1631
|
+
* @returns {void}
|
|
1632
|
+
*/
|
|
1633
|
+
export function resetCachedSessionInfo(): void;
|
|
1568
1634
|
}
|
|
1569
1635
|
|
|
1570
1636
|
declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
@@ -2154,6 +2220,23 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2154
2220
|
* @version SDK: 1.28.4 | Thoughtspot: 10.0.0.cl, 9.5.0.sw
|
|
2155
2221
|
*/
|
|
2156
2222
|
currencyFormat?: string;
|
|
2223
|
+
/**
|
|
2224
|
+
* This flag is used to disable the token verification in the SDK.
|
|
2225
|
+
* Enabling this flag will also disable the caching of the token.
|
|
2226
|
+
*
|
|
2227
|
+
* @hidden
|
|
2228
|
+
*
|
|
2229
|
+
* @example
|
|
2230
|
+
* ```js
|
|
2231
|
+
* init({
|
|
2232
|
+
* ...embedConfig,
|
|
2233
|
+
* disableTokenVerification : true
|
|
2234
|
+
* })
|
|
2235
|
+
* ```
|
|
2236
|
+
*
|
|
2237
|
+
* @version SDK: 1.28.5 | Thoughtspot: *
|
|
2238
|
+
*/
|
|
2239
|
+
disableTokenVerification?: boolean;
|
|
2157
2240
|
}
|
|
2158
2241
|
export interface LayoutConfig {
|
|
2159
2242
|
}
|
|
@@ -2753,7 +2836,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2753
2836
|
* a single operand, whereas other operators like BW and IN accept multiple
|
|
2754
2837
|
* operands.
|
|
2755
2838
|
*/
|
|
2756
|
-
values: (number | boolean | string)[];
|
|
2839
|
+
values: (number | boolean | string | bigint)[];
|
|
2757
2840
|
}
|
|
2758
2841
|
/**
|
|
2759
2842
|
* A filter that can be applied to ThoughtSpot Answers, Liveboards, or
|
|
@@ -2807,6 +2890,8 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2807
2890
|
/**
|
|
2808
2891
|
* Authentication has either succeeded or failed.
|
|
2809
2892
|
*
|
|
2893
|
+
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
2894
|
+
*
|
|
2810
2895
|
* @example
|
|
2811
2896
|
*```js
|
|
2812
2897
|
* appEmbed.on(EmbedEvent.AuthInit, payload => {
|
|
@@ -2820,6 +2905,8 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2820
2905
|
* The embed object container has loaded.
|
|
2821
2906
|
*
|
|
2822
2907
|
* @returns timestamp - The timestamp when the event was generated.
|
|
2908
|
+
*
|
|
2909
|
+
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
2823
2910
|
* @example
|
|
2824
2911
|
*```js
|
|
2825
2912
|
* liveboardEmbed.on(EmbedEvent.Load, hideLoader)
|
|
@@ -2834,6 +2921,8 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2834
2921
|
* Data pertaining to answer or Liveboard is received
|
|
2835
2922
|
*
|
|
2836
2923
|
* @return data - The answer or Liveboard data
|
|
2924
|
+
*
|
|
2925
|
+
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
2837
2926
|
* @example
|
|
2838
2927
|
*```js
|
|
2839
2928
|
* liveboardEmbed.on(EmbedEvent.Data, payload => {
|
|
@@ -2852,6 +2941,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2852
2941
|
/**
|
|
2853
2942
|
* Search query has been updated by the user.
|
|
2854
2943
|
*
|
|
2944
|
+
* @version SDK: 1.4.0 | ThoughtSpot: ts7.sep.cl, 8.4.1.sw
|
|
2855
2945
|
* @example
|
|
2856
2946
|
*```js
|
|
2857
2947
|
* searchEmbed.on(EmbedEvent.QueryChanged, payload => console.log('data', payload))
|
|
@@ -2861,12 +2951,14 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2861
2951
|
/**
|
|
2862
2952
|
* A drill-down operation has been performed.
|
|
2863
2953
|
*
|
|
2954
|
+
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
2955
|
+
*
|
|
2864
2956
|
* @returns additionalFilters - Any additional filters applied
|
|
2865
2957
|
* @returns drillDownColumns - The columns on which drill down was performed
|
|
2866
2958
|
* @returns nonFilteredColumns - The columns that were not filtered
|
|
2867
2959
|
* @example
|
|
2868
2960
|
*```js
|
|
2869
|
-
* searchEmbed.
|
|
2961
|
+
* searchEmbed.on(EmbedEvent.DrillDown, {
|
|
2870
2962
|
* points: {
|
|
2871
2963
|
* clickedPoint,
|
|
2872
2964
|
* selectedPoints: selectedPoint
|
|
@@ -2899,6 +2991,8 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2899
2991
|
* One or more data sources have been selected.
|
|
2900
2992
|
*
|
|
2901
2993
|
* @returns dataSourceIds - the list of data sources
|
|
2994
|
+
*
|
|
2995
|
+
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
2902
2996
|
* @example
|
|
2903
2997
|
* ```js
|
|
2904
2998
|
* searchEmbed.on(EmbedEvent.DataSourceSelected, payload => {
|
|
@@ -2926,6 +3020,8 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2926
3020
|
* @returns actionId - ID of the custom action
|
|
2927
3021
|
* @returns payload {@link CustomActionPayload} - Response payload with the
|
|
2928
3022
|
* Answer or Liveboard data
|
|
3023
|
+
*
|
|
3024
|
+
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
2929
3025
|
* @example
|
|
2930
3026
|
* ```js
|
|
2931
3027
|
* appEmbed.on(EmbedEvent.customAction, payload => {
|
|
@@ -2973,21 +3069,18 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2973
3069
|
/**
|
|
2974
3070
|
* An error has occurred. This event is fired for the following error types:
|
|
2975
3071
|
*
|
|
2976
|
-
* API - API call failure error.
|
|
2977
|
-
*
|
|
2978
|
-
*
|
|
2979
|
-
*
|
|
2980
|
-
*
|
|
2981
|
-
*
|
|
2982
|
-
* NON_EXIST_FILTER - Error due to a non-existent filter.
|
|
3072
|
+
* `API` - API call failure error.
|
|
3073
|
+
* `FULLSCREEN` - Error when presenting a Liveboard or visualization in full screen mode.
|
|
3074
|
+
* `SINGLE_VALUE_FILTER` - Error due to multiple values in the single value filter.
|
|
3075
|
+
* `NON_EXIST_FILTER` - Error due to a non-existent filter.
|
|
3076
|
+
* `INVALID_DATE_VALUE` - Invalid date value error.
|
|
3077
|
+
* `INVALID_OPERATOR` - Use of invalid operator during filter application.
|
|
2983
3078
|
*
|
|
2984
|
-
*
|
|
2985
|
-
*
|
|
2986
|
-
* INVALID_OPERATOR - Use of invalid operator during filter application.
|
|
2987
|
-
*
|
|
2988
|
-
* For more information, see [Developer Documentation](https://developers.thoughtspot.com/docs/events-app-integration#errorType)
|
|
3079
|
+
* For more information, see https://developers.thoughtspot.com/docs/events-app-integration#errorType
|
|
2989
3080
|
*
|
|
2990
3081
|
* @returns error - An error object or message
|
|
3082
|
+
*
|
|
3083
|
+
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
2991
3084
|
* @example
|
|
2992
3085
|
* ```js
|
|
2993
3086
|
* // API error
|
|
@@ -3013,6 +3106,9 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3013
3106
|
* The embedded object has sent an alert.
|
|
3014
3107
|
*
|
|
3015
3108
|
* @returns alert - An alert object
|
|
3109
|
+
*
|
|
3110
|
+
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
3111
|
+
*
|
|
3016
3112
|
* @example
|
|
3017
3113
|
* ```js
|
|
3018
3114
|
* searchEmbed.on(EmbedEvent.Alert)
|
|
@@ -3022,6 +3118,8 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3022
3118
|
/**
|
|
3023
3119
|
* The ThoughtSpot auth session has expired.
|
|
3024
3120
|
*
|
|
3121
|
+
* @version SDK: 1.4.0 | ThoughtSpot: ts7.sep.cl, 8.4.1.sw
|
|
3122
|
+
*
|
|
3025
3123
|
* @example
|
|
3026
3124
|
*```js
|
|
3027
3125
|
* appEmbed.on(EmbedEvent.AuthExpire, showAuthExpired)
|
|
@@ -3075,6 +3173,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3075
3173
|
/**
|
|
3076
3174
|
* Detects the route change.
|
|
3077
3175
|
*
|
|
3176
|
+
* @version SDK: 1.7.0 | ThoughtSpot: 8.0.0.cl, 8.4.1.sw
|
|
3078
3177
|
* @example
|
|
3079
3178
|
*```js
|
|
3080
3179
|
* searchEmbed.on(EmbedEvent.RouteChange, payload =>
|
|
@@ -3155,8 +3254,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3155
3254
|
*/
|
|
3156
3255
|
LiveboardRendered = "PinboardRendered",
|
|
3157
3256
|
/**
|
|
3158
|
-
*
|
|
3159
|
-
* is triggered on all events.
|
|
3257
|
+
* Emits all events.
|
|
3160
3258
|
*
|
|
3161
3259
|
* @Version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
|
|
3162
3260
|
* @example
|
|
@@ -3173,13 +3271,13 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3173
3271
|
* @Version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
3174
3272
|
* @example
|
|
3175
3273
|
*```js
|
|
3176
|
-
* //
|
|
3274
|
+
* //Emit when action starts
|
|
3177
3275
|
* searchEmbed.on(EmbedEvent.Save, payload => {
|
|
3178
3276
|
* console.log('Save', payload)
|
|
3179
3277
|
* }, {
|
|
3180
3278
|
* start: true
|
|
3181
3279
|
* })
|
|
3182
|
-
* //
|
|
3280
|
+
* //emit when action ends
|
|
3183
3281
|
* searchEmbed.on(EmbedEvent.Save, payload => {
|
|
3184
3282
|
* console.log('Save', payload)
|
|
3185
3283
|
* })
|
|
@@ -3197,7 +3295,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3197
3295
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
3198
3296
|
* @example
|
|
3199
3297
|
*```js
|
|
3200
|
-
* liveboardEmbed.
|
|
3298
|
+
* liveboardEmbed.on(EmbedEvent.Download, {
|
|
3201
3299
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
3202
3300
|
* })
|
|
3203
3301
|
*```
|
|
@@ -3209,10 +3307,10 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3209
3307
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.0.sw
|
|
3210
3308
|
* @example
|
|
3211
3309
|
*```js
|
|
3212
|
-
* //
|
|
3310
|
+
* //emit when action starts
|
|
3213
3311
|
* searchEmbed.on(EmbedEvent.DownloadAsPng, payload => {
|
|
3214
3312
|
* console.log('download PNG', payload)}, {start: true })
|
|
3215
|
-
* //
|
|
3313
|
+
* //emit when action ends
|
|
3216
3314
|
* searchEmbed.on(EmbedEvent.DownloadAsPng, payload => {
|
|
3217
3315
|
* console.log('download PNG', payload)})
|
|
3218
3316
|
*```
|
|
@@ -3224,10 +3322,10 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3224
3322
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
3225
3323
|
* @example
|
|
3226
3324
|
*```js
|
|
3227
|
-
* //
|
|
3325
|
+
* //emit when action starts
|
|
3228
3326
|
* searchEmbed.on(EmbedEvent.DownloadAsPdf, payload => {
|
|
3229
3327
|
* console.log('download PDF', payload)}, {start: true })
|
|
3230
|
-
* //
|
|
3328
|
+
* //emit when action ends
|
|
3231
3329
|
* searchEmbed.on(EmbedEvent.DownloadAsPdf, payload => {
|
|
3232
3330
|
* console.log('download PDF', payload)})
|
|
3233
3331
|
*```
|
|
@@ -3239,10 +3337,10 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3239
3337
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
3240
3338
|
* @example
|
|
3241
3339
|
*```js
|
|
3242
|
-
* //
|
|
3340
|
+
* //emit when action starts
|
|
3243
3341
|
* searchEmbed.on(EmbedEvent.DownloadAsCSV, payload => {
|
|
3244
3342
|
* console.log('download CSV', payload)}, {start: true })
|
|
3245
|
-
* //
|
|
3343
|
+
* //emit when action ends
|
|
3246
3344
|
* searchEmbed.on(EmbedEvent.DownloadAsCSV, payload => {
|
|
3247
3345
|
* console.log('download CSV', payload)})
|
|
3248
3346
|
*```
|
|
@@ -3254,10 +3352,10 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3254
3352
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
3255
3353
|
* @example
|
|
3256
3354
|
*```js
|
|
3257
|
-
* //
|
|
3355
|
+
* //emit when action starts
|
|
3258
3356
|
* searchEmbed.on(EmbedEvent.DownloadAsXlsx, payload => {
|
|
3259
3357
|
* console.log('download Xlsx', payload)}, { start: true })
|
|
3260
|
-
* //
|
|
3358
|
+
* //emit when action ends
|
|
3261
3359
|
* searchEmbed.on(EmbedEvent.DownloadAsXlsx, payload => {
|
|
3262
3360
|
* console.log('download Xlsx', payload)})
|
|
3263
3361
|
*```
|
|
@@ -3269,7 +3367,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3269
3367
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
3270
3368
|
* @example
|
|
3271
3369
|
*```js
|
|
3272
|
-
* //
|
|
3370
|
+
* //emit when action starts
|
|
3273
3371
|
* appEmbed.on(EmbedEvent.AnswerDelete, payload => {
|
|
3274
3372
|
* console.log('delete answer', payload)}, {start: true })
|
|
3275
3373
|
* //trigger when action is completed
|
|
@@ -3284,13 +3382,13 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3284
3382
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
3285
3383
|
* @example
|
|
3286
3384
|
*```js
|
|
3287
|
-
* //
|
|
3385
|
+
* //emit when action starts
|
|
3288
3386
|
* searchEmbed.on(EmbedEvent.Pin, payload => {
|
|
3289
3387
|
* console.log('pin', payload)
|
|
3290
3388
|
* }, {
|
|
3291
3389
|
* start: true
|
|
3292
3390
|
* })
|
|
3293
|
-
* //
|
|
3391
|
+
* //emit when action ends
|
|
3294
3392
|
* searchEmbed.on(EmbedEvent.Pin, payload => {
|
|
3295
3393
|
* console.log('pin', payload)
|
|
3296
3394
|
* })
|
|
@@ -3303,13 +3401,13 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3303
3401
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
3304
3402
|
* @example
|
|
3305
3403
|
*```js
|
|
3306
|
-
* //
|
|
3404
|
+
* //emit when action starts
|
|
3307
3405
|
* searchEmbed.on(EmbedEvent.SpotIQAnalyze, payload => {
|
|
3308
3406
|
* console.log('SpotIQAnalyze', payload)
|
|
3309
3407
|
* }, {
|
|
3310
3408
|
* start: true
|
|
3311
3409
|
* })
|
|
3312
|
-
* //
|
|
3410
|
+
* //emit when action ends
|
|
3313
3411
|
* searchEmbed.on(EmbedEvent.SpotIQAnalyze, payload => {
|
|
3314
3412
|
* console.log('SpotIQ analyze', payload)
|
|
3315
3413
|
* })
|
|
@@ -3322,13 +3420,13 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3322
3420
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
3323
3421
|
* @example
|
|
3324
3422
|
*```js
|
|
3325
|
-
* //
|
|
3423
|
+
* //emit when action starts
|
|
3326
3424
|
* searchEmbed.on(EmbedEvent.Share, payload => {
|
|
3327
3425
|
* console.log('Share', payload)
|
|
3328
3426
|
* }, {
|
|
3329
3427
|
* start: true
|
|
3330
3428
|
* })
|
|
3331
|
-
* //
|
|
3429
|
+
* //emit when action ends
|
|
3332
3430
|
* searchEmbed.on(EmbedEvent.Share, payload => {
|
|
3333
3431
|
* console.log('Share', payload)
|
|
3334
3432
|
* })
|
|
@@ -3403,10 +3501,10 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3403
3501
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
3404
3502
|
* @example
|
|
3405
3503
|
*```js
|
|
3406
|
-
* //
|
|
3504
|
+
* //emit when action starts
|
|
3407
3505
|
* searchEmbed.on(EmbedEvent.ExportTML, payload => {
|
|
3408
3506
|
* console.log('Export TML', payload)}, { start: true })
|
|
3409
|
-
* //
|
|
3507
|
+
* //emit when action ends
|
|
3410
3508
|
* searchEmbed.on(EmbedEvent.ExportTML, payload => {
|
|
3411
3509
|
* console.log('Export TML', payload)})
|
|
3412
3510
|
*```
|
|
@@ -3430,10 +3528,10 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3430
3528
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
3431
3529
|
* @example
|
|
3432
3530
|
*```js
|
|
3433
|
-
* //
|
|
3531
|
+
* //emit when action starts
|
|
3434
3532
|
* appEmbed.on(EmbedEvent.CopyAEdit, payload => {
|
|
3435
3533
|
* console.log('Copy and edit', payload)}, {start: true })
|
|
3436
|
-
* //
|
|
3534
|
+
* //emit when action ends
|
|
3437
3535
|
* appEmbed.on(EmbedEvent.CopyAEdit, payload => {
|
|
3438
3536
|
* console.log('Copy and edit', payload)})
|
|
3439
3537
|
*```
|
|
@@ -3535,7 +3633,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3535
3633
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
3536
3634
|
* @example
|
|
3537
3635
|
*```js
|
|
3538
|
-
* liveboardEmbed.
|
|
3636
|
+
* liveboardEmbed.on(EmbedEvent.Present)
|
|
3539
3637
|
*```
|
|
3540
3638
|
* @example
|
|
3541
3639
|
*```js
|
|
@@ -3551,7 +3649,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3551
3649
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
3552
3650
|
* @example
|
|
3553
3651
|
*```js
|
|
3554
|
-
* liveboardEmbed.
|
|
3652
|
+
* liveboardEmbed.on(EmbedEvent.Delete,
|
|
3555
3653
|
* {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
3556
3654
|
*```
|
|
3557
3655
|
*/
|
|
@@ -3562,7 +3660,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3562
3660
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
3563
3661
|
* @example
|
|
3564
3662
|
*```js
|
|
3565
|
-
* liveboardEmbed.
|
|
3663
|
+
* liveboardEmbed.on(EmbedEvent.SchedulesList)
|
|
3566
3664
|
*```
|
|
3567
3665
|
*/
|
|
3568
3666
|
SchedulesList = "schedule-list",
|
|
@@ -3572,7 +3670,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3572
3670
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
3573
3671
|
* @example
|
|
3574
3672
|
*```js
|
|
3575
|
-
* liveboardEmbed.
|
|
3673
|
+
* liveboardEmbed.on(EmbedEvent.Cancel)
|
|
3576
3674
|
*```
|
|
3577
3675
|
*/
|
|
3578
3676
|
Cancel = "cancel",
|
|
@@ -3582,7 +3680,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3582
3680
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
3583
3681
|
* @example
|
|
3584
3682
|
*```js
|
|
3585
|
-
* liveboardEmbed.
|
|
3683
|
+
* liveboardEmbed.on(EmbedEvent.Explore, {
|
|
3586
3684
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
3587
3685
|
*```
|
|
3588
3686
|
*/
|
|
@@ -3593,7 +3691,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3593
3691
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
3594
3692
|
* @example
|
|
3595
3693
|
*```js
|
|
3596
|
-
* liveboardEmbed.
|
|
3694
|
+
* liveboardEmbed.on(EmbedEvent.CopyLink, {
|
|
3597
3695
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
3598
3696
|
*```
|
|
3599
3697
|
*/
|
|
@@ -3971,7 +4069,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3971
4069
|
*
|
|
3972
4070
|
* @example
|
|
3973
4071
|
* ```js
|
|
3974
|
-
* liveboardEmbed.trigger(HostEvent.
|
|
4072
|
+
* liveboardEmbed.trigger(HostEvent.getExportRequestForCurrentPinboard).then(
|
|
3975
4073
|
* data=>console.log(data))
|
|
3976
4074
|
* ```
|
|
3977
4075
|
* @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1.sw
|
|
@@ -4435,7 +4533,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
4435
4533
|
*
|
|
4436
4534
|
* ```js
|
|
4437
4535
|
* liveboardEmbed.trigger(HostEvent.UpdateFilters, {
|
|
4438
|
-
* filter: { column: 'column name', oper: 'IN', values: [1,2,3]
|
|
4536
|
+
* filter: { column: 'column name', oper: 'IN', values: [1,2,3]}
|
|
4439
4537
|
* })
|
|
4440
4538
|
* ```
|
|
4441
4539
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
@@ -5585,7 +5683,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
5585
5683
|
* disabledActions: [Action.TML] // to disable all TML actions
|
|
5586
5684
|
* ```
|
|
5587
5685
|
*
|
|
5588
|
-
* @version SDK : 1.28.
|
|
5686
|
+
* @version SDK : 1.28.3 | Thoughtspot: 9.12.0.cl
|
|
5589
5687
|
*/
|
|
5590
5688
|
TML = "tml",
|
|
5591
5689
|
/**
|
|
@@ -6330,6 +6428,16 @@ declare module '@thoughtspot/visual-embed-sdk/utils/graphql/answerService/answer
|
|
|
6330
6428
|
* const data = await underlying.fetchData(0, 100);
|
|
6331
6429
|
* })
|
|
6332
6430
|
* ```
|
|
6431
|
+
* @example
|
|
6432
|
+
* ```js
|
|
6433
|
+
* embed.on(EmbedEvent.Data, async (e) => {
|
|
6434
|
+
* const service = await embed.getAnswerService();
|
|
6435
|
+
* await service.addColumns([
|
|
6436
|
+
* "<column guid>"
|
|
6437
|
+
* ]);
|
|
6438
|
+
* console.log(await service.fetchData());
|
|
6439
|
+
* });
|
|
6440
|
+
* ```
|
|
6333
6441
|
* @version SDK: 1.25.0| ThoughtSpot: 9.10.0.cl
|
|
6334
6442
|
* @group Events
|
|
6335
6443
|
*/
|
|
@@ -6449,6 +6557,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/embedConfig' {
|
|
|
6449
6557
|
}
|
|
6450
6558
|
|
|
6451
6559
|
declare module '@thoughtspot/visual-embed-sdk/mixpanel-service' {
|
|
6560
|
+
import { SessionInfo } from '@thoughtspot/visual-embed-sdk/utils/sessionInfoService';
|
|
6452
6561
|
export const EndPoints: {
|
|
6453
6562
|
CONFIG: string;
|
|
6454
6563
|
};
|
|
@@ -6474,7 +6583,7 @@ declare module '@thoughtspot/visual-embed-sdk/mixpanel-service' {
|
|
|
6474
6583
|
*
|
|
6475
6584
|
* @param sessionInfo
|
|
6476
6585
|
*/
|
|
6477
|
-
export function initMixpanel(sessionInfo:
|
|
6586
|
+
export function initMixpanel(sessionInfo: SessionInfo): void;
|
|
6478
6587
|
/**
|
|
6479
6588
|
*
|
|
6480
6589
|
*/
|
|
@@ -6496,7 +6605,7 @@ declare module '@thoughtspot/visual-embed-sdk/tokenizedFetch' {
|
|
|
6496
6605
|
|
|
6497
6606
|
declare module '@thoughtspot/visual-embed-sdk/authToken' {
|
|
6498
6607
|
import { EmbedConfig } from '@thoughtspot/visual-embed-sdk/types';
|
|
6499
|
-
export
|
|
6608
|
+
export function getAuthenticationToken(embedConfig: EmbedConfig): Promise<string>;
|
|
6500
6609
|
/**
|
|
6501
6610
|
* Resets the auth token and a new token will be fetched on the next request.
|
|
6502
6611
|
*
|