@thoughtspot/visual-embed-sdk 1.28.0-preRender → 1.28.0
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 +1 -1
- 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 +7 -3
- 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/embed/app.d.ts +150 -7
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +5 -5
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +19 -1
- 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 +5 -8
- package/cjs/src/embed/base.js.map +1 -1
- package/cjs/src/embed/base.spec.js +1 -1
- package/cjs/src/embed/base.spec.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 +113 -4
- 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 +20 -1
- package/cjs/src/embed/liveboard.spec.js.map +1 -1
- package/cjs/src/embed/pinboard.spec.js +20 -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 +85 -2
- package/cjs/src/embed/search.d.ts.map +1 -1
- package/cjs/src/embed/search.js +6 -6
- package/cjs/src/embed/search.js.map +1 -1
- package/cjs/src/embed/search.spec.js +25 -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 +2 -2
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +18 -13
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +64 -25
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/index.d.ts +2 -1
- package/cjs/src/index.d.ts.map +1 -1
- package/cjs/src/index.js +3 -1
- package/cjs/src/index.js.map +1 -1
- package/cjs/src/react/index.spec.js +13 -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 +279 -43
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +95 -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/embed/app.d.ts +150 -7
- 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/liveboard.d.ts +113 -4
- 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 +85 -2
- 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 +2 -2
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/index.d.ts +2 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/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 +279 -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 +1543 -1445
- package/dist/tsembed-react.js +6614 -6529
- package/dist/tsembed.es.js +1921 -1826
- package/dist/tsembed.js +15342 -15259
- package/dist/visual-embed-sdk-react-full.d.ts +692 -64
- package/dist/visual-embed-sdk-react.d.ts +692 -64
- package/dist/visual-embed-sdk.d.ts +692 -64
- 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 +8 -4
- 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/embed/app.d.ts +150 -7
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +5 -5
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +19 -1
- 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 +5 -8
- package/lib/src/embed/base.js.map +1 -1
- package/lib/src/embed/base.spec.js +2 -2
- package/lib/src/embed/base.spec.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 +113 -4
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +3 -3
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +20 -1
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/embed/pinboard.spec.js +20 -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 +85 -2
- package/lib/src/embed/search.d.ts.map +1 -1
- package/lib/src/embed/search.js +7 -7
- package/lib/src/embed/search.js.map +1 -1
- package/lib/src/embed/search.spec.js +25 -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 +2 -2
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +21 -16
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +57 -18
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/index.d.ts +2 -1
- package/lib/src/index.d.ts.map +1 -1
- package/lib/src/index.js +2 -1
- package/lib/src/index.js.map +1 -1
- package/lib/src/react/index.spec.js +13 -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 +279 -43
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +95 -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 +23 -1
- package/lib/src/utils/authService/authService.spec.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +699 -68
- package/package.json +3 -4
- package/src/auth.spec.ts +10 -0
- package/src/auth.ts +27 -8
- package/src/embed/app.spec.ts +24 -1
- package/src/embed/app.ts +154 -13
- package/src/embed/base.spec.ts +3 -3
- package/src/embed/base.ts +13 -17
- package/src/embed/embed.spec.ts +0 -18
- package/src/embed/liveboard.spec.ts +24 -1
- package/src/embed/liveboard.ts +121 -15
- package/src/embed/pinboard.spec.ts +24 -1
- package/src/embed/sage.ts +2 -2
- package/src/embed/search-bar.tsx +38 -7
- package/src/embed/search.spec.ts +29 -1
- package/src/embed/search.ts +93 -9
- package/src/embed/ts-embed-trigger.spec.ts +39 -0
- package/src/embed/ts-embed.spec.ts +71 -30
- package/src/embed/ts-embed.ts +48 -45
- package/src/index.ts +2 -0
- package/src/react/index.spec.tsx +30 -0
- package/src/test/test-utils.ts +9 -0
- package/src/tokenizedFetch.ts +9 -0
- package/src/types.ts +288 -50
- package/src/utils/authService/authService.spec.ts +31 -4
- 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,16 @@ 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
|
+
* @example
|
|
75
|
+
* ```js
|
|
76
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
77
|
+
* ... // other options
|
|
78
|
+
* showPrimaryNavbar:true,
|
|
79
|
+
* })
|
|
80
|
+
* ```
|
|
71
81
|
*/
|
|
72
82
|
showPrimaryNavbar?: boolean;
|
|
73
83
|
/**
|
|
@@ -76,23 +86,78 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
76
86
|
* nav-bars are visible, this flag will only hide the homepage left nav-bar.
|
|
77
87
|
* The showPrimaryNavbar flag takes precedence over the hideHomepageLeftNav.
|
|
78
88
|
*
|
|
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
|
+
*
|
|
110
|
+
* @default false
|
|
111
|
+
* @version SDK: 1.2.0 | Thoughtspot: 8.4.0.cl
|
|
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
|
+
*
|
|
126
|
+
* **Note**: This option does not apply to the classic homepage.
|
|
127
|
+
* To access the updated modular homepage, set
|
|
128
|
+
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
129
|
+
*
|
|
130
|
+
* @version SDK: 1.28.0 | Thoughtspot: 9.12.5.cl
|
|
131
|
+
* @default false
|
|
132
|
+
*
|
|
133
|
+
* @example
|
|
134
|
+
* ```js
|
|
135
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
136
|
+
* ... // other options
|
|
137
|
+
* hideApplicationSwitcher : true,
|
|
138
|
+
* })
|
|
139
|
+
* ```
|
|
91
140
|
*/
|
|
92
141
|
hideApplicationSwitcher?: boolean;
|
|
93
142
|
/**
|
|
94
143
|
* Control the visibility of the Org switcher button on the nav-bar.
|
|
95
144
|
* By default, the Org switcher button is shown.
|
|
145
|
+
*
|
|
146
|
+
*
|
|
147
|
+
* **Note**: This option does not apply to the classic homepage.
|
|
148
|
+
* To access the updated modular homepage, set
|
|
149
|
+
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
150
|
+
*
|
|
151
|
+
* @version SDK: 1.28.0 | Thoughtspot: 9.12.5.cl
|
|
152
|
+
* @default true
|
|
153
|
+
*
|
|
154
|
+
* @example
|
|
155
|
+
* ```js
|
|
156
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
157
|
+
* ... // other options
|
|
158
|
+
* hideOrgSwitcher : true,
|
|
159
|
+
* })
|
|
160
|
+
* ```
|
|
96
161
|
*/
|
|
97
162
|
hideOrgSwitcher?: boolean;
|
|
98
163
|
/**
|
|
@@ -104,9 +169,13 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
104
169
|
* For eg, if you want the component to open to a specific Liveboard
|
|
105
170
|
* you could set the path to `pinboard/<liveboardId>/tab/<tabId>`.
|
|
106
171
|
*
|
|
172
|
+
* @version SDK: 1.1.0 | Thoughtspot: 9.4.0.cl
|
|
107
173
|
* @example
|
|
108
|
-
* ```
|
|
109
|
-
*
|
|
174
|
+
* ```js
|
|
175
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
176
|
+
* ... // other options
|
|
177
|
+
* path:"pinboard/1234/tab/7464"
|
|
178
|
+
* })
|
|
110
179
|
* ```
|
|
111
180
|
*/
|
|
112
181
|
path?: string;
|
|
@@ -116,16 +185,46 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
116
185
|
*
|
|
117
186
|
* Use this to open to particular page in the app. To open to a specific
|
|
118
187
|
* path within the app, use the `path` attribute which is more flexible.
|
|
188
|
+
*
|
|
189
|
+
* @version SDK: 1.1.0 | Thoughtspot: 9.4.0.cl
|
|
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
|
+
* @example
|
|
219
|
+
* ```js
|
|
220
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
221
|
+
* ... // other options
|
|
222
|
+
* hideObjects: [
|
|
223
|
+
* '430496d6-6903-4601-937e-2c691821af3c',
|
|
224
|
+
* 'f547ec54-2a37-4516-a222-2b06719af726'
|
|
225
|
+
* ]
|
|
226
|
+
* })
|
|
227
|
+
* ```
|
|
129
228
|
*/
|
|
130
229
|
hideObjects?: string[];
|
|
131
230
|
/**
|
|
@@ -139,7 +238,15 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
139
238
|
/**
|
|
140
239
|
* If set to true, the Search Assist feature is enabled.
|
|
141
240
|
*
|
|
241
|
+
* @default true
|
|
142
242
|
* @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1-sw
|
|
243
|
+
* @example
|
|
244
|
+
* ```js
|
|
245
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
246
|
+
* ... // other options
|
|
247
|
+
* enableSearchAssist: true,
|
|
248
|
+
* })
|
|
249
|
+
* ```
|
|
143
250
|
*/
|
|
144
251
|
enableSearchAssist?: boolean;
|
|
145
252
|
/**
|
|
@@ -147,6 +254,13 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
147
254
|
* according to the height of the pages which support fullHeight mode.
|
|
148
255
|
*
|
|
149
256
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.4.0.cl, 9.4.0-sw
|
|
257
|
+
* @example
|
|
258
|
+
* ```js
|
|
259
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
260
|
+
* ... // other options
|
|
261
|
+
* fullHeight: true,
|
|
262
|
+
* })
|
|
263
|
+
* ```
|
|
150
264
|
*/
|
|
151
265
|
fullHeight?: boolean;
|
|
152
266
|
/**
|
|
@@ -162,6 +276,13 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
162
276
|
*
|
|
163
277
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
164
278
|
* @default false
|
|
279
|
+
* @example
|
|
280
|
+
* ```js
|
|
281
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
282
|
+
* ... // other options
|
|
283
|
+
* hideLiveboardHeader : true,
|
|
284
|
+
* })
|
|
285
|
+
* ```
|
|
165
286
|
*/
|
|
166
287
|
hideLiveboardHeader?: boolean;
|
|
167
288
|
/**
|
|
@@ -169,6 +290,13 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
169
290
|
*
|
|
170
291
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
171
292
|
* @default false
|
|
293
|
+
* @example
|
|
294
|
+
* ```js
|
|
295
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
296
|
+
* ... // other options
|
|
297
|
+
* showLiveboardTitle:true,
|
|
298
|
+
* })
|
|
299
|
+
* ```
|
|
172
300
|
*/
|
|
173
301
|
showLiveboardTitle?: boolean;
|
|
174
302
|
/**
|
|
@@ -176,13 +304,28 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
176
304
|
*
|
|
177
305
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
178
306
|
* @default false
|
|
307
|
+
* @example
|
|
308
|
+
* ```js
|
|
309
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
310
|
+
* ... // other options
|
|
311
|
+
* showLiveboardDescription:true,
|
|
312
|
+
* })
|
|
313
|
+
* ```
|
|
179
314
|
*/
|
|
180
315
|
showLiveboardDescription?: boolean;
|
|
181
316
|
/**
|
|
182
|
-
* Flag to control new Modular Home experience
|
|
317
|
+
* Flag to control new Modular Home experience.
|
|
183
318
|
*
|
|
184
319
|
* @default false
|
|
185
|
-
* @version SDK: 1.
|
|
320
|
+
* @version SDK: 1.28.0 | Thoughtspot: 9.12.5.cl
|
|
321
|
+
*
|
|
322
|
+
* @example
|
|
323
|
+
* ```js
|
|
324
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
325
|
+
* ... // other options
|
|
326
|
+
* modularHomeExperience : true,
|
|
327
|
+
* })
|
|
328
|
+
* ```
|
|
186
329
|
*/
|
|
187
330
|
modularHomeExperience?: boolean;
|
|
188
331
|
/**
|
|
@@ -251,7 +394,7 @@ export class AppEmbed extends V1Embed {
|
|
|
251
394
|
* @param renderOptions An object containing the page ID
|
|
252
395
|
* to be embedded.
|
|
253
396
|
*/
|
|
254
|
-
render(): AppEmbed
|
|
397
|
+
render(): Promise<AppEmbed>;
|
|
255
398
|
}
|
|
256
399
|
|
|
257
400
|
export interface executeTMLInput {
|
|
@@ -411,8 +554,21 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
411
554
|
/**
|
|
412
555
|
* If set to true, the embedded object container dynamically resizes
|
|
413
556
|
* according to the height of the Liveboard.
|
|
557
|
+
* **Note**: Using fullHeight loads all visualizations on the
|
|
558
|
+
* Liveboard simultaneously, which results in multiple warehouse
|
|
559
|
+
* queries and potentially a longer wait for the topmost
|
|
560
|
+
* visualizations to display on the screen.
|
|
561
|
+
* Setting `fullHeight` to `false` fetches visualizations
|
|
562
|
+
* incrementally as users scroll the page to view the charts and tables.
|
|
414
563
|
*
|
|
415
564
|
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1
|
|
565
|
+
* @example
|
|
566
|
+
* ```js
|
|
567
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
568
|
+
* ... // other liveboard view config
|
|
569
|
+
* fullHeight: true,
|
|
570
|
+
* });
|
|
571
|
+
* ```
|
|
416
572
|
*/
|
|
417
573
|
fullHeight?: boolean;
|
|
418
574
|
/**
|
|
@@ -422,10 +578,26 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
422
578
|
*
|
|
423
579
|
* @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
|
|
424
580
|
* @default 500
|
|
581
|
+
* @example
|
|
582
|
+
* ```js
|
|
583
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
584
|
+
* ... // other liveboard view config
|
|
585
|
+
* fullHeight: true,
|
|
586
|
+
* defaultHeight: 600,
|
|
587
|
+
* });
|
|
588
|
+
* ```
|
|
425
589
|
*/
|
|
426
590
|
defaultHeight?: number;
|
|
427
591
|
/**
|
|
428
592
|
* @Deprecated If set to true, the context menu in visualizations will be enabled.
|
|
593
|
+
* @example
|
|
594
|
+
* ```js
|
|
595
|
+
* const embed = new LiveboardEmbed('#tsEmbed', {
|
|
596
|
+
* ... // other options
|
|
597
|
+
* enableVizTransformations:true,
|
|
598
|
+
* })
|
|
599
|
+
* ```
|
|
600
|
+
* @version: SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
|
|
429
601
|
*/
|
|
430
602
|
enableVizTransformations?: boolean;
|
|
431
603
|
/**
|
|
@@ -433,6 +605,12 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
433
605
|
* Use either liveboardId or pinboardId to reference the Liveboard to embed.
|
|
434
606
|
*
|
|
435
607
|
* @version SDK: 1.3.0 | ThoughtSpot ts7.aug.cl, 7.2.1
|
|
608
|
+
* @example
|
|
609
|
+
* ```js
|
|
610
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
611
|
+
* ... // other options
|
|
612
|
+
* liveboardId:id of liveboard,
|
|
613
|
+
* })
|
|
436
614
|
*/
|
|
437
615
|
liveboardId?: string;
|
|
438
616
|
/**
|
|
@@ -443,6 +621,15 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
443
621
|
pinboardId?: string;
|
|
444
622
|
/**
|
|
445
623
|
* The visualization within the Liveboard to display.
|
|
624
|
+
*
|
|
625
|
+
* @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
|
|
626
|
+
* @example
|
|
627
|
+
* ```js
|
|
628
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
629
|
+
* ... // other options
|
|
630
|
+
* vizId:'430496d6-6903-4601-937e-2c691821af3c',
|
|
631
|
+
* })
|
|
632
|
+
* ```
|
|
446
633
|
*/
|
|
447
634
|
vizId?: string;
|
|
448
635
|
/**
|
|
@@ -450,6 +637,13 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
450
637
|
* Liveboard page will be read-only (no X buttons)
|
|
451
638
|
*
|
|
452
639
|
* @version SDK: 1.3.0 | ThoughtSpot ts7.aug.cl, 7.2.1.sw
|
|
640
|
+
* @example
|
|
641
|
+
* ```js
|
|
642
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
643
|
+
* ... // other options
|
|
644
|
+
* preventLiveboardFilterRemoval:true,
|
|
645
|
+
* })
|
|
646
|
+
* ```
|
|
453
647
|
*/
|
|
454
648
|
preventLiveboardFilterRemoval?: boolean;
|
|
455
649
|
/**
|
|
@@ -458,6 +652,15 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
458
652
|
* event.
|
|
459
653
|
*
|
|
460
654
|
* @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
|
|
655
|
+
* @example
|
|
656
|
+
* ```js
|
|
657
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
658
|
+
* ... // other options
|
|
659
|
+
* visibleVizs: [
|
|
660
|
+
* '430496d6-6903-4601-937e-2c691821af3c',
|
|
661
|
+
* 'f547ec54-2a37-4516-a222-2b06719af726'
|
|
662
|
+
* ]
|
|
663
|
+
* })
|
|
461
664
|
*/
|
|
462
665
|
visibleVizs?: string[];
|
|
463
666
|
/**
|
|
@@ -471,12 +674,26 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
471
674
|
* new Liveboard experience mode.
|
|
472
675
|
*
|
|
473
676
|
* @version SDK: 1.14.0 | ThoughtSpot: 8.6.0.cl, 8.8.1-sw
|
|
677
|
+
* @example
|
|
678
|
+
* ```js
|
|
679
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
680
|
+
* ... // other options
|
|
681
|
+
* liveboardV2:true,
|
|
682
|
+
* })
|
|
683
|
+
* ```
|
|
474
684
|
*/
|
|
475
685
|
liveboardV2?: boolean;
|
|
476
686
|
/**
|
|
477
687
|
* Set a Liveboard tab as an active tab.
|
|
478
688
|
* Specify the tab ID.
|
|
479
689
|
*
|
|
690
|
+
* @example
|
|
691
|
+
* ```js
|
|
692
|
+
* const embed = new LiveboardEmbed('#tsEmbed', {
|
|
693
|
+
* ... // other options
|
|
694
|
+
* activeTabId:'id-1234',
|
|
695
|
+
* })
|
|
696
|
+
* ```
|
|
480
697
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
|
|
481
698
|
*/
|
|
482
699
|
activeTabId?: string;
|
|
@@ -484,6 +701,13 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
484
701
|
* Show or hide the tab panel of the embedded Liveboard.
|
|
485
702
|
*
|
|
486
703
|
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl, 9.8.0.sw
|
|
704
|
+
* @example
|
|
705
|
+
* ```js
|
|
706
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
707
|
+
* ... // other options
|
|
708
|
+
* hideTabPanel:true,
|
|
709
|
+
* })
|
|
710
|
+
* ```
|
|
487
711
|
*/
|
|
488
712
|
hideTabPanel?: boolean;
|
|
489
713
|
/**
|
|
@@ -491,20 +715,41 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
491
715
|
*
|
|
492
716
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
493
717
|
* @default false
|
|
718
|
+
* @example
|
|
719
|
+
* ```js
|
|
720
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
721
|
+
* ... // other liveboard view config
|
|
722
|
+
* hideLiveboardHeader:true,
|
|
723
|
+
* });
|
|
724
|
+
* ```
|
|
494
725
|
*/
|
|
495
726
|
hideLiveboardHeader?: boolean;
|
|
496
727
|
/**
|
|
497
728
|
* Show or hide the Liveboard title.
|
|
498
729
|
*
|
|
499
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
500
730
|
* @default false
|
|
731
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
732
|
+
* @example
|
|
733
|
+
* ```js
|
|
734
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
735
|
+
* ... // other options
|
|
736
|
+
* showLiveboardTitle:true,
|
|
737
|
+
* })
|
|
738
|
+
* ```
|
|
501
739
|
*/
|
|
502
740
|
showLiveboardTitle?: boolean;
|
|
503
741
|
/**
|
|
504
742
|
* Show or hide the Liveboard description.
|
|
505
743
|
*
|
|
506
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
507
744
|
* @default false
|
|
745
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
746
|
+
* @example
|
|
747
|
+
* ```js
|
|
748
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
749
|
+
* ... // other options
|
|
750
|
+
* showLiveboardDescription:true,
|
|
751
|
+
* })
|
|
752
|
+
* ```
|
|
508
753
|
*/
|
|
509
754
|
showLiveboardDescription?: boolean;
|
|
510
755
|
/**
|
|
@@ -525,8 +770,15 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
525
770
|
/**
|
|
526
771
|
* enable or disable ask sage
|
|
527
772
|
*
|
|
528
|
-
* @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
|
|
529
773
|
* @default false
|
|
774
|
+
* @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
|
|
775
|
+
* @example
|
|
776
|
+
* ```js
|
|
777
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
778
|
+
* ... // other options
|
|
779
|
+
* enableAskSage:true,
|
|
780
|
+
* })
|
|
781
|
+
* ```
|
|
530
782
|
*/
|
|
531
783
|
enableAskSage?: boolean;
|
|
532
784
|
}
|
|
@@ -569,7 +821,7 @@ export class LiveboardEmbed extends V1Embed {
|
|
|
569
821
|
* @param renderOptions An object specifying the Liveboard ID,
|
|
570
822
|
* visualization ID and the runtime filters.
|
|
571
823
|
*/
|
|
572
|
-
render(): LiveboardEmbed
|
|
824
|
+
render(): Promise<LiveboardEmbed>;
|
|
573
825
|
navigateToLiveboard(liveboardId: string, vizId?: string, activeTabId?: string): void;
|
|
574
826
|
}
|
|
575
827
|
/**
|
|
@@ -612,27 +864,73 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
|
|
|
612
864
|
/**
|
|
613
865
|
* If set to true, the data sources panel is collapsed on load,
|
|
614
866
|
* but can be expanded manually.
|
|
867
|
+
*
|
|
868
|
+
* @version: SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
|
|
869
|
+
* @example
|
|
870
|
+
* ```js
|
|
871
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
872
|
+
* ... // other options
|
|
873
|
+
* collapseDataSources:true,
|
|
874
|
+
* })
|
|
875
|
+
* ```
|
|
615
876
|
*/
|
|
616
877
|
collapseDataSources?: boolean;
|
|
617
878
|
/**
|
|
618
879
|
* Show or hide the data sources panel.
|
|
880
|
+
*
|
|
881
|
+
* @version: SDK: 1.2.0 | ThoughtSpot: 9.1.0.sw
|
|
882
|
+
* @example
|
|
883
|
+
* ```js
|
|
884
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
885
|
+
* ... // other options
|
|
886
|
+
* hideDataSources:true,
|
|
887
|
+
* })
|
|
888
|
+
* ```
|
|
619
889
|
*/
|
|
620
890
|
hideDataSources?: boolean;
|
|
621
891
|
/**
|
|
622
892
|
* Show or hide the charts and tables in search answers.
|
|
623
893
|
* This attribute can be used to create a custom visualization
|
|
624
894
|
* using raw answer data.
|
|
895
|
+
*
|
|
896
|
+
* @version: SDK: 1.2.0 | ThoughtSpot: 9.1.0.sw
|
|
897
|
+
* @example
|
|
898
|
+
* ```js
|
|
899
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
900
|
+
* ... // other options
|
|
901
|
+
* hideResults:true,
|
|
902
|
+
* })
|
|
903
|
+
* ```
|
|
625
904
|
*/
|
|
626
905
|
hideResults?: boolean;
|
|
906
|
+
/**
|
|
907
|
+
* If set to true, expands all the data sources panel.
|
|
908
|
+
*/
|
|
909
|
+
expandAllDataSource?: boolean;
|
|
627
910
|
/**
|
|
628
911
|
* If set to true, the Search Assist feature is enabled.
|
|
629
912
|
*
|
|
630
913
|
* @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1-sw
|
|
914
|
+
* @example
|
|
915
|
+
* ```js
|
|
916
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
917
|
+
* ... // other options
|
|
918
|
+
* enableSearchAssist:true,
|
|
919
|
+
* })
|
|
920
|
+
* ```
|
|
631
921
|
*/
|
|
632
922
|
enableSearchAssist?: boolean;
|
|
633
923
|
/**
|
|
634
924
|
* If set to true, the tabular view is set as the default
|
|
635
925
|
* format for presenting search data.
|
|
926
|
+
*
|
|
927
|
+
* @version: SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
|
|
928
|
+
* @example
|
|
929
|
+
* ```js
|
|
930
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
931
|
+
* ... // other options
|
|
932
|
+
* forceTable:true,
|
|
933
|
+
* })
|
|
636
934
|
*/
|
|
637
935
|
forceTable?: boolean;
|
|
638
936
|
/**
|
|
@@ -640,12 +938,26 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
|
|
|
640
938
|
* Only a single data source is supported currently.
|
|
641
939
|
*
|
|
642
940
|
* @deprecated Use `dataSource` instead.
|
|
941
|
+
* @example
|
|
942
|
+
* ```js
|
|
943
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
944
|
+
* ... // other options
|
|
945
|
+
* dataSources:['id-234','id-456'],
|
|
946
|
+
* })
|
|
947
|
+
* ```
|
|
643
948
|
*/
|
|
644
949
|
dataSources?: string[];
|
|
645
950
|
/**
|
|
646
951
|
* The array of data source GUIDs to set on load.
|
|
647
952
|
*
|
|
648
953
|
* @version: SDK: 1.19.0
|
|
954
|
+
* @example
|
|
955
|
+
* ```js
|
|
956
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
957
|
+
* ... // other options
|
|
958
|
+
* dataSource:'id-234',
|
|
959
|
+
* })
|
|
960
|
+
* ```
|
|
649
961
|
*/
|
|
650
962
|
dataSource?: string;
|
|
651
963
|
/**
|
|
@@ -678,6 +990,15 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
|
|
|
678
990
|
searchOptions?: SearchOptions;
|
|
679
991
|
/**
|
|
680
992
|
* The GUID of a saved answer to load initially.
|
|
993
|
+
*
|
|
994
|
+
* @version: SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
|
|
995
|
+
* @example
|
|
996
|
+
* ```js
|
|
997
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
998
|
+
* ... // other options
|
|
999
|
+
* answerId:'sed-1234',
|
|
1000
|
+
* })
|
|
1001
|
+
* ```
|
|
681
1002
|
*/
|
|
682
1003
|
answerId?: string;
|
|
683
1004
|
/**
|
|
@@ -685,6 +1006,13 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
|
|
|
685
1006
|
* The chart/table should still be visible.
|
|
686
1007
|
*
|
|
687
1008
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
|
|
1009
|
+
* @example
|
|
1010
|
+
* ```js
|
|
1011
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
1012
|
+
* ... // other options
|
|
1013
|
+
* hideSearchBar:true,
|
|
1014
|
+
* })
|
|
1015
|
+
* ```
|
|
688
1016
|
*/
|
|
689
1017
|
hideSearchBar?: boolean;
|
|
690
1018
|
/**
|
|
@@ -692,6 +1020,13 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
|
|
|
692
1020
|
*
|
|
693
1021
|
* @default false
|
|
694
1022
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
1023
|
+
* @example
|
|
1024
|
+
* ```js
|
|
1025
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
1026
|
+
* ... // other options
|
|
1027
|
+
* dataPanelV2:false,
|
|
1028
|
+
* })
|
|
1029
|
+
* ```
|
|
695
1030
|
*/
|
|
696
1031
|
dataPanelV2?: boolean;
|
|
697
1032
|
/**
|
|
@@ -725,7 +1060,7 @@ export class SearchEmbed extends TsEmbed {
|
|
|
725
1060
|
/**
|
|
726
1061
|
* Render the embedded ThoughtSpot search
|
|
727
1062
|
*/
|
|
728
|
-
render(): SearchEmbed
|
|
1063
|
+
render(): Promise<SearchEmbed>;
|
|
729
1064
|
}
|
|
730
1065
|
|
|
731
1066
|
/**
|
|
@@ -737,18 +1072,44 @@ export interface SearchBarViewConfig extends Omit<ViewConfig, 'runtimeFilters' |
|
|
|
737
1072
|
* Only a single data source is supported currently.
|
|
738
1073
|
*
|
|
739
1074
|
* @deprecated Use `dataSource` instead
|
|
1075
|
+
*
|
|
1076
|
+
* @version: SDK: 1.1.0 | ThoughtSpot: 8.1.1-sw
|
|
1077
|
+
*
|
|
1078
|
+
* @example
|
|
1079
|
+
* ```js
|
|
1080
|
+
* const embed = new SearchBarEmbed('#tsEmbed', {
|
|
1081
|
+
* ... // other options
|
|
1082
|
+
* dataSources:['id-2345','id-2345'],
|
|
1083
|
+
* })
|
|
1084
|
+
* ```
|
|
740
1085
|
*/
|
|
741
1086
|
dataSources?: string[];
|
|
742
1087
|
/**
|
|
743
|
-
*
|
|
1088
|
+
* Pass the ID of the source to be selected.
|
|
744
1089
|
*
|
|
745
1090
|
* @version: SDK: 1.19.0, ThoughtSpot 9.0.0.cl, 9.0.1.sw
|
|
1091
|
+
*
|
|
1092
|
+
* @example
|
|
1093
|
+
* ```js
|
|
1094
|
+
* const embed = new SearchBarEmbed('#tsEmbed', {
|
|
1095
|
+
* ... // other options
|
|
1096
|
+
* dataSource:'id-2345',
|
|
1097
|
+
* })
|
|
1098
|
+
* ```
|
|
746
1099
|
*/
|
|
747
1100
|
dataSource?: string;
|
|
748
1101
|
/**
|
|
749
1102
|
* Boolean to define if the last selected data source should be used
|
|
750
1103
|
*
|
|
751
1104
|
* @version: SDK: 1.24.0, ThoughtSpot 9.5.0.cl, 9.5.0.sw
|
|
1105
|
+
*
|
|
1106
|
+
* @example
|
|
1107
|
+
* ```js
|
|
1108
|
+
* const embed = new SearchBarEmbed('#tsEmbed', {
|
|
1109
|
+
* ... // other options
|
|
1110
|
+
* useLastSelectedSources:false,
|
|
1111
|
+
* })
|
|
1112
|
+
* ```
|
|
752
1113
|
*/
|
|
753
1114
|
useLastSelectedSources?: boolean;
|
|
754
1115
|
/**
|
|
@@ -762,12 +1123,17 @@ export interface SearchBarViewConfig extends Omit<ViewConfig, 'runtimeFilters' |
|
|
|
762
1123
|
* If it’s not executed, the focus is placed at the end of
|
|
763
1124
|
* the token string in the search bar.
|
|
764
1125
|
*
|
|
1126
|
+
* @version: SDK: 1.2.0 | ThoughtSpot: 9.4.0.sw
|
|
1127
|
+
*
|
|
765
1128
|
* @example
|
|
766
1129
|
* ```js
|
|
767
|
-
*
|
|
768
|
-
*
|
|
769
|
-
*
|
|
770
|
-
*
|
|
1130
|
+
* const embed = new SearchBarEmbed('#tsEmbed', {
|
|
1131
|
+
* ... // other options
|
|
1132
|
+
* searchOptions: {
|
|
1133
|
+
* searchTokenString: '[quantity purchased] [region]',
|
|
1134
|
+
* executeSearch: true,
|
|
1135
|
+
* }
|
|
1136
|
+
* })
|
|
771
1137
|
* ```
|
|
772
1138
|
*/
|
|
773
1139
|
searchOptions?: SearchOptions;
|
|
@@ -788,7 +1154,7 @@ export class SearchBarEmbed extends TsEmbed {
|
|
|
788
1154
|
/**
|
|
789
1155
|
* Render the embedded ThoughtSpot search
|
|
790
1156
|
*/
|
|
791
|
-
render(): SearchBarEmbed
|
|
1157
|
+
render(): Promise<SearchBarEmbed>;
|
|
792
1158
|
}
|
|
793
1159
|
|
|
794
1160
|
export let loggedInStatus: boolean;
|
|
@@ -873,7 +1239,22 @@ export interface AuthEventEmitter {
|
|
|
873
1239
|
*
|
|
874
1240
|
* @param {@link AuthEvent}
|
|
875
1241
|
*/
|
|
876
|
-
emit(event: AuthEvent):
|
|
1242
|
+
emit(event: AuthEvent, ...args: any[]): boolean;
|
|
1243
|
+
/**
|
|
1244
|
+
* Remove listener from the emitter returned from init.
|
|
1245
|
+
*
|
|
1246
|
+
* @param event
|
|
1247
|
+
* @param listener
|
|
1248
|
+
* @param context
|
|
1249
|
+
* @param once
|
|
1250
|
+
*/
|
|
1251
|
+
off(event: AuthStatus, listener: (...args: any[]) => void, context: any, once: boolean): this;
|
|
1252
|
+
/**
|
|
1253
|
+
* Remove all the event listeners
|
|
1254
|
+
*
|
|
1255
|
+
* @param event
|
|
1256
|
+
*/
|
|
1257
|
+
removeAllListeners(event: AuthStatus): this;
|
|
877
1258
|
}
|
|
878
1259
|
/**
|
|
879
1260
|
* Events which can be triggered on the emitter returned from {@link init}.
|
|
@@ -1106,6 +1487,7 @@ export enum AuthType {
|
|
|
1106
1487
|
* .then((data) => data.token);
|
|
1107
1488
|
* }
|
|
1108
1489
|
* });
|
|
1490
|
+
* });
|
|
1109
1491
|
* ```
|
|
1110
1492
|
*/
|
|
1111
1493
|
TrustedAuthToken = "AuthServer",
|
|
@@ -1138,16 +1520,39 @@ export enum AuthType {
|
|
|
1138
1520
|
*/
|
|
1139
1521
|
Basic = "Basic"
|
|
1140
1522
|
}
|
|
1523
|
+
/**
|
|
1524
|
+
*
|
|
1525
|
+
* This option does not apply to the classic homepage experience.
|
|
1526
|
+
* To access the updated modular homepage,
|
|
1527
|
+
* set `modularHomeExperience` to `true`
|
|
1528
|
+
* (available as Early Access feature in 9.12.5.cl).
|
|
1529
|
+
*
|
|
1530
|
+
*/
|
|
1141
1531
|
export enum HomeLeftNavItem {
|
|
1142
|
-
|
|
1532
|
+
/**
|
|
1533
|
+
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
1534
|
+
*/
|
|
1535
|
+
SearchData = "search-data",
|
|
1536
|
+
/**
|
|
1537
|
+
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
1538
|
+
*/
|
|
1143
1539
|
Home = "insights-home",
|
|
1540
|
+
/**
|
|
1541
|
+
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
1542
|
+
*/
|
|
1144
1543
|
Liveboards = "liveboards",
|
|
1544
|
+
/**
|
|
1545
|
+
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
1546
|
+
*/
|
|
1145
1547
|
Answers = "answers",
|
|
1548
|
+
/**
|
|
1549
|
+
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
1550
|
+
*/
|
|
1146
1551
|
MonitorSubscription = "monitor-alerts",
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1552
|
+
/**
|
|
1553
|
+
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
1554
|
+
*/
|
|
1555
|
+
SpotIQAnalysis = "spotiq-analysis"
|
|
1151
1556
|
}
|
|
1152
1557
|
export type DOMSelector = string | HTMLElement;
|
|
1153
1558
|
/**
|
|
@@ -1203,6 +1608,8 @@ export interface CustomStyles {
|
|
|
1203
1608
|
/**
|
|
1204
1609
|
* Configuration to define the customization on the Embedded
|
|
1205
1610
|
* Thoughtspot components.
|
|
1611
|
+
* You can customize styles, text strings, and icons.
|
|
1612
|
+
* For more information, see https://developers.thoughtspot.com/docs/custom-css.
|
|
1206
1613
|
*
|
|
1207
1614
|
* @example
|
|
1208
1615
|
* ```js
|
|
@@ -1217,7 +1624,12 @@ export interface CustomStyles {
|
|
|
1217
1624
|
* },
|
|
1218
1625
|
* content: {
|
|
1219
1626
|
* strings: {
|
|
1220
|
-
* 'LIVEBOARDS': 'Dashboards'
|
|
1627
|
+
* 'LIVEBOARDS': 'Dashboards',
|
|
1628
|
+
* 'ANSWERS': 'Visualizations',
|
|
1629
|
+
* 'Edit': 'Modify',
|
|
1630
|
+
* 'Show underlying data': 'Show source data',
|
|
1631
|
+
* 'SpotIQ': 'Insights',
|
|
1632
|
+
* 'Monitor': 'Alerts',
|
|
1221
1633
|
* }
|
|
1222
1634
|
* },
|
|
1223
1635
|
* iconSpriteUrl: 'https://my-custom-icon-sprite.svg'
|
|
@@ -1249,12 +1661,6 @@ export interface EmbedConfig {
|
|
|
1249
1661
|
* The ThoughtSpot cluster hostname or IP address.
|
|
1250
1662
|
*/
|
|
1251
1663
|
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
1664
|
/**
|
|
1259
1665
|
* The authentication mechanism to use.
|
|
1260
1666
|
*/
|
|
@@ -1499,6 +1905,12 @@ export interface EmbedConfig {
|
|
|
1499
1905
|
* @version SDK: 1.26.7 | ThoughtSpot: 9.10.0.cl
|
|
1500
1906
|
*/
|
|
1501
1907
|
logLevel?: LogLevel;
|
|
1908
|
+
/**
|
|
1909
|
+
* Disables the Mixpanel tracking from the SDK.
|
|
1910
|
+
*
|
|
1911
|
+
* @version SDK: 1.27.9
|
|
1912
|
+
*/
|
|
1913
|
+
disableSDKTracking?: boolean;
|
|
1502
1914
|
}
|
|
1503
1915
|
export interface LayoutConfig {
|
|
1504
1916
|
}
|
|
@@ -1537,8 +1949,20 @@ export interface ViewConfig {
|
|
|
1537
1949
|
*/
|
|
1538
1950
|
layoutConfig?: LayoutConfig;
|
|
1539
1951
|
/**
|
|
1540
|
-
* The
|
|
1952
|
+
* The width and height dimensions to render an embedded
|
|
1541
1953
|
* object inside your app. Specify the values in pixels or percentage.
|
|
1954
|
+
*
|
|
1955
|
+
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1
|
|
1956
|
+
* @example
|
|
1957
|
+
* ```js
|
|
1958
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
1959
|
+
* ... // other liveboard view config
|
|
1960
|
+
* frameParams: {
|
|
1961
|
+
* width: '500px' | '50%',
|
|
1962
|
+
* height: '400px' | '60%',
|
|
1963
|
+
* },
|
|
1964
|
+
* });
|
|
1965
|
+
* ```
|
|
1542
1966
|
*/
|
|
1543
1967
|
frameParams?: FrameParams;
|
|
1544
1968
|
/**
|
|
@@ -1555,6 +1979,7 @@ export interface ViewConfig {
|
|
|
1555
1979
|
* for the user.
|
|
1556
1980
|
* Use this to disable actions.
|
|
1557
1981
|
*
|
|
1982
|
+
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
1558
1983
|
* @example
|
|
1559
1984
|
* ```js
|
|
1560
1985
|
* const embed = new LiveboardEmbed('#embed', {
|
|
@@ -1566,6 +1991,16 @@ export interface ViewConfig {
|
|
|
1566
1991
|
disabledActions?: Action[];
|
|
1567
1992
|
/**
|
|
1568
1993
|
* The tooltip to display for disabled actions.
|
|
1994
|
+
*
|
|
1995
|
+
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
1996
|
+
* @example
|
|
1997
|
+
* ```js
|
|
1998
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
1999
|
+
* ... // other liveboard view config
|
|
2000
|
+
* disabledActions: [Action.Download, Action.Save]
|
|
2001
|
+
* disabledActionReason: "Reason for disabling",
|
|
2002
|
+
* });
|
|
2003
|
+
* ```
|
|
1569
2004
|
*/
|
|
1570
2005
|
disabledActionReason?: string;
|
|
1571
2006
|
/**
|
|
@@ -1573,6 +2008,7 @@ export interface ViewConfig {
|
|
|
1573
2008
|
* This actions will be hidden from the user.
|
|
1574
2009
|
* Use this to hide an action.
|
|
1575
2010
|
*
|
|
2011
|
+
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
1576
2012
|
* @example
|
|
1577
2013
|
* ```js
|
|
1578
2014
|
* const embed = new LiveboardEmbed('#embed', {
|
|
@@ -1593,17 +2029,46 @@ export interface ViewConfig {
|
|
|
1593
2029
|
*
|
|
1594
2030
|
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
1595
2031
|
* @important
|
|
2032
|
+
* @example
|
|
2033
|
+
* ```js
|
|
2034
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
2035
|
+
* ... // other liveboard view config
|
|
2036
|
+
* visibleActions: [Action.Download, Action.Export]
|
|
2037
|
+
* });
|
|
2038
|
+
* ```
|
|
1596
2039
|
*/
|
|
1597
2040
|
visibleActions?: Action[];
|
|
1598
2041
|
/**
|
|
1599
2042
|
* Show alert messages and toast messages in the embedded view.
|
|
1600
2043
|
*
|
|
1601
2044
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2045
|
+
* @example
|
|
2046
|
+
* ```js
|
|
2047
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2048
|
+
* ... // other options
|
|
2049
|
+
* showAlerts:true,
|
|
2050
|
+
* })
|
|
2051
|
+
* ```
|
|
1602
2052
|
*/
|
|
1603
2053
|
showAlerts?: boolean;
|
|
1604
2054
|
/**
|
|
1605
2055
|
* The list of runtime filters to apply to a search answer,
|
|
1606
2056
|
* visualization, or Liveboard.
|
|
2057
|
+
*
|
|
2058
|
+
* @version SDK: 1.9.4 | ThoughtSpot 8.1.0.cl, 8.4.1.sw
|
|
2059
|
+
* @example
|
|
2060
|
+
* ```js
|
|
2061
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2062
|
+
* ... // other options
|
|
2063
|
+
* runtimeFilters: [
|
|
2064
|
+
* {
|
|
2065
|
+
* columnName: 'value',
|
|
2066
|
+
* operator: RuntimeFilterOp.EQ,
|
|
2067
|
+
* values: ['string' | 123 | true],
|
|
2068
|
+
* },
|
|
2069
|
+
* ],
|
|
2070
|
+
* })
|
|
2071
|
+
* ```
|
|
1607
2072
|
*/
|
|
1608
2073
|
runtimeFilters?: RuntimeFilter[];
|
|
1609
2074
|
/**
|
|
@@ -1611,12 +2076,31 @@ export interface ViewConfig {
|
|
|
1611
2076
|
* visualization, or Liveboard.
|
|
1612
2077
|
*
|
|
1613
2078
|
* @version SDK : 1.25.0 | Thoughtspot: 9.2.0.cl, 9.5.0.sw
|
|
2079
|
+
* @example
|
|
2080
|
+
* ```js
|
|
2081
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2082
|
+
* ... // other options
|
|
2083
|
+
* runtimeParameters: [
|
|
2084
|
+
* {
|
|
2085
|
+
* name: 'value',
|
|
2086
|
+
* value: 'string' | 123 | true,
|
|
2087
|
+
* },
|
|
2088
|
+
* ],
|
|
2089
|
+
* })
|
|
2090
|
+
* ```
|
|
1614
2091
|
*/
|
|
1615
2092
|
runtimeParameters?: RuntimeParameter[];
|
|
1616
2093
|
/**
|
|
1617
2094
|
* The locale/language to use for the embedded view.
|
|
1618
2095
|
*
|
|
1619
2096
|
* @version SDK: 1.9.4 | ThoughtSpot 8.1.0.cl, 8.4.1.sw
|
|
2097
|
+
* @example
|
|
2098
|
+
* ```js
|
|
2099
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2100
|
+
* ... // other options
|
|
2101
|
+
* locale:'en',
|
|
2102
|
+
* })
|
|
2103
|
+
* ```
|
|
1620
2104
|
*/
|
|
1621
2105
|
locale?: string;
|
|
1622
2106
|
/**
|
|
@@ -1627,6 +2111,16 @@ export interface ViewConfig {
|
|
|
1627
2111
|
* to control embed behavior in non-regular ways. We do not publish the
|
|
1628
2112
|
* list of supported keys and values associated with each.
|
|
1629
2113
|
*
|
|
2114
|
+
* @example
|
|
2115
|
+
* ```js
|
|
2116
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
2117
|
+
* ... // other liveboard view config
|
|
2118
|
+
* additionalFlags: {
|
|
2119
|
+
* flag1: 'value1',
|
|
2120
|
+
* flag2: 'value2'
|
|
2121
|
+
* }
|
|
2122
|
+
* });
|
|
2123
|
+
* ```
|
|
1630
2124
|
* @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
|
|
1631
2125
|
*/
|
|
1632
2126
|
additionalFlags?: {
|
|
@@ -1643,18 +2137,41 @@ export interface ViewConfig {
|
|
|
1643
2137
|
/**
|
|
1644
2138
|
* Insert as a sibling of the target container, instead of appending to a
|
|
1645
2139
|
* child inside it.
|
|
2140
|
+
*
|
|
2141
|
+
* @version SDK: 1.2.0 | Thoughtspot: 9.0.0.cl, 9.0.0.sw
|
|
2142
|
+
* @example
|
|
2143
|
+
* ```js
|
|
2144
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2145
|
+
* ... // other options
|
|
2146
|
+
* insertAsSibling:true,
|
|
2147
|
+
* })
|
|
2148
|
+
* ```
|
|
1646
2149
|
*/
|
|
1647
2150
|
insertAsSibling?: boolean;
|
|
1648
2151
|
/**
|
|
1649
2152
|
* flag to set ContextMenu Trigger to either left or right click.
|
|
1650
2153
|
*
|
|
2154
|
+
* @example
|
|
2155
|
+
* ```js
|
|
2156
|
+
* const embed = new LiveboardEmbed('#tsEmbed', {
|
|
2157
|
+
* ... // other options
|
|
2158
|
+
* contextMenuTrigger:ContextMenuTriggerOptions.LEFT_CLICK || RIGHT_CLICK,
|
|
2159
|
+
* })
|
|
2160
|
+
* ```
|
|
1651
2161
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
1652
2162
|
*/
|
|
1653
2163
|
contextMenuTrigger?: ContextMenuTriggerOptions;
|
|
1654
2164
|
/**
|
|
1655
|
-
*
|
|
2165
|
+
* Flag to override openNew tab context menu link
|
|
1656
2166
|
*
|
|
1657
2167
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
2168
|
+
* @example
|
|
2169
|
+
* ```js
|
|
2170
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2171
|
+
* ... // other options
|
|
2172
|
+
* linkOverride:false,
|
|
2173
|
+
* })
|
|
2174
|
+
* ```
|
|
1658
2175
|
*/
|
|
1659
2176
|
linkOverride?: boolean;
|
|
1660
2177
|
/**
|
|
@@ -1676,9 +2193,14 @@ export interface ViewConfig {
|
|
|
1676
2193
|
usePrerenderedIfAvailable?: boolean;
|
|
1677
2194
|
/**
|
|
1678
2195
|
* Boolean to exclude runtimeFilters in the URL
|
|
2196
|
+
* By default it is true, this flag removes runtime filters from the URL
|
|
2197
|
+
* when set to false, runtime filters will be included in the URL.
|
|
1679
2198
|
*
|
|
1680
|
-
*
|
|
1681
|
-
*
|
|
2199
|
+
* Irrespective of this flag, runtime filters ( if passed ) will be applied to the
|
|
2200
|
+
* embedded view.
|
|
2201
|
+
*
|
|
2202
|
+
* @default true
|
|
2203
|
+
* @version SDK: 1.24.0 | ThoughtSpot: 9.5.0.cl
|
|
1682
2204
|
*/
|
|
1683
2205
|
excludeRuntimeFiltersfromURL?: boolean;
|
|
1684
2206
|
/**
|
|
@@ -1700,16 +2222,42 @@ export interface ViewConfig {
|
|
|
1700
2222
|
hiddenTabs?: string[];
|
|
1701
2223
|
/**
|
|
1702
2224
|
* Hide the home page modules
|
|
1703
|
-
*
|
|
2225
|
+
* For example: hiddenHomepageModules = [HomepageModule.MyLibrary]
|
|
2226
|
+
*
|
|
1704
2227
|
*
|
|
1705
|
-
*
|
|
2228
|
+
*
|
|
2229
|
+
* **Note**: This option does not apply to the classic homepage.
|
|
2230
|
+
* To access the updated modular homepage, set
|
|
2231
|
+
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.0.cl).
|
|
2232
|
+
*
|
|
2233
|
+
* @version SDK: 1.28.0 | Thoughtspot: 9.12.5.cl
|
|
2234
|
+
* @example
|
|
2235
|
+
* ```js
|
|
2236
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
2237
|
+
* ... // other options
|
|
2238
|
+
* hiddenHomepageModules : [HomepageModule.Favorite,HomepageModule.Learning],
|
|
2239
|
+
* })
|
|
2240
|
+
* ```
|
|
1706
2241
|
*/
|
|
1707
2242
|
hiddenHomepageModules?: HomepageModule[];
|
|
1708
2243
|
/**
|
|
1709
2244
|
* reordering the home page modules
|
|
1710
2245
|
* eg: reorderedHomepageModules = [HomepageModule.MyLibrary, HomepageModule.Watchlist]
|
|
1711
2246
|
*
|
|
1712
|
-
*
|
|
2247
|
+
*
|
|
2248
|
+
* **Note**: This option does not apply to the classic homepage.
|
|
2249
|
+
* To access the updated modular homepage, set
|
|
2250
|
+
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
2251
|
+
*
|
|
2252
|
+
* @version SDK: 1.28.0| Thoughtspot: 9.12.5.cl
|
|
2253
|
+
*
|
|
2254
|
+
* @example
|
|
2255
|
+
* ```js
|
|
2256
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
2257
|
+
* ... // other options
|
|
2258
|
+
* reorderedHomepageModules:[HomepageModule.Favorite,HomepageModule.MyLibrary]
|
|
2259
|
+
* })
|
|
2260
|
+
* ```
|
|
1713
2261
|
*/
|
|
1714
2262
|
reorderedHomepageModules?: HomepageModule[];
|
|
1715
2263
|
/**
|
|
@@ -1718,13 +2266,17 @@ export interface ViewConfig {
|
|
|
1718
2266
|
*
|
|
1719
2267
|
* Use either `visibleTabs` or `hiddenTabs`.
|
|
1720
2268
|
*
|
|
2269
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
1721
2270
|
* @example
|
|
1722
2271
|
* ```js
|
|
1723
|
-
*
|
|
1724
|
-
*
|
|
1725
|
-
*
|
|
2272
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2273
|
+
* ... // other options
|
|
2274
|
+
* visibleTabs: [
|
|
2275
|
+
* '430496d6-6903-4601-937e-2c691821af3c',
|
|
2276
|
+
* 'f547ec54-2a37-4516-a222-2b06719af726'
|
|
2277
|
+
* ]
|
|
2278
|
+
* })
|
|
1726
2279
|
* ```
|
|
1727
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
1728
2280
|
*/
|
|
1729
2281
|
visibleTabs?: string[];
|
|
1730
2282
|
/**
|
|
@@ -1732,11 +2284,22 @@ export interface ViewConfig {
|
|
|
1732
2284
|
* There are 8 eight home navigation list items.
|
|
1733
2285
|
* To hide these items, specify the string in the array.
|
|
1734
2286
|
*
|
|
2287
|
+
* @version SDK: 1.27.0 | Thoughtspot: 9.10.0.cl
|
|
2288
|
+
* @example
|
|
1735
2289
|
* ```js
|
|
1736
|
-
*
|
|
2290
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
2291
|
+
* ... // other options
|
|
2292
|
+
* hiddenHomeLeftNavItems : [HomeLeftNavItem.Home,HomeLeftNavItem.Answers],
|
|
2293
|
+
* })
|
|
1737
2294
|
* ```
|
|
1738
2295
|
*
|
|
1739
|
-
*
|
|
2296
|
+
*
|
|
2297
|
+
*
|
|
2298
|
+
* **Note**: This option does not apply to the classic homepage.
|
|
2299
|
+
* To access the updated modular homepage, set
|
|
2300
|
+
* `modularHomeExperience` to `true` (available in Early Access from 9.12 forward).
|
|
2301
|
+
*
|
|
2302
|
+
* @version SDK: 1.28.0 | Thoughtspot: 9.12.5.cl
|
|
1740
2303
|
*/
|
|
1741
2304
|
hiddenHomeLeftNavItems?: HomeLeftNavItem[];
|
|
1742
2305
|
/**
|
|
@@ -1763,7 +2326,9 @@ export interface ViewConfig {
|
|
|
1763
2326
|
*
|
|
1764
2327
|
* @type {boolean}
|
|
1765
2328
|
* @default false
|
|
2329
|
+
* @version SDK: 1.24.0 | ThoughtSpot:9.4.0.cl, 9.4.0.sw
|
|
1766
2330
|
* @example
|
|
2331
|
+
* ```js
|
|
1767
2332
|
* // Disable tracking PreRender size in the configuration
|
|
1768
2333
|
* const config = {
|
|
1769
2334
|
* doNotTrackPreRenderSize: true,
|
|
@@ -1771,6 +2336,7 @@ export interface ViewConfig {
|
|
|
1771
2336
|
*
|
|
1772
2337
|
* // Instantiate an object with the configuration
|
|
1773
2338
|
* const myComponent = new MyComponent(config);
|
|
2339
|
+
* ```
|
|
1774
2340
|
*/
|
|
1775
2341
|
doNotTrackPreRenderSize?: boolean;
|
|
1776
2342
|
/**
|
|
@@ -1891,7 +2457,12 @@ export enum RuntimeFilterOp {
|
|
|
1891
2457
|
IN = "IN"
|
|
1892
2458
|
}
|
|
1893
2459
|
/**
|
|
1894
|
-
* Home page module that can be hidden
|
|
2460
|
+
* Home page module that can be hidden.
|
|
2461
|
+
* **Note**: This option does not apply to the classic homepage.
|
|
2462
|
+
* To access the updated modular homepage, set
|
|
2463
|
+
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
2464
|
+
*
|
|
2465
|
+
* @version SDK: 1.28.0 | Thoughtspot: 9.12.5.cl
|
|
1895
2466
|
*/
|
|
1896
2467
|
export enum HomepageModule {
|
|
1897
2468
|
/**
|
|
@@ -2050,7 +2621,7 @@ export enum EmbedEvent {
|
|
|
2050
2621
|
* @returns nonFilteredColumns - The columns that were not filtered
|
|
2051
2622
|
* @example
|
|
2052
2623
|
*```js
|
|
2053
|
-
* searchEmbed.trigger(
|
|
2624
|
+
* searchEmbed.trigger(EmbedEvent.DrillDown, {
|
|
2054
2625
|
* points: {
|
|
2055
2626
|
* clickedPoint,
|
|
2056
2627
|
* selectedPoints: selectedPoint
|
|
@@ -2142,7 +2713,7 @@ export enum EmbedEvent {
|
|
|
2142
2713
|
* @important
|
|
2143
2714
|
* @example
|
|
2144
2715
|
* ```js
|
|
2145
|
-
* embed.on(
|
|
2716
|
+
* embed.on(EmbedEvent.VizPointClick, ({data}) => {
|
|
2146
2717
|
* console.log(
|
|
2147
2718
|
* data.vizId, // viz id
|
|
2148
2719
|
* data.clickedPoint.selectedAttributes[0].value,
|
|
@@ -2157,19 +2728,21 @@ export enum EmbedEvent {
|
|
|
2157
2728
|
/**
|
|
2158
2729
|
* An error has occurred. This event is fired for the following error types:
|
|
2159
2730
|
*
|
|
2160
|
-
*
|
|
2731
|
+
* API - API call failure error.
|
|
2161
2732
|
*
|
|
2162
|
-
*
|
|
2733
|
+
* FULLSCREEN - Error when presenting a Liveboard or visualization in full screen
|
|
2734
|
+
* mode.
|
|
2163
2735
|
*
|
|
2164
|
-
*
|
|
2736
|
+
* SINGLE_VALUE_FILTER - Error due to multiple values in the single value filter.
|
|
2165
2737
|
*
|
|
2166
|
-
*
|
|
2738
|
+
* NON_EXIST_FILTER - Error due to a non-existent filter.
|
|
2167
2739
|
*
|
|
2168
|
-
*
|
|
2740
|
+
* INVALID_DATE_VALUE - Invalid date value error.
|
|
2169
2741
|
*
|
|
2170
|
-
*
|
|
2742
|
+
* INVALID_OPERATOR - Use of invalid operator during filter application.
|
|
2171
2743
|
*
|
|
2172
2744
|
* For more information, see [Developer Documentation](https://developers.thoughtspot.com/docs/events-app-integration#errorType)
|
|
2745
|
+
*
|
|
2173
2746
|
* @returns error - An error object or message
|
|
2174
2747
|
* @example
|
|
2175
2748
|
* ```js
|
|
@@ -2734,7 +3307,7 @@ export enum EmbedEvent {
|
|
|
2734
3307
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2735
3308
|
* @example
|
|
2736
3309
|
*```js
|
|
2737
|
-
* liveboardEmbed.trigger(
|
|
3310
|
+
* liveboardEmbed.trigger(EmbedEvent.Delete,
|
|
2738
3311
|
* {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
2739
3312
|
*```
|
|
2740
3313
|
*/
|
|
@@ -2745,7 +3318,7 @@ export enum EmbedEvent {
|
|
|
2745
3318
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2746
3319
|
* @example
|
|
2747
3320
|
*```js
|
|
2748
|
-
* liveboardEmbed.trigger(
|
|
3321
|
+
* liveboardEmbed.trigger(EmbedEvent.SchedulesList)
|
|
2749
3322
|
*```
|
|
2750
3323
|
*/
|
|
2751
3324
|
SchedulesList = "schedule-list",
|
|
@@ -2755,7 +3328,7 @@ export enum EmbedEvent {
|
|
|
2755
3328
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2756
3329
|
* @example
|
|
2757
3330
|
*```js
|
|
2758
|
-
* liveboardEmbed.trigger(
|
|
3331
|
+
* liveboardEmbed.trigger(EmbedEvent.Cancel)
|
|
2759
3332
|
*```
|
|
2760
3333
|
*/
|
|
2761
3334
|
Cancel = "cancel",
|
|
@@ -2765,7 +3338,7 @@ export enum EmbedEvent {
|
|
|
2765
3338
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2766
3339
|
* @example
|
|
2767
3340
|
*```js
|
|
2768
|
-
* liveboardEmbed.trigger(
|
|
3341
|
+
* liveboardEmbed.trigger(EmbedEvent.Explore, {
|
|
2769
3342
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
2770
3343
|
*```
|
|
2771
3344
|
*/
|
|
@@ -2776,7 +3349,7 @@ export enum EmbedEvent {
|
|
|
2776
3349
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2777
3350
|
* @example
|
|
2778
3351
|
*```js
|
|
2779
|
-
* liveboardEmbed.trigger(
|
|
3352
|
+
* liveboardEmbed.trigger(EmbedEvent.CopyLink, {
|
|
2780
3353
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
2781
3354
|
*```
|
|
2782
3355
|
*/
|
|
@@ -3045,10 +3618,13 @@ export enum HostEvent {
|
|
|
3045
3618
|
* _String_. The name of the column to filter on.
|
|
3046
3619
|
* `operator`
|
|
3047
3620
|
* Runtime filter operator to apply. For information,
|
|
3048
|
-
* see
|
|
3621
|
+
* see https://developers.thoughtspot.com/docs/?pageid=runtime-filters#rtOperator.
|
|
3049
3622
|
* `values`
|
|
3050
3623
|
* List of operands. Some operators such as EQ, LE allow a single value, whereas
|
|
3051
3624
|
* operators such as BW and IN accept multiple operands.
|
|
3625
|
+
* **Note**: `HostEvent.UpdateRuntimeFilters` is not supported in
|
|
3626
|
+
* Search embedding (SearchEmbed) and Natural Language Search
|
|
3627
|
+
* embedding (SageEmbed).
|
|
3052
3628
|
*
|
|
3053
3629
|
* @param - {@link RuntimeFilter}[] an array of {@link RuntimeFilter} Types.
|
|
3054
3630
|
* @example
|
|
@@ -3573,6 +4149,7 @@ export enum HostEvent {
|
|
|
3573
4149
|
/**
|
|
3574
4150
|
*
|
|
3575
4151
|
* Get the currents visible and runtime filters applied on a Liveboard
|
|
4152
|
+
*
|
|
3576
4153
|
* @example
|
|
3577
4154
|
* liveboardEmbed.trigger(HostEvent.GetFilters)
|
|
3578
4155
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
@@ -3581,12 +4158,13 @@ export enum HostEvent {
|
|
|
3581
4158
|
/**
|
|
3582
4159
|
*
|
|
3583
4160
|
* Update the visible filters on the Liveboard.
|
|
4161
|
+
*
|
|
3584
4162
|
* @param - filter: filter object containing column name and filter operation and values
|
|
3585
4163
|
* @example
|
|
3586
4164
|
*
|
|
3587
4165
|
* ```js
|
|
3588
4166
|
* liveboardEmbed.trigger(HostEvent.UpdateFilters, {
|
|
3589
|
-
* filter: { column: 'column name', oper: '
|
|
4167
|
+
* filter: { column: 'column name', oper: 'IN', values: [1,2,3], is_mandatory: false }
|
|
3590
4168
|
* })
|
|
3591
4169
|
* ```
|
|
3592
4170
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
@@ -3672,7 +4250,33 @@ export enum HostEvent {
|
|
|
3672
4250
|
* ```
|
|
3673
4251
|
* @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
|
|
3674
4252
|
*/
|
|
3675
|
-
AskSage = "AskSage"
|
|
4253
|
+
AskSage = "AskSage",
|
|
4254
|
+
/**
|
|
4255
|
+
* Trigger UpdateCrossFilter for Liveboard
|
|
4256
|
+
*
|
|
4257
|
+
* @example
|
|
4258
|
+
* ```js
|
|
4259
|
+
* liveboardEmbed.trigger(HostEvent.UpdateCrossFilter, {
|
|
4260
|
+
* vizId: 'b535c760-8bbe-4e6f-bb26-af56b4129a1e',
|
|
4261
|
+
* conditions: [
|
|
4262
|
+
* { columnName: 'Category', values: ['mfgr#12','mfgr#14'] },
|
|
4263
|
+
* { columnName: 'color', values: ['mint','hot'] },
|
|
4264
|
+
* ],
|
|
4265
|
+
* });
|
|
4266
|
+
* ```
|
|
4267
|
+
* @version SDK: 1.29.0 | Thoughtspot: 10.0.0.cl
|
|
4268
|
+
*/
|
|
4269
|
+
UpdateCrossFilter = "UpdateCrossFilter",
|
|
4270
|
+
/**
|
|
4271
|
+
* Trigger ResetLiveboardPersonalisedView for Liveboard
|
|
4272
|
+
*
|
|
4273
|
+
* @example
|
|
4274
|
+
* ```js
|
|
4275
|
+
* liveboardEmbed.trigger(HostEvent.ResetLiveboardPersonalisedView);
|
|
4276
|
+
* ```
|
|
4277
|
+
* @version SDK: 1.29.0 | Thoughtspot: 10.1.0.cl
|
|
4278
|
+
*/
|
|
4279
|
+
ResetLiveboardPersonalisedView = "ResetLiveboardPersonalisedView"
|
|
3676
4280
|
}
|
|
3677
4281
|
/**
|
|
3678
4282
|
* The different visual modes that the data sources panel within
|
|
@@ -4640,6 +5244,7 @@ export enum Action {
|
|
|
4640
5244
|
AskAi = "AskAi",
|
|
4641
5245
|
/**
|
|
4642
5246
|
* The **Add KPI to Watchlist** action on Home page watchlist.
|
|
5247
|
+
*
|
|
4643
5248
|
* @example
|
|
4644
5249
|
* ```js
|
|
4645
5250
|
* disabledActions: [Action.AddToWatchlist]
|
|
@@ -4649,6 +5254,7 @@ export enum Action {
|
|
|
4649
5254
|
AddToWatchlist = "addToWatchlist",
|
|
4650
5255
|
/**
|
|
4651
5256
|
* The **Remove from watchlist** menu action on KPI watchlist.
|
|
5257
|
+
*
|
|
4652
5258
|
* @example
|
|
4653
5259
|
* ```js
|
|
4654
5260
|
* disabledActions: [Action.RemoveFromWatchlist]
|
|
@@ -4658,13 +5264,24 @@ export enum Action {
|
|
|
4658
5264
|
RemoveFromWatchlist = "removeFromWatchlist",
|
|
4659
5265
|
/**
|
|
4660
5266
|
* The **Copy KPI Link** menu action on KPI watchlist.
|
|
5267
|
+
*
|
|
4661
5268
|
* @example
|
|
4662
5269
|
* ```js
|
|
4663
5270
|
* disabledActions: [Action.CopyKpiLink]
|
|
4664
5271
|
* ```
|
|
4665
5272
|
* @version SDK : 1.27.9 | Thoughtspot: 9.12.5.cl
|
|
4666
5273
|
*/
|
|
4667
|
-
CopyKpiLink = "copyKpiLink"
|
|
5274
|
+
CopyKpiLink = "copyKpiLink",
|
|
5275
|
+
/**
|
|
5276
|
+
* Action ID for AI Highlights button
|
|
5277
|
+
*
|
|
5278
|
+
* @example
|
|
5279
|
+
* ```js
|
|
5280
|
+
* hiddenAction: [Action.AIHighlights]
|
|
5281
|
+
* ```
|
|
5282
|
+
* @version SDK: 1.27.10 | Thoughtspot: 9.12.5.cl
|
|
5283
|
+
*/
|
|
5284
|
+
AIHighlights = "AIHighlights"
|
|
4668
5285
|
}
|
|
4669
5286
|
export interface AnswerServiceType {
|
|
4670
5287
|
getAnswer?: (offset: number, batchSize: number) => any;
|
|
@@ -5304,7 +5921,7 @@ export class SageEmbed extends V1Embed {
|
|
|
5304
5921
|
*
|
|
5305
5922
|
* @returns {SageEmbed} Eureka/Sage embed
|
|
5306
5923
|
*/
|
|
5307
|
-
render(): SageEmbed
|
|
5924
|
+
render(): Promise<SageEmbed>;
|
|
5308
5925
|
}
|
|
5309
5926
|
|
|
5310
5927
|
export interface SessionInterface {
|
|
@@ -5483,6 +6100,17 @@ export function initMixpanel(sessionInfo: any): void;
|
|
|
5483
6100
|
*/
|
|
5484
6101
|
export function testResetMixpanel(): void;
|
|
5485
6102
|
|
|
6103
|
+
/**
|
|
6104
|
+
* Fetch wrapper that adds the authentication token to the request.
|
|
6105
|
+
* Use this to call the ThoughtSpot APIs when using the visual embed sdk.
|
|
6106
|
+
*
|
|
6107
|
+
* @param input
|
|
6108
|
+
* @param init
|
|
6109
|
+
* @version SDK: 1.28.0
|
|
6110
|
+
* @group Global methods
|
|
6111
|
+
*/
|
|
6112
|
+
export const tokenizedFetch: typeof fetch;
|
|
6113
|
+
|
|
5486
6114
|
/**
|
|
5487
6115
|
* Copyright (c) 2022
|
|
5488
6116
|
*
|
|
@@ -5675,7 +6303,7 @@ export class TsEmbed {
|
|
|
5675
6303
|
*
|
|
5676
6304
|
* @param args
|
|
5677
6305
|
*/
|
|
5678
|
-
render(): TsEmbed
|
|
6306
|
+
render(): Promise<TsEmbed>;
|
|
5679
6307
|
getIframeSrc(): string;
|
|
5680
6308
|
protected handleRenderForPrerender(): void;
|
|
5681
6309
|
/**
|