@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
|
@@ -2125,6 +2125,16 @@ export declare class LiveboardEmbed extends V1Embed {
|
|
|
2125
2125
|
*/
|
|
2126
2126
|
protected getEmbedParams(): string;
|
|
2127
2127
|
protected getEmbedParamsObject(): any;
|
|
2128
|
+
/**
|
|
2129
|
+
* @hidden
|
|
2130
|
+
* Internal state to track the current liveboard id.
|
|
2131
|
+
* This is used to navigate to the correct liveboard when the prerender is visible.
|
|
2132
|
+
*/
|
|
2133
|
+
currentLiveboardState: {
|
|
2134
|
+
liveboardId: string;
|
|
2135
|
+
vizId: string;
|
|
2136
|
+
activeTabId: string;
|
|
2137
|
+
};
|
|
2128
2138
|
protected beforePrerenderVisible(): void;
|
|
2129
2139
|
protected handleRenderForPrerender(): Promise<TsEmbed>;
|
|
2130
2140
|
/**
|
|
@@ -2145,8 +2155,7 @@ export declare class LiveboardEmbed extends V1Embed {
|
|
|
2145
2155
|
* visualization ID and the runtime filters.
|
|
2146
2156
|
*/
|
|
2147
2157
|
render(): Promise<LiveboardEmbed>;
|
|
2148
|
-
|
|
2149
|
-
navigateToLiveboard(liveboardId: string, vizId?: string, activeTabId?: string, onNavigateCalled?: () => void): void;
|
|
2158
|
+
navigateToLiveboard(liveboardId: string, vizId?: string, activeTabId?: string): void;
|
|
2150
2159
|
/**
|
|
2151
2160
|
* Returns the full url of the Liveboard/visualization which can be used to open
|
|
2152
2161
|
* this Liveboard inside the full ThoughtSpot application in a new tab.
|
|
@@ -3274,12 +3283,14 @@ export interface HomePageConfig {
|
|
|
3274
3283
|
* Hide list page columns
|
|
3275
3284
|
* For example: hiddenListColumns = [ListPageColumns.Author]
|
|
3276
3285
|
*
|
|
3277
|
-
* **Note**: This option is available only in full app embedding.
|
|
3286
|
+
* **Note**: This option is available only in full app embedding. To use it, you need to import `ListPageColumns` enum.
|
|
3278
3287
|
*
|
|
3279
3288
|
* Supported embed types: `AppEmbed`
|
|
3280
3289
|
* @version SDK: 1.38.0 | ThoughtSpot: 10.9.0.cl
|
|
3281
3290
|
* @example
|
|
3282
3291
|
* ```js
|
|
3292
|
+
* import { ListPageColumns } from '@thoughtspot/visual-embed-sdk';
|
|
3293
|
+
*
|
|
3283
3294
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
3284
3295
|
* ... //other embed view config
|
|
3285
3296
|
* hiddenListColumns : [ListPageColumns.Favorite,ListPageColumns.Author],
|
|
@@ -3294,11 +3305,14 @@ export interface HomePageConfig {
|
|
|
3294
3305
|
* **Note**: This option does not apply to the classic homepage.
|
|
3295
3306
|
* To access the updated modular homepage, set
|
|
3296
3307
|
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
3308
|
+
* To use it, you need to import `HomepageModule` enum.
|
|
3297
3309
|
*
|
|
3298
3310
|
* Supported embed types: `AppEmbed`
|
|
3299
3311
|
* @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl, 10.1.0.sw
|
|
3300
3312
|
* @example
|
|
3301
3313
|
* ```js
|
|
3314
|
+
* import { HomepageModule } from '@thoughtspot/visual-embed-sdk';
|
|
3315
|
+
*
|
|
3302
3316
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
3303
3317
|
* ... //other embed view config
|
|
3304
3318
|
* hiddenHomepageModules : [HomepageModule.Favorite,HomepageModule.Learning],
|
|
@@ -3313,11 +3327,14 @@ export interface HomePageConfig {
|
|
|
3313
3327
|
* **Note**: This option does not apply to the classic homepage.
|
|
3314
3328
|
* To access the updated modular homepage, set
|
|
3315
3329
|
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
3330
|
+
* To use it, you need to import `HomepageModule` enum.
|
|
3316
3331
|
*
|
|
3317
3332
|
* Supported embed types: `AppEmbed`
|
|
3318
3333
|
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl, 10.1.0.sw
|
|
3319
3334
|
* @example
|
|
3320
3335
|
* ```js
|
|
3336
|
+
* import { HomepageModule } from '@thoughtspot/visual-embed-sdk';
|
|
3337
|
+
*
|
|
3321
3338
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
3322
3339
|
* ... //other embed view config
|
|
3323
3340
|
* reorderedHomepageModules:[HomepageModule.Favorite,HomepageModule.MyLibrary],
|
|
@@ -3333,6 +3350,8 @@ export interface HomePageConfig {
|
|
|
3333
3350
|
* Supported embed types: `AppEmbed`
|
|
3334
3351
|
* @example
|
|
3335
3352
|
* ```js
|
|
3353
|
+
* import { HomeLeftNavItem } from '@thoughtspot/visual-embed-sdk';
|
|
3354
|
+
*
|
|
3336
3355
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
3337
3356
|
* ... //other embed view config
|
|
3338
3357
|
* hiddenHomeLeftNavItems : [HomeLeftNavItem.Home,HomeLeftNavItem.Answers],
|
|
@@ -3342,6 +3361,7 @@ export interface HomePageConfig {
|
|
|
3342
3361
|
* **Note**: This option does not apply to the classic homepage.
|
|
3343
3362
|
* To access the updated modular homepage, set
|
|
3344
3363
|
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
3364
|
+
* To use it, you need to import `HomeLeftNavItem` enum.
|
|
3345
3365
|
* @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl, 10.1.0.sw
|
|
3346
3366
|
*/
|
|
3347
3367
|
hiddenHomeLeftNavItems?: HomeLeftNavItem[];
|
|
@@ -4550,7 +4570,7 @@ export declare enum EmbedEvent {
|
|
|
4550
4570
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
4551
4571
|
* @example
|
|
4552
4572
|
*```js
|
|
4553
|
-
* liveboardEmbed.on(EmbedEvent.
|
|
4573
|
+
* liveboardEmbed.on(EmbedEvent.LiveboardInfo, payload => {
|
|
4554
4574
|
* console.log('Liveboard details', payload);
|
|
4555
4575
|
* })
|
|
4556
4576
|
*```
|
|
@@ -4925,58 +4945,58 @@ export declare enum EmbedEvent {
|
|
|
4925
4945
|
*/
|
|
4926
4946
|
RequestVisibleEmbedCoordinates = "requestVisibleEmbedCoordinates",
|
|
4927
4947
|
/**
|
|
4928
|
-
* Emitted when
|
|
4948
|
+
* Emitted when Spotter response is text data
|
|
4929
4949
|
* @example
|
|
4930
4950
|
* ```js
|
|
4931
4951
|
* spotterEmbed.on(EmbedEvent.SpotterData, (payload) => {
|
|
4932
4952
|
* console.log('payload', payload);
|
|
4933
4953
|
* })
|
|
4934
4954
|
*```
|
|
4935
|
-
* @version SDK: 1.
|
|
4955
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
4936
4956
|
*/
|
|
4937
4957
|
SpotterData = "SpotterData",
|
|
4938
4958
|
/**
|
|
4939
|
-
* Emitted when user opens up the worksheet preview modal in
|
|
4959
|
+
* Emitted when user opens up the worksheet preview modal in Spotter embed.
|
|
4940
4960
|
* @example
|
|
4941
4961
|
* ```js
|
|
4942
4962
|
* spotterEmbed.on(EmbedEvent.PreviewSpotterData, (payload) => {
|
|
4943
4963
|
* console.log('payload', payload);
|
|
4944
4964
|
* })
|
|
4945
4965
|
*```
|
|
4946
|
-
* @version SDK: 1.
|
|
4966
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
4947
4967
|
*/
|
|
4948
4968
|
PreviewSpotterData = "PreviewSpotterData",
|
|
4949
4969
|
/**
|
|
4950
|
-
* Emitted when the
|
|
4970
|
+
* Emitted when the Spotter query is triggered in Spotter embed.
|
|
4951
4971
|
* @example
|
|
4952
4972
|
* ```js
|
|
4953
4973
|
* spotterEmbed.on(EmbedEvent.SpotterQueryTriggered, (payload) => {
|
|
4954
4974
|
* console.log('payload', payload);
|
|
4955
4975
|
* })
|
|
4956
4976
|
*```
|
|
4957
|
-
* @version SDK: 1.
|
|
4977
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
4958
4978
|
*/
|
|
4959
4979
|
SpotterQueryTriggered = "SpotterQueryTriggered",
|
|
4960
4980
|
/**
|
|
4961
|
-
* Emitted when the last
|
|
4981
|
+
* Emitted when the last Spotter query is edited in Spotter embed.
|
|
4962
4982
|
* @example
|
|
4963
4983
|
* ```js
|
|
4964
4984
|
* spotterEmbed.on(EmbedEvent.LastPromptEdited, (payload) => {
|
|
4965
4985
|
* console.log('payload', payload);
|
|
4966
4986
|
* })
|
|
4967
4987
|
*```
|
|
4968
|
-
* @version SDK: 1.
|
|
4988
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
4969
4989
|
*/
|
|
4970
4990
|
LastPromptEdited = "LastPromptEdited",
|
|
4971
4991
|
/**
|
|
4972
|
-
* Emitted when the last
|
|
4992
|
+
* Emitted when the last Spotter query is deleted in Spotter embed.
|
|
4973
4993
|
* @example
|
|
4974
4994
|
* ```js
|
|
4975
4995
|
* spotterEmbed.on(EmbedEvent.LastPromptDeleted, (payload) => {
|
|
4976
4996
|
* console.log('payload', payload);
|
|
4977
4997
|
* })
|
|
4978
4998
|
*```
|
|
4979
|
-
* @version SDK: 1.
|
|
4999
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
4980
5000
|
*/
|
|
4981
5001
|
LastPromptDeleted = "LastPromptDeleted",
|
|
4982
5002
|
/**
|
|
@@ -4987,7 +5007,7 @@ export declare enum EmbedEvent {
|
|
|
4987
5007
|
* console.log('payload', payload);
|
|
4988
5008
|
* })
|
|
4989
5009
|
*```
|
|
4990
|
-
* @version SDK: 1.
|
|
5010
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
4991
5011
|
*/
|
|
4992
5012
|
ResetSpotterConversation = "ResetSpotterConversation",
|
|
4993
5013
|
/**
|
|
@@ -5000,7 +5020,19 @@ export declare enum EmbedEvent {
|
|
|
5000
5020
|
*```
|
|
5001
5021
|
* @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
|
|
5002
5022
|
*/
|
|
5003
|
-
SpotterInit = "
|
|
5023
|
+
SpotterInit = "spotterInit",
|
|
5024
|
+
/**
|
|
5025
|
+
* @hidden
|
|
5026
|
+
* Triggers when the embed listener is ready to receive events.
|
|
5027
|
+
* This is used to trigger events after the embed container is loaded.
|
|
5028
|
+
* @example
|
|
5029
|
+
* ```js
|
|
5030
|
+
* liveboardEmbed.on(EmbedEvent.EmbedListenerReady, () => {
|
|
5031
|
+
* console.log('EmbedListenerReady');
|
|
5032
|
+
* })
|
|
5033
|
+
* ```
|
|
5034
|
+
*/
|
|
5035
|
+
EmbedListenerReady = "EmbedListenerReady"
|
|
5004
5036
|
}
|
|
5005
5037
|
/**
|
|
5006
5038
|
* Event types that can be triggered by the host application
|
|
@@ -5088,6 +5120,7 @@ export declare enum HostEvent {
|
|
|
5088
5120
|
* done automatically on the most popular column.
|
|
5089
5121
|
* @param - vizId [TS >= 9.8.0] - Optional. The GUID of the visualization to drill
|
|
5090
5122
|
* in case of a Liveboard.
|
|
5123
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5091
5124
|
* @example
|
|
5092
5125
|
* ```js
|
|
5093
5126
|
* searchEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
|
|
@@ -5407,12 +5440,21 @@ export declare enum HostEvent {
|
|
|
5407
5440
|
* Trigger the **Download PDF** action on an embedded Liveboard,
|
|
5408
5441
|
* visualization or Answer.
|
|
5409
5442
|
*
|
|
5443
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5444
|
+
*
|
|
5410
5445
|
* **NOTE**: The **Download** > **PDF** action is available on
|
|
5411
5446
|
* visualizations and Answers if the data is in tabular format.
|
|
5412
5447
|
* @example
|
|
5413
5448
|
* ```js
|
|
5414
5449
|
* liveboardEmbed.trigger(HostEvent.DownloadAsPdf)
|
|
5415
5450
|
* ```
|
|
5451
|
+
* @example
|
|
5452
|
+
* ```js
|
|
5453
|
+
* spotterEmbed.trigger(HostEvent.DownloadAsPdf, {
|
|
5454
|
+
* vizId:'730496d6-6903-4601-937e-2c691821af3c'
|
|
5455
|
+
* });
|
|
5456
|
+
* ```
|
|
5457
|
+
*
|
|
5416
5458
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
5417
5459
|
*/
|
|
5418
5460
|
DownloadAsPdf = "downloadAsPdf",
|
|
@@ -5514,7 +5556,8 @@ export declare enum HostEvent {
|
|
|
5514
5556
|
* This event is not supported in visualization embed and search embed.
|
|
5515
5557
|
* @param - object - To trigger the action for a specific visualization
|
|
5516
5558
|
* in Liveboard embed, pass in `vizId` as a key.
|
|
5517
|
-
*
|
|
5559
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5560
|
+
*
|
|
5518
5561
|
* @example
|
|
5519
5562
|
* ```js
|
|
5520
5563
|
* liveboardEmbed.trigger(HostEvent.Edit)
|
|
@@ -5529,6 +5572,12 @@ export declare enum HostEvent {
|
|
|
5529
5572
|
* vizId:'730496d6-6903-4601-937e-2c691821af3c'
|
|
5530
5573
|
* });
|
|
5531
5574
|
* ```
|
|
5575
|
+
* @example
|
|
5576
|
+
* ```js
|
|
5577
|
+
* const editResponse = await spotterEmbed.trigger(HostEvent.Edit, {
|
|
5578
|
+
* vizId:'730496d6-6903-4601-937e-2c691821af3c'
|
|
5579
|
+
* });
|
|
5580
|
+
* ```
|
|
5532
5581
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
5533
5582
|
*/
|
|
5534
5583
|
Edit = "edit",
|
|
@@ -5649,6 +5698,7 @@ export declare enum HostEvent {
|
|
|
5649
5698
|
/**
|
|
5650
5699
|
* Trigger the **Download** action on charts in
|
|
5651
5700
|
* the embedded view.
|
|
5701
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5652
5702
|
* @example
|
|
5653
5703
|
* ```js
|
|
5654
5704
|
* liveboardEmbed.trigger(HostEvent.Download, {vizId:
|
|
@@ -5657,6 +5707,11 @@ export declare enum HostEvent {
|
|
|
5657
5707
|
* ```js
|
|
5658
5708
|
* embed.trigger(HostEvent.Download)
|
|
5659
5709
|
* ```
|
|
5710
|
+
* ```js
|
|
5711
|
+
* spotterEmbed.trigger(HostEvent.Download, {
|
|
5712
|
+
* vizId:'730496d6-6903-4601-937e-2c691821af3c'
|
|
5713
|
+
* });
|
|
5714
|
+
* ```
|
|
5660
5715
|
* @deprecated from SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl ,9.4.1.sw
|
|
5661
5716
|
* Use {@link DownloadAsPng}
|
|
5662
5717
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
@@ -5685,6 +5740,7 @@ export declare enum HostEvent {
|
|
|
5685
5740
|
/**
|
|
5686
5741
|
* Trigger the **Download** > **CSV** action on tables in
|
|
5687
5742
|
* the embedded view.
|
|
5743
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5688
5744
|
* @example
|
|
5689
5745
|
* ```js
|
|
5690
5746
|
* liveboardEmbed.trigger(HostEvent.DownloadAsCsv, {vizId:
|
|
@@ -5707,6 +5763,7 @@ export declare enum HostEvent {
|
|
|
5707
5763
|
/**
|
|
5708
5764
|
* Trigger the **Download** > **XLSX** action on tables
|
|
5709
5765
|
* in the embedded view.
|
|
5766
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5710
5767
|
* @example
|
|
5711
5768
|
* ```js
|
|
5712
5769
|
* liveboardEmbed.trigger(HostEvent.DownloadAsXlsx, {vizId:
|
|
@@ -5742,7 +5799,7 @@ export declare enum HostEvent {
|
|
|
5742
5799
|
/**
|
|
5743
5800
|
* Trigger the **Save** action on a Liveboard or Answer.
|
|
5744
5801
|
* Saves the changes.
|
|
5745
|
-
* @param - `vizId` is required in Spotter
|
|
5802
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5746
5803
|
* @example
|
|
5747
5804
|
* ```js
|
|
5748
5805
|
* liveboardEmbed.trigger(HostEvent.Save)
|
|
@@ -6052,6 +6109,7 @@ export declare enum HostEvent {
|
|
|
6052
6109
|
UpdateParameters = "UpdateParameters",
|
|
6053
6110
|
/**
|
|
6054
6111
|
* Triggers GetParameters to fetch the runtime Parameters.
|
|
6112
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
6055
6113
|
* ```js
|
|
6056
6114
|
* liveboardEmbed.trigger(HostEvent.GetParameters).then((parameter) => {
|
|
6057
6115
|
* console.log('parameters', parameter);
|
|
@@ -6095,7 +6153,7 @@ export declare enum HostEvent {
|
|
|
6095
6153
|
* @param - optional attributes to set Answer properties.
|
|
6096
6154
|
* `name` - Name string for the Answer.
|
|
6097
6155
|
* `description` - Description text for the Answer.
|
|
6098
|
-
*
|
|
6156
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
6099
6157
|
* @example
|
|
6100
6158
|
* ```js
|
|
6101
6159
|
* const saveAnswerResponse = await searchEmbed.trigger(HostEvent.SaveAnswer, {
|
|
@@ -6103,6 +6161,14 @@ export declare enum HostEvent {
|
|
|
6103
6161
|
* description: "Total sales by states in MidWest"
|
|
6104
6162
|
* });
|
|
6105
6163
|
* ```
|
|
6164
|
+
* @example
|
|
6165
|
+
* ```js
|
|
6166
|
+
* const saveAnswerResponse = await spotterEmbed.trigger(HostEvent.SaveAnswer, {
|
|
6167
|
+
* vizId: '730496d6-6903-4601-937e-2c691821af3c',
|
|
6168
|
+
* name: "Sales by states",
|
|
6169
|
+
* description: "Total sales by states in MidWest"
|
|
6170
|
+
* });
|
|
6171
|
+
* ```
|
|
6106
6172
|
* @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
|
|
6107
6173
|
*/
|
|
6108
6174
|
SaveAnswer = "saveAnswer",
|
|
@@ -6134,7 +6200,7 @@ export declare enum HostEvent {
|
|
|
6134
6200
|
/**
|
|
6135
6201
|
* Triggers a search operation with the search tokens specified in
|
|
6136
6202
|
* the search query string in spotter embed.
|
|
6137
|
-
* @param - `
|
|
6203
|
+
* @param - `query`: Text string in Natural Language format
|
|
6138
6204
|
* @param - `executeSearch`: Boolean to execute search and update search query
|
|
6139
6205
|
* @example
|
|
6140
6206
|
* ```js
|
|
@@ -6143,6 +6209,7 @@ export declare enum HostEvent {
|
|
|
6143
6209
|
* executeSearch: true,
|
|
6144
6210
|
* })
|
|
6145
6211
|
* ```
|
|
6212
|
+
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
6146
6213
|
*/
|
|
6147
6214
|
SpotterSearch = "SpotterSearch",
|
|
6148
6215
|
/**
|
|
@@ -6152,6 +6219,7 @@ export declare enum HostEvent {
|
|
|
6152
6219
|
* ```js
|
|
6153
6220
|
* spotterEmbed.trigger(HostEvent.EditLastPrompt, "revenue per year");
|
|
6154
6221
|
* ```
|
|
6222
|
+
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
6155
6223
|
*/
|
|
6156
6224
|
EditLastPrompt = "EditLastPrompt",
|
|
6157
6225
|
/**
|
|
@@ -6160,6 +6228,7 @@ export declare enum HostEvent {
|
|
|
6160
6228
|
* ```js
|
|
6161
6229
|
* spotterEmbed.trigger(HostEvent.PreviewSpotterData);
|
|
6162
6230
|
* ```
|
|
6231
|
+
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
6163
6232
|
*/
|
|
6164
6233
|
PreviewSpotterData = "PreviewSpotterData",
|
|
6165
6234
|
/**
|
|
@@ -6168,6 +6237,7 @@ export declare enum HostEvent {
|
|
|
6168
6237
|
* ```js
|
|
6169
6238
|
* spotterEmbed.trigger(HostEvent.ResetSpotterConversation);
|
|
6170
6239
|
* ```
|
|
6240
|
+
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
6171
6241
|
*/
|
|
6172
6242
|
ResetSpotterConversation = "ResetSpotterConversation",
|
|
6173
6243
|
/**
|
|
@@ -6176,17 +6246,19 @@ export declare enum HostEvent {
|
|
|
6176
6246
|
* ```js
|
|
6177
6247
|
* spotterEmbed.trigger(HostEvent.DeleteLastPrompt);
|
|
6178
6248
|
* ```
|
|
6249
|
+
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
6179
6250
|
*/
|
|
6180
6251
|
DeleteLastPrompt = "DeleteLastPrompt",
|
|
6181
6252
|
/**
|
|
6182
6253
|
* Toggle the visualization to chart or table view.
|
|
6183
|
-
* @param - `vizId `
|
|
6254
|
+
* @param - `vizId ` refers to the answer id in spotter Embed, it is required in spotter Embed.
|
|
6184
6255
|
* @example
|
|
6185
6256
|
* ```js
|
|
6186
6257
|
* spotterEmbed.trigger(HostEvent.AnswerChartSwitcher, {
|
|
6187
|
-
* vizId:
|
|
6258
|
+
* vizId:'b535c760-8bbe-4e6f-bb26-af56b4129a1e'
|
|
6188
6259
|
* });
|
|
6189
6260
|
*```
|
|
6261
|
+
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
6190
6262
|
*/
|
|
6191
6263
|
AnswerChartSwitcher = "answerChartSwitcher",
|
|
6192
6264
|
/**
|
|
@@ -6213,15 +6285,16 @@ export declare enum HostEvent {
|
|
|
6213
6285
|
*/
|
|
6214
6286
|
VisibleEmbedCoordinates = "visibleEmbedCoordinates",
|
|
6215
6287
|
/**
|
|
6216
|
-
* Trigger the *Ask
|
|
6288
|
+
* Trigger the *Ask Spotter* action for visualizations
|
|
6289
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
6217
6290
|
* @example
|
|
6218
6291
|
* ```js
|
|
6219
|
-
*
|
|
6220
|
-
* {
|
|
6292
|
+
* spotterEmbed.trigger(HostEvent.AskSpotter,
|
|
6293
|
+
* {vizId:'730496d6-6903-4601-937e-2c691821af3c'})
|
|
6221
6294
|
* ```
|
|
6222
6295
|
* @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
|
|
6223
6296
|
*/
|
|
6224
|
-
AskSpotter = "
|
|
6297
|
+
AskSpotter = "AskSpotter",
|
|
6225
6298
|
/**
|
|
6226
6299
|
* @hidden
|
|
6227
6300
|
* Triggers the update of the embed params.
|
|
@@ -6519,27 +6592,27 @@ export declare enum Action {
|
|
|
6519
6592
|
*/
|
|
6520
6593
|
ConfigureFilter = "configureFilter",
|
|
6521
6594
|
/**
|
|
6522
|
-
|
|
6523
|
-
|
|
6524
|
-
|
|
6525
|
-
|
|
6526
|
-
|
|
6527
|
-
|
|
6528
|
-
|
|
6529
|
-
|
|
6530
|
-
|
|
6595
|
+
* The **Collapse data sources** icon on the Search page.
|
|
6596
|
+
* Collapses the panel showing data sources.
|
|
6597
|
+
*
|
|
6598
|
+
* @example
|
|
6599
|
+
* ```js
|
|
6600
|
+
* disabledActions: [Action.CollapseDataPanel]
|
|
6601
|
+
* ```
|
|
6602
|
+
* @version: SDK: 1.1.0 | ThoughtSpot Cloud: ts7.may.cl, 8.4.1.sw
|
|
6603
|
+
*/
|
|
6531
6604
|
CollapseDataSources = "collapseDataSources",
|
|
6532
6605
|
/**
|
|
6533
|
-
|
|
6534
|
-
|
|
6535
|
-
|
|
6536
|
-
|
|
6537
|
-
|
|
6538
|
-
|
|
6539
|
-
|
|
6540
|
-
|
|
6541
|
-
|
|
6542
|
-
|
|
6606
|
+
* The **Collapse data panel** icon on the Search page.
|
|
6607
|
+
* Collapses the data panel view.
|
|
6608
|
+
*
|
|
6609
|
+
* @version: SDK: 1.34.0 | ThoughtSpot Cloud: 10.3.0.cl
|
|
6610
|
+
*
|
|
6611
|
+
* @example
|
|
6612
|
+
* ```js
|
|
6613
|
+
* disabledActions: [Action.CollapseDataPanel]
|
|
6614
|
+
* ```
|
|
6615
|
+
*/
|
|
6543
6616
|
CollapseDataPanel = "collapseDataPanel",
|
|
6544
6617
|
/**
|
|
6545
6618
|
* The **Choose sources** button on Search page.
|
|
@@ -7235,6 +7308,17 @@ export declare enum Action {
|
|
|
7235
7308
|
* @version SDK: 1.25.0 | ThoughtSpot Cloud: 9.6.0.cl
|
|
7236
7309
|
*/
|
|
7237
7310
|
EnableContextualChangeAnalysis = "enableContextualChangeAnalysis",
|
|
7311
|
+
/**
|
|
7312
|
+
* Action ID to hide or disable Iterative Change Analysis option
|
|
7313
|
+
* on contextual change analysis Inisght charts context menu
|
|
7314
|
+
*
|
|
7315
|
+
* @example
|
|
7316
|
+
* ```js
|
|
7317
|
+
* disabledActions: [Action.EnableIterativeChangeAnalysis]
|
|
7318
|
+
* ```
|
|
7319
|
+
* @version SDK: 1.41.0 | ThoughtSpot Cloud: 9.12.0.cl
|
|
7320
|
+
*/
|
|
7321
|
+
EnableIterativeChangeAnalysis = "enableIterativeChangeAnalysis",
|
|
7238
7322
|
/**
|
|
7239
7323
|
* Action ID to hide or disable Natural Language Search query.
|
|
7240
7324
|
*
|
|
@@ -7603,7 +7687,40 @@ export declare enum Action {
|
|
|
7603
7687
|
* ```
|
|
7604
7688
|
* @version SDK: 1.39.0 | ThoughtSpot Cloud: 10.10.0.cl
|
|
7605
7689
|
*/
|
|
7606
|
-
InConversationTraining = "InConversationTraining"
|
|
7690
|
+
InConversationTraining = "InConversationTraining",
|
|
7691
|
+
/**
|
|
7692
|
+
* Action ID to hide the warnings banner in
|
|
7693
|
+
* Spotter results. It's an EA feature and
|
|
7694
|
+
* handled by LD.
|
|
7695
|
+
* @example
|
|
7696
|
+
* ```js
|
|
7697
|
+
* hiddenAction: [Action.SpotterWarningsBanner]
|
|
7698
|
+
* ```
|
|
7699
|
+
* @version SDK: 1.41.0 | ThoughtSpot Cloud: 10.13.0.cl
|
|
7700
|
+
*/
|
|
7701
|
+
SpotterWarningsBanner = "SpotterWarningsBanner",
|
|
7702
|
+
/**
|
|
7703
|
+
* Action ID to hide the warnings border on the knowledge
|
|
7704
|
+
* card in Spotter results. It's an EA feature and
|
|
7705
|
+
* handled by LD.
|
|
7706
|
+
* @example
|
|
7707
|
+
* ```js
|
|
7708
|
+
* hiddenAction: [Action.SpotterWarningsOnTokens]
|
|
7709
|
+
* ```
|
|
7710
|
+
* @version SDK: 1.41.0 | ThoughtSpot Cloud: 10.13.0.cl
|
|
7711
|
+
*/
|
|
7712
|
+
SpotterWarningsOnTokens = "SpotterWarningsOnTokens",
|
|
7713
|
+
/**
|
|
7714
|
+
* Action ID to disable the click event handler on knowledge
|
|
7715
|
+
* card in Spotter results. It's an EA feature and
|
|
7716
|
+
* handled by LD.
|
|
7717
|
+
* @example
|
|
7718
|
+
* ```js
|
|
7719
|
+
* hiddenAction: [Action.SpotterTokenQuickEdit]
|
|
7720
|
+
* ```
|
|
7721
|
+
* @version SDK: 1.41.0 | ThoughtSpot Cloud: 10.13.0.cl
|
|
7722
|
+
*/
|
|
7723
|
+
SpotterTokenQuickEdit = "SpotterTokenQuickEdit"
|
|
7607
7724
|
}
|
|
7608
7725
|
export interface AnswerServiceType {
|
|
7609
7726
|
getAnswer?: (offset: number, batchSize: number) => any;
|
|
@@ -7797,7 +7914,8 @@ export interface SearchOptions {
|
|
|
7797
7914
|
*/
|
|
7798
7915
|
export interface SpotterEmbedViewConfig extends Omit<BaseViewConfig, 'primaryAction'> {
|
|
7799
7916
|
/**
|
|
7800
|
-
* The ID of the data source object. For example, Model, View, or Table. Spotter uses
|
|
7917
|
+
* The ID of the data source object. For example, Model, View, or Table. Spotter uses
|
|
7918
|
+
* this object to query data and generate Answers.
|
|
7801
7919
|
*/
|
|
7802
7920
|
worksheetId: string;
|
|
7803
7921
|
/**
|
|
@@ -7880,6 +7998,66 @@ export interface SpotterEmbedViewConfig extends Omit<BaseViewConfig, 'primaryAct
|
|
|
7880
7998
|
* @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
|
|
7881
7999
|
*/
|
|
7882
8000
|
hideSampleQuestions?: boolean;
|
|
8001
|
+
/**
|
|
8002
|
+
* The list of runtime filters to apply to a search Answer,
|
|
8003
|
+
* visualization, or Liveboard.
|
|
8004
|
+
*
|
|
8005
|
+
* Supported embed types: `SpotterEmbed`
|
|
8006
|
+
* @example
|
|
8007
|
+
* ```js
|
|
8008
|
+
* const embed = new SpotterEmbed('#tsEmbed', {
|
|
8009
|
+
* // other embed view config
|
|
8010
|
+
* runtimeFilters: [
|
|
8011
|
+
* {
|
|
8012
|
+
* columnName: 'color',
|
|
8013
|
+
* operator: RuntimeFilterOp.EQ,
|
|
8014
|
+
* values: ['red'],
|
|
8015
|
+
* },
|
|
8016
|
+
* ],
|
|
8017
|
+
* })
|
|
8018
|
+
* ```
|
|
8019
|
+
* @version SDK: 1.41.0 | ThoughtSpot: 10.13.0.cl
|
|
8020
|
+
*/
|
|
8021
|
+
runtimeFilters?: RuntimeFilter[];
|
|
8022
|
+
/**
|
|
8023
|
+
* Flag to control whether runtime filters should be included in the URL.
|
|
8024
|
+
* If true, filters will be passed via app initialization payload instead.
|
|
8025
|
+
* If false/undefined, filters will be added to URL (default behavior).
|
|
8026
|
+
*
|
|
8027
|
+
* Supported embed types: `SpotterEmbed`
|
|
8028
|
+
* @default false
|
|
8029
|
+
* @version SDK: 1.41.0 | ThoughtSpot: 10.13.0.cl
|
|
8030
|
+
*/
|
|
8031
|
+
excludeRuntimeFiltersfromURL?: boolean;
|
|
8032
|
+
/**
|
|
8033
|
+
* The list of runtime parameters to apply to the conversation.
|
|
8034
|
+
*
|
|
8035
|
+
* Supported embed types: `SpotterEmbed`
|
|
8036
|
+
* @example
|
|
8037
|
+
* ```js
|
|
8038
|
+
* const embed = new SpotterEmbed('#tsEmbed', {
|
|
8039
|
+
* // other embed view config
|
|
8040
|
+
* runtimeParameters: [
|
|
8041
|
+
* {
|
|
8042
|
+
* name: 'Integer Param',
|
|
8043
|
+
* value: 10,
|
|
8044
|
+
* },
|
|
8045
|
+
* ],
|
|
8046
|
+
* })
|
|
8047
|
+
* ```
|
|
8048
|
+
* @version SDK: 1.41.0 | ThoughtSpot: 10.13.0.cl
|
|
8049
|
+
*/
|
|
8050
|
+
runtimeParameters?: RuntimeParameter[];
|
|
8051
|
+
/**
|
|
8052
|
+
* Flag to control whether runtime parameters should be included in the URL.
|
|
8053
|
+
* If true, parameters will be passed via app initialization payload instead.
|
|
8054
|
+
* If false/undefined, parameters will be added to URL (default behavior).
|
|
8055
|
+
*
|
|
8056
|
+
* Supported embed types: `SpotterEmbed`
|
|
8057
|
+
* @default false
|
|
8058
|
+
* @version SDK: 1.41.0 | ThoughtSpot: 10.13.0.cl
|
|
8059
|
+
*/
|
|
8060
|
+
excludeRuntimeParametersfromURL?: boolean;
|
|
7883
8061
|
}
|
|
7884
8062
|
/**
|
|
7885
8063
|
* The configuration for the embedded spotterEmbed options.
|
|
@@ -8003,19 +8181,15 @@ export declare class TsEmbed {
|
|
|
8003
8181
|
protected isRendered: boolean;
|
|
8004
8182
|
protected hostEventClient: HostEventClient;
|
|
8005
8183
|
protected isReadyForRenderPromise: Promise<void>;
|
|
8006
|
-
id: string;
|
|
8007
8184
|
constructor(domSelector: DOMSelector, viewConfig?: ViewConfig);
|
|
8008
8185
|
/**
|
|
8009
8186
|
* Handles errors within the SDK
|
|
8010
8187
|
* @param error The error message or object
|
|
8011
8188
|
*/
|
|
8012
8189
|
protected handleError(error: string | Record<string, unknown>): void;
|
|
8013
|
-
isEmbedContainerLoaded: boolean;
|
|
8014
8190
|
protected getAuthTokenForCookielessInit(): Promise<string>;
|
|
8015
8191
|
protected getDefaultAppInitData(): Promise<DefaultAppInitData>;
|
|
8016
8192
|
protected getAppInitData(): Promise<DefaultAppInitData>;
|
|
8017
|
-
protected getPreRenderObj<T extends TsEmbed>(): T;
|
|
8018
|
-
protected triggerAfterLoad(eventType: HostEvent, data: TriggerPayload<any, HostEvent>, onEventTriggered?: () => void): void;
|
|
8019
8193
|
/**
|
|
8020
8194
|
* Constructs the base URL string to load the ThoughtSpot app.
|
|
8021
8195
|
* @param query
|
|
@@ -8129,6 +8303,19 @@ export declare class TsEmbed {
|
|
|
8129
8303
|
* ```
|
|
8130
8304
|
*/
|
|
8131
8305
|
off(messageType: EmbedEvent, callback: MessageCallback): typeof TsEmbed.prototype;
|
|
8306
|
+
/**
|
|
8307
|
+
* @hidden
|
|
8308
|
+
* Internal state to track if the embed container is loaded.
|
|
8309
|
+
* This is used to trigger events after the embed container is loaded.
|
|
8310
|
+
*/
|
|
8311
|
+
isEmbedContainerLoaded: boolean;
|
|
8312
|
+
protected getPreRenderObj<T extends TsEmbed>(): T;
|
|
8313
|
+
/**
|
|
8314
|
+
* Executes a callback after the embed container is loaded.
|
|
8315
|
+
* @param callback The callback to execute
|
|
8316
|
+
*/
|
|
8317
|
+
protected executeAfterEmbedContainerLoaded(callback: () => void): void;
|
|
8318
|
+
protected createEmbedContainerHandler: (source: EmbedEvent.AuthInit | EmbedEvent.EmbedListenerReady) => () => void;
|
|
8132
8319
|
/**
|
|
8133
8320
|
* Triggers an event to the embedded app
|
|
8134
8321
|
* @param {HostEvent} messageType The event type
|
|
@@ -8730,6 +8917,322 @@ export interface CustomCssVariables {
|
|
|
8730
8917
|
* Background color of checkbox.
|
|
8731
8918
|
*/
|
|
8732
8919
|
'--ts-var-checkbox-background-color'?: string;
|
|
8920
|
+
/**
|
|
8921
|
+
* Height of the tiles in the Liveboard.
|
|
8922
|
+
*/
|
|
8923
|
+
'--ts-var-viz-tile-height'?: string;
|
|
8924
|
+
/**
|
|
8925
|
+
* Background color of the layout in the Liveboard.
|
|
8926
|
+
*/
|
|
8927
|
+
'--ts-var-liveboard-layout-background'?: string;
|
|
8928
|
+
/**
|
|
8929
|
+
* Font color of the title of the layout in the Liveboard.
|
|
8930
|
+
*/
|
|
8931
|
+
'--ts-var-liveboard-layout-title-color'?: string;
|
|
8932
|
+
/**
|
|
8933
|
+
* Font size of the title of the layout in the Liveboard.
|
|
8934
|
+
*/
|
|
8935
|
+
'--ts-var-liveboard-layout-title-fontsize'?: string;
|
|
8936
|
+
/**
|
|
8937
|
+
* Background color of the header in the Liveboard.
|
|
8938
|
+
*/
|
|
8939
|
+
'--ts-var-liveboard-header-background'?: string;
|
|
8940
|
+
/**
|
|
8941
|
+
* Font size of the header in the Liveboard.
|
|
8942
|
+
*/
|
|
8943
|
+
'--ts-var-liveboard-header-fontsize'?: string;
|
|
8944
|
+
/**
|
|
8945
|
+
* Font color of the header in the Liveboard.
|
|
8946
|
+
*/
|
|
8947
|
+
'--ts-var-liveboard-header-font-color'?: string;
|
|
8948
|
+
/**
|
|
8949
|
+
* Border color of the tiles in the Liveboard.
|
|
8950
|
+
*/
|
|
8951
|
+
'--ts-var-liveboard-tile-border-color'?: string;
|
|
8952
|
+
/**
|
|
8953
|
+
* Background color of the tiles in the Liveboard.
|
|
8954
|
+
*/
|
|
8955
|
+
'--ts-var-liveboard-tile-background'?: string;
|
|
8956
|
+
/**
|
|
8957
|
+
* Border radius of the tiles in the Liveboard.
|
|
8958
|
+
*/
|
|
8959
|
+
'--ts-var-liveboard-tile-border-radius'?: string;
|
|
8960
|
+
/**
|
|
8961
|
+
* Padding of the tiles in the Liveboard.
|
|
8962
|
+
*/
|
|
8963
|
+
'--ts-var-liveboard-tile-padding'?: string;
|
|
8964
|
+
/**
|
|
8965
|
+
* Background color of the table header in the Liveboard.
|
|
8966
|
+
*/
|
|
8967
|
+
'--ts-var-liveboard-tile-table-header-background'?: string;
|
|
8968
|
+
/**
|
|
8969
|
+
* Padding of the groups in the Liveboard.
|
|
8970
|
+
*/
|
|
8971
|
+
'--ts-var-liveboard-group-padding'?: string;
|
|
8972
|
+
/**
|
|
8973
|
+
* Padding of the title of the groups in the Liveboard.
|
|
8974
|
+
*/
|
|
8975
|
+
'--ts-var-liveboard-group-title-padding'?: string;
|
|
8976
|
+
/**
|
|
8977
|
+
* Font size of the title of the groups in the Liveboard.
|
|
8978
|
+
*/
|
|
8979
|
+
'--ts-var-liveboard-group-title-font-size'?: string;
|
|
8980
|
+
/**
|
|
8981
|
+
* Font weight of the title of the groups in the Liveboard.
|
|
8982
|
+
*/
|
|
8983
|
+
'--ts-var-liveboard-group-title-font-weight'?: string;
|
|
8984
|
+
/**
|
|
8985
|
+
* Font size of the title of the tiles inside the groups in the Liveboard.
|
|
8986
|
+
*/
|
|
8987
|
+
'--ts-var-liveboard-group-tile-title-font-size'?: string;
|
|
8988
|
+
/**
|
|
8989
|
+
* Font weight of the title of the tiles inside the groups in the Liveboard.
|
|
8990
|
+
*/
|
|
8991
|
+
'--ts-var-liveboard-group-tile-title-font-weight'?: string;
|
|
8992
|
+
/**
|
|
8993
|
+
* Font size of the description of the groups in the Liveboard.
|
|
8994
|
+
*/
|
|
8995
|
+
'--ts-var-liveboard-group-description-font-size'?: string;
|
|
8996
|
+
/**
|
|
8997
|
+
* Font weight of the description of the groups in the Liveboard.
|
|
8998
|
+
*/
|
|
8999
|
+
'--ts-var-liveboard-group-description-font-weight'?: string;
|
|
9000
|
+
/**
|
|
9001
|
+
* Border of the tiles in the Liveboard.
|
|
9002
|
+
*/
|
|
9003
|
+
'--ts-var-liveboard-group-tile-border'?: string;
|
|
9004
|
+
/**
|
|
9005
|
+
* Padding of the tiles in the Liveboard.
|
|
9006
|
+
*/
|
|
9007
|
+
'--ts-var-liveboard-group-tile-padding'?: string;
|
|
9008
|
+
/**
|
|
9009
|
+
* Padding of the answer viz in the Liveboard.
|
|
9010
|
+
*/
|
|
9011
|
+
'--ts-var-liveboard-answer-viz-padding'?: string;
|
|
9012
|
+
/**
|
|
9013
|
+
* Background color of the groups in the Liveboard.
|
|
9014
|
+
*/
|
|
9015
|
+
'--ts-var-liveboard-group-background'?: string;
|
|
9016
|
+
/**
|
|
9017
|
+
* Border color of the groups in the Liveboard.
|
|
9018
|
+
*/
|
|
9019
|
+
'--ts-var-liveboard-group-border-color'?: string;
|
|
9020
|
+
/**
|
|
9021
|
+
* Font color of the heading of the note title in the Liveboard.
|
|
9022
|
+
*/
|
|
9023
|
+
'--ts-var-liveboard-notetitle-heading-font-color'?: string;
|
|
9024
|
+
/**
|
|
9025
|
+
* Font color of the body of the note title in the Liveboard.
|
|
9026
|
+
*/
|
|
9027
|
+
'--ts-var-liveboard-notetitle-body-font-color'?: string;
|
|
9028
|
+
/**
|
|
9029
|
+
* Font color of the title of the groups in the Liveboard.
|
|
9030
|
+
*/
|
|
9031
|
+
'--ts-var-liveboard-group-title-font-color'?: string;
|
|
9032
|
+
/**
|
|
9033
|
+
* Font color of the description of the groups in the Liveboard.
|
|
9034
|
+
*/
|
|
9035
|
+
'--ts-var-liveboard-group-description-font-color'?: string;
|
|
9036
|
+
/**
|
|
9037
|
+
* Font color of the title of the tiles inside the groups in the Liveboard.
|
|
9038
|
+
*/
|
|
9039
|
+
'--ts-var-liveboard-group-tile-title-font-color'?: string;
|
|
9040
|
+
/**
|
|
9041
|
+
* Background color of the tiles inside the groups in the Liveboard.
|
|
9042
|
+
*/
|
|
9043
|
+
'--ts-var-liveboard-group-tile-background'?: string;
|
|
9044
|
+
/**
|
|
9045
|
+
* Background color of the chips in the Liveboard.
|
|
9046
|
+
*/
|
|
9047
|
+
'--ts-var-liveboard-chip-background'?: string;
|
|
9048
|
+
/**
|
|
9049
|
+
* Font color of the chips in the Liveboard.
|
|
9050
|
+
*/
|
|
9051
|
+
'--ts-var-liveboard-chip-color'?: string;
|
|
9052
|
+
/**
|
|
9053
|
+
* Background color of the chips in the Liveboard on hover.
|
|
9054
|
+
*/
|
|
9055
|
+
'--ts-var-liveboard-chip--hover-background'?: string;
|
|
9056
|
+
/**
|
|
9057
|
+
* Font color of the chips in the Liveboard on hover.
|
|
9058
|
+
*/
|
|
9059
|
+
'--ts-var-liveboard-chip--hover-color'?: string;
|
|
9060
|
+
/**
|
|
9061
|
+
* Background color of the chips in the Liveboard on active.
|
|
9062
|
+
*/
|
|
9063
|
+
'--ts-var-liveboard-chip--active-background'?: string;
|
|
9064
|
+
/**
|
|
9065
|
+
* Font color of the chips in the Liveboard on active.
|
|
9066
|
+
*/
|
|
9067
|
+
'--ts-var-liveboard-chip--active-color'?: string;
|
|
9068
|
+
/**
|
|
9069
|
+
* Width of the side panel in the Liveboard.
|
|
9070
|
+
*/
|
|
9071
|
+
'--ts-var-side-panel-width'?: string;
|
|
9072
|
+
/**
|
|
9073
|
+
* Background color of the edit bar in the Liveboard.
|
|
9074
|
+
*/
|
|
9075
|
+
'--ts-var-liveboard-edit-bar-background'?: string;
|
|
9076
|
+
/**
|
|
9077
|
+
* Breakpoint for the dual column layout in the Liveboard.
|
|
9078
|
+
*/
|
|
9079
|
+
'--ts-var-liveboard-dual-column-breakpoint'?: string;
|
|
9080
|
+
/**
|
|
9081
|
+
* Breakpoint for the single column layout in the Liveboard.
|
|
9082
|
+
*/
|
|
9083
|
+
'--ts-var-liveboard-single-column-breakpoint'?: string;
|
|
9084
|
+
/**
|
|
9085
|
+
* Background color of the cross filter layout in the Liveboard.
|
|
9086
|
+
*/
|
|
9087
|
+
'--ts-var-liveboard-cross-filter-layout-background'?: string;
|
|
9088
|
+
/**
|
|
9089
|
+
* Border color of the active tab in the Liveboard.
|
|
9090
|
+
*/
|
|
9091
|
+
'--ts-var-liveboard-tab-active-border-color'?: string;
|
|
9092
|
+
/**
|
|
9093
|
+
* Font color of the hover tab in the Liveboard.
|
|
9094
|
+
*/
|
|
9095
|
+
'--ts-var-liveboard-tab-hover-color'?: string;
|
|
9096
|
+
/**
|
|
9097
|
+
* Font size of the title of the tiles in the Liveboard.
|
|
9098
|
+
*/
|
|
9099
|
+
'--ts-var-liveboard-tile-title-fontsize'?: string;
|
|
9100
|
+
/**
|
|
9101
|
+
* Font weight of the title of the tiles in the Liveboard.
|
|
9102
|
+
*/
|
|
9103
|
+
'--ts-var-liveboard-tile-title-fontweight'?: string;
|
|
9104
|
+
/**
|
|
9105
|
+
* Font weight of the description of the tiles in the Liveboard.
|
|
9106
|
+
*/
|
|
9107
|
+
'--ts-var-liveboard-tile-description-font-weight'?: string;
|
|
9108
|
+
/**
|
|
9109
|
+
* Opacity of the description of the tiles in the Liveboard.
|
|
9110
|
+
*/
|
|
9111
|
+
'--ts-var-liveboard-tile-description-opacity'?: string;
|
|
9112
|
+
/**
|
|
9113
|
+
* Background color of the parameter chips in the Liveboard.
|
|
9114
|
+
*/
|
|
9115
|
+
'--ts-var-parameter-chip-background'?: string;
|
|
9116
|
+
/**
|
|
9117
|
+
* Font color of the parameter chips in the Liveboard.
|
|
9118
|
+
*/
|
|
9119
|
+
'--ts-var-parameter-chip-text-color'?: string;
|
|
9120
|
+
/**
|
|
9121
|
+
* Background color of the parameter chips in the Liveboard on hover.
|
|
9122
|
+
*/
|
|
9123
|
+
'--ts-var-parameter-chip-hover-background'?: string;
|
|
9124
|
+
/**
|
|
9125
|
+
* Font color of the parameter chips in the Liveboard on hover.
|
|
9126
|
+
*/
|
|
9127
|
+
'--ts-var-parameter-chip-hover-text-color'?: string;
|
|
9128
|
+
/**
|
|
9129
|
+
* Background color of the parameter chips in the Liveboard on active.
|
|
9130
|
+
*/
|
|
9131
|
+
'--ts-var-parameter-chip-active-background'?: string;
|
|
9132
|
+
/**
|
|
9133
|
+
* Font color of the parameter chips in the Liveboard on active.
|
|
9134
|
+
*/
|
|
9135
|
+
'--ts-var-parameter-chip-active-text-color'?: string;
|
|
9136
|
+
/**
|
|
9137
|
+
* Background color of the action button in the Liveboard header.
|
|
9138
|
+
*/
|
|
9139
|
+
'--ts-var-liveboard-header-action-button-background'?: string;
|
|
9140
|
+
/**
|
|
9141
|
+
* Font color of the action button in the Liveboard header.
|
|
9142
|
+
*/
|
|
9143
|
+
'--ts-var-liveboard-header-action-button-font-color'?: string;
|
|
9144
|
+
/**
|
|
9145
|
+
* Font color of the action button in the Liveboard header on hover.
|
|
9146
|
+
*/
|
|
9147
|
+
'--ts-var-liveboard-header-action-button-hover-color'?: string;
|
|
9148
|
+
/**
|
|
9149
|
+
* Font color of the action button in the Liveboard header on active.
|
|
9150
|
+
*/
|
|
9151
|
+
'--ts-var-liveboard-header-action-button-active-color'?: string;
|
|
9152
|
+
/**
|
|
9153
|
+
* Background color of the badge in the Liveboard header.
|
|
9154
|
+
*/
|
|
9155
|
+
'--ts-var-liveboard-header-badge-background'?: string;
|
|
9156
|
+
/**
|
|
9157
|
+
* Font color of the badge in the Liveboard header.
|
|
9158
|
+
*/
|
|
9159
|
+
'--ts-var-liveboard-header-badge-font-color'?: string;
|
|
9160
|
+
/**
|
|
9161
|
+
* Background color of the modified badge in the Liveboard header.
|
|
9162
|
+
*/
|
|
9163
|
+
'--ts-var-liveboard-header-badge-modified-background'?: string;
|
|
9164
|
+
/**
|
|
9165
|
+
* Font color of the modified badge in the Liveboard header.
|
|
9166
|
+
*/
|
|
9167
|
+
'--ts-var-liveboard-header-badge-modified-font-color'?: string;
|
|
9168
|
+
/**
|
|
9169
|
+
* Font color of the badge in the Liveboard header on hover.
|
|
9170
|
+
*/
|
|
9171
|
+
'--ts-var-liveboard-header-badge-hover-color'?: string;
|
|
9172
|
+
/**
|
|
9173
|
+
* Font color of the badge in the Liveboard header on active.
|
|
9174
|
+
*/
|
|
9175
|
+
'--ts-var-liveboard-header-badge-active-color'?: string;
|
|
9176
|
+
/**
|
|
9177
|
+
* Font color of the hero text in the KPI widget.
|
|
9178
|
+
*/
|
|
9179
|
+
'--ts-var-kpi-hero-color'?: string;
|
|
9180
|
+
/**
|
|
9181
|
+
* Font color of the comparison text in the KPI widget.
|
|
9182
|
+
*/
|
|
9183
|
+
'--ts-var-kpi-comparison-color'?: string;
|
|
9184
|
+
/**
|
|
9185
|
+
* Font color of the analyze text in the KPI widget.
|
|
9186
|
+
*/
|
|
9187
|
+
'--ts-var-kpi-analyze-text-color'?: string;
|
|
9188
|
+
/**
|
|
9189
|
+
* Font color of the legend title in the heatmap chart.
|
|
9190
|
+
*/
|
|
9191
|
+
'--ts-var-chart-heatmap-legend-title-color'?: string;
|
|
9192
|
+
/**
|
|
9193
|
+
* Font color of the legend label in the heatmap chart.
|
|
9194
|
+
*/
|
|
9195
|
+
'--ts-var-chart-heatmap-legend-label-color'?: string;
|
|
9196
|
+
/**
|
|
9197
|
+
* Font color of the legend title in the treemap chart.
|
|
9198
|
+
*/
|
|
9199
|
+
'--ts-var-chart-treemap-legend-title-color'?: string;
|
|
9200
|
+
/**
|
|
9201
|
+
* Font color of the legend label in the treemap chart.
|
|
9202
|
+
*/
|
|
9203
|
+
'--ts-var-chart-treemap-legend-label-color'?: string;
|
|
9204
|
+
/**
|
|
9205
|
+
* Color of the positive change in the KPI.
|
|
9206
|
+
*/
|
|
9207
|
+
'--ts-var-kpi-positive-change-color'?: string;
|
|
9208
|
+
/**
|
|
9209
|
+
* Color of the negative change in the KPI.
|
|
9210
|
+
*/
|
|
9211
|
+
'--ts-var-kpi-negative-change-color'?: string;
|
|
9212
|
+
/**
|
|
9213
|
+
* Background color of the change analysis insights.
|
|
9214
|
+
*/
|
|
9215
|
+
'--ts-var-change-analysis-insights-background'?: string;
|
|
9216
|
+
/**
|
|
9217
|
+
* Background color of the forecasting card in the SpotIQ analyze.
|
|
9218
|
+
*/
|
|
9219
|
+
'--ts-var-spotiq-analyze-forecasting-card-background'?: string;
|
|
9220
|
+
/**
|
|
9221
|
+
* Background color of the outlier card in the SpotIQ analyze.
|
|
9222
|
+
*/
|
|
9223
|
+
'--ts-var-spotiq-analyze-outlier-card-background'?: string;
|
|
9224
|
+
/**
|
|
9225
|
+
* Background color of the trend card in the SpotIQ analyze.
|
|
9226
|
+
*/
|
|
9227
|
+
'--ts-var-spotiq-analyze-trend-card-background'?: string;
|
|
9228
|
+
/**
|
|
9229
|
+
* Background color of the crosscorrelation card in the SpotIQ analyze.
|
|
9230
|
+
*/
|
|
9231
|
+
'--ts-var-spotiq-analyze-crosscorrelation-card-background'?: string;
|
|
9232
|
+
/**
|
|
9233
|
+
* Background color of the summary header in the CCA modal.
|
|
9234
|
+
*/
|
|
9235
|
+
'--ts-var-cca-modal-summary-header-background'?: string;
|
|
8733
9236
|
}
|
|
8734
9237
|
|
|
8735
9238
|
export interface SessionInterface {
|
|
@@ -9301,16 +9804,31 @@ export declare const getAnswerFromQuery: (query: string, worksheetId: string) =>
|
|
|
9301
9804
|
}>;
|
|
9302
9805
|
|
|
9303
9806
|
/**
|
|
9304
|
-
*
|
|
9305
|
-
*
|
|
9306
|
-
*
|
|
9807
|
+
* Creates a new Liveboard in ThoughtSpot using the provided AnswerService instances.
|
|
9808
|
+
*
|
|
9809
|
+
* Each answer will be added as a visualization to the newly created Liveboard.
|
|
9810
|
+
*
|
|
9811
|
+
* @param {AnswerService[]} answers - An array of initialized `AnswerService` instances
|
|
9812
|
+
* representing the answers to be added to the Liveboard.
|
|
9813
|
+
* @param {string} name - The name of the Liveboard to create.
|
|
9307
9814
|
* @returns result Promise
|
|
9308
9815
|
* @version SDK: 1.33.1 | ThoughtSpot: *
|
|
9309
9816
|
* @example
|
|
9310
9817
|
* ```js
|
|
9311
|
-
*
|
|
9312
|
-
*
|
|
9313
|
-
*
|
|
9818
|
+
* import { EmbedEvent, AnswerService } from "@thoughtspot/visual-embed-sdk";
|
|
9819
|
+
*
|
|
9820
|
+
* embed.on(EmbedEvent.Data, async () => {
|
|
9821
|
+
* try {
|
|
9822
|
+
* const answerService = await embed.getAnswerService();
|
|
9823
|
+
* const lb = await createLiveboardWithAnswers(
|
|
9824
|
+
* [answerService],
|
|
9825
|
+
* "My Liveboard"
|
|
9826
|
+
* );
|
|
9827
|
+
* console.log("Liveboard created:", lb);
|
|
9828
|
+
* } catch (err) {
|
|
9829
|
+
* console.error("Failed to create liveboard:", err);
|
|
9830
|
+
* }
|
|
9831
|
+
* });
|
|
9314
9832
|
* ```
|
|
9315
9833
|
*/
|
|
9316
9834
|
export declare const createLiveboardWithAnswers: (answers: AnswerService[], name: string) => Promise<any>;
|