@thoughtspot/visual-embed-sdk 1.38.0 → 1.39.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 +1 -1
  3. package/cjs/src/embed/app.d.ts +96 -156
  4. package/cjs/src/embed/app.d.ts.map +1 -1
  5. package/cjs/src/embed/app.js +7 -4
  6. package/cjs/src/embed/app.js.map +1 -1
  7. package/cjs/src/embed/app.spec.js +10 -0
  8. package/cjs/src/embed/app.spec.js.map +1 -1
  9. package/cjs/src/embed/bodyless-conversation.d.ts +4 -4
  10. package/cjs/src/embed/bodyless-conversation.d.ts.map +1 -1
  11. package/cjs/src/embed/bodyless-conversation.js +1 -1
  12. package/cjs/src/embed/bodyless-conversation.js.map +1 -1
  13. package/cjs/src/embed/conversation.d.ts +22 -11
  14. package/cjs/src/embed/conversation.d.ts.map +1 -1
  15. package/cjs/src/embed/conversation.js +1 -1
  16. package/cjs/src/embed/conversation.js.map +1 -1
  17. package/cjs/src/embed/liveboard.d.ts +110 -167
  18. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  19. package/cjs/src/embed/liveboard.js +25 -11
  20. package/cjs/src/embed/liveboard.js.map +1 -1
  21. package/cjs/src/embed/liveboard.spec.js +11 -0
  22. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  23. package/cjs/src/embed/sage.d.ts +17 -2
  24. package/cjs/src/embed/sage.d.ts.map +1 -1
  25. package/cjs/src/embed/sage.js +2 -0
  26. package/cjs/src/embed/sage.js.map +1 -1
  27. package/cjs/src/embed/search-bar.d.ts +16 -6
  28. package/cjs/src/embed/search-bar.d.ts.map +1 -1
  29. package/cjs/src/embed/search-bar.js.map +1 -1
  30. package/cjs/src/embed/search.d.ts +46 -14
  31. package/cjs/src/embed/search.d.ts.map +1 -1
  32. package/cjs/src/embed/search.js.map +1 -1
  33. package/cjs/src/embed/ts-embed.d.ts +19 -2
  34. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  35. package/cjs/src/embed/ts-embed.js +49 -0
  36. package/cjs/src/embed/ts-embed.js.map +1 -1
  37. package/cjs/src/embed/ts-embed.spec.js +45 -4
  38. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  39. package/cjs/src/index.d.ts +2 -2
  40. package/cjs/src/index.d.ts.map +1 -1
  41. package/cjs/src/index.js +2 -1
  42. package/cjs/src/index.js.map +1 -1
  43. package/cjs/src/react/all-types-export.d.ts +1 -1
  44. package/cjs/src/react/all-types-export.d.ts.map +1 -1
  45. package/cjs/src/react/all-types-export.js +2 -1
  46. package/cjs/src/react/all-types-export.js.map +1 -1
  47. package/cjs/src/react/index.d.ts +1 -1
  48. package/cjs/src/react/index.d.ts.map +1 -1
  49. package/cjs/src/react/index.js +1 -1
  50. package/cjs/src/react/util.d.ts +7 -4
  51. package/cjs/src/react/util.d.ts.map +1 -1
  52. package/cjs/src/react/util.js.map +1 -1
  53. package/cjs/src/types.d.ts +482 -251
  54. package/cjs/src/types.d.ts.map +1 -1
  55. package/cjs/src/types.js +31 -14
  56. package/cjs/src/types.js.map +1 -1
  57. package/cjs/src/utils/graphql/answerService/answerService.d.ts +2 -1
  58. package/cjs/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  59. package/cjs/src/utils/graphql/answerService/answerService.js +2 -1
  60. package/cjs/src/utils/graphql/answerService/answerService.js.map +1 -1
  61. package/cjs/src/utils/processData.d.ts.map +1 -1
  62. package/cjs/src/utils/processData.js +15 -0
  63. package/cjs/src/utils/processData.js.map +1 -1
  64. package/cjs/src/utils/processData.spec.js +15 -0
  65. package/cjs/src/utils/processData.spec.js.map +1 -1
  66. package/cjs/src/utils/processTrigger.d.ts.map +1 -1
  67. package/cjs/src/utils/processTrigger.js +14 -0
  68. package/cjs/src/utils/processTrigger.js.map +1 -1
  69. package/cjs/src/utils/processTrigger.spec.js +54 -0
  70. package/cjs/src/utils/processTrigger.spec.js.map +1 -1
  71. package/cjs/src/utils.d.ts +11 -2
  72. package/cjs/src/utils.d.ts.map +1 -1
  73. package/cjs/src/utils.js +70 -1
  74. package/cjs/src/utils.js.map +1 -1
  75. package/cjs/src/utils.spec.js +85 -0
  76. package/cjs/src/utils.spec.js.map +1 -1
  77. package/dist/{index-BIcnpmMY.js → index-sSREbWM-.js} +1 -1
  78. package/dist/src/embed/app.d.ts +96 -156
  79. package/dist/src/embed/app.d.ts.map +1 -1
  80. package/dist/src/embed/bodyless-conversation.d.ts +4 -4
  81. package/dist/src/embed/bodyless-conversation.d.ts.map +1 -1
  82. package/dist/src/embed/conversation.d.ts +22 -11
  83. package/dist/src/embed/conversation.d.ts.map +1 -1
  84. package/dist/src/embed/liveboard.d.ts +110 -167
  85. package/dist/src/embed/liveboard.d.ts.map +1 -1
  86. package/dist/src/embed/sage.d.ts +17 -2
  87. package/dist/src/embed/sage.d.ts.map +1 -1
  88. package/dist/src/embed/search-bar.d.ts +16 -6
  89. package/dist/src/embed/search-bar.d.ts.map +1 -1
  90. package/dist/src/embed/search.d.ts +46 -14
  91. package/dist/src/embed/search.d.ts.map +1 -1
  92. package/dist/src/embed/ts-embed.d.ts +19 -2
  93. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  94. package/dist/src/index.d.ts +2 -2
  95. package/dist/src/index.d.ts.map +1 -1
  96. package/dist/src/react/all-types-export.d.ts +1 -1
  97. package/dist/src/react/all-types-export.d.ts.map +1 -1
  98. package/dist/src/react/index.d.ts +1 -1
  99. package/dist/src/react/index.d.ts.map +1 -1
  100. package/dist/src/react/util.d.ts +7 -4
  101. package/dist/src/react/util.d.ts.map +1 -1
  102. package/dist/src/types.d.ts +482 -251
  103. package/dist/src/types.d.ts.map +1 -1
  104. package/dist/src/utils/graphql/answerService/answerService.d.ts +2 -1
  105. package/dist/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  106. package/dist/src/utils/processData.d.ts.map +1 -1
  107. package/dist/src/utils/processTrigger.d.ts.map +1 -1
  108. package/dist/src/utils.d.ts +11 -2
  109. package/dist/src/utils.d.ts.map +1 -1
  110. package/dist/tsembed-react.es.js +3498 -3322
  111. package/dist/tsembed-react.js +3497 -3321
  112. package/dist/tsembed.es.js +213 -37
  113. package/dist/tsembed.js +216 -40
  114. package/dist/visual-embed-sdk-react-full.d.ts +845 -655
  115. package/dist/visual-embed-sdk-react.d.ts +845 -655
  116. package/dist/visual-embed-sdk.d.ts +827 -640
  117. package/lib/package.json +1 -1
  118. package/lib/src/embed/app.d.ts +96 -156
  119. package/lib/src/embed/app.d.ts.map +1 -1
  120. package/lib/src/embed/app.js +7 -4
  121. package/lib/src/embed/app.js.map +1 -1
  122. package/lib/src/embed/app.spec.js +10 -0
  123. package/lib/src/embed/app.spec.js.map +1 -1
  124. package/lib/src/embed/bodyless-conversation.d.ts +4 -4
  125. package/lib/src/embed/bodyless-conversation.d.ts.map +1 -1
  126. package/lib/src/embed/bodyless-conversation.js +1 -1
  127. package/lib/src/embed/bodyless-conversation.js.map +1 -1
  128. package/lib/src/embed/conversation.d.ts +22 -11
  129. package/lib/src/embed/conversation.d.ts.map +1 -1
  130. package/lib/src/embed/conversation.js +1 -1
  131. package/lib/src/embed/conversation.js.map +1 -1
  132. package/lib/src/embed/liveboard.d.ts +110 -167
  133. package/lib/src/embed/liveboard.d.ts.map +1 -1
  134. package/lib/src/embed/liveboard.js +25 -11
  135. package/lib/src/embed/liveboard.js.map +1 -1
  136. package/lib/src/embed/liveboard.spec.js +11 -0
  137. package/lib/src/embed/liveboard.spec.js.map +1 -1
  138. package/lib/src/embed/sage.d.ts +17 -2
  139. package/lib/src/embed/sage.d.ts.map +1 -1
  140. package/lib/src/embed/sage.js +2 -0
  141. package/lib/src/embed/sage.js.map +1 -1
  142. package/lib/src/embed/search-bar.d.ts +16 -6
  143. package/lib/src/embed/search-bar.d.ts.map +1 -1
  144. package/lib/src/embed/search-bar.js.map +1 -1
  145. package/lib/src/embed/search.d.ts +46 -14
  146. package/lib/src/embed/search.d.ts.map +1 -1
  147. package/lib/src/embed/search.js.map +1 -1
  148. package/lib/src/embed/ts-embed.d.ts +19 -2
  149. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  150. package/lib/src/embed/ts-embed.js +49 -0
  151. package/lib/src/embed/ts-embed.js.map +1 -1
  152. package/lib/src/embed/ts-embed.spec.js +45 -4
  153. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  154. package/lib/src/index.d.ts +2 -2
  155. package/lib/src/index.d.ts.map +1 -1
  156. package/lib/src/index.js +2 -2
  157. package/lib/src/index.js.map +1 -1
  158. package/lib/src/react/all-types-export.d.ts +1 -1
  159. package/lib/src/react/all-types-export.d.ts.map +1 -1
  160. package/lib/src/react/all-types-export.js +1 -1
  161. package/lib/src/react/all-types-export.js.map +1 -1
  162. package/lib/src/react/index.d.ts +1 -1
  163. package/lib/src/react/index.d.ts.map +1 -1
  164. package/lib/src/react/index.js +1 -1
  165. package/lib/src/react/util.d.ts +7 -4
  166. package/lib/src/react/util.d.ts.map +1 -1
  167. package/lib/src/react/util.js.map +1 -1
  168. package/lib/src/types.d.ts +482 -251
  169. package/lib/src/types.d.ts.map +1 -1
  170. package/lib/src/types.js +31 -14
  171. package/lib/src/types.js.map +1 -1
  172. package/lib/src/utils/graphql/answerService/answerService.d.ts +2 -1
  173. package/lib/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  174. package/lib/src/utils/graphql/answerService/answerService.js +2 -1
  175. package/lib/src/utils/graphql/answerService/answerService.js.map +1 -1
  176. package/lib/src/utils/processData.d.ts.map +1 -1
  177. package/lib/src/utils/processData.js +15 -0
  178. package/lib/src/utils/processData.js.map +1 -1
  179. package/lib/src/utils/processData.spec.js +15 -0
  180. package/lib/src/utils/processData.spec.js.map +1 -1
  181. package/lib/src/utils/processTrigger.d.ts.map +1 -1
  182. package/lib/src/utils/processTrigger.js +14 -0
  183. package/lib/src/utils/processTrigger.js.map +1 -1
  184. package/lib/src/utils/processTrigger.spec.js +54 -0
  185. package/lib/src/utils/processTrigger.spec.js.map +1 -1
  186. package/lib/src/utils.d.ts +11 -2
  187. package/lib/src/utils.d.ts.map +1 -1
  188. package/lib/src/utils.js +67 -0
  189. package/lib/src/utils.js.map +1 -1
  190. package/lib/src/utils.spec.js +86 -1
  191. package/lib/src/utils.spec.js.map +1 -1
  192. package/lib/src/visual-embed-sdk.d.ts +836 -649
  193. package/package.json +1 -1
  194. package/src/embed/app.spec.ts +14 -0
  195. package/src/embed/app.ts +98 -153
  196. package/src/embed/bodyless-conversation.ts +4 -4
  197. package/src/embed/conversation.ts +23 -12
  198. package/src/embed/liveboard.spec.ts +15 -0
  199. package/src/embed/liveboard.ts +142 -182
  200. package/src/embed/sage.ts +17 -5
  201. package/src/embed/search-bar.tsx +16 -17
  202. package/src/embed/search.ts +47 -21
  203. package/src/embed/ts-embed.spec.ts +52 -4
  204. package/src/embed/ts-embed.ts +61 -6
  205. package/src/index.ts +2 -0
  206. package/src/react/all-types-export.ts +1 -0
  207. package/src/react/index.tsx +3 -3
  208. package/src/react/util.ts +6 -4
  209. package/src/types.ts +488 -253
  210. package/src/utils/graphql/answerService/answerService.ts +5 -4
  211. package/src/utils/processData.spec.ts +28 -0
  212. package/src/utils/processData.ts +17 -0
  213. package/src/utils/processTrigger.spec.ts +90 -0
  214. package/src/utils/processTrigger.ts +16 -1
  215. package/src/utils.spec.ts +113 -0
  216. package/src/utils.ts +78 -2
