@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
|
@@ -354,6 +354,8 @@ export function useSpotterAgent(config: SpotterAgentEmbedViewConfig): {
|
|
|
354
354
|
query: string;
|
|
355
355
|
message: {
|
|
356
356
|
worksheetId: string;
|
|
357
|
+
convId: any;
|
|
358
|
+
messageId: any;
|
|
357
359
|
sessionId: any;
|
|
358
360
|
genNo: any;
|
|
359
361
|
acSessionId: any;
|
|
@@ -650,6 +652,7 @@ export declare class SearchBarEmbed extends TsEmbed {
|
|
|
650
652
|
protected viewConfig: SearchBarViewConfig;
|
|
651
653
|
protected embedComponentType: string;
|
|
652
654
|
constructor(domSelector: string, viewConfig: SearchBarViewConfig);
|
|
655
|
+
protected getEmbedParamsObject(): Record<any, any>;
|
|
653
656
|
/**
|
|
654
657
|
* Render the embedded ThoughtSpot search
|
|
655
658
|
*/
|
|
@@ -802,6 +805,7 @@ export declare class SageEmbed extends V1Embed {
|
|
|
802
805
|
*/
|
|
803
806
|
protected viewConfig: SageViewConfig;
|
|
804
807
|
constructor(domSelector: DOMSelector, viewConfig: SageViewConfig);
|
|
808
|
+
protected getEmbedParamsObject(): Record<any, any>;
|
|
805
809
|
/**
|
|
806
810
|
* Constructs a map of parameters to be passed on to the
|
|
807
811
|
* embedded Eureka or Sage search page.
|
|
@@ -1139,6 +1143,7 @@ export declare class SearchEmbed extends TsEmbed {
|
|
|
1139
1143
|
};
|
|
1140
1144
|
};
|
|
1141
1145
|
protected getAppInitData(): Promise<SearchAppInitData>;
|
|
1146
|
+
protected getEmbedParamsObject(): Record<any, any>;
|
|
1142
1147
|
protected getEmbedParams(): string;
|
|
1143
1148
|
/**
|
|
1144
1149
|
* Construct the URL of the embedded ThoughtSpot search to be
|
|
@@ -2119,6 +2124,17 @@ export declare class LiveboardEmbed extends V1Embed {
|
|
|
2119
2124
|
* embedded Liveboard or visualization.
|
|
2120
2125
|
*/
|
|
2121
2126
|
protected getEmbedParams(): string;
|
|
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
|
+
};
|
|
2122
2138
|
protected beforePrerenderVisible(): void;
|
|
2123
2139
|
protected handleRenderForPrerender(): Promise<TsEmbed>;
|
|
2124
2140
|
/**
|
|
@@ -2176,10 +2192,13 @@ export interface SpotterAgentMessageViewConfig extends SpotterAgentEmbedViewConf
|
|
|
2176
2192
|
genNo: number;
|
|
2177
2193
|
acSessionId: string;
|
|
2178
2194
|
acGenNo: number;
|
|
2195
|
+
convId: string;
|
|
2196
|
+
messageId: string;
|
|
2179
2197
|
}
|
|
2180
2198
|
export declare class ConversationMessage extends TsEmbed {
|
|
2181
2199
|
protected viewConfig: SpotterAgentMessageViewConfig;
|
|
2182
2200
|
constructor(container: HTMLElement, viewConfig: SpotterAgentMessageViewConfig);
|
|
2201
|
+
protected getEmbedParamsObject(): Record<any, any>;
|
|
2183
2202
|
getIframeSrc(): string;
|
|
2184
2203
|
render(): Promise<ConversationMessage>;
|
|
2185
2204
|
}
|
|
@@ -2223,6 +2242,8 @@ export declare class SpotterAgentEmbed {
|
|
|
2223
2242
|
data?: undefined;
|
|
2224
2243
|
} | {
|
|
2225
2244
|
data: {
|
|
2245
|
+
convId: any;
|
|
2246
|
+
messageId: any;
|
|
2226
2247
|
sessionId: any;
|
|
2227
2248
|
genNo: any;
|
|
2228
2249
|
acSessionId: any;
|
|
@@ -3262,12 +3283,14 @@ export interface HomePageConfig {
|
|
|
3262
3283
|
* Hide list page columns
|
|
3263
3284
|
* For example: hiddenListColumns = [ListPageColumns.Author]
|
|
3264
3285
|
*
|
|
3265
|
-
* **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.
|
|
3266
3287
|
*
|
|
3267
3288
|
* Supported embed types: `AppEmbed`
|
|
3268
3289
|
* @version SDK: 1.38.0 | ThoughtSpot: 10.9.0.cl
|
|
3269
3290
|
* @example
|
|
3270
3291
|
* ```js
|
|
3292
|
+
* import { ListPageColumns } from '@thoughtspot/visual-embed-sdk';
|
|
3293
|
+
*
|
|
3271
3294
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
3272
3295
|
* ... //other embed view config
|
|
3273
3296
|
* hiddenListColumns : [ListPageColumns.Favorite,ListPageColumns.Author],
|
|
@@ -3282,11 +3305,14 @@ export interface HomePageConfig {
|
|
|
3282
3305
|
* **Note**: This option does not apply to the classic homepage.
|
|
3283
3306
|
* To access the updated modular homepage, set
|
|
3284
3307
|
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
3308
|
+
* To use it, you need to import `HomepageModule` enum.
|
|
3285
3309
|
*
|
|
3286
3310
|
* Supported embed types: `AppEmbed`
|
|
3287
3311
|
* @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl, 10.1.0.sw
|
|
3288
3312
|
* @example
|
|
3289
3313
|
* ```js
|
|
3314
|
+
* import { HomepageModule } from '@thoughtspot/visual-embed-sdk';
|
|
3315
|
+
*
|
|
3290
3316
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
3291
3317
|
* ... //other embed view config
|
|
3292
3318
|
* hiddenHomepageModules : [HomepageModule.Favorite,HomepageModule.Learning],
|
|
@@ -3301,11 +3327,14 @@ export interface HomePageConfig {
|
|
|
3301
3327
|
* **Note**: This option does not apply to the classic homepage.
|
|
3302
3328
|
* To access the updated modular homepage, set
|
|
3303
3329
|
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
3330
|
+
* To use it, you need to import `HomepageModule` enum.
|
|
3304
3331
|
*
|
|
3305
3332
|
* Supported embed types: `AppEmbed`
|
|
3306
3333
|
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl, 10.1.0.sw
|
|
3307
3334
|
* @example
|
|
3308
3335
|
* ```js
|
|
3336
|
+
* import { HomepageModule } from '@thoughtspot/visual-embed-sdk';
|
|
3337
|
+
*
|
|
3309
3338
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
3310
3339
|
* ... //other embed view config
|
|
3311
3340
|
* reorderedHomepageModules:[HomepageModule.Favorite,HomepageModule.MyLibrary],
|
|
@@ -3321,6 +3350,8 @@ export interface HomePageConfig {
|
|
|
3321
3350
|
* Supported embed types: `AppEmbed`
|
|
3322
3351
|
* @example
|
|
3323
3352
|
* ```js
|
|
3353
|
+
* import { HomeLeftNavItem } from '@thoughtspot/visual-embed-sdk';
|
|
3354
|
+
*
|
|
3324
3355
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
3325
3356
|
* ... //other embed view config
|
|
3326
3357
|
* hiddenHomeLeftNavItems : [HomeLeftNavItem.Home,HomeLeftNavItem.Answers],
|
|
@@ -3330,6 +3361,7 @@ export interface HomePageConfig {
|
|
|
3330
3361
|
* **Note**: This option does not apply to the classic homepage.
|
|
3331
3362
|
* To access the updated modular homepage, set
|
|
3332
3363
|
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
3364
|
+
* To use it, you need to import `HomeLeftNavItem` enum.
|
|
3333
3365
|
* @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl, 10.1.0.sw
|
|
3334
3366
|
*/
|
|
3335
3367
|
hiddenHomeLeftNavItems?: HomeLeftNavItem[];
|
|
@@ -4538,7 +4570,7 @@ export declare enum EmbedEvent {
|
|
|
4538
4570
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
4539
4571
|
* @example
|
|
4540
4572
|
*```js
|
|
4541
|
-
* liveboardEmbed.on(EmbedEvent.
|
|
4573
|
+
* liveboardEmbed.on(EmbedEvent.LiveboardInfo, payload => {
|
|
4542
4574
|
* console.log('Liveboard details', payload);
|
|
4543
4575
|
* })
|
|
4544
4576
|
*```
|
|
@@ -4911,7 +4943,96 @@ export declare enum EmbedEvent {
|
|
|
4911
4943
|
* @version SDK : 1.39.0 | ThoughtSpot : 10.10.0.cl
|
|
4912
4944
|
* @hidden
|
|
4913
4945
|
*/
|
|
4914
|
-
RequestVisibleEmbedCoordinates = "requestVisibleEmbedCoordinates"
|
|
4946
|
+
RequestVisibleEmbedCoordinates = "requestVisibleEmbedCoordinates",
|
|
4947
|
+
/**
|
|
4948
|
+
* Emitted when Spotter response is text data
|
|
4949
|
+
* @example
|
|
4950
|
+
* ```js
|
|
4951
|
+
* spotterEmbed.on(EmbedEvent.SpotterData, (payload) => {
|
|
4952
|
+
* console.log('payload', payload);
|
|
4953
|
+
* })
|
|
4954
|
+
*```
|
|
4955
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
4956
|
+
*/
|
|
4957
|
+
SpotterData = "SpotterData",
|
|
4958
|
+
/**
|
|
4959
|
+
* Emitted when user opens up the worksheet preview modal in Spotter embed.
|
|
4960
|
+
* @example
|
|
4961
|
+
* ```js
|
|
4962
|
+
* spotterEmbed.on(EmbedEvent.PreviewSpotterData, (payload) => {
|
|
4963
|
+
* console.log('payload', payload);
|
|
4964
|
+
* })
|
|
4965
|
+
*```
|
|
4966
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
4967
|
+
*/
|
|
4968
|
+
PreviewSpotterData = "PreviewSpotterData",
|
|
4969
|
+
/**
|
|
4970
|
+
* Emitted when the Spotter query is triggered in Spotter embed.
|
|
4971
|
+
* @example
|
|
4972
|
+
* ```js
|
|
4973
|
+
* spotterEmbed.on(EmbedEvent.SpotterQueryTriggered, (payload) => {
|
|
4974
|
+
* console.log('payload', payload);
|
|
4975
|
+
* })
|
|
4976
|
+
*```
|
|
4977
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
4978
|
+
*/
|
|
4979
|
+
SpotterQueryTriggered = "SpotterQueryTriggered",
|
|
4980
|
+
/**
|
|
4981
|
+
* Emitted when the last Spotter query is edited in Spotter embed.
|
|
4982
|
+
* @example
|
|
4983
|
+
* ```js
|
|
4984
|
+
* spotterEmbed.on(EmbedEvent.LastPromptEdited, (payload) => {
|
|
4985
|
+
* console.log('payload', payload);
|
|
4986
|
+
* })
|
|
4987
|
+
*```
|
|
4988
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
4989
|
+
*/
|
|
4990
|
+
LastPromptEdited = "LastPromptEdited",
|
|
4991
|
+
/**
|
|
4992
|
+
* Emitted when the last Spotter query is deleted in Spotter embed.
|
|
4993
|
+
* @example
|
|
4994
|
+
* ```js
|
|
4995
|
+
* spotterEmbed.on(EmbedEvent.LastPromptDeleted, (payload) => {
|
|
4996
|
+
* console.log('payload', payload);
|
|
4997
|
+
* })
|
|
4998
|
+
*```
|
|
4999
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
5000
|
+
*/
|
|
5001
|
+
LastPromptDeleted = "LastPromptDeleted",
|
|
5002
|
+
/**
|
|
5003
|
+
* Emitted when the coversation is reset in spotter embed.
|
|
5004
|
+
* @example
|
|
5005
|
+
* ```js
|
|
5006
|
+
* spotterEmbed.on(EmbedEvent.ResetSpotterConversation, (payload) => {
|
|
5007
|
+
* console.log('payload', payload);
|
|
5008
|
+
* })
|
|
5009
|
+
*```
|
|
5010
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
5011
|
+
*/
|
|
5012
|
+
ResetSpotterConversation = "ResetSpotterConversation",
|
|
5013
|
+
/**
|
|
5014
|
+
* Emitted when the *Spotter* is initialized.
|
|
5015
|
+
* @example
|
|
5016
|
+
* ```js
|
|
5017
|
+
* spotterEmbed.on(EmbedEvent.SpotterInit, (payload) => {
|
|
5018
|
+
* console.log('payload', payload);
|
|
5019
|
+
* })
|
|
5020
|
+
*```
|
|
5021
|
+
* @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
|
|
5022
|
+
*/
|
|
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"
|
|
4915
5036
|
}
|
|
4916
5037
|
/**
|
|
4917
5038
|
* Event types that can be triggered by the host application
|
|
@@ -4929,7 +5050,7 @@ export declare enum EmbedEvent {
|
|
|
4929
5050
|
* // create the liveboard embed.
|
|
4930
5051
|
*
|
|
4931
5052
|
* liveboardEmbed.trigger(HostEvent.UpdateRuntimeFilters, [
|
|
4932
|
-
* { columnName: 'state, operator: RuntimeFilterOp.EQ, values: [
|
|
5053
|
+
* { columnName: 'state', operator: RuntimeFilterOp.EQ, values: ["california"]}
|
|
4933
5054
|
* ]);
|
|
4934
5055
|
* ```
|
|
4935
5056
|
* @example
|
|
@@ -4999,6 +5120,7 @@ export declare enum HostEvent {
|
|
|
4999
5120
|
* done automatically on the most popular column.
|
|
5000
5121
|
* @param - vizId [TS >= 9.8.0] - Optional. The GUID of the visualization to drill
|
|
5001
5122
|
* in case of a Liveboard.
|
|
5123
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5002
5124
|
* @example
|
|
5003
5125
|
* ```js
|
|
5004
5126
|
* searchEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
|
|
@@ -5137,12 +5259,12 @@ export declare enum HostEvent {
|
|
|
5137
5259
|
* Works with Search and Liveboard embed.
|
|
5138
5260
|
* @param - { columnId: string,
|
|
5139
5261
|
* name: string,
|
|
5140
|
-
* type:
|
|
5141
|
-
* dataType:
|
|
5262
|
+
* type: ATTRIBUTE/MEASURE,
|
|
5263
|
+
* dataType: INT64/CHAR/DATE }
|
|
5142
5264
|
* @example
|
|
5143
5265
|
* ```js
|
|
5144
5266
|
* searchEmbed.trigger(HostEvent.OpenFilter,
|
|
5145
|
-
* {column: { columnId: '<column-GUID>', name: 'column name', type: '
|
|
5267
|
+
* {column: { columnId: '<column-GUID>', name: 'column name', type: 'ATTRIBUTE', dataType: 'INT64'}})
|
|
5146
5268
|
* ```
|
|
5147
5269
|
* @example
|
|
5148
5270
|
* ```js
|
|
@@ -5200,6 +5322,7 @@ export declare enum HostEvent {
|
|
|
5200
5322
|
* @param
|
|
5201
5323
|
* `vizId`- GUID of the saved Answer or visualization to pin to a Liveboard.
|
|
5202
5324
|
* Optional when pinning a new chart or table generated from a Search query.
|
|
5325
|
+
* **Required** in Spotter Embed.
|
|
5203
5326
|
* @param
|
|
5204
5327
|
* `liveboardID` - GUID of the Liveboard to pin an Answer. If there is no Liveboard,
|
|
5205
5328
|
* specify the `newLiveboardName` parameter to create a new Liveboard.
|
|
@@ -5247,6 +5370,12 @@ export declare enum HostEvent {
|
|
|
5247
5370
|
* ```js
|
|
5248
5371
|
* appEmbed.trigger(HostEvent.Pin)
|
|
5249
5372
|
* ```
|
|
5373
|
+
* @example
|
|
5374
|
+
* ```js
|
|
5375
|
+
* const pinResponse = await spotterEmbed.trigger(HostEvent.Pin, {
|
|
5376
|
+
* vizId:'730496d6-6903-4601-937e-2c691821af3c'
|
|
5377
|
+
* });
|
|
5378
|
+
* ```
|
|
5250
5379
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
5251
5380
|
*/
|
|
5252
5381
|
Pin = "pin",
|
|
@@ -5311,12 +5440,21 @@ export declare enum HostEvent {
|
|
|
5311
5440
|
* Trigger the **Download PDF** action on an embedded Liveboard,
|
|
5312
5441
|
* visualization or Answer.
|
|
5313
5442
|
*
|
|
5443
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5444
|
+
*
|
|
5314
5445
|
* **NOTE**: The **Download** > **PDF** action is available on
|
|
5315
5446
|
* visualizations and Answers if the data is in tabular format.
|
|
5316
5447
|
* @example
|
|
5317
5448
|
* ```js
|
|
5318
5449
|
* liveboardEmbed.trigger(HostEvent.DownloadAsPdf)
|
|
5319
5450
|
* ```
|
|
5451
|
+
* @example
|
|
5452
|
+
* ```js
|
|
5453
|
+
* spotterEmbed.trigger(HostEvent.DownloadAsPdf, {
|
|
5454
|
+
* vizId:'730496d6-6903-4601-937e-2c691821af3c'
|
|
5455
|
+
* });
|
|
5456
|
+
* ```
|
|
5457
|
+
*
|
|
5320
5458
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
5321
5459
|
*/
|
|
5322
5460
|
DownloadAsPdf = "downloadAsPdf",
|
|
@@ -5340,6 +5478,12 @@ export declare enum HostEvent {
|
|
|
5340
5478
|
* ```js
|
|
5341
5479
|
* searchEmbed.trigger(HostEvent.MakeACopy)
|
|
5342
5480
|
* ```
|
|
5481
|
+
* @example
|
|
5482
|
+
* ```js
|
|
5483
|
+
* const pinResponse = await spotterEmbed.trigger(HostEvent.MakeACopy, {
|
|
5484
|
+
* vizId:'730496d6-6903-4601-937e-2c691821af3c'
|
|
5485
|
+
* });
|
|
5486
|
+
* ```
|
|
5343
5487
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
5344
5488
|
*/
|
|
5345
5489
|
MakeACopy = "makeACopy",
|
|
@@ -5412,6 +5556,8 @@ export declare enum HostEvent {
|
|
|
5412
5556
|
* This event is not supported in visualization embed and search embed.
|
|
5413
5557
|
* @param - object - To trigger the action for a specific visualization
|
|
5414
5558
|
* in Liveboard embed, pass in `vizId` as a key.
|
|
5559
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5560
|
+
*
|
|
5415
5561
|
* @example
|
|
5416
5562
|
* ```js
|
|
5417
5563
|
* liveboardEmbed.trigger(HostEvent.Edit)
|
|
@@ -5420,6 +5566,18 @@ export declare enum HostEvent {
|
|
|
5420
5566
|
* liveboardEmbed.trigger(HostEvent.Edit, {vizId:
|
|
5421
5567
|
* '730496d6-6903-4601-937e-2c691821af3c'})
|
|
5422
5568
|
* ```
|
|
5569
|
+
* @example
|
|
5570
|
+
* ```js
|
|
5571
|
+
* const pinResponse = await spotterEmbed.trigger(HostEvent.Edit, {
|
|
5572
|
+
* vizId:'730496d6-6903-4601-937e-2c691821af3c'
|
|
5573
|
+
* });
|
|
5574
|
+
* ```
|
|
5575
|
+
* @example
|
|
5576
|
+
* ```js
|
|
5577
|
+
* const editResponse = await spotterEmbed.trigger(HostEvent.Edit, {
|
|
5578
|
+
* vizId:'730496d6-6903-4601-937e-2c691821af3c'
|
|
5579
|
+
* });
|
|
5580
|
+
* ```
|
|
5423
5581
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
5424
5582
|
*/
|
|
5425
5583
|
Edit = "edit",
|
|
@@ -5467,6 +5625,16 @@ export declare enum HostEvent {
|
|
|
5467
5625
|
* );
|
|
5468
5626
|
* })
|
|
5469
5627
|
* ```
|
|
5628
|
+
* @example
|
|
5629
|
+
* ```js
|
|
5630
|
+
* spotterEmbed.trigger(HostEvent.GetTML, {
|
|
5631
|
+
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
5632
|
+
* }).then((tml) => {
|
|
5633
|
+
* console.log(
|
|
5634
|
+
* tml.answer.search_query // TML representation of the search query
|
|
5635
|
+
* );
|
|
5636
|
+
* })
|
|
5637
|
+
* ```
|
|
5470
5638
|
* @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1.sw
|
|
5471
5639
|
* @important
|
|
5472
5640
|
*/
|
|
@@ -5530,6 +5698,7 @@ export declare enum HostEvent {
|
|
|
5530
5698
|
/**
|
|
5531
5699
|
* Trigger the **Download** action on charts in
|
|
5532
5700
|
* the embedded view.
|
|
5701
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5533
5702
|
* @example
|
|
5534
5703
|
* ```js
|
|
5535
5704
|
* liveboardEmbed.trigger(HostEvent.Download, {vizId:
|
|
@@ -5538,6 +5707,11 @@ export declare enum HostEvent {
|
|
|
5538
5707
|
* ```js
|
|
5539
5708
|
* embed.trigger(HostEvent.Download)
|
|
5540
5709
|
* ```
|
|
5710
|
+
* ```js
|
|
5711
|
+
* spotterEmbed.trigger(HostEvent.Download, {
|
|
5712
|
+
* vizId:'730496d6-6903-4601-937e-2c691821af3c'
|
|
5713
|
+
* });
|
|
5714
|
+
* ```
|
|
5541
5715
|
* @deprecated from SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl ,9.4.1.sw
|
|
5542
5716
|
* Use {@link DownloadAsPng}
|
|
5543
5717
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
@@ -5554,13 +5728,19 @@ export declare enum HostEvent {
|
|
|
5554
5728
|
* vizEmbed.trigger(HostEvent.DownloadAsPng)
|
|
5555
5729
|
*
|
|
5556
5730
|
* searchEmbed.trigger(HostEvent.DownloadAsPng)
|
|
5731
|
+
*
|
|
5732
|
+
* spotterEmbed.trigger(HostEvent.DownloadAsPng, {
|
|
5733
|
+
* vizId:"730496d6-6903-4601-937e-2c691821af3c"
|
|
5734
|
+
* })
|
|
5557
5735
|
* ```
|
|
5736
|
+
*
|
|
5558
5737
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.1.sw
|
|
5559
5738
|
*/
|
|
5560
5739
|
DownloadAsPng = "downloadAsPng",
|
|
5561
5740
|
/**
|
|
5562
5741
|
* Trigger the **Download** > **CSV** action on tables in
|
|
5563
5742
|
* the embedded view.
|
|
5743
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5564
5744
|
* @example
|
|
5565
5745
|
* ```js
|
|
5566
5746
|
* liveboardEmbed.trigger(HostEvent.DownloadAsCsv, {vizId:
|
|
@@ -5572,12 +5752,18 @@ export declare enum HostEvent {
|
|
|
5572
5752
|
* ```js
|
|
5573
5753
|
* searchEmbed.trigger(HostEvent.DownloadAsCsv)
|
|
5574
5754
|
* ```
|
|
5755
|
+
* ```js
|
|
5756
|
+
* spotterEmbed.trigger(HostEvent.DownloadAsCsv, {
|
|
5757
|
+
* vizId:"730496d6-6903-4601-937e-2c691821af3c"
|
|
5758
|
+
* })
|
|
5759
|
+
* ```
|
|
5575
5760
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
5576
5761
|
*/
|
|
5577
5762
|
DownloadAsCsv = "downloadAsCSV",
|
|
5578
5763
|
/**
|
|
5579
5764
|
* Trigger the **Download** > **XLSX** action on tables
|
|
5580
5765
|
* in the embedded view.
|
|
5766
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5581
5767
|
* @example
|
|
5582
5768
|
* ```js
|
|
5583
5769
|
* liveboardEmbed.trigger(HostEvent.DownloadAsXlsx, {vizId:
|
|
@@ -5589,6 +5775,11 @@ export declare enum HostEvent {
|
|
|
5589
5775
|
* ```js
|
|
5590
5776
|
* searchEmbed.trigger(HostEvent.DownloadAsXlsx)
|
|
5591
5777
|
* ```
|
|
5778
|
+
* ```js
|
|
5779
|
+
* spotterEmbed.trigger(HostEvent.downloadAsXLSX, {
|
|
5780
|
+
* vizId:"730496d6-6903-4601-937e-2c691821af3c"
|
|
5781
|
+
* })
|
|
5782
|
+
* ```
|
|
5592
5783
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
5593
5784
|
*/
|
|
5594
5785
|
DownloadAsXlsx = "downloadAsXLSX",
|
|
@@ -5608,6 +5799,7 @@ export declare enum HostEvent {
|
|
|
5608
5799
|
/**
|
|
5609
5800
|
* Trigger the **Save** action on a Liveboard or Answer.
|
|
5610
5801
|
* Saves the changes.
|
|
5802
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5611
5803
|
* @example
|
|
5612
5804
|
* ```js
|
|
5613
5805
|
* liveboardEmbed.trigger(HostEvent.Save)
|
|
@@ -5615,6 +5807,11 @@ export declare enum HostEvent {
|
|
|
5615
5807
|
* ```js
|
|
5616
5808
|
* searchEmbed.trigger(HostEvent.Save)
|
|
5617
5809
|
* ```
|
|
5810
|
+
* ```js
|
|
5811
|
+
* spotterEmbed.trigger(HostEvent.Save, {
|
|
5812
|
+
* vizId:"730496d6-6903-4601-937e-2c691821af3c"
|
|
5813
|
+
* })
|
|
5814
|
+
* ```
|
|
5618
5815
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
5619
5816
|
*/
|
|
5620
5817
|
Save = "save",
|
|
@@ -5898,7 +6095,7 @@ export declare enum HostEvent {
|
|
|
5898
6095
|
ResetLiveboardPersonalisedView = "ResetLiveboardPersonalisedView",
|
|
5899
6096
|
/**
|
|
5900
6097
|
* Triggers an action to update Parameter values on embedded
|
|
5901
|
-
* Answers and
|
|
6098
|
+
* Answers, Liveboard and Spotter answer in Edit mode.
|
|
5902
6099
|
*
|
|
5903
6100
|
* @example
|
|
5904
6101
|
* ```js
|
|
@@ -5912,11 +6109,19 @@ export declare enum HostEvent {
|
|
|
5912
6109
|
UpdateParameters = "UpdateParameters",
|
|
5913
6110
|
/**
|
|
5914
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.
|
|
5915
6113
|
* ```js
|
|
5916
6114
|
* liveboardEmbed.trigger(HostEvent.GetParameters).then((parameter) => {
|
|
5917
6115
|
* console.log('parameters', parameter);
|
|
5918
6116
|
* });
|
|
5919
6117
|
*```
|
|
6118
|
+
*```js
|
|
6119
|
+
* spotterEmbed.trigger(HostEvent.GetParameters, {
|
|
6120
|
+
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
6121
|
+
* }).then((parameter) => {
|
|
6122
|
+
* console.log('parameters', parameter);
|
|
6123
|
+
* });
|
|
6124
|
+
*```
|
|
5920
6125
|
* @version SDK: 1.29.0 | ThoughtSpot: 10.1.0.cl, 10.1.0.sw
|
|
5921
6126
|
*/
|
|
5922
6127
|
GetParameters = "GetParameters",
|
|
@@ -5948,7 +6153,7 @@ export declare enum HostEvent {
|
|
|
5948
6153
|
* @param - optional attributes to set Answer properties.
|
|
5949
6154
|
* `name` - Name string for the Answer.
|
|
5950
6155
|
* `description` - Description text for the Answer.
|
|
5951
|
-
*
|
|
6156
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5952
6157
|
* @example
|
|
5953
6158
|
* ```js
|
|
5954
6159
|
* const saveAnswerResponse = await searchEmbed.trigger(HostEvent.SaveAnswer, {
|
|
@@ -5956,6 +6161,14 @@ export declare enum HostEvent {
|
|
|
5956
6161
|
* description: "Total sales by states in MidWest"
|
|
5957
6162
|
* });
|
|
5958
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
|
+
* ```
|
|
5959
6172
|
* @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
|
|
5960
6173
|
*/
|
|
5961
6174
|
SaveAnswer = "saveAnswer",
|
|
@@ -5984,6 +6197,70 @@ export declare enum HostEvent {
|
|
|
5984
6197
|
* @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl
|
|
5985
6198
|
*/
|
|
5986
6199
|
TransformTableVizData = "TransformTableVizData",
|
|
6200
|
+
/**
|
|
6201
|
+
* Triggers a search operation with the search tokens specified in
|
|
6202
|
+
* the search query string in spotter embed.
|
|
6203
|
+
* @param - `query`: Text string in Natural Language format
|
|
6204
|
+
* @param - `executeSearch`: Boolean to execute search and update search query
|
|
6205
|
+
* @example
|
|
6206
|
+
* ```js
|
|
6207
|
+
* spotterEmbed.trigger(HostEvent.SpotterSearch, {
|
|
6208
|
+
* query: 'revenue per year',
|
|
6209
|
+
* executeSearch: true,
|
|
6210
|
+
* })
|
|
6211
|
+
* ```
|
|
6212
|
+
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
6213
|
+
*/
|
|
6214
|
+
SpotterSearch = "SpotterSearch",
|
|
6215
|
+
/**
|
|
6216
|
+
* Edits the last prompt in spotter embed.
|
|
6217
|
+
* @param - `query`: Text string
|
|
6218
|
+
* @example
|
|
6219
|
+
* ```js
|
|
6220
|
+
* spotterEmbed.trigger(HostEvent.EditLastPrompt, "revenue per year");
|
|
6221
|
+
* ```
|
|
6222
|
+
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
6223
|
+
*/
|
|
6224
|
+
EditLastPrompt = "EditLastPrompt",
|
|
6225
|
+
/**
|
|
6226
|
+
* Opens the Worksheet preview modal in Spotter Embed.
|
|
6227
|
+
* @example
|
|
6228
|
+
* ```js
|
|
6229
|
+
* spotterEmbed.trigger(HostEvent.PreviewSpotterData);
|
|
6230
|
+
* ```
|
|
6231
|
+
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
6232
|
+
*/
|
|
6233
|
+
PreviewSpotterData = "PreviewSpotterData",
|
|
6234
|
+
/**
|
|
6235
|
+
* Resets the Spotter Embed Conversation.
|
|
6236
|
+
* @example
|
|
6237
|
+
* ```js
|
|
6238
|
+
* spotterEmbed.trigger(HostEvent.ResetSpotterConversation);
|
|
6239
|
+
* ```
|
|
6240
|
+
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
6241
|
+
*/
|
|
6242
|
+
ResetSpotterConversation = "ResetSpotterConversation",
|
|
6243
|
+
/**
|
|
6244
|
+
* Deletes the last prompt in spotter embed.
|
|
6245
|
+
* @example
|
|
6246
|
+
* ```js
|
|
6247
|
+
* spotterEmbed.trigger(HostEvent.DeleteLastPrompt);
|
|
6248
|
+
* ```
|
|
6249
|
+
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
6250
|
+
*/
|
|
6251
|
+
DeleteLastPrompt = "DeleteLastPrompt",
|
|
6252
|
+
/**
|
|
6253
|
+
* Toggle the visualization to chart or table view.
|
|
6254
|
+
* @param - `vizId ` refers to the answer id in spotter Embed, it is required in spotter Embed.
|
|
6255
|
+
* @example
|
|
6256
|
+
* ```js
|
|
6257
|
+
* spotterEmbed.trigger(HostEvent.AnswerChartSwitcher, {
|
|
6258
|
+
* vizId:'b535c760-8bbe-4e6f-bb26-af56b4129a1e'
|
|
6259
|
+
* });
|
|
6260
|
+
*```
|
|
6261
|
+
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
6262
|
+
*/
|
|
6263
|
+
AnswerChartSwitcher = "answerChartSwitcher",
|
|
5987
6264
|
/**
|
|
5988
6265
|
* @hidden
|
|
5989
6266
|
* Trigger exit from presentation mode when user exits fullscreen.
|
|
@@ -6006,7 +6283,28 @@ export declare enum HostEvent {
|
|
|
6006
6283
|
*
|
|
6007
6284
|
* @hidden
|
|
6008
6285
|
*/
|
|
6009
|
-
VisibleEmbedCoordinates = "visibleEmbedCoordinates"
|
|
6286
|
+
VisibleEmbedCoordinates = "visibleEmbedCoordinates",
|
|
6287
|
+
/**
|
|
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.
|
|
6290
|
+
* @example
|
|
6291
|
+
* ```js
|
|
6292
|
+
* spotterEmbed.trigger(HostEvent.AskSpotter,
|
|
6293
|
+
* {vizId:'730496d6-6903-4601-937e-2c691821af3c'})
|
|
6294
|
+
* ```
|
|
6295
|
+
* @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
|
|
6296
|
+
*/
|
|
6297
|
+
AskSpotter = "AskSpotter",
|
|
6298
|
+
/**
|
|
6299
|
+
* @hidden
|
|
6300
|
+
* Triggers the update of the embed params.
|
|
6301
|
+
*
|
|
6302
|
+
* @example
|
|
6303
|
+
* ```js
|
|
6304
|
+
* liveboardEmbed.trigger(HostEvent.UpdateEmbedParams, viewConfig);
|
|
6305
|
+
* ```
|
|
6306
|
+
*/
|
|
6307
|
+
UpdateEmbedParams = "updateEmbedParams"
|
|
6010
6308
|
}
|
|
6011
6309
|
/**
|
|
6012
6310
|
* The different visual modes that the data sources panel within
|
|
@@ -6294,27 +6592,27 @@ export declare enum Action {
|
|
|
6294
6592
|
*/
|
|
6295
6593
|
ConfigureFilter = "configureFilter",
|
|
6296
6594
|
/**
|
|
6297
|
-
|
|
6298
|
-
|
|
6299
|
-
|
|
6300
|
-
|
|
6301
|
-
|
|
6302
|
-
|
|
6303
|
-
|
|
6304
|
-
|
|
6305
|
-
|
|
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
|
+
*/
|
|
6306
6604
|
CollapseDataSources = "collapseDataSources",
|
|
6307
6605
|
/**
|
|
6308
|
-
|
|
6309
|
-
|
|
6310
|
-
|
|
6311
|
-
|
|
6312
|
-
|
|
6313
|
-
|
|
6314
|
-
|
|
6315
|
-
|
|
6316
|
-
|
|
6317
|
-
|
|
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
|
+
*/
|
|
6318
6616
|
CollapseDataPanel = "collapseDataPanel",
|
|
6319
6617
|
/**
|
|
6320
6618
|
* The **Choose sources** button on Search page.
|
|
@@ -7010,6 +7308,17 @@ export declare enum Action {
|
|
|
7010
7308
|
* @version SDK: 1.25.0 | ThoughtSpot Cloud: 9.6.0.cl
|
|
7011
7309
|
*/
|
|
7012
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",
|
|
7013
7322
|
/**
|
|
7014
7323
|
* Action ID to hide or disable Natural Language Search query.
|
|
7015
7324
|
*
|
|
@@ -7378,7 +7687,40 @@ export declare enum Action {
|
|
|
7378
7687
|
* ```
|
|
7379
7688
|
* @version SDK: 1.39.0 | ThoughtSpot Cloud: 10.10.0.cl
|
|
7380
7689
|
*/
|
|
7381
|
-
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"
|
|
7382
7724
|
}
|
|
7383
7725
|
export interface AnswerServiceType {
|
|
7384
7726
|
getAnswer?: (offset: number, batchSize: number) => any;
|
|
@@ -7572,7 +7914,8 @@ export interface SearchOptions {
|
|
|
7572
7914
|
*/
|
|
7573
7915
|
export interface SpotterEmbedViewConfig extends Omit<BaseViewConfig, 'primaryAction'> {
|
|
7574
7916
|
/**
|
|
7575
|
-
* 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.
|
|
7576
7919
|
*/
|
|
7577
7920
|
worksheetId: string;
|
|
7578
7921
|
/**
|
|
@@ -7655,6 +7998,66 @@ export interface SpotterEmbedViewConfig extends Omit<BaseViewConfig, 'primaryAct
|
|
|
7655
7998
|
* @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
|
|
7656
7999
|
*/
|
|
7657
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;
|
|
7658
8061
|
}
|
|
7659
8062
|
/**
|
|
7660
8063
|
* The configuration for the embedded spotterEmbed options.
|
|
@@ -7682,6 +8085,7 @@ export interface ConversationViewConfig extends SpotterEmbedViewConfig {
|
|
|
7682
8085
|
export declare class SpotterEmbed extends TsEmbed {
|
|
7683
8086
|
protected viewConfig: SpotterEmbedViewConfig;
|
|
7684
8087
|
constructor(container: HTMLElement, viewConfig: SpotterEmbedViewConfig);
|
|
8088
|
+
protected getEmbedParamsObject(): Record<any, any>;
|
|
7685
8089
|
getIframeSrc(): string;
|
|
7686
8090
|
render(): Promise<SpotterEmbed>;
|
|
7687
8091
|
}
|
|
@@ -7791,6 +8195,7 @@ export declare class TsEmbed {
|
|
|
7791
8195
|
* @param query
|
|
7792
8196
|
*/
|
|
7793
8197
|
protected getEmbedBasePath(query: string): string;
|
|
8198
|
+
protected getUpdateEmbedParamsObject(): Record<any, any>;
|
|
7794
8199
|
/**
|
|
7795
8200
|
* Common query params set for all the embed modes.
|
|
7796
8201
|
* @param queryParams
|
|
@@ -7806,6 +8211,7 @@ export declare class TsEmbed {
|
|
|
7806
8211
|
*/
|
|
7807
8212
|
protected getV1EmbedBasePath(queryString: string): string;
|
|
7808
8213
|
protected getEmbedParams(): string;
|
|
8214
|
+
protected getEmbedParamsObject(): Record<any, any>;
|
|
7809
8215
|
protected getRootIframeSrc(): string;
|
|
7810
8216
|
protected createIframeEl(frameSrc: string): HTMLIFrameElement;
|
|
7811
8217
|
protected handleInsertionIntoDOM(child: string | Node): void;
|
|
@@ -7897,6 +8303,19 @@ export declare class TsEmbed {
|
|
|
7897
8303
|
* ```
|
|
7898
8304
|
*/
|
|
7899
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;
|
|
7900
8319
|
/**
|
|
7901
8320
|
* Triggers an event to the embedded app
|
|
7902
8321
|
* @param {HostEvent} messageType The event type
|
|
@@ -8498,6 +8917,322 @@ export interface CustomCssVariables {
|
|
|
8498
8917
|
* Background color of checkbox.
|
|
8499
8918
|
*/
|
|
8500
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;
|
|
8501
9236
|
}
|
|
8502
9237
|
|
|
8503
9238
|
export interface SessionInterface {
|
|
@@ -9069,16 +9804,31 @@ export declare const getAnswerFromQuery: (query: string, worksheetId: string) =>
|
|
|
9069
9804
|
}>;
|
|
9070
9805
|
|
|
9071
9806
|
/**
|
|
9072
|
-
*
|
|
9073
|
-
*
|
|
9074
|
-
*
|
|
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.
|
|
9075
9814
|
* @returns result Promise
|
|
9076
9815
|
* @version SDK: 1.33.1 | ThoughtSpot: *
|
|
9077
9816
|
* @example
|
|
9078
9817
|
* ```js
|
|
9079
|
-
*
|
|
9080
|
-
*
|
|
9081
|
-
*
|
|
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
|
+
* });
|
|
9082
9832
|
* ```
|
|
9083
9833
|
*/
|
|
9084
9834
|
export declare const createLiveboardWithAnswers: (answers: AnswerService[], name: string) => Promise<any>;
|