@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/dist/src/types.d.ts
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { CustomCssVariables } from './css-variables';
|
|
9
9
|
import type { SessionInterface } from './utils/graphql/answerService/answerService';
|
|
10
|
+
import type { Applicability } from './contracts/ui-passthrough-contracts';
|
|
10
11
|
/**
|
|
11
12
|
* The authentication mechanism for allowing access to
|
|
12
13
|
* the embedded app
|
|
@@ -2456,6 +2457,15 @@ export interface RuntimeParameter {
|
|
|
2456
2457
|
* Values
|
|
2457
2458
|
*/
|
|
2458
2459
|
value: number | boolean | string;
|
|
2460
|
+
/**
|
|
2461
|
+
* Whether the parameter is visible to the user (`UpdateParameters` only).
|
|
2462
|
+
*/
|
|
2463
|
+
isVisibleToUser?: boolean;
|
|
2464
|
+
/**
|
|
2465
|
+
* Scope of the update (`UpdateParameters` only). Omitting it, or `level`,
|
|
2466
|
+
* targets the Liveboard level.
|
|
2467
|
+
*/
|
|
2468
|
+
applicability?: Applicability;
|
|
2459
2469
|
}
|
|
2460
2470
|
/**
|
|
2461
2471
|
* Event types emitted by the embedded ThoughtSpot application.
|
|
@@ -2907,6 +2917,9 @@ export declare enum EmbedEvent {
|
|
|
2907
2917
|
Download = "download",
|
|
2908
2918
|
/**
|
|
2909
2919
|
* Emitted when the download action is triggered on an Answer.
|
|
2920
|
+
* Payload varies by context: {@link VizScopedRequest} (Search, Answer,
|
|
2921
|
+
* Liveboard), {@link RequiredVizRequest} (Spotter, vizId required). trigger()
|
|
2922
|
+
* accepts the union now; per-context enforced next release.
|
|
2910
2923
|
* Use start:true to subscribe to when download is initiated, or end:true to
|
|
2911
2924
|
* subscribe to when download is completed. Default is end:true.
|
|
2912
2925
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.0.sw
|
|
@@ -2923,6 +2936,9 @@ export declare enum EmbedEvent {
|
|
|
2923
2936
|
DownloadAsPng = "downloadAsPng",
|
|
2924
2937
|
/**
|
|
2925
2938
|
* Emitted when the Download as PDF action is triggered on an Answer
|
|
2939
|
+
* Payload varies by context: {@link VizScopedRequest} (Search, Answer; plus
|
|
2940
|
+
* liveboardId on Liveboard), {@link RequiredVizRequest} (Spotter). trigger()
|
|
2941
|
+
* accepts the union now; per-context enforced next release.
|
|
2926
2942
|
* Use start:true to subscribe to when download as PDF is initiated, or end:true to
|
|
2927
2943
|
* subscribe to when download as PDF is completed. Default is end:true.
|
|
2928
2944
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
@@ -2939,6 +2955,9 @@ export declare enum EmbedEvent {
|
|
|
2939
2955
|
DownloadAsPdf = "downloadAsPdf",
|
|
2940
2956
|
/**
|
|
2941
2957
|
* Emitted when the Download as CSV action is triggered on an Answer.
|
|
2958
|
+
* Payload varies by context: {@link VizScopedRequest} (Search, Answer,
|
|
2959
|
+
* Liveboard), {@link RequiredVizRequest} (Spotter, vizId required). trigger()
|
|
2960
|
+
* accepts the union now; per-context enforced next release.
|
|
2942
2961
|
* Use start:true to subscribe to when download as CSV is initiated, or end:true to
|
|
2943
2962
|
* subscribe to when download as CSV is completed. Default is end:true.
|
|
2944
2963
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
@@ -2955,6 +2974,9 @@ export declare enum EmbedEvent {
|
|
|
2955
2974
|
DownloadAsCsv = "downloadAsCsv",
|
|
2956
2975
|
/**
|
|
2957
2976
|
* Emitted when the Download as XLSX action is triggered on an Answer.
|
|
2977
|
+
* Payload varies by context: {@link VizScopedRequest} (Search, Answer,
|
|
2978
|
+
* Liveboard), {@link RequiredVizRequest} (Spotter, vizId required). trigger()
|
|
2979
|
+
* accepts the union now; per-context enforced next release.
|
|
2958
2980
|
* Use start:true to subscribe to when download as XLSX is initiated, or end:true to
|
|
2959
2981
|
* subscribe to when download as XLSX is completed. Default is end:true.
|
|
2960
2982
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
@@ -3233,6 +3255,9 @@ export declare enum EmbedEvent {
|
|
|
3233
3255
|
Schedule = "subscription",
|
|
3234
3256
|
/**
|
|
3235
3257
|
* Emitted when a user clicks **Edit** on a Liveboard or visualization
|
|
3258
|
+
* Payload varies by context: {@link VizScopedRequest} (Liveboard),
|
|
3259
|
+
* {@link RequiredVizRequest} (Spotter, vizId required). trigger() accepts the
|
|
3260
|
+
* union now; per-context enforced next release.
|
|
3236
3261
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
3237
3262
|
* @example
|
|
3238
3263
|
* ```js
|
|
@@ -4311,6 +4336,7 @@ export declare enum HostEvent {
|
|
|
4311
4336
|
* the search query string.
|
|
4312
4337
|
* Supported in `AppEmbed` and `SearchEmbed` deployments.
|
|
4313
4338
|
* Includes the following properties:
|
|
4339
|
+
* Payload: {@link SearchRequest}.
|
|
4314
4340
|
* @param - Includes the following keys:
|
|
4315
4341
|
* - `searchQuery`: Query string with search tokens.
|
|
4316
4342
|
* - `dataSources`: Data source GUID to search on.
|
|
@@ -4338,6 +4364,9 @@ export declare enum HostEvent {
|
|
|
4338
4364
|
Search = "search",
|
|
4339
4365
|
/**
|
|
4340
4366
|
* Triggers a drill on certain points of the specified column
|
|
4367
|
+
* Payload: {@link DrillDownRequest}; in Liveboard context vizId is required
|
|
4368
|
+
* ({@link RequiredVizRequest}). trigger() accepts the union now; per-context
|
|
4369
|
+
* enforced next release.
|
|
4341
4370
|
* Includes the following properties:
|
|
4342
4371
|
* @param - Includes the following keys:
|
|
4343
4372
|
* - `points`: An object containing `selectedPoints` and/or `clickedPoint`
|
|
@@ -4417,6 +4446,8 @@ export declare enum HostEvent {
|
|
|
4417
4446
|
Reload = "reload",
|
|
4418
4447
|
/**
|
|
4419
4448
|
* Get iframe URL for the current embed view.
|
|
4449
|
+
* Payload: none.
|
|
4450
|
+
* Response: {@link GetIframeUrlResponse}.
|
|
4420
4451
|
* @example
|
|
4421
4452
|
* ```js
|
|
4422
4453
|
* const url = embed.trigger(HostEvent.GetIframeUrl);
|
|
@@ -4435,6 +4466,7 @@ export declare enum HostEvent {
|
|
|
4435
4466
|
GetIframeUrl = "GetIframeUrl",
|
|
4436
4467
|
/**
|
|
4437
4468
|
* Display specific visualizations on a Liveboard.
|
|
4469
|
+
* Payload: `string[]`.
|
|
4438
4470
|
* @param - An array of GUIDs of the visualization to show. The visualization IDs not passed
|
|
4439
4471
|
* in this parameter will be hidden.
|
|
4440
4472
|
* @example
|
|
@@ -4457,6 +4489,7 @@ export declare enum HostEvent {
|
|
|
4457
4489
|
SetVisibleVizs = "SetPinboardVisibleVizs",
|
|
4458
4490
|
/**
|
|
4459
4491
|
* Set a Liveboard tab as an active tab.
|
|
4492
|
+
* Payload: {@link SetActiveTabRequest}.
|
|
4460
4493
|
* @param - tabId - string of id of Tab to show
|
|
4461
4494
|
* @example
|
|
4462
4495
|
* ```js
|
|
@@ -4484,6 +4517,7 @@ export declare enum HostEvent {
|
|
|
4484
4517
|
* and `AppEmbed` only. In full application embedding, this event updates
|
|
4485
4518
|
* the runtime filters applied on the Liveboard and saved Answer objects.
|
|
4486
4519
|
*
|
|
4520
|
+
* Payload: {@link RuntimeFilter}[].
|
|
4487
4521
|
* @param - Array of {@link RuntimeFilter} objects. Each item includes:
|
|
4488
4522
|
* - `columnName`: Name of the column to filter on.
|
|
4489
4523
|
* - `operator`: {@link RuntimeFilterOp} to apply. For more information, see
|
|
@@ -4525,6 +4559,7 @@ export declare enum HostEvent {
|
|
|
4525
4559
|
* Accepts either a plain value or an object with `path`
|
|
4526
4560
|
* and an optional `replace` flag.
|
|
4527
4561
|
*
|
|
4562
|
+
* Payload: `string` | `number` | {@link NavigateRequest}.
|
|
4528
4563
|
* @param data - A string path, a numeric history delta, or an object
|
|
4529
4564
|
* `{ path: string | number, replace?: boolean }`.
|
|
4530
4565
|
* - `path` — the route to navigate to, or a history delta such as `1`
|
|
@@ -4552,6 +4587,9 @@ export declare enum HostEvent {
|
|
|
4552
4587
|
/**
|
|
4553
4588
|
* Open the filter panel for a particular column.
|
|
4554
4589
|
* Works with Search and Liveboard embed.
|
|
4590
|
+
* Payload: {@link OpenFilterRequest} (the cross-context superset). The
|
|
4591
|
+
* accepted fields vary by context: {@link OpenFilterLiveboardRequest},
|
|
4592
|
+
* {@link OpenFilterSpotterRequest}, {@link OpenFilterSearchRequest}.
|
|
4555
4593
|
* @param - { columnId: string,
|
|
4556
4594
|
* name: string,
|
|
4557
4595
|
* type: ATTRIBUTE/MEASURE,
|
|
@@ -4634,6 +4672,7 @@ export declare enum HostEvent {
|
|
|
4634
4672
|
/**
|
|
4635
4673
|
* Open the parameter panel for a particular parameter on a Liveboard.
|
|
4636
4674
|
* Mirrors {@link HostEvent.OpenFilter} for parameters.
|
|
4675
|
+
* Payload: {@link OpenParameterRequest}.
|
|
4637
4676
|
* @param - Includes the following keys:
|
|
4638
4677
|
* - `parameter`: An object identifying the parameter to open, for
|
|
4639
4678
|
* example, `{ parameterId: '<parameter-GUID>' }`.
|
|
@@ -4665,6 +4704,7 @@ export declare enum HostEvent {
|
|
|
4665
4704
|
OpenParameter = "openParameter",
|
|
4666
4705
|
/**
|
|
4667
4706
|
* Add columns to the current search query.
|
|
4707
|
+
* Payload: `{ columnIds: string[] }`.
|
|
4668
4708
|
* @param - { columnIds: string[] }
|
|
4669
4709
|
* @example
|
|
4670
4710
|
* ```js
|
|
@@ -4683,6 +4723,7 @@ export declare enum HostEvent {
|
|
|
4683
4723
|
AddColumns = "addColumns",
|
|
4684
4724
|
/**
|
|
4685
4725
|
* Remove a column from the current search query.
|
|
4726
|
+
* Payload: `{ columnId: string }`.
|
|
4686
4727
|
* @param - { columnId: string }
|
|
4687
4728
|
* @example
|
|
4688
4729
|
* ```js
|
|
@@ -4707,6 +4748,8 @@ export declare enum HostEvent {
|
|
|
4707
4748
|
* sorting, toggling of legends, and data drill down.
|
|
4708
4749
|
* For more information, see
|
|
4709
4750
|
* link:https://developers.thoughtspot.com/docs/fetch-data-and-report-apis#transient-lb-content[Liveboard data with unsaved changes].
|
|
4751
|
+
* Payload: none.
|
|
4752
|
+
* Response: {@link GetExportRequestForCurrentPinboardResponse}.
|
|
4710
4753
|
* @example
|
|
4711
4754
|
* ```js
|
|
4712
4755
|
* liveboardEmbed.trigger(HostEvent.getExportRequestForCurrentPinboard).then(
|
|
@@ -4728,6 +4771,8 @@ export declare enum HostEvent {
|
|
|
4728
4771
|
* requiring additional user input via the *Pin to Liveboard* modal, define
|
|
4729
4772
|
* the following parameters:
|
|
4730
4773
|
*
|
|
4774
|
+
* Payload: {@link PinAnswerToLiveboardRequest}.
|
|
4775
|
+
* Response: {@link PinAnswerToLiveboardResponse}.
|
|
4731
4776
|
* @param - Includes the following keys:
|
|
4732
4777
|
* - `vizId`: GUID of the saved Answer or Spotter visualization ID to pin to a
|
|
4733
4778
|
* Liveboard.
|
|
@@ -4842,6 +4887,7 @@ export declare enum HostEvent {
|
|
|
4842
4887
|
LiveboardInfo = "pinboardInfo",
|
|
4843
4888
|
/**
|
|
4844
4889
|
* Trigger the **Schedule** action on an embedded Liveboard.
|
|
4890
|
+
* Payload: {@link VizScopedRequest}.
|
|
4845
4891
|
* @example
|
|
4846
4892
|
* ```js
|
|
4847
4893
|
* liveboardEmbed.trigger(HostEvent.Schedule)
|
|
@@ -4857,6 +4903,7 @@ export declare enum HostEvent {
|
|
|
4857
4903
|
Schedule = "subscription",
|
|
4858
4904
|
/**
|
|
4859
4905
|
* Trigger the **Manage schedule** action on an embedded Liveboard
|
|
4906
|
+
* Payload: {@link VizScopedRequest}.
|
|
4860
4907
|
* @example
|
|
4861
4908
|
* ```js
|
|
4862
4909
|
* liveboardEmbed.trigger(HostEvent.SchedulesList)
|
|
@@ -4873,6 +4920,7 @@ export declare enum HostEvent {
|
|
|
4873
4920
|
/**
|
|
4874
4921
|
* Trigger the **Export TML** action on an embedded Liveboard or
|
|
4875
4922
|
* Answer.
|
|
4923
|
+
* Payload: {@link VizScopedRequest}.
|
|
4876
4924
|
* @example
|
|
4877
4925
|
* ```js
|
|
4878
4926
|
* liveboardEmbed.trigger(HostEvent.ExportTML)
|
|
@@ -4895,6 +4943,7 @@ export declare enum HostEvent {
|
|
|
4895
4943
|
/**
|
|
4896
4944
|
* Trigger the **Edit TML** action on an embedded Liveboard or
|
|
4897
4945
|
* saved Answers in the full application embedding.
|
|
4946
|
+
* Payload: {@link VizScopedRequest}.
|
|
4898
4947
|
* @example
|
|
4899
4948
|
* ```js
|
|
4900
4949
|
* liveboardEmbed.trigger(HostEvent.EditTML)
|
|
@@ -4916,6 +4965,7 @@ export declare enum HostEvent {
|
|
|
4916
4965
|
EditTML = "editTSL",
|
|
4917
4966
|
/**
|
|
4918
4967
|
* Trigger the **Update TML** action on an embedded Liveboard.
|
|
4968
|
+
* Payload: {@link VizScopedRequest}.
|
|
4919
4969
|
* @example
|
|
4920
4970
|
* ```js
|
|
4921
4971
|
* liveboardEmbed.trigger(HostEvent.UpdateTML)
|
|
@@ -4933,6 +4983,7 @@ export declare enum HostEvent {
|
|
|
4933
4983
|
* Trigger the **Download PDF** action on an embedded Liveboard,
|
|
4934
4984
|
* visualization or Answer.
|
|
4935
4985
|
*
|
|
4986
|
+
* Payload: {@link VizScopedRequest} plus optional `liveboardId`.
|
|
4936
4987
|
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
4937
4988
|
*
|
|
4938
4989
|
* **NOTE**: The **Download** > **PDF** action is available on
|
|
@@ -4983,6 +5034,7 @@ export declare enum HostEvent {
|
|
|
4983
5034
|
/**
|
|
4984
5035
|
* Trigger the **AI Highlights** action on an embedded Liveboard
|
|
4985
5036
|
*
|
|
5037
|
+
* Payload: none.
|
|
4986
5038
|
* @example
|
|
4987
5039
|
* ```js
|
|
4988
5040
|
* liveboardEmbed.trigger(HostEvent.AIHighlights)
|
|
@@ -5037,6 +5089,9 @@ export declare enum HostEvent {
|
|
|
5037
5089
|
MakeACopy = "makeACopy",
|
|
5038
5090
|
/**
|
|
5039
5091
|
* Trigger the **Delete** action for a Liveboard.
|
|
5092
|
+
* Payload varies by context: {@link RequiredVizRequest} (Liveboard, vizId
|
|
5093
|
+
* required), {@link VizScopedRequest} (Search). trigger() accepts the union
|
|
5094
|
+
* now; per-context enforced next release.
|
|
5040
5095
|
* @example
|
|
5041
5096
|
* ```js
|
|
5042
5097
|
* appEmbed.trigger(HostEvent.Remove)
|
|
@@ -5051,6 +5106,7 @@ export declare enum HostEvent {
|
|
|
5051
5106
|
Remove = "delete",
|
|
5052
5107
|
/**
|
|
5053
5108
|
* Trigger the **Explore** action on a visualization.
|
|
5109
|
+
* Payload: {@link RequiredVizRequest}.
|
|
5054
5110
|
* @param - an object with `vizId` as a key
|
|
5055
5111
|
* @example
|
|
5056
5112
|
* ```js
|
|
@@ -5070,6 +5126,7 @@ export declare enum HostEvent {
|
|
|
5070
5126
|
/**
|
|
5071
5127
|
* Trigger the **Create alert** action on a KPI chart
|
|
5072
5128
|
* in a Liveboard or saved Answer.
|
|
5129
|
+
* Payload: {@link VizScopedRequest}.
|
|
5073
5130
|
* @param - an object with `vizId` as a key
|
|
5074
5131
|
* @example
|
|
5075
5132
|
* ```js
|
|
@@ -5101,6 +5158,7 @@ export declare enum HostEvent {
|
|
|
5101
5158
|
/**
|
|
5102
5159
|
* Trigger the **Manage alerts** action on a KPI chart
|
|
5103
5160
|
* in a visualization or saved Answer.
|
|
5161
|
+
* Payload: {@link VizScopedRequest}.
|
|
5104
5162
|
* @param - an object with `vizId` as a key
|
|
5105
5163
|
* @example
|
|
5106
5164
|
* ```js
|
|
@@ -5138,6 +5196,7 @@ export declare enum HostEvent {
|
|
|
5138
5196
|
* on a Liveboard.
|
|
5139
5197
|
*
|
|
5140
5198
|
* This event is not supported in visualization embed and search embed.
|
|
5199
|
+
* Payload: {@link VizScopedRequest}.
|
|
5141
5200
|
* @param - Object parameter. Includes the following keys:
|
|
5142
5201
|
* - `vizId`: To trigger the action for a specific visualization in Liveboard embed,
|
|
5143
5202
|
* pass in `vizId` as a key. In Spotter embed, `vizId` refers to the Answer ID and
|
|
@@ -5180,6 +5239,7 @@ export declare enum HostEvent {
|
|
|
5180
5239
|
Edit = "edit",
|
|
5181
5240
|
/**
|
|
5182
5241
|
* Trigger the **Copy link** action on a Liveboard or visualization
|
|
5242
|
+
* Payload: {@link VizScopedRequest}.
|
|
5183
5243
|
* @param - object - to trigger the action for a
|
|
5184
5244
|
* specific visualization in Liveboard embed, pass in `vizId` as a key
|
|
5185
5245
|
* @example
|
|
@@ -5225,6 +5285,7 @@ export declare enum HostEvent {
|
|
|
5225
5285
|
CopyLink = "embedDocument",
|
|
5226
5286
|
/**
|
|
5227
5287
|
* Trigger the **Present** action on a Liveboard or visualization
|
|
5288
|
+
* Payload: {@link VizScopedRequest}.
|
|
5228
5289
|
* @param - object - to trigger the action for a specific visualization
|
|
5229
5290
|
* in Liveboard embed, pass in `vizId` as a key
|
|
5230
5291
|
* @example
|
|
@@ -5270,6 +5331,8 @@ export declare enum HostEvent {
|
|
|
5270
5331
|
Present = "present",
|
|
5271
5332
|
/**
|
|
5272
5333
|
* Get TML for the current search.
|
|
5334
|
+
* Payload: {@link GetTMLRequest}.
|
|
5335
|
+
* Response: `Record<string, any>`.
|
|
5273
5336
|
* @example
|
|
5274
5337
|
* ```js
|
|
5275
5338
|
* searchEmbed.trigger(HostEvent.GetTML).then((tml) => {
|
|
@@ -5319,6 +5382,7 @@ export declare enum HostEvent {
|
|
|
5319
5382
|
* Trigger the **Show underlying data** action on a
|
|
5320
5383
|
* chart or table.
|
|
5321
5384
|
*
|
|
5385
|
+
* Payload: {@link VizScopedRequest}.
|
|
5322
5386
|
* @param - an object with vizId as a key
|
|
5323
5387
|
* @example
|
|
5324
5388
|
* ```js
|
|
@@ -5352,6 +5416,7 @@ export declare enum HostEvent {
|
|
|
5352
5416
|
* Trigger the **Delete** action for a visualization
|
|
5353
5417
|
* in an embedded Liveboard, or a chart or table
|
|
5354
5418
|
* generated from Search.
|
|
5419
|
+
* Payload: {@link VizScopedRequest}.
|
|
5355
5420
|
* @param - Liveboard embed takes an object with `vizId` as a key.
|
|
5356
5421
|
* Can be left empty if embedding Search or visualization.
|
|
5357
5422
|
* @example
|
|
@@ -5380,6 +5445,7 @@ export declare enum HostEvent {
|
|
|
5380
5445
|
/**
|
|
5381
5446
|
* Trigger the **SpotIQ analyze** action on a
|
|
5382
5447
|
* chart or table.
|
|
5448
|
+
* Payload: {@link VizScopedRequest}.
|
|
5383
5449
|
* @param - Liveboard embed takes `vizId` as a
|
|
5384
5450
|
* key. Can be left undefined when embedding Search or
|
|
5385
5451
|
* visualization.
|
|
@@ -5442,6 +5508,7 @@ export declare enum HostEvent {
|
|
|
5442
5508
|
/**
|
|
5443
5509
|
* Trigger the **Download** > **PNG** action on
|
|
5444
5510
|
* charts in the embedded view.
|
|
5511
|
+
* Payload: {@link VizScopedRequest}.
|
|
5445
5512
|
* @example
|
|
5446
5513
|
* ```js
|
|
5447
5514
|
* liveboardEmbed.trigger(HostEvent.DownloadAsPng,
|
|
@@ -5472,6 +5539,7 @@ export declare enum HostEvent {
|
|
|
5472
5539
|
/**
|
|
5473
5540
|
* Trigger the **Download** > **CSV** action on tables in
|
|
5474
5541
|
* the embedded view.
|
|
5542
|
+
* Payload: {@link VizScopedRequest}.
|
|
5475
5543
|
* @param - `vizId` refers to the Visualization ID in Spotter embed and is required in Spotter embed.
|
|
5476
5544
|
* @example
|
|
5477
5545
|
* ```js
|
|
@@ -5511,6 +5579,7 @@ export declare enum HostEvent {
|
|
|
5511
5579
|
/**
|
|
5512
5580
|
* Trigger the **Download** > **XLSX** action on tables
|
|
5513
5581
|
* in the embedded view.
|
|
5582
|
+
* Payload: {@link VizScopedRequest}.
|
|
5514
5583
|
* @param - `vizId` refers to the Visualization ID in Spotter embed and is required in Spotter embed.
|
|
5515
5584
|
* @example
|
|
5516
5585
|
* ```js
|
|
@@ -5550,6 +5619,7 @@ export declare enum HostEvent {
|
|
|
5550
5619
|
/**
|
|
5551
5620
|
* Trigger the **Share** action on an embedded
|
|
5552
5621
|
* Liveboard or Answer.
|
|
5622
|
+
* Payload: {@link VizScopedRequest}.
|
|
5553
5623
|
* @example
|
|
5554
5624
|
* ```js
|
|
5555
5625
|
* liveboardEmbed.trigger(HostEvent.Share)
|
|
@@ -5576,6 +5646,7 @@ export declare enum HostEvent {
|
|
|
5576
5646
|
* Trigger the **Save** action on a Liveboard, Answer, or Spotter.
|
|
5577
5647
|
* Saves the changes.
|
|
5578
5648
|
*
|
|
5649
|
+
* Payload: {@link VizScopedRequest}.
|
|
5579
5650
|
* @param - `vizId` refers to the Spotter Visualization Id used in Spotter embed.
|
|
5580
5651
|
* It is required and can be retrieved from the data embed event.
|
|
5581
5652
|
*
|
|
@@ -5627,6 +5698,7 @@ export declare enum HostEvent {
|
|
|
5627
5698
|
/**
|
|
5628
5699
|
* Trigger the **Sync to Sheets** action on an embedded visualization or Answer
|
|
5629
5700
|
* Sends data from an Answer or Liveboard visualization to a Google sheet.
|
|
5701
|
+
* Payload: {@link VizScopedRequest}.
|
|
5630
5702
|
* @param - an object with `vizId` as a key
|
|
5631
5703
|
* @example
|
|
5632
5704
|
* ```js
|
|
@@ -5657,6 +5729,7 @@ export declare enum HostEvent {
|
|
|
5657
5729
|
* Trigger the **Sync to Other Apps** action on an embedded visualization or Answer
|
|
5658
5730
|
* Sends data from an Answer or Liveboard visualization to third-party apps such
|
|
5659
5731
|
* as Slack, Salesforce, Microsoft Teams, ServiceNow and so on.
|
|
5732
|
+
* Payload: {@link VizScopedRequest}.
|
|
5660
5733
|
* @param - an object with vizId as a key
|
|
5661
5734
|
* @example
|
|
5662
5735
|
* ```js
|
|
@@ -5687,6 +5760,7 @@ export declare enum HostEvent {
|
|
|
5687
5760
|
* Trigger the **Manage pipelines** action on an embedded
|
|
5688
5761
|
* visualization or Answer.
|
|
5689
5762
|
* Allows users to manage ThoughtSpot Sync pipelines.
|
|
5763
|
+
* Payload: {@link VizScopedRequest}.
|
|
5690
5764
|
* @param - an object with `vizId` as a key
|
|
5691
5765
|
* @example
|
|
5692
5766
|
* ```js
|
|
@@ -5715,6 +5789,7 @@ export declare enum HostEvent {
|
|
|
5715
5789
|
ManagePipelines = "manage-pipeline",
|
|
5716
5790
|
/**
|
|
5717
5791
|
* Reset search operation on the Search or Answer page.
|
|
5792
|
+
* Payload: none.
|
|
5718
5793
|
* @example
|
|
5719
5794
|
* ```js
|
|
5720
5795
|
* searchEmbed.trigger(HostEvent.ResetSearch)
|
|
@@ -5742,6 +5817,8 @@ export declare enum HostEvent {
|
|
|
5742
5817
|
* whole Liveboard.
|
|
5743
5818
|
* The `applicability` attribute is available from SDK: 1.53.0 |
|
|
5744
5819
|
* ThoughtSpot: 26.10.0.cl.
|
|
5820
|
+
* Payload: {@link GetFiltersRequest}.
|
|
5821
|
+
* Response: {@link GetFiltersResponse}.
|
|
5745
5822
|
* @example
|
|
5746
5823
|
* ```js
|
|
5747
5824
|
* const data = await liveboardEmbed.trigger(HostEvent.GetFilters);
|
|
@@ -5761,6 +5838,7 @@ export declare enum HostEvent {
|
|
|
5761
5838
|
GetFilters = "getFilters",
|
|
5762
5839
|
/**
|
|
5763
5840
|
* Update one or several filters applied on a Liveboard.
|
|
5841
|
+
* Payload: {@link UpdateFiltersRequest}.
|
|
5764
5842
|
* @param - Includes the following keys:
|
|
5765
5843
|
* - `filter`: A single filter object containing column name, filter operator, and
|
|
5766
5844
|
* values.
|
|
@@ -5889,6 +5967,8 @@ export declare enum HostEvent {
|
|
|
5889
5967
|
UpdateFilters = "updateFilters",
|
|
5890
5968
|
/**
|
|
5891
5969
|
* Get tab details for the current Liveboard.
|
|
5970
|
+
* Payload: none.
|
|
5971
|
+
* Response: {@link GetTabsResponse}.
|
|
5892
5972
|
* @example
|
|
5893
5973
|
* ```js
|
|
5894
5974
|
* liveboardEmbed.trigger(HostEvent.GetTabs).then((tabDetails) => {
|
|
@@ -5914,6 +5994,8 @@ export declare enum HostEvent {
|
|
|
5914
5994
|
/**
|
|
5915
5995
|
* Get group details for the current Liveboard.
|
|
5916
5996
|
* Mirrors {@link HostEvent.GetTabs} for filter/parameter groups.
|
|
5997
|
+
* Payload: none.
|
|
5998
|
+
* Response: {@link GetGroupsResponse}.
|
|
5917
5999
|
* @example
|
|
5918
6000
|
* ```js
|
|
5919
6001
|
* liveboardEmbed.trigger(HostEvent.GetGroups).then((groupDetails) => {
|
|
@@ -5938,6 +6020,7 @@ export declare enum HostEvent {
|
|
|
5938
6020
|
GetGroups = "getGroups",
|
|
5939
6021
|
/**
|
|
5940
6022
|
* Set the visible tabs on a Liveboard.
|
|
6023
|
+
* Payload: `string[]`.
|
|
5941
6024
|
* @param - an array of ids of tabs to show, the IDs not passed
|
|
5942
6025
|
* will be hidden.
|
|
5943
6026
|
* @example
|
|
@@ -5960,6 +6043,7 @@ export declare enum HostEvent {
|
|
|
5960
6043
|
SetVisibleTabs = "SetPinboardVisibleTabs",
|
|
5961
6044
|
/**
|
|
5962
6045
|
* Set the hidden tabs on a Liveboard.
|
|
6046
|
+
* Payload: `string[]`.
|
|
5963
6047
|
* @param - an array of the IDs of the tabs to hide.
|
|
5964
6048
|
* The IDs not passed will be shown.
|
|
5965
6049
|
* @example
|
|
@@ -5988,6 +6072,8 @@ export declare enum HostEvent {
|
|
|
5988
6072
|
* `getAnswerService()` method on the embed instance to get an AnswerService
|
|
5989
6073
|
* object that provides a more convenient interface for working with answers.
|
|
5990
6074
|
*
|
|
6075
|
+
* Payload: {@link GetAnswerSessionRequest}.
|
|
6076
|
+
* Response: {@link GetAnswerSessionResponse}.
|
|
5991
6077
|
* @example
|
|
5992
6078
|
* ```js
|
|
5993
6079
|
* // Preferred way to get an AnswerService
|
|
@@ -6015,6 +6101,7 @@ export declare enum HostEvent {
|
|
|
6015
6101
|
GetAnswerSession = "getAnswerSession",
|
|
6016
6102
|
/**
|
|
6017
6103
|
* Trigger the *Ask Sage* action for visualizations
|
|
6104
|
+
* Payload: {@link RequiredVizRequest}.
|
|
6018
6105
|
* @example
|
|
6019
6106
|
* ```js
|
|
6020
6107
|
* liveboardEmbed.trigger(HostEvent.AskSage,
|
|
@@ -6026,6 +6113,7 @@ export declare enum HostEvent {
|
|
|
6026
6113
|
/**
|
|
6027
6114
|
* Trigger cross filter update action on a Liveboard.
|
|
6028
6115
|
*
|
|
6116
|
+
* Payload: {@link UpdateCrossFilterRequest}.
|
|
6029
6117
|
* @example
|
|
6030
6118
|
* ```js
|
|
6031
6119
|
* liveboardEmbed.trigger(HostEvent.UpdateCrossFilter, {
|
|
@@ -6041,7 +6129,9 @@ export declare enum HostEvent {
|
|
|
6041
6129
|
UpdateCrossFilter = "UpdateCrossFilter",
|
|
6042
6130
|
/**
|
|
6043
6131
|
* Trigger reset action for a personalized Liveboard view.
|
|
6044
|
-
* This event is deprecated.
|
|
6132
|
+
* This event is deprecated.
|
|
6133
|
+
* Use {@link HostEvent.ResetLiveboardPersonalizedView} instead.
|
|
6134
|
+
* Payload: none.
|
|
6045
6135
|
* @example
|
|
6046
6136
|
* ```js
|
|
6047
6137
|
* liveboardEmbed.trigger(HostEvent.ResetLiveboardPersonalisedView);
|
|
@@ -6062,6 +6152,7 @@ export declare enum HostEvent {
|
|
|
6062
6152
|
/**
|
|
6063
6153
|
* Triggers an action to update Parameter values on embedded
|
|
6064
6154
|
* Answers, Liveboard, and Spotter answer in Edit mode.
|
|
6155
|
+
* Payload: {@link RuntimeParameter}[].
|
|
6065
6156
|
* @param - Includes the following keys for each item:
|
|
6066
6157
|
* - `name`: Name of the parameter.
|
|
6067
6158
|
* - `value`: The value to set for the parameter.
|
|
@@ -6119,6 +6210,8 @@ export declare enum HostEvent {
|
|
|
6119
6210
|
* whole Liveboard.
|
|
6120
6211
|
* The `applicability` attribute is available from SDK: 1.53.0 |
|
|
6121
6212
|
* ThoughtSpot: 26.10.0.cl.
|
|
6213
|
+
* Payload: none.
|
|
6214
|
+
* Response: {@link GetParametersResponse}.
|
|
6122
6215
|
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
6123
6216
|
* ```js
|
|
6124
6217
|
* liveboardEmbed.trigger(HostEvent.GetParameters).then((parameter) => {
|
|
@@ -6156,6 +6249,7 @@ export declare enum HostEvent {
|
|
|
6156
6249
|
* ```js
|
|
6157
6250
|
* liveboardEmbed.trigger(HostEvent.UpdatePersonalisedView, {viewId: '1234'})
|
|
6158
6251
|
* ```
|
|
6252
|
+
* Payload: {@link PersonalisedViewRequest} (`viewId` only).
|
|
6159
6253
|
* @example
|
|
6160
6254
|
* ```js
|
|
6161
6255
|
* // Update personalized view from liveboard context
|
|
@@ -6188,6 +6282,7 @@ export declare enum HostEvent {
|
|
|
6188
6282
|
* If neither is provided, the Liveboard resets to the original/default view.
|
|
6189
6283
|
* When a `viewName` is provided and multiple views share
|
|
6190
6284
|
* the same name, the first match is selected.
|
|
6285
|
+
* Payload: {@link PersonalisedViewRequest}.
|
|
6191
6286
|
* @example
|
|
6192
6287
|
* ```js
|
|
6193
6288
|
* liveboardEmbed.trigger(
|
|
@@ -6231,6 +6326,8 @@ export declare enum HostEvent {
|
|
|
6231
6326
|
* If no parameters are specified, the save action is
|
|
6232
6327
|
* triggered with a modal to prompt users to
|
|
6233
6328
|
* add a name and description for the Answer.
|
|
6329
|
+
* Payload: {@link SaveAnswerRequest}.
|
|
6330
|
+
* Response: {@link SaveAnswerResponse}.
|
|
6234
6331
|
* @param - Includes the following keys:
|
|
6235
6332
|
* - `vizId`: Refers to the Answer ID in Spotter embed and is **required** in Spotter
|
|
6236
6333
|
* embed.
|
|
@@ -6316,6 +6413,7 @@ export declare enum HostEvent {
|
|
|
6316
6413
|
/**
|
|
6317
6414
|
* Triggers a search operation with the search tokens specified in
|
|
6318
6415
|
* the search query string in spotter embed.
|
|
6416
|
+
* Payload: {@link SpotterSearchRequest}.
|
|
6319
6417
|
* @param - Includes the following keys:
|
|
6320
6418
|
* - `query`: Text string in Natural Language format.
|
|
6321
6419
|
* - `executeSearch`: Boolean to execute search and update search query.
|
|
@@ -6340,6 +6438,7 @@ export declare enum HostEvent {
|
|
|
6340
6438
|
SpotterSearch = "SpotterSearch",
|
|
6341
6439
|
/**
|
|
6342
6440
|
* Edits the last prompt in spotter embed.
|
|
6441
|
+
* Payload: `string`.
|
|
6343
6442
|
* @param - `query`: Text string
|
|
6344
6443
|
* @example
|
|
6345
6444
|
* ```js
|
|
@@ -6356,6 +6455,7 @@ export declare enum HostEvent {
|
|
|
6356
6455
|
EditLastPrompt = "EditLastPrompt",
|
|
6357
6456
|
/**
|
|
6358
6457
|
* Opens the data source preview modal in Spotter Embed.
|
|
6458
|
+
* Payload: none.
|
|
6359
6459
|
* @example
|
|
6360
6460
|
* ```js
|
|
6361
6461
|
* spotterEmbed.trigger(HostEvent.PreviewSpotterData);
|
|
@@ -6391,6 +6491,7 @@ export declare enum HostEvent {
|
|
|
6391
6491
|
DataModelInstructions = "DataModelInstructions",
|
|
6392
6492
|
/**
|
|
6393
6493
|
* Resets the Spotter Embed Conversation.
|
|
6494
|
+
* Payload: none.
|
|
6394
6495
|
* @example
|
|
6395
6496
|
* ```js
|
|
6396
6497
|
* spotterEmbed.trigger(HostEvent.ResetSpotterConversation);
|
|
@@ -6403,6 +6504,7 @@ export declare enum HostEvent {
|
|
|
6403
6504
|
* `conversationId` is **mandatory** — you must pass the id of the
|
|
6404
6505
|
* conversation to share. Also no-op when sharing is disabled
|
|
6405
6506
|
* (enableShareConversation off) or when already in the read-only shared view.
|
|
6507
|
+
* Payload: {@link ConversationScopedRequest}.
|
|
6406
6508
|
* @example
|
|
6407
6509
|
* ```js
|
|
6408
6510
|
* spotterEmbed.trigger(HostEvent.ShareSpotterConversation, { conversationId: 'abc' });
|
|
@@ -6412,6 +6514,7 @@ export declare enum HostEvent {
|
|
|
6412
6514
|
ShareSpotterConversation = "ShareSpotterConversation",
|
|
6413
6515
|
/**
|
|
6414
6516
|
* Closes the Spotter share-conversation modal. No-op if none is open.
|
|
6517
|
+
* Payload: none.
|
|
6415
6518
|
* @example
|
|
6416
6519
|
* ```js
|
|
6417
6520
|
* spotterEmbed.trigger(HostEvent.CloseSpotterShareConversation);
|
|
@@ -6421,6 +6524,7 @@ export declare enum HostEvent {
|
|
|
6421
6524
|
CloseSpotterShareConversation = "CloseSpotterShareConversation",
|
|
6422
6525
|
/**
|
|
6423
6526
|
* Exits the read-only shared-conversation view.
|
|
6527
|
+
* Payload: none.
|
|
6424
6528
|
* @example
|
|
6425
6529
|
* ```js
|
|
6426
6530
|
* spotterEmbed.trigger(HostEvent.ExitSpotterSharedConversation);
|
|
@@ -6430,6 +6534,7 @@ export declare enum HostEvent {
|
|
|
6430
6534
|
ExitSpotterSharedConversation = "ExitSpotterSharedConversation",
|
|
6431
6535
|
/**
|
|
6432
6536
|
* Deletes the last prompt in spotter embed.
|
|
6537
|
+
* Payload: none.
|
|
6433
6538
|
* @example
|
|
6434
6539
|
* ```js
|
|
6435
6540
|
* spotterEmbed.trigger(HostEvent.DeleteLastPrompt);
|
|
@@ -6439,6 +6544,7 @@ export declare enum HostEvent {
|
|
|
6439
6544
|
DeleteLastPrompt = "DeleteLastPrompt",
|
|
6440
6545
|
/**
|
|
6441
6546
|
* Toggle the visualization to chart or table view.
|
|
6547
|
+
* Payload: {@link RequiredVizRequest}.
|
|
6442
6548
|
* @param - `vizId ` refers to the Visualization ID in Spotter embed and is required.
|
|
6443
6549
|
* @example
|
|
6444
6550
|
* ```js
|
|
@@ -6477,6 +6583,7 @@ export declare enum HostEvent {
|
|
|
6477
6583
|
VisibleEmbedCoordinates = "visibleEmbedCoordinates",
|
|
6478
6584
|
/**
|
|
6479
6585
|
* Trigger the *Spotter* action for visualizations present on the liveboard's vizzes.
|
|
6586
|
+
* Payload: {@link RequiredVizRequest}.
|
|
6480
6587
|
* @param - `vizId` refers to the Visualization ID in Spotter embed and is required.
|
|
6481
6588
|
* @example
|
|
6482
6589
|
* ```js
|
|
@@ -6538,6 +6645,7 @@ export declare enum HostEvent {
|
|
|
6538
6645
|
* instance. Contact your admin or ThoughtSpot Support to enable chat history on your
|
|
6539
6646
|
* instance.
|
|
6540
6647
|
*
|
|
6648
|
+
* Payload: {@link ConversationScopedRequest}.
|
|
6541
6649
|
* @version SDK: 1.53.0 | ThoughtSpot Cloud: 26.10.0.cl
|
|
6542
6650
|
* @example
|
|
6543
6651
|
* ```js
|
|
@@ -6555,6 +6663,7 @@ export declare enum HostEvent {
|
|
|
6555
6663
|
* instance. Contact your admin or ThoughtSpot Support to enable chat history on your
|
|
6556
6664
|
* instance.
|
|
6557
6665
|
*
|
|
6666
|
+
* Payload: {@link ConversationScopedRequest}.
|
|
6558
6667
|
* @version SDK: 1.53.0 | ThoughtSpot Cloud: 26.10.0.cl
|
|
6559
6668
|
* @example
|
|
6560
6669
|
* ```js
|
|
@@ -6579,6 +6688,7 @@ export declare enum HostEvent {
|
|
|
6579
6688
|
* Trigger the **Send Test Email** action in the Liveboard schedule modal.
|
|
6580
6689
|
* Sends a test schedule email to self or all recipients.
|
|
6581
6690
|
* Requires `isSendNowLiveboardSchedulingEnabled` to be enabled.
|
|
6691
|
+
* Payload: {@link ScheduleEmailRequest}.
|
|
6582
6692
|
* @example
|
|
6583
6693
|
* ```js
|
|
6584
6694
|
* liveboardEmbed.trigger(HostEvent.SendTestScheduleEmail, {
|
|
@@ -6597,6 +6707,7 @@ export declare enum HostEvent {
|
|
|
6597
6707
|
SendTestScheduleEmail = "sendTestScheduleEmail",
|
|
6598
6708
|
/**
|
|
6599
6709
|
* Sends a user message (prompt) to the SpotterViz panel programmatically.
|
|
6710
|
+
* Payload: `{ query: string }`.
|
|
6600
6711
|
* @version SDK: 1.50.0 | ThoughtSpot Cloud: 26.7.0.cl
|
|
6601
6712
|
* @param query - the prompt text to send.
|
|
6602
6713
|
* @example
|
|
@@ -6609,6 +6720,7 @@ export declare enum HostEvent {
|
|
|
6609
6720
|
SpotterVizSendUserMessage = "SpotterVizSendUserMessage",
|
|
6610
6721
|
/**
|
|
6611
6722
|
* Initializes a new SpotterViz conversation.
|
|
6723
|
+
* Payload: none.
|
|
6612
6724
|
* @version SDK: 1.50.0 | ThoughtSpot Cloud: 26.7.0.cl
|
|
6613
6725
|
* @example
|
|
6614
6726
|
* ```js
|
|
@@ -6618,6 +6730,7 @@ export declare enum HostEvent {
|
|
|
6618
6730
|
InitSpotterVizConversation = "InitSpotterVizConversation",
|
|
6619
6731
|
/**
|
|
6620
6732
|
* Opens the SpotterViz panel.
|
|
6733
|
+
* Payload: none.
|
|
6621
6734
|
* @version SDK: 1.50.0 | ThoughtSpot Cloud: 26.7.0.cl
|
|
6622
6735
|
* @example
|
|
6623
6736
|
* ```js
|
|
@@ -6627,6 +6740,7 @@ export declare enum HostEvent {
|
|
|
6627
6740
|
OpenSpotterVizPanel = "OpenSpotterVizPanel",
|
|
6628
6741
|
/**
|
|
6629
6742
|
* Closes the SpotterViz panel.
|
|
6743
|
+
* Payload: none.
|
|
6630
6744
|
* @version SDK: 1.50.0 | ThoughtSpot Cloud: 26.7.0.cl
|
|
6631
6745
|
* @example
|
|
6632
6746
|
* ```js
|
|
@@ -6637,6 +6751,7 @@ export declare enum HostEvent {
|
|
|
6637
6751
|
/**
|
|
6638
6752
|
* Clears browser cache and fetches new data for liveboard ChartViz Containers.
|
|
6639
6753
|
* Requires `enableLiveboardDataCache` to be enabled.
|
|
6754
|
+
* Payload: {@link ScheduleEmailRequest}.
|
|
6640
6755
|
* @example
|
|
6641
6756
|
* ```js
|
|
6642
6757
|
* liveboardEmbed.trigger(HostEvent.RefreshLiveboardBrowserCache);
|
|
@@ -6825,7 +6940,8 @@ export declare enum Param {
|
|
|
6825
6940
|
UpdatedSpotterExperience = "updatedSpotterExperience",
|
|
6826
6941
|
SpotterDataSources = "spotterDataSources",
|
|
6827
6942
|
AnalystId = "analystId",
|
|
6828
|
-
OpenSpotterOnLiveboardByDefault = "openSpotterOnLiveboardByDefault"
|
|
6943
|
+
OpenSpotterOnLiveboardByDefault = "openSpotterOnLiveboardByDefault",
|
|
6944
|
+
ShowAnswerEditPanel = "showAnswerEditPanel"
|
|
6829
6945
|
}
|
|
6830
6946
|
/**
|
|
6831
6947
|
* Configuration for allowed file types in Spotter file upload.
|
|
@@ -8833,7 +8949,226 @@ export declare enum Action {
|
|
|
8833
8949
|
* disabledActions: [Action.SpotterOnLiveboard]
|
|
8834
8950
|
* ```
|
|
8835
8951
|
*/
|
|
8836
|
-
SpotterOnLiveboard = "spotterOnLiveboard"
|
|
8952
|
+
SpotterOnLiveboard = "spotterOnLiveboard",
|
|
8953
|
+
/**
|
|
8954
|
+
* Controls the visibility and disabled state of the "Chart Type" menu item
|
|
8955
|
+
* in Chart Settings V2.
|
|
8956
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
8957
|
+
* @example
|
|
8958
|
+
* ```js
|
|
8959
|
+
* {
|
|
8960
|
+
* hiddenActions: [Action.ChartTypeSettings],
|
|
8961
|
+
* disabledActions: [Action.ChartTypeSettings],
|
|
8962
|
+
* }
|
|
8963
|
+
* ```
|
|
8964
|
+
*/
|
|
8965
|
+
ChartTypeSettings = "CHART_TYPE",
|
|
8966
|
+
/**
|
|
8967
|
+
* Controls the visibility and disabled state of the "Layout" menu item
|
|
8968
|
+
* in Chart Settings V2.
|
|
8969
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
8970
|
+
* @example
|
|
8971
|
+
* ```js
|
|
8972
|
+
* {
|
|
8973
|
+
* hiddenActions: [Action.LayoutSettings],
|
|
8974
|
+
* disabledActions: [Action.LayoutSettings],
|
|
8975
|
+
* }
|
|
8976
|
+
* ```
|
|
8977
|
+
*/
|
|
8978
|
+
LayoutSettings = "LAYOUT",
|
|
8979
|
+
/**
|
|
8980
|
+
* Controls the visibility and disabled state of the "Column" menu item
|
|
8981
|
+
* in Chart Settings V2.
|
|
8982
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
8983
|
+
* @example
|
|
8984
|
+
* ```js
|
|
8985
|
+
* {
|
|
8986
|
+
* hiddenActions: [Action.ColumnSettings],
|
|
8987
|
+
* disabledActions: [Action.ColumnSettings],
|
|
8988
|
+
* }
|
|
8989
|
+
* ```
|
|
8990
|
+
*/
|
|
8991
|
+
ColumnSettings = "COLUMN",
|
|
8992
|
+
/**
|
|
8993
|
+
* Controls the visibility and disabled state of the "Axis" menu item
|
|
8994
|
+
* in Chart Settings V2.
|
|
8995
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
8996
|
+
* @example
|
|
8997
|
+
* ```js
|
|
8998
|
+
* {
|
|
8999
|
+
* hiddenActions: [Action.AxisSettings],
|
|
9000
|
+
* disabledActions: [Action.AxisSettings],
|
|
9001
|
+
* }
|
|
9002
|
+
* ```
|
|
9003
|
+
*/
|
|
9004
|
+
AxisSettings = "AXIS",
|
|
9005
|
+
/**
|
|
9006
|
+
* Controls the visibility and disabled state of the "Data Label" menu item
|
|
9007
|
+
* in Chart Settings V2.
|
|
9008
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
9009
|
+
* @example
|
|
9010
|
+
* ```js
|
|
9011
|
+
* {
|
|
9012
|
+
* hiddenActions: [Action.DataLabelSettings],
|
|
9013
|
+
* disabledActions: [Action.DataLabelSettings],
|
|
9014
|
+
* }
|
|
9015
|
+
* ```
|
|
9016
|
+
*/
|
|
9017
|
+
DataLabelSettings = "DATA_LABEL",
|
|
9018
|
+
/**
|
|
9019
|
+
* Controls the visibility and disabled state of the "Tooltip" menu item
|
|
9020
|
+
* in Chart Settings V2.
|
|
9021
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
9022
|
+
* @example
|
|
9023
|
+
* ```js
|
|
9024
|
+
* {
|
|
9025
|
+
* hiddenActions: [Action.TooltipSettings],
|
|
9026
|
+
* disabledActions: [Action.TooltipSettings],
|
|
9027
|
+
* }
|
|
9028
|
+
* ```
|
|
9029
|
+
*/
|
|
9030
|
+
TooltipSettings = "TOOLTIP",
|
|
9031
|
+
/**
|
|
9032
|
+
* Controls the visibility and disabled state of the "Legend" menu item
|
|
9033
|
+
* in Chart Settings V2.
|
|
9034
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
9035
|
+
* @example
|
|
9036
|
+
* ```js
|
|
9037
|
+
* {
|
|
9038
|
+
* hiddenActions: [Action.LegendSettings],
|
|
9039
|
+
* disabledActions: [Action.LegendSettings],
|
|
9040
|
+
* }
|
|
9041
|
+
* ```
|
|
9042
|
+
*/
|
|
9043
|
+
LegendSettings = "LEGEND",
|
|
9044
|
+
/**
|
|
9045
|
+
* Controls the visibility and disabled state of the "Display" menu item
|
|
9046
|
+
* in Chart Settings V2.
|
|
9047
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
9048
|
+
* @example
|
|
9049
|
+
* ```js
|
|
9050
|
+
* {
|
|
9051
|
+
* hiddenActions: [Action.DisplaySettings],
|
|
9052
|
+
* disabledActions: [Action.DisplaySettings],
|
|
9053
|
+
* }
|
|
9054
|
+
* ```
|
|
9055
|
+
*/
|
|
9056
|
+
DisplaySettings = "DISPLAY",
|
|
9057
|
+
/**
|
|
9058
|
+
* Controls the visibility and disabled state of the "Query Details" menu
|
|
9059
|
+
* item in Chart Settings V2.
|
|
9060
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
9061
|
+
* @example
|
|
9062
|
+
* ```js
|
|
9063
|
+
* {
|
|
9064
|
+
* hiddenActions: [Action.QuerySettings],
|
|
9065
|
+
* disabledActions: [Action.QuerySettings],
|
|
9066
|
+
* }
|
|
9067
|
+
* ```
|
|
9068
|
+
*/
|
|
9069
|
+
QuerySettings = "QUERY_DETAILS",
|
|
9070
|
+
/**
|
|
9071
|
+
* Controls the visibility and disabled state of the "Custom Action" menu
|
|
9072
|
+
* item in Chart Settings V2.
|
|
9073
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
9074
|
+
* @example
|
|
9075
|
+
* ```js
|
|
9076
|
+
* {
|
|
9077
|
+
* hiddenActions: [Action.CustomSettings],
|
|
9078
|
+
* disabledActions: [Action.CustomSettings],
|
|
9079
|
+
* }
|
|
9080
|
+
* ```
|
|
9081
|
+
*/
|
|
9082
|
+
CustomSettings = "CUSTOM_ACTION",
|
|
9083
|
+
/**
|
|
9084
|
+
* Controls the visibility and disabled state of the "Muze AI" menu item
|
|
9085
|
+
* in Chart Settings V2.
|
|
9086
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
9087
|
+
* @example
|
|
9088
|
+
* ```js
|
|
9089
|
+
* {
|
|
9090
|
+
* hiddenActions: [Action.MuzeAiSettings],
|
|
9091
|
+
* disabledActions: [Action.MuzeAiSettings],
|
|
9092
|
+
* }
|
|
9093
|
+
* ```
|
|
9094
|
+
*/
|
|
9095
|
+
MuzeAiSettings = "MUZE_AI",
|
|
9096
|
+
/**
|
|
9097
|
+
* Controls the visibility and disabled state of the "R Analysis" menu item
|
|
9098
|
+
* in Chart Settings V2.
|
|
9099
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
9100
|
+
* @example
|
|
9101
|
+
* ```js
|
|
9102
|
+
* {
|
|
9103
|
+
* hiddenActions: [Action.RAnalysisSettings],
|
|
9104
|
+
* disabledActions: [Action.RAnalysisSettings],
|
|
9105
|
+
* }
|
|
9106
|
+
* ```
|
|
9107
|
+
*/
|
|
9108
|
+
RAnalysisSettings = "R_ANALYSIS",
|
|
9109
|
+
/**
|
|
9110
|
+
* Controls the visibility and disabled state of the "Add to Collection" menu item.
|
|
9111
|
+
* @version SDK: 1.52.1 | ThoughtSpot Cloud: 26.5.0.cl
|
|
9112
|
+
* @example
|
|
9113
|
+
* ```js
|
|
9114
|
+
* {
|
|
9115
|
+
* hiddenActions: [Action.AddToCollection],
|
|
9116
|
+
* disabledActions: [Action.AddToCollection],
|
|
9117
|
+
* }
|
|
9118
|
+
* ```
|
|
9119
|
+
*/
|
|
9120
|
+
AddToCollection = "addToCollection",
|
|
9121
|
+
/**
|
|
9122
|
+
* Controls the visibility and disabled state of the "Create Collection" button.
|
|
9123
|
+
* @version SDK: 1.52.1 | ThoughtSpot Cloud: 26.5.0.cl
|
|
9124
|
+
* @example
|
|
9125
|
+
* ```js
|
|
9126
|
+
* {
|
|
9127
|
+
* hiddenActions: [Action.CreateCollection],
|
|
9128
|
+
* disabledActions: [Action.CreateCollection],
|
|
9129
|
+
* }
|
|
9130
|
+
* ```
|
|
9131
|
+
*/
|
|
9132
|
+
CreateCollection = "createCollection",
|
|
9133
|
+
/**
|
|
9134
|
+
* Controls the visibility and disabled state of the "Move" menu item in a
|
|
9135
|
+
* Collection.
|
|
9136
|
+
* @version SDK: 1.52.1 | ThoughtSpot Cloud: 26.5.0.cl
|
|
9137
|
+
* @example
|
|
9138
|
+
* ```js
|
|
9139
|
+
* {
|
|
9140
|
+
* hiddenActions: [Action.MoveToCollection],
|
|
9141
|
+
* disabledActions: [Action.MoveToCollection],
|
|
9142
|
+
* }
|
|
9143
|
+
* ```
|
|
9144
|
+
*/
|
|
9145
|
+
MoveToCollection = "moveToCollection",
|
|
9146
|
+
/**
|
|
9147
|
+
* Controls the visibility and disabled state of the "Remove" menu item in a
|
|
9148
|
+
* Collection.
|
|
9149
|
+
* @version SDK: 1.52.1 | ThoughtSpot Cloud: 26.5.0.cl
|
|
9150
|
+
* @example
|
|
9151
|
+
* ```js
|
|
9152
|
+
* {
|
|
9153
|
+
* hiddenActions: [Action.RemoveFromCollection],
|
|
9154
|
+
* disabledActions: [Action.RemoveFromCollection],
|
|
9155
|
+
* }
|
|
9156
|
+
* ```
|
|
9157
|
+
*/
|
|
9158
|
+
RemoveFromCollection = "removeFromCollection",
|
|
9159
|
+
/**
|
|
9160
|
+
* Controls the visibility and disabled state of the "Delete" menu item for a
|
|
9161
|
+
* Collection.
|
|
9162
|
+
* @version SDK: 1.52.1 | ThoughtSpot Cloud: 26.5.0.cl
|
|
9163
|
+
* @example
|
|
9164
|
+
* ```js
|
|
9165
|
+
* {
|
|
9166
|
+
* hiddenActions: [Action.DeleteCollection],
|
|
9167
|
+
* disabledActions: [Action.DeleteCollection],
|
|
9168
|
+
* }
|
|
9169
|
+
* ```
|
|
9170
|
+
*/
|
|
9171
|
+
DeleteCollection = "deleteCollection"
|
|
8837
9172
|
}
|
|
8838
9173
|
export interface AnswerServiceType {
|
|
8839
9174
|
getAnswer?: (offset: number, batchSize: number) => any;
|
|
@@ -8875,6 +9210,11 @@ export interface VizPoint {
|
|
|
8875
9210
|
* @group Events
|
|
8876
9211
|
*/
|
|
8877
9212
|
export interface CustomActionPayload {
|
|
9213
|
+
/**
|
|
9214
|
+
* Id of the custom action that was triggered. Matches the `id` you set on
|
|
9215
|
+
* the {@link CustomAction}. Omitted on Liveboard-level code-based actions.
|
|
9216
|
+
*/
|
|
9217
|
+
id?: string;
|
|
8878
9218
|
contextMenuPoints?: {
|
|
8879
9219
|
clickedPoint: VizPoint;
|
|
8880
9220
|
selectedPoints: VizPoint[];
|
|
@@ -8894,21 +9234,58 @@ export interface CustomActionPayload {
|
|
|
8894
9234
|
session: SessionInterface;
|
|
8895
9235
|
vizId?: string;
|
|
8896
9236
|
}
|
|
9237
|
+
/**
|
|
9238
|
+
* A code-based custom action to inject into the embedded ThoughtSpot UI.
|
|
9239
|
+
* Pass an array of these as `customActions` in the embed view config. When a
|
|
9240
|
+
* user invokes the action, the host emits {@link EmbedEvent.CustomAction} with
|
|
9241
|
+
* a {@link CustomActionPayload} carrying the same `id`.
|
|
9242
|
+
*/
|
|
8897
9243
|
export interface CustomAction {
|
|
9244
|
+
/**
|
|
9245
|
+
* Display label shown on the action's button or menu item.
|
|
9246
|
+
*/
|
|
8898
9247
|
name: string;
|
|
9248
|
+
/**
|
|
9249
|
+
* Unique identifier for the action. Echoed back as `id` on the
|
|
9250
|
+
* {@link CustomActionPayload} when the action is invoked.
|
|
9251
|
+
*/
|
|
8899
9252
|
id: string;
|
|
9253
|
+
/**
|
|
9254
|
+
* Where the action appears: a primary button, the "More" menu, or the
|
|
9255
|
+
* right-click context menu. See {@link CustomActionsPosition}.
|
|
9256
|
+
*/
|
|
8900
9257
|
position: CustomActionsPosition;
|
|
9258
|
+
/**
|
|
9259
|
+
* The surface the action applies to (Liveboard, visualization, Answer, or
|
|
9260
|
+
* Spotter). See {@link CustomActionTarget}. The allowed `position` values
|
|
9261
|
+
* and scoping keys depend on the target.
|
|
9262
|
+
*/
|
|
8901
9263
|
target: CustomActionTarget;
|
|
9264
|
+
/**
|
|
9265
|
+
* Scope the action to specific objects by GUID. Which keys are allowed
|
|
9266
|
+
* depends on `target` (for example, a `VIZ` action may use `answerIds`,
|
|
9267
|
+
* `liveboardIds`, and `vizIds`).
|
|
9268
|
+
*/
|
|
8902
9269
|
metadataIds?: {
|
|
8903
9270
|
answerIds?: string[];
|
|
8904
9271
|
liveboardIds?: string[];
|
|
8905
9272
|
vizIds?: string[];
|
|
8906
9273
|
};
|
|
9274
|
+
/**
|
|
9275
|
+
* Scope the action by data model, using model GUIDs or column names.
|
|
9276
|
+
* Allowed for `VIZ`, `ANSWER`, and `SPOTTER` targets.
|
|
9277
|
+
*/
|
|
8907
9278
|
dataModelIds?: {
|
|
8908
9279
|
modelIds?: string[];
|
|
8909
9280
|
modelColumnNames?: string[];
|
|
8910
9281
|
};
|
|
9282
|
+
/**
|
|
9283
|
+
* Restrict the action to specific organizations by ID.
|
|
9284
|
+
*/
|
|
8911
9285
|
orgIds?: string[];
|
|
9286
|
+
/**
|
|
9287
|
+
* Restrict the action to specific user groups by ID.
|
|
9288
|
+
*/
|
|
8912
9289
|
groupIds?: string[];
|
|
8913
9290
|
}
|
|
8914
9291
|
/**
|
|
@@ -9870,4 +10247,164 @@ export interface VisualizationOverrides {
|
|
|
9870
10247
|
/** Table visualization overrides */
|
|
9871
10248
|
table?: TableOverrides;
|
|
9872
10249
|
}
|
|
10250
|
+
/**
|
|
10251
|
+
* The configuration object for the full-height behavior shared by the
|
|
10252
|
+
* Liveboard and app embeds.
|
|
10253
|
+
*
|
|
10254
|
+
* When `fullHeight` is enabled the SDK resizes the embed container to match the
|
|
10255
|
+
* height reported by the ThoughtSpot app, and — when lazy loading is also
|
|
10256
|
+
* enabled — keeps the app informed of the portion of the embed that is
|
|
10257
|
+
* currently visible so that visualizations load on demand.
|
|
10258
|
+
*/
|
|
10259
|
+
export interface FullHeightViewConfig {
|
|
10260
|
+
/**
|
|
10261
|
+
* If set to true, the embedded object container dynamically resizes
|
|
10262
|
+
* according to the height of the Liveboard.
|
|
10263
|
+
*
|
|
10264
|
+
* **Note**: Using fullHeight loads all visualizations on the
|
|
10265
|
+
* Liveboard simultaneously, which results in multiple warehouse
|
|
10266
|
+
* queries and potentially a longer wait for the topmost
|
|
10267
|
+
* visualizations to display on the screen.
|
|
10268
|
+
* Setting `fullHeight` to `false` fetches visualizations
|
|
10269
|
+
* incrementally as users scroll the page to view the charts and tables.
|
|
10270
|
+
*
|
|
10271
|
+
* From SDK 1.52.0, enabling `fullHeight` also turns on
|
|
10272
|
+
* {@link lazyLoadingForFullHeight} and
|
|
10273
|
+
* {@link enableScrollableContainerLazyLoading}, so visualizations load as
|
|
10274
|
+
* they scroll into view. Set either flag to `false` to opt out.
|
|
10275
|
+
*
|
|
10276
|
+
* Supported embed types: `LiveboardEmbed`, `AppEmbed`
|
|
10277
|
+
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1
|
|
10278
|
+
* @example
|
|
10279
|
+
* ```js
|
|
10280
|
+
* // Replace <EmbedComponent> with the embed component name.
|
|
10281
|
+
* // For example, AppEmbed or LiveboardEmbed
|
|
10282
|
+
* const embed = new <EmbedComponent>('#embed', {
|
|
10283
|
+
* ... // other view config
|
|
10284
|
+
* fullHeight: true,
|
|
10285
|
+
* });
|
|
10286
|
+
* ```
|
|
10287
|
+
*/
|
|
10288
|
+
fullHeight?: boolean;
|
|
10289
|
+
/**
|
|
10290
|
+
* This is the minimum height (in pixels) for a full-height Liveboard.
|
|
10291
|
+
* Setting this height helps resolve issues with empty Liveboards and
|
|
10292
|
+
* other screens navigable from a Liveboard.
|
|
10293
|
+
*
|
|
10294
|
+
* Supported embed types: `LiveboardEmbed`, `AppEmbed`
|
|
10295
|
+
* @version SDK: 1.44.2 | ThoughtSpot: 10.15.0.cl
|
|
10296
|
+
* @default 500
|
|
10297
|
+
* @example
|
|
10298
|
+
* ```js
|
|
10299
|
+
* // Replace <EmbedComponent> with the embed component name.
|
|
10300
|
+
* // For example, AppEmbed or LiveboardEmbed
|
|
10301
|
+
* const embed = new <EmbedComponent>('#embed', {
|
|
10302
|
+
* ... // other view config
|
|
10303
|
+
* fullHeight: true,
|
|
10304
|
+
* minimumHeight: 600,
|
|
10305
|
+
* });
|
|
10306
|
+
* ```
|
|
10307
|
+
*/
|
|
10308
|
+
minimumHeight?: number;
|
|
10309
|
+
/**
|
|
10310
|
+
* This is the minimum height (in pixels) for a full-height Liveboard.
|
|
10311
|
+
* Setting this height helps resolve issues with empty Liveboards and
|
|
10312
|
+
* other screens navigable from a Liveboard.
|
|
10313
|
+
*
|
|
10314
|
+
* Supported embed types: `LiveboardEmbed`, `AppEmbed`
|
|
10315
|
+
* @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
|
|
10316
|
+
* @deprecated Use `minimumHeight` instead.
|
|
10317
|
+
* @default 500
|
|
10318
|
+
* @example
|
|
10319
|
+
* ```js
|
|
10320
|
+
* // Replace <EmbedComponent> with the embed component name.
|
|
10321
|
+
* // For example, AppEmbed or LiveboardEmbed
|
|
10322
|
+
* const embed = new <EmbedComponent>('#embed', {
|
|
10323
|
+
* ... // other view config
|
|
10324
|
+
* fullHeight: true,
|
|
10325
|
+
* defaultHeight: 600,
|
|
10326
|
+
* });
|
|
10327
|
+
* ```
|
|
10328
|
+
*/
|
|
10329
|
+
defaultHeight?: number;
|
|
10330
|
+
/**
|
|
10331
|
+
* Loads visualizations only as they scroll into the viewport, instead of
|
|
10332
|
+
* loading the whole full-height Liveboard at once.
|
|
10333
|
+
*
|
|
10334
|
+
* From SDK 1.52.0 this is enabled automatically whenever `fullHeight` is
|
|
10335
|
+
* `true`. On SDK 1.51.0 and earlier it defaulted to `false` and had to be
|
|
10336
|
+
* set explicitly. Set it to `false` to load every visualization upfront.
|
|
10337
|
+
* The flag has no effect unless `fullHeight` is enabled.
|
|
10338
|
+
*
|
|
10339
|
+
* Supported embed types: `LiveboardEmbed`, `AppEmbed`
|
|
10340
|
+
* @type {boolean}
|
|
10341
|
+
* @version SDK: 1.40.0 | ThoughtSpot: 10.12.0.cl
|
|
10342
|
+
* @default true when `fullHeight` is enabled, from SDK 1.52.0
|
|
10343
|
+
* @example
|
|
10344
|
+
* ```js
|
|
10345
|
+
* // Replace <EmbedComponent> with the embed component name.
|
|
10346
|
+
* // For example, AppEmbed or LiveboardEmbed
|
|
10347
|
+
* const embed = new <EmbedComponent>('#embed-container', {
|
|
10348
|
+
* // ...other options
|
|
10349
|
+
* fullHeight: true,
|
|
10350
|
+
* lazyLoadingForFullHeight: true,
|
|
10351
|
+
* })
|
|
10352
|
+
* ```
|
|
10353
|
+
*/
|
|
10354
|
+
lazyLoadingForFullHeight?: boolean;
|
|
10355
|
+
/**
|
|
10356
|
+
* How far outside the viewport a visualization starts loading, when
|
|
10357
|
+
* {@link lazyLoadingForFullHeight} is enabled.
|
|
10358
|
+
*
|
|
10359
|
+
* For example, if the margin is set to '10px',
|
|
10360
|
+
* the visualization will be loaded 10px before its top edge is visible in the
|
|
10361
|
+
* viewport.
|
|
10362
|
+
*
|
|
10363
|
+
* The format is similar to CSS margin, so `'500px 0px'` extends the
|
|
10364
|
+
* prefetch 500px above and below the viewport and not sideways. Accepted
|
|
10365
|
+
* units are `px`, `em`, `rem`, `%`, `vh` and `vw`, plus bare `0` and
|
|
10366
|
+
* `auto`; an invalid value is logged and ignored.
|
|
10367
|
+
*
|
|
10368
|
+
* From SDK 1.52.0 this defaults to `'500px 0px'` — roughly one
|
|
10369
|
+
* visualization ahead of the scroll position, so a chart has usually
|
|
10370
|
+
* finished loading by the time it scrolls into view. Use a smaller margin
|
|
10371
|
+
* to cut warehouse queries further, or `'0px'` to load a visualization
|
|
10372
|
+
* only once it is actually visible.
|
|
10373
|
+
*
|
|
10374
|
+
* Supported embed types: `LiveboardEmbed`, `AppEmbed`
|
|
10375
|
+
* @type {string}
|
|
10376
|
+
* @version SDK: 1.40.0 | ThoughtSpot: 10.12.0.cl
|
|
10377
|
+
* @default '500px 0px' when `fullHeight` is enabled, from SDK 1.52.0
|
|
10378
|
+
* @example
|
|
10379
|
+
* ```js
|
|
10380
|
+
* // Replace <EmbedComponent> with the embed component name.
|
|
10381
|
+
* // For example, AppEmbed or LiveboardEmbed
|
|
10382
|
+
* const embed = new <EmbedComponent>('#embed-container', {
|
|
10383
|
+
* // ...other options
|
|
10384
|
+
* fullHeight: true,
|
|
10385
|
+
* lazyLoadingForFullHeight: true,
|
|
10386
|
+
* // With 0px, the visualization only starts loading once it is
|
|
10387
|
+
* // visible in the viewport.
|
|
10388
|
+
* lazyLoadingMargin: '0px',
|
|
10389
|
+
* })
|
|
10390
|
+
* ```
|
|
10391
|
+
*/
|
|
10392
|
+
lazyLoadingMargin?: string;
|
|
10393
|
+
/**
|
|
10394
|
+
* Computes the visible region of the embed against its scrollable and
|
|
10395
|
+
* clipping ancestors, instead of treating the browser window as the only
|
|
10396
|
+
* viewport, and tracks scroll and resize on those ancestors.
|
|
10397
|
+
*
|
|
10398
|
+
* From SDK 1.52.0 this is enabled automatically whenever `fullHeight` is
|
|
10399
|
+
* `true`. On SDK 1.51.0 and earlier it defaulted to `false` and had to be
|
|
10400
|
+
* set explicitly. Set it to `false` when the page scrolls with the window
|
|
10401
|
+
* and the embed has no clipping ancestor, to skip the extra ancestor
|
|
10402
|
+
* tracking.
|
|
10403
|
+
*
|
|
10404
|
+
* Supported embed types: `LiveboardEmbed`, `AppEmbed`
|
|
10405
|
+
* @type {boolean}
|
|
10406
|
+
* @default true when `fullHeight` is enabled, from SDK 1.52.0
|
|
10407
|
+
*/
|
|
10408
|
+
enableScrollableContainerLazyLoading?: boolean;
|
|
10409
|
+
}
|
|
9873
10410
|
//# sourceMappingURL=types.d.ts.map
|