@@ -79,7 +79,7 @@ export declare enum AuthType {
79
79
  * // ...
80
80
  * authType: AuthType.SAMLRedirect,
81
81
  * authTriggerText: 'Login with SAML',
82
- * authTriggerContainer: '#embed-container',
82
+ * authTriggerContainer: '#tsEmbed',
83
83
  * inPopup: true,
84
84
  * });
85
85
  * ```
@@ -204,13 +204,13 @@ export declare enum HomeLeftNavItem {
204
204
  /**
205
205
  * Create new options in the insights left navigation,
206
206
  * available when new navigation V3 is enabled.
207
- * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
207
+ * @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
208
208
  */
209
209
  Create = "create",
210
210
  /**
211
211
  * Spotter option in the insights left navigation,
212
212
  * available when new navigation V3 is enabled.
213
- * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
213
+ * @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
214
214
  */
215
215
  Spotter = "spotter"
216
216
  }
@@ -618,6 +618,20 @@ export interface EmbedConfig {
618
618
  */
619
619
  customVariablesForThirdPartyTools?: Record<string, any>;
620
620
  disablePreauthCache?: boolean;
621
+ /**
622
+ * Disable fullscreen presentation mode functionality. When enabled, prevents entering
623
+ * and exiting fullscreen mode for embedded visualizations during presentations.
624
+ * @default true (feature is disabled by default)
625
+ * @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
626
+ * @example
627
+ * ```js
628
+ * init({
629
+ * ... // other embed config options
630
+ * disableFullscreenPresentation: false, // enables the feature
631
+ * })
632
+ * ```
633
+ */
634
+ disableFullscreenPresentation?: boolean;
621
635
  }
622
636
  export interface LayoutConfig {
623
637
  }
@@ -647,9 +661,9 @@ export interface FrameParams {
647
661
  [key: string]: string | number | boolean | undefined;
648
662
  }
649
663
  /**
650
- * The configuration object for an embedded view.
664
+ * The common configuration object for an embedded view.
651
665
  */
652
- export interface ViewConfig {
666
+ export interface BaseViewConfig {
653
667
  /**
654
668
  * @hidden
655
669
  */
@@ -657,16 +671,19 @@ export interface ViewConfig {
657
671
  /**
658
672
  * The width and height dimensions to render an embedded
659
673
  * object inside your app. Specify the values in pixels or percentage.
674
+ *
675
+ * Supported embed types: `AppEmbed`, `LiveboardEmbed`, `SageEmbed`, `SearchEmbed`, `SpotterAgentEmbed`, `SpotterEmbed`, `SearchBarEmbed`
660
676
  * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1
661
677
  * @example
662
678
  * ```js
