@thoughtspot/visual-embed-sdk 1.46.0 → 1.46.2

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 (176) hide show
  1. package/README.md +1 -1
  2. package/cjs/package.json +2 -2
  3. package/cjs/src/auth.d.ts +29 -4
  4. package/cjs/src/auth.d.ts.map +1 -1
  5. package/cjs/src/auth.js +30 -5
  6. package/cjs/src/auth.js.map +1 -1
  7. package/cjs/src/css-variables.d.ts +17 -17
  8. package/cjs/src/embed/app.d.ts +61 -33
  9. package/cjs/src/embed/app.d.ts.map +1 -1
  10. package/cjs/src/embed/app.js +11 -4
  11. package/cjs/src/embed/app.js.map +1 -1
  12. package/cjs/src/embed/app.spec.js +34 -1
  13. package/cjs/src/embed/app.spec.js.map +1 -1
  14. package/cjs/src/embed/base.d.ts +2 -2
  15. package/cjs/src/embed/base.js +2 -2
  16. package/cjs/src/embed/bodyless-conversation.d.ts +5 -5
  17. package/cjs/src/embed/bodyless-conversation.js +4 -4
  18. package/cjs/src/embed/conversation.d.ts +43 -30
  19. package/cjs/src/embed/conversation.d.ts.map +1 -1
  20. package/cjs/src/embed/conversation.js +10 -11
  21. package/cjs/src/embed/conversation.js.map +1 -1
  22. package/cjs/src/embed/conversation.spec.js +27 -0
  23. package/cjs/src/embed/conversation.spec.js.map +1 -1
  24. package/cjs/src/embed/liveboard.d.ts +42 -36
  25. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  26. package/cjs/src/embed/liveboard.js +3 -3
  27. package/cjs/src/embed/liveboard.js.map +1 -1
  28. package/cjs/src/embed/liveboard.spec.js +1 -1
  29. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  30. package/cjs/src/embed/sage.d.ts +5 -5
  31. package/cjs/src/embed/sage.js +1 -1
  32. package/cjs/src/embed/search-bar.d.ts +7 -7
  33. package/cjs/src/embed/search-bar.js +1 -1
  34. package/cjs/src/embed/search.d.ts +16 -14
  35. package/cjs/src/embed/search.d.ts.map +1 -1
  36. package/cjs/src/embed/search.js +3 -2
  37. package/cjs/src/embed/search.js.map +1 -1
  38. package/cjs/src/embed/ts-embed.d.ts +4 -4
  39. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  40. package/cjs/src/embed/ts-embed.js +13 -7
  41. package/cjs/src/embed/ts-embed.js.map +1 -1
  42. package/cjs/src/embed/ts-embed.spec.js +35 -0
  43. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  44. package/cjs/src/react/index.d.ts +15 -15
  45. package/cjs/src/react/index.js +12 -12
  46. package/cjs/src/tokenizedFetch.d.ts +1 -1
  47. package/cjs/src/tokenizedFetch.js +1 -1
  48. package/cjs/src/types.d.ts +653 -276
  49. package/cjs/src/types.d.ts.map +1 -1
  50. package/cjs/src/types.js +274 -208
  51. package/cjs/src/types.js.map +1 -1
  52. package/cjs/src/utils/graphql/answerService/answerService.d.ts +4 -2
  53. package/cjs/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  54. package/cjs/src/utils/graphql/answerService/answerService.js +6 -4
  55. package/cjs/src/utils/graphql/answerService/answerService.js.map +1 -1
  56. package/cjs/src/utils/graphql/answerService/answerService.spec.js +55 -0
  57. package/cjs/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
  58. package/cjs/src/utils.d.ts +9 -0
  59. package/cjs/src/utils.d.ts.map +1 -1
  60. package/cjs/src/utils.js +10 -1
  61. package/cjs/src/utils.js.map +1 -1
  62. package/dist/{index-BQvLEoxp.js → index-DkizS4xM.js} +1 -1
  63. package/dist/src/auth.d.ts +29 -4
  64. package/dist/src/auth.d.ts.map +1 -1
  65. package/dist/src/css-variables.d.ts +17 -17
  66. package/dist/src/embed/app.d.ts +61 -33
  67. package/dist/src/embed/app.d.ts.map +1 -1
  68. package/dist/src/embed/base.d.ts +2 -2
  69. package/dist/src/embed/bodyless-conversation.d.ts +5 -5
  70. package/dist/src/embed/conversation.d.ts +43 -30
  71. package/dist/src/embed/conversation.d.ts.map +1 -1
  72. package/dist/src/embed/liveboard.d.ts +42 -36
  73. package/dist/src/embed/liveboard.d.ts.map +1 -1
  74. package/dist/src/embed/sage.d.ts +5 -5
  75. package/dist/src/embed/search-bar.d.ts +7 -7
  76. package/dist/src/embed/search.d.ts +16 -14
  77. package/dist/src/embed/search.d.ts.map +1 -1
  78. package/dist/src/embed/ts-embed.d.ts +4 -4
  79. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  80. package/dist/src/react/index.d.ts +15 -15
  81. package/dist/src/tokenizedFetch.d.ts +1 -1
  82. package/dist/src/types.d.ts +653 -276
  83. package/dist/src/types.d.ts.map +1 -1
  84. package/dist/src/utils/graphql/answerService/answerService.d.ts +4 -2
  85. package/dist/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  86. package/dist/src/utils.d.ts +9 -0
  87. package/dist/src/utils.d.ts.map +1 -1
  88. package/dist/tsembed-react.es.js +383 -290
  89. package/dist/tsembed-react.js +382 -289
  90. package/dist/tsembed.es.js +375 -282
  91. package/dist/tsembed.js +374 -281
  92. package/dist/visual-embed-sdk-react-full.d.ts +880 -431
  93. package/dist/visual-embed-sdk-react.d.ts +873 -427
  94. package/dist/visual-embed-sdk.d.ts +879 -430
  95. package/lib/package.json +2 -2
  96. package/lib/src/auth.d.ts +29 -4
  97. package/lib/src/auth.d.ts.map +1 -1
  98. package/lib/src/auth.js +30 -5
  99. package/lib/src/auth.js.map +1 -1
  100. package/lib/src/css-variables.d.ts +17 -17
  101. package/lib/src/embed/app.d.ts +61 -33
  102. package/lib/src/embed/app.d.ts.map +1 -1
  103. package/lib/src/embed/app.js +12 -5
  104. package/lib/src/embed/app.js.map +1 -1
  105. package/lib/src/embed/app.spec.js +34 -1
  106. package/lib/src/embed/app.spec.js.map +1 -1
  107. package/lib/src/embed/base.d.ts +2 -2
  108. package/lib/src/embed/base.js +2 -2
  109. package/lib/src/embed/bodyless-conversation.d.ts +5 -5
  110. package/lib/src/embed/bodyless-conversation.js +4 -4
  111. package/lib/src/embed/conversation.d.ts +43 -30
  112. package/lib/src/embed/conversation.d.ts.map +1 -1
  113. package/lib/src/embed/conversation.js +11 -11
  114. package/lib/src/embed/conversation.js.map +1 -1
  115. package/lib/src/embed/conversation.spec.js +27 -0
  116. package/lib/src/embed/conversation.spec.js.map +1 -1
  117. package/lib/src/embed/liveboard.d.ts +42 -36
  118. package/lib/src/embed/liveboard.d.ts.map +1 -1
  119. package/lib/src/embed/liveboard.js +3 -3
  120. package/lib/src/embed/liveboard.js.map +1 -1
  121. package/lib/src/embed/liveboard.spec.js +1 -1
  122. package/lib/src/embed/liveboard.spec.js.map +1 -1
  123. package/lib/src/embed/sage.d.ts +5 -5
  124. package/lib/src/embed/sage.js +1 -1
  125. package/lib/src/embed/search-bar.d.ts +7 -7
  126. package/lib/src/embed/search-bar.js +1 -1
  127. package/lib/src/embed/search.d.ts +16 -14
  128. package/lib/src/embed/search.d.ts.map +1 -1
  129. package/lib/src/embed/search.js +3 -2
  130. package/lib/src/embed/search.js.map +1 -1
  131. package/lib/src/embed/ts-embed.d.ts +4 -4
  132. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  133. package/lib/src/embed/ts-embed.js +13 -7
  134. package/lib/src/embed/ts-embed.js.map +1 -1
  135. package/lib/src/embed/ts-embed.spec.js +35 -0
  136. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  137. package/lib/src/react/index.d.ts +15 -15
  138. package/lib/src/react/index.js +12 -12
  139. package/lib/src/tokenizedFetch.d.ts +1 -1
  140. package/lib/src/tokenizedFetch.js +1 -1
  141. package/lib/src/types.d.ts +653 -276
  142. package/lib/src/types.d.ts.map +1 -1
  143. package/lib/src/types.js +274 -208
  144. package/lib/src/types.js.map +1 -1
  145. package/lib/src/utils/graphql/answerService/answerService.d.ts +4 -2
  146. package/lib/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  147. package/lib/src/utils/graphql/answerService/answerService.js +5 -3
  148. package/lib/src/utils/graphql/answerService/answerService.js.map +1 -1
  149. package/lib/src/utils/graphql/answerService/answerService.spec.js +55 -0
  150. package/lib/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
  151. package/lib/src/utils.d.ts +9 -0
  152. package/lib/src/utils.d.ts.map +1 -1
  153. package/lib/src/utils.js +8 -0
  154. package/lib/src/utils.js.map +1 -1
  155. package/package.json +2 -2
  156. package/src/auth.ts +30 -5
  157. package/src/css-variables.ts +17 -17
  158. package/src/embed/app.spec.ts +46 -1
  159. package/src/embed/app.ts +73 -36
  160. package/src/embed/base.ts +2 -2
  161. package/src/embed/bodyless-conversation.ts +5 -5
  162. package/src/embed/conversation.spec.ts +37 -0
  163. package/src/embed/conversation.ts +55 -38
  164. package/src/embed/liveboard.spec.ts +1 -1
  165. package/src/embed/liveboard.ts +42 -36
  166. package/src/embed/sage.ts +5 -5
  167. package/src/embed/search-bar.tsx +7 -7
  168. package/src/embed/search.ts +16 -14
  169. package/src/embed/ts-embed.spec.ts +42 -0
  170. package/src/embed/ts-embed.ts +12 -7
  171. package/src/react/index.tsx +15 -15
  172. package/src/tokenizedFetch.ts +1 -1
  173. package/src/types.ts +652 -275
  174. package/src/utils/graphql/answerService/answerService.spec.ts +62 -0
  175. package/src/utils/graphql/answerService/answerService.ts +6 -3
  176. package/src/utils.ts +14 -0
