@thoughtspot/visual-embed-sdk 1.28.0-preRender → 1.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (216) hide show
  1. package/README.md +1 -1
  2. package/cjs/package.json +3 -4
  3. package/cjs/src/auth.d.ts +16 -1
  4. package/cjs/src/auth.d.ts.map +1 -1
  5. package/cjs/src/auth.js +7 -3
  6. package/cjs/src/auth.js.map +1 -1
  7. package/cjs/src/auth.spec.d.ts.map +1 -1
  8. package/cjs/src/auth.spec.js +9 -0
  9. package/cjs/src/auth.spec.js.map +1 -1
  10. package/cjs/src/embed/app.d.ts +150 -7
  11. package/cjs/src/embed/app.d.ts.map +1 -1
  12. package/cjs/src/embed/app.js +5 -5
  13. package/cjs/src/embed/app.js.map +1 -1
  14. package/cjs/src/embed/app.spec.js +19 -1
  15. package/cjs/src/embed/app.spec.js.map +1 -1
  16. package/cjs/src/embed/base.d.ts +1 -1
  17. package/cjs/src/embed/base.d.ts.map +1 -1
  18. package/cjs/src/embed/base.js +5 -8
  19. package/cjs/src/embed/base.js.map +1 -1
  20. package/cjs/src/embed/base.spec.js +1 -1
  21. package/cjs/src/embed/base.spec.js.map +1 -1
  22. package/cjs/src/embed/embed.spec.js +0 -15
  23. package/cjs/src/embed/embed.spec.js.map +1 -1
  24. package/cjs/src/embed/liveboard.d.ts +113 -4
  25. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  26. package/cjs/src/embed/liveboard.js +2 -2
  27. package/cjs/src/embed/liveboard.js.map +1 -1
  28. package/cjs/src/embed/liveboard.spec.js +20 -1
  29. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  30. package/cjs/src/embed/pinboard.spec.js +20 -1
  31. package/cjs/src/embed/pinboard.spec.js.map +1 -1
  32. package/cjs/src/embed/sage.d.ts +1 -1
  33. package/cjs/src/embed/sage.d.ts.map +1 -1
  34. package/cjs/src/embed/sage.js +2 -2
  35. package/cjs/src/embed/sage.js.map +1 -1
  36. package/cjs/src/embed/search-bar.d.ts +37 -6
  37. package/cjs/src/embed/search-bar.d.ts.map +1 -1
  38. package/cjs/src/embed/search-bar.js +2 -2
  39. package/cjs/src/embed/search-bar.js.map +1 -1
  40. package/cjs/src/embed/search.d.ts +85 -2
  41. package/cjs/src/embed/search.d.ts.map +1 -1
  42. package/cjs/src/embed/search.js +6 -6
  43. package/cjs/src/embed/search.js.map +1 -1
  44. package/cjs/src/embed/search.spec.js +25 -1
  45. package/cjs/src/embed/search.spec.js.map +1 -1
  46. package/cjs/src/embed/ts-embed-trigger.spec.d.ts +2 -0
  47. package/cjs/src/embed/ts-embed-trigger.spec.d.ts.map +1 -0
  48. package/cjs/src/embed/ts-embed-trigger.spec.js +34 -0
  49. package/cjs/src/embed/ts-embed-trigger.spec.js.map +1 -0
  50. package/cjs/src/embed/ts-embed.d.ts +2 -2
  51. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  52. package/cjs/src/embed/ts-embed.js +18 -13
  53. package/cjs/src/embed/ts-embed.js.map +1 -1
  54. package/cjs/src/embed/ts-embed.spec.js +64 -25
  55. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  56. package/cjs/src/index.d.ts +2 -1
  57. package/cjs/src/index.d.ts.map +1 -1
  58. package/cjs/src/index.js +3 -1
  59. package/cjs/src/index.js.map +1 -1
  60. package/cjs/src/react/index.spec.js +13 -1
  61. package/cjs/src/react/index.spec.js.map +1 -1
  62. package/cjs/src/test/test-utils.d.ts +1 -0
  63. package/cjs/src/test/test-utils.d.ts.map +1 -1
  64. package/cjs/src/test/test-utils.js +10 -1
  65. package/cjs/src/test/test-utils.js.map +1 -1
  66. package/cjs/src/tokenizedFetch.d.ts +9 -0
  67. package/cjs/src/tokenizedFetch.d.ts.map +1 -1
  68. package/cjs/src/tokenizedFetch.js +9 -0
  69. package/cjs/src/tokenizedFetch.js.map +1 -1
  70. package/cjs/src/types.d.ts +279 -43
  71. package/cjs/src/types.d.ts.map +1 -1
  72. package/cjs/src/types.js +95 -20
  73. package/cjs/src/types.js.map +1 -1
  74. package/cjs/src/utils/authService/authService.d.ts.map +1 -1
  75. package/cjs/src/utils/authService/authService.js +9 -3
  76. package/cjs/src/utils/authService/authService.js.map +1 -1
  77. package/cjs/src/utils/authService/authService.spec.js +22 -0
  78. package/cjs/src/utils/authService/authService.spec.js.map +1 -1
  79. package/dist/src/auth.d.ts +16 -1
  80. package/dist/src/auth.d.ts.map +1 -1
  81. package/dist/src/auth.spec.d.ts.map +1 -1
  82. package/dist/src/embed/app.d.ts +150 -7
  83. package/dist/src/embed/app.d.ts.map +1 -1
  84. package/dist/src/embed/base.d.ts +1 -1
  85. package/dist/src/embed/base.d.ts.map +1 -1
  86. package/dist/src/embed/liveboard.d.ts +113 -4
  87. package/dist/src/embed/liveboard.d.ts.map +1 -1
  88. package/dist/src/embed/sage.d.ts +1 -1
  89. package/dist/src/embed/sage.d.ts.map +1 -1
  90. package/dist/src/embed/search-bar.d.ts +37 -6
  91. package/dist/src/embed/search-bar.d.ts.map +1 -1
  92. package/dist/src/embed/search.d.ts +85 -2
  93. package/dist/src/embed/search.d.ts.map +1 -1
  94. package/dist/src/embed/ts-embed-trigger.spec.d.ts +2 -0
  95. package/dist/src/embed/ts-embed-trigger.spec.d.ts.map +1 -0
  96. package/dist/src/embed/ts-embed.d.ts +2 -2
  97. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  98. package/dist/src/index.d.ts +2 -1
  99. package/dist/src/index.d.ts.map +1 -1
  100. package/dist/src/test/test-utils.d.ts +1 -0
  101. package/dist/src/test/test-utils.d.ts.map +1 -1
  102. package/dist/src/tokenizedFetch.d.ts +9 -0
  103. package/dist/src/tokenizedFetch.d.ts.map +1 -1
  104. package/dist/src/types.d.ts +279 -43
  105. package/dist/src/types.d.ts.map +1 -1
  106. package/dist/src/utils/authService/authService.d.ts.map +1 -1
  107. package/dist/tsembed-react.es.js +1543 -1445
  108. package/dist/tsembed-react.js +6614 -6529
  109. package/dist/tsembed.es.js +1921 -1826
  110. package/dist/tsembed.js +15342 -15259
  111. package/dist/visual-embed-sdk-react-full.d.ts +692 -64
  112. package/dist/visual-embed-sdk-react.d.ts +692 -64
  113. package/dist/visual-embed-sdk.d.ts +692 -64
  114. package/lib/package.json +3 -4
  115. package/lib/src/auth.d.ts +16 -1
  116. package/lib/src/auth.d.ts.map +1 -1
  117. package/lib/src/auth.js +8 -4
  118. package/lib/src/auth.js.map +1 -1
  119. package/lib/src/auth.spec.d.ts.map +1 -1
  120. package/lib/src/auth.spec.js +9 -0
  121. package/lib/src/auth.spec.js.map +1 -1
  122. package/lib/src/embed/app.d.ts +150 -7
  123. package/lib/src/embed/app.d.ts.map +1 -1
  124. package/lib/src/embed/app.js +5 -5
  125. package/lib/src/embed/app.js.map +1 -1
  126. package/lib/src/embed/app.spec.js +19 -1
  127. package/lib/src/embed/app.spec.js.map +1 -1
  128. package/lib/src/embed/base.d.ts +1 -1
  129. package/lib/src/embed/base.d.ts.map +1 -1
  130. package/lib/src/embed/base.js +5 -8
  131. package/lib/src/embed/base.js.map +1 -1
  132. package/lib/src/embed/base.spec.js +2 -2
  133. package/lib/src/embed/base.spec.js.map +1 -1
  134. package/lib/src/embed/embed.spec.js +2 -17
  135. package/lib/src/embed/embed.spec.js.map +1 -1
  136. package/lib/src/embed/liveboard.d.ts +113 -4
  137. package/lib/src/embed/liveboard.d.ts.map +1 -1
  138. package/lib/src/embed/liveboard.js +3 -3
  139. package/lib/src/embed/liveboard.js.map +1 -1
  140. package/lib/src/embed/liveboard.spec.js +20 -1
  141. package/lib/src/embed/liveboard.spec.js.map +1 -1
  142. package/lib/src/embed/pinboard.spec.js +20 -1
  143. package/lib/src/embed/pinboard.spec.js.map +1 -1
  144. package/lib/src/embed/sage.d.ts +1 -1
  145. package/lib/src/embed/sage.d.ts.map +1 -1
  146. package/lib/src/embed/sage.js +2 -2
  147. package/lib/src/embed/sage.js.map +1 -1
  148. package/lib/src/embed/search-bar.d.ts +37 -6
  149. package/lib/src/embed/search-bar.d.ts.map +1 -1
  150. package/lib/src/embed/search-bar.js +2 -2
  151. package/lib/src/embed/search-bar.js.map +1 -1
  152. package/lib/src/embed/search.d.ts +85 -2
  153. package/lib/src/embed/search.d.ts.map +1 -1
  154. package/lib/src/embed/search.js +7 -7
  155. package/lib/src/embed/search.js.map +1 -1
  156. package/lib/src/embed/search.spec.js +25 -1
  157. package/lib/src/embed/search.spec.js.map +1 -1
  158. package/lib/src/embed/ts-embed-trigger.spec.d.ts +2 -0
  159. package/lib/src/embed/ts-embed-trigger.spec.d.ts.map +1 -0
  160. package/lib/src/embed/ts-embed-trigger.spec.js +32 -0
  161. package/lib/src/embed/ts-embed-trigger.spec.js.map +1 -0
  162. package/lib/src/embed/ts-embed.d.ts +2 -2
  163. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  164. package/lib/src/embed/ts-embed.js +21 -16
  165. package/lib/src/embed/ts-embed.js.map +1 -1
  166. package/lib/src/embed/ts-embed.spec.js +57 -18
  167. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  168. package/lib/src/index.d.ts +2 -1
  169. package/lib/src/index.d.ts.map +1 -1
  170. package/lib/src/index.js +2 -1
  171. package/lib/src/index.js.map +1 -1
  172. package/lib/src/react/index.spec.js +13 -1
  173. package/lib/src/react/index.spec.js.map +1 -1
  174. package/lib/src/test/test-utils.d.ts +1 -0
  175. package/lib/src/test/test-utils.d.ts.map +1 -1
  176. package/lib/src/test/test-utils.js +8 -0
  177. package/lib/src/test/test-utils.js.map +1 -1
  178. package/lib/src/tokenizedFetch.d.ts +9 -0
  179. package/lib/src/tokenizedFetch.d.ts.map +1 -1
  180. package/lib/src/tokenizedFetch.js +9 -0
  181. package/lib/src/tokenizedFetch.js.map +1 -1
  182. package/lib/src/types.d.ts +279 -43
  183. package/lib/src/types.d.ts.map +1 -1
  184. package/lib/src/types.js +95 -20
  185. package/lib/src/types.js.map +1 -1
  186. package/lib/src/utils/authService/authService.d.ts.map +1 -1
  187. package/lib/src/utils/authService/authService.js +9 -3
  188. package/lib/src/utils/authService/authService.js.map +1 -1
  189. package/lib/src/utils/authService/authService.spec.js +23 -1
  190. package/lib/src/utils/authService/authService.spec.js.map +1 -1
  191. package/lib/src/visual-embed-sdk.d.ts +699 -68
  192. package/package.json +3 -4
  193. package/src/auth.spec.ts +10 -0
  194. package/src/auth.ts +27 -8
  195. package/src/embed/app.spec.ts +24 -1
  196. package/src/embed/app.ts +154 -13
  197. package/src/embed/base.spec.ts +3 -3
  198. package/src/embed/base.ts +13 -17
  199. package/src/embed/embed.spec.ts +0 -18
  200. package/src/embed/liveboard.spec.ts +24 -1
  201. package/src/embed/liveboard.ts +121 -15
  202. package/src/embed/pinboard.spec.ts +24 -1
  203. package/src/embed/sage.ts +2 -2
  204. package/src/embed/search-bar.tsx +38 -7
  205. package/src/embed/search.spec.ts +29 -1
  206. package/src/embed/search.ts +93 -9
  207. package/src/embed/ts-embed-trigger.spec.ts +39 -0
  208. package/src/embed/ts-embed.spec.ts +71 -30
  209. package/src/embed/ts-embed.ts +48 -45
  210. package/src/index.ts +2 -0
  211. package/src/react/index.spec.tsx +30 -0
  212. package/src/test/test-utils.ts +9 -0
  213. package/src/tokenizedFetch.ts +9 -0
  214. package/src/types.ts +288 -50
  215. package/src/utils/authService/authService.spec.ts +31 -4
  216. package/src/utils/authService/authService.ts +14 -13
