@thoughtspot/visual-embed-sdk 1.26.2 → 1.27.0-logger

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 (304) hide show
  1. package/README.md +1 -1
  2. package/cjs/package.json +1 -1
  3. package/cjs/src/auth.d.ts +4 -4
  4. package/cjs/src/auth.d.ts.map +1 -1
  5. package/cjs/src/auth.js +15 -8
  6. package/cjs/src/auth.js.map +1 -1
  7. package/cjs/src/embed/app.d.ts +14 -14
  8. package/cjs/src/embed/app.d.ts.map +1 -1
  9. package/cjs/src/embed/app.js +4 -3
  10. package/cjs/src/embed/app.js.map +1 -1
  11. package/cjs/src/embed/app.spec.js +5 -4
  12. package/cjs/src/embed/app.spec.js.map +1 -1
  13. package/cjs/src/embed/base.d.ts.map +1 -1
  14. package/cjs/src/embed/base.js +5 -2
  15. package/cjs/src/embed/base.js.map +1 -1
  16. package/cjs/src/embed/base.spec.js +3 -2
  17. package/cjs/src/embed/base.spec.js.map +1 -1
  18. package/cjs/src/embed/embed.spec.js +2 -1
  19. package/cjs/src/embed/embed.spec.js.map +1 -1
  20. package/cjs/src/embed/embedConfig.d.ts +2 -1
  21. package/cjs/src/embed/embedConfig.d.ts.map +1 -1
  22. package/cjs/src/embed/embedConfig.js +2 -0
  23. package/cjs/src/embed/embedConfig.js.map +1 -1
  24. package/cjs/src/embed/events.spec.js +3 -2
  25. package/cjs/src/embed/events.spec.js.map +1 -1
  26. package/cjs/src/embed/liveboard.d.ts +28 -23
  27. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  28. package/cjs/src/embed/liveboard.js +4 -3
  29. package/cjs/src/embed/liveboard.js.map +1 -1
  30. package/cjs/src/embed/sage.d.ts +47 -29
  31. package/cjs/src/embed/sage.d.ts.map +1 -1
  32. package/cjs/src/embed/sage.js +1 -1
  33. package/cjs/src/embed/sage.js.map +1 -1
  34. package/cjs/src/embed/search-bar.d.ts +22 -6
  35. package/cjs/src/embed/search-bar.d.ts.map +1 -1
  36. package/cjs/src/embed/search-bar.js.map +1 -1
  37. package/cjs/src/embed/search.d.ts +33 -18
  38. package/cjs/src/embed/search.d.ts.map +1 -1
  39. package/cjs/src/embed/search.js +4 -1
  40. package/cjs/src/embed/search.js.map +1 -1
  41. package/cjs/src/embed/search.spec.js +10 -0
  42. package/cjs/src/embed/search.spec.js.map +1 -1
  43. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  44. package/cjs/src/embed/ts-embed.js +37 -17
  45. package/cjs/src/embed/ts-embed.js.map +1 -1
  46. package/cjs/src/embed/ts-embed.spec.js +141 -26
  47. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  48. package/cjs/src/index.d.ts +2 -2
  49. package/cjs/src/index.d.ts.map +1 -1
  50. package/cjs/src/index.js +2 -1
  51. package/cjs/src/index.js.map +1 -1
  52. package/cjs/src/mixpanel-service.d.ts.map +1 -1
  53. package/cjs/src/mixpanel-service.js +2 -1
  54. package/cjs/src/mixpanel-service.js.map +1 -1
  55. package/cjs/src/react/index.spec.js +2 -14
  56. package/cjs/src/react/index.spec.js.map +1 -1
  57. package/cjs/src/types.d.ts +751 -242
  58. package/cjs/src/types.d.ts.map +1 -1
  59. package/cjs/src/types.js +665 -176
  60. package/cjs/src/types.js.map +1 -1
  61. package/cjs/src/utils/authService/authService.d.ts.map +1 -1
  62. package/cjs/src/utils/authService/authService.js +3 -2
  63. package/cjs/src/utils/authService/authService.js.map +1 -1
  64. package/cjs/src/utils/authService/authService.spec.js +3 -2
  65. package/cjs/src/utils/authService/authService.spec.js.map +1 -1
  66. package/cjs/src/utils/authService/tokenizedAuthService.d.ts.map +1 -1
  67. package/cjs/src/utils/authService/tokenizedAuthService.js +2 -1
  68. package/cjs/src/utils/authService/tokenizedAuthService.js.map +1 -1
  69. package/cjs/src/utils/graphql/answerService/answerService.d.ts +2 -4
  70. package/cjs/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  71. package/cjs/src/utils/graphql/answerService/answerService.js +2 -4
  72. package/cjs/src/utils/graphql/answerService/answerService.js.map +1 -1
  73. package/cjs/src/utils/logger.d.ts +4 -14
  74. package/cjs/src/utils/logger.d.ts.map +1 -1
  75. package/cjs/src/utils/logger.js +37 -41
  76. package/cjs/src/utils/logger.js.map +1 -1
  77. package/cjs/src/utils/logger.spec.d.ts +25 -0
  78. package/cjs/src/utils/logger.spec.d.ts.map +1 -0
  79. package/cjs/src/utils/logger.spec.js +80 -0
  80. package/cjs/src/utils/logger.spec.js.map +1 -0
  81. package/cjs/src/utils/processData.d.ts +6 -0
  82. package/cjs/src/utils/processData.d.ts.map +1 -1
  83. package/cjs/src/utils/processData.js +5 -1
  84. package/cjs/src/utils/processData.js.map +1 -1
  85. package/cjs/src/utils/processTrigger.js +1 -1
  86. package/dist/src/auth.d.ts +4 -4
  87. package/dist/src/auth.d.ts.map +1 -1
  88. package/dist/src/embed/app.d.ts +14 -14
  89. package/dist/src/embed/app.d.ts.map +1 -1
  90. package/dist/src/embed/base.d.ts.map +1 -1
  91. package/dist/src/embed/embedConfig.d.ts +2 -1
  92. package/dist/src/embed/embedConfig.d.ts.map +1 -1
  93. package/dist/src/embed/liveboard.d.ts +28 -23
  94. package/dist/src/embed/liveboard.d.ts.map +1 -1
  95. package/dist/src/embed/sage.d.ts +47 -29
  96. package/dist/src/embed/sage.d.ts.map +1 -1
  97. package/dist/src/embed/search-bar.d.ts +22 -6
  98. package/dist/src/embed/search-bar.d.ts.map +1 -1
  99. package/dist/src/embed/search.d.ts +33 -18
  100. package/dist/src/embed/search.d.ts.map +1 -1
  101. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  102. package/dist/src/index.d.ts +2 -2
  103. package/dist/src/index.d.ts.map +1 -1
  104. package/dist/src/mixpanel-service.d.ts.map +1 -1
  105. package/dist/src/types.d.ts +751 -242
  106. package/dist/src/types.d.ts.map +1 -1
  107. package/dist/src/utils/authService/authService.d.ts.map +1 -1
  108. package/dist/src/utils/authService/tokenizedAuthService.d.ts.map +1 -1
  109. package/dist/src/utils/graphql/answerService/answerService.d.ts +2 -4
  110. package/dist/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  111. package/dist/src/utils/logger.d.ts +4 -14
  112. package/dist/src/utils/logger.d.ts.map +1 -1
  113. package/dist/src/utils/logger.spec.d.ts +25 -0
  114. package/dist/src/utils/logger.spec.d.ts.map +1 -0
  115. package/dist/src/utils/processData.d.ts +6 -0
  116. package/dist/src/utils/processData.d.ts.map +1 -1
  117. package/dist/tsembed-react.es.js +18186 -404
  118. package/dist/tsembed-react.js +18185 -403
  119. package/dist/tsembed.es.js +18336 -545
  120. package/dist/tsembed.js +32457 -14667
  121. package/dist/visual-embed-sdk-react-full.d.ts +903 -341
  122. package/dist/visual-embed-sdk-react.d.ts +903 -341
  123. package/dist/visual-embed-sdk.d.ts +903 -341
  124. package/lib/package.json +1 -1
  125. package/lib/src/auth.d.ts +4 -4
  126. package/lib/src/auth.d.ts.map +1 -1
  127. package/lib/src/auth.js +15 -8
  128. package/lib/src/auth.js.map +1 -1
  129. package/lib/src/embed/app.d.ts +14 -14
  130. package/lib/src/embed/app.d.ts.map +1 -1
  131. package/lib/src/embed/app.js +4 -3
  132. package/lib/src/embed/app.js.map +1 -1
  133. package/lib/src/embed/app.spec.js +5 -4
  134. package/lib/src/embed/app.spec.js.map +1 -1
  135. package/lib/src/embed/base.d.ts.map +1 -1
  136. package/lib/src/embed/base.js +6 -3
  137. package/lib/src/embed/base.js.map +1 -1
  138. package/lib/src/embed/base.spec.js +3 -2
  139. package/lib/src/embed/base.spec.js.map +1 -1
  140. package/lib/src/embed/embed.spec.js +2 -1
  141. package/lib/src/embed/embed.spec.js.map +1 -1
  142. package/lib/src/embed/embedConfig.d.ts +2 -1
  143. package/lib/src/embed/embedConfig.d.ts.map +1 -1
  144. package/lib/src/embed/embedConfig.js +2 -0
  145. package/lib/src/embed/embedConfig.js.map +1 -1
  146. package/lib/src/embed/events.spec.js +3 -2
  147. package/lib/src/embed/events.spec.js.map +1 -1
  148. package/lib/src/embed/liveboard.d.ts +28 -23
  149. package/lib/src/embed/liveboard.d.ts.map +1 -1
  150. package/lib/src/embed/liveboard.js +4 -3
  151. package/lib/src/embed/liveboard.js.map +1 -1
  152. package/lib/src/embed/sage.d.ts +47 -29
  153. package/lib/src/embed/sage.d.ts.map +1 -1
  154. package/lib/src/embed/sage.js +1 -1
  155. package/lib/src/embed/sage.js.map +1 -1
  156. package/lib/src/embed/search-bar.d.ts +22 -6
  157. package/lib/src/embed/search-bar.d.ts.map +1 -1
  158. package/lib/src/embed/search-bar.js.map +1 -1
  159. package/lib/src/embed/search.d.ts +33 -18
  160. package/lib/src/embed/search.d.ts.map +1 -1
  161. package/lib/src/embed/search.js +4 -1
  162. package/lib/src/embed/search.js.map +1 -1
  163. package/lib/src/embed/search.spec.js +10 -0
  164. package/lib/src/embed/search.spec.js.map +1 -1
  165. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  166. package/lib/src/embed/ts-embed.js +38 -18
  167. package/lib/src/embed/ts-embed.js.map +1 -1
  168. package/lib/src/embed/ts-embed.spec.js +141 -26
  169. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  170. package/lib/src/index.d.ts +2 -2
  171. package/lib/src/index.d.ts.map +1 -1
  172. package/lib/src/index.js +2 -2
  173. package/lib/src/index.js.map +1 -1
  174. package/lib/src/mixpanel-service.d.ts.map +1 -1
  175. package/lib/src/mixpanel-service.js +2 -1
  176. package/lib/src/mixpanel-service.js.map +1 -1
  177. package/lib/src/react/index.spec.js +2 -14
  178. package/lib/src/react/index.spec.js.map +1 -1
  179. package/lib/src/types.d.ts +751 -242
  180. package/lib/src/types.d.ts.map +1 -1
  181. package/lib/src/types.js +664 -175
  182. package/lib/src/types.js.map +1 -1
  183. package/lib/src/utils/authService/authService.d.ts.map +1 -1
  184. package/lib/src/utils/authService/authService.js +3 -2
  185. package/lib/src/utils/authService/authService.js.map +1 -1
  186. package/lib/src/utils/authService/authService.spec.js +3 -2
  187. package/lib/src/utils/authService/authService.spec.js.map +1 -1
  188. package/lib/src/utils/authService/tokenizedAuthService.d.ts.map +1 -1
  189. package/lib/src/utils/authService/tokenizedAuthService.js +2 -1
  190. package/lib/src/utils/authService/tokenizedAuthService.js.map +1 -1
  191. package/lib/src/utils/graphql/answerService/answerService.d.ts +2 -4
  192. package/lib/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  193. package/lib/src/utils/graphql/answerService/answerService.js +2 -4
  194. package/lib/src/utils/graphql/answerService/answerService.js.map +1 -1
  195. package/lib/src/utils/logger.d.ts +4 -14
  196. package/lib/src/utils/logger.d.ts.map +1 -1
  197. package/lib/src/utils/logger.js +23 -25
  198. package/lib/src/utils/logger.js.map +1 -1
  199. package/lib/src/utils/logger.spec.d.ts +25 -0
  200. package/lib/src/utils/logger.spec.d.ts.map +1 -0
  201. package/lib/src/utils/logger.spec.js +57 -0
  202. package/lib/src/utils/logger.spec.js.map +1 -0
  203. package/lib/src/utils/processData.d.ts +6 -0
  204. package/lib/src/utils/processData.d.ts.map +1 -1
  205. package/lib/src/utils/processData.js +4 -1
  206. package/lib/src/utils/processData.js.map +1 -1
  207. package/lib/src/utils/processTrigger.js +1 -1
  208. package/lib/src/visual-embed-sdk.d.ts +904 -342
  209. package/package.json +1 -1
  210. package/src/auth.ts +15 -8
  211. package/src/embed/app.spec.ts +5 -4
  212. package/src/embed/app.ts +22 -21
  213. package/src/embed/base.spec.ts +3 -2
  214. package/src/embed/base.ts +10 -3
  215. package/src/embed/embed.spec.ts +2 -1
  216. package/src/embed/embedConfig.ts +2 -0
  217. package/src/embed/events.spec.ts +3 -2
  218. package/src/embed/liveboard.ts +28 -23
  219. package/src/embed/sage.ts +47 -29
  220. package/src/embed/search-bar.tsx +22 -6
  221. package/src/embed/search.spec.ts +13 -0
  222. package/src/embed/search.ts +38 -19
  223. package/src/embed/ts-embed.spec.ts +159 -26
  224. package/src/embed/ts-embed.ts +37 -19
  225. package/src/index.ts +2 -0
  226. package/src/mixpanel-service.ts +2 -1
  227. package/src/react/index.spec.tsx +2 -31
  228. package/src/types.ts +753 -243
  229. package/src/utils/authService/authService.spec.ts +3 -2
  230. package/src/utils/authService/authService.ts +4 -2
  231. package/src/utils/authService/tokenizedAuthService.ts +2 -1
  232. package/src/utils/graphql/answerService/answerService.ts +2 -4
  233. package/src/utils/logger.spec.ts +67 -0
  234. package/src/utils/logger.ts +87 -0
  235. package/src/utils/processData.ts +4 -1
  236. package/src/utils/processTrigger.ts +1 -1
  237. package/cjs/src/embed/TsEmbed.d.ts +0 -302
  238. package/cjs/src/embed/TsEmbed.d.ts.map +0 -1
  239. package/cjs/src/embed/TsEmbed.js +0 -851
  240. package/cjs/src/embed/TsEmbed.js.map +0 -1
  241. package/cjs/src/utils/answerService.d.ts +0 -10
  242. package/cjs/src/utils/answerService.d.ts.map +0 -1
  243. package/cjs/src/utils/answerService.js +0 -61
  244. package/cjs/src/utils/answerService.js.map +0 -1
  245. package/cjs/src/utils/answerService.spec.d.ts +0 -2
  246. package/cjs/src/utils/answerService.spec.d.ts.map +0 -1
  247. package/cjs/src/utils/answerService.spec.js +0 -31
  248. package/cjs/src/utils/answerService.spec.js.map +0 -1
  249. package/cjs/src/utils/authService/tokenisedAuthSerice.d.ts +0 -11
  250. package/cjs/src/utils/authService/tokenisedAuthSerice.d.ts.map +0 -1
  251. package/cjs/src/utils/authService/tokenisedAuthSerice.js +0 -44
  252. package/cjs/src/utils/authService/tokenisedAuthSerice.js.map +0 -1
  253. package/cjs/src/utils/authService.d.ts +0 -55
  254. package/cjs/src/utils/authService.d.ts.map +0 -1
  255. package/cjs/src/utils/authService.js +0 -139
  256. package/cjs/src/utils/authService.js.map +0 -1
  257. package/cjs/src/utils/authService.spec.d.ts +0 -2
  258. package/cjs/src/utils/authService.spec.d.ts.map +0 -1
  259. package/cjs/src/utils/authService.spec.js +0 -82
  260. package/cjs/src/utils/authService.spec.js.map +0 -1
  261. package/cjs/src/utils/graphql/graphql-request.spec.d.ts +0 -2
  262. package/cjs/src/utils/graphql/graphql-request.spec.d.ts.map +0 -1
  263. package/cjs/src/utils/graphql/graphql-request.spec.js +0 -39
  264. package/cjs/src/utils/graphql/graphql-request.spec.js.map +0 -1
  265. package/dist/src/utils/answerService.d.ts +0 -10
  266. package/dist/src/utils/answerService.d.ts.map +0 -1
  267. package/dist/src/utils/answerService.spec.d.ts +0 -2
  268. package/dist/src/utils/answerService.spec.d.ts.map +0 -1
  269. package/dist/src/utils/authService/tokenisedAuthSerice.d.ts +0 -11
  270. package/dist/src/utils/authService/tokenisedAuthSerice.d.ts.map +0 -1
  271. package/dist/src/utils/authService.d.ts +0 -55
  272. package/dist/src/utils/authService.d.ts.map +0 -1
  273. package/dist/src/utils/authService.spec.d.ts +0 -2
  274. package/dist/src/utils/authService.spec.d.ts.map +0 -1
  275. package/dist/src/utils/graphql/graphql-request.spec.d.ts +0 -2
  276. package/dist/src/utils/graphql/graphql-request.spec.d.ts.map +0 -1
  277. package/lib/src/embed/TsEmbed.d.ts +0 -302
  278. package/lib/src/embed/TsEmbed.d.ts.map +0 -1
  279. package/lib/src/embed/TsEmbed.js +0 -847
  280. package/lib/src/embed/TsEmbed.js.map +0 -1
  281. package/lib/src/utils/answerService.d.ts +0 -10
  282. package/lib/src/utils/answerService.d.ts.map +0 -1
  283. package/lib/src/utils/answerService.js +0 -57
  284. package/lib/src/utils/answerService.js.map +0 -1
  285. package/lib/src/utils/answerService.spec.d.ts +0 -2
  286. package/lib/src/utils/answerService.spec.d.ts.map +0 -1
  287. package/lib/src/utils/answerService.spec.js +0 -29
  288. package/lib/src/utils/answerService.spec.js.map +0 -1
  289. package/lib/src/utils/authService/tokenisedAuthSerice.d.ts +0 -11
  290. package/lib/src/utils/authService/tokenisedAuthSerice.d.ts.map +0 -1
  291. package/lib/src/utils/authService/tokenisedAuthSerice.js +0 -39
  292. package/lib/src/utils/authService/tokenisedAuthSerice.js.map +0 -1
  293. package/lib/src/utils/authService.d.ts +0 -55
  294. package/lib/src/utils/authService.d.ts.map +0 -1
  295. package/lib/src/utils/authService.js +0 -129
  296. package/lib/src/utils/authService.js.map +0 -1
  297. package/lib/src/utils/authService.spec.d.ts +0 -2
  298. package/lib/src/utils/authService.spec.d.ts.map +0 -1
  299. package/lib/src/utils/authService.spec.js +0 -80
  300. package/lib/src/utils/authService.spec.js.map +0 -1
  301. package/lib/src/utils/graphql/graphql-request.spec.d.ts +0 -2
  302. package/lib/src/utils/graphql/graphql-request.spec.d.ts.map +0 -1
  303. package/lib/src/utils/graphql/graphql-request.spec.js +0 -36
  304. package/lib/src/utils/graphql/graphql-request.spec.js.map +0 -1
