@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.
Files changed (216) hide show
  1. package/README.md +1 -1
  2. package/cjs/package.json +3 -4
  3. package/cjs/src/auth.d.ts +16 -1
  4. package/cjs/src/auth.d.ts.map +1 -1
  5. package/cjs/src/auth.js +7 -3
  6. package/cjs/src/auth.js.map +1 -1
  7. package/cjs/src/auth.spec.d.ts.map +1 -1
  8. package/cjs/src/auth.spec.js +9 -0
  9. package/cjs/src/auth.spec.js.map +1 -1
  10. package/cjs/src/embed/app.d.ts +150 -7
  11. package/cjs/src/embed/app.d.ts.map +1 -1
  12. package/cjs/src/embed/app.js +5 -5
  13. package/cjs/src/embed/app.js.map +1 -1
  14. package/cjs/src/embed/app.spec.js +19 -1
  15. package/cjs/src/embed/app.spec.js.map +1 -1
  16. package/cjs/src/embed/base.d.ts +1 -1
  17. package/cjs/src/embed/base.d.ts.map +1 -1
  18. package/cjs/src/embed/base.js +5 -8
  19. package/cjs/src/embed/base.js.map +1 -1
  20. package/cjs/src/embed/base.spec.js +1 -1
  21. package/cjs/src/embed/base.spec.js.map +1 -1
  22. package/cjs/src/embed/embed.spec.js +0 -15
  23. package/cjs/src/embed/embed.spec.js.map +1 -1
  24. package/cjs/src/embed/liveboard.d.ts +113 -4
  25. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  26. package/cjs/src/embed/liveboard.js +2 -2
  27. package/cjs/src/embed/liveboard.js.map +1 -1
  28. package/cjs/src/embed/liveboard.spec.js +20 -1
  29. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  30. package/cjs/src/embed/pinboard.spec.js +20 -1
  31. package/cjs/src/embed/pinboard.spec.js.map +1 -1
  32. package/cjs/src/embed/sage.d.ts +1 -1
  33. package/cjs/src/embed/sage.d.ts.map +1 -1
  34. package/cjs/src/embed/sage.js +2 -2
  35. package/cjs/src/embed/sage.js.map +1 -1
  36. package/cjs/src/embed/search-bar.d.ts +37 -6
  37. package/cjs/src/embed/search-bar.d.ts.map +1 -1
  38. package/cjs/src/embed/search-bar.js +2 -2
  39. package/cjs/src/embed/search-bar.js.map +1 -1
  40. package/cjs/src/embed/search.d.ts +85 -2
  41. package/cjs/src/embed/search.d.ts.map +1 -1
  42. package/cjs/src/embed/search.js +6 -6
  43. package/cjs/src/embed/search.js.map +1 -1
  44. package/cjs/src/embed/search.spec.js +25 -1
  45. package/cjs/src/embed/search.spec.js.map +1 -1
  46. package/cjs/src/embed/ts-embed-trigger.spec.d.ts +2 -0
  47. package/cjs/src/embed/ts-embed-trigger.spec.d.ts.map +1 -0
  48. package/cjs/src/embed/ts-embed-trigger.spec.js +34 -0
  49. package/cjs/src/embed/ts-embed-trigger.spec.js.map +1 -0
  50. package/cjs/src/embed/ts-embed.d.ts +2 -2
  51. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  52. package/cjs/src/embed/ts-embed.js +18 -13
  53. package/cjs/src/embed/ts-embed.js.map +1 -1
  54. package/cjs/src/embed/ts-embed.spec.js +64 -25
  55. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  56. package/cjs/src/index.d.ts +2 -1
  57. package/cjs/src/index.d.ts.map +1 -1
  58. package/cjs/src/index.js +3 -1
  59. package/cjs/src/index.js.map +1 -1
  60. package/cjs/src/react/index.spec.js +13 -1
  61. package/cjs/src/react/index.spec.js.map +1 -1
  62. package/cjs/src/test/test-utils.d.ts +1 -0
  63. package/cjs/src/test/test-utils.d.ts.map +1 -1
  64. package/cjs/src/test/test-utils.js +10 -1
  65. package/cjs/src/test/test-utils.js.map +1 -1
  66. package/cjs/src/tokenizedFetch.d.ts +9 -0
  67. package/cjs/src/tokenizedFetch.d.ts.map +1 -1
  68. package/cjs/src/tokenizedFetch.js +9 -0
  69. package/cjs/src/tokenizedFetch.js.map +1 -1
  70. package/cjs/src/types.d.ts +279 -43
  71. package/cjs/src/types.d.ts.map +1 -1
  72. package/cjs/src/types.js +95 -20
  73. package/cjs/src/types.js.map +1 -1
  74. package/cjs/src/utils/authService/authService.d.ts.map +1 -1
  75. package/cjs/src/utils/authService/authService.js +9 -3
  76. package/cjs/src/utils/authService/authService.js.map +1 -1
  77. package/cjs/src/utils/authService/authService.spec.js +22 -0
  78. package/cjs/src/utils/authService/authService.spec.js.map +1 -1
  79. package/dist/src/auth.d.ts +16 -1
  80. package/dist/src/auth.d.ts.map +1 -1
  81. package/dist/src/auth.spec.d.ts.map +1 -1
  82. package/dist/src/embed/app.d.ts +150 -7
  83. package/dist/src/embed/app.d.ts.map +1 -1
  84. package/dist/src/embed/base.d.ts +1 -1
  85. package/dist/src/embed/base.d.ts.map +1 -1
  86. package/dist/src/embed/liveboard.d.ts +113 -4
  87. package/dist/src/embed/liveboard.d.ts.map +1 -1
  88. package/dist/src/embed/sage.d.ts +1 -1
  89. package/dist/src/embed/sage.d.ts.map +1 -1
  90. package/dist/src/embed/search-bar.d.ts +37 -6
  91. package/dist/src/embed/search-bar.d.ts.map +1 -1
  92. package/dist/src/embed/search.d.ts +85 -2
  93. package/dist/src/embed/search.d.ts.map +1 -1
  94. package/dist/src/embed/ts-embed-trigger.spec.d.ts +2 -0
  95. package/dist/src/embed/ts-embed-trigger.spec.d.ts.map +1 -0
  96. package/dist/src/embed/ts-embed.d.ts +2 -2
  97. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  98. package/dist/src/index.d.ts +2 -1
  99. package/dist/src/index.d.ts.map +1 -1
  100. package/dist/src/test/test-utils.d.ts +1 -0
  101. package/dist/src/test/test-utils.d.ts.map +1 -1
  102. package/dist/src/tokenizedFetch.d.ts +9 -0
  103. package/dist/src/tokenizedFetch.d.ts.map +1 -1
  104. package/dist/src/types.d.ts +279 -43
  105. package/dist/src/types.d.ts.map +1 -1
  106. package/dist/src/utils/authService/authService.d.ts.map +1 -1
  107. package/dist/tsembed-react.es.js +1543 -1445
  108. package/dist/tsembed-react.js +6614 -6529
  109. package/dist/tsembed.es.js +1921 -1826
  110. package/dist/tsembed.js +15342 -15259
  111. package/dist/visual-embed-sdk-react-full.d.ts +692 -64
  112. package/dist/visual-embed-sdk-react.d.ts +692 -64
  113. package/dist/visual-embed-sdk.d.ts +692 -64
  114. package/lib/package.json +3 -4
  115. package/lib/src/auth.d.ts +16 -1
  116. package/lib/src/auth.d.ts.map +1 -1
  117. package/lib/src/auth.js +8 -4
  118. package/lib/src/auth.js.map +1 -1
  119. package/lib/src/auth.spec.d.ts.map +1 -1
  120. package/lib/src/auth.spec.js +9 -0
  121. package/lib/src/auth.spec.js.map +1 -1
  122. package/lib/src/embed/app.d.ts +150 -7
  123. package/lib/src/embed/app.d.ts.map +1 -1
  124. package/lib/src/embed/app.js +5 -5
  125. package/lib/src/embed/app.js.map +1 -1
  126. package/lib/src/embed/app.spec.js +19 -1
  127. package/lib/src/embed/app.spec.js.map +1 -1
  128. package/lib/src/embed/base.d.ts +1 -1
  129. package/lib/src/embed/base.d.ts.map +1 -1
  130. package/lib/src/embed/base.js +5 -8
  131. package/lib/src/embed/base.js.map +1 -1
  132. package/lib/src/embed/base.spec.js +2 -2
  133. package/lib/src/embed/base.spec.js.map +1 -1
  134. package/lib/src/embed/embed.spec.js +2 -17
  135. package/lib/src/embed/embed.spec.js.map +1 -1
  136. package/lib/src/embed/liveboard.d.ts +113 -4
  137. package/lib/src/embed/liveboard.d.ts.map +1 -1
  138. package/lib/src/embed/liveboard.js +3 -3
  139. package/lib/src/embed/liveboard.js.map +1 -1
  140. package/lib/src/embed/liveboard.spec.js +20 -1
  141. package/lib/src/embed/liveboard.spec.js.map +1 -1
  142. package/lib/src/embed/pinboard.spec.js +20 -1
  143. package/lib/src/embed/pinboard.spec.js.map +1 -1
  144. package/lib/src/embed/sage.d.ts +1 -1
  145. package/lib/src/embed/sage.d.ts.map +1 -1
  146. package/lib/src/embed/sage.js +2 -2
  147. package/lib/src/embed/sage.js.map +1 -1
  148. package/lib/src/embed/search-bar.d.ts +37 -6
  149. package/lib/src/embed/search-bar.d.ts.map +1 -1
  150. package/lib/src/embed/search-bar.js +2 -2
  151. package/lib/src/embed/search-bar.js.map +1 -1
  152. package/lib/src/embed/search.d.ts +85 -2
  153. package/lib/src/embed/search.d.ts.map +1 -1
  154. package/lib/src/embed/search.js +7 -7
  155. package/lib/src/embed/search.js.map +1 -1
  156. package/lib/src/embed/search.spec.js +25 -1
  157. package/lib/src/embed/search.spec.js.map +1 -1
  158. package/lib/src/embed/ts-embed-trigger.spec.d.ts +2 -0
  159. package/lib/src/embed/ts-embed-trigger.spec.d.ts.map +1 -0
  160. package/lib/src/embed/ts-embed-trigger.spec.js +32 -0
  161. package/lib/src/embed/ts-embed-trigger.spec.js.map +1 -0
  162. package/lib/src/embed/ts-embed.d.ts +2 -2
  163. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  164. package/lib/src/embed/ts-embed.js +21 -16
  165. package/lib/src/embed/ts-embed.js.map +1 -1
  166. package/lib/src/embed/ts-embed.spec.js +57 -18
  167. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  168. package/lib/src/index.d.ts +2 -1
  169. package/lib/src/index.d.ts.map +1 -1
  170. package/lib/src/index.js +2 -1
  171. package/lib/src/index.js.map +1 -1
  172. package/lib/src/react/index.spec.js +13 -1
  173. package/lib/src/react/index.spec.js.map +1 -1
  174. package/lib/src/test/test-utils.d.ts +1 -0
  175. package/lib/src/test/test-utils.d.ts.map +1 -1
  176. package/lib/src/test/test-utils.js +8 -0
  177. package/lib/src/test/test-utils.js.map +1 -1
  178. package/lib/src/tokenizedFetch.d.ts +9 -0
  179. package/lib/src/tokenizedFetch.d.ts.map +1 -1
  180. package/lib/src/tokenizedFetch.js +9 -0
  181. package/lib/src/tokenizedFetch.js.map +1 -1
  182. package/lib/src/types.d.ts +279 -43
  183. package/lib/src/types.d.ts.map +1 -1
  184. package/lib/src/types.js +95 -20
  185. package/lib/src/types.js.map +1 -1
  186. package/lib/src/utils/authService/authService.d.ts.map +1 -1
  187. package/lib/src/utils/authService/authService.js +9 -3
  188. package/lib/src/utils/authService/authService.js.map +1 -1
  189. package/lib/src/utils/authService/authService.spec.js +23 -1
  190. package/lib/src/utils/authService/authService.spec.js.map +1 -1
  191. package/lib/src/visual-embed-sdk.d.ts +699 -68
  192. package/package.json +3 -4
  193. package/src/auth.spec.ts +10 -0
  194. package/src/auth.ts +27 -8
  195. package/src/embed/app.spec.ts +24 -1
  196. package/src/embed/app.ts +154 -13
  197. package/src/embed/base.spec.ts +3 -3
  198. package/src/embed/base.ts +13 -17
  199. package/src/embed/embed.spec.ts +0 -18
  200. package/src/embed/liveboard.spec.ts +24 -1
  201. package/src/embed/liveboard.ts +121 -15
  202. package/src/embed/pinboard.spec.ts +24 -1
  203. package/src/embed/sage.ts +2 -2
  204. package/src/embed/search-bar.tsx +38 -7
  205. package/src/embed/search.spec.ts +29 -1
  206. package/src/embed/search.ts +93 -9
  207. package/src/embed/ts-embed-trigger.spec.ts +39 -0
  208. package/src/embed/ts-embed.spec.ts +71 -30
  209. package/src/embed/ts-embed.ts +48 -45
  210. package/src/index.ts +2 -0
  211. package/src/react/index.spec.tsx +30 -0
  212. package/src/test/test-utils.ts +9 -0
  213. package/src/tokenizedFetch.ts +9 -0
  214. package/src/types.ts +288 -50
  215. package/src/utils/authService/authService.spec.ts +31 -4
  216. package/src/utils/authService/authService.ts +14 -13
