@thoughtspot/visual-embed-sdk 1.28.0-preRender → 1.28.1-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/package.json +3 -4
- package/cjs/src/auth.d.ts +16 -1
- package/cjs/src/auth.d.ts.map +1 -1
- package/cjs/src/auth.js +5 -1
- package/cjs/src/auth.js.map +1 -1
- package/cjs/src/auth.spec.d.ts.map +1 -1
- package/cjs/src/auth.spec.js +9 -0
- package/cjs/src/auth.spec.js.map +1 -1
- package/cjs/src/authToken.d.ts +6 -0
- package/cjs/src/authToken.d.ts.map +1 -1
- package/cjs/src/authToken.js +6 -0
- package/cjs/src/authToken.js.map +1 -1
- package/cjs/src/embed/app.d.ts +155 -6
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +3 -3
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +20 -1
- package/cjs/src/embed/app.spec.js.map +1 -1
- package/cjs/src/embed/base.d.ts.map +1 -1
- package/cjs/src/embed/base.js +2 -3
- package/cjs/src/embed/base.js.map +1 -1
- package/cjs/src/embed/embed.spec.js +0 -15
- package/cjs/src/embed/embed.spec.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts +121 -6
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +2 -2
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +21 -2
- package/cjs/src/embed/liveboard.spec.js.map +1 -1
- package/cjs/src/embed/pinboard.spec.js +21 -1
- package/cjs/src/embed/pinboard.spec.js.map +1 -1
- package/cjs/src/embed/sage.d.ts +1 -1
- package/cjs/src/embed/sage.d.ts.map +1 -1
- package/cjs/src/embed/sage.js +2 -2
- package/cjs/src/embed/sage.js.map +1 -1
- package/cjs/src/embed/search-bar.d.ts +37 -6
- package/cjs/src/embed/search-bar.d.ts.map +1 -1
- package/cjs/src/embed/search-bar.js +2 -2
- package/cjs/src/embed/search-bar.js.map +1 -1
- package/cjs/src/embed/search.d.ts +90 -1
- package/cjs/src/embed/search.d.ts.map +1 -1
- package/cjs/src/embed/search.js +2 -2
- package/cjs/src/embed/search.js.map +1 -1
- package/cjs/src/embed/search.spec.js +26 -1
- package/cjs/src/embed/search.spec.js.map +1 -1
- package/cjs/src/embed/ts-embed-trigger.spec.d.ts +2 -0
- package/cjs/src/embed/ts-embed-trigger.spec.d.ts.map +1 -0
- package/cjs/src/embed/ts-embed-trigger.spec.js +34 -0
- package/cjs/src/embed/ts-embed-trigger.spec.js.map +1 -0
- package/cjs/src/embed/ts-embed.d.ts +1 -1
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +12 -7
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +46 -17
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/index.d.ts +3 -1
- package/cjs/src/index.d.ts.map +1 -1
- package/cjs/src/index.js +5 -1
- package/cjs/src/index.js.map +1 -1
- package/cjs/src/react/index.spec.js +1 -1
- package/cjs/src/react/index.spec.js.map +1 -1
- package/cjs/src/test/test-utils.d.ts +1 -0
- package/cjs/src/test/test-utils.d.ts.map +1 -1
- package/cjs/src/test/test-utils.js +10 -1
- package/cjs/src/test/test-utils.js.map +1 -1
- package/cjs/src/tokenizedFetch.d.ts +9 -0
- package/cjs/src/tokenizedFetch.d.ts.map +1 -1
- package/cjs/src/tokenizedFetch.js +9 -0
- package/cjs/src/tokenizedFetch.js.map +1 -1
- package/cjs/src/types.d.ts +289 -43
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +103 -20
- 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 +9 -3
- package/cjs/src/utils/authService/authService.js.map +1 -1
- package/cjs/src/utils/authService/authService.spec.js +22 -0
- package/cjs/src/utils/authService/authService.spec.js.map +1 -1
- package/dist/src/auth.d.ts +16 -1
- package/dist/src/auth.d.ts.map +1 -1
- package/dist/src/auth.spec.d.ts.map +1 -1
- package/dist/src/authToken.d.ts +6 -0
- package/dist/src/authToken.d.ts.map +1 -1
- package/dist/src/embed/app.d.ts +155 -6
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/base.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +121 -6
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/sage.d.ts +1 -1
- package/dist/src/embed/sage.d.ts.map +1 -1
- package/dist/src/embed/search-bar.d.ts +37 -6
- package/dist/src/embed/search-bar.d.ts.map +1 -1
- package/dist/src/embed/search.d.ts +90 -1
- package/dist/src/embed/search.d.ts.map +1 -1
- package/dist/src/embed/ts-embed-trigger.spec.d.ts +2 -0
- package/dist/src/embed/ts-embed-trigger.spec.d.ts.map +1 -0
- package/dist/src/embed/ts-embed.d.ts +1 -1
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/index.d.ts +3 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/test/test-utils.d.ts +1 -0
- package/dist/src/test/test-utils.d.ts.map +1 -1
- package/dist/src/tokenizedFetch.d.ts +9 -0
- package/dist/src/tokenizedFetch.d.ts.map +1 -1
- package/dist/src/types.d.ts +289 -43
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/authService/authService.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +155 -43
- package/dist/tsembed-react.js +141 -42
- package/dist/tsembed.es.js +157 -47
- package/dist/tsembed.js +144 -45
- package/dist/visual-embed-sdk-react-full.d.ts +731 -66
- package/dist/visual-embed-sdk-react.d.ts +731 -66
- package/dist/visual-embed-sdk.d.ts +731 -66
- package/lib/package.json +3 -4
- package/lib/src/auth.d.ts +16 -1
- package/lib/src/auth.d.ts.map +1 -1
- package/lib/src/auth.js +5 -1
- package/lib/src/auth.js.map +1 -1
- package/lib/src/auth.spec.d.ts.map +1 -1
- package/lib/src/auth.spec.js +9 -0
- package/lib/src/auth.spec.js.map +1 -1
- package/lib/src/authToken.d.ts +6 -0
- package/lib/src/authToken.d.ts.map +1 -1
- package/lib/src/authToken.js +6 -0
- package/lib/src/authToken.js.map +1 -1
- package/lib/src/embed/app.d.ts +155 -6
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +3 -3
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +20 -1
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/base.d.ts.map +1 -1
- package/lib/src/embed/base.js +2 -3
- package/lib/src/embed/base.js.map +1 -1
- package/lib/src/embed/embed.spec.js +2 -17
- package/lib/src/embed/embed.spec.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +121 -6
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +2 -2
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +21 -2
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/embed/pinboard.spec.js +21 -1
- package/lib/src/embed/pinboard.spec.js.map +1 -1
- package/lib/src/embed/sage.d.ts +1 -1
- package/lib/src/embed/sage.d.ts.map +1 -1
- package/lib/src/embed/sage.js +2 -2
- package/lib/src/embed/sage.js.map +1 -1
- package/lib/src/embed/search-bar.d.ts +37 -6
- package/lib/src/embed/search-bar.d.ts.map +1 -1
- package/lib/src/embed/search-bar.js +2 -2
- package/lib/src/embed/search-bar.js.map +1 -1
- package/lib/src/embed/search.d.ts +90 -1
- package/lib/src/embed/search.d.ts.map +1 -1
- package/lib/src/embed/search.js +2 -2
- package/lib/src/embed/search.js.map +1 -1
- package/lib/src/embed/search.spec.js +26 -1
- package/lib/src/embed/search.spec.js.map +1 -1
- package/lib/src/embed/ts-embed-trigger.spec.d.ts +2 -0
- package/lib/src/embed/ts-embed-trigger.spec.d.ts.map +1 -0
- package/lib/src/embed/ts-embed-trigger.spec.js +32 -0
- package/lib/src/embed/ts-embed-trigger.spec.js.map +1 -0
- package/lib/src/embed/ts-embed.d.ts +1 -1
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +12 -7
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +40 -11
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/index.d.ts +3 -1
- package/lib/src/index.d.ts.map +1 -1
- package/lib/src/index.js +3 -1
- package/lib/src/index.js.map +1 -1
- package/lib/src/react/index.spec.js +1 -1
- package/lib/src/react/index.spec.js.map +1 -1
- package/lib/src/test/test-utils.d.ts +1 -0
- package/lib/src/test/test-utils.d.ts.map +1 -1
- package/lib/src/test/test-utils.js +8 -0
- package/lib/src/test/test-utils.js.map +1 -1
- package/lib/src/tokenizedFetch.d.ts +9 -0
- package/lib/src/tokenizedFetch.d.ts.map +1 -1
- package/lib/src/tokenizedFetch.js +9 -0
- package/lib/src/tokenizedFetch.js.map +1 -1
- package/lib/src/types.d.ts +289 -43
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +103 -20
- 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 +9 -3
- package/lib/src/utils/authService/authService.js.map +1 -1
- package/lib/src/utils/authService/authService.spec.js +22 -0
- package/lib/src/utils/authService/authService.spec.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +738 -66
- package/package.json +3 -4
- package/src/auth.spec.ts +10 -0
- package/src/auth.ts +21 -2
- package/src/authToken.ts +6 -0
- package/src/embed/app.spec.ts +25 -1
- package/src/embed/app.ts +163 -11
- package/src/embed/base.ts +3 -5
- package/src/embed/embed.spec.ts +0 -18
- package/src/embed/liveboard.spec.ts +25 -2
- package/src/embed/liveboard.ts +128 -9
- package/src/embed/pinboard.spec.ts +25 -1
- package/src/embed/sage.ts +2 -2
- package/src/embed/search-bar.tsx +38 -7
- package/src/embed/search.spec.ts +30 -1
- package/src/embed/search.ts +97 -4
- package/src/embed/ts-embed-trigger.spec.ts +39 -0
- package/src/embed/ts-embed.spec.ts +48 -16
- package/src/embed/ts-embed.ts +19 -12
- package/src/index.ts +4 -0
- package/src/react/index.spec.tsx +1 -0
- package/src/test/test-utils.ts +9 -0
- package/src/tokenizedFetch.ts +9 -0
- package/src/types.ts +298 -50
- package/src/utils/authService/authService.spec.ts +27 -0
- package/src/utils/authService/authService.ts +14 -13
|
@@ -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, SessionInterface, UnderlyingDataPoint, 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, uploadMixpanelEvent, MIXPANEL_EVENT, VizPoint, CustomActionPayload, };
|
|
16
|
+
export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, tokenizedFetch, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, AnswerService, SessionInterface, UnderlyingDataPoint, 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, uploadMixpanelEvent, MIXPANEL_EVENT, VizPoint, CustomActionPayload, };
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Copyright (c) 2022
|
|
@@ -68,6 +68,17 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
68
68
|
* If true, the top navigation bar within the ThoughtSpot app
|
|
69
69
|
* is displayed. By default, the navigation bar is hidden.
|
|
70
70
|
* This flag also controls the homepage left navigation bar.
|
|
71
|
+
*
|
|
72
|
+
* @default true
|
|
73
|
+
* @version SDK: 1.2.0 | Thoughtspot: 8.4.0.cl
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```js
|
|
77
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
78
|
+
* ... // other options
|
|
79
|
+
* showPrimaryNavbar:true,
|
|
80
|
+
* })
|
|
81
|
+
* ```
|
|
71
82
|
*/
|
|
72
83
|
showPrimaryNavbar?: boolean;
|
|
73
84
|
/**
|
|
@@ -76,23 +87,75 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
76
87
|
* nav-bars are visible, this flag will only hide the homepage left nav-bar.
|
|
77
88
|
* The showPrimaryNavbar flag takes precedence over the hideHomepageLeftNav.
|
|
78
89
|
*
|
|
90
|
+
* **Note**: This option does not apply to the classic homepage.
|
|
91
|
+
* To access the updated modular homepage, set
|
|
92
|
+
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
93
|
+
*
|
|
79
94
|
* @default false
|
|
80
|
-
* @version SDK: 1.
|
|
95
|
+
* @version SDK: 1.28.0 | Thoughtspot: 9.12.5.cl
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* ```js
|
|
99
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
100
|
+
* ... // other options
|
|
101
|
+
* hideHomepageLeftNav : true,
|
|
102
|
+
* })
|
|
103
|
+
* ```
|
|
81
104
|
*/
|
|
82
105
|
hideHomepageLeftNav?: boolean;
|
|
83
106
|
/**
|
|
84
107
|
* Control the visibility of the help (?) and profile buttons on the
|
|
85
108
|
* Global nav-bar. By default, these buttons are visible on the nav-bar.
|
|
109
|
+
* @default false
|
|
110
|
+
* @version SDK: 1.2.0 | Thoughtspot: 8.4.0.cl
|
|
111
|
+
*
|
|
112
|
+
* @example
|
|
113
|
+
* ```js
|
|
114
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
115
|
+
* ... // other options
|
|
116
|
+
* disableProfileAndHelp: true,
|
|
117
|
+
* })
|
|
118
|
+
* ```
|
|
86
119
|
*/
|
|
87
120
|
disableProfileAndHelp?: boolean;
|
|
88
121
|
/**
|
|
89
122
|
* Control the visibility of the application switcher button on the nav-bar.
|
|
90
123
|
* By default, the application switcher is shown.
|
|
124
|
+
*
|
|
125
|
+
* **Note**: This option does not apply to the classic homepage.
|
|
126
|
+
* To access the updated modular homepage, set
|
|
127
|
+
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
128
|
+
*
|
|
129
|
+
* @version SDK: 1.28.0 | Thoughtspot: 9.12.5.cl
|
|
130
|
+
* @default false
|
|
131
|
+
*
|
|
132
|
+
* @example
|
|
133
|
+
* ```js
|
|
134
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
135
|
+
* ... // other options
|
|
136
|
+
* hideApplicationSwitcher : true,
|
|
137
|
+
* })
|
|
138
|
+
* ```
|
|
91
139
|
*/
|
|
92
140
|
hideApplicationSwitcher?: boolean;
|
|
93
141
|
/**
|
|
94
142
|
* Control the visibility of the Org switcher button on the nav-bar.
|
|
95
143
|
* By default, the Org switcher button is shown.
|
|
144
|
+
*
|
|
145
|
+
* **Note**: This option does not apply to the classic homepage.
|
|
146
|
+
* To access the updated modular homepage, set
|
|
147
|
+
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
148
|
+
*
|
|
149
|
+
* @version SDK: 1.28.0 | Thoughtspot: 9.12.5.cl
|
|
150
|
+
* @default true
|
|
151
|
+
*
|
|
152
|
+
* @example
|
|
153
|
+
* ```js
|
|
154
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
155
|
+
* ... // other options
|
|
156
|
+
* hideOrgSwitcher : true,
|
|
157
|
+
* })
|
|
158
|
+
* ```
|
|
96
159
|
*/
|
|
97
160
|
hideOrgSwitcher?: boolean;
|
|
98
161
|
/**
|
|
@@ -104,9 +167,14 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
104
167
|
* For eg, if you want the component to open to a specific Liveboard
|
|
105
168
|
* you could set the path to `pinboard/<liveboardId>/tab/<tabId>`.
|
|
106
169
|
*
|
|
170
|
+
* @version SDK: 1.1.0 | Thoughtspot: 9.4.0.cl
|
|
171
|
+
*
|
|
107
172
|
* @example
|
|
108
|
-
* ```
|
|
109
|
-
*
|
|
173
|
+
* ```js
|
|
174
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
175
|
+
* ... // other options
|
|
176
|
+
* path:"pinboard/1234/tab/7464"
|
|
177
|
+
* })
|
|
110
178
|
* ```
|
|
111
179
|
*/
|
|
112
180
|
path?: string;
|
|
@@ -116,16 +184,48 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
116
184
|
*
|
|
117
185
|
* Use this to open to particular page in the app. To open to a specific
|
|
118
186
|
* path within the app, use the `path` attribute which is more flexible.
|
|
187
|
+
*
|
|
188
|
+
* @version SDK: 1.1.0 | Thoughtspot: 9.4.0.cl
|
|
189
|
+
*
|
|
190
|
+
* @example
|
|
191
|
+
* ```js
|
|
192
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
193
|
+
* ... // other options
|
|
194
|
+
* pageId : Page.Answers | Page.Data
|
|
195
|
+
* })
|
|
196
|
+
* ```
|
|
119
197
|
*/
|
|
120
198
|
pageId?: Page;
|
|
121
199
|
/**
|
|
122
200
|
* This puts a filter tag on the application. All metadata lists in the
|
|
123
201
|
* application, such as Liveboards and answers, would be filtered by this
|
|
124
202
|
* tag.
|
|
203
|
+
*
|
|
204
|
+
* @version SDK: 1.1.0 | Thoughtspot: 9.4.0.cl
|
|
205
|
+
* @example
|
|
206
|
+
* ```js
|
|
207
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
208
|
+
* ... // other options
|
|
209
|
+
* tag:'value',
|
|
210
|
+
* })
|
|
211
|
+
* ```
|
|
125
212
|
*/
|
|
126
213
|
tag?: string;
|
|
127
214
|
/**
|
|
128
215
|
* The array of GUIDs to be hidden
|
|
216
|
+
*
|
|
217
|
+
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
|
|
218
|
+
*
|
|
219
|
+
* @example
|
|
220
|
+
* ```js
|
|
221
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
222
|
+
* ... // other options
|
|
223
|
+
* hideObjects: [
|
|
224
|
+
* '430496d6-6903-4601-937e-2c691821af3c',
|
|
225
|
+
* 'f547ec54-2a37-4516-a222-2b06719af726'
|
|
226
|
+
* ]
|
|
227
|
+
* })
|
|
228
|
+
* ```
|
|
129
229
|
*/
|
|
130
230
|
hideObjects?: string[];
|
|
131
231
|
/**
|
|
@@ -138,8 +238,17 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
138
238
|
liveboardV2?: boolean;
|
|
139
239
|
/**
|
|
140
240
|
* If set to true, the Search Assist feature is enabled.
|
|
241
|
+
* @default true
|
|
141
242
|
*
|
|
142
243
|
* @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1-sw
|
|
244
|
+
*
|
|
245
|
+
* @example
|
|
246
|
+
* ```js
|
|
247
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
248
|
+
* ... // other options
|
|
249
|
+
* enableSearchAssist: true,
|
|
250
|
+
* })
|
|
251
|
+
* ```
|
|
143
252
|
*/
|
|
144
253
|
enableSearchAssist?: boolean;
|
|
145
254
|
/**
|
|
@@ -147,6 +256,14 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
147
256
|
* according to the height of the pages which support fullHeight mode.
|
|
148
257
|
*
|
|
149
258
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.4.0.cl, 9.4.0-sw
|
|
259
|
+
*
|
|
260
|
+
* @example
|
|
261
|
+
* ```js
|
|
262
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
263
|
+
* ... // other options
|
|
264
|
+
* fullHeight: true,
|
|
265
|
+
* })
|
|
266
|
+
* ```
|
|
150
267
|
*/
|
|
151
268
|
fullHeight?: boolean;
|
|
152
269
|
/**
|
|
@@ -162,6 +279,14 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
162
279
|
*
|
|
163
280
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
164
281
|
* @default false
|
|
282
|
+
*
|
|
283
|
+
* @example
|
|
284
|
+
* ```js
|
|
285
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
286
|
+
* ... // other options
|
|
287
|
+
* hideLiveboardHeader : true,
|
|
288
|
+
* })
|
|
289
|
+
* ```
|
|
165
290
|
*/
|
|
166
291
|
hideLiveboardHeader?: boolean;
|
|
167
292
|
/**
|
|
@@ -169,6 +294,14 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
169
294
|
*
|
|
170
295
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
171
296
|
* @default false
|
|
297
|
+
*
|
|
298
|
+
* @example
|
|
299
|
+
* ```js
|
|
300
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
301
|
+
* ... // other options
|
|
302
|
+
* showLiveboardTitle:true,
|
|
303
|
+
* })
|
|
304
|
+
* ```
|
|
172
305
|
*/
|
|
173
306
|
showLiveboardTitle?: boolean;
|
|
174
307
|
/**
|
|
@@ -176,13 +309,29 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
176
309
|
*
|
|
177
310
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
178
311
|
* @default false
|
|
312
|
+
*
|
|
313
|
+
* @example
|
|
314
|
+
* ```js
|
|
315
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
316
|
+
* ... // other options
|
|
317
|
+
* showLiveboardDescription:true,
|
|
318
|
+
* })
|
|
319
|
+
* ```
|
|
179
320
|
*/
|
|
180
321
|
showLiveboardDescription?: boolean;
|
|
181
322
|
/**
|
|
182
|
-
* Flag to control new Modular Home experience
|
|
323
|
+
* Flag to control new Modular Home experience.
|
|
183
324
|
*
|
|
184
325
|
* @default false
|
|
185
|
-
* @version SDK: 1.
|
|
326
|
+
* @version SDK: 1.28.0 | Thoughtspot: 9.12.5.cl
|
|
327
|
+
*
|
|
328
|
+
* @example
|
|
329
|
+
* ```js
|
|
330
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
331
|
+
* ... // other options
|
|
332
|
+
* modularHomeExperience : true,
|
|
333
|
+
* })
|
|
334
|
+
* ```
|
|
186
335
|
*/
|
|
187
336
|
modularHomeExperience?: boolean;
|
|
188
337
|
/**
|
|
@@ -251,7 +400,7 @@ export class AppEmbed extends V1Embed {
|
|
|
251
400
|
* @param renderOptions An object containing the page ID
|
|
252
401
|
* to be embedded.
|
|
253
402
|
*/
|
|
254
|
-
render(): AppEmbed
|
|
403
|
+
render(): Promise<AppEmbed>;
|
|
255
404
|
}
|
|
256
405
|
|
|
257
406
|
export interface executeTMLInput {
|
|
@@ -411,8 +560,22 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
411
560
|
/**
|
|
412
561
|
* If set to true, the embedded object container dynamically resizes
|
|
413
562
|
* according to the height of the Liveboard.
|
|
563
|
+
* **Note**: Using fullHeight loads all visualizations on the
|
|
564
|
+
* Liveboard simultaneously, which results in multiple warehouse
|
|
565
|
+
* queries and potentially a longer wait for the topmost
|
|
566
|
+
* visualizations to display on the screen.
|
|
567
|
+
* Setting `fullHeight` to `false` fetches visualizations
|
|
568
|
+
* incrementally as users scroll the page to view the charts and tables.
|
|
414
569
|
*
|
|
415
570
|
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1
|
|
571
|
+
*
|
|
572
|
+
* @example
|
|
573
|
+
* ```js
|
|
574
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
575
|
+
* ... // other liveboard view config
|
|
576
|
+
* fullHeight: true,
|
|
577
|
+
* });
|
|
578
|
+
* ```
|
|
416
579
|
*/
|
|
417
580
|
fullHeight?: boolean;
|
|
418
581
|
/**
|
|
@@ -422,10 +585,28 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
422
585
|
*
|
|
423
586
|
* @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
|
|
424
587
|
* @default 500
|
|
588
|
+
* @example
|
|
589
|
+
* ```js
|
|
590
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
591
|
+
* ... // other liveboard view config
|
|
592
|
+
* fullHeight: true,
|
|
593
|
+
* defaultHeight: 600,
|
|
594
|
+
* });
|
|
595
|
+
* ```
|
|
425
596
|
*/
|
|
426
597
|
defaultHeight?: number;
|
|
427
598
|
/**
|
|
428
599
|
* @Deprecated If set to true, the context menu in visualizations will be enabled.
|
|
600
|
+
*
|
|
601
|
+
* @example
|
|
602
|
+
* ```js
|
|
603
|
+
* const embed = new LiveboardEmbed('#tsEmbed', {
|
|
604
|
+
* ... // other options
|
|
605
|
+
* enableVizTransformations:true,
|
|
606
|
+
* })
|
|
607
|
+
* ```
|
|
608
|
+
*
|
|
609
|
+
* @version: SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
|
|
429
610
|
*/
|
|
430
611
|
enableVizTransformations?: boolean;
|
|
431
612
|
/**
|
|
@@ -433,6 +614,12 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
433
614
|
* Use either liveboardId or pinboardId to reference the Liveboard to embed.
|
|
434
615
|
*
|
|
435
616
|
* @version SDK: 1.3.0 | ThoughtSpot ts7.aug.cl, 7.2.1
|
|
617
|
+
* @example
|
|
618
|
+
* ```js
|
|
619
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
620
|
+
* ... // other options
|
|
621
|
+
* liveboardId:id of liveboard,
|
|
622
|
+
* })
|
|
436
623
|
*/
|
|
437
624
|
liveboardId?: string;
|
|
438
625
|
/**
|
|
@@ -443,6 +630,16 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
443
630
|
pinboardId?: string;
|
|
444
631
|
/**
|
|
445
632
|
* The visualization within the Liveboard to display.
|
|
633
|
+
*
|
|
634
|
+
* @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
|
|
635
|
+
*
|
|
636
|
+
* @example
|
|
637
|
+
* ```js
|
|
638
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
639
|
+
* ... // other options
|
|
640
|
+
* vizId:'430496d6-6903-4601-937e-2c691821af3c',
|
|
641
|
+
* })
|
|
642
|
+
* ```
|
|
446
643
|
*/
|
|
447
644
|
vizId?: string;
|
|
448
645
|
/**
|
|
@@ -450,6 +647,13 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
450
647
|
* Liveboard page will be read-only (no X buttons)
|
|
451
648
|
*
|
|
452
649
|
* @version SDK: 1.3.0 | ThoughtSpot ts7.aug.cl, 7.2.1.sw
|
|
650
|
+
* @example
|
|
651
|
+
* ```js
|
|
652
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
653
|
+
* ... // other options
|
|
654
|
+
* preventLiveboardFilterRemoval:true,
|
|
655
|
+
* })
|
|
656
|
+
* ```
|
|
453
657
|
*/
|
|
454
658
|
preventLiveboardFilterRemoval?: boolean;
|
|
455
659
|
/**
|
|
@@ -458,6 +662,16 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
458
662
|
* event.
|
|
459
663
|
*
|
|
460
664
|
* @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
|
|
665
|
+
*
|
|
666
|
+
* @example
|
|
667
|
+
* ```js
|
|
668
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
669
|
+
* ... // other options
|
|
670
|
+
* visibleVizs: [
|
|
671
|
+
* '430496d6-6903-4601-937e-2c691821af3c',
|
|
672
|
+
* 'f547ec54-2a37-4516-a222-2b06719af726'
|
|
673
|
+
* ]
|
|
674
|
+
* })
|
|
461
675
|
*/
|
|
462
676
|
visibleVizs?: string[];
|
|
463
677
|
/**
|
|
@@ -471,12 +685,26 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
471
685
|
* new Liveboard experience mode.
|
|
472
686
|
*
|
|
473
687
|
* @version SDK: 1.14.0 | ThoughtSpot: 8.6.0.cl, 8.8.1-sw
|
|
688
|
+
* @example
|
|
689
|
+
* ```js
|
|
690
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
691
|
+
* ... // other options
|
|
692
|
+
* liveboardV2:true,
|
|
693
|
+
* })
|
|
694
|
+
* ```
|
|
474
695
|
*/
|
|
475
696
|
liveboardV2?: boolean;
|
|
476
697
|
/**
|
|
477
698
|
* Set a Liveboard tab as an active tab.
|
|
478
699
|
* Specify the tab ID.
|
|
479
700
|
*
|
|
701
|
+
* @example
|
|
702
|
+
* ```js
|
|
703
|
+
* const embed = new LiveboardEmbed('#tsEmbed', {
|
|
704
|
+
* ... // other options
|
|
705
|
+
* activeTabId:'id-1234',
|
|
706
|
+
* })
|
|
707
|
+
* ```
|
|
480
708
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
|
|
481
709
|
*/
|
|
482
710
|
activeTabId?: string;
|
|
@@ -484,6 +712,14 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
484
712
|
* Show or hide the tab panel of the embedded Liveboard.
|
|
485
713
|
*
|
|
486
714
|
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl, 9.8.0.sw
|
|
715
|
+
*
|
|
716
|
+
* @example
|
|
717
|
+
* ```js
|
|
718
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
719
|
+
* ... // other options
|
|
720
|
+
* hideTabPanel:true,
|
|
721
|
+
* })
|
|
722
|
+
* ```
|
|
487
723
|
*/
|
|
488
724
|
hideTabPanel?: boolean;
|
|
489
725
|
/**
|
|
@@ -491,20 +727,41 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
491
727
|
*
|
|
492
728
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
493
729
|
* @default false
|
|
730
|
+
* @example
|
|
731
|
+
* ```js
|
|
732
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
733
|
+
* ... // other liveboard view config
|
|
734
|
+
* hideLiveboardHeader:true,
|
|
735
|
+
* });
|
|
736
|
+
* ```
|
|
494
737
|
*/
|
|
495
738
|
hideLiveboardHeader?: boolean;
|
|
496
739
|
/**
|
|
497
740
|
* Show or hide the Liveboard title.
|
|
498
|
-
*
|
|
499
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
500
741
|
* @default false
|
|
742
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
743
|
+
*
|
|
744
|
+
* @example
|
|
745
|
+
* ```js
|
|
746
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
747
|
+
* ... // other options
|
|
748
|
+
* showLiveboardTitle:true,
|
|
749
|
+
* })
|
|
750
|
+
* ```
|
|
501
751
|
*/
|
|
502
752
|
showLiveboardTitle?: boolean;
|
|
503
753
|
/**
|
|
504
754
|
* Show or hide the Liveboard description.
|
|
505
|
-
*
|
|
506
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
507
755
|
* @default false
|
|
756
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
757
|
+
*
|
|
758
|
+
* @example
|
|
759
|
+
* ```js
|
|
760
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
761
|
+
* ... // other options
|
|
762
|
+
* showLiveboardDescription:true,
|
|
763
|
+
* })
|
|
764
|
+
* ```
|
|
508
765
|
*/
|
|
509
766
|
showLiveboardDescription?: boolean;
|
|
510
767
|
/**
|
|
@@ -525,8 +782,15 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
525
782
|
/**
|
|
526
783
|
* enable or disable ask sage
|
|
527
784
|
*
|
|
528
|
-
* @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
|
|
529
785
|
* @default false
|
|
786
|
+
* @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
|
|
787
|
+
* @example
|
|
788
|
+
* ```js
|
|
789
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
790
|
+
* ... // other options
|
|
791
|
+
* enableAskSage:true,
|
|
792
|
+
* })
|
|
793
|
+
* ```
|
|
530
794
|
*/
|
|
531
795
|
enableAskSage?: boolean;
|
|
532
796
|
}
|
|
@@ -569,7 +833,7 @@ export class LiveboardEmbed extends V1Embed {
|
|
|
569
833
|
* @param renderOptions An object specifying the Liveboard ID,
|
|
570
834
|
* visualization ID and the runtime filters.
|
|
571
835
|
*/
|
|
572
|
-
render(): LiveboardEmbed
|
|
836
|
+
render(): Promise<LiveboardEmbed>;
|
|
573
837
|
navigateToLiveboard(liveboardId: string, vizId?: string, activeTabId?: string): void;
|
|
574
838
|
}
|
|
575
839
|
/**
|
|
@@ -612,27 +876,74 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
|
|
|
612
876
|
/**
|
|
613
877
|
* If set to true, the data sources panel is collapsed on load,
|
|
614
878
|
* but can be expanded manually.
|
|
879
|
+
*
|
|
880
|
+
* @version: SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
|
|
881
|
+
*
|
|
882
|
+
* @example
|
|
883
|
+
* ```js
|
|
884
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
885
|
+
* ... // other options
|
|
886
|
+
* collapseDataSources:true,
|
|
887
|
+
* })
|
|
888
|
+
* ```
|
|
615
889
|
*/
|
|
616
890
|
collapseDataSources?: boolean;
|
|
617
891
|
/**
|
|
618
892
|
* Show or hide the data sources panel.
|
|
893
|
+
*
|
|
894
|
+
* @version: SDK: 1.2.0 | ThoughtSpot: 9.1.0.sw
|
|
895
|
+
*
|
|
896
|
+
* @example
|
|
897
|
+
* ```js
|
|
898
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
899
|
+
* ... // other options
|
|
900
|
+
* hideDataSources:true,
|
|
901
|
+
* })
|
|
902
|
+
* ```
|
|
619
903
|
*/
|
|
620
904
|
hideDataSources?: boolean;
|
|
621
905
|
/**
|
|
622
906
|
* Show or hide the charts and tables in search answers.
|
|
623
907
|
* This attribute can be used to create a custom visualization
|
|
624
908
|
* using raw answer data.
|
|
909
|
+
*
|
|
910
|
+
* @version: SDK: 1.2.0 | ThoughtSpot: 9.1.0.sw
|
|
911
|
+
*
|
|
912
|
+
* @example
|
|
913
|
+
* ```js
|
|
914
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
915
|
+
* ... // other options
|
|
916
|
+
* hideResults:true,
|
|
917
|
+
* })
|
|
918
|
+
* ```
|
|
625
919
|
*/
|
|
626
920
|
hideResults?: boolean;
|
|
627
921
|
/**
|
|
628
922
|
* If set to true, the Search Assist feature is enabled.
|
|
629
923
|
*
|
|
630
924
|
* @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1-sw
|
|
925
|
+
*
|
|
926
|
+
* @example
|
|
927
|
+
* ```js
|
|
928
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
929
|
+
* ... // other options
|
|
930
|
+
* enableSearchAssist:true,
|
|
931
|
+
* })
|
|
932
|
+
* ```
|
|
631
933
|
*/
|
|
632
934
|
enableSearchAssist?: boolean;
|
|
633
935
|
/**
|
|
634
936
|
* If set to true, the tabular view is set as the default
|
|
635
937
|
* format for presenting search data.
|
|
938
|
+
*
|
|
939
|
+
* @version: SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
|
|
940
|
+
*
|
|
941
|
+
* @example
|
|
942
|
+
* ```js
|
|
943
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
944
|
+
* ... // other options
|
|
945
|
+
* forceTable:true,
|
|
946
|
+
* })
|
|
636
947
|
*/
|
|
637
948
|
forceTable?: boolean;
|
|
638
949
|
/**
|
|
@@ -640,12 +951,28 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
|
|
|
640
951
|
* Only a single data source is supported currently.
|
|
641
952
|
*
|
|
642
953
|
* @deprecated Use `dataSource` instead.
|
|
954
|
+
*
|
|
955
|
+
* @example
|
|
956
|
+
* ```js
|
|
957
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
958
|
+
* ... // other options
|
|
959
|
+
* dataSources:['id-234','id-456'],
|
|
960
|
+
* })
|
|
961
|
+
* ```
|
|
643
962
|
*/
|
|
644
963
|
dataSources?: string[];
|
|
645
964
|
/**
|
|
646
965
|
* The array of data source GUIDs to set on load.
|
|
647
966
|
*
|
|
648
967
|
* @version: SDK: 1.19.0
|
|
968
|
+
*
|
|
969
|
+
* @example
|
|
970
|
+
* ```js
|
|
971
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
972
|
+
* ... // other options
|
|
973
|
+
* dataSource:'id-234',
|
|
974
|
+
* })
|
|
975
|
+
* ```
|
|
649
976
|
*/
|
|
650
977
|
dataSource?: string;
|
|
651
978
|
/**
|
|
@@ -678,6 +1005,16 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
|
|
|
678
1005
|
searchOptions?: SearchOptions;
|
|
679
1006
|
/**
|
|
680
1007
|
* The GUID of a saved answer to load initially.
|
|
1008
|
+
*
|
|
1009
|
+
* @version: SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
|
|
1010
|
+
*
|
|
1011
|
+
* @example
|
|
1012
|
+
* ```js
|
|
1013
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
1014
|
+
* ... // other options
|
|
1015
|
+
* answerId:'sed-1234',
|
|
1016
|
+
* })
|
|
1017
|
+
* ```
|
|
681
1018
|
*/
|
|
682
1019
|
answerId?: string;
|
|
683
1020
|
/**
|
|
@@ -685,6 +1022,14 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
|
|
|
685
1022
|
* The chart/table should still be visible.
|
|
686
1023
|
*
|
|
687
1024
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
|
|
1025
|
+
*
|
|
1026
|
+
* @example
|
|
1027
|
+
* ```js
|
|
1028
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
1029
|
+
* ... // other options
|
|
1030
|
+
* hideSearchBar:true,
|
|
1031
|
+
* })
|
|
1032
|
+
* ```
|
|
688
1033
|
*/
|
|
689
1034
|
hideSearchBar?: boolean;
|
|
690
1035
|
/**
|
|
@@ -692,6 +1037,14 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
|
|
|
692
1037
|
*
|
|
693
1038
|
* @default false
|
|
694
1039
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
1040
|
+
*
|
|
1041
|
+
* @example
|
|
1042
|
+
* ```js
|
|
1043
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
1044
|
+
* ... // other options
|
|
1045
|
+
* dataPanelV2:false,
|
|
1046
|
+
* })
|
|
1047
|
+
* ```
|
|
695
1048
|
*/
|
|
696
1049
|
dataPanelV2?: boolean;
|
|
697
1050
|
/**
|
|
@@ -725,7 +1078,7 @@ export class SearchEmbed extends TsEmbed {
|
|
|
725
1078
|
/**
|
|
726
1079
|
* Render the embedded ThoughtSpot search
|
|
727
1080
|
*/
|
|
728
|
-
render(): SearchEmbed
|
|
1081
|
+
render(): Promise<SearchEmbed>;
|
|
729
1082
|
}
|
|
730
1083
|
|
|
731
1084
|
/**
|
|
@@ -737,18 +1090,44 @@ export interface SearchBarViewConfig extends Omit<ViewConfig, 'runtimeFilters' |
|
|
|
737
1090
|
* Only a single data source is supported currently.
|
|
738
1091
|
*
|
|
739
1092
|
* @deprecated Use `dataSource` instead
|
|
1093
|
+
*
|
|
1094
|
+
* @version: SDK: 1.1.0 | ThoughtSpot: 8.1.1-sw
|
|
1095
|
+
*
|
|
1096
|
+
* @example
|
|
1097
|
+
* ```js
|
|
1098
|
+
* const embed = new SearchBarEmbed('#tsEmbed', {
|
|
1099
|
+
* ... // other options
|
|
1100
|
+
* dataSources:['id-2345','id-2345'],
|
|
1101
|
+
* })
|
|
1102
|
+
* ```
|
|
740
1103
|
*/
|
|
741
1104
|
dataSources?: string[];
|
|
742
1105
|
/**
|
|
743
|
-
*
|
|
1106
|
+
* Pass the ID of the source to be selected.
|
|
744
1107
|
*
|
|
745
1108
|
* @version: SDK: 1.19.0, ThoughtSpot 9.0.0.cl, 9.0.1.sw
|
|
1109
|
+
*
|
|
1110
|
+
* @example
|
|
1111
|
+
* ```js
|
|
1112
|
+
* const embed = new SearchBarEmbed('#tsEmbed', {
|
|
1113
|
+
* ... // other options
|
|
1114
|
+
* dataSource:'id-2345',
|
|
1115
|
+
* })
|
|
1116
|
+
* ```
|
|
746
1117
|
*/
|
|
747
1118
|
dataSource?: string;
|
|
748
1119
|
/**
|
|
749
1120
|
* Boolean to define if the last selected data source should be used
|
|
750
1121
|
*
|
|
751
1122
|
* @version: SDK: 1.24.0, ThoughtSpot 9.5.0.cl, 9.5.0.sw
|
|
1123
|
+
*
|
|
1124
|
+
* @example
|
|
1125
|
+
* ```js
|
|
1126
|
+
* const embed = new SearchBarEmbed('#tsEmbed', {
|
|
1127
|
+
* ... // other options
|
|
1128
|
+
* useLastSelectedSources:false,
|
|
1129
|
+
* })
|
|
1130
|
+
* ```
|
|
752
1131
|
*/
|
|
753
1132
|
useLastSelectedSources?: boolean;
|
|
754
1133
|
/**
|
|
@@ -762,12 +1141,17 @@ export interface SearchBarViewConfig extends Omit<ViewConfig, 'runtimeFilters' |
|
|
|
762
1141
|
* If it’s not executed, the focus is placed at the end of
|
|
763
1142
|
* the token string in the search bar.
|
|
764
1143
|
*
|
|
1144
|
+
* @version: SDK: 1.2.0 | ThoughtSpot: 9.4.0.sw
|
|
1145
|
+
*
|
|
765
1146
|
* @example
|
|
766
1147
|
* ```js
|
|
767
|
-
*
|
|
768
|
-
*
|
|
769
|
-
*
|
|
770
|
-
*
|
|
1148
|
+
* const embed = new SearchBarEmbed('#tsEmbed', {
|
|
1149
|
+
* ... // other options
|
|
1150
|
+
* searchOptions: {
|
|
1151
|
+
* searchTokenString: '[quantity purchased] [region]',
|
|
1152
|
+
* executeSearch: true,
|
|
1153
|
+
* }
|
|
1154
|
+
* })
|
|
771
1155
|
* ```
|
|
772
1156
|
*/
|
|
773
1157
|
searchOptions?: SearchOptions;
|
|
@@ -788,7 +1172,7 @@ export class SearchBarEmbed extends TsEmbed {
|
|
|
788
1172
|
/**
|
|
789
1173
|
* Render the embedded ThoughtSpot search
|
|
790
1174
|
*/
|
|
791
|
-
render(): SearchBarEmbed
|
|
1175
|
+
render(): Promise<SearchBarEmbed>;
|
|
792
1176
|
}
|
|
793
1177
|
|
|
794
1178
|
export let loggedInStatus: boolean;
|
|
@@ -873,7 +1257,22 @@ export interface AuthEventEmitter {
|
|
|
873
1257
|
*
|
|
874
1258
|
* @param {@link AuthEvent}
|
|
875
1259
|
*/
|
|
876
|
-
emit(event: AuthEvent):
|
|
1260
|
+
emit(event: AuthEvent, ...args: any[]): boolean;
|
|
1261
|
+
/**
|
|
1262
|
+
* Remove listener from the emitter returned from init.
|
|
1263
|
+
*
|
|
1264
|
+
* @param event
|
|
1265
|
+
* @param listener
|
|
1266
|
+
* @param context
|
|
1267
|
+
* @param once
|
|
1268
|
+
*/
|
|
1269
|
+
off(event: AuthStatus, listener: (...args: any[]) => void, context: any, once: boolean): this;
|
|
1270
|
+
/**
|
|
1271
|
+
* Remove all the event listeners
|
|
1272
|
+
*
|
|
1273
|
+
* @param event
|
|
1274
|
+
*/
|
|
1275
|
+
removeAllListeners(event: AuthStatus): this;
|
|
877
1276
|
}
|
|
878
1277
|
/**
|
|
879
1278
|
* Events which can be triggered on the emitter returned from {@link init}.
|
|
@@ -1138,16 +1537,39 @@ export enum AuthType {
|
|
|
1138
1537
|
*/
|
|
1139
1538
|
Basic = "Basic"
|
|
1140
1539
|
}
|
|
1540
|
+
/**
|
|
1541
|
+
*
|
|
1542
|
+
* This option does not apply to the classic homepage experience.
|
|
1543
|
+
* To access the updated modular homepage,
|
|
1544
|
+
* set `modularHomeExperience` to `true`
|
|
1545
|
+
* (available as Early Access feature in 9.12.5.cl).
|
|
1546
|
+
*
|
|
1547
|
+
*/
|
|
1141
1548
|
export enum HomeLeftNavItem {
|
|
1142
|
-
|
|
1549
|
+
/**
|
|
1550
|
+
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
1551
|
+
*/
|
|
1552
|
+
SearchData = "search-data",
|
|
1553
|
+
/**
|
|
1554
|
+
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
1555
|
+
*/
|
|
1143
1556
|
Home = "insights-home",
|
|
1557
|
+
/**
|
|
1558
|
+
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
1559
|
+
*/
|
|
1144
1560
|
Liveboards = "liveboards",
|
|
1561
|
+
/**
|
|
1562
|
+
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
1563
|
+
*/
|
|
1145
1564
|
Answers = "answers",
|
|
1565
|
+
/**
|
|
1566
|
+
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
1567
|
+
*/
|
|
1146
1568
|
MonitorSubscription = "monitor-alerts",
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1569
|
+
/**
|
|
1570
|
+
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
1571
|
+
*/
|
|
1572
|
+
SpotIQAnalysis = "spotiq-analysis"
|
|
1151
1573
|
}
|
|
1152
1574
|
export type DOMSelector = string | HTMLElement;
|
|
1153
1575
|
/**
|
|
@@ -1203,6 +1625,8 @@ export interface CustomStyles {
|
|
|
1203
1625
|
/**
|
|
1204
1626
|
* Configuration to define the customization on the Embedded
|
|
1205
1627
|
* Thoughtspot components.
|
|
1628
|
+
* You can customize styles, text strings, and icons.
|
|
1629
|
+
* For more information, see https://developers.thoughtspot.com/docs/custom-css.
|
|
1206
1630
|
*
|
|
1207
1631
|
* @example
|
|
1208
1632
|
* ```js
|
|
@@ -1217,7 +1641,12 @@ export interface CustomStyles {
|
|
|
1217
1641
|
* },
|
|
1218
1642
|
* content: {
|
|
1219
1643
|
* strings: {
|
|
1220
|
-
* 'LIVEBOARDS': 'Dashboards'
|
|
1644
|
+
* 'LIVEBOARDS': 'Dashboards',
|
|
1645
|
+
* 'ANSWERS': 'Visualizations',
|
|
1646
|
+
* 'Edit': 'Modify',
|
|
1647
|
+
* 'Show underlying data': 'Show source data',
|
|
1648
|
+
* 'SpotIQ': 'Insights',
|
|
1649
|
+
* 'Monitor': 'Alerts',
|
|
1221
1650
|
* }
|
|
1222
1651
|
* },
|
|
1223
1652
|
* iconSpriteUrl: 'https://my-custom-icon-sprite.svg'
|
|
@@ -1249,12 +1678,6 @@ export interface EmbedConfig {
|
|
|
1249
1678
|
* The ThoughtSpot cluster hostname or IP address.
|
|
1250
1679
|
*/
|
|
1251
1680
|
thoughtSpotHost: string;
|
|
1252
|
-
/**
|
|
1253
|
-
* If true, all the iframe links will have /v2 added automatically.
|
|
1254
|
-
* If false, all the iframe links will have /v1 added automatically.
|
|
1255
|
-
* If undefined, nothing will be added
|
|
1256
|
-
*/
|
|
1257
|
-
enableReactShell?: boolean | undefined;
|
|
1258
1681
|
/**
|
|
1259
1682
|
* The authentication mechanism to use.
|
|
1260
1683
|
*/
|
|
@@ -1499,6 +1922,12 @@ export interface EmbedConfig {
|
|
|
1499
1922
|
* @version SDK: 1.26.7 | ThoughtSpot: 9.10.0.cl
|
|
1500
1923
|
*/
|
|
1501
1924
|
logLevel?: LogLevel;
|
|
1925
|
+
/**
|
|
1926
|
+
* Disables the Mixpanel tracking from the SDK.
|
|
1927
|
+
*
|
|
1928
|
+
* @version SDK: 1.27.9
|
|
1929
|
+
*/
|
|
1930
|
+
disableSDKTracking?: boolean;
|
|
1502
1931
|
}
|
|
1503
1932
|
export interface LayoutConfig {
|
|
1504
1933
|
}
|
|
@@ -1537,8 +1966,21 @@ export interface ViewConfig {
|
|
|
1537
1966
|
*/
|
|
1538
1967
|
layoutConfig?: LayoutConfig;
|
|
1539
1968
|
/**
|
|
1540
|
-
* The
|
|
1969
|
+
* The width and height dimensions to render an embedded
|
|
1541
1970
|
* object inside your app. Specify the values in pixels or percentage.
|
|
1971
|
+
*
|
|
1972
|
+
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1
|
|
1973
|
+
*
|
|
1974
|
+
* @example
|
|
1975
|
+
* ```js
|
|
1976
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
1977
|
+
* ... // other liveboard view config
|
|
1978
|
+
* frameParams: {
|
|
1979
|
+
* width: '500px' | '50%',
|
|
1980
|
+
* height: '400px' | '60%',
|
|
1981
|
+
* },
|
|
1982
|
+
* });
|
|
1983
|
+
* ```
|
|
1542
1984
|
*/
|
|
1543
1985
|
frameParams?: FrameParams;
|
|
1544
1986
|
/**
|
|
@@ -1555,6 +1997,7 @@ export interface ViewConfig {
|
|
|
1555
1997
|
* for the user.
|
|
1556
1998
|
* Use this to disable actions.
|
|
1557
1999
|
*
|
|
2000
|
+
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
1558
2001
|
* @example
|
|
1559
2002
|
* ```js
|
|
1560
2003
|
* const embed = new LiveboardEmbed('#embed', {
|
|
@@ -1566,6 +2009,15 @@ export interface ViewConfig {
|
|
|
1566
2009
|
disabledActions?: Action[];
|
|
1567
2010
|
/**
|
|
1568
2011
|
* The tooltip to display for disabled actions.
|
|
2012
|
+
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
2013
|
+
* @example
|
|
2014
|
+
* ```js
|
|
2015
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
2016
|
+
* ... // other liveboard view config
|
|
2017
|
+
* disabledActions: [Action.Download, Action.Save]
|
|
2018
|
+
* disabledActionReason: "Reason for disabling",
|
|
2019
|
+
* });
|
|
2020
|
+
* ```
|
|
1569
2021
|
*/
|
|
1570
2022
|
disabledActionReason?: string;
|
|
1571
2023
|
/**
|
|
@@ -1573,6 +2025,8 @@ export interface ViewConfig {
|
|
|
1573
2025
|
* This actions will be hidden from the user.
|
|
1574
2026
|
* Use this to hide an action.
|
|
1575
2027
|
*
|
|
2028
|
+
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
2029
|
+
*
|
|
1576
2030
|
* @example
|
|
1577
2031
|
* ```js
|
|
1578
2032
|
* const embed = new LiveboardEmbed('#embed', {
|
|
@@ -1593,17 +2047,49 @@ export interface ViewConfig {
|
|
|
1593
2047
|
*
|
|
1594
2048
|
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
1595
2049
|
* @important
|
|
2050
|
+
*
|
|
2051
|
+
* @example
|
|
2052
|
+
* ```js
|
|
2053
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
2054
|
+
* ... // other liveboard view config
|
|
2055
|
+
* visibleActions: [Action.Download, Action.Export]
|
|
2056
|
+
* });
|
|
2057
|
+
* ```
|
|
1596
2058
|
*/
|
|
1597
2059
|
visibleActions?: Action[];
|
|
1598
2060
|
/**
|
|
1599
2061
|
* Show alert messages and toast messages in the embedded view.
|
|
1600
2062
|
*
|
|
1601
2063
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2064
|
+
*
|
|
2065
|
+
* @example
|
|
2066
|
+
* ```js
|
|
2067
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2068
|
+
* ... // other options
|
|
2069
|
+
* showAlerts:true,
|
|
2070
|
+
* })
|
|
2071
|
+
* ```
|
|
1602
2072
|
*/
|
|
1603
2073
|
showAlerts?: boolean;
|
|
1604
2074
|
/**
|
|
1605
2075
|
* The list of runtime filters to apply to a search answer,
|
|
1606
2076
|
* visualization, or Liveboard.
|
|
2077
|
+
*
|
|
2078
|
+
* @version SDK: 1.9.4 | ThoughtSpot 8.1.0.cl, 8.4.1.sw
|
|
2079
|
+
*
|
|
2080
|
+
* @example
|
|
2081
|
+
* ```js
|
|
2082
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2083
|
+
* ... // other options
|
|
2084
|
+
* runtimeFilters: [
|
|
2085
|
+
* {
|
|
2086
|
+
* columnName: 'value',
|
|
2087
|
+
* operator: RuntimeFilterOp.EQ,
|
|
2088
|
+
* values: ['string' | 123 | true],
|
|
2089
|
+
* },
|
|
2090
|
+
* ],
|
|
2091
|
+
* })
|
|
2092
|
+
* ```
|
|
1607
2093
|
*/
|
|
1608
2094
|
runtimeFilters?: RuntimeFilter[];
|
|
1609
2095
|
/**
|
|
@@ -1611,12 +2097,32 @@ export interface ViewConfig {
|
|
|
1611
2097
|
* visualization, or Liveboard.
|
|
1612
2098
|
*
|
|
1613
2099
|
* @version SDK : 1.25.0 | Thoughtspot: 9.2.0.cl, 9.5.0.sw
|
|
2100
|
+
*
|
|
2101
|
+
* @example
|
|
2102
|
+
* ```js
|
|
2103
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2104
|
+
* ... // other options
|
|
2105
|
+
* runtimeParameters: [
|
|
2106
|
+
* {
|
|
2107
|
+
* name: 'value',
|
|
2108
|
+
* value: 'string' | 123 | true,
|
|
2109
|
+
* },
|
|
2110
|
+
* ],
|
|
2111
|
+
* })
|
|
2112
|
+
* ```
|
|
1614
2113
|
*/
|
|
1615
2114
|
runtimeParameters?: RuntimeParameter[];
|
|
1616
2115
|
/**
|
|
1617
2116
|
* The locale/language to use for the embedded view.
|
|
1618
2117
|
*
|
|
1619
2118
|
* @version SDK: 1.9.4 | ThoughtSpot 8.1.0.cl, 8.4.1.sw
|
|
2119
|
+
* @example
|
|
2120
|
+
* ```js
|
|
2121
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2122
|
+
* ... // other options
|
|
2123
|
+
* locale:'en',
|
|
2124
|
+
* })
|
|
2125
|
+
* ```
|
|
1620
2126
|
*/
|
|
1621
2127
|
locale?: string;
|
|
1622
2128
|
/**
|
|
@@ -1626,7 +2132,16 @@ export interface ViewConfig {
|
|
|
1626
2132
|
* Warning: This option is for advanced use only and is used internally
|
|
1627
2133
|
* to control embed behavior in non-regular ways. We do not publish the
|
|
1628
2134
|
* list of supported keys and values associated with each.
|
|
1629
|
-
*
|
|
2135
|
+
* @example
|
|
2136
|
+
* ```js
|
|
2137
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
2138
|
+
* ... // other liveboard view config
|
|
2139
|
+
* additionalFlags: {
|
|
2140
|
+
* flag1: 'value1',
|
|
2141
|
+
* flag2: 'value2'
|
|
2142
|
+
* }
|
|
2143
|
+
* });
|
|
2144
|
+
* ```
|
|
1630
2145
|
* @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
|
|
1631
2146
|
*/
|
|
1632
2147
|
additionalFlags?: {
|
|
@@ -1643,18 +2158,42 @@ export interface ViewConfig {
|
|
|
1643
2158
|
/**
|
|
1644
2159
|
* Insert as a sibling of the target container, instead of appending to a
|
|
1645
2160
|
* child inside it.
|
|
2161
|
+
*
|
|
2162
|
+
* @version SDK: 1.2.0 | Thoughtspot: 9.0.0.cl, 9.0.0.sw
|
|
2163
|
+
*
|
|
2164
|
+
* @example
|
|
2165
|
+
* ```js
|
|
2166
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2167
|
+
* ... // other options
|
|
2168
|
+
* insertAsSibling:true,
|
|
2169
|
+
* })
|
|
2170
|
+
* ```
|
|
1646
2171
|
*/
|
|
1647
2172
|
insertAsSibling?: boolean;
|
|
1648
2173
|
/**
|
|
1649
2174
|
* flag to set ContextMenu Trigger to either left or right click.
|
|
1650
2175
|
*
|
|
2176
|
+
* @example
|
|
2177
|
+
* ```js
|
|
2178
|
+
* const embed = new LiveboardEmbed('#tsEmbed', {
|
|
2179
|
+
* ... // other options
|
|
2180
|
+
* contextMenuTrigger:ContextMenuTriggerOptions.LEFT_CLICK || RIGHT_CLICK,
|
|
2181
|
+
* })
|
|
2182
|
+
* ```
|
|
1651
2183
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
1652
2184
|
*/
|
|
1653
2185
|
contextMenuTrigger?: ContextMenuTriggerOptions;
|
|
1654
2186
|
/**
|
|
1655
|
-
*
|
|
2187
|
+
* Flag to override openNew tab context menu link
|
|
1656
2188
|
*
|
|
1657
2189
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
2190
|
+
* @example
|
|
2191
|
+
* ```js
|
|
2192
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2193
|
+
* ... // other options
|
|
2194
|
+
* linkOverride:false,
|
|
2195
|
+
* })
|
|
2196
|
+
* ```
|
|
1658
2197
|
*/
|
|
1659
2198
|
linkOverride?: boolean;
|
|
1660
2199
|
/**
|
|
@@ -1676,9 +2215,14 @@ export interface ViewConfig {
|
|
|
1676
2215
|
usePrerenderedIfAvailable?: boolean;
|
|
1677
2216
|
/**
|
|
1678
2217
|
* Boolean to exclude runtimeFilters in the URL
|
|
2218
|
+
* By default it is true, this flag removes runtime filters from the URL
|
|
2219
|
+
* when set to false, runtime filters will be included in the URL.
|
|
2220
|
+
*
|
|
2221
|
+
* Irrespective of this flag, runtime filters ( if passed ) will be applied to the
|
|
2222
|
+
* embedded view.
|
|
1679
2223
|
*
|
|
1680
2224
|
* @default false
|
|
1681
|
-
* @
|
|
2225
|
+
* @version SDK: 1.24.0 | ThoughtSpot: 9.5.0.cl
|
|
1682
2226
|
*/
|
|
1683
2227
|
excludeRuntimeFiltersfromURL?: boolean;
|
|
1684
2228
|
/**
|
|
@@ -1700,16 +2244,40 @@ export interface ViewConfig {
|
|
|
1700
2244
|
hiddenTabs?: string[];
|
|
1701
2245
|
/**
|
|
1702
2246
|
* Hide the home page modules
|
|
1703
|
-
*
|
|
2247
|
+
* For example: hiddenHomepageModules = [HomepageModule.MyLibrary]
|
|
2248
|
+
*
|
|
2249
|
+
* **Note**: This option does not apply to the classic homepage.
|
|
2250
|
+
* To access the updated modular homepage, set
|
|
2251
|
+
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
2252
|
+
*
|
|
2253
|
+
* @version SDK: 1.28.0 | Thoughtspot: 9.12.5.cl
|
|
2254
|
+
* @example
|
|
2255
|
+
* ```js
|
|
2256
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
2257
|
+
* ... // other options
|
|
2258
|
+
* hiddenHomepageModules : [HomepageModule.Favorite,HomepageModule.Learning],
|
|
2259
|
+
* })
|
|
2260
|
+
* ```
|
|
1704
2261
|
*
|
|
1705
|
-
* @version SDK: 1.27.0 | Thoughtspot: 9.12.0.cl
|
|
1706
2262
|
*/
|
|
1707
2263
|
hiddenHomepageModules?: HomepageModule[];
|
|
1708
2264
|
/**
|
|
1709
2265
|
* reordering the home page modules
|
|
1710
2266
|
* eg: reorderedHomepageModules = [HomepageModule.MyLibrary, HomepageModule.Watchlist]
|
|
1711
2267
|
*
|
|
1712
|
-
*
|
|
2268
|
+
* **Note**: This option does not apply to the classic homepage.
|
|
2269
|
+
* To access the updated modular homepage, set
|
|
2270
|
+
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
2271
|
+
*
|
|
2272
|
+
* @version SDK: 1.28.0| Thoughtspot: 9.12.5.cl
|
|
2273
|
+
*
|
|
2274
|
+
* @example
|
|
2275
|
+
* ```js
|
|
2276
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
2277
|
+
* ... // other options
|
|
2278
|
+
* reorderedHomepageModules:[HomepageModule.Favorite,HomepageModule.MyLibrary]
|
|
2279
|
+
* })
|
|
2280
|
+
* ```
|
|
1713
2281
|
*/
|
|
1714
2282
|
reorderedHomepageModules?: HomepageModule[];
|
|
1715
2283
|
/**
|
|
@@ -1718,13 +2286,18 @@ export interface ViewConfig {
|
|
|
1718
2286
|
*
|
|
1719
2287
|
* Use either `visibleTabs` or `hiddenTabs`.
|
|
1720
2288
|
*
|
|
2289
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
2290
|
+
*
|
|
1721
2291
|
* @example
|
|
1722
2292
|
* ```js
|
|
1723
|
-
*
|
|
1724
|
-
*
|
|
1725
|
-
*
|
|
2293
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2294
|
+
* ... // other options
|
|
2295
|
+
* visibleTabs: [
|
|
2296
|
+
* '430496d6-6903-4601-937e-2c691821af3c',
|
|
2297
|
+
* 'f547ec54-2a37-4516-a222-2b06719af726'
|
|
2298
|
+
* ]
|
|
2299
|
+
* })
|
|
1726
2300
|
* ```
|
|
1727
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
1728
2301
|
*/
|
|
1729
2302
|
visibleTabs?: string[];
|
|
1730
2303
|
/**
|
|
@@ -1732,11 +2305,19 @@ export interface ViewConfig {
|
|
|
1732
2305
|
* There are 8 eight home navigation list items.
|
|
1733
2306
|
* To hide these items, specify the string in the array.
|
|
1734
2307
|
*
|
|
2308
|
+
* * @example
|
|
1735
2309
|
* ```js
|
|
1736
|
-
*
|
|
2310
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
2311
|
+
* ... // other options
|
|
2312
|
+
* hiddenHomeLeftNavItems : [HomeLeftNavItem.Home,HomeLeftNavItem.Answers],
|
|
2313
|
+
* })
|
|
1737
2314
|
* ```
|
|
1738
2315
|
*
|
|
1739
|
-
*
|
|
2316
|
+
* **Note**: This option does not apply to the classic homepage.
|
|
2317
|
+
* To access the updated modular homepage, set
|
|
2318
|
+
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
2319
|
+
*
|
|
2320
|
+
* @version SDK: 1.28.0 | Thoughtspot: 9.12.5.cl
|
|
1740
2321
|
*/
|
|
1741
2322
|
hiddenHomeLeftNavItems?: HomeLeftNavItem[];
|
|
1742
2323
|
/**
|
|
@@ -1763,7 +2344,10 @@ export interface ViewConfig {
|
|
|
1763
2344
|
*
|
|
1764
2345
|
* @type {boolean}
|
|
1765
2346
|
* @default false
|
|
2347
|
+
* @version SDK: 1.24.0 | ThoughtSpot:9.4.0.cl, 9.4.0.sw
|
|
2348
|
+
*
|
|
1766
2349
|
* @example
|
|
2350
|
+
* ```js
|
|
1767
2351
|
* // Disable tracking PreRender size in the configuration
|
|
1768
2352
|
* const config = {
|
|
1769
2353
|
* doNotTrackPreRenderSize: true,
|
|
@@ -1771,6 +2355,7 @@ export interface ViewConfig {
|
|
|
1771
2355
|
*
|
|
1772
2356
|
* // Instantiate an object with the configuration
|
|
1773
2357
|
* const myComponent = new MyComponent(config);
|
|
2358
|
+
* ```
|
|
1774
2359
|
*/
|
|
1775
2360
|
doNotTrackPreRenderSize?: boolean;
|
|
1776
2361
|
/**
|
|
@@ -1891,7 +2476,12 @@ export enum RuntimeFilterOp {
|
|
|
1891
2476
|
IN = "IN"
|
|
1892
2477
|
}
|
|
1893
2478
|
/**
|
|
1894
|
-
* Home page module that can be hidden
|
|
2479
|
+
* Home page module that can be hidden.
|
|
2480
|
+
* **Note**: This option does not apply to the classic homepage.
|
|
2481
|
+
* To access the updated modular homepage, set
|
|
2482
|
+
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
2483
|
+
*
|
|
2484
|
+
* @version SDK: 1.28.0 | Thoughtspot: 9.12.5.cl
|
|
1895
2485
|
*/
|
|
1896
2486
|
export enum HomepageModule {
|
|
1897
2487
|
/**
|
|
@@ -2050,7 +2640,7 @@ export enum EmbedEvent {
|
|
|
2050
2640
|
* @returns nonFilteredColumns - The columns that were not filtered
|
|
2051
2641
|
* @example
|
|
2052
2642
|
*```js
|
|
2053
|
-
* searchEmbed.trigger(
|
|
2643
|
+
* searchEmbed.trigger(EmbedEvent.DrillDown, {
|
|
2054
2644
|
* points: {
|
|
2055
2645
|
* clickedPoint,
|
|
2056
2646
|
* selectedPoints: selectedPoint
|
|
@@ -2142,7 +2732,7 @@ export enum EmbedEvent {
|
|
|
2142
2732
|
* @important
|
|
2143
2733
|
* @example
|
|
2144
2734
|
* ```js
|
|
2145
|
-
* embed.on(
|
|
2735
|
+
* embed.on(EmbedEvent.VizPointClick, ({data}) => {
|
|
2146
2736
|
* console.log(
|
|
2147
2737
|
* data.vizId, // viz id
|
|
2148
2738
|
* data.clickedPoint.selectedAttributes[0].value,
|
|
@@ -2157,19 +2747,20 @@ export enum EmbedEvent {
|
|
|
2157
2747
|
/**
|
|
2158
2748
|
* An error has occurred. This event is fired for the following error types:
|
|
2159
2749
|
*
|
|
2160
|
-
*
|
|
2750
|
+
* API - API call failure error.
|
|
2161
2751
|
*
|
|
2162
|
-
*
|
|
2752
|
+
* FULLSCREEN - Error when presenting a Liveboard or visualization in full screen mode.
|
|
2163
2753
|
*
|
|
2164
|
-
*
|
|
2754
|
+
* SINGLE_VALUE_FILTER - Error due to multiple values in the single value filter.
|
|
2165
2755
|
*
|
|
2166
|
-
*
|
|
2756
|
+
* NON_EXIST_FILTER - Error due to a non-existent filter.
|
|
2167
2757
|
*
|
|
2168
|
-
*
|
|
2758
|
+
* INVALID_DATE_VALUE - Invalid date value error.
|
|
2169
2759
|
*
|
|
2170
|
-
*
|
|
2760
|
+
* INVALID_OPERATOR - Use of invalid operator during filter application.
|
|
2171
2761
|
*
|
|
2172
2762
|
* For more information, see [Developer Documentation](https://developers.thoughtspot.com/docs/events-app-integration#errorType)
|
|
2763
|
+
*
|
|
2173
2764
|
* @returns error - An error object or message
|
|
2174
2765
|
* @example
|
|
2175
2766
|
* ```js
|
|
@@ -2734,7 +3325,7 @@ export enum EmbedEvent {
|
|
|
2734
3325
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2735
3326
|
* @example
|
|
2736
3327
|
*```js
|
|
2737
|
-
* liveboardEmbed.trigger(
|
|
3328
|
+
* liveboardEmbed.trigger(EmbedEvent.Delete,
|
|
2738
3329
|
* {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
2739
3330
|
*```
|
|
2740
3331
|
*/
|
|
@@ -2745,7 +3336,7 @@ export enum EmbedEvent {
|
|
|
2745
3336
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2746
3337
|
* @example
|
|
2747
3338
|
*```js
|
|
2748
|
-
* liveboardEmbed.trigger(
|
|
3339
|
+
* liveboardEmbed.trigger(EmbedEvent.SchedulesList)
|
|
2749
3340
|
*```
|
|
2750
3341
|
*/
|
|
2751
3342
|
SchedulesList = "schedule-list",
|
|
@@ -2755,7 +3346,7 @@ export enum EmbedEvent {
|
|
|
2755
3346
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2756
3347
|
* @example
|
|
2757
3348
|
*```js
|
|
2758
|
-
* liveboardEmbed.trigger(
|
|
3349
|
+
* liveboardEmbed.trigger(EmbedEvent.Cancel)
|
|
2759
3350
|
*```
|
|
2760
3351
|
*/
|
|
2761
3352
|
Cancel = "cancel",
|
|
@@ -2765,7 +3356,7 @@ export enum EmbedEvent {
|
|
|
2765
3356
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2766
3357
|
* @example
|
|
2767
3358
|
*```js
|
|
2768
|
-
* liveboardEmbed.trigger(
|
|
3359
|
+
* liveboardEmbed.trigger(EmbedEvent.Explore, {
|
|
2769
3360
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
2770
3361
|
*```
|
|
2771
3362
|
*/
|
|
@@ -2776,7 +3367,7 @@ export enum EmbedEvent {
|
|
|
2776
3367
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2777
3368
|
* @example
|
|
2778
3369
|
*```js
|
|
2779
|
-
* liveboardEmbed.trigger(
|
|
3370
|
+
* liveboardEmbed.trigger(EmbedEvent.CopyLink, {
|
|
2780
3371
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
2781
3372
|
*```
|
|
2782
3373
|
*/
|
|
@@ -3045,10 +3636,13 @@ export enum HostEvent {
|
|
|
3045
3636
|
* _String_. The name of the column to filter on.
|
|
3046
3637
|
* `operator`
|
|
3047
3638
|
* Runtime filter operator to apply. For information,
|
|
3048
|
-
* see
|
|
3639
|
+
* see https://developers.thoughtspot.com/docs/?pageid=runtime-filters#rtOperator.
|
|
3049
3640
|
* `values`
|
|
3050
3641
|
* List of operands. Some operators such as EQ, LE allow a single value, whereas
|
|
3051
3642
|
* operators such as BW and IN accept multiple operands.
|
|
3643
|
+
* **Note**: `HostEvent.UpdateRuntimeFilters` is not supported in
|
|
3644
|
+
* Search embedding (SearchEmbed) and Natural Language Search
|
|
3645
|
+
* embedding (SageEmbed).
|
|
3052
3646
|
*
|
|
3053
3647
|
* @param - {@link RuntimeFilter}[] an array of {@link RuntimeFilter} Types.
|
|
3054
3648
|
* @example
|
|
@@ -3573,6 +4167,7 @@ export enum HostEvent {
|
|
|
3573
4167
|
/**
|
|
3574
4168
|
*
|
|
3575
4169
|
* Get the currents visible and runtime filters applied on a Liveboard
|
|
4170
|
+
*
|
|
3576
4171
|
* @example
|
|
3577
4172
|
* liveboardEmbed.trigger(HostEvent.GetFilters)
|
|
3578
4173
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
@@ -3581,12 +4176,13 @@ export enum HostEvent {
|
|
|
3581
4176
|
/**
|
|
3582
4177
|
*
|
|
3583
4178
|
* Update the visible filters on the Liveboard.
|
|
4179
|
+
*
|
|
3584
4180
|
* @param - filter: filter object containing column name and filter operation and values
|
|
3585
4181
|
* @example
|
|
3586
4182
|
*
|
|
3587
4183
|
* ```js
|
|
3588
4184
|
* liveboardEmbed.trigger(HostEvent.UpdateFilters, {
|
|
3589
|
-
* filter: { column: 'column name', oper: '
|
|
4185
|
+
* filter: { column: 'column name', oper: 'IN', values: [1,2,3], is_mandatory: false }
|
|
3590
4186
|
* })
|
|
3591
4187
|
* ```
|
|
3592
4188
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
@@ -3672,7 +4268,33 @@ export enum HostEvent {
|
|
|
3672
4268
|
* ```
|
|
3673
4269
|
* @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
|
|
3674
4270
|
*/
|
|
3675
|
-
AskSage = "AskSage"
|
|
4271
|
+
AskSage = "AskSage",
|
|
4272
|
+
/**
|
|
4273
|
+
* Trigger UpdateCrossFilter for Liveboard
|
|
4274
|
+
*
|
|
4275
|
+
* @example
|
|
4276
|
+
* ```js
|
|
4277
|
+
* liveboardEmbed.trigger(HostEvent.UpdateCrossFilter, {
|
|
4278
|
+
* vizId: 'b535c760-8bbe-4e6f-bb26-af56b4129a1e',
|
|
4279
|
+
* conditions: [
|
|
4280
|
+
* { columnName: 'Category', values: ['mfgr#12','mfgr#14'] },
|
|
4281
|
+
* { columnName: 'color', values: ['mint','hot'] },
|
|
4282
|
+
* ],
|
|
4283
|
+
* });
|
|
4284
|
+
* ```
|
|
4285
|
+
* @version SDK: 1.29.0 | Thoughtspot: 10.0.0.cl
|
|
4286
|
+
*/
|
|
4287
|
+
UpdateCrossFilter = "UpdateCrossFilter",
|
|
4288
|
+
/**
|
|
4289
|
+
* Trigger ResetLiveboardPersonalisedView for Liveboard
|
|
4290
|
+
*
|
|
4291
|
+
* @example
|
|
4292
|
+
* ```js
|
|
4293
|
+
* liveboardEmbed.trigger(HostEvent.ResetLiveboardPersonalisedView);
|
|
4294
|
+
* ```
|
|
4295
|
+
* @version SDK: 1.29.0 | Thoughtspot: 10.1.0.cl
|
|
4296
|
+
*/
|
|
4297
|
+
ResetLiveboardPersonalisedView = "ResetLiveboardPersonalisedView"
|
|
3676
4298
|
}
|
|
3677
4299
|
/**
|
|
3678
4300
|
* The different visual modes that the data sources panel within
|
|
@@ -4640,6 +5262,7 @@ export enum Action {
|
|
|
4640
5262
|
AskAi = "AskAi",
|
|
4641
5263
|
/**
|
|
4642
5264
|
* The **Add KPI to Watchlist** action on Home page watchlist.
|
|
5265
|
+
*
|
|
4643
5266
|
* @example
|
|
4644
5267
|
* ```js
|
|
4645
5268
|
* disabledActions: [Action.AddToWatchlist]
|
|
@@ -4649,6 +5272,7 @@ export enum Action {
|
|
|
4649
5272
|
AddToWatchlist = "addToWatchlist",
|
|
4650
5273
|
/**
|
|
4651
5274
|
* The **Remove from watchlist** menu action on KPI watchlist.
|
|
5275
|
+
*
|
|
4652
5276
|
* @example
|
|
4653
5277
|
* ```js
|
|
4654
5278
|
* disabledActions: [Action.RemoveFromWatchlist]
|
|
@@ -4658,13 +5282,34 @@ export enum Action {
|
|
|
4658
5282
|
RemoveFromWatchlist = "removeFromWatchlist",
|
|
4659
5283
|
/**
|
|
4660
5284
|
* The **Copy KPI Link** menu action on KPI watchlist.
|
|
5285
|
+
*
|
|
4661
5286
|
* @example
|
|
4662
5287
|
* ```js
|
|
4663
5288
|
* disabledActions: [Action.CopyKpiLink]
|
|
4664
5289
|
* ```
|
|
4665
5290
|
* @version SDK : 1.27.9 | Thoughtspot: 9.12.5.cl
|
|
4666
5291
|
*/
|
|
4667
|
-
CopyKpiLink = "copyKpiLink"
|
|
5292
|
+
CopyKpiLink = "copyKpiLink",
|
|
5293
|
+
/**
|
|
5294
|
+
* The **Organise Favourites** action on Homepage Favourite Module.
|
|
5295
|
+
*
|
|
5296
|
+
* @example
|
|
5297
|
+
* ```js
|
|
5298
|
+
* disabledActions: [Action.OrganiseFavourites]
|
|
5299
|
+
* ```
|
|
5300
|
+
* @version SDK : 1.32.0 | Thoughtspot: 10.0.0.cl
|
|
5301
|
+
*/
|
|
5302
|
+
OrganiseFavourites = "organiseFavourites",
|
|
5303
|
+
/**
|
|
5304
|
+
* Action ID for AI Highlights button
|
|
5305
|
+
*
|
|
5306
|
+
* @example
|
|
5307
|
+
* ```js
|
|
5308
|
+
* hiddenAction: [Action.AIHighlights]
|
|
5309
|
+
* ```
|
|
5310
|
+
* @version SDK: 1.27.10 | Thoughtspot: 9.12.5.cl
|
|
5311
|
+
*/
|
|
5312
|
+
AIHighlights = "AIHighlights"
|
|
4668
5313
|
}
|
|
4669
5314
|
export interface AnswerServiceType {
|
|
4670
5315
|
getAnswer?: (offset: number, batchSize: number) => any;
|
|
@@ -5304,7 +5949,7 @@ export class SageEmbed extends V1Embed {
|
|
|
5304
5949
|
*
|
|
5305
5950
|
* @returns {SageEmbed} Eureka/Sage embed
|
|
5306
5951
|
*/
|
|
5307
|
-
render(): SageEmbed
|
|
5952
|
+
render(): Promise<SageEmbed>;
|
|
5308
5953
|
}
|
|
5309
5954
|
|
|
5310
5955
|
export interface SessionInterface {
|
|
@@ -5483,6 +6128,26 @@ export function initMixpanel(sessionInfo: any): void;
|
|
|
5483
6128
|
*/
|
|
5484
6129
|
export function testResetMixpanel(): void;
|
|
5485
6130
|
|
|
6131
|
+
/**
|
|
6132
|
+
* Fetch wrapper that adds the authentication token to the request.
|
|
6133
|
+
* Use this to call the ThoughtSpot APIs when using the visual embed sdk.
|
|
6134
|
+
*
|
|
6135
|
+
* @param input
|
|
6136
|
+
* @param init
|
|
6137
|
+
* @version SDK: 1.28.0
|
|
6138
|
+
* @group Global methods
|
|
6139
|
+
*/
|
|
6140
|
+
export const tokenizedFetch: typeof fetch;
|
|
6141
|
+
|
|
6142
|
+
export const getAuthenticationToken: (embedConfig: EmbedConfig) => Promise<string>;
|
|
6143
|
+
/**
|
|
6144
|
+
* Resets the auth token and a new token will be fetched on the next request.
|
|
6145
|
+
*
|
|
6146
|
+
* @version SDK: 1.28.0 | ThoughtSpot: *
|
|
6147
|
+
* @group Authentication / Init
|
|
6148
|
+
*/
|
|
6149
|
+
export const resetCachedAuthToken: () => void;
|
|
6150
|
+
|
|
5486
6151
|
/**
|
|
5487
6152
|
* Copyright (c) 2022
|
|
5488
6153
|
*
|
|
@@ -5675,7 +6340,7 @@ export class TsEmbed {
|
|
|
5675
6340
|
*
|
|
5676
6341
|
* @param args
|
|
5677
6342
|
*/
|
|
5678
|
-
render(): TsEmbed
|
|
6343
|
+
render(): Promise<TsEmbed>;
|
|
5679
6344
|
getIframeSrc(): string;
|
|
5680
6345
|
protected handleRenderForPrerender(): void;
|
|
5681
6346
|
/**
|