@@ -18,12 +18,12 @@ declare module '@thoughtspot/visual-embed-sdk' {
18
18
  import { SearchEmbed, SearchViewConfig } from '@thoughtspot/visual-embed-sdk/embed/search';
19
19
  import { SearchBarEmbed, SearchBarViewConfig } from '@thoughtspot/visual-embed-sdk/embed/search-bar';
20
20
  import { AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, getSessionInfo } from '@thoughtspot/visual-embed-sdk/auth';
21
- import { AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig, PrefetchFeatures, FrameParams, DOMSelector, HomeLeftNavItem, HomepageModule, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, ContextMenuTriggerOptions, RuntimeParameter } from '@thoughtspot/visual-embed-sdk/types';
21
+ import { AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig, PrefetchFeatures, FrameParams, DOMSelector, HomeLeftNavItem, HomepageModule, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, ContextMenuTriggerOptions, RuntimeParameter, LogLevel } from '@thoughtspot/visual-embed-sdk/types';
22
22
  import { CustomCssVariables } from '@thoughtspot/visual-embed-sdk/css-variables';
23
23
  import { SageEmbed, SageViewConfig } from '@thoughtspot/visual-embed-sdk/embed/sage';
24
24
  import { AnswerService } from '@thoughtspot/visual-embed-sdk/utils/graphql/answerService/answerService';
25
25
  import { getEmbedConfig } from '@thoughtspot/visual-embed-sdk/embed/embedConfig';
26
- export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, AnswerService, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, ContextMenuTriggerOptions, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, SageViewConfig, AppViewConfig, PrefetchFeatures, FrameParams, HomeLeftNavItem, HomepageModule, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, RuntimeParameter, };
26
+ export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, AnswerService, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, ContextMenuTriggerOptions, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, SageViewConfig, AppViewConfig, PrefetchFeatures, FrameParams, HomeLeftNavItem, HomepageModule, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, RuntimeParameter, LogLevel, };
27
27
  }
28
28
 
29
29
  declare module '@thoughtspot/visual-embed-sdk/embed/app' {
@@ -79,43 +79,43 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
79
79
  */
80
80
  export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
81
81
  /**
82
- * If true, the main navigation bar within the ThoughtSpot app
82
+ * If true, the top navigation bar within the ThoughtSpot app
83
83
  * is displayed. By default, the navigation bar is hidden.
84
- * This flag also control the homepage left nav-bar.
84
+ * This flag also controls the homepage left navigation bar.
85
85
  */
86
86
  showPrimaryNavbar?: boolean;
87
87
  /**
88
- * Flag to control Homepage Left Nav Bar
89
- * If showPrimaryNavbar is true, ie navigation bar(Global nav-bar) and Homepage left
90
- * nav-bar is visible, this flag will only hide the homepage left nav.
91
- * Precedence of showPrimaryNavbar flag > hideHomepageLeftNav flag.
88
+ * Control the visibility of the left navigation bar on the Homepage.
89
+ * If showPrimaryNavbar is true, that is, if the Global and Homepage
90
+ * nav-bars are visible, this flag will only hide the homepage left nav-bar.
91
+ * The showPrimaryNavbar flag takes precedence over the hideHomepageLeftNav.
92
92
  *
93
93
  * @default false
94
94
  * @version SDK: 1.27.0 | Thoughtspot: 9.8.0.cl
95
95
  */
96
96
  hideHomepageLeftNav?: boolean;
97
97
  /**
98
- * If true, help and profile buttons will hide on NavBar. By default,
99
- * they are shown.
98
+ * Control the visibility of the help (?) and profile buttons on the
99
+ * Global nav-bar. By default, these buttons are visible on the nav-bar.
100
100
  */
101
101
  disableProfileAndHelp?: boolean;
102
102
  /**
103
- * If true, application switcher button will hide on NavBar. By default,
104
- * they are shown.
103
+ * Control the visibility of the application switcher button on the nav-bar.
104
+ * By default, the application switcher is shown.
105
105
  */
106
106
  hideApplicationSwitcher?: boolean;
107
107
  /**
108
- * If true, org switcher button will hide on NavBar. By default,
109
- * they are shown.
108
+ * Control the visibility of the Org switcher button on the nav-bar.
109
+ * By default, the Org switcher button is shown.
110
110
  */
111
111
  hideOrgSwitcher?: boolean;
112
112
  /**
113
- * A URL path within the app that is to be embedded.
113
+ * A URL path to the embedded application page
114
114
  * If both path and pageId attributes are defined, the path definition
115
115
  * takes precedence. This is the path post the `#/` in the URL of the standalone
116
116
  * ThoughtSpot app. Use this to open the embedded view to a specific path.
117
117
  *
118
- * For eg, if you want the component to open to a specific liveboard
118
+ * For eg, if you want the component to open to a specific Liveboard
119
119
  * you could set the path to `pinboard/<liveboardId>/tab/<tabId>`.
120
120
  *
121
121
  * @example
@@ -426,8 +426,8 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
426
426
  */
427
427
  fullHeight?: boolean;
428
428
  /**
429
- * This is the minimum height(in pixels) for a full height Liveboard.
430
- * Setting this height helps resolves issues with empty Liveboards and
429
+ * This is the minimum height(in pixels) for a full-height Liveboard.
430
+ * Setting this height helps resolve issues with empty Liveboards and
431
431
  * other screens navigable from a Liveboard.
432
432
  *
433
433
  * @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
@@ -440,7 +440,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
440
440
  enableVizTransformations?: boolean;
441
441
  /**
442
442
  * The Liveboard to display in the embedded view.
443
- * Use either of liveboardId or pinboardId to reference the Liveboard to embed.
443
+ * Use either liveboardId or pinboardId to reference the Liveboard to embed.
444
444
  *
445
445
  * @version SDK: 1.3.0 | ThoughtSpot ts7.aug.cl, 7.2.1
446
446
  */
@@ -459,79 +459,84 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
459
459
  * If set to true, all filter chips from a
460
460
  * Liveboard page will be read-only (no X buttons)
461
461
  *
462
- * @version SDK: 1.3.0 | ThoughtSpot ts7.aug.cl, 7.2.1
462
+ * @version SDK: 1.3.0 | ThoughtSpot ts7.aug.cl, 7.2.1.sw
463
463
  */
464
464
  preventLiveboardFilterRemoval?: boolean;
465
465
  /**
466
- * Array of viz ids which should be visible when the liveboard
467
- * first renders. This can be changed by triggering the "SetVisibleVizs"
466
+ * Array of visualization IDs which should be visible when the Liveboard
467
+ * renders. This can be changed by triggering the `SetVisibleVizs`
468
468
  * event.
469
469
  *
470
470
  * @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
471
471
  */
472
472
  visibleVizs?: string[];
473
473
  /**
474
- * To support backward compatibilty
474
+ * To support backward compatibility
475
475
  *
476
476
  * @hidden
477
477
  */
478
478
  preventPinboardFilterRemoval?: boolean;
479
479
  /**
480
- * Render embedded Liveboards and visualizations in the new Liveboard experience mode
480
+ * Render embedded Liveboards and visualizations in the
481
+ * new Liveboard experience mode.
481
482
  *
482
483
  * @version SDK: 1.14.0 | ThoughtSpot: 8.6.0.cl, 8.8.1-sw
483
484
  */
484
485
  liveboardV2?: boolean;
485
486
  /**
486
- * Tab ID of the Liveboard that is supposed to be active
487
+ * Set a Liveboard tab as an active tab.
488
+ * Specify the tab ID.
487
489
  *
488
490
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
489
491
  */
490
492
  activeTabId?: string;
491
493
  /**
492
- * Hide tab Panel of embedded LB
494
+ * Show or hide the tab panel of the embedded Liveboard.
493
495
  *
494
- * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
496
+ * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl, 9.8.0.sw
495
497
  */
496
498
  hideTabPanel?: boolean;
497
499
  /**
498
- * Show or hide Liveboard header
500
+ * Show or hide the Liveboard header.
499
501
  *
500
- * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
502
+ * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
501
503
  * @default false
502
504
  */
503
505
  hideLiveboardHeader?: boolean;
504
506
  /**
505
- * Show or hide Liveboard title
507
+ * Show or hide the Liveboard title.
506
508
  *
507
- * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
509
+ * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
508
510
  * @default false
509
511
  */
510
512
  showLiveboardTitle?: boolean;
511
513
  /**
512
- * Show or hide Liveboard description
514
+ * Show or hide the Liveboard description.
513
515
  *
514
- * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
516
+ * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
515
517
  * @default false
516
518
  */
517
519
  showLiveboardDescription?: boolean;
518
520
  /**
519
- * Boolean for sticky Liveboard header.
521
+ * Control the position and visibility of
522
+ * the Liveboard header as the users scroll down the
523
+ * embedded Liveboard page.
520
524
  *
521
525
  * @example
522
526
  * ```js
523
527
  * const embed = new LiveboardEmbed('#embed', {
524
- * ... // other liveboard view config
528
+ * ... // other Liveboard view config
525
529
  * isLiveboardHeaderSticky: true,
526
530
  * });
527
531
  * ```
528
- * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
532
+ * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
529
533
  */
530
534
  isLiveboardHeaderSticky?: boolean;
531
535
  }
532
536
  /**
533
- * Embed a ThoughtSpot Liveboard or a Thoughtspot visualization. When rendered it already
534
- * waits for the authentication to complete, so no need to wait for AuthStatus.SUCCESS.
537
+ * Embed a ThoughtSpot Liveboard or visualization. When rendered it already
538
+ * waits for the authentication to complete, so you need not wait for
539
+ * `AuthStatus.SUCCESS`.
535
540
  *
536
541
  * @example
537
542
  * ```js
@@ -590,18 +595,19 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
590
595
  import { DOMSelector, Action, ViewConfig } from '@thoughtspot/visual-embed-sdk/types';
591
596
  import { TsEmbed } from '@thoughtspot/visual-embed-sdk/embed/ts-embed';
592
597
  /**
593
- * Configuration for search options
598
+ * Configuration for search options.
599
+ *
594
600
  */
595
601
  export interface SearchOptions {
596
602
  /**
597
- * The tml string to load the answer
603
+ * Search tokens to pass in the query.
598
604
  */
599
605
  searchTokenString: string;
600
606
  /**
601
- * Boolean to determine if the search should be executed or not.
602
- * if it is executed, put the focus on the results.
603
- * if it’s not executed, put the focus in the search bar - at the end of
604
- * the tokens
607
+ * Boolean to define if the search should be executed or not.
608
+ * If it is executed, the focus is placed on the results.
609
+ * If it’s not executed, the focus is placed at the end of
610
+ * the token string in the search bar.
605
611
  */
606
612
  executeSearch?: boolean;
607
613
  }
@@ -617,19 +623,15 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
617
623
  */
618
624
  collapseDataSources?: boolean;
619
625
  /**
620
- * If set to true, hides the data sources panel.
626
+ * Show or hide the data sources panel.
621
627
  */
622
628
  hideDataSources?: boolean;
623
629
  /**
624
- * If set to true, hides the charts and tables in search answers.
630
+ * Show or hide the charts and tables in search answers.
625
631
  * This attribute can be used to create a custom visualization
626
632
  * using raw answer data.
627
633
  */
628
634
  hideResults?: boolean;
629
- /**
630
- * If set to true, expands all the data sources panel.
631
- */
632
- expandAllDataSource?: boolean;
633
635
  /**
634
636
  * If set to true, the Search Assist feature is enabled.
635
637
  *
@@ -643,9 +645,9 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
643
645
  forceTable?: boolean;
644
646
  /**
645
647
  * The array of data source GUIDs to set on load.
646
- * Only a single dataSource supported currently.
648
+ * Only a single data source is supported currently.
647
649
  *
648
- * @deprecated Use dataSource instead
650
+ * @deprecated Use `dataSource` instead.
649
651
  */
650
652
  dataSources?: string[];
651
653
  /**
@@ -657,11 +659,29 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
657
659
  /**
658
660
  * The initial search query to load the answer with.
659
661
  *
660
- * @deprecated Use {@link searchOptions} instead
662
+ * @deprecated
663
+ *
664
+ * Use {@link searchOptions} instead.
661
665
  */
662
666
  searchQuery?: string;
663
667
  /**
664
- * Configuration for search options
668
+ * Configuration for search options.
669
+ * Includes the following properties:
670
+ *
671
+ * `searchTokenString`: Search tokens to pass in the query.
672
+ *
673
+ * `executeSearch`: Boolean to define if the search should be executed or not.
674
+ * If it is executed, the focus is placed on the results.
675
+ * If it’s not executed, the focus is placed at the end of
676
+ * the token string in the search bar.
677
+ *
678
+ * @example
679
+ * ```js
680
+ * searchOptions: {
681
+ * searchTokenString: '[quantity purchased] [region]',
682
+ * executeSearch: true,
683
+ * }
684
+ * ```
665
685
  */