@@ -234,18 +234,44 @@ export interface SearchBarViewConfig extends Omit<ViewConfig, 'runtimeFilters' |
234
234
  * Only a single data source is supported currently.
235
235
  *
236
236
  * @deprecated Use `dataSource` instead
237
+ *
238
+ * @version: SDK: 1.1.0 | ThoughtSpot: 8.1.1-sw
239
+ *
240
+ * @example
241
+ * ```js
242
+ * const embed = new SearchBarEmbed('#tsEmbed', {
243
+ * ... // other options
244
+ * dataSources:['id-2345','id-2345'],
245
+ * })
246
+ * ```
237
247
  */
238
248
  dataSources?: string[];
239
249
  /**
240
- * The array of data source GUIDs to set on load.
250
+ * Pass the ID of the source to be selected.
241
251
  *
242
252
  * @version: SDK: 1.19.0, ThoughtSpot 9.0.0.cl, 9.0.1.sw
253
+ *
254
+ * @example
255
+ * ```js
256
+ * const embed = new SearchBarEmbed('#tsEmbed', {
257
+ * ... // other options
258
+ * dataSource:'id-2345',
259
+ * })
260
+ * ```
243
261
  */
244
262
  dataSource?: string;
245
263
  /**
246
264
  * Boolean to define if the last selected data source should be used
247
265
  *
248
266
  * @version: SDK: 1.24.0, ThoughtSpot 9.5.0.cl, 9.5.0.sw
267
+ *
268
+ * @example
269
+ * ```js
270
+ * const embed = new SearchBarEmbed('#tsEmbed', {
271
+ * ... // other options
272
+ * useLastSelectedSources:false,
273
+ * })
274
+ * ```
249
275
  */
250
276
  useLastSelectedSources?: boolean;
251
277
  /**
@@ -259,12 +285,17 @@ export interface SearchBarViewConfig extends Omit<ViewConfig, 'runtimeFilters' |
259
285
  * If it’s not executed, the focus is placed at the end of
260
286
  * the token string in the search bar.
261
287
  *
288
+ * @version: SDK: 1.2.0 | ThoughtSpot: 9.4.0.sw
289
+ *
262
290
  * @example
263
291
  * ```js
264
- * searchOptions: {
265
- * searchTokenString: '[quantity purchased] [region]',
266
- * executeSearch: true,
267
- * }
292
+ * const embed = new SearchBarEmbed('#tsEmbed', {
293
+ * ... // other options
294
+ * searchOptions: {
295
+ * searchTokenString: '[quantity purchased] [region]',
296
+ * executeSearch: true,
297
+ * }
298
+ * })
268
299
  * ```
269
300
  */
270
301
  searchOptions?: SearchOptions;
@@ -285,7 +316,7 @@ export declare class SearchBarEmbed extends TsEmbed {
285
316
  /**
286
317
  * Render the embedded ThoughtSpot search
287
318
  */
288
- render(): SearchBarEmbed;
319
+ render(): Promise<SearchBarEmbed>;
289
320
  }
290
321
 
291
322
  /**
@@ -447,7 +478,7 @@ export declare class SageEmbed extends V1Embed {
447
478
  *
448
479
  * @returns {SageEmbed} Eureka/Sage embed
449
480
  */
450
- render(): SageEmbed;
481
+ render(): Promise<SageEmbed>;
451
482
  }
452
483
 
453
484
  /**
@@ -484,27 +515,73 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
484
515
  /**
485
516
  * If set to true, the data sources panel is collapsed on load,
486
517
  * but can be expanded manually.
518
+ *
519
+ * @version: SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
520
+ * @example
521
+ * ```js
522
+ * const embed = new SearchEmbed('#tsEmbed', {
523
+ * ... // other options
524
+ * collapseDataSources:true,
525
+ * })
526
+ * ```
487
527
  */
488
528
  collapseDataSources?: boolean;
