@thoughtspot/visual-embed-sdk 1.27.10 → 1.27.11

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 (221) hide show
  1. package/cjs/package.json +2 -2
  2. package/cjs/src/embed/app.d.ts +144 -7
  3. package/cjs/src/embed/app.d.ts.map +1 -1
  4. package/cjs/src/embed/app.js +5 -5
  5. package/cjs/src/embed/app.js.map +1 -1
  6. package/cjs/src/embed/app.spec.js +19 -1
  7. package/cjs/src/embed/app.spec.js.map +1 -1
  8. package/cjs/src/embed/base.d.ts.map +1 -1
  9. package/cjs/src/embed/base.js +0 -3
  10. package/cjs/src/embed/base.js.map +1 -1
  11. package/cjs/src/embed/embed.spec.js +0 -15
  12. package/cjs/src/embed/embed.spec.js.map +1 -1
  13. package/cjs/src/embed/liveboard.d.ts +113 -4
  14. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  15. package/cjs/src/embed/liveboard.js +2 -2
  16. package/cjs/src/embed/liveboard.js.map +1 -1
  17. package/cjs/src/embed/liveboard.spec.js +20 -1
  18. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  19. package/cjs/src/embed/pinboard.spec.js +20 -1
  20. package/cjs/src/embed/pinboard.spec.js.map +1 -1
  21. package/cjs/src/embed/sage.d.ts +1 -1
  22. package/cjs/src/embed/sage.d.ts.map +1 -1
  23. package/cjs/src/embed/sage.js +2 -2
  24. package/cjs/src/embed/sage.js.map +1 -1
  25. package/cjs/src/embed/search-bar.d.ts +37 -6
  26. package/cjs/src/embed/search-bar.d.ts.map +1 -1
  27. package/cjs/src/embed/search-bar.js +2 -2
  28. package/cjs/src/embed/search-bar.js.map +1 -1
  29. package/cjs/src/embed/search.d.ts +80 -1
  30. package/cjs/src/embed/search.d.ts.map +1 -1
  31. package/cjs/src/embed/search.js +3 -3
  32. package/cjs/src/embed/search.js.map +1 -1
  33. package/cjs/src/embed/search.spec.js +25 -1
  34. package/cjs/src/embed/search.spec.js.map +1 -1
  35. package/cjs/src/embed/ts-embed-trigger.spec.d.ts +2 -0
  36. package/cjs/src/embed/ts-embed-trigger.spec.d.ts.map +1 -0
  37. package/cjs/src/embed/ts-embed-trigger.spec.js +34 -0
  38. package/cjs/src/embed/ts-embed-trigger.spec.js.map +1 -0
  39. package/cjs/src/embed/ts-embed.d.ts +1 -1
  40. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  41. package/cjs/src/embed/ts-embed.js +14 -11
  42. package/cjs/src/embed/ts-embed.js.map +1 -1
  43. package/cjs/src/embed/ts-embed.spec.js +50 -17
  44. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  45. package/cjs/src/index.d.ts +5 -3
  46. package/cjs/src/index.d.ts.map +1 -1
  47. package/cjs/src/index.js +6 -1
  48. package/cjs/src/index.js.map +1 -1
  49. package/cjs/src/mixpanel-service.d.ts +1 -0
  50. package/cjs/src/mixpanel-service.d.ts.map +1 -1
  51. package/cjs/src/mixpanel-service.js +1 -0
  52. package/cjs/src/mixpanel-service.js.map +1 -1
  53. package/cjs/src/react/all-types-export.d.ts +1 -1
  54. package/cjs/src/react/all-types-export.d.ts.map +1 -1
  55. package/cjs/src/react/all-types-export.js +2 -1
  56. package/cjs/src/react/all-types-export.js.map +1 -1
  57. package/cjs/src/react/index.spec.js +1 -1
  58. package/cjs/src/react/index.spec.js.map +1 -1
  59. package/cjs/src/test/test-utils.d.ts +1 -0
  60. package/cjs/src/test/test-utils.d.ts.map +1 -1
  61. package/cjs/src/test/test-utils.js +10 -1
  62. package/cjs/src/test/test-utils.js.map +1 -1
  63. package/cjs/src/tokenizedFetch.d.ts +9 -0
  64. package/cjs/src/tokenizedFetch.d.ts.map +1 -1
  65. package/cjs/src/tokenizedFetch.js +9 -0
  66. package/cjs/src/tokenizedFetch.js.map +1 -1
  67. package/cjs/src/types.d.ts +284 -43
  68. package/cjs/src/types.d.ts.map +1 -1
  69. package/cjs/src/types.js +109 -21
  70. package/cjs/src/types.js.map +1 -1
  71. package/cjs/src/utils/authService/authService.d.ts.map +1 -1
  72. package/cjs/src/utils/authService/authService.js +8 -2
  73. package/cjs/src/utils/authService/authService.js.map +1 -1
  74. package/cjs/src/utils/authService/authService.spec.js +22 -0
  75. package/cjs/src/utils/authService/authService.spec.js.map +1 -1
  76. package/cjs/src/utils/graphql/answerService/answerService.d.ts +56 -2
  77. package/cjs/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  78. package/cjs/src/utils/graphql/answerService/answerService.js +55 -0
  79. package/cjs/src/utils/graphql/answerService/answerService.js.map +1 -1
  80. package/dist/src/embed/app.d.ts +144 -7
  81. package/dist/src/embed/app.d.ts.map +1 -1
  82. package/dist/src/embed/base.d.ts.map +1 -1
  83. package/dist/src/embed/liveboard.d.ts +113 -4
  84. package/dist/src/embed/liveboard.d.ts.map +1 -1
  85. package/dist/src/embed/sage.d.ts +1 -1
  86. package/dist/src/embed/sage.d.ts.map +1 -1
  87. package/dist/src/embed/search-bar.d.ts +37 -6
  88. package/dist/src/embed/search-bar.d.ts.map +1 -1
  89. package/dist/src/embed/search.d.ts +80 -1
  90. package/dist/src/embed/search.d.ts.map +1 -1
  91. package/dist/src/embed/ts-embed-trigger.spec.d.ts +2 -0
  92. package/dist/src/embed/ts-embed-trigger.spec.d.ts.map +1 -0
  93. package/dist/src/embed/ts-embed.d.ts +1 -1
  94. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  95. package/dist/src/index.d.ts +5 -3
  96. package/dist/src/index.d.ts.map +1 -1
  97. package/dist/src/mixpanel-service.d.ts +1 -0
  98. package/dist/src/mixpanel-service.d.ts.map +1 -1
  99. package/dist/src/react/all-types-export.d.ts +1 -1
  100. package/dist/src/react/all-types-export.d.ts.map +1 -1
  101. package/dist/src/test/test-utils.d.ts +1 -0
  102. package/dist/src/test/test-utils.d.ts.map +1 -1
  103. package/dist/src/tokenizedFetch.d.ts +9 -0
  104. package/dist/src/tokenizedFetch.d.ts.map +1 -1
  105. package/dist/src/types.d.ts +284 -43
  106. package/dist/src/types.d.ts.map +1 -1
  107. package/dist/src/utils/authService/authService.d.ts.map +1 -1
  108. package/dist/src/utils/graphql/answerService/answerService.d.ts +56 -2
  109. package/dist/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  110. package/dist/tsembed-react.es.js +209 -47
  111. package/dist/tsembed-react.js +202 -47
  112. package/dist/tsembed.es.js +326 -167
  113. package/dist/tsembed.js +15335 -15180
  114. package/dist/visual-embed-sdk-react-full.d.ts +758 -65
  115. package/dist/visual-embed-sdk-react.d.ts +758 -65
  116. package/dist/visual-embed-sdk.d.ts +758 -65
  117. package/lib/package.json +2 -2
  118. package/lib/src/embed/app.d.ts +144 -7
  119. package/lib/src/embed/app.d.ts.map +1 -1
  120. package/lib/src/embed/app.js +5 -5
  121. package/lib/src/embed/app.js.map +1 -1
  122. package/lib/src/embed/app.spec.js +19 -1
  123. package/lib/src/embed/app.spec.js.map +1 -1
  124. package/lib/src/embed/base.d.ts.map +1 -1
  125. package/lib/src/embed/base.js +0 -3
  126. package/lib/src/embed/base.js.map +1 -1
  127. package/lib/src/embed/embed.spec.js +2 -17
  128. package/lib/src/embed/embed.spec.js.map +1 -1
  129. package/lib/src/embed/liveboard.d.ts +113 -4
  130. package/lib/src/embed/liveboard.d.ts.map +1 -1
  131. package/lib/src/embed/liveboard.js +3 -3
  132. package/lib/src/embed/liveboard.js.map +1 -1
  133. package/lib/src/embed/liveboard.spec.js +20 -1
  134. package/lib/src/embed/liveboard.spec.js.map +1 -1
  135. package/lib/src/embed/pinboard.spec.js +20 -1
  136. package/lib/src/embed/pinboard.spec.js.map +1 -1
  137. package/lib/src/embed/sage.d.ts +1 -1
  138. package/lib/src/embed/sage.d.ts.map +1 -1
  139. package/lib/src/embed/sage.js +2 -2
  140. package/lib/src/embed/sage.js.map +1 -1
  141. package/lib/src/embed/search-bar.d.ts +37 -6
  142. package/lib/src/embed/search-bar.d.ts.map +1 -1
  143. package/lib/src/embed/search-bar.js +2 -2
  144. package/lib/src/embed/search-bar.js.map +1 -1
  145. package/lib/src/embed/search.d.ts +80 -1
  146. package/lib/src/embed/search.d.ts.map +1 -1
  147. package/lib/src/embed/search.js +3 -3
  148. package/lib/src/embed/search.js.map +1 -1
  149. package/lib/src/embed/search.spec.js +25 -1
  150. package/lib/src/embed/search.spec.js.map +1 -1
  151. package/lib/src/embed/ts-embed-trigger.spec.d.ts +2 -0
  152. package/lib/src/embed/ts-embed-trigger.spec.d.ts.map +1 -0
  153. package/lib/src/embed/ts-embed-trigger.spec.js +32 -0
  154. package/lib/src/embed/ts-embed-trigger.spec.js.map +1 -0
  155. package/lib/src/embed/ts-embed.d.ts +1 -1
  156. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  157. package/lib/src/embed/ts-embed.js +14 -11
  158. package/lib/src/embed/ts-embed.js.map +1 -1
  159. package/lib/src/embed/ts-embed.spec.js +44 -11
  160. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  161. package/lib/src/index.d.ts +5 -3
  162. package/lib/src/index.d.ts.map +1 -1
  163. package/lib/src/index.js +3 -3
  164. package/lib/src/index.js.map +1 -1
  165. package/lib/src/mixpanel-service.d.ts +1 -0
  166. package/lib/src/mixpanel-service.d.ts.map +1 -1
  167. package/lib/src/mixpanel-service.js +1 -0
  168. package/lib/src/mixpanel-service.js.map +1 -1
  169. package/lib/src/react/all-types-export.d.ts +1 -1
  170. package/lib/src/react/all-types-export.d.ts.map +1 -1
  171. package/lib/src/react/all-types-export.js +1 -1
  172. package/lib/src/react/all-types-export.js.map +1 -1
  173. package/lib/src/react/index.spec.js +1 -1
  174. package/lib/src/react/index.spec.js.map +1 -1
  175. package/lib/src/test/test-utils.d.ts +1 -0
  176. package/lib/src/test/test-utils.d.ts.map +1 -1
  177. package/lib/src/test/test-utils.js +8 -0
  178. package/lib/src/test/test-utils.js.map +1 -1
  179. package/lib/src/tokenizedFetch.d.ts +9 -0
  180. package/lib/src/tokenizedFetch.d.ts.map +1 -1
  181. package/lib/src/tokenizedFetch.js +9 -0
  182. package/lib/src/tokenizedFetch.js.map +1 -1
  183. package/lib/src/types.d.ts +284 -43
  184. package/lib/src/types.d.ts.map +1 -1
  185. package/lib/src/types.js +109 -21
  186. package/lib/src/types.js.map +1 -1
  187. package/lib/src/utils/authService/authService.d.ts.map +1 -1
  188. package/lib/src/utils/authService/authService.js +8 -2
  189. package/lib/src/utils/authService/authService.js.map +1 -1
  190. package/lib/src/utils/authService/authService.spec.js +22 -0
  191. package/lib/src/utils/authService/authService.spec.js.map +1 -1
  192. package/lib/src/utils/graphql/answerService/answerService.d.ts +56 -2
  193. package/lib/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  194. package/lib/src/utils/graphql/answerService/answerService.js +55 -0
  195. package/lib/src/utils/graphql/answerService/answerService.js.map +1 -1
  196. package/lib/src/visual-embed-sdk.d.ts +767 -68
  197. package/package.json +2 -2
  198. package/src/embed/app.spec.ts +24 -1
  199. package/src/embed/app.ts +148 -13
  200. package/src/embed/base.ts +1 -5
  201. package/src/embed/embed.spec.ts +0 -18
  202. package/src/embed/liveboard.spec.ts +24 -1
  203. package/src/embed/liveboard.ts +121 -15
  204. package/src/embed/pinboard.spec.ts +24 -1
  205. package/src/embed/sage.ts +2 -2
  206. package/src/embed/search-bar.tsx +38 -7
  207. package/src/embed/search.spec.ts +29 -1
  208. package/src/embed/search.ts +82 -3
  209. package/src/embed/ts-embed-trigger.spec.ts +39 -0
  210. package/src/embed/ts-embed.spec.ts +46 -11
  211. package/src/embed/ts-embed.ts +18 -14
  212. package/src/index.ts +12 -1
  213. package/src/mixpanel-service.ts +1 -0
  214. package/src/react/all-types-export.ts +1 -0
  215. package/src/react/index.spec.tsx +1 -0
  216. package/src/test/test-utils.ts +9 -0
  217. package/src/tokenizedFetch.ts +9 -0
  218. package/src/types.ts +285 -42
  219. package/src/utils/authService/authService.spec.ts +27 -0
  220. package/src/utils/authService/authService.ts +13 -12
  221. package/src/utils/graphql/answerService/answerService.ts +56 -1
