@thoughtspot/visual-embed-sdk 1.20.0-alpha.2 → 1.20.0-prerender.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (184) hide show
  1. package/dist/src/auth.d.ts +75 -5
  2. package/dist/src/auth.d.ts.map +1 -1
  3. package/dist/src/config.d.ts +1 -0
  4. package/dist/src/config.d.ts.map +1 -1
  5. package/dist/src/embed/app.d.ts +19 -7
  6. package/dist/src/embed/app.d.ts.map +1 -1
  7. package/dist/src/embed/base.d.ts +39 -19
  8. package/dist/src/embed/base.d.ts.map +1 -1
  9. package/dist/src/embed/liveboard.d.ts +19 -7
  10. package/dist/src/embed/liveboard.d.ts.map +1 -1
  11. package/dist/src/embed/search-bar.d.ts +7 -1
  12. package/dist/src/embed/search-bar.d.ts.map +1 -1
  13. package/dist/src/embed/search.d.ts +11 -3
  14. package/dist/src/embed/search.d.ts.map +1 -1
  15. package/dist/src/embed/ts-embed.d.ts +76 -5
  16. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  17. package/dist/src/errors.d.ts.map +1 -1
  18. package/dist/src/index.d.ts +3 -3
  19. package/dist/src/index.d.ts.map +1 -1
  20. package/dist/src/mixpanel-service.d.ts +8 -0
  21. package/dist/src/mixpanel-service.d.ts.map +1 -1
  22. package/dist/src/react/index.d.ts.map +1 -1
  23. package/dist/src/react/util.d.ts +4 -0
  24. package/dist/src/react/util.d.ts.map +1 -1
  25. package/dist/src/test/test-utils.d.ts +11 -2
  26. package/dist/src/test/test-utils.d.ts.map +1 -1
  27. package/dist/src/types.d.ts +429 -97
  28. package/dist/src/types.d.ts.map +1 -1
  29. package/dist/src/utils/answerService.d.ts +7 -0
  30. package/dist/src/utils/answerService.d.ts.map +1 -1
  31. package/dist/src/utils/authService.d.ts +30 -0
  32. package/dist/src/utils/authService.d.ts.map +1 -1
  33. package/dist/src/utils/processData.d.ts +12 -0
  34. package/dist/src/utils/processData.d.ts.map +1 -1
  35. package/dist/src/utils/processTrigger.d.ts +7 -0
  36. package/dist/src/utils/processTrigger.d.ts.map +1 -1
  37. package/dist/src/utils.d.ts +12 -0
  38. package/dist/src/utils.d.ts.map +1 -1
  39. package/dist/tsembed.es.js +818 -285
  40. package/dist/tsembed.js +791 -284
  41. package/lib/package.json +4 -3
  42. package/lib/src/auth.d.ts +75 -5
  43. package/lib/src/auth.d.ts.map +1 -1
  44. package/lib/src/auth.js +86 -26
  45. package/lib/src/auth.js.map +1 -1
  46. package/lib/src/auth.spec.js +14 -5
  47. package/lib/src/auth.spec.js.map +1 -1
  48. package/lib/src/config.d.ts +1 -0
  49. package/lib/src/config.d.ts.map +1 -1
  50. package/lib/src/config.js +5 -3
  51. package/lib/src/config.js.map +1 -1
  52. package/lib/src/config.spec.js.map +1 -1
  53. package/lib/src/embed/app.d.ts +19 -7
  54. package/lib/src/embed/app.d.ts.map +1 -1
  55. package/lib/src/embed/app.js +26 -16
  56. package/lib/src/embed/app.js.map +1 -1
  57. package/lib/src/embed/app.spec.js +12 -12
  58. package/lib/src/embed/app.spec.js.map +1 -1
  59. package/lib/src/embed/base.d.ts +39 -19
  60. package/lib/src/embed/base.d.ts.map +1 -1
  61. package/lib/src/embed/base.js +49 -15
  62. package/lib/src/embed/base.js.map +1 -1
  63. package/lib/src/embed/base.spec.js +2 -2
  64. package/lib/src/embed/base.spec.js.map +1 -1
  65. package/lib/src/embed/embed.spec.js +1 -1
  66. package/lib/src/embed/embed.spec.js.map +1 -1
  67. package/lib/src/embed/liveboard.d.ts +19 -7
  68. package/lib/src/embed/liveboard.d.ts.map +1 -1
  69. package/lib/src/embed/liveboard.js +50 -38
  70. package/lib/src/embed/liveboard.js.map +1 -1
  71. package/lib/src/embed/liveboard.spec.js +37 -30
  72. package/lib/src/embed/liveboard.spec.js.map +1 -1
  73. package/lib/src/embed/pinboard.spec.js +14 -26
  74. package/lib/src/embed/pinboard.spec.js.map +1 -1
  75. package/lib/src/embed/search-bar.d.ts +7 -1
  76. package/lib/src/embed/search-bar.d.ts.map +1 -1
  77. package/lib/src/embed/search-bar.js +6 -7
  78. package/lib/src/embed/search-bar.js.map +1 -1
  79. package/lib/src/embed/search.d.ts +11 -3
  80. package/lib/src/embed/search.d.ts.map +1 -1
  81. package/lib/src/embed/search.js +19 -15
  82. package/lib/src/embed/search.js.map +1 -1
  83. package/lib/src/embed/search.spec.js +16 -19
  84. package/lib/src/embed/search.spec.js.map +1 -1
  85. package/lib/src/embed/searchEmbed-basic-auth.spec.js +4 -0
  86. package/lib/src/embed/searchEmbed-basic-auth.spec.js.map +1 -1
  87. package/lib/src/embed/ts-embed.d.ts +76 -5
  88. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  89. package/lib/src/embed/ts-embed.js +150 -72
  90. package/lib/src/embed/ts-embed.js.map +1 -1
  91. package/lib/src/embed/ts-embed.spec.js +23 -24
  92. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  93. package/lib/src/errors.d.ts.map +1 -1
  94. package/lib/src/errors.js.map +1 -1
  95. package/lib/src/index.d.ts +3 -3
  96. package/lib/src/index.d.ts.map +1 -1
  97. package/lib/src/index.js +3 -3
  98. package/lib/src/index.js.map +1 -1
  99. package/lib/src/mixpanel-service.d.ts +8 -0
  100. package/lib/src/mixpanel-service.d.ts.map +1 -1
  101. package/lib/src/mixpanel-service.js +13 -1
  102. package/lib/src/mixpanel-service.js.map +1 -1
  103. package/lib/src/mixpanel-service.spec.js.map +1 -1
  104. package/lib/src/react/index.d.ts.map +1 -1
  105. package/lib/src/react/index.js +4 -6
  106. package/lib/src/react/index.js.map +1 -1
  107. package/lib/src/react/index.spec.js +3 -6
  108. package/lib/src/react/index.spec.js.map +1 -1
  109. package/lib/src/react/util.d.ts +4 -0
  110. package/lib/src/react/util.d.ts.map +1 -1
  111. package/lib/src/react/util.js +4 -0
  112. package/lib/src/react/util.js.map +1 -1
  113. package/lib/src/test/test-utils.d.ts +11 -2
  114. package/lib/src/test/test-utils.d.ts.map +1 -1
  115. package/lib/src/test/test-utils.js +36 -25
  116. package/lib/src/test/test-utils.js.map +1 -1
  117. package/lib/src/types.d.ts +429 -97
  118. package/lib/src/types.d.ts.map +1 -1
  119. package/lib/src/types.js +310 -72
  120. package/lib/src/types.js.map +1 -1
  121. package/lib/src/utils/answerService.d.ts +7 -0
  122. package/lib/src/utils/answerService.d.ts.map +1 -1
  123. package/lib/src/utils/answerService.js +7 -0
  124. package/lib/src/utils/answerService.js.map +1 -1
  125. package/lib/src/utils/answerService.spec.js.map +1 -1
  126. package/lib/src/utils/authService.d.ts +30 -0
  127. package/lib/src/utils/authService.d.ts.map +1 -1
  128. package/lib/src/utils/authService.js +39 -2
  129. package/lib/src/utils/authService.js.map +1 -1
  130. package/lib/src/utils/authService.spec.js.map +1 -1
  131. package/lib/src/utils/processData.d.ts +12 -0
  132. package/lib/src/utils/processData.d.ts.map +1 -1
  133. package/lib/src/utils/processData.js +33 -5
  134. package/lib/src/utils/processData.js.map +1 -1
  135. package/lib/src/utils/processData.spec.js.map +1 -1
  136. package/lib/src/utils/processTrigger.d.ts +7 -0
  137. package/lib/src/utils/processTrigger.d.ts.map +1 -1
  138. package/lib/src/utils/processTrigger.js +17 -3
  139. package/lib/src/utils/processTrigger.js.map +1 -1
  140. package/lib/src/utils/processTrigger.spec.js.map +1 -1
  141. package/lib/src/utils.d.ts +12 -0
  142. package/lib/src/utils.d.ts.map +1 -1
  143. package/lib/src/utils.js +24 -19
  144. package/lib/src/utils.js.map +1 -1
  145. package/lib/src/utils.spec.js.map +1 -1
  146. package/lib/src/visual-embed-sdk.d.ts +664 -141
  147. package/package.json +4 -3
  148. package/src/auth.spec.ts +68 -150
  149. package/src/auth.ts +141 -101
  150. package/src/config.spec.ts +2 -4
  151. package/src/config.ts +5 -3
  152. package/src/embed/app.spec.ts +25 -14
  153. package/src/embed/app.ts +49 -37
  154. package/src/embed/base.spec.ts +6 -12
  155. package/src/embed/base.ts +74 -57
  156. package/src/embed/embed.spec.ts +5 -6
  157. package/src/embed/liveboard.spec.ts +56 -37
  158. package/src/embed/liveboard.ts +67 -65
  159. package/src/embed/pinboard.spec.ts +26 -29
  160. package/src/embed/search-bar.tsx +14 -9
  161. package/src/embed/search.spec.ts +31 -21
  162. package/src/embed/search.ts +28 -22
  163. package/src/embed/searchEmbed-basic-auth.spec.ts +22 -28
  164. package/src/embed/ts-embed.spec.ts +70 -148
  165. package/src/embed/ts-embed.ts +180 -157
  166. package/src/errors.ts +3 -6
  167. package/src/index.ts +23 -7
  168. package/src/mixpanel-service.spec.ts +1 -3
  169. package/src/mixpanel-service.ts +13 -1
  170. package/src/react/index.spec.tsx +11 -20
  171. package/src/react/index.tsx +40 -71
  172. package/src/react/util.ts +8 -4
  173. package/src/test/test-utils.ts +43 -39
  174. package/src/types.ts +427 -97
  175. package/src/utils/answerService.spec.ts +3 -5
  176. package/src/utils/answerService.ts +21 -17
  177. package/src/utils/authService.spec.ts +26 -41
  178. package/src/utils/authService.ts +47 -21
  179. package/src/utils/processData.spec.ts +26 -59
  180. package/src/utils/processData.ts +36 -14
  181. package/src/utils/processTrigger.spec.ts +1 -6
  182. package/src/utils/processTrigger.ts +18 -9
  183. package/src/utils.spec.ts +8 -12
  184. package/src/utils.ts +25 -26