@@ -24,7 +24,8 @@ declare module '@thoughtspot/visual-embed-sdk' {
24
24
  import { AnswerService, SessionInterface, UnderlyingDataPoint } from '@thoughtspot/visual-embed-sdk/utils/graphql/answerService/answerService';
25
25
  import { getEmbedConfig } from '@thoughtspot/visual-embed-sdk/embed/embedConfig';
26
26
  import { uploadMixpanelEvent, MIXPANEL_EVENT } from '@thoughtspot/visual-embed-sdk/mixpanel-service';
27
- export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, AnswerService, SessionInterface, UnderlyingDataPoint, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, ContextMenuTriggerOptions, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, SageViewConfig, AppViewConfig, PrefetchFeatures, FrameParams, HomeLeftNavItem, HomepageModule, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, RuntimeParameter, LogLevel, uploadMixpanelEvent, MIXPANEL_EVENT, VizPoint, CustomActionPayload, };
27
+ import { tokenizedFetch } from '@thoughtspot/visual-embed-sdk/tokenizedFetch';
28
+ 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, };
28
29
  }
29
30
 
30
31
  declare module '@thoughtspot/visual-embed-sdk/embed/app' {
@@ -38,7 +39,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
38
39
  * @module
39
40
  * @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
40
41
  */
41
- import { DOMSelector, ViewConfig, MessagePayload } from '@thoughtspot/visual-embed-sdk/types';
42
+ import { DOMSelector, MessagePayload, ViewConfig } from '@thoughtspot/visual-embed-sdk/types';
42
43
  import { V1Embed } from '@thoughtspot/visual-embed-sdk/embed/ts-embed';
43
44
  /**
44
45
  * Pages within the ThoughtSpot app that can be embedded.
@@ -83,6 +84,16 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
83
84
  * If true, the top navigation bar within the ThoughtSpot app
84
85
  * is displayed. By default, the navigation bar is hidden.
85
86
  * This flag also controls the homepage left navigation bar.
87
+ *
88
+ * @default true
89
+ * @version SDK: 1.2.0 | Thoughtspot: 8.4.0.cl
90
+ * @example
91
+ * ```js
92
+ * const embed = new AppEmbed('#tsEmbed', {
93
+ * ... // other options
94
+ * showPrimaryNavbar:true,
95
+ * })
96
+ * ```
86
97
  */
87
98
  showPrimaryNavbar?: boolean;
88
99
  /**
@@ -91,23 +102,78 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
91
102
  * nav-bars are visible, this flag will only hide the homepage left nav-bar.
92
103
  * The showPrimaryNavbar flag takes precedence over the hideHomepageLeftNav.
93
104
  *
105
+ *
106
+ * **Note**: This option does not apply to the classic homepage.
107
+ * To access the updated modular homepage, set
108
+ * `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
109
+ *
94
110
  * @default false
95
- * @version SDK: 1.27.0 | Thoughtspot: 9.8.0.cl
111
+ * @version SDK: 1.28.0 | Thoughtspot: 9.12.5.cl
112
+ *
113
+ * @example
114
+ * ```js
115
+ * const embed = new AppEmbed('#tsEmbed', {
116
+ * ... // other options
117
+ * hideHomepageLeftNav : true,
118
+ * })
119
+ * ```
96
120
  */
97
121
  hideHomepageLeftNav?: boolean;
98
122
  /**
99
123
  * Control the visibility of the help (?) and profile buttons on the
100
124
  * Global nav-bar. By default, these buttons are visible on the nav-bar.
125
+ *
126
+ * @default false
127
+ * @version SDK: 1.2.0 | Thoughtspot: 8.4.0.cl
128
+ * @example
129
+ * ```js
130
+ * const embed = new AppEmbed('#tsEmbed', {
131
+ * ... // other options
132
+ * disableProfileAndHelp: true,
133
+ * })
134
+ * ```
101
135
  */
102
136
  disableProfileAndHelp?: boolean;
103
137
  /**
104
138
  * Control the visibility of the application switcher button on the nav-bar.
105
139
  * By default, the application switcher is shown.
140
+ *
141
+ *
142
+ * **Note**: This option does not apply to the classic homepage.
143
+ * To access the updated modular homepage, set
144
+ * `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
145
+ *
146
+ * @version SDK: 1.28.0 | Thoughtspot: 9.12.5.cl
147
+ * @default false
148
+ *
149
+ * @example
150
+ * ```js
151
+ * const embed = new AppEmbed('#tsEmbed', {
152
+ * ... // other options
153
+ * hideApplicationSwitcher : true,
154
+ * })
155
+ * ```
106
156
  */
107
157
  hideApplicationSwitcher?: boolean;
108
158
  /**
109
159
  * Control the visibility of the Org switcher button on the nav-bar.
110
160
  * By default, the Org switcher button is shown.
161
+ *
162
+ *
163
+ * **Note**: This option does not apply to the classic homepage.
164
+ * To access the updated modular homepage, set
165
+ * `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
166
+ *
167
+ * @version SDK: 1.28.0 | Thoughtspot: 9.12.5.cl
168
+ * @default true
169
+ *
170
+ * @example
171
+ * ```js
172
+ * const embed = new AppEmbed('#tsEmbed', {
173
+ * ... // other options
174
+ * hideOrgSwitcher : true,
175
+ * })
176
+ * ```
111
177
  */
112
178
  hideOrgSwitcher?: boolean;
113
179
  /**
@@ -119,9 +185,13 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
119
185
  * For eg, if you want the component to open to a specific Liveboard
120
186
  * you could set the path to `pinboard/<liveboardId>/tab/<tabId>`.
121
187
  *
188
+ * @version SDK: 1.1.0 | Thoughtspot: 9.4.0.cl
122
189
  * @example
123
- * ```
124
- * <AppEmbed path="pinboard/1234/tab/7464" />
190
+ * ```js
191
+ * const embed = new AppEmbed('#tsEmbed', {
192
+ * ... // other options
193
+ * path:"pinboard/1234/tab/7464"
194
+ * })
125
195
  * ```
126
196
  */
127
197
  path?: string;
@@ -131,16 +201,46 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
131
201
  *
132
202
  * Use this to open to particular page in the app. To open to a specific
133
203
  * path within the app, use the `path` attribute which is more flexible.
204
+ *
205
+ * @version SDK: 1.1.0 | Thoughtspot: 9.4.0.cl
206
+ * @example
207
+ * ```js
208
+ * const embed = new AppEmbed('#tsEmbed', {
209
+ * ... // other options
210
+ * pageId : Page.Answers | Page.Data
211
+ * })
212
+ * ```
134
213
  */
135
214
  pageId?: Page;
136
215
  /**
137
216
  * This puts a filter tag on the application. All metadata lists in the
138
217
  * application, such as Liveboards and answers, would be filtered by this
139
218
  * tag.
219
+ *
220
+ * @version SDK: 1.1.0 | Thoughtspot: 9.4.0.cl
221
+ * @example
222
+ * ```js
223
+ * const embed = new AppEmbed('#tsEmbed', {
224
+ * ... // other options
225
+ * tag:'value',
226
+ * })
227
+ * ```
140
228
  */
141
229
  tag?: string;
142
230
  /**
143
231
  * The array of GUIDs to be hidden
232
+ *
233
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
234
+ * @example
235
+ * ```js
236
+ * const embed = new AppEmbed('#tsEmbed', {
237
+ * ... // other options
238
+ * hideObjects: [
239
+ * '430496d6-6903-4601-937e-2c691821af3c',
240
+ * 'f547ec54-2a37-4516-a222-2b06719af726'
241
+ * ]
242
+ * })
243
+ * ```
144
244
  */
145
245
  hideObjects?: string[];
146
246
  /**
@@ -154,7 +254,15 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
154
254
  /**
155
255
  * If set to true, the Search Assist feature is enabled.
156
256
  *
257
+ * @default true
157
258
  * @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1-sw
259
+ * @example
260
+ * ```js
261
+ * const embed = new AppEmbed('#tsEmbed', {
262
+ * ... // other options
263
+ * enableSearchAssist: true,
264
+ * })
265
+ * ```
158
266
  */
159
267
  enableSearchAssist?: boolean;
160
268
  /**
@@ -162,6 +270,13 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
162
270
  * according to the height of the pages which support fullHeight mode.
163
271
  *
164
272
  * @version SDK: 1.21.0 | ThoughtSpot: 9.4.0.cl, 9.4.0-sw
273
+ * @example
274
+ * ```js
275
+ * const embed = new AppEmbed('#tsEmbed', {
276
+ * ... // other options
277
+ * fullHeight: true,
278
+ * })
279
+ * ```
165
280
  */
166
281
  fullHeight?: boolean;
167
282
  /**
@@ -177,6 +292,13 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
177
292
  *
178
293
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
179
294
  * @default false
295
+ * @example
296
+ * ```js
297
+ * const embed = new AppEmbed('#tsEmbed', {
298
+ * ... // other options
299
+ * hideLiveboardHeader : true,
300
+ * })
301
+ * ```
180
302
  */
181
303
  hideLiveboardHeader?: boolean;
182
304
  /**
@@ -184,6 +306,13 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
184
306
  *
185
307
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
186
308
  * @default false
309
+ * @example
310
+ * ```js
311
+ * const embed = new AppEmbed('#tsEmbed', {
312
+ * ... // other options
313
+ * showLiveboardTitle:true,
314
+ * })
315
+ * ```
187
316
  */
188
317
  showLiveboardTitle?: boolean;
189
318
  /**
@@ -191,13 +320,28 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
191
320
  *
192
321
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
193
322
  * @default false
323
+ * @example
324
+ * ```js
325
+ * const embed = new AppEmbed('#tsEmbed', {
326
+ * ... // other options
327
+ * showLiveboardDescription:true,
328
+ * })
329
+ * ```
194
330
  */
195
331
  showLiveboardDescription?: boolean;
196
332
  /**
197
- * Flag to control new Modular Home experience
333
+ * Flag to control new Modular Home experience.
198
334
  *
199
335
  * @default false
200
- * @version SDK: 1.27.0 | Thoughtspot: 9.8.0.cl
336
+ * @version SDK: 1.28.0 | Thoughtspot: 9.12.5.cl
337
+ *
338
+ * @example
339
+ * ```js
340
+ * const embed = new AppEmbed('#tsEmbed', {
341
+ * ... // other options
342
+ * modularHomeExperience : true,
343
+ * })
344
+ * ```
201
345
  */
202
346
  modularHomeExperience?: boolean;
203
347
  /**
@@ -266,13 +410,13 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
266
410
  * @param renderOptions An object containing the page ID
267
411
  * to be embedded.
268
412
  */
269
- render(): AppEmbed;
413
+ render(): Promise<AppEmbed>;
270
414
  }
