@thoughtspot/visual-embed-sdk 1.26.2 → 1.27.0-logger
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 +15 -8
- package/cjs/src/auth.js.map +1 -1
- package/cjs/src/embed/app.d.ts +14 -14
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +4 -3
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +5 -4
- package/cjs/src/embed/app.spec.js.map +1 -1
- package/cjs/src/embed/base.d.ts.map +1 -1
- package/cjs/src/embed/base.js +5 -2
- package/cjs/src/embed/base.js.map +1 -1
- package/cjs/src/embed/base.spec.js +3 -2
- package/cjs/src/embed/base.spec.js.map +1 -1
- package/cjs/src/embed/embed.spec.js +2 -1
- package/cjs/src/embed/embed.spec.js.map +1 -1
- package/cjs/src/embed/embedConfig.d.ts +2 -1
- package/cjs/src/embed/embedConfig.d.ts.map +1 -1
- package/cjs/src/embed/embedConfig.js +2 -0
- package/cjs/src/embed/embedConfig.js.map +1 -1
- package/cjs/src/embed/events.spec.js +3 -2
- package/cjs/src/embed/events.spec.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 +47 -29
- 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 +33 -18
- package/cjs/src/embed/search.d.ts.map +1 -1
- package/cjs/src/embed/search.js +4 -1
- 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.map +1 -1
- package/cjs/src/embed/ts-embed.js +37 -17
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +141 -26
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/index.d.ts +2 -2
- package/cjs/src/index.d.ts.map +1 -1
- package/cjs/src/index.js +2 -1
- package/cjs/src/index.js.map +1 -1
- package/cjs/src/mixpanel-service.d.ts.map +1 -1
- package/cjs/src/mixpanel-service.js +2 -1
- package/cjs/src/mixpanel-service.js.map +1 -1
- package/cjs/src/react/index.spec.js +2 -14
- package/cjs/src/react/index.spec.js.map +1 -1
- package/cjs/src/types.d.ts +751 -242
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +665 -176
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/authService/authService.d.ts.map +1 -1
- package/cjs/src/utils/authService/authService.js +3 -2
- package/cjs/src/utils/authService/authService.js.map +1 -1
- package/cjs/src/utils/authService/authService.spec.js +3 -2
- package/cjs/src/utils/authService/authService.spec.js.map +1 -1
- package/cjs/src/utils/authService/tokenizedAuthService.d.ts.map +1 -1
- package/cjs/src/utils/authService/tokenizedAuthService.js +2 -1
- package/cjs/src/utils/authService/tokenizedAuthService.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/logger.d.ts +4 -14
- package/cjs/src/utils/logger.d.ts.map +1 -1
- package/cjs/src/utils/logger.js +37 -41
- package/cjs/src/utils/logger.js.map +1 -1
- package/cjs/src/utils/logger.spec.d.ts +25 -0
- package/cjs/src/utils/logger.spec.d.ts.map +1 -0
- package/cjs/src/utils/logger.spec.js +80 -0
- package/cjs/src/utils/logger.spec.js.map +1 -0
- 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 +14 -14
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/base.d.ts.map +1 -1
- package/dist/src/embed/embedConfig.d.ts +2 -1
- package/dist/src/embed/embedConfig.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 +47 -29
- 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 +33 -18
- package/dist/src/embed/search.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/index.d.ts +2 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/mixpanel-service.d.ts.map +1 -1
- package/dist/src/types.d.ts +751 -242
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/authService/authService.d.ts.map +1 -1
- package/dist/src/utils/authService/tokenizedAuthService.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/logger.d.ts +4 -14
- package/dist/src/utils/logger.d.ts.map +1 -1
- package/dist/src/utils/logger.spec.d.ts +25 -0
- package/dist/src/utils/logger.spec.d.ts.map +1 -0
- 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 +18186 -404
- package/dist/tsembed-react.js +18185 -403
- package/dist/tsembed.es.js +18336 -545
- package/dist/tsembed.js +32457 -14667
- package/dist/visual-embed-sdk-react-full.d.ts +903 -341
- package/dist/visual-embed-sdk-react.d.ts +903 -341
- package/dist/visual-embed-sdk.d.ts +903 -341
- 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 +15 -8
- package/lib/src/auth.js.map +1 -1
- package/lib/src/embed/app.d.ts +14 -14
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +4 -3
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +5 -4
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/base.d.ts.map +1 -1
- package/lib/src/embed/base.js +6 -3
- package/lib/src/embed/base.js.map +1 -1
- package/lib/src/embed/base.spec.js +3 -2
- package/lib/src/embed/base.spec.js.map +1 -1
- package/lib/src/embed/embed.spec.js +2 -1
- package/lib/src/embed/embed.spec.js.map +1 -1
- package/lib/src/embed/embedConfig.d.ts +2 -1
- package/lib/src/embed/embedConfig.d.ts.map +1 -1
- package/lib/src/embed/embedConfig.js +2 -0
- package/lib/src/embed/embedConfig.js.map +1 -1
- package/lib/src/embed/events.spec.js +3 -2
- package/lib/src/embed/events.spec.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 +47 -29
- 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 +33 -18
- package/lib/src/embed/search.d.ts.map +1 -1
- package/lib/src/embed/search.js +4 -1
- 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.map +1 -1
- package/lib/src/embed/ts-embed.js +38 -18
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +141 -26
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/index.d.ts +2 -2
- 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.map +1 -1
- package/lib/src/mixpanel-service.js +2 -1
- package/lib/src/mixpanel-service.js.map +1 -1
- package/lib/src/react/index.spec.js +2 -14
- package/lib/src/react/index.spec.js.map +1 -1
- package/lib/src/types.d.ts +751 -242
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +664 -175
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/authService/authService.d.ts.map +1 -1
- package/lib/src/utils/authService/authService.js +3 -2
- package/lib/src/utils/authService/authService.js.map +1 -1
- package/lib/src/utils/authService/authService.spec.js +3 -2
- package/lib/src/utils/authService/authService.spec.js.map +1 -1
- package/lib/src/utils/authService/tokenizedAuthService.d.ts.map +1 -1
- package/lib/src/utils/authService/tokenizedAuthService.js +2 -1
- package/lib/src/utils/authService/tokenizedAuthService.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/logger.d.ts +4 -14
- package/lib/src/utils/logger.d.ts.map +1 -1
- package/lib/src/utils/logger.js +23 -25
- package/lib/src/utils/logger.js.map +1 -1
- package/lib/src/utils/logger.spec.d.ts +25 -0
- package/lib/src/utils/logger.spec.d.ts.map +1 -0
- package/lib/src/utils/logger.spec.js +57 -0
- package/lib/src/utils/logger.spec.js.map +1 -0
- 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 +904 -342
- package/package.json +1 -1
- package/src/auth.ts +15 -8
- package/src/embed/app.spec.ts +5 -4
- package/src/embed/app.ts +22 -21
- package/src/embed/base.spec.ts +3 -2
- package/src/embed/base.ts +10 -3
- package/src/embed/embed.spec.ts +2 -1
- package/src/embed/embedConfig.ts +2 -0
- package/src/embed/events.spec.ts +3 -2
- package/src/embed/liveboard.ts +28 -23
- package/src/embed/sage.ts +47 -29
- package/src/embed/search-bar.tsx +22 -6
- package/src/embed/search.spec.ts +13 -0
- package/src/embed/search.ts +38 -19
- package/src/embed/ts-embed.spec.ts +159 -26
- package/src/embed/ts-embed.ts +37 -19
- package/src/index.ts +2 -0
- package/src/mixpanel-service.ts +2 -1
- package/src/react/index.spec.tsx +2 -31
- package/src/types.ts +753 -243
- package/src/utils/authService/authService.spec.ts +3 -2
- package/src/utils/authService/authService.ts +4 -2
- package/src/utils/authService/tokenizedAuthService.ts +2 -1
- package/src/utils/graphql/answerService/answerService.ts +2 -4
- package/src/utils/logger.spec.ts +67 -0
- package/src/utils/logger.ts +87 -0
- 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/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/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/src/types.ts
CHANGED
|
@@ -32,10 +32,14 @@ export enum AuthType {
|
|
|
32
32
|
*/
|
|
33
33
|
None = 'None',
|
|
34
34
|
/**
|
|
35
|
-
* Passthrough SSO to the embedded
|
|
35
|
+
* Passthrough SSO to the embedded application within the iframe. Requires least
|
|
36
36
|
* configuration, but may not be supported by all IDPs. This will behave like `None`
|
|
37
37
|
* if SSO is not configured on ThoughtSpot.
|
|
38
38
|
*
|
|
39
|
+
* To use this:
|
|
40
|
+
* Your SAML or OpenID provider must allow iframe redirects.
|
|
41
|
+
* For example, if you are using Okta as IdP, you can enable iframe embedding.
|
|
42
|
+
*
|
|
39
43
|
* @example
|
|
40
44
|
* ```js
|
|
41
45
|
* init({
|
|
@@ -43,12 +47,7 @@ export enum AuthType {
|
|
|
43
47
|
* authType: AuthType.EmbeddedSSO,
|
|
44
48
|
* });
|
|
45
49
|
* ```
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
* To use this:
|
|
49
|
-
* Your SAML or OpenID provider must allow iframe redirects.
|
|
50
|
-
* eg. If you are using okta as IdP, you can enable iFrame embedding.
|
|
51
|
-
* @version: SDK: 1.15.0 | ThouhgtSpot: 8.8.0.cl
|
|
50
|
+
* @version: SDK: 1.15.0 | ThoughtSpot: 8.8.0.cl
|
|
52
51
|
*/
|
|
53
52
|
EmbeddedSSO = 'EmbeddedSSO',
|
|
54
53
|
/**
|
|
@@ -67,10 +66,10 @@ export enum AuthType {
|
|
|
67
66
|
SAML = 'SSO_SAML',
|
|
68
67
|
/**
|
|
69
68
|
* SSO using SAML
|
|
70
|
-
*
|
|
71
|
-
*
|
|
69
|
+
* Makes the host application redirect to the SAML IdP. Use this
|
|
70
|
+
* if your IdP does not allow itself to be embedded.
|
|
72
71
|
*
|
|
73
|
-
* This redirects the host application to the SAML
|
|
72
|
+
* This redirects the host application to the SAML IdP. The host application
|
|
74
73
|
* will be redirected back to the ThoughtSpot app after authentication.
|
|
75
74
|
*
|
|
76
75
|
* @example
|
|
@@ -81,7 +80,7 @@ export enum AuthType {
|
|
|
81
80
|
* });
|
|
82
81
|
* ```
|
|
83
82
|
*
|
|
84
|
-
* This opens the SAML
|
|
83
|
+
* This opens the SAML IdP in a popup window. The popup is triggered
|
|
85
84
|
* when the user clicks the trigger button. The popup window will be
|
|
86
85
|
* closed automatically after authentication.
|
|
87
86
|
* @example
|
|
@@ -95,8 +94,8 @@ export enum AuthType {
|
|
|
95
94
|
* });
|
|
96
95
|
* ```
|
|
97
96
|
*
|
|
98
|
-
* Can also use event to trigger the popup flow. Works the same
|
|
99
|
-
* as above example.
|
|
97
|
+
* Can also use the event to trigger the popup flow. Works the same
|
|
98
|
+
* as the above example.
|
|
100
99
|
* @example
|
|
101
100
|
* ```js
|
|
102
101
|
* const authEE = init({
|
|
@@ -120,7 +119,7 @@ export enum AuthType {
|
|
|
120
119
|
OIDC = 'SSO_OIDC',
|
|
121
120
|
/**
|
|
122
121
|
* SSO using OIDC
|
|
123
|
-
* Will make the host application redirect to the OIDC
|
|
122
|
+
* Will make the host application redirect to the OIDC IdP.
|
|
124
123
|
* See code samples in {@link SAMLRedirect}.
|
|
125
124
|
*/
|
|
126
125
|
OIDCRedirect = 'SSO_OIDC',
|
|
@@ -132,8 +131,8 @@ export enum AuthType {
|
|
|
132
131
|
*/
|
|
133
132
|
AuthServer = 'AuthServer',
|
|
134
133
|
/**
|
|
135
|
-
* Trusted authentication server
|
|
136
|
-
* which returns a bearer token, generated using the secret_key obtained
|
|
134
|
+
* Trusted authentication server. Use your own authentication server
|
|
135
|
+
* which returns a bearer token, generated using the `secret_key` obtained
|
|
137
136
|
* from ThoughtSpot.
|
|
138
137
|
*
|
|
139
138
|
* @example
|
|
@@ -150,11 +149,11 @@ export enum AuthType {
|
|
|
150
149
|
*/
|
|
151
150
|
TrustedAuthToken = 'AuthServer',
|
|
152
151
|
/**
|
|
153
|
-
* Trusted authentication server Cookieless, Use
|
|
154
|
-
* server which returns a bearer token, generated using the secret_key
|
|
152
|
+
* Trusted authentication server Cookieless, Use your own authentication
|
|
153
|
+
* server which returns a bearer token, generated using the `secret_key`
|
|
155
154
|
* obtained from ThoughtSpot. This uses a cookieless authentication
|
|
156
|
-
* approach, recommended to
|
|
157
|
-
* implemented by some browsers
|
|
155
|
+
* approach, recommended to bypass the third-party cookie-blocking restriction
|
|
156
|
+
* implemented by some browsers.
|
|
158
157
|
*
|
|
159
158
|
* @example
|
|
160
159
|
* ```js
|
|
@@ -167,7 +166,7 @@ export enum AuthType {
|
|
|
167
166
|
* .then((data) => data.token);
|
|
168
167
|
* }
|
|
169
168
|
* ```
|
|
170
|
-
* @version SDK: 1.22.0|
|
|
169
|
+
* @version SDK: 1.22.0| ThoughtSpot: 9.3.0.cl, 9.5.1.sw
|
|
171
170
|
*/
|
|
172
171
|
TrustedAuthTokenCookieless = 'AuthServerCookieless',
|
|
173
172
|
/**
|
|
@@ -294,13 +293,19 @@ export interface EmbedConfig {
|
|
|
294
293
|
* The ThoughtSpot cluster hostname or IP address.
|
|
295
294
|
*/
|
|
296
295
|
thoughtSpotHost: string;
|
|
296
|
+
/**
|
|
297
|
+
* If true, all the iframe links will have /v2 added automatically.
|
|
298
|
+
* If false, all the iframe links will have /v1 added automatically.
|
|
299
|
+
* If undefined, nothing will be added
|
|
300
|
+
*/
|
|
301
|
+
enableReactShell?: boolean | undefined;
|
|
297
302
|
/**
|
|
298
303
|
* The authentication mechanism to use.
|
|
299
304
|
*/
|
|
300
305
|
authType: AuthType;
|
|
301
306
|
/**
|
|
302
307
|
* [AuthServer] The trusted authentication endpoint to use to get the
|
|
303
|
-
* authentication token. A GET request is made to the
|
|
308
|
+
* authentication token. A `GET` request is made to the
|
|
304
309
|
* authentication API endpoint, which returns the token
|
|
305
310
|
* as a plaintext response. For trusted authentication,
|
|
306
311
|
* the `authEndpoint` or `getAuthToken` attribute is required.
|
|
@@ -313,8 +318,8 @@ export interface EmbedConfig {
|
|
|
313
318
|
* attribute is required.
|
|
314
319
|
*
|
|
315
320
|
* It is advisable to fetch a new token inside this method and not
|
|
316
|
-
* reuse
|
|
317
|
-
* called again and if it is called with an older token the authentication
|
|
321
|
+
* reuse the old issued token. When auth expires this method is
|
|
322
|
+
* called again and if it is called with an older token, the authentication
|
|
318
323
|
* will not succeed.
|
|
319
324
|
*/
|
|
320
325
|
getAuthToken?: () => Promise<string>;
|
|
@@ -325,7 +330,7 @@ export interface EmbedConfig {
|
|
|
325
330
|
username?: string;
|
|
326
331
|
|
|
327
332
|
/**
|
|
328
|
-
* [Basic] The ThoughtSpot login password corresponding to the
|
|
333
|
+
* [Basic] The ThoughtSpot login password corresponding to the username
|
|
329
334
|
*
|
|
330
335
|
* Warning: This feature is primarily intended for developer testing. It is
|
|
331
336
|
* strongly advised not to use this authentication method in production.
|
|
@@ -334,7 +339,7 @@ export interface EmbedConfig {
|
|
|
334
339
|
|
|
335
340
|
/**
|
|
336
341
|
* [SSO] For SSO Authentication, if `noRedirect` is set to true, it will
|
|
337
|
-
* open the SAML auth flow in a popup, instead of redirecting browser in
|
|
342
|
+
* open the SAML auth flow in a popup, instead of redirecting the browser in
|
|
338
343
|
* place.
|
|
339
344
|
*
|
|
340
345
|
* @default false
|
|
@@ -344,10 +349,10 @@ export interface EmbedConfig {
|
|
|
344
349
|
|
|
345
350
|
/**
|
|
346
351
|
* [SSO] For SSO Authentication, if `inPopup` is set to true, it will open
|
|
347
|
-
* the SAML auth flow in a popup, instead of redirecting browser in place.
|
|
352
|
+
* the SAML auth flow in a popup, instead of redirecting the browser in place.
|
|
348
353
|
*
|
|
349
|
-
* Need to use this with authTriggerContainer
|
|
350
|
-
* the AuthEvent.TRIGGER_SSO_POPUP event on a user interaction.
|
|
354
|
+
* Need to use this with `authTriggerContainer`. Or manually trigger
|
|
355
|
+
* the `AuthEvent.TRIGGER_SSO_POPUP` event on a user interaction.
|
|
351
356
|
*
|
|
352
357
|
* @default false
|
|
353
358
|
* @version SDK: 1.18.0
|
|
@@ -355,13 +360,13 @@ export interface EmbedConfig {
|
|
|
355
360
|
inPopup?: boolean;
|
|
356
361
|
|
|
357
362
|
/**
|
|
358
|
-
* [SSO] For SSO Authentication, one can supply an optional path param
|
|
359
|
-
*
|
|
363
|
+
* [SSO] For SSO Authentication, one can supply an optional path param;
|
|
364
|
+
* This will be the path on the host origin where the SAML flow will be
|
|
360
365
|
* terminated.
|
|
361
366
|
*
|
|
362
367
|
* Eg: "/dashboard", "#/foo" [Do not include the host]
|
|
363
368
|
*
|
|
364
|
-
* @version SDK: 1.10.2 | 8.2.0.cl, 8.4.1.sw
|
|
369
|
+
* @version SDK: 1.10.2 | ThoughtSpot 8.2.0.cl, 8.4.1.sw
|
|
365
370
|
*/
|
|
366
371
|
redirectPath?: string;
|
|
367
372
|
|
|
@@ -369,19 +374,19 @@ export interface EmbedConfig {
|
|
|
369
374
|
basepath?: string;
|
|
370
375
|
|
|
371
376
|
/**
|
|
372
|
-
*
|
|
373
|
-
*
|
|
374
|
-
*
|
|
377
|
+
* Boolean to define if the query parameters in the ThoughtSpot URL
|
|
378
|
+
* should be encoded in base64. This provides additional security to
|
|
379
|
+
* Thoughtspot clusters against cross-site scripting attacks.
|
|
375
380
|
*
|
|
376
381
|
* @default false
|
|
377
382
|
*/
|
|
378
383
|
shouldEncodeUrlQueryParams?: boolean;
|
|
379
384
|
|
|
380
385
|
/**
|
|
381
|
-
* Suppress cookie access alert when third
|
|
382
|
-
* user's browser. Third
|
|
383
|
-
*
|
|
384
|
-
* encouraged to handle `noCookieAccess` event, to show your own treatment
|
|
386
|
+
* Suppress cookie access alert when third-party cookies are blocked by the
|
|
387
|
+
* user's browser. Third-party cookie blocking is the default behaviour on
|
|
388
|
+
* some web browsers like Safari. If you set this attribute to `true`,
|
|
389
|
+
* you are encouraged to handle `noCookieAccess` event, to show your own treatment
|
|
385
390
|
* in this case.
|
|
386
391
|
*
|
|
387
392
|
* @default false
|
|
@@ -389,16 +394,17 @@ export interface EmbedConfig {
|
|
|
389
394
|
suppressNoCookieAccessAlert?: boolean;
|
|
390
395
|
|
|
391
396
|
/**
|
|
392
|
-
* Ignore cookie access alert when third
|
|
397
|
+
* Ignore the cookie access alert when third-party cookies are blocked by the
|
|
393
398
|
* user's browser. If you set this to `true`, the embedded iframe behaviour
|
|
394
|
-
*
|
|
399
|
+
* persists even in the case of a non-logged-in user.
|
|
395
400
|
*
|
|
396
401
|
* @default false
|
|
397
402
|
*/
|
|
398
403
|
ignoreNoCookieAccess?: boolean;
|
|
399
404
|
|
|
400
405
|
/**
|
|
401
|
-
* Re-login
|
|
406
|
+
* Re-login a user with the previous login options
|
|
407
|
+
* when a user session expires.
|
|
402
408
|
*
|
|
403
409
|
* @default false
|
|
404
410
|
*/
|
|
@@ -406,8 +412,9 @@ export interface EmbedConfig {
|
|
|
406
412
|
|
|
407
413
|
/**
|
|
408
414
|
* Disable redirection to the login page when the embedded session expires
|
|
409
|
-
* This flag is typically used alongside the combination of
|
|
410
|
-
* AuthType.AuthServer} and auto
|
|
415
|
+
* This flag is typically used alongside the combination of authentication modes such
|
|
416
|
+
* as {@link AuthType.AuthServer} and auto-login behavior {@link
|
|
417
|
+
* EmbedConfig.autoLogin}
|
|
411
418
|
*
|
|
412
419
|
* @version SDK: 1.9.3 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
|
|
413
420
|
* @default false
|
|
@@ -415,23 +422,23 @@ export interface EmbedConfig {
|
|
|
415
422
|
disableLoginRedirect?: boolean;
|
|
416
423
|
|
|
417
424
|
/**
|
|
418
|
-
* This message is displayed
|
|
425
|
+
* This message is displayed in the embedded view when a user login fails.
|
|
419
426
|
*
|
|
420
427
|
* @version SDK: 1.10.1 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
|
|
421
428
|
*/
|
|
422
429
|
loginFailedMessage?: string;
|
|
423
430
|
|
|
424
431
|
/**
|
|
425
|
-
* Calls the prefetch method internally when set to true
|
|
432
|
+
* Calls the prefetch method internally when set to `true`
|
|
426
433
|
*
|
|
427
434
|
* @default false
|
|
428
435
|
*/
|
|
429
436
|
callPrefetch?: boolean;
|
|
430
437
|
|
|
431
438
|
/**
|
|
432
|
-
* When there are multiple
|
|
433
|
-
*
|
|
434
|
-
*
|
|
439
|
+
* When there are multiple objects embedded, queue the rendering of embedded objects
|
|
440
|
+
* to start after the previous embed's render is complete. This helps improve
|
|
441
|
+
* performance by decreasing the load on the browser.
|
|
435
442
|
*
|
|
436
443
|
* @Version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
|
|
437
444
|
* @default false
|
|
@@ -439,7 +446,7 @@ export interface EmbedConfig {
|
|
|
439
446
|
queueMultiRenders?: boolean;
|
|
440
447
|
|
|
441
448
|
/**
|
|
442
|
-
* Dynamic CSS
|
|
449
|
+
* Dynamic CSS URL to be injected in the loaded application.
|
|
443
450
|
* You would also need to set `style-src` in the CSP settings.
|
|
444
451
|
*
|
|
445
452
|
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
@@ -447,9 +454,9 @@ export interface EmbedConfig {
|
|
|
447
454
|
*/
|
|
448
455
|
customCssUrl?: string;
|
|
449
456
|
/**
|
|
450
|
-
* [AuthServer|Basic] Detect if
|
|
457
|
+
* [AuthServer|Basic] Detect if third-party party cookies are enabled by doing an
|
|
451
458
|
* additional call. This is slower and should be avoided. Listen to the
|
|
452
|
-
* NO_COOKIE_ACCESS event to handle the situation.
|
|
459
|
+
* `NO_COOKIE_ACCESS` event to handle the situation.
|
|
453
460
|
*
|
|
454
461
|
* This is slightly slower than letting the browser handle the cookie check, as it
|
|
455
462
|
* involves an extra network call.
|
|
@@ -458,27 +465,26 @@ export interface EmbedConfig {
|
|
|
458
465
|
*/
|
|
459
466
|
detectCookieAccessSlow?: boolean;
|
|
460
467
|
/**
|
|
461
|
-
* Hide beta alert warning message for SearchEmbed.
|
|
468
|
+
* Hide the `beta` alert warning message for SearchEmbed.
|
|
462
469
|
*
|
|
463
470
|
* @version SDK: 1.12.0 | ThoughtSpot: 8.4.0.cl, 8.4.1.sw*
|
|
464
471
|
*/
|
|
465
472
|
suppressSearchEmbedBetaWarning?: boolean;
|
|
466
|
-
|
|
467
473
|
/**
|
|
468
|
-
* Hide beta alert warning message for SageEmbed.
|
|
474
|
+
* Hide `beta` alert warning message for SageEmbed.
|
|
469
475
|
*
|
|
470
476
|
*/
|
|
471
477
|
suppressSageEmbedBetaWarning?: boolean;
|
|
472
478
|
/**
|
|
473
479
|
* Custom style params for embed Config.
|
|
474
480
|
*
|
|
475
|
-
* @version SDK: 1.17.0 | ThoughtSpot: 8.9.0.cl
|
|
481
|
+
* @version SDK: 1.17.0 | ThoughtSpot: 8.9.0.cl, 9.0.1.sw
|
|
476
482
|
*/
|
|
477
483
|
customizations?: CustomisationsInterface;
|
|
478
484
|
/**
|
|
479
|
-
* For inPopup SAMLRedirect or OIDCRedirect
|
|
480
|
-
* click to trigger the flow.
|
|
481
|
-
* for that button.
|
|
485
|
+
* For `inPopup` SAMLRedirect or OIDCRedirect authentication, we need a
|
|
486
|
+
* button that the user can click to trigger the flow.
|
|
487
|
+
* This attribute sets a containing element for that button.
|
|
482
488
|
*
|
|
483
489
|
* @example
|
|
484
490
|
* ```js
|
|
@@ -488,11 +494,11 @@ export interface EmbedConfig {
|
|
|
488
494
|
* authTriggerContainer: '#auth-trigger-container'
|
|
489
495
|
* })
|
|
490
496
|
* ```
|
|
491
|
-
* @version SDK: 1.17.0 | ThoughtSpot:
|
|
497
|
+
* @version SDK: 1.17.0 | ThoughtSpot: 8.9.0.cl, 9.0.1.sw
|
|
492
498
|
*/
|
|
493
499
|
authTriggerContainer?: string | HTMLElement;
|
|
494
500
|
/**
|
|
495
|
-
* Specify that we want to use the AuthEvent.TRIGGER_SSO_POPUP event to trigger
|
|
501
|
+
* Specify that we want to use the `AuthEvent.TRIGGER_SSO_POPUP` event to trigger
|
|
496
502
|
* SAML popup. This is useful when you want to trigger the popup on a custom user
|
|
497
503
|
* action.
|
|
498
504
|
*
|
|
@@ -500,13 +506,15 @@ export interface EmbedConfig {
|
|
|
500
506
|
useEventForSAMLPopup?: boolean;
|
|
501
507
|
/**
|
|
502
508
|
* Text to show in the button which triggers the popup auth flow.
|
|
503
|
-
* Default:
|
|
509
|
+
* Default: `Authorize`.
|
|
504
510
|
*
|
|
505
|
-
* @version SDK: 1.17.0 | ThoughtSpot:
|
|
511
|
+
* @version SDK: 1.17.0 | ThoughtSpot: 8.9.0.cl, 9.0.1.sw
|
|
506
512
|
*/
|
|
507
513
|
authTriggerText?: string;
|
|
508
514
|
/**
|
|
509
|
-
*
|
|
515
|
+
* Prevent users from accessing the full application or ThoughtSpot application pages
|
|
516
|
+
* access to the embedded application users
|
|
517
|
+
* outside of the iframe.
|
|
510
518
|
*
|
|
511
519
|
* @default true
|
|
512
520
|
* @version SDK: 1.22.0 | ThoughtSpot: 9.3.0.cl, 9.5.1.sw
|
|
@@ -514,7 +522,7 @@ export interface EmbedConfig {
|
|
|
514
522
|
blockNonEmbedFullAppAccess?: boolean;
|
|
515
523
|
|
|
516
524
|
/**
|
|
517
|
-
* Host config
|
|
525
|
+
* Host config in case embedded app is inside TS app itself
|
|
518
526
|
*
|
|
519
527
|
* @hidden
|
|
520
528
|
*/
|
|
@@ -538,23 +546,38 @@ export interface EmbedConfig {
|
|
|
538
546
|
* @version SDK: 1.26.2 | ThoughtSpot: *
|
|
539
547
|
*/
|
|
540
548
|
suppressErrorAlerts?: boolean;
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* Log level for the SDK.
|
|
552
|
+
* @default LogLevel.ERROR
|
|
553
|
+
*
|
|
554
|
+
* @example
|
|
555
|
+
* ```js
|
|
556
|
+
* init({
|
|
557
|
+
* ...embedConfig,
|
|
558
|
+
* logLevel: LogLevel.SILENT
|
|
559
|
+
* })
|
|
560
|
+
* ```
|
|
561
|
+
* @version SDK: 1.26.3 | ThoughtSpot: 9.10.0.cl
|
|
562
|
+
*/
|
|
563
|
+
logLevel?: LogLevel;
|
|
541
564
|
}
|
|
542
565
|
|
|
543
566
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
544
567
|
export interface LayoutConfig {}
|
|
545
568
|
|
|
546
569
|
/**
|
|
547
|
-
* Embedded
|
|
570
|
+
* Embedded iframe configuration
|
|
548
571
|
*
|
|
549
572
|
* @group Embed components
|
|
550
573
|
*/
|
|
551
574
|
export interface FrameParams {
|
|
552
575
|
/**
|
|
553
|
-
* The width of the
|
|
576
|
+
* The width of the iframe (unit is pixels if numeric).
|
|
554
577
|
*/
|
|
555
578
|
width?: number | string;
|
|
556
579
|
/**
|
|
557
|
-
* The height of the
|
|
580
|
+
* The height of the iframe (unit is pixels if numeric).
|
|
558
581
|
*/
|
|
559
582
|
height?: number | string;
|
|
560
583
|
/**
|
|
@@ -657,7 +680,6 @@ export interface ViewConfig {
|
|
|
657
680
|
*/
|
|
658
681
|
runtimeParameters?: RuntimeParameter[];
|
|
659
682
|
/**
|
|
660
|
-
/**
|
|
661
683
|
* The locale/language to use for the embedded view.
|
|
662
684
|
*
|
|
663
685
|
* @version SDK: 1.9.4 | ThoughtSpot 8.1.0.cl, 8.4.1.sw
|
|
@@ -755,31 +777,29 @@ export interface ViewConfig {
|
|
|
755
777
|
*/
|
|
756
778
|
reorderedHomepageModules?: HomepageModule[];
|
|
757
779
|
/**
|
|
758
|
-
* The list of tab IDs to show in the embedded.
|
|
759
|
-
* Only
|
|
760
|
-
* Use this to show an tabID.
|
|
780
|
+
* The list of tab IDs to show in the embedded Liveboard.
|
|
781
|
+
* Only the tabs specified in the array will be shown in the Liveboard.
|
|
761
782
|
*
|
|
762
|
-
* Use either
|
|
783
|
+
* Use either `visibleTabs` or `hiddenTabs`.
|
|
763
784
|
*
|
|
764
785
|
* @example
|
|
765
786
|
* ```js
|
|
766
|
-
*
|
|
767
|
-
* ... // other liveboard view config
|
|
768
|
-
* visibleTabs: [
|
|
787
|
+
* visibleTabs: [
|
|
769
788
|
* '430496d6-6903-4601-937e-2c691821af3c',
|
|
770
|
-
*
|
|
771
|
-
* });
|
|
789
|
+
* 'f547ec54-2a37-4516-a222-2b06719af726']
|
|
772
790
|
* ```
|
|
773
791
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
774
792
|
*/
|
|
775
793
|
visibleTabs?: string[];
|
|
776
794
|
/**
|
|
777
|
-
* homepageLeftNavItems :
|
|
778
|
-
* There are 8 home
|
|
779
|
-
*
|
|
780
|
-
* eg: hiddenHomeLeftNavItems = [HomeLeftNavItem.Home] to hide home.
|
|
795
|
+
* homepageLeftNavItems : Show or hide the left navigation bar items.
|
|
796
|
+
* There are 8 eight home navigation list items.
|
|
797
|
+
* To hide these items, specify the string in the array.
|
|
781
798
|
*
|
|
782
|
-
*
|
|
799
|
+
* ```js
|
|
800
|
+
* hiddenHomeLeftNavItems = [HomeLeftNavItem.Home]
|
|
801
|
+
* ```
|
|
802
|
+
* @version SDK: 1.27.0 | Thoughtspot: 9.10.0.cl
|
|
783
803
|
*/
|
|
784
804
|
hiddenHomeLeftNavItems?: HomeLeftNavItem[];
|
|
785
805
|
/**
|
|
@@ -795,7 +815,7 @@ export interface ViewConfig {
|
|
|
795
815
|
* });
|
|
796
816
|
* embed.showPreRender();
|
|
797
817
|
* ```
|
|
798
|
-
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
|
|
818
|
+
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl, 9.8.0.sw
|
|
799
819
|
*/
|
|
800
820
|
preRenderId?: string;
|
|
801
821
|
|
|
@@ -833,7 +853,7 @@ export type MessagePayload = {
|
|
|
833
853
|
status?: string;
|
|
834
854
|
};
|
|
835
855
|
/**
|
|
836
|
-
* MessageOptions: By
|
|
856
|
+
* MessageOptions: By providing options, getting specific event start / end based on
|
|
837
857
|
* option
|
|
838
858
|
*
|
|
839
859
|
* @group Events
|
|
@@ -841,7 +861,7 @@ export type MessagePayload = {
|
|
|
841
861
|
export type MessageOptions = {
|
|
842
862
|
/**
|
|
843
863
|
* A boolean value indicating that start status events of this type
|
|
844
|
-
* will be dispatched
|
|
864
|
+
* will be dispatched.
|
|
845
865
|
*/
|
|
846
866
|
start?: boolean;
|
|
847
867
|
};
|
|
@@ -851,7 +871,7 @@ export type MessageOptions = {
|
|
|
851
871
|
* @group Events
|
|
852
872
|
*/
|
|
853
873
|
export type MessageCallback = (
|
|
854
|
-
/* payload: Message payload
|
|
874
|
+
/* payload: Message payload contains type, data, and status */
|
|
855
875
|
payload: MessagePayload,
|
|
856
876
|
/**
|
|
857
877
|
* responder: Message callback function triggered when embed event
|
|
@@ -864,7 +884,7 @@ export type MessageCallback = (
|
|
|
864
884
|
*/
|
|
865
885
|
export type MessageCallbackObj = {
|
|
866
886
|
/**
|
|
867
|
-
* options: It contains start,
|
|
887
|
+
* options: It contains start, a boolean value indicating that start
|
|
868
888
|
* status events of this type will be dispatched
|
|
869
889
|
*/
|
|
870
890
|
/* callback: Embed event message callback */
|
|
@@ -942,7 +962,7 @@ export enum RuntimeFilterOp {
|
|
|
942
962
|
}
|
|
943
963
|
|
|
944
964
|
/**
|
|
945
|
-
* Home page module that can be
|
|
965
|
+
* Home page module that can be hidden
|
|
946
966
|
*/
|
|
947
967
|
// eslint-disable-next-line no-shadow
|
|
948
968
|
export enum HomepageModule {
|
|
@@ -959,7 +979,7 @@ export enum HomepageModule {
|
|
|
959
979
|
*/
|
|
960
980
|
Favorite = 'FAVORITE',
|
|
961
981
|
/**
|
|
962
|
-
* List of answers and
|
|
982
|
+
* List of answers and Liveboards
|
|
963
983
|
*/
|
|
964
984
|
MyLibrary = 'MY_LIBRARY',
|
|
965
985
|
/**
|
|
@@ -993,7 +1013,7 @@ export interface RuntimeFilter {
|
|
|
993
1013
|
values: (number | boolean | string)[];
|
|
994
1014
|
}
|
|
995
1015
|
/**
|
|
996
|
-
* A filter that can be applied to ThoughtSpot
|
|
1016
|
+
* A filter that can be applied to ThoughtSpot Answers, Liveboards, or
|
|
997
1017
|
* visualizations at runtime.
|
|
998
1018
|
*/
|
|
999
1019
|
export interface RuntimeParameter {
|
|
@@ -1031,6 +1051,14 @@ export interface RuntimeParameter {
|
|
|
1031
1051
|
export enum EmbedEvent {
|
|
1032
1052
|
/**
|
|
1033
1053
|
* Rendering has initialized.
|
|
1054
|
+
* @example
|
|
1055
|
+
*```js
|
|
1056
|
+
* liveboardEmbed.on(EmbedEvent.Init, showLoader)
|
|
1057
|
+
* //show a loader
|
|
1058
|
+
* function showLoader() {
|
|
1059
|
+
* document.getElementById("loader");
|
|
1060
|
+
* }
|
|
1061
|
+
*```
|
|
1034
1062
|
*
|
|
1035
1063
|
* @returns timestamp - The timestamp when the event was generated.
|
|
1036
1064
|
*/
|
|
@@ -1038,69 +1066,162 @@ export enum EmbedEvent {
|
|
|
1038
1066
|
/**
|
|
1039
1067
|
* Authentication has either succeeded or failed.
|
|
1040
1068
|
*
|
|
1069
|
+
* @example
|
|
1070
|
+
*```js
|
|
1071
|
+
* appEmbed.on(EmbedEvent.AuthInit, payload => {
|
|
1072
|
+
* console.log('AuthInit', payload);
|
|
1073
|
+
* })
|
|
1074
|
+
*```
|
|
1075
|
+
*
|
|
1041
1076
|
* @returns isLoggedIn - A Boolean specifying whether authentication was successful.
|
|
1042
1077
|
*/
|
|
1043
1078
|
AuthInit = 'authInit',
|
|
1044
1079
|
/**
|
|
1045
1080
|
* The embed object container has loaded.
|
|
1046
|
-
*
|
|
1047
1081
|
* @returns timestamp - The timestamp when the event was generated.
|
|
1082
|
+
* @example
|
|
1083
|
+
*```js
|
|
1084
|
+
* liveboardEmbed.on(EmbedEvent.Load, hideLoader)
|
|
1085
|
+
* //hide loader
|
|
1086
|
+
* function hideLoader() {
|
|
1087
|
+
* document.getElementById("loader");
|
|
1088
|
+
* }
|
|
1089
|
+
*```
|
|
1048
1090
|
*/
|
|
1049
1091
|
Load = 'load',
|
|
1050
1092
|
/**
|
|
1051
1093
|
* Data pertaining to answer or Liveboard is received
|
|
1052
|
-
*
|
|
1053
1094
|
* @return data - The answer or Liveboard data
|
|
1095
|
+
* @example
|
|
1096
|
+
*```js
|
|
1097
|
+
* liveboardEmbed.on(EmbedEvent.Data, payload => {
|
|
1098
|
+
* console.log('data', payload);
|
|
1099
|
+
* })
|
|
1100
|
+
*```
|
|
1054
1101
|
* @important
|
|
1055
1102
|
*/
|
|
1056
1103
|
Data = 'data',
|
|
1057
1104
|
/**
|
|
1058
|
-
* Search/
|
|
1105
|
+
* Search/Answer/Liveboard filters have been applied/updated by the user.
|
|
1059
1106
|
*
|
|
1060
1107
|
* @hidden
|
|
1061
1108
|
*/
|
|
1062
1109
|
FiltersChanged = 'filtersChanged',
|
|
1063
1110
|
/**
|
|
1064
1111
|
* Search query has been updated by the user.
|
|
1112
|
+
*
|
|
1113
|
+
* @example
|
|
1114
|
+
*```js
|
|
1115
|
+
* searchEmbed.on(EmbedEvent.QueryChanged, payload => console.log('data', payload))
|
|
1116
|
+
*```
|
|
1117
|
+
*
|
|
1065
1118
|
*/
|
|
1066
1119
|
QueryChanged = 'queryChanged',
|
|
1067
1120
|
/**
|
|
1068
|
-
* A drill
|
|
1121
|
+
* A drill-down operation has been performed.
|
|
1069
1122
|
*
|
|
1070
1123
|
* @returns additionalFilters - Any additional filters applied
|
|
1071
1124
|
* @returns drillDownColumns - The columns on which drill down was performed
|
|
1072
1125
|
* @returns nonFilteredColumns - The columns that were not filtered
|
|
1126
|
+
*
|
|
1127
|
+
* @example
|
|
1128
|
+
*```js
|
|
1129
|
+
* searchEmbed.trigger(HostEvent.DrillDown, {
|
|
1130
|
+
* points: {
|
|
1131
|
+
* clickedPoint,
|
|
1132
|
+
* selectedPoints: selectedPoint
|
|
1133
|
+
* },
|
|
1134
|
+
* autoDrillDown: true,
|
|
1135
|
+
* })
|
|
1136
|
+
*```
|
|
1137
|
+
* In this example, `VizPointDoubleClick` event is used for
|
|
1138
|
+
* triggering the `DrillDown` event when an area or specific
|
|
1139
|
+
* data point on a table or chart is double-clicked.
|
|
1140
|
+
*
|
|
1141
|
+
* @example
|
|
1142
|
+
*```js
|
|
1143
|
+
* searchEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
|
|
1144
|
+
* console.log(payload);
|
|
1145
|
+
* const clickedPoint = payload.data.clickedPoint;
|
|
1146
|
+
* const selectedPoint = payload.data.selectedPoints;
|
|
1147
|
+
* console.log('>>> called', clickedPoint);
|
|
1148
|
+
* embed.trigger(HostEvent.DrillDown, {
|
|
1149
|
+
* points: {
|
|
1150
|
+
* clickedPoint,
|
|
1151
|
+
* selectedPoints: selectedPoint
|
|
1152
|
+
* },
|
|
1153
|
+
* autoDrillDown: true,
|
|
1154
|
+
* })
|
|
1155
|
+
* })
|
|
1156
|
+
*```
|
|
1157
|
+
*
|
|
1073
1158
|
*/
|
|
1074
1159
|
Drilldown = 'drillDown',
|
|
1075
1160
|
/**
|
|
1076
1161
|
* One or more data sources have been selected.
|
|
1077
|
-
*
|
|
1078
1162
|
* @returns dataSourceIds - the list of data sources
|
|
1163
|
+
*
|
|
1164
|
+
* @example
|
|
1165
|
+
* ```js
|
|
1166
|
+
* searchEmbed.on(EmbedEvent.DataSourceSelected, payload => {
|
|
1167
|
+
* console.log('DataSourceSelected', payload);
|
|
1168
|
+
* })
|
|
1169
|
+
* ```
|
|
1170
|
+
*
|
|
1079
1171
|
*/
|
|
1080
1172
|
DataSourceSelected = 'dataSourceSelected',
|
|
1081
1173
|
/**
|
|
1082
1174
|
* One or more data columns have been selected.
|
|
1083
|
-
*
|
|
1084
1175
|
* @returns columnIds - the list of columns
|
|
1085
1176
|
* @version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
|
|
1177
|
+
*
|
|
1178
|
+
* @example
|
|
1179
|
+
* ```js
|
|
1180
|
+
* appEmbed.on(EmbedEvent.AddRemoveColumns, payload => {
|
|
1181
|
+
* console.log('AddRemoveColumns', payload);
|
|
1182
|
+
* })
|
|
1183
|
+
* ```
|
|
1184
|
+
*
|
|
1086
1185
|
*/
|
|
1087
1186
|
AddRemoveColumns = 'addRemoveColumns',
|
|
1088
1187
|
/**
|
|
1089
|
-
* A custom action has been triggered
|
|
1188
|
+
* A custom action has been triggered.
|
|
1090
1189
|
*
|
|
1091
|
-
* @returns actionId -
|
|
1092
|
-
* @returns data -
|
|
1190
|
+
* @returns actionId - ID of the custom action
|
|
1191
|
+
* @returns data - Response payload with the Answer or Liveboard data
|
|
1192
|
+
*
|
|
1193
|
+
* @example
|
|
1194
|
+
* ```js
|
|
1195
|
+
* appEmbed.on(EmbedEvent.customAction, payload => {
|
|
1196
|
+
* const data = payload.data;
|
|
1197
|
+
* if (data.id === 'insert Custom Action ID here') {
|
|
1198
|
+
* console.log('Custom Action event:', data.embedAnswerData);
|
|
1199
|
+
* }
|
|
1200
|
+
* })
|
|
1201
|
+
* ```
|
|
1093
1202
|
*/
|
|
1094
1203
|
CustomAction = 'customAction',
|
|
1095
1204
|
/**
|
|
1096
|
-
* Listen to double
|
|
1205
|
+
* Listen to double click actions on a visualization.
|
|
1206
|
+
*
|
|
1207
|
+
* @return ContextMenuInputPoints - Data point that is double-clicked
|
|
1097
1208
|
*
|
|
1098
|
-
* @return ContextMenuInputPoints - data point that is double clicked
|
|
1099
1209
|
* @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
|
|
1210
|
+
*
|
|
1211
|
+
* @example
|
|
1212
|
+
* ```js
|
|
1213
|
+
* livebaordEmbed.on(EmbedEvent.VizPointDoubleClick, payload => {
|
|
1214
|
+
* console.log('VizPointDoubleClick', payload)
|
|
1215
|
+
* })
|
|
1216
|
+
* ```
|
|
1100
1217
|
*/
|
|
1101
1218
|
VizPointDoubleClick = 'vizPointDoubleClick',
|
|
1102
1219
|
/**
|
|
1103
|
-
* Listen to clicks on a visualization in a
|
|
1220
|
+
* Listen to clicks on a visualization in a Liveboard or Search result.
|
|
1221
|
+
*
|
|
1222
|
+
* @return viz, clickedPoint - metadata about the point that is clicked
|
|
1223
|
+
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1224
|
+
* @important
|
|
1104
1225
|
*
|
|
1105
1226
|
* @example
|
|
1106
1227
|
* ```js
|
|
@@ -1114,25 +1235,46 @@ export enum EmbedEvent {
|
|
|
1114
1235
|
* )
|
|
1115
1236
|
* });
|
|
1116
1237
|
* ```
|
|
1117
|
-
* @return viz, clickedPoint - metadata about point that is clicked
|
|
1118
|
-
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1119
|
-
* @important
|
|
1120
1238
|
*/
|
|
1121
1239
|
VizPointClick = 'vizPointClick',
|
|
1122
1240
|
/**
|
|
1123
1241
|
* An error has occurred.
|
|
1124
1242
|
*
|
|
1125
1243
|
* @returns error - An error object or message
|
|
1244
|
+
*
|
|
1245
|
+
* @example
|
|
1246
|
+
* ```js
|
|
1247
|
+
* SearchEmbed.on(EmbedEvent.Error, showErrorMsg)
|
|
1248
|
+
* //show error messaage
|
|
1249
|
+
* function showErrorMsg() {
|
|
1250
|
+
* document.getElementById("error");
|
|
1251
|
+
* ```
|
|
1252
|
+
*
|
|
1126
1253
|
*/
|
|
1127
1254
|
Error = 'Error',
|
|
1128
1255
|
/**
|
|
1129
|
-
* The embedded object has sent an alert
|
|
1256
|
+
* The embedded object has sent an alert.
|
|
1130
1257
|
*
|
|
1131
1258
|
* @returns alert - An alert object
|
|
1259
|
+
*
|
|
1260
|
+
* @example
|
|
1261
|
+
* ```js
|
|
1262
|
+
* searchEmbed.on(EmbedEvent.Alert)
|
|
1263
|
+
* ```
|
|
1264
|
+
*
|
|
1132
1265
|
*/
|
|
1133
1266
|
Alert = 'alert',
|
|
1134
1267
|
/**
|
|
1135
1268
|
* The ThoughtSpot auth session has expired.
|
|
1269
|
+
*
|
|
1270
|
+
* @example
|
|
1271
|
+
*```js
|
|
1272
|
+
* appEmbed.on(EmbedEvent.AuthExpire, showAuthExpired)
|
|
1273
|
+
* //show auth expired banner
|
|
1274
|
+
* function showAuthExpired() {
|
|
1275
|
+
* document.getElementById("authExpiredBanner");
|
|
1276
|
+
* }
|
|
1277
|
+
*```
|
|
1136
1278
|
*/
|
|
1137
1279
|
AuthExpire = 'ThoughtspotAuthExpired',
|
|
1138
1280
|
/**
|
|
@@ -1162,14 +1304,28 @@ export enum EmbedEvent {
|
|
|
1162
1304
|
*/
|
|
1163
1305
|
EmbedIframeCenter = 'EmbedIframeCenter',
|
|
1164
1306
|
/**
|
|
1165
|
-
* Emitted when
|
|
1166
|
-
*
|
|
1307
|
+
* Emitted when the **Get Data** action is initiated.
|
|
1308
|
+
* Applicable to `SearchBarEmbed` only.
|
|
1167
1309
|
*
|
|
1168
|
-
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.
|
|
1310
|
+
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
1311
|
+
*
|
|
1312
|
+
* @example
|
|
1313
|
+
*```js
|
|
1314
|
+
* searchbarEmbed.on(EmbedEvent.GetDataClick)
|
|
1315
|
+
* .then(data => {
|
|
1316
|
+
* console.log('Answer Data:', data);
|
|
1317
|
+
* })
|
|
1318
|
+
*```
|
|
1169
1319
|
*/
|
|
1170
1320
|
GetDataClick = 'getDataClick',
|
|
1171
1321
|
/**
|
|
1172
1322
|
* Detects the route change.
|
|
1323
|
+
*
|
|
1324
|
+
* @example
|
|
1325
|
+
*```js
|
|
1326
|
+
* searchEmbed.on(EmbedEvent.RouteChange, payload =>
|
|
1327
|
+
* console.log('data', payload))
|
|
1328
|
+
*```
|
|
1173
1329
|
*/
|
|
1174
1330
|
RouteChange = 'ROUTE_CHANGE',
|
|
1175
1331
|
/**
|
|
@@ -1179,10 +1335,15 @@ export enum EmbedEvent {
|
|
|
1179
1335
|
*/
|
|
1180
1336
|
V1Data = 'exportVizDataToParent',
|
|
1181
1337
|
/**
|
|
1182
|
-
* Emitted when the embed does not have cookie access. This
|
|
1183
|
-
*
|
|
1338
|
+
* Emitted when the embed does not have cookie access. This happens
|
|
1339
|
+
* when Safari and other Web browsers block third-party cookies
|
|
1340
|
+
* are blocked by default. `NoCookieAccess` can trigger
|
|
1184
1341
|
*
|
|
1185
|
-
* @
|
|
1342
|
+
* @example
|
|
1343
|
+
*```js
|
|
1344
|
+
* appEmbed.on(EmbedEvent.NoCookieAccess)
|
|
1345
|
+
*```
|
|
1346
|
+
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1.sw
|
|
1186
1347
|
*/
|
|
1187
1348
|
NoCookieAccess = 'noCookieAccess',
|
|
1188
1349
|
/**
|
|
@@ -1194,239 +1355,539 @@ export enum EmbedEvent {
|
|
|
1194
1355
|
SAMLComplete = 'samlComplete',
|
|
1195
1356
|
/**
|
|
1196
1357
|
* Emitted when any modal is opened in the app
|
|
1197
|
-
*
|
|
1198
1358
|
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
1359
|
+
*
|
|
1360
|
+
* @example
|
|
1361
|
+
*```js
|
|
1362
|
+
* appEmbed.on(EmbedEvent.DialogOpen, payload => {
|
|
1363
|
+
* console.log('dialog open', payload);
|
|
1364
|
+
* })
|
|
1365
|
+
*```
|
|
1199
1366
|
*/
|
|
1200
1367
|
DialogOpen = 'dialog-open',
|
|
1201
1368
|
/**
|
|
1202
1369
|
* Emitted when any modal is closed in the app
|
|
1203
|
-
*
|
|
1204
1370
|
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
1371
|
+
*
|
|
1372
|
+
* @example
|
|
1373
|
+
*```js
|
|
1374
|
+
* appEmbed.on(EmbedEvent.DialogClose, payload => {
|
|
1375
|
+
* console.log('dialog close', payload);
|
|
1376
|
+
* })
|
|
1377
|
+
*```
|
|
1205
1378
|
*/
|
|
1206
1379
|
DialogClose = 'dialog-close',
|
|
1207
1380
|
/**
|
|
1208
1381
|
* Emitted when the Liveboard shell loads.
|
|
1209
1382
|
* You can use this event as a hook to trigger
|
|
1210
1383
|
* other events on the rendered Liveboard.
|
|
1211
|
-
*
|
|
1212
1384
|
* @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
|
|
1385
|
+
*
|
|
1386
|
+
* @example
|
|
1387
|
+
*```js
|
|
1388
|
+
* liveboardEmbed.on(EmbedEvent.LiveboardRendered, payload => {
|
|
1389
|
+
console.log('Liveboard is rendered', payload);
|
|
1390
|
+
})
|
|
1391
|
+
*```
|
|
1392
|
+
* The following example shows how to trigger
|
|
1393
|
+
* `SetVisibleVizs` event using LiveboardRendered embed event:
|
|
1394
|
+
*
|
|
1395
|
+
* @example
|
|
1396
|
+
*```js
|
|
1397
|
+
* const embedRef = useEmbedRef();
|
|
1398
|
+
* const onLiveboardRendered = () => {
|
|
1399
|
+
* embed.trigger(HostEvent.SetVisibleVizs, ['viz1', 'viz2']);
|
|
1400
|
+
* };
|
|
1401
|
+
*```
|
|
1213
1402
|
*/
|
|
1214
1403
|
LiveboardRendered = 'PinboardRendered',
|
|
1215
1404
|
/**
|
|
1216
1405
|
* This can be used to register an event listener which
|
|
1217
1406
|
* is triggered on all events.
|
|
1218
|
-
*
|
|
1219
1407
|
* @Version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
|
|
1408
|
+
*
|
|
1409
|
+
* @example
|
|
1410
|
+
*```js
|
|
1411
|
+
* appEmbed.on(EmbedEvent.ALL, payload => {
|
|
1412
|
+
* console.log('Embed Events', payload)
|
|
1413
|
+
* })
|
|
1414
|
+
*```
|
|
1220
1415
|
*/
|
|
1221
1416
|
ALL = '*',
|
|
1222
1417
|
/**
|
|
1223
1418
|
* Emitted when an Answer is saved in the app
|
|
1224
|
-
*
|
|
1225
1419
|
* @Version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1420
|
+
* @example
|
|
1421
|
+
*```js
|
|
1422
|
+
* //trigger when action starts
|
|
1423
|
+
* searchEmbed.on(EmbedEvent.Save, payload => {
|
|
1424
|
+
* console.log('Save', payload)
|
|
1425
|
+
* }, {
|
|
1426
|
+
* start: true
|
|
1427
|
+
* })
|
|
1428
|
+
* //trigger when action ends
|
|
1429
|
+
* searchEmbed.on(EmbedEvent.Save, payload => {
|
|
1430
|
+
* console.log('Save', payload)
|
|
1431
|
+
* })
|
|
1432
|
+
*```
|
|
1226
1433
|
*/
|
|
1227
1434
|
Save = 'save',
|
|
1228
1435
|
/**
|
|
1229
1436
|
* Emitted when the download action is triggered on an answer
|
|
1230
1437
|
*
|
|
1438
|
+
* **Note**: This event is deprecated in v1.21.0.
|
|
1439
|
+
* To fire an event when a download action is initiated on a chart or table,
|
|
1440
|
+
* use `EmbedEvent.DownloadAsPng`, `EmbedEvent.DownloadAsPDF`, `EmbedEvent.DownloadAsCSV`,
|
|
1441
|
+
* or `EmbedEvent.DownloadAsXLSX`
|
|
1442
|
+
*
|
|
1231
1443
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1444
|
+
*
|
|
1445
|
+
* @example
|
|
1446
|
+
*```js
|
|
1447
|
+
* liveboardEmbed.trigger(HostEvent.Download, {
|
|
1448
|
+
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
1449
|
+
* })
|
|
1450
|
+
*```
|
|
1232
1451
|
*/
|
|
1233
1452
|
Download = 'download',
|
|
1234
1453
|
/**
|
|
1235
1454
|
* Emitted when the download action is triggered on an answer
|
|
1236
|
-
*
|
|
1237
1455
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.0.sw
|
|
1456
|
+
*
|
|
1457
|
+
* @example
|
|
1458
|
+
*```js
|
|
1459
|
+
* //trigger when action starts
|
|
1460
|
+
* searchEmbed.on(EmbedEvent.DownloadAsPng, payload => {
|
|
1461
|
+
* console.log('download PNG', payload)}, {start: true })
|
|
1462
|
+
* //trigger when action ends
|
|
1463
|
+
* searchEmbed.on(EmbedEvent.DownloadAsPng, payload => {
|
|
1464
|
+
* console.log('download PNG', payload)})
|
|
1465
|
+
*```
|
|
1466
|
+
*
|
|
1238
1467
|
*/
|
|
1239
1468
|
DownloadAsPng = 'downloadAsPng',
|
|
1240
1469
|
/**
|
|
1241
1470
|
* Emitted when the Download as PDF action is triggered on an answer
|
|
1242
1471
|
*
|
|
1243
1472
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1473
|
+
*
|
|
1474
|
+
* @example
|
|
1475
|
+
*```js
|
|
1476
|
+
* //trigger when action starts
|
|
1477
|
+
* searchEmbed.on(EmbedEvent.DownloadAsPdf, payload => {
|
|
1478
|
+
* console.log('download PDF', payload)}, {start: true })
|
|
1479
|
+
* //trigger when action ends
|
|
1480
|
+
* searchEmbed.on(EmbedEvent.DownloadAsPdf, payload => {
|
|
1481
|
+
* console.log('download PDF', payload)})
|
|
1482
|
+
*```
|
|
1483
|
+
*
|
|
1244
1484
|
*/
|
|
1245
1485
|
DownloadAsPdf = 'downloadAsPdf',
|
|
1246
1486
|
/**
|
|
1247
1487
|
* Emitted when the Download as CSV action is triggered on an answer
|
|
1248
1488
|
*
|
|
1249
1489
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1490
|
+
* @example
|
|
1491
|
+
*```js
|
|
1492
|
+
* //trigger when action starts
|
|
1493
|
+
* searchEmbed.on(EmbedEvent.DownloadAsCSV, payload => {
|
|
1494
|
+
* console.log('download CSV', payload)}, {start: true })
|
|
1495
|
+
* //trigger when action ends
|
|
1496
|
+
* searchEmbed.on(EmbedEvent.DownloadAsCSV, payload => {
|
|
1497
|
+
* console.log('download CSV', payload)})
|
|
1498
|
+
*```
|
|
1250
1499
|
*/
|
|
1251
1500
|
DownloadAsCsv = 'downloadAsCsv',
|
|
1252
1501
|
/**
|
|
1253
1502
|
* Emitted when the Download as XLSX action is triggered on an answer
|
|
1254
1503
|
*
|
|
1255
1504
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1505
|
+
*
|
|
1506
|
+
* @example
|
|
1507
|
+
*```js
|
|
1508
|
+
* //trigger when action starts
|
|
1509
|
+
* searchEmbed.on(EmbedEvent.DownloadAsXlsx, payload => {
|
|
1510
|
+
* console.log('download Xlsx', payload)}, { start: true })
|
|
1511
|
+
* //trigger when action ends
|
|
1512
|
+
* searchEmbed.on(EmbedEvent.DownloadAsXlsx, payload => {
|
|
1513
|
+
* console.log('download Xlsx', payload)})
|
|
1514
|
+
*```
|
|
1256
1515
|
*/
|
|
1257
1516
|
DownloadAsXlsx = 'downloadAsXlsx',
|
|
1258
1517
|
/**
|
|
1259
|
-
* Emitted when an
|
|
1518
|
+
* Emitted when an Answer is deleted in the app
|
|
1260
1519
|
*
|
|
1261
1520
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1521
|
+
*
|
|
1522
|
+
* @example
|
|
1523
|
+
*```js
|
|
1524
|
+
* //trigger when action starts
|
|
1525
|
+
* appEmbed.on(EmbedEvent.AnswerDelete, payload => {
|
|
1526
|
+
* console.log('delete answer', payload)}, {start: true })
|
|
1527
|
+
* //trigger when action is completed
|
|
1528
|
+
* appEmbed.on(EmbedEvent.AnswerDelete, payload => {
|
|
1529
|
+
* console.log('delete answer', payload)})
|
|
1530
|
+
*```
|
|
1262
1531
|
*/
|
|
1263
1532
|
AnswerDelete = 'answerDelete',
|
|
1264
1533
|
/**
|
|
1265
1534
|
* Emitted when an answer is pinned to a Liveboard
|
|
1266
1535
|
*
|
|
1267
1536
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1537
|
+
* @example
|
|
1538
|
+
*```js
|
|
1539
|
+
* //trigger when action starts
|
|
1540
|
+
* searchEmbed.on(EmbedEvent.Pin, payload => {
|
|
1541
|
+
* console.log('pin', payload)
|
|
1542
|
+
* }, {
|
|
1543
|
+
* start: true
|
|
1544
|
+
* })
|
|
1545
|
+
* //trigger when action ends
|
|
1546
|
+
* searchEmbed.on(EmbedEvent.Pin, payload => {
|
|
1547
|
+
* console.log('pin', payload)
|
|
1548
|
+
* })
|
|
1549
|
+
*```
|
|
1268
1550
|
*/
|
|
1269
1551
|
Pin = 'pin',
|
|
1270
1552
|
/**
|
|
1271
1553
|
* Emitted when SpotIQ analysis is triggered
|
|
1272
1554
|
*
|
|
1273
1555
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1556
|
+
* @example
|
|
1557
|
+
*```js
|
|
1558
|
+
* //trigger when action starts
|
|
1559
|
+
* searchEmbed.on(EmbedEvent.SpotIQAnalyze, payload => {
|
|
1560
|
+
* console.log('SpotIQAnalyze', payload)
|
|
1561
|
+
* }, {
|
|
1562
|
+
* start: true
|
|
1563
|
+
* })
|
|
1564
|
+
* //trigger when action ends
|
|
1565
|
+
* searchEmbed.on(EmbedEvent.SpotIQAnalyze, payload => {
|
|
1566
|
+
* console.log('SpotIQ analyze', payload)
|
|
1567
|
+
* })
|
|
1568
|
+
*```
|
|
1274
1569
|
*/
|
|
1275
1570
|
SpotIQAnalyze = 'spotIQAnalyze',
|
|
1276
1571
|
/**
|
|
1277
1572
|
* Emitted when a user shares an object with another user or group
|
|
1278
1573
|
*
|
|
1279
1574
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1575
|
+
*
|
|
1576
|
+
* @example
|
|
1577
|
+
*```js
|
|
1578
|
+
* //trigger when action starts
|
|
1579
|
+
* searchEmbed.on(EmbedEvent.Share, payload => {
|
|
1580
|
+
* console.log('Share', payload)
|
|
1581
|
+
* }, {
|
|
1582
|
+
* start: true
|
|
1583
|
+
* })
|
|
1584
|
+
* //trigger when action ends
|
|
1585
|
+
* searchEmbed.on(EmbedEvent.Share, payload => {
|
|
1586
|
+
* console.log('Share', payload)
|
|
1587
|
+
* })
|
|
1588
|
+
*```
|
|
1280
1589
|
*/
|
|
1281
1590
|
Share = 'share',
|
|
1282
1591
|
/**
|
|
1283
|
-
* Emitted when a user clicks the Include action to include a specific value or
|
|
1284
|
-
* on a chart or table
|
|
1592
|
+
* Emitted when a user clicks the **Include** action to include a specific value or
|
|
1593
|
+
* data on a chart or table.
|
|
1285
1594
|
*
|
|
1286
1595
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1596
|
+
* @example
|
|
1597
|
+
*```js
|
|
1598
|
+
* appEmbed.on(EmbedEvent.DrillInclude, payload => {
|
|
1599
|
+
* console.log('Drill include', payload);
|
|
1600
|
+
* })
|
|
1601
|
+
*```
|
|
1287
1602
|
*/
|
|
1288
1603
|
DrillInclude = 'context-menu-item-include',
|
|
1289
1604
|
/**
|
|
1290
|
-
* Emitted when a user clicks the Exclude action to exclude a specific value or
|
|
1291
|
-
* on a chart or table
|
|
1605
|
+
* Emitted when a user clicks the **Exclude** action to exclude a specific value or
|
|
1606
|
+
* data on a chart or table
|
|
1292
1607
|
*
|
|
1293
1608
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1609
|
+
* @example
|
|
1610
|
+
*```js
|
|
1611
|
+
* appEmbed.on(EmbedEvent.DrillExclude, payload => {
|
|
1612
|
+
* console.log('Drill exclude', payload);
|
|
1613
|
+
* })
|
|
1614
|
+
*```
|
|
1294
1615
|
*/
|
|
1295
1616
|
DrillExclude = 'context-menu-item-exclude',
|
|
1296
1617
|
/**
|
|
1297
|
-
* Emitted when
|
|
1618
|
+
* Emitted when a column value is copied in the embedded app.
|
|
1298
1619
|
*
|
|
1299
1620
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1621
|
+
* @example
|
|
1622
|
+
*```js
|
|
1623
|
+
* seachEmbed.on(EmbedEvent.CopyToClipboard, payload => {
|
|
1624
|
+
* console.log('copy to clipboard', payload);
|
|
1625
|
+
* })
|
|
1626
|
+
*```
|
|
1300
1627
|
*/
|
|
1301
1628
|
CopyToClipboard = 'context-menu-item-copy-to-clipboard',
|
|
1302
1629
|
/**
|
|
1303
|
-
* Emitted when a user clicks the Update TML action
|
|
1630
|
+
* Emitted when a user clicks the **Update TML** action
|
|
1304
1631
|
*
|
|
1305
1632
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1633
|
+
* @example
|
|
1634
|
+
*```js
|
|
1635
|
+
* liveboardEmbed.on(EmbedEvent.UpdateTML)
|
|
1636
|
+
* })
|
|
1637
|
+
*```
|
|
1306
1638
|
*/
|
|
1307
1639
|
UpdateTML = 'updateTSL',
|
|
1308
1640
|
/**
|
|
1309
|
-
* Emitted when a user clicks the Edit TML action
|
|
1641
|
+
* Emitted when a user clicks the **Edit TML** action
|
|
1310
1642
|
*
|
|
1311
1643
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1644
|
+
* @example
|
|
1645
|
+
*```js
|
|
1646
|
+
* appEmbed.on(EmbedEvent.EditTML, payload => {
|
|
1647
|
+
* console.log('Edit TML', payload);
|
|
1648
|
+
* })
|
|
1649
|
+
*```
|
|
1312
1650
|
*/
|
|
1313
1651
|
EditTML = 'editTSL',
|
|
1314
1652
|
/**
|
|
1315
|
-
* Emitted when
|
|
1316
|
-
*
|
|
1653
|
+
* Emitted when the **Export TML** action is triggered on an
|
|
1654
|
+
* an embedded object in the app
|
|
1317
1655
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1656
|
+
* @example
|
|
1657
|
+
*```js
|
|
1658
|
+
* //trigger when action starts
|
|
1659
|
+
* searchEmbed.on(EmbedEvent.ExportTML, payload => {
|
|
1660
|
+
* console.log('Export TML', payload)}, { start: true })
|
|
1661
|
+
* //trigger when action ends
|
|
1662
|
+
* searchEmbed.on(EmbedEvent.ExportTML, payload => {
|
|
1663
|
+
* console.log('Export TML', payload)})
|
|
1664
|
+
*```
|
|
1318
1665
|
*/
|
|
1319
1666
|
ExportTML = 'exportTSL',
|
|
1320
1667
|
/**
|
|
1321
|
-
* Emitted when an
|
|
1668
|
+
* Emitted when an Answer is saved as a View.
|
|
1322
1669
|
*
|
|
1323
1670
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1671
|
+
* @example
|
|
1672
|
+
*```js
|
|
1673
|
+
* appEmbed.on(EmbedEvent.SaveAsView, payload => {
|
|
1674
|
+
* console.log('View', payload);
|
|
1675
|
+
* })
|
|
1676
|
+
*```
|
|
1324
1677
|
*/
|
|
1325
1678
|
SaveAsView = 'saveAsView',
|
|
1326
1679
|
/**
|
|
1327
|
-
* Emitted when
|
|
1680
|
+
* Emitted when the user creates a copy of an Answer
|
|
1328
1681
|
*
|
|
1329
1682
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1683
|
+
* @example
|
|
1684
|
+
*```js
|
|
1685
|
+
* //trigger when action starts
|
|
1686
|
+
* appEmbed.on(EmbedEvent.CopyAEdit, payload => {
|
|
1687
|
+
* console.log('Copy and edit', payload)}, {start: true })
|
|
1688
|
+
* //trigger when action ends
|
|
1689
|
+
* appEmbed.on(EmbedEvent.CopyAEdit, payload => {
|
|
1690
|
+
* console.log('Copy and edit', payload)})
|
|
1691
|
+
*```
|
|
1330
1692
|
*/
|
|
1331
1693
|
CopyAEdit = 'copyAEdit',
|
|
1332
1694
|
/**
|
|
1333
|
-
* Emitted when a user clicks Show underlying data on an
|
|
1695
|
+
* Emitted when a user clicks Show underlying data on an Answer
|
|
1334
1696
|
*
|
|
1335
1697
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1698
|
+
* @example
|
|
1699
|
+
*```js
|
|
1700
|
+
* liveboardEmbed.on(EmbedEvent.ShowUnderlyingData, payload => {
|
|
1701
|
+
* console.log('show data', payload);
|
|
1702
|
+
* })
|
|
1703
|
+
*```
|
|
1336
1704
|
*/
|
|
1337
1705
|
ShowUnderlyingData = 'showUnderlyingData',
|
|
1338
1706
|
/**
|
|
1339
|
-
* Emitted when an answer is switched to a chart or table view
|
|
1707
|
+
* Emitted when an answer is switched to a chart or table view.
|
|
1340
1708
|
*
|
|
1341
1709
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1710
|
+
* @example
|
|
1711
|
+
*```js
|
|
1712
|
+
* searchEmbed.on(EmbedEvent.AnswerChartSwitcher, payload => {
|
|
1713
|
+
* console.log('switch view', payload);
|
|
1714
|
+
* })
|
|
1715
|
+
*```
|
|
1342
1716
|
*/
|
|
1343
1717
|
AnswerChartSwitcher = 'answerChartSwitcher',
|
|
1344
1718
|
/**
|
|
1345
|
-
* Internal event to communicate the initial settings back to the
|
|
1719
|
+
* Internal event to communicate the initial settings back to the ThoughtSpot app
|
|
1346
1720
|
*
|
|
1347
1721
|
* @hidden
|
|
1348
1722
|
*/
|
|
1349
1723
|
APP_INIT = 'appInit',
|
|
1350
1724
|
/**
|
|
1351
|
-
* Emitted when a user clicks Show Liveboard details on a Liveboard
|
|
1725
|
+
* Emitted when a user clicks **Show Liveboard details** on a Liveboard
|
|
1352
1726
|
*
|
|
1353
1727
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1728
|
+
* @example
|
|
1729
|
+
*```js
|
|
1730
|
+
* liveboardEmbed.on(EmbedEvent.AnswerChartSwitcher, payload => {
|
|
1731
|
+
* console.log('Liveboard details', payload);
|
|
1732
|
+
* })
|
|
1733
|
+
*```
|
|
1354
1734
|
*/
|
|
1355
1735
|
LiveboardInfo = 'pinboardInfo',
|
|
1356
1736
|
/**
|
|
1357
1737
|
* Emitted when a user clicks on the Favorite icon on a Liveboard
|
|
1358
1738
|
*
|
|
1359
1739
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1740
|
+
* @example
|
|
1741
|
+
*```js
|
|
1742
|
+
* liveboardEmbed.on(EmbedEvent.AddToFavorites, payload => {
|
|
1743
|
+
* console.log('favorites', payload);
|
|
1744
|
+
* })
|
|
1745
|
+
*```
|
|
1360
1746
|
*/
|
|
1361
1747
|
AddToFavorites = 'addToFavorites',
|
|
1362
1748
|
/**
|
|
1363
|
-
* Emitted when a user clicks Schedule on a Liveboard
|
|
1749
|
+
* Emitted when a user clicks **Schedule** on a Liveboard
|
|
1364
1750
|
*
|
|
1365
1751
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1752
|
+
* @example
|
|
1753
|
+
*```js
|
|
1754
|
+
* liveboardEmbed.on(EmbedEvent.Schedule, payload => {
|
|
1755
|
+
* console.log(`Liveboard schedule', payload);
|
|
1756
|
+
* })
|
|
1757
|
+
*```
|
|
1366
1758
|
*/
|
|
1367
1759
|
Schedule = 'subscription',
|
|
1368
1760
|
/**
|
|
1369
|
-
* Emitted when a user clicks Edit on a Liveboard or visualization
|
|
1761
|
+
* Emitted when a user clicks **Edit** on a Liveboard or visualization
|
|
1370
1762
|
*
|
|
1371
1763
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1764
|
+
* @example
|
|
1765
|
+
*```js
|
|
1766
|
+
* liveboardEmbed.on(EmbedEvent.Edit, payload => {
|
|
1767
|
+
* console.log(`Liveboard edit', payload);
|
|
1768
|
+
* })
|
|
1769
|
+
*```
|
|
1372
1770
|
*/
|
|
1373
1771
|
Edit = 'edit',
|
|
1374
1772
|
/**
|
|
1375
|
-
* Emitted when a user clicks Make a copy on a Liveboard
|
|
1773
|
+
* Emitted when a user clicks *Make a copy* on a Liveboard
|
|
1376
1774
|
*
|
|
1377
1775
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1776
|
+
* @example
|
|
1777
|
+
*```js
|
|
1778
|
+
* liveboardEmbed.on(EmbedEvent.MakeACopy, payload => {
|
|
1779
|
+
* console.log(`Copy', payload);
|
|
1780
|
+
* })
|
|
1781
|
+
*```
|
|
1378
1782
|
*/
|
|
1379
1783
|
MakeACopy = 'makeACopy',
|
|
1380
1784
|
/**
|
|
1381
|
-
* Emitted when a user clicks Present on a Liveboard or visualization
|
|
1785
|
+
* Emitted when a user clicks **Present** on a Liveboard or visualization
|
|
1382
1786
|
*
|
|
1383
1787
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1788
|
+
* @example
|
|
1789
|
+
*```js
|
|
1790
|
+
* liveboardEmbed.trigger(HostEvent.Present)
|
|
1791
|
+
*```
|
|
1792
|
+
*
|
|
1793
|
+
* @example
|
|
1794
|
+
*```js
|
|
1795
|
+
* liveboardEmbed.on(EmbedEvent.Present, {
|
|
1796
|
+
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1797
|
+
* })
|
|
1798
|
+
*```
|
|
1384
1799
|
*/
|
|
1385
1800
|
Present = 'present',
|
|
1386
1801
|
/**
|
|
1387
|
-
* Emitted when a user clicks Delete on a
|
|
1802
|
+
* Emitted when a user clicks **Delete** on a visualization
|
|
1388
1803
|
*
|
|
1389
1804
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1805
|
+
* @example
|
|
1806
|
+
*```js
|
|
1807
|
+
* liveboardEmbed.trigger(HostEvent.Delete,
|
|
1808
|
+
* {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1809
|
+
*```
|
|
1810
|
+
*
|
|
1390
1811
|
*/
|
|
1391
1812
|
Delete = 'delete',
|
|
1392
1813
|
/**
|
|
1393
1814
|
* Emitted when a user clicks Manage schedules on a Liveboard
|
|
1394
1815
|
*
|
|
1395
1816
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1817
|
+
*
|
|
1818
|
+
* @example
|
|
1819
|
+
*```js
|
|
1820
|
+
* liveboardEmbed.trigger(HostEvent.SchedulesList)
|
|
1821
|
+
*```
|
|
1822
|
+
*
|
|
1396
1823
|
*/
|
|
1397
1824
|
SchedulesList = 'schedule-list',
|
|
1398
1825
|
/**
|
|
1399
|
-
* Emitted when a user clicks Cancel in edit mode on a Liveboard
|
|
1826
|
+
* Emitted when a user clicks **Cancel** in edit mode on a Liveboard
|
|
1400
1827
|
*
|
|
1401
1828
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1829
|
+
*
|
|
1830
|
+
* @example
|
|
1831
|
+
*```js
|
|
1832
|
+
* liveboardEmbed.trigger(HostEvent.Cancel)
|
|
1833
|
+
*```
|
|
1834
|
+
*
|
|
1402
1835
|
*/
|
|
1403
1836
|
Cancel = 'cancel',
|
|
1404
1837
|
/**
|
|
1405
|
-
* Emitted when a user clicks Explore on a visualization
|
|
1838
|
+
* Emitted when a user clicks **Explore** on a visualization
|
|
1406
1839
|
*
|
|
1407
1840
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1841
|
+
*
|
|
1842
|
+
* @example
|
|
1843
|
+
*```js
|
|
1844
|
+
* liveboardEmbed.trigger(HostEvent.Explore, {
|
|
1845
|
+
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1846
|
+
*```
|
|
1847
|
+
*
|
|
1408
1848
|
*/
|
|
1409
1849
|
Explore = 'explore',
|
|
1410
1850
|
/**
|
|
1411
|
-
* Emitted when a user clicks Copy link action on a visualization
|
|
1851
|
+
* Emitted when a user clicks **Copy link** action on a visualization
|
|
1412
1852
|
*
|
|
1413
1853
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1854
|
+
*
|
|
1855
|
+
* @example
|
|
1856
|
+
*```js
|
|
1857
|
+
* liveboardEmbed.trigger(HostEvent.CopyLink, {
|
|
1858
|
+
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1859
|
+
*```
|
|
1860
|
+
*
|
|
1414
1861
|
*/
|
|
1415
1862
|
CopyLink = 'embedDocument',
|
|
1416
1863
|
/**
|
|
1417
|
-
* Emitted when a user interacts with cross filters on a visualization or
|
|
1864
|
+
* Emitted when a user interacts with cross filters on a visualization or Liveboard
|
|
1865
|
+
*
|
|
1866
|
+
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
|
|
1867
|
+
*
|
|
1868
|
+
* @example
|
|
1869
|
+
*```js
|
|
1870
|
+
* liveboardEmbed.trigger(HostEvent.CrossFilterChanged, {
|
|
1871
|
+
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1872
|
+
*```
|
|
1418
1873
|
*
|
|
1419
|
-
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
1420
1874
|
*/
|
|
1421
1875
|
CrossFilterChanged = 'cross-filter-changed',
|
|
1422
1876
|
/**
|
|
1423
1877
|
* Emitted when a user right clicks on a visualization (chart or table)
|
|
1424
1878
|
*
|
|
1425
|
-
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
1879
|
+
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
|
|
1880
|
+
*
|
|
1881
|
+
* @example
|
|
1882
|
+
*```js
|
|
1883
|
+
* LiveboardEmbed.on(EmbedEvent.VizPointRightClick, payload => {
|
|
1884
|
+
* console.log('VizPointClick', payload)
|
|
1885
|
+
* })
|
|
1886
|
+
*```
|
|
1426
1887
|
*/
|
|
1427
1888
|
VizPointRightClick = 'vizPointRightClick',
|
|
1428
1889
|
/**
|
|
1429
|
-
* Emitted when a user clicks
|
|
1890
|
+
* Emitted when a user clicks **Insert to slide** on a visualization
|
|
1430
1891
|
*
|
|
1431
1892
|
* @hidden
|
|
1432
1893
|
*/
|
|
@@ -1434,52 +1895,53 @@ export enum EmbedEvent {
|
|
|
1434
1895
|
/**
|
|
1435
1896
|
* @hidden
|
|
1436
1897
|
* Emitted when a user changes any filter on a Liveboard.
|
|
1437
|
-
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
1898
|
+
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.0.sw
|
|
1438
1899
|
*/
|
|
1439
1900
|
FilterChanged = 'filterChanged',
|
|
1440
1901
|
/**
|
|
1441
|
-
* Emitted when a user
|
|
1902
|
+
* Emitted when a user clicks the **Go** button on the Search page
|
|
1442
1903
|
*
|
|
1443
|
-
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
1904
|
+
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
1444
1905
|
*/
|
|
1445
1906
|
SageEmbedQuery = 'sageEmbedQuery',
|
|
1446
1907
|
/**
|
|
1447
|
-
*
|
|
1908
|
+
* Emitted when a user selects a data source.
|
|
1909
|
+
*
|
|
1910
|
+
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
1448
1911
|
*
|
|
1449
|
-
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
1450
1912
|
*/
|
|
1451
1913
|
SageWorksheetUpdated = 'sageWorksheetUpdated',
|
|
1452
1914
|
/**
|
|
1453
|
-
* Emitted when a user updates a connection
|
|
1915
|
+
* Emitted when a user updates a connection on the **Data** page
|
|
1454
1916
|
*
|
|
1455
|
-
* @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl
|
|
1917
|
+
* @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
|
|
1456
1918
|
*/
|
|
1457
1919
|
UpdateConnection = 'updateConnection',
|
|
1458
1920
|
/**
|
|
1459
|
-
* Emitted when a user updates a connection
|
|
1921
|
+
* Emitted when a user updates a connection on the **Data** page
|
|
1460
1922
|
*
|
|
1461
|
-
* @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl
|
|
1923
|
+
* @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
|
|
1462
1924
|
*/
|
|
1463
1925
|
CreateConnection = 'createConnection',
|
|
1464
1926
|
/**
|
|
1465
1927
|
* Emitted when name, status (private or public) or filter values of a
|
|
1466
|
-
*
|
|
1928
|
+
* Personalised view is updated.
|
|
1467
1929
|
*
|
|
1468
1930
|
* @returns viewName: string
|
|
1469
1931
|
* @returns viewId: string
|
|
1470
1932
|
* @returns liveboardId: string
|
|
1471
1933
|
* @returns isPublic: boolean
|
|
1472
|
-
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
1934
|
+
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
1473
1935
|
*/
|
|
1474
1936
|
UpdatePersonalisedView = 'updatePersonalisedView',
|
|
1475
1937
|
/**
|
|
1476
|
-
* Emitted when a
|
|
1938
|
+
* Emitted when a Personalised view is saved.
|
|
1477
1939
|
*
|
|
1478
1940
|
* @returns viewName: string
|
|
1479
1941
|
* @returns viewId: string
|
|
1480
1942
|
* @returns liveboardId: string
|
|
1481
1943
|
* @returns isPublic: boolean
|
|
1482
|
-
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
1944
|
+
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
1483
1945
|
*/
|
|
1484
1946
|
SavePersonalisedView = 'savePersonalisedView',
|
|
1485
1947
|
/**
|
|
@@ -1489,7 +1951,7 @@ export enum EmbedEvent {
|
|
|
1489
1951
|
* @returns viewId: string
|
|
1490
1952
|
* @returns liveboardId: string
|
|
1491
1953
|
* @returns isPublic: boolean
|
|
1492
|
-
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
1954
|
+
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
1493
1955
|
*/
|
|
1494
1956
|
ResetLiveboard = 'resetLiveboard',
|
|
1495
1957
|
/**
|
|
@@ -1497,11 +1959,11 @@ export enum EmbedEvent {
|
|
|
1497
1959
|
*
|
|
1498
1960
|
* @returns views: string[]
|
|
1499
1961
|
* @returns liveboardId: string
|
|
1500
|
-
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
1962
|
+
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
1501
1963
|
*/
|
|
1502
1964
|
DeletePersonalisedView = 'deletePersonalisedView',
|
|
1503
1965
|
/**
|
|
1504
|
-
*
|
|
1966
|
+
* Emitted when a user creates a new worksheet
|
|
1505
1967
|
*
|
|
1506
1968
|
* @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl
|
|
1507
1969
|
*/
|
|
@@ -1533,15 +1995,16 @@ export enum EmbedEvent {
|
|
|
1533
1995
|
// eslint-disable-next-line no-shadow
|
|
1534
1996
|
export enum HostEvent {
|
|
1535
1997
|
/**
|
|
1536
|
-
* Triggers a search
|
|
1537
|
-
*
|
|
1998
|
+
* Triggers a search operation with the search tokens specified in
|
|
1999
|
+
* the search query string.
|
|
2000
|
+
* Supported in `AppEmbed` and `SearchEmbed` deployments.
|
|
1538
2001
|
* Includes the following properties:
|
|
1539
2002
|
*
|
|
1540
|
-
* @param -
|
|
2003
|
+
* @param - `searchQuery` - query string with search tokens
|
|
2004
|
+
* @param - `dataSources` - Data source GUID to Search on
|
|
1541
2005
|
* - Although an array, only a single source
|
|
1542
2006
|
* is supported.
|
|
1543
|
-
* @param -
|
|
1544
|
-
* @param - execute - executes the existing / updated query
|
|
2007
|
+
* @param - `execute` - executes search and updates the existing query
|
|
1545
2008
|
* @example
|
|
1546
2009
|
* ```js
|
|
1547
2010
|
* searchembed.trigger(HostEvent.Search, {
|
|
@@ -1561,6 +2024,10 @@ export enum HostEvent {
|
|
|
1561
2024
|
* @param - columnGuid - Optional. GUID of the column to drill
|
|
1562
2025
|
* by. If not provided it will auto drill by the configured
|
|
1563
2026
|
* column.
|
|
2027
|
+
* @param - autoDrillDown - Optional. If true, the drill down will be
|
|
2028
|
+
* done automatically on the most popular column.
|
|
2029
|
+
* @param - vizId [TS >= 9.8.0] - Optional. The GUID of the visualization to drill
|
|
2030
|
+
* in case of a liveboard.
|
|
1564
2031
|
* @example
|
|
1565
2032
|
* ```js
|
|
1566
2033
|
* searchEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
|
|
@@ -1577,6 +2044,25 @@ export enum HostEvent {
|
|
|
1577
2044
|
* });
|
|
1578
2045
|
* })
|
|
1579
2046
|
* ```
|
|
2047
|
+
* @example
|
|
2048
|
+
* ```js
|
|
2049
|
+
* // Works with TS 9.8.0 and above
|
|
2050
|
+
*
|
|
2051
|
+
* liveboardEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
|
|
2052
|
+
* console.log(payload);
|
|
2053
|
+
* const clickedPoint = payload.data.clickedPoint;
|
|
2054
|
+
* const selectedPoint = payload.data.selectedPoints;
|
|
2055
|
+
* console.log('>>> called', clickedPoint);
|
|
2056
|
+
* liveboardEmbed.trigger(HostEvent.DrillDown, {
|
|
2057
|
+
* points: {
|
|
2058
|
+
* clickedPoint,
|
|
2059
|
+
* selectedPoints: selectedPoint
|
|
2060
|
+
* },
|
|
2061
|
+
* autoDrillDown: true,
|
|
2062
|
+
* vizId: payload.data.vizId
|
|
2063
|
+
* });
|
|
2064
|
+
* })
|
|
2065
|
+
* ```
|
|
1580
2066
|
* @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
|
|
1581
2067
|
*/
|
|
1582
2068
|
DrillDown = 'triggerDrillDown',
|
|
@@ -1593,7 +2079,7 @@ export enum HostEvent {
|
|
|
1593
2079
|
*/
|
|
1594
2080
|
Reload = 'reload',
|
|
1595
2081
|
/**
|
|
1596
|
-
*
|
|
2082
|
+
* Display specific visualizations on a Liveboard.
|
|
1597
2083
|
*
|
|
1598
2084
|
* @param - An array of GUIDs of the visualization to show. The visualization IDs not passed
|
|
1599
2085
|
* in this parameter will be hidden.
|
|
@@ -1607,7 +2093,7 @@ export enum HostEvent {
|
|
|
1607
2093
|
*/
|
|
1608
2094
|
SetVisibleVizs = 'SetPinboardVisibleVizs',
|
|
1609
2095
|
/**
|
|
1610
|
-
* Set
|
|
2096
|
+
* Set a Liveboard tab as an active tab.
|
|
1611
2097
|
*
|
|
1612
2098
|
* @param - tabId - string of id of Tab to show
|
|
1613
2099
|
* @example
|
|
@@ -1620,7 +2106,7 @@ export enum HostEvent {
|
|
|
1620
2106
|
*/
|
|
1621
2107
|
SetActiveTab = 'SetActiveTab',
|
|
1622
2108
|
/**
|
|
1623
|
-
*
|
|
2109
|
+
* Update runtime filters applied on a Saved Answer or Liveboard. The
|
|
1624
2110
|
* runtime filters passed here are appended to the existing runtime
|
|
1625
2111
|
* filters.
|
|
1626
2112
|
* Pass an array of runtime filters with the following attributes:
|
|
@@ -1646,10 +2132,12 @@ export enum HostEvent {
|
|
|
1646
2132
|
*/
|
|
1647
2133
|
UpdateRuntimeFilters = 'UpdateRuntimeFilters',
|
|
1648
2134
|
/**
|
|
1649
|
-
* Navigate to a specific page in the embedded application
|
|
2135
|
+
* Navigate to a specific page in the embedded ThoughtSpot application.
|
|
1650
2136
|
* This is the same as calling `appEmbed.navigateToPage(path, true)`
|
|
1651
2137
|
*
|
|
1652
|
-
* @param - path - the path to navigate to
|
|
2138
|
+
* @param - `path` - the path to navigate to to go forward or back. The path value can
|
|
2139
|
+
* be a number; for example, `1`, `-1`.
|
|
2140
|
+
*
|
|
1653
2141
|
* @example
|
|
1654
2142
|
* ```js
|
|
1655
2143
|
* appEmbed.navigateToPage(-1)
|
|
@@ -1658,7 +2146,7 @@ export enum HostEvent {
|
|
|
1658
2146
|
*/
|
|
1659
2147
|
Navigate = 'Navigate',
|
|
1660
2148
|
/**
|
|
1661
|
-
*
|
|
2149
|
+
* Open the filter panel for a particular column.
|
|
1662
2150
|
* Works with Search and Liveboard embed.
|
|
1663
2151
|
*
|
|
1664
2152
|
* @param - { columnId: string,
|
|
@@ -1676,7 +2164,7 @@ export enum HostEvent {
|
|
|
1676
2164
|
*/
|
|
1677
2165
|
OpenFilter = 'openFilter',
|
|
1678
2166
|
/**
|
|
1679
|
-
*
|
|
2167
|
+
* Add columns to the current search query.
|
|
1680
2168
|
*
|
|
1681
2169
|
* @param - { columnIds: string[] }
|
|
1682
2170
|
* @example
|
|
@@ -1687,7 +2175,7 @@ export enum HostEvent {
|
|
|
1687
2175
|
*/
|
|
1688
2176
|
AddColumns = 'addColumns',
|
|
1689
2177
|
/**
|
|
1690
|
-
*
|
|
2178
|
+
* Remove a column from the current search query.
|
|
1691
2179
|
*
|
|
1692
2180
|
* @param - { columnId: string }
|
|
1693
2181
|
* @example
|
|
@@ -1698,27 +2186,29 @@ export enum HostEvent {
|
|
|
1698
2186
|
*/
|
|
1699
2187
|
RemoveColumn = 'removeColumn',
|
|
1700
2188
|
/**
|
|
1701
|
-
*
|
|
2189
|
+
* Get the transient state of a Liveboard as encoded content.
|
|
2190
|
+
* This includes unsaved and ad hoc changes such as
|
|
2191
|
+
* Liveboard filters, runtime filters applied on visualizations on a
|
|
2192
|
+
* Liveboard, and Liveboard layout, changes to visualizations such as
|
|
2193
|
+
* sorting, toggling of legends, and data drill down.
|
|
1702
2194
|
*
|
|
1703
2195
|
* @example
|
|
1704
2196
|
* ```js
|
|
1705
|
-
* liveboardEmbed.trigger(HostEvent.
|
|
2197
|
+
* liveboardEmbed.trigger(HostEvent.getexportrequestforcurrentpinboard).then(
|
|
2198
|
+
* data=>console.log(data))
|
|
1706
2199
|
* ```
|
|
1707
2200
|
* @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1.sw
|
|
1708
2201
|
*/
|
|
1709
2202
|
getExportRequestForCurrentPinboard = 'getExportRequestForCurrentPinboard',
|
|
1710
2203
|
/**
|
|
1711
|
-
*
|
|
2204
|
+
* Trigger the **Pin** action on an embedded object
|
|
1712
2205
|
*
|
|
1713
2206
|
* @param - Liveboard embed takes the `vizId` as a
|
|
1714
|
-
* key. Can be left undefined when embedding Search, full app or
|
|
2207
|
+
* key. Can be left undefined when embedding Search, full app, or
|
|
1715
2208
|
* a visualization.
|
|
1716
2209
|
* @example
|
|
1717
2210
|
* ```js
|
|
1718
|
-
*
|
|
1719
|
-
* ```
|
|
1720
|
-
* ```js
|
|
1721
|
-
* vizEmbed.trigger(HostEvent.Pin)
|
|
2211
|
+
* appEmbed.trigger(HostEvent.Pin)
|
|
1722
2212
|
* ```
|
|
1723
2213
|
* ```js
|
|
1724
2214
|
* searchEmbed.trigger(HostEvent.Pin)
|
|
@@ -1727,17 +2217,18 @@ export enum HostEvent {
|
|
|
1727
2217
|
*/
|
|
1728
2218
|
Pin = 'pin',
|
|
1729
2219
|
/**
|
|
1730
|
-
*
|
|
2220
|
+
* Trigger the **Show Liveboard details** action
|
|
2221
|
+
* on an embedded Liveboard.
|
|
1731
2222
|
*
|
|
1732
2223
|
* @example
|
|
1733
|
-
|
|
1734
|
-
*
|
|
1735
|
-
|
|
2224
|
+
*```js
|
|
2225
|
+
* liveboardEmbed.trigger(HostEvent.LiveboardInfo)
|
|
2226
|
+
*```
|
|
1736
2227
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1737
2228
|
*/
|
|
1738
2229
|
LiveboardInfo = 'pinboardInfo',
|
|
1739
2230
|
/**
|
|
1740
|
-
*
|
|
2231
|
+
* Trigger the **Schedule** action on an embedded Liveboard.
|
|
1741
2232
|
*
|
|
1742
2233
|
* @example
|
|
1743
2234
|
* ```js
|
|
@@ -1747,7 +2238,7 @@ export enum HostEvent {
|
|
|
1747
2238
|
*/
|
|
1748
2239
|
Schedule = 'subscription',
|
|
1749
2240
|
/**
|
|
1750
|
-
*
|
|
2241
|
+
* Trigger the **Manage schedule** action on an embedded Liveboard
|
|
1751
2242
|
*
|
|
1752
2243
|
* @example
|
|
1753
2244
|
* ```js
|
|
@@ -1757,7 +2248,7 @@ export enum HostEvent {
|
|
|
1757
2248
|
*/
|
|
1758
2249
|
SchedulesList = 'schedule-list',
|
|
1759
2250
|
/**
|
|
1760
|
-
*
|
|
2251
|
+
* Trigger the **Export TML** action on an embedded Liveboard.
|
|
1761
2252
|
*
|
|
1762
2253
|
* @example
|
|
1763
2254
|
* ```js
|
|
@@ -1767,7 +2258,7 @@ export enum HostEvent {
|
|
|
1767
2258
|
*/
|
|
1768
2259
|
ExportTML = 'exportTSL',
|
|
1769
2260
|
/**
|
|
1770
|
-
*
|
|
2261
|
+
* Trigger the **Edit TML** action on an embedded Liveboard.
|
|
1771
2262
|
*
|
|
1772
2263
|
* @example
|
|
1773
2264
|
* ```js
|
|
@@ -1777,7 +2268,7 @@ export enum HostEvent {
|
|
|
1777
2268
|
*/
|
|
1778
2269
|
EditTML = 'editTSL',
|
|
1779
2270
|
/**
|
|
1780
|
-
*
|
|
2271
|
+
* Trigger the **Update TML** action on an embedded Liveboard.
|
|
1781
2272
|
*
|
|
1782
2273
|
* @example
|
|
1783
2274
|
* ```js
|
|
@@ -1787,7 +2278,7 @@ export enum HostEvent {
|
|
|
1787
2278
|
*/
|
|
1788
2279
|
UpdateTML = 'updateTSL',
|
|
1789
2280
|
/**
|
|
1790
|
-
*
|
|
2281
|
+
* Trigger the **Download PDF** action on an embedded Liveboard.
|
|
1791
2282
|
*
|
|
1792
2283
|
* @example
|
|
1793
2284
|
* ```js
|
|
@@ -1797,8 +2288,8 @@ export enum HostEvent {
|
|
|
1797
2288
|
*/
|
|
1798
2289
|
DownloadAsPdf = 'downloadAsPdf',
|
|
1799
2290
|
/**
|
|
1800
|
-
*
|
|
1801
|
-
* visualization page
|
|
2291
|
+
* Trigger the **Make a copy** action on a Liveboard, Search, or
|
|
2292
|
+
* visualization page.
|
|
1802
2293
|
*
|
|
1803
2294
|
* @example
|
|
1804
2295
|
* ```js
|
|
@@ -1814,7 +2305,7 @@ export enum HostEvent {
|
|
|
1814
2305
|
*/
|
|
1815
2306
|
MakeACopy = 'makeACopy',
|
|
1816
2307
|
/**
|
|
1817
|
-
*
|
|
2308
|
+
* Trigger the **Delete** action for a Liveboard.
|
|
1818
2309
|
*
|
|
1819
2310
|
* @example
|
|
1820
2311
|
* ```js
|
|
@@ -1824,7 +2315,7 @@ export enum HostEvent {
|
|
|
1824
2315
|
*/
|
|
1825
2316
|
Remove = 'delete',
|
|
1826
2317
|
/**
|
|
1827
|
-
*
|
|
2318
|
+
* Trigger the **Explore** action on a visualization.
|
|
1828
2319
|
*
|
|
1829
2320
|
* @param - an object with `vizId` as a key
|
|
1830
2321
|
* @example
|
|
@@ -1835,7 +2326,7 @@ export enum HostEvent {
|
|
|
1835
2326
|
*/
|
|
1836
2327
|
Explore = 'explore',
|
|
1837
2328
|
/**
|
|
1838
|
-
*
|
|
2329
|
+
* Trigger the **Create alert** action on a visualization
|
|
1839
2330
|
*
|
|
1840
2331
|
* @param - an object with `vizId` as a key
|
|
1841
2332
|
* @example
|
|
@@ -1848,7 +2339,7 @@ export enum HostEvent {
|
|
|
1848
2339
|
*/
|
|
1849
2340
|
CreateMonitor = 'createMonitor',
|
|
1850
2341
|
/**
|
|
1851
|
-
*
|
|
2342
|
+
* Trigger the **Manage alerts** action on a visualization
|
|
1852
2343
|
*
|
|
1853
2344
|
* @param - an object with `vizId` as a key
|
|
1854
2345
|
* @example
|
|
@@ -1861,7 +2352,7 @@ export enum HostEvent {
|
|
|
1861
2352
|
*/
|
|
1862
2353
|
ManageMonitor = 'manageMonitor',
|
|
1863
2354
|
/**
|
|
1864
|
-
*
|
|
2355
|
+
* Trigger the **Edit** action on a Liveboard or visualization
|
|
1865
2356
|
*
|
|
1866
2357
|
* @param - object - To trigger the action for a specific visualization
|
|
1867
2358
|
* in Liveboard embed, pass in `vizId` as a key.
|
|
@@ -1882,7 +2373,7 @@ export enum HostEvent {
|
|
|
1882
2373
|
*/
|
|
1883
2374
|
Edit = 'edit',
|
|
1884
2375
|
/**
|
|
1885
|
-
*
|
|
2376
|
+
* Trigger the **Copy link** action on a Liveboard or visualization
|
|
1886
2377
|
*
|
|
1887
2378
|
* @param - object - to trigger the action for a
|
|
1888
2379
|
* specific visualization in Liveboard embed, pass in `vizId` as a key
|
|
@@ -1900,7 +2391,7 @@ export enum HostEvent {
|
|
|
1900
2391
|
*/
|
|
1901
2392
|
CopyLink = 'embedDocument',
|
|
1902
2393
|
/**
|
|
1903
|
-
*
|
|
2394
|
+
* Trigger the **Present** action on a Liveboard or visualization
|
|
1904
2395
|
*
|
|
1905
2396
|
* @param - object - to trigger the action for a specific visualization
|
|
1906
2397
|
* in Liveboard embed, pass in `vizId` as a key
|
|
@@ -1918,7 +2409,7 @@ export enum HostEvent {
|
|
|
1918
2409
|
*/
|
|
1919
2410
|
Present = 'present',
|
|
1920
2411
|
/**
|
|
1921
|
-
*
|
|
2412
|
+
* Get TML for the current search.
|
|
1922
2413
|
*
|
|
1923
2414
|
* @example
|
|
1924
2415
|
* ```js
|
|
@@ -1933,7 +2424,7 @@ export enum HostEvent {
|
|
|
1933
2424
|
*/
|
|
1934
2425
|
GetTML = 'getTML',
|
|
1935
2426
|
/**
|
|
1936
|
-
*
|
|
2427
|
+
* Trigger the **Show underlying data** action on visualization or search
|
|
1937
2428
|
*
|
|
1938
2429
|
* @param - an object with vizId as a key
|
|
1939
2430
|
* @example
|
|
@@ -1951,7 +2442,9 @@ export enum HostEvent {
|
|
|
1951
2442
|
*/
|
|
1952
2443
|
ShowUnderlyingData = 'showUnderlyingData',
|
|
1953
2444
|
/**
|
|
1954
|
-
*
|
|
2445
|
+
* Trigger the **Delete** action for a visualization
|
|
2446
|
+
* in an embedded Liveboard, or a chart or table
|
|
2447
|
+
* generated from Search.
|
|
1955
2448
|
*
|
|
1956
2449
|
* @param - Liveboard embed takes an object with `vizId` as a key.
|
|
1957
2450
|
* Can be left empty if embedding Search or visualization.
|
|
@@ -1961,16 +2454,13 @@ export enum HostEvent {
|
|
|
1961
2454
|
* '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1962
2455
|
* ```
|
|
1963
2456
|
* ```js
|
|
1964
|
-
* vizEmbed.trigger(HostEvent.Delete)
|
|
1965
|
-
* ```
|
|
1966
|
-
* ```js
|
|
1967
2457
|
* searchEmbed.trigger(HostEvent.Delete)
|
|
1968
2458
|
* ```
|
|
1969
2459
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
1970
2460
|
*/
|
|
1971
2461
|
Delete = 'onDeleteAnswer',
|
|
1972
2462
|
/**
|
|
1973
|
-
*
|
|
2463
|
+
* Trigger the **SpotIQ analyze** action on visualization
|
|
1974
2464
|
* or search.
|
|
1975
2465
|
*
|
|
1976
2466
|
* @param - Liveboard embed takes `vizId` as a
|
|
@@ -1991,7 +2481,7 @@ export enum HostEvent {
|
|
|
1991
2481
|
*/
|
|
1992
2482
|
SpotIQAnalyze = 'spotIQAnalyze',
|
|
1993
2483
|
/**
|
|
1994
|
-
*
|
|
2484
|
+
* Trigger the **Download** action on charts in
|
|
1995
2485
|
* the embedded view.
|
|
1996
2486
|
*
|
|
1997
2487
|
* @example
|
|
@@ -2000,17 +2490,15 @@ export enum HostEvent {
|
|
|
2000
2490
|
* '730496d6-6903-4601-937e-2c691821af3c'})
|
|
2001
2491
|
* ```
|
|
2002
2492
|
* ```js
|
|
2003
|
-
*
|
|
2493
|
+
* embed.trigger(HostEvent.Download)
|
|
2004
2494
|
* ```
|
|
2005
|
-
*
|
|
2006
|
-
*
|
|
2007
|
-
* ```
|
|
2008
|
-
* @deprecated from SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl ,9.4.1.sw ,Use {@link DownloadAsPng}
|
|
2495
|
+
* @deprecated from SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl ,9.4.1.sw
|
|
2496
|
+
* Use {@link DownloadAsPng}
|
|
2009
2497
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
2010
2498
|
*/
|
|
2011
2499
|
Download = 'downloadAsPng',
|
|
2012
2500
|
/**
|
|
2013
|
-
*
|
|
2501
|
+
* Trigger the **Download** > **PNG** action on
|
|
2014
2502
|
* charts in the embedded view.
|
|
2015
2503
|
*
|
|
2016
2504
|
* @example
|
|
@@ -2026,7 +2514,7 @@ export enum HostEvent {
|
|
|
2026
2514
|
*/
|
|
2027
2515
|
DownloadAsPng = 'downloadAsPng',
|
|
2028
2516
|
/**
|
|
2029
|
-
*
|
|
2517
|
+
* Trigger the **Download** > **CSV** action on tables in
|
|
2030
2518
|
* the embedded view.
|
|
2031
2519
|
*
|
|
2032
2520
|
* @example
|
|
@@ -2044,7 +2532,7 @@ export enum HostEvent {
|
|
|
2044
2532
|
*/
|
|
2045
2533
|
DownloadAsCsv = 'downloadAsCSV',
|
|
2046
2534
|
/**
|
|
2047
|
-
*
|
|
2535
|
+
* Trigger the **Download** > **XLSX** action on tables
|
|
2048
2536
|
* in the embedded view.
|
|
2049
2537
|
*
|
|
2050
2538
|
* @example
|
|
@@ -2062,7 +2550,7 @@ export enum HostEvent {
|
|
|
2062
2550
|
*/
|
|
2063
2551
|
DownloadAsXlsx = 'downloadAsXLSX',
|
|
2064
2552
|
/**
|
|
2065
|
-
*
|
|
2553
|
+
* Trigger the **Share** action on an embedded
|
|
2066
2554
|
* Liveboard or Answer.
|
|
2067
2555
|
*
|
|
2068
2556
|
* @example
|
|
@@ -2076,7 +2564,7 @@ export enum HostEvent {
|
|
|
2076
2564
|
*/
|
|
2077
2565
|
Share = 'share',
|
|
2078
2566
|
/**
|
|
2079
|
-
*
|
|
2567
|
+
* Trigger the **Save** action on a Liveboard or Answer.
|
|
2080
2568
|
* Saves the changes.
|
|
2081
2569
|
*
|
|
2082
2570
|
* @example
|
|
@@ -2090,7 +2578,7 @@ export enum HostEvent {
|
|
|
2090
2578
|
*/
|
|
2091
2579
|
Save = 'save',
|
|
2092
2580
|
/**
|
|
2093
|
-
*
|
|
2581
|
+
* Trigger the **Sync to Sheets** action on an embedded visualization or Answer
|
|
2094
2582
|
* Sends data from an Answer or Liveboard visualization to a Google sheet.
|
|
2095
2583
|
*
|
|
2096
2584
|
* @param - an object with `vizId` as a key
|
|
@@ -2106,7 +2594,7 @@ export enum HostEvent {
|
|
|
2106
2594
|
*/
|
|
2107
2595
|
SyncToSheets = 'sync-to-sheets',
|
|
2108
2596
|
/**
|
|
2109
|
-
*
|
|
2597
|
+
* Trigger the **Sync to Other Apps** action on an embedded visualization or Answer
|
|
2110
2598
|
* Sends data from an Answer or Liveboard visualization to third-party apps such
|
|
2111
2599
|
* as Slack, Salesforce, Microsoft Teams, ServiceNow and so on.
|
|
2112
2600
|
*
|
|
@@ -2123,7 +2611,7 @@ export enum HostEvent {
|
|
|
2123
2611
|
*/
|
|
2124
2612
|
SyncToOtherApps = 'sync-to-other-apps',
|
|
2125
2613
|
/**
|
|
2126
|
-
*
|
|
2614
|
+
* Trigger the **Manage pipelines** action on an embedded
|
|
2127
2615
|
* visualization or Answer.
|
|
2128
2616
|
* Allows users to manage ThoughtSpot Sync pipelines.
|
|
2129
2617
|
*
|
|
@@ -2140,18 +2628,21 @@ export enum HostEvent {
|
|
|
2140
2628
|
*/
|
|
2141
2629
|
ManagePipelines = 'manage-pipeline',
|
|
2142
2630
|
/**
|
|
2143
|
-
*
|
|
2631
|
+
* Reset search operation on the Search or Answer page.
|
|
2144
2632
|
*
|
|
2145
2633
|
* @example
|
|
2146
2634
|
* ```js
|
|
2147
2635
|
* searchEmbed.trigger(HostEvent.ResetSearch)
|
|
2148
2636
|
* ```
|
|
2637
|
+
* ```js
|
|
2638
|
+
* appEmbed.trigger(HostEvent.ResetSearch)
|
|
2639
|
+
* ```
|
|
2149
2640
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.0.1.sw
|
|
2150
2641
|
*/
|
|
2151
2642
|
ResetSearch = 'resetSearch',
|
|
2152
2643
|
/**
|
|
2153
2644
|
* @hidden
|
|
2154
|
-
*
|
|
2645
|
+
* Get the currents visible and runtime filters applied on a Liveboard
|
|
2155
2646
|
* @example
|
|
2156
2647
|
* liveboardEmbed.trigger(HostEvent.GetFilters)
|
|
2157
2648
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
@@ -2159,7 +2650,7 @@ export enum HostEvent {
|
|
|
2159
2650
|
GetFilters = 'getFilters',
|
|
2160
2651
|
/**
|
|
2161
2652
|
* @hidden
|
|
2162
|
-
*
|
|
2653
|
+
* Update the visible filters on the Liveboard.
|
|
2163
2654
|
* @param - filter: filter object containing column name and filter operation and values
|
|
2164
2655
|
* @example
|
|
2165
2656
|
*
|
|
@@ -2172,7 +2663,7 @@ export enum HostEvent {
|
|
|
2172
2663
|
*/
|
|
2173
2664
|
UpdateFilters = 'updateFilters',
|
|
2174
2665
|
/**
|
|
2175
|
-
* Get
|
|
2666
|
+
* Get tab details for the current Liveboard.
|
|
2176
2667
|
*
|
|
2177
2668
|
* @example
|
|
2178
2669
|
* ```js
|
|
@@ -2186,9 +2677,9 @@ export enum HostEvent {
|
|
|
2186
2677
|
*/
|
|
2187
2678
|
GetTabs = 'getTabs',
|
|
2188
2679
|
/**
|
|
2189
|
-
* Set the visible
|
|
2680
|
+
* Set the visible tabs on a Liveboard.
|
|
2190
2681
|
*
|
|
2191
|
-
* @param - an array of ids of
|
|
2682
|
+
* @param - an array of ids of tabs to show, the IDs not passed
|
|
2192
2683
|
* will be hidden.
|
|
2193
2684
|
* @example
|
|
2194
2685
|
* ```js
|
|
@@ -2202,8 +2693,8 @@ export enum HostEvent {
|
|
|
2202
2693
|
/**
|
|
2203
2694
|
* Set the hidden tabs on a Liveboard.
|
|
2204
2695
|
*
|
|
2205
|
-
* @param - an array of
|
|
2206
|
-
*
|
|
2696
|
+
* @param - an array of the IDs of the tabs to hide.
|
|
2697
|
+
* The IDs not passed will be shown.
|
|
2207
2698
|
* @example
|
|
2208
2699
|
* ```js
|
|
2209
2700
|
* liveboardEmbed.trigger(HostEvent.SetHiddenTabs, [
|
|
@@ -2214,9 +2705,12 @@ export enum HostEvent {
|
|
|
2214
2705
|
*/
|
|
2215
2706
|
SetHiddenTabs = 'SetPinboardHiddenTabs',
|
|
2216
2707
|
/**
|
|
2217
|
-
* Updates the search query for
|
|
2708
|
+
* Updates the search query string for Natural Language Search operations.
|
|
2709
|
+
*
|
|
2710
|
+
* @param - `queryString`: Text string in Natural Language format
|
|
2711
|
+
*
|
|
2712
|
+
* @param - `executeSearch`: Boolean to execute search and update search query
|
|
2218
2713
|
*
|
|
2219
|
-
* @param - searchOptions: an object queryString and option to execute the query.
|
|
2220
2714
|
* @example
|
|
2221
2715
|
* ```js
|
|
2222
2716
|
* sageEmbed.trigger(HostEvent.UpdateSageQuery, {
|
|
@@ -2224,7 +2718,7 @@ export enum HostEvent {
|
|
|
2224
2718
|
* executeSearch: true,
|
|
2225
2719
|
* })
|
|
2226
2720
|
* ```
|
|
2227
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.
|
|
2721
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
|
|
2228
2722
|
*/
|
|
2229
2723
|
UpdateSageQuery = 'updateSageQuery',
|
|
2230
2724
|
/**
|
|
@@ -2237,26 +2731,27 @@ export enum HostEvent {
|
|
|
2237
2731
|
* vizId: '123', // For Liveboard Visualization.
|
|
2238
2732
|
* })
|
|
2239
2733
|
* ```
|
|
2734
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.10.0.cl
|
|
2240
2735
|
*/
|
|
2241
2736
|
GetAnswerSession = 'getAnswerSession',
|
|
2242
2737
|
}
|
|
2243
2738
|
|
|
2244
2739
|
/**
|
|
2245
2740
|
* The different visual modes that the data sources panel within
|
|
2246
|
-
* search could appear in,
|
|
2741
|
+
* search could appear in, such as hidden, collapsed, or expanded.
|
|
2247
2742
|
*/
|
|
2248
2743
|
// eslint-disable-next-line no-shadow
|
|
2249
2744
|
export enum DataSourceVisualMode {
|
|
2250
2745
|
/**
|
|
2251
|
-
*
|
|
2746
|
+
* The data source panel is hidden.
|
|
2252
2747
|
*/
|
|
2253
2748
|
Hidden = 'hide',
|
|
2254
2749
|
/**
|
|
2255
|
-
*
|
|
2750
|
+
* The data source panel is collapsed, but the user can manually expand it.
|
|
2256
2751
|
*/
|
|
2257
2752
|
Collapsed = 'collapse',
|
|
2258
2753
|
/**
|
|
2259
|
-
*
|
|
2754
|
+
* The data source panel is expanded, but the user can manually collapse it.
|
|
2260
2755
|
*/
|
|
2261
2756
|
Expanded = 'expand',
|
|
2262
2757
|
}
|
|
@@ -2336,6 +2831,9 @@ export enum Param {
|
|
|
2336
2831
|
IsProductTour = 'isProductTour',
|
|
2337
2832
|
HideSearchBarTitle = 'hideSearchBarTitle',
|
|
2338
2833
|
HideSageAnswerHeader = 'hideSageAnswerHeader',
|
|
2834
|
+
HideSearchBar = 'hideSearchBar',
|
|
2835
|
+
ClientLogLevel = 'clientLogLevel',
|
|
2836
|
+
OverrideNativeConsole = 'overrideConsoleLogs',
|
|
2339
2837
|
}
|
|
2340
2838
|
|
|
2341
2839
|
/**
|
|
@@ -2397,9 +2895,11 @@ export enum Action {
|
|
|
2397
2895
|
SaveAsView = 'saveAsView',
|
|
2398
2896
|
/**
|
|
2399
2897
|
* The **Make a copy** action on a Liveboard or Answer
|
|
2400
|
-
* page.
|
|
2401
|
-
*
|
|
2402
|
-
*
|
|
2898
|
+
* page. Creates a copy of the Liveboard.
|
|
2899
|
+
* In LiveboardEmbed, the **Make a copy** action is not available for
|
|
2900
|
+
* visualizations in the embedded Liveboard view.
|
|
2901
|
+
* In AppEmbed, the **Make a copy** action is available on both
|
|
2902
|
+
* Liveboards and visualizations.
|
|
2403
2903
|
*
|
|
2404
2904
|
* @example
|
|
2405
2905
|
* ```js
|
|
@@ -2583,7 +3083,7 @@ export enum Action {
|
|
|
2583
3083
|
*/
|
|
2584
3084
|
DownloadAsPdf = 'downloadAsPdf',
|
|
2585
3085
|
/**
|
|
2586
|
-
* The **Download**
|
|
3086
|
+
* The **Download** > **CSV** menu action for tables on a Liveboard
|
|
2587
3087
|
* or Answer page.
|
|
2588
3088
|
* Downloads a visualization or Answer in the XLSX format.
|
|
2589
3089
|
*
|
|
@@ -3115,6 +3615,7 @@ export enum Action {
|
|
|
3115
3615
|
*/
|
|
3116
3616
|
RenameModalTitleDescription = 'renameModalTitleDescription',
|
|
3117
3617
|
/**
|
|
3618
|
+
*
|
|
3118
3619
|
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
|
|
3119
3620
|
*/
|
|
3120
3621
|
RequestVerification = 'requestVerification',
|
|
@@ -3261,3 +3762,12 @@ export interface CustomActionPayload {
|
|
|
3261
3762
|
session: SessionInterface;
|
|
3262
3763
|
vizId?: string;
|
|
3263
3764
|
}
|
|
3765
|
+
|
|
3766
|
+
export enum LogLevel {
|
|
3767
|
+
SILENT = 'SILENT',
|
|
3768
|
+
ERROR = 'ERROR',
|
|
3769
|
+
WARN = 'WARN',
|
|
3770
|
+
INFO = 'INFO',
|
|
3771
|
+
DEBUG = 'DEBUG',
|
|
3772
|
+
TRACE = 'TRACE',
|
|
3773
|
+
}
|