@@ -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,16 +515,43 @@ 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;
499
557
  /**
@@ -504,11 +562,26 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
504
562
  * If set to true, the Search Assist feature is enabled.
505
563
  *
506
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
+ * ```
507
572
  */
508
573
  enableSearchAssist?: boolean;
509
574
  /**
510
575
  * If set to true, the tabular view is set as the default
511
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
+ * })
512
585
  */
513
586
  forceTable?: boolean;
514
587
  /**
@@ -516,12 +589,26 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
516
589
  * Only a single data source is supported currently.
517
590
  *
518
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
+ * ```
519
599
  */
520
600
  dataSources?: string[];
521
601
  /**
522
602
  * The array of data source GUIDs to set on load.
523
603
  *
524
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
+ * ```
525
612
  */
526
613
  dataSource?: string;
527
614
  /**
@@ -554,6 +641,15 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
554
641
  searchOptions?: SearchOptions;
555
642
  /**
556
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
+ * ```
557
653
  */
558
654
  answerId?: string;
559
655
  /**
@@ -561,6 +657,13 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
561
657
  * The chart/table should still be visible.
562
658
  *
563
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
+ * ```
564
667
  */
565
668
  hideSearchBar?: boolean;
566
669
  /**
@@ -568,6 +671,13 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
568
671
  *
569
672
  * @default false
570
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
+ * ```
571
681
  */
572
682
  dataPanelV2?: boolean;
573
683
  /**
@@ -601,7 +711,7 @@ export declare class SearchEmbed extends TsEmbed {
601
711
  /**
602
712
  * Render the embedded ThoughtSpot search
603
713
  */
604
- render(): SearchEmbed;
714
+ render(): Promise<SearchEmbed>;
605
715
  }
606
716
 
607
717
  /**
@@ -657,6 +767,16 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
657
767
  * If true, the top navigation bar within the ThoughtSpot app
658
768
  * is displayed. By default, the navigation bar is hidden.
659
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
+ * ```
660
780
  */
661
781
  showPrimaryNavbar?: boolean;
662
782
  /**
@@ -665,23 +785,73 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
665
785
  * nav-bars are visible, this flag will only hide the homepage left nav-bar.
666
786
  * The showPrimaryNavbar flag takes precedence over the hideHomepageLeftNav.
667
787
  *
788
+ * **Note**: This option does not apply to the classic homepage.
789
+ * To access the updated modular homepage, set
790
+ * `modularHomeExperience` to `true` (available in Early Access from 9.12 forward).
791
+ *
668
792
  * @default false
669
- * @version SDK: 1.27.0 | Thoughtspot: 9.8.0.cl
793
+ * @version SDK: 1.27.9 | Thoughtspot: 9.12.0.cl
794
+ * @example
795
+ * ```js
796
+ * const embed = new AppEmbed('#tsEmbed', {
797
+ * ... // other options
798
+ * hideHomepageLeftNav : true,
799
+ * })
800
+ * ```
670
801
  */
