@thoughtspot/visual-embed-sdk 1.26.6 → 1.26.7
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/README.md +2 -2
- package/cjs/package.json +1 -1
- package/cjs/src/auth.d.ts +4 -4
- package/cjs/src/auth.d.ts.map +1 -1
- package/cjs/src/auth.js +16 -9
- package/cjs/src/auth.js.map +1 -1
- package/cjs/src/embed/app.d.ts +15 -15
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +4 -3
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +5 -4
- package/cjs/src/embed/app.spec.js.map +1 -1
- package/cjs/src/embed/base.d.ts +1 -1
- package/cjs/src/embed/base.d.ts.map +1 -1
- package/cjs/src/embed/base.js +9 -6
- package/cjs/src/embed/base.js.map +1 -1
- package/cjs/src/embed/base.spec.js +4 -3
- package/cjs/src/embed/base.spec.js.map +1 -1
- package/cjs/src/embed/embed.spec.js +2 -1
- package/cjs/src/embed/embed.spec.js.map +1 -1
- package/cjs/src/embed/embedConfig.d.ts +2 -1
- package/cjs/src/embed/embedConfig.d.ts.map +1 -1
- package/cjs/src/embed/embedConfig.js +2 -0
- package/cjs/src/embed/embedConfig.js.map +1 -1
- package/cjs/src/embed/events.spec.js +3 -2
- package/cjs/src/embed/events.spec.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts +35 -23
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +8 -4
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +2 -1
- package/cjs/src/embed/liveboard.spec.js.map +1 -1
- package/cjs/src/embed/sage.d.ts +48 -30
- package/cjs/src/embed/sage.d.ts.map +1 -1
- package/cjs/src/embed/sage.js +7 -6
- package/cjs/src/embed/sage.js.map +1 -1
- package/cjs/src/embed/sage.spec.js +3 -3
- package/cjs/src/embed/sage.spec.js.map +1 -1
- package/cjs/src/embed/search-bar.d.ts +22 -6
- package/cjs/src/embed/search-bar.d.ts.map +1 -1
- package/cjs/src/embed/search-bar.js.map +1 -1
- package/cjs/src/embed/search.d.ts +35 -16
- package/cjs/src/embed/search.d.ts.map +1 -1
- package/cjs/src/embed/search.js +10 -6
- package/cjs/src/embed/search.js.map +1 -1
- package/cjs/src/embed/search.spec.js +10 -0
- package/cjs/src/embed/search.spec.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts +2 -1
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +45 -22
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +153 -32
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/index.d.ts +2 -2
- 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.map +1 -1
- package/cjs/src/mixpanel-service.js +2 -1
- package/cjs/src/mixpanel-service.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 +2 -2
- package/cjs/src/react/index.spec.js.map +1 -1
- package/cjs/src/types.d.ts +742 -237
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +653 -169
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/authService/authService.d.ts.map +1 -1
- package/cjs/src/utils/authService/authService.js +3 -2
- package/cjs/src/utils/authService/authService.js.map +1 -1
- package/cjs/src/utils/authService/authService.spec.js +3 -2
- package/cjs/src/utils/authService/authService.spec.js.map +1 -1
- package/cjs/src/utils/authService/tokenizedAuthService.d.ts.map +1 -1
- package/cjs/src/utils/authService/tokenizedAuthService.js +2 -1
- package/cjs/src/utils/authService/tokenizedAuthService.js.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.d.ts +2 -4
- package/cjs/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.js +2 -4
- package/cjs/src/utils/graphql/answerService/answerService.js.map +1 -1
- package/cjs/src/utils/logger.d.ts +18 -0
- package/cjs/src/utils/logger.d.ts.map +1 -0
- package/cjs/src/utils/logger.js +80 -0
- package/cjs/src/utils/logger.js.map +1 -0
- package/cjs/src/utils/logger.spec.d.ts +25 -0
- package/cjs/src/utils/logger.spec.d.ts.map +1 -0
- package/cjs/src/utils/logger.spec.js +116 -0
- package/cjs/src/utils/logger.spec.js.map +1 -0
- package/cjs/src/utils/processData.d.ts +6 -0
- package/cjs/src/utils/processData.d.ts.map +1 -1
- package/cjs/src/utils/processData.js +5 -1
- package/cjs/src/utils/processData.js.map +1 -1
- package/cjs/src/utils/processTrigger.js +1 -1
- package/dist/src/auth.d.ts +4 -4
- package/dist/src/auth.d.ts.map +1 -1
- package/dist/src/embed/app.d.ts +15 -15
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/base.d.ts +1 -1
- package/dist/src/embed/base.d.ts.map +1 -1
- package/dist/src/embed/embedConfig.d.ts +2 -1
- package/dist/src/embed/embedConfig.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +35 -23
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/sage.d.ts +48 -30
- package/dist/src/embed/sage.d.ts.map +1 -1
- package/dist/src/embed/search-bar.d.ts +22 -6
- package/dist/src/embed/search-bar.d.ts.map +1 -1
- package/dist/src/embed/search.d.ts +35 -16
- package/dist/src/embed/search.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts +2 -1
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/index.d.ts +2 -2
- package/dist/src/index.d.ts.map +1 -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 +742 -237
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/authService/authService.d.ts.map +1 -1
- package/dist/src/utils/authService/tokenizedAuthService.d.ts.map +1 -1
- package/dist/src/utils/graphql/answerService/answerService.d.ts +2 -4
- package/dist/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/dist/src/utils/logger.d.ts +18 -0
- package/dist/src/utils/logger.d.ts.map +1 -0
- package/dist/src/utils/logger.spec.d.ts +25 -0
- package/dist/src/utils/logger.spec.d.ts.map +1 -0
- package/dist/src/utils/processData.d.ts +6 -0
- package/dist/src/utils/processData.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +3716 -3107
- package/dist/tsembed-react.js +3620 -3012
- package/dist/tsembed.es.js +9830 -9212
- package/dist/tsembed.js +15079 -14462
- package/dist/visual-embed-sdk-react-full.d.ts +923 -332
- package/dist/visual-embed-sdk-react.d.ts +923 -332
- package/dist/visual-embed-sdk.d.ts +923 -332
- package/lib/package.json +1 -1
- package/lib/src/auth.d.ts +4 -4
- package/lib/src/auth.d.ts.map +1 -1
- package/lib/src/auth.js +17 -10
- package/lib/src/auth.js.map +1 -1
- package/lib/src/embed/app.d.ts +15 -15
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +4 -3
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +5 -4
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/base.d.ts +1 -1
- package/lib/src/embed/base.d.ts.map +1 -1
- package/lib/src/embed/base.js +9 -6
- package/lib/src/embed/base.js.map +1 -1
- package/lib/src/embed/base.spec.js +5 -4
- package/lib/src/embed/base.spec.js.map +1 -1
- package/lib/src/embed/embed.spec.js +2 -1
- package/lib/src/embed/embed.spec.js.map +1 -1
- package/lib/src/embed/embedConfig.d.ts +2 -1
- package/lib/src/embed/embedConfig.d.ts.map +1 -1
- package/lib/src/embed/embedConfig.js +2 -0
- package/lib/src/embed/embedConfig.js.map +1 -1
- package/lib/src/embed/events.spec.js +3 -2
- package/lib/src/embed/events.spec.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +35 -23
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +8 -4
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +2 -1
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/embed/sage.d.ts +48 -30
- package/lib/src/embed/sage.d.ts.map +1 -1
- package/lib/src/embed/sage.js +7 -6
- package/lib/src/embed/sage.js.map +1 -1
- package/lib/src/embed/sage.spec.js +3 -3
- package/lib/src/embed/sage.spec.js.map +1 -1
- package/lib/src/embed/search-bar.d.ts +22 -6
- package/lib/src/embed/search-bar.d.ts.map +1 -1
- package/lib/src/embed/search-bar.js.map +1 -1
- package/lib/src/embed/search.d.ts +35 -16
- package/lib/src/embed/search.d.ts.map +1 -1
- package/lib/src/embed/search.js +11 -7
- package/lib/src/embed/search.js.map +1 -1
- package/lib/src/embed/search.spec.js +10 -0
- package/lib/src/embed/search.spec.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts +2 -1
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +48 -25
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +153 -32
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/index.d.ts +2 -2
- package/lib/src/index.d.ts.map +1 -1
- package/lib/src/index.js +2 -2
- package/lib/src/index.js.map +1 -1
- package/lib/src/mixpanel-service.d.ts.map +1 -1
- package/lib/src/mixpanel-service.js +2 -1
- package/lib/src/mixpanel-service.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 +2 -2
- package/lib/src/react/index.spec.js.map +1 -1
- package/lib/src/types.d.ts +742 -237
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +652 -168
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/authService/authService.d.ts.map +1 -1
- package/lib/src/utils/authService/authService.js +3 -2
- package/lib/src/utils/authService/authService.js.map +1 -1
- package/lib/src/utils/authService/authService.spec.js +4 -3
- package/lib/src/utils/authService/authService.spec.js.map +1 -1
- package/lib/src/utils/authService/tokenizedAuthService.d.ts.map +1 -1
- package/lib/src/utils/authService/tokenizedAuthService.js +2 -1
- package/lib/src/utils/authService/tokenizedAuthService.js.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.d.ts +2 -4
- package/lib/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.js +2 -4
- package/lib/src/utils/graphql/answerService/answerService.js.map +1 -1
- package/lib/src/utils/logger.d.ts +18 -0
- package/lib/src/utils/logger.d.ts.map +1 -0
- package/lib/src/utils/logger.js +74 -0
- package/lib/src/utils/logger.js.map +1 -0
- package/lib/src/utils/logger.spec.d.ts +25 -0
- package/lib/src/utils/logger.spec.d.ts.map +1 -0
- package/lib/src/utils/logger.spec.js +93 -0
- package/lib/src/utils/logger.spec.js.map +1 -0
- package/lib/src/utils/processData.d.ts +6 -0
- package/lib/src/utils/processData.d.ts.map +1 -1
- package/lib/src/utils/processData.js +4 -1
- package/lib/src/utils/processData.js.map +1 -1
- package/lib/src/utils/processTrigger.js +1 -1
- package/lib/src/visual-embed-sdk.d.ts +927 -336
- package/package.json +1 -1
- package/src/auth.ts +20 -13
- package/src/embed/app.spec.ts +5 -4
- package/src/embed/app.ts +23 -22
- package/src/embed/base.spec.ts +6 -5
- package/src/embed/base.ts +18 -11
- package/src/embed/embed.spec.ts +2 -1
- package/src/embed/embedConfig.ts +2 -0
- package/src/embed/events.spec.ts +3 -2
- package/src/embed/liveboard.spec.ts +2 -1
- package/src/embed/liveboard.ts +43 -27
- package/src/embed/sage.spec.ts +3 -3
- package/src/embed/sage.ts +54 -36
- package/src/embed/search-bar.tsx +22 -6
- package/src/embed/search.spec.ts +13 -0
- package/src/embed/search.ts +46 -21
- package/src/embed/ts-embed.spec.ts +182 -43
- package/src/embed/ts-embed.ts +78 -59
- package/src/index.ts +2 -0
- package/src/mixpanel-service.ts +2 -1
- package/src/react/index.spec.tsx +2 -2
- package/src/react/index.tsx +1 -0
- package/src/types.ts +753 -245
- package/src/utils/authService/authService.spec.ts +7 -6
- package/src/utils/authService/authService.ts +4 -2
- package/src/utils/authService/tokenizedAuthService.ts +2 -1
- package/src/utils/graphql/answerService/answerService.ts +2 -4
- package/src/utils/logger.spec.ts +108 -0
- package/src/utils/logger.ts +88 -0
- package/src/utils/processData.ts +4 -1
- package/src/utils/processTrigger.ts +1 -1
|
@@ -18,12 +18,12 @@ declare module '@thoughtspot/visual-embed-sdk' {
|
|
|
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
20
|
import { AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, getSessionInfo } from '@thoughtspot/visual-embed-sdk/auth';
|
|
21
|
-
import { AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig, PrefetchFeatures, FrameParams, DOMSelector, HomeLeftNavItem, HomepageModule, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, ContextMenuTriggerOptions, RuntimeParameter } from '@thoughtspot/visual-embed-sdk/types';
|
|
21
|
+
import { AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig, PrefetchFeatures, FrameParams, DOMSelector, HomeLeftNavItem, HomepageModule, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, ContextMenuTriggerOptions, RuntimeParameter, LogLevel } from '@thoughtspot/visual-embed-sdk/types';
|
|
22
22
|
import { CustomCssVariables } from '@thoughtspot/visual-embed-sdk/css-variables';
|
|
23
23
|
import { SageEmbed, SageViewConfig } from '@thoughtspot/visual-embed-sdk/embed/sage';
|
|
24
24
|
import { AnswerService } from '@thoughtspot/visual-embed-sdk/utils/graphql/answerService/answerService';
|
|
25
25
|
import { getEmbedConfig } from '@thoughtspot/visual-embed-sdk/embed/embedConfig';
|
|
26
|
-
export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, AnswerService, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, ContextMenuTriggerOptions, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, SageViewConfig, AppViewConfig, PrefetchFeatures, FrameParams, HomeLeftNavItem, HomepageModule, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, RuntimeParameter, };
|
|
26
|
+
export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, AnswerService, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, ContextMenuTriggerOptions, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, SageViewConfig, AppViewConfig, PrefetchFeatures, FrameParams, HomeLeftNavItem, HomepageModule, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, RuntimeParameter, LogLevel, };
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
declare module '@thoughtspot/visual-embed-sdk/embed/app' {
|
|
@@ -79,43 +79,43 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
|
|
|
79
79
|
*/
|
|
80
80
|
export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
81
81
|
/**
|
|
82
|
-
* If true, the
|
|
82
|
+
* If true, the top navigation bar within the ThoughtSpot app
|
|
83
83
|
* is displayed. By default, the navigation bar is hidden.
|
|
84
|
-
* This flag also
|
|
84
|
+
* This flag also controls the homepage left navigation bar.
|
|
85
85
|
*/
|
|
86
86
|
showPrimaryNavbar?: boolean;
|
|
87
87
|
/**
|
|
88
|
-
*
|
|
89
|
-
* If showPrimaryNavbar is true,
|
|
90
|
-
* nav-
|
|
91
|
-
*
|
|
88
|
+
* Control the visibility of the left navigation bar on the Homepage.
|
|
89
|
+
* If showPrimaryNavbar is true, that is, if the Global and Homepage
|
|
90
|
+
* nav-bars are visible, this flag will only hide the homepage left nav-bar.
|
|
91
|
+
* The showPrimaryNavbar flag takes precedence over the hideHomepageLeftNav.
|
|
92
92
|
*
|
|
93
93
|
* @default false
|
|
94
94
|
* @version SDK: 1.27.0 | Thoughtspot: 9.8.0.cl
|
|
95
95
|
*/
|
|
96
96
|
hideHomepageLeftNav?: boolean;
|
|
97
97
|
/**
|
|
98
|
-
*
|
|
99
|
-
*
|
|
98
|
+
* Control the visibility of the help (?) and profile buttons on the
|
|
99
|
+
* Global nav-bar. By default, these buttons are visible on the nav-bar.
|
|
100
100
|
*/
|
|
101
101
|
disableProfileAndHelp?: boolean;
|
|
102
102
|
/**
|
|
103
|
-
*
|
|
104
|
-
*
|
|
103
|
+
* Control the visibility of the application switcher button on the nav-bar.
|
|
104
|
+
* By default, the application switcher is shown.
|
|
105
105
|
*/
|
|
106
106
|
hideApplicationSwitcher?: boolean;
|
|
107
107
|
/**
|
|
108
|
-
*
|
|
109
|
-
*
|
|
108
|
+
* Control the visibility of the Org switcher button on the nav-bar.
|
|
109
|
+
* By default, the Org switcher button is shown.
|
|
110
110
|
*/
|
|
111
111
|
hideOrgSwitcher?: boolean;
|
|
112
112
|
/**
|
|
113
|
-
* A URL path
|
|
113
|
+
* A URL path to the embedded application page
|
|
114
114
|
* If both path and pageId attributes are defined, the path definition
|
|
115
115
|
* takes precedence. This is the path post the `#/` in the URL of the standalone
|
|
116
116
|
* ThoughtSpot app. Use this to open the embedded view to a specific path.
|
|
117
117
|
*
|
|
118
|
-
* For eg, if you want the component to open to a specific
|
|
118
|
+
* For eg, if you want the component to open to a specific Liveboard
|
|
119
119
|
* you could set the path to `pinboard/<liveboardId>/tab/<tabId>`.
|
|
120
120
|
*
|
|
121
121
|
* @example
|
|
@@ -226,6 +226,12 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
|
|
|
226
226
|
* embedded Liveboard or visualization.
|
|
227
227
|
*/
|
|
228
228
|
protected getEmbedParams(): string;
|
|
229
|
+
/**
|
|
230
|
+
* Constructs the URL of the ThoughtSpot app page to be rendered.
|
|
231
|
+
*
|
|
232
|
+
* @param pageId The ID of the page to be embedded.
|
|
233
|
+
*/
|
|
234
|
+
getIFrameSrc(): string;
|
|
229
235
|
/**
|
|
230
236
|
* Set the iframe height as per the computed height received
|
|
231
237
|
* from the ThoughtSpot app.
|
|
@@ -257,8 +263,8 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
|
|
|
257
263
|
}
|
|
258
264
|
|
|
259
265
|
declare module '@thoughtspot/visual-embed-sdk/embed/base' {
|
|
266
|
+
import { AuthEventEmitter, notifyAuthFailure, notifyAuthSDKSuccess, notifyAuthSuccess, notifyLogout } from '@thoughtspot/visual-embed-sdk/auth';
|
|
260
267
|
import { EmbedConfig, PrefetchFeatures } from '@thoughtspot/visual-embed-sdk/types';
|
|
261
|
-
import { notifyAuthFailure, notifyAuthSDKSuccess, notifyAuthSuccess, notifyLogout, AuthEventEmitter } from '@thoughtspot/visual-embed-sdk/auth';
|
|
262
268
|
export interface executeTMLInput {
|
|
263
269
|
metadata_tmls: string[];
|
|
264
270
|
import_policy?: 'PARTIAL' | 'ALL_OR_NONE' | 'VALIDATE_ONLY';
|
|
@@ -425,8 +431,8 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
|
|
|
425
431
|
*/
|
|
426
432
|
fullHeight?: boolean;
|
|
427
433
|
/**
|
|
428
|
-
* This is the minimum height(in pixels) for a full
|
|
429
|
-
* Setting this height helps
|
|
434
|
+
* This is the minimum height(in pixels) for a full-height Liveboard.
|
|
435
|
+
* Setting this height helps resolve issues with empty Liveboards and
|
|
430
436
|
* other screens navigable from a Liveboard.
|
|
431
437
|
*
|
|
432
438
|
* @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
|
|
@@ -439,7 +445,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
|
|
|
439
445
|
enableVizTransformations?: boolean;
|
|
440
446
|
/**
|
|
441
447
|
* The Liveboard to display in the embedded view.
|
|
442
|
-
* Use either
|
|
448
|
+
* Use either liveboardId or pinboardId to reference the Liveboard to embed.
|
|
443
449
|
*
|
|
444
450
|
* @version SDK: 1.3.0 | ThoughtSpot ts7.aug.cl, 7.2.1
|
|
445
451
|
*/
|
|
@@ -458,79 +464,91 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
|
|
|
458
464
|
* If set to true, all filter chips from a
|
|
459
465
|
* Liveboard page will be read-only (no X buttons)
|
|
460
466
|
*
|
|
461
|
-
* @version SDK: 1.3.0 | ThoughtSpot ts7.aug.cl, 7.2.1
|
|
467
|
+
* @version SDK: 1.3.0 | ThoughtSpot ts7.aug.cl, 7.2.1.sw
|
|
462
468
|
*/
|
|
463
469
|
preventLiveboardFilterRemoval?: boolean;
|
|
464
470
|
/**
|
|
465
|
-
* Array of
|
|
466
|
-
*
|
|
471
|
+
* Array of visualization IDs which should be visible when the Liveboard
|
|
472
|
+
* renders. This can be changed by triggering the `SetVisibleVizs`
|
|
467
473
|
* event.
|
|
468
474
|
*
|
|
469
475
|
* @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
|
|
470
476
|
*/
|
|
471
477
|
visibleVizs?: string[];
|
|
472
478
|
/**
|
|
473
|
-
* To support backward
|
|
479
|
+
* To support backward compatibility
|
|
474
480
|
*
|
|
475
481
|
* @hidden
|
|
476
482
|
*/
|
|
477
483
|
preventPinboardFilterRemoval?: boolean;
|
|
478
484
|
/**
|
|
479
|
-
* Render embedded Liveboards and visualizations in the
|
|
485
|
+
* Render embedded Liveboards and visualizations in the
|
|
486
|
+
* new Liveboard experience mode.
|
|
480
487
|
*
|
|
481
488
|
* @version SDK: 1.14.0 | ThoughtSpot: 8.6.0.cl, 8.8.1-sw
|
|
482
489
|
*/
|
|
483
490
|
liveboardV2?: boolean;
|
|
484
491
|
/**
|
|
485
|
-
*
|
|
492
|
+
* Set a Liveboard tab as an active tab.
|
|
493
|
+
* Specify the tab ID.
|
|
486
494
|
*
|
|
487
495
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
|
|
488
496
|
*/
|
|
489
497
|
activeTabId?: string;
|
|
490
498
|
/**
|
|
491
|
-
*
|
|
499
|
+
* Show or hide the tab panel of the embedded Liveboard.
|
|
492
500
|
*
|
|
493
|
-
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
|
|
501
|
+
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl, 9.8.0.sw
|
|
494
502
|
*/
|
|
495
503
|
hideTabPanel?: boolean;
|
|
496
504
|
/**
|
|
497
|
-
* Show or hide Liveboard header
|
|
505
|
+
* Show or hide the Liveboard header.
|
|
498
506
|
*
|
|
499
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
507
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
500
508
|
* @default false
|
|
501
509
|
*/
|
|
502
510
|
hideLiveboardHeader?: boolean;
|
|
503
511
|
/**
|
|
504
|
-
* Show or hide Liveboard title
|
|
512
|
+
* Show or hide the Liveboard title.
|
|
505
513
|
*
|
|
506
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
514
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
507
515
|
* @default false
|
|
508
516
|
*/
|
|
509
517
|
showLiveboardTitle?: boolean;
|
|
510
518
|
/**
|
|
511
|
-
* Show or hide Liveboard description
|
|
519
|
+
* Show or hide the Liveboard description.
|
|
512
520
|
*
|
|
513
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
521
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
514
522
|
* @default false
|
|
515
523
|
*/
|
|
516
524
|
showLiveboardDescription?: boolean;
|
|
517
525
|
/**
|
|
518
|
-
*
|
|
526
|
+
* Control the position and visibility of
|
|
527
|
+
* the Liveboard header as the users scroll down the
|
|
528
|
+
* embedded Liveboard page.
|
|
519
529
|
*
|
|
520
530
|
* @example
|
|
521
531
|
* ```js
|
|
522
532
|
* const embed = new LiveboardEmbed('#embed', {
|
|
523
|
-
* ... // other
|
|
533
|
+
* ... // other Liveboard view config
|
|
524
534
|
* isLiveboardHeaderSticky: true,
|
|
525
535
|
* });
|
|
526
536
|
* ```
|
|
527
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
537
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
528
538
|
*/
|
|
529
539
|
isLiveboardHeaderSticky?: boolean;
|
|
540
|
+
/**
|
|
541
|
+
* enable or disable ask sage
|
|
542
|
+
*
|
|
543
|
+
* @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
|
|
544
|
+
* @default true
|
|
545
|
+
*/
|
|
546
|
+
enableAskSage?: boolean;
|
|
530
547
|
}
|
|
531
548
|
/**
|
|
532
|
-
* Embed a ThoughtSpot Liveboard or
|
|
533
|
-
* waits for the authentication to complete, so
|
|
549
|
+
* Embed a ThoughtSpot Liveboard or visualization. When rendered it already
|
|
550
|
+
* waits for the authentication to complete, so you need not wait for
|
|
551
|
+
* `AuthStatus.SUCCESS`.
|
|
534
552
|
*
|
|
535
553
|
* @example
|
|
536
554
|
* ```js
|
|
@@ -585,21 +603,22 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
|
|
|
585
603
|
* @summary Search embed
|
|
586
604
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
587
605
|
*/
|
|
588
|
-
import {
|
|
606
|
+
import { Action, DOMSelector, ViewConfig } from '@thoughtspot/visual-embed-sdk/types';
|
|
589
607
|
import { TsEmbed } from '@thoughtspot/visual-embed-sdk/embed/ts-embed';
|
|
590
608
|
/**
|
|
591
|
-
* Configuration for search options
|
|
609
|
+
* Configuration for search options.
|
|
610
|
+
*
|
|
592
611
|
*/
|
|
593
612
|
export interface SearchOptions {
|
|
594
613
|
/**
|
|
595
|
-
*
|
|
614
|
+
* Search tokens to pass in the query.
|
|
596
615
|
*/
|
|
597
616
|
searchTokenString: string;
|
|
598
617
|
/**
|
|
599
|
-
* Boolean to
|
|
600
|
-
*
|
|
601
|
-
*
|
|
602
|
-
* the
|
|
618
|
+
* Boolean to define if the search should be executed or not.
|
|
619
|
+
* If it is executed, the focus is placed on the results.
|
|
620
|
+
* If it’s not executed, the focus is placed at the end of
|
|
621
|
+
* the token string in the search bar.
|
|
603
622
|
*/
|
|
604
623
|
executeSearch?: boolean;
|
|
605
624
|
}
|
|
@@ -615,11 +634,11 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
|
|
|
615
634
|
*/
|
|
616
635
|
collapseDataSources?: boolean;
|
|
617
636
|
/**
|
|
618
|
-
*
|
|
637
|
+
* Show or hide the data sources panel.
|
|
619
638
|
*/
|
|
620
639
|
hideDataSources?: boolean;
|
|
621
640
|
/**
|
|
622
|
-
*
|
|
641
|
+
* Show or hide the charts and tables in search answers.
|
|
623
642
|
* This attribute can be used to create a custom visualization
|
|
624
643
|
* using raw answer data.
|
|
625
644
|
*/
|
|
@@ -641,9 +660,9 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
|
|
|
641
660
|
forceTable?: boolean;
|
|
642
661
|
/**
|
|
643
662
|
* The array of data source GUIDs to set on load.
|
|
644
|
-
* Only a single
|
|
663
|
+
* Only a single data source is supported currently.
|
|
645
664
|
*
|
|
646
|
-
* @deprecated Use dataSource instead
|
|
665
|
+
* @deprecated Use `dataSource` instead.
|
|
647
666
|
*/
|
|
648
667
|
dataSources?: string[];
|
|
649
668
|
/**
|
|
@@ -655,11 +674,29 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
|
|
|
655
674
|
/**
|
|
656
675
|
* The initial search query to load the answer with.
|
|
657
676
|
*
|
|
658
|
-
* @deprecated
|
|
677
|
+
* @deprecated
|
|
678
|
+
*
|
|
679
|
+
* Use {@link searchOptions} instead.
|
|
659
680
|
*/
|
|
660
681
|
searchQuery?: string;
|
|
661
682
|
/**
|
|
662
|
-
* Configuration for search options
|
|
683
|
+
* Configuration for search options.
|
|
684
|
+
* Includes the following properties:
|
|
685
|
+
*
|
|
686
|
+
* `searchTokenString`: Search tokens to pass in the query.
|
|
687
|
+
*
|
|
688
|
+
* `executeSearch`: Boolean to define if the search should be executed or not.
|
|
689
|
+
* If it is executed, the focus is placed on the results.
|
|
690
|
+
* If it’s not executed, the focus is placed at the end of
|
|
691
|
+
* the token string in the search bar.
|
|
692
|
+
*
|
|
693
|
+
* @example
|
|
694
|
+
* ```js
|
|
695
|
+
* searchOptions: {
|
|
696
|
+
* searchTokenString: '[quantity purchased] [region]',
|
|
697
|
+
* executeSearch: true,
|
|
698
|
+
* }
|
|
699
|
+
* ```
|
|
663
700
|
*/
|
|
664
701
|
searchOptions?: SearchOptions;
|
|
665
702
|
/**
|
|
@@ -667,10 +704,10 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
|
|
|
667
704
|
*/
|
|
668
705
|
answerId?: string;
|
|
669
706
|
/**
|
|
670
|
-
* If set to true, search page will render without the Search Bar
|
|
707
|
+
* If set to true, the search page will render without the Search Bar
|
|
671
708
|
* The chart/table should still be visible.
|
|
672
709
|
*
|
|
673
|
-
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
710
|
+
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
|
|
674
711
|
*/
|
|
675
712
|
hideSearchBar?: boolean;
|
|
676
713
|
/**
|
|
@@ -700,6 +737,14 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
|
|
|
700
737
|
protected viewConfig: SearchViewConfig;
|
|
701
738
|
constructor(domSelector: DOMSelector, viewConfig: SearchViewConfig);
|
|
702
739
|
protected getEmbedParams(): string;
|
|
740
|
+
/**
|
|
741
|
+
* Construct the URL of the embedded ThoughtSpot search to be
|
|
742
|
+
* loaded in the iframe
|
|
743
|
+
*
|
|
744
|
+
* @param answerId The GUID of a saved answer
|
|
745
|
+
* @param dataSources A list of data source GUIDs
|
|
746
|
+
*/
|
|
747
|
+
getIFrameSrc(): string;
|
|
703
748
|
/**
|
|
704
749
|
* Render the embedded ThoughtSpot search
|
|
705
750
|
*/
|
|
@@ -717,25 +762,41 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search-bar' {
|
|
|
717
762
|
export interface SearchBarViewConfig extends Omit<ViewConfig, 'runtimeFilters' | 'showAlerts' | 'dataPanelV2' | 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems' | 'hiddenTabs' | 'visibleTabs' | 'reorderedHomepageModules'> {
|
|
718
763
|
/**
|
|
719
764
|
* The array of data source GUIDs to set on load.
|
|
720
|
-
* Only a single
|
|
765
|
+
* Only a single data source is supported currently.
|
|
721
766
|
*
|
|
722
|
-
* @deprecated Use dataSource instead
|
|
767
|
+
* @deprecated Use `dataSource` instead
|
|
723
768
|
*/
|
|
724
769
|
dataSources?: string[];
|
|
725
770
|
/**
|
|
726
771
|
* The array of data source GUIDs to set on load.
|
|
727
772
|
*
|
|
728
|
-
* @version: SDK: 1.19.0
|
|
773
|
+
* @version: SDK: 1.19.0, ThoughtSpot 9.0.0.cl, 9.0.1.sw
|
|
729
774
|
*/
|
|
730
775
|
dataSource?: string;
|
|
731
776
|
/**
|
|
732
|
-
*
|
|
777
|
+
* Boolean to define if the last selected data source should be used
|
|
733
778
|
*
|
|
734
|
-
* @version: SDK: 1.24.0
|
|
779
|
+
* @version: SDK: 1.24.0, ThoughtSpot 9.5.0.cl, 9.5.0.sw
|
|
735
780
|
*/
|
|
736
781
|
useLastSelectedSources?: boolean;
|
|
737
782
|
/**
|
|
738
|
-
* Configuration for search options
|
|
783
|
+
* Configuration for search options.
|
|
784
|
+
* Includes the following properties:
|
|
785
|
+
*
|
|
786
|
+
* `searchTokenString`: Search tokens to pass in the query.
|
|
787
|
+
*
|
|
788
|
+
* `executeSearch`: Boolean to define if the search should be executed or not.
|
|
789
|
+
* If it is executed, the focus is placed on the results.
|
|
790
|
+
* If it’s not executed, the focus is placed at the end of
|
|
791
|
+
* the token string in the search bar.
|
|
792
|
+
*
|
|
793
|
+
* @example
|
|
794
|
+
* ```js
|
|
795
|
+
* searchOptions: {
|
|
796
|
+
* searchTokenString: '[quantity purchased] [region]',
|
|
797
|
+
* executeSearch: true,
|
|
798
|
+
* }
|
|
799
|
+
* ```
|
|
739
800
|
*/
|
|
740
801
|
searchOptions?: SearchOptions;
|
|
741
802
|
}
|
|
@@ -807,8 +868,8 @@ declare module '@thoughtspot/visual-embed-sdk/auth' {
|
|
|
807
868
|
*/
|
|
808
869
|
LOGOUT = "LOGOUT",
|
|
809
870
|
/**
|
|
810
|
-
* Emitted when inPopup
|
|
811
|
-
*
|
|
871
|
+
* Emitted when inPopup is true in the SAMLRedirect flow and the
|
|
872
|
+
* popup is waiting to be triggered either programmatically
|
|
812
873
|
* or by the trigger button.
|
|
813
874
|
*
|
|
814
875
|
* @version SDK: 1.19.0
|
|
@@ -853,8 +914,8 @@ declare module '@thoughtspot/visual-embed-sdk/auth' {
|
|
|
853
914
|
*/
|
|
854
915
|
export enum AuthEvent {
|
|
855
916
|
/**
|
|
856
|
-
* Manually trigger the SSO popup. This is useful
|
|
857
|
-
* authStatus
|
|
917
|
+
* Manually trigger the SSO popup. This is useful when
|
|
918
|
+
* authStatus is SAMLRedirect/OIDCRedirect and inPopup is set to true
|
|
858
919
|
*/
|
|
859
920
|
TRIGGER_SSO_POPUP = "TRIGGER_SSO_POPUP"
|
|
860
921
|
}
|
|
@@ -967,10 +1028,14 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
967
1028
|
*/
|
|
968
1029
|
None = "None",
|
|
969
1030
|
/**
|
|
970
|
-
* Passthrough SSO to the embedded
|
|
1031
|
+
* Passthrough SSO to the embedded application within the iframe. Requires least
|
|
971
1032
|
* configuration, but may not be supported by all IDPs. This will behave like `None`
|
|
972
1033
|
* if SSO is not configured on ThoughtSpot.
|
|
973
1034
|
*
|
|
1035
|
+
* To use this:
|
|
1036
|
+
* Your SAML or OpenID provider must allow iframe redirects.
|
|
1037
|
+
* For example, if you are using Okta as IdP, you can enable iframe embedding.
|
|
1038
|
+
*
|
|
974
1039
|
* @example
|
|
975
1040
|
* ```js
|
|
976
1041
|
* init({
|
|
@@ -978,12 +1043,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
978
1043
|
* authType: AuthType.EmbeddedSSO,
|
|
979
1044
|
* });
|
|
980
1045
|
* ```
|
|
981
|
-
*
|
|
982
|
-
*
|
|
983
|
-
* To use this:
|
|
984
|
-
* Your SAML or OpenID provider must allow iframe redirects.
|
|
985
|
-
* eg. If you are using okta as IdP, you can enable iFrame embedding.
|
|
986
|
-
* @version: SDK: 1.15.0 | ThouhgtSpot: 8.8.0.cl
|
|
1046
|
+
* @version: SDK: 1.15.0 | ThoughtSpot: 8.8.0.cl
|
|
987
1047
|
*/
|
|
988
1048
|
EmbeddedSSO = "EmbeddedSSO",
|
|
989
1049
|
/**
|
|
@@ -1002,10 +1062,10 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1002
1062
|
SAML = "SSO_SAML",
|
|
1003
1063
|
/**
|
|
1004
1064
|
* SSO using SAML
|
|
1005
|
-
*
|
|
1006
|
-
*
|
|
1065
|
+
* Makes the host application redirect to the SAML IdP. Use this
|
|
1066
|
+
* if your IdP does not allow itself to be embedded.
|
|
1007
1067
|
*
|
|
1008
|
-
* This redirects the host application to the SAML
|
|
1068
|
+
* This redirects the host application to the SAML IdP. The host application
|
|
1009
1069
|
* will be redirected back to the ThoughtSpot app after authentication.
|
|
1010
1070
|
*
|
|
1011
1071
|
* @example
|
|
@@ -1016,7 +1076,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1016
1076
|
* });
|
|
1017
1077
|
* ```
|
|
1018
1078
|
*
|
|
1019
|
-
* This opens the SAML
|
|
1079
|
+
* This opens the SAML IdP in a popup window. The popup is triggered
|
|
1020
1080
|
* when the user clicks the trigger button. The popup window will be
|
|
1021
1081
|
* closed automatically after authentication.
|
|
1022
1082
|
* @example
|
|
@@ -1030,8 +1090,8 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1030
1090
|
* });
|
|
1031
1091
|
* ```
|
|
1032
1092
|
*
|
|
1033
|
-
* Can also use event to trigger the popup flow. Works the same
|
|
1034
|
-
* as above example.
|
|
1093
|
+
* Can also use the event to trigger the popup flow. Works the same
|
|
1094
|
+
* as the above example.
|
|
1035
1095
|
* @example
|
|
1036
1096
|
* ```js
|
|
1037
1097
|
* const authEE = init({
|
|
@@ -1055,7 +1115,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1055
1115
|
OIDC = "SSO_OIDC",
|
|
1056
1116
|
/**
|
|
1057
1117
|
* SSO using OIDC
|
|
1058
|
-
* Will make the host application redirect to the OIDC
|
|
1118
|
+
* Will make the host application redirect to the OIDC IdP.
|
|
1059
1119
|
* See code samples in {@link SAMLRedirect}.
|
|
1060
1120
|
*/
|
|
1061
1121
|
OIDCRedirect = "SSO_OIDC",
|
|
@@ -1067,8 +1127,8 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1067
1127
|
*/
|
|
1068
1128
|
AuthServer = "AuthServer",
|
|
1069
1129
|
/**
|
|
1070
|
-
* Trusted authentication server
|
|
1071
|
-
* which returns a bearer token, generated using the secret_key obtained
|
|
1130
|
+
* Trusted authentication server. Use your own authentication server
|
|
1131
|
+
* which returns a bearer token, generated using the `secret_key` obtained
|
|
1072
1132
|
* from ThoughtSpot.
|
|
1073
1133
|
*
|
|
1074
1134
|
* @example
|
|
@@ -1085,11 +1145,11 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1085
1145
|
*/
|
|
1086
1146
|
TrustedAuthToken = "AuthServer",
|
|
1087
1147
|
/**
|
|
1088
|
-
* Trusted authentication server Cookieless, Use
|
|
1089
|
-
* server which returns a bearer token, generated using the secret_key
|
|
1148
|
+
* Trusted authentication server Cookieless, Use your own authentication
|
|
1149
|
+
* server which returns a bearer token, generated using the `secret_key`
|
|
1090
1150
|
* obtained from ThoughtSpot. This uses a cookieless authentication
|
|
1091
|
-
* approach, recommended to
|
|
1092
|
-
* implemented by some browsers
|
|
1151
|
+
* approach, recommended to bypass the third-party cookie-blocking restriction
|
|
1152
|
+
* implemented by some browsers.
|
|
1093
1153
|
*
|
|
1094
1154
|
* @example
|
|
1095
1155
|
* ```js
|
|
@@ -1102,7 +1162,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1102
1162
|
* .then((data) => data.token);
|
|
1103
1163
|
* }
|
|
1104
1164
|
* ```
|
|
1105
|
-
* @version SDK: 1.22.0|
|
|
1165
|
+
* @version SDK: 1.22.0| ThoughtSpot: 9.3.0.cl, 9.5.1.sw
|
|
1106
1166
|
*/
|
|
1107
1167
|
TrustedAuthTokenCookieless = "AuthServerCookieless",
|
|
1108
1168
|
/**
|
|
@@ -1224,13 +1284,19 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1224
1284
|
* The ThoughtSpot cluster hostname or IP address.
|
|
1225
1285
|
*/
|
|
1226
1286
|
thoughtSpotHost: string;
|
|
1287
|
+
/**
|
|
1288
|
+
* If true, all the iframe links will have /v2 added automatically.
|
|
1289
|
+
* If false, all the iframe links will have /v1 added automatically.
|
|
1290
|
+
* If undefined, nothing will be added
|
|
1291
|
+
*/
|
|
1292
|
+
enableReactShell?: boolean | undefined;
|
|
1227
1293
|
/**
|
|
1228
1294
|
* The authentication mechanism to use.
|
|
1229
1295
|
*/
|
|
1230
1296
|
authType: AuthType;
|
|
1231
1297
|
/**
|
|
1232
1298
|
* [AuthServer] The trusted authentication endpoint to use to get the
|
|
1233
|
-
* authentication token. A GET request is made to the
|
|
1299
|
+
* authentication token. A `GET` request is made to the
|
|
1234
1300
|
* authentication API endpoint, which returns the token
|
|
1235
1301
|
* as a plaintext response. For trusted authentication,
|
|
1236
1302
|
* the `authEndpoint` or `getAuthToken` attribute is required.
|
|
@@ -1243,8 +1309,8 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1243
1309
|
* attribute is required.
|
|
1244
1310
|
*
|
|
1245
1311
|
* It is advisable to fetch a new token inside this method and not
|
|
1246
|
-
* reuse
|
|
1247
|
-
* called again and if it is called with an older token the authentication
|
|
1312
|
+
* reuse the old issued token. When auth expires this method is
|
|
1313
|
+
* called again and if it is called with an older token, the authentication
|
|
1248
1314
|
* will not succeed.
|
|
1249
1315
|
*/
|
|
1250
1316
|
getAuthToken?: () => Promise<string>;
|
|
@@ -1254,7 +1320,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1254
1320
|
*/
|
|
1255
1321
|
username?: string;
|
|
1256
1322
|
/**
|
|
1257
|
-
* [Basic] The ThoughtSpot login password corresponding to the
|
|
1323
|
+
* [Basic] The ThoughtSpot login password corresponding to the username
|
|
1258
1324
|
*
|
|
1259
1325
|
* Warning: This feature is primarily intended for developer testing. It is
|
|
1260
1326
|
* strongly advised not to use this authentication method in production.
|
|
@@ -1262,7 +1328,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1262
1328
|
password?: string;
|
|
1263
1329
|
/**
|
|
1264
1330
|
* [SSO] For SSO Authentication, if `noRedirect` is set to true, it will
|
|
1265
|
-
* open the SAML auth flow in a popup, instead of redirecting browser in
|
|
1331
|
+
* open the SAML auth flow in a popup, instead of redirecting the browser in
|
|
1266
1332
|
* place.
|
|
1267
1333
|
*
|
|
1268
1334
|
* @default false
|
|
@@ -1271,91 +1337,93 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1271
1337
|
noRedirect?: boolean;
|
|
1272
1338
|
/**
|
|
1273
1339
|
* [SSO] For SSO Authentication, if `inPopup` is set to true, it will open
|
|
1274
|
-
* the SAML auth flow in a popup, instead of redirecting browser in place.
|
|
1340
|
+
* the SAML auth flow in a popup, instead of redirecting the browser in place.
|
|
1275
1341
|
*
|
|
1276
|
-
* Need to use this with authTriggerContainer
|
|
1277
|
-
* the AuthEvent.TRIGGER_SSO_POPUP event on a user interaction.
|
|
1342
|
+
* Need to use this with `authTriggerContainer`. Or manually trigger
|
|
1343
|
+
* the `AuthEvent.TRIGGER_SSO_POPUP` event on a user interaction.
|
|
1278
1344
|
*
|
|
1279
1345
|
* @default false
|
|
1280
1346
|
* @version SDK: 1.18.0
|
|
1281
1347
|
*/
|
|
1282
1348
|
inPopup?: boolean;
|
|
1283
1349
|
/**
|
|
1284
|
-
* [SSO] For SSO Authentication, one can supply an optional path param
|
|
1285
|
-
*
|
|
1350
|
+
* [SSO] For SSO Authentication, one can supply an optional path param;
|
|
1351
|
+
* This will be the path on the host origin where the SAML flow will be
|
|
1286
1352
|
* terminated.
|
|
1287
1353
|
*
|
|
1288
1354
|
* Eg: "/dashboard", "#/foo" [Do not include the host]
|
|
1289
1355
|
*
|
|
1290
|
-
* @version SDK: 1.10.2 | 8.2.0.cl, 8.4.1.sw
|
|
1356
|
+
* @version SDK: 1.10.2 | ThoughtSpot 8.2.0.cl, 8.4.1.sw
|
|
1291
1357
|
*/
|
|
1292
1358
|
redirectPath?: string;
|
|
1293
1359
|
/** @internal */
|
|
1294
1360
|
basepath?: string;
|
|
1295
1361
|
/**
|
|
1296
|
-
*
|
|
1297
|
-
*
|
|
1298
|
-
*
|
|
1362
|
+
* Boolean to define if the query parameters in the ThoughtSpot URL
|
|
1363
|
+
* should be encoded in base64. This provides additional security to
|
|
1364
|
+
* Thoughtspot clusters against cross-site scripting attacks.
|
|
1299
1365
|
*
|
|
1300
1366
|
* @default false
|
|
1301
1367
|
*/
|
|
1302
1368
|
shouldEncodeUrlQueryParams?: boolean;
|
|
1303
1369
|
/**
|
|
1304
|
-
* Suppress cookie access alert when third
|
|
1305
|
-
* user's browser. Third
|
|
1306
|
-
*
|
|
1307
|
-
* encouraged to handle `noCookieAccess` event, to show your own treatment
|
|
1370
|
+
* Suppress cookie access alert when third-party cookies are blocked by the
|
|
1371
|
+
* user's browser. Third-party cookie blocking is the default behaviour on
|
|
1372
|
+
* some web browsers like Safari. If you set this attribute to `true`,
|
|
1373
|
+
* you are encouraged to handle `noCookieAccess` event, to show your own treatment
|
|
1308
1374
|
* in this case.
|
|
1309
1375
|
*
|
|
1310
1376
|
* @default false
|
|
1311
1377
|
*/
|
|
1312
1378
|
suppressNoCookieAccessAlert?: boolean;
|
|
1313
1379
|
/**
|
|
1314
|
-
* Ignore cookie access alert when third
|
|
1380
|
+
* Ignore the cookie access alert when third-party cookies are blocked by the
|
|
1315
1381
|
* user's browser. If you set this to `true`, the embedded iframe behaviour
|
|
1316
|
-
*
|
|
1382
|
+
* persists even in the case of a non-logged-in user.
|
|
1317
1383
|
*
|
|
1318
1384
|
* @default false
|
|
1319
1385
|
*/
|
|
1320
1386
|
ignoreNoCookieAccess?: boolean;
|
|
1321
1387
|
/**
|
|
1322
|
-
* Re-login
|
|
1388
|
+
* Re-login a user with the previous login options
|
|
1389
|
+
* when a user session expires.
|
|
1323
1390
|
*
|
|
1324
1391
|
* @default false
|
|
1325
1392
|
*/
|
|
1326
1393
|
autoLogin?: boolean;
|
|
1327
1394
|
/**
|
|
1328
1395
|
* Disable redirection to the login page when the embedded session expires
|
|
1329
|
-
* This flag is typically used alongside the combination of
|
|
1330
|
-
* AuthType.AuthServer} and auto
|
|
1396
|
+
* This flag is typically used alongside the combination of authentication modes such
|
|
1397
|
+
* as {@link AuthType.AuthServer} and auto-login behavior {@link
|
|
1398
|
+
* EmbedConfig.autoLogin}
|
|
1331
1399
|
*
|
|
1332
1400
|
* @version SDK: 1.9.3 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
|
|
1333
1401
|
* @default false
|
|
1334
1402
|
*/
|
|
1335
1403
|
disableLoginRedirect?: boolean;
|
|
1336
1404
|
/**
|
|
1337
|
-
* This message is displayed
|
|
1405
|
+
* This message is displayed in the embedded view when a user login fails.
|
|
1338
1406
|
*
|
|
1339
1407
|
* @version SDK: 1.10.1 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
|
|
1340
1408
|
*/
|
|
1341
1409
|
loginFailedMessage?: string;
|
|
1342
1410
|
/**
|
|
1343
|
-
* Calls the prefetch method internally when set to true
|
|
1411
|
+
* Calls the prefetch method internally when set to `true`
|
|
1344
1412
|
*
|
|
1345
1413
|
* @default false
|
|
1346
1414
|
*/
|
|
1347
1415
|
callPrefetch?: boolean;
|
|
1348
1416
|
/**
|
|
1349
|
-
* When there are multiple
|
|
1350
|
-
*
|
|
1351
|
-
*
|
|
1417
|
+
* When there are multiple objects embedded, queue the rendering of embedded objects
|
|
1418
|
+
* to start after the previous embed's render is complete. This helps improve
|
|
1419
|
+
* performance by decreasing the load on the browser.
|
|
1352
1420
|
*
|
|
1353
1421
|
* @Version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
|
|
1354
1422
|
* @default false
|
|
1355
1423
|
*/
|
|
1356
1424
|
queueMultiRenders?: boolean;
|
|
1357
1425
|
/**
|
|
1358
|
-
* Dynamic CSS
|
|
1426
|
+
* Dynamic CSS URL to be injected in the loaded application.
|
|
1359
1427
|
* You would also need to set `style-src` in the CSP settings.
|
|
1360
1428
|
*
|
|
1361
1429
|
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
@@ -1363,9 +1431,9 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1363
1431
|
*/
|
|
1364
1432
|
customCssUrl?: string;
|
|
1365
1433
|
/**
|
|
1366
|
-
* [AuthServer|Basic] Detect if
|
|
1434
|
+
* [AuthServer|Basic] Detect if third-party party cookies are enabled by doing an
|
|
1367
1435
|
* additional call. This is slower and should be avoided. Listen to the
|
|
1368
|
-
* NO_COOKIE_ACCESS event to handle the situation.
|
|
1436
|
+
* `NO_COOKIE_ACCESS` event to handle the situation.
|
|
1369
1437
|
*
|
|
1370
1438
|
* This is slightly slower than letting the browser handle the cookie check, as it
|
|
1371
1439
|
* involves an extra network call.
|
|
@@ -1374,26 +1442,26 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1374
1442
|
*/
|
|
1375
1443
|
detectCookieAccessSlow?: boolean;
|
|
1376
1444
|
/**
|
|
1377
|
-
* Hide beta alert warning message for SearchEmbed.
|
|
1445
|
+
* Hide the `beta` alert warning message for SearchEmbed.
|
|
1378
1446
|
*
|
|
1379
1447
|
* @version SDK: 1.12.0 | ThoughtSpot: 8.4.0.cl, 8.4.1.sw*
|
|
1380
1448
|
*/
|
|
1381
1449
|
suppressSearchEmbedBetaWarning?: boolean;
|
|
1382
1450
|
/**
|
|
1383
|
-
* Hide beta alert warning message for SageEmbed.
|
|
1451
|
+
* Hide `beta` alert warning message for SageEmbed.
|
|
1384
1452
|
*
|
|
1385
1453
|
*/
|
|
1386
1454
|
suppressSageEmbedBetaWarning?: boolean;
|
|
1387
1455
|
/**
|
|
1388
1456
|
* Custom style params for embed Config.
|
|
1389
1457
|
*
|
|
1390
|
-
* @version SDK: 1.17.0 | ThoughtSpot: 8.9.0.cl
|
|
1458
|
+
* @version SDK: 1.17.0 | ThoughtSpot: 8.9.0.cl, 9.0.1.sw
|
|
1391
1459
|
*/
|
|
1392
1460
|
customizations?: CustomisationsInterface;
|
|
1393
1461
|
/**
|
|
1394
|
-
* For inPopup SAMLRedirect or OIDCRedirect
|
|
1395
|
-
* click to trigger the flow.
|
|
1396
|
-
* for that button.
|
|
1462
|
+
* For `inPopup` SAMLRedirect or OIDCRedirect authentication, we need a
|
|
1463
|
+
* button that the user can click to trigger the flow.
|
|
1464
|
+
* This attribute sets a containing element for that button.
|
|
1397
1465
|
*
|
|
1398
1466
|
* @example
|
|
1399
1467
|
* ```js
|
|
@@ -1403,11 +1471,11 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1403
1471
|
* authTriggerContainer: '#auth-trigger-container'
|
|
1404
1472
|
* })
|
|
1405
1473
|
* ```
|
|
1406
|
-
* @version SDK: 1.17.0 | ThoughtSpot:
|
|
1474
|
+
* @version SDK: 1.17.0 | ThoughtSpot: 8.9.0.cl, 9.0.1.sw
|
|
1407
1475
|
*/
|
|
1408
1476
|
authTriggerContainer?: string | HTMLElement;
|
|
1409
1477
|
/**
|
|
1410
|
-
* Specify that we want to use the AuthEvent.TRIGGER_SSO_POPUP event to trigger
|
|
1478
|
+
* Specify that we want to use the `AuthEvent.TRIGGER_SSO_POPUP` event to trigger
|
|
1411
1479
|
* SAML popup. This is useful when you want to trigger the popup on a custom user
|
|
1412
1480
|
* action.
|
|
1413
1481
|
*
|
|
@@ -1415,20 +1483,22 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1415
1483
|
useEventForSAMLPopup?: boolean;
|
|
1416
1484
|
/**
|
|
1417
1485
|
* Text to show in the button which triggers the popup auth flow.
|
|
1418
|
-
* Default:
|
|
1486
|
+
* Default: `Authorize`.
|
|
1419
1487
|
*
|
|
1420
|
-
* @version SDK: 1.17.0 | ThoughtSpot:
|
|
1488
|
+
* @version SDK: 1.17.0 | ThoughtSpot: 8.9.0.cl, 9.0.1.sw
|
|
1421
1489
|
*/
|
|
1422
1490
|
authTriggerText?: string;
|
|
1423
1491
|
/**
|
|
1424
|
-
*
|
|
1492
|
+
* Prevent users from accessing the full application or ThoughtSpot application pages
|
|
1493
|
+
* access to the embedded application users
|
|
1494
|
+
* outside of the iframe.
|
|
1425
1495
|
*
|
|
1426
1496
|
* @default true
|
|
1427
1497
|
* @version SDK: 1.22.0 | ThoughtSpot: 9.3.0.cl, 9.5.1.sw
|
|
1428
1498
|
*/
|
|
1429
1499
|
blockNonEmbedFullAppAccess?: boolean;
|
|
1430
1500
|
/**
|
|
1431
|
-
* Host config
|
|
1501
|
+
* Host config in case embedded app is inside TS app itself
|
|
1432
1502
|
*
|
|
1433
1503
|
* @hidden
|
|
1434
1504
|
*/
|
|
@@ -1450,21 +1520,35 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1450
1520
|
* @version SDK: 1.26.2 | ThoughtSpot: *
|
|
1451
1521
|
*/
|
|
1452
1522
|
suppressErrorAlerts?: boolean;
|
|
1523
|
+
/**
|
|
1524
|
+
* Log level for the SDK.
|
|
1525
|
+
*
|
|
1526
|
+
* @default LogLevel.ERROR
|
|
1527
|
+
* @example
|
|
1528
|
+
* ```js
|
|
1529
|
+
* init({
|
|
1530
|
+
* ...embedConfig,
|
|
1531
|
+
* logLevel: LogLevel.SILENT
|
|
1532
|
+
* })
|
|
1533
|
+
* ```
|
|
1534
|
+
* @version SDK: 1.26.5 | ThoughtSpot: 9.10.0.cl
|
|
1535
|
+
*/
|
|
1536
|
+
logLevel?: LogLevel;
|
|
1453
1537
|
}
|
|
1454
1538
|
export interface LayoutConfig {
|
|
1455
1539
|
}
|
|
1456
1540
|
/**
|
|
1457
|
-
* Embedded
|
|
1541
|
+
* Embedded iframe configuration
|
|
1458
1542
|
*
|
|
1459
1543
|
* @group Embed components
|
|
1460
1544
|
*/
|
|
1461
1545
|
export interface FrameParams {
|
|
1462
1546
|
/**
|
|
1463
|
-
* The width of the
|
|
1547
|
+
* The width of the iframe (unit is pixels if numeric).
|
|
1464
1548
|
*/
|
|
1465
1549
|
width?: number | string;
|
|
1466
1550
|
/**
|
|
1467
|
-
* The height of the
|
|
1551
|
+
* The height of the iframe (unit is pixels if numeric).
|
|
1468
1552
|
*/
|
|
1469
1553
|
height?: number | string;
|
|
1470
1554
|
/**
|
|
@@ -1565,7 +1649,6 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1565
1649
|
*/
|
|
1566
1650
|
runtimeParameters?: RuntimeParameter[];
|
|
1567
1651
|
/**
|
|
1568
|
-
/**
|
|
1569
1652
|
* The locale/language to use for the embedded view.
|
|
1570
1653
|
*
|
|
1571
1654
|
* @version SDK: 1.9.4 | ThoughtSpot 8.1.0.cl, 8.4.1.sw
|
|
@@ -1665,31 +1748,30 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1665
1748
|
*/
|
|
1666
1749
|
reorderedHomepageModules?: HomepageModule[];
|
|
1667
1750
|
/**
|
|
1668
|
-
* The list of tab IDs to show in the embedded.
|
|
1669
|
-
* Only
|
|
1670
|
-
* Use this to show an tabID.
|
|
1751
|
+
* The list of tab IDs to show in the embedded Liveboard.
|
|
1752
|
+
* Only the tabs specified in the array will be shown in the Liveboard.
|
|
1671
1753
|
*
|
|
1672
|
-
* Use either
|
|
1754
|
+
* Use either `visibleTabs` or `hiddenTabs`.
|
|
1673
1755
|
*
|
|
1674
1756
|
* @example
|
|
1675
1757
|
* ```js
|
|
1676
|
-
*
|
|
1677
|
-
* ... // other liveboard view config
|
|
1678
|
-
* visibleTabs: [
|
|
1758
|
+
* visibleTabs: [
|
|
1679
1759
|
* '430496d6-6903-4601-937e-2c691821af3c',
|
|
1680
|
-
*
|
|
1681
|
-
* });
|
|
1760
|
+
* 'f547ec54-2a37-4516-a222-2b06719af726']
|
|
1682
1761
|
* ```
|
|
1683
1762
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
1684
1763
|
*/
|
|
1685
1764
|
visibleTabs?: string[];
|
|
1686
1765
|
/**
|
|
1687
|
-
* homepageLeftNavItems :
|
|
1688
|
-
* There are 8 home
|
|
1689
|
-
*
|
|
1690
|
-
* eg: hiddenHomeLeftNavItems = [HomeLeftNavItem.Home] to hide home.
|
|
1766
|
+
* homepageLeftNavItems : Show or hide the left navigation bar items.
|
|
1767
|
+
* There are 8 eight home navigation list items.
|
|
1768
|
+
* To hide these items, specify the string in the array.
|
|
1691
1769
|
*
|
|
1692
|
-
*
|
|
1770
|
+
* ```js
|
|
1771
|
+
* hiddenHomeLeftNavItems = [HomeLeftNavItem.Home]
|
|
1772
|
+
* ```
|
|
1773
|
+
*
|
|
1774
|
+
* @version SDK: 1.27.0 | Thoughtspot: 9.10.0.cl
|
|
1693
1775
|
*/
|
|
1694
1776
|
hiddenHomeLeftNavItems?: HomeLeftNavItem[];
|
|
1695
1777
|
/**
|
|
@@ -1705,7 +1787,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1705
1787
|
* });
|
|
1706
1788
|
* embed.showPreRender();
|
|
1707
1789
|
* ```
|
|
1708
|
-
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
|
|
1790
|
+
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl, 9.8.0.sw
|
|
1709
1791
|
*/
|
|
1710
1792
|
preRenderId?: string;
|
|
1711
1793
|
/**
|
|
@@ -1744,7 +1826,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1744
1826
|
status?: string;
|
|
1745
1827
|
};
|
|
1746
1828
|
/**
|
|
1747
|
-
* MessageOptions: By
|
|
1829
|
+
* MessageOptions: By providing options, getting specific event start / end based on
|
|
1748
1830
|
* option
|
|
1749
1831
|
*
|
|
1750
1832
|
* @group Events
|
|
@@ -1752,7 +1834,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1752
1834
|
export type MessageOptions = {
|
|
1753
1835
|
/**
|
|
1754
1836
|
* A boolean value indicating that start status events of this type
|
|
1755
|
-
* will be dispatched
|
|
1837
|
+
* will be dispatched.
|
|
1756
1838
|
*/
|
|
1757
1839
|
start?: boolean;
|
|
1758
1840
|
};
|
|
@@ -1772,7 +1854,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1772
1854
|
*/
|
|
1773
1855
|
export type MessageCallbackObj = {
|
|
1774
1856
|
/**
|
|
1775
|
-
* options: It contains start,
|
|
1857
|
+
* options: It contains start, a boolean value indicating that start
|
|
1776
1858
|
* status events of this type will be dispatched
|
|
1777
1859
|
*/
|
|
1778
1860
|
options: MessageOptions;
|
|
@@ -1844,7 +1926,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1844
1926
|
IN = "IN"
|
|
1845
1927
|
}
|
|
1846
1928
|
/**
|
|
1847
|
-
* Home page module that can be
|
|
1929
|
+
* Home page module that can be hidden
|
|
1848
1930
|
*/
|
|
1849
1931
|
export enum HomepageModule {
|
|
1850
1932
|
/**
|
|
@@ -1860,7 +1942,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1860
1942
|
*/
|
|
1861
1943
|
Favorite = "FAVORITE",
|
|
1862
1944
|
/**
|
|
1863
|
-
* List of answers and
|
|
1945
|
+
* List of answers and Liveboards
|
|
1864
1946
|
*/
|
|
1865
1947
|
MyLibrary = "MY_LIBRARY",
|
|
1866
1948
|
/**
|
|
@@ -1893,7 +1975,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1893
1975
|
values: (number | boolean | string)[];
|
|
1894
1976
|
}
|
|
1895
1977
|
/**
|
|
1896
|
-
* A filter that can be applied to ThoughtSpot
|
|
1978
|
+
* A filter that can be applied to ThoughtSpot Answers, Liveboards, or
|
|
1897
1979
|
* visualizations at runtime.
|
|
1898
1980
|
*/
|
|
1899
1981
|
export interface RuntimeParameter {
|
|
@@ -1930,12 +2012,26 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1930
2012
|
/**
|
|
1931
2013
|
* Rendering has initialized.
|
|
1932
2014
|
*
|
|
2015
|
+
* @example
|
|
2016
|
+
*```js
|
|
2017
|
+
* liveboardEmbed.on(EmbedEvent.Init, showLoader)
|
|
2018
|
+
* //show a loader
|
|
2019
|
+
* function showLoader() {
|
|
2020
|
+
* document.getElementById("loader");
|
|
2021
|
+
* }
|
|
2022
|
+
*```
|
|
1933
2023
|
* @returns timestamp - The timestamp when the event was generated.
|
|
1934
2024
|
*/
|
|
1935
2025
|
Init = "init",
|
|
1936
2026
|
/**
|
|
1937
2027
|
* Authentication has either succeeded or failed.
|
|
1938
2028
|
*
|
|
2029
|
+
* @example
|
|
2030
|
+
*```js
|
|
2031
|
+
* appEmbed.on(EmbedEvent.AuthInit, payload => {
|
|
2032
|
+
* console.log('AuthInit', payload);
|
|
2033
|
+
* })
|
|
2034
|
+
*```
|
|
1939
2035
|
* @returns isLoggedIn - A Boolean specifying whether authentication was successful.
|
|
1940
2036
|
*/
|
|
1941
2037
|
AuthInit = "authInit",
|
|
@@ -1943,37 +2039,91 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1943
2039
|
* The embed object container has loaded.
|
|
1944
2040
|
*
|
|
1945
2041
|
* @returns timestamp - The timestamp when the event was generated.
|
|
2042
|
+
* @example
|
|
2043
|
+
*```js
|
|
2044
|
+
* liveboardEmbed.on(EmbedEvent.Load, hideLoader)
|
|
2045
|
+
* //hide loader
|
|
2046
|
+
* function hideLoader() {
|
|
2047
|
+
* document.getElementById("loader");
|
|
2048
|
+
* }
|
|
2049
|
+
*```
|
|
1946
2050
|
*/
|
|
1947
2051
|
Load = "load",
|
|
1948
2052
|
/**
|
|
1949
2053
|
* Data pertaining to answer or Liveboard is received
|
|
1950
2054
|
*
|
|
1951
2055
|
* @return data - The answer or Liveboard data
|
|
2056
|
+
* @example
|
|
2057
|
+
*```js
|
|
2058
|
+
* liveboardEmbed.on(EmbedEvent.Data, payload => {
|
|
2059
|
+
* console.log('data', payload);
|
|
2060
|
+
* })
|
|
2061
|
+
*```
|
|
1952
2062
|
* @important
|
|
1953
2063
|
*/
|
|
1954
2064
|
Data = "data",
|
|
1955
2065
|
/**
|
|
1956
|
-
* Search/
|
|
2066
|
+
* Search/Answer/Liveboard filters have been applied/updated by the user.
|
|
1957
2067
|
*
|
|
1958
2068
|
* @hidden
|
|
1959
2069
|
*/
|
|
1960
2070
|
FiltersChanged = "filtersChanged",
|
|
1961
2071
|
/**
|
|
1962
2072
|
* Search query has been updated by the user.
|
|
2073
|
+
*
|
|
2074
|
+
* @example
|
|
2075
|
+
*```js
|
|
2076
|
+
* searchEmbed.on(EmbedEvent.QueryChanged, payload => console.log('data', payload))
|
|
2077
|
+
*```
|
|
1963
2078
|
*/
|
|
1964
2079
|
QueryChanged = "queryChanged",
|
|
1965
2080
|
/**
|
|
1966
|
-
* A drill
|
|
2081
|
+
* A drill-down operation has been performed.
|
|
1967
2082
|
*
|
|
1968
2083
|
* @returns additionalFilters - Any additional filters applied
|
|
1969
2084
|
* @returns drillDownColumns - The columns on which drill down was performed
|
|
1970
2085
|
* @returns nonFilteredColumns - The columns that were not filtered
|
|
2086
|
+
* @example
|
|
2087
|
+
*```js
|
|
2088
|
+
* searchEmbed.trigger(HostEvent.DrillDown, {
|
|
2089
|
+
* points: {
|
|
2090
|
+
* clickedPoint,
|
|
2091
|
+
* selectedPoints: selectedPoint
|
|
2092
|
+
* },
|
|
2093
|
+
* autoDrillDown: true,
|
|
2094
|
+
* })
|
|
2095
|
+
*```
|
|
2096
|
+
* In this example, `VizPointDoubleClick` event is used for
|
|
2097
|
+
* triggering the `DrillDown` event when an area or specific
|
|
2098
|
+
* data point on a table or chart is double-clicked.
|
|
2099
|
+
* @example
|
|
2100
|
+
*```js
|
|
2101
|
+
* searchEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
|
|
2102
|
+
* console.log(payload);
|
|
2103
|
+
* const clickedPoint = payload.data.clickedPoint;
|
|
2104
|
+
* const selectedPoint = payload.data.selectedPoints;
|
|
2105
|
+
* console.log('>>> called', clickedPoint);
|
|
2106
|
+
* embed.trigger(HostEvent.DrillDown, {
|
|
2107
|
+
* points: {
|
|
2108
|
+
* clickedPoint,
|
|
2109
|
+
* selectedPoints: selectedPoint
|
|
2110
|
+
* },
|
|
2111
|
+
* autoDrillDown: true,
|
|
2112
|
+
* })
|
|
2113
|
+
* })
|
|
2114
|
+
*```
|
|
1971
2115
|
*/
|
|
1972
2116
|
Drilldown = "drillDown",
|
|
1973
2117
|
/**
|
|
1974
2118
|
* One or more data sources have been selected.
|
|
1975
2119
|
*
|
|
1976
2120
|
* @returns dataSourceIds - the list of data sources
|
|
2121
|
+
* @example
|
|
2122
|
+
* ```js
|
|
2123
|
+
* searchEmbed.on(EmbedEvent.DataSourceSelected, payload => {
|
|
2124
|
+
* console.log('DataSourceSelected', payload);
|
|
2125
|
+
* })
|
|
2126
|
+
* ```
|
|
1977
2127
|
*/
|
|
1978
2128
|
DataSourceSelected = "dataSourceSelected",
|
|
1979
2129
|
/**
|
|
@@ -1981,25 +2131,49 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1981
2131
|
*
|
|
1982
2132
|
* @returns columnIds - the list of columns
|
|
1983
2133
|
* @version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
|
|
2134
|
+
* @example
|
|
2135
|
+
* ```js
|
|
2136
|
+
* appEmbed.on(EmbedEvent.AddRemoveColumns, payload => {
|
|
2137
|
+
* console.log('AddRemoveColumns', payload);
|
|
2138
|
+
* })
|
|
2139
|
+
* ```
|
|
1984
2140
|
*/
|
|
1985
2141
|
AddRemoveColumns = "addRemoveColumns",
|
|
1986
2142
|
/**
|
|
1987
|
-
* A custom action has been triggered
|
|
2143
|
+
* A custom action has been triggered.
|
|
1988
2144
|
*
|
|
1989
|
-
* @returns actionId -
|
|
1990
|
-
* @returns data -
|
|
2145
|
+
* @returns actionId - ID of the custom action
|
|
2146
|
+
* @returns data - Response payload with the Answer or Liveboard data
|
|
2147
|
+
* @example
|
|
2148
|
+
* ```js
|
|
2149
|
+
* appEmbed.on(EmbedEvent.customAction, payload => {
|
|
2150
|
+
* const data = payload.data;
|
|
2151
|
+
* if (data.id === 'insert Custom Action ID here') {
|
|
2152
|
+
* console.log('Custom Action event:', data.embedAnswerData);
|
|
2153
|
+
* }
|
|
2154
|
+
* })
|
|
2155
|
+
* ```
|
|
1991
2156
|
*/
|
|
1992
2157
|
CustomAction = "customAction",
|
|
1993
2158
|
/**
|
|
1994
|
-
* Listen to double
|
|
2159
|
+
* Listen to double click actions on a visualization.
|
|
1995
2160
|
*
|
|
1996
|
-
* @return ContextMenuInputPoints -
|
|
2161
|
+
* @return ContextMenuInputPoints - Data point that is double-clicked
|
|
1997
2162
|
* @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
|
|
2163
|
+
* @example
|
|
2164
|
+
* ```js
|
|
2165
|
+
* livebaordEmbed.on(EmbedEvent.VizPointDoubleClick, payload => {
|
|
2166
|
+
* console.log('VizPointDoubleClick', payload)
|
|
2167
|
+
* })
|
|
2168
|
+
* ```
|
|
1998
2169
|
*/
|
|
1999
2170
|
VizPointDoubleClick = "vizPointDoubleClick",
|
|
2000
2171
|
/**
|
|
2001
|
-
* Listen to clicks on a visualization in a
|
|
2172
|
+
* Listen to clicks on a visualization in a Liveboard or Search result.
|
|
2002
2173
|
*
|
|
2174
|
+
* @return viz, clickedPoint - metadata about the point that is clicked
|
|
2175
|
+
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2176
|
+
* @important
|
|
2003
2177
|
* @example
|
|
2004
2178
|
* ```js
|
|
2005
2179
|
* embed.on(ThoughtSpotEmbed.Event.VizPointClick, ({data}) => {
|
|
@@ -2012,25 +2186,42 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2012
2186
|
* )
|
|
2013
2187
|
* });
|
|
2014
2188
|
* ```
|
|
2015
|
-
* @return viz, clickedPoint - metadata about point that is clicked
|
|
2016
|
-
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2017
|
-
* @important
|
|
2018
2189
|
*/
|
|
2019
2190
|
VizPointClick = "vizPointClick",
|
|
2020
2191
|
/**
|
|
2021
2192
|
* An error has occurred.
|
|
2022
2193
|
*
|
|
2023
2194
|
* @returns error - An error object or message
|
|
2195
|
+
* @example
|
|
2196
|
+
* ```js
|
|
2197
|
+
* SearchEmbed.on(EmbedEvent.Error, showErrorMsg)
|
|
2198
|
+
* //show error messaage
|
|
2199
|
+
* function showErrorMsg() {
|
|
2200
|
+
* document.getElementById("error");
|
|
2201
|
+
* ```
|
|
2024
2202
|
*/
|
|
2025
2203
|
Error = "Error",
|
|
2026
2204
|
/**
|
|
2027
|
-
* The embedded object has sent an alert
|
|
2205
|
+
* The embedded object has sent an alert.
|
|
2028
2206
|
*
|
|
2029
2207
|
* @returns alert - An alert object
|
|
2208
|
+
* @example
|
|
2209
|
+
* ```js
|
|
2210
|
+
* searchEmbed.on(EmbedEvent.Alert)
|
|
2211
|
+
* ```
|
|
2030
2212
|
*/
|
|
2031
2213
|
Alert = "alert",
|
|
2032
2214
|
/**
|
|
2033
2215
|
* The ThoughtSpot auth session has expired.
|
|
2216
|
+
*
|
|
2217
|
+
* @example
|
|
2218
|
+
*```js
|
|
2219
|
+
* appEmbed.on(EmbedEvent.AuthExpire, showAuthExpired)
|
|
2220
|
+
* //show auth expired banner
|
|
2221
|
+
* function showAuthExpired() {
|
|
2222
|
+
* document.getElementById("authExpiredBanner");
|
|
2223
|
+
* }
|
|
2224
|
+
*```
|
|
2034
2225
|
*/
|
|
2035
2226
|
AuthExpire = "ThoughtspotAuthExpired",
|
|
2036
2227
|
/**
|
|
@@ -2060,14 +2251,27 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2060
2251
|
*/
|
|
2061
2252
|
EmbedIframeCenter = "EmbedIframeCenter",
|
|
2062
2253
|
/**
|
|
2063
|
-
* Emitted when
|
|
2064
|
-
*
|
|
2254
|
+
* Emitted when the **Get Data** action is initiated.
|
|
2255
|
+
* Applicable to `SearchBarEmbed` only.
|
|
2065
2256
|
*
|
|
2066
|
-
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.
|
|
2257
|
+
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
2258
|
+
* @example
|
|
2259
|
+
*```js
|
|
2260
|
+
* searchbarEmbed.on(EmbedEvent.GetDataClick)
|
|
2261
|
+
* .then(data => {
|
|
2262
|
+
* console.log('Answer Data:', data);
|
|
2263
|
+
* })
|
|
2264
|
+
*```
|
|
2067
2265
|
*/
|
|
2068
2266
|
GetDataClick = "getDataClick",
|
|
2069
2267
|
/**
|
|
2070
2268
|
* Detects the route change.
|
|
2269
|
+
*
|
|
2270
|
+
* @example
|
|
2271
|
+
*```js
|
|
2272
|
+
* searchEmbed.on(EmbedEvent.RouteChange, payload =>
|
|
2273
|
+
* console.log('data', payload))
|
|
2274
|
+
*```
|
|
2071
2275
|
*/
|
|
2072
2276
|
RouteChange = "ROUTE_CHANGE",
|
|
2073
2277
|
/**
|
|
@@ -2077,10 +2281,15 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2077
2281
|
*/
|
|
2078
2282
|
V1Data = "exportVizDataToParent",
|
|
2079
2283
|
/**
|
|
2080
|
-
* Emitted when the embed does not have cookie access. This
|
|
2081
|
-
*
|
|
2284
|
+
* Emitted when the embed does not have cookie access. This happens
|
|
2285
|
+
* when Safari and other Web browsers block third-party cookies
|
|
2286
|
+
* are blocked by default. `NoCookieAccess` can trigger
|
|
2082
2287
|
*
|
|
2083
|
-
* @
|
|
2288
|
+
* @example
|
|
2289
|
+
*```js
|
|
2290
|
+
* appEmbed.on(EmbedEvent.NoCookieAccess)
|
|
2291
|
+
*```
|
|
2292
|
+
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1.sw
|
|
2084
2293
|
*/
|
|
2085
2294
|
NoCookieAccess = "noCookieAccess",
|
|
2086
2295
|
/**
|
|
@@ -2094,12 +2303,24 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2094
2303
|
* Emitted when any modal is opened in the app
|
|
2095
2304
|
*
|
|
2096
2305
|
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
2306
|
+
* @example
|
|
2307
|
+
*```js
|
|
2308
|
+
* appEmbed.on(EmbedEvent.DialogOpen, payload => {
|
|
2309
|
+
* console.log('dialog open', payload);
|
|
2310
|
+
* })
|
|
2311
|
+
*```
|
|
2097
2312
|
*/
|
|
2098
2313
|
DialogOpen = "dialog-open",
|
|
2099
2314
|
/**
|
|
2100
2315
|
* Emitted when any modal is closed in the app
|
|
2101
2316
|
*
|
|
2102
2317
|
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
2318
|
+
* @example
|
|
2319
|
+
*```js
|
|
2320
|
+
* appEmbed.on(EmbedEvent.DialogClose, payload => {
|
|
2321
|
+
* console.log('dialog close', payload);
|
|
2322
|
+
* })
|
|
2323
|
+
*```
|
|
2103
2324
|
*/
|
|
2104
2325
|
DialogClose = "dialog-close",
|
|
2105
2326
|
/**
|
|
@@ -2108,6 +2329,21 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2108
2329
|
* other events on the rendered Liveboard.
|
|
2109
2330
|
*
|
|
2110
2331
|
* @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
|
|
2332
|
+
* @example
|
|
2333
|
+
*```js
|
|
2334
|
+
* liveboardEmbed.on(EmbedEvent.LiveboardRendered, payload => {
|
|
2335
|
+
console.log('Liveboard is rendered', payload);
|
|
2336
|
+
})
|
|
2337
|
+
*```
|
|
2338
|
+
* The following example shows how to trigger
|
|
2339
|
+
* `SetVisibleVizs` event using LiveboardRendered embed event:
|
|
2340
|
+
* @example
|
|
2341
|
+
*```js
|
|
2342
|
+
* const embedRef = useEmbedRef();
|
|
2343
|
+
* const onLiveboardRendered = () => {
|
|
2344
|
+
* embed.trigger(HostEvent.SetVisibleVizs, ['viz1', 'viz2']);
|
|
2345
|
+
* };
|
|
2346
|
+
*```
|
|
2111
2347
|
*/
|
|
2112
2348
|
LiveboardRendered = "PinboardRendered",
|
|
2113
2349
|
/**
|
|
@@ -2115,216 +2351,470 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2115
2351
|
* is triggered on all events.
|
|
2116
2352
|
*
|
|
2117
2353
|
* @Version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
|
|
2354
|
+
* @example
|
|
2355
|
+
*```js
|
|
2356
|
+
* appEmbed.on(EmbedEvent.ALL, payload => {
|
|
2357
|
+
* console.log('Embed Events', payload)
|
|
2358
|
+
* })
|
|
2359
|
+
*```
|
|
2118
2360
|
*/
|
|
2119
2361
|
ALL = "*",
|
|
2120
2362
|
/**
|
|
2121
2363
|
* Emitted when an Answer is saved in the app
|
|
2122
2364
|
*
|
|
2123
2365
|
* @Version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2366
|
+
* @example
|
|
2367
|
+
*```js
|
|
2368
|
+
* //trigger when action starts
|
|
2369
|
+
* searchEmbed.on(EmbedEvent.Save, payload => {
|
|
2370
|
+
* console.log('Save', payload)
|
|
2371
|
+
* }, {
|
|
2372
|
+
* start: true
|
|
2373
|
+
* })
|
|
2374
|
+
* //trigger when action ends
|
|
2375
|
+
* searchEmbed.on(EmbedEvent.Save, payload => {
|
|
2376
|
+
* console.log('Save', payload)
|
|
2377
|
+
* })
|
|
2378
|
+
*```
|
|
2124
2379
|
*/
|
|
2125
2380
|
Save = "save",
|
|
2126
2381
|
/**
|
|
2127
2382
|
* Emitted when the download action is triggered on an answer
|
|
2128
2383
|
*
|
|
2384
|
+
* **Note**: This event is deprecated in v1.21.0.
|
|
2385
|
+
* To fire an event when a download action is initiated on a chart or table,
|
|
2386
|
+
* use `EmbedEvent.DownloadAsPng`, `EmbedEvent.DownloadAsPDF`, `EmbedEvent.DownloadAsCSV`,
|
|
2387
|
+
* or `EmbedEvent.DownloadAsXLSX`
|
|
2388
|
+
*
|
|
2129
2389
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2390
|
+
* @example
|
|
2391
|
+
*```js
|
|
2392
|
+
* liveboardEmbed.trigger(HostEvent.Download, {
|
|
2393
|
+
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
2394
|
+
* })
|
|
2395
|
+
*```
|
|
2130
2396
|
*/
|
|
2131
2397
|
Download = "download",
|
|
2132
2398
|
/**
|
|
2133
2399
|
* Emitted when the download action is triggered on an answer
|
|
2134
2400
|
*
|
|
2135
2401
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.0.sw
|
|
2402
|
+
* @example
|
|
2403
|
+
*```js
|
|
2404
|
+
* //trigger when action starts
|
|
2405
|
+
* searchEmbed.on(EmbedEvent.DownloadAsPng, payload => {
|
|
2406
|
+
* console.log('download PNG', payload)}, {start: true })
|
|
2407
|
+
* //trigger when action ends
|
|
2408
|
+
* searchEmbed.on(EmbedEvent.DownloadAsPng, payload => {
|
|
2409
|
+
* console.log('download PNG', payload)})
|
|
2410
|
+
*```
|
|
2136
2411
|
*/
|
|
2137
2412
|
DownloadAsPng = "downloadAsPng",
|
|
2138
2413
|
/**
|
|
2139
2414
|
* Emitted when the Download as PDF action is triggered on an answer
|
|
2140
2415
|
*
|
|
2141
2416
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2417
|
+
* @example
|
|
2418
|
+
*```js
|
|
2419
|
+
* //trigger when action starts
|
|
2420
|
+
* searchEmbed.on(EmbedEvent.DownloadAsPdf, payload => {
|
|
2421
|
+
* console.log('download PDF', payload)}, {start: true })
|
|
2422
|
+
* //trigger when action ends
|
|
2423
|
+
* searchEmbed.on(EmbedEvent.DownloadAsPdf, payload => {
|
|
2424
|
+
* console.log('download PDF', payload)})
|
|
2425
|
+
*```
|
|
2142
2426
|
*/
|
|
2143
2427
|
DownloadAsPdf = "downloadAsPdf",
|
|
2144
2428
|
/**
|
|
2145
2429
|
* Emitted when the Download as CSV action is triggered on an answer
|
|
2146
2430
|
*
|
|
2147
2431
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2432
|
+
* @example
|
|
2433
|
+
*```js
|
|
2434
|
+
* //trigger when action starts
|
|
2435
|
+
* searchEmbed.on(EmbedEvent.DownloadAsCSV, payload => {
|
|
2436
|
+
* console.log('download CSV', payload)}, {start: true })
|
|
2437
|
+
* //trigger when action ends
|
|
2438
|
+
* searchEmbed.on(EmbedEvent.DownloadAsCSV, payload => {
|
|
2439
|
+
* console.log('download CSV', payload)})
|
|
2440
|
+
*```
|
|
2148
2441
|
*/
|
|
2149
2442
|
DownloadAsCsv = "downloadAsCsv",
|
|
2150
2443
|
/**
|
|
2151
2444
|
* Emitted when the Download as XLSX action is triggered on an answer
|
|
2152
2445
|
*
|
|
2153
2446
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2447
|
+
* @example
|
|
2448
|
+
*```js
|
|
2449
|
+
* //trigger when action starts
|
|
2450
|
+
* searchEmbed.on(EmbedEvent.DownloadAsXlsx, payload => {
|
|
2451
|
+
* console.log('download Xlsx', payload)}, { start: true })
|
|
2452
|
+
* //trigger when action ends
|
|
2453
|
+
* searchEmbed.on(EmbedEvent.DownloadAsXlsx, payload => {
|
|
2454
|
+
* console.log('download Xlsx', payload)})
|
|
2455
|
+
*```
|
|
2154
2456
|
*/
|
|
2155
2457
|
DownloadAsXlsx = "downloadAsXlsx",
|
|
2156
2458
|
/**
|
|
2157
|
-
* Emitted when an
|
|
2459
|
+
* Emitted when an Answer is deleted in the app
|
|
2158
2460
|
*
|
|
2159
2461
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2462
|
+
* @example
|
|
2463
|
+
*```js
|
|
2464
|
+
* //trigger when action starts
|
|
2465
|
+
* appEmbed.on(EmbedEvent.AnswerDelete, payload => {
|
|
2466
|
+
* console.log('delete answer', payload)}, {start: true })
|
|
2467
|
+
* //trigger when action is completed
|
|
2468
|
+
* appEmbed.on(EmbedEvent.AnswerDelete, payload => {
|
|
2469
|
+
* console.log('delete answer', payload)})
|
|
2470
|
+
*```
|
|
2160
2471
|
*/
|
|
2161
2472
|
AnswerDelete = "answerDelete",
|
|
2162
2473
|
/**
|
|
2163
2474
|
* Emitted when an answer is pinned to a Liveboard
|
|
2164
2475
|
*
|
|
2165
2476
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2477
|
+
* @example
|
|
2478
|
+
*```js
|
|
2479
|
+
* //trigger when action starts
|
|
2480
|
+
* searchEmbed.on(EmbedEvent.Pin, payload => {
|
|
2481
|
+
* console.log('pin', payload)
|
|
2482
|
+
* }, {
|
|
2483
|
+
* start: true
|
|
2484
|
+
* })
|
|
2485
|
+
* //trigger when action ends
|
|
2486
|
+
* searchEmbed.on(EmbedEvent.Pin, payload => {
|
|
2487
|
+
* console.log('pin', payload)
|
|
2488
|
+
* })
|
|
2489
|
+
*```
|
|
2166
2490
|
*/
|
|
2167
2491
|
Pin = "pin",
|
|
2168
2492
|
/**
|
|
2169
2493
|
* Emitted when SpotIQ analysis is triggered
|
|
2170
2494
|
*
|
|
2171
2495
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2496
|
+
* @example
|
|
2497
|
+
*```js
|
|
2498
|
+
* //trigger when action starts
|
|
2499
|
+
* searchEmbed.on(EmbedEvent.SpotIQAnalyze, payload => {
|
|
2500
|
+
* console.log('SpotIQAnalyze', payload)
|
|
2501
|
+
* }, {
|
|
2502
|
+
* start: true
|
|
2503
|
+
* })
|
|
2504
|
+
* //trigger when action ends
|
|
2505
|
+
* searchEmbed.on(EmbedEvent.SpotIQAnalyze, payload => {
|
|
2506
|
+
* console.log('SpotIQ analyze', payload)
|
|
2507
|
+
* })
|
|
2508
|
+
*```
|
|
2172
2509
|
*/
|
|
2173
2510
|
SpotIQAnalyze = "spotIQAnalyze",
|
|
2174
2511
|
/**
|
|
2175
2512
|
* Emitted when a user shares an object with another user or group
|
|
2176
2513
|
*
|
|
2177
2514
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2515
|
+
* @example
|
|
2516
|
+
*```js
|
|
2517
|
+
* //trigger when action starts
|
|
2518
|
+
* searchEmbed.on(EmbedEvent.Share, payload => {
|
|
2519
|
+
* console.log('Share', payload)
|
|
2520
|
+
* }, {
|
|
2521
|
+
* start: true
|
|
2522
|
+
* })
|
|
2523
|
+
* //trigger when action ends
|
|
2524
|
+
* searchEmbed.on(EmbedEvent.Share, payload => {
|
|
2525
|
+
* console.log('Share', payload)
|
|
2526
|
+
* })
|
|
2527
|
+
*```
|
|
2178
2528
|
*/
|
|
2179
2529
|
Share = "share",
|
|
2180
2530
|
/**
|
|
2181
|
-
* Emitted when a user clicks the Include action to include a specific value or
|
|
2182
|
-
* on a chart or table
|
|
2531
|
+
* Emitted when a user clicks the **Include** action to include a specific value or
|
|
2532
|
+
* data on a chart or table.
|
|
2183
2533
|
*
|
|
2184
2534
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2535
|
+
* @example
|
|
2536
|
+
*```js
|
|
2537
|
+
* appEmbed.on(EmbedEvent.DrillInclude, payload => {
|
|
2538
|
+
* console.log('Drill include', payload);
|
|
2539
|
+
* })
|
|
2540
|
+
*```
|
|
2185
2541
|
*/
|
|
2186
2542
|
DrillInclude = "context-menu-item-include",
|
|
2187
2543
|
/**
|
|
2188
|
-
* Emitted when a user clicks the Exclude action to exclude a specific value or
|
|
2189
|
-
* on a chart or table
|
|
2544
|
+
* Emitted when a user clicks the **Exclude** action to exclude a specific value or
|
|
2545
|
+
* data on a chart or table
|
|
2190
2546
|
*
|
|
2191
2547
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2548
|
+
* @example
|
|
2549
|
+
*```js
|
|
2550
|
+
* appEmbed.on(EmbedEvent.DrillExclude, payload => {
|
|
2551
|
+
* console.log('Drill exclude', payload);
|
|
2552
|
+
* })
|
|
2553
|
+
*```
|
|
2192
2554
|
*/
|
|
2193
2555
|
DrillExclude = "context-menu-item-exclude",
|
|
2194
2556
|
/**
|
|
2195
|
-
* Emitted when
|
|
2557
|
+
* Emitted when a column value is copied in the embedded app.
|
|
2196
2558
|
*
|
|
2197
2559
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2560
|
+
* @example
|
|
2561
|
+
*```js
|
|
2562
|
+
* seachEmbed.on(EmbedEvent.CopyToClipboard, payload => {
|
|
2563
|
+
* console.log('copy to clipboard', payload);
|
|
2564
|
+
* })
|
|
2565
|
+
*```
|
|
2198
2566
|
*/
|
|
2199
2567
|
CopyToClipboard = "context-menu-item-copy-to-clipboard",
|
|
2200
2568
|
/**
|
|
2201
|
-
* Emitted when a user clicks the Update TML action
|
|
2569
|
+
* Emitted when a user clicks the **Update TML** action
|
|
2202
2570
|
*
|
|
2203
2571
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2572
|
+
* @example
|
|
2573
|
+
*```js
|
|
2574
|
+
* liveboardEmbed.on(EmbedEvent.UpdateTML)
|
|
2575
|
+
* })
|
|
2576
|
+
*```
|
|
2204
2577
|
*/
|
|
2205
2578
|
UpdateTML = "updateTSL",
|
|
2206
2579
|
/**
|
|
2207
|
-
* Emitted when a user clicks the Edit TML action
|
|
2580
|
+
* Emitted when a user clicks the **Edit TML** action
|
|
2208
2581
|
*
|
|
2209
2582
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2583
|
+
* @example
|
|
2584
|
+
*```js
|
|
2585
|
+
* appEmbed.on(EmbedEvent.EditTML, payload => {
|
|
2586
|
+
* console.log('Edit TML', payload);
|
|
2587
|
+
* })
|
|
2588
|
+
*```
|
|
2210
2589
|
*/
|
|
2211
2590
|
EditTML = "editTSL",
|
|
2212
2591
|
/**
|
|
2213
|
-
* Emitted when
|
|
2592
|
+
* Emitted when the **Export TML** action is triggered on an
|
|
2593
|
+
* an embedded object in the app
|
|
2214
2594
|
*
|
|
2215
2595
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2596
|
+
* @example
|
|
2597
|
+
*```js
|
|
2598
|
+
* //trigger when action starts
|
|
2599
|
+
* searchEmbed.on(EmbedEvent.ExportTML, payload => {
|
|
2600
|
+
* console.log('Export TML', payload)}, { start: true })
|
|
2601
|
+
* //trigger when action ends
|
|
2602
|
+
* searchEmbed.on(EmbedEvent.ExportTML, payload => {
|
|
2603
|
+
* console.log('Export TML', payload)})
|
|
2604
|
+
*```
|
|
2216
2605
|
*/
|
|
2217
2606
|
ExportTML = "exportTSL",
|
|
2218
2607
|
/**
|
|
2219
|
-
* Emitted when an
|
|
2608
|
+
* Emitted when an Answer is saved as a View.
|
|
2220
2609
|
*
|
|
2221
2610
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2611
|
+
* @example
|
|
2612
|
+
*```js
|
|
2613
|
+
* appEmbed.on(EmbedEvent.SaveAsView, payload => {
|
|
2614
|
+
* console.log('View', payload);
|
|
2615
|
+
* })
|
|
2616
|
+
*```
|
|
2222
2617
|
*/
|
|
2223
2618
|
SaveAsView = "saveAsView",
|
|
2224
2619
|
/**
|
|
2225
|
-
* Emitted when
|
|
2620
|
+
* Emitted when the user creates a copy of an Answer
|
|
2226
2621
|
*
|
|
2227
2622
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2623
|
+
* @example
|
|
2624
|
+
*```js
|
|
2625
|
+
* //trigger when action starts
|
|
2626
|
+
* appEmbed.on(EmbedEvent.CopyAEdit, payload => {
|
|
2627
|
+
* console.log('Copy and edit', payload)}, {start: true })
|
|
2628
|
+
* //trigger when action ends
|
|
2629
|
+
* appEmbed.on(EmbedEvent.CopyAEdit, payload => {
|
|
2630
|
+
* console.log('Copy and edit', payload)})
|
|
2631
|
+
*```
|
|
2228
2632
|
*/
|
|
2229
2633
|
CopyAEdit = "copyAEdit",
|
|
2230
2634
|
/**
|
|
2231
|
-
* Emitted when a user clicks Show underlying data on an
|
|
2635
|
+
* Emitted when a user clicks Show underlying data on an Answer
|
|
2232
2636
|
*
|
|
2233
2637
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2638
|
+
* @example
|
|
2639
|
+
*```js
|
|
2640
|
+
* liveboardEmbed.on(EmbedEvent.ShowUnderlyingData, payload => {
|
|
2641
|
+
* console.log('show data', payload);
|
|
2642
|
+
* })
|
|
2643
|
+
*```
|
|
2234
2644
|
*/
|
|
2235
2645
|
ShowUnderlyingData = "showUnderlyingData",
|
|
2236
2646
|
/**
|
|
2237
|
-
* Emitted when an answer is switched to a chart or table view
|
|
2647
|
+
* Emitted when an answer is switched to a chart or table view.
|
|
2238
2648
|
*
|
|
2239
2649
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2650
|
+
* @example
|
|
2651
|
+
*```js
|
|
2652
|
+
* searchEmbed.on(EmbedEvent.AnswerChartSwitcher, payload => {
|
|
2653
|
+
* console.log('switch view', payload);
|
|
2654
|
+
* })
|
|
2655
|
+
*```
|
|
2240
2656
|
*/
|
|
2241
2657
|
AnswerChartSwitcher = "answerChartSwitcher",
|
|
2242
2658
|
/**
|
|
2243
|
-
* Internal event to communicate the initial settings back to the
|
|
2659
|
+
* Internal event to communicate the initial settings back to the ThoughtSpot app
|
|
2244
2660
|
*
|
|
2245
2661
|
* @hidden
|
|
2246
2662
|
*/
|
|
2247
2663
|
APP_INIT = "appInit",
|
|
2248
2664
|
/**
|
|
2249
|
-
* Emitted when a user clicks Show Liveboard details on a Liveboard
|
|
2665
|
+
* Emitted when a user clicks **Show Liveboard details** on a Liveboard
|
|
2250
2666
|
*
|
|
2251
2667
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2668
|
+
* @example
|
|
2669
|
+
*```js
|
|
2670
|
+
* liveboardEmbed.on(EmbedEvent.AnswerChartSwitcher, payload => {
|
|
2671
|
+
* console.log('Liveboard details', payload);
|
|
2672
|
+
* })
|
|
2673
|
+
*```
|
|
2252
2674
|
*/
|
|
2253
2675
|
LiveboardInfo = "pinboardInfo",
|
|
2254
2676
|
/**
|
|
2255
2677
|
* Emitted when a user clicks on the Favorite icon on a Liveboard
|
|
2256
2678
|
*
|
|
2257
2679
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2680
|
+
* @example
|
|
2681
|
+
*```js
|
|
2682
|
+
* liveboardEmbed.on(EmbedEvent.AddToFavorites, payload => {
|
|
2683
|
+
* console.log('favorites', payload);
|
|
2684
|
+
* })
|
|
2685
|
+
*```
|
|
2258
2686
|
*/
|
|
2259
2687
|
AddToFavorites = "addToFavorites",
|
|
2260
2688
|
/**
|
|
2261
|
-
* Emitted when a user clicks Schedule on a Liveboard
|
|
2689
|
+
* Emitted when a user clicks **Schedule** on a Liveboard
|
|
2262
2690
|
*
|
|
2263
2691
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2692
|
+
* @example
|
|
2693
|
+
*```js
|
|
2694
|
+
* liveboardEmbed.on(EmbedEvent.Schedule, payload => {
|
|
2695
|
+
* console.log(`Liveboard schedule', payload);
|
|
2696
|
+
* })
|
|
2697
|
+
*```
|
|
2264
2698
|
*/
|
|
2265
2699
|
Schedule = "subscription",
|
|
2266
2700
|
/**
|
|
2267
|
-
* Emitted when a user clicks Edit on a Liveboard or visualization
|
|
2701
|
+
* Emitted when a user clicks **Edit** on a Liveboard or visualization
|
|
2268
2702
|
*
|
|
2269
2703
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2704
|
+
* @example
|
|
2705
|
+
*```js
|
|
2706
|
+
* liveboardEmbed.on(EmbedEvent.Edit, payload => {
|
|
2707
|
+
* console.log(`Liveboard edit', payload);
|
|
2708
|
+
* })
|
|
2709
|
+
*```
|
|
2270
2710
|
*/
|
|
2271
2711
|
Edit = "edit",
|
|
2272
2712
|
/**
|
|
2273
|
-
* Emitted when a user clicks Make a copy on a Liveboard
|
|
2713
|
+
* Emitted when a user clicks *Make a copy* on a Liveboard
|
|
2274
2714
|
*
|
|
2275
2715
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2716
|
+
* @example
|
|
2717
|
+
*```js
|
|
2718
|
+
* liveboardEmbed.on(EmbedEvent.MakeACopy, payload => {
|
|
2719
|
+
* console.log(`Copy', payload);
|
|
2720
|
+
* })
|
|
2721
|
+
*```
|
|
2276
2722
|
*/
|
|
2277
2723
|
MakeACopy = "makeACopy",
|
|
2278
2724
|
/**
|
|
2279
|
-
* Emitted when a user clicks Present on a Liveboard or visualization
|
|
2725
|
+
* Emitted when a user clicks **Present** on a Liveboard or visualization
|
|
2280
2726
|
*
|
|
2281
2727
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2728
|
+
* @example
|
|
2729
|
+
*```js
|
|
2730
|
+
* liveboardEmbed.trigger(HostEvent.Present)
|
|
2731
|
+
*```
|
|
2732
|
+
* @example
|
|
2733
|
+
*```js
|
|
2734
|
+
* liveboardEmbed.on(EmbedEvent.Present, {
|
|
2735
|
+
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
2736
|
+
* })
|
|
2737
|
+
*```
|
|
2282
2738
|
*/
|
|
2283
2739
|
Present = "present",
|
|
2284
2740
|
/**
|
|
2285
|
-
* Emitted when a user clicks Delete on a
|
|
2741
|
+
* Emitted when a user clicks **Delete** on a visualization
|
|
2286
2742
|
*
|
|
2287
2743
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2744
|
+
* @example
|
|
2745
|
+
*```js
|
|
2746
|
+
* liveboardEmbed.trigger(HostEvent.Delete,
|
|
2747
|
+
* {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
2748
|
+
*```
|
|
2288
2749
|
*/
|
|
2289
2750
|
Delete = "delete",
|
|
2290
2751
|
/**
|
|
2291
2752
|
* Emitted when a user clicks Manage schedules on a Liveboard
|
|
2292
2753
|
*
|
|
2293
2754
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2755
|
+
* @example
|
|
2756
|
+
*```js
|
|
2757
|
+
* liveboardEmbed.trigger(HostEvent.SchedulesList)
|
|
2758
|
+
*```
|
|
2294
2759
|
*/
|
|
2295
2760
|
SchedulesList = "schedule-list",
|
|
2296
2761
|
/**
|
|
2297
|
-
* Emitted when a user clicks Cancel in edit mode on a Liveboard
|
|
2762
|
+
* Emitted when a user clicks **Cancel** in edit mode on a Liveboard
|
|
2298
2763
|
*
|
|
2299
2764
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2765
|
+
* @example
|
|
2766
|
+
*```js
|
|
2767
|
+
* liveboardEmbed.trigger(HostEvent.Cancel)
|
|
2768
|
+
*```
|
|
2300
2769
|
*/
|
|
2301
2770
|
Cancel = "cancel",
|
|
2302
2771
|
/**
|
|
2303
|
-
* Emitted when a user clicks Explore on a visualization
|
|
2772
|
+
* Emitted when a user clicks **Explore** on a visualization
|
|
2304
2773
|
*
|
|
2305
2774
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2775
|
+
* @example
|
|
2776
|
+
*```js
|
|
2777
|
+
* liveboardEmbed.trigger(HostEvent.Explore, {
|
|
2778
|
+
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
2779
|
+
*```
|
|
2306
2780
|
*/
|
|
2307
2781
|
Explore = "explore",
|
|
2308
2782
|
/**
|
|
2309
|
-
* Emitted when a user clicks Copy link action on a visualization
|
|
2783
|
+
* Emitted when a user clicks **Copy link** action on a visualization
|
|
2310
2784
|
*
|
|
2311
2785
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2786
|
+
* @example
|
|
2787
|
+
*```js
|
|
2788
|
+
* liveboardEmbed.trigger(HostEvent.CopyLink, {
|
|
2789
|
+
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
2790
|
+
*```
|
|
2312
2791
|
*/
|
|
2313
2792
|
CopyLink = "embedDocument",
|
|
2314
2793
|
/**
|
|
2315
|
-
* Emitted when a user interacts with cross filters on a visualization or
|
|
2794
|
+
* Emitted when a user interacts with cross filters on a visualization or Liveboard
|
|
2316
2795
|
*
|
|
2317
|
-
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
2796
|
+
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
|
|
2797
|
+
* @example
|
|
2798
|
+
*```js
|
|
2799
|
+
* liveboardEmbed.trigger(HostEvent.CrossFilterChanged, {
|
|
2800
|
+
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
2801
|
+
*```
|
|
2318
2802
|
*/
|
|
2319
2803
|
CrossFilterChanged = "cross-filter-changed",
|
|
2320
2804
|
/**
|
|
2321
2805
|
* Emitted when a user right clicks on a visualization (chart or table)
|
|
2322
2806
|
*
|
|
2323
|
-
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
2807
|
+
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
|
|
2808
|
+
* @example
|
|
2809
|
+
*```js
|
|
2810
|
+
* LiveboardEmbed.on(EmbedEvent.VizPointRightClick, payload => {
|
|
2811
|
+
* console.log('VizPointClick', payload)
|
|
2812
|
+
* })
|
|
2813
|
+
*```
|
|
2324
2814
|
*/
|
|
2325
2815
|
VizPointRightClick = "vizPointRightClick",
|
|
2326
2816
|
/**
|
|
2327
|
-
* Emitted when a user clicks
|
|
2817
|
+
* Emitted when a user clicks **Insert to slide** on a visualization
|
|
2328
2818
|
*
|
|
2329
2819
|
* @hidden
|
|
2330
2820
|
*/
|
|
@@ -2332,52 +2822,52 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2332
2822
|
/**
|
|
2333
2823
|
* @hidden
|
|
2334
2824
|
* Emitted when a user changes any filter on a Liveboard.
|
|
2335
|
-
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
2825
|
+
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.0.sw
|
|
2336
2826
|
*/
|
|
2337
2827
|
FilterChanged = "filterChanged",
|
|
2338
2828
|
/**
|
|
2339
|
-
* Emitted when a user
|
|
2829
|
+
* Emitted when a user clicks the **Go** button on the Search page
|
|
2340
2830
|
*
|
|
2341
|
-
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
2831
|
+
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
2342
2832
|
*/
|
|
2343
2833
|
SageEmbedQuery = "sageEmbedQuery",
|
|
2344
2834
|
/**
|
|
2345
|
-
*
|
|
2835
|
+
* Emitted when a user selects a data source.
|
|
2346
2836
|
*
|
|
2347
|
-
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
2837
|
+
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
2348
2838
|
*/
|
|
2349
2839
|
SageWorksheetUpdated = "sageWorksheetUpdated",
|
|
2350
2840
|
/**
|
|
2351
|
-
* Emitted when a user updates a connection
|
|
2841
|
+
* Emitted when a user updates a connection on the **Data** page
|
|
2352
2842
|
*
|
|
2353
|
-
* @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl
|
|
2843
|
+
* @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
|
|
2354
2844
|
*/
|
|
2355
2845
|
UpdateConnection = "updateConnection",
|
|
2356
2846
|
/**
|
|
2357
|
-
* Emitted when a user updates a connection
|
|
2847
|
+
* Emitted when a user updates a connection on the **Data** page
|
|
2358
2848
|
*
|
|
2359
|
-
* @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl
|
|
2849
|
+
* @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
|
|
2360
2850
|
*/
|
|
2361
2851
|
CreateConnection = "createConnection",
|
|
2362
2852
|
/**
|
|
2363
2853
|
* Emitted when name, status (private or public) or filter values of a
|
|
2364
|
-
*
|
|
2854
|
+
* Personalised view is updated.
|
|
2365
2855
|
*
|
|
2366
2856
|
* @returns viewName: string
|
|
2367
2857
|
* @returns viewId: string
|
|
2368
2858
|
* @returns liveboardId: string
|
|
2369
2859
|
* @returns isPublic: boolean
|
|
2370
|
-
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
2860
|
+
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
2371
2861
|
*/
|
|
2372
2862
|
UpdatePersonalisedView = "updatePersonalisedView",
|
|
2373
2863
|
/**
|
|
2374
|
-
* Emitted when a
|
|
2864
|
+
* Emitted when a Personalised view is saved.
|
|
2375
2865
|
*
|
|
2376
2866
|
* @returns viewName: string
|
|
2377
2867
|
* @returns viewId: string
|
|
2378
2868
|
* @returns liveboardId: string
|
|
2379
2869
|
* @returns isPublic: boolean
|
|
2380
|
-
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
2870
|
+
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
2381
2871
|
*/
|
|
2382
2872
|
SavePersonalisedView = "savePersonalisedView",
|
|
2383
2873
|
/**
|
|
@@ -2387,7 +2877,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2387
2877
|
* @returns viewId: string
|
|
2388
2878
|
* @returns liveboardId: string
|
|
2389
2879
|
* @returns isPublic: boolean
|
|
2390
|
-
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
2880
|
+
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
2391
2881
|
*/
|
|
2392
2882
|
ResetLiveboard = "resetLiveboard",
|
|
2393
2883
|
/**
|
|
@@ -2395,20 +2885,30 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2395
2885
|
*
|
|
2396
2886
|
* @returns views: string[]
|
|
2397
2887
|
* @returns liveboardId: string
|
|
2398
|
-
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
2888
|
+
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
2399
2889
|
*/
|
|
2400
2890
|
DeletePersonalisedView = "deletePersonalisedView",
|
|
2401
2891
|
/**
|
|
2402
|
-
*
|
|
2892
|
+
* Emitted when a user creates a new worksheet
|
|
2403
2893
|
*
|
|
2404
2894
|
* @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl
|
|
2405
2895
|
*/
|
|
2406
2896
|
CreateWorksheet = "createWorksheet",
|
|
2407
2897
|
/**
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2898
|
+
* Emitted when Ask Sage is initialized.
|
|
2899
|
+
*
|
|
2900
|
+
* @returns viewName: string
|
|
2901
|
+
* @returns viewId: string
|
|
2902
|
+
* @returns liveboardId: string
|
|
2903
|
+
* @returns isPublic: boolean
|
|
2904
|
+
* @version SDK : 1.29.0 | Thoughtspot: 9.12.0.cl
|
|
2905
|
+
*/
|
|
2906
|
+
AskSageInit = "AskSageInit",
|
|
2907
|
+
/**
|
|
2908
|
+
* Emitted when a LB/viz is renamed
|
|
2909
|
+
*
|
|
2910
|
+
* @version SDK : 1.28.0 | ThoughtSpot: 9.11.0.cl
|
|
2911
|
+
*/
|
|
2412
2912
|
Rename = "rename"
|
|
2413
2913
|
}
|
|
2414
2914
|
/**
|
|
@@ -2435,15 +2935,16 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2435
2935
|
*/
|
|
2436
2936
|
export enum HostEvent {
|
|
2437
2937
|
/**
|
|
2438
|
-
* Triggers a search
|
|
2439
|
-
*
|
|
2938
|
+
* Triggers a search operation with the search tokens specified in
|
|
2939
|
+
* the search query string.
|
|
2940
|
+
* Supported in `AppEmbed` and `SearchEmbed` deployments.
|
|
2440
2941
|
* Includes the following properties:
|
|
2441
2942
|
*
|
|
2442
|
-
* @param -
|
|
2943
|
+
* @param - `searchQuery` - query string with search tokens
|
|
2944
|
+
* @param - `dataSources` - Data source GUID to Search on
|
|
2443
2945
|
* - Although an array, only a single source
|
|
2444
2946
|
* is supported.
|
|
2445
|
-
* @param -
|
|
2446
|
-
* @param - execute - executes the existing / updated query
|
|
2947
|
+
* @param - `execute` - executes search and updates the existing query
|
|
2447
2948
|
* @example
|
|
2448
2949
|
* ```js
|
|
2449
2950
|
* searchembed.trigger(HostEvent.Search, {
|
|
@@ -2463,6 +2964,10 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2463
2964
|
* @param - columnGuid - Optional. GUID of the column to drill
|
|
2464
2965
|
* by. If not provided it will auto drill by the configured
|
|
2465
2966
|
* column.
|
|
2967
|
+
* @param - autoDrillDown - Optional. If true, the drill down will be
|
|
2968
|
+
* done automatically on the most popular column.
|
|
2969
|
+
* @param - vizId [TS >= 9.8.0] - Optional. The GUID of the visualization to drill
|
|
2970
|
+
* in case of a liveboard.
|
|
2466
2971
|
* @example
|
|
2467
2972
|
* ```js
|
|
2468
2973
|
* searchEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
|
|
@@ -2479,6 +2984,25 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2479
2984
|
* });
|
|
2480
2985
|
* })
|
|
2481
2986
|
* ```
|
|
2987
|
+
* @example
|
|
2988
|
+
* ```js
|
|
2989
|
+
* // Works with TS 9.8.0 and above
|
|
2990
|
+
*
|
|
2991
|
+
* liveboardEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
|
|
2992
|
+
* console.log(payload);
|
|
2993
|
+
* const clickedPoint = payload.data.clickedPoint;
|
|
2994
|
+
* const selectedPoint = payload.data.selectedPoints;
|
|
2995
|
+
* console.log('>>> called', clickedPoint);
|
|
2996
|
+
* liveboardEmbed.trigger(HostEvent.DrillDown, {
|
|
2997
|
+
* points: {
|
|
2998
|
+
* clickedPoint,
|
|
2999
|
+
* selectedPoints: selectedPoint
|
|
3000
|
+
* },
|
|
3001
|
+
* autoDrillDown: true,
|
|
3002
|
+
* vizId: payload.data.vizId
|
|
3003
|
+
* });
|
|
3004
|
+
* })
|
|
3005
|
+
* ```
|
|
2482
3006
|
* @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
|
|
2483
3007
|
*/
|
|
2484
3008
|
DrillDown = "triggerDrillDown",
|
|
@@ -2495,7 +3019,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2495
3019
|
*/
|
|
2496
3020
|
Reload = "reload",
|
|
2497
3021
|
/**
|
|
2498
|
-
*
|
|
3022
|
+
* Display specific visualizations on a Liveboard.
|
|
2499
3023
|
*
|
|
2500
3024
|
* @param - An array of GUIDs of the visualization to show. The visualization IDs not passed
|
|
2501
3025
|
* in this parameter will be hidden.
|
|
@@ -2509,7 +3033,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2509
3033
|
*/
|
|
2510
3034
|
SetVisibleVizs = "SetPinboardVisibleVizs",
|
|
2511
3035
|
/**
|
|
2512
|
-
* Set
|
|
3036
|
+
* Set a Liveboard tab as an active tab.
|
|
2513
3037
|
*
|
|
2514
3038
|
* @param - tabId - string of id of Tab to show
|
|
2515
3039
|
* @example
|
|
@@ -2522,7 +3046,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2522
3046
|
*/
|
|
2523
3047
|
SetActiveTab = "SetActiveTab",
|
|
2524
3048
|
/**
|
|
2525
|
-
*
|
|
3049
|
+
* Update runtime filters applied on a Saved Answer or Liveboard. The
|
|
2526
3050
|
* runtime filters passed here are appended to the existing runtime
|
|
2527
3051
|
* filters.
|
|
2528
3052
|
* Pass an array of runtime filters with the following attributes:
|
|
@@ -2548,10 +3072,11 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2548
3072
|
*/
|
|
2549
3073
|
UpdateRuntimeFilters = "UpdateRuntimeFilters",
|
|
2550
3074
|
/**
|
|
2551
|
-
* Navigate to a specific page in the embedded application
|
|
3075
|
+
* Navigate to a specific page in the embedded ThoughtSpot application.
|
|
2552
3076
|
* This is the same as calling `appEmbed.navigateToPage(path, true)`
|
|
2553
3077
|
*
|
|
2554
|
-
* @param - path - the path to navigate to
|
|
3078
|
+
* @param - `path` - the path to navigate to to go forward or back. The path value can
|
|
3079
|
+
* be a number; for example, `1`, `-1`.
|
|
2555
3080
|
* @example
|
|
2556
3081
|
* ```js
|
|
2557
3082
|
* appEmbed.navigateToPage(-1)
|
|
@@ -2560,7 +3085,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2560
3085
|
*/
|
|
2561
3086
|
Navigate = "Navigate",
|
|
2562
3087
|
/**
|
|
2563
|
-
*
|
|
3088
|
+
* Open the filter panel for a particular column.
|
|
2564
3089
|
* Works with Search and Liveboard embed.
|
|
2565
3090
|
*
|
|
2566
3091
|
* @param - { columnId: string,
|
|
@@ -2578,7 +3103,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2578
3103
|
*/
|
|
2579
3104
|
OpenFilter = "openFilter",
|
|
2580
3105
|
/**
|
|
2581
|
-
*
|
|
3106
|
+
* Add columns to the current search query.
|
|
2582
3107
|
*
|
|
2583
3108
|
* @param - { columnIds: string[] }
|
|
2584
3109
|
* @example
|
|
@@ -2589,7 +3114,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2589
3114
|
*/
|
|
2590
3115
|
AddColumns = "addColumns",
|
|
2591
3116
|
/**
|
|
2592
|
-
*
|
|
3117
|
+
* Remove a column from the current search query.
|
|
2593
3118
|
*
|
|
2594
3119
|
* @param - { columnId: string }
|
|
2595
3120
|
* @example
|
|
@@ -2600,27 +3125,29 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2600
3125
|
*/
|
|
2601
3126
|
RemoveColumn = "removeColumn",
|
|
2602
3127
|
/**
|
|
2603
|
-
*
|
|
3128
|
+
* Get the transient state of a Liveboard as encoded content.
|
|
3129
|
+
* This includes unsaved and ad hoc changes such as
|
|
3130
|
+
* Liveboard filters, runtime filters applied on visualizations on a
|
|
3131
|
+
* Liveboard, and Liveboard layout, changes to visualizations such as
|
|
3132
|
+
* sorting, toggling of legends, and data drill down.
|
|
2604
3133
|
*
|
|
2605
3134
|
* @example
|
|
2606
3135
|
* ```js
|
|
2607
|
-
* liveboardEmbed.trigger(HostEvent.
|
|
3136
|
+
* liveboardEmbed.trigger(HostEvent.getexportrequestforcurrentpinboard).then(
|
|
3137
|
+
* data=>console.log(data))
|
|
2608
3138
|
* ```
|
|
2609
3139
|
* @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1.sw
|
|
2610
3140
|
*/
|
|
2611
3141
|
getExportRequestForCurrentPinboard = "getExportRequestForCurrentPinboard",
|
|
2612
3142
|
/**
|
|
2613
|
-
*
|
|
3143
|
+
* Trigger the **Pin** action on an embedded object
|
|
2614
3144
|
*
|
|
2615
3145
|
* @param - Liveboard embed takes the `vizId` as a
|
|
2616
|
-
* key. Can be left undefined when embedding Search, full app or
|
|
3146
|
+
* key. Can be left undefined when embedding Search, full app, or
|
|
2617
3147
|
* a visualization.
|
|
2618
3148
|
* @example
|
|
2619
3149
|
* ```js
|
|
2620
|
-
*
|
|
2621
|
-
* ```
|
|
2622
|
-
* ```js
|
|
2623
|
-
* vizEmbed.trigger(HostEvent.Pin)
|
|
3150
|
+
* appEmbed.trigger(HostEvent.Pin)
|
|
2624
3151
|
* ```
|
|
2625
3152
|
* ```js
|
|
2626
3153
|
* searchEmbed.trigger(HostEvent.Pin)
|
|
@@ -2629,17 +3156,18 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2629
3156
|
*/
|
|
2630
3157
|
Pin = "pin",
|
|
2631
3158
|
/**
|
|
2632
|
-
*
|
|
3159
|
+
* Trigger the **Show Liveboard details** action
|
|
3160
|
+
* on an embedded Liveboard.
|
|
2633
3161
|
*
|
|
2634
3162
|
* @example
|
|
2635
|
-
|
|
2636
|
-
*
|
|
2637
|
-
|
|
3163
|
+
*```js
|
|
3164
|
+
* liveboardEmbed.trigger(HostEvent.LiveboardInfo)
|
|
3165
|
+
*```
|
|
2638
3166
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2639
3167
|
*/
|
|
2640
3168
|
LiveboardInfo = "pinboardInfo",
|
|
2641
3169
|
/**
|
|
2642
|
-
*
|
|
3170
|
+
* Trigger the **Schedule** action on an embedded Liveboard.
|
|
2643
3171
|
*
|
|
2644
3172
|
* @example
|
|
2645
3173
|
* ```js
|
|
@@ -2649,7 +3177,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2649
3177
|
*/
|
|
2650
3178
|
Schedule = "subscription",
|
|
2651
3179
|
/**
|
|
2652
|
-
*
|
|
3180
|
+
* Trigger the **Manage schedule** action on an embedded Liveboard
|
|
2653
3181
|
*
|
|
2654
3182
|
* @example
|
|
2655
3183
|
* ```js
|
|
@@ -2659,7 +3187,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2659
3187
|
*/
|
|
2660
3188
|
SchedulesList = "schedule-list",
|
|
2661
3189
|
/**
|
|
2662
|
-
*
|
|
3190
|
+
* Trigger the **Export TML** action on an embedded Liveboard.
|
|
2663
3191
|
*
|
|
2664
3192
|
* @example
|
|
2665
3193
|
* ```js
|
|
@@ -2669,7 +3197,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2669
3197
|
*/
|
|
2670
3198
|
ExportTML = "exportTSL",
|
|
2671
3199
|
/**
|
|
2672
|
-
*
|
|
3200
|
+
* Trigger the **Edit TML** action on an embedded Liveboard.
|
|
2673
3201
|
*
|
|
2674
3202
|
* @example
|
|
2675
3203
|
* ```js
|
|
@@ -2679,7 +3207,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2679
3207
|
*/
|
|
2680
3208
|
EditTML = "editTSL",
|
|
2681
3209
|
/**
|
|
2682
|
-
*
|
|
3210
|
+
* Trigger the **Update TML** action on an embedded Liveboard.
|
|
2683
3211
|
*
|
|
2684
3212
|
* @example
|
|
2685
3213
|
* ```js
|
|
@@ -2689,7 +3217,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2689
3217
|
*/
|
|
2690
3218
|
UpdateTML = "updateTSL",
|
|
2691
3219
|
/**
|
|
2692
|
-
*
|
|
3220
|
+
* Trigger the **Download PDF** action on an embedded Liveboard.
|
|
2693
3221
|
*
|
|
2694
3222
|
* @example
|
|
2695
3223
|
* ```js
|
|
@@ -2699,8 +3227,8 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2699
3227
|
*/
|
|
2700
3228
|
DownloadAsPdf = "downloadAsPdf",
|
|
2701
3229
|
/**
|
|
2702
|
-
*
|
|
2703
|
-
* visualization page
|
|
3230
|
+
* Trigger the **Make a copy** action on a Liveboard, Search, or
|
|
3231
|
+
* visualization page.
|
|
2704
3232
|
*
|
|
2705
3233
|
* @example
|
|
2706
3234
|
* ```js
|
|
@@ -2716,7 +3244,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2716
3244
|
*/
|
|
2717
3245
|
MakeACopy = "makeACopy",
|
|
2718
3246
|
/**
|
|
2719
|
-
*
|
|
3247
|
+
* Trigger the **Delete** action for a Liveboard.
|
|
2720
3248
|
*
|
|
2721
3249
|
* @example
|
|
2722
3250
|
* ```js
|
|
@@ -2726,7 +3254,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2726
3254
|
*/
|
|
2727
3255
|
Remove = "delete",
|
|
2728
3256
|
/**
|
|
2729
|
-
*
|
|
3257
|
+
* Trigger the **Explore** action on a visualization.
|
|
2730
3258
|
*
|
|
2731
3259
|
* @param - an object with `vizId` as a key
|
|
2732
3260
|
* @example
|
|
@@ -2737,7 +3265,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2737
3265
|
*/
|
|
2738
3266
|
Explore = "explore",
|
|
2739
3267
|
/**
|
|
2740
|
-
*
|
|
3268
|
+
* Trigger the **Create alert** action on a visualization
|
|
2741
3269
|
*
|
|
2742
3270
|
* @param - an object with `vizId` as a key
|
|
2743
3271
|
* @example
|
|
@@ -2750,7 +3278,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2750
3278
|
*/
|
|
2751
3279
|
CreateMonitor = "createMonitor",
|
|
2752
3280
|
/**
|
|
2753
|
-
*
|
|
3281
|
+
* Trigger the **Manage alerts** action on a visualization
|
|
2754
3282
|
*
|
|
2755
3283
|
* @param - an object with `vizId` as a key
|
|
2756
3284
|
* @example
|
|
@@ -2763,7 +3291,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2763
3291
|
*/
|
|
2764
3292
|
ManageMonitor = "manageMonitor",
|
|
2765
3293
|
/**
|
|
2766
|
-
*
|
|
3294
|
+
* Trigger the **Edit** action on a Liveboard or visualization
|
|
2767
3295
|
*
|
|
2768
3296
|
* @param - object - To trigger the action for a specific visualization
|
|
2769
3297
|
* in Liveboard embed, pass in `vizId` as a key.
|
|
@@ -2784,7 +3312,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2784
3312
|
*/
|
|
2785
3313
|
Edit = "edit",
|
|
2786
3314
|
/**
|
|
2787
|
-
*
|
|
3315
|
+
* Trigger the **Copy link** action on a Liveboard or visualization
|
|
2788
3316
|
*
|
|
2789
3317
|
* @param - object - to trigger the action for a
|
|
2790
3318
|
* specific visualization in Liveboard embed, pass in `vizId` as a key
|
|
@@ -2802,7 +3330,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2802
3330
|
*/
|
|
2803
3331
|
CopyLink = "embedDocument",
|
|
2804
3332
|
/**
|
|
2805
|
-
*
|
|
3333
|
+
* Trigger the **Present** action on a Liveboard or visualization
|
|
2806
3334
|
*
|
|
2807
3335
|
* @param - object - to trigger the action for a specific visualization
|
|
2808
3336
|
* in Liveboard embed, pass in `vizId` as a key
|
|
@@ -2820,7 +3348,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2820
3348
|
*/
|
|
2821
3349
|
Present = "present",
|
|
2822
3350
|
/**
|
|
2823
|
-
*
|
|
3351
|
+
* Get TML for the current search.
|
|
2824
3352
|
*
|
|
2825
3353
|
* @example
|
|
2826
3354
|
* ```js
|
|
@@ -2835,7 +3363,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2835
3363
|
*/
|
|
2836
3364
|
GetTML = "getTML",
|
|
2837
3365
|
/**
|
|
2838
|
-
*
|
|
3366
|
+
* Trigger the **Show underlying data** action on visualization or search
|
|
2839
3367
|
*
|
|
2840
3368
|
* @param - an object with vizId as a key
|
|
2841
3369
|
* @example
|
|
@@ -2853,7 +3381,9 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2853
3381
|
*/
|
|
2854
3382
|
ShowUnderlyingData = "showUnderlyingData",
|
|
2855
3383
|
/**
|
|
2856
|
-
*
|
|
3384
|
+
* Trigger the **Delete** action for a visualization
|
|
3385
|
+
* in an embedded Liveboard, or a chart or table
|
|
3386
|
+
* generated from Search.
|
|
2857
3387
|
*
|
|
2858
3388
|
* @param - Liveboard embed takes an object with `vizId` as a key.
|
|
2859
3389
|
* Can be left empty if embedding Search or visualization.
|
|
@@ -2863,16 +3393,13 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2863
3393
|
* '730496d6-6903-4601-937e-2c691821af3c'})
|
|
2864
3394
|
* ```
|
|
2865
3395
|
* ```js
|
|
2866
|
-
* vizEmbed.trigger(HostEvent.Delete)
|
|
2867
|
-
* ```
|
|
2868
|
-
* ```js
|
|
2869
3396
|
* searchEmbed.trigger(HostEvent.Delete)
|
|
2870
3397
|
* ```
|
|
2871
3398
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
2872
3399
|
*/
|
|
2873
3400
|
Delete = "onDeleteAnswer",
|
|
2874
3401
|
/**
|
|
2875
|
-
*
|
|
3402
|
+
* Trigger the **SpotIQ analyze** action on visualization
|
|
2876
3403
|
* or search.
|
|
2877
3404
|
*
|
|
2878
3405
|
* @param - Liveboard embed takes `vizId` as a
|
|
@@ -2893,7 +3420,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2893
3420
|
*/
|
|
2894
3421
|
SpotIQAnalyze = "spotIQAnalyze",
|
|
2895
3422
|
/**
|
|
2896
|
-
*
|
|
3423
|
+
* Trigger the **Download** action on charts in
|
|
2897
3424
|
* the embedded view.
|
|
2898
3425
|
*
|
|
2899
3426
|
* @example
|
|
@@ -2902,17 +3429,15 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2902
3429
|
* '730496d6-6903-4601-937e-2c691821af3c'})
|
|
2903
3430
|
* ```
|
|
2904
3431
|
* ```js
|
|
2905
|
-
*
|
|
2906
|
-
* ```
|
|
2907
|
-
* ```js
|
|
2908
|
-
* searchEmbed.trigger(HostEvent.Download)
|
|
3432
|
+
* embed.trigger(HostEvent.Download)
|
|
2909
3433
|
* ```
|
|
2910
|
-
* @deprecated from SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl ,9.4.1.sw
|
|
3434
|
+
* @deprecated from SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl ,9.4.1.sw
|
|
3435
|
+
* Use {@link DownloadAsPng}
|
|
2911
3436
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
2912
3437
|
*/
|
|
2913
3438
|
Download = "downloadAsPng",
|
|
2914
3439
|
/**
|
|
2915
|
-
*
|
|
3440
|
+
* Trigger the **Download** > **PNG** action on
|
|
2916
3441
|
* charts in the embedded view.
|
|
2917
3442
|
*
|
|
2918
3443
|
* @example
|
|
@@ -2928,7 +3453,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2928
3453
|
*/
|
|
2929
3454
|
DownloadAsPng = "downloadAsPng",
|
|
2930
3455
|
/**
|
|
2931
|
-
*
|
|
3456
|
+
* Trigger the **Download** > **CSV** action on tables in
|
|
2932
3457
|
* the embedded view.
|
|
2933
3458
|
*
|
|
2934
3459
|
* @example
|
|
@@ -2946,7 +3471,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2946
3471
|
*/
|
|
2947
3472
|
DownloadAsCsv = "downloadAsCSV",
|
|
2948
3473
|
/**
|
|
2949
|
-
*
|
|
3474
|
+
* Trigger the **Download** > **XLSX** action on tables
|
|
2950
3475
|
* in the embedded view.
|
|
2951
3476
|
*
|
|
2952
3477
|
* @example
|
|
@@ -2964,7 +3489,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2964
3489
|
*/
|
|
2965
3490
|
DownloadAsXlsx = "downloadAsXLSX",
|
|
2966
3491
|
/**
|
|
2967
|
-
*
|
|
3492
|
+
* Trigger the **Share** action on an embedded
|
|
2968
3493
|
* Liveboard or Answer.
|
|
2969
3494
|
*
|
|
2970
3495
|
* @example
|
|
@@ -2978,7 +3503,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2978
3503
|
*/
|
|
2979
3504
|
Share = "share",
|
|
2980
3505
|
/**
|
|
2981
|
-
*
|
|
3506
|
+
* Trigger the **Save** action on a Liveboard or Answer.
|
|
2982
3507
|
* Saves the changes.
|
|
2983
3508
|
*
|
|
2984
3509
|
* @example
|
|
@@ -2992,7 +3517,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2992
3517
|
*/
|
|
2993
3518
|
Save = "save",
|
|
2994
3519
|
/**
|
|
2995
|
-
*
|
|
3520
|
+
* Trigger the **Sync to Sheets** action on an embedded visualization or Answer
|
|
2996
3521
|
* Sends data from an Answer or Liveboard visualization to a Google sheet.
|
|
2997
3522
|
*
|
|
2998
3523
|
* @param - an object with `vizId` as a key
|
|
@@ -3008,7 +3533,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3008
3533
|
*/
|
|
3009
3534
|
SyncToSheets = "sync-to-sheets",
|
|
3010
3535
|
/**
|
|
3011
|
-
*
|
|
3536
|
+
* Trigger the **Sync to Other Apps** action on an embedded visualization or Answer
|
|
3012
3537
|
* Sends data from an Answer or Liveboard visualization to third-party apps such
|
|
3013
3538
|
* as Slack, Salesforce, Microsoft Teams, ServiceNow and so on.
|
|
3014
3539
|
*
|
|
@@ -3025,7 +3550,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3025
3550
|
*/
|
|
3026
3551
|
SyncToOtherApps = "sync-to-other-apps",
|
|
3027
3552
|
/**
|
|
3028
|
-
*
|
|
3553
|
+
* Trigger the **Manage pipelines** action on an embedded
|
|
3029
3554
|
* visualization or Answer.
|
|
3030
3555
|
* Allows users to manage ThoughtSpot Sync pipelines.
|
|
3031
3556
|
*
|
|
@@ -3042,18 +3567,21 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3042
3567
|
*/
|
|
3043
3568
|
ManagePipelines = "manage-pipeline",
|
|
3044
3569
|
/**
|
|
3045
|
-
*
|
|
3570
|
+
* Reset search operation on the Search or Answer page.
|
|
3046
3571
|
*
|
|
3047
3572
|
* @example
|
|
3048
3573
|
* ```js
|
|
3049
3574
|
* searchEmbed.trigger(HostEvent.ResetSearch)
|
|
3050
3575
|
* ```
|
|
3576
|
+
* ```js
|
|
3577
|
+
* appEmbed.trigger(HostEvent.ResetSearch)
|
|
3578
|
+
* ```
|
|
3051
3579
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.0.1.sw
|
|
3052
3580
|
*/
|
|
3053
3581
|
ResetSearch = "resetSearch",
|
|
3054
3582
|
/**
|
|
3055
3583
|
* @hidden
|
|
3056
|
-
*
|
|
3584
|
+
* Get the currents visible and runtime filters applied on a Liveboard
|
|
3057
3585
|
* @example
|
|
3058
3586
|
* liveboardEmbed.trigger(HostEvent.GetFilters)
|
|
3059
3587
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
@@ -3061,7 +3589,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3061
3589
|
GetFilters = "getFilters",
|
|
3062
3590
|
/**
|
|
3063
3591
|
* @hidden
|
|
3064
|
-
*
|
|
3592
|
+
* Update the visible filters on the Liveboard.
|
|
3065
3593
|
* @param - filter: filter object containing column name and filter operation and values
|
|
3066
3594
|
* @example
|
|
3067
3595
|
*
|
|
@@ -3074,7 +3602,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3074
3602
|
*/
|
|
3075
3603
|
UpdateFilters = "updateFilters",
|
|
3076
3604
|
/**
|
|
3077
|
-
* Get
|
|
3605
|
+
* Get tab details for the current Liveboard.
|
|
3078
3606
|
*
|
|
3079
3607
|
* @example
|
|
3080
3608
|
* ```js
|
|
@@ -3088,9 +3616,9 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3088
3616
|
*/
|
|
3089
3617
|
GetTabs = "getTabs",
|
|
3090
3618
|
/**
|
|
3091
|
-
* Set the visible
|
|
3619
|
+
* Set the visible tabs on a Liveboard.
|
|
3092
3620
|
*
|
|
3093
|
-
* @param - an array of ids of
|
|
3621
|
+
* @param - an array of ids of tabs to show, the IDs not passed
|
|
3094
3622
|
* will be hidden.
|
|
3095
3623
|
* @example
|
|
3096
3624
|
* ```js
|
|
@@ -3104,8 +3632,8 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3104
3632
|
/**
|
|
3105
3633
|
* Set the hidden tabs on a Liveboard.
|
|
3106
3634
|
*
|
|
3107
|
-
* @param - an array of
|
|
3108
|
-
*
|
|
3635
|
+
* @param - an array of the IDs of the tabs to hide.
|
|
3636
|
+
* The IDs not passed will be shown.
|
|
3109
3637
|
* @example
|
|
3110
3638
|
* ```js
|
|
3111
3639
|
* liveboardEmbed.trigger(HostEvent.SetHiddenTabs, [
|
|
@@ -3116,9 +3644,10 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3116
3644
|
*/
|
|
3117
3645
|
SetHiddenTabs = "SetPinboardHiddenTabs",
|
|
3118
3646
|
/**
|
|
3119
|
-
* Updates the search query for
|
|
3647
|
+
* Updates the search query string for Natural Language Search operations.
|
|
3120
3648
|
*
|
|
3121
|
-
* @param -
|
|
3649
|
+
* @param - `queryString`: Text string in Natural Language format
|
|
3650
|
+
* @param - `executeSearch`: Boolean to execute search and update search query
|
|
3122
3651
|
* @example
|
|
3123
3652
|
* ```js
|
|
3124
3653
|
* sageEmbed.trigger(HostEvent.UpdateSageQuery, {
|
|
@@ -3126,7 +3655,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3126
3655
|
* executeSearch: true,
|
|
3127
3656
|
* })
|
|
3128
3657
|
* ```
|
|
3129
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.
|
|
3658
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
|
|
3130
3659
|
*/
|
|
3131
3660
|
UpdateSageQuery = "updateSageQuery",
|
|
3132
3661
|
/**
|
|
@@ -3139,24 +3668,36 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3139
3668
|
* vizId: '123', // For Liveboard Visualization.
|
|
3140
3669
|
* })
|
|
3141
3670
|
* ```
|
|
3671
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.10.0.cl
|
|
3672
|
+
*/
|
|
3673
|
+
GetAnswerSession = "getAnswerSession",
|
|
3674
|
+
/**
|
|
3675
|
+
* Trigger Ask Sage for viz
|
|
3676
|
+
*
|
|
3677
|
+
* @example
|
|
3678
|
+
* ```js
|
|
3679
|
+
* liveboardEmbed.trigger(HostEvent.AskSage,
|
|
3680
|
+
* {vizId:'730496d6-6903-4601-937e-2c691821af3c'})
|
|
3681
|
+
* ```
|
|
3682
|
+
* @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
|
|
3142
3683
|
*/
|
|
3143
|
-
|
|
3684
|
+
AskSage = "AskSage"
|
|
3144
3685
|
}
|
|
3145
3686
|
/**
|
|
3146
3687
|
* The different visual modes that the data sources panel within
|
|
3147
|
-
* search could appear in,
|
|
3688
|
+
* search could appear in, such as hidden, collapsed, or expanded.
|
|
3148
3689
|
*/
|
|
3149
3690
|
export enum DataSourceVisualMode {
|
|
3150
3691
|
/**
|
|
3151
|
-
*
|
|
3692
|
+
* The data source panel is hidden.
|
|
3152
3693
|
*/
|
|
3153
3694
|
Hidden = "hide",
|
|
3154
3695
|
/**
|
|
3155
|
-
*
|
|
3696
|
+
* The data source panel is collapsed, but the user can manually expand it.
|
|
3156
3697
|
*/
|
|
3157
3698
|
Collapsed = "collapse",
|
|
3158
3699
|
/**
|
|
3159
|
-
*
|
|
3700
|
+
* The data source panel is expanded, but the user can manually collapse it.
|
|
3160
3701
|
*/
|
|
3161
3702
|
Expanded = "expand"
|
|
3162
3703
|
}
|
|
@@ -3232,7 +3773,11 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3232
3773
|
LiveboardHeaderSticky = "isLiveboardHeaderSticky",
|
|
3233
3774
|
IsProductTour = "isProductTour",
|
|
3234
3775
|
HideSearchBarTitle = "hideSearchBarTitle",
|
|
3235
|
-
HideSageAnswerHeader = "hideSageAnswerHeader"
|
|
3776
|
+
HideSageAnswerHeader = "hideSageAnswerHeader",
|
|
3777
|
+
HideSearchBar = "hideSearchBar",
|
|
3778
|
+
ClientLogLevel = "clientLogLevel",
|
|
3779
|
+
OverrideNativeConsole = "overrideConsoleLogs",
|
|
3780
|
+
enableAskSage = "enableAskSage"
|
|
3236
3781
|
}
|
|
3237
3782
|
/**
|
|
3238
3783
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -3292,9 +3837,11 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3292
3837
|
SaveAsView = "saveAsView",
|
|
3293
3838
|
/**
|
|
3294
3839
|
* The **Make a copy** action on a Liveboard or Answer
|
|
3295
|
-
* page.
|
|
3296
|
-
*
|
|
3297
|
-
*
|
|
3840
|
+
* page. Creates a copy of the Liveboard.
|
|
3841
|
+
* In LiveboardEmbed, the **Make a copy** action is not available for
|
|
3842
|
+
* visualizations in the embedded Liveboard view.
|
|
3843
|
+
* In AppEmbed, the **Make a copy** action is available on both
|
|
3844
|
+
* Liveboards and visualizations.
|
|
3298
3845
|
*
|
|
3299
3846
|
* @example
|
|
3300
3847
|
* ```js
|
|
@@ -3478,7 +4025,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3478
4025
|
*/
|
|
3479
4026
|
DownloadAsPdf = "downloadAsPdf",
|
|
3480
4027
|
/**
|
|
3481
|
-
* The **Download**
|
|
4028
|
+
* The **Download** > **CSV** menu action for tables on a Liveboard
|
|
3482
4029
|
* or Answer page.
|
|
3483
4030
|
* Downloads a visualization or Answer in the XLSX format.
|
|
3484
4031
|
*
|
|
@@ -4009,6 +4556,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
4009
4556
|
*/
|
|
4010
4557
|
RenameModalTitleDescription = "renameModalTitleDescription",
|
|
4011
4558
|
/**
|
|
4559
|
+
*
|
|
4012
4560
|
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
|
|
4013
4561
|
*/
|
|
4014
4562
|
RequestVerification = "requestVerification",
|
|
@@ -4088,7 +4636,17 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
4088
4636
|
* ```
|
|
4089
4637
|
* @version SDK: 1.29.0 | Thoughtspot: 9.10.0.cl
|
|
4090
4638
|
*/
|
|
4091
|
-
VerifiedLiveboard = "verifiedLiveboard"
|
|
4639
|
+
VerifiedLiveboard = "verifiedLiveboard",
|
|
4640
|
+
/**
|
|
4641
|
+
* Action ID for ask sage button
|
|
4642
|
+
*
|
|
4643
|
+
* @example
|
|
4644
|
+
* ```js
|
|
4645
|
+
* hiddenAction: [Action.AskAi]
|
|
4646
|
+
* ```
|
|
4647
|
+
* @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
|
|
4648
|
+
*/
|
|
4649
|
+
AskAi = "AskAi"
|
|
4092
4650
|
}
|
|
4093
4651
|
export interface AnswerServiceType {
|
|
4094
4652
|
getAnswer?: (offset: number, batchSize: number) => any;
|
|
@@ -4144,6 +4702,14 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
4144
4702
|
session: SessionInterface;
|
|
4145
4703
|
vizId?: string;
|
|
4146
4704
|
}
|
|
4705
|
+
export enum LogLevel {
|
|
4706
|
+
SILENT = "SILENT",
|
|
4707
|
+
ERROR = "ERROR",
|
|
4708
|
+
WARN = "WARN",
|
|
4709
|
+
INFO = "INFO",
|
|
4710
|
+
DEBUG = "DEBUG",
|
|
4711
|
+
TRACE = "TRACE"
|
|
4712
|
+
}
|
|
4147
4713
|
}
|
|
4148
4714
|
|
|
4149
4715
|
declare module '@thoughtspot/visual-embed-sdk/css-variables' {
|
|
@@ -4505,14 +5071,14 @@ declare module '@thoughtspot/visual-embed-sdk/embed/sage' {
|
|
|
4505
5071
|
*/
|
|
4506
5072
|
export interface SearchOptions {
|
|
4507
5073
|
/**
|
|
4508
|
-
* The query string to
|
|
5074
|
+
* The query string to pass for Natural Language Search.
|
|
4509
5075
|
*/
|
|
4510
5076
|
searchQuery: string;
|
|
4511
5077
|
/**
|
|
4512
|
-
* Boolean to
|
|
4513
|
-
*
|
|
4514
|
-
*
|
|
4515
|
-
* the
|
|
5078
|
+
* Boolean to define if the search should be executed or not.
|
|
5079
|
+
* If it is executed, the focus is placed on the results.
|
|
5080
|
+
* If it’s not executed, the focus is placed at the end of
|
|
5081
|
+
* the token string in the search bar.
|
|
4516
5082
|
*/
|
|
4517
5083
|
executeSearch?: boolean;
|
|
4518
5084
|
}
|
|
@@ -4520,16 +5086,16 @@ declare module '@thoughtspot/visual-embed-sdk/embed/sage' {
|
|
|
4520
5086
|
* The configuration attributes for the embedded Natural language search view. Based on
|
|
4521
5087
|
* GPT and LLM.
|
|
4522
5088
|
*
|
|
4523
|
-
* @version: SDK: 1.23.0 | ThoughtSpot: 9.
|
|
5089
|
+
* @version: SDK: 1.23.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
|
|
4524
5090
|
* @group Embed components
|
|
4525
5091
|
*/
|
|
4526
5092
|
export interface SageViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems' | 'hiddenTabs' | 'visibleTabs' | 'reorderedHomepageModules'> {
|
|
4527
5093
|
/**
|
|
4528
|
-
* If set to true, a list of
|
|
5094
|
+
* If set to true, a list of Liveboard and Answers related
|
|
4529
5095
|
* to the natural language search will be shown below the
|
|
4530
5096
|
* AI generated answer.
|
|
4531
5097
|
*
|
|
4532
|
-
* @deprecated Currently
|
|
5098
|
+
* @deprecated Currently Liveboard and Answers related
|
|
4533
5099
|
* to the natural language search will not be shown for sage
|
|
4534
5100
|
* embed
|
|
4535
5101
|
*/
|
|
@@ -4546,63 +5112,81 @@ declare module '@thoughtspot/visual-embed-sdk/embed/sage' {
|
|
|
4546
5112
|
*/
|
|
4547
5113
|
isProductTour?: boolean;
|
|
4548
5114
|
/**
|
|
4549
|
-
*
|
|
5115
|
+
* Show or hide the search bar title.
|
|
4550
5116
|
*
|
|
4551
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl
|
|
5117
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
|
|
4552
5118
|
*/
|
|
4553
5119
|
hideSearchBarTitle?: boolean;
|
|
4554
5120
|
/**
|
|
4555
|
-
*
|
|
4556
|
-
*
|
|
5121
|
+
* Show or hide the Answer header, that is, the `AI Answer` title
|
|
5122
|
+
* at the top of the Answer page.
|
|
4557
5123
|
*
|
|
4558
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.
|
|
5124
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.10.0.cl
|
|
4559
5125
|
*/
|
|
4560
5126
|
hideSageAnswerHeader?: boolean;
|
|
4561
5127
|
/**
|
|
4562
|
-
*
|
|
5128
|
+
* Disable the worksheet selection option.
|
|
4563
5129
|
*
|
|
4564
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.9.0.
|
|
5130
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
|
|
4565
5131
|
*/
|
|
4566
5132
|
disableWorksheetChange?: boolean;
|
|
4567
5133
|
/**
|
|
4568
|
-
*
|
|
5134
|
+
* Hide the worksheet selection panel.
|
|
5135
|
+
*
|
|
5136
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
|
|
4569
5137
|
*/
|
|
4570
5138
|
hideWorksheetSelector?: boolean;
|
|
4571
5139
|
/**
|
|
4572
|
-
*
|
|
4573
|
-
* default false
|
|
5140
|
+
* Show or hide autocomplete suggestions for the search query string.
|
|
4574
5141
|
*
|
|
4575
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.9.0.
|
|
5142
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
|
|
4576
5143
|
*/
|
|
4577
5144
|
hideAutocompleteSuggestions?: boolean;
|
|
4578
5145
|
/**
|
|
4579
|
-
*
|
|
5146
|
+
* Show or hide autocomplete suggestions for the search query string.
|
|
4580
5147
|
*
|
|
4581
|
-
* @deprecated
|
|
4582
|
-
*
|
|
5148
|
+
* @deprecated
|
|
5149
|
+
* Currently, the object suggestions will not be shown for Natural Language Search.
|
|
5150
|
+
* You can use {@link hideAutocompleteSuggestions} instead.
|
|
4583
5151
|
*/
|
|
4584
5152
|
showObjectSuggestions?: boolean;
|
|
4585
5153
|
/**
|
|
4586
|
-
*
|
|
4587
|
-
*
|
|
5154
|
+
* Show or hide sample questions.
|
|
5155
|
+
* The sample questions are autogenerated based on the worksheet
|
|
5156
|
+
* selected for the search operation.
|
|
4588
5157
|
*
|
|
4589
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.
|
|
5158
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
|
|
4590
5159
|
*/
|
|
4591
5160
|
hideSampleQuestions?: boolean;
|
|
4592
5161
|
/**
|
|
4593
|
-
* The data source GUID to set on load.
|
|
5162
|
+
* The data source GUID (Worksheet GUID) to set on load.
|
|
4594
5163
|
*/
|
|
4595
5164
|
dataSource?: string;
|
|
4596
5165
|
/**
|
|
4597
|
-
*
|
|
5166
|
+
* Includes the following properties:
|
|
4598
5167
|
*
|
|
4599
|
-
*
|
|
5168
|
+
* `searchQuery`: The search query string to pass in the search bar.
|
|
5169
|
+
* Supports Natural Language Search queries.
|
|
5170
|
+
*
|
|
5171
|
+
* `executeSearch`: Boolean to define if the search should be executed or not.
|
|
5172
|
+
* If it is executed, the focus is placed on the results.
|
|
5173
|
+
* If it’s not executed, the focus is placed at the end of
|
|
5174
|
+
* the token string in the search bar.
|
|
5175
|
+
*
|
|
5176
|
+
* @example
|
|
5177
|
+
* ```js
|
|
5178
|
+
* searchOptions: {
|
|
5179
|
+
* searchQuery: 'average sales by country and product type',
|
|
5180
|
+
* executeSearch: true,
|
|
5181
|
+
* }
|
|
5182
|
+
* ```
|
|
5183
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
|
|
4600
5184
|
*/
|
|
4601
5185
|
searchOptions?: SearchOptions;
|
|
4602
5186
|
}
|
|
4603
5187
|
export const HiddenActionItemByDefaultForSageEmbed: Action[];
|
|
4604
5188
|
/**
|
|
4605
|
-
* Embed ThoughtSpot LLM and GPT
|
|
5189
|
+
* Embed ThoughtSpot LLM and GPT-based Natural Language Search component.
|
|
4606
5190
|
*
|
|
4607
5191
|
* @version: SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.1-sw
|
|
4608
5192
|
* @group Embed components
|
|
@@ -4621,6 +5205,13 @@ declare module '@thoughtspot/visual-embed-sdk/embed/sage' {
|
|
|
4621
5205
|
* @returns {string} query string
|
|
4622
5206
|
*/
|
|
4623
5207
|
protected getEmbedParams(): string;
|
|
5208
|
+
/**
|
|
5209
|
+
* Construct the URL of the embedded ThoughtSpot sage to be
|
|
5210
|
+
* loaded in the iframe
|
|
5211
|
+
*
|
|
5212
|
+
* @returns {string} iframe url
|
|
5213
|
+
*/
|
|
5214
|
+
getIFrameSrc(): string;
|
|
4624
5215
|
/**
|
|
4625
5216
|
* Render the embedded ThoughtSpot Sage
|
|
4626
5217
|
*
|
|
@@ -4663,8 +5254,7 @@ declare module '@thoughtspot/visual-embed-sdk/utils/graphql/answerService/answer
|
|
|
4663
5254
|
* const data = await underlying.fetchData(0, 100);
|
|
4664
5255
|
* })
|
|
4665
5256
|
* ```
|
|
4666
|
-
* @version
|
|
4667
|
-
* ThoughtSpot: 9.9.0.cl / SDK: 1.25.0
|
|
5257
|
+
* @version SDK: 1.25.0| ThoughtSpot: 9.10.0.cl
|
|
4668
5258
|
* @group Events
|
|
4669
5259
|
*/
|
|
4670
5260
|
export class AnswerService {
|
|
@@ -4698,8 +5288,7 @@ declare module '@thoughtspot/visual-embed-sdk/utils/graphql/answerService/answer
|
|
|
4698
5288
|
* const data = await underlying.fetchData(0, 100);
|
|
4699
5289
|
* })
|
|
4700
5290
|
* ```
|
|
4701
|
-
* @version
|
|
4702
|
-
* ThoughtSpot: 9.9.0.cl / SDK: 1.25.0
|
|
5291
|
+
* @version SDK: 1.25.0| ThoughtSpot: 9.10.0.cl
|
|
4703
5292
|
*/
|
|
4704
5293
|
getUnderlyingDataForPoint(outputColumnNames: string[], selectedPoints?: UnderlyingDataPoint[]): Promise<AnswerService>;
|
|
4705
5294
|
executeQuery(query: string, variables: any): Promise<any>;
|
|
@@ -4720,12 +5309,13 @@ declare module '@thoughtspot/visual-embed-sdk/embed/embedConfig' {
|
|
|
4720
5309
|
export const getEmbedConfig: () => EmbedConfig;
|
|
4721
5310
|
/**
|
|
4722
5311
|
* Sets the configuration embed was initialized with.
|
|
5312
|
+
* And returns the new configuration.
|
|
4723
5313
|
*
|
|
4724
5314
|
* @param newConfig The configuration to set.
|
|
4725
5315
|
* @version SDK: 1.27.0 | ThoughtSpot: *
|
|
4726
5316
|
* @group Global methods
|
|
4727
5317
|
*/
|
|
4728
|
-
export const setEmbedConfig: (newConfig: EmbedConfig) =>
|
|
5318
|
+
export const setEmbedConfig: (newConfig: EmbedConfig) => EmbedConfig;
|
|
4729
5319
|
}
|
|
4730
5320
|
|
|
4731
5321
|
declare module '@thoughtspot/visual-embed-sdk/embed/ts-embed' {
|
|
@@ -4737,8 +5327,8 @@ declare module '@thoughtspot/visual-embed-sdk/embed/ts-embed' {
|
|
|
4737
5327
|
* @summary Base classes
|
|
4738
5328
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
4739
5329
|
*/
|
|
5330
|
+
import { DOMSelector, EmbedConfig, EmbedEvent, HostEvent, MessageCallback, MessageOptions, ViewConfig } from '@thoughtspot/visual-embed-sdk/types';
|
|
4740
5331
|
import { AnswerService } from '@thoughtspot/visual-embed-sdk/utils/graphql/answerService/answerService';
|
|
4741
|
-
import { DOMSelector, HostEvent, EmbedEvent, MessageCallback, EmbedConfig, MessageOptions, ViewConfig } from '@thoughtspot/visual-embed-sdk/types';
|
|
4742
5332
|
/**
|
|
4743
5333
|
* Global prefix for all Thoughtspot postHash Params.
|
|
4744
5334
|
*/
|
|
@@ -4924,6 +5514,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/ts-embed' {
|
|
|
4924
5514
|
* @param args
|
|
4925
5515
|
*/
|
|
4926
5516
|
render(): TsEmbed;
|
|
5517
|
+
getIframeSrc(): string;
|
|
4927
5518
|
protected handleRenderForPrerender(): void;
|
|
4928
5519
|
/**
|
|
4929
5520
|
* Creates the preRender shell
|