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