671
802
  hideHomepageLeftNav?: boolean;
672
803
  /**
673
804
  * Control the visibility of the help (?) and profile buttons on the
674
805
  * Global nav-bar. By default, these buttons are visible on the nav-bar.
806
+ *
807
+ * @default false
808
+ * @version SDK: 1.2.0 | Thoughtspot: 8.4.0.cl
809
+ * @example
810
+ * ```js
811
+ * const embed = new AppEmbed('#tsEmbed', {
812
+ * ... // other options
813
+ * disableProfileAndHelp: true,
814
+ * })
815
+ * ```
675
816
  */
676
817
  disableProfileAndHelp?: boolean;
677
818
  /**
678
819
  * Control the visibility of the application switcher button on the nav-bar.
679
820
  * By default, the application switcher is shown.
821
+ *
822
+ * **Note**: This option does not apply to the classic homepage.
823
+ * To access the updated modular homepage, set
824
+ * `modularHomeExperience` to `true` (available in Early Access from 9.12 forward).
825
+ *
826
+ * @default false
827
+ * @version SDK: 1.2.0 | Thoughtspot: 8.4.0.cl
828
+ * @example
829
+ * ```js
830
+ * const embed = new AppEmbed('#tsEmbed', {
831
+ * ... // other options
832
+ * hideApplicationSwitcher : true,
833
+ * })
834
+ * ```
680
835
  */
681
836
  hideApplicationSwitcher?: boolean;
682
837
  /**
683
838
  * Control the visibility of the Org switcher button on the nav-bar.
684
839
  * By default, the Org switcher button is shown.
840
+ *
841
+ * **Note**: This option does not apply to the classic homepage.
842
+ * To access the updated modular homepage, set
843
+ * `modularHomeExperience` to `true` (available in Early Access from 9.12 forward).
844
+ *
845
+ *
846
+ * @default true
847
+ * @version SDK: 1.2.0 | Thoughtspot: 9.4.0.cl
848
+ * @example
849
+ * ```js
850
+ * const embed = new AppEmbed('#tsEmbed', {
851
+ * ... // other options
852
+ * hideOrgSwitcher : true,
853
+ * })
854
+ * ```
685
855
  */
686
856
  hideOrgSwitcher?: boolean;
687
857
  /**
@@ -693,9 +863,13 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
693
863
  * For eg, if you want the component to open to a specific Liveboard
694
864
  * you could set the path to `pinboard/<liveboardId>/tab/<tabId>`.
695
865
  *
866
+ * @version SDK: 1.1.0 | Thoughtspot: 9.4.0.cl
696
867
  * @example
697
- * ```
698
- * <AppEmbed path="pinboard/1234/tab/7464" />
868
+ * ```js
869
+ * const embed = new AppEmbed('#tsEmbed', {
870
+ * ... // other options
871
+ * path:"pinboard/1234/tab/7464"
872
+ * })
699
873
  * ```
700
874
  */
701
875
  path?: string;
@@ -705,16 +879,46 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
705
879
  *
706
880
  * Use this to open to particular page in the app. To open to a specific
707
881
  * path within the app, use the `path` attribute which is more flexible.
882
+ *
883
+ * @version SDK: 1.1.0 | Thoughtspot: 9.4.0.cl
884
+ * @example
885
+ * ```js
886
+ * const embed = new AppEmbed('#tsEmbed', {
887
+ * ... // other options
888
+ * pageId : Page.Answers | Page.Data
889
+ * })
890
+ * ```
708
891
  */
709
892
  pageId?: Page;
710
893
  /**
711
894
  * This puts a filter tag on the application. All metadata lists in the
712
895
  * application, such as Liveboards and answers, would be filtered by this
713
896
  * tag.
897
+ *
898
+ * @version SDK: 1.1.0 | Thoughtspot: 9.4.0.cl
899
+ * @example
900
+ * ```js
901
+ * const embed = new AppEmbed('#tsEmbed', {
902
+ * ... // other options
903
+ * tag:'value',
904
+ * })
905
+ * ```
714
906
  */
715
907
  tag?: string;
716
908
  /**
717
909
  * The array of GUIDs to be hidden
910
+ *
911
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
912
+ * @example
913
+ * ```js
914
+ * const embed = new AppEmbed('#tsEmbed', {
915
+ * ... // other options
916
+ * hideObjects: [
917
+ * '430496d6-6903-4601-937e-2c691821af3c',
918
+ * 'f547ec54-2a37-4516-a222-2b06719af726'
919
+ * ]
920
+ * })
921
+ * ```
718
922
  */
719
923
  hideObjects?: string[];
720
924
  /**
@@ -728,7 +932,15 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
728
932
  /**
729
933
  * If set to true, the Search Assist feature is enabled.
730
934
  *
935
+ * @default true
731
936
  * @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1-sw
937
+ * @example
938
+ * ```js
939
+ * const embed = new AppEmbed('#tsEmbed', {
940
+ * ... // other options
941
+ * enableSearchAssist: true,
942
+ * })
943
+ * ```
732
944
  */
733
945
  enableSearchAssist?: boolean;
734
946
  /**
@@ -736,6 +948,13 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
736
948
  * according to the height of the pages which support fullHeight mode.
737
949
  *
738
950
  * @version SDK: 1.21.0 | ThoughtSpot: 9.4.0.cl, 9.4.0-sw
951
+ * @example
952
+ * ```js
953
+ * const embed = new AppEmbed('#tsEmbed', {
954
+ * ... // other options
955
+ * fullHeight: true,
956
+ * })
957
+ * ```
739
958
  */
740
959
  fullHeight?: boolean;
741
960
  /**
@@ -751,6 +970,13 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
751
970
  *
752
971
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
753
972
  * @default false
973
+ * @example
974
+ * ```js
975
+ * const embed = new AppEmbed('#tsEmbed', {
976
+ * ... // other options
977
+ * hideLiveboardHeader : true,
978
+ * })
979
+ * ```
754
980
  */
755
981
  hideLiveboardHeader?: boolean;
756
982
  /**
@@ -758,6 +984,13 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
758
984
  *
759
985
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
760
986
  * @default false
987
+ * @example
988
+ * ```js
989
+ * const embed = new AppEmbed('#tsEmbed', {
990
+ * ... // other options
991
+ * showLiveboardTitle:true,
992
+ * })
993
+ * ```
761
994
  */
762
995
  showLiveboardTitle?: boolean;
763
996
  /**
@@ -765,13 +998,27 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
765
998
  *
766
999
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
767
1000
  * @default false
1001
+ * @example
1002
+ * ```js
1003
+ * const embed = new AppEmbed('#tsEmbed', {
1004
+ * ... // other options
1005
+ * showLiveboardDescription:true,
1006
+ * })
1007
+ * ```
768
1008
  */
769
1009
  showLiveboardDescription?: boolean;
770
1010
  /**
771
- * Flag to control new Modular Home experience
1011
+ * Flag to control new Modular Home experience.
772
1012
  *
773
1013
  * @default false
774
- * @version SDK: 1.27.0 | Thoughtspot: 9.8.0.cl
1014
+ * @version SDK: 1.27.9 | Thoughtspot: 9.12.0.cl
1015
+ * @example
1016
+ * ```js
1017
+ * const embed = new AppEmbed('#tsEmbed', {
1018
+ * ... // other options
1019
+ * modularHomeExperience : true,
1020
+ * })
1021
+ * ```
775
1022
  */
776
1023
  modularHomeExperience?: boolean;
777
1024
  /**
@@ -840,7 +1087,7 @@ export declare class AppEmbed extends V1Embed {
840
1087
  * @param renderOptions An object containing the page ID
841
1088
  * to be embedded.
842
1089
  */
843
- render(): AppEmbed;
1090
+ render(): Promise<AppEmbed>;
844
1091
  }
845
1092
 
846
1093
  /**
@@ -862,8 +1109,21 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
862
1109
  /**
863
1110
  * If set to true, the embedded object container dynamically resizes
864
1111
  * according to the height of the Liveboard.
1112
+ * **Note**: Using fullHeight loads all visualizations on the
1113
+ * Liveboard simultaneously, which results in multiple warehouse
1114
+ * queries and potentially a longer wait for the topmost
1115
+ * visualizations to display on the screen.
1116
+ * Setting `fullHeight` to `false` fetches visualizations
1117
+ * incrementally as users scroll the page to view the charts and tables.
865
1118
  *
866
1119
  * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1
1120
+ * @example
1121
+ * ```js
1122
+ * const embed = new LiveboardEmbed('#embed', {
1123
+ * ... // other liveboard view config
1124
+ * fullHeight: true,
1125
+ * });
1126
+ * ```
867
1127
  */