package/lib/src/types.js CHANGED
@@ -6,7 +6,7 @@
6
6
  * @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
7
7
  */
8
8
  /**
9
- * The authentication mechanism for allowing access to the
9
+ * The authentication mechanism for allowing access to
10
10
  * the embedded app
11
11
  * @group Authentication / Init
12
12
  */
@@ -32,6 +32,7 @@ export var AuthType;
32
32
  * To use this:
33
33
  * Your SAML or OpenID provider must allow iframe redirects.
34
34
  * For example, if you are using Okta as IdP, you can enable iframe embedding.
35
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.8.0.cl
35
36
  * @example
36
37
  * ```js
37
38
  * init({
@@ -39,18 +40,17 @@ export var AuthType;
39
40
  * authType: AuthType.EmbeddedSSO,
40
41
  * });
41
42
  * ```
42
- * @version: SDK: 1.15.0 | ThoughtSpot: 8.8.0.cl
43
43
  */
44
44
  AuthType["EmbeddedSSO"] = "EmbeddedSSO";
45
45
  /**
46
- * SSO using SAML
47
- * @deprecated Use {@link SAMLRedirect} instead
46
+ * SSO using SAML, Use {@link SAMLRedirect} instead
47
+ * @deprecated This option is deprecated.
48
48
  * @hidden
49
49
  */
50
50
  AuthType["SSO"] = "SSO_SAML";
51
51
  /**
52
- * SSO using SAML
53
- * @deprecated Use {@link SAMLRedirect} instead
52
+ * SSO using SAML, Use {@link SAMLRedirect} instead
53
+ * @deprecated This option is deprecated.
54
54
  * @hidden
55
55
  */
56
56
  AuthType["SAML"] = "SSO_SAML";
@@ -101,8 +101,9 @@ export var AuthType;
101
101
  AuthType["SAMLRedirect"] = "SSO_SAML";
102
102
  /**
103
103
  * SSO using OIDC
104
+ * SSO using OIDC, Use {@link OIDCRedirect} instead
105
+ * @deprecated This option is deprecated.
104
106
  * @hidden
105
- * @deprecated Use {@link OIDCRedirect} instead
106
107
  */
107
108
  AuthType["OIDC"] = "SSO_OIDC";
108
109
  /**
@@ -113,8 +114,9 @@ export var AuthType;
113
114
  AuthType["OIDCRedirect"] = "SSO_OIDC";
114
115
  /**
115
116
  * Trusted authentication server
117
+ * Use {@link TrustedAuth} instead
118
+ * @deprecated This option is deprecated.
116
119
  * @hidden
117
- * @deprecated Use {@link TrustedAuth} instead
118
120
  */
119
121
  AuthType["AuthServer"] = "AuthServer";
120
122
  /**
@@ -141,6 +143,7 @@ export var AuthType;
141
143
  * obtained from ThoughtSpot. This uses a cookieless authentication
142
144
  * approach, recommended to bypass the third-party cookie-blocking restriction
143
145
  * implemented by some browsers.
146
+ * @version SDK: 1.22.0 | ThoughtSpot: 9.3.0.cl, 9.5.1.sw
144
147
  * @example
145
148
  * ```js
146
149
  * init({
@@ -151,8 +154,8 @@ export var AuthType;
151
154
  * .then((response) => response.json())
152
155
  * .then((data) => data.token);
153
156
  * }
157
+ * });
154
158
  * ```
155
- * @version SDK: 1.22.0| ThoughtSpot: 9.3.0.cl, 9.5.1.sw
156
159
  */
157
160
  AuthType["TrustedAuthTokenCookieless"] = "AuthServerCookieless";
158
161
  /**
@@ -173,43 +176,43 @@ export var HomeLeftNavItem;
173
176
  /**
174
177
  * The *Search data* option in
175
178
  * the *Insights* left navigation panel.
176
- * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
179
+ * @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
177
180
  */
178
181
  HomeLeftNavItem["SearchData"] = "search-data";
179
182
  /**
180
183
  * The *Home* menu option in
181
184
  * the *Insights* left navigation panel.
182
- * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
185
+ * @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
183
186
  */
184
187
  HomeLeftNavItem["Home"] = "insights-home";
185
188
  /**
186
189
  * The *Liveboards* menu option in
187
190
  * the *Insights* left navigation panel.
188
- * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
191
+ * @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
189
192
  */
190
193
  HomeLeftNavItem["Liveboards"] = "liveboards";
191
194
  /**
192
195
  * The *Answers* menu option in
193
196
  * the *Insights* left navigation panel.
194
- * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
197
+ * @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
195
198
  */
196
199
  HomeLeftNavItem["Answers"] = "answers";
197
200
  /**
198
201
  * The *Monitor subscriptions* menu option in
199
202
  * the *Insights* left navigation panel.
200
- * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
203
+ * @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
201
204
  */
202
205
  HomeLeftNavItem["MonitorSubscription"] = "monitor-alerts";
203
206
  /**
204
207
  * The *SpotIQ analysis* menu option in
205
208
  * the *Insights* left navigation panel.
206
- * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
209
+ * @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl
207
210
  */
208
211
  HomeLeftNavItem["SpotIQAnalysis"] = "spotiq-analysis";
209
212
  /**
210
213
  * The *Liveboard schedules* menu option in
211
214
  * the *Insights* left navigation panel.
212
- * @version SDK: 1.34.0| ThoughtSpot: 10.3.0.cl
215
+ * @version SDK: 1.34.0 | ThoughtSpot: 10.3.0.cl
213
216
  */
214
217
  HomeLeftNavItem["LiveboardSchedules"] = "liveboard-schedules";
215
218
  /**
@@ -315,7 +318,7 @@ export var HomepageModule;
315
318
  */
316
319
  HomepageModule["Search"] = "SEARCH";
317
320
  /**
318
- * kPI watchlist module
321
+ * KPI watchlist module
319
322
  */
320
323
  HomepageModule["Watchlist"] = "WATCHLIST";
321
324
  /**
@@ -347,7 +350,8 @@ export var ListPageColumns;
347
350
  */
348
351
  ListPageColumns["Favorites"] = "FAVOURITE";
349
352
  /**
350
- * @deprecated Use {@link ListPageColumns.Favorites} instead.
353
+ * Favourite Use {@link ListPageColumns.Favorites} instead.
354
+ * @deprecated This option is deprecated.
351
355
  */
352
356
  ListPageColumns["Favourite"] = "FAVOURITE";
353
357
  /**
@@ -415,13 +419,13 @@ export var EmbedEvent;
415
419
  /**
416
420
  * Rendering has initialized.
417
421
  * @example
418
- *```js
422
+ * ```js
419
423
  * liveboardEmbed.on(EmbedEvent.Init, showLoader)
420
424
  * //show a loader
421
425
  * function showLoader() {
422
426
  * document.getElementById("loader");
423
427
  * }
424
- *```
428
+ * ```
425
429
  * @returns timestamp - The timestamp when the event was generated.
426
430
  */
427
431
  EmbedEvent["Init"] = "init";
@@ -429,11 +433,11 @@ export var EmbedEvent;
429
433
  * Authentication has either succeeded or failed.
430
434
  * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
431
435
  * @example
432
- *```js
436
+ * ```js
433
437
  * appEmbed.on(EmbedEvent.AuthInit, payload => {
434
438
  * console.log('AuthInit', payload);
435
439
  * })
436
- *```
440
+ * ```
437
441
  * @returns isLoggedIn - A Boolean specifying whether authentication was successful.
438
442
  */
439
443
  EmbedEvent["AuthInit"] = "authInit";
@@ -442,13 +446,13 @@ export var EmbedEvent;
442
446
  * @returns timestamp - The timestamp when the event was generated.
443
447
  * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
444
448
  * @example
445
- *```js
449
+ * ```js
446
450
  * liveboardEmbed.on(EmbedEvent.Load, hideLoader)
447
451
  * //hide loader
448
452
  * function hideLoader() {
449
453
  * document.getElementById("loader");
450
454
  * }
451
- *```
455
+ * ```
452
456
  */
453
457
  EmbedEvent["Load"] = "load";
454
458
  /**
@@ -457,11 +461,11 @@ export var EmbedEvent;
457
461
  * @return data - Answer of Liveboard data
458
462
  * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
459
463
  * @example
460
- *```js
464
+ * ```js
461
465
  * liveboardEmbed.on(EmbedEvent.Data, payload => {
462
466
  * console.log('data', payload);
463
467
  * })
464
- *```
468
+ * ```
465
469
  * @important
466
470
  */
467
471
  EmbedEvent["Data"] = "data";
@@ -469,9 +473,9 @@ export var EmbedEvent;
469
473
  * Search query has been updated by the user.
470
474
  * @version SDK: 1.4.0 | ThoughtSpot: ts7.sep.cl, 8.4.1.sw