663
- * const embed = new LiveboardEmbed('#embed', {
664
- * ... // other liveboard view config
665
- * frameParams: {
666
- * width: '500px' | '50%',
667
- * height: '400px' | '60%',
668
- * },
669
- * });
679
+ * // Replace <EmbedComponent> with embed component name. For example, AppEmbed, SearchEmbed, or LiveboardEmbed
680
+ * const embed = new <EmbedComponent>('#tsEmbed', {
681
+ * ... // other embed view config
682
+ * frameParams: {
683
+ * width: '500px' | '50%',
684
+ * height: '400px' | '60%',
685
+ * },
686
+ * })
670
687
  * ```
671
688
  */
672
689
  frameParams?: FrameParams;
@@ -683,38 +700,31 @@ export interface ViewConfig {
683
700
  * (...), and the contextual menu. These actions will be disabled
684
701
  * for the user.
685
702
  * Use this to disable actions.
703
+ *
704
+ * Supported embed types: `AppEmbed`, `LiveboardEmbed`, `SageEmbed`, `SearchEmbed`, `SpotterAgentEmbed`, `SpotterEmbed`, `SearchBarEmbed`
686
705
  * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
687
706
  * @example
688
707
  * ```js
689
- * const embed = new LiveboardEmbed('#embed', {
690
- * ... // other liveboard view config
691
- * disabledActions: [Action.Download, Action.Save]
708
+ * // Replace <EmbedComponent> with embed component name. For example, AppEmbed, SearchEmbed, or LiveboardEmbed
709
+ * const embed = new <EmbedComponent>('#tsEmbed', {
710
+ * ... // other embed view config
711
+ * disabledActions: [Action.Download, Action.Save],
692
712
  * });
693
713
  * ```
694
714
  */
695
715
  disabledActions?: Action[];
696
- /**
697
- * The primary action to display on top of the viz for Liveboard and App Embed.
698
- * Use this to set the primary action.
699
- * @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
700
- * @example
701
- * ```js
702
- * const embed = new LiveboardEmbed('#embed', {
703
- * ... // other liveboard view config
704
- * primaryAction: Action.Download
705
- * });
706
- * ```
707
- */
708
- primaryAction?: Action | string;
709
716
  /**
710
717
  * The tooltip to display for disabled actions.
718
+ *
719
+ * Supported embed types: `AppEmbed`, `LiveboardEmbed`, `SageEmbed`, `SearchEmbed`, `SpotterAgentEmbed`, `SpotterEmbed`, `SearchBarEmbed`
711
720
  * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
712
721
  * @example
713
722
  * ```js
714
- * const embed = new LiveboardEmbed('#embed', {
715
- * ... // other liveboard view config
716
- * disabledActions: [Action.Download, Action.Save]
717
- * disabledActionReason: "Reason for disabling",
723
+ * // Replace <EmbedComponent> with embed component name. For example, AppEmbed, SearchEmbed, or LiveboardEmbed
724
+ * const embed = new <EmbedComponent>('#tsEmbed', {
725
+ * ... // other embed view config
726
+ * disabledActions: [Action.Download, Action.Save],
727
+ * disabledActionReason: "Reason for disabling",
718
728
  * });
719
729
  * ```
720
730
  */
@@ -723,12 +733,15 @@ export interface ViewConfig {
723
733
  * The list of actions to hide from the embedded.
724
734
  * This actions will be hidden from the user.
725
735
  * Use this to hide an action.
736
+ *
737
+ * Supported embed types: `AppEmbed`, `LiveboardEmbed`, `SageEmbed`, `SearchEmbed`, `SpotterAgentEmbed`, `SpotterEmbed`, `SearchBarEmbed`
726
738
  * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
727
739
  * @example
728
740
  * ```js
729
- * const embed = new LiveboardEmbed('#embed', {
730
- * ... // other liveboard view config
731
- * hiddenActions: [Action.Download, Action.Export]
741
+ * // Replace <EmbedComponent> with embed component name. For example, AppEmbed, SearchEmbed, or LiveboardEmbed
742
+ * const embed = new <EmbedComponent>('#tsEmbed', {
743
+ * ... // other embed view config
744
+ * hiddenActions: [Action.Download, Action.Export],
732
745
  * });
733
746
  * ```
734
747
  * @important
@@ -741,74 +754,30 @@ export interface ViewConfig {
741
754
  * Use this to hide all actions except the ones you want to show.
742
755
  *
743
756
  * Use either this or hiddenActions.
757
+ *
758
+ * Supported embed types: `AppEmbed`, `LiveboardEmbed`, `SageEmbed`, `SearchEmbed`, `SpotterAgentEmbed`, `SpotterEmbed`, `SearchBarEmbed`
744
759
  * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
745
760
  * @important
746
761
  * @example
747
762
  * ```js
748
- * const embed = new LiveboardEmbed('#embed', {
749
- * ... // other liveboard view config
750
- * visibleActions: [Action.Download, Action.Export]
763
+ * // Replace <EmbedComponent> with embed component name. For example, AppEmbed, SearchEmbed, or LiveboardEmbed
764
+ * const embed = new <EmbedComponent>('#tsEmbed', {
765
+ * ... // other embed view config
766
+ * visibleActions: [Action.Download, Action.Export],
751
767
  * });
752
768
  * ```
753
769
  */
754
770
  visibleActions?: Action[];
755
- /**
756
- * Show alert messages and toast messages in the embedded
757
- * view in full app embed.
758
- * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
759
- * @example
760
- * ```js
761
- * const embed = new AppEmbed('#embed-container', {
762
- * ... // other options
763
- * showAlerts:true,
764
- * })
765
- * ```
766
- */
767
- showAlerts?: boolean;
768
- /**
769
- * The list of runtime filters to apply to a search Answer,
770
- * visualization, or Liveboard.
771
- * @version SDK: 1.9.4 | ThoughtSpot 8.1.0.cl, 8.4.1.sw
772
- * @example
773
- * ```js
774
- * const embed = new LiveboardEmbed('#embed-container', {
775
- * ... // other options
776
- * runtimeFilters: [
777
- * {
778
- * columnName: 'value',
779
- * operator: RuntimeFilterOp.EQ,
780
- * values: ['string' | 123 | true],
781
- * },
782
- * ],
783
- * })
784
- * ```
785
- */
786
- runtimeFilters?: RuntimeFilter[];
787
- /**
788
- * The list of parameter override to apply to a search Answer,
789
- * visualization, or Liveboard.
790
- * @version SDK : 1.25.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
791
- * @example
792
- * ```js
793
- * const embed = new LiveboardEmbed('#embed-container', {
794
- * ... // other options
795
- * runtimeParameters: [
796
- * {
797
- * name: 'value',
798
- * value: 'string' | 123 | true,
799
- * },
800
- * ],
801
- * })
802
- * ```
803
- */
804
- runtimeParameters?: RuntimeParameter[];
805
771
  /**
806
772
  * The locale settings to apply to the embedded view.
773
+ *
774
+ * Supported embed types: `AppEmbed`, `LiveboardEmbed`, `SageEmbed`, `SearchEmbed`, `SpotterAgentEmbed`, `SpotterEmbed`, `SearchBarEmbed`
807
775
  * @version SDK: 1.9.4 | ThoughtSpot 8.1.0.cl, 8.4.1.sw
808
776
  * @example
809
777
  * ```js
810
- * const embed = new LiveboardEmbed('#embed-container', {
811
- * ... // other options
778
+ * // Replace <EmbedComponent> with embed component name. For example, AppEmbed, SearchEmbed, or LiveboardEmbed
779
+ * const embed = new <EmbedComponent>('#tsEmbed', {
780
+ * ... // other embed view config
812
781
  * locale:'en',
813
782
  * })
814
783
  * ```
@@ -822,14 +791,17 @@ export interface ViewConfig {
822
791
  * Warning: This option is for advanced use only and is used internally
823
792
  * to control embed behavior in non-regular ways. We do not publish the
824
793
  * list of supported keys and values associated with each.
794
+ *
795
+ * Supported embed types: `AppEmbed`, `LiveboardEmbed`, `SageEmbed`, `SearchEmbed`, `SpotterAgentEmbed`, `SpotterEmbed`, `SearchBarEmbed`
825
796
  * @example
826
797
  * ```js
827
- * const embed = new LiveboardEmbed('#embed', {
828
- * ... // other liveboard view config
798
+ * // Replace <EmbedComponent> with embed component name. For example, AppEmbed, SearchEmbed, or LiveboardEmbed
799
+ * const embed = new <EmbedComponent>('#tsEmbed', {
800
+ * ... // other embed view config
829
801
  * additionalFlags: {
830
802
  * flag1: 'value1',
831
803
  * flag2: 'value2'
832
- * }
804
+ * },
833
805
  * });
834
806
  * ```
835
807
  * @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
@@ -847,82 +819,187 @@ export interface ViewConfig {
847
819
  /**
848
820
  * Insert as a sibling of the target container, instead of appending to a
849
821
  * child inside it.
822
+ *
823
+ * Supported embed types: `AppEmbed`, `LiveboardEmbed`, `SageEmbed`, `SearchEmbed`, `SpotterAgentEmbed`, `SpotterEmbed`, `SearchBarEmbed`
850
824
  * @version SDK: 1.2.0 | ThoughtSpot: 9.0.0.cl, 9.0.0.sw
851
825
  * @example
852
826
  * ```js
853
- * const embed = new LiveboardEmbed('#embed-container', {
854
- * ... // other options
827
+ * // Replace <EmbedComponent> with embed component name. For example, AppEmbed, SearchEmbed, or LiveboardEmbed
828
+ * const embed = new <EmbedComponent>('#tsEmbed', {
829
+ * ... // other embed view config
855
830
  * insertAsSibling:true,
856
831
  * })
857
832
  * ```
858
833
  */
859
834
  insertAsSibling?: boolean;
860
835
  /**
861
- * flag to set ContextMenu Trigger to either left or right click.
836
+ * Use a pre-rendered iframe from a pool of pre-rendered iframes
837
+ * if available and matches the configuration.
838
+ * @version SDK: 1.22.0
839
+ * @hidden
840
+ *
841
+ * See [docs]() on how to create a prerender pool.
842
+ */
843
+ usePrerenderedIfAvailable?: boolean;
844
+ /**
845
+ * PreRender id to be used for PreRendering the embed.
846
+ * Use PreRender to render the embed in the background and then
847
+ * show or hide the rendered embed using showPreRender or hidePreRender respectively.
848
+ *
849
+ * Supported embed types: `AppEmbed`, `LiveboardEmbed`, `SageEmbed`, `SearchEmbed`, `SpotterAgentEmbed`, `SpotterEmbed`, `SearchBarEmbed`
862
850
  * @example
863
851
  * ```js
864
- * const embed = new LiveboardEmbed('#tsEmbed', {
865
- * ... // other options
866
- * contextMenuTrigger:ContextMenuTriggerOptions.LEFT_CLICK || RIGHT_CLICK,
867
- * })
852
+ * // Replace <EmbedComponent> with embed component name. For example, AppEmbed, SearchEmbed, or LiveboardEmbed
853
+ * const embed = new <EmbedComponent>('#tsEmbed', {
854
+ * ... // other embed view config
855
+ * preRenderId: "preRenderId-123",
856
+ * });
857
+ * embed.showPreRender();
868
858
  * ```
869
- * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
859
+ * @version SDK: 1.25.0 | ThoughtSpot: 9.6.0.cl, 9.8.0.sw
870
860
  */
871
- contextMenuTrigger?: ContextMenuTriggerOptions;
861
+ preRenderId?: string;
862
+ /**
863
+ * Determines if the PreRender component should dynamically track the size
864
+ * of its embedding element and adjust its own size accordingly.
865
+ * Enabling this option allows the PreRender component to automatically adapt
866
+ * its dimensions based on changes to the size of the embedding element.
867
+ * @type {boolean}
868
+ * @default false
869
+ * @version SDK: 1.24.0 | ThoughtSpot:9.4.0.cl, 9.4.0.sw
870
+ * @example
871
+ * ```js
872
+ * // Disable tracking PreRender size in the configuration
873
+ * const config = {
874
+ * doNotTrackPreRenderSize: true,
875
+ * };
876
+ *
877
+ * // Instantiate an object with the configuration
878
+ * const myComponent = new MyComponent(config);
879
+ * ```
880
+ */
881
+ doNotTrackPreRenderSize?: boolean;
882
+ /**
883
+ * Enable the V2 shell. This can provide performance benefits
884
+ * due to a lighterweight shell.
885
+ *
886
+ * Supported embed types: `AppEmbed`, `LiveboardEmbed`, `SageEmbed`, `SearchEmbed`, `SpotterAgentEmbed`, `SpotterEmbed`, `SearchBarEmbed`
887
+ * @example
888
+ * ```js
889
+ * // Replace <EmbedComponent> with embed component name. For example, AppEmbed, SearchEmbed, or LiveboardEmbed
890
+ * const embed = new <EmbedComponent>('#tsEmbed', {
891
+ * ... // other embed view config
892
+ * enableV2Shell_experimental: true,
893
+ * });
894
+ * ```
895
+ * @version SDK: 1.31.2 | ThoughtSpot: 10.0.0.cl
896
+ */
897
+ enableV2Shell_experimental?: boolean;
898
+ /**
899
+ * For internal tracking of the embed component type.
900
+ * @hidden
901
+ */
902
+ embedComponentType?: string;
903
+ /**
904
+ * This flag can be used to expose translation IDs on the embedded app.
905
+ * @default false
906
+ * @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
907
+ */
908
+ exposeTranslationIDs?: boolean;
909
+ /**
910
+ * This flag can be used to disable links inside the embedded app,
911
+ * and disable redirection of links in a new tab.
912
+ *
913
+ * Supported embed types: `AppEmbed`, `LiveboardEmbed`, `SageEmbed`, `SearchEmbed`, `SpotterAgentEmbed`, `SpotterEmbed`, `SearchBarEmbed`
914
+ * @example
915
+ * ```js
916
+ * // Replace <EmbedComponent> with embed component name. For example, AppEmbed, SearchEmbed, or LiveboardEmbed
917
+ * const embed = new <EmbedComponent>('#tsEmbed', {
918
+ * ... // other embed view config
919
+ * disableRedirectionLinksInNewTab: true,
920
+ * });
921
+ * ```
922
+ * @version SDK: 1.32.1 | ThoughtSpot: 10.3.0.cl
923
+ */
924
+ disableRedirectionLinksInNewTab?: boolean;
925
+ /**
926
+ * Overrides an Org context for embedding application users.
927
+ * This parameter allows a user authenticated to one Org to view the
928
+ * objects from another Org.
929
+ * The `overrideOrgId` setting is honoured only if the
930
+ * Per Org URL feature is enabled on your ThoughtSpot instance.
931
+ *
932
+ * Supported embed types: `AppEmbed`, `LiveboardEmbed`, `SageEmbed`, `SearchEmbed`, `SpotterAgentEmbed`, `SpotterEmbed`, `SearchBarEmbed`
933
+ * @example
934
+ * ```js
935
+ * // Replace <EmbedComponent> with embed component name. For example, AppEmbed, SearchEmbed, or LiveboardEmbed
936
+ * const embed = new <EmbedComponent>('#tsEmbed', {
937
+ * ... // other embed view config
938
+ * overrideOrgId: 142536,
939
+ * });
940
+ * ```
941
+ * @version SDK: 1.35.0 | ThoughtSpot: 10.5.0.cl
942
+ */
943
+ overrideOrgId?: number;
872
944
  /**
873
945
  * Flag to override the *Open Link in New Tab* context menu option.
946
+ *
947
+ * Supported embed types: `AppEmbed`, `LiveboardEmbed`, `SageEmbed`, `SearchEmbed`, `SpotterAgentEmbed`, `SpotterEmbed`, `SearchBarEmbed`
874
948
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
875
949
  * @example
876
950
  * ```js
877
- * const embed = new LiveboardEmbed('#embed-container', {
878
- * ... // other options
951
+ * // Replace <EmbedComponent> with embed component name. For example, AppEmbed, SearchEmbed, or LiveboardEmbed
952
+ * const embed = new <EmbedComponent>('#tsEmbed', {
953
+ * ... // other embed view config
879
954
  * linkOverride:false,
880
955
  * })
881
956
  * ```
882
957
  */
883
958
  linkOverride?: boolean;
959
+ /**
960
+ * The primary action to display on top of the viz for Liveboard and App Embed.
961
+ * Use this to set the primary action.
962
+ *
963
+ * Supported embed types: `AppEmbed`, `LiveboardEmbed`
964
+ * @version SDK: 1.39.0 | ThoughtSpot: 10.11.0.cl
965
+ * @example
966
+ * ```js
967
+ * // Replace <EmbedComponent> with embed component name. For example, AppEmbed or LiveboardEmbed
968
+ * const embed = new <EmbedComponent>('#tsEmbed', {
969
+ * ... // other embed view config
970
+ * primaryAction: Action.Download
971
+ * });
972
+ * ```
973
+ */
974
+ primaryAction?: Action | string;
884
975
  /**
885
976
  * flag to enable insert into slides action
886
977
  * @hidden
887
978
  * @private
888
979
  */
889
980
  insertInToSlide?: boolean;
981
+ }
982
+ /**
983
+ * The configuration object for Home page embeds configs.
984
+ */
985
+ export interface HomePageConfig {
890
986
  /**
891
- * Use a pre-rendered iframe from a pool of pre-rendered iframes
892
- * if available and matches the configuration.
893
- * @version SDK: 1.22.0
894
- * @hidden
987
+ * Hide list page columns
988
+ * For example: hiddenListColumns = [ListPageColumns.Author]
895
989
  *
896
- * See [docs]() on how to create a prerender pool.
897
- */
898
- usePrerenderedIfAvailable?: boolean;
899
- /**
900
- * Boolean to exclude runtimeFilters in the URL
901
- * By default it is true, this flag removes runtime filters from the URL
902
- * when set to false, runtime filters will be included in the URL.
990
+ * **Note**: This option is available only in full app embedding.
903
991
  *
904
- * Irrespective of this flag, runtime filters ( if passed ) will be applied to the
905
- * embedded view.
906
- * @default false
907
- * @version SDK: 1.24.0 | ThoughtSpot: 9.5.0.cl
908
- */
909
- excludeRuntimeFiltersfromURL?: boolean;
910
- /**
911
- * The list of tab IDs to hide from the embedded.
912
- * This Tabs will be hidden from their respective LBs.
913
- * Use this to hide an tabID.
992
+ * Supported embed types: `AppEmbed`
993
+ * @version SDK: 1.38.0 | ThoughtSpot: 10.9.0.cl
914
994
  * @example
915
995
  * ```js
916
- * const embed = new LiveboardEmbed('#embed', {
917
- * ... // other liveboard view config
918
- * hiddenTabs: [
919
- * '430496d6-6903-4601-937e-2c691821af3c',
920
- * 'f547ec54-2a37-4516-a222-2b06719af726']
921
- * });
996
+ * const embed = new AppEmbed('#tsEmbed', {
997
+ * ... //other embed view config
998
+ * hiddenListColumns : [ListPageColumns.Favorite,ListPageColumns.Author],
999
+ * })
922
1000
  * ```
923
- * @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 10.1.0.sw
924
1001
  */
925
- hiddenTabs?: string[];
1002
+ hiddenListColumns?: ListPageColumns[];
926
1003
  /**
927
1004
  * Hide the home page modules
928
1005
  * For example: hiddenHomepageModules = [HomepageModule.MyLibrary]
@@ -930,11 +1007,13 @@ export interface ViewConfig {
930
1007
  * **Note**: This option does not apply to the classic homepage.
931
1008
  * To access the updated modular homepage, set
932
1009
  * `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
1010
+ *
1011
+ * Supported embed types: `AppEmbed`
933
1012
  * @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl, 10.1.0.sw
934
1013
  * @example
935
1014
  * ```js
936
1015
  * const embed = new AppEmbed('#tsEmbed', {
937
- * ... // other options
1016
+ * ... //other embed view config
938
1017
  * hiddenHomepageModules : [HomepageModule.Favorite,HomepageModule.Learning],
939
1018
  * })
940
1019
  * ```
@@ -947,42 +1026,28 @@ export interface ViewConfig {
947
1026
  * **Note**: This option does not apply to the classic homepage.
948
1027
  * To access the updated modular homepage, set
949
1028
  * `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
1029
+ *
1030
+ * Supported embed types: `AppEmbed`
950
1031
  * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl, 10.1.0.sw
951
1032
  * @example
952
1033
  * ```js
953
1034
  * const embed = new AppEmbed('#tsEmbed', {
954
- * ... // other options
955
- * reorderedHomepageModules:[HomepageModule.Favorite,HomepageModule.MyLibrary]
1035
+ * ... //other embed view config
1036
+ * reorderedHomepageModules:[HomepageModule.Favorite,HomepageModule.MyLibrary],
956
1037
  * })
957
1038
  * ```
958
1039
  */
959
1040
  reorderedHomepageModules?: HomepageModule[];
960
- /**
961
- * The list of tab IDs to show in the embedded Liveboard.
962
- * Only the tabs specified in the array will be shown in the Liveboard.
963
- *
964
- * Use either `visibleTabs` or `hiddenTabs`.
965
- * @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 10.1.0.sw
966
- * @example
967
- * ```js
968
- * const embed = new LiveboardEmbed('#embed-container', {
969
- * ... // other options
970
- * visibleTabs: [
971
- * '430496d6-6903-4601-937e-2c691821af3c',
972
- * 'f547ec54-2a37-4516-a222-2b06719af726'
973
- * ]
974
- * })
975
- * ```
976
- */
977
- visibleTabs?: string[];
978
1041
  /**
979
1042
  * homepageLeftNavItems : Show or hide the left navigation bar items.
980
1043
  * There are 8 eight home navigation list items.
981
1044
  * To hide these items, specify the string in the array.
1045
+ *
1046
+ * Supported embed types: `AppEmbed`
982
1047
  * @example
983
1048
  * ```js
984
1049
  * const embed = new AppEmbed('#tsEmbed', {
985
- * ... // other options
1050
+ * ... //other embed view config
986
1051
  * hiddenHomeLeftNavItems : [HomeLeftNavItem.Home,HomeLeftNavItem.Answers],
987
1052
  * })
988
1053
  * ```
@@ -993,46 +1058,80 @@ export interface ViewConfig {
993
1058
  * @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl, 10.1.0.sw
994
1059
  */
995
1060
  hiddenHomeLeftNavItems?: HomeLeftNavItem[];
1061
+ }
1062
+ /**
1063
+ * The configuration object for common Search and Liveboard embeds configs.
1064
+ */
1065
+ export interface SearchLiveboardCommonViewConfig {
996
1066
  /**
997
- * PreRender id to be used for PreRendering the embed.
998
- * Use PreRender to render the embed in the background and then
999
- * show or hide the rendered embed using showPreRender or hidePreRender respectively.
1067
+ * The list of runtime filters to apply to a search Answer,
1068
+ * visualization, or Liveboard.
1069
+ *
1070
+ * Supported embed types: `AppEmbed`, `LiveboardEmbed`, `SearchEmbed`
1071
+ * @version SDK: 1.9.4 | ThoughtSpot 8.1.0.cl, 8.4.1.sw
1000
1072
  * @example
1001
1073
  * ```js
1002
- * const embed = new LiveboardEmbed('#embed', {
1003
- * ... // other liveboard view config
1004
- * preRenderId: "preRenderId-123"
1005
- * });
1006
- * embed.showPreRender();
1074
+ * // Replace <EmbedComponent> with embed component name. For example, AppEmbed, SearchEmbed, or LiveboardEmbed
1075
+ * const embed = new <EmbedComponent>('#tsEmbed', {
1076
+ * ... // other embed view config
1077
+ * runtimeFilters: [
1078
+ * {
1079
+ * columnName: 'value',
1080
+ * operator: RuntimeFilterOp.EQ,
1081
+ * values: ['string' | 123 | true],
1082
+ * },
1083
+ * ],
1084
+ * })
1007
1085
  * ```
1008
- * @version SDK: 1.25.0 | ThoughtSpot: 9.6.0.cl, 9.8.0.sw
1009
1086
  */
1010
- preRenderId?: string;
1087
+ runtimeFilters?: RuntimeFilter[];
1011
1088
  /**
1012
- * Determines if the PreRender component should dynamically track the size
1013
- * of its embedding element and adjust its own size accordingly.
1014
- * Enabling this option allows the PreRender component to automatically adapt
1015
- * its dimensions based on changes to the size of the embedding element.
1016
- * @type {boolean}
1017
- * @default false
1018
- * @version SDK: 1.24.0 | ThoughtSpot:9.4.0.cl, 9.4.0.sw
1089
+ * The list of parameter override to apply to a search Answer,
1090
+ * visualization, or Liveboard.
1091
+ *
1092
+ * Supported embed types: `AppEmbed`, `LiveboardEmbed`, `SearchEmbed`
1093
+ * @version SDK : 1.25.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
1019
1094
  * @example
1020
1095
  * ```js
1021
- * // Disable tracking PreRender size in the configuration
1022
- * const config = {
1023
- * doNotTrackPreRenderSize: true,
1024
- * };
1096
+ * // Replace <EmbedComponent> with embed component name. For example, AppEmbed, SearchEmbed, or LiveboardEmbed
1097
+ * const embed = new <EmbedComponent>('#tsEmbed', {
1098
+ * ... // other embed view config
1099
+ * runtimeParameters: [
1100
+ * {
1101
+ * name: 'value',
1102
+ * value: 'string' | 123 | true,
1103
+ * },
1104
+ * ]
1105
+ * })
1106
+ * ```
1107
+ */
1108
+ runtimeParameters?: RuntimeParameter[];
1109
+ /**
1110
+ * flag to set ContextMenu Trigger to either left or right click.
1025
1111
  *
1026
- * // Instantiate an object with the configuration
1027
- * const myComponent = new MyComponent(config);
1112
+ * Supported embed types: `AppEmbed`, `SageEmbed`, `SearchEmbed`
1113
+ * @example
1114
+ * ```js
1115
+ * // Replace <EmbedComponent> with embed component name. For example, AppEmbed, SageEmbed, or SearchEmbed
1116
+ * const embed = new <EmbedComponent>('#tsEmbed', {
1117
+ * ... // other embed view config
1118
+ * contextMenuTrigger:ContextMenuTriggerOptions.LEFT_CLICK || RIGHT_CLICK,
1119
+ * })
1028
1120
  * ```
1121
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1029
1122
  */
1030
- doNotTrackPreRenderSize?: boolean;
1123
+ contextMenuTrigger?: ContextMenuTriggerOptions;
1031
1124
  /**
1032
- * For internal tracking of the embed component type.
1033
- * @hidden
1125
+ * Boolean to exclude runtimeFilters in the URL
1126
+ * By default it is true, this flag removes runtime filters from the URL
1127
+ * when set to false, runtime filters will be included in the URL.
1128
+ *
1129
+ * Irrespective of this flag, runtime filters ( if passed ) will be applied to the
1130
+ * embedded view.
1131
+ * @default false
1132
+ * @version SDK: 1.24.0 | ThoughtSpot: 9.5.0.cl
1034
1133
  */
1035
- embedComponentType?: string;
1134
+ excludeRuntimeFiltersfromURL?: boolean;
1036
1135
  /**
1037
1136
  * Boolean to exclude runtimeParameters from the URL
1038
1137
  * when set to true, this flag removes runtime parameters from the URL.
@@ -1044,105 +1143,220 @@ export interface ViewConfig {
1044
1143
  */
1045
1144
  excludeRuntimeParametersfromURL?: boolean;
1046
1145
  /**
1047
- * Enable the V2 shell. This can provide performance benefits
1048
- * due to a lighterweight shell.
1146
+ * To set the initial state of the search bar in case of saved Answers.
1147
+ *
1148
+ * Supported embed types: `SageEmbed`, `AppEmbed`, `SearchBarEmbed`
1149
+ * @default true
1150
+ * @version SDK: 1.34.0 | ThoughtSpot: 10.3.0.cl
1049
1151
  * @example
1050
1152
  * ```js
1051
- * const embed = new LiveboardEmbed('#embed', {
1052
- * liveboardId: '123',
1053
- * enableV2Shell_experimental: true
1153
+ * // Replace <EmbedComponent> with embed component name. For example, SageEmbed, AppEmbed, or SearchBarEmbed
1154
+ * const embed = new <EmbedComponent>('#tsEmbed', {
1155
+ * ... // other embed view config
1156
+ * collapseSearchBar: true,
1054
1157
  * });
1158
+ */
1159
+ collapseSearchBar?: boolean;
1160
+ /**
1161
+ * Flag to control Data panel experience
1162
+ *
1163
+ * Supported embed types: `SageEmbed`, `AppEmbed`, `SearchBarEmbed`, `LiveboardEmbed`, `SearchEmbed`
1164
+ * @default false
1165
+ * @version SDK: 1.34.0 | ThoughtSpot Cloud: 10.3.0.cl
1166
+ * @example
1167
+ * ```js
1168
+ * // Replace <EmbedComponent> with embed component name. For example, SageEmbed, AppEmbed, or SearchBarEmbed
1169
+ * const embed = new <EmbedComponent>('#tsEmbed', {
1170
+ * ... // other embed view config
1171
+ * dataPanelV2: true,
1172
+ * })
1055
1173
  * ```
1056
- * @version SDK: 1.31.2 | ThoughtSpot: 10.0.0.cl
1057
1174
  */
1058
- enableV2Shell_experimental?: boolean;
1175
+ dataPanelV2?: boolean;
1059
1176
  /**
1060
- * To set the initial state of the search bar in case of saved Answers.
1061
- * @default true
1062
- * @version SDK: 1.34.0 | ThoughtSpot: 10.3.0.cl
1177
+ * To enable custom column groups in data panel v2
1178
+ *
1179
+ * Supported embed types: `SageEmbed`, `SearchBarEmbed`, `LiveboardEmbed`, `SearchEmbed`
1180
+ * @version SDK: 1.32.0 | ThoughtSpot: 10.0.0.cl, 10.1.0.sw
1181
+ * @default false
1063
1182
  * @example
1064
1183
  * ```js
1065
- * const embed = new LiveboardEmbed('#embed', {
1066
- * liveboardId: '123',
1067
- * collapseSearchBar: true
1184
+ * // Replace <EmbedComponent> with embed component name. For example, SageEmbed, SearchBarEmbed, or LiveboardEmbed
1185
+ * const embed = new <EmbedComponent>('#tsEmbed', {
1186
+ * ... // other embed view config
1187
+ * enableCustomColumnGroups: true,
1068
1188
  * });
1189
+ * ```
1069
1190
  */
1070
- collapseSearchBar?: boolean;
1191
+ enableCustomColumnGroups?: boolean;
1192
+ }
1193
+ /**
1194
+ * The configuration object for common Liveboard and App embeds configs.
1195
+ */
1196
+ export interface LiveboardAppEmbedViewConfig {
1071
1197
  /**
1072
- * This flag can be used to expose translation IDs on the embedded app.
1198
+ * Show or hide Liveboard header
1199
+ *
1200
+ * Supported embed types: `AppEmbed`, `LiveboardEmbed`
1201
+ * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
1073
1202
  * @default false
1074
- * @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
1203
+ * @example
1204
+ * ```js
1205
+ * // Replace <EmbedComponent> with embed component name. For example, AppEmbed or LiveboardEmbed
1206
+ * const embed = new <EmbedComponent>('#tsEmbed', {
1207
+ * ... // other embed view config
1208
+ * hideLiveboardHeader : true,
1209
+ * })
1210
+ * ```
1075
1211
  */
1076
- exposeTranslationIDs?: boolean;
1212
+ hideLiveboardHeader?: boolean;
1077
1213
  /**
1078
- * This flag can be used to disable links inside the embedded app,
1079
- * and disable redirection of links in a new tab.
1214
+ * Show or hide Liveboard title
1215
+ *
1216
+ * Supported embed types: `AppEmbed`, `LiveboardEmbed`
1217
+ * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
1218
+ * @default false
1080
1219
  * @example
1081
1220
  * ```js
1082
- * const embed = new LiveboardEmbed('#embed', {
1083
- * disableRedirectionLinksInNewTab: true
1221
+ * // Replace <EmbedComponent> with embed component name. For example, AppEmbed or LiveboardEmbed
1222
+ * const embed = new <EmbedComponent>('#tsEmbed', {
1223
+ * ... // other embed view config
1224
+ * showLiveboardTitle:true,
1225
+ * })
1226
+ * ```
1227
+ */
1228
+ showLiveboardTitle?: boolean;
1229
+ /**
1230
+ * Show or hide Liveboard description
1231
+ *
1232
+ * Supported embed types: `AppEmbed`, `LiveboardEmbed`
1233
+ * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
1234
+ * @default false
1235
+ * @example
1236
+ * ```js
1237
+ * // Replace <EmbedComponent> with embed component name. For example, AppEmbed or LiveboardEmbed
1238
+ * const embed = new <EmbedComponent>('#tsEmbed', {
1239
+ * ... // other embed view config
1240
+ * showLiveboardDescription:true,
1241
+ * })
1242
+ * ```
1243
+ */
1244
+ showLiveboardDescription?: boolean;
1245
+ /**
1246
+ * Boolean to control if Liveboard header is sticky or not.
1247
+ *
1248
+ * Supported embed types: `AppEmbed`, `LiveboardEmbed`
1249
+ * @example
1250
+ * ```js
1251
+ * // Replace <EmbedComponent> with embed component name. For example, AppEmbed or LiveboardEmbed
1252
+ * const embed = new <EmbedComponent>('#embed', {
1253
+ * ... // other app view config
1254
+ * isLiveboardHeaderSticky: true,
1084
1255
  * });
1085
1256
  * ```
1086
- * @version SDK: 1.32.1 | ThoughtSpot: 10.3.0.cl
1257
+ * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
1087
1258
  */
1088
- disableRedirectionLinksInNewTab?: boolean;
1259
+ isLiveboardHeaderSticky?: boolean;
1089
1260
  /**
1090
- * Flag to control Data panel experience
1261
+ * This attribute can be used to enable the two-column layout on an embedded Liveboard
1262
+ *
1263
+ * Supported embed types: `AppEmbed`, `LiveboardEmbed`
1264
+ * @type {boolean}
1091
1265
  * @default false
1092
- * @version SDK: 1.34.0 | ThoughtSpot Cloud: 10.3.0.cl
1266
+ * @version SDK: 1.32.0 | ThoughtSpot:10.1.0.cl
1093
1267
  * @example
1094
1268
  * ```js
1095
- * const embed = new AppEmbed('#tsEmbed', {
1096
- * ... // other options
1097
- * dataPanelV2: true,
1269
+ * // Replace <EmbedComponent> with embed component name. For example, AppEmbed or LiveboardEmbed
1270
+ * const embed = new <EmbedComponent>('#tsEmbed', {
1271
+ * ... // other embed view config
1272
+ * enable2ColumnLayout: true,
1098
1273
  * })
1099
1274
  * ```
1100
1275
  */
1101
- dataPanelV2?: boolean;
1276
+ enable2ColumnLayout?: boolean;
1102
1277
  /**
1103
- * To enable custom column groups in data panel v2
1104
- * @version SDK: 1.32.0 | ThoughtSpot: 10.0.0.cl, 10.1.0.sw
1278
+ * This flag can be used to enable the compact header in Liveboard
1279
+ *
1280
+ * Supported embed types: `AppEmbed`, `LiveboardEmbed`
1281
+ * @type {boolean}
1105
1282
  * @default false
1283
+ * @version SDK: 1.35.0 | ThoughtSpot:10.3.0.cl
1106
1284
  * @example
1107
1285
  * ```js
1108
- * const embed = new SearchEmbed('#tsEmbed', {
1109
- * ... // other options
1110
- * enableCustomColumnGroups: true,
1111
- * });
1286
+ * // Replace <EmbedComponent> with embed component name. For example, AppEmbed or LiveboardEmbed
1287
+ * const embed = new <EmbedComponent>('#tsEmbed', {
1288
+ * ... // other embed view config
1289
+ * isLiveboardCompactHeaderEnabled: true,
1290
+ * })
1112
1291
  * ```
1113
1292
  */
1114
- enableCustomColumnGroups?: boolean;
1293
+ isLiveboardCompactHeaderEnabled?: boolean;
1115
1294
  /**
1116
- * Overrides an Org context for embedding application users.
1117
- * This parameter allows a user authenticated to one Org to view the
1118
- * objects from another Org.
1119
- * The `overrideOrgId` setting is honoured only if the
1120
- * Per Org URL feature is enabled on your ThoughtSpot instance.
1295
+ * This flag can be used to show or hide the Liveboard verified icon in the compact header.
1296
+ *
1297
+ * Supported embed types: `AppEmbed`, `LiveboardEmbed`
1298
+ * @version SDK: 1.35.0 | ThoughtSpot:10.4.0.cl
1299
+ * @default true
1121
1300
  * @example
1122
1301
  * ```js
1123
- * const embed = new LiveboardEmbed('#embed', {
1124
- * ... // other options
1125
- * overrideOrgId: 142536
1126
- * });
1302
+ * // Replace <EmbedComponent> with embed component name. For example, AppEmbed or LiveboardEmbed
1303
+ * const embed = new <EmbedComponent>('#tsEmbed', {
1304
+ * ... // other embed view config
1305
+ * showLiveboardVerifiedBadge: true,
1306
+ * })
1127
1307
  * ```
1128
- * @version SDK: 1.35.0 | ThoughtSpot: 10.5.0.cl
1129
1308
  */
1130
- overrideOrgId?: number;
1309
+ showLiveboardVerifiedBadge?: boolean;
1131
1310
  /**
1132
- * Hide list page columns
1133
- * For example: hiddenListColumns = [ListPageColumns.Author]
1311
+ * This flag is used to enable/disable hide irrelevant filters in Liveboard tab
1134
1312
  *
1135
- * **Note**: This option is available only in full app embedding.
1136
- * @version SDK: 1.38.0 | ThoughtSpot: 10.9.0.cl
1313
+ * Supported embed types: `AppEmbed`, `LiveboardEmbed`
1314
+ * @version SDK: 1.36.0 | ThoughtSpot:10.6.0.cl
1315
+ * @default false
1137
1316
  * @example
1138
1317
  * ```js
1139
- * const embed = new AppEmbed('#tsEmbed', {
1140
- * ... // other options
1141
- * hiddenListColumns : [ListPageColumns.Favorite,ListPageColumns.Author],
1318
+ * // Replace <EmbedComponent> with embed component name. For example, AppEmbed or LiveboardEmbed
1319
+ * const embed = new <EmbedComponent>('#tsEmbed', {
1320
+ * ... // other embed view config
1321
+ * hideIrrelevantChipsInLiveboardTabs: true,
1142
1322
  * })
1143
1323
  * ```
1144
1324
  */
1145
- hiddenListColumns?: ListPageColumns[];
1325
+ hideIrrelevantChipsInLiveboardTabs?: boolean;
1326
+ /**
1327
+ * This flag can be used to show or hide the re-verify banner on the Liveboard compact header
1328
+ *
1329
+ * Supported embed types: `AppEmbed`, `LiveboardEmbed`
1330
+ * @version SDK: 1.35.0 | ThoughtSpot:10.4.0.cl
1331
+ * @default true
1332
+ * @example
1333
+ * ```js
1334
+ * // Replace <EmbedComponent> with embed component name. For example, AppEmbed or LiveboardEmbed
1335
+ * const embed = new <EmbedComponent>('#tsEmbed', {
1336
+ * ... // other embed view config
1337
+ * showLiveboardReverifyBanner: true,
1338
+ * })
1339
+ * ```
1340
+ */
1341
+ showLiveboardReverifyBanner?: boolean;
1342
+ /**
1343
+ * enable or disable ask sage
1344
+ *
1345
+ * Supported embed types: `AppEmbed`, `LiveboardEmbed`
1346
+ * @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
1347
+ * @default false
1348
+ * @example
1349
+ * ```js
1350
+ * // Replace <EmbedComponent> with embed component name. For example, AppEmbed, SpotterEmbed, or LiveboardEmbed
1351
+ * const embed = new <EmbedComponent>('#tsEmbed', {
1352
+ * ... // other embed view config
1353
+ * enableAskSage:true,
1354
+ * })
1355
+ * ```
1356
+ */
1357
+ enableAskSage?: boolean;
1358
+ }
1359
+ export interface AllEmbedViewConfig extends BaseViewConfig, SearchLiveboardCommonViewConfig, HomePageConfig, LiveboardAppEmbedViewConfig {
1146
1360
  }
1147
1361
  /**
1148
1362
  * MessagePayload: Embed event payload: message type, data and status (start/end)
@@ -1535,7 +1749,7 @@ export declare enum EmbedEvent {
1535
1749
  * @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
1536
1750
  * @example
1537
1751
  * ```js
1538
- * livebaordEmbed.on(EmbedEvent.VizPointDoubleClick, payload => {
1752
+ * LiveboardEmbed.on(EmbedEvent.VizPointDoubleClick, payload => {
1539
1753
  * console.log('VizPointDoubleClick', payload);
1540
1754
  * })
1541
1755
  * ```
@@ -2394,7 +2608,13 @@ export declare enum EmbedEvent {
2394
2608
  * Emitted when a user creates a Model.
2395
2609
  * @version SDK : 1.37.0 | ThoughtSpot : 10.8.0.cl
2396
2610
  */
2397
- CreateModel = "createModel"
2611
+ CreateModel = "createModel",
2612
+ /**
2613
+ * @hidden
2614
+ * Emitted when a user exits present mode.
2615
+ * @version SDK : 1.40.0 | ThoughtSpot : 10.11.0.cl
2616
+ */
2617
+ ExitPresentMode = "exitPresentMode"
2398
2618
  }
2399
2619
  /**
2400
2620
  * Event types that can be triggered by the host application
@@ -3466,7 +3686,17 @@ export declare enum HostEvent {
3466
3686
  * ```
3467
3687
  * @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl
3468
3688
  */
3469
- TransformTableVizData = "TransformTableVizData"
3689
+ TransformTableVizData = "TransformTableVizData",
3690
+ /**
3691
+ * @hidden
3692
+ * Trigger exit from presentation mode when user exits fullscreen.
3693
+ * This is automatically triggered by the SDK when fullscreen mode is exited.
3694
+ * ```js
3695
+ * liveboardEmbed.trigger(HostEvent.ExitPresentMode);
3696
+ *```
3697
+ * @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
3698
+ */
3699
+ ExitPresentMode = "exitPresentMode"
3470
3700
  }
3471
3701
  /**
3472
3702
  * The different visual modes that the data sources panel within
@@ -3598,7 +3828,8 @@ export declare enum Param {
3598
3828
  ShowSpotterLimitations = "showSpotterLimitations",
3599
3829
  CoverAndFilterOptionInPDF = "coverAndFilterOptionInPDF",
3600
3830
  PrimaryAction = "primaryAction",
3601
- isSpotterAgentEmbed = "isSpotterAgentEmbed"
3831
+ isSpotterAgentEmbed = "isSpotterAgentEmbed",
3832
+ IsLiveboardStylingAndGroupingEnabled = "isLiveboardStylingAndGroupingEnabled"
3602
3833
  }
3603
3834
  /**
3604
3835
  * ThoughtSpot application pages include actions and menu commands
@@ -3609,8 +3840,8 @@ export declare enum Param {
3609
3840
  * or `hiddenActions` array.
3610
3841
  * @example
3611
3842
  * ```js
3612
- * const embed = new LiveboardEmbed('#embed-container', {
3613
- * ... // other options
3843
+ * const embed = new LiveboardEmbed('#tsEmbed', {
3844
+ * ... //other embed view config
3614
3845
  * visibleActions: [Action.Save, Action.Edit, Action.Present, ActionAction.Explore],
3615
3846
  * disabledActions: [Action.Download],
3616
3847
  * //hiddenActions: [], // Set either this or visibleActions
@@ -3618,8 +3849,8 @@ export declare enum Param {
3618
3849
  * ```
3619
3850
  * @example
3620
3851
  * ```js
3621
- * const embed = new LiveboardEmbed('#embed-container', {
3622
- * ... // other options
3852
+ * const embed = new LiveboardEmbed('#tsEmbed', {
3853
+ * ... //other embed view config
3623
3854
  * //visibleActions: [],
3624
3855
  * disabledActions: [Action.Download],
3625
3856
  * hiddenActions: [Action.Edit, ActionAction.Explore],
@@ -4891,7 +5122,7 @@ export declare enum LogLevel {
4891
5122
  * @example
4892
5123
  * ```js
4893
5124
  * init({
4894
- * ... // other options,
5125
+ * ... //other embed view config,
4895
5126
  * logLevel: LogLevel.SILENT,
4896
5127
  * })
4897
5128
  * ```
@@ -4903,7 +5134,7 @@ export declare enum LogLevel {
4903
5134
  * @example
4904
5135
  * ```js
4905
5136
  * init({
4906
- * ... // other options,
5137
+ * ... //other embed view config,
4907
5138
  * logLevel: LogLevel.ERROR,
4908
5139
  * })
4909
5140
  * ```
@@ -4915,7 +5146,7 @@ export declare enum LogLevel {
4915
5146
  * @example
4916
5147
  * ```js
4917
5148
  * init({
4918
- * ... // other options,
5149
+ * ... //other embed view config,
4919
5150
  * logLevel: LogLevel.WARN,
4920
5151
  * })
4921
5152
  * ```
@@ -4928,7 +5159,7 @@ export declare enum LogLevel {
4928
5159
  * @example
4929
5160
  * ```js
4930
5161
  * init({
4931
- * ... // other options,
5162
+ * ... //other embed view config,
4932
5163
  * logLevel: LogLevel.INFO,
4933
5164
  * })
4934
5165
  * ```
@@ -4941,7 +5172,7 @@ export declare enum LogLevel {
4941
5172
  * @example
4942
5173
  * ```js
4943
5174
  * init({
4944
- * ... // other options,
5175
+ * ... //other embed view config,
4945
5176
  * logLevel: LogLevel.DEBUG,
4946
5177
  * })
4947
5178
  * ```
@@ -4953,7 +5184,7 @@ export declare enum LogLevel {
4953
5184
  * @example
4954
5185
  * ```js
4955
5186
  * init({
4956
- * ... // other options,
5187
+ * ... //other embed view config,
4957
5188
  * logLevel: LogLevel.TRACE,
4958
5189
  * })
4959
5190
  * ```