@thoughtspot/visual-embed-sdk 1.44.0 → 1.44.1-test
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.map +1 -1
- package/cjs/src/api-intercept.js +8 -3
- package/cjs/src/api-intercept.js.map +1 -1
- package/cjs/src/api-intercept.spec.js +19 -3
- package/cjs/src/api-intercept.spec.js.map +1 -1
- package/cjs/src/embed/app.d.ts +17 -0
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +6 -4
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +84 -1
- package/cjs/src/embed/app.spec.js.map +1 -1
- package/cjs/src/embed/base.d.ts +7 -0
- package/cjs/src/embed/base.d.ts.map +1 -1
- package/cjs/src/embed/base.js +16 -1
- package/cjs/src/embed/base.js.map +1 -1
- package/cjs/src/embed/base.spec.js +21 -0
- package/cjs/src/embed/base.spec.js.map +1 -1
- package/cjs/src/embed/conversation.d.ts.map +1 -1
- package/cjs/src/embed/conversation.js +6 -1
- package/cjs/src/embed/conversation.js.map +1 -1
- package/cjs/src/embed/conversation.spec.js +6 -1
- package/cjs/src/embed/conversation.spec.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts +18 -0
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +10 -5
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +86 -0
- package/cjs/src/embed/liveboard.spec.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts +3 -2
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +51 -17
- 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 +93 -5
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/errors.d.ts +7 -0
- package/cjs/src/errors.d.ts.map +1 -1
- package/cjs/src/errors.js +7 -0
- package/cjs/src/errors.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 +248 -6
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +134 -2
- package/cjs/src/types.js.map +1 -1
- package/dist/{index-B2QPwxuL.js → index-BXCUJ09L.js} +1 -1
- package/dist/src/api-intercept.d.ts.map +1 -1
- package/dist/src/embed/app.d.ts +17 -0
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/base.d.ts +7 -0
- package/dist/src/embed/base.d.ts.map +1 -1
- package/dist/src/embed/conversation.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +18 -0
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts +3 -2
- 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/errors.d.ts +7 -0
- package/dist/src/errors.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 +248 -6
- package/dist/src/types.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +293 -104
- package/dist/tsembed-react.js +292 -103
- package/dist/tsembed.es.js +307 -105
- package/dist/tsembed.js +306 -103
- package/dist/visual-embed-sdk-react-full.d.ts +245 -7
- package/dist/visual-embed-sdk-react.d.ts +238 -7
- package/dist/visual-embed-sdk.d.ts +245 -7
- package/lib/package.json +1 -1
- package/lib/src/api-intercept.d.ts.map +1 -1
- package/lib/src/api-intercept.js +9 -4
- package/lib/src/api-intercept.js.map +1 -1
- package/lib/src/api-intercept.spec.js +20 -4
- package/lib/src/api-intercept.spec.js.map +1 -1
- package/lib/src/embed/app.d.ts +17 -0
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +6 -4
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +84 -1
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/base.d.ts +7 -0
- package/lib/src/embed/base.d.ts.map +1 -1
- package/lib/src/embed/base.js +14 -0
- package/lib/src/embed/base.js.map +1 -1
- package/lib/src/embed/base.spec.js +21 -0
- package/lib/src/embed/base.spec.js.map +1 -1
- package/lib/src/embed/conversation.d.ts.map +1 -1
- package/lib/src/embed/conversation.js +7 -2
- package/lib/src/embed/conversation.js.map +1 -1
- package/lib/src/embed/conversation.spec.js +7 -2
- package/lib/src/embed/conversation.spec.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +18 -0
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +11 -6
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +86 -0
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts +3 -2
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +52 -18
- 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 +94 -6
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/errors.d.ts +7 -0
- package/lib/src/errors.d.ts.map +1 -1
- package/lib/src/errors.js +7 -0
- package/lib/src/errors.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 +248 -6
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +133 -1
- package/lib/src/types.js.map +1 -1
- package/package.json +1 -1
- package/src/api-intercept.spec.ts +23 -10
- package/src/api-intercept.ts +9 -4
- package/src/embed/app.spec.ts +116 -2
- package/src/embed/app.ts +26 -2
- package/src/embed/base.spec.ts +28 -0
- package/src/embed/base.ts +15 -0
- package/src/embed/conversation.spec.ts +7 -2
- package/src/embed/conversation.ts +7 -2
- package/src/embed/liveboard.spec.ts +107 -0
- package/src/embed/liveboard.ts +32 -4
- package/src/embed/ts-embed.spec.ts +107 -15
- package/src/embed/ts-embed.ts +56 -19
- package/src/errors.ts +7 -0
- package/src/index.ts +2 -0
- package/src/react/all-types-export.ts +1 -0
- package/src/types.ts +259 -6
|
@@ -1490,7 +1490,7 @@ export interface EmbedConfig {
|
|
|
1490
1490
|
* {
|
|
1491
1491
|
* name: 'customAction',
|
|
1492
1492
|
* id: 'customAction',
|
|
1493
|
-
* target: CustomActionTarget.
|
|
1493
|
+
* target: CustomActionTarget.VIZ,
|
|
1494
1494
|
* position: CustomActionPosition.PRIMARY,
|
|
1495
1495
|
* }
|
|
1496
1496
|
* }
|
|
@@ -1881,8 +1881,12 @@ export interface BaseViewConfig extends ApiInterceptFlags {
|
|
|
1881
1881
|
* Supported embed types: `AppEmbed`, `LiveboardEmbed`, `SageEmbed`, `SearchEmbed`, `SpotterEmbed`
|
|
1882
1882
|
* @version SDK: 1.43.0 | ThoughtSpot: 10.14.0.cl
|
|
1883
1883
|
* @example
|
|
1884
|
-
* ```
|
|
1885
|
-
* import {
|
|
1884
|
+
* ```ts
|
|
1885
|
+
* import {
|
|
1886
|
+
* CustomActionPayload,
|
|
1887
|
+
* CustomActionPosition,
|
|
1888
|
+
* CustomActionTarget,
|
|
1889
|
+
* } from '@thoughtspot/visual-embed-sdk';
|
|
1886
1890
|
* // Use supported embed types such as AppEmbed or LiveboardEmbed
|
|
1887
1891
|
* const embed = new LiveboardEmbed('#tsEmbed', {
|
|
1888
1892
|
* ... // other embed config options
|
|
@@ -1890,12 +1894,17 @@ export interface BaseViewConfig extends ApiInterceptFlags {
|
|
|
1890
1894
|
* {
|
|
1891
1895
|
* name: 'customAction',
|
|
1892
1896
|
* id: 'customAction',
|
|
1893
|
-
* target: CustomActionTarget.
|
|
1897
|
+
* target: CustomActionTarget.VIZ,
|
|
1894
1898
|
* position: CustomActionPosition.PRIMARY,
|
|
1895
1899
|
* }
|
|
1896
1900
|
* }
|
|
1897
1901
|
* ]
|
|
1898
1902
|
* })
|
|
1903
|
+
*
|
|
1904
|
+
* // to trigger a custom flow on custom action click listen to Custom action embed event
|
|
1905
|
+
* embed.on(EmbedEvent.CustomAction, (payload: CustomActionPayload) => {
|
|
1906
|
+
* console.log('Custom Action event:', payload);
|
|
1907
|
+
* })
|
|
1899
1908
|
* ```
|
|
1900
1909
|
*/
|
|
1901
1910
|
customActions?: CustomAction[];
|
|
@@ -2373,6 +2382,38 @@ export interface LiveboardAppEmbedViewConfig {
|
|
|
2373
2382
|
* ```
|
|
2374
2383
|
*/
|
|
2375
2384
|
isEnhancedFilterInteractivityEnabled?: boolean;
|
|
2385
|
+
/**
|
|
2386
|
+
* Show or hide masked filter chips
|
|
2387
|
+
*
|
|
2388
|
+
* Supported embed types: `AppEmbed`, `LiveboardEmbed`
|
|
2389
|
+
* @version SDK: 1.45.0 | Thoughtspot: 26.2.0.cl
|
|
2390
|
+
* @default false
|
|
2391
|
+
* @example
|
|
2392
|
+
* ```js
|
|
2393
|
+
* // Replace <EmbedComponent> with embed component name. For example, AppEmbed or LiveboardEmbed
|
|
2394
|
+
* const embed = new <EmbedComponent>('#tsEmbed', {
|
|
2395
|
+
* ... // other embed view config
|
|
2396
|
+
* showMaskedFilterChip: true,
|
|
2397
|
+
* })
|
|
2398
|
+
* ```
|
|
2399
|
+
*/
|
|
2400
|
+
showMaskedFilterChip?: boolean;
|
|
2401
|
+
/**
|
|
2402
|
+
* Enable or disable Liveboard styling and grouping
|
|
2403
|
+
*
|
|
2404
|
+
* Supported embed types: `AppEmbed`, `LiveboardEmbed`
|
|
2405
|
+
* @version SDK: 1.45.0 | Thoughtspot: 26.2.0.cl
|
|
2406
|
+
* @default false
|
|
2407
|
+
* @example
|
|
2408
|
+
* ```js
|
|
2409
|
+
* // Replace <EmbedComponent> with embed component name. For example, AppEmbed or LiveboardEmbed
|
|
2410
|
+
* const embed = new <EmbedComponent>('#tsEmbed', {
|
|
2411
|
+
* ... // other embed view config
|
|
2412
|
+
* isLiveboardMasterpiecesEnabled: true,
|
|
2413
|
+
* })
|
|
2414
|
+
* ```
|
|
2415
|
+
*/
|
|
2416
|
+
isLiveboardMasterpiecesEnabled?: boolean;
|
|
2376
2417
|
}
|
|
2377
2418
|
export interface AllEmbedViewConfig extends BaseViewConfig, SearchLiveboardCommonViewConfig, HomePageConfig, LiveboardAppEmbedViewConfig {
|
|
2378
2419
|
}
|
|
@@ -2784,6 +2825,7 @@ export declare enum EmbedEvent {
|
|
|
2784
2825
|
* SearchEmbed.on(EmbedEvent.Error, (error) => {
|
|
2785
2826
|
* console.log(error);
|
|
2786
2827
|
* // { type: "Error", data: { errorType: "API", error: { message: '...', error: '...' } } }
|
|
2828
|
+
* // { errorType: "API", message: '...', code: '...' } new format
|
|
2787
2829
|
* });
|
|
2788
2830
|
* ```
|
|
2789
2831
|
* @example
|
|
@@ -2795,6 +2837,7 @@ export declare enum EmbedEvent {
|
|
|
2795
2837
|
* // message: "Fullscreen API is not enabled",
|
|
2796
2838
|
* // stack: "..."
|
|
2797
2839
|
* // } }}
|
|
2840
|
+
* // { errorType: "FULLSCREEN", message: "Fullscreen API is not enabled", code: '...' } new format
|
|
2798
2841
|
* })
|
|
2799
2842
|
* ```
|
|
2800
2843
|
*/
|
|
@@ -2950,7 +2993,8 @@ export declare enum EmbedEvent {
|
|
|
2950
2993
|
*/
|
|
2951
2994
|
ALL = "*",
|
|
2952
2995
|
/**
|
|
2953
|
-
* Emitted when an Answer is saved in the app
|
|
2996
|
+
* Emitted when an Answer is saved in the app.
|
|
2997
|
+
* Use start:true to subscribe to when save is initiated, or end:true to subscribe to when save is completed. Default is end:true.
|
|
2954
2998
|
* @Version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2955
2999
|
* @example
|
|
2956
3000
|
*```js
|
|
@@ -2985,6 +3029,7 @@ export declare enum EmbedEvent {
|
|
|
2985
3029
|
Download = "download",
|
|
2986
3030
|
/**
|
|
2987
3031
|
* Emitted when the download action is triggered on an Answer.
|
|
3032
|
+
* Use start:true to subscribe to when download is initiated, or end:true to subscribe to when download is completed. Default is end:true.
|
|
2988
3033
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.0.sw
|
|
2989
3034
|
* @example
|
|
2990
3035
|
*```js
|
|
@@ -2999,6 +3044,7 @@ export declare enum EmbedEvent {
|
|
|
2999
3044
|
DownloadAsPng = "downloadAsPng",
|
|
3000
3045
|
/**
|
|
3001
3046
|
* Emitted when the Download as PDF action is triggered on an Answer
|
|
3047
|
+
* Use start:true to subscribe to when download as PDF is initiated, or end:true to subscribe to when download as PDF is completed. Default is end:true.
|
|
3002
3048
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
3003
3049
|
* @example
|
|
3004
3050
|
*```js
|
|
@@ -3013,6 +3059,7 @@ export declare enum EmbedEvent {
|
|
|
3013
3059
|
DownloadAsPdf = "downloadAsPdf",
|
|
3014
3060
|
/**
|
|
3015
3061
|
* Emitted when the Download as CSV action is triggered on an Answer.
|
|
3062
|
+
* Use start:true to subscribe to when download as CSV is initiated, or end:true to subscribe to when download as CSV is completed. Default is end:true.
|
|
3016
3063
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
3017
3064
|
* @example
|
|
3018
3065
|
*```js
|
|
@@ -3027,6 +3074,7 @@ export declare enum EmbedEvent {
|
|
|
3027
3074
|
DownloadAsCsv = "downloadAsCsv",
|
|
3028
3075
|
/**
|
|
3029
3076
|
* Emitted when the Download as XLSX action is triggered on an Answer.
|
|
3077
|
+
* Use start:true to subscribe to when download as XLSX is initiated, or end:true to subscribe to when download as XLSX is completed. Default is end:true.
|
|
3030
3078
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
3031
3079
|
* @example
|
|
3032
3080
|
*```js
|
|
@@ -3041,6 +3089,7 @@ export declare enum EmbedEvent {
|
|
|
3041
3089
|
DownloadAsXlsx = "downloadAsXlsx",
|
|
3042
3090
|
/**
|
|
3043
3091
|
* Emitted when an Answer is deleted in the app
|
|
3092
|
+
* Use start:true to subscribe to when delete is initiated, or end:true to subscribe to when delete is completed. Default is end:true.
|
|
3044
3093
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
3045
3094
|
* @example
|
|
3046
3095
|
*```js
|
|
@@ -3067,6 +3116,7 @@ export declare enum EmbedEvent {
|
|
|
3067
3116
|
/**
|
|
3068
3117
|
* Emitted when a user initiates the Pin action to
|
|
3069
3118
|
* add an Answer to a Liveboard.
|
|
3119
|
+
* Use start:true to subscribe to when pin is initiated, or end:true to subscribe to when pin is completed. Default is end:true.
|
|
3070
3120
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
3071
3121
|
* @example
|
|
3072
3122
|
*```js
|
|
@@ -3180,6 +3230,7 @@ export declare enum EmbedEvent {
|
|
|
3180
3230
|
/**
|
|
3181
3231
|
* Emitted when the **Export TML** action is triggered on an
|
|
3182
3232
|
* an embedded object in the app
|
|
3233
|
+
* Use start:true to subscribe to when export is initiated, or end:true to subscribe to when export is completed. Default is end:true.
|
|
3183
3234
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
3184
3235
|
* @example
|
|
3185
3236
|
*```js
|
|
@@ -3205,6 +3256,7 @@ export declare enum EmbedEvent {
|
|
|
3205
3256
|
SaveAsView = "saveAsView",
|
|
3206
3257
|
/**
|
|
3207
3258
|
* Emitted when the user creates a copy of an Answer.
|
|
3259
|
+
* Use start:true to subscribe to when copy and edit is initiated, or end:true to subscribe to when copy and edit is completed. Default is end:true.
|
|
3208
3260
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
3209
3261
|
* @example
|
|
3210
3262
|
*```js
|
|
@@ -6509,7 +6561,47 @@ export declare enum Action {
|
|
|
6509
6561
|
* ```
|
|
6510
6562
|
* @version SDK: 1.43.0 | ThoughtSpot Cloud: 10.15.0.cl
|
|
6511
6563
|
*/
|
|
6512
|
-
LiveboardStylePanel = "liveboardStylePanel"
|
|
6564
|
+
LiveboardStylePanel = "liveboardStylePanel",
|
|
6565
|
+
/**
|
|
6566
|
+
* The **Move to Group** menu action on a Liveboard.
|
|
6567
|
+
* Allows moving a visualization to a different group.
|
|
6568
|
+
* @example
|
|
6569
|
+
* ```js
|
|
6570
|
+
* disabledActions: [Action.MoveToGroup]
|
|
6571
|
+
* ```
|
|
6572
|
+
* @version SDK: 1.44.0 | ThoughtSpot Cloud: 26.2.0.cl
|
|
6573
|
+
*/
|
|
6574
|
+
MoveToGroup = "moveToGroup",
|
|
6575
|
+
/**
|
|
6576
|
+
* The **Move out of Group** menu action on a Liveboard.
|
|
6577
|
+
* Allows moving a visualization out of a group.
|
|
6578
|
+
* @example
|
|
6579
|
+
* ```js
|
|
6580
|
+
* disabledActions: [Action.MoveOutOfGroup]
|
|
6581
|
+
* ```
|
|
6582
|
+
* @version SDK: 1.44.0 | ThoughtSpot Cloud: 26.2.0.cl
|
|
6583
|
+
*/
|
|
6584
|
+
MoveOutOfGroup = "moveOutOfGroup",
|
|
6585
|
+
/**
|
|
6586
|
+
* The **Create Group** menu action on a Liveboard.
|
|
6587
|
+
* Allows creating a new group.
|
|
6588
|
+
* @example
|
|
6589
|
+
* ```js
|
|
6590
|
+
* disabledActions: [Action.CreateGroup]
|
|
6591
|
+
* ```
|
|
6592
|
+
* @version SDK: 1.44.0 | ThoughtSpot Cloud: 26.2.0.cl
|
|
6593
|
+
*/
|
|
6594
|
+
CreateGroup = "createGroup",
|
|
6595
|
+
/**
|
|
6596
|
+
* The **Ungroup Liveboard Group** menu action on a Liveboard.
|
|
6597
|
+
* Allows ungrouping a liveboard group.
|
|
6598
|
+
* @example
|
|
6599
|
+
* ```js
|
|
6600
|
+
* disabledActions: [Action.UngroupLiveboardGroup]
|
|
6601
|
+
* ```
|
|
6602
|
+
* @version SDK: 1.44.0 | ThoughtSpot Cloud: 26.2.0.cl
|
|
6603
|
+
*/
|
|
6604
|
+
UngroupLiveboardGroup = "ungroupLiveboardGroup"
|
|
6513
6605
|
}
|
|
6514
6606
|
export declare enum PrefetchFeatures {
|
|
6515
6607
|
FullApp = "FullApp",
|
|
@@ -6652,6 +6744,109 @@ declare enum LogLevel {
|
|
|
6652
6744
|
*/
|
|
6653
6745
|
TRACE = "TRACE"
|
|
6654
6746
|
}
|
|
6747
|
+
declare enum ErrorDetailsTypes {
|
|
6748
|
+
/** API call failure */
|
|
6749
|
+
API = "API",
|
|
6750
|
+
/** General validation error */
|
|
6751
|
+
VALIDATION_ERROR = "VALIDATION_ERROR",
|
|
6752
|
+
/** Network connectivity or request error */
|
|
6753
|
+
NETWORK = "NETWORK"
|
|
6754
|
+
}
|
|
6755
|
+
declare enum EmbedErrorCodes {
|
|
6756
|
+
/** Worksheet ID not found or does not exist */
|
|
6757
|
+
WORKSHEET_ID_NOT_FOUND = "WORKSHEET_ID_NOT_FOUND",
|
|
6758
|
+
/** Required Liveboard ID is missing from configuration */
|
|
6759
|
+
LIVEBOARD_ID_MISSING = "LIVEBOARD_ID_MISSING",
|
|
6760
|
+
/** Conflicting action configuration detected (e.g., both hiddenActions and visibleActions specified) */
|
|
6761
|
+
CONFLICTING_ACTIONS_CONFIG = "CONFLICTING_ACTIONS_CONFIG",
|
|
6762
|
+
/** Conflicting tab configuration detected (e.g., both hiddenTabs and visibleTabs specified) */
|
|
6763
|
+
CONFLICTING_TABS_CONFIG = "CONFLICTING_TABS_CONFIG",
|
|
6764
|
+
/** Error during component initialization */
|
|
6765
|
+
INIT_ERROR = "INIT_ERROR",
|
|
6766
|
+
/** Network connectivity or request error */
|
|
6767
|
+
NETWORK_ERROR = "NETWORK_ERROR",
|
|
6768
|
+
/** Custom action validation failed */
|
|
6769
|
+
CUSTOM_ACTION_VALIDATION = "CUSTOM_ACTION_VALIDATION",
|
|
6770
|
+
/** Authentication/login failed */
|
|
6771
|
+
LOGIN_FAILED = "LOGIN_FAILED",
|
|
6772
|
+
/** Render method was not called before attempting to use the component */
|
|
6773
|
+
RENDER_NOT_CALLED = "RENDER_NOT_CALLED",
|
|
6774
|
+
/** Host event type is undefined or invalid */
|
|
6775
|
+
HOST_EVENT_TYPE_UNDEFINED = "HOST_EVENT_TYPE_UNDEFINED",
|
|
6776
|
+
/** Error parsing api intercept body */
|
|
6777
|
+
PARSING_API_INTERCEPT_BODY_ERROR = "PARSING_API_INTERCEPT_BODY_ERROR"
|
|
6778
|
+
}
|
|
6779
|
+
/**
|
|
6780
|
+
* Error event object emitted when an error occurs in an embedded component.
|
|
6781
|
+
*
|
|
6782
|
+
* This interface defines the structure of error objects returned by the {@link EmbedEvent.Error}
|
|
6783
|
+
* event. It provides detailed information about what went wrong, including the error type,
|
|
6784
|
+
* a human-readable message, and a machine-readable error code.
|
|
6785
|
+
*
|
|
6786
|
+
* ## Properties
|
|
6787
|
+
*
|
|
6788
|
+
* - **errorType**: One of the predefined {@link ErrorDetailsTypes} values
|
|
6789
|
+
* - **message**: Human-readable error description (string or array of strings for multiple errors)
|
|
6790
|
+
* - **code**: Machine-readable error identifier for programmatic handling
|
|
6791
|
+
* - **[key: string]**: Additional context-specific for backward compatibility
|
|
6792
|
+
*
|
|
6793
|
+
* ## Usage
|
|
6794
|
+
*
|
|
6795
|
+
* Listen to the {@link EmbedEvent.Error} event to receive instances of this object
|
|
6796
|
+
* and implement appropriate error handling logic based on the `errorType`.
|
|
6797
|
+
*
|
|
6798
|
+
* @version SDK: 1.44.2 | ThoughtSpot: 26.2.0.cl
|
|
6799
|
+
* @group Error Handling
|
|
6800
|
+
* @see {@link ErrorDetailsTypes} - Available error type values
|
|
6801
|
+
* @see {@link EmbedEvent.Error} - The event that emits this object
|
|
6802
|
+
*
|
|
6803
|
+
* @example
|
|
6804
|
+
* Handle specific error types
|
|
6805
|
+
*
|
|
6806
|
+
* embed.on(EmbedEvent.Error, (error) => {
|
|
6807
|
+
* switch (error.code) {
|
|
6808
|
+
* case EmbedErrorCodes.WORKSHEET_ID_NOT_FOUND:
|
|
6809
|
+
* console.error('Worksheet ID not found:', error.message, error.code);
|
|
6810
|
+
* break;
|
|
6811
|
+
* default:
|
|
6812
|
+
* console.error('Unknown error:', error);
|
|
6813
|
+
* }
|
|
6814
|
+
* });
|
|
6815
|
+
* *
|
|
6816
|
+
* @example
|
|
6817
|
+
* Handle multiple error messages
|
|
6818
|
+
*
|
|
6819
|
+
* embed.on(EmbedEvent.Error, (error) => {
|
|
6820
|
+
* const messages = Array.isArray(error.message)
|
|
6821
|
+
* ? error.message
|
|
6822
|
+
* : [error.message];
|
|
6823
|
+
*
|
|
6824
|
+
* messages.forEach(msg => console.error(msg));
|
|
6825
|
+
* });
|
|
6826
|
+
* *
|
|
6827
|
+
* @example
|
|
6828
|
+
* Access additional error context
|
|
6829
|
+
*
|
|
6830
|
+
* embed.on(EmbedEvent.Error, (error) => {
|
|
6831
|
+
* console.error('Error Details:', {
|
|
6832
|
+
* type: error.errorType,
|
|
6833
|
+
* message: error.message,
|
|
6834
|
+
* code: error.code,
|
|
6835
|
+
* // Additional context fields vary by error type
|
|
6836
|
+
* ...error
|
|
6837
|
+
* });
|
|
6838
|
+
* });
|
|
6839
|
+
* */
|
|
6840
|
+
export interface EmbedErrorDetailsEvent {
|
|
6841
|
+
/** The type of error that occurred */
|
|
6842
|
+
errorType: ErrorDetailsTypes;
|
|
6843
|
+
/** Human-readable error message(s) describing what went wrong */
|
|
6844
|
+
message: string | string[];
|
|
6845
|
+
/** Machine-readable error code for programmatic error handling */
|
|
6846
|
+
code: EmbedErrorCodes;
|
|
6847
|
+
/** Additional context-specific for backward compatibility */
|
|
6848
|
+
[key: string]: any;
|
|
6849
|
+
}
|
|
6655
6850
|
export interface DefaultAppInitData {
|
|
6656
6851
|
customisations: CustomisationsInterface;
|
|
6657
6852
|
authToken: string;
|
|
@@ -7017,8 +7212,9 @@ declare class TsEmbed {
|
|
|
7017
7212
|
/**
|
|
7018
7213
|
* Handles errors within the SDK
|
|
7019
7214
|
* @param error The error message or object
|
|
7215
|
+
* @param errorDetails The error details
|
|
7020
7216
|
*/
|
|
7021
|
-
protected handleError(
|
|
7217
|
+
protected handleError(errorDetails: EmbedErrorDetailsEvent): void;
|
|
7022
7218
|
/**
|
|
7023
7219
|
* Extracts the type field from the event payload
|
|
7024
7220
|
* @param event The window message event
|
|
@@ -8544,6 +8740,23 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
8544
8740
|
* @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
|
|
8545
8741
|
*/
|
|
8546
8742
|
updatedSpotterChatPrompt?: boolean;
|
|
8743
|
+
/**
|
|
8744
|
+
* This is the minimum height (in pixels) for a full-height App.
|
|
8745
|
+
* Setting this height helps resolve issues with empty Apps and
|
|
8746
|
+
* other screens navigable from an App.
|
|
8747
|
+
*
|
|
8748
|
+
* @version SDK: 1.44.2 | ThoughtSpot: 26.0.2.cl
|
|
8749
|
+
* @default 500
|
|
8750
|
+
* @example
|
|
8751
|
+
* ```js
|
|
8752
|
+
* const embed = new AppEmbed('#embed', {
|
|
8753
|
+
* ... // other app view config
|
|
8754
|
+
* fullHeight: true,
|
|
8755
|
+
* minimumHeight: 600,
|
|
8756
|
+
* });
|
|
8757
|
+
* ```
|
|
8758
|
+
*/
|
|
8759
|
+
minimumHeight?: number;
|
|
8547
8760
|
}
|
|
8548
8761
|
declare class AppEmbed extends V1Embed {
|
|
8549
8762
|
protected viewConfig: AppViewConfig;
|
|
@@ -8650,6 +8863,7 @@ export interface LiveboardViewConfig extends BaseViewConfig, SearchLiveboardComm
|
|
|
8650
8863
|
* Supported embed types: `LiveboardEmbed`
|
|
8651
8864
|
* @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
|
|
8652
8865
|
* @default 500
|
|
8866
|
+
* @deprecated Use `minimumHeight` instead.
|
|
8653
8867
|
* @example
|
|
8654
8868
|
* ```js
|
|
8655
8869
|
* const embed = new LiveboardEmbed('#embed', {
|
|
@@ -8660,6 +8874,23 @@ export interface LiveboardViewConfig extends BaseViewConfig, SearchLiveboardComm
|
|
|
8660
8874
|
* ```
|
|
8661
8875
|
*/
|
|
8662
8876
|
defaultHeight?: number;
|
|
8877
|
+
/**
|
|
8878
|
+
* This is the minimum height (in pixels) for a full-height Liveboard.
|
|
8879
|
+
* Setting this height helps resolve issues with empty Liveboards and
|
|
8880
|
+
* other screens navigable from a Liveboard.
|
|
8881
|
+
*
|
|
8882
|
+
* @version SDK: 1.44.2 | ThoughtSpot: 26.0.2.cl
|
|
8883
|
+
* @default 500
|
|
8884
|
+
* @example
|
|
8885
|
+
* ```js
|
|
8886
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
8887
|
+
* ... // other liveboard view config
|
|
8888
|
+
* fullHeight: true,
|
|
8889
|
+
* minimumHeight: 600,
|
|
8890
|
+
* });
|
|
8891
|
+
* ```
|
|
8892
|
+
*/
|
|
8893
|
+
minimumHeight?: number;
|
|
8663
8894
|
/**
|
|
8664
8895
|
* @Deprecated If set to true, the context menu in visualizations will be enabled.
|
|
8665
8896
|
* @example
|
|
@@ -9362,6 +9593,13 @@ export declare const init: (embedConfig: EmbedConfig) => AuthEventEmitter;
|
|
|
9362
9593
|
* @group Global methods
|
|
9363
9594
|
*/
|
|
9364
9595
|
export declare const logout: (doNotDisableAutoLogin?: boolean) => Promise<boolean>;
|
|
9596
|
+
/**
|
|
9597
|
+
* Reloads the ThoughtSpot iframe.
|
|
9598
|
+
* @param iFrame
|
|
9599
|
+
* @group Global methods
|
|
9600
|
+
* @version SDK: 1.43.1
|
|
9601
|
+
*/
|
|
9602
|
+
export declare const reloadIframe: (iFrame: HTMLIFrameElement) => void;
|
|
9365
9603
|
export type SessionInfo = {
|
|
9366
9604
|
releaseVersion: string;
|
|
9367
9605
|
userGUID: string;
|