@thoughtspot/visual-embed-sdk 1.40.1-alpha.2 → 1.41.0-pre-render-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 +5 -4
- package/cjs/src/css-variables.d.ts +316 -0
- package/cjs/src/css-variables.d.ts.map +1 -1
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +8 -0
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +12 -2
- package/cjs/src/embed/app.spec.js.map +1 -1
- package/cjs/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/cjs/src/embed/bodyless-conversation.js.map +1 -1
- package/cjs/src/embed/conversation.d.ts +63 -2
- package/cjs/src/embed/conversation.d.ts.map +1 -1
- package/cjs/src/embed/conversation.js +10 -2
- package/cjs/src/embed/conversation.js.map +1 -1
- package/cjs/src/embed/conversation.spec.js +102 -0
- package/cjs/src/embed/conversation.spec.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts +11 -2
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +21 -7
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +185 -4
- package/cjs/src/embed/liveboard.spec.js.map +1 -1
- package/cjs/src/embed/sage.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts +22 -7
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +75 -46
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +173 -1
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/types.d.ts +152 -44
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +139 -42
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/liveboardService/liveboardService.d.ts +21 -6
- package/cjs/src/utils/liveboardService/liveboardService.d.ts.map +1 -1
- package/cjs/src/utils/liveboardService/liveboardService.js +21 -6
- package/cjs/src/utils/liveboardService/liveboardService.js.map +1 -1
- package/dist/index-BDlM0f0T.js +7371 -0
- package/dist/src/css-variables.d.ts +316 -0
- package/dist/src/css-variables.d.ts.map +1 -1
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/dist/src/embed/conversation.d.ts +63 -2
- package/dist/src/embed/conversation.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +11 -2
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts +22 -7
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/types.d.ts +152 -44
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/liveboardService/liveboardService.d.ts +21 -6
- package/dist/src/utils/liveboardService/liveboardService.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +256 -100
- package/dist/tsembed-react.js +255 -99
- package/dist/tsembed.es.js +277 -106
- package/dist/tsembed.js +276 -105
- package/dist/visual-embed-sdk-react-full.d.ts +575 -57
- package/dist/visual-embed-sdk-react.d.ts +575 -57
- package/dist/visual-embed-sdk.d.ts +575 -57
- package/lib/package.json +5 -4
- package/lib/src/css-variables.d.ts +316 -0
- package/lib/src/css-variables.d.ts.map +1 -1
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +8 -0
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +12 -2
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/lib/src/embed/bodyless-conversation.js.map +1 -1
- package/lib/src/embed/conversation.d.ts +63 -2
- package/lib/src/embed/conversation.d.ts.map +1 -1
- package/lib/src/embed/conversation.js +11 -3
- package/lib/src/embed/conversation.js.map +1 -1
- package/lib/src/embed/conversation.spec.js +104 -2
- package/lib/src/embed/conversation.spec.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +11 -2
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +21 -7
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +185 -4
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/embed/sage.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts +22 -7
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +75 -46
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +173 -1
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/types.d.ts +152 -44
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +139 -42
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/liveboardService/liveboardService.d.ts +21 -6
- package/lib/src/utils/liveboardService/liveboardService.d.ts.map +1 -1
- package/lib/src/utils/liveboardService/liveboardService.js +21 -6
- package/lib/src/utils/liveboardService/liveboardService.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +576 -58
- package/package.json +5 -4
- package/src/css-variables.ts +396 -1
- package/src/embed/app.spec.ts +17 -2
- package/src/embed/app.ts +8 -0
- package/src/embed/bodyless-conversation.ts +0 -1
- package/src/embed/conversation.spec.ts +131 -5
- package/src/embed/conversation.ts +89 -10
- package/src/embed/liveboard.spec.ts +236 -5
- package/src/embed/liveboard.ts +22 -7
- package/src/embed/sage.ts +1 -1
- package/src/embed/ts-embed.spec.ts +345 -113
- package/src/embed/ts-embed.ts +83 -56
- package/src/types.ts +199 -91
- package/src/utils/liveboardService/liveboardService.ts +21 -6
|
@@ -2135,6 +2135,16 @@ export declare class LiveboardEmbed extends V1Embed {
|
|
|
2135
2135
|
*/
|
|
2136
2136
|
protected getEmbedParams(): string;
|
|
2137
2137
|
protected getEmbedParamsObject(): any;
|
|
2138
|
+
/**
|
|
2139
|
+
* @hidden
|
|
2140
|
+
* Internal state to track the current liveboard id.
|
|
2141
|
+
* This is used to navigate to the correct liveboard when the prerender is visible.
|
|
2142
|
+
*/
|
|
2143
|
+
currentLiveboardState: {
|
|
2144
|
+
liveboardId: string;
|
|
2145
|
+
vizId: string;
|
|
2146
|
+
activeTabId: string;
|
|
2147
|
+
};
|
|
2138
2148
|
protected beforePrerenderVisible(): void;
|
|
2139
2149
|
protected handleRenderForPrerender(): Promise<TsEmbed>;
|
|
2140
2150
|
/**
|
|
@@ -2155,8 +2165,7 @@ export declare class LiveboardEmbed extends V1Embed {
|
|
|
2155
2165
|
* visualization ID and the runtime filters.
|
|
2156
2166
|
*/
|
|
2157
2167
|
render(): Promise<LiveboardEmbed>;
|
|
2158
|
-
|
|
2159
|
-
navigateToLiveboard(liveboardId: string, vizId?: string, activeTabId?: string, onNavigateCalled?: () => void): void;
|
|
2168
|
+
navigateToLiveboard(liveboardId: string, vizId?: string, activeTabId?: string): void;
|
|
2160
2169
|
/**
|
|
2161
2170
|
* Returns the full url of the Liveboard/visualization which can be used to open
|
|
2162
2171
|
* this Liveboard inside the full ThoughtSpot application in a new tab.
|
|
@@ -3284,12 +3293,14 @@ export interface HomePageConfig {
|
|
|
3284
3293
|
* Hide list page columns
|
|
3285
3294
|
* For example: hiddenListColumns = [ListPageColumns.Author]
|
|
3286
3295
|
*
|
|
3287
|
-
* **Note**: This option is available only in full app embedding.
|
|
3296
|
+
* **Note**: This option is available only in full app embedding. To use it, you need to import `ListPageColumns` enum.
|
|
3288
3297
|
*
|
|
3289
3298
|
* Supported embed types: `AppEmbed`
|
|
3290
3299
|
* @version SDK: 1.38.0 | ThoughtSpot: 10.9.0.cl
|
|
3291
3300
|
* @example
|
|
3292
3301
|
* ```js
|
|
3302
|
+
* import { ListPageColumns } from '@thoughtspot/visual-embed-sdk';
|
|
3303
|
+
*
|
|
3293
3304
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
3294
3305
|
* ... //other embed view config
|
|
3295
3306
|
* hiddenListColumns : [ListPageColumns.Favorite,ListPageColumns.Author],
|
|
@@ -3304,11 +3315,14 @@ export interface HomePageConfig {
|
|
|
3304
3315
|
* **Note**: This option does not apply to the classic homepage.
|
|
3305
3316
|
* To access the updated modular homepage, set
|
|
3306
3317
|
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
3318
|
+
* To use it, you need to import `HomepageModule` enum.
|
|
3307
3319
|
*
|
|
3308
3320
|
* Supported embed types: `AppEmbed`
|
|
3309
3321
|
* @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl, 10.1.0.sw
|
|
3310
3322
|
* @example
|
|
3311
3323
|
* ```js
|
|
3324
|
+
* import { HomepageModule } from '@thoughtspot/visual-embed-sdk';
|
|
3325
|
+
*
|
|
3312
3326
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
3313
3327
|
* ... //other embed view config
|
|
3314
3328
|
* hiddenHomepageModules : [HomepageModule.Favorite,HomepageModule.Learning],
|
|
@@ -3323,11 +3337,14 @@ export interface HomePageConfig {
|
|
|
3323
3337
|
* **Note**: This option does not apply to the classic homepage.
|
|
3324
3338
|
* To access the updated modular homepage, set
|
|
3325
3339
|
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
3340
|
+
* To use it, you need to import `HomepageModule` enum.
|
|
3326
3341
|
*
|
|
3327
3342
|
* Supported embed types: `AppEmbed`
|
|
3328
3343
|
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl, 10.1.0.sw
|
|
3329
3344
|
* @example
|
|
3330
3345
|
* ```js
|
|
3346
|
+
* import { HomepageModule } from '@thoughtspot/visual-embed-sdk';
|
|
3347
|
+
*
|
|
3331
3348
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
3332
3349
|
* ... //other embed view config
|
|
3333
3350
|
* reorderedHomepageModules:[HomepageModule.Favorite,HomepageModule.MyLibrary],
|
|
@@ -3343,6 +3360,8 @@ export interface HomePageConfig {
|
|
|
3343
3360
|
* Supported embed types: `AppEmbed`
|
|
3344
3361
|
* @example
|
|
3345
3362
|
* ```js
|
|
3363
|
+
* import { HomeLeftNavItem } from '@thoughtspot/visual-embed-sdk';
|
|
3364
|
+
*
|
|
3346
3365
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
3347
3366
|
* ... //other embed view config
|
|
3348
3367
|
* hiddenHomeLeftNavItems : [HomeLeftNavItem.Home,HomeLeftNavItem.Answers],
|
|
@@ -3352,6 +3371,7 @@ export interface HomePageConfig {
|
|
|
3352
3371
|
* **Note**: This option does not apply to the classic homepage.
|
|
3353
3372
|
* To access the updated modular homepage, set
|
|
3354
3373
|
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
3374
|
+
* To use it, you need to import `HomeLeftNavItem` enum.
|
|
3355
3375
|
* @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl, 10.1.0.sw
|
|
3356
3376
|
*/
|
|
3357
3377
|
hiddenHomeLeftNavItems?: HomeLeftNavItem[];
|
|
@@ -4560,7 +4580,7 @@ export declare enum EmbedEvent {
|
|
|
4560
4580
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
4561
4581
|
* @example
|
|
4562
4582
|
*```js
|
|
4563
|
-
* liveboardEmbed.on(EmbedEvent.
|
|
4583
|
+
* liveboardEmbed.on(EmbedEvent.LiveboardInfo, payload => {
|
|
4564
4584
|
* console.log('Liveboard details', payload);
|
|
4565
4585
|
* })
|
|
4566
4586
|
*```
|
|
@@ -4935,58 +4955,58 @@ export declare enum EmbedEvent {
|
|
|
4935
4955
|
*/
|
|
4936
4956
|
RequestVisibleEmbedCoordinates = "requestVisibleEmbedCoordinates",
|
|
4937
4957
|
/**
|
|
4938
|
-
* Emitted when
|
|
4958
|
+
* Emitted when Spotter response is text data
|
|
4939
4959
|
* @example
|
|
4940
4960
|
* ```js
|
|
4941
4961
|
* spotterEmbed.on(EmbedEvent.SpotterData, (payload) => {
|
|
4942
4962
|
* console.log('payload', payload);
|
|
4943
4963
|
* })
|
|
4944
4964
|
*```
|
|
4945
|
-
* @version SDK: 1.
|
|
4965
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
4946
4966
|
*/
|
|
4947
4967
|
SpotterData = "SpotterData",
|
|
4948
4968
|
/**
|
|
4949
|
-
* Emitted when user opens up the worksheet preview modal in
|
|
4969
|
+
* Emitted when user opens up the worksheet preview modal in Spotter embed.
|
|
4950
4970
|
* @example
|
|
4951
4971
|
* ```js
|
|
4952
4972
|
* spotterEmbed.on(EmbedEvent.PreviewSpotterData, (payload) => {
|
|
4953
4973
|
* console.log('payload', payload);
|
|
4954
4974
|
* })
|
|
4955
4975
|
*```
|
|
4956
|
-
* @version SDK: 1.
|
|
4976
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
4957
4977
|
*/
|
|
4958
4978
|
PreviewSpotterData = "PreviewSpotterData",
|
|
4959
4979
|
/**
|
|
4960
|
-
* Emitted when the
|
|
4980
|
+
* Emitted when the Spotter query is triggered in Spotter embed.
|
|
4961
4981
|
* @example
|
|
4962
4982
|
* ```js
|
|
4963
4983
|
* spotterEmbed.on(EmbedEvent.SpotterQueryTriggered, (payload) => {
|
|
4964
4984
|
* console.log('payload', payload);
|
|
4965
4985
|
* })
|
|
4966
4986
|
*```
|
|
4967
|
-
* @version SDK: 1.
|
|
4987
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
4968
4988
|
*/
|
|
4969
4989
|
SpotterQueryTriggered = "SpotterQueryTriggered",
|
|
4970
4990
|
/**
|
|
4971
|
-
* Emitted when the last
|
|
4991
|
+
* Emitted when the last Spotter query is edited in Spotter embed.
|
|
4972
4992
|
* @example
|
|
4973
4993
|
* ```js
|
|
4974
4994
|
* spotterEmbed.on(EmbedEvent.LastPromptEdited, (payload) => {
|
|
4975
4995
|
* console.log('payload', payload);
|
|
4976
4996
|
* })
|
|
4977
4997
|
*```
|
|
4978
|
-
* @version SDK: 1.
|
|
4998
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
4979
4999
|
*/
|
|
4980
5000
|
LastPromptEdited = "LastPromptEdited",
|
|
4981
5001
|
/**
|
|
4982
|
-
* Emitted when the last
|
|
5002
|
+
* Emitted when the last Spotter query is deleted in Spotter embed.
|
|
4983
5003
|
* @example
|
|
4984
5004
|
* ```js
|
|
4985
5005
|
* spotterEmbed.on(EmbedEvent.LastPromptDeleted, (payload) => {
|
|
4986
5006
|
* console.log('payload', payload);
|
|
4987
5007
|
* })
|
|
4988
5008
|
*```
|
|
4989
|
-
* @version SDK: 1.
|
|
5009
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
4990
5010
|
*/
|
|
4991
5011
|
LastPromptDeleted = "LastPromptDeleted",
|
|
4992
5012
|
/**
|
|
@@ -4997,7 +5017,7 @@ export declare enum EmbedEvent {
|
|
|
4997
5017
|
* console.log('payload', payload);
|
|
4998
5018
|
* })
|
|
4999
5019
|
*```
|
|
5000
|
-
* @version SDK: 1.
|
|
5020
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
5001
5021
|
*/
|
|
5002
5022
|
ResetSpotterConversation = "ResetSpotterConversation",
|
|
5003
5023
|
/**
|
|
@@ -5010,7 +5030,19 @@ export declare enum EmbedEvent {
|
|
|
5010
5030
|
*```
|
|
5011
5031
|
* @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
|
|
5012
5032
|
*/
|
|
5013
|
-
SpotterInit = "
|
|
5033
|
+
SpotterInit = "spotterInit",
|
|
5034
|
+
/**
|
|
5035
|
+
* @hidden
|
|
5036
|
+
* Triggers when the embed listener is ready to receive events.
|
|
5037
|
+
* This is used to trigger events after the embed container is loaded.
|
|
5038
|
+
* @example
|
|
5039
|
+
* ```js
|
|
5040
|
+
* liveboardEmbed.on(EmbedEvent.EmbedListenerReady, () => {
|
|
5041
|
+
* console.log('EmbedListenerReady');
|
|
5042
|
+
* })
|
|
5043
|
+
* ```
|
|
5044
|
+
*/
|
|
5045
|
+
EmbedListenerReady = "EmbedListenerReady"
|
|
5014
5046
|
}
|
|
5015
5047
|
/**
|
|
5016
5048
|
* Event types that can be triggered by the host application
|
|
@@ -5098,6 +5130,7 @@ export declare enum HostEvent {
|
|
|
5098
5130
|
* done automatically on the most popular column.
|
|
5099
5131
|
* @param - vizId [TS >= 9.8.0] - Optional. The GUID of the visualization to drill
|
|
5100
5132
|
* in case of a Liveboard.
|
|
5133
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5101
5134
|
* @example
|
|
5102
5135
|
* ```js
|
|
5103
5136
|
* searchEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
|
|
@@ -5417,12 +5450,21 @@ export declare enum HostEvent {
|
|
|
5417
5450
|
* Trigger the **Download PDF** action on an embedded Liveboard,
|
|
5418
5451
|
* visualization or Answer.
|
|
5419
5452
|
*
|
|
5453
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5454
|
+
*
|
|
5420
5455
|
* **NOTE**: The **Download** > **PDF** action is available on
|
|
5421
5456
|
* visualizations and Answers if the data is in tabular format.
|
|
5422
5457
|
* @example
|
|
5423
5458
|
* ```js
|
|
5424
5459
|
* liveboardEmbed.trigger(HostEvent.DownloadAsPdf)
|
|
5425
5460
|
* ```
|
|
5461
|
+
* @example
|
|
5462
|
+
* ```js
|
|
5463
|
+
* spotterEmbed.trigger(HostEvent.DownloadAsPdf, {
|
|
5464
|
+
* vizId:'730496d6-6903-4601-937e-2c691821af3c'
|
|
5465
|
+
* });
|
|
5466
|
+
* ```
|
|
5467
|
+
*
|
|
5426
5468
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
5427
5469
|
*/
|
|
5428
5470
|
DownloadAsPdf = "downloadAsPdf",
|
|
@@ -5524,7 +5566,8 @@ export declare enum HostEvent {
|
|
|
5524
5566
|
* This event is not supported in visualization embed and search embed.
|
|
5525
5567
|
* @param - object - To trigger the action for a specific visualization
|
|
5526
5568
|
* in Liveboard embed, pass in `vizId` as a key.
|
|
5527
|
-
*
|
|
5569
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5570
|
+
*
|
|
5528
5571
|
* @example
|
|
5529
5572
|
* ```js
|
|
5530
5573
|
* liveboardEmbed.trigger(HostEvent.Edit)
|
|
@@ -5539,6 +5582,12 @@ export declare enum HostEvent {
|
|
|
5539
5582
|
* vizId:'730496d6-6903-4601-937e-2c691821af3c'
|
|
5540
5583
|
* });
|
|
5541
5584
|
* ```
|
|
5585
|
+
* @example
|
|
5586
|
+
* ```js
|
|
5587
|
+
* const editResponse = await spotterEmbed.trigger(HostEvent.Edit, {
|
|
5588
|
+
* vizId:'730496d6-6903-4601-937e-2c691821af3c'
|
|
5589
|
+
* });
|
|
5590
|
+
* ```
|
|
5542
5591
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
5543
5592
|
*/
|
|
5544
5593
|
Edit = "edit",
|
|
@@ -5659,6 +5708,7 @@ export declare enum HostEvent {
|
|
|
5659
5708
|
/**
|
|
5660
5709
|
* Trigger the **Download** action on charts in
|
|
5661
5710
|
* the embedded view.
|
|
5711
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5662
5712
|
* @example
|
|
5663
5713
|
* ```js
|
|
5664
5714
|
* liveboardEmbed.trigger(HostEvent.Download, {vizId:
|
|
@@ -5667,6 +5717,11 @@ export declare enum HostEvent {
|
|
|
5667
5717
|
* ```js
|
|
5668
5718
|
* embed.trigger(HostEvent.Download)
|
|
5669
5719
|
* ```
|
|
5720
|
+
* ```js
|
|
5721
|
+
* spotterEmbed.trigger(HostEvent.Download, {
|
|
5722
|
+
* vizId:'730496d6-6903-4601-937e-2c691821af3c'
|
|
5723
|
+
* });
|
|
5724
|
+
* ```
|
|
5670
5725
|
* @deprecated from SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl ,9.4.1.sw
|
|
5671
5726
|
* Use {@link DownloadAsPng}
|
|
5672
5727
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
@@ -5695,6 +5750,7 @@ export declare enum HostEvent {
|
|
|
5695
5750
|
/**
|
|
5696
5751
|
* Trigger the **Download** > **CSV** action on tables in
|
|
5697
5752
|
* the embedded view.
|
|
5753
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5698
5754
|
* @example
|
|
5699
5755
|
* ```js
|
|
5700
5756
|
* liveboardEmbed.trigger(HostEvent.DownloadAsCsv, {vizId:
|
|
@@ -5717,6 +5773,7 @@ export declare enum HostEvent {
|
|
|
5717
5773
|
/**
|
|
5718
5774
|
* Trigger the **Download** > **XLSX** action on tables
|
|
5719
5775
|
* in the embedded view.
|
|
5776
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5720
5777
|
* @example
|
|
5721
5778
|
* ```js
|
|
5722
5779
|
* liveboardEmbed.trigger(HostEvent.DownloadAsXlsx, {vizId:
|
|
@@ -5752,7 +5809,7 @@ export declare enum HostEvent {
|
|
|
5752
5809
|
/**
|
|
5753
5810
|
* Trigger the **Save** action on a Liveboard or Answer.
|
|
5754
5811
|
* Saves the changes.
|
|
5755
|
-
* @param - `vizId` is required in Spotter
|
|
5812
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5756
5813
|
* @example
|
|
5757
5814
|
* ```js
|
|
5758
5815
|
* liveboardEmbed.trigger(HostEvent.Save)
|
|
@@ -6062,6 +6119,7 @@ export declare enum HostEvent {
|
|
|
6062
6119
|
UpdateParameters = "UpdateParameters",
|
|
6063
6120
|
/**
|
|
6064
6121
|
* Triggers GetParameters to fetch the runtime Parameters.
|
|
6122
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
6065
6123
|
* ```js
|
|
6066
6124
|
* liveboardEmbed.trigger(HostEvent.GetParameters).then((parameter) => {
|
|
6067
6125
|
* console.log('parameters', parameter);
|
|
@@ -6105,7 +6163,7 @@ export declare enum HostEvent {
|
|
|
6105
6163
|
* @param - optional attributes to set Answer properties.
|
|
6106
6164
|
* `name` - Name string for the Answer.
|
|
6107
6165
|
* `description` - Description text for the Answer.
|
|
6108
|
-
*
|
|
6166
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
6109
6167
|
* @example
|
|
6110
6168
|
* ```js
|
|
6111
6169
|
* const saveAnswerResponse = await searchEmbed.trigger(HostEvent.SaveAnswer, {
|
|
@@ -6113,6 +6171,14 @@ export declare enum HostEvent {
|
|
|
6113
6171
|
* description: "Total sales by states in MidWest"
|
|
6114
6172
|
* });
|
|
6115
6173
|
* ```
|
|
6174
|
+
* @example
|
|
6175
|
+
* ```js
|
|
6176
|
+
* const saveAnswerResponse = await spotterEmbed.trigger(HostEvent.SaveAnswer, {
|
|
6177
|
+
* vizId: '730496d6-6903-4601-937e-2c691821af3c',
|
|
6178
|
+
* name: "Sales by states",
|
|
6179
|
+
* description: "Total sales by states in MidWest"
|
|
6180
|
+
* });
|
|
6181
|
+
* ```
|
|
6116
6182
|
* @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
|
|
6117
6183
|
*/
|
|
6118
6184
|
SaveAnswer = "saveAnswer",
|
|
@@ -6144,7 +6210,7 @@ export declare enum HostEvent {
|
|
|
6144
6210
|
/**
|
|
6145
6211
|
* Triggers a search operation with the search tokens specified in
|
|
6146
6212
|
* the search query string in spotter embed.
|
|
6147
|
-
* @param - `
|
|
6213
|
+
* @param - `query`: Text string in Natural Language format
|
|
6148
6214
|
* @param - `executeSearch`: Boolean to execute search and update search query
|
|
6149
6215
|
* @example
|
|
6150
6216
|
* ```js
|
|
@@ -6153,6 +6219,7 @@ export declare enum HostEvent {
|
|
|
6153
6219
|
* executeSearch: true,
|
|
6154
6220
|
* })
|
|
6155
6221
|
* ```
|
|
6222
|
+
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
6156
6223
|
*/
|
|
6157
6224
|
SpotterSearch = "SpotterSearch",
|
|
6158
6225
|
/**
|
|
@@ -6162,6 +6229,7 @@ export declare enum HostEvent {
|
|
|
6162
6229
|
* ```js
|
|
6163
6230
|
* spotterEmbed.trigger(HostEvent.EditLastPrompt, "revenue per year");
|
|
6164
6231
|
* ```
|
|
6232
|
+
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
6165
6233
|
*/
|
|
6166
6234
|
EditLastPrompt = "EditLastPrompt",
|
|
6167
6235
|
/**
|
|
@@ -6170,6 +6238,7 @@ export declare enum HostEvent {
|
|
|
6170
6238
|
* ```js
|
|
6171
6239
|
* spotterEmbed.trigger(HostEvent.PreviewSpotterData);
|
|
6172
6240
|
* ```
|
|
6241
|
+
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
6173
6242
|
*/
|
|
6174
6243
|
PreviewSpotterData = "PreviewSpotterData",
|
|
6175
6244
|
/**
|
|
@@ -6178,6 +6247,7 @@ export declare enum HostEvent {
|
|
|
6178
6247
|
* ```js
|
|
6179
6248
|
* spotterEmbed.trigger(HostEvent.ResetSpotterConversation);
|
|
6180
6249
|
* ```
|
|
6250
|
+
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
6181
6251
|
*/
|
|
6182
6252
|
ResetSpotterConversation = "ResetSpotterConversation",
|
|
6183
6253
|
/**
|
|
@@ -6186,17 +6256,19 @@ export declare enum HostEvent {
|
|
|
6186
6256
|
* ```js
|
|
6187
6257
|
* spotterEmbed.trigger(HostEvent.DeleteLastPrompt);
|
|
6188
6258
|
* ```
|
|
6259
|
+
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
6189
6260
|
*/
|
|
6190
6261
|
DeleteLastPrompt = "DeleteLastPrompt",
|
|
6191
6262
|
/**
|
|
6192
6263
|
* Toggle the visualization to chart or table view.
|
|
6193
|
-
* @param - `vizId `
|
|
6264
|
+
* @param - `vizId ` refers to the answer id in spotter Embed, it is required in spotter Embed.
|
|
6194
6265
|
* @example
|
|
6195
6266
|
* ```js
|
|
6196
6267
|
* spotterEmbed.trigger(HostEvent.AnswerChartSwitcher, {
|
|
6197
|
-
* vizId:
|
|
6268
|
+
* vizId:'b535c760-8bbe-4e6f-bb26-af56b4129a1e'
|
|
6198
6269
|
* });
|
|
6199
6270
|
*```
|
|
6271
|
+
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
6200
6272
|
*/
|
|
6201
6273
|
AnswerChartSwitcher = "answerChartSwitcher",
|
|
6202
6274
|
/**
|
|
@@ -6223,15 +6295,16 @@ export declare enum HostEvent {
|
|
|
6223
6295
|
*/
|
|
6224
6296
|
VisibleEmbedCoordinates = "visibleEmbedCoordinates",
|
|
6225
6297
|
/**
|
|
6226
|
-
* Trigger the *Ask
|
|
6298
|
+
* Trigger the *Ask Spotter* action for visualizations
|
|
6299
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
6227
6300
|
* @example
|
|
6228
6301
|
* ```js
|
|
6229
|
-
*
|
|
6230
|
-
* {
|
|
6302
|
+
* spotterEmbed.trigger(HostEvent.AskSpotter,
|
|
6303
|
+
* {vizId:'730496d6-6903-4601-937e-2c691821af3c'})
|
|
6231
6304
|
* ```
|
|
6232
6305
|
* @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
|
|
6233
6306
|
*/
|
|
6234
|
-
AskSpotter = "
|
|
6307
|
+
AskSpotter = "AskSpotter",
|
|
6235
6308
|
/**
|
|
6236
6309
|
* @hidden
|
|
6237
6310
|
* Triggers the update of the embed params.
|
|
@@ -6529,27 +6602,27 @@ export declare enum Action {
|
|
|
6529
6602
|
*/
|
|
6530
6603
|
ConfigureFilter = "configureFilter",
|
|
6531
6604
|
/**
|
|
6532
|
-
|
|
6533
|
-
|
|
6534
|
-
|
|
6535
|
-
|
|
6536
|
-
|
|
6537
|
-
|
|
6538
|
-
|
|
6539
|
-
|
|
6540
|
-
|
|
6605
|
+
* The **Collapse data sources** icon on the Search page.
|
|
6606
|
+
* Collapses the panel showing data sources.
|
|
6607
|
+
*
|
|
6608
|
+
* @example
|
|
6609
|
+
* ```js
|
|
6610
|
+
* disabledActions: [Action.CollapseDataPanel]
|
|
6611
|
+
* ```
|
|
6612
|
+
* @version: SDK: 1.1.0 | ThoughtSpot Cloud: ts7.may.cl, 8.4.1.sw
|
|
6613
|
+
*/
|
|
6541
6614
|
CollapseDataSources = "collapseDataSources",
|
|
6542
6615
|
/**
|
|
6543
|
-
|
|
6544
|
-
|
|
6545
|
-
|
|
6546
|
-
|
|
6547
|
-
|
|
6548
|
-
|
|
6549
|
-
|
|
6550
|
-
|
|
6551
|
-
|
|
6552
|
-
|
|
6616
|
+
* The **Collapse data panel** icon on the Search page.
|
|
6617
|
+
* Collapses the data panel view.
|
|
6618
|
+
*
|
|
6619
|
+
* @version: SDK: 1.34.0 | ThoughtSpot Cloud: 10.3.0.cl
|
|
6620
|
+
*
|
|
6621
|
+
* @example
|
|
6622
|
+
* ```js
|
|
6623
|
+
* disabledActions: [Action.CollapseDataPanel]
|
|
6624
|
+
* ```
|
|
6625
|
+
*/
|
|
6553
6626
|
CollapseDataPanel = "collapseDataPanel",
|
|
6554
6627
|
/**
|
|
6555
6628
|
* The **Choose sources** button on Search page.
|
|
@@ -7245,6 +7318,17 @@ export declare enum Action {
|
|
|
7245
7318
|
* @version SDK: 1.25.0 | ThoughtSpot Cloud: 9.6.0.cl
|
|
7246
7319
|
*/
|
|
7247
7320
|
EnableContextualChangeAnalysis = "enableContextualChangeAnalysis",
|
|
7321
|
+
/**
|
|
7322
|
+
* Action ID to hide or disable Iterative Change Analysis option
|
|
7323
|
+
* on contextual change analysis Inisght charts context menu
|
|
7324
|
+
*
|
|
7325
|
+
* @example
|
|
7326
|
+
* ```js
|
|
7327
|
+
* disabledActions: [Action.EnableIterativeChangeAnalysis]
|
|
7328
|
+
* ```
|
|
7329
|
+
* @version SDK: 1.41.0 | ThoughtSpot Cloud: 9.12.0.cl
|
|
7330
|
+
*/
|
|
7331
|
+
EnableIterativeChangeAnalysis = "enableIterativeChangeAnalysis",
|
|
7248
7332
|
/**
|
|
7249
7333
|
* Action ID to hide or disable Natural Language Search query.
|
|
7250
7334
|
*
|
|
@@ -7613,7 +7697,40 @@ export declare enum Action {
|
|
|
7613
7697
|
* ```
|
|
7614
7698
|
* @version SDK: 1.39.0 | ThoughtSpot Cloud: 10.10.0.cl
|
|
7615
7699
|
*/
|
|
7616
|
-
InConversationTraining = "InConversationTraining"
|
|
7700
|
+
InConversationTraining = "InConversationTraining",
|
|
7701
|
+
/**
|
|
7702
|
+
* Action ID to hide the warnings banner in
|
|
7703
|
+
* Spotter results. It's an EA feature and
|
|
7704
|
+
* handled by LD.
|
|
7705
|
+
* @example
|
|
7706
|
+
* ```js
|
|
7707
|
+
* hiddenAction: [Action.SpotterWarningsBanner]
|
|
7708
|
+
* ```
|
|
7709
|
+
* @version SDK: 1.41.0 | ThoughtSpot Cloud: 10.13.0.cl
|
|
7710
|
+
*/
|
|
7711
|
+
SpotterWarningsBanner = "SpotterWarningsBanner",
|
|
7712
|
+
/**
|
|
7713
|
+
* Action ID to hide the warnings border on the knowledge
|
|
7714
|
+
* card in Spotter results. It's an EA feature and
|
|
7715
|
+
* handled by LD.
|
|
7716
|
+
* @example
|
|
7717
|
+
* ```js
|
|
7718
|
+
* hiddenAction: [Action.SpotterWarningsOnTokens]
|
|
7719
|
+
* ```
|
|
7720
|
+
* @version SDK: 1.41.0 | ThoughtSpot Cloud: 10.13.0.cl
|
|
7721
|
+
*/
|
|
7722
|
+
SpotterWarningsOnTokens = "SpotterWarningsOnTokens",
|
|
7723
|
+
/**
|
|
7724
|
+
* Action ID to disable the click event handler on knowledge
|
|
7725
|
+
* card in Spotter results. It's an EA feature and
|
|
7726
|
+
* handled by LD.
|
|
7727
|
+
* @example
|
|
7728
|
+
* ```js
|
|
7729
|
+
* hiddenAction: [Action.SpotterTokenQuickEdit]
|
|
7730
|
+
* ```
|
|
7731
|
+
* @version SDK: 1.41.0 | ThoughtSpot Cloud: 10.13.0.cl
|
|
7732
|
+
*/
|
|
7733
|
+
SpotterTokenQuickEdit = "SpotterTokenQuickEdit"
|
|
7617
7734
|
}
|
|
7618
7735
|
export interface AnswerServiceType {
|
|
7619
7736
|
getAnswer?: (offset: number, batchSize: number) => any;
|
|
@@ -7807,7 +7924,8 @@ export interface SearchOptions {
|
|
|
7807
7924
|
*/
|
|
7808
7925
|
export interface SpotterEmbedViewConfig extends Omit<BaseViewConfig, 'primaryAction'> {
|
|
7809
7926
|
/**
|
|
7810
|
-
* The ID of the data source object. For example, Model, View, or Table. Spotter uses
|
|
7927
|
+
* The ID of the data source object. For example, Model, View, or Table. Spotter uses
|
|
7928
|
+
* this object to query data and generate Answers.
|
|
7811
7929
|
*/
|
|
7812
7930
|
worksheetId: string;
|
|
7813
7931
|
/**
|
|
@@ -7890,6 +8008,66 @@ export interface SpotterEmbedViewConfig extends Omit<BaseViewConfig, 'primaryAct
|
|
|
7890
8008
|
* @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
|
|
7891
8009
|
*/
|
|
7892
8010
|
hideSampleQuestions?: boolean;
|
|
8011
|
+
/**
|
|
8012
|
+
* The list of runtime filters to apply to a search Answer,
|
|
8013
|
+
* visualization, or Liveboard.
|
|
8014
|
+
*
|
|
8015
|
+
* Supported embed types: `SpotterEmbed`
|
|
8016
|
+
* @example
|
|
8017
|
+
* ```js
|
|
8018
|
+
* const embed = new SpotterEmbed('#tsEmbed', {
|
|
8019
|
+
* // other embed view config
|
|
8020
|
+
* runtimeFilters: [
|
|
8021
|
+
* {
|
|
8022
|
+
* columnName: 'color',
|
|
8023
|
+
* operator: RuntimeFilterOp.EQ,
|
|
8024
|
+
* values: ['red'],
|
|
8025
|
+
* },
|
|
8026
|
+
* ],
|
|
8027
|
+
* })
|
|
8028
|
+
* ```
|
|
8029
|
+
* @version SDK: 1.41.0 | ThoughtSpot: 10.13.0.cl
|
|
8030
|
+
*/
|
|
8031
|
+
runtimeFilters?: RuntimeFilter[];
|
|
8032
|
+
/**
|
|
8033
|
+
* Flag to control whether runtime filters should be included in the URL.
|
|
8034
|
+
* If true, filters will be passed via app initialization payload instead.
|
|
8035
|
+
* If false/undefined, filters will be added to URL (default behavior).
|
|
8036
|
+
*
|
|
8037
|
+
* Supported embed types: `SpotterEmbed`
|
|
8038
|
+
* @default false
|
|
8039
|
+
* @version SDK: 1.41.0 | ThoughtSpot: 10.13.0.cl
|
|
8040
|
+
*/
|
|
8041
|
+
excludeRuntimeFiltersfromURL?: boolean;
|
|
8042
|
+
/**
|
|
8043
|
+
* The list of runtime parameters to apply to the conversation.
|
|
8044
|
+
*
|
|
8045
|
+
* Supported embed types: `SpotterEmbed`
|
|
8046
|
+
* @example
|
|
8047
|
+
* ```js
|
|
8048
|
+
* const embed = new SpotterEmbed('#tsEmbed', {
|
|
8049
|
+
* // other embed view config
|
|
8050
|
+
* runtimeParameters: [
|
|
8051
|
+
* {
|
|
8052
|
+
* name: 'Integer Param',
|
|
8053
|
+
* value: 10,
|
|
8054
|
+
* },
|
|
8055
|
+
* ],
|
|
8056
|
+
* })
|
|
8057
|
+
* ```
|
|
8058
|
+
* @version SDK: 1.41.0 | ThoughtSpot: 10.13.0.cl
|
|
8059
|
+
*/
|
|
8060
|
+
runtimeParameters?: RuntimeParameter[];
|
|
8061
|
+
/**
|
|
8062
|
+
* Flag to control whether runtime parameters should be included in the URL.
|
|
8063
|
+
* If true, parameters will be passed via app initialization payload instead.
|
|
8064
|
+
* If false/undefined, parameters will be added to URL (default behavior).
|
|
8065
|
+
*
|
|
8066
|
+
* Supported embed types: `SpotterEmbed`
|
|
8067
|
+
* @default false
|
|
8068
|
+
* @version SDK: 1.41.0 | ThoughtSpot: 10.13.0.cl
|
|
8069
|
+
*/
|
|
8070
|
+
excludeRuntimeParametersfromURL?: boolean;
|
|
7893
8071
|
}
|
|
7894
8072
|
/**
|
|
7895
8073
|
* The configuration for the embedded spotterEmbed options.
|
|
@@ -8578,6 +8756,322 @@ export interface CustomCssVariables {
|
|
|
8578
8756
|
* Background color of checkbox.
|
|
8579
8757
|
*/
|
|
8580
8758
|
'--ts-var-checkbox-background-color'?: string;
|
|
8759
|
+
/**
|
|
8760
|
+
* Height of the tiles in the Liveboard.
|
|
8761
|
+
*/
|
|
8762
|
+
'--ts-var-viz-tile-height'?: string;
|
|
8763
|
+
/**
|
|
8764
|
+
* Background color of the layout in the Liveboard.
|
|
8765
|
+
*/
|
|
8766
|
+
'--ts-var-liveboard-layout-background'?: string;
|
|
8767
|
+
/**
|
|
8768
|
+
* Font color of the title of the layout in the Liveboard.
|
|
8769
|
+
*/
|
|
8770
|
+
'--ts-var-liveboard-layout-title-color'?: string;
|
|
8771
|
+
/**
|
|
8772
|
+
* Font size of the title of the layout in the Liveboard.
|
|
8773
|
+
*/
|
|
8774
|
+
'--ts-var-liveboard-layout-title-fontsize'?: string;
|
|
8775
|
+
/**
|
|
8776
|
+
* Background color of the header in the Liveboard.
|
|
8777
|
+
*/
|
|
8778
|
+
'--ts-var-liveboard-header-background'?: string;
|
|
8779
|
+
/**
|
|
8780
|
+
* Font size of the header in the Liveboard.
|
|
8781
|
+
*/
|
|
8782
|
+
'--ts-var-liveboard-header-fontsize'?: string;
|
|
8783
|
+
/**
|
|
8784
|
+
* Font color of the header in the Liveboard.
|
|
8785
|
+
*/
|
|
8786
|
+
'--ts-var-liveboard-header-font-color'?: string;
|
|
8787
|
+
/**
|
|
8788
|
+
* Border color of the tiles in the Liveboard.
|
|
8789
|
+
*/
|
|
8790
|
+
'--ts-var-liveboard-tile-border-color'?: string;
|
|
8791
|
+
/**
|
|
8792
|
+
* Background color of the tiles in the Liveboard.
|
|
8793
|
+
*/
|
|
8794
|
+
'--ts-var-liveboard-tile-background'?: string;
|
|
8795
|
+
/**
|
|
8796
|
+
* Border radius of the tiles in the Liveboard.
|
|
8797
|
+
*/
|
|
8798
|
+
'--ts-var-liveboard-tile-border-radius'?: string;
|
|
8799
|
+
/**
|
|
8800
|
+
* Padding of the tiles in the Liveboard.
|
|
8801
|
+
*/
|
|
8802
|
+
'--ts-var-liveboard-tile-padding'?: string;
|
|
8803
|
+
/**
|
|
8804
|
+
* Background color of the table header in the Liveboard.
|
|
8805
|
+
*/
|
|
8806
|
+
'--ts-var-liveboard-tile-table-header-background'?: string;
|
|
8807
|
+
/**
|
|
8808
|
+
* Padding of the groups in the Liveboard.
|
|
8809
|
+
*/
|
|
8810
|
+
'--ts-var-liveboard-group-padding'?: string;
|
|
8811
|
+
/**
|
|
8812
|
+
* Padding of the title of the groups in the Liveboard.
|
|
8813
|
+
*/
|
|
8814
|
+
'--ts-var-liveboard-group-title-padding'?: string;
|
|
8815
|
+
/**
|
|
8816
|
+
* Font size of the title of the groups in the Liveboard.
|
|
8817
|
+
*/
|
|
8818
|
+
'--ts-var-liveboard-group-title-font-size'?: string;
|
|
8819
|
+
/**
|
|
8820
|
+
* Font weight of the title of the groups in the Liveboard.
|
|
8821
|
+
*/
|
|
8822
|
+
'--ts-var-liveboard-group-title-font-weight'?: string;
|
|
8823
|
+
/**
|
|
8824
|
+
* Font size of the title of the tiles inside the groups in the Liveboard.
|
|
8825
|
+
*/
|
|
8826
|
+
'--ts-var-liveboard-group-tile-title-font-size'?: string;
|
|
8827
|
+
/**
|
|
8828
|
+
* Font weight of the title of the tiles inside the groups in the Liveboard.
|
|
8829
|
+
*/
|
|
8830
|
+
'--ts-var-liveboard-group-tile-title-font-weight'?: string;
|
|
8831
|
+
/**
|
|
8832
|
+
* Font size of the description of the groups in the Liveboard.
|
|
8833
|
+
*/
|
|
8834
|
+
'--ts-var-liveboard-group-description-font-size'?: string;
|
|
8835
|
+
/**
|
|
8836
|
+
* Font weight of the description of the groups in the Liveboard.
|
|
8837
|
+
*/
|
|
8838
|
+
'--ts-var-liveboard-group-description-font-weight'?: string;
|
|
8839
|
+
/**
|
|
8840
|
+
* Border of the tiles in the Liveboard.
|
|
8841
|
+
*/
|
|
8842
|
+
'--ts-var-liveboard-group-tile-border'?: string;
|
|
8843
|
+
/**
|
|
8844
|
+
* Padding of the tiles in the Liveboard.
|
|
8845
|
+
*/
|
|
8846
|
+
'--ts-var-liveboard-group-tile-padding'?: string;
|
|
8847
|
+
/**
|
|
8848
|
+
* Padding of the answer viz in the Liveboard.
|
|
8849
|
+
*/
|
|
8850
|
+
'--ts-var-liveboard-answer-viz-padding'?: string;
|
|
8851
|
+
/**
|
|
8852
|
+
* Background color of the groups in the Liveboard.
|
|
8853
|
+
*/
|
|
8854
|
+
'--ts-var-liveboard-group-background'?: string;
|
|
8855
|
+
/**
|
|
8856
|
+
* Border color of the groups in the Liveboard.
|
|
8857
|
+
*/
|
|
8858
|
+
'--ts-var-liveboard-group-border-color'?: string;
|
|
8859
|
+
/**
|
|
8860
|
+
* Font color of the heading of the note title in the Liveboard.
|
|
8861
|
+
*/
|
|
8862
|
+
'--ts-var-liveboard-notetitle-heading-font-color'?: string;
|
|
8863
|
+
/**
|
|
8864
|
+
* Font color of the body of the note title in the Liveboard.
|
|
8865
|
+
*/
|
|
8866
|
+
'--ts-var-liveboard-notetitle-body-font-color'?: string;
|
|
8867
|
+
/**
|
|
8868
|
+
* Font color of the title of the groups in the Liveboard.
|
|
8869
|
+
*/
|
|
8870
|
+
'--ts-var-liveboard-group-title-font-color'?: string;
|
|
8871
|
+
/**
|
|
8872
|
+
* Font color of the description of the groups in the Liveboard.
|
|
8873
|
+
*/
|
|
8874
|
+
'--ts-var-liveboard-group-description-font-color'?: string;
|
|
8875
|
+
/**
|
|
8876
|
+
* Font color of the title of the tiles inside the groups in the Liveboard.
|
|
8877
|
+
*/
|
|
8878
|
+
'--ts-var-liveboard-group-tile-title-font-color'?: string;
|
|
8879
|
+
/**
|
|
8880
|
+
* Background color of the tiles inside the groups in the Liveboard.
|
|
8881
|
+
*/
|
|
8882
|
+
'--ts-var-liveboard-group-tile-background'?: string;
|
|
8883
|
+
/**
|
|
8884
|
+
* Background color of the chips in the Liveboard.
|
|
8885
|
+
*/
|
|
8886
|
+
'--ts-var-liveboard-chip-background'?: string;
|
|
8887
|
+
/**
|
|
8888
|
+
* Font color of the chips in the Liveboard.
|
|
8889
|
+
*/
|
|
8890
|
+
'--ts-var-liveboard-chip-color'?: string;
|
|
8891
|
+
/**
|
|
8892
|
+
* Background color of the chips in the Liveboard on hover.
|
|
8893
|
+
*/
|
|
8894
|
+
'--ts-var-liveboard-chip--hover-background'?: string;
|
|
8895
|
+
/**
|
|
8896
|
+
* Font color of the chips in the Liveboard on hover.
|
|
8897
|
+
*/
|
|
8898
|
+
'--ts-var-liveboard-chip--hover-color'?: string;
|
|
8899
|
+
/**
|
|
8900
|
+
* Background color of the chips in the Liveboard on active.
|
|
8901
|
+
*/
|
|
8902
|
+
'--ts-var-liveboard-chip--active-background'?: string;
|
|
8903
|
+
/**
|
|
8904
|
+
* Font color of the chips in the Liveboard on active.
|
|
8905
|
+
*/
|
|
8906
|
+
'--ts-var-liveboard-chip--active-color'?: string;
|
|
8907
|
+
/**
|
|
8908
|
+
* Width of the side panel in the Liveboard.
|
|
8909
|
+
*/
|
|
8910
|
+
'--ts-var-side-panel-width'?: string;
|
|
8911
|
+
/**
|
|
8912
|
+
* Background color of the edit bar in the Liveboard.
|
|
8913
|
+
*/
|
|
8914
|
+
'--ts-var-liveboard-edit-bar-background'?: string;
|
|
8915
|
+
/**
|
|
8916
|
+
* Breakpoint for the dual column layout in the Liveboard.
|
|
8917
|
+
*/
|
|
8918
|
+
'--ts-var-liveboard-dual-column-breakpoint'?: string;
|
|
8919
|
+
/**
|
|
8920
|
+
* Breakpoint for the single column layout in the Liveboard.
|
|
8921
|
+
*/
|
|
8922
|
+
'--ts-var-liveboard-single-column-breakpoint'?: string;
|
|
8923
|
+
/**
|
|
8924
|
+
* Background color of the cross filter layout in the Liveboard.
|
|
8925
|
+
*/
|
|
8926
|
+
'--ts-var-liveboard-cross-filter-layout-background'?: string;
|
|
8927
|
+
/**
|
|
8928
|
+
* Border color of the active tab in the Liveboard.
|
|
8929
|
+
*/
|
|
8930
|
+
'--ts-var-liveboard-tab-active-border-color'?: string;
|
|
8931
|
+
/**
|
|
8932
|
+
* Font color of the hover tab in the Liveboard.
|
|
8933
|
+
*/
|
|
8934
|
+
'--ts-var-liveboard-tab-hover-color'?: string;
|
|
8935
|
+
/**
|
|
8936
|
+
* Font size of the title of the tiles in the Liveboard.
|
|
8937
|
+
*/
|
|
8938
|
+
'--ts-var-liveboard-tile-title-fontsize'?: string;
|
|
8939
|
+
/**
|
|
8940
|
+
* Font weight of the title of the tiles in the Liveboard.
|
|
8941
|
+
*/
|
|
8942
|
+
'--ts-var-liveboard-tile-title-fontweight'?: string;
|
|
8943
|
+
/**
|
|
8944
|
+
* Font weight of the description of the tiles in the Liveboard.
|
|
8945
|
+
*/
|
|
8946
|
+
'--ts-var-liveboard-tile-description-font-weight'?: string;
|
|
8947
|
+
/**
|
|
8948
|
+
* Opacity of the description of the tiles in the Liveboard.
|
|
8949
|
+
*/
|
|
8950
|
+
'--ts-var-liveboard-tile-description-opacity'?: string;
|
|
8951
|
+
/**
|
|
8952
|
+
* Background color of the parameter chips in the Liveboard.
|
|
8953
|
+
*/
|
|
8954
|
+
'--ts-var-parameter-chip-background'?: string;
|
|
8955
|
+
/**
|
|
8956
|
+
* Font color of the parameter chips in the Liveboard.
|
|
8957
|
+
*/
|
|
8958
|
+
'--ts-var-parameter-chip-text-color'?: string;
|
|
8959
|
+
/**
|
|
8960
|
+
* Background color of the parameter chips in the Liveboard on hover.
|
|
8961
|
+
*/
|
|
8962
|
+
'--ts-var-parameter-chip-hover-background'?: string;
|
|
8963
|
+
/**
|
|
8964
|
+
* Font color of the parameter chips in the Liveboard on hover.
|
|
8965
|
+
*/
|
|
8966
|
+
'--ts-var-parameter-chip-hover-text-color'?: string;
|
|
8967
|
+
/**
|
|
8968
|
+
* Background color of the parameter chips in the Liveboard on active.
|
|
8969
|
+
*/
|
|
8970
|
+
'--ts-var-parameter-chip-active-background'?: string;
|
|
8971
|
+
/**
|
|
8972
|
+
* Font color of the parameter chips in the Liveboard on active.
|
|
8973
|
+
*/
|
|
8974
|
+
'--ts-var-parameter-chip-active-text-color'?: string;
|
|
8975
|
+
/**
|
|
8976
|
+
* Background color of the action button in the Liveboard header.
|
|
8977
|
+
*/
|
|
8978
|
+
'--ts-var-liveboard-header-action-button-background'?: string;
|
|
8979
|
+
/**
|
|
8980
|
+
* Font color of the action button in the Liveboard header.
|
|
8981
|
+
*/
|
|
8982
|
+
'--ts-var-liveboard-header-action-button-font-color'?: string;
|
|
8983
|
+
/**
|
|
8984
|
+
* Font color of the action button in the Liveboard header on hover.
|
|
8985
|
+
*/
|
|
8986
|
+
'--ts-var-liveboard-header-action-button-hover-color'?: string;
|
|
8987
|
+
/**
|
|
8988
|
+
* Font color of the action button in the Liveboard header on active.
|
|
8989
|
+
*/
|
|
8990
|
+
'--ts-var-liveboard-header-action-button-active-color'?: string;
|
|
8991
|
+
/**
|
|
8992
|
+
* Background color of the badge in the Liveboard header.
|
|
8993
|
+
*/
|
|
8994
|
+
'--ts-var-liveboard-header-badge-background'?: string;
|
|
8995
|
+
/**
|
|
8996
|
+
* Font color of the badge in the Liveboard header.
|
|
8997
|
+
*/
|
|
8998
|
+
'--ts-var-liveboard-header-badge-font-color'?: string;
|
|
8999
|
+
/**
|
|
9000
|
+
* Background color of the modified badge in the Liveboard header.
|
|
9001
|
+
*/
|
|
9002
|
+
'--ts-var-liveboard-header-badge-modified-background'?: string;
|
|
9003
|
+
/**
|
|
9004
|
+
* Font color of the modified badge in the Liveboard header.
|
|
9005
|
+
*/
|
|
9006
|
+
'--ts-var-liveboard-header-badge-modified-font-color'?: string;
|
|
9007
|
+
/**
|
|
9008
|
+
* Font color of the badge in the Liveboard header on hover.
|
|
9009
|
+
*/
|
|
9010
|
+
'--ts-var-liveboard-header-badge-hover-color'?: string;
|
|
9011
|
+
/**
|
|
9012
|
+
* Font color of the badge in the Liveboard header on active.
|
|
9013
|
+
*/
|
|
9014
|
+
'--ts-var-liveboard-header-badge-active-color'?: string;
|
|
9015
|
+
/**
|
|
9016
|
+
* Font color of the hero text in the KPI widget.
|
|
9017
|
+
*/
|
|
9018
|
+
'--ts-var-kpi-hero-color'?: string;
|
|
9019
|
+
/**
|
|
9020
|
+
* Font color of the comparison text in the KPI widget.
|
|
9021
|
+
*/
|
|
9022
|
+
'--ts-var-kpi-comparison-color'?: string;
|
|
9023
|
+
/**
|
|
9024
|
+
* Font color of the analyze text in the KPI widget.
|
|
9025
|
+
*/
|
|
9026
|
+
'--ts-var-kpi-analyze-text-color'?: string;
|
|
9027
|
+
/**
|
|
9028
|
+
* Font color of the legend title in the heatmap chart.
|
|
9029
|
+
*/
|
|
9030
|
+
'--ts-var-chart-heatmap-legend-title-color'?: string;
|
|
9031
|
+
/**
|
|
9032
|
+
* Font color of the legend label in the heatmap chart.
|
|
9033
|
+
*/
|
|
9034
|
+
'--ts-var-chart-heatmap-legend-label-color'?: string;
|
|
9035
|
+
/**
|
|
9036
|
+
* Font color of the legend title in the treemap chart.
|
|
9037
|
+
*/
|
|
9038
|
+
'--ts-var-chart-treemap-legend-title-color'?: string;
|
|
9039
|
+
/**
|
|
9040
|
+
* Font color of the legend label in the treemap chart.
|
|
9041
|
+
*/
|
|
9042
|
+
'--ts-var-chart-treemap-legend-label-color'?: string;
|
|
9043
|
+
/**
|
|
9044
|
+
* Color of the positive change in the KPI.
|
|
9045
|
+
*/
|
|
9046
|
+
'--ts-var-kpi-positive-change-color'?: string;
|
|
9047
|
+
/**
|
|
9048
|
+
* Color of the negative change in the KPI.
|
|
9049
|
+
*/
|
|
9050
|
+
'--ts-var-kpi-negative-change-color'?: string;
|
|
9051
|
+
/**
|
|
9052
|
+
* Background color of the change analysis insights.
|
|
9053
|
+
*/
|
|
9054
|
+
'--ts-var-change-analysis-insights-background'?: string;
|
|
9055
|
+
/**
|
|
9056
|
+
* Background color of the forecasting card in the SpotIQ analyze.
|
|
9057
|
+
*/
|
|
9058
|
+
'--ts-var-spotiq-analyze-forecasting-card-background'?: string;
|
|
9059
|
+
/**
|
|
9060
|
+
* Background color of the outlier card in the SpotIQ analyze.
|
|
9061
|
+
*/
|
|
9062
|
+
'--ts-var-spotiq-analyze-outlier-card-background'?: string;
|
|
9063
|
+
/**
|
|
9064
|
+
* Background color of the trend card in the SpotIQ analyze.
|
|
9065
|
+
*/
|
|
9066
|
+
'--ts-var-spotiq-analyze-trend-card-background'?: string;
|
|
9067
|
+
/**
|
|
9068
|
+
* Background color of the crosscorrelation card in the SpotIQ analyze.
|
|
9069
|
+
*/
|
|
9070
|
+
'--ts-var-spotiq-analyze-crosscorrelation-card-background'?: string;
|
|
9071
|
+
/**
|
|
9072
|
+
* Background color of the summary header in the CCA modal.
|
|
9073
|
+
*/
|
|
9074
|
+
'--ts-var-cca-modal-summary-header-background'?: string;
|
|
8581
9075
|
}
|
|
8582
9076
|
|
|
8583
9077
|
export interface SessionInterface {
|
|
@@ -8904,16 +9398,31 @@ export declare const getAnswerFromQuery: (query: string, worksheetId: string) =>
|
|
|
8904
9398
|
}>;
|
|
8905
9399
|
|
|
8906
9400
|
/**
|
|
8907
|
-
*
|
|
8908
|
-
*
|
|
8909
|
-
*
|
|
9401
|
+
* Creates a new Liveboard in ThoughtSpot using the provided AnswerService instances.
|
|
9402
|
+
*
|
|
9403
|
+
* Each answer will be added as a visualization to the newly created Liveboard.
|
|
9404
|
+
*
|
|
9405
|
+
* @param {AnswerService[]} answers - An array of initialized `AnswerService` instances
|
|
9406
|
+
* representing the answers to be added to the Liveboard.
|
|
9407
|
+
* @param {string} name - The name of the Liveboard to create.
|
|
8910
9408
|
* @returns result Promise
|
|
8911
9409
|
* @version SDK: 1.33.1 | ThoughtSpot: *
|
|
8912
9410
|
* @example
|
|
8913
9411
|
* ```js
|
|
8914
|
-
*
|
|
8915
|
-
*
|
|
8916
|
-
*
|
|
9412
|
+
* import { EmbedEvent, AnswerService } from "@thoughtspot/visual-embed-sdk";
|
|
9413
|
+
*
|
|
9414
|
+
* embed.on(EmbedEvent.Data, async () => {
|
|
9415
|
+
* try {
|
|
9416
|
+
* const answerService = await embed.getAnswerService();
|
|
9417
|
+
* const lb = await createLiveboardWithAnswers(
|
|
9418
|
+
* [answerService],
|
|
9419
|
+
* "My Liveboard"
|
|
9420
|
+
* );
|
|
9421
|
+
* console.log("Liveboard created:", lb);
|
|
9422
|
+
* } catch (err) {
|
|
9423
|
+
* console.error("Failed to create liveboard:", err);
|
|
9424
|
+
* }
|
|
9425
|
+
* });
|
|
8917
9426
|
* ```
|
|
8918
9427
|
*/
|
|
8919
9428
|
export declare const createLiveboardWithAnswers: (answers: AnswerService[], name: string) => Promise<any>;
|
|
@@ -9072,19 +9581,15 @@ export declare class TsEmbed {
|
|
|
9072
9581
|
protected isRendered: boolean;
|
|
9073
9582
|
protected hostEventClient: HostEventClient;
|
|
9074
9583
|
protected isReadyForRenderPromise: Promise<void>;
|
|
9075
|
-
id: string;
|
|
9076
9584
|
constructor(domSelector: DOMSelector, viewConfig?: ViewConfig);
|
|
9077
9585
|
/**
|
|
9078
9586
|
* Handles errors within the SDK
|
|
9079
9587
|
* @param error The error message or object
|
|
9080
9588
|
*/
|
|
9081
9589
|
protected handleError(error: string | Record<string, unknown>): void;
|
|
9082
|
-
isEmbedContainerLoaded: boolean;
|
|
9083
9590
|
protected getAuthTokenForCookielessInit(): Promise<string>;
|
|
9084
9591
|
protected getDefaultAppInitData(): Promise<DefaultAppInitData>;
|
|
9085
9592
|
protected getAppInitData(): Promise<DefaultAppInitData>;
|
|
9086
|
-
protected getPreRenderObj<T extends TsEmbed>(): T;
|
|
9087
|
-
protected triggerAfterLoad(eventType: HostEvent, data: TriggerPayload<any, HostEvent>, onEventTriggered?: () => void): void;
|
|
9088
9593
|
/**
|
|
9089
9594
|
* Constructs the base URL string to load the ThoughtSpot app.
|
|
9090
9595
|
* @param query
|
|
@@ -9198,6 +9703,19 @@ export declare class TsEmbed {
|
|
|
9198
9703
|
* ```
|
|
9199
9704
|
*/
|
|
9200
9705
|
off(messageType: EmbedEvent, callback: MessageCallback): typeof TsEmbed.prototype;
|
|
9706
|
+
/**
|
|
9707
|
+
* @hidden
|
|
9708
|
+
* Internal state to track if the embed container is loaded.
|
|
9709
|
+
* This is used to trigger events after the embed container is loaded.
|
|
9710
|
+
*/
|
|
9711
|
+
isEmbedContainerLoaded: boolean;
|
|
9712
|
+
protected getPreRenderObj<T extends TsEmbed>(): T;
|
|
9713
|
+
/**
|
|
9714
|
+
* Executes a callback after the embed container is loaded.
|
|
9715
|
+
* @param callback The callback to execute
|
|
9716
|
+
*/
|
|
9717
|
+
protected executeAfterEmbedContainerLoaded(callback: () => void): void;
|
|
9718
|
+
protected createEmbedContainerHandler: (source: EmbedEvent.AuthInit | EmbedEvent.EmbedListenerReady) => () => void;
|
|
9201
9719
|
/**
|
|
9202
9720
|
* Triggers an event to the embedded app
|
|
9203
9721
|
* @param {HostEvent} messageType The event type
|