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