666
686
  searchOptions?: SearchOptions;
667
687
  /**
@@ -669,10 +689,10 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
669
689
  */
670
690
  answerId?: string;
671
691
  /**
672
- * If set to true, search page will render without the Search Bar
692
+ * If set to true, the search page will render without the Search Bar
673
693
  * The chart/table should still be visible.
674
694
  *
675
- * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
695
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
676
696
  */
677
697
  hideSearchBar?: boolean;
678
698
  /**
@@ -720,25 +740,41 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search-bar' {
720
740
  export interface SearchBarViewConfig extends Omit<ViewConfig, 'runtimeFilters' | 'showAlerts' | 'dataPanelV2' | 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems' | 'hiddenTabs' | 'visibleTabs' | 'reorderedHomepageModules'> {
721
741
  /**
722
742
  * The array of data source GUIDs to set on load.
723
- * Only a single dataSource supported currently.
743
+ * Only a single data source is supported currently.
724
744
  *
725
- * @deprecated Use dataSource instead
745
+ * @deprecated Use `dataSource` instead
726
746
  */
727
747
  dataSources?: string[];
728
748
  /**
729
749
  * The array of data source GUIDs to set on load.
730
750
  *
731
- * @version: SDK: 1.19.0
751
+ * @version: SDK: 1.19.0, ThoughtSpot 9.0.0.cl, 9.0.1.sw
732
752
  */
733
753
  dataSource?: string;
734
754
  /**
735
- * Flag to set if last selected dataSource should be used
755
+ * Boolean to define if the last selected data source should be used
736
756
  *
737
- * @version: SDK: 1.24.0
757
+ * @version: SDK: 1.24.0, ThoughtSpot 9.5.0.cl, 9.5.0.sw
738
758
  */
739
759
  useLastSelectedSources?: boolean;
740
760
  /**
741
- * Configuration for search options
761
+ * Configuration for search options.
762
+ * Includes the following properties:
763
+ *
764
+ * `searchTokenString`: Search tokens to pass in the query.
765
+ *
766
+ * `executeSearch`: Boolean to define if the search should be executed or not.
767
+ * If it is executed, the focus is placed on the results.
768
+ * If it’s not executed, the focus is placed at the end of
769
+ * the token string in the search bar.
770
+ *
771
+ * @example
772
+ * ```js
773
+ * searchOptions: {
774
+ * searchTokenString: '[quantity purchased] [region]',
775
+ * executeSearch: true,
776
+ * }
777
+ * ```
742
778
  */
743
779
  searchOptions?: SearchOptions;
744
780
  }
@@ -810,8 +846,8 @@ declare module '@thoughtspot/visual-embed-sdk/auth' {
810
846
  */
811
847
  LOGOUT = "LOGOUT",
812
848
  /**
813
- * Emitted when inPopup: true in the SAMLRedirect flow.
814
- * And, we are waiting for popup to be triggered either programatically
849
+ * Emitted when inPopup is true in the SAMLRedirect flow and the
850
+ * popup is waiting to be triggered either programmatically
815
851
  * or by the trigger button.
816
852
  *
817
853
  * @version SDK: 1.19.0
@@ -856,8 +892,8 @@ declare module '@thoughtspot/visual-embed-sdk/auth' {
856
892
  */
857
893
  export enum AuthEvent {
858
894
  /**
859
- * Manually trigger the SSO popup. This is useful with
860
- * authStatus: SAMLRedirect/OIDCRedicre and inPopup: true
895
+ * Manually trigger the SSO popup. This is useful when
896
+ * authStatus is SAMLRedirect/OIDCRedirect and inPopup is set to true
861
897
  */
862
898
  TRIGGER_SSO_POPUP = "TRIGGER_SSO_POPUP"
863
899
  }
@@ -970,10 +1006,14 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
970
1006
  */
971
1007
  None = "None",
972
1008
  /**
973
- * Passthrough SSO to the embedded App within the iframe. Requires least
1009
+ * Passthrough SSO to the embedded application within the iframe. Requires least
974
1010
  * configuration, but may not be supported by all IDPs. This will behave like `None`
975
1011
  * if SSO is not configured on ThoughtSpot.
976
1012
  *
1013
+ * To use this:
1014
+ * Your SAML or OpenID provider must allow iframe redirects.
1015
+ * For example, if you are using Okta as IdP, you can enable iframe embedding.
1016
+ *
977
1017
  * @example
978
1018
  * ```js
979
1019
  * init({
@@ -981,12 +1021,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
981
1021
  * authType: AuthType.EmbeddedSSO,
982
1022
  * });
983
1023
  * ```
984
- * Set authentication type as Embedded SSO.
985
- *
986
- * To use this:
987
- * Your SAML or OpenID provider must allow iframe redirects.
988
- * eg. If you are using okta as IdP, you can enable iFrame embedding.
989
- * @version: SDK: 1.15.0 | ThouhgtSpot: 8.8.0.cl
1024
+ * @version: SDK: 1.15.0 | ThoughtSpot: 8.8.0.cl
990
1025
  */
991
1026
  EmbeddedSSO = "EmbeddedSSO",
992
1027
  /**
@@ -1005,10 +1040,10 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1005
1040
  SAML = "SSO_SAML",
1006
1041
  /**
1007
1042
  * SSO using SAML
1008
- * Will make the host application redirect to the SAML Idp. Use this
1009
- * when the idp does not allow itself to be embedded.
1043
+ * Makes the host application redirect to the SAML IdP. Use this
1044
+ * if your IdP does not allow itself to be embedded.
1010
1045
  *
1011
- * This redirects the host application to the SAML Idp. The host application
1046
+ * This redirects the host application to the SAML IdP. The host application
1012
1047
  * will be redirected back to the ThoughtSpot app after authentication.
1013
1048
  *
1014
1049
  * @example
@@ -1019,7 +1054,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1019
1054
  * });
1020
1055
  * ```
1021
1056
  *
1022
- * This opens the SAML Idp in a popup window. The popup is triggered
1057
+ * This opens the SAML IdP in a popup window. The popup is triggered
1023
1058
  * when the user clicks the trigger button. The popup window will be
1024
1059
  * closed automatically after authentication.
1025
1060
  * @example
@@ -1033,8 +1068,8 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1033
1068
  * });
1034
1069
  * ```
1035
1070
  *
1036
- * Can also use event to trigger the popup flow. Works the same
1037
- * as above example.
1071
+ * Can also use the event to trigger the popup flow. Works the same
1072
+ * as the above example.
1038
1073
  * @example
1039
1074
  * ```js
1040
1075
  * const authEE = init({
@@ -1058,7 +1093,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1058
1093
  OIDC = "SSO_OIDC",
1059
1094
  /**
1060
1095
  * SSO using OIDC
1061
- * Will make the host application redirect to the OIDC Idp.
1096
+ * Will make the host application redirect to the OIDC IdP.
1062
1097
  * See code samples in {@link SAMLRedirect}.
1063
1098
  */
1064
1099
  OIDCRedirect = "SSO_OIDC",
@@ -1070,8 +1105,8 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1070
1105
  */
1071
1106
  AuthServer = "AuthServer",
1072
1107
  /**
1073
- * Trusted authentication server, Use your own authentication server
1074
- * which returns a bearer token, generated using the secret_key obtained
1108
+ * Trusted authentication server. Use your own authentication server
1109
+ * which returns a bearer token, generated using the `secret_key` obtained
1075
1110
  * from ThoughtSpot.
1076
1111
  *
1077
1112
  * @example
@@ -1088,11 +1123,11 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1088
1123
  */
1089
1124
  TrustedAuthToken = "AuthServer",
1090
1125
  /**
1091
- * Trusted authentication server Cookieless, Use you own authentication
1092
- * server which returns a bearer token, generated using the secret_key
1126
+ * Trusted authentication server Cookieless, Use your own authentication
1127
+ * server which returns a bearer token, generated using the `secret_key`
1093
1128
  * obtained from ThoughtSpot. This uses a cookieless authentication
1094
- * approach, recommended to by pass third-party cookie-blocking restriction
1095
- * implemented by some browsers
1129
+ * approach, recommended to bypass the third-party cookie-blocking restriction
1130
+ * implemented by some browsers.
1096
1131
  *
1097
1132
  * @example
1098
1133
  * ```js
@@ -1105,7 +1140,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1105
1140
  * .then((data) => data.token);
1106
1141
  * }
1107
1142
  * ```
1108
- * @version SDK: 1.22.0| ThouhgtSpot: 9.3.0.cl, 9.5.1.sw
1143
+ * @version SDK: 1.22.0| ThoughtSpot: 9.3.0.cl, 9.5.1.sw
1109
1144
  */
1110
1145
  TrustedAuthTokenCookieless = "AuthServerCookieless",
1111
1146
  /**
@@ -1227,13 +1262,19 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1227
1262
  * The ThoughtSpot cluster hostname or IP address.
1228
1263
  */
1229
1264
  thoughtSpotHost: string;
1265
+ /**
1266
+ * If true, all the iframe links will have /v2 added automatically.
1267
+ * If false, all the iframe links will have /v1 added automatically.
1268
+ * If undefined, nothing will be added
1269
+ */
1270
+ enableReactShell?: boolean | undefined;
1230
1271
  /**
1231
1272
  * The authentication mechanism to use.
1232
1273
  */
1233
1274
  authType: AuthType;
1234
1275
  /**
1235
1276
  * [AuthServer] The trusted authentication endpoint to use to get the
1236
- * authentication token. A GET request is made to the
1277
+ * authentication token. A `GET` request is made to the
1237
1278
  * authentication API endpoint, which returns the token
1238
1279
  * as a plaintext response. For trusted authentication,
1239
1280
  * the `authEndpoint` or `getAuthToken` attribute is required.
@@ -1246,8 +1287,8 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1246
1287
  * attribute is required.
1247
1288
  *
1248
1289
  * It is advisable to fetch a new token inside this method and not
1249
- * reuse and older issued token, as because when auth expires this is
1250
- * called again and if it is called with an older token the authentication
1290
+ * reuse the old issued token. When auth expires this method is
1291
+ * called again and if it is called with an older token, the authentication
1251
1292
  * will not succeed.
1252
1293
  */
1253
1294
  getAuthToken?: () => Promise<string>;
@@ -1257,7 +1298,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1257
1298
  */
1258
1299
  username?: string;
1259
1300
  /**
1260
- * [Basic] The ThoughtSpot login password corresponding to the user name
1301
+ * [Basic] The ThoughtSpot login password corresponding to the username
1261
1302
  *
1262
1303
  * Warning: This feature is primarily intended for developer testing. It is
1263
1304
  * strongly advised not to use this authentication method in production.
@@ -1265,7 +1306,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1265
1306
  password?: string;
1266
1307
  /**
1267
1308
  * [SSO] For SSO Authentication, if `noRedirect` is set to true, it will
1268
- * open the SAML auth flow in a popup, instead of redirecting browser in
1309
+ * open the SAML auth flow in a popup, instead of redirecting the browser in
1269
1310
  * place.
1270
1311
  *
1271
1312
  * @default false
@@ -1274,91 +1315,93 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1274
1315
  noRedirect?: boolean;
1275
1316
  /**
1276
1317
  * [SSO] For SSO Authentication, if `inPopup` is set to true, it will open
1277
- * the SAML auth flow in a popup, instead of redirecting browser in place.
1318
+ * the SAML auth flow in a popup, instead of redirecting the browser in place.
1278
1319
  *
1279
- * Need to use this with authTriggerContainer. Or manually trigger
1280
- * the AuthEvent.TRIGGER_SSO_POPUP event on a user interaction.
1320
+ * Need to use this with `authTriggerContainer`. Or manually trigger
1321
+ * the `AuthEvent.TRIGGER_SSO_POPUP` event on a user interaction.
1281
1322
  *
1282
1323
  * @default false
1283
1324
  * @version SDK: 1.18.0
1284
1325
  */
1285
1326
  inPopup?: boolean;
1286
1327
  /**
1287
- * [SSO] For SSO Authentication, one can supply an optional path param,
1288
- * this will be the path on the host origin where the SAML flow will be
1328
+ * [SSO] For SSO Authentication, one can supply an optional path param;
1329
+ * This will be the path on the host origin where the SAML flow will be
1289
1330
  * terminated.
1290
1331
  *
1291
1332
  * Eg: "/dashboard", "#/foo" [Do not include the host]
1292
1333
  *
1293
- * @version SDK: 1.10.2 | 8.2.0.cl, 8.4.1.sw
1334
+ * @version SDK: 1.10.2 | ThoughtSpot 8.2.0.cl, 8.4.1.sw
1294
1335
  */
1295
1336
  redirectPath?: string;
1296
1337
  /** @internal */
1297
1338
  basepath?: string;
1298
1339
  /**
1299
- * Should we encode URL Query Params using base64 encoding which thoughtspot
1300
- * will generate for embedding. This provides additional security to
1301
- * thoughtspot clusters against Cross site scripting attacks.
1340
+ * Boolean to define if the query parameters in the ThoughtSpot URL
1341
+ * should be encoded in base64. This provides additional security to
1342
+ * Thoughtspot clusters against cross-site scripting attacks.
1302
1343
  *
1303
1344
  * @default false
1304
1345
  */
1305
1346
  shouldEncodeUrlQueryParams?: boolean;
1306
1347
  /**
1307
- * Suppress cookie access alert when third party cookies are blocked by the
1308
- * user's browser. Third party cookie blocking is the default behaviour on
1309
- * Safari and opt-in for Firefox/Chrome. If you set this to `true`, you are
1310
- * encouraged to handle `noCookieAccess` event, to show your own treatment
1348
+ * Suppress cookie access alert when third-party cookies are blocked by the
1349
+ * user's browser. Third-party cookie blocking is the default behaviour on
1350
+ * some web browsers like Safari. If you set this attribute to `true`,
1351
+ * you are encouraged to handle `noCookieAccess` event, to show your own treatment
1311
1352
  * in this case.
1312
1353
  *
1313
1354
  * @default false
1314
1355
  */
1315
1356
  suppressNoCookieAccessAlert?: boolean;
1316
1357
  /**
1317
- * Ignore cookie access alert when third party cookies are blocked by the
1358
+ * Ignore the cookie access alert when third-party cookies are blocked by the
1318
1359
  * user's browser. If you set this to `true`, the embedded iframe behaviour
1319
- * persist even in case of non logged in user.
1360
+ * persists even in the case of a non-logged-in user.
1320
1361
  *
1321
1362
  * @default false
1322
1363
  */
1323
1364
  ignoreNoCookieAccess?: boolean;
1324
1365
  /**
1325
- * Re-login when session expires with the previous login options
1366
+ * Re-login a user with the previous login options
1367
+ * when a user session expires.
1326
1368
  *
1327
1369
  * @default false
1328
1370
  */
1329
1371
  autoLogin?: boolean;
1330
1372
  /**
1331
1373
  * Disable redirection to the login page when the embedded session expires
1332
- * This flag is typically used alongside the combination of auth modes such as {@link
1333
- * AuthType.AuthServer} and auto login behavior {@link EmbedConfig.autoLogin}
1374
+ * This flag is typically used alongside the combination of authentication modes such
1375
+ * as {@link AuthType.AuthServer} and auto-login behavior {@link
1376
+ * EmbedConfig.autoLogin}
1334
1377
  *
1335
1378
  * @version SDK: 1.9.3 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
1336
1379
  * @default false
1337
1380
  */
1338
1381
  disableLoginRedirect?: boolean;
1339
1382
  /**
1340
- * This message is displayed on the embed view when the login fails.
1383
+ * This message is displayed in the embedded view when a user login fails.
1341
1384
  *
1342
1385
  * @version SDK: 1.10.1 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
1343
1386
  */
1344
1387
  loginFailedMessage?: string;
1345
1388
  /**
1346
- * Calls the prefetch method internally when set to true
1389
+ * Calls the prefetch method internally when set to `true`
1347
1390
  *
1348
1391
  * @default false
1349
1392
  */
1350
1393
  callPrefetch?: boolean;
1351
1394
  /**
1352
- * When there are multiple embeds, queue the render of embed to start
1353
- * after the previous embed's render is complete. This helps in the load
1354
- * performance by decreasing the load on the browser.
1395
+ * When there are multiple objects embedded, queue the rendering of embedded objects
1396
+ * to start after the previous embed's render is complete. This helps improve
1397
+ * performance by decreasing the load on the browser.
1355
1398
  *
1356
1399
  * @Version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
1357
1400
  * @default false
1358
1401
  */
1359
1402
  queueMultiRenders?: boolean;
1360
1403
  /**
1361
- * Dynamic CSS Url to be injected in the loaded application.
1404
+ * Dynamic CSS URL to be injected in the loaded application.
1362
1405
  * You would also need to set `style-src` in the CSP settings.
1363
1406
  *
1364
1407
  * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
@@ -1366,9 +1409,9 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1366
1409
  */
1367
1410
  customCssUrl?: string;
1368
1411
  /**
1369
- * [AuthServer|Basic] Detect if 3rd party cookies are enabled by doing an
1412
+ * [AuthServer|Basic] Detect if third-party party cookies are enabled by doing an
1370
1413
  * additional call. This is slower and should be avoided. Listen to the
1371
- * NO_COOKIE_ACCESS event to handle the situation.
1414
+ * `NO_COOKIE_ACCESS` event to handle the situation.
1372
1415
  *
1373
1416
  * This is slightly slower than letting the browser handle the cookie check, as it
1374
1417
  * involves an extra network call.
@@ -1377,26 +1420,26 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1377
1420
  */
1378
1421
  detectCookieAccessSlow?: boolean;
1379
1422
  /**
1380
- * Hide beta alert warning message for SearchEmbed.
1423
+ * Hide the `beta` alert warning message for SearchEmbed.
1381
1424
  *
1382
1425
  * @version SDK: 1.12.0 | ThoughtSpot: 8.4.0.cl, 8.4.1.sw*
1383
1426
  */
1384
1427
  suppressSearchEmbedBetaWarning?: boolean;
1385
1428
  /**
1386
- * Hide beta alert warning message for SageEmbed.
1429
+ * Hide `beta` alert warning message for SageEmbed.
1387
1430
  *
1388
1431
  */
1389
1432
  suppressSageEmbedBetaWarning?: boolean;
1390
1433
  /**
1391
1434
  * Custom style params for embed Config.
1392
1435
  *
1393
- * @version SDK: 1.17.0 | ThoughtSpot: 8.9.0.cl
1436
+ * @version SDK: 1.17.0 | ThoughtSpot: 8.9.0.cl, 9.0.1.sw
1394
1437
  */
1395
1438
  customizations?: CustomisationsInterface;
1396
1439
  /**
1397
- * For inPopup SAMLRedirect or OIDCRedirect Auth, we need a button which the user
1398
- * click to trigger the flow. This is the containing element
1399
- * for that button.
1440
+ * For `inPopup` SAMLRedirect or OIDCRedirect authentication, we need a
1441
+ * button that the user can click to trigger the flow.
1442
+ * This attribute sets a containing element for that button.
1400
1443
  *
1401
1444
  * @example
1402
1445
  * ```js
@@ -1406,11 +1449,11 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1406
1449
  * authTriggerContainer: '#auth-trigger-container'
1407
1450
  * })
1408
1451
  * ```
1409
- * @version SDK: 1.17.0 | ThoughtSpot: *
1452
+ * @version SDK: 1.17.0 | ThoughtSpot: 8.9.0.cl, 9.0.1.sw
1410
1453
  */
1411
1454
  authTriggerContainer?: string | HTMLElement;
1412
1455
  /**
1413
- * Specify that we want to use the AuthEvent.TRIGGER_SSO_POPUP event to trigger
1456
+ * Specify that we want to use the `AuthEvent.TRIGGER_SSO_POPUP` event to trigger
1414
1457
  * SAML popup. This is useful when you want to trigger the popup on a custom user
1415
1458
  * action.
1416
1459
  *
@@ -1418,20 +1461,22 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1418
1461
  useEventForSAMLPopup?: boolean;
1419
1462
  /**
1420
1463
  * Text to show in the button which triggers the popup auth flow.
1421
- * Default: "Authorize".
1464
+ * Default: `Authorize`.
1422
1465
  *
1423
- * @version SDK: 1.17.0 | ThoughtSpot: *
1466
+ * @version SDK: 1.17.0 | ThoughtSpot: 8.9.0.cl, 9.0.1.sw
1424
1467
  */
1425
1468
  authTriggerText?: string;
1426
1469
  /**
1427
- * Disable Full App access of Embedded app outside of the iFrame.
1470
+ * Prevent users from accessing the full application or ThoughtSpot application pages
1471
+ * access to the embedded application users
1472
+ * outside of the iframe.
1428
1473
  *
1429
1474
  * @default true
1430
1475
  * @version SDK: 1.22.0 | ThoughtSpot: 9.3.0.cl, 9.5.1.sw
1431
1476
  */
1432
1477
  blockNonEmbedFullAppAccess?: boolean;
1433
1478
  /**
1434
- * Host config incase embedded app is inside TS app itself
1479
+ * Host config in case embedded app is inside TS app itself
1435
1480
  *
1436
1481
  * @hidden
1437
1482
  */
@@ -1453,21 +1498,35 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1453
1498
  * @version SDK: 1.26.2 | ThoughtSpot: *
1454
1499
  */
1455
1500
  suppressErrorAlerts?: boolean;
1501
+ /**
1502
+ * Log level for the SDK.
1503
+ * @default LogLevel.ERROR
1504
+ *
1505
+ * @example
1506
+ * ```js
1507
+ * init({
1508
+ * ...embedConfig,
1509
+ * logLevel: LogLevel.SILENT
1510
+ * })
1511
+ * ```
1512
+ * @version SDK: 1.26.3 | ThoughtSpot: 9.10.0.cl
1513
+ */
1514
+ logLevel?: LogLevel;
1456
1515
  }