868
1128
  fullHeight?: boolean;
869
1129
  /**
@@ -873,10 +1133,26 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
873
1133
  *
874
1134
  * @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
875
1135
  * @default 500
1136
+ * @example
1137
+ * ```js
1138
+ * const embed = new LiveboardEmbed('#embed', {
1139
+ * ... // other liveboard view config
1140
+ * fullHeight: true,
1141
+ * defaultHeight: 600,
1142
+ * });
1143
+ * ```
876
1144
  */
877
1145
  defaultHeight?: number;
878
1146
  /**
879
1147
  * @Deprecated If set to true, the context menu in visualizations will be enabled.
1148
+ * @example
1149
+ * ```js
1150
+ * const embed = new LiveboardEmbed('#tsEmbed', {
1151
+ * ... // other options
1152
+ * enableVizTransformations:true,
1153
+ * })
1154
+ * ```
1155
+ * @version: SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
880
1156
  */
881
1157
  enableVizTransformations?: boolean;
882
1158
  /**
@@ -884,6 +1160,12 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
884
1160
  * Use either liveboardId or pinboardId to reference the Liveboard to embed.
885
1161
  *
886
1162
  * @version SDK: 1.3.0 | ThoughtSpot ts7.aug.cl, 7.2.1
1163
+ * @example
1164
+ * ```js
1165
+ * const embed = new LiveboardEmbed('#embed-container', {
1166
+ * ... // other options
1167
+ * liveboardId:id of liveboard,
1168
+ * })
887
1169
  */
888
1170
  liveboardId?: string;
889
1171
  /**
@@ -894,6 +1176,15 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
894
1176
  pinboardId?: string;
895
1177
  /**
896
1178
  * The visualization within the Liveboard to display.
1179
+ *
1180
+ * @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
1181
+ * @example
1182
+ * ```js
1183
+ * const embed = new LiveboardEmbed('#embed-container', {
1184
+ * ... // other options
1185
+ * vizId:'430496d6-6903-4601-937e-2c691821af3c',
1186
+ * })
1187
+ * ```
897
1188
  */
898
1189
  vizId?: string;
899
1190
  /**
@@ -901,6 +1192,13 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
901
1192
  * Liveboard page will be read-only (no X buttons)
902
1193
  *
903
1194
  * @version SDK: 1.3.0 | ThoughtSpot ts7.aug.cl, 7.2.1.sw
1195
+ * @example
1196
+ * ```js
1197
+ * const embed = new LiveboardEmbed('#embed-container', {
1198
+ * ... // other options
1199
+ * preventLiveboardFilterRemoval:true,
1200
+ * })
1201
+ * ```
904
1202
  */
905
1203
  preventLiveboardFilterRemoval?: boolean;
906
1204
  /**
@@ -909,6 +1207,15 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
909
1207
  * event.
910
1208
  *
911
1209
  * @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
1210
+ * @example
1211
+ * ```js
1212
+ * const embed = new LiveboardEmbed('#embed-container', {
1213
+ * ... // other options
1214
+ * visibleVizs: [
1215
+ * '430496d6-6903-4601-937e-2c691821af3c',
1216
+ * 'f547ec54-2a37-4516-a222-2b06719af726'
1217
+ * ]
1218
+ * })
912
1219
  */
913
1220
  visibleVizs?: string[];
914
1221
  /**
@@ -922,12 +1229,26 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
922
1229
  * new Liveboard experience mode.
923
1230
  *
924
1231
  * @version SDK: 1.14.0 | ThoughtSpot: 8.6.0.cl, 8.8.1-sw
1232
+ * @example
1233
+ * ```js
1234
+ * const embed = new LiveboardEmbed('#embed-container', {
1235
+ * ... // other options
1236
+ * liveboardV2:true,
1237
+ * })
1238
+ * ```
925
1239
  */
926
1240
  liveboardV2?: boolean;
927
1241
  /**
928
1242
  * Set a Liveboard tab as an active tab.
929
1243
  * Specify the tab ID.
930
1244
  *
1245
+ * @example
1246
+ * ```js
1247
+ * const embed = new LiveboardEmbed('#tsEmbed', {
1248
+ * ... // other options
1249
+ * activeTabId:'id-1234',
1250
+ * })
1251
+ * ```
931
1252
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
932
1253
  */
933
1254
  activeTabId?: string;
@@ -935,6 +1256,13 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
935
1256
  * Show or hide the tab panel of the embedded Liveboard.
936
1257
  *
937
1258
  * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl, 9.8.0.sw
1259
+ * @example
1260
+ * ```js
1261
+ * const embed = new LiveboardEmbed('#embed-container', {
1262
+ * ... // other options
1263
+ * hideTabPanel:true,
1264
+ * })
1265
+ * ```
938
1266
  */
939
1267
  hideTabPanel?: boolean;
940
1268
  /**
@@ -942,20 +1270,41 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
942
1270
  *
943
1271
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
944
1272
  * @default false
1273
+ * @example
1274
+ * ```js
1275
+ * const embed = new LiveboardEmbed('#embed', {
1276
+ * ... // other liveboard view config
1277
+ * hideLiveboardHeader:true,
1278
+ * });
1279
+ * ```
945
1280
  */
946
1281
  hideLiveboardHeader?: boolean;
947
1282
  /**
948
1283
  * Show or hide the Liveboard title.
949
1284
  *
950
- * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
951
1285
  * @default false
1286
+ * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
1287
+ * @example
1288
+ * ```js
1289
+ * const embed = new LiveboardEmbed('#embed-container', {
1290
+ * ... // other options
1291
+ * showLiveboardTitle:true,
1292
+ * })
1293
+ * ```
952
1294
  */
953
1295
  showLiveboardTitle?: boolean;
954
1296
  /**
955
1297
  * Show or hide the Liveboard description.
956
1298
  *
957
- * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
958
1299
  * @default false
1300
+ * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
1301
+ * @example
1302
+ * ```js
1303
+ * const embed = new LiveboardEmbed('#embed-container', {
1304
+ * ... // other options
1305
+ * showLiveboardDescription:true,
1306
+ * })
1307
+ * ```
959
1308
  */
960
1309
  showLiveboardDescription?: boolean;
961
1310
  /**
@@ -976,8 +1325,15 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
976
1325
  /**
977
1326
  * enable or disable ask sage
978
1327
  *
979
- * @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
980
1328
  * @default false
1329
+ * @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
1330
+ * @example
1331
+ * ```js
1332
+ * const embed = new SearchEmbed('#tsEmbed', {
1333
+ * ... // other options
1334
+ * enableAskSage:true,
1335
+ * })
1336
+ * ```
981
1337
  */
982
1338
  enableAskSage?: boolean;
983
1339
  }
@@ -1020,7 +1376,7 @@ export declare class LiveboardEmbed extends V1Embed {
1020
1376
  * @param renderOptions An object specifying the Liveboard ID,
1021
1377
  * visualization ID and the runtime filters.
1022
1378
  */
1023
- render(): LiveboardEmbed;
1379
+ render(): Promise<LiveboardEmbed>;
1024
1380
  navigateToLiveboard(liveboardId: string, vizId?: string, activeTabId?: string): void;
1025
1381
  }
1026
1382
  /**
@@ -1056,7 +1412,7 @@ export function getViewPropsAndListeners<T extends EmbedProps, U extends ViewCon
1056
1412
  * @summary ThoughtSpot Visual Embed SDK
1057
1413
  * @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
1058
1414
  */
1059
- export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, AnswerService, 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, };
1415
+ 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, };
1060
1416
 
1061
1417
  /**
1062
1418
  * Copyright (c) 2023
@@ -1201,6 +1557,7 @@ export declare enum AuthType {
1201
1557
  * .then((data) => data.token);
1202
1558
  * }
1203
1559
  * });
1560
+ * });
1204
1561
  * ```
1205
1562
  */
1206
1563
  TrustedAuthToken = "AuthServer",
@@ -1233,16 +1590,38 @@ export declare enum AuthType {
1233
1590
  */
1234
1591
  Basic = "Basic"
1235
1592
  }