471
475
  * @example
472
- *```js
476
+ * ```js
473
477
  * searchEmbed.on(EmbedEvent.QueryChanged, payload => console.log('data', payload))
474
- *```
478
+ * ```
475
479
  */
476
480
  EmbedEvent["QueryChanged"] = "queryChanged";
477
481
  /**
@@ -481,7 +485,7 @@ export var EmbedEvent;
481
485
  * @returns drillDownColumns - The columns on which drill down was performed
482
486
  * @returns nonFilteredColumns - The columns that were not filtered
483
487
  * @example
484
- *```js
488
+ * ```js
485
489
  * searchEmbed.on(EmbedEvent.DrillDown, {
486
490
  * points: {
487
491
  * clickedPoint,
@@ -489,12 +493,12 @@ export var EmbedEvent;
489
493
  * },
490
494
  * autoDrillDown: true,
491
495
  * })
492
- *```
496
+ * ```
493
497
  * In this example, `VizPointDoubleClick` event is used for
494
498
  * triggering the `DrillDown` event when an area or specific
495
499
  * data point on a table or chart is double-clicked.
496
500
  * @example
497
- *```js
501
+ * ```js
498
502
  * searchEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
499
503
  * console.log(payload);
500
504
  * const clickedPoint = payload.data.clickedPoint;
@@ -508,7 +512,7 @@ export var EmbedEvent;
508
512
  * autoDrillDown: true,
509
513
  * })
510
514
  * })
511
- *```
515
+ * ```
512
516
  */
513
517
  EmbedEvent["Drilldown"] = "drillDown";
514
518
  /**
@@ -633,13 +637,13 @@ export var EmbedEvent;
633
637
  * The ThoughtSpot authentication session has expired.
634
638
  * @version SDK: 1.4.0 | ThoughtSpot: ts7.sep.cl, 8.4.1.sw
635
639
  * @example
636
- *```js
640
+ * ```js
637
641
  * appEmbed.on(EmbedEvent.AuthExpire, showAuthExpired)
638
642
  * //show auth expired banner
639
643
  * function showAuthExpired() {
640
644
  * document.getElementById("authExpiredBanner");
641
645
  * }
642
- *```
646
+ * ```
643
647
  */
644
648
  EmbedEvent["AuthExpire"] = "ThoughtspotAuthExpired";
645
649
  /**
@@ -674,22 +678,22 @@ export var EmbedEvent;
674
678
  * Applicable to `SearchBarEmbed` only.
675
679
  * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
676
680
  * @example
677
- *```js
681
+ * ```js
678
682
  * searchbarEmbed.on(EmbedEvent.GetDataClick)
679
683
  * .then(data => {
680
684
  * console.log('Answer Data:', data);
681
685
  * })
682
- *```
686
+ * ```
683
687
  */
684
688
  EmbedEvent["GetDataClick"] = "getDataClick";
685
689
  /**
686
690
  * Detects the route change.
687
691
  * @version SDK: 1.7.0 | ThoughtSpot: 8.0.0.cl, 8.4.1.sw
688
692
  * @example
689
- *```js
693
+ * ```js
690
694
  * searchEmbed.on(EmbedEvent.RouteChange, payload =>
691
695
  * console.log('data', payload))
692
- *```
696
+ * ```
693
697
  */
694
698
  EmbedEvent["RouteChange"] = "ROUTE_CHANGE";
695
699
  /**
@@ -699,12 +703,12 @@ export var EmbedEvent;
699
703
  EmbedEvent["V1Data"] = "exportVizDataToParent";
700
704
  /**
701
705
  * Emitted when the embed does not have cookie access. This happens
702
- * when Safari and other Web browsers block third-party cookies
703
- * are blocked by default. `NoCookieAccess` can trigger.
706
+ * when third-party cookies are blocked by Safari or other
707
+ * web browsers. `NoCookieAccess` can trigger.
704
708
  * @example
705
- *```js
709
+ * ```js
706
710
  * appEmbed.on(EmbedEvent.NoCookieAccess)
707
- *```
711
+ * ```
708
712
  * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1.sw
709
713
  */
710
714
  EmbedEvent["NoCookieAccess"] = "noCookieAccess";
@@ -718,22 +722,22 @@ export var EmbedEvent;
718
722
  * Emitted when any modal is opened in the app
719
723
  * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
720
724
  * @example
721
- *```js
725
+ * ```js
722
726
  * appEmbed.on(EmbedEvent.DialogOpen, payload => {
723
727
  * console.log('dialog open', payload);
724
728
  * })
725
- *```
729
+ * ```
726
730
  */
727
731
  EmbedEvent["DialogOpen"] = "dialog-open";
728
732
  /**
729
733
  * Emitted when any modal is closed in the app
730
734
  * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
731
735
  * @example
732
- *```js
736
+ * ```js
733
737
  * appEmbed.on(EmbedEvent.DialogClose, payload => {
734
738
  * console.log('dialog close', payload);
735
739
  * })
736
- *```
740
+ * ```
737
741
  */
738
742
  EmbedEvent["DialogClose"] = "dialog-close";
739
743
  /**
@@ -742,39 +746,39 @@ export var EmbedEvent;
742
746
  * other events on the rendered Liveboard.
743
747
  * @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
744
748
  * @example
745
- *```js
749
+ * ```js
746
750
  * liveboardEmbed.on(EmbedEvent.LiveboardRendered, payload => {
747
751
  console.log('Liveboard is rendered', payload);
748
752
  })
749
- *```
753
+ * ```
750
754
  * The following example shows how to trigger
751
755
  * `SetVisibleVizs` event using LiveboardRendered embed event:
752
756
  * @example
753
- *```js
757
+ * ```js
754
758
  * const embedRef = useEmbedRef();
755
759
  * const onLiveboardRendered = () => {
756
760
  * embed.trigger(HostEvent.SetVisibleVizs, ['viz1', 'viz2']);
757
761
  * };
758
- *```
762
+ * ```
759
763
  */
760
764
  EmbedEvent["LiveboardRendered"] = "PinboardRendered";
761
765
  /**
762
766
  * Emits all events.
763
- * @Version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
767
+ * @version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
764
768
  * @example
765
- *```js
769
+ * ```js
766
770
  * appEmbed.on(EmbedEvent.ALL, payload => {
767
771
  * console.log('Embed Events', payload)
768
772
  * })
769
- *```
773
+ * ```
770
774
  */
771
775
  EmbedEvent["ALL"] = "*";
772
776
  /**
773
777
  * Emitted when an Answer is saved in the app.
774
778
  * Use start:true to subscribe to when save is initiated, or end:true to subscribe to when save is completed. Default is end:true.
775
- * @Version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
779
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
776
780
  * @example
777
- *```js
781
+ * ```js
778
782
  * //Emit when action starts
779
783
  * searchEmbed.on(EmbedEvent.Save, payload => {
780
784
  * console.log('Save', payload)
@@ -785,7 +789,7 @@ export var EmbedEvent;
785
789
  * searchEmbed.on(EmbedEvent.Save, payload => {
786
790
  * console.log('Save', payload)
787
791
  * })
788
- *```
792
+ * ```
789
793
  */
790
794
  EmbedEvent["Save"] = "save";
791
795
  /**
@@ -797,11 +801,11 @@ export var EmbedEvent;
797
801
  * `EmbedEvent.DownloadAsCSV`, or `EmbedEvent.DownloadAsXLSX`
798
802
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
799
803
  * @example
800
- *```js
804
+ * ```js
801
805
  * liveboardEmbed.on(EmbedEvent.Download, {
802
806
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'
803
807
  * })
804
- *```
808
+ * ```
805
809
  */
806
810
  EmbedEvent["Download"] = "download";
807
811
  /**
@@ -809,14 +813,14 @@ export var EmbedEvent;
809
813
  * Use start:true to subscribe to when download is initiated, or end:true to subscribe to when download is completed. Default is end:true.
810
814
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.0.sw
811
815
  * @example
812
- *```js
816
+ * ```js
813
817
  * //emit when action starts
814
818
  * searchEmbed.on(EmbedEvent.DownloadAsPng, payload => {
815
819
  * console.log('download PNG', payload)}, {start: true })
816
820
  * //emit when action ends
817
821
  * searchEmbed.on(EmbedEvent.DownloadAsPng, payload => {
818
822
  * console.log('download PNG', payload)})
819
- *```
823
+ * ```
820
824
  */
821
825
  EmbedEvent["DownloadAsPng"] = "downloadAsPng";
822
826
  /**
@@ -824,14 +828,14 @@ export var EmbedEvent;
824
828
  * Use start:true to subscribe to when download as PDF is initiated, or end:true to subscribe to when download as PDF is completed. Default is end:true.
825
829
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
826
830
  * @example
827
- *```js
831
+ * ```js
828
832
  * //emit when action starts
829
833
  * searchEmbed.on(EmbedEvent.DownloadAsPdf, payload => {
830
834
  * console.log('download PDF', payload)}, {start: true })
831
835
  * //emit when action ends
832
836
  * searchEmbed.on(EmbedEvent.DownloadAsPdf, payload => {
833
837
  * console.log('download PDF', payload)})
834
- *```
838
+ * ```
835
839
  */
836
840
  EmbedEvent["DownloadAsPdf"] = "downloadAsPdf";
837
841
  /**
@@ -839,14 +843,14 @@ export var EmbedEvent;
839
843
  * Use start:true to subscribe to when download as CSV is initiated, or end:true to subscribe to when download as CSV is completed. Default is end:true.
840
844
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
841
845
  * @example
842
- *```js
846
+ * ```js
843
847
  * //emit when action starts
844
848
  * searchEmbed.on(EmbedEvent.DownloadAsCSV, payload => {
845
849
  * console.log('download CSV', payload)}, {start: true })
846
850
  * //emit when action ends
847
851
  * searchEmbed.on(EmbedEvent.DownloadAsCSV, payload => {
848
852
  * console.log('download CSV', payload)})
849
- *```
853
+ * ```
850
854
  */