271
415
  }
272
416
 
273
417
  declare module '@thoughtspot/visual-embed-sdk/embed/base' {
418
+ import { AuthEventEmitter, notifyAuthFailure, notifyAuthSDKSuccess, notifyAuthSuccess, notifyLogout } from '@thoughtspot/visual-embed-sdk/auth';
274
419
  import { EmbedConfig, PrefetchFeatures } from '@thoughtspot/visual-embed-sdk/types';
275
- import { notifyAuthFailure, notifyAuthSDKSuccess, notifyAuthSuccess, notifyLogout, AuthEventEmitter } from '@thoughtspot/visual-embed-sdk/auth';
276
420
  export interface executeTMLInput {
277
421
  metadata_tmls: string[];
278
422
  import_policy?: 'PARTIAL' | 'ALL_OR_NONE' | 'VALIDATE_ONLY';
@@ -434,8 +578,21 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
434
578
  /**
435
579
  * If set to true, the embedded object container dynamically resizes
436
580
  * according to the height of the Liveboard.
581
+ * **Note**: Using fullHeight loads all visualizations on the
582
+ * Liveboard simultaneously, which results in multiple warehouse
583
+ * queries and potentially a longer wait for the topmost
584
+ * visualizations to display on the screen.
585
+ * Setting `fullHeight` to `false` fetches visualizations
586
+ * incrementally as users scroll the page to view the charts and tables.
437
587
  *
438
588
  * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1
589
+ * @example
590
+ * ```js
591
+ * const embed = new LiveboardEmbed('#embed', {
592
+ * ... // other liveboard view config
593
+ * fullHeight: true,
594
+ * });
595
+ * ```
439
596
  */
440
597
  fullHeight?: boolean;
441
598
  /**
@@ -445,10 +602,26 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
445
602
  *
446
603
  * @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
447
604
  * @default 500
605
+ * @example
606
+ * ```js
607
+ * const embed = new LiveboardEmbed('#embed', {
608
+ * ... // other liveboard view config
609
+ * fullHeight: true,
610
+ * defaultHeight: 600,
611
+ * });
612
+ * ```
448
613
  */
449
614
  defaultHeight?: number;
450
615
  /**
451
616
  * @Deprecated If set to true, the context menu in visualizations will be enabled.
617
+ * @example
618
+ * ```js
619
+ * const embed = new LiveboardEmbed('#tsEmbed', {
620
+ * ... // other options
621
+ * enableVizTransformations:true,
622
+ * })
623
+ * ```
624
+ * @version: SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
452
625
  */
453
626
  enableVizTransformations?: boolean;
454
627
  /**
@@ -456,6 +629,12 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
456
629
  * Use either liveboardId or pinboardId to reference the Liveboard to embed.
457
630
  *
458
631
  * @version SDK: 1.3.0 | ThoughtSpot ts7.aug.cl, 7.2.1
632
+ * @example
633
+ * ```js
634
+ * const embed = new LiveboardEmbed('#embed-container', {
635
+ * ... // other options
636
+ * liveboardId:id of liveboard,
637
+ * })
459
638
  */
460
639
  liveboardId?: string;
461
640
  /**
@@ -466,6 +645,15 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
466
645
  pinboardId?: string;
467
646
  /**
468
647
  * The visualization within the Liveboard to display.
648
+ *
649
+ * @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
650
+ * @example
651
+ * ```js
652
+ * const embed = new LiveboardEmbed('#embed-container', {
653
+ * ... // other options
654
+ * vizId:'430496d6-6903-4601-937e-2c691821af3c',
655
+ * })
656
+ * ```
469
657
  */
470
658
  vizId?: string;
471
659
  /**
@@ -473,6 +661,13 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
473
661
  * Liveboard page will be read-only (no X buttons)
474
662
  *
475
663
  * @version SDK: 1.3.0 | ThoughtSpot ts7.aug.cl, 7.2.1.sw
664
+ * @example
665
+ * ```js
666
+ * const embed = new LiveboardEmbed('#embed-container', {
667
+ * ... // other options
668
+ * preventLiveboardFilterRemoval:true,
669
+ * })
670
+ * ```
476
671
  */
477
672
  preventLiveboardFilterRemoval?: boolean;
478
673
  /**
@@ -481,6 +676,15 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
481
676
  * event.
482
677
  *
483
678
  * @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
679
+ * @example
680
+ * ```js
681
+ * const embed = new LiveboardEmbed('#embed-container', {
682
+ * ... // other options
683
+ * visibleVizs: [
684
+ * '430496d6-6903-4601-937e-2c691821af3c',
685
+ * 'f547ec54-2a37-4516-a222-2b06719af726'
686
+ * ]
687
+ * })
484
688
  */
485
689
  visibleVizs?: string[];
486
690
  /**
@@ -494,12 +698,26 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
494
698
  * new Liveboard experience mode.
495
699
  *
496
700
  * @version SDK: 1.14.0 | ThoughtSpot: 8.6.0.cl, 8.8.1-sw
701
+ * @example
702
+ * ```js
703
+ * const embed = new LiveboardEmbed('#embed-container', {
704
+ * ... // other options
705
+ * liveboardV2:true,
706
+ * })
707
+ * ```
497
708
  */
498
709
  liveboardV2?: boolean;
499
710
  /**
500
711
  * Set a Liveboard tab as an active tab.
501
712
  * Specify the tab ID.
502
713
  *
714
+ * @example
715
+ * ```js
716
+ * const embed = new LiveboardEmbed('#tsEmbed', {
717
+ * ... // other options
718
+ * activeTabId:'id-1234',
719
+ * })
720
+ * ```
503
721
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
504
722
  */
505
723
  activeTabId?: string;
@@ -507,6 +725,13 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
507
725
  * Show or hide the tab panel of the embedded Liveboard.
508
726
  *
509
727
  * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl, 9.8.0.sw
728
+ * @example
729
+ * ```js
730
+ * const embed = new LiveboardEmbed('#embed-container', {
731
+ * ... // other options
732
+ * hideTabPanel:true,
733
+ * })
734
+ * ```
510
735
  */
511
736
  hideTabPanel?: boolean;
512
737
  /**
@@ -514,20 +739,41 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
514
739
  *
515
740
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
516
741
  * @default false
742
+ * @example
743
+ * ```js
744
+ * const embed = new LiveboardEmbed('#embed', {
745
+ * ... // other liveboard view config
746
+ * hideLiveboardHeader:true,
747
+ * });
748
+ * ```
517
749
  */
518
750
  hideLiveboardHeader?: boolean;
519
751
  /**
520
752
  * Show or hide the Liveboard title.
521
753
  *
522
- * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
523
754
  * @default false
755
+ * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
756
+ * @example
757
+ * ```js
758
+ * const embed = new LiveboardEmbed('#embed-container', {
759
+ * ... // other options
760
+ * showLiveboardTitle:true,
761
+ * })
762
+ * ```
524
763
  */
525
764
  showLiveboardTitle?: boolean;
526
765
  /**
527
766
  * Show or hide the Liveboard description.
528
767
  *
529
- * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
530
768
  * @default false
769
+ * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
770
+ * @example
771
+ * ```js
772
+ * const embed = new LiveboardEmbed('#embed-container', {
773
+ * ... // other options
774
+ * showLiveboardDescription:true,
775
+ * })
776
+ * ```
531
777
  */
532
778
  showLiveboardDescription?: boolean;
533
779
  /**
@@ -548,8 +794,15 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
548
794
  /**
549
795
  * enable or disable ask sage
550
796
  *
551
- * @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
552
797
  * @default false
798
+ * @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
799
+ * @example
800
+ * ```js
801
+ * const embed = new SearchEmbed('#tsEmbed', {
802
+ * ... // other options
803
+ * enableAskSage:true,
804
+ * })
805
+ * ```
553
806
  */
554
807
  enableAskSage?: boolean;
555
808
  }
@@ -592,7 +845,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
592
845
  * @param renderOptions An object specifying the Liveboard ID,
593
846
  * visualization ID and the runtime filters.
594
847
  */
595
- render(): LiveboardEmbed;
848
+ render(): Promise<LiveboardEmbed>;
596
849
  navigateToLiveboard(liveboardId: string, vizId?: string, activeTabId?: string): void;
597
850
  }
