@thoughtspot/visual-embed-sdk 1.35.11 → 1.35.13
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 +1 -1
- package/cjs/src/auth.d.ts +2 -1
- package/cjs/src/auth.d.ts.map +1 -1
- package/cjs/src/auth.js +3 -1
- package/cjs/src/auth.js.map +1 -1
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +2 -0
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/conversation.d.ts +44 -0
- package/cjs/src/embed/conversation.d.ts.map +1 -1
- package/cjs/src/embed/conversation.js +10 -1
- package/cjs/src/embed/conversation.js.map +1 -1
- package/cjs/src/embed/conversation.spec.js +36 -0
- package/cjs/src/embed/conversation.spec.js.map +1 -1
- package/cjs/src/embed/hostEventClient/contracts.d.ts +3 -3
- package/cjs/src/embed/hostEventClient/contracts.d.ts.map +1 -1
- package/cjs/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
- package/cjs/src/embed/hostEventClient/host-event-client.js +6 -1
- package/cjs/src/embed/hostEventClient/host-event-client.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts +5 -4
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +11 -4
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +1 -1
- package/cjs/src/embed/liveboard.spec.js.map +1 -1
- package/cjs/src/embed/search-bar.d.ts.map +1 -1
- package/cjs/src/embed/search-bar.js +4 -2
- package/cjs/src/embed/search-bar.js.map +1 -1
- package/cjs/src/embed/search.d.ts.map +1 -1
- package/cjs/src/embed/search.js +4 -2
- package/cjs/src/embed/search.js.map +1 -1
- package/cjs/src/embed/search.spec.js +56 -3
- package/cjs/src/embed/search.spec.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts +6 -0
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +43 -15
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +193 -81
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/types.d.ts +85 -20
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +80 -9
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/processData.d.ts.map +1 -1
- package/cjs/src/utils/processData.js +9 -2
- package/cjs/src/utils/processData.js.map +1 -1
- package/cjs/src/utils/processData.spec.js +51 -0
- package/cjs/src/utils/processData.spec.js.map +1 -1
- package/dist/index-B3hd6DTM.js +7370 -0
- package/dist/index-D-9WUCUl.js +7370 -0
- package/dist/src/auth.d.ts +2 -1
- package/dist/src/auth.d.ts.map +1 -1
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/conversation.d.ts +44 -0
- package/dist/src/embed/conversation.d.ts.map +1 -1
- package/dist/src/embed/hostEventClient/contracts.d.ts +3 -3
- package/dist/src/embed/hostEventClient/contracts.d.ts.map +1 -1
- package/dist/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +5 -4
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/search-bar.d.ts.map +1 -1
- package/dist/src/embed/search.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts +6 -0
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.spec.d.ts.map +1 -1
- package/dist/src/types.d.ts +85 -20
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/processData.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +175 -40
- package/dist/tsembed-react.js +174 -39
- package/dist/tsembed.es.js +175 -40
- package/dist/tsembed.js +174 -39
- package/dist/visual-embed-sdk-react-full.d.ts +138 -27
- package/dist/visual-embed-sdk-react.d.ts +138 -27
- package/dist/visual-embed-sdk.d.ts +138 -27
- package/lib/package.json +1 -1
- package/lib/src/auth.d.ts +2 -1
- package/lib/src/auth.d.ts.map +1 -1
- package/lib/src/auth.js +3 -1
- package/lib/src/auth.js.map +1 -1
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +2 -0
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/conversation.d.ts +44 -0
- package/lib/src/embed/conversation.d.ts.map +1 -1
- package/lib/src/embed/conversation.js +10 -1
- package/lib/src/embed/conversation.js.map +1 -1
- package/lib/src/embed/conversation.spec.js +36 -0
- package/lib/src/embed/conversation.spec.js.map +1 -1
- package/lib/src/embed/hostEventClient/contracts.d.ts +3 -3
- package/lib/src/embed/hostEventClient/contracts.d.ts.map +1 -1
- package/lib/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
- package/lib/src/embed/hostEventClient/host-event-client.js +6 -1
- package/lib/src/embed/hostEventClient/host-event-client.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +5 -4
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +11 -4
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +1 -1
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/embed/search-bar.d.ts.map +1 -1
- package/lib/src/embed/search-bar.js +4 -2
- package/lib/src/embed/search-bar.js.map +1 -1
- package/lib/src/embed/search.d.ts.map +1 -1
- package/lib/src/embed/search.js +4 -2
- package/lib/src/embed/search.js.map +1 -1
- package/lib/src/embed/search.spec.js +56 -3
- package/lib/src/embed/search.spec.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts +6 -0
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +43 -15
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +195 -83
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/types.d.ts +85 -20
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +80 -9
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/processData.d.ts.map +1 -1
- package/lib/src/utils/processData.js +9 -2
- package/lib/src/utils/processData.js.map +1 -1
- package/lib/src/utils/processData.spec.js +51 -0
- package/lib/src/utils/processData.spec.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +139 -28
- package/package.json +1 -1
- package/src/auth.ts +3 -1
- package/src/embed/app.ts +2 -0
- package/src/embed/conversation.spec.ts +52 -3
- package/src/embed/conversation.ts +60 -1
- package/src/embed/hostEventClient/contracts.ts +3 -3
- package/src/embed/hostEventClient/host-event-client.ts +7 -1
- package/src/embed/liveboard.spec.ts +1 -1
- package/src/embed/liveboard.ts +18 -12
- package/src/embed/search-bar.tsx +6 -4
- package/src/embed/search.spec.ts +71 -3
- package/src/embed/search.ts +6 -5
- package/src/embed/ts-embed.spec.ts +234 -102
- package/src/embed/ts-embed.ts +50 -34
- package/src/types.ts +89 -16
- package/src/utils/processData.spec.ts +63 -0
- package/src/utils/processData.ts +12 -2
|
@@ -1698,10 +1698,11 @@ export declare class LiveboardEmbed extends V1Embed {
|
|
|
1698
1698
|
protected handleRenderForPrerender(): void;
|
|
1699
1699
|
/**
|
|
1700
1700
|
* Triggers an event to the embedded app
|
|
1701
|
-
* @param messageType The event type
|
|
1702
|
-
* @param data The payload to send with the message
|
|
1701
|
+
* @param {HostEvent} messageType The event type
|
|
1702
|
+
* @param {any} data The payload to send with the message
|
|
1703
|
+
* @returns A promise that resolves with the response from the embedded app
|
|
1703
1704
|
*/
|
|
1704
|
-
trigger<HostEventT extends HostEvent>(messageType: HostEventT, data?:
|
|
1705
|
+
trigger<HostEventT extends HostEvent, PayloadT>(messageType: HostEventT, data?: TriggerPayload<PayloadT, HostEventT>): Promise<TriggerResponse<PayloadT, HostEventT>>;
|
|
1705
1706
|
/**
|
|
1706
1707
|
* Render an embedded ThoughtSpot Liveboard or visualization
|
|
1707
1708
|
* @param renderOptions An object specifying the Liveboard ID,
|
|
@@ -1749,6 +1750,10 @@ export interface SearchOptions {
|
|
|
1749
1750
|
*/
|
|
1750
1751
|
searchQuery: string;
|
|
1751
1752
|
}
|
|
1753
|
+
/**
|
|
1754
|
+
* The configuration for the embedded conversationEmbed options.
|
|
1755
|
+
* @group Embed components
|
|
1756
|
+
*/
|
|
1752
1757
|
export interface ConversationViewConfig extends ViewConfig {
|
|
1753
1758
|
/**
|
|
1754
1759
|
* The ID of the worksheet to use for the conversation.
|
|
@@ -1783,6 +1788,46 @@ export interface ConversationViewConfig extends ViewConfig {
|
|
|
1783
1788
|
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
1784
1789
|
*/
|
|
1785
1790
|
hideSourceSelection?: boolean;
|
|
1791
|
+
/**
|
|
1792
|
+
* Flag to control Data panel experience
|
|
1793
|
+
* @default false
|
|
1794
|
+
* @version SDK: 1.36.0 | ThoughtSpot Cloud: 10.4.0.cl
|
|
1795
|
+
* @example
|
|
1796
|
+
* ```js
|
|
1797
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
1798
|
+
* ... // other options
|
|
1799
|
+
* dataPanelV2: true,
|
|
1800
|
+
* })
|
|
1801
|
+
* ```
|
|
1802
|
+
*/
|
|
1803
|
+
dataPanelV2?: boolean;
|
|
1804
|
+
/**
|
|
1805
|
+
* showSpotterLimitations : show limitation text
|
|
1806
|
+
* of the spotter underneath the chat input.
|
|
1807
|
+
* default is false.
|
|
1808
|
+
* @example
|
|
1809
|
+
* ```js
|
|
1810
|
+
* const embed = new ConversationEmbed('#tsEmbed', {
|
|
1811
|
+
* ... // other options
|
|
1812
|
+
* showSpotterLimitations : true,
|
|
1813
|
+
* })
|
|
1814
|
+
* ```
|
|
1815
|
+
* @version SDK: 1.36.0 | Thoughtspot: 10.5.0.cl
|
|
1816
|
+
*/
|
|
1817
|
+
showSpotterLimitations?: boolean;
|
|
1818
|
+
/**
|
|
1819
|
+
* hideSampleQuestions : Hide sample questions on
|
|
1820
|
+
* the initial screen of the conversation.
|
|
1821
|
+
* @example
|
|
1822
|
+
* ```js
|
|
1823
|
+
* const embed = new ConversationEmbed('#tsEmbed', {
|
|
1824
|
+
* ... // other options
|
|
1825
|
+
* hideSampleQuestions : true,
|
|
1826
|
+
* })
|
|
1827
|
+
* ```
|
|
1828
|
+
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
1829
|
+
*/
|
|
1830
|
+
hideSampleQuestions?: boolean;
|
|
1786
1831
|
}
|
|
1787
1832
|
/**
|
|
1788
1833
|
* Embed ThoughtSpot AI Conversation.
|
|
@@ -1996,7 +2041,8 @@ export declare enum AuthFailureType {
|
|
|
1996
2041
|
SDK = "SDK",
|
|
1997
2042
|
NO_COOKIE_ACCESS = "NO_COOKIE_ACCESS",
|
|
1998
2043
|
EXPIRY = "EXPIRY",
|
|
1999
|
-
OTHER = "OTHER"
|
|
2044
|
+
OTHER = "OTHER",
|
|
2045
|
+
IDLE_SESSION_TIMEOUT = "IDLE_SESSION_TIMEOUT"
|
|
2000
2046
|
}
|
|
2001
2047
|
/**
|
|
2002
2048
|
* Enum for auth status emitted by the emitter returned from {@link init}.
|
|
@@ -2723,7 +2769,12 @@ export interface EmbedConfig {
|
|
|
2723
2769
|
*/
|
|
2724
2770
|
suppressErrorAlerts?: boolean;
|
|
2725
2771
|
/**
|
|
2726
|
-
*
|
|
2772
|
+
* Suppress or show specific types of logs in the console output.
|
|
2773
|
+
* For example, `LogLevel.ERROR` shows only Visual Embed SDK and
|
|
2774
|
+
* ThoughtSpot application errors and suppresses
|
|
2775
|
+
* other logs such as warnings, information alerts,
|
|
2776
|
+
* and debug messages in the console output.
|
|
2777
|
+
*
|
|
2727
2778
|
* @default LogLevel.ERROR
|
|
2728
2779
|
* @example
|
|
2729
2780
|
* ```js
|
|
@@ -3303,12 +3354,6 @@ export interface ViewConfig {
|
|
|
3303
3354
|
* @version SDK: 1.35.0 | ThoughtSpot: 10.5.0.cl
|
|
3304
3355
|
*/
|
|
3305
3356
|
overrideOrgId?: number;
|
|
3306
|
-
/**
|
|
3307
|
-
* Flag to control new flip tooltip context menu experience
|
|
3308
|
-
* @default false
|
|
3309
|
-
* @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
|
|
3310
|
-
*/
|
|
3311
|
-
enableFlipTooltipToContextMenu?: boolean;
|
|
3312
3357
|
}
|
|
3313
3358
|
/**
|
|
3314
3359
|
* MessagePayload: Embed event payload: message type, data and status (start/end)
|
|
@@ -3760,6 +3805,11 @@ export declare enum EmbedEvent {
|
|
|
3760
3805
|
* @hidden
|
|
3761
3806
|
*/
|
|
3762
3807
|
AuthFailure = "ThoughtspotAuthFailure",
|
|
3808
|
+
/**
|
|
3809
|
+
* ThoughtSpot failed to re validate the auth session.
|
|
3810
|
+
* @hidden
|
|
3811
|
+
*/
|
|
3812
|
+
IdleSessionTimeout = "IdleSessionTimeout",
|
|
3763
3813
|
/**
|
|
3764
3814
|
* ThoughtSpot failed to validate the auth session.
|
|
3765
3815
|
* @hidden
|
|
@@ -4465,7 +4515,37 @@ export declare enum EmbedEvent {
|
|
|
4465
4515
|
*```
|
|
4466
4516
|
* @version SDK : 1.29.0 | ThoughtSpot : 10.3.0.cl
|
|
4467
4517
|
*/
|
|
4468
|
-
ParameterChanged = "parameterChanged"
|
|
4518
|
+
ParameterChanged = "parameterChanged",
|
|
4519
|
+
/**
|
|
4520
|
+
* Emitted when the table viz renders.
|
|
4521
|
+
* You can use this event as a hook to trigger
|
|
4522
|
+
* other events on the rendered table viz data.
|
|
4523
|
+
* @example
|
|
4524
|
+
* ```js
|
|
4525
|
+
* searchEmbed.on(EmbedEvent.TableVizRendered, (payload) => {
|
|
4526
|
+
* console.log(payload);
|
|
4527
|
+
* const columnDataLite = payload.data.data.columnDataLite;
|
|
4528
|
+
* columnDataLite[0].dataValue[0]="new fob";
|
|
4529
|
+
* console.log('>>> new Data', columnDataLite);
|
|
4530
|
+
* searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
|
|
4531
|
+
* })
|
|
4532
|
+
* ```
|
|
4533
|
+
* @version SDK: 1.35.12 | ThoughtSpot: 10.7.0.cl
|
|
4534
|
+
*/
|
|
4535
|
+
TableVizRendered = "TableVizRendered",
|
|
4536
|
+
/**
|
|
4537
|
+
* Emitted when the liveboard is created from pin modal or liveboard list page.
|
|
4538
|
+
* You can use this event as a hook to trigger
|
|
4539
|
+
* other events on liveboard creation.
|
|
4540
|
+
*
|
|
4541
|
+
* ```js
|
|
4542
|
+
* liveboardEmbed.on(EmbedEvent.CreateLiveboard, (payload) => {
|
|
4543
|
+
* console.log('payload', payload);
|
|
4544
|
+
* })
|
|
4545
|
+
*```
|
|
4546
|
+
* @version SDK : 1.36.0 | ThoughtSpot : 10.8.0.cl
|
|
4547
|
+
*/
|
|
4548
|
+
CreateLiveboard = "createLiveboard"
|
|
4469
4549
|
}
|
|
4470
4550
|
/**
|
|
4471
4551
|
* Event types that can be triggered by the host application
|
|
@@ -4874,7 +4954,7 @@ export declare enum HostEvent {
|
|
|
4874
4954
|
* @param - an object with `vizId` as a key
|
|
4875
4955
|
* @example
|
|
4876
4956
|
* ```js
|
|
4877
|
-
* liveboardEmbed.trigger(HostEvent.CreateMonitor {
|
|
4957
|
+
* liveboardEmbed.trigger(HostEvent.CreateMonitor, {
|
|
4878
4958
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
4879
4959
|
* })
|
|
4880
4960
|
* ```
|
|
@@ -5406,7 +5486,26 @@ export declare enum HostEvent {
|
|
|
5406
5486
|
* EmbedApi
|
|
5407
5487
|
* @hidden
|
|
5408
5488
|
*/
|
|
5409
|
-
UIPassthrough = "UiPassthrough"
|
|
5489
|
+
UIPassthrough = "UiPassthrough",
|
|
5490
|
+
/**
|
|
5491
|
+
* Triggers the table viz rerender with the updated data.
|
|
5492
|
+
* Includes the following properties:
|
|
5493
|
+
* @param - columnDataLite - an array of object containing data
|
|
5494
|
+
* transformed from data picked from TableVizRendered event.
|
|
5495
|
+
* For example, { columnDataLite: []}
|
|
5496
|
+
* @example
|
|
5497
|
+
* ```js
|
|
5498
|
+
* searchEmbed.on(EmbedEvent.TableVizRendered, (payload) => {
|
|
5499
|
+
* console.log(payload);
|
|
5500
|
+
* const columnDataLite = payload.data.data.columnDataLite;
|
|
5501
|
+
* columnDataLite[0].dataValue[0]="new fob";
|
|
5502
|
+
* console.log('>>> new Data', columnDataLite);
|
|
5503
|
+
* searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
|
|
5504
|
+
* })
|
|
5505
|
+
* ```
|
|
5506
|
+
* @version SDK: 1.35.12 | ThoughtSpot: 10.7.0.cl
|
|
5507
|
+
*/
|
|
5508
|
+
TransformTableVizData = "TransformTableVizData"
|
|
5410
5509
|
}
|
|
5411
5510
|
/**
|
|
5412
5511
|
* The different visual modes that the data sources panel within
|
|
@@ -5447,6 +5546,7 @@ export declare enum Param {
|
|
|
5447
5546
|
HideResult = "hideResult",
|
|
5448
5547
|
UseLastSelectedDataSource = "useLastSelectedSources",
|
|
5449
5548
|
Tag = "tag",
|
|
5549
|
+
AutoLogin = "autoLogin",
|
|
5450
5550
|
searchTokenString = "searchTokenString",
|
|
5451
5551
|
executeSearch = "executeSearch",
|
|
5452
5552
|
fullHeight = "isFullHeightPinboard",
|
|
@@ -5468,7 +5568,7 @@ export declare enum Param {
|
|
|
5468
5568
|
AuthType = "authType",
|
|
5469
5569
|
IconSpriteUrl = "iconSprite",
|
|
5470
5570
|
cookieless = "cookieless",
|
|
5471
|
-
ContextMenuTrigger = "
|
|
5571
|
+
ContextMenuTrigger = "contextMenuEnabledOnWhichClick",
|
|
5472
5572
|
LinkOverride = "linkOverride",
|
|
5473
5573
|
blockNonEmbedFullAppAccess = "blockNonEmbedFullAppAccess",
|
|
5474
5574
|
ShowInsertToSlide = "insertInToSlide",
|
|
@@ -5523,10 +5623,10 @@ export declare enum Param {
|
|
|
5523
5623
|
SpotterEnabled = "isSpotterExperienceEnabled",
|
|
5524
5624
|
IsUnifiedSearchExperienceEnabled = "isUnifiedSearchExperienceEnabled",
|
|
5525
5625
|
OverrideOrgId = "orgId",
|
|
5526
|
-
EnableFlipTooltipToContextMenu = "flipTooltipToContextMenuEnabled",
|
|
5527
5626
|
OauthPollingInterval = "oAuthPollingInterval",
|
|
5528
5627
|
IsForceRedirect = "isForceRedirect",
|
|
5529
|
-
DataSourceId = "dataSourceId"
|
|
5628
|
+
DataSourceId = "dataSourceId",
|
|
5629
|
+
ShowSpotterLimitations = "showSpotterLimitations"
|
|
5530
5630
|
}
|
|
5531
5631
|
/**
|
|
5532
5632
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -6725,10 +6825,12 @@ export declare enum PrefetchFeatures {
|
|
|
6725
6825
|
}
|
|
6726
6826
|
/**
|
|
6727
6827
|
* Enum for options to change context trigger
|
|
6828
|
+
* BOTH_CLICKS option is introduced in 10.7
|
|
6728
6829
|
*/
|
|
6729
6830
|
export declare enum ContextMenuTriggerOptions {
|
|
6730
6831
|
LEFT_CLICK = "left-click",
|
|
6731
|
-
RIGHT_CLICK = "right-click"
|
|
6832
|
+
RIGHT_CLICK = "right-click",
|
|
6833
|
+
BOTH_CLICKS = "both-clicks"
|
|
6732
6834
|
}
|
|
6733
6835
|
export interface ColumnValue {
|
|
6734
6836
|
column: {
|
|
@@ -6771,9 +6873,16 @@ export interface CustomActionPayload {
|
|
|
6771
6873
|
session: SessionInterface;
|
|
6772
6874
|
vizId?: string;
|
|
6773
6875
|
}
|
|
6876
|
+
/**
|
|
6877
|
+
* Enum options to show or suppress Visual Embed SDK and
|
|
6878
|
+
* ThoughtSpot application logs in the console output.
|
|
6879
|
+
* This attribute doesn't support suppressing
|
|
6880
|
+
* browser warnings or errors.
|
|
6881
|
+
*/
|
|
6774
6882
|
export declare enum LogLevel {
|
|
6775
6883
|
/**
|
|
6776
|
-
* No logs will be logged
|
|
6884
|
+
* No application or SDK-related logs will be logged
|
|
6885
|
+
* in the console output.
|
|
6777
6886
|
* @example
|
|
6778
6887
|
* ```js
|
|
6779
6888
|
* init({
|
|
@@ -6785,7 +6894,7 @@ export declare enum LogLevel {
|
|
|
6785
6894
|
*/
|
|
6786
6895
|
SILENT = "SILENT",
|
|
6787
6896
|
/**
|
|
6788
|
-
*
|
|
6897
|
+
* Log only errors in the console output.
|
|
6789
6898
|
* @example
|
|
6790
6899
|
* ```js
|
|
6791
6900
|
* init({
|
|
@@ -6797,7 +6906,7 @@ export declare enum LogLevel {
|
|
|
6797
6906
|
*/
|
|
6798
6907
|
ERROR = "ERROR",
|
|
6799
6908
|
/**
|
|
6800
|
-
*
|
|
6909
|
+
* Log only warnings and errors in the console output.
|
|
6801
6910
|
* @example
|
|
6802
6911
|
* ```js
|
|
6803
6912
|
* init({
|
|
@@ -6809,7 +6918,8 @@ export declare enum LogLevel {
|
|
|
6809
6918
|
*/
|
|
6810
6919
|
WARN = "WARN",
|
|
6811
6920
|
/**
|
|
6812
|
-
*
|
|
6921
|
+
* Log only the information alerts, warnings, and errors
|
|
6922
|
+
* in the console output.
|
|
6813
6923
|
* @example
|
|
6814
6924
|
* ```js
|
|
6815
6925
|
* init({
|
|
@@ -6821,7 +6931,8 @@ export declare enum LogLevel {
|
|
|
6821
6931
|
*/
|
|
6822
6932
|
INFO = "INFO",
|
|
6823
6933
|
/**
|
|
6824
|
-
*
|
|
6934
|
+
* Log debug messages, warnings, information alerts,
|
|
6935
|
+
* and errors in the console output.
|
|
6825
6936
|
* @example
|
|
6826
6937
|
* ```js
|
|
6827
6938
|
* init({
|
|
@@ -6833,7 +6944,7 @@ export declare enum LogLevel {
|
|
|
6833
6944
|
*/
|
|
6834
6945
|
DEBUG = "DEBUG",
|
|
6835
6946
|
/**
|
|
6836
|
-
* All logs will be logged in the console.
|
|
6947
|
+
* All logs will be logged in the browser console.
|
|
6837
6948
|
* @example
|
|
6838
6949
|
* ```js
|
|
6839
6950
|
* init({
|
|
@@ -7527,13 +7638,13 @@ export type UIPassthroughContractBase = {
|
|
|
7527
7638
|
vizId?: string;
|
|
7528
7639
|
newVizName: string;
|
|
7529
7640
|
newVizDescription?: string;
|
|
7530
|
-
|
|
7641
|
+
liveboardId?: string;
|
|
7531
7642
|
tabId?: string;
|
|
7532
|
-
|
|
7643
|
+
newLiveboardName?: string;
|
|
7533
7644
|
newTabName?: string;
|
|
7534
7645
|
};
|
|
7535
7646
|
response: {
|
|
7536
|
-
|
|
7647
|
+
liveboardId: string;
|
|
7537
7648
|
tabId: string;
|
|
7538
7649
|
vizId: string;
|
|
7539
7650
|
};
|
|
@@ -1688,10 +1688,11 @@ export declare class LiveboardEmbed extends V1Embed {
|
|
|
1688
1688
|
protected handleRenderForPrerender(): void;
|
|
1689
1689
|
/**
|
|
1690
1690
|
* Triggers an event to the embedded app
|
|
1691
|
-
* @param messageType The event type
|
|
1692
|
-
* @param data The payload to send with the message
|
|
1691
|
+
* @param {HostEvent} messageType The event type
|
|
1692
|
+
* @param {any} data The payload to send with the message
|
|
1693
|
+
* @returns A promise that resolves with the response from the embedded app
|
|
1693
1694
|
*/
|
|
1694
|
-
trigger<HostEventT extends HostEvent>(messageType: HostEventT, data?:
|
|
1695
|
+
trigger<HostEventT extends HostEvent, PayloadT>(messageType: HostEventT, data?: TriggerPayload<PayloadT, HostEventT>): Promise<TriggerResponse<PayloadT, HostEventT>>;
|
|
1695
1696
|
/**
|
|
1696
1697
|
* Render an embedded ThoughtSpot Liveboard or visualization
|
|
1697
1698
|
* @param renderOptions An object specifying the Liveboard ID,
|
|
@@ -1739,6 +1740,10 @@ export interface SearchOptions {
|
|
|
1739
1740
|
*/
|
|
1740
1741
|
searchQuery: string;
|
|
1741
1742
|
}
|
|
1743
|
+
/**
|
|
1744
|
+
* The configuration for the embedded conversationEmbed options.
|
|
1745
|
+
* @group Embed components
|
|
1746
|
+
*/
|
|
1742
1747
|
export interface ConversationViewConfig extends ViewConfig {
|
|
1743
1748
|
/**
|
|
1744
1749
|
* The ID of the worksheet to use for the conversation.
|
|
@@ -1773,6 +1778,46 @@ export interface ConversationViewConfig extends ViewConfig {
|
|
|
1773
1778
|
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
1774
1779
|
*/
|
|
1775
1780
|
hideSourceSelection?: boolean;
|
|
1781
|
+
/**
|
|
1782
|
+
* Flag to control Data panel experience
|
|
1783
|
+
* @default false
|
|
1784
|
+
* @version SDK: 1.36.0 | ThoughtSpot Cloud: 10.4.0.cl
|
|
1785
|
+
* @example
|
|
1786
|
+
* ```js
|
|
1787
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
1788
|
+
* ... // other options
|
|
1789
|
+
* dataPanelV2: true,
|
|
1790
|
+
* })
|
|
1791
|
+
* ```
|
|
1792
|
+
*/
|
|
1793
|
+
dataPanelV2?: boolean;
|
|
1794
|
+
/**
|
|
1795
|
+
* showSpotterLimitations : show limitation text
|
|
1796
|
+
* of the spotter underneath the chat input.
|
|
1797
|
+
* default is false.
|
|
1798
|
+
* @example
|
|
1799
|
+
* ```js
|
|
1800
|
+
* const embed = new ConversationEmbed('#tsEmbed', {
|
|
1801
|
+
* ... // other options
|
|
1802
|
+
* showSpotterLimitations : true,
|
|
1803
|
+
* })
|
|
1804
|
+
* ```
|
|
1805
|
+
* @version SDK: 1.36.0 | Thoughtspot: 10.5.0.cl
|
|
1806
|
+
*/
|
|
1807
|
+
showSpotterLimitations?: boolean;
|
|
1808
|
+
/**
|
|
1809
|
+
* hideSampleQuestions : Hide sample questions on
|
|
1810
|
+
* the initial screen of the conversation.
|
|
1811
|
+
* @example
|
|
1812
|
+
* ```js
|
|
1813
|
+
* const embed = new ConversationEmbed('#tsEmbed', {
|
|
1814
|
+
* ... // other options
|
|
1815
|
+
* hideSampleQuestions : true,
|
|
1816
|
+
* })
|
|
1817
|
+
* ```
|
|
1818
|
+
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
1819
|
+
*/
|
|
1820
|
+
hideSampleQuestions?: boolean;
|
|
1776
1821
|
}
|
|
1777
1822
|
/**
|
|
1778
1823
|
* Embed ThoughtSpot AI Conversation.
|
|
@@ -2315,7 +2360,12 @@ export interface EmbedConfig {
|
|
|
2315
2360
|
*/
|
|
2316
2361
|
suppressErrorAlerts?: boolean;
|
|
2317
2362
|
/**
|
|
2318
|
-
*
|
|
2363
|
+
* Suppress or show specific types of logs in the console output.
|
|
2364
|
+
* For example, `LogLevel.ERROR` shows only Visual Embed SDK and
|
|
2365
|
+
* ThoughtSpot application errors and suppresses
|
|
2366
|
+
* other logs such as warnings, information alerts,
|
|
2367
|
+
* and debug messages in the console output.
|
|
2368
|
+
*
|
|
2319
2369
|
* @default LogLevel.ERROR
|
|
2320
2370
|
* @example
|
|
2321
2371
|
* ```js
|
|
@@ -2895,12 +2945,6 @@ export interface ViewConfig {
|
|
|
2895
2945
|
* @version SDK: 1.35.0 | ThoughtSpot: 10.5.0.cl
|
|
2896
2946
|
*/
|
|
2897
2947
|
overrideOrgId?: number;
|
|
2898
|
-
/**
|
|
2899
|
-
* Flag to control new flip tooltip context menu experience
|
|
2900
|
-
* @default false
|
|
2901
|
-
* @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
|
|
2902
|
-
*/
|
|
2903
|
-
enableFlipTooltipToContextMenu?: boolean;
|
|
2904
2948
|
}
|
|
2905
2949
|
/**
|
|
2906
2950
|
* MessagePayload: Embed event payload: message type, data and status (start/end)
|
|
@@ -3352,6 +3396,11 @@ export declare enum EmbedEvent {
|
|
|
3352
3396
|
* @hidden
|
|
3353
3397
|
*/
|
|
3354
3398
|
AuthFailure = "ThoughtspotAuthFailure",
|
|
3399
|
+
/**
|
|
3400
|
+
* ThoughtSpot failed to re validate the auth session.
|
|
3401
|
+
* @hidden
|
|
3402
|
+
*/
|
|
3403
|
+
IdleSessionTimeout = "IdleSessionTimeout",
|
|
3355
3404
|
/**
|
|
3356
3405
|
* ThoughtSpot failed to validate the auth session.
|
|
3357
3406
|
* @hidden
|
|
@@ -4057,7 +4106,37 @@ export declare enum EmbedEvent {
|
|
|
4057
4106
|
*```
|
|
4058
4107
|
* @version SDK : 1.29.0 | ThoughtSpot : 10.3.0.cl
|
|
4059
4108
|
*/
|
|
4060
|
-
ParameterChanged = "parameterChanged"
|
|
4109
|
+
ParameterChanged = "parameterChanged",
|
|
4110
|
+
/**
|
|
4111
|
+
* Emitted when the table viz renders.
|
|
4112
|
+
* You can use this event as a hook to trigger
|
|
4113
|
+
* other events on the rendered table viz data.
|
|
4114
|
+
* @example
|
|
4115
|
+
* ```js
|
|
4116
|
+
* searchEmbed.on(EmbedEvent.TableVizRendered, (payload) => {
|
|
4117
|
+
* console.log(payload);
|
|
4118
|
+
* const columnDataLite = payload.data.data.columnDataLite;
|
|
4119
|
+
* columnDataLite[0].dataValue[0]="new fob";
|
|
4120
|
+
* console.log('>>> new Data', columnDataLite);
|
|
4121
|
+
* searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
|
|
4122
|
+
* })
|
|
4123
|
+
* ```
|
|
4124
|
+
* @version SDK: 1.35.12 | ThoughtSpot: 10.7.0.cl
|
|
4125
|
+
*/
|
|
4126
|
+
TableVizRendered = "TableVizRendered",
|
|
4127
|
+
/**
|
|
4128
|
+
* Emitted when the liveboard is created from pin modal or liveboard list page.
|
|
4129
|
+
* You can use this event as a hook to trigger
|
|
4130
|
+
* other events on liveboard creation.
|
|
4131
|
+
*
|
|
4132
|
+
* ```js
|
|
4133
|
+
* liveboardEmbed.on(EmbedEvent.CreateLiveboard, (payload) => {
|
|
4134
|
+
* console.log('payload', payload);
|
|
4135
|
+
* })
|
|
4136
|
+
*```
|
|
4137
|
+
* @version SDK : 1.36.0 | ThoughtSpot : 10.8.0.cl
|
|
4138
|
+
*/
|
|
4139
|
+
CreateLiveboard = "createLiveboard"
|
|
4061
4140
|
}
|
|
4062
4141
|
/**
|
|
4063
4142
|
* Event types that can be triggered by the host application
|
|
@@ -4466,7 +4545,7 @@ export declare enum HostEvent {
|
|
|
4466
4545
|
* @param - an object with `vizId` as a key
|
|
4467
4546
|
* @example
|
|
4468
4547
|
* ```js
|
|
4469
|
-
* liveboardEmbed.trigger(HostEvent.CreateMonitor {
|
|
4548
|
+
* liveboardEmbed.trigger(HostEvent.CreateMonitor, {
|
|
4470
4549
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
4471
4550
|
* })
|
|
4472
4551
|
* ```
|
|
@@ -4998,7 +5077,26 @@ export declare enum HostEvent {
|
|
|
4998
5077
|
* EmbedApi
|
|
4999
5078
|
* @hidden
|
|
5000
5079
|
*/
|
|
5001
|
-
UIPassthrough = "UiPassthrough"
|
|
5080
|
+
UIPassthrough = "UiPassthrough",
|
|
5081
|
+
/**
|
|
5082
|
+
* Triggers the table viz rerender with the updated data.
|
|
5083
|
+
* Includes the following properties:
|
|
5084
|
+
* @param - columnDataLite - an array of object containing data
|
|
5085
|
+
* transformed from data picked from TableVizRendered event.
|
|
5086
|
+
* For example, { columnDataLite: []}
|
|
5087
|
+
* @example
|
|
5088
|
+
* ```js
|
|
5089
|
+
* searchEmbed.on(EmbedEvent.TableVizRendered, (payload) => {
|
|
5090
|
+
* console.log(payload);
|
|
5091
|
+
* const columnDataLite = payload.data.data.columnDataLite;
|
|
5092
|
+
* columnDataLite[0].dataValue[0]="new fob";
|
|
5093
|
+
* console.log('>>> new Data', columnDataLite);
|
|
5094
|
+
* searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
|
|
5095
|
+
* })
|
|
5096
|
+
* ```
|
|
5097
|
+
* @version SDK: 1.35.12 | ThoughtSpot: 10.7.0.cl
|
|
5098
|
+
*/
|
|
5099
|
+
TransformTableVizData = "TransformTableVizData"
|
|
5002
5100
|
}
|
|
5003
5101
|
/**
|
|
5004
5102
|
* The different visual modes that the data sources panel within
|
|
@@ -5039,6 +5137,7 @@ export declare enum Param {
|
|
|
5039
5137
|
HideResult = "hideResult",
|
|
5040
5138
|
UseLastSelectedDataSource = "useLastSelectedSources",
|
|
5041
5139
|
Tag = "tag",
|
|
5140
|
+
AutoLogin = "autoLogin",
|
|
5042
5141
|
searchTokenString = "searchTokenString",
|
|
5043
5142
|
executeSearch = "executeSearch",
|
|
5044
5143
|
fullHeight = "isFullHeightPinboard",
|
|
@@ -5060,7 +5159,7 @@ export declare enum Param {
|
|
|
5060
5159
|
AuthType = "authType",
|
|
5061
5160
|
IconSpriteUrl = "iconSprite",
|
|
5062
5161
|
cookieless = "cookieless",
|
|
5063
|
-
ContextMenuTrigger = "
|
|
5162
|
+
ContextMenuTrigger = "contextMenuEnabledOnWhichClick",
|
|
5064
5163
|
LinkOverride = "linkOverride",
|
|
5065
5164
|
blockNonEmbedFullAppAccess = "blockNonEmbedFullAppAccess",
|
|
5066
5165
|
ShowInsertToSlide = "insertInToSlide",
|
|
@@ -5115,10 +5214,10 @@ export declare enum Param {
|
|
|
5115
5214
|
SpotterEnabled = "isSpotterExperienceEnabled",
|
|
5116
5215
|
IsUnifiedSearchExperienceEnabled = "isUnifiedSearchExperienceEnabled",
|
|
5117
5216
|
OverrideOrgId = "orgId",
|
|
5118
|
-
EnableFlipTooltipToContextMenu = "flipTooltipToContextMenuEnabled",
|
|
5119
5217
|
OauthPollingInterval = "oAuthPollingInterval",
|
|
5120
5218
|
IsForceRedirect = "isForceRedirect",
|
|
5121
|
-
DataSourceId = "dataSourceId"
|
|
5219
|
+
DataSourceId = "dataSourceId",
|
|
5220
|
+
ShowSpotterLimitations = "showSpotterLimitations"
|
|
5122
5221
|
}
|
|
5123
5222
|
/**
|
|
5124
5223
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -6317,10 +6416,12 @@ export declare enum PrefetchFeatures {
|
|
|
6317
6416
|
}
|
|
6318
6417
|
/**
|
|
6319
6418
|
* Enum for options to change context trigger
|
|
6419
|
+
* BOTH_CLICKS option is introduced in 10.7
|
|
6320
6420
|
*/
|
|
6321
6421
|
export declare enum ContextMenuTriggerOptions {
|
|
6322
6422
|
LEFT_CLICK = "left-click",
|
|
6323
|
-
RIGHT_CLICK = "right-click"
|
|
6423
|
+
RIGHT_CLICK = "right-click",
|
|
6424
|
+
BOTH_CLICKS = "both-clicks"
|
|
6324
6425
|
}
|
|
6325
6426
|
export interface ColumnValue {
|
|
6326
6427
|
column: {
|
|
@@ -6363,9 +6464,16 @@ export interface CustomActionPayload {
|
|
|
6363
6464
|
session: SessionInterface;
|
|
6364
6465
|
vizId?: string;
|
|
6365
6466
|
}
|
|
6467
|
+
/**
|
|
6468
|
+
* Enum options to show or suppress Visual Embed SDK and
|
|
6469
|
+
* ThoughtSpot application logs in the console output.
|
|
6470
|
+
* This attribute doesn't support suppressing
|
|
6471
|
+
* browser warnings or errors.
|
|
6472
|
+
*/
|
|
6366
6473
|
export declare enum LogLevel {
|
|
6367
6474
|
/**
|
|
6368
|
-
* No logs will be logged
|
|
6475
|
+
* No application or SDK-related logs will be logged
|
|
6476
|
+
* in the console output.
|
|
6369
6477
|
* @example
|
|
6370
6478
|
* ```js
|
|
6371
6479
|
* init({
|
|
@@ -6377,7 +6485,7 @@ export declare enum LogLevel {
|
|
|
6377
6485
|
*/
|
|
6378
6486
|
SILENT = "SILENT",
|
|
6379
6487
|
/**
|
|
6380
|
-
*
|
|
6488
|
+
* Log only errors in the console output.
|
|
6381
6489
|
* @example
|
|
6382
6490
|
* ```js
|
|
6383
6491
|
* init({
|
|
@@ -6389,7 +6497,7 @@ export declare enum LogLevel {
|
|
|
6389
6497
|
*/
|
|
6390
6498
|
ERROR = "ERROR",
|
|
6391
6499
|
/**
|
|
6392
|
-
*
|
|
6500
|
+
* Log only warnings and errors in the console output.
|
|
6393
6501
|
* @example
|
|
6394
6502
|
* ```js
|
|
6395
6503
|
* init({
|
|
@@ -6401,7 +6509,8 @@ export declare enum LogLevel {
|
|
|
6401
6509
|
*/
|
|
6402
6510
|
WARN = "WARN",
|
|
6403
6511
|
/**
|
|
6404
|
-
*
|
|
6512
|
+
* Log only the information alerts, warnings, and errors
|
|
6513
|
+
* in the console output.
|
|
6405
6514
|
* @example
|
|
6406
6515
|
* ```js
|
|
6407
6516
|
* init({
|
|
@@ -6413,7 +6522,8 @@ export declare enum LogLevel {
|
|
|
6413
6522
|
*/
|
|
6414
6523
|
INFO = "INFO",
|
|
6415
6524
|
/**
|
|
6416
|
-
*
|
|
6525
|
+
* Log debug messages, warnings, information alerts,
|
|
6526
|
+
* and errors in the console output.
|
|
6417
6527
|
* @example
|
|
6418
6528
|
* ```js
|
|
6419
6529
|
* init({
|
|
@@ -6425,7 +6535,7 @@ export declare enum LogLevel {
|
|
|
6425
6535
|
*/
|
|
6426
6536
|
DEBUG = "DEBUG",
|
|
6427
6537
|
/**
|
|
6428
|
-
* All logs will be logged in the console.
|
|
6538
|
+
* All logs will be logged in the browser console.
|
|
6429
6539
|
* @example
|
|
6430
6540
|
* ```js
|
|
6431
6541
|
* init({
|
|
@@ -6771,13 +6881,13 @@ export type UIPassthroughContractBase = {
|
|
|
6771
6881
|
vizId?: string;
|
|
6772
6882
|
newVizName: string;
|
|
6773
6883
|
newVizDescription?: string;
|
|
6774
|
-
|
|
6884
|
+
liveboardId?: string;
|
|
6775
6885
|
tabId?: string;
|
|
6776
|
-
|
|
6886
|
+
newLiveboardName?: string;
|
|
6777
6887
|
newTabName?: string;
|
|
6778
6888
|
};
|
|
6779
6889
|
response: {
|
|
6780
|
-
|
|
6890
|
+
liveboardId: string;
|
|
6781
6891
|
tabId: string;
|
|
6782
6892
|
vizId: string;
|
|
6783
6893
|
};
|
|
@@ -7025,7 +7135,8 @@ export declare enum AuthFailureType {
|
|
|
7025
7135
|
SDK = "SDK",
|
|
7026
7136
|
NO_COOKIE_ACCESS = "NO_COOKIE_ACCESS",
|
|
7027
7137
|
EXPIRY = "EXPIRY",
|
|
7028
|
-
OTHER = "OTHER"
|
|
7138
|
+
OTHER = "OTHER",
|
|
7139
|
+
IDLE_SESSION_TIMEOUT = "IDLE_SESSION_TIMEOUT"
|
|
7029
7140
|
}
|
|
7030
7141
|
/**
|
|
7031
7142
|
* Enum for auth status emitted by the emitter returned from {@link init}.
|