1593
+ /**
1594
+ *
1595
+ * This option does not apply to the classic homepage experience. To access the
1596
+ * updated modular homepage, set `modularHomeExperience` to `true` (available in Early
1597
+ * Access from 9.12.0.cl onwards).
1598
+ *
1599
+ */
1236
1600
  export declare enum HomeLeftNavItem {
1237
- QueryBuilder = "query-builder",
1601
+ /**
1602
+ * @version SDK: 1.27.9| ThoughtSpot: 9.12.0.cl
1603
+ */
1604
+ SearchData = "search-data",
1605
+ /**
1606
+ * @version SDK: 1.27.9| ThoughtSpot: 9.12.0.cl
1607
+ */
1238
1608
  Home = "insights-home",
1609
+ /**
1610
+ * @version SDK: 1.27.9| ThoughtSpot: 9.12.0.cl
1611
+ */
1239
1612
  Liveboards = "liveboards",
1613
+ /**
1614
+ * @version SDK: 1.27.9| ThoughtSpot: 9.12.0.cl
1615
+ */
1240
1616
  Answers = "answers",
1617
+ /**
1618
+ * @version SDK: 1.27.9| ThoughtSpot: 9.12.0.cl
1619
+ */
1241
1620
  MonitorSubscription = "monitor-alerts",
1242
- SpotIQAnalysis = "spotiq-analysis",
1243
- Tutorials = "tutorials",
1244
- Documentation = "documentation",
1245
- Community = "community"
1621
+ /**
1622
+ * @version SDK: 1.27.9| ThoughtSpot: 9.12.0.cl
1623
+ */
1624
+ SpotIQAnalysis = "spotiq-analysis"
1246
1625
  }
1247
1626
  export type DOMSelector = string | HTMLElement;
1248
1627
  /**
@@ -1298,6 +1677,8 @@ export interface CustomStyles {
1298
1677
  /**
1299
1678
  * Configuration to define the customization on the Embedded
1300
1679
  * Thoughtspot components.
1680
+ * You can customize styles, text strings, and icons.
1681
+ * For more information, see https://developers.thoughtspot.com/docs/custom-css.
1301
1682
  *
1302
1683
  * @example
1303
1684
  * ```js
@@ -1312,7 +1693,12 @@ export interface CustomStyles {
1312
1693
  * },
1313
1694
  * content: {
1314
1695
  * strings: {
1315
- * 'LIVEBOARDS': 'Dashboards'
1696
+ * 'LIVEBOARDS': 'Dashboards',
1697
+ * 'ANSWERS': 'Visualizations',
1698
+ * 'Edit': 'Modify',
1699
+ * 'Show underlying data': 'Show source data',
1700
+ * 'SpotIQ': 'Insights',
1701
+ * 'Monitor': 'Alerts',
1316
1702
  * }
1317
1703
  * },
1318
1704
  * iconSpriteUrl: 'https://my-custom-icon-sprite.svg'
@@ -1344,12 +1730,6 @@ export interface EmbedConfig {
1344
1730
  * The ThoughtSpot cluster hostname or IP address.
1345
1731
  */
1346
1732
  thoughtSpotHost: string;
1347
- /**
1348
- * If true, all the iframe links will have /v2 added automatically.
1349
- * If false, all the iframe links will have /v1 added automatically.
1350
- * If undefined, nothing will be added
1351
- */
1352
- enableReactShell?: boolean | undefined;
1353
1733
  /**
1354
1734
  * The authentication mechanism to use.
1355
1735
  */