1457
1516
  export interface LayoutConfig {
1458
1517
  }
1459
1518
  /**
1460
- * Embedded iFrame configuration
1519
+ * Embedded iframe configuration
1461
1520
  *
1462
1521
  * @group Embed components
1463
1522
  */
1464
1523
  export interface FrameParams {
1465
1524
  /**
1466
- * The width of the iFrame (unit is pixels if numeric).
1525
+ * The width of the iframe (unit is pixels if numeric).
1467
1526
  */
1468
1527
  width?: number | string;
1469
1528
  /**
1470
- * The height of the iFrame (unit is pixels if numeric).
1529
+ * The height of the iframe (unit is pixels if numeric).
1471
1530
  */
1472
1531
  height?: number | string;
1473
1532
  /**
@@ -1568,7 +1627,6 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1568
1627
  */
1569
1628
  runtimeParameters?: RuntimeParameter[];
1570
1629
  /**
1571
- /**
1572
1630
  * The locale/language to use for the embedded view.
1573
1631
  *
1574
1632
  * @version SDK: 1.9.4 | ThoughtSpot 8.1.0.cl, 8.4.1.sw
@@ -1668,31 +1726,29 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1668
1726
  */
1669
1727
  reorderedHomepageModules?: HomepageModule[];
1670
1728
  /**
1671
- * The list of tab IDs to show in the embedded.
1672
- * Only this Tabs will be shown in their respective LBs.
1673
- * Use this to show an tabID.
1729
+ * The list of tab IDs to show in the embedded Liveboard.
1730
+ * Only the tabs specified in the array will be shown in the Liveboard.
1674
1731
  *
1675
- * Use either this or hiddenTabs.
1732
+ * Use either `visibleTabs` or `hiddenTabs`.
1676
1733
  *
1677
1734
  * @example
1678
1735
  * ```js
1679
- * const embed = new LiveboardEmbed('#embed', {
1680
- * ... // other liveboard view config
1681
- * visibleTabs: [
1736
+ * visibleTabs: [
1682
1737
  * '430496d6-6903-4601-937e-2c691821af3c',
1683
- * 'f547ec54-2a37-4516-a222-2b06719af726']
1684
- * });
1738
+ * 'f547ec54-2a37-4516-a222-2b06719af726']
1685
1739
  * ```
1686
1740
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
1687
1741
  */
1688
1742
  visibleTabs?: string[];
1689
1743
  /**
1690
- * homepageLeftNavItems : show/hide Homeapage Left Nav Bar Items
1691
- * There are 8 home nav list items, we will send those item as list
1692
- * which we want to hide for TSE.
1693
- * eg: hiddenHomeLeftNavItems = [HomeLeftNavItem.Home] to hide home.
1744
+ * homepageLeftNavItems : Show or hide the left navigation bar items.
1745
+ * There are 8 eight home navigation list items.
1746
+ * To hide these items, specify the string in the array.
1694
1747
  *
1695
- * @version SDK: 1.27.0 | Thoughtspot: 9.8.0.cl
1748
+ * ```js
1749
+ * hiddenHomeLeftNavItems = [HomeLeftNavItem.Home]
1750
+ * ```
1751
+ * @version SDK: 1.27.0 | Thoughtspot: 9.10.0.cl
1696
1752
  */
1697
1753
  hiddenHomeLeftNavItems?: HomeLeftNavItem[];
1698
1754
  /**
@@ -1708,7 +1764,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1708
1764
  * });
1709
1765
  * embed.showPreRender();
1710
1766
  * ```
1711
- * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
1767
+ * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl, 9.8.0.sw
1712
1768
  */
1713
1769
  preRenderId?: string;
1714
1770
  /**
@@ -1741,7 +1797,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1741
1797
  status?: string;
1742
1798
  };
1743
1799
  /**
1744
- * MessageOptions: By Providing options, getting specific event start / end based on
1800
+ * MessageOptions: By providing options, getting specific event start / end based on
1745
1801
  * option
1746
1802
  *
1747
1803
  * @group Events
@@ -1749,7 +1805,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1749
1805
  export type MessageOptions = {
1750
1806
  /**
1751
1807
  * A boolean value indicating that start status events of this type
1752
- * will be dispatched
1808
+ * will be dispatched.
1753
1809
  */
1754
1810
  start?: boolean;
1755
1811
  };
@@ -1769,7 +1825,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1769
1825
  */
1770
1826
  export type MessageCallbackObj = {
1771
1827
  /**
1772
- * options: It contains start, A boolean value indicating that start
1828
+ * options: It contains start, a boolean value indicating that start
1773
1829
  * status events of this type will be dispatched
1774
1830
  */
1775
1831
  options: MessageOptions;
@@ -1841,7 +1897,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1841
1897
  IN = "IN"
1842
1898
  }
1843
1899
  /**
1844
- * Home page module that can be hide
1900
+ * Home page module that can be hidden
1845
1901
  */
