@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/cjs/src/types.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.TableContentDensity = exports.TableTheme = exports.LegendPosition = exports.ConditionalFormattingComparisonType = exports.BackgroundFormatType = exports.ConditionalFormattingOperator = exports.DataLabelFilterOperator = exports.InterceptedApiType = exports.ContextType = exports.EmbedErrorCodes = exports.ErrorDetailsTypes = exports.LogLevel = exports.CustomActionTarget = exports.CustomActionsPosition = exports.ContextMenuTriggerOptions = exports.PrefetchFeatures = exports.Action = exports.Param = exports.DataSourceVisualMode = exports.HostEvent = exports.EmbedEvent = exports.ListPageColumns = exports.HomepageModule = exports.RuntimeFilterOp = exports.HomeLeftNavItem = exports.AuthType = void 0;
|
|
10
|
+
exports.TableContentDensity = exports.TableTheme = exports.LegendPosition = exports.ConditionalFormattingComparisonType = exports.BackgroundFormatType = exports.ConditionalFormattingOperator = exports.DataLabelFilterOperator = exports.InterceptedApiType = exports.ContextType = exports.EmbedErrorSeverity = exports.EmbedErrorCodes = exports.ErrorDetailsTypes = exports.LogLevel = exports.CustomActionTarget = exports.CustomActionsPosition = exports.ContextMenuTriggerOptions = exports.PrefetchFeatures = exports.Action = exports.Param = exports.DataSourceVisualMode = exports.HostEvent = exports.EmbedEvent = exports.ListPageColumns = exports.HomepageModule = exports.RuntimeFilterOp = exports.HomeLeftNavItem = exports.AuthType = void 0;
|
|
11
11
|
/**
|
|
12
12
|
* The authentication mechanism for allowing access to
|
|
13
13
|
* the embedded app
|
|
@@ -844,6 +844,9 @@ var EmbedEvent;
|
|
|
844
844
|
EmbedEvent["Download"] = "download";
|
|
845
845
|
/**
|
|
846
846
|
* Emitted when the download action is triggered on an Answer.
|
|
847
|
+
* Payload varies by context: {@link VizScopedRequest} (Search, Answer,
|
|
848
|
+
* Liveboard), {@link RequiredVizRequest} (Spotter, vizId required). trigger()
|
|
849
|
+
* accepts the union now; per-context enforced next release.
|
|
847
850
|
* Use start:true to subscribe to when download is initiated, or end:true to
|
|
848
851
|
* subscribe to when download is completed. Default is end:true.
|
|
849
852
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.0.sw
|
|
@@ -860,6 +863,9 @@ var EmbedEvent;
|
|
|
860
863
|
EmbedEvent["DownloadAsPng"] = "downloadAsPng";
|
|
861
864
|
/**
|
|
862
865
|
* Emitted when the Download as PDF action is triggered on an Answer
|
|
866
|
+
* Payload varies by context: {@link VizScopedRequest} (Search, Answer; plus
|
|
867
|
+
* liveboardId on Liveboard), {@link RequiredVizRequest} (Spotter). trigger()
|
|
868
|
+
* accepts the union now; per-context enforced next release.
|
|
863
869
|
* Use start:true to subscribe to when download as PDF is initiated, or end:true to
|
|
864
870
|
* subscribe to when download as PDF is completed. Default is end:true.
|
|
865
871
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
@@ -876,6 +882,9 @@ var EmbedEvent;
|
|
|
876
882
|
EmbedEvent["DownloadAsPdf"] = "downloadAsPdf";
|
|
877
883
|
/**
|
|
878
884
|
* Emitted when the Download as CSV action is triggered on an Answer.
|
|
885
|
+
* Payload varies by context: {@link VizScopedRequest} (Search, Answer,
|
|
886
|
+
* Liveboard), {@link RequiredVizRequest} (Spotter, vizId required). trigger()
|
|
887
|
+
* accepts the union now; per-context enforced next release.
|
|
879
888
|
* Use start:true to subscribe to when download as CSV is initiated, or end:true to
|
|
880
889
|
* subscribe to when download as CSV is completed. Default is end:true.
|
|
881
890
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
@@ -892,6 +901,9 @@ var EmbedEvent;
|
|
|
892
901
|
EmbedEvent["DownloadAsCsv"] = "downloadAsCsv";
|
|
893
902
|
/**
|
|
894
903
|
* Emitted when the Download as XLSX action is triggered on an Answer.
|
|
904
|
+
* Payload varies by context: {@link VizScopedRequest} (Search, Answer,
|
|
905
|
+
* Liveboard), {@link RequiredVizRequest} (Spotter, vizId required). trigger()
|
|
906
|
+
* accepts the union now; per-context enforced next release.
|
|
895
907
|
* Use start:true to subscribe to when download as XLSX is initiated, or end:true to
|
|
896
908
|
* subscribe to when download as XLSX is completed. Default is end:true.
|
|
897
909
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
@@ -1170,6 +1182,9 @@ var EmbedEvent;
|
|
|
1170
1182
|
EmbedEvent["Schedule"] = "subscription";
|
|
1171
1183
|
/**
|
|
1172
1184
|
* Emitted when a user clicks **Edit** on a Liveboard or visualization
|
|
1185
|
+
* Payload varies by context: {@link VizScopedRequest} (Liveboard),
|
|
1186
|
+
* {@link RequiredVizRequest} (Spotter, vizId required). trigger() accepts the
|
|
1187
|
+
* union now; per-context enforced next release.
|
|
1173
1188
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1174
1189
|
* @example
|
|
1175
1190
|
* ```js
|
|
@@ -1711,7 +1726,32 @@ var EmbedEvent;
|
|
|
1711
1726
|
*/
|
|
1712
1727
|
EmbedEvent["OrgSwitched"] = "orgSwitched";
|
|
1713
1728
|
/**
|
|
1714
|
-
* Emitted
|
|
1729
|
+
* Emitted before the embedded ThoughtSpot app sends a network request whose
|
|
1730
|
+
* fully resolved URL matches one of the `interceptUrls` in the view config.
|
|
1731
|
+
* The request is held until you call `responder`, which decides whether the
|
|
1732
|
+
* real request goes out or a response you supply is used in its place.
|
|
1733
|
+
*
|
|
1734
|
+
* Setting `interceptUrls` is what enables this; there is no separate enable
|
|
1735
|
+
* flag. If `responder` is not called within `interceptTimeout` (30000 ms by
|
|
1736
|
+
* default) the request fails and `EmbedEvent.Error` is emitted.
|
|
1737
|
+
*
|
|
1738
|
+
* The payload is `{ input, init, urlType }`, where `input` is the request
|
|
1739
|
+
* URL and `init` is the `fetch` init object, with `init.body` parsed into an
|
|
1740
|
+
* object when it is valid JSON. `urlType` is the matching
|
|
1741
|
+
* `InterceptedApiType`; it is `InterceptedApiType.ALL` for any URL outside
|
|
1742
|
+
* the recognized API groups.
|
|
1743
|
+
*
|
|
1744
|
+
* Interception wraps the outermost layer of `fetch`, so `init` holds the
|
|
1745
|
+
* request as the application composed it, before ThoughtSpot attaches its
|
|
1746
|
+
* authentication headers. Those headers, and any token refresh and retry,
|
|
1747
|
+
* are applied afterwards and only when you pass `execute: true`. Only
|
|
1748
|
+
* requests made through `fetch` are intercepted.
|
|
1749
|
+
*
|
|
1750
|
+
* Pass `execute: true` to let the original request proceed untouched, in
|
|
1751
|
+
* which case any `response` you supply alongside it is ignored. With
|
|
1752
|
+
* `execute: false` the request is never sent, and your `response.body` is
|
|
1753
|
+
* returned to the app as JSON, defaulting to status 200 and a
|
|
1754
|
+
* `Content-Type: application/json` header.
|
|
1715
1755
|
*
|
|
1716
1756
|
* Supported on all embed types.
|
|
1717
1757
|
*
|
|
@@ -2224,6 +2264,7 @@ var HostEvent;
|
|
|
2224
2264
|
* the search query string.
|
|
2225
2265
|
* Supported in `AppEmbed` and `SearchEmbed` deployments.
|
|
2226
2266
|
* Includes the following properties:
|
|
2267
|
+
* Payload: {@link SearchRequest}.
|
|
2227
2268
|
* @param - Includes the following keys:
|
|
2228
2269
|
* - `searchQuery`: Query string with search tokens.
|
|
2229
2270
|
* - `dataSources`: Data source GUID to search on.
|
|
@@ -2251,6 +2292,9 @@ var HostEvent;
|
|
|
2251
2292
|
HostEvent["Search"] = "search";
|
|
2252
2293
|
/**
|
|
2253
2294
|
* Triggers a drill on certain points of the specified column
|
|
2295
|
+
* Payload: {@link DrillDownRequest}; in Liveboard context vizId is required
|
|
2296
|
+
* ({@link RequiredVizRequest}). trigger() accepts the union now; per-context
|
|
2297
|
+
* enforced next release.
|
|
2254
2298
|
* Includes the following properties:
|
|
2255
2299
|
* @param - Includes the following keys:
|
|
2256
2300
|
* - `points`: An object containing `selectedPoints` and/or `clickedPoint`
|
|
@@ -2330,6 +2374,8 @@ var HostEvent;
|
|
|
2330
2374
|
HostEvent["Reload"] = "reload";
|
|
2331
2375
|
/**
|
|
2332
2376
|
* Get iframe URL for the current embed view.
|
|
2377
|
+
* Payload: none.
|
|
2378
|
+
* Response: {@link GetIframeUrlResponse}.
|
|
2333
2379
|
* @example
|
|
2334
2380
|
* ```js
|
|
2335
2381
|
* const url = embed.trigger(HostEvent.GetIframeUrl);
|
|
@@ -2348,6 +2394,7 @@ var HostEvent;
|
|
|
2348
2394
|
HostEvent["GetIframeUrl"] = "GetIframeUrl";
|
|
2349
2395
|
/**
|
|
2350
2396
|
* Display specific visualizations on a Liveboard.
|
|
2397
|
+
* Payload: `string[]`.
|
|
2351
2398
|
* @param - An array of GUIDs of the visualization to show. The visualization IDs not passed
|
|
2352
2399
|
* in this parameter will be hidden.
|
|
2353
2400
|
* @example
|
|
@@ -2370,6 +2417,7 @@ var HostEvent;
|
|
|
2370
2417
|
HostEvent["SetVisibleVizs"] = "SetPinboardVisibleVizs";
|
|
2371
2418
|
/**
|
|
2372
2419
|
* Set a Liveboard tab as an active tab.
|
|
2420
|
+
* Payload: {@link SetActiveTabRequest}.
|
|
2373
2421
|
* @param - tabId - string of id of Tab to show
|
|
2374
2422
|
* @example
|
|
2375
2423
|
* ```js
|
|
@@ -2397,6 +2445,7 @@ var HostEvent;
|
|
|
2397
2445
|
* and `AppEmbed` only. In full application embedding, this event updates
|
|
2398
2446
|
* the runtime filters applied on the Liveboard and saved Answer objects.
|
|
2399
2447
|
*
|
|
2448
|
+
* Payload: {@link RuntimeFilter}[].
|
|
2400
2449
|
* @param - Array of {@link RuntimeFilter} objects. Each item includes:
|
|
2401
2450
|
* - `columnName`: Name of the column to filter on.
|
|
2402
2451
|
* - `operator`: {@link RuntimeFilterOp} to apply. For more information, see
|
|
@@ -2438,6 +2487,7 @@ var HostEvent;
|
|
|
2438
2487
|
* Accepts either a plain value or an object with `path`
|
|
2439
2488
|
* and an optional `replace` flag.
|
|
2440
2489
|
*
|
|
2490
|
+
* Payload: `string` | `number` | {@link NavigateRequest}.
|
|
2441
2491
|
* @param data - A string path, a numeric history delta, or an object
|
|
2442
2492
|
* `{ path: string | number, replace?: boolean }`.
|
|
2443
2493
|
* - `path` — the route to navigate to, or a history delta such as `1`
|
|
@@ -2465,6 +2515,9 @@ var HostEvent;
|
|
|
2465
2515
|
/**
|
|
2466
2516
|
* Open the filter panel for a particular column.
|
|
2467
2517
|
* Works with Search and Liveboard embed.
|
|
2518
|
+
* Payload: {@link OpenFilterRequest} (the cross-context superset). The
|
|
2519
|
+
* accepted fields vary by context: {@link OpenFilterLiveboardRequest},
|
|
2520
|
+
* {@link OpenFilterSpotterRequest}, {@link OpenFilterSearchRequest}.
|
|
2468
2521
|
* @param - { columnId: string,
|
|
2469
2522
|
* name: string,
|
|
2470
2523
|
* type: ATTRIBUTE/MEASURE,
|
|
@@ -2521,7 +2574,7 @@ var HostEvent;
|
|
|
2521
2574
|
*
|
|
2522
2575
|
* Unlike {@link HostEvent.OpenFilter}, which opens the panel of an
|
|
2523
2576
|
* existing filter, this event starts the creation of a new filter.
|
|
2524
|
-
* @version SDK: 1.
|
|
2577
|
+
* @version SDK: 1.51.1 | ThoughtSpot Cloud: 26.8.0.cl
|
|
2525
2578
|
* @example
|
|
2526
2579
|
* ```js
|
|
2527
2580
|
* liveboardEmbed.trigger(HostEvent.OpenAddFilterModal);
|
|
@@ -2537,7 +2590,7 @@ var HostEvent;
|
|
|
2537
2590
|
* Hiding the *Add parameter* button with `hiddenActions:
|
|
2538
2591
|
* [Action.AddParameter]` does not block this event, but disabling it
|
|
2539
2592
|
* with `disabledActions` does.
|
|
2540
|
-
* @version SDK: 1.
|
|
2593
|
+
* @version SDK: 1.51.1 | ThoughtSpot Cloud: 26.8.0.cl
|
|
2541
2594
|
* @example
|
|
2542
2595
|
* ```js
|
|
2543
2596
|
* liveboardEmbed.trigger(HostEvent.OpenAddParameterModal);
|
|
@@ -2547,6 +2600,7 @@ var HostEvent;
|
|
|
2547
2600
|
/**
|
|
2548
2601
|
* Open the parameter panel for a particular parameter on a Liveboard.
|
|
2549
2602
|
* Mirrors {@link HostEvent.OpenFilter} for parameters.
|
|
2603
|
+
* Payload: {@link OpenParameterRequest}.
|
|
2550
2604
|
* @param - Includes the following keys:
|
|
2551
2605
|
* - `parameter`: An object identifying the parameter to open, for
|
|
2552
2606
|
* example, `{ parameterId: '<parameter-GUID>' }`.
|
|
@@ -2578,6 +2632,7 @@ var HostEvent;
|
|
|
2578
2632
|
HostEvent["OpenParameter"] = "openParameter";
|
|
2579
2633
|
/**
|
|
2580
2634
|
* Add columns to the current search query.
|
|
2635
|
+
* Payload: `{ columnIds: string[] }`.
|
|
2581
2636
|
* @param - { columnIds: string[] }
|
|
2582
2637
|
* @example
|
|
2583
2638
|
* ```js
|
|
@@ -2596,6 +2651,7 @@ var HostEvent;
|
|
|
2596
2651
|
HostEvent["AddColumns"] = "addColumns";
|
|
2597
2652
|
/**
|
|
2598
2653
|
* Remove a column from the current search query.
|
|
2654
|
+
* Payload: `{ columnId: string }`.
|
|
2599
2655
|
* @param - { columnId: string }
|
|
2600
2656
|
* @example
|
|
2601
2657
|
* ```js
|
|
@@ -2620,6 +2676,8 @@ var HostEvent;
|
|
|
2620
2676
|
* sorting, toggling of legends, and data drill down.
|
|
2621
2677
|
* For more information, see
|
|
2622
2678
|
* link:https://developers.thoughtspot.com/docs/fetch-data-and-report-apis#transient-lb-content[Liveboard data with unsaved changes].
|
|
2679
|
+
* Payload: none.
|
|
2680
|
+
* Response: {@link GetExportRequestForCurrentPinboardResponse}.
|
|
2623
2681
|
* @example
|
|
2624
2682
|
* ```js
|
|
2625
2683
|
* liveboardEmbed.trigger(HostEvent.getExportRequestForCurrentPinboard).then(
|
|
@@ -2641,6 +2699,8 @@ var HostEvent;
|
|
|
2641
2699
|
* requiring additional user input via the *Pin to Liveboard* modal, define
|
|
2642
2700
|
* the following parameters:
|
|
2643
2701
|
*
|
|
2702
|
+
* Payload: {@link PinAnswerToLiveboardRequest}.
|
|
2703
|
+
* Response: {@link PinAnswerToLiveboardResponse}.
|
|
2644
2704
|
* @param - Includes the following keys:
|
|
2645
2705
|
* - `vizId`: GUID of the saved Answer or Spotter visualization ID to pin to a
|
|
2646
2706
|
* Liveboard.
|
|
@@ -2755,6 +2815,7 @@ var HostEvent;
|
|
|
2755
2815
|
HostEvent["LiveboardInfo"] = "pinboardInfo";
|
|
2756
2816
|
/**
|
|
2757
2817
|
* Trigger the **Schedule** action on an embedded Liveboard.
|
|
2818
|
+
* Payload: {@link VizScopedRequest}.
|
|
2758
2819
|
* @example
|
|
2759
2820
|
* ```js
|
|
2760
2821
|
* liveboardEmbed.trigger(HostEvent.Schedule)
|
|
@@ -2770,6 +2831,7 @@ var HostEvent;
|
|
|
2770
2831
|
HostEvent["Schedule"] = "subscription";
|
|
2771
2832
|
/**
|
|
2772
2833
|
* Trigger the **Manage schedule** action on an embedded Liveboard
|
|
2834
|
+
* Payload: {@link VizScopedRequest}.
|
|
2773
2835
|
* @example
|
|
2774
2836
|
* ```js
|
|
2775
2837
|
* liveboardEmbed.trigger(HostEvent.SchedulesList)
|
|
@@ -2786,6 +2848,7 @@ var HostEvent;
|
|
|
2786
2848
|
/**
|
|
2787
2849
|
* Trigger the **Export TML** action on an embedded Liveboard or
|
|
2788
2850
|
* Answer.
|
|
2851
|
+
* Payload: {@link VizScopedRequest}.
|
|
2789
2852
|
* @example
|
|
2790
2853
|
* ```js
|
|
2791
2854
|
* liveboardEmbed.trigger(HostEvent.ExportTML)
|
|
@@ -2808,6 +2871,7 @@ var HostEvent;
|
|
|
2808
2871
|
/**
|
|
2809
2872
|
* Trigger the **Edit TML** action on an embedded Liveboard or
|
|
2810
2873
|
* saved Answers in the full application embedding.
|
|
2874
|
+
* Payload: {@link VizScopedRequest}.
|
|
2811
2875
|
* @example
|
|
2812
2876
|
* ```js
|
|
2813
2877
|
* liveboardEmbed.trigger(HostEvent.EditTML)
|
|
@@ -2829,6 +2893,7 @@ var HostEvent;
|
|
|
2829
2893
|
HostEvent["EditTML"] = "editTSL";
|
|
2830
2894
|
/**
|
|
2831
2895
|
* Trigger the **Update TML** action on an embedded Liveboard.
|
|
2896
|
+
* Payload: {@link VizScopedRequest}.
|
|
2832
2897
|
* @example
|
|
2833
2898
|
* ```js
|
|
2834
2899
|
* liveboardEmbed.trigger(HostEvent.UpdateTML)
|
|
@@ -2846,6 +2911,7 @@ var HostEvent;
|
|
|
2846
2911
|
* Trigger the **Download PDF** action on an embedded Liveboard,
|
|
2847
2912
|
* visualization or Answer.
|
|
2848
2913
|
*
|
|
2914
|
+
* Payload: {@link VizScopedRequest} plus optional `liveboardId`.
|
|
2849
2915
|
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
2850
2916
|
*
|
|
2851
2917
|
* **NOTE**: The **Download** > **PDF** action is available on
|
|
@@ -2896,6 +2962,7 @@ var HostEvent;
|
|
|
2896
2962
|
/**
|
|
2897
2963
|
* Trigger the **AI Highlights** action on an embedded Liveboard
|
|
2898
2964
|
*
|
|
2965
|
+
* Payload: none.
|
|
2899
2966
|
* @example
|
|
2900
2967
|
* ```js
|
|
2901
2968
|
* liveboardEmbed.trigger(HostEvent.AIHighlights)
|
|
@@ -2950,6 +3017,9 @@ var HostEvent;
|
|
|
2950
3017
|
HostEvent["MakeACopy"] = "makeACopy";
|
|
2951
3018
|
/**
|
|
2952
3019
|
* Trigger the **Delete** action for a Liveboard.
|
|
3020
|
+
* Payload varies by context: {@link RequiredVizRequest} (Liveboard, vizId
|
|
3021
|
+
* required), {@link VizScopedRequest} (Search). trigger() accepts the union
|
|
3022
|
+
* now; per-context enforced next release.
|
|
2953
3023
|
* @example
|
|
2954
3024
|
* ```js
|
|
2955
3025
|
* appEmbed.trigger(HostEvent.Remove)
|
|
@@ -2964,6 +3034,7 @@ var HostEvent;
|
|
|
2964
3034
|
HostEvent["Remove"] = "delete";
|
|
2965
3035
|
/**
|
|
2966
3036
|
* Trigger the **Explore** action on a visualization.
|
|
3037
|
+
* Payload: {@link RequiredVizRequest}.
|
|
2967
3038
|
* @param - an object with `vizId` as a key
|
|
2968
3039
|
* @example
|
|
2969
3040
|
* ```js
|
|
@@ -2983,6 +3054,7 @@ var HostEvent;
|
|
|
2983
3054
|
/**
|
|
2984
3055
|
* Trigger the **Create alert** action on a KPI chart
|
|
2985
3056
|
* in a Liveboard or saved Answer.
|
|
3057
|
+
* Payload: {@link VizScopedRequest}.
|
|
2986
3058
|
* @param - an object with `vizId` as a key
|
|
2987
3059
|
* @example
|
|
2988
3060
|
* ```js
|
|
@@ -3014,6 +3086,7 @@ var HostEvent;
|
|
|
3014
3086
|
/**
|
|
3015
3087
|
* Trigger the **Manage alerts** action on a KPI chart
|
|
3016
3088
|
* in a visualization or saved Answer.
|
|
3089
|
+
* Payload: {@link VizScopedRequest}.
|
|
3017
3090
|
* @param - an object with `vizId` as a key
|
|
3018
3091
|
* @example
|
|
3019
3092
|
* ```js
|
|
@@ -3051,6 +3124,7 @@ var HostEvent;
|
|
|
3051
3124
|
* on a Liveboard.
|
|
3052
3125
|
*
|
|
3053
3126
|
* This event is not supported in visualization embed and search embed.
|
|
3127
|
+
* Payload: {@link VizScopedRequest}.
|
|
3054
3128
|
* @param - Object parameter. Includes the following keys:
|
|
3055
3129
|
* - `vizId`: To trigger the action for a specific visualization in Liveboard embed,
|
|
3056
3130
|
* pass in `vizId` as a key. In Spotter embed, `vizId` refers to the Answer ID and
|
|
@@ -3093,6 +3167,7 @@ var HostEvent;
|
|
|
3093
3167
|
HostEvent["Edit"] = "edit";
|
|
3094
3168
|
/**
|
|
3095
3169
|
* Trigger the **Copy link** action on a Liveboard or visualization
|
|
3170
|
+
* Payload: {@link VizScopedRequest}.
|
|
3096
3171
|
* @param - object - to trigger the action for a
|
|
3097
3172
|
* specific visualization in Liveboard embed, pass in `vizId` as a key
|
|
3098
3173
|
* @example
|
|
@@ -3138,6 +3213,7 @@ var HostEvent;
|
|
|
3138
3213
|
HostEvent["CopyLink"] = "embedDocument";
|
|
3139
3214
|
/**
|
|
3140
3215
|
* Trigger the **Present** action on a Liveboard or visualization
|
|
3216
|
+
* Payload: {@link VizScopedRequest}.
|
|
3141
3217
|
* @param - object - to trigger the action for a specific visualization
|
|
3142
3218
|
* in Liveboard embed, pass in `vizId` as a key
|
|
3143
3219
|
* @example
|
|
@@ -3183,6 +3259,8 @@ var HostEvent;
|
|
|
3183
3259
|
HostEvent["Present"] = "present";
|
|
3184
3260
|
/**
|
|
3185
3261
|
* Get TML for the current search.
|
|
3262
|
+
* Payload: {@link GetTMLRequest}.
|
|
3263
|
+
* Response: `Record<string, any>`.
|
|
3186
3264
|
* @example
|
|
3187
3265
|
* ```js
|
|
3188
3266
|
* searchEmbed.trigger(HostEvent.GetTML).then((tml) => {
|
|
@@ -3232,6 +3310,7 @@ var HostEvent;
|
|
|
3232
3310
|
* Trigger the **Show underlying data** action on a
|
|
3233
3311
|
* chart or table.
|
|
3234
3312
|
*
|
|
3313
|
+
* Payload: {@link VizScopedRequest}.
|
|
3235
3314
|
* @param - an object with vizId as a key
|
|
3236
3315
|
* @example
|
|
3237
3316
|
* ```js
|
|
@@ -3265,6 +3344,7 @@ var HostEvent;
|
|
|
3265
3344
|
* Trigger the **Delete** action for a visualization
|
|
3266
3345
|
* in an embedded Liveboard, or a chart or table
|
|
3267
3346
|
* generated from Search.
|
|
3347
|
+
* Payload: {@link VizScopedRequest}.
|
|
3268
3348
|
* @param - Liveboard embed takes an object with `vizId` as a key.
|
|
3269
3349
|
* Can be left empty if embedding Search or visualization.
|
|
3270
3350
|
* @example
|
|
@@ -3293,6 +3373,7 @@ var HostEvent;
|
|
|
3293
3373
|
/**
|
|
3294
3374
|
* Trigger the **SpotIQ analyze** action on a
|
|
3295
3375
|
* chart or table.
|
|
3376
|
+
* Payload: {@link VizScopedRequest}.
|
|
3296
3377
|
* @param - Liveboard embed takes `vizId` as a
|
|
3297
3378
|
* key. Can be left undefined when embedding Search or
|
|
3298
3379
|
* visualization.
|
|
@@ -3355,6 +3436,7 @@ var HostEvent;
|
|
|
3355
3436
|
/**
|
|
3356
3437
|
* Trigger the **Download** > **PNG** action on
|
|
3357
3438
|
* charts in the embedded view.
|
|
3439
|
+
* Payload: {@link VizScopedRequest}.
|
|
3358
3440
|
* @example
|
|
3359
3441
|
* ```js
|
|
3360
3442
|
* liveboardEmbed.trigger(HostEvent.DownloadAsPng,
|
|
@@ -3386,6 +3468,7 @@ var HostEvent;
|
|
|
3386
3468
|
/**
|
|
3387
3469
|
* Trigger the **Download** > **CSV** action on tables in
|
|
3388
3470
|
* the embedded view.
|
|
3471
|
+
* Payload: {@link VizScopedRequest}.
|
|
3389
3472
|
* @param - `vizId` refers to the Visualization ID in Spotter embed and is required in Spotter embed.
|
|
3390
3473
|
* @example
|
|
3391
3474
|
* ```js
|
|
@@ -3425,6 +3508,7 @@ var HostEvent;
|
|
|
3425
3508
|
/**
|
|
3426
3509
|
* Trigger the **Download** > **XLSX** action on tables
|
|
3427
3510
|
* in the embedded view.
|
|
3511
|
+
* Payload: {@link VizScopedRequest}.
|
|
3428
3512
|
* @param - `vizId` refers to the Visualization ID in Spotter embed and is required in Spotter embed.
|
|
3429
3513
|
* @example
|
|
3430
3514
|
* ```js
|
|
@@ -3464,6 +3548,7 @@ var HostEvent;
|
|
|
3464
3548
|
/**
|
|
3465
3549
|
* Trigger the **Share** action on an embedded
|
|
3466
3550
|
* Liveboard or Answer.
|
|
3551
|
+
* Payload: {@link VizScopedRequest}.
|
|
3467
3552
|
* @example
|
|
3468
3553
|
* ```js
|
|
3469
3554
|
* liveboardEmbed.trigger(HostEvent.Share)
|
|
@@ -3490,6 +3575,7 @@ var HostEvent;
|
|
|
3490
3575
|
* Trigger the **Save** action on a Liveboard, Answer, or Spotter.
|
|
3491
3576
|
* Saves the changes.
|
|
3492
3577
|
*
|
|
3578
|
+
* Payload: {@link VizScopedRequest}.
|
|
3493
3579
|
* @param - `vizId` refers to the Spotter Visualization Id used in Spotter embed.
|
|
3494
3580
|
* It is required and can be retrieved from the data embed event.
|
|
3495
3581
|
*
|
|
@@ -3541,6 +3627,7 @@ var HostEvent;
|
|
|
3541
3627
|
/**
|
|
3542
3628
|
* Trigger the **Sync to Sheets** action on an embedded visualization or Answer
|
|
3543
3629
|
* Sends data from an Answer or Liveboard visualization to a Google sheet.
|
|
3630
|
+
* Payload: {@link VizScopedRequest}.
|
|
3544
3631
|
* @param - an object with `vizId` as a key
|
|
3545
3632
|
* @example
|
|
3546
3633
|
* ```js
|
|
@@ -3571,6 +3658,7 @@ var HostEvent;
|
|
|
3571
3658
|
* Trigger the **Sync to Other Apps** action on an embedded visualization or Answer
|
|
3572
3659
|
* Sends data from an Answer or Liveboard visualization to third-party apps such
|
|
3573
3660
|
* as Slack, Salesforce, Microsoft Teams, ServiceNow and so on.
|
|
3661
|
+
* Payload: {@link VizScopedRequest}.
|
|
3574
3662
|
* @param - an object with vizId as a key
|
|
3575
3663
|
* @example
|
|
3576
3664
|
* ```js
|
|
@@ -3601,6 +3689,7 @@ var HostEvent;
|
|
|
3601
3689
|
* Trigger the **Manage pipelines** action on an embedded
|
|
3602
3690
|
* visualization or Answer.
|
|
3603
3691
|
* Allows users to manage ThoughtSpot Sync pipelines.
|
|
3692
|
+
* Payload: {@link VizScopedRequest}.
|
|
3604
3693
|
* @param - an object with `vizId` as a key
|
|
3605
3694
|
* @example
|
|
3606
3695
|
* ```js
|
|
@@ -3629,6 +3718,7 @@ var HostEvent;
|
|
|
3629
3718
|
HostEvent["ManagePipelines"] = "manage-pipeline";
|
|
3630
3719
|
/**
|
|
3631
3720
|
* Reset search operation on the Search or Answer page.
|
|
3721
|
+
* Payload: none.
|
|
3632
3722
|
* @example
|
|
3633
3723
|
* ```js
|
|
3634
3724
|
* searchEmbed.trigger(HostEvent.ResetSearch)
|
|
@@ -3656,6 +3746,8 @@ var HostEvent;
|
|
|
3656
3746
|
* whole Liveboard.
|
|
3657
3747
|
* The `applicability` attribute is available from SDK: 1.53.0 |
|
|
3658
3748
|
* ThoughtSpot: 26.10.0.cl.
|
|
3749
|
+
* Payload: {@link GetFiltersRequest}.
|
|
3750
|
+
* Response: {@link GetFiltersResponse}.
|
|
3659
3751
|
* @example
|
|
3660
3752
|
* ```js
|
|
3661
3753
|
* const data = await liveboardEmbed.trigger(HostEvent.GetFilters);
|
|
@@ -3675,6 +3767,7 @@ var HostEvent;
|
|
|
3675
3767
|
HostEvent["GetFilters"] = "getFilters";
|
|
3676
3768
|
/**
|
|
3677
3769
|
* Update one or several filters applied on a Liveboard.
|
|
3770
|
+
* Payload: {@link UpdateFiltersRequest}.
|
|
3678
3771
|
* @param - Includes the following keys:
|
|
3679
3772
|
* - `filter`: A single filter object containing column name, filter operator, and
|
|
3680
3773
|
* values.
|
|
@@ -3803,6 +3896,8 @@ var HostEvent;
|
|
|
3803
3896
|
HostEvent["UpdateFilters"] = "updateFilters";
|
|
3804
3897
|
/**
|
|
3805
3898
|
* Get tab details for the current Liveboard.
|
|
3899
|
+
* Payload: none.
|
|
3900
|
+
* Response: {@link GetTabsResponse}.
|
|
3806
3901
|
* @example
|
|
3807
3902
|
* ```js
|
|
3808
3903
|
* liveboardEmbed.trigger(HostEvent.GetTabs).then((tabDetails) => {
|
|
@@ -3828,6 +3923,8 @@ var HostEvent;
|
|
|
3828
3923
|
/**
|
|
3829
3924
|
* Get group details for the current Liveboard.
|
|
3830
3925
|
* Mirrors {@link HostEvent.GetTabs} for filter/parameter groups.
|
|
3926
|
+
* Payload: none.
|
|
3927
|
+
* Response: {@link GetGroupsResponse}.
|
|
3831
3928
|
* @example
|
|
3832
3929
|
* ```js
|
|
3833
3930
|
* liveboardEmbed.trigger(HostEvent.GetGroups).then((groupDetails) => {
|
|
@@ -3852,6 +3949,7 @@ var HostEvent;
|
|
|
3852
3949
|
HostEvent["GetGroups"] = "getGroups";
|
|
3853
3950
|
/**
|
|
3854
3951
|
* Set the visible tabs on a Liveboard.
|
|
3952
|
+
* Payload: `string[]`.
|
|
3855
3953
|
* @param - an array of ids of tabs to show, the IDs not passed
|
|
3856
3954
|
* will be hidden.
|
|
3857
3955
|
* @example
|
|
@@ -3874,6 +3972,7 @@ var HostEvent;
|
|
|
3874
3972
|
HostEvent["SetVisibleTabs"] = "SetPinboardVisibleTabs";
|
|
3875
3973
|
/**
|
|
3876
3974
|
* Set the hidden tabs on a Liveboard.
|
|
3975
|
+
* Payload: `string[]`.
|
|
3877
3976
|
* @param - an array of the IDs of the tabs to hide.
|
|
3878
3977
|
* The IDs not passed will be shown.
|
|
3879
3978
|
* @example
|
|
@@ -3902,6 +4001,8 @@ var HostEvent;
|
|
|
3902
4001
|
* `getAnswerService()` method on the embed instance to get an AnswerService
|
|
3903
4002
|
* object that provides a more convenient interface for working with answers.
|
|
3904
4003
|
*
|
|
4004
|
+
* Payload: {@link GetAnswerSessionRequest}.
|
|
4005
|
+
* Response: {@link GetAnswerSessionResponse}.
|
|
3905
4006
|
* @example
|
|
3906
4007
|
* ```js
|
|
3907
4008
|
* // Preferred way to get an AnswerService
|
|
@@ -3929,6 +4030,7 @@ var HostEvent;
|
|
|
3929
4030
|
HostEvent["GetAnswerSession"] = "getAnswerSession";
|
|
3930
4031
|
/**
|
|
3931
4032
|
* Trigger the *Ask Sage* action for visualizations
|
|
4033
|
+
* Payload: {@link RequiredVizRequest}.
|
|
3932
4034
|
* @example
|
|
3933
4035
|
* ```js
|
|
3934
4036
|
* liveboardEmbed.trigger(HostEvent.AskSage,
|
|
@@ -3940,6 +4042,7 @@ var HostEvent;
|
|
|
3940
4042
|
/**
|
|
3941
4043
|
* Trigger cross filter update action on a Liveboard.
|
|
3942
4044
|
*
|
|
4045
|
+
* Payload: {@link UpdateCrossFilterRequest}.
|
|
3943
4046
|
* @example
|
|
3944
4047
|
* ```js
|
|
3945
4048
|
* liveboardEmbed.trigger(HostEvent.UpdateCrossFilter, {
|
|
@@ -3955,7 +4058,9 @@ var HostEvent;
|
|
|
3955
4058
|
HostEvent["UpdateCrossFilter"] = "UpdateCrossFilter";
|
|
3956
4059
|
/**
|
|
3957
4060
|
* Trigger reset action for a personalized Liveboard view.
|
|
3958
|
-
* This event is deprecated.
|
|
4061
|
+
* This event is deprecated.
|
|
4062
|
+
* Use {@link HostEvent.ResetLiveboardPersonalizedView} instead.
|
|
4063
|
+
* Payload: none.
|
|
3959
4064
|
* @example
|
|
3960
4065
|
* ```js
|
|
3961
4066
|
* liveboardEmbed.trigger(HostEvent.ResetLiveboardPersonalisedView);
|
|
@@ -3976,6 +4081,7 @@ var HostEvent;
|
|
|
3976
4081
|
/**
|
|
3977
4082
|
* Triggers an action to update Parameter values on embedded
|
|
3978
4083
|
* Answers, Liveboard, and Spotter answer in Edit mode.
|
|
4084
|
+
* Payload: {@link RuntimeParameter}[].
|
|
3979
4085
|
* @param - Includes the following keys for each item:
|
|
3980
4086
|
* - `name`: Name of the parameter.
|
|
3981
4087
|
* - `value`: The value to set for the parameter.
|
|
@@ -4033,6 +4139,8 @@ var HostEvent;
|
|
|
4033
4139
|
* whole Liveboard.
|
|
4034
4140
|
* The `applicability` attribute is available from SDK: 1.53.0 |
|
|
4035
4141
|
* ThoughtSpot: 26.10.0.cl.
|
|
4142
|
+
* Payload: none.
|
|
4143
|
+
* Response: {@link GetParametersResponse}.
|
|
4036
4144
|
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
4037
4145
|
* ```js
|
|
4038
4146
|
* liveboardEmbed.trigger(HostEvent.GetParameters).then((parameter) => {
|
|
@@ -4070,6 +4178,7 @@ var HostEvent;
|
|
|
4070
4178
|
* ```js
|
|
4071
4179
|
* liveboardEmbed.trigger(HostEvent.UpdatePersonalisedView, {viewId: '1234'})
|
|
4072
4180
|
* ```
|
|
4181
|
+
* Payload: {@link PersonalisedViewRequest} (`viewId` only).
|
|
4073
4182
|
* @example
|
|
4074
4183
|
* ```js
|
|
4075
4184
|
* // Update personalized view from liveboard context
|
|
@@ -4102,6 +4211,7 @@ var HostEvent;
|
|
|
4102
4211
|
* If neither is provided, the Liveboard resets to the original/default view.
|
|
4103
4212
|
* When a `viewName` is provided and multiple views share
|
|
4104
4213
|
* the same name, the first match is selected.
|
|
4214
|
+
* Payload: {@link PersonalisedViewRequest}.
|
|
4105
4215
|
* @example
|
|
4106
4216
|
* ```js
|
|
4107
4217
|
* liveboardEmbed.trigger(
|
|
@@ -4145,6 +4255,8 @@ var HostEvent;
|
|
|
4145
4255
|
* If no parameters are specified, the save action is
|
|
4146
4256
|
* triggered with a modal to prompt users to
|
|
4147
4257
|
* add a name and description for the Answer.
|
|
4258
|
+
* Payload: {@link SaveAnswerRequest}.
|
|
4259
|
+
* Response: {@link SaveAnswerResponse}.
|
|
4148
4260
|
* @param - Includes the following keys:
|
|
4149
4261
|
* - `vizId`: Refers to the Answer ID in Spotter embed and is **required** in Spotter
|
|
4150
4262
|
* embed.
|
|
@@ -4230,6 +4342,7 @@ var HostEvent;
|
|
|
4230
4342
|
/**
|
|
4231
4343
|
* Triggers a search operation with the search tokens specified in
|
|
4232
4344
|
* the search query string in spotter embed.
|
|
4345
|
+
* Payload: {@link SpotterSearchRequest}.
|
|
4233
4346
|
* @param - Includes the following keys:
|
|
4234
4347
|
* - `query`: Text string in Natural Language format.
|
|
4235
4348
|
* - `executeSearch`: Boolean to execute search and update search query.
|
|
@@ -4254,6 +4367,7 @@ var HostEvent;
|
|
|
4254
4367
|
HostEvent["SpotterSearch"] = "SpotterSearch";
|
|
4255
4368
|
/**
|
|
4256
4369
|
* Edits the last prompt in spotter embed.
|
|
4370
|
+
* Payload: `string`.
|
|
4257
4371
|
* @param - `query`: Text string
|
|
4258
4372
|
* @example
|
|
4259
4373
|
* ```js
|
|
@@ -4270,6 +4384,7 @@ var HostEvent;
|
|
|
4270
4384
|
HostEvent["EditLastPrompt"] = "EditLastPrompt";
|
|
4271
4385
|
/**
|
|
4272
4386
|
* Opens the data source preview modal in Spotter Embed.
|
|
4387
|
+
* Payload: none.
|
|
4273
4388
|
* @example
|
|
4274
4389
|
* ```js
|
|
4275
4390
|
* spotterEmbed.trigger(HostEvent.PreviewSpotterData);
|
|
@@ -4305,6 +4420,7 @@ var HostEvent;
|
|
|
4305
4420
|
HostEvent["DataModelInstructions"] = "DataModelInstructions";
|
|
4306
4421
|
/**
|
|
4307
4422
|
* Resets the Spotter Embed Conversation.
|
|
4423
|
+
* Payload: none.
|
|
4308
4424
|
* @example
|
|
4309
4425
|
* ```js
|
|
4310
4426
|
* spotterEmbed.trigger(HostEvent.ResetSpotterConversation);
|
|
@@ -4317,6 +4433,7 @@ var HostEvent;
|
|
|
4317
4433
|
* `conversationId` is **mandatory** — you must pass the id of the
|
|
4318
4434
|
* conversation to share. Also no-op when sharing is disabled
|
|
4319
4435
|
* (enableShareConversation off) or when already in the read-only shared view.
|
|
4436
|
+
* Payload: {@link ConversationScopedRequest}.
|
|
4320
4437
|
* @example
|
|
4321
4438
|
* ```js
|
|
4322
4439
|
* spotterEmbed.trigger(HostEvent.ShareSpotterConversation, { conversationId: 'abc' });
|
|
@@ -4326,6 +4443,7 @@ var HostEvent;
|
|
|
4326
4443
|
HostEvent["ShareSpotterConversation"] = "ShareSpotterConversation";
|
|
4327
4444
|
/**
|
|
4328
4445
|
* Closes the Spotter share-conversation modal. No-op if none is open.
|
|
4446
|
+
* Payload: none.
|
|
4329
4447
|
* @example
|
|
4330
4448
|
* ```js
|
|
4331
4449
|
* spotterEmbed.trigger(HostEvent.CloseSpotterShareConversation);
|
|
@@ -4335,6 +4453,7 @@ var HostEvent;
|
|
|
4335
4453
|
HostEvent["CloseSpotterShareConversation"] = "CloseSpotterShareConversation";
|
|
4336
4454
|
/**
|
|
4337
4455
|
* Exits the read-only shared-conversation view.
|
|
4456
|
+
* Payload: none.
|
|
4338
4457
|
* @example
|
|
4339
4458
|
* ```js
|
|
4340
4459
|
* spotterEmbed.trigger(HostEvent.ExitSpotterSharedConversation);
|
|
@@ -4344,6 +4463,7 @@ var HostEvent;
|
|
|
4344
4463
|
HostEvent["ExitSpotterSharedConversation"] = "ExitSpotterSharedConversation";
|
|
4345
4464
|
/**
|
|
4346
4465
|
* Deletes the last prompt in spotter embed.
|
|
4466
|
+
* Payload: none.
|
|
4347
4467
|
* @example
|
|
4348
4468
|
* ```js
|
|
4349
4469
|
* spotterEmbed.trigger(HostEvent.DeleteLastPrompt);
|
|
@@ -4353,6 +4473,7 @@ var HostEvent;
|
|
|
4353
4473
|
HostEvent["DeleteLastPrompt"] = "DeleteLastPrompt";
|
|
4354
4474
|
/**
|
|
4355
4475
|
* Toggle the visualization to chart or table view.
|
|
4476
|
+
* Payload: {@link RequiredVizRequest}.
|
|
4356
4477
|
* @param - `vizId ` refers to the Visualization ID in Spotter embed and is required.
|
|
4357
4478
|
* @example
|
|
4358
4479
|
* ```js
|
|
@@ -4391,6 +4512,7 @@ var HostEvent;
|
|
|
4391
4512
|
HostEvent["VisibleEmbedCoordinates"] = "visibleEmbedCoordinates";
|
|
4392
4513
|
/**
|
|
4393
4514
|
* Trigger the *Spotter* action for visualizations present on the liveboard's vizzes.
|
|
4515
|
+
* Payload: {@link RequiredVizRequest}.
|
|
4394
4516
|
* @param - `vizId` refers to the Visualization ID in Spotter embed and is required.
|
|
4395
4517
|
* @example
|
|
4396
4518
|
* ```js
|
|
@@ -4415,7 +4537,13 @@ var HostEvent;
|
|
|
4415
4537
|
*/
|
|
4416
4538
|
HostEvent["UpdateEmbedParams"] = "updateEmbedParams";
|
|
4417
4539
|
/**
|
|
4418
|
-
*
|
|
4540
|
+
* Notifies the embedded ThoughtSpot app that the embed is being torn down, so that
|
|
4541
|
+
* it can release any resources it holds before the iframe is removed from the DOM.
|
|
4542
|
+
*
|
|
4543
|
+
* This is triggered for you by `embed.destroy()`; you rarely need to trigger it
|
|
4544
|
+
* directly. If `waitForCleanupOnDestroy` is set in the embed config, `destroy()`
|
|
4545
|
+
* waits for the app to acknowledge this event (up to `cleanupTimeout`) before
|
|
4546
|
+
* removing the iframe.
|
|
4419
4547
|
* @example
|
|
4420
4548
|
* ```js
|
|
4421
4549
|
* liveboardEmbed.trigger(HostEvent.DestroyEmbed);
|
|
@@ -4446,6 +4574,7 @@ var HostEvent;
|
|
|
4446
4574
|
* instance. Contact your admin or ThoughtSpot Support to enable chat history on your
|
|
4447
4575
|
* instance.
|
|
4448
4576
|
*
|
|
4577
|
+
* Payload: {@link ConversationScopedRequest}.
|
|
4449
4578
|
* @version SDK: 1.53.0 | ThoughtSpot Cloud: 26.10.0.cl
|
|
4450
4579
|
* @example
|
|
4451
4580
|
* ```js
|
|
@@ -4463,6 +4592,7 @@ var HostEvent;
|
|
|
4463
4592
|
* instance. Contact your admin or ThoughtSpot Support to enable chat history on your
|
|
4464
4593
|
* instance.
|
|
4465
4594
|
*
|
|
4595
|
+
* Payload: {@link ConversationScopedRequest}.
|
|
4466
4596
|
* @version SDK: 1.53.0 | ThoughtSpot Cloud: 26.10.0.cl
|
|
4467
4597
|
* @example
|
|
4468
4598
|
* ```js
|
|
@@ -4487,6 +4617,7 @@ var HostEvent;
|
|
|
4487
4617
|
* Trigger the **Send Test Email** action in the Liveboard schedule modal.
|
|
4488
4618
|
* Sends a test schedule email to self or all recipients.
|
|
4489
4619
|
* Requires `isSendNowLiveboardSchedulingEnabled` to be enabled.
|
|
4620
|
+
* Payload: {@link ScheduleEmailRequest}.
|
|
4490
4621
|
* @example
|
|
4491
4622
|
* ```js
|
|
4492
4623
|
* liveboardEmbed.trigger(HostEvent.SendTestScheduleEmail, {
|
|
@@ -4505,6 +4636,7 @@ var HostEvent;
|
|
|
4505
4636
|
HostEvent["SendTestScheduleEmail"] = "sendTestScheduleEmail";
|
|
4506
4637
|
/**
|
|
4507
4638
|
* Sends a user message (prompt) to the SpotterViz panel programmatically.
|
|
4639
|
+
* Payload: `{ query: string }`.
|
|
4508
4640
|
* @version SDK: 1.50.0 | ThoughtSpot Cloud: 26.7.0.cl
|
|
4509
4641
|
* @param query - the prompt text to send.
|
|
4510
4642
|
* @example
|
|
@@ -4517,6 +4649,7 @@ var HostEvent;
|
|
|
4517
4649
|
HostEvent["SpotterVizSendUserMessage"] = "SpotterVizSendUserMessage";
|
|
4518
4650
|
/**
|
|
4519
4651
|
* Initializes a new SpotterViz conversation.
|
|
4652
|
+
* Payload: none.
|
|
4520
4653
|
* @version SDK: 1.50.0 | ThoughtSpot Cloud: 26.7.0.cl
|
|
4521
4654
|
* @example
|
|
4522
4655
|
* ```js
|
|
@@ -4526,6 +4659,7 @@ var HostEvent;
|
|
|
4526
4659
|
HostEvent["InitSpotterVizConversation"] = "InitSpotterVizConversation";
|
|
4527
4660
|
/**
|
|
4528
4661
|
* Opens the SpotterViz panel.
|
|
4662
|
+
* Payload: none.
|
|
4529
4663
|
* @version SDK: 1.50.0 | ThoughtSpot Cloud: 26.7.0.cl
|
|
4530
4664
|
* @example
|
|
4531
4665
|
* ```js
|
|
@@ -4535,6 +4669,7 @@ var HostEvent;
|
|
|
4535
4669
|
HostEvent["OpenSpotterVizPanel"] = "OpenSpotterVizPanel";
|
|
4536
4670
|
/**
|
|
4537
4671
|
* Closes the SpotterViz panel.
|
|
4672
|
+
* Payload: none.
|
|
4538
4673
|
* @version SDK: 1.50.0 | ThoughtSpot Cloud: 26.7.0.cl
|
|
4539
4674
|
* @example
|
|
4540
4675
|
* ```js
|
|
@@ -4545,6 +4680,7 @@ var HostEvent;
|
|
|
4545
4680
|
/**
|
|
4546
4681
|
* Clears browser cache and fetches new data for liveboard ChartViz Containers.
|
|
4547
4682
|
* Requires `enableLiveboardDataCache` to be enabled.
|
|
4683
|
+
* Payload: {@link ScheduleEmailRequest}.
|
|
4548
4684
|
* @example
|
|
4549
4685
|
* ```js
|
|
4550
4686
|
* liveboardEmbed.trigger(HostEvent.RefreshLiveboardBrowserCache);
|
|
@@ -4742,6 +4878,7 @@ var Param;
|
|
|
4742
4878
|
Param["SpotterDataSources"] = "spotterDataSources";
|
|
4743
4879
|
Param["AnalystId"] = "analystId";
|
|
4744
4880
|
Param["OpenSpotterOnLiveboardByDefault"] = "openSpotterOnLiveboardByDefault";
|
|
4881
|
+
Param["ShowAnswerEditPanel"] = "showAnswerEditPanel";
|
|
4745
4882
|
})(Param = exports.Param || (exports.Param = {}));
|
|
4746
4883
|
/**
|
|
4747
4884
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -6533,7 +6670,7 @@ var Action;
|
|
|
6533
6670
|
* ```js
|
|
6534
6671
|
* hiddenActions: [Action.QuickSearchPill]
|
|
6535
6672
|
* ```
|
|
6536
|
-
* @version SDK: 1.
|
|
6673
|
+
* @version SDK: 1.53.0 | ThoughtSpot Cloud: 26.10.0.cl
|
|
6537
6674
|
*/
|
|
6538
6675
|
Action["QuickSearchPill"] = "quickSearchPill";
|
|
6539
6676
|
/**
|
|
@@ -6548,7 +6685,7 @@ var Action;
|
|
|
6548
6685
|
* ```js
|
|
6549
6686
|
* hiddenActions: [Action.DeepAnalysisPill]
|
|
6550
6687
|
* ```
|
|
6551
|
-
* @version SDK: 1.
|
|
6688
|
+
* @version SDK: 1.53.0 | ThoughtSpot Cloud: 26.10.0.cl
|
|
6552
6689
|
*/
|
|
6553
6690
|
Action["DeepAnalysisPill"] = "deepAnalysisPill";
|
|
6554
6691
|
/**
|
|
@@ -6563,7 +6700,7 @@ var Action;
|
|
|
6563
6700
|
* ```js
|
|
6564
6701
|
* hiddenActions: [Action.DataLiteracyPill]
|
|
6565
6702
|
* ```
|
|
6566
|
-
* @version SDK: 1.
|
|
6703
|
+
* @version SDK: 1.53.0 | ThoughtSpot Cloud: 26.10.0.cl
|
|
6567
6704
|
*/
|
|
6568
6705
|
Action["DataLiteracyPill"] = "dataLiteracyPill";
|
|
6569
6706
|
/**
|
|
@@ -6746,6 +6883,225 @@ var Action;
|
|
|
6746
6883
|
* ```
|
|
6747
6884
|
*/
|
|
6748
6885
|
Action["SpotterOnLiveboard"] = "spotterOnLiveboard";
|
|
6886
|
+
/**
|
|
6887
|
+
* Controls the visibility and disabled state of the "Chart Type" menu item
|
|
6888
|
+
* in Chart Settings V2.
|
|
6889
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
6890
|
+
* @example
|
|
6891
|
+
* ```js
|
|
6892
|
+
* {
|
|
6893
|
+
* hiddenActions: [Action.ChartTypeSettings],
|
|
6894
|
+
* disabledActions: [Action.ChartTypeSettings],
|
|
6895
|
+
* }
|
|
6896
|
+
* ```
|
|
6897
|
+
*/
|
|
6898
|
+
Action["ChartTypeSettings"] = "CHART_TYPE";
|
|
6899
|
+
/**
|
|
6900
|
+
* Controls the visibility and disabled state of the "Layout" menu item
|
|
6901
|
+
* in Chart Settings V2.
|
|
6902
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
6903
|
+
* @example
|
|
6904
|
+
* ```js
|
|
6905
|
+
* {
|
|
6906
|
+
* hiddenActions: [Action.LayoutSettings],
|
|
6907
|
+
* disabledActions: [Action.LayoutSettings],
|
|
6908
|
+
* }
|
|
6909
|
+
* ```
|
|
6910
|
+
*/
|
|
6911
|
+
Action["LayoutSettings"] = "LAYOUT";
|
|
6912
|
+
/**
|
|
6913
|
+
* Controls the visibility and disabled state of the "Column" menu item
|
|
6914
|
+
* in Chart Settings V2.
|
|
6915
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
6916
|
+
* @example
|
|
6917
|
+
* ```js
|
|
6918
|
+
* {
|
|
6919
|
+
* hiddenActions: [Action.ColumnSettings],
|
|
6920
|
+
* disabledActions: [Action.ColumnSettings],
|
|
6921
|
+
* }
|
|
6922
|
+
* ```
|
|
6923
|
+
*/
|
|
6924
|
+
Action["ColumnSettings"] = "COLUMN";
|
|
6925
|
+
/**
|
|
6926
|
+
* Controls the visibility and disabled state of the "Axis" menu item
|
|
6927
|
+
* in Chart Settings V2.
|
|
6928
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
6929
|
+
* @example
|
|
6930
|
+
* ```js
|
|
6931
|
+
* {
|
|
6932
|
+
* hiddenActions: [Action.AxisSettings],
|
|
6933
|
+
* disabledActions: [Action.AxisSettings],
|
|
6934
|
+
* }
|
|
6935
|
+
* ```
|
|
6936
|
+
*/
|
|
6937
|
+
Action["AxisSettings"] = "AXIS";
|
|
6938
|
+
/**
|
|
6939
|
+
* Controls the visibility and disabled state of the "Data Label" menu item
|
|
6940
|
+
* in Chart Settings V2.
|
|
6941
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
6942
|
+
* @example
|
|
6943
|
+
* ```js
|
|
6944
|
+
* {
|
|
6945
|
+
* hiddenActions: [Action.DataLabelSettings],
|
|
6946
|
+
* disabledActions: [Action.DataLabelSettings],
|
|
6947
|
+
* }
|
|
6948
|
+
* ```
|
|
6949
|
+
*/
|
|
6950
|
+
Action["DataLabelSettings"] = "DATA_LABEL";
|
|
6951
|
+
/**
|
|
6952
|
+
* Controls the visibility and disabled state of the "Tooltip" menu item
|
|
6953
|
+
* in Chart Settings V2.
|
|
6954
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
6955
|
+
* @example
|
|
6956
|
+
* ```js
|
|
6957
|
+
* {
|
|
6958
|
+
* hiddenActions: [Action.TooltipSettings],
|
|
6959
|
+
* disabledActions: [Action.TooltipSettings],
|
|
6960
|
+
* }
|
|
6961
|
+
* ```
|
|
6962
|
+
*/
|
|
6963
|
+
Action["TooltipSettings"] = "TOOLTIP";
|
|
6964
|
+
/**
|
|
6965
|
+
* Controls the visibility and disabled state of the "Legend" menu item
|
|
6966
|
+
* in Chart Settings V2.
|
|
6967
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
6968
|
+
* @example
|
|
6969
|
+
* ```js
|
|
6970
|
+
* {
|
|
6971
|
+
* hiddenActions: [Action.LegendSettings],
|
|
6972
|
+
* disabledActions: [Action.LegendSettings],
|
|
6973
|
+
* }
|
|
6974
|
+
* ```
|
|
6975
|
+
*/
|
|
6976
|
+
Action["LegendSettings"] = "LEGEND";
|
|
6977
|
+
/**
|
|
6978
|
+
* Controls the visibility and disabled state of the "Display" menu item
|
|
6979
|
+
* in Chart Settings V2.
|
|
6980
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
6981
|
+
* @example
|
|
6982
|
+
* ```js
|
|
6983
|
+
* {
|
|
6984
|
+
* hiddenActions: [Action.DisplaySettings],
|
|
6985
|
+
* disabledActions: [Action.DisplaySettings],
|
|
6986
|
+
* }
|
|
6987
|
+
* ```
|
|
6988
|
+
*/
|
|
6989
|
+
Action["DisplaySettings"] = "DISPLAY";
|
|
6990
|
+
/**
|
|
6991
|
+
* Controls the visibility and disabled state of the "Query Details" menu
|
|
6992
|
+
* item in Chart Settings V2.
|
|
6993
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
6994
|
+
* @example
|
|
6995
|
+
* ```js
|
|
6996
|
+
* {
|
|
6997
|
+
* hiddenActions: [Action.QuerySettings],
|
|
6998
|
+
* disabledActions: [Action.QuerySettings],
|
|
6999
|
+
* }
|
|
7000
|
+
* ```
|
|
7001
|
+
*/
|
|
7002
|
+
Action["QuerySettings"] = "QUERY_DETAILS";
|
|
7003
|
+
/**
|
|
7004
|
+
* Controls the visibility and disabled state of the "Custom Action" menu
|
|
7005
|
+
* item in Chart Settings V2.
|
|
7006
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
7007
|
+
* @example
|
|
7008
|
+
* ```js
|
|
7009
|
+
* {
|
|
7010
|
+
* hiddenActions: [Action.CustomSettings],
|
|
7011
|
+
* disabledActions: [Action.CustomSettings],
|
|
7012
|
+
* }
|
|
7013
|
+
* ```
|
|
7014
|
+
*/
|
|
7015
|
+
Action["CustomSettings"] = "CUSTOM_ACTION";
|
|
7016
|
+
/**
|
|
7017
|
+
* Controls the visibility and disabled state of the "Muze AI" menu item
|
|
7018
|
+
* in Chart Settings V2.
|
|
7019
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
7020
|
+
* @example
|
|
7021
|
+
* ```js
|
|
7022
|
+
* {
|
|
7023
|
+
* hiddenActions: [Action.MuzeAiSettings],
|
|
7024
|
+
* disabledActions: [Action.MuzeAiSettings],
|
|
7025
|
+
* }
|
|
7026
|
+
* ```
|
|
7027
|
+
*/
|
|
7028
|
+
Action["MuzeAiSettings"] = "MUZE_AI";
|
|
7029
|
+
/**
|
|
7030
|
+
* Controls the visibility and disabled state of the "R Analysis" menu item
|
|
7031
|
+
* in Chart Settings V2.
|
|
7032
|
+
* @version SDK: 1.54.0 | ThoughtSpot Cloud: 26.11.0.cl
|
|
7033
|
+
* @example
|
|
7034
|
+
* ```js
|
|
7035
|
+
* {
|
|
7036
|
+
* hiddenActions: [Action.RAnalysisSettings],
|
|
7037
|
+
* disabledActions: [Action.RAnalysisSettings],
|
|
7038
|
+
* }
|
|
7039
|
+
* ```
|
|
7040
|
+
*/
|
|
7041
|
+
Action["RAnalysisSettings"] = "R_ANALYSIS";
|
|
7042
|
+
/**
|
|
7043
|
+
* Controls the visibility and disabled state of the "Add to Collection" menu item.
|
|
7044
|
+
* @version SDK: 1.52.1 | ThoughtSpot Cloud: 26.5.0.cl
|
|
7045
|
+
* @example
|
|
7046
|
+
* ```js
|
|
7047
|
+
* {
|
|
7048
|
+
* hiddenActions: [Action.AddToCollection],
|
|
7049
|
+
* disabledActions: [Action.AddToCollection],
|
|
7050
|
+
* }
|
|
7051
|
+
* ```
|
|
7052
|
+
*/
|
|
7053
|
+
Action["AddToCollection"] = "addToCollection";
|
|
7054
|
+
/**
|
|
7055
|
+
* Controls the visibility and disabled state of the "Create Collection" button.
|
|
7056
|
+
* @version SDK: 1.52.1 | ThoughtSpot Cloud: 26.5.0.cl
|
|
7057
|
+
* @example
|
|
7058
|
+
* ```js
|
|
7059
|
+
* {
|
|
7060
|
+
* hiddenActions: [Action.CreateCollection],
|
|
7061
|
+
* disabledActions: [Action.CreateCollection],
|
|
7062
|
+
* }
|
|
7063
|
+
* ```
|
|
7064
|
+
*/
|
|
7065
|
+
Action["CreateCollection"] = "createCollection";
|
|
7066
|
+
/**
|
|
7067
|
+
* Controls the visibility and disabled state of the "Move" menu item in a
|
|
7068
|
+
* Collection.
|
|
7069
|
+
* @version SDK: 1.52.1 | ThoughtSpot Cloud: 26.5.0.cl
|
|
7070
|
+
* @example
|
|
7071
|
+
* ```js
|
|
7072
|
+
* {
|
|
7073
|
+
* hiddenActions: [Action.MoveToCollection],
|
|
7074
|
+
* disabledActions: [Action.MoveToCollection],
|
|
7075
|
+
* }
|
|
7076
|
+
* ```
|
|
7077
|
+
*/
|
|
7078
|
+
Action["MoveToCollection"] = "moveToCollection";
|
|
7079
|
+
/**
|
|
7080
|
+
* Controls the visibility and disabled state of the "Remove" menu item in a
|
|
7081
|
+
* Collection.
|
|
7082
|
+
* @version SDK: 1.52.1 | ThoughtSpot Cloud: 26.5.0.cl
|
|
7083
|
+
* @example
|
|
7084
|
+
* ```js
|
|
7085
|
+
* {
|
|
7086
|
+
* hiddenActions: [Action.RemoveFromCollection],
|
|
7087
|
+
* disabledActions: [Action.RemoveFromCollection],
|
|
7088
|
+
* }
|
|
7089
|
+
* ```
|
|
7090
|
+
*/
|
|
7091
|
+
Action["RemoveFromCollection"] = "removeFromCollection";
|
|
7092
|
+
/**
|
|
7093
|
+
* Controls the visibility and disabled state of the "Delete" menu item for a
|
|
7094
|
+
* Collection.
|
|
7095
|
+
* @version SDK: 1.52.1 | ThoughtSpot Cloud: 26.5.0.cl
|
|
7096
|
+
* @example
|
|
7097
|
+
* ```js
|
|
7098
|
+
* {
|
|
7099
|
+
* hiddenActions: [Action.DeleteCollection],
|
|
7100
|
+
* disabledActions: [Action.DeleteCollection],
|
|
7101
|
+
* }
|
|
7102
|
+
* ```
|
|
7103
|
+
*/
|
|
7104
|
+
Action["DeleteCollection"] = "deleteCollection";
|
|
6749
7105
|
})(Action = exports.Action || (exports.Action = {}));
|
|
6750
7106
|
var PrefetchFeatures;
|
|
6751
7107
|
(function (PrefetchFeatures) {
|
|
@@ -7036,6 +7392,36 @@ var EmbedErrorCodes;
|
|
|
7036
7392
|
/** UpdateParameters payload is invalid - malformed applicability */
|
|
7037
7393
|
EmbedErrorCodes["UPDATEPARAMETERS_INVALID_PAYLOAD"] = "UPDATEPARAMETERS_INVALID_PAYLOAD";
|
|
7038
7394
|
})(EmbedErrorCodes = exports.EmbedErrorCodes || (exports.EmbedErrorCodes = {}));
|
|
7395
|
+
/**
|
|
7396
|
+
* How badly an error affects the embed, so the host can decide whether it is
|
|
7397
|
+
* worth surfacing to the end user.
|
|
7398
|
+
*
|
|
7399
|
+
* Mirrors the severity that ThoughtSpot itself stamps on errors raised inside
|
|
7400
|
+
* the embedded app, so a host can apply one rule to both sources.
|
|
7401
|
+
*
|
|
7402
|
+
* @version SDK: 1.52.0 | ThoughtSpot Cloud: 26.9.0.cl
|
|
7403
|
+
* @group Error Handling
|
|
7404
|
+
*
|
|
7405
|
+
* @example
|
|
7406
|
+
* Only surface errors that took the embed down
|
|
7407
|
+
*
|
|
7408
|
+
* ```js
|
|
7409
|
+
* embed.on(EmbedEvent.Error, (error) => {
|
|
7410
|
+
* if (error.severity === EmbedErrorSeverity.SEV1) {
|
|
7411
|
+
* showBanner(error.message);
|
|
7412
|
+
* }
|
|
7413
|
+
* });
|
|
7414
|
+
* ```
|
|
7415
|
+
*/
|
|
7416
|
+
var EmbedErrorSeverity;
|
|
7417
|
+
(function (EmbedErrorSeverity) {
|
|
7418
|
+
/** The embed cannot render. Nothing usable is on screen. */
|
|
7419
|
+
EmbedErrorSeverity[EmbedErrorSeverity["SEV1"] = 1] = "SEV1";
|
|
7420
|
+
/** Something is degraded but the embed still works. */
|
|
7421
|
+
EmbedErrorSeverity[EmbedErrorSeverity["SEV2"] = 2] = "SEV2";
|
|
7422
|
+
/** Everything else, including validation of the embedder's own input. */
|
|
7423
|
+
EmbedErrorSeverity[EmbedErrorSeverity["SEV3"] = 3] = "SEV3";
|
|
7424
|
+
})(EmbedErrorSeverity = exports.EmbedErrorSeverity || (exports.EmbedErrorSeverity = {}));
|
|
7039
7425
|
/**
|
|
7040
7426
|
* Context types for specifying the page context when triggering host events.
|
|
7041
7427
|
* Used as the third parameter in the `trigger` method to help ThoughtSpot
|
|
@@ -7076,20 +7462,27 @@ var ContextType;
|
|
|
7076
7462
|
ContextType["Other"] = "other";
|
|
7077
7463
|
})(ContextType = exports.ContextType || (exports.ContextType = {}));
|
|
7078
7464
|
/**
|
|
7079
|
-
*
|
|
7465
|
+
* Named groups of ThoughtSpot APIs that can be intercepted, for use in
|
|
7466
|
+
* `interceptUrls`. Each group expands to the underlying request URLs, so you do
|
|
7467
|
+
* not have to list them individually.
|
|
7080
7468
|
*/
|
|
7081
7469
|
var InterceptedApiType;
|
|
7082
7470
|
(function (InterceptedApiType) {
|
|
7083
7471
|
/**
|
|
7084
|
-
* The
|
|
7472
|
+
* The APIs that fetch the data backing an Answer, including its chart,
|
|
7473
|
+
* table, and headline data.
|
|
7085
7474
|
*/
|
|
7086
7475
|
InterceptedApiType["AnswerData"] = "AnswerData";
|
|
7087
7476
|
/**
|
|
7088
|
-
*
|
|
7477
|
+
* Intercepts every `fetch` request the embedded application makes, not only
|
|
7478
|
+
* the data APIs. This includes authentication, session, and metadata calls,
|
|
7479
|
+
* so the handler must respond to requests it does not recognize by passing
|
|
7480
|
+
* `execute: true`. Listing this alongside other entries in `interceptUrls`
|
|
7481
|
+
* supersedes them.
|
|
7089
7482
|
*/
|
|
7090
7483
|
InterceptedApiType["ALL"] = "ALL";
|
|
7091
7484
|
/**
|
|
7092
|
-
* The
|
|
7485
|
+
* The APIs that fetch the data backing a Liveboard.
|
|
7093
7486
|
*/
|
|
7094
7487
|
InterceptedApiType["LiveboardData"] = "LiveboardData";
|
|
7095
7488
|
})(InterceptedApiType = exports.InterceptedApiType || (exports.InterceptedApiType = {}));
|