@thoughtspot/visual-embed-sdk 1.29.1 → 1.30.0-alpha.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/cjs/package.json +1 -1
- package/cjs/src/auth.d.ts +15 -0
- package/cjs/src/auth.d.ts.map +1 -1
- package/cjs/src/auth.js +13 -2
- package/cjs/src/auth.js.map +1 -1
- package/cjs/src/authToken.d.ts +2 -1
- package/cjs/src/authToken.d.ts.map +1 -1
- package/cjs/src/authToken.js +2 -1
- package/cjs/src/authToken.js.map +1 -1
- package/cjs/src/config.d.ts +1 -0
- package/cjs/src/config.d.ts.map +1 -1
- package/cjs/src/config.js +2 -0
- package/cjs/src/config.js.map +1 -1
- package/cjs/src/embed/app.d.ts +50 -4
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +10 -2
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/base.d.ts +7 -1
- package/cjs/src/embed/base.d.ts.map +1 -1
- package/cjs/src/embed/base.js +13 -6
- package/cjs/src/embed/base.js.map +1 -1
- package/cjs/src/embed/base.spec.js +1 -1
- package/cjs/src/embed/base.spec.js.map +1 -1
- package/cjs/src/embed/embedConfig.d.ts +2 -0
- package/cjs/src/embed/embedConfig.d.ts.map +1 -1
- package/cjs/src/embed/embedConfig.js +2 -0
- package/cjs/src/embed/embedConfig.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts +30 -0
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +5 -0
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/sage.d.ts +18 -2
- package/cjs/src/embed/sage.d.ts.map +1 -1
- package/cjs/src/embed/sage.js +5 -0
- package/cjs/src/embed/sage.js.map +1 -1
- package/cjs/src/embed/search-bar.d.ts +11 -0
- package/cjs/src/embed/search-bar.d.ts.map +1 -1
- package/cjs/src/embed/search-bar.js +2 -0
- package/cjs/src/embed/search-bar.js.map +1 -1
- package/cjs/src/embed/search.d.ts +34 -5
- package/cjs/src/embed/search.d.ts.map +1 -1
- package/cjs/src/embed/search.js +7 -4
- package/cjs/src/embed/search.js.map +1 -1
- package/cjs/src/embed/search.spec.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts +31 -1
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +37 -6
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +9 -18
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/index.d.ts +1 -0
- package/cjs/src/index.d.ts.map +1 -1
- package/cjs/src/index.js +1 -0
- package/cjs/src/index.js.map +1 -1
- package/cjs/src/mixpanel-service.d.ts +1 -0
- package/cjs/src/mixpanel-service.d.ts.map +1 -1
- package/cjs/src/mixpanel-service.js +1 -0
- package/cjs/src/mixpanel-service.js.map +1 -1
- package/cjs/src/react/index.d.ts +12 -1
- package/cjs/src/react/index.d.ts.map +1 -1
- package/cjs/src/react/index.js +11 -1
- package/cjs/src/react/index.js.map +1 -1
- package/cjs/src/react/index.spec.js +2 -14
- package/cjs/src/react/index.spec.js.map +1 -1
- package/cjs/src/test/test-utils.d.ts +2 -0
- package/cjs/src/test/test-utils.d.ts.map +1 -1
- package/cjs/src/test/test-utils.js +2 -0
- package/cjs/src/test/test-utils.js.map +1 -1
- package/cjs/src/tokenizedFetch.d.ts +1 -0
- package/cjs/src/tokenizedFetch.d.ts.map +1 -1
- package/cjs/src/tokenizedFetch.js +1 -0
- package/cjs/src/tokenizedFetch.js.map +1 -1
- package/cjs/src/types.d.ts +372 -59
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +297 -51
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/authService/authService.d.ts +1 -0
- package/cjs/src/utils/authService/authService.d.ts.map +1 -1
- package/cjs/src/utils/authService/authService.js +1 -0
- package/cjs/src/utils/authService/authService.js.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.d.ts +12 -0
- package/cjs/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.js +12 -0
- package/cjs/src/utils/graphql/answerService/answerService.js.map +1 -1
- package/cjs/src/utils/processTrigger.d.ts +1 -0
- package/cjs/src/utils/processTrigger.d.ts.map +1 -1
- package/cjs/src/utils/processTrigger.js +2 -0
- package/cjs/src/utils/processTrigger.js.map +1 -1
- package/cjs/src/utils.d.ts +9 -0
- package/cjs/src/utils.d.ts.map +1 -1
- package/cjs/src/utils.js +11 -0
- package/cjs/src/utils.js.map +1 -1
- package/dist/src/auth.d.ts +15 -0
- package/dist/src/auth.d.ts.map +1 -1
- package/dist/src/authToken.d.ts +2 -1
- package/dist/src/authToken.d.ts.map +1 -1
- package/dist/src/config.d.ts +1 -0
- package/dist/src/config.d.ts.map +1 -1
- package/dist/src/embed/app.d.ts +50 -4
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/base.d.ts +7 -1
- package/dist/src/embed/base.d.ts.map +1 -1
- package/dist/src/embed/embedConfig.d.ts +2 -0
- package/dist/src/embed/embedConfig.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +30 -0
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/sage.d.ts +18 -2
- package/dist/src/embed/sage.d.ts.map +1 -1
- package/dist/src/embed/search-bar.d.ts +11 -0
- package/dist/src/embed/search-bar.d.ts.map +1 -1
- package/dist/src/embed/search.d.ts +34 -5
- package/dist/src/embed/search.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts +31 -1
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/mixpanel-service.d.ts +1 -0
- package/dist/src/mixpanel-service.d.ts.map +1 -1
- package/dist/src/react/index.d.ts +12 -1
- package/dist/src/react/index.d.ts.map +1 -1
- package/dist/src/test/test-utils.d.ts +2 -0
- package/dist/src/test/test-utils.d.ts.map +1 -1
- package/dist/src/tokenizedFetch.d.ts +1 -0
- package/dist/src/tokenizedFetch.d.ts.map +1 -1
- package/dist/src/types.d.ts +372 -59
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/authService/authService.d.ts +1 -0
- package/dist/src/utils/authService/authService.d.ts.map +1 -1
- package/dist/src/utils/graphql/answerService/answerService.d.ts +12 -0
- package/dist/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/dist/src/utils/processTrigger.d.ts +1 -0
- package/dist/src/utils/processTrigger.d.ts.map +1 -1
- package/dist/src/utils.d.ts +9 -0
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +7426 -7073
- package/dist/tsembed-react.js +7441 -7092
- package/dist/tsembed.es.js +8781 -8431
- package/dist/tsembed.js +12901 -12559
- package/dist/visual-embed-sdk-react-full.d.ts +584 -70
- package/dist/visual-embed-sdk-react.d.ts +584 -70
- package/dist/visual-embed-sdk.d.ts +572 -69
- package/lib/package.json +1 -1
- package/lib/src/auth.d.ts +15 -0
- package/lib/src/auth.d.ts.map +1 -1
- package/lib/src/auth.js +14 -3
- package/lib/src/auth.js.map +1 -1
- package/lib/src/authToken.d.ts +2 -1
- package/lib/src/authToken.d.ts.map +1 -1
- package/lib/src/authToken.js +2 -1
- package/lib/src/authToken.js.map +1 -1
- package/lib/src/config.d.ts +1 -0
- package/lib/src/config.d.ts.map +1 -1
- package/lib/src/config.js +2 -0
- package/lib/src/config.js.map +1 -1
- package/lib/src/embed/app.d.ts +50 -4
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +10 -2
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/base.d.ts +7 -1
- package/lib/src/embed/base.d.ts.map +1 -1
- package/lib/src/embed/base.js +12 -5
- package/lib/src/embed/base.js.map +1 -1
- package/lib/src/embed/base.spec.js +2 -2
- package/lib/src/embed/base.spec.js.map +1 -1
- package/lib/src/embed/embedConfig.d.ts +2 -0
- package/lib/src/embed/embedConfig.d.ts.map +1 -1
- package/lib/src/embed/embedConfig.js +2 -0
- package/lib/src/embed/embedConfig.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +30 -0
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +6 -1
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/sage.d.ts +18 -2
- package/lib/src/embed/sage.d.ts.map +1 -1
- package/lib/src/embed/sage.js +5 -0
- package/lib/src/embed/sage.js.map +1 -1
- package/lib/src/embed/search-bar.d.ts +11 -0
- package/lib/src/embed/search-bar.d.ts.map +1 -1
- package/lib/src/embed/search-bar.js +2 -0
- package/lib/src/embed/search-bar.js.map +1 -1
- package/lib/src/embed/search.d.ts +34 -5
- package/lib/src/embed/search.d.ts.map +1 -1
- package/lib/src/embed/search.js +8 -5
- package/lib/src/embed/search.js.map +1 -1
- package/lib/src/embed/search.spec.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts +31 -1
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +40 -9
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +9 -18
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/index.d.ts +1 -0
- package/lib/src/index.d.ts.map +1 -1
- package/lib/src/index.js +1 -0
- package/lib/src/index.js.map +1 -1
- package/lib/src/mixpanel-service.d.ts +1 -0
- package/lib/src/mixpanel-service.d.ts.map +1 -1
- package/lib/src/mixpanel-service.js +1 -0
- package/lib/src/mixpanel-service.js.map +1 -1
- package/lib/src/react/index.d.ts +12 -1
- package/lib/src/react/index.d.ts.map +1 -1
- package/lib/src/react/index.js +11 -1
- package/lib/src/react/index.js.map +1 -1
- package/lib/src/react/index.spec.js +3 -15
- package/lib/src/react/index.spec.js.map +1 -1
- package/lib/src/test/test-utils.d.ts +2 -0
- package/lib/src/test/test-utils.d.ts.map +1 -1
- package/lib/src/test/test-utils.js +2 -0
- package/lib/src/test/test-utils.js.map +1 -1
- package/lib/src/tokenizedFetch.d.ts +1 -0
- package/lib/src/tokenizedFetch.d.ts.map +1 -1
- package/lib/src/tokenizedFetch.js +1 -0
- package/lib/src/tokenizedFetch.js.map +1 -1
- package/lib/src/types.d.ts +372 -59
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +297 -51
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/authService/authService.d.ts +1 -0
- package/lib/src/utils/authService/authService.d.ts.map +1 -1
- package/lib/src/utils/authService/authService.js +1 -0
- package/lib/src/utils/authService/authService.js.map +1 -1
- package/lib/src/utils/authService/authService.spec.js +1 -1
- package/lib/src/utils/authService/authService.spec.js.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.d.ts +12 -0
- package/lib/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.js +12 -0
- package/lib/src/utils/graphql/answerService/answerService.js.map +1 -1
- package/lib/src/utils/processTrigger.d.ts +1 -0
- package/lib/src/utils/processTrigger.d.ts.map +1 -1
- package/lib/src/utils/processTrigger.js +2 -0
- package/lib/src/utils/processTrigger.js.map +1 -1
- package/lib/src/utils.d.ts +9 -0
- package/lib/src/utils.d.ts.map +1 -1
- package/lib/src/utils.js +11 -0
- package/lib/src/utils.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +576 -73
- package/package.json +1 -1
- package/src/auth.ts +23 -6
- package/src/authToken.ts +2 -1
- package/src/config.ts +2 -0
- package/src/embed/app.ts +63 -16
- package/src/embed/base.spec.ts +3 -3
- package/src/embed/base.ts +21 -15
- package/src/embed/embedConfig.ts +2 -0
- package/src/embed/liveboard.ts +38 -1
- package/src/embed/sage.ts +18 -2
- package/src/embed/search-bar.tsx +11 -0
- package/src/embed/search.spec.ts +1 -2
- package/src/embed/search.ts +48 -21
- package/src/embed/ts-embed.spec.ts +24 -37
- package/src/embed/ts-embed.ts +72 -38
- package/src/index.ts +1 -0
- package/src/mixpanel-service.ts +1 -0
- package/src/react/index.spec.tsx +59 -47
- package/src/react/index.tsx +12 -1
- package/src/test/test-utils.ts +2 -0
- package/src/tokenizedFetch.ts +1 -0
- package/src/types.ts +377 -65
- package/src/utils/authService/authService.spec.ts +4 -4
- package/src/utils/authService/authService.ts +1 -0
- package/src/utils/graphql/answerService/answerService.ts +12 -0
- package/src/utils/processTrigger.ts +2 -0
- package/src/utils.ts +11 -0
package/cjs/src/types.d.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Copyright (c) 2023
|
|
3
3
|
*
|
|
4
4
|
* TypeScript type definitions for ThoughtSpot Visual Embed SDK
|
|
5
|
+
*
|
|
5
6
|
* @summary Type definitions for Embed SDK
|
|
6
7
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
7
8
|
*/
|
|
@@ -10,12 +11,14 @@ import type { SessionInterface } from './utils/graphql/answerService/answerServi
|
|
|
10
11
|
/**
|
|
11
12
|
* The authentication mechanism for allowing access to the
|
|
12
13
|
* the embedded app
|
|
14
|
+
*
|
|
13
15
|
* @group Authentication / Init
|
|
14
16
|
*/
|
|
15
17
|
export declare enum AuthType {
|
|
16
18
|
/**
|
|
17
19
|
* No authentication on the SDK. Passthrough to the embedded App. Alias for
|
|
18
20
|
* `Passthrough`.
|
|
21
|
+
*
|
|
19
22
|
* @example
|
|
20
23
|
* ```js
|
|
21
24
|
* init({
|
|
@@ -33,6 +36,7 @@ export declare enum AuthType {
|
|
|
33
36
|
* To use this:
|
|
34
37
|
* Your SAML or OpenID provider must allow iframe redirects.
|
|
35
38
|
* For example, if you are using Okta as IdP, you can enable iframe embedding.
|
|
39
|
+
*
|
|
36
40
|
* @example
|
|
37
41
|
* ```js
|
|
38
42
|
* init({
|
|
@@ -45,12 +49,14 @@ export declare enum AuthType {
|
|
|
45
49
|
EmbeddedSSO = "EmbeddedSSO",
|
|
46
50
|
/**
|
|
47
51
|
* SSO using SAML
|
|
52
|
+
*
|
|
48
53
|
* @deprecated Use {@link SAMLRedirect} instead
|
|
49
54
|
* @hidden
|
|
50
55
|
*/
|
|
51
56
|
SSO = "SSO_SAML",
|
|
52
57
|
/**
|
|
53
58
|
* SSO using SAML
|
|
59
|
+
*
|
|
54
60
|
* @deprecated Use {@link SAMLRedirect} instead
|
|
55
61
|
* @hidden
|
|
56
62
|
*/
|
|
@@ -62,6 +68,7 @@ export declare enum AuthType {
|
|
|
62
68
|
*
|
|
63
69
|
* This redirects the host application to the SAML IdP. The host application
|
|
64
70
|
* will be redirected back to the ThoughtSpot app after authentication.
|
|
71
|
+
*
|
|
65
72
|
* @example
|
|
66
73
|
* ```js
|
|
67
74
|
* init({
|
|
@@ -102,6 +109,7 @@ export declare enum AuthType {
|
|
|
102
109
|
SAMLRedirect = "SSO_SAML",
|
|
103
110
|
/**
|
|
104
111
|
* SSO using OIDC
|
|
112
|
+
*
|
|
105
113
|
* @hidden
|
|
106
114
|
* @deprecated Use {@link OIDCRedirect} instead
|
|
107
115
|
*/
|
|
@@ -114,6 +122,7 @@ export declare enum AuthType {
|
|
|
114
122
|
OIDCRedirect = "SSO_OIDC",
|
|
115
123
|
/**
|
|
116
124
|
* Trusted authentication server
|
|
125
|
+
*
|
|
117
126
|
* @hidden
|
|
118
127
|
* @deprecated Use {@link TrustedAuth} instead
|
|
119
128
|
*/
|
|
@@ -122,6 +131,7 @@ export declare enum AuthType {
|
|
|
122
131
|
* Trusted authentication server. Use your own authentication server
|
|
123
132
|
* which returns a bearer token, generated using the `secret_key` obtained
|
|
124
133
|
* from ThoughtSpot.
|
|
134
|
+
*
|
|
125
135
|
* @example
|
|
126
136
|
* ```js
|
|
127
137
|
* init({
|
|
@@ -133,7 +143,6 @@ export declare enum AuthType {
|
|
|
133
143
|
* .then((data) => data.token);
|
|
134
144
|
* }
|
|
135
145
|
* });
|
|
136
|
-
* });
|
|
137
146
|
* ```
|
|
138
147
|
*/
|
|
139
148
|
TrustedAuthToken = "AuthServer",
|
|
@@ -143,6 +152,7 @@ export declare enum AuthType {
|
|
|
143
152
|
* obtained from ThoughtSpot. This uses a cookieless authentication
|
|
144
153
|
* approach, recommended to bypass the third-party cookie-blocking restriction
|
|
145
154
|
* implemented by some browsers.
|
|
155
|
+
*
|
|
146
156
|
* @example
|
|
147
157
|
* ```js
|
|
148
158
|
* init({
|
|
@@ -215,6 +225,7 @@ export interface customCssInterface {
|
|
|
215
225
|
/**
|
|
216
226
|
* Can be used to define a custom font face
|
|
217
227
|
* like:
|
|
228
|
+
*
|
|
218
229
|
* @example
|
|
219
230
|
* ```js
|
|
220
231
|
* rules_UNSTABLE?: {
|
|
@@ -254,6 +265,7 @@ export interface CustomStyles {
|
|
|
254
265
|
* Thoughtspot components.
|
|
255
266
|
* You can customize styles, text strings, and icons.
|
|
256
267
|
* For more information, see https://developers.thoughtspot.com/docs/custom-css.
|
|
268
|
+
*
|
|
257
269
|
* @example
|
|
258
270
|
* ```js
|
|
259
271
|
* init({
|
|
@@ -296,6 +308,7 @@ export interface CustomisationsInterface {
|
|
|
296
308
|
* It includes the ThoughtSpot hostname or IP address,
|
|
297
309
|
* the type of authentication, and the authentication endpoint
|
|
298
310
|
* if a trusted authentication server is used.
|
|
311
|
+
*
|
|
299
312
|
* @group Authentication / Init
|
|
300
313
|
*/
|
|
301
314
|
export interface EmbedConfig {
|
|
@@ -343,6 +356,7 @@ export interface EmbedConfig {
|
|
|
343
356
|
* [SSO] For SSO Authentication, if `noRedirect` is set to true, it will
|
|
344
357
|
* open the SAML auth flow in a popup, instead of redirecting the browser in
|
|
345
358
|
* place.
|
|
359
|
+
*
|
|
346
360
|
* @default false
|
|
347
361
|
* @deprecated
|
|
348
362
|
*/
|
|
@@ -353,6 +367,7 @@ export interface EmbedConfig {
|
|
|
353
367
|
*
|
|
354
368
|
* Need to use this with `authTriggerContainer`. Or manually trigger
|
|
355
369
|
* the `AuthEvent.TRIGGER_SSO_POPUP` event on a user interaction.
|
|
370
|
+
*
|
|
356
371
|
* @default false
|
|
357
372
|
* @version SDK: 1.18.0
|
|
358
373
|
*/
|
|
@@ -363,6 +378,7 @@ export interface EmbedConfig {
|
|
|
363
378
|
* terminated.
|
|
364
379
|
*
|
|
365
380
|
* Eg: "/dashboard", "#/foo" [Do not include the host]
|
|
381
|
+
*
|
|
366
382
|
* @version SDK: 1.10.2 | ThoughtSpot 8.2.0.cl, 8.4.1.sw
|
|
367
383
|
*/
|
|
368
384
|
redirectPath?: string;
|
|
@@ -372,6 +388,7 @@ export interface EmbedConfig {
|
|
|
372
388
|
* Boolean to define if the query parameters in the ThoughtSpot URL
|
|
373
389
|
* should be encoded in base64. This provides additional security to
|
|
374
390
|
* Thoughtspot clusters against cross-site scripting attacks.
|
|
391
|
+
*
|
|
375
392
|
* @default false
|
|
376
393
|
*/
|
|
377
394
|
shouldEncodeUrlQueryParams?: boolean;
|
|
@@ -381,6 +398,7 @@ export interface EmbedConfig {
|
|
|
381
398
|
* some web browsers like Safari. If you set this attribute to `true`,
|
|
382
399
|
* you are encouraged to handle `noCookieAccess` event, to show your own treatment
|
|
383
400
|
* in this case.
|
|
401
|
+
*
|
|
384
402
|
* @default false
|
|
385
403
|
*/
|
|
386
404
|
suppressNoCookieAccessAlert?: boolean;
|
|
@@ -388,12 +406,14 @@ export interface EmbedConfig {
|
|
|
388
406
|
* Ignore the cookie access alert when third-party cookies are blocked by the
|
|
389
407
|
* user's browser. If you set this to `true`, the embedded iframe behaviour
|
|
390
408
|
* persists even in the case of a non-logged-in user.
|
|
409
|
+
*
|
|
391
410
|
* @default false
|
|
392
411
|
*/
|
|
393
412
|
ignoreNoCookieAccess?: boolean;
|
|
394
413
|
/**
|
|
395
414
|
* Re-login a user with the previous login options
|
|
396
415
|
* when a user session expires.
|
|
416
|
+
*
|
|
397
417
|
* @default false
|
|
398
418
|
*/
|
|
399
419
|
autoLogin?: boolean;
|
|
@@ -402,17 +422,20 @@ export interface EmbedConfig {
|
|
|
402
422
|
* This flag is typically used alongside the combination of authentication modes such
|
|
403
423
|
* as {@link AuthType.AuthServer} and auto-login behavior {@link
|
|
404
424
|
* EmbedConfig.autoLogin}
|
|
425
|
+
*
|
|
405
426
|
* @version SDK: 1.9.3 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
|
|
406
427
|
* @default false
|
|
407
428
|
*/
|
|
408
429
|
disableLoginRedirect?: boolean;
|
|
409
430
|
/**
|
|
410
431
|
* This message is displayed in the embedded view when a user login fails.
|
|
432
|
+
*
|
|
411
433
|
* @version SDK: 1.10.1 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
|
|
412
434
|
*/
|
|
413
435
|
loginFailedMessage?: string;
|
|
414
436
|
/**
|
|
415
437
|
* Calls the prefetch method internally when set to `true`
|
|
438
|
+
*
|
|
416
439
|
* @default false
|
|
417
440
|
*/
|
|
418
441
|
callPrefetch?: boolean;
|
|
@@ -420,6 +443,7 @@ export interface EmbedConfig {
|
|
|
420
443
|
* When there are multiple objects embedded, queue the rendering of embedded objects
|
|
421
444
|
* to start after the previous embed's render is complete. This helps improve
|
|
422
445
|
* performance by decreasing the load on the browser.
|
|
446
|
+
*
|
|
423
447
|
* @Version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
|
|
424
448
|
* @default false
|
|
425
449
|
*/
|
|
@@ -427,6 +451,7 @@ export interface EmbedConfig {
|
|
|
427
451
|
/**
|
|
428
452
|
* Dynamic CSS URL to be injected in the loaded application.
|
|
429
453
|
* You would also need to set `style-src` in the CSP settings.
|
|
454
|
+
*
|
|
430
455
|
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
431
456
|
* @default ''
|
|
432
457
|
*/
|
|
@@ -438,11 +463,13 @@ export interface EmbedConfig {
|
|
|
438
463
|
*
|
|
439
464
|
* This is slightly slower than letting the browser handle the cookie check, as it
|
|
440
465
|
* involves an extra network call.
|
|
466
|
+
*
|
|
441
467
|
* @version SDK: 1.10.4 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
|
|
442
468
|
*/
|
|
443
469
|
detectCookieAccessSlow?: boolean;
|
|
444
470
|
/**
|
|
445
471
|
* Hide the `beta` alert warning message for SearchEmbed.
|
|
472
|
+
*
|
|
446
473
|
* @version SDK: 1.12.0 | ThoughtSpot: 8.4.0.cl, 8.4.1.sw*
|
|
447
474
|
*/
|
|
448
475
|
suppressSearchEmbedBetaWarning?: boolean;
|
|
@@ -453,6 +480,7 @@ export interface EmbedConfig {
|
|
|
453
480
|
suppressSageEmbedBetaWarning?: boolean;
|
|
454
481
|
/**
|
|
455
482
|
* Custom style params for embed Config.
|
|
483
|
+
*
|
|
456
484
|
* @version SDK: 1.17.0 | ThoughtSpot: 8.9.0.cl, 9.0.1.sw
|
|
457
485
|
*/
|
|
458
486
|
customizations?: CustomisationsInterface;
|
|
@@ -460,6 +488,7 @@ export interface EmbedConfig {
|
|
|
460
488
|
* For `inPopup` SAMLRedirect or OIDCRedirect authentication, we need a
|
|
461
489
|
* button that the user can click to trigger the flow.
|
|
462
490
|
* This attribute sets a containing element for that button.
|
|
491
|
+
*
|
|
463
492
|
* @example
|
|
464
493
|
* ```js
|
|
465
494
|
* init({
|
|
@@ -481,6 +510,7 @@ export interface EmbedConfig {
|
|
|
481
510
|
/**
|
|
482
511
|
* Text to show in the button which triggers the popup auth flow.
|
|
483
512
|
* Default: `Authorize`.
|
|
513
|
+
*
|
|
484
514
|
* @version SDK: 1.17.0 | ThoughtSpot: 8.9.0.cl, 9.0.1.sw
|
|
485
515
|
*/
|
|
486
516
|
authTriggerText?: string;
|
|
@@ -488,12 +518,14 @@ export interface EmbedConfig {
|
|
|
488
518
|
* Prevent users from accessing the full application or ThoughtSpot application pages
|
|
489
519
|
* access to the embedded application users
|
|
490
520
|
* outside of the iframe.
|
|
521
|
+
*
|
|
491
522
|
* @default true
|
|
492
523
|
* @version SDK: 1.22.0 | ThoughtSpot: 9.3.0.cl, 9.5.1.sw
|
|
493
524
|
*/
|
|
494
525
|
blockNonEmbedFullAppAccess?: boolean;
|
|
495
526
|
/**
|
|
496
527
|
* Host config in case embedded app is inside TS app itself
|
|
528
|
+
*
|
|
497
529
|
* @hidden
|
|
498
530
|
*/
|
|
499
531
|
hostConfig?: {
|
|
@@ -503,17 +535,20 @@ export interface EmbedConfig {
|
|
|
503
535
|
};
|
|
504
536
|
/**
|
|
505
537
|
* Pendo API key to enable Pendo tracking to your own subscription, the key
|
|
506
|
-
* is added as an additional key to the embed, as per this
|
|
538
|
+
* is added as an additional key to the embed, as per this link:https://support.pendo.io/hc/en-us/articles/360032201951-Send-data-to-multiple-subscriptions[document].
|
|
539
|
+
*
|
|
507
540
|
* @version SDK: 1.27.0 | ThoughtSpot: 9.8.0.cl
|
|
508
541
|
*/
|
|
509
542
|
pendoTrackingKey?: string;
|
|
510
543
|
/**
|
|
511
544
|
* If passed as true all alerts will be suppressed in the embedded app.
|
|
545
|
+
*
|
|
512
546
|
* @version SDK: 1.26.2 | ThoughtSpot: *
|
|
513
547
|
*/
|
|
514
548
|
suppressErrorAlerts?: boolean;
|
|
515
549
|
/**
|
|
516
550
|
* Log level for the SDK.
|
|
551
|
+
*
|
|
517
552
|
* @default LogLevel.ERROR
|
|
518
553
|
* @example
|
|
519
554
|
* ```js
|
|
@@ -527,28 +562,34 @@ export interface EmbedConfig {
|
|
|
527
562
|
logLevel?: LogLevel;
|
|
528
563
|
/**
|
|
529
564
|
* Disables the Mixpanel tracking from the SDK.
|
|
565
|
+
*
|
|
530
566
|
* @version SDK: 1.27.9
|
|
531
567
|
*/
|
|
532
568
|
disableSDKTracking?: boolean;
|
|
533
569
|
/**
|
|
534
570
|
* Overrides default/user preffered locale for date formatting
|
|
571
|
+
*
|
|
535
572
|
* @version SDK: 1.28.4 | Thoughtspot: 10.0.0.cl, 9.5.0.sw
|
|
536
573
|
*/
|
|
537
574
|
dateFormatLocale?: string;
|
|
538
575
|
/**
|
|
539
576
|
* Overrides default/user preffered locale for number formatting
|
|
577
|
+
*
|
|
540
578
|
* @version SDK: 1.28.4 | Thoughtspot: 10.0.0.cl, 9.5.0.sw
|
|
541
579
|
*/
|
|
542
580
|
numberFormatLocale?: string;
|
|
543
581
|
/**
|
|
544
582
|
* Format to be used for currency when currency format is set to infer from browser
|
|
583
|
+
*
|
|
545
584
|
* @version SDK: 1.28.4 | Thoughtspot: 10.0.0.cl, 9.5.0.sw
|
|
546
585
|
*/
|
|
547
586
|
currencyFormat?: string;
|
|
548
587
|
/**
|
|
549
588
|
* This flag is used to disable the token verification in the SDK.
|
|
550
589
|
* Enabling this flag will also disable the caching of the token.
|
|
590
|
+
*
|
|
551
591
|
* @hidden
|
|
592
|
+
*
|
|
552
593
|
* @example
|
|
553
594
|
* ```js
|
|
554
595
|
* init({
|
|
@@ -556,6 +597,7 @@ export interface EmbedConfig {
|
|
|
556
597
|
* disableTokenVerification : true
|
|
557
598
|
* })
|
|
558
599
|
* ```
|
|
600
|
+
*
|
|
559
601
|
* @version SDK: 1.28.5 | Thoughtspot: *
|
|
560
602
|
*/
|
|
561
603
|
disableTokenVerification?: boolean;
|
|
@@ -564,6 +606,7 @@ export interface LayoutConfig {
|
|
|
564
606
|
}
|
|
565
607
|
/**
|
|
566
608
|
* Embedded iframe configuration
|
|
609
|
+
*
|
|
567
610
|
* @group Embed components
|
|
568
611
|
*/
|
|
569
612
|
export interface FrameParams {
|
|
@@ -598,7 +641,9 @@ export interface ViewConfig {
|
|
|
598
641
|
/**
|
|
599
642
|
* The width and height dimensions to render an embedded
|
|
600
643
|
* object inside your app. Specify the values in pixels or percentage.
|
|
644
|
+
*
|
|
601
645
|
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1
|
|
646
|
+
*
|
|
602
647
|
* @example
|
|
603
648
|
* ```js
|
|
604
649
|
* const embed = new LiveboardEmbed('#embed', {
|
|
@@ -624,6 +669,7 @@ export interface ViewConfig {
|
|
|
624
669
|
* (...), and the contextual menu. These actions will be disabled
|
|
625
670
|
* for the user.
|
|
626
671
|
* Use this to disable actions.
|
|
672
|
+
*
|
|
627
673
|
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
628
674
|
* @example
|
|
629
675
|
* ```js
|
|
@@ -651,7 +697,9 @@ export interface ViewConfig {
|
|
|
651
697
|
* The list of actions to hide from the embedded.
|
|
652
698
|
* This actions will be hidden from the user.
|
|
653
699
|
* Use this to hide an action.
|
|
700
|
+
*
|
|
654
701
|
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
702
|
+
*
|
|
655
703
|
* @example
|
|
656
704
|
* ```js
|
|
657
705
|
* const embed = new LiveboardEmbed('#embed', {
|
|
@@ -669,8 +717,10 @@ export interface ViewConfig {
|
|
|
669
717
|
* Use this to hide all actions except the ones you want to show.
|
|
670
718
|
*
|
|
671
719
|
* Use either this or hiddenActions.
|
|
720
|
+
*
|
|
672
721
|
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
673
722
|
* @important
|
|
723
|
+
*
|
|
674
724
|
* @example
|
|
675
725
|
* ```js
|
|
676
726
|
* const embed = new LiveboardEmbed('#embed', {
|
|
@@ -682,7 +732,9 @@ export interface ViewConfig {
|
|
|
682
732
|
visibleActions?: Action[];
|
|
683
733
|
/**
|
|
684
734
|
* Show alert messages and toast messages in the embedded view.
|
|
735
|
+
*
|
|
685
736
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
737
|
+
*
|
|
686
738
|
* @example
|
|
687
739
|
* ```js
|
|
688
740
|
* const embed = new LiveboardEmbed('#embed-container', {
|
|
@@ -695,7 +747,9 @@ export interface ViewConfig {
|
|
|
695
747
|
/**
|
|
696
748
|
* The list of runtime filters to apply to a search answer,
|
|
697
749
|
* visualization, or Liveboard.
|
|
750
|
+
*
|
|
698
751
|
* @version SDK: 1.9.4 | ThoughtSpot 8.1.0.cl, 8.4.1.sw
|
|
752
|
+
*
|
|
699
753
|
* @example
|
|
700
754
|
* ```js
|
|
701
755
|
* const embed = new LiveboardEmbed('#embed-container', {
|
|
@@ -714,7 +768,9 @@ export interface ViewConfig {
|
|
|
714
768
|
/**
|
|
715
769
|
* The list of parameter override to apply to a search answer,
|
|
716
770
|
* visualization, or Liveboard.
|
|
771
|
+
*
|
|
717
772
|
* @version SDK : 1.25.0 | Thoughtspot: 9.2.0.cl, 9.5.0.sw
|
|
773
|
+
*
|
|
718
774
|
* @example
|
|
719
775
|
* ```js
|
|
720
776
|
* const embed = new LiveboardEmbed('#embed-container', {
|
|
@@ -731,6 +787,7 @@ export interface ViewConfig {
|
|
|
731
787
|
runtimeParameters?: RuntimeParameter[];
|
|
732
788
|
/**
|
|
733
789
|
* The locale/language to use for the embedded view.
|
|
790
|
+
*
|
|
734
791
|
* @version SDK: 1.9.4 | ThoughtSpot 8.1.0.cl, 8.4.1.sw
|
|
735
792
|
* @example
|
|
736
793
|
* ```js
|
|
@@ -766,6 +823,7 @@ export interface ViewConfig {
|
|
|
766
823
|
/**
|
|
767
824
|
* Dynamic CSSUrl and customCSS to be injected in the loaded application.
|
|
768
825
|
* You would also need to set `style-src` in the CSP settings.
|
|
826
|
+
*
|
|
769
827
|
* @version SDK: 1.17.2 | ThoughtSpot: 8.4.1.sw, 8.4.0.cl
|
|
770
828
|
* @default ''
|
|
771
829
|
*/
|
|
@@ -773,7 +831,9 @@ export interface ViewConfig {
|
|
|
773
831
|
/**
|
|
774
832
|
* Insert as a sibling of the target container, instead of appending to a
|
|
775
833
|
* child inside it.
|
|
834
|
+
*
|
|
776
835
|
* @version SDK: 1.2.0 | Thoughtspot: 9.0.0.cl, 9.0.0.sw
|
|
836
|
+
*
|
|
777
837
|
* @example
|
|
778
838
|
* ```js
|
|
779
839
|
* const embed = new LiveboardEmbed('#embed-container', {
|
|
@@ -785,6 +845,7 @@ export interface ViewConfig {
|
|
|
785
845
|
insertAsSibling?: boolean;
|
|
786
846
|
/**
|
|
787
847
|
* flag to set ContextMenu Trigger to either left or right click.
|
|
848
|
+
*
|
|
788
849
|
* @example
|
|
789
850
|
* ```js
|
|
790
851
|
* const embed = new LiveboardEmbed('#tsEmbed', {
|
|
@@ -797,6 +858,7 @@ export interface ViewConfig {
|
|
|
797
858
|
contextMenuTrigger?: ContextMenuTriggerOptions;
|
|
798
859
|
/**
|
|
799
860
|
* Flag to override openNew tab context menu link
|
|
861
|
+
*
|
|
800
862
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
801
863
|
* @example
|
|
802
864
|
* ```js
|
|
@@ -809,6 +871,7 @@ export interface ViewConfig {
|
|
|
809
871
|
linkOverride?: boolean;
|
|
810
872
|
/**
|
|
811
873
|
* flag to enable insert into slides action
|
|
874
|
+
*
|
|
812
875
|
* @hidden
|
|
813
876
|
* @private
|
|
814
877
|
*/
|
|
@@ -816,6 +879,7 @@ export interface ViewConfig {
|
|
|
816
879
|
/**
|
|
817
880
|
* Use a pre-rendered iframe from a pool of pre-rendered iframes
|
|
818
881
|
* if available and matches the configuration.
|
|
882
|
+
*
|
|
819
883
|
* @version SDK: 1.22.0
|
|
820
884
|
* @hidden
|
|
821
885
|
*
|
|
@@ -829,6 +893,7 @@ export interface ViewConfig {
|
|
|
829
893
|
*
|
|
830
894
|
* Irrespective of this flag, runtime filters ( if passed ) will be applied to the
|
|
831
895
|
* embedded view.
|
|
896
|
+
*
|
|
832
897
|
* @default false
|
|
833
898
|
* @version SDK: 1.24.0 | ThoughtSpot: 9.5.0.cl
|
|
834
899
|
*/
|
|
@@ -837,6 +902,7 @@ export interface ViewConfig {
|
|
|
837
902
|
* The list of tab IDs to hide from the embedded.
|
|
838
903
|
* This Tabs will be hidden from their respective LBs.
|
|
839
904
|
* Use this to hide an tabID.
|
|
905
|
+
*
|
|
840
906
|
* @example
|
|
841
907
|
* ```js
|
|
842
908
|
* const embed = new LiveboardEmbed('#embed', {
|
|
@@ -853,11 +919,10 @@ export interface ViewConfig {
|
|
|
853
919
|
* Hide the home page modules
|
|
854
920
|
* For example: hiddenHomepageModules = [HomepageModule.MyLibrary]
|
|
855
921
|
*
|
|
856
|
-
*
|
|
857
|
-
*
|
|
858
922
|
* **Note**: This option does not apply to the classic homepage.
|
|
859
923
|
* To access the updated modular homepage, set
|
|
860
924
|
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
925
|
+
*
|
|
861
926
|
* @version SDK: 1.28.0 | Thoughtspot: 9.12.5.cl
|
|
862
927
|
* @example
|
|
863
928
|
* ```js
|
|
@@ -866,17 +931,19 @@ export interface ViewConfig {
|
|
|
866
931
|
* hiddenHomepageModules : [HomepageModule.Favorite,HomepageModule.Learning],
|
|
867
932
|
* })
|
|
868
933
|
* ```
|
|
934
|
+
*
|
|
869
935
|
*/
|
|
870
936
|
hiddenHomepageModules?: HomepageModule[];
|
|
871
937
|
/**
|
|
872
938
|
* reordering the home page modules
|
|
873
939
|
* eg: reorderedHomepageModules = [HomepageModule.MyLibrary, HomepageModule.Watchlist]
|
|
874
940
|
*
|
|
875
|
-
*
|
|
876
941
|
* **Note**: This option does not apply to the classic homepage.
|
|
877
942
|
* To access the updated modular homepage, set
|
|
878
943
|
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
944
|
+
*
|
|
879
945
|
* @version SDK: 1.28.0| Thoughtspot: 9.12.5.cl
|
|
946
|
+
*
|
|
880
947
|
* @example
|
|
881
948
|
* ```js
|
|
882
949
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
@@ -891,7 +958,9 @@ export interface ViewConfig {
|
|
|
891
958
|
* Only the tabs specified in the array will be shown in the Liveboard.
|
|
892
959
|
*
|
|
893
960
|
* Use either `visibleTabs` or `hiddenTabs`.
|
|
961
|
+
*
|
|
894
962
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
963
|
+
*
|
|
895
964
|
* @example
|
|
896
965
|
* ```js
|
|
897
966
|
* const embed = new LiveboardEmbed('#embed-container', {
|
|
@@ -908,7 +977,8 @@ export interface ViewConfig {
|
|
|
908
977
|
* homepageLeftNavItems : Show or hide the left navigation bar items.
|
|
909
978
|
* There are 8 eight home navigation list items.
|
|
910
979
|
* To hide these items, specify the string in the array.
|
|
911
|
-
*
|
|
980
|
+
*
|
|
981
|
+
* * @example
|
|
912
982
|
* ```js
|
|
913
983
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
914
984
|
* ... // other options
|
|
@@ -916,11 +986,10 @@ export interface ViewConfig {
|
|
|
916
986
|
* })
|
|
917
987
|
* ```
|
|
918
988
|
*
|
|
919
|
-
*
|
|
920
|
-
*
|
|
921
989
|
* **Note**: This option does not apply to the classic homepage.
|
|
922
990
|
* To access the updated modular homepage, set
|
|
923
991
|
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
992
|
+
*
|
|
924
993
|
* @version SDK: 1.28.0 | Thoughtspot: 9.12.5.cl
|
|
925
994
|
*/
|
|
926
995
|
hiddenHomeLeftNavItems?: HomeLeftNavItem[];
|
|
@@ -928,6 +997,7 @@ export interface ViewConfig {
|
|
|
928
997
|
* PreRender id to be used for PreRendering the embed.
|
|
929
998
|
* Use PreRender to render the embed in the background and then
|
|
930
999
|
* show or hide the rendered embed using showPreRender or hidePreRender respectively.
|
|
1000
|
+
*
|
|
931
1001
|
* @example
|
|
932
1002
|
* ```js
|
|
933
1003
|
* const embed = new LiveboardEmbed('#embed', {
|
|
@@ -944,9 +1014,11 @@ export interface ViewConfig {
|
|
|
944
1014
|
* of its embedding element and adjust its own size accordingly.
|
|
945
1015
|
* Enabling this option allows the PreRender component to automatically adapt
|
|
946
1016
|
* its dimensions based on changes to the size of the embedding element.
|
|
1017
|
+
*
|
|
947
1018
|
* @type {boolean}
|
|
948
1019
|
* @default false
|
|
949
1020
|
* @version SDK: 1.24.0 | ThoughtSpot:9.4.0.cl, 9.4.0.sw
|
|
1021
|
+
*
|
|
950
1022
|
* @example
|
|
951
1023
|
* ```js
|
|
952
1024
|
* // Disable tracking PreRender size in the configuration
|
|
@@ -961,6 +1033,7 @@ export interface ViewConfig {
|
|
|
961
1033
|
doNotTrackPreRenderSize?: boolean;
|
|
962
1034
|
/**
|
|
963
1035
|
* For internal tracking of the embed component type.
|
|
1036
|
+
*
|
|
964
1037
|
* @hidden
|
|
965
1038
|
*/
|
|
966
1039
|
embedComponentType?: string;
|
|
@@ -970,6 +1043,7 @@ export interface ViewConfig {
|
|
|
970
1043
|
*
|
|
971
1044
|
* Irrespective of this flag, runtime filters ( if passed ) will be applied to the
|
|
972
1045
|
* embedded view.
|
|
1046
|
+
*
|
|
973
1047
|
* @default false
|
|
974
1048
|
* @version SDK: 1.29.0 | ThoughtSpot: 10.1.0.cl
|
|
975
1049
|
*/
|
|
@@ -977,6 +1051,7 @@ export interface ViewConfig {
|
|
|
977
1051
|
}
|
|
978
1052
|
/**
|
|
979
1053
|
* MessagePayload: Embed event payload: message type, data and status (start/end)
|
|
1054
|
+
*
|
|
980
1055
|
* @group Events
|
|
981
1056
|
*/
|
|
982
1057
|
export type MessagePayload = {
|
|
@@ -987,6 +1062,7 @@ export type MessagePayload = {
|
|
|
987
1062
|
/**
|
|
988
1063
|
* MessageOptions: By providing options, getting specific event start / end based on
|
|
989
1064
|
* option
|
|
1065
|
+
*
|
|
990
1066
|
* @group Events
|
|
991
1067
|
*/
|
|
992
1068
|
export type MessageOptions = {
|
|
@@ -998,6 +1074,7 @@ export type MessageOptions = {
|
|
|
998
1074
|
};
|
|
999
1075
|
/**
|
|
1000
1076
|
* MessageCallback: Embed event message callback
|
|
1077
|
+
*
|
|
1001
1078
|
* @group Events
|
|
1002
1079
|
*/
|
|
1003
1080
|
export type MessageCallback = (payload: MessagePayload,
|
|
@@ -1080,13 +1157,18 @@ export declare enum RuntimeFilterOp {
|
|
|
1080
1157
|
/**
|
|
1081
1158
|
* Is included in this list of values
|
|
1082
1159
|
*/
|
|
1083
|
-
IN = "IN"
|
|
1160
|
+
IN = "IN",
|
|
1161
|
+
/**
|
|
1162
|
+
* Is not included in this list of values
|
|
1163
|
+
*/
|
|
1164
|
+
NOT_IN = "NOT_IN"
|
|
1084
1165
|
}
|
|
1085
1166
|
/**
|
|
1086
1167
|
* Home page module that can be hidden.
|
|
1087
1168
|
* **Note**: This option does not apply to the classic homepage.
|
|
1088
1169
|
* To access the updated modular homepage, set
|
|
1089
1170
|
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
1171
|
+
*
|
|
1090
1172
|
* @version SDK: 1.28.0 | Thoughtspot: 9.12.5.cl
|
|
1091
1173
|
*/
|
|
1092
1174
|
export declare enum HomepageModule {
|
|
@@ -1154,6 +1236,7 @@ export interface RuntimeParameter {
|
|
|
1154
1236
|
*
|
|
1155
1237
|
* To add an event listener use the corresponding
|
|
1156
1238
|
* {@link LiveboardEmbed.on} or {@link AppEmbed.on} or {@link SearchEmbed.on} method.
|
|
1239
|
+
*
|
|
1157
1240
|
* @example
|
|
1158
1241
|
* ```js
|
|
1159
1242
|
* import { EmbedEvent } from '@thoughtspot/visual-embed-sdk';
|
|
@@ -1171,6 +1254,7 @@ export interface RuntimeParameter {
|
|
|
1171
1254
|
export declare enum EmbedEvent {
|
|
1172
1255
|
/**
|
|
1173
1256
|
* Rendering has initialized.
|
|
1257
|
+
*
|
|
1174
1258
|
* @example
|
|
1175
1259
|
*```js
|
|
1176
1260
|
* liveboardEmbed.on(EmbedEvent.Init, showLoader)
|
|
@@ -1184,7 +1268,9 @@ export declare enum EmbedEvent {
|
|
|
1184
1268
|
Init = "init",
|
|
1185
1269
|
/**
|
|
1186
1270
|
* Authentication has either succeeded or failed.
|
|
1271
|
+
*
|
|
1187
1272
|
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
1273
|
+
*
|
|
1188
1274
|
* @example
|
|
1189
1275
|
*```js
|
|
1190
1276
|
* appEmbed.on(EmbedEvent.AuthInit, payload => {
|
|
@@ -1196,7 +1282,9 @@ export declare enum EmbedEvent {
|
|
|
1196
1282
|
AuthInit = "authInit",
|
|
1197
1283
|
/**
|
|
1198
1284
|
* The embed object container has loaded.
|
|
1285
|
+
*
|
|
1199
1286
|
* @returns timestamp - The timestamp when the event was generated.
|
|
1287
|
+
*
|
|
1200
1288
|
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
1201
1289
|
* @example
|
|
1202
1290
|
*```js
|
|
@@ -1210,7 +1298,9 @@ export declare enum EmbedEvent {
|
|
|
1210
1298
|
Load = "load",
|
|
1211
1299
|
/**
|
|
1212
1300
|
* Data pertaining to answer or Liveboard is received
|
|
1301
|
+
*
|
|
1213
1302
|
* @return data - The answer or Liveboard data
|
|
1303
|
+
*
|
|
1214
1304
|
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
1215
1305
|
* @example
|
|
1216
1306
|
*```js
|
|
@@ -1223,11 +1313,13 @@ export declare enum EmbedEvent {
|
|
|
1223
1313
|
Data = "data",
|
|
1224
1314
|
/**
|
|
1225
1315
|
* Search/Answer/Liveboard filters have been applied/updated by the user.
|
|
1316
|
+
*
|
|
1226
1317
|
* @hidden
|
|
1227
1318
|
*/
|
|
1228
1319
|
FiltersChanged = "filtersChanged",
|
|
1229
1320
|
/**
|
|
1230
1321
|
* Search query has been updated by the user.
|
|
1322
|
+
*
|
|
1231
1323
|
* @version SDK: 1.4.0 | ThoughtSpot: ts7.sep.cl, 8.4.1.sw
|
|
1232
1324
|
* @example
|
|
1233
1325
|
*```js
|
|
@@ -1237,7 +1329,9 @@ export declare enum EmbedEvent {
|
|
|
1237
1329
|
QueryChanged = "queryChanged",
|
|
1238
1330
|
/**
|
|
1239
1331
|
* A drill-down operation has been performed.
|
|
1332
|
+
*
|
|
1240
1333
|
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
1334
|
+
*
|
|
1241
1335
|
* @returns additionalFilters - Any additional filters applied
|
|
1242
1336
|
* @returns drillDownColumns - The columns on which drill down was performed
|
|
1243
1337
|
* @returns nonFilteredColumns - The columns that were not filtered
|
|
@@ -1274,7 +1368,9 @@ export declare enum EmbedEvent {
|
|
|
1274
1368
|
Drilldown = "drillDown",
|
|
1275
1369
|
/**
|
|
1276
1370
|
* One or more data sources have been selected.
|
|
1371
|
+
*
|
|
1277
1372
|
* @returns dataSourceIds - the list of data sources
|
|
1373
|
+
*
|
|
1278
1374
|
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
1279
1375
|
* @example
|
|
1280
1376
|
* ```js
|
|
@@ -1286,6 +1382,7 @@ export declare enum EmbedEvent {
|
|
|
1286
1382
|
DataSourceSelected = "dataSourceSelected",
|
|
1287
1383
|
/**
|
|
1288
1384
|
* One or more data columns have been selected.
|
|
1385
|
+
*
|
|
1289
1386
|
* @returns columnIds - the list of columns
|
|
1290
1387
|
* @version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
|
|
1291
1388
|
* @example
|
|
@@ -1298,9 +1395,11 @@ export declare enum EmbedEvent {
|
|
|
1298
1395
|
AddRemoveColumns = "addRemoveColumns",
|
|
1299
1396
|
/**
|
|
1300
1397
|
* A custom action has been triggered.
|
|
1398
|
+
*
|
|
1301
1399
|
* @returns actionId - ID of the custom action
|
|
1302
1400
|
* @returns payload {@link CustomActionPayload} - Response payload with the
|
|
1303
1401
|
* Answer or Liveboard data
|
|
1402
|
+
*
|
|
1304
1403
|
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
1305
1404
|
* @example
|
|
1306
1405
|
* ```js
|
|
@@ -1315,6 +1414,7 @@ export declare enum EmbedEvent {
|
|
|
1315
1414
|
CustomAction = "customAction",
|
|
1316
1415
|
/**
|
|
1317
1416
|
* Listen to double click actions on a visualization.
|
|
1417
|
+
*
|
|
1318
1418
|
* @return ContextMenuInputPoints - Data point that is double-clicked
|
|
1319
1419
|
* @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
|
|
1320
1420
|
* @example
|
|
@@ -1327,6 +1427,7 @@ export declare enum EmbedEvent {
|
|
|
1327
1427
|
VizPointDoubleClick = "vizPointDoubleClick",
|
|
1328
1428
|
/**
|
|
1329
1429
|
* Listen to clicks on a visualization in a Liveboard or Search result.
|
|
1430
|
+
*
|
|
1330
1431
|
* @return viz, clickedPoint - metadata about the point that is clicked
|
|
1331
1432
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1332
1433
|
* @important
|
|
@@ -1347,21 +1448,17 @@ export declare enum EmbedEvent {
|
|
|
1347
1448
|
/**
|
|
1348
1449
|
* An error has occurred. This event is fired for the following error types:
|
|
1349
1450
|
*
|
|
1350
|
-
*
|
|
1351
|
-
*
|
|
1352
|
-
*
|
|
1353
|
-
*
|
|
1354
|
-
*
|
|
1355
|
-
*
|
|
1356
|
-
*
|
|
1357
|
-
* `NON_EXIST_FILTER`: Error due to a non-existent filter.
|
|
1451
|
+
* `API` - API call failure error.
|
|
1452
|
+
* `FULLSCREEN` - Error when presenting a Liveboard or visualization in full screen mode.
|
|
1453
|
+
* `SINGLE_VALUE_FILTER` - Error due to multiple values in the single value filter.
|
|
1454
|
+
* `NON_EXIST_FILTER` - Error due to a non-existent filter.
|
|
1455
|
+
* `INVALID_DATE_VALUE` - Invalid date value error.
|
|
1456
|
+
* `INVALID_OPERATOR` - Use of invalid operator during filter application.
|
|
1358
1457
|
*
|
|
1359
|
-
*
|
|
1458
|
+
* For more information, see https://developers.thoughtspot.com/docs/events-app-integration#errorType
|
|
1360
1459
|
*
|
|
1361
|
-
* `INVALID_OPERATOR`: Use of invalid operator during filter application.
|
|
1362
|
-
*
|
|
1363
|
-
* For more information, see https://developers.thoughtspot.com/docs/events-app-integration#errorType.
|
|
1364
1460
|
* @returns error - An error object or message
|
|
1461
|
+
*
|
|
1365
1462
|
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
1366
1463
|
* @example
|
|
1367
1464
|
* ```js
|
|
@@ -1386,8 +1483,11 @@ export declare enum EmbedEvent {
|
|
|
1386
1483
|
Error = "Error",
|
|
1387
1484
|
/**
|
|
1388
1485
|
* The embedded object has sent an alert.
|
|
1486
|
+
*
|
|
1389
1487
|
* @returns alert - An alert object
|
|
1488
|
+
*
|
|
1390
1489
|
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
1490
|
+
*
|
|
1391
1491
|
* @example
|
|
1392
1492
|
* ```js
|
|
1393
1493
|
* searchEmbed.on(EmbedEvent.Alert)
|
|
@@ -1396,7 +1496,9 @@ export declare enum EmbedEvent {
|
|
|
1396
1496
|
Alert = "alert",
|
|
1397
1497
|
/**
|
|
1398
1498
|
* The ThoughtSpot auth session has expired.
|
|
1499
|
+
*
|
|
1399
1500
|
* @version SDK: 1.4.0 | ThoughtSpot: ts7.sep.cl, 8.4.1.sw
|
|
1501
|
+
*
|
|
1400
1502
|
* @example
|
|
1401
1503
|
*```js
|
|
1402
1504
|
* appEmbed.on(EmbedEvent.AuthExpire, showAuthExpired)
|
|
@@ -1409,22 +1511,26 @@ export declare enum EmbedEvent {
|
|
|
1409
1511
|
AuthExpire = "ThoughtspotAuthExpired",
|
|
1410
1512
|
/**
|
|
1411
1513
|
* ThoughtSpot failed to validate the auth session.
|
|
1514
|
+
*
|
|
1412
1515
|
* @hidden
|
|
1413
1516
|
*/
|
|
1414
1517
|
AuthFailure = "ThoughtspotAuthFailure",
|
|
1415
1518
|
/**
|
|
1416
1519
|
* ThoughtSpot failed to validate the auth session.
|
|
1520
|
+
*
|
|
1417
1521
|
* @hidden
|
|
1418
1522
|
*/
|
|
1419
1523
|
AuthLogout = "ThoughtspotAuthLogout",
|
|
1420
1524
|
/**
|
|
1421
1525
|
* The height of the embedded Liveboard or visualization has been computed.
|
|
1526
|
+
*
|
|
1422
1527
|
* @returns data - The height of the embedded Liveboard or visualization
|
|
1423
1528
|
* @hidden
|
|
1424
1529
|
*/
|
|
1425
1530
|
EmbedHeight = "EMBED_HEIGHT",
|
|
1426
1531
|
/**
|
|
1427
1532
|
* The center of visible iframe viewport is calculated.
|
|
1533
|
+
*
|
|
1428
1534
|
* @returns data - The center of the visible Iframe viewport.
|
|
1429
1535
|
* @hidden
|
|
1430
1536
|
*/
|
|
@@ -1432,6 +1538,7 @@ export declare enum EmbedEvent {
|
|
|
1432
1538
|
/**
|
|
1433
1539
|
* Emitted when the **Get Data** action is initiated.
|
|
1434
1540
|
* Applicable to `SearchBarEmbed` only.
|
|
1541
|
+
*
|
|
1435
1542
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
1436
1543
|
* @example
|
|
1437
1544
|
*```js
|
|
@@ -1444,6 +1551,7 @@ export declare enum EmbedEvent {
|
|
|
1444
1551
|
GetDataClick = "getDataClick",
|
|
1445
1552
|
/**
|
|
1446
1553
|
* Detects the route change.
|
|
1554
|
+
*
|
|
1447
1555
|
* @version SDK: 1.7.0 | ThoughtSpot: 8.0.0.cl, 8.4.1.sw
|
|
1448
1556
|
* @example
|
|
1449
1557
|
*```js
|
|
@@ -1454,13 +1562,15 @@ export declare enum EmbedEvent {
|
|
|
1454
1562
|
RouteChange = "ROUTE_CHANGE",
|
|
1455
1563
|
/**
|
|
1456
1564
|
* The v1 event type for Data
|
|
1565
|
+
*
|
|
1457
1566
|
* @hidden
|
|
1458
1567
|
*/
|
|
1459
1568
|
V1Data = "exportVizDataToParent",
|
|
1460
1569
|
/**
|
|
1461
1570
|
* Emitted when the embed does not have cookie access. This happens
|
|
1462
1571
|
* when Safari and other Web browsers block third-party cookies
|
|
1463
|
-
* are blocked by default.
|
|
1572
|
+
* are blocked by default. `NoCookieAccess` can trigger
|
|
1573
|
+
*
|
|
1464
1574
|
* @example
|
|
1465
1575
|
*```js
|
|
1466
1576
|
* appEmbed.on(EmbedEvent.NoCookieAccess)
|
|
@@ -1470,12 +1580,14 @@ export declare enum EmbedEvent {
|
|
|
1470
1580
|
NoCookieAccess = "noCookieAccess",
|
|
1471
1581
|
/**
|
|
1472
1582
|
* Emitted when SAML is complete
|
|
1583
|
+
*
|
|
1473
1584
|
* @private
|
|
1474
1585
|
* @hidden
|
|
1475
1586
|
*/
|
|
1476
1587
|
SAMLComplete = "samlComplete",
|
|
1477
1588
|
/**
|
|
1478
1589
|
* Emitted when any modal is opened in the app
|
|
1590
|
+
*
|
|
1479
1591
|
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
1480
1592
|
* @example
|
|
1481
1593
|
*```js
|
|
@@ -1487,6 +1599,7 @@ export declare enum EmbedEvent {
|
|
|
1487
1599
|
DialogOpen = "dialog-open",
|
|
1488
1600
|
/**
|
|
1489
1601
|
* Emitted when any modal is closed in the app
|
|
1602
|
+
*
|
|
1490
1603
|
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
1491
1604
|
* @example
|
|
1492
1605
|
*```js
|
|
@@ -1499,7 +1612,8 @@ export declare enum EmbedEvent {
|
|
|
1499
1612
|
/**
|
|
1500
1613
|
* Emitted when the Liveboard shell loads.
|
|
1501
1614
|
* You can use this event as a hook to trigger
|
|
1502
|
-
*
|
|
1615
|
+
* other events on the rendered Liveboard.
|
|
1616
|
+
*
|
|
1503
1617
|
* @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
|
|
1504
1618
|
* @example
|
|
1505
1619
|
*```js
|
|
@@ -1520,6 +1634,7 @@ export declare enum EmbedEvent {
|
|
|
1520
1634
|
LiveboardRendered = "PinboardRendered",
|
|
1521
1635
|
/**
|
|
1522
1636
|
* Emits all events.
|
|
1637
|
+
*
|
|
1523
1638
|
* @Version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
|
|
1524
1639
|
* @example
|
|
1525
1640
|
*```js
|
|
@@ -1531,6 +1646,7 @@ export declare enum EmbedEvent {
|
|
|
1531
1646
|
ALL = "*",
|
|
1532
1647
|
/**
|
|
1533
1648
|
* Emitted when an Answer is saved in the app
|
|
1649
|
+
*
|
|
1534
1650
|
* @Version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1535
1651
|
* @example
|
|
1536
1652
|
*```js
|
|
@@ -1550,10 +1666,11 @@ export declare enum EmbedEvent {
|
|
|
1550
1666
|
/**
|
|
1551
1667
|
* Emitted when the download action is triggered on an answer
|
|
1552
1668
|
*
|
|
1553
|
-
* **Note**:
|
|
1669
|
+
* **Note**: This event is deprecated in v1.21.0.
|
|
1554
1670
|
* To fire an event when a download action is initiated on a chart or table,
|
|
1555
1671
|
* use `EmbedEvent.DownloadAsPng`, `EmbedEvent.DownloadAsPDF`, `EmbedEvent.DownloadAsCSV`,
|
|
1556
1672
|
* or `EmbedEvent.DownloadAsXLSX`
|
|
1673
|
+
*
|
|
1557
1674
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1558
1675
|
* @example
|
|
1559
1676
|
*```js
|
|
@@ -1565,6 +1682,7 @@ export declare enum EmbedEvent {
|
|
|
1565
1682
|
Download = "download",
|
|
1566
1683
|
/**
|
|
1567
1684
|
* Emitted when the download action is triggered on an answer
|
|
1685
|
+
*
|
|
1568
1686
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.0.sw
|
|
1569
1687
|
* @example
|
|
1570
1688
|
*```js
|
|
@@ -1579,6 +1697,7 @@ export declare enum EmbedEvent {
|
|
|
1579
1697
|
DownloadAsPng = "downloadAsPng",
|
|
1580
1698
|
/**
|
|
1581
1699
|
* Emitted when the Download as PDF action is triggered on an answer
|
|
1700
|
+
*
|
|
1582
1701
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1583
1702
|
* @example
|
|
1584
1703
|
*```js
|
|
@@ -1593,6 +1712,7 @@ export declare enum EmbedEvent {
|
|
|
1593
1712
|
DownloadAsPdf = "downloadAsPdf",
|
|
1594
1713
|
/**
|
|
1595
1714
|
* Emitted when the Download as CSV action is triggered on an answer
|
|
1715
|
+
*
|
|
1596
1716
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1597
1717
|
* @example
|
|
1598
1718
|
*```js
|
|
@@ -1607,6 +1727,7 @@ export declare enum EmbedEvent {
|
|
|
1607
1727
|
DownloadAsCsv = "downloadAsCsv",
|
|
1608
1728
|
/**
|
|
1609
1729
|
* Emitted when the Download as XLSX action is triggered on an answer
|
|
1730
|
+
*
|
|
1610
1731
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1611
1732
|
* @example
|
|
1612
1733
|
*```js
|
|
@@ -1621,13 +1742,14 @@ export declare enum EmbedEvent {
|
|
|
1621
1742
|
DownloadAsXlsx = "downloadAsXlsx",
|
|
1622
1743
|
/**
|
|
1623
1744
|
* Emitted when an Answer is deleted in the app
|
|
1745
|
+
*
|
|
1624
1746
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1625
1747
|
* @example
|
|
1626
1748
|
*```js
|
|
1627
1749
|
* //emit when action starts
|
|
1628
1750
|
* appEmbed.on(EmbedEvent.AnswerDelete, payload => {
|
|
1629
1751
|
* console.log('delete answer', payload)}, {start: true })
|
|
1630
|
-
* //
|
|
1752
|
+
* //trigger when action is completed
|
|
1631
1753
|
* appEmbed.on(EmbedEvent.AnswerDelete, payload => {
|
|
1632
1754
|
* console.log('delete answer', payload)})
|
|
1633
1755
|
*```
|
|
@@ -1635,6 +1757,7 @@ export declare enum EmbedEvent {
|
|
|
1635
1757
|
AnswerDelete = "answerDelete",
|
|
1636
1758
|
/**
|
|
1637
1759
|
* Emitted when an answer is pinned to a Liveboard
|
|
1760
|
+
*
|
|
1638
1761
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1639
1762
|
* @example
|
|
1640
1763
|
*```js
|
|
@@ -1653,6 +1776,7 @@ export declare enum EmbedEvent {
|
|
|
1653
1776
|
Pin = "pin",
|
|
1654
1777
|
/**
|
|
1655
1778
|
* Emitted when SpotIQ analysis is triggered
|
|
1779
|
+
*
|
|
1656
1780
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1657
1781
|
* @example
|
|
1658
1782
|
*```js
|
|
@@ -1671,6 +1795,7 @@ export declare enum EmbedEvent {
|
|
|
1671
1795
|
SpotIQAnalyze = "spotIQAnalyze",
|
|
1672
1796
|
/**
|
|
1673
1797
|
* Emitted when a user shares an object with another user or group
|
|
1798
|
+
*
|
|
1674
1799
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1675
1800
|
* @example
|
|
1676
1801
|
*```js
|
|
@@ -1690,6 +1815,7 @@ export declare enum EmbedEvent {
|
|
|
1690
1815
|
/**
|
|
1691
1816
|
* Emitted when a user clicks the **Include** action to include a specific value or
|
|
1692
1817
|
* data on a chart or table.
|
|
1818
|
+
*
|
|
1693
1819
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1694
1820
|
* @example
|
|
1695
1821
|
*```js
|
|
@@ -1702,6 +1828,7 @@ export declare enum EmbedEvent {
|
|
|
1702
1828
|
/**
|
|
1703
1829
|
* Emitted when a user clicks the **Exclude** action to exclude a specific value or
|
|
1704
1830
|
* data on a chart or table
|
|
1831
|
+
*
|
|
1705
1832
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1706
1833
|
* @example
|
|
1707
1834
|
*```js
|
|
@@ -1713,6 +1840,7 @@ export declare enum EmbedEvent {
|
|
|
1713
1840
|
DrillExclude = "context-menu-item-exclude",
|
|
1714
1841
|
/**
|
|
1715
1842
|
* Emitted when a column value is copied in the embedded app.
|
|
1843
|
+
*
|
|
1716
1844
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1717
1845
|
* @example
|
|
1718
1846
|
*```js
|
|
@@ -1723,7 +1851,9 @@ export declare enum EmbedEvent {
|
|
|
1723
1851
|
*/
|
|
1724
1852
|
CopyToClipboard = "context-menu-item-copy-to-clipboard",
|
|
1725
1853
|
/**
|
|
1726
|
-
* Emitted when a user clicks the **Update TML** action
|
|
1854
|
+
* Emitted when a user clicks the **Update TML** action on
|
|
1855
|
+
* embedded Liveboard.
|
|
1856
|
+
*
|
|
1727
1857
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1728
1858
|
* @example
|
|
1729
1859
|
*```js
|
|
@@ -1734,6 +1864,8 @@ export declare enum EmbedEvent {
|
|
|
1734
1864
|
UpdateTML = "updateTSL",
|
|
1735
1865
|
/**
|
|
1736
1866
|
* Emitted when a user clicks the **Edit TML** action
|
|
1867
|
+
* on an embedded Liveboard.
|
|
1868
|
+
*
|
|
1737
1869
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1738
1870
|
* @example
|
|
1739
1871
|
*```js
|
|
@@ -1746,6 +1878,7 @@ export declare enum EmbedEvent {
|
|
|
1746
1878
|
/**
|
|
1747
1879
|
* Emitted when the **Export TML** action is triggered on an
|
|
1748
1880
|
* an embedded object in the app
|
|
1881
|
+
*
|
|
1749
1882
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1750
1883
|
* @example
|
|
1751
1884
|
*```js
|
|
@@ -1760,6 +1893,7 @@ export declare enum EmbedEvent {
|
|
|
1760
1893
|
ExportTML = "exportTSL",
|
|
1761
1894
|
/**
|
|
1762
1895
|
* Emitted when an Answer is saved as a View.
|
|
1896
|
+
*
|
|
1763
1897
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1764
1898
|
* @example
|
|
1765
1899
|
*```js
|
|
@@ -1771,6 +1905,7 @@ export declare enum EmbedEvent {
|
|
|
1771
1905
|
SaveAsView = "saveAsView",
|
|
1772
1906
|
/**
|
|
1773
1907
|
* Emitted when the user creates a copy of an Answer
|
|
1908
|
+
*
|
|
1774
1909
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1775
1910
|
* @example
|
|
1776
1911
|
*```js
|
|
@@ -1785,6 +1920,7 @@ export declare enum EmbedEvent {
|
|
|
1785
1920
|
CopyAEdit = "copyAEdit",
|
|
1786
1921
|
/**
|
|
1787
1922
|
* Emitted when a user clicks Show underlying data on an Answer
|
|
1923
|
+
*
|
|
1788
1924
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1789
1925
|
* @example
|
|
1790
1926
|
*```js
|
|
@@ -1796,6 +1932,7 @@ export declare enum EmbedEvent {
|
|
|
1796
1932
|
ShowUnderlyingData = "showUnderlyingData",
|
|
1797
1933
|
/**
|
|
1798
1934
|
* Emitted when an answer is switched to a chart or table view.
|
|
1935
|
+
*
|
|
1799
1936
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1800
1937
|
* @example
|
|
1801
1938
|
*```js
|
|
@@ -1807,11 +1944,13 @@ export declare enum EmbedEvent {
|
|
|
1807
1944
|
AnswerChartSwitcher = "answerChartSwitcher",
|
|
1808
1945
|
/**
|
|
1809
1946
|
* Internal event to communicate the initial settings back to the ThoughtSpot app
|
|
1947
|
+
*
|
|
1810
1948
|
* @hidden
|
|
1811
1949
|
*/
|
|
1812
1950
|
APP_INIT = "appInit",
|
|
1813
1951
|
/**
|
|
1814
1952
|
* Emitted when a user clicks **Show Liveboard details** on a Liveboard
|
|
1953
|
+
*
|
|
1815
1954
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1816
1955
|
* @example
|
|
1817
1956
|
*```js
|
|
@@ -1823,6 +1962,7 @@ export declare enum EmbedEvent {
|
|
|
1823
1962
|
LiveboardInfo = "pinboardInfo",
|
|
1824
1963
|
/**
|
|
1825
1964
|
* Emitted when a user clicks on the Favorite icon on a Liveboard
|
|
1965
|
+
*
|
|
1826
1966
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1827
1967
|
* @example
|
|
1828
1968
|
*```js
|
|
@@ -1834,6 +1974,7 @@ export declare enum EmbedEvent {
|
|
|
1834
1974
|
AddToFavorites = "addToFavorites",
|
|
1835
1975
|
/**
|
|
1836
1976
|
* Emitted when a user clicks **Schedule** on a Liveboard
|
|
1977
|
+
*
|
|
1837
1978
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1838
1979
|
* @example
|
|
1839
1980
|
*```js
|
|
@@ -1845,6 +1986,7 @@ export declare enum EmbedEvent {
|
|
|
1845
1986
|
Schedule = "subscription",
|
|
1846
1987
|
/**
|
|
1847
1988
|
* Emitted when a user clicks **Edit** on a Liveboard or visualization
|
|
1989
|
+
*
|
|
1848
1990
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1849
1991
|
* @example
|
|
1850
1992
|
*```js
|
|
@@ -1856,6 +1998,7 @@ export declare enum EmbedEvent {
|
|
|
1856
1998
|
Edit = "edit",
|
|
1857
1999
|
/**
|
|
1858
2000
|
* Emitted when a user clicks *Make a copy* on a Liveboard
|
|
2001
|
+
*
|
|
1859
2002
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1860
2003
|
* @example
|
|
1861
2004
|
*```js
|
|
@@ -1867,6 +2010,7 @@ export declare enum EmbedEvent {
|
|
|
1867
2010
|
MakeACopy = "makeACopy",
|
|
1868
2011
|
/**
|
|
1869
2012
|
* Emitted when a user clicks **Present** on a Liveboard or visualization
|
|
2013
|
+
*
|
|
1870
2014
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1871
2015
|
* @example
|
|
1872
2016
|
*```js
|
|
@@ -1882,6 +2026,7 @@ export declare enum EmbedEvent {
|
|
|
1882
2026
|
Present = "present",
|
|
1883
2027
|
/**
|
|
1884
2028
|
* Emitted when a user clicks **Delete** on a visualization
|
|
2029
|
+
*
|
|
1885
2030
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1886
2031
|
* @example
|
|
1887
2032
|
*```js
|
|
@@ -1892,6 +2037,7 @@ export declare enum EmbedEvent {
|
|
|
1892
2037
|
Delete = "delete",
|
|
1893
2038
|
/**
|
|
1894
2039
|
* Emitted when a user clicks Manage schedules on a Liveboard
|
|
2040
|
+
*
|
|
1895
2041
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1896
2042
|
* @example
|
|
1897
2043
|
*```js
|
|
@@ -1901,6 +2047,7 @@ export declare enum EmbedEvent {
|
|
|
1901
2047
|
SchedulesList = "schedule-list",
|
|
1902
2048
|
/**
|
|
1903
2049
|
* Emitted when a user clicks **Cancel** in edit mode on a Liveboard
|
|
2050
|
+
*
|
|
1904
2051
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1905
2052
|
* @example
|
|
1906
2053
|
*```js
|
|
@@ -1910,6 +2057,7 @@ export declare enum EmbedEvent {
|
|
|
1910
2057
|
Cancel = "cancel",
|
|
1911
2058
|
/**
|
|
1912
2059
|
* Emitted when a user clicks **Explore** on a visualization
|
|
2060
|
+
*
|
|
1913
2061
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1914
2062
|
* @example
|
|
1915
2063
|
*```js
|
|
@@ -1920,6 +2068,7 @@ export declare enum EmbedEvent {
|
|
|
1920
2068
|
Explore = "explore",
|
|
1921
2069
|
/**
|
|
1922
2070
|
* Emitted when a user clicks **Copy link** action on a visualization
|
|
2071
|
+
*
|
|
1923
2072
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1924
2073
|
* @example
|
|
1925
2074
|
*```js
|
|
@@ -1930,16 +2079,18 @@ export declare enum EmbedEvent {
|
|
|
1930
2079
|
CopyLink = "embedDocument",
|
|
1931
2080
|
/**
|
|
1932
2081
|
* Emitted when a user interacts with cross filters on a visualization or Liveboard
|
|
2082
|
+
*
|
|
1933
2083
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
|
|
1934
2084
|
* @example
|
|
1935
2085
|
*```js
|
|
1936
|
-
* liveboardEmbed.
|
|
2086
|
+
* liveboardEmbed.trigger(HostEvent.CrossFilterChanged, {
|
|
1937
2087
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1938
2088
|
*```
|
|
1939
2089
|
*/
|
|
1940
2090
|
CrossFilterChanged = "cross-filter-changed",
|
|
1941
2091
|
/**
|
|
1942
2092
|
* Emitted when a user right clicks on a visualization (chart or table)
|
|
2093
|
+
*
|
|
1943
2094
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
|
|
1944
2095
|
* @example
|
|
1945
2096
|
*```js
|
|
@@ -1951,6 +2102,7 @@ export declare enum EmbedEvent {
|
|
|
1951
2102
|
VizPointRightClick = "vizPointRightClick",
|
|
1952
2103
|
/**
|
|
1953
2104
|
* Emitted when a user clicks **Insert to slide** on a visualization
|
|
2105
|
+
*
|
|
1954
2106
|
* @hidden
|
|
1955
2107
|
*/
|
|
1956
2108
|
InsertIntoSlide = "insertInToSlide",
|
|
@@ -1958,6 +2110,7 @@ export declare enum EmbedEvent {
|
|
|
1958
2110
|
* Emitted when a user changes any filter on a Liveboard.
|
|
1959
2111
|
* Returns filter type and name, column name and ID, and runtime
|
|
1960
2112
|
* filter details.
|
|
2113
|
+
*
|
|
1961
2114
|
* @example
|
|
1962
2115
|
*
|
|
1963
2116
|
*```js
|
|
@@ -1966,38 +2119,36 @@ export declare enum EmbedEvent {
|
|
|
1966
2119
|
* })
|
|
1967
2120
|
*
|
|
1968
2121
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.0.sw
|
|
1969
|
-
* @example
|
|
1970
|
-
*
|
|
1971
|
-
*```js
|
|
1972
|
-
* LiveboardEmbed.on(EmbedEvent.FilterChanged, (payload) => {
|
|
1973
|
-
* console.log('payload', payload);
|
|
1974
|
-
* })
|
|
1975
|
-
*```
|
|
1976
2122
|
*/
|
|
1977
2123
|
FilterChanged = "filterChanged",
|
|
1978
2124
|
/**
|
|
1979
2125
|
* Emitted when a user clicks the **Go** button on the Search page
|
|
2126
|
+
*
|
|
1980
2127
|
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
1981
2128
|
*/
|
|
1982
2129
|
SageEmbedQuery = "sageEmbedQuery",
|
|
1983
2130
|
/**
|
|
1984
2131
|
* Emitted when a user selects a data source.
|
|
2132
|
+
*
|
|
1985
2133
|
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
1986
2134
|
*/
|
|
1987
2135
|
SageWorksheetUpdated = "sageWorksheetUpdated",
|
|
1988
2136
|
/**
|
|
1989
2137
|
* Emitted when a user updates a connection on the **Data** page
|
|
2138
|
+
*
|
|
1990
2139
|
* @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
|
|
1991
2140
|
*/
|
|
1992
2141
|
UpdateConnection = "updateConnection",
|
|
1993
2142
|
/**
|
|
1994
2143
|
* Emitted when a user updates a connection on the **Data** page
|
|
2144
|
+
*
|
|
1995
2145
|
* @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
|
|
1996
2146
|
*/
|
|
1997
2147
|
CreateConnection = "createConnection",
|
|
1998
2148
|
/**
|
|
1999
2149
|
* Emitted when name, status (private or public) or filter values of a
|
|
2000
2150
|
* Personalised view is updated.
|
|
2151
|
+
*
|
|
2001
2152
|
* @returns viewName: string
|
|
2002
2153
|
* @returns viewId: string
|
|
2003
2154
|
* @returns liveboardId: string
|
|
@@ -2007,6 +2158,7 @@ export declare enum EmbedEvent {
|
|
|
2007
2158
|
UpdatePersonalisedView = "updatePersonalisedView",
|
|
2008
2159
|
/**
|
|
2009
2160
|
* Emitted when a Personalised view is saved.
|
|
2161
|
+
*
|
|
2010
2162
|
* @returns viewName: string
|
|
2011
2163
|
* @returns viewId: string
|
|
2012
2164
|
* @returns liveboardId: string
|
|
@@ -2016,6 +2168,7 @@ export declare enum EmbedEvent {
|
|
|
2016
2168
|
SavePersonalisedView = "savePersonalisedView",
|
|
2017
2169
|
/**
|
|
2018
2170
|
* Emitted when a Liveboard is reset.
|
|
2171
|
+
*
|
|
2019
2172
|
* @returns viewName: string
|
|
2020
2173
|
* @returns viewId: string
|
|
2021
2174
|
* @returns liveboardId: string
|
|
@@ -2025,6 +2178,7 @@ export declare enum EmbedEvent {
|
|
|
2025
2178
|
ResetLiveboard = "resetLiveboard",
|
|
2026
2179
|
/**
|
|
2027
2180
|
* Emitted when a PersonalisedView is deleted.
|
|
2181
|
+
*
|
|
2028
2182
|
* @returns views: string[]
|
|
2029
2183
|
* @returns liveboardId: string
|
|
2030
2184
|
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
@@ -2032,11 +2186,13 @@ export declare enum EmbedEvent {
|
|
|
2032
2186
|
DeletePersonalisedView = "deletePersonalisedView",
|
|
2033
2187
|
/**
|
|
2034
2188
|
* Emitted when a user creates a new worksheet
|
|
2189
|
+
*
|
|
2035
2190
|
* @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl
|
|
2036
2191
|
*/
|
|
2037
2192
|
CreateWorksheet = "createWorksheet",
|
|
2038
2193
|
/**
|
|
2039
2194
|
* Emitted when Ask Sage is initialized.
|
|
2195
|
+
*
|
|
2040
2196
|
* @returns viewName: string
|
|
2041
2197
|
* @returns viewId: string
|
|
2042
2198
|
* @returns liveboardId: string
|
|
@@ -2046,6 +2202,7 @@ export declare enum EmbedEvent {
|
|
|
2046
2202
|
AskSageInit = "AskSageInit",
|
|
2047
2203
|
/**
|
|
2048
2204
|
* Emitted when a LB/viz is renamed
|
|
2205
|
+
*
|
|
2049
2206
|
* @version SDK : 1.28.0 | ThoughtSpot: 9.10.5.cl
|
|
2050
2207
|
*/
|
|
2051
2208
|
Rename = "rename",
|
|
@@ -2069,6 +2226,7 @@ export declare enum EmbedEvent {
|
|
|
2069
2226
|
OnBeforeGetVizDataIntercept = "onBeforeGetVizDataIntercept",
|
|
2070
2227
|
/**
|
|
2071
2228
|
* Emitted when runtime parameters changes
|
|
2229
|
+
*
|
|
2072
2230
|
* @version SDK : 1.29.0 | Thoughtspot : 10.1.0.cl
|
|
2073
2231
|
*/
|
|
2074
2232
|
ParameterChanged = "ParameterChanged"
|
|
@@ -2080,6 +2238,7 @@ export declare enum EmbedEvent {
|
|
|
2080
2238
|
* To trigger an event use the corresponding
|
|
2081
2239
|
* {@link LiveboardEmbed.trigger} or {@link AppEmbed.trigger} or {@link
|
|
2082
2240
|
* SearchEmbed.trigger} method.
|
|
2241
|
+
*
|
|
2083
2242
|
* @example
|
|
2084
2243
|
* ```js
|
|
2085
2244
|
* import { HostEvent } from '@thoughtspot/visual-embed-sdk';
|
|
@@ -2100,6 +2259,7 @@ export declare enum HostEvent {
|
|
|
2100
2259
|
* the search query string.
|
|
2101
2260
|
* Supported in `AppEmbed` and `SearchEmbed` deployments.
|
|
2102
2261
|
* Includes the following properties:
|
|
2262
|
+
*
|
|
2103
2263
|
* @param - `searchQuery` - query string with search tokens
|
|
2104
2264
|
* @param - `dataSources` - Data source GUID to Search on
|
|
2105
2265
|
* - Although an array, only a single source
|
|
@@ -2118,6 +2278,7 @@ export declare enum HostEvent {
|
|
|
2118
2278
|
/**
|
|
2119
2279
|
* Triggers a drill on certain points of the specified column
|
|
2120
2280
|
* Includes the following properties:
|
|
2281
|
+
*
|
|
2121
2282
|
* @param - points - an object containing selectedPoints/clickedPoints
|
|
2122
2283
|
* to drill to. For example, { selectedPoints: []}
|
|
2123
2284
|
* @param - columnGuid - Optional. GUID of the column to drill
|
|
@@ -2167,16 +2328,19 @@ export declare enum HostEvent {
|
|
|
2167
2328
|
DrillDown = "triggerDrillDown",
|
|
2168
2329
|
/**
|
|
2169
2330
|
* Apply filters
|
|
2331
|
+
*
|
|
2170
2332
|
* @hidden
|
|
2171
2333
|
*/
|
|
2172
2334
|
Filter = "filter",
|
|
2173
2335
|
/**
|
|
2174
2336
|
* Reload the answer or visualization
|
|
2337
|
+
*
|
|
2175
2338
|
* @hidden
|
|
2176
2339
|
*/
|
|
2177
2340
|
Reload = "reload",
|
|
2178
2341
|
/**
|
|
2179
2342
|
* Display specific visualizations on a Liveboard.
|
|
2343
|
+
*
|
|
2180
2344
|
* @param - An array of GUIDs of the visualization to show. The visualization IDs not passed
|
|
2181
2345
|
* in this parameter will be hidden.
|
|
2182
2346
|
* @example
|
|
@@ -2190,6 +2354,7 @@ export declare enum HostEvent {
|
|
|
2190
2354
|
SetVisibleVizs = "SetPinboardVisibleVizs",
|
|
2191
2355
|
/**
|
|
2192
2356
|
* Set a Liveboard tab as an active tab.
|
|
2357
|
+
*
|
|
2193
2358
|
* @param - tabId - string of id of Tab to show
|
|
2194
2359
|
* @example
|
|
2195
2360
|
* ```js
|
|
@@ -2210,16 +2375,17 @@ export declare enum HostEvent {
|
|
|
2210
2375
|
* _String_. The name of the column to filter on.
|
|
2211
2376
|
*
|
|
2212
2377
|
* `operator`
|
|
2213
|
-
*
|
|
2214
|
-
*
|
|
2378
|
+
* Runtime filter operator to apply. For information,
|
|
2379
|
+
* see link:https://developers.thoughtspot.com/docs/?pageid=runtime-filters#rtOperator[Developer Documentation].
|
|
2215
2380
|
*
|
|
2216
2381
|
* `values`
|
|
2217
|
-
*
|
|
2218
|
-
*
|
|
2382
|
+
* List of operands. Some operators such as EQ, LE allow a single value, whereas
|
|
2383
|
+
* operators such as BW and IN accept multiple operands.
|
|
2384
|
+
*
|
|
2385
|
+
* **Note**: `HostEvent.UpdateRuntimeFilters` is not supported in
|
|
2386
|
+
* Search embedding (SearchEmbed) and Natural Language Search
|
|
2387
|
+
* embedding (SageEmbed).
|
|
2219
2388
|
*
|
|
2220
|
-
* **Note**: `HostEvent.UpdateRuntimeFilters` is not supported in
|
|
2221
|
-
* Search embedding (SearchEmbed) and Natural Language Search
|
|
2222
|
-
* embedding (SageEmbed).
|
|
2223
2389
|
* @param - {@link RuntimeFilter}[] an array of {@link RuntimeFilter} Types.
|
|
2224
2390
|
* @example
|
|
2225
2391
|
* ```js
|
|
@@ -2235,6 +2401,7 @@ export declare enum HostEvent {
|
|
|
2235
2401
|
/**
|
|
2236
2402
|
* Navigate to a specific page in the embedded ThoughtSpot application.
|
|
2237
2403
|
* This is the same as calling `appEmbed.navigateToPage(path, true)`
|
|
2404
|
+
*
|
|
2238
2405
|
* @param - `path` - the path to navigate to to go forward or back. The path value can
|
|
2239
2406
|
* be a number; for example, `1`, `-1`.
|
|
2240
2407
|
* @example
|
|
@@ -2247,6 +2414,7 @@ export declare enum HostEvent {
|
|
|
2247
2414
|
/**
|
|
2248
2415
|
* Open the filter panel for a particular column.
|
|
2249
2416
|
* Works with Search and Liveboard embed.
|
|
2417
|
+
*
|
|
2250
2418
|
* @param - { columnId: string,
|
|
2251
2419
|
* name: string,
|
|
2252
2420
|
* type: INT64/CHAR/DATE,
|
|
@@ -2263,6 +2431,7 @@ export declare enum HostEvent {
|
|
|
2263
2431
|
OpenFilter = "openFilter",
|
|
2264
2432
|
/**
|
|
2265
2433
|
* Add columns to the current search query.
|
|
2434
|
+
*
|
|
2266
2435
|
* @param - { columnIds: string[] }
|
|
2267
2436
|
* @example
|
|
2268
2437
|
* ```js
|
|
@@ -2273,6 +2442,7 @@ export declare enum HostEvent {
|
|
|
2273
2442
|
AddColumns = "addColumns",
|
|
2274
2443
|
/**
|
|
2275
2444
|
* Remove a column from the current search query.
|
|
2445
|
+
*
|
|
2276
2446
|
* @param - { columnId: string }
|
|
2277
2447
|
* @example
|
|
2278
2448
|
* ```js
|
|
@@ -2287,6 +2457,7 @@ export declare enum HostEvent {
|
|
|
2287
2457
|
* Liveboard filters, runtime filters applied on visualizations on a
|
|
2288
2458
|
* Liveboard, and Liveboard layout, changes to visualizations such as
|
|
2289
2459
|
* sorting, toggling of legends, and data drill down.
|
|
2460
|
+
*
|
|
2290
2461
|
* @example
|
|
2291
2462
|
* ```js
|
|
2292
2463
|
* liveboardEmbed.trigger(HostEvent.getexportrequestforcurrentpinboard).then(
|
|
@@ -2297,6 +2468,7 @@ export declare enum HostEvent {
|
|
|
2297
2468
|
getExportRequestForCurrentPinboard = "getExportRequestForCurrentPinboard",
|
|
2298
2469
|
/**
|
|
2299
2470
|
* Trigger the **Pin** action on an embedded object
|
|
2471
|
+
*
|
|
2300
2472
|
* @param - Liveboard embed takes the `vizId` as a
|
|
2301
2473
|
* key. Can be left undefined when embedding Search, full app, or
|
|
2302
2474
|
* a visualization.
|
|
@@ -2313,6 +2485,7 @@ export declare enum HostEvent {
|
|
|
2313
2485
|
/**
|
|
2314
2486
|
* Trigger the **Show Liveboard details** action
|
|
2315
2487
|
* on an embedded Liveboard.
|
|
2488
|
+
*
|
|
2316
2489
|
* @example
|
|
2317
2490
|
*```js
|
|
2318
2491
|
* liveboardEmbed.trigger(HostEvent.LiveboardInfo)
|
|
@@ -2322,6 +2495,7 @@ export declare enum HostEvent {
|
|
|
2322
2495
|
LiveboardInfo = "pinboardInfo",
|
|
2323
2496
|
/**
|
|
2324
2497
|
* Trigger the **Schedule** action on an embedded Liveboard.
|
|
2498
|
+
*
|
|
2325
2499
|
* @example
|
|
2326
2500
|
* ```js
|
|
2327
2501
|
* liveboardEmbed.trigger(HostEvent.Schedule)
|
|
@@ -2331,6 +2505,7 @@ export declare enum HostEvent {
|
|
|
2331
2505
|
Schedule = "subscription",
|
|
2332
2506
|
/**
|
|
2333
2507
|
* Trigger the **Manage schedule** action on an embedded Liveboard
|
|
2508
|
+
*
|
|
2334
2509
|
* @example
|
|
2335
2510
|
* ```js
|
|
2336
2511
|
* liveboardEmbed.trigger(HostEvent.ScheduleList)
|
|
@@ -2339,16 +2514,22 @@ export declare enum HostEvent {
|
|
|
2339
2514
|
*/
|
|
2340
2515
|
SchedulesList = "schedule-list",
|
|
2341
2516
|
/**
|
|
2342
|
-
* Trigger the **Export TML** action on an embedded Liveboard
|
|
2517
|
+
* Trigger the **Export TML** action on an embedded Liveboard or
|
|
2518
|
+
* Answer.
|
|
2519
|
+
*
|
|
2343
2520
|
* @example
|
|
2344
2521
|
* ```js
|
|
2345
2522
|
* liveboardEmbed.trigger(HostEvent.ExportTML)
|
|
2346
2523
|
* ```
|
|
2524
|
+
*
|
|
2347
2525
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2348
2526
|
*/
|
|
2349
2527
|
ExportTML = "exportTSL",
|
|
2350
2528
|
/**
|
|
2351
|
-
* Trigger the **Edit TML** action on an embedded Liveboard
|
|
2529
|
+
* Trigger the **Edit TML** action on an embedded Liveboard or
|
|
2530
|
+
* saved Answers in the full application embedding.
|
|
2531
|
+
*
|
|
2532
|
+
*
|
|
2352
2533
|
* @example
|
|
2353
2534
|
* ```js
|
|
2354
2535
|
* liveboardEmbed.trigger(HostEvent.EditTML)
|
|
@@ -2358,6 +2539,7 @@ export declare enum HostEvent {
|
|
|
2358
2539
|
EditTML = "editTSL",
|
|
2359
2540
|
/**
|
|
2360
2541
|
* Trigger the **Update TML** action on an embedded Liveboard.
|
|
2542
|
+
*
|
|
2361
2543
|
* @example
|
|
2362
2544
|
* ```js
|
|
2363
2545
|
* liveboardEmbed.trigger(HostEvent.UpdateTML)
|
|
@@ -2366,7 +2548,12 @@ export declare enum HostEvent {
|
|
|
2366
2548
|
*/
|
|
2367
2549
|
UpdateTML = "updateTSL",
|
|
2368
2550
|
/**
|
|
2369
|
-
* Trigger the **Download PDF** action on an embedded Liveboard
|
|
2551
|
+
* Trigger the **Download PDF** action on an embedded Liveboard,
|
|
2552
|
+
* visualization or Answer.
|
|
2553
|
+
*
|
|
2554
|
+
* **NOTE**: The **Download** > **PDF** action is available on
|
|
2555
|
+
* visualizations and Answers if the data is in tabular format.
|
|
2556
|
+
*
|
|
2370
2557
|
* @example
|
|
2371
2558
|
* ```js
|
|
2372
2559
|
* liveboardEmbed.trigger(HostEvent.DownloadAsPdf)
|
|
@@ -2377,6 +2564,7 @@ export declare enum HostEvent {
|
|
|
2377
2564
|
/**
|
|
2378
2565
|
* Trigger the **Make a copy** action on a Liveboard, Search, or
|
|
2379
2566
|
* visualization page.
|
|
2567
|
+
*
|
|
2380
2568
|
* @example
|
|
2381
2569
|
* ```js
|
|
2382
2570
|
* liveboardEmbed.trigger(HostEvent.MakeACopy, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
@@ -2392,6 +2580,7 @@ export declare enum HostEvent {
|
|
|
2392
2580
|
MakeACopy = "makeACopy",
|
|
2393
2581
|
/**
|
|
2394
2582
|
* Trigger the **Delete** action for a Liveboard.
|
|
2583
|
+
*
|
|
2395
2584
|
* @example
|
|
2396
2585
|
* ```js
|
|
2397
2586
|
* appEmbed.trigger(HostEvent.Remove)
|
|
@@ -2401,6 +2590,7 @@ export declare enum HostEvent {
|
|
|
2401
2590
|
Remove = "delete",
|
|
2402
2591
|
/**
|
|
2403
2592
|
* Trigger the **Explore** action on a visualization.
|
|
2593
|
+
*
|
|
2404
2594
|
* @param - an object with `vizId` as a key
|
|
2405
2595
|
* @example
|
|
2406
2596
|
* ```js
|
|
@@ -2411,6 +2601,7 @@ export declare enum HostEvent {
|
|
|
2411
2601
|
Explore = "explore",
|
|
2412
2602
|
/**
|
|
2413
2603
|
* Trigger the **Create alert** action on a visualization
|
|
2604
|
+
*
|
|
2414
2605
|
* @param - an object with `vizId` as a key
|
|
2415
2606
|
* @example
|
|
2416
2607
|
* ```js
|
|
@@ -2423,6 +2614,7 @@ export declare enum HostEvent {
|
|
|
2423
2614
|
CreateMonitor = "createMonitor",
|
|
2424
2615
|
/**
|
|
2425
2616
|
* Trigger the **Manage alerts** action on a visualization
|
|
2617
|
+
*
|
|
2426
2618
|
* @param - an object with `vizId` as a key
|
|
2427
2619
|
* @example
|
|
2428
2620
|
* ```js
|
|
@@ -2434,11 +2626,14 @@ export declare enum HostEvent {
|
|
|
2434
2626
|
*/
|
|
2435
2627
|
ManageMonitor = "manageMonitor",
|
|
2436
2628
|
/**
|
|
2437
|
-
* Trigger the **Edit** action on a Liveboard or visualization
|
|
2629
|
+
* Trigger the **Edit** action on a Liveboard or a visualization
|
|
2630
|
+
* on a Liveboard.
|
|
2631
|
+
*
|
|
2632
|
+
* This event is not supported in visualization embed and search embed.
|
|
2633
|
+
*
|
|
2438
2634
|
* @param - object - To trigger the action for a specific visualization
|
|
2439
2635
|
* in Liveboard embed, pass in `vizId` as a key.
|
|
2440
|
-
*
|
|
2441
|
-
* a visualization.
|
|
2636
|
+
*
|
|
2442
2637
|
* @example
|
|
2443
2638
|
* ```js
|
|
2444
2639
|
* liveboardEmbed.trigger(HostEvent.Edit)
|
|
@@ -2447,14 +2642,12 @@ export declare enum HostEvent {
|
|
|
2447
2642
|
* liveboardEmbed.trigger(HostEvent.Edit, {vizId:
|
|
2448
2643
|
* '730496d6-6903-4601-937e-2c691821af3c'})
|
|
2449
2644
|
* ```
|
|
2450
|
-
* ```js
|
|
2451
|
-
* vizEmbed.trigger((HostEvent.Edit)
|
|
2452
|
-
* ```
|
|
2453
2645
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2454
2646
|
*/
|
|
2455
2647
|
Edit = "edit",
|
|
2456
2648
|
/**
|
|
2457
2649
|
* Trigger the **Copy link** action on a Liveboard or visualization
|
|
2650
|
+
*
|
|
2458
2651
|
* @param - object - to trigger the action for a
|
|
2459
2652
|
* specific visualization in Liveboard embed, pass in `vizId` as a key
|
|
2460
2653
|
* @example
|
|
@@ -2472,6 +2665,7 @@ export declare enum HostEvent {
|
|
|
2472
2665
|
CopyLink = "embedDocument",
|
|
2473
2666
|
/**
|
|
2474
2667
|
* Trigger the **Present** action on a Liveboard or visualization
|
|
2668
|
+
*
|
|
2475
2669
|
* @param - object - to trigger the action for a specific visualization
|
|
2476
2670
|
* in Liveboard embed, pass in `vizId` as a key
|
|
2477
2671
|
* @example
|
|
@@ -2489,6 +2683,7 @@ export declare enum HostEvent {
|
|
|
2489
2683
|
Present = "present",
|
|
2490
2684
|
/**
|
|
2491
2685
|
* Get TML for the current search.
|
|
2686
|
+
*
|
|
2492
2687
|
* @example
|
|
2493
2688
|
* ```js
|
|
2494
2689
|
* searchEmbed.trigger(HostEvent.GetTML).then((tml) => {
|
|
@@ -2503,6 +2698,7 @@ export declare enum HostEvent {
|
|
|
2503
2698
|
GetTML = "getTML",
|
|
2504
2699
|
/**
|
|
2505
2700
|
* Trigger the **Show underlying data** action on visualization or search
|
|
2701
|
+
*
|
|
2506
2702
|
* @param - an object with vizId as a key
|
|
2507
2703
|
* @example
|
|
2508
2704
|
* ```js
|
|
@@ -2522,6 +2718,7 @@ export declare enum HostEvent {
|
|
|
2522
2718
|
* Trigger the **Delete** action for a visualization
|
|
2523
2719
|
* in an embedded Liveboard, or a chart or table
|
|
2524
2720
|
* generated from Search.
|
|
2721
|
+
*
|
|
2525
2722
|
* @param - Liveboard embed takes an object with `vizId` as a key.
|
|
2526
2723
|
* Can be left empty if embedding Search or visualization.
|
|
2527
2724
|
* @example
|
|
@@ -2538,6 +2735,7 @@ export declare enum HostEvent {
|
|
|
2538
2735
|
/**
|
|
2539
2736
|
* Trigger the **SpotIQ analyze** action on visualization
|
|
2540
2737
|
* or search.
|
|
2738
|
+
*
|
|
2541
2739
|
* @param - Liveboard embed takes `vizId` as a
|
|
2542
2740
|
* key. Can be left undefined when embedding Search or
|
|
2543
2741
|
* visualization.
|
|
@@ -2558,6 +2756,7 @@ export declare enum HostEvent {
|
|
|
2558
2756
|
/**
|
|
2559
2757
|
* Trigger the **Download** action on charts in
|
|
2560
2758
|
* the embedded view.
|
|
2759
|
+
*
|
|
2561
2760
|
* @example
|
|
2562
2761
|
* ```js
|
|
2563
2762
|
* liveboardEmbed.trigger(HostEvent.Download, {vizId:
|
|
@@ -2574,6 +2773,7 @@ export declare enum HostEvent {
|
|
|
2574
2773
|
/**
|
|
2575
2774
|
* Trigger the **Download** > **PNG** action on
|
|
2576
2775
|
* charts in the embedded view.
|
|
2776
|
+
*
|
|
2577
2777
|
* @example
|
|
2578
2778
|
* ```js
|
|
2579
2779
|
* liveboardEmbed.trigger(HostEvent.DownloadAsPng,
|
|
@@ -2589,6 +2789,7 @@ export declare enum HostEvent {
|
|
|
2589
2789
|
/**
|
|
2590
2790
|
* Trigger the **Download** > **CSV** action on tables in
|
|
2591
2791
|
* the embedded view.
|
|
2792
|
+
*
|
|
2592
2793
|
* @example
|
|
2593
2794
|
* ```js
|
|
2594
2795
|
* liveboardEmbed.trigger(HostEvent.DownloadAsCsv, {vizId:
|
|
@@ -2606,6 +2807,7 @@ export declare enum HostEvent {
|
|
|
2606
2807
|
/**
|
|
2607
2808
|
* Trigger the **Download** > **XLSX** action on tables
|
|
2608
2809
|
* in the embedded view.
|
|
2810
|
+
*
|
|
2609
2811
|
* @example
|
|
2610
2812
|
* ```js
|
|
2611
2813
|
* liveboardEmbed.trigger(HostEvent.DownloadAsXlsx, {vizId:
|
|
@@ -2623,6 +2825,7 @@ export declare enum HostEvent {
|
|
|
2623
2825
|
/**
|
|
2624
2826
|
* Trigger the **Share** action on an embedded
|
|
2625
2827
|
* Liveboard or Answer.
|
|
2828
|
+
*
|
|
2626
2829
|
* @example
|
|
2627
2830
|
* ```js
|
|
2628
2831
|
* liveboardEmbed.trigger(HostEvent.Share)
|
|
@@ -2636,6 +2839,7 @@ export declare enum HostEvent {
|
|
|
2636
2839
|
/**
|
|
2637
2840
|
* Trigger the **Save** action on a Liveboard or Answer.
|
|
2638
2841
|
* Saves the changes.
|
|
2842
|
+
*
|
|
2639
2843
|
* @example
|
|
2640
2844
|
* ```js
|
|
2641
2845
|
* liveboardEmbed.trigger(HostEvent.Save)
|
|
@@ -2649,6 +2853,7 @@ export declare enum HostEvent {
|
|
|
2649
2853
|
/**
|
|
2650
2854
|
* Trigger the **Sync to Sheets** action on an embedded visualization or Answer
|
|
2651
2855
|
* Sends data from an Answer or Liveboard visualization to a Google sheet.
|
|
2856
|
+
*
|
|
2652
2857
|
* @param - an object with `vizId` as a key
|
|
2653
2858
|
* @example
|
|
2654
2859
|
* ```js
|
|
@@ -2665,6 +2870,7 @@ export declare enum HostEvent {
|
|
|
2665
2870
|
* Trigger the **Sync to Other Apps** action on an embedded visualization or Answer
|
|
2666
2871
|
* Sends data from an Answer or Liveboard visualization to third-party apps such
|
|
2667
2872
|
* as Slack, Salesforce, Microsoft Teams, ServiceNow and so on.
|
|
2873
|
+
*
|
|
2668
2874
|
* @param - an object with vizId as a key
|
|
2669
2875
|
* @example
|
|
2670
2876
|
* ```js
|
|
@@ -2681,6 +2887,7 @@ export declare enum HostEvent {
|
|
|
2681
2887
|
* Trigger the **Manage pipelines** action on an embedded
|
|
2682
2888
|
* visualization or Answer.
|
|
2683
2889
|
* Allows users to manage ThoughtSpot Sync pipelines.
|
|
2890
|
+
*
|
|
2684
2891
|
* @param - an object with `vizId` as a key
|
|
2685
2892
|
* @example
|
|
2686
2893
|
* ```js
|
|
@@ -2695,6 +2902,7 @@ export declare enum HostEvent {
|
|
|
2695
2902
|
ManagePipelines = "manage-pipeline",
|
|
2696
2903
|
/**
|
|
2697
2904
|
* Reset search operation on the Search or Answer page.
|
|
2905
|
+
*
|
|
2698
2906
|
* @example
|
|
2699
2907
|
* ```js
|
|
2700
2908
|
* searchEmbed.trigger(HostEvent.ResetSearch)
|
|
@@ -2706,17 +2914,21 @@ export declare enum HostEvent {
|
|
|
2706
2914
|
*/
|
|
2707
2915
|
ResetSearch = "resetSearch",
|
|
2708
2916
|
/**
|
|
2709
|
-
* Get details of
|
|
2917
|
+
* Get details of filters applied on the Liveboard.
|
|
2918
|
+
* Returns arrays containing Liveboard filter and runtime filter elements.
|
|
2919
|
+
*
|
|
2710
2920
|
* @example
|
|
2711
2921
|
* ```js
|
|
2712
2922
|
* const data = await liveboardEmbed.trigger(HostEvent.GetFilters);
|
|
2713
2923
|
* console.log('data', data);
|
|
2714
2924
|
* ```
|
|
2925
|
+
*
|
|
2715
2926
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
2716
2927
|
*/
|
|
2717
2928
|
GetFilters = "getFilters",
|
|
2718
2929
|
/**
|
|
2719
2930
|
* Update one or several filters applied on a Liveboard.
|
|
2931
|
+
*
|
|
2720
2932
|
* @param - `filter`: a single filter object containing column name,
|
|
2721
2933
|
* filter operator, and values.
|
|
2722
2934
|
* @param - `filters`: multiple filter objects with column name, filter operator,
|
|
@@ -2728,11 +2940,12 @@ export declare enum HostEvent {
|
|
|
2728
2940
|
*
|
|
2729
2941
|
* `oper` - Filter operator, for example, EQ, IN, CONTAINS.
|
|
2730
2942
|
* For information about the supported filter operators,
|
|
2731
|
-
* see
|
|
2943
|
+
* see link:https://developers.thoughtspot.com/docs/runtime-filters#rtOperator[Developer Documentation].
|
|
2732
2944
|
*
|
|
2733
2945
|
* `values` - An array of one or several values. The value definition on the
|
|
2734
2946
|
* data type you choose to filter on. For a complete list of supported data types,
|
|
2735
|
-
* see
|
|
2947
|
+
* see link:https://developers.thoughtspot.com/docs/runtime-filters#_supported_data_types[Developer Documentation].
|
|
2948
|
+
*
|
|
2736
2949
|
* @example
|
|
2737
2950
|
* ```js
|
|
2738
2951
|
*
|
|
@@ -2744,6 +2957,7 @@ export declare enum HostEvent {
|
|
|
2744
2957
|
* }
|
|
2745
2958
|
* });
|
|
2746
2959
|
* ```
|
|
2960
|
+
*
|
|
2747
2961
|
* @example
|
|
2748
2962
|
*
|
|
2749
2963
|
* ```js
|
|
@@ -2765,11 +2979,13 @@ export declare enum HostEvent {
|
|
|
2765
2979
|
* }]
|
|
2766
2980
|
* });
|
|
2767
2981
|
* ```
|
|
2982
|
+
*
|
|
2768
2983
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
2769
2984
|
*/
|
|
2770
2985
|
UpdateFilters = "updateFilters",
|
|
2771
2986
|
/**
|
|
2772
2987
|
* Get tab details for the current Liveboard.
|
|
2988
|
+
*
|
|
2773
2989
|
* @example
|
|
2774
2990
|
* ```js
|
|
2775
2991
|
* liveboardEmbed.trigger(HostEvent.GetTabs).then((tabDetails) => {
|
|
@@ -2783,6 +2999,7 @@ export declare enum HostEvent {
|
|
|
2783
2999
|
GetTabs = "getTabs",
|
|
2784
3000
|
/**
|
|
2785
3001
|
* Set the visible tabs on a Liveboard.
|
|
3002
|
+
*
|
|
2786
3003
|
* @param - an array of ids of tabs to show, the IDs not passed
|
|
2787
3004
|
* will be hidden.
|
|
2788
3005
|
* @example
|
|
@@ -2796,6 +3013,7 @@ export declare enum HostEvent {
|
|
|
2796
3013
|
SetVisibleTabs = "SetPinboardVisibleTabs",
|
|
2797
3014
|
/**
|
|
2798
3015
|
* Set the hidden tabs on a Liveboard.
|
|
3016
|
+
*
|
|
2799
3017
|
* @param - an array of the IDs of the tabs to hide.
|
|
2800
3018
|
* The IDs not passed will be shown.
|
|
2801
3019
|
* @example
|
|
@@ -2809,6 +3027,7 @@ export declare enum HostEvent {
|
|
|
2809
3027
|
SetHiddenTabs = "SetPinboardHiddenTabs",
|
|
2810
3028
|
/**
|
|
2811
3029
|
* Updates the search query string for Natural Language Search operations.
|
|
3030
|
+
*
|
|
2812
3031
|
* @param - `queryString`: Text string in Natural Language format
|
|
2813
3032
|
* @param - `executeSearch`: Boolean to execute search and update search query
|
|
2814
3033
|
* @example
|
|
@@ -2823,6 +3042,7 @@ export declare enum HostEvent {
|
|
|
2823
3042
|
UpdateSageQuery = "updateSageQuery",
|
|
2824
3043
|
/**
|
|
2825
3044
|
* Get the answer session for a Search / Visualization.
|
|
3045
|
+
*
|
|
2826
3046
|
* @example
|
|
2827
3047
|
* ```js
|
|
2828
3048
|
* const {session} = await embed.trigger(
|
|
@@ -2835,6 +3055,7 @@ export declare enum HostEvent {
|
|
|
2835
3055
|
GetAnswerSession = "getAnswerSession",
|
|
2836
3056
|
/**
|
|
2837
3057
|
* Trigger Ask Sage for viz
|
|
3058
|
+
*
|
|
2838
3059
|
* @example
|
|
2839
3060
|
* ```js
|
|
2840
3061
|
* liveboardEmbed.trigger(HostEvent.AskSage,
|
|
@@ -2845,6 +3066,7 @@ export declare enum HostEvent {
|
|
|
2845
3066
|
AskSage = "AskSage",
|
|
2846
3067
|
/**
|
|
2847
3068
|
* Trigger UpdateCrossFilter for Liveboard
|
|
3069
|
+
*
|
|
2848
3070
|
* @example
|
|
2849
3071
|
* ```js
|
|
2850
3072
|
* liveboardEmbed.trigger(HostEvent.UpdateCrossFilter, {
|
|
@@ -2860,6 +3082,7 @@ export declare enum HostEvent {
|
|
|
2860
3082
|
UpdateCrossFilter = "UpdateCrossFilter",
|
|
2861
3083
|
/**
|
|
2862
3084
|
* Trigger ResetLiveboardPersonalisedView for Liveboard
|
|
3085
|
+
*
|
|
2863
3086
|
* @example
|
|
2864
3087
|
* ```js
|
|
2865
3088
|
* liveboardEmbed.trigger(HostEvent.ResetLiveboardPersonalisedView);
|
|
@@ -2869,6 +3092,7 @@ export declare enum HostEvent {
|
|
|
2869
3092
|
ResetLiveboardPersonalisedView = "ResetLiveboardPersonalisedView",
|
|
2870
3093
|
/**
|
|
2871
3094
|
* Trigger CreateLiveboard for liveboard list page & Pin Modal
|
|
3095
|
+
*
|
|
2872
3096
|
* @example
|
|
2873
3097
|
* ```js
|
|
2874
3098
|
* liveboardEmbed.trigger(HostEvent.CreateLiveboard);
|
|
@@ -3009,6 +3233,7 @@ export declare enum Param {
|
|
|
3009
3233
|
* specific actions in the embedded view, define the Action
|
|
3010
3234
|
* enumeration members in the `disabledActions`, `visibleActions`,
|
|
3011
3235
|
* or `hiddenActions` array.
|
|
3236
|
+
*
|
|
3012
3237
|
* @example
|
|
3013
3238
|
* ```js
|
|
3014
3239
|
* const embed = new LiveboardEmbed('#embed-container', {
|
|
@@ -3032,6 +3257,7 @@ export declare enum Action {
|
|
|
3032
3257
|
/**
|
|
3033
3258
|
* The **Save** action on an Answer or Liveboard.
|
|
3034
3259
|
* Allows users to save the changes.
|
|
3260
|
+
*
|
|
3035
3261
|
* @example
|
|
3036
3262
|
* ```js
|
|
3037
3263
|
* disabledActions: [Action.Save]
|
|
@@ -3048,7 +3274,9 @@ export declare enum Action {
|
|
|
3048
3274
|
SaveUntitled = "saveUntitled",
|
|
3049
3275
|
/**
|
|
3050
3276
|
* The **Save as View** action on the Answer
|
|
3051
|
-
* page. Saves an Answer as a View object
|
|
3277
|
+
* page. Saves an Answer as a View object in the full
|
|
3278
|
+
* application embedding mode.
|
|
3279
|
+
*
|
|
3052
3280
|
* @example
|
|
3053
3281
|
* ```js
|
|
3054
3282
|
* disabledActions: [Action.SaveAsView]
|
|
@@ -3062,6 +3290,7 @@ export declare enum Action {
|
|
|
3062
3290
|
* visualizations in the embedded Liveboard view.
|
|
3063
3291
|
* In AppEmbed, the **Make a copy** action is available on both
|
|
3064
3292
|
* Liveboards and visualizations.
|
|
3293
|
+
*
|
|
3065
3294
|
* @example
|
|
3066
3295
|
* ```js
|
|
3067
3296
|
* disabledActions: [Action.MakeACopy]
|
|
@@ -3071,6 +3300,7 @@ export declare enum Action {
|
|
|
3071
3300
|
/**
|
|
3072
3301
|
* The **Copy and Edit** action on a Liveboard.
|
|
3073
3302
|
* This action is now replaced with `Action.MakeACopy`.
|
|
3303
|
+
*
|
|
3074
3304
|
* @example
|
|
3075
3305
|
* ```js
|
|
3076
3306
|
* disabledActions: [Action.EditACopy]
|
|
@@ -3080,6 +3310,7 @@ export declare enum Action {
|
|
|
3080
3310
|
/**
|
|
3081
3311
|
* The **Copy link** menu action on a Liveboard visualization.
|
|
3082
3312
|
* Copies the visualization URL
|
|
3313
|
+
*
|
|
3083
3314
|
* @example
|
|
3084
3315
|
* ```js
|
|
3085
3316
|
* disabledActions: [Action.CopyLink]
|
|
@@ -3093,6 +3324,7 @@ export declare enum Action {
|
|
|
3093
3324
|
/**
|
|
3094
3325
|
* The **Schedule** menu action on a Liveboard.
|
|
3095
3326
|
* Allows scheduling a Liveboard notification.
|
|
3327
|
+
*
|
|
3096
3328
|
* @example
|
|
3097
3329
|
* ```js
|
|
3098
3330
|
* disabledActions: [Action.Schedule]
|
|
@@ -3102,6 +3334,7 @@ export declare enum Action {
|
|
|
3102
3334
|
/**
|
|
3103
3335
|
* The **Manage schedules** menu action on a Liveboard.
|
|
3104
3336
|
* Allows users to manage scheduled Liveboard jobs.
|
|
3337
|
+
*
|
|
3105
3338
|
* @example
|
|
3106
3339
|
* ```js
|
|
3107
3340
|
* disabledActions: [Action.SchedulesList]
|
|
@@ -3111,6 +3344,7 @@ export declare enum Action {
|
|
|
3111
3344
|
/**
|
|
3112
3345
|
* The **Share** action on a Liveboard, Answer, or Worksheet.
|
|
3113
3346
|
* Allows users to share an object with other users and groups.
|
|
3347
|
+
*
|
|
3114
3348
|
* @example
|
|
3115
3349
|
* ```js
|
|
3116
3350
|
* disabledActions: [Action.Share]
|
|
@@ -3120,6 +3354,7 @@ export declare enum Action {
|
|
|
3120
3354
|
/**
|
|
3121
3355
|
* The **Add filter** action on a Liveboard and Search page.
|
|
3122
3356
|
* Allows adding filters to Answers and visualizations on a Liveboard.
|
|
3357
|
+
*
|
|
3123
3358
|
* @example
|
|
3124
3359
|
* ```js
|
|
3125
3360
|
* disabledActions: [Action.AddFilter]
|
|
@@ -3130,6 +3365,7 @@ export declare enum Action {
|
|
|
3130
3365
|
* The **Add Data Panel Objects** action on the data panel v2.
|
|
3131
3366
|
* Allows to show action menu to add different objects (like
|
|
3132
3367
|
* formulas, parameters) in data panel v2.
|
|
3368
|
+
*
|
|
3133
3369
|
* @example
|
|
3134
3370
|
* ```js
|
|
3135
3371
|
* disabledActions: [Action.AddDataPanelObjects]
|
|
@@ -3141,6 +3377,7 @@ export declare enum Action {
|
|
|
3141
3377
|
* Filter configuration options on a Liveboard and Search page.
|
|
3142
3378
|
* Allows configuring filter options when adding filters to a
|
|
3143
3379
|
* Liveboard or Answer.
|
|
3380
|
+
*
|
|
3144
3381
|
* @example
|
|
3145
3382
|
* ```js
|
|
3146
3383
|
* disabledActions: [Action.ConfigureFilter]
|
|
@@ -3151,6 +3388,7 @@ export declare enum Action {
|
|
|
3151
3388
|
/**
|
|
3152
3389
|
* The **Choose sources** button on Search page.
|
|
3153
3390
|
* Allows selecting data sources for search queries.
|
|
3391
|
+
*
|
|
3154
3392
|
* @example
|
|
3155
3393
|
* ```js
|
|
3156
3394
|
* disabledActions: [Action.ChooseDataSources]
|
|
@@ -3160,6 +3398,7 @@ export declare enum Action {
|
|
|
3160
3398
|
/**
|
|
3161
3399
|
* The **Create formula** action on a Search or Answer page.
|
|
3162
3400
|
* Allows adding formulas to an Answer.
|
|
3401
|
+
*
|
|
3163
3402
|
* @example
|
|
3164
3403
|
* ```js
|
|
3165
3404
|
* disabledActions: [Action.AddFormula]
|
|
@@ -3169,6 +3408,7 @@ export declare enum Action {
|
|
|
3169
3408
|
/**
|
|
3170
3409
|
* The **Add parameter** action on a Liveboard or Answer.
|
|
3171
3410
|
* Allows adding Parameters to a Liveboard or Answer.
|
|
3411
|
+
*
|
|
3172
3412
|
* @example
|
|
3173
3413
|
* ```js
|
|
3174
3414
|
* disabledActions: [Action.AddParameter]
|
|
@@ -3178,6 +3418,7 @@ export declare enum Action {
|
|
|
3178
3418
|
/**
|
|
3179
3419
|
* The **Add Column Set** action on a Answer.
|
|
3180
3420
|
* Allows adding column sets to a Answer.
|
|
3421
|
+
*
|
|
3181
3422
|
* @example
|
|
3182
3423
|
* ```js
|
|
3183
3424
|
* disabledActions: [Action.AddColumnSet]
|
|
@@ -3188,6 +3429,7 @@ export declare enum Action {
|
|
|
3188
3429
|
/**
|
|
3189
3430
|
* The **Add Query Set** action on a Answer.
|
|
3190
3431
|
* Allows adding query sets to a Answer.
|
|
3432
|
+
*
|
|
3191
3433
|
* @example
|
|
3192
3434
|
* ```js
|
|
3193
3435
|
* disabledActions: [Action.AddQuerySet]
|
|
@@ -3202,6 +3444,7 @@ export declare enum Action {
|
|
|
3202
3444
|
/**
|
|
3203
3445
|
* The **SpotIQ analyze** menu action on a visualization or
|
|
3204
3446
|
* Answer page.
|
|
3447
|
+
*
|
|
3205
3448
|
* @example
|
|
3206
3449
|
* ```js
|
|
3207
3450
|
* disabledActions: [Action.SpotIQAnalyze]
|
|
@@ -3224,6 +3467,7 @@ export declare enum Action {
|
|
|
3224
3467
|
/**
|
|
3225
3468
|
* The **Show underlying data** menu action on a visualization or
|
|
3226
3469
|
* Answer page.
|
|
3470
|
+
*
|
|
3227
3471
|
* @example
|
|
3228
3472
|
* ```js
|
|
3229
3473
|
* disabledActions: [Action.ShowUnderlyingData]
|
|
@@ -3234,6 +3478,7 @@ export declare enum Action {
|
|
|
3234
3478
|
* The **Download** menu action on Liveboard visualizations
|
|
3235
3479
|
* and Answers.
|
|
3236
3480
|
* Allows downloading a visualization or Answer.
|
|
3481
|
+
*
|
|
3237
3482
|
* @example
|
|
3238
3483
|
* ```js
|
|
3239
3484
|
* disabledActions: [Action.DownloadAsPng]
|
|
@@ -3244,6 +3489,7 @@ export declare enum Action {
|
|
|
3244
3489
|
* The **Download** > **PNG** menu action for charts on a Liveboard
|
|
3245
3490
|
* or Answer page.
|
|
3246
3491
|
* Downloads a visualization or Answer as a PNG file.
|
|
3492
|
+
*
|
|
3247
3493
|
* @example
|
|
3248
3494
|
* ```js
|
|
3249
3495
|
* disabledActions: [Action.DownloadAsPng]
|
|
@@ -3252,11 +3498,13 @@ export declare enum Action {
|
|
|
3252
3498
|
DownloadAsPng = "downloadAsPng",
|
|
3253
3499
|
/**
|
|
3254
3500
|
*
|
|
3255
|
-
*The **Download PDF** action that downloads a Liveboard,
|
|
3256
|
-
*visualization, or Answer as a PDF file.
|
|
3501
|
+
* The **Download PDF** action that downloads a Liveboard,
|
|
3502
|
+
* visualization, or Answer as a PDF file.
|
|
3503
|
+
*
|
|
3504
|
+
*
|
|
3505
|
+
* **NOTE**: The **Download** > **PDF** action is available on
|
|
3506
|
+
* visualizations and Answers if the data is in tabular format.
|
|
3257
3507
|
*
|
|
3258
|
-
***NOTE**: The **Download** > **PDF** action is available on
|
|
3259
|
-
*visualizations and Answers if the data is in tabular format.
|
|
3260
3508
|
* @example
|
|
3261
3509
|
* ```js
|
|
3262
3510
|
* disabledActions: [Action.DownloadAsPdf]
|
|
@@ -3267,6 +3515,7 @@ export declare enum Action {
|
|
|
3267
3515
|
* The **Download** > **CSV** menu action for tables on a Liveboard
|
|
3268
3516
|
* or Answer page.
|
|
3269
3517
|
* Downloads a visualization or Answer in the XLSX format.
|
|
3518
|
+
*
|
|
3270
3519
|
* @example
|
|
3271
3520
|
* ```js
|
|
3272
3521
|
* disabledActions: [Action.DownloadAsCsv]
|
|
@@ -3277,6 +3526,7 @@ export declare enum Action {
|
|
|
3277
3526
|
* The **Download** > **XLSX** menu action for tables on a Liveboard
|
|
3278
3527
|
* or Answer page.
|
|
3279
3528
|
* Downloads a visualization or Answer in the XLSX format.
|
|
3529
|
+
*
|
|
3280
3530
|
* @example
|
|
3281
3531
|
* ```js
|
|
3282
3532
|
* disabledActions: [Action.DownloadAsXlsx]
|
|
@@ -3291,6 +3541,7 @@ export declare enum Action {
|
|
|
3291
3541
|
* The **Export TML** menu action on Liveboard, Answers
|
|
3292
3542
|
* Worksheets and Data Connections page.
|
|
3293
3543
|
* Exports an object as a TML file.
|
|
3544
|
+
*
|
|
3294
3545
|
* @example
|
|
3295
3546
|
* ```js
|
|
3296
3547
|
* disabledActions: [Action.ExportTML]
|
|
@@ -3300,6 +3551,7 @@ export declare enum Action {
|
|
|
3300
3551
|
/**
|
|
3301
3552
|
* The **Import TML** menu action for Liveboards and Answers.
|
|
3302
3553
|
* Imports TML representation of ThoughtSpot objects.
|
|
3554
|
+
*
|
|
3303
3555
|
* @example
|
|
3304
3556
|
* ```js
|
|
3305
3557
|
* disabledActions: [Action.ImportTML]
|
|
@@ -3309,6 +3561,7 @@ export declare enum Action {
|
|
|
3309
3561
|
/**
|
|
3310
3562
|
* The **Update TML** menu action for Liveboards and Answers.
|
|
3311
3563
|
* Update TML representation of ThoughtSpot objects.
|
|
3564
|
+
*
|
|
3312
3565
|
* @example
|
|
3313
3566
|
* ```js
|
|
3314
3567
|
* disabledActions: [Action.UpdateTML]
|
|
@@ -3318,6 +3571,7 @@ export declare enum Action {
|
|
|
3318
3571
|
/**
|
|
3319
3572
|
* The **Edit TML** menu action for Liveboards and Answers.
|
|
3320
3573
|
* Opens the TML editor.
|
|
3574
|
+
*
|
|
3321
3575
|
* @example
|
|
3322
3576
|
* ```js
|
|
3323
3577
|
* disabledActions: [Action.EditTML]
|
|
@@ -3328,6 +3582,7 @@ export declare enum Action {
|
|
|
3328
3582
|
* The **Present** menu action for Liveboards and Answers.
|
|
3329
3583
|
* Allows presenting a Liveboard or visualization in
|
|
3330
3584
|
* slideshow mode.
|
|
3585
|
+
*
|
|
3331
3586
|
* @example
|
|
3332
3587
|
* ```js
|
|
3333
3588
|
* disabledActions: [Action.Present]
|
|
@@ -3337,6 +3592,7 @@ export declare enum Action {
|
|
|
3337
3592
|
/**
|
|
3338
3593
|
* The tile resize options in the visualization menu.
|
|
3339
3594
|
* Allows switching between different preset layouts.
|
|
3595
|
+
*
|
|
3340
3596
|
* @example
|
|
3341
3597
|
* ```js
|
|
3342
3598
|
* disabledActions: [Action.ToggleSize]
|
|
@@ -3347,6 +3603,7 @@ export declare enum Action {
|
|
|
3347
3603
|
* The *Edit* action on the Liveboard page and in the
|
|
3348
3604
|
* visualization menu.
|
|
3349
3605
|
* Opens a Liveboard or visualization in edit mode.
|
|
3606
|
+
*
|
|
3350
3607
|
* @example
|
|
3351
3608
|
* ```js
|
|
3352
3609
|
* disabledActions: [Action.Edit]
|
|
@@ -3355,6 +3612,7 @@ export declare enum Action {
|
|
|
3355
3612
|
Edit = "edit",
|
|
3356
3613
|
/**
|
|
3357
3614
|
* The text edit option for Liveboard and visualization titles.
|
|
3615
|
+
*
|
|
3358
3616
|
* @example
|
|
3359
3617
|
* ```js
|
|
3360
3618
|
* disabledActions: [Action.EditTitle]
|
|
@@ -3364,6 +3622,7 @@ export declare enum Action {
|
|
|
3364
3622
|
/**
|
|
3365
3623
|
* The **Delete** menu action on Liveboards and visualizations.
|
|
3366
3624
|
* Deletes a Liveboard or a visualization from a Liveboard.
|
|
3625
|
+
*
|
|
3367
3626
|
* @example
|
|
3368
3627
|
* ```js
|
|
3369
3628
|
* disabledActions: [Action.Remove]
|
|
@@ -3395,6 +3654,7 @@ export declare enum Action {
|
|
|
3395
3654
|
* Displays details such as the name, description, and
|
|
3396
3655
|
* author of the Liveboard, and timestamp of Liveboard creation
|
|
3397
3656
|
* and update.
|
|
3657
|
+
*
|
|
3398
3658
|
* @example
|
|
3399
3659
|
* ```js
|
|
3400
3660
|
* disabledActions: [Action.LiveboardInfo]
|
|
@@ -3412,6 +3672,7 @@ export declare enum Action {
|
|
|
3412
3672
|
/**
|
|
3413
3673
|
* The **Pin** menu action on an Answer or
|
|
3414
3674
|
* Search results page.
|
|
3675
|
+
*
|
|
3415
3676
|
* @example
|
|
3416
3677
|
* ```js
|
|
3417
3678
|
* disabledActions: [Action.Pin]
|
|
@@ -3424,6 +3685,7 @@ export declare enum Action {
|
|
|
3424
3685
|
AnalysisInfo = "analysisInfo",
|
|
3425
3686
|
/**
|
|
3426
3687
|
* The **Schedule** menu action on a Liveboard.
|
|
3688
|
+
*
|
|
3427
3689
|
* @example
|
|
3428
3690
|
* ```js
|
|
3429
3691
|
* disabledActions: [Action.Subscription]
|
|
@@ -3432,6 +3694,7 @@ export declare enum Action {
|
|
|
3432
3694
|
Subscription = "subscription",
|
|
3433
3695
|
/**
|
|
3434
3696
|
* The **Explore** action on Liveboard visualizations
|
|
3697
|
+
*
|
|
3435
3698
|
* @example
|
|
3436
3699
|
* ```js
|
|
3437
3700
|
* disabledActions: [Action.Explore]
|
|
@@ -3441,6 +3704,7 @@ export declare enum Action {
|
|
|
3441
3704
|
/**
|
|
3442
3705
|
* The action to include data points on a drilled-down Answer
|
|
3443
3706
|
* or visualization
|
|
3707
|
+
*
|
|
3444
3708
|
* @example
|
|
3445
3709
|
* ```js
|
|
3446
3710
|
* disabledActions: [Action.DrillInclude]
|
|
@@ -3450,6 +3714,7 @@ export declare enum Action {
|
|
|
3450
3714
|
/**
|
|
3451
3715
|
* The action to exclude data points on a drilled-down Answer
|
|
3452
3716
|
* or visualization
|
|
3717
|
+
*
|
|
3453
3718
|
* @example
|
|
3454
3719
|
* ```js
|
|
3455
3720
|
* disabledActions: [Action.DrillInclude]
|
|
@@ -3460,6 +3725,7 @@ export declare enum Action {
|
|
|
3460
3725
|
* The **Copy to clipboard** menu action on tables in an Answer
|
|
3461
3726
|
* or Liveboard.
|
|
3462
3727
|
* Copies the selected data point.
|
|
3728
|
+
*
|
|
3463
3729
|
* @example
|
|
3464
3730
|
* ```js
|
|
3465
3731
|
* disabledActions: [Action.CopyToClipboard]
|
|
@@ -3477,6 +3743,7 @@ export declare enum Action {
|
|
|
3477
3743
|
* The **Drill down** menu action on Answers and Liveboard
|
|
3478
3744
|
* visualizations.
|
|
3479
3745
|
* Allows drilling down to a specific data point on a chart or table.
|
|
3746
|
+
*
|
|
3480
3747
|
* @example
|
|
3481
3748
|
* ```js
|
|
3482
3749
|
* disabledActions: [Action.DrillDown]
|
|
@@ -3486,6 +3753,7 @@ export declare enum Action {
|
|
|
3486
3753
|
/**
|
|
3487
3754
|
* The request access action on Liveboards.
|
|
3488
3755
|
* Allows users with view permissions to request edit access to a Liveboard.
|
|
3756
|
+
*
|
|
3489
3757
|
* @example
|
|
3490
3758
|
* ```js
|
|
3491
3759
|
* disabledActions: [Action.RequestAccess]
|
|
@@ -3495,6 +3763,7 @@ export declare enum Action {
|
|
|
3495
3763
|
/**
|
|
3496
3764
|
* The **Query visualizer** and **Query SQL** buttons in Query details panel
|
|
3497
3765
|
* of the Answer page
|
|
3766
|
+
*
|
|
3498
3767
|
* @example
|
|
3499
3768
|
* ```js
|
|
3500
3769
|
* disabledActions: [Action.QueryDetailsButtons]
|
|
@@ -3502,7 +3771,9 @@ export declare enum Action {
|
|
|
3502
3771
|
*/
|
|
3503
3772
|
QueryDetailsButtons = "queryDetailsButtons",
|
|
3504
3773
|
/**
|
|
3505
|
-
* The **Delete** action for Answers
|
|
3774
|
+
* The **Delete** action for Answers in the full application
|
|
3775
|
+
* embedding mode.
|
|
3776
|
+
*
|
|
3506
3777
|
* @example
|
|
3507
3778
|
* ```js
|
|
3508
3779
|
* disabledActions: [Action.AnswerDelete]
|
|
@@ -3512,6 +3783,7 @@ export declare enum Action {
|
|
|
3512
3783
|
AnswerDelete = "onDeleteAnswer",
|
|
3513
3784
|
/**
|
|
3514
3785
|
* The Chart switcher icon on Answer and visualization pages.
|
|
3786
|
+
*
|
|
3515
3787
|
* @example
|
|
3516
3788
|
* ```js
|
|
3517
3789
|
* disabledActions: [Action.AnswerChartSwitcher]
|
|
@@ -3521,6 +3793,7 @@ export declare enum Action {
|
|
|
3521
3793
|
AnswerChartSwitcher = "answerChartSwitcher",
|
|
3522
3794
|
/**
|
|
3523
3795
|
* Favorites icon (*) on Answers, Liveboard, and Data pages
|
|
3796
|
+
*
|
|
3524
3797
|
* @example
|
|
3525
3798
|
* ```js
|
|
3526
3799
|
* disabledActions: [Action.AddToFavorites]
|
|
@@ -3530,6 +3803,7 @@ export declare enum Action {
|
|
|
3530
3803
|
AddToFavorites = "addToFavorites",
|
|
3531
3804
|
/**
|
|
3532
3805
|
* The edit icon on Liveboards (Classic experience).
|
|
3806
|
+
*
|
|
3533
3807
|
* @example
|
|
3534
3808
|
* ```js
|
|
3535
3809
|
* disabledActions: [Action.EditDetails]
|
|
@@ -3539,6 +3813,7 @@ export declare enum Action {
|
|
|
3539
3813
|
EditDetails = "editDetails",
|
|
3540
3814
|
/**
|
|
3541
3815
|
* The Create alert action on KPI charts.
|
|
3816
|
+
*
|
|
3542
3817
|
* @example
|
|
3543
3818
|
* ```js
|
|
3544
3819
|
* disabledActions: [Action.CreateMonitor ]
|
|
@@ -3557,6 +3832,7 @@ export declare enum Action {
|
|
|
3557
3832
|
/**
|
|
3558
3833
|
* The **Sync to sheets** action on Answers and Liveboard visualizations.
|
|
3559
3834
|
* Allows sending data to a Google Sheet.
|
|
3835
|
+
*
|
|
3560
3836
|
* @example
|
|
3561
3837
|
* ```js
|
|
3562
3838
|
* disabledActions: [Action.SyncToSheets]
|
|
@@ -3568,6 +3844,7 @@ export declare enum Action {
|
|
|
3568
3844
|
* The **Sync to other apps** action on Answers and Liveboard visualizations.
|
|
3569
3845
|
* Allows sending data to third-party apps like Slack, Salesforce,
|
|
3570
3846
|
* Microsoft Teams, and so on.
|
|
3847
|
+
*
|
|
3571
3848
|
* @example
|
|
3572
3849
|
* ```js
|
|
3573
3850
|
* disabledActions: [Action.SyncToOtherApps]
|
|
@@ -3578,6 +3855,7 @@ export declare enum Action {
|
|
|
3578
3855
|
/**
|
|
3579
3856
|
* The **Manage pipelines** action on Answers and Liveboard visualizations.
|
|
3580
3857
|
* Allows users to manage data sync pipelines to third-party apps.
|
|
3858
|
+
*
|
|
3581
3859
|
* @example
|
|
3582
3860
|
* ```js
|
|
3583
3861
|
* disabledActions: [Action.SyncToOtherApps]
|
|
@@ -3588,6 +3866,7 @@ export declare enum Action {
|
|
|
3588
3866
|
/**
|
|
3589
3867
|
* The **Filter** action on Liveboard visualizations.
|
|
3590
3868
|
* Allows users to apply cross-filters on a Liveboard.
|
|
3869
|
+
*
|
|
3591
3870
|
* @example
|
|
3592
3871
|
* ```js
|
|
3593
3872
|
* disabledActions: [Action.CrossFilter]
|
|
@@ -3598,6 +3877,7 @@ export declare enum Action {
|
|
|
3598
3877
|
/**
|
|
3599
3878
|
* The **Sync to Slack** action on Liveboard visualizations.
|
|
3600
3879
|
* Allows sending data to third-party apps Slack
|
|
3880
|
+
*
|
|
3601
3881
|
* @example
|
|
3602
3882
|
* ```js
|
|
3603
3883
|
* disabledActions: [Action.SyncToSlack]
|
|
@@ -3608,6 +3888,7 @@ export declare enum Action {
|
|
|
3608
3888
|
/**
|
|
3609
3889
|
* The **Sync to Teams** action on Liveboard visualizations.
|
|
3610
3890
|
* Allows sending data to third-party apps Team
|
|
3891
|
+
*
|
|
3611
3892
|
* @example
|
|
3612
3893
|
* ```js
|
|
3613
3894
|
* disabledActions: [Action.SyncToTeams]
|
|
@@ -3619,6 +3900,7 @@ export declare enum Action {
|
|
|
3619
3900
|
* The **Remove** action that appears when cross filters are applied
|
|
3620
3901
|
* on a Liveboard.
|
|
3621
3902
|
* Removes filters applied o a visualization.
|
|
3903
|
+
*
|
|
3622
3904
|
* @example
|
|
3623
3905
|
* ```js
|
|
3624
3906
|
* disabledActions: [Action.RemoveCrossFilter]
|
|
@@ -3630,6 +3912,7 @@ export declare enum Action {
|
|
|
3630
3912
|
* The **Aggregate** option in the chart axis or the
|
|
3631
3913
|
* table column customization menu.
|
|
3632
3914
|
* Provides aggregation options to analyze the data on a chart or table.
|
|
3915
|
+
*
|
|
3633
3916
|
* @example
|
|
3634
3917
|
* ```js
|
|
3635
3918
|
* disabledActions: [Action.AxisMenuAggregate]
|
|
@@ -3641,6 +3924,7 @@ export declare enum Action {
|
|
|
3641
3924
|
* The **Time bucket** option in the chart axis or table column
|
|
3642
3925
|
* customization menu.
|
|
3643
3926
|
* Allows defining time metric for date comparison.
|
|
3927
|
+
*
|
|
3644
3928
|
* @example
|
|
3645
3929
|
* ```js
|
|
3646
3930
|
* disabledActions: [Action.AxisMenuTimeBucket]
|
|
@@ -3651,6 +3935,7 @@ export declare enum Action {
|
|
|
3651
3935
|
/**
|
|
3652
3936
|
* The **Filter** action in the chart axis or table column
|
|
3653
3937
|
* customization menu.
|
|
3938
|
+
*
|
|
3654
3939
|
* @example
|
|
3655
3940
|
* ```js
|
|
3656
3941
|
* disabledActions: [Action.AxisMenuFilter]
|
|
@@ -3662,6 +3947,7 @@ export declare enum Action {
|
|
|
3662
3947
|
* The **Conditional formatting** action on chart or table.
|
|
3663
3948
|
* Allows adding rules for conditional formatting of data
|
|
3664
3949
|
* points on a chart or table.
|
|
3950
|
+
*
|
|
3665
3951
|
* @example
|
|
3666
3952
|
* ```js
|
|
3667
3953
|
* disabledActions: [Action.AxisMenuConditionalFormat]
|
|
@@ -3673,6 +3959,7 @@ export declare enum Action {
|
|
|
3673
3959
|
* The **Sort** menu action on a table or chart axis
|
|
3674
3960
|
* Sorts data in ascending or descending order.
|
|
3675
3961
|
* Allows adding, editing, or removing filters.
|
|
3962
|
+
*
|
|
3676
3963
|
* @example
|
|
3677
3964
|
* ```js
|
|
3678
3965
|
* disabledActions: [Action.AxisMenuConditionalFormat]
|
|
@@ -3685,6 +3972,7 @@ export declare enum Action {
|
|
|
3685
3972
|
* customization menu.
|
|
3686
3973
|
* Allows grouping data points if the axes use the same
|
|
3687
3974
|
* unit of measurement and a similar scale.
|
|
3975
|
+
*
|
|
3688
3976
|
* @example
|
|
3689
3977
|
* ```js
|
|
3690
3978
|
* disabledActions: [Action.AxisMenuGroup]
|
|
@@ -3696,6 +3984,7 @@ export declare enum Action {
|
|
|
3696
3984
|
* The **Position** option in the axis customization menu.
|
|
3697
3985
|
* Allows changing the position of the axis to the
|
|
3698
3986
|
* left or right side of the chart.
|
|
3987
|
+
*
|
|
3699
3988
|
* @example
|
|
3700
3989
|
* ```js
|
|
3701
3990
|
* disabledActions: [Action.AxisMenuPosition]
|
|
@@ -3706,6 +3995,7 @@ export declare enum Action {
|
|
|
3706
3995
|
/**
|
|
3707
3996
|
* The **Rename** option in the chart axis or table column customization menu.
|
|
3708
3997
|
* Renames the axis label on a chart or the column header on a table.
|
|
3998
|
+
*
|
|
3709
3999
|
* @example
|
|
3710
4000
|
* ```js
|
|
3711
4001
|
* disabledActions: [Action.AxisMenuRename]
|
|
@@ -3717,6 +4007,7 @@ export declare enum Action {
|
|
|
3717
4007
|
* The **Edit** action in the axis customization menu.
|
|
3718
4008
|
* Allows editing the axis name, position, minimum and maximum values,
|
|
3719
4009
|
* and format of a column.
|
|
4010
|
+
*
|
|
3720
4011
|
* @example
|
|
3721
4012
|
* ```js
|
|
3722
4013
|
* disabledActions: [Action.AxisMenuEdit]
|
|
@@ -3727,6 +4018,7 @@ export declare enum Action {
|
|
|
3727
4018
|
/**
|
|
3728
4019
|
* The **Number format** action to customize the format of
|
|
3729
4020
|
* the data labels on a chart or table.
|
|
4021
|
+
*
|
|
3730
4022
|
* @example
|
|
3731
4023
|
* ```js
|
|
3732
4024
|
* disabledActions: [Action.AxisMenuNumberFormat]
|
|
@@ -3737,6 +4029,7 @@ export declare enum Action {
|
|
|
3737
4029
|
/**
|
|
3738
4030
|
* The **Text wrapping** action on a table.
|
|
3739
4031
|
* Wraps or clips column text on a table.
|
|
4032
|
+
*
|
|
3740
4033
|
* @example
|
|
3741
4034
|
* ```js
|
|
3742
4035
|
* disabledActions: [Action.AxisMenuTextWrapping]
|
|
@@ -3749,6 +4042,7 @@ export declare enum Action {
|
|
|
3749
4042
|
* customization menu.
|
|
3750
4043
|
* Removes the data labels from a chart or the column of a
|
|
3751
4044
|
* table visualization.
|
|
4045
|
+
*
|
|
3752
4046
|
* @example
|
|
3753
4047
|
* ```js
|
|
3754
4048
|
* disabledActions: [Action.AxisMenuRemove]
|
|
@@ -3763,6 +4057,7 @@ export declare enum Action {
|
|
|
3763
4057
|
/**
|
|
3764
4058
|
* The **Rename** menu action on Liveboards and visualizations.
|
|
3765
4059
|
* Allows renaming a Liveboard or visualization.
|
|
4060
|
+
*
|
|
3766
4061
|
* @example
|
|
3767
4062
|
* ```js
|
|
3768
4063
|
* disabledActions: [Action.RenameModalTitleDescription]
|
|
@@ -3806,6 +4101,7 @@ export declare enum Action {
|
|
|
3806
4101
|
/**
|
|
3807
4102
|
* The **Move to Tab** menu action on visualizations in liveboard edit mode.
|
|
3808
4103
|
* Allows moving a visualization to a different tab.
|
|
4104
|
+
*
|
|
3809
4105
|
* @example
|
|
3810
4106
|
* ```js
|
|
3811
4107
|
* disabledActions: [Action.MoveToTab]
|
|
@@ -3814,6 +4110,7 @@ export declare enum Action {
|
|
|
3814
4110
|
MoveToTab = "onContainerMove",
|
|
3815
4111
|
/**
|
|
3816
4112
|
* The **Manage Alertsb** menu action on KPI visualizations.
|
|
4113
|
+
*
|
|
3817
4114
|
* @example
|
|
3818
4115
|
* ```js
|
|
3819
4116
|
* disabledActions: [Action.ManageMonitor]
|
|
@@ -3822,6 +4119,7 @@ export declare enum Action {
|
|
|
3822
4119
|
ManageMonitor = "ManageMonitor",
|
|
3823
4120
|
/**
|
|
3824
4121
|
* Action ID for Liveboard Personalised Views dropdown
|
|
4122
|
+
*
|
|
3825
4123
|
* @example
|
|
3826
4124
|
* ```js
|
|
3827
4125
|
* disabledActions: [Action.PersonalisedViewsDropdown]
|
|
@@ -3831,6 +4129,7 @@ export declare enum Action {
|
|
|
3831
4129
|
PersonalisedViewsDropdown = "personalisedViewsDropdown",
|
|
3832
4130
|
/**
|
|
3833
4131
|
* Action ID for Liveboard Users ( Recently Visited / social proof )
|
|
4132
|
+
*
|
|
3834
4133
|
* @example
|
|
3835
4134
|
* ```js
|
|
3836
4135
|
* disabledActions: [Action.LiveboardUsers]
|
|
@@ -3842,6 +4141,7 @@ export declare enum Action {
|
|
|
3842
4141
|
* Action ID for the Parent TML action
|
|
3843
4142
|
* The parent action **TML** must be included to access TML-related options
|
|
3844
4143
|
* within the cascading menu (specific to the answer page)
|
|
4144
|
+
*
|
|
3845
4145
|
* @example
|
|
3846
4146
|
* ```js
|
|
3847
4147
|
* // to include specific TML actions
|
|
@@ -3853,11 +4153,13 @@ export declare enum Action {
|
|
|
3853
4153
|
* hiddenAction: [Action.TML] // hide all TML actions
|
|
3854
4154
|
* disabledActions: [Action.TML] // to disable all TML actions
|
|
3855
4155
|
* ```
|
|
4156
|
+
*
|
|
3856
4157
|
* @version SDK : 1.28.3 | Thoughtspot: 9.12.0.cl
|
|
3857
4158
|
*/
|
|
3858
4159
|
TML = "tml",
|
|
3859
4160
|
/**
|
|
3860
4161
|
* Action ID for to hide Verified Liveboard Banner
|
|
4162
|
+
*
|
|
3861
4163
|
* @example
|
|
3862
4164
|
* ```js
|
|
3863
4165
|
* hiddenAction: [Action.VerifiedLiveboard]
|
|
@@ -3867,6 +4169,7 @@ export declare enum Action {
|
|
|
3867
4169
|
VerifiedLiveboard = "verifiedLiveboard",
|
|
3868
4170
|
/**
|
|
3869
4171
|
* Action ID for ask sage button
|
|
4172
|
+
*
|
|
3870
4173
|
* @example
|
|
3871
4174
|
* ```js
|
|
3872
4175
|
* hiddenAction: [Action.AskAi]
|
|
@@ -3876,6 +4179,7 @@ export declare enum Action {
|
|
|
3876
4179
|
AskAi = "AskAi",
|
|
3877
4180
|
/**
|
|
3878
4181
|
* The **Add KPI to Watchlist** action on Home page watchlist.
|
|
4182
|
+
*
|
|
3879
4183
|
* @example
|
|
3880
4184
|
* ```js
|
|
3881
4185
|
* disabledActions: [Action.AddToWatchlist]
|
|
@@ -3885,6 +4189,7 @@ export declare enum Action {
|
|
|
3885
4189
|
AddToWatchlist = "addToWatchlist",
|
|
3886
4190
|
/**
|
|
3887
4191
|
* The **Remove from watchlist** menu action on KPI watchlist.
|
|
4192
|
+
*
|
|
3888
4193
|
* @example
|
|
3889
4194
|
* ```js
|
|
3890
4195
|
* disabledActions: [Action.RemoveFromWatchlist]
|
|
@@ -3894,6 +4199,7 @@ export declare enum Action {
|
|
|
3894
4199
|
RemoveFromWatchlist = "removeFromWatchlist",
|
|
3895
4200
|
/**
|
|
3896
4201
|
* The **Organise Favourites** action on Homepage Favourite Module.
|
|
4202
|
+
*
|
|
3897
4203
|
* @example
|
|
3898
4204
|
* ```js
|
|
3899
4205
|
* disabledActions: [Action.OrganiseFavourites]
|
|
@@ -3903,6 +4209,7 @@ export declare enum Action {
|
|
|
3903
4209
|
OrganiseFavourites = "organiseFavourites",
|
|
3904
4210
|
/**
|
|
3905
4211
|
* Action ID for AI Highlights button
|
|
4212
|
+
*
|
|
3906
4213
|
* @example
|
|
3907
4214
|
* ```js
|
|
3908
4215
|
* hiddenAction: [Action.AIHighlights]
|
|
@@ -3971,6 +4278,7 @@ export interface CustomActionPayload {
|
|
|
3971
4278
|
export declare enum LogLevel {
|
|
3972
4279
|
/**
|
|
3973
4280
|
* No logs will be logged in the console.
|
|
4281
|
+
*
|
|
3974
4282
|
* @example
|
|
3975
4283
|
* ```js
|
|
3976
4284
|
* init({
|
|
@@ -3983,6 +4291,7 @@ export declare enum LogLevel {
|
|
|
3983
4291
|
SILENT = "SILENT",
|
|
3984
4292
|
/**
|
|
3985
4293
|
* Only ERROR logs will be logged in the console.
|
|
4294
|
+
*
|
|
3986
4295
|
* @example
|
|
3987
4296
|
* ```js
|
|
3988
4297
|
* init({
|
|
@@ -3995,6 +4304,7 @@ export declare enum LogLevel {
|
|
|
3995
4304
|
ERROR = "ERROR",
|
|
3996
4305
|
/**
|
|
3997
4306
|
* Only WARN and ERROR logs will be logged in the console.
|
|
4307
|
+
*
|
|
3998
4308
|
* @example
|
|
3999
4309
|
* ```js
|
|
4000
4310
|
* init({
|
|
@@ -4007,6 +4317,7 @@ export declare enum LogLevel {
|
|
|
4007
4317
|
WARN = "WARN",
|
|
4008
4318
|
/**
|
|
4009
4319
|
* Only INFO, WARN, and ERROR logs will be logged in the console.
|
|
4320
|
+
*
|
|
4010
4321
|
* @example
|
|
4011
4322
|
* ```js
|
|
4012
4323
|
* init({
|
|
@@ -4019,6 +4330,7 @@ export declare enum LogLevel {
|
|
|
4019
4330
|
INFO = "INFO",
|
|
4020
4331
|
/**
|
|
4021
4332
|
* Only DEBUG, INFO, WARN, and ERROR logs will be logged in the console.
|
|
4333
|
+
*
|
|
4022
4334
|
* @example
|
|
4023
4335
|
* ```js
|
|
4024
4336
|
* init({
|
|
@@ -4031,6 +4343,7 @@ export declare enum LogLevel {
|
|
|
4031
4343
|
DEBUG = "DEBUG",
|
|
4032
4344
|
/**
|
|
4033
4345
|
* All logs will be logged in the console.
|
|
4346
|
+
*
|
|
4034
4347
|
* @example
|
|
4035
4348
|
* ```js
|
|
4036
4349
|
* init({
|