@thoughtspot/visual-embed-sdk 1.28.0-alpha.3 → 1.28.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/package.json +1 -1
- package/cjs/src/authToken.d.ts +6 -0
- package/cjs/src/authToken.d.ts.map +1 -1
- package/cjs/src/authToken.js +6 -0
- package/cjs/src/authToken.js.map +1 -1
- package/cjs/src/embed/app.d.ts +138 -2
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +1 -1
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/base.d.ts.map +1 -1
- package/cjs/src/embed/base.js +2 -0
- package/cjs/src/embed/base.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts +114 -5
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/search-bar.d.ts +36 -5
- package/cjs/src/embed/search-bar.d.ts.map +1 -1
- package/cjs/src/embed/search-bar.js.map +1 -1
- package/cjs/src/embed/search.d.ts +89 -0
- package/cjs/src/embed/search.d.ts.map +1 -1
- package/cjs/src/embed/search.js.map +1 -1
- package/cjs/src/index.d.ts +1 -0
- 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/types.d.ts +149 -8
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js.map +1 -1
- package/dist/src/authToken.d.ts +6 -0
- package/dist/src/authToken.d.ts.map +1 -1
- package/dist/src/embed/app.d.ts +138 -2
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/base.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +114 -5
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/search-bar.d.ts +36 -5
- package/dist/src/embed/search-bar.d.ts.map +1 -1
- package/dist/src/embed/search.d.ts +89 -0
- package/dist/src/embed/search.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/types.d.ts +149 -8
- package/dist/src/types.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +8 -2
- package/dist/tsembed-react.js +8 -2
- package/dist/tsembed.es.js +10 -3
- package/dist/tsembed.js +10 -2
- package/dist/visual-embed-sdk-react-full.d.ts +535 -20
- package/dist/visual-embed-sdk-react.d.ts +535 -20
- package/dist/visual-embed-sdk.d.ts +535 -20
- package/lib/package.json +1 -1
- package/lib/src/authToken.d.ts +6 -0
- package/lib/src/authToken.d.ts.map +1 -1
- package/lib/src/authToken.js +6 -0
- package/lib/src/authToken.js.map +1 -1
- package/lib/src/embed/app.d.ts +138 -2
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +1 -1
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/base.d.ts.map +1 -1
- package/lib/src/embed/base.js +2 -0
- package/lib/src/embed/base.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +114 -5
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/search-bar.d.ts +36 -5
- package/lib/src/embed/search-bar.d.ts.map +1 -1
- package/lib/src/embed/search-bar.js.map +1 -1
- package/lib/src/embed/search.d.ts +89 -0
- package/lib/src/embed/search.d.ts.map +1 -1
- package/lib/src/embed/search.js.map +1 -1
- package/lib/src/index.d.ts +1 -0
- package/lib/src/index.d.ts.map +1 -1
- package/lib/src/index.js +1 -0
- package/lib/src/index.js.map +1 -1
- package/lib/src/types.d.ts +149 -8
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +539 -20
- package/package.json +1 -1
- package/src/authToken.ts +6 -0
- package/src/embed/app.ts +145 -6
- package/src/embed/base.ts +2 -0
- package/src/embed/liveboard.ts +120 -7
- package/src/embed/search-bar.tsx +36 -5
- package/src/embed/search.ts +95 -2
- package/src/index.ts +2 -0
- package/src/types.ts +159 -18
|
@@ -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;
|
|
@@ -495,27 +526,74 @@ 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
|
+
*
|
|
532
|
+
* @example
|
|
533
|
+
* ```js
|
|
534
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
535
|
+
* ... // other options
|
|
536
|
+
* collapseDataSources:true,
|
|
537
|
+
* })
|
|
538
|
+
* ```
|
|
498
539
|
*/
|
|
499
540
|
collapseDataSources?: boolean;
|
|
500
541
|
/**
|
|
501
542
|
* Show or hide the data sources panel.
|
|
543
|
+
*
|
|
544
|
+
* @version: SDK: 1.2.0 | ThoughtSpot: 9.1.0.sw
|
|
545
|
+
*
|
|
546
|
+
* @example
|
|
547
|
+
* ```js
|
|
548
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
549
|
+
* ... // other options
|
|
550
|
+
* hideDataSources:true,
|
|
551
|
+
* })
|
|
552
|
+
* ```
|
|
502
553
|
*/
|
|
503
554
|
hideDataSources?: boolean;
|
|
504
555
|
/**
|
|
505
556
|
* Show or hide the charts and tables in search answers.
|
|
506
557
|
* This attribute can be used to create a custom visualization
|
|
507
558
|
* using raw answer data.
|
|
559
|
+
*
|
|
560
|
+
* @version: SDK: 1.2.0 | ThoughtSpot: 9.1.0.sw
|
|
561
|
+
*
|
|
562
|
+
* @example
|
|
563
|
+
* ```js
|
|
564
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
565
|
+
* ... // other options
|
|
566
|
+
* hideResults:true,
|
|
567
|
+
* })
|
|
568
|
+
* ```
|
|
508
569
|
*/
|
|
509
570
|
hideResults?: boolean;
|
|
510
571
|
/**
|
|
511
572
|
* If set to true, the Search Assist feature is enabled.
|
|
512
573
|
*
|
|
513
574
|
* @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1-sw
|
|
575
|
+
*
|
|
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
|
+
*
|
|
591
|
+
* @example
|
|
592
|
+
* ```js
|
|
593
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
594
|
+
* ... // other options
|
|
595
|
+
* forceTable:true,
|
|
596
|
+
* })
|
|
519
597
|
*/
|
|
520
598
|
forceTable?: boolean;
|
|
521
599
|
/**
|
|
@@ -523,12 +601,28 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
|
|
|
523
601
|
* Only a single data source is supported currently.
|
|
524
602
|
*
|
|
525
603
|
* @deprecated Use `dataSource` instead.
|
|
604
|
+
*
|
|
605
|
+
* @example
|
|
606
|
+
* ```js
|
|
607
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
608
|
+
* ... // other options
|
|
609
|
+
* dataSources:['id-234','id-456'],
|
|
610
|
+
* })
|
|
611
|
+
* ```
|
|
526
612
|
*/
|
|
527
613
|
dataSources?: string[];
|
|
528
614
|
/**
|
|
529
615
|
* The array of data source GUIDs to set on load.
|
|
530
616
|
*
|
|
531
617
|
* @version: SDK: 1.19.0
|
|
618
|
+
*
|
|
619
|
+
* @example
|
|
620
|
+
* ```js
|
|
621
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
622
|
+
* ... // other options
|
|
623
|
+
* dataSource:'id-234',
|
|
624
|
+
* })
|
|
625
|
+
* ```
|
|
532
626
|
*/
|
|
533
627
|
dataSource?: string;
|
|
534
628
|
/**
|
|
@@ -561,6 +655,16 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
|
|
|
561
655
|
searchOptions?: SearchOptions;
|
|
562
656
|
/**
|
|
563
657
|
* The GUID of a saved answer to load initially.
|
|
658
|
+
*
|
|
659
|
+
* @version: SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
|
|
660
|
+
*
|
|
661
|
+
* @example
|
|
662
|
+
* ```js
|
|
663
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
664
|
+
* ... // other options
|
|
665
|
+
* answerId:'sed-1234',
|
|
666
|
+
* })
|
|
667
|
+
* ```
|
|
564
668
|
*/
|
|
565
669
|
answerId?: string;
|
|
566
670
|
/**
|
|
@@ -568,6 +672,14 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
|
|
|
568
672
|
* The chart/table should still be visible.
|
|
569
673
|
*
|
|
570
674
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
|
|
675
|
+
*
|
|
676
|
+
* @example
|
|
677
|
+
* ```js
|
|
678
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
679
|
+
* ... // other options
|
|
680
|
+
* hideSearchBar:true,
|
|
681
|
+
* })
|
|
682
|
+
* ```
|
|
571
683
|
*/
|
|
572
684
|
hideSearchBar?: boolean;
|
|
573
685
|
/**
|
|
@@ -575,6 +687,14 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
|
|
|
575
687
|
*
|
|
576
688
|
* @default false
|
|
577
689
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
690
|
+
*
|
|
691
|
+
* @example
|
|
692
|
+
* ```js
|
|
693
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
694
|
+
* ... // other options
|
|
695
|
+
* dataPanelV2:false,
|
|
696
|
+
* })
|
|
697
|
+
* ```
|
|
578
698
|
*/
|
|
579
699
|
dataPanelV2?: boolean;
|
|
580
700
|
/**
|
|
@@ -664,6 +784,17 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
664
784
|
* If true, the top navigation bar within the ThoughtSpot app
|
|
665
785
|
* is displayed. By default, the navigation bar is hidden.
|
|
666
786
|
* This flag also controls the homepage left navigation bar.
|
|
787
|
+
*
|
|
788
|
+
* @default true
|
|
789
|
+
* @version SDK: 1.2.0 | Thoughtspot: 8.4.0.cl
|
|
790
|
+
*
|
|
791
|
+
* @example
|
|
792
|
+
* ```js
|
|
793
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
794
|
+
* ... // other options
|
|
795
|
+
* showPrimaryNavbar:true,
|
|
796
|
+
* })
|
|
797
|
+
* ```
|
|
667
798
|
*/
|
|
668
799
|
showPrimaryNavbar?: boolean;
|
|
669
800
|
/**
|
|
@@ -678,11 +809,29 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
678
809
|
*
|
|
679
810
|
* @default false
|
|
680
811
|
* @version SDK: 1.27.9 | Thoughtspot: 9.12.0.cl
|
|
812
|
+
*
|
|
813
|
+
* @example
|
|
814
|
+
* ```js
|
|
815
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
816
|
+
* ... // other options
|
|
817
|
+
* hideHomepageLeftNav : true,
|
|
818
|
+
* })
|
|
819
|
+
* ```
|
|
681
820
|
*/
|
|
682
821
|
hideHomepageLeftNav?: boolean;
|
|
683
822
|
/**
|
|
684
823
|
* Control the visibility of the help (?) and profile buttons on the
|
|
685
824
|
* Global nav-bar. By default, these buttons are visible on the nav-bar.
|
|
825
|
+
* @default false
|
|
826
|
+
* @version SDK: 1.2.0 | Thoughtspot: 8.4.0.cl
|
|
827
|
+
*
|
|
828
|
+
* @example
|
|
829
|
+
* ```js
|
|
830
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
831
|
+
* ... // other options
|
|
832
|
+
* disableProfileAndHelp: true,
|
|
833
|
+
* })
|
|
834
|
+
* ```
|
|
686
835
|
*/
|
|
687
836
|
disableProfileAndHelp?: boolean;
|
|
688
837
|
/**
|
|
@@ -693,6 +842,16 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
693
842
|
* To access the updated modular homepage, set
|
|
694
843
|
* `modularHomeExperience` to `true` (available in Early Access from 9.12 forward).
|
|
695
844
|
*
|
|
845
|
+
* @default false
|
|
846
|
+
* @version SDK: 1.2.0 | Thoughtspot: 8.4.0.cl
|
|
847
|
+
*
|
|
848
|
+
* @example
|
|
849
|
+
* ```js
|
|
850
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
851
|
+
* ... // other options
|
|
852
|
+
* hideApplicationSwitcher : true,
|
|
853
|
+
* })
|
|
854
|
+
* ```
|
|
696
855
|
*/
|
|
697
856
|
hideApplicationSwitcher?: boolean;
|
|
698
857
|
/**
|
|
@@ -703,6 +862,17 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
703
862
|
* To access the updated modular homepage, set
|
|
704
863
|
* `modularHomeExperience` to `true` (available in Early Access from 9.12 forward).
|
|
705
864
|
*
|
|
865
|
+
*
|
|
866
|
+
* @default true
|
|
867
|
+
* @version SDK: 1.2.0 | Thoughtspot: 9.4.0.cl
|
|
868
|
+
*
|
|
869
|
+
* @example
|
|
870
|
+
* ```js
|
|
871
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
872
|
+
* ... // other options
|
|
873
|
+
* hideOrgSwitcher : true,
|
|
874
|
+
* })
|
|
875
|
+
* ```
|
|
706
876
|
*/
|
|
707
877
|
hideOrgSwitcher?: boolean;
|
|
708
878
|
/**
|
|
@@ -714,9 +884,14 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
714
884
|
* For eg, if you want the component to open to a specific Liveboard
|
|
715
885
|
* you could set the path to `pinboard/<liveboardId>/tab/<tabId>`.
|
|
716
886
|
*
|
|
887
|
+
* @version SDK: 1.1.0 | Thoughtspot: 9.4.0.cl
|
|
888
|
+
*
|
|
717
889
|
* @example
|
|
718
|
-
* ```
|
|
719
|
-
*
|
|
890
|
+
* ```js
|
|
891
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
892
|
+
* ... // other options
|
|
893
|
+
* path:"pinboard/1234/tab/7464"
|
|
894
|
+
* })
|
|
720
895
|
* ```
|
|
721
896
|
*/
|
|
722
897
|
path?: string;
|
|
@@ -726,16 +901,48 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
726
901
|
*
|
|
727
902
|
* Use this to open to particular page in the app. To open to a specific
|
|
728
903
|
* path within the app, use the `path` attribute which is more flexible.
|
|
904
|
+
*
|
|
905
|
+
* @version SDK: 1.1.0 | Thoughtspot: 9.4.0.cl
|
|
906
|
+
*
|
|
907
|
+
* @example
|
|
908
|
+
* ```js
|
|
909
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
910
|
+
* ... // other options
|
|
911
|
+
* pageId : Page.Answers | Page.Data
|
|
912
|
+
* })
|
|
913
|
+
* ```
|
|
729
914
|
*/
|
|
730
915
|
pageId?: Page;
|
|
731
916
|
/**
|
|
732
917
|
* This puts a filter tag on the application. All metadata lists in the
|
|
733
918
|
* application, such as Liveboards and answers, would be filtered by this
|
|
734
919
|
* tag.
|
|
920
|
+
*
|
|
921
|
+
* @version SDK: 1.1.0 | Thoughtspot: 9.4.0.cl
|
|
922
|
+
* @example
|
|
923
|
+
* ```js
|
|
924
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
925
|
+
* ... // other options
|
|
926
|
+
* tag:'value',
|
|
927
|
+
* })
|
|
928
|
+
* ```
|
|
735
929
|
*/
|
|
736
930
|
tag?: string;
|
|
737
931
|
/**
|
|
738
932
|
* The array of GUIDs to be hidden
|
|
933
|
+
*
|
|
934
|
+
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
|
|
935
|
+
*
|
|
936
|
+
* @example
|
|
937
|
+
* ```js
|
|
938
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
939
|
+
* ... // other options
|
|
940
|
+
* hideObjects: [
|
|
941
|
+
* '430496d6-6903-4601-937e-2c691821af3c',
|
|
942
|
+
* 'f547ec54-2a37-4516-a222-2b06719af726'
|
|
943
|
+
* ]
|
|
944
|
+
* })
|
|
945
|
+
* ```
|
|
739
946
|
*/
|
|
740
947
|
hideObjects?: string[];
|
|
741
948
|
/**
|
|
@@ -748,8 +955,17 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
748
955
|
liveboardV2?: boolean;
|
|
749
956
|
/**
|
|
750
957
|
* If set to true, the Search Assist feature is enabled.
|
|
958
|
+
* @default true
|
|
751
959
|
*
|
|
752
960
|
* @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1-sw
|
|
961
|
+
*
|
|
962
|
+
* @example
|
|
963
|
+
* ```js
|
|
964
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
965
|
+
* ... // other options
|
|
966
|
+
* enableSearchAssist: true,
|
|
967
|
+
* })
|
|
968
|
+
* ```
|
|
753
969
|
*/
|
|
754
970
|
enableSearchAssist?: boolean;
|
|
755
971
|
/**
|
|
@@ -757,6 +973,14 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
757
973
|
* according to the height of the pages which support fullHeight mode.
|
|
758
974
|
*
|
|
759
975
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.4.0.cl, 9.4.0-sw
|
|
976
|
+
*
|
|
977
|
+
* @example
|
|
978
|
+
* ```js
|
|
979
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
980
|
+
* ... // other options
|
|
981
|
+
* fullHeight: true,
|
|
982
|
+
* })
|
|
983
|
+
* ```
|
|
760
984
|
*/
|
|
761
985
|
fullHeight?: boolean;
|
|
762
986
|
/**
|
|
@@ -772,6 +996,14 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
772
996
|
*
|
|
773
997
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
774
998
|
* @default false
|
|
999
|
+
*
|
|
1000
|
+
* @example
|
|
1001
|
+
* ```js
|
|
1002
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
1003
|
+
* ... // other options
|
|
1004
|
+
* hideLiveboardHeader : true,
|
|
1005
|
+
* })
|
|
1006
|
+
* ```
|
|
775
1007
|
*/
|
|
776
1008
|
hideLiveboardHeader?: boolean;
|
|
777
1009
|
/**
|
|
@@ -779,6 +1011,14 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
779
1011
|
*
|
|
780
1012
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
781
1013
|
* @default false
|
|
1014
|
+
*
|
|
1015
|
+
* @example
|
|
1016
|
+
* ```js
|
|
1017
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
1018
|
+
* ... // other options
|
|
1019
|
+
* showLiveboardTitle:true,
|
|
1020
|
+
* })
|
|
1021
|
+
* ```
|
|
782
1022
|
*/
|
|
783
1023
|
showLiveboardTitle?: boolean;
|
|
784
1024
|
/**
|
|
@@ -786,6 +1026,14 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
786
1026
|
*
|
|
787
1027
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
788
1028
|
* @default false
|
|
1029
|
+
*
|
|
1030
|
+
* @example
|
|
1031
|
+
* ```js
|
|
1032
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
1033
|
+
* ... // other options
|
|
1034
|
+
* showLiveboardDescription:true,
|
|
1035
|
+
* })
|
|
1036
|
+
* ```
|
|
789
1037
|
*/
|
|
790
1038
|
showLiveboardDescription?: boolean;
|
|
791
1039
|
/**
|
|
@@ -793,6 +1041,14 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
793
1041
|
*
|
|
794
1042
|
* @default false
|
|
795
1043
|
* @version SDK: 1.27.9 | Thoughtspot: 9.12.0.cl
|
|
1044
|
+
*
|
|
1045
|
+
* @example
|
|
1046
|
+
* ```js
|
|
1047
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
1048
|
+
* ... // other options
|
|
1049
|
+
* modularHomeExperience : true,
|
|
1050
|
+
* })
|
|
1051
|
+
* ```
|
|
796
1052
|
*/
|
|
797
1053
|
modularHomeExperience?: boolean;
|
|
798
1054
|
/**
|
|
@@ -891,6 +1147,14 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
891
1147
|
* incrementally as users scroll the page to view the charts and tables.
|
|
892
1148
|
*
|
|
893
1149
|
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1
|
|
1150
|
+
*
|
|
1151
|
+
* @example
|
|
1152
|
+
* ```js
|
|
1153
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
1154
|
+
* ... // other liveboard view config
|
|
1155
|
+
* fullHeight: true,
|
|
1156
|
+
* });
|
|
1157
|
+
* ```
|
|
894
1158
|
*/
|
|
895
1159
|
fullHeight?: boolean;
|
|
896
1160
|
/**
|
|
@@ -900,10 +1164,28 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
900
1164
|
*
|
|
901
1165
|
* @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
|
|
902
1166
|
* @default 500
|
|
1167
|
+
* @example
|
|
1168
|
+
* ```js
|
|
1169
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
1170
|
+
* ... // other liveboard view config
|
|
1171
|
+
* fullHeight: true,
|
|
1172
|
+
* defaultHeight: 600,
|
|
1173
|
+
* });
|
|
1174
|
+
* ```
|
|
903
1175
|
*/
|
|
904
1176
|
defaultHeight?: number;
|
|
905
1177
|
/**
|
|
906
1178
|
* @Deprecated If set to true, the context menu in visualizations will be enabled.
|
|
1179
|
+
*
|
|
1180
|
+
* @example
|
|
1181
|
+
* ```js
|
|
1182
|
+
* const embed = new LiveboardEmbed('#tsEmbed', {
|
|
1183
|
+
* ... // other options
|
|
1184
|
+
* enableVizTransformations:true,
|
|
1185
|
+
* })
|
|
1186
|
+
* ```
|
|
1187
|
+
*
|
|
1188
|
+
* @version: SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
|
|
907
1189
|
*/
|
|
908
1190
|
enableVizTransformations?: boolean;
|
|
909
1191
|
/**
|
|
@@ -911,6 +1193,12 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
911
1193
|
* Use either liveboardId or pinboardId to reference the Liveboard to embed.
|
|
912
1194
|
*
|
|
913
1195
|
* @version SDK: 1.3.0 | ThoughtSpot ts7.aug.cl, 7.2.1
|
|
1196
|
+
* @example
|
|
1197
|
+
* ```js
|
|
1198
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
1199
|
+
* ... // other options
|
|
1200
|
+
* liveboardId:id of liveboard,
|
|
1201
|
+
* })
|
|
914
1202
|
*/
|
|
915
1203
|
liveboardId?: string;
|
|
916
1204
|
/**
|
|
@@ -921,6 +1209,16 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
921
1209
|
pinboardId?: string;
|
|
922
1210
|
/**
|
|
923
1211
|
* The visualization within the Liveboard to display.
|
|
1212
|
+
*
|
|
1213
|
+
* @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
|
|
1214
|
+
*
|
|
1215
|
+
* @example
|
|
1216
|
+
* ```js
|
|
1217
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
1218
|
+
* ... // other options
|
|
1219
|
+
* vizId:'430496d6-6903-4601-937e-2c691821af3c',
|
|
1220
|
+
* })
|
|
1221
|
+
* ```
|
|
924
1222
|
*/
|
|
925
1223
|
vizId?: string;
|
|
926
1224
|
/**
|
|
@@ -928,6 +1226,13 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
928
1226
|
* Liveboard page will be read-only (no X buttons)
|
|
929
1227
|
*
|
|
930
1228
|
* @version SDK: 1.3.0 | ThoughtSpot ts7.aug.cl, 7.2.1.sw
|
|
1229
|
+
* @example
|
|
1230
|
+
* ```js
|
|
1231
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
1232
|
+
* ... // other options
|
|
1233
|
+
* preventLiveboardFilterRemoval:true,
|
|
1234
|
+
* })
|
|
1235
|
+
* ```
|
|
931
1236
|
*/
|
|
932
1237
|
preventLiveboardFilterRemoval?: boolean;
|
|
933
1238
|
/**
|
|
@@ -936,6 +1241,16 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
936
1241
|
* event.
|
|
937
1242
|
*
|
|
938
1243
|
* @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
|
|
1244
|
+
*
|
|
1245
|
+
* @example
|
|
1246
|
+
* ```js
|
|
1247
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
1248
|
+
* ... // other options
|
|
1249
|
+
* visibleVizs: [
|
|
1250
|
+
* '430496d6-6903-4601-937e-2c691821af3c',
|
|
1251
|
+
* 'f547ec54-2a37-4516-a222-2b06719af726'
|
|
1252
|
+
* ]
|
|
1253
|
+
* })
|
|
939
1254
|
*/
|
|
940
1255
|
visibleVizs?: string[];
|
|
941
1256
|
/**
|
|
@@ -949,12 +1264,26 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
949
1264
|
* new Liveboard experience mode.
|
|
950
1265
|
*
|
|
951
1266
|
* @version SDK: 1.14.0 | ThoughtSpot: 8.6.0.cl, 8.8.1-sw
|
|
1267
|
+
* @example
|
|
1268
|
+
* ```js
|
|
1269
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
1270
|
+
* ... // other options
|
|
1271
|
+
* liveboardV2:true,
|
|
1272
|
+
* })
|
|
1273
|
+
* ```
|
|
952
1274
|
*/
|
|
953
1275
|
liveboardV2?: boolean;
|
|
954
1276
|
/**
|
|
955
1277
|
* Set a Liveboard tab as an active tab.
|
|
956
1278
|
* Specify the tab ID.
|
|
957
1279
|
*
|
|
1280
|
+
* @example
|
|
1281
|
+
* ```js
|
|
1282
|
+
* const embed = new LiveboardEmbed('#tsEmbed', {
|
|
1283
|
+
* ... // other options
|
|
1284
|
+
* activeTabId:'id-1234',
|
|
1285
|
+
* })
|
|
1286
|
+
* ```
|
|
958
1287
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
|
|
959
1288
|
*/
|
|
960
1289
|
activeTabId?: string;
|
|
@@ -962,6 +1291,14 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
962
1291
|
* Show or hide the tab panel of the embedded Liveboard.
|
|
963
1292
|
*
|
|
964
1293
|
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl, 9.8.0.sw
|
|
1294
|
+
*
|
|
1295
|
+
* @example
|
|
1296
|
+
* ```js
|
|
1297
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
1298
|
+
* ... // other options
|
|
1299
|
+
* hideTabPanel:true,
|
|
1300
|
+
* })
|
|
1301
|
+
* ```
|
|
965
1302
|
*/
|
|
966
1303
|
hideTabPanel?: boolean;
|
|
967
1304
|
/**
|
|
@@ -969,20 +1306,41 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
969
1306
|
*
|
|
970
1307
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
971
1308
|
* @default false
|
|
1309
|
+
* @example
|
|
1310
|
+
* ```js
|
|
1311
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
1312
|
+
* ... // other liveboard view config
|
|
1313
|
+
* hideLiveboardHeader:true,
|
|
1314
|
+
* });
|
|
1315
|
+
* ```
|
|
972
1316
|
*/
|
|
973
1317
|
hideLiveboardHeader?: boolean;
|
|
974
1318
|
/**
|
|
975
1319
|
* Show or hide the Liveboard title.
|
|
976
|
-
*
|
|
977
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
978
1320
|
* @default false
|
|
1321
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
1322
|
+
*
|
|
1323
|
+
* @example
|
|
1324
|
+
* ```js
|
|
1325
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
1326
|
+
* ... // other options
|
|
1327
|
+
* showLiveboardTitle:true,
|
|
1328
|
+
* })
|
|
1329
|
+
* ```
|
|
979
1330
|
*/
|
|
980
1331
|
showLiveboardTitle?: boolean;
|
|
981
1332
|
/**
|
|
982
1333
|
* Show or hide the Liveboard description.
|
|
983
|
-
*
|
|
984
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
985
1334
|
* @default false
|
|
1335
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
1336
|
+
*
|
|
1337
|
+
* @example
|
|
1338
|
+
* ```js
|
|
1339
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
1340
|
+
* ... // other options
|
|
1341
|
+
* showLiveboardDescription:true,
|
|
1342
|
+
* })
|
|
1343
|
+
* ```
|
|
986
1344
|
*/
|
|
987
1345
|
showLiveboardDescription?: boolean;
|
|
988
1346
|
/**
|
|
@@ -1003,8 +1361,15 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
1003
1361
|
/**
|
|
1004
1362
|
* enable or disable ask sage
|
|
1005
1363
|
*
|
|
1006
|
-
* @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
|
|
1007
1364
|
* @default false
|
|
1365
|
+
* @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
|
|
1366
|
+
* @example
|
|
1367
|
+
* ```js
|
|
1368
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
1369
|
+
* ... // other options
|
|
1370
|
+
* enableAskSage:true,
|
|
1371
|
+
* })
|
|
1372
|
+
* ```
|
|
1008
1373
|
*/
|
|
1009
1374
|
enableAskSage?: boolean;
|
|
1010
1375
|
}
|
|
@@ -1995,8 +2360,21 @@ export interface ViewConfig {
|
|
|
1995
2360
|
*/
|
|
1996
2361
|
layoutConfig?: LayoutConfig;
|
|
1997
2362
|
/**
|
|
1998
|
-
* The
|
|
2363
|
+
* The width and height dimensions to render an embedded
|
|
1999
2364
|
* object inside your app. Specify the values in pixels or percentage.
|
|
2365
|
+
*
|
|
2366
|
+
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1
|
|
2367
|
+
*
|
|
2368
|
+
* @example
|
|
2369
|
+
* ```js
|
|
2370
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
2371
|
+
* ... // other liveboard view config
|
|
2372
|
+
* frameParams: {
|
|
2373
|
+
* width: '500px' | '50%',
|
|
2374
|
+
* height: '400px' | '60%',
|
|
2375
|
+
* },
|
|
2376
|
+
* });
|
|
2377
|
+
* ```
|
|
2000
2378
|
*/
|
|
2001
2379
|
frameParams?: FrameParams;
|
|
2002
2380
|
/**
|
|
@@ -2013,6 +2391,7 @@ export interface ViewConfig {
|
|
|
2013
2391
|
* for the user.
|
|
2014
2392
|
* Use this to disable actions.
|
|
2015
2393
|
*
|
|
2394
|
+
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
2016
2395
|
* @example
|
|
2017
2396
|
* ```js
|
|
2018
2397
|
* const embed = new LiveboardEmbed('#embed', {
|
|
@@ -2024,6 +2403,15 @@ export interface ViewConfig {
|
|
|
2024
2403
|
disabledActions?: Action[];
|
|
2025
2404
|
/**
|
|
2026
2405
|
* The tooltip to display for disabled actions.
|
|
2406
|
+
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
2407
|
+
* @example
|
|
2408
|
+
* ```js
|
|
2409
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
2410
|
+
* ... // other liveboard view config
|
|
2411
|
+
* disabledActions: [Action.Download, Action.Save]
|
|
2412
|
+
* disabledActionReason: "Reason for disabling",
|
|
2413
|
+
* });
|
|
2414
|
+
* ```
|
|
2027
2415
|
*/
|
|
2028
2416
|
disabledActionReason?: string;
|
|
2029
2417
|
/**
|
|
@@ -2031,6 +2419,8 @@ export interface ViewConfig {
|
|
|
2031
2419
|
* This actions will be hidden from the user.
|
|
2032
2420
|
* Use this to hide an action.
|
|
2033
2421
|
*
|
|
2422
|
+
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
2423
|
+
*
|
|
2034
2424
|
* @example
|
|
2035
2425
|
* ```js
|
|
2036
2426
|
* const embed = new LiveboardEmbed('#embed', {
|
|
@@ -2051,17 +2441,49 @@ export interface ViewConfig {
|
|
|
2051
2441
|
*
|
|
2052
2442
|
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
2053
2443
|
* @important
|
|
2444
|
+
*
|
|
2445
|
+
* @example
|
|
2446
|
+
* ```js
|
|
2447
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
2448
|
+
* ... // other liveboard view config
|
|
2449
|
+
* visibleActions: [Action.Download, Action.Export]
|
|
2450
|
+
* });
|
|
2451
|
+
* ```
|
|
2054
2452
|
*/
|
|
2055
2453
|
visibleActions?: Action[];
|
|
2056
2454
|
/**
|
|
2057
2455
|
* Show alert messages and toast messages in the embedded view.
|
|
2058
2456
|
*
|
|
2059
2457
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2458
|
+
*
|
|
2459
|
+
* @example
|
|
2460
|
+
* ```js
|
|
2461
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2462
|
+
* ... // other options
|
|
2463
|
+
* showAlerts:true,
|
|
2464
|
+
* })
|
|
2465
|
+
* ```
|
|
2060
2466
|
*/
|
|
2061
2467
|
showAlerts?: boolean;
|
|
2062
2468
|
/**
|
|
2063
2469
|
* The list of runtime filters to apply to a search answer,
|
|
2064
2470
|
* visualization, or Liveboard.
|
|
2471
|
+
*
|
|
2472
|
+
* @version SDK: 1.9.4 | ThoughtSpot 8.1.0.cl, 8.4.1.sw
|
|
2473
|
+
*
|
|
2474
|
+
* @example
|
|
2475
|
+
* ```js
|
|
2476
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2477
|
+
* ... // other options
|
|
2478
|
+
* runtimeFilters: [
|
|
2479
|
+
* {
|
|
2480
|
+
* columnName: 'value',
|
|
2481
|
+
* operator: RuntimeFilterOp.EQ,
|
|
2482
|
+
* values: ['string' | 123 | true],
|
|
2483
|
+
* },
|
|
2484
|
+
* ],
|
|
2485
|
+
* })
|
|
2486
|
+
* ```
|
|
2065
2487
|
*/
|
|
2066
2488
|
runtimeFilters?: RuntimeFilter[];
|
|
2067
2489
|
/**
|
|
@@ -2069,12 +2491,32 @@ export interface ViewConfig {
|
|
|
2069
2491
|
* visualization, or Liveboard.
|
|
2070
2492
|
*
|
|
2071
2493
|
* @version SDK : 1.25.0 | Thoughtspot: 9.2.0.cl, 9.5.0.sw
|
|
2494
|
+
*
|
|
2495
|
+
* @example
|
|
2496
|
+
* ```js
|
|
2497
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2498
|
+
* ... // other options
|
|
2499
|
+
* runtimeParameters: [
|
|
2500
|
+
* {
|
|
2501
|
+
* name: 'value',
|
|
2502
|
+
* value: 'string' | 123 | true,
|
|
2503
|
+
* },
|
|
2504
|
+
* ],
|
|
2505
|
+
* })
|
|
2506
|
+
* ```
|
|
2072
2507
|
*/
|
|
2073
2508
|
runtimeParameters?: RuntimeParameter[];
|
|
2074
2509
|
/**
|
|
2075
2510
|
* The locale/language to use for the embedded view.
|
|
2076
2511
|
*
|
|
2077
2512
|
* @version SDK: 1.9.4 | ThoughtSpot 8.1.0.cl, 8.4.1.sw
|
|
2513
|
+
* @example
|
|
2514
|
+
* ```js
|
|
2515
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2516
|
+
* ... // other options
|
|
2517
|
+
* locale:'en',
|
|
2518
|
+
* })
|
|
2519
|
+
* ```
|
|
2078
2520
|
*/
|
|
2079
2521
|
locale?: string;
|
|
2080
2522
|
/**
|
|
@@ -2084,7 +2526,16 @@ export interface ViewConfig {
|
|
|
2084
2526
|
* Warning: This option is for advanced use only and is used internally
|
|
2085
2527
|
* to control embed behavior in non-regular ways. We do not publish the
|
|
2086
2528
|
* list of supported keys and values associated with each.
|
|
2087
|
-
*
|
|
2529
|
+
* @example
|
|
2530
|
+
* ```js
|
|
2531
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
2532
|
+
* ... // other liveboard view config
|
|
2533
|
+
* additionalFlags: {
|
|
2534
|
+
* flag1: 'value1',
|
|
2535
|
+
* flag2: 'value2'
|
|
2536
|
+
* }
|
|
2537
|
+
* });
|
|
2538
|
+
* ```
|
|
2088
2539
|
* @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
|
|
2089
2540
|
*/
|
|
2090
2541
|
additionalFlags?: {
|
|
@@ -2101,18 +2552,42 @@ export interface ViewConfig {
|
|
|
2101
2552
|
/**
|
|
2102
2553
|
* Insert as a sibling of the target container, instead of appending to a
|
|
2103
2554
|
* child inside it.
|
|
2555
|
+
*
|
|
2556
|
+
* @version SDK: 1.2.0 | Thoughtspot: 9.0.0.cl, 9.0.0.sw
|
|
2557
|
+
*
|
|
2558
|
+
* @example
|
|
2559
|
+
* ```js
|
|
2560
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2561
|
+
* ... // other options
|
|
2562
|
+
* insertAsSibling:true,
|
|
2563
|
+
* })
|
|
2564
|
+
* ```
|
|
2104
2565
|
*/
|
|
2105
2566
|
insertAsSibling?: boolean;
|
|
2106
2567
|
/**
|
|
2107
2568
|
* flag to set ContextMenu Trigger to either left or right click.
|
|
2108
2569
|
*
|
|
2570
|
+
* @example
|
|
2571
|
+
* ```js
|
|
2572
|
+
* const embed = new LiveboardEmbed('#tsEmbed', {
|
|
2573
|
+
* ... // other options
|
|
2574
|
+
* contextMenuTrigger:ContextMenuTriggerOptions.LEFT_CLICK || RIGHT_CLICK,
|
|
2575
|
+
* })
|
|
2576
|
+
* ```
|
|
2109
2577
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
2110
2578
|
*/
|
|
2111
2579
|
contextMenuTrigger?: ContextMenuTriggerOptions;
|
|
2112
2580
|
/**
|
|
2113
|
-
*
|
|
2581
|
+
* Flag to override openNew tab context menu link
|
|
2114
2582
|
*
|
|
2115
2583
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
2584
|
+
* @example
|
|
2585
|
+
* ```js
|
|
2586
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2587
|
+
* ... // other options
|
|
2588
|
+
* linkOverride:false,
|
|
2589
|
+
* })
|
|
2590
|
+
* ```
|
|
2116
2591
|
*/
|
|
2117
2592
|
linkOverride?: boolean;
|
|
2118
2593
|
/**
|
|
@@ -2170,6 +2645,14 @@ export interface ViewConfig {
|
|
|
2170
2645
|
* `modularHomeExperience` to `true` (available in Early Access from 9.12 forward).
|
|
2171
2646
|
*
|
|
2172
2647
|
* @version SDK: 1.27.9 | Thoughtspot: 9.12.0.cl
|
|
2648
|
+
* @example
|
|
2649
|
+
* ```js
|
|
2650
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
2651
|
+
* ... // other options
|
|
2652
|
+
* hiddenHomepageModules : [HomepageModule.Favorite,HomepageModule.Learning],
|
|
2653
|
+
* })
|
|
2654
|
+
* ```
|
|
2655
|
+
*
|
|
2173
2656
|
*/
|
|
2174
2657
|
hiddenHomepageModules?: HomepageModule[];
|
|
2175
2658
|
/**
|
|
@@ -2181,6 +2664,14 @@ export interface ViewConfig {
|
|
|
2181
2664
|
* `modularHomeExperience` to `true` (available in Early Access from 9.12.0.cl onwards).
|
|
2182
2665
|
*
|
|
2183
2666
|
* @version SDK: 1.27.9| Thoughtspot: 9.12.0.cl
|
|
2667
|
+
*
|
|
2668
|
+
* @example
|
|
2669
|
+
* ```js
|
|
2670
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
2671
|
+
* ... // other options
|
|
2672
|
+
* reorderedHomepageModules:[HomepageModule.Favorite,HomepageModule.MyLibrary]
|
|
2673
|
+
* })
|
|
2674
|
+
* ```
|
|
2184
2675
|
*/
|
|
2185
2676
|
reorderedHomepageModules?: HomepageModule[];
|
|
2186
2677
|
/**
|
|
@@ -2189,13 +2680,18 @@ export interface ViewConfig {
|
|
|
2189
2680
|
*
|
|
2190
2681
|
* Use either `visibleTabs` or `hiddenTabs`.
|
|
2191
2682
|
*
|
|
2683
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
2684
|
+
*
|
|
2192
2685
|
* @example
|
|
2193
2686
|
* ```js
|
|
2194
|
-
*
|
|
2195
|
-
*
|
|
2196
|
-
*
|
|
2687
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2688
|
+
* ... // other options
|
|
2689
|
+
* visibleTabs: [
|
|
2690
|
+
* '430496d6-6903-4601-937e-2c691821af3c',
|
|
2691
|
+
* 'f547ec54-2a37-4516-a222-2b06719af726'
|
|
2692
|
+
* ]
|
|
2693
|
+
* })
|
|
2197
2694
|
* ```
|
|
2198
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
2199
2695
|
*/
|
|
2200
2696
|
visibleTabs?: string[];
|
|
2201
2697
|
/**
|
|
@@ -2203,8 +2699,14 @@ export interface ViewConfig {
|
|
|
2203
2699
|
* There are 8 eight home navigation list items.
|
|
2204
2700
|
* To hide these items, specify the string in the array.
|
|
2205
2701
|
*
|
|
2702
|
+
* @version SDK: 1.27.0 | Thoughtspot: 9.10.0.cl
|
|
2703
|
+
*
|
|
2704
|
+
* * @example
|
|
2206
2705
|
* ```js
|
|
2207
|
-
*
|
|
2706
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
2707
|
+
* ... // other options
|
|
2708
|
+
* hiddenHomeLeftNavItems : [HomeLeftNavItem.Home,HomeLeftNavItem.Answers],
|
|
2709
|
+
* })
|
|
2208
2710
|
* ```
|
|
2209
2711
|
*
|
|
2210
2712
|
* **Note**: This option does not apply to the classic homepage.
|
|
@@ -2238,7 +2740,10 @@ export interface ViewConfig {
|
|
|
2238
2740
|
*
|
|
2239
2741
|
* @type {boolean}
|
|
2240
2742
|
* @default false
|
|
2743
|
+
* @version SDK: 1.24.0 | ThoughtSpot:9.4.0.cl, 9.4.0.sw
|
|
2744
|
+
*
|
|
2241
2745
|
* @example
|
|
2746
|
+
* ```js
|
|
2242
2747
|
* // Disable tracking PreRender size in the configuration
|
|
2243
2748
|
* const config = {
|
|
2244
2749
|
* doNotTrackPreRenderSize: true,
|
|
@@ -2246,6 +2751,7 @@ export interface ViewConfig {
|
|
|
2246
2751
|
*
|
|
2247
2752
|
* // Instantiate an object with the configuration
|
|
2248
2753
|
* const myComponent = new MyComponent(config);
|
|
2754
|
+
* ```
|
|
2249
2755
|
*/
|
|
2250
2756
|
doNotTrackPreRenderSize?: boolean;
|
|
2251
2757
|
/**
|
|
@@ -5856,6 +6362,15 @@ export declare function testResetMixpanel(): void;
|
|
|
5856
6362
|
*/
|
|
5857
6363
|
export declare const tokenizedFetch: typeof fetch;
|
|
5858
6364
|
|
|
6365
|
+
export declare const getAuthenticationToken: (embedConfig: EmbedConfig) => Promise<string>;
|
|
6366
|
+
/**
|
|
6367
|
+
* Resets the auth token and a new token will be fetched on the next request.
|
|
6368
|
+
*
|
|
6369
|
+
* @version SDK: 1.28.0 | ThoughtSpot: *
|
|
6370
|
+
* @group Authentication / Init
|
|
6371
|
+
*/
|
|
6372
|
+
export declare const resetCachedAuthToken: () => void;
|
|
6373
|
+
|
|
5859
6374
|
/**
|
|
5860
6375
|
* Copyright (c) 2022
|
|
5861
6376
|
*
|