@thoughtspot/visual-embed-sdk 1.27.0-loggers → 1.27.8
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/README.md +3 -3
- package/cjs/package.json +1 -1
- package/cjs/src/auth.d.ts.map +1 -1
- package/cjs/src/auth.js +2 -2
- package/cjs/src/auth.js.map +1 -1
- package/cjs/src/embed/app.d.ts +8 -2
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +5 -2
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +10 -0
- package/cjs/src/embed/app.spec.js.map +1 -1
- package/cjs/src/embed/base.d.ts +1 -1
- package/cjs/src/embed/base.d.ts.map +1 -1
- package/cjs/src/embed/base.js +5 -5
- package/cjs/src/embed/base.js.map +1 -1
- package/cjs/src/embed/base.spec.js +1 -1
- package/cjs/src/embed/base.spec.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts +7 -1
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +5 -2
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +2 -1
- package/cjs/src/embed/liveboard.spec.js.map +1 -1
- package/cjs/src/embed/sage.d.ts +1 -2
- package/cjs/src/embed/sage.d.ts.map +1 -1
- package/cjs/src/embed/sage.js +7 -6
- package/cjs/src/embed/sage.js.map +1 -1
- package/cjs/src/embed/sage.spec.js +3 -3
- package/cjs/src/embed/sage.spec.js.map +1 -1
- package/cjs/src/embed/search.d.ts +6 -3
- package/cjs/src/embed/search.d.ts.map +1 -1
- package/cjs/src/embed/search.js +9 -9
- package/cjs/src/embed/search.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts +2 -2
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +10 -9
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +14 -8
- 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/react/index.d.ts +1 -1
- package/cjs/src/react/index.d.ts.map +1 -1
- package/cjs/src/react/index.js +2 -1
- package/cjs/src/react/index.js.map +1 -1
- package/cjs/src/react/index.spec.js +12 -0
- package/cjs/src/react/index.spec.js.map +1 -1
- package/cjs/src/types.d.ts +136 -56
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +123 -50
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.js +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.js.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.spec.js +2 -0
- package/cjs/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
- package/cjs/src/utils/logger.d.ts.map +1 -1
- package/cjs/src/utils/logger.js +5 -3
- package/cjs/src/utils/logger.js.map +1 -1
- package/cjs/src/utils/logger.spec.js +36 -0
- package/cjs/src/utils/logger.spec.js.map +1 -1
- package/dist/src/auth.d.ts.map +1 -1
- package/dist/src/embed/app.d.ts +8 -2
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/base.d.ts +1 -1
- package/dist/src/embed/base.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +7 -1
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/sage.d.ts +1 -2
- package/dist/src/embed/sage.d.ts.map +1 -1
- package/dist/src/embed/search.d.ts +6 -3
- package/dist/src/embed/search.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts +2 -2
- 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/react/index.d.ts +1 -1
- package/dist/src/react/index.d.ts.map +1 -1
- package/dist/src/types.d.ts +136 -56
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/dist/src/utils/logger.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +6791 -23886
- package/dist/tsembed-react.js +6806 -23902
- package/dist/tsembed.es.js +12044 -29139
- package/dist/tsembed.js +15362 -32458
- package/dist/visual-embed-sdk-react-full.d.ts +177 -62
- package/dist/visual-embed-sdk-react.d.ts +177 -62
- package/dist/visual-embed-sdk.d.ts +177 -62
- package/lib/package.json +1 -1
- package/lib/src/auth.d.ts.map +1 -1
- package/lib/src/auth.js +3 -3
- package/lib/src/auth.js.map +1 -1
- package/lib/src/embed/app.d.ts +8 -2
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +5 -2
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +10 -0
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/base.d.ts +1 -1
- package/lib/src/embed/base.d.ts.map +1 -1
- package/lib/src/embed/base.js +5 -5
- package/lib/src/embed/base.js.map +1 -1
- package/lib/src/embed/base.spec.js +2 -2
- package/lib/src/embed/base.spec.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +7 -1
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +5 -2
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +2 -1
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/embed/sage.d.ts +1 -2
- package/lib/src/embed/sage.d.ts.map +1 -1
- package/lib/src/embed/sage.js +7 -6
- package/lib/src/embed/sage.js.map +1 -1
- package/lib/src/embed/sage.spec.js +3 -3
- package/lib/src/embed/sage.spec.js.map +1 -1
- package/lib/src/embed/search.d.ts +6 -3
- package/lib/src/embed/search.d.ts.map +1 -1
- package/lib/src/embed/search.js +10 -10
- package/lib/src/embed/search.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts +2 -2
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +13 -12
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +14 -8
- 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/react/index.d.ts +1 -1
- package/lib/src/react/index.d.ts.map +1 -1
- package/lib/src/react/index.js +1 -1
- package/lib/src/react/index.js.map +1 -1
- package/lib/src/react/index.spec.js +12 -0
- package/lib/src/react/index.spec.js.map +1 -1
- package/lib/src/types.d.ts +136 -56
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +123 -50
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/authService/authService.spec.js +1 -1
- package/lib/src/utils/authService/authService.spec.js.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.js +1 -1
- package/lib/src/utils/graphql/answerService/answerService.js.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.spec.js +2 -0
- package/lib/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
- package/lib/src/utils/logger.d.ts.map +1 -1
- package/lib/src/utils/logger.js +2 -1
- package/lib/src/utils/logger.js.map +1 -1
- package/lib/src/utils/logger.spec.js +36 -0
- package/lib/src/utils/logger.spec.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +181 -66
- package/package.json +1 -1
- package/src/auth.ts +6 -6
- package/src/embed/app.spec.ts +15 -0
- package/src/embed/app.ts +14 -3
- package/src/embed/base.spec.ts +3 -3
- package/src/embed/base.ts +12 -12
- package/src/embed/liveboard.spec.ts +2 -1
- package/src/embed/liveboard.ts +16 -6
- package/src/embed/sage.spec.ts +3 -3
- package/src/embed/sage.ts +8 -9
- package/src/embed/search.ts +15 -11
- package/src/embed/ts-embed.spec.ts +25 -19
- package/src/embed/ts-embed.ts +39 -41
- package/src/index.ts +2 -0
- package/src/react/index.spec.tsx +29 -0
- package/src/react/index.tsx +1 -0
- package/src/types.ts +141 -58
- package/src/utils/authService/authService.spec.ts +4 -4
- package/src/utils/graphql/answerService/answerService.spec.ts +2 -0
- package/src/utils/graphql/answerService/answerService.ts +3 -1
- package/src/utils/logger.spec.ts +41 -0
- package/src/utils/logger.ts +2 -1
|
@@ -13,7 +13,7 @@ import EventEmitter from 'eventemitter3';
|
|
|
13
13
|
* @summary ThoughtSpot Visual Embed SDK
|
|
14
14
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
15
15
|
*/
|
|
16
|
-
export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, AnswerService, 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, };
|
|
16
|
+
export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, AnswerService, 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, };
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Copyright (c) 2022
|
|
@@ -198,6 +198,13 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
198
198
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
199
199
|
*/
|
|
200
200
|
isLiveboardHeaderSticky?: boolean;
|
|
201
|
+
/**
|
|
202
|
+
* enable or disable ask sage
|
|
203
|
+
*
|
|
204
|
+
* @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
|
|
205
|
+
* @default false
|
|
206
|
+
*/
|
|
207
|
+
enableAskSage?: boolean;
|
|
201
208
|
}
|
|
202
209
|
/**
|
|
203
210
|
* Embeds full ThoughtSpot experience in a host application.
|
|
@@ -206,13 +213,18 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
206
213
|
*/
|
|
207
214
|
export class AppEmbed extends V1Embed {
|
|
208
215
|
protected viewConfig: AppViewConfig;
|
|
209
|
-
protected embedComponentType: string;
|
|
210
216
|
constructor(domSelector: DOMSelector, viewConfig: AppViewConfig);
|
|
211
217
|
/**
|
|
212
218
|
* Constructs a map of parameters to be passed on to the
|
|
213
219
|
* embedded Liveboard or visualization.
|
|
214
220
|
*/
|
|
215
221
|
protected getEmbedParams(): string;
|
|
222
|
+
/**
|
|
223
|
+
* Constructs the URL of the ThoughtSpot app page to be rendered.
|
|
224
|
+
*
|
|
225
|
+
* @param pageId The ID of the page to be embedded.
|
|
226
|
+
*/
|
|
227
|
+
getIFrameSrc(): string;
|
|
216
228
|
/**
|
|
217
229
|
* Set the iframe height as per the computed height received
|
|
218
230
|
* from the ThoughtSpot app.
|
|
@@ -510,6 +522,13 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
510
522
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
511
523
|
*/
|
|
512
524
|
isLiveboardHeaderSticky?: boolean;
|
|
525
|
+
/**
|
|
526
|
+
* enable or disable ask sage
|
|
527
|
+
*
|
|
528
|
+
* @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
|
|
529
|
+
* @default false
|
|
530
|
+
*/
|
|
531
|
+
enableAskSage?: boolean;
|
|
513
532
|
}
|
|
514
533
|
/**
|
|
515
534
|
* Embed a ThoughtSpot Liveboard or visualization. When rendered it already
|
|
@@ -529,7 +548,6 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
529
548
|
*/
|
|
530
549
|
export class LiveboardEmbed extends V1Embed {
|
|
531
550
|
protected viewConfig: LiveboardViewConfig;
|
|
532
|
-
protected embedComponentType: string;
|
|
533
551
|
constructor(domSelector: DOMSelector, viewConfig: LiveboardViewConfig);
|
|
534
552
|
/**
|
|
535
553
|
* Construct a map of params to be passed on to the
|
|
@@ -606,6 +624,10 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
|
|
|
606
624
|
* using raw answer data.
|
|
607
625
|
*/
|
|
608
626
|
hideResults?: boolean;
|
|
627
|
+
/**
|
|
628
|
+
* If set to true, expands all the data sources panel.
|
|
629
|
+
*/
|
|
630
|
+
expandAllDataSource?: boolean;
|
|
609
631
|
/**
|
|
610
632
|
* If set to true, the Search Assist feature is enabled.
|
|
611
633
|
*
|
|
@@ -694,9 +716,16 @@ export class SearchEmbed extends TsEmbed {
|
|
|
694
716
|
* The view configuration for the embedded ThoughtSpot search.
|
|
695
717
|
*/
|
|
696
718
|
protected viewConfig: SearchViewConfig;
|
|
697
|
-
protected embedComponentType: string;
|
|
698
719
|
constructor(domSelector: DOMSelector, viewConfig: SearchViewConfig);
|
|
699
720
|
protected getEmbedParams(): string;
|
|
721
|
+
/**
|
|
722
|
+
* Construct the URL of the embedded ThoughtSpot search to be
|
|
723
|
+
* loaded in the iframe
|
|
724
|
+
*
|
|
725
|
+
* @param answerId The GUID of a saved answer
|
|
726
|
+
* @param dataSources A list of data source GUIDs
|
|
727
|
+
*/
|
|
728
|
+
getIFrameSrc(): string;
|
|
700
729
|
/**
|
|
701
730
|
* Render the embedded ThoughtSpot search
|
|
702
731
|
*/
|
|
@@ -1461,8 +1490,8 @@ export interface EmbedConfig {
|
|
|
1461
1490
|
suppressErrorAlerts?: boolean;
|
|
1462
1491
|
/**
|
|
1463
1492
|
* Log level for the SDK.
|
|
1464
|
-
* @default LogLevel.ERROR
|
|
1465
1493
|
*
|
|
1494
|
+
* @default LogLevel.ERROR
|
|
1466
1495
|
* @example
|
|
1467
1496
|
* ```js
|
|
1468
1497
|
* init({
|
|
@@ -1470,7 +1499,7 @@ export interface EmbedConfig {
|
|
|
1470
1499
|
* logLevel: LogLevel.SILENT
|
|
1471
1500
|
* })
|
|
1472
1501
|
* ```
|
|
1473
|
-
* @version SDK: 1.26.
|
|
1502
|
+
* @version SDK: 1.26.7 | ThoughtSpot: 9.10.0.cl
|
|
1474
1503
|
*/
|
|
1475
1504
|
logLevel?: LogLevel;
|
|
1476
1505
|
}
|
|
@@ -1709,6 +1738,7 @@ export interface ViewConfig {
|
|
|
1709
1738
|
* ```js
|
|
1710
1739
|
* hiddenHomeLeftNavItems = [HomeLeftNavItem.Home]
|
|
1711
1740
|
* ```
|
|
1741
|
+
*
|
|
1712
1742
|
* @version SDK: 1.27.0 | Thoughtspot: 9.10.0.cl
|
|
1713
1743
|
*/
|
|
1714
1744
|
hiddenHomeLeftNavItems?: HomeLeftNavItem[];
|
|
@@ -1746,6 +1776,12 @@ export interface ViewConfig {
|
|
|
1746
1776
|
* const myComponent = new MyComponent(config);
|
|
1747
1777
|
*/
|
|
1748
1778
|
doNotTrackPreRenderSize?: boolean;
|
|
1779
|
+
/**
|
|
1780
|
+
* For internal tracking of the embed component type.
|
|
1781
|
+
*
|
|
1782
|
+
* @hidden
|
|
1783
|
+
*/
|
|
1784
|
+
embedComponentType?: string;
|
|
1749
1785
|
}
|
|
1750
1786
|
/**
|
|
1751
1787
|
* MessagePayload: Embed event payload: message type, data and status (start/end)
|
|
@@ -1943,6 +1979,7 @@ export interface RuntimeParameter {
|
|
|
1943
1979
|
export enum EmbedEvent {
|
|
1944
1980
|
/**
|
|
1945
1981
|
* Rendering has initialized.
|
|
1982
|
+
*
|
|
1946
1983
|
* @example
|
|
1947
1984
|
*```js
|
|
1948
1985
|
* liveboardEmbed.on(EmbedEvent.Init, showLoader)
|
|
@@ -1951,7 +1988,6 @@ export enum EmbedEvent {
|
|
|
1951
1988
|
* document.getElementById("loader");
|
|
1952
1989
|
* }
|
|
1953
1990
|
*```
|
|
1954
|
-
*
|
|
1955
1991
|
* @returns timestamp - The timestamp when the event was generated.
|
|
1956
1992
|
*/
|
|
1957
1993
|
Init = "init",
|
|
@@ -1964,12 +2000,12 @@ export enum EmbedEvent {
|
|
|
1964
2000
|
* console.log('AuthInit', payload);
|
|
1965
2001
|
* })
|
|
1966
2002
|
*```
|
|
1967
|
-
*
|
|
1968
2003
|
* @returns isLoggedIn - A Boolean specifying whether authentication was successful.
|
|
1969
2004
|
*/
|
|
1970
2005
|
AuthInit = "authInit",
|
|
1971
2006
|
/**
|
|
1972
2007
|
* The embed object container has loaded.
|
|
2008
|
+
*
|
|
1973
2009
|
* @returns timestamp - The timestamp when the event was generated.
|
|
1974
2010
|
* @example
|
|
1975
2011
|
*```js
|
|
@@ -1983,6 +2019,7 @@ export enum EmbedEvent {
|
|
|
1983
2019
|
Load = "load",
|
|
1984
2020
|
/**
|
|
1985
2021
|
* Data pertaining to answer or Liveboard is received
|
|
2022
|
+
*
|
|
1986
2023
|
* @return data - The answer or Liveboard data
|
|
1987
2024
|
* @example
|
|
1988
2025
|
*```js
|
|
@@ -2006,7 +2043,6 @@ export enum EmbedEvent {
|
|
|
2006
2043
|
*```js
|
|
2007
2044
|
* searchEmbed.on(EmbedEvent.QueryChanged, payload => console.log('data', payload))
|
|
2008
2045
|
*```
|
|
2009
|
-
*
|
|
2010
2046
|
*/
|
|
2011
2047
|
QueryChanged = "queryChanged",
|
|
2012
2048
|
/**
|
|
@@ -2015,7 +2051,6 @@ export enum EmbedEvent {
|
|
|
2015
2051
|
* @returns additionalFilters - Any additional filters applied
|
|
2016
2052
|
* @returns drillDownColumns - The columns on which drill down was performed
|
|
2017
2053
|
* @returns nonFilteredColumns - The columns that were not filtered
|
|
2018
|
-
*
|
|
2019
2054
|
* @example
|
|
2020
2055
|
*```js
|
|
2021
2056
|
* searchEmbed.trigger(HostEvent.DrillDown, {
|
|
@@ -2029,7 +2064,6 @@ export enum EmbedEvent {
|
|
|
2029
2064
|
* In this example, `VizPointDoubleClick` event is used for
|
|
2030
2065
|
* triggering the `DrillDown` event when an area or specific
|
|
2031
2066
|
* data point on a table or chart is double-clicked.
|
|
2032
|
-
*
|
|
2033
2067
|
* @example
|
|
2034
2068
|
*```js
|
|
2035
2069
|
* searchEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
|
|
@@ -2046,34 +2080,31 @@ export enum EmbedEvent {
|
|
|
2046
2080
|
* })
|
|
2047
2081
|
* })
|
|
2048
2082
|
*```
|
|
2049
|
-
*
|
|
2050
2083
|
*/
|
|
2051
2084
|
Drilldown = "drillDown",
|
|
2052
2085
|
/**
|
|
2053
2086
|
* One or more data sources have been selected.
|
|
2054
|
-
* @returns dataSourceIds - the list of data sources
|
|
2055
2087
|
*
|
|
2088
|
+
* @returns dataSourceIds - the list of data sources
|
|
2056
2089
|
* @example
|
|
2057
2090
|
* ```js
|
|
2058
2091
|
* searchEmbed.on(EmbedEvent.DataSourceSelected, payload => {
|
|
2059
2092
|
* console.log('DataSourceSelected', payload);
|
|
2060
2093
|
* })
|
|
2061
2094
|
* ```
|
|
2062
|
-
*
|
|
2063
2095
|
*/
|
|
2064
2096
|
DataSourceSelected = "dataSourceSelected",
|
|
2065
2097
|
/**
|
|
2066
2098
|
* One or more data columns have been selected.
|
|
2099
|
+
*
|
|
2067
2100
|
* @returns columnIds - the list of columns
|
|
2068
2101
|
* @version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
|
|
2069
|
-
*
|
|
2070
2102
|
* @example
|
|
2071
2103
|
* ```js
|
|
2072
2104
|
* appEmbed.on(EmbedEvent.AddRemoveColumns, payload => {
|
|
2073
2105
|
* console.log('AddRemoveColumns', payload);
|
|
2074
2106
|
* })
|
|
2075
2107
|
* ```
|
|
2076
|
-
*
|
|
2077
2108
|
*/
|
|
2078
2109
|
AddRemoveColumns = "addRemoveColumns",
|
|
2079
2110
|
/**
|
|
@@ -2081,7 +2112,6 @@ export enum EmbedEvent {
|
|
|
2081
2112
|
*
|
|
2082
2113
|
* @returns actionId - ID of the custom action
|
|
2083
2114
|
* @returns data - Response payload with the Answer or Liveboard data
|
|
2084
|
-
*
|
|
2085
2115
|
* @example
|
|
2086
2116
|
* ```js
|
|
2087
2117
|
* appEmbed.on(EmbedEvent.customAction, payload => {
|
|
@@ -2097,9 +2127,7 @@ export enum EmbedEvent {
|
|
|
2097
2127
|
* Listen to double click actions on a visualization.
|
|
2098
2128
|
*
|
|
2099
2129
|
* @return ContextMenuInputPoints - Data point that is double-clicked
|
|
2100
|
-
*
|
|
2101
2130
|
* @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
|
|
2102
|
-
*
|
|
2103
2131
|
* @example
|
|
2104
2132
|
* ```js
|
|
2105
2133
|
* livebaordEmbed.on(EmbedEvent.VizPointDoubleClick, payload => {
|
|
@@ -2114,7 +2142,6 @@ export enum EmbedEvent {
|
|
|
2114
2142
|
* @return viz, clickedPoint - metadata about the point that is clicked
|
|
2115
2143
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2116
2144
|
* @important
|
|
2117
|
-
*
|
|
2118
2145
|
* @example
|
|
2119
2146
|
* ```js
|
|
2120
2147
|
* embed.on(ThoughtSpotEmbed.Event.VizPointClick, ({data}) => {
|
|
@@ -2133,7 +2160,6 @@ export enum EmbedEvent {
|
|
|
2133
2160
|
* An error has occurred.
|
|
2134
2161
|
*
|
|
2135
2162
|
* @returns error - An error object or message
|
|
2136
|
-
*
|
|
2137
2163
|
* @example
|
|
2138
2164
|
* ```js
|
|
2139
2165
|
* SearchEmbed.on(EmbedEvent.Error, showErrorMsg)
|
|
@@ -2141,19 +2167,16 @@ export enum EmbedEvent {
|
|
|
2141
2167
|
* function showErrorMsg() {
|
|
2142
2168
|
* document.getElementById("error");
|
|
2143
2169
|
* ```
|
|
2144
|
-
*
|
|
2145
2170
|
*/
|
|
2146
2171
|
Error = "Error",
|
|
2147
2172
|
/**
|
|
2148
2173
|
* The embedded object has sent an alert.
|
|
2149
2174
|
*
|
|
2150
2175
|
* @returns alert - An alert object
|
|
2151
|
-
*
|
|
2152
2176
|
* @example
|
|
2153
2177
|
* ```js
|
|
2154
2178
|
* searchEmbed.on(EmbedEvent.Alert)
|
|
2155
2179
|
* ```
|
|
2156
|
-
*
|
|
2157
2180
|
*/
|
|
2158
2181
|
Alert = "alert",
|
|
2159
2182
|
/**
|
|
@@ -2200,7 +2223,6 @@ export enum EmbedEvent {
|
|
|
2200
2223
|
* Applicable to `SearchBarEmbed` only.
|
|
2201
2224
|
*
|
|
2202
2225
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
2203
|
-
*
|
|
2204
2226
|
* @example
|
|
2205
2227
|
*```js
|
|
2206
2228
|
* searchbarEmbed.on(EmbedEvent.GetDataClick)
|
|
@@ -2247,8 +2269,8 @@ export enum EmbedEvent {
|
|
|
2247
2269
|
SAMLComplete = "samlComplete",
|
|
2248
2270
|
/**
|
|
2249
2271
|
* Emitted when any modal is opened in the app
|
|
2250
|
-
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
2251
2272
|
*
|
|
2273
|
+
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
2252
2274
|
* @example
|
|
2253
2275
|
*```js
|
|
2254
2276
|
* appEmbed.on(EmbedEvent.DialogOpen, payload => {
|
|
@@ -2259,8 +2281,8 @@ export enum EmbedEvent {
|
|
|
2259
2281
|
DialogOpen = "dialog-open",
|
|
2260
2282
|
/**
|
|
2261
2283
|
* Emitted when any modal is closed in the app
|
|
2262
|
-
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
2263
2284
|
*
|
|
2285
|
+
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
2264
2286
|
* @example
|
|
2265
2287
|
*```js
|
|
2266
2288
|
* appEmbed.on(EmbedEvent.DialogClose, payload => {
|
|
@@ -2273,8 +2295,8 @@ export enum EmbedEvent {
|
|
|
2273
2295
|
* Emitted when the Liveboard shell loads.
|
|
2274
2296
|
* You can use this event as a hook to trigger
|
|
2275
2297
|
* other events on the rendered Liveboard.
|
|
2276
|
-
* @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
|
|
2277
2298
|
*
|
|
2299
|
+
* @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
|
|
2278
2300
|
* @example
|
|
2279
2301
|
*```js
|
|
2280
2302
|
* liveboardEmbed.on(EmbedEvent.LiveboardRendered, payload => {
|
|
@@ -2283,7 +2305,6 @@ export enum EmbedEvent {
|
|
|
2283
2305
|
*```
|
|
2284
2306
|
* The following example shows how to trigger
|
|
2285
2307
|
* `SetVisibleVizs` event using LiveboardRendered embed event:
|
|
2286
|
-
*
|
|
2287
2308
|
* @example
|
|
2288
2309
|
*```js
|
|
2289
2310
|
* const embedRef = useEmbedRef();
|
|
@@ -2296,8 +2317,8 @@ export enum EmbedEvent {
|
|
|
2296
2317
|
/**
|
|
2297
2318
|
* This can be used to register an event listener which
|
|
2298
2319
|
* is triggered on all events.
|
|
2299
|
-
* @Version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
|
|
2300
2320
|
*
|
|
2321
|
+
* @Version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
|
|
2301
2322
|
* @example
|
|
2302
2323
|
*```js
|
|
2303
2324
|
* appEmbed.on(EmbedEvent.ALL, payload => {
|
|
@@ -2308,6 +2329,7 @@ export enum EmbedEvent {
|
|
|
2308
2329
|
ALL = "*",
|
|
2309
2330
|
/**
|
|
2310
2331
|
* Emitted when an Answer is saved in the app
|
|
2332
|
+
*
|
|
2311
2333
|
* @Version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2312
2334
|
* @example
|
|
2313
2335
|
*```js
|
|
@@ -2333,7 +2355,6 @@ export enum EmbedEvent {
|
|
|
2333
2355
|
* or `EmbedEvent.DownloadAsXLSX`
|
|
2334
2356
|
*
|
|
2335
2357
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2336
|
-
*
|
|
2337
2358
|
* @example
|
|
2338
2359
|
*```js
|
|
2339
2360
|
* liveboardEmbed.trigger(HostEvent.Download, {
|
|
@@ -2344,8 +2365,8 @@ export enum EmbedEvent {
|
|
|
2344
2365
|
Download = "download",
|
|
2345
2366
|
/**
|
|
2346
2367
|
* Emitted when the download action is triggered on an answer
|
|
2347
|
-
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.0.sw
|
|
2348
2368
|
*
|
|
2369
|
+
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.0.sw
|
|
2349
2370
|
* @example
|
|
2350
2371
|
*```js
|
|
2351
2372
|
* //trigger when action starts
|
|
@@ -2355,14 +2376,12 @@ export enum EmbedEvent {
|
|
|
2355
2376
|
* searchEmbed.on(EmbedEvent.DownloadAsPng, payload => {
|
|
2356
2377
|
* console.log('download PNG', payload)})
|
|
2357
2378
|
*```
|
|
2358
|
-
*
|
|
2359
2379
|
*/
|
|
2360
2380
|
DownloadAsPng = "downloadAsPng",
|
|
2361
2381
|
/**
|
|
2362
2382
|
* Emitted when the Download as PDF action is triggered on an answer
|
|
2363
2383
|
*
|
|
2364
2384
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2365
|
-
*
|
|
2366
2385
|
* @example
|
|
2367
2386
|
*```js
|
|
2368
2387
|
* //trigger when action starts
|
|
@@ -2372,7 +2391,6 @@ export enum EmbedEvent {
|
|
|
2372
2391
|
* searchEmbed.on(EmbedEvent.DownloadAsPdf, payload => {
|
|
2373
2392
|
* console.log('download PDF', payload)})
|
|
2374
2393
|
*```
|
|
2375
|
-
*
|
|
2376
2394
|
*/
|
|
2377
2395
|
DownloadAsPdf = "downloadAsPdf",
|
|
2378
2396
|
/**
|
|
@@ -2394,7 +2412,6 @@ export enum EmbedEvent {
|
|
|
2394
2412
|
* Emitted when the Download as XLSX action is triggered on an answer
|
|
2395
2413
|
*
|
|
2396
2414
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2397
|
-
*
|
|
2398
2415
|
* @example
|
|
2399
2416
|
*```js
|
|
2400
2417
|
* //trigger when action starts
|
|
@@ -2410,7 +2427,6 @@ export enum EmbedEvent {
|
|
|
2410
2427
|
* Emitted when an Answer is deleted in the app
|
|
2411
2428
|
*
|
|
2412
2429
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2413
|
-
*
|
|
2414
2430
|
* @example
|
|
2415
2431
|
*```js
|
|
2416
2432
|
* //trigger when action starts
|
|
@@ -2464,7 +2480,6 @@ export enum EmbedEvent {
|
|
|
2464
2480
|
* Emitted when a user shares an object with another user or group
|
|
2465
2481
|
*
|
|
2466
2482
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2467
|
-
*
|
|
2468
2483
|
* @example
|
|
2469
2484
|
*```js
|
|
2470
2485
|
* //trigger when action starts
|
|
@@ -2544,6 +2559,7 @@ export enum EmbedEvent {
|
|
|
2544
2559
|
/**
|
|
2545
2560
|
* Emitted when the **Export TML** action is triggered on an
|
|
2546
2561
|
* an embedded object in the app
|
|
2562
|
+
*
|
|
2547
2563
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2548
2564
|
* @example
|
|
2549
2565
|
*```js
|
|
@@ -2681,7 +2697,6 @@ export enum EmbedEvent {
|
|
|
2681
2697
|
*```js
|
|
2682
2698
|
* liveboardEmbed.trigger(HostEvent.Present)
|
|
2683
2699
|
*```
|
|
2684
|
-
*
|
|
2685
2700
|
* @example
|
|
2686
2701
|
*```js
|
|
2687
2702
|
* liveboardEmbed.on(EmbedEvent.Present, {
|
|
@@ -2699,77 +2714,65 @@ export enum EmbedEvent {
|
|
|
2699
2714
|
* liveboardEmbed.trigger(HostEvent.Delete,
|
|
2700
2715
|
* {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
2701
2716
|
*```
|
|
2702
|
-
*
|
|
2703
2717
|
*/
|
|
2704
2718
|
Delete = "delete",
|
|
2705
2719
|
/**
|
|
2706
2720
|
* Emitted when a user clicks Manage schedules on a Liveboard
|
|
2707
2721
|
*
|
|
2708
2722
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2709
|
-
*
|
|
2710
2723
|
* @example
|
|
2711
2724
|
*```js
|
|
2712
2725
|
* liveboardEmbed.trigger(HostEvent.SchedulesList)
|
|
2713
2726
|
*```
|
|
2714
|
-
*
|
|
2715
2727
|
*/
|
|
2716
2728
|
SchedulesList = "schedule-list",
|
|
2717
2729
|
/**
|
|
2718
2730
|
* Emitted when a user clicks **Cancel** in edit mode on a Liveboard
|
|
2719
2731
|
*
|
|
2720
2732
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2721
|
-
*
|
|
2722
2733
|
* @example
|
|
2723
2734
|
*```js
|
|
2724
2735
|
* liveboardEmbed.trigger(HostEvent.Cancel)
|
|
2725
2736
|
*```
|
|
2726
|
-
*
|
|
2727
2737
|
*/
|
|
2728
2738
|
Cancel = "cancel",
|
|
2729
2739
|
/**
|
|
2730
2740
|
* Emitted when a user clicks **Explore** on a visualization
|
|
2731
2741
|
*
|
|
2732
2742
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2733
|
-
*
|
|
2734
2743
|
* @example
|
|
2735
2744
|
*```js
|
|
2736
2745
|
* liveboardEmbed.trigger(HostEvent.Explore, {
|
|
2737
2746
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
2738
2747
|
*```
|
|
2739
|
-
*
|
|
2740
2748
|
*/
|
|
2741
2749
|
Explore = "explore",
|
|
2742
2750
|
/**
|
|
2743
2751
|
* Emitted when a user clicks **Copy link** action on a visualization
|
|
2744
2752
|
*
|
|
2745
2753
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2746
|
-
*
|
|
2747
2754
|
* @example
|
|
2748
2755
|
*```js
|
|
2749
2756
|
* liveboardEmbed.trigger(HostEvent.CopyLink, {
|
|
2750
2757
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
2751
2758
|
*```
|
|
2752
|
-
*
|
|
2753
2759
|
*/
|
|
2754
2760
|
CopyLink = "embedDocument",
|
|
2755
2761
|
/**
|
|
2756
2762
|
* Emitted when a user interacts with cross filters on a visualization or Liveboard
|
|
2757
2763
|
*
|
|
2758
2764
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
|
|
2759
|
-
*
|
|
2760
2765
|
* @example
|
|
2761
2766
|
*```js
|
|
2762
2767
|
* liveboardEmbed.trigger(HostEvent.CrossFilterChanged, {
|
|
2763
2768
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
2764
2769
|
*```
|
|
2765
|
-
*
|
|
2766
2770
|
*/
|
|
2767
2771
|
CrossFilterChanged = "cross-filter-changed",
|
|
2768
2772
|
/**
|
|
2769
2773
|
* Emitted when a user right clicks on a visualization (chart or table)
|
|
2770
2774
|
*
|
|
2771
2775
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
|
|
2772
|
-
*
|
|
2773
2776
|
* @example
|
|
2774
2777
|
*```js
|
|
2775
2778
|
* LiveboardEmbed.on(EmbedEvent.VizPointRightClick, payload => {
|
|
@@ -2800,7 +2803,6 @@ export enum EmbedEvent {
|
|
|
2800
2803
|
* Emitted when a user selects a data source.
|
|
2801
2804
|
*
|
|
2802
2805
|
* @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
2803
|
-
*
|
|
2804
2806
|
*/
|
|
2805
2807
|
SageWorksheetUpdated = "sageWorksheetUpdated",
|
|
2806
2808
|
/**
|
|
@@ -2859,7 +2861,23 @@ export enum EmbedEvent {
|
|
|
2859
2861
|
*
|
|
2860
2862
|
* @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl
|
|
2861
2863
|
*/
|
|
2862
|
-
CreateWorksheet = "createWorksheet"
|
|
2864
|
+
CreateWorksheet = "createWorksheet",
|
|
2865
|
+
/**
|
|
2866
|
+
* Emitted when Ask Sage is initialized.
|
|
2867
|
+
*
|
|
2868
|
+
* @returns viewName: string
|
|
2869
|
+
* @returns viewId: string
|
|
2870
|
+
* @returns liveboardId: string
|
|
2871
|
+
* @returns isPublic: boolean
|
|
2872
|
+
* @version SDK : 1.29.0 | Thoughtspot: 9.12.0.cl
|
|
2873
|
+
*/
|
|
2874
|
+
AskSageInit = "AskSageInit",
|
|
2875
|
+
/**
|
|
2876
|
+
* Emitted when a LB/viz is renamed
|
|
2877
|
+
*
|
|
2878
|
+
* @version SDK : 1.28.0 | ThoughtSpot: 9.11.0.cl
|
|
2879
|
+
*/
|
|
2880
|
+
Rename = "rename"
|
|
2863
2881
|
}
|
|
2864
2882
|
/**
|
|
2865
2883
|
* Event types that can be triggered by the host application
|
|
@@ -2948,7 +2966,7 @@ export enum HostEvent {
|
|
|
2948
2966
|
* clickedPoint,
|
|
2949
2967
|
* selectedPoints: selectedPoint
|
|
2950
2968
|
* },
|
|
2951
|
-
*
|
|
2969
|
+
* columnGuid: "<guid of the column to drill>",
|
|
2952
2970
|
* vizId: payload.data.vizId
|
|
2953
2971
|
* });
|
|
2954
2972
|
* })
|
|
@@ -3027,7 +3045,6 @@ export enum HostEvent {
|
|
|
3027
3045
|
*
|
|
3028
3046
|
* @param - `path` - the path to navigate to to go forward or back. The path value can
|
|
3029
3047
|
* be a number; for example, `1`, `-1`.
|
|
3030
|
-
*
|
|
3031
3048
|
* @example
|
|
3032
3049
|
* ```js
|
|
3033
3050
|
* appEmbed.navigateToPage(-1)
|
|
@@ -3598,9 +3615,7 @@ export enum HostEvent {
|
|
|
3598
3615
|
* Updates the search query string for Natural Language Search operations.
|
|
3599
3616
|
*
|
|
3600
3617
|
* @param - `queryString`: Text string in Natural Language format
|
|
3601
|
-
*
|
|
3602
3618
|
* @param - `executeSearch`: Boolean to execute search and update search query
|
|
3603
|
-
*
|
|
3604
3619
|
* @example
|
|
3605
3620
|
* ```js
|
|
3606
3621
|
* sageEmbed.trigger(HostEvent.UpdateSageQuery, {
|
|
@@ -3623,7 +3638,18 @@ export enum HostEvent {
|
|
|
3623
3638
|
* ```
|
|
3624
3639
|
* @version SDK: 1.26.0 | Thoughtspot: 9.10.0.cl
|
|
3625
3640
|
*/
|
|
3626
|
-
GetAnswerSession = "getAnswerSession"
|
|
3641
|
+
GetAnswerSession = "getAnswerSession",
|
|
3642
|
+
/**
|
|
3643
|
+
* Trigger Ask Sage for viz
|
|
3644
|
+
*
|
|
3645
|
+
* @example
|
|
3646
|
+
* ```js
|
|
3647
|
+
* liveboardEmbed.trigger(HostEvent.AskSage,
|
|
3648
|
+
* {vizId:'730496d6-6903-4601-937e-2c691821af3c'})
|
|
3649
|
+
* ```
|
|
3650
|
+
* @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
|
|
3651
|
+
*/
|
|
3652
|
+
AskSage = "AskSage"
|
|
3627
3653
|
}
|
|
3628
3654
|
/**
|
|
3629
3655
|
* The different visual modes that the data sources panel within
|
|
@@ -3718,7 +3744,8 @@ export enum Param {
|
|
|
3718
3744
|
HideSageAnswerHeader = "hideSageAnswerHeader",
|
|
3719
3745
|
HideSearchBar = "hideSearchBar",
|
|
3720
3746
|
ClientLogLevel = "clientLogLevel",
|
|
3721
|
-
OverrideNativeConsole = "overrideConsoleLogs"
|
|
3747
|
+
OverrideNativeConsole = "overrideConsoleLogs",
|
|
3748
|
+
enableAskSage = "enableAskSage"
|
|
3722
3749
|
}
|
|
3723
3750
|
/**
|
|
3724
3751
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -4577,7 +4604,17 @@ export enum Action {
|
|
|
4577
4604
|
* ```
|
|
4578
4605
|
* @version SDK: 1.29.0 | Thoughtspot: 9.10.0.cl
|
|
4579
4606
|
*/
|
|
4580
|
-
VerifiedLiveboard = "verifiedLiveboard"
|
|
4607
|
+
VerifiedLiveboard = "verifiedLiveboard",
|
|
4608
|
+
/**
|
|
4609
|
+
* Action ID for ask sage button
|
|
4610
|
+
*
|
|
4611
|
+
* @example
|
|
4612
|
+
* ```js
|
|
4613
|
+
* hiddenAction: [Action.AskAi]
|
|
4614
|
+
* ```
|
|
4615
|
+
* @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
|
|
4616
|
+
*/
|
|
4617
|
+
AskAi = "AskAi"
|
|
4581
4618
|
}
|
|
4582
4619
|
export interface AnswerServiceType {
|
|
4583
4620
|
getAnswer?: (offset: number, batchSize: number) => any;
|
|
@@ -4634,11 +4671,83 @@ export interface CustomActionPayload {
|
|
|
4634
4671
|
vizId?: string;
|
|
4635
4672
|
}
|
|
4636
4673
|
export enum LogLevel {
|
|
4674
|
+
/**
|
|
4675
|
+
* No logs will be logged in the console.
|
|
4676
|
+
*
|
|
4677
|
+
* @example
|
|
4678
|
+
* ```js
|
|
4679
|
+
* init({
|
|
4680
|
+
* ... // other options,
|
|
4681
|
+
* logLevel: LogLevel.SILENT,
|
|
4682
|
+
* })
|
|
4683
|
+
* ```
|
|
4684
|
+
* @version SDK: 1.26.7 | Thoughtspot: 9.10.0.cl
|
|
4685
|
+
*/
|
|
4637
4686
|
SILENT = "SILENT",
|
|
4687
|
+
/**
|
|
4688
|
+
* Only ERROR logs will be logged in the console.
|
|
4689
|
+
*
|
|
4690
|
+
* @example
|
|
4691
|
+
* ```js
|
|
4692
|
+
* init({
|
|
4693
|
+
* ... // other options,
|
|
4694
|
+
* logLevel: LogLevel.ERROR,
|
|
4695
|
+
* })
|
|
4696
|
+
* ```
|
|
4697
|
+
* @version SDK: 1.26.7 | Thoughtspot: 9.10.0.cl
|
|
4698
|
+
*/
|
|
4638
4699
|
ERROR = "ERROR",
|
|
4700
|
+
/**
|
|
4701
|
+
* Only WARN and ERROR logs will be logged in the console.
|
|
4702
|
+
*
|
|
4703
|
+
* @example
|
|
4704
|
+
* ```js
|
|
4705
|
+
* init({
|
|
4706
|
+
* ... // other options,
|
|
4707
|
+
* logLevel: LogLevel.WARN,
|
|
4708
|
+
* })
|
|
4709
|
+
* ```
|
|
4710
|
+
* @version SDK: 1.26.7 | Thoughtspot: 9.10.0.cl
|
|
4711
|
+
*/
|
|
4639
4712
|
WARN = "WARN",
|
|
4713
|
+
/**
|
|
4714
|
+
* Only INFO, WARN, and ERROR logs will be logged in the console.
|
|
4715
|
+
*
|
|
4716
|
+
* @example
|
|
4717
|
+
* ```js
|
|
4718
|
+
* init({
|
|
4719
|
+
* ... // other options,
|
|
4720
|
+
* logLevel: LogLevel.INFO,
|
|
4721
|
+
* })
|
|
4722
|
+
* ```
|
|
4723
|
+
* @version SDK: 1.26.7 | Thoughtspot: 9.10.0.cl
|
|
4724
|
+
*/
|
|
4640
4725
|
INFO = "INFO",
|
|
4726
|
+
/**
|
|
4727
|
+
* Only DEBUG, INFO, WARN, and ERROR logs will be logged in the console.
|
|
4728
|
+
*
|
|
4729
|
+
* @example
|
|
4730
|
+
* ```js
|
|
4731
|
+
* init({
|
|
4732
|
+
* ... // other options,
|
|
4733
|
+
* logLevel: LogLevel.DEBUG,
|
|
4734
|
+
* })
|
|
4735
|
+
* ```
|
|
4736
|
+
* @version SDK: 1.26.7 | Thoughtspot: 9.10.0.cl
|
|
4737
|
+
*/
|
|
4641
4738
|
DEBUG = "DEBUG",
|
|
4739
|
+
/**
|
|
4740
|
+
* All logs will be logged in the console.
|
|
4741
|
+
*
|
|
4742
|
+
* @example
|
|
4743
|
+
* ```js
|
|
4744
|
+
* init({
|
|
4745
|
+
* ... // other options,
|
|
4746
|
+
* logLevel: LogLevel.TRACE,
|
|
4747
|
+
* })
|
|
4748
|
+
* ```
|
|
4749
|
+
* @version SDK: 1.26.7 | Thoughtspot: 9.10.0.cl
|
|
4750
|
+
*/
|
|
4642
4751
|
TRACE = "TRACE"
|
|
4643
4752
|
}
|
|
4644
4753
|
|
|
@@ -5122,7 +5231,6 @@ export class SageEmbed extends V1Embed {
|
|
|
5122
5231
|
*
|
|
5123
5232
|
*/
|
|
5124
5233
|
protected viewConfig: SageViewConfig;
|
|
5125
|
-
protected embedComponentType: string;
|
|
5126
5234
|
constructor(domSelector: DOMSelector, viewConfig: SageViewConfig);
|
|
5127
5235
|
/**
|
|
5128
5236
|
* Constructs a map of parameters to be passed on to the
|
|
@@ -5131,6 +5239,13 @@ export class SageEmbed extends V1Embed {
|
|
|
5131
5239
|
* @returns {string} query string
|
|
5132
5240
|
*/
|
|
5133
5241
|
protected getEmbedParams(): string;
|
|
5242
|
+
/**
|
|
5243
|
+
* Construct the URL of the embedded ThoughtSpot sage to be
|
|
5244
|
+
* loaded in the iframe
|
|
5245
|
+
*
|
|
5246
|
+
* @returns {string} iframe url
|
|
5247
|
+
*/
|
|
5248
|
+
getIFrameSrc(): string;
|
|
5134
5249
|
/**
|
|
5135
5250
|
* Render the embedded ThoughtSpot Sage
|
|
5136
5251
|
*
|
|
@@ -5276,7 +5391,6 @@ export class TsEmbed {
|
|
|
5276
5391
|
*/
|
|
5277
5392
|
protected thoughtSpotHost: string;
|
|
5278
5393
|
protected thoughtSpotV2Base: string;
|
|
5279
|
-
protected embedComponentType: string;
|
|
5280
5394
|
/**
|
|
5281
5395
|
* A flag that is set to true post render.
|
|
5282
5396
|
*/
|
|
@@ -5424,6 +5538,7 @@ export class TsEmbed {
|
|
|
5424
5538
|
* @param args
|
|
5425
5539
|
*/
|
|
5426
5540
|
render(): TsEmbed;
|
|
5541
|
+
getIframeSrc(): string;
|
|
5427
5542
|
protected handleRenderForPrerender(): void;
|
|
5428
5543
|
/**
|
|
5429
5544
|
* Creates the preRender shell
|