@thoughtspot/visual-embed-sdk 1.20.2 → 1.20.3

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 (368) hide show
  1. package/README.md +1 -1
  2. package/cjs/package.json +171 -0
  3. package/cjs/src/auth.d.ts +183 -0
  4. package/cjs/src/auth.d.ts.map +1 -0
  5. package/cjs/src/auth.js +457 -0
  6. package/cjs/src/auth.js.map +1 -0
  7. package/cjs/src/auth.spec.d.ts +13 -0
  8. package/cjs/src/auth.spec.d.ts.map +1 -0
  9. package/cjs/src/auth.spec.js +397 -0
  10. package/cjs/src/auth.spec.js.map +1 -0
  11. package/cjs/src/config.d.ts +22 -0
  12. package/cjs/src/config.d.ts.map +1 -0
  13. package/cjs/src/config.js +70 -0
  14. package/cjs/src/config.js.map +1 -0
  15. package/cjs/src/config.spec.d.ts +5 -0
  16. package/cjs/src/config.spec.d.ts.map +1 -0
  17. package/cjs/src/config.spec.js +65 -0
  18. package/cjs/src/config.spec.js.map +1 -0
  19. package/cjs/src/embed/app.d.ts +168 -0
  20. package/cjs/src/embed/app.d.ts.map +1 -0
  21. package/cjs/src/embed/app.js +215 -0
  22. package/cjs/src/embed/app.js.map +1 -0
  23. package/cjs/src/embed/app.spec.d.ts +2 -0
  24. package/cjs/src/embed/app.spec.d.ts.map +1 -0
  25. package/cjs/src/embed/app.spec.js +239 -0
  26. package/cjs/src/embed/app.spec.js.map +1 -0
  27. package/cjs/src/embed/base.d.ts +79 -0
  28. package/cjs/src/embed/base.d.ts.map +1 -0
  29. package/cjs/src/embed/base.js +229 -0
  30. package/cjs/src/embed/base.js.map +1 -0
  31. package/cjs/src/embed/base.spec.d.ts +2 -0
  32. package/cjs/src/embed/base.spec.d.ts.map +1 -0
  33. package/cjs/src/embed/base.spec.js +198 -0
  34. package/cjs/src/embed/base.spec.js.map +1 -0
  35. package/cjs/src/embed/embed.spec.d.ts +2 -0
  36. package/cjs/src/embed/embed.spec.d.ts.map +1 -0
  37. package/cjs/src/embed/embed.spec.js +74 -0
  38. package/cjs/src/embed/embed.spec.js.map +1 -0
  39. package/cjs/src/embed/events.spec.d.ts +2 -0
  40. package/cjs/src/embed/events.spec.d.ts.map +1 -0
  41. package/cjs/src/embed/events.spec.js +238 -0
  42. package/cjs/src/embed/events.spec.js.map +1 -0
  43. package/cjs/src/embed/liveboard.d.ts +150 -0
  44. package/cjs/src/embed/liveboard.d.ts.map +1 -0
  45. package/cjs/src/embed/liveboard.js +168 -0
  46. package/cjs/src/embed/liveboard.js.map +1 -0
  47. package/cjs/src/embed/liveboard.spec.d.ts +2 -0
  48. package/cjs/src/embed/liveboard.spec.d.ts.map +1 -0
  49. package/cjs/src/embed/liveboard.spec.js +229 -0
  50. package/cjs/src/embed/liveboard.spec.js.map +1 -0
  51. package/cjs/src/embed/pinboard.spec.d.ts +2 -0
  52. package/cjs/src/embed/pinboard.spec.d.ts.map +1 -0
  53. package/cjs/src/embed/pinboard.spec.js +148 -0
  54. package/cjs/src/embed/pinboard.spec.js.map +1 -0
  55. package/cjs/src/embed/search-bar.d.ts +50 -0
  56. package/cjs/src/embed/search-bar.d.ts.map +1 -0
  57. package/cjs/src/embed/search-bar.js +63 -0
  58. package/cjs/src/embed/search-bar.js.map +1 -0
  59. package/cjs/src/embed/search.d.ts +129 -0
  60. package/cjs/src/embed/search.d.ts.map +1 -0
  61. package/cjs/src/embed/search.js +121 -0
  62. package/cjs/src/embed/search.js.map +1 -0
  63. package/cjs/src/embed/search.spec.d.ts +2 -0
  64. package/cjs/src/embed/search.spec.d.ts.map +1 -0
  65. package/cjs/src/embed/search.spec.js +238 -0
  66. package/cjs/src/embed/search.spec.js.map +1 -0
  67. package/cjs/src/embed/searchEmbed-basic-auth.spec.d.ts +2 -0
  68. package/cjs/src/embed/searchEmbed-basic-auth.spec.d.ts.map +1 -0
  69. package/cjs/src/embed/searchEmbed-basic-auth.spec.js +103 -0
  70. package/cjs/src/embed/searchEmbed-basic-auth.spec.js.map +1 -0
  71. package/cjs/src/embed/ts-embed.d.ts +323 -0
  72. package/cjs/src/embed/ts-embed.d.ts.map +1 -0
  73. package/cjs/src/embed/ts-embed.js +719 -0
  74. package/cjs/src/embed/ts-embed.js.map +1 -0
  75. package/cjs/src/embed/ts-embed.spec.d.ts +2 -0
  76. package/cjs/src/embed/ts-embed.spec.d.ts.map +1 -0
  77. package/cjs/src/embed/ts-embed.spec.js +771 -0
  78. package/cjs/src/embed/ts-embed.spec.js.map +1 -0
  79. package/cjs/src/errors.d.ts +7 -0
  80. package/cjs/src/errors.d.ts.map +1 -0
  81. package/cjs/src/errors.js +10 -0
  82. package/cjs/src/errors.js.map +1 -0
  83. package/cjs/src/index.d.ts +18 -0
  84. package/cjs/src/index.d.ts.map +1 -0
  85. package/cjs/src/index.js +42 -0
  86. package/cjs/src/index.js.map +1 -0
  87. package/cjs/src/mixpanel-service.d.ts +29 -0
  88. package/cjs/src/mixpanel-service.d.ts.map +1 -0
  89. package/cjs/src/mixpanel-service.js +76 -0
  90. package/cjs/src/mixpanel-service.js.map +1 -0
  91. package/cjs/src/mixpanel-service.spec.d.ts +2 -0
  92. package/cjs/src/mixpanel-service.spec.d.ts.map +1 -0
  93. package/cjs/src/mixpanel-service.spec.js +63 -0
  94. package/cjs/src/mixpanel-service.spec.js.map +1 -0
  95. package/cjs/src/react/all-types-export.d.ts +3 -0
  96. package/cjs/src/react/all-types-export.d.ts.map +1 -0
  97. package/cjs/src/react/all-types-export.js +29 -0
  98. package/cjs/src/react/all-types-export.js.map +1 -0
  99. package/cjs/src/react/all-types-export.spec.d.ts +2 -0
  100. package/cjs/src/react/all-types-export.spec.d.ts.map +1 -0
  101. package/cjs/src/react/all-types-export.spec.js +13 -0
  102. package/cjs/src/react/all-types-export.spec.js.map +1 -0
  103. package/cjs/src/react/index.d.ts +95 -0
  104. package/cjs/src/react/index.d.ts.map +1 -0
  105. package/cjs/src/react/index.js +121 -0
  106. package/cjs/src/react/index.js.map +1 -0
  107. package/cjs/src/react/index.spec.d.ts +3 -0
  108. package/cjs/src/react/index.spec.d.ts.map +1 -0
  109. package/cjs/src/react/index.spec.js +138 -0
  110. package/cjs/src/react/index.spec.js.map +1 -0
  111. package/cjs/src/react/util.d.ts +19 -0
  112. package/cjs/src/react/util.d.ts.map +1 -0
  113. package/cjs/src/react/util.js +25 -0
  114. package/cjs/src/react/util.js.map +1 -0
  115. package/cjs/src/test/test-utils.d.ts +48 -0
  116. package/cjs/src/test/test-utils.d.ts.map +1 -0
  117. package/cjs/src/test/test-utils.js +108 -0
  118. package/cjs/src/test/test-utils.js.map +1 -0
  119. package/cjs/src/types.d.ts +2020 -0
  120. package/cjs/src/types.d.ts.map +1 -0
  121. package/cjs/src/types.js +1543 -0
  122. package/cjs/src/types.js.map +1 -0
  123. package/cjs/src/utils/answerService.d.ts +10 -0
  124. package/cjs/src/utils/answerService.d.ts.map +1 -0
  125. package/cjs/src/utils/answerService.js +61 -0
  126. package/cjs/src/utils/answerService.js.map +1 -0
  127. package/cjs/src/utils/answerService.spec.d.ts +2 -0
  128. package/cjs/src/utils/answerService.spec.d.ts.map +1 -0
  129. package/cjs/src/utils/answerService.spec.js +31 -0
  130. package/cjs/src/utils/answerService.spec.js.map +1 -0
  131. package/cjs/src/utils/authService.d.ts +37 -0
  132. package/cjs/src/utils/authService.d.ts.map +1 -0
  133. package/cjs/src/utils/authService.js +106 -0
  134. package/cjs/src/utils/authService.js.map +1 -0
  135. package/cjs/src/utils/authService.spec.d.ts +2 -0
  136. package/cjs/src/utils/authService.spec.d.ts.map +1 -0
  137. package/cjs/src/utils/authService.spec.js +72 -0
  138. package/cjs/src/utils/authService.spec.js.map +1 -0
  139. package/cjs/src/utils/processData.d.ts +16 -0
  140. package/cjs/src/utils/processData.d.ts.map +1 -0
  141. package/cjs/src/utils/processData.js +110 -0
  142. package/cjs/src/utils/processData.js.map +1 -0
  143. package/cjs/src/utils/processData.spec.d.ts +2 -0
  144. package/cjs/src/utils/processData.spec.d.ts.map +1 -0
  145. package/cjs/src/utils/processData.spec.js +142 -0
  146. package/cjs/src/utils/processData.spec.js.map +1 -0
  147. package/cjs/src/utils/processTrigger.d.ts +10 -0
  148. package/cjs/src/utils/processTrigger.d.ts.map +1 -0
  149. package/cjs/src/utils/processTrigger.js +63 -0
  150. package/cjs/src/utils/processTrigger.js.map +1 -0
  151. package/cjs/src/utils/processTrigger.spec.d.ts +2 -0
  152. package/cjs/src/utils/processTrigger.spec.d.ts.map +1 -0
  153. package/cjs/src/utils/processTrigger.spec.js +58 -0
  154. package/cjs/src/utils/processTrigger.spec.js.map +1 -0
  155. package/cjs/src/utils.d.ts +68 -0
  156. package/cjs/src/utils.d.ts.map +1 -0
  157. package/cjs/src/utils.js +196 -0
  158. package/cjs/src/utils.js.map +1 -0
  159. package/cjs/src/utils.spec.d.ts +5 -0
  160. package/cjs/src/utils.spec.d.ts.map +1 -0
  161. package/cjs/src/utils.spec.js +98 -0
  162. package/cjs/src/utils.spec.js.map +1 -0
  163. package/dist/src/auth.d.ts +54 -5
  164. package/dist/src/auth.d.ts.map +1 -1
  165. package/dist/src/auth.spec.d.ts +3 -0
  166. package/dist/src/auth.spec.d.ts.map +1 -1
  167. package/dist/src/config.d.ts +1 -0
  168. package/dist/src/config.d.ts.map +1 -1
  169. package/dist/src/embed/app.d.ts +35 -6
  170. package/dist/src/embed/app.d.ts.map +1 -1
  171. package/dist/src/embed/base.d.ts +20 -9
  172. package/dist/src/embed/base.d.ts.map +1 -1
  173. package/dist/src/embed/liveboard.d.ts +17 -5
  174. package/dist/src/embed/liveboard.d.ts.map +1 -1
  175. package/dist/src/embed/search-bar.d.ts +3 -0
  176. package/dist/src/embed/search-bar.d.ts.map +1 -1
  177. package/dist/src/embed/search.d.ts +9 -1
  178. package/dist/src/embed/search.d.ts.map +1 -1
  179. package/dist/src/embed/ts-embed.d.ts +65 -7
  180. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  181. package/dist/src/errors.d.ts.map +1 -1
  182. package/dist/src/index.d.ts +2 -2
  183. package/dist/src/index.d.ts.map +1 -1
  184. package/dist/src/mixpanel-service.d.ts +8 -0
  185. package/dist/src/mixpanel-service.d.ts.map +1 -1
  186. package/dist/src/react/all-types-export.d.ts +3 -0
  187. package/dist/src/react/all-types-export.d.ts.map +1 -0
  188. package/dist/src/react/all-types-export.spec.d.ts +2 -0
  189. package/dist/src/react/all-types-export.spec.d.ts.map +1 -0
  190. package/dist/src/react/index.d.ts +72 -0
  191. package/dist/src/react/index.d.ts.map +1 -1
  192. package/dist/src/react/util.d.ts +4 -0
  193. package/dist/src/react/util.d.ts.map +1 -1
  194. package/dist/src/test/test-utils.d.ts +11 -2
  195. package/dist/src/test/test-utils.d.ts.map +1 -1
  196. package/dist/src/types.d.ts +499 -96
  197. package/dist/src/types.d.ts.map +1 -1
  198. package/dist/src/utils/answerService.d.ts +7 -0
  199. package/dist/src/utils/answerService.d.ts.map +1 -1
  200. package/dist/src/utils/authService.d.ts +30 -0
  201. package/dist/src/utils/authService.d.ts.map +1 -1
  202. package/dist/src/utils/processData.d.ts +12 -0
  203. package/dist/src/utils/processData.d.ts.map +1 -1
  204. package/dist/src/utils/processTrigger.d.ts +7 -0
  205. package/dist/src/utils/processTrigger.d.ts.map +1 -1
  206. package/dist/src/utils.d.ts +12 -0
  207. package/dist/src/utils.d.ts.map +1 -1
  208. package/dist/tsembed-react.es.js +28024 -0
  209. package/dist/tsembed-react.js +27966 -0
  210. package/dist/tsembed.es.js +18114 -305
  211. package/dist/tsembed.js +18088 -327
  212. package/dist/visual-embed-sdk-react-full.d.ts +3092 -0
  213. package/dist/visual-embed-sdk-react.d.ts +2781 -0
  214. package/dist/visual-embed-sdk.d.ts +2944 -0
  215. package/lib/package.json +15 -14
  216. package/lib/src/auth.d.ts +54 -5
  217. package/lib/src/auth.d.ts.map +1 -1
  218. package/lib/src/auth.js +91 -31
  219. package/lib/src/auth.js.map +1 -1
  220. package/lib/src/auth.spec.d.ts +3 -0
  221. package/lib/src/auth.spec.d.ts.map +1 -1
  222. package/lib/src/auth.spec.js +37 -6
  223. package/lib/src/auth.spec.js.map +1 -1
  224. package/lib/src/config.d.ts +1 -0
  225. package/lib/src/config.d.ts.map +1 -1
  226. package/lib/src/config.js +5 -3
  227. package/lib/src/config.js.map +1 -1
  228. package/lib/src/config.spec.js.map +1 -1
  229. package/lib/src/embed/app.d.ts +35 -6
  230. package/lib/src/embed/app.d.ts.map +1 -1
  231. package/lib/src/embed/app.js +55 -16
  232. package/lib/src/embed/app.js.map +1 -1
  233. package/lib/src/embed/app.spec.js +41 -12
  234. package/lib/src/embed/app.spec.js.map +1 -1
  235. package/lib/src/embed/base.d.ts +20 -9
  236. package/lib/src/embed/base.d.ts.map +1 -1
  237. package/lib/src/embed/base.js +31 -15
  238. package/lib/src/embed/base.js.map +1 -1
  239. package/lib/src/embed/base.spec.js.map +1 -1
  240. package/lib/src/embed/embed.spec.js +1 -1
  241. package/lib/src/embed/embed.spec.js.map +1 -1
  242. package/lib/src/embed/liveboard.d.ts +17 -5
  243. package/lib/src/embed/liveboard.d.ts.map +1 -1
  244. package/lib/src/embed/liveboard.js +49 -37
  245. package/lib/src/embed/liveboard.js.map +1 -1
  246. package/lib/src/embed/liveboard.spec.js +37 -30
  247. package/lib/src/embed/liveboard.spec.js.map +1 -1
  248. package/lib/src/embed/pinboard.spec.js +14 -26
  249. package/lib/src/embed/pinboard.spec.js.map +1 -1
  250. package/lib/src/embed/search-bar.d.ts +3 -0
  251. package/lib/src/embed/search-bar.d.ts.map +1 -1
  252. package/lib/src/embed/search-bar.js +5 -6
  253. package/lib/src/embed/search-bar.js.map +1 -1
  254. package/lib/src/embed/search.d.ts +9 -1
  255. package/lib/src/embed/search.d.ts.map +1 -1
  256. package/lib/src/embed/search.js +18 -14
  257. package/lib/src/embed/search.js.map +1 -1
  258. package/lib/src/embed/search.spec.js +16 -19
  259. package/lib/src/embed/search.spec.js.map +1 -1
  260. package/lib/src/embed/searchEmbed-basic-auth.spec.js +4 -0
  261. package/lib/src/embed/searchEmbed-basic-auth.spec.js.map +1 -1
  262. package/lib/src/embed/ts-embed.d.ts +65 -7
  263. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  264. package/lib/src/embed/ts-embed.js +154 -77
  265. package/lib/src/embed/ts-embed.js.map +1 -1
  266. package/lib/src/embed/ts-embed.spec.js +46 -24
  267. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  268. package/lib/src/errors.d.ts.map +1 -1
  269. package/lib/src/errors.js.map +1 -1
  270. package/lib/src/index.d.ts +2 -2
  271. package/lib/src/index.d.ts.map +1 -1
  272. package/lib/src/index.js +4 -4
  273. package/lib/src/index.js.map +1 -1
  274. package/lib/src/mixpanel-service.d.ts +8 -0
  275. package/lib/src/mixpanel-service.d.ts.map +1 -1
  276. package/lib/src/mixpanel-service.js +13 -1
  277. package/lib/src/mixpanel-service.js.map +1 -1
  278. package/lib/src/mixpanel-service.spec.js.map +1 -1
  279. package/lib/src/react/all-types-export.d.ts +3 -0
  280. package/lib/src/react/all-types-export.d.ts.map +1 -0
  281. package/lib/src/react/all-types-export.js +5 -0
  282. package/lib/src/react/all-types-export.js.map +1 -0
  283. package/lib/src/react/all-types-export.spec.d.ts +2 -0
  284. package/lib/src/react/all-types-export.spec.d.ts.map +1 -0
  285. package/lib/src/react/all-types-export.spec.js +10 -0
  286. package/lib/src/react/all-types-export.spec.js.map +1 -0
  287. package/lib/src/react/index.d.ts +72 -0
  288. package/lib/src/react/index.d.ts.map +1 -1
  289. package/lib/src/react/index.js +79 -7
  290. package/lib/src/react/index.js.map +1 -1
  291. package/lib/src/react/index.spec.js +27 -6
  292. package/lib/src/react/index.spec.js.map +1 -1
  293. package/lib/src/react/util.d.ts +4 -0
  294. package/lib/src/react/util.d.ts.map +1 -1
  295. package/lib/src/react/util.js +4 -0
  296. package/lib/src/react/util.js.map +1 -1
  297. package/lib/src/test/test-utils.d.ts +11 -2
  298. package/lib/src/test/test-utils.d.ts.map +1 -1
  299. package/lib/src/test/test-utils.js +36 -25
  300. package/lib/src/test/test-utils.js.map +1 -1
  301. package/lib/src/types.d.ts +499 -96
  302. package/lib/src/types.d.ts.map +1 -1
  303. package/lib/src/types.js +374 -68
  304. package/lib/src/types.js.map +1 -1
  305. package/lib/src/utils/answerService.d.ts +7 -0
  306. package/lib/src/utils/answerService.d.ts.map +1 -1
  307. package/lib/src/utils/answerService.js +7 -0
  308. package/lib/src/utils/answerService.js.map +1 -1
  309. package/lib/src/utils/answerService.spec.js.map +1 -1
  310. package/lib/src/utils/authService.d.ts +30 -0
  311. package/lib/src/utils/authService.d.ts.map +1 -1
  312. package/lib/src/utils/authService.js +39 -2
  313. package/lib/src/utils/authService.js.map +1 -1
  314. package/lib/src/utils/authService.spec.js.map +1 -1
  315. package/lib/src/utils/processData.d.ts +12 -0
  316. package/lib/src/utils/processData.d.ts.map +1 -1
  317. package/lib/src/utils/processData.js +33 -5
  318. package/lib/src/utils/processData.js.map +1 -1
  319. package/lib/src/utils/processData.spec.js.map +1 -1
  320. package/lib/src/utils/processTrigger.d.ts +7 -0
  321. package/lib/src/utils/processTrigger.d.ts.map +1 -1
  322. package/lib/src/utils/processTrigger.js +17 -3
  323. package/lib/src/utils/processTrigger.js.map +1 -1
  324. package/lib/src/utils/processTrigger.spec.js.map +1 -1
  325. package/lib/src/utils.d.ts +12 -0
  326. package/lib/src/utils.d.ts.map +1 -1
  327. package/lib/src/utils.js +24 -19
  328. package/lib/src/utils.js.map +1 -1
  329. package/lib/src/utils.spec.js.map +1 -1
  330. package/package.json +15 -14
  331. package/src/auth.spec.ts +83 -133
  332. package/src/auth.ts +148 -115
  333. package/src/config.spec.ts +2 -4
  334. package/src/config.ts +5 -3
  335. package/src/embed/app.spec.ts +57 -14
  336. package/src/embed/app.ts +91 -36
  337. package/src/embed/base.spec.ts +3 -9
  338. package/src/embed/base.ts +51 -53
  339. package/src/embed/embed.spec.ts +5 -6
  340. package/src/embed/liveboard.spec.ts +56 -37
  341. package/src/embed/liveboard.ts +66 -64
  342. package/src/embed/pinboard.spec.ts +26 -29
  343. package/src/embed/search-bar.tsx +10 -8
  344. package/src/embed/search.spec.ts +31 -21
  345. package/src/embed/search.ts +26 -20
  346. package/src/embed/searchEmbed-basic-auth.spec.ts +22 -28
  347. package/src/embed/ts-embed.spec.ts +99 -144
  348. package/src/embed/ts-embed.ts +188 -162
  349. package/src/errors.ts +3 -6
  350. package/src/index.ts +6 -10
  351. package/src/mixpanel-service.spec.ts +1 -3
  352. package/src/mixpanel-service.ts +13 -1
  353. package/src/react/index.spec.tsx +66 -13
  354. package/src/react/index.tsx +111 -62
  355. package/src/react/util.ts +8 -4
  356. package/src/test/test-utils.ts +43 -39
  357. package/src/types.ts +498 -98
  358. package/src/utils/answerService.spec.ts +3 -5
  359. package/src/utils/answerService.ts +21 -17
  360. package/src/utils/authService.spec.ts +26 -41
  361. package/src/utils/authService.ts +47 -21
  362. package/src/utils/processData.spec.ts +26 -59
  363. package/src/utils/processData.ts +36 -14
  364. package/src/utils/processTrigger.spec.ts +1 -6
  365. package/src/utils/processTrigger.ts +18 -9
  366. package/src/utils.spec.ts +8 -12
  367. package/src/utils.ts +25 -26
  368. package/lib/src/visual-embed-sdk.d.ts +0 -2419
