@thoughtspot/visual-embed-sdk 1.26.2 → 1.27.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/cjs/package.json +1 -1
- package/cjs/src/auth.d.ts +4 -4
- package/cjs/src/auth.d.ts.map +1 -1
- package/cjs/src/auth.js +10 -4
- package/cjs/src/auth.js.map +1 -1
- package/cjs/src/embed/app.d.ts +15 -15
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +1 -1
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts +28 -23
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +4 -3
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/sage.d.ts +48 -30
- package/cjs/src/embed/sage.d.ts.map +1 -1
- package/cjs/src/embed/sage.js +1 -1
- package/cjs/src/embed/sage.js.map +1 -1
- package/cjs/src/embed/search-bar.d.ts +22 -6
- package/cjs/src/embed/search-bar.d.ts.map +1 -1
- package/cjs/src/embed/search-bar.js.map +1 -1
- package/cjs/src/embed/search.d.ts +34 -19
- package/cjs/src/embed/search.d.ts.map +1 -1
- package/cjs/src/embed/search.js +7 -3
- package/cjs/src/embed/search.js.map +1 -1
- package/cjs/src/embed/search.spec.js +10 -0
- package/cjs/src/embed/search.spec.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts +1 -0
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +27 -7
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +114 -0
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/react/index.spec.js +0 -12
- package/cjs/src/react/index.spec.js.map +1 -1
- package/cjs/src/types.d.ts +727 -242
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +653 -175
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.d.ts +2 -4
- package/cjs/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.js +2 -4
- package/cjs/src/utils/graphql/answerService/answerService.js.map +1 -1
- package/cjs/src/utils/processData.d.ts +6 -0
- package/cjs/src/utils/processData.d.ts.map +1 -1
- package/cjs/src/utils/processData.js +5 -1
- package/cjs/src/utils/processData.js.map +1 -1
- package/cjs/src/utils/processTrigger.js +1 -1
- package/dist/src/auth.d.ts +4 -4
- package/dist/src/auth.d.ts.map +1 -1
- package/dist/src/embed/app.d.ts +15 -15
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +28 -23
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/sage.d.ts +48 -30
- package/dist/src/embed/sage.d.ts.map +1 -1
- package/dist/src/embed/search-bar.d.ts +22 -6
- package/dist/src/embed/search-bar.d.ts.map +1 -1
- package/dist/src/embed/search.d.ts +34 -19
- package/dist/src/embed/search.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts +1 -0
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/types.d.ts +727 -242
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/graphql/answerService/answerService.d.ts +2 -4
- package/dist/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/dist/src/utils/processData.d.ts +6 -0
- package/dist/src/utils/processData.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +706 -200
- package/dist/tsembed-react.js +705 -199
- package/dist/tsembed.es.js +709 -200
- package/dist/tsembed.js +707 -198
- package/dist/visual-embed-sdk-react-full.d.ts +898 -339
- package/dist/visual-embed-sdk-react.d.ts +898 -339
- package/dist/visual-embed-sdk.d.ts +898 -339
- package/lib/package.json +1 -1
- package/lib/src/auth.d.ts +4 -4
- package/lib/src/auth.d.ts.map +1 -1
- package/lib/src/auth.js +10 -4
- package/lib/src/auth.js.map +1 -1
- package/lib/src/embed/app.d.ts +15 -15
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +1 -1
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +28 -23
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +4 -3
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/sage.d.ts +48 -30
- package/lib/src/embed/sage.d.ts.map +1 -1
- package/lib/src/embed/sage.js +1 -1
- package/lib/src/embed/sage.js.map +1 -1
- package/lib/src/embed/search-bar.d.ts +22 -6
- package/lib/src/embed/search-bar.d.ts.map +1 -1
- package/lib/src/embed/search-bar.js.map +1 -1
- package/lib/src/embed/search.d.ts +34 -19
- package/lib/src/embed/search.d.ts.map +1 -1
- package/lib/src/embed/search.js +7 -3
- package/lib/src/embed/search.js.map +1 -1
- package/lib/src/embed/search.spec.js +10 -0
- package/lib/src/embed/search.spec.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts +1 -0
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +28 -8
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +114 -0
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/react/index.spec.js +0 -12
- package/lib/src/react/index.spec.js.map +1 -1
- package/lib/src/types.d.ts +727 -242
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +653 -175
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.d.ts +2 -4
- package/lib/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.js +2 -4
- package/lib/src/utils/graphql/answerService/answerService.js.map +1 -1
- package/lib/src/utils/processData.d.ts +6 -0
- package/lib/src/utils/processData.d.ts.map +1 -1
- package/lib/src/utils/processData.js +4 -1
- package/lib/src/utils/processData.js.map +1 -1
- package/lib/src/utils/processTrigger.js +1 -1
- package/lib/src/visual-embed-sdk.d.ts +898 -339
- package/package.json +1 -1
- package/src/auth.ts +10 -4
- package/src/embed/app.ts +20 -20
- package/src/embed/liveboard.ts +32 -27
- package/src/embed/sage.ts +48 -30
- package/src/embed/search-bar.tsx +22 -6
- package/src/embed/search.spec.ts +13 -0
- package/src/embed/search.ts +42 -22
- package/src/embed/ts-embed.spec.ts +132 -0
- package/src/embed/ts-embed.ts +32 -14
- package/src/react/index.spec.tsx +0 -29
- package/src/types.ts +727 -243
- package/src/utils/graphql/answerService/answerService.ts +2 -4
- package/src/utils/processData.ts +4 -1
- package/src/utils/processTrigger.ts +1 -1
- package/cjs/src/embed/TsEmbed.d.ts +0 -302
- package/cjs/src/embed/TsEmbed.d.ts.map +0 -1
- package/cjs/src/embed/TsEmbed.js +0 -851
- package/cjs/src/embed/TsEmbed.js.map +0 -1
- package/cjs/src/utils/answerService.d.ts +0 -10
- package/cjs/src/utils/answerService.d.ts.map +0 -1
- package/cjs/src/utils/answerService.js +0 -61
- package/cjs/src/utils/answerService.js.map +0 -1
- package/cjs/src/utils/answerService.spec.d.ts +0 -2
- package/cjs/src/utils/answerService.spec.d.ts.map +0 -1
- package/cjs/src/utils/answerService.spec.js +0 -31
- package/cjs/src/utils/answerService.spec.js.map +0 -1
- package/cjs/src/utils/authService/tokenisedAuthSerice.d.ts +0 -11
- package/cjs/src/utils/authService/tokenisedAuthSerice.d.ts.map +0 -1
- package/cjs/src/utils/authService/tokenisedAuthSerice.js +0 -44
- package/cjs/src/utils/authService/tokenisedAuthSerice.js.map +0 -1
- package/cjs/src/utils/authService.d.ts +0 -55
- package/cjs/src/utils/authService.d.ts.map +0 -1
- package/cjs/src/utils/authService.js +0 -139
- package/cjs/src/utils/authService.js.map +0 -1
- package/cjs/src/utils/authService.spec.d.ts +0 -2
- package/cjs/src/utils/authService.spec.d.ts.map +0 -1
- package/cjs/src/utils/authService.spec.js +0 -82
- package/cjs/src/utils/authService.spec.js.map +0 -1
- package/cjs/src/utils/graphql/graphql-request.spec.d.ts +0 -2
- package/cjs/src/utils/graphql/graphql-request.spec.d.ts.map +0 -1
- package/cjs/src/utils/graphql/graphql-request.spec.js +0 -39
- package/cjs/src/utils/graphql/graphql-request.spec.js.map +0 -1
- package/cjs/src/utils/logger.d.ts +0 -28
- package/cjs/src/utils/logger.d.ts.map +0 -1
- package/cjs/src/utils/logger.js +0 -82
- package/cjs/src/utils/logger.js.map +0 -1
- package/dist/src/utils/answerService.d.ts +0 -10
- package/dist/src/utils/answerService.d.ts.map +0 -1
- package/dist/src/utils/answerService.spec.d.ts +0 -2
- package/dist/src/utils/answerService.spec.d.ts.map +0 -1
- package/dist/src/utils/authService/tokenisedAuthSerice.d.ts +0 -11
- package/dist/src/utils/authService/tokenisedAuthSerice.d.ts.map +0 -1
- package/dist/src/utils/authService.d.ts +0 -55
- package/dist/src/utils/authService.d.ts.map +0 -1
- package/dist/src/utils/authService.spec.d.ts +0 -2
- package/dist/src/utils/authService.spec.d.ts.map +0 -1
- package/dist/src/utils/graphql/graphql-request.spec.d.ts +0 -2
- package/dist/src/utils/graphql/graphql-request.spec.d.ts.map +0 -1
- package/dist/src/utils/logger.d.ts +0 -28
- package/dist/src/utils/logger.d.ts.map +0 -1
- package/lib/src/embed/TsEmbed.d.ts +0 -302
- package/lib/src/embed/TsEmbed.d.ts.map +0 -1
- package/lib/src/embed/TsEmbed.js +0 -847
- package/lib/src/embed/TsEmbed.js.map +0 -1
- package/lib/src/utils/answerService.d.ts +0 -10
- package/lib/src/utils/answerService.d.ts.map +0 -1
- package/lib/src/utils/answerService.js +0 -57
- package/lib/src/utils/answerService.js.map +0 -1
- package/lib/src/utils/answerService.spec.d.ts +0 -2
- package/lib/src/utils/answerService.spec.d.ts.map +0 -1
- package/lib/src/utils/answerService.spec.js +0 -29
- package/lib/src/utils/answerService.spec.js.map +0 -1
- package/lib/src/utils/authService/tokenisedAuthSerice.d.ts +0 -11
- package/lib/src/utils/authService/tokenisedAuthSerice.d.ts.map +0 -1
- package/lib/src/utils/authService/tokenisedAuthSerice.js +0 -39
- package/lib/src/utils/authService/tokenisedAuthSerice.js.map +0 -1
- package/lib/src/utils/authService.d.ts +0 -55
- package/lib/src/utils/authService.d.ts.map +0 -1
- package/lib/src/utils/authService.js +0 -129
- package/lib/src/utils/authService.js.map +0 -1
- package/lib/src/utils/authService.spec.d.ts +0 -2
- package/lib/src/utils/authService.spec.d.ts.map +0 -1
- package/lib/src/utils/authService.spec.js +0 -80
- package/lib/src/utils/authService.spec.js.map +0 -1
- package/lib/src/utils/graphql/graphql-request.spec.d.ts +0 -2
- package/lib/src/utils/graphql/graphql-request.spec.d.ts.map +0 -1
- package/lib/src/utils/graphql/graphql-request.spec.js +0 -36
- package/lib/src/utils/graphql/graphql-request.spec.js.map +0 -1
- package/lib/src/utils/logger.d.ts +0 -28
- package/lib/src/utils/logger.d.ts.map +0 -1
- package/lib/src/utils/logger.js +0 -75
- package/lib/src/utils/logger.js.map +0 -1
package/dist/src/types.d.ts
CHANGED
|
@@ -29,10 +29,14 @@ export declare enum AuthType {
|
|
|
29
29
|
*/
|
|
30
30
|
None = "None",
|
|
31
31
|
/**
|
|
32
|
-
* Passthrough SSO to the embedded
|
|
32
|
+
* Passthrough SSO to the embedded application within the iframe. Requires least
|
|
33
33
|
* configuration, but may not be supported by all IDPs. This will behave like `None`
|
|
34
34
|
* if SSO is not configured on ThoughtSpot.
|
|
35
35
|
*
|
|
36
|
+
* To use this:
|
|
37
|
+
* Your SAML or OpenID provider must allow iframe redirects.
|
|
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({
|
|
@@ -40,12 +44,7 @@ export declare enum AuthType {
|
|
|
40
44
|
* authType: AuthType.EmbeddedSSO,
|
|
41
45
|
* });
|
|
42
46
|
* ```
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
* To use this:
|
|
46
|
-
* Your SAML or OpenID provider must allow iframe redirects.
|
|
47
|
-
* eg. If you are using okta as IdP, you can enable iFrame embedding.
|
|
48
|
-
* @version: SDK: 1.15.0 | ThouhgtSpot: 8.8.0.cl
|
|
47
|
+
* @version: SDK: 1.15.0 | ThoughtSpot: 8.8.0.cl
|
|
49
48
|
*/
|
|
50
49
|
EmbeddedSSO = "EmbeddedSSO",
|
|
51
50
|
/**
|
|
@@ -64,10 +63,10 @@ export declare enum AuthType {
|
|
|
64
63
|
SAML = "SSO_SAML",
|
|
65
64
|
/**
|
|
66
65
|
* SSO using SAML
|
|
67
|
-
*
|
|
68
|
-
*
|
|
66
|
+
* Makes the host application redirect to the SAML IdP. Use this
|
|
67
|
+
* if your IdP does not allow itself to be embedded.
|
|
69
68
|
*
|
|
70
|
-
* This redirects the host application to the SAML
|
|
69
|
+
* This redirects the host application to the SAML IdP. The host application
|
|
71
70
|
* will be redirected back to the ThoughtSpot app after authentication.
|
|
72
71
|
*
|
|
73
72
|
* @example
|
|
@@ -78,7 +77,7 @@ export declare enum AuthType {
|
|
|
78
77
|
* });
|
|
79
78
|
* ```
|
|
80
79
|
*
|
|
81
|
-
* This opens the SAML
|
|
80
|
+
* This opens the SAML IdP in a popup window. The popup is triggered
|
|
82
81
|
* when the user clicks the trigger button. The popup window will be
|
|
83
82
|
* closed automatically after authentication.
|
|
84
83
|
* @example
|
|
@@ -92,8 +91,8 @@ export declare enum AuthType {
|
|
|
92
91
|
* });
|
|
93
92
|
* ```
|
|
94
93
|
*
|
|
95
|
-
* Can also use event to trigger the popup flow. Works the same
|
|
96
|
-
* as above example.
|
|
94
|
+
* Can also use the event to trigger the popup flow. Works the same
|
|
95
|
+
* as the above example.
|
|
97
96
|
* @example
|
|
98
97
|
* ```js
|
|
99
98
|
* const authEE = init({
|
|
@@ -117,7 +116,7 @@ export declare enum AuthType {
|
|
|
117
116
|
OIDC = "SSO_OIDC",
|
|
118
117
|
/**
|
|
119
118
|
* SSO using OIDC
|
|
120
|
-
* Will make the host application redirect to the OIDC
|
|
119
|
+
* Will make the host application redirect to the OIDC IdP.
|
|
121
120
|
* See code samples in {@link SAMLRedirect}.
|
|
122
121
|
*/
|
|
123
122
|
OIDCRedirect = "SSO_OIDC",
|
|
@@ -129,8 +128,8 @@ export declare enum AuthType {
|
|
|
129
128
|
*/
|
|
130
129
|
AuthServer = "AuthServer",
|
|
131
130
|
/**
|
|
132
|
-
* Trusted authentication server
|
|
133
|
-
* which returns a bearer token, generated using the secret_key obtained
|
|
131
|
+
* Trusted authentication server. Use your own authentication server
|
|
132
|
+
* which returns a bearer token, generated using the `secret_key` obtained
|
|
134
133
|
* from ThoughtSpot.
|
|
135
134
|
*
|
|
136
135
|
* @example
|
|
@@ -147,11 +146,11 @@ export declare enum AuthType {
|
|
|
147
146
|
*/
|
|
148
147
|
TrustedAuthToken = "AuthServer",
|
|
149
148
|
/**
|
|
150
|
-
* Trusted authentication server Cookieless, Use
|
|
151
|
-
* server which returns a bearer token, generated using the secret_key
|
|
149
|
+
* Trusted authentication server Cookieless, Use your own authentication
|
|
150
|
+
* server which returns a bearer token, generated using the `secret_key`
|
|
152
151
|
* obtained from ThoughtSpot. This uses a cookieless authentication
|
|
153
|
-
* approach, recommended to
|
|
154
|
-
* implemented by some browsers
|
|
152
|
+
* approach, recommended to bypass the third-party cookie-blocking restriction
|
|
153
|
+
* implemented by some browsers.
|
|
155
154
|
*
|
|
156
155
|
* @example
|
|
157
156
|
* ```js
|
|
@@ -164,7 +163,7 @@ export declare enum AuthType {
|
|
|
164
163
|
* .then((data) => data.token);
|
|
165
164
|
* }
|
|
166
165
|
* ```
|
|
167
|
-
* @version SDK: 1.22.0|
|
|
166
|
+
* @version SDK: 1.22.0| ThoughtSpot: 9.3.0.cl, 9.5.1.sw
|
|
168
167
|
*/
|
|
169
168
|
TrustedAuthTokenCookieless = "AuthServerCookieless",
|
|
170
169
|
/**
|
|
@@ -286,13 +285,19 @@ export interface EmbedConfig {
|
|
|
286
285
|
* The ThoughtSpot cluster hostname or IP address.
|
|
287
286
|
*/
|
|
288
287
|
thoughtSpotHost: string;
|
|
288
|
+
/**
|
|
289
|
+
* If true, all the iframe links will have /v2 added automatically.
|
|
290
|
+
* If false, all the iframe links will have /v1 added automatically.
|
|
291
|
+
* If undefined, nothing will be added
|
|
292
|
+
*/
|
|
293
|
+
enableReactShell?: boolean | undefined;
|
|
289
294
|
/**
|
|
290
295
|
* The authentication mechanism to use.
|
|
291
296
|
*/
|
|
292
297
|
authType: AuthType;
|
|
293
298
|
/**
|
|
294
299
|
* [AuthServer] The trusted authentication endpoint to use to get the
|
|
295
|
-
* authentication token. A GET request is made to the
|
|
300
|
+
* authentication token. A `GET` request is made to the
|
|
296
301
|
* authentication API endpoint, which returns the token
|
|
297
302
|
* as a plaintext response. For trusted authentication,
|
|
298
303
|
* the `authEndpoint` or `getAuthToken` attribute is required.
|
|
@@ -305,8 +310,8 @@ export interface EmbedConfig {
|
|
|
305
310
|
* attribute is required.
|
|
306
311
|
*
|
|
307
312
|
* It is advisable to fetch a new token inside this method and not
|
|
308
|
-
* reuse
|
|
309
|
-
* called again and if it is called with an older token the authentication
|
|
313
|
+
* reuse the old issued token. When auth expires this method is
|
|
314
|
+
* called again and if it is called with an older token, the authentication
|
|
310
315
|
* will not succeed.
|
|
311
316
|
*/
|
|
312
317
|
getAuthToken?: () => Promise<string>;
|
|
@@ -316,7 +321,7 @@ export interface EmbedConfig {
|
|
|
316
321
|
*/
|
|
317
322
|
username?: string;
|
|
318
323
|
/**
|
|
319
|
-
* [Basic] The ThoughtSpot login password corresponding to the
|
|
324
|
+
* [Basic] The ThoughtSpot login password corresponding to the username
|
|
320
325
|
*
|
|
321
326
|
* Warning: This feature is primarily intended for developer testing. It is
|
|
322
327
|
* strongly advised not to use this authentication method in production.
|
|
@@ -324,7 +329,7 @@ export interface EmbedConfig {
|
|
|
324
329
|
password?: string;
|
|
325
330
|
/**
|
|
326
331
|
* [SSO] For SSO Authentication, if `noRedirect` is set to true, it will
|
|
327
|
-
* open the SAML auth flow in a popup, instead of redirecting browser in
|
|
332
|
+
* open the SAML auth flow in a popup, instead of redirecting the browser in
|
|
328
333
|
* place.
|
|
329
334
|
*
|
|
330
335
|
* @default false
|
|
@@ -333,91 +338,93 @@ export interface EmbedConfig {
|
|
|
333
338
|
noRedirect?: boolean;
|
|
334
339
|
/**
|
|
335
340
|
* [SSO] For SSO Authentication, if `inPopup` is set to true, it will open
|
|
336
|
-
* the SAML auth flow in a popup, instead of redirecting browser in place.
|
|
341
|
+
* the SAML auth flow in a popup, instead of redirecting the browser in place.
|
|
337
342
|
*
|
|
338
|
-
* Need to use this with authTriggerContainer
|
|
339
|
-
* the AuthEvent.TRIGGER_SSO_POPUP event on a user interaction.
|
|
343
|
+
* Need to use this with `authTriggerContainer`. Or manually trigger
|
|
344
|
+
* the `AuthEvent.TRIGGER_SSO_POPUP` event on a user interaction.
|
|
340
345
|
*
|
|
341
346
|
* @default false
|
|
342
347
|
* @version SDK: 1.18.0
|
|
343
348
|
*/
|
|
344
349
|
inPopup?: boolean;
|
|
345
350
|
/**
|
|
346
|
-
* [SSO] For SSO Authentication, one can supply an optional path param
|
|
347
|
-
*
|
|
351
|
+
* [SSO] For SSO Authentication, one can supply an optional path param;
|
|
352
|
+
* This will be the path on the host origin where the SAML flow will be
|
|
348
353
|
* terminated.
|
|
349
354
|
*
|
|
350
355
|
* Eg: "/dashboard", "#/foo" [Do not include the host]
|
|
351
356
|
*
|
|
352
|
-
* @version SDK: 1.10.2 | 8.2.0.cl, 8.4.1.sw
|
|
357
|
+
* @version SDK: 1.10.2 | ThoughtSpot 8.2.0.cl, 8.4.1.sw
|
|
353
358
|
*/
|
|
354
359
|
redirectPath?: string;
|
|
355
360
|
/** @internal */
|
|
356
361
|
basepath?: string;
|
|
357
362
|
/**
|
|
358
|
-
*
|
|
359
|
-
*
|
|
360
|
-
*
|
|
363
|
+
* Boolean to define if the query parameters in the ThoughtSpot URL
|
|
364
|
+
* should be encoded in base64. This provides additional security to
|
|
365
|
+
* Thoughtspot clusters against cross-site scripting attacks.
|
|
361
366
|
*
|
|
362
367
|
* @default false
|
|
363
368
|
*/
|
|
364
369
|
shouldEncodeUrlQueryParams?: boolean;
|
|
365
370
|
/**
|
|
366
|
-
* Suppress cookie access alert when third
|
|
367
|
-
* user's browser. Third
|
|
368
|
-
*
|
|
369
|
-
* encouraged to handle `noCookieAccess` event, to show your own treatment
|
|
371
|
+
* Suppress cookie access alert when third-party cookies are blocked by the
|
|
372
|
+
* user's browser. Third-party cookie blocking is the default behaviour on
|
|
373
|
+
* some web browsers like Safari. If you set this attribute to `true`,
|
|
374
|
+
* you are encouraged to handle `noCookieAccess` event, to show your own treatment
|
|
370
375
|
* in this case.
|
|
371
376
|
*
|
|
372
377
|
* @default false
|
|
373
378
|
*/
|
|
374
379
|
suppressNoCookieAccessAlert?: boolean;
|
|
375
380
|
/**
|
|
376
|
-
* Ignore cookie access alert when third
|
|
381
|
+
* Ignore the cookie access alert when third-party cookies are blocked by the
|
|
377
382
|
* user's browser. If you set this to `true`, the embedded iframe behaviour
|
|
378
|
-
*
|
|
383
|
+
* persists even in the case of a non-logged-in user.
|
|
379
384
|
*
|
|
380
385
|
* @default false
|
|
381
386
|
*/
|
|
382
387
|
ignoreNoCookieAccess?: boolean;
|
|
383
388
|
/**
|
|
384
|
-
* Re-login
|
|
389
|
+
* Re-login a user with the previous login options
|
|
390
|
+
* when a user session expires.
|
|
385
391
|
*
|
|
386
392
|
* @default false
|
|
387
393
|
*/
|
|
388
394
|
autoLogin?: boolean;
|
|
389
395
|
/**
|
|
390
396
|
* Disable redirection to the login page when the embedded session expires
|
|
391
|
-
* This flag is typically used alongside the combination of
|
|
392
|
-
* AuthType.AuthServer} and auto
|
|
397
|
+
* This flag is typically used alongside the combination of authentication modes such
|
|
398
|
+
* as {@link AuthType.AuthServer} and auto-login behavior {@link
|
|
399
|
+
* EmbedConfig.autoLogin}
|
|
393
400
|
*
|
|
394
401
|
* @version SDK: 1.9.3 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
|
|
395
402
|
* @default false
|
|
396
403
|
*/
|
|
397
404
|
disableLoginRedirect?: boolean;
|
|
398
405
|
/**
|
|
399
|
-
* This message is displayed
|
|
406
|
+
* This message is displayed in the embedded view when a user login fails.
|
|
400
407
|
*
|
|
401
408
|
* @version SDK: 1.10.1 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
|
|
402
409
|
*/
|
|
403
410
|
loginFailedMessage?: string;
|
|
404
411
|
/**
|
|
405
|
-
* Calls the prefetch method internally when set to true
|
|
412
|
+
* Calls the prefetch method internally when set to `true`
|
|
406
413
|
*
|
|
407
414
|
* @default false
|
|
408
415
|
*/
|
|
409
416
|
callPrefetch?: boolean;
|
|
410
417
|
/**
|
|
411
|
-
* When there are multiple
|
|
412
|
-
*
|
|
413
|
-
*
|
|
418
|
+
* When there are multiple objects embedded, queue the rendering of embedded objects
|
|
419
|
+
* to start after the previous embed's render is complete. This helps improve
|
|
420
|
+
* performance by decreasing the load on the browser.
|
|
414
421
|
*
|
|
415
422
|
* @Version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
|
|
416
423
|
* @default false
|
|
417
424
|
*/
|
|
418
425
|
queueMultiRenders?: boolean;
|
|
419
426
|
/**
|
|
420
|
-
* Dynamic CSS
|
|
427
|
+
* Dynamic CSS URL to be injected in the loaded application.
|
|
421
428
|
* You would also need to set `style-src` in the CSP settings.
|
|
422
429
|
*
|
|
423
430
|
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
@@ -425,9 +432,9 @@ export interface EmbedConfig {
|
|
|
425
432
|
*/
|
|
426
433
|
customCssUrl?: string;
|
|
427
434
|
/**
|
|
428
|
-
* [AuthServer|Basic] Detect if
|
|
435
|
+
* [AuthServer|Basic] Detect if third-party party cookies are enabled by doing an
|
|
429
436
|
* additional call. This is slower and should be avoided. Listen to the
|
|
430
|
-
* NO_COOKIE_ACCESS event to handle the situation.
|
|
437
|
+
* `NO_COOKIE_ACCESS` event to handle the situation.
|
|
431
438
|
*
|
|
432
439
|
* This is slightly slower than letting the browser handle the cookie check, as it
|
|
433
440
|
* involves an extra network call.
|
|
@@ -436,26 +443,26 @@ export interface EmbedConfig {
|
|
|
436
443
|
*/
|
|
437
444
|
detectCookieAccessSlow?: boolean;
|
|
438
445
|
/**
|
|
439
|
-
* Hide beta alert warning message for SearchEmbed.
|
|
446
|
+
* Hide the `beta` alert warning message for SearchEmbed.
|
|
440
447
|
*
|
|
441
448
|
* @version SDK: 1.12.0 | ThoughtSpot: 8.4.0.cl, 8.4.1.sw*
|
|
442
449
|
*/
|
|
443
450
|
suppressSearchEmbedBetaWarning?: boolean;
|
|
444
451
|
/**
|
|
445
|
-
* Hide beta alert warning message for SageEmbed.
|
|
452
|
+
* Hide `beta` alert warning message for SageEmbed.
|
|
446
453
|
*
|
|
447
454
|
*/
|
|
448
455
|
suppressSageEmbedBetaWarning?: boolean;
|
|
449
456
|
/**
|
|
450
457
|
* Custom style params for embed Config.
|
|
451
458
|
*
|
|
452
|
-
* @version SDK: 1.17.0 | ThoughtSpot: 8.9.0.cl
|
|
459
|
+
* @version SDK: 1.17.0 | ThoughtSpot: 8.9.0.cl, 9.0.1.sw
|
|
453
460
|
*/
|
|
454
461
|
customizations?: CustomisationsInterface;
|
|
455
462
|
/**
|
|
456
|
-
* For inPopup SAMLRedirect or OIDCRedirect
|
|
457
|
-
* click to trigger the flow.
|
|
458
|
-
* for that button.
|
|
463
|
+
* For `inPopup` SAMLRedirect or OIDCRedirect authentication, we need a
|
|
464
|
+
* button that the user can click to trigger the flow.
|
|
465
|
+
* This attribute sets a containing element for that button.
|
|
459
466
|
*
|
|
460
467
|
* @example
|
|
461
468
|
* ```js
|
|
@@ -465,11 +472,11 @@ export interface EmbedConfig {
|
|
|
465
472
|
* authTriggerContainer: '#auth-trigger-container'
|
|
466
473
|
* })
|
|
467
474
|
* ```
|
|
468
|
-
* @version SDK: 1.17.0 | ThoughtSpot:
|
|
475
|
+
* @version SDK: 1.17.0 | ThoughtSpot: 8.9.0.cl, 9.0.1.sw
|
|
469
476
|
*/
|
|
470
477
|
authTriggerContainer?: string | HTMLElement;
|
|
471
478
|
/**
|
|
472
|
-
* Specify that we want to use the AuthEvent.TRIGGER_SSO_POPUP event to trigger
|
|
479
|
+
* Specify that we want to use the `AuthEvent.TRIGGER_SSO_POPUP` event to trigger
|
|
473
480
|
* SAML popup. This is useful when you want to trigger the popup on a custom user
|
|
474
481
|
* action.
|
|
475
482
|
*
|
|
@@ -477,20 +484,22 @@ export interface EmbedConfig {
|
|
|
477
484
|
useEventForSAMLPopup?: boolean;
|
|
478
485
|
/**
|
|
479
486
|
* Text to show in the button which triggers the popup auth flow.
|
|
480
|
-
* Default:
|
|
487
|
+
* Default: `Authorize`.
|
|
481
488
|
*
|
|
482
|
-
* @version SDK: 1.17.0 | ThoughtSpot:
|
|
489
|
+
* @version SDK: 1.17.0 | ThoughtSpot: 8.9.0.cl, 9.0.1.sw
|
|
483
490
|
*/
|
|
484
491
|
authTriggerText?: string;
|
|
485
492
|
/**
|
|
486
|
-
*
|
|
493
|
+
* Prevent users from accessing the full application or ThoughtSpot application pages
|
|
494
|
+
* access to the embedded application users
|
|
495
|
+
* outside of the iframe.
|
|
487
496
|
*
|
|
488
497
|
* @default true
|
|
489
498
|
* @version SDK: 1.22.0 | ThoughtSpot: 9.3.0.cl, 9.5.1.sw
|
|
490
499
|
*/
|
|
491
500
|
blockNonEmbedFullAppAccess?: boolean;
|
|
492
501
|
/**
|
|
493
|
-
* Host config
|
|
502
|
+
* Host config in case embedded app is inside TS app itself
|
|
494
503
|
*
|
|
495
504
|
* @hidden
|
|
496
505
|
*/
|
|
@@ -516,17 +525,17 @@ export interface EmbedConfig {
|
|
|
516
525
|
export interface LayoutConfig {
|
|
517
526
|
}
|
|
518
527
|
/**
|
|
519
|
-
* Embedded
|
|
528
|
+
* Embedded iframe configuration
|
|
520
529
|
*
|
|
521
530
|
* @group Embed components
|
|
522
531
|
*/
|
|
523
532
|
export interface FrameParams {
|
|
524
533
|
/**
|
|
525
|
-
* The width of the
|
|
534
|
+
* The width of the iframe (unit is pixels if numeric).
|
|
526
535
|
*/
|
|
527
536
|
width?: number | string;
|
|
528
537
|
/**
|
|
529
|
-
* The height of the
|
|
538
|
+
* The height of the iframe (unit is pixels if numeric).
|
|
530
539
|
*/
|
|
531
540
|
height?: number | string;
|
|
532
541
|
/**
|
|
@@ -627,7 +636,6 @@ export interface ViewConfig {
|
|
|
627
636
|
*/
|
|
628
637
|
runtimeParameters?: RuntimeParameter[];
|
|
629
638
|
/**
|
|
630
|
-
/**
|
|
631
639
|
* The locale/language to use for the embedded view.
|
|
632
640
|
*
|
|
633
641
|
* @version SDK: 1.9.4 | ThoughtSpot 8.1.0.cl, 8.4.1.sw
|
|
@@ -727,31 +735,29 @@ export interface ViewConfig {
|
|
|
727
735
|
*/
|
|
728
736
|
reorderedHomepageModules?: HomepageModule[];
|
|
729
737
|
/**
|
|
730
|
-
* The list of tab IDs to show in the embedded.
|
|
731
|
-
* Only
|
|
732
|
-
* Use this to show an tabID.
|
|
738
|
+
* The list of tab IDs to show in the embedded Liveboard.
|
|
739
|
+
* Only the tabs specified in the array will be shown in the Liveboard.
|
|
733
740
|
*
|
|
734
|
-
* Use either
|
|
741
|
+
* Use either `visibleTabs` or `hiddenTabs`.
|
|
735
742
|
*
|
|
736
743
|
* @example
|
|
737
744
|
* ```js
|
|
738
|
-
*
|
|
739
|
-
* ... // other liveboard view config
|
|
740
|
-
* visibleTabs: [
|
|
745
|
+
* visibleTabs: [
|
|
741
746
|
* '430496d6-6903-4601-937e-2c691821af3c',
|
|
742
|
-
*
|
|
743
|
-
* });
|
|
747
|
+
* 'f547ec54-2a37-4516-a222-2b06719af726']
|
|
744
748
|
* ```
|
|
745
749
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
746
750
|
*/
|
|
747
751
|
visibleTabs?: string[];
|
|
748
752
|
/**
|
|
749
|
-
* homepageLeftNavItems :
|
|
750
|
-
* There are 8 home
|
|
751
|
-
*
|
|
752
|
-
* eg: hiddenHomeLeftNavItems = [HomeLeftNavItem.Home] to hide home.
|
|
753
|
+
* homepageLeftNavItems : Show or hide the left navigation bar items.
|
|
754
|
+
* There are 8 eight home navigation list items.
|
|
755
|
+
* To hide these items, specify the string in the array.
|
|
753
756
|
*
|
|
754
|
-
*
|
|
757
|
+
* ```js
|
|
758
|
+
* hiddenHomeLeftNavItems = [HomeLeftNavItem.Home]
|
|
759
|
+
* ```
|
|
760
|
+
* @version SDK: 1.27.0 | Thoughtspot: 9.10.0.cl
|
|
755
761
|
*/
|
|
756
762
|
hiddenHomeLeftNavItems?: HomeLeftNavItem[];
|
|
757
763
|
/**
|
|
@@ -767,7 +773,7 @@ export interface ViewConfig {
|
|
|
767
773
|
* });
|
|
768
774
|
* embed.showPreRender();
|
|
769
775
|
* ```
|
|
770
|
-
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
|
|
776
|
+
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl, 9.8.0.sw
|
|
771
777
|
*/
|
|
772
778
|
preRenderId?: string;
|
|
773
779
|
/**
|
|
@@ -800,7 +806,7 @@ export type MessagePayload = {
|
|
|
800
806
|
status?: string;
|
|
801
807
|
};
|
|
802
808
|
/**
|
|
803
|
-
* MessageOptions: By
|
|
809
|
+
* MessageOptions: By providing options, getting specific event start / end based on
|
|
804
810
|
* option
|
|
805
811
|
*
|
|
806
812
|
* @group Events
|
|
@@ -808,7 +814,7 @@ export type MessagePayload = {
|
|
|
808
814
|
export type MessageOptions = {
|
|
809
815
|
/**
|
|
810
816
|
* A boolean value indicating that start status events of this type
|
|
811
|
-
* will be dispatched
|
|
817
|
+
* will be dispatched.
|
|
812
818
|
*/
|
|
813
819
|
start?: boolean;
|
|
814
820
|
};
|
|
@@ -828,7 +834,7 @@ responder?: (data: any) => void) => void;
|
|
|
828
834
|
*/
|
|
829
835
|
export type MessageCallbackObj = {
|
|
830
836
|
/**
|
|
831
|
-
* options: It contains start,
|
|
837
|
+
* options: It contains start, a boolean value indicating that start
|
|
832
838
|
* status events of this type will be dispatched
|
|
833
839
|
*/
|
|
834
840
|
options: MessageOptions;
|
|
@@ -900,7 +906,7 @@ export declare enum RuntimeFilterOp {
|
|
|
900
906
|
IN = "IN"
|
|
901
907
|
}
|
|
902
908
|
/**
|
|
903
|
-
* Home page module that can be
|
|
909
|
+
* Home page module that can be hidden
|
|
904
910
|
*/
|
|
905
911
|
export declare enum HomepageModule {
|
|
906
912
|
/**
|
|
@@ -916,7 +922,7 @@ export declare enum HomepageModule {
|
|
|
916
922
|
*/
|
|
917
923
|
Favorite = "FAVORITE",
|
|
918
924
|
/**
|
|
919
|
-
* List of answers and
|
|
925
|
+
* List of answers and Liveboards
|
|
920
926
|
*/
|
|
921
927
|
MyLibrary = "MY_LIBRARY",
|
|
922
928
|
/**
|
|
@@ -949,7 +955,7 @@ export interface RuntimeFilter {
|
|
|
949
955
|
values: (number | boolean | string)[];
|
|
950
956
|
}
|
|
951
957
|
/**
|
|
952
|
-
* A filter that can be applied to ThoughtSpot
|
|
958
|
+
* A filter that can be applied to ThoughtSpot Answers, Liveboards, or
|
|
953
959
|
* visualizations at runtime.
|
|
954
960
|
*/
|
|
955
961
|
export interface RuntimeParameter {
|
|
@@ -985,6 +991,14 @@ export interface RuntimeParameter {
|
|
|
985
991
|
export declare enum EmbedEvent {
|
|
986
992
|
/**
|
|
987
993
|
* Rendering has initialized.
|
|
994
|
+
* @example
|
|
995
|
+
*```js
|
|
996
|
+
* liveboardEmbed.on(EmbedEvent.Init, showLoader)
|
|
997
|
+
* //show a loader
|
|
998
|
+
* function showLoader() {
|
|
999
|
+
* document.getElementById("loader");
|
|
1000
|
+
* }
|
|
1001
|
+
*```
|
|
988
1002
|
*
|
|
989
1003
|
* @returns timestamp - The timestamp when the event was generated.
|
|
990
1004
|
*/
|
|
@@ -992,69 +1006,162 @@ export declare enum EmbedEvent {
|
|
|
992
1006
|
/**
|
|
993
1007
|
* Authentication has either succeeded or failed.
|
|
994
1008
|
*
|
|
1009
|
+
* @example
|
|
1010
|
+
*```js
|
|
1011
|
+
* appEmbed.on(EmbedEvent.AuthInit, payload => {
|
|
1012
|
+
* console.log('AuthInit', payload);
|
|
1013
|
+
* })
|
|
1014
|
+
*```
|
|
1015
|
+
*
|
|
995
1016
|
* @returns isLoggedIn - A Boolean specifying whether authentication was successful.
|
|
996
1017
|
*/
|
|
997
1018
|
AuthInit = "authInit",
|
|
998
1019
|
/**
|
|
999
1020
|
* The embed object container has loaded.
|
|
1000
|
-
*
|
|
1001
1021
|
* @returns timestamp - The timestamp when the event was generated.
|
|
1022
|
+
* @example
|
|
1023
|
+
*```js
|
|
1024
|
+
* liveboardEmbed.on(EmbedEvent.Load, hideLoader)
|
|
1025
|
+
* //hide loader
|
|
1026
|
+
* function hideLoader() {
|
|
1027
|
+
* document.getElementById("loader");
|
|
1028
|
+
* }
|
|
1029
|
+
*```
|
|
1002
1030
|
*/
|
|
1003
1031
|
Load = "load",
|
|
1004
1032
|
/**
|
|
1005
1033
|
* Data pertaining to answer or Liveboard is received
|
|
1006
|
-
*
|
|
1007
1034
|
* @return data - The answer or Liveboard data
|
|
1035
|
+
* @example
|
|
1036
|
+
*```js
|
|
1037
|
+
* liveboardEmbed.on(EmbedEvent.Data, payload => {
|
|
1038
|
+
* console.log('data', payload);
|
|
1039
|
+
* })
|
|
1040
|
+
*```
|
|
1008
1041
|
* @important
|
|
1009
1042
|
*/
|
|
1010
1043
|
Data = "data",
|
|
1011
1044
|
/**
|
|
1012
|
-
* Search/
|
|
1045
|
+
* Search/Answer/Liveboard filters have been applied/updated by the user.
|
|
1013
1046
|
*
|
|
1014
1047
|
* @hidden
|
|
1015
1048
|
*/
|
|
1016
1049
|
FiltersChanged = "filtersChanged",
|
|
1017
1050
|
/**
|
|
1018
1051
|
* Search query has been updated by the user.
|
|
1052
|
+
*
|
|
1053
|
+
* @example
|
|
1054
|
+
*```js
|
|
1055
|
+
* searchEmbed.on(EmbedEvent.QueryChanged, payload => console.log('data', payload))
|
|
1056
|
+
*```
|
|
1057
|
+
*
|
|
1019
1058
|
*/
|
|
1020
1059
|
QueryChanged = "queryChanged",
|
|
1021
1060
|
/**
|
|
1022
|
-
* A drill
|
|
1061
|
+
* A drill-down operation has been performed.
|
|
1023
1062
|
*
|
|
1024
1063
|
* @returns additionalFilters - Any additional filters applied
|
|
1025
1064
|
* @returns drillDownColumns - The columns on which drill down was performed
|
|
1026
1065
|
* @returns nonFilteredColumns - The columns that were not filtered
|
|
1066
|
+
*
|
|
1067
|
+
* @example
|
|
1068
|
+
*```js
|
|
1069
|
+
* searchEmbed.trigger(HostEvent.DrillDown, {
|
|
1070
|
+
* points: {
|
|
1071
|
+
* clickedPoint,
|
|
1072
|
+
* selectedPoints: selectedPoint
|
|
1073
|
+
* },
|
|
1074
|
+
* autoDrillDown: true,
|
|
1075
|
+
* })
|
|
1076
|
+
*```
|
|
1077
|
+
* In this example, `VizPointDoubleClick` event is used for
|
|
1078
|
+
* triggering the `DrillDown` event when an area or specific
|
|
1079
|
+
* data point on a table or chart is double-clicked.
|
|
1080
|
+
*
|
|
1081
|
+
* @example
|
|
1082
|
+
*```js
|
|
1083
|
+
* searchEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
|
|
1084
|
+
* console.log(payload);
|
|
1085
|
+
* const clickedPoint = payload.data.clickedPoint;
|
|
1086
|
+
* const selectedPoint = payload.data.selectedPoints;
|
|
1087
|
+
* console.log('>>> called', clickedPoint);
|
|
1088
|
+
* embed.trigger(HostEvent.DrillDown, {
|
|
1089
|
+
* points: {
|
|
1090
|
+
* clickedPoint,
|
|
1091
|
+
* selectedPoints: selectedPoint
|
|
1092
|
+
* },
|
|
1093
|
+
* autoDrillDown: true,
|
|
1094
|
+
* })
|
|
1095
|
+
* })
|
|
1096
|
+
*```
|
|
1097
|
+
*
|
|
1027
1098
|
*/
|
|
1028
1099
|
Drilldown = "drillDown",
|
|
1029
1100
|
/**
|
|
1030
1101
|
* One or more data sources have been selected.
|
|
1031
|
-
*
|
|
1032
1102
|
* @returns dataSourceIds - the list of data sources
|
|
1103
|
+
*
|
|
1104
|
+
* @example
|
|
1105
|
+
* ```js
|
|
1106
|
+
* searchEmbed.on(EmbedEvent.DataSourceSelected, payload => {
|
|
1107
|
+
* console.log('DataSourceSelected', payload);
|
|
1108
|
+
* })
|
|
1109
|
+
* ```
|
|
1110
|
+
*
|
|
1033
1111
|
*/
|
|
1034
1112
|
DataSourceSelected = "dataSourceSelected",
|
|
1035
1113
|
/**
|
|
1036
1114
|
* One or more data columns have been selected.
|
|
1037
|
-
*
|
|
1038
1115
|
* @returns columnIds - the list of columns
|
|
1039
1116
|
* @version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
|
|
1117
|
+
*
|
|
1118
|
+
* @example
|
|
1119
|
+
* ```js
|
|
1120
|
+
* appEmbed.on(EmbedEvent.AddRemoveColumns, payload => {
|
|
1121
|
+
* console.log('AddRemoveColumns', payload);
|
|
1122
|
+
* })
|
|
1123
|
+
* ```
|
|
1124
|
+
*
|
|
1040
1125
|
*/
|
|
1041
1126
|
AddRemoveColumns = "addRemoveColumns",
|
|
1042
1127
|
/**
|
|
1043
|
-
* A custom action has been triggered
|
|
1128
|
+
* A custom action has been triggered.
|
|
1044
1129
|
*
|
|
1045
|
-
* @returns actionId -
|
|
1046
|
-
* @returns data -
|
|
1130
|
+
* @returns actionId - ID of the custom action
|
|
1131
|
+
* @returns data - Response payload with the Answer or Liveboard data
|
|
1132
|
+
*
|
|
1133
|
+
* @example
|
|
1134
|
+
* ```js
|
|
1135
|
+
* appEmbed.on(EmbedEvent.customAction, payload => {
|
|
1136
|
+
* const data = payload.data;
|
|
1137
|
+
* if (data.id === 'insert Custom Action ID here') {
|
|
1138
|
+
* console.log('Custom Action event:', data.embedAnswerData);
|
|
1139
|
+
* }
|
|
1140
|
+
* })
|
|
1141
|
+
* ```
|
|
1047
1142
|
*/
|
|
1048
1143
|
CustomAction = "customAction",
|
|
1049
1144
|
/**
|
|
1050
|
-
* Listen to double
|
|
1145
|
+
* Listen to double click actions on a visualization.
|
|
1146
|
+
*
|
|
1147
|
+
* @return ContextMenuInputPoints - Data point that is double-clicked
|
|
1051
1148
|
*
|
|
1052
|
-
* @return ContextMenuInputPoints - data point that is double clicked
|
|
1053
1149
|
* @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
|
|
1150
|
+
*
|
|
1151
|
+
* @example
|
|
1152
|
+
* ```js
|
|
1153
|
+
* livebaordEmbed.on(EmbedEvent.VizPointDoubleClick, payload => {
|
|
1154
|
+
* console.log('VizPointDoubleClick', payload)
|
|
1155
|
+
* })
|
|
1156
|
+
* ```
|
|
1054
1157
|
*/
|
|
1055
1158
|
VizPointDoubleClick = "vizPointDoubleClick",
|
|
1056
1159
|
/**
|
|
1057
|
-
* Listen to clicks on a visualization in a
|
|
1160
|
+
* Listen to clicks on a visualization in a Liveboard or Search result.
|
|
1161
|
+
*
|
|
1162
|
+
* @return viz, clickedPoint - metadata about the point that is clicked
|
|
1163
|
+
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1164
|
+
* @important
|
|
1058
1165
|
*
|
|
1059
1166
|
* @example
|
|
1060
1167
|
* ```js
|
|
@@ -1068,25 +1175,46 @@ export declare enum EmbedEvent {
|
|
|
1068
1175
|
* )
|
|
1069
1176
|
* });
|
|
1070
1177
|
* ```
|
|
1071
|
-
* @return viz, clickedPoint - metadata about point that is clicked
|
|
1072
|
-
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1073
|
-
* @important
|
|
1074
1178
|
*/
|
|
1075
1179
|
VizPointClick = "vizPointClick",
|
|
1076
1180
|
/**
|
|
1077
1181
|
* An error has occurred.
|
|
1078
1182
|
*
|
|
1079
1183
|
* @returns error - An error object or message
|
|
1184
|
+
*
|
|
1185
|
+
* @example
|
|
1186
|
+
* ```js
|
|
1187
|
+
* SearchEmbed.on(EmbedEvent.Error, showErrorMsg)
|
|
1188
|
+
* //show error messaage
|
|
1189
|
+
* function showErrorMsg() {
|
|
1190
|
+
* document.getElementById("error");
|
|
1191
|
+
* ```
|
|
1192
|
+
*
|
|
1080
1193
|
*/
|
|
1081
1194
|
Error = "Error",
|
|
1082
1195
|
/**
|
|
1083
|
-
* The embedded object has sent an alert
|
|
1196
|
+
* The embedded object has sent an alert.
|
|
1084
1197
|
*
|
|
1085
1198
|
* @returns alert - An alert object
|
|
1199
|
+
*
|
|
1200
|
+
* @example
|
|
1201
|
+
* ```js
|
|
1202
|
+
* searchEmbed.on(EmbedEvent.Alert)
|
|
1203
|
+
* ```
|
|
1204
|
+
*
|
|
1086
1205
|
*/
|
|
1087
1206
|
Alert = "alert",
|
|
1088
1207
|
/**
|
|
1089
1208
|
* The ThoughtSpot auth session has expired.
|
|
1209
|
+
*
|
|
1210
|
+
* @example
|
|
1211
|
+
*```js
|
|
1212
|
+
* appEmbed.on(EmbedEvent.AuthExpire, showAuthExpired)
|
|
1213
|
+
* //show auth expired banner
|
|
1214
|
+
* function showAuthExpired() {
|
|
1215
|
+
* document.getElementById("authExpiredBanner");
|
|
1216
|
+
* }
|
|
1217
|
+
*```
|
|
1090
1218
|
*/
|
|
1091
1219
|
AuthExpire = "ThoughtspotAuthExpired",
|
|
1092
1220
|
/**
|
|
@@ -1116,14 +1244,28 @@ export declare enum EmbedEvent {
|
|
|
1116
1244
|
*/
|
|
1117
1245
|
EmbedIframeCenter = "EmbedIframeCenter",
|
|
1118
1246
|
/**
|
|
1119
|
-
* Emitted when
|
|
1120
|
-
*
|
|
1247
|
+
* Emitted when the **Get Data** action is initiated.
|
|
1248
|
+
* Applicable to `SearchBarEmbed` only.
|
|
1249
|
+
*
|
|
1250
|
+
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
1121
1251
|
*
|
|
1122
|
-
* @
|
|
1252
|
+
* @example
|
|
1253
|
+
*```js
|
|
1254
|
+
* searchbarEmbed.on(EmbedEvent.GetDataClick)
|
|
1255
|
+
* .then(data => {
|
|
1256
|
+
* console.log('Answer Data:', data);
|
|
1257
|
+
* })
|
|
1258
|
+
*```
|
|
1123
1259
|
*/
|
|
1124
1260
|
GetDataClick = "getDataClick",
|
|
1125
1261
|
/**
|
|
1126
1262
|
* Detects the route change.
|
|
1263
|
+
*
|
|
1264
|
+
* @example
|
|
1265
|
+
*```js
|
|
1266
|
+
* searchEmbed.on(EmbedEvent.RouteChange, payload =>
|
|
1267
|
+
* console.log('data', payload))
|
|
1268
|
+
*```
|
|
1127
1269
|
*/
|
|
1128
1270
|
RouteChange = "ROUTE_CHANGE",
|
|
1129
1271
|
/**
|
|
@@ -1133,10 +1275,15 @@ export declare enum EmbedEvent {
|
|
|
1133
1275
|
*/
|
|
1134
1276
|
V1Data = "exportVizDataToParent",
|
|
1135
1277
|
/**
|
|
1136
|
-
* Emitted when the embed does not have cookie access. This
|
|
1137
|
-
*
|
|
1278
|
+
* Emitted when the embed does not have cookie access. This happens
|
|
1279
|
+
* when Safari and other Web browsers block third-party cookies
|
|
1280
|
+
* are blocked by default. `NoCookieAccess` can trigger
|
|
1138
1281
|
*
|
|
1139
|
-
* @
|
|
1282
|
+
* @example
|
|
1283
|
+
*```js
|
|
1284
|
+
* appEmbed.on(EmbedEvent.NoCookieAccess)
|
|
1285
|
+
*```
|
|
1286
|
+
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1.sw
|
|
1140
1287
|
*/
|
|
1141
1288
|
NoCookieAccess = "noCookieAccess",
|
|
1142
1289
|
/**
|
|
@@ -1148,239 +1295,539 @@ export declare enum EmbedEvent {
|
|
|
1148
1295
|
SAMLComplete = "samlComplete",
|
|
1149
1296
|
/**
|
|
1150
1297
|
* Emitted when any modal is opened in the app
|
|
1151
|
-
*
|
|
1152
1298
|
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
1299
|
+
*
|
|
1300
|
+
* @example
|
|
1301
|
+
*```js
|
|
1302
|
+
* appEmbed.on(EmbedEvent.DialogOpen, payload => {
|
|
1303
|
+
* console.log('dialog open', payload);
|
|
1304
|
+
* })
|
|
1305
|
+
*```
|
|
1153
1306
|
*/
|
|
1154
1307
|
DialogOpen = "dialog-open",
|
|
1155
1308
|
/**
|
|
1156
1309
|
* Emitted when any modal is closed in the app
|
|
1157
|
-
*
|
|
1158
1310
|
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
1311
|
+
*
|
|
1312
|
+
* @example
|
|
1313
|
+
*```js
|
|
1314
|
+
* appEmbed.on(EmbedEvent.DialogClose, payload => {
|
|
1315
|
+
* console.log('dialog close', payload);
|
|
1316
|
+
* })
|
|
1317
|
+
*```
|
|
1159
1318
|
*/
|
|
1160
1319
|
DialogClose = "dialog-close",
|
|
1161
1320
|
/**
|
|
1162
1321
|
* Emitted when the Liveboard shell loads.
|
|
1163
1322
|
* You can use this event as a hook to trigger
|
|
1164
1323
|
* other events on the rendered Liveboard.
|
|
1165
|
-
*
|
|
1166
1324
|
* @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
|
|
1325
|
+
*
|
|
1326
|
+
* @example
|
|
1327
|
+
*```js
|
|
1328
|
+
* liveboardEmbed.on(EmbedEvent.LiveboardRendered, payload => {
|
|
1329
|
+
console.log('Liveboard is rendered', payload);
|
|
1330
|
+
})
|
|
1331
|
+
*```
|
|
1332
|
+
* The following example shows how to trigger
|
|
1333
|
+
* `SetVisibleVizs` event using LiveboardRendered embed event:
|
|
1334
|
+
*
|
|
1335
|
+
* @example
|
|
1336
|
+
*```js
|
|
1337
|
+
* const embedRef = useEmbedRef();
|
|
1338
|
+
* const onLiveboardRendered = () => {
|
|
1339
|
+
* embed.trigger(HostEvent.SetVisibleVizs, ['viz1', 'viz2']);
|
|
1340
|
+
* };
|
|
1341
|
+
*```
|
|
1167
1342
|
*/
|
|
1168
1343
|
LiveboardRendered = "PinboardRendered",
|
|
1169
1344
|
/**
|
|
1170
1345
|
* This can be used to register an event listener which
|
|
1171
1346
|
* is triggered on all events.
|
|
1172
|
-
*
|
|
1173
1347
|
* @Version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
|
|
1348
|
+
*
|
|
1349
|
+
* @example
|
|
1350
|
+
*```js
|
|
1351
|
+
* appEmbed.on(EmbedEvent.ALL, payload => {
|
|
1352
|
+
* console.log('Embed Events', payload)
|
|
1353
|
+
* })
|
|
1354
|
+
*```
|
|
1174
1355
|
*/
|
|
1175
1356
|
ALL = "*",
|
|
1176
1357
|
/**
|
|
1177
1358
|
* Emitted when an Answer is saved in the app
|
|
1178
|
-
*
|
|
1179
1359
|
* @Version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1360
|
+
* @example
|
|
1361
|
+
*```js
|
|
1362
|
+
* //trigger when action starts
|
|
1363
|
+
* searchEmbed.on(EmbedEvent.Save, payload => {
|
|
1364
|
+
* console.log('Save', payload)
|
|
1365
|
+
* }, {
|
|
1366
|
+
* start: true
|
|
1367
|
+
* })
|
|
1368
|
+
* //trigger when action ends
|
|
1369
|
+
* searchEmbed.on(EmbedEvent.Save, payload => {
|
|
1370
|
+
* console.log('Save', payload)
|
|
1371
|
+
* })
|
|
1372
|
+
*```
|
|
1180
1373
|
*/
|
|
1181
1374
|
Save = "save",
|
|
1182
1375
|
/**
|
|
1183
1376
|
* Emitted when the download action is triggered on an answer
|
|
1184
1377
|
*
|
|
1378
|
+
* **Note**: This event is deprecated in v1.21.0.
|
|
1379
|
+
* To fire an event when a download action is initiated on a chart or table,
|
|
1380
|
+
* use `EmbedEvent.DownloadAsPng`, `EmbedEvent.DownloadAsPDF`, `EmbedEvent.DownloadAsCSV`,
|
|
1381
|
+
* or `EmbedEvent.DownloadAsXLSX`
|
|
1382
|
+
*
|
|
1185
1383
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1384
|
+
*
|
|
1385
|
+
* @example
|
|
1386
|
+
*```js
|
|
1387
|
+
* liveboardEmbed.trigger(HostEvent.Download, {
|
|
1388
|
+
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
1389
|
+
* })
|
|
1390
|
+
*```
|
|
1186
1391
|
*/
|
|
1187
1392
|
Download = "download",
|
|
1188
1393
|
/**
|
|
1189
1394
|
* Emitted when the download action is triggered on an answer
|
|
1190
|
-
*
|
|
1191
1395
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.0.sw
|
|
1396
|
+
*
|
|
1397
|
+
* @example
|
|
1398
|
+
*```js
|
|
1399
|
+
* //trigger when action starts
|
|
1400
|
+
* searchEmbed.on(EmbedEvent.DownloadAsPng, payload => {
|
|
1401
|
+
* console.log('download PNG', payload)}, {start: true })
|
|
1402
|
+
* //trigger when action ends
|
|
1403
|
+
* searchEmbed.on(EmbedEvent.DownloadAsPng, payload => {
|
|
1404
|
+
* console.log('download PNG', payload)})
|
|
1405
|
+
*```
|
|
1406
|
+
*
|
|
1192
1407
|
*/
|
|
1193
1408
|
DownloadAsPng = "downloadAsPng",
|
|
1194
1409
|
/**
|
|
1195
1410
|
* Emitted when the Download as PDF action is triggered on an answer
|
|
1196
1411
|
*
|
|
1197
1412
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1413
|
+
*
|
|
1414
|
+
* @example
|
|
1415
|
+
*```js
|
|
1416
|
+
* //trigger when action starts
|
|
1417
|
+
* searchEmbed.on(EmbedEvent.DownloadAsPdf, payload => {
|
|
1418
|
+
* console.log('download PDF', payload)}, {start: true })
|
|
1419
|
+
* //trigger when action ends
|
|
1420
|
+
* searchEmbed.on(EmbedEvent.DownloadAsPdf, payload => {
|
|
1421
|
+
* console.log('download PDF', payload)})
|
|
1422
|
+
*```
|
|
1423
|
+
*
|
|
1198
1424
|
*/
|
|
1199
1425
|
DownloadAsPdf = "downloadAsPdf",
|
|
1200
1426
|
/**
|
|
1201
1427
|
* Emitted when the Download as CSV action is triggered on an answer
|
|
1202
1428
|
*
|
|
1203
1429
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1430
|
+
* @example
|
|
1431
|
+
*```js
|
|
1432
|
+
* //trigger when action starts
|
|
1433
|
+
* searchEmbed.on(EmbedEvent.DownloadAsCSV, payload => {
|
|
1434
|
+
* console.log('download CSV', payload)}, {start: true })
|
|
1435
|
+
* //trigger when action ends
|
|
1436
|
+
* searchEmbed.on(EmbedEvent.DownloadAsCSV, payload => {
|
|
1437
|
+
* console.log('download CSV', payload)})
|
|
1438
|
+
*```
|
|
1204
1439
|
*/
|
|
1205
1440
|
DownloadAsCsv = "downloadAsCsv",
|
|
1206
1441
|
/**
|
|
1207
1442
|
* Emitted when the Download as XLSX action is triggered on an answer
|
|
1208
1443
|
*
|
|
1209
1444
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1445
|
+
*
|
|
1446
|
+
* @example
|
|
1447
|
+
*```js
|
|
1448
|
+
* //trigger when action starts
|
|
1449
|
+
* searchEmbed.on(EmbedEvent.DownloadAsXlsx, payload => {
|
|
1450
|
+
* console.log('download Xlsx', payload)}, { start: true })
|
|
1451
|
+
* //trigger when action ends
|
|
1452
|
+
* searchEmbed.on(EmbedEvent.DownloadAsXlsx, payload => {
|
|
1453
|
+
* console.log('download Xlsx', payload)})
|
|
1454
|
+
*```
|
|
1210
1455
|
*/
|
|
1211
1456
|
DownloadAsXlsx = "downloadAsXlsx",
|
|
1212
1457
|
/**
|
|
1213
|
-
* Emitted when an
|
|
1458
|
+
* Emitted when an Answer is deleted in the app
|
|
1214
1459
|
*
|
|
1215
1460
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1461
|
+
*
|
|
1462
|
+
* @example
|
|
1463
|
+
*```js
|
|
1464
|
+
* //trigger when action starts
|
|
1465
|
+
* appEmbed.on(EmbedEvent.AnswerDelete, payload => {
|
|
1466
|
+
* console.log('delete answer', payload)}, {start: true })
|
|
1467
|
+
* //trigger when action is completed
|
|
1468
|
+
* appEmbed.on(EmbedEvent.AnswerDelete, payload => {
|
|
1469
|
+
* console.log('delete answer', payload)})
|
|
1470
|
+
*```
|
|
1216
1471
|
*/
|
|
1217
1472
|
AnswerDelete = "answerDelete",
|
|
1218
1473
|
/**
|
|
1219
1474
|
* Emitted when an answer is pinned to a Liveboard
|
|
1220
1475
|
*
|
|
1221
1476
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1477
|
+
* @example
|
|
1478
|
+
*```js
|
|
1479
|
+
* //trigger when action starts
|
|
1480
|
+
* searchEmbed.on(EmbedEvent.Pin, payload => {
|
|
1481
|
+
* console.log('pin', payload)
|
|
1482
|
+
* }, {
|
|
1483
|
+
* start: true
|
|
1484
|
+
* })
|
|
1485
|
+
* //trigger when action ends
|
|
1486
|
+
* searchEmbed.on(EmbedEvent.Pin, payload => {
|
|
1487
|
+
* console.log('pin', payload)
|
|
1488
|
+
* })
|
|
1489
|
+
*```
|
|
1222
1490
|
*/
|
|
1223
1491
|
Pin = "pin",
|
|
1224
1492
|
/**
|
|
1225
1493
|
* Emitted when SpotIQ analysis is triggered
|
|
1226
1494
|
*
|
|
1227
1495
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1496
|
+
* @example
|
|
1497
|
+
*```js
|
|
1498
|
+
* //trigger when action starts
|
|
1499
|
+
* searchEmbed.on(EmbedEvent.SpotIQAnalyze, payload => {
|
|
1500
|
+
* console.log('SpotIQAnalyze', payload)
|
|
1501
|
+
* }, {
|
|
1502
|
+
* start: true
|
|
1503
|
+
* })
|
|
1504
|
+
* //trigger when action ends
|
|
1505
|
+
* searchEmbed.on(EmbedEvent.SpotIQAnalyze, payload => {
|
|
1506
|
+
* console.log('SpotIQ analyze', payload)
|
|
1507
|
+
* })
|
|
1508
|
+
*```
|
|
1228
1509
|
*/
|
|
1229
1510
|
SpotIQAnalyze = "spotIQAnalyze",
|
|
1230
1511
|
/**
|
|
1231
1512
|
* Emitted when a user shares an object with another user or group
|
|
1232
1513
|
*
|
|
1233
1514
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1515
|
+
*
|
|
1516
|
+
* @example
|
|
1517
|
+
*```js
|
|
1518
|
+
* //trigger when action starts
|
|
1519
|
+
* searchEmbed.on(EmbedEvent.Share, payload => {
|
|
1520
|
+
* console.log('Share', payload)
|
|
1521
|
+
* }, {
|
|
1522
|
+
* start: true
|
|
1523
|
+
* })
|
|
1524
|
+
* //trigger when action ends
|
|
1525
|
+
* searchEmbed.on(EmbedEvent.Share, payload => {
|
|
1526
|
+
* console.log('Share', payload)
|
|
1527
|
+
* })
|
|
1528
|
+
*```
|
|
1234
1529
|
*/
|
|
1235
1530
|
Share = "share",
|
|
1236
1531
|
/**
|
|
1237
|
-
* Emitted when a user clicks the Include action to include a specific value or
|
|
1238
|
-
* on a chart or table
|
|
1532
|
+
* Emitted when a user clicks the **Include** action to include a specific value or
|
|
1533
|
+
* data on a chart or table.
|
|
1239
1534
|
*
|
|
1240
1535
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1536
|
+
* @example
|
|
1537
|
+
*```js
|
|
1538
|
+
* appEmbed.on(EmbedEvent.DrillInclude, payload => {
|
|
1539
|
+
* console.log('Drill include', payload);
|
|
1540
|
+
* })
|
|
1541
|
+
*```
|
|
1241
1542
|
*/
|
|
1242
1543
|
DrillInclude = "context-menu-item-include",
|
|
1243
1544
|
/**
|
|
1244
|
-
* Emitted when a user clicks the Exclude action to exclude a specific value or
|
|
1245
|
-
* on a chart or table
|
|
1545
|
+
* Emitted when a user clicks the **Exclude** action to exclude a specific value or
|
|
1546
|
+
* data on a chart or table
|
|
1246
1547
|
*
|
|
1247
1548
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1549
|
+
* @example
|
|
1550
|
+
*```js
|
|
1551
|
+
* appEmbed.on(EmbedEvent.DrillExclude, payload => {
|
|
1552
|
+
* console.log('Drill exclude', payload);
|
|
1553
|
+
* })
|
|
1554
|
+
*```
|
|
1248
1555
|
*/
|
|
1249
1556
|
DrillExclude = "context-menu-item-exclude",
|
|
1250
1557
|
/**
|
|
1251
|
-
* Emitted when
|
|
1558
|
+
* Emitted when a column value is copied in the embedded app.
|
|
1252
1559
|
*
|
|
1253
1560
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1561
|
+
* @example
|
|
1562
|
+
*```js
|
|
1563
|
+
* seachEmbed.on(EmbedEvent.CopyToClipboard, payload => {
|
|
1564
|
+
* console.log('copy to clipboard', payload);
|
|
1565
|
+
* })
|
|
1566
|
+
*```
|
|
1254
1567
|
*/
|
|
1255
1568
|
CopyToClipboard = "context-menu-item-copy-to-clipboard",
|
|
1256
1569
|
/**
|
|
1257
|
-
* Emitted when a user clicks the Update TML action
|
|
1570
|
+
* Emitted when a user clicks the **Update TML** action
|
|
1258
1571
|
*
|
|
1259
1572
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1573
|
+
* @example
|
|
1574
|
+
*```js
|
|
1575
|
+
* liveboardEmbed.on(EmbedEvent.UpdateTML)
|
|
1576
|
+
* })
|
|
1577
|
+
*```
|
|
1260
1578
|
*/
|
|
1261
1579
|
UpdateTML = "updateTSL",
|
|
1262
1580
|
/**
|
|
1263
|
-
* Emitted when a user clicks the Edit TML action
|
|
1581
|
+
* Emitted when a user clicks the **Edit TML** action
|
|
1264
1582
|
*
|
|
1265
1583
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1584
|
+
* @example
|
|
1585
|
+
*```js
|
|
1586
|
+
* appEmbed.on(EmbedEvent.EditTML, payload => {
|
|
1587
|
+
* console.log('Edit TML', payload);
|
|
1588
|
+
* })
|
|
1589
|
+
*```
|
|
1266
1590
|
*/
|
|
1267
1591
|
EditTML = "editTSL",
|
|
1268
1592
|
/**
|
|
1269
|
-
* Emitted when
|
|
1270
|
-
*
|
|
1593
|
+
* Emitted when the **Export TML** action is triggered on an
|
|
1594
|
+
* an embedded object in the app
|
|
1271
1595
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1596
|
+
* @example
|
|
1597
|
+
*```js
|
|
1598
|
+
* //trigger when action starts
|
|
1599
|
+
* searchEmbed.on(EmbedEvent.ExportTML, payload => {
|
|
1600
|
+
* console.log('Export TML', payload)}, { start: true })
|
|
1601
|
+
* //trigger when action ends
|
|
1602
|
+
* searchEmbed.on(EmbedEvent.ExportTML, payload => {
|
|
1603
|
+
* console.log('Export TML', payload)})
|
|
1604
|
+
*```
|
|
1272
1605
|
*/
|
|
1273
1606
|
ExportTML = "exportTSL",
|
|
1274
1607
|
/**
|
|
1275
|
-
* Emitted when an
|
|
1608
|
+
* Emitted when an Answer is saved as a View.
|
|
1276
1609
|
*
|
|
1277
1610
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1611
|
+
* @example
|
|
1612
|
+
*```js
|
|
1613
|
+
* appEmbed.on(EmbedEvent.SaveAsView, payload => {
|
|
1614
|
+
* console.log('View', payload);
|
|
1615
|
+
* })
|
|
1616
|
+
*```
|
|
1278
1617
|
*/
|
|
1279
1618
|
SaveAsView = "saveAsView",
|
|
1280
1619
|
/**
|
|
1281
|
-
* Emitted when
|
|
1620
|
+
* Emitted when the user creates a copy of an Answer
|
|
1282
1621
|
*
|
|
1283
1622
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1623
|
+
* @example
|
|
1624
|
+
*```js
|
|
1625
|
+
* //trigger when action starts
|
|
1626
|
+
* appEmbed.on(EmbedEvent.CopyAEdit, payload => {
|
|
1627
|
+
* console.log('Copy and edit', payload)}, {start: true })
|
|
1628
|
+
* //trigger when action ends
|
|
1629
|
+
* appEmbed.on(EmbedEvent.CopyAEdit, payload => {
|
|
1630
|
+
* console.log('Copy and edit', payload)})
|
|
1631
|
+
*```
|
|
1284
1632
|
*/
|
|
1285
1633
|
CopyAEdit = "copyAEdit",
|
|
1286
1634
|
/**
|
|
1287
|
-
* Emitted when a user clicks Show underlying data on an
|
|
1635
|
+
* Emitted when a user clicks Show underlying data on an Answer
|
|
1288
1636
|
*
|
|
1289
1637
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1638
|
+
* @example
|
|
1639
|
+
*```js
|
|
1640
|
+
* liveboardEmbed.on(EmbedEvent.ShowUnderlyingData, payload => {
|
|
1641
|
+
* console.log('show data', payload);
|
|
1642
|
+
* })
|
|
1643
|
+
*```
|
|
1290
1644
|
*/
|
|
1291
1645
|
ShowUnderlyingData = "showUnderlyingData",
|
|
1292
1646
|
/**
|
|
1293
|
-
* Emitted when an answer is switched to a chart or table view
|
|
1647
|
+
* Emitted when an answer is switched to a chart or table view.
|
|
1294
1648
|
*
|
|
1295
1649
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1650
|
+
* @example
|
|
1651
|
+
*```js
|
|
1652
|
+
* searchEmbed.on(EmbedEvent.AnswerChartSwitcher, payload => {
|
|
1653
|
+
* console.log('switch view', payload);
|
|
1654
|
+
* })
|
|
1655
|
+
*```
|
|
1296
1656
|
*/
|
|
1297
1657
|
AnswerChartSwitcher = "answerChartSwitcher",
|
|
1298
1658
|
/**
|
|
1299
|
-
* Internal event to communicate the initial settings back to the
|
|
1659
|
+
* Internal event to communicate the initial settings back to the ThoughtSpot app
|
|
1300
1660
|
*
|
|
1301
1661
|
* @hidden
|
|
1302
1662
|
*/
|
|
1303
1663
|
APP_INIT = "appInit",
|
|
1304
1664
|
/**
|
|
1305
|
-
* Emitted when a user clicks Show Liveboard details on a Liveboard
|
|
1665
|
+
* Emitted when a user clicks **Show Liveboard details** on a Liveboard
|
|
1306
1666
|
*
|
|
1307
1667
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1668
|
+
* @example
|
|
1669
|
+
*```js
|
|
1670
|
+
* liveboardEmbed.on(EmbedEvent.AnswerChartSwitcher, payload => {
|
|
1671
|
+
* console.log('Liveboard details', payload);
|
|
1672
|
+
* })
|
|
1673
|
+
*```
|
|
1308
1674
|
*/
|
|
1309
1675
|
LiveboardInfo = "pinboardInfo",
|
|
1310
1676
|
/**
|
|
1311
1677
|
* Emitted when a user clicks on the Favorite icon on a Liveboard
|
|
1312
1678
|
*
|
|
1313
1679
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1680
|
+
* @example
|
|
1681
|
+
*```js
|
|
1682
|
+
* liveboardEmbed.on(EmbedEvent.AddToFavorites, payload => {
|
|
1683
|
+
* console.log('favorites', payload);
|
|
1684
|
+
* })
|
|
1685
|
+
*```
|
|
1314
1686
|
*/
|
|
1315
1687
|
AddToFavorites = "addToFavorites",
|
|
1316
1688
|
/**
|
|
1317
|
-
* Emitted when a user clicks Schedule on a Liveboard
|
|
1689
|
+
* Emitted when a user clicks **Schedule** on a Liveboard
|
|
1318
1690
|
*
|
|
1319
1691
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1692
|
+
* @example
|
|
1693
|
+
*```js
|
|
1694
|
+
* liveboardEmbed.on(EmbedEvent.Schedule, payload => {
|
|
1695
|
+
* console.log(`Liveboard schedule', payload);
|
|
1696
|
+
* })
|
|
1697
|
+
*```
|
|
1320
1698
|
*/
|
|
1321
1699
|
Schedule = "subscription",
|
|
1322
1700
|
/**
|
|
1323
|
-
* Emitted when a user clicks Edit on a Liveboard or visualization
|
|
1701
|
+
* Emitted when a user clicks **Edit** on a Liveboard or visualization
|
|
1324
1702
|
*
|
|
1325
1703
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1704
|
+
* @example
|
|
1705
|
+
*```js
|
|
1706
|
+
* liveboardEmbed.on(EmbedEvent.Edit, payload => {
|
|
1707
|
+
* console.log(`Liveboard edit', payload);
|
|
1708
|
+
* })
|
|
1709
|
+
*```
|
|
1326
1710
|
*/
|
|
1327
1711
|
Edit = "edit",
|
|
1328
1712
|
/**
|
|
1329
|
-
* Emitted when a user clicks Make a copy on a Liveboard
|
|
1713
|
+
* Emitted when a user clicks *Make a copy* on a Liveboard
|
|
1330
1714
|
*
|
|
1331
1715
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1716
|
+
* @example
|
|
1717
|
+
*```js
|
|
1718
|
+
* liveboardEmbed.on(EmbedEvent.MakeACopy, payload => {
|
|
1719
|
+
* console.log(`Copy', payload);
|
|
1720
|
+
* })
|
|
1721
|
+
*```
|
|
1332
1722
|
*/
|
|
1333
1723
|
MakeACopy = "makeACopy",
|
|
1334
1724
|
/**
|
|
1335
|
-
* Emitted when a user clicks Present on a Liveboard or visualization
|
|
1725
|
+
* Emitted when a user clicks **Present** on a Liveboard or visualization
|
|
1336
1726
|
*
|
|
1337
1727
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1728
|
+
* @example
|
|
1729
|
+
*```js
|
|
1730
|
+
* liveboardEmbed.trigger(HostEvent.Present)
|
|
1731
|
+
*```
|
|
1732
|
+
*
|
|
1733
|
+
* @example
|
|
1734
|
+
*```js
|
|
1735
|
+
* liveboardEmbed.on(EmbedEvent.Present, {
|
|
1736
|
+
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1737
|
+
* })
|
|
1738
|
+
*```
|
|
1338
1739
|
*/
|
|
1339
1740
|
Present = "present",
|
|
1340
1741
|
/**
|
|
1341
|
-
* Emitted when a user clicks Delete on a
|
|
1742
|
+
* Emitted when a user clicks **Delete** on a visualization
|
|
1342
1743
|
*
|
|
1343
1744
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1745
|
+
* @example
|
|
1746
|
+
*```js
|
|
1747
|
+
* liveboardEmbed.trigger(HostEvent.Delete,
|
|
1748
|
+
* {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1749
|
+
*```
|
|
1750
|
+
*
|
|
1344
1751
|
*/
|
|
1345
1752
|
Delete = "delete",
|
|
1346
1753
|
/**
|
|
1347
1754
|
* Emitted when a user clicks Manage schedules on a Liveboard
|
|
1348
1755
|
*
|
|
1349
1756
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1757
|
+
*
|
|
1758
|
+
* @example
|
|
1759
|
+
*```js
|
|
1760
|
+
* liveboardEmbed.trigger(HostEvent.SchedulesList)
|
|
1761
|
+
*```
|
|
1762
|
+
*
|
|
1350
1763
|
*/
|
|
1351
1764
|
SchedulesList = "schedule-list",
|
|
1352
1765
|
/**
|
|
1353
|
-
* Emitted when a user clicks Cancel in edit mode on a Liveboard
|
|
1766
|
+
* Emitted when a user clicks **Cancel** in edit mode on a Liveboard
|
|
1354
1767
|
*
|
|
1355
1768
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1769
|
+
*
|
|
1770
|
+
* @example
|
|
1771
|
+
*```js
|
|
1772
|
+
* liveboardEmbed.trigger(HostEvent.Cancel)
|
|
1773
|
+
*```
|
|
1774
|
+
*
|
|
1356
1775
|
*/
|
|
1357
1776
|
Cancel = "cancel",
|
|
1358
1777
|
/**
|
|
1359
|
-
* Emitted when a user clicks Explore on a visualization
|
|
1778
|
+
* Emitted when a user clicks **Explore** on a visualization
|
|
1360
1779
|
*
|
|
1361
1780
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1781
|
+
*
|
|
1782
|
+
* @example
|
|
1783
|
+
*```js
|
|
1784
|
+
* liveboardEmbed.trigger(HostEvent.Explore, {
|
|
1785
|
+
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1786
|
+
*```
|
|
1787
|
+
*
|
|
1362
1788
|
*/
|
|
1363
1789
|
Explore = "explore",
|
|
1364
1790
|
/**
|
|
1365
|
-
* Emitted when a user clicks Copy link action on a visualization
|
|
1791
|
+
* Emitted when a user clicks **Copy link** action on a visualization
|
|
1366
1792
|
*
|
|
1367
1793
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1794
|
+
*
|
|
1795
|
+
* @example
|
|
1796
|
+
*```js
|
|
1797
|
+
* liveboardEmbed.trigger(HostEvent.CopyLink, {
|
|
1798
|
+
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1799
|
+
*```
|
|
1800
|
+
*
|
|
1368
1801
|
*/
|
|
1369
1802
|
CopyLink = "embedDocument",
|
|
1370
1803
|
/**
|
|
1371
|
-
* Emitted when a user interacts with cross filters on a visualization or
|
|
1804
|
+
* Emitted when a user interacts with cross filters on a visualization or Liveboard
|
|
1805
|
+
*
|
|
1806
|
+
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
|
|
1807
|
+
*
|
|
1808
|
+
* @example
|
|
1809
|
+
*```js
|
|
1810
|
+
* liveboardEmbed.trigger(HostEvent.CrossFilterChanged, {
|
|
1811
|
+
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1812
|
+
*```
|
|
1372
1813
|
*
|
|
1373
|
-
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
1374
1814
|
*/
|
|
1375
1815
|
CrossFilterChanged = "cross-filter-changed",
|
|
1376
1816
|
/**
|
|
1377
1817
|
* Emitted when a user right clicks on a visualization (chart or table)
|
|
1378
1818
|
*
|
|
1379
|
-
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
1819
|
+
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
|
|
1820
|
+
*
|
|
1821
|
+
* @example
|
|
1822
|
+
*```js
|
|
1823
|
+
* LiveboardEmbed.on(EmbedEvent.VizPointRightClick, payload => {
|
|
1824
|
+
* console.log('VizPointClick', payload)
|
|
1825
|
+
* })
|
|
1826
|
+
*```
|
|
1380
1827
|
*/
|
|
1381
1828
|
VizPointRightClick = "vizPointRightClick",
|
|
1382
1829
|
/**
|
|
1383
|
-
* Emitted when a user clicks
|
|
1830
|
+
* Emitted when a user clicks **Insert to slide** on a visualization
|
|
1384
1831
|
*
|
|
1385
1832
|
* @hidden
|
|
1386
1833
|
*/
|
|
@@ -1388,52 +1835,53 @@ export declare enum EmbedEvent {
|
|
|
1388
1835
|
/**
|
|
1389
1836
|
* @hidden
|
|
1390
1837
|
* Emitted when a user changes any filter on a Liveboard.
|
|
1391
|
-
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
1838
|
+
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.0.sw
|
|
1392
1839
|
*/
|
|
1393
1840
|
FilterChanged = "filterChanged",
|
|
1394
1841
|
/**
|
|
1395
|
-
* Emitted when a user
|
|
1842
|
+
* Emitted when a user clicks the **Go** button on the Search page
|
|
1396
1843
|
*
|
|
1397
|
-
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
1844
|
+
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
1398
1845
|
*/
|
|
1399
1846
|
SageEmbedQuery = "sageEmbedQuery",
|
|
1400
1847
|
/**
|
|
1401
|
-
*
|
|
1848
|
+
* Emitted when a user selects a data source.
|
|
1849
|
+
*
|
|
1850
|
+
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
1402
1851
|
*
|
|
1403
|
-
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
1404
1852
|
*/
|
|
1405
1853
|
SageWorksheetUpdated = "sageWorksheetUpdated",
|
|
1406
1854
|
/**
|
|
1407
|
-
* Emitted when a user updates a connection
|
|
1855
|
+
* Emitted when a user updates a connection on the **Data** page
|
|
1408
1856
|
*
|
|
1409
|
-
* @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl
|
|
1857
|
+
* @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
|
|
1410
1858
|
*/
|
|
1411
1859
|
UpdateConnection = "updateConnection",
|
|
1412
1860
|
/**
|
|
1413
|
-
* Emitted when a user updates a connection
|
|
1861
|
+
* Emitted when a user updates a connection on the **Data** page
|
|
1414
1862
|
*
|
|
1415
|
-
* @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl
|
|
1863
|
+
* @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
|
|
1416
1864
|
*/
|
|
1417
1865
|
CreateConnection = "createConnection",
|
|
1418
1866
|
/**
|
|
1419
1867
|
* Emitted when name, status (private or public) or filter values of a
|
|
1420
|
-
*
|
|
1868
|
+
* Personalised view is updated.
|
|
1421
1869
|
*
|
|
1422
1870
|
* @returns viewName: string
|
|
1423
1871
|
* @returns viewId: string
|
|
1424
1872
|
* @returns liveboardId: string
|
|
1425
1873
|
* @returns isPublic: boolean
|
|
1426
|
-
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
1874
|
+
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
1427
1875
|
*/
|
|
1428
1876
|
UpdatePersonalisedView = "updatePersonalisedView",
|
|
1429
1877
|
/**
|
|
1430
|
-
* Emitted when a
|
|
1878
|
+
* Emitted when a Personalised view is saved.
|
|
1431
1879
|
*
|
|
1432
1880
|
* @returns viewName: string
|
|
1433
1881
|
* @returns viewId: string
|
|
1434
1882
|
* @returns liveboardId: string
|
|
1435
1883
|
* @returns isPublic: boolean
|
|
1436
|
-
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
1884
|
+
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
1437
1885
|
*/
|
|
1438
1886
|
SavePersonalisedView = "savePersonalisedView",
|
|
1439
1887
|
/**
|
|
@@ -1443,7 +1891,7 @@ export declare enum EmbedEvent {
|
|
|
1443
1891
|
* @returns viewId: string
|
|
1444
1892
|
* @returns liveboardId: string
|
|
1445
1893
|
* @returns isPublic: boolean
|
|
1446
|
-
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
1894
|
+
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
1447
1895
|
*/
|
|
1448
1896
|
ResetLiveboard = "resetLiveboard",
|
|
1449
1897
|
/**
|
|
@@ -1451,11 +1899,11 @@ export declare enum EmbedEvent {
|
|
|
1451
1899
|
*
|
|
1452
1900
|
* @returns views: string[]
|
|
1453
1901
|
* @returns liveboardId: string
|
|
1454
|
-
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
1902
|
+
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
1455
1903
|
*/
|
|
1456
1904
|
DeletePersonalisedView = "deletePersonalisedView",
|
|
1457
1905
|
/**
|
|
1458
|
-
*
|
|
1906
|
+
* Emitted when a user creates a new worksheet
|
|
1459
1907
|
*
|
|
1460
1908
|
* @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl
|
|
1461
1909
|
*/
|
|
@@ -1485,15 +1933,16 @@ export declare enum EmbedEvent {
|
|
|
1485
1933
|
*/
|
|
1486
1934
|
export declare enum HostEvent {
|
|
1487
1935
|
/**
|
|
1488
|
-
* Triggers a search
|
|
1489
|
-
*
|
|
1936
|
+
* Triggers a search operation with the search tokens specified in
|
|
1937
|
+
* the search query string.
|
|
1938
|
+
* Supported in `AppEmbed` and `SearchEmbed` deployments.
|
|
1490
1939
|
* Includes the following properties:
|
|
1491
1940
|
*
|
|
1492
|
-
* @param -
|
|
1941
|
+
* @param - `searchQuery` - query string with search tokens
|
|
1942
|
+
* @param - `dataSources` - Data source GUID to Search on
|
|
1493
1943
|
* - Although an array, only a single source
|
|
1494
1944
|
* is supported.
|
|
1495
|
-
* @param -
|
|
1496
|
-
* @param - execute - executes the existing / updated query
|
|
1945
|
+
* @param - `execute` - executes search and updates the existing query
|
|
1497
1946
|
* @example
|
|
1498
1947
|
* ```js
|
|
1499
1948
|
* searchembed.trigger(HostEvent.Search, {
|
|
@@ -1513,6 +1962,10 @@ export declare enum HostEvent {
|
|
|
1513
1962
|
* @param - columnGuid - Optional. GUID of the column to drill
|
|
1514
1963
|
* by. If not provided it will auto drill by the configured
|
|
1515
1964
|
* column.
|
|
1965
|
+
* @param - autoDrillDown - Optional. If true, the drill down will be
|
|
1966
|
+
* done automatically on the most popular column.
|
|
1967
|
+
* @param - vizId [TS >= 9.8.0] - Optional. The GUID of the visualization to drill
|
|
1968
|
+
* in case of a liveboard.
|
|
1516
1969
|
* @example
|
|
1517
1970
|
* ```js
|
|
1518
1971
|
* searchEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
|
|
@@ -1529,6 +1982,25 @@ export declare enum HostEvent {
|
|
|
1529
1982
|
* });
|
|
1530
1983
|
* })
|
|
1531
1984
|
* ```
|
|
1985
|
+
* @example
|
|
1986
|
+
* ```js
|
|
1987
|
+
* // Works with TS 9.8.0 and above
|
|
1988
|
+
*
|
|
1989
|
+
* liveboardEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
|
|
1990
|
+
* console.log(payload);
|
|
1991
|
+
* const clickedPoint = payload.data.clickedPoint;
|
|
1992
|
+
* const selectedPoint = payload.data.selectedPoints;
|
|
1993
|
+
* console.log('>>> called', clickedPoint);
|
|
1994
|
+
* liveboardEmbed.trigger(HostEvent.DrillDown, {
|
|
1995
|
+
* points: {
|
|
1996
|
+
* clickedPoint,
|
|
1997
|
+
* selectedPoints: selectedPoint
|
|
1998
|
+
* },
|
|
1999
|
+
* autoDrillDown: true,
|
|
2000
|
+
* vizId: payload.data.vizId
|
|
2001
|
+
* });
|
|
2002
|
+
* })
|
|
2003
|
+
* ```
|
|
1532
2004
|
* @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
|
|
1533
2005
|
*/
|
|
1534
2006
|
DrillDown = "triggerDrillDown",
|
|
@@ -1545,7 +2017,7 @@ export declare enum HostEvent {
|
|
|
1545
2017
|
*/
|
|
1546
2018
|
Reload = "reload",
|
|
1547
2019
|
/**
|
|
1548
|
-
*
|
|
2020
|
+
* Display specific visualizations on a Liveboard.
|
|
1549
2021
|
*
|
|
1550
2022
|
* @param - An array of GUIDs of the visualization to show. The visualization IDs not passed
|
|
1551
2023
|
* in this parameter will be hidden.
|
|
@@ -1559,7 +2031,7 @@ export declare enum HostEvent {
|
|
|
1559
2031
|
*/
|
|
1560
2032
|
SetVisibleVizs = "SetPinboardVisibleVizs",
|
|
1561
2033
|
/**
|
|
1562
|
-
* Set
|
|
2034
|
+
* Set a Liveboard tab as an active tab.
|
|
1563
2035
|
*
|
|
1564
2036
|
* @param - tabId - string of id of Tab to show
|
|
1565
2037
|
* @example
|
|
@@ -1572,7 +2044,7 @@ export declare enum HostEvent {
|
|
|
1572
2044
|
*/
|
|
1573
2045
|
SetActiveTab = "SetActiveTab",
|
|
1574
2046
|
/**
|
|
1575
|
-
*
|
|
2047
|
+
* Update runtime filters applied on a Saved Answer or Liveboard. The
|
|
1576
2048
|
* runtime filters passed here are appended to the existing runtime
|
|
1577
2049
|
* filters.
|
|
1578
2050
|
* Pass an array of runtime filters with the following attributes:
|
|
@@ -1598,10 +2070,12 @@ export declare enum HostEvent {
|
|
|
1598
2070
|
*/
|
|
1599
2071
|
UpdateRuntimeFilters = "UpdateRuntimeFilters",
|
|
1600
2072
|
/**
|
|
1601
|
-
* Navigate to a specific page in the embedded application
|
|
2073
|
+
* Navigate to a specific page in the embedded ThoughtSpot application.
|
|
1602
2074
|
* This is the same as calling `appEmbed.navigateToPage(path, true)`
|
|
1603
2075
|
*
|
|
1604
|
-
* @param - path - the path to navigate to
|
|
2076
|
+
* @param - `path` - the path to navigate to to go forward or back. The path value can
|
|
2077
|
+
* be a number; for example, `1`, `-1`.
|
|
2078
|
+
*
|
|
1605
2079
|
* @example
|
|
1606
2080
|
* ```js
|
|
1607
2081
|
* appEmbed.navigateToPage(-1)
|
|
@@ -1610,7 +2084,7 @@ export declare enum HostEvent {
|
|
|
1610
2084
|
*/
|
|
1611
2085
|
Navigate = "Navigate",
|
|
1612
2086
|
/**
|
|
1613
|
-
*
|
|
2087
|
+
* Open the filter panel for a particular column.
|
|
1614
2088
|
* Works with Search and Liveboard embed.
|
|
1615
2089
|
*
|
|
1616
2090
|
* @param - { columnId: string,
|
|
@@ -1628,7 +2102,7 @@ export declare enum HostEvent {
|
|
|
1628
2102
|
*/
|
|
1629
2103
|
OpenFilter = "openFilter",
|
|
1630
2104
|
/**
|
|
1631
|
-
*
|
|
2105
|
+
* Add columns to the current search query.
|
|
1632
2106
|
*
|
|
1633
2107
|
* @param - { columnIds: string[] }
|
|
1634
2108
|
* @example
|
|
@@ -1639,7 +2113,7 @@ export declare enum HostEvent {
|
|
|
1639
2113
|
*/
|
|
1640
2114
|
AddColumns = "addColumns",
|
|
1641
2115
|
/**
|
|
1642
|
-
*
|
|
2116
|
+
* Remove a column from the current search query.
|
|
1643
2117
|
*
|
|
1644
2118
|
* @param - { columnId: string }
|
|
1645
2119
|
* @example
|
|
@@ -1650,27 +2124,29 @@ export declare enum HostEvent {
|
|
|
1650
2124
|
*/
|
|
1651
2125
|
RemoveColumn = "removeColumn",
|
|
1652
2126
|
/**
|
|
1653
|
-
*
|
|
2127
|
+
* Get the transient state of a Liveboard as encoded content.
|
|
2128
|
+
* This includes unsaved and ad hoc changes such as
|
|
2129
|
+
* Liveboard filters, runtime filters applied on visualizations on a
|
|
2130
|
+
* Liveboard, and Liveboard layout, changes to visualizations such as
|
|
2131
|
+
* sorting, toggling of legends, and data drill down.
|
|
1654
2132
|
*
|
|
1655
2133
|
* @example
|
|
1656
2134
|
* ```js
|
|
1657
|
-
* liveboardEmbed.trigger(HostEvent.
|
|
2135
|
+
* liveboardEmbed.trigger(HostEvent.getexportrequestforcurrentpinboard).then(
|
|
2136
|
+
* data=>console.log(data))
|
|
1658
2137
|
* ```
|
|
1659
2138
|
* @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1.sw
|
|
1660
2139
|
*/
|
|
1661
2140
|
getExportRequestForCurrentPinboard = "getExportRequestForCurrentPinboard",
|
|
1662
2141
|
/**
|
|
1663
|
-
*
|
|
2142
|
+
* Trigger the **Pin** action on an embedded object
|
|
1664
2143
|
*
|
|
1665
2144
|
* @param - Liveboard embed takes the `vizId` as a
|
|
1666
|
-
* key. Can be left undefined when embedding Search, full app or
|
|
2145
|
+
* key. Can be left undefined when embedding Search, full app, or
|
|
1667
2146
|
* a visualization.
|
|
1668
2147
|
* @example
|
|
1669
2148
|
* ```js
|
|
1670
|
-
*
|
|
1671
|
-
* ```
|
|
1672
|
-
* ```js
|
|
1673
|
-
* vizEmbed.trigger(HostEvent.Pin)
|
|
2149
|
+
* appEmbed.trigger(HostEvent.Pin)
|
|
1674
2150
|
* ```
|
|
1675
2151
|
* ```js
|
|
1676
2152
|
* searchEmbed.trigger(HostEvent.Pin)
|
|
@@ -1679,17 +2155,18 @@ export declare enum HostEvent {
|
|
|
1679
2155
|
*/
|
|
1680
2156
|
Pin = "pin",
|
|
1681
2157
|
/**
|
|
1682
|
-
*
|
|
2158
|
+
* Trigger the **Show Liveboard details** action
|
|
2159
|
+
* on an embedded Liveboard.
|
|
1683
2160
|
*
|
|
1684
2161
|
* @example
|
|
1685
|
-
|
|
1686
|
-
*
|
|
1687
|
-
|
|
2162
|
+
*```js
|
|
2163
|
+
* liveboardEmbed.trigger(HostEvent.LiveboardInfo)
|
|
2164
|
+
*```
|
|
1688
2165
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1689
2166
|
*/
|
|
1690
2167
|
LiveboardInfo = "pinboardInfo",
|
|
1691
2168
|
/**
|
|
1692
|
-
*
|
|
2169
|
+
* Trigger the **Schedule** action on an embedded Liveboard.
|
|
1693
2170
|
*
|
|
1694
2171
|
* @example
|
|
1695
2172
|
* ```js
|
|
@@ -1699,7 +2176,7 @@ export declare enum HostEvent {
|
|
|
1699
2176
|
*/
|
|
1700
2177
|
Schedule = "subscription",
|
|
1701
2178
|
/**
|
|
1702
|
-
*
|
|
2179
|
+
* Trigger the **Manage schedule** action on an embedded Liveboard
|
|
1703
2180
|
*
|
|
1704
2181
|
* @example
|
|
1705
2182
|
* ```js
|
|
@@ -1709,7 +2186,7 @@ export declare enum HostEvent {
|
|
|
1709
2186
|
*/
|
|
1710
2187
|
SchedulesList = "schedule-list",
|
|
1711
2188
|
/**
|
|
1712
|
-
*
|
|
2189
|
+
* Trigger the **Export TML** action on an embedded Liveboard.
|
|
1713
2190
|
*
|
|
1714
2191
|
* @example
|
|
1715
2192
|
* ```js
|
|
@@ -1719,7 +2196,7 @@ export declare enum HostEvent {
|
|
|
1719
2196
|
*/
|
|
1720
2197
|
ExportTML = "exportTSL",
|
|
1721
2198
|
/**
|
|
1722
|
-
*
|
|
2199
|
+
* Trigger the **Edit TML** action on an embedded Liveboard.
|
|
1723
2200
|
*
|
|
1724
2201
|
* @example
|
|
1725
2202
|
* ```js
|
|
@@ -1729,7 +2206,7 @@ export declare enum HostEvent {
|
|
|
1729
2206
|
*/
|
|
1730
2207
|
EditTML = "editTSL",
|
|
1731
2208
|
/**
|
|
1732
|
-
*
|
|
2209
|
+
* Trigger the **Update TML** action on an embedded Liveboard.
|
|
1733
2210
|
*
|
|
1734
2211
|
* @example
|
|
1735
2212
|
* ```js
|
|
@@ -1739,7 +2216,7 @@ export declare enum HostEvent {
|
|
|
1739
2216
|
*/
|
|
1740
2217
|
UpdateTML = "updateTSL",
|
|
1741
2218
|
/**
|
|
1742
|
-
*
|
|
2219
|
+
* Trigger the **Download PDF** action on an embedded Liveboard.
|
|
1743
2220
|
*
|
|
1744
2221
|
* @example
|
|
1745
2222
|
* ```js
|
|
@@ -1749,8 +2226,8 @@ export declare enum HostEvent {
|
|
|
1749
2226
|
*/
|
|
1750
2227
|
DownloadAsPdf = "downloadAsPdf",
|
|
1751
2228
|
/**
|
|
1752
|
-
*
|
|
1753
|
-
* visualization page
|
|
2229
|
+
* Trigger the **Make a copy** action on a Liveboard, Search, or
|
|
2230
|
+
* visualization page.
|
|
1754
2231
|
*
|
|
1755
2232
|
* @example
|
|
1756
2233
|
* ```js
|
|
@@ -1766,7 +2243,7 @@ export declare enum HostEvent {
|
|
|
1766
2243
|
*/
|
|
1767
2244
|
MakeACopy = "makeACopy",
|
|
1768
2245
|
/**
|
|
1769
|
-
*
|
|
2246
|
+
* Trigger the **Delete** action for a Liveboard.
|
|
1770
2247
|
*
|
|
1771
2248
|
* @example
|
|
1772
2249
|
* ```js
|
|
@@ -1776,7 +2253,7 @@ export declare enum HostEvent {
|
|
|
1776
2253
|
*/
|
|
1777
2254
|
Remove = "delete",
|
|
1778
2255
|
/**
|
|
1779
|
-
*
|
|
2256
|
+
* Trigger the **Explore** action on a visualization.
|
|
1780
2257
|
*
|
|
1781
2258
|
* @param - an object with `vizId` as a key
|
|
1782
2259
|
* @example
|
|
@@ -1787,7 +2264,7 @@ export declare enum HostEvent {
|
|
|
1787
2264
|
*/
|
|
1788
2265
|
Explore = "explore",
|
|
1789
2266
|
/**
|
|
1790
|
-
*
|
|
2267
|
+
* Trigger the **Create alert** action on a visualization
|
|
1791
2268
|
*
|
|
1792
2269
|
* @param - an object with `vizId` as a key
|
|
1793
2270
|
* @example
|
|
@@ -1800,7 +2277,7 @@ export declare enum HostEvent {
|
|
|
1800
2277
|
*/
|
|
1801
2278
|
CreateMonitor = "createMonitor",
|
|
1802
2279
|
/**
|
|
1803
|
-
*
|
|
2280
|
+
* Trigger the **Manage alerts** action on a visualization
|
|
1804
2281
|
*
|
|
1805
2282
|
* @param - an object with `vizId` as a key
|
|
1806
2283
|
* @example
|
|
@@ -1813,7 +2290,7 @@ export declare enum HostEvent {
|
|
|
1813
2290
|
*/
|
|
1814
2291
|
ManageMonitor = "manageMonitor",
|
|
1815
2292
|
/**
|
|
1816
|
-
*
|
|
2293
|
+
* Trigger the **Edit** action on a Liveboard or visualization
|
|
1817
2294
|
*
|
|
1818
2295
|
* @param - object - To trigger the action for a specific visualization
|
|
1819
2296
|
* in Liveboard embed, pass in `vizId` as a key.
|
|
@@ -1834,7 +2311,7 @@ export declare enum HostEvent {
|
|
|
1834
2311
|
*/
|
|
1835
2312
|
Edit = "edit",
|
|
1836
2313
|
/**
|
|
1837
|
-
*
|
|
2314
|
+
* Trigger the **Copy link** action on a Liveboard or visualization
|
|
1838
2315
|
*
|
|
1839
2316
|
* @param - object - to trigger the action for a
|
|
1840
2317
|
* specific visualization in Liveboard embed, pass in `vizId` as a key
|
|
@@ -1852,7 +2329,7 @@ export declare enum HostEvent {
|
|
|
1852
2329
|
*/
|
|
1853
2330
|
CopyLink = "embedDocument",
|
|
1854
2331
|
/**
|
|
1855
|
-
*
|
|
2332
|
+
* Trigger the **Present** action on a Liveboard or visualization
|
|
1856
2333
|
*
|
|
1857
2334
|
* @param - object - to trigger the action for a specific visualization
|
|
1858
2335
|
* in Liveboard embed, pass in `vizId` as a key
|
|
@@ -1870,7 +2347,7 @@ export declare enum HostEvent {
|
|
|
1870
2347
|
*/
|
|
1871
2348
|
Present = "present",
|
|
1872
2349
|
/**
|
|
1873
|
-
*
|
|
2350
|
+
* Get TML for the current search.
|
|
1874
2351
|
*
|
|
1875
2352
|
* @example
|
|
1876
2353
|
* ```js
|
|
@@ -1885,7 +2362,7 @@ export declare enum HostEvent {
|
|
|
1885
2362
|
*/
|
|
1886
2363
|
GetTML = "getTML",
|
|
1887
2364
|
/**
|
|
1888
|
-
*
|
|
2365
|
+
* Trigger the **Show underlying data** action on visualization or search
|
|
1889
2366
|
*
|
|
1890
2367
|
* @param - an object with vizId as a key
|
|
1891
2368
|
* @example
|
|
@@ -1903,7 +2380,9 @@ export declare enum HostEvent {
|
|
|
1903
2380
|
*/
|
|
1904
2381
|
ShowUnderlyingData = "showUnderlyingData",
|
|
1905
2382
|
/**
|
|
1906
|
-
*
|
|
2383
|
+
* Trigger the **Delete** action for a visualization
|
|
2384
|
+
* in an embedded Liveboard, or a chart or table
|
|
2385
|
+
* generated from Search.
|
|
1907
2386
|
*
|
|
1908
2387
|
* @param - Liveboard embed takes an object with `vizId` as a key.
|
|
1909
2388
|
* Can be left empty if embedding Search or visualization.
|
|
@@ -1913,16 +2392,13 @@ export declare enum HostEvent {
|
|
|
1913
2392
|
* '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1914
2393
|
* ```
|
|
1915
2394
|
* ```js
|
|
1916
|
-
* vizEmbed.trigger(HostEvent.Delete)
|
|
1917
|
-
* ```
|
|
1918
|
-
* ```js
|
|
1919
2395
|
* searchEmbed.trigger(HostEvent.Delete)
|
|
1920
2396
|
* ```
|
|
1921
2397
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
1922
2398
|
*/
|
|
1923
2399
|
Delete = "onDeleteAnswer",
|
|
1924
2400
|
/**
|
|
1925
|
-
*
|
|
2401
|
+
* Trigger the **SpotIQ analyze** action on visualization
|
|
1926
2402
|
* or search.
|
|
1927
2403
|
*
|
|
1928
2404
|
* @param - Liveboard embed takes `vizId` as a
|
|
@@ -1943,7 +2419,7 @@ export declare enum HostEvent {
|
|
|
1943
2419
|
*/
|
|
1944
2420
|
SpotIQAnalyze = "spotIQAnalyze",
|
|
1945
2421
|
/**
|
|
1946
|
-
*
|
|
2422
|
+
* Trigger the **Download** action on charts in
|
|
1947
2423
|
* the embedded view.
|
|
1948
2424
|
*
|
|
1949
2425
|
* @example
|
|
@@ -1952,17 +2428,15 @@ export declare enum HostEvent {
|
|
|
1952
2428
|
* '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1953
2429
|
* ```
|
|
1954
2430
|
* ```js
|
|
1955
|
-
*
|
|
1956
|
-
* ```
|
|
1957
|
-
* ```js
|
|
1958
|
-
* searchEmbed.trigger(HostEvent.Download)
|
|
2431
|
+
* embed.trigger(HostEvent.Download)
|
|
1959
2432
|
* ```
|
|
1960
|
-
* @deprecated from SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl ,9.4.1.sw
|
|
2433
|
+
* @deprecated from SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl ,9.4.1.sw
|
|
2434
|
+
* Use {@link DownloadAsPng}
|
|
1961
2435
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
1962
2436
|
*/
|
|
1963
2437
|
Download = "downloadAsPng",
|
|
1964
2438
|
/**
|
|
1965
|
-
*
|
|
2439
|
+
* Trigger the **Download** > **PNG** action on
|
|
1966
2440
|
* charts in the embedded view.
|
|
1967
2441
|
*
|
|
1968
2442
|
* @example
|
|
@@ -1978,7 +2452,7 @@ export declare enum HostEvent {
|
|
|
1978
2452
|
*/
|
|
1979
2453
|
DownloadAsPng = "downloadAsPng",
|
|
1980
2454
|
/**
|
|
1981
|
-
*
|
|
2455
|
+
* Trigger the **Download** > **CSV** action on tables in
|
|
1982
2456
|
* the embedded view.
|
|
1983
2457
|
*
|
|
1984
2458
|
* @example
|
|
@@ -1996,7 +2470,7 @@ export declare enum HostEvent {
|
|
|
1996
2470
|
*/
|
|
1997
2471
|
DownloadAsCsv = "downloadAsCSV",
|
|
1998
2472
|
/**
|
|
1999
|
-
*
|
|
2473
|
+
* Trigger the **Download** > **XLSX** action on tables
|
|
2000
2474
|
* in the embedded view.
|
|
2001
2475
|
*
|
|
2002
2476
|
* @example
|
|
@@ -2014,7 +2488,7 @@ export declare enum HostEvent {
|
|
|
2014
2488
|
*/
|
|
2015
2489
|
DownloadAsXlsx = "downloadAsXLSX",
|
|
2016
2490
|
/**
|
|
2017
|
-
*
|
|
2491
|
+
* Trigger the **Share** action on an embedded
|
|
2018
2492
|
* Liveboard or Answer.
|
|
2019
2493
|
*
|
|
2020
2494
|
* @example
|
|
@@ -2028,7 +2502,7 @@ export declare enum HostEvent {
|
|
|
2028
2502
|
*/
|
|
2029
2503
|
Share = "share",
|
|
2030
2504
|
/**
|
|
2031
|
-
*
|
|
2505
|
+
* Trigger the **Save** action on a Liveboard or Answer.
|
|
2032
2506
|
* Saves the changes.
|
|
2033
2507
|
*
|
|
2034
2508
|
* @example
|
|
@@ -2042,7 +2516,7 @@ export declare enum HostEvent {
|
|
|
2042
2516
|
*/
|
|
2043
2517
|
Save = "save",
|
|
2044
2518
|
/**
|
|
2045
|
-
*
|
|
2519
|
+
* Trigger the **Sync to Sheets** action on an embedded visualization or Answer
|
|
2046
2520
|
* Sends data from an Answer or Liveboard visualization to a Google sheet.
|
|
2047
2521
|
*
|
|
2048
2522
|
* @param - an object with `vizId` as a key
|
|
@@ -2058,7 +2532,7 @@ export declare enum HostEvent {
|
|
|
2058
2532
|
*/
|
|
2059
2533
|
SyncToSheets = "sync-to-sheets",
|
|
2060
2534
|
/**
|
|
2061
|
-
*
|
|
2535
|
+
* Trigger the **Sync to Other Apps** action on an embedded visualization or Answer
|
|
2062
2536
|
* Sends data from an Answer or Liveboard visualization to third-party apps such
|
|
2063
2537
|
* as Slack, Salesforce, Microsoft Teams, ServiceNow and so on.
|
|
2064
2538
|
*
|
|
@@ -2075,7 +2549,7 @@ export declare enum HostEvent {
|
|
|
2075
2549
|
*/
|
|
2076
2550
|
SyncToOtherApps = "sync-to-other-apps",
|
|
2077
2551
|
/**
|
|
2078
|
-
*
|
|
2552
|
+
* Trigger the **Manage pipelines** action on an embedded
|
|
2079
2553
|
* visualization or Answer.
|
|
2080
2554
|
* Allows users to manage ThoughtSpot Sync pipelines.
|
|
2081
2555
|
*
|
|
@@ -2092,18 +2566,21 @@ export declare enum HostEvent {
|
|
|
2092
2566
|
*/
|
|
2093
2567
|
ManagePipelines = "manage-pipeline",
|
|
2094
2568
|
/**
|
|
2095
|
-
*
|
|
2569
|
+
* Reset search operation on the Search or Answer page.
|
|
2096
2570
|
*
|
|
2097
2571
|
* @example
|
|
2098
2572
|
* ```js
|
|
2099
2573
|
* searchEmbed.trigger(HostEvent.ResetSearch)
|
|
2100
2574
|
* ```
|
|
2575
|
+
* ```js
|
|
2576
|
+
* appEmbed.trigger(HostEvent.ResetSearch)
|
|
2577
|
+
* ```
|
|
2101
2578
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.0.1.sw
|
|
2102
2579
|
*/
|
|
2103
2580
|
ResetSearch = "resetSearch",
|
|
2104
2581
|
/**
|
|
2105
2582
|
* @hidden
|
|
2106
|
-
*
|
|
2583
|
+
* Get the currents visible and runtime filters applied on a Liveboard
|
|
2107
2584
|
* @example
|
|
2108
2585
|
* liveboardEmbed.trigger(HostEvent.GetFilters)
|
|
2109
2586
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
@@ -2111,7 +2588,7 @@ export declare enum HostEvent {
|
|
|
2111
2588
|
GetFilters = "getFilters",
|
|
2112
2589
|
/**
|
|
2113
2590
|
* @hidden
|
|
2114
|
-
*
|
|
2591
|
+
* Update the visible filters on the Liveboard.
|
|
2115
2592
|
* @param - filter: filter object containing column name and filter operation and values
|
|
2116
2593
|
* @example
|
|
2117
2594
|
*
|
|
@@ -2124,7 +2601,7 @@ export declare enum HostEvent {
|
|
|
2124
2601
|
*/
|
|
2125
2602
|
UpdateFilters = "updateFilters",
|
|
2126
2603
|
/**
|
|
2127
|
-
* Get
|
|
2604
|
+
* Get tab details for the current Liveboard.
|
|
2128
2605
|
*
|
|
2129
2606
|
* @example
|
|
2130
2607
|
* ```js
|
|
@@ -2138,9 +2615,9 @@ export declare enum HostEvent {
|
|
|
2138
2615
|
*/
|
|
2139
2616
|
GetTabs = "getTabs",
|
|
2140
2617
|
/**
|
|
2141
|
-
* Set the visible
|
|
2618
|
+
* Set the visible tabs on a Liveboard.
|
|
2142
2619
|
*
|
|
2143
|
-
* @param - an array of ids of
|
|
2620
|
+
* @param - an array of ids of tabs to show, the IDs not passed
|
|
2144
2621
|
* will be hidden.
|
|
2145
2622
|
* @example
|
|
2146
2623
|
* ```js
|
|
@@ -2154,8 +2631,8 @@ export declare enum HostEvent {
|
|
|
2154
2631
|
/**
|
|
2155
2632
|
* Set the hidden tabs on a Liveboard.
|
|
2156
2633
|
*
|
|
2157
|
-
* @param - an array of
|
|
2158
|
-
*
|
|
2634
|
+
* @param - an array of the IDs of the tabs to hide.
|
|
2635
|
+
* The IDs not passed will be shown.
|
|
2159
2636
|
* @example
|
|
2160
2637
|
* ```js
|
|
2161
2638
|
* liveboardEmbed.trigger(HostEvent.SetHiddenTabs, [
|
|
@@ -2166,9 +2643,12 @@ export declare enum HostEvent {
|
|
|
2166
2643
|
*/
|
|
2167
2644
|
SetHiddenTabs = "SetPinboardHiddenTabs",
|
|
2168
2645
|
/**
|
|
2169
|
-
* Updates the search query for
|
|
2646
|
+
* Updates the search query string for Natural Language Search operations.
|
|
2647
|
+
*
|
|
2648
|
+
* @param - `queryString`: Text string in Natural Language format
|
|
2649
|
+
*
|
|
2650
|
+
* @param - `executeSearch`: Boolean to execute search and update search query
|
|
2170
2651
|
*
|
|
2171
|
-
* @param - searchOptions: an object queryString and option to execute the query.
|
|
2172
2652
|
* @example
|
|
2173
2653
|
* ```js
|
|
2174
2654
|
* sageEmbed.trigger(HostEvent.UpdateSageQuery, {
|
|
@@ -2176,7 +2656,7 @@ export declare enum HostEvent {
|
|
|
2176
2656
|
* executeSearch: true,
|
|
2177
2657
|
* })
|
|
2178
2658
|
* ```
|
|
2179
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.
|
|
2659
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
|
|
2180
2660
|
*/
|
|
2181
2661
|
UpdateSageQuery = "updateSageQuery",
|
|
2182
2662
|
/**
|
|
@@ -2189,24 +2669,25 @@ export declare enum HostEvent {
|
|
|
2189
2669
|
* vizId: '123', // For Liveboard Visualization.
|
|
2190
2670
|
* })
|
|
2191
2671
|
* ```
|
|
2672
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.10.0.cl
|
|
2192
2673
|
*/
|
|
2193
2674
|
GetAnswerSession = "getAnswerSession"
|
|
2194
2675
|
}
|
|
2195
2676
|
/**
|
|
2196
2677
|
* The different visual modes that the data sources panel within
|
|
2197
|
-
* search could appear in,
|
|
2678
|
+
* search could appear in, such as hidden, collapsed, or expanded.
|
|
2198
2679
|
*/
|
|
2199
2680
|
export declare enum DataSourceVisualMode {
|
|
2200
2681
|
/**
|
|
2201
|
-
*
|
|
2682
|
+
* The data source panel is hidden.
|
|
2202
2683
|
*/
|
|
2203
2684
|
Hidden = "hide",
|
|
2204
2685
|
/**
|
|
2205
|
-
*
|
|
2686
|
+
* The data source panel is collapsed, but the user can manually expand it.
|
|
2206
2687
|
*/
|
|
2207
2688
|
Collapsed = "collapse",
|
|
2208
2689
|
/**
|
|
2209
|
-
*
|
|
2690
|
+
* The data source panel is expanded, but the user can manually collapse it.
|
|
2210
2691
|
*/
|
|
2211
2692
|
Expanded = "expand"
|
|
2212
2693
|
}
|
|
@@ -2282,7 +2763,8 @@ export declare enum Param {
|
|
|
2282
2763
|
LiveboardHeaderSticky = "isLiveboardHeaderSticky",
|
|
2283
2764
|
IsProductTour = "isProductTour",
|
|
2284
2765
|
HideSearchBarTitle = "hideSearchBarTitle",
|
|
2285
|
-
HideSageAnswerHeader = "hideSageAnswerHeader"
|
|
2766
|
+
HideSageAnswerHeader = "hideSageAnswerHeader",
|
|
2767
|
+
HideSearchBar = "hideSearchBar"
|
|
2286
2768
|
}
|
|
2287
2769
|
/**
|
|
2288
2770
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -2342,9 +2824,11 @@ export declare enum Action {
|
|
|
2342
2824
|
SaveAsView = "saveAsView",
|
|
2343
2825
|
/**
|
|
2344
2826
|
* The **Make a copy** action on a Liveboard or Answer
|
|
2345
|
-
* page.
|
|
2346
|
-
*
|
|
2347
|
-
*
|
|
2827
|
+
* page. Creates a copy of the Liveboard.
|
|
2828
|
+
* In LiveboardEmbed, the **Make a copy** action is not available for
|
|
2829
|
+
* visualizations in the embedded Liveboard view.
|
|
2830
|
+
* In AppEmbed, the **Make a copy** action is available on both
|
|
2831
|
+
* Liveboards and visualizations.
|
|
2348
2832
|
*
|
|
2349
2833
|
* @example
|
|
2350
2834
|
* ```js
|
|
@@ -2528,7 +3012,7 @@ export declare enum Action {
|
|
|
2528
3012
|
*/
|
|
2529
3013
|
DownloadAsPdf = "downloadAsPdf",
|
|
2530
3014
|
/**
|
|
2531
|
-
* The **Download**
|
|
3015
|
+
* The **Download** > **CSV** menu action for tables on a Liveboard
|
|
2532
3016
|
* or Answer page.
|
|
2533
3017
|
* Downloads a visualization or Answer in the XLSX format.
|
|
2534
3018
|
*
|
|
@@ -3059,6 +3543,7 @@ export declare enum Action {
|
|
|
3059
3543
|
*/
|
|
3060
3544
|
RenameModalTitleDescription = "renameModalTitleDescription",
|
|
3061
3545
|
/**
|
|
3546
|
+
*
|
|
3062
3547
|
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
|
|
3063
3548
|
*/
|
|
3064
3549
|
RequestVerification = "requestVerification",
|