@@ -1638,8 +2018,20 @@ export interface ViewConfig {
1638
2018
  */
1639
2019
  layoutConfig?: LayoutConfig;
1640
2020
  /**
1641
- * The <b>width</b> and <b>height</b> dimensions to render an embedded
2021
+ * The width and height dimensions to render an embedded
1642
2022
  * object inside your app. Specify the values in pixels or percentage.
2023
+ *
2024
+ * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1
2025
+ * @example
2026
+ * ```js
2027
+ * const embed = new LiveboardEmbed('#embed', {
2028
+ * ... // other liveboard view config
2029
+ * frameParams: {
2030
+ * width: '500px' | '50%',
2031
+ * height: '400px' | '60%',
2032
+ * },
2033
+ * });
2034
+ * ```
1643
2035
  */
1644
2036
  frameParams?: FrameParams;
1645
2037
  /**
@@ -1656,6 +2048,7 @@ export interface ViewConfig {
1656
2048
  * for the user.
1657
2049
  * Use this to disable actions.
1658
2050
  *
2051
+ * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
1659
2052
  * @example
1660
2053
  * ```js
1661
2054
  * const embed = new LiveboardEmbed('#embed', {
@@ -1667,6 +2060,16 @@ export interface ViewConfig {
1667
2060
  disabledActions?: Action[];
1668
2061
  /**
1669
2062
  * The tooltip to display for disabled actions.
2063
+ *
2064
+ * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
2065
+ * @example
2066
+ * ```js
2067
+ * const embed = new LiveboardEmbed('#embed', {
2068
+ * ... // other liveboard view config
2069
+ * disabledActions: [Action.Download, Action.Save]
2070
+ * disabledActionReason: "Reason for disabling",
2071
+ * });
2072
+ * ```
1670
2073
  */
1671
2074
  disabledActionReason?: string;
1672
2075
  /**
@@ -1674,6 +2077,7 @@ export interface ViewConfig {
1674
2077
  * This actions will be hidden from the user.
1675
2078
  * Use this to hide an action.
1676
2079
  *
2080
+ * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
1677
2081
  * @example
1678
2082
  * ```js
1679
2083
  * const embed = new LiveboardEmbed('#embed', {
@@ -1694,17 +2098,46 @@ export interface ViewConfig {
1694
2098
  *
1695
2099
  * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
1696
2100
  * @important
2101
+ * @example
2102
+ * ```js
2103
+ * const embed = new LiveboardEmbed('#embed', {
2104
+ * ... // other liveboard view config
2105
+ * visibleActions: [Action.Download, Action.Export]
2106
+ * });
2107
+ * ```
1697
2108
  */
1698
2109
  visibleActions?: Action[];
1699
2110
  /**
1700
2111
  * Show alert messages and toast messages in the embedded view.
1701
2112
  *
1702
2113
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2114
+ * @example
2115
+ * ```js
2116
+ * const embed = new LiveboardEmbed('#embed-container', {
2117
+ * ... // other options
2118
+ * showAlerts:true,
2119
+ * })
2120
+ * ```
1703
2121
  */
1704
2122
  showAlerts?: boolean;
1705
2123
  /**
1706
2124
  * The list of runtime filters to apply to a search answer,
1707
2125
  * visualization, or Liveboard.
2126
+ *
2127
+ * @version SDK: 1.9.4 | ThoughtSpot 8.1.0.cl, 8.4.1.sw
2128
+ * @example
2129
+ * ```js
2130
+ * const embed = new LiveboardEmbed('#embed-container', {
2131
+ * ... // other options
2132
+ * runtimeFilters: [
2133
+ * {
2134
+ * columnName: 'value',
2135
+ * operator: RuntimeFilterOp.EQ,
2136
+ * values: ['string' | 123 | true],
2137
+ * },
2138
+ * ],
2139
+ * })
2140
+ * ```
1708
2141
  */
1709
2142
  runtimeFilters?: RuntimeFilter[];
1710
2143
  /**
@@ -1712,12 +2145,31 @@ export interface ViewConfig {
1712
2145
  * visualization, or Liveboard.
1713
2146
  *
1714
2147
  * @version SDK : 1.25.0 | Thoughtspot: 9.2.0.cl, 9.5.0.sw
2148
+ * @example
2149
+ * ```js
2150
+ * const embed = new LiveboardEmbed('#embed-container', {
2151
+ * ... // other options
2152
+ * runtimeParameters: [
2153
+ * {
2154
+ * name: 'value',
2155
+ * value: 'string' | 123 | true,
2156
+ * },
2157
+ * ],
2158
+ * })
2159
+ * ```
1715
2160
  */
1716
2161
  runtimeParameters?: RuntimeParameter[];
1717
2162
  /**
1718
2163
  * The locale/language to use for the embedded view.
1719
2164
  *
1720
2165
  * @version SDK: 1.9.4 | ThoughtSpot 8.1.0.cl, 8.4.1.sw
2166
+ * @example
2167
+ * ```js
2168
+ * const embed = new LiveboardEmbed('#embed-container', {
2169
+ * ... // other options
2170
+ * locale:'en',
2171
+ * })
2172
+ * ```
1721
2173
  */
1722
2174
  locale?: string;
1723
2175
  /**
@@ -1728,6 +2180,16 @@ export interface ViewConfig {
1728
2180
  * to control embed behavior in non-regular ways. We do not publish the
1729
2181
  * list of supported keys and values associated with each.
1730
2182
  *
2183
+ * @example
2184
+ * ```js
2185
+ * const embed = new LiveboardEmbed('#embed', {
2186
+ * ... // other liveboard view config
2187
+ * additionalFlags: {
2188
+ * flag1: 'value1',
2189
+ * flag2: 'value2'
2190
+ * }
2191
+ * });
2192
+ * ```
1731
2193
  * @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
1732
2194
  */
1733
2195
  additionalFlags?: {
@@ -1744,18 +2206,41 @@ export interface ViewConfig {
1744
2206
  /**
1745
2207
  * Insert as a sibling of the target container, instead of appending to a
1746
2208
  * child inside it.
2209
+ *
2210
+ * @version SDK: 1.2.0 | Thoughtspot: 9.0.0.cl, 9.0.0.sw
2211
+ * @example
2212
+ * ```js
2213
+ * const embed = new LiveboardEmbed('#embed-container', {
2214
+ * ... // other options
2215
+ * insertAsSibling:true,
2216
+ * })
2217
+ * ```
1747
2218
  */
1748
2219
  insertAsSibling?: boolean;
1749
2220
  /**
1750
2221
  * flag to set ContextMenu Trigger to either left or right click.
1751
2222
  *
2223
+ * @example
2224
+ * ```js
2225
+ * const embed = new LiveboardEmbed('#tsEmbed', {
2226
+ * ... // other options
2227
+ * contextMenuTrigger:ContextMenuTriggerOptions.LEFT_CLICK || RIGHT_CLICK,
2228
+ * })
2229
+ * ```
1752
2230
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1753
2231
  */
1754
2232
  contextMenuTrigger?: ContextMenuTriggerOptions;
1755
2233
  /**
1756
- * flag to override openNew tab context menu link
2234
+ * Flag to override openNew tab context menu link
1757
2235
  *
1758
2236
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
2237
+ * @example
2238
+ * ```js
2239
+ * const embed = new LiveboardEmbed('#embed-container', {
2240
+ * ... // other options
2241
+ * linkOverride:false,
2242
+ * })
2243
+ * ```
1759
2244
  */
1760
2245
  linkOverride?: boolean;
1761
2246
  /**
@@ -1777,9 +2262,14 @@ export interface ViewConfig {
1777
2262
  usePrerenderedIfAvailable?: boolean;
1778
2263
  /**
1779
2264
  * Boolean to exclude runtimeFilters in the URL
2265
+ * By default it is true, this flag removes runtime filters from the URL
2266
+ * when set to false, runtime filters will be included in the URL.
1780
2267
  *
1781
- * @default false
1782
- * @hidden
2268
+ * Irrespective of this flag, runtime filters ( if passed ) will be applied to the
2269
+ * embedded view.
2270
+ *
2271
+ * @default true
2272
+ * @version SDK: 1.24.0 | ThoughtSpot: 9.5.0.cl
1783
2273
  */
1784
2274
  excludeRuntimeFiltersfromURL?: boolean;
1785
2275
  /**
@@ -1801,16 +2291,40 @@ export interface ViewConfig {
1801
2291
  hiddenTabs?: string[];
1802
2292
  /**
1803
2293
  * Hide the home page modules
1804
- * eg: hiddenHomepageModules = [HomepageModule.MyLibrary]
2294
+ * For example: hiddenHomepageModules = [HomepageModule.MyLibrary]
2295
+ *
2296
+ *
2297
+ * **Note**: This option does not apply to the classic homepage.
2298
+ * To access the updated modular homepage, set
2299
+ * `modularHomeExperience` to `true` (available as Early Access feature in 9.12.0.cl).
1805
2300
  *
1806
- * @version SDK: 1.27.0 | Thoughtspot: 9.12.0.cl
2301
+ * @version SDK: 1.27.9 | Thoughtspot: 9.12.0.cl
2302
+ * @example
2303
+ * ```js
2304
+ * const embed = new AppEmbed('#tsEmbed', {
2305
+ * ... // other options
2306
+ * hiddenHomepageModules : [HomepageModule.Favorite,HomepageModule.Learning],
2307
+ * })
2308
+ * ```
1807
2309
  */
1808
2310
  hiddenHomepageModules?: HomepageModule[];
1809
2311
  /**
1810
2312
  * reordering the home page modules
1811
2313
  * eg: reorderedHomepageModules = [HomepageModule.MyLibrary, HomepageModule.Watchlist]
1812
2314
  *
1813
- * @version SDK: 1.28.0 | Thoughtspot: 9.12.0.cl
2315
+ * **Note**: This option does not apply to the classic homepage.
2316
+ * To access the updated modular homepage, set
2317
+ * `modularHomeExperience` to `true` (available in Early Access from 9.12.0.cl
2318
+ * onwards).
2319
+ *
2320
+ * @version SDK: 1.27.9| Thoughtspot: 9.12.0.cl
2321
+ * @example
2322
+ * ```js
2323
+ * const embed = new AppEmbed('#tsEmbed', {
2324
+ * ... // other options
2325
+ * reorderedHomepageModules:[HomepageModule.Favorite,HomepageModule.MyLibrary]
2326
+ * })
2327
+ * ```
1814
2328
  */
1815
2329
  reorderedHomepageModules?: HomepageModule[];
1816
2330
  /**
@@ -1819,13 +2333,17 @@ export interface ViewConfig {
1819
2333
  *
1820
2334
  * Use either `visibleTabs` or `hiddenTabs`.
1821
2335
  *
2336
+ * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
1822
2337
  * @example
1823
2338
  * ```js
1824
- * visibleTabs: [
1825
- * '430496d6-6903-4601-937e-2c691821af3c',
1826
- * 'f547ec54-2a37-4516-a222-2b06719af726']
2339
+ * const embed = new LiveboardEmbed('#embed-container', {
2340
+ * ... // other options
2341
+ * visibleTabs: [
2342
+ * '430496d6-6903-4601-937e-2c691821af3c',
2343
+ * 'f547ec54-2a37-4516-a222-2b06719af726'
2344
+ * ]
2345
+ * })
1827
2346
  * ```
1828
- * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
1829
2347
  */
1830
2348
  visibleTabs?: string[];
1831
2349
  /**
@@ -1833,11 +2351,19 @@ export interface ViewConfig {
1833
2351
  * There are 8 eight home navigation list items.
1834
2352
  * To hide these items, specify the string in the array.
1835
2353
  *
2354
+ * @version SDK: 1.27.0 | Thoughtspot: 9.10.0.cl
2355
+ * @example
1836
2356
  * ```js
1837
- * hiddenHomeLeftNavItems = [HomeLeftNavItem.Home]
2357
+ * const embed = new AppEmbed('#tsEmbed', {
2358
+ * ... // other options
2359
+ * hiddenHomeLeftNavItems : [HomeLeftNavItem.Home,HomeLeftNavItem.Answers],
2360
+ * })
1838
2361
  * ```
1839
2362
  *
1840
- * @version SDK: 1.27.0 | Thoughtspot: 9.12.0.cl
2363
+ * **Note**: This option does not apply to the classic homepage.
2364
+ * To access the updated modular homepage, set
2365
+ * `modularHomeExperience` to `true` (available in Early Access from 9.12 forward).
2366
+ * @version SDK: 1.27.9 | Thoughtspot: 9.12.0.cl
1841
2367
  */
1842
2368
  hiddenHomeLeftNavItems?: HomeLeftNavItem[];
1843
2369
  /**
@@ -1864,7 +2390,9 @@ export interface ViewConfig {
1864
2390
  *
1865
2391
  * @type {boolean}
1866
2392
  * @default false
2393
+ * @version SDK: 1.24.0 | ThoughtSpot:9.4.0.cl, 9.4.0.sw
1867
2394
  * @example
2395
+ * ```js
1868
2396
  * // Disable tracking PreRender size in the configuration
1869
2397
  * const config = {
1870
2398
  * doNotTrackPreRenderSize: true,
@@ -1872,6 +2400,7 @@ export interface ViewConfig {
1872
2400
  *
1873
2401
  * // Instantiate an object with the configuration
1874
2402
  * const myComponent = new MyComponent(config);
2403
+ * ```
1875
2404
  */
1876
2405
  doNotTrackPreRenderSize?: boolean;
1877
2406
  /**
@@ -2013,6 +2542,11 @@ export declare enum HomepageModule {
2013
2542
  MyLibrary = "MY_LIBRARY",
2014
2543
  /**
2015
2544
  * Trending list
2545
+ *
2546
+ * **Note**: This option does not apply to the classic homepage.
2547
+ * To access the updated modular homepage, set
2548
+ * `modularHomeExperience` to `true` (available in Early Access from 9.12.0.cl
2549
+ * onwards).
2016
2550
  */
2017
2551
  Trending = "TRENDING",
2018
2552
  /**
@@ -2151,7 +2685,7 @@ export declare enum EmbedEvent {
2151
2685
  * @returns nonFilteredColumns - The columns that were not filtered
2152
2686
  * @example
2153
2687
  *```js
2154
- * searchEmbed.trigger(HostEvent.DrillDown, {
2688
+ * searchEmbed.trigger(EmbedEvent.DrillDown, {
2155
2689
  * points: {
2156
2690
  * clickedPoint,
2157
2691
  * selectedPoints: selectedPoint
@@ -2209,7 +2743,8 @@ export declare enum EmbedEvent {
2209
2743
  * A custom action has been triggered.
2210
2744
  *
2211
2745
  * @returns actionId - ID of the custom action
2212
- * @returns data - Response payload with the Answer or Liveboard data
2746
+ * @returns payload {@link CustomActionPayload} - Response payload with the
2747
+ * Answer or Liveboard data
2213
2748
  * @example
2214
2749
  * ```js
2215
2750
  * appEmbed.on(EmbedEvent.customAction, payload => {
@@ -2229,7 +2764,7 @@ export declare enum EmbedEvent {
2229
2764
  * @example
2230
2765
  * ```js
2231
2766
  * livebaordEmbed.on(EmbedEvent.VizPointDoubleClick, payload => {
2232
- * console.log('VizPointDoubleClick', payload)
2767
+ * console.log('VizPointDoubleClick', payload);
2233
2768
  * })
2234
2769
  * ```
2235
2770
  */
@@ -2242,7 +2777,7 @@ export declare enum EmbedEvent {
2242
2777
  * @important
2243
2778
  * @example
2244
2779
  * ```js
2245
- * embed.on(ThoughtSpotEmbed.Event.VizPointClick, ({data}) => {
2780
+ * embed.on(EmbedEvent.VizPointClick, ({data}) => {
2246
2781
  * console.log(
2247
2782
  * data.vizId, // viz id
2248
2783
  * data.clickedPoint.selectedAttributes[0].value,
@@ -2257,18 +2792,18 @@ export declare enum EmbedEvent {
2257
2792
  /**
2258
2793
  * An error has occurred. This event is fired for the following error types:
2259
2794
  *
2260
- * `API` - API call failure error.
2795
+ * API - API call failure error.
2261
2796
  *
2262
- * `FULLSCREEN` - Error when presenting a Liveboard or visualization in full screen
2797
+ * FULLSCREEN - Error when presenting a Liveboard or visualization in full screen
2263
2798
  * mode.
2264
2799
  *
2265
- * `SINGLE_VALUE_FILTER` - Error due to multiple values in the single value filter.
2800
+ * SINGLE_VALUE_FILTER - Error due to multiple values in the single value filter.
2266
2801
  *
2267
- * `NON_EXIST_FILTER` - Error due to a non-existent filter.
2802
+ * NON_EXIST_FILTER - Error due to a non-existent filter.
2268
2803
  *
2269
- * `INVALID_DATE_VALUE` - Invalid date value error.
2804
+ * INVALID_DATE_VALUE - Invalid date value error.
2270
2805
  *
2271
- * `INVALID_OPERATOR` - Use of invalid operator during filter application.
2806
+ * INVALID_OPERATOR - Use of invalid operator during filter application.
2272
2807
  *
2273
2808
  * For more information, see [Developer Documentation](https://developers.thoughtspot.com/docs/events-app-integration#errorType)
2274
2809
  *
@@ -2836,7 +3371,7 @@ export declare enum EmbedEvent {
2836
3371
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2837
3372
  * @example
2838
3373
  *```js
2839
- * liveboardEmbed.trigger(HostEvent.Delete,
3374
+ * liveboardEmbed.trigger(EmbedEvent.Delete,
2840
3375
  * {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
2841
3376
  *```
2842
3377
  */
@@ -2847,7 +3382,7 @@ export declare enum EmbedEvent {
2847
3382
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2848
3383
  * @example
2849
3384
  *```js
2850
- * liveboardEmbed.trigger(HostEvent.SchedulesList)
3385
+ * liveboardEmbed.trigger(EmbedEvent.SchedulesList)
2851
3386
  *```
2852
3387
  */
2853
3388
  SchedulesList = "schedule-list",
@@ -2857,7 +3392,7 @@ export declare enum EmbedEvent {
2857
3392
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2858
3393
  * @example
2859
3394
  *```js
2860
- * liveboardEmbed.trigger(HostEvent.Cancel)
3395
+ * liveboardEmbed.trigger(EmbedEvent.Cancel)
2861
3396
  *```
2862
3397
  */
2863
3398
  Cancel = "cancel",
@@ -2867,7 +3402,7 @@ export declare enum EmbedEvent {
2867
3402
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2868
3403
  * @example
2869
3404
  *```js
2870
- * liveboardEmbed.trigger(HostEvent.Explore, {
3405
+ * liveboardEmbed.trigger(EmbedEvent.Explore, {
2871
3406
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
2872
3407
  *```
2873
3408
  */
@@ -2878,7 +3413,7 @@ export declare enum EmbedEvent {
2878
3413
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2879
3414
  * @example
2880
3415
  *```js
2881
- * liveboardEmbed.trigger(HostEvent.CopyLink, {
3416
+ * liveboardEmbed.trigger(EmbedEvent.CopyLink, {
2882
3417
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
2883
3418
  *```
2884
3419
  */
@@ -3147,10 +3682,13 @@ export declare enum HostEvent {
3147
3682
  * _String_. The name of the column to filter on.
3148
3683
  * `operator`
3149
3684
  * Runtime filter operator to apply. For information,
3150
- * see [Runtime filter operators](https://developers.thoughtspot.com/docs/?pageid=runtime-filters#rtOperator).
3685
+ * see https://developers.thoughtspot.com/docs/?pageid=runtime-filters#rtOperator.
3151
3686
  * `values`
3152
3687
  * List of operands. Some operators such as EQ, LE allow a single value, whereas
3153
3688
  * operators such as BW and IN accept multiple operands.
3689
+ * **Note**: `HostEvent.UpdateRuntimeFilters` is not supported in
3690
+ * Search embedding (SearchEmbed) and Natural Language Search
3691
+ * embedding (SageEmbed).
3154
3692
  *
3155
3693
  * @param - {@link RuntimeFilter}[] an array of {@link RuntimeFilter} Types.
3156
3694
  * @example
@@ -3690,7 +4228,7 @@ export declare enum HostEvent {
3690
4228
  *
3691
4229
  * ```js
3692
4230
  * liveboardEmbed.trigger(HostEvent.UpdateFilters, {
3693
- * filter: { column: 'column name', oper: 'in', values: [1,2,3], is_mandatory: false }
4231
+ * filter: { column: 'column name', oper: 'IN', values: [1,2,3], is_mandatory: false }
3694
4232
  * })
3695
4233
  * ```
3696
4234
  * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
@@ -3776,7 +4314,33 @@ export declare enum HostEvent {
3776
4314
  * ```
3777
4315
  * @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
3778
4316
  */
3779
- AskSage = "AskSage"
4317
+ AskSage = "AskSage",
4318
+ /**
4319
+ * Trigger UpdateCrossFilter for Liveboard
4320
+ *
4321
+ * @example
4322
+ * ```js
4323
+ * liveboardEmbed.trigger(HostEvent.UpdateCrossFilter, {
4324
+ * vizId: 'b535c760-8bbe-4e6f-bb26-af56b4129a1e',
4325
+ * conditions: [
4326
+ * { columnName: 'Category', values: ['mfgr#12','mfgr#14'] },
4327
+ * { columnName: 'color', values: ['mint','hot'] },
4328
+ * ],
4329
+ * });
4330
+ * ```
4331
+ * @version SDK: 1.29.0 | Thoughtspot: 10.0.0.cl
4332
+ */
4333
+ UpdateCrossFilter = "UpdateCrossFilter",
4334
+ /**
4335
+ * Trigger ResetLiveboardPersonalisedView for Liveboard
4336
+ *
4337
+ * @example
4338
+ * ```js
4339
+ * liveboardEmbed.trigger(HostEvent.ResetLiveboardPersonalisedView);
4340
+ * ```
4341
+ * @version SDK: 1.29.0 | Thoughtspot: 10.1.0.cl
4342
+ */
4343
+ ResetLiveboardPersonalisedView = "ResetLiveboardPersonalisedView"
3780
4344
  }
3781
4345
  /**
3782
4346
  * The different visual modes that the data sources panel within
@@ -4742,6 +5306,36 @@ export declare enum Action {
4742
5306
  * @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
4743
5307
  */
4744
5308
  AskAi = "AskAi",
5309
+ /**
5310
+ * The **Add KPI to Watchlist** action on Home page watchlist.
5311
+ *
5312
+ * @example
5313
+ * ```js
5314
+ * disabledActions: [Action.AddToWatchlist]
5315
+ * ```
5316
+ * @version SDK : 1.27.9 | Thoughtspot: 9.12.5.cl
5317
+ */
5318
+ AddToWatchlist = "addToWatchlist",
5319
+ /**
5320
+ * The **Remove from watchlist** menu action on KPI watchlist.
5321
+ *
5322
+ * @example
5323
+ * ```js
5324
+ * disabledActions: [Action.RemoveFromWatchlist]
5325
+ * ```
5326
+ * @version SDK : 1.27.9 | Thoughtspot: 9.12.5.cl
5327
+ */
5328
+ RemoveFromWatchlist = "removeFromWatchlist",
5329
+ /**
5330
+ * The **Copy KPI Link** menu action on KPI watchlist.
5331
+ *
5332
+ * @example
5333
+ * ```js
5334
+ * disabledActions: [Action.CopyKpiLink]
5335
+ * ```
5336
+ * @version SDK : 1.27.9 | Thoughtspot: 9.12.5.cl
5337
+ */
5338
+ CopyKpiLink = "copyKpiLink",
4745
5339
  /**
4746
5340
  * Action ID for AI Highlights button
4747
5341
  *
@@ -4787,6 +5381,9 @@ export interface VizPoint {
4787
5381
  selectedAttributes: ColumnValue[];
4788
5382
  selectedMeasures: ColumnValue[];
4789
5383
  }
5384
+ /**
5385
+ * @group Events
5386
+ */
4790
5387
  export interface CustomActionPayload {
4791
5388
  contextMenuPoints?: {
4792
5389
  clickedPoint: VizPoint;
@@ -5080,7 +5677,7 @@ export declare class TsEmbed {
5080
5677
  *
5081
5678
  * @param args
5082
5679
  */
5083
- render(): TsEmbed;
5680
+ render(): Promise<TsEmbed>;
5084
5681
  getIframeSrc(): string;
5085
5682
  protected handleRenderForPrerender(): void;
5086
5683
  /**
@@ -5872,7 +6469,7 @@ export declare enum OperationType {
5872
6469
  GetChartWithData = "GetChartWithData",
5873
6470
  GetTableWithHeadlineData = "GetTableWithHeadlineData"
5874
6471
  }
5875
- interface UnderlyingDataPoint {
6472
+ export interface UnderlyingDataPoint {
5876
6473
  columnId: string;
5877
6474
  dataValue: any;
5878
6475
  }
@@ -5895,24 +6492,67 @@ interface UnderlyingDataPoint {
5895
6492
  * @group Events
5896
6493
  */
5897
6494
  export declare class AnswerService {
6495
+ /**
6496
+ * Should not need to be called directly.
6497
+ *
6498
+ * @param session
6499
+ * @param answer
6500
+ * @param thoughtSpotHost
6501
+ * @param selectedPoints
6502
+ */
5898
6503
  constructor(session: SessionInterface, answer: any, thoughtSpotHost: string, selectedPoints?: VizPoint[]);
6504
+ /**
6505
+ * Get the details about the source used in the answer.
6506
+ * This can be used to get the list of all columns in the data source for example.
6507
+ */
5899
6508
  getSourceDetail(): Promise<any>;
6509
+ /**
6510
+ * Remove columnIds and return updated answer session.
6511
+ *
6512
+ * @param columnIds
6513
+ * @returns
6514
+ */
5900
6515
  removeColumns(columnIds: string[]): Promise<any>;
6516
+ /**
6517
+ * Add columnIds and return updated answer session.
6518
+ *
6519
+ * @param columnIds
6520
+ * @returns
6521
+ */
5901
6522
  addColumns(columnIds: string[]): Promise<any>;
6523
+ /**
6524
+ * Fetch data from the answer.
6525
+ *
6526
+ * @param offset
6527
+ * @param size
6528
+ * @returns
6529
+ */
5902
6530
  fetchData(offset?: number, size?: number): Promise<{
5903
6531
  columns: any;
5904
6532
  data: any;
5905
6533
  }>;
5906
6534
  /**
6535
+ * Fetch the data for the answer as a CSV blob. This might be
6536
+ * quicker for larger data.
5907
6537
  *
5908
6538
  * @param userLocale
5909
6539
  * @param includeInfo Include the CSV header in the output
5910
6540
  * @returns Response
5911
6541
  */
5912
6542
  fetchCSVBlob(userLocale?: string, includeInfo?: boolean): Promise<Response>;
6543
+ /**
6544
+ * Just get the internal URL for this answer's data
6545
+ * as a CSV blob.
6546
+ *
6547
+ * @param userLocale
6548
+ * @param includeInfo
6549
+ * @returns
6550
+ */
5913
6551
  getFetchCSVBlobUrl(userLocale?: string, includeInfo?: boolean): string;
5914
6552
  /**
5915
6553
  * Get underlying data given a point and the output column names.
6554
+ * In case of a context menu action, the selectedPoints are
6555
+ * automatically passed.
5916
6556
  *
5917
6557
  * @param outputColumnNames
5918
6558
  * @param selectedPoints
@@ -5928,10 +6568,21 @@ export declare class AnswerService {
5928
6568
  * @version SDK: 1.25.0| ThoughtSpot: 9.10.0.cl
5929
6569
  */
5930
6570
  getUnderlyingDataForPoint(outputColumnNames: string[], selectedPoints?: UnderlyingDataPoint[]): Promise<AnswerService>;
6571
+ /**
6572
+ * Execute a custom graphql query in the context of the answer.
6573
+ *
6574
+ * @param query graphql query
6575
+ * @param variables graphql variables
6576
+ * @returns
6577
+ */
5931
6578
  executeQuery(query: string, variables: any): Promise<any>;
6579
+ /**
6580
+ * Get the internal session details for the answer.
6581
+ *
6582
+ * @returns
6583
+ */
5932
6584
  getSession(): SessionInterface;
5933
6585
  }
5934
- export {};
5935
6586
 
5936
6587
  /**
5937
6588
  * Gets the configuration embed was initialized with.
@@ -5951,3 +6602,45 @@ export declare const getEmbedConfig: () => EmbedConfig;
5951
6602
  */
5952
6603
  export declare const setEmbedConfig: (newConfig: EmbedConfig) => EmbedConfig;
5953
6604
 
6605
+ export declare const EndPoints: {
6606
+ CONFIG: string;
6607
+ };
6608
+ export declare const MIXPANEL_EVENT: {
6609
+ VISUAL_SDK_RENDER_START: string;
6610
+ VISUAL_SDK_CALLED_INIT: string;
6611
+ VISUAL_SDK_RENDER_COMPLETE: string;
6612
+ VISUAL_SDK_RENDER_FAILED: string;
6613
+ VISUAL_SDK_TRIGGER: string;
6614
+ VISUAL_SDK_ON: string;
6615
+ VISUAL_SDK_IFRAME_LOAD_PERFORMANCE: string;
6616
+ VISUAL_SDK_EMBED_CREATE: string;
6617
+ VERCEL_INTEGRATION_COMPLETED: string;
6618
+ };
6619
+ /**
6620
+ * Pushes the event with its Property key-value map to mixpanel.
6621
+ *
6622
+ * @param eventId
6623
+ * @param eventProps
6624
+ */
6625
+ export declare function uploadMixpanelEvent(eventId: string, eventProps?: {}): void;
6626
+ /**
6627
+ *
6628
+ * @param sessionInfo
6629
+ */
6630
+ export declare function initMixpanel(sessionInfo: any): void;
6631
+ /**
6632
+ *
6633
+ */
6634
+ export declare function testResetMixpanel(): void;
6635
+
6636
+ /**
6637
+ * Fetch wrapper that adds the authentication token to the request.
6638
+ * Use this to call the ThoughtSpot APIs when using the visual embed sdk.
6639
+ *
6640
+ * @param input
6641
+ * @param init
6642
+ * @version SDK: 1.28.0
6643
+ * @group Global methods
6644
+ */
6645
+ export declare const tokenizedFetch: typeof fetch;
6646
+