598
851
  /**
@@ -611,7 +864,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
611
864
  * @summary Search embed
612
865
  * @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
613
866
  */
614
- import { DOMSelector, Action, ViewConfig } from '@thoughtspot/visual-embed-sdk/types';
867
+ import { Action, DOMSelector, ViewConfig } from '@thoughtspot/visual-embed-sdk/types';
615
868
  import { TsEmbed } from '@thoughtspot/visual-embed-sdk/embed/ts-embed';
616
869
  /**
617
870
  * Configuration for search options.
@@ -639,27 +892,73 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
639
892
  /**
640
893
  * If set to true, the data sources panel is collapsed on load,
641
894
  * but can be expanded manually.
895
+ *
896
+ * @version: SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
897
+ * @example
898
+ * ```js
899
+ * const embed = new SearchEmbed('#tsEmbed', {
900
+ * ... // other options
901
+ * collapseDataSources:true,
902
+ * })
903
+ * ```
642
904
  */
643
905
  collapseDataSources?: boolean;
644
906
  /**
645
907
  * Show or hide the data sources panel.
908
+ *
909
+ * @version: SDK: 1.2.0 | ThoughtSpot: 9.1.0.sw
910
+ * @example
911
+ * ```js
912
+ * const embed = new SearchEmbed('#tsEmbed', {
913
+ * ... // other options
914
+ * hideDataSources:true,
915
+ * })
916
+ * ```
646
917
  */
647
918
  hideDataSources?: boolean;
648
919
  /**
649
920
  * Show or hide the charts and tables in search answers.
650
921
  * This attribute can be used to create a custom visualization
651
922
  * using raw answer data.
923
+ *
924
+ * @version: SDK: 1.2.0 | ThoughtSpot: 9.1.0.sw
925
+ * @example
926
+ * ```js
927
+ * const embed = new SearchEmbed('#tsEmbed', {
928
+ * ... // other options
929
+ * hideResults:true,
930
+ * })
931
+ * ```
652
932
  */
653
933
  hideResults?: boolean;
934
+ /**
935
+ * If set to true, expands all the data sources panel.
936
+ */
937
+ expandAllDataSource?: boolean;
654
938
  /**
655
939
  * If set to true, the Search Assist feature is enabled.
656
940
  *
657
941
  * @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1-sw
942
+ * @example
943
+ * ```js
944
+ * const embed = new SearchEmbed('#tsEmbed', {
945
+ * ... // other options
946
+ * enableSearchAssist:true,
947
+ * })
948
+ * ```
658
949
  */
659
950
  enableSearchAssist?: boolean;
660
951
  /**
661
952
  * If set to true, the tabular view is set as the default
662
953
  * format for presenting search data.
954
+ *
955
+ * @version: SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
956
+ * @example
957
+ * ```js
958
+ * const embed = new SearchEmbed('#tsEmbed', {
959
+ * ... // other options
960
+ * forceTable:true,
961
+ * })
663
962
  */
664
963
  forceTable?: boolean;