851
855
  EmbedEvent["DownloadAsCsv"] = "downloadAsCsv";
852
856
  /**
@@ -854,14 +858,14 @@ export var EmbedEvent;
854
858
  * Use start:true to subscribe to when download as XLSX is initiated, or end:true to subscribe to when download as XLSX is completed. Default is end:true.
855
859
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
856
860
  * @example
857
- *```js
861
+ * ```js
858
862
  * //emit when action starts
859
863
  * searchEmbed.on(EmbedEvent.DownloadAsXlsx, payload => {
860
864
  * console.log('download Xlsx', payload)}, { start: true })
861
865
  * //emit when action ends
862
866
  * searchEmbed.on(EmbedEvent.DownloadAsXlsx, payload => {
863
867
  * console.log('download Xlsx', payload)})
864
- *```
868
+ * ```
865
869
  */
866
870
  EmbedEvent["DownloadAsXlsx"] = "downloadAsXlsx";
867
871
  /**
@@ -869,25 +873,25 @@ export var EmbedEvent;
869
873
  * Use start:true to subscribe to when delete is initiated, or end:true to subscribe to when delete is completed. Default is end:true.
870
874
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
871
875
  * @example
872
- *```js
876
+ * ```js
873
877
  * //emit when action starts
874
878
  * appEmbed.on(EmbedEvent.AnswerDelete, payload => {
875
879
  * console.log('delete answer', payload)}, {start: true })
876
880
  * //trigger when action is completed
877
881
  * appEmbed.on(EmbedEvent.AnswerDelete, payload => {
878
882
  * console.log('delete answer', payload)})
879
- *```
883
+ * ```
880
884
  */
881
885
  EmbedEvent["AnswerDelete"] = "answerDelete";
882
886
  /**
883
887
  * Emitted when the AI Highlights action is triggered on a Liveboard
884
888
  * @version SDK: 1.44.0 | ThoughtSpot: 10.15.0.cl
885
889
  * @example
886
- *```js
890
+ * ```js
887
891
  * liveboardEmbed.on(EmbedEvent.AIHighlights, (payload) => {
888
892
  * console.log('AI Highlights', payload);
889
893
  * })
890
- *```
894
+ * ```
891
895
  */
892
896
  EmbedEvent["AIHighlights"] = "AIHighlights";
893
897
  /**
@@ -896,7 +900,7 @@ export var EmbedEvent;
896
900
  * Use start:true to subscribe to when pin is initiated, or end:true to subscribe to when pin is completed. Default is end:true.
897
901
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
898
902
  * @example
899
- *```js
903
+ * ```js
900
904
  * //emit when action starts
901
905
  * searchEmbed.on(EmbedEvent.Pin, payload => {
902
906
  * console.log('pin', payload)
@@ -907,14 +911,14 @@ export var EmbedEvent;
907
911
  * searchEmbed.on(EmbedEvent.Pin, payload => {
908
912
  * console.log('pin', payload)
909
913
  * })
910
- *```
914
+ * ```
911
915
  */
912
916
  EmbedEvent["Pin"] = "pin";
913
917
  /**
914
918
  * Emitted when SpotIQ analysis is triggered
915
919
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
916
920
  * @example
917
- *```js
921
+ * ```js
918
922
  * //emit when action starts
919
923
  * searchEmbed.on(EmbedEvent.SpotIQAnalyze, payload => {
920
924
  * console.log('SpotIQAnalyze', payload)
@@ -925,14 +929,14 @@ export var EmbedEvent;
925
929
  * searchEmbed.on(EmbedEvent.SpotIQAnalyze, payload => {
926
930
  * console.log('SpotIQ analyze', payload)
927
931
  * })
928
- *```
932
+ * ```
929
933
  */
930
934
  EmbedEvent["SpotIQAnalyze"] = "spotIQAnalyze";
931
935
  /**
932
936
  * Emitted when a user shares an object with another user or group
933
937
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
934
938
  * @example
935
- *```js
939
+ * ```js
936
940
  * //emit when action starts
937
941
  * searchEmbed.on(EmbedEvent.Share, payload => {
938
942
  * console.log('Share', payload)
@@ -943,7 +947,7 @@ export var EmbedEvent;
943
947
  * searchEmbed.on(EmbedEvent.Share, payload => {
944
948
  * console.log('Share', payload)
945
949
  * })
946
- *```
950
+ * ```
947
951
  */
948
952
  EmbedEvent["Share"] = "share";
949
953
  /**
@@ -951,11 +955,11 @@ export var EmbedEvent;
951
955
  * data on a chart or table.
952
956
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
953
957
  * @example
954
- *```js
958
+ * ```js
955
959
  * appEmbed.on(EmbedEvent.DrillInclude, payload => {
956
960
  * console.log('Drill include', payload);
957
961
  * })
958
- *```
962
+ * ```
959
963
  */
960
964
  EmbedEvent["DrillInclude"] = "context-menu-item-include";
961
965
  /**
@@ -963,22 +967,22 @@ export var EmbedEvent;
963
967
  * data on a chart or table
964
968
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
965
969
  * @example
966
- *```js
970
+ * ```js
967
971
  * appEmbed.on(EmbedEvent.DrillExclude, payload => {
968
972
  * console.log('Drill exclude', payload);
969
973
  * })
970
- *```
974
+ * ```
971
975
  */
972
976
  EmbedEvent["DrillExclude"] = "context-menu-item-exclude";
973
977
  /**
974
978
  * Emitted when a column value is copied in the embedded app.
975
979
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
976
980
  * @example
977
- *```js
978
- * seachEmbed.on(EmbedEvent.CopyToClipboard, payload => {
981
+ * ```js
982
+ * searchEmbed.on(EmbedEvent.CopyToClipboard, payload => {
979
983
  * console.log('copy to clipboard', payload);
980
984
  * })
981
- *```
985
+ * ```
982
986
  */
983
987
  EmbedEvent["CopyToClipboard"] = "context-menu-item-copy-to-clipboard";
984
988
  /**
@@ -986,10 +990,10 @@ export var EmbedEvent;
986
990
  * embedded Liveboard.
987
991
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
988
992
  * @example
989
- *```js
993
+ * ```js
990
994
  * liveboardEmbed.on(EmbedEvent.UpdateTML)
991
995
  * })
992
- *```
996
+ * ```
993
997
  */
994
998
  EmbedEvent["UpdateTML"] = "updateTSL";
995
999
  /**
@@ -997,11 +1001,11 @@ export var EmbedEvent;
997
1001
  * on an embedded Liveboard.
998
1002
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
999
1003
  * @example
1000
- *```js
1004
+ * ```js
1001
1005
  * appEmbed.on(EmbedEvent.EditTML, payload => {
1002
1006
  * console.log('Edit TML', payload);
1003
1007
  * })
1004
- *```
1008
+ * ```
1005
1009
  */
1006
1010
  EmbedEvent["EditTML"] = "editTSL";
1007
1011
  /**
@@ -1010,25 +1014,25 @@ export var EmbedEvent;
1010
1014
  * Use start:true to subscribe to when export is initiated, or end:true to subscribe to when export is completed. Default is end:true.
1011
1015
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1012
1016
  * @example
1013
- *```js
1017
+ * ```js
1014
1018
  * //emit when action starts
1015
1019
  * searchEmbed.on(EmbedEvent.ExportTML, payload => {
1016
1020
  * console.log('Export TML', payload)}, { start: true })
1017
1021
  * //emit when action ends
1018
1022
  * searchEmbed.on(EmbedEvent.ExportTML, payload => {
1019
1023
  * console.log('Export TML', payload)})
1020
- *```
1024
+ * ```
1021
1025
  */
1022
1026
  EmbedEvent["ExportTML"] = "exportTSL";
1023
1027
  /**
1024
1028
  * Emitted when an Answer is saved as a View.
1025
1029
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1026
1030
  * @example
1027
- *```js
1031
+ * ```js
1028
1032
  * appEmbed.on(EmbedEvent.SaveAsView, payload => {
1029
1033
  * console.log('View', payload);
1030
1034
  * })
1031
- *```
1035
+ * ```
1032
1036
  */
1033
1037
  EmbedEvent["SaveAsView"] = "saveAsView";
1034
1038
  /**
@@ -1036,36 +1040,36 @@ export var EmbedEvent;
1036
1040
  * Use start:true to subscribe to when copy and edit is initiated, or end:true to subscribe to when copy and edit is completed. Default is end:true.
1037
1041
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1038
1042
  * @example
1039
- *```js
1043
+ * ```js
1040
1044
  * //emit when action starts
1041
1045
  * appEmbed.on(EmbedEvent.CopyAEdit, payload => {
1042
1046
  * console.log('Copy and edit', payload)}, {start: true })
1043
1047
  * //emit when action ends
1044
1048
  * appEmbed.on(EmbedEvent.CopyAEdit, payload => {
1045
1049
  * console.log('Copy and edit', payload)})
1046
- *```
1050
+ * ```
1047
1051
  */
1048
1052
  EmbedEvent["CopyAEdit"] = "copyAEdit";
1049
1053
  /**
1050
1054
  * Emitted when a user clicks *Show underlying data* on an Answer.
1051
1055
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1052
1056
  * @example
1053
- *```js
1057
+ * ```js
1054
1058
  * liveboardEmbed.on(EmbedEvent.ShowUnderlyingData, payload => {
1055
1059
  * console.log('show data', payload);
1056
1060
  * })
1057
- *```
1061
+ * ```
1058
1062
  */
1059
1063
  EmbedEvent["ShowUnderlyingData"] = "showUnderlyingData";