489
529
  /**
490
530
  * Show or hide the data sources panel.
531
+ *
532
+ * @version: SDK: 1.2.0 | ThoughtSpot: 9.1.0.sw
533
+ * @example
534
+ * ```js
535
+ * const embed = new SearchEmbed('#tsEmbed', {
536
+ * ... // other options
537
+ * hideDataSources:true,
538
+ * })
539
+ * ```
491
540
  */
492
541
  hideDataSources?: boolean;
493
542
  /**
494
543
  * Show or hide the charts and tables in search answers.
495
544
  * This attribute can be used to create a custom visualization
496
545
  * using raw answer data.
546
+ *
547
+ * @version: SDK: 1.2.0 | ThoughtSpot: 9.1.0.sw
548
+ * @example
549
+ * ```js
550
+ * const embed = new SearchEmbed('#tsEmbed', {
551
+ * ... // other options
552
+ * hideResults:true,
553
+ * })
554
+ * ```
497
555
  */
498
556
  hideResults?: boolean;
557
+ /**
558
+ * If set to true, expands all the data sources panel.
559
+ */
560
+ expandAllDataSource?: boolean;
499
561
  /**
500
562
  * If set to true, the Search Assist feature is enabled.
501
563
  *
502
564
  * @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1-sw
565
+ * @example
566
+ * ```js
567
+ * const embed = new SearchEmbed('#tsEmbed', {
568
+ * ... // other options
569
+ * enableSearchAssist:true,
570
+ * })
571
+ * ```
503
572
  */
504
573
  enableSearchAssist?: boolean;
505
574
  /**
506
575
  * If set to true, the tabular view is set as the default
507
576
  * format for presenting search data.
577
+ *
578
+ * @version: SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
579
+ * @example
580
+ * ```js
581
+ * const embed = new SearchEmbed('#tsEmbed', {
582
+ * ... // other options
583
+ * forceTable:true,
584
+ * })
508
585
  */
509
586
  forceTable?: boolean;
510
587
  /**
@@ -512,12 +589,26 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
512
589
  * Only a single data source is supported currently.
513
590
  *
514
591
  * @deprecated Use `dataSource` instead.
592
+ * @example
593
+ * ```js
594
+ * const embed = new SearchEmbed('#tsEmbed', {
595
+ * ... // other options
596
+ * dataSources:['id-234','id-456'],
597
+ * })
598
+ * ```
515
599
  */
516
600
  dataSources?: string[];
517
601
  /**
518
602
  * The array of data source GUIDs to set on load.
519
603
  *
520
604
  * @version: SDK: 1.19.0
605
+ * @example
606
+ * ```js
607
+ * const embed = new SearchEmbed('#tsEmbed', {
608
+ * ... // other options
609
+ * dataSource:'id-234',
610
+ * })
611
+ * ```
521
612
  */
522
613
  dataSource?: string;
523
614
  /**
@@ -550,6 +641,15 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
550
641
  searchOptions?: SearchOptions;
551
642
  /**
552
643
  * The GUID of a saved answer to load initially.
644
+ *
645
+ * @version: SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
646
+ * @example
647
+ * ```js
648
+ * const embed = new SearchEmbed('#tsEmbed', {
649
+ * ... // other options
650
+ * answerId:'sed-1234',
651
+ * })
652
+ * ```
553
653
  */
554
654
  answerId?: string;
555
655
  /**
@@ -557,6 +657,13 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
557
657
  * The chart/table should still be visible.
558
658
  *
559
659
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
660
+ * @example
661
+ * ```js
662
+ * const embed = new SearchEmbed('#tsEmbed', {
663
+ * ... // other options
664
+ * hideSearchBar:true,
665
+ * })
666
+ * ```
560
667
  */
561
668
  hideSearchBar?: boolean;
562
669
  /**
@@ -564,6 +671,13 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
564
671
  *
565
672
  * @default false
566
673
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
674
+ * @example
675
+ * ```js
676
+ * const embed = new SearchEmbed('#tsEmbed', {
677
+ * ... // other options
678
+ * dataPanelV2:false,
679
+ * })
680
+ * ```
567
681
  */
568
682
  dataPanelV2?: boolean;
569
683
  /**
@@ -597,7 +711,7 @@ export declare class SearchEmbed extends TsEmbed {
597
711
  /**
598
712
  * Render the embedded ThoughtSpot search
599
713
  */
600
- render(): SearchEmbed;
714
+ render(): Promise<SearchEmbed>;
601
715
  }
602
716
 
603
717
  /**
@@ -653,6 +767,16 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
653
767
  * If true, the top navigation bar within the ThoughtSpot app
654
768
  * is displayed. By default, the navigation bar is hidden.
655
769
  * This flag also controls the homepage left navigation bar.
770
+ *
771
+ * @default true
772
+ * @version SDK: 1.2.0 | Thoughtspot: 8.4.0.cl
773
+ * @example
774
+ * ```js
775
+ * const embed = new AppEmbed('#tsEmbed', {
776
+ * ... // other options
777
+ * showPrimaryNavbar:true,
778
+ * })
779
+ * ```
656
780
  */
657
781
  showPrimaryNavbar?: boolean;
658
782
  /**
@@ -661,23 +785,78 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
661
785
  * nav-bars are visible, this flag will only hide the homepage left nav-bar.
662
786
  * The showPrimaryNavbar flag takes precedence over the hideHomepageLeftNav.
663
787
  *
788
+ *
789
+ * **Note**: This option does not apply to the classic homepage.
790
+ * To access the updated modular homepage, set
791
+ * `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
792
+ *
664
793
  * @default false
665
- * @version SDK: 1.27.0 | Thoughtspot: 9.8.0.cl
794
+ * @version SDK: 1.28.0 | Thoughtspot: 9.12.5.cl
795
+ *
796
+ * @example
797
+ * ```js
798
+ * const embed = new AppEmbed('#tsEmbed', {
799
+ * ... // other options
800
+ * hideHomepageLeftNav : true,
801
+ * })
802
+ * ```
666
803
  */
667
804
  hideHomepageLeftNav?: boolean;
668
805
  /**
669
806
  * Control the visibility of the help (?) and profile buttons on the
670
807
  * Global nav-bar. By default, these buttons are visible on the nav-bar.
808
+ *
809
+ * @default false
810
+ * @version SDK: 1.2.0 | Thoughtspot: 8.4.0.cl
811
+ * @example
812
+ * ```js
813
+ * const embed = new AppEmbed('#tsEmbed', {
814
+ * ... // other options
815
+ * disableProfileAndHelp: true,
816
+ * })
817
+ * ```
671
818
  */
672
819
  disableProfileAndHelp?: boolean;
673
820
  /**
674
821
  * Control the visibility of the application switcher button on the nav-bar.
675
822
  * By default, the application switcher is shown.
823
+ *
824
+ *
825
+ * **Note**: This option does not apply to the classic homepage.
826
+ * To access the updated modular homepage, set
827
+ * `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
828
+ *
829
+ * @version SDK: 1.28.0 | Thoughtspot: 9.12.5.cl
830
+ * @default false
831
+ *
832
+ * @example
833
+ * ```js
834
+ * const embed = new AppEmbed('#tsEmbed', {
835
+ * ... // other options
836
+ * hideApplicationSwitcher : true,
837
+ * })
838
+ * ```
676
839
  */
677
840
  hideApplicationSwitcher?: boolean;
678
841
  /**
679
842
  * Control the visibility of the Org switcher button on the nav-bar.
680
843
  * By default, the Org switcher button is shown.
844
+ *
845
+ *
846
+ * **Note**: This option does not apply to the classic homepage.
847
+ * To access the updated modular homepage, set
848
+ * `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
849
+ *
850
+ * @version SDK: 1.28.0 | Thoughtspot: 9.12.5.cl
851
+ * @default true
852
+ *
853
+ * @example
854
+ * ```js
855
+ * const embed = new AppEmbed('#tsEmbed', {
856
+ * ... // other options
857
+ * hideOrgSwitcher : true,
858
+ * })
859
+ * ```
681
860
  */
682
861
  hideOrgSwitcher?: boolean;
683
862
  /**
@@ -689,9 +868,13 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
689
868
  * For eg, if you want the component to open to a specific Liveboard
690
869
  * you could set the path to `pinboard/<liveboardId>/tab/<tabId>`.
691
870
  *
871
+ * @version SDK: 1.1.0 | Thoughtspot: 9.4.0.cl
692
872
  * @example
693
- * ```
694
- * <AppEmbed path="pinboard/1234/tab/7464" />
873
+ * ```js
874
+ * const embed = new AppEmbed('#tsEmbed', {
875
+ * ... // other options
876
+ * path:"pinboard/1234/tab/7464"
877
+ * })
695
878
  * ```
696
879
  */