665
964
  /**
@@ -667,12 +966,26 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
667
966
  * Only a single data source is supported currently.
668
967
  *
669
968
  * @deprecated Use `dataSource` instead.
969
+ * @example
970
+ * ```js
971
+ * const embed = new SearchEmbed('#tsEmbed', {
972
+ * ... // other options
973
+ * dataSources:['id-234','id-456'],
974
+ * })
975
+ * ```
670
976
  */
671
977
  dataSources?: string[];
672
978
  /**
673
979
  * The array of data source GUIDs to set on load.
674
980
  *
675
981
  * @version: SDK: 1.19.0
982
+ * @example
983
+ * ```js
984
+ * const embed = new SearchEmbed('#tsEmbed', {
985
+ * ... // other options
986
+ * dataSource:'id-234',
987
+ * })
988
+ * ```
676
989
  */
677
990
  dataSource?: string;
678
991
  /**
@@ -705,6 +1018,15 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
705
1018
  searchOptions?: SearchOptions;
706
1019
  /**
707
1020
  * The GUID of a saved answer to load initially.
1021
+ *
1022
+ * @version: SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
1023
+ * @example
1024
+ * ```js
1025
+ * const embed = new SearchEmbed('#tsEmbed', {
1026
+ * ... // other options
1027
+ * answerId:'sed-1234',
1028
+ * })
1029
+ * ```
708
1030
  */
709
1031
  answerId?: string;
710
1032
  /**
@@ -712,6 +1034,13 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
712
1034
  * The chart/table should still be visible.
713
1035
  *
714
1036
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
1037
+ * @example
1038
+ * ```js
1039
+ * const embed = new SearchEmbed('#tsEmbed', {
1040
+ * ... // other options
1041
+ * hideSearchBar:true,
1042
+ * })
1043
+ * ```
715
1044
  */
716
1045
  hideSearchBar?: boolean;
717
1046
  /**
@@ -719,6 +1048,13 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
719
1048
  *
720
1049
  * @default false
721
1050
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
1051
+ * @example
1052
+ * ```js
1053
+ * const embed = new SearchEmbed('#tsEmbed', {
1054
+ * ... // other options
1055
+ * dataPanelV2:false,
1056
+ * })
1057
+ * ```
722
1058
  */
723
1059
  dataPanelV2?: boolean;
724
1060
  /**
@@ -752,7 +1088,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
752
1088
  /**
753
1089
  * Render the embedded ThoughtSpot search
754
1090
  */
755
- render(): SearchEmbed;
1091
+ render(): Promise<SearchEmbed>;
756
1092
  }
757
1093
  }
758
1094
 
@@ -769,18 +1105,44 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search-bar' {
769
1105
  * Only a single data source is supported currently.
770
1106
  *
771
1107
  * @deprecated Use `dataSource` instead
1108
+ *
1109
+ * @version: SDK: 1.1.0 | ThoughtSpot: 8.1.1-sw
1110
+ *
1111
+ * @example
1112
+ * ```js
1113
+ * const embed = new SearchBarEmbed('#tsEmbed', {
1114
+ * ... // other options
1115
+ * dataSources:['id-2345','id-2345'],
1116
+ * })
1117
+ * ```
772
1118
  */
773
1119
  dataSources?: string[];
774
1120
  /**
775
- * The array of data source GUIDs to set on load.
1121
+ * Pass the ID of the source to be selected.
776
1122
  *
777
1123
  * @version: SDK: 1.19.0, ThoughtSpot 9.0.0.cl, 9.0.1.sw
1124
+ *
1125
+ * @example
1126
+ * ```js
1127
+ * const embed = new SearchBarEmbed('#tsEmbed', {
1128
+ * ... // other options
1129
+ * dataSource:'id-2345',
1130
+ * })
1131
+ * ```
778
1132
  */
779
1133
  dataSource?: string;
780
1134
  /**
781
1135
  * Boolean to define if the last selected data source should be used
782
1136
  *
783
1137
  * @version: SDK: 1.24.0, ThoughtSpot 9.5.0.cl, 9.5.0.sw
1138
+ *
1139
+ * @example
1140
+ * ```js
1141
+ * const embed = new SearchBarEmbed('#tsEmbed', {
1142
+ * ... // other options
1143
+ * useLastSelectedSources:false,
1144
+ * })
1145
+ * ```
784
1146
  */
785
1147
  useLastSelectedSources?: boolean;
786
1148
  /**
@@ -794,12 +1156,17 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search-bar' {
794
1156
  * If it’s not executed, the focus is placed at the end of
795
1157
  * the token string in the search bar.
796
1158
  *
1159
+ * @version: SDK: 1.2.0 | ThoughtSpot: 9.4.0.sw
1160
+ *
797
1161
  * @example
798
1162
  * ```js
799
- * searchOptions: {
800
- * searchTokenString: '[quantity purchased] [region]',
801
- * executeSearch: true,
802
- * }
1163
+ * const embed = new SearchBarEmbed('#tsEmbed', {
1164
+ * ... // other options
1165
+ * searchOptions: {
1166
+ * searchTokenString: '[quantity purchased] [region]',
1167
+ * executeSearch: true,
1168
+ * }
1169
+ * })
803
1170
  * ```
804
1171
  */
805
1172
  searchOptions?: SearchOptions;
@@ -820,7 +1187,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search-bar' {
820
1187
  /**
821
1188
  * Render the embedded ThoughtSpot search
822
1189
  */
823
- render(): SearchBarEmbed;
1190
+ render(): Promise<SearchBarEmbed>;
824
1191
  }
825
1192
  }
826
1193
 
@@ -909,7 +1276,22 @@ declare module '@thoughtspot/visual-embed-sdk/auth' {
909
1276
  *
910
1277
  * @param {@link AuthEvent}
911
1278
  */
912
- emit(event: AuthEvent): void;
1279
+ emit(event: AuthEvent, ...args: any[]): boolean;
1280
+ /**
1281
+ * Remove listener from the emitter returned from init.
1282
+ *
1283
+ * @param event
1284
+ * @param listener
1285
+ * @param context
1286
+ * @param once
1287
+ */
1288
+ off(event: AuthStatus, listener: (...args: any[]) => void, context: any, once: boolean): this;
1289
+ /**
1290
+ * Remove all the event listeners
1291
+ *
1292
+ * @param event
1293
+ */
1294
+ removeAllListeners(event: AuthStatus): this;
913
1295
  }
914
1296
  /**
915
1297
  * Events which can be triggered on the emitter returned from {@link init}.
@@ -1146,6 +1528,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1146
1528
  * .then((data) => data.token);
1147
1529
  * }
1148
1530
  * });
1531
+ * });
1149
1532
  * ```
1150
1533
  */
1151
1534
  TrustedAuthToken = "AuthServer",
@@ -1178,16 +1561,39 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1178
1561
  */
1179
1562
  Basic = "Basic"
1180
1563
  }
1564
+ /**
1565
+ *
1566
+ * This option does not apply to the classic homepage experience.
1567
+ * To access the updated modular homepage,
1568
+ * set `modularHomeExperience` to `true`
1569
+ * (available as Early Access feature in 9.12.5.cl).
1570
+ *
1571
+ */
1181
1572
  export enum HomeLeftNavItem {
1182
- QueryBuilder = "query-builder",
1573
+ /**
1574
+ * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
1575
+ */
1576
+ SearchData = "search-data",
1577
+ /**
1578
+ * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
1579
+ */
1183
1580
  Home = "insights-home",
1581
+ /**
1582
+ * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
1583
+ */
1184
1584
  Liveboards = "liveboards",
1585
+ /**
1586
+ * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
1587
+ */
1185
1588
  Answers = "answers",
1589
+ /**
1590
+ * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
1591
+ */
1186
1592
  MonitorSubscription = "monitor-alerts",
1187
- SpotIQAnalysis = "spotiq-analysis",
1188
- Tutorials = "tutorials",
1189
- Documentation = "documentation",
1190
- Community = "community"
1593
+ /**
1594
+ * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
1595
+ */
1596
+ SpotIQAnalysis = "spotiq-analysis"
1191
1597
  }
1192
1598
  export type DOMSelector = string | HTMLElement;
1193
1599
  /**
@@ -1243,6 +1649,8 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1243
1649
  /**
1244
1650
  * Configuration to define the customization on the Embedded
1245
1651
  * Thoughtspot components.
1652
+ * You can customize styles, text strings, and icons.
1653
+ * For more information, see https://developers.thoughtspot.com/docs/custom-css.
1246
1654
  *
1247
1655
  * @example
1248
1656
  * ```js
@@ -1257,7 +1665,12 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1257
1665
  * },
1258
1666
  * content: {
1259
1667
  * strings: {
1260
- * 'LIVEBOARDS': 'Dashboards'
1668
+ * 'LIVEBOARDS': 'Dashboards',
1669
+ * 'ANSWERS': 'Visualizations',
1670
+ * 'Edit': 'Modify',
1671
+ * 'Show underlying data': 'Show source data',
1672
+ * 'SpotIQ': 'Insights',
1673
+ * 'Monitor': 'Alerts',
1261
1674
  * }
1262
1675
  * },
1263
1676
  * iconSpriteUrl: 'https://my-custom-icon-sprite.svg'
@@ -1289,12 +1702,6 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1289
1702
  * The ThoughtSpot cluster hostname or IP address.
1290
1703
  */