@@ -9,26 +9,33 @@
9
9
  /**
10
10
  * The authentication mechanism for allowing access to the
11
11
  * the embedded app
12
+ *
13
+ * @group Authentication / Init
12
14
  */
13
15
  export declare enum AuthType {
14
16
  /**
15
- * No authentication on the SDK. Passthrough to the embedded App. Alias for `Passthrough`.
17
+ * No authentication on the SDK. Passthrough to the embedded App. Alias for
18
+ * `Passthrough`.
16
19
  */
17
20
  None = "None",
18
21
  /**
19
- * Passthrough SSO to the embedded App within the iframe. Requires least configuration, but may not
20
- * be supported by all IDPs. This will behave like `None` if SSO is not configured on ThoughtSpot.
22
+ * Passthrough SSO to the embedded App within the iframe. Requires least
23
+ * configuration, but may not be supported by all IDPs. This will behave like `None`
24
+ * if SSO is not configured on ThoughtSpot.
25
+ *
21
26
  * @version: SDK: 1.15.0 | ThouhgtSpot: 8.8.0.cl
22
27
  */
23
28
  EmbeddedSSO = "EmbeddedSSO",
24
29
  /**
25
30
  * SSO using SAML
31
+ *
26
32
  * @deprecated Use {@link SAMLRedirect} instead
27
33
  * @hidden
28
34
  */
29
35
  SSO = "SSO_SAML",
30
36
  /**
31
37
  * SSO using SAML
38
+ *
32
39
  * @deprecated Use {@link SAMLRedirect} instead
33
40
  * @hidden
34
41
  */
@@ -36,10 +43,21 @@ export declare enum AuthType {
36
43
  /**
37
44
  * SSO using SAML
38
45
  * Will make the host application redirect to the SAML Idp.
46
+ *
47
+ * @example
48
+ * ```js
49
+ * init({
50
+ * // ...
51
+ * authType: AuthType.SAMLRedirect,
52
+ * authTriggerText: 'Login with SAML',
53
+ * authTriggerContainer: '#embed-container',
54
+ * });
55
+ * ```
39
56
  */
40
57
  SAMLRedirect = "SSO_SAML",
41
58
  /**
42
59
  * SSO using OIDC
60
+ *
43
61
  * @hidden
44
62
  * @deprecated Use {@link OIDCRedirect} instead
45
63
  */
@@ -51,21 +69,35 @@ export declare enum AuthType {
51
69
  OIDCRedirect = "SSO_OIDC",
52
70
  /**
53
71
  * Trusted authentication server
72
+ *
54
73
  * @hidden
55
74
  * @deprecated Use {@link TrustedAuth} instead
56
75
  */
57
76
  AuthServer = "AuthServer",
58
77
  /**
59
78
  * Trusted authentication server, Use your own authentication server
60
- * which returns a bearer token, generated using the secret_key obtained from
61
- * ThoughtSpot.
79
+ * which returns a bearer token, generated using the secret_key obtained
80
+ * from ThoughtSpot.
81
+ *
82
+ * @example
83
+ * ```js
84
+ * init({
85
+ * // ...
86
+ * authType: AuthType.TrustedAuthToken,
87
+ * getAuthToken: () => {
88
+ * return fetch('https://my-backend.app/ts-token')
89
+ * .then((response) => response.json())
90
+ * .then((data) => data.token);
91
+ * }
92
+ * ```
62
93
  */
63
94
  TrustedAuthToken = "AuthServer",
64
95
  /**
65
- * Trusted authentication server Cookieless, Use you own authentication server
66
- * which returns a bearer token, generated using the secret_key obtained from
67
- * ThoughtSpot. This uses a cookieless authentication approach, recommended
68
- * to by pass third-party cookie-blocking restriction implemented by some browsers
96
+ * Trusted authentication server Cookieless, Use you own authentication
97
+ * server which returns a bearer token, generated using the secret_key
98
+ * obtained from ThoughtSpot. This uses a cookieless authentication
99
+ * approach, recommended to by pass third-party cookie-blocking restriction
100
+ * implemented by some browsers
69
101
  */
70
102
  TrustedAuthTokenCookieless = "AuthServerCookieless",
71
103
  /**
@@ -77,7 +109,10 @@ export declare enum AuthType {
77
109
  Basic = "Basic"
78
110
  }
79
111
  export type DOMSelector = string | HTMLElement;
80
- interface customCssInterface {
112
+ /**
113
+ * inline customCSS within the {@link CustomisationsInterface}.
114
+ */
115
+ export interface customCssInterface {
81
116
  variables?: {
82
117
  [variableName: string]: string;
83
118
  };
@@ -87,10 +122,38 @@ interface customCssInterface {
87
122
  };
88
123
  };
89
124
  }
90
- interface CustomStyles {
125
+ /**
126
+ * Styles within the {@link CustomisationsInterface}.
127
+ */
128
+ export interface CustomStyles {
91
129
  customCSSUrl?: string;
92
130
  customCSS?: customCssInterface;
93
131
  }
132
+ /**
133
+ * Configuration to define the customization on the Embedded
134
+ * Thoughtspot components.
135
+ *
136
+ * @example
137
+ * ```js
138
+ * init({
139
+ * // ...
140
+ * customizations: {
141
+ * style: {
142
+ * customCSS: {
143
+ * variables: {},
144
+ * rules_UNSTABLE: {}
145
+ * }
146
+ * },
147
+ * content: {
148
+ * strings: {
149
+ * 'LIVEBOARDS': 'Dashboards'
150
+ * }
151
+ * },
152
+ * iconSpriteUrl: 'https://my-custom-icon-sprite.svg'
153
+ * }
154
+ * })
155
+ * ```
156
+ */
94
157
  export interface CustomisationsInterface {
95
158
  style?: CustomStyles;
96
159
  content?: {
@@ -104,6 +167,8 @@ export interface CustomisationsInterface {
104
167
  * It includes the ThoughtSpot hostname or IP address,
105
168
  * the type of authentication, and the authentication endpoint
106
169
  * if a trusted authentication server is used.
170
+ *
171
+ * @group Authentication / Init
107
172
  */
108
173
  export interface EmbedConfig {
109
174
  /**
@@ -135,8 +200,8 @@ export interface EmbedConfig {
135
200
  */
136
201
  getAuthToken?: () => Promise<string>;
137
202
  /**
138
- * [AuthServer / Basic] The user name of the ThoughtSpot user. This attribute is
139
- * required for trusted authentication.
203
+ * [AuthServer / Basic] The user name of the ThoughtSpot user. This
204
+ * attribute is required for trusted authentication.
140
205
  */
141
206
  username?: string;
142
207
  /**
@@ -147,16 +212,17 @@ export interface EmbedConfig {
147
212
  */
148
213
  password?: string;
149
214
  /**
150
- * [SSO] For SSO Authentication, if `noRedirect` is set to true, it will open the SAML auth
151
- * flow in a popup, instead of redirecting browser in place.
215
+ * [SSO] For SSO Authentication, if `noRedirect` is set to true, it will
216
+ * open the SAML auth flow in a popup, instead of redirecting browser in
217
+ * place.
152
218
  *
153
219
  * @default false
154
220
  * @deprecated
155
221
  */
156
222
  noRedirect?: boolean;
157
223
  /**
158
- * [SSO] For SSO Authentication, if `inPopup` is set to true, it will open the SAML auth
159
- * flow in a popup, instead of redirecting browser in place.
224
+ * [SSO] For SSO Authentication, if `inPopup` is set to true, it will open
225
+ * the SAML auth flow in a popup, instead of redirecting browser in place.
160
226
  *
161
227
  * @default false
162
228
  * @version SDK: 1.18.0
@@ -168,6 +234,7 @@ export interface EmbedConfig {
168
234
  * terminated.
169
235
  *
170
236
  * Eg: "/dashboard", "#/foo" [Do not include the host]
237
+ *
171
238
  * @version SDK: 1.10.2 | 8.2.0.cl, 8.4.1-sw
172
239
  */
173
240
  redirectPath?: string;
@@ -177,43 +244,52 @@ export interface EmbedConfig {
177
244
  * Should we encode URL Query Params using base64 encoding which thoughtspot
178
245
  * will generate for embedding. This provides additional security to
179
246
  * thoughtspot clusters against Cross site scripting attacks.
247
+ *
180
248
  * @default false
181
249
  */
182
250
  shouldEncodeUrlQueryParams?: boolean;
183
251
  /**
184
- * Suppress cookie access alert when third party cookies are blocked by the user's browser.
185
- * Third party cookie blocking is the default behaviour on Safari and opt-in for Firefox/Chrome.
186
- * If you set this to `true`, you are encouraged to handle `noCookieAccess` event, to show your own treatment
252
+ * Suppress cookie access alert when third party cookies are blocked by the
253
+ * user's browser. Third party cookie blocking is the default behaviour on
254
+ * Safari and opt-in for Firefox/Chrome. If you set this to `true`, you are
255
+ * encouraged to handle `noCookieAccess` event, to show your own treatment
187
256
  * in this case.
257
+ *
188
258
  * @default false
189
259
  */
190
260
  suppressNoCookieAccessAlert?: boolean;
191
261
  /**
192
262
  * Re-login when session expires with the previous login options
263
+ *
193
264
  * @default false
194
265
  */
195
266
  autoLogin?: boolean;
196
267
  /**
197
268
  * Disable redirection to the login page when the embedded session expires
198
- * This flag is typically used alongside the combination of auth modes such as {@link AuthType.AuthServer} and auto login behavior {@link EmbedConfig.autoLogin}
269
+ * This flag is typically used alongside the combination of auth modes such as {@link
270
+ * AuthType.AuthServer} and auto login behavior {@link EmbedConfig.autoLogin}
271
+ *
199
272
  * @version SDK: 1.9.3 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
200
273
  * @default false
201
274
  */
202
275
  disableLoginRedirect?: boolean;
203
276
  /**
204
277
  * This message is displayed on the embed view when the login fails.
278
+ *
205
279
  * @version SDK: 1.10.1 | ThoughtSpot: 8.2.0.cl, 8.4.1-sw
206
280
  */
207
281
  loginFailedMessage?: string;
208
282
  /**
209
283
  * Calls the prefetch method internally when set to true
284
+ *
210
285
  * @default false
211
286
  */
212
287
  callPrefetch?: boolean;
213
288
  /**
214
289
  * When there are multiple embeds, queue the render of embed to start
215
- * after the previous embed's render is complete. This helps in the load performance
216
- * by decreasing the load on the browser.
290
+ * after the previous embed's render is complete. This helps in the load
291
+ * performance by decreasing the load on the browser.
292
+ *
217
293
  * @Version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
218
294
  * @default false
219
295
  */
@@ -221,15 +297,19 @@ export interface EmbedConfig {
221
297
  /**
222
298
  * Dynamic CSS Url to be injected in the loaded application.
223
299
  * You would also need to set `style-src` in the CSP settings.
300
+ *
224
301
  * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1-sw
225
302
  * @default ''
226
303
  */
227
304
  customCssUrl?: string;
228
305
  /**
229
- * [AuthServer|Basic] Detect if 3rd party cookies are enabled by doing an additional call. This is slower
230
- * and should be avoided. Listen to the NO_COOKIE_ACCESS event to handle the situation.
306
+ * [AuthServer|Basic] Detect if 3rd party cookies are enabled by doing an
307
+ * additional call. This is slower and should be avoided. Listen to the
308
+ * NO_COOKIE_ACCESS event to handle the situation.
309
+ *
310
+ * This is slightly slower than letting the browser handle the cookie check, as it
311
+ * involves an extra network call.
231
312
  *
232
- * This is slightly slower than letting the browser handle the cookie check, as it involves an extra network call.
233
313
  * @version SDK: 1.10.4 | ThoughtSpot: 8.2.0.cl, 8.4.1-sw
234
314
  */
235
315
  detectCookieAccessSlow?: boolean;
@@ -256,6 +336,7 @@ export interface EmbedConfig {
256
336
  /**
257
337
  * Text to show in the button which triggers the popup auth flow.
258
338
  * Default: "Authorize".
339
+ *
259
340
  * @version SDK: 1.17.0 | ThoughtSpot: *
260
341
  */
261
342
  authTriggerText?: string;
@@ -264,6 +345,8 @@ export interface LayoutConfig {
264
345
  }
265
346
  /**
266
347
  * Embedded iFrame configuration
348
+ *
349
+ * @group Embed components
267
350
  */
268
351
  export interface FrameParams {
269
352
  /**
@@ -274,6 +357,12 @@ export interface FrameParams {
274
357
  * The height of the iFrame (unit is pixels if numeric).
275
358
  */
276
359
  height?: number | string;
360
+ /**
361
+ * Set to 'lazy' to enable lazy loading of the embedded TS frame.
362
+ * This will defer loading of the frame until it comes into the
363
+ * viewport. This is useful for performance optimization.
364
+ */
365
+ loading?: 'lazy' | 'eager' | 'auto';
277
366
  /**
278
367
  * This parameters will be passed on the iframe
279
368
  * as is.
@@ -289,7 +378,8 @@ export interface ViewConfig {
289
378
  */
290
379
  layoutConfig?: LayoutConfig;
291
380
  /**
292
- * The <b>width</b> and <b>height</b> dimensions to render an embedded object inside your app. Specify the values in pixels or percentage.
381
+ * The <b>width</b> and <b>height</b> dimensions to render an embedded
382
+ * object inside your app. Specify the values in pixels or percentage.
293
383
  */
294
384
  frameParams?: FrameParams;
295
385
  /**
@@ -317,11 +407,13 @@ export interface ViewConfig {
317
407
  /**
318
408
  * The list of actions to display from the primary menu, more menu
319
409
  * (...), and the contextual menu.
410
+ *
320
411
  * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1-sw
321
412
  */
322
413
  visibleActions?: Action[];
323
414
  /**
324
415
  * Show alert messages and toast messages in the embedded view.
416
+ *
325
417
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
326
418
  */
327
419
  showAlerts?: boolean;
@@ -332,6 +424,7 @@ export interface ViewConfig {
332
424
  runtimeFilters?: RuntimeFilter[];
333
425
  /**
334
426
  * The locale/language to use for the embedded view.
427
+ *
335
428
  * @version SDK: 1.9.4 | ThoughtSpot 8.1.0.cl, 8.4.1-sw
336
429
  */
337
430
  locale?: string;
@@ -342,6 +435,7 @@ export interface ViewConfig {
342
435
  * Warning: This option is for advanced use only and is used internally
343
436
  * to control embed behavior in non-regular ways. We do not publish the
344
437
  * list of supported keys and values associated with each.
438
+ *
345
439
  * @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
346
440
  */
347
441
  additionalFlags?: {
@@ -350,33 +444,47 @@ export interface ViewConfig {
350
444
  /**
351
445
  * Dynamic CSSUrl and customCSS to be injected in the loaded application.
352
446
  * You would also need to set `style-src` in the CSP settings.
447
+ *
353
448
  * @version SDK: 1.17.2 | ThoughtSpot: 8.4.1-sw, 8.4.0.cl
354
449
  * @default ''
355
450
  */
356
451
  customizations?: CustomisationsInterface;
357
452
  /**
358
- * Insert as a sibling of the target container, instead of appending to a child inside it.
453
+ * Insert as a sibling of the target container, instead of appending to a
454
+ * child inside it.
359
455
  */
360
456
  insertAsSibling?: boolean;
361
457
  /**
362
458
  * flag to set ContextMenu Trigger to either left or right click.
459
+ *
363
460
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
364
461
  */
365
462
  contextMenuTrigger?: ContextMenuTriggerOptions;
366
463
  /**
367
464
  * flag to override openNew tab context menu link
465
+ *
368
466
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
369
467
  */
370
468
  linkOverride?: boolean;
371
469
  /**
372
470
  * flag to enable insert into slides action
471
+ *
373
472
  * @hidden
374
473
  * @private
375
474
  */
376
475
  insertInToSlide?: boolean;
476
+ /**
477
+ * Use a pre-rendered iframe from a pool of pre-rendered iframes
478
+ * if available and matches the configuration.
479
+ *
480
+ * See [docs]() on how to create a prerender pool.
481
+ */
482
+ usePrerenderedIfAvailable?: boolean;
377
483
  }
378
484
  /**
379
485
  * MessagePayload: Embed event payload: message type, data and status (start/end)
486
+ *
487
+ * @group Events
380
488
  */
381
489
  export type MessagePayload = {
382
490
  type: string;
@@ -384,19 +492,37 @@ export type MessagePayload = {
384
492
  status?: string;
385
493
  };
386
494
  /**
387
- * MessageOptions: By Providing options, getting specific event start / end based on option
495
+ * MessageOptions: By Providing options, getting specific event start / end based on
496
+ * option
497
+ *
498
+ * @group Events
388
499
  */
389
500
  export type MessageOptions = {
501
+ /**
502
+ * A boolean value indicating that start status events of this type
503
+ * will be dispatched
504
+ */
390
505
  start?: boolean;
391
506
  };
392
507
  /**
393
508
  * MessageCallback: Embed event message callback
509
+ *
510
+ * @group Events
511
+ */
512
+ export type MessageCallback = (payload: MessagePayload,
513
+ /**
514
+ * responder: Message callback function triggered when embed event
515
+ * initiated
394
516
  */
395
- export type MessageCallback = (payload: MessagePayload, responder?: (data: any) => void) => void;
517
+ responder?: (data: any) => void) => void;
396
518
  /**
397
519
  * MessageCallbackObj: contains message options & callback function
398
520
  */
399
521
  export type MessageCallbackObj = {
522
+ /**
523
+ * options: It contains start, A boolean value indicating that start
524
+ * status events of this type will be dispatched
525
+ */
400
526
  options: MessageOptions;
401
527
  callback: MessageCallback;
402
528
  };
@@ -480,36 +606,47 @@ export interface RuntimeFilter {
480
606
  operator: RuntimeFilterOp;
481
607
  /**
482
608
  * The list of operands. Some operators like EQ, LE accept
483
- * a single operand, whereas other operators like BW and IN accept multiple operands.
609
+ * a single operand, whereas other operators like BW and IN accept multiple
610
+ * operands.
484
611
  */
485
612
  values: (number | boolean | string)[];
486
613
  }
487
614
  /**
488
615
  * Event types emitted by the embedded ThoughtSpot application.
616
+ *
617
+ * To add an event listener use the corresponding
618
+ * {@link LiveboardEmbed.on} or {@link AppEmbed.on} or {@link SearchEmbed.on} method.
619
+ *
620
+ * @group Events
489
621
  */
490
622
  export declare enum EmbedEvent {
491
623
  /**
492
624
  * Rendering has initialized.
493
- * @return timestamp - The timestamp when the event was generated.
625
+ *
626
+ * @returns timestamp - The timestamp when the event was generated.
494
627
  */
495
628
  Init = "init",
496
629
  /**
497
630
  * Authentication has either succeeded or failed.
498
- * @return isLoggedIn - A Boolean specifying whether authentication was successful.
631
+ *
632
+ * @returns isLoggedIn - A Boolean specifying whether authentication was successful.
499
633
  */
500
634
  AuthInit = "authInit",
501
635
  /**
502
636
  * The embed object container has loaded.
503
- * @return timestamp - The timestamp when the event was generated.
637
+ *
638
+ * @returns timestamp - The timestamp when the event was generated.
504
639
  */
505
640
  Load = "load",
506
641
  /**
507
642
  * Data pertaining to answer or Liveboard is received
508
- * @return data - The answer or Liveboard data
643
+ *
644
+ * @returns data - The answer or Liveboard data
509
645
  */
510
646
  Data = "data",
511
647
  /**
512
648
  * Search/answer/Liveboard filters have been applied/updated
649
+ *
513
650
  * @hidden
514
651
  */
515
652
  FiltersChanged = "filtersChanged",
@@ -519,48 +656,56 @@ export declare enum EmbedEvent {
519
656
  QueryChanged = "queryChanged",
520
657
  /**
521
658
  * A drill down operation has been performed.
522
- * @return additionalFilters - Any additional filters applied
523
- * @return drillDownColumns - The columns on which drill down was performed
524
- * @return nonFilteredColumns - The columns that were not filtered
659
+ *
660
+ * @returns additionalFilters - Any additional filters applied
661
+ * @returns drillDownColumns - The columns on which drill down was performed
662
+ * @returns nonFilteredColumns - The columns that were not filtered
525
663
  */
526
664
  Drilldown = "drillDown",
527
665
  /**
528
666
  * One or more data sources have been selected.
529
- * @return dataSourceIds - the list of data sources
667
+ *
668
+ * @returns dataSourceIds - the list of data sources
530
669
  */
531
670
  DataSourceSelected = "dataSourceSelected",
532
671
  /**
533
672
  * One or more data columns have been selected.
534
- * @return columnIds - the list of columns
673
+ *
674
+ * @returns columnIds - the list of columns
535
675
  * @version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1-sw
536
676
  */
537
677
  AddRemoveColumns = "addRemoveColumns",
538
678
  /**
539
679
  * A custom action has been triggered
540
- * @return actionId - The id of the custom action
541
- * @return data - The answer or Liveboard data
680
+ *
681
+ * @returns actionId - The id of the custom action
682
+ * @returns data - The answer or Liveboard data
542
683
  */
543
684
  CustomAction = "customAction",
544
685
  /**
545
686
  * A double click has been triggered on table/chart
546
- * @return ContextMenuInputPoints - data point that is double clicked
687
+ *
688
+ * @returns ContextMenuInputPoints - data point that is double clicked
547
689
  * @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
548
690
  */
549
691
  VizPointDoubleClick = "vizPointDoubleClick",
550
692
  /**
551
693
  * A click has been triggered on table/chart
552
- * @return ContextMenuInputPoints - data point that is clicked
694
+ *
695
+ * @returns ContextMenuInputPoints - data point that is clicked
553
696
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
554
697
  */
555
698
  VizPointClick = "vizPointClick",
556
699
  /**
557
700
  * An error has occurred.
558
- * @return error - An error object or message
701
+ *
702
+ * @returns error - An error object or message
559
703
  */
560
704
  Error = "Error",
561
705
  /**
562
706
  * The embedded object has sent an alert
563
- * @return alert - An alert object
707
+ *
708
+ * @returns alert - An alert object
564
709
  */
565
710
  Alert = "alert",
566
711
  /**
@@ -569,29 +714,34 @@ export declare enum EmbedEvent {
569
714
  AuthExpire = "ThoughtspotAuthExpired",
570
715
  /**
571
716
  * ThoughtSpot failed to validate the auth session.
717
+ *
572
718
  * @hidden
573
719
  */
574
720
  AuthFailure = "ThoughtspotAuthFailure",
575
721
  /**
576
722
  * ThoughtSpot failed to validate the auth session.
723
+ *
577
724
  * @hidden
578
725
  */
579
726
  AuthLogout = "ThoughtspotAuthLogout",
580
727
  /**
581
728
  * The height of the embedded Liveboard or visualization has been computed.
582
- * @return data - The height of the embedded Liveboard or visualization
729
+ *
730
+ * @returns data - The height of the embedded Liveboard or visualization
583
731
  * @hidden
584
732
  */
585
733
  EmbedHeight = "EMBED_HEIGHT",
586
734
  /**
587
735
  * The center of visible iframe viewport is calculated.
588
- * @return data - The center of the visible Iframe viewport.
736
+ *
737
+ * @returns data - The center of the visible Iframe viewport.
589
738
  * @hidden
590
739
  */
591
740
  EmbedIframeCenter = "EmbedIframeCenter",
592
741
  /**
593
742
  * Emitted when the "Get Data" button in Search Bar embed
594
743
  * is clicked.
744
+ *
595
745
  * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.0-sw
596
746
  */
597
747
  GetDataClick = "getDataClick",
@@ -601,6 +751,7 @@ export declare enum EmbedEvent {
601
751
  RouteChange = "ROUTE_CHANGE",
602
752
  /**
603
753
  * The v1 event type for Data
754
+ *
604
755
  * @hidden
605
756
  */
606
757
  V1Data = "exportVizDataToParent",
@@ -613,17 +764,20 @@ export declare enum EmbedEvent {
613
764
  NoCookieAccess = "noCookieAccess",
614
765
  /**
615
766
  * Emitted when SAML is complete
767
+ *
616
768
  * @private
617
769
  * @hidden
618
770
  */
619
771
  SAMLComplete = "samlComplete",
620
772
  /**
621
773
  * Emitted when any modal is opened in the app
774
+ *
622
775
  * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1-sw
623
776
  */
624
777
  DialogOpen = "dialog-open",
625
778
  /**
626
779
  * Emitted when any modal is closed in the app
780
+ *
627
781
  * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1-sw
628
782
  */
629
783
  DialogClose = "dialog-close",
@@ -631,414 +785,569 @@ export declare enum EmbedEvent {
631
785
  * Emitted when the Liveboard shell loads.
632
786
  * You can use this event as a hook to trigger
633
787
  * other events on the rendered Liveboard.
788
+ *
634
789
  * @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
635
790
  */
636
791
  LiveboardRendered = "PinboardRendered",
637
792
  /**
638
793
  * This can be used to register an event listener which
639
794
  * is triggered on all events.
795
+ *
640
796
  * @Version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1-sw
641
797
  */
642
798
  ALL = "*",
643
799
  /**
644
800
  * Emitted when answer is saved in the app
801
+ *
645
802
  * @Version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
646
803
  */
647
804
  Save = "save",
648
805
  /**
649
806
  * Emitted when the download action is triggered on an answer
807
+ *
650
808
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
651
809
  */
652
810
  Download = "download",
653
811
  /**
654
812
  * Emitted when the Download as PDF action is triggered on an answer
813
+ *
655
814
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
656
815
  */
657
816
  DownloadAsPdf = "downloadAsPdf",
658
817
  /**
659
818
  * Emitted when the Download as CSV action is triggered on an answer
819
+ *
660
820
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
661
821
  */
662
822
  DownloadAsCsv = "downloadAsCsv",
663
823
  /**
664
824
  * Emitted when the Download as XLSX action is triggered on an answer
825
+ *
665
826
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
666
827
  */
667
828
  DownloadAsXlsx = "downloadAsXlsx",
668
829
  /**
669
830
  * Emitted when an answer is deleted in the app
831
+ *
670
832
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
671
833
  */
672
834
  AnswerDelete = "answerDelete",
673
835
  /**
674
836
  * Emitted when an answer is pinned to a Liveboard
837
+ *
675
838
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
676
839
  */
677
840
  Pin = "pin",
678
841
  /**
679
842
  * Emitted when SpotIQ analysis is triggered
843
+ *
680
844
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
681
845
  */
682
846
  SpotIQAnalyze = "spotIQAnalyze",
683
847
  /**
684
848
  * Emitted when a user shares an object with another user or group
849
+ *
685
850
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
686
851
  */
687
852
  Share = "share",
688
853
  /**
689
- * Emitted when a user clicks the Include action to include a specific value or data on a chart or table
854
+ * Emitted when a user clicks the Include action to include a specific value or data
855
+ * on a chart or table
856
+ *
690
857
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
691
858
  */
692
859
  DrillInclude = "context-menu-item-include",
693
860
  /**
694
- * Emitted when a user clicks the Exclude action to exclude a specific value or data on a chart or table
861
+ * Emitted when a user clicks the Exclude action to exclude a specific value or data
862
+ * on a chart or table
863
+ *
695
864
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
696
865
  */
697
866
  DrillExclude = "context-menu-item-exclude",
698
867
  /**
699
868
  * Emitted when copied column value on the app
869
+ *
700
870
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
701
871
  */
702
872
  CopyToClipboard = "context-menu-item-copy-to-clipboard",
703
873
  /**
704
874
  * Emitted when a user clicks the Update TML action
875
+ *
705
876
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
706
877
  */
707
878
  UpdateTML = "updateTSL",
708
879
  /**
709
880
  * Emitted when a user clicks the Edit TML action
881
+ *
710
882
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
711
883
  */
712
884
  EditTML = "editTSL",
713
885
  /**
714
886
  * Emitted when ExportTML trigger in answer on the app
887
+ *
715
888
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
716
889
  */
717
890
  ExportTML = "exportTSL",
718
891
  /**
719
892
  * Emitted when an answer is saved as a view
893
+ *
720
894
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
721
895
  */
722
896
  SaveAsView = "saveAsView",
723
897
  /**
724
898
  * Emitted when copy of existing answer on the app
899
+ *
725
900
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
726
901
  */
727
902
  CopyAEdit = "copyAEdit",
728
903
  /**
729
904
  * Emitted when a user clicks Show underlying data on an answe
905
+ *
730
906
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
731
907
  */
732
908
  ShowUnderlyingData = "showUnderlyingData",
733
909
  /**
734
910
  * Emitted when an answer is switched to a chart or table view
911
+ *
735
912
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
736
913
  */
737
914
  AnswerChartSwitcher = "answerChartSwitcher",
738
915
  /**
739
916
  * Internal event to communicate the initial settings back to the TS APP
917
+ *
740
918
  * @hidden
741
919
  */
742
920
  APP_INIT = "appInit",
743
921
  /**
744
922
  * Emitted when a user clicks Show Liveboard details on a Liveboard
923
+ *
745
924
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
746
925
  */
747
926
  LiveboardInfo = "pinboardInfo",
748
927
  /**
749
928
  * Emitted when a user clicks on the Favorite icon on a Liveboard
929
+ *
750
930
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
751
931
  */
752
932
  AddToFavorites = "addToFavorites",
753
933
  /**
754
934
  * Emitted when a user clicks Schedule on a Liveboard
935
+ *
755
936
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
756
937
  */
757
938
  Schedule = "subscription",
758
939
  /**
759
940
  * Emitted when a user clicks Edit on a Liveboard or visualization
941
+ *
760
942
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
761
943
  */
762
944
  Edit = "edit",
763
945
  /**
764
946
  * Emitted when a user clicks Make a copy on a Liveboard
947
+ *
765
948
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
766
949
  */
767
950
  MakeACopy = "makeACopy",
768
951
  /**
769
952
  * Emitted when a user clicks Present on a Liveboard or visualization
953
+ *
770
954
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
771
955
  */
772
956
  Present = "present",
773
957
  /**
774
958
  * Emitted when a user clicks Delete on a Liveboard
959
+ *
775
960
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
776
961
  */
777
962
  Delete = "delete",
778
963
  /**
779
964
  * Emitted when a user clicks Manage schedules on a Liveboard
965
+ *
780
966
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
781
967
  */
782
968
  SchedulesList = "schedule-list",
783
969
  /**
784
970
  * Emitted when a user clicks Cancel in edit mode on a Liveboard
971
+ *
785
972
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
786
973
  */
787
974
  Cancel = "cancel",
788
975
  /**
789
976
  * Emitted when a user clicks Explore on a visualization
977
+ *
790
978
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
791
979
  */
792
980
  Explore = "explore",
793
981
  /**
794
982
  * Emitted when a user clicks Copy link action on a visualization
983
+ *
795
984
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
796
985
  */
797
986
  CopyLink = "embedDocument",
798
987
  /**
799
988
  * Emitted when a user interacts with cross filters on a visualization or liveboard
989
+ *
800
990
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
801
991
  */
802
992
  CrossFilterChanged = "cross-filter-changed",
803
993
  /**
804
994
  * Emitted when a user right clicks on chart or table
995
+ *
805
996
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
806
997
  */
807
- VizPointRightClick = "vizPointRightClick"
998
+ VizPointRightClick = "vizPointRightClick",
999
+ /**
1000
+ * Emitted when a user clicks on Insert to slide on a visualization
1001
+ *
1002
+ * @hidden
1003
+ */
1004
+ InsertIntoSlide = "insertInToSlide"
808
1005
  }
809
1006
  /**
810
1007
  * Event types that can be triggered by the host application
811
1008
  * to the embedded ThoughtSpot app
812
1009
  *
813
1010
  * To trigger an event use the corresponding
814
- * {@link LiveboardEmbed.trigger} or {@link AppEmbed.trigger} or {@link SearchEmbed.trigger} method.
1011
+ * {@link LiveboardEmbed.trigger} or {@link AppEmbed.trigger} or {@link
1012
+ * SearchEmbed.trigger} method.
1013
+ *
1014
+ * @group Events
815
1015
  */
816
1016
  export declare enum HostEvent {
817
1017
  /**
818
1018
  * Trigger a search
1019
+ *
819
1020
  * @param - dataSourceIds - The data source GUID to Search on
820
1021
  * - Although an array, only a single source
821
1022
  * is supported at this time.
822
1023
  * @param - searchQuery - The search query
823
1024
  * @param - execute - execute the existing / updated query
824
1025
  * @example
1026
+ * ```js
825
1027
  * searchEmbed.trigger(HostEvent.Search, {
826
- * searchQuery: "[sales] by [item type],
827
- * "dataSourceIds: ["cd252e5c-b552-49a8-821d-3eadaa049cca"]
828
- * "execute": true
1028
+ * searchQuery: "[sales] by [item type],
1029
+ * dataSourceIds: ["cd252e5c-b552-49a8-821d-3eadaa049cca"]
1030
+ * execute: true
829
1031
  * })
1032
+ * ```
830
1033
  */
831
1034
  Search = "search",
832
1035
  /**
833
1036
  * Trigger a drill on certain points by certain column
1037
+ *
834
1038
  * @param - points - an object containing selectedPoints/clickedPoints
835
1039
  * eg. { selectedPoints: []}
836
1040
  * @param - columnGuid - a string guid of the column to drill by. This is optional,
837
- * if not provided it will auto drill by the configured column.
838
- * @example searchEmbed.trigger(HostEvent.DrillDown, {
839
- * points: clickedPointData,
840
- * autoDrillDown: true,
1041
+ * if not provided it will auto drill by the configured
1042
+ * column.
1043
+ * @example
1044
+ * ```js
1045
+ * searchEmbed.trigger(HostEvent.DrillDown, {
1046
+ * points: clickedPointData,
1047
+ * autoDrillDown: true,
841
1048
  * })
1049
+ * ```
842
1050
  * @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
843
1051
  */
844
1052
  DrillDown = "triggerDrillDown",
845
1053
  /**
846
1054
  * Apply filters
1055
+ *
847
1056
  * @hidden
848
1057
  */
849
1058
  Filter = "filter",
850
1059
  /**
851
1060
  * Reload the answer or visualization
1061
+ *
852
1062
  * @hidden
853
1063
  */
854
1064
  Reload = "reload",
855
1065
  /**
856
1066
  * Set the visible visualizations on a Liveboard.
1067
+ *
857
1068
  * @param - an array of ids of visualizations to show, the ids not passed
858
1069
  * will be hidden.
859
1070
  * @example
860
- * liveboardEmbed.trigger(HostEvent.SetVisibleVizs, ['730496d6-6903-4601-937e-2c691821af3c', 'd547ec54-2a37-4516-a222-2b06719af726'])
1071
+ * liveboardEmbed.trigger(HostEvent.SetVisibleVizs, [
1072
+ * '730496d6-6903-4601-937e-2c691821af3c',
1073
+ * 'd547ec54-2a37-4516-a222-2b06719af726'])
861
1074
  * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1-sw
862
1075
  */
863
1076
  SetVisibleVizs = "SetPinboardVisibleVizs",
864
1077
  /**
865
1078
  * Update the runtime filters. The runtime filters passed here are extended
866
1079
  * on to the existing runtime filters if they exist.
1080
+ *
867
1081
  * @param - {@link RuntimeFilter}[] an array of {@link RuntimeFilter} Types.
868
1082
  * @example
869
1083
  * liveboardEmbed.trigger(HostEvent.UpdateRuntimeFilters, [
870
1084
  * {columnName: "state",operator: RuntimeFilterOp.EQ,values: ["michigan"]},
871
- * {columnName: "item type",operator: RuntimeFilterOp.EQ,values: ["Jackets"]}
872
- * ])
1085
+ * {columnName: "item type",operator: RuntimeFilterOp.EQ,values:
1086
+ * ["Jackets"]} ])
873
1087
  * @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
874
1088
  */
875
1089
  UpdateRuntimeFilters = "UpdateRuntimeFilters",
876
1090
  /**
877
1091
  * Navigate to a specific page in App embed without any reload.
878
1092
  * This is the same as calling `appEmbed.navigateToPage(path, true)`
1093
+ *
879
1094
  * @param - path - the path to navigate to (can be a number[1/-1] to go forward/back)
880
- * @example appEmbed.navigateToPage(-1)
1095
+ * @example
1096
+ * ```js
1097
+ * appEmbed.navigateToPage(-1)
1098
+ * ```
881
1099
  * @version SDK: 1.12.0 | ThoughtSpot 8.4.0.cl, 8.4.1-sw
882
1100
  */
883
1101
  Navigate = "Navigate",
884
1102
  /**
885
1103
  * Opens the filter panel for a particular column.
886
1104
  * Works with Search embed.
887
- * @param - { columnId: string, name: string, type: INT64/CHAR/DATE, dataType: ATTRIBUTE/MEASURE }
888
- * @example searchEmbed.trigger(HostEvent.OpenFilter, { columnId: '123', name: 'column name', type: 'INT64', dataType: 'ATTRIBUTE' })
1105
+ *
1106
+ * @param - { columnId: string,
1107
+ * name: string,
1108
+ * type: INT64/CHAR/DATE,
1109
+ * dataType: ATTRIBUTE/MEASURE }
1110
+ * @example
1111
+ * ```js
1112
+ * searchEmbed.trigger(HostEvent.OpenFilter,
1113
+ * { columnId: '123', name: 'column name', type: 'INT64', dataType: 'ATTRIBUTE' })
1114
+ * ```
889
1115
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
890
1116
  */
891
1117
  OpenFilter = "openFilter",
892
1118
  /**
893
1119
  * Adds the columns to the current Search.
1120
+ *
894
1121
  * @param - { columnIds: string[] }
895
- * @example searchEmbed.trigger(HostEvent.AddColumns, { columnIds: ['123', '456'] })
1122
+ * @example
1123
+ * ```js
1124
+ * searchEmbed.trigger(HostEvent.AddColumns, { columnIds: ['123', '456'] })
1125
+ * ```
896
1126
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
897
1127
  */
898
1128
  AddColumns = "addColumns",
899
1129
  /**
900
1130
  * Removes a column from the current Search.
1131
+ *
901
1132
  * @param - { columnId: string }
902
- * @example - searchEmbed.trigger(HostEvent.RemoveColumn, { columnId: '123' })
1133
+ * @example
1134
+ * ```js
1135
+ * searchEmbed.trigger(HostEvent.RemoveColumn, { columnId: '123' })
1136
+ * ```
903
1137
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
904
1138
  */
905
1139
  RemoveColumn = "removeColumn",
906
1140
  /**
907
1141
  * Gets the current pinboard content.
908
- * @example liveboardEmbed.trigger(HostEvent.getExportRequestForCurrentPinboard)
1142
+ *
1143
+ * @example
1144
+ * ```js
1145
+ * liveboardEmbed.trigger(HostEvent.getExportRequestForCurrentPinboard)
1146
+ * ```
909
1147
  * @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1-sw
910
1148
  */
911
1149
  getExportRequestForCurrentPinboard = "getExportRequestForCurrentPinboard",
912
1150
  /**
913
1151
  * Triggers the Pin action on an embedded object
1152
+ *
914
1153
  * @param - incase of Liveboard embed, takes in an object with vizId as a key
915
1154
  * can be left empty for search and visualization embeds
916
1155
  * @example
1156
+ * ```js
917
1157
  * liveboardEmbed.trigger(HostEvent.Pin, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
918
1158
  * vizEmbed.trigger(HostEvent.Pin)
919
1159
  * searchEmbed.trigger(HostEvent.Pin)
1160
+ * ```
920
1161
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
921
1162
  */
922
1163
  Pin = "pin",
923
1164
  /**
924
1165
  * Triggers the Show Liveboard details action on a Liveboard
925
- * @example liveboardEmbed.trigger(HostEvent.LiveboardInfo)
1166
+ *
1167
+ * @example
1168
+ * ```js
1169
+ * liveboardEmbed.trigger(HostEvent.LiveboardInfo)
1170
+ * ```
926
1171
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
927
1172
  */
928
1173
  LiveboardInfo = "pinboardInfo",
929
1174
  /**
930
1175
  * Triggers the Schedule action on a Liveboard
931
- * @example liveboardEmbed.trigger(HostEvent.Schedule)
1176
+ *
1177
+ * @example
1178
+ * ```js
1179
+ * liveboardEmbed.trigger(HostEvent.Schedule)
1180
+ * ```
932
1181
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
933
1182
  */
934
1183
  Schedule = "subscription",
935
1184
  /**
936
1185
  * Triggers the Manage schedule action on a Liveboard
937
- * @example liveboardEmbed.trigger(HostEvent.ScheduleList)
1186
+ *
1187
+ * @example
1188
+ * ```js
1189
+ * liveboardEmbed.trigger(HostEvent.ScheduleList)
1190
+ * ```
938
1191
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
939
1192
  */
940
1193
  SchedulesList = "schedule-list",
941
1194
  /**
942
1195
  * Triggers the Export TML action on a Liveboard
943
- * @example liveboardEmbed.trigger(HostEvent.ExportTML)
1196
+ *
1197
+ * @example
1198
+ * ```js
1199
+ * liveboardEmbed.trigger(HostEvent.ExportTML)
1200
+ * ```
944
1201
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
945
1202
  */
946
1203
  ExportTML = "exportTSL",
947
1204
  /**
948
1205
  * Triggers the Edit TML action on a Liveboard
949
- * @example liveboardEmbed.trigger(HostEvent.EditTML)
1206
+ *
1207
+ * @example
1208
+ * ```js
1209
+ * liveboardEmbed.trigger(HostEvent.EditTML)
1210
+ * ```
950
1211
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
951
1212
  */
952
1213
  EditTML = "editTSL",
953
1214
  /**
954
1215
  * Triggers the Update TML action on a Liveboard
955
- * @example liveboardEmbed.trigger(HostEvent.UpdateTML)
1216
+ *
1217
+ * @example
1218
+ * ```js
1219
+ * liveboardEmbed.trigger(HostEvent.UpdateTML)
1220
+ * ```
956
1221
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
957
1222
  */
958
1223
  UpdateTML = "updateTSL",
959
1224
  /**
960
1225
  * Triggers the Download PDF action on a Liveboard
961
- * @example liveboardEmbed.trigger(HostEvent.DownloadAsPDF)
1226
+ *
1227
+ * @example
1228
+ * ```js
1229
+ * liveboardEmbed.trigger(HostEvent.DownloadAsPDF)
1230
+ * ```
962
1231
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
963
1232
  */
964
1233
  DownloadAsPdf = "downloadAsPdf",
965
1234
  /**
966
1235
  * Triggers the Make a copy action on a Liveboard, search or visualization
1236
+ *
967
1237
  * @example
1238
+ * ```js
968
1239
  * liveboardEmbed.trigger(HostEvent.MakeACopy, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
969
1240
  * vizEmbed.trigger(HostEvent.MakeACopy)
970
1241
  * searchEmbed.trigger(HostEvent.MakeACopy)
1242
+ * ```
971
1243
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
972
1244
  */
973
1245
  MakeACopy = "makeACopy",
974
1246
  /**
975
1247
  * Triggers the Delete action on a Liveboard
976
- * @example appEmbed.trigger(HostEvent.Remove)
1248
+ *
1249
+ * @example
1250
+ * ```js
1251
+ * appEmbed.trigger(HostEvent.Remove)
1252
+ * ```
977
1253
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
978
1254
  */
979
1255
  Remove = "delete",
980
1256
  /**
981
1257
  * Triggers the Explore action on a visualization
1258
+ *
982
1259
  * @param - an object with vizId as a key
983
- * @example liveboardEmbed.trigger(HostEvent.Explore, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1260
+ * @example
1261
+ * ```js
1262
+ * liveboardEmbed.trigger(HostEvent.Explore, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1263
+ * ```
984
1264
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
985
1265
  */
986
1266
  Explore = "explore",
987
1267
  /**
988
1268
  * Triggers the Create alert action on a visualization
1269
+ *
989
1270
  * @param - an object with vizId as a key
990
- * @example liveboardEmbed.trigger(HostEvent.CreateMonitor {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1271
+ * @example
1272
+ * ```js
1273
+ * liveboardEmbed.trigger(HostEvent.CreateMonitor {
1274
+ * vizId: '730496d6-6903-4601-937e-2c691821af3c'
1275
+ * })
1276
+ * ```
991
1277
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
992
1278
  */
993
1279
  CreateMonitor = "createMonitor",
994
1280
  /**
995
1281
  * Triggers the Manage alert action on a visualization
1282
+ *
996
1283
  * @param - an object with vizId as a key
997
- * @example liveboardEmbed.trigger(HostEvent.ManageMonitor, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1284
+ * @example
1285
+ * ```js
1286
+ * liveboardEmbed.trigger(HostEvent.ManageMonitor, {
1287
+ * vizId: '730496d6-6903-4601-937e-2c691821af3c'
1288
+ * })
1289
+ * ```
998
1290
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
999
1291
  */
1000
1292
  ManageMonitor = "manageMonitor",
1001
1293
  /**
1002
1294
  * Triggers the Edit action on a Liveboard or visualization
1003
- * @param - object - to trigger the action for a specfic visualization in Liveboard embed, pass in vizId as a key
1295
+ *
1296
+ * @param - object - to trigger the action for a specfic visualization
1297
+ * in Liveboard embed, pass in vizId as a key
1004
1298
  * @example
1005
1299
  * liveboardEmbed.trigger(HostEvent.Edit)
1006
- * liveboardEmbed.trigger(HostEvent.Edit, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1300
+ * liveboardEmbed.trigger(HostEvent.Edit, {vizId:
1301
+ * '730496d6-6903-4601-937e-2c691821af3c'})
1007
1302
  * vizEmbed.trigger((HostEvent.Edit)
1008
1303
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
1009
1304
  */
1010
1305
  Edit = "edit",
1011
1306
  /**
1012
1307
  * Triggers the Copy link action on a Liveboard or visualization
1013
- * @param - object - to trigger the action for a specfic visualization in Liveboard embed, pass in vizId as a key
1308
+ *
1309
+ * @param - object - to trigger the action for a s
1310
+ * pecfic visualization in Liveboard embed, pass in vizId as a key
1014
1311
  * @example
1312
+ * ```js
1015
1313
  * liveboardEmbed.trigger(HostEvent.CopyLink)
1016
1314
  * liveboardEmbed.trigger(HostEvent.CopyLink, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1017
1315
  * vizEmbed.trigger((HostEvent.CopyLink)
1316
+ * ```
1018
1317
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
1019
1318
  */
1020
1319
  CopyLink = "embedDocument",
1021
1320
  /**
1022
1321
  * Triggers the Present action on a Liveboard or visualization
1023
- * @param - object - to trigger the action for a specfic visualization in Liveboard embed, pass in vizId as a key
1322
+ *
1323
+ * @param - object - to trigger the action for a specfic visualization
1324
+ * in Liveboard embed, pass in vizId as a key
1024
1325
  * @example
1326
+ * ```js
1025
1327
  * liveboardEmbed.trigger(HostEvent.Present)
1026
1328
  * liveboardEmbed.trigger(HostEvent.Present, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1027
1329
  * vizEmbed.trigger((HostEvent.Present)
1330
+ * ```
1028
1331
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
1029
1332
  */
1030
1333
  Present = "present",
1031
1334
  /**
1032
1335
  * Get TML for the current search.
1033
- * @example searchEmbed.trigger(HostEvent.GetTML)
1336
+ *
1337
+ * @example
1338
+ * ```js
1339
+ * searchEmbed.trigger(HostEvent.GetTML)
1340
+ * ```
1034
1341
  * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl
1035
1342
  */
1036
1343
  GetTML = "getTML",
1037
1344
  /**
1038
1345
  * Triggers the ShowUnderlyingData action on visualization or search
1346
+ *
1039
1347
  * @param - an object with vizId as a key
1040
1348
  * @example
1041
- * liveboardEmbed.trigger(HostEvent.ShowUnderlyingData, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1349
+ * liveboardEmbed.trigger(HostEvent.ShowUnderlyingData, {vizId:
1350
+ * '730496d6-6903-4601-937e-2c691821af3c'})
1042
1351
  * vizEmbed.trigger(HostEvent.ShowUnderlyingData)
1043
1352
  * searchEmbed.trigger(HostEvent.ShowUnderlyingData)
1044
1353
  * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
@@ -1046,10 +1355,12 @@ export declare enum HostEvent {
1046
1355
  ShowUnderlyingData = "showUnderlyingData",
1047
1356
  /**
1048
1357
  * Triggers the Delete action on visualization or search
1358
+ *
1049
1359
  * @param - incase of Liveboard embed, takes in an object with vizId as a key
1050
1360
  * can be left empty for search and visualization embeds
1051
1361
  * @example
1052
- * liveboardEmbed.trigger(HostEvent.Delete, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1362
+ * liveboardEmbed.trigger(HostEvent.Delete, {vizId:
1363
+ * '730496d6-6903-4601-937e-2c691821af3c'})
1053
1364
  * vizEmbed.trigger(HostEvent.Delete)
1054
1365
  * searchEmbed.trigger(HostEvent.Delete)
1055
1366
  * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
@@ -1057,10 +1368,12 @@ export declare enum HostEvent {
1057
1368
  Delete = "delete",
1058
1369
  /**
1059
1370
  * Triggers the SpotIQAnalyze action on visualization or search
1371
+ *
1060
1372
  * @param - incase of Liveboard embed, takes in an object with vizId as a key
1061
1373
  * can be left empty for search and visualization embeds
1062
1374
  * @example
1063
- * liveboardEmbed.trigger(HostEvent.SpotIQAnalyze, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1375
+ * liveboardEmbed.trigger(HostEvent.SpotIQAnalyze, {vizId:
1376
+ * '730496d6-6903-4601-937e-2c691821af3c'})
1064
1377
  * vizEmbed.trigger(HostEvent.SpotIQAnalyze)
1065
1378
  * searchEmbed.trigger(HostEvent.SpotIQAnalyze)
1066
1379
  * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
@@ -1068,26 +1381,34 @@ export declare enum HostEvent {
1068
1381
  SpotIQAnalyze = "spotIQAnalyze",
1069
1382
  /**
1070
1383
  * Triggers the Download action on visualization or search when Displaymode is Chart
1384
+ *
1071
1385
  * @example
1072
- * liveboardEmbed.trigger(HostEvent.Download, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1386
+ * liveboardEmbed.trigger(HostEvent.Download, {vizId:
1387
+ * '730496d6-6903-4601-937e-2c691821af3c'})
1073
1388
  * vizEmbed.trigger(HostEvent.Download)
1074
1389
  * searchEmbed.trigger(HostEvent.Download)
1075
1390
  * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
1076
1391
  */
1077
1392
  Download = "download",
1078
1393
  /**
1079
- * Triggers the downloadAsCSV action on visualization or search when Displaymode is Table
1394
+ * Triggers the downloadAsCSV action on visualization or search when Displaymode is
1395
+ * Table
1396
+ *
1080
1397
  * @example
1081
- * liveboardEmbed.trigger(HostEvent.DownloadAsCsv, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1398
+ * liveboardEmbed.trigger(HostEvent.DownloadAsCsv, {vizId:
1399
+ * '730496d6-6903-4601-937e-2c691821af3c'})
1082
1400
  * vizEmbed.trigger(HostEvent.DownloadAsCsv)
1083
1401
  * searchEmbed.trigger(HostEvent.DownloadAsCsv)
1084
1402
  * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
1085
1403
  */
1086
1404
  DownloadAsCsv = "downloadAsCSV",
1087
1405
  /**
1088
- * Triggers the downloadAsXLSX action on visualization or search when Displaymode is Table
1406
+ * Triggers the downloadAsXLSX action on visualization or search when Displaymode is
1407
+ * Table
1408
+ *
1089
1409
  * @example
1090
- * liveboardEmbed.trigger(HostEvent.DownloadAsXlsx, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1410
+ * liveboardEmbed.trigger(HostEvent.DownloadAsXlsx, {vizId:
1411
+ * '730496d6-6903-4601-937e-2c691821af3c'})
1091
1412
  * vizEmbed.trigger(HostEvent.DownloadAsXlsx)
1092
1413
  * searchEmbed.trigger(HostEvent.DownloadAsXlsx)
1093
1414
  * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
@@ -1095,6 +1416,7 @@ export declare enum HostEvent {
1095
1416
  DownloadAsXlsx = "downloadAsXLSX",
1096
1417
  /**
1097
1418
  * Triggers the Share action on a liveboard or answer
1419
+ *
1098
1420
  * @example
1099
1421
  * liveboardEmbed.trigger(HostEvent.Share)
1100
1422
  * searchEmbed.trigger(HostEvent.Share)
@@ -1103,6 +1425,7 @@ export declare enum HostEvent {
1103
1425
  Share = "share",
1104
1426
  /**
1105
1427
  * Trigger the Save action on a liveboard or answer
1428
+ *
1106
1429
  * @example
1107
1430
  * liveboardEmbed.trigger(HostEvent.Save)
1108
1431
  * searchEmbed.trigger(HostEvent.Save)
@@ -1111,33 +1434,40 @@ export declare enum HostEvent {
1111
1434
  Save = "save",
1112
1435
  /**
1113
1436
  * Triggers the SyncToSheets action on visualization
1437
+ *
1114
1438
  * @param - an object with vizId as a key
1115
1439
  * @example
1116
- * liveboardEmbed.trigger(HostEvent.SyncToSheets, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1440
+ * liveboardEmbed.trigger(HostEvent.SyncToSheets, {vizId:
1441
+ * '730496d6-6903-4601-937e-2c691821af3c'})
1117
1442
  * vizEmbed.trigger(HostEvent.SyncToSheets)
1118
1443
  * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
1119
1444
  */
1120
1445
  SyncToSheets = "sync-to-sheets",
1121
1446
  /**
1122
1447
  * Triggers the SyncToOtherApps action on visualization
1448
+ *
1123
1449
  * @param - an object with vizId as a key
1124
1450
  * @example
1125
- * liveboardEmbed.trigger(HostEvent.SyncToOtherApps, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1451
+ * liveboardEmbed.trigger(HostEvent.SyncToOtherApps, {vizId:
1452
+ * '730496d6-6903-4601-937e-2c691821af3c'})
1126
1453
  * vizEmbed.trigger(HostEvent.SyncToOtherApps)
1127
1454
  * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
1128
1455
  */
1129
1456
  SyncToOtherApps = "sync-to-other-apps",
1130
1457
  /**
1131
1458
  * Triggers the ManagePipelines action on visualization
1459
+ *
1132
1460
  * @param - an object with vizId as a key
1133
1461
  * @example
1134
- * liveboardEmbed.trigger(HostEvent.ManagePipelines, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1462
+ * liveboardEmbed.trigger(HostEvent.ManagePipelines, {vizId:
1463
+ * '730496d6-6903-4601-937e-2c691821af3c'})
1135
1464
  * vizEmbed.trigger(HostEvent.ManagePipelines)
1136
1465
  * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
1137
1466
  */
1138
1467
  ManagePipelines = "manage-pipeline",
1139
1468
  /**
1140
1469
  * Triggers the Reset search in answer
1470
+ *
1141
1471
  * @example
1142
1472
  * searchEmbed.trigger(HostEvent.SearchReset
1143
1473
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.0.1-sw
@@ -1167,6 +1497,7 @@ export declare enum DataSourceVisualMode {
1167
1497
  * containing configuration and/or visual information.
1168
1498
  */
1169
1499
  export declare enum Param {
1500
+ EmbedApp = "embedApp",
1170
1501
  DataSources = "dataSources",
1171
1502
  DataSourceMode = "dataSourceMode",
1172
1503
  DisableActions = "disableAction",
@@ -1205,7 +1536,9 @@ export declare enum Param {
1205
1536
  cookieless = "cookieless",
1206
1537
  ContextMenuTrigger = "isContextMenuEnabledOnLeftClick",
1207
1538
  LinkOverride = "linkOverride",
1208
- ShowInsertToSlide = "insertInToSlide"
1539
+ ShowInsertToSlide = "insertInToSlide",
1540
+ PrimaryNavHidden = "primaryNavHidden",
1541
+ HideProfleAndHelp = "profileAndHelpInNavBarHidden"
1209
1542
  }
1210
1543
  /**
1211
1544
  * The list of actions that can be performed on visual ThoughtSpot
@@ -1439,5 +1772,4 @@ export declare enum ContextMenuTriggerOptions {
1439
1772
  LEFT_CLICK = "left-click",
1440
1773
  RIGHT_CLICK = "right-click"
1441
1774
  }
1442
- export {};
1443
1775
  //# sourceMappingURL=types.d.ts.map