697
880
  path?: string;
@@ -701,16 +884,46 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
701
884
  *
702
885
  * Use this to open to particular page in the app. To open to a specific
703
886
  * path within the app, use the `path` attribute which is more flexible.
887
+ *
888
+ * @version SDK: 1.1.0 | Thoughtspot: 9.4.0.cl
889
+ * @example
890
+ * ```js
891
+ * const embed = new AppEmbed('#tsEmbed', {
892
+ * ... // other options
893
+ * pageId : Page.Answers | Page.Data
894
+ * })
895
+ * ```
704
896
  */
705
897
  pageId?: Page;
706
898
  /**
707
899
  * This puts a filter tag on the application. All metadata lists in the
708
900
  * application, such as Liveboards and answers, would be filtered by this
709
901
  * tag.
902
+ *
903
+ * @version SDK: 1.1.0 | Thoughtspot: 9.4.0.cl
904
+ * @example
905
+ * ```js
906
+ * const embed = new AppEmbed('#tsEmbed', {
907
+ * ... // other options
908
+ * tag:'value',
909
+ * })
910
+ * ```
710
911
  */
711
912
  tag?: string;
712
913
  /**
713
914
  * The array of GUIDs to be hidden
915
+ *
916
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
917
+ * @example
918
+ * ```js
919
+ * const embed = new AppEmbed('#tsEmbed', {
920
+ * ... // other options
921
+ * hideObjects: [
922
+ * '430496d6-6903-4601-937e-2c691821af3c',
923
+ * 'f547ec54-2a37-4516-a222-2b06719af726'
924
+ * ]
925
+ * })
926
+ * ```
714
927
  */
715
928
  hideObjects?: string[];
716
929
  /**
@@ -724,7 +937,15 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
724
937
  /**
725
938
  * If set to true, the Search Assist feature is enabled.
726
939
  *
940
+ * @default true
727
941
  * @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1-sw
942
+ * @example
943
+ * ```js
944
+ * const embed = new AppEmbed('#tsEmbed', {
945
+ * ... // other options
946
+ * enableSearchAssist: true,
947
+ * })
948
+ * ```
728
949
  */
729
950
  enableSearchAssist?: boolean;
730
951
  /**
@@ -732,6 +953,13 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
732
953
  * according to the height of the pages which support fullHeight mode.
733
954
  *
734
955
  * @version SDK: 1.21.0 | ThoughtSpot: 9.4.0.cl, 9.4.0-sw
956
+ * @example
957
+ * ```js
958
+ * const embed = new AppEmbed('#tsEmbed', {
959
+ * ... // other options
960
+ * fullHeight: true,
961
+ * })
962
+ * ```
735
963
  */
736
964
  fullHeight?: boolean;
737
965
  /**
@@ -747,6 +975,13 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
747
975
  *
748
976
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
749
977
  * @default false
978
+ * @example
979
+ * ```js
980
+ * const embed = new AppEmbed('#tsEmbed', {
981
+ * ... // other options
982
+ * hideLiveboardHeader : true,
983
+ * })
984
+ * ```
750
985
  */
751
986
  hideLiveboardHeader?: boolean;
752
987
  /**
@@ -754,6 +989,13 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
754
989
  *
755
990
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
756
991
  * @default false
992
+ * @example
993
+ * ```js
994
+ * const embed = new AppEmbed('#tsEmbed', {
995
+ * ... // other options
996
+ * showLiveboardTitle:true,
997
+ * })
998
+ * ```
757
999
  */
758
1000
  showLiveboardTitle?: boolean;
759
1001
  /**
@@ -761,13 +1003,28 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
761
1003
  *
762
1004
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
763
1005
  * @default false
1006
+ * @example
1007
+ * ```js
1008
+ * const embed = new AppEmbed('#tsEmbed', {
1009
+ * ... // other options
1010
+ * showLiveboardDescription:true,
1011
+ * })
1012
+ * ```
764
1013
  */
765
1014
  showLiveboardDescription?: boolean;
766
1015
  /**
767
- * Flag to control new Modular Home experience
1016
+ * Flag to control new Modular Home experience.
768
1017
  *
769
1018
  * @default false
770
- * @version SDK: 1.27.0 | Thoughtspot: 9.8.0.cl
1019
+ * @version SDK: 1.28.0 | Thoughtspot: 9.12.5.cl
1020
+ *
1021
+ * @example
1022
+ * ```js
1023
+ * const embed = new AppEmbed('#tsEmbed', {
1024
+ * ... // other options
1025
+ * modularHomeExperience : true,
1026
+ * })
1027
+ * ```
771
1028
  */
772
1029
  modularHomeExperience?: boolean;
773
1030
  /**
@@ -836,7 +1093,7 @@ export declare class AppEmbed extends V1Embed {
836
1093
  * @param renderOptions An object containing the page ID
837
1094
  * to be embedded.
838
1095
  */
839
- render(): AppEmbed;
1096
+ render(): Promise<AppEmbed>;
840
1097
  }
841
1098
 
842
1099
  /**
@@ -858,8 +1115,21 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
858
1115
  /**
859
1116
  * If set to true, the embedded object container dynamically resizes
860
1117
  * according to the height of the Liveboard.
1118
+ * **Note**: Using fullHeight loads all visualizations on the
1119
+ * Liveboard simultaneously, which results in multiple warehouse
1120
+ * queries and potentially a longer wait for the topmost
1121
+ * visualizations to display on the screen.
1122
+ * Setting `fullHeight` to `false` fetches visualizations
1123
+ * incrementally as users scroll the page to view the charts and tables.
861
1124
  *
862
1125
  * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1
1126
+ * @example
1127
+ * ```js
1128
+ * const embed = new LiveboardEmbed('#embed', {
1129
+ * ... // other liveboard view config
1130
+ * fullHeight: true,
1131
+ * });
1132
+ * ```
863
1133
  */
864
1134
  fullHeight?: boolean;
865
1135
  /**
@@ -869,10 +1139,26 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
869
1139
  *
870
1140
  * @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
871
1141
  * @default 500
1142
+ * @example
1143
+ * ```js
1144
+ * const embed = new LiveboardEmbed('#embed', {
1145
+ * ... // other liveboard view config
1146
+ * fullHeight: true,
1147
+ * defaultHeight: 600,
1148
+ * });
1149
+ * ```
872
1150
  */
873
1151
  defaultHeight?: number;
874
1152
  /**
875
1153
  * @Deprecated If set to true, the context menu in visualizations will be enabled.
1154
+ * @example
1155
+ * ```js
1156
+ * const embed = new LiveboardEmbed('#tsEmbed', {
1157
+ * ... // other options
1158
+ * enableVizTransformations:true,
1159
+ * })
1160
+ * ```
1161
+ * @version: SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
876
1162
  */
877
1163
  enableVizTransformations?: boolean;
878
1164
  /**
@@ -880,6 +1166,12 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
880
1166
  * Use either liveboardId or pinboardId to reference the Liveboard to embed.
881
1167
  *
882
1168
  * @version SDK: 1.3.0 | ThoughtSpot ts7.aug.cl, 7.2.1
1169
+ * @example
1170
+ * ```js
1171
+ * const embed = new LiveboardEmbed('#embed-container', {
1172
+ * ... // other options
1173
+ * liveboardId:id of liveboard,
1174
+ * })
883
1175
  */
884
1176
  liveboardId?: string;
885
1177
  /**
@@ -890,6 +1182,15 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
890
1182
  pinboardId?: string;
891
1183
  /**
892
1184
  * The visualization within the Liveboard to display.
1185
+ *
1186
+ * @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
1187
+ * @example
1188
+ * ```js
1189
+ * const embed = new LiveboardEmbed('#embed-container', {
1190
+ * ... // other options
1191
+ * vizId:'430496d6-6903-4601-937e-2c691821af3c',
1192
+ * })
1193
+ * ```
893
1194
  */
894
1195
  vizId?: string;
895
1196
  /**
@@ -897,6 +1198,13 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
897
1198
  * Liveboard page will be read-only (no X buttons)
898
1199
  *
899
1200
  * @version SDK: 1.3.0 | ThoughtSpot ts7.aug.cl, 7.2.1.sw
1201
+ * @example
1202
+ * ```js
1203
+ * const embed = new LiveboardEmbed('#embed-container', {
1204
+ * ... // other options
1205
+ * preventLiveboardFilterRemoval:true,
1206
+ * })
1207
+ * ```
900
1208
  */
901
1209
  preventLiveboardFilterRemoval?: boolean;
