@thoughtspot/visual-embed-sdk 1.52.0 → 1.52.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/package.json +9 -1
- package/cjs/src/contracts/contracts.spec.d.ts +2 -0
- package/cjs/src/contracts/contracts.spec.d.ts.map +1 -0
- package/cjs/src/contracts/contracts.spec.js +345 -0
- package/cjs/src/contracts/contracts.spec.js.map +1 -0
- package/cjs/src/contracts/embed-event-payloads.d.ts +73 -0
- package/cjs/src/contracts/embed-event-payloads.d.ts.map +1 -0
- package/cjs/src/contracts/embed-event-payloads.js +3 -0
- package/cjs/src/contracts/embed-event-payloads.js.map +1 -0
- package/cjs/src/contracts/host-event-contracts.d.ts +378 -0
- package/cjs/src/contracts/host-event-contracts.d.ts.map +1 -0
- package/cjs/src/contracts/host-event-contracts.js +3 -0
- package/cjs/src/contracts/host-event-contracts.js.map +1 -0
- package/cjs/src/contracts/index.d.ts +22 -0
- package/cjs/src/contracts/index.d.ts.map +1 -0
- package/cjs/src/contracts/index.js +33 -0
- package/cjs/src/contracts/index.js.map +1 -0
- package/cjs/src/contracts/ui-passthrough-contracts.d.ts +277 -0
- package/cjs/src/contracts/ui-passthrough-contracts.d.ts.map +1 -0
- package/cjs/src/{embed/hostEventClient/contracts.js → contracts/ui-passthrough-contracts.js} +6 -2
- package/cjs/src/contracts/ui-passthrough-contracts.js.map +1 -0
- package/cjs/src/embed/app.d.ts +17 -140
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +20 -120
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +70 -26
- package/cjs/src/embed/app.spec.js.map +1 -1
- package/cjs/src/embed/events.spec.js +12 -2
- package/cjs/src/embed/events.spec.js.map +1 -1
- package/cjs/src/embed/hostEventClient/host-event-client.d.ts +3 -2
- package/cjs/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
- package/cjs/src/embed/hostEventClient/host-event-client.js +23 -18
- package/cjs/src/embed/hostEventClient/host-event-client.js.map +1 -1
- package/cjs/src/embed/hostEventClient/host-event-client.spec.js +36 -36
- package/cjs/src/embed/hostEventClient/host-event-client.spec.js.map +1 -1
- package/cjs/src/embed/hostEventClient/utils.d.ts +1 -1
- package/cjs/src/embed/hostEventClient/utils.d.ts.map +1 -1
- package/cjs/src/embed/hostEventClient/utils.js +3 -3
- package/cjs/src/embed/hostEventClient/utils.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts +9 -161
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +66 -134
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +211 -28
- package/cjs/src/embed/liveboard.spec.js.map +1 -1
- package/cjs/src/embed/search.d.ts +14 -0
- 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 +65 -0
- package/cjs/src/embed/search.spec.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts +17 -22
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +82 -56
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +325 -17
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/full-height.d.ts +137 -0
- package/cjs/src/full-height.d.ts.map +1 -0
- package/cjs/src/full-height.js +272 -0
- package/cjs/src/full-height.js.map +1 -0
- package/cjs/src/full-height.spec.d.ts +2 -0
- package/cjs/src/full-height.spec.d.ts.map +1 -0
- package/cjs/src/full-height.spec.js +835 -0
- package/cjs/src/full-height.spec.js.map +1 -0
- package/cjs/src/index.d.ts +4 -3
- package/cjs/src/index.d.ts.map +1 -1
- package/cjs/src/index.js +3 -3
- package/cjs/src/index.js.map +1 -1
- package/cjs/src/react/all-types-export.d.ts +1 -1
- package/cjs/src/react/all-types-export.d.ts.map +1 -1
- package/cjs/src/react/all-types-export.js.map +1 -1
- package/cjs/src/react/all-types-export.parity.spec.js +55 -3
- package/cjs/src/react/all-types-export.parity.spec.js.map +1 -1
- package/cjs/src/types.d.ts +540 -3
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +326 -1
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/processTrigger.d.ts +3 -1
- package/cjs/src/utils/processTrigger.d.ts.map +1 -1
- package/cjs/src/utils/processTrigger.js +19 -51
- package/cjs/src/utils/processTrigger.js.map +1 -1
- package/cjs/src/utils/transport/iframe-transport.d.ts +55 -0
- package/cjs/src/utils/transport/iframe-transport.d.ts.map +1 -0
- package/cjs/src/utils/transport/iframe-transport.js +108 -0
- package/cjs/src/utils/transport/iframe-transport.js.map +1 -0
- package/cjs/src/utils/transport/iframe-transport.spec.d.ts +2 -0
- package/cjs/src/utils/transport/iframe-transport.spec.d.ts.map +1 -0
- package/cjs/src/utils/transport/iframe-transport.spec.js +140 -0
- package/cjs/src/utils/transport/iframe-transport.spec.js.map +1 -0
- package/cjs/src/utils.d.ts +18 -0
- package/cjs/src/utils.d.ts.map +1 -1
- package/cjs/src/utils.js +39 -1
- package/cjs/src/utils.js.map +1 -1
- package/cjs/src/utils.spec.js +62 -0
- package/cjs/src/utils.spec.js.map +1 -1
- package/dist/{index-BMppCU63.js → index-C1pmYb5H.js} +1 -1
- package/dist/src/contracts/contracts.spec.d.ts +2 -0
- package/dist/src/contracts/contracts.spec.d.ts.map +1 -0
- package/dist/src/contracts/embed-event-payloads.d.ts +73 -0
- package/dist/src/contracts/embed-event-payloads.d.ts.map +1 -0
- package/dist/src/contracts/host-event-contracts.d.ts +378 -0
- package/dist/src/contracts/host-event-contracts.d.ts.map +1 -0
- package/dist/src/contracts/index.d.ts +22 -0
- package/dist/src/contracts/index.d.ts.map +1 -0
- package/dist/src/contracts/ui-passthrough-contracts.d.ts +277 -0
- package/dist/src/contracts/ui-passthrough-contracts.d.ts.map +1 -0
- package/dist/src/embed/app.d.ts +17 -140
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/hostEventClient/host-event-client.d.ts +3 -2
- package/dist/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
- package/dist/src/embed/hostEventClient/utils.d.ts +1 -1
- package/dist/src/embed/hostEventClient/utils.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +9 -161
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/search.d.ts +14 -0
- package/dist/src/embed/search.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts +17 -22
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/full-height.d.ts +137 -0
- package/dist/src/full-height.d.ts.map +1 -0
- package/dist/src/full-height.spec.d.ts +2 -0
- package/dist/src/full-height.spec.d.ts.map +1 -0
- package/dist/src/index.d.ts +4 -3
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/react/all-types-export.d.ts +1 -1
- package/dist/src/react/all-types-export.d.ts.map +1 -1
- package/dist/src/types.d.ts +540 -3
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/processTrigger.d.ts +3 -1
- package/dist/src/utils/processTrigger.d.ts.map +1 -1
- package/dist/src/utils/transport/iframe-transport.d.ts +55 -0
- package/dist/src/utils/transport/iframe-transport.d.ts.map +1 -0
- package/dist/src/utils/transport/iframe-transport.spec.d.ts +2 -0
- package/dist/src/utils/transport/iframe-transport.spec.d.ts.map +1 -0
- package/dist/src/utils.d.ts +18 -0
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +925 -363
- package/dist/tsembed-react.js +924 -362
- package/dist/tsembed.es.js +925 -363
- package/dist/tsembed.js +924 -362
- package/dist/visual-embed-sdk-react-full.d.ts +1357 -656
- package/dist/visual-embed-sdk-react.d.ts +1257 -606
- package/dist/visual-embed-sdk.d.ts +1320 -642
- package/lib/package.json +9 -1
- package/lib/src/contracts/contracts.spec.d.ts +2 -0
- package/lib/src/contracts/contracts.spec.d.ts.map +1 -0
- package/lib/src/contracts/contracts.spec.js +342 -0
- package/lib/src/contracts/contracts.spec.js.map +1 -0
- package/lib/src/contracts/embed-event-payloads.d.ts +73 -0
- package/lib/src/contracts/embed-event-payloads.d.ts.map +1 -0
- package/lib/src/contracts/embed-event-payloads.js +2 -0
- package/lib/src/contracts/embed-event-payloads.js.map +1 -0
- package/lib/src/contracts/host-event-contracts.d.ts +378 -0
- package/lib/src/contracts/host-event-contracts.d.ts.map +1 -0
- package/lib/src/contracts/host-event-contracts.js +2 -0
- package/lib/src/contracts/host-event-contracts.js.map +1 -0
- package/lib/src/contracts/index.d.ts +22 -0
- package/lib/src/contracts/index.d.ts.map +1 -0
- package/lib/src/contracts/index.js +22 -0
- package/lib/src/contracts/index.js.map +1 -0
- package/lib/src/contracts/ui-passthrough-contracts.d.ts +277 -0
- package/lib/src/contracts/ui-passthrough-contracts.d.ts.map +1 -0
- package/lib/src/{embed/hostEventClient/contracts.js → contracts/ui-passthrough-contracts.js} +6 -2
- package/lib/src/contracts/ui-passthrough-contracts.js.map +1 -0
- package/lib/src/embed/app.d.ts +17 -140
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +22 -122
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +70 -26
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/events.spec.js +12 -2
- package/lib/src/embed/events.spec.js.map +1 -1
- package/lib/src/embed/hostEventClient/host-event-client.d.ts +3 -2
- package/lib/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
- package/lib/src/embed/hostEventClient/host-event-client.js +6 -1
- package/lib/src/embed/hostEventClient/host-event-client.js.map +1 -1
- package/lib/src/embed/hostEventClient/host-event-client.spec.js +1 -1
- package/lib/src/embed/hostEventClient/host-event-client.spec.js.map +1 -1
- package/lib/src/embed/hostEventClient/utils.d.ts +1 -1
- package/lib/src/embed/hostEventClient/utils.d.ts.map +1 -1
- package/lib/src/embed/hostEventClient/utils.js +1 -1
- package/lib/src/embed/hostEventClient/utils.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +9 -161
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +67 -135
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +211 -28
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/embed/search.d.ts +14 -0
- 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 +65 -0
- package/lib/src/embed/search.spec.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts +17 -22
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +82 -56
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +322 -14
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/full-height.d.ts +137 -0
- package/lib/src/full-height.d.ts.map +1 -0
- package/lib/src/full-height.js +268 -0
- package/lib/src/full-height.js.map +1 -0
- package/lib/src/full-height.spec.d.ts +2 -0
- package/lib/src/full-height.spec.d.ts.map +1 -0
- package/lib/src/full-height.spec.js +833 -0
- package/lib/src/full-height.spec.js.map +1 -0
- package/lib/src/index.d.ts +4 -3
- package/lib/src/index.d.ts.map +1 -1
- package/lib/src/index.js +1 -1
- package/lib/src/index.js.map +1 -1
- package/lib/src/react/all-types-export.d.ts +1 -1
- package/lib/src/react/all-types-export.d.ts.map +1 -1
- package/lib/src/react/all-types-export.js.map +1 -1
- package/lib/src/react/all-types-export.parity.spec.js +55 -3
- package/lib/src/react/all-types-export.parity.spec.js.map +1 -1
- package/lib/src/types.d.ts +540 -3
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +326 -1
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/processTrigger.d.ts +3 -1
- package/lib/src/utils/processTrigger.d.ts.map +1 -1
- package/lib/src/utils/processTrigger.js +19 -51
- package/lib/src/utils/processTrigger.js.map +1 -1
- package/lib/src/utils/transport/iframe-transport.d.ts +55 -0
- package/lib/src/utils/transport/iframe-transport.d.ts.map +1 -0
- package/lib/src/utils/transport/iframe-transport.js +101 -0
- package/lib/src/utils/transport/iframe-transport.js.map +1 -0
- package/lib/src/utils/transport/iframe-transport.spec.d.ts +2 -0
- package/lib/src/utils/transport/iframe-transport.spec.d.ts.map +1 -0
- package/lib/src/utils/transport/iframe-transport.spec.js +138 -0
- package/lib/src/utils/transport/iframe-transport.spec.js.map +1 -0
- package/lib/src/utils.d.ts +18 -0
- package/lib/src/utils.d.ts.map +1 -1
- package/lib/src/utils.js +37 -0
- package/lib/src/utils.js.map +1 -1
- package/lib/src/utils.spec.js +63 -1
- package/lib/src/utils.spec.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +1320 -642
- package/package.json +9 -1
- package/src/contracts/contracts.spec.ts +392 -0
- package/src/contracts/embed-event-payloads.ts +83 -0
- package/src/contracts/host-event-contracts.ts +456 -0
- package/src/contracts/index.ts +53 -0
- package/src/contracts/ui-passthrough-contracts.ts +301 -0
- package/src/embed/app.spec.ts +86 -34
- package/src/embed/app.ts +37 -264
- package/src/embed/events.spec.ts +14 -2
- package/src/embed/hostEventClient/host-event-client.spec.ts +2 -2
- package/src/embed/hostEventClient/host-event-client.ts +18 -5
- package/src/embed/hostEventClient/utils.ts +2 -1
- package/src/embed/liveboard.spec.ts +257 -38
- package/src/embed/liveboard.ts +75 -296
- package/src/embed/search.spec.ts +80 -0
- package/src/embed/search.ts +20 -0
- package/src/embed/ts-embed.spec.ts +448 -15
- package/src/embed/ts-embed.ts +109 -66
- package/src/full-height.spec.ts +1008 -0
- package/src/full-height.ts +361 -0
- package/src/index.ts +93 -5
- package/src/react/all-types-export.parity.spec.ts +63 -3
- package/src/react/all-types-export.ts +45 -0
- package/src/types.ts +540 -1
- package/src/utils/processTrigger.ts +28 -58
- package/src/utils/transport/iframe-transport.spec.ts +177 -0
- package/src/utils/transport/iframe-transport.ts +122 -0
- package/src/utils.spec.ts +71 -0
- package/src/utils.ts +38 -0
- package/cjs/src/embed/hostEventClient/contracts.d.ts +0 -231
- package/cjs/src/embed/hostEventClient/contracts.d.ts.map +0 -1
- package/cjs/src/embed/hostEventClient/contracts.js.map +0 -1
- package/dist/src/embed/hostEventClient/contracts.d.ts +0 -231
- package/dist/src/embed/hostEventClient/contracts.d.ts.map +0 -1
- package/lib/src/embed/hostEventClient/contracts.d.ts +0 -231
- package/lib/src/embed/hostEventClient/contracts.d.ts.map +0 -1
- package/lib/src/embed/hostEventClient/contracts.js.map +0 -1
- package/src/embed/hostEventClient/contracts.ts +0 -262
package/src/types.ts
CHANGED
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
|
|
9
9
|
import { CustomCssVariables } from './css-variables';
|
|
10
10
|
import type { SessionInterface } from './utils/graphql/answerService/answerService';
|
|
11
|
+
// Type-only: avoids a runtime import cycle with the contracts barrel.
|
|
12
|
+
import type { Applicability } from './contracts/ui-passthrough-contracts';
|
|
11
13
|
|
|
12
14
|
/**
|
|
13
15
|
* The authentication mechanism for allowing access to
|
|
@@ -2531,6 +2533,15 @@ export interface RuntimeParameter {
|
|
|
2531
2533
|
* Values
|
|
2532
2534
|
*/
|
|
2533
2535
|
value: number | boolean | string;
|
|
2536
|
+
/**
|
|
2537
|
+
* Whether the parameter is visible to the user (`UpdateParameters` only).
|
|
2538
|
+
*/
|
|
2539
|
+
isVisibleToUser?: boolean;
|
|
2540
|
+
/**
|
|
2541
|
+
* Scope of the update (`UpdateParameters` only). Omitting it, or `level`,
|
|
2542
|
+
* targets the Liveboard level.
|
|
2543
|
+
*/
|
|
2544
|
+
applicability?: Applicability;
|
|
2534
2545
|
}
|
|
2535
2546
|
|
|
2536
2547
|
/**
|
|
@@ -2986,6 +2997,9 @@ export enum EmbedEvent {
|
|
|
2986
2997
|
Download = 'download',
|
|
2987
2998
|
/**
|
|
2988
2999
|
* Emitted when the download action is triggered on an Answer.
|
|
3000
|
+
* Payload varies by context: {@link VizScopedRequest} (Search, Answer,
|
|
3001
|
+
* Liveboard), {@link RequiredVizRequest} (Spotter, vizId required). trigger()
|
|
3002
|
+
* accepts the union now; per-context enforced next release.
|
|
2989
3003
|
* Use start:true to subscribe to when download is initiated, or end:true to
|
|
2990
3004
|
* subscribe to when download is completed. Default is end:true.
|
|
2991
3005
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.0.sw
|
|
@@ -3002,6 +3016,9 @@ export enum EmbedEvent {
|
|
|
3002
3016
|
DownloadAsPng = 'downloadAsPng',
|
|
3003
3017
|
/**
|
|
3004
3018
|
* Emitted when the Download as PDF action is triggered on an Answer
|
|
3019
|
+
* Payload varies by context: {@link VizScopedRequest} (Search, Answer; plus
|
|
3020
|
+
* liveboardId on Liveboard), {@link RequiredVizRequest} (Spotter). trigger()
|
|
3021
|
+
* accepts the union now; per-context enforced next release.
|
|
3005
3022
|
* Use start:true to subscribe to when download as PDF is initiated, or end:true to
|
|
3006
3023
|
* subscribe to when download as PDF is completed. Default is end:true.
|
|
3007
3024
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
@@ -3018,6 +3035,9 @@ export enum EmbedEvent {
|
|
|
3018
3035
|
DownloadAsPdf = 'downloadAsPdf',
|
|
3019
3036
|
/**
|
|
3020
3037
|
* Emitted when the Download as CSV action is triggered on an Answer.
|
|
3038
|
+
* Payload varies by context: {@link VizScopedRequest} (Search, Answer,
|
|
3039
|
+
* Liveboard), {@link RequiredVizRequest} (Spotter, vizId required). trigger()
|
|
3040
|
+
* accepts the union now; per-context enforced next release.
|
|
3021
3041
|
* Use start:true to subscribe to when download as CSV is initiated, or end:true to
|
|
3022
3042
|
* subscribe to when download as CSV is completed. Default is end:true.
|
|
3023
3043
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
@@ -3034,6 +3054,9 @@ export enum EmbedEvent {
|
|
|
3034
3054
|
DownloadAsCsv = 'downloadAsCsv',
|
|
3035
3055
|
/**
|
|
3036
3056
|
* Emitted when the Download as XLSX action is triggered on an Answer.
|
|
3057
|
+
* Payload varies by context: {@link VizScopedRequest} (Search, Answer,
|
|
3058
|
+
* Liveboard), {@link RequiredVizRequest} (Spotter, vizId required). trigger()
|
|
3059
|
+
* accepts the union now; per-context enforced next release.
|
|
3037
3060
|
* Use start:true to subscribe to when download as XLSX is initiated, or end:true to
|
|
3038
3061
|
* subscribe to when download as XLSX is completed. Default is end:true.
|
|
3039
3062
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
@@ -3312,6 +3335,9 @@ export enum EmbedEvent {
|
|
|
3312
3335
|
Schedule = 'subscription',
|
|
3313
3336
|
/**
|
|
3314
3337
|
* Emitted when a user clicks **Edit** on a Liveboard or visualization
|
|
3338
|
+
* Payload varies by context: {@link VizScopedRequest} (Liveboard),
|
|
3339
|
+
* {@link RequiredVizRequest} (Spotter, vizId required). trigger() accepts the
|
|
3340
|
+
* union now; per-context enforced next release.
|
|
3315
3341
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
3316
3342
|
* @example
|
|
3317
3343
|
* ```js
|
|
@@ -4404,6 +4430,7 @@ export enum HostEvent {
|
|
|
4404
4430
|
* the search query string.
|
|
4405
4431
|
* Supported in `AppEmbed` and `SearchEmbed` deployments.
|
|
4406
4432
|
* Includes the following properties:
|
|
4433
|
+
* Payload: {@link SearchRequest}.
|
|
4407
4434
|
* @param - Includes the following keys:
|
|
4408
4435
|
* - `searchQuery`: Query string with search tokens.
|
|
4409
4436
|
* - `dataSources`: Data source GUID to search on.
|
|
@@ -4431,6 +4458,9 @@ export enum HostEvent {
|
|
|
4431
4458
|
Search = 'search',
|
|
4432
4459
|
/**
|
|
4433
4460
|
* Triggers a drill on certain points of the specified column
|
|
4461
|
+
* Payload: {@link DrillDownRequest}; in Liveboard context vizId is required
|
|
4462
|
+
* ({@link RequiredVizRequest}). trigger() accepts the union now; per-context
|
|
4463
|
+
* enforced next release.
|
|
4434
4464
|
* Includes the following properties:
|
|
4435
4465
|
* @param - Includes the following keys:
|
|
4436
4466
|
* - `points`: An object containing `selectedPoints` and/or `clickedPoint`
|
|
@@ -4510,6 +4540,8 @@ export enum HostEvent {
|
|
|
4510
4540
|
Reload = 'reload',
|
|
4511
4541
|
/**
|
|
4512
4542
|
* Get iframe URL for the current embed view.
|
|
4543
|
+
* Payload: none.
|
|
4544
|
+
* Response: {@link GetIframeUrlResponse}.
|
|
4513
4545
|
* @example
|
|
4514
4546
|
* ```js
|
|
4515
4547
|
* const url = embed.trigger(HostEvent.GetIframeUrl);
|
|
@@ -4528,6 +4560,7 @@ export enum HostEvent {
|
|
|
4528
4560
|
GetIframeUrl = 'GetIframeUrl',
|
|
4529
4561
|
/**
|
|
4530
4562
|
* Display specific visualizations on a Liveboard.
|
|
4563
|
+
* Payload: `string[]`.
|
|
4531
4564
|
* @param - An array of GUIDs of the visualization to show. The visualization IDs not passed
|
|
4532
4565
|
* in this parameter will be hidden.
|
|
4533
4566
|
* @example
|
|
@@ -4550,6 +4583,7 @@ export enum HostEvent {
|
|
|
4550
4583
|
SetVisibleVizs = 'SetPinboardVisibleVizs',
|
|
4551
4584
|
/**
|
|
4552
4585
|
* Set a Liveboard tab as an active tab.
|
|
4586
|
+
* Payload: {@link SetActiveTabRequest}.
|
|
4553
4587
|
* @param - tabId - string of id of Tab to show
|
|
4554
4588
|
* @example
|
|
4555
4589
|
* ```js
|
|
@@ -4577,6 +4611,7 @@ export enum HostEvent {
|
|
|
4577
4611
|
* and `AppEmbed` only. In full application embedding, this event updates
|
|
4578
4612
|
* the runtime filters applied on the Liveboard and saved Answer objects.
|
|
4579
4613
|
*
|
|
4614
|
+
* Payload: {@link RuntimeFilter}[].
|
|
4580
4615
|
* @param - Array of {@link RuntimeFilter} objects. Each item includes:
|
|
4581
4616
|
* - `columnName`: Name of the column to filter on.
|
|
4582
4617
|
* - `operator`: {@link RuntimeFilterOp} to apply. For more information, see
|
|
@@ -4618,6 +4653,7 @@ export enum HostEvent {
|
|
|
4618
4653
|
* Accepts either a plain value or an object with `path`
|
|
4619
4654
|
* and an optional `replace` flag.
|
|
4620
4655
|
*
|
|
4656
|
+
* Payload: `string` | `number` | {@link NavigateRequest}.
|
|
4621
4657
|
* @param data - A string path, a numeric history delta, or an object
|
|
4622
4658
|
* `{ path: string | number, replace?: boolean }`.
|
|
4623
4659
|
* - `path` — the route to navigate to, or a history delta such as `1`
|
|
@@ -4645,6 +4681,9 @@ export enum HostEvent {
|
|
|
4645
4681
|
/**
|
|
4646
4682
|
* Open the filter panel for a particular column.
|
|
4647
4683
|
* Works with Search and Liveboard embed.
|
|
4684
|
+
* Payload: {@link OpenFilterRequest} (the cross-context superset). The
|
|
4685
|
+
* accepted fields vary by context: {@link OpenFilterLiveboardRequest},
|
|
4686
|
+
* {@link OpenFilterSpotterRequest}, {@link OpenFilterSearchRequest}.
|
|
4648
4687
|
* @param - { columnId: string,
|
|
4649
4688
|
* name: string,
|
|
4650
4689
|
* type: ATTRIBUTE/MEASURE,
|
|
@@ -4727,6 +4766,7 @@ export enum HostEvent {
|
|
|
4727
4766
|
/**
|
|
4728
4767
|
* Open the parameter panel for a particular parameter on a Liveboard.
|
|
4729
4768
|
* Mirrors {@link HostEvent.OpenFilter} for parameters.
|
|
4769
|
+
* Payload: {@link OpenParameterRequest}.
|
|
4730
4770
|
* @param - Includes the following keys:
|
|
4731
4771
|
* - `parameter`: An object identifying the parameter to open, for
|
|
4732
4772
|
* example, `{ parameterId: '<parameter-GUID>' }`.
|
|
@@ -4758,6 +4798,7 @@ export enum HostEvent {
|
|
|
4758
4798
|
OpenParameter = 'openParameter',
|
|
4759
4799
|
/**
|
|
4760
4800
|
* Add columns to the current search query.
|
|
4801
|
+
* Payload: `{ columnIds: string[] }`.
|
|
4761
4802
|
* @param - { columnIds: string[] }
|
|
4762
4803
|
* @example
|
|
4763
4804
|
* ```js
|
|
@@ -4776,6 +4817,7 @@ export enum HostEvent {
|
|
|
4776
4817
|
AddColumns = 'addColumns',
|
|
4777
4818
|
/**
|
|
4778
4819
|
* Remove a column from the current search query.
|
|
4820
|
+
* Payload: `{ columnId: string }`.
|
|
4779
4821
|
* @param - { columnId: string }
|
|
4780
4822
|
* @example
|
|
4781
4823
|
* ```js
|
|
@@ -4800,6 +4842,8 @@ export enum HostEvent {
|
|
|
4800
4842
|
* sorting, toggling of legends, and data drill down.
|
|
4801
4843
|
* For more information, see
|
|
4802
4844
|
* link:https://developers.thoughtspot.com/docs/fetch-data-and-report-apis#transient-lb-content[Liveboard data with unsaved changes].
|
|
4845
|
+
* Payload: none.
|
|
4846
|
+
* Response: {@link GetExportRequestForCurrentPinboardResponse}.
|
|
4803
4847
|
* @example
|
|
4804
4848
|
* ```js
|
|
4805
4849
|
* liveboardEmbed.trigger(HostEvent.getExportRequestForCurrentPinboard).then(
|
|
@@ -4821,6 +4865,8 @@ export enum HostEvent {
|
|
|
4821
4865
|
* requiring additional user input via the *Pin to Liveboard* modal, define
|
|
4822
4866
|
* the following parameters:
|
|
4823
4867
|
*
|
|
4868
|
+
* Payload: {@link PinAnswerToLiveboardRequest}.
|
|
4869
|
+
* Response: {@link PinAnswerToLiveboardResponse}.
|
|
4824
4870
|
* @param - Includes the following keys:
|
|
4825
4871
|
* - `vizId`: GUID of the saved Answer or Spotter visualization ID to pin to a
|
|
4826
4872
|
* Liveboard.
|
|
@@ -4935,6 +4981,7 @@ export enum HostEvent {
|
|
|
4935
4981
|
LiveboardInfo = 'pinboardInfo',
|
|
4936
4982
|
/**
|
|
4937
4983
|
* Trigger the **Schedule** action on an embedded Liveboard.
|
|
4984
|
+
* Payload: {@link VizScopedRequest}.
|
|
4938
4985
|
* @example
|
|
4939
4986
|
* ```js
|
|
4940
4987
|
* liveboardEmbed.trigger(HostEvent.Schedule)
|
|
@@ -4950,6 +4997,7 @@ export enum HostEvent {
|
|
|
4950
4997
|
Schedule = 'subscription',
|
|
4951
4998
|
/**
|
|
4952
4999
|
* Trigger the **Manage schedule** action on an embedded Liveboard
|
|
5000
|
+
* Payload: {@link VizScopedRequest}.
|
|
4953
5001
|
* @example
|
|
4954
5002
|
* ```js
|
|
4955
5003
|
* liveboardEmbed.trigger(HostEvent.SchedulesList)
|
|
@@ -4966,6 +5014,7 @@ export enum HostEvent {
|
|
|
4966
5014
|
/**
|
|
4967
5015
|
* Trigger the **Export TML** action on an embedded Liveboard or
|
|
4968
5016
|
* Answer.
|
|
5017
|
+
* Payload: {@link VizScopedRequest}.
|
|
4969
5018
|
* @example
|
|
4970
5019
|
* ```js
|
|
4971
5020
|
* liveboardEmbed.trigger(HostEvent.ExportTML)
|
|
@@ -4988,6 +5037,7 @@ export enum HostEvent {
|
|
|
4988
5037
|
/**
|
|
4989
5038
|
* Trigger the **Edit TML** action on an embedded Liveboard or
|
|
4990
5039
|
* saved Answers in the full application embedding.
|
|
5040
|
+
* Payload: {@link VizScopedRequest}.
|
|
4991
5041
|
* @example
|
|
4992
5042
|
* ```js
|
|
4993
5043
|
* liveboardEmbed.trigger(HostEvent.EditTML)
|
|
@@ -5009,6 +5059,7 @@ export enum HostEvent {
|
|
|
5009
5059
|
EditTML = 'editTSL',
|
|
5010
5060
|
/**
|
|
5011
5061
|
* Trigger the **Update TML** action on an embedded Liveboard.
|
|
5062
|
+
* Payload: {@link VizScopedRequest}.
|
|
5012
5063
|
* @example
|
|
5013
5064
|
* ```js
|
|
5014
5065
|
* liveboardEmbed.trigger(HostEvent.UpdateTML)
|
|
@@ -5026,6 +5077,7 @@ export enum HostEvent {
|
|
|
5026
5077
|
* Trigger the **Download PDF** action on an embedded Liveboard,
|
|
5027
5078
|
* visualization or Answer.
|
|
5028
5079
|
*
|
|
5080
|
+
* Payload: {@link VizScopedRequest} plus optional `liveboardId`.
|
|
5029
5081
|
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5030
5082
|
*
|
|
5031
5083
|
* **NOTE**: The **Download** > **PDF** action is available on
|
|
@@ -5076,6 +5128,7 @@ export enum HostEvent {
|
|
|
5076
5128
|
/**
|
|
5077
5129
|
* Trigger the **AI Highlights** action on an embedded Liveboard
|
|
5078
5130
|
*
|
|
5131
|
+
* Payload: none.
|
|
5079
5132
|
* @example
|
|
5080
5133
|
* ```js
|
|
5081
5134
|
* liveboardEmbed.trigger(HostEvent.AIHighlights)
|
|
@@ -5130,6 +5183,9 @@ export enum HostEvent {
|
|
|
5130
5183
|
MakeACopy = 'makeACopy',
|
|
5131
5184
|
/**
|
|
5132
5185
|
* Trigger the **Delete** action for a Liveboard.
|
|
5186
|
+
* Payload varies by context: {@link RequiredVizRequest} (Liveboard, vizId
|
|
5187
|
+
* required), {@link VizScopedRequest} (Search). trigger() accepts the union
|
|
5188
|
+
* now; per-context enforced next release.
|
|
5133
5189
|
* @example
|
|
5134
5190
|
* ```js
|
|
5135
5191
|
* appEmbed.trigger(HostEvent.Remove)
|
|
@@ -5144,6 +5200,7 @@ export enum HostEvent {
|
|
|
5144
5200
|
Remove = 'delete',
|
|
5145
5201
|
/**
|
|
5146
5202
|
* Trigger the **Explore** action on a visualization.
|
|
5203
|
+
* Payload: {@link RequiredVizRequest}.
|
|
5147
5204
|
* @param - an object with `vizId` as a key
|
|
5148
5205
|
* @example
|
|
5149
5206
|
* ```js
|
|
@@ -5163,6 +5220,7 @@ export enum HostEvent {
|
|
|
5163
5220
|
/**
|
|
5164
5221
|
* Trigger the **Create alert** action on a KPI chart
|
|
5165
5222
|
* in a Liveboard or saved Answer.
|
|
5223
|
+
* Payload: {@link VizScopedRequest}.
|
|
5166
5224
|
* @param - an object with `vizId` as a key
|
|
5167
5225
|
* @example
|
|
5168
5226
|
* ```js
|
|
@@ -5194,6 +5252,7 @@ export enum HostEvent {
|
|
|
5194
5252
|
/**
|
|
5195
5253
|
* Trigger the **Manage alerts** action on a KPI chart
|
|
5196
5254
|
* in a visualization or saved Answer.
|
|
5255
|
+
* Payload: {@link VizScopedRequest}.
|
|
5197
5256
|
* @param - an object with `vizId` as a key
|
|
5198
5257
|
* @example
|
|
5199
5258
|
* ```js
|
|
@@ -5231,6 +5290,7 @@ export enum HostEvent {
|
|
|
5231
5290
|
* on a Liveboard.
|
|
5232
5291
|
*
|
|
5233
5292
|
* This event is not supported in visualization embed and search embed.
|
|
5293
|
+
* Payload: {@link VizScopedRequest}.
|
|
5234
5294
|
* @param - Object parameter. Includes the following keys:
|
|
5235
5295
|
* - `vizId`: To trigger the action for a specific visualization in Liveboard embed,
|
|
5236
5296
|
* pass in `vizId` as a key. In Spotter embed, `vizId` refers to the Answer ID and
|
|
@@ -5273,6 +5333,7 @@ export enum HostEvent {
|
|
|
5273
5333
|
Edit = 'edit',
|
|
5274
5334
|
/**
|
|
5275
5335
|
* Trigger the **Copy link** action on a Liveboard or visualization
|
|
5336
|
+
* Payload: {@link VizScopedRequest}.
|
|
5276
5337
|
* @param - object - to trigger the action for a
|
|
5277
5338
|
* specific visualization in Liveboard embed, pass in `vizId` as a key
|
|
5278
5339
|
* @example
|
|
@@ -5318,6 +5379,7 @@ export enum HostEvent {
|
|
|
5318
5379
|
CopyLink = 'embedDocument',
|
|
5319
5380
|
/**
|
|
5320
5381
|
* Trigger the **Present** action on a Liveboard or visualization
|
|
5382
|
+
* Payload: {@link VizScopedRequest}.
|
|
5321
5383
|
* @param - object - to trigger the action for a specific visualization
|
|
5322
5384
|
* in Liveboard embed, pass in `vizId` as a key
|
|
5323
5385
|
* @example
|
|
@@ -5363,6 +5425,8 @@ export enum HostEvent {
|
|
|
5363
5425
|
Present = 'present',
|
|
5364
5426
|
/**
|
|
5365
5427
|
* Get TML for the current search.
|
|
5428
|
+
* Payload: {@link GetTMLRequest}.
|
|
5429
|
+
* Response: `Record<string, any>`.
|
|
5366
5430
|
* @example
|
|
5367
5431
|
* ```js
|
|
5368
5432
|
* searchEmbed.trigger(HostEvent.GetTML).then((tml) => {
|
|
@@ -5412,6 +5476,7 @@ export enum HostEvent {
|
|
|
5412
5476
|
* Trigger the **Show underlying data** action on a
|
|
5413
5477
|
* chart or table.
|
|
5414
5478
|
*
|
|
5479
|
+
* Payload: {@link VizScopedRequest}.
|
|
5415
5480
|
* @param - an object with vizId as a key
|
|
5416
5481
|
* @example
|
|
5417
5482
|
* ```js
|
|
@@ -5445,6 +5510,7 @@ export enum HostEvent {
|
|
|
5445
5510
|
* Trigger the **Delete** action for a visualization
|
|
5446
5511
|
* in an embedded Liveboard, or a chart or table
|
|
5447
5512
|
* generated from Search.
|
|
5513
|
+
* Payload: {@link VizScopedRequest}.
|
|
5448
5514
|
* @param - Liveboard embed takes an object with `vizId` as a key.
|
|
5449
5515
|
* Can be left empty if embedding Search or visualization.
|
|
5450
5516
|
* @example
|
|
@@ -5473,6 +5539,7 @@ export enum HostEvent {
|
|
|
5473
5539
|
/**
|
|
5474
5540
|
* Trigger the **SpotIQ analyze** action on a
|
|
5475
5541
|
* chart or table.
|
|
5542
|
+
* Payload: {@link VizScopedRequest}.
|
|
5476
5543
|
* @param - Liveboard embed takes `vizId` as a
|
|
5477
5544
|
* key. Can be left undefined when embedding Search or
|
|
5478
5545
|
* visualization.
|
|
@@ -5535,6 +5602,7 @@ export enum HostEvent {
|
|
|
5535
5602
|
/**
|
|
5536
5603
|
* Trigger the **Download** > **PNG** action on
|
|
5537
5604
|
* charts in the embedded view.
|
|
5605
|
+
* Payload: {@link VizScopedRequest}.
|
|
5538
5606
|
* @example
|
|
5539
5607
|
* ```js
|
|
5540
5608
|
* liveboardEmbed.trigger(HostEvent.DownloadAsPng,
|
|
@@ -5566,6 +5634,7 @@ export enum HostEvent {
|
|
|
5566
5634
|
/**
|
|
5567
5635
|
* Trigger the **Download** > **CSV** action on tables in
|
|
5568
5636
|
* the embedded view.
|
|
5637
|
+
* Payload: {@link VizScopedRequest}.
|
|
5569
5638
|
* @param - `vizId` refers to the Visualization ID in Spotter embed and is required in Spotter embed.
|
|
5570
5639
|
* @example
|
|
5571
5640
|
* ```js
|
|
@@ -5605,6 +5674,7 @@ export enum HostEvent {
|
|
|
5605
5674
|
/**
|
|
5606
5675
|
* Trigger the **Download** > **XLSX** action on tables
|
|
5607
5676
|
* in the embedded view.
|
|
5677
|
+
* Payload: {@link VizScopedRequest}.
|
|
5608
5678
|
* @param - `vizId` refers to the Visualization ID in Spotter embed and is required in Spotter embed.
|
|
5609
5679
|
* @example
|
|
5610
5680
|
* ```js
|
|
@@ -5644,6 +5714,7 @@ export enum HostEvent {
|
|
|
5644
5714
|
/**
|
|
5645
5715
|
* Trigger the **Share** action on an embedded
|
|
5646
5716
|
* Liveboard or Answer.
|
|
5717
|
+
* Payload: {@link VizScopedRequest}.
|
|
5647
5718
|
* @example
|
|
5648
5719
|
* ```js
|
|
5649
5720
|
* liveboardEmbed.trigger(HostEvent.Share)
|
|
@@ -5670,6 +5741,7 @@ export enum HostEvent {
|
|
|
5670
5741
|
* Trigger the **Save** action on a Liveboard, Answer, or Spotter.
|
|
5671
5742
|
* Saves the changes.
|
|
5672
5743
|
*
|
|
5744
|
+
* Payload: {@link VizScopedRequest}.
|
|
5673
5745
|
* @param - `vizId` refers to the Spotter Visualization Id used in Spotter embed.
|
|
5674
5746
|
* It is required and can be retrieved from the data embed event.
|
|
5675
5747
|
*
|
|
@@ -5721,6 +5793,7 @@ export enum HostEvent {
|
|
|
5721
5793
|
/**
|
|
5722
5794
|
* Trigger the **Sync to Sheets** action on an embedded visualization or Answer
|
|
5723
5795
|
* Sends data from an Answer or Liveboard visualization to a Google sheet.
|
|
5796
|
+
* Payload: {@link VizScopedRequest}.
|
|
5724
5797
|
* @param - an object with `vizId` as a key
|
|
5725
5798
|
* @example
|
|
5726
5799
|
* ```js
|
|
@@ -5751,6 +5824,7 @@ export enum HostEvent {
|
|
|
5751
5824
|
* Trigger the **Sync to Other Apps** action on an embedded visualization or Answer
|
|
5752
5825
|
* Sends data from an Answer or Liveboard visualization to third-party apps such
|
|
5753
5826
|
* as Slack, Salesforce, Microsoft Teams, ServiceNow and so on.
|
|
5827
|
+
* Payload: {@link VizScopedRequest}.
|
|
5754
5828
|
* @param - an object with vizId as a key
|
|
5755
5829
|
* @example
|
|
5756
5830
|
* ```js
|
|
@@ -5781,6 +5855,7 @@ export enum HostEvent {
|
|
|
5781
5855
|
* Trigger the **Manage pipelines** action on an embedded
|
|
5782
5856
|
* visualization or Answer.
|
|
5783
5857
|
* Allows users to manage ThoughtSpot Sync pipelines.
|
|
5858
|
+
* Payload: {@link VizScopedRequest}.
|
|
5784
5859
|
* @param - an object with `vizId` as a key
|
|
5785
5860
|
* @example
|
|
5786
5861
|
* ```js
|
|
@@ -5809,6 +5884,7 @@ export enum HostEvent {
|
|
|
5809
5884
|
ManagePipelines = 'manage-pipeline',
|
|
5810
5885
|
/**
|
|
5811
5886
|
* Reset search operation on the Search or Answer page.
|
|
5887
|
+
* Payload: none.
|
|
5812
5888
|
* @example
|
|
5813
5889
|
* ```js
|
|
5814
5890
|
* searchEmbed.trigger(HostEvent.ResetSearch)
|
|
@@ -5836,6 +5912,8 @@ export enum HostEvent {
|
|
|
5836
5912
|
* whole Liveboard.
|
|
5837
5913
|
* The `applicability` attribute is available from SDK: 1.53.0 |
|
|
5838
5914
|
* ThoughtSpot: 26.10.0.cl.
|
|
5915
|
+
* Payload: {@link GetFiltersRequest}.
|
|
5916
|
+
* Response: {@link GetFiltersResponse}.
|
|
5839
5917
|
* @example
|
|
5840
5918
|
* ```js
|
|
5841
5919
|
* const data = await liveboardEmbed.trigger(HostEvent.GetFilters);
|
|
@@ -5855,6 +5933,7 @@ export enum HostEvent {
|
|
|
5855
5933
|
GetFilters = 'getFilters',
|
|
5856
5934
|
/**
|
|
5857
5935
|
* Update one or several filters applied on a Liveboard.
|
|
5936
|
+
* Payload: {@link UpdateFiltersRequest}.
|
|
5858
5937
|
* @param - Includes the following keys:
|
|
5859
5938
|
* - `filter`: A single filter object containing column name, filter operator, and
|
|
5860
5939
|
* values.
|
|
@@ -5983,6 +6062,8 @@ export enum HostEvent {
|
|
|
5983
6062
|
UpdateFilters = 'updateFilters',
|
|
5984
6063
|
/**
|
|
5985
6064
|
* Get tab details for the current Liveboard.
|
|
6065
|
+
* Payload: none.
|
|
6066
|
+
* Response: {@link GetTabsResponse}.
|
|
5986
6067
|
* @example
|
|
5987
6068
|
* ```js
|
|
5988
6069
|
* liveboardEmbed.trigger(HostEvent.GetTabs).then((tabDetails) => {
|
|
@@ -6008,6 +6089,8 @@ export enum HostEvent {
|
|
|
6008
6089
|
/**
|
|
6009
6090
|
* Get group details for the current Liveboard.
|
|
6010
6091
|
* Mirrors {@link HostEvent.GetTabs} for filter/parameter groups.
|
|
6092
|
+
* Payload: none.
|
|
6093
|
+
* Response: {@link GetGroupsResponse}.
|
|
6011
6094
|
* @example
|
|
6012
6095
|
* ```js
|
|
6013
6096
|
* liveboardEmbed.trigger(HostEvent.GetGroups).then((groupDetails) => {
|
|
@@ -6032,6 +6115,7 @@ export enum HostEvent {
|
|
|
6032
6115
|
GetGroups = 'getGroups',
|
|
6033
6116
|
/**
|
|
6034
6117
|
* Set the visible tabs on a Liveboard.
|
|
6118
|
+
* Payload: `string[]`.
|
|
6035
6119
|
* @param - an array of ids of tabs to show, the IDs not passed
|
|
6036
6120
|
* will be hidden.
|
|
6037
6121
|
* @example
|
|
@@ -6054,6 +6138,7 @@ export enum HostEvent {
|
|
|
6054
6138
|
SetVisibleTabs = 'SetPinboardVisibleTabs',
|
|
6055
6139
|
/**
|
|
6056
6140
|
* Set the hidden tabs on a Liveboard.
|
|
6141
|
+
* Payload: `string[]`.
|
|
6057
6142
|
* @param - an array of the IDs of the tabs to hide.
|
|
6058
6143
|
* The IDs not passed will be shown.
|
|
6059
6144
|
* @example
|
|
@@ -6082,6 +6167,8 @@ export enum HostEvent {
|
|
|
6082
6167
|
* `getAnswerService()` method on the embed instance to get an AnswerService
|
|
6083
6168
|
* object that provides a more convenient interface for working with answers.
|
|
6084
6169
|
*
|
|
6170
|
+
* Payload: {@link GetAnswerSessionRequest}.
|
|
6171
|
+
* Response: {@link GetAnswerSessionResponse}.
|
|
6085
6172
|
* @example
|
|
6086
6173
|
* ```js
|
|
6087
6174
|
* // Preferred way to get an AnswerService
|
|
@@ -6109,6 +6196,7 @@ export enum HostEvent {
|
|
|
6109
6196
|
GetAnswerSession = 'getAnswerSession',
|
|
6110
6197
|
/**
|
|
6111
6198
|
* Trigger the *Ask Sage* action for visualizations
|
|
6199
|
+
* Payload: {@link RequiredVizRequest}.
|
|
6112
6200
|
* @example
|
|
6113
6201
|
* ```js
|
|
6114
6202
|
* liveboardEmbed.trigger(HostEvent.AskSage,
|
|
@@ -6120,6 +6208,7 @@ export enum HostEvent {
|
|
|
6120
6208
|
/**
|
|
6121
6209
|
* Trigger cross filter update action on a Liveboard.
|
|
6122
6210
|
*
|
|
6211
|
+
* Payload: {@link UpdateCrossFilterRequest}.
|
|
6123
6212
|
* @example
|
|
6124
6213
|
* ```js
|
|
6125
6214
|
* liveboardEmbed.trigger(HostEvent.UpdateCrossFilter, {
|
|
@@ -6135,7 +6224,9 @@ export enum HostEvent {
|
|
|
6135
6224
|
UpdateCrossFilter = 'UpdateCrossFilter',
|
|
6136
6225
|
/**
|
|
6137
6226
|
* Trigger reset action for a personalized Liveboard view.
|
|
6138
|
-
* This event is deprecated.
|
|
6227
|
+
* This event is deprecated.
|
|
6228
|
+
* Use {@link HostEvent.ResetLiveboardPersonalizedView} instead.
|
|
6229
|
+
* Payload: none.
|
|
6139
6230
|
* @example
|
|
6140
6231
|
* ```js
|
|
6141
6232
|
* liveboardEmbed.trigger(HostEvent.ResetLiveboardPersonalisedView);
|
|
@@ -6156,6 +6247,7 @@ export enum HostEvent {
|
|
|
6156
6247
|
/**
|
|
6157
6248
|
* Triggers an action to update Parameter values on embedded
|
|
6158
6249
|
* Answers, Liveboard, and Spotter answer in Edit mode.
|
|
6250
|
+
* Payload: {@link RuntimeParameter}[].
|
|
6159
6251
|
* @param - Includes the following keys for each item:
|
|
6160
6252
|
* - `name`: Name of the parameter.
|
|
6161
6253
|
* - `value`: The value to set for the parameter.
|
|
@@ -6213,6 +6305,8 @@ export enum HostEvent {
|
|
|
6213
6305
|
* whole Liveboard.
|
|
6214
6306
|
* The `applicability` attribute is available from SDK: 1.53.0 |
|
|
6215
6307
|
* ThoughtSpot: 26.10.0.cl.
|
|
6308
|
+
* Payload: none.
|
|
6309
|
+
* Response: {@link GetParametersResponse}.
|
|
6216
6310
|
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
6217
6311
|
* ```js
|
|
6218
6312
|
* liveboardEmbed.trigger(HostEvent.GetParameters).then((parameter) => {
|
|
@@ -6250,6 +6344,7 @@ export enum HostEvent {
|
|
|
6250
6344
|
* ```js
|
|
6251
6345
|
* liveboardEmbed.trigger(HostEvent.UpdatePersonalisedView, {viewId: '1234'})
|
|
6252
6346
|
* ```
|
|
6347
|
+
* Payload: {@link PersonalisedViewRequest} (`viewId` only).
|
|
6253
6348
|
* @example
|
|
6254
6349
|
* ```js
|
|
6255
6350
|
* // Update personalized view from liveboard context
|
|
@@ -6282,6 +6377,7 @@ export enum HostEvent {
|
|
|
6282
6377
|
* If neither is provided, the Liveboard resets to the original/default view.
|
|
6283
6378
|
* When a `viewName` is provided and multiple views share
|
|
6284
6379
|
* the same name, the first match is selected.
|
|
6380
|
+
* Payload: {@link PersonalisedViewRequest}.
|
|
6285
6381
|
* @example
|
|
6286
6382
|
* ```js
|
|
6287
6383
|
* liveboardEmbed.trigger(
|
|
@@ -6325,6 +6421,8 @@ export enum HostEvent {
|
|
|
6325
6421
|
* If no parameters are specified, the save action is
|
|
6326
6422
|
* triggered with a modal to prompt users to
|
|
6327
6423
|
* add a name and description for the Answer.
|
|
6424
|
+
* Payload: {@link SaveAnswerRequest}.
|
|
6425
|
+
* Response: {@link SaveAnswerResponse}.
|
|
6328
6426
|
* @param - Includes the following keys:
|
|
6329
6427
|
* - `vizId`: Refers to the Answer ID in Spotter embed and is **required** in Spotter
|
|
6330
6428
|
* embed.
|
|
@@ -6410,6 +6508,7 @@ export enum HostEvent {
|
|
|
6410
6508
|
/**
|
|
6411
6509
|
* Triggers a search operation with the search tokens specified in
|
|
6412
6510
|
* the search query string in spotter embed.
|
|
6511
|
+
* Payload: {@link SpotterSearchRequest}.
|
|
6413
6512
|
* @param - Includes the following keys:
|
|
6414
6513
|
* - `query`: Text string in Natural Language format.
|
|
6415
6514
|
* - `executeSearch`: Boolean to execute search and update search query.
|
|
@@ -6434,6 +6533,7 @@ export enum HostEvent {
|
|
|
6434
6533
|
SpotterSearch = 'SpotterSearch',
|
|
6435
6534
|
/**
|
|
6436
6535
|
* Edits the last prompt in spotter embed.
|
|
6536
|
+
* Payload: `string`.
|
|
6437
6537
|
* @param - `query`: Text string
|
|
6438
6538
|
* @example
|
|
6439
6539
|
* ```js
|
|
@@ -6450,6 +6550,7 @@ export enum HostEvent {
|
|
|
6450
6550
|
EditLastPrompt = 'EditLastPrompt',
|
|
6451
6551
|
/**
|
|
6452
6552
|
* Opens the data source preview modal in Spotter Embed.
|
|
6553
|
+
* Payload: none.
|
|
6453
6554
|
* @example
|
|
6454
6555
|
* ```js
|
|
6455
6556
|
* spotterEmbed.trigger(HostEvent.PreviewSpotterData);
|
|
@@ -6485,6 +6586,7 @@ export enum HostEvent {
|
|
|
6485
6586
|
DataModelInstructions = 'DataModelInstructions',
|
|
6486
6587
|
/**
|
|
6487
6588
|
* Resets the Spotter Embed Conversation.
|
|
6589
|
+
* Payload: none.
|
|
6488
6590
|
* @example
|
|
6489
6591
|
* ```js
|
|
6490
6592
|
* spotterEmbed.trigger(HostEvent.ResetSpotterConversation);
|
|
@@ -6497,6 +6599,7 @@ export enum HostEvent {
|
|
|
6497
6599
|
* `conversationId` is **mandatory** — you must pass the id of the
|
|
6498
6600
|
* conversation to share. Also no-op when sharing is disabled
|
|
6499
6601
|
* (enableShareConversation off) or when already in the read-only shared view.
|
|
6602
|
+
* Payload: {@link ConversationScopedRequest}.
|
|
6500
6603
|
* @example
|
|
6501
6604
|
* ```js
|
|
6502
6605
|
* spotterEmbed.trigger(HostEvent.ShareSpotterConversation, { conversationId: 'abc' });
|
|
@@ -6506,6 +6609,7 @@ export enum HostEvent {
|
|
|
6506
6609
|
ShareSpotterConversation = 'ShareSpotterConversation',
|
|
6507
6610
|
/**
|
|
6508
6611
|
* Closes the Spotter share-conversation modal. No-op if none is open.
|
|
6612
|
+
* Payload: none.
|
|
6509
6613
|
* @example
|
|
6510
6614
|
* ```js
|
|
6511
6615
|
* spotterEmbed.trigger(HostEvent.CloseSpotterShareConversation);
|
|
@@ -6515,6 +6619,7 @@ export enum HostEvent {
|
|
|
6515
6619
|
CloseSpotterShareConversation = 'CloseSpotterShareConversation',
|
|
6516
6620
|
/**
|
|
6517
6621
|
* Exits the read-only shared-conversation view.
|
|
6622
|
+
* Payload: none.
|
|
6518
6623
|
* @example
|
|
6519
6624
|
* ```js
|
|
6520
6625
|
* spotterEmbed.trigger(HostEvent.ExitSpotterSharedConversation);
|
|
@@ -6524,6 +6629,7 @@ export enum HostEvent {
|
|
|
6524
6629
|
ExitSpotterSharedConversation = 'ExitSpotterSharedConversation',
|
|
6525
6630
|
/**
|
|
6526
6631
|
* Deletes the last prompt in spotter embed.
|
|
6632
|
+
* Payload: none.
|
|
6527
6633
|
* @example
|
|
6528
6634
|
* ```js
|
|
6529
6635
|
* spotterEmbed.trigger(HostEvent.DeleteLastPrompt);
|
|
@@ -6533,6 +6639,7 @@ export enum HostEvent {
|
|
|
6533
6639
|
DeleteLastPrompt = 'DeleteLastPrompt',
|
|
6534
6640
|
/**
|
|
6535
6641
|
* Toggle the visualization to chart or table view.
|
|
6642
|
+
* Payload: {@link RequiredVizRequest}.
|
|
6536
6643
|
* @param - `vizId ` refers to the Visualization ID in Spotter embed and is required.
|
|
6537
6644
|
* @example
|
|
6538
6645
|
* ```js
|
|
@@ -6571,6 +6678,7 @@ export enum HostEvent {
|
|
|
6571
6678
|
VisibleEmbedCoordinates = 'visibleEmbedCoordinates',
|
|
6572
6679
|
/**
|
|
6573
6680
|
* Trigger the *Spotter* action for visualizations present on the liveboard's vizzes.
|
|
6681
|
+
* Payload: {@link RequiredVizRequest}.
|
|
6574
6682
|
* @param - `vizId` refers to the Visualization ID in Spotter embed and is required.
|
|
6575
6683
|
* @example
|
|
6576
6684
|
* ```js
|
|
@@ -6634,6 +6742,7 @@ export enum HostEvent {
|
|
|
6634
6742
|
* instance. Contact your admin or ThoughtSpot Support to enable chat history on your
|
|
6635
6743
|
* instance.
|
|
6636
6744
|
*
|
|
6745
|
+
* Payload: {@link ConversationScopedRequest}.
|
|
6637
6746
|
* @version SDK: 1.53.0 | ThoughtSpot Cloud: 26.10.0.cl
|
|
6638
6747
|
* @example
|
|
6639
6748
|
* ```js
|
|
@@ -6652,6 +6761,7 @@ export enum HostEvent {
|
|
|
6652
6761
|
* instance. Contact your admin or ThoughtSpot Support to enable chat history on your
|
|
6653
6762
|
* instance.
|
|
6654
6763
|
*
|
|
6764
|
+
* Payload: {@link ConversationScopedRequest}.
|
|
6655
6765
|
* @version SDK: 1.53.0 | ThoughtSpot Cloud: 26.10.0.cl
|
|
6656
6766
|
* @example
|
|
6657
6767
|
* ```js
|
|
@@ -6677,6 +6787,7 @@ export enum HostEvent {
|
|
|
6677
6787
|
* Trigger the **Send Test Email** action in the Liveboard schedule modal.
|
|
6678
6788
|
* Sends a test schedule email to self or all recipients.
|
|
6679
6789
|
* Requires `isSendNowLiveboardSchedulingEnabled` to be enabled.
|
|
6790
|
+
* Payload: {@link ScheduleEmailRequest}.
|
|
6680
6791
|
* @example
|
|
6681
6792
|
* ```js
|
|
6682
6793
|
* liveboardEmbed.trigger(HostEvent.SendTestScheduleEmail, {
|
|
@@ -6696,6 +6807,7 @@ export enum HostEvent {
|
|
|
6696
6807
|
|
|
6697
6808
|
/**
|
|
6698
6809
|
* Sends a user message (prompt) to the SpotterViz panel programmatically.
|
|
6810
|
+
* Payload: `{ query: string }`.
|
|
6699
6811
|
* @version SDK: 1.50.0 | ThoughtSpot Cloud: 26.7.0.cl
|
|
6700
6812
|
* @param query - the prompt text to send.
|
|
6701
6813
|
* @example
|
|
@@ -6709,6 +6821,7 @@ export enum HostEvent {
|
|
|
6709
6821
|
|
|
6710
6822
|
/**
|
|
6711
6823
|
* Initializes a new SpotterViz conversation.
|
|
6824
|
+
* Payload: none.
|
|
6712
6825
|
* @version SDK: 1.50.0 | ThoughtSpot Cloud: 26.7.0.cl
|
|
6713
6826
|
* @example
|
|
6714
6827
|
* ```js
|
|
@@ -6719,6 +6832,7 @@ export enum HostEvent {
|
|
|
6719
6832
|
|
|
6720
6833
|
/**
|
|
6721
6834
|
* Opens the SpotterViz panel.
|
|
6835
|
+
* Payload: none.
|
|
6722
6836
|
* @version SDK: 1.50.0 | ThoughtSpot Cloud: 26.7.0.cl
|
|
6723
6837
|
* @example
|
|
6724
6838
|
* ```js
|
|
@@ -6729,6 +6843,7 @@ export enum HostEvent {
|
|
|
6729
6843
|
|
|
6730
6844
|
/**
|
|
6731
6845
|
* Closes the SpotterViz panel.
|
|
6846
|
+
* Payload: none.
|
|
6732
6847
|
* @version SDK: 1.50.0 | ThoughtSpot Cloud: 26.7.0.cl
|
|
6733
6848
|
* @example
|
|
6734
6849
|
* ```js
|
|
@@ -6740,6 +6855,7 @@ export enum HostEvent {
|
|
|
6740
6855
|
/**
|
|
6741
6856
|
* Clears browser cache and fetches new data for liveboard ChartViz Containers.
|
|
6742
6857
|
* Requires `enableLiveboardDataCache` to be enabled.
|
|
6858
|
+
* Payload: {@link ScheduleEmailRequest}.
|
|
6743
6859
|
* @example
|
|
6744
6860
|
* ```js
|
|
6745
6861
|
* liveboardEmbed.trigger(HostEvent.RefreshLiveboardBrowserCache);
|
|
@@ -6939,6 +7055,7 @@ export enum Param {
|
|
|
6939
7055
|
SpotterDataSources = 'spotterDataSources',
|
|
6940
7056
|
AnalystId = 'analystId',
|
|
6941
7057
|
OpenSpotterOnLiveboardByDefault = 'openSpotterOnLiveboardByDefault',
|
|
7058
|
+
ShowAnswerEditPanel = 'showAnswerEditPanel',
|
|
6942
7059
|
}
|
|
6943
7060
|
|
|
6944
7061
|
/**
|
|
@@ -8975,6 +9092,225 @@ export enum Action {
|
|
|
8975
9092
|
* ```
|
|
8976
9093
|
*/
|
|
8977
9094
|
SpotterOnLiveboard = 'spotterOnLiveboard',
|
|
9095
|
+
/**
|
|
9096
|
+
* Controls the visibility and disabled state of the "Chart Type" menu item
|
|
9097
|
+
* in Chart Settings V2.
|
|
9098
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
9099
|
+
* @example
|
|
9100
|
+
* ```js
|
|
9101
|
+
* {
|
|
9102
|
+
* hiddenActions: [Action.ChartTypeSettings],
|
|
9103
|
+
* disabledActions: [Action.ChartTypeSettings],
|
|
9104
|
+
* }
|
|
9105
|
+
* ```
|
|
9106
|
+
*/
|
|
9107
|
+
ChartTypeSettings = 'CHART_TYPE',
|
|
9108
|
+
/**
|
|
9109
|
+
* Controls the visibility and disabled state of the "Layout" menu item
|
|
9110
|
+
* in Chart Settings V2.
|
|
9111
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
9112
|
+
* @example
|
|
9113
|
+
* ```js
|
|
9114
|
+
* {
|
|
9115
|
+
* hiddenActions: [Action.LayoutSettings],
|
|
9116
|
+
* disabledActions: [Action.LayoutSettings],
|
|
9117
|
+
* }
|
|
9118
|
+
* ```
|
|
9119
|
+
*/
|
|
9120
|
+
LayoutSettings = 'LAYOUT',
|
|
9121
|
+
/**
|
|
9122
|
+
* Controls the visibility and disabled state of the "Column" menu item
|
|
9123
|
+
* in Chart Settings V2.
|
|
9124
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
9125
|
+
* @example
|
|
9126
|
+
* ```js
|
|
9127
|
+
* {
|
|
9128
|
+
* hiddenActions: [Action.ColumnSettings],
|
|
9129
|
+
* disabledActions: [Action.ColumnSettings],
|
|
9130
|
+
* }
|
|
9131
|
+
* ```
|
|
9132
|
+
*/
|
|
9133
|
+
ColumnSettings = 'COLUMN',
|
|
9134
|
+
/**
|
|
9135
|
+
* Controls the visibility and disabled state of the "Axis" menu item
|
|
9136
|
+
* in Chart Settings V2.
|
|
9137
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
9138
|
+
* @example
|
|
9139
|
+
* ```js
|
|
9140
|
+
* {
|
|
9141
|
+
* hiddenActions: [Action.AxisSettings],
|
|
9142
|
+
* disabledActions: [Action.AxisSettings],
|
|
9143
|
+
* }
|
|
9144
|
+
* ```
|
|
9145
|
+
*/
|
|
9146
|
+
AxisSettings = 'AXIS',
|
|
9147
|
+
/**
|
|
9148
|
+
* Controls the visibility and disabled state of the "Data Label" menu item
|
|
9149
|
+
* in Chart Settings V2.
|
|
9150
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
9151
|
+
* @example
|
|
9152
|
+
* ```js
|
|
9153
|
+
* {
|
|
9154
|
+
* hiddenActions: [Action.DataLabelSettings],
|
|
9155
|
+
* disabledActions: [Action.DataLabelSettings],
|
|
9156
|
+
* }
|
|
9157
|
+
* ```
|
|
9158
|
+
*/
|
|
9159
|
+
DataLabelSettings = 'DATA_LABEL',
|
|
9160
|
+
/**
|
|
9161
|
+
* Controls the visibility and disabled state of the "Tooltip" menu item
|
|
9162
|
+
* in Chart Settings V2.
|
|
9163
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
9164
|
+
* @example
|
|
9165
|
+
* ```js
|
|
9166
|
+
* {
|
|
9167
|
+
* hiddenActions: [Action.TooltipSettings],
|
|
9168
|
+
* disabledActions: [Action.TooltipSettings],
|
|
9169
|
+
* }
|
|
9170
|
+
* ```
|
|
9171
|
+
*/
|
|
9172
|
+
TooltipSettings = 'TOOLTIP',
|
|
9173
|
+
/**
|
|
9174
|
+
* Controls the visibility and disabled state of the "Legend" menu item
|
|
9175
|
+
* in Chart Settings V2.
|
|
9176
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
9177
|
+
* @example
|
|
9178
|
+
* ```js
|
|
9179
|
+
* {
|
|
9180
|
+
* hiddenActions: [Action.LegendSettings],
|
|
9181
|
+
* disabledActions: [Action.LegendSettings],
|
|
9182
|
+
* }
|
|
9183
|
+
* ```
|
|
9184
|
+
*/
|
|
9185
|
+
LegendSettings = 'LEGEND',
|
|
9186
|
+
/**
|
|
9187
|
+
* Controls the visibility and disabled state of the "Display" menu item
|
|
9188
|
+
* in Chart Settings V2.
|
|
9189
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
9190
|
+
* @example
|
|
9191
|
+
* ```js
|
|
9192
|
+
* {
|
|
9193
|
+
* hiddenActions: [Action.DisplaySettings],
|
|
9194
|
+
* disabledActions: [Action.DisplaySettings],
|
|
9195
|
+
* }
|
|
9196
|
+
* ```
|
|
9197
|
+
*/
|
|
9198
|
+
DisplaySettings = 'DISPLAY',
|
|
9199
|
+
/**
|
|
9200
|
+
* Controls the visibility and disabled state of the "Query Details" menu
|
|
9201
|
+
* item in Chart Settings V2.
|
|
9202
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
9203
|
+
* @example
|
|
9204
|
+
* ```js
|
|
9205
|
+
* {
|
|
9206
|
+
* hiddenActions: [Action.QuerySettings],
|
|
9207
|
+
* disabledActions: [Action.QuerySettings],
|
|
9208
|
+
* }
|
|
9209
|
+
* ```
|
|
9210
|
+
*/
|
|
9211
|
+
QuerySettings = 'QUERY_DETAILS',
|
|
9212
|
+
/**
|
|
9213
|
+
* Controls the visibility and disabled state of the "Custom Action" menu
|
|
9214
|
+
* item in Chart Settings V2.
|
|
9215
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
9216
|
+
* @example
|
|
9217
|
+
* ```js
|
|
9218
|
+
* {
|
|
9219
|
+
* hiddenActions: [Action.CustomSettings],
|
|
9220
|
+
* disabledActions: [Action.CustomSettings],
|
|
9221
|
+
* }
|
|
9222
|
+
* ```
|
|
9223
|
+
*/
|
|
9224
|
+
CustomSettings = 'CUSTOM_ACTION',
|
|
9225
|
+
/**
|
|
9226
|
+
* Controls the visibility and disabled state of the "Muze AI" menu item
|
|
9227
|
+
* in Chart Settings V2.
|
|
9228
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
9229
|
+
* @example
|
|
9230
|
+
* ```js
|
|
9231
|
+
* {
|
|
9232
|
+
* hiddenActions: [Action.MuzeAiSettings],
|
|
9233
|
+
* disabledActions: [Action.MuzeAiSettings],
|
|
9234
|
+
* }
|
|
9235
|
+
* ```
|
|
9236
|
+
*/
|
|
9237
|
+
MuzeAiSettings = 'MUZE_AI',
|
|
9238
|
+
/**
|
|
9239
|
+
* Controls the visibility and disabled state of the "R Analysis" menu item
|
|
9240
|
+
* in Chart Settings V2.
|
|
9241
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
9242
|
+
* @example
|
|
9243
|
+
* ```js
|
|
9244
|
+
* {
|
|
9245
|
+
* hiddenActions: [Action.RAnalysisSettings],
|
|
9246
|
+
* disabledActions: [Action.RAnalysisSettings],
|
|
9247
|
+
* }
|
|
9248
|
+
* ```
|
|
9249
|
+
*/
|
|
9250
|
+
RAnalysisSettings = 'R_ANALYSIS',
|
|
9251
|
+
/**
|
|
9252
|
+
* Controls the visibility and disabled state of the "Add to Collection" menu item.
|
|
9253
|
+
* @version SDK: 1.52.1 | ThoughtSpot Cloud: 26.5.0.cl
|
|
9254
|
+
* @example
|
|
9255
|
+
* ```js
|
|
9256
|
+
* {
|
|
9257
|
+
* hiddenActions: [Action.AddToCollection],
|
|
9258
|
+
* disabledActions: [Action.AddToCollection],
|
|
9259
|
+
* }
|
|
9260
|
+
* ```
|
|
9261
|
+
*/
|
|
9262
|
+
AddToCollection = 'addToCollection',
|
|
9263
|
+
/**
|
|
9264
|
+
* Controls the visibility and disabled state of the "Create Collection" button.
|
|
9265
|
+
* @version SDK: 1.52.1 | ThoughtSpot Cloud: 26.5.0.cl
|
|
9266
|
+
* @example
|
|
9267
|
+
* ```js
|
|
9268
|
+
* {
|
|
9269
|
+
* hiddenActions: [Action.CreateCollection],
|
|
9270
|
+
* disabledActions: [Action.CreateCollection],
|
|
9271
|
+
* }
|
|
9272
|
+
* ```
|
|
9273
|
+
*/
|
|
9274
|
+
CreateCollection = 'createCollection',
|
|
9275
|
+
/**
|
|
9276
|
+
* Controls the visibility and disabled state of the "Move" menu item in a
|
|
9277
|
+
* Collection.
|
|
9278
|
+
* @version SDK: 1.52.1 | ThoughtSpot Cloud: 26.5.0.cl
|
|
9279
|
+
* @example
|
|
9280
|
+
* ```js
|
|
9281
|
+
* {
|
|
9282
|
+
* hiddenActions: [Action.MoveToCollection],
|
|
9283
|
+
* disabledActions: [Action.MoveToCollection],
|
|
9284
|
+
* }
|
|
9285
|
+
* ```
|
|
9286
|
+
*/
|
|
9287
|
+
MoveToCollection = 'moveToCollection',
|
|
9288
|
+
/**
|
|
9289
|
+
* Controls the visibility and disabled state of the "Remove" menu item in a
|
|
9290
|
+
* Collection.
|
|
9291
|
+
* @version SDK: 1.52.1 | ThoughtSpot Cloud: 26.5.0.cl
|
|
9292
|
+
* @example
|
|
9293
|
+
* ```js
|
|
9294
|
+
* {
|
|
9295
|
+
* hiddenActions: [Action.RemoveFromCollection],
|
|
9296
|
+
* disabledActions: [Action.RemoveFromCollection],
|
|
9297
|
+
* }
|
|
9298
|
+
* ```
|
|
9299
|
+
*/
|
|
9300
|
+
RemoveFromCollection = 'removeFromCollection',
|
|
9301
|
+
/**
|
|
9302
|
+
* Controls the visibility and disabled state of the "Delete" menu item for a
|
|
9303
|
+
* Collection.
|
|
9304
|
+
* @version SDK: 1.52.1 | ThoughtSpot Cloud: 26.5.0.cl
|
|
9305
|
+
* @example
|
|
9306
|
+
* ```js
|
|
9307
|
+
* {
|
|
9308
|
+
* hiddenActions: [Action.DeleteCollection],
|
|
9309
|
+
* disabledActions: [Action.DeleteCollection],
|
|
9310
|
+
* }
|
|
9311
|
+
* ```
|
|
9312
|
+
*/
|
|
9313
|
+
DeleteCollection = 'deleteCollection',
|
|
8978
9314
|
}
|
|
8979
9315
|
export interface AnswerServiceType {
|
|
8980
9316
|
getAnswer?: (offset: number, batchSize: number) => any;
|
|
@@ -9025,6 +9361,11 @@ export interface VizPoint {
|
|
|
9025
9361
|
* @group Events
|
|
9026
9362
|
*/
|
|
9027
9363
|
export interface CustomActionPayload {
|
|
9364
|
+
/**
|
|
9365
|
+
* Id of the custom action that was triggered. Matches the `id` you set on
|
|
9366
|
+
* the {@link CustomAction}. Omitted on Liveboard-level code-based actions.
|
|
9367
|
+
*/
|
|
9368
|
+
id?: string;
|
|
9028
9369
|
contextMenuPoints?: {
|
|
9029
9370
|
clickedPoint: VizPoint;
|
|
9030
9371
|
selectedPoints: VizPoint[];
|
|
@@ -9045,21 +9386,58 @@ export interface CustomActionPayload {
|
|
|
9045
9386
|
vizId?: string;
|
|
9046
9387
|
}
|
|
9047
9388
|
|
|
9389
|
+
/**
|
|
9390
|
+
* A code-based custom action to inject into the embedded ThoughtSpot UI.
|
|
9391
|
+
* Pass an array of these as `customActions` in the embed view config. When a
|
|
9392
|
+
* user invokes the action, the host emits {@link EmbedEvent.CustomAction} with
|
|
9393
|
+
* a {@link CustomActionPayload} carrying the same `id`.
|
|
9394
|
+
*/
|
|
9048
9395
|
export interface CustomAction {
|
|
9396
|
+
/**
|
|
9397
|
+
* Display label shown on the action's button or menu item.
|
|
9398
|
+
*/
|
|
9049
9399
|
name: string;
|
|
9400
|
+
/**
|
|
9401
|
+
* Unique identifier for the action. Echoed back as `id` on the
|
|
9402
|
+
* {@link CustomActionPayload} when the action is invoked.
|
|
9403
|
+
*/
|
|
9050
9404
|
id: string;
|
|
9405
|
+
/**
|
|
9406
|
+
* Where the action appears: a primary button, the "More" menu, or the
|
|
9407
|
+
* right-click context menu. See {@link CustomActionsPosition}.
|
|
9408
|
+
*/
|
|
9051
9409
|
position: CustomActionsPosition;
|
|
9410
|
+
/**
|
|
9411
|
+
* The surface the action applies to (Liveboard, visualization, Answer, or
|
|
9412
|
+
* Spotter). See {@link CustomActionTarget}. The allowed `position` values
|
|
9413
|
+
* and scoping keys depend on the target.
|
|
9414
|
+
*/
|
|
9052
9415
|
target: CustomActionTarget;
|
|
9416
|
+
/**
|
|
9417
|
+
* Scope the action to specific objects by GUID. Which keys are allowed
|
|
9418
|
+
* depends on `target` (for example, a `VIZ` action may use `answerIds`,
|
|
9419
|
+
* `liveboardIds`, and `vizIds`).
|
|
9420
|
+
*/
|
|
9053
9421
|
metadataIds?: {
|
|
9054
9422
|
answerIds?: string[];
|
|
9055
9423
|
liveboardIds?: string[];
|
|
9056
9424
|
vizIds?: string[];
|
|
9057
9425
|
};
|
|
9426
|
+
/**
|
|
9427
|
+
* Scope the action by data model, using model GUIDs or column names.
|
|
9428
|
+
* Allowed for `VIZ`, `ANSWER`, and `SPOTTER` targets.
|
|
9429
|
+
*/
|
|
9058
9430
|
dataModelIds?: {
|
|
9059
9431
|
modelIds?: string[];
|
|
9060
9432
|
modelColumnNames?: string[];
|
|
9061
9433
|
};
|
|
9434
|
+
/**
|
|
9435
|
+
* Restrict the action to specific organizations by ID.
|
|
9436
|
+
*/
|
|
9062
9437
|
orgIds?: string[];
|
|
9438
|
+
/**
|
|
9439
|
+
* Restrict the action to specific user groups by ID.
|
|
9440
|
+
*/
|
|
9063
9441
|
groupIds?: string[];
|
|
9064
9442
|
}
|
|
9065
9443
|
|
|
@@ -10083,3 +10461,164 @@ export interface VisualizationOverrides {
|
|
|
10083
10461
|
/** Table visualization overrides */
|
|
10084
10462
|
table?: TableOverrides;
|
|
10085
10463
|
}
|
|
10464
|
+
|
|
10465
|
+
/**
|
|
10466
|
+
* The configuration object for the full-height behavior shared by the
|
|
10467
|
+
* Liveboard and app embeds.
|
|
10468
|
+
*
|
|
10469
|
+
* When `fullHeight` is enabled the SDK resizes the embed container to match the
|
|
10470
|
+
* height reported by the ThoughtSpot app, and — when lazy loading is also
|
|
10471
|
+
* enabled — keeps the app informed of the portion of the embed that is
|
|
10472
|
+
* currently visible so that visualizations load on demand.
|
|
10473
|
+
*/
|
|
10474
|
+
export interface FullHeightViewConfig {
|
|
10475
|
+
/**
|
|
10476
|
+
* If set to true, the embedded object container dynamically resizes
|
|
10477
|
+
* according to the height of the Liveboard.
|
|
10478
|
+
*
|
|
10479
|
+
* **Note**: Using fullHeight loads all visualizations on the
|
|
10480
|
+
* Liveboard simultaneously, which results in multiple warehouse
|
|
10481
|
+
* queries and potentially a longer wait for the topmost
|
|
10482
|
+
* visualizations to display on the screen.
|
|
10483
|
+
* Setting `fullHeight` to `false` fetches visualizations
|
|
10484
|
+
* incrementally as users scroll the page to view the charts and tables.
|
|
10485
|
+
*
|
|
10486
|
+
* From SDK 1.52.0, enabling `fullHeight` also turns on
|
|
10487
|
+
* {@link lazyLoadingForFullHeight} and
|
|
10488
|
+
* {@link enableScrollableContainerLazyLoading}, so visualizations load as
|
|
10489
|
+
* they scroll into view. Set either flag to `false` to opt out.
|
|
10490
|
+
*
|
|
10491
|
+
* Supported embed types: `LiveboardEmbed`, `AppEmbed`
|
|
10492
|
+
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1
|
|
10493
|
+
* @example
|
|
10494
|
+
* ```js
|
|
10495
|
+
* // Replace <EmbedComponent> with the embed component name.
|
|
10496
|
+
* // For example, AppEmbed or LiveboardEmbed
|
|
10497
|
+
* const embed = new <EmbedComponent>('#embed', {
|
|
10498
|
+
* ... // other view config
|
|
10499
|
+
* fullHeight: true,
|
|
10500
|
+
* });
|
|
10501
|
+
* ```
|
|
10502
|
+
*/
|
|
10503
|
+
fullHeight?: boolean;
|
|
10504
|
+
/**
|
|
10505
|
+
* This is the minimum height (in pixels) for a full-height Liveboard.
|
|
10506
|
+
* Setting this height helps resolve issues with empty Liveboards and
|
|
10507
|
+
* other screens navigable from a Liveboard.
|
|
10508
|
+
*
|
|
10509
|
+
* Supported embed types: `LiveboardEmbed`, `AppEmbed`
|
|
10510
|
+
* @version SDK: 1.44.2 | ThoughtSpot: 10.15.0.cl
|
|
10511
|
+
* @default 500
|
|
10512
|
+
* @example
|
|
10513
|
+
* ```js
|
|
10514
|
+
* // Replace <EmbedComponent> with the embed component name.
|
|
10515
|
+
* // For example, AppEmbed or LiveboardEmbed
|
|
10516
|
+
* const embed = new <EmbedComponent>('#embed', {
|
|
10517
|
+
* ... // other view config
|
|
10518
|
+
* fullHeight: true,
|
|
10519
|
+
* minimumHeight: 600,
|
|
10520
|
+
* });
|
|
10521
|
+
* ```
|
|
10522
|
+
*/
|
|
10523
|
+
minimumHeight?: number;
|
|
10524
|
+
/**
|
|
10525
|
+
* This is the minimum height (in pixels) for a full-height Liveboard.
|
|
10526
|
+
* Setting this height helps resolve issues with empty Liveboards and
|
|
10527
|
+
* other screens navigable from a Liveboard.
|
|
10528
|
+
*
|
|
10529
|
+
* Supported embed types: `LiveboardEmbed`, `AppEmbed`
|
|
10530
|
+
* @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
|
|
10531
|
+
* @deprecated Use `minimumHeight` instead.
|
|
10532
|
+
* @default 500
|
|
10533
|
+
* @example
|
|
10534
|
+
* ```js
|
|
10535
|
+
* // Replace <EmbedComponent> with the embed component name.
|
|
10536
|
+
* // For example, AppEmbed or LiveboardEmbed
|
|
10537
|
+
* const embed = new <EmbedComponent>('#embed', {
|
|
10538
|
+
* ... // other view config
|
|
10539
|
+
* fullHeight: true,
|
|
10540
|
+
* defaultHeight: 600,
|
|
10541
|
+
* });
|
|
10542
|
+
* ```
|
|
10543
|
+
*/
|
|
10544
|
+
defaultHeight?: number;
|
|
10545
|
+
/**
|
|
10546
|
+
* Loads visualizations only as they scroll into the viewport, instead of
|
|
10547
|
+
* loading the whole full-height Liveboard at once.
|
|
10548
|
+
*
|
|
10549
|
+
* From SDK 1.52.0 this is enabled automatically whenever `fullHeight` is
|
|
10550
|
+
* `true`. On SDK 1.51.0 and earlier it defaulted to `false` and had to be
|
|
10551
|
+
* set explicitly. Set it to `false` to load every visualization upfront.
|
|
10552
|
+
* The flag has no effect unless `fullHeight` is enabled.
|
|
10553
|
+
*
|
|
10554
|
+
* Supported embed types: `LiveboardEmbed`, `AppEmbed`
|
|
10555
|
+
* @type {boolean}
|
|
10556
|
+
* @version SDK: 1.40.0 | ThoughtSpot: 10.12.0.cl
|
|
10557
|
+
* @default true when `fullHeight` is enabled, from SDK 1.52.0
|
|
10558
|
+
* @example
|
|
10559
|
+
* ```js
|
|
10560
|
+
* // Replace <EmbedComponent> with the embed component name.
|
|
10561
|
+
* // For example, AppEmbed or LiveboardEmbed
|
|
10562
|
+
* const embed = new <EmbedComponent>('#embed-container', {
|
|
10563
|
+
* // ...other options
|
|
10564
|
+
* fullHeight: true,
|
|
10565
|
+
* lazyLoadingForFullHeight: true,
|
|
10566
|
+
* })
|
|
10567
|
+
* ```
|
|
10568
|
+
*/
|
|
10569
|
+
lazyLoadingForFullHeight?: boolean;
|
|
10570
|
+
/**
|
|
10571
|
+
* How far outside the viewport a visualization starts loading, when
|
|
10572
|
+
* {@link lazyLoadingForFullHeight} is enabled.
|
|
10573
|
+
*
|
|
10574
|
+
* For example, if the margin is set to '10px',
|
|
10575
|
+
* the visualization will be loaded 10px before its top edge is visible in the
|
|
10576
|
+
* viewport.
|
|
10577
|
+
*
|
|
10578
|
+
* The format is similar to CSS margin, so `'500px 0px'` extends the
|
|
10579
|
+
* prefetch 500px above and below the viewport and not sideways. Accepted
|
|
10580
|
+
* units are `px`, `em`, `rem`, `%`, `vh` and `vw`, plus bare `0` and
|
|
10581
|
+
* `auto`; an invalid value is logged and ignored.
|
|
10582
|
+
*
|
|
10583
|
+
* From SDK 1.52.0 this defaults to `'500px 0px'` — roughly one
|
|
10584
|
+
* visualization ahead of the scroll position, so a chart has usually
|
|
10585
|
+
* finished loading by the time it scrolls into view. Use a smaller margin
|
|
10586
|
+
* to cut warehouse queries further, or `'0px'` to load a visualization
|
|
10587
|
+
* only once it is actually visible.
|
|
10588
|
+
*
|
|
10589
|
+
* Supported embed types: `LiveboardEmbed`, `AppEmbed`
|
|
10590
|
+
* @type {string}
|
|
10591
|
+
* @version SDK: 1.40.0 | ThoughtSpot: 10.12.0.cl
|
|
10592
|
+
* @default '500px 0px' when `fullHeight` is enabled, from SDK 1.52.0
|
|
10593
|
+
* @example
|
|
10594
|
+
* ```js
|
|
10595
|
+
* // Replace <EmbedComponent> with the embed component name.
|
|
10596
|
+
* // For example, AppEmbed or LiveboardEmbed
|
|
10597
|
+
* const embed = new <EmbedComponent>('#embed-container', {
|
|
10598
|
+
* // ...other options
|
|
10599
|
+
* fullHeight: true,
|
|
10600
|
+
* lazyLoadingForFullHeight: true,
|
|
10601
|
+
* // With 0px, the visualization only starts loading once it is
|
|
10602
|
+
* // visible in the viewport.
|
|
10603
|
+
* lazyLoadingMargin: '0px',
|
|
10604
|
+
* })
|
|
10605
|
+
* ```
|
|
10606
|
+
*/
|
|
10607
|
+
lazyLoadingMargin?: string;
|
|
10608
|
+
/**
|
|
10609
|
+
* Computes the visible region of the embed against its scrollable and
|
|
10610
|
+
* clipping ancestors, instead of treating the browser window as the only
|
|
10611
|
+
* viewport, and tracks scroll and resize on those ancestors.
|
|
10612
|
+
*
|
|
10613
|
+
* From SDK 1.52.0 this is enabled automatically whenever `fullHeight` is
|
|
10614
|
+
* `true`. On SDK 1.51.0 and earlier it defaulted to `false` and had to be
|
|
10615
|
+
* set explicitly. Set it to `false` when the page scrolls with the window
|
|
10616
|
+
* and the embed has no clipping ancestor, to skip the extra ancestor
|
|
10617
|
+
* tracking.
|
|
10618
|
+
*
|
|
10619
|
+
* Supported embed types: `LiveboardEmbed`, `AppEmbed`
|
|
10620
|
+
* @type {boolean}
|
|
10621
|
+
* @default true when `fullHeight` is enabled, from SDK 1.52.0
|
|
10622
|
+
*/
|
|
10623
|
+
enableScrollableContainerLazyLoading?: boolean;
|
|
10624
|
+
}
|