1291
1704
  thoughtSpotHost: string;
1292
- /**
1293
- * If true, all the iframe links will have /v2 added automatically.
1294
- * If false, all the iframe links will have /v1 added automatically.
1295
- * If undefined, nothing will be added
1296
- */
1297
- enableReactShell?: boolean | undefined;
1298
1705
  /**
1299
1706
  * The authentication mechanism to use.
1300
1707
  */
@@ -1539,6 +1946,12 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1539
1946
  * @version SDK: 1.26.7 | ThoughtSpot: 9.10.0.cl
1540
1947
  */
1541
1948
  logLevel?: LogLevel;
1949
+ /**
1950
+ * Disables the Mixpanel tracking from the SDK.
1951
+ *
1952
+ * @version SDK: 1.27.9
1953
+ */
1954
+ disableSDKTracking?: boolean;
1542
1955
  }
1543
1956
  export interface LayoutConfig {
1544
1957
  }
@@ -1577,8 +1990,20 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1577
1990
  */
1578
1991
  layoutConfig?: LayoutConfig;
1579
1992
  /**
1580
- * The <b>width</b> and <b>height</b> dimensions to render an embedded
1993
+ * The width and height dimensions to render an embedded
1581
1994
  * object inside your app. Specify the values in pixels or percentage.
1995
+ *
1996
+ * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1
1997
+ * @example
1998
+ * ```js
1999
+ * const embed = new LiveboardEmbed('#embed', {
2000
+ * ... // other liveboard view config
2001
+ * frameParams: {
2002
+ * width: '500px' | '50%',
2003
+ * height: '400px' | '60%',
2004
+ * },
2005
+ * });
2006
+ * ```
1582
2007
  */
1583
2008
  frameParams?: FrameParams;
1584
2009
  /**
@@ -1595,6 +2020,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1595
2020
  * for the user.
1596
2021
  * Use this to disable actions.
1597
2022
  *
2023
+ * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
1598
2024
  * @example
1599
2025
  * ```js
1600
2026
  * const embed = new LiveboardEmbed('#embed', {
@@ -1606,6 +2032,16 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1606
2032
  disabledActions?: Action[];
1607
2033
  /**
1608
2034
  * The tooltip to display for disabled actions.
2035
+ *
2036
+ * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
2037
+ * @example
2038
+ * ```js
2039
+ * const embed = new LiveboardEmbed('#embed', {
2040
+ * ... // other liveboard view config
2041
+ * disabledActions: [Action.Download, Action.Save]
2042
+ * disabledActionReason: "Reason for disabling",
2043
+ * });
2044
+ * ```
1609
2045
  */
1610
2046
  disabledActionReason?: string;
1611
2047
  /**
@@ -1613,6 +2049,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1613
2049
  * This actions will be hidden from the user.
1614
2050
  * Use this to hide an action.
1615
2051
  *
2052
+ * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
1616
2053
  * @example
1617
2054
  * ```js
1618
2055
  * const embed = new LiveboardEmbed('#embed', {
@@ -1633,17 +2070,46 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1633
2070
  *
1634
2071
  * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
1635
2072
  * @important
2073
+ * @example
2074
+ * ```js
2075
+ * const embed = new LiveboardEmbed('#embed', {
2076
+ * ... // other liveboard view config
2077
+ * visibleActions: [Action.Download, Action.Export]
2078
+ * });
2079
+ * ```
1636
2080
  */
1637
2081
  visibleActions?: Action[];
1638
2082
  /**
1639
2083
  * Show alert messages and toast messages in the embedded view.
1640
2084
  *
1641
2085
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2086
+ * @example
2087
+ * ```js
2088
+ * const embed = new LiveboardEmbed('#embed-container', {
2089
+ * ... // other options
2090
+ * showAlerts:true,
2091
+ * })
2092
+ * ```
1642
2093
  */
1643
2094
  showAlerts?: boolean;
1644
2095
  /**
1645
2096
  * The list of runtime filters to apply to a search answer,
1646
2097
  * visualization, or Liveboard.
2098
+ *
2099
+ * @version SDK: 1.9.4 | ThoughtSpot 8.1.0.cl, 8.4.1.sw
2100
+ * @example
2101
+ * ```js
2102
+ * const embed = new LiveboardEmbed('#embed-container', {
2103
+ * ... // other options
2104
+ * runtimeFilters: [
2105
+ * {
2106
+ * columnName: 'value',
2107
+ * operator: RuntimeFilterOp.EQ,
2108
+ * values: ['string' | 123 | true],
2109
+ * },
2110
+ * ],
2111
+ * })
2112
+ * ```
1647
2113
  */
1648
2114
  runtimeFilters?: RuntimeFilter[];
1649
2115
  /**
@@ -1651,12 +2117,31 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1651
2117
  * visualization, or Liveboard.
1652
2118
  *
1653
2119
  * @version SDK : 1.25.0 | Thoughtspot: 9.2.0.cl, 9.5.0.sw
2120
+ * @example
2121
+ * ```js
2122
+ * const embed = new LiveboardEmbed('#embed-container', {
2123
+ * ... // other options
2124
+ * runtimeParameters: [
2125
+ * {
2126
+ * name: 'value',
2127
+ * value: 'string' | 123 | true,
2128
+ * },
2129
+ * ],
2130
+ * })
2131
+ * ```
1654
2132
  */
1655
2133
  runtimeParameters?: RuntimeParameter[];
1656
2134
  /**
1657
2135
  * The locale/language to use for the embedded view.
1658
2136
  *
1659
2137
  * @version SDK: 1.9.4 | ThoughtSpot 8.1.0.cl, 8.4.1.sw
2138
+ * @example
2139
+ * ```js
2140
+ * const embed = new LiveboardEmbed('#embed-container', {
2141
+ * ... // other options
2142
+ * locale:'en',
2143
+ * })
2144
+ * ```
1660
2145
  */
1661
2146
  locale?: string;
1662
2147
  /**
@@ -1667,6 +2152,16 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1667
2152
  * to control embed behavior in non-regular ways. We do not publish the
1668
2153
  * list of supported keys and values associated with each.
1669
2154
  *
2155
+ * @example
2156
+ * ```js
2157
+ * const embed = new LiveboardEmbed('#embed', {
2158
+ * ... // other liveboard view config
2159
+ * additionalFlags: {
2160
+ * flag1: 'value1',
2161
+ * flag2: 'value2'
2162
+ * }
2163
+ * });
2164
+ * ```
1670
2165
  * @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
1671
2166
  */