902
1210
  /**
@@ -905,6 +1213,15 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
905
1213
  * event.
906
1214
  *
907
1215
  * @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
1216
+ * @example
1217
+ * ```js
1218
+ * const embed = new LiveboardEmbed('#embed-container', {
1219
+ * ... // other options
1220
+ * visibleVizs: [
1221
+ * '430496d6-6903-4601-937e-2c691821af3c',
1222
+ * 'f547ec54-2a37-4516-a222-2b06719af726'
1223
+ * ]
1224
+ * })
908
1225
  */
909
1226
  visibleVizs?: string[];
910
1227
  /**
@@ -918,12 +1235,26 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
918
1235
  * new Liveboard experience mode.
919
1236
  *
920
1237
  * @version SDK: 1.14.0 | ThoughtSpot: 8.6.0.cl, 8.8.1-sw
1238
+ * @example
1239
+ * ```js
1240
+ * const embed = new LiveboardEmbed('#embed-container', {
1241
+ * ... // other options
1242
+ * liveboardV2:true,
1243
+ * })
1244
+ * ```
921
1245
  */
922
1246
  liveboardV2?: boolean;
923
1247
  /**
924
1248
  * Set a Liveboard tab as an active tab.
925
1249
  * Specify the tab ID.
926
1250
  *
1251
+ * @example
1252
+ * ```js
1253
+ * const embed = new LiveboardEmbed('#tsEmbed', {
1254
+ * ... // other options
1255
+ * activeTabId:'id-1234',
1256
+ * })
1257
+ * ```
927
1258
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
928
1259
  */
929
1260
  activeTabId?: string;
@@ -931,6 +1262,13 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
931
1262
  * Show or hide the tab panel of the embedded Liveboard.
932
1263
  *
933
1264
  * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl, 9.8.0.sw
1265
+ * @example
1266
+ * ```js
1267
+ * const embed = new LiveboardEmbed('#embed-container', {
1268
+ * ... // other options
1269
+ * hideTabPanel:true,
1270
+ * })
1271
+ * ```
934
1272
  */
935
1273
  hideTabPanel?: boolean;
936
1274
  /**
@@ -938,20 +1276,41 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
938
1276
  *
939
1277
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
940
1278
  * @default false
1279
+ * @example
1280
+ * ```js
1281
+ * const embed = new LiveboardEmbed('#embed', {
1282
+ * ... // other liveboard view config
1283
+ * hideLiveboardHeader:true,
1284
+ * });
1285
+ * ```
941
1286
  */
942
1287
  hideLiveboardHeader?: boolean;
943
1288
  /**
944
1289
  * Show or hide the Liveboard title.
945
1290
  *
946
- * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
947
1291
  * @default false
1292
+ * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
1293
+ * @example
1294
+ * ```js
1295
+ * const embed = new LiveboardEmbed('#embed-container', {
1296
+ * ... // other options
1297
+ * showLiveboardTitle:true,
1298
+ * })
1299
+ * ```
948
1300
  */
949
1301
  showLiveboardTitle?: boolean;
950
1302
  /**
951
1303
  * Show or hide the Liveboard description.
952
1304
  *
953
- * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
954
1305
  * @default false
1306
+ * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
1307
+ * @example
1308
+ * ```js
1309
+ * const embed = new LiveboardEmbed('#embed-container', {
1310
+ * ... // other options
1311
+ * showLiveboardDescription:true,
1312
+ * })
1313
+ * ```
955
1314
  */
956
1315
  showLiveboardDescription?: boolean;
957
1316
  /**
@@ -972,8 +1331,15 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
972
1331
  /**
973
1332
  * enable or disable ask sage
974
1333
  *
975
- * @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
976
1334
  * @default false
1335
+ * @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
1336
+ * @example
1337
+ * ```js
1338
+ * const embed = new SearchEmbed('#tsEmbed', {
1339
+ * ... // other options
1340
+ * enableAskSage:true,
1341
+ * })
1342
+ * ```
977
1343
  */
978
1344
  enableAskSage?: boolean;
979
1345
  }
@@ -1016,7 +1382,7 @@ export declare class LiveboardEmbed extends V1Embed {
1016
1382
  * @param renderOptions An object specifying the Liveboard ID,
1017
1383
  * visualization ID and the runtime filters.
1018
1384
  */
1019
- render(): LiveboardEmbed;
1385
+ render(): Promise<LiveboardEmbed>;
1020
1386
  navigateToLiveboard(liveboardId: string, vizId?: string, activeTabId?: string): void;
1021
1387
  }
1022
1388
  /**
@@ -1052,7 +1418,7 @@ export function getViewPropsAndListeners<T extends EmbedProps, U extends ViewCon
1052
1418
  * @summary ThoughtSpot Visual Embed SDK
1053
1419
  * @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
1054
1420
  */
1055
- 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, };
1421
+ 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, };
1056
1422
 
1057
1423
  /**
1058
1424
  * Copyright (c) 2023
@@ -1197,6 +1563,7 @@ export declare enum AuthType {
1197
1563
  * .then((data) => data.token);
1198
1564
  * }
1199
1565
  * });
1566
+ * });
1200
1567
  * ```
1201
1568
  */
1202
1569
  TrustedAuthToken = "AuthServer",
@@ -1229,16 +1596,39 @@ export declare enum AuthType {
1229
1596
  */
1230
1597
  Basic = "Basic"
1231
1598
  }
1599
+ /**
1600
+ *
1601
+ * This option does not apply to the classic homepage experience.
1602
+ * To access the updated modular homepage,
1603
+ * set `modularHomeExperience` to `true`
1604
+ * (available as Early Access feature in 9.12.5.cl).
1605
+ *
1606
+ */
1232
1607
  export declare enum HomeLeftNavItem {
1233
- QueryBuilder = "query-builder",
1608
+ /**
1609
+ * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
1610
+ */
1611
+ SearchData = "search-data",
1612
+ /**
1613
+ * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
1614
+ */
1234
1615
  Home = "insights-home",
1616
+ /**
1617
+ * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
1618
+ */
1235
1619
  Liveboards = "liveboards",
1620
+ /**
1621
+ * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
1622
+ */
1236
1623
  Answers = "answers",
1624
+ /**
1625
+ * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
1626
+ */
1237
1627
  MonitorSubscription = "monitor-alerts",
1238
- SpotIQAnalysis = "spotiq-analysis",
1239
- Tutorials = "tutorials",
1240
- Documentation = "documentation",
1241
- Community = "community"
1628
+ /**
1629
+ * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
1630
+ */
1631
+ SpotIQAnalysis = "spotiq-analysis"
1242
1632
  }
1243
1633
  export type DOMSelector = string | HTMLElement;
1244
1634
  /**
@@ -1294,6 +1684,8 @@ export interface CustomStyles {
1294
1684
  /**
1295
1685
  * Configuration to define the customization on the Embedded
1296
1686
  * Thoughtspot components.
1687
+ * You can customize styles, text strings, and icons.
1688
+ * For more information, see https://developers.thoughtspot.com/docs/custom-css.
1297
1689
  *
1298
1690
  * @example
1299
1691
  * ```js
@@ -1308,7 +1700,12 @@ export interface CustomStyles {
1308
1700
  * },
1309
1701
  * content: {
1310
1702
  * strings: {
1311
- * 'LIVEBOARDS': 'Dashboards'
1703
+ * 'LIVEBOARDS': 'Dashboards',
1704
+ * 'ANSWERS': 'Visualizations',
1705
+ * 'Edit': 'Modify',
1706
+ * 'Show underlying data': 'Show source data',
1707
+ * 'SpotIQ': 'Insights',
1708
+ * 'Monitor': 'Alerts',
1312
1709
  * }
1313
1710
  * },
1314
1711
  * iconSpriteUrl: 'https://my-custom-icon-sprite.svg'
@@ -1340,12 +1737,6 @@ export interface EmbedConfig {
1340
1737
  * The ThoughtSpot cluster hostname or IP address.
1341
1738
  */
1342
1739
  thoughtSpotHost: string;
1343
- /**
1344
- * If true, all the iframe links will have /v2 added automatically.
1345
- * If false, all the iframe links will have /v1 added automatically.
1346
- * If undefined, nothing will be added
1347
- */
1348
- enableReactShell?: boolean | undefined;
1349
1740
  /**
1350
1741
  * The authentication mechanism to use.
1351
1742
  */
@@ -1590,6 +1981,12 @@ export interface EmbedConfig {
1590
1981
  * @version SDK: 1.26.7 | ThoughtSpot: 9.10.0.cl
1591
1982
  */
1592
1983
  logLevel?: LogLevel;
1984
+ /**
1985
+ * Disables the Mixpanel tracking from the SDK.
1986
+ *
1987
+ * @version SDK: 1.27.9
1988
+ */
1989
+ disableSDKTracking?: boolean;
1593
1990
  }
1594
1991
  export interface LayoutConfig {
1595
1992
  }
