@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
|
@@ -234,7 +234,7 @@ export function useEmbedRef<T extends EmbedComponent>(): React.MutableRefObject<
|
|
|
234
234
|
* @summary ThoughtSpot Visual Embed SDK
|
|
235
235
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
236
236
|
*/
|
|
237
|
-
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, };
|
|
237
|
+
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, };
|
|
238
238
|
|
|
239
239
|
/**
|
|
240
240
|
* @group Embed components
|
|
@@ -245,18 +245,44 @@ export interface SearchBarViewConfig extends Omit<ViewConfig, 'runtimeFilters' |
|
|
|
245
245
|
* Only a single data source is supported currently.
|
|
246
246
|
*
|
|
247
247
|
* @deprecated Use `dataSource` instead
|
|
248
|
+
*
|
|
249
|
+
* @version: SDK: 1.1.0 | ThoughtSpot: 8.1.1-sw
|
|
250
|
+
*
|
|
251
|
+
* @example
|
|
252
|
+
* ```js
|
|
253
|
+
* const embed = new SearchBarEmbed('#tsEmbed', {
|
|
254
|
+
* ... // other options
|
|
255
|
+
* dataSources:['id-2345','id-2345'],
|
|
256
|
+
* })
|
|
257
|
+
* ```
|
|
248
258
|
*/
|
|
249
259
|
dataSources?: string[];
|
|
250
260
|
/**
|
|
251
|
-
*
|
|
261
|
+
* Pass the ID of the source to be selected.
|
|
252
262
|
*
|
|
253
263
|
* @version: SDK: 1.19.0, ThoughtSpot 9.0.0.cl, 9.0.1.sw
|
|
264
|
+
*
|
|
265
|
+
* @example
|
|
266
|
+
* ```js
|
|
267
|
+
* const embed = new SearchBarEmbed('#tsEmbed', {
|
|
268
|
+
* ... // other options
|
|
269
|
+
* dataSource:'id-2345',
|
|
270
|
+
* })
|
|
271
|
+
* ```
|
|
254
272
|
*/
|
|
255
273
|
dataSource?: string;
|
|
256
274
|
/**
|
|
257
275
|
* Boolean to define if the last selected data source should be used
|
|
258
276
|
*
|
|
259
277
|
* @version: SDK: 1.24.0, ThoughtSpot 9.5.0.cl, 9.5.0.sw
|
|
278
|
+
*
|
|
279
|
+
* @example
|
|
280
|
+
* ```js
|
|
281
|
+
* const embed = new SearchBarEmbed('#tsEmbed', {
|
|
282
|
+
* ... // other options
|
|
283
|
+
* useLastSelectedSources:false,
|
|
284
|
+
* })
|
|
285
|
+
* ```
|
|
260
286
|
*/
|
|
261
287
|
useLastSelectedSources?: boolean;
|
|
262
288
|
/**
|
|
@@ -270,12 +296,17 @@ export interface SearchBarViewConfig extends Omit<ViewConfig, 'runtimeFilters' |
|
|
|
270
296
|
* If it’s not executed, the focus is placed at the end of
|
|
271
297
|
* the token string in the search bar.
|
|
272
298
|
*
|
|
299
|
+
* @version: SDK: 1.2.0 | ThoughtSpot: 9.4.0.sw
|
|
300
|
+
*
|
|
273
301
|
* @example
|
|
274
302
|
* ```js
|
|
275
|
-
*
|
|
276
|
-
*
|
|
277
|
-
*
|
|
278
|
-
*
|
|
303
|
+
* const embed = new SearchBarEmbed('#tsEmbed', {
|
|
304
|
+
* ... // other options
|
|
305
|
+
* searchOptions: {
|
|
306
|
+
* searchTokenString: '[quantity purchased] [region]',
|
|
307
|
+
* executeSearch: true,
|
|
308
|
+
* }
|
|
309
|
+
* })
|
|
279
310
|
* ```
|
|
280
311
|
*/
|
|
281
312
|
searchOptions?: SearchOptions;
|
|
@@ -296,7 +327,7 @@ export declare class SearchBarEmbed extends TsEmbed {
|
|
|
296
327
|
/**
|
|
297
328
|
* Render the embedded ThoughtSpot search
|
|
298
329
|
*/
|
|
299
|
-
render(): SearchBarEmbed
|
|
330
|
+
render(): Promise<SearchBarEmbed>;
|
|
300
331
|
}
|
|
301
332
|
|
|
302
333
|
/**
|
|
@@ -458,7 +489,7 @@ export declare class SageEmbed extends V1Embed {
|
|
|
458
489
|
*
|
|
459
490
|
* @returns {SageEmbed} Eureka/Sage embed
|
|
460
491
|
*/
|
|
461
|
-
render(): SageEmbed
|
|
492
|
+
render(): Promise<SageEmbed>;
|
|
462
493
|
}
|
|
463
494
|
|
|
464
495
|
/**
|
|
@@ -495,27 +526,73 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
|
|
|
495
526
|
/**
|
|
496
527
|
* If set to true, the data sources panel is collapsed on load,
|
|
497
528
|
* but can be expanded manually.
|
|
529
|
+
*
|
|
530
|
+
* @version: SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
|
|
531
|
+
* @example
|
|
532
|
+
* ```js
|
|
533
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
534
|
+
* ... // other options
|
|
535
|
+
* collapseDataSources:true,
|
|
536
|
+
* })
|
|
537
|
+
* ```
|
|
498
538
|
*/
|
|
499
539
|
collapseDataSources?: boolean;
|
|
500
540
|
/**
|
|
501
541
|
* Show or hide the data sources panel.
|
|
542
|
+
*
|
|
543
|
+
* @version: SDK: 1.2.0 | ThoughtSpot: 9.1.0.sw
|
|
544
|
+
* @example
|
|
545
|
+
* ```js
|
|
546
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
547
|
+
* ... // other options
|
|
548
|
+
* hideDataSources:true,
|
|
549
|
+
* })
|
|
550
|
+
* ```
|
|
502
551
|
*/
|
|
503
552
|
hideDataSources?: boolean;
|
|
504
553
|
/**
|
|
505
554
|
* Show or hide the charts and tables in search answers.
|
|
506
555
|
* This attribute can be used to create a custom visualization
|
|
507
556
|
* using raw answer data.
|
|
557
|
+
*
|
|
558
|
+
* @version: SDK: 1.2.0 | ThoughtSpot: 9.1.0.sw
|
|
559
|
+
* @example
|
|
560
|
+
* ```js
|
|
561
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
562
|
+
* ... // other options
|
|
563
|
+
* hideResults:true,
|
|
564
|
+
* })
|
|
565
|
+
* ```
|
|
508
566
|
*/
|
|
509
567
|
hideResults?: boolean;
|
|
568
|
+
/**
|
|
569
|
+
* If set to true, expands all the data sources panel.
|
|
570
|
+
*/
|
|
571
|
+
expandAllDataSource?: boolean;
|
|
510
572
|
/**
|
|
511
573
|
* If set to true, the Search Assist feature is enabled.
|
|
512
574
|
*
|
|
513
575
|
* @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1-sw
|
|
576
|
+
* @example
|
|
577
|
+
* ```js
|
|
578
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
579
|
+
* ... // other options
|
|
580
|
+
* enableSearchAssist:true,
|
|
581
|
+
* })
|
|
582
|
+
* ```
|
|
514
583
|
*/
|
|
515
584
|
enableSearchAssist?: boolean;
|
|
516
585
|
/**
|
|
517
586
|
* If set to true, the tabular view is set as the default
|
|
518
587
|
* format for presenting search data.
|
|
588
|
+
*
|
|
589
|
+
* @version: SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
|
|
590
|
+
* @example
|
|
591
|
+
* ```js
|
|
592
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
593
|
+
* ... // other options
|
|
594
|
+
* forceTable:true,
|
|
595
|
+
* })
|
|
519
596
|
*/
|
|
520
597
|
forceTable?: boolean;
|
|
521
598
|
/**
|
|
@@ -523,12 +600,26 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
|
|
|
523
600
|
* Only a single data source is supported currently.
|
|
524
601
|
*
|
|
525
602
|
* @deprecated Use `dataSource` instead.
|
|
603
|
+
* @example
|
|
604
|
+
* ```js
|
|
605
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
606
|
+
* ... // other options
|
|
607
|
+
* dataSources:['id-234','id-456'],
|
|
608
|
+
* })
|
|
609
|
+
* ```
|
|
526
610
|
*/
|
|
527
611
|
dataSources?: string[];
|
|
528
612
|
/**
|
|
529
613
|
* The array of data source GUIDs to set on load.
|
|
530
614
|
*
|
|
531
615
|
* @version: SDK: 1.19.0
|
|
616
|
+
* @example
|
|
617
|
+
* ```js
|
|
618
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
619
|
+
* ... // other options
|
|
620
|
+
* dataSource:'id-234',
|
|
621
|
+
* })
|
|
622
|
+
* ```
|
|
532
623
|
*/
|
|
533
624
|
dataSource?: string;
|
|
534
625
|
/**
|
|
@@ -561,6 +652,15 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
|
|
|
561
652
|
searchOptions?: SearchOptions;
|
|
562
653
|
/**
|
|
563
654
|
* The GUID of a saved answer to load initially.
|
|
655
|
+
*
|
|
656
|
+
* @version: SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
|
|
657
|
+
* @example
|
|
658
|
+
* ```js
|
|
659
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
660
|
+
* ... // other options
|
|
661
|
+
* answerId:'sed-1234',
|
|
662
|
+
* })
|
|
663
|
+
* ```
|
|
564
664
|
*/
|
|
565
665
|
answerId?: string;
|
|
566
666
|
/**
|
|
@@ -568,6 +668,13 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
|
|
|
568
668
|
* The chart/table should still be visible.
|
|
569
669
|
*
|
|
570
670
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
|
|
671
|
+
* @example
|
|
672
|
+
* ```js
|
|
673
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
674
|
+
* ... // other options
|
|
675
|
+
* hideSearchBar:true,
|
|
676
|
+
* })
|
|
677
|
+
* ```
|
|
571
678
|
*/
|
|
572
679
|
hideSearchBar?: boolean;
|
|
573
680
|
/**
|
|
@@ -575,6 +682,13 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
|
|
|
575
682
|
*
|
|
576
683
|
* @default false
|
|
577
684
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
685
|
+
* @example
|
|
686
|
+
* ```js
|
|
687
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
688
|
+
* ... // other options
|
|
689
|
+
* dataPanelV2:false,
|
|
690
|
+
* })
|
|
691
|
+
* ```
|
|
578
692
|
*/
|
|
579
693
|
dataPanelV2?: boolean;
|
|
580
694
|
/**
|
|
@@ -608,7 +722,7 @@ export declare class SearchEmbed extends TsEmbed {
|
|
|
608
722
|
/**
|
|
609
723
|
* Render the embedded ThoughtSpot search
|
|
610
724
|
*/
|
|
611
|
-
render(): SearchEmbed
|
|
725
|
+
render(): Promise<SearchEmbed>;
|
|
612
726
|
}
|
|
613
727
|
|
|
614
728
|
/**
|
|
@@ -664,6 +778,16 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
664
778
|
* If true, the top navigation bar within the ThoughtSpot app
|
|
665
779
|
* is displayed. By default, the navigation bar is hidden.
|
|
666
780
|
* This flag also controls the homepage left navigation bar.
|
|
781
|
+
*
|
|
782
|
+
* @default true
|
|
783
|
+
* @version SDK: 1.2.0 | Thoughtspot: 8.4.0.cl
|
|
784
|
+
* @example
|
|
785
|
+
* ```js
|
|
786
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
787
|
+
* ... // other options
|
|
788
|
+
* showPrimaryNavbar:true,
|
|
789
|
+
* })
|
|
790
|
+
* ```
|
|
667
791
|
*/
|
|
668
792
|
showPrimaryNavbar?: boolean;
|
|
669
793
|
/**
|
|
@@ -672,23 +796,78 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
672
796
|
* nav-bars are visible, this flag will only hide the homepage left nav-bar.
|
|
673
797
|
* The showPrimaryNavbar flag takes precedence over the hideHomepageLeftNav.
|
|
674
798
|
*
|
|
799
|
+
*
|
|
800
|
+
* **Note**: This option does not apply to the classic homepage.
|
|
801
|
+
* To access the updated modular homepage, set
|
|
802
|
+
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
803
|
+
*
|
|
675
804
|
* @default false
|
|
676
|
-
* @version SDK: 1.
|
|
805
|
+
* @version SDK: 1.28.0 | Thoughtspot: 9.12.5.cl
|
|
806
|
+
*
|
|
807
|
+
* @example
|
|
808
|
+
* ```js
|
|
809
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
810
|
+
* ... // other options
|
|
811
|
+
* hideHomepageLeftNav : true,
|
|
812
|
+
* })
|
|
813
|
+
* ```
|
|
677
814
|
*/
|
|
678
815
|
hideHomepageLeftNav?: boolean;
|
|
679
816
|
/**
|
|
680
817
|
* Control the visibility of the help (?) and profile buttons on the
|
|
681
818
|
* Global nav-bar. By default, these buttons are visible on the nav-bar.
|
|
819
|
+
*
|
|
820
|
+
* @default false
|
|
821
|
+
* @version SDK: 1.2.0 | Thoughtspot: 8.4.0.cl
|
|
822
|
+
* @example
|
|
823
|
+
* ```js
|
|
824
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
825
|
+
* ... // other options
|
|
826
|
+
* disableProfileAndHelp: true,
|
|
827
|
+
* })
|
|
828
|
+
* ```
|
|
682
829
|
*/
|
|
683
830
|
disableProfileAndHelp?: boolean;
|
|
684
831
|
/**
|
|
685
832
|
* Control the visibility of the application switcher button on the nav-bar.
|
|
686
833
|
* By default, the application switcher is shown.
|
|
834
|
+
*
|
|
835
|
+
*
|
|
836
|
+
* **Note**: This option does not apply to the classic homepage.
|
|
837
|
+
* To access the updated modular homepage, set
|
|
838
|
+
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
839
|
+
*
|
|
840
|
+
* @version SDK: 1.28.0 | Thoughtspot: 9.12.5.cl
|
|
841
|
+
* @default false
|
|
842
|
+
*
|
|
843
|
+
* @example
|
|
844
|
+
* ```js
|
|
845
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
846
|
+
* ... // other options
|
|
847
|
+
* hideApplicationSwitcher : true,
|
|
848
|
+
* })
|
|
849
|
+
* ```
|
|
687
850
|
*/
|
|
688
851
|
hideApplicationSwitcher?: boolean;
|
|
689
852
|
/**
|
|
690
853
|
* Control the visibility of the Org switcher button on the nav-bar.
|
|
691
854
|
* By default, the Org switcher button is shown.
|
|
855
|
+
*
|
|
856
|
+
*
|
|
857
|
+
* **Note**: This option does not apply to the classic homepage.
|
|
858
|
+
* To access the updated modular homepage, set
|
|
859
|
+
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
860
|
+
*
|
|
861
|
+
* @version SDK: 1.28.0 | Thoughtspot: 9.12.5.cl
|
|
862
|
+
* @default true
|
|
863
|
+
*
|
|
864
|
+
* @example
|
|
865
|
+
* ```js
|
|
866
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
867
|
+
* ... // other options
|
|
868
|
+
* hideOrgSwitcher : true,
|
|
869
|
+
* })
|
|
870
|
+
* ```
|
|
692
871
|
*/
|
|
693
872
|
hideOrgSwitcher?: boolean;
|
|
694
873
|
/**
|
|
@@ -700,9 +879,13 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
700
879
|
* For eg, if you want the component to open to a specific Liveboard
|
|
701
880
|
* you could set the path to `pinboard/<liveboardId>/tab/<tabId>`.
|
|
702
881
|
*
|
|
882
|
+
* @version SDK: 1.1.0 | Thoughtspot: 9.4.0.cl
|
|
703
883
|
* @example
|
|
704
|
-
* ```
|
|
705
|
-
*
|
|
884
|
+
* ```js
|
|
885
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
886
|
+
* ... // other options
|
|
887
|
+
* path:"pinboard/1234/tab/7464"
|
|
888
|
+
* })
|
|
706
889
|
* ```
|
|
707
890
|
*/
|
|
708
891
|
path?: string;
|
|
@@ -712,16 +895,46 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
712
895
|
*
|
|
713
896
|
* Use this to open to particular page in the app. To open to a specific
|
|
714
897
|
* path within the app, use the `path` attribute which is more flexible.
|
|
898
|
+
*
|
|
899
|
+
* @version SDK: 1.1.0 | Thoughtspot: 9.4.0.cl
|
|
900
|
+
* @example
|
|
901
|
+
* ```js
|
|
902
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
903
|
+
* ... // other options
|
|
904
|
+
* pageId : Page.Answers | Page.Data
|
|
905
|
+
* })
|
|
906
|
+
* ```
|
|
715
907
|
*/
|
|
716
908
|
pageId?: Page;
|
|
717
909
|
/**
|
|
718
910
|
* This puts a filter tag on the application. All metadata lists in the
|
|
719
911
|
* application, such as Liveboards and answers, would be filtered by this
|
|
720
912
|
* tag.
|
|
913
|
+
*
|
|
914
|
+
* @version SDK: 1.1.0 | Thoughtspot: 9.4.0.cl
|
|
915
|
+
* @example
|
|
916
|
+
* ```js
|
|
917
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
918
|
+
* ... // other options
|
|
919
|
+
* tag:'value',
|
|
920
|
+
* })
|
|
921
|
+
* ```
|
|
721
922
|
*/
|
|
722
923
|
tag?: string;
|
|
723
924
|
/**
|
|
724
925
|
* The array of GUIDs to be hidden
|
|
926
|
+
*
|
|
927
|
+
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
|
|
928
|
+
* @example
|
|
929
|
+
* ```js
|
|
930
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
931
|
+
* ... // other options
|
|
932
|
+
* hideObjects: [
|
|
933
|
+
* '430496d6-6903-4601-937e-2c691821af3c',
|
|
934
|
+
* 'f547ec54-2a37-4516-a222-2b06719af726'
|
|
935
|
+
* ]
|
|
936
|
+
* })
|
|
937
|
+
* ```
|
|
725
938
|
*/
|
|
726
939
|
hideObjects?: string[];
|
|
727
940
|
/**
|
|
@@ -735,7 +948,15 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
735
948
|
/**
|
|
736
949
|
* If set to true, the Search Assist feature is enabled.
|
|
737
950
|
*
|
|
951
|
+
* @default true
|
|
738
952
|
* @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1-sw
|
|
953
|
+
* @example
|
|
954
|
+
* ```js
|
|
955
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
956
|
+
* ... // other options
|
|
957
|
+
* enableSearchAssist: true,
|
|
958
|
+
* })
|
|
959
|
+
* ```
|
|
739
960
|
*/
|
|
740
961
|
enableSearchAssist?: boolean;
|
|
741
962
|
/**
|
|
@@ -743,6 +964,13 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
743
964
|
* according to the height of the pages which support fullHeight mode.
|
|
744
965
|
*
|
|
745
966
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.4.0.cl, 9.4.0-sw
|
|
967
|
+
* @example
|
|
968
|
+
* ```js
|
|
969
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
970
|
+
* ... // other options
|
|
971
|
+
* fullHeight: true,
|
|
972
|
+
* })
|
|
973
|
+
* ```
|
|
746
974
|
*/
|
|
747
975
|
fullHeight?: boolean;
|
|
748
976
|
/**
|
|
@@ -758,6 +986,13 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
758
986
|
*
|
|
759
987
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
760
988
|
* @default false
|
|
989
|
+
* @example
|
|
990
|
+
* ```js
|
|
991
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
992
|
+
* ... // other options
|
|
993
|
+
* hideLiveboardHeader : true,
|
|
994
|
+
* })
|
|
995
|
+
* ```
|
|
761
996
|
*/
|
|
762
997
|
hideLiveboardHeader?: boolean;
|
|
763
998
|
/**
|
|
@@ -765,6 +1000,13 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
765
1000
|
*
|
|
766
1001
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
767
1002
|
* @default false
|
|
1003
|
+
* @example
|
|
1004
|
+
* ```js
|
|
1005
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
1006
|
+
* ... // other options
|
|
1007
|
+
* showLiveboardTitle:true,
|
|
1008
|
+
* })
|
|
1009
|
+
* ```
|
|
768
1010
|
*/
|
|
769
1011
|
showLiveboardTitle?: boolean;
|
|
770
1012
|
/**
|
|
@@ -772,13 +1014,28 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
772
1014
|
*
|
|
773
1015
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
774
1016
|
* @default false
|
|
1017
|
+
* @example
|
|
1018
|
+
* ```js
|
|
1019
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
1020
|
+
* ... // other options
|
|
1021
|
+
* showLiveboardDescription:true,
|
|
1022
|
+
* })
|
|
1023
|
+
* ```
|
|
775
1024
|
*/
|
|
776
1025
|
showLiveboardDescription?: boolean;
|
|
777
1026
|
/**
|
|
778
|
-
* Flag to control new Modular Home experience
|
|
1027
|
+
* Flag to control new Modular Home experience.
|
|
779
1028
|
*
|
|
780
1029
|
* @default false
|
|
781
|
-
* @version SDK: 1.
|
|
1030
|
+
* @version SDK: 1.28.0 | Thoughtspot: 9.12.5.cl
|
|
1031
|
+
*
|
|
1032
|
+
* @example
|
|
1033
|
+
* ```js
|
|
1034
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
1035
|
+
* ... // other options
|
|
1036
|
+
* modularHomeExperience : true,
|
|
1037
|
+
* })
|
|
1038
|
+
* ```
|
|
782
1039
|
*/
|
|
783
1040
|
modularHomeExperience?: boolean;
|
|
784
1041
|
/**
|
|
@@ -847,7 +1104,7 @@ export declare class AppEmbed extends V1Embed {
|
|
|
847
1104
|
* @param renderOptions An object containing the page ID
|
|
848
1105
|
* to be embedded.
|
|
849
1106
|
*/
|
|
850
|
-
render(): AppEmbed
|
|
1107
|
+
render(): Promise<AppEmbed>;
|
|
851
1108
|
}
|
|
852
1109
|
|
|
853
1110
|
/**
|
|
@@ -869,8 +1126,21 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
869
1126
|
/**
|
|
870
1127
|
* If set to true, the embedded object container dynamically resizes
|
|
871
1128
|
* according to the height of the Liveboard.
|
|
1129
|
+
* **Note**: Using fullHeight loads all visualizations on the
|
|
1130
|
+
* Liveboard simultaneously, which results in multiple warehouse
|
|
1131
|
+
* queries and potentially a longer wait for the topmost
|
|
1132
|
+
* visualizations to display on the screen.
|
|
1133
|
+
* Setting `fullHeight` to `false` fetches visualizations
|
|
1134
|
+
* incrementally as users scroll the page to view the charts and tables.
|
|
872
1135
|
*
|
|
873
1136
|
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1
|
|
1137
|
+
* @example
|
|
1138
|
+
* ```js
|
|
1139
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
1140
|
+
* ... // other liveboard view config
|
|
1141
|
+
* fullHeight: true,
|
|
1142
|
+
* });
|
|
1143
|
+
* ```
|
|
874
1144
|
*/
|
|
875
1145
|
fullHeight?: boolean;
|
|
876
1146
|
/**
|
|
@@ -880,10 +1150,26 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
880
1150
|
*
|
|
881
1151
|
* @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
|
|
882
1152
|
* @default 500
|
|
1153
|
+
* @example
|
|
1154
|
+
* ```js
|
|
1155
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
1156
|
+
* ... // other liveboard view config
|
|
1157
|
+
* fullHeight: true,
|
|
1158
|
+
* defaultHeight: 600,
|
|
1159
|
+
* });
|
|
1160
|
+
* ```
|
|
883
1161
|
*/
|
|
884
1162
|
defaultHeight?: number;
|
|
885
1163
|
/**
|
|
886
1164
|
* @Deprecated If set to true, the context menu in visualizations will be enabled.
|
|
1165
|
+
* @example
|
|
1166
|
+
* ```js
|
|
1167
|
+
* const embed = new LiveboardEmbed('#tsEmbed', {
|
|
1168
|
+
* ... // other options
|
|
1169
|
+
* enableVizTransformations:true,
|
|
1170
|
+
* })
|
|
1171
|
+
* ```
|
|
1172
|
+
* @version: SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
|
|
887
1173
|
*/
|
|
888
1174
|
enableVizTransformations?: boolean;
|
|
889
1175
|
/**
|
|
@@ -891,6 +1177,12 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
891
1177
|
* Use either liveboardId or pinboardId to reference the Liveboard to embed.
|
|
892
1178
|
*
|
|
893
1179
|
* @version SDK: 1.3.0 | ThoughtSpot ts7.aug.cl, 7.2.1
|
|
1180
|
+
* @example
|
|
1181
|
+
* ```js
|
|
1182
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
1183
|
+
* ... // other options
|
|
1184
|
+
* liveboardId:id of liveboard,
|
|
1185
|
+
* })
|
|
894
1186
|
*/
|
|
895
1187
|
liveboardId?: string;
|
|
896
1188
|
/**
|
|
@@ -901,6 +1193,15 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
901
1193
|
pinboardId?: string;
|
|
902
1194
|
/**
|
|
903
1195
|
* The visualization within the Liveboard to display.
|
|
1196
|
+
*
|
|
1197
|
+
* @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
|
|
1198
|
+
* @example
|
|
1199
|
+
* ```js
|
|
1200
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
1201
|
+
* ... // other options
|
|
1202
|
+
* vizId:'430496d6-6903-4601-937e-2c691821af3c',
|
|
1203
|
+
* })
|
|
1204
|
+
* ```
|
|
904
1205
|
*/
|
|
905
1206
|
vizId?: string;
|
|
906
1207
|
/**
|
|
@@ -908,6 +1209,13 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
908
1209
|
* Liveboard page will be read-only (no X buttons)
|
|
909
1210
|
*
|
|
910
1211
|
* @version SDK: 1.3.0 | ThoughtSpot ts7.aug.cl, 7.2.1.sw
|
|
1212
|
+
* @example
|
|
1213
|
+
* ```js
|
|
1214
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
1215
|
+
* ... // other options
|
|
1216
|
+
* preventLiveboardFilterRemoval:true,
|
|
1217
|
+
* })
|
|
1218
|
+
* ```
|
|
911
1219
|
*/
|
|
912
1220
|
preventLiveboardFilterRemoval?: boolean;
|
|
913
1221
|
/**
|
|
@@ -916,6 +1224,15 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
916
1224
|
* event.
|
|
917
1225
|
*
|
|
918
1226
|
* @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
|
|
1227
|
+
* @example
|
|
1228
|
+
* ```js
|
|
1229
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
1230
|
+
* ... // other options
|
|
1231
|
+
* visibleVizs: [
|
|
1232
|
+
* '430496d6-6903-4601-937e-2c691821af3c',
|
|
1233
|
+
* 'f547ec54-2a37-4516-a222-2b06719af726'
|
|
1234
|
+
* ]
|
|
1235
|
+
* })
|
|
919
1236
|
*/
|
|
920
1237
|
visibleVizs?: string[];
|
|
921
1238
|
/**
|
|
@@ -929,12 +1246,26 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
929
1246
|
* new Liveboard experience mode.
|
|
930
1247
|
*
|
|
931
1248
|
* @version SDK: 1.14.0 | ThoughtSpot: 8.6.0.cl, 8.8.1-sw
|
|
1249
|
+
* @example
|
|
1250
|
+
* ```js
|
|
1251
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
1252
|
+
* ... // other options
|
|
1253
|
+
* liveboardV2:true,
|
|
1254
|
+
* })
|
|
1255
|
+
* ```
|
|
932
1256
|
*/
|
|
933
1257
|
liveboardV2?: boolean;
|
|
934
1258
|
/**
|
|
935
1259
|
* Set a Liveboard tab as an active tab.
|
|
936
1260
|
* Specify the tab ID.
|
|
937
1261
|
*
|
|
1262
|
+
* @example
|
|
1263
|
+
* ```js
|
|
1264
|
+
* const embed = new LiveboardEmbed('#tsEmbed', {
|
|
1265
|
+
* ... // other options
|
|
1266
|
+
* activeTabId:'id-1234',
|
|
1267
|
+
* })
|
|
1268
|
+
* ```
|
|
938
1269
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
|
|
939
1270
|
*/
|
|
940
1271
|
activeTabId?: string;
|
|
@@ -942,6 +1273,13 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
942
1273
|
* Show or hide the tab panel of the embedded Liveboard.
|
|
943
1274
|
*
|
|
944
1275
|
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl, 9.8.0.sw
|
|
1276
|
+
* @example
|
|
1277
|
+
* ```js
|
|
1278
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
1279
|
+
* ... // other options
|
|
1280
|
+
* hideTabPanel:true,
|
|
1281
|
+
* })
|
|
1282
|
+
* ```
|
|
945
1283
|
*/
|
|
946
1284
|
hideTabPanel?: boolean;
|
|
947
1285
|
/**
|
|
@@ -949,20 +1287,41 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
949
1287
|
*
|
|
950
1288
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
951
1289
|
* @default false
|
|
1290
|
+
* @example
|
|
1291
|
+
* ```js
|
|
1292
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
1293
|
+
* ... // other liveboard view config
|
|
1294
|
+
* hideLiveboardHeader:true,
|
|
1295
|
+
* });
|
|
1296
|
+
* ```
|
|
952
1297
|
*/
|
|
953
1298
|
hideLiveboardHeader?: boolean;
|
|
954
1299
|
/**
|
|
955
1300
|
* Show or hide the Liveboard title.
|
|
956
1301
|
*
|
|
957
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
958
1302
|
* @default false
|
|
1303
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
1304
|
+
* @example
|
|
1305
|
+
* ```js
|
|
1306
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
1307
|
+
* ... // other options
|
|
1308
|
+
* showLiveboardTitle:true,
|
|
1309
|
+
* })
|
|
1310
|
+
* ```
|
|
959
1311
|
*/
|
|
960
1312
|
showLiveboardTitle?: boolean;
|
|
961
1313
|
/**
|
|
962
1314
|
* Show or hide the Liveboard description.
|
|
963
1315
|
*
|
|
964
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
965
1316
|
* @default false
|
|
1317
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
1318
|
+
* @example
|
|
1319
|
+
* ```js
|
|
1320
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
1321
|
+
* ... // other options
|
|
1322
|
+
* showLiveboardDescription:true,
|
|
1323
|
+
* })
|
|
1324
|
+
* ```
|
|
966
1325
|
*/
|
|
967
1326
|
showLiveboardDescription?: boolean;
|
|
968
1327
|
/**
|
|
@@ -983,8 +1342,15 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
983
1342
|
/**
|
|
984
1343
|
* enable or disable ask sage
|
|
985
1344
|
*
|
|
986
|
-
* @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
|
|
987
1345
|
* @default false
|
|
1346
|
+
* @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
|
|
1347
|
+
* @example
|
|
1348
|
+
* ```js
|
|
1349
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
1350
|
+
* ... // other options
|
|
1351
|
+
* enableAskSage:true,
|
|
1352
|
+
* })
|
|
1353
|
+
* ```
|
|
988
1354
|
*/
|
|
989
1355
|
enableAskSage?: boolean;
|
|
990
1356
|
}
|
|
@@ -1027,7 +1393,7 @@ export declare class LiveboardEmbed extends V1Embed {
|
|
|
1027
1393
|
* @param renderOptions An object specifying the Liveboard ID,
|
|
1028
1394
|
* visualization ID and the runtime filters.
|
|
1029
1395
|
*/
|
|
1030
|
-
render(): LiveboardEmbed
|
|
1396
|
+
render(): Promise<LiveboardEmbed>;
|
|
1031
1397
|
navigateToLiveboard(liveboardId: string, vizId?: string, activeTabId?: string): void;
|
|
1032
1398
|
}
|
|
1033
1399
|
/**
|
|
@@ -1274,7 +1640,22 @@ export interface AuthEventEmitter {
|
|
|
1274
1640
|
*
|
|
1275
1641
|
* @param {@link AuthEvent}
|
|
1276
1642
|
*/
|
|
1277
|
-
emit(event: AuthEvent):
|
|
1643
|
+
emit(event: AuthEvent, ...args: any[]): boolean;
|
|
1644
|
+
/**
|
|
1645
|
+
* Remove listener from the emitter returned from init.
|
|
1646
|
+
*
|
|
1647
|
+
* @param event
|
|
1648
|
+
* @param listener
|
|
1649
|
+
* @param context
|
|
1650
|
+
* @param once
|
|
1651
|
+
*/
|
|
1652
|
+
off(event: AuthStatus, listener: (...args: any[]) => void, context: any, once: boolean): this;
|
|
1653
|
+
/**
|
|
1654
|
+
* Remove all the event listeners
|
|
1655
|
+
*
|
|
1656
|
+
* @param event
|
|
1657
|
+
*/
|
|
1658
|
+
removeAllListeners(event: AuthStatus): this;
|
|
1278
1659
|
}
|
|
1279
1660
|
/**
|
|
1280
1661
|
* Events which can be triggered on the emitter returned from {@link init}.
|
|
@@ -1507,6 +1888,7 @@ export declare enum AuthType {
|
|
|
1507
1888
|
* .then((data) => data.token);
|
|
1508
1889
|
* }
|
|
1509
1890
|
* });
|
|
1891
|
+
* });
|
|
1510
1892
|
* ```
|
|
1511
1893
|
*/
|
|
1512
1894
|
TrustedAuthToken = "AuthServer",
|
|
@@ -1539,16 +1921,39 @@ export declare enum AuthType {
|
|
|
1539
1921
|
*/
|
|
1540
1922
|
Basic = "Basic"
|
|
1541
1923
|
}
|
|
1924
|
+
/**
|
|
1925
|
+
*
|
|
1926
|
+
* This option does not apply to the classic homepage experience.
|
|
1927
|
+
* To access the updated modular homepage,
|
|
1928
|
+
* set `modularHomeExperience` to `true`
|
|
1929
|
+
* (available as Early Access feature in 9.12.5.cl).
|
|
1930
|
+
*
|
|
1931
|
+
*/
|
|
1542
1932
|
export declare enum HomeLeftNavItem {
|
|
1543
|
-
|
|
1933
|
+
/**
|
|
1934
|
+
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
1935
|
+
*/
|
|
1936
|
+
SearchData = "search-data",
|
|
1937
|
+
/**
|
|
1938
|
+
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
1939
|
+
*/
|
|
1544
1940
|
Home = "insights-home",
|
|
1941
|
+
/**
|
|
1942
|
+
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
1943
|
+
*/
|
|
1545
1944
|
Liveboards = "liveboards",
|
|
1945
|
+
/**
|
|
1946
|
+
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
1947
|
+
*/
|
|
1546
1948
|
Answers = "answers",
|
|
1949
|
+
/**
|
|
1950
|
+
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
1951
|
+
*/
|
|
1547
1952
|
MonitorSubscription = "monitor-alerts",
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1953
|
+
/**
|
|
1954
|
+
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
1955
|
+
*/
|
|
1956
|
+
SpotIQAnalysis = "spotiq-analysis"
|
|
1552
1957
|
}
|
|
1553
1958
|
export type DOMSelector = string | HTMLElement;
|
|
1554
1959
|
/**
|
|
@@ -1604,6 +2009,8 @@ export interface CustomStyles {
|
|
|
1604
2009
|
/**
|
|
1605
2010
|
* Configuration to define the customization on the Embedded
|
|
1606
2011
|
* Thoughtspot components.
|
|
2012
|
+
* You can customize styles, text strings, and icons.
|
|
2013
|
+
* For more information, see https://developers.thoughtspot.com/docs/custom-css.
|
|
1607
2014
|
*
|
|
1608
2015
|
* @example
|
|
1609
2016
|
* ```js
|
|
@@ -1618,7 +2025,12 @@ export interface CustomStyles {
|
|
|
1618
2025
|
* },
|
|
1619
2026
|
* content: {
|
|
1620
2027
|
* strings: {
|
|
1621
|
-
* 'LIVEBOARDS': 'Dashboards'
|
|
2028
|
+
* 'LIVEBOARDS': 'Dashboards',
|
|
2029
|
+
* 'ANSWERS': 'Visualizations',
|
|
2030
|
+
* 'Edit': 'Modify',
|
|
2031
|
+
* 'Show underlying data': 'Show source data',
|
|
2032
|
+
* 'SpotIQ': 'Insights',
|
|
2033
|
+
* 'Monitor': 'Alerts',
|
|
1622
2034
|
* }
|
|
1623
2035
|
* },
|
|
1624
2036
|
* iconSpriteUrl: 'https://my-custom-icon-sprite.svg'
|
|
@@ -1650,12 +2062,6 @@ export interface EmbedConfig {
|
|
|
1650
2062
|
* The ThoughtSpot cluster hostname or IP address.
|
|
1651
2063
|
*/
|
|
1652
2064
|
thoughtSpotHost: string;
|
|
1653
|
-
/**
|
|
1654
|
-
* If true, all the iframe links will have /v2 added automatically.
|
|
1655
|
-
* If false, all the iframe links will have /v1 added automatically.
|
|
1656
|
-
* If undefined, nothing will be added
|
|
1657
|
-
*/
|
|
1658
|
-
enableReactShell?: boolean | undefined;
|
|
1659
2065
|
/**
|
|
1660
2066
|
* The authentication mechanism to use.
|
|
1661
2067
|
*/
|
|
@@ -1900,6 +2306,12 @@ export interface EmbedConfig {
|
|
|
1900
2306
|
* @version SDK: 1.26.7 | ThoughtSpot: 9.10.0.cl
|
|
1901
2307
|
*/
|
|
1902
2308
|
logLevel?: LogLevel;
|
|
2309
|
+
/**
|
|
2310
|
+
* Disables the Mixpanel tracking from the SDK.
|
|
2311
|
+
*
|
|
2312
|
+
* @version SDK: 1.27.9
|
|
2313
|
+
*/
|
|
2314
|
+
disableSDKTracking?: boolean;
|
|
1903
2315
|
}
|
|
1904
2316
|
export interface LayoutConfig {
|
|
1905
2317
|
}
|
|
@@ -1938,8 +2350,20 @@ export interface ViewConfig {
|
|
|
1938
2350
|
*/
|
|
1939
2351
|
layoutConfig?: LayoutConfig;
|
|
1940
2352
|
/**
|
|
1941
|
-
* The
|
|
2353
|
+
* The width and height dimensions to render an embedded
|
|
1942
2354
|
* object inside your app. Specify the values in pixels or percentage.
|
|
2355
|
+
*
|
|
2356
|
+
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1
|
|
2357
|
+
* @example
|
|
2358
|
+
* ```js
|
|
2359
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
2360
|
+
* ... // other liveboard view config
|
|
2361
|
+
* frameParams: {
|
|
2362
|
+
* width: '500px' | '50%',
|
|
2363
|
+
* height: '400px' | '60%',
|
|
2364
|
+
* },
|
|
2365
|
+
* });
|
|
2366
|
+
* ```
|
|
1943
2367
|
*/
|
|
1944
2368
|
frameParams?: FrameParams;
|
|
1945
2369
|
/**
|
|
@@ -1956,6 +2380,7 @@ export interface ViewConfig {
|
|
|
1956
2380
|
* for the user.
|
|
1957
2381
|
* Use this to disable actions.
|
|
1958
2382
|
*
|
|
2383
|
+
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
1959
2384
|
* @example
|
|
1960
2385
|
* ```js
|
|
1961
2386
|
* const embed = new LiveboardEmbed('#embed', {
|
|
@@ -1967,6 +2392,16 @@ export interface ViewConfig {
|
|
|
1967
2392
|
disabledActions?: Action[];
|
|
1968
2393
|
/**
|
|
1969
2394
|
* The tooltip to display for disabled actions.
|
|
2395
|
+
*
|
|
2396
|
+
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
2397
|
+
* @example
|
|
2398
|
+
* ```js
|
|
2399
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
2400
|
+
* ... // other liveboard view config
|
|
2401
|
+
* disabledActions: [Action.Download, Action.Save]
|
|
2402
|
+
* disabledActionReason: "Reason for disabling",
|
|
2403
|
+
* });
|
|
2404
|
+
* ```
|
|
1970
2405
|
*/
|
|
1971
2406
|
disabledActionReason?: string;
|
|
1972
2407
|
/**
|
|
@@ -1974,6 +2409,7 @@ export interface ViewConfig {
|
|
|
1974
2409
|
* This actions will be hidden from the user.
|
|
1975
2410
|
* Use this to hide an action.
|
|
1976
2411
|
*
|
|
2412
|
+
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
1977
2413
|
* @example
|
|
1978
2414
|
* ```js
|
|
1979
2415
|
* const embed = new LiveboardEmbed('#embed', {
|
|
@@ -1994,17 +2430,46 @@ export interface ViewConfig {
|
|
|
1994
2430
|
*
|
|
1995
2431
|
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
1996
2432
|
* @important
|
|
2433
|
+
* @example
|
|
2434
|
+
* ```js
|
|
2435
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
2436
|
+
* ... // other liveboard view config
|
|
2437
|
+
* visibleActions: [Action.Download, Action.Export]
|
|
2438
|
+
* });
|
|
2439
|
+
* ```
|
|
1997
2440
|
*/
|
|
1998
2441
|
visibleActions?: Action[];
|
|
1999
2442
|
/**
|
|
2000
2443
|
* Show alert messages and toast messages in the embedded view.
|
|
2001
2444
|
*
|
|
2002
2445
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2446
|
+
* @example
|
|
2447
|
+
* ```js
|
|
2448
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2449
|
+
* ... // other options
|
|
2450
|
+
* showAlerts:true,
|
|
2451
|
+
* })
|
|
2452
|
+
* ```
|
|
2003
2453
|
*/
|
|
2004
2454
|
showAlerts?: boolean;
|
|
2005
2455
|
/**
|
|
2006
2456
|
* The list of runtime filters to apply to a search answer,
|
|
2007
2457
|
* visualization, or Liveboard.
|
|
2458
|
+
*
|
|
2459
|
+
* @version SDK: 1.9.4 | ThoughtSpot 8.1.0.cl, 8.4.1.sw
|
|
2460
|
+
* @example
|
|
2461
|
+
* ```js
|
|
2462
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2463
|
+
* ... // other options
|
|
2464
|
+
* runtimeFilters: [
|
|
2465
|
+
* {
|
|
2466
|
+
* columnName: 'value',
|
|
2467
|
+
* operator: RuntimeFilterOp.EQ,
|
|
2468
|
+
* values: ['string' | 123 | true],
|
|
2469
|
+
* },
|
|
2470
|
+
* ],
|
|
2471
|
+
* })
|
|
2472
|
+
* ```
|
|
2008
2473
|
*/
|
|
2009
2474
|
runtimeFilters?: RuntimeFilter[];
|
|
2010
2475
|
/**
|
|
@@ -2012,12 +2477,31 @@ export interface ViewConfig {
|
|
|
2012
2477
|
* visualization, or Liveboard.
|
|
2013
2478
|
*
|
|
2014
2479
|
* @version SDK : 1.25.0 | Thoughtspot: 9.2.0.cl, 9.5.0.sw
|
|
2480
|
+
* @example
|
|
2481
|
+
* ```js
|
|
2482
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2483
|
+
* ... // other options
|
|
2484
|
+
* runtimeParameters: [
|
|
2485
|
+
* {
|
|
2486
|
+
* name: 'value',
|
|
2487
|
+
* value: 'string' | 123 | true,
|
|
2488
|
+
* },
|
|
2489
|
+
* ],
|
|
2490
|
+
* })
|
|
2491
|
+
* ```
|
|
2015
2492
|
*/
|
|
2016
2493
|
runtimeParameters?: RuntimeParameter[];
|
|
2017
2494
|
/**
|
|
2018
2495
|
* The locale/language to use for the embedded view.
|
|
2019
2496
|
*
|
|
2020
2497
|
* @version SDK: 1.9.4 | ThoughtSpot 8.1.0.cl, 8.4.1.sw
|
|
2498
|
+
* @example
|
|
2499
|
+
* ```js
|
|
2500
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2501
|
+
* ... // other options
|
|
2502
|
+
* locale:'en',
|
|
2503
|
+
* })
|
|
2504
|
+
* ```
|
|
2021
2505
|
*/
|
|
2022
2506
|
locale?: string;
|
|
2023
2507
|
/**
|
|
@@ -2028,6 +2512,16 @@ export interface ViewConfig {
|
|
|
2028
2512
|
* to control embed behavior in non-regular ways. We do not publish the
|
|
2029
2513
|
* list of supported keys and values associated with each.
|
|
2030
2514
|
*
|
|
2515
|
+
* @example
|
|
2516
|
+
* ```js
|
|
2517
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
2518
|
+
* ... // other liveboard view config
|
|
2519
|
+
* additionalFlags: {
|
|
2520
|
+
* flag1: 'value1',
|
|
2521
|
+
* flag2: 'value2'
|
|
2522
|
+
* }
|
|
2523
|
+
* });
|
|
2524
|
+
* ```
|
|
2031
2525
|
* @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
|
|
2032
2526
|
*/
|
|
2033
2527
|
additionalFlags?: {
|
|
@@ -2044,18 +2538,41 @@ export interface ViewConfig {
|
|
|
2044
2538
|
/**
|
|
2045
2539
|
* Insert as a sibling of the target container, instead of appending to a
|
|
2046
2540
|
* child inside it.
|
|
2541
|
+
*
|
|
2542
|
+
* @version SDK: 1.2.0 | Thoughtspot: 9.0.0.cl, 9.0.0.sw
|
|
2543
|
+
* @example
|
|
2544
|
+
* ```js
|
|
2545
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2546
|
+
* ... // other options
|
|
2547
|
+
* insertAsSibling:true,
|
|
2548
|
+
* })
|
|
2549
|
+
* ```
|
|
2047
2550
|
*/
|
|
2048
2551
|
insertAsSibling?: boolean;
|
|
2049
2552
|
/**
|
|
2050
2553
|
* flag to set ContextMenu Trigger to either left or right click.
|
|
2051
2554
|
*
|
|
2555
|
+
* @example
|
|
2556
|
+
* ```js
|
|
2557
|
+
* const embed = new LiveboardEmbed('#tsEmbed', {
|
|
2558
|
+
* ... // other options
|
|
2559
|
+
* contextMenuTrigger:ContextMenuTriggerOptions.LEFT_CLICK || RIGHT_CLICK,
|
|
2560
|
+
* })
|
|
2561
|
+
* ```
|
|
2052
2562
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
2053
2563
|
*/
|
|
2054
2564
|
contextMenuTrigger?: ContextMenuTriggerOptions;
|
|
2055
2565
|
/**
|
|
2056
|
-
*
|
|
2566
|
+
* Flag to override openNew tab context menu link
|
|
2057
2567
|
*
|
|
2058
2568
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
2569
|
+
* @example
|
|
2570
|
+
* ```js
|
|
2571
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2572
|
+
* ... // other options
|
|
2573
|
+
* linkOverride:false,
|
|
2574
|
+
* })
|
|
2575
|
+
* ```
|
|
2059
2576
|
*/
|
|
2060
2577
|
linkOverride?: boolean;
|
|
2061
2578
|
/**
|
|
@@ -2077,9 +2594,14 @@ export interface ViewConfig {
|
|
|
2077
2594
|
usePrerenderedIfAvailable?: boolean;
|
|
2078
2595
|
/**
|
|
2079
2596
|
* Boolean to exclude runtimeFilters in the URL
|
|
2597
|
+
* By default it is true, this flag removes runtime filters from the URL
|
|
2598
|
+
* when set to false, runtime filters will be included in the URL.
|
|
2080
2599
|
*
|
|
2081
|
-
*
|
|
2082
|
-
*
|
|
2600
|
+
* Irrespective of this flag, runtime filters ( if passed ) will be applied to the
|
|
2601
|
+
* embedded view.
|
|
2602
|
+
*
|
|
2603
|
+
* @default true
|
|
2604
|
+
* @version SDK: 1.24.0 | ThoughtSpot: 9.5.0.cl
|
|
2083
2605
|
*/
|
|
2084
2606
|
excludeRuntimeFiltersfromURL?: boolean;
|
|
2085
2607
|
/**
|
|
@@ -2101,16 +2623,42 @@ export interface ViewConfig {
|
|
|
2101
2623
|
hiddenTabs?: string[];
|
|
2102
2624
|
/**
|
|
2103
2625
|
* Hide the home page modules
|
|
2104
|
-
*
|
|
2626
|
+
* For example: hiddenHomepageModules = [HomepageModule.MyLibrary]
|
|
2627
|
+
*
|
|
2105
2628
|
*
|
|
2106
|
-
*
|
|
2629
|
+
*
|
|
2630
|
+
* **Note**: This option does not apply to the classic homepage.
|
|
2631
|
+
* To access the updated modular homepage, set
|
|
2632
|
+
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.0.cl).
|
|
2633
|
+
*
|
|
2634
|
+
* @version SDK: 1.28.0 | Thoughtspot: 9.12.5.cl
|
|
2635
|
+
* @example
|
|
2636
|
+
* ```js
|
|
2637
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
2638
|
+
* ... // other options
|
|
2639
|
+
* hiddenHomepageModules : [HomepageModule.Favorite,HomepageModule.Learning],
|
|
2640
|
+
* })
|
|
2641
|
+
* ```
|
|
2107
2642
|
*/
|
|
2108
2643
|
hiddenHomepageModules?: HomepageModule[];
|
|
2109
2644
|
/**
|
|
2110
2645
|
* reordering the home page modules
|
|
2111
2646
|
* eg: reorderedHomepageModules = [HomepageModule.MyLibrary, HomepageModule.Watchlist]
|
|
2112
2647
|
*
|
|
2113
|
-
*
|
|
2648
|
+
*
|
|
2649
|
+
* **Note**: This option does not apply to the classic homepage.
|
|
2650
|
+
* To access the updated modular homepage, set
|
|
2651
|
+
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
2652
|
+
*
|
|
2653
|
+
* @version SDK: 1.28.0| Thoughtspot: 9.12.5.cl
|
|
2654
|
+
*
|
|
2655
|
+
* @example
|
|
2656
|
+
* ```js
|
|
2657
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
2658
|
+
* ... // other options
|
|
2659
|
+
* reorderedHomepageModules:[HomepageModule.Favorite,HomepageModule.MyLibrary]
|
|
2660
|
+
* })
|
|
2661
|
+
* ```
|
|
2114
2662
|
*/
|
|
2115
2663
|
reorderedHomepageModules?: HomepageModule[];
|
|
2116
2664
|
/**
|
|
@@ -2119,13 +2667,17 @@ export interface ViewConfig {
|
|
|
2119
2667
|
*
|
|
2120
2668
|
* Use either `visibleTabs` or `hiddenTabs`.
|
|
2121
2669
|
*
|
|
2670
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
2122
2671
|
* @example
|
|
2123
2672
|
* ```js
|
|
2124
|
-
*
|
|
2125
|
-
*
|
|
2126
|
-
*
|
|
2673
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2674
|
+
* ... // other options
|
|
2675
|
+
* visibleTabs: [
|
|
2676
|
+
* '430496d6-6903-4601-937e-2c691821af3c',
|
|
2677
|
+
* 'f547ec54-2a37-4516-a222-2b06719af726'
|
|
2678
|
+
* ]
|
|
2679
|
+
* })
|
|
2127
2680
|
* ```
|
|
2128
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
2129
2681
|
*/
|
|
2130
2682
|
visibleTabs?: string[];
|
|
2131
2683
|
/**
|
|
@@ -2133,11 +2685,22 @@ export interface ViewConfig {
|
|
|
2133
2685
|
* There are 8 eight home navigation list items.
|
|
2134
2686
|
* To hide these items, specify the string in the array.
|
|
2135
2687
|
*
|
|
2688
|
+
* @version SDK: 1.27.0 | Thoughtspot: 9.10.0.cl
|
|
2689
|
+
* @example
|
|
2136
2690
|
* ```js
|
|
2137
|
-
*
|
|
2691
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
2692
|
+
* ... // other options
|
|
2693
|
+
* hiddenHomeLeftNavItems : [HomeLeftNavItem.Home,HomeLeftNavItem.Answers],
|
|
2694
|
+
* })
|
|
2138
2695
|
* ```
|
|
2139
2696
|
*
|
|
2140
|
-
*
|
|
2697
|
+
*
|
|
2698
|
+
*
|
|
2699
|
+
* **Note**: This option does not apply to the classic homepage.
|
|
2700
|
+
* To access the updated modular homepage, set
|
|
2701
|
+
* `modularHomeExperience` to `true` (available in Early Access from 9.12 forward).
|
|
2702
|
+
*
|
|
2703
|
+
* @version SDK: 1.28.0 | Thoughtspot: 9.12.5.cl
|
|
2141
2704
|
*/
|
|
2142
2705
|
hiddenHomeLeftNavItems?: HomeLeftNavItem[];
|
|
2143
2706
|
/**
|
|
@@ -2164,7 +2727,9 @@ export interface ViewConfig {
|
|
|
2164
2727
|
*
|
|
2165
2728
|
* @type {boolean}
|
|
2166
2729
|
* @default false
|
|
2730
|
+
* @version SDK: 1.24.0 | ThoughtSpot:9.4.0.cl, 9.4.0.sw
|
|
2167
2731
|
* @example
|
|
2732
|
+
* ```js
|
|
2168
2733
|
* // Disable tracking PreRender size in the configuration
|
|
2169
2734
|
* const config = {
|
|
2170
2735
|
* doNotTrackPreRenderSize: true,
|
|
@@ -2172,6 +2737,7 @@ export interface ViewConfig {
|
|
|
2172
2737
|
*
|
|
2173
2738
|
* // Instantiate an object with the configuration
|
|
2174
2739
|
* const myComponent = new MyComponent(config);
|
|
2740
|
+
* ```
|
|
2175
2741
|
*/
|
|
2176
2742
|
doNotTrackPreRenderSize?: boolean;
|
|
2177
2743
|
/**
|
|
@@ -2292,7 +2858,12 @@ export declare enum RuntimeFilterOp {
|
|
|
2292
2858
|
IN = "IN"
|
|
2293
2859
|
}
|
|
2294
2860
|
/**
|
|
2295
|
-
* Home page module that can be hidden
|
|
2861
|
+
* Home page module that can be hidden.
|
|
2862
|
+
* **Note**: This option does not apply to the classic homepage.
|
|
2863
|
+
* To access the updated modular homepage, set
|
|
2864
|
+
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
2865
|
+
*
|
|
2866
|
+
* @version SDK: 1.28.0 | Thoughtspot: 9.12.5.cl
|
|
2296
2867
|
*/
|
|
2297
2868
|
export declare enum HomepageModule {
|
|
2298
2869
|
/**
|
|
@@ -2451,7 +3022,7 @@ export declare enum EmbedEvent {
|
|
|
2451
3022
|
* @returns nonFilteredColumns - The columns that were not filtered
|
|
2452
3023
|
* @example
|
|
2453
3024
|
*```js
|
|
2454
|
-
* searchEmbed.trigger(
|
|
3025
|
+
* searchEmbed.trigger(EmbedEvent.DrillDown, {
|
|
2455
3026
|
* points: {
|
|
2456
3027
|
* clickedPoint,
|
|
2457
3028
|
* selectedPoints: selectedPoint
|
|
@@ -2543,7 +3114,7 @@ export declare enum EmbedEvent {
|
|
|
2543
3114
|
* @important
|
|
2544
3115
|
* @example
|
|
2545
3116
|
* ```js
|
|
2546
|
-
* embed.on(
|
|
3117
|
+
* embed.on(EmbedEvent.VizPointClick, ({data}) => {
|
|
2547
3118
|
* console.log(
|
|
2548
3119
|
* data.vizId, // viz id
|
|
2549
3120
|
* data.clickedPoint.selectedAttributes[0].value,
|
|
@@ -2558,19 +3129,21 @@ export declare enum EmbedEvent {
|
|
|
2558
3129
|
/**
|
|
2559
3130
|
* An error has occurred. This event is fired for the following error types:
|
|
2560
3131
|
*
|
|
2561
|
-
*
|
|
3132
|
+
* API - API call failure error.
|
|
2562
3133
|
*
|
|
2563
|
-
*
|
|
3134
|
+
* FULLSCREEN - Error when presenting a Liveboard or visualization in full screen
|
|
3135
|
+
* mode.
|
|
2564
3136
|
*
|
|
2565
|
-
*
|
|
3137
|
+
* SINGLE_VALUE_FILTER - Error due to multiple values in the single value filter.
|
|
2566
3138
|
*
|
|
2567
|
-
*
|
|
3139
|
+
* NON_EXIST_FILTER - Error due to a non-existent filter.
|
|
2568
3140
|
*
|
|
2569
|
-
*
|
|
3141
|
+
* INVALID_DATE_VALUE - Invalid date value error.
|
|
2570
3142
|
*
|
|
2571
|
-
*
|
|
3143
|
+
* INVALID_OPERATOR - Use of invalid operator during filter application.
|
|
2572
3144
|
*
|
|
2573
3145
|
* For more information, see [Developer Documentation](https://developers.thoughtspot.com/docs/events-app-integration#errorType)
|
|
3146
|
+
*
|
|
2574
3147
|
* @returns error - An error object or message
|
|
2575
3148
|
* @example
|
|
2576
3149
|
* ```js
|
|
@@ -3135,7 +3708,7 @@ export declare enum EmbedEvent {
|
|
|
3135
3708
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
3136
3709
|
* @example
|
|
3137
3710
|
*```js
|
|
3138
|
-
* liveboardEmbed.trigger(
|
|
3711
|
+
* liveboardEmbed.trigger(EmbedEvent.Delete,
|
|
3139
3712
|
* {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
3140
3713
|
*```
|
|
3141
3714
|
*/
|
|
@@ -3146,7 +3719,7 @@ export declare enum EmbedEvent {
|
|
|
3146
3719
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
3147
3720
|
* @example
|
|
3148
3721
|
*```js
|
|
3149
|
-
* liveboardEmbed.trigger(
|
|
3722
|
+
* liveboardEmbed.trigger(EmbedEvent.SchedulesList)
|
|
3150
3723
|
*```
|
|
3151
3724
|
*/
|
|
3152
3725
|
SchedulesList = "schedule-list",
|
|
@@ -3156,7 +3729,7 @@ export declare enum EmbedEvent {
|
|
|
3156
3729
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
3157
3730
|
* @example
|
|
3158
3731
|
*```js
|
|
3159
|
-
* liveboardEmbed.trigger(
|
|
3732
|
+
* liveboardEmbed.trigger(EmbedEvent.Cancel)
|
|
3160
3733
|
*```
|
|
3161
3734
|
*/
|
|
3162
3735
|
Cancel = "cancel",
|
|
@@ -3166,7 +3739,7 @@ export declare enum EmbedEvent {
|
|
|
3166
3739
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
3167
3740
|
* @example
|
|
3168
3741
|
*```js
|
|
3169
|
-
* liveboardEmbed.trigger(
|
|
3742
|
+
* liveboardEmbed.trigger(EmbedEvent.Explore, {
|
|
3170
3743
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
3171
3744
|
*```
|
|
3172
3745
|
*/
|
|
@@ -3177,7 +3750,7 @@ export declare enum EmbedEvent {
|
|
|
3177
3750
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
3178
3751
|
* @example
|
|
3179
3752
|
*```js
|
|
3180
|
-
* liveboardEmbed.trigger(
|
|
3753
|
+
* liveboardEmbed.trigger(EmbedEvent.CopyLink, {
|
|
3181
3754
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
3182
3755
|
*```
|
|
3183
3756
|
*/
|
|
@@ -3446,10 +4019,13 @@ export declare enum HostEvent {
|
|
|
3446
4019
|
* _String_. The name of the column to filter on.
|
|
3447
4020
|
* `operator`
|
|
3448
4021
|
* Runtime filter operator to apply. For information,
|
|
3449
|
-
* see
|
|
4022
|
+
* see https://developers.thoughtspot.com/docs/?pageid=runtime-filters#rtOperator.
|
|
3450
4023
|
* `values`
|
|
3451
4024
|
* List of operands. Some operators such as EQ, LE allow a single value, whereas
|
|
3452
4025
|
* operators such as BW and IN accept multiple operands.
|
|
4026
|
+
* **Note**: `HostEvent.UpdateRuntimeFilters` is not supported in
|
|
4027
|
+
* Search embedding (SearchEmbed) and Natural Language Search
|
|
4028
|
+
* embedding (SageEmbed).
|
|
3453
4029
|
*
|
|
3454
4030
|
* @param - {@link RuntimeFilter}[] an array of {@link RuntimeFilter} Types.
|
|
3455
4031
|
* @example
|
|
@@ -3974,6 +4550,7 @@ export declare enum HostEvent {
|
|
|
3974
4550
|
/**
|
|
3975
4551
|
*
|
|
3976
4552
|
* Get the currents visible and runtime filters applied on a Liveboard
|
|
4553
|
+
*
|
|
3977
4554
|
* @example
|
|
3978
4555
|
* liveboardEmbed.trigger(HostEvent.GetFilters)
|
|
3979
4556
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
@@ -3982,12 +4559,13 @@ export declare enum HostEvent {
|
|
|
3982
4559
|
/**
|
|
3983
4560
|
*
|
|
3984
4561
|
* Update the visible filters on the Liveboard.
|
|
4562
|
+
*
|
|
3985
4563
|
* @param - filter: filter object containing column name and filter operation and values
|
|
3986
4564
|
* @example
|
|
3987
4565
|
*
|
|
3988
4566
|
* ```js
|
|
3989
4567
|
* liveboardEmbed.trigger(HostEvent.UpdateFilters, {
|
|
3990
|
-
* filter: { column: 'column name', oper: '
|
|
4568
|
+
* filter: { column: 'column name', oper: 'IN', values: [1,2,3], is_mandatory: false }
|
|
3991
4569
|
* })
|
|
3992
4570
|
* ```
|
|
3993
4571
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
@@ -4073,7 +4651,33 @@ export declare enum HostEvent {
|
|
|
4073
4651
|
* ```
|
|
4074
4652
|
* @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
|
|
4075
4653
|
*/
|
|
4076
|
-
AskSage = "AskSage"
|
|
4654
|
+
AskSage = "AskSage",
|
|
4655
|
+
/**
|
|
4656
|
+
* Trigger UpdateCrossFilter for Liveboard
|
|
4657
|
+
*
|
|
4658
|
+
* @example
|
|
4659
|
+
* ```js
|
|
4660
|
+
* liveboardEmbed.trigger(HostEvent.UpdateCrossFilter, {
|
|
4661
|
+
* vizId: 'b535c760-8bbe-4e6f-bb26-af56b4129a1e',
|
|
4662
|
+
* conditions: [
|
|
4663
|
+
* { columnName: 'Category', values: ['mfgr#12','mfgr#14'] },
|
|
4664
|
+
* { columnName: 'color', values: ['mint','hot'] },
|
|
4665
|
+
* ],
|
|
4666
|
+
* });
|
|
4667
|
+
* ```
|
|
4668
|
+
* @version SDK: 1.29.0 | Thoughtspot: 10.0.0.cl
|
|
4669
|
+
*/
|
|
4670
|
+
UpdateCrossFilter = "UpdateCrossFilter",
|
|
4671
|
+
/**
|
|
4672
|
+
* Trigger ResetLiveboardPersonalisedView for Liveboard
|
|
4673
|
+
*
|
|
4674
|
+
* @example
|
|
4675
|
+
* ```js
|
|
4676
|
+
* liveboardEmbed.trigger(HostEvent.ResetLiveboardPersonalisedView);
|
|
4677
|
+
* ```
|
|
4678
|
+
* @version SDK: 1.29.0 | Thoughtspot: 10.1.0.cl
|
|
4679
|
+
*/
|
|
4680
|
+
ResetLiveboardPersonalisedView = "ResetLiveboardPersonalisedView"
|
|
4077
4681
|
}
|
|
4078
4682
|
/**
|
|
4079
4683
|
* The different visual modes that the data sources panel within
|
|
@@ -5041,6 +5645,7 @@ export declare enum Action {
|
|
|
5041
5645
|
AskAi = "AskAi",
|
|
5042
5646
|
/**
|
|
5043
5647
|
* The **Add KPI to Watchlist** action on Home page watchlist.
|
|
5648
|
+
*
|
|
5044
5649
|
* @example
|
|
5045
5650
|
* ```js
|
|
5046
5651
|
* disabledActions: [Action.AddToWatchlist]
|
|
@@ -5050,6 +5655,7 @@ export declare enum Action {
|
|
|
5050
5655
|
AddToWatchlist = "addToWatchlist",
|
|
5051
5656
|
/**
|
|
5052
5657
|
* The **Remove from watchlist** menu action on KPI watchlist.
|
|
5658
|
+
*
|
|
5053
5659
|
* @example
|
|
5054
5660
|
* ```js
|
|
5055
5661
|
* disabledActions: [Action.RemoveFromWatchlist]
|
|
@@ -5059,13 +5665,24 @@ export declare enum Action {
|
|
|
5059
5665
|
RemoveFromWatchlist = "removeFromWatchlist",
|
|
5060
5666
|
/**
|
|
5061
5667
|
* The **Copy KPI Link** menu action on KPI watchlist.
|
|
5668
|
+
*
|
|
5062
5669
|
* @example
|
|
5063
5670
|
* ```js
|
|
5064
5671
|
* disabledActions: [Action.CopyKpiLink]
|
|
5065
5672
|
* ```
|
|
5066
5673
|
* @version SDK : 1.27.9 | Thoughtspot: 9.12.5.cl
|
|
5067
5674
|
*/
|
|
5068
|
-
CopyKpiLink = "copyKpiLink"
|
|
5675
|
+
CopyKpiLink = "copyKpiLink",
|
|
5676
|
+
/**
|
|
5677
|
+
* Action ID for AI Highlights button
|
|
5678
|
+
*
|
|
5679
|
+
* @example
|
|
5680
|
+
* ```js
|
|
5681
|
+
* hiddenAction: [Action.AIHighlights]
|
|
5682
|
+
* ```
|
|
5683
|
+
* @version SDK: 1.27.10 | Thoughtspot: 9.12.5.cl
|
|
5684
|
+
*/
|
|
5685
|
+
AIHighlights = "AIHighlights"
|
|
5069
5686
|
}
|
|
5070
5687
|
export interface AnswerServiceType {
|
|
5071
5688
|
getAnswer?: (offset: number, batchSize: number) => any;
|
|
@@ -5722,6 +6339,17 @@ export declare function initMixpanel(sessionInfo: any): void;
|
|
|
5722
6339
|
*/
|
|
5723
6340
|
export declare function testResetMixpanel(): void;
|
|
5724
6341
|
|
|
6342
|
+
/**
|
|
6343
|
+
* Fetch wrapper that adds the authentication token to the request.
|
|
6344
|
+
* Use this to call the ThoughtSpot APIs when using the visual embed sdk.
|
|
6345
|
+
*
|
|
6346
|
+
* @param input
|
|
6347
|
+
* @param init
|
|
6348
|
+
* @version SDK: 1.28.0
|
|
6349
|
+
* @group Global methods
|
|
6350
|
+
*/
|
|
6351
|
+
export declare const tokenizedFetch: typeof fetch;
|
|
6352
|
+
|
|
5725
6353
|
/**
|
|
5726
6354
|
* Copyright (c) 2022
|
|
5727
6355
|
*
|
|
@@ -5914,7 +6542,7 @@ export declare class TsEmbed {
|
|
|
5914
6542
|
*
|
|
5915
6543
|
* @param args
|
|
5916
6544
|
*/
|
|
5917
|
-
render(): TsEmbed
|
|
6545
|
+
render(): Promise<TsEmbed>;
|
|
5918
6546
|
getIframeSrc(): string;
|
|
5919
6547
|
protected handleRenderForPrerender(): void;
|
|
5920
6548
|
/**
|