1846
1902
  export enum HomepageModule {
1847
1903
  /**
@@ -1857,7 +1913,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1857
1913
  */
1858
1914
  Favorite = "FAVORITE",
1859
1915
  /**
1860
- * List of answers and liveboards
1916
+ * List of answers and Liveboards
1861
1917
  */
1862
1918
  MyLibrary = "MY_LIBRARY",
1863
1919
  /**
@@ -1890,7 +1946,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1890
1946
  values: (number | boolean | string)[];
1891
1947
  }
1892
1948
  /**
1893
- * A filter that can be applied to ThoughtSpot answers, Liveboards, or
1949
+ * A filter that can be applied to ThoughtSpot Answers, Liveboards, or
1894
1950
  * visualizations at runtime.
1895
1951
  */
1896
1952
  export interface RuntimeParameter {
@@ -1926,6 +1982,14 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1926
1982
  export enum EmbedEvent {
1927
1983
  /**
1928
1984
  * Rendering has initialized.
1985
+ * @example
1986
+ *```js
1987
+ * liveboardEmbed.on(EmbedEvent.Init, showLoader)
1988
+ * //show a loader
1989
+ * function showLoader() {
1990
+ * document.getElementById("loader");
1991
+ * }
1992
+ *```
1929
1993
  *
1930
1994
  * @returns timestamp - The timestamp when the event was generated.
1931
1995
  */
@@ -1933,69 +1997,162 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1933
1997
  /**
1934
1998
  * Authentication has either succeeded or failed.
1935
1999
  *
2000
+ * @example
2001
+ *```js
2002
+ * appEmbed.on(EmbedEvent.AuthInit, payload => {
2003
+ * console.log('AuthInit', payload);
2004
+ * })
2005
+ *```
2006
+ *
1936
2007
  * @returns isLoggedIn - A Boolean specifying whether authentication was successful.
1937
2008
  */
1938
2009
  AuthInit = "authInit",
1939
2010
  /**
1940
2011
  * The embed object container has loaded.
1941
- *
1942
2012
  * @returns timestamp - The timestamp when the event was generated.
2013
+ * @example
2014
+ *```js
2015
+ * liveboardEmbed.on(EmbedEvent.Load, hideLoader)
2016
+ * //hide loader
2017
+ * function hideLoader() {
2018
+ * document.getElementById("loader");
2019
+ * }
2020
+ *```
1943
2021
  */
1944
2022
  Load = "load",
1945
2023
  /**
1946
2024
  * Data pertaining to answer or Liveboard is received
1947
- *
1948
2025
  * @return data - The answer or Liveboard data
2026
+ * @example
2027
+ *```js
2028
+ * liveboardEmbed.on(EmbedEvent.Data, payload => {
2029
+ * console.log('data', payload);
2030
+ * })
2031
+ *```
1949
2032
  * @important
1950
2033
  */
1951
2034
  Data = "data",
1952
2035
  /**
1953
- * Search/answer/Liveboard filters have been applied/updated by the user.
2036
+ * Search/Answer/Liveboard filters have been applied/updated by the user.
1954
2037
  *
1955
2038
  * @hidden
1956
2039
  */
1957
2040
  FiltersChanged = "filtersChanged",
1958
2041
  /**
1959
2042
  * Search query has been updated by the user.
2043
+ *
2044
+ * @example
2045
+ *```js
2046
+ * searchEmbed.on(EmbedEvent.QueryChanged, payload => console.log('data', payload))
2047
+ *```
2048
+ *
1960
2049
  */
1961
2050
  QueryChanged = "queryChanged",
1962
2051
  /**
1963
- * A drill down operation has been performed.
2052
+ * A drill-down operation has been performed.
1964
2053
  *
1965
2054
  * @returns additionalFilters - Any additional filters applied
1966
2055
  * @returns drillDownColumns - The columns on which drill down was performed
1967
2056
  * @returns nonFilteredColumns - The columns that were not filtered
2057
+ *
2058
+ * @example
2059
+ *```js
2060
+ * searchEmbed.trigger(HostEvent.DrillDown, {
2061
+ * points: {
2062
+ * clickedPoint,
2063
+ * selectedPoints: selectedPoint
2064
+ * },
2065
+ * autoDrillDown: true,
2066
+ * })
2067
+ *```
2068
+ * In this example, `VizPointDoubleClick` event is used for
2069
+ * triggering the `DrillDown` event when an area or specific
2070
+ * data point on a table or chart is double-clicked.
2071
+ *
2072
+ * @example
2073
+ *```js
2074
+ * searchEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
2075
+ * console.log(payload);
2076
+ * const clickedPoint = payload.data.clickedPoint;
2077
+ * const selectedPoint = payload.data.selectedPoints;
2078
+ * console.log('>>> called', clickedPoint);
2079
+ * embed.trigger(HostEvent.DrillDown, {
2080
+ * points: {
2081
+ * clickedPoint,
2082
+ * selectedPoints: selectedPoint
2083
+ * },
2084
+ * autoDrillDown: true,
2085
+ * })
2086
+ * })
2087
+ *```
2088
+ *
1968
2089
  */
1969
2090
  Drilldown = "drillDown",
1970
2091
  /**
1971
2092
  * One or more data sources have been selected.
1972
- *
1973
2093
  * @returns dataSourceIds - the list of data sources
2094
+ *
2095
+ * @example
2096
+ * ```js
2097
+ * searchEmbed.on(EmbedEvent.DataSourceSelected, payload => {
2098
+ * console.log('DataSourceSelected', payload);
2099
+ * })
2100
+ * ```
2101
+ *
1974
2102
  */
1975
2103
  DataSourceSelected = "dataSourceSelected",
1976
2104
  /**
1977
2105
  * One or more data columns have been selected.
1978
- *
1979
2106
  * @returns columnIds - the list of columns
1980
2107
  * @version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
2108
+ *
2109
+ * @example
2110
+ * ```js
2111
+ * appEmbed.on(EmbedEvent.AddRemoveColumns, payload => {
2112
+ * console.log('AddRemoveColumns', payload);
2113
+ * })
2114
+ * ```
2115
+ *
1981
2116
  */
1982
2117
  AddRemoveColumns = "addRemoveColumns",
1983
2118
  /**
1984
- * A custom action has been triggered
2119
+ * A custom action has been triggered.
1985
2120
  *
1986
- * @returns actionId - The id of the custom action
1987
- * @returns data - The answer or Liveboard data
2121
+ * @returns actionId - ID of the custom action
2122
+ * @returns data - Response payload with the Answer or Liveboard data
2123
+ *
2124
+ * @example
2125
+ * ```js
2126
+ * appEmbed.on(EmbedEvent.customAction, payload => {
2127
+ * const data = payload.data;
2128
+ * if (data.id === 'insert Custom Action ID here') {
2129
+ * console.log('Custom Action event:', data.embedAnswerData);
2130
+ * }
2131
+ * })
2132
+ * ```
1988
2133
  */
1989
2134
  CustomAction = "customAction",
1990
2135
  /**
1991
- * Listen to double clicks on a visualization
2136
+ * Listen to double click actions on a visualization.
2137
+ *
2138
+ * @return ContextMenuInputPoints - Data point that is double-clicked
1992
2139
  *
1993
- * @return ContextMenuInputPoints - data point that is double clicked
1994
2140
  * @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
2141
+ *
2142
+ * @example
2143
+ * ```js
2144
+ * livebaordEmbed.on(EmbedEvent.VizPointDoubleClick, payload => {
2145
+ * console.log('VizPointDoubleClick', payload)
2146
+ * })
2147
+ * ```
1995
2148
  */
1996
2149
  VizPointDoubleClick = "vizPointDoubleClick",
1997
2150
  /**
1998
- * Listen to clicks on a visualization in a liveboard or Search result.
2151
+ * Listen to clicks on a visualization in a Liveboard or Search result.
2152
+ *
2153
+ * @return viz, clickedPoint - metadata about the point that is clicked
2154
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2155
+ * @important
1999
2156
  *
2000
2157
  * @example
2001
2158
  * ```js
@@ -2009,25 +2166,46 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2009
2166
  * )
2010
2167
  * });
2011
2168
  * ```
2012
- * @return viz, clickedPoint - metadata about point that is clicked
2013
- * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2014
- * @important
2015
2169
  */
2016
2170
  VizPointClick = "vizPointClick",
2017
2171
  /**
2018
2172
  * An error has occurred.
2019
2173
  *
2020
2174
  * @returns error - An error object or message
2175
+ *
2176
+ * @example
2177
+ * ```js
2178
+ * SearchEmbed.on(EmbedEvent.Error, showErrorMsg)
2179
+ * //show error messaage
2180
+ * function showErrorMsg() {
2181
+ * document.getElementById("error");
2182
+ * ```
2183
+ *
2021
2184
  */
2022
2185
  Error = "Error",
2023
2186
  /**
2024
- * The embedded object has sent an alert
2187
+ * The embedded object has sent an alert.
2025
2188
  *
2026
2189
  * @returns alert - An alert object
2190
+ *
2191
+ * @example
2192
+ * ```js
2193
+ * searchEmbed.on(EmbedEvent.Alert)
2194
+ * ```
2195
+ *
2027
2196
  */
2028
2197
  Alert = "alert",
2029
2198
  /**
2030
2199
  * The ThoughtSpot auth session has expired.
2200
+ *
2201
+ * @example
2202
+ *```js
2203
+ * appEmbed.on(EmbedEvent.AuthExpire, showAuthExpired)
2204
+ * //show auth expired banner
2205
+ * function showAuthExpired() {
2206
+ * document.getElementById("authExpiredBanner");
2207
+ * }
2208
+ *```
2031
2209
  */
2032
2210
  AuthExpire = "ThoughtspotAuthExpired",
2033
2211
  /**
@@ -2057,14 +2235,28 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2057
2235
  */
2058
2236
  EmbedIframeCenter = "EmbedIframeCenter",
2059
2237
  /**
2060
- * Emitted when the "Get Data" button in Search Bar embed
2061
- * is clicked.
2238
+ * Emitted when the **Get Data** action is initiated.
2239
+ * Applicable to `SearchBarEmbed` only.
2240
+ *
2241
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
2062
2242
  *
2063
- * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.0.sw
2243
+ * @example
2244
+ *```js
2245
+ * searchbarEmbed.on(EmbedEvent.GetDataClick)
2246
+ * .then(data => {
2247
+ * console.log('Answer Data:', data);
2248
+ * })
2249
+ *```
2064
2250
  */
2065
2251
  GetDataClick = "getDataClick",
2066
2252
  /**
2067
2253
  * Detects the route change.
2254
+ *
2255
+ * @example
2256
+ *```js
2257
+ * searchEmbed.on(EmbedEvent.RouteChange, payload =>
2258
+ * console.log('data', payload))
2259
+ *```
2068
2260
  */
2069
2261
  RouteChange = "ROUTE_CHANGE",
2070
2262
  /**
@@ -2074,10 +2266,15 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2074
2266
  */
2075
2267
  V1Data = "exportVizDataToParent",
2076
2268
  /**
2077
- * Emitted when the embed does not have cookie access. This
2078
- * happens on Safari where third-party cookies are blocked by default.
2269
+ * Emitted when the embed does not have cookie access. This happens
2270
+ * when Safari and other Web browsers block third-party cookies
2271
+ * are blocked by default. `NoCookieAccess` can trigger
2079
2272
  *
2080
- * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1
2273
+ * @example
2274
+ *```js
2275
+ * appEmbed.on(EmbedEvent.NoCookieAccess)
2276
+ *```
2277
+ * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1.sw
2081
2278
  */
2082
2279
  NoCookieAccess = "noCookieAccess",
2083
2280
  /**
@@ -2089,239 +2286,539 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2089
2286
  SAMLComplete = "samlComplete",
2090
2287
  /**
2091
2288
  * Emitted when any modal is opened in the app
2092
- *
2093
2289
  * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
2290
+ *
2291
+ * @example
2292
+ *```js
2293
+ * appEmbed.on(EmbedEvent.DialogOpen, payload => {
2294
+ * console.log('dialog open', payload);
2295
+ * })
2296
+ *```
2094
2297
  */
2095
2298
  DialogOpen = "dialog-open",
2096
2299
  /**
2097
2300
  * Emitted when any modal is closed in the app
2098
- *
2099
2301
  * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
2302
+ *
2303
+ * @example
2304
+ *```js
2305
+ * appEmbed.on(EmbedEvent.DialogClose, payload => {
2306
+ * console.log('dialog close', payload);
2307
+ * })
2308
+ *```
2100
2309
  */
2101
2310
  DialogClose = "dialog-close",
2102
2311
  /**
2103
2312
  * Emitted when the Liveboard shell loads.
2104
2313
  * You can use this event as a hook to trigger
2105
2314
  * other events on the rendered Liveboard.
2106
- *
2107
2315
  * @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
2316
+ *
2317
+ * @example
2318
+ *```js
2319
+ * liveboardEmbed.on(EmbedEvent.LiveboardRendered, payload => {
2320
+ console.log('Liveboard is rendered', payload);
2321
+ })
2322
+ *```
2323
+ * The following example shows how to trigger
2324
+ * `SetVisibleVizs` event using LiveboardRendered embed event:
2325
+ *
2326
+ * @example
2327
+ *```js
2328
+ * const embedRef = useEmbedRef();
2329
+ * const onLiveboardRendered = () => {
2330
+ * embed.trigger(HostEvent.SetVisibleVizs, ['viz1', 'viz2']);
2331
+ * };
2332
+ *```
2108
2333
  */
2109
2334
  LiveboardRendered = "PinboardRendered",
2110
2335
  /**
2111
2336
  * This can be used to register an event listener which
2112
2337
  * is triggered on all events.
2113
- *
2114
2338
  * @Version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
2339
+ *
2340
+ * @example
2341
+ *```js
2342
+ * appEmbed.on(EmbedEvent.ALL, payload => {
2343
+ * console.log('Embed Events', payload)
2344
+ * })
2345
+ *```
2115
2346
  */
2116
2347
  ALL = "*",
2117
2348
  /**
2118
2349
  * Emitted when an Answer is saved in the app
2119
- *
2120
2350
  * @Version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2351
+ * @example
2352
+ *```js
2353
+ * //trigger when action starts
2354
+ * searchEmbed.on(EmbedEvent.Save, payload => {
2355
+ * console.log('Save', payload)
2356
+ * }, {
2357
+ * start: true
2358
+ * })
2359
+ * //trigger when action ends
2360
+ * searchEmbed.on(EmbedEvent.Save, payload => {
2361
+ * console.log('Save', payload)
2362
+ * })
2363
+ *```
2121
2364
  */
2122
2365
  Save = "save",
2123
2366
  /**
2124
2367
  * Emitted when the download action is triggered on an answer
2125
2368
  *
2369
+ * **Note**: This event is deprecated in v1.21.0.
2370
+ * To fire an event when a download action is initiated on a chart or table,
2371
+ * use `EmbedEvent.DownloadAsPng`, `EmbedEvent.DownloadAsPDF`, `EmbedEvent.DownloadAsCSV`,
2372
+ * or `EmbedEvent.DownloadAsXLSX`
2373
+ *
2126
2374
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2375
+ *
2376
+ * @example
2377
+ *```js
2378
+ * liveboardEmbed.trigger(HostEvent.Download, {
2379
+ * vizId: '730496d6-6903-4601-937e-2c691821af3c'
2380
+ * })
2381
+ *```
2127
2382
  */
2128
2383
  Download = "download",
2129
2384
  /**
2130
2385
  * Emitted when the download action is triggered on an answer
2131
- *
2132
2386
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.0.sw
2387
+ *
2388
+ * @example
2389
+ *```js
2390
+ * //trigger when action starts
2391
+ * searchEmbed.on(EmbedEvent.DownloadAsPng, payload => {
2392
+ * console.log('download PNG', payload)}, {start: true })
2393
+ * //trigger when action ends
2394
+ * searchEmbed.on(EmbedEvent.DownloadAsPng, payload => {
2395
+ * console.log('download PNG', payload)})
2396
+ *```
2397
+ *
2133
2398
  */
2134
2399
  DownloadAsPng = "downloadAsPng",
2135
2400
  /**
2136
2401
  * Emitted when the Download as PDF action is triggered on an answer
2137
2402
  *
2138
2403
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2404
+ *
2405
+ * @example
2406
+ *```js
2407
+ * //trigger when action starts
2408
+ * searchEmbed.on(EmbedEvent.DownloadAsPdf, payload => {
2409
+ * console.log('download PDF', payload)}, {start: true })
2410
+ * //trigger when action ends
2411
+ * searchEmbed.on(EmbedEvent.DownloadAsPdf, payload => {
2412
+ * console.log('download PDF', payload)})
2413
+ *```
2414
+ *
2139
2415
  */
2140
2416
  DownloadAsPdf = "downloadAsPdf",
2141
2417
  /**
2142
2418
  * Emitted when the Download as CSV action is triggered on an answer
2143
2419
  *
2144
2420
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2421
+ * @example
2422
+ *```js
2423
+ * //trigger when action starts
2424
+ * searchEmbed.on(EmbedEvent.DownloadAsCSV, payload => {
2425
+ * console.log('download CSV', payload)}, {start: true })
2426
+ * //trigger when action ends
2427
+ * searchEmbed.on(EmbedEvent.DownloadAsCSV, payload => {
2428
+ * console.log('download CSV', payload)})
2429
+ *```
2145
2430
  */
2146
2431
  DownloadAsCsv = "downloadAsCsv",
2147
2432
  /**
2148
2433
  * Emitted when the Download as XLSX action is triggered on an answer
2149
2434
  *
2150
2435
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2436
+ *
2437
+ * @example
2438
+ *```js
2439
+ * //trigger when action starts
2440
+ * searchEmbed.on(EmbedEvent.DownloadAsXlsx, payload => {
2441
+ * console.log('download Xlsx', payload)}, { start: true })
2442
+ * //trigger when action ends
2443
+ * searchEmbed.on(EmbedEvent.DownloadAsXlsx, payload => {
2444
+ * console.log('download Xlsx', payload)})
2445
+ *```
2151
2446
  */
2152
2447
  DownloadAsXlsx = "downloadAsXlsx",
2153
2448
  /**
2154
- * Emitted when an answer is deleted in the app
2449
+ * Emitted when an Answer is deleted in the app
2155
2450
  *
2156
2451
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2452
+ *
2453
+ * @example
2454
+ *```js
2455
+ * //trigger when action starts
2456
+ * appEmbed.on(EmbedEvent.AnswerDelete, payload => {
2457
+ * console.log('delete answer', payload)}, {start: true })
2458
+ * //trigger when action is completed
2459
+ * appEmbed.on(EmbedEvent.AnswerDelete, payload => {
2460
+ * console.log('delete answer', payload)})
2461
+ *```
2157
2462
  */
2158
2463
  AnswerDelete = "answerDelete",
2159
2464
  /**
2160
2465
  * Emitted when an answer is pinned to a Liveboard
2161
2466
  *
2162
2467
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2468
+ * @example
2469
+ *```js
2470
+ * //trigger when action starts
2471
+ * searchEmbed.on(EmbedEvent.Pin, payload => {
2472
+ * console.log('pin', payload)
2473
+ * }, {
2474
+ * start: true
2475
+ * })
2476
+ * //trigger when action ends
2477
+ * searchEmbed.on(EmbedEvent.Pin, payload => {
2478
+ * console.log('pin', payload)
2479
+ * })
2480
+ *```
2163
2481
  */
2164
2482
  Pin = "pin",
2165
2483
  /**
2166
2484
  * Emitted when SpotIQ analysis is triggered
2167
2485
  *
2168
2486
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2487
+ * @example
2488
+ *```js
2489
+ * //trigger when action starts
2490
+ * searchEmbed.on(EmbedEvent.SpotIQAnalyze, payload => {
2491
+ * console.log('SpotIQAnalyze', payload)
2492
+ * }, {
2493
+ * start: true
2494
+ * })
2495
+ * //trigger when action ends
2496
+ * searchEmbed.on(EmbedEvent.SpotIQAnalyze, payload => {
2497
+ * console.log('SpotIQ analyze', payload)
2498
+ * })
2499
+ *```
2169
2500
  */
2170
2501
  SpotIQAnalyze = "spotIQAnalyze",
2171
2502
  /**
2172
2503
  * Emitted when a user shares an object with another user or group
2173
2504
  *
2174
2505
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2506
+ *
2507
+ * @example
2508
+ *```js
2509
+ * //trigger when action starts
2510
+ * searchEmbed.on(EmbedEvent.Share, payload => {
2511
+ * console.log('Share', payload)
2512
+ * }, {
2513
+ * start: true
2514
+ * })
2515
+ * //trigger when action ends
2516
+ * searchEmbed.on(EmbedEvent.Share, payload => {
2517
+ * console.log('Share', payload)
2518
+ * })
2519
+ *```
2175
2520
  */
2176
2521
  Share = "share",
2177
2522
  /**
2178
- * Emitted when a user clicks the Include action to include a specific value or data
2179
- * on a chart or table
2523
+ * Emitted when a user clicks the **Include** action to include a specific value or
2524
+ * data on a chart or table.
2180
2525
  *
2181
2526
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2527
+ * @example
2528
+ *```js
2529
+ * appEmbed.on(EmbedEvent.DrillInclude, payload => {
2530
+ * console.log('Drill include', payload);
2531
+ * })
2532
+ *```
2182
2533
  */
2183
2534
  DrillInclude = "context-menu-item-include",
2184
2535
  /**
2185
- * Emitted when a user clicks the Exclude action to exclude a specific value or data
2186
- * on a chart or table
2536
+ * Emitted when a user clicks the **Exclude** action to exclude a specific value or
2537
+ * data on a chart or table
2187
2538
  *
2188
2539
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2540
+ * @example
2541
+ *```js
2542
+ * appEmbed.on(EmbedEvent.DrillExclude, payload => {
2543
+ * console.log('Drill exclude', payload);
2544
+ * })
2545
+ *```
2189
2546
  */
2190
2547
  DrillExclude = "context-menu-item-exclude",
2191
2548
  /**
2192
- * Emitted when copied column value on the app
2549
+ * Emitted when a column value is copied in the embedded app.
2193
2550
  *
2194
2551
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2552
+ * @example
2553
+ *```js
2554
+ * seachEmbed.on(EmbedEvent.CopyToClipboard, payload => {
2555
+ * console.log('copy to clipboard', payload);
2556
+ * })
2557
+ *```
2195
2558
  */
2196
2559
  CopyToClipboard = "context-menu-item-copy-to-clipboard",
2197
2560
  /**
2198
- * Emitted when a user clicks the Update TML action
2561
+ * Emitted when a user clicks the **Update TML** action
2199
2562
  *
2200
2563
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2564
+ * @example
2565
+ *```js
2566
+ * liveboardEmbed.on(EmbedEvent.UpdateTML)
2567
+ * })
2568
+ *```
2201
2569
  */
2202
2570
  UpdateTML = "updateTSL",
2203
2571
  /**
2204
- * Emitted when a user clicks the Edit TML action
2572
+ * Emitted when a user clicks the **Edit TML** action
2205
2573
  *
2206
2574
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2575
+ * @example
2576
+ *```js
2577
+ * appEmbed.on(EmbedEvent.EditTML, payload => {
2578
+ * console.log('Edit TML', payload);
2579
+ * })
2580
+ *```
2207
2581
  */
2208
2582
  EditTML = "editTSL",
2209
2583
  /**
2210
- * Emitted when ExportTML trigger in answer on the app
2211
- *
2584
+ * Emitted when the **Export TML** action is triggered on an
2585
+ * an embedded object in the app
2212
2586
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2587
+ * @example
2588
+ *```js
2589
+ * //trigger when action starts
2590
+ * searchEmbed.on(EmbedEvent.ExportTML, payload => {
2591
+ * console.log('Export TML', payload)}, { start: true })
2592
+ * //trigger when action ends
2593
+ * searchEmbed.on(EmbedEvent.ExportTML, payload => {
2594
+ * console.log('Export TML', payload)})
2595
+ *```
2213
2596
  */
2214
2597
  ExportTML = "exportTSL",
2215
2598
  /**
2216
- * Emitted when an answer is saved as a view
2599
+ * Emitted when an Answer is saved as a View.
2217
2600
  *
2218
2601
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2602
+ * @example
2603
+ *```js
2604
+ * appEmbed.on(EmbedEvent.SaveAsView, payload => {
2605
+ * console.log('View', payload);
2606
+ * })
2607
+ *```
2219
2608
  */
2220
2609
  SaveAsView = "saveAsView",
2221
2610
  /**
2222
- * Emitted when copy of existing answer on the app
2611
+ * Emitted when the user creates a copy of an Answer
2223
2612
  *
2224
2613
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2614
+ * @example
2615
+ *```js
2616
+ * //trigger when action starts
2617
+ * appEmbed.on(EmbedEvent.CopyAEdit, payload => {
2618
+ * console.log('Copy and edit', payload)}, {start: true })
2619
+ * //trigger when action ends
2620
+ * appEmbed.on(EmbedEvent.CopyAEdit, payload => {
2621
+ * console.log('Copy and edit', payload)})
2622
+ *```
2225
2623
  */
2226
2624
  CopyAEdit = "copyAEdit",
2227
2625
  /**
2228
- * Emitted when a user clicks Show underlying data on an answe
2626
+ * Emitted when a user clicks Show underlying data on an Answer
2229
2627
  *
2230
2628
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2629
+ * @example
2630
+ *```js
2631
+ * liveboardEmbed.on(EmbedEvent.ShowUnderlyingData, payload => {
2632
+ * console.log('show data', payload);
2633
+ * })
2634
+ *```
2231
2635
  */
2232
2636
  ShowUnderlyingData = "showUnderlyingData",
2233
2637
  /**
2234
- * Emitted when an answer is switched to a chart or table view
2638
+ * Emitted when an answer is switched to a chart or table view.
2235
2639
  *
2236
2640
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
2641
+ * @example
2642
+ *```js
2643
+ * searchEmbed.on(EmbedEvent.AnswerChartSwitcher, payload => {
2644
+ * console.log('switch view', payload);
2645
+ * })
2646
+ *```
2237
2647
  */
2238
2648
  AnswerChartSwitcher = "answerChartSwitcher",
2239
2649
  /**
2240
- * Internal event to communicate the initial settings back to the TS APP
2650
+ * Internal event to communicate the initial settings back to the ThoughtSpot app
2241
2651
  *
2242
2652
  * @hidden
2243
2653
  */
2244
2654
  APP_INIT = "appInit",
2245
2655
  /**
2246
- * Emitted when a user clicks Show Liveboard details on a Liveboard
2656
+ * Emitted when a user clicks **Show Liveboard details** on a Liveboard
2247
2657
  *
2248
2658
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2659
+ * @example
2660
+ *```js
2661
+ * liveboardEmbed.on(EmbedEvent.AnswerChartSwitcher, payload => {
2662
+ * console.log('Liveboard details', payload);
2663
+ * })
2664
+ *```
2249
2665
  */
2250
2666
  LiveboardInfo = "pinboardInfo",
2251
2667
  /**
2252
2668
  * Emitted when a user clicks on the Favorite icon on a Liveboard
2253
2669
  *
2254
2670
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2671
+ * @example
2672
+ *```js
2673
+ * liveboardEmbed.on(EmbedEvent.AddToFavorites, payload => {
2674
+ * console.log('favorites', payload);
2675
+ * })
2676
+ *```
2255
2677
  */
2256
2678
  AddToFavorites = "addToFavorites",
2257
2679
  /**
2258
- * Emitted when a user clicks Schedule on a Liveboard
2680
+ * Emitted when a user clicks **Schedule** on a Liveboard
2259
2681
  *
2260
2682
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2683
+ * @example
2684
+ *```js
2685
+ * liveboardEmbed.on(EmbedEvent.Schedule, payload => {
2686
+ * console.log(`Liveboard schedule', payload);
2687
+ * })
2688
+ *```
2261
2689
  */
2262
2690
  Schedule = "subscription",
2263
2691
  /**
2264
- * Emitted when a user clicks Edit on a Liveboard or visualization
2692
+ * Emitted when a user clicks **Edit** on a Liveboard or visualization
2265
2693
  *
2266
2694
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2695
+ * @example
2696
+ *```js
2697
+ * liveboardEmbed.on(EmbedEvent.Edit, payload => {
2698
+ * console.log(`Liveboard edit', payload);
2699
+ * })
2700
+ *```
2267
2701
  */
2268
2702
  Edit = "edit",
2269
2703
  /**
2270
- * Emitted when a user clicks Make a copy on a Liveboard
2704
+ * Emitted when a user clicks *Make a copy* on a Liveboard
2271
2705
  *
2272
2706
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2707
+ * @example
2708
+ *```js
2709
+ * liveboardEmbed.on(EmbedEvent.MakeACopy, payload => {
2710
+ * console.log(`Copy', payload);
2711
+ * })
2712
+ *```
2273
2713
  */
2274
2714
  MakeACopy = "makeACopy",
2275
2715
  /**
2276
- * Emitted when a user clicks Present on a Liveboard or visualization
2716
+ * Emitted when a user clicks **Present** on a Liveboard or visualization
2277
2717
  *
2278
2718
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2719
+ * @example
2720
+ *```js
2721
+ * liveboardEmbed.trigger(HostEvent.Present)
2722
+ *```
2723
+ *
2724
+ * @example
2725
+ *```js
2726
+ * liveboardEmbed.on(EmbedEvent.Present, {
2727
+ * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
2728
+ * })
2729
+ *```
2279
2730
  */
2280
2731
  Present = "present",
2281
2732
  /**
2282
- * Emitted when a user clicks Delete on a Liveboard
2733
+ * Emitted when a user clicks **Delete** on a visualization
2283
2734
  *
2284
2735
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2736
+ * @example
2737
+ *```js
2738
+ * liveboardEmbed.trigger(HostEvent.Delete,
2739
+ * {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
2740
+ *```
2741
+ *
2285
2742
  */
2286
2743
  Delete = "delete",
2287
2744
  /**
2288
2745
  * Emitted when a user clicks Manage schedules on a Liveboard
2289
2746
  *
2290
2747
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2748
+ *
2749
+ * @example
2750
+ *```js
2751
+ * liveboardEmbed.trigger(HostEvent.SchedulesList)
2752
+ *```
2753
+ *
2291
2754
  */
2292
2755
  SchedulesList = "schedule-list",
2293
2756
  /**
2294
- * Emitted when a user clicks Cancel in edit mode on a Liveboard
2757
+ * Emitted when a user clicks **Cancel** in edit mode on a Liveboard
2295
2758
  *
2296
2759
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2760
+ *
2761
+ * @example
2762
+ *```js
2763
+ * liveboardEmbed.trigger(HostEvent.Cancel)
2764
+ *```
2765
+ *
2297
2766
  */
2298
2767
  Cancel = "cancel",
2299
2768
  /**
2300
- * Emitted when a user clicks Explore on a visualization
2769
+ * Emitted when a user clicks **Explore** on a visualization
2301
2770
  *
2302
2771
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2772
+ *
2773
+ * @example
2774
+ *```js
2775
+ * liveboardEmbed.trigger(HostEvent.Explore, {
2776
+ * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
2777
+ *```
2778
+ *
2303
2779
  */
2304
2780
  Explore = "explore",
2305
2781
  /**
2306
- * Emitted when a user clicks Copy link action on a visualization
2782
+ * Emitted when a user clicks **Copy link** action on a visualization
2307
2783
  *
2308
2784
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2785
+ *
2786
+ * @example
2787
+ *```js
2788
+ * liveboardEmbed.trigger(HostEvent.CopyLink, {
2789
+ * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
2790
+ *```
2791
+ *
2309
2792
  */
2310
2793
  CopyLink = "embedDocument",
2311
2794
  /**
2312
- * Emitted when a user interacts with cross filters on a visualization or liveboard
2795
+ * Emitted when a user interacts with cross filters on a visualization or Liveboard
2796
+ *
2797
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
2798
+ *
2799
+ * @example
2800
+ *```js
2801
+ * liveboardEmbed.trigger(HostEvent.CrossFilterChanged, {
2802
+ * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
2803
+ *```
2313
2804
  *
2314
- * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
2315
2805
  */
2316
2806
  CrossFilterChanged = "cross-filter-changed",
2317
2807
  /**
2318
2808
  * Emitted when a user right clicks on a visualization (chart or table)
2319
2809
  *
2320
- * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
2810
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
2811
+ *
2812
+ * @example
2813
+ *```js
2814
+ * LiveboardEmbed.on(EmbedEvent.VizPointRightClick, payload => {
2815
+ * console.log('VizPointClick', payload)
2816
+ * })
2817
+ *```
2321
2818
  */
2322
2819
  VizPointRightClick = "vizPointRightClick",
2323
2820
  /**
2324
- * Emitted when a user clicks on Insert to slide on a visualization
2821
+ * Emitted when a user clicks **Insert to slide** on a visualization
2325
2822
  *
2326
2823
  * @hidden
2327
2824
  */
@@ -2329,52 +2826,53 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2329
2826
  /**
2330
2827
  * @hidden
2331
2828
  * Emitted when a user changes any filter on a Liveboard.
2332
- * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
2829
+ * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.0.sw
2333
2830
  */
2334
2831
  FilterChanged = "filterChanged",
2335
2832
  /**
2336
- * Emitted when a user click on Go button in Sage Embed
2833
+ * Emitted when a user clicks the **Go** button on the Search page
2337
2834
  *
2338
- * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
2835
+ * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
2339
2836
  */
2340
2837
  SageEmbedQuery = "sageEmbedQuery",
2341
2838
  /**
2342
- * Emitten when a user select data source in Sage Embed
2839
+ * Emitted when a user selects a data source.
2840
+ *
2841
+ * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
2343
2842
  *
2344
- * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
2345
2843
  */
2346
2844
  SageWorksheetUpdated = "sageWorksheetUpdated",
2347
2845
  /**
2348
- * Emitted when a user updates a connection in Data tab
2846
+ * Emitted when a user updates a connection on the **Data** page
2349
2847
  *
2350
- * @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl
2848
+ * @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
2351
2849
  */
2352
2850
  UpdateConnection = "updateConnection",
2353
2851
  /**
2354
- * Emitted when a user updates a connection in Data tab
2852
+ * Emitted when a user updates a connection on the **Data** page
2355
2853
  *
2356
- * @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl
2854
+ * @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
2357
2855
  */
2358
2856
  CreateConnection = "createConnection",
2359
2857
  /**
2360
2858
  * Emitted when name, status (private or public) or filter values of a
2361
- * PersonalisedView is updated.
2859
+ * Personalised view is updated.
2362
2860
  *
2363
2861
  * @returns viewName: string
2364
2862
  * @returns viewId: string
2365
2863
  * @returns liveboardId: string
2366
2864
  * @returns isPublic: boolean
2367
- * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
2865
+ * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
2368
2866
  */
2369
2867
  UpdatePersonalisedView = "updatePersonalisedView",
2370
2868
  /**
2371
- * Emitted when a PersonalisedView is saved.
2869
+ * Emitted when a Personalised view is saved.
2372
2870
  *
2373
2871
  * @returns viewName: string
2374
2872
  * @returns viewId: string
2375
2873
  * @returns liveboardId: string
2376
2874
  * @returns isPublic: boolean
2377
- * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
2875
+ * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
2378
2876
  */
2379
2877
  SavePersonalisedView = "savePersonalisedView",
2380
2878
  /**
@@ -2384,7 +2882,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2384
2882
  * @returns viewId: string
2385
2883
  * @returns liveboardId: string
2386
2884
  * @returns isPublic: boolean
2387
- * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
2885
+ * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
2388
2886
  */
2389
2887
  ResetLiveboard = "resetLiveboard",
2390
2888
  /**
@@ -2392,11 +2890,11 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2392
2890
  *
2393
2891
  * @returns views: string[]
2394
2892
  * @returns liveboardId: string
2395
- * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
2893
+ * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
2396
2894
  */
2397
2895
  DeletePersonalisedView = "deletePersonalisedView",
2398
2896
  /**
2399
- * Emitten when a user creates a new worksheet
2897
+ * Emitted when a user creates a new worksheet
2400
2898
  *
2401
2899
  * @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl
2402
2900
  */
@@ -2426,15 +2924,16 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2426
2924
  */
2427
2925
  export enum HostEvent {
2428
2926
  /**
2429
- * Triggers a search query in AppEmbed and SearchEmbed
2430
- * deployments.
2927
+ * Triggers a search operation with the search tokens specified in
2928
+ * the search query string.
2929
+ * Supported in `AppEmbed` and `SearchEmbed` deployments.
2431
2930
  * Includes the following properties:
2432
2931
  *
2433
- * @param - dataSourceIds - The data source GUID to Search on
2932
+ * @param - `searchQuery` - query string with search tokens
2933
+ * @param - `dataSources` - Data source GUID to Search on
2434
2934
  * - Although an array, only a single source
2435
2935
  * is supported.
2436
- * @param - searchQuery - Query string with search tokens
2437
- * @param - execute - executes the existing / updated query
2936
+ * @param - `execute` - executes search and updates the existing query
2438
2937
  * @example
2439
2938
  * ```js
2440
2939
  * searchembed.trigger(HostEvent.Search, {
@@ -2454,6 +2953,10 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2454
2953
  * @param - columnGuid - Optional. GUID of the column to drill
2455
2954
  * by. If not provided it will auto drill by the configured
2456
2955
  * column.
2956
+ * @param - autoDrillDown - Optional. If true, the drill down will be
2957
+ * done automatically on the most popular column.
2958
+ * @param - vizId [TS >= 9.8.0] - Optional. The GUID of the visualization to drill
2959
+ * in case of a liveboard.
2457
2960
  * @example
2458
2961
  * ```js
2459
2962
  * searchEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
@@ -2470,6 +2973,25 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2470
2973
  * });
2471
2974
  * })
2472
2975
  * ```
2976
+ * @example
2977
+ * ```js
2978
+ * // Works with TS 9.8.0 and above
2979
+ *
2980
+ * liveboardEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
2981
+ * console.log(payload);
2982
+ * const clickedPoint = payload.data.clickedPoint;
2983
+ * const selectedPoint = payload.data.selectedPoints;
2984
+ * console.log('>>> called', clickedPoint);
2985
+ * liveboardEmbed.trigger(HostEvent.DrillDown, {
2986
+ * points: {
2987
+ * clickedPoint,
2988
+ * selectedPoints: selectedPoint
2989
+ * },
2990
+ * autoDrillDown: true,
2991
+ * vizId: payload.data.vizId
2992
+ * });
2993
+ * })
2994
+ * ```
2473
2995
  * @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
2474
2996
  */
2475
2997
  DrillDown = "triggerDrillDown",
@@ -2486,7 +3008,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2486
3008
  */
2487
3009
  Reload = "reload",
2488
3010
  /**
2489
- * Sets the visible visualizations on a Liveboard.
3011
+ * Display specific visualizations on a Liveboard.
2490
3012
  *
2491
3013
  * @param - An array of GUIDs of the visualization to show. The visualization IDs not passed
2492
3014
  * in this parameter will be hidden.
@@ -2500,7 +3022,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2500
3022
  */
2501
3023
  SetVisibleVizs = "SetPinboardVisibleVizs",
2502
3024
  /**
2503
- * Set the Active Tab of a Liveboard.
3025
+ * Set a Liveboard tab as an active tab.
2504
3026
  *
2505
3027
  * @param - tabId - string of id of Tab to show
2506
3028
  * @example
@@ -2513,7 +3035,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2513
3035
  */
2514
3036
  SetActiveTab = "SetActiveTab",
2515
3037
  /**
2516
- * Updates runtime filters applied on a Saved Answer or Liveboard. The
3038
+ * Update runtime filters applied on a Saved Answer or Liveboard. The
2517
3039
  * runtime filters passed here are appended to the existing runtime
2518
3040
  * filters.
2519
3041
  * Pass an array of runtime filters with the following attributes:
@@ -2539,10 +3061,12 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2539
3061
  */
2540
3062
  UpdateRuntimeFilters = "UpdateRuntimeFilters",
2541
3063
  /**
2542
- * Navigate to a specific page in the embedded application without reloading the page.
3064
+ * Navigate to a specific page in the embedded ThoughtSpot application.
2543
3065
  * This is the same as calling `appEmbed.navigateToPage(path, true)`
2544
3066
  *
2545
- * @param - path - the path to navigate to (can be a number[1/-1] to go forward/back)
3067
+ * @param - `path` - the path to navigate to to go forward or back. The path value can
3068
+ * be a number; for example, `1`, `-1`.
3069
+ *
2546
3070
  * @example
2547
3071
  * ```js
2548
3072
  * appEmbed.navigateToPage(-1)
@@ -2551,7 +3075,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2551
3075
  */
2552
3076
  Navigate = "Navigate",
2553
3077
  /**
2554
- * Opens the filter panel for a particular column.
3078
+ * Open the filter panel for a particular column.
2555
3079
  * Works with Search and Liveboard embed.
2556
3080
  *
2557
3081
  * @param - { columnId: string,
@@ -2569,7 +3093,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2569
3093
  */
2570
3094
  OpenFilter = "openFilter",
2571
3095
  /**
2572
- * Adds columns to the current search query.
3096
+ * Add columns to the current search query.
2573
3097
  *
2574
3098
  * @param - { columnIds: string[] }
2575
3099
  * @example
@@ -2580,7 +3104,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2580
3104
  */
2581
3105
  AddColumns = "addColumns",
2582
3106
  /**
2583
- * Removes a column from the current search query.
3107
+ * Remove a column from the current search query.
2584
3108
  *
2585
3109
  * @param - { columnId: string }
2586
3110
  * @example
@@ -2591,27 +3115,29 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2591
3115
  */
2592
3116
  RemoveColumn = "removeColumn",
2593
3117
  /**
2594
- * Gets the current Liveboard content.
3118
+ * Get the transient state of a Liveboard as encoded content.
3119
+ * This includes unsaved and ad hoc changes such as
3120
+ * Liveboard filters, runtime filters applied on visualizations on a
3121
+ * Liveboard, and Liveboard layout, changes to visualizations such as
3122
+ * sorting, toggling of legends, and data drill down.
2595
3123
  *
2596
3124
  * @example
2597
3125
  * ```js
2598
- * liveboardEmbed.trigger(HostEvent.getExportRequestForCurrentPinboard)
3126
+ * liveboardEmbed.trigger(HostEvent.getexportrequestforcurrentpinboard).then(
3127
+ * data=>console.log(data))
2599
3128
  * ```
2600
3129
  * @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1.sw
2601
3130
  */
2602
3131
  getExportRequestForCurrentPinboard = "getExportRequestForCurrentPinboard",
2603
3132
  /**
2604
- * Triggers the **Pin** action on an embedded object
3133
+ * Trigger the **Pin** action on an embedded object
2605
3134
  *
2606
3135
  * @param - Liveboard embed takes the `vizId` as a
2607
- * key. Can be left undefined when embedding Search, full app or
3136
+ * key. Can be left undefined when embedding Search, full app, or
2608
3137
  * a visualization.
2609
3138
  * @example
2610
3139
  * ```js
2611
- * liveboardEmbed.trigger(HostEvent.Pin, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
2612
- * ```
2613
- * ```js
2614
- * vizEmbed.trigger(HostEvent.Pin)
3140
+ * appEmbed.trigger(HostEvent.Pin)
2615
3141
  * ```
2616
3142
  * ```js
2617
3143
  * searchEmbed.trigger(HostEvent.Pin)
@@ -2620,17 +3146,18 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2620
3146
  */
2621
3147
  Pin = "pin",
2622
3148
  /**
2623
- * Triggers the **Show Liveboard details** action on a Liveboard
3149
+ * Trigger the **Show Liveboard details** action
3150
+ * on an embedded Liveboard.
2624
3151
  *
2625
3152
  * @example
2626
- * ```js
2627
- * liveboardEmbed.trigger(HostEvent.LiveboardInfo)
2628
- * ```
3153
+ *```js
3154
+ * liveboardEmbed.trigger(HostEvent.LiveboardInfo)
3155
+ *```
2629
3156
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2630
3157
  */
2631
3158
  LiveboardInfo = "pinboardInfo",
2632
3159
  /**
2633
- * Triggers the **Schedule** action on a Liveboard
3160
+ * Trigger the **Schedule** action on an embedded Liveboard.
2634
3161
  *
2635
3162
  * @example
2636
3163
  * ```js
@@ -2640,7 +3167,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2640
3167
  */
2641
3168
  Schedule = "subscription",
2642
3169
  /**
2643
- * Triggers the **Manage schedule** action on a Liveboard
3170
+ * Trigger the **Manage schedule** action on an embedded Liveboard
2644
3171
  *
2645
3172
  * @example
2646
3173
  * ```js
@@ -2650,7 +3177,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2650
3177
  */
2651
3178
  SchedulesList = "schedule-list",
2652
3179
  /**
2653
- * Triggers the **Export TML** action on a Liveboard
3180
+ * Trigger the **Export TML** action on an embedded Liveboard.
2654
3181
  *
2655
3182
  * @example
2656
3183
  * ```js
@@ -2660,7 +3187,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2660
3187
  */
2661
3188
  ExportTML = "exportTSL",
2662
3189
  /**
2663
- * Triggers the **Edit TML** action on a Liveboard
3190
+ * Trigger the **Edit TML** action on an embedded Liveboard.
2664
3191
  *
2665
3192
  * @example
2666
3193
  * ```js
@@ -2670,7 +3197,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2670
3197
  */
2671
3198
  EditTML = "editTSL",
2672
3199
  /**
2673
- * Triggers the **Update TML** action on a Liveboard
3200
+ * Trigger the **Update TML** action on an embedded Liveboard.
2674
3201
  *
2675
3202
  * @example
2676
3203
  * ```js
@@ -2680,7 +3207,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2680
3207
  */
2681
3208
  UpdateTML = "updateTSL",
2682
3209
  /**
2683
- * Triggers the **Download PDF** action on a Liveboard
3210
+ * Trigger the **Download PDF** action on an embedded Liveboard.
2684
3211
  *
2685
3212
  * @example
2686
3213
  * ```js
@@ -2690,8 +3217,8 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2690
3217
  */
2691
3218
  DownloadAsPdf = "downloadAsPdf",
2692
3219
  /**
2693
- * Triggers the **Make a copy** action on a Liveboard, Search, or
2694
- * visualization page
3220
+ * Trigger the **Make a copy** action on a Liveboard, Search, or
3221
+ * visualization page.
2695
3222
  *
2696
3223
  * @example
2697
3224
  * ```js
@@ -2707,7 +3234,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2707
3234
  */
2708
3235
  MakeACopy = "makeACopy",
2709
3236
  /**
2710
- * Triggers the **Delete** action on a Liveboard
3237
+ * Trigger the **Delete** action for a Liveboard.
2711
3238
  *
2712
3239
  * @example
2713
3240
  * ```js
@@ -2717,7 +3244,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2717
3244
  */
2718
3245
  Remove = "delete",
2719
3246
  /**
2720
- * Triggers the **Explore* action on a visualization
3247
+ * Trigger the **Explore** action on a visualization.
2721
3248
  *
2722
3249
  * @param - an object with `vizId` as a key
2723
3250
  * @example
@@ -2728,7 +3255,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2728
3255
  */
2729
3256
  Explore = "explore",
2730
3257
  /**
2731
- * Triggers the **Create alert** action on a visualization
3258
+ * Trigger the **Create alert** action on a visualization
2732
3259
  *
2733
3260
  * @param - an object with `vizId` as a key
2734
3261
  * @example
@@ -2741,7 +3268,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2741
3268
  */
2742
3269
  CreateMonitor = "createMonitor",
2743
3270
  /**
2744
- * Triggers the **Manage alerts** action on a visualization
3271
+ * Trigger the **Manage alerts** action on a visualization
2745
3272
  *
2746
3273
  * @param - an object with `vizId` as a key
2747
3274
  * @example
@@ -2754,7 +3281,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2754
3281
  */
2755
3282
  ManageMonitor = "manageMonitor",
2756
3283
  /**
2757
- * Triggers the **Edit** action on a Liveboard or visualization
3284
+ * Trigger the **Edit** action on a Liveboard or visualization
2758
3285
  *
2759
3286
  * @param - object - To trigger the action for a specific visualization
2760
3287
  * in Liveboard embed, pass in `vizId` as a key.
@@ -2775,7 +3302,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2775
3302
  */
2776
3303
  Edit = "edit",
2777
3304
  /**
2778
- * Triggers the **Copy link** action on a Liveboard or visualization
3305
+ * Trigger the **Copy link** action on a Liveboard or visualization
2779
3306
  *
2780
3307
  * @param - object - to trigger the action for a
2781
3308
  * specific visualization in Liveboard embed, pass in `vizId` as a key
@@ -2793,7 +3320,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2793
3320
  */
2794
3321
  CopyLink = "embedDocument",
2795
3322
  /**
2796
- * Triggers the **Present** action on a Liveboard or visualization
3323
+ * Trigger the **Present** action on a Liveboard or visualization
2797
3324
  *
2798
3325
  * @param - object - to trigger the action for a specific visualization
2799
3326
  * in Liveboard embed, pass in `vizId` as a key
@@ -2811,7 +3338,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2811
3338
  */
2812
3339
  Present = "present",
2813
3340
  /**
2814
- * Gets TML for the current search.
3341
+ * Get TML for the current search.
2815
3342
  *
2816
3343
  * @example
2817
3344
  * ```js
@@ -2826,7 +3353,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2826
3353
  */
2827
3354
  GetTML = "getTML",
2828
3355
  /**
2829
- * Triggers the **Show underlying data** action on visualization or search
3356
+ * Trigger the **Show underlying data** action on visualization or search
2830
3357
  *
2831
3358
  * @param - an object with vizId as a key
2832
3359
  * @example
@@ -2844,7 +3371,9 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2844
3371
  */
2845
3372
  ShowUnderlyingData = "showUnderlyingData",
2846
3373
  /**
2847
- * Triggers the **Delete** action on visualization or search
3374
+ * Trigger the **Delete** action for a visualization
3375
+ * in an embedded Liveboard, or a chart or table
3376
+ * generated from Search.
2848
3377
  *
2849
3378
  * @param - Liveboard embed takes an object with `vizId` as a key.
2850
3379
  * Can be left empty if embedding Search or visualization.
@@ -2854,16 +3383,13 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2854
3383
  * '730496d6-6903-4601-937e-2c691821af3c'})
2855
3384
  * ```
2856
3385
  * ```js
2857
- * vizEmbed.trigger(HostEvent.Delete)
2858
- * ```
2859
- * ```js
2860
3386
  * searchEmbed.trigger(HostEvent.Delete)
2861
3387
  * ```
2862
3388
  * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
2863
3389
  */
2864
3390
  Delete = "onDeleteAnswer",
2865
3391
  /**
2866
- * Triggers the **SpotIQ analyze** action on visualization
3392
+ * Trigger the **SpotIQ analyze** action on visualization
2867
3393
  * or search.
2868
3394
  *
2869
3395
  * @param - Liveboard embed takes `vizId` as a
@@ -2884,7 +3410,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2884
3410
  */
2885
3411
  SpotIQAnalyze = "spotIQAnalyze",
2886
3412
  /**
2887
- * Triggers the **Download** action on charts in
3413
+ * Trigger the **Download** action on charts in
2888
3414
  * the embedded view.
2889
3415
  *
2890
3416
  * @example
@@ -2893,17 +3419,15 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2893
3419
  * '730496d6-6903-4601-937e-2c691821af3c'})
2894
3420
  * ```
2895
3421
  * ```js
2896
- * vizEmbed.trigger(HostEvent.Download)
2897
- * ```
2898
- * ```js
2899
- * searchEmbed.trigger(HostEvent.Download)
3422
+ * embed.trigger(HostEvent.Download)
2900
3423
  * ```
2901
- * @deprecated from SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl ,9.4.1.sw ,Use {@link DownloadAsPng}
3424
+ * @deprecated from SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl ,9.4.1.sw
3425
+ * Use {@link DownloadAsPng}
2902
3426
  * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
2903
3427
  */
2904
3428
  Download = "downloadAsPng",
2905
3429
  /**
2906
- * Triggers the **Download** > **PNG** action on
3430
+ * Trigger the **Download** > **PNG** action on
2907
3431
  * charts in the embedded view.
2908
3432
  *
2909
3433
  * @example
@@ -2919,7 +3443,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2919
3443
  */
2920
3444
  DownloadAsPng = "downloadAsPng",
2921
3445
  /**
2922
- * Triggers the **Download** > **CSV** action on tables in
3446
+ * Trigger the **Download** > **CSV** action on tables in
2923
3447
  * the embedded view.
2924
3448
  *
2925
3449
  * @example
@@ -2937,7 +3461,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2937
3461
  */
2938
3462
  DownloadAsCsv = "downloadAsCSV",
2939
3463
  /**
2940
- * Triggers the **Download** > **XLSX** action on tables
3464
+ * Trigger the **Download** > **XLSX** action on tables
2941
3465
  * in the embedded view.
2942
3466
  *
2943
3467
  * @example
@@ -2955,7 +3479,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2955
3479
  */
2956
3480
  DownloadAsXlsx = "downloadAsXLSX",
2957
3481
  /**
2958
- * Triggers the **Share** action on an embedded
3482
+ * Trigger the **Share** action on an embedded
2959
3483
  * Liveboard or Answer.
2960
3484
  *
2961
3485
  * @example
@@ -2969,7 +3493,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2969
3493
  */
2970
3494
  Share = "share",
2971
3495
  /**
2972
- * Triggers the **Save** action on a Liveboard or Answer.
3496
+ * Trigger the **Save** action on a Liveboard or Answer.
2973
3497
  * Saves the changes.
2974
3498
  *
2975
3499
  * @example
@@ -2983,7 +3507,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2983
3507
  */
2984
3508
  Save = "save",
2985
3509
  /**
2986
- * Triggers the **Sync to Sheets** action on an embedded visualization or Answer
3510
+ * Trigger the **Sync to Sheets** action on an embedded visualization or Answer
2987
3511
  * Sends data from an Answer or Liveboard visualization to a Google sheet.
2988
3512
  *
2989
3513
  * @param - an object with `vizId` as a key
@@ -2999,7 +3523,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
2999
3523
  */
3000
3524
  SyncToSheets = "sync-to-sheets",
3001
3525
  /**
3002
- * Triggers the **Sync to Other Apps** action on an embedded visualization or Answer
3526
+ * Trigger the **Sync to Other Apps** action on an embedded visualization or Answer
3003
3527
  * Sends data from an Answer or Liveboard visualization to third-party apps such
3004
3528
  * as Slack, Salesforce, Microsoft Teams, ServiceNow and so on.
3005
3529
  *
@@ -3016,7 +3540,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
3016
3540
  */
3017
3541
  SyncToOtherApps = "sync-to-other-apps",
3018
3542
  /**
3019
- * Triggers the **Manage pipelines** action on an embedded
3543
+ * Trigger the **Manage pipelines** action on an embedded
3020
3544
  * visualization or Answer.
3021
3545
  * Allows users to manage ThoughtSpot Sync pipelines.
3022
3546
  *
@@ -3033,18 +3557,21 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
3033
3557
  */
3034
3558
  ManagePipelines = "manage-pipeline",
3035
3559
  /**
3036
- * Triggers the Reset search on the Search page
3560
+ * Reset search operation on the Search or Answer page.
3037
3561
  *
3038
3562
  * @example
3039
3563
  * ```js
3040
3564
  * searchEmbed.trigger(HostEvent.ResetSearch)
3041
3565
  * ```
3566
+ * ```js
3567
+ * appEmbed.trigger(HostEvent.ResetSearch)
3568
+ * ```
3042
3569
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.0.1.sw
3043
3570
  */
3044
3571
  ResetSearch = "resetSearch",
3045
3572
  /**
3046
3573
  * @hidden
3047
- * Gets the currents visible and runtime filters applied on a Liveboard
3574
+ * Get the currents visible and runtime filters applied on a Liveboard
3048
3575
  * @example
3049
3576
  * liveboardEmbed.trigger(HostEvent.GetFilters)
3050
3577
  * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
@@ -3052,7 +3579,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
3052
3579
  GetFilters = "getFilters",
3053
3580
  /**
3054
3581
  * @hidden
3055
- * Updates the visible filters on the Liveboard.
3582
+ * Update the visible filters on the Liveboard.
3056
3583
  * @param - filter: filter object containing column name and filter operation and values
3057
3584
  * @example
3058
3585
  *
@@ -3065,7 +3592,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
3065
3592
  */
3066
3593
  UpdateFilters = "updateFilters",
3067
3594
  /**
3068
- * Get Tab for the current Liveboard.
3595
+ * Get tab details for the current Liveboard.
3069
3596
  *
3070
3597
  * @example
3071
3598
  * ```js
@@ -3079,9 +3606,9 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
3079
3606
  */
3080
3607
  GetTabs = "getTabs",
3081
3608
  /**
3082
- * Set the visible Tabs on a Liveboard.
3609
+ * Set the visible tabs on a Liveboard.
3083
3610
  *
3084
- * @param - an array of ids of Tabs to show, the ids not passed
3611
+ * @param - an array of ids of tabs to show, the IDs not passed
3085
3612
  * will be hidden.
3086
3613
  * @example
3087
3614
  * ```js
@@ -3095,8 +3622,8 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
3095
3622
  /**
3096
3623
  * Set the hidden tabs on a Liveboard.
3097
3624
  *
3098
- * @param - an array of ids of Tabs to hide, the ids not passed
3099
- * will be shown.
3625
+ * @param - an array of the IDs of the tabs to hide.
3626
+ * The IDs not passed will be shown.
3100
3627
  * @example
3101
3628
  * ```js
3102
3629
  * liveboardEmbed.trigger(HostEvent.SetHiddenTabs, [
@@ -3107,9 +3634,12 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
3107
3634
  */
3108
3635
  SetHiddenTabs = "SetPinboardHiddenTabs",
3109
3636
  /**
3110
- * Updates the search query for sage embed.
3637
+ * Updates the search query string for Natural Language Search operations.
3638
+ *
3639
+ * @param - `queryString`: Text string in Natural Language format
3640
+ *
3641
+ * @param - `executeSearch`: Boolean to execute search and update search query
3111
3642
  *
3112
- * @param - searchOptions: an object queryString and option to execute the query.
3113
3643
  * @example
3114
3644
  * ```js
3115
3645
  * sageEmbed.trigger(HostEvent.UpdateSageQuery, {
@@ -3117,7 +3647,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
3117
3647
  * executeSearch: true,
3118
3648
  * })
3119
3649
  * ```
3120
- * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
3650
+ * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
3121
3651
  */
3122
3652
  UpdateSageQuery = "updateSageQuery",
3123
3653
  /**
@@ -3130,24 +3660,25 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
3130
3660
  * vizId: '123', // For Liveboard Visualization.
3131
3661
  * })
3132
3662
  * ```
3663
+ * @version SDK: 1.26.0 | Thoughtspot: 9.10.0.cl
3133
3664
  */
3134
3665
  GetAnswerSession = "getAnswerSession"
3135
3666
  }
3136
3667
  /**
3137
3668
  * The different visual modes that the data sources panel within
3138
- * search could appear in, i.e., hidden, collapsed, or expanded.
3669
+ * search could appear in, such as hidden, collapsed, or expanded.
3139
3670
  */
3140
3671
  export enum DataSourceVisualMode {
3141
3672
  /**
3142
- * Data source panel is hidden.
3673
+ * The data source panel is hidden.
3143
3674
  */
3144
3675
  Hidden = "hide",
3145
3676
  /**
3146
- * Data source panel is collapsed, but the user can manually expand it.
3677
+ * The data source panel is collapsed, but the user can manually expand it.
3147
3678
  */
3148
3679
  Collapsed = "collapse",
3149
3680
  /**
3150
- * Data source panel is expanded, but the user can manually collapse it.
3681
+ * The data source panel is expanded, but the user can manually collapse it.
3151
3682
  */
3152
3683
  Expanded = "expand"
3153
3684
  }
@@ -3223,7 +3754,10 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
3223
3754
  LiveboardHeaderSticky = "isLiveboardHeaderSticky",
3224
3755
  IsProductTour = "isProductTour",
3225
3756
  HideSearchBarTitle = "hideSearchBarTitle",
3226
- HideSageAnswerHeader = "hideSageAnswerHeader"
3757
+ HideSageAnswerHeader = "hideSageAnswerHeader",
3758
+ HideSearchBar = "hideSearchBar",
3759
+ ClientLogLevel = "clientLogLevel",
3760
+ OverrideNativeConsole = "overrideConsoleLogs"
3227
3761
  }
3228
3762
  /**
3229
3763
  * ThoughtSpot application pages include actions and menu commands
@@ -3283,9 +3817,11 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
3283
3817
  SaveAsView = "saveAsView",
3284
3818
  /**
3285
3819
  * The **Make a copy** action on a Liveboard or Answer
3286
- * page.
3287
- * Creates a copy of the Liveboard, visualization,
3288
- * or Answer.
3820
+ * page. Creates a copy of the Liveboard.
3821
+ * In LiveboardEmbed, the **Make a copy** action is not available for
3822
+ * visualizations in the embedded Liveboard view.
3823
+ * In AppEmbed, the **Make a copy** action is available on both
3824
+ * Liveboards and visualizations.
3289
3825
  *
3290
3826
  * @example
3291
3827
  * ```js
@@ -3469,7 +4005,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
3469
4005
  */
3470
4006
  DownloadAsPdf = "downloadAsPdf",
3471
4007
  /**
3472
- * The **Download** > **CSV** menu action for tables on a Liveboard
4008
+ * The **Download** > **CSV** menu action for tables on a Liveboard
3473
4009
  * or Answer page.
3474
4010
  * Downloads a visualization or Answer in the XLSX format.
3475
4011
  *
@@ -4000,6 +4536,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
4000
4536
  */
4001
4537
  RenameModalTitleDescription = "renameModalTitleDescription",
4002
4538
  /**
4539
+ *
4003
4540
  * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
4004
4541
  */
4005
4542
  RequestVerification = "requestVerification",
@@ -4135,6 +4672,14 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
4135
4672
  session: SessionInterface;
4136
4673
  vizId?: string;
4137
4674
  }
4675
+ export enum LogLevel {
4676
+ SILENT = "SILENT",
4677
+ ERROR = "ERROR",
4678
+ WARN = "WARN",
4679
+ INFO = "INFO",
4680
+ DEBUG = "DEBUG",
4681
+ TRACE = "TRACE"
4682
+ }
4138
4683
  }
