@thoughtspot/visual-embed-sdk 1.20.1 → 1.20.3
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 +171 -0
- package/cjs/src/auth.d.ts +183 -0
- package/cjs/src/auth.d.ts.map +1 -0
- package/cjs/src/auth.js +457 -0
- package/cjs/src/auth.js.map +1 -0
- package/cjs/src/auth.spec.d.ts +13 -0
- package/cjs/src/auth.spec.d.ts.map +1 -0
- package/cjs/src/auth.spec.js +397 -0
- package/cjs/src/auth.spec.js.map +1 -0
- package/cjs/src/config.d.ts +22 -0
- package/cjs/src/config.d.ts.map +1 -0
- package/cjs/src/config.js +70 -0
- package/cjs/src/config.js.map +1 -0
- package/cjs/src/config.spec.d.ts +5 -0
- package/cjs/src/config.spec.d.ts.map +1 -0
- package/cjs/src/config.spec.js +65 -0
- package/cjs/src/config.spec.js.map +1 -0
- package/cjs/src/embed/app.d.ts +168 -0
- package/cjs/src/embed/app.d.ts.map +1 -0
- package/cjs/src/embed/app.js +215 -0
- package/cjs/src/embed/app.js.map +1 -0
- package/cjs/src/embed/app.spec.d.ts +2 -0
- package/cjs/src/embed/app.spec.d.ts.map +1 -0
- package/cjs/src/embed/app.spec.js +239 -0
- package/cjs/src/embed/app.spec.js.map +1 -0
- package/cjs/src/embed/base.d.ts +79 -0
- package/cjs/src/embed/base.d.ts.map +1 -0
- package/cjs/src/embed/base.js +229 -0
- package/cjs/src/embed/base.js.map +1 -0
- package/cjs/src/embed/base.spec.d.ts +2 -0
- package/cjs/src/embed/base.spec.d.ts.map +1 -0
- package/cjs/src/embed/base.spec.js +198 -0
- package/cjs/src/embed/base.spec.js.map +1 -0
- package/cjs/src/embed/embed.spec.d.ts +2 -0
- package/cjs/src/embed/embed.spec.d.ts.map +1 -0
- package/cjs/src/embed/embed.spec.js +74 -0
- package/cjs/src/embed/embed.spec.js.map +1 -0
- package/cjs/src/embed/events.spec.d.ts +2 -0
- package/cjs/src/embed/events.spec.d.ts.map +1 -0
- package/cjs/src/embed/events.spec.js +238 -0
- package/cjs/src/embed/events.spec.js.map +1 -0
- package/cjs/src/embed/liveboard.d.ts +150 -0
- package/cjs/src/embed/liveboard.d.ts.map +1 -0
- package/cjs/src/embed/liveboard.js +168 -0
- package/cjs/src/embed/liveboard.js.map +1 -0
- package/cjs/src/embed/liveboard.spec.d.ts +2 -0
- package/cjs/src/embed/liveboard.spec.d.ts.map +1 -0
- package/cjs/src/embed/liveboard.spec.js +229 -0
- package/cjs/src/embed/liveboard.spec.js.map +1 -0
- package/cjs/src/embed/pinboard.spec.d.ts +2 -0
- package/cjs/src/embed/pinboard.spec.d.ts.map +1 -0
- package/cjs/src/embed/pinboard.spec.js +148 -0
- package/cjs/src/embed/pinboard.spec.js.map +1 -0
- package/cjs/src/embed/search-bar.d.ts +50 -0
- package/cjs/src/embed/search-bar.d.ts.map +1 -0
- package/cjs/src/embed/search-bar.js +63 -0
- package/cjs/src/embed/search-bar.js.map +1 -0
- package/cjs/src/embed/search.d.ts +129 -0
- package/cjs/src/embed/search.d.ts.map +1 -0
- package/cjs/src/embed/search.js +121 -0
- package/cjs/src/embed/search.js.map +1 -0
- package/cjs/src/embed/search.spec.d.ts +2 -0
- package/cjs/src/embed/search.spec.d.ts.map +1 -0
- package/cjs/src/embed/search.spec.js +238 -0
- package/cjs/src/embed/search.spec.js.map +1 -0
- package/cjs/src/embed/searchEmbed-basic-auth.spec.d.ts +2 -0
- package/cjs/src/embed/searchEmbed-basic-auth.spec.d.ts.map +1 -0
- package/cjs/src/embed/searchEmbed-basic-auth.spec.js +103 -0
- package/cjs/src/embed/searchEmbed-basic-auth.spec.js.map +1 -0
- package/cjs/src/embed/ts-embed.d.ts +323 -0
- package/cjs/src/embed/ts-embed.d.ts.map +1 -0
- package/cjs/src/embed/ts-embed.js +719 -0
- package/cjs/src/embed/ts-embed.js.map +1 -0
- package/cjs/src/embed/ts-embed.spec.d.ts +2 -0
- package/cjs/src/embed/ts-embed.spec.d.ts.map +1 -0
- package/cjs/src/embed/ts-embed.spec.js +771 -0
- package/cjs/src/embed/ts-embed.spec.js.map +1 -0
- package/cjs/src/errors.d.ts +7 -0
- package/cjs/src/errors.d.ts.map +1 -0
- package/cjs/src/errors.js +10 -0
- package/cjs/src/errors.js.map +1 -0
- package/cjs/src/index.d.ts +18 -0
- package/cjs/src/index.d.ts.map +1 -0
- package/cjs/src/index.js +42 -0
- package/cjs/src/index.js.map +1 -0
- package/cjs/src/mixpanel-service.d.ts +29 -0
- package/cjs/src/mixpanel-service.d.ts.map +1 -0
- package/cjs/src/mixpanel-service.js +76 -0
- package/cjs/src/mixpanel-service.js.map +1 -0
- package/cjs/src/mixpanel-service.spec.d.ts +2 -0
- package/cjs/src/mixpanel-service.spec.d.ts.map +1 -0
- package/cjs/src/mixpanel-service.spec.js +63 -0
- package/cjs/src/mixpanel-service.spec.js.map +1 -0
- package/cjs/src/react/all-types-export.d.ts +3 -0
- package/cjs/src/react/all-types-export.d.ts.map +1 -0
- package/cjs/src/react/all-types-export.js +29 -0
- package/cjs/src/react/all-types-export.js.map +1 -0
- package/cjs/src/react/all-types-export.spec.d.ts +2 -0
- package/cjs/src/react/all-types-export.spec.d.ts.map +1 -0
- package/cjs/src/react/all-types-export.spec.js +13 -0
- package/cjs/src/react/all-types-export.spec.js.map +1 -0
- package/cjs/src/react/index.d.ts +95 -0
- package/cjs/src/react/index.d.ts.map +1 -0
- package/cjs/src/react/index.js +121 -0
- package/cjs/src/react/index.js.map +1 -0
- package/cjs/src/react/index.spec.d.ts +3 -0
- package/cjs/src/react/index.spec.d.ts.map +1 -0
- package/cjs/src/react/index.spec.js +138 -0
- package/cjs/src/react/index.spec.js.map +1 -0
- package/cjs/src/react/util.d.ts +19 -0
- package/cjs/src/react/util.d.ts.map +1 -0
- package/cjs/src/react/util.js +25 -0
- package/cjs/src/react/util.js.map +1 -0
- package/cjs/src/test/test-utils.d.ts +48 -0
- package/cjs/src/test/test-utils.d.ts.map +1 -0
- package/cjs/src/test/test-utils.js +108 -0
- package/cjs/src/test/test-utils.js.map +1 -0
- package/cjs/src/types.d.ts +2020 -0
- package/cjs/src/types.d.ts.map +1 -0
- package/cjs/src/types.js +1543 -0
- package/cjs/src/types.js.map +1 -0
- package/cjs/src/utils/answerService.d.ts +10 -0
- package/cjs/src/utils/answerService.d.ts.map +1 -0
- package/cjs/src/utils/answerService.js +61 -0
- package/cjs/src/utils/answerService.js.map +1 -0
- package/cjs/src/utils/answerService.spec.d.ts +2 -0
- package/cjs/src/utils/answerService.spec.d.ts.map +1 -0
- package/cjs/src/utils/answerService.spec.js +31 -0
- package/cjs/src/utils/answerService.spec.js.map +1 -0
- package/cjs/src/utils/authService.d.ts +37 -0
- package/cjs/src/utils/authService.d.ts.map +1 -0
- package/cjs/src/utils/authService.js +106 -0
- package/cjs/src/utils/authService.js.map +1 -0
- package/cjs/src/utils/authService.spec.d.ts +2 -0
- package/cjs/src/utils/authService.spec.d.ts.map +1 -0
- package/cjs/src/utils/authService.spec.js +72 -0
- package/cjs/src/utils/authService.spec.js.map +1 -0
- package/cjs/src/utils/processData.d.ts +16 -0
- package/cjs/src/utils/processData.d.ts.map +1 -0
- package/cjs/src/utils/processData.js +110 -0
- package/cjs/src/utils/processData.js.map +1 -0
- package/cjs/src/utils/processData.spec.d.ts +2 -0
- package/cjs/src/utils/processData.spec.d.ts.map +1 -0
- package/cjs/src/utils/processData.spec.js +142 -0
- package/cjs/src/utils/processData.spec.js.map +1 -0
- package/cjs/src/utils/processTrigger.d.ts +10 -0
- package/cjs/src/utils/processTrigger.d.ts.map +1 -0
- package/cjs/src/utils/processTrigger.js +63 -0
- package/cjs/src/utils/processTrigger.js.map +1 -0
- package/cjs/src/utils/processTrigger.spec.d.ts +2 -0
- package/cjs/src/utils/processTrigger.spec.d.ts.map +1 -0
- package/cjs/src/utils/processTrigger.spec.js +58 -0
- package/cjs/src/utils/processTrigger.spec.js.map +1 -0
- package/cjs/src/utils.d.ts +68 -0
- package/cjs/src/utils.d.ts.map +1 -0
- package/cjs/src/utils.js +196 -0
- package/cjs/src/utils.js.map +1 -0
- package/cjs/src/utils.spec.d.ts +5 -0
- package/cjs/src/utils.spec.d.ts.map +1 -0
- package/cjs/src/utils.spec.js +98 -0
- package/cjs/src/utils.spec.js.map +1 -0
- package/dist/src/auth.d.ts +54 -5
- package/dist/src/auth.d.ts.map +1 -1
- package/dist/src/auth.spec.d.ts +3 -0
- package/dist/src/auth.spec.d.ts.map +1 -1
- package/dist/src/config.d.ts +1 -0
- package/dist/src/config.d.ts.map +1 -1
- package/dist/src/embed/app.d.ts +35 -6
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/base.d.ts +23 -10
- package/dist/src/embed/base.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +28 -6
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/search-bar.d.ts +3 -0
- package/dist/src/embed/search-bar.d.ts.map +1 -1
- package/dist/src/embed/search.d.ts +9 -1
- package/dist/src/embed/search.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts +65 -7
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/errors.d.ts.map +1 -1
- package/dist/src/index.d.ts +2 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/mixpanel-service.d.ts +8 -0
- package/dist/src/mixpanel-service.d.ts.map +1 -1
- package/dist/src/react/all-types-export.d.ts +3 -0
- package/dist/src/react/all-types-export.d.ts.map +1 -0
- package/dist/src/react/all-types-export.spec.d.ts +2 -0
- package/dist/src/react/all-types-export.spec.d.ts.map +1 -0
- package/dist/src/react/index.d.ts +72 -0
- package/dist/src/react/index.d.ts.map +1 -1
- package/dist/src/react/util.d.ts +4 -0
- package/dist/src/react/util.d.ts.map +1 -1
- package/dist/src/test/test-utils.d.ts +11 -2
- package/dist/src/test/test-utils.d.ts.map +1 -1
- package/dist/src/types.d.ts +540 -98
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/answerService.d.ts +7 -0
- package/dist/src/utils/answerService.d.ts.map +1 -1
- package/dist/src/utils/authService.d.ts +30 -0
- package/dist/src/utils/authService.d.ts.map +1 -1
- package/dist/src/utils/processData.d.ts +12 -0
- package/dist/src/utils/processData.d.ts.map +1 -1
- package/dist/src/utils/processTrigger.d.ts +7 -0
- package/dist/src/utils/processTrigger.d.ts.map +1 -1
- package/dist/src/utils.d.ts +12 -0
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +28024 -0
- package/dist/tsembed-react.js +27966 -0
- package/dist/tsembed.es.js +18163 -303
- package/dist/tsembed.js +18120 -308
- package/dist/visual-embed-sdk-react-full.d.ts +3092 -0
- package/dist/visual-embed-sdk-react.d.ts +2781 -0
- package/dist/visual-embed-sdk.d.ts +2944 -0
- package/lib/package.json +15 -14
- package/lib/src/auth.d.ts +54 -5
- package/lib/src/auth.d.ts.map +1 -1
- package/lib/src/auth.js +91 -31
- package/lib/src/auth.js.map +1 -1
- package/lib/src/auth.spec.d.ts +3 -0
- package/lib/src/auth.spec.d.ts.map +1 -1
- package/lib/src/auth.spec.js +37 -6
- package/lib/src/auth.spec.js.map +1 -1
- package/lib/src/config.d.ts +1 -0
- package/lib/src/config.d.ts.map +1 -1
- package/lib/src/config.js +5 -3
- package/lib/src/config.js.map +1 -1
- package/lib/src/config.spec.js.map +1 -1
- package/lib/src/embed/app.d.ts +35 -6
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +55 -16
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +41 -12
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/base.d.ts +23 -10
- package/lib/src/embed/base.d.ts.map +1 -1
- package/lib/src/embed/base.js +34 -16
- package/lib/src/embed/base.js.map +1 -1
- package/lib/src/embed/base.spec.js.map +1 -1
- package/lib/src/embed/embed.spec.js +1 -1
- package/lib/src/embed/embed.spec.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +28 -6
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +60 -38
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +37 -30
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/embed/pinboard.spec.js +14 -26
- package/lib/src/embed/pinboard.spec.js.map +1 -1
- package/lib/src/embed/search-bar.d.ts +3 -0
- package/lib/src/embed/search-bar.d.ts.map +1 -1
- package/lib/src/embed/search-bar.js +5 -6
- package/lib/src/embed/search-bar.js.map +1 -1
- package/lib/src/embed/search.d.ts +9 -1
- package/lib/src/embed/search.d.ts.map +1 -1
- package/lib/src/embed/search.js +18 -14
- package/lib/src/embed/search.js.map +1 -1
- package/lib/src/embed/search.spec.js +16 -19
- package/lib/src/embed/search.spec.js.map +1 -1
- package/lib/src/embed/searchEmbed-basic-auth.spec.js +4 -0
- package/lib/src/embed/searchEmbed-basic-auth.spec.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts +65 -7
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +154 -77
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +46 -24
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/errors.d.ts.map +1 -1
- package/lib/src/errors.js.map +1 -1
- package/lib/src/index.d.ts +2 -2
- package/lib/src/index.d.ts.map +1 -1
- package/lib/src/index.js +4 -4
- package/lib/src/index.js.map +1 -1
- package/lib/src/mixpanel-service.d.ts +8 -0
- package/lib/src/mixpanel-service.d.ts.map +1 -1
- package/lib/src/mixpanel-service.js +13 -1
- package/lib/src/mixpanel-service.js.map +1 -1
- package/lib/src/mixpanel-service.spec.js.map +1 -1
- package/lib/src/react/all-types-export.d.ts +3 -0
- package/lib/src/react/all-types-export.d.ts.map +1 -0
- package/lib/src/react/all-types-export.js +5 -0
- package/lib/src/react/all-types-export.js.map +1 -0
- package/lib/src/react/all-types-export.spec.d.ts +2 -0
- package/lib/src/react/all-types-export.spec.d.ts.map +1 -0
- package/lib/src/react/all-types-export.spec.js +10 -0
- package/lib/src/react/all-types-export.spec.js.map +1 -0
- package/lib/src/react/index.d.ts +72 -0
- package/lib/src/react/index.d.ts.map +1 -1
- package/lib/src/react/index.js +79 -7
- package/lib/src/react/index.js.map +1 -1
- package/lib/src/react/index.spec.js +27 -6
- package/lib/src/react/index.spec.js.map +1 -1
- package/lib/src/react/util.d.ts +4 -0
- package/lib/src/react/util.d.ts.map +1 -1
- package/lib/src/react/util.js +4 -0
- package/lib/src/react/util.js.map +1 -1
- package/lib/src/test/test-utils.d.ts +11 -2
- package/lib/src/test/test-utils.d.ts.map +1 -1
- package/lib/src/test/test-utils.js +36 -25
- package/lib/src/test/test-utils.js.map +1 -1
- package/lib/src/types.d.ts +540 -98
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +415 -70
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/answerService.d.ts +7 -0
- package/lib/src/utils/answerService.d.ts.map +1 -1
- package/lib/src/utils/answerService.js +7 -0
- package/lib/src/utils/answerService.js.map +1 -1
- package/lib/src/utils/answerService.spec.js.map +1 -1
- package/lib/src/utils/authService.d.ts +30 -0
- package/lib/src/utils/authService.d.ts.map +1 -1
- package/lib/src/utils/authService.js +39 -2
- package/lib/src/utils/authService.js.map +1 -1
- package/lib/src/utils/authService.spec.js.map +1 -1
- package/lib/src/utils/processData.d.ts +12 -0
- package/lib/src/utils/processData.d.ts.map +1 -1
- package/lib/src/utils/processData.js +33 -5
- package/lib/src/utils/processData.js.map +1 -1
- package/lib/src/utils/processData.spec.js.map +1 -1
- package/lib/src/utils/processTrigger.d.ts +7 -0
- package/lib/src/utils/processTrigger.d.ts.map +1 -1
- package/lib/src/utils/processTrigger.js +17 -3
- package/lib/src/utils/processTrigger.js.map +1 -1
- package/lib/src/utils/processTrigger.spec.js.map +1 -1
- package/lib/src/utils.d.ts +12 -0
- package/lib/src/utils.d.ts.map +1 -1
- package/lib/src/utils.js +24 -19
- package/lib/src/utils.js.map +1 -1
- package/lib/src/utils.spec.js.map +1 -1
- package/package.json +15 -14
- package/src/auth.spec.ts +83 -133
- package/src/auth.ts +148 -115
- package/src/config.spec.ts +2 -4
- package/src/config.ts +5 -3
- package/src/embed/app.spec.ts +57 -14
- package/src/embed/app.ts +91 -36
- package/src/embed/base.spec.ts +3 -9
- package/src/embed/base.ts +55 -55
- package/src/embed/embed.spec.ts +5 -6
- package/src/embed/liveboard.spec.ts +56 -37
- package/src/embed/liveboard.ts +77 -65
- package/src/embed/pinboard.spec.ts +26 -29
- package/src/embed/search-bar.tsx +10 -8
- package/src/embed/search.spec.ts +31 -21
- package/src/embed/search.ts +26 -20
- package/src/embed/searchEmbed-basic-auth.spec.ts +22 -28
- package/src/embed/ts-embed.spec.ts +99 -144
- package/src/embed/ts-embed.ts +188 -162
- package/src/errors.ts +3 -6
- package/src/index.ts +6 -10
- package/src/mixpanel-service.spec.ts +1 -3
- package/src/mixpanel-service.ts +13 -1
- package/src/react/index.spec.tsx +66 -13
- package/src/react/index.tsx +111 -62
- package/src/react/util.ts +8 -4
- package/src/test/test-utils.ts +43 -39
- package/src/types.ts +537 -98
- package/src/utils/answerService.spec.ts +3 -5
- package/src/utils/answerService.ts +21 -17
- package/src/utils/authService.spec.ts +26 -41
- package/src/utils/authService.ts +47 -21
- package/src/utils/processData.spec.ts +26 -59
- package/src/utils/processData.ts +36 -14
- package/src/utils/processTrigger.spec.ts +1 -6
- package/src/utils/processTrigger.ts +18 -9
- package/src/utils.spec.ts +8 -12
- package/src/utils.ts +25 -26
- package/lib/src/visual-embed-sdk.d.ts +0 -2368
package/lib/src/types.d.ts
CHANGED
|
@@ -9,34 +9,64 @@
|
|
|
9
9
|
/**
|
|
10
10
|
* The authentication mechanism for allowing access to the
|
|
11
11
|
* the embedded app
|
|
12
|
+
*
|
|
12
13
|
* @group Authentication / Init
|
|
13
14
|
*/
|
|
14
15
|
export declare enum AuthType {
|
|
15
16
|
/**
|
|
16
|
-
* No authentication on the SDK. Passthrough to the embedded App. Alias for
|
|
17
|
+
* No authentication on the SDK. Passthrough to the embedded App. Alias for
|
|
18
|
+
* `Passthrough`.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```js
|
|
22
|
+
* init({
|
|
23
|
+
* // ...
|
|
24
|
+
* authType: AuthType.None,
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
17
27
|
*/
|
|
18
28
|
None = "None",
|
|
19
29
|
/**
|
|
20
|
-
* Passthrough SSO to the embedded App within the iframe. Requires least
|
|
21
|
-
* be supported by all IDPs. This will behave like `None`
|
|
30
|
+
* Passthrough SSO to the embedded App within the iframe. Requires least
|
|
31
|
+
* configuration, but may not be supported by all IDPs. This will behave like `None`
|
|
32
|
+
* if SSO is not configured on ThoughtSpot.
|
|
33
|
+
*
|
|
22
34
|
* @version: SDK: 1.15.0 | ThouhgtSpot: 8.8.0.cl
|
|
23
35
|
*/
|
|
24
36
|
EmbeddedSSO = "EmbeddedSSO",
|
|
25
37
|
/**
|
|
26
38
|
* SSO using SAML
|
|
39
|
+
*
|
|
27
40
|
* @deprecated Use {@link SAMLRedirect} instead
|
|
28
41
|
* @hidden
|
|
29
42
|
*/
|
|
30
43
|
SSO = "SSO_SAML",
|
|
31
44
|
/**
|
|
32
45
|
* SSO using SAML
|
|
46
|
+
*
|
|
33
47
|
* @deprecated Use {@link SAMLRedirect} instead
|
|
34
48
|
* @hidden
|
|
35
49
|
*/
|
|
36
50
|
SAML = "SSO_SAML",
|
|
37
51
|
/**
|
|
38
52
|
* SSO using SAML
|
|
39
|
-
* Will make the host application redirect to the SAML Idp.
|
|
53
|
+
* Will make the host application redirect to the SAML Idp. Use this
|
|
54
|
+
* when the idp does not allow itself to be embedded.
|
|
55
|
+
*
|
|
56
|
+
* This redirects the host application to the SAML Idp. The host application
|
|
57
|
+
* will be redirected back to the ThoughtSpot app after authentication.
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```js
|
|
61
|
+
* init({
|
|
62
|
+
* // ...
|
|
63
|
+
* authType: AuthType.SAMLRedirect,
|
|
64
|
+
* });
|
|
65
|
+
* ```
|
|
66
|
+
*
|
|
67
|
+
* This opens the SAML Idp in a popup window. The popup is triggered
|
|
68
|
+
* when the user clicks the trigger button. The popup window will be
|
|
69
|
+
* closed automatically after authentication.
|
|
40
70
|
* @example
|
|
41
71
|
* ```js
|
|
42
72
|
* init({
|
|
@@ -44,12 +74,29 @@ export declare enum AuthType {
|
|
|
44
74
|
* authType: AuthType.SAMLRedirect,
|
|
45
75
|
* authTriggerText: 'Login with SAML',
|
|
46
76
|
* authTriggerContainer: '#embed-container',
|
|
47
|
-
*
|
|
77
|
+
* inPopup: true,
|
|
78
|
+
* });
|
|
79
|
+
* ```
|
|
80
|
+
*
|
|
81
|
+
* Can also use event to trigger the popup flow. Works the same
|
|
82
|
+
* as above example.
|
|
83
|
+
* @example
|
|
84
|
+
* ```js
|
|
85
|
+
* const authEE = init({
|
|
86
|
+
* // ...
|
|
87
|
+
* authType: AuthType.SAMLRedirect,
|
|
88
|
+
* inPopup: true,
|
|
89
|
+
* });
|
|
90
|
+
*
|
|
91
|
+
* someButtonOnYourPage.addEventListener('click', () => {
|
|
92
|
+
* authEE.emit(AuthEvent.TRIGGER_SSO_POPUP);
|
|
93
|
+
* });
|
|
48
94
|
* ```
|
|
49
95
|
*/
|
|
50
96
|
SAMLRedirect = "SSO_SAML",
|
|
51
97
|
/**
|
|
52
98
|
* SSO using OIDC
|
|
99
|
+
*
|
|
53
100
|
* @hidden
|
|
54
101
|
* @deprecated Use {@link OIDCRedirect} instead
|
|
55
102
|
*/
|
|
@@ -57,18 +104,20 @@ export declare enum AuthType {
|
|
|
57
104
|
/**
|
|
58
105
|
* SSO using OIDC
|
|
59
106
|
* Will make the host application redirect to the OIDC Idp.
|
|
107
|
+
* See code samples in {@link SAMLRedirect}.
|
|
60
108
|
*/
|
|
61
109
|
OIDCRedirect = "SSO_OIDC",
|
|
62
110
|
/**
|
|
63
111
|
* Trusted authentication server
|
|
112
|
+
*
|
|
64
113
|
* @hidden
|
|
65
114
|
* @deprecated Use {@link TrustedAuth} instead
|
|
66
115
|
*/
|
|
67
116
|
AuthServer = "AuthServer",
|
|
68
117
|
/**
|
|
69
118
|
* Trusted authentication server, Use your own authentication server
|
|
70
|
-
* which returns a bearer token, generated using the secret_key obtained
|
|
71
|
-
* ThoughtSpot.
|
|
119
|
+
* which returns a bearer token, generated using the secret_key obtained
|
|
120
|
+
* from ThoughtSpot.
|
|
72
121
|
*
|
|
73
122
|
* @example
|
|
74
123
|
* ```js
|
|
@@ -84,10 +133,24 @@ export declare enum AuthType {
|
|
|
84
133
|
*/
|
|
85
134
|
TrustedAuthToken = "AuthServer",
|
|
86
135
|
/**
|
|
87
|
-
* Trusted authentication server Cookieless, Use you own authentication
|
|
88
|
-
* which returns a bearer token, generated using the secret_key
|
|
89
|
-
* ThoughtSpot. This uses a cookieless authentication
|
|
90
|
-
* to by pass third-party cookie-blocking restriction
|
|
136
|
+
* Trusted authentication server Cookieless, Use you own authentication
|
|
137
|
+
* server which returns a bearer token, generated using the secret_key
|
|
138
|
+
* obtained from ThoughtSpot. This uses a cookieless authentication
|
|
139
|
+
* approach, recommended to by pass third-party cookie-blocking restriction
|
|
140
|
+
* implemented by some browsers
|
|
141
|
+
*
|
|
142
|
+
* @example
|
|
143
|
+
* ```js
|
|
144
|
+
* init({
|
|
145
|
+
* // ...
|
|
146
|
+
* authType: AuthType.TrustedAuthTokenCookieless,
|
|
147
|
+
* getAuthToken: () => {
|
|
148
|
+
* return fetch('https://my-backend.app/ts-token')
|
|
149
|
+
* .then((response) => response.json())
|
|
150
|
+
* .then((data) => data.token);
|
|
151
|
+
* }
|
|
152
|
+
* ```
|
|
153
|
+
* @version SDK: 1.22.0| ThouhgtSpot: 9.3.0.cl, 9.5.1-sw
|
|
91
154
|
*/
|
|
92
155
|
TrustedAuthTokenCookieless = "AuthServerCookieless",
|
|
93
156
|
/**
|
|
@@ -190,8 +253,8 @@ export interface EmbedConfig {
|
|
|
190
253
|
*/
|
|
191
254
|
getAuthToken?: () => Promise<string>;
|
|
192
255
|
/**
|
|
193
|
-
* [AuthServer / Basic] The user name of the ThoughtSpot user. This
|
|
194
|
-
* required for trusted authentication.
|
|
256
|
+
* [AuthServer / Basic] The user name of the ThoughtSpot user. This
|
|
257
|
+
* attribute is required for trusted authentication.
|
|
195
258
|
*/
|
|
196
259
|
username?: string;
|
|
197
260
|
/**
|
|
@@ -202,16 +265,20 @@ export interface EmbedConfig {
|
|
|
202
265
|
*/
|
|
203
266
|
password?: string;
|
|
204
267
|
/**
|
|
205
|
-
* [SSO] For SSO Authentication, if `noRedirect` is set to true, it will
|
|
206
|
-
* flow in a popup, instead of redirecting browser in
|
|
268
|
+
* [SSO] For SSO Authentication, if `noRedirect` is set to true, it will
|
|
269
|
+
* open the SAML auth flow in a popup, instead of redirecting browser in
|
|
270
|
+
* place.
|
|
207
271
|
*
|
|
208
272
|
* @default false
|
|
209
273
|
* @deprecated
|
|
210
274
|
*/
|
|
211
275
|
noRedirect?: boolean;
|
|
212
276
|
/**
|
|
213
|
-
* [SSO] For SSO Authentication, if `inPopup` is set to true, it will open
|
|
214
|
-
* flow in a popup, instead of redirecting browser in place.
|
|
277
|
+
* [SSO] For SSO Authentication, if `inPopup` is set to true, it will open
|
|
278
|
+
* the SAML auth flow in a popup, instead of redirecting browser in place.
|
|
279
|
+
*
|
|
280
|
+
* Need to use this with authTriggerContainer. Or manually trigger
|
|
281
|
+
* the AuthEvent.TRIGGER_SSO_POPUP event on a user interaction.
|
|
215
282
|
*
|
|
216
283
|
* @default false
|
|
217
284
|
* @version SDK: 1.18.0
|
|
@@ -223,6 +290,7 @@ export interface EmbedConfig {
|
|
|
223
290
|
* terminated.
|
|
224
291
|
*
|
|
225
292
|
* Eg: "/dashboard", "#/foo" [Do not include the host]
|
|
293
|
+
*
|
|
226
294
|
* @version SDK: 1.10.2 | 8.2.0.cl, 8.4.1-sw
|
|
227
295
|
*/
|
|
228
296
|
redirectPath?: string;
|
|
@@ -232,43 +300,52 @@ export interface EmbedConfig {
|
|
|
232
300
|
* Should we encode URL Query Params using base64 encoding which thoughtspot
|
|
233
301
|
* will generate for embedding. This provides additional security to
|
|
234
302
|
* thoughtspot clusters against Cross site scripting attacks.
|
|
303
|
+
*
|
|
235
304
|
* @default false
|
|
236
305
|
*/
|
|
237
306
|
shouldEncodeUrlQueryParams?: boolean;
|
|
238
307
|
/**
|
|
239
|
-
* Suppress cookie access alert when third party cookies are blocked by the
|
|
240
|
-
* Third party cookie blocking is the default behaviour on
|
|
241
|
-
* If you set this to `true`, you are
|
|
308
|
+
* Suppress cookie access alert when third party cookies are blocked by the
|
|
309
|
+
* user's browser. Third party cookie blocking is the default behaviour on
|
|
310
|
+
* Safari and opt-in for Firefox/Chrome. If you set this to `true`, you are
|
|
311
|
+
* encouraged to handle `noCookieAccess` event, to show your own treatment
|
|
242
312
|
* in this case.
|
|
313
|
+
*
|
|
243
314
|
* @default false
|
|
244
315
|
*/
|
|
245
316
|
suppressNoCookieAccessAlert?: boolean;
|
|
246
317
|
/**
|
|
247
318
|
* Re-login when session expires with the previous login options
|
|
319
|
+
*
|
|
248
320
|
* @default false
|
|
249
321
|
*/
|
|
250
322
|
autoLogin?: boolean;
|
|
251
323
|
/**
|
|
252
324
|
* Disable redirection to the login page when the embedded session expires
|
|
253
|
-
* This flag is typically used alongside the combination of auth modes such as {@link
|
|
325
|
+
* This flag is typically used alongside the combination of auth modes such as {@link
|
|
326
|
+
* AuthType.AuthServer} and auto login behavior {@link EmbedConfig.autoLogin}
|
|
327
|
+
*
|
|
254
328
|
* @version SDK: 1.9.3 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
|
|
255
329
|
* @default false
|
|
256
330
|
*/
|
|
257
331
|
disableLoginRedirect?: boolean;
|
|
258
332
|
/**
|
|
259
333
|
* This message is displayed on the embed view when the login fails.
|
|
334
|
+
*
|
|
260
335
|
* @version SDK: 1.10.1 | ThoughtSpot: 8.2.0.cl, 8.4.1-sw
|
|
261
336
|
*/
|
|
262
337
|
loginFailedMessage?: string;
|
|
263
338
|
/**
|
|
264
339
|
* Calls the prefetch method internally when set to true
|
|
340
|
+
*
|
|
265
341
|
* @default false
|
|
266
342
|
*/
|
|
267
343
|
callPrefetch?: boolean;
|
|
268
344
|
/**
|
|
269
345
|
* When there are multiple embeds, queue the render of embed to start
|
|
270
|
-
* after the previous embed's render is complete. This helps in the load
|
|
271
|
-
* by decreasing the load on the browser.
|
|
346
|
+
* after the previous embed's render is complete. This helps in the load
|
|
347
|
+
* performance by decreasing the load on the browser.
|
|
348
|
+
*
|
|
272
349
|
* @Version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
|
|
273
350
|
* @default false
|
|
274
351
|
*/
|
|
@@ -276,15 +353,19 @@ export interface EmbedConfig {
|
|
|
276
353
|
/**
|
|
277
354
|
* Dynamic CSS Url to be injected in the loaded application.
|
|
278
355
|
* You would also need to set `style-src` in the CSP settings.
|
|
356
|
+
*
|
|
279
357
|
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1-sw
|
|
280
358
|
* @default ''
|
|
281
359
|
*/
|
|
282
360
|
customCssUrl?: string;
|
|
283
361
|
/**
|
|
284
|
-
* [AuthServer|Basic] Detect if 3rd party cookies are enabled by doing an
|
|
285
|
-
* and should be avoided. Listen to the
|
|
362
|
+
* [AuthServer|Basic] Detect if 3rd party cookies are enabled by doing an
|
|
363
|
+
* additional call. This is slower and should be avoided. Listen to the
|
|
364
|
+
* NO_COOKIE_ACCESS event to handle the situation.
|
|
365
|
+
*
|
|
366
|
+
* This is slightly slower than letting the browser handle the cookie check, as it
|
|
367
|
+
* involves an extra network call.
|
|
286
368
|
*
|
|
287
|
-
* This is slightly slower than letting the browser handle the cookie check, as it involves an extra network call.
|
|
288
369
|
* @version SDK: 1.10.4 | ThoughtSpot: 8.2.0.cl, 8.4.1-sw
|
|
289
370
|
*/
|
|
290
371
|
detectCookieAccessSlow?: boolean;
|
|
@@ -301,16 +382,32 @@ export interface EmbedConfig {
|
|
|
301
382
|
*/
|
|
302
383
|
customizations?: CustomisationsInterface;
|
|
303
384
|
/**
|
|
304
|
-
* For
|
|
385
|
+
* For inPopup SAMLRedirect or OIDCRedirect Auth, we need a button which the user
|
|
305
386
|
* click to trigger the flow. This is the containing element
|
|
306
387
|
* for that button.
|
|
307
388
|
*
|
|
389
|
+
* @example
|
|
390
|
+
* ```js
|
|
391
|
+
* init({
|
|
392
|
+
* authType: AuthType.SAMLRedirect,
|
|
393
|
+
* inPopup: true,
|
|
394
|
+
* authTriggerContainer: '#auth-trigger-container'
|
|
395
|
+
* })
|
|
396
|
+
* ```
|
|
308
397
|
* @version SDK: 1.17.0 | ThoughtSpot: *
|
|
309
398
|
*/
|
|
310
399
|
authTriggerContainer?: string | HTMLElement;
|
|
400
|
+
/**
|
|
401
|
+
* Specify that we want to use the AuthEvent.TRIGGER_SSO_POPUP event to trigger
|
|
402
|
+
* SAML popup. This is useful when you want to trigger the popup on a custom user
|
|
403
|
+
* action.
|
|
404
|
+
*
|
|
405
|
+
*/
|
|
406
|
+
useEventForSAMLPopup?: boolean;
|
|
311
407
|
/**
|
|
312
408
|
* Text to show in the button which triggers the popup auth flow.
|
|
313
409
|
* Default: "Authorize".
|
|
410
|
+
*
|
|
314
411
|
* @version SDK: 1.17.0 | ThoughtSpot: *
|
|
315
412
|
*/
|
|
316
413
|
authTriggerText?: string;
|
|
@@ -352,7 +449,8 @@ export interface ViewConfig {
|
|
|
352
449
|
*/
|
|
353
450
|
layoutConfig?: LayoutConfig;
|
|
354
451
|
/**
|
|
355
|
-
* The <b>width</b> and <b>height</b> dimensions to render an embedded
|
|
452
|
+
* The <b>width</b> and <b>height</b> dimensions to render an embedded
|
|
453
|
+
* object inside your app. Specify the values in pixels or percentage.
|
|
356
454
|
*/
|
|
357
455
|
frameParams?: FrameParams;
|
|
358
456
|
/**
|
|
@@ -365,7 +463,17 @@ export interface ViewConfig {
|
|
|
365
463
|
styleSheet__unstable?: string;
|
|
366
464
|
/**
|
|
367
465
|
* The list of actions to disable from the primary menu, more menu
|
|
368
|
-
* (...), and the contextual menu.
|
|
466
|
+
* (...), and the contextual menu. These actions will be disabled
|
|
467
|
+
* for the user.
|
|
468
|
+
* Use this to disable actions.
|
|
469
|
+
*
|
|
470
|
+
* @example
|
|
471
|
+
* ```js
|
|
472
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
473
|
+
* ... // other liveboard view config
|
|
474
|
+
* disabledActions: [Action.Download, Action.Save]
|
|
475
|
+
* });
|
|
476
|
+
* ```
|
|
369
477
|
*/
|
|
370
478
|
disabledActions?: Action[];
|
|
371
479
|
/**
|
|
@@ -373,18 +481,35 @@ export interface ViewConfig {
|
|
|
373
481
|
*/
|
|
374
482
|
disabledActionReason?: string;
|
|
375
483
|
/**
|
|
376
|
-
* The list of actions to hide from the
|
|
377
|
-
*
|
|
484
|
+
* The list of actions to hide from the embedded.
|
|
485
|
+
* This actions will be hidden from the user.
|
|
486
|
+
* Use this to hide an action.
|
|
487
|
+
*
|
|
488
|
+
* @example
|
|
489
|
+
* ```js
|
|
490
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
491
|
+
* ... // other liveboard view config
|
|
492
|
+
* hiddenActions: [Action.Download, Action.Export]
|
|
493
|
+
* });
|
|
494
|
+
* ```
|
|
495
|
+
* @important
|
|
378
496
|
*/
|
|
379
497
|
hiddenActions?: Action[];
|
|
380
498
|
/**
|
|
381
499
|
* The list of actions to display from the primary menu, more menu
|
|
382
|
-
* (...), and the contextual menu.
|
|
500
|
+
* (...), and the contextual menu. These will be only actions that
|
|
501
|
+
* are visible to the user.
|
|
502
|
+
* Use this to hide all actions except the ones you want to show.
|
|
503
|
+
*
|
|
504
|
+
* Use either this or hiddenActions.
|
|
505
|
+
*
|
|
383
506
|
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1-sw
|
|
507
|
+
* @important
|
|
384
508
|
*/
|
|
385
509
|
visibleActions?: Action[];
|
|
386
510
|
/**
|
|
387
511
|
* Show alert messages and toast messages in the embedded view.
|
|
512
|
+
*
|
|
388
513
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
|
|
389
514
|
*/
|
|
390
515
|
showAlerts?: boolean;
|
|
@@ -395,6 +520,7 @@ export interface ViewConfig {
|
|
|
395
520
|
runtimeFilters?: RuntimeFilter[];
|
|
396
521
|
/**
|
|
397
522
|
* The locale/language to use for the embedded view.
|
|
523
|
+
*
|
|
398
524
|
* @version SDK: 1.9.4 | ThoughtSpot 8.1.0.cl, 8.4.1-sw
|
|
399
525
|
*/
|
|
400
526
|
locale?: string;
|
|
@@ -405,6 +531,7 @@ export interface ViewConfig {
|
|
|
405
531
|
* Warning: This option is for advanced use only and is used internally
|
|
406
532
|
* to control embed behavior in non-regular ways. We do not publish the
|
|
407
533
|
* list of supported keys and values associated with each.
|
|
534
|
+
*
|
|
408
535
|
* @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
|
|
409
536
|
*/
|
|
410
537
|
additionalFlags?: {
|
|
@@ -413,33 +540,49 @@ export interface ViewConfig {
|
|
|
413
540
|
/**
|
|
414
541
|
* Dynamic CSSUrl and customCSS to be injected in the loaded application.
|
|
415
542
|
* You would also need to set `style-src` in the CSP settings.
|
|
543
|
+
*
|
|
416
544
|
* @version SDK: 1.17.2 | ThoughtSpot: 8.4.1-sw, 8.4.0.cl
|
|
417
545
|
* @default ''
|
|
418
546
|
*/
|
|
419
547
|
customizations?: CustomisationsInterface;
|
|
420
548
|
/**
|
|
421
|
-
* Insert as a sibling of the target container, instead of appending to a
|
|
549
|
+
* Insert as a sibling of the target container, instead of appending to a
|
|
550
|
+
* child inside it.
|
|
422
551
|
*/
|
|
423
552
|
insertAsSibling?: boolean;
|
|
424
553
|
/**
|
|
425
554
|
* flag to set ContextMenu Trigger to either left or right click.
|
|
555
|
+
*
|
|
426
556
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
427
557
|
*/
|
|
428
558
|
contextMenuTrigger?: ContextMenuTriggerOptions;
|
|
429
559
|
/**
|
|
430
560
|
* flag to override openNew tab context menu link
|
|
561
|
+
*
|
|
431
562
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
432
563
|
*/
|
|
433
564
|
linkOverride?: boolean;
|
|
434
565
|
/**
|
|
435
566
|
* flag to enable insert into slides action
|
|
567
|
+
*
|
|
436
568
|
* @hidden
|
|
437
569
|
* @private
|
|
438
570
|
*/
|
|
439
571
|
insertInToSlide?: boolean;
|
|
572
|
+
/**
|
|
573
|
+
* Use a pre-rendered iframe from a pool of pre-rendered iframes
|
|
574
|
+
* if available and matches the configuration.
|
|
575
|
+
*
|
|
576
|
+
* @version SDK: 1.22.0
|
|
577
|
+
* @hidden
|
|
578
|
+
*
|
|
579
|
+
* See [docs]() on how to create a prerender pool.
|
|
580
|
+
*/
|
|
581
|
+
usePrerenderedIfAvailable?: boolean;
|
|
440
582
|
}
|
|
441
583
|
/**
|
|
442
584
|
* MessagePayload: Embed event payload: message type, data and status (start/end)
|
|
585
|
+
*
|
|
443
586
|
* @group Events
|
|
444
587
|
*/
|
|
445
588
|
export type MessagePayload = {
|
|
@@ -448,21 +591,37 @@ export type MessagePayload = {
|
|
|
448
591
|
status?: string;
|
|
449
592
|
};
|
|
450
593
|
/**
|
|
451
|
-
* MessageOptions: By Providing options, getting specific event start / end based on
|
|
594
|
+
* MessageOptions: By Providing options, getting specific event start / end based on
|
|
595
|
+
* option
|
|
596
|
+
*
|
|
452
597
|
* @group Events
|
|
453
598
|
*/
|
|
454
599
|
export type MessageOptions = {
|
|
600
|
+
/**
|
|
601
|
+
* A boolean value indicating that start status events of this type
|
|
602
|
+
* will be dispatched
|
|
603
|
+
*/
|
|
455
604
|
start?: boolean;
|
|
456
605
|
};
|
|
457
606
|
/**
|
|
458
607
|
* MessageCallback: Embed event message callback
|
|
608
|
+
*
|
|
459
609
|
* @group Events
|
|
460
610
|
*/
|
|
461
|
-
export type MessageCallback = (payload: MessagePayload,
|
|
611
|
+
export type MessageCallback = (payload: MessagePayload,
|
|
612
|
+
/**
|
|
613
|
+
* responder: Message callback function triggered when embed event
|
|
614
|
+
* initiated
|
|
615
|
+
*/
|
|
616
|
+
responder?: (data: any) => void) => void;
|
|
462
617
|
/**
|
|
463
618
|
* MessageCallbackObj: contains message options & callback function
|
|
464
619
|
*/
|
|
465
620
|
export type MessageCallbackObj = {
|
|
621
|
+
/**
|
|
622
|
+
* options: It contains start, A boolean value indicating that start
|
|
623
|
+
* status events of this type will be dispatched
|
|
624
|
+
*/
|
|
466
625
|
options: MessageOptions;
|
|
467
626
|
callback: MessageCallback;
|
|
468
627
|
};
|
|
@@ -546,7 +705,8 @@ export interface RuntimeFilter {
|
|
|
546
705
|
operator: RuntimeFilterOp;
|
|
547
706
|
/**
|
|
548
707
|
* The list of operands. Some operators like EQ, LE accept
|
|
549
|
-
* a single operand, whereas other operators like BW and IN accept multiple
|
|
708
|
+
* a single operand, whereas other operators like BW and IN accept multiple
|
|
709
|
+
* operands.
|
|
550
710
|
*/
|
|
551
711
|
values: (number | boolean | string)[];
|
|
552
712
|
}
|
|
@@ -555,82 +715,122 @@ export interface RuntimeFilter {
|
|
|
555
715
|
*
|
|
556
716
|
* To add an event listener use the corresponding
|
|
557
717
|
* {@link LiveboardEmbed.on} or {@link AppEmbed.on} or {@link SearchEmbed.on} method.
|
|
718
|
+
*
|
|
719
|
+
* @example
|
|
720
|
+
* ```js
|
|
721
|
+
* import { EmbedEvent } from '@thoughtspot/visual-embed-sdk';
|
|
722
|
+
* // Or
|
|
723
|
+
* // const { EmbedEvent } = window.tsembed;
|
|
724
|
+
*
|
|
725
|
+
* // create the liveboard embed.
|
|
726
|
+
*
|
|
727
|
+
* liveboardEmbed.on(EmbedEvent.Drilldown, (drilldown) => {
|
|
728
|
+
* console.log('Drilldown event', drilldown);
|
|
729
|
+
* }));
|
|
730
|
+
* ```
|
|
558
731
|
* @group Events
|
|
559
732
|
*/
|
|
560
733
|
export declare enum EmbedEvent {
|
|
561
734
|
/**
|
|
562
735
|
* Rendering has initialized.
|
|
563
|
-
*
|
|
736
|
+
*
|
|
737
|
+
* @returns timestamp - The timestamp when the event was generated.
|
|
564
738
|
*/
|
|
565
739
|
Init = "init",
|
|
566
740
|
/**
|
|
567
741
|
* Authentication has either succeeded or failed.
|
|
568
|
-
*
|
|
742
|
+
*
|
|
743
|
+
* @returns isLoggedIn - A Boolean specifying whether authentication was successful.
|
|
569
744
|
*/
|
|
570
745
|
AuthInit = "authInit",
|
|
571
746
|
/**
|
|
572
747
|
* The embed object container has loaded.
|
|
573
|
-
*
|
|
748
|
+
*
|
|
749
|
+
* @returns timestamp - The timestamp when the event was generated.
|
|
574
750
|
*/
|
|
575
751
|
Load = "load",
|
|
576
752
|
/**
|
|
577
753
|
* Data pertaining to answer or Liveboard is received
|
|
754
|
+
*
|
|
578
755
|
* @return data - The answer or Liveboard data
|
|
756
|
+
* @important
|
|
579
757
|
*/
|
|
580
758
|
Data = "data",
|
|
581
759
|
/**
|
|
582
|
-
* Search/answer/Liveboard filters have been applied/updated
|
|
760
|
+
* Search/answer/Liveboard filters have been applied/updated by the user.
|
|
761
|
+
*
|
|
583
762
|
* @hidden
|
|
584
763
|
*/
|
|
585
764
|
FiltersChanged = "filtersChanged",
|
|
586
765
|
/**
|
|
587
|
-
* Search query has been updated
|
|
766
|
+
* Search query has been updated by the user.
|
|
588
767
|
*/
|
|
589
768
|
QueryChanged = "queryChanged",
|
|
590
769
|
/**
|
|
591
770
|
* A drill down operation has been performed.
|
|
592
|
-
*
|
|
593
|
-
* @
|
|
594
|
-
* @
|
|
771
|
+
*
|
|
772
|
+
* @returns additionalFilters - Any additional filters applied
|
|
773
|
+
* @returns drillDownColumns - The columns on which drill down was performed
|
|
774
|
+
* @returns nonFilteredColumns - The columns that were not filtered
|
|
595
775
|
*/
|
|
596
776
|
Drilldown = "drillDown",
|
|
597
777
|
/**
|
|
598
778
|
* One or more data sources have been selected.
|
|
599
|
-
*
|
|
779
|
+
*
|
|
780
|
+
* @returns dataSourceIds - the list of data sources
|
|
600
781
|
*/
|
|
601
782
|
DataSourceSelected = "dataSourceSelected",
|
|
602
783
|
/**
|
|
603
784
|
* One or more data columns have been selected.
|
|
604
|
-
*
|
|
785
|
+
*
|
|
786
|
+
* @returns columnIds - the list of columns
|
|
605
787
|
* @version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1-sw
|
|
606
788
|
*/
|
|
607
789
|
AddRemoveColumns = "addRemoveColumns",
|
|
608
790
|
/**
|
|
609
791
|
* A custom action has been triggered
|
|
610
|
-
*
|
|
611
|
-
* @
|
|
792
|
+
*
|
|
793
|
+
* @returns actionId - The id of the custom action
|
|
794
|
+
* @returns data - The answer or Liveboard data
|
|
612
795
|
*/
|
|
613
796
|
CustomAction = "customAction",
|
|
614
797
|
/**
|
|
615
|
-
*
|
|
798
|
+
* Listen to double clicks on a visualization
|
|
799
|
+
*
|
|
616
800
|
* @return ContextMenuInputPoints - data point that is double clicked
|
|
617
801
|
* @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
|
|
618
802
|
*/
|
|
619
803
|
VizPointDoubleClick = "vizPointDoubleClick",
|
|
620
804
|
/**
|
|
621
|
-
*
|
|
622
|
-
*
|
|
805
|
+
* Listen to clicks on a visualization in a liveboard or Search result.
|
|
806
|
+
*
|
|
807
|
+
* @example
|
|
808
|
+
* ```js
|
|
809
|
+
* embed.on(ThoughtSpotEmbed.Event.VizPointClick, ({data}) => {
|
|
810
|
+
* console.log(
|
|
811
|
+
* data.vizId, // viz id
|
|
812
|
+
* data.clickedPoint.selectedAttributes[0].value,
|
|
813
|
+
* data.clickedPoint.selectedAttributes[0].column.name,
|
|
814
|
+
* data.clickedPoint.selectedMeasures[0].value,
|
|
815
|
+
* data.clickedPoint.selectedMeasures[0].column.name,
|
|
816
|
+
* )
|
|
817
|
+
* });
|
|
818
|
+
* ```
|
|
819
|
+
* @return viz, clickedPoint - metadata about point that is clicked
|
|
623
820
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
|
|
821
|
+
* @important
|
|
624
822
|
*/
|
|
625
823
|
VizPointClick = "vizPointClick",
|
|
626
824
|
/**
|
|
627
825
|
* An error has occurred.
|
|
628
|
-
*
|
|
826
|
+
*
|
|
827
|
+
* @returns error - An error object or message
|
|
629
828
|
*/
|
|
630
829
|
Error = "Error",
|
|
631
830
|
/**
|
|
632
831
|
* The embedded object has sent an alert
|
|
633
|
-
*
|
|
832
|
+
*
|
|
833
|
+
* @returns alert - An alert object
|
|
634
834
|
*/
|
|
635
835
|
Alert = "alert",
|
|
636
836
|
/**
|
|
@@ -639,29 +839,34 @@ export declare enum EmbedEvent {
|
|
|
639
839
|
AuthExpire = "ThoughtspotAuthExpired",
|
|
640
840
|
/**
|
|
641
841
|
* ThoughtSpot failed to validate the auth session.
|
|
842
|
+
*
|
|
642
843
|
* @hidden
|
|
643
844
|
*/
|
|
644
845
|
AuthFailure = "ThoughtspotAuthFailure",
|
|
645
846
|
/**
|
|
646
847
|
* ThoughtSpot failed to validate the auth session.
|
|
848
|
+
*
|
|
647
849
|
* @hidden
|
|
648
850
|
*/
|
|
649
851
|
AuthLogout = "ThoughtspotAuthLogout",
|
|
650
852
|
/**
|
|
651
853
|
* The height of the embedded Liveboard or visualization has been computed.
|
|
652
|
-
*
|
|
854
|
+
*
|
|
855
|
+
* @returns data - The height of the embedded Liveboard or visualization
|
|
653
856
|
* @hidden
|
|
654
857
|
*/
|
|
655
858
|
EmbedHeight = "EMBED_HEIGHT",
|
|
656
859
|
/**
|
|
657
860
|
* The center of visible iframe viewport is calculated.
|
|
658
|
-
*
|
|
861
|
+
*
|
|
862
|
+
* @returns data - The center of the visible Iframe viewport.
|
|
659
863
|
* @hidden
|
|
660
864
|
*/
|
|
661
865
|
EmbedIframeCenter = "EmbedIframeCenter",
|
|
662
866
|
/**
|
|
663
867
|
* Emitted when the "Get Data" button in Search Bar embed
|
|
664
868
|
* is clicked.
|
|
869
|
+
*
|
|
665
870
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.0-sw
|
|
666
871
|
*/
|
|
667
872
|
GetDataClick = "getDataClick",
|
|
@@ -671,6 +876,7 @@ export declare enum EmbedEvent {
|
|
|
671
876
|
RouteChange = "ROUTE_CHANGE",
|
|
672
877
|
/**
|
|
673
878
|
* The v1 event type for Data
|
|
879
|
+
*
|
|
674
880
|
* @hidden
|
|
675
881
|
*/
|
|
676
882
|
V1Data = "exportVizDataToParent",
|
|
@@ -683,17 +889,20 @@ export declare enum EmbedEvent {
|
|
|
683
889
|
NoCookieAccess = "noCookieAccess",
|
|
684
890
|
/**
|
|
685
891
|
* Emitted when SAML is complete
|
|
892
|
+
*
|
|
686
893
|
* @private
|
|
687
894
|
* @hidden
|
|
688
895
|
*/
|
|
689
896
|
SAMLComplete = "samlComplete",
|
|
690
897
|
/**
|
|
691
898
|
* Emitted when any modal is opened in the app
|
|
899
|
+
*
|
|
692
900
|
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1-sw
|
|
693
901
|
*/
|
|
694
902
|
DialogOpen = "dialog-open",
|
|
695
903
|
/**
|
|
696
904
|
* Emitted when any modal is closed in the app
|
|
905
|
+
*
|
|
697
906
|
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1-sw
|
|
698
907
|
*/
|
|
699
908
|
DialogClose = "dialog-close",
|
|
@@ -701,192 +910,256 @@ export declare enum EmbedEvent {
|
|
|
701
910
|
* Emitted when the Liveboard shell loads.
|
|
702
911
|
* You can use this event as a hook to trigger
|
|
703
912
|
* other events on the rendered Liveboard.
|
|
913
|
+
*
|
|
704
914
|
* @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
|
|
705
915
|
*/
|
|
706
916
|
LiveboardRendered = "PinboardRendered",
|
|
707
917
|
/**
|
|
708
918
|
* This can be used to register an event listener which
|
|
709
919
|
* is triggered on all events.
|
|
920
|
+
*
|
|
710
921
|
* @Version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1-sw
|
|
711
922
|
*/
|
|
712
923
|
ALL = "*",
|
|
713
924
|
/**
|
|
714
925
|
* Emitted when answer is saved in the app
|
|
926
|
+
*
|
|
715
927
|
* @Version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
|
|
716
928
|
*/
|
|
717
929
|
Save = "save",
|
|
718
930
|
/**
|
|
719
931
|
* Emitted when the download action is triggered on an answer
|
|
932
|
+
*
|
|
720
933
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
|
|
721
934
|
*/
|
|
722
935
|
Download = "download",
|
|
936
|
+
/**
|
|
937
|
+
* Emitted when the download action is triggered on an answer
|
|
938
|
+
*
|
|
939
|
+
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.0-sw
|
|
940
|
+
*/
|
|
941
|
+
DownloadAsPng = "downloadAsPng",
|
|
723
942
|
/**
|
|
724
943
|
* Emitted when the Download as PDF action is triggered on an answer
|
|
944
|
+
*
|
|
725
945
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
|
|
726
946
|
*/
|
|
727
947
|
DownloadAsPdf = "downloadAsPdf",
|
|
728
948
|
/**
|
|
729
949
|
* Emitted when the Download as CSV action is triggered on an answer
|
|
950
|
+
*
|
|
730
951
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
|
|
731
952
|
*/
|
|
732
953
|
DownloadAsCsv = "downloadAsCsv",
|
|
733
954
|
/**
|
|
734
955
|
* Emitted when the Download as XLSX action is triggered on an answer
|
|
956
|
+
*
|
|
735
957
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
|
|
736
958
|
*/
|
|
737
959
|
DownloadAsXlsx = "downloadAsXlsx",
|
|
738
960
|
/**
|
|
739
961
|
* Emitted when an answer is deleted in the app
|
|
962
|
+
*
|
|
740
963
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
|
|
741
964
|
*/
|
|
742
965
|
AnswerDelete = "answerDelete",
|
|
743
966
|
/**
|
|
744
967
|
* Emitted when an answer is pinned to a Liveboard
|
|
968
|
+
*
|
|
745
969
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
|
|
746
970
|
*/
|
|
747
971
|
Pin = "pin",
|
|
748
972
|
/**
|
|
749
973
|
* Emitted when SpotIQ analysis is triggered
|
|
974
|
+
*
|
|
750
975
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
|
|
751
976
|
*/
|
|
752
977
|
SpotIQAnalyze = "spotIQAnalyze",
|
|
753
978
|
/**
|
|
754
979
|
* Emitted when a user shares an object with another user or group
|
|
980
|
+
*
|
|
755
981
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
|
|
756
982
|
*/
|
|
757
983
|
Share = "share",
|
|
758
984
|
/**
|
|
759
|
-
* Emitted when a user clicks the Include action to include a specific value or data
|
|
985
|
+
* Emitted when a user clicks the Include action to include a specific value or data
|
|
986
|
+
* on a chart or table
|
|
987
|
+
*
|
|
760
988
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
|
|
761
989
|
*/
|
|
762
990
|
DrillInclude = "context-menu-item-include",
|
|
763
991
|
/**
|
|
764
|
-
* Emitted when a user clicks the Exclude action to exclude a specific value or data
|
|
992
|
+
* Emitted when a user clicks the Exclude action to exclude a specific value or data
|
|
993
|
+
* on a chart or table
|
|
994
|
+
*
|
|
765
995
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
|
|
766
996
|
*/
|
|
767
997
|
DrillExclude = "context-menu-item-exclude",
|
|
768
998
|
/**
|
|
769
999
|
* Emitted when copied column value on the app
|
|
1000
|
+
*
|
|
770
1001
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
|
|
771
1002
|
*/
|
|
772
1003
|
CopyToClipboard = "context-menu-item-copy-to-clipboard",
|
|
773
1004
|
/**
|
|
774
1005
|
* Emitted when a user clicks the Update TML action
|
|
1006
|
+
*
|
|
775
1007
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
|
|
776
1008
|
*/
|
|
777
1009
|
UpdateTML = "updateTSL",
|
|
778
1010
|
/**
|
|
779
1011
|
* Emitted when a user clicks the Edit TML action
|
|
1012
|
+
*
|
|
780
1013
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
|
|
781
1014
|
*/
|
|
782
1015
|
EditTML = "editTSL",
|
|
783
1016
|
/**
|
|
784
1017
|
* Emitted when ExportTML trigger in answer on the app
|
|
1018
|
+
*
|
|
785
1019
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
|
|
786
1020
|
*/
|
|
787
1021
|
ExportTML = "exportTSL",
|
|
788
1022
|
/**
|
|
789
1023
|
* Emitted when an answer is saved as a view
|
|
1024
|
+
*
|
|
790
1025
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
|
|
791
1026
|
*/
|
|
792
1027
|
SaveAsView = "saveAsView",
|
|
793
1028
|
/**
|
|
794
1029
|
* Emitted when copy of existing answer on the app
|
|
1030
|
+
*
|
|
795
1031
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
|
|
796
1032
|
*/
|
|
797
1033
|
CopyAEdit = "copyAEdit",
|
|
798
1034
|
/**
|
|
799
1035
|
* Emitted when a user clicks Show underlying data on an answe
|
|
1036
|
+
*
|
|
800
1037
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
|
|
801
1038
|
*/
|
|
802
1039
|
ShowUnderlyingData = "showUnderlyingData",
|
|
803
1040
|
/**
|
|
804
1041
|
* Emitted when an answer is switched to a chart or table view
|
|
1042
|
+
*
|
|
805
1043
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
|
|
806
1044
|
*/
|
|
807
1045
|
AnswerChartSwitcher = "answerChartSwitcher",
|
|
808
1046
|
/**
|
|
809
1047
|
* Internal event to communicate the initial settings back to the TS APP
|
|
1048
|
+
*
|
|
810
1049
|
* @hidden
|
|
811
1050
|
*/
|
|
812
1051
|
APP_INIT = "appInit",
|
|
813
1052
|
/**
|
|
814
1053
|
* Emitted when a user clicks Show Liveboard details on a Liveboard
|
|
1054
|
+
*
|
|
815
1055
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
|
|
816
1056
|
*/
|
|
817
1057
|
LiveboardInfo = "pinboardInfo",
|
|
818
1058
|
/**
|
|
819
1059
|
* Emitted when a user clicks on the Favorite icon on a Liveboard
|
|
1060
|
+
*
|
|
820
1061
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
|
|
821
1062
|
*/
|
|
822
1063
|
AddToFavorites = "addToFavorites",
|
|
823
1064
|
/**
|
|
824
1065
|
* Emitted when a user clicks Schedule on a Liveboard
|
|
1066
|
+
*
|
|
825
1067
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
|
|
826
1068
|
*/
|
|
827
1069
|
Schedule = "subscription",
|
|
828
1070
|
/**
|
|
829
1071
|
* Emitted when a user clicks Edit on a Liveboard or visualization
|
|
1072
|
+
*
|
|
830
1073
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
|
|
831
1074
|
*/
|
|
832
1075
|
Edit = "edit",
|
|
833
1076
|
/**
|
|
834
1077
|
* Emitted when a user clicks Make a copy on a Liveboard
|
|
1078
|
+
*
|
|
835
1079
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
|
|
836
1080
|
*/
|
|
837
1081
|
MakeACopy = "makeACopy",
|
|
838
1082
|
/**
|
|
839
1083
|
* Emitted when a user clicks Present on a Liveboard or visualization
|
|
1084
|
+
*
|
|
840
1085
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
|
|
841
1086
|
*/
|
|
842
1087
|
Present = "present",
|
|
843
1088
|
/**
|
|
844
1089
|
* Emitted when a user clicks Delete on a Liveboard
|
|
1090
|
+
*
|
|
845
1091
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
|
|
846
1092
|
*/
|
|
847
1093
|
Delete = "delete",
|
|
848
1094
|
/**
|
|
849
1095
|
* Emitted when a user clicks Manage schedules on a Liveboard
|
|
1096
|
+
*
|
|
850
1097
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
|
|
851
1098
|
*/
|
|
852
1099
|
SchedulesList = "schedule-list",
|
|
853
1100
|
/**
|
|
854
1101
|
* Emitted when a user clicks Cancel in edit mode on a Liveboard
|
|
1102
|
+
*
|
|
855
1103
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
|
|
856
1104
|
*/
|
|
857
1105
|
Cancel = "cancel",
|
|
858
1106
|
/**
|
|
859
1107
|
* Emitted when a user clicks Explore on a visualization
|
|
1108
|
+
*
|
|
860
1109
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
|
|
861
1110
|
*/
|
|
862
1111
|
Explore = "explore",
|
|
863
1112
|
/**
|
|
864
1113
|
* Emitted when a user clicks Copy link action on a visualization
|
|
1114
|
+
*
|
|
865
1115
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
|
|
866
1116
|
*/
|
|
867
1117
|
CopyLink = "embedDocument",
|
|
868
1118
|
/**
|
|
869
1119
|
* Emitted when a user interacts with cross filters on a visualization or liveboard
|
|
1120
|
+
*
|
|
870
1121
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
871
1122
|
*/
|
|
872
1123
|
CrossFilterChanged = "cross-filter-changed",
|
|
873
1124
|
/**
|
|
874
|
-
* Emitted when a user right clicks on chart or table
|
|
1125
|
+
* Emitted when a user right clicks on a visualization (chart or table)
|
|
1126
|
+
*
|
|
875
1127
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
876
1128
|
*/
|
|
877
|
-
VizPointRightClick = "vizPointRightClick"
|
|
1129
|
+
VizPointRightClick = "vizPointRightClick",
|
|
1130
|
+
/**
|
|
1131
|
+
* Emitted when a user clicks on Insert to slide on a visualization
|
|
1132
|
+
*
|
|
1133
|
+
* @hidden
|
|
1134
|
+
*/
|
|
1135
|
+
InsertIntoSlide = "insertInToSlide"
|
|
878
1136
|
}
|
|
879
1137
|
/**
|
|
880
1138
|
* Event types that can be triggered by the host application
|
|
881
1139
|
* to the embedded ThoughtSpot app
|
|
882
1140
|
*
|
|
883
1141
|
* To trigger an event use the corresponding
|
|
884
|
-
* {@link LiveboardEmbed.trigger} or {@link AppEmbed.trigger} or {@link
|
|
1142
|
+
* {@link LiveboardEmbed.trigger} or {@link AppEmbed.trigger} or {@link
|
|
1143
|
+
* SearchEmbed.trigger} method.
|
|
1144
|
+
*
|
|
1145
|
+
* @example
|
|
1146
|
+
* ```js
|
|
1147
|
+
* import { HostEvent } from '@thoughtspot/visual-embed-sdk';
|
|
1148
|
+
* // Or
|
|
1149
|
+
* // const { HostEvent } = window.tsembed;
|
|
1150
|
+
*
|
|
1151
|
+
* // create the liveboard embed.
|
|
1152
|
+
*
|
|
1153
|
+
* liveboardEmbed.trigger(HostEvent.UpdateRuntimeFilters, [
|
|
1154
|
+
* { columnName: 'state, operator: RuntimeFilterOp.EQ, values: ['california']}
|
|
1155
|
+
* ]);
|
|
1156
|
+
* ```
|
|
885
1157
|
* @group Events
|
|
886
1158
|
*/
|
|
887
1159
|
export declare enum HostEvent {
|
|
888
1160
|
/**
|
|
889
1161
|
* Trigger a search
|
|
1162
|
+
*
|
|
890
1163
|
* @param - dataSourceIds - The data source GUID to Search on
|
|
891
1164
|
* - Although an array, only a single source
|
|
892
1165
|
* is supported at this time.
|
|
@@ -896,7 +1169,7 @@ export declare enum HostEvent {
|
|
|
896
1169
|
* ```js
|
|
897
1170
|
* searchEmbed.trigger(HostEvent.Search, {
|
|
898
1171
|
* searchQuery: "[sales] by [item type],
|
|
899
|
-
*
|
|
1172
|
+
* dataSources: ["cd252e5c-b552-49a8-821d-3eadaa049cca"]
|
|
900
1173
|
* execute: true
|
|
901
1174
|
* })
|
|
902
1175
|
* ```
|
|
@@ -904,55 +1177,77 @@ export declare enum HostEvent {
|
|
|
904
1177
|
Search = "search",
|
|
905
1178
|
/**
|
|
906
1179
|
* Trigger a drill on certain points by certain column
|
|
1180
|
+
*
|
|
907
1181
|
* @param - points - an object containing selectedPoints/clickedPoints
|
|
908
1182
|
* eg. { selectedPoints: []}
|
|
909
1183
|
* @param - columnGuid - a string guid of the column to drill by. This is optional,
|
|
910
|
-
* if not provided it will auto drill by the configured
|
|
1184
|
+
* if not provided it will auto drill by the configured
|
|
1185
|
+
* column.
|
|
911
1186
|
* @example
|
|
912
1187
|
* ```js
|
|
913
|
-
* searchEmbed.
|
|
914
|
-
*
|
|
915
|
-
*
|
|
1188
|
+
* searchEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
|
|
1189
|
+
* console.log(payload);
|
|
1190
|
+
* const clickedPoint = payload.data.clickedPoint;
|
|
1191
|
+
* const selectedPoint = payload.data.selectedPoints;
|
|
1192
|
+
* console.log('>>> called', clickedPoint);
|
|
1193
|
+
* searchEmbed.trigger(HostEvent.DrillDown, {
|
|
1194
|
+
* points: {
|
|
1195
|
+
* clickedPoint,
|
|
1196
|
+
* selectedPoints: selectedPoint
|
|
1197
|
+
* },
|
|
1198
|
+
* autoDrillDown: true,
|
|
1199
|
+
* });
|
|
916
1200
|
* })
|
|
917
1201
|
* ```
|
|
918
|
-
*
|
|
919
1202
|
* @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
|
|
920
1203
|
*/
|
|
921
1204
|
DrillDown = "triggerDrillDown",
|
|
922
1205
|
/**
|
|
923
1206
|
* Apply filters
|
|
1207
|
+
*
|
|
924
1208
|
* @hidden
|
|
925
1209
|
*/
|
|
926
1210
|
Filter = "filter",
|
|
927
1211
|
/**
|
|
928
1212
|
* Reload the answer or visualization
|
|
1213
|
+
*
|
|
929
1214
|
* @hidden
|
|
930
1215
|
*/
|
|
931
1216
|
Reload = "reload",
|
|
932
1217
|
/**
|
|
933
1218
|
* Set the visible visualizations on a Liveboard.
|
|
1219
|
+
*
|
|
934
1220
|
* @param - an array of ids of visualizations to show, the ids not passed
|
|
935
1221
|
* will be hidden.
|
|
936
1222
|
* @example
|
|
937
|
-
*
|
|
1223
|
+
* ```js
|
|
1224
|
+
* liveboardEmbed.trigger(HostEvent.SetVisibleVizs, [
|
|
1225
|
+
* '730496d6-6903-4601-937e-2c691821af3c',
|
|
1226
|
+
* 'd547ec54-2a37-4516-a222-2b06719af726'])
|
|
1227
|
+
* ```
|
|
938
1228
|
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1-sw
|
|
939
1229
|
*/
|
|
940
1230
|
SetVisibleVizs = "SetPinboardVisibleVizs",
|
|
941
1231
|
/**
|
|
942
1232
|
* Update the runtime filters. The runtime filters passed here are extended
|
|
943
1233
|
* on to the existing runtime filters if they exist.
|
|
1234
|
+
*
|
|
944
1235
|
* @param - {@link RuntimeFilter}[] an array of {@link RuntimeFilter} Types.
|
|
945
1236
|
* @example
|
|
1237
|
+
* ```js
|
|
946
1238
|
* liveboardEmbed.trigger(HostEvent.UpdateRuntimeFilters, [
|
|
947
|
-
*
|
|
948
|
-
*
|
|
1239
|
+
* {columnName: "state",operator: RuntimeFilterOp.EQ,values: ["michigan"]},
|
|
1240
|
+
* {columnName: "item type",operator: RuntimeFilterOp.EQ,values: ["Jackets"]}
|
|
949
1241
|
* ])
|
|
1242
|
+
* ```
|
|
950
1243
|
* @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
|
|
1244
|
+
* @important
|
|
951
1245
|
*/
|
|
952
1246
|
UpdateRuntimeFilters = "UpdateRuntimeFilters",
|
|
953
1247
|
/**
|
|
954
1248
|
* Navigate to a specific page in App embed without any reload.
|
|
955
1249
|
* This is the same as calling `appEmbed.navigateToPage(path, true)`
|
|
1250
|
+
*
|
|
956
1251
|
* @param - path - the path to navigate to (can be a number[1/-1] to go forward/back)
|
|
957
1252
|
* @example
|
|
958
1253
|
* ```js
|
|
@@ -964,16 +1259,22 @@ export declare enum HostEvent {
|
|
|
964
1259
|
/**
|
|
965
1260
|
* Opens the filter panel for a particular column.
|
|
966
1261
|
* Works with Search embed.
|
|
967
|
-
*
|
|
1262
|
+
*
|
|
1263
|
+
* @param - { columnId: string,
|
|
1264
|
+
* name: string,
|
|
1265
|
+
* type: INT64/CHAR/DATE,
|
|
1266
|
+
* dataType: ATTRIBUTE/MEASURE }
|
|
968
1267
|
* @example
|
|
969
1268
|
* ```js
|
|
970
|
-
* searchEmbed.trigger(HostEvent.OpenFilter,
|
|
1269
|
+
* searchEmbed.trigger(HostEvent.OpenFilter,
|
|
1270
|
+
* { columnId: '123', name: 'column name', type: 'INT64', dataType: 'ATTRIBUTE' })
|
|
971
1271
|
* ```
|
|
972
1272
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
973
1273
|
*/
|
|
974
1274
|
OpenFilter = "openFilter",
|
|
975
1275
|
/**
|
|
976
1276
|
* Adds the columns to the current Search.
|
|
1277
|
+
*
|
|
977
1278
|
* @param - { columnIds: string[] }
|
|
978
1279
|
* @example
|
|
979
1280
|
* ```js
|
|
@@ -984,6 +1285,7 @@ export declare enum HostEvent {
|
|
|
984
1285
|
AddColumns = "addColumns",
|
|
985
1286
|
/**
|
|
986
1287
|
* Removes a column from the current Search.
|
|
1288
|
+
*
|
|
987
1289
|
* @param - { columnId: string }
|
|
988
1290
|
* @example
|
|
989
1291
|
* ```js
|
|
@@ -994,6 +1296,7 @@ export declare enum HostEvent {
|
|
|
994
1296
|
RemoveColumn = "removeColumn",
|
|
995
1297
|
/**
|
|
996
1298
|
* Gets the current pinboard content.
|
|
1299
|
+
*
|
|
997
1300
|
* @example
|
|
998
1301
|
* ```js
|
|
999
1302
|
* liveboardEmbed.trigger(HostEvent.getExportRequestForCurrentPinboard)
|
|
@@ -1003,6 +1306,7 @@ export declare enum HostEvent {
|
|
|
1003
1306
|
getExportRequestForCurrentPinboard = "getExportRequestForCurrentPinboard",
|
|
1004
1307
|
/**
|
|
1005
1308
|
* Triggers the Pin action on an embedded object
|
|
1309
|
+
*
|
|
1006
1310
|
* @param - incase of Liveboard embed, takes in an object with vizId as a key
|
|
1007
1311
|
* can be left empty for search and visualization embeds
|
|
1008
1312
|
* @example
|
|
@@ -1016,6 +1320,7 @@ export declare enum HostEvent {
|
|
|
1016
1320
|
Pin = "pin",
|
|
1017
1321
|
/**
|
|
1018
1322
|
* Triggers the Show Liveboard details action on a Liveboard
|
|
1323
|
+
*
|
|
1019
1324
|
* @example
|
|
1020
1325
|
* ```js
|
|
1021
1326
|
* liveboardEmbed.trigger(HostEvent.LiveboardInfo)
|
|
@@ -1025,6 +1330,7 @@ export declare enum HostEvent {
|
|
|
1025
1330
|
LiveboardInfo = "pinboardInfo",
|
|
1026
1331
|
/**
|
|
1027
1332
|
* Triggers the Schedule action on a Liveboard
|
|
1333
|
+
*
|
|
1028
1334
|
* @example
|
|
1029
1335
|
* ```js
|
|
1030
1336
|
* liveboardEmbed.trigger(HostEvent.Schedule)
|
|
@@ -1034,6 +1340,7 @@ export declare enum HostEvent {
|
|
|
1034
1340
|
Schedule = "subscription",
|
|
1035
1341
|
/**
|
|
1036
1342
|
* Triggers the Manage schedule action on a Liveboard
|
|
1343
|
+
*
|
|
1037
1344
|
* @example
|
|
1038
1345
|
* ```js
|
|
1039
1346
|
* liveboardEmbed.trigger(HostEvent.ScheduleList)
|
|
@@ -1043,6 +1350,7 @@ export declare enum HostEvent {
|
|
|
1043
1350
|
SchedulesList = "schedule-list",
|
|
1044
1351
|
/**
|
|
1045
1352
|
* Triggers the Export TML action on a Liveboard
|
|
1353
|
+
*
|
|
1046
1354
|
* @example
|
|
1047
1355
|
* ```js
|
|
1048
1356
|
* liveboardEmbed.trigger(HostEvent.ExportTML)
|
|
@@ -1052,6 +1360,7 @@ export declare enum HostEvent {
|
|
|
1052
1360
|
ExportTML = "exportTSL",
|
|
1053
1361
|
/**
|
|
1054
1362
|
* Triggers the Edit TML action on a Liveboard
|
|
1363
|
+
*
|
|
1055
1364
|
* @example
|
|
1056
1365
|
* ```js
|
|
1057
1366
|
* liveboardEmbed.trigger(HostEvent.EditTML)
|
|
@@ -1061,6 +1370,7 @@ export declare enum HostEvent {
|
|
|
1061
1370
|
EditTML = "editTSL",
|
|
1062
1371
|
/**
|
|
1063
1372
|
* Triggers the Update TML action on a Liveboard
|
|
1373
|
+
*
|
|
1064
1374
|
* @example
|
|
1065
1375
|
* ```js
|
|
1066
1376
|
* liveboardEmbed.trigger(HostEvent.UpdateTML)
|
|
@@ -1070,15 +1380,17 @@ export declare enum HostEvent {
|
|
|
1070
1380
|
UpdateTML = "updateTSL",
|
|
1071
1381
|
/**
|
|
1072
1382
|
* Triggers the Download PDF action on a Liveboard
|
|
1383
|
+
*
|
|
1073
1384
|
* @example
|
|
1074
1385
|
* ```js
|
|
1075
|
-
* liveboardEmbed.trigger(HostEvent.
|
|
1386
|
+
* liveboardEmbed.trigger(HostEvent.DownloadAsPdf)
|
|
1076
1387
|
* ```
|
|
1077
1388
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
|
|
1078
1389
|
*/
|
|
1079
1390
|
DownloadAsPdf = "downloadAsPdf",
|
|
1080
1391
|
/**
|
|
1081
1392
|
* Triggers the Make a copy action on a Liveboard, search or visualization
|
|
1393
|
+
*
|
|
1082
1394
|
* @example
|
|
1083
1395
|
* ```js
|
|
1084
1396
|
* liveboardEmbed.trigger(HostEvent.MakeACopy, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
@@ -1090,6 +1402,7 @@ export declare enum HostEvent {
|
|
|
1090
1402
|
MakeACopy = "makeACopy",
|
|
1091
1403
|
/**
|
|
1092
1404
|
* Triggers the Delete action on a Liveboard
|
|
1405
|
+
*
|
|
1093
1406
|
* @example
|
|
1094
1407
|
* ```js
|
|
1095
1408
|
* appEmbed.trigger(HostEvent.Remove)
|
|
@@ -1099,6 +1412,7 @@ export declare enum HostEvent {
|
|
|
1099
1412
|
Remove = "delete",
|
|
1100
1413
|
/**
|
|
1101
1414
|
* Triggers the Explore action on a visualization
|
|
1415
|
+
*
|
|
1102
1416
|
* @param - an object with vizId as a key
|
|
1103
1417
|
* @example
|
|
1104
1418
|
* ```js
|
|
@@ -1109,37 +1423,52 @@ export declare enum HostEvent {
|
|
|
1109
1423
|
Explore = "explore",
|
|
1110
1424
|
/**
|
|
1111
1425
|
* Triggers the Create alert action on a visualization
|
|
1426
|
+
*
|
|
1112
1427
|
* @param - an object with vizId as a key
|
|
1113
1428
|
* @example
|
|
1114
1429
|
* ```js
|
|
1115
|
-
* liveboardEmbed.trigger(HostEvent.CreateMonitor {
|
|
1430
|
+
* liveboardEmbed.trigger(HostEvent.CreateMonitor {
|
|
1431
|
+
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
1432
|
+
* })
|
|
1116
1433
|
* ```
|
|
1117
1434
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
|
|
1118
1435
|
*/
|
|
1119
1436
|
CreateMonitor = "createMonitor",
|
|
1120
1437
|
/**
|
|
1121
1438
|
* Triggers the Manage alert action on a visualization
|
|
1439
|
+
*
|
|
1122
1440
|
* @param - an object with vizId as a key
|
|
1123
1441
|
* @example
|
|
1124
1442
|
* ```js
|
|
1125
|
-
* liveboardEmbed.trigger(HostEvent.ManageMonitor, {
|
|
1443
|
+
* liveboardEmbed.trigger(HostEvent.ManageMonitor, {
|
|
1444
|
+
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
1445
|
+
* })
|
|
1126
1446
|
* ```
|
|
1127
1447
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
|
|
1128
1448
|
*/
|
|
1129
1449
|
ManageMonitor = "manageMonitor",
|
|
1130
1450
|
/**
|
|
1131
1451
|
* Triggers the Edit action on a Liveboard or visualization
|
|
1132
|
-
*
|
|
1452
|
+
*
|
|
1453
|
+
* @param - object - to trigger the action for a specfic visualization
|
|
1454
|
+
* in Liveboard embed, pass in vizId as a key
|
|
1133
1455
|
* @example
|
|
1456
|
+
* ```js
|
|
1134
1457
|
* liveboardEmbed.trigger(HostEvent.Edit)
|
|
1135
|
-
*
|
|
1458
|
+
*
|
|
1459
|
+
* liveboardEmbed.trigger(HostEvent.Edit, {vizId:
|
|
1460
|
+
* '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1461
|
+
*
|
|
1136
1462
|
* vizEmbed.trigger((HostEvent.Edit)
|
|
1463
|
+
* ```
|
|
1137
1464
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
|
|
1138
1465
|
*/
|
|
1139
1466
|
Edit = "edit",
|
|
1140
1467
|
/**
|
|
1141
1468
|
* Triggers the Copy link action on a Liveboard or visualization
|
|
1142
|
-
*
|
|
1469
|
+
*
|
|
1470
|
+
* @param - object - to trigger the action for a s
|
|
1471
|
+
* pecfic visualization in Liveboard embed, pass in vizId as a key
|
|
1143
1472
|
* @example
|
|
1144
1473
|
* ```js
|
|
1145
1474
|
* liveboardEmbed.trigger(HostEvent.CopyLink)
|
|
@@ -1151,7 +1480,9 @@ export declare enum HostEvent {
|
|
|
1151
1480
|
CopyLink = "embedDocument",
|
|
1152
1481
|
/**
|
|
1153
1482
|
* Triggers the Present action on a Liveboard or visualization
|
|
1154
|
-
*
|
|
1483
|
+
*
|
|
1484
|
+
* @param - object - to trigger the action for a specfic visualization
|
|
1485
|
+
* in Liveboard embed, pass in vizId as a key
|
|
1155
1486
|
* @example
|
|
1156
1487
|
* ```js
|
|
1157
1488
|
* liveboardEmbed.trigger(HostEvent.Present)
|
|
@@ -1163,119 +1494,203 @@ export declare enum HostEvent {
|
|
|
1163
1494
|
Present = "present",
|
|
1164
1495
|
/**
|
|
1165
1496
|
* Get TML for the current search.
|
|
1497
|
+
*
|
|
1166
1498
|
* @example
|
|
1167
1499
|
* ```js
|
|
1168
|
-
* searchEmbed.trigger(HostEvent.GetTML)
|
|
1500
|
+
* searchEmbed.trigger(HostEvent.GetTML).then((tml) => {
|
|
1501
|
+
* console.log(
|
|
1502
|
+
* tml.search_query // TML representation of the search query
|
|
1503
|
+
* );
|
|
1504
|
+
* })
|
|
1169
1505
|
* ```
|
|
1170
1506
|
* @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1-sw
|
|
1507
|
+
* @important
|
|
1171
1508
|
*/
|
|
1172
1509
|
GetTML = "getTML",
|
|
1173
1510
|
/**
|
|
1174
1511
|
* Triggers the ShowUnderlyingData action on visualization or search
|
|
1512
|
+
*
|
|
1175
1513
|
* @param - an object with vizId as a key
|
|
1176
1514
|
* @example
|
|
1177
|
-
*
|
|
1515
|
+
* ```js
|
|
1516
|
+
* liveboardEmbed.trigger(HostEvent.ShowUnderlyingData, {vizId:
|
|
1517
|
+
* '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1518
|
+
*
|
|
1178
1519
|
* vizEmbed.trigger(HostEvent.ShowUnderlyingData)
|
|
1520
|
+
*
|
|
1179
1521
|
* searchEmbed.trigger(HostEvent.ShowUnderlyingData)
|
|
1522
|
+
* ```
|
|
1180
1523
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
|
|
1181
1524
|
*/
|
|
1182
1525
|
ShowUnderlyingData = "showUnderlyingData",
|
|
1183
1526
|
/**
|
|
1184
1527
|
* Triggers the Delete action on visualization or search
|
|
1528
|
+
*
|
|
1185
1529
|
* @param - incase of Liveboard embed, takes in an object with vizId as a key
|
|
1186
1530
|
* can be left empty for search and visualization embeds
|
|
1187
1531
|
* @example
|
|
1188
|
-
*
|
|
1532
|
+
* ```js
|
|
1533
|
+
* liveboardEmbed.trigger(HostEvent.Delete, {vizId:
|
|
1534
|
+
* '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1535
|
+
*
|
|
1189
1536
|
* vizEmbed.trigger(HostEvent.Delete)
|
|
1537
|
+
*
|
|
1190
1538
|
* searchEmbed.trigger(HostEvent.Delete)
|
|
1539
|
+
* ```
|
|
1191
1540
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
|
|
1192
1541
|
*/
|
|
1193
|
-
Delete = "
|
|
1542
|
+
Delete = "onDeleteAnswer",
|
|
1194
1543
|
/**
|
|
1195
1544
|
* Triggers the SpotIQAnalyze action on visualization or search
|
|
1545
|
+
*
|
|
1196
1546
|
* @param - incase of Liveboard embed, takes in an object with vizId as a key
|
|
1197
1547
|
* can be left empty for search and visualization embeds
|
|
1198
1548
|
* @example
|
|
1199
|
-
*
|
|
1549
|
+
* ```js
|
|
1550
|
+
* liveboardEmbed.trigger(HostEvent.SpotIQAnalyze, {vizId:
|
|
1551
|
+
* '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1552
|
+
*
|
|
1200
1553
|
* vizEmbed.trigger(HostEvent.SpotIQAnalyze)
|
|
1554
|
+
*
|
|
1201
1555
|
* searchEmbed.trigger(HostEvent.SpotIQAnalyze)
|
|
1556
|
+
* ```
|
|
1202
1557
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
|
|
1203
1558
|
*/
|
|
1204
1559
|
SpotIQAnalyze = "spotIQAnalyze",
|
|
1205
1560
|
/**
|
|
1206
1561
|
* Triggers the Download action on visualization or search when Displaymode is Chart
|
|
1562
|
+
*
|
|
1207
1563
|
* @example
|
|
1208
|
-
*
|
|
1564
|
+
* ```js
|
|
1565
|
+
* liveboardEmbed.trigger(HostEvent.Download, {vizId:
|
|
1566
|
+
* '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1567
|
+
*
|
|
1209
1568
|
* vizEmbed.trigger(HostEvent.Download)
|
|
1569
|
+
*
|
|
1210
1570
|
* searchEmbed.trigger(HostEvent.Download)
|
|
1571
|
+
* ```
|
|
1572
|
+
* @deprecated from SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl ,9.4.1-sw ,Use {@link DownloadAsPng}
|
|
1211
1573
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
|
|
1212
1574
|
*/
|
|
1213
|
-
Download = "
|
|
1575
|
+
Download = "downloadAsPng",
|
|
1214
1576
|
/**
|
|
1215
|
-
* Triggers the
|
|
1577
|
+
* Triggers the Download action on visualization or search when Displaymode is Chart
|
|
1578
|
+
*
|
|
1216
1579
|
* @example
|
|
1217
|
-
*
|
|
1580
|
+
* ```js
|
|
1581
|
+
* liveboardEmbed.trigger(HostEvent.DownloadAsPng,
|
|
1582
|
+
* {vizId:'730496d6-6903-4601-937e-2c691821af3c'})
|
|
1583
|
+
*
|
|
1584
|
+
* vizEmbed.trigger(HostEvent.DownloadAsPng)
|
|
1585
|
+
*
|
|
1586
|
+
* searchEmbed.trigger(HostEvent.DownloadAsPng)
|
|
1587
|
+
* ```
|
|
1588
|
+
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.1-sw
|
|
1589
|
+
*/
|
|
1590
|
+
DownloadAsPng = "downloadAsPng",
|
|
1591
|
+
/**
|
|
1592
|
+
* Triggers the downloadAsCSV action on visualization or search
|
|
1593
|
+
*
|
|
1594
|
+
* @example
|
|
1595
|
+
* ```js
|
|
1596
|
+
* liveboardEmbed.trigger(HostEvent.DownloadAsCsv, {vizId:
|
|
1597
|
+
* '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1598
|
+
*
|
|
1218
1599
|
* vizEmbed.trigger(HostEvent.DownloadAsCsv)
|
|
1600
|
+
*
|
|
1219
1601
|
* searchEmbed.trigger(HostEvent.DownloadAsCsv)
|
|
1602
|
+
* ```
|
|
1220
1603
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
|
|
1221
1604
|
*/
|
|
1222
1605
|
DownloadAsCsv = "downloadAsCSV",
|
|
1223
1606
|
/**
|
|
1224
|
-
* Triggers the downloadAsXLSX action on visualization or search
|
|
1607
|
+
* Triggers the downloadAsXLSX action on visualization or search
|
|
1608
|
+
*
|
|
1225
1609
|
* @example
|
|
1226
|
-
*
|
|
1610
|
+
* ```js
|
|
1611
|
+
* liveboardEmbed.trigger(HostEvent.DownloadAsXlsx, {vizId:
|
|
1612
|
+
* '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1613
|
+
*
|
|
1227
1614
|
* vizEmbed.trigger(HostEvent.DownloadAsXlsx)
|
|
1615
|
+
*
|
|
1228
1616
|
* searchEmbed.trigger(HostEvent.DownloadAsXlsx)
|
|
1617
|
+
* ```
|
|
1229
1618
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
|
|
1230
1619
|
*/
|
|
1231
1620
|
DownloadAsXlsx = "downloadAsXLSX",
|
|
1232
1621
|
/**
|
|
1233
1622
|
* Triggers the Share action on a liveboard or answer
|
|
1623
|
+
*
|
|
1234
1624
|
* @example
|
|
1625
|
+
* ```js
|
|
1235
1626
|
* liveboardEmbed.trigger(HostEvent.Share)
|
|
1627
|
+
*
|
|
1236
1628
|
* searchEmbed.trigger(HostEvent.Share)
|
|
1629
|
+
* ```
|
|
1237
1630
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
|
|
1238
1631
|
*/
|
|
1239
1632
|
Share = "share",
|
|
1240
1633
|
/**
|
|
1241
1634
|
* Trigger the Save action on a liveboard or answer
|
|
1635
|
+
*
|
|
1242
1636
|
* @example
|
|
1637
|
+
* ```js
|
|
1243
1638
|
* liveboardEmbed.trigger(HostEvent.Save)
|
|
1639
|
+
*
|
|
1244
1640
|
* searchEmbed.trigger(HostEvent.Save)
|
|
1641
|
+
* ```
|
|
1245
1642
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
|
|
1246
1643
|
*/
|
|
1247
1644
|
Save = "save",
|
|
1248
1645
|
/**
|
|
1249
1646
|
* Triggers the SyncToSheets action on visualization
|
|
1647
|
+
*
|
|
1250
1648
|
* @param - an object with vizId as a key
|
|
1251
1649
|
* @example
|
|
1252
|
-
*
|
|
1650
|
+
* ```js
|
|
1651
|
+
* liveboardEmbed.trigger(HostEvent.SyncToSheets, {vizId:
|
|
1652
|
+
* '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1653
|
+
*
|
|
1253
1654
|
* vizEmbed.trigger(HostEvent.SyncToSheets)
|
|
1655
|
+
* ```
|
|
1254
1656
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
|
|
1255
1657
|
*/
|
|
1256
1658
|
SyncToSheets = "sync-to-sheets",
|
|
1257
1659
|
/**
|
|
1258
1660
|
* Triggers the SyncToOtherApps action on visualization
|
|
1661
|
+
*
|
|
1259
1662
|
* @param - an object with vizId as a key
|
|
1260
1663
|
* @example
|
|
1261
|
-
*
|
|
1664
|
+
* ```js
|
|
1665
|
+
* liveboardEmbed.trigger(HostEvent.SyncToOtherApps, {vizId:
|
|
1666
|
+
* '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1667
|
+
*
|
|
1262
1668
|
* vizEmbed.trigger(HostEvent.SyncToOtherApps)
|
|
1669
|
+
* ```
|
|
1263
1670
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
|
|
1264
1671
|
*/
|
|
1265
1672
|
SyncToOtherApps = "sync-to-other-apps",
|
|
1266
1673
|
/**
|
|
1267
1674
|
* Triggers the ManagePipelines action on visualization
|
|
1675
|
+
*
|
|
1268
1676
|
* @param - an object with vizId as a key
|
|
1269
1677
|
* @example
|
|
1270
|
-
*
|
|
1678
|
+
* ```js
|
|
1679
|
+
* liveboardEmbed.trigger(HostEvent.ManagePipelines, {vizId:
|
|
1680
|
+
* '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1681
|
+
*
|
|
1271
1682
|
* vizEmbed.trigger(HostEvent.ManagePipelines)
|
|
1683
|
+
* ```
|
|
1272
1684
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
|
|
1273
1685
|
*/
|
|
1274
1686
|
ManagePipelines = "manage-pipeline",
|
|
1275
1687
|
/**
|
|
1276
1688
|
* Triggers the Reset search in answer
|
|
1689
|
+
*
|
|
1277
1690
|
* @example
|
|
1278
|
-
*
|
|
1691
|
+
* ```js
|
|
1692
|
+
* searchEmbed.trigger(HostEvent.ResetSearch)
|
|
1693
|
+
* ```
|
|
1279
1694
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.0.1-sw
|
|
1280
1695
|
*/
|
|
1281
1696
|
ResetSearch = "resetSearch"
|
|
@@ -1303,6 +1718,7 @@ export declare enum DataSourceVisualMode {
|
|
|
1303
1718
|
* containing configuration and/or visual information.
|
|
1304
1719
|
*/
|
|
1305
1720
|
export declare enum Param {
|
|
1721
|
+
EmbedApp = "embedApp",
|
|
1306
1722
|
DataSources = "dataSources",
|
|
1307
1723
|
DataSourceMode = "dataSourceMode",
|
|
1308
1724
|
DisableActions = "disableAction",
|
|
@@ -1341,11 +1757,26 @@ export declare enum Param {
|
|
|
1341
1757
|
cookieless = "cookieless",
|
|
1342
1758
|
ContextMenuTrigger = "isContextMenuEnabledOnLeftClick",
|
|
1343
1759
|
LinkOverride = "linkOverride",
|
|
1344
|
-
ShowInsertToSlide = "insertInToSlide"
|
|
1760
|
+
ShowInsertToSlide = "insertInToSlide",
|
|
1761
|
+
PrimaryNavHidden = "primaryNavHidden",
|
|
1762
|
+
HideProfleAndHelp = "profileAndHelpInNavBarHidden"
|
|
1345
1763
|
}
|
|
1346
1764
|
/**
|
|
1347
1765
|
* The list of actions that can be performed on visual ThoughtSpot
|
|
1348
1766
|
* entities, such as answers and Liveboards.
|
|
1767
|
+
*
|
|
1768
|
+
* This enum is used to specify the actions that could be disabled,
|
|
1769
|
+
* hidden or made visible.
|
|
1770
|
+
*
|
|
1771
|
+
* @example
|
|
1772
|
+
* ```js
|
|
1773
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
1774
|
+
* ... // other options
|
|
1775
|
+
* visibleActions: [Action.Save, Action.Explore],
|
|
1776
|
+
* disableActions: [Action.Save],
|
|
1777
|
+
* hiddenActions: [Action.Download], // Set either this or visibleActions
|
|
1778
|
+
* })
|
|
1779
|
+
* ```
|
|
1349
1780
|
*/
|
|
1350
1781
|
export declare enum Action {
|
|
1351
1782
|
Save = "save",
|
|
@@ -1394,6 +1825,7 @@ export declare enum Action {
|
|
|
1394
1825
|
ReplaySearch = "replaySearch",
|
|
1395
1826
|
ShowUnderlyingData = "showUnderlyingData",
|
|
1396
1827
|
Download = "download",
|
|
1828
|
+
DownloadAsPng = "downloadAsPng",
|
|
1397
1829
|
DownloadAsPdf = "downloadAsPdf",
|
|
1398
1830
|
DownloadAsCsv = "downloadAsCSV",
|
|
1399
1831
|
DownloadAsXlsx = "downloadAsXLSX",
|
|
@@ -1439,12 +1871,18 @@ export declare enum Action {
|
|
|
1439
1871
|
* @hidden
|
|
1440
1872
|
*/
|
|
1441
1873
|
DownloadEmbraceQueries = "downloadEmbraceQueries",
|
|
1874
|
+
/**
|
|
1875
|
+
* Pin action.
|
|
1876
|
+
*/
|
|
1442
1877
|
Pin = "pin",
|
|
1443
1878
|
/**
|
|
1444
1879
|
* @hidden
|
|
1445
1880
|
*/
|
|
1446
1881
|
AnalysisInfo = "analysisInfo",
|
|
1447
1882
|
Subscription = "subscription",
|
|
1883
|
+
/**
|
|
1884
|
+
* Explore action.
|
|
1885
|
+
*/
|
|
1448
1886
|
Explore = "explore",
|
|
1449
1887
|
DrillInclude = "context-menu-item-include",
|
|
1450
1888
|
DrillExclude = "context-menu-item-exclude",
|
|
@@ -1456,9 +1894,6 @@ export declare enum Action {
|
|
|
1456
1894
|
DrillEdit = "context-menu-item-edit",
|
|
1457
1895
|
EditMeasure = "context-menu-item-edit-measure",
|
|
1458
1896
|
Separator = "context-menu-item-separator",
|
|
1459
|
-
/**
|
|
1460
|
-
* @hidden
|
|
1461
|
-
*/
|
|
1462
1897
|
DrillDown = "DRILL",
|
|
1463
1898
|
RequestAccess = "requestAccess",
|
|
1464
1899
|
QueryDetailsButtons = "queryDetailsButtons",
|
|
@@ -1548,7 +1983,11 @@ export declare enum Action {
|
|
|
1548
1983
|
/**
|
|
1549
1984
|
* @hidden
|
|
1550
1985
|
*/
|
|
1551
|
-
InsertInToSlide = "insertInToSlide"
|
|
1986
|
+
InsertInToSlide = "insertInToSlide",
|
|
1987
|
+
/**
|
|
1988
|
+
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
1989
|
+
*/
|
|
1990
|
+
RenameModalTitleDescription = "renameModalTitleDescription"
|
|
1552
1991
|
}
|
|
1553
1992
|
export interface SessionInterface {
|
|
1554
1993
|
sessionId: string;
|
|
@@ -1571,6 +2010,9 @@ export declare enum PrefetchFeatures {
|
|
|
1571
2010
|
LiveboardEmbed = "LiveboardEmbed",
|
|
1572
2011
|
VizEmbed = "VizEmbed"
|
|
1573
2012
|
}
|
|
2013
|
+
/**
|
|
2014
|
+
* Enum for options to change context trigger
|
|
2015
|
+
*/
|
|
1574
2016
|
export declare enum ContextMenuTriggerOptions {
|
|
1575
2017
|
LEFT_CLICK = "left-click",
|
|
1576
2018
|
RIGHT_CLICK = "right-click"
|