1672
2167
  additionalFlags?: {
@@ -1683,18 +2178,41 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1683
2178
  /**
1684
2179
  * Insert as a sibling of the target container, instead of appending to a
1685
2180
  * child inside it.
2181
+ *
2182
+ * @version SDK: 1.2.0 | Thoughtspot: 9.0.0.cl, 9.0.0.sw
2183
+ * @example
2184
+ * ```js
2185
+ * const embed = new LiveboardEmbed('#embed-container', {
2186
+ * ... // other options
2187
+ * insertAsSibling:true,
2188
+ * })
2189
+ * ```
1686
2190
  */
1687
2191
  insertAsSibling?: boolean;
1688
2192
  /**
1689
2193
  * flag to set ContextMenu Trigger to either left or right click.
1690
2194
  *
2195
+ * @example
2196
+ * ```js
2197
+ * const embed = new LiveboardEmbed('#tsEmbed', {
2198
+ * ... // other options
2199
+ * contextMenuTrigger:ContextMenuTriggerOptions.LEFT_CLICK || RIGHT_CLICK,
2200
+ * })
2201
+ * ```
1691
2202
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1692
2203
  */
1693
2204
  contextMenuTrigger?: ContextMenuTriggerOptions;
1694
2205
  /**
1695
- * flag to override openNew tab context menu link
2206
+ * Flag to override openNew tab context menu link
1696
2207
  *
1697
2208
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
2209
+ * @example
2210
+ * ```js
2211
+ * const embed = new LiveboardEmbed('#embed-container', {
2212
+ * ... // other options
2213
+ * linkOverride:false,
2214
+ * })
2215
+ * ```
1698
2216
  */
1699
2217
  linkOverride?: boolean;
1700
2218
  /**
@@ -1716,9 +2234,14 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1716
2234
  usePrerenderedIfAvailable?: boolean;
1717
2235
  /**
1718
2236
  * Boolean to exclude runtimeFilters in the URL
2237
+ * By default it is true, this flag removes runtime filters from the URL
2238
+ * when set to false, runtime filters will be included in the URL.
1719
2239
  *
1720
- * @default false
1721
- * @hidden
2240
+ * Irrespective of this flag, runtime filters ( if passed ) will be applied to the
2241
+ * embedded view.
2242
+ *
2243
+ * @default true
2244
+ * @version SDK: 1.24.0 | ThoughtSpot: 9.5.0.cl
1722
2245
  */
1723
2246
  excludeRuntimeFiltersfromURL?: boolean;
1724
2247
  /**
@@ -1740,16 +2263,42 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1740
2263
  hiddenTabs?: string[];
1741
2264
  /**
1742
2265
  * Hide the home page modules
1743
- * eg: hiddenHomepageModules = [HomepageModule.MyLibrary]
2266
+ * For example: hiddenHomepageModules = [HomepageModule.MyLibrary]
2267
+ *
2268
+ *
1744
2269
  *
1745
- * @version SDK: 1.27.0 | Thoughtspot: 9.12.0.cl
2270
+ * **Note**: This option does not apply to the classic homepage.
2271
+ * To access the updated modular homepage, set
2272
+ * `modularHomeExperience` to `true` (available as Early Access feature in 9.12.0.cl).
2273
+ *
2274
+ * @version SDK: 1.28.0 | Thoughtspot: 9.12.5.cl
2275
+ * @example
2276
+ * ```js
2277
+ * const embed = new AppEmbed('#tsEmbed', {
2278
+ * ... // other options
2279
+ * hiddenHomepageModules : [HomepageModule.Favorite,HomepageModule.Learning],
2280
+ * })
2281
+ * ```
1746
2282
  */
1747
2283
  hiddenHomepageModules?: HomepageModule[];
1748
2284
  /**
1749
2285
  * reordering the home page modules
1750
2286
  * eg: reorderedHomepageModules = [HomepageModule.MyLibrary, HomepageModule.Watchlist]
1751
2287
  *
1752
- * @version SDK: 1.28.0 | Thoughtspot: 9.12.0.cl
2288
+ *
2289
+ * **Note**: This option does not apply to the classic homepage.
2290
+ * To access the updated modular homepage, set
2291
+ * `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
2292
+ *
2293
+ * @version SDK: 1.28.0| Thoughtspot: 9.12.5.cl
2294
+ *
2295
+ * @example
2296
+ * ```js
2297
+ * const embed = new AppEmbed('#tsEmbed', {
2298
+ * ... // other options
2299
+ * reorderedHomepageModules:[HomepageModule.Favorite,HomepageModule.MyLibrary]
2300
+ * })
2301
+ * ```
1753
2302
  */
1754
2303
  reorderedHomepageModules?: HomepageModule[];
1755
2304
  /**
@@ -1758,13 +2307,17 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1758
2307
  *
1759
2308
  * Use either `visibleTabs` or `hiddenTabs`.
1760
2309
  *
2310
+ * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
1761
2311
  * @example
1762
2312
  * ```js
1763
- * visibleTabs: [
1764
- * '430496d6-6903-4601-937e-2c691821af3c',
1765
- * 'f547ec54-2a37-4516-a222-2b06719af726']
2313
+ * const embed = new LiveboardEmbed('#embed-container', {
2314
+ * ... // other options
2315
+ * visibleTabs: [
2316
+ * '430496d6-6903-4601-937e-2c691821af3c',
2317
+ * 'f547ec54-2a37-4516-a222-2b06719af726'
2318
+ * ]
2319
+ * })
1766
2320
  * ```
1767
- * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
1768
2321
  */
1769
2322
  visibleTabs?: string[];
1770
2323
  /**
@@ -1772,11 +2325,22 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1772
2325
  * There are 8 eight home navigation list items.
1773
2326
  * To hide these items, specify the string in the array.
1774
2327
  *
2328
+ * @version SDK: 1.27.0 | Thoughtspot: 9.10.0.cl
2329
+ * @example
1775
2330
  * ```js
1776
- * hiddenHomeLeftNavItems = [HomeLeftNavItem.Home]
2331
+ * const embed = new AppEmbed('#tsEmbed', {
2332
+ * ... // other options
2333
+ * hiddenHomeLeftNavItems : [HomeLeftNavItem.Home,HomeLeftNavItem.Answers],
2334
+ * })
1777
2335
  * ```
1778
2336
  *
1779
- * @version SDK: 1.27.0 | Thoughtspot: 9.12.0.cl
2337
+ *
2338
+ *
2339
+ * **Note**: This option does not apply to the classic homepage.
2340
+ * To access the updated modular homepage, set
2341
+ * `modularHomeExperience` to `true` (available in Early Access from 9.12 forward).
2342
+ *
2343
+ * @version SDK: 1.28.0 | Thoughtspot: 9.12.5.cl
1780
2344
  */
1781
2345
  hiddenHomeLeftNavItems?: HomeLeftNavItem[];
1782
2346
  /**
@@ -1803,7 +2367,9 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1803
2367
  *
1804
2368
  * @type {boolean}
1805
2369
  * @default false
2370
+ * @version SDK: 1.24.0 | ThoughtSpot:9.4.0.cl, 9.4.0.sw
1806
2371
  * @example
2372
+ * ```js
1807
2373
  * // Disable tracking PreRender size in the configuration
1808
2374
  * const config = {
1809
2375
  * doNotTrackPreRenderSize: true,
@@ -1811,6 +2377,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1811
2377
  *
1812
2378
  * // Instantiate an object with the configuration
1813
2379
  * const myComponent = new MyComponent(config);
2380
+ * ```
1814
2381
  */
1815
2382
  doNotTrackPreRenderSize?: boolean;
1816
2383
  /**
@@ -1931,7 +2498,12 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1931
2498
  IN = "IN"
1932
2499
  }
1933
2500
  /**
1934
- * Home page module that can be hidden
2501
+ * Home page module that can be hidden.
2502
+ * **Note**: This option does not apply to the classic homepage.
2503
+ * To access the updated modular homepage, set
2504
+ * `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
2505
+ *
2506
+ * @version SDK: 1.28.0 | Thoughtspot: 9.12.5.cl
1935
2507
  */
1936
2508
  export enum HomepageModule {
1937
2509
  /**
@@ -2090,7 +2662,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2090
2662
  * @returns nonFilteredColumns - The columns that were not filtered
2091
2663
  * @example
2092
2664
  *```js
2093
- * searchEmbed.trigger(HostEvent.DrillDown, {
2665
+ * searchEmbed.trigger(EmbedEvent.DrillDown, {
2094
2666
  * points: {
2095
2667
  * clickedPoint,
2096
2668
  * selectedPoints: selectedPoint
@@ -2182,7 +2754,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2182
2754
  * @important
2183
2755
  * @example
2184
2756
  * ```js
2185
- * embed.on(ThoughtSpotEmbed.Event.VizPointClick, ({data}) => {
2757
+ * embed.on(EmbedEvent.VizPointClick, ({data}) => {
2186
2758
  * console.log(
2187
2759
  * data.vizId, // viz id
2188
2760
  * data.clickedPoint.selectedAttributes[0].value,
@@ -2197,19 +2769,21 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2197
2769
  /**
2198
2770
  * An error has occurred. This event is fired for the following error types:
2199
2771
  *
2200
- * `API` - API call failure error.
2772
+ * API - API call failure error.
2201
2773
  *
2202
- * `FULLSCREEN` - Error when presenting a Liveboard or visualization in full screen mode.
2774
+ * FULLSCREEN - Error when presenting a Liveboard or visualization in full screen
2775
+ * mode.
2203
2776
  *
2204
- * `SINGLE_VALUE_FILTER` - Error due to multiple values in the single value filter.
2777
+ * SINGLE_VALUE_FILTER - Error due to multiple values in the single value filter.
2205
2778
  *
2206
- * `NON_EXIST_FILTER` - Error due to a non-existent filter.
2779
+ * NON_EXIST_FILTER - Error due to a non-existent filter.
2207
2780
  *
2208
- * `INVALID_DATE_VALUE` - Invalid date value error.
2781
+ * INVALID_DATE_VALUE - Invalid date value error.
2209
2782
  *
2210
- * `INVALID_OPERATOR` - Use of invalid operator during filter application.
2783
+ * INVALID_OPERATOR - Use of invalid operator during filter application.
2211
2784
  *
2212
2785
  * For more information, see [Developer Documentation](https://developers.thoughtspot.com/docs/events-app-integration#errorType)
2786
+ *
2213
2787
  * @returns error - An error object or message
2214
2788
  * @example
2215
2789
  * ```js
@@ -2774,7 +3348,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2774
3348
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2775
3349
  * @example
2776
3350
  *```js
2777
- * liveboardEmbed.trigger(HostEvent.Delete,
3351
+ * liveboardEmbed.trigger(EmbedEvent.Delete,
2778
3352
  * {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
2779
3353
  *```
2780
3354
  */
@@ -2785,7 +3359,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2785
3359
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2786
3360
  * @example
2787
3361
  *```js
2788
- * liveboardEmbed.trigger(HostEvent.SchedulesList)
3362
+ * liveboardEmbed.trigger(EmbedEvent.SchedulesList)
2789
3363
  *```
2790
3364
  */
2791
3365
  SchedulesList = "schedule-list",
@@ -2795,7 +3369,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2795
3369
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2796
3370
  * @example
2797
3371
  *```js
2798
- * liveboardEmbed.trigger(HostEvent.Cancel)
3372
+ * liveboardEmbed.trigger(EmbedEvent.Cancel)
2799
3373
  *```
2800
3374
  */
2801
3375
  Cancel = "cancel",
@@ -2805,7 +3379,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2805
3379
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2806
3380
  * @example
2807
3381
  *```js
2808
- * liveboardEmbed.trigger(HostEvent.Explore, {
3382
+ * liveboardEmbed.trigger(EmbedEvent.Explore, {
2809
3383
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
2810
3384
  *```
2811
3385
  */
@@ -2816,7 +3390,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2816
3390
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2817
3391
  * @example
2818
3392
  *```js
2819
- * liveboardEmbed.trigger(HostEvent.CopyLink, {
3393
+ * liveboardEmbed.trigger(EmbedEvent.CopyLink, {
2820
3394
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
2821
3395
  *```
2822
3396
  */
@@ -3085,10 +3659,13 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
3085
3659
  * _String_. The name of the column to filter on.
3086
3660
  * `operator`
3087
3661
  * Runtime filter operator to apply. For information,
3088
- * see [Runtime filter operators](https://developers.thoughtspot.com/docs/?pageid=runtime-filters#rtOperator).
3662
+ * see https://developers.thoughtspot.com/docs/?pageid=runtime-filters#rtOperator.
3089
3663
  * `values`
3090
3664
  * List of operands. Some operators such as EQ, LE allow a single value, whereas
3091
3665
  * operators such as BW and IN accept multiple operands.
3666
+ * **Note**: `HostEvent.UpdateRuntimeFilters` is not supported in
3667
+ * Search embedding (SearchEmbed) and Natural Language Search
3668
+ * embedding (SageEmbed).
3092
3669
  *
3093
3670
  * @param - {@link RuntimeFilter}[] an array of {@link RuntimeFilter} Types.
3094
3671
  * @example
@@ -3613,6 +4190,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
3613
4190
  /**
3614
4191
  *
3615
4192
  * Get the currents visible and runtime filters applied on a Liveboard
4193
+ *
3616
4194
  * @example
3617
4195
  * liveboardEmbed.trigger(HostEvent.GetFilters)
3618
4196
  * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
@@ -3621,12 +4199,13 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
3621
4199
  /**
3622
4200
  *
3623
4201
  * Update the visible filters on the Liveboard.
4202
+ *
3624
4203
  * @param - filter: filter object containing column name and filter operation and values
3625
4204
  * @example
3626
4205
  *
3627
4206
  * ```js
3628
4207
  * liveboardEmbed.trigger(HostEvent.UpdateFilters, {
3629
- * filter: { column: 'column name', oper: 'in', values: [1,2,3], is_mandatory: false }
4208
+ * filter: { column: 'column name', oper: 'IN', values: [1,2,3], is_mandatory: false }
3630
4209
  * })
3631
4210
  * ```
3632
4211
  * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
@@ -3712,7 +4291,33 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
3712
4291
  * ```
3713
4292
  * @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
3714
4293
  */
3715
- AskSage = "AskSage"
4294
+ AskSage = "AskSage",
4295
+ /**
4296
+ * Trigger UpdateCrossFilter for Liveboard
4297
+ *
4298
+ * @example
4299
+ * ```js
4300
+ * liveboardEmbed.trigger(HostEvent.UpdateCrossFilter, {
4301
+ * vizId: 'b535c760-8bbe-4e6f-bb26-af56b4129a1e',
4302
+ * conditions: [
4303
+ * { columnName: 'Category', values: ['mfgr#12','mfgr#14'] },
4304
+ * { columnName: 'color', values: ['mint','hot'] },
4305
+ * ],
4306
+ * });
4307
+ * ```
4308
+ * @version SDK: 1.29.0 | Thoughtspot: 10.0.0.cl
4309
+ */
4310
+ UpdateCrossFilter = "UpdateCrossFilter",
4311
+ /**
4312
+ * Trigger ResetLiveboardPersonalisedView for Liveboard
4313
+ *
4314
+ * @example
4315
+ * ```js
4316
+ * liveboardEmbed.trigger(HostEvent.ResetLiveboardPersonalisedView);
4317
+ * ```
4318
+ * @version SDK: 1.29.0 | Thoughtspot: 10.1.0.cl
4319
+ */
4320
+ ResetLiveboardPersonalisedView = "ResetLiveboardPersonalisedView"
3716
4321
  }
3717
4322
  /**
3718
4323
  * The different visual modes that the data sources panel within
@@ -4680,6 +5285,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
4680
5285
  AskAi = "AskAi",
4681
5286
  /**
4682
5287
  * The **Add KPI to Watchlist** action on Home page watchlist.
5288
+ *
4683
5289
  * @example
4684
5290
  * ```js
4685
5291
  * disabledActions: [Action.AddToWatchlist]
@@ -4689,6 +5295,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
4689
5295
  AddToWatchlist = "addToWatchlist",
4690
5296
  /**
4691
5297
  * The **Remove from watchlist** menu action on KPI watchlist.
5298
+ *
4692
5299
  * @example
4693
5300
  * ```js
4694
5301
  * disabledActions: [Action.RemoveFromWatchlist]
@@ -4698,13 +5305,24 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
4698
5305
  RemoveFromWatchlist = "removeFromWatchlist",
4699
5306
  /**
4700
5307
  * The **Copy KPI Link** menu action on KPI watchlist.
5308
+ *
4701
5309
  * @example
4702
5310
  * ```js
4703
5311
  * disabledActions: [Action.CopyKpiLink]
4704
5312
  * ```
4705
5313
  * @version SDK : 1.27.9 | Thoughtspot: 9.12.5.cl
4706
5314
  */
4707
- CopyKpiLink = "copyKpiLink"
5315
+ CopyKpiLink = "copyKpiLink",
5316
+ /**
5317
+ * Action ID for AI Highlights button
5318
+ *
5319
+ * @example
5320
+ * ```js
5321
+ * hiddenAction: [Action.AIHighlights]
5322
+ * ```
5323
+ * @version SDK: 1.27.10 | Thoughtspot: 9.12.5.cl
5324
+ */
5325
+ AIHighlights = "AIHighlights"
4708
5326
  }
4709
5327
  export interface AnswerServiceType {
4710
5328
  getAnswer?: (offset: number, batchSize: number) => any;
@@ -5350,7 +5968,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/sage' {
5350
5968
  *
5351
5969
  * @returns {SageEmbed} Eureka/Sage embed
5352
5970
  */
5353
- render(): SageEmbed;
5971
+ render(): Promise<SageEmbed>;
5354
5972
  }
5355
5973
  }