@@ -1628,8 +2025,20 @@ export interface ViewConfig {
1628
2025
  */
1629
2026
  layoutConfig?: LayoutConfig;
1630
2027
  /**
1631
- * The <b>width</b> and <b>height</b> dimensions to render an embedded
2028
+ * The width and height dimensions to render an embedded
1632
2029
  * object inside your app. Specify the values in pixels or percentage.
2030
+ *
2031
+ * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1
2032
+ * @example
2033
+ * ```js
2034
+ * const embed = new LiveboardEmbed('#embed', {
2035
+ * ... // other liveboard view config
2036
+ * frameParams: {
2037
+ * width: '500px' | '50%',
2038
+ * height: '400px' | '60%',
2039
+ * },
2040
+ * });
2041
+ * ```
1633
2042
  */
1634
2043
  frameParams?: FrameParams;
1635
2044
  /**
@@ -1646,6 +2055,7 @@ export interface ViewConfig {
1646
2055
  * for the user.
1647
2056
  * Use this to disable actions.
1648
2057
  *
2058
+ * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
1649
2059
  * @example
1650
2060
  * ```js
1651
2061
  * const embed = new LiveboardEmbed('#embed', {
@@ -1657,6 +2067,16 @@ export interface ViewConfig {
1657
2067
  disabledActions?: Action[];
1658
2068
  /**
1659
2069
  * The tooltip to display for disabled actions.
2070
+ *
2071
+ * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
2072
+ * @example
2073
+ * ```js
2074
+ * const embed = new LiveboardEmbed('#embed', {
2075
+ * ... // other liveboard view config
2076
+ * disabledActions: [Action.Download, Action.Save]
2077
+ * disabledActionReason: "Reason for disabling",
2078
+ * });
2079
+ * ```
1660
2080
  */
1661
2081
  disabledActionReason?: string;
1662
2082
  /**
@@ -1664,6 +2084,7 @@ export interface ViewConfig {
1664
2084
  * This actions will be hidden from the user.
1665
2085
  * Use this to hide an action.
1666
2086
  *
2087
+ * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
1667
2088
  * @example
1668
2089
  * ```js
1669
2090
  * const embed = new LiveboardEmbed('#embed', {
@@ -1684,17 +2105,46 @@ export interface ViewConfig {
1684
2105
  *
1685
2106
  * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
1686
2107
  * @important
2108
+ * @example
2109
+ * ```js
2110
+ * const embed = new LiveboardEmbed('#embed', {
2111
+ * ... // other liveboard view config
2112
+ * visibleActions: [Action.Download, Action.Export]
2113
+ * });
2114
+ * ```
1687
2115
  */
1688
2116
  visibleActions?: Action[];
1689
2117
  /**
1690
2118
  * Show alert messages and toast messages in the embedded view.
1691
2119
  *
1692
2120
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2121
+ * @example
2122
+ * ```js
2123
+ * const embed = new LiveboardEmbed('#embed-container', {
2124
+ * ... // other options
2125
+ * showAlerts:true,
2126
+ * })
2127
+ * ```
1693
2128
  */
1694
2129
  showAlerts?: boolean;
1695
2130
  /**
1696
2131
  * The list of runtime filters to apply to a search answer,
1697
2132
  * visualization, or Liveboard.
2133
+ *
2134
+ * @version SDK: 1.9.4 | ThoughtSpot 8.1.0.cl, 8.4.1.sw
2135
+ * @example
2136
+ * ```js
2137
+ * const embed = new LiveboardEmbed('#embed-container', {
2138
+ * ... // other options
2139
+ * runtimeFilters: [
2140
+ * {
2141
+ * columnName: 'value',
2142
+ * operator: RuntimeFilterOp.EQ,
2143
+ * values: ['string' | 123 | true],
2144
+ * },
2145
+ * ],
2146
+ * })
2147
+ * ```
1698
2148
  */
1699
2149
  runtimeFilters?: RuntimeFilter[];
1700
2150
  /**
@@ -1702,12 +2152,31 @@ export interface ViewConfig {
1702
2152
  * visualization, or Liveboard.
1703
2153
  *
1704
2154
  * @version SDK : 1.25.0 | Thoughtspot: 9.2.0.cl, 9.5.0.sw
2155
+ * @example
2156
+ * ```js
2157
+ * const embed = new LiveboardEmbed('#embed-container', {
2158
+ * ... // other options
2159
+ * runtimeParameters: [
2160
+ * {
2161
+ * name: 'value',
2162
+ * value: 'string' | 123 | true,
2163
+ * },
2164
+ * ],
2165
+ * })
2166
+ * ```
1705
2167
  */
1706
2168
  runtimeParameters?: RuntimeParameter[];
1707
2169
  /**
1708
2170
  * The locale/language to use for the embedded view.
1709
2171
  *
1710
2172
  * @version SDK: 1.9.4 | ThoughtSpot 8.1.0.cl, 8.4.1.sw
2173
+ * @example
2174
+ * ```js
2175
+ * const embed = new LiveboardEmbed('#embed-container', {
2176
+ * ... // other options
2177
+ * locale:'en',
2178
+ * })
2179
+ * ```
1711
2180
  */
1712
2181
  locale?: string;
1713
2182
  /**
@@ -1718,6 +2187,16 @@ export interface ViewConfig {
1718
2187
  * to control embed behavior in non-regular ways. We do not publish the
1719
2188
  * list of supported keys and values associated with each.
1720
2189
  *
2190
+ * @example
2191
+ * ```js
2192
+ * const embed = new LiveboardEmbed('#embed', {
2193
+ * ... // other liveboard view config
2194
+ * additionalFlags: {
2195
+ * flag1: 'value1',
2196
+ * flag2: 'value2'
2197
+ * }
2198
+ * });
2199
+ * ```
1721
2200
  * @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
1722
2201
  */
1723
2202
  additionalFlags?: {
@@ -1734,18 +2213,41 @@ export interface ViewConfig {
1734
2213
  /**
1735
2214
  * Insert as a sibling of the target container, instead of appending to a
1736
2215
  * child inside it.
2216
+ *
2217
+ * @version SDK: 1.2.0 | Thoughtspot: 9.0.0.cl, 9.0.0.sw
2218
+ * @example
2219
+ * ```js
2220
+ * const embed = new LiveboardEmbed('#embed-container', {
2221
+ * ... // other options
2222
+ * insertAsSibling:true,
2223
+ * })
2224
+ * ```
1737
2225
  */
1738
2226
  insertAsSibling?: boolean;
1739
2227
  /**
1740
2228
  * flag to set ContextMenu Trigger to either left or right click.
1741
2229
  *
2230
+ * @example
2231
+ * ```js
2232
+ * const embed = new LiveboardEmbed('#tsEmbed', {
2233
+ * ... // other options
2234
+ * contextMenuTrigger:ContextMenuTriggerOptions.LEFT_CLICK || RIGHT_CLICK,
2235
+ * })
2236
+ * ```
1742
2237
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1743
2238
  */
1744
2239
  contextMenuTrigger?: ContextMenuTriggerOptions;
1745
2240
  /**
1746
- * flag to override openNew tab context menu link
2241
+ * Flag to override openNew tab context menu link
1747
2242
  *
1748
2243
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
2244
+ * @example
2245
+ * ```js
2246
+ * const embed = new LiveboardEmbed('#embed-container', {
2247
+ * ... // other options
2248
+ * linkOverride:false,
2249
+ * })
2250
+ * ```
1749
2251
  */
1750
2252
  linkOverride?: boolean;
1751
2253
  /**
@@ -1767,9 +2269,14 @@ export interface ViewConfig {
1767
2269
  usePrerenderedIfAvailable?: boolean;
1768
2270
  /**
1769
2271
  * Boolean to exclude runtimeFilters in the URL
2272
+ * By default it is true, this flag removes runtime filters from the URL
2273
+ * when set to false, runtime filters will be included in the URL.
1770
2274
  *
1771
- * @default false
1772
- * @hidden
2275
+ * Irrespective of this flag, runtime filters ( if passed ) will be applied to the
2276
+ * embedded view.
2277
+ *
2278
+ * @default true
2279
+ * @version SDK: 1.24.0 | ThoughtSpot: 9.5.0.cl
1773
2280
  */
1774
2281
  excludeRuntimeFiltersfromURL?: boolean;
1775
2282
  /**
@@ -1791,16 +2298,42 @@ export interface ViewConfig {
1791
2298
  hiddenTabs?: string[];
1792
2299
  /**
1793
2300
  * Hide the home page modules
1794
- * eg: hiddenHomepageModules = [HomepageModule.MyLibrary]
2301
+ * For example: hiddenHomepageModules = [HomepageModule.MyLibrary]
2302
+ *
1795
2303
  *
1796
- * @version SDK: 1.27.0 | Thoughtspot: 9.12.0.cl
2304
+ *
2305
+ * **Note**: This option does not apply to the classic homepage.
2306
+ * To access the updated modular homepage, set
2307
+ * `modularHomeExperience` to `true` (available as Early Access feature in 9.12.0.cl).
2308
+ *
2309
+ * @version SDK: 1.28.0 | Thoughtspot: 9.12.5.cl
2310
+ * @example
2311
+ * ```js
2312
+ * const embed = new AppEmbed('#tsEmbed', {
2313
+ * ... // other options
2314
+ * hiddenHomepageModules : [HomepageModule.Favorite,HomepageModule.Learning],
2315
+ * })
2316
+ * ```
1797
2317
  */
1798
2318
  hiddenHomepageModules?: HomepageModule[];
1799
2319
  /**
1800
2320
  * reordering the home page modules
1801
2321
  * eg: reorderedHomepageModules = [HomepageModule.MyLibrary, HomepageModule.Watchlist]
1802
2322
  *
1803
- * @version SDK: 1.28.0 | Thoughtspot: 9.12.0.cl
2323
+ *
2324
+ * **Note**: This option does not apply to the classic homepage.
2325
+ * To access the updated modular homepage, set
2326
+ * `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
2327
+ *
2328
+ * @version SDK: 1.28.0| Thoughtspot: 9.12.5.cl
2329
+ *
2330
+ * @example
2331
+ * ```js
2332
+ * const embed = new AppEmbed('#tsEmbed', {
2333
+ * ... // other options
2334
+ * reorderedHomepageModules:[HomepageModule.Favorite,HomepageModule.MyLibrary]
2335
+ * })
2336
+ * ```
1804
2337
  */
1805
2338
  reorderedHomepageModules?: HomepageModule[];
1806
2339
  /**
@@ -1809,13 +2342,17 @@ export interface ViewConfig {
1809
2342
  *
1810
2343
  * Use either `visibleTabs` or `hiddenTabs`.
1811
2344
  *
2345
+ * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
1812
2346
  * @example
1813
2347
  * ```js
1814
- * visibleTabs: [
1815
- * '430496d6-6903-4601-937e-2c691821af3c',
1816
- * 'f547ec54-2a37-4516-a222-2b06719af726']
2348
+ * const embed = new LiveboardEmbed('#embed-container', {
2349
+ * ... // other options
2350
+ * visibleTabs: [
2351
+ * '430496d6-6903-4601-937e-2c691821af3c',
2352
+ * 'f547ec54-2a37-4516-a222-2b06719af726'
2353
+ * ]
2354
+ * })
1817
2355
  * ```
1818
- * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
1819
2356
  */
1820
2357
  visibleTabs?: string[];
1821
2358
  /**
@@ -1823,11 +2360,22 @@ export interface ViewConfig {
1823
2360
  * There are 8 eight home navigation list items.
1824
2361
  * To hide these items, specify the string in the array.
1825
2362
  *
2363
+ * @version SDK: 1.27.0 | Thoughtspot: 9.10.0.cl
2364
+ * @example
1826
2365
  * ```js
1827
- * hiddenHomeLeftNavItems = [HomeLeftNavItem.Home]
2366
+ * const embed = new AppEmbed('#tsEmbed', {
2367
+ * ... // other options
2368
+ * hiddenHomeLeftNavItems : [HomeLeftNavItem.Home,HomeLeftNavItem.Answers],
2369
+ * })
1828
2370
  * ```
1829
2371
  *
1830
- * @version SDK: 1.27.0 | Thoughtspot: 9.12.0.cl
2372
+ *
2373
+ *
2374
+ * **Note**: This option does not apply to the classic homepage.
2375
+ * To access the updated modular homepage, set
2376
+ * `modularHomeExperience` to `true` (available in Early Access from 9.12 forward).
2377
+ *
2378
+ * @version SDK: 1.28.0 | Thoughtspot: 9.12.5.cl
1831
2379
  */
1832
2380
  hiddenHomeLeftNavItems?: HomeLeftNavItem[];
1833
2381
  /**
@@ -1854,7 +2402,9 @@ export interface ViewConfig {
1854
2402
  *
1855
2403
  * @type {boolean}
1856
2404
  * @default false
2405
+ * @version SDK: 1.24.0 | ThoughtSpot:9.4.0.cl, 9.4.0.sw
1857
2406
  * @example
2407
+ * ```js
1858
2408
  * // Disable tracking PreRender size in the configuration
1859
2409
  * const config = {
1860
2410
  * doNotTrackPreRenderSize: true,
@@ -1862,6 +2412,7 @@ export interface ViewConfig {
1862
2412
  *
1863
2413
  * // Instantiate an object with the configuration
1864
2414
  * const myComponent = new MyComponent(config);
2415
+ * ```
1865
2416
  */
1866
2417
  doNotTrackPreRenderSize?: boolean;
1867
2418
  /**
@@ -1982,7 +2533,12 @@ export declare enum RuntimeFilterOp {
1982
2533
  IN = "IN"
1983
2534
  }
1984
2535
  /**
1985
- * Home page module that can be hidden
2536
+ * Home page module that can be hidden.
2537
+ * **Note**: This option does not apply to the classic homepage.
2538
+ * To access the updated modular homepage, set
2539
+ * `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
2540
+ *
2541
+ * @version SDK: 1.28.0 | Thoughtspot: 9.12.5.cl
1986
2542
  */
1987
2543
  export declare enum HomepageModule {
1988
2544
  /**
@@ -2141,7 +2697,7 @@ export declare enum EmbedEvent {
2141
2697
  * @returns nonFilteredColumns - The columns that were not filtered
2142
2698
  * @example
2143
2699
  *```js
2144
- * searchEmbed.trigger(HostEvent.DrillDown, {
2700
+ * searchEmbed.trigger(EmbedEvent.DrillDown, {
2145
2701
  * points: {
2146
2702
  * clickedPoint,
2147
2703
  * selectedPoints: selectedPoint
@@ -2233,7 +2789,7 @@ export declare enum EmbedEvent {
2233
2789
  * @important
2234
2790
  * @example
2235
2791
  * ```js
2236
- * embed.on(ThoughtSpotEmbed.Event.VizPointClick, ({data}) => {
2792
+ * embed.on(EmbedEvent.VizPointClick, ({data}) => {
2237
2793
  * console.log(
2238
2794
  * data.vizId, // viz id
2239
2795
  * data.clickedPoint.selectedAttributes[0].value,
@@ -2248,19 +2804,21 @@ export declare enum EmbedEvent {
2248
2804
  /**
2249
2805
  * An error has occurred. This event is fired for the following error types:
2250
2806
  *
2251
- * `API` - API call failure error.
2807
+ * API - API call failure error.
2252
2808
  *
2253
- * `FULLSCREEN` - Error when presenting a Liveboard or visualization in full screen mode.
2809
+ * FULLSCREEN - Error when presenting a Liveboard or visualization in full screen
2810
+ * mode.
2254
2811
  *
2255
- * `SINGLE_VALUE_FILTER` - Error due to multiple values in the single value filter.
2812
+ * SINGLE_VALUE_FILTER - Error due to multiple values in the single value filter.
2256
2813
  *
2257
- * `NON_EXIST_FILTER` - Error due to a non-existent filter.
2814
+ * NON_EXIST_FILTER - Error due to a non-existent filter.
2258
2815
  *
2259
- * `INVALID_DATE_VALUE` - Invalid date value error.
2816
+ * INVALID_DATE_VALUE - Invalid date value error.
2260
2817
  *
2261
- * `INVALID_OPERATOR` - Use of invalid operator during filter application.
2818
+ * INVALID_OPERATOR - Use of invalid operator during filter application.
2262
2819
  *
2263
2820
  * For more information, see [Developer Documentation](https://developers.thoughtspot.com/docs/events-app-integration#errorType)
2821
+ *
2264
2822
  * @returns error - An error object or message
2265
2823
  * @example
2266
2824
  * ```js
@@ -2825,7 +3383,7 @@ export declare enum EmbedEvent {
2825
3383
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2826
3384
  * @example
2827
3385
  *```js
2828
- * liveboardEmbed.trigger(HostEvent.Delete,
3386
+ * liveboardEmbed.trigger(EmbedEvent.Delete,
2829
3387
  * {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
2830
3388
  *```
2831
3389
  */
@@ -2836,7 +3394,7 @@ export declare enum EmbedEvent {
2836
3394
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2837
3395
  * @example
2838
3396
  *```js
2839
- * liveboardEmbed.trigger(HostEvent.SchedulesList)
3397
+ * liveboardEmbed.trigger(EmbedEvent.SchedulesList)
2840
3398
  *```
2841
3399
  */
2842
3400
  SchedulesList = "schedule-list",
@@ -2846,7 +3404,7 @@ export declare enum EmbedEvent {
2846
3404
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2847
3405
  * @example
2848
3406
  *```js
2849
- * liveboardEmbed.trigger(HostEvent.Cancel)
3407
+ * liveboardEmbed.trigger(EmbedEvent.Cancel)
2850
3408
  *```
2851
3409
  */
2852
3410
  Cancel = "cancel",
@@ -2856,7 +3414,7 @@ export declare enum EmbedEvent {
2856
3414
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2857
3415
  * @example
2858
3416
  *```js
2859
- * liveboardEmbed.trigger(HostEvent.Explore, {
3417
+ * liveboardEmbed.trigger(EmbedEvent.Explore, {
2860
3418
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
2861
3419
  *```
2862
3420
  */
@@ -2867,7 +3425,7 @@ export declare enum EmbedEvent {
2867
3425
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2868
3426
  * @example
2869
3427
  *```js
2870
- * liveboardEmbed.trigger(HostEvent.CopyLink, {
3428
+ * liveboardEmbed.trigger(EmbedEvent.CopyLink, {
2871
3429
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
2872
3430
  *```
2873
3431
  */
@@ -3136,10 +3694,13 @@ export declare enum HostEvent {
3136
3694
  * _String_. The name of the column to filter on.
3137
3695
  * `operator`
3138
3696
  * Runtime filter operator to apply. For information,
3139
- * see [Runtime filter operators](https://developers.thoughtspot.com/docs/?pageid=runtime-filters#rtOperator).
3697
+ * see https://developers.thoughtspot.com/docs/?pageid=runtime-filters#rtOperator.
3140
3698
  * `values`
3141
3699
  * List of operands. Some operators such as EQ, LE allow a single value, whereas
3142
3700
  * operators such as BW and IN accept multiple operands.
3701
+ * **Note**: `HostEvent.UpdateRuntimeFilters` is not supported in
3702
+ * Search embedding (SearchEmbed) and Natural Language Search
3703
+ * embedding (SageEmbed).
3143
3704
  *
3144
3705
  * @param - {@link RuntimeFilter}[] an array of {@link RuntimeFilter} Types.
3145
3706
  * @example
@@ -3664,6 +4225,7 @@ export declare enum HostEvent {
3664
4225
  /**
3665
4226
  *
3666
4227
  * Get the currents visible and runtime filters applied on a Liveboard
4228
+ *
3667
4229
  * @example
3668
4230
  * liveboardEmbed.trigger(HostEvent.GetFilters)
3669
4231
  * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
@@ -3672,12 +4234,13 @@ export declare enum HostEvent {
3672
4234
  /**
3673
4235
  *
3674
4236
  * Update the visible filters on the Liveboard.
4237
+ *
3675
4238
  * @param - filter: filter object containing column name and filter operation and values
3676
4239
  * @example
3677
4240
  *
3678
4241
  * ```js
3679
4242
  * liveboardEmbed.trigger(HostEvent.UpdateFilters, {
3680
- * filter: { column: 'column name', oper: 'in', values: [1,2,3], is_mandatory: false }
4243
+ * filter: { column: 'column name', oper: 'IN', values: [1,2,3], is_mandatory: false }
3681
4244
  * })
3682
4245
  * ```
3683
4246
  * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
@@ -3763,7 +4326,33 @@ export declare enum HostEvent {
3763
4326
  * ```
3764
4327
  * @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
3765
4328
  */
3766
- AskSage = "AskSage"
4329
+ AskSage = "AskSage",
4330
+ /**
4331
+ * Trigger UpdateCrossFilter for Liveboard
4332
+ *
4333
+ * @example
4334
+ * ```js
4335
+ * liveboardEmbed.trigger(HostEvent.UpdateCrossFilter, {
4336
+ * vizId: 'b535c760-8bbe-4e6f-bb26-af56b4129a1e',
4337
+ * conditions: [
4338
+ * { columnName: 'Category', values: ['mfgr#12','mfgr#14'] },
4339
+ * { columnName: 'color', values: ['mint','hot'] },
4340
+ * ],
4341
+ * });
4342
+ * ```
4343
+ * @version SDK: 1.29.0 | Thoughtspot: 10.0.0.cl
4344
+ */
4345
+ UpdateCrossFilter = "UpdateCrossFilter",
4346
+ /**
4347
+ * Trigger ResetLiveboardPersonalisedView for Liveboard
4348
+ *
4349
+ * @example
4350
+ * ```js
4351
+ * liveboardEmbed.trigger(HostEvent.ResetLiveboardPersonalisedView);
4352
+ * ```
4353
+ * @version SDK: 1.29.0 | Thoughtspot: 10.1.0.cl
4354
+ */
4355
+ ResetLiveboardPersonalisedView = "ResetLiveboardPersonalisedView"
3767
4356
  }
3768
4357
  /**
3769
4358
  * The different visual modes that the data sources panel within
@@ -4731,6 +5320,7 @@ export declare enum Action {
4731
5320
  AskAi = "AskAi",
4732
5321
  /**
4733
5322
  * The **Add KPI to Watchlist** action on Home page watchlist.
5323
+ *
4734
5324
  * @example
4735
5325
  * ```js
4736
5326
  * disabledActions: [Action.AddToWatchlist]
@@ -4740,6 +5330,7 @@ export declare enum Action {
4740
5330
  AddToWatchlist = "addToWatchlist",
4741
5331
  /**
4742
5332
  * The **Remove from watchlist** menu action on KPI watchlist.
5333
+ *
4743
5334
  * @example
4744
5335
  * ```js
4745
5336
  * disabledActions: [Action.RemoveFromWatchlist]
@@ -4749,13 +5340,24 @@ export declare enum Action {
4749
5340
  RemoveFromWatchlist = "removeFromWatchlist",
4750
5341
  /**
4751
5342
  * The **Copy KPI Link** menu action on KPI watchlist.
5343
+ *
4752
5344
  * @example
4753
5345
  * ```js
4754
5346
  * disabledActions: [Action.CopyKpiLink]
4755
5347
  * ```
4756
5348
  * @version SDK : 1.27.9 | Thoughtspot: 9.12.5.cl
4757
5349
  */
4758
- CopyKpiLink = "copyKpiLink"
5350
+ CopyKpiLink = "copyKpiLink",
5351
+ /**
5352
+ * Action ID for AI Highlights button
5353
+ *
5354
+ * @example
5355
+ * ```js
5356
+ * hiddenAction: [Action.AIHighlights]
5357
+ * ```
5358
+ * @version SDK: 1.27.10 | Thoughtspot: 9.12.5.cl
5359
+ */
5360
+ AIHighlights = "AIHighlights"
4759
5361
  }
4760
5362
  export interface AnswerServiceType {
4761
5363
  getAnswer?: (offset: number, batchSize: number) => any;
@@ -5087,7 +5689,7 @@ export declare class TsEmbed {
5087
5689
  *
5088
5690
  * @param args
5089
5691
  */
5090
- render(): TsEmbed;
5692
+ render(): Promise<TsEmbed>;
5091
5693
  getIframeSrc(): string;
5092
5694
  protected handleRenderForPrerender(): void;
5093
5695
  /**
@@ -5421,7 +6023,22 @@ export interface AuthEventEmitter {
5421
6023
  *
5422
6024
  * @param {@link AuthEvent}
5423
6025
  */
5424
- emit(event: AuthEvent): void;
6026
+ emit(event: AuthEvent, ...args: any[]): boolean;
6027
+ /**
6028
+ * Remove listener from the emitter returned from init.
6029
+ *
6030
+ * @param event
6031
+ * @param listener
6032
+ * @param context
6033
+ * @param once
6034
+ */
6035
+ off(event: AuthStatus, listener: (...args: any[]) => void, context: any, once: boolean): this;
6036
+ /**
6037
+ * Remove all the event listeners
6038
+ *
6039
+ * @param event
6040
+ */
6041
+ removeAllListeners(event: AuthStatus): this;
5425
6042
  }
5426
6043
  /**
5427
6044
  * Events which can be triggered on the emitter returned from {@link init}.
@@ -6028,3 +6645,14 @@ export declare function initMixpanel(sessionInfo: any): void;
6028
6645
  */
6029
6646
  export declare function testResetMixpanel(): void;
6030
6647
 
6648
+ /**
6649
+ * Fetch wrapper that adds the authentication token to the request.
6650
+ * Use this to call the ThoughtSpot APIs when using the visual embed sdk.
6651
+ *
6652
+ * @param input
6653
+ * @param init
6654
+ * @version SDK: 1.28.0
6655
+ * @group Global methods
6656
+ */
6657
+ export declare const tokenizedFetch: typeof fetch;
6658
+