4139
4684
 
4140
4685
  declare module '@thoughtspot/visual-embed-sdk/css-variables' {
@@ -4496,14 +5041,14 @@ declare module '@thoughtspot/visual-embed-sdk/embed/sage' {
4496
5041
  */
4497
5042
  export interface SearchOptions {
4498
5043
  /**
4499
- * The query string to pre-fill in natual language search bar
5044
+ * The query string to pass for Natural Language Search.
4500
5045
  */
4501
5046
  searchQuery: string;
4502
5047
  /**
4503
- * Boolean to determine if the search should be executed or not.
4504
- * if it is executed, put the focus on the results.
4505
- * if it’s not executed, put the focus in the search bar - at the end of
4506
- * the tokens
5048
+ * Boolean to define if the search should be executed or not.
5049
+ * If it is executed, the focus is placed on the results.
5050
+ * If it’s not executed, the focus is placed at the end of
5051
+ * the token string in the search bar.
4507
5052
  */
4508
5053
  executeSearch?: boolean;
4509
5054
  }
@@ -4511,16 +5056,16 @@ declare module '@thoughtspot/visual-embed-sdk/embed/sage' {
4511
5056
  * The configuration attributes for the embedded Natural language search view. Based on
4512
5057
  * GPT and LLM.
4513
5058
  *
4514
- * @version: SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.1-sw
5059
+ * @version: SDK: 1.23.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
4515
5060
  * @group Embed components
4516
5061
  */
4517
5062
  export interface SageViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules' | 'hiddenHomeLeftNavItems' | 'hiddenTabs' | 'visibleTabs' | 'reorderedHomepageModules'> {
4518
5063
  /**
4519
- * If set to true, a list of liveboard and answers related
5064
+ * If set to true, a list of Liveboard and Answers related
4520
5065
  * to the natural language search will be shown below the
4521
5066
  * AI generated answer.
4522
5067
  *
4523
- * @deprecated Currently liveboard and answers related
5068
+ * @deprecated Currently Liveboard and Answers related
4524
5069
  * to the natural language search will not be shown for sage
4525
5070
  * embed
4526
5071
  */
@@ -4537,63 +5082,81 @@ declare module '@thoughtspot/visual-embed-sdk/embed/sage' {
4537
5082
  */
4538
5083
  isProductTour?: boolean;
4539
5084
  /**
4540
- * flag to hide search bar title. default false.
5085
+ * Show or hide the search bar title.
4541
5086
  *
4542
- * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl
5087
+ * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
4543
5088
  */
4544
5089
  hideSearchBarTitle?: boolean;
4545
5090
  /**
4546
- * flag to disable Sage Answer header(`AI Answer` title section on top of the Sage
4547
- * answer). default false.
5091
+ * Show or hide the Answer header, that is, the `AI Answer` title
5092
+ * at the top of the Answer page.
4548
5093
  *
4549
- * @version SDK: 1.26.0 | Thoughtspot: 9.9.0.cl
5094
+ * @version SDK: 1.26.0 | Thoughtspot: 9.10.0.cl
4550
5095
  */
4551
5096
  hideSageAnswerHeader?: boolean;
4552
5097
  /**
4553
- * flag to disable changing worksheet. default false.
5098
+ * Disable the worksheet selection option.
4554
5099
  *
4555
- * @version SDK: 1.26.0 | Thoughtspot: 9.9.0.cl
5100
+ * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
4556
5101
  */
4557
5102
  disableWorksheetChange?: boolean;
4558
5103
  /**
4559
- * flag to hide worksheet selector. default false.
5104
+ * Hide the worksheet selection panel.
5105
+ *
5106
+ * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
4560
5107
  */
4561
5108
  hideWorksheetSelector?: boolean;
4562
5109
  /**
4563
- * If set to true, the search bar auto complete search suggestions will not be shown.
4564
- * default false
5110
+ * Show or hide autocomplete suggestions for the search query string.
4565
5111
  *
4566
- * @version SDK: 1.26.0 | Thoughtspot: 9.9.0.cl
5112
+ * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
4567
5113
  */
4568
5114
  hideAutocompleteSuggestions?: boolean;
4569
5115
  /**
4570
- * If set to false, the auto complete search suggestions not be shown
5116
+ * Show or hide autocomplete suggestions for the search query string.
4571
5117
  *
4572
- * @deprecated currently, object suggestions will not be shown for sage embed
4573
- * earlier this flag was used to show Auto complete suggestions
5118
+ * @deprecated
5119
+ * Currently, the object suggestions will not be shown for Natural Language Search.
5120
+ * You can use {@link hideAutocompleteSuggestions} instead.
4574
5121
  */
4575
5122
  showObjectSuggestions?: boolean;
4576
5123
  /**
4577
- * If set to true, sample questions would be hidden to user.
4578
- * These sample questions are autogenerated based on selected datasource.
5124
+ * Show or hide sample questions.
5125
+ * The sample questions are autogenerated based on the worksheet
5126
+ * selected for the search operation.
4579
5127
  *
4580
- * @version SDK: 1.26.0 | Thoughtspot: 9.10.0.cl
5128
+ * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
4581
5129
  */
4582
5130
  hideSampleQuestions?: boolean;
4583
5131
  /**
4584
- * The data source GUID to set on load.
5132
+ * The data source GUID (Worksheet GUID) to set on load.
4585
5133
  */
4586
5134
  dataSource?: string;
4587
5135
  /**
4588
- * Configuration for search options
5136
+ * Includes the following properties:
4589
5137
  *
4590
- * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl
5138
+ * `searchQuery`: The search query string to pass in the search bar.
5139
+ * Supports Natural Language Search queries.
5140
+ *
5141
+ * `executeSearch`: Boolean to define if the search should be executed or not.
5142
+ * If it is executed, the focus is placed on the results.
5143
+ * If it’s not executed, the focus is placed at the end of
5144
+ * the token string in the search bar.
5145
+ *
5146
+ * @example
5147
+ * ```js
5148
+ * searchOptions: {
5149
+ * searchQuery: 'average sales by country and product type',
5150
+ * executeSearch: true,
5151
+ * }
5152
+ * ```
5153
+ * @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
4591
5154
  */
4592
5155
  searchOptions?: SearchOptions;
4593
5156
  }
4594
5157
  export const HiddenActionItemByDefaultForSageEmbed: Action[];
4595
5158
  /**
4596
- * Embed ThoughtSpot LLM and GPT based natural language search component.
5159
+ * Embed ThoughtSpot LLM and GPT-based Natural Language Search component.
4597
5160
  *
4598
5161
  * @version: SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.1-sw
4599
5162
  * @group Embed components
@@ -4655,8 +5218,7 @@ declare module '@thoughtspot/visual-embed-sdk/utils/graphql/answerService/answer
4655
5218
  * const data = await underlying.fetchData(0, 100);
4656
5219
  * })
4657
5220
  * ```
4658
- * @version
4659
- * ThoughtSpot: 9.9.0.cl / SDK: 1.25.0
5221
+ * @version SDK: 1.25.0| ThoughtSpot: 9.10.0.cl
4660
5222
  * @group Events
4661
5223
  */
4662
5224
  export class AnswerService {
@@ -4690,8 +5252,7 @@ declare module '@thoughtspot/visual-embed-sdk/utils/graphql/answerService/answer
4690
5252
  * const data = await underlying.fetchData(0, 100);
4691
5253
  * })
4692
5254
  * ```
4693
- * @version
4694
- * ThoughtSpot: 9.9.0.cl / SDK: 1.25.0
5255
+ * @version SDK: 1.25.0| ThoughtSpot: 9.10.0.cl
4695
5256
  */
4696
5257
  getUnderlyingDataForPoint(outputColumnNames: string[], selectedPoints?: UnderlyingDataPoint[]): Promise<AnswerService>;
4697
5258
  executeQuery(query: string, variables: any): Promise<any>;
@@ -4712,12 +5273,13 @@ declare module '@thoughtspot/visual-embed-sdk/embed/embedConfig' {
4712
5273
  export const getEmbedConfig: () => EmbedConfig;
4713
5274
  /**
4714
5275
  * Sets the configuration embed was initialized with.
5276
+ * And returns the new configuration.
4715
5277
  *
4716
5278
  * @param newConfig The configuration to set.
4717
5279
  * @version SDK: 1.27.0 | ThoughtSpot: *
4718
5280
  * @group Global methods
4719
5281
  */
4720
- export const setEmbedConfig: (newConfig: EmbedConfig) => void;
5282
+ export const setEmbedConfig: (newConfig: EmbedConfig) => EmbedConfig;
4721
5283
  }
4722
5284
 
4723
5285
  declare module '@thoughtspot/visual-embed-sdk/embed/ts-embed' {