5356
5974
 
@@ -5538,6 +6156,19 @@ declare module '@thoughtspot/visual-embed-sdk/mixpanel-service' {
5538
6156
  export function testResetMixpanel(): void;
5539
6157
  }
5540
6158
 
6159
+ declare module '@thoughtspot/visual-embed-sdk/tokenizedFetch' {
6160
+ /**
6161
+ * Fetch wrapper that adds the authentication token to the request.
6162
+ * Use this to call the ThoughtSpot APIs when using the visual embed sdk.
6163
+ *
6164
+ * @param input
6165
+ * @param init
6166
+ * @version SDK: 1.28.0
6167
+ * @group Global methods
6168
+ */
6169
+ export const tokenizedFetch: typeof fetch;
6170
+ }
6171
+
5541
6172
  declare module '@thoughtspot/visual-embed-sdk/embed/ts-embed' {
5542
6173
  /**
5543
6174
  * Copyright (c) 2022
@@ -5547,8 +6178,8 @@ declare module '@thoughtspot/visual-embed-sdk/embed/ts-embed' {
5547
6178
  * @summary Base classes
5548
6179
  * @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
5549
6180
  */
6181
+ import { DOMSelector, EmbedConfig, EmbedEvent, HostEvent, MessageCallback, MessageOptions, ViewConfig } from '@thoughtspot/visual-embed-sdk/types';
5550
6182
  import { AnswerService } from '@thoughtspot/visual-embed-sdk/utils/graphql/answerService/answerService';
5551
- import { DOMSelector, HostEvent, EmbedEvent, MessageCallback, EmbedConfig, MessageOptions, ViewConfig } from '@thoughtspot/visual-embed-sdk/types';
5552
6183
  /**
5553
6184
  * Global prefix for all Thoughtspot postHash Params.
5554
6185
  */
@@ -5733,7 +6364,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/ts-embed' {
5733
6364
  *
5734
6365
  * @param args
5735
6366
  */
5736
- render(): TsEmbed;
6367
+ render(): Promise<TsEmbed>;
5737
6368
  getIframeSrc(): string;
5738
6369
  protected handleRenderForPrerender(): void;
5739
6370
  /**