1060
1064
  /**
1061
1065
  * Emitted when an Answer is switched to a chart or table view.
1062
1066
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1063
1067
  * @example
1064
- *```js
1068
+ * ```js
1065
1069
  * searchEmbed.on(EmbedEvent.AnswerChartSwitcher, payload => {
1066
1070
  * console.log('switch view', payload);
1067
1071
  * })
1068
- *```
1072
+ * ```
1069
1073
  */
1070
1074
  EmbedEvent["AnswerChartSwitcher"] = "answerChartSwitcher";
1071
1075
  /**
@@ -1082,118 +1086,118 @@ export var EmbedEvent;
1082
1086
  * Emitted when a user clicks **Show Liveboard details** on a Liveboard
1083
1087
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1084
1088
  * @example
1085
- *```js
1089
+ * ```js
1086
1090
  * liveboardEmbed.on(EmbedEvent.LiveboardInfo, payload => {
1087
1091
  * console.log('Liveboard details', payload);
1088
1092
  * })
1089
- *```
1093
+ * ```
1090
1094
  */
1091
1095
  EmbedEvent["LiveboardInfo"] = "pinboardInfo";
1092
1096
  /**
1093
1097
  * Emitted when a user clicks on the Favorite icon on a Liveboard
1094
1098
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1095
1099
  * @example
1096
- *```js
1100
+ * ```js
1097
1101
  * liveboardEmbed.on(EmbedEvent.AddToFavorites, payload => {
1098
1102
  * console.log('favorites', payload);
1099
1103
  * })
1100
- *```
1104
+ * ```
1101
1105
  */
1102
1106
  EmbedEvent["AddToFavorites"] = "addToFavorites";
1103
1107
  /**
1104
1108
  * Emitted when a user clicks **Schedule** on a Liveboard
1105
1109
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1106
1110
  * @example
1107
- *```js
1111
+ * ```js
1108
1112
  * liveboardEmbed.on(EmbedEvent.Schedule, payload => {
1109
- * console.log(`Liveboard schedule', payload);
1113
+ * console.log('Liveboard schedule', payload);
1110
1114
  * })
1111
- *```
1115
+ * ```
1112
1116
  */
1113
1117
  EmbedEvent["Schedule"] = "subscription";
1114
1118
  /**
1115
1119
  * Emitted when a user clicks **Edit** on a Liveboard or visualization
1116
1120
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1117
1121
  * @example
1118
- *```js
1122
+ * ```js
1119
1123
  * liveboardEmbed.on(EmbedEvent.Edit, payload => {
1120
- * console.log(`Liveboard edit', payload);
1124
+ * console.log('Liveboard edit', payload);
1121
1125
  * })
1122
- *```
1126
+ * ```
1123
1127
  */
1124
1128
  EmbedEvent["Edit"] = "edit";
1125
1129
  /**
1126
1130
  * Emitted when a user clicks *Make a copy* on a Liveboard
1127
1131
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1128
1132
  * @example
1129
- *```js
1133
+ * ```js
1130
1134
  * liveboardEmbed.on(EmbedEvent.MakeACopy, payload => {
1131
- * console.log(`Copy', payload);
1135
+ * console.log('Copy', payload);
1132
1136
  * })
1133
- *```
1137
+ * ```
1134
1138
  */
1135
1139
  EmbedEvent["MakeACopy"] = "makeACopy";
1136
1140
  /**
1137
1141
  * Emitted when a user clicks **Present** on a Liveboard or visualization
1138
1142
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1139
1143
  * @example
1140
- *```js
1144
+ * ```js
1141
1145
  * liveboardEmbed.on(EmbedEvent.Present)
1142
- *```
1146
+ * ```
1143
1147
  * @example
1144
- *```js
1148
+ * ```js
1145
1149
  * liveboardEmbed.on(EmbedEvent.Present, {
1146
1150
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1147
1151
  * })
1148
- *```
1152
+ * ```
1149
1153
  */
1150
1154
  EmbedEvent["Present"] = "present";
1151
1155
  /**
1152
1156
  * Emitted when a user clicks **Delete** on a visualization
1153
1157
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1154
1158
  * @example
1155
- *```js
1159
+ * ```js
1156
1160
  * liveboardEmbed.on(EmbedEvent.Delete,
1157
1161
  * {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1158
- *```
1162
+ * ```
1159
1163
  */
1160
1164
  EmbedEvent["Delete"] = "delete";
1161
1165
  /**
1162
1166
  * Emitted when a user clicks Manage schedules on a Liveboard
1163
1167
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1164
1168
  * @example
1165
- *```js
1169
+ * ```js
1166
1170
  * liveboardEmbed.on(EmbedEvent.SchedulesList)
1167
- *```
1171
+ * ```
1168
1172
  */
1169
1173
  EmbedEvent["SchedulesList"] = "schedule-list";
1170
1174
  /**
1171
1175
  * Emitted when a user clicks **Cancel** in edit mode on a Liveboard
1172
1176
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1173
1177
  * @example
1174
- *```js
1178
+ * ```js
1175
1179
  * liveboardEmbed.on(EmbedEvent.Cancel)
1176
- *```
1180
+ * ```
1177
1181
  */
1178
1182
  EmbedEvent["Cancel"] = "cancel";
1179
1183
  /**
1180
1184
  * Emitted when a user clicks **Explore** on a visualization
1181
1185
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1182
1186
  * @example
1183
- *```js
1187
+ * ```js
1184
1188
  * liveboardEmbed.on(EmbedEvent.Explore, {
1185
1189
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1186
- *```
1190
+ * ```
1187
1191
  */
1188
1192
  EmbedEvent["Explore"] = "explore";
1189
1193
  /**
1190
1194
  * Emitted when a user clicks **Copy link** action on a visualization.
1191
1195
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1192
1196
  * @example
1193
- *```js
1197
+ * ```js
1194
1198
  * liveboardEmbed.on(EmbedEvent.CopyLink, {
1195
1199
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1196
- *```
1200
+ * ```
1197
1201
  */
1198
1202
  EmbedEvent["CopyLink"] = "embedDocument";
1199
1203
  /**
@@ -1201,21 +1205,21 @@ export var EmbedEvent;
1201
1205
  * visualization or Liveboard.
1202
1206
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
1203
1207
  * @example
1204
- *```js
1208
+ * ```js
1205
1209
  * liveboardEmbed.on(EmbedEvent.CrossFilterChanged, {
1206
1210
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1207
- *```
1211
+ * ```
1208
1212
  */
1209
1213
  EmbedEvent["CrossFilterChanged"] = "cross-filter-changed";
1210
1214
  /**
1211
1215
  * Emitted when a user right clicks on a visualization (chart or table)
1212
1216
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
1213
1217
  * @example
1214
- *```js
1218
+ * ```js
1215
1219
  * LiveboardEmbed.on(EmbedEvent.VizPointRightClick, payload => {
1216
1220
  * console.log('VizPointClick', payload)
1217
1221
  * })
1218
- *```
1222
+ * ```
1219
1223
  */
1220
1224
  EmbedEvent["VizPointRightClick"] = "vizPointRightClick";
1221
1225
  /**
@@ -1229,35 +1233,35 @@ export var EmbedEvent;
1229
1233
  * filter details.
1230
1234
  * @example
1231
1235
  *
1232
- *```js
1236
+ * ```js
1233
1237
  * LiveboardEmbed.on(EmbedEvent.FilterChanged, (payload) => {
1234
1238
  * console.log('payload', payload);
1235
1239
  * })
1236
- *
1240
+ * ```
1237
1241
  * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.0.sw
1238
1242
  */
1239
1243
  EmbedEvent["FilterChanged"] = "filterChanged";
1240
1244
  /**
1241
1245
  * Emitted when a user clicks the **Go** button to initiate
1242
1246
  * a Natural Language Search query
1243
- * @version SDK : 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1247
+ * @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1244
1248
  */
1245
1249
  EmbedEvent["SageEmbedQuery"] = "sageEmbedQuery";
1246
1250
  /**
1247
1251
  * Emitted when a user selects a data source on the embedded
1248
1252
  * Natural Language Search interface.
1249
1253
  *
1250
- * @version SDK : 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1254
+ * @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1251
1255
  */
1252
1256
  EmbedEvent["SageWorksheetUpdated"] = "sageWorksheetUpdated";
1253
1257
  /**
1254
1258
  * Emitted when a user updates a connection on the **Data** page
1255
- * @version SDK : 1.27.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
1259
+ * @version SDK: 1.27.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
1256
1260
  */
1257
1261
  EmbedEvent["UpdateConnection"] = "updateConnection";
1258
1262
  /**
1259
1263
  * Emitted when a user updates a connection on the **Data** page
1260
- * @version SDK : 1.27.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
1264
+ * @version SDK: 1.27.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
1261
1265
  */
1262
1266
  EmbedEvent["CreateConnection"] = "createConnection";
1263
1267
  /**
@@ -1267,7 +1271,7 @@ export var EmbedEvent;
1267
1271
  * @returns viewId: string
1268
1272
  * @returns liveboardId: string
1269
1273
  * @returns isPublic: boolean
1270
- * @version SDK : 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1274
+ * @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1271
1275
  */
1272
1276
  EmbedEvent["UpdatePersonalisedView"] = "updatePersonalisedView";
1273
1277
  /**
@@ -1276,7 +1280,7 @@ export var EmbedEvent;
1276
1280
  * @returns viewId: string
1277
1281
  * @returns liveboardId: string
1278
1282
  * @returns isPublic: boolean
1279
- * @version SDK : 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1283
+ * @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1280
1284
  */
1281
1285
  EmbedEvent["SavePersonalisedView"] = "savePersonalisedView";
