@thoughtspot/visual-embed-sdk 1.51.2 → 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/api-intercept.d.ts.map +1 -1
- package/cjs/src/api-intercept.js +1 -0
- package/cjs/src/api-intercept.js.map +1 -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/css-variables.d.ts +1 -1
- 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/conversation.d.ts +5 -5
- 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 +68 -135
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +215 -32
- 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 +21 -25
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +105 -72
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +380 -33
- 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 +5 -4
- 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 +2 -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/react/index.d.ts +8 -8
- package/cjs/src/react/index.d.ts.map +1 -1
- package/cjs/src/react/index.js +1 -1
- package/cjs/src/react/index.js.map +1 -1
- package/cjs/src/react/index.spec.js +7 -7
- package/cjs/src/react/index.spec.js.map +1 -1
- package/cjs/src/types.d.ts +664 -39
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +406 -13
- 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-D8_Zs-Nr.js → index-C1pmYb5H.js} +1 -1
- package/dist/src/api-intercept.d.ts.map +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/css-variables.d.ts +1 -1
- package/dist/src/embed/app.d.ts +17 -140
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/conversation.d.ts +5 -5
- 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 +21 -25
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.spec.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/react/index.d.ts +8 -8
- package/dist/src/react/index.d.ts.map +1 -1
- package/dist/src/types.d.ts +664 -39
- 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 +1031 -392
- package/dist/tsembed-react.js +1030 -391
- package/dist/tsembed.es.js +1031 -392
- package/dist/tsembed.js +1029 -390
- package/dist/visual-embed-sdk-react-full.d.ts +1483 -693
- package/dist/visual-embed-sdk-react.d.ts +1364 -647
- package/dist/visual-embed-sdk.d.ts +1426 -659
- package/lib/package.json +9 -1
- package/lib/src/api-intercept.d.ts.map +1 -1
- package/lib/src/api-intercept.js +2 -1
- package/lib/src/api-intercept.js.map +1 -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/css-variables.d.ts +1 -1
- 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/conversation.d.ts +5 -5
- 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 +70 -137
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +215 -32
- 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 +21 -25
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +106 -73
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +378 -31
- 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 +3 -3
- 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 +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/react/index.d.ts +8 -8
- package/lib/src/react/index.d.ts.map +1 -1
- package/lib/src/react/index.js +1 -1
- package/lib/src/react/index.js.map +1 -1
- package/lib/src/react/index.spec.js +7 -7
- package/lib/src/react/index.spec.js.map +1 -1
- package/lib/src/types.d.ts +664 -39
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +405 -12
- 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 +1426 -659
- package/package.json +9 -1
- package/src/api-intercept.ts +2 -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/css-variables.ts +1 -1
- package/src/embed/app.spec.ts +86 -34
- package/src/embed/app.ts +37 -264
- package/src/embed/conversation.ts +5 -5
- 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 +261 -42
- package/src/embed/liveboard.ts +78 -297
- package/src/embed/search.spec.ts +80 -0
- package/src/embed/search.ts +20 -0
- package/src/embed/ts-embed.spec.ts +518 -31
- package/src/embed/ts-embed.ts +133 -82
- package/src/full-height.spec.ts +1008 -0
- package/src/full-height.ts +361 -0
- package/src/index.ts +95 -5
- package/src/react/all-types-export.parity.spec.ts +63 -3
- package/src/react/all-types-export.ts +46 -0
- package/src/react/index.spec.tsx +7 -7
- package/src/react/index.tsx +9 -9
- package/src/types.ts +665 -37
- 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/lib/src/types.js
CHANGED
|
@@ -841,6 +841,9 @@ export var EmbedEvent;
|
|
|
841
841
|
EmbedEvent["Download"] = "download";
|
|
842
842
|
/**
|
|
843
843
|
* Emitted when the download action is triggered on an Answer.
|
|
844
|
+
* Payload varies by context: {@link VizScopedRequest} (Search, Answer,
|
|
845
|
+
* Liveboard), {@link RequiredVizRequest} (Spotter, vizId required). trigger()
|
|
846
|
+
* accepts the union now; per-context enforced next release.
|
|
844
847
|
* Use start:true to subscribe to when download is initiated, or end:true to
|
|
845
848
|
* subscribe to when download is completed. Default is end:true.
|
|
846
849
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.0.sw
|
|
@@ -857,6 +860,9 @@ export var EmbedEvent;
|
|
|
857
860
|
EmbedEvent["DownloadAsPng"] = "downloadAsPng";
|
|
858
861
|
/**
|
|
859
862
|
* Emitted when the Download as PDF action is triggered on an Answer
|
|
863
|
+
* Payload varies by context: {@link VizScopedRequest} (Search, Answer; plus
|
|
864
|
+
* liveboardId on Liveboard), {@link RequiredVizRequest} (Spotter). trigger()
|
|
865
|
+
* accepts the union now; per-context enforced next release.
|
|
860
866
|
* Use start:true to subscribe to when download as PDF is initiated, or end:true to
|
|
861
867
|
* subscribe to when download as PDF is completed. Default is end:true.
|
|
862
868
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
@@ -873,6 +879,9 @@ export var EmbedEvent;
|
|
|
873
879
|
EmbedEvent["DownloadAsPdf"] = "downloadAsPdf";
|
|
874
880
|
/**
|
|
875
881
|
* Emitted when the Download as CSV action is triggered on an Answer.
|
|
882
|
+
* Payload varies by context: {@link VizScopedRequest} (Search, Answer,
|
|
883
|
+
* Liveboard), {@link RequiredVizRequest} (Spotter, vizId required). trigger()
|
|
884
|
+
* accepts the union now; per-context enforced next release.
|
|
876
885
|
* Use start:true to subscribe to when download as CSV is initiated, or end:true to
|
|
877
886
|
* subscribe to when download as CSV is completed. Default is end:true.
|
|
878
887
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
@@ -889,6 +898,9 @@ export var EmbedEvent;
|
|
|
889
898
|
EmbedEvent["DownloadAsCsv"] = "downloadAsCsv";
|
|
890
899
|
/**
|
|
891
900
|
* Emitted when the Download as XLSX action is triggered on an Answer.
|
|
901
|
+
* Payload varies by context: {@link VizScopedRequest} (Search, Answer,
|
|
902
|
+
* Liveboard), {@link RequiredVizRequest} (Spotter, vizId required). trigger()
|
|
903
|
+
* accepts the union now; per-context enforced next release.
|
|
892
904
|
* Use start:true to subscribe to when download as XLSX is initiated, or end:true to
|
|
893
905
|
* subscribe to when download as XLSX is completed. Default is end:true.
|
|
894
906
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
@@ -1167,6 +1179,9 @@ export var EmbedEvent;
|
|
|
1167
1179
|
EmbedEvent["Schedule"] = "subscription";
|
|
1168
1180
|
/**
|
|
1169
1181
|
* Emitted when a user clicks **Edit** on a Liveboard or visualization
|
|
1182
|
+
* Payload varies by context: {@link VizScopedRequest} (Liveboard),
|
|
1183
|
+
* {@link RequiredVizRequest} (Spotter, vizId required). trigger() accepts the
|
|
1184
|
+
* union now; per-context enforced next release.
|
|
1170
1185
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1171
1186
|
* @example
|
|
1172
1187
|
* ```js
|
|
@@ -1708,7 +1723,32 @@ export var EmbedEvent;
|
|
|
1708
1723
|
*/
|
|
1709
1724
|
EmbedEvent["OrgSwitched"] = "orgSwitched";
|
|
1710
1725
|
/**
|
|
1711
|
-
* Emitted
|
|
1726
|
+
* Emitted before the embedded ThoughtSpot app sends a network request whose
|
|
1727
|
+
* fully resolved URL matches one of the `interceptUrls` in the view config.
|
|
1728
|
+
* The request is held until you call `responder`, which decides whether the
|
|
1729
|
+
* real request goes out or a response you supply is used in its place.
|
|
1730
|
+
*
|
|
1731
|
+
* Setting `interceptUrls` is what enables this; there is no separate enable
|
|
1732
|
+
* flag. If `responder` is not called within `interceptTimeout` (30000 ms by
|
|
1733
|
+
* default) the request fails and `EmbedEvent.Error` is emitted.
|
|
1734
|
+
*
|
|
1735
|
+
* The payload is `{ input, init, urlType }`, where `input` is the request
|
|
1736
|
+
* URL and `init` is the `fetch` init object, with `init.body` parsed into an
|
|
1737
|
+
* object when it is valid JSON. `urlType` is the matching
|
|
1738
|
+
* `InterceptedApiType`; it is `InterceptedApiType.ALL` for any URL outside
|
|
1739
|
+
* the recognized API groups.
|
|
1740
|
+
*
|
|
1741
|
+
* Interception wraps the outermost layer of `fetch`, so `init` holds the
|
|
1742
|
+
* request as the application composed it, before ThoughtSpot attaches its
|
|
1743
|
+
* authentication headers. Those headers, and any token refresh and retry,
|
|
1744
|
+
* are applied afterwards and only when you pass `execute: true`. Only
|
|
1745
|
+
* requests made through `fetch` are intercepted.
|
|
1746
|
+
*
|
|
1747
|
+
* Pass `execute: true` to let the original request proceed untouched, in
|
|
1748
|
+
* which case any `response` you supply alongside it is ignored. With
|
|
1749
|
+
* `execute: false` the request is never sent, and your `response.body` is
|
|
1750
|
+
* returned to the app as JSON, defaulting to status 200 and a
|
|
1751
|
+
* `Content-Type: application/json` header.
|
|
1712
1752
|
*
|
|
1713
1753
|
* Supported on all embed types.
|
|
1714
1754
|
*
|
|
@@ -2221,6 +2261,7 @@ export var HostEvent;
|
|
|
2221
2261
|
* the search query string.
|
|
2222
2262
|
* Supported in `AppEmbed` and `SearchEmbed` deployments.
|
|
2223
2263
|
* Includes the following properties:
|
|
2264
|
+
* Payload: {@link SearchRequest}.
|
|
2224
2265
|
* @param - Includes the following keys:
|
|
2225
2266
|
* - `searchQuery`: Query string with search tokens.
|
|
2226
2267
|
* - `dataSources`: Data source GUID to search on.
|
|
@@ -2248,6 +2289,9 @@ export var HostEvent;
|
|
|
2248
2289
|
HostEvent["Search"] = "search";
|
|
2249
2290
|
/**
|
|
2250
2291
|
* Triggers a drill on certain points of the specified column
|
|
2292
|
+
* Payload: {@link DrillDownRequest}; in Liveboard context vizId is required
|
|
2293
|
+
* ({@link RequiredVizRequest}). trigger() accepts the union now; per-context
|
|
2294
|
+
* enforced next release.
|
|
2251
2295
|
* Includes the following properties:
|
|
2252
2296
|
* @param - Includes the following keys:
|
|
2253
2297
|
* - `points`: An object containing `selectedPoints` and/or `clickedPoint`
|
|
@@ -2327,6 +2371,8 @@ export var HostEvent;
|
|
|
2327
2371
|
HostEvent["Reload"] = "reload";
|
|
2328
2372
|
/**
|
|
2329
2373
|
* Get iframe URL for the current embed view.
|
|
2374
|
+
* Payload: none.
|
|
2375
|
+
* Response: {@link GetIframeUrlResponse}.
|
|
2330
2376
|
* @example
|
|
2331
2377
|
* ```js
|
|
2332
2378
|
* const url = embed.trigger(HostEvent.GetIframeUrl);
|
|
@@ -2345,6 +2391,7 @@ export var HostEvent;
|
|
|
2345
2391
|
HostEvent["GetIframeUrl"] = "GetIframeUrl";
|
|
2346
2392
|
/**
|
|
2347
2393
|
* Display specific visualizations on a Liveboard.
|
|
2394
|
+
* Payload: `string[]`.
|
|
2348
2395
|
* @param - An array of GUIDs of the visualization to show. The visualization IDs not passed
|
|
2349
2396
|
* in this parameter will be hidden.
|
|
2350
2397
|
* @example
|
|
@@ -2367,6 +2414,7 @@ export var HostEvent;
|
|
|
2367
2414
|
HostEvent["SetVisibleVizs"] = "SetPinboardVisibleVizs";
|
|
2368
2415
|
/**
|
|
2369
2416
|
* Set a Liveboard tab as an active tab.
|
|
2417
|
+
* Payload: {@link SetActiveTabRequest}.
|
|
2370
2418
|
* @param - tabId - string of id of Tab to show
|
|
2371
2419
|
* @example
|
|
2372
2420
|
* ```js
|
|
@@ -2394,6 +2442,7 @@ export var HostEvent;
|
|
|
2394
2442
|
* and `AppEmbed` only. In full application embedding, this event updates
|
|
2395
2443
|
* the runtime filters applied on the Liveboard and saved Answer objects.
|
|
2396
2444
|
*
|
|
2445
|
+
* Payload: {@link RuntimeFilter}[].
|
|
2397
2446
|
* @param - Array of {@link RuntimeFilter} objects. Each item includes:
|
|
2398
2447
|
* - `columnName`: Name of the column to filter on.
|
|
2399
2448
|
* - `operator`: {@link RuntimeFilterOp} to apply. For more information, see
|
|
@@ -2435,6 +2484,7 @@ export var HostEvent;
|
|
|
2435
2484
|
* Accepts either a plain value or an object with `path`
|
|
2436
2485
|
* and an optional `replace` flag.
|
|
2437
2486
|
*
|
|
2487
|
+
* Payload: `string` | `number` | {@link NavigateRequest}.
|
|
2438
2488
|
* @param data - A string path, a numeric history delta, or an object
|
|
2439
2489
|
* `{ path: string | number, replace?: boolean }`.
|
|
2440
2490
|
* - `path` — the route to navigate to, or a history delta such as `1`
|
|
@@ -2462,6 +2512,9 @@ export var HostEvent;
|
|
|
2462
2512
|
/**
|
|
2463
2513
|
* Open the filter panel for a particular column.
|
|
2464
2514
|
* Works with Search and Liveboard embed.
|
|
2515
|
+
* Payload: {@link OpenFilterRequest} (the cross-context superset). The
|
|
2516
|
+
* accepted fields vary by context: {@link OpenFilterLiveboardRequest},
|
|
2517
|
+
* {@link OpenFilterSpotterRequest}, {@link OpenFilterSearchRequest}.
|
|
2465
2518
|
* @param - { columnId: string,
|
|
2466
2519
|
* name: string,
|
|
2467
2520
|
* type: ATTRIBUTE/MEASURE,
|
|
@@ -2518,7 +2571,7 @@ export var HostEvent;
|
|
|
2518
2571
|
*
|
|
2519
2572
|
* Unlike {@link HostEvent.OpenFilter}, which opens the panel of an
|
|
2520
2573
|
* existing filter, this event starts the creation of a new filter.
|
|
2521
|
-
* @version SDK: 1.
|
|
2574
|
+
* @version SDK: 1.51.1 | ThoughtSpot Cloud: 26.8.0.cl
|
|
2522
2575
|
* @example
|
|
2523
2576
|
* ```js
|
|
2524
2577
|
* liveboardEmbed.trigger(HostEvent.OpenAddFilterModal);
|
|
@@ -2534,7 +2587,7 @@ export var HostEvent;
|
|
|
2534
2587
|
* Hiding the *Add parameter* button with `hiddenActions:
|
|
2535
2588
|
* [Action.AddParameter]` does not block this event, but disabling it
|
|
2536
2589
|
* with `disabledActions` does.
|
|
2537
|
-
* @version SDK: 1.
|
|
2590
|
+
* @version SDK: 1.51.1 | ThoughtSpot Cloud: 26.8.0.cl
|
|
2538
2591
|
* @example
|
|
2539
2592
|
* ```js
|
|
2540
2593
|
* liveboardEmbed.trigger(HostEvent.OpenAddParameterModal);
|
|
@@ -2544,6 +2597,7 @@ export var HostEvent;
|
|
|
2544
2597
|
/**
|
|
2545
2598
|
* Open the parameter panel for a particular parameter on a Liveboard.
|
|
2546
2599
|
* Mirrors {@link HostEvent.OpenFilter} for parameters.
|
|
2600
|
+
* Payload: {@link OpenParameterRequest}.
|
|
2547
2601
|
* @param - Includes the following keys:
|
|
2548
2602
|
* - `parameter`: An object identifying the parameter to open, for
|
|
2549
2603
|
* example, `{ parameterId: '<parameter-GUID>' }`.
|
|
@@ -2575,6 +2629,7 @@ export var HostEvent;
|
|
|
2575
2629
|
HostEvent["OpenParameter"] = "openParameter";
|
|
2576
2630
|
/**
|
|
2577
2631
|
* Add columns to the current search query.
|
|
2632
|
+
* Payload: `{ columnIds: string[] }`.
|
|
2578
2633
|
* @param - { columnIds: string[] }
|
|
2579
2634
|
* @example
|
|
2580
2635
|
* ```js
|
|
@@ -2593,6 +2648,7 @@ export var HostEvent;
|
|
|
2593
2648
|
HostEvent["AddColumns"] = "addColumns";
|
|
2594
2649
|
/**
|
|
2595
2650
|
* Remove a column from the current search query.
|
|
2651
|
+
* Payload: `{ columnId: string }`.
|
|
2596
2652
|
* @param - { columnId: string }
|
|
2597
2653
|
* @example
|
|
2598
2654
|
* ```js
|
|
@@ -2617,6 +2673,8 @@ export var HostEvent;
|
|
|
2617
2673
|
* sorting, toggling of legends, and data drill down.
|
|
2618
2674
|
* For more information, see
|
|
2619
2675
|
* link:https://developers.thoughtspot.com/docs/fetch-data-and-report-apis#transient-lb-content[Liveboard data with unsaved changes].
|
|
2676
|
+
* Payload: none.
|
|
2677
|
+
* Response: {@link GetExportRequestForCurrentPinboardResponse}.
|
|
2620
2678
|
* @example
|
|
2621
2679
|
* ```js
|
|
2622
2680
|
* liveboardEmbed.trigger(HostEvent.getExportRequestForCurrentPinboard).then(
|
|
@@ -2638,6 +2696,8 @@ export var HostEvent;
|
|
|
2638
2696
|
* requiring additional user input via the *Pin to Liveboard* modal, define
|
|
2639
2697
|
* the following parameters:
|
|
2640
2698
|
*
|
|
2699
|
+
* Payload: {@link PinAnswerToLiveboardRequest}.
|
|
2700
|
+
* Response: {@link PinAnswerToLiveboardResponse}.
|
|
2641
2701
|
* @param - Includes the following keys:
|
|
2642
2702
|
* - `vizId`: GUID of the saved Answer or Spotter visualization ID to pin to a
|
|
2643
2703
|
* Liveboard.
|
|
@@ -2752,6 +2812,7 @@ export var HostEvent;
|
|
|
2752
2812
|
HostEvent["LiveboardInfo"] = "pinboardInfo";
|
|
2753
2813
|
/**
|
|
2754
2814
|
* Trigger the **Schedule** action on an embedded Liveboard.
|
|
2815
|
+
* Payload: {@link VizScopedRequest}.
|
|
2755
2816
|
* @example
|
|
2756
2817
|
* ```js
|
|
2757
2818
|
* liveboardEmbed.trigger(HostEvent.Schedule)
|
|
@@ -2767,6 +2828,7 @@ export var HostEvent;
|
|
|
2767
2828
|
HostEvent["Schedule"] = "subscription";
|
|
2768
2829
|
/**
|
|
2769
2830
|
* Trigger the **Manage schedule** action on an embedded Liveboard
|
|
2831
|
+
* Payload: {@link VizScopedRequest}.
|
|
2770
2832
|
* @example
|
|
2771
2833
|
* ```js
|
|
2772
2834
|
* liveboardEmbed.trigger(HostEvent.SchedulesList)
|
|
@@ -2783,6 +2845,7 @@ export var HostEvent;
|
|
|
2783
2845
|
/**
|
|
2784
2846
|
* Trigger the **Export TML** action on an embedded Liveboard or
|
|
2785
2847
|
* Answer.
|
|
2848
|
+
* Payload: {@link VizScopedRequest}.
|
|
2786
2849
|
* @example
|
|
2787
2850
|
* ```js
|
|
2788
2851
|
* liveboardEmbed.trigger(HostEvent.ExportTML)
|
|
@@ -2805,6 +2868,7 @@ export var HostEvent;
|
|
|
2805
2868
|
/**
|
|
2806
2869
|
* Trigger the **Edit TML** action on an embedded Liveboard or
|
|
2807
2870
|
* saved Answers in the full application embedding.
|
|
2871
|
+
* Payload: {@link VizScopedRequest}.
|
|
2808
2872
|
* @example
|
|
2809
2873
|
* ```js
|
|
2810
2874
|
* liveboardEmbed.trigger(HostEvent.EditTML)
|
|
@@ -2826,6 +2890,7 @@ export var HostEvent;
|
|
|
2826
2890
|
HostEvent["EditTML"] = "editTSL";
|
|
2827
2891
|
/**
|
|
2828
2892
|
* Trigger the **Update TML** action on an embedded Liveboard.
|
|
2893
|
+
* Payload: {@link VizScopedRequest}.
|
|
2829
2894
|
* @example
|
|
2830
2895
|
* ```js
|
|
2831
2896
|
* liveboardEmbed.trigger(HostEvent.UpdateTML)
|
|
@@ -2843,6 +2908,7 @@ export var HostEvent;
|
|
|
2843
2908
|
* Trigger the **Download PDF** action on an embedded Liveboard,
|
|
2844
2909
|
* visualization or Answer.
|
|
2845
2910
|
*
|
|
2911
|
+
* Payload: {@link VizScopedRequest} plus optional `liveboardId`.
|
|
2846
2912
|
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
2847
2913
|
*
|
|
2848
2914
|
* **NOTE**: The **Download** > **PDF** action is available on
|
|
@@ -2893,6 +2959,7 @@ export var HostEvent;
|
|
|
2893
2959
|
/**
|
|
2894
2960
|
* Trigger the **AI Highlights** action on an embedded Liveboard
|
|
2895
2961
|
*
|
|
2962
|
+
* Payload: none.
|
|
2896
2963
|
* @example
|
|
2897
2964
|
* ```js
|
|
2898
2965
|
* liveboardEmbed.trigger(HostEvent.AIHighlights)
|
|
@@ -2947,6 +3014,9 @@ export var HostEvent;
|
|
|
2947
3014
|
HostEvent["MakeACopy"] = "makeACopy";
|
|
2948
3015
|
/**
|
|
2949
3016
|
* Trigger the **Delete** action for a Liveboard.
|
|
3017
|
+
* Payload varies by context: {@link RequiredVizRequest} (Liveboard, vizId
|
|
3018
|
+
* required), {@link VizScopedRequest} (Search). trigger() accepts the union
|
|
3019
|
+
* now; per-context enforced next release.
|
|
2950
3020
|
* @example
|
|
2951
3021
|
* ```js
|
|
2952
3022
|
* appEmbed.trigger(HostEvent.Remove)
|
|
@@ -2961,6 +3031,7 @@ export var HostEvent;
|
|
|
2961
3031
|
HostEvent["Remove"] = "delete";
|
|
2962
3032
|
/**
|
|
2963
3033
|
* Trigger the **Explore** action on a visualization.
|
|
3034
|
+
* Payload: {@link RequiredVizRequest}.
|
|
2964
3035
|
* @param - an object with `vizId` as a key
|
|
2965
3036
|
* @example
|
|
2966
3037
|
* ```js
|
|
@@ -2980,6 +3051,7 @@ export var HostEvent;
|
|
|
2980
3051
|
/**
|
|
2981
3052
|
* Trigger the **Create alert** action on a KPI chart
|
|
2982
3053
|
* in a Liveboard or saved Answer.
|
|
3054
|
+
* Payload: {@link VizScopedRequest}.
|
|
2983
3055
|
* @param - an object with `vizId` as a key
|
|
2984
3056
|
* @example
|
|
2985
3057
|
* ```js
|
|
@@ -3011,6 +3083,7 @@ export var HostEvent;
|
|
|
3011
3083
|
/**
|
|
3012
3084
|
* Trigger the **Manage alerts** action on a KPI chart
|
|
3013
3085
|
* in a visualization or saved Answer.
|
|
3086
|
+
* Payload: {@link VizScopedRequest}.
|
|
3014
3087
|
* @param - an object with `vizId` as a key
|
|
3015
3088
|
* @example
|
|
3016
3089
|
* ```js
|
|
@@ -3048,6 +3121,7 @@ export var HostEvent;
|
|
|
3048
3121
|
* on a Liveboard.
|
|
3049
3122
|
*
|
|
3050
3123
|
* This event is not supported in visualization embed and search embed.
|
|
3124
|
+
* Payload: {@link VizScopedRequest}.
|
|
3051
3125
|
* @param - Object parameter. Includes the following keys:
|
|
3052
3126
|
* - `vizId`: To trigger the action for a specific visualization in Liveboard embed,
|
|
3053
3127
|
* pass in `vizId` as a key. In Spotter embed, `vizId` refers to the Answer ID and
|
|
@@ -3090,6 +3164,7 @@ export var HostEvent;
|
|
|
3090
3164
|
HostEvent["Edit"] = "edit";
|
|
3091
3165
|
/**
|
|
3092
3166
|
* Trigger the **Copy link** action on a Liveboard or visualization
|
|
3167
|
+
* Payload: {@link VizScopedRequest}.
|
|
3093
3168
|
* @param - object - to trigger the action for a
|
|
3094
3169
|
* specific visualization in Liveboard embed, pass in `vizId` as a key
|
|
3095
3170
|
* @example
|
|
@@ -3135,6 +3210,7 @@ export var HostEvent;
|
|
|
3135
3210
|
HostEvent["CopyLink"] = "embedDocument";
|
|
3136
3211
|
/**
|
|
3137
3212
|
* Trigger the **Present** action on a Liveboard or visualization
|
|
3213
|
+
* Payload: {@link VizScopedRequest}.
|
|
3138
3214
|
* @param - object - to trigger the action for a specific visualization
|
|
3139
3215
|
* in Liveboard embed, pass in `vizId` as a key
|
|
3140
3216
|
* @example
|
|
@@ -3180,6 +3256,8 @@ export var HostEvent;
|
|
|
3180
3256
|
HostEvent["Present"] = "present";
|
|
3181
3257
|
/**
|
|
3182
3258
|
* Get TML for the current search.
|
|
3259
|
+
* Payload: {@link GetTMLRequest}.
|
|
3260
|
+
* Response: `Record<string, any>`.
|
|
3183
3261
|
* @example
|
|
3184
3262
|
* ```js
|
|
3185
3263
|
* searchEmbed.trigger(HostEvent.GetTML).then((tml) => {
|
|
@@ -3229,6 +3307,7 @@ export var HostEvent;
|
|
|
3229
3307
|
* Trigger the **Show underlying data** action on a
|
|
3230
3308
|
* chart or table.
|
|
3231
3309
|
*
|
|
3310
|
+
* Payload: {@link VizScopedRequest}.
|
|
3232
3311
|
* @param - an object with vizId as a key
|
|
3233
3312
|
* @example
|
|
3234
3313
|
* ```js
|
|
@@ -3262,6 +3341,7 @@ export var HostEvent;
|
|
|
3262
3341
|
* Trigger the **Delete** action for a visualization
|
|
3263
3342
|
* in an embedded Liveboard, or a chart or table
|
|
3264
3343
|
* generated from Search.
|
|
3344
|
+
* Payload: {@link VizScopedRequest}.
|
|
3265
3345
|
* @param - Liveboard embed takes an object with `vizId` as a key.
|
|
3266
3346
|
* Can be left empty if embedding Search or visualization.
|
|
3267
3347
|
* @example
|
|
@@ -3290,6 +3370,7 @@ export var HostEvent;
|
|
|
3290
3370
|
/**
|
|
3291
3371
|
* Trigger the **SpotIQ analyze** action on a
|
|
3292
3372
|
* chart or table.
|
|
3373
|
+
* Payload: {@link VizScopedRequest}.
|
|
3293
3374
|
* @param - Liveboard embed takes `vizId` as a
|
|
3294
3375
|
* key. Can be left undefined when embedding Search or
|
|
3295
3376
|
* visualization.
|
|
@@ -3352,6 +3433,7 @@ export var HostEvent;
|
|
|
3352
3433
|
/**
|
|
3353
3434
|
* Trigger the **Download** > **PNG** action on
|
|
3354
3435
|
* charts in the embedded view.
|
|
3436
|
+
* Payload: {@link VizScopedRequest}.
|
|
3355
3437
|
* @example
|
|
3356
3438
|
* ```js
|
|
3357
3439
|
* liveboardEmbed.trigger(HostEvent.DownloadAsPng,
|
|
@@ -3383,6 +3465,7 @@ export var HostEvent;
|
|
|
3383
3465
|
/**
|
|
3384
3466
|
* Trigger the **Download** > **CSV** action on tables in
|
|
3385
3467
|
* the embedded view.
|
|
3468
|
+
* Payload: {@link VizScopedRequest}.
|
|
3386
3469
|
* @param - `vizId` refers to the Visualization ID in Spotter embed and is required in Spotter embed.
|
|
3387
3470
|
* @example
|
|
3388
3471
|
* ```js
|
|
@@ -3422,6 +3505,7 @@ export var HostEvent;
|
|
|
3422
3505
|
/**
|
|
3423
3506
|
* Trigger the **Download** > **XLSX** action on tables
|
|
3424
3507
|
* in the embedded view.
|
|
3508
|
+
* Payload: {@link VizScopedRequest}.
|
|
3425
3509
|
* @param - `vizId` refers to the Visualization ID in Spotter embed and is required in Spotter embed.
|
|
3426
3510
|
* @example
|
|
3427
3511
|
* ```js
|
|
@@ -3461,6 +3545,7 @@ export var HostEvent;
|
|
|
3461
3545
|
/**
|
|
3462
3546
|
* Trigger the **Share** action on an embedded
|
|
3463
3547
|
* Liveboard or Answer.
|
|
3548
|
+
* Payload: {@link VizScopedRequest}.
|
|
3464
3549
|
* @example
|
|
3465
3550
|
* ```js
|
|
3466
3551
|
* liveboardEmbed.trigger(HostEvent.Share)
|
|
@@ -3487,6 +3572,7 @@ export var HostEvent;
|
|
|
3487
3572
|
* Trigger the **Save** action on a Liveboard, Answer, or Spotter.
|
|
3488
3573
|
* Saves the changes.
|
|
3489
3574
|
*
|
|
3575
|
+
* Payload: {@link VizScopedRequest}.
|
|
3490
3576
|
* @param - `vizId` refers to the Spotter Visualization Id used in Spotter embed.
|
|
3491
3577
|
* It is required and can be retrieved from the data embed event.
|
|
3492
3578
|
*
|
|
@@ -3538,6 +3624,7 @@ export var HostEvent;
|
|
|
3538
3624
|
/**
|
|
3539
3625
|
* Trigger the **Sync to Sheets** action on an embedded visualization or Answer
|
|
3540
3626
|
* Sends data from an Answer or Liveboard visualization to a Google sheet.
|
|
3627
|
+
* Payload: {@link VizScopedRequest}.
|
|
3541
3628
|
* @param - an object with `vizId` as a key
|
|
3542
3629
|
* @example
|
|
3543
3630
|
* ```js
|
|
@@ -3568,6 +3655,7 @@ export var HostEvent;
|
|
|
3568
3655
|
* Trigger the **Sync to Other Apps** action on an embedded visualization or Answer
|
|
3569
3656
|
* Sends data from an Answer or Liveboard visualization to third-party apps such
|
|
3570
3657
|
* as Slack, Salesforce, Microsoft Teams, ServiceNow and so on.
|
|
3658
|
+
* Payload: {@link VizScopedRequest}.
|
|
3571
3659
|
* @param - an object with vizId as a key
|
|
3572
3660
|
* @example
|
|
3573
3661
|
* ```js
|
|
@@ -3598,6 +3686,7 @@ export var HostEvent;
|
|
|
3598
3686
|
* Trigger the **Manage pipelines** action on an embedded
|
|
3599
3687
|
* visualization or Answer.
|
|
3600
3688
|
* Allows users to manage ThoughtSpot Sync pipelines.
|
|
3689
|
+
* Payload: {@link VizScopedRequest}.
|
|
3601
3690
|
* @param - an object with `vizId` as a key
|
|
3602
3691
|
* @example
|
|
3603
3692
|
* ```js
|
|
@@ -3626,6 +3715,7 @@ export var HostEvent;
|
|
|
3626
3715
|
HostEvent["ManagePipelines"] = "manage-pipeline";
|
|
3627
3716
|
/**
|
|
3628
3717
|
* Reset search operation on the Search or Answer page.
|
|
3718
|
+
* Payload: none.
|
|
3629
3719
|
* @example
|
|
3630
3720
|
* ```js
|
|
3631
3721
|
* searchEmbed.trigger(HostEvent.ResetSearch)
|
|
@@ -3653,6 +3743,8 @@ export var HostEvent;
|
|
|
3653
3743
|
* whole Liveboard.
|
|
3654
3744
|
* The `applicability` attribute is available from SDK: 1.53.0 |
|
|
3655
3745
|
* ThoughtSpot: 26.10.0.cl.
|
|
3746
|
+
* Payload: {@link GetFiltersRequest}.
|
|
3747
|
+
* Response: {@link GetFiltersResponse}.
|
|
3656
3748
|
* @example
|
|
3657
3749
|
* ```js
|
|
3658
3750
|
* const data = await liveboardEmbed.trigger(HostEvent.GetFilters);
|
|
@@ -3672,6 +3764,7 @@ export var HostEvent;
|
|
|
3672
3764
|
HostEvent["GetFilters"] = "getFilters";
|
|
3673
3765
|
/**
|
|
3674
3766
|
* Update one or several filters applied on a Liveboard.
|
|
3767
|
+
* Payload: {@link UpdateFiltersRequest}.
|
|
3675
3768
|
* @param - Includes the following keys:
|
|
3676
3769
|
* - `filter`: A single filter object containing column name, filter operator, and
|
|
3677
3770
|
* values.
|
|
@@ -3800,6 +3893,8 @@ export var HostEvent;
|
|
|
3800
3893
|
HostEvent["UpdateFilters"] = "updateFilters";
|
|
3801
3894
|
/**
|
|
3802
3895
|
* Get tab details for the current Liveboard.
|
|
3896
|
+
* Payload: none.
|
|
3897
|
+
* Response: {@link GetTabsResponse}.
|
|
3803
3898
|
* @example
|
|
3804
3899
|
* ```js
|
|
3805
3900
|
* liveboardEmbed.trigger(HostEvent.GetTabs).then((tabDetails) => {
|
|
@@ -3825,6 +3920,8 @@ export var HostEvent;
|
|
|
3825
3920
|
/**
|
|
3826
3921
|
* Get group details for the current Liveboard.
|
|
3827
3922
|
* Mirrors {@link HostEvent.GetTabs} for filter/parameter groups.
|
|
3923
|
+
* Payload: none.
|
|
3924
|
+
* Response: {@link GetGroupsResponse}.
|
|
3828
3925
|
* @example
|
|
3829
3926
|
* ```js
|
|
3830
3927
|
* liveboardEmbed.trigger(HostEvent.GetGroups).then((groupDetails) => {
|
|
@@ -3849,6 +3946,7 @@ export var HostEvent;
|
|
|
3849
3946
|
HostEvent["GetGroups"] = "getGroups";
|
|
3850
3947
|
/**
|
|
3851
3948
|
* Set the visible tabs on a Liveboard.
|
|
3949
|
+
* Payload: `string[]`.
|
|
3852
3950
|
* @param - an array of ids of tabs to show, the IDs not passed
|
|
3853
3951
|
* will be hidden.
|
|
3854
3952
|
* @example
|
|
@@ -3871,6 +3969,7 @@ export var HostEvent;
|
|
|
3871
3969
|
HostEvent["SetVisibleTabs"] = "SetPinboardVisibleTabs";
|
|
3872
3970
|
/**
|
|
3873
3971
|
* Set the hidden tabs on a Liveboard.
|
|
3972
|
+
* Payload: `string[]`.
|
|
3874
3973
|
* @param - an array of the IDs of the tabs to hide.
|
|
3875
3974
|
* The IDs not passed will be shown.
|
|
3876
3975
|
* @example
|
|
@@ -3899,6 +3998,8 @@ export var HostEvent;
|
|
|
3899
3998
|
* `getAnswerService()` method on the embed instance to get an AnswerService
|
|
3900
3999
|
* object that provides a more convenient interface for working with answers.
|
|
3901
4000
|
*
|
|
4001
|
+
* Payload: {@link GetAnswerSessionRequest}.
|
|
4002
|
+
* Response: {@link GetAnswerSessionResponse}.
|
|
3902
4003
|
* @example
|
|
3903
4004
|
* ```js
|
|
3904
4005
|
* // Preferred way to get an AnswerService
|
|
@@ -3926,6 +4027,7 @@ export var HostEvent;
|
|
|
3926
4027
|
HostEvent["GetAnswerSession"] = "getAnswerSession";
|
|
3927
4028
|
/**
|
|
3928
4029
|
* Trigger the *Ask Sage* action for visualizations
|
|
4030
|
+
* Payload: {@link RequiredVizRequest}.
|
|
3929
4031
|
* @example
|
|
3930
4032
|
* ```js
|
|
3931
4033
|
* liveboardEmbed.trigger(HostEvent.AskSage,
|
|
@@ -3937,6 +4039,7 @@ export var HostEvent;
|
|
|
3937
4039
|
/**
|
|
3938
4040
|
* Trigger cross filter update action on a Liveboard.
|
|
3939
4041
|
*
|
|
4042
|
+
* Payload: {@link UpdateCrossFilterRequest}.
|
|
3940
4043
|
* @example
|
|
3941
4044
|
* ```js
|
|
3942
4045
|
* liveboardEmbed.trigger(HostEvent.UpdateCrossFilter, {
|
|
@@ -3952,7 +4055,9 @@ export var HostEvent;
|
|
|
3952
4055
|
HostEvent["UpdateCrossFilter"] = "UpdateCrossFilter";
|
|
3953
4056
|
/**
|
|
3954
4057
|
* Trigger reset action for a personalized Liveboard view.
|
|
3955
|
-
* This event is deprecated.
|
|
4058
|
+
* This event is deprecated.
|
|
4059
|
+
* Use {@link HostEvent.ResetLiveboardPersonalizedView} instead.
|
|
4060
|
+
* Payload: none.
|
|
3956
4061
|
* @example
|
|
3957
4062
|
* ```js
|
|
3958
4063
|
* liveboardEmbed.trigger(HostEvent.ResetLiveboardPersonalisedView);
|
|
@@ -3973,6 +4078,7 @@ export var HostEvent;
|
|
|
3973
4078
|
/**
|
|
3974
4079
|
* Triggers an action to update Parameter values on embedded
|
|
3975
4080
|
* Answers, Liveboard, and Spotter answer in Edit mode.
|
|
4081
|
+
* Payload: {@link RuntimeParameter}[].
|
|
3976
4082
|
* @param - Includes the following keys for each item:
|
|
3977
4083
|
* - `name`: Name of the parameter.
|
|
3978
4084
|
* - `value`: The value to set for the parameter.
|
|
@@ -4030,6 +4136,8 @@ export var HostEvent;
|
|
|
4030
4136
|
* whole Liveboard.
|
|
4031
4137
|
* The `applicability` attribute is available from SDK: 1.53.0 |
|
|
4032
4138
|
* ThoughtSpot: 26.10.0.cl.
|
|
4139
|
+
* Payload: none.
|
|
4140
|
+
* Response: {@link GetParametersResponse}.
|
|
4033
4141
|
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
4034
4142
|
* ```js
|
|
4035
4143
|
* liveboardEmbed.trigger(HostEvent.GetParameters).then((parameter) => {
|
|
@@ -4067,6 +4175,7 @@ export var HostEvent;
|
|
|
4067
4175
|
* ```js
|
|
4068
4176
|
* liveboardEmbed.trigger(HostEvent.UpdatePersonalisedView, {viewId: '1234'})
|
|
4069
4177
|
* ```
|
|
4178
|
+
* Payload: {@link PersonalisedViewRequest} (`viewId` only).
|
|
4070
4179
|
* @example
|
|
4071
4180
|
* ```js
|
|
4072
4181
|
* // Update personalized view from liveboard context
|
|
@@ -4099,6 +4208,7 @@ export var HostEvent;
|
|
|
4099
4208
|
* If neither is provided, the Liveboard resets to the original/default view.
|
|
4100
4209
|
* When a `viewName` is provided and multiple views share
|
|
4101
4210
|
* the same name, the first match is selected.
|
|
4211
|
+
* Payload: {@link PersonalisedViewRequest}.
|
|
4102
4212
|
* @example
|
|
4103
4213
|
* ```js
|
|
4104
4214
|
* liveboardEmbed.trigger(
|
|
@@ -4142,6 +4252,8 @@ export var HostEvent;
|
|
|
4142
4252
|
* If no parameters are specified, the save action is
|
|
4143
4253
|
* triggered with a modal to prompt users to
|
|
4144
4254
|
* add a name and description for the Answer.
|
|
4255
|
+
* Payload: {@link SaveAnswerRequest}.
|
|
4256
|
+
* Response: {@link SaveAnswerResponse}.
|
|
4145
4257
|
* @param - Includes the following keys:
|
|
4146
4258
|
* - `vizId`: Refers to the Answer ID in Spotter embed and is **required** in Spotter
|
|
4147
4259
|
* embed.
|
|
@@ -4227,6 +4339,7 @@ export var HostEvent;
|
|
|
4227
4339
|
/**
|
|
4228
4340
|
* Triggers a search operation with the search tokens specified in
|
|
4229
4341
|
* the search query string in spotter embed.
|
|
4342
|
+
* Payload: {@link SpotterSearchRequest}.
|
|
4230
4343
|
* @param - Includes the following keys:
|
|
4231
4344
|
* - `query`: Text string in Natural Language format.
|
|
4232
4345
|
* - `executeSearch`: Boolean to execute search and update search query.
|
|
@@ -4251,6 +4364,7 @@ export var HostEvent;
|
|
|
4251
4364
|
HostEvent["SpotterSearch"] = "SpotterSearch";
|
|
4252
4365
|
/**
|
|
4253
4366
|
* Edits the last prompt in spotter embed.
|
|
4367
|
+
* Payload: `string`.
|
|
4254
4368
|
* @param - `query`: Text string
|
|
4255
4369
|
* @example
|
|
4256
4370
|
* ```js
|
|
@@ -4267,6 +4381,7 @@ export var HostEvent;
|
|
|
4267
4381
|
HostEvent["EditLastPrompt"] = "EditLastPrompt";
|
|
4268
4382
|
/**
|
|
4269
4383
|
* Opens the data source preview modal in Spotter Embed.
|
|
4384
|
+
* Payload: none.
|
|
4270
4385
|
* @example
|
|
4271
4386
|
* ```js
|
|
4272
4387
|
* spotterEmbed.trigger(HostEvent.PreviewSpotterData);
|
|
@@ -4302,6 +4417,7 @@ export var HostEvent;
|
|
|
4302
4417
|
HostEvent["DataModelInstructions"] = "DataModelInstructions";
|
|
4303
4418
|
/**
|
|
4304
4419
|
* Resets the Spotter Embed Conversation.
|
|
4420
|
+
* Payload: none.
|
|
4305
4421
|
* @example
|
|
4306
4422
|
* ```js
|
|
4307
4423
|
* spotterEmbed.trigger(HostEvent.ResetSpotterConversation);
|
|
@@ -4314,6 +4430,7 @@ export var HostEvent;
|
|
|
4314
4430
|
* `conversationId` is **mandatory** — you must pass the id of the
|
|
4315
4431
|
* conversation to share. Also no-op when sharing is disabled
|
|
4316
4432
|
* (enableShareConversation off) or when already in the read-only shared view.
|
|
4433
|
+
* Payload: {@link ConversationScopedRequest}.
|
|
4317
4434
|
* @example
|
|
4318
4435
|
* ```js
|
|
4319
4436
|
* spotterEmbed.trigger(HostEvent.ShareSpotterConversation, { conversationId: 'abc' });
|
|
@@ -4323,6 +4440,7 @@ export var HostEvent;
|
|
|
4323
4440
|
HostEvent["ShareSpotterConversation"] = "ShareSpotterConversation";
|
|
4324
4441
|
/**
|
|
4325
4442
|
* Closes the Spotter share-conversation modal. No-op if none is open.
|
|
4443
|
+
* Payload: none.
|
|
4326
4444
|
* @example
|
|
4327
4445
|
* ```js
|
|
4328
4446
|
* spotterEmbed.trigger(HostEvent.CloseSpotterShareConversation);
|
|
@@ -4332,6 +4450,7 @@ export var HostEvent;
|
|
|
4332
4450
|
HostEvent["CloseSpotterShareConversation"] = "CloseSpotterShareConversation";
|
|
4333
4451
|
/**
|
|
4334
4452
|
* Exits the read-only shared-conversation view.
|
|
4453
|
+
* Payload: none.
|
|
4335
4454
|
* @example
|
|
4336
4455
|
* ```js
|
|
4337
4456
|
* spotterEmbed.trigger(HostEvent.ExitSpotterSharedConversation);
|
|
@@ -4341,6 +4460,7 @@ export var HostEvent;
|
|
|
4341
4460
|
HostEvent["ExitSpotterSharedConversation"] = "ExitSpotterSharedConversation";
|
|
4342
4461
|
/**
|
|
4343
4462
|
* Deletes the last prompt in spotter embed.
|
|
4463
|
+
* Payload: none.
|
|
4344
4464
|
* @example
|
|
4345
4465
|
* ```js
|
|
4346
4466
|
* spotterEmbed.trigger(HostEvent.DeleteLastPrompt);
|
|
@@ -4350,6 +4470,7 @@ export var HostEvent;
|
|
|
4350
4470
|
HostEvent["DeleteLastPrompt"] = "DeleteLastPrompt";
|
|
4351
4471
|
/**
|
|
4352
4472
|
* Toggle the visualization to chart or table view.
|
|
4473
|
+
* Payload: {@link RequiredVizRequest}.
|
|
4353
4474
|
* @param - `vizId ` refers to the Visualization ID in Spotter embed and is required.
|
|
4354
4475
|
* @example
|
|
4355
4476
|
* ```js
|
|
@@ -4388,6 +4509,7 @@ export var HostEvent;
|
|
|
4388
4509
|
HostEvent["VisibleEmbedCoordinates"] = "visibleEmbedCoordinates";
|
|
4389
4510
|
/**
|
|
4390
4511
|
* Trigger the *Spotter* action for visualizations present on the liveboard's vizzes.
|
|
4512
|
+
* Payload: {@link RequiredVizRequest}.
|
|
4391
4513
|
* @param - `vizId` refers to the Visualization ID in Spotter embed and is required.
|
|
4392
4514
|
* @example
|
|
4393
4515
|
* ```js
|
|
@@ -4412,7 +4534,13 @@ export var HostEvent;
|
|
|
4412
4534
|
*/
|
|
4413
4535
|
HostEvent["UpdateEmbedParams"] = "updateEmbedParams";
|
|
4414
4536
|
/**
|
|
4415
|
-
*
|
|
4537
|
+
* Notifies the embedded ThoughtSpot app that the embed is being torn down, so that
|
|
4538
|
+
* it can release any resources it holds before the iframe is removed from the DOM.
|
|
4539
|
+
*
|
|
4540
|
+
* This is triggered for you by `embed.destroy()`; you rarely need to trigger it
|
|
4541
|
+
* directly. If `waitForCleanupOnDestroy` is set in the embed config, `destroy()`
|
|
4542
|
+
* waits for the app to acknowledge this event (up to `cleanupTimeout`) before
|
|
4543
|
+
* removing the iframe.
|
|
4416
4544
|
* @example
|
|
4417
4545
|
* ```js
|
|
4418
4546
|
* liveboardEmbed.trigger(HostEvent.DestroyEmbed);
|
|
@@ -4443,6 +4571,7 @@ export var HostEvent;
|
|
|
4443
4571
|
* instance. Contact your admin or ThoughtSpot Support to enable chat history on your
|
|
4444
4572
|
* instance.
|
|
4445
4573
|
*
|
|
4574
|
+
* Payload: {@link ConversationScopedRequest}.
|
|
4446
4575
|
* @version SDK: 1.53.0 | ThoughtSpot Cloud: 26.10.0.cl
|
|
4447
4576
|
* @example
|
|
4448
4577
|
* ```js
|
|
@@ -4460,6 +4589,7 @@ export var HostEvent;
|
|
|
4460
4589
|
* instance. Contact your admin or ThoughtSpot Support to enable chat history on your
|
|
4461
4590
|
* instance.
|
|
4462
4591
|
*
|
|
4592
|
+
* Payload: {@link ConversationScopedRequest}.
|
|
4463
4593
|
* @version SDK: 1.53.0 | ThoughtSpot Cloud: 26.10.0.cl
|
|
4464
4594
|
* @example
|
|
4465
4595
|
* ```js
|
|
@@ -4484,6 +4614,7 @@ export var HostEvent;
|
|
|
4484
4614
|
* Trigger the **Send Test Email** action in the Liveboard schedule modal.
|
|
4485
4615
|
* Sends a test schedule email to self or all recipients.
|
|
4486
4616
|
* Requires `isSendNowLiveboardSchedulingEnabled` to be enabled.
|
|
4617
|
+
* Payload: {@link ScheduleEmailRequest}.
|
|
4487
4618
|
* @example
|
|
4488
4619
|
* ```js
|
|
4489
4620
|
* liveboardEmbed.trigger(HostEvent.SendTestScheduleEmail, {
|
|
@@ -4502,6 +4633,7 @@ export var HostEvent;
|
|
|
4502
4633
|
HostEvent["SendTestScheduleEmail"] = "sendTestScheduleEmail";
|
|
4503
4634
|
/**
|
|
4504
4635
|
* Sends a user message (prompt) to the SpotterViz panel programmatically.
|
|
4636
|
+
* Payload: `{ query: string }`.
|
|
4505
4637
|
* @version SDK: 1.50.0 | ThoughtSpot Cloud: 26.7.0.cl
|
|
4506
4638
|
* @param query - the prompt text to send.
|
|
4507
4639
|
* @example
|
|
@@ -4514,6 +4646,7 @@ export var HostEvent;
|
|
|
4514
4646
|
HostEvent["SpotterVizSendUserMessage"] = "SpotterVizSendUserMessage";
|
|
4515
4647
|
/**
|
|
4516
4648
|
* Initializes a new SpotterViz conversation.
|
|
4649
|
+
* Payload: none.
|
|
4517
4650
|
* @version SDK: 1.50.0 | ThoughtSpot Cloud: 26.7.0.cl
|
|
4518
4651
|
* @example
|
|
4519
4652
|
* ```js
|
|
@@ -4523,6 +4656,7 @@ export var HostEvent;
|
|
|
4523
4656
|
HostEvent["InitSpotterVizConversation"] = "InitSpotterVizConversation";
|
|
4524
4657
|
/**
|
|
4525
4658
|
* Opens the SpotterViz panel.
|
|
4659
|
+
* Payload: none.
|
|
4526
4660
|
* @version SDK: 1.50.0 | ThoughtSpot Cloud: 26.7.0.cl
|
|
4527
4661
|
* @example
|
|
4528
4662
|
* ```js
|
|
@@ -4532,6 +4666,7 @@ export var HostEvent;
|
|
|
4532
4666
|
HostEvent["OpenSpotterVizPanel"] = "OpenSpotterVizPanel";
|
|
4533
4667
|
/**
|
|
4534
4668
|
* Closes the SpotterViz panel.
|
|
4669
|
+
* Payload: none.
|
|
4535
4670
|
* @version SDK: 1.50.0 | ThoughtSpot Cloud: 26.7.0.cl
|
|
4536
4671
|
* @example
|
|
4537
4672
|
* ```js
|
|
@@ -4542,6 +4677,7 @@ export var HostEvent;
|
|
|
4542
4677
|
/**
|
|
4543
4678
|
* Clears browser cache and fetches new data for liveboard ChartViz Containers.
|
|
4544
4679
|
* Requires `enableLiveboardDataCache` to be enabled.
|
|
4680
|
+
* Payload: {@link ScheduleEmailRequest}.
|
|
4545
4681
|
* @example
|
|
4546
4682
|
* ```js
|
|
4547
4683
|
* liveboardEmbed.trigger(HostEvent.RefreshLiveboardBrowserCache);
|
|
@@ -4739,6 +4875,7 @@ export var Param;
|
|
|
4739
4875
|
Param["SpotterDataSources"] = "spotterDataSources";
|
|
4740
4876
|
Param["AnalystId"] = "analystId";
|
|
4741
4877
|
Param["OpenSpotterOnLiveboardByDefault"] = "openSpotterOnLiveboardByDefault";
|
|
4878
|
+
Param["ShowAnswerEditPanel"] = "showAnswerEditPanel";
|
|
4742
4879
|
})(Param || (Param = {}));
|
|
4743
4880
|
/**
|
|
4744
4881
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -6530,7 +6667,7 @@ export var Action;
|
|
|
6530
6667
|
* ```js
|
|
6531
6668
|
* hiddenActions: [Action.QuickSearchPill]
|
|
6532
6669
|
* ```
|
|
6533
|
-
* @version SDK: 1.
|
|
6670
|
+
* @version SDK: 1.53.0 | ThoughtSpot Cloud: 26.10.0.cl
|
|
6534
6671
|
*/
|
|
6535
6672
|
Action["QuickSearchPill"] = "quickSearchPill";
|
|
6536
6673
|
/**
|
|
@@ -6545,7 +6682,7 @@ export var Action;
|
|
|
6545
6682
|
* ```js
|
|
6546
6683
|
* hiddenActions: [Action.DeepAnalysisPill]
|
|
6547
6684
|
* ```
|
|
6548
|
-
* @version SDK: 1.
|
|
6685
|
+
* @version SDK: 1.53.0 | ThoughtSpot Cloud: 26.10.0.cl
|
|
6549
6686
|
*/
|
|
6550
6687
|
Action["DeepAnalysisPill"] = "deepAnalysisPill";
|
|
6551
6688
|
/**
|
|
@@ -6560,7 +6697,7 @@ export var Action;
|
|
|
6560
6697
|
* ```js
|
|
6561
6698
|
* hiddenActions: [Action.DataLiteracyPill]
|
|
6562
6699
|
* ```
|
|
6563
|
-
* @version SDK: 1.
|
|
6700
|
+
* @version SDK: 1.53.0 | ThoughtSpot Cloud: 26.10.0.cl
|
|
6564
6701
|
*/
|
|
6565
6702
|
Action["DataLiteracyPill"] = "dataLiteracyPill";
|
|
6566
6703
|
/**
|
|
@@ -6743,6 +6880,225 @@ export var Action;
|
|
|
6743
6880
|
* ```
|
|
6744
6881
|
*/
|
|
6745
6882
|
Action["SpotterOnLiveboard"] = "spotterOnLiveboard";
|
|
6883
|
+
/**
|
|
6884
|
+
* Controls the visibility and disabled state of the "Chart Type" menu item
|
|
6885
|
+
* in Chart Settings V2.
|
|
6886
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
6887
|
+
* @example
|
|
6888
|
+
* ```js
|
|
6889
|
+
* {
|
|
6890
|
+
* hiddenActions: [Action.ChartTypeSettings],
|
|
6891
|
+
* disabledActions: [Action.ChartTypeSettings],
|
|
6892
|
+
* }
|
|
6893
|
+
* ```
|
|
6894
|
+
*/
|
|
6895
|
+
Action["ChartTypeSettings"] = "CHART_TYPE";
|
|
6896
|
+
/**
|
|
6897
|
+
* Controls the visibility and disabled state of the "Layout" menu item
|
|
6898
|
+
* in Chart Settings V2.
|
|
6899
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
6900
|
+
* @example
|
|
6901
|
+
* ```js
|
|
6902
|
+
* {
|
|
6903
|
+
* hiddenActions: [Action.LayoutSettings],
|
|
6904
|
+
* disabledActions: [Action.LayoutSettings],
|
|
6905
|
+
* }
|
|
6906
|
+
* ```
|
|
6907
|
+
*/
|
|
6908
|
+
Action["LayoutSettings"] = "LAYOUT";
|
|
6909
|
+
/**
|
|
6910
|
+
* Controls the visibility and disabled state of the "Column" menu item
|
|
6911
|
+
* in Chart Settings V2.
|
|
6912
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
6913
|
+
* @example
|
|
6914
|
+
* ```js
|
|
6915
|
+
* {
|
|
6916
|
+
* hiddenActions: [Action.ColumnSettings],
|
|
6917
|
+
* disabledActions: [Action.ColumnSettings],
|
|
6918
|
+
* }
|
|
6919
|
+
* ```
|
|
6920
|
+
*/
|
|
6921
|
+
Action["ColumnSettings"] = "COLUMN";
|
|
6922
|
+
/**
|
|
6923
|
+
* Controls the visibility and disabled state of the "Axis" menu item
|
|
6924
|
+
* in Chart Settings V2.
|
|
6925
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
6926
|
+
* @example
|
|
6927
|
+
* ```js
|
|
6928
|
+
* {
|
|
6929
|
+
* hiddenActions: [Action.AxisSettings],
|
|
6930
|
+
* disabledActions: [Action.AxisSettings],
|
|
6931
|
+
* }
|
|
6932
|
+
* ```
|
|
6933
|
+
*/
|
|
6934
|
+
Action["AxisSettings"] = "AXIS";
|
|
6935
|
+
/**
|
|
6936
|
+
* Controls the visibility and disabled state of the "Data Label" menu item
|
|
6937
|
+
* in Chart Settings V2.
|
|
6938
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
6939
|
+
* @example
|
|
6940
|
+
* ```js
|
|
6941
|
+
* {
|
|
6942
|
+
* hiddenActions: [Action.DataLabelSettings],
|
|
6943
|
+
* disabledActions: [Action.DataLabelSettings],
|
|
6944
|
+
* }
|
|
6945
|
+
* ```
|
|
6946
|
+
*/
|
|
6947
|
+
Action["DataLabelSettings"] = "DATA_LABEL";
|
|
6948
|
+
/**
|
|
6949
|
+
* Controls the visibility and disabled state of the "Tooltip" menu item
|
|
6950
|
+
* in Chart Settings V2.
|
|
6951
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
6952
|
+
* @example
|
|
6953
|
+
* ```js
|
|
6954
|
+
* {
|
|
6955
|
+
* hiddenActions: [Action.TooltipSettings],
|
|
6956
|
+
* disabledActions: [Action.TooltipSettings],
|
|
6957
|
+
* }
|
|
6958
|
+
* ```
|
|
6959
|
+
*/
|
|
6960
|
+
Action["TooltipSettings"] = "TOOLTIP";
|
|
6961
|
+
/**
|
|
6962
|
+
* Controls the visibility and disabled state of the "Legend" menu item
|
|
6963
|
+
* in Chart Settings V2.
|
|
6964
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
6965
|
+
* @example
|
|
6966
|
+
* ```js
|
|
6967
|
+
* {
|
|
6968
|
+
* hiddenActions: [Action.LegendSettings],
|
|
6969
|
+
* disabledActions: [Action.LegendSettings],
|
|
6970
|
+
* }
|
|
6971
|
+
* ```
|
|
6972
|
+
*/
|
|
6973
|
+
Action["LegendSettings"] = "LEGEND";
|
|
6974
|
+
/**
|
|
6975
|
+
* Controls the visibility and disabled state of the "Display" menu item
|
|
6976
|
+
* in Chart Settings V2.
|
|
6977
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
6978
|
+
* @example
|
|
6979
|
+
* ```js
|
|
6980
|
+
* {
|
|
6981
|
+
* hiddenActions: [Action.DisplaySettings],
|
|
6982
|
+
* disabledActions: [Action.DisplaySettings],
|
|
6983
|
+
* }
|
|
6984
|
+
* ```
|
|
6985
|
+
*/
|
|
6986
|
+
Action["DisplaySettings"] = "DISPLAY";
|
|
6987
|
+
/**
|
|
6988
|
+
* Controls the visibility and disabled state of the "Query Details" menu
|
|
6989
|
+
* item in Chart Settings V2.
|
|
6990
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
6991
|
+
* @example
|
|
6992
|
+
* ```js
|
|
6993
|
+
* {
|
|
6994
|
+
* hiddenActions: [Action.QuerySettings],
|
|
6995
|
+
* disabledActions: [Action.QuerySettings],
|
|
6996
|
+
* }
|
|
6997
|
+
* ```
|
|
6998
|
+
*/
|
|
6999
|
+
Action["QuerySettings"] = "QUERY_DETAILS";
|
|
7000
|
+
/**
|
|
7001
|
+
* Controls the visibility and disabled state of the "Custom Action" menu
|
|
7002
|
+
* item in Chart Settings V2.
|
|
7003
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
7004
|
+
* @example
|
|
7005
|
+
* ```js
|
|
7006
|
+
* {
|
|
7007
|
+
* hiddenActions: [Action.CustomSettings],
|
|
7008
|
+
* disabledActions: [Action.CustomSettings],
|
|
7009
|
+
* }
|
|
7010
|
+
* ```
|
|
7011
|
+
*/
|
|
7012
|
+
Action["CustomSettings"] = "CUSTOM_ACTION";
|
|
7013
|
+
/**
|
|
7014
|
+
* Controls the visibility and disabled state of the "Muze AI" menu item
|
|
7015
|
+
* in Chart Settings V2.
|
|
7016
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
7017
|
+
* @example
|
|
7018
|
+
* ```js
|
|
7019
|
+
* {
|
|
7020
|
+
* hiddenActions: [Action.MuzeAiSettings],
|
|
7021
|
+
* disabledActions: [Action.MuzeAiSettings],
|
|
7022
|
+
* }
|
|
7023
|
+
* ```
|
|
7024
|
+
*/
|
|
7025
|
+
Action["MuzeAiSettings"] = "MUZE_AI";
|
|
7026
|
+
/**
|
|
7027
|
+
* Controls the visibility and disabled state of the "R Analysis" menu item
|
|
7028
|
+
* in Chart Settings V2.
|
|
7029
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
7030
|
+
* @example
|
|
7031
|
+
* ```js
|
|
7032
|
+
* {
|
|
7033
|
+
* hiddenActions: [Action.RAnalysisSettings],
|
|
7034
|
+
* disabledActions: [Action.RAnalysisSettings],
|
|
7035
|
+
* }
|
|
7036
|
+
* ```
|
|
7037
|
+
*/
|
|
7038
|
+
Action["RAnalysisSettings"] = "R_ANALYSIS";
|
|
7039
|
+
/**
|
|
7040
|
+
* Controls the visibility and disabled state of the "Add to Collection" menu item.
|
|
7041
|
+
* @version SDK: 1.52.1 | ThoughtSpot Cloud: 26.5.0.cl
|
|
7042
|
+
* @example
|
|
7043
|
+
* ```js
|
|
7044
|
+
* {
|
|
7045
|
+
* hiddenActions: [Action.AddToCollection],
|
|
7046
|
+
* disabledActions: [Action.AddToCollection],
|
|
7047
|
+
* }
|
|
7048
|
+
* ```
|
|
7049
|
+
*/
|
|
7050
|
+
Action["AddToCollection"] = "addToCollection";
|
|
7051
|
+
/**
|
|
7052
|
+
* Controls the visibility and disabled state of the "Create Collection" button.
|
|
7053
|
+
* @version SDK: 1.52.1 | ThoughtSpot Cloud: 26.5.0.cl
|
|
7054
|
+
* @example
|
|
7055
|
+
* ```js
|
|
7056
|
+
* {
|
|
7057
|
+
* hiddenActions: [Action.CreateCollection],
|
|
7058
|
+
* disabledActions: [Action.CreateCollection],
|
|
7059
|
+
* }
|
|
7060
|
+
* ```
|
|
7061
|
+
*/
|
|
7062
|
+
Action["CreateCollection"] = "createCollection";
|
|
7063
|
+
/**
|
|
7064
|
+
* Controls the visibility and disabled state of the "Move" menu item in a
|
|
7065
|
+
* Collection.
|
|
7066
|
+
* @version SDK: 1.52.1 | ThoughtSpot Cloud: 26.5.0.cl
|
|
7067
|
+
* @example
|
|
7068
|
+
* ```js
|
|
7069
|
+
* {
|
|
7070
|
+
* hiddenActions: [Action.MoveToCollection],
|
|
7071
|
+
* disabledActions: [Action.MoveToCollection],
|
|
7072
|
+
* }
|
|
7073
|
+
* ```
|
|
7074
|
+
*/
|
|
7075
|
+
Action["MoveToCollection"] = "moveToCollection";
|
|
7076
|
+
/**
|
|
7077
|
+
* Controls the visibility and disabled state of the "Remove" menu item in a
|
|
7078
|
+
* Collection.
|
|
7079
|
+
* @version SDK: 1.52.1 | ThoughtSpot Cloud: 26.5.0.cl
|
|
7080
|
+
* @example
|
|
7081
|
+
* ```js
|
|
7082
|
+
* {
|
|
7083
|
+
* hiddenActions: [Action.RemoveFromCollection],
|
|
7084
|
+
* disabledActions: [Action.RemoveFromCollection],
|
|
7085
|
+
* }
|
|
7086
|
+
* ```
|
|
7087
|
+
*/
|
|
7088
|
+
Action["RemoveFromCollection"] = "removeFromCollection";
|
|
7089
|
+
/**
|
|
7090
|
+
* Controls the visibility and disabled state of the "Delete" menu item for a
|
|
7091
|
+
* Collection.
|
|
7092
|
+
* @version SDK: 1.52.1 | ThoughtSpot Cloud: 26.5.0.cl
|
|
7093
|
+
* @example
|
|
7094
|
+
* ```js
|
|
7095
|
+
* {
|
|
7096
|
+
* hiddenActions: [Action.DeleteCollection],
|
|
7097
|
+
* disabledActions: [Action.DeleteCollection],
|
|
7098
|
+
* }
|
|
7099
|
+
* ```
|
|
7100
|
+
*/
|
|
7101
|
+
Action["DeleteCollection"] = "deleteCollection";
|
|
6746
7102
|
})(Action || (Action = {}));
|
|
6747
7103
|
export var PrefetchFeatures;
|
|
6748
7104
|
(function (PrefetchFeatures) {
|
|
@@ -7033,6 +7389,36 @@ export var EmbedErrorCodes;
|
|
|
7033
7389
|
/** UpdateParameters payload is invalid - malformed applicability */
|
|
7034
7390
|
EmbedErrorCodes["UPDATEPARAMETERS_INVALID_PAYLOAD"] = "UPDATEPARAMETERS_INVALID_PAYLOAD";
|
|
7035
7391
|
})(EmbedErrorCodes || (EmbedErrorCodes = {}));
|
|
7392
|
+
/**
|
|
7393
|
+
* How badly an error affects the embed, so the host can decide whether it is
|
|
7394
|
+
* worth surfacing to the end user.
|
|
7395
|
+
*
|
|
7396
|
+
* Mirrors the severity that ThoughtSpot itself stamps on errors raised inside
|
|
7397
|
+
* the embedded app, so a host can apply one rule to both sources.
|
|
7398
|
+
*
|
|
7399
|
+
* @version SDK: 1.52.0 | ThoughtSpot Cloud: 26.9.0.cl
|
|
7400
|
+
* @group Error Handling
|
|
7401
|
+
*
|
|
7402
|
+
* @example
|
|
7403
|
+
* Only surface errors that took the embed down
|
|
7404
|
+
*
|
|
7405
|
+
* ```js
|
|
7406
|
+
* embed.on(EmbedEvent.Error, (error) => {
|
|
7407
|
+
* if (error.severity === EmbedErrorSeverity.SEV1) {
|
|
7408
|
+
* showBanner(error.message);
|
|
7409
|
+
* }
|
|
7410
|
+
* });
|
|
7411
|
+
* ```
|
|
7412
|
+
*/
|
|
7413
|
+
export var EmbedErrorSeverity;
|
|
7414
|
+
(function (EmbedErrorSeverity) {
|
|
7415
|
+
/** The embed cannot render. Nothing usable is on screen. */
|
|
7416
|
+
EmbedErrorSeverity[EmbedErrorSeverity["SEV1"] = 1] = "SEV1";
|
|
7417
|
+
/** Something is degraded but the embed still works. */
|
|
7418
|
+
EmbedErrorSeverity[EmbedErrorSeverity["SEV2"] = 2] = "SEV2";
|
|
7419
|
+
/** Everything else, including validation of the embedder's own input. */
|
|
7420
|
+
EmbedErrorSeverity[EmbedErrorSeverity["SEV3"] = 3] = "SEV3";
|
|
7421
|
+
})(EmbedErrorSeverity || (EmbedErrorSeverity = {}));
|
|
7036
7422
|
/**
|
|
7037
7423
|
* Context types for specifying the page context when triggering host events.
|
|
7038
7424
|
* Used as the third parameter in the `trigger` method to help ThoughtSpot
|
|
@@ -7073,20 +7459,27 @@ export var ContextType;
|
|
|
7073
7459
|
ContextType["Other"] = "other";
|
|
7074
7460
|
})(ContextType || (ContextType = {}));
|
|
7075
7461
|
/**
|
|
7076
|
-
*
|
|
7462
|
+
* Named groups of ThoughtSpot APIs that can be intercepted, for use in
|
|
7463
|
+
* `interceptUrls`. Each group expands to the underlying request URLs, so you do
|
|
7464
|
+
* not have to list them individually.
|
|
7077
7465
|
*/
|
|
7078
7466
|
export var InterceptedApiType;
|
|
7079
7467
|
(function (InterceptedApiType) {
|
|
7080
7468
|
/**
|
|
7081
|
-
* The
|
|
7469
|
+
* The APIs that fetch the data backing an Answer, including its chart,
|
|
7470
|
+
* table, and headline data.
|
|
7082
7471
|
*/
|
|
7083
7472
|
InterceptedApiType["AnswerData"] = "AnswerData";
|
|
7084
7473
|
/**
|
|
7085
|
-
*
|
|
7474
|
+
* Intercepts every `fetch` request the embedded application makes, not only
|
|
7475
|
+
* the data APIs. This includes authentication, session, and metadata calls,
|
|
7476
|
+
* so the handler must respond to requests it does not recognize by passing
|
|
7477
|
+
* `execute: true`. Listing this alongside other entries in `interceptUrls`
|
|
7478
|
+
* supersedes them.
|
|
7086
7479
|
*/
|
|
7087
7480
|
InterceptedApiType["ALL"] = "ALL";
|
|
7088
7481
|
/**
|
|
7089
|
-
* The
|
|
7482
|
+
* The APIs that fetch the data backing a Liveboard.
|
|
7090
7483
|
*/
|
|
7091
7484
|
InterceptedApiType["LiveboardData"] = "LiveboardData";
|
|
7092
7485
|
})(InterceptedApiType || (InterceptedApiType = {}));
|