@thoughtspot/visual-embed-sdk 1.37.0-temp-nav → 1.37.1-spotter-embed
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 +3 -3
- package/cjs/src/auth.d.ts +7 -3
- package/cjs/src/auth.d.ts.map +1 -1
- package/cjs/src/auth.js +20 -0
- package/cjs/src/auth.js.map +1 -1
- package/cjs/src/auth.spec.js +48 -0
- package/cjs/src/auth.spec.js.map +1 -1
- package/cjs/src/embed/app.d.ts +2 -19
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +3 -8
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +4 -10
- package/cjs/src/embed/app.spec.js.map +1 -1
- package/cjs/src/embed/bodyless-conversation.d.ts +39 -9
- package/cjs/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/cjs/src/embed/bodyless-conversation.js +32 -5
- package/cjs/src/embed/bodyless-conversation.js.map +1 -1
- package/cjs/src/embed/bodyless-conversation.spec.js +4 -4
- package/cjs/src/embed/bodyless-conversation.spec.js.map +1 -1
- package/cjs/src/embed/conversation.d.ts +38 -11
- package/cjs/src/embed/conversation.d.ts.map +1 -1
- package/cjs/src/embed/conversation.js +28 -4
- package/cjs/src/embed/conversation.js.map +1 -1
- package/cjs/src/embed/conversation.spec.js +7 -7
- package/cjs/src/embed/conversation.spec.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/index.d.ts +3 -3
- package/cjs/src/index.d.ts.map +1 -1
- package/cjs/src/index.js +5 -3
- package/cjs/src/index.js.map +1 -1
- package/cjs/src/react/all-types-export.d.ts +1 -1
- package/cjs/src/react/all-types-export.d.ts.map +1 -1
- package/cjs/src/react/all-types-export.js +2 -1
- package/cjs/src/react/all-types-export.js.map +1 -1
- package/cjs/src/react/index.d.ts +24 -5
- package/cjs/src/react/index.d.ts.map +1 -1
- package/cjs/src/react/index.js +21 -4
- package/cjs/src/react/index.js.map +1 -1
- package/cjs/src/types.d.ts +51 -2
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +49 -0
- package/cjs/src/types.js.map +1 -1
- package/dist/index-DUaG1OG2.js +7447 -0
- package/dist/index-DnIvX1FR.js +7371 -0
- package/dist/index-OuiZF3zE.js +7371 -0
- package/dist/src/auth.d.ts +7 -3
- package/dist/src/auth.d.ts.map +1 -1
- package/dist/src/embed/app.d.ts +2 -19
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/bodyless-conversation.d.ts +39 -9
- package/dist/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/dist/src/embed/conversation.d.ts +38 -11
- package/dist/src/embed/conversation.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.spec.d.ts.map +1 -1
- package/dist/src/index.d.ts +3 -3
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/react/all-types-export.d.ts +1 -1
- package/dist/src/react/all-types-export.d.ts.map +1 -1
- package/dist/src/react/index.d.ts +24 -5
- package/dist/src/react/index.d.ts.map +1 -1
- package/dist/src/types.d.ts +51 -2
- package/dist/src/types.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +122 -18
- package/dist/tsembed-react.js +342 -161
- package/dist/tsembed.es.js +84 -19
- package/dist/tsembed.js +306 -163
- package/dist/visual-embed-sdk-react-full.d.ts +161 -49
- package/dist/visual-embed-sdk-react.d.ts +161 -49
- package/dist/visual-embed-sdk.d.ts +138 -45
- package/lib/package.json +3 -3
- package/lib/src/auth.d.ts +7 -3
- package/lib/src/auth.d.ts.map +1 -1
- package/lib/src/auth.js +20 -0
- package/lib/src/auth.js.map +1 -1
- package/lib/src/auth.spec.js +48 -0
- package/lib/src/auth.spec.js.map +1 -1
- package/lib/src/embed/app.d.ts +2 -19
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +3 -8
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +4 -10
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/bodyless-conversation.d.ts +39 -9
- package/lib/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/lib/src/embed/bodyless-conversation.js +30 -4
- package/lib/src/embed/bodyless-conversation.js.map +1 -1
- package/lib/src/embed/bodyless-conversation.spec.js +5 -5
- package/lib/src/embed/bodyless-conversation.spec.js.map +1 -1
- package/lib/src/embed/conversation.d.ts +38 -11
- package/lib/src/embed/conversation.d.ts.map +1 -1
- package/lib/src/embed/conversation.js +26 -3
- package/lib/src/embed/conversation.js.map +1 -1
- package/lib/src/embed/conversation.spec.js +8 -8
- package/lib/src/embed/conversation.spec.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/index.d.ts +3 -3
- package/lib/src/index.d.ts.map +1 -1
- package/lib/src/index.js +3 -3
- package/lib/src/index.js.map +1 -1
- package/lib/src/react/all-types-export.d.ts +1 -1
- package/lib/src/react/all-types-export.d.ts.map +1 -1
- package/lib/src/react/all-types-export.js +1 -1
- package/lib/src/react/all-types-export.js.map +1 -1
- package/lib/src/react/index.d.ts +24 -5
- package/lib/src/react/index.d.ts.map +1 -1
- package/lib/src/react/index.js +21 -4
- package/lib/src/react/index.js.map +1 -1
- package/lib/src/types.d.ts +51 -2
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +49 -0
- package/lib/src/types.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +140 -47
- package/package.json +3 -3
- package/src/auth.spec.ts +52 -0
- package/src/auth.ts +23 -2
- package/src/embed/app.spec.ts +4 -10
- package/src/embed/app.ts +6 -30
- package/src/embed/bodyless-conversation.spec.ts +6 -6
- package/src/embed/bodyless-conversation.ts +43 -8
- package/src/embed/conversation.spec.ts +16 -16
- package/src/embed/conversation.ts +42 -11
- package/src/embed/ts-embed.spec.ts +0 -2
- package/src/index.ts +8 -4
- package/src/react/all-types-export.ts +1 -0
- package/src/react/index.tsx +36 -10
- package/src/types.ts +55 -0
|
@@ -195,6 +195,8 @@ export const SageEmbed: React.ForwardRefExoticComponent<SageEmbedProps & React.R
|
|
|
195
195
|
* ```
|
|
196
196
|
*/
|
|
197
197
|
export const PreRenderedSageEmbed: React.ForwardRefExoticComponent<SageEmbedProps & PreRenderProps & React.RefAttributes<_SageEmbed>>;
|
|
198
|
+
interface SpotterEmbedProps extends EmbedProps, SpotterEmbedViewConfig {
|
|
199
|
+
}
|
|
198
200
|
interface ConversationEmbedProps extends EmbedProps, ConversationViewConfig {
|
|
199
201
|
}
|
|
200
202
|
/**
|
|
@@ -202,6 +204,23 @@ interface ConversationEmbedProps extends EmbedProps, ConversationViewConfig {
|
|
|
202
204
|
* @example
|
|
203
205
|
* ```tsx
|
|
204
206
|
* function Sage() {
|
|
207
|
+
* return <SpotterEmbed
|
|
208
|
+
* worksheetId="<worksheet-id-here>"
|
|
209
|
+
* searchOptions={{
|
|
210
|
+
* searchQuery: "<search query to start with>"
|
|
211
|
+
* }}
|
|
212
|
+
* ... other view config props or event listeners.
|
|
213
|
+
* />
|
|
214
|
+
* }
|
|
215
|
+
* ```
|
|
216
|
+
*/
|
|
217
|
+
export const SpotterEmbed: React.ForwardRefExoticComponent<SpotterEmbedProps & React.RefAttributes<_SpotterEmbed>>;
|
|
218
|
+
/**
|
|
219
|
+
* React component for LLM based conversation BI.
|
|
220
|
+
* @deprecated This component is renamed to SpotterEmbed. Use {@link SpotterEmbed} instead.
|
|
221
|
+
* @example
|
|
222
|
+
* ```tsx
|
|
223
|
+
* function Sage() {
|
|
205
224
|
* return <ConversationEmbed
|
|
206
225
|
* worksheetId="<worksheet-id-here>"
|
|
207
226
|
* searchOptions={{
|
|
@@ -216,7 +235,7 @@ export const ConversationEmbed: React.ForwardRefExoticComponent<ConversationEmbe
|
|
|
216
235
|
/**
|
|
217
236
|
* React component for PreRendered Conversation embed.
|
|
218
237
|
*
|
|
219
|
-
* PreRenderedConversationEmbed will preRender the
|
|
238
|
+
* PreRenderedConversationEmbed will preRender the SpotterEmbed and will be hidden by
|
|
220
239
|
* default.
|
|
221
240
|
*
|
|
222
241
|
* SageEmbed with preRenderId passed will call showPreRender on the embed.
|
|
@@ -227,12 +246,12 @@ export const ConversationEmbed: React.ForwardRefExoticComponent<ConversationEmbe
|
|
|
227
246
|
* }
|
|
228
247
|
* ```
|
|
229
248
|
* function MyComponent() {
|
|
230
|
-
* return <
|
|
249
|
+
* return <SpotterEmbed preRenderId="someId" worksheetId="id" />
|
|
231
250
|
* }
|
|
232
251
|
* ```
|
|
233
252
|
*/
|
|
234
|
-
export const PreRenderedConversationEmbed: React.ForwardRefExoticComponent<
|
|
235
|
-
type EmbedComponent = typeof SearchEmbed | typeof AppEmbed | typeof LiveboardEmbed | typeof SearchBarEmbed | typeof SageEmbed | typeof ConversationEmbed;
|
|
253
|
+
export const PreRenderedConversationEmbed: React.ForwardRefExoticComponent<SpotterEmbedProps & PreRenderProps & React.RefAttributes<_SpotterEmbed>>;
|
|
254
|
+
type EmbedComponent = typeof SearchEmbed | typeof AppEmbed | typeof LiveboardEmbed | typeof SearchBarEmbed | typeof SageEmbed | typeof SpotterEmbed | typeof ConversationEmbed;
|
|
236
255
|
/**
|
|
237
256
|
* Get a reference to the embed component to trigger events on the component.
|
|
238
257
|
* @example
|
|
@@ -314,7 +333,11 @@ export declare enum AuthStatus {
|
|
|
314
333
|
* or by the trigger button.
|
|
315
334
|
* @version SDK: 1.19.0
|
|
316
335
|
*/
|
|
317
|
-
WAITING_FOR_POPUP = "WAITING_FOR_POPUP"
|
|
336
|
+
WAITING_FOR_POPUP = "WAITING_FOR_POPUP",
|
|
337
|
+
/**
|
|
338
|
+
* Emitted when the SAML popup is closed without authentication
|
|
339
|
+
*/
|
|
340
|
+
SAML_POPUP_CLOSED_NO_AUTH = "SAML_POPUP_CLOSED_NO_AUTH"
|
|
318
341
|
}
|
|
319
342
|
/**
|
|
320
343
|
* Event emitter returned from {@link init}.
|
|
@@ -332,10 +355,10 @@ export interface AuthEventEmitter {
|
|
|
332
355
|
* @param event
|
|
333
356
|
* @param listener
|
|
334
357
|
*/
|
|
335
|
-
on(event: AuthStatus.SDK_SUCCESS | AuthStatus.LOGOUT | AuthStatus.WAITING_FOR_POPUP, listener: () => void): this;
|
|
358
|
+
on(event: AuthStatus.SDK_SUCCESS | AuthStatus.LOGOUT | AuthStatus.WAITING_FOR_POPUP | AuthStatus.SAML_POPUP_CLOSED_NO_AUTH, listener: () => void): this;
|
|
336
359
|
on(event: AuthStatus.SUCCESS, listener: (sessionInfo: any) => void): this;
|
|
337
360
|
once(event: AuthStatus.FAILURE, listener: (failureType: AuthFailureType) => void): this;
|
|
338
|
-
once(event: AuthStatus.SDK_SUCCESS | AuthStatus.LOGOUT | AuthStatus.WAITING_FOR_POPUP, listener: () => void): this;
|
|
361
|
+
once(event: AuthStatus.SDK_SUCCESS | AuthStatus.LOGOUT | AuthStatus.WAITING_FOR_POPUP | AuthStatus.SAML_POPUP_CLOSED_NO_AUTH, listener: () => void): this;
|
|
339
362
|
once(event: AuthStatus.SUCCESS, listener: (sessionInfo: any) => void): this;
|
|
340
363
|
/**
|
|
341
364
|
* Trigger an event on the emitter returned from init.
|
|
@@ -1063,20 +1086,6 @@ export declare enum HomePageSearchBarMode {
|
|
|
1063
1086
|
AI_ANSWER = "aiAnswer",
|
|
1064
1087
|
NONE = "none"
|
|
1065
1088
|
}
|
|
1066
|
-
export interface ModularHomeExperienceV3 {
|
|
1067
|
-
/**
|
|
1068
|
-
* Enabled the modular homepage version 3.
|
|
1069
|
-
*/
|
|
1070
|
-
enabled?: boolean;
|
|
1071
|
-
/**
|
|
1072
|
-
* homePage values are v2/v3,
|
|
1073
|
-
* v2 will show the modular homepage experience
|
|
1074
|
-
* v3 will show the new modular homepage v3 experience.
|
|
1075
|
-
*
|
|
1076
|
-
* @default v2
|
|
1077
|
-
*/
|
|
1078
|
-
homePage?: string;
|
|
1079
|
-
}
|
|
1080
1089
|
/**
|
|
1081
1090
|
* The view configuration for full app embedding.
|
|
1082
1091
|
* @group Embed components
|
|
@@ -1392,14 +1401,11 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
1392
1401
|
* ```js
|
|
1393
1402
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
1394
1403
|
* ... // other options
|
|
1395
|
-
* modularHomeExperienceV3 :
|
|
1396
|
-
* enabled: true,
|
|
1397
|
-
* homePage: 'v2'
|
|
1398
|
-
* },
|
|
1404
|
+
* modularHomeExperienceV3 : true,
|
|
1399
1405
|
* })
|
|
1400
1406
|
* ```
|
|
1401
1407
|
*/
|
|
1402
|
-
modularHomeExperienceV3?:
|
|
1408
|
+
modularHomeExperienceV3?: boolean;
|
|
1403
1409
|
/**
|
|
1404
1410
|
* Boolean to control if Liveboard header is sticky or not.
|
|
1405
1411
|
* @example
|
|
@@ -5455,7 +5461,55 @@ export declare enum HostEvent {
|
|
|
5455
5461
|
* ```
|
|
5456
5462
|
* @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl
|
|
5457
5463
|
*/
|
|
5458
|
-
TransformTableVizData = "TransformTableVizData"
|
|
5464
|
+
TransformTableVizData = "TransformTableVizData",
|
|
5465
|
+
/**
|
|
5466
|
+
* Triggers the table visualization re-render with the updated data.
|
|
5467
|
+
* Includes the following properties:
|
|
5468
|
+
* @param - `columnDataLite` - an array of object containing the
|
|
5469
|
+
* data value modifications retrieved from the `EmbedEvent.TableVizRendered`
|
|
5470
|
+
* payload.For example, { columnDataLite: []}`.
|
|
5471
|
+
*/
|
|
5472
|
+
SpotterSearch = "SpotterSearch",
|
|
5473
|
+
/**
|
|
5474
|
+
* Triggers the table visualization re-render with the updated data.
|
|
5475
|
+
* Includes the following properties:
|
|
5476
|
+
* @param - `columnDataLite` - an array of object containing the
|
|
5477
|
+
* data value modifications retrieved from the `EmbedEvent.TableVizRendered`
|
|
5478
|
+
* payload.For example, { columnDataLite: []}`.
|
|
5479
|
+
*/
|
|
5480
|
+
EditLastPrompt = "EditLastPrompt",
|
|
5481
|
+
/**
|
|
5482
|
+
* Triggers the table visualization re-render with the updated data.
|
|
5483
|
+
* Includes the following properties:
|
|
5484
|
+
* @param - `columnDataLite` - an array of object containing the
|
|
5485
|
+
* data value modifications retrieved from the `EmbedEvent.TableVizRendered`
|
|
5486
|
+
* payload.For example, { columnDataLite: []}`.
|
|
5487
|
+
*/
|
|
5488
|
+
PreviewSpotterData = "PreviewSpotterData",
|
|
5489
|
+
/**
|
|
5490
|
+
* Triggers the table visualization re-render with the updated data.
|
|
5491
|
+
* Includes the following properties:
|
|
5492
|
+
* @param - `columnDataLite` - an array of object containing the
|
|
5493
|
+
* data value modifications retrieved from the `EmbedEvent.TableVizRendered`
|
|
5494
|
+
* payload.For example, { columnDataLite: []}`.
|
|
5495
|
+
*/
|
|
5496
|
+
ResetSpotterConversation = "ResetSpotterConversation",
|
|
5497
|
+
/**
|
|
5498
|
+
* Triggers the table visualization re-render with the updated data.
|
|
5499
|
+
* Includes the following properties:
|
|
5500
|
+
* @param - `columnDataLite` - an array of object containing the
|
|
5501
|
+
* data value modifications retrieved from the `EmbedEvent.TableVizRendered`
|
|
5502
|
+
* payload.For example, { columnDataLite: []}`.
|
|
5503
|
+
*/
|
|
5504
|
+
DeleteLastPrompt = "DeleteLastPrompt",
|
|
5505
|
+
/**
|
|
5506
|
+
* Triggers the table visualization re-render with the updated data.
|
|
5507
|
+
* Includes the following properties:
|
|
5508
|
+
* @param - `columnDataLite` - an array of object containing the
|
|
5509
|
+
* data value modifications retrieved from the `EmbedEvent.TableVizRendered`
|
|
5510
|
+
* payload.For example, { columnDataLite: []}`.
|
|
5511
|
+
*/
|
|
5512
|
+
AnswerChartSwitcher = "answerChartSwitcher"
|
|
5459
5513
|
}
|
|
5460
5514
|
/**
|
|
5461
5515
|
* The different visual modes that the data sources panel within
|
|
@@ -5586,7 +5640,8 @@ export declare enum Param {
|
|
|
5586
5640
|
preAuthCache = "preAuthCache",
|
|
5587
5641
|
ShowSpotterLimitations = "showSpotterLimitations",
|
|
5588
5642
|
CoverAndFilterOptionInPDF = "coverAndFilterOptionInPDF",
|
|
5589
|
-
PrimaryAction = "primaryAction"
|
|
5643
|
+
PrimaryAction = "primaryAction",
|
|
5644
|
+
isSpotterAgentEmbed = "isSpotterAgentEmbed"
|
|
5590
5645
|
}
|
|
5591
5646
|
/**
|
|
5592
5647
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -6991,10 +7046,10 @@ export interface SearchOptions {
|
|
|
6991
7046
|
searchQuery: string;
|
|
6992
7047
|
}
|
|
6993
7048
|
/**
|
|
6994
|
-
* The configuration for the embedded
|
|
7049
|
+
* The configuration for the embedded spotterEmbed options.
|
|
6995
7050
|
* @group Embed components
|
|
6996
7051
|
*/
|
|
6997
|
-
export interface
|
|
7052
|
+
export interface SpotterEmbedViewConfig extends ViewConfig {
|
|
6998
7053
|
/**
|
|
6999
7054
|
* The ID of the worksheet to use for the conversation.
|
|
7000
7055
|
*/
|
|
@@ -7008,7 +7063,7 @@ export interface ConversationViewConfig extends ViewConfig {
|
|
|
7008
7063
|
* but still display the selected data source.
|
|
7009
7064
|
* @example
|
|
7010
7065
|
* ```js
|
|
7011
|
-
* const embed = new
|
|
7066
|
+
* const embed = new SpotterEmbed('#tsEmbed', {
|
|
7012
7067
|
* ... // other options
|
|
7013
7068
|
* disableSourceSelection : true,
|
|
7014
7069
|
* })
|
|
@@ -7020,7 +7075,7 @@ export interface ConversationViewConfig extends ViewConfig {
|
|
|
7020
7075
|
* hideSourceSelection : Hide data source selection
|
|
7021
7076
|
* @example
|
|
7022
7077
|
* ```js
|
|
7023
|
-
* const embed = new
|
|
7078
|
+
* const embed = new SpotterEmbed('#tsEmbed', {
|
|
7024
7079
|
* ... // other options
|
|
7025
7080
|
* hideSourceSelection : true,
|
|
7026
7081
|
* })
|
|
@@ -7047,7 +7102,7 @@ export interface ConversationViewConfig extends ViewConfig {
|
|
|
7047
7102
|
* default is false.
|
|
7048
7103
|
* @example
|
|
7049
7104
|
* ```js
|
|
7050
|
-
* const embed = new
|
|
7105
|
+
* const embed = new SpotterEmbed('#tsEmbed', {
|
|
7051
7106
|
* ... // other options
|
|
7052
7107
|
* showSpotterLimitations : true,
|
|
7053
7108
|
* })
|
|
@@ -7060,7 +7115,7 @@ export interface ConversationViewConfig extends ViewConfig {
|
|
|
7060
7115
|
* the initial screen of the conversation.
|
|
7061
7116
|
* @example
|
|
7062
7117
|
* ```js
|
|
7063
|
-
* const embed = new
|
|
7118
|
+
* const embed = new SpotterEmbed('#tsEmbed', {
|
|
7064
7119
|
* ... // other options
|
|
7065
7120
|
* hideSampleQuestions : true,
|
|
7066
7121
|
* })
|
|
@@ -7069,12 +7124,41 @@ export interface ConversationViewConfig extends ViewConfig {
|
|
|
7069
7124
|
*/
|
|
7070
7125
|
hideSampleQuestions?: boolean;
|
|
7071
7126
|
}
|
|
7127
|
+
/**
|
|
7128
|
+
* The configuration for the embedded spotterEmbed options.
|
|
7129
|
+
* @deprecated Renamed to SpotterEmbedViewConfig
|
|
7130
|
+
* @group Embed components
|
|
7131
|
+
*/
|
|
7132
|
+
export interface ConversationViewConfig extends SpotterEmbedViewConfig {
|
|
7133
|
+
}
|
|
7134
|
+
/**
|
|
7135
|
+
* Embed ThoughtSpot AI Conversation.
|
|
7136
|
+
* @group Embed components
|
|
7137
|
+
* @example
|
|
7138
|
+
* ```js
|
|
7139
|
+
* const conversation = new SpotterEmbed('#tsEmbed', {
|
|
7140
|
+
* worksheetId: 'worksheetId',
|
|
7141
|
+
* searchOptions: {
|
|
7142
|
+
* searchQuery: 'searchQuery',
|
|
7143
|
+
* },
|
|
7144
|
+
* });
|
|
7145
|
+
* conversation.render();
|
|
7146
|
+
* ```
|
|
7147
|
+
* @version SDK: 1.38.0 | ThoughtSpot: 10.10.0.cl
|
|
7148
|
+
*/
|
|
7149
|
+
export declare class SpotterEmbed extends TsEmbed {
|
|
7150
|
+
protected viewConfig: SpotterEmbedViewConfig;
|
|
7151
|
+
constructor(container: HTMLElement, viewConfig: SpotterEmbedViewConfig);
|
|
7152
|
+
getIframeSrc(): string;
|
|
7153
|
+
render(): Promise<SpotterEmbed>;
|
|
7154
|
+
}
|
|
7072
7155
|
/**
|
|
7073
7156
|
* Embed ThoughtSpot AI Conversation.
|
|
7157
|
+
* @deprecated Renamed to SpotterEmbed
|
|
7074
7158
|
* @group Embed components
|
|
7075
7159
|
* @example
|
|
7076
7160
|
* ```js
|
|
7077
|
-
* const conversation = new
|
|
7161
|
+
* const conversation = new SpotterEmbed('#tsEmbed', {
|
|
7078
7162
|
* worksheetId: 'worksheetId',
|
|
7079
7163
|
* searchOptions: {
|
|
7080
7164
|
* searchQuery: 'searchQuery',
|
|
@@ -7082,13 +7166,11 @@ export interface ConversationViewConfig extends ViewConfig {
|
|
|
7082
7166
|
* });
|
|
7083
7167
|
* conversation.render();
|
|
7084
7168
|
* ```
|
|
7085
|
-
* @version SDK: 1.
|
|
7169
|
+
* @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
|
|
7086
7170
|
*/
|
|
7087
|
-
export declare class ConversationEmbed extends
|
|
7171
|
+
export declare class ConversationEmbed extends SpotterEmbed {
|
|
7088
7172
|
protected viewConfig: ConversationViewConfig;
|
|
7089
7173
|
constructor(container: HTMLElement, viewConfig: ConversationViewConfig);
|
|
7090
|
-
getIframeSrc(): string;
|
|
7091
|
-
render(): Promise<ConversationEmbed>;
|
|
7092
7174
|
}
|
|
7093
7175
|
|
|
7094
7176
|
/**
|
|
@@ -7099,7 +7181,7 @@ export declare class ConversationEmbed extends TsEmbed {
|
|
|
7099
7181
|
* @summary ThoughtSpot Visual Embed SDK
|
|
7100
7182
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
7101
7183
|
*/
|
|
7102
|
-
export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, tokenizedFetch, getAnswerFromQuery, createLiveboardWithAnswers, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed,
|
|
7184
|
+
export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, tokenizedFetch, getAnswerFromQuery, createLiveboardWithAnswers, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, SpotterAgentEmbed, SpotterAgentEmbedViewConfig, BodylessConversationViewConfig, BodylessConversation, SpotterEmbed, SpotterEmbedViewConfig, ConversationViewConfig, ConversationEmbed, 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, };
|
|
7103
7185
|
|
|
7104
7186
|
/**
|
|
7105
7187
|
* Copyright (c) 2022
|
|
@@ -8219,21 +8301,28 @@ export declare function reset(): void;
|
|
|
8219
8301
|
* Configuration for bodyless conversation options.
|
|
8220
8302
|
* @group Embed components
|
|
8221
8303
|
*/
|
|
8222
|
-
export interface
|
|
8304
|
+
export interface SpotterAgentEmbedViewConfig extends ViewConfig {
|
|
8223
8305
|
/**
|
|
8224
8306
|
* The ID of the worksheet to use for the conversation.
|
|
8225
8307
|
*/
|
|
8226
8308
|
worksheetId: string;
|
|
8227
8309
|
}
|
|
8228
|
-
|
|
8310
|
+
/**
|
|
8311
|
+
* Configuration for conversation options.
|
|
8312
|
+
* @deprecated Renamed to SpotterAgentEmbedViewConfig
|
|
8313
|
+
* @group Embed components
|
|
8314
|
+
*/
|
|
8315
|
+
export interface BodylessConversationViewConfig extends SpotterAgentEmbedViewConfig {
|
|
8316
|
+
}
|
|
8317
|
+
interface SpotterAgentMessageViewConfig extends SpotterAgentEmbedViewConfig {
|
|
8229
8318
|
sessionId: string;
|
|
8230
8319
|
genNo: number;
|
|
8231
8320
|
acSessionId: string;
|
|
8232
8321
|
acGenNo: number;
|
|
8233
8322
|
}
|
|
8234
8323
|
declare class ConversationMessage extends TsEmbed {
|
|
8235
|
-
protected viewConfig:
|
|
8236
|
-
constructor(container: HTMLElement, viewConfig:
|
|
8324
|
+
protected viewConfig: SpotterAgentMessageViewConfig;
|
|
8325
|
+
constructor(container: HTMLElement, viewConfig: SpotterAgentMessageViewConfig);
|
|
8237
8326
|
getIframeSrc(): string;
|
|
8238
8327
|
render(): Promise<ConversationMessage>;
|
|
8239
8328
|
}
|
|
@@ -8242,9 +8331,9 @@ declare class ConversationMessage extends TsEmbed {
|
|
|
8242
8331
|
* chatbots or other conversational interfaces.
|
|
8243
8332
|
* @example
|
|
8244
8333
|
* ```js
|
|
8245
|
-
* import {
|
|
8334
|
+
* import { SpotterAgentEmbed } from '@thoughtspot/visual-embed-sdk';
|
|
8246
8335
|
*
|
|
8247
|
-
* const conversation = new
|
|
8336
|
+
* const conversation = new SpotterAgentEmbed({
|
|
8248
8337
|
* worksheetId: 'worksheetId',
|
|
8249
8338
|
* });
|
|
8250
8339
|
*
|
|
@@ -8254,10 +8343,10 @@ declare class ConversationMessage extends TsEmbed {
|
|
|
8254
8343
|
* document.body.appendChild(container); // or to any other element
|
|
8255
8344
|
* ```
|
|
8256
8345
|
* @group Embed components
|
|
8257
|
-
* @version SDK: 1.
|
|
8346
|
+
* @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
|
|
8258
8347
|
*/
|
|
8259
|
-
export declare class
|
|
8260
|
-
constructor(viewConfig:
|
|
8348
|
+
export declare class SpotterAgentEmbed {
|
|
8349
|
+
constructor(viewConfig: SpotterAgentEmbedViewConfig);
|
|
8261
8350
|
sendMessage(userMessage: string): Promise<{
|
|
8262
8351
|
error: any;
|
|
8263
8352
|
container?: undefined;
|
|
@@ -8268,6 +8357,29 @@ export declare class BodylessConversation {
|
|
|
8268
8357
|
error?: undefined;
|
|
8269
8358
|
}>;
|
|
8270
8359
|
}
|
|
8360
|
+
/**
|
|
8361
|
+
* Create a conversation embed, which can be integrated inside
|
|
8362
|
+
* chatbots or other conversational interfaces.
|
|
8363
|
+
* @deprecated Renamed to SpotterAgentEmbed
|
|
8364
|
+
* @example
|
|
8365
|
+
* ```js
|
|
8366
|
+
* import { SpotterAgentEmbed } from '@thoughtspot/visual-embed-sdk';
|
|
8367
|
+
*
|
|
8368
|
+
* const conversation = new SpotterAgentEmbed({
|
|
8369
|
+
* worksheetId: 'worksheetId',
|
|
8370
|
+
* });
|
|
8371
|
+
*
|
|
8372
|
+
* const { container, error } = await conversation.sendMessage('show me sales by region');
|
|
8373
|
+
*
|
|
8374
|
+
* // append the container to the DOM
|
|
8375
|
+
* document.body.appendChild(container); // or to any other element
|
|
8376
|
+
* ```
|
|
8377
|
+
* @group Embed components
|
|
8378
|
+
* @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
|
|
8379
|
+
*/
|
|
8380
|
+
export declare class BodylessConversation extends SpotterAgentEmbed {
|
|
8381
|
+
constructor(viewConfig: BodylessConversationViewConfig);
|
|
8382
|
+
}
|
|
8271
8383
|
export {};
|
|
8272
8384
|
|
|
8273
8385
|
export type SessionInfo = {
|