@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
|
@@ -13,7 +13,7 @@ import EventEmitter from 'eventemitter3';
|
|
|
13
13
|
* @summary ThoughtSpot Visual Embed SDK
|
|
14
14
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
15
15
|
*/
|
|
16
|
-
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, };
|
|
16
|
+
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, };
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Copyright (c) 2022
|
|
@@ -65,43 +65,43 @@ export enum Page {
|
|
|
65
65
|
*/
|
|
66
66
|
export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
67
67
|
/**
|
|
68
|
-
* If true, the
|
|
68
|
+
* If true, the top navigation bar within the ThoughtSpot app
|
|
69
69
|
* is displayed. By default, the navigation bar is hidden.
|
|
70
|
-
* This flag also
|
|
70
|
+
* This flag also controls the homepage left navigation bar.
|
|
71
71
|
*/
|
|
72
72
|
showPrimaryNavbar?: boolean;
|
|
73
73
|
/**
|
|
74
|
-
*
|
|
75
|
-
* If showPrimaryNavbar is true,
|
|
76
|
-
* nav-
|
|
77
|
-
*
|
|
74
|
+
* Control the visibility of the left navigation bar on the Homepage.
|
|
75
|
+
* If showPrimaryNavbar is true, that is, if the Global and Homepage
|
|
76
|
+
* nav-bars are visible, this flag will only hide the homepage left nav-bar.
|
|
77
|
+
* The showPrimaryNavbar flag takes precedence over the hideHomepageLeftNav.
|
|
78
78
|
*
|
|
79
79
|
* @default false
|
|
80
80
|
* @version SDK: 1.27.0 | Thoughtspot: 9.8.0.cl
|
|
81
81
|
*/
|
|
82
82
|
hideHomepageLeftNav?: boolean;
|
|
83
83
|
/**
|
|
84
|
-
*
|
|
85
|
-
*
|
|
84
|
+
* Control the visibility of the help (?) and profile buttons on the
|
|
85
|
+
* Global nav-bar. By default, these buttons are visible on the nav-bar.
|
|
86
86
|
*/
|
|
87
87
|
disableProfileAndHelp?: boolean;
|
|
88
88
|
/**
|
|
89
|
-
*
|
|
90
|
-
*
|
|
89
|
+
* Control the visibility of the application switcher button on the nav-bar.
|
|
90
|
+
* By default, the application switcher is shown.
|
|
91
91
|
*/
|
|
92
92
|
hideApplicationSwitcher?: boolean;
|
|
93
93
|
/**
|
|
94
|
-
*
|
|
95
|
-
*
|
|
94
|
+
* Control the visibility of the Org switcher button on the nav-bar.
|
|
95
|
+
* By default, the Org switcher button is shown.
|
|
96
96
|
*/
|
|
97
97
|
hideOrgSwitcher?: boolean;
|
|
98
98
|
/**
|
|
99
|
-
* A URL path
|
|
99
|
+
* A URL path to the embedded application page
|
|
100
100
|
* If both path and pageId attributes are defined, the path definition
|
|
101
101
|
* takes precedence. This is the path post the `#/` in the URL of the standalone
|
|
102
102
|
* ThoughtSpot app. Use this to open the embedded view to a specific path.
|
|
103
103
|
*
|
|
104
|
-
* For eg, if you want the component to open to a specific
|
|
104
|
+
* For eg, if you want the component to open to a specific Liveboard
|
|
105
105
|
* you could set the path to `pinboard/<liveboardId>/tab/<tabId>`.
|
|
106
106
|
*
|
|
107
107
|
* @example
|
|
@@ -212,6 +212,12 @@ export class AppEmbed extends V1Embed {
|
|
|
212
212
|
* embedded Liveboard or visualization.
|
|
213
213
|
*/
|
|
214
214
|
protected getEmbedParams(): string;
|
|
215
|
+
/**
|
|
216
|
+
* Constructs the URL of the ThoughtSpot app page to be rendered.
|
|
217
|
+
*
|
|
218
|
+
* @param pageId The ID of the page to be embedded.
|
|
219
|
+
*/
|
|
220
|
+
getIFrameSrc(): string;
|
|
215
221
|
/**
|
|
216
222
|
* Set the iframe height as per the computed height received
|
|
217
223
|
* from the ThoughtSpot app.
|
|
@@ -403,8 +409,8 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
403
409
|
*/
|
|
404
410
|
fullHeight?: boolean;
|
|
405
411
|
/**
|
|
406
|
-
* This is the minimum height(in pixels) for a full
|
|
407
|
-
* Setting this height helps
|
|
412
|
+
* This is the minimum height(in pixels) for a full-height Liveboard.
|
|
413
|
+
* Setting this height helps resolve issues with empty Liveboards and
|
|
408
414
|
* other screens navigable from a Liveboard.
|
|
409
415
|
*
|
|
410
416
|
* @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
|
|
@@ -417,7 +423,7 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
417
423
|
enableVizTransformations?: boolean;
|
|
418
424
|
/**
|
|
419
425
|
* The Liveboard to display in the embedded view.
|
|
420
|
-
* Use either
|
|
426
|
+
* Use either liveboardId or pinboardId to reference the Liveboard to embed.
|
|
421
427
|
*
|
|
422
428
|
* @version SDK: 1.3.0 | ThoughtSpot ts7.aug.cl, 7.2.1
|
|
423
429
|
*/
|
|
@@ -436,79 +442,91 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
436
442
|
* If set to true, all filter chips from a
|
|
437
443
|
* Liveboard page will be read-only (no X buttons)
|
|
438
444
|
*
|
|
439
|
-
* @version SDK: 1.3.0 | ThoughtSpot ts7.aug.cl, 7.2.1
|
|
445
|
+
* @version SDK: 1.3.0 | ThoughtSpot ts7.aug.cl, 7.2.1.sw
|
|
440
446
|
*/
|
|
441
447
|
preventLiveboardFilterRemoval?: boolean;
|
|
442
448
|
/**
|
|
443
|
-
* Array of
|
|
444
|
-
*
|
|
449
|
+
* Array of visualization IDs which should be visible when the Liveboard
|
|
450
|
+
* renders. This can be changed by triggering the `SetVisibleVizs`
|
|
445
451
|
* event.
|
|
446
452
|
*
|
|
447
453
|
* @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
|
|
448
454
|
*/
|
|
449
455
|
visibleVizs?: string[];
|
|
450
456
|
/**
|
|
451
|
-
* To support backward
|
|
457
|
+
* To support backward compatibility
|
|
452
458
|
*
|
|
453
459
|
* @hidden
|
|
454
460
|
*/
|
|
455
461
|
preventPinboardFilterRemoval?: boolean;
|
|
456
462
|
/**
|
|
457
|
-
* Render embedded Liveboards and visualizations in the
|
|
463
|
+
* Render embedded Liveboards and visualizations in the
|
|
464
|
+
* new Liveboard experience mode.
|
|
458
465
|
*
|
|
459
466
|
* @version SDK: 1.14.0 | ThoughtSpot: 8.6.0.cl, 8.8.1-sw
|
|
460
467
|
*/
|
|
461
468
|
liveboardV2?: boolean;
|
|
462
469
|
/**
|
|
463
|
-
*
|
|
470
|
+
* Set a Liveboard tab as an active tab.
|
|
471
|
+
* Specify the tab ID.
|
|
464
472
|
*
|
|
465
473
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
|
|
466
474
|
*/
|
|
467
475
|
activeTabId?: string;
|
|
468
476
|
/**
|
|
469
|
-
*
|
|
477
|
+
* Show or hide the tab panel of the embedded Liveboard.
|
|
470
478
|
*
|
|
471
|
-
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
|
|
479
|
+
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl, 9.8.0.sw
|
|
472
480
|
*/
|
|
473
481
|
hideTabPanel?: boolean;
|
|
474
482
|
/**
|
|
475
|
-
* Show or hide Liveboard header
|
|
483
|
+
* Show or hide the Liveboard header.
|
|
476
484
|
*
|
|
477
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
485
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
478
486
|
* @default false
|
|
479
487
|
*/
|
|
480
488
|
hideLiveboardHeader?: boolean;
|
|
481
489
|
/**
|
|
482
|
-
* Show or hide Liveboard title
|
|
490
|
+
* Show or hide the Liveboard title.
|
|
483
491
|
*
|
|
484
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
492
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
485
493
|
* @default false
|
|
486
494
|
*/
|
|
487
495
|
showLiveboardTitle?: boolean;
|
|
488
496
|
/**
|
|
489
|
-
* Show or hide Liveboard description
|
|
497
|
+
* Show or hide the Liveboard description.
|
|
490
498
|
*
|
|
491
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
499
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
492
500
|
* @default false
|
|
493
501
|
*/
|
|
494
502
|
showLiveboardDescription?: boolean;
|
|
495
503
|
/**
|
|
496
|
-
*
|
|
504
|
+
* Control the position and visibility of
|
|
505
|
+
* the Liveboard header as the users scroll down the
|
|
506
|
+
* embedded Liveboard page.
|
|
497
507
|
*
|
|
498
508
|
* @example
|
|
499
509
|
* ```js
|
|
500
510
|
* const embed = new LiveboardEmbed('#embed', {
|
|
501
|
-
* ... // other
|
|
511
|
+
* ... // other Liveboard view config
|
|
502
512
|
* isLiveboardHeaderSticky: true,
|
|
503
513
|
* });
|
|
504
514
|
* ```
|
|
505
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
515
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
506
516
|
*/
|
|
507
517
|
isLiveboardHeaderSticky?: boolean;
|
|
518
|
+
/**
|
|
519
|
+
* enable or disable ask sage
|
|
520
|
+
*
|
|
521
|
+
* @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
|
|
522
|
+
* @default true
|
|
523
|
+
*/
|
|
524
|
+
enableAskSage?: boolean;
|
|
508
525
|
}
|
|
509
526
|
/**
|
|
510
|
-
* Embed a ThoughtSpot Liveboard or
|
|
511
|
-
* waits for the authentication to complete, so
|
|
527
|
+
* Embed a ThoughtSpot Liveboard or visualization. When rendered it already
|
|
528
|
+
* waits for the authentication to complete, so you need not wait for
|
|
529
|
+
* `AuthStatus.SUCCESS`.
|
|
512
530
|
*
|
|
513
531
|
* @example
|
|
514
532
|
* ```js
|
|
@@ -562,18 +580,19 @@ export class PinboardEmbed extends LiveboardEmbed {
|
|
|
562
580
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
563
581
|
*/
|
|
564
582
|
/**
|
|
565
|
-
* Configuration for search options
|
|
583
|
+
* Configuration for search options.
|
|
584
|
+
*
|
|
566
585
|
*/
|
|
567
586
|
export interface SearchOptions {
|
|
568
587
|
/**
|
|
569
|
-
*
|
|
588
|
+
* Search tokens to pass in the query.
|
|
570
589
|
*/
|
|
571
590
|
searchTokenString: string;
|
|
572
591
|
/**
|
|
573
|
-
* Boolean to
|
|
574
|
-
*
|
|
575
|
-
*
|
|
576
|
-
* the
|
|
592
|
+
* Boolean to define if the search should be executed or not.
|
|
593
|
+
* If it is executed, the focus is placed on the results.
|
|
594
|
+
* If it’s not executed, the focus is placed at the end of
|
|
595
|
+
* the token string in the search bar.
|
|
577
596
|
*/
|
|
578
597
|
executeSearch?: boolean;
|
|
579
598
|
}
|
|
@@ -589,11 +608,11 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
|
|
|
589
608
|
*/
|
|
590
609
|
collapseDataSources?: boolean;
|
|
591
610
|
/**
|
|
592
|
-
*
|
|
611
|
+
* Show or hide the data sources panel.
|
|
593
612
|
*/
|
|
594
613
|
hideDataSources?: boolean;
|
|
595
614
|
/**
|
|
596
|
-
*
|
|
615
|
+
* Show or hide the charts and tables in search answers.
|
|
597
616
|
* This attribute can be used to create a custom visualization
|
|
598
617
|
* using raw answer data.
|
|
599
618
|
*/
|
|
@@ -615,9 +634,9 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
|
|
|
615
634
|
forceTable?: boolean;
|
|
616
635
|
/**
|
|
617
636
|
* The array of data source GUIDs to set on load.
|
|
618
|
-
* Only a single
|
|
637
|
+
* Only a single data source is supported currently.
|
|
619
638
|
*
|
|
620
|
-
* @deprecated Use dataSource instead
|
|
639
|
+
* @deprecated Use `dataSource` instead.
|
|
621
640
|
*/
|
|
622
641
|
dataSources?: string[];
|
|
623
642
|
/**
|
|
@@ -629,11 +648,29 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
|
|
|
629
648
|
/**
|
|
630
649
|
* The initial search query to load the answer with.
|
|
631
650
|
*
|
|
632
|
-
* @deprecated
|
|
651
|
+
* @deprecated
|
|
652
|
+
*
|
|
653
|
+
* Use {@link searchOptions} instead.
|
|
633
654
|
*/
|
|
634
655
|
searchQuery?: string;
|
|
635
656
|
/**
|
|
636
|
-
* Configuration for search options
|
|
657
|
+
* Configuration for search options.
|
|
658
|
+
* Includes the following properties:
|
|
659
|
+
*
|
|
660
|
+
* `searchTokenString`: Search tokens to pass in the query.
|
|
661
|
+
*
|
|
662
|
+
* `executeSearch`: Boolean to define if the search should be executed or not.
|
|
663
|
+
* If it is executed, the focus is placed on the results.
|
|
664
|
+
* If it’s not executed, the focus is placed at the end of
|
|
665
|
+
* the token string in the search bar.
|
|
666
|
+
*
|
|
667
|
+
* @example
|
|
668
|
+
* ```js
|
|
669
|
+
* searchOptions: {
|
|
670
|
+
* searchTokenString: '[quantity purchased] [region]',
|
|
671
|
+
* executeSearch: true,
|
|
672
|
+
* }
|
|
673
|
+
* ```
|
|
637
674
|
*/
|
|
638
675
|
searchOptions?: SearchOptions;
|
|
639
676
|
/**
|
|
@@ -641,10 +678,10 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
|
|
|
641
678
|
*/
|
|
642
679
|
answerId?: string;
|
|
643
680
|
/**
|
|
644
|
-
* If set to true, search page will render without the Search Bar
|
|
681
|
+
* If set to true, the search page will render without the Search Bar
|
|
645
682
|
* The chart/table should still be visible.
|
|
646
683
|
*
|
|
647
|
-
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
684
|
+
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
|
|
648
685
|
*/
|
|
649
686
|
hideSearchBar?: boolean;
|
|
650
687
|
/**
|
|
@@ -674,6 +711,14 @@ export class SearchEmbed extends TsEmbed {
|
|
|
674
711
|
protected viewConfig: SearchViewConfig;
|
|
675
712
|
constructor(domSelector: DOMSelector, viewConfig: SearchViewConfig);
|
|
676
713
|
protected getEmbedParams(): string;
|
|
714
|
+
/**
|
|
715
|
+
* Construct the URL of the embedded ThoughtSpot search to be
|
|
716
|
+
* loaded in the iframe
|
|
717
|
+
*
|
|
718
|
+
* @param answerId The GUID of a saved answer
|
|
719
|
+
* @param dataSources A list of data source GUIDs
|
|
720
|
+
*/
|
|
721
|
+
getIFrameSrc(): string;
|
|
677
722
|
/**
|
|
678
723
|
* Render the embedded ThoughtSpot search
|
|
679
724
|
*/
|
|
@@ -686,25 +731,41 @@ export class SearchEmbed extends TsEmbed {
|
|
|
686
731
|
export interface SearchBarViewConfig extends Omit<ViewConfig, 'runtimeFilters' | 'showAlerts' | 'dataPanelV2' | 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems' | 'hiddenTabs' | 'visibleTabs' | 'reorderedHomepageModules'> {
|
|
687
732
|
/**
|
|
688
733
|
* The array of data source GUIDs to set on load.
|
|
689
|
-
* Only a single
|
|
734
|
+
* Only a single data source is supported currently.
|
|
690
735
|
*
|
|
691
|
-
* @deprecated Use dataSource instead
|
|
736
|
+
* @deprecated Use `dataSource` instead
|
|
692
737
|
*/
|
|
693
738
|
dataSources?: string[];
|
|
694
739
|
/**
|
|
695
740
|
* The array of data source GUIDs to set on load.
|
|
696
741
|
*
|
|
697
|
-
* @version: SDK: 1.19.0
|
|
742
|
+
* @version: SDK: 1.19.0, ThoughtSpot 9.0.0.cl, 9.0.1.sw
|
|
698
743
|
*/
|
|
699
744
|
dataSource?: string;
|
|
700
745
|
/**
|
|
701
|
-
*
|
|
746
|
+
* Boolean to define if the last selected data source should be used
|
|
702
747
|
*
|
|
703
|
-
* @version: SDK: 1.24.0
|
|
748
|
+
* @version: SDK: 1.24.0, ThoughtSpot 9.5.0.cl, 9.5.0.sw
|
|
704
749
|
*/
|
|
705
750
|
useLastSelectedSources?: boolean;
|
|
706
751
|
/**
|
|
707
|
-
* Configuration for search options
|
|
752
|
+
* Configuration for search options.
|
|
753
|
+
* Includes the following properties:
|
|
754
|
+
*
|
|
755
|
+
* `searchTokenString`: Search tokens to pass in the query.
|
|
756
|
+
*
|
|
757
|
+
* `executeSearch`: Boolean to define if the search should be executed or not.
|
|
758
|
+
* If it is executed, the focus is placed on the results.
|
|
759
|
+
* If it’s not executed, the focus is placed at the end of
|
|
760
|
+
* the token string in the search bar.
|
|
761
|
+
*
|
|
762
|
+
* @example
|
|
763
|
+
* ```js
|
|
764
|
+
* searchOptions: {
|
|
765
|
+
* searchTokenString: '[quantity purchased] [region]',
|
|
766
|
+
* executeSearch: true,
|
|
767
|
+
* }
|
|
768
|
+
* ```
|
|
708
769
|
*/
|
|
709
770
|
searchOptions?: SearchOptions;
|
|
710
771
|
}
|
|
@@ -772,8 +833,8 @@ export enum AuthStatus {
|
|
|
772
833
|
*/
|
|
773
834
|
LOGOUT = "LOGOUT",
|
|
774
835
|
/**
|
|
775
|
-
* Emitted when inPopup
|
|
776
|
-
*
|
|
836
|
+
* Emitted when inPopup is true in the SAMLRedirect flow and the
|
|
837
|
+
* popup is waiting to be triggered either programmatically
|
|
777
838
|
* or by the trigger button.
|
|
778
839
|
*
|
|
779
840
|
* @version SDK: 1.19.0
|
|
@@ -818,8 +879,8 @@ export interface AuthEventEmitter {
|
|
|
818
879
|
*/
|
|
819
880
|
export enum AuthEvent {
|
|
820
881
|
/**
|
|
821
|
-
* Manually trigger the SSO popup. This is useful
|
|
822
|
-
* authStatus
|
|
882
|
+
* Manually trigger the SSO popup. This is useful when
|
|
883
|
+
* authStatus is SAMLRedirect/OIDCRedirect and inPopup is set to true
|
|
823
884
|
*/
|
|
824
885
|
TRIGGER_SSO_POPUP = "TRIGGER_SSO_POPUP"
|
|
825
886
|
}
|
|
@@ -928,10 +989,14 @@ export enum AuthType {
|
|
|
928
989
|
*/
|
|
929
990
|
None = "None",
|
|
930
991
|
/**
|
|
931
|
-
* Passthrough SSO to the embedded
|
|
992
|
+
* Passthrough SSO to the embedded application within the iframe. Requires least
|
|
932
993
|
* configuration, but may not be supported by all IDPs. This will behave like `None`
|
|
933
994
|
* if SSO is not configured on ThoughtSpot.
|
|
934
995
|
*
|
|
996
|
+
* To use this:
|
|
997
|
+
* Your SAML or OpenID provider must allow iframe redirects.
|
|
998
|
+
* For example, if you are using Okta as IdP, you can enable iframe embedding.
|
|
999
|
+
*
|
|
935
1000
|
* @example
|
|
936
1001
|
* ```js
|
|
937
1002
|
* init({
|
|
@@ -939,12 +1004,7 @@ export enum AuthType {
|
|
|
939
1004
|
* authType: AuthType.EmbeddedSSO,
|
|
940
1005
|
* });
|
|
941
1006
|
* ```
|
|
942
|
-
*
|
|
943
|
-
*
|
|
944
|
-
* To use this:
|
|
945
|
-
* Your SAML or OpenID provider must allow iframe redirects.
|
|
946
|
-
* eg. If you are using okta as IdP, you can enable iFrame embedding.
|
|
947
|
-
* @version: SDK: 1.15.0 | ThouhgtSpot: 8.8.0.cl
|
|
1007
|
+
* @version: SDK: 1.15.0 | ThoughtSpot: 8.8.0.cl
|
|
948
1008
|
*/
|
|
949
1009
|
EmbeddedSSO = "EmbeddedSSO",
|
|
950
1010
|
/**
|
|
@@ -963,10 +1023,10 @@ export enum AuthType {
|
|
|
963
1023
|
SAML = "SSO_SAML",
|
|
964
1024
|
/**
|
|
965
1025
|
* SSO using SAML
|
|
966
|
-
*
|
|
967
|
-
*
|
|
1026
|
+
* Makes the host application redirect to the SAML IdP. Use this
|
|
1027
|
+
* if your IdP does not allow itself to be embedded.
|
|
968
1028
|
*
|
|
969
|
-
* This redirects the host application to the SAML
|
|
1029
|
+
* This redirects the host application to the SAML IdP. The host application
|
|
970
1030
|
* will be redirected back to the ThoughtSpot app after authentication.
|
|
971
1031
|
*
|
|
972
1032
|
* @example
|
|
@@ -977,7 +1037,7 @@ export enum AuthType {
|
|
|
977
1037
|
* });
|
|
978
1038
|
* ```
|
|
979
1039
|
*
|
|
980
|
-
* This opens the SAML
|
|
1040
|
+
* This opens the SAML IdP in a popup window. The popup is triggered
|
|
981
1041
|
* when the user clicks the trigger button. The popup window will be
|
|
982
1042
|
* closed automatically after authentication.
|
|
983
1043
|
* @example
|
|
@@ -991,8 +1051,8 @@ export enum AuthType {
|
|
|
991
1051
|
* });
|
|
992
1052
|
* ```
|
|
993
1053
|
*
|
|
994
|
-
* Can also use event to trigger the popup flow. Works the same
|
|
995
|
-
* as above example.
|
|
1054
|
+
* Can also use the event to trigger the popup flow. Works the same
|
|
1055
|
+
* as the above example.
|
|
996
1056
|
* @example
|
|
997
1057
|
* ```js
|
|
998
1058
|
* const authEE = init({
|
|
@@ -1016,7 +1076,7 @@ export enum AuthType {
|
|
|
1016
1076
|
OIDC = "SSO_OIDC",
|
|
1017
1077
|
/**
|
|
1018
1078
|
* SSO using OIDC
|
|
1019
|
-
* Will make the host application redirect to the OIDC
|
|
1079
|
+
* Will make the host application redirect to the OIDC IdP.
|
|
1020
1080
|
* See code samples in {@link SAMLRedirect}.
|
|
1021
1081
|
*/
|
|
1022
1082
|
OIDCRedirect = "SSO_OIDC",
|
|
@@ -1028,8 +1088,8 @@ export enum AuthType {
|
|
|
1028
1088
|
*/
|
|
1029
1089
|
AuthServer = "AuthServer",
|
|
1030
1090
|
/**
|
|
1031
|
-
* Trusted authentication server
|
|
1032
|
-
* which returns a bearer token, generated using the secret_key obtained
|
|
1091
|
+
* Trusted authentication server. Use your own authentication server
|
|
1092
|
+
* which returns a bearer token, generated using the `secret_key` obtained
|
|
1033
1093
|
* from ThoughtSpot.
|
|
1034
1094
|
*
|
|
1035
1095
|
* @example
|
|
@@ -1046,11 +1106,11 @@ export enum AuthType {
|
|
|
1046
1106
|
*/
|
|
1047
1107
|
TrustedAuthToken = "AuthServer",
|
|
1048
1108
|
/**
|
|
1049
|
-
* Trusted authentication server Cookieless, Use
|
|
1050
|
-
* server which returns a bearer token, generated using the secret_key
|
|
1109
|
+
* Trusted authentication server Cookieless, Use your own authentication
|
|
1110
|
+
* server which returns a bearer token, generated using the `secret_key`
|
|
1051
1111
|
* obtained from ThoughtSpot. This uses a cookieless authentication
|
|
1052
|
-
* approach, recommended to
|
|
1053
|
-
* implemented by some browsers
|
|
1112
|
+
* approach, recommended to bypass the third-party cookie-blocking restriction
|
|
1113
|
+
* implemented by some browsers.
|
|
1054
1114
|
*
|
|
1055
1115
|
* @example
|
|
1056
1116
|
* ```js
|
|
@@ -1063,7 +1123,7 @@ export enum AuthType {
|
|
|
1063
1123
|
* .then((data) => data.token);
|
|
1064
1124
|
* }
|
|
1065
1125
|
* ```
|
|
1066
|
-
* @version SDK: 1.22.0|
|
|
1126
|
+
* @version SDK: 1.22.0| ThoughtSpot: 9.3.0.cl, 9.5.1.sw
|
|
1067
1127
|
*/
|
|
1068
1128
|
TrustedAuthTokenCookieless = "AuthServerCookieless",
|
|
1069
1129
|
/**
|
|
@@ -1185,13 +1245,19 @@ export interface EmbedConfig {
|
|
|
1185
1245
|
* The ThoughtSpot cluster hostname or IP address.
|
|
1186
1246
|
*/
|
|
1187
1247
|
thoughtSpotHost: string;
|
|
1248
|
+
/**
|
|
1249
|
+
* If true, all the iframe links will have /v2 added automatically.
|
|
1250
|
+
* If false, all the iframe links will have /v1 added automatically.
|
|
1251
|
+
* If undefined, nothing will be added
|
|
1252
|
+
*/
|
|
1253
|
+
enableReactShell?: boolean | undefined;
|
|
1188
1254
|
/**
|
|
1189
1255
|
* The authentication mechanism to use.
|
|
1190
1256
|
*/
|
|
1191
1257
|
authType: AuthType;
|
|
1192
1258
|
/**
|
|
1193
1259
|
* [AuthServer] The trusted authentication endpoint to use to get the
|
|
1194
|
-
* authentication token. A GET request is made to the
|
|
1260
|
+
* authentication token. A `GET` request is made to the
|
|
1195
1261
|
* authentication API endpoint, which returns the token
|
|
1196
1262
|
* as a plaintext response. For trusted authentication,
|
|
1197
1263
|
* the `authEndpoint` or `getAuthToken` attribute is required.
|
|
@@ -1204,8 +1270,8 @@ export interface EmbedConfig {
|
|
|
1204
1270
|
* attribute is required.
|
|
1205
1271
|
*
|
|
1206
1272
|
* It is advisable to fetch a new token inside this method and not
|
|
1207
|
-
* reuse
|
|
1208
|
-
* called again and if it is called with an older token the authentication
|
|
1273
|
+
* reuse the old issued token. When auth expires this method is
|
|
1274
|
+
* called again and if it is called with an older token, the authentication
|
|
1209
1275
|
* will not succeed.
|
|
1210
1276
|
*/
|
|
1211
1277
|
getAuthToken?: () => Promise<string>;
|
|
@@ -1215,7 +1281,7 @@ export interface EmbedConfig {
|
|
|
1215
1281
|
*/
|
|
1216
1282
|
username?: string;
|
|
1217
1283
|
/**
|
|
1218
|
-
* [Basic] The ThoughtSpot login password corresponding to the
|
|
1284
|
+
* [Basic] The ThoughtSpot login password corresponding to the username
|
|
1219
1285
|
*
|
|
1220
1286
|
* Warning: This feature is primarily intended for developer testing. It is
|
|
1221
1287
|
* strongly advised not to use this authentication method in production.
|
|
@@ -1223,7 +1289,7 @@ export interface EmbedConfig {
|
|
|
1223
1289
|
password?: string;
|
|
1224
1290
|
/**
|
|
1225
1291
|
* [SSO] For SSO Authentication, if `noRedirect` is set to true, it will
|
|
1226
|
-
* open the SAML auth flow in a popup, instead of redirecting browser in
|
|
1292
|
+
* open the SAML auth flow in a popup, instead of redirecting the browser in
|
|
1227
1293
|
* place.
|
|
1228
1294
|
*
|
|
1229
1295
|
* @default false
|
|
@@ -1232,91 +1298,93 @@ export interface EmbedConfig {
|
|
|
1232
1298
|
noRedirect?: boolean;
|
|
1233
1299
|
/**
|
|
1234
1300
|
* [SSO] For SSO Authentication, if `inPopup` is set to true, it will open
|
|
1235
|
-
* the SAML auth flow in a popup, instead of redirecting browser in place.
|
|
1301
|
+
* the SAML auth flow in a popup, instead of redirecting the browser in place.
|
|
1236
1302
|
*
|
|
1237
|
-
* Need to use this with authTriggerContainer
|
|
1238
|
-
* the AuthEvent.TRIGGER_SSO_POPUP event on a user interaction.
|
|
1303
|
+
* Need to use this with `authTriggerContainer`. Or manually trigger
|
|
1304
|
+
* the `AuthEvent.TRIGGER_SSO_POPUP` event on a user interaction.
|
|
1239
1305
|
*
|
|
1240
1306
|
* @default false
|
|
1241
1307
|
* @version SDK: 1.18.0
|
|
1242
1308
|
*/
|
|
1243
1309
|
inPopup?: boolean;
|
|
1244
1310
|
/**
|
|
1245
|
-
* [SSO] For SSO Authentication, one can supply an optional path param
|
|
1246
|
-
*
|
|
1311
|
+
* [SSO] For SSO Authentication, one can supply an optional path param;
|
|
1312
|
+
* This will be the path on the host origin where the SAML flow will be
|
|
1247
1313
|
* terminated.
|
|
1248
1314
|
*
|
|
1249
1315
|
* Eg: "/dashboard", "#/foo" [Do not include the host]
|
|
1250
1316
|
*
|
|
1251
|
-
* @version SDK: 1.10.2 | 8.2.0.cl, 8.4.1.sw
|
|
1317
|
+
* @version SDK: 1.10.2 | ThoughtSpot 8.2.0.cl, 8.4.1.sw
|
|
1252
1318
|
*/
|
|
1253
1319
|
redirectPath?: string;
|
|
1254
1320
|
/** @internal */
|
|
1255
1321
|
basepath?: string;
|
|
1256
1322
|
/**
|
|
1257
|
-
*
|
|
1258
|
-
*
|
|
1259
|
-
*
|
|
1323
|
+
* Boolean to define if the query parameters in the ThoughtSpot URL
|
|
1324
|
+
* should be encoded in base64. This provides additional security to
|
|
1325
|
+
* Thoughtspot clusters against cross-site scripting attacks.
|
|
1260
1326
|
*
|
|
1261
1327
|
* @default false
|
|
1262
1328
|
*/
|
|
1263
1329
|
shouldEncodeUrlQueryParams?: boolean;
|
|
1264
1330
|
/**
|
|
1265
|
-
* Suppress cookie access alert when third
|
|
1266
|
-
* user's browser. Third
|
|
1267
|
-
*
|
|
1268
|
-
* encouraged to handle `noCookieAccess` event, to show your own treatment
|
|
1331
|
+
* Suppress cookie access alert when third-party cookies are blocked by the
|
|
1332
|
+
* user's browser. Third-party cookie blocking is the default behaviour on
|
|
1333
|
+
* some web browsers like Safari. If you set this attribute to `true`,
|
|
1334
|
+
* you are encouraged to handle `noCookieAccess` event, to show your own treatment
|
|
1269
1335
|
* in this case.
|
|
1270
1336
|
*
|
|
1271
1337
|
* @default false
|
|
1272
1338
|
*/
|
|
1273
1339
|
suppressNoCookieAccessAlert?: boolean;
|
|
1274
1340
|
/**
|
|
1275
|
-
* Ignore cookie access alert when third
|
|
1341
|
+
* Ignore the cookie access alert when third-party cookies are blocked by the
|
|
1276
1342
|
* user's browser. If you set this to `true`, the embedded iframe behaviour
|
|
1277
|
-
*
|
|
1343
|
+
* persists even in the case of a non-logged-in user.
|
|
1278
1344
|
*
|
|
1279
1345
|
* @default false
|
|
1280
1346
|
*/
|
|
1281
1347
|
ignoreNoCookieAccess?: boolean;
|
|
1282
1348
|
/**
|
|
1283
|
-
* Re-login
|
|
1349
|
+
* Re-login a user with the previous login options
|
|
1350
|
+
* when a user session expires.
|
|
1284
1351
|
*
|
|
1285
1352
|
* @default false
|
|
1286
1353
|
*/
|
|
1287
1354
|
autoLogin?: boolean;
|
|
1288
1355
|
/**
|
|
1289
1356
|
* Disable redirection to the login page when the embedded session expires
|
|
1290
|
-
* This flag is typically used alongside the combination of
|
|
1291
|
-
* AuthType.AuthServer} and auto
|
|
1357
|
+
* This flag is typically used alongside the combination of authentication modes such
|
|
1358
|
+
* as {@link AuthType.AuthServer} and auto-login behavior {@link
|
|
1359
|
+
* EmbedConfig.autoLogin}
|
|
1292
1360
|
*
|
|
1293
1361
|
* @version SDK: 1.9.3 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
|
|
1294
1362
|
* @default false
|
|
1295
1363
|
*/
|
|
1296
1364
|
disableLoginRedirect?: boolean;
|
|
1297
1365
|
/**
|
|
1298
|
-
* This message is displayed
|
|
1366
|
+
* This message is displayed in the embedded view when a user login fails.
|
|
1299
1367
|
*
|
|
1300
1368
|
* @version SDK: 1.10.1 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
|
|
1301
1369
|
*/
|
|
1302
1370
|
loginFailedMessage?: string;
|
|
1303
1371
|
/**
|
|
1304
|
-
* Calls the prefetch method internally when set to true
|
|
1372
|
+
* Calls the prefetch method internally when set to `true`
|
|
1305
1373
|
*
|
|
1306
1374
|
* @default false
|
|
1307
1375
|
*/
|
|
1308
1376
|
callPrefetch?: boolean;
|
|
1309
1377
|
/**
|
|
1310
|
-
* When there are multiple
|
|
1311
|
-
*
|
|
1312
|
-
*
|
|
1378
|
+
* When there are multiple objects embedded, queue the rendering of embedded objects
|
|
1379
|
+
* to start after the previous embed's render is complete. This helps improve
|
|
1380
|
+
* performance by decreasing the load on the browser.
|
|
1313
1381
|
*
|
|
1314
1382
|
* @Version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
|
|
1315
1383
|
* @default false
|
|
1316
1384
|
*/
|
|
1317
1385
|
queueMultiRenders?: boolean;
|
|
1318
1386
|
/**
|
|
1319
|
-
* Dynamic CSS
|
|
1387
|
+
* Dynamic CSS URL to be injected in the loaded application.
|
|
1320
1388
|
* You would also need to set `style-src` in the CSP settings.
|
|
1321
1389
|
*
|
|
1322
1390
|
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
@@ -1324,9 +1392,9 @@ export interface EmbedConfig {
|
|
|
1324
1392
|
*/
|
|
1325
1393
|
customCssUrl?: string;
|
|
1326
1394
|
/**
|
|
1327
|
-
* [AuthServer|Basic] Detect if
|
|
1395
|
+
* [AuthServer|Basic] Detect if third-party party cookies are enabled by doing an
|
|
1328
1396
|
* additional call. This is slower and should be avoided. Listen to the
|
|
1329
|
-
* NO_COOKIE_ACCESS event to handle the situation.
|
|
1397
|
+
* `NO_COOKIE_ACCESS` event to handle the situation.
|
|
1330
1398
|
*
|
|
1331
1399
|
* This is slightly slower than letting the browser handle the cookie check, as it
|
|
1332
1400
|
* involves an extra network call.
|
|
@@ -1335,26 +1403,26 @@ export interface EmbedConfig {
|
|
|
1335
1403
|
*/
|
|
1336
1404
|
detectCookieAccessSlow?: boolean;
|
|
1337
1405
|
/**
|
|
1338
|
-
* Hide beta alert warning message for SearchEmbed.
|
|
1406
|
+
* Hide the `beta` alert warning message for SearchEmbed.
|
|
1339
1407
|
*
|
|
1340
1408
|
* @version SDK: 1.12.0 | ThoughtSpot: 8.4.0.cl, 8.4.1.sw*
|
|
1341
1409
|
*/
|
|
1342
1410
|
suppressSearchEmbedBetaWarning?: boolean;
|
|
1343
1411
|
/**
|
|
1344
|
-
* Hide beta alert warning message for SageEmbed.
|
|
1412
|
+
* Hide `beta` alert warning message for SageEmbed.
|
|
1345
1413
|
*
|
|
1346
1414
|
*/
|
|
1347
1415
|
suppressSageEmbedBetaWarning?: boolean;
|
|
1348
1416
|
/**
|
|
1349
1417
|
* Custom style params for embed Config.
|
|
1350
1418
|
*
|
|
1351
|
-
* @version SDK: 1.17.0 | ThoughtSpot: 8.9.0.cl
|
|
1419
|
+
* @version SDK: 1.17.0 | ThoughtSpot: 8.9.0.cl, 9.0.1.sw
|
|
1352
1420
|
*/
|
|
1353
1421
|
customizations?: CustomisationsInterface;
|
|
1354
1422
|
/**
|
|
1355
|
-
* For inPopup SAMLRedirect or OIDCRedirect
|
|
1356
|
-
* click to trigger the flow.
|
|
1357
|
-
* for that button.
|
|
1423
|
+
* For `inPopup` SAMLRedirect or OIDCRedirect authentication, we need a
|
|
1424
|
+
* button that the user can click to trigger the flow.
|
|
1425
|
+
* This attribute sets a containing element for that button.
|
|
1358
1426
|
*
|
|
1359
1427
|
* @example
|
|
1360
1428
|
* ```js
|
|
@@ -1364,11 +1432,11 @@ export interface EmbedConfig {
|
|
|
1364
1432
|
* authTriggerContainer: '#auth-trigger-container'
|
|
1365
1433
|
* })
|
|
1366
1434
|
* ```
|
|
1367
|
-
* @version SDK: 1.17.0 | ThoughtSpot:
|
|
1435
|
+
* @version SDK: 1.17.0 | ThoughtSpot: 8.9.0.cl, 9.0.1.sw
|
|
1368
1436
|
*/
|
|
1369
1437
|
authTriggerContainer?: string | HTMLElement;
|
|
1370
1438
|
/**
|
|
1371
|
-
* Specify that we want to use the AuthEvent.TRIGGER_SSO_POPUP event to trigger
|
|
1439
|
+
* Specify that we want to use the `AuthEvent.TRIGGER_SSO_POPUP` event to trigger
|
|
1372
1440
|
* SAML popup. This is useful when you want to trigger the popup on a custom user
|
|
1373
1441
|
* action.
|
|
1374
1442
|
*
|
|
@@ -1376,20 +1444,22 @@ export interface EmbedConfig {
|
|
|
1376
1444
|
useEventForSAMLPopup?: boolean;
|
|
1377
1445
|
/**
|
|
1378
1446
|
* Text to show in the button which triggers the popup auth flow.
|
|
1379
|
-
* Default:
|
|
1447
|
+
* Default: `Authorize`.
|
|
1380
1448
|
*
|
|
1381
|
-
* @version SDK: 1.17.0 | ThoughtSpot:
|
|
1449
|
+
* @version SDK: 1.17.0 | ThoughtSpot: 8.9.0.cl, 9.0.1.sw
|
|
1382
1450
|
*/
|
|
1383
1451
|
authTriggerText?: string;
|
|
1384
1452
|
/**
|
|
1385
|
-
*
|
|
1453
|
+
* Prevent users from accessing the full application or ThoughtSpot application pages
|
|
1454
|
+
* access to the embedded application users
|
|
1455
|
+
* outside of the iframe.
|
|
1386
1456
|
*
|
|
1387
1457
|
* @default true
|
|
1388
1458
|
* @version SDK: 1.22.0 | ThoughtSpot: 9.3.0.cl, 9.5.1.sw
|
|
1389
1459
|
*/
|
|
1390
1460
|
blockNonEmbedFullAppAccess?: boolean;
|
|
1391
1461
|
/**
|
|
1392
|
-
* Host config
|
|
1462
|
+
* Host config in case embedded app is inside TS app itself
|
|
1393
1463
|
*
|
|
1394
1464
|
* @hidden
|
|
1395
1465
|
*/
|
|
@@ -1411,21 +1481,35 @@ export interface EmbedConfig {
|
|
|
1411
1481
|
* @version SDK: 1.26.2 | ThoughtSpot: *
|
|
1412
1482
|
*/
|
|
1413
1483
|
suppressErrorAlerts?: boolean;
|
|
1484
|
+
/**
|
|
1485
|
+
* Log level for the SDK.
|
|
1486
|
+
*
|
|
1487
|
+
* @default LogLevel.ERROR
|
|
1488
|
+
* @example
|
|
1489
|
+
* ```js
|
|
1490
|
+
* init({
|
|
1491
|
+
* ...embedConfig,
|
|
1492
|
+
* logLevel: LogLevel.SILENT
|
|
1493
|
+
* })
|
|
1494
|
+
* ```
|
|
1495
|
+
* @version SDK: 1.26.5 | ThoughtSpot: 9.10.0.cl
|
|
1496
|
+
*/
|
|
1497
|
+
logLevel?: LogLevel;
|
|
1414
1498
|
}
|
|
1415
1499
|
export interface LayoutConfig {
|
|
1416
1500
|
}
|
|
1417
1501
|
/**
|
|
1418
|
-
* Embedded
|
|
1502
|
+
* Embedded iframe configuration
|
|
1419
1503
|
*
|
|
1420
1504
|
* @group Embed components
|
|
1421
1505
|
*/
|
|
1422
1506
|
export interface FrameParams {
|
|
1423
1507
|
/**
|
|
1424
|
-
* The width of the
|
|
1508
|
+
* The width of the iframe (unit is pixels if numeric).
|
|
1425
1509
|
*/
|
|
1426
1510
|
width?: number | string;
|
|
1427
1511
|
/**
|
|
1428
|
-
* The height of the
|
|
1512
|
+
* The height of the iframe (unit is pixels if numeric).
|
|
1429
1513
|
*/
|
|
1430
1514
|
height?: number | string;
|
|
1431
1515
|
/**
|
|
@@ -1526,7 +1610,6 @@ export interface ViewConfig {
|
|
|
1526
1610
|
*/
|
|
1527
1611
|
runtimeParameters?: RuntimeParameter[];
|
|
1528
1612
|
/**
|
|
1529
|
-
/**
|
|
1530
1613
|
* The locale/language to use for the embedded view.
|
|
1531
1614
|
*
|
|
1532
1615
|
* @version SDK: 1.9.4 | ThoughtSpot 8.1.0.cl, 8.4.1.sw
|
|
@@ -1626,31 +1709,30 @@ export interface ViewConfig {
|
|
|
1626
1709
|
*/
|
|
1627
1710
|
reorderedHomepageModules?: HomepageModule[];
|
|
1628
1711
|
/**
|
|
1629
|
-
* The list of tab IDs to show in the embedded.
|
|
1630
|
-
* Only
|
|
1631
|
-
* Use this to show an tabID.
|
|
1712
|
+
* The list of tab IDs to show in the embedded Liveboard.
|
|
1713
|
+
* Only the tabs specified in the array will be shown in the Liveboard.
|
|
1632
1714
|
*
|
|
1633
|
-
* Use either
|
|
1715
|
+
* Use either `visibleTabs` or `hiddenTabs`.
|
|
1634
1716
|
*
|
|
1635
1717
|
* @example
|
|
1636
1718
|
* ```js
|
|
1637
|
-
*
|
|
1638
|
-
* ... // other liveboard view config
|
|
1639
|
-
* visibleTabs: [
|
|
1719
|
+
* visibleTabs: [
|
|
1640
1720
|
* '430496d6-6903-4601-937e-2c691821af3c',
|
|
1641
|
-
*
|
|
1642
|
-
* });
|
|
1721
|
+
* 'f547ec54-2a37-4516-a222-2b06719af726']
|
|
1643
1722
|
* ```
|
|
1644
1723
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
1645
1724
|
*/
|
|
1646
1725
|
visibleTabs?: string[];
|
|
1647
1726
|
/**
|
|
1648
|
-
* homepageLeftNavItems :
|
|
1649
|
-
* There are 8 home
|
|
1650
|
-
*
|
|
1651
|
-
* eg: hiddenHomeLeftNavItems = [HomeLeftNavItem.Home] to hide home.
|
|
1727
|
+
* homepageLeftNavItems : Show or hide the left navigation bar items.
|
|
1728
|
+
* There are 8 eight home navigation list items.
|
|
1729
|
+
* To hide these items, specify the string in the array.
|
|
1652
1730
|
*
|
|
1653
|
-
*
|
|
1731
|
+
* ```js
|
|
1732
|
+
* hiddenHomeLeftNavItems = [HomeLeftNavItem.Home]
|
|
1733
|
+
* ```
|
|
1734
|
+
*
|
|
1735
|
+
* @version SDK: 1.27.0 | Thoughtspot: 9.10.0.cl
|
|
1654
1736
|
*/
|
|
1655
1737
|
hiddenHomeLeftNavItems?: HomeLeftNavItem[];
|
|
1656
1738
|
/**
|
|
@@ -1666,7 +1748,7 @@ export interface ViewConfig {
|
|
|
1666
1748
|
* });
|
|
1667
1749
|
* embed.showPreRender();
|
|
1668
1750
|
* ```
|
|
1669
|
-
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
|
|
1751
|
+
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl, 9.8.0.sw
|
|
1670
1752
|
*/
|
|
1671
1753
|
preRenderId?: string;
|
|
1672
1754
|
/**
|
|
@@ -1705,7 +1787,7 @@ export type MessagePayload = {
|
|
|
1705
1787
|
status?: string;
|
|
1706
1788
|
};
|
|
1707
1789
|
/**
|
|
1708
|
-
* MessageOptions: By
|
|
1790
|
+
* MessageOptions: By providing options, getting specific event start / end based on
|
|
1709
1791
|
* option
|
|
1710
1792
|
*
|
|
1711
1793
|
* @group Events
|
|
@@ -1713,7 +1795,7 @@ export type MessagePayload = {
|
|
|
1713
1795
|
export type MessageOptions = {
|
|
1714
1796
|
/**
|
|
1715
1797
|
* A boolean value indicating that start status events of this type
|
|
1716
|
-
* will be dispatched
|
|
1798
|
+
* will be dispatched.
|
|
1717
1799
|
*/
|
|
1718
1800
|
start?: boolean;
|
|
1719
1801
|
};
|
|
@@ -1733,7 +1815,7 @@ responder?: (data: any) => void) => void;
|
|
|
1733
1815
|
*/
|
|
1734
1816
|
export type MessageCallbackObj = {
|
|
1735
1817
|
/**
|
|
1736
|
-
* options: It contains start,
|
|
1818
|
+
* options: It contains start, a boolean value indicating that start
|
|
1737
1819
|
* status events of this type will be dispatched
|
|
1738
1820
|
*/
|
|
1739
1821
|
options: MessageOptions;
|
|
@@ -1805,7 +1887,7 @@ export enum RuntimeFilterOp {
|
|
|
1805
1887
|
IN = "IN"
|
|
1806
1888
|
}
|
|
1807
1889
|
/**
|
|
1808
|
-
* Home page module that can be
|
|
1890
|
+
* Home page module that can be hidden
|
|
1809
1891
|
*/
|
|
1810
1892
|
export enum HomepageModule {
|
|
1811
1893
|
/**
|
|
@@ -1821,7 +1903,7 @@ export enum HomepageModule {
|
|
|
1821
1903
|
*/
|
|
1822
1904
|
Favorite = "FAVORITE",
|
|
1823
1905
|
/**
|
|
1824
|
-
* List of answers and
|
|
1906
|
+
* List of answers and Liveboards
|
|
1825
1907
|
*/
|
|
1826
1908
|
MyLibrary = "MY_LIBRARY",
|
|
1827
1909
|
/**
|
|
@@ -1854,7 +1936,7 @@ export interface RuntimeFilter {
|
|
|
1854
1936
|
values: (number | boolean | string)[];
|
|
1855
1937
|
}
|
|
1856
1938
|
/**
|
|
1857
|
-
* A filter that can be applied to ThoughtSpot
|
|
1939
|
+
* A filter that can be applied to ThoughtSpot Answers, Liveboards, or
|
|
1858
1940
|
* visualizations at runtime.
|
|
1859
1941
|
*/
|
|
1860
1942
|
export interface RuntimeParameter {
|
|
@@ -1891,12 +1973,26 @@ export enum EmbedEvent {
|
|
|
1891
1973
|
/**
|
|
1892
1974
|
* Rendering has initialized.
|
|
1893
1975
|
*
|
|
1976
|
+
* @example
|
|
1977
|
+
*```js
|
|
1978
|
+
* liveboardEmbed.on(EmbedEvent.Init, showLoader)
|
|
1979
|
+
* //show a loader
|
|
1980
|
+
* function showLoader() {
|
|
1981
|
+
* document.getElementById("loader");
|
|
1982
|
+
* }
|
|
1983
|
+
*```
|
|
1894
1984
|
* @returns timestamp - The timestamp when the event was generated.
|
|
1895
1985
|
*/
|
|
1896
1986
|
Init = "init",
|
|
1897
1987
|
/**
|
|
1898
1988
|
* Authentication has either succeeded or failed.
|
|
1899
1989
|
*
|
|
1990
|
+
* @example
|
|
1991
|
+
*```js
|
|
1992
|
+
* appEmbed.on(EmbedEvent.AuthInit, payload => {
|
|
1993
|
+
* console.log('AuthInit', payload);
|
|
1994
|
+
* })
|
|
1995
|
+
*```
|
|
1900
1996
|
* @returns isLoggedIn - A Boolean specifying whether authentication was successful.
|
|
1901
1997
|
*/
|
|
1902
1998
|
AuthInit = "authInit",
|
|
@@ -1904,37 +2000,91 @@ export enum EmbedEvent {
|
|
|
1904
2000
|
* The embed object container has loaded.
|
|
1905
2001
|
*
|
|
1906
2002
|
* @returns timestamp - The timestamp when the event was generated.
|
|
2003
|
+
* @example
|
|
2004
|
+
*```js
|
|
2005
|
+
* liveboardEmbed.on(EmbedEvent.Load, hideLoader)
|
|
2006
|
+
* //hide loader
|
|
2007
|
+
* function hideLoader() {
|
|
2008
|
+
* document.getElementById("loader");
|
|
2009
|
+
* }
|
|
2010
|
+
*```
|
|
1907
2011
|
*/
|
|
1908
2012
|
Load = "load",
|
|
1909
2013
|
/**
|
|
1910
2014
|
* Data pertaining to answer or Liveboard is received
|
|
1911
2015
|
*
|
|
1912
2016
|
* @return data - The answer or Liveboard data
|
|
2017
|
+
* @example
|
|
2018
|
+
*```js
|
|
2019
|
+
* liveboardEmbed.on(EmbedEvent.Data, payload => {
|
|
2020
|
+
* console.log('data', payload);
|
|
2021
|
+
* })
|
|
2022
|
+
*```
|
|
1913
2023
|
* @important
|
|
1914
2024
|
*/
|
|
1915
2025
|
Data = "data",
|
|
1916
2026
|
/**
|
|
1917
|
-
* Search/
|
|
2027
|
+
* Search/Answer/Liveboard filters have been applied/updated by the user.
|
|
1918
2028
|
*
|
|
1919
2029
|
* @hidden
|
|
1920
2030
|
*/
|
|
1921
2031
|
FiltersChanged = "filtersChanged",
|
|
1922
2032
|
/**
|
|
1923
2033
|
* Search query has been updated by the user.
|
|
2034
|
+
*
|
|
2035
|
+
* @example
|
|
2036
|
+
*```js
|
|
2037
|
+
* searchEmbed.on(EmbedEvent.QueryChanged, payload => console.log('data', payload))
|
|
2038
|
+
*```
|
|
1924
2039
|
*/
|
|
1925
2040
|
QueryChanged = "queryChanged",
|
|
1926
2041
|
/**
|
|
1927
|
-
* A drill
|
|
2042
|
+
* A drill-down operation has been performed.
|
|
1928
2043
|
*
|
|
1929
2044
|
* @returns additionalFilters - Any additional filters applied
|
|
1930
2045
|
* @returns drillDownColumns - The columns on which drill down was performed
|
|
1931
2046
|
* @returns nonFilteredColumns - The columns that were not filtered
|
|
2047
|
+
* @example
|
|
2048
|
+
*```js
|
|
2049
|
+
* searchEmbed.trigger(HostEvent.DrillDown, {
|
|
2050
|
+
* points: {
|
|
2051
|
+
* clickedPoint,
|
|
2052
|
+
* selectedPoints: selectedPoint
|
|
2053
|
+
* },
|
|
2054
|
+
* autoDrillDown: true,
|
|
2055
|
+
* })
|
|
2056
|
+
*```
|
|
2057
|
+
* In this example, `VizPointDoubleClick` event is used for
|
|
2058
|
+
* triggering the `DrillDown` event when an area or specific
|
|
2059
|
+
* data point on a table or chart is double-clicked.
|
|
2060
|
+
* @example
|
|
2061
|
+
*```js
|
|
2062
|
+
* searchEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
|
|
2063
|
+
* console.log(payload);
|
|
2064
|
+
* const clickedPoint = payload.data.clickedPoint;
|
|
2065
|
+
* const selectedPoint = payload.data.selectedPoints;
|
|
2066
|
+
* console.log('>>> called', clickedPoint);
|
|
2067
|
+
* embed.trigger(HostEvent.DrillDown, {
|
|
2068
|
+
* points: {
|
|
2069
|
+
* clickedPoint,
|
|
2070
|
+
* selectedPoints: selectedPoint
|
|
2071
|
+
* },
|
|
2072
|
+
* autoDrillDown: true,
|
|
2073
|
+
* })
|
|
2074
|
+
* })
|
|
2075
|
+
*```
|
|
1932
2076
|
*/
|
|
1933
2077
|
Drilldown = "drillDown",
|
|
1934
2078
|
/**
|
|
1935
2079
|
* One or more data sources have been selected.
|
|
1936
2080
|
*
|
|
1937
2081
|
* @returns dataSourceIds - the list of data sources
|
|
2082
|
+
* @example
|
|
2083
|
+
* ```js
|
|
2084
|
+
* searchEmbed.on(EmbedEvent.DataSourceSelected, payload => {
|
|
2085
|
+
* console.log('DataSourceSelected', payload);
|
|
2086
|
+
* })
|
|
2087
|
+
* ```
|
|
1938
2088
|
*/
|
|
1939
2089
|
DataSourceSelected = "dataSourceSelected",
|
|
1940
2090
|
/**
|
|
@@ -1942,25 +2092,49 @@ export enum EmbedEvent {
|
|
|
1942
2092
|
*
|
|
1943
2093
|
* @returns columnIds - the list of columns
|
|
1944
2094
|
* @version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
|
|
2095
|
+
* @example
|
|
2096
|
+
* ```js
|
|
2097
|
+
* appEmbed.on(EmbedEvent.AddRemoveColumns, payload => {
|
|
2098
|
+
* console.log('AddRemoveColumns', payload);
|
|
2099
|
+
* })
|
|
2100
|
+
* ```
|
|
1945
2101
|
*/
|
|
1946
2102
|
AddRemoveColumns = "addRemoveColumns",
|
|
1947
2103
|
/**
|
|
1948
|
-
* A custom action has been triggered
|
|
2104
|
+
* A custom action has been triggered.
|
|
1949
2105
|
*
|
|
1950
|
-
* @returns actionId -
|
|
1951
|
-
* @returns data -
|
|
2106
|
+
* @returns actionId - ID of the custom action
|
|
2107
|
+
* @returns data - Response payload with the Answer or Liveboard data
|
|
2108
|
+
* @example
|
|
2109
|
+
* ```js
|
|
2110
|
+
* appEmbed.on(EmbedEvent.customAction, payload => {
|
|
2111
|
+
* const data = payload.data;
|
|
2112
|
+
* if (data.id === 'insert Custom Action ID here') {
|
|
2113
|
+
* console.log('Custom Action event:', data.embedAnswerData);
|
|
2114
|
+
* }
|
|
2115
|
+
* })
|
|
2116
|
+
* ```
|
|
1952
2117
|
*/
|
|
1953
2118
|
CustomAction = "customAction",
|
|
1954
2119
|
/**
|
|
1955
|
-
* Listen to double
|
|
2120
|
+
* Listen to double click actions on a visualization.
|
|
1956
2121
|
*
|
|
1957
|
-
* @return ContextMenuInputPoints -
|
|
2122
|
+
* @return ContextMenuInputPoints - Data point that is double-clicked
|
|
1958
2123
|
* @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
|
|
2124
|
+
* @example
|
|
2125
|
+
* ```js
|
|
2126
|
+
* livebaordEmbed.on(EmbedEvent.VizPointDoubleClick, payload => {
|
|
2127
|
+
* console.log('VizPointDoubleClick', payload)
|
|
2128
|
+
* })
|
|
2129
|
+
* ```
|
|
1959
2130
|
*/
|
|
1960
2131
|
VizPointDoubleClick = "vizPointDoubleClick",
|
|
1961
2132
|
/**
|
|
1962
|
-
* Listen to clicks on a visualization in a
|
|
2133
|
+
* Listen to clicks on a visualization in a Liveboard or Search result.
|
|
1963
2134
|
*
|
|
2135
|
+
* @return viz, clickedPoint - metadata about the point that is clicked
|
|
2136
|
+
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2137
|
+
* @important
|
|
1964
2138
|
* @example
|
|
1965
2139
|
* ```js
|
|
1966
2140
|
* embed.on(ThoughtSpotEmbed.Event.VizPointClick, ({data}) => {
|
|
@@ -1973,25 +2147,42 @@ export enum EmbedEvent {
|
|
|
1973
2147
|
* )
|
|
1974
2148
|
* });
|
|
1975
2149
|
* ```
|
|
1976
|
-
* @return viz, clickedPoint - metadata about point that is clicked
|
|
1977
|
-
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1978
|
-
* @important
|
|
1979
2150
|
*/
|
|
1980
2151
|
VizPointClick = "vizPointClick",
|
|
1981
2152
|
/**
|
|
1982
2153
|
* An error has occurred.
|
|
1983
2154
|
*
|
|
1984
2155
|
* @returns error - An error object or message
|
|
2156
|
+
* @example
|
|
2157
|
+
* ```js
|
|
2158
|
+
* SearchEmbed.on(EmbedEvent.Error, showErrorMsg)
|
|
2159
|
+
* //show error messaage
|
|
2160
|
+
* function showErrorMsg() {
|
|
2161
|
+
* document.getElementById("error");
|
|
2162
|
+
* ```
|
|
1985
2163
|
*/
|
|
1986
2164
|
Error = "Error",
|
|
1987
2165
|
/**
|
|
1988
|
-
* The embedded object has sent an alert
|
|
2166
|
+
* The embedded object has sent an alert.
|
|
1989
2167
|
*
|
|
1990
2168
|
* @returns alert - An alert object
|
|
2169
|
+
* @example
|
|
2170
|
+
* ```js
|
|
2171
|
+
* searchEmbed.on(EmbedEvent.Alert)
|
|
2172
|
+
* ```
|
|
1991
2173
|
*/
|
|
1992
2174
|
Alert = "alert",
|
|
1993
2175
|
/**
|
|
1994
2176
|
* The ThoughtSpot auth session has expired.
|
|
2177
|
+
*
|
|
2178
|
+
* @example
|
|
2179
|
+
*```js
|
|
2180
|
+
* appEmbed.on(EmbedEvent.AuthExpire, showAuthExpired)
|
|
2181
|
+
* //show auth expired banner
|
|
2182
|
+
* function showAuthExpired() {
|
|
2183
|
+
* document.getElementById("authExpiredBanner");
|
|
2184
|
+
* }
|
|
2185
|
+
*```
|
|
1995
2186
|
*/
|
|
1996
2187
|
AuthExpire = "ThoughtspotAuthExpired",
|
|
1997
2188
|
/**
|
|
@@ -2021,14 +2212,27 @@ export enum EmbedEvent {
|
|
|
2021
2212
|
*/
|
|
2022
2213
|
EmbedIframeCenter = "EmbedIframeCenter",
|
|
2023
2214
|
/**
|
|
2024
|
-
* Emitted when
|
|
2025
|
-
*
|
|
2215
|
+
* Emitted when the **Get Data** action is initiated.
|
|
2216
|
+
* Applicable to `SearchBarEmbed` only.
|
|
2026
2217
|
*
|
|
2027
|
-
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.
|
|
2218
|
+
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
2219
|
+
* @example
|
|
2220
|
+
*```js
|
|
2221
|
+
* searchbarEmbed.on(EmbedEvent.GetDataClick)
|
|
2222
|
+
* .then(data => {
|
|
2223
|
+
* console.log('Answer Data:', data);
|
|
2224
|
+
* })
|
|
2225
|
+
*```
|
|
2028
2226
|
*/
|
|
2029
2227
|
GetDataClick = "getDataClick",
|
|
2030
2228
|
/**
|
|
2031
2229
|
* Detects the route change.
|
|
2230
|
+
*
|
|
2231
|
+
* @example
|
|
2232
|
+
*```js
|
|
2233
|
+
* searchEmbed.on(EmbedEvent.RouteChange, payload =>
|
|
2234
|
+
* console.log('data', payload))
|
|
2235
|
+
*```
|
|
2032
2236
|
*/
|
|
2033
2237
|
RouteChange = "ROUTE_CHANGE",
|
|
2034
2238
|
/**
|
|
@@ -2038,10 +2242,15 @@ export enum EmbedEvent {
|
|
|
2038
2242
|
*/
|
|
2039
2243
|
V1Data = "exportVizDataToParent",
|
|
2040
2244
|
/**
|
|
2041
|
-
* Emitted when the embed does not have cookie access. This
|
|
2042
|
-
*
|
|
2245
|
+
* Emitted when the embed does not have cookie access. This happens
|
|
2246
|
+
* when Safari and other Web browsers block third-party cookies
|
|
2247
|
+
* are blocked by default. `NoCookieAccess` can trigger
|
|
2043
2248
|
*
|
|
2044
|
-
* @
|
|
2249
|
+
* @example
|
|
2250
|
+
*```js
|
|
2251
|
+
* appEmbed.on(EmbedEvent.NoCookieAccess)
|
|
2252
|
+
*```
|
|
2253
|
+
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1.sw
|
|
2045
2254
|
*/
|
|
2046
2255
|
NoCookieAccess = "noCookieAccess",
|
|
2047
2256
|
/**
|
|
@@ -2055,12 +2264,24 @@ export enum EmbedEvent {
|
|
|
2055
2264
|
* Emitted when any modal is opened in the app
|
|
2056
2265
|
*
|
|
2057
2266
|
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
2267
|
+
* @example
|
|
2268
|
+
*```js
|
|
2269
|
+
* appEmbed.on(EmbedEvent.DialogOpen, payload => {
|
|
2270
|
+
* console.log('dialog open', payload);
|
|
2271
|
+
* })
|
|
2272
|
+
*```
|
|
2058
2273
|
*/
|
|
2059
2274
|
DialogOpen = "dialog-open",
|
|
2060
2275
|
/**
|
|
2061
2276
|
* Emitted when any modal is closed in the app
|
|
2062
2277
|
*
|
|
2063
2278
|
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
2279
|
+
* @example
|
|
2280
|
+
*```js
|
|
2281
|
+
* appEmbed.on(EmbedEvent.DialogClose, payload => {
|
|
2282
|
+
* console.log('dialog close', payload);
|
|
2283
|
+
* })
|
|
2284
|
+
*```
|
|
2064
2285
|
*/
|
|
2065
2286
|
DialogClose = "dialog-close",
|
|
2066
2287
|
/**
|
|
@@ -2069,6 +2290,21 @@ export enum EmbedEvent {
|
|
|
2069
2290
|
* other events on the rendered Liveboard.
|
|
2070
2291
|
*
|
|
2071
2292
|
* @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
|
|
2293
|
+
* @example
|
|
2294
|
+
*```js
|
|
2295
|
+
* liveboardEmbed.on(EmbedEvent.LiveboardRendered, payload => {
|
|
2296
|
+
console.log('Liveboard is rendered', payload);
|
|
2297
|
+
})
|
|
2298
|
+
*```
|
|
2299
|
+
* The following example shows how to trigger
|
|
2300
|
+
* `SetVisibleVizs` event using LiveboardRendered embed event:
|
|
2301
|
+
* @example
|
|
2302
|
+
*```js
|
|
2303
|
+
* const embedRef = useEmbedRef();
|
|
2304
|
+
* const onLiveboardRendered = () => {
|
|
2305
|
+
* embed.trigger(HostEvent.SetVisibleVizs, ['viz1', 'viz2']);
|
|
2306
|
+
* };
|
|
2307
|
+
*```
|
|
2072
2308
|
*/
|
|
2073
2309
|
LiveboardRendered = "PinboardRendered",
|
|
2074
2310
|
/**
|
|
@@ -2076,216 +2312,470 @@ export enum EmbedEvent {
|
|
|
2076
2312
|
* is triggered on all events.
|
|
2077
2313
|
*
|
|
2078
2314
|
* @Version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
|
|
2315
|
+
* @example
|
|
2316
|
+
*```js
|
|
2317
|
+
* appEmbed.on(EmbedEvent.ALL, payload => {
|
|
2318
|
+
* console.log('Embed Events', payload)
|
|
2319
|
+
* })
|
|
2320
|
+
*```
|
|
2079
2321
|
*/
|
|
2080
2322
|
ALL = "*",
|
|
2081
2323
|
/**
|
|
2082
2324
|
* Emitted when an Answer is saved in the app
|
|
2083
2325
|
*
|
|
2084
2326
|
* @Version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2327
|
+
* @example
|
|
2328
|
+
*```js
|
|
2329
|
+
* //trigger when action starts
|
|
2330
|
+
* searchEmbed.on(EmbedEvent.Save, payload => {
|
|
2331
|
+
* console.log('Save', payload)
|
|
2332
|
+
* }, {
|
|
2333
|
+
* start: true
|
|
2334
|
+
* })
|
|
2335
|
+
* //trigger when action ends
|
|
2336
|
+
* searchEmbed.on(EmbedEvent.Save, payload => {
|
|
2337
|
+
* console.log('Save', payload)
|
|
2338
|
+
* })
|
|
2339
|
+
*```
|
|
2085
2340
|
*/
|
|
2086
2341
|
Save = "save",
|
|
2087
2342
|
/**
|
|
2088
2343
|
* Emitted when the download action is triggered on an answer
|
|
2089
2344
|
*
|
|
2345
|
+
* **Note**: This event is deprecated in v1.21.0.
|
|
2346
|
+
* To fire an event when a download action is initiated on a chart or table,
|
|
2347
|
+
* use `EmbedEvent.DownloadAsPng`, `EmbedEvent.DownloadAsPDF`, `EmbedEvent.DownloadAsCSV`,
|
|
2348
|
+
* or `EmbedEvent.DownloadAsXLSX`
|
|
2349
|
+
*
|
|
2090
2350
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2351
|
+
* @example
|
|
2352
|
+
*```js
|
|
2353
|
+
* liveboardEmbed.trigger(HostEvent.Download, {
|
|
2354
|
+
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
2355
|
+
* })
|
|
2356
|
+
*```
|
|
2091
2357
|
*/
|
|
2092
2358
|
Download = "download",
|
|
2093
2359
|
/**
|
|
2094
2360
|
* Emitted when the download action is triggered on an answer
|
|
2095
2361
|
*
|
|
2096
2362
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.0.sw
|
|
2363
|
+
* @example
|
|
2364
|
+
*```js
|
|
2365
|
+
* //trigger when action starts
|
|
2366
|
+
* searchEmbed.on(EmbedEvent.DownloadAsPng, payload => {
|
|
2367
|
+
* console.log('download PNG', payload)}, {start: true })
|
|
2368
|
+
* //trigger when action ends
|
|
2369
|
+
* searchEmbed.on(EmbedEvent.DownloadAsPng, payload => {
|
|
2370
|
+
* console.log('download PNG', payload)})
|
|
2371
|
+
*```
|
|
2097
2372
|
*/
|
|
2098
2373
|
DownloadAsPng = "downloadAsPng",
|
|
2099
2374
|
/**
|
|
2100
2375
|
* Emitted when the Download as PDF action is triggered on an answer
|
|
2101
2376
|
*
|
|
2102
2377
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2378
|
+
* @example
|
|
2379
|
+
*```js
|
|
2380
|
+
* //trigger when action starts
|
|
2381
|
+
* searchEmbed.on(EmbedEvent.DownloadAsPdf, payload => {
|
|
2382
|
+
* console.log('download PDF', payload)}, {start: true })
|
|
2383
|
+
* //trigger when action ends
|
|
2384
|
+
* searchEmbed.on(EmbedEvent.DownloadAsPdf, payload => {
|
|
2385
|
+
* console.log('download PDF', payload)})
|
|
2386
|
+
*```
|
|
2103
2387
|
*/
|
|
2104
2388
|
DownloadAsPdf = "downloadAsPdf",
|
|
2105
2389
|
/**
|
|
2106
2390
|
* Emitted when the Download as CSV action is triggered on an answer
|
|
2107
2391
|
*
|
|
2108
2392
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2393
|
+
* @example
|
|
2394
|
+
*```js
|
|
2395
|
+
* //trigger when action starts
|
|
2396
|
+
* searchEmbed.on(EmbedEvent.DownloadAsCSV, payload => {
|
|
2397
|
+
* console.log('download CSV', payload)}, {start: true })
|
|
2398
|
+
* //trigger when action ends
|
|
2399
|
+
* searchEmbed.on(EmbedEvent.DownloadAsCSV, payload => {
|
|
2400
|
+
* console.log('download CSV', payload)})
|
|
2401
|
+
*```
|
|
2109
2402
|
*/
|
|
2110
2403
|
DownloadAsCsv = "downloadAsCsv",
|
|
2111
2404
|
/**
|
|
2112
2405
|
* Emitted when the Download as XLSX action is triggered on an answer
|
|
2113
2406
|
*
|
|
2114
2407
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2408
|
+
* @example
|
|
2409
|
+
*```js
|
|
2410
|
+
* //trigger when action starts
|
|
2411
|
+
* searchEmbed.on(EmbedEvent.DownloadAsXlsx, payload => {
|
|
2412
|
+
* console.log('download Xlsx', payload)}, { start: true })
|
|
2413
|
+
* //trigger when action ends
|
|
2414
|
+
* searchEmbed.on(EmbedEvent.DownloadAsXlsx, payload => {
|
|
2415
|
+
* console.log('download Xlsx', payload)})
|
|
2416
|
+
*```
|
|
2115
2417
|
*/
|
|
2116
2418
|
DownloadAsXlsx = "downloadAsXlsx",
|
|
2117
2419
|
/**
|
|
2118
|
-
* Emitted when an
|
|
2420
|
+
* Emitted when an Answer is deleted in the app
|
|
2119
2421
|
*
|
|
2120
2422
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2423
|
+
* @example
|
|
2424
|
+
*```js
|
|
2425
|
+
* //trigger when action starts
|
|
2426
|
+
* appEmbed.on(EmbedEvent.AnswerDelete, payload => {
|
|
2427
|
+
* console.log('delete answer', payload)}, {start: true })
|
|
2428
|
+
* //trigger when action is completed
|
|
2429
|
+
* appEmbed.on(EmbedEvent.AnswerDelete, payload => {
|
|
2430
|
+
* console.log('delete answer', payload)})
|
|
2431
|
+
*```
|
|
2121
2432
|
*/
|
|
2122
2433
|
AnswerDelete = "answerDelete",
|
|
2123
2434
|
/**
|
|
2124
2435
|
* Emitted when an answer is pinned to a Liveboard
|
|
2125
2436
|
*
|
|
2126
2437
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2438
|
+
* @example
|
|
2439
|
+
*```js
|
|
2440
|
+
* //trigger when action starts
|
|
2441
|
+
* searchEmbed.on(EmbedEvent.Pin, payload => {
|
|
2442
|
+
* console.log('pin', payload)
|
|
2443
|
+
* }, {
|
|
2444
|
+
* start: true
|
|
2445
|
+
* })
|
|
2446
|
+
* //trigger when action ends
|
|
2447
|
+
* searchEmbed.on(EmbedEvent.Pin, payload => {
|
|
2448
|
+
* console.log('pin', payload)
|
|
2449
|
+
* })
|
|
2450
|
+
*```
|
|
2127
2451
|
*/
|
|
2128
2452
|
Pin = "pin",
|
|
2129
2453
|
/**
|
|
2130
2454
|
* Emitted when SpotIQ analysis is triggered
|
|
2131
2455
|
*
|
|
2132
2456
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2457
|
+
* @example
|
|
2458
|
+
*```js
|
|
2459
|
+
* //trigger when action starts
|
|
2460
|
+
* searchEmbed.on(EmbedEvent.SpotIQAnalyze, payload => {
|
|
2461
|
+
* console.log('SpotIQAnalyze', payload)
|
|
2462
|
+
* }, {
|
|
2463
|
+
* start: true
|
|
2464
|
+
* })
|
|
2465
|
+
* //trigger when action ends
|
|
2466
|
+
* searchEmbed.on(EmbedEvent.SpotIQAnalyze, payload => {
|
|
2467
|
+
* console.log('SpotIQ analyze', payload)
|
|
2468
|
+
* })
|
|
2469
|
+
*```
|
|
2133
2470
|
*/
|
|
2134
2471
|
SpotIQAnalyze = "spotIQAnalyze",
|
|
2135
2472
|
/**
|
|
2136
2473
|
* Emitted when a user shares an object with another user or group
|
|
2137
2474
|
*
|
|
2138
2475
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2476
|
+
* @example
|
|
2477
|
+
*```js
|
|
2478
|
+
* //trigger when action starts
|
|
2479
|
+
* searchEmbed.on(EmbedEvent.Share, payload => {
|
|
2480
|
+
* console.log('Share', payload)
|
|
2481
|
+
* }, {
|
|
2482
|
+
* start: true
|
|
2483
|
+
* })
|
|
2484
|
+
* //trigger when action ends
|
|
2485
|
+
* searchEmbed.on(EmbedEvent.Share, payload => {
|
|
2486
|
+
* console.log('Share', payload)
|
|
2487
|
+
* })
|
|
2488
|
+
*```
|
|
2139
2489
|
*/
|
|
2140
2490
|
Share = "share",
|
|
2141
2491
|
/**
|
|
2142
|
-
* Emitted when a user clicks the Include action to include a specific value or
|
|
2143
|
-
* on a chart or table
|
|
2492
|
+
* Emitted when a user clicks the **Include** action to include a specific value or
|
|
2493
|
+
* data on a chart or table.
|
|
2144
2494
|
*
|
|
2145
2495
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2496
|
+
* @example
|
|
2497
|
+
*```js
|
|
2498
|
+
* appEmbed.on(EmbedEvent.DrillInclude, payload => {
|
|
2499
|
+
* console.log('Drill include', payload);
|
|
2500
|
+
* })
|
|
2501
|
+
*```
|
|
2146
2502
|
*/
|
|
2147
2503
|
DrillInclude = "context-menu-item-include",
|
|
2148
2504
|
/**
|
|
2149
|
-
* Emitted when a user clicks the Exclude action to exclude a specific value or
|
|
2150
|
-
* on a chart or table
|
|
2505
|
+
* Emitted when a user clicks the **Exclude** action to exclude a specific value or
|
|
2506
|
+
* data on a chart or table
|
|
2151
2507
|
*
|
|
2152
2508
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2509
|
+
* @example
|
|
2510
|
+
*```js
|
|
2511
|
+
* appEmbed.on(EmbedEvent.DrillExclude, payload => {
|
|
2512
|
+
* console.log('Drill exclude', payload);
|
|
2513
|
+
* })
|
|
2514
|
+
*```
|
|
2153
2515
|
*/
|
|
2154
2516
|
DrillExclude = "context-menu-item-exclude",
|
|
2155
2517
|
/**
|
|
2156
|
-
* Emitted when
|
|
2518
|
+
* Emitted when a column value is copied in the embedded app.
|
|
2157
2519
|
*
|
|
2158
2520
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2521
|
+
* @example
|
|
2522
|
+
*```js
|
|
2523
|
+
* seachEmbed.on(EmbedEvent.CopyToClipboard, payload => {
|
|
2524
|
+
* console.log('copy to clipboard', payload);
|
|
2525
|
+
* })
|
|
2526
|
+
*```
|
|
2159
2527
|
*/
|
|
2160
2528
|
CopyToClipboard = "context-menu-item-copy-to-clipboard",
|
|
2161
2529
|
/**
|
|
2162
|
-
* Emitted when a user clicks the Update TML action
|
|
2530
|
+
* Emitted when a user clicks the **Update TML** action
|
|
2163
2531
|
*
|
|
2164
2532
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2533
|
+
* @example
|
|
2534
|
+
*```js
|
|
2535
|
+
* liveboardEmbed.on(EmbedEvent.UpdateTML)
|
|
2536
|
+
* })
|
|
2537
|
+
*```
|
|
2165
2538
|
*/
|
|
2166
2539
|
UpdateTML = "updateTSL",
|
|
2167
2540
|
/**
|
|
2168
|
-
* Emitted when a user clicks the Edit TML action
|
|
2541
|
+
* Emitted when a user clicks the **Edit TML** action
|
|
2169
2542
|
*
|
|
2170
2543
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2544
|
+
* @example
|
|
2545
|
+
*```js
|
|
2546
|
+
* appEmbed.on(EmbedEvent.EditTML, payload => {
|
|
2547
|
+
* console.log('Edit TML', payload);
|
|
2548
|
+
* })
|
|
2549
|
+
*```
|
|
2171
2550
|
*/
|
|
2172
2551
|
EditTML = "editTSL",
|
|
2173
2552
|
/**
|
|
2174
|
-
* Emitted when
|
|
2553
|
+
* Emitted when the **Export TML** action is triggered on an
|
|
2554
|
+
* an embedded object in the app
|
|
2175
2555
|
*
|
|
2176
2556
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2557
|
+
* @example
|
|
2558
|
+
*```js
|
|
2559
|
+
* //trigger when action starts
|
|
2560
|
+
* searchEmbed.on(EmbedEvent.ExportTML, payload => {
|
|
2561
|
+
* console.log('Export TML', payload)}, { start: true })
|
|
2562
|
+
* //trigger when action ends
|
|
2563
|
+
* searchEmbed.on(EmbedEvent.ExportTML, payload => {
|
|
2564
|
+
* console.log('Export TML', payload)})
|
|
2565
|
+
*```
|
|
2177
2566
|
*/
|
|
2178
2567
|
ExportTML = "exportTSL",
|
|
2179
2568
|
/**
|
|
2180
|
-
* Emitted when an
|
|
2569
|
+
* Emitted when an Answer is saved as a View.
|
|
2181
2570
|
*
|
|
2182
2571
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2572
|
+
* @example
|
|
2573
|
+
*```js
|
|
2574
|
+
* appEmbed.on(EmbedEvent.SaveAsView, payload => {
|
|
2575
|
+
* console.log('View', payload);
|
|
2576
|
+
* })
|
|
2577
|
+
*```
|
|
2183
2578
|
*/
|
|
2184
2579
|
SaveAsView = "saveAsView",
|
|
2185
2580
|
/**
|
|
2186
|
-
* Emitted when
|
|
2581
|
+
* Emitted when the user creates a copy of an Answer
|
|
2187
2582
|
*
|
|
2188
2583
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2584
|
+
* @example
|
|
2585
|
+
*```js
|
|
2586
|
+
* //trigger when action starts
|
|
2587
|
+
* appEmbed.on(EmbedEvent.CopyAEdit, payload => {
|
|
2588
|
+
* console.log('Copy and edit', payload)}, {start: true })
|
|
2589
|
+
* //trigger when action ends
|
|
2590
|
+
* appEmbed.on(EmbedEvent.CopyAEdit, payload => {
|
|
2591
|
+
* console.log('Copy and edit', payload)})
|
|
2592
|
+
*```
|
|
2189
2593
|
*/
|
|
2190
2594
|
CopyAEdit = "copyAEdit",
|
|
2191
2595
|
/**
|
|
2192
|
-
* Emitted when a user clicks Show underlying data on an
|
|
2596
|
+
* Emitted when a user clicks Show underlying data on an Answer
|
|
2193
2597
|
*
|
|
2194
2598
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2599
|
+
* @example
|
|
2600
|
+
*```js
|
|
2601
|
+
* liveboardEmbed.on(EmbedEvent.ShowUnderlyingData, payload => {
|
|
2602
|
+
* console.log('show data', payload);
|
|
2603
|
+
* })
|
|
2604
|
+
*```
|
|
2195
2605
|
*/
|
|
2196
2606
|
ShowUnderlyingData = "showUnderlyingData",
|
|
2197
2607
|
/**
|
|
2198
|
-
* Emitted when an answer is switched to a chart or table view
|
|
2608
|
+
* Emitted when an answer is switched to a chart or table view.
|
|
2199
2609
|
*
|
|
2200
2610
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2611
|
+
* @example
|
|
2612
|
+
*```js
|
|
2613
|
+
* searchEmbed.on(EmbedEvent.AnswerChartSwitcher, payload => {
|
|
2614
|
+
* console.log('switch view', payload);
|
|
2615
|
+
* })
|
|
2616
|
+
*```
|
|
2201
2617
|
*/
|
|
2202
2618
|
AnswerChartSwitcher = "answerChartSwitcher",
|
|
2203
2619
|
/**
|
|
2204
|
-
* Internal event to communicate the initial settings back to the
|
|
2620
|
+
* Internal event to communicate the initial settings back to the ThoughtSpot app
|
|
2205
2621
|
*
|
|
2206
2622
|
* @hidden
|
|
2207
2623
|
*/
|
|
2208
2624
|
APP_INIT = "appInit",
|
|
2209
2625
|
/**
|
|
2210
|
-
* Emitted when a user clicks Show Liveboard details on a Liveboard
|
|
2626
|
+
* Emitted when a user clicks **Show Liveboard details** on a Liveboard
|
|
2211
2627
|
*
|
|
2212
2628
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2629
|
+
* @example
|
|
2630
|
+
*```js
|
|
2631
|
+
* liveboardEmbed.on(EmbedEvent.AnswerChartSwitcher, payload => {
|
|
2632
|
+
* console.log('Liveboard details', payload);
|
|
2633
|
+
* })
|
|
2634
|
+
*```
|
|
2213
2635
|
*/
|
|
2214
2636
|
LiveboardInfo = "pinboardInfo",
|
|
2215
2637
|
/**
|
|
2216
2638
|
* Emitted when a user clicks on the Favorite icon on a Liveboard
|
|
2217
2639
|
*
|
|
2218
2640
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2641
|
+
* @example
|
|
2642
|
+
*```js
|
|
2643
|
+
* liveboardEmbed.on(EmbedEvent.AddToFavorites, payload => {
|
|
2644
|
+
* console.log('favorites', payload);
|
|
2645
|
+
* })
|
|
2646
|
+
*```
|
|
2219
2647
|
*/
|
|
2220
2648
|
AddToFavorites = "addToFavorites",
|
|
2221
2649
|
/**
|
|
2222
|
-
* Emitted when a user clicks Schedule on a Liveboard
|
|
2650
|
+
* Emitted when a user clicks **Schedule** on a Liveboard
|
|
2223
2651
|
*
|
|
2224
2652
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2653
|
+
* @example
|
|
2654
|
+
*```js
|
|
2655
|
+
* liveboardEmbed.on(EmbedEvent.Schedule, payload => {
|
|
2656
|
+
* console.log(`Liveboard schedule', payload);
|
|
2657
|
+
* })
|
|
2658
|
+
*```
|
|
2225
2659
|
*/
|
|
2226
2660
|
Schedule = "subscription",
|
|
2227
2661
|
/**
|
|
2228
|
-
* Emitted when a user clicks Edit on a Liveboard or visualization
|
|
2662
|
+
* Emitted when a user clicks **Edit** on a Liveboard or visualization
|
|
2229
2663
|
*
|
|
2230
2664
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2665
|
+
* @example
|
|
2666
|
+
*```js
|
|
2667
|
+
* liveboardEmbed.on(EmbedEvent.Edit, payload => {
|
|
2668
|
+
* console.log(`Liveboard edit', payload);
|
|
2669
|
+
* })
|
|
2670
|
+
*```
|
|
2231
2671
|
*/
|
|
2232
2672
|
Edit = "edit",
|
|
2233
2673
|
/**
|
|
2234
|
-
* Emitted when a user clicks Make a copy on a Liveboard
|
|
2674
|
+
* Emitted when a user clicks *Make a copy* on a Liveboard
|
|
2235
2675
|
*
|
|
2236
2676
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2677
|
+
* @example
|
|
2678
|
+
*```js
|
|
2679
|
+
* liveboardEmbed.on(EmbedEvent.MakeACopy, payload => {
|
|
2680
|
+
* console.log(`Copy', payload);
|
|
2681
|
+
* })
|
|
2682
|
+
*```
|
|
2237
2683
|
*/
|
|
2238
2684
|
MakeACopy = "makeACopy",
|
|
2239
2685
|
/**
|
|
2240
|
-
* Emitted when a user clicks Present on a Liveboard or visualization
|
|
2686
|
+
* Emitted when a user clicks **Present** on a Liveboard or visualization
|
|
2241
2687
|
*
|
|
2242
2688
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2689
|
+
* @example
|
|
2690
|
+
*```js
|
|
2691
|
+
* liveboardEmbed.trigger(HostEvent.Present)
|
|
2692
|
+
*```
|
|
2693
|
+
* @example
|
|
2694
|
+
*```js
|
|
2695
|
+
* liveboardEmbed.on(EmbedEvent.Present, {
|
|
2696
|
+
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
2697
|
+
* })
|
|
2698
|
+
*```
|
|
2243
2699
|
*/
|
|
2244
2700
|
Present = "present",
|
|
2245
2701
|
/**
|
|
2246
|
-
* Emitted when a user clicks Delete on a
|
|
2702
|
+
* Emitted when a user clicks **Delete** on a visualization
|
|
2247
2703
|
*
|
|
2248
2704
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2705
|
+
* @example
|
|
2706
|
+
*```js
|
|
2707
|
+
* liveboardEmbed.trigger(HostEvent.Delete,
|
|
2708
|
+
* {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
2709
|
+
*```
|
|
2249
2710
|
*/
|
|
2250
2711
|
Delete = "delete",
|
|
2251
2712
|
/**
|
|
2252
2713
|
* Emitted when a user clicks Manage schedules on a Liveboard
|
|
2253
2714
|
*
|
|
2254
2715
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2716
|
+
* @example
|
|
2717
|
+
*```js
|
|
2718
|
+
* liveboardEmbed.trigger(HostEvent.SchedulesList)
|
|
2719
|
+
*```
|
|
2255
2720
|
*/
|
|
2256
2721
|
SchedulesList = "schedule-list",
|
|
2257
2722
|
/**
|
|
2258
|
-
* Emitted when a user clicks Cancel in edit mode on a Liveboard
|
|
2723
|
+
* Emitted when a user clicks **Cancel** in edit mode on a Liveboard
|
|
2259
2724
|
*
|
|
2260
2725
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2726
|
+
* @example
|
|
2727
|
+
*```js
|
|
2728
|
+
* liveboardEmbed.trigger(HostEvent.Cancel)
|
|
2729
|
+
*```
|
|
2261
2730
|
*/
|
|
2262
2731
|
Cancel = "cancel",
|
|
2263
2732
|
/**
|
|
2264
|
-
* Emitted when a user clicks Explore on a visualization
|
|
2733
|
+
* Emitted when a user clicks **Explore** on a visualization
|
|
2265
2734
|
*
|
|
2266
2735
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2736
|
+
* @example
|
|
2737
|
+
*```js
|
|
2738
|
+
* liveboardEmbed.trigger(HostEvent.Explore, {
|
|
2739
|
+
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
2740
|
+
*```
|
|
2267
2741
|
*/
|
|
2268
2742
|
Explore = "explore",
|
|
2269
2743
|
/**
|
|
2270
|
-
* Emitted when a user clicks Copy link action on a visualization
|
|
2744
|
+
* Emitted when a user clicks **Copy link** action on a visualization
|
|
2271
2745
|
*
|
|
2272
2746
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2747
|
+
* @example
|
|
2748
|
+
*```js
|
|
2749
|
+
* liveboardEmbed.trigger(HostEvent.CopyLink, {
|
|
2750
|
+
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
2751
|
+
*```
|
|
2273
2752
|
*/
|
|
2274
2753
|
CopyLink = "embedDocument",
|
|
2275
2754
|
/**
|
|
2276
|
-
* Emitted when a user interacts with cross filters on a visualization or
|
|
2755
|
+
* Emitted when a user interacts with cross filters on a visualization or Liveboard
|
|
2277
2756
|
*
|
|
2278
|
-
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
2757
|
+
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
|
|
2758
|
+
* @example
|
|
2759
|
+
*```js
|
|
2760
|
+
* liveboardEmbed.trigger(HostEvent.CrossFilterChanged, {
|
|
2761
|
+
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
2762
|
+
*```
|
|
2279
2763
|
*/
|
|
2280
2764
|
CrossFilterChanged = "cross-filter-changed",
|
|
2281
2765
|
/**
|
|
2282
2766
|
* Emitted when a user right clicks on a visualization (chart or table)
|
|
2283
2767
|
*
|
|
2284
|
-
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
2768
|
+
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
|
|
2769
|
+
* @example
|
|
2770
|
+
*```js
|
|
2771
|
+
* LiveboardEmbed.on(EmbedEvent.VizPointRightClick, payload => {
|
|
2772
|
+
* console.log('VizPointClick', payload)
|
|
2773
|
+
* })
|
|
2774
|
+
*```
|
|
2285
2775
|
*/
|
|
2286
2776
|
VizPointRightClick = "vizPointRightClick",
|
|
2287
2777
|
/**
|
|
2288
|
-
* Emitted when a user clicks
|
|
2778
|
+
* Emitted when a user clicks **Insert to slide** on a visualization
|
|
2289
2779
|
*
|
|
2290
2780
|
* @hidden
|
|
2291
2781
|
*/
|
|
@@ -2293,52 +2783,52 @@ export enum EmbedEvent {
|
|
|
2293
2783
|
/**
|
|
2294
2784
|
* @hidden
|
|
2295
2785
|
* Emitted when a user changes any filter on a Liveboard.
|
|
2296
|
-
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
2786
|
+
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.0.sw
|
|
2297
2787
|
*/
|
|
2298
2788
|
FilterChanged = "filterChanged",
|
|
2299
2789
|
/**
|
|
2300
|
-
* Emitted when a user
|
|
2790
|
+
* Emitted when a user clicks the **Go** button on the Search page
|
|
2301
2791
|
*
|
|
2302
|
-
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
2792
|
+
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
2303
2793
|
*/
|
|
2304
2794
|
SageEmbedQuery = "sageEmbedQuery",
|
|
2305
2795
|
/**
|
|
2306
|
-
*
|
|
2796
|
+
* Emitted when a user selects a data source.
|
|
2307
2797
|
*
|
|
2308
|
-
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
2798
|
+
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
2309
2799
|
*/
|
|
2310
2800
|
SageWorksheetUpdated = "sageWorksheetUpdated",
|
|
2311
2801
|
/**
|
|
2312
|
-
* Emitted when a user updates a connection
|
|
2802
|
+
* Emitted when a user updates a connection on the **Data** page
|
|
2313
2803
|
*
|
|
2314
|
-
* @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl
|
|
2804
|
+
* @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
|
|
2315
2805
|
*/
|
|
2316
2806
|
UpdateConnection = "updateConnection",
|
|
2317
2807
|
/**
|
|
2318
|
-
* Emitted when a user updates a connection
|
|
2808
|
+
* Emitted when a user updates a connection on the **Data** page
|
|
2319
2809
|
*
|
|
2320
|
-
* @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl
|
|
2810
|
+
* @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
|
|
2321
2811
|
*/
|
|
2322
2812
|
CreateConnection = "createConnection",
|
|
2323
2813
|
/**
|
|
2324
2814
|
* Emitted when name, status (private or public) or filter values of a
|
|
2325
|
-
*
|
|
2815
|
+
* Personalised view is updated.
|
|
2326
2816
|
*
|
|
2327
2817
|
* @returns viewName: string
|
|
2328
2818
|
* @returns viewId: string
|
|
2329
2819
|
* @returns liveboardId: string
|
|
2330
2820
|
* @returns isPublic: boolean
|
|
2331
|
-
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
2821
|
+
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
2332
2822
|
*/
|
|
2333
2823
|
UpdatePersonalisedView = "updatePersonalisedView",
|
|
2334
2824
|
/**
|
|
2335
|
-
* Emitted when a
|
|
2825
|
+
* Emitted when a Personalised view is saved.
|
|
2336
2826
|
*
|
|
2337
2827
|
* @returns viewName: string
|
|
2338
2828
|
* @returns viewId: string
|
|
2339
2829
|
* @returns liveboardId: string
|
|
2340
2830
|
* @returns isPublic: boolean
|
|
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
|
SavePersonalisedView = "savePersonalisedView",
|
|
2344
2834
|
/**
|
|
@@ -2348,7 +2838,7 @@ export enum EmbedEvent {
|
|
|
2348
2838
|
* @returns viewId: string
|
|
2349
2839
|
* @returns liveboardId: string
|
|
2350
2840
|
* @returns isPublic: boolean
|
|
2351
|
-
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
2841
|
+
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
2352
2842
|
*/
|
|
2353
2843
|
ResetLiveboard = "resetLiveboard",
|
|
2354
2844
|
/**
|
|
@@ -2356,20 +2846,30 @@ export enum EmbedEvent {
|
|
|
2356
2846
|
*
|
|
2357
2847
|
* @returns views: string[]
|
|
2358
2848
|
* @returns liveboardId: string
|
|
2359
|
-
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
2849
|
+
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
2360
2850
|
*/
|
|
2361
2851
|
DeletePersonalisedView = "deletePersonalisedView",
|
|
2362
2852
|
/**
|
|
2363
|
-
*
|
|
2853
|
+
* Emitted when a user creates a new worksheet
|
|
2364
2854
|
*
|
|
2365
2855
|
* @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl
|
|
2366
2856
|
*/
|
|
2367
2857
|
CreateWorksheet = "createWorksheet",
|
|
2368
2858
|
/**
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2859
|
+
* Emitted when Ask Sage is initialized.
|
|
2860
|
+
*
|
|
2861
|
+
* @returns viewName: string
|
|
2862
|
+
* @returns viewId: string
|
|
2863
|
+
* @returns liveboardId: string
|
|
2864
|
+
* @returns isPublic: boolean
|
|
2865
|
+
* @version SDK : 1.29.0 | Thoughtspot: 9.12.0.cl
|
|
2866
|
+
*/
|
|
2867
|
+
AskSageInit = "AskSageInit",
|
|
2868
|
+
/**
|
|
2869
|
+
* Emitted when a LB/viz is renamed
|
|
2870
|
+
*
|
|
2871
|
+
* @version SDK : 1.28.0 | ThoughtSpot: 9.11.0.cl
|
|
2872
|
+
*/
|
|
2373
2873
|
Rename = "rename"
|
|
2374
2874
|
}
|
|
2375
2875
|
/**
|
|
@@ -2396,15 +2896,16 @@ export enum EmbedEvent {
|
|
|
2396
2896
|
*/
|
|
2397
2897
|
export enum HostEvent {
|
|
2398
2898
|
/**
|
|
2399
|
-
* Triggers a search
|
|
2400
|
-
*
|
|
2899
|
+
* Triggers a search operation with the search tokens specified in
|
|
2900
|
+
* the search query string.
|
|
2901
|
+
* Supported in `AppEmbed` and `SearchEmbed` deployments.
|
|
2401
2902
|
* Includes the following properties:
|
|
2402
2903
|
*
|
|
2403
|
-
* @param -
|
|
2904
|
+
* @param - `searchQuery` - query string with search tokens
|
|
2905
|
+
* @param - `dataSources` - Data source GUID to Search on
|
|
2404
2906
|
* - Although an array, only a single source
|
|
2405
2907
|
* is supported.
|
|
2406
|
-
* @param -
|
|
2407
|
-
* @param - execute - executes the existing / updated query
|
|
2908
|
+
* @param - `execute` - executes search and updates the existing query
|
|
2408
2909
|
* @example
|
|
2409
2910
|
* ```js
|
|
2410
2911
|
* searchembed.trigger(HostEvent.Search, {
|
|
@@ -2424,6 +2925,10 @@ export enum HostEvent {
|
|
|
2424
2925
|
* @param - columnGuid - Optional. GUID of the column to drill
|
|
2425
2926
|
* by. If not provided it will auto drill by the configured
|
|
2426
2927
|
* column.
|
|
2928
|
+
* @param - autoDrillDown - Optional. If true, the drill down will be
|
|
2929
|
+
* done automatically on the most popular column.
|
|
2930
|
+
* @param - vizId [TS >= 9.8.0] - Optional. The GUID of the visualization to drill
|
|
2931
|
+
* in case of a liveboard.
|
|
2427
2932
|
* @example
|
|
2428
2933
|
* ```js
|
|
2429
2934
|
* searchEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
|
|
@@ -2440,6 +2945,25 @@ export enum HostEvent {
|
|
|
2440
2945
|
* });
|
|
2441
2946
|
* })
|
|
2442
2947
|
* ```
|
|
2948
|
+
* @example
|
|
2949
|
+
* ```js
|
|
2950
|
+
* // Works with TS 9.8.0 and above
|
|
2951
|
+
*
|
|
2952
|
+
* liveboardEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
|
|
2953
|
+
* console.log(payload);
|
|
2954
|
+
* const clickedPoint = payload.data.clickedPoint;
|
|
2955
|
+
* const selectedPoint = payload.data.selectedPoints;
|
|
2956
|
+
* console.log('>>> called', clickedPoint);
|
|
2957
|
+
* liveboardEmbed.trigger(HostEvent.DrillDown, {
|
|
2958
|
+
* points: {
|
|
2959
|
+
* clickedPoint,
|
|
2960
|
+
* selectedPoints: selectedPoint
|
|
2961
|
+
* },
|
|
2962
|
+
* autoDrillDown: true,
|
|
2963
|
+
* vizId: payload.data.vizId
|
|
2964
|
+
* });
|
|
2965
|
+
* })
|
|
2966
|
+
* ```
|
|
2443
2967
|
* @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
|
|
2444
2968
|
*/
|
|
2445
2969
|
DrillDown = "triggerDrillDown",
|
|
@@ -2456,7 +2980,7 @@ export enum HostEvent {
|
|
|
2456
2980
|
*/
|
|
2457
2981
|
Reload = "reload",
|
|
2458
2982
|
/**
|
|
2459
|
-
*
|
|
2983
|
+
* Display specific visualizations on a Liveboard.
|
|
2460
2984
|
*
|
|
2461
2985
|
* @param - An array of GUIDs of the visualization to show. The visualization IDs not passed
|
|
2462
2986
|
* in this parameter will be hidden.
|
|
@@ -2470,7 +2994,7 @@ export enum HostEvent {
|
|
|
2470
2994
|
*/
|
|
2471
2995
|
SetVisibleVizs = "SetPinboardVisibleVizs",
|
|
2472
2996
|
/**
|
|
2473
|
-
* Set
|
|
2997
|
+
* Set a Liveboard tab as an active tab.
|
|
2474
2998
|
*
|
|
2475
2999
|
* @param - tabId - string of id of Tab to show
|
|
2476
3000
|
* @example
|
|
@@ -2483,7 +3007,7 @@ export enum HostEvent {
|
|
|
2483
3007
|
*/
|
|
2484
3008
|
SetActiveTab = "SetActiveTab",
|
|
2485
3009
|
/**
|
|
2486
|
-
*
|
|
3010
|
+
* Update runtime filters applied on a Saved Answer or Liveboard. The
|
|
2487
3011
|
* runtime filters passed here are appended to the existing runtime
|
|
2488
3012
|
* filters.
|
|
2489
3013
|
* Pass an array of runtime filters with the following attributes:
|
|
@@ -2509,10 +3033,11 @@ export enum HostEvent {
|
|
|
2509
3033
|
*/
|
|
2510
3034
|
UpdateRuntimeFilters = "UpdateRuntimeFilters",
|
|
2511
3035
|
/**
|
|
2512
|
-
* Navigate to a specific page in the embedded application
|
|
3036
|
+
* Navigate to a specific page in the embedded ThoughtSpot application.
|
|
2513
3037
|
* This is the same as calling `appEmbed.navigateToPage(path, true)`
|
|
2514
3038
|
*
|
|
2515
|
-
* @param - path - the path to navigate to
|
|
3039
|
+
* @param - `path` - the path to navigate to to go forward or back. The path value can
|
|
3040
|
+
* be a number; for example, `1`, `-1`.
|
|
2516
3041
|
* @example
|
|
2517
3042
|
* ```js
|
|
2518
3043
|
* appEmbed.navigateToPage(-1)
|
|
@@ -2521,7 +3046,7 @@ export enum HostEvent {
|
|
|
2521
3046
|
*/
|
|
2522
3047
|
Navigate = "Navigate",
|
|
2523
3048
|
/**
|
|
2524
|
-
*
|
|
3049
|
+
* Open the filter panel for a particular column.
|
|
2525
3050
|
* Works with Search and Liveboard embed.
|
|
2526
3051
|
*
|
|
2527
3052
|
* @param - { columnId: string,
|
|
@@ -2539,7 +3064,7 @@ export enum HostEvent {
|
|
|
2539
3064
|
*/
|
|
2540
3065
|
OpenFilter = "openFilter",
|
|
2541
3066
|
/**
|
|
2542
|
-
*
|
|
3067
|
+
* Add columns to the current search query.
|
|
2543
3068
|
*
|
|
2544
3069
|
* @param - { columnIds: string[] }
|
|
2545
3070
|
* @example
|
|
@@ -2550,7 +3075,7 @@ export enum HostEvent {
|
|
|
2550
3075
|
*/
|
|
2551
3076
|
AddColumns = "addColumns",
|
|
2552
3077
|
/**
|
|
2553
|
-
*
|
|
3078
|
+
* Remove a column from the current search query.
|
|
2554
3079
|
*
|
|
2555
3080
|
* @param - { columnId: string }
|
|
2556
3081
|
* @example
|
|
@@ -2561,27 +3086,29 @@ export enum HostEvent {
|
|
|
2561
3086
|
*/
|
|
2562
3087
|
RemoveColumn = "removeColumn",
|
|
2563
3088
|
/**
|
|
2564
|
-
*
|
|
3089
|
+
* Get the transient state of a Liveboard as encoded content.
|
|
3090
|
+
* This includes unsaved and ad hoc changes such as
|
|
3091
|
+
* Liveboard filters, runtime filters applied on visualizations on a
|
|
3092
|
+
* Liveboard, and Liveboard layout, changes to visualizations such as
|
|
3093
|
+
* sorting, toggling of legends, and data drill down.
|
|
2565
3094
|
*
|
|
2566
3095
|
* @example
|
|
2567
3096
|
* ```js
|
|
2568
|
-
* liveboardEmbed.trigger(HostEvent.
|
|
3097
|
+
* liveboardEmbed.trigger(HostEvent.getexportrequestforcurrentpinboard).then(
|
|
3098
|
+
* data=>console.log(data))
|
|
2569
3099
|
* ```
|
|
2570
3100
|
* @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1.sw
|
|
2571
3101
|
*/
|
|
2572
3102
|
getExportRequestForCurrentPinboard = "getExportRequestForCurrentPinboard",
|
|
2573
3103
|
/**
|
|
2574
|
-
*
|
|
3104
|
+
* Trigger the **Pin** action on an embedded object
|
|
2575
3105
|
*
|
|
2576
3106
|
* @param - Liveboard embed takes the `vizId` as a
|
|
2577
|
-
* key. Can be left undefined when embedding Search, full app or
|
|
3107
|
+
* key. Can be left undefined when embedding Search, full app, or
|
|
2578
3108
|
* a visualization.
|
|
2579
3109
|
* @example
|
|
2580
3110
|
* ```js
|
|
2581
|
-
*
|
|
2582
|
-
* ```
|
|
2583
|
-
* ```js
|
|
2584
|
-
* vizEmbed.trigger(HostEvent.Pin)
|
|
3111
|
+
* appEmbed.trigger(HostEvent.Pin)
|
|
2585
3112
|
* ```
|
|
2586
3113
|
* ```js
|
|
2587
3114
|
* searchEmbed.trigger(HostEvent.Pin)
|
|
@@ -2590,17 +3117,18 @@ export enum HostEvent {
|
|
|
2590
3117
|
*/
|
|
2591
3118
|
Pin = "pin",
|
|
2592
3119
|
/**
|
|
2593
|
-
*
|
|
3120
|
+
* Trigger the **Show Liveboard details** action
|
|
3121
|
+
* on an embedded Liveboard.
|
|
2594
3122
|
*
|
|
2595
3123
|
* @example
|
|
2596
|
-
|
|
2597
|
-
*
|
|
2598
|
-
|
|
3124
|
+
*```js
|
|
3125
|
+
* liveboardEmbed.trigger(HostEvent.LiveboardInfo)
|
|
3126
|
+
*```
|
|
2599
3127
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2600
3128
|
*/
|
|
2601
3129
|
LiveboardInfo = "pinboardInfo",
|
|
2602
3130
|
/**
|
|
2603
|
-
*
|
|
3131
|
+
* Trigger the **Schedule** action on an embedded Liveboard.
|
|
2604
3132
|
*
|
|
2605
3133
|
* @example
|
|
2606
3134
|
* ```js
|
|
@@ -2610,7 +3138,7 @@ export enum HostEvent {
|
|
|
2610
3138
|
*/
|
|
2611
3139
|
Schedule = "subscription",
|
|
2612
3140
|
/**
|
|
2613
|
-
*
|
|
3141
|
+
* Trigger the **Manage schedule** action on an embedded Liveboard
|
|
2614
3142
|
*
|
|
2615
3143
|
* @example
|
|
2616
3144
|
* ```js
|
|
@@ -2620,7 +3148,7 @@ export enum HostEvent {
|
|
|
2620
3148
|
*/
|
|
2621
3149
|
SchedulesList = "schedule-list",
|
|
2622
3150
|
/**
|
|
2623
|
-
*
|
|
3151
|
+
* Trigger the **Export TML** action on an embedded Liveboard.
|
|
2624
3152
|
*
|
|
2625
3153
|
* @example
|
|
2626
3154
|
* ```js
|
|
@@ -2630,7 +3158,7 @@ export enum HostEvent {
|
|
|
2630
3158
|
*/
|
|
2631
3159
|
ExportTML = "exportTSL",
|
|
2632
3160
|
/**
|
|
2633
|
-
*
|
|
3161
|
+
* Trigger the **Edit TML** action on an embedded Liveboard.
|
|
2634
3162
|
*
|
|
2635
3163
|
* @example
|
|
2636
3164
|
* ```js
|
|
@@ -2640,7 +3168,7 @@ export enum HostEvent {
|
|
|
2640
3168
|
*/
|
|
2641
3169
|
EditTML = "editTSL",
|
|
2642
3170
|
/**
|
|
2643
|
-
*
|
|
3171
|
+
* Trigger the **Update TML** action on an embedded Liveboard.
|
|
2644
3172
|
*
|
|
2645
3173
|
* @example
|
|
2646
3174
|
* ```js
|
|
@@ -2650,7 +3178,7 @@ export enum HostEvent {
|
|
|
2650
3178
|
*/
|
|
2651
3179
|
UpdateTML = "updateTSL",
|
|
2652
3180
|
/**
|
|
2653
|
-
*
|
|
3181
|
+
* Trigger the **Download PDF** action on an embedded Liveboard.
|
|
2654
3182
|
*
|
|
2655
3183
|
* @example
|
|
2656
3184
|
* ```js
|
|
@@ -2660,8 +3188,8 @@ export enum HostEvent {
|
|
|
2660
3188
|
*/
|
|
2661
3189
|
DownloadAsPdf = "downloadAsPdf",
|
|
2662
3190
|
/**
|
|
2663
|
-
*
|
|
2664
|
-
* visualization page
|
|
3191
|
+
* Trigger the **Make a copy** action on a Liveboard, Search, or
|
|
3192
|
+
* visualization page.
|
|
2665
3193
|
*
|
|
2666
3194
|
* @example
|
|
2667
3195
|
* ```js
|
|
@@ -2677,7 +3205,7 @@ export enum HostEvent {
|
|
|
2677
3205
|
*/
|
|
2678
3206
|
MakeACopy = "makeACopy",
|
|
2679
3207
|
/**
|
|
2680
|
-
*
|
|
3208
|
+
* Trigger the **Delete** action for a Liveboard.
|
|
2681
3209
|
*
|
|
2682
3210
|
* @example
|
|
2683
3211
|
* ```js
|
|
@@ -2687,7 +3215,7 @@ export enum HostEvent {
|
|
|
2687
3215
|
*/
|
|
2688
3216
|
Remove = "delete",
|
|
2689
3217
|
/**
|
|
2690
|
-
*
|
|
3218
|
+
* Trigger the **Explore** action on a visualization.
|
|
2691
3219
|
*
|
|
2692
3220
|
* @param - an object with `vizId` as a key
|
|
2693
3221
|
* @example
|
|
@@ -2698,7 +3226,7 @@ export enum HostEvent {
|
|
|
2698
3226
|
*/
|
|
2699
3227
|
Explore = "explore",
|
|
2700
3228
|
/**
|
|
2701
|
-
*
|
|
3229
|
+
* Trigger the **Create alert** action on a visualization
|
|
2702
3230
|
*
|
|
2703
3231
|
* @param - an object with `vizId` as a key
|
|
2704
3232
|
* @example
|
|
@@ -2711,7 +3239,7 @@ export enum HostEvent {
|
|
|
2711
3239
|
*/
|
|
2712
3240
|
CreateMonitor = "createMonitor",
|
|
2713
3241
|
/**
|
|
2714
|
-
*
|
|
3242
|
+
* Trigger the **Manage alerts** action on a visualization
|
|
2715
3243
|
*
|
|
2716
3244
|
* @param - an object with `vizId` as a key
|
|
2717
3245
|
* @example
|
|
@@ -2724,7 +3252,7 @@ export enum HostEvent {
|
|
|
2724
3252
|
*/
|
|
2725
3253
|
ManageMonitor = "manageMonitor",
|
|
2726
3254
|
/**
|
|
2727
|
-
*
|
|
3255
|
+
* Trigger the **Edit** action on a Liveboard or visualization
|
|
2728
3256
|
*
|
|
2729
3257
|
* @param - object - To trigger the action for a specific visualization
|
|
2730
3258
|
* in Liveboard embed, pass in `vizId` as a key.
|
|
@@ -2745,7 +3273,7 @@ export enum HostEvent {
|
|
|
2745
3273
|
*/
|
|
2746
3274
|
Edit = "edit",
|
|
2747
3275
|
/**
|
|
2748
|
-
*
|
|
3276
|
+
* Trigger the **Copy link** action on a Liveboard or visualization
|
|
2749
3277
|
*
|
|
2750
3278
|
* @param - object - to trigger the action for a
|
|
2751
3279
|
* specific visualization in Liveboard embed, pass in `vizId` as a key
|
|
@@ -2763,7 +3291,7 @@ export enum HostEvent {
|
|
|
2763
3291
|
*/
|
|
2764
3292
|
CopyLink = "embedDocument",
|
|
2765
3293
|
/**
|
|
2766
|
-
*
|
|
3294
|
+
* Trigger the **Present** 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
|
|
@@ -2781,7 +3309,7 @@ export enum HostEvent {
|
|
|
2781
3309
|
*/
|
|
2782
3310
|
Present = "present",
|
|
2783
3311
|
/**
|
|
2784
|
-
*
|
|
3312
|
+
* Get TML for the current search.
|
|
2785
3313
|
*
|
|
2786
3314
|
* @example
|
|
2787
3315
|
* ```js
|
|
@@ -2796,7 +3324,7 @@ export enum HostEvent {
|
|
|
2796
3324
|
*/
|
|
2797
3325
|
GetTML = "getTML",
|
|
2798
3326
|
/**
|
|
2799
|
-
*
|
|
3327
|
+
* Trigger the **Show underlying data** action on visualization or search
|
|
2800
3328
|
*
|
|
2801
3329
|
* @param - an object with vizId as a key
|
|
2802
3330
|
* @example
|
|
@@ -2814,7 +3342,9 @@ export enum HostEvent {
|
|
|
2814
3342
|
*/
|
|
2815
3343
|
ShowUnderlyingData = "showUnderlyingData",
|
|
2816
3344
|
/**
|
|
2817
|
-
*
|
|
3345
|
+
* Trigger the **Delete** action for a visualization
|
|
3346
|
+
* in an embedded Liveboard, or a chart or table
|
|
3347
|
+
* generated from Search.
|
|
2818
3348
|
*
|
|
2819
3349
|
* @param - Liveboard embed takes an object with `vizId` as a key.
|
|
2820
3350
|
* Can be left empty if embedding Search or visualization.
|
|
@@ -2824,16 +3354,13 @@ export enum HostEvent {
|
|
|
2824
3354
|
* '730496d6-6903-4601-937e-2c691821af3c'})
|
|
2825
3355
|
* ```
|
|
2826
3356
|
* ```js
|
|
2827
|
-
* vizEmbed.trigger(HostEvent.Delete)
|
|
2828
|
-
* ```
|
|
2829
|
-
* ```js
|
|
2830
3357
|
* searchEmbed.trigger(HostEvent.Delete)
|
|
2831
3358
|
* ```
|
|
2832
3359
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
2833
3360
|
*/
|
|
2834
3361
|
Delete = "onDeleteAnswer",
|
|
2835
3362
|
/**
|
|
2836
|
-
*
|
|
3363
|
+
* Trigger the **SpotIQ analyze** action on visualization
|
|
2837
3364
|
* or search.
|
|
2838
3365
|
*
|
|
2839
3366
|
* @param - Liveboard embed takes `vizId` as a
|
|
@@ -2854,7 +3381,7 @@ export enum HostEvent {
|
|
|
2854
3381
|
*/
|
|
2855
3382
|
SpotIQAnalyze = "spotIQAnalyze",
|
|
2856
3383
|
/**
|
|
2857
|
-
*
|
|
3384
|
+
* Trigger the **Download** action on charts in
|
|
2858
3385
|
* the embedded view.
|
|
2859
3386
|
*
|
|
2860
3387
|
* @example
|
|
@@ -2863,17 +3390,15 @@ export enum HostEvent {
|
|
|
2863
3390
|
* '730496d6-6903-4601-937e-2c691821af3c'})
|
|
2864
3391
|
* ```
|
|
2865
3392
|
* ```js
|
|
2866
|
-
*
|
|
2867
|
-
* ```
|
|
2868
|
-
* ```js
|
|
2869
|
-
* searchEmbed.trigger(HostEvent.Download)
|
|
3393
|
+
* embed.trigger(HostEvent.Download)
|
|
2870
3394
|
* ```
|
|
2871
|
-
* @deprecated from SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl ,9.4.1.sw
|
|
3395
|
+
* @deprecated from SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl ,9.4.1.sw
|
|
3396
|
+
* Use {@link DownloadAsPng}
|
|
2872
3397
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
2873
3398
|
*/
|
|
2874
3399
|
Download = "downloadAsPng",
|
|
2875
3400
|
/**
|
|
2876
|
-
*
|
|
3401
|
+
* Trigger the **Download** > **PNG** action on
|
|
2877
3402
|
* charts in the embedded view.
|
|
2878
3403
|
*
|
|
2879
3404
|
* @example
|
|
@@ -2889,7 +3414,7 @@ export enum HostEvent {
|
|
|
2889
3414
|
*/
|
|
2890
3415
|
DownloadAsPng = "downloadAsPng",
|
|
2891
3416
|
/**
|
|
2892
|
-
*
|
|
3417
|
+
* Trigger the **Download** > **CSV** action on tables in
|
|
2893
3418
|
* the embedded view.
|
|
2894
3419
|
*
|
|
2895
3420
|
* @example
|
|
@@ -2907,7 +3432,7 @@ export enum HostEvent {
|
|
|
2907
3432
|
*/
|
|
2908
3433
|
DownloadAsCsv = "downloadAsCSV",
|
|
2909
3434
|
/**
|
|
2910
|
-
*
|
|
3435
|
+
* Trigger the **Download** > **XLSX** action on tables
|
|
2911
3436
|
* in the embedded view.
|
|
2912
3437
|
*
|
|
2913
3438
|
* @example
|
|
@@ -2925,7 +3450,7 @@ export enum HostEvent {
|
|
|
2925
3450
|
*/
|
|
2926
3451
|
DownloadAsXlsx = "downloadAsXLSX",
|
|
2927
3452
|
/**
|
|
2928
|
-
*
|
|
3453
|
+
* Trigger the **Share** action on an embedded
|
|
2929
3454
|
* Liveboard or Answer.
|
|
2930
3455
|
*
|
|
2931
3456
|
* @example
|
|
@@ -2939,7 +3464,7 @@ export enum HostEvent {
|
|
|
2939
3464
|
*/
|
|
2940
3465
|
Share = "share",
|
|
2941
3466
|
/**
|
|
2942
|
-
*
|
|
3467
|
+
* Trigger the **Save** action on a Liveboard or Answer.
|
|
2943
3468
|
* Saves the changes.
|
|
2944
3469
|
*
|
|
2945
3470
|
* @example
|
|
@@ -2953,7 +3478,7 @@ export enum HostEvent {
|
|
|
2953
3478
|
*/
|
|
2954
3479
|
Save = "save",
|
|
2955
3480
|
/**
|
|
2956
|
-
*
|
|
3481
|
+
* Trigger the **Sync to Sheets** action on an embedded visualization or Answer
|
|
2957
3482
|
* Sends data from an Answer or Liveboard visualization to a Google sheet.
|
|
2958
3483
|
*
|
|
2959
3484
|
* @param - an object with `vizId` as a key
|
|
@@ -2969,7 +3494,7 @@ export enum HostEvent {
|
|
|
2969
3494
|
*/
|
|
2970
3495
|
SyncToSheets = "sync-to-sheets",
|
|
2971
3496
|
/**
|
|
2972
|
-
*
|
|
3497
|
+
* Trigger the **Sync to Other Apps** action on an embedded visualization or Answer
|
|
2973
3498
|
* Sends data from an Answer or Liveboard visualization to third-party apps such
|
|
2974
3499
|
* as Slack, Salesforce, Microsoft Teams, ServiceNow and so on.
|
|
2975
3500
|
*
|
|
@@ -2986,7 +3511,7 @@ export enum HostEvent {
|
|
|
2986
3511
|
*/
|
|
2987
3512
|
SyncToOtherApps = "sync-to-other-apps",
|
|
2988
3513
|
/**
|
|
2989
|
-
*
|
|
3514
|
+
* Trigger the **Manage pipelines** action on an embedded
|
|
2990
3515
|
* visualization or Answer.
|
|
2991
3516
|
* Allows users to manage ThoughtSpot Sync pipelines.
|
|
2992
3517
|
*
|
|
@@ -3003,18 +3528,21 @@ export enum HostEvent {
|
|
|
3003
3528
|
*/
|
|
3004
3529
|
ManagePipelines = "manage-pipeline",
|
|
3005
3530
|
/**
|
|
3006
|
-
*
|
|
3531
|
+
* Reset search operation on the Search or Answer page.
|
|
3007
3532
|
*
|
|
3008
3533
|
* @example
|
|
3009
3534
|
* ```js
|
|
3010
3535
|
* searchEmbed.trigger(HostEvent.ResetSearch)
|
|
3011
3536
|
* ```
|
|
3537
|
+
* ```js
|
|
3538
|
+
* appEmbed.trigger(HostEvent.ResetSearch)
|
|
3539
|
+
* ```
|
|
3012
3540
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.0.1.sw
|
|
3013
3541
|
*/
|
|
3014
3542
|
ResetSearch = "resetSearch",
|
|
3015
3543
|
/**
|
|
3016
3544
|
* @hidden
|
|
3017
|
-
*
|
|
3545
|
+
* Get the currents visible and runtime filters applied on a Liveboard
|
|
3018
3546
|
* @example
|
|
3019
3547
|
* liveboardEmbed.trigger(HostEvent.GetFilters)
|
|
3020
3548
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
@@ -3022,7 +3550,7 @@ export enum HostEvent {
|
|
|
3022
3550
|
GetFilters = "getFilters",
|
|
3023
3551
|
/**
|
|
3024
3552
|
* @hidden
|
|
3025
|
-
*
|
|
3553
|
+
* Update the visible filters on the Liveboard.
|
|
3026
3554
|
* @param - filter: filter object containing column name and filter operation and values
|
|
3027
3555
|
* @example
|
|
3028
3556
|
*
|
|
@@ -3035,7 +3563,7 @@ export enum HostEvent {
|
|
|
3035
3563
|
*/
|
|
3036
3564
|
UpdateFilters = "updateFilters",
|
|
3037
3565
|
/**
|
|
3038
|
-
* Get
|
|
3566
|
+
* Get tab details for the current Liveboard.
|
|
3039
3567
|
*
|
|
3040
3568
|
* @example
|
|
3041
3569
|
* ```js
|
|
@@ -3049,9 +3577,9 @@ export enum HostEvent {
|
|
|
3049
3577
|
*/
|
|
3050
3578
|
GetTabs = "getTabs",
|
|
3051
3579
|
/**
|
|
3052
|
-
* Set the visible
|
|
3580
|
+
* Set the visible tabs on a Liveboard.
|
|
3053
3581
|
*
|
|
3054
|
-
* @param - an array of ids of
|
|
3582
|
+
* @param - an array of ids of tabs to show, the IDs not passed
|
|
3055
3583
|
* will be hidden.
|
|
3056
3584
|
* @example
|
|
3057
3585
|
* ```js
|
|
@@ -3065,8 +3593,8 @@ export enum HostEvent {
|
|
|
3065
3593
|
/**
|
|
3066
3594
|
* Set the hidden tabs on a Liveboard.
|
|
3067
3595
|
*
|
|
3068
|
-
* @param - an array of
|
|
3069
|
-
*
|
|
3596
|
+
* @param - an array of the IDs of the tabs to hide.
|
|
3597
|
+
* The IDs not passed will be shown.
|
|
3070
3598
|
* @example
|
|
3071
3599
|
* ```js
|
|
3072
3600
|
* liveboardEmbed.trigger(HostEvent.SetHiddenTabs, [
|
|
@@ -3077,9 +3605,10 @@ export enum HostEvent {
|
|
|
3077
3605
|
*/
|
|
3078
3606
|
SetHiddenTabs = "SetPinboardHiddenTabs",
|
|
3079
3607
|
/**
|
|
3080
|
-
* Updates the search query for
|
|
3608
|
+
* Updates the search query string for Natural Language Search operations.
|
|
3081
3609
|
*
|
|
3082
|
-
* @param -
|
|
3610
|
+
* @param - `queryString`: Text string in Natural Language format
|
|
3611
|
+
* @param - `executeSearch`: Boolean to execute search and update search query
|
|
3083
3612
|
* @example
|
|
3084
3613
|
* ```js
|
|
3085
3614
|
* sageEmbed.trigger(HostEvent.UpdateSageQuery, {
|
|
@@ -3087,7 +3616,7 @@ export enum HostEvent {
|
|
|
3087
3616
|
* executeSearch: true,
|
|
3088
3617
|
* })
|
|
3089
3618
|
* ```
|
|
3090
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.
|
|
3619
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
|
|
3091
3620
|
*/
|
|
3092
3621
|
UpdateSageQuery = "updateSageQuery",
|
|
3093
3622
|
/**
|
|
@@ -3100,24 +3629,36 @@ export enum HostEvent {
|
|
|
3100
3629
|
* vizId: '123', // For Liveboard Visualization.
|
|
3101
3630
|
* })
|
|
3102
3631
|
* ```
|
|
3632
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.10.0.cl
|
|
3633
|
+
*/
|
|
3634
|
+
GetAnswerSession = "getAnswerSession",
|
|
3635
|
+
/**
|
|
3636
|
+
* Trigger Ask Sage for viz
|
|
3637
|
+
*
|
|
3638
|
+
* @example
|
|
3639
|
+
* ```js
|
|
3640
|
+
* liveboardEmbed.trigger(HostEvent.AskSage,
|
|
3641
|
+
* {vizId:'730496d6-6903-4601-937e-2c691821af3c'})
|
|
3642
|
+
* ```
|
|
3643
|
+
* @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
|
|
3103
3644
|
*/
|
|
3104
|
-
|
|
3645
|
+
AskSage = "AskSage"
|
|
3105
3646
|
}
|
|
3106
3647
|
/**
|
|
3107
3648
|
* The different visual modes that the data sources panel within
|
|
3108
|
-
* search could appear in,
|
|
3649
|
+
* search could appear in, such as hidden, collapsed, or expanded.
|
|
3109
3650
|
*/
|
|
3110
3651
|
export enum DataSourceVisualMode {
|
|
3111
3652
|
/**
|
|
3112
|
-
*
|
|
3653
|
+
* The data source panel is hidden.
|
|
3113
3654
|
*/
|
|
3114
3655
|
Hidden = "hide",
|
|
3115
3656
|
/**
|
|
3116
|
-
*
|
|
3657
|
+
* The data source panel is collapsed, but the user can manually expand it.
|
|
3117
3658
|
*/
|
|
3118
3659
|
Collapsed = "collapse",
|
|
3119
3660
|
/**
|
|
3120
|
-
*
|
|
3661
|
+
* The data source panel is expanded, but the user can manually collapse it.
|
|
3121
3662
|
*/
|
|
3122
3663
|
Expanded = "expand"
|
|
3123
3664
|
}
|
|
@@ -3193,7 +3734,11 @@ export enum Param {
|
|
|
3193
3734
|
LiveboardHeaderSticky = "isLiveboardHeaderSticky",
|
|
3194
3735
|
IsProductTour = "isProductTour",
|
|
3195
3736
|
HideSearchBarTitle = "hideSearchBarTitle",
|
|
3196
|
-
HideSageAnswerHeader = "hideSageAnswerHeader"
|
|
3737
|
+
HideSageAnswerHeader = "hideSageAnswerHeader",
|
|
3738
|
+
HideSearchBar = "hideSearchBar",
|
|
3739
|
+
ClientLogLevel = "clientLogLevel",
|
|
3740
|
+
OverrideNativeConsole = "overrideConsoleLogs",
|
|
3741
|
+
enableAskSage = "enableAskSage"
|
|
3197
3742
|
}
|
|
3198
3743
|
/**
|
|
3199
3744
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -3253,9 +3798,11 @@ export enum Action {
|
|
|
3253
3798
|
SaveAsView = "saveAsView",
|
|
3254
3799
|
/**
|
|
3255
3800
|
* The **Make a copy** action on a Liveboard or Answer
|
|
3256
|
-
* page.
|
|
3257
|
-
*
|
|
3258
|
-
*
|
|
3801
|
+
* page. Creates a copy of the Liveboard.
|
|
3802
|
+
* In LiveboardEmbed, the **Make a copy** action is not available for
|
|
3803
|
+
* visualizations in the embedded Liveboard view.
|
|
3804
|
+
* In AppEmbed, the **Make a copy** action is available on both
|
|
3805
|
+
* Liveboards and visualizations.
|
|
3259
3806
|
*
|
|
3260
3807
|
* @example
|
|
3261
3808
|
* ```js
|
|
@@ -3439,7 +3986,7 @@ export enum Action {
|
|
|
3439
3986
|
*/
|
|
3440
3987
|
DownloadAsPdf = "downloadAsPdf",
|
|
3441
3988
|
/**
|
|
3442
|
-
* The **Download**
|
|
3989
|
+
* The **Download** > **CSV** menu action for tables on a Liveboard
|
|
3443
3990
|
* or Answer page.
|
|
3444
3991
|
* Downloads a visualization or Answer in the XLSX format.
|
|
3445
3992
|
*
|
|
@@ -3970,6 +4517,7 @@ export enum Action {
|
|
|
3970
4517
|
*/
|
|
3971
4518
|
RenameModalTitleDescription = "renameModalTitleDescription",
|
|
3972
4519
|
/**
|
|
4520
|
+
*
|
|
3973
4521
|
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
|
|
3974
4522
|
*/
|
|
3975
4523
|
RequestVerification = "requestVerification",
|
|
@@ -4049,7 +4597,17 @@ export enum Action {
|
|
|
4049
4597
|
* ```
|
|
4050
4598
|
* @version SDK: 1.29.0 | Thoughtspot: 9.10.0.cl
|
|
4051
4599
|
*/
|
|
4052
|
-
VerifiedLiveboard = "verifiedLiveboard"
|
|
4600
|
+
VerifiedLiveboard = "verifiedLiveboard",
|
|
4601
|
+
/**
|
|
4602
|
+
* Action ID for ask sage button
|
|
4603
|
+
*
|
|
4604
|
+
* @example
|
|
4605
|
+
* ```js
|
|
4606
|
+
* hiddenAction: [Action.AskAi]
|
|
4607
|
+
* ```
|
|
4608
|
+
* @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
|
|
4609
|
+
*/
|
|
4610
|
+
AskAi = "AskAi"
|
|
4053
4611
|
}
|
|
4054
4612
|
export interface AnswerServiceType {
|
|
4055
4613
|
getAnswer?: (offset: number, batchSize: number) => any;
|
|
@@ -4105,6 +4663,14 @@ export interface CustomActionPayload {
|
|
|
4105
4663
|
session: SessionInterface;
|
|
4106
4664
|
vizId?: string;
|
|
4107
4665
|
}
|
|
4666
|
+
export enum LogLevel {
|
|
4667
|
+
SILENT = "SILENT",
|
|
4668
|
+
ERROR = "ERROR",
|
|
4669
|
+
WARN = "WARN",
|
|
4670
|
+
INFO = "INFO",
|
|
4671
|
+
DEBUG = "DEBUG",
|
|
4672
|
+
TRACE = "TRACE"
|
|
4673
|
+
}
|
|
4108
4674
|
|
|
4109
4675
|
/**
|
|
4110
4676
|
* The list of customization css variables. These
|
|
@@ -4460,14 +5026,14 @@ export interface CustomCssVariables {
|
|
|
4460
5026
|
*/
|
|
4461
5027
|
export interface SearchOptions {
|
|
4462
5028
|
/**
|
|
4463
|
-
* The query string to
|
|
5029
|
+
* The query string to pass for Natural Language Search.
|
|
4464
5030
|
*/
|
|
4465
5031
|
searchQuery: string;
|
|
4466
5032
|
/**
|
|
4467
|
-
* Boolean to
|
|
4468
|
-
*
|
|
4469
|
-
*
|
|
4470
|
-
* the
|
|
5033
|
+
* Boolean to define if the search should be executed or not.
|
|
5034
|
+
* If it is executed, the focus is placed on the results.
|
|
5035
|
+
* If it’s not executed, the focus is placed at the end of
|
|
5036
|
+
* the token string in the search bar.
|
|
4471
5037
|
*/
|
|
4472
5038
|
executeSearch?: boolean;
|
|
4473
5039
|
}
|
|
@@ -4475,16 +5041,16 @@ export interface SearchOptions {
|
|
|
4475
5041
|
* The configuration attributes for the embedded Natural language search view. Based on
|
|
4476
5042
|
* GPT and LLM.
|
|
4477
5043
|
*
|
|
4478
|
-
* @version: SDK: 1.23.0 | ThoughtSpot: 9.
|
|
5044
|
+
* @version: SDK: 1.23.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
|
|
4479
5045
|
* @group Embed components
|
|
4480
5046
|
*/
|
|
4481
5047
|
export interface SageViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems' | 'hiddenTabs' | 'visibleTabs' | 'reorderedHomepageModules'> {
|
|
4482
5048
|
/**
|
|
4483
|
-
* If set to true, a list of
|
|
5049
|
+
* If set to true, a list of Liveboard and Answers related
|
|
4484
5050
|
* to the natural language search will be shown below the
|
|
4485
5051
|
* AI generated answer.
|
|
4486
5052
|
*
|
|
4487
|
-
* @deprecated Currently
|
|
5053
|
+
* @deprecated Currently Liveboard and Answers related
|
|
4488
5054
|
* to the natural language search will not be shown for sage
|
|
4489
5055
|
* embed
|
|
4490
5056
|
*/
|
|
@@ -4501,63 +5067,81 @@ export interface SageViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules'
|
|
|
4501
5067
|
*/
|
|
4502
5068
|
isProductTour?: boolean;
|
|
4503
5069
|
/**
|
|
4504
|
-
*
|
|
5070
|
+
* Show or hide the search bar title.
|
|
4505
5071
|
*
|
|
4506
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl
|
|
5072
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
|
|
4507
5073
|
*/
|
|
4508
5074
|
hideSearchBarTitle?: boolean;
|
|
4509
5075
|
/**
|
|
4510
|
-
*
|
|
4511
|
-
*
|
|
5076
|
+
* Show or hide the Answer header, that is, the `AI Answer` title
|
|
5077
|
+
* at the top of the Answer page.
|
|
4512
5078
|
*
|
|
4513
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.
|
|
5079
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.10.0.cl
|
|
4514
5080
|
*/
|
|
4515
5081
|
hideSageAnswerHeader?: boolean;
|
|
4516
5082
|
/**
|
|
4517
|
-
*
|
|
5083
|
+
* Disable the worksheet selection option.
|
|
4518
5084
|
*
|
|
4519
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.9.0.
|
|
5085
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
|
|
4520
5086
|
*/
|
|
4521
5087
|
disableWorksheetChange?: boolean;
|
|
4522
5088
|
/**
|
|
4523
|
-
*
|
|
5089
|
+
* Hide the worksheet selection panel.
|
|
5090
|
+
*
|
|
5091
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
|
|
4524
5092
|
*/
|
|
4525
5093
|
hideWorksheetSelector?: boolean;
|
|
4526
5094
|
/**
|
|
4527
|
-
*
|
|
4528
|
-
* default false
|
|
5095
|
+
* Show or hide autocomplete suggestions for the search query string.
|
|
4529
5096
|
*
|
|
4530
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.9.0.
|
|
5097
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
|
|
4531
5098
|
*/
|
|
4532
5099
|
hideAutocompleteSuggestions?: boolean;
|
|
4533
5100
|
/**
|
|
4534
|
-
*
|
|
5101
|
+
* Show or hide autocomplete suggestions for the search query string.
|
|
4535
5102
|
*
|
|
4536
|
-
* @deprecated
|
|
4537
|
-
*
|
|
5103
|
+
* @deprecated
|
|
5104
|
+
* Currently, the object suggestions will not be shown for Natural Language Search.
|
|
5105
|
+
* You can use {@link hideAutocompleteSuggestions} instead.
|
|
4538
5106
|
*/
|
|
4539
5107
|
showObjectSuggestions?: boolean;
|
|
4540
5108
|
/**
|
|
4541
|
-
*
|
|
4542
|
-
*
|
|
5109
|
+
* Show or hide sample questions.
|
|
5110
|
+
* The sample questions are autogenerated based on the worksheet
|
|
5111
|
+
* selected for the search operation.
|
|
4543
5112
|
*
|
|
4544
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.
|
|
5113
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
|
|
4545
5114
|
*/
|
|
4546
5115
|
hideSampleQuestions?: boolean;
|
|
4547
5116
|
/**
|
|
4548
|
-
* The data source GUID to set on load.
|
|
5117
|
+
* The data source GUID (Worksheet GUID) to set on load.
|
|
4549
5118
|
*/
|
|
4550
5119
|
dataSource?: string;
|
|
4551
5120
|
/**
|
|
4552
|
-
*
|
|
5121
|
+
* Includes the following properties:
|
|
4553
5122
|
*
|
|
4554
|
-
*
|
|
5123
|
+
* `searchQuery`: The search query string to pass in the search bar.
|
|
5124
|
+
* Supports Natural Language Search queries.
|
|
5125
|
+
*
|
|
5126
|
+
* `executeSearch`: Boolean to define if the search should be executed or not.
|
|
5127
|
+
* If it is executed, the focus is placed on the results.
|
|
5128
|
+
* If it’s not executed, the focus is placed at the end of
|
|
5129
|
+
* the token string in the search bar.
|
|
5130
|
+
*
|
|
5131
|
+
* @example
|
|
5132
|
+
* ```js
|
|
5133
|
+
* searchOptions: {
|
|
5134
|
+
* searchQuery: 'average sales by country and product type',
|
|
5135
|
+
* executeSearch: true,
|
|
5136
|
+
* }
|
|
5137
|
+
* ```
|
|
5138
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
|
|
4555
5139
|
*/
|
|
4556
5140
|
searchOptions?: SearchOptions;
|
|
4557
5141
|
}
|
|
4558
5142
|
export const HiddenActionItemByDefaultForSageEmbed: Action[];
|
|
4559
5143
|
/**
|
|
4560
|
-
* Embed ThoughtSpot LLM and GPT
|
|
5144
|
+
* Embed ThoughtSpot LLM and GPT-based Natural Language Search component.
|
|
4561
5145
|
*
|
|
4562
5146
|
* @version: SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.1-sw
|
|
4563
5147
|
* @group Embed components
|
|
@@ -4576,6 +5160,13 @@ export class SageEmbed extends V1Embed {
|
|
|
4576
5160
|
* @returns {string} query string
|
|
4577
5161
|
*/
|
|
4578
5162
|
protected getEmbedParams(): string;
|
|
5163
|
+
/**
|
|
5164
|
+
* Construct the URL of the embedded ThoughtSpot sage to be
|
|
5165
|
+
* loaded in the iframe
|
|
5166
|
+
*
|
|
5167
|
+
* @returns {string} iframe url
|
|
5168
|
+
*/
|
|
5169
|
+
getIFrameSrc(): string;
|
|
4579
5170
|
/**
|
|
4580
5171
|
* Render the embedded ThoughtSpot Sage
|
|
4581
5172
|
*
|
|
@@ -4615,8 +5206,7 @@ interface UnderlyingDataPoint {
|
|
|
4615
5206
|
* const data = await underlying.fetchData(0, 100);
|
|
4616
5207
|
* })
|
|
4617
5208
|
* ```
|
|
4618
|
-
* @version
|
|
4619
|
-
* ThoughtSpot: 9.9.0.cl / SDK: 1.25.0
|
|
5209
|
+
* @version SDK: 1.25.0| ThoughtSpot: 9.10.0.cl
|
|
4620
5210
|
* @group Events
|
|
4621
5211
|
*/
|
|
4622
5212
|
export class AnswerService {
|
|
@@ -4650,8 +5240,7 @@ export class AnswerService {
|
|
|
4650
5240
|
* const data = await underlying.fetchData(0, 100);
|
|
4651
5241
|
* })
|
|
4652
5242
|
* ```
|
|
4653
|
-
* @version
|
|
4654
|
-
* ThoughtSpot: 9.9.0.cl / SDK: 1.25.0
|
|
5243
|
+
* @version SDK: 1.25.0| ThoughtSpot: 9.10.0.cl
|
|
4655
5244
|
*/
|
|
4656
5245
|
getUnderlyingDataForPoint(outputColumnNames: string[], selectedPoints?: UnderlyingDataPoint[]): Promise<AnswerService>;
|
|
4657
5246
|
executeQuery(query: string, variables: any): Promise<any>;
|
|
@@ -4669,12 +5258,13 @@ export {};
|
|
|
4669
5258
|
export const getEmbedConfig: () => EmbedConfig;
|
|
4670
5259
|
/**
|
|
4671
5260
|
* Sets the configuration embed was initialized with.
|
|
5261
|
+
* And returns the new configuration.
|
|
4672
5262
|
*
|
|
4673
5263
|
* @param newConfig The configuration to set.
|
|
4674
5264
|
* @version SDK: 1.27.0 | ThoughtSpot: *
|
|
4675
5265
|
* @group Global methods
|
|
4676
5266
|
*/
|
|
4677
|
-
export const setEmbedConfig: (newConfig: EmbedConfig) =>
|
|
5267
|
+
export const setEmbedConfig: (newConfig: EmbedConfig) => EmbedConfig;
|
|
4678
5268
|
|
|
4679
5269
|
/**
|
|
4680
5270
|
* Copyright (c) 2022
|
|
@@ -4869,6 +5459,7 @@ export class TsEmbed {
|
|
|
4869
5459
|
* @param args
|
|
4870
5460
|
*/
|
|
4871
5461
|
render(): TsEmbed;
|
|
5462
|
+
getIframeSrc(): string;
|
|
4872
5463
|
protected handleRenderForPrerender(): void;
|
|
4873
5464
|
/**
|
|
4874
5465
|
* Creates the preRender shell
|