@@ -0,0 +1,2020 @@
1
+ /**
2
+ * Copyright (c) 2023
3
+ *
4
+ * TypeScript type definitions for ThoughtSpot Visual Embed SDK
5
+ *
6
+ * @summary Type definitions for Embed SDK
7
+ * @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
8
+ */
9
+ /**
10
+ * The authentication mechanism for allowing access to the
11
+ * the embedded app
12
+ *
13
+ * @group Authentication / Init
14
+ */
15
+ export declare enum AuthType {
16
+ /**
17
+ * No authentication on the SDK. Passthrough to the embedded App. Alias for
18
+ * `Passthrough`.
19
+ *
20
+ * @example
21
+ * ```js
22
+ * init({
23
+ * // ...
24
+ * authType: AuthType.None,
25
+ * });
26
+ * ```
27
+ */
28
+ None = "None",
29
+ /**
30
+ * Passthrough SSO to the embedded App within the iframe. Requires least
31
+ * configuration, but may not be supported by all IDPs. This will behave like `None`
32
+ * if SSO is not configured on ThoughtSpot.
33
+ *
34
+ * @version: SDK: 1.15.0 | ThouhgtSpot: 8.8.0.cl
35
+ */
36
+ EmbeddedSSO = "EmbeddedSSO",
37
+ /**
38
+ * SSO using SAML
39
+ *
40
+ * @deprecated Use {@link SAMLRedirect} instead
41
+ * @hidden
42
+ */
43
+ SSO = "SSO_SAML",
44
+ /**
45
+ * SSO using SAML
46
+ *
47
+ * @deprecated Use {@link SAMLRedirect} instead
48
+ * @hidden
49
+ */
50
+ SAML = "SSO_SAML",
51
+ /**
52
+ * SSO using SAML
53
+ * Will make the host application redirect to the SAML Idp. Use this
54
+ * when the idp does not allow itself to be embedded.
55
+ *
56
+ * This redirects the host application to the SAML Idp. The host application
57
+ * will be redirected back to the ThoughtSpot app after authentication.
58
+ *
59
+ * @example
60
+ * ```js
61
+ * init({
62
+ * // ...
63
+ * authType: AuthType.SAMLRedirect,
64
+ * });
65
+ * ```
66
+ *
67
+ * This opens the SAML Idp in a popup window. The popup is triggered
68
+ * when the user clicks the trigger button. The popup window will be
69
+ * closed automatically after authentication.
70
+ * @example
71
+ * ```js
72
+ * init({
73
+ * // ...
74
+ * authType: AuthType.SAMLRedirect,
75
+ * authTriggerText: 'Login with SAML',
76
+ * authTriggerContainer: '#embed-container',
77
+ * inPopup: true,
78
+ * });
79
+ * ```
80
+ *
81
+ * Can also use event to trigger the popup flow. Works the same
82
+ * as above example.
83
+ * @example
84
+ * ```js
85
+ * const authEE = init({
86
+ * // ...
87
+ * authType: AuthType.SAMLRedirect,
88
+ * inPopup: true,
89
+ * });
90
+ *
91
+ * someButtonOnYourPage.addEventListener('click', () => {
92
+ * authEE.emit(AuthEvent.TRIGGER_SSO_POPUP);
93
+ * });
94
+ * ```
95
+ */
96
+ SAMLRedirect = "SSO_SAML",
97
+ /**
98
+ * SSO using OIDC
99
+ *
100
+ * @hidden
101
+ * @deprecated Use {@link OIDCRedirect} instead
102
+ */
103
+ OIDC = "SSO_OIDC",
104
+ /**
105
+ * SSO using OIDC
106
+ * Will make the host application redirect to the OIDC Idp.
107
+ * See code samples in {@link SAMLRedirect}.
108
+ */
109
+ OIDCRedirect = "SSO_OIDC",
110
+ /**
111
+ * Trusted authentication server
112
+ *
113
+ * @hidden
114
+ * @deprecated Use {@link TrustedAuth} instead
115
+ */
116
+ AuthServer = "AuthServer",
117
+ /**
118
+ * Trusted authentication server, Use your own authentication server
119
+ * which returns a bearer token, generated using the secret_key obtained
120
+ * from ThoughtSpot.
121
+ *
122
+ * @example
123
+ * ```js
124
+ * init({
125
+ * // ...
126
+ * authType: AuthType.TrustedAuthToken,
127
+ * getAuthToken: () => {
128
+ * return fetch('https://my-backend.app/ts-token')
129
+ * .then((response) => response.json())
130
+ * .then((data) => data.token);
131
+ * }
132
+ * ```
133
+ */
134
+ TrustedAuthToken = "AuthServer",
135
+ /**
136
+ * Trusted authentication server Cookieless, Use you own authentication
137
+ * server which returns a bearer token, generated using the secret_key
138
+ * obtained from ThoughtSpot. This uses a cookieless authentication
139
+ * approach, recommended to by pass third-party cookie-blocking restriction
140
+ * implemented by some browsers
141
+ *
142
+ * @example
143
+ * ```js
144
+ * init({
145
+ * // ...
146
+ * authType: AuthType.TrustedAuthTokenCookieless,
147
+ * getAuthToken: () => {
148
+ * return fetch('https://my-backend.app/ts-token')
149
+ * .then((response) => response.json())
150
+ * .then((data) => data.token);
151
+ * }
152
+ * ```
153
+ * @version SDK: 1.22.0| ThouhgtSpot: 9.3.0.cl, 9.5.1-sw
154
+ */
155
+ TrustedAuthTokenCookieless = "AuthServerCookieless",
156
+ /**
157
+ * Use the ThoughtSpot login API to authenticate to the cluster directly.
158
+ *
159
+ * Warning: This feature is primarily intended for developer testing. It is
160
+ * strongly advised not to use this authentication method in production.
161
+ */
162
+ Basic = "Basic"
163
+ }
164
+ export type DOMSelector = string | HTMLElement;
165
+ /**
166
+ * inline customCSS within the {@link CustomisationsInterface}.
167
+ */
168
+ export interface customCssInterface {
169
+ variables?: {
170
+ [variableName: string]: string;
171
+ };
172
+ rules_UNSTABLE?: {
173
+ [selector: string]: {
174
+ [declaration: string]: string;
175
+ };
176
+ };
177
+ }
178
+ /**
179
+ * Styles within the {@link CustomisationsInterface}.
180
+ */
181
+ export interface CustomStyles {
182
+ customCSSUrl?: string;
183
+ customCSS?: customCssInterface;
184
+ }
185
+ /**
186
+ * Configuration to define the customization on the Embedded
187
+ * Thoughtspot components.
188
+ *
189
+ * @example
190
+ * ```js
191
+ * init({
192
+ * // ...
193
+ * customizations: {
194
+ * style: {
195
+ * customCSS: {
196
+ * variables: {},
197
+ * rules_UNSTABLE: {}
198
+ * }
199
+ * },
200
+ * content: {
201
+ * strings: {
202
+ * 'LIVEBOARDS': 'Dashboards'
203
+ * }
204
+ * },
205
+ * iconSpriteUrl: 'https://my-custom-icon-sprite.svg'
206
+ * }
207
+ * })
208
+ * ```
209
+ */
210
+ export interface CustomisationsInterface {
211
+ style?: CustomStyles;
212
+ content?: {
213
+ strings?: Record<string, any>;
214
+ [key: string]: any;
215
+ };
216
+ iconSpriteUrl?: string;
217
+ }
218
+ /**
219
+ * The configuration object for embedding ThoughtSpot content.
220
+ * It includes the ThoughtSpot hostname or IP address,
221
+ * the type of authentication, and the authentication endpoint
222
+ * if a trusted authentication server is used.
223
+ *
224
+ * @group Authentication / Init
225
+ */
226
+ export interface EmbedConfig {
227
+ /**
228
+ * The ThoughtSpot cluster hostname or IP address.
229
+ */
230
+ thoughtSpotHost: string;
231
+ /**
232
+ * The authentication mechanism to use.
233
+ */
234
+ authType: AuthType;
235
+ /**
236
+ * [AuthServer] The trusted authentication endpoint to use to get the
237
+ * authentication token. A GET request is made to the
238
+ * authentication API endpoint, which returns the token
239
+ * as a plaintext response. For trusted authentication,
240
+ * the `authEndpoint` or `getAuthToken` attribute is required.
241
+ */
242
+ authEndpoint?: string;
243
+ /**
244
+ * [AuthServer] A function that invokes the trusted authentication endpoint
245
+ * and returns a Promise that resolves to the `auth token` string.
246
+ * For trusted authentication, the `authEndpoint` or `getAuthToken`
247
+ * attribute is required.
248
+ *
249
+ * It is advisable to fetch a new token inside this method and not
250
+ * reuse and older issued token, as because when auth expires this is
251
+ * called again and if it is called with an older token the authentication
252
+ * will not succeed.
253
+ */
254
+ getAuthToken?: () => Promise<string>;
255
+ /**
256
+ * [AuthServer / Basic] The user name of the ThoughtSpot user. This
257
+ * attribute is required for trusted authentication.
258
+ */
259
+ username?: string;
260
+ /**
261
+ * [Basic] The ThoughtSpot login password corresponding to the user name
262
+ *
263
+ * Warning: This feature is primarily intended for developer testing. It is
264
+ * strongly advised not to use this authentication method in production.
265
+ */
266
+ password?: string;
267
+ /**
268
+ * [SSO] For SSO Authentication, if `noRedirect` is set to true, it will
269
+ * open the SAML auth flow in a popup, instead of redirecting browser in
270
+ * place.
271
+ *
272
+ * @default false
273
+ * @deprecated
274
+ */
275
+ noRedirect?: boolean;
276
+ /**
277
+ * [SSO] For SSO Authentication, if `inPopup` is set to true, it will open
278
+ * the SAML auth flow in a popup, instead of redirecting browser in place.
279
+ *
280
+ * Need to use this with authTriggerContainer. Or manually trigger
281
+ * the AuthEvent.TRIGGER_SSO_POPUP event on a user interaction.
282
+ *
283
+ * @default false
284
+ * @version SDK: 1.18.0
285
+ */
286
+ inPopup?: boolean;
287
+ /**
288
+ * [SSO] For SSO Authentication, one can supply an optional path param,
289
+ * this will be the path on the host origin where the SAML flow will be
290
+ * terminated.
291
+ *
292
+ * Eg: "/dashboard", "#/foo" [Do not include the host]
293
+ *
294
+ * @version SDK: 1.10.2 | 8.2.0.cl, 8.4.1-sw
295
+ */
296
+ redirectPath?: string;
297
+ /** @internal */
298
+ basepath?: string;
299
+ /**
300
+ * Should we encode URL Query Params using base64 encoding which thoughtspot
301
+ * will generate for embedding. This provides additional security to
302
+ * thoughtspot clusters against Cross site scripting attacks.
303
+ *
304
+ * @default false
305
+ */
306
+ shouldEncodeUrlQueryParams?: boolean;
307
+ /**
308
+ * Suppress cookie access alert when third party cookies are blocked by the
309
+ * user's browser. Third party cookie blocking is the default behaviour on
310
+ * Safari and opt-in for Firefox/Chrome. If you set this to `true`, you are
311
+ * encouraged to handle `noCookieAccess` event, to show your own treatment
312
+ * in this case.
313
+ *
314
+ * @default false
315
+ */
316
+ suppressNoCookieAccessAlert?: boolean;
317
+ /**
318
+ * Re-login when session expires with the previous login options
319
+ *
320
+ * @default false
321
+ */
322
+ autoLogin?: boolean;
323
+ /**
324
+ * Disable redirection to the login page when the embedded session expires
325
+ * This flag is typically used alongside the combination of auth modes such as {@link
326
+ * AuthType.AuthServer} and auto login behavior {@link EmbedConfig.autoLogin}
327
+ *
328
+ * @version SDK: 1.9.3 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
329
+ * @default false
330
+ */
331
+ disableLoginRedirect?: boolean;
332
+ /**
333
+ * This message is displayed on the embed view when the login fails.
334
+ *
335
+ * @version SDK: 1.10.1 | ThoughtSpot: 8.2.0.cl, 8.4.1-sw
336
+ */
337
+ loginFailedMessage?: string;
338
+ /**
339
+ * Calls the prefetch method internally when set to true
340
+ *
341
+ * @default false
342
+ */
343
+ callPrefetch?: boolean;
344
+ /**
345
+ * When there are multiple embeds, queue the render of embed to start
346
+ * after the previous embed's render is complete. This helps in the load
347
+ * performance by decreasing the load on the browser.
348
+ *
349
+ * @Version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
350
+ * @default false
351
+ */
352
+ queueMultiRenders?: boolean;
353
+ /**
354
+ * Dynamic CSS Url to be injected in the loaded application.
355
+ * You would also need to set `style-src` in the CSP settings.
356
+ *
357
+ * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1-sw
358
+ * @default ''
359
+ */
360
+ customCssUrl?: string;
361
+ /**
362
+ * [AuthServer|Basic] Detect if 3rd party cookies are enabled by doing an
363
+ * additional call. This is slower and should be avoided. Listen to the
364
+ * NO_COOKIE_ACCESS event to handle the situation.
365
+ *
366
+ * This is slightly slower than letting the browser handle the cookie check, as it
367
+ * involves an extra network call.
368
+ *
369
+ * @version SDK: 1.10.4 | ThoughtSpot: 8.2.0.cl, 8.4.1-sw
370
+ */
371
+ detectCookieAccessSlow?: boolean;
372
+ /**
373
+ * Hide beta alert warning message for SearchEmbed.
374
+ *
375
+ * @version SDK: 1.12.0 | ThoughtSpot: 8.4.0.cl, 8.4.1-sw*
376
+ */
377
+ suppressSearchEmbedBetaWarning?: boolean;
378
+ /**
379
+ * Custom style params for embed Config.
380
+ *
381
+ * @version SDK: 1.17.0 | ThoughtSpot: 8.9.0.cl
382
+ */
383
+ customizations?: CustomisationsInterface;
384
+ /**
385
+ * For inPopup SAMLRedirect or OIDCRedirect Auth, we need a button which the user
386
+ * click to trigger the flow. This is the containing element
387
+ * for that button.
388
+ *
389
+ * @example
390
+ * ```js
391
+ * init({
392
+ * authType: AuthType.SAMLRedirect,
393
+ * inPopup: true,
394
+ * authTriggerContainer: '#auth-trigger-container'
395
+ * })
396
+ * ```
397
+ * @version SDK: 1.17.0 | ThoughtSpot: *
398
+ */
399
+ authTriggerContainer?: string | HTMLElement;
400
+ /**
401
+ * Specify that we want to use the AuthEvent.TRIGGER_SSO_POPUP event to trigger
402
+ * SAML popup. This is useful when you want to trigger the popup on a custom user
403
+ * action.
404
+ *
405
+ */
406
+ useEventForSAMLPopup?: boolean;
407
+ /**
408
+ * Text to show in the button which triggers the popup auth flow.
409
+ * Default: "Authorize".
410
+ *
411
+ * @version SDK: 1.17.0 | ThoughtSpot: *
412
+ */
413
+ authTriggerText?: string;
414
+ }
415
+ export interface LayoutConfig {
416
+ }
417
+ /**
418
+ * Embedded iFrame configuration
419
+ *
420
+ * @group Embed components
421
+ */
422
+ export interface FrameParams {
423
+ /**
424
+ * The width of the iFrame (unit is pixels if numeric).
425
+ */
426
+ width?: number | string;
427
+ /**
428
+ * The height of the iFrame (unit is pixels if numeric).
429
+ */
430
+ height?: number | string;
431
+ /**
432
+ * Set to 'lazy' to enable lazy loading of the embedded TS frame.
433
+ * This will defer loading of the frame until it comes into the
434
+ * viewport. This is useful for performance optimization.
435
+ */
436
+ loading?: 'lazy' | 'eager' | 'auto';
437
+ /**
438
+ * This parameters will be passed on the iframe
439
+ * as is.
440
+ */
441
+ [key: string]: string | number | boolean | undefined;
442
+ }
443
+ /**
444
+ * The configuration object for an embedded view.
445
+ */
446
+ export interface ViewConfig {
447
+ /**
448
+ * @hidden
449
+ */
450
+ layoutConfig?: LayoutConfig;
451
+ /**
452
+ * The <b>width</b> and <b>height</b> dimensions to render an embedded
453
+ * object inside your app. Specify the values in pixels or percentage.
454
+ */
455
+ frameParams?: FrameParams;
456
+ /**
457
+ * @hidden
458
+ */
459
+ theme?: string;
460
+ /**
461
+ * @hidden
462
+ */
463
+ styleSheet__unstable?: string;
464
+ /**
465
+ * The list of actions to disable from the primary menu, more menu
466
+ * (...), and the contextual menu. These actions will be disabled
467
+ * for the user.
468
+ * Use this to disable actions.
469
+ *
470
+ * @example
471
+ * ```js
472
+ * const embed = new LiveboardEmbed('#embed', {
473
+ * ... // other liveboard view config
474
+ * disabledActions: [Action.Download, Action.Save]
475
+ * });
476
+ * ```
477
+ */
478
+ disabledActions?: Action[];
479
+ /**
480
+ * The tooltip to display for disabled actions.
481
+ */
482
+ disabledActionReason?: string;
483
+ /**
484
+ * The list of actions to hide from the embedded.
485
+ * This actions will be hidden from the user.
486
+ * Use this to hide an action.
487
+ *
488
+ * @example
489
+ * ```js
490
+ * const embed = new LiveboardEmbed('#embed', {
491
+ * ... // other liveboard view config
492
+ * hiddenActions: [Action.Download, Action.Export]
493
+ * });
494
+ * ```
495
+ * @important
496
+ */
497
+ hiddenActions?: Action[];
498
+ /**
499
+ * The list of actions to display from the primary menu, more menu
500
+ * (...), and the contextual menu. These will be only actions that
501
+ * are visible to the user.
502
+ * Use this to hide all actions except the ones you want to show.
503
+ *
504
+ * Use either this or hiddenActions.
505
+ *
506
+ * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1-sw
507
+ * @important
508
+ */
509
+ visibleActions?: Action[];
510
+ /**
511
+ * Show alert messages and toast messages in the embedded view.
512
+ *
513
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
514
+ */
515
+ showAlerts?: boolean;
516
+ /**
517
+ * The list of runtime filters to apply to a search answer,
518
+ * visualization, or Liveboard.
519
+ */
520
+ runtimeFilters?: RuntimeFilter[];
521
+ /**
522
+ * The locale/language to use for the embedded view.
523
+ *
524
+ * @version SDK: 1.9.4 | ThoughtSpot 8.1.0.cl, 8.4.1-sw
525
+ */
526
+ locale?: string;
527
+ /**
528
+ * This is an object (key/val) of override flags which will be applied
529
+ * to the internal embedded object. This can be used to add any
530
+ * URL flag.
531
+ * Warning: This option is for advanced use only and is used internally
532
+ * to control embed behavior in non-regular ways. We do not publish the
533
+ * list of supported keys and values associated with each.
534
+ *
535
+ * @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
536
+ */
537
+ additionalFlags?: {
538
+ [key: string]: string | number | boolean;
539
+ };
540
+ /**
541
+ * Dynamic CSSUrl and customCSS to be injected in the loaded application.
542
+ * You would also need to set `style-src` in the CSP settings.
543
+ *
544
+ * @version SDK: 1.17.2 | ThoughtSpot: 8.4.1-sw, 8.4.0.cl
545
+ * @default ''
546
+ */
547
+ customizations?: CustomisationsInterface;
548
+ /**
549
+ * Insert as a sibling of the target container, instead of appending to a
550
+ * child inside it.
551
+ */
552
+ insertAsSibling?: boolean;
553
+ /**
554
+ * flag to set ContextMenu Trigger to either left or right click.
555
+ *
556
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
557
+ */
558
+ contextMenuTrigger?: ContextMenuTriggerOptions;
559
+ /**
560
+ * flag to override openNew tab context menu link
561
+ *
562
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
563
+ */
564
+ linkOverride?: boolean;
565
+ /**
566
+ * flag to enable insert into slides action
567
+ *
568
+ * @hidden
569
+ * @private
570
+ */
571
+ insertInToSlide?: boolean;
572
+ /**
573
+ * Use a pre-rendered iframe from a pool of pre-rendered iframes
574
+ * if available and matches the configuration.
575
+ *
576
+ * @version SDK: 1.22.0
577
+ * @hidden
578
+ *
579
+ * See [docs]() on how to create a prerender pool.
580
+ */
581
+ usePrerenderedIfAvailable?: boolean;
582
+ }
583
+ /**
584
+ * MessagePayload: Embed event payload: message type, data and status (start/end)
585
+ *
586
+ * @group Events
587
+ */
588
+ export type MessagePayload = {
589
+ type: string;
590
+ data: any;
591
+ status?: string;
592
+ };
593
+ /**
594
+ * MessageOptions: By Providing options, getting specific event start / end based on
595
+ * option
596
+ *
597
+ * @group Events
598
+ */
599
+ export type MessageOptions = {
600
+ /**
601
+ * A boolean value indicating that start status events of this type
602
+ * will be dispatched
603
+ */
604
+ start?: boolean;
605
+ };
606
+ /**
607
+ * MessageCallback: Embed event message callback
608
+ *
609
+ * @group Events
610
+ */
611
+ export type MessageCallback = (payload: MessagePayload,
612
+ /**
613
+ * responder: Message callback function triggered when embed event
614
+ * initiated
615
+ */
616
+ responder?: (data: any) => void) => void;
617
+ /**
618
+ * MessageCallbackObj: contains message options & callback function
619
+ */
620
+ export type MessageCallbackObj = {
621
+ /**
622
+ * options: It contains start, A boolean value indicating that start
623
+ * status events of this type will be dispatched
624
+ */
625
+ options: MessageOptions;
626
+ callback: MessageCallback;
627
+ };
628
+ export type GenericCallbackFn = (...args: any[]) => any;
629
+ export type QueryParams = {
630
+ [key: string]: string;
631
+ };
632
+ /**
633
+ * A map of the supported runtime filter operations
634
+ */
635
+ export declare enum RuntimeFilterOp {
636
+ /**
637
+ * Equals
638
+ */
639
+ EQ = "EQ",
640
+ /**
641
+ * Does not equal
642
+ */
643
+ NE = "NE",
644
+ /**
645
+ * Less than
646
+ */
647
+ LT = "LT",
648
+ /**
649
+ * Less than or equal to
650
+ */
651
+ LE = "LE",
652
+ /**
653
+ * Greater than
654
+ */
655
+ GT = "GT",
656
+ /**
657
+ * Greater than or equal to
658
+ */
659
+ GE = "GE",
660
+ /**
661
+ * Contains
662
+ */
663
+ CONTAINS = "CONTAINS",
664
+ /**
665
+ * Begins with
666
+ */
667
+ BEGINS_WITH = "BEGINS_WITH",
668
+ /**
669
+ * Ends with
670
+ */
671
+ ENDS_WITH = "ENDS_WITH",
672
+ /**
673
+ * Between, inclusive of higher value
674
+ */
675
+ BW_INC_MAX = "BW_INC_MAX",
676
+ /**
677
+ * Between, inclusive of lower value
678
+ */
679
+ BW_INC_MIN = "BW_INC_MIN",
680
+ /**
681
+ * Between, inclusive of both higher and lower value
682
+ */
683
+ BW_INC = "BW_INC",
684
+ /**
685
+ * Between, non-inclusive
686
+ */
687
+ BW = "BW",
688
+ /**
689
+ * Is included in this list of values
690
+ */
691
+ IN = "IN"
692
+ }
693
+ /**
694
+ * A filter that can be applied to ThoughtSpot answers, Liveboards, or
695
+ * visualizations at runtime.
696
+ */
697
+ export interface RuntimeFilter {
698
+ /**
699
+ * The name of the column to filter on (case-sensitive)
700
+ */
701
+ columnName: string;
702
+ /**
703
+ * The operator to apply
704
+ */
705
+ operator: RuntimeFilterOp;
706
+ /**
707
+ * The list of operands. Some operators like EQ, LE accept
708
+ * a single operand, whereas other operators like BW and IN accept multiple
709
+ * operands.
710
+ */
711
+ values: (number | boolean | string)[];
712
+ }
713
+ /**
714
+ * Event types emitted by the embedded ThoughtSpot application.
715
+ *
716
+ * To add an event listener use the corresponding
717
+ * {@link LiveboardEmbed.on} or {@link AppEmbed.on} or {@link SearchEmbed.on} method.
718
+ *
719
+ * @example
720
+ * ```js
721
+ * import { EmbedEvent } from '@thoughtspot/visual-embed-sdk';
722
+ * // Or
723
+ * // const { EmbedEvent } = window.tsembed;
724
+ *
725
+ * // create the liveboard embed.
726
+ *
727
+ * liveboardEmbed.on(EmbedEvent.Drilldown, (drilldown) => {
728
+ * console.log('Drilldown event', drilldown);
729
+ * }));
730
+ * ```
731
+ * @group Events
732
+ */
733
+ export declare enum EmbedEvent {
734
+ /**
735
+ * Rendering has initialized.
736
+ *
737
+ * @returns timestamp - The timestamp when the event was generated.
738
+ */
739
+ Init = "init",
740
+ /**
741
+ * Authentication has either succeeded or failed.
742
+ *
743
+ * @returns isLoggedIn - A Boolean specifying whether authentication was successful.
744
+ */
745
+ AuthInit = "authInit",
746
+ /**
747
+ * The embed object container has loaded.
748
+ *
749
+ * @returns timestamp - The timestamp when the event was generated.
750
+ */
751
+ Load = "load",
752
+ /**
753
+ * Data pertaining to answer or Liveboard is received
754
+ *
755
+ * @return data - The answer or Liveboard data
756
+ * @important
757
+ */
758
+ Data = "data",
759
+ /**
760
+ * Search/answer/Liveboard filters have been applied/updated by the user.
761
+ *
762
+ * @hidden
763
+ */
764
+ FiltersChanged = "filtersChanged",
765
+ /**
766
+ * Search query has been updated by the user.
767
+ */
768
+ QueryChanged = "queryChanged",
769
+ /**
770
+ * A drill down operation has been performed.
771
+ *
772
+ * @returns additionalFilters - Any additional filters applied
773
+ * @returns drillDownColumns - The columns on which drill down was performed
774
+ * @returns nonFilteredColumns - The columns that were not filtered
775
+ */
776
+ Drilldown = "drillDown",
777
+ /**
778
+ * One or more data sources have been selected.
779
+ *
780
+ * @returns dataSourceIds - the list of data sources
781
+ */
782
+ DataSourceSelected = "dataSourceSelected",
783
+ /**
784
+ * One or more data columns have been selected.
785
+ *
786
+ * @returns columnIds - the list of columns
787
+ * @version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1-sw
788
+ */
789
+ AddRemoveColumns = "addRemoveColumns",
790
+ /**
791
+ * A custom action has been triggered
792
+ *
793
+ * @returns actionId - The id of the custom action
794
+ * @returns data - The answer or Liveboard data
795
+ */
796
+ CustomAction = "customAction",
797
+ /**
798
+ * Listen to double clicks on a visualization
799
+ *
800
+ * @return ContextMenuInputPoints - data point that is double clicked
801
+ * @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
802
+ */
803
+ VizPointDoubleClick = "vizPointDoubleClick",
804
+ /**
805
+ * Listen to clicks on a visualization in a liveboard or Search result.
806
+ *
807
+ * @example
808
+ * ```js
809
+ * embed.on(ThoughtSpotEmbed.Event.VizPointClick, ({data}) => {
810
+ * console.log(
811
+ * data.vizId, // viz id
812
+ * data.clickedPoint.selectedAttributes[0].value,
813
+ * data.clickedPoint.selectedAttributes[0].column.name,
814
+ * data.clickedPoint.selectedMeasures[0].value,
815
+ * data.clickedPoint.selectedMeasures[0].column.name,
816
+ * )
817
+ * });
818
+ * ```
819
+ * @return viz, clickedPoint - metadata about point that is clicked
820
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
821
+ * @important
822
+ */
823
+ VizPointClick = "vizPointClick",
824
+ /**
825
+ * An error has occurred.
826
+ *
827
+ * @returns error - An error object or message
828
+ */
829
+ Error = "Error",
830
+ /**
831
+ * The embedded object has sent an alert
832
+ *
833
+ * @returns alert - An alert object
834
+ */
835
+ Alert = "alert",
836
+ /**
837
+ * The ThoughtSpot auth session has expired.
838
+ */
839
+ AuthExpire = "ThoughtspotAuthExpired",
840
+ /**
841
+ * ThoughtSpot failed to validate the auth session.
842
+ *
843
+ * @hidden
844
+ */
845
+ AuthFailure = "ThoughtspotAuthFailure",
846
+ /**
847
+ * ThoughtSpot failed to validate the auth session.
848
+ *
849
+ * @hidden
850
+ */
851
+ AuthLogout = "ThoughtspotAuthLogout",
852
+ /**
853
+ * The height of the embedded Liveboard or visualization has been computed.
854
+ *
855
+ * @returns data - The height of the embedded Liveboard or visualization
856
+ * @hidden
857
+ */
858
+ EmbedHeight = "EMBED_HEIGHT",
859
+ /**
860
+ * The center of visible iframe viewport is calculated.
861
+ *
862
+ * @returns data - The center of the visible Iframe viewport.
863
+ * @hidden
864
+ */
865
+ EmbedIframeCenter = "EmbedIframeCenter",
866
+ /**
867
+ * Emitted when the "Get Data" button in Search Bar embed
868
+ * is clicked.
869
+ *
870
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.0-sw
871
+ */
872
+ GetDataClick = "getDataClick",
873
+ /**
874
+ * Detects the route change.
875
+ */
876
+ RouteChange = "ROUTE_CHANGE",
877
+ /**
878
+ * The v1 event type for Data
879
+ *
880
+ * @hidden
881
+ */
882
+ V1Data = "exportVizDataToParent",
883
+ /**
884
+ * Emitted when the embed does not have cookie access. This
885
+ * happens on Safari where third-party cookies are blocked by default.
886
+ *
887
+ * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1
888
+ */
889
+ NoCookieAccess = "noCookieAccess",
890
+ /**
891
+ * Emitted when SAML is complete
892
+ *
893
+ * @private
894
+ * @hidden
895
+ */
896
+ SAMLComplete = "samlComplete",
897
+ /**
898
+ * Emitted when any modal is opened in the app
899
+ *
900
+ * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1-sw
901
+ */
902
+ DialogOpen = "dialog-open",
903
+ /**
904
+ * Emitted when any modal is closed in the app
905
+ *
906
+ * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1-sw
907
+ */
908
+ DialogClose = "dialog-close",
909
+ /**
910
+ * Emitted when the Liveboard shell loads.
911
+ * You can use this event as a hook to trigger
912
+ * other events on the rendered Liveboard.
913
+ *
914
+ * @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
915
+ */
916
+ LiveboardRendered = "PinboardRendered",
917
+ /**
918
+ * This can be used to register an event listener which
919
+ * is triggered on all events.
920
+ *
921
+ * @Version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1-sw
922
+ */
923
+ ALL = "*",
924
+ /**
925
+ * Emitted when answer is saved in the app
926
+ *
927
+ * @Version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
928
+ */
929
+ Save = "save",
930
+ /**
931
+ * Emitted when the download action is triggered on an answer
932
+ *
933
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
934
+ */
935
+ Download = "download",
936
+ /**
937
+ * Emitted when the download action is triggered on an answer
938
+ *
939
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.0-sw
940
+ */
941
+ DownloadAsPng = "downloadAsPng",
942
+ /**
943
+ * Emitted when the Download as PDF action is triggered on an answer
944
+ *
945
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
946
+ */
947
+ DownloadAsPdf = "downloadAsPdf",
948
+ /**
949
+ * Emitted when the Download as CSV action is triggered on an answer
950
+ *
951
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
952
+ */
953
+ DownloadAsCsv = "downloadAsCsv",
954
+ /**
955
+ * Emitted when the Download as XLSX action is triggered on an answer
956
+ *
957
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
958
+ */
959
+ DownloadAsXlsx = "downloadAsXlsx",
960
+ /**
961
+ * Emitted when an answer is deleted in the app
962
+ *
963
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
964
+ */
965
+ AnswerDelete = "answerDelete",
966
+ /**
967
+ * Emitted when an answer is pinned to a Liveboard
968
+ *
969
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
970
+ */
971
+ Pin = "pin",
972
+ /**
973
+ * Emitted when SpotIQ analysis is triggered
974
+ *
975
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
976
+ */
977
+ SpotIQAnalyze = "spotIQAnalyze",
978
+ /**
979
+ * Emitted when a user shares an object with another user or group
980
+ *
981
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
982
+ */
983
+ Share = "share",
984
+ /**
985
+ * Emitted when a user clicks the Include action to include a specific value or data
986
+ * on a chart or table
987
+ *
988
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
989
+ */
990
+ DrillInclude = "context-menu-item-include",
991
+ /**
992
+ * Emitted when a user clicks the Exclude action to exclude a specific value or data
993
+ * on a chart or table
994
+ *
995
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
996
+ */
997
+ DrillExclude = "context-menu-item-exclude",
998
+ /**
999
+ * Emitted when copied column value on the app
1000
+ *
1001
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
1002
+ */
1003
+ CopyToClipboard = "context-menu-item-copy-to-clipboard",
1004
+ /**
1005
+ * Emitted when a user clicks the Update TML action
1006
+ *
1007
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
1008
+ */
1009
+ UpdateTML = "updateTSL",
1010
+ /**
1011
+ * Emitted when a user clicks the Edit TML action
1012
+ *
1013
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
1014
+ */
1015
+ EditTML = "editTSL",
1016
+ /**
1017
+ * Emitted when ExportTML trigger in answer on the app
1018
+ *
1019
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
1020
+ */
1021
+ ExportTML = "exportTSL",
1022
+ /**
1023
+ * Emitted when an answer is saved as a view
1024
+ *
1025
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
1026
+ */
1027
+ SaveAsView = "saveAsView",
1028
+ /**
1029
+ * Emitted when copy of existing answer on the app
1030
+ *
1031
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
1032
+ */
1033
+ CopyAEdit = "copyAEdit",
1034
+ /**
1035
+ * Emitted when a user clicks Show underlying data on an answe
1036
+ *
1037
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
1038
+ */
1039
+ ShowUnderlyingData = "showUnderlyingData",
1040
+ /**
1041
+ * Emitted when an answer is switched to a chart or table view
1042
+ *
1043
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
1044
+ */
1045
+ AnswerChartSwitcher = "answerChartSwitcher",
1046
+ /**
1047
+ * Internal event to communicate the initial settings back to the TS APP
1048
+ *
1049
+ * @hidden
1050
+ */
1051
+ APP_INIT = "appInit",
1052
+ /**
1053
+ * Emitted when a user clicks Show Liveboard details on a Liveboard
1054
+ *
1055
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
1056
+ */
1057
+ LiveboardInfo = "pinboardInfo",
1058
+ /**
1059
+ * Emitted when a user clicks on the Favorite icon on a Liveboard
1060
+ *
1061
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
1062
+ */
1063
+ AddToFavorites = "addToFavorites",
1064
+ /**
1065
+ * Emitted when a user clicks Schedule on a Liveboard
1066
+ *
1067
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
1068
+ */
1069
+ Schedule = "subscription",
1070
+ /**
1071
+ * Emitted when a user clicks Edit on a Liveboard or visualization
1072
+ *
1073
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
1074
+ */
1075
+ Edit = "edit",
1076
+ /**
1077
+ * Emitted when a user clicks Make a copy on a Liveboard
1078
+ *
1079
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
1080
+ */
1081
+ MakeACopy = "makeACopy",
1082
+ /**
1083
+ * Emitted when a user clicks Present on a Liveboard or visualization
1084
+ *
1085
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
1086
+ */
1087
+ Present = "present",
1088
+ /**
1089
+ * Emitted when a user clicks Delete on a Liveboard
1090
+ *
1091
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
1092
+ */
1093
+ Delete = "delete",
1094
+ /**
1095
+ * Emitted when a user clicks Manage schedules on a Liveboard
1096
+ *
1097
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
1098
+ */
1099
+ SchedulesList = "schedule-list",
1100
+ /**
1101
+ * Emitted when a user clicks Cancel in edit mode on a Liveboard
1102
+ *
1103
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
1104
+ */
1105
+ Cancel = "cancel",
1106
+ /**
1107
+ * Emitted when a user clicks Explore on a visualization
1108
+ *
1109
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
1110
+ */
1111
+ Explore = "explore",
1112
+ /**
1113
+ * Emitted when a user clicks Copy link action on a visualization
1114
+ *
1115
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
1116
+ */
1117
+ CopyLink = "embedDocument",
1118
+ /**
1119
+ * Emitted when a user interacts with cross filters on a visualization or liveboard
1120
+ *
1121
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1122
+ */
1123
+ CrossFilterChanged = "cross-filter-changed",
1124
+ /**
1125
+ * Emitted when a user right clicks on a visualization (chart or table)
1126
+ *
1127
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1128
+ */
1129
+ VizPointRightClick = "vizPointRightClick",
1130
+ /**
1131
+ * Emitted when a user clicks on Insert to slide on a visualization
1132
+ *
1133
+ * @hidden
1134
+ */
1135
+ InsertIntoSlide = "insertInToSlide"
1136
+ }
1137
+ /**
1138
+ * Event types that can be triggered by the host application
1139
+ * to the embedded ThoughtSpot app
1140
+ *
1141
+ * To trigger an event use the corresponding
1142
+ * {@link LiveboardEmbed.trigger} or {@link AppEmbed.trigger} or {@link
1143
+ * SearchEmbed.trigger} method.
1144
+ *
1145
+ * @example
1146
+ * ```js
1147
+ * import { HostEvent } from '@thoughtspot/visual-embed-sdk';
1148
+ * // Or
1149
+ * // const { HostEvent } = window.tsembed;
1150
+ *
1151
+ * // create the liveboard embed.
1152
+ *
1153
+ * liveboardEmbed.trigger(HostEvent.UpdateRuntimeFilters, [
1154
+ * { columnName: 'state, operator: RuntimeFilterOp.EQ, values: ['california']}
1155
+ * ]);
1156
+ * ```
1157
+ * @group Events
1158
+ */
1159
+ export declare enum HostEvent {
1160
+ /**
1161
+ * Trigger a search
1162
+ *
1163
+ * @param - dataSourceIds - The data source GUID to Search on
1164
+ * - Although an array, only a single source
1165
+ * is supported at this time.
1166
+ * @param - searchQuery - The search query
1167
+ * @param - execute - execute the existing / updated query
1168
+ * @example
1169
+ * ```js
1170
+ * searchEmbed.trigger(HostEvent.Search, {
1171
+ * searchQuery: "[sales] by [item type],
1172
+ * dataSources: ["cd252e5c-b552-49a8-821d-3eadaa049cca"]
1173
+ * execute: true
1174
+ * })
1175
+ * ```
1176
+ */
1177
+ Search = "search",
1178
+ /**
1179
+ * Trigger a drill on certain points by certain column
1180
+ *
1181
+ * @param - points - an object containing selectedPoints/clickedPoints
1182
+ * eg. { selectedPoints: []}
1183
+ * @param - columnGuid - a string guid of the column to drill by. This is optional,
1184
+ * if not provided it will auto drill by the configured
1185
+ * column.
1186
+ * @example
1187
+ * ```js
1188
+ * searchEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
1189
+ * console.log(payload);
1190
+ * const clickedPoint = payload.data.clickedPoint;
1191
+ * const selectedPoint = payload.data.selectedPoints;
1192
+ * console.log('>>> called', clickedPoint);
1193
+ * searchEmbed.trigger(HostEvent.DrillDown, {
1194
+ * points: {
1195
+ * clickedPoint,
1196
+ * selectedPoints: selectedPoint
1197
+ * },
1198
+ * autoDrillDown: true,
1199
+ * });
1200
+ * })
1201
+ * ```
1202
+ * @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
1203
+ */
1204
+ DrillDown = "triggerDrillDown",
1205
+ /**
1206
+ * Apply filters
1207
+ *
1208
+ * @hidden
1209
+ */
1210
+ Filter = "filter",
1211
+ /**
1212
+ * Reload the answer or visualization
1213
+ *
1214
+ * @hidden
1215
+ */
1216
+ Reload = "reload",
1217
+ /**
1218
+ * Set the visible visualizations on a Liveboard.
1219
+ *
1220
+ * @param - an array of ids of visualizations to show, the ids not passed
1221
+ * will be hidden.
1222
+ * @example
1223
+ * ```js
1224
+ * liveboardEmbed.trigger(HostEvent.SetVisibleVizs, [
1225
+ * '730496d6-6903-4601-937e-2c691821af3c',
1226
+ * 'd547ec54-2a37-4516-a222-2b06719af726'])
1227
+ * ```
1228
+ * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1-sw
1229
+ */
1230
+ SetVisibleVizs = "SetPinboardVisibleVizs",
1231
+ /**
1232
+ * Update the runtime filters. The runtime filters passed here are extended
1233
+ * on to the existing runtime filters if they exist.
1234
+ *
1235
+ * @param - {@link RuntimeFilter}[] an array of {@link RuntimeFilter} Types.
1236
+ * @example
1237
+ * ```js
1238
+ * liveboardEmbed.trigger(HostEvent.UpdateRuntimeFilters, [
1239
+ * {columnName: "state",operator: RuntimeFilterOp.EQ,values: ["michigan"]},
1240
+ * {columnName: "item type",operator: RuntimeFilterOp.EQ,values: ["Jackets"]}
1241
+ * ])
1242
+ * ```
1243
+ * @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
1244
+ * @important
1245
+ */
1246
+ UpdateRuntimeFilters = "UpdateRuntimeFilters",
1247
+ /**
1248
+ * Navigate to a specific page in App embed without any reload.
1249
+ * This is the same as calling `appEmbed.navigateToPage(path, true)`
1250
+ *
1251
+ * @param - path - the path to navigate to (can be a number[1/-1] to go forward/back)
1252
+ * @example
1253
+ * ```js
1254
+ * appEmbed.navigateToPage(-1)
1255
+ * ```
1256
+ * @version SDK: 1.12.0 | ThoughtSpot 8.4.0.cl, 8.4.1-sw
1257
+ */
1258
+ Navigate = "Navigate",
1259
+ /**
1260
+ * Opens the filter panel for a particular column.
1261
+ * Works with Search embed.
1262
+ *
1263
+ * @param - { columnId: string,
1264
+ * name: string,
1265
+ * type: INT64/CHAR/DATE,
1266
+ * dataType: ATTRIBUTE/MEASURE }
1267
+ * @example
1268
+ * ```js
1269
+ * searchEmbed.trigger(HostEvent.OpenFilter,
1270
+ * { columnId: '123', name: 'column name', type: 'INT64', dataType: 'ATTRIBUTE' })
1271
+ * ```
1272
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1273
+ */
1274
+ OpenFilter = "openFilter",
1275
+ /**
1276
+ * Adds the columns to the current Search.
1277
+ *
1278
+ * @param - { columnIds: string[] }
1279
+ * @example
1280
+ * ```js
1281
+ * searchEmbed.trigger(HostEvent.AddColumns, { columnIds: ['123', '456'] })
1282
+ * ```
1283
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1284
+ */
1285
+ AddColumns = "addColumns",
1286
+ /**
1287
+ * Removes a column from the current Search.
1288
+ *
1289
+ * @param - { columnId: string }
1290
+ * @example
1291
+ * ```js
1292
+ * searchEmbed.trigger(HostEvent.RemoveColumn, { columnId: '123' })
1293
+ * ```
1294
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1295
+ */
1296
+ RemoveColumn = "removeColumn",
1297
+ /**
1298
+ * Gets the current pinboard content.
1299
+ *
1300
+ * @example
1301
+ * ```js
1302
+ * liveboardEmbed.trigger(HostEvent.getExportRequestForCurrentPinboard)
1303
+ * ```
1304
+ * @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1-sw
1305
+ */
1306
+ getExportRequestForCurrentPinboard = "getExportRequestForCurrentPinboard",
1307
+ /**
1308
+ * Triggers the Pin action on an embedded object
1309
+ *
1310
+ * @param - incase of Liveboard embed, takes in an object with vizId as a key
1311
+ * can be left empty for search and visualization embeds
1312
+ * @example
1313
+ * ```js
1314
+ * liveboardEmbed.trigger(HostEvent.Pin, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1315
+ * vizEmbed.trigger(HostEvent.Pin)
1316
+ * searchEmbed.trigger(HostEvent.Pin)
1317
+ * ```
1318
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
1319
+ */
1320
+ Pin = "pin",
1321
+ /**
1322
+ * Triggers the Show Liveboard details action on a Liveboard
1323
+ *
1324
+ * @example
1325
+ * ```js
1326
+ * liveboardEmbed.trigger(HostEvent.LiveboardInfo)
1327
+ * ```
1328
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
1329
+ */
1330
+ LiveboardInfo = "pinboardInfo",
1331
+ /**
1332
+ * Triggers the Schedule action on a Liveboard
1333
+ *
1334
+ * @example
1335
+ * ```js
1336
+ * liveboardEmbed.trigger(HostEvent.Schedule)
1337
+ * ```
1338
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
1339
+ */
1340
+ Schedule = "subscription",
1341
+ /**
1342
+ * Triggers the Manage schedule action on a Liveboard
1343
+ *
1344
+ * @example
1345
+ * ```js
1346
+ * liveboardEmbed.trigger(HostEvent.ScheduleList)
1347
+ * ```
1348
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
1349
+ */
1350
+ SchedulesList = "schedule-list",
1351
+ /**
1352
+ * Triggers the Export TML action on a Liveboard
1353
+ *
1354
+ * @example
1355
+ * ```js
1356
+ * liveboardEmbed.trigger(HostEvent.ExportTML)
1357
+ * ```
1358
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
1359
+ */
1360
+ ExportTML = "exportTSL",
1361
+ /**
1362
+ * Triggers the Edit TML action on a Liveboard
1363
+ *
1364
+ * @example
1365
+ * ```js
1366
+ * liveboardEmbed.trigger(HostEvent.EditTML)
1367
+ * ```
1368
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
1369
+ */
1370
+ EditTML = "editTSL",
1371
+ /**
1372
+ * Triggers the Update TML action on a Liveboard
1373
+ *
1374
+ * @example
1375
+ * ```js
1376
+ * liveboardEmbed.trigger(HostEvent.UpdateTML)
1377
+ * ```
1378
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
1379
+ */
1380
+ UpdateTML = "updateTSL",
1381
+ /**
1382
+ * Triggers the Download PDF action on a Liveboard
1383
+ *
1384
+ * @example
1385
+ * ```js
1386
+ * liveboardEmbed.trigger(HostEvent.DownloadAsPdf)
1387
+ * ```
1388
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
1389
+ */
1390
+ DownloadAsPdf = "downloadAsPdf",
1391
+ /**
1392
+ * Triggers the Make a copy action on a Liveboard, search or visualization
1393
+ *
1394
+ * @example
1395
+ * ```js
1396
+ * liveboardEmbed.trigger(HostEvent.MakeACopy, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1397
+ * vizEmbed.trigger(HostEvent.MakeACopy)
1398
+ * searchEmbed.trigger(HostEvent.MakeACopy)
1399
+ * ```
1400
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
1401
+ */
1402
+ MakeACopy = "makeACopy",
1403
+ /**
1404
+ * Triggers the Delete action on a Liveboard
1405
+ *
1406
+ * @example
1407
+ * ```js
1408
+ * appEmbed.trigger(HostEvent.Remove)
1409
+ * ```
1410
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
1411
+ */
1412
+ Remove = "delete",
1413
+ /**
1414
+ * Triggers the Explore action on a visualization
1415
+ *
1416
+ * @param - an object with vizId as a key
1417
+ * @example
1418
+ * ```js
1419
+ * liveboardEmbed.trigger(HostEvent.Explore, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1420
+ * ```
1421
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
1422
+ */
1423
+ Explore = "explore",
1424
+ /**
1425
+ * Triggers the Create alert action on a visualization
1426
+ *
1427
+ * @param - an object with vizId as a key
1428
+ * @example
1429
+ * ```js
1430
+ * liveboardEmbed.trigger(HostEvent.CreateMonitor {
1431
+ * vizId: '730496d6-6903-4601-937e-2c691821af3c'
1432
+ * })
1433
+ * ```
1434
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
1435
+ */
1436
+ CreateMonitor = "createMonitor",
1437
+ /**
1438
+ * Triggers the Manage alert action on a visualization
1439
+ *
1440
+ * @param - an object with vizId as a key
1441
+ * @example
1442
+ * ```js
1443
+ * liveboardEmbed.trigger(HostEvent.ManageMonitor, {
1444
+ * vizId: '730496d6-6903-4601-937e-2c691821af3c'
1445
+ * })
1446
+ * ```
1447
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
1448
+ */
1449
+ ManageMonitor = "manageMonitor",
1450
+ /**
1451
+ * Triggers the Edit action on a Liveboard or visualization
1452
+ *
1453
+ * @param - object - to trigger the action for a specfic visualization
1454
+ * in Liveboard embed, pass in vizId as a key
1455
+ * @example
1456
+ * ```js
1457
+ * liveboardEmbed.trigger(HostEvent.Edit)
1458
+ *
1459
+ * liveboardEmbed.trigger(HostEvent.Edit, {vizId:
1460
+ * '730496d6-6903-4601-937e-2c691821af3c'})
1461
+ *
1462
+ * vizEmbed.trigger((HostEvent.Edit)
1463
+ * ```
1464
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
1465
+ */
1466
+ Edit = "edit",
1467
+ /**
1468
+ * Triggers the Copy link action on a Liveboard or visualization
1469
+ *
1470
+ * @param - object - to trigger the action for a s
1471
+ * pecfic visualization in Liveboard embed, pass in vizId as a key
1472
+ * @example
1473
+ * ```js
1474
+ * liveboardEmbed.trigger(HostEvent.CopyLink)
1475
+ * liveboardEmbed.trigger(HostEvent.CopyLink, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1476
+ * vizEmbed.trigger((HostEvent.CopyLink)
1477
+ * ```
1478
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
1479
+ */
1480
+ CopyLink = "embedDocument",
1481
+ /**
1482
+ * Triggers the Present action on a Liveboard or visualization
1483
+ *
1484
+ * @param - object - to trigger the action for a specfic visualization
1485
+ * in Liveboard embed, pass in vizId as a key
1486
+ * @example
1487
+ * ```js
1488
+ * liveboardEmbed.trigger(HostEvent.Present)
1489
+ * liveboardEmbed.trigger(HostEvent.Present, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1490
+ * vizEmbed.trigger((HostEvent.Present)
1491
+ * ```
1492
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
1493
+ */
1494
+ Present = "present",
1495
+ /**
1496
+ * Get TML for the current search.
1497
+ *
1498
+ * @example
1499
+ * ```js
1500
+ * searchEmbed.trigger(HostEvent.GetTML).then((tml) => {
1501
+ * console.log(
1502
+ * tml.search_query // TML representation of the search query
1503
+ * );
1504
+ * })
1505
+ * ```
1506
+ * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1-sw
1507
+ * @important
1508
+ */
1509
+ GetTML = "getTML",
1510
+ /**
1511
+ * Triggers the ShowUnderlyingData action on visualization or search
1512
+ *
1513
+ * @param - an object with vizId as a key
1514
+ * @example
1515
+ * ```js
1516
+ * liveboardEmbed.trigger(HostEvent.ShowUnderlyingData, {vizId:
1517
+ * '730496d6-6903-4601-937e-2c691821af3c'})
1518
+ *
1519
+ * vizEmbed.trigger(HostEvent.ShowUnderlyingData)
1520
+ *
1521
+ * searchEmbed.trigger(HostEvent.ShowUnderlyingData)
1522
+ * ```
1523
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
1524
+ */
1525
+ ShowUnderlyingData = "showUnderlyingData",
1526
+ /**
1527
+ * Triggers the Delete action on visualization or search
1528
+ *
1529
+ * @param - incase of Liveboard embed, takes in an object with vizId as a key
1530
+ * can be left empty for search and visualization embeds
1531
+ * @example
1532
+ * ```js
1533
+ * liveboardEmbed.trigger(HostEvent.Delete, {vizId:
1534
+ * '730496d6-6903-4601-937e-2c691821af3c'})
1535
+ *
1536
+ * vizEmbed.trigger(HostEvent.Delete)
1537
+ *
1538
+ * searchEmbed.trigger(HostEvent.Delete)
1539
+ * ```
1540
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
1541
+ */
1542
+ Delete = "onDeleteAnswer",
1543
+ /**
1544
+ * Triggers the SpotIQAnalyze action on visualization or search
1545
+ *
1546
+ * @param - incase of Liveboard embed, takes in an object with vizId as a key
1547
+ * can be left empty for search and visualization embeds
1548
+ * @example
1549
+ * ```js
1550
+ * liveboardEmbed.trigger(HostEvent.SpotIQAnalyze, {vizId:
1551
+ * '730496d6-6903-4601-937e-2c691821af3c'})
1552
+ *
1553
+ * vizEmbed.trigger(HostEvent.SpotIQAnalyze)
1554
+ *
1555
+ * searchEmbed.trigger(HostEvent.SpotIQAnalyze)
1556
+ * ```
1557
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
1558
+ */
1559
+ SpotIQAnalyze = "spotIQAnalyze",
1560
+ /**
1561
+ * Triggers the Download action on visualization or search when Displaymode is Chart
1562
+ *
1563
+ * @example
1564
+ * ```js
1565
+ * liveboardEmbed.trigger(HostEvent.Download, {vizId:
1566
+ * '730496d6-6903-4601-937e-2c691821af3c'})
1567
+ *
1568
+ * vizEmbed.trigger(HostEvent.Download)
1569
+ *
1570
+ * searchEmbed.trigger(HostEvent.Download)
1571
+ * ```
1572
+ * @deprecated from SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl ,9.4.1-sw ,Use {@link DownloadAsPng}
1573
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
1574
+ */
1575
+ Download = "downloadAsPng",
1576
+ /**
1577
+ * Triggers the Download action on visualization or search when Displaymode is Chart
1578
+ *
1579
+ * @example
1580
+ * ```js
1581
+ * liveboardEmbed.trigger(HostEvent.DownloadAsPng,
1582
+ * {vizId:'730496d6-6903-4601-937e-2c691821af3c'})
1583
+ *
1584
+ * vizEmbed.trigger(HostEvent.DownloadAsPng)
1585
+ *
1586
+ * searchEmbed.trigger(HostEvent.DownloadAsPng)
1587
+ * ```
1588
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.1-sw
1589
+ */
1590
+ DownloadAsPng = "downloadAsPng",
1591
+ /**
1592
+ * Triggers the downloadAsCSV action on visualization or search
1593
+ *
1594
+ * @example
1595
+ * ```js
1596
+ * liveboardEmbed.trigger(HostEvent.DownloadAsCsv, {vizId:
1597
+ * '730496d6-6903-4601-937e-2c691821af3c'})
1598
+ *
1599
+ * vizEmbed.trigger(HostEvent.DownloadAsCsv)
1600
+ *
1601
+ * searchEmbed.trigger(HostEvent.DownloadAsCsv)
1602
+ * ```
1603
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
1604
+ */
1605
+ DownloadAsCsv = "downloadAsCSV",
1606
+ /**
1607
+ * Triggers the downloadAsXLSX action on visualization or search
1608
+ *
1609
+ * @example
1610
+ * ```js
1611
+ * liveboardEmbed.trigger(HostEvent.DownloadAsXlsx, {vizId:
1612
+ * '730496d6-6903-4601-937e-2c691821af3c'})
1613
+ *
1614
+ * vizEmbed.trigger(HostEvent.DownloadAsXlsx)
1615
+ *
1616
+ * searchEmbed.trigger(HostEvent.DownloadAsXlsx)
1617
+ * ```
1618
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
1619
+ */
1620
+ DownloadAsXlsx = "downloadAsXLSX",
1621
+ /**
1622
+ * Triggers the Share action on a liveboard or answer
1623
+ *
1624
+ * @example
1625
+ * ```js
1626
+ * liveboardEmbed.trigger(HostEvent.Share)
1627
+ *
1628
+ * searchEmbed.trigger(HostEvent.Share)
1629
+ * ```
1630
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
1631
+ */
1632
+ Share = "share",
1633
+ /**
1634
+ * Trigger the Save action on a liveboard or answer
1635
+ *
1636
+ * @example
1637
+ * ```js
1638
+ * liveboardEmbed.trigger(HostEvent.Save)
1639
+ *
1640
+ * searchEmbed.trigger(HostEvent.Save)
1641
+ * ```
1642
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
1643
+ */
1644
+ Save = "save",
1645
+ /**
1646
+ * Triggers the SyncToSheets action on visualization
1647
+ *
1648
+ * @param - an object with vizId as a key
1649
+ * @example
1650
+ * ```js
1651
+ * liveboardEmbed.trigger(HostEvent.SyncToSheets, {vizId:
1652
+ * '730496d6-6903-4601-937e-2c691821af3c'})
1653
+ *
1654
+ * vizEmbed.trigger(HostEvent.SyncToSheets)
1655
+ * ```
1656
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
1657
+ */
1658
+ SyncToSheets = "sync-to-sheets",
1659
+ /**
1660
+ * Triggers the SyncToOtherApps action on visualization
1661
+ *
1662
+ * @param - an object with vizId as a key
1663
+ * @example
1664
+ * ```js
1665
+ * liveboardEmbed.trigger(HostEvent.SyncToOtherApps, {vizId:
1666
+ * '730496d6-6903-4601-937e-2c691821af3c'})
1667
+ *
1668
+ * vizEmbed.trigger(HostEvent.SyncToOtherApps)
1669
+ * ```
1670
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
1671
+ */
1672
+ SyncToOtherApps = "sync-to-other-apps",
1673
+ /**
1674
+ * Triggers the ManagePipelines action on visualization
1675
+ *
1676
+ * @param - an object with vizId as a key
1677
+ * @example
1678
+ * ```js
1679
+ * liveboardEmbed.trigger(HostEvent.ManagePipelines, {vizId:
1680
+ * '730496d6-6903-4601-937e-2c691821af3c'})
1681
+ *
1682
+ * vizEmbed.trigger(HostEvent.ManagePipelines)
1683
+ * ```
1684
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
1685
+ */
1686
+ ManagePipelines = "manage-pipeline",
1687
+ /**
1688
+ * Triggers the Reset search in answer
1689
+ *
1690
+ * @example
1691
+ * ```js
1692
+ * searchEmbed.trigger(HostEvent.ResetSearch)
1693
+ * ```
1694
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.0.1-sw
1695
+ */
1696
+ ResetSearch = "resetSearch"
1697
+ }
1698
+ /**
1699
+ * The different visual modes that the data sources panel within
1700
+ * search could appear in, i.e., hidden, collapsed, or expanded.
1701
+ */
1702
+ export declare enum DataSourceVisualMode {
1703
+ /**
1704
+ * Data source panel is hidden.
1705
+ */
1706
+ Hidden = "hide",
1707
+ /**
1708
+ * Data source panel is collapsed, but the user can manually expand it.
1709
+ */
1710
+ Collapsed = "collapse",
1711
+ /**
1712
+ * Data source panel is expanded, but the user can manually collapse it.
1713
+ */
1714
+ Expanded = "expand"
1715
+ }
1716
+ /**
1717
+ * The query params passed down to the embedded ThoughtSpot app
1718
+ * containing configuration and/or visual information.
1719
+ */
1720
+ export declare enum Param {
1721
+ EmbedApp = "embedApp",
1722
+ DataSources = "dataSources",
1723
+ DataSourceMode = "dataSourceMode",
1724
+ DisableActions = "disableAction",
1725
+ DisableActionReason = "disableHint",
1726
+ ForceTable = "forceTable",
1727
+ preventLiveboardFilterRemoval = "preventPinboardFilterRemoval",
1728
+ SearchQuery = "searchQuery",
1729
+ HideActions = "hideAction",
1730
+ HideObjects = "hideObjects",
1731
+ HostAppUrl = "hostAppUrl",
1732
+ EnableVizTransformations = "enableVizTransform",
1733
+ EnableSearchAssist = "enableSearchAssist",
1734
+ HideResult = "hideResult",
1735
+ UseLastSelectedDataSource = "useLastSelectedSources",
1736
+ Tag = "tag",
1737
+ searchTokenString = "searchTokenString",
1738
+ executeSearch = "executeSearch",
1739
+ fullHeight = "isFullHeightPinboard",
1740
+ livedBoardEmbed = "isLiveboardEmbed",
1741
+ searchEmbed = "isSearchEmbed",
1742
+ vizEmbed = "isVizEmbed",
1743
+ Version = "sdkVersion",
1744
+ ViewPortHeight = "viewPortHeight",
1745
+ ViewPortWidth = "viewPortWidth",
1746
+ VisibleActions = "visibleAction",
1747
+ CustomCSSUrl = "customCssUrl",
1748
+ DisableLoginRedirect = "disableLoginRedirect",
1749
+ visibleVizs = "pinboardVisibleVizs",
1750
+ LiveboardV2Enabled = "isPinboardV2Enabled",
1751
+ ShowAlerts = "showAlerts",
1752
+ Locale = "locale",
1753
+ CustomStyle = "customStyle",
1754
+ ForceSAMLAutoRedirect = "forceSAMLAutoRedirect",
1755
+ AuthType = "authType",
1756
+ IconSpriteUrl = "iconSprite",
1757
+ cookieless = "cookieless",
1758
+ ContextMenuTrigger = "isContextMenuEnabledOnLeftClick",
1759
+ LinkOverride = "linkOverride",
1760
+ ShowInsertToSlide = "insertInToSlide",
1761
+ PrimaryNavHidden = "primaryNavHidden",
1762
+ HideProfleAndHelp = "profileAndHelpInNavBarHidden"
1763
+ }
1764
+ /**
1765
+ * The list of actions that can be performed on visual ThoughtSpot
1766
+ * entities, such as answers and Liveboards.
1767
+ *
1768
+ * This enum is used to specify the actions that could be disabled,
1769
+ * hidden or made visible.
1770
+ *
1771
+ * @example
1772
+ * ```js
1773
+ * const embed = new LiveboardEmbed('#embed-container', {
1774
+ * ... // other options
1775
+ * visibleActions: [Action.Save, Action.Explore],
1776
+ * disableActions: [Action.Save],
1777
+ * hiddenActions: [Action.Download], // Set either this or visibleActions
1778
+ * })
1779
+ * ```
1780
+ */
1781
+ export declare enum Action {
1782
+ Save = "save",
1783
+ /**
1784
+ * @hidden
1785
+ */
1786
+ Update = "update",
1787
+ /**
1788
+ * @hidden
1789
+ */
1790
+ SaveUntitled = "saveUntitled",
1791
+ SaveAsView = "saveAsView",
1792
+ MakeACopy = "makeACopy",
1793
+ EditACopy = "editACopy",
1794
+ CopyLink = "embedDocument",
1795
+ /**
1796
+ * @hidden
1797
+ */
1798
+ ResetLayout = "resetLayout",
1799
+ Schedule = "subscription",
1800
+ SchedulesList = "schedule-list",
1801
+ Share = "share",
1802
+ AddFilter = "addFilter",
1803
+ ConfigureFilter = "configureFilter",
1804
+ CollapseDataSources = "collapseDataSources",
1805
+ ChooseDataSources = "chooseDataSources",
1806
+ AddFormula = "addFormula",
1807
+ AddParameter = "addParameter",
1808
+ /**
1809
+ * @hidden
1810
+ */
1811
+ SearchOnTop = "searchOnTop",
1812
+ SpotIQAnalyze = "spotIQAnalyze",
1813
+ /**
1814
+ * @hidden
1815
+ */
1816
+ ExplainInsight = "explainInsight",
1817
+ /**
1818
+ * @hidden
1819
+ */
1820
+ SpotIQFollow = "spotIQFollow",
1821
+ ShareViz = "shareViz",
1822
+ /**
1823
+ * @hidden
1824
+ */
1825
+ ReplaySearch = "replaySearch",
1826
+ ShowUnderlyingData = "showUnderlyingData",
1827
+ Download = "download",
1828
+ DownloadAsPng = "downloadAsPng",
1829
+ DownloadAsPdf = "downloadAsPdf",
1830
+ DownloadAsCsv = "downloadAsCSV",
1831
+ DownloadAsXlsx = "downloadAsXLSX",
1832
+ /**
1833
+ * @hidden
1834
+ */
1835
+ DownloadTrace = "downloadTrace",
1836
+ ExportTML = "exportTSL",
1837
+ ImportTML = "importTSL",
1838
+ UpdateTML = "updateTSL",
1839
+ EditTML = "editTSL",
1840
+ Present = "present",
1841
+ ToggleSize = "toggleSize",
1842
+ Edit = "edit",
1843
+ EditTitle = "editTitle",
1844
+ Remove = "delete",
1845
+ /**
1846
+ * @hidden
1847
+ */
1848
+ Ungroup = "ungroup",
1849
+ /**
1850
+ * @hidden
1851
+ */
1852
+ Describe = "describe",
1853
+ /**
1854
+ * @hidden
1855
+ */
1856
+ Relate = "relate",
1857
+ /**
1858
+ * @hidden
1859
+ */
1860
+ CustomizeHeadlines = "customizeHeadlines",
1861
+ /**
1862
+ * @hidden
1863
+ */
1864
+ PinboardInfo = "pinboardInfo",
1865
+ LiveboardInfo = "pinboardInfo",
1866
+ /**
1867
+ * @hidden
1868
+ */
1869
+ SendAnswerFeedback = "sendFeedback",
1870
+ /**
1871
+ * @hidden
1872
+ */
1873
+ DownloadEmbraceQueries = "downloadEmbraceQueries",
1874
+ /**
1875
+ * Pin action.
1876
+ */
1877
+ Pin = "pin",
1878
+ /**
1879
+ * @hidden
1880
+ */
1881
+ AnalysisInfo = "analysisInfo",
1882
+ Subscription = "subscription",
1883
+ /**
1884
+ * Explore action.
1885
+ */
1886
+ Explore = "explore",
1887
+ DrillInclude = "context-menu-item-include",
1888
+ DrillExclude = "context-menu-item-exclude",
1889
+ CopyToClipboard = "context-menu-item-copy-to-clipboard",
1890
+ CopyAndEdit = "context-menu-item-copy-and-edit",
1891
+ /**
1892
+ * @hidden
1893
+ */
1894
+ DrillEdit = "context-menu-item-edit",
1895
+ EditMeasure = "context-menu-item-edit-measure",
1896
+ Separator = "context-menu-item-separator",
1897
+ DrillDown = "DRILL",
1898
+ RequestAccess = "requestAccess",
1899
+ QueryDetailsButtons = "queryDetailsButtons",
1900
+ /**
1901
+ * @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
1902
+ */
1903
+ AnswerDelete = "onDeleteAnswer",
1904
+ /**
1905
+ * @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
1906
+ */
1907
+ AnswerChartSwitcher = "answerChartSwitcher",
1908
+ /**
1909
+ * @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
1910
+ */
1911
+ AddToFavorites = "addToFavorites",
1912
+ /**
1913
+ * @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
1914
+ */
1915
+ EditDetails = "editDetails",
1916
+ /**
1917
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
1918
+ */
1919
+ CreateMonitor = "createMonitor",
1920
+ /**
1921
+ * @version SDK: 1.11.1 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
1922
+ */
1923
+ ReportError = "reportError",
1924
+ SyncToSheets = "sync-to-sheets",
1925
+ SyncToOtherApps = "sync-to-other-apps",
1926
+ ManagePipelines = "manage-pipeline",
1927
+ /**
1928
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1929
+ */
1930
+ CrossFilter = "context-menu-item-cross-filter",
1931
+ /**
1932
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1933
+ */
1934
+ RemoveCrossFilter = "context-menu-item-remove-cross-filter",
1935
+ /**
1936
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1937
+ */
1938
+ AxisMenuAggregate = "axisMenuAggregate",
1939
+ /**
1940
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1941
+ */
1942
+ AxisMenuTimeBucket = "axisMenuTimeBucket",
1943
+ /**
1944
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1945
+ */
1946
+ AxisMenuFilter = "axisMenuFilter",
1947
+ /**
1948
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1949
+ */
1950
+ AxisMenuConditionalFormat = "axisMenuConditionalFormat",
1951
+ /**
1952
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1953
+ */
1954
+ AxisMenuSort = "axisMenuSort",
1955
+ /**
1956
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1957
+ */
1958
+ AxisMenuGroup = "axisMenuGroup",
1959
+ /**
1960
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1961
+ */
1962
+ AxisMenuPosition = "axisMenuPosition",
1963
+ /**
1964
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1965
+ */
1966
+ AxisMenuRename = "axisMenuRename",
1967
+ /**
1968
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1969
+ */
1970
+ AxisMenuEdit = "axisMenuEdit",
1971
+ /**
1972
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1973
+ */
1974
+ AxisMenuNumberFormat = "axisMenuNumberFormat",
1975
+ /**
1976
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1977
+ */
1978
+ AxisMenuTextWrapping = "axisMenuTextWrapping",
1979
+ /**
1980
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1981
+ */
1982
+ AxisMenuRemove = "axisMenuRemove",
1983
+ /**
1984
+ * @hidden
1985
+ */
1986
+ InsertInToSlide = "insertInToSlide",
1987
+ /**
1988
+ * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
1989
+ */
1990
+ RenameModalTitleDescription = "renameModalTitleDescription"
1991
+ }
1992
+ export interface SessionInterface {
1993
+ sessionId: string;
1994
+ genNo: number;
1995
+ acSession: {
1996
+ sessionId: string;
1997
+ genNo: number;
1998
+ };
1999
+ }
2000
+ export declare enum OperationType {
2001
+ GetChartWithData = "GetChartWithData",
2002
+ GetTableWithHeadlineData = "GetTableWithHeadlineData"
2003
+ }
2004
+ export interface AnswerServiceType {
2005
+ getAnswer?: (offset: number, batchSize: number) => any;
2006
+ }
2007
+ export declare enum PrefetchFeatures {
2008
+ FullApp = "FullApp",
2009
+ SearchEmbed = "SearchEmbed",
2010
+ LiveboardEmbed = "LiveboardEmbed",
2011
+ VizEmbed = "VizEmbed"
2012
+ }
2013
+ /**
2014
+ * Enum for options to change context trigger
2015
+ */
2016
+ export declare enum ContextMenuTriggerOptions {
2017
+ LEFT_CLICK = "left-click",
2018
+ RIGHT_CLICK = "right-click"
2019
+ }
2020
+ //# sourceMappingURL=types.d.ts.map