@thoughtspot/visual-embed-sdk 1.42.3 → 1.43.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 +1 -1
- package/cjs/src/api-intercept.d.ts +51 -0
- package/cjs/src/api-intercept.d.ts.map +1 -0
- package/cjs/src/api-intercept.js +180 -0
- package/cjs/src/api-intercept.js.map +1 -0
- package/cjs/src/api-intercept.spec.d.ts +2 -0
- package/cjs/src/api-intercept.spec.d.ts.map +1 -0
- package/cjs/src/api-intercept.spec.js +672 -0
- package/cjs/src/api-intercept.spec.js.map +1 -0
- package/cjs/src/css-variables.d.ts +4 -0
- package/cjs/src/css-variables.d.ts.map +1 -1
- package/cjs/src/embed/app.d.ts +0 -5
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +4 -5
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +10 -0
- package/cjs/src/embed/app.spec.js.map +1 -1
- package/cjs/src/embed/conversation.d.ts +2 -2
- package/cjs/src/embed/conversation.js +1 -1
- package/cjs/src/embed/conversation.js.map +1 -1
- package/cjs/src/embed/conversation.spec.js +17 -0
- package/cjs/src/embed/conversation.spec.js.map +1 -1
- package/cjs/src/embed/hostEventClient/contracts.d.ts +11 -1
- package/cjs/src/embed/hostEventClient/contracts.d.ts.map +1 -1
- package/cjs/src/embed/hostEventClient/contracts.js +1 -0
- package/cjs/src/embed/hostEventClient/contracts.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +4 -2
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +11 -0
- package/cjs/src/embed/liveboard.spec.js.map +1 -1
- package/cjs/src/embed/search.d.ts +0 -7
- package/cjs/src/embed/search.d.ts.map +1 -1
- package/cjs/src/embed/search.js +1 -4
- package/cjs/src/embed/search.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts +10 -0
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +56 -15
- 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 +412 -238
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/index.d.ts +2 -2
- package/cjs/src/index.d.ts.map +1 -1
- package/cjs/src/index.js +2 -1
- 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/types.d.ts +328 -103
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +265 -85
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/logger.d.ts.map +1 -1
- package/cjs/src/utils/logger.js +1 -2
- package/cjs/src/utils/logger.js.map +1 -1
- package/cjs/src/utils/processData.d.ts +1 -1
- package/cjs/src/utils/processData.d.ts.map +1 -1
- package/cjs/src/utils/processData.js +8 -8
- package/cjs/src/utils/processData.js.map +1 -1
- package/cjs/src/utils/processData.spec.js.map +1 -1
- package/dist/{index-SVcLgSqi.js → index-CpkMygsc.js} +1 -1
- package/dist/src/api-intercept.d.ts +51 -0
- package/dist/src/api-intercept.d.ts.map +1 -0
- package/dist/src/api-intercept.spec.d.ts +2 -0
- package/dist/src/api-intercept.spec.d.ts.map +1 -0
- package/dist/src/css-variables.d.ts +4 -0
- package/dist/src/css-variables.d.ts.map +1 -1
- package/dist/src/embed/app.d.ts +0 -5
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/conversation.d.ts +2 -2
- package/dist/src/embed/hostEventClient/contracts.d.ts +11 -1
- package/dist/src/embed/hostEventClient/contracts.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/search.d.ts +0 -7
- package/dist/src/embed/search.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts +10 -0
- 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/index.d.ts +2 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/react/all-types-export.d.ts +1 -1
- package/dist/src/react/all-types-export.d.ts.map +1 -1
- package/dist/src/types.d.ts +328 -103
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/logger.d.ts.map +1 -1
- package/dist/src/utils/processData.d.ts +1 -1
- package/dist/src/utils/processData.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +519 -133
- package/dist/tsembed-react.js +518 -132
- package/dist/tsembed.es.js +2642 -2256
- package/dist/tsembed.js +2640 -2254
- package/dist/visual-embed-sdk-react-full.d.ts +355 -118
- package/dist/visual-embed-sdk-react.d.ts +352 -118
- package/dist/visual-embed-sdk.d.ts +355 -118
- package/lib/package.json +1 -1
- package/lib/src/api-intercept.d.ts +51 -0
- package/lib/src/api-intercept.d.ts.map +1 -0
- package/lib/src/api-intercept.js +173 -0
- package/lib/src/api-intercept.js.map +1 -0
- package/lib/src/api-intercept.spec.d.ts +2 -0
- package/lib/src/api-intercept.spec.d.ts.map +1 -0
- package/lib/src/api-intercept.spec.js +669 -0
- package/lib/src/api-intercept.spec.js.map +1 -0
- package/lib/src/css-variables.d.ts +4 -0
- package/lib/src/css-variables.d.ts.map +1 -1
- package/lib/src/embed/app.d.ts +0 -5
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +4 -5
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +10 -0
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/conversation.d.ts +2 -2
- package/lib/src/embed/conversation.js +1 -1
- package/lib/src/embed/conversation.js.map +1 -1
- package/lib/src/embed/conversation.spec.js +17 -0
- package/lib/src/embed/conversation.spec.js.map +1 -1
- package/lib/src/embed/hostEventClient/contracts.d.ts +11 -1
- package/lib/src/embed/hostEventClient/contracts.d.ts.map +1 -1
- package/lib/src/embed/hostEventClient/contracts.js +1 -0
- package/lib/src/embed/hostEventClient/contracts.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +4 -2
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +11 -0
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/embed/search.d.ts +0 -7
- package/lib/src/embed/search.d.ts.map +1 -1
- package/lib/src/embed/search.js +1 -4
- package/lib/src/embed/search.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts +10 -0
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +56 -15
- 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 +412 -238
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/index.d.ts +2 -2
- package/lib/src/index.d.ts.map +1 -1
- package/lib/src/index.js +2 -2
- 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/types.d.ts +328 -103
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +264 -84
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/logger.d.ts.map +1 -1
- package/lib/src/utils/logger.js +1 -2
- package/lib/src/utils/logger.js.map +1 -1
- package/lib/src/utils/processData.d.ts +1 -1
- package/lib/src/utils/processData.d.ts.map +1 -1
- package/lib/src/utils/processData.js +8 -8
- package/lib/src/utils/processData.js.map +1 -1
- package/lib/src/utils/processData.spec.js.map +1 -1
- package/package.json +1 -1
- package/src/api-intercept.spec.ts +856 -0
- package/src/api-intercept.ts +204 -0
- package/src/css-variables.ts +5 -0
- package/src/embed/app.spec.ts +11 -0
- package/src/embed/app.ts +5 -16
- package/src/embed/conversation.spec.ts +22 -0
- package/src/embed/conversation.ts +3 -3
- package/src/embed/hostEventClient/contracts.ts +10 -0
- package/src/embed/liveboard.spec.ts +12 -0
- package/src/embed/liveboard.ts +6 -2
- package/src/embed/search.ts +1 -14
- package/src/embed/ts-embed.spec.ts +498 -250
- package/src/embed/ts-embed.ts +80 -32
- package/src/index.ts +2 -0
- package/src/react/all-types-export.ts +1 -0
- package/src/types.ts +410 -179
- package/src/utils/logger.ts +1 -2
- package/src/utils/processData.spec.ts +0 -1
- package/src/utils/processData.ts +10 -11
package/dist/src/types.d.ts
CHANGED
|
@@ -706,7 +706,7 @@ export interface FrameParams {
|
|
|
706
706
|
/**
|
|
707
707
|
* The common configuration object for an embedded view.
|
|
708
708
|
*/
|
|
709
|
-
export interface BaseViewConfig {
|
|
709
|
+
export interface BaseViewConfig extends ApiInterceptFlags {
|
|
710
710
|
/**
|
|
711
711
|
* @hidden
|
|
712
712
|
*/
|
|
@@ -1259,7 +1259,7 @@ export interface SearchLiveboardCommonViewConfig {
|
|
|
1259
1259
|
*
|
|
1260
1260
|
* Supported embed types: `SageEmbed`, `AppEmbed`, `SearchBarEmbed`, `LiveboardEmbed`, `SearchEmbed`
|
|
1261
1261
|
* @default true
|
|
1262
|
-
* @version SDK: 1.
|
|
1262
|
+
* @version SDK: 1.41.1 | ThoughtSpot Cloud: 10.14.0.cl
|
|
1263
1263
|
* @example
|
|
1264
1264
|
* ```js
|
|
1265
1265
|
* // Replace <EmbedComponent> with embed component name. For example, SageEmbed, AppEmbed, or SearchBarEmbed
|
|
@@ -1458,26 +1458,27 @@ export interface LiveboardAppEmbedViewConfig {
|
|
|
1458
1458
|
*/
|
|
1459
1459
|
enableAskSage?: boolean;
|
|
1460
1460
|
/**
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1461
|
+
* This flag is used to show or hide checkboxes for including or excluding
|
|
1462
|
+
* the cover and filters pages in the Liveboard PDF.
|
|
1463
|
+
*
|
|
1464
|
+
* Supported embed types: `AppEmbed`, `LiveboardEmbed`
|
|
1465
|
+
* @version SDK: 1.40.0 | ThoughtSpot:10.8.0.cl
|
|
1466
|
+
* @example
|
|
1467
|
+
* ```js
|
|
1468
|
+
* // Replace <EmbedComponent> with embed component name. For example, AppEmbed or LiveboardEmbed
|
|
1469
|
+
* const embed = new <EmbedComponent>('#tsEmbed', {
|
|
1470
|
+
* ... // other embed view config
|
|
1471
|
+
* coverAndFilterOptionInPDF: false,
|
|
1472
|
+
* })
|
|
1473
|
+
* ```
|
|
1474
|
+
*/
|
|
1475
1475
|
coverAndFilterOptionInPDF?: boolean;
|
|
1476
1476
|
/**
|
|
1477
1477
|
* This flag is used to enable or disable the XLSX/CSV download option for Liveboards.
|
|
1478
|
+
* To enable this feature on your instance, contact ThoughtSpot Support.
|
|
1478
1479
|
*
|
|
1479
1480
|
* Supported embed types: `AppEmbed`, `LiveboardEmbed`
|
|
1480
|
-
* @version SDK: 1.41.0 | ThoughtSpot:
|
|
1481
|
+
* @version SDK: 1.41.0 | ThoughtSpot: 26.3.0.cl
|
|
1481
1482
|
* @example
|
|
1482
1483
|
* ```js
|
|
1483
1484
|
* // Replace <EmbedComponent> with embed component name. For example, AppEmbed or LiveboardEmbed
|
|
@@ -1824,7 +1825,7 @@ export declare enum EmbedEvent {
|
|
|
1824
1825
|
*/
|
|
1825
1826
|
Load = "load",
|
|
1826
1827
|
/**
|
|
1827
|
-
* Data pertaining to an Answer or
|
|
1828
|
+
* Data pertaining to an Answer, Liveboard or Spotter visualization is received.
|
|
1828
1829
|
* The event payload includes the raw data of the object.
|
|
1829
1830
|
* @return data - Answer of Liveboard data
|
|
1830
1831
|
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
@@ -2243,6 +2244,17 @@ export declare enum EmbedEvent {
|
|
|
2243
2244
|
*```
|
|
2244
2245
|
*/
|
|
2245
2246
|
AnswerDelete = "answerDelete",
|
|
2247
|
+
/**
|
|
2248
|
+
* Emitted when the AI Highlights action is triggered on a Liveboard
|
|
2249
|
+
* @version SDK: 1.44.0 | ThoughtSpot: 10.15.0.cl
|
|
2250
|
+
* @example
|
|
2251
|
+
*```js
|
|
2252
|
+
* liveboardEmbed.on(EmbedEvent.AIHighlights, (payload) => {
|
|
2253
|
+
* console.log('AI Highlights', payload);
|
|
2254
|
+
* })
|
|
2255
|
+
*```
|
|
2256
|
+
*/
|
|
2257
|
+
AIHighlights = "AIHighlights",
|
|
2246
2258
|
/**
|
|
2247
2259
|
* Emitted when a user initiates the Pin action to
|
|
2248
2260
|
* add an Answer to a Liveboard.
|
|
@@ -2673,21 +2685,24 @@ export declare enum EmbedEvent {
|
|
|
2673
2685
|
|
|
2674
2686
|
* Prerequisite: Set `isOnBeforeGetVizDataInterceptEnabled` to `true`
|
|
2675
2687
|
* for this embed event to get emitted.
|
|
2676
|
-
* @param: payload
|
|
2677
|
-
* @param:
|
|
2688
|
+
* @param:payload The payload received from the embed related to the Data API call.
|
|
2689
|
+
* @param:responder
|
|
2678
2690
|
* Contains elements that lets developers define whether ThoughtSpot
|
|
2679
2691
|
* should run the search, and if not, what error message
|
|
2680
2692
|
* should be shown to the user.
|
|
2681
2693
|
*
|
|
2682
|
-
* execute
|
|
2694
|
+
* `execute` - When execute returns `true`, the search will be run.
|
|
2683
2695
|
* When execute returns `false`, the search will not be executed.
|
|
2684
2696
|
*
|
|
2685
|
-
* error
|
|
2686
|
-
*
|
|
2697
|
+
* `error` - Developers can customize the error message text when `execute`
|
|
2698
|
+
* is `false` using the `errorText` and `errorDescription` parameters in responder.
|
|
2699
|
+
*
|
|
2700
|
+
* `errorText` - The error message text to be shown to the user.
|
|
2701
|
+
* `errorDescription (ThoughtSpot: 10.15.0.cl and above)` - The error description to be shown to the user.
|
|
2687
2702
|
* @version SDK : 1.29.0 | ThoughtSpot: 10.3.0.cl
|
|
2688
2703
|
* @example
|
|
2689
2704
|
*```js
|
|
2690
|
-
* .on(EmbedEvent.OnBeforeGetVizDataIntercept,
|
|
2705
|
+
* embed.on(EmbedEvent.OnBeforeGetVizDataIntercept,
|
|
2691
2706
|
* (payload, responder) => {
|
|
2692
2707
|
* responder({
|
|
2693
2708
|
* data: {
|
|
@@ -2703,7 +2718,7 @@ export declare enum EmbedEvent {
|
|
|
2703
2718
|
* ```
|
|
2704
2719
|
*
|
|
2705
2720
|
*```js
|
|
2706
|
-
* .on(EmbedEvent.OnBeforeGetVizDataIntercept,
|
|
2721
|
+
* embed.on(EmbedEvent.OnBeforeGetVizDataIntercept,
|
|
2707
2722
|
* (payload, responder) => {
|
|
2708
2723
|
* const query = payload.data.data.answer.search_query
|
|
2709
2724
|
* responder({
|
|
@@ -2714,7 +2729,8 @@ export declare enum EmbedEvent {
|
|
|
2714
2729
|
* error: {
|
|
2715
2730
|
* //Provide a custom error message to explain to your end user
|
|
2716
2731
|
* // why their search did not run, and which searches are accepted by your custom logic.
|
|
2717
|
-
* errorText: "
|
|
2732
|
+
* errorText: "Error Occurred",
|
|
2733
|
+
* errorDescription: "You can't use this query :" + query + ".
|
|
2718
2734
|
* The 'sales' measures can never be used at the 'county' level.
|
|
2719
2735
|
* Please try another measure, or remove 'county' from your search."
|
|
2720
2736
|
* }
|
|
@@ -2778,17 +2794,17 @@ export declare enum EmbedEvent {
|
|
|
2778
2794
|
*/
|
|
2779
2795
|
TableVizRendered = "TableVizRendered",
|
|
2780
2796
|
/**
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2797
|
+
* Emitted when the liveboard is created from pin modal or Liveboard list page.
|
|
2798
|
+
* You can use this event as a hook to trigger
|
|
2799
|
+
* other events on liveboard creation.
|
|
2800
|
+
*
|
|
2801
|
+
* ```js
|
|
2802
|
+
* liveboardEmbed.on(EmbedEvent.CreateLiveboard, (payload) => {
|
|
2803
|
+
* console.log('payload', payload);
|
|
2804
|
+
* })
|
|
2805
|
+
*```
|
|
2806
|
+
* @version SDK : 1.37.0 | ThoughtSpot: 10.8.0.cl
|
|
2807
|
+
*/
|
|
2792
2808
|
CreateLiveboard = "createLiveboard",
|
|
2793
2809
|
/**
|
|
2794
2810
|
* Emitted when a user creates a Model.
|
|
@@ -2884,6 +2900,17 @@ export declare enum EmbedEvent {
|
|
|
2884
2900
|
* @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
|
|
2885
2901
|
*/
|
|
2886
2902
|
SpotterInit = "spotterInit",
|
|
2903
|
+
/**
|
|
2904
|
+
* Emitted when a *Spotter* conversation has been successfully created.
|
|
2905
|
+
* @example
|
|
2906
|
+
* ```js
|
|
2907
|
+
* spotterEmbed.on(EmbedEvent.SpotterLoadComplete, (payload) => {
|
|
2908
|
+
* console.log('payload', payload);
|
|
2909
|
+
* })
|
|
2910
|
+
*```
|
|
2911
|
+
* @version SDK: 1.44.0 | ThoughtSpot: 26.2.0.cl
|
|
2912
|
+
*/
|
|
2913
|
+
SpotterLoadComplete = "spotterLoadComplete",
|
|
2887
2914
|
/**
|
|
2888
2915
|
* @hidden
|
|
2889
2916
|
* Triggers when the embed listener is ready to receive events.
|
|
@@ -2906,7 +2933,73 @@ export declare enum EmbedEvent {
|
|
|
2906
2933
|
* ```
|
|
2907
2934
|
* @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
|
|
2908
2935
|
*/
|
|
2909
|
-
OrgSwitched = "orgSwitched"
|
|
2936
|
+
OrgSwitched = "orgSwitched",
|
|
2937
|
+
/**
|
|
2938
|
+
* Emitted when the user intercepts a URL.
|
|
2939
|
+
*
|
|
2940
|
+
* Supported on all embed types.
|
|
2941
|
+
*
|
|
2942
|
+
* @example
|
|
2943
|
+
*
|
|
2944
|
+
* ```js
|
|
2945
|
+
* embed.on(EmbedEvent.ApiIntercept, (payload, responder) => {
|
|
2946
|
+
* console.log('payload', payload);
|
|
2947
|
+
* responder({
|
|
2948
|
+
* data: {
|
|
2949
|
+
* execute: false,
|
|
2950
|
+
* error: {
|
|
2951
|
+
* errorText: 'Error Occurred',
|
|
2952
|
+
* }
|
|
2953
|
+
* }
|
|
2954
|
+
* })
|
|
2955
|
+
* })
|
|
2956
|
+
* ```
|
|
2957
|
+
*
|
|
2958
|
+
* ```js
|
|
2959
|
+
* // We can also send a response for the intercepted api
|
|
2960
|
+
* embed.on(EmbedEvent.ApiIntercept, (payload, responder) => {
|
|
2961
|
+
* console.log('payload', payload);
|
|
2962
|
+
* responder({
|
|
2963
|
+
* data: {
|
|
2964
|
+
* execute: false,
|
|
2965
|
+
* response: {
|
|
2966
|
+
* body: {
|
|
2967
|
+
* data: {
|
|
2968
|
+
* // Some api response
|
|
2969
|
+
* },
|
|
2970
|
+
* }
|
|
2971
|
+
* }
|
|
2972
|
+
* }
|
|
2973
|
+
* })
|
|
2974
|
+
* })
|
|
2975
|
+
*
|
|
2976
|
+
* // here embed will use the response from the responder as the response for the api
|
|
2977
|
+
* ```
|
|
2978
|
+
*
|
|
2979
|
+
* ```js
|
|
2980
|
+
* // We can also send error in response for the intercepted api
|
|
2981
|
+
* embed.on(EmbedEvent.ApiIntercept, (payload, responder) => {
|
|
2982
|
+
* console.log('payload', payload);
|
|
2983
|
+
* responder({
|
|
2984
|
+
* data: {
|
|
2985
|
+
* execute: false,
|
|
2986
|
+
* response: {
|
|
2987
|
+
* body: {
|
|
2988
|
+
* errors: [{
|
|
2989
|
+
* title: 'Error Occurred',
|
|
2990
|
+
* description: 'Error Description',
|
|
2991
|
+
* isUserError: true,
|
|
2992
|
+
* }],
|
|
2993
|
+
* data: {},
|
|
2994
|
+
* },
|
|
2995
|
+
* }
|
|
2996
|
+
* }
|
|
2997
|
+
* })
|
|
2998
|
+
* })
|
|
2999
|
+
* ```
|
|
3000
|
+
* @version SDK: 1.43.0 | ThoughtSpot: 10.15.0.cl
|
|
3001
|
+
*/
|
|
3002
|
+
ApiIntercept = "ApiIntercept"
|
|
2910
3003
|
}
|
|
2911
3004
|
/**
|
|
2912
3005
|
* Event types that can be triggered by the host application
|
|
@@ -3192,7 +3285,7 @@ export declare enum HostEvent {
|
|
|
3192
3285
|
* the following parameters:
|
|
3193
3286
|
*
|
|
3194
3287
|
* @param
|
|
3195
|
-
* `vizId`- GUID of the saved Answer or visualization to pin to a Liveboard.
|
|
3288
|
+
* `vizId`- GUID of the saved Answer or Spotter visualization ID to pin to a Liveboard.
|
|
3196
3289
|
* Optional when pinning a new chart or table generated from a Search query.
|
|
3197
3290
|
* **Required** in Spotter Embed.
|
|
3198
3291
|
* @param
|
|
@@ -3244,10 +3337,16 @@ export declare enum HostEvent {
|
|
|
3244
3337
|
* ```
|
|
3245
3338
|
* @example
|
|
3246
3339
|
* ```js
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3340
|
+
|
|
3341
|
+
* // You can use the Data event dispatched on each answer creation to get the vizId and use in Pin host event.
|
|
3342
|
+
* let latestSpotterVizId = '';
|
|
3343
|
+
* spotterEmbed.on(EmbedEvent.Data, (payload) => {
|
|
3344
|
+
* latestSpotterVizId = payload.data.id;
|
|
3345
|
+
* });
|
|
3346
|
+
*
|
|
3347
|
+
* spotterEmbed.trigger(HostEvent.Pin, { vizId: latestSpotterVizId });
|
|
3348
|
+
* ```
|
|
3349
|
+
*
|
|
3251
3350
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
3252
3351
|
*/
|
|
3253
3352
|
Pin = "pin",
|
|
@@ -3322,14 +3421,29 @@ export declare enum HostEvent {
|
|
|
3322
3421
|
* ```
|
|
3323
3422
|
* @example
|
|
3324
3423
|
* ```js
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3424
|
+
|
|
3425
|
+
* // You can use the Data event dispatched on each answer creation to get the vizId and use in DownloadAsPdf host event.
|
|
3426
|
+
* let latestSpotterVizId = '';
|
|
3427
|
+
* spotterEmbed.on(EmbedEvent.Data, (payload) => {
|
|
3428
|
+
* latestSpotterVizId = payload.data.id;
|
|
3429
|
+
* });
|
|
3430
|
+
*
|
|
3431
|
+
* spotterEmbed.trigger(HostEvent.DownloadAsPdf, { vizId: latestSpotterVizId });
|
|
3432
|
+
* ```
|
|
3329
3433
|
*
|
|
3330
3434
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
3331
3435
|
*/
|
|
3332
3436
|
DownloadAsPdf = "downloadAsPdf",
|
|
3437
|
+
/**
|
|
3438
|
+
* Trigger the **AI Highlights** action on an embedded Liveboard
|
|
3439
|
+
*
|
|
3440
|
+
* @example
|
|
3441
|
+
* ```js
|
|
3442
|
+
* liveboardEmbed.trigger(HostEvent.AIHighlights)
|
|
3443
|
+
* ```
|
|
3444
|
+
* @version SDK: 1.44.0 | ThoughtSpot: 10.15.0.cl
|
|
3445
|
+
*/
|
|
3446
|
+
AIHighlights = "AIHighlights",
|
|
3333
3447
|
/**
|
|
3334
3448
|
* Trigger the **Make a copy** action on a Liveboard,
|
|
3335
3449
|
* visualization, or Answer page.
|
|
@@ -3352,9 +3466,13 @@ export declare enum HostEvent {
|
|
|
3352
3466
|
* ```
|
|
3353
3467
|
* @example
|
|
3354
3468
|
* ```js
|
|
3355
|
-
*
|
|
3356
|
-
*
|
|
3357
|
-
*
|
|
3469
|
+
* // You can use the Data event dispatched on each answer creation to get the vizId and use in MakeACopy host event.
|
|
3470
|
+
* let latestSpotterVizId = '';
|
|
3471
|
+
* spotterEmbed.on(EmbedEvent.Data, (payload) => {
|
|
3472
|
+
* latestSpotterVizId = payload.data.id;
|
|
3473
|
+
* });
|
|
3474
|
+
*
|
|
3475
|
+
* spotterEmbed.trigger(HostEvent.MakeACopy, { vizId: latestSpotterVizId });
|
|
3358
3476
|
* ```
|
|
3359
3477
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
3360
3478
|
*/
|
|
@@ -3440,15 +3558,7 @@ export declare enum HostEvent {
|
|
|
3440
3558
|
* ```
|
|
3441
3559
|
* @example
|
|
3442
3560
|
* ```js
|
|
3443
|
-
*
|
|
3444
|
-
* vizId:'730496d6-6903-4601-937e-2c691821af3c'
|
|
3445
|
-
* });
|
|
3446
|
-
* ```
|
|
3447
|
-
* @example
|
|
3448
|
-
* ```js
|
|
3449
|
-
* const editResponse = await spotterEmbed.trigger(HostEvent.Edit, {
|
|
3450
|
-
* vizId:'730496d6-6903-4601-937e-2c691821af3c'
|
|
3451
|
-
* });
|
|
3561
|
+
* spotterEmbed.trigger(HostEvent.Edit);
|
|
3452
3562
|
* ```
|
|
3453
3563
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
3454
3564
|
*/
|
|
@@ -3497,16 +3607,23 @@ export declare enum HostEvent {
|
|
|
3497
3607
|
* );
|
|
3498
3608
|
* })
|
|
3499
3609
|
* ```
|
|
3500
|
-
* @example
|
|
3610
|
+
* * @example
|
|
3501
3611
|
* ```js
|
|
3502
|
-
|
|
3503
|
-
|
|
3612
|
+
|
|
3613
|
+
* // You can use the Data event dispatched on each answer creation to get the vizId and use in Pin host event.
|
|
3614
|
+
* let latestSpotterVizId = '';
|
|
3615
|
+
* spotterEmbed.on(EmbedEvent.Data, (payload) => {
|
|
3616
|
+
* latestSpotterVizId = payload.data.id;
|
|
3617
|
+
* });
|
|
3618
|
+
*
|
|
3619
|
+
* spotterEmbed.trigger(HostEvent.GetTML, {
|
|
3620
|
+
* vizId: latestSpotterVizId
|
|
3504
3621
|
* }).then((tml) => {
|
|
3505
3622
|
* console.log(
|
|
3506
3623
|
* tml.answer.search_query // TML representation of the search query
|
|
3507
3624
|
* );
|
|
3508
3625
|
* })
|
|
3509
|
-
|
|
3626
|
+
* ```
|
|
3510
3627
|
* @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1.sw
|
|
3511
3628
|
* @important
|
|
3512
3629
|
*/
|
|
@@ -3570,7 +3687,7 @@ export declare enum HostEvent {
|
|
|
3570
3687
|
/**
|
|
3571
3688
|
* Trigger the **Download** action on charts in
|
|
3572
3689
|
* the embedded view.
|
|
3573
|
-
* @param - `vizId` refers to the
|
|
3690
|
+
* @param - `vizId` refers to the Visualization ID in Spotter embed and is required in Spotter embed.
|
|
3574
3691
|
* @example
|
|
3575
3692
|
* ```js
|
|
3576
3693
|
* liveboardEmbed.trigger(HostEvent.Download, {vizId:
|
|
@@ -3580,9 +3697,13 @@ export declare enum HostEvent {
|
|
|
3580
3697
|
* embed.trigger(HostEvent.Download)
|
|
3581
3698
|
* ```
|
|
3582
3699
|
* ```js
|
|
3583
|
-
*
|
|
3584
|
-
*
|
|
3585
|
-
*
|
|
3700
|
+
* // You can use the Data event dispatched on each answer creation to get the vizId and use in Download host event.
|
|
3701
|
+
* let latestSpotterVizId = '';
|
|
3702
|
+
* spotterEmbed.on(EmbedEvent.Data, (payload) => {
|
|
3703
|
+
* latestSpotterVizId = payload.data.id;
|
|
3704
|
+
* });
|
|
3705
|
+
*
|
|
3706
|
+
* spotterEmbed.trigger(HostEvent.Download, { vizId: latestSpotterVizId });
|
|
3586
3707
|
* ```
|
|
3587
3708
|
* @deprecated from SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl ,9.4.1.sw
|
|
3588
3709
|
* Use {@link DownloadAsPng}
|
|
@@ -3601,9 +3722,13 @@ export declare enum HostEvent {
|
|
|
3601
3722
|
*
|
|
3602
3723
|
* searchEmbed.trigger(HostEvent.DownloadAsPng)
|
|
3603
3724
|
*
|
|
3604
|
-
*
|
|
3605
|
-
*
|
|
3606
|
-
*
|
|
3725
|
+
* // You can use the Data event dispatched on each answer creation to get the vizId and use in DownloadAsPng host event.
|
|
3726
|
+
* let latestSpotterVizId = '';
|
|
3727
|
+
* spotterEmbed.on(EmbedEvent.Data, (payload) => {
|
|
3728
|
+
* latestSpotterVizId = payload.data.id;
|
|
3729
|
+
* });
|
|
3730
|
+
*
|
|
3731
|
+
* spotterEmbed.trigger(HostEvent.DownloadAsPng, { vizId: latestSpotterVizId });
|
|
3607
3732
|
* ```
|
|
3608
3733
|
*
|
|
3609
3734
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.1.sw
|
|
@@ -3612,7 +3737,7 @@ export declare enum HostEvent {
|
|
|
3612
3737
|
/**
|
|
3613
3738
|
* Trigger the **Download** > **CSV** action on tables in
|
|
3614
3739
|
* the embedded view.
|
|
3615
|
-
* @param - `vizId` refers to the
|
|
3740
|
+
* @param - `vizId` refers to the Visualization ID in Spotter embed and is required in Spotter embed.
|
|
3616
3741
|
* @example
|
|
3617
3742
|
* ```js
|
|
3618
3743
|
* liveboardEmbed.trigger(HostEvent.DownloadAsCsv, {vizId:
|
|
@@ -3625,9 +3750,13 @@ export declare enum HostEvent {
|
|
|
3625
3750
|
* searchEmbed.trigger(HostEvent.DownloadAsCsv)
|
|
3626
3751
|
* ```
|
|
3627
3752
|
* ```js
|
|
3628
|
-
*
|
|
3629
|
-
*
|
|
3630
|
-
*
|
|
3753
|
+
* // You can use the Data event dispatched on each answer creation to get the vizId and use in DownloadAsCsv host event.
|
|
3754
|
+
* let latestSpotterVizId = '';
|
|
3755
|
+
* spotterEmbed.on(EmbedEvent.Data, (payload) => {
|
|
3756
|
+
* latestSpotterVizId = payload.data.id;
|
|
3757
|
+
* });
|
|
3758
|
+
*
|
|
3759
|
+
* spotterEmbed.trigger(HostEvent.DownloadAsCsv, { vizId: latestSpotterVizId });
|
|
3631
3760
|
* ```
|
|
3632
3761
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
3633
3762
|
*/
|
|
@@ -3635,7 +3764,7 @@ export declare enum HostEvent {
|
|
|
3635
3764
|
/**
|
|
3636
3765
|
* Trigger the **Download** > **XLSX** action on tables
|
|
3637
3766
|
* in the embedded view.
|
|
3638
|
-
* @param - `vizId` refers to the
|
|
3767
|
+
* @param - `vizId` refers to the Visualization ID in Spotter embed and is required in Spotter embed.
|
|
3639
3768
|
* @example
|
|
3640
3769
|
* ```js
|
|
3641
3770
|
* liveboardEmbed.trigger(HostEvent.DownloadAsXlsx, {vizId:
|
|
@@ -3648,9 +3777,13 @@ export declare enum HostEvent {
|
|
|
3648
3777
|
* searchEmbed.trigger(HostEvent.DownloadAsXlsx)
|
|
3649
3778
|
* ```
|
|
3650
3779
|
* ```js
|
|
3651
|
-
*
|
|
3652
|
-
*
|
|
3653
|
-
*
|
|
3780
|
+
* // You can use the Data event dispatched on each answer creation to get the vizId and use in DownloadAsXlsx host event.
|
|
3781
|
+
* let latestSpotterVizId = '';
|
|
3782
|
+
* spotterEmbed.on(EmbedEvent.Data, (payload) => {
|
|
3783
|
+
* latestSpotterVizId = payload.data.id;
|
|
3784
|
+
* });
|
|
3785
|
+
*
|
|
3786
|
+
* spotterEmbed.trigger(HostEvent.DownloadAsXlsx, { vizId: latestSpotterVizId });
|
|
3654
3787
|
* ```
|
|
3655
3788
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
3656
3789
|
*/
|
|
@@ -3687,7 +3820,7 @@ export declare enum HostEvent {
|
|
|
3687
3820
|
* ```
|
|
3688
3821
|
*
|
|
3689
3822
|
* ```js
|
|
3690
|
-
* // Save
|
|
3823
|
+
* // Save a Visualization in Spotter (requires vizId)
|
|
3691
3824
|
* spotterEmbed.trigger(HostEvent.Save, {
|
|
3692
3825
|
* vizId: "730496d6-6903-4601-937e-2c691821af3c"
|
|
3693
3826
|
* })
|
|
@@ -3988,15 +4121,21 @@ export declare enum HostEvent {
|
|
|
3988
4121
|
ResetLiveboardPersonalisedView = "ResetLiveboardPersonalisedView",
|
|
3989
4122
|
/**
|
|
3990
4123
|
* Triggers an action to update Parameter values on embedded
|
|
3991
|
-
* Answers, Liveboard and Spotter answer in Edit mode.
|
|
4124
|
+
* Answers, Liveboard, and Spotter answer in Edit mode.
|
|
4125
|
+
* @param - `name` - Name of the Parameter
|
|
4126
|
+
* @param - `value` - The value to set for the Parameter.
|
|
4127
|
+
*
|
|
4128
|
+
* Optionally, to control the visibility of the Parameter chip,
|
|
4129
|
+
* use the `isVisibleToUser` attribute when applying an override.
|
|
3992
4130
|
*
|
|
3993
4131
|
* @example
|
|
3994
4132
|
* ```js
|
|
3995
4133
|
* liveboardEmbed.trigger(HostEvent.UpdateParameters, [{
|
|
3996
|
-
*
|
|
3997
|
-
*
|
|
4134
|
+
* name: "Integer Range Param",
|
|
4135
|
+
* value: 10,
|
|
4136
|
+
* isVisibleToUser: false
|
|
3998
4137
|
* }])
|
|
3999
|
-
*
|
|
4138
|
+
* ```
|
|
4000
4139
|
* @version SDK: 1.29.0 | ThoughtSpot: 10.1.0.cl, 10.1.0.sw
|
|
4001
4140
|
*/
|
|
4002
4141
|
UpdateParameters = "UpdateParameters",
|
|
@@ -4009,11 +4148,13 @@ export declare enum HostEvent {
|
|
|
4009
4148
|
* });
|
|
4010
4149
|
*```
|
|
4011
4150
|
*```js
|
|
4012
|
-
*
|
|
4013
|
-
*
|
|
4014
|
-
*
|
|
4015
|
-
*
|
|
4151
|
+
* // You can use the Data event dispatched on each answer creation to get the vizId and use in GetParameters host event.
|
|
4152
|
+
* let latestSpotterVizId = '';
|
|
4153
|
+
* spotterEmbed.on(EmbedEvent.Data, (payload) => {
|
|
4154
|
+
* latestSpotterVizId = payload.data.id;
|
|
4016
4155
|
* });
|
|
4156
|
+
*
|
|
4157
|
+
* spotterEmbed.trigger(HostEvent.GetParameters, { vizId: latestSpotterVizId });
|
|
4017
4158
|
*```
|
|
4018
4159
|
* @version SDK: 1.29.0 | ThoughtSpot: 10.1.0.cl, 10.1.0.sw
|
|
4019
4160
|
*/
|
|
@@ -4043,10 +4184,11 @@ export declare enum HostEvent {
|
|
|
4043
4184
|
* If no parameters are specified, the save action is
|
|
4044
4185
|
* triggered with a modal to prompt users to
|
|
4045
4186
|
* add a name and description for the Answer.
|
|
4046
|
-
* @param -
|
|
4047
|
-
*
|
|
4048
|
-
*
|
|
4049
|
-
* @param - `
|
|
4187
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed
|
|
4188
|
+
* and is required in Spotter embed.
|
|
4189
|
+
* Optional attributes to set Answer properties include:
|
|
4190
|
+
* @param - `name` - Name string for the Answer.
|
|
4191
|
+
* @param - `description` - Description text for the Answer.
|
|
4050
4192
|
* @example
|
|
4051
4193
|
* ```js
|
|
4052
4194
|
* const saveAnswerResponse = await searchEmbed.trigger(HostEvent.SaveAnswer, {
|
|
@@ -4056,11 +4198,13 @@ export declare enum HostEvent {
|
|
|
4056
4198
|
* ```
|
|
4057
4199
|
* @example
|
|
4058
4200
|
* ```js
|
|
4059
|
-
*
|
|
4060
|
-
*
|
|
4061
|
-
*
|
|
4062
|
-
*
|
|
4201
|
+
* // You can use the Data event dispatched on each answer creation to get the vizId and use in SaveAnswer host event.
|
|
4202
|
+
* let latestSpotterVizId = '';
|
|
4203
|
+
* spotterEmbed.on(EmbedEvent.Data, (payload) => {
|
|
4204
|
+
* latestSpotterVizId = payload.data.id;
|
|
4063
4205
|
* });
|
|
4206
|
+
*
|
|
4207
|
+
* spotterEmbed.trigger(HostEvent.SaveAnswer, { vizId: latestSpotterVizId });
|
|
4064
4208
|
* ```
|
|
4065
4209
|
* @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
|
|
4066
4210
|
*/
|
|
@@ -4144,12 +4288,15 @@ export declare enum HostEvent {
|
|
|
4144
4288
|
DeleteLastPrompt = "DeleteLastPrompt",
|
|
4145
4289
|
/**
|
|
4146
4290
|
* Toggle the visualization to chart or table view.
|
|
4147
|
-
* @param - `vizId ` refers to the
|
|
4291
|
+
* @param - `vizId ` refers to the Visualization ID in Spotter embed and is required.
|
|
4148
4292
|
* @example
|
|
4149
4293
|
* ```js
|
|
4150
|
-
*
|
|
4151
|
-
*
|
|
4294
|
+
* let latestSpotterVizId = '';
|
|
4295
|
+
* spotterEmbed.on(EmbedEvent.Data, (payload) => {
|
|
4296
|
+
* latestSpotterVizId = payload.data.id;
|
|
4152
4297
|
* });
|
|
4298
|
+
*
|
|
4299
|
+
* spotterEmbed.trigger(HostEvent.AnswerChartSwitcher, { vizId: latestSpotterVizId });
|
|
4153
4300
|
*```
|
|
4154
4301
|
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
4155
4302
|
*/
|
|
@@ -4178,12 +4325,16 @@ export declare enum HostEvent {
|
|
|
4178
4325
|
*/
|
|
4179
4326
|
VisibleEmbedCoordinates = "visibleEmbedCoordinates",
|
|
4180
4327
|
/**
|
|
4181
|
-
* Trigger the *
|
|
4182
|
-
* @param - `vizId` refers to the
|
|
4328
|
+
* Trigger the *Spotter* action for visualizations present on the liveboard's vizzes.
|
|
4329
|
+
* @param - `vizId` refers to the Visualization ID in Spotter embed and is required.
|
|
4183
4330
|
* @example
|
|
4184
4331
|
* ```js
|
|
4185
|
-
*
|
|
4186
|
-
* {
|
|
4332
|
+
* let latestSpotterVizId = '';
|
|
4333
|
+
* spotterEmbed.on(EmbedEvent.Data, (payload) => {
|
|
4334
|
+
* latestSpotterVizId = payload.data.id;
|
|
4335
|
+
* });
|
|
4336
|
+
*
|
|
4337
|
+
* spotterEmbed.trigger(HostEvent.AskSpotter, { vizId: latestSpotterVizId });
|
|
4187
4338
|
* ```
|
|
4188
4339
|
* @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
|
|
4189
4340
|
*/
|
|
@@ -4206,7 +4357,19 @@ export declare enum HostEvent {
|
|
|
4206
4357
|
* ```
|
|
4207
4358
|
* @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
|
|
4208
4359
|
*/
|
|
4209
|
-
DestroyEmbed = "EmbedDestroyed"
|
|
4360
|
+
DestroyEmbed = "EmbedDestroyed",
|
|
4361
|
+
/** Triggers a create new conversation operation in spotter embed.
|
|
4362
|
+
* @example
|
|
4363
|
+
* ```js
|
|
4364
|
+
* This feature is available only when chat history is enabled on your ThoughtSpot instance.
|
|
4365
|
+
* Contact your admin or ThoughtSpot Support to enable chat history on your instance.
|
|
4366
|
+
* @example
|
|
4367
|
+
* ```js
|
|
4368
|
+
* spotterEmbed.trigger(HostEvent.StartNewSpotterConversation);
|
|
4369
|
+
* ```
|
|
4370
|
+
* @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
|
|
4371
|
+
*/
|
|
4372
|
+
StartNewSpotterConversation = "StartNewSpotterConversation"
|
|
4210
4373
|
}
|
|
4211
4374
|
/**
|
|
4212
4375
|
* The different visual modes that the data sources panel within
|
|
@@ -5854,5 +6017,67 @@ export interface DefaultAppInitData {
|
|
|
5854
6017
|
customVariablesForThirdPartyTools: Record<string, any>;
|
|
5855
6018
|
hiddenListColumns: ListPageColumns[];
|
|
5856
6019
|
customActions: CustomAction[];
|
|
6020
|
+
interceptTimeout: number | undefined;
|
|
6021
|
+
interceptUrls: (string | InterceptedApiType)[];
|
|
6022
|
+
}
|
|
6023
|
+
/**
|
|
6024
|
+
* Enum for the type of API intercepted
|
|
6025
|
+
*/
|
|
6026
|
+
export declare enum InterceptedApiType {
|
|
6027
|
+
/**
|
|
6028
|
+
* The apis that are use to get the data for the embed
|
|
6029
|
+
*/
|
|
6030
|
+
AnswerData = "AnswerData",
|
|
6031
|
+
/**
|
|
6032
|
+
* This will intercept all the apis
|
|
6033
|
+
*/
|
|
6034
|
+
ALL = "ALL",
|
|
6035
|
+
/**
|
|
6036
|
+
* The apis that are use to get the data for the liveboard
|
|
6037
|
+
*/
|
|
6038
|
+
LiveboardData = "LiveboardData"
|
|
5857
6039
|
}
|
|
6040
|
+
export type ApiInterceptFlags = {
|
|
6041
|
+
/**
|
|
6042
|
+
* Flag that allows using `EmbedEvent.OnBeforeGetVizDataIntercept`.
|
|
6043
|
+
*
|
|
6044
|
+
* Can be used for Serach and App Embed from SDK 1.29.0
|
|
6045
|
+
*
|
|
6046
|
+
* @version SDK : 1.43.0 | ThoughtSpot: 10.15.0.cl
|
|
6047
|
+
*/
|
|
6048
|
+
isOnBeforeGetVizDataInterceptEnabled?: boolean;
|
|
6049
|
+
/**
|
|
6050
|
+
* This allows to intercept the urls passed, once intercepted the api will only
|
|
6051
|
+
* run based on the reponse from the responder of ApiIntercept event.
|
|
6052
|
+
*
|
|
6053
|
+
* @example
|
|
6054
|
+
* ```js
|
|
6055
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
6056
|
+
* ...viewConfig,
|
|
6057
|
+
* enableApiIntercept: true,
|
|
6058
|
+
* interceptUrls: [InterceptedApiType.DATA],
|
|
6059
|
+
* })
|
|
6060
|
+
* ```
|
|
6061
|
+
*
|
|
6062
|
+
* @version SDK : 1.43.0 | ThoughtSpot: 10.15.0.cl
|
|
6063
|
+
*/
|
|
6064
|
+
interceptUrls?: (string | InterceptedApiType)[];
|
|
6065
|
+
/**
|
|
6066
|
+
* The timeout for the intercept, default is 30000ms
|
|
6067
|
+
* the api will error out if the timeout is reached
|
|
6068
|
+
*
|
|
6069
|
+
* @example
|
|
6070
|
+
* ```js
|
|
6071
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
6072
|
+
* ...viewConfig,
|
|
6073
|
+
* enableApiIntercept: true,
|
|
6074
|
+
* interceptUrls: [InterceptedApiType.ALL],
|
|
6075
|
+
* interceptTimeout: 1000,
|
|
6076
|
+
* })
|
|
6077
|
+
* ```
|
|
6078
|
+
*
|
|
6079
|
+
* @version SDK : 1.43.0 | ThoughtSpot: 10.15.0.cl
|
|
6080
|
+
*/
|
|
6081
|
+
interceptTimeout?: number;
|
|
6082
|
+
};
|
|
5858
6083
|
//# sourceMappingURL=types.d.ts.map
|