1282
1286
  /**
@@ -1285,19 +1289,19 @@ export var EmbedEvent;
1285
1289
  * @returns viewId: string
1286
1290
  * @returns liveboardId: string
1287
1291
  * @returns isPublic: boolean
1288
- * @version SDK : 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1292
+ * @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1289
1293
  */
1290
1294
  EmbedEvent["ResetLiveboard"] = "resetLiveboard";
1291
1295
  /**
1292
1296
  * Emitted when a PersonalisedView is deleted.
1293
1297
  * @returns views: string[]
1294
1298
  * @returns liveboardId: string
1295
- * @version SDK : 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1299
+ * @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 9.8.0.sw
1296
1300
  */
1297
1301
  EmbedEvent["DeletePersonalisedView"] = "deletePersonalisedView";
1298
1302
  /**
1299
1303
  * Emitted when a user creates a Worksheet.
1300
- * @version SDK : 1.27.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
1304
+ * @version SDK: 1.27.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
1301
1305
  */
1302
1306
  EmbedEvent["CreateWorksheet"] = "createWorksheet";
1303
1307
  /**
@@ -1306,12 +1310,12 @@ export var EmbedEvent;
1306
1310
  * @returns viewId: string
1307
1311
  * @returns liveboardId: string
1308
1312
  * @returns isPublic: boolean
1309
- * @version SDK : 1.29.0 | ThoughtSpot Cloud: 9.12.0.cl
1313
+ * @version SDK: 1.29.0 | ThoughtSpot Cloud: 9.12.0.cl
1310
1314
  */
1311
1315
  EmbedEvent["AskSageInit"] = "AskSageInit";
1312
1316
  /**
1313
1317
  * Emitted when a Liveboard or visualization is renamed.
1314
- * @version SDK : 1.28.0 | ThoughtSpot: 9.10.5.cl, 10.1.0.sw
1318
+ * @version SDK: 1.28.0 | ThoughtSpot: 9.10.5.cl, 10.1.0.sw
1315
1319
  */
1316
1320
  EmbedEvent["Rename"] = "rename";
1317
1321
  /**
@@ -1329,14 +1333,12 @@ export var EmbedEvent;
1329
1333
  * - `payload`: The payload received from the embed related to the Data API call.
1330
1334
  * - `responder`: Contains elements that let developers define whether ThoughtSpot
1331
1335
  * will run or block the search operation, and if blocked, which error message to provide.
1332
- *
1333
- * `execute` - When `execute` returns `true`, the search is run.
1336
+ * - `execute` - When `execute` returns `true`, the search is run.
1334
1337
  * When `execute` returns `false`, the search is not executed.
1335
- *
1336
- * `error` - Developers can customize the user-facing error message when `execute`
1338
+ * - `error` - Developers can customize the user-facing error message when `execute`
1337
1339
  * is `false` by using the `error` parameters in `responder`.
1338
- * `errorText` - The error message text shown to the user.
1339
- * @version SDK : 1.29.0 | ThoughtSpot: 10.3.0.cl
1340
+ * - `errorText` - The error message text shown to the user.
1341
+ * @version SDK: 1.29.0 | ThoughtSpot: 10.3.0.cl
1340
1342
  * @example
1341
1343
  *
1342
1344
  * This example blocks search operation and returns a custom error message:
@@ -1351,7 +1353,7 @@ export var EmbedEvent;
1351
1353
  * },
1352
1354
  * },
1353
1355
  * });
1354
- * });
1356
+ * })
1355
1357
  * ```
1356
1358
  * @example
1357
1359
  *
@@ -1377,7 +1379,7 @@ export var EmbedEvent;
1377
1379
  * },
1378
1380
  * },
1379
1381
  * });
1380
- * });
1382
+ * })
1381
1383
  * ```
1382
1384
  */
1383
1385
  EmbedEvent["OnBeforeGetVizDataIntercept"] = "onBeforeGetVizDataIntercept";
@@ -1388,8 +1390,8 @@ export var EmbedEvent;
1388
1390
  * liveboardEmbed.on(EmbedEvent.ParameterChanged, (payload) => {
1389
1391
  * console.log('payload', payload);
1390
1392
  * })
1391
- *```
1392
- * @version SDK : 1.29.0 | ThoughtSpot: 10.3.0.cl
1393
+ * ```
1394
+ * @version SDK: 1.29.0 | ThoughtSpot: 10.3.0.cl
1393
1395
  */
1394
1396
  EmbedEvent["ParameterChanged"] = "parameterChanged";
1395
1397
  /**
@@ -1444,24 +1446,24 @@ export var EmbedEvent;
1444
1446
  * liveboardEmbed.on(EmbedEvent.CreateLiveboard, (payload) => {
1445
1447
  * console.log('payload', payload);
1446
1448
  * })
1447
- *```
1448
- * @version SDK : 1.37.0 | ThoughtSpot: 10.8.0.cl
1449
+ * ```
1450
+ * @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl
1449
1451
  */
1450
1452
  EmbedEvent["CreateLiveboard"] = "createLiveboard";
1451
1453
  /**
1452
1454
  * Emitted when a user creates a Model.
1453
- * @version SDK : 1.37.0 | ThoughtSpot: 10.8.0.cl
1455
+ * @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl
1454
1456
  */
1455
1457
  EmbedEvent["CreateModel"] = "createModel";
1456
1458
  /**
1457
1459
  * @hidden
1458
1460
  * Emitted when a user exits present mode.
1459
- * @version SDK : 1.40.0 | ThoughtSpot: 10.11.0.cl
1461
+ * @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
1460
1462
  */
1461
1463
  EmbedEvent["ExitPresentMode"] = "exitPresentMode";
1462
1464
  /**
1463
1465
  * Emitted when a user requests the full height lazy load data.
1464
- * @version SDK : 1.39.0 | ThoughtSpot : 10.10.0.cl
1466
+ * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
1465
1467
  * @hidden
1466
1468
  */
1467
1469
  EmbedEvent["RequestVisibleEmbedCoordinates"] = "requestVisibleEmbedCoordinates";
@@ -1472,7 +1474,7 @@ export var EmbedEvent;
1472
1474
  * spotterEmbed.on(EmbedEvent.SpotterData, (payload) => {
1473
1475
  * console.log('payload', payload);
1474
1476
  * })
1475
- *```
1477
+ * ```
1476
1478
  * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
1477
1479
  */
1478
1480
  EmbedEvent["SpotterData"] = "SpotterData";
@@ -1483,7 +1485,7 @@ export var EmbedEvent;
1483
1485
  * spotterEmbed.on(EmbedEvent.PreviewSpotterData, (payload) => {
1484
1486
  * console.log('payload', payload);
1485
1487
  * })
1486
- *```
1488
+ * ```
1487
1489
  * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
1488
1490
  */
1489
1491
  EmbedEvent["PreviewSpotterData"] = "PreviewSpotterData";
@@ -1494,7 +1496,7 @@ export var EmbedEvent;
1494
1496
  * spotterEmbed.on(EmbedEvent.AddToCoaching, (payload) => {
1495
1497
  * console.log('payload', payload);
1496
1498
  * })
1497
- *```
1499
+ * ```
1498
1500
  * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
1499
1501
  */
1500
1502
  EmbedEvent["AddToCoaching"] = "addToCoaching";
@@ -1516,7 +1518,7 @@ export var EmbedEvent;
1516
1518
  * spotterEmbed.on(EmbedEvent.SpotterQueryTriggered, (payload) => {
1517
1519
  * console.log('payload', payload);
1518
1520
  * })
1519
- *```
1521
+ * ```
1520
1522
  * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
1521
1523
  */
1522
1524
  EmbedEvent["SpotterQueryTriggered"] = "SpotterQueryTriggered";
@@ -1527,7 +1529,7 @@ export var EmbedEvent;
1527
1529
  * spotterEmbed.on(EmbedEvent.LastPromptEdited, (payload) => {
1528
1530
  * console.log('payload', payload);
1529
1531
  * })
1530
- *```
1532
+ * ```
1531
1533
  * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
1532
1534
  */
1533
1535
  EmbedEvent["LastPromptEdited"] = "LastPromptEdited";
@@ -1538,18 +1540,18 @@ export var EmbedEvent;
1538
1540
  * spotterEmbed.on(EmbedEvent.LastPromptDeleted, (payload) => {
1539
1541
  * console.log('payload', payload);
1540
1542
  * })
1541
- *```
1543
+ * ```
1542
1544
  * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
1543
1545
  */
1544
1546
  EmbedEvent["LastPromptDeleted"] = "LastPromptDeleted";
1545
1547
  /**
1546
- * Emitted when the coversation is reset in spotter embed.
1548
+ * Emitted when the conversation is reset in Spotter embed.
1547
1549
  * @example
1548
1550
  * ```js
1549
1551
  * spotterEmbed.on(EmbedEvent.ResetSpotterConversation, (payload) => {
1550
1552
  * console.log('payload', payload);
1551
1553
  * })
1552
- *```
1554
+ * ```
1553
1555
  * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
1554
1556
  */
1555
1557
  EmbedEvent["ResetSpotterConversation"] = "ResetSpotterConversation";
@@ -1560,7 +1562,7 @@ export var EmbedEvent;
1560
1562
  * spotterEmbed.on(EmbedEvent.SpotterInit, (payload) => {
1561
1563
  * console.log('payload', payload);
1562
1564
  * })
1563
- *```
1565
+ * ```
1564
1566
  * @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
1565
1567
  */
1566
1568
  EmbedEvent["SpotterInit"] = "spotterInit";
@@ -1571,7 +1573,7 @@ export var EmbedEvent;
1571
1573
  * spotterEmbed.on(EmbedEvent.SpotterLoadComplete, (payload) => {
1572
1574
  * console.log('payload', payload);
1573
1575
  * })
