@thoughtspot/visual-embed-sdk 1.40.1-alpha.1 → 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 +1 -0
- package/cjs/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/cjs/src/embed/bodyless-conversation.js +7 -3
- package/cjs/src/embed/bodyless-conversation.js.map +1 -1
- package/cjs/src/embed/conversation.d.ts +64 -2
- package/cjs/src/embed/conversation.d.ts.map +1 -1
- package/cjs/src/embed/conversation.js +16 -3
- 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 +12 -2
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +48 -18
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +211 -5
- package/cjs/src/embed/liveboard.spec.js.map +1 -1
- package/cjs/src/embed/sage.d.ts +1 -0
- package/cjs/src/embed/sage.d.ts.map +1 -1
- package/cjs/src/embed/sage.js +10 -6
- package/cjs/src/embed/sage.js.map +1 -1
- package/cjs/src/embed/search-bar.d.ts +1 -0
- package/cjs/src/embed/search-bar.d.ts.map +1 -1
- package/cjs/src/embed/search-bar.js +11 -7
- package/cjs/src/embed/search-bar.js.map +1 -1
- package/cjs/src/embed/search.d.ts +1 -0
- package/cjs/src/embed/search.d.ts.map +1 -1
- package/cjs/src/embed/search.js +7 -8
- package/cjs/src/embed/search.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts +24 -7
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +87 -57
- 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/index-k7pkZMhx.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 +5 -0
- package/dist/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/dist/src/embed/conversation.d.ts +64 -2
- package/dist/src/embed/conversation.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +11 -0
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/sage.d.ts +1 -0
- package/dist/src/embed/sage.d.ts.map +1 -1
- package/dist/src/embed/search-bar.d.ts +1 -0
- package/dist/src/embed/search-bar.d.ts.map +1 -1
- package/dist/src/embed/search.d.ts +1 -0
- package/dist/src/embed/search.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts +24 -0
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/react/index.d.ts +2 -0
- package/dist/src/react/index.d.ts.map +1 -1
- package/dist/src/types.d.ts +351 -30
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/graphql/nlsService/conversation-service.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 +551 -80
- package/dist/tsembed-react.js +550 -79
- package/dist/tsembed.es.js +572 -86
- package/dist/tsembed.js +571 -85
- package/dist/visual-embed-sdk-react-full.d.ts +787 -37
- package/dist/visual-embed-sdk-react.d.ts +787 -37
- package/dist/visual-embed-sdk.d.ts +785 -37
- 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 +1 -0
- package/lib/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/lib/src/embed/bodyless-conversation.js +7 -3
- package/lib/src/embed/bodyless-conversation.js.map +1 -1
- package/lib/src/embed/conversation.d.ts +64 -2
- package/lib/src/embed/conversation.d.ts.map +1 -1
- package/lib/src/embed/conversation.js +17 -4
- 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 +12 -2
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +48 -18
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +211 -5
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/embed/sage.d.ts +1 -0
- package/lib/src/embed/sage.d.ts.map +1 -1
- package/lib/src/embed/sage.js +10 -6
- package/lib/src/embed/sage.js.map +1 -1
- package/lib/src/embed/search-bar.d.ts +1 -0
- package/lib/src/embed/search-bar.d.ts.map +1 -1
- package/lib/src/embed/search-bar.js +11 -7
- package/lib/src/embed/search-bar.js.map +1 -1
- package/lib/src/embed/search.d.ts +1 -0
- package/lib/src/embed/search.d.ts.map +1 -1
- package/lib/src/embed/search.js +7 -8
- package/lib/src/embed/search.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts +24 -7
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +87 -57
- 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 +786 -38
- package/package.json +6 -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 +8 -3
- package/src/embed/conversation.spec.ts +131 -5
- package/src/embed/conversation.ts +102 -12
- package/src/embed/liveboard.spec.ts +264 -5
- package/src/embed/liveboard.ts +55 -20
- package/src/embed/sage.ts +12 -7
- package/src/embed/search-bar.tsx +14 -7
- package/src/embed/search.ts +18 -7
- package/src/embed/ts-embed.spec.ts +345 -113
- package/src/embed/ts-embed.ts +97 -67
- package/src/types.ts +199 -91
- package/src/utils/liveboardService/liveboardService.ts +21 -6
|
@@ -1121,6 +1121,17 @@ export class LiveboardEmbed extends V1Embed {
|
|
|
1121
1121
|
* embedded Liveboard or visualization.
|
|
1122
1122
|
*/
|
|
1123
1123
|
protected getEmbedParams(): string;
|
|
1124
|
+
protected getEmbedParamsObject(): any;
|
|
1125
|
+
/**
|
|
1126
|
+
* @hidden
|
|
1127
|
+
* Internal state to track the current liveboard id.
|
|
1128
|
+
* This is used to navigate to the correct liveboard when the prerender is visible.
|
|
1129
|
+
*/
|
|
1130
|
+
currentLiveboardState: {
|
|
1131
|
+
liveboardId: string;
|
|
1132
|
+
vizId: string;
|
|
1133
|
+
activeTabId: string;
|
|
1134
|
+
};
|
|
1124
1135
|
protected beforePrerenderVisible(): void;
|
|
1125
1136
|
protected handleRenderForPrerender(): Promise<TsEmbed>;
|
|
1126
1137
|
/**
|
|
@@ -1473,6 +1484,7 @@ export class SearchEmbed extends TsEmbed {
|
|
|
1473
1484
|
};
|
|
1474
1485
|
};
|
|
1475
1486
|
protected getAppInitData(): Promise<SearchAppInitData>;
|
|
1487
|
+
protected getEmbedParamsObject(): Record<any, any>;
|
|
1476
1488
|
protected getEmbedParams(): string;
|
|
1477
1489
|
/**
|
|
1478
1490
|
* Construct the URL of the embedded ThoughtSpot search to be
|
|
@@ -1594,6 +1606,7 @@ export class SearchBarEmbed extends TsEmbed {
|
|
|
1594
1606
|
protected viewConfig: SearchBarViewConfig;
|
|
1595
1607
|
protected embedComponentType: string;
|
|
1596
1608
|
constructor(domSelector: string, viewConfig: SearchBarViewConfig);
|
|
1609
|
+
protected getEmbedParamsObject(): Record<any, any>;
|
|
1597
1610
|
/**
|
|
1598
1611
|
* Render the embedded ThoughtSpot search
|
|
1599
1612
|
*/
|
|
@@ -1627,10 +1640,13 @@ export interface SpotterAgentMessageViewConfig extends SpotterAgentEmbedViewConf
|
|
|
1627
1640
|
genNo: number;
|
|
1628
1641
|
acSessionId: string;
|
|
1629
1642
|
acGenNo: number;
|
|
1643
|
+
convId: string;
|
|
1644
|
+
messageId: string;
|
|
1630
1645
|
}
|
|
1631
1646
|
export class ConversationMessage extends TsEmbed {
|
|
1632
1647
|
protected viewConfig: SpotterAgentMessageViewConfig;
|
|
1633
1648
|
constructor(container: HTMLElement, viewConfig: SpotterAgentMessageViewConfig);
|
|
1649
|
+
protected getEmbedParamsObject(): Record<any, any>;
|
|
1634
1650
|
getIframeSrc(): string;
|
|
1635
1651
|
render(): Promise<ConversationMessage>;
|
|
1636
1652
|
}
|
|
@@ -1674,6 +1690,8 @@ export class SpotterAgentEmbed {
|
|
|
1674
1690
|
data?: undefined;
|
|
1675
1691
|
} | {
|
|
1676
1692
|
data: {
|
|
1693
|
+
convId: any;
|
|
1694
|
+
messageId: any;
|
|
1677
1695
|
sessionId: any;
|
|
1678
1696
|
genNo: any;
|
|
1679
1697
|
acSessionId: any;
|
|
@@ -1721,7 +1739,8 @@ export interface SearchOptions {
|
|
|
1721
1739
|
*/
|
|
1722
1740
|
export interface SpotterEmbedViewConfig extends Omit<BaseViewConfig, 'primaryAction'> {
|
|
1723
1741
|
/**
|
|
1724
|
-
* The ID of the data source object. For example, Model, View, or Table. Spotter uses
|
|
1742
|
+
* The ID of the data source object. For example, Model, View, or Table. Spotter uses
|
|
1743
|
+
* this object to query data and generate Answers.
|
|
1725
1744
|
*/
|
|
1726
1745
|
worksheetId: string;
|
|
1727
1746
|
/**
|
|
@@ -1804,6 +1823,66 @@ export interface SpotterEmbedViewConfig extends Omit<BaseViewConfig, 'primaryAct
|
|
|
1804
1823
|
* @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
|
|
1805
1824
|
*/
|
|
1806
1825
|
hideSampleQuestions?: boolean;
|
|
1826
|
+
/**
|
|
1827
|
+
* The list of runtime filters to apply to a search Answer,
|
|
1828
|
+
* visualization, or Liveboard.
|
|
1829
|
+
*
|
|
1830
|
+
* Supported embed types: `SpotterEmbed`
|
|
1831
|
+
* @example
|
|
1832
|
+
* ```js
|
|
1833
|
+
* const embed = new SpotterEmbed('#tsEmbed', {
|
|
1834
|
+
* // other embed view config
|
|
1835
|
+
* runtimeFilters: [
|
|
1836
|
+
* {
|
|
1837
|
+
* columnName: 'color',
|
|
1838
|
+
* operator: RuntimeFilterOp.EQ,
|
|
1839
|
+
* values: ['red'],
|
|
1840
|
+
* },
|
|
1841
|
+
* ],
|
|
1842
|
+
* })
|
|
1843
|
+
* ```
|
|
1844
|
+
* @version SDK: 1.41.0 | ThoughtSpot: 10.13.0.cl
|
|
1845
|
+
*/
|
|
1846
|
+
runtimeFilters?: RuntimeFilter[];
|
|
1847
|
+
/**
|
|
1848
|
+
* Flag to control whether runtime filters should be included in the URL.
|
|
1849
|
+
* If true, filters will be passed via app initialization payload instead.
|
|
1850
|
+
* If false/undefined, filters will be added to URL (default behavior).
|
|
1851
|
+
*
|
|
1852
|
+
* Supported embed types: `SpotterEmbed`
|
|
1853
|
+
* @default false
|
|
1854
|
+
* @version SDK: 1.41.0 | ThoughtSpot: 10.13.0.cl
|
|
1855
|
+
*/
|
|
1856
|
+
excludeRuntimeFiltersfromURL?: boolean;
|
|
1857
|
+
/**
|
|
1858
|
+
* The list of runtime parameters to apply to the conversation.
|
|
1859
|
+
*
|
|
1860
|
+
* Supported embed types: `SpotterEmbed`
|
|
1861
|
+
* @example
|
|
1862
|
+
* ```js
|
|
1863
|
+
* const embed = new SpotterEmbed('#tsEmbed', {
|
|
1864
|
+
* // other embed view config
|
|
1865
|
+
* runtimeParameters: [
|
|
1866
|
+
* {
|
|
1867
|
+
* name: 'Integer Param',
|
|
1868
|
+
* value: 10,
|
|
1869
|
+
* },
|
|
1870
|
+
* ],
|
|
1871
|
+
* })
|
|
1872
|
+
* ```
|
|
1873
|
+
* @version SDK: 1.41.0 | ThoughtSpot: 10.13.0.cl
|
|
1874
|
+
*/
|
|
1875
|
+
runtimeParameters?: RuntimeParameter[];
|
|
1876
|
+
/**
|
|
1877
|
+
* Flag to control whether runtime parameters should be included in the URL.
|
|
1878
|
+
* If true, parameters will be passed via app initialization payload instead.
|
|
1879
|
+
* If false/undefined, parameters will be added to URL (default behavior).
|
|
1880
|
+
*
|
|
1881
|
+
* Supported embed types: `SpotterEmbed`
|
|
1882
|
+
* @default false
|
|
1883
|
+
* @version SDK: 1.41.0 | ThoughtSpot: 10.13.0.cl
|
|
1884
|
+
*/
|
|
1885
|
+
excludeRuntimeParametersfromURL?: boolean;
|
|
1807
1886
|
}
|
|
1808
1887
|
/**
|
|
1809
1888
|
* The configuration for the embedded spotterEmbed options.
|
|
@@ -1831,6 +1910,7 @@ export interface ConversationViewConfig extends SpotterEmbedViewConfig {
|
|
|
1831
1910
|
export class SpotterEmbed extends TsEmbed {
|
|
1832
1911
|
protected viewConfig: SpotterEmbedViewConfig;
|
|
1833
1912
|
constructor(container: HTMLElement, viewConfig: SpotterEmbedViewConfig);
|
|
1913
|
+
protected getEmbedParamsObject(): Record<any, any>;
|
|
1834
1914
|
getIframeSrc(): string;
|
|
1835
1915
|
render(): Promise<SpotterEmbed>;
|
|
1836
1916
|
}
|
|
@@ -3147,12 +3227,14 @@ export interface HomePageConfig {
|
|
|
3147
3227
|
* Hide list page columns
|
|
3148
3228
|
* For example: hiddenListColumns = [ListPageColumns.Author]
|
|
3149
3229
|
*
|
|
3150
|
-
* **Note**: This option is available only in full app embedding.
|
|
3230
|
+
* **Note**: This option is available only in full app embedding. To use it, you need to import `ListPageColumns` enum.
|
|
3151
3231
|
*
|
|
3152
3232
|
* Supported embed types: `AppEmbed`
|
|
3153
3233
|
* @version SDK: 1.38.0 | ThoughtSpot: 10.9.0.cl
|
|
3154
3234
|
* @example
|
|
3155
3235
|
* ```js
|
|
3236
|
+
* import { ListPageColumns } from '@thoughtspot/visual-embed-sdk';
|
|
3237
|
+
*
|
|
3156
3238
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
3157
3239
|
* ... //other embed view config
|
|
3158
3240
|
* hiddenListColumns : [ListPageColumns.Favorite,ListPageColumns.Author],
|
|
@@ -3167,11 +3249,14 @@ export interface HomePageConfig {
|
|
|
3167
3249
|
* **Note**: This option does not apply to the classic homepage.
|
|
3168
3250
|
* To access the updated modular homepage, set
|
|
3169
3251
|
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
3252
|
+
* To use it, you need to import `HomepageModule` enum.
|
|
3170
3253
|
*
|
|
3171
3254
|
* Supported embed types: `AppEmbed`
|
|
3172
3255
|
* @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl, 10.1.0.sw
|
|
3173
3256
|
* @example
|
|
3174
3257
|
* ```js
|
|
3258
|
+
* import { HomepageModule } from '@thoughtspot/visual-embed-sdk';
|
|
3259
|
+
*
|
|
3175
3260
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
3176
3261
|
* ... //other embed view config
|
|
3177
3262
|
* hiddenHomepageModules : [HomepageModule.Favorite,HomepageModule.Learning],
|
|
@@ -3186,11 +3271,14 @@ export interface HomePageConfig {
|
|
|
3186
3271
|
* **Note**: This option does not apply to the classic homepage.
|
|
3187
3272
|
* To access the updated modular homepage, set
|
|
3188
3273
|
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
3274
|
+
* To use it, you need to import `HomepageModule` enum.
|
|
3189
3275
|
*
|
|
3190
3276
|
* Supported embed types: `AppEmbed`
|
|
3191
3277
|
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl, 10.1.0.sw
|
|
3192
3278
|
* @example
|
|
3193
3279
|
* ```js
|
|
3280
|
+
* import { HomepageModule } from '@thoughtspot/visual-embed-sdk';
|
|
3281
|
+
*
|
|
3194
3282
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
3195
3283
|
* ... //other embed view config
|
|
3196
3284
|
* reorderedHomepageModules:[HomepageModule.Favorite,HomepageModule.MyLibrary],
|
|
@@ -3206,6 +3294,8 @@ export interface HomePageConfig {
|
|
|
3206
3294
|
* Supported embed types: `AppEmbed`
|
|
3207
3295
|
* @example
|
|
3208
3296
|
* ```js
|
|
3297
|
+
* import { HomeLeftNavItem } from '@thoughtspot/visual-embed-sdk';
|
|
3298
|
+
*
|
|
3209
3299
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
3210
3300
|
* ... //other embed view config
|
|
3211
3301
|
* hiddenHomeLeftNavItems : [HomeLeftNavItem.Home,HomeLeftNavItem.Answers],
|
|
@@ -3215,6 +3305,7 @@ export interface HomePageConfig {
|
|
|
3215
3305
|
* **Note**: This option does not apply to the classic homepage.
|
|
3216
3306
|
* To access the updated modular homepage, set
|
|
3217
3307
|
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
3308
|
+
* To use it, you need to import `HomeLeftNavItem` enum.
|
|
3218
3309
|
* @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl, 10.1.0.sw
|
|
3219
3310
|
*/
|
|
3220
3311
|
hiddenHomeLeftNavItems?: HomeLeftNavItem[];
|
|
@@ -4423,7 +4514,7 @@ export enum EmbedEvent {
|
|
|
4423
4514
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
4424
4515
|
* @example
|
|
4425
4516
|
*```js
|
|
4426
|
-
* liveboardEmbed.on(EmbedEvent.
|
|
4517
|
+
* liveboardEmbed.on(EmbedEvent.LiveboardInfo, payload => {
|
|
4427
4518
|
* console.log('Liveboard details', payload);
|
|
4428
4519
|
* })
|
|
4429
4520
|
*```
|
|
@@ -4796,7 +4887,96 @@ export enum EmbedEvent {
|
|
|
4796
4887
|
* @version SDK : 1.39.0 | ThoughtSpot : 10.10.0.cl
|
|
4797
4888
|
* @hidden
|
|
4798
4889
|
*/
|
|
4799
|
-
RequestVisibleEmbedCoordinates = "requestVisibleEmbedCoordinates"
|
|
4890
|
+
RequestVisibleEmbedCoordinates = "requestVisibleEmbedCoordinates",
|
|
4891
|
+
/**
|
|
4892
|
+
* Emitted when Spotter response is text data
|
|
4893
|
+
* @example
|
|
4894
|
+
* ```js
|
|
4895
|
+
* spotterEmbed.on(EmbedEvent.SpotterData, (payload) => {
|
|
4896
|
+
* console.log('payload', payload);
|
|
4897
|
+
* })
|
|
4898
|
+
*```
|
|
4899
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
4900
|
+
*/
|
|
4901
|
+
SpotterData = "SpotterData",
|
|
4902
|
+
/**
|
|
4903
|
+
* Emitted when user opens up the worksheet preview modal in Spotter embed.
|
|
4904
|
+
* @example
|
|
4905
|
+
* ```js
|
|
4906
|
+
* spotterEmbed.on(EmbedEvent.PreviewSpotterData, (payload) => {
|
|
4907
|
+
* console.log('payload', payload);
|
|
4908
|
+
* })
|
|
4909
|
+
*```
|
|
4910
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
4911
|
+
*/
|
|
4912
|
+
PreviewSpotterData = "PreviewSpotterData",
|
|
4913
|
+
/**
|
|
4914
|
+
* Emitted when the Spotter query is triggered in Spotter embed.
|
|
4915
|
+
* @example
|
|
4916
|
+
* ```js
|
|
4917
|
+
* spotterEmbed.on(EmbedEvent.SpotterQueryTriggered, (payload) => {
|
|
4918
|
+
* console.log('payload', payload);
|
|
4919
|
+
* })
|
|
4920
|
+
*```
|
|
4921
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
4922
|
+
*/
|
|
4923
|
+
SpotterQueryTriggered = "SpotterQueryTriggered",
|
|
4924
|
+
/**
|
|
4925
|
+
* Emitted when the last Spotter query is edited in Spotter embed.
|
|
4926
|
+
* @example
|
|
4927
|
+
* ```js
|
|
4928
|
+
* spotterEmbed.on(EmbedEvent.LastPromptEdited, (payload) => {
|
|
4929
|
+
* console.log('payload', payload);
|
|
4930
|
+
* })
|
|
4931
|
+
*```
|
|
4932
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
4933
|
+
*/
|
|
4934
|
+
LastPromptEdited = "LastPromptEdited",
|
|
4935
|
+
/**
|
|
4936
|
+
* Emitted when the last Spotter query is deleted in Spotter embed.
|
|
4937
|
+
* @example
|
|
4938
|
+
* ```js
|
|
4939
|
+
* spotterEmbed.on(EmbedEvent.LastPromptDeleted, (payload) => {
|
|
4940
|
+
* console.log('payload', payload);
|
|
4941
|
+
* })
|
|
4942
|
+
*```
|
|
4943
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
4944
|
+
*/
|
|
4945
|
+
LastPromptDeleted = "LastPromptDeleted",
|
|
4946
|
+
/**
|
|
4947
|
+
* Emitted when the coversation is reset in spotter embed.
|
|
4948
|
+
* @example
|
|
4949
|
+
* ```js
|
|
4950
|
+
* spotterEmbed.on(EmbedEvent.ResetSpotterConversation, (payload) => {
|
|
4951
|
+
* console.log('payload', payload);
|
|
4952
|
+
* })
|
|
4953
|
+
*```
|
|
4954
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
4955
|
+
*/
|
|
4956
|
+
ResetSpotterConversation = "ResetSpotterConversation",
|
|
4957
|
+
/**
|
|
4958
|
+
* Emitted when the *Spotter* is initialized.
|
|
4959
|
+
* @example
|
|
4960
|
+
* ```js
|
|
4961
|
+
* spotterEmbed.on(EmbedEvent.SpotterInit, (payload) => {
|
|
4962
|
+
* console.log('payload', payload);
|
|
4963
|
+
* })
|
|
4964
|
+
*```
|
|
4965
|
+
* @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
|
|
4966
|
+
*/
|
|
4967
|
+
SpotterInit = "spotterInit",
|
|
4968
|
+
/**
|
|
4969
|
+
* @hidden
|
|
4970
|
+
* Triggers when the embed listener is ready to receive events.
|
|
4971
|
+
* This is used to trigger events after the embed container is loaded.
|
|
4972
|
+
* @example
|
|
4973
|
+
* ```js
|
|
4974
|
+
* liveboardEmbed.on(EmbedEvent.EmbedListenerReady, () => {
|
|
4975
|
+
* console.log('EmbedListenerReady');
|
|
4976
|
+
* })
|
|
4977
|
+
* ```
|
|
4978
|
+
*/
|
|
4979
|
+
EmbedListenerReady = "EmbedListenerReady"
|
|
4800
4980
|
}
|
|
4801
4981
|
/**
|
|
4802
4982
|
* Event types that can be triggered by the host application
|
|
@@ -4814,7 +4994,7 @@ export enum EmbedEvent {
|
|
|
4814
4994
|
* // create the liveboard embed.
|
|
4815
4995
|
*
|
|
4816
4996
|
* liveboardEmbed.trigger(HostEvent.UpdateRuntimeFilters, [
|
|
4817
|
-
* { columnName: 'state, operator: RuntimeFilterOp.EQ, values: [
|
|
4997
|
+
* { columnName: 'state', operator: RuntimeFilterOp.EQ, values: ["california"]}
|
|
4818
4998
|
* ]);
|
|
4819
4999
|
* ```
|
|
4820
5000
|
* @example
|
|
@@ -4884,6 +5064,7 @@ export enum HostEvent {
|
|
|
4884
5064
|
* done automatically on the most popular column.
|
|
4885
5065
|
* @param - vizId [TS >= 9.8.0] - Optional. The GUID of the visualization to drill
|
|
4886
5066
|
* in case of a Liveboard.
|
|
5067
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
4887
5068
|
* @example
|
|
4888
5069
|
* ```js
|
|
4889
5070
|
* searchEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
|
|
@@ -5022,12 +5203,12 @@ export enum HostEvent {
|
|
|
5022
5203
|
* Works with Search and Liveboard embed.
|
|
5023
5204
|
* @param - { columnId: string,
|
|
5024
5205
|
* name: string,
|
|
5025
|
-
* type:
|
|
5026
|
-
* dataType:
|
|
5206
|
+
* type: ATTRIBUTE/MEASURE,
|
|
5207
|
+
* dataType: INT64/CHAR/DATE }
|
|
5027
5208
|
* @example
|
|
5028
5209
|
* ```js
|
|
5029
5210
|
* searchEmbed.trigger(HostEvent.OpenFilter,
|
|
5030
|
-
* {column: { columnId: '<column-GUID>', name: 'column name', type: '
|
|
5211
|
+
* {column: { columnId: '<column-GUID>', name: 'column name', type: 'ATTRIBUTE', dataType: 'INT64'}})
|
|
5031
5212
|
* ```
|
|
5032
5213
|
* @example
|
|
5033
5214
|
* ```js
|
|
@@ -5085,6 +5266,7 @@ export enum HostEvent {
|
|
|
5085
5266
|
* @param
|
|
5086
5267
|
* `vizId`- GUID of the saved Answer or visualization to pin to a Liveboard.
|
|
5087
5268
|
* Optional when pinning a new chart or table generated from a Search query.
|
|
5269
|
+
* **Required** in Spotter Embed.
|
|
5088
5270
|
* @param
|
|
5089
5271
|
* `liveboardID` - GUID of the Liveboard to pin an Answer. If there is no Liveboard,
|
|
5090
5272
|
* specify the `newLiveboardName` parameter to create a new Liveboard.
|
|
@@ -5132,6 +5314,12 @@ export enum HostEvent {
|
|
|
5132
5314
|
* ```js
|
|
5133
5315
|
* appEmbed.trigger(HostEvent.Pin)
|
|
5134
5316
|
* ```
|
|
5317
|
+
* @example
|
|
5318
|
+
* ```js
|
|
5319
|
+
* const pinResponse = await spotterEmbed.trigger(HostEvent.Pin, {
|
|
5320
|
+
* vizId:'730496d6-6903-4601-937e-2c691821af3c'
|
|
5321
|
+
* });
|
|
5322
|
+
* ```
|
|
5135
5323
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
5136
5324
|
*/
|
|
5137
5325
|
Pin = "pin",
|
|
@@ -5196,12 +5384,21 @@ export enum HostEvent {
|
|
|
5196
5384
|
* Trigger the **Download PDF** action on an embedded Liveboard,
|
|
5197
5385
|
* visualization or Answer.
|
|
5198
5386
|
*
|
|
5387
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5388
|
+
*
|
|
5199
5389
|
* **NOTE**: The **Download** > **PDF** action is available on
|
|
5200
5390
|
* visualizations and Answers if the data is in tabular format.
|
|
5201
5391
|
* @example
|
|
5202
5392
|
* ```js
|
|
5203
5393
|
* liveboardEmbed.trigger(HostEvent.DownloadAsPdf)
|
|
5204
5394
|
* ```
|
|
5395
|
+
* @example
|
|
5396
|
+
* ```js
|
|
5397
|
+
* spotterEmbed.trigger(HostEvent.DownloadAsPdf, {
|
|
5398
|
+
* vizId:'730496d6-6903-4601-937e-2c691821af3c'
|
|
5399
|
+
* });
|
|
5400
|
+
* ```
|
|
5401
|
+
*
|
|
5205
5402
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
5206
5403
|
*/
|
|
5207
5404
|
DownloadAsPdf = "downloadAsPdf",
|
|
@@ -5225,6 +5422,12 @@ export enum HostEvent {
|
|
|
5225
5422
|
* ```js
|
|
5226
5423
|
* searchEmbed.trigger(HostEvent.MakeACopy)
|
|
5227
5424
|
* ```
|
|
5425
|
+
* @example
|
|
5426
|
+
* ```js
|
|
5427
|
+
* const pinResponse = await spotterEmbed.trigger(HostEvent.MakeACopy, {
|
|
5428
|
+
* vizId:'730496d6-6903-4601-937e-2c691821af3c'
|
|
5429
|
+
* });
|
|
5430
|
+
* ```
|
|
5228
5431
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
5229
5432
|
*/
|
|
5230
5433
|
MakeACopy = "makeACopy",
|
|
@@ -5297,6 +5500,8 @@ export enum HostEvent {
|
|
|
5297
5500
|
* This event is not supported in visualization embed and search embed.
|
|
5298
5501
|
* @param - object - To trigger the action for a specific visualization
|
|
5299
5502
|
* in Liveboard embed, pass in `vizId` as a key.
|
|
5503
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5504
|
+
*
|
|
5300
5505
|
* @example
|
|
5301
5506
|
* ```js
|
|
5302
5507
|
* liveboardEmbed.trigger(HostEvent.Edit)
|
|
@@ -5305,6 +5510,18 @@ export enum HostEvent {
|
|
|
5305
5510
|
* liveboardEmbed.trigger(HostEvent.Edit, {vizId:
|
|
5306
5511
|
* '730496d6-6903-4601-937e-2c691821af3c'})
|
|
5307
5512
|
* ```
|
|
5513
|
+
* @example
|
|
5514
|
+
* ```js
|
|
5515
|
+
* const pinResponse = await spotterEmbed.trigger(HostEvent.Edit, {
|
|
5516
|
+
* vizId:'730496d6-6903-4601-937e-2c691821af3c'
|
|
5517
|
+
* });
|
|
5518
|
+
* ```
|
|
5519
|
+
* @example
|
|
5520
|
+
* ```js
|
|
5521
|
+
* const editResponse = await spotterEmbed.trigger(HostEvent.Edit, {
|
|
5522
|
+
* vizId:'730496d6-6903-4601-937e-2c691821af3c'
|
|
5523
|
+
* });
|
|
5524
|
+
* ```
|
|
5308
5525
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
5309
5526
|
*/
|
|
5310
5527
|
Edit = "edit",
|
|
@@ -5352,6 +5569,16 @@ export enum HostEvent {
|
|
|
5352
5569
|
* );
|
|
5353
5570
|
* })
|
|
5354
5571
|
* ```
|
|
5572
|
+
* @example
|
|
5573
|
+
* ```js
|
|
5574
|
+
* spotterEmbed.trigger(HostEvent.GetTML, {
|
|
5575
|
+
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
5576
|
+
* }).then((tml) => {
|
|
5577
|
+
* console.log(
|
|
5578
|
+
* tml.answer.search_query // TML representation of the search query
|
|
5579
|
+
* );
|
|
5580
|
+
* })
|
|
5581
|
+
* ```
|
|
5355
5582
|
* @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1.sw
|
|
5356
5583
|
* @important
|
|
5357
5584
|
*/
|
|
@@ -5415,6 +5642,7 @@ export enum HostEvent {
|
|
|
5415
5642
|
/**
|
|
5416
5643
|
* Trigger the **Download** action on charts in
|
|
5417
5644
|
* the embedded view.
|
|
5645
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5418
5646
|
* @example
|
|
5419
5647
|
* ```js
|
|
5420
5648
|
* liveboardEmbed.trigger(HostEvent.Download, {vizId:
|
|
@@ -5423,6 +5651,11 @@ export enum HostEvent {
|
|
|
5423
5651
|
* ```js
|
|
5424
5652
|
* embed.trigger(HostEvent.Download)
|
|
5425
5653
|
* ```
|
|
5654
|
+
* ```js
|
|
5655
|
+
* spotterEmbed.trigger(HostEvent.Download, {
|
|
5656
|
+
* vizId:'730496d6-6903-4601-937e-2c691821af3c'
|
|
5657
|
+
* });
|
|
5658
|
+
* ```
|
|
5426
5659
|
* @deprecated from SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl ,9.4.1.sw
|
|
5427
5660
|
* Use {@link DownloadAsPng}
|
|
5428
5661
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
@@ -5439,13 +5672,19 @@ export enum HostEvent {
|
|
|
5439
5672
|
* vizEmbed.trigger(HostEvent.DownloadAsPng)
|
|
5440
5673
|
*
|
|
5441
5674
|
* searchEmbed.trigger(HostEvent.DownloadAsPng)
|
|
5675
|
+
*
|
|
5676
|
+
* spotterEmbed.trigger(HostEvent.DownloadAsPng, {
|
|
5677
|
+
* vizId:"730496d6-6903-4601-937e-2c691821af3c"
|
|
5678
|
+
* })
|
|
5442
5679
|
* ```
|
|
5680
|
+
*
|
|
5443
5681
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.1.sw
|
|
5444
5682
|
*/
|
|
5445
5683
|
DownloadAsPng = "downloadAsPng",
|
|
5446
5684
|
/**
|
|
5447
5685
|
* Trigger the **Download** > **CSV** action on tables in
|
|
5448
5686
|
* the embedded view.
|
|
5687
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5449
5688
|
* @example
|
|
5450
5689
|
* ```js
|
|
5451
5690
|
* liveboardEmbed.trigger(HostEvent.DownloadAsCsv, {vizId:
|
|
@@ -5457,12 +5696,18 @@ export enum HostEvent {
|
|
|
5457
5696
|
* ```js
|
|
5458
5697
|
* searchEmbed.trigger(HostEvent.DownloadAsCsv)
|
|
5459
5698
|
* ```
|
|
5699
|
+
* ```js
|
|
5700
|
+
* spotterEmbed.trigger(HostEvent.DownloadAsCsv, {
|
|
5701
|
+
* vizId:"730496d6-6903-4601-937e-2c691821af3c"
|
|
5702
|
+
* })
|
|
5703
|
+
* ```
|
|
5460
5704
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
5461
5705
|
*/
|
|
5462
5706
|
DownloadAsCsv = "downloadAsCSV",
|
|
5463
5707
|
/**
|
|
5464
5708
|
* Trigger the **Download** > **XLSX** action on tables
|
|
5465
5709
|
* in the embedded view.
|
|
5710
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5466
5711
|
* @example
|
|
5467
5712
|
* ```js
|
|
5468
5713
|
* liveboardEmbed.trigger(HostEvent.DownloadAsXlsx, {vizId:
|
|
@@ -5474,6 +5719,11 @@ export enum HostEvent {
|
|
|
5474
5719
|
* ```js
|
|
5475
5720
|
* searchEmbed.trigger(HostEvent.DownloadAsXlsx)
|
|
5476
5721
|
* ```
|
|
5722
|
+
* ```js
|
|
5723
|
+
* spotterEmbed.trigger(HostEvent.downloadAsXLSX, {
|
|
5724
|
+
* vizId:"730496d6-6903-4601-937e-2c691821af3c"
|
|
5725
|
+
* })
|
|
5726
|
+
* ```
|
|
5477
5727
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
5478
5728
|
*/
|
|
5479
5729
|
DownloadAsXlsx = "downloadAsXLSX",
|
|
@@ -5493,6 +5743,7 @@ export enum HostEvent {
|
|
|
5493
5743
|
/**
|
|
5494
5744
|
* Trigger the **Save** action on a Liveboard or Answer.
|
|
5495
5745
|
* Saves the changes.
|
|
5746
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5496
5747
|
* @example
|
|
5497
5748
|
* ```js
|
|
5498
5749
|
* liveboardEmbed.trigger(HostEvent.Save)
|
|
@@ -5500,6 +5751,11 @@ export enum HostEvent {
|
|
|
5500
5751
|
* ```js
|
|
5501
5752
|
* searchEmbed.trigger(HostEvent.Save)
|
|
5502
5753
|
* ```
|
|
5754
|
+
* ```js
|
|
5755
|
+
* spotterEmbed.trigger(HostEvent.Save, {
|
|
5756
|
+
* vizId:"730496d6-6903-4601-937e-2c691821af3c"
|
|
5757
|
+
* })
|
|
5758
|
+
* ```
|
|
5503
5759
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
5504
5760
|
*/
|
|
5505
5761
|
Save = "save",
|
|
@@ -5783,7 +6039,7 @@ export enum HostEvent {
|
|
|
5783
6039
|
ResetLiveboardPersonalisedView = "ResetLiveboardPersonalisedView",
|
|
5784
6040
|
/**
|
|
5785
6041
|
* Triggers an action to update Parameter values on embedded
|
|
5786
|
-
* Answers and
|
|
6042
|
+
* Answers, Liveboard and Spotter answer in Edit mode.
|
|
5787
6043
|
*
|
|
5788
6044
|
* @example
|
|
5789
6045
|
* ```js
|
|
@@ -5797,11 +6053,19 @@ export enum HostEvent {
|
|
|
5797
6053
|
UpdateParameters = "UpdateParameters",
|
|
5798
6054
|
/**
|
|
5799
6055
|
* Triggers GetParameters to fetch the runtime Parameters.
|
|
6056
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5800
6057
|
* ```js
|
|
5801
6058
|
* liveboardEmbed.trigger(HostEvent.GetParameters).then((parameter) => {
|
|
5802
6059
|
* console.log('parameters', parameter);
|
|
5803
6060
|
* });
|
|
5804
6061
|
*```
|
|
6062
|
+
*```js
|
|
6063
|
+
* spotterEmbed.trigger(HostEvent.GetParameters, {
|
|
6064
|
+
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
6065
|
+
* }).then((parameter) => {
|
|
6066
|
+
* console.log('parameters', parameter);
|
|
6067
|
+
* });
|
|
6068
|
+
*```
|
|
5805
6069
|
* @version SDK: 1.29.0 | ThoughtSpot: 10.1.0.cl, 10.1.0.sw
|
|
5806
6070
|
*/
|
|
5807
6071
|
GetParameters = "GetParameters",
|
|
@@ -5833,7 +6097,7 @@ export enum HostEvent {
|
|
|
5833
6097
|
* @param - optional attributes to set Answer properties.
|
|
5834
6098
|
* `name` - Name string for the Answer.
|
|
5835
6099
|
* `description` - Description text for the Answer.
|
|
5836
|
-
*
|
|
6100
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5837
6101
|
* @example
|
|
5838
6102
|
* ```js
|
|
5839
6103
|
* const saveAnswerResponse = await searchEmbed.trigger(HostEvent.SaveAnswer, {
|
|
@@ -5841,6 +6105,14 @@ export enum HostEvent {
|
|
|
5841
6105
|
* description: "Total sales by states in MidWest"
|
|
5842
6106
|
* });
|
|
5843
6107
|
* ```
|
|
6108
|
+
* @example
|
|
6109
|
+
* ```js
|
|
6110
|
+
* const saveAnswerResponse = await spotterEmbed.trigger(HostEvent.SaveAnswer, {
|
|
6111
|
+
* vizId: '730496d6-6903-4601-937e-2c691821af3c',
|
|
6112
|
+
* name: "Sales by states",
|
|
6113
|
+
* description: "Total sales by states in MidWest"
|
|
6114
|
+
* });
|
|
6115
|
+
* ```
|
|
5844
6116
|
* @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
|
|
5845
6117
|
*/
|
|
5846
6118
|
SaveAnswer = "saveAnswer",
|
|
@@ -5869,6 +6141,70 @@ export enum HostEvent {
|
|
|
5869
6141
|
* @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl
|
|
5870
6142
|
*/
|
|
5871
6143
|
TransformTableVizData = "TransformTableVizData",
|
|
6144
|
+
/**
|
|
6145
|
+
* Triggers a search operation with the search tokens specified in
|
|
6146
|
+
* the search query string in spotter embed.
|
|
6147
|
+
* @param - `query`: Text string in Natural Language format
|
|
6148
|
+
* @param - `executeSearch`: Boolean to execute search and update search query
|
|
6149
|
+
* @example
|
|
6150
|
+
* ```js
|
|
6151
|
+
* spotterEmbed.trigger(HostEvent.SpotterSearch, {
|
|
6152
|
+
* query: 'revenue per year',
|
|
6153
|
+
* executeSearch: true,
|
|
6154
|
+
* })
|
|
6155
|
+
* ```
|
|
6156
|
+
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
6157
|
+
*/
|
|
6158
|
+
SpotterSearch = "SpotterSearch",
|
|
6159
|
+
/**
|
|
6160
|
+
* Edits the last prompt in spotter embed.
|
|
6161
|
+
* @param - `query`: Text string
|
|
6162
|
+
* @example
|
|
6163
|
+
* ```js
|
|
6164
|
+
* spotterEmbed.trigger(HostEvent.EditLastPrompt, "revenue per year");
|
|
6165
|
+
* ```
|
|
6166
|
+
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
6167
|
+
*/
|
|
6168
|
+
EditLastPrompt = "EditLastPrompt",
|
|
6169
|
+
/**
|
|
6170
|
+
* Opens the Worksheet preview modal in Spotter Embed.
|
|
6171
|
+
* @example
|
|
6172
|
+
* ```js
|
|
6173
|
+
* spotterEmbed.trigger(HostEvent.PreviewSpotterData);
|
|
6174
|
+
* ```
|
|
6175
|
+
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
6176
|
+
*/
|
|
6177
|
+
PreviewSpotterData = "PreviewSpotterData",
|
|
6178
|
+
/**
|
|
6179
|
+
* Resets the Spotter Embed Conversation.
|
|
6180
|
+
* @example
|
|
6181
|
+
* ```js
|
|
6182
|
+
* spotterEmbed.trigger(HostEvent.ResetSpotterConversation);
|
|
6183
|
+
* ```
|
|
6184
|
+
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
6185
|
+
*/
|
|
6186
|
+
ResetSpotterConversation = "ResetSpotterConversation",
|
|
6187
|
+
/**
|
|
6188
|
+
* Deletes the last prompt in spotter embed.
|
|
6189
|
+
* @example
|
|
6190
|
+
* ```js
|
|
6191
|
+
* spotterEmbed.trigger(HostEvent.DeleteLastPrompt);
|
|
6192
|
+
* ```
|
|
6193
|
+
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
6194
|
+
*/
|
|
6195
|
+
DeleteLastPrompt = "DeleteLastPrompt",
|
|
6196
|
+
/**
|
|
6197
|
+
* Toggle the visualization to chart or table view.
|
|
6198
|
+
* @param - `vizId ` refers to the answer id in spotter Embed, it is required in spotter Embed.
|
|
6199
|
+
* @example
|
|
6200
|
+
* ```js
|
|
6201
|
+
* spotterEmbed.trigger(HostEvent.AnswerChartSwitcher, {
|
|
6202
|
+
* vizId:'b535c760-8bbe-4e6f-bb26-af56b4129a1e'
|
|
6203
|
+
* });
|
|
6204
|
+
*```
|
|
6205
|
+
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
6206
|
+
*/
|
|
6207
|
+
AnswerChartSwitcher = "answerChartSwitcher",
|
|
5872
6208
|
/**
|
|
5873
6209
|
* @hidden
|
|
5874
6210
|
* Trigger exit from presentation mode when user exits fullscreen.
|
|
@@ -5891,7 +6227,28 @@ export enum HostEvent {
|
|
|
5891
6227
|
*
|
|
5892
6228
|
* @hidden
|
|
5893
6229
|
*/
|
|
5894
|
-
VisibleEmbedCoordinates = "visibleEmbedCoordinates"
|
|
6230
|
+
VisibleEmbedCoordinates = "visibleEmbedCoordinates",
|
|
6231
|
+
/**
|
|
6232
|
+
* Trigger the *Ask Spotter* action for visualizations
|
|
6233
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
6234
|
+
* @example
|
|
6235
|
+
* ```js
|
|
6236
|
+
* spotterEmbed.trigger(HostEvent.AskSpotter,
|
|
6237
|
+
* {vizId:'730496d6-6903-4601-937e-2c691821af3c'})
|
|
6238
|
+
* ```
|
|
6239
|
+
* @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
|
|
6240
|
+
*/
|
|
6241
|
+
AskSpotter = "AskSpotter",
|
|
6242
|
+
/**
|
|
6243
|
+
* @hidden
|
|
6244
|
+
* Triggers the update of the embed params.
|
|
6245
|
+
*
|
|
6246
|
+
* @example
|
|
6247
|
+
* ```js
|
|
6248
|
+
* liveboardEmbed.trigger(HostEvent.UpdateEmbedParams, viewConfig);
|
|
6249
|
+
* ```
|
|
6250
|
+
*/
|
|
6251
|
+
UpdateEmbedParams = "updateEmbedParams"
|
|
5895
6252
|
}
|
|
5896
6253
|
/**
|
|
5897
6254
|
* The different visual modes that the data sources panel within
|
|
@@ -6179,27 +6536,27 @@ export enum Action {
|
|
|
6179
6536
|
*/
|
|
6180
6537
|
ConfigureFilter = "configureFilter",
|
|
6181
6538
|
/**
|
|
6182
|
-
|
|
6183
|
-
|
|
6184
|
-
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
|
|
6188
|
-
|
|
6189
|
-
|
|
6190
|
-
|
|
6539
|
+
* The **Collapse data sources** icon on the Search page.
|
|
6540
|
+
* Collapses the panel showing data sources.
|
|
6541
|
+
*
|
|
6542
|
+
* @example
|
|
6543
|
+
* ```js
|
|
6544
|
+
* disabledActions: [Action.CollapseDataPanel]
|
|
6545
|
+
* ```
|
|
6546
|
+
* @version: SDK: 1.1.0 | ThoughtSpot Cloud: ts7.may.cl, 8.4.1.sw
|
|
6547
|
+
*/
|
|
6191
6548
|
CollapseDataSources = "collapseDataSources",
|
|
6192
6549
|
/**
|
|
6193
|
-
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
|
|
6202
|
-
|
|
6550
|
+
* The **Collapse data panel** icon on the Search page.
|
|
6551
|
+
* Collapses the data panel view.
|
|
6552
|
+
*
|
|
6553
|
+
* @version: SDK: 1.34.0 | ThoughtSpot Cloud: 10.3.0.cl
|
|
6554
|
+
*
|
|
6555
|
+
* @example
|
|
6556
|
+
* ```js
|
|
6557
|
+
* disabledActions: [Action.CollapseDataPanel]
|
|
6558
|
+
* ```
|
|
6559
|
+
*/
|
|
6203
6560
|
CollapseDataPanel = "collapseDataPanel",
|
|
6204
6561
|
/**
|
|
6205
6562
|
* The **Choose sources** button on Search page.
|
|
@@ -6895,6 +7252,17 @@ export enum Action {
|
|
|
6895
7252
|
* @version SDK: 1.25.0 | ThoughtSpot Cloud: 9.6.0.cl
|
|
6896
7253
|
*/
|
|
6897
7254
|
EnableContextualChangeAnalysis = "enableContextualChangeAnalysis",
|
|
7255
|
+
/**
|
|
7256
|
+
* Action ID to hide or disable Iterative Change Analysis option
|
|
7257
|
+
* on contextual change analysis Inisght charts context menu
|
|
7258
|
+
*
|
|
7259
|
+
* @example
|
|
7260
|
+
* ```js
|
|
7261
|
+
* disabledActions: [Action.EnableIterativeChangeAnalysis]
|
|
7262
|
+
* ```
|
|
7263
|
+
* @version SDK: 1.41.0 | ThoughtSpot Cloud: 9.12.0.cl
|
|
7264
|
+
*/
|
|
7265
|
+
EnableIterativeChangeAnalysis = "enableIterativeChangeAnalysis",
|
|
6898
7266
|
/**
|
|
6899
7267
|
* Action ID to hide or disable Natural Language Search query.
|
|
6900
7268
|
*
|
|
@@ -7263,7 +7631,40 @@ export enum Action {
|
|
|
7263
7631
|
* ```
|
|
7264
7632
|
* @version SDK: 1.39.0 | ThoughtSpot Cloud: 10.10.0.cl
|
|
7265
7633
|
*/
|
|
7266
|
-
InConversationTraining = "InConversationTraining"
|
|
7634
|
+
InConversationTraining = "InConversationTraining",
|
|
7635
|
+
/**
|
|
7636
|
+
* Action ID to hide the warnings banner in
|
|
7637
|
+
* Spotter results. It's an EA feature and
|
|
7638
|
+
* handled by LD.
|
|
7639
|
+
* @example
|
|
7640
|
+
* ```js
|
|
7641
|
+
* hiddenAction: [Action.SpotterWarningsBanner]
|
|
7642
|
+
* ```
|
|
7643
|
+
* @version SDK: 1.41.0 | ThoughtSpot Cloud: 10.13.0.cl
|
|
7644
|
+
*/
|
|
7645
|
+
SpotterWarningsBanner = "SpotterWarningsBanner",
|
|
7646
|
+
/**
|
|
7647
|
+
* Action ID to hide the warnings border on the knowledge
|
|
7648
|
+
* card in Spotter results. It's an EA feature and
|
|
7649
|
+
* handled by LD.
|
|
7650
|
+
* @example
|
|
7651
|
+
* ```js
|
|
7652
|
+
* hiddenAction: [Action.SpotterWarningsOnTokens]
|
|
7653
|
+
* ```
|
|
7654
|
+
* @version SDK: 1.41.0 | ThoughtSpot Cloud: 10.13.0.cl
|
|
7655
|
+
*/
|
|
7656
|
+
SpotterWarningsOnTokens = "SpotterWarningsOnTokens",
|
|
7657
|
+
/**
|
|
7658
|
+
* Action ID to disable the click event handler on knowledge
|
|
7659
|
+
* card in Spotter results. It's an EA feature and
|
|
7660
|
+
* handled by LD.
|
|
7661
|
+
* @example
|
|
7662
|
+
* ```js
|
|
7663
|
+
* hiddenAction: [Action.SpotterTokenQuickEdit]
|
|
7664
|
+
* ```
|
|
7665
|
+
* @version SDK: 1.41.0 | ThoughtSpot Cloud: 10.13.0.cl
|
|
7666
|
+
*/
|
|
7667
|
+
SpotterTokenQuickEdit = "SpotterTokenQuickEdit"
|
|
7267
7668
|
}
|
|
7268
7669
|
export interface AnswerServiceType {
|
|
7269
7670
|
getAnswer?: (offset: number, batchSize: number) => any;
|
|
@@ -7810,6 +8211,322 @@ export interface CustomCssVariables {
|
|
|
7810
8211
|
* Background color of checkbox.
|
|
7811
8212
|
*/
|
|
7812
8213
|
'--ts-var-checkbox-background-color'?: string;
|
|
8214
|
+
/**
|
|
8215
|
+
* Height of the tiles in the Liveboard.
|
|
8216
|
+
*/
|
|
8217
|
+
'--ts-var-viz-tile-height'?: string;
|
|
8218
|
+
/**
|
|
8219
|
+
* Background color of the layout in the Liveboard.
|
|
8220
|
+
*/
|
|
8221
|
+
'--ts-var-liveboard-layout-background'?: string;
|
|
8222
|
+
/**
|
|
8223
|
+
* Font color of the title of the layout in the Liveboard.
|
|
8224
|
+
*/
|
|
8225
|
+
'--ts-var-liveboard-layout-title-color'?: string;
|
|
8226
|
+
/**
|
|
8227
|
+
* Font size of the title of the layout in the Liveboard.
|
|
8228
|
+
*/
|
|
8229
|
+
'--ts-var-liveboard-layout-title-fontsize'?: string;
|
|
8230
|
+
/**
|
|
8231
|
+
* Background color of the header in the Liveboard.
|
|
8232
|
+
*/
|
|
8233
|
+
'--ts-var-liveboard-header-background'?: string;
|
|
8234
|
+
/**
|
|
8235
|
+
* Font size of the header in the Liveboard.
|
|
8236
|
+
*/
|
|
8237
|
+
'--ts-var-liveboard-header-fontsize'?: string;
|
|
8238
|
+
/**
|
|
8239
|
+
* Font color of the header in the Liveboard.
|
|
8240
|
+
*/
|
|
8241
|
+
'--ts-var-liveboard-header-font-color'?: string;
|
|
8242
|
+
/**
|
|
8243
|
+
* Border color of the tiles in the Liveboard.
|
|
8244
|
+
*/
|
|
8245
|
+
'--ts-var-liveboard-tile-border-color'?: string;
|
|
8246
|
+
/**
|
|
8247
|
+
* Background color of the tiles in the Liveboard.
|
|
8248
|
+
*/
|
|
8249
|
+
'--ts-var-liveboard-tile-background'?: string;
|
|
8250
|
+
/**
|
|
8251
|
+
* Border radius of the tiles in the Liveboard.
|
|
8252
|
+
*/
|
|
8253
|
+
'--ts-var-liveboard-tile-border-radius'?: string;
|
|
8254
|
+
/**
|
|
8255
|
+
* Padding of the tiles in the Liveboard.
|
|
8256
|
+
*/
|
|
8257
|
+
'--ts-var-liveboard-tile-padding'?: string;
|
|
8258
|
+
/**
|
|
8259
|
+
* Background color of the table header in the Liveboard.
|
|
8260
|
+
*/
|
|
8261
|
+
'--ts-var-liveboard-tile-table-header-background'?: string;
|
|
8262
|
+
/**
|
|
8263
|
+
* Padding of the groups in the Liveboard.
|
|
8264
|
+
*/
|
|
8265
|
+
'--ts-var-liveboard-group-padding'?: string;
|
|
8266
|
+
/**
|
|
8267
|
+
* Padding of the title of the groups in the Liveboard.
|
|
8268
|
+
*/
|
|
8269
|
+
'--ts-var-liveboard-group-title-padding'?: string;
|
|
8270
|
+
/**
|
|
8271
|
+
* Font size of the title of the groups in the Liveboard.
|
|
8272
|
+
*/
|
|
8273
|
+
'--ts-var-liveboard-group-title-font-size'?: string;
|
|
8274
|
+
/**
|
|
8275
|
+
* Font weight of the title of the groups in the Liveboard.
|
|
8276
|
+
*/
|
|
8277
|
+
'--ts-var-liveboard-group-title-font-weight'?: string;
|
|
8278
|
+
/**
|
|
8279
|
+
* Font size of the title of the tiles inside the groups in the Liveboard.
|
|
8280
|
+
*/
|
|
8281
|
+
'--ts-var-liveboard-group-tile-title-font-size'?: string;
|
|
8282
|
+
/**
|
|
8283
|
+
* Font weight of the title of the tiles inside the groups in the Liveboard.
|
|
8284
|
+
*/
|
|
8285
|
+
'--ts-var-liveboard-group-tile-title-font-weight'?: string;
|
|
8286
|
+
/**
|
|
8287
|
+
* Font size of the description of the groups in the Liveboard.
|
|
8288
|
+
*/
|
|
8289
|
+
'--ts-var-liveboard-group-description-font-size'?: string;
|
|
8290
|
+
/**
|
|
8291
|
+
* Font weight of the description of the groups in the Liveboard.
|
|
8292
|
+
*/
|
|
8293
|
+
'--ts-var-liveboard-group-description-font-weight'?: string;
|
|
8294
|
+
/**
|
|
8295
|
+
* Border of the tiles in the Liveboard.
|
|
8296
|
+
*/
|
|
8297
|
+
'--ts-var-liveboard-group-tile-border'?: string;
|
|
8298
|
+
/**
|
|
8299
|
+
* Padding of the tiles in the Liveboard.
|
|
8300
|
+
*/
|
|
8301
|
+
'--ts-var-liveboard-group-tile-padding'?: string;
|
|
8302
|
+
/**
|
|
8303
|
+
* Padding of the answer viz in the Liveboard.
|
|
8304
|
+
*/
|
|
8305
|
+
'--ts-var-liveboard-answer-viz-padding'?: string;
|
|
8306
|
+
/**
|
|
8307
|
+
* Background color of the groups in the Liveboard.
|
|
8308
|
+
*/
|
|
8309
|
+
'--ts-var-liveboard-group-background'?: string;
|
|
8310
|
+
/**
|
|
8311
|
+
* Border color of the groups in the Liveboard.
|
|
8312
|
+
*/
|
|
8313
|
+
'--ts-var-liveboard-group-border-color'?: string;
|
|
8314
|
+
/**
|
|
8315
|
+
* Font color of the heading of the note title in the Liveboard.
|
|
8316
|
+
*/
|
|
8317
|
+
'--ts-var-liveboard-notetitle-heading-font-color'?: string;
|
|
8318
|
+
/**
|
|
8319
|
+
* Font color of the body of the note title in the Liveboard.
|
|
8320
|
+
*/
|
|
8321
|
+
'--ts-var-liveboard-notetitle-body-font-color'?: string;
|
|
8322
|
+
/**
|
|
8323
|
+
* Font color of the title of the groups in the Liveboard.
|
|
8324
|
+
*/
|
|
8325
|
+
'--ts-var-liveboard-group-title-font-color'?: string;
|
|
8326
|
+
/**
|
|
8327
|
+
* Font color of the description of the groups in the Liveboard.
|
|
8328
|
+
*/
|
|
8329
|
+
'--ts-var-liveboard-group-description-font-color'?: string;
|
|
8330
|
+
/**
|
|
8331
|
+
* Font color of the title of the tiles inside the groups in the Liveboard.
|
|
8332
|
+
*/
|
|
8333
|
+
'--ts-var-liveboard-group-tile-title-font-color'?: string;
|
|
8334
|
+
/**
|
|
8335
|
+
* Background color of the tiles inside the groups in the Liveboard.
|
|
8336
|
+
*/
|
|
8337
|
+
'--ts-var-liveboard-group-tile-background'?: string;
|
|
8338
|
+
/**
|
|
8339
|
+
* Background color of the chips in the Liveboard.
|
|
8340
|
+
*/
|
|
8341
|
+
'--ts-var-liveboard-chip-background'?: string;
|
|
8342
|
+
/**
|
|
8343
|
+
* Font color of the chips in the Liveboard.
|
|
8344
|
+
*/
|
|
8345
|
+
'--ts-var-liveboard-chip-color'?: string;
|
|
8346
|
+
/**
|
|
8347
|
+
* Background color of the chips in the Liveboard on hover.
|
|
8348
|
+
*/
|
|
8349
|
+
'--ts-var-liveboard-chip--hover-background'?: string;
|
|
8350
|
+
/**
|
|
8351
|
+
* Font color of the chips in the Liveboard on hover.
|
|
8352
|
+
*/
|
|
8353
|
+
'--ts-var-liveboard-chip--hover-color'?: string;
|
|
8354
|
+
/**
|
|
8355
|
+
* Background color of the chips in the Liveboard on active.
|
|
8356
|
+
*/
|
|
8357
|
+
'--ts-var-liveboard-chip--active-background'?: string;
|
|
8358
|
+
/**
|
|
8359
|
+
* Font color of the chips in the Liveboard on active.
|
|
8360
|
+
*/
|
|
8361
|
+
'--ts-var-liveboard-chip--active-color'?: string;
|
|
8362
|
+
/**
|
|
8363
|
+
* Width of the side panel in the Liveboard.
|
|
8364
|
+
*/
|
|
8365
|
+
'--ts-var-side-panel-width'?: string;
|
|
8366
|
+
/**
|
|
8367
|
+
* Background color of the edit bar in the Liveboard.
|
|
8368
|
+
*/
|
|
8369
|
+
'--ts-var-liveboard-edit-bar-background'?: string;
|
|
8370
|
+
/**
|
|
8371
|
+
* Breakpoint for the dual column layout in the Liveboard.
|
|
8372
|
+
*/
|
|
8373
|
+
'--ts-var-liveboard-dual-column-breakpoint'?: string;
|
|
8374
|
+
/**
|
|
8375
|
+
* Breakpoint for the single column layout in the Liveboard.
|
|
8376
|
+
*/
|
|
8377
|
+
'--ts-var-liveboard-single-column-breakpoint'?: string;
|
|
8378
|
+
/**
|
|
8379
|
+
* Background color of the cross filter layout in the Liveboard.
|
|
8380
|
+
*/
|
|
8381
|
+
'--ts-var-liveboard-cross-filter-layout-background'?: string;
|
|
8382
|
+
/**
|
|
8383
|
+
* Border color of the active tab in the Liveboard.
|
|
8384
|
+
*/
|
|
8385
|
+
'--ts-var-liveboard-tab-active-border-color'?: string;
|
|
8386
|
+
/**
|
|
8387
|
+
* Font color of the hover tab in the Liveboard.
|
|
8388
|
+
*/
|
|
8389
|
+
'--ts-var-liveboard-tab-hover-color'?: string;
|
|
8390
|
+
/**
|
|
8391
|
+
* Font size of the title of the tiles in the Liveboard.
|
|
8392
|
+
*/
|
|
8393
|
+
'--ts-var-liveboard-tile-title-fontsize'?: string;
|
|
8394
|
+
/**
|
|
8395
|
+
* Font weight of the title of the tiles in the Liveboard.
|
|
8396
|
+
*/
|
|
8397
|
+
'--ts-var-liveboard-tile-title-fontweight'?: string;
|
|
8398
|
+
/**
|
|
8399
|
+
* Font weight of the description of the tiles in the Liveboard.
|
|
8400
|
+
*/
|
|
8401
|
+
'--ts-var-liveboard-tile-description-font-weight'?: string;
|
|
8402
|
+
/**
|
|
8403
|
+
* Opacity of the description of the tiles in the Liveboard.
|
|
8404
|
+
*/
|
|
8405
|
+
'--ts-var-liveboard-tile-description-opacity'?: string;
|
|
8406
|
+
/**
|
|
8407
|
+
* Background color of the parameter chips in the Liveboard.
|
|
8408
|
+
*/
|
|
8409
|
+
'--ts-var-parameter-chip-background'?: string;
|
|
8410
|
+
/**
|
|
8411
|
+
* Font color of the parameter chips in the Liveboard.
|
|
8412
|
+
*/
|
|
8413
|
+
'--ts-var-parameter-chip-text-color'?: string;
|
|
8414
|
+
/**
|
|
8415
|
+
* Background color of the parameter chips in the Liveboard on hover.
|
|
8416
|
+
*/
|
|
8417
|
+
'--ts-var-parameter-chip-hover-background'?: string;
|
|
8418
|
+
/**
|
|
8419
|
+
* Font color of the parameter chips in the Liveboard on hover.
|
|
8420
|
+
*/
|
|
8421
|
+
'--ts-var-parameter-chip-hover-text-color'?: string;
|
|
8422
|
+
/**
|
|
8423
|
+
* Background color of the parameter chips in the Liveboard on active.
|
|
8424
|
+
*/
|
|
8425
|
+
'--ts-var-parameter-chip-active-background'?: string;
|
|
8426
|
+
/**
|
|
8427
|
+
* Font color of the parameter chips in the Liveboard on active.
|
|
8428
|
+
*/
|
|
8429
|
+
'--ts-var-parameter-chip-active-text-color'?: string;
|
|
8430
|
+
/**
|
|
8431
|
+
* Background color of the action button in the Liveboard header.
|
|
8432
|
+
*/
|
|
8433
|
+
'--ts-var-liveboard-header-action-button-background'?: string;
|
|
8434
|
+
/**
|
|
8435
|
+
* Font color of the action button in the Liveboard header.
|
|
8436
|
+
*/
|
|
8437
|
+
'--ts-var-liveboard-header-action-button-font-color'?: string;
|
|
8438
|
+
/**
|
|
8439
|
+
* Font color of the action button in the Liveboard header on hover.
|
|
8440
|
+
*/
|
|
8441
|
+
'--ts-var-liveboard-header-action-button-hover-color'?: string;
|
|
8442
|
+
/**
|
|
8443
|
+
* Font color of the action button in the Liveboard header on active.
|
|
8444
|
+
*/
|
|
8445
|
+
'--ts-var-liveboard-header-action-button-active-color'?: string;
|
|
8446
|
+
/**
|
|
8447
|
+
* Background color of the badge in the Liveboard header.
|
|
8448
|
+
*/
|
|
8449
|
+
'--ts-var-liveboard-header-badge-background'?: string;
|
|
8450
|
+
/**
|
|
8451
|
+
* Font color of the badge in the Liveboard header.
|
|
8452
|
+
*/
|
|
8453
|
+
'--ts-var-liveboard-header-badge-font-color'?: string;
|
|
8454
|
+
/**
|
|
8455
|
+
* Background color of the modified badge in the Liveboard header.
|
|
8456
|
+
*/
|
|
8457
|
+
'--ts-var-liveboard-header-badge-modified-background'?: string;
|
|
8458
|
+
/**
|
|
8459
|
+
* Font color of the modified badge in the Liveboard header.
|
|
8460
|
+
*/
|
|
8461
|
+
'--ts-var-liveboard-header-badge-modified-font-color'?: string;
|
|
8462
|
+
/**
|
|
8463
|
+
* Font color of the badge in the Liveboard header on hover.
|
|
8464
|
+
*/
|
|
8465
|
+
'--ts-var-liveboard-header-badge-hover-color'?: string;
|
|
8466
|
+
/**
|
|
8467
|
+
* Font color of the badge in the Liveboard header on active.
|
|
8468
|
+
*/
|
|
8469
|
+
'--ts-var-liveboard-header-badge-active-color'?: string;
|
|
8470
|
+
/**
|
|
8471
|
+
* Font color of the hero text in the KPI widget.
|
|
8472
|
+
*/
|
|
8473
|
+
'--ts-var-kpi-hero-color'?: string;
|
|
8474
|
+
/**
|
|
8475
|
+
* Font color of the comparison text in the KPI widget.
|
|
8476
|
+
*/
|
|
8477
|
+
'--ts-var-kpi-comparison-color'?: string;
|
|
8478
|
+
/**
|
|
8479
|
+
* Font color of the analyze text in the KPI widget.
|
|
8480
|
+
*/
|
|
8481
|
+
'--ts-var-kpi-analyze-text-color'?: string;
|
|
8482
|
+
/**
|
|
8483
|
+
* Font color of the legend title in the heatmap chart.
|
|
8484
|
+
*/
|
|
8485
|
+
'--ts-var-chart-heatmap-legend-title-color'?: string;
|
|
8486
|
+
/**
|
|
8487
|
+
* Font color of the legend label in the heatmap chart.
|
|
8488
|
+
*/
|
|
8489
|
+
'--ts-var-chart-heatmap-legend-label-color'?: string;
|
|
8490
|
+
/**
|
|
8491
|
+
* Font color of the legend title in the treemap chart.
|
|
8492
|
+
*/
|
|
8493
|
+
'--ts-var-chart-treemap-legend-title-color'?: string;
|
|
8494
|
+
/**
|
|
8495
|
+
* Font color of the legend label in the treemap chart.
|
|
8496
|
+
*/
|
|
8497
|
+
'--ts-var-chart-treemap-legend-label-color'?: string;
|
|
8498
|
+
/**
|
|
8499
|
+
* Color of the positive change in the KPI.
|
|
8500
|
+
*/
|
|
8501
|
+
'--ts-var-kpi-positive-change-color'?: string;
|
|
8502
|
+
/**
|
|
8503
|
+
* Color of the negative change in the KPI.
|
|
8504
|
+
*/
|
|
8505
|
+
'--ts-var-kpi-negative-change-color'?: string;
|
|
8506
|
+
/**
|
|
8507
|
+
* Background color of the change analysis insights.
|
|
8508
|
+
*/
|
|
8509
|
+
'--ts-var-change-analysis-insights-background'?: string;
|
|
8510
|
+
/**
|
|
8511
|
+
* Background color of the forecasting card in the SpotIQ analyze.
|
|
8512
|
+
*/
|
|
8513
|
+
'--ts-var-spotiq-analyze-forecasting-card-background'?: string;
|
|
8514
|
+
/**
|
|
8515
|
+
* Background color of the outlier card in the SpotIQ analyze.
|
|
8516
|
+
*/
|
|
8517
|
+
'--ts-var-spotiq-analyze-outlier-card-background'?: string;
|
|
8518
|
+
/**
|
|
8519
|
+
* Background color of the trend card in the SpotIQ analyze.
|
|
8520
|
+
*/
|
|
8521
|
+
'--ts-var-spotiq-analyze-trend-card-background'?: string;
|
|
8522
|
+
/**
|
|
8523
|
+
* Background color of the crosscorrelation card in the SpotIQ analyze.
|
|
8524
|
+
*/
|
|
8525
|
+
'--ts-var-spotiq-analyze-crosscorrelation-card-background'?: string;
|
|
8526
|
+
/**
|
|
8527
|
+
* Background color of the summary header in the CCA modal.
|
|
8528
|
+
*/
|
|
8529
|
+
'--ts-var-cca-modal-summary-header-background'?: string;
|
|
7813
8530
|
}
|
|
7814
8531
|
|
|
7815
8532
|
/**
|
|
@@ -7954,6 +8671,7 @@ export class SageEmbed extends V1Embed {
|
|
|
7954
8671
|
*/
|
|
7955
8672
|
protected viewConfig: SageViewConfig;
|
|
7956
8673
|
constructor(domSelector: DOMSelector, viewConfig: SageViewConfig);
|
|
8674
|
+
protected getEmbedParamsObject(): Record<any, any>;
|
|
7957
8675
|
/**
|
|
7958
8676
|
* Constructs a map of parameters to be passed on to the
|
|
7959
8677
|
* embedded Eureka or Sage search page.
|
|
@@ -8297,16 +9015,31 @@ export const getAnswerFromQuery: (query: string, worksheetId: string) => Promise
|
|
|
8297
9015
|
}>;
|
|
8298
9016
|
|
|
8299
9017
|
/**
|
|
8300
|
-
*
|
|
8301
|
-
*
|
|
8302
|
-
*
|
|
9018
|
+
* Creates a new Liveboard in ThoughtSpot using the provided AnswerService instances.
|
|
9019
|
+
*
|
|
9020
|
+
* Each answer will be added as a visualization to the newly created Liveboard.
|
|
9021
|
+
*
|
|
9022
|
+
* @param {AnswerService[]} answers - An array of initialized `AnswerService` instances
|
|
9023
|
+
* representing the answers to be added to the Liveboard.
|
|
9024
|
+
* @param {string} name - The name of the Liveboard to create.
|
|
8303
9025
|
* @returns result Promise
|
|
8304
9026
|
* @version SDK: 1.33.1 | ThoughtSpot: *
|
|
8305
9027
|
* @example
|
|
8306
9028
|
* ```js
|
|
8307
|
-
*
|
|
8308
|
-
*
|
|
8309
|
-
*
|
|
9029
|
+
* import { EmbedEvent, AnswerService } from "@thoughtspot/visual-embed-sdk";
|
|
9030
|
+
*
|
|
9031
|
+
* embed.on(EmbedEvent.Data, async () => {
|
|
9032
|
+
* try {
|
|
9033
|
+
* const answerService = await embed.getAnswerService();
|
|
9034
|
+
* const lb = await createLiveboardWithAnswers(
|
|
9035
|
+
* [answerService],
|
|
9036
|
+
* "My Liveboard"
|
|
9037
|
+
* );
|
|
9038
|
+
* console.log("Liveboard created:", lb);
|
|
9039
|
+
* } catch (err) {
|
|
9040
|
+
* console.error("Failed to create liveboard:", err);
|
|
9041
|
+
* }
|
|
9042
|
+
* });
|
|
8310
9043
|
* ```
|
|
8311
9044
|
*/
|
|
8312
9045
|
export const createLiveboardWithAnswers: (answers: AnswerService[], name: string) => Promise<any>;
|
|
@@ -8479,6 +9212,7 @@ export class TsEmbed {
|
|
|
8479
9212
|
* @param query
|
|
8480
9213
|
*/
|
|
8481
9214
|
protected getEmbedBasePath(query: string): string;
|
|
9215
|
+
protected getUpdateEmbedParamsObject(): Record<any, any>;
|
|
8482
9216
|
/**
|
|
8483
9217
|
* Common query params set for all the embed modes.
|
|
8484
9218
|
* @param queryParams
|
|
@@ -8494,6 +9228,7 @@ export class TsEmbed {
|
|
|
8494
9228
|
*/
|
|
8495
9229
|
protected getV1EmbedBasePath(queryString: string): string;
|
|
8496
9230
|
protected getEmbedParams(): string;
|
|
9231
|
+
protected getEmbedParamsObject(): Record<any, any>;
|
|
8497
9232
|
protected getRootIframeSrc(): string;
|
|
8498
9233
|
protected createIframeEl(frameSrc: string): HTMLIFrameElement;
|
|
8499
9234
|
protected handleInsertionIntoDOM(child: string | Node): void;
|
|
@@ -8585,6 +9320,19 @@ export class TsEmbed {
|
|
|
8585
9320
|
* ```
|
|
8586
9321
|
*/
|
|
8587
9322
|
off(messageType: EmbedEvent, callback: MessageCallback): typeof TsEmbed.prototype;
|
|
9323
|
+
/**
|
|
9324
|
+
* @hidden
|
|
9325
|
+
* Internal state to track if the embed container is loaded.
|
|
9326
|
+
* This is used to trigger events after the embed container is loaded.
|
|
9327
|
+
*/
|
|
9328
|
+
isEmbedContainerLoaded: boolean;
|
|
9329
|
+
protected getPreRenderObj<T extends TsEmbed>(): T;
|
|
9330
|
+
/**
|
|
9331
|
+
* Executes a callback after the embed container is loaded.
|
|
9332
|
+
* @param callback The callback to execute
|
|
9333
|
+
*/
|
|
9334
|
+
protected executeAfterEmbedContainerLoaded(callback: () => void): void;
|
|
9335
|
+
protected createEmbedContainerHandler: (source: EmbedEvent.AuthInit | EmbedEvent.EmbedListenerReady) => () => void;
|
|
8588
9336
|
/**
|
|
8589
9337
|
* Triggers an event to the embedded app
|
|
8590
9338
|
* @param {HostEvent} messageType The event type
|