@thoughtspot/visual-embed-sdk 1.36.7 → 1.36.9-primary-actions
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 +15 -15
- package/cjs/src/embed/bodyless-conversation.d.ts +16 -0
- package/cjs/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/cjs/src/embed/bodyless-conversation.js +1 -1
- package/cjs/src/embed/bodyless-conversation.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts +15 -0
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +4 -1
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +25 -1
- package/cjs/src/embed/liveboard.spec.js.map +1 -1
- package/cjs/src/embed/search-bar.d.ts +1 -1
- package/cjs/src/embed/search.d.ts +1 -1
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +14 -2
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +111 -0
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/index.d.ts +2 -2
- package/cjs/src/index.d.ts.map +1 -1
- package/cjs/src/index.js +2 -1
- package/cjs/src/index.js.map +1 -1
- package/cjs/src/pages/embed-test.page.d.ts +8 -0
- package/cjs/src/pages/embed-test.page.d.ts.map +1 -0
- package/cjs/src/pages/embed-test.page.js +20 -0
- package/cjs/src/pages/embed-test.page.js.map +1 -0
- package/cjs/src/pages/home.page.d.ts +6 -0
- package/cjs/src/pages/home.page.d.ts.map +1 -0
- package/cjs/src/pages/home.page.js +12 -0
- package/cjs/src/pages/home.page.js.map +1 -0
- package/cjs/src/pages/login.page.d.ts +15 -0
- package/cjs/src/pages/login.page.d.ts.map +1 -0
- package/cjs/src/pages/login.page.js +22 -0
- package/cjs/src/pages/login.page.js.map +1 -0
- package/cjs/src/react/index.d.ts +1 -1
- package/cjs/src/react/index.d.ts.map +1 -1
- package/cjs/src/react/index.js +4 -3
- package/cjs/src/react/index.js.map +1 -1
- package/cjs/src/react/util.d.ts +2 -0
- package/cjs/src/react/util.d.ts.map +1 -1
- package/cjs/src/react/util.js.map +1 -1
- package/cjs/src/tests/auth.test.d.ts +1 -0
- package/cjs/src/tests/auth.test.d.ts.map +1 -0
- package/cjs/src/tests/auth.test.js +1 -0
- package/cjs/src/tests/auth.test.js.map +1 -0
- package/cjs/src/tests/e2e/auth.spec.d.ts +2 -0
- package/cjs/src/tests/e2e/auth.spec.d.ts.map +1 -0
- package/cjs/src/tests/e2e/auth.spec.js +54 -0
- package/cjs/src/tests/e2e/auth.spec.js.map +1 -0
- package/cjs/src/types.d.ts +94 -11
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +56 -9
- package/cjs/src/types.js.map +1 -1
- package/dist/{index-BratITNz.js → index-BJx3m5_V.js} +1 -1
- package/dist/index-Do_T8J8z.js +7370 -0
- package/dist/src/embed/bodyless-conversation.d.ts +16 -0
- package/dist/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +15 -0
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/search-bar.d.ts +1 -1
- package/dist/src/embed/search.d.ts +1 -1
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/index.d.ts +2 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/pages/embed-test.page.d.ts +8 -0
- package/dist/src/pages/embed-test.page.d.ts.map +1 -0
- package/dist/src/pages/home.page.d.ts +6 -0
- package/dist/src/pages/home.page.d.ts.map +1 -0
- package/dist/src/pages/login.page.d.ts +15 -0
- package/dist/src/pages/login.page.d.ts.map +1 -0
- package/dist/src/react/index.d.ts +1 -1
- package/dist/src/react/index.d.ts.map +1 -1
- package/dist/src/react/util.d.ts +2 -0
- package/dist/src/react/util.d.ts.map +1 -1
- package/dist/src/tests/auth.test.d.ts +1 -0
- package/dist/src/tests/auth.test.d.ts.map +1 -0
- package/dist/src/tests/e2e/auth.spec.d.ts +2 -0
- package/dist/src/tests/e2e/auth.spec.d.ts.map +1 -0
- package/dist/src/types.d.ts +94 -11
- package/dist/src/types.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +79 -17
- package/dist/tsembed-react.js +77 -15
- package/dist/tsembed.es.js +78 -16
- package/dist/tsembed.js +76 -14
- package/dist/visual-embed-sdk-react-full.d.ts +128 -14
- package/dist/visual-embed-sdk-react.d.ts +128 -14
- package/dist/visual-embed-sdk.d.ts +127 -14
- package/lib/package.json +15 -15
- package/lib/src/embed/bodyless-conversation.d.ts +16 -0
- package/lib/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/lib/src/embed/bodyless-conversation.js +1 -1
- package/lib/src/embed/bodyless-conversation.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +15 -0
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +4 -1
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +25 -1
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/embed/search-bar.d.ts +1 -1
- package/lib/src/embed/search.d.ts +1 -1
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +14 -2
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +111 -0
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/index.d.ts +2 -2
- package/lib/src/index.d.ts.map +1 -1
- package/lib/src/index.js +2 -2
- package/lib/src/index.js.map +1 -1
- package/lib/src/pages/embed-test.page.d.ts +8 -0
- package/lib/src/pages/embed-test.page.d.ts.map +1 -0
- package/lib/src/pages/embed-test.page.js +16 -0
- package/lib/src/pages/embed-test.page.js.map +1 -0
- package/lib/src/pages/home.page.d.ts +6 -0
- package/lib/src/pages/home.page.d.ts.map +1 -0
- package/lib/src/pages/home.page.js +8 -0
- package/lib/src/pages/home.page.js.map +1 -0
- package/lib/src/pages/login.page.d.ts +15 -0
- package/lib/src/pages/login.page.d.ts.map +1 -0
- package/lib/src/pages/login.page.js +18 -0
- package/lib/src/pages/login.page.js.map +1 -0
- package/lib/src/react/index.d.ts +1 -1
- package/lib/src/react/index.d.ts.map +1 -1
- package/lib/src/react/index.js +3 -3
- package/lib/src/react/index.js.map +1 -1
- package/lib/src/react/util.d.ts +2 -0
- package/lib/src/react/util.d.ts.map +1 -1
- package/lib/src/react/util.js.map +1 -1
- package/lib/src/tests/auth.test.d.ts +1 -0
- package/lib/src/tests/auth.test.d.ts.map +1 -0
- package/lib/src/tests/auth.test.js +1 -0
- package/lib/src/tests/auth.test.js.map +1 -0
- package/lib/src/tests/e2e/auth.spec.d.ts +2 -0
- package/lib/src/tests/e2e/auth.spec.d.ts.map +1 -0
- package/lib/src/tests/e2e/auth.spec.js +52 -0
- package/lib/src/tests/e2e/auth.spec.js.map +1 -0
- package/lib/src/types.d.ts +94 -11
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +55 -8
- package/lib/src/types.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +129 -15
- package/package.json +15 -15
- package/src/embed/bodyless-conversation.ts +1 -1
- package/src/embed/liveboard.spec.ts +35 -7
- package/src/embed/liveboard.ts +21 -1
- package/src/embed/search-bar.tsx +1 -1
- package/src/embed/search.ts +1 -1
- package/src/embed/ts-embed.spec.ts +118 -0
- package/src/embed/ts-embed.ts +15 -0
- package/src/index.ts +2 -0
- package/src/react/index.tsx +4 -3
- package/src/react/util.ts +1 -0
- package/src/types.ts +95 -10
|
@@ -273,7 +273,7 @@ export function useInit(config: EmbedConfig): React.MutableRefObject<AuthEventEm
|
|
|
273
273
|
* @summary ThoughtSpot Visual Embed SDK
|
|
274
274
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
275
275
|
*/
|
|
276
|
-
export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, tokenizedFetch, getAnswerFromQuery, createLiveboardWithAnswers, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, BodylessConversation, BodylessConversationViewConfig, ConversationEmbed, ConversationViewConfig, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, AnswerService, SessionInterface, UnderlyingDataPoint, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, ContextMenuTriggerOptions, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, SageViewConfig, AppViewConfig, PrefetchFeatures, FrameParams, HomeLeftNavItem, HomepageModule, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, RuntimeParameter, LogLevel, uploadMixpanelEvent, MIXPANEL_EVENT, HomePageSearchBarMode, VizPoint, CustomActionPayload, UIPassthroughEvent, };
|
|
276
|
+
export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, tokenizedFetch, getAnswerFromQuery, createLiveboardWithAnswers, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, BodylessConversation, BodylessConversationViewConfig, ConversationEmbed, ConversationViewConfig, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, AnswerService, SessionInterface, UnderlyingDataPoint, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, ContextMenuTriggerOptions, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, SageViewConfig, AppViewConfig, PrefetchFeatures, FrameParams, HomeLeftNavItem, HomepageModule, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, RuntimeParameter, LogLevel, uploadMixpanelEvent, MIXPANEL_EVENT, HomePageSearchBarMode, VizPoint, CustomActionPayload, UIPassthroughEvent, ListPageColumns, };
|
|
277
277
|
|
|
278
278
|
export declare let loggedInStatus: boolean;
|
|
279
279
|
export declare let samlAuthWindow: Window;
|
|
@@ -518,7 +518,7 @@ export interface SearchBarViewConfig extends Omit<ViewConfig, 'runtimeFilters' |
|
|
|
518
518
|
/**
|
|
519
519
|
* Exclude the search token string from the URL.
|
|
520
520
|
* If set to true, the search token string is not appended to the URL.
|
|
521
|
-
* @version: SDK: 1.35.7 | ThoughtSpot: 10.
|
|
521
|
+
* @version: SDK: 1.35.7 | ThoughtSpot: 10.8.0.cl
|
|
522
522
|
* @example
|
|
523
523
|
* ```js
|
|
524
524
|
* const embed = new SearchEmbed('#tsEmbed', {
|
|
@@ -880,7 +880,7 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
|
|
|
880
880
|
/**
|
|
881
881
|
* Exclude the search token string from the URL.
|
|
882
882
|
* If set to true, the search token string is not appended to the URL.
|
|
883
|
-
* @version: SDK: 1.35.7 | ThoughtSpot: 10.
|
|
883
|
+
* @version: SDK: 1.35.7 | ThoughtSpot: 10.8.0.cl
|
|
884
884
|
* @example
|
|
885
885
|
* ```js
|
|
886
886
|
* const embed = new SearchEmbed('#tsEmbed', {
|
|
@@ -1876,6 +1876,21 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
1876
1876
|
* })
|
|
1877
1877
|
*/
|
|
1878
1878
|
dataSourceId?: string;
|
|
1879
|
+
/**
|
|
1880
|
+
* This flag is for show/hide checkboxes for include or exclude
|
|
1881
|
+
* cover and filter pages in the Liveboard PDF
|
|
1882
|
+
* @type {boolean}
|
|
1883
|
+
* @default true
|
|
1884
|
+
* @version SDK: 1.38.0 | ThoughtSpot:10.8.0.cl
|
|
1885
|
+
* @example
|
|
1886
|
+
* ```js
|
|
1887
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
1888
|
+
* ... // other options
|
|
1889
|
+
* coverAndFilterOptionInPDF: false,
|
|
1890
|
+
* })
|
|
1891
|
+
* ```
|
|
1892
|
+
*/
|
|
1893
|
+
coverAndFilterOptionInPDF?: boolean;
|
|
1879
1894
|
}
|
|
1880
1895
|
/**
|
|
1881
1896
|
* Embed a ThoughtSpot Liveboard or visualization. When rendered it already
|
|
@@ -2219,6 +2234,8 @@ export interface CustomisationsInterface {
|
|
|
2219
2234
|
* @version SDK: 1.26.0 | 9.7.0.cl
|
|
2220
2235
|
*/
|
|
2221
2236
|
strings?: Record<string, any>;
|
|
2237
|
+
stringIDs?: Record<string, string>;
|
|
2238
|
+
stringIDsUrl?: string;
|
|
2222
2239
|
[key: string]: any;
|
|
2223
2240
|
};
|
|
2224
2241
|
iconSpriteUrl?: string;
|
|
@@ -2529,7 +2546,7 @@ export interface EmbedConfig {
|
|
|
2529
2546
|
* }
|
|
2530
2547
|
* });
|
|
2531
2548
|
* ```
|
|
2532
|
-
* @version SDK 1.37.0 | ThoughtSpot: 10.
|
|
2549
|
+
* @version SDK 1.37.0 | ThoughtSpot: 10.8.0.cl
|
|
2533
2550
|
*/
|
|
2534
2551
|
customVariablesForThirdPartyTools?: Record<string, any>;
|
|
2535
2552
|
disablePreauthCache?: boolean;
|
|
@@ -2608,6 +2625,20 @@ export interface ViewConfig {
|
|
|
2608
2625
|
* ```
|
|
2609
2626
|
*/
|
|
2610
2627
|
disabledActions?: Action[];
|
|
2628
|
+
/**
|
|
2629
|
+
* The list of actions to display as primary actions,
|
|
2630
|
+
* These actions will be displayed upfront in the liveboard/app embed.
|
|
2631
|
+
* Use this to display actions.
|
|
2632
|
+
* @version SDK: 1.38.0 | ThoughtSpot: 10.9.0.cl
|
|
2633
|
+
* @example
|
|
2634
|
+
* ```js
|
|
2635
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
2636
|
+
* ... // other liveboard view config
|
|
2637
|
+
* primaryActions: [Action.Download]
|
|
2638
|
+
* });
|
|
2639
|
+
* ```
|
|
2640
|
+
*/
|
|
2641
|
+
primaryActions?: Action[];
|
|
2611
2642
|
/**
|
|
2612
2643
|
* The tooltip to display for disabled actions.
|
|
2613
2644
|
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
@@ -2970,6 +3001,12 @@ export interface ViewConfig {
|
|
|
2970
3001
|
* });
|
|
2971
3002
|
*/
|
|
2972
3003
|
collapseSearchBar?: boolean;
|
|
3004
|
+
/**
|
|
3005
|
+
* This flag can be used to expose translation IDs on the embedded app.
|
|
3006
|
+
* @default false
|
|
3007
|
+
* @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
|
|
3008
|
+
*/
|
|
3009
|
+
exposeTranslationIDs?: boolean;
|
|
2973
3010
|
/**
|
|
2974
3011
|
* This flag can be used to disable links inside the embedded app,
|
|
2975
3012
|
* and disable redirection of links in a new tab.
|
|
@@ -3024,6 +3061,21 @@ export interface ViewConfig {
|
|
|
3024
3061
|
* @version SDK: 1.35.0 | ThoughtSpot: 10.5.0.cl
|
|
3025
3062
|
*/
|
|
3026
3063
|
overrideOrgId?: number;
|
|
3064
|
+
/**
|
|
3065
|
+
* Hide list page columns
|
|
3066
|
+
* For example: hiddenListColumns = [ListPageColumns.Author]
|
|
3067
|
+
*
|
|
3068
|
+
* **Note**: This option is appplicable only in full app embedding.
|
|
3069
|
+
* @version SDK: 1.38.0 | ThoughtSpot: 9.12.5.cl, 10.1.0.sw
|
|
3070
|
+
* @example
|
|
3071
|
+
* ```js
|
|
3072
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
3073
|
+
* ... // other options
|
|
3074
|
+
* hiddenListColumns : [ListPageColumns.Favorite,ListPageColumns.Author],
|
|
3075
|
+
* })
|
|
3076
|
+
* ```
|
|
3077
|
+
*/
|
|
3078
|
+
hiddenListColumns?: ListPageColumns[];
|
|
3027
3079
|
}
|
|
3028
3080
|
/**
|
|
3029
3081
|
* MessagePayload: Embed event payload: message type, data and status (start/end)
|
|
@@ -3169,6 +3221,33 @@ export declare enum HomepageModule {
|
|
|
3169
3221
|
*/
|
|
3170
3222
|
Learning = "LEARNING"
|
|
3171
3223
|
}
|
|
3224
|
+
/**
|
|
3225
|
+
* List page columns that can be hidden.
|
|
3226
|
+
* **Note**: This option is applicable only in full app embedding.
|
|
3227
|
+
* @version SDK: 1.38.0 | ThoughtSpot: 9.12.5.cl, 10.1.0.sw
|
|
3228
|
+
*/
|
|
3229
|
+
export declare enum ListPageColumns {
|
|
3230
|
+
/**
|
|
3231
|
+
* Favourite
|
|
3232
|
+
*/
|
|
3233
|
+
Favourite = "FAVOURITE",
|
|
3234
|
+
/**
|
|
3235
|
+
* Tags
|
|
3236
|
+
*/
|
|
3237
|
+
Tags = "TAGS",
|
|
3238
|
+
/**
|
|
3239
|
+
* Author
|
|
3240
|
+
*/
|
|
3241
|
+
Author = "AUTHOR",
|
|
3242
|
+
/**
|
|
3243
|
+
* Last viewed/Last modified
|
|
3244
|
+
*/
|
|
3245
|
+
DateSort = "DATE_SORT",
|
|
3246
|
+
/**
|
|
3247
|
+
* Share
|
|
3248
|
+
*/
|
|
3249
|
+
Share = "SHARE"
|
|
3250
|
+
}
|
|
3172
3251
|
/**
|
|
3173
3252
|
* A filter that can be applied to ThoughtSpot answers, Liveboards, or
|
|
3174
3253
|
* visualizations at runtime.
|
|
@@ -4191,16 +4270,19 @@ export declare enum EmbedEvent {
|
|
|
4191
4270
|
/**
|
|
4192
4271
|
* Emits when a table visualization is rendered in
|
|
4193
4272
|
* the ThoughtSpot embedded app.
|
|
4273
|
+
*
|
|
4194
4274
|
* You can also use this event as a hook to trigger host events
|
|
4195
4275
|
* such as `HostEvent.TransformTableVizData` on the table visualization.
|
|
4196
4276
|
* The event payload contains the data used in the rendered table.
|
|
4197
4277
|
* You can extract the relevant data from the payload
|
|
4198
4278
|
* stored in `payload.data.data.columnDataLite`.
|
|
4279
|
+
*
|
|
4199
4280
|
* `columnDataLite` is a multidimensional array that contains
|
|
4200
4281
|
* data values for each column, which was used in the query to
|
|
4201
4282
|
* generate the table visualization. To find and modify specific cell data,
|
|
4202
4283
|
* you can either loop through the array or directly access a cell if
|
|
4203
4284
|
* you know its position and data index.
|
|
4285
|
+
*
|
|
4204
4286
|
* In the following code sample, the first cell in the first column
|
|
4205
4287
|
* (`columnDataLite[0].dataValue[0]`) is set to `new fob`.
|
|
4206
4288
|
* Note that any changes made to the data in the payload will only update the
|
|
@@ -4210,6 +4292,7 @@ export declare enum EmbedEvent {
|
|
|
4210
4292
|
* payload in the `columnDataLite` is passed on to
|
|
4211
4293
|
* `HostEvent.TransformTableVizData` and trigger an update to
|
|
4212
4294
|
* the table visualization.
|
|
4295
|
+
*
|
|
4213
4296
|
* If the Row-Level Security (RLS) rules are applied on the
|
|
4214
4297
|
* Worksheet or Model, exercise caution when changing column
|
|
4215
4298
|
* or table cell values to maintain data security.
|
|
@@ -4224,7 +4307,7 @@ export declare enum EmbedEvent {
|
|
|
4224
4307
|
* searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
|
|
4225
4308
|
* })
|
|
4226
4309
|
* ```
|
|
4227
|
-
* @version SDK: 1.
|
|
4310
|
+
* @version SDK: 1.38.0 | ThoughtSpot: 10.8.0.cl
|
|
4228
4311
|
*/
|
|
4229
4312
|
TableVizRendered = "TableVizRendered",
|
|
4230
4313
|
/**
|
|
@@ -4237,7 +4320,7 @@ export declare enum EmbedEvent {
|
|
|
4237
4320
|
* console.log('payload', payload);
|
|
4238
4321
|
* })
|
|
4239
4322
|
*```
|
|
4240
|
-
* @version SDK : 1.
|
|
4323
|
+
* @version SDK : 1.38.0 | ThoughtSpot : 10.8.0.cl
|
|
4241
4324
|
*/
|
|
4242
4325
|
CreateLiveboard = "createLiveboard",
|
|
4243
4326
|
/**
|
|
@@ -4684,7 +4767,7 @@ export declare enum HostEvent {
|
|
|
4684
4767
|
* ```js
|
|
4685
4768
|
* liveboardEmbed.trigger(HostEvent.Remove)
|
|
4686
4769
|
* ```
|
|
4687
|
-
* @version SDK: 1.
|
|
4770
|
+
* @version SDK: 1.38.0 | ThoughtSpot: 10.8.0.cl, 10.10.0.sw
|
|
4688
4771
|
*/
|
|
4689
4772
|
Remove = "delete",
|
|
4690
4773
|
/**
|
|
@@ -5232,7 +5315,7 @@ export declare enum HostEvent {
|
|
|
5232
5315
|
* ```js
|
|
5233
5316
|
* liveboardEmbed.trigger(HostEvent.InfoSuccess, data);
|
|
5234
5317
|
*```
|
|
5235
|
-
* @version SDK: 1.36.0 |
|
|
5318
|
+
* @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
|
|
5236
5319
|
*/
|
|
5237
5320
|
InfoSuccess = "InfoSuccess",
|
|
5238
5321
|
/**
|
|
@@ -5279,7 +5362,7 @@ export declare enum HostEvent {
|
|
|
5279
5362
|
* searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
|
|
5280
5363
|
* })
|
|
5281
5364
|
* ```
|
|
5282
|
-
* @version SDK: 1.
|
|
5365
|
+
* @version SDK: 1.38.0 | ThoughtSpot: 10.8.0.cl
|
|
5283
5366
|
*/
|
|
5284
5367
|
TransformTableVizData = "TransformTableVizData"
|
|
5285
5368
|
}
|
|
@@ -5330,6 +5413,7 @@ export declare enum Param {
|
|
|
5330
5413
|
livedBoardEmbed = "isLiveboardEmbed",
|
|
5331
5414
|
searchEmbed = "isSearchEmbed",
|
|
5332
5415
|
vizEmbed = "isVizEmbed",
|
|
5416
|
+
StringIDsUrl = "overrideStringIDsUrl",
|
|
5333
5417
|
Version = "sdkVersion",
|
|
5334
5418
|
ViewPortHeight = "viewPortHeight",
|
|
5335
5419
|
ViewPortWidth = "viewPortWidth",
|
|
@@ -5379,6 +5463,7 @@ export declare enum Param {
|
|
|
5379
5463
|
HideSageAnswerHeader = "hideSageAnswerHeader",
|
|
5380
5464
|
HideSearchBar = "hideSearchBar",
|
|
5381
5465
|
ClientLogLevel = "clientLogLevel",
|
|
5466
|
+
ExposeTranslationIDs = "exposeTranslationIDs",
|
|
5382
5467
|
OverrideNativeConsole = "overrideConsoleLogs",
|
|
5383
5468
|
enableAskSage = "enableAskSage",
|
|
5384
5469
|
CollapseSearchBarInitially = "collapseSearchBarInitially",
|
|
@@ -5404,7 +5489,9 @@ export declare enum Param {
|
|
|
5404
5489
|
IsForceRedirect = "isForceRedirect",
|
|
5405
5490
|
DataSourceId = "dataSourceId",
|
|
5406
5491
|
preAuthCache = "preAuthCache",
|
|
5407
|
-
ShowSpotterLimitations = "showSpotterLimitations"
|
|
5492
|
+
ShowSpotterLimitations = "showSpotterLimitations",
|
|
5493
|
+
CoverAndFilterOptionInPDF = "coverAndFilterOptionInPDF",
|
|
5494
|
+
PrimaryActions = "primaryActions"
|
|
5408
5495
|
}
|
|
5409
5496
|
/**
|
|
5410
5497
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -5569,7 +5656,7 @@ export declare enum Action {
|
|
|
5569
5656
|
* The **Collapse data panel** icon on the Search page.
|
|
5570
5657
|
* Collapses the data panel view.
|
|
5571
5658
|
*
|
|
5572
|
-
* @version: SDK: 1.34.0 | ThoughtSpot Cloud: 10.3.0.cl
|
|
5659
|
+
* @version: SDK: 1.34.0 | ThoughtSpot Cloud: 10.3.0.cl
|
|
5573
5660
|
*
|
|
5574
5661
|
* @example
|
|
5575
5662
|
* ```js
|
|
@@ -6613,7 +6700,17 @@ export declare enum Action {
|
|
|
6613
6700
|
* ```
|
|
6614
6701
|
* @version SDK: 1.38.0 | ThoughtSpot Cloud: 10.8.0.cl
|
|
6615
6702
|
*/
|
|
6616
|
-
ColumnRename = "columnRename"
|
|
6703
|
+
ColumnRename = "columnRename",
|
|
6704
|
+
/**
|
|
6705
|
+
* Action ID for hide checkboxes for include or exclude
|
|
6706
|
+
* cover and filter pages in the Liveboard PDF
|
|
6707
|
+
* @example
|
|
6708
|
+
* ```js
|
|
6709
|
+
* hiddenAction: [Action.CoverAndFilterOptionInPDF]
|
|
6710
|
+
* ```
|
|
6711
|
+
* @version SDK: 1.38.0 | ThoughtSpot Cloud: 10.8.0.cl
|
|
6712
|
+
*/
|
|
6713
|
+
CoverAndFilterOptionInPDF = "coverAndFilterOptionInPDF"
|
|
6617
6714
|
}
|
|
6618
6715
|
export interface AnswerServiceType {
|
|
6619
6716
|
getAnswer?: (offset: number, batchSize: number) => any;
|
|
@@ -6625,8 +6722,8 @@ export declare enum PrefetchFeatures {
|
|
|
6625
6722
|
VizEmbed = "VizEmbed"
|
|
6626
6723
|
}
|
|
6627
6724
|
/**
|
|
6628
|
-
* Enum for options to change context trigger
|
|
6629
|
-
* BOTH_CLICKS option is
|
|
6725
|
+
* Enum for options to change context trigger.
|
|
6726
|
+
* The `BOTH_CLICKS` option is available from 10.8.0.cl.
|
|
6630
6727
|
*/
|
|
6631
6728
|
export declare enum ContextMenuTriggerOptions {
|
|
6632
6729
|
LEFT_CLICK = "left-click",
|
|
@@ -6767,6 +6864,7 @@ export interface DefaultAppInitData {
|
|
|
6767
6864
|
hostConfig: Record<string, any>;
|
|
6768
6865
|
hiddenHomeLeftNavItems: string[];
|
|
6769
6866
|
customVariablesForThirdPartyTools: Record<string, any>;
|
|
6867
|
+
hiddenListColumns: ListPageColumns[];
|
|
6770
6868
|
}
|
|
6771
6869
|
|
|
6772
6870
|
export type EmbedEventHandlers = {
|
|
@@ -6774,6 +6872,7 @@ export type EmbedEventHandlers = {
|
|
|
6774
6872
|
};
|
|
6775
6873
|
export interface EmbedProps extends ViewConfig, EmbedEventHandlers {
|
|
6776
6874
|
className?: string;
|
|
6875
|
+
style?: React.CSSProperties;
|
|
6777
6876
|
}
|
|
6778
6877
|
export interface ViewConfigAndListeners<T extends ViewConfig> {
|
|
6779
6878
|
viewConfig: T;
|
|
@@ -7048,6 +7147,18 @@ export interface BodylessConversationViewConfig extends ViewConfig {
|
|
|
7048
7147
|
*/
|
|
7049
7148
|
worksheetId: string;
|
|
7050
7149
|
}
|
|
7150
|
+
interface ConversationMessageViewConfig extends BodylessConversationViewConfig {
|
|
7151
|
+
sessionId: string;
|
|
7152
|
+
genNo: number;
|
|
7153
|
+
acSessionId: string;
|
|
7154
|
+
acGenNo: number;
|
|
7155
|
+
}
|
|
7156
|
+
declare class ConversationMessage extends TsEmbed {
|
|
7157
|
+
protected viewConfig: ConversationMessageViewConfig;
|
|
7158
|
+
constructor(container: HTMLElement, viewConfig: ConversationMessageViewConfig);
|
|
7159
|
+
getIframeSrc(): string;
|
|
7160
|
+
render(): Promise<ConversationMessage>;
|
|
7161
|
+
}
|
|
7051
7162
|
/**
|
|
7052
7163
|
* Create a conversation embed, which can be integrated inside
|
|
7053
7164
|
* chatbots or other conversational interfaces.
|
|
@@ -7072,11 +7183,14 @@ export declare class BodylessConversation {
|
|
|
7072
7183
|
sendMessage(userMessage: string): Promise<{
|
|
7073
7184
|
error: any;
|
|
7074
7185
|
container?: undefined;
|
|
7186
|
+
viz?: undefined;
|
|
7075
7187
|
} | {
|
|
7076
7188
|
container: HTMLDivElement;
|
|
7189
|
+
viz: ConversationMessage;
|
|
7077
7190
|
error?: undefined;
|
|
7078
7191
|
}>;
|
|
7079
7192
|
}
|
|
7193
|
+
export {};
|
|
7080
7194
|
|
|
7081
7195
|
export type SessionInfo = {
|
|
7082
7196
|
releaseVersion: string;
|
|
@@ -508,7 +508,7 @@ export interface SearchBarViewConfig extends Omit<ViewConfig, 'runtimeFilters' |
|
|
|
508
508
|
/**
|
|
509
509
|
* Exclude the search token string from the URL.
|
|
510
510
|
* If set to true, the search token string is not appended to the URL.
|
|
511
|
-
* @version: SDK: 1.35.7 | ThoughtSpot: 10.
|
|
511
|
+
* @version: SDK: 1.35.7 | ThoughtSpot: 10.8.0.cl
|
|
512
512
|
* @example
|
|
513
513
|
* ```js
|
|
514
514
|
* const embed = new SearchEmbed('#tsEmbed', {
|
|
@@ -870,7 +870,7 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
|
|
|
870
870
|
/**
|
|
871
871
|
* Exclude the search token string from the URL.
|
|
872
872
|
* If set to true, the search token string is not appended to the URL.
|
|
873
|
-
* @version: SDK: 1.35.7 | ThoughtSpot: 10.
|
|
873
|
+
* @version: SDK: 1.35.7 | ThoughtSpot: 10.8.0.cl
|
|
874
874
|
* @example
|
|
875
875
|
* ```js
|
|
876
876
|
* const embed = new SearchEmbed('#tsEmbed', {
|
|
@@ -1866,6 +1866,21 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
1866
1866
|
* })
|
|
1867
1867
|
*/
|
|
1868
1868
|
dataSourceId?: string;
|
|
1869
|
+
/**
|
|
1870
|
+
* This flag is for show/hide checkboxes for include or exclude
|
|
1871
|
+
* cover and filter pages in the Liveboard PDF
|
|
1872
|
+
* @type {boolean}
|
|
1873
|
+
* @default true
|
|
1874
|
+
* @version SDK: 1.38.0 | ThoughtSpot:10.8.0.cl
|
|
1875
|
+
* @example
|
|
1876
|
+
* ```js
|
|
1877
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
1878
|
+
* ... // other options
|
|
1879
|
+
* coverAndFilterOptionInPDF: false,
|
|
1880
|
+
* })
|
|
1881
|
+
* ```
|
|
1882
|
+
*/
|
|
1883
|
+
coverAndFilterOptionInPDF?: boolean;
|
|
1869
1884
|
}
|
|
1870
1885
|
/**
|
|
1871
1886
|
* Embed a ThoughtSpot Liveboard or visualization. When rendered it already
|
|
@@ -2209,6 +2224,8 @@ export interface CustomisationsInterface {
|
|
|
2209
2224
|
* @version SDK: 1.26.0 | 9.7.0.cl
|
|
2210
2225
|
*/
|
|
2211
2226
|
strings?: Record<string, any>;
|
|
2227
|
+
stringIDs?: Record<string, string>;
|
|
2228
|
+
stringIDsUrl?: string;
|
|
2212
2229
|
[key: string]: any;
|
|
2213
2230
|
};
|
|
2214
2231
|
iconSpriteUrl?: string;
|
|
@@ -2519,7 +2536,7 @@ export interface EmbedConfig {
|
|
|
2519
2536
|
* }
|
|
2520
2537
|
* });
|
|
2521
2538
|
* ```
|
|
2522
|
-
* @version SDK 1.37.0 | ThoughtSpot: 10.
|
|
2539
|
+
* @version SDK 1.37.0 | ThoughtSpot: 10.8.0.cl
|
|
2523
2540
|
*/
|
|
2524
2541
|
customVariablesForThirdPartyTools?: Record<string, any>;
|
|
2525
2542
|
disablePreauthCache?: boolean;
|
|
@@ -2598,6 +2615,20 @@ export interface ViewConfig {
|
|
|
2598
2615
|
* ```
|
|
2599
2616
|
*/
|
|
2600
2617
|
disabledActions?: Action[];
|
|
2618
|
+
/**
|
|
2619
|
+
* The list of actions to display as primary actions,
|
|
2620
|
+
* These actions will be displayed upfront in the liveboard/app embed.
|
|
2621
|
+
* Use this to display actions.
|
|
2622
|
+
* @version SDK: 1.38.0 | ThoughtSpot: 10.9.0.cl
|
|
2623
|
+
* @example
|
|
2624
|
+
* ```js
|
|
2625
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
2626
|
+
* ... // other liveboard view config
|
|
2627
|
+
* primaryActions: [Action.Download]
|
|
2628
|
+
* });
|
|
2629
|
+
* ```
|
|
2630
|
+
*/
|
|
2631
|
+
primaryActions?: Action[];
|
|
2601
2632
|
/**
|
|
2602
2633
|
* The tooltip to display for disabled actions.
|
|
2603
2634
|
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
@@ -2960,6 +2991,12 @@ export interface ViewConfig {
|
|
|
2960
2991
|
* });
|
|
2961
2992
|
*/
|
|
2962
2993
|
collapseSearchBar?: boolean;
|
|
2994
|
+
/**
|
|
2995
|
+
* This flag can be used to expose translation IDs on the embedded app.
|
|
2996
|
+
* @default false
|
|
2997
|
+
* @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
|
|
2998
|
+
*/
|
|
2999
|
+
exposeTranslationIDs?: boolean;
|
|
2963
3000
|
/**
|
|
2964
3001
|
* This flag can be used to disable links inside the embedded app,
|
|
2965
3002
|
* and disable redirection of links in a new tab.
|
|
@@ -3014,6 +3051,21 @@ export interface ViewConfig {
|
|
|
3014
3051
|
* @version SDK: 1.35.0 | ThoughtSpot: 10.5.0.cl
|
|
3015
3052
|
*/
|
|
3016
3053
|
overrideOrgId?: number;
|
|
3054
|
+
/**
|
|
3055
|
+
* Hide list page columns
|
|
3056
|
+
* For example: hiddenListColumns = [ListPageColumns.Author]
|
|
3057
|
+
*
|
|
3058
|
+
* **Note**: This option is appplicable only in full app embedding.
|
|
3059
|
+
* @version SDK: 1.38.0 | ThoughtSpot: 9.12.5.cl, 10.1.0.sw
|
|
3060
|
+
* @example
|
|
3061
|
+
* ```js
|
|
3062
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
3063
|
+
* ... // other options
|
|
3064
|
+
* hiddenListColumns : [ListPageColumns.Favorite,ListPageColumns.Author],
|
|
3065
|
+
* })
|
|
3066
|
+
* ```
|
|
3067
|
+
*/
|
|
3068
|
+
hiddenListColumns?: ListPageColumns[];
|
|
3017
3069
|
}
|
|
3018
3070
|
/**
|
|
3019
3071
|
* MessagePayload: Embed event payload: message type, data and status (start/end)
|
|
@@ -3159,6 +3211,33 @@ export declare enum HomepageModule {
|
|
|
3159
3211
|
*/
|
|
3160
3212
|
Learning = "LEARNING"
|
|
3161
3213
|
}
|
|
3214
|
+
/**
|
|
3215
|
+
* List page columns that can be hidden.
|
|
3216
|
+
* **Note**: This option is applicable only in full app embedding.
|
|
3217
|
+
* @version SDK: 1.38.0 | ThoughtSpot: 9.12.5.cl, 10.1.0.sw
|
|
3218
|
+
*/
|
|
3219
|
+
export declare enum ListPageColumns {
|
|
3220
|
+
/**
|
|
3221
|
+
* Favourite
|
|
3222
|
+
*/
|
|
3223
|
+
Favourite = "FAVOURITE",
|
|
3224
|
+
/**
|
|
3225
|
+
* Tags
|
|
3226
|
+
*/
|
|
3227
|
+
Tags = "TAGS",
|
|
3228
|
+
/**
|
|
3229
|
+
* Author
|
|
3230
|
+
*/
|
|
3231
|
+
Author = "AUTHOR",
|
|
3232
|
+
/**
|
|
3233
|
+
* Last viewed/Last modified
|
|
3234
|
+
*/
|
|
3235
|
+
DateSort = "DATE_SORT",
|
|
3236
|
+
/**
|
|
3237
|
+
* Share
|
|
3238
|
+
*/
|
|
3239
|
+
Share = "SHARE"
|
|
3240
|
+
}
|
|
3162
3241
|
/**
|
|
3163
3242
|
* A filter that can be applied to ThoughtSpot answers, Liveboards, or
|
|
3164
3243
|
* visualizations at runtime.
|
|
@@ -4181,16 +4260,19 @@ export declare enum EmbedEvent {
|
|
|
4181
4260
|
/**
|
|
4182
4261
|
* Emits when a table visualization is rendered in
|
|
4183
4262
|
* the ThoughtSpot embedded app.
|
|
4263
|
+
*
|
|
4184
4264
|
* You can also use this event as a hook to trigger host events
|
|
4185
4265
|
* such as `HostEvent.TransformTableVizData` on the table visualization.
|
|
4186
4266
|
* The event payload contains the data used in the rendered table.
|
|
4187
4267
|
* You can extract the relevant data from the payload
|
|
4188
4268
|
* stored in `payload.data.data.columnDataLite`.
|
|
4269
|
+
*
|
|
4189
4270
|
* `columnDataLite` is a multidimensional array that contains
|
|
4190
4271
|
* data values for each column, which was used in the query to
|
|
4191
4272
|
* generate the table visualization. To find and modify specific cell data,
|
|
4192
4273
|
* you can either loop through the array or directly access a cell if
|
|
4193
4274
|
* you know its position and data index.
|
|
4275
|
+
*
|
|
4194
4276
|
* In the following code sample, the first cell in the first column
|
|
4195
4277
|
* (`columnDataLite[0].dataValue[0]`) is set to `new fob`.
|
|
4196
4278
|
* Note that any changes made to the data in the payload will only update the
|
|
@@ -4200,6 +4282,7 @@ export declare enum EmbedEvent {
|
|
|
4200
4282
|
* payload in the `columnDataLite` is passed on to
|
|
4201
4283
|
* `HostEvent.TransformTableVizData` and trigger an update to
|
|
4202
4284
|
* the table visualization.
|
|
4285
|
+
*
|
|
4203
4286
|
* If the Row-Level Security (RLS) rules are applied on the
|
|
4204
4287
|
* Worksheet or Model, exercise caution when changing column
|
|
4205
4288
|
* or table cell values to maintain data security.
|
|
@@ -4214,7 +4297,7 @@ export declare enum EmbedEvent {
|
|
|
4214
4297
|
* searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
|
|
4215
4298
|
* })
|
|
4216
4299
|
* ```
|
|
4217
|
-
* @version SDK: 1.
|
|
4300
|
+
* @version SDK: 1.38.0 | ThoughtSpot: 10.8.0.cl
|
|
4218
4301
|
*/
|
|
4219
4302
|
TableVizRendered = "TableVizRendered",
|
|
4220
4303
|
/**
|
|
@@ -4227,7 +4310,7 @@ export declare enum EmbedEvent {
|
|
|
4227
4310
|
* console.log('payload', payload);
|
|
4228
4311
|
* })
|
|
4229
4312
|
*```
|
|
4230
|
-
* @version SDK : 1.
|
|
4313
|
+
* @version SDK : 1.38.0 | ThoughtSpot : 10.8.0.cl
|
|
4231
4314
|
*/
|
|
4232
4315
|
CreateLiveboard = "createLiveboard",
|
|
4233
4316
|
/**
|
|
@@ -4674,7 +4757,7 @@ export declare enum HostEvent {
|
|
|
4674
4757
|
* ```js
|
|
4675
4758
|
* liveboardEmbed.trigger(HostEvent.Remove)
|
|
4676
4759
|
* ```
|
|
4677
|
-
* @version SDK: 1.
|
|
4760
|
+
* @version SDK: 1.38.0 | ThoughtSpot: 10.8.0.cl, 10.10.0.sw
|
|
4678
4761
|
*/
|
|
4679
4762
|
Remove = "delete",
|
|
4680
4763
|
/**
|
|
@@ -5222,7 +5305,7 @@ export declare enum HostEvent {
|
|
|
5222
5305
|
* ```js
|
|
5223
5306
|
* liveboardEmbed.trigger(HostEvent.InfoSuccess, data);
|
|
5224
5307
|
*```
|
|
5225
|
-
* @version SDK: 1.36.0 |
|
|
5308
|
+
* @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
|
|
5226
5309
|
*/
|
|
5227
5310
|
InfoSuccess = "InfoSuccess",
|
|
5228
5311
|
/**
|
|
@@ -5269,7 +5352,7 @@ export declare enum HostEvent {
|
|
|
5269
5352
|
* searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
|
|
5270
5353
|
* })
|
|
5271
5354
|
* ```
|
|
5272
|
-
* @version SDK: 1.
|
|
5355
|
+
* @version SDK: 1.38.0 | ThoughtSpot: 10.8.0.cl
|
|
5273
5356
|
*/
|
|
5274
5357
|
TransformTableVizData = "TransformTableVizData"
|
|
5275
5358
|
}
|
|
@@ -5320,6 +5403,7 @@ export declare enum Param {
|
|
|
5320
5403
|
livedBoardEmbed = "isLiveboardEmbed",
|
|
5321
5404
|
searchEmbed = "isSearchEmbed",
|
|
5322
5405
|
vizEmbed = "isVizEmbed",
|
|
5406
|
+
StringIDsUrl = "overrideStringIDsUrl",
|
|
5323
5407
|
Version = "sdkVersion",
|
|
5324
5408
|
ViewPortHeight = "viewPortHeight",
|
|
5325
5409
|
ViewPortWidth = "viewPortWidth",
|
|
@@ -5369,6 +5453,7 @@ export declare enum Param {
|
|
|
5369
5453
|
HideSageAnswerHeader = "hideSageAnswerHeader",
|
|
5370
5454
|
HideSearchBar = "hideSearchBar",
|
|
5371
5455
|
ClientLogLevel = "clientLogLevel",
|
|
5456
|
+
ExposeTranslationIDs = "exposeTranslationIDs",
|
|
5372
5457
|
OverrideNativeConsole = "overrideConsoleLogs",
|
|
5373
5458
|
enableAskSage = "enableAskSage",
|
|
5374
5459
|
CollapseSearchBarInitially = "collapseSearchBarInitially",
|
|
@@ -5394,7 +5479,9 @@ export declare enum Param {
|
|
|
5394
5479
|
IsForceRedirect = "isForceRedirect",
|
|
5395
5480
|
DataSourceId = "dataSourceId",
|
|
5396
5481
|
preAuthCache = "preAuthCache",
|
|
5397
|
-
ShowSpotterLimitations = "showSpotterLimitations"
|
|
5482
|
+
ShowSpotterLimitations = "showSpotterLimitations",
|
|
5483
|
+
CoverAndFilterOptionInPDF = "coverAndFilterOptionInPDF",
|
|
5484
|
+
PrimaryActions = "primaryActions"
|
|
5398
5485
|
}
|
|
5399
5486
|
/**
|
|
5400
5487
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -5559,7 +5646,7 @@ export declare enum Action {
|
|
|
5559
5646
|
* The **Collapse data panel** icon on the Search page.
|
|
5560
5647
|
* Collapses the data panel view.
|
|
5561
5648
|
*
|
|
5562
|
-
* @version: SDK: 1.34.0 | ThoughtSpot Cloud: 10.3.0.cl
|
|
5649
|
+
* @version: SDK: 1.34.0 | ThoughtSpot Cloud: 10.3.0.cl
|
|
5563
5650
|
*
|
|
5564
5651
|
* @example
|
|
5565
5652
|
* ```js
|
|
@@ -6603,7 +6690,17 @@ export declare enum Action {
|
|
|
6603
6690
|
* ```
|
|
6604
6691
|
* @version SDK: 1.38.0 | ThoughtSpot Cloud: 10.8.0.cl
|
|
6605
6692
|
*/
|
|
6606
|
-
ColumnRename = "columnRename"
|
|
6693
|
+
ColumnRename = "columnRename",
|
|
6694
|
+
/**
|
|
6695
|
+
* Action ID for hide checkboxes for include or exclude
|
|
6696
|
+
* cover and filter pages in the Liveboard PDF
|
|
6697
|
+
* @example
|
|
6698
|
+
* ```js
|
|
6699
|
+
* hiddenAction: [Action.CoverAndFilterOptionInPDF]
|
|
6700
|
+
* ```
|
|
6701
|
+
* @version SDK: 1.38.0 | ThoughtSpot Cloud: 10.8.0.cl
|
|
6702
|
+
*/
|
|
6703
|
+
CoverAndFilterOptionInPDF = "coverAndFilterOptionInPDF"
|
|
6607
6704
|
}
|
|
6608
6705
|
export interface AnswerServiceType {
|
|
6609
6706
|
getAnswer?: (offset: number, batchSize: number) => any;
|
|
@@ -6615,8 +6712,8 @@ export declare enum PrefetchFeatures {
|
|
|
6615
6712
|
VizEmbed = "VizEmbed"
|
|
6616
6713
|
}
|
|
6617
6714
|
/**
|
|
6618
|
-
* Enum for options to change context trigger
|
|
6619
|
-
* BOTH_CLICKS option is
|
|
6715
|
+
* Enum for options to change context trigger.
|
|
6716
|
+
* The `BOTH_CLICKS` option is available from 10.8.0.cl.
|
|
6620
6717
|
*/
|
|
6621
6718
|
export declare enum ContextMenuTriggerOptions {
|
|
6622
6719
|
LEFT_CLICK = "left-click",
|
|
@@ -6757,6 +6854,7 @@ export interface DefaultAppInitData {
|
|
|
6757
6854
|
hostConfig: Record<string, any>;
|
|
6758
6855
|
hiddenHomeLeftNavItems: string[];
|
|
6759
6856
|
customVariablesForThirdPartyTools: Record<string, any>;
|
|
6857
|
+
hiddenListColumns: ListPageColumns[];
|
|
6760
6858
|
}
|
|
6761
6859
|
|
|
6762
6860
|
export type EmbedEventHandlers = {
|
|
@@ -6764,6 +6862,7 @@ export type EmbedEventHandlers = {
|
|
|
6764
6862
|
};
|
|
6765
6863
|
export interface EmbedProps extends ViewConfig, EmbedEventHandlers {
|
|
6766
6864
|
className?: string;
|
|
6865
|
+
style?: React.CSSProperties;
|
|
6767
6866
|
}
|
|
6768
6867
|
export interface ViewConfigAndListeners<T extends ViewConfig> {
|
|
6769
6868
|
viewConfig: T;
|
|
@@ -6895,7 +6994,7 @@ export declare class ConversationEmbed extends TsEmbed {
|
|
|
6895
6994
|
* @summary ThoughtSpot Visual Embed SDK
|
|
6896
6995
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
6897
6996
|
*/
|
|
6898
|
-
export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, tokenizedFetch, getAnswerFromQuery, createLiveboardWithAnswers, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, BodylessConversation, BodylessConversationViewConfig, ConversationEmbed, ConversationViewConfig, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, AnswerService, SessionInterface, UnderlyingDataPoint, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, ContextMenuTriggerOptions, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, SageViewConfig, AppViewConfig, PrefetchFeatures, FrameParams, HomeLeftNavItem, HomepageModule, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, RuntimeParameter, LogLevel, uploadMixpanelEvent, MIXPANEL_EVENT, HomePageSearchBarMode, VizPoint, CustomActionPayload, UIPassthroughEvent, };
|
|
6997
|
+
export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, tokenizedFetch, getAnswerFromQuery, createLiveboardWithAnswers, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, BodylessConversation, BodylessConversationViewConfig, ConversationEmbed, ConversationViewConfig, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, AnswerService, SessionInterface, UnderlyingDataPoint, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, ContextMenuTriggerOptions, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, SageViewConfig, AppViewConfig, PrefetchFeatures, FrameParams, HomeLeftNavItem, HomepageModule, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, RuntimeParameter, LogLevel, uploadMixpanelEvent, MIXPANEL_EVENT, HomePageSearchBarMode, VizPoint, CustomActionPayload, UIPassthroughEvent, ListPageColumns, };
|
|
6899
6998
|
|
|
6900
6999
|
/**
|
|
6901
7000
|
* Copyright (c) 2022
|
|
@@ -8001,6 +8100,18 @@ export interface BodylessConversationViewConfig extends ViewConfig {
|
|
|
8001
8100
|
*/
|
|
8002
8101
|
worksheetId: string;
|
|
8003
8102
|
}
|
|
8103
|
+
interface ConversationMessageViewConfig extends BodylessConversationViewConfig {
|
|
8104
|
+
sessionId: string;
|
|
8105
|
+
genNo: number;
|
|
8106
|
+
acSessionId: string;
|
|
8107
|
+
acGenNo: number;
|
|
8108
|
+
}
|
|
8109
|
+
declare class ConversationMessage extends TsEmbed {
|
|
8110
|
+
protected viewConfig: ConversationMessageViewConfig;
|
|
8111
|
+
constructor(container: HTMLElement, viewConfig: ConversationMessageViewConfig);
|
|
8112
|
+
getIframeSrc(): string;
|
|
8113
|
+
render(): Promise<ConversationMessage>;
|
|
8114
|
+
}
|
|
8004
8115
|
/**
|
|
8005
8116
|
* Create a conversation embed, which can be integrated inside
|
|
8006
8117
|
* chatbots or other conversational interfaces.
|
|
@@ -8025,11 +8136,14 @@ export declare class BodylessConversation {
|
|
|
8025
8136
|
sendMessage(userMessage: string): Promise<{
|
|
8026
8137
|
error: any;
|
|
8027
8138
|
container?: undefined;
|
|
8139
|
+
viz?: undefined;
|
|
8028
8140
|
} | {
|
|
8029
8141
|
container: HTMLDivElement;
|
|
8142
|
+
viz: ConversationMessage;
|
|
8030
8143
|
error?: undefined;
|
|
8031
8144
|
}>;
|
|
8032
8145
|
}
|
|
8146
|
+
export {};
|
|
8033
8147
|
|
|
8034
8148
|
export type SessionInfo = {
|
|
8035
8149
|
releaseVersion: string;
|