1574
- *```
1576
+ * ```
1575
1577
  * @version SDK: 1.44.0 | ThoughtSpot: 26.2.0.cl
1576
1578
  */
1577
1579
  EmbedEvent["SpotterLoadComplete"] = "spotterLoadComplete";
@@ -1926,7 +1928,7 @@ export var HostEvent;
1926
1928
  * ```js
1927
1929
  * appEmbed.navigateToPage(-1)
1928
1930
  * ```
1929
- * @version SDK: 1.12.0 | ThoughtSpot 8.4.0.cl, 8.4.1.sw
1931
+ * @version SDK: 1.12.0 | ThoughtSpot: 8.4.0.cl, 8.4.1.sw
1930
1932
  */
1931
1933
  HostEvent["Navigate"] = "Navigate";
1932
1934
  /**
@@ -2059,9 +2061,9 @@ export var HostEvent;
2059
2061
  * Trigger the **Show Liveboard details** action
2060
2062
  * on an embedded Liveboard.
2061
2063
  * @example
2062
- *```js
2064
+ * ```js
2063
2065
  * liveboardEmbed.trigger(HostEvent.LiveboardInfo)
2064
- *```
2066
+ * ```
2065
2067
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2066
2068
  */
2067
2069
  HostEvent["LiveboardInfo"] = "pinboardInfo";
@@ -2189,7 +2191,7 @@ export var HostEvent;
2189
2191
  * appEmbed.trigger(HostEvent.Remove)
2190
2192
  * ```
2191
2193
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2192
- * * @example
2194
+ * @example
2193
2195
  * ```js
2194
2196
  * liveboardEmbed.trigger(HostEvent.Remove)
2195
2197
  * ```
@@ -2280,7 +2282,7 @@ export var HostEvent;
2280
2282
  * liveboardEmbed.trigger(HostEvent.CopyLink, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
2281
2283
  * ```
2282
2284
  * ```js
2283
- * vizEmbed.trigger((HostEvent.CopyLink)
2285
+ * vizEmbed.trigger(HostEvent.CopyLink)
2284
2286
  * ```
2285
2287
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2286
2288
  */
@@ -2297,7 +2299,7 @@ export var HostEvent;
2297
2299
  * liveboardEmbed.trigger(HostEvent.Present, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
2298
2300
  * ```
2299
2301
  * ```js
2300
- * vizEmbed.trigger((HostEvent.Present)
2302
+ * vizEmbed.trigger(HostEvent.Present)
2301
2303
  * ```
2302
2304
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2303
2305
  */
@@ -2312,23 +2314,22 @@ export var HostEvent;
2312
2314
  * );
2313
2315
  * })
2314
2316
  * ```
2315
- * * @example
2317
+ * @example
2316
2318
  * ```js
2317
-
2318
- * // You can use the Data event dispatched on each answer creation to get the vizId and use in Pin host event.
2319
- * let latestSpotterVizId = '';
2320
- * spotterEmbed.on(EmbedEvent.Data, (payload) => {
2321
- * latestSpotterVizId = payload.data.id;
2322
- * });
2323
- *
2324
- * spotterEmbed.trigger(HostEvent.GetTML, {
2319
+ * // You can use the Data event dispatched on each answer creation to get the vizId and use in GetTML host event.
2320
+ * let latestSpotterVizId = '';
2321
+ * spotterEmbed.on(EmbedEvent.Data, (payload) => {
2322
+ * latestSpotterVizId = payload.data.id;
2323
+ * });
2324
+ *
2325
+ * spotterEmbed.trigger(HostEvent.GetTML, {
2325
2326
  * vizId: latestSpotterVizId
2326
2327
  * }).then((tml) => {
2327
2328
  * console.log(
2328
2329
  * tml.answer.search_query // TML representation of the search query
2329
2330
  * );
2330
2331
  * })
2331
- * ```
2332
+ * ```
2332
2333
  * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1.sw
2333
2334
  * @important
2334
2335
  */
@@ -2392,6 +2393,11 @@ export var HostEvent;
2392
2393
  /**
2393
2394
  * Trigger the **Download** action on charts in
2394
2395
  * the embedded view.
2396
+ * Use {@link HostEvent.DownloadAsPng} instead.
2397
+ *
2398
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
2399
+ *
2400
+ * @deprecated from SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl ,9.4.1.sw
2395
2401
  * @param - `vizId` refers to the Visualization ID in Spotter embed and is required in Spotter embed.
2396
2402
  * @example
2397
2403
  * ```js
@@ -2410,9 +2416,6 @@ export var HostEvent;
2410
2416
  *
2411
2417
  * spotterEmbed.trigger(HostEvent.Download, { vizId: latestSpotterVizId });
2412
2418
  * ```
2413
- * @deprecated from SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl ,9.4.1.sw
2414
- * Use {@link DownloadAsPng}
2415
- * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
2416
2419
  */
2417
2420
  HostEvent["Download"] = "downloadAsPng";
2418
2421
  /**
@@ -2850,8 +2853,8 @@ export var HostEvent;
2850
2853
  * liveboardEmbed.trigger(HostEvent.GetParameters).then((parameter) => {
2851
2854
  * console.log('parameters', parameter);
2852
2855
  * });
2853
- *```
2854
- *```js
2856
+ * ```
2857
+ * ```js
2855
2858
  * // You can use the Data event dispatched on each answer creation to get the vizId and use in GetParameters host event.
2856
2859
  * let latestSpotterVizId = '';
2857
2860
  * spotterEmbed.on(EmbedEvent.Data, (payload) => {
@@ -2859,7 +2862,7 @@ export var HostEvent;
2859
2862
  * });
2860
2863
  *
2861
2864
  * spotterEmbed.trigger(HostEvent.GetParameters, { vizId: latestSpotterVizId });
2862
- *```
2865
+ * ```
2863
2866
  * @version SDK: 1.29.0 | ThoughtSpot: 10.1.0.cl, 10.1.0.sw
2864
2867
  */
2865
2868
  HostEvent["GetParameters"] = "GetParameters";
@@ -2876,7 +2879,7 @@ export var HostEvent;
2876
2879
  * Notify when info call is completed successfully
2877
2880
  * ```js
2878
2881
  * liveboardEmbed.trigger(HostEvent.InfoSuccess, data);
2879
- *```
2882
+ * ```
2880
2883
  * @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
2881
2884
  */
2882
2885
  HostEvent["InfoSuccess"] = "InfoSuccess";
@@ -2979,7 +2982,7 @@ export var HostEvent;
2979
2982
  * ```js
2980
2983
  * spotterEmbed.trigger(HostEvent.AddToCoaching, { vizId: '730496d6-6903-4601-937e-2c691821af3c' });
2981
2984
  *
2982
- *```
2985
+ * ```
2983
2986
  * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
2984
2987
  */
2985
2988
  HostEvent["AddToCoaching"] = "addToCoaching";
@@ -3021,7 +3024,7 @@ export var HostEvent;
3021
3024
  * });
3022
3025
  *
3023
3026
  * spotterEmbed.trigger(HostEvent.AnswerChartSwitcher, { vizId: latestSpotterVizId });
3024
- *```
3027
+ * ```
3025
3028
  * @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
3026
3029
  */
3027
3030
  HostEvent["AnswerChartSwitcher"] = "answerChartSwitcher";
@@ -3031,7 +3034,7 @@ export var HostEvent;
3031
3034
  * This is automatically triggered by the SDK when fullscreen mode is exited.
3032
3035
  * ```js
3033
3036
  * liveboardEmbed.trigger(HostEvent.ExitPresentMode);
3034
- *```
3037
+ * ```
3035
3038
  * @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
3036
3039
  */
3037
3040
  HostEvent["ExitPresentMode"] = "exitPresentMode";
@@ -3181,6 +3184,7 @@ export var Param;
3181
3184
  // 'both' clicks in `contextMenuTrigger` configuration.
3182
3185
  Param["ContextMenuTrigger"] = "contextMenuEnabledOnWhichClick";
3183
3186
  Param["LinkOverride"] = "linkOverride";
3187
+ Param["EnableLinkOverridesV2"] = "enableLinkOverridesV2";
3184
3188
  Param["blockNonEmbedFullAppAccess"] = "blockNonEmbedFullAppAccess";
3185
3189
  Param["ShowInsertToSlide"] = "insertInToSlide";
3186
3190
  Param["PrimaryNavHidden"] = "primaryNavHidden";
@@ -3275,6 +3279,7 @@ export var Param;
3275
3279
  Param["IsThisPeriodInDateFiltersEnabled"] = "isThisPeriodInDateFiltersEnabled";
3276
3280
  Param["HideToolResponseCardBranding"] = "hideToolResponseCardBranding";
3277
3281
  Param["ToolResponseCardBrandingLabel"] = "toolResponseCardBrandingLabel";
3282
+ Param["EnableHomepageAnnouncement"] = "enableHomepageAnnouncement";
3278
3283
  })(Param || (Param = {}));
3279
3284
  /**
3280
3285
  * ThoughtSpot application pages include actions and menu commands
@@ -3434,14 +3439,14 @@ export var Action;
3434
3439
  * ```js
3435
3440
  * disabledActions: [Action.CollapseDataPanel]
3436
3441
  * ```
3437
- * @version: SDK: 1.1.0 | ThoughtSpot Cloud: ts7.may.cl, 8.4.1.sw
3442
+ * @version SDK: 1.1.0 | ThoughtSpot Cloud: ts7.may.cl, 8.4.1.sw
3438
3443
  */
3439
3444
  Action["CollapseDataSources"] = "collapseDataSources";
3440
3445
  /**
3441
3446
  * The **Collapse data panel** icon on the Search page.
3442
3447
  * Collapses the data panel view.
3443
3448
  *
3444
- * @version: SDK: 1.34.0 | ThoughtSpot Cloud: 10.3.0.cl
3449
+ * @version SDK: 1.34.0 | ThoughtSpot Cloud: 10.3.0.cl
3445
3450
  *
3446
3451
  * @example
3447
3452
  * ```js
@@ -3888,13 +3893,12 @@ export var Action;
3888
3893
  */
3889
3894
  Action["CreateMonitor"] = "createMonitor";
3890
3895
  /**
3891
- * @deprecated
3892
- * Reports errors
3896
+ * @version SDK: 1.11.1 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
3897
+ * @deprecated This action is deprecated. It was used for reporting errors.
3893
3898
  * @example
3894
3899
  * ```js
3895
3900
  * disabledActions: [Action.ReportError]
3896
3901
  * ```
3897
- * @version SDK: 1.11.1 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
3898
3902
  */
3899
3903
  Action["ReportError"] = "reportError";
3900
3904
  /**
@@ -3904,7 +3908,7 @@ export var Action;
3904
3908
  * ```js
3905
3909
  * disabledActions: [Action.SyncToSheets]
3906
3910
  * ```
3907
- * @version SDK: 1.18.0| ThoughtSpot: 8.10.0.cl, 9.0.1.sw
3911
+ * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1.sw
3908
3912
  */
3909
3913
  Action["SyncToSheets"] = "sync-to-sheets";
3910
3914
  /**
@@ -3915,7 +3919,7 @@ export var Action;
3915
3919
  * ```js
3916
3920
  * disabledActions: [Action.SyncToOtherApps]
3917
3921
  * ```
3918
- * @version SDK: 1.18.0| ThoughtSpot: 8.10.0.cl, 9.0.1.sw
3922
+ * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1.sw
3919
3923
  */
3920
3924
  Action["SyncToOtherApps"] = "sync-to-other-apps";
3921
3925
  /**
@@ -3925,7 +3929,7 @@ export var Action;
3925
3929
  * ```js
3926
3930
  * disabledActions: [Action.ManagePipelines]
3927
3931
  * ```
3928
- * @version SDK: 1.18.0| ThoughtSpot: 8.10.0.cl, 9.0.1.sw
3932
+ * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1.sw
3929
3933
  */
3930
3934
  Action["ManagePipelines"] = "manage-pipeline";
3931
3935
  /**
@@ -4237,7 +4241,7 @@ export var Action;
4237
4241
  * ```js
4238
4242
  * disabledActions: [Action.PersonalisedViewsDropdown]
4239
4243
  * ```
4240
- * @version SDK : 1.26.0 | ThoughtSpot: 9.7.0.cl, 10.1.0.sw
4244
+ * @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 10.1.0.sw
4241
4245
  */
4242
4246
  Action["PersonalisedViewsDropdown"] = "personalisedViewsDropdown";
4243
4247
  /**
@@ -4247,7 +4251,7 @@ export var Action;
4247
4251
  * ```js
4248
4252
  * disabledActions: [Action.LiveboardUsers]
4249
4253
  * ```
4250
- * @version SDK : 1.26.0 | ThoughtSpot: 9.7.0.cl, 10.1.0.sw
4254
+ * @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl, 10.1.0.sw
4251
4255
  */
4252
4256
  Action["LiveboardUsers"] = "liveboardUsers";
4253
4257
  /**
@@ -4265,7 +4269,7 @@ export var Action;
4265
4269
  * hiddenAction: [Action.TML] // hide all TML actions
4266
4270
  * disabledActions: [Action.TML] // to disable all TML actions
4267
4271
  * ```
4268
- * @version SDK : 1.28.3 | ThoughtSpot: 9.12.0.cl, 10.1.0.sw
4272
+ * @version SDK: 1.28.3 | ThoughtSpot: 9.12.0.cl, 10.1.0.sw
4269
4273
  */
4270
4274
  Action["TML"] = "tml";
4271
4275
  /**
@@ -4311,7 +4315,7 @@ export var Action;
4311
4315
  * ```js
4312
4316
  * disabledActions: [Action.AddToWatchlist]
4313
4317
  * ```
4314
- * @version SDK : 1.27.9 | ThoughtSpot Cloud: 9.12.5.cl
4318
+ * @version SDK: 1.27.9 | ThoughtSpot Cloud: 9.12.5.cl
4315
4319
  */
4316
4320
  Action["AddToWatchlist"] = "addToWatchlist";
4317
4321
  /**
@@ -4321,7 +4325,7 @@ export var Action;
4321
4325
  * ```js
4322
4326
  * disabledActions: [Action.RemoveFromWatchlist]
4323
4327
  * ```
4324
- * @version SDK : 1.27.9 | ThoughtSpot: 9.12.5.cl
4328
+ * @version SDK: 1.27.9 | ThoughtSpot: 9.12.5.cl
4325
4329
  */
4326
4330
  Action["RemoveFromWatchlist"] = "removeFromWatchlist";
4327
4331
  /**
@@ -4332,7 +4336,7 @@ export var Action;
4332
4336
  * ```js
4333
4337
  * disabledActions: [Action.OrganiseFavourites]
4334
4338
  * ```
4335
- * @version SDK : 1.32.0 | ThoughtSpot: 10.0.0.cl
4339
+ * @version SDK: 1.32.0 | ThoughtSpot: 10.0.0.cl
4336
4340
  */
4337
4341
  Action["OrganiseFavourites"] = "organiseFavourites";
4338
4342
  /**
@@ -4393,7 +4397,7 @@ export var Action;
4393
4397
  * ```js
4394
4398
  * disabledActions: [Action.ManageTags]
4395
4399
  * ```
4396
- * @version SDK : 1.34.0 | ThoughtSpot Cloud: 10.3.0.cl
4400
+ * @version SDK: 1.34.0 | ThoughtSpot Cloud: 10.3.0.cl
4397
4401
  */
4398
4402
  Action["ManageTags"] = "manageTags";
4399
4403
  /**
@@ -4826,18 +4830,80 @@ export var ContextMenuTriggerOptions;
4826
4830
  */
4827
4831
  export var CustomActionsPosition;
4828
4832
  (function (CustomActionsPosition) {
4833
+ /**
4834
+ * Shows the action as a primary button
4835
+ * in the toolbar area of the embed.
4836
+ */
4829
4837
  CustomActionsPosition["PRIMARY"] = "PRIMARY";
4838
+ /**
4839
+ * Shows the action inside the "More" menu
4840
+ * (three-dot overflow menu).
4841
+ */
4830
4842
  CustomActionsPosition["MENU"] = "MENU";
4843
+ /**
4844
+ * Shows the action in the right-click
4845
+ * context menu. Only supported for
4846
+ * {@link CustomActionTarget.VIZ},
4847
+ * {@link CustomActionTarget.ANSWER}, and
4848
+ * {@link CustomActionTarget.SPOTTER} targets.
4849
+ */
4831
4850
  CustomActionsPosition["CONTEXTMENU"] = "CONTEXTMENU";
4832
4851
  })(CustomActionsPosition || (CustomActionsPosition = {}));
4833
4852
  /**
4834
- * Enum options to mention the target of the custom action.
4853
+ * Enum options to mention the target of the code-based custom action.
4854
+ * The target determines which type of ThoughtSpot object the action is
4855
+ * associated with, and also controls which positions and scoping options
4856
+ * are available.
4835
4857
  */
4836
4858
  export var CustomActionTarget;
4837
4859
  (function (CustomActionTarget) {
4860
+ /**
4861
+ * Action applies at the Liveboard level.
4862
+ * Supported positions:
4863
+ * {@link CustomActionsPosition.PRIMARY},
4864
+ * {@link CustomActionsPosition.MENU}.
4865
+ * Can be scoped with
4866
+ * `metadataIds.liveboardIds`,
4867
+ * `orgIds`, and `groupIds`.
4868
+ */
4838
4869
  CustomActionTarget["LIVEBOARD"] = "LIVEBOARD";
4870
+ /**
4871
+ * Action applies to individual
4872
+ * visualizations (charts/tables).
4873
+ * Supported positions:
4874
+ * {@link CustomActionsPosition.PRIMARY},
4875
+ * {@link CustomActionsPosition.MENU},
4876
+ * {@link CustomActionsPosition.CONTEXTMENU}.
4877
+ * Can be scoped with `metadataIds`
4878
+ * (answerIds, liveboardIds, vizIds),
4879
+ * `dataModelIds` (modelIds,
4880
+ * modelColumnNames), `orgIds`,
4881
+ * and `groupIds`.
4882
+ */
4839
4883
  CustomActionTarget["VIZ"] = "VIZ";
4884
+ /**
4885
+ * Action applies to saved or unsaved
4886
+ * Answers. Supported positions:
4887
+ * {@link CustomActionsPosition.PRIMARY},
4888
+ * {@link CustomActionsPosition.MENU},
4889
+ * {@link CustomActionsPosition.CONTEXTMENU}.
4890
+ * Can be scoped with
4891
+ * `metadataIds.answerIds`,
4892
+ * `dataModelIds` (modelIds,
4893
+ * modelColumnNames), `orgIds`,
4894
+ * and `groupIds`.
4895
+ */
4840
4896
  CustomActionTarget["ANSWER"] = "ANSWER";
4897
+ /**
4898
+ * Action applies to Spotter
4899
+ * (AI-powered search).
4900
+ * Supported positions:
4901
+ * {@link CustomActionsPosition.MENU},
4902
+ * {@link CustomActionsPosition.CONTEXTMENU}.
4903
+ * Can be scoped with
4904
+ * `dataModelIds.modelIds`,
4905
+ * `orgIds`, and `groupIds`.
4906
+ */
4841
4907
  CustomActionTarget["SPOTTER"] = "SPOTTER";
4842
4908
  })(CustomActionTarget || (CustomActionTarget = {}));
4843
4909
  /**