@thoughtspot/visual-embed-sdk 1.39.2 → 1.40.0
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/config.spec.js +9 -0
- package/cjs/src/config.spec.js.map +1 -1
- package/cjs/src/embed/app.d.ts +75 -15
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +69 -9
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +378 -15
- package/cjs/src/embed/app.spec.js.map +1 -1
- package/cjs/src/embed/bodyless-conversation.d.ts +23 -7
- package/cjs/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/cjs/src/embed/bodyless-conversation.js +31 -5
- package/cjs/src/embed/bodyless-conversation.js.map +1 -1
- package/cjs/src/embed/bodyless-conversation.spec.js +8 -190
- package/cjs/src/embed/bodyless-conversation.spec.js.map +1 -1
- package/cjs/src/embed/conversation.spec.js +28 -0
- package/cjs/src/embed/conversation.spec.js.map +1 -1
- package/cjs/src/embed/embedConfig.d.ts +9 -7
- package/cjs/src/embed/embedConfig.d.ts.map +1 -1
- package/cjs/src/embed/embedConfig.js +9 -7
- package/cjs/src/embed/embedConfig.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts +56 -17
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +48 -4
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +218 -11
- package/cjs/src/embed/liveboard.spec.js.map +1 -1
- package/cjs/src/errors.d.ts +1 -0
- package/cjs/src/errors.d.ts.map +1 -1
- package/cjs/src/errors.js +1 -0
- package/cjs/src/errors.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/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 +3 -2
- package/cjs/src/react/all-types-export.js.map +1 -1
- package/cjs/src/react/index.d.ts +73 -20
- package/cjs/src/react/index.d.ts.map +1 -1
- package/cjs/src/react/index.js +79 -42
- package/cjs/src/react/index.js.map +1 -1
- package/cjs/src/react/index.spec.js +438 -100
- package/cjs/src/react/index.spec.js.map +1 -1
- package/cjs/src/types.d.ts +331 -13
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +296 -8
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/global-styles.js +1 -1
- package/cjs/src/utils/graphql/nlsService/conversation-service.d.ts.map +1 -1
- package/cjs/src/utils/graphql/nlsService/conversation-service.js +7 -1
- package/cjs/src/utils/graphql/nlsService/conversation-service.js.map +1 -1
- package/cjs/src/utils/processTrigger.js +2 -1
- package/cjs/src/utils/processTrigger.js.map +1 -1
- package/cjs/src/utils.d.ts +6 -0
- package/cjs/src/utils.d.ts.map +1 -1
- package/cjs/src/utils.js +23 -3
- package/cjs/src/utils.js.map +1 -1
- package/cjs/src/utils.spec.js +237 -1
- package/cjs/src/utils.spec.js.map +1 -1
- package/dist/{index-CmEQfuE3.js → index-CAEHQGLc.js} +1 -1
- package/dist/src/embed/app.d.ts +75 -15
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/bodyless-conversation.d.ts +23 -7
- package/dist/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/dist/src/embed/embedConfig.d.ts +9 -7
- package/dist/src/embed/embedConfig.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +56 -17
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/errors.d.ts +1 -0
- package/dist/src/errors.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/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 +73 -20
- package/dist/src/react/index.d.ts.map +1 -1
- package/dist/src/types.d.ts +331 -13
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/graphql/nlsService/conversation-service.d.ts.map +1 -1
- package/dist/src/utils.d.ts +6 -0
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +568 -87
- package/dist/tsembed-react.js +568 -85
- package/dist/tsembed.es.js +486 -40
- package/dist/tsembed.js +484 -38
- package/dist/visual-embed-sdk-react-full.d.ts +545 -79
- package/dist/visual-embed-sdk-react.d.ts +545 -79
- package/dist/visual-embed-sdk.d.ts +473 -60
- package/lib/package.json +1 -1
- package/lib/src/config.spec.js +9 -0
- package/lib/src/config.spec.js.map +1 -1
- package/lib/src/embed/app.d.ts +75 -15
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +69 -9
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +380 -17
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/bodyless-conversation.d.ts +23 -7
- package/lib/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/lib/src/embed/bodyless-conversation.js +30 -5
- package/lib/src/embed/bodyless-conversation.js.map +1 -1
- package/lib/src/embed/bodyless-conversation.spec.js +9 -191
- package/lib/src/embed/bodyless-conversation.spec.js.map +1 -1
- package/lib/src/embed/conversation.spec.js +30 -2
- package/lib/src/embed/conversation.spec.js.map +1 -1
- package/lib/src/embed/embedConfig.d.ts +9 -7
- package/lib/src/embed/embedConfig.d.ts.map +1 -1
- package/lib/src/embed/embedConfig.js +9 -7
- package/lib/src/embed/embedConfig.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +56 -17
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +49 -5
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +218 -11
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/errors.d.ts +1 -0
- package/lib/src/errors.d.ts.map +1 -1
- package/lib/src/errors.js +1 -0
- package/lib/src/errors.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/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 +73 -20
- package/lib/src/react/index.d.ts.map +1 -1
- package/lib/src/react/index.js +79 -43
- package/lib/src/react/index.js.map +1 -1
- package/lib/src/react/index.spec.js +441 -103
- package/lib/src/react/index.spec.js.map +1 -1
- package/lib/src/types.d.ts +331 -13
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +296 -8
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/global-styles.js +1 -1
- package/lib/src/utils/graphql/nlsService/conversation-service.d.ts.map +1 -1
- package/lib/src/utils/graphql/nlsService/conversation-service.js +7 -1
- package/lib/src/utils/graphql/nlsService/conversation-service.js.map +1 -1
- package/lib/src/utils/processTrigger.js +2 -1
- package/lib/src/utils/processTrigger.js.map +1 -1
- package/lib/src/utils.d.ts +6 -0
- package/lib/src/utils.d.ts.map +1 -1
- package/lib/src/utils.js +21 -2
- package/lib/src/utils.js.map +1 -1
- package/lib/src/utils.spec.js +238 -2
- package/lib/src/utils.spec.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +474 -61
- package/package.json +1 -1
- package/src/config.spec.ts +11 -0
- package/src/embed/app.spec.ts +486 -30
- package/src/embed/app.ts +133 -27
- package/src/embed/bodyless-conversation.spec.ts +9 -203
- package/src/embed/bodyless-conversation.ts +34 -10
- package/src/embed/conversation.spec.ts +40 -2
- package/src/embed/embedConfig.ts +10 -8
- package/src/embed/liveboard.spec.ts +259 -5
- package/src/embed/liveboard.ts +98 -27
- package/src/errors.ts +1 -0
- package/src/index.ts +2 -0
- package/src/react/all-types-export.ts +2 -1
- package/src/react/index.spec.tsx +558 -157
- package/src/react/index.tsx +117 -51
- package/src/types.ts +368 -50
- package/src/utils/global-styles.ts +1 -1
- package/src/utils/graphql/nlsService/conversation-service.ts +7 -1
- package/src/utils/processTrigger.ts +1 -1
- package/src/utils.spec.ts +279 -2
- package/src/utils.ts +28 -2
|
@@ -233,33 +233,42 @@ export const SpotterEmbed: React.ForwardRefExoticComponent<SpotterEmbedProps & R
|
|
|
233
233
|
* ```
|
|
234
234
|
*/
|
|
235
235
|
export const ConversationEmbed: React.ForwardRefExoticComponent<ConversationEmbedProps & React.RefAttributes<_ConversationEmbed>>;
|
|
236
|
-
|
|
236
|
+
/**
|
|
237
|
+
* React component for individual conversation messages from SpotterAgent.
|
|
238
|
+
* This component is used internally by the useSpotterAgent hook.
|
|
239
|
+
* @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
|
|
240
|
+
*/
|
|
241
|
+
interface ConversationMessageProps extends EmbedProps, SpotterAgentMessageViewConfig {
|
|
237
242
|
}
|
|
243
|
+
export const ConversationMessage: React.ForwardRefExoticComponent<ConversationMessageProps & React.RefAttributes<_ConversationMessage>>;
|
|
238
244
|
/**
|
|
239
|
-
* React component for
|
|
240
|
-
*
|
|
245
|
+
* React component for displaying individual conversation messages from SpotterAgent.
|
|
246
|
+
*
|
|
247
|
+
* This component renders a single message response from your ThoughtSpot conversation,
|
|
248
|
+
* showing charts, visualizations, or text responses based on the user's query.
|
|
249
|
+
*
|
|
241
250
|
* @example
|
|
242
251
|
* ```tsx
|
|
243
|
-
*
|
|
244
|
-
*
|
|
252
|
+
* const { sendMessage } = useSpotterAgent({ worksheetId: 'worksheetId' });
|
|
253
|
+
* const result = await sendMessage('show me sales by region');
|
|
245
254
|
*
|
|
246
|
-
*
|
|
247
|
-
*
|
|
248
|
-
*
|
|
249
|
-
* document.body.appendChild(container);
|
|
250
|
-
* }
|
|
251
|
-
* };
|
|
255
|
+
* if (!result.error) {
|
|
256
|
+
* // Simple usage - just pass the message data
|
|
257
|
+
* <SpotterMessage message={result.message} />
|
|
252
258
|
*
|
|
253
|
-
*
|
|
254
|
-
*
|
|
255
|
-
*
|
|
256
|
-
*
|
|
257
|
-
*
|
|
258
|
-
* );
|
|
259
|
+
* // With optional query for context
|
|
260
|
+
* <SpotterMessage
|
|
261
|
+
* message={result.message}
|
|
262
|
+
* query={result.query}
|
|
263
|
+
* />
|
|
259
264
|
* }
|
|
260
265
|
* ```
|
|
266
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.11.0.cl
|
|
261
267
|
*/
|
|
262
|
-
export const
|
|
268
|
+
export const SpotterMessage: React.ForwardRefExoticComponent<{
|
|
269
|
+
message: SpotterAgentMessageViewConfig;
|
|
270
|
+
query?: string;
|
|
271
|
+
} & Omit<EmbedProps, keyof SpotterAgentMessageViewConfig> & React.RefAttributes<_ConversationMessage>>;
|
|
263
272
|
/**
|
|
264
273
|
* React component for PreRendered Conversation embed.
|
|
265
274
|
*
|
|
@@ -279,7 +288,7 @@ export const SpotterAgentEmbed: React.ForwardRefExoticComponent<SpotterAgentEmbe
|
|
|
279
288
|
* ```
|
|
280
289
|
*/
|
|
281
290
|
export const PreRenderedConversationEmbed: React.ForwardRefExoticComponent<SpotterEmbedProps & PreRenderProps & React.RefAttributes<_SpotterEmbed>>;
|
|
282
|
-
type EmbedComponent = typeof SearchEmbed | typeof AppEmbed | typeof LiveboardEmbed | typeof SearchBarEmbed | typeof SageEmbed | typeof
|
|
291
|
+
type EmbedComponent = typeof SearchEmbed | typeof AppEmbed | typeof LiveboardEmbed | typeof SearchBarEmbed | typeof SageEmbed | typeof ConversationMessage | typeof SpotterMessage | typeof SpotterEmbed | typeof ConversationEmbed;
|
|
283
292
|
/**
|
|
284
293
|
* Get a reference to the embed component to trigger events on the component.
|
|
285
294
|
* @example
|
|
@@ -311,6 +320,50 @@ export function useEmbedRef<T extends EmbedComponent>(): React.MutableRefObject<
|
|
|
311
320
|
* @version SDK: 1.36.2 | ThoughtSpot: *
|
|
312
321
|
*/
|
|
313
322
|
export function useInit(config: EmbedConfig): React.MutableRefObject<AuthEventEmitter>;
|
|
323
|
+
/**
|
|
324
|
+
* React hook for interacting with SpotterAgent AI conversations.
|
|
325
|
+
*
|
|
326
|
+
* This hook provides a sendMessage function that allows you to send natural language
|
|
327
|
+
* queries to your data and get back AI-generated responses with visualizations.
|
|
328
|
+
*
|
|
329
|
+
* @param config - Configuration object containing worksheetId and other options
|
|
330
|
+
* @returns Object with sendMessage function that returns conversation results
|
|
331
|
+
* @example
|
|
332
|
+
* ```tsx
|
|
333
|
+
* const { sendMessage } = useSpotterAgent({ worksheetId: 'worksheetId' });
|
|
334
|
+
*
|
|
335
|
+
* const handleQuery = async () => {
|
|
336
|
+
* const result = await sendMessage('show me sales by region');
|
|
337
|
+
*
|
|
338
|
+
* if (!result.error) {
|
|
339
|
+
* // Display the message response
|
|
340
|
+
* <SpotterMessage message={result.message} />
|
|
341
|
+
* } else {
|
|
342
|
+
* console.error('Error:', result.error);
|
|
343
|
+
* }
|
|
344
|
+
* };
|
|
345
|
+
* ```
|
|
346
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.11.0.cl
|
|
347
|
+
*/
|
|
348
|
+
export function useSpotterAgent(config: SpotterAgentEmbedViewConfig): {
|
|
349
|
+
sendMessage: (query: string) => Promise<{
|
|
350
|
+
error: any;
|
|
351
|
+
query?: undefined;
|
|
352
|
+
message?: undefined;
|
|
353
|
+
} | {
|
|
354
|
+
query: string;
|
|
355
|
+
message: {
|
|
356
|
+
worksheetId: string;
|
|
357
|
+
convId: any;
|
|
358
|
+
messageId: any;
|
|
359
|
+
sessionId: any;
|
|
360
|
+
genNo: any;
|
|
361
|
+
acSessionId: any;
|
|
362
|
+
acGenNo: any;
|
|
363
|
+
};
|
|
364
|
+
error?: undefined;
|
|
365
|
+
}>;
|
|
366
|
+
};
|
|
314
367
|
|
|
315
368
|
export declare let loggedInStatus: boolean;
|
|
316
369
|
export declare let samlAuthWindow: Window;
|
|
@@ -1194,6 +1247,21 @@ export declare enum HomePage {
|
|
|
1194
1247
|
*/
|
|
1195
1248
|
Modular = "v2"
|
|
1196
1249
|
}
|
|
1250
|
+
/**
|
|
1251
|
+
* Define the version of the list page
|
|
1252
|
+
* @version SDK: 1.40.0 | ThoughtSpot: 10.12.0.cl
|
|
1253
|
+
*/
|
|
1254
|
+
export declare enum ListPage {
|
|
1255
|
+
/**
|
|
1256
|
+
* List (v2) is the traditional List Experience.
|
|
1257
|
+
* It serves as the foundational version of the list page.
|
|
1258
|
+
*/
|
|
1259
|
+
List = "v2",
|
|
1260
|
+
/**
|
|
1261
|
+
* ListWithUXChanges (v3) introduces the new updated list page with UX changes.
|
|
1262
|
+
*/
|
|
1263
|
+
ListWithUXChanges = "v3"
|
|
1264
|
+
}
|
|
1197
1265
|
/**
|
|
1198
1266
|
* Define the discovery experience
|
|
1199
1267
|
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
@@ -1207,6 +1275,10 @@ export interface DiscoveryExperience {
|
|
|
1207
1275
|
* homePage determines the version of the home page.
|
|
1208
1276
|
*/
|
|
1209
1277
|
homePage?: HomePage;
|
|
1278
|
+
/**
|
|
1279
|
+
* listPageVersion determines the version of the list page.
|
|
1280
|
+
*/
|
|
1281
|
+
listPageVersion?: ListPage;
|
|
1210
1282
|
}
|
|
1211
1283
|
/**
|
|
1212
1284
|
* The view configuration for full app embedding.
|
|
@@ -1578,21 +1650,6 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
1578
1650
|
* ```
|
|
1579
1651
|
*/
|
|
1580
1652
|
isUnifiedSearchExperienceEnabled?: boolean;
|
|
1581
|
-
/**
|
|
1582
|
-
* Show alert messages and toast messages in the embedded
|
|
1583
|
-
* view in full app embed.
|
|
1584
|
-
*
|
|
1585
|
-
* Supported embed types: `AppEmbed`
|
|
1586
|
-
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1587
|
-
* @example
|
|
1588
|
-
* ```js
|
|
1589
|
-
* const embed = new AppEmbed('#tsEmbed', {
|
|
1590
|
-
* ... // other embed view config
|
|
1591
|
-
* showAlerts:true,
|
|
1592
|
-
* })
|
|
1593
|
-
* ```
|
|
1594
|
-
*/
|
|
1595
|
-
showAlerts?: boolean;
|
|
1596
1653
|
/**
|
|
1597
1654
|
* This flag is used to enable/disable the styling and grouping in a Liveboard
|
|
1598
1655
|
*
|
|
@@ -1609,6 +1666,46 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
1609
1666
|
* ```
|
|
1610
1667
|
*/
|
|
1611
1668
|
isLiveboardStylingAndGroupingEnabled?: boolean;
|
|
1669
|
+
/**
|
|
1670
|
+
* This flag is used to enable the full height lazy load data.
|
|
1671
|
+
*
|
|
1672
|
+
* @example
|
|
1673
|
+
* ```js
|
|
1674
|
+
* const embed = new AppEmbed('#embed-container', {
|
|
1675
|
+
* // ...other options
|
|
1676
|
+
* fullHeight: true,
|
|
1677
|
+
* lazyLoadingForFullHeight: true,
|
|
1678
|
+
* })
|
|
1679
|
+
* ```
|
|
1680
|
+
*
|
|
1681
|
+
* @type {boolean}
|
|
1682
|
+
* @default false
|
|
1683
|
+
* @version SDK: 1.40.0 | ThoughtSpot:10.12.0.cl
|
|
1684
|
+
*/
|
|
1685
|
+
lazyLoadingForFullHeight?: boolean;
|
|
1686
|
+
/**
|
|
1687
|
+
* The margin to be used for lazy loading.
|
|
1688
|
+
*
|
|
1689
|
+
* For example, if the margin is set to '10px',
|
|
1690
|
+
* the visualization will be loaded 10px before the its top edge is visible in the
|
|
1691
|
+
* viewport.
|
|
1692
|
+
*
|
|
1693
|
+
* The format is similar to CSS margin.
|
|
1694
|
+
*
|
|
1695
|
+
* @example
|
|
1696
|
+
* ```js
|
|
1697
|
+
* const embed = new AppEmbed('#embed-container', {
|
|
1698
|
+
* // ...other options
|
|
1699
|
+
* fullHeight: true,
|
|
1700
|
+
* lazyLoadingForFullHeight: true,
|
|
1701
|
+
* // Using 0px, the visualization will be only loaded when its visible in the viewport.
|
|
1702
|
+
* lazyLoadingMargin: '0px',
|
|
1703
|
+
* })
|
|
1704
|
+
* ```
|
|
1705
|
+
* @type {string}
|
|
1706
|
+
* @version SDK: 1.40.0 | ThoughtSpot:10.12.0.cl
|
|
1707
|
+
*/
|
|
1708
|
+
lazyLoadingMargin?: string;
|
|
1612
1709
|
}
|
|
1613
1710
|
/**
|
|
1614
1711
|
* Embeds full ThoughtSpot experience in a host application.
|
|
@@ -1645,6 +1742,11 @@ export declare class AppEmbed extends V1Embed {
|
|
|
1645
1742
|
* @version SDK: 1.12.0 | ThoughtSpot: 8.4.0.cl, 8.4.1-sw
|
|
1646
1743
|
*/
|
|
1647
1744
|
navigateToPage(path: string | number, noReload?: boolean): void;
|
|
1745
|
+
/**
|
|
1746
|
+
* Destroys the ThoughtSpot embed, and remove any nodes from the DOM.
|
|
1747
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
1748
|
+
*/
|
|
1749
|
+
destroy(): void;
|
|
1648
1750
|
/**
|
|
1649
1751
|
* Renders the embedded application pages in the ThoughtSpot app.
|
|
1650
1752
|
* @param renderOptions An object containing the page ID
|
|
@@ -1900,23 +2002,6 @@ export interface LiveboardViewConfig extends BaseViewConfig, LiveboardOtherViewC
|
|
|
1900
2002
|
* })
|
|
1901
2003
|
*/
|
|
1902
2004
|
dataSourceId?: string;
|
|
1903
|
-
/**
|
|
1904
|
-
* This flag is for show/hide checkboxes for include or exclude
|
|
1905
|
-
* cover page and filters in the Liveboard PDF.
|
|
1906
|
-
*
|
|
1907
|
-
* Supported embed types: `LiveboardEmbed`
|
|
1908
|
-
* @version SDK: 1.37.0 | ThoughtSpot:10.8.0.cl
|
|
1909
|
-
* @default true
|
|
1910
|
-
* Supported embed types: `LiveboardEmbed`
|
|
1911
|
-
* @example
|
|
1912
|
-
* ```js
|
|
1913
|
-
* const embed = new LiveboardEmbed('#tsEmbed', {
|
|
1914
|
-
* ... //other embed view config
|
|
1915
|
-
* coverAndFilterOptionInPDF: false,
|
|
1916
|
-
* })
|
|
1917
|
-
* ```
|
|
1918
|
-
*/
|
|
1919
|
-
coverAndFilterOptionInPDF?: boolean;
|
|
1920
2005
|
/**
|
|
1921
2006
|
* The list of tab IDs to hide from the embedded.
|
|
1922
2007
|
* This Tabs will be hidden from their respective LBs.
|
|
@@ -1972,6 +2057,46 @@ export interface LiveboardViewConfig extends BaseViewConfig, LiveboardOtherViewC
|
|
|
1972
2057
|
* ```
|
|
1973
2058
|
*/
|
|
1974
2059
|
isLiveboardStylingAndGroupingEnabled?: boolean;
|
|
2060
|
+
/**
|
|
2061
|
+
* This flag is used to enable the full height lazy load data.
|
|
2062
|
+
*
|
|
2063
|
+
* @example
|
|
2064
|
+
* ```js
|
|
2065
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2066
|
+
* // ...other options
|
|
2067
|
+
* fullHeight: true,
|
|
2068
|
+
* lazyLoadingForFullHeight: true,
|
|
2069
|
+
* })
|
|
2070
|
+
* ```
|
|
2071
|
+
*
|
|
2072
|
+
* @type {boolean}
|
|
2073
|
+
* @default false
|
|
2074
|
+
* @version SDK: 1.40.0 | ThoughtSpot:10.12.0.cl
|
|
2075
|
+
*/
|
|
2076
|
+
lazyLoadingForFullHeight?: boolean;
|
|
2077
|
+
/**
|
|
2078
|
+
* The margin to be used for lazy loading.
|
|
2079
|
+
*
|
|
2080
|
+
* For example, if the margin is set to '10px',
|
|
2081
|
+
* the visualization will be loaded 10px before the its top edge is visible in the
|
|
2082
|
+
* viewport.
|
|
2083
|
+
*
|
|
2084
|
+
* The format is similar to CSS margin.
|
|
2085
|
+
*
|
|
2086
|
+
* @example
|
|
2087
|
+
* ```js
|
|
2088
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2089
|
+
* // ...other options
|
|
2090
|
+
* fullHeight: true,
|
|
2091
|
+
* lazyLoadingForFullHeight: true,
|
|
2092
|
+
* // Using 0px, the visualization will be only loaded when its visible in the viewport.
|
|
2093
|
+
* lazyLoadingMargin: '0px',
|
|
2094
|
+
* })
|
|
2095
|
+
* ```
|
|
2096
|
+
* @type {string}
|
|
2097
|
+
* @version SDK: 1.40.0 | ThoughtSpot:10.12.0.cl
|
|
2098
|
+
*/
|
|
2099
|
+
lazyLoadingMargin?: string;
|
|
1975
2100
|
}
|
|
1976
2101
|
/**
|
|
1977
2102
|
* Embed a ThoughtSpot Liveboard or visualization. When rendered it already
|
|
@@ -2005,6 +2130,11 @@ export declare class LiveboardEmbed extends V1Embed {
|
|
|
2005
2130
|
* @returns A promise that resolves with the response from the embedded app
|
|
2006
2131
|
*/
|
|
2007
2132
|
trigger<HostEventT extends HostEvent, PayloadT>(messageType: HostEventT, data?: TriggerPayload<PayloadT, HostEventT>): Promise<TriggerResponse<PayloadT, HostEventT>>;
|
|
2133
|
+
/**
|
|
2134
|
+
* Destroys the ThoughtSpot embed, and remove any nodes from the DOM.
|
|
2135
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
2136
|
+
*/
|
|
2137
|
+
destroy(): void;
|
|
2008
2138
|
/**
|
|
2009
2139
|
* Render an embedded ThoughtSpot Liveboard or visualization
|
|
2010
2140
|
* @param renderOptions An object specifying the Liveboard ID,
|
|
@@ -2034,10 +2164,6 @@ export interface SpotterAgentEmbedViewConfig extends Omit<BaseViewConfig, 'prima
|
|
|
2034
2164
|
* The ID of the worksheet to use for the conversation.
|
|
2035
2165
|
*/
|
|
2036
2166
|
worksheetId: string;
|
|
2037
|
-
/**
|
|
2038
|
-
* Optional CSS class name to add to the container div.
|
|
2039
|
-
*/
|
|
2040
|
-
containerClassName?: string;
|
|
2041
2167
|
}
|
|
2042
2168
|
/**
|
|
2043
2169
|
* Configuration for conversation options.
|
|
@@ -2047,13 +2173,15 @@ export interface SpotterAgentEmbedViewConfig extends Omit<BaseViewConfig, 'prima
|
|
|
2047
2173
|
*/
|
|
2048
2174
|
export interface BodylessConversationViewConfig extends SpotterAgentEmbedViewConfig {
|
|
2049
2175
|
}
|
|
2050
|
-
interface SpotterAgentMessageViewConfig extends SpotterAgentEmbedViewConfig {
|
|
2176
|
+
export interface SpotterAgentMessageViewConfig extends SpotterAgentEmbedViewConfig {
|
|
2051
2177
|
sessionId: string;
|
|
2052
2178
|
genNo: number;
|
|
2053
2179
|
acSessionId: string;
|
|
2054
2180
|
acGenNo: number;
|
|
2181
|
+
convId: string;
|
|
2182
|
+
messageId: string;
|
|
2055
2183
|
}
|
|
2056
|
-
declare class ConversationMessage extends TsEmbed {
|
|
2184
|
+
export declare class ConversationMessage extends TsEmbed {
|
|
2057
2185
|
protected viewConfig: SpotterAgentMessageViewConfig;
|
|
2058
2186
|
constructor(container: HTMLElement, viewConfig: SpotterAgentMessageViewConfig);
|
|
2059
2187
|
getIframeSrc(): string;
|
|
@@ -2089,6 +2217,25 @@ export declare class SpotterAgentEmbed {
|
|
|
2089
2217
|
viz: ConversationMessage;
|
|
2090
2218
|
error?: undefined;
|
|
2091
2219
|
}>;
|
|
2220
|
+
/**
|
|
2221
|
+
* Send a message to the conversation service and return only the data.
|
|
2222
|
+
* @param userMessage - The message to send to the conversation service.
|
|
2223
|
+
* @returns The data from the conversation service.
|
|
2224
|
+
*/
|
|
2225
|
+
sendMessageData(userMessage: string): Promise<{
|
|
2226
|
+
error: any;
|
|
2227
|
+
data?: undefined;
|
|
2228
|
+
} | {
|
|
2229
|
+
data: {
|
|
2230
|
+
convId: any;
|
|
2231
|
+
messageId: any;
|
|
2232
|
+
sessionId: any;
|
|
2233
|
+
genNo: any;
|
|
2234
|
+
acSessionId: any;
|
|
2235
|
+
acGenNo: any;
|
|
2236
|
+
};
|
|
2237
|
+
error?: undefined;
|
|
2238
|
+
}>;
|
|
2092
2239
|
}
|
|
2093
2240
|
/**
|
|
2094
2241
|
* Create a conversation embed, which can be integrated inside
|
|
@@ -2113,7 +2260,6 @@ export declare class SpotterAgentEmbed {
|
|
|
2113
2260
|
export declare class BodylessConversation extends SpotterAgentEmbed {
|
|
2114
2261
|
constructor(viewConfig: BodylessConversationViewConfig);
|
|
2115
2262
|
}
|
|
2116
|
-
export {};
|
|
2117
2263
|
|
|
2118
2264
|
/**
|
|
2119
2265
|
* Copyright (c) 2023
|
|
@@ -2327,7 +2473,13 @@ export declare enum HomeLeftNavItem {
|
|
|
2327
2473
|
* available when new navigation V3 is enabled.
|
|
2328
2474
|
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
2329
2475
|
*/
|
|
2330
|
-
Spotter = "spotter"
|
|
2476
|
+
Spotter = "spotter",
|
|
2477
|
+
/**
|
|
2478
|
+
* Favorites option in the insights left navigation,
|
|
2479
|
+
* available when new navigation V3 is enabled.
|
|
2480
|
+
* @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
|
|
2481
|
+
*/
|
|
2482
|
+
Favorites = "favorites"
|
|
2331
2483
|
}
|
|
2332
2484
|
export type DOMSelector = string | HTMLElement;
|
|
2333
2485
|
/**
|
|
@@ -3093,6 +3245,20 @@ export interface BaseViewConfig {
|
|
|
3093
3245
|
* @private
|
|
3094
3246
|
*/
|
|
3095
3247
|
insertInToSlide?: boolean;
|
|
3248
|
+
/**
|
|
3249
|
+
* Show alert messages and toast messages in the embed.
|
|
3250
|
+
* Supported embed in all embed types.
|
|
3251
|
+
*
|
|
3252
|
+
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
3253
|
+
* @example
|
|
3254
|
+
* ```js
|
|
3255
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
3256
|
+
* ... // other embed view config
|
|
3257
|
+
* showAlerts:true,
|
|
3258
|
+
* })
|
|
3259
|
+
* ```
|
|
3260
|
+
*/
|
|
3261
|
+
showAlerts?: boolean;
|
|
3096
3262
|
}
|
|
3097
3263
|
/**
|
|
3098
3264
|
* The configuration object for Home page embeds configs.
|
|
@@ -3470,6 +3636,22 @@ export interface LiveboardAppEmbedViewConfig {
|
|
|
3470
3636
|
* ```
|
|
3471
3637
|
*/
|
|
3472
3638
|
enableAskSage?: boolean;
|
|
3639
|
+
/**
|
|
3640
|
+
* This flag is used to show or hide checkboxes for including or excluding
|
|
3641
|
+
* the cover and filters pages in the Liveboard PDF.
|
|
3642
|
+
*
|
|
3643
|
+
* Supported embed types: `AppEmbed`, `LiveboardEmbed`
|
|
3644
|
+
* @version SDK: 1.40.0 | ThoughtSpot:10.8.0.cl
|
|
3645
|
+
* @example
|
|
3646
|
+
* ```js
|
|
3647
|
+
* // Replace <EmbedComponent> with embed component name. For example, AppEmbed or LiveboardEmbed
|
|
3648
|
+
* const embed = new <EmbedComponent>('#tsEmbed', {
|
|
3649
|
+
* ... // other embed view config
|
|
3650
|
+
* coverAndFilterOptionInPDF: false,
|
|
3651
|
+
* })
|
|
3652
|
+
* ```
|
|
3653
|
+
*/
|
|
3654
|
+
coverAndFilterOptionInPDF?: boolean;
|
|
3473
3655
|
}
|
|
3474
3656
|
export interface AllEmbedViewConfig extends BaseViewConfig, SearchLiveboardCommonViewConfig, HomePageConfig, LiveboardAppEmbedViewConfig {
|
|
3475
3657
|
}
|
|
@@ -4362,7 +4544,7 @@ export declare enum EmbedEvent {
|
|
|
4362
4544
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
4363
4545
|
* @example
|
|
4364
4546
|
*```js
|
|
4365
|
-
* liveboardEmbed.on(EmbedEvent.
|
|
4547
|
+
* liveboardEmbed.on(EmbedEvent.LiveboardInfo, payload => {
|
|
4366
4548
|
* console.log('Liveboard details', payload);
|
|
4367
4549
|
* })
|
|
4368
4550
|
*```
|
|
@@ -4729,7 +4911,90 @@ export declare enum EmbedEvent {
|
|
|
4729
4911
|
* Emitted when a user exits present mode.
|
|
4730
4912
|
* @version SDK : 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
4731
4913
|
*/
|
|
4732
|
-
ExitPresentMode = "exitPresentMode"
|
|
4914
|
+
ExitPresentMode = "exitPresentMode",
|
|
4915
|
+
/**
|
|
4916
|
+
* Emitted when a user requests the full height lazy load data.
|
|
4917
|
+
* @version SDK : 1.39.0 | ThoughtSpot : 10.10.0.cl
|
|
4918
|
+
* @hidden
|
|
4919
|
+
*/
|
|
4920
|
+
RequestVisibleEmbedCoordinates = "requestVisibleEmbedCoordinates",
|
|
4921
|
+
/**
|
|
4922
|
+
* Emitted when Spotter response is text data
|
|
4923
|
+
* @example
|
|
4924
|
+
* ```js
|
|
4925
|
+
* spotterEmbed.on(EmbedEvent.SpotterData, (payload) => {
|
|
4926
|
+
* console.log('payload', payload);
|
|
4927
|
+
* })
|
|
4928
|
+
*```
|
|
4929
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
4930
|
+
*/
|
|
4931
|
+
SpotterData = "SpotterData",
|
|
4932
|
+
/**
|
|
4933
|
+
* Emitted when user opens up the worksheet preview modal in Spotter embed.
|
|
4934
|
+
* @example
|
|
4935
|
+
* ```js
|
|
4936
|
+
* spotterEmbed.on(EmbedEvent.PreviewSpotterData, (payload) => {
|
|
4937
|
+
* console.log('payload', payload);
|
|
4938
|
+
* })
|
|
4939
|
+
*```
|
|
4940
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
4941
|
+
*/
|
|
4942
|
+
PreviewSpotterData = "PreviewSpotterData",
|
|
4943
|
+
/**
|
|
4944
|
+
* Emitted when the Spotter query is triggered in Spotter embed.
|
|
4945
|
+
* @example
|
|
4946
|
+
* ```js
|
|
4947
|
+
* spotterEmbed.on(EmbedEvent.SpotterQueryTriggered, (payload) => {
|
|
4948
|
+
* console.log('payload', payload);
|
|
4949
|
+
* })
|
|
4950
|
+
*```
|
|
4951
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
4952
|
+
*/
|
|
4953
|
+
SpotterQueryTriggered = "SpotterQueryTriggered",
|
|
4954
|
+
/**
|
|
4955
|
+
* Emitted when the last Spotter query is edited in Spotter embed.
|
|
4956
|
+
* @example
|
|
4957
|
+
* ```js
|
|
4958
|
+
* spotterEmbed.on(EmbedEvent.LastPromptEdited, (payload) => {
|
|
4959
|
+
* console.log('payload', payload);
|
|
4960
|
+
* })
|
|
4961
|
+
*```
|
|
4962
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
4963
|
+
*/
|
|
4964
|
+
LastPromptEdited = "LastPromptEdited",
|
|
4965
|
+
/**
|
|
4966
|
+
* Emitted when the last Spotter query is deleted in Spotter embed.
|
|
4967
|
+
* @example
|
|
4968
|
+
* ```js
|
|
4969
|
+
* spotterEmbed.on(EmbedEvent.LastPromptDeleted, (payload) => {
|
|
4970
|
+
* console.log('payload', payload);
|
|
4971
|
+
* })
|
|
4972
|
+
*```
|
|
4973
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
4974
|
+
*/
|
|
4975
|
+
LastPromptDeleted = "LastPromptDeleted",
|
|
4976
|
+
/**
|
|
4977
|
+
* Emitted when the coversation is reset in spotter embed.
|
|
4978
|
+
* @example
|
|
4979
|
+
* ```js
|
|
4980
|
+
* spotterEmbed.on(EmbedEvent.ResetSpotterConversation, (payload) => {
|
|
4981
|
+
* console.log('payload', payload);
|
|
4982
|
+
* })
|
|
4983
|
+
*```
|
|
4984
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
4985
|
+
*/
|
|
4986
|
+
ResetSpotterConversation = "ResetSpotterConversation",
|
|
4987
|
+
/**
|
|
4988
|
+
* Emitted when the *Spotter* is initialized.
|
|
4989
|
+
* @example
|
|
4990
|
+
* ```js
|
|
4991
|
+
* spotterEmbed.on(EmbedEvent.SpotterInit, (payload) => {
|
|
4992
|
+
* console.log('payload', payload);
|
|
4993
|
+
* })
|
|
4994
|
+
*```
|
|
4995
|
+
* @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
|
|
4996
|
+
*/
|
|
4997
|
+
SpotterInit = "spotterInit"
|
|
4733
4998
|
}
|
|
4734
4999
|
/**
|
|
4735
5000
|
* Event types that can be triggered by the host application
|
|
@@ -4747,7 +5012,7 @@ export declare enum EmbedEvent {
|
|
|
4747
5012
|
* // create the liveboard embed.
|
|
4748
5013
|
*
|
|
4749
5014
|
* liveboardEmbed.trigger(HostEvent.UpdateRuntimeFilters, [
|
|
4750
|
-
* { columnName: 'state, operator: RuntimeFilterOp.EQ, values: [
|
|
5015
|
+
* { columnName: 'state', operator: RuntimeFilterOp.EQ, values: ["california"]}
|
|
4751
5016
|
* ]);
|
|
4752
5017
|
* ```
|
|
4753
5018
|
* @example
|
|
@@ -4817,6 +5082,7 @@ export declare enum HostEvent {
|
|
|
4817
5082
|
* done automatically on the most popular column.
|
|
4818
5083
|
* @param - vizId [TS >= 9.8.0] - Optional. The GUID of the visualization to drill
|
|
4819
5084
|
* in case of a Liveboard.
|
|
5085
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
4820
5086
|
* @example
|
|
4821
5087
|
* ```js
|
|
4822
5088
|
* searchEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
|
|
@@ -4955,12 +5221,12 @@ export declare enum HostEvent {
|
|
|
4955
5221
|
* Works with Search and Liveboard embed.
|
|
4956
5222
|
* @param - { columnId: string,
|
|
4957
5223
|
* name: string,
|
|
4958
|
-
* type:
|
|
4959
|
-
* dataType:
|
|
5224
|
+
* type: ATTRIBUTE/MEASURE,
|
|
5225
|
+
* dataType: INT64/CHAR/DATE }
|
|
4960
5226
|
* @example
|
|
4961
5227
|
* ```js
|
|
4962
5228
|
* searchEmbed.trigger(HostEvent.OpenFilter,
|
|
4963
|
-
* {column: { columnId: '<column-GUID>', name: 'column name', type: '
|
|
5229
|
+
* {column: { columnId: '<column-GUID>', name: 'column name', type: 'ATTRIBUTE', dataType: 'INT64'}})
|
|
4964
5230
|
* ```
|
|
4965
5231
|
* @example
|
|
4966
5232
|
* ```js
|
|
@@ -5018,6 +5284,7 @@ export declare enum HostEvent {
|
|
|
5018
5284
|
* @param
|
|
5019
5285
|
* `vizId`- GUID of the saved Answer or visualization to pin to a Liveboard.
|
|
5020
5286
|
* Optional when pinning a new chart or table generated from a Search query.
|
|
5287
|
+
* **Required** in Spotter Embed.
|
|
5021
5288
|
* @param
|
|
5022
5289
|
* `liveboardID` - GUID of the Liveboard to pin an Answer. If there is no Liveboard,
|
|
5023
5290
|
* specify the `newLiveboardName` parameter to create a new Liveboard.
|
|
@@ -5065,6 +5332,12 @@ export declare enum HostEvent {
|
|
|
5065
5332
|
* ```js
|
|
5066
5333
|
* appEmbed.trigger(HostEvent.Pin)
|
|
5067
5334
|
* ```
|
|
5335
|
+
* @example
|
|
5336
|
+
* ```js
|
|
5337
|
+
* const pinResponse = await spotterEmbed.trigger(HostEvent.Pin, {
|
|
5338
|
+
* vizId:'730496d6-6903-4601-937e-2c691821af3c'
|
|
5339
|
+
* });
|
|
5340
|
+
* ```
|
|
5068
5341
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
5069
5342
|
*/
|
|
5070
5343
|
Pin = "pin",
|
|
@@ -5129,12 +5402,21 @@ export declare enum HostEvent {
|
|
|
5129
5402
|
* Trigger the **Download PDF** action on an embedded Liveboard,
|
|
5130
5403
|
* visualization or Answer.
|
|
5131
5404
|
*
|
|
5405
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5406
|
+
*
|
|
5132
5407
|
* **NOTE**: The **Download** > **PDF** action is available on
|
|
5133
5408
|
* visualizations and Answers if the data is in tabular format.
|
|
5134
5409
|
* @example
|
|
5135
5410
|
* ```js
|
|
5136
5411
|
* liveboardEmbed.trigger(HostEvent.DownloadAsPdf)
|
|
5137
5412
|
* ```
|
|
5413
|
+
* @example
|
|
5414
|
+
* ```js
|
|
5415
|
+
* spotterEmbed.trigger(HostEvent.DownloadAsPdf, {
|
|
5416
|
+
* vizId:'730496d6-6903-4601-937e-2c691821af3c'
|
|
5417
|
+
* });
|
|
5418
|
+
* ```
|
|
5419
|
+
*
|
|
5138
5420
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
5139
5421
|
*/
|
|
5140
5422
|
DownloadAsPdf = "downloadAsPdf",
|
|
@@ -5158,6 +5440,12 @@ export declare enum HostEvent {
|
|
|
5158
5440
|
* ```js
|
|
5159
5441
|
* searchEmbed.trigger(HostEvent.MakeACopy)
|
|
5160
5442
|
* ```
|
|
5443
|
+
* @example
|
|
5444
|
+
* ```js
|
|
5445
|
+
* const pinResponse = await spotterEmbed.trigger(HostEvent.MakeACopy, {
|
|
5446
|
+
* vizId:'730496d6-6903-4601-937e-2c691821af3c'
|
|
5447
|
+
* });
|
|
5448
|
+
* ```
|
|
5161
5449
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
5162
5450
|
*/
|
|
5163
5451
|
MakeACopy = "makeACopy",
|
|
@@ -5230,6 +5518,8 @@ export declare enum HostEvent {
|
|
|
5230
5518
|
* This event is not supported in visualization embed and search embed.
|
|
5231
5519
|
* @param - object - To trigger the action for a specific visualization
|
|
5232
5520
|
* in Liveboard embed, pass in `vizId` as a key.
|
|
5521
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5522
|
+
*
|
|
5233
5523
|
* @example
|
|
5234
5524
|
* ```js
|
|
5235
5525
|
* liveboardEmbed.trigger(HostEvent.Edit)
|
|
@@ -5238,6 +5528,18 @@ export declare enum HostEvent {
|
|
|
5238
5528
|
* liveboardEmbed.trigger(HostEvent.Edit, {vizId:
|
|
5239
5529
|
* '730496d6-6903-4601-937e-2c691821af3c'})
|
|
5240
5530
|
* ```
|
|
5531
|
+
* @example
|
|
5532
|
+
* ```js
|
|
5533
|
+
* const pinResponse = await spotterEmbed.trigger(HostEvent.Edit, {
|
|
5534
|
+
* vizId:'730496d6-6903-4601-937e-2c691821af3c'
|
|
5535
|
+
* });
|
|
5536
|
+
* ```
|
|
5537
|
+
* @example
|
|
5538
|
+
* ```js
|
|
5539
|
+
* const editResponse = await spotterEmbed.trigger(HostEvent.Edit, {
|
|
5540
|
+
* vizId:'730496d6-6903-4601-937e-2c691821af3c'
|
|
5541
|
+
* });
|
|
5542
|
+
* ```
|
|
5241
5543
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
5242
5544
|
*/
|
|
5243
5545
|
Edit = "edit",
|
|
@@ -5285,6 +5587,16 @@ export declare enum HostEvent {
|
|
|
5285
5587
|
* );
|
|
5286
5588
|
* })
|
|
5287
5589
|
* ```
|
|
5590
|
+
* @example
|
|
5591
|
+
* ```js
|
|
5592
|
+
* spotterEmbed.trigger(HostEvent.GetTML, {
|
|
5593
|
+
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
5594
|
+
* }).then((tml) => {
|
|
5595
|
+
* console.log(
|
|
5596
|
+
* tml.answer.search_query // TML representation of the search query
|
|
5597
|
+
* );
|
|
5598
|
+
* })
|
|
5599
|
+
* ```
|
|
5288
5600
|
* @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1.sw
|
|
5289
5601
|
* @important
|
|
5290
5602
|
*/
|
|
@@ -5348,6 +5660,7 @@ export declare enum HostEvent {
|
|
|
5348
5660
|
/**
|
|
5349
5661
|
* Trigger the **Download** action on charts in
|
|
5350
5662
|
* the embedded view.
|
|
5663
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5351
5664
|
* @example
|
|
5352
5665
|
* ```js
|
|
5353
5666
|
* liveboardEmbed.trigger(HostEvent.Download, {vizId:
|
|
@@ -5356,6 +5669,11 @@ export declare enum HostEvent {
|
|
|
5356
5669
|
* ```js
|
|
5357
5670
|
* embed.trigger(HostEvent.Download)
|
|
5358
5671
|
* ```
|
|
5672
|
+
* ```js
|
|
5673
|
+
* spotterEmbed.trigger(HostEvent.Download, {
|
|
5674
|
+
* vizId:'730496d6-6903-4601-937e-2c691821af3c'
|
|
5675
|
+
* });
|
|
5676
|
+
* ```
|
|
5359
5677
|
* @deprecated from SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl ,9.4.1.sw
|
|
5360
5678
|
* Use {@link DownloadAsPng}
|
|
5361
5679
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
@@ -5372,13 +5690,19 @@ export declare enum HostEvent {
|
|
|
5372
5690
|
* vizEmbed.trigger(HostEvent.DownloadAsPng)
|
|
5373
5691
|
*
|
|
5374
5692
|
* searchEmbed.trigger(HostEvent.DownloadAsPng)
|
|
5693
|
+
*
|
|
5694
|
+
* spotterEmbed.trigger(HostEvent.DownloadAsPng, {
|
|
5695
|
+
* vizId:"730496d6-6903-4601-937e-2c691821af3c"
|
|
5696
|
+
* })
|
|
5375
5697
|
* ```
|
|
5698
|
+
*
|
|
5376
5699
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.1.sw
|
|
5377
5700
|
*/
|
|
5378
5701
|
DownloadAsPng = "downloadAsPng",
|
|
5379
5702
|
/**
|
|
5380
5703
|
* Trigger the **Download** > **CSV** action on tables in
|
|
5381
5704
|
* the embedded view.
|
|
5705
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5382
5706
|
* @example
|
|
5383
5707
|
* ```js
|
|
5384
5708
|
* liveboardEmbed.trigger(HostEvent.DownloadAsCsv, {vizId:
|
|
@@ -5390,12 +5714,18 @@ export declare enum HostEvent {
|
|
|
5390
5714
|
* ```js
|
|
5391
5715
|
* searchEmbed.trigger(HostEvent.DownloadAsCsv)
|
|
5392
5716
|
* ```
|
|
5717
|
+
* ```js
|
|
5718
|
+
* spotterEmbed.trigger(HostEvent.DownloadAsCsv, {
|
|
5719
|
+
* vizId:"730496d6-6903-4601-937e-2c691821af3c"
|
|
5720
|
+
* })
|
|
5721
|
+
* ```
|
|
5393
5722
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
5394
5723
|
*/
|
|
5395
5724
|
DownloadAsCsv = "downloadAsCSV",
|
|
5396
5725
|
/**
|
|
5397
5726
|
* Trigger the **Download** > **XLSX** action on tables
|
|
5398
5727
|
* in the embedded view.
|
|
5728
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5399
5729
|
* @example
|
|
5400
5730
|
* ```js
|
|
5401
5731
|
* liveboardEmbed.trigger(HostEvent.DownloadAsXlsx, {vizId:
|
|
@@ -5407,6 +5737,11 @@ export declare enum HostEvent {
|
|
|
5407
5737
|
* ```js
|
|
5408
5738
|
* searchEmbed.trigger(HostEvent.DownloadAsXlsx)
|
|
5409
5739
|
* ```
|
|
5740
|
+
* ```js
|
|
5741
|
+
* spotterEmbed.trigger(HostEvent.downloadAsXLSX, {
|
|
5742
|
+
* vizId:"730496d6-6903-4601-937e-2c691821af3c"
|
|
5743
|
+
* })
|
|
5744
|
+
* ```
|
|
5410
5745
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
5411
5746
|
*/
|
|
5412
5747
|
DownloadAsXlsx = "downloadAsXLSX",
|
|
@@ -5426,6 +5761,7 @@ export declare enum HostEvent {
|
|
|
5426
5761
|
/**
|
|
5427
5762
|
* Trigger the **Save** action on a Liveboard or Answer.
|
|
5428
5763
|
* Saves the changes.
|
|
5764
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5429
5765
|
* @example
|
|
5430
5766
|
* ```js
|
|
5431
5767
|
* liveboardEmbed.trigger(HostEvent.Save)
|
|
@@ -5433,6 +5769,11 @@ export declare enum HostEvent {
|
|
|
5433
5769
|
* ```js
|
|
5434
5770
|
* searchEmbed.trigger(HostEvent.Save)
|
|
5435
5771
|
* ```
|
|
5772
|
+
* ```js
|
|
5773
|
+
* spotterEmbed.trigger(HostEvent.Save, {
|
|
5774
|
+
* vizId:"730496d6-6903-4601-937e-2c691821af3c"
|
|
5775
|
+
* })
|
|
5776
|
+
* ```
|
|
5436
5777
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
5437
5778
|
*/
|
|
5438
5779
|
Save = "save",
|
|
@@ -5716,7 +6057,7 @@ export declare enum HostEvent {
|
|
|
5716
6057
|
ResetLiveboardPersonalisedView = "ResetLiveboardPersonalisedView",
|
|
5717
6058
|
/**
|
|
5718
6059
|
* Triggers an action to update Parameter values on embedded
|
|
5719
|
-
* Answers and
|
|
6060
|
+
* Answers, Liveboard and Spotter answer in Edit mode.
|
|
5720
6061
|
*
|
|
5721
6062
|
* @example
|
|
5722
6063
|
* ```js
|
|
@@ -5730,11 +6071,19 @@ export declare enum HostEvent {
|
|
|
5730
6071
|
UpdateParameters = "UpdateParameters",
|
|
5731
6072
|
/**
|
|
5732
6073
|
* Triggers GetParameters to fetch the runtime Parameters.
|
|
6074
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5733
6075
|
* ```js
|
|
5734
6076
|
* liveboardEmbed.trigger(HostEvent.GetParameters).then((parameter) => {
|
|
5735
6077
|
* console.log('parameters', parameter);
|
|
5736
6078
|
* });
|
|
5737
6079
|
*```
|
|
6080
|
+
*```js
|
|
6081
|
+
* spotterEmbed.trigger(HostEvent.GetParameters, {
|
|
6082
|
+
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
6083
|
+
* }).then((parameter) => {
|
|
6084
|
+
* console.log('parameters', parameter);
|
|
6085
|
+
* });
|
|
6086
|
+
*```
|
|
5738
6087
|
* @version SDK: 1.29.0 | ThoughtSpot: 10.1.0.cl, 10.1.0.sw
|
|
5739
6088
|
*/
|
|
5740
6089
|
GetParameters = "GetParameters",
|
|
@@ -5766,7 +6115,7 @@ export declare enum HostEvent {
|
|
|
5766
6115
|
* @param - optional attributes to set Answer properties.
|
|
5767
6116
|
* `name` - Name string for the Answer.
|
|
5768
6117
|
* `description` - Description text for the Answer.
|
|
5769
|
-
*
|
|
6118
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5770
6119
|
* @example
|
|
5771
6120
|
* ```js
|
|
5772
6121
|
* const saveAnswerResponse = await searchEmbed.trigger(HostEvent.SaveAnswer, {
|
|
@@ -5774,6 +6123,14 @@ export declare enum HostEvent {
|
|
|
5774
6123
|
* description: "Total sales by states in MidWest"
|
|
5775
6124
|
* });
|
|
5776
6125
|
* ```
|
|
6126
|
+
* @example
|
|
6127
|
+
* ```js
|
|
6128
|
+
* const saveAnswerResponse = await spotterEmbed.trigger(HostEvent.SaveAnswer, {
|
|
6129
|
+
* vizId: '730496d6-6903-4601-937e-2c691821af3c',
|
|
6130
|
+
* name: "Sales by states",
|
|
6131
|
+
* description: "Total sales by states in MidWest"
|
|
6132
|
+
* });
|
|
6133
|
+
* ```
|
|
5777
6134
|
* @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
|
|
5778
6135
|
*/
|
|
5779
6136
|
SaveAnswer = "saveAnswer",
|
|
@@ -5802,6 +6159,70 @@ export declare enum HostEvent {
|
|
|
5802
6159
|
* @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl
|
|
5803
6160
|
*/
|
|
5804
6161
|
TransformTableVizData = "TransformTableVizData",
|
|
6162
|
+
/**
|
|
6163
|
+
* Triggers a search operation with the search tokens specified in
|
|
6164
|
+
* the search query string in spotter embed.
|
|
6165
|
+
* @param - `query`: Text string in Natural Language format
|
|
6166
|
+
* @param - `executeSearch`: Boolean to execute search and update search query
|
|
6167
|
+
* @example
|
|
6168
|
+
* ```js
|
|
6169
|
+
* spotterEmbed.trigger(HostEvent.SpotterSearch, {
|
|
6170
|
+
* query: 'revenue per year',
|
|
6171
|
+
* executeSearch: true,
|
|
6172
|
+
* })
|
|
6173
|
+
* ```
|
|
6174
|
+
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
6175
|
+
*/
|
|
6176
|
+
SpotterSearch = "SpotterSearch",
|
|
6177
|
+
/**
|
|
6178
|
+
* Edits the last prompt in spotter embed.
|
|
6179
|
+
* @param - `query`: Text string
|
|
6180
|
+
* @example
|
|
6181
|
+
* ```js
|
|
6182
|
+
* spotterEmbed.trigger(HostEvent.EditLastPrompt, "revenue per year");
|
|
6183
|
+
* ```
|
|
6184
|
+
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
6185
|
+
*/
|
|
6186
|
+
EditLastPrompt = "EditLastPrompt",
|
|
6187
|
+
/**
|
|
6188
|
+
* Opens the Worksheet preview modal in Spotter Embed.
|
|
6189
|
+
* @example
|
|
6190
|
+
* ```js
|
|
6191
|
+
* spotterEmbed.trigger(HostEvent.PreviewSpotterData);
|
|
6192
|
+
* ```
|
|
6193
|
+
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
6194
|
+
*/
|
|
6195
|
+
PreviewSpotterData = "PreviewSpotterData",
|
|
6196
|
+
/**
|
|
6197
|
+
* Resets the Spotter Embed Conversation.
|
|
6198
|
+
* @example
|
|
6199
|
+
* ```js
|
|
6200
|
+
* spotterEmbed.trigger(HostEvent.ResetSpotterConversation);
|
|
6201
|
+
* ```
|
|
6202
|
+
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
6203
|
+
*/
|
|
6204
|
+
ResetSpotterConversation = "ResetSpotterConversation",
|
|
6205
|
+
/**
|
|
6206
|
+
* Deletes the last prompt in spotter embed.
|
|
6207
|
+
* @example
|
|
6208
|
+
* ```js
|
|
6209
|
+
* spotterEmbed.trigger(HostEvent.DeleteLastPrompt);
|
|
6210
|
+
* ```
|
|
6211
|
+
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
6212
|
+
*/
|
|
6213
|
+
DeleteLastPrompt = "DeleteLastPrompt",
|
|
6214
|
+
/**
|
|
6215
|
+
* Toggle the visualization to chart or table view.
|
|
6216
|
+
* @param - `vizId ` refers to the answer id in spotter Embed, it is required in spotter Embed.
|
|
6217
|
+
* @example
|
|
6218
|
+
* ```js
|
|
6219
|
+
* spotterEmbed.trigger(HostEvent.AnswerChartSwitcher, {
|
|
6220
|
+
* vizId:'b535c760-8bbe-4e6f-bb26-af56b4129a1e'
|
|
6221
|
+
* });
|
|
6222
|
+
*```
|
|
6223
|
+
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
6224
|
+
*/
|
|
6225
|
+
AnswerChartSwitcher = "answerChartSwitcher",
|
|
5805
6226
|
/**
|
|
5806
6227
|
* @hidden
|
|
5807
6228
|
* Trigger exit from presentation mode when user exits fullscreen.
|
|
@@ -5811,7 +6232,31 @@ export declare enum HostEvent {
|
|
|
5811
6232
|
*```
|
|
5812
6233
|
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
5813
6234
|
*/
|
|
5814
|
-
ExitPresentMode = "exitPresentMode"
|
|
6235
|
+
ExitPresentMode = "exitPresentMode",
|
|
6236
|
+
/**
|
|
6237
|
+
* Triggers the full height lazy load data.
|
|
6238
|
+
* @example
|
|
6239
|
+
* ```js
|
|
6240
|
+
* liveboardEmbed.on(EmbedEvent.RequestVisibleEmbedCoordinates, (payload) => {
|
|
6241
|
+
* console.log(payload);
|
|
6242
|
+
* });
|
|
6243
|
+
* ```
|
|
6244
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
6245
|
+
*
|
|
6246
|
+
* @hidden
|
|
6247
|
+
*/
|
|
6248
|
+
VisibleEmbedCoordinates = "visibleEmbedCoordinates",
|
|
6249
|
+
/**
|
|
6250
|
+
* Trigger the *Ask Spotter* action for visualizations
|
|
6251
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
6252
|
+
* @example
|
|
6253
|
+
* ```js
|
|
6254
|
+
* spotterEmbed.trigger(HostEvent.AskSpotter,
|
|
6255
|
+
* {vizId:'730496d6-6903-4601-937e-2c691821af3c'})
|
|
6256
|
+
* ```
|
|
6257
|
+
* @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
|
|
6258
|
+
*/
|
|
6259
|
+
AskSpotter = "AskSpotter"
|
|
5815
6260
|
}
|
|
5816
6261
|
/**
|
|
5817
6262
|
* The different visual modes that the data sources panel within
|
|
@@ -5907,6 +6352,7 @@ export declare enum Param {
|
|
|
5907
6352
|
Query = "query",
|
|
5908
6353
|
HideHomepageLeftNav = "hideHomepageLeftNav",
|
|
5909
6354
|
ModularHomeExperienceEnabled = "modularHomeExperience",
|
|
6355
|
+
ListPageVersion = "listpageVersion",
|
|
5910
6356
|
PendoTrackingKey = "additionalPendoKey",
|
|
5911
6357
|
LiveboardHeaderSticky = "isLiveboardHeaderSticky",
|
|
5912
6358
|
IsProductTour = "isProductTour",
|
|
@@ -5941,10 +6387,12 @@ export declare enum Param {
|
|
|
5941
6387
|
DataSourceId = "dataSourceId",
|
|
5942
6388
|
preAuthCache = "preAuthCache",
|
|
5943
6389
|
ShowSpotterLimitations = "showSpotterLimitations",
|
|
5944
|
-
CoverAndFilterOptionInPDF = "
|
|
6390
|
+
CoverAndFilterOptionInPDF = "arePdfCoverFilterPageCheckboxesEnabled",
|
|
5945
6391
|
PrimaryAction = "primaryAction",
|
|
5946
6392
|
isSpotterAgentEmbed = "isSpotterAgentEmbed",
|
|
5947
|
-
IsLiveboardStylingAndGroupingEnabled = "isLiveboardStylingAndGroupingEnabled"
|
|
6393
|
+
IsLiveboardStylingAndGroupingEnabled = "isLiveboardStylingAndGroupingEnabled",
|
|
6394
|
+
IsLazyLoadingForEmbedEnabled = "isLazyLoadingForEmbedEnabled",
|
|
6395
|
+
RootMarginForLazyLoad = "rootMarginForLazyLoad"
|
|
5948
6396
|
}
|
|
5949
6397
|
/**
|
|
5950
6398
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -7164,7 +7612,23 @@ export declare enum Action {
|
|
|
7164
7612
|
* ```
|
|
7165
7613
|
* @version SDK: 1.37.0 | ThoughtSpot Cloud: 10.8.0.cl
|
|
7166
7614
|
*/
|
|
7167
|
-
CoverAndFilterOptionInPDF = "coverAndFilterOptionInPDF"
|
|
7615
|
+
CoverAndFilterOptionInPDF = "coverAndFilterOptionInPDF",
|
|
7616
|
+
/**
|
|
7617
|
+
* Action ID for hide or disable the
|
|
7618
|
+
* Spotter in conversation training widget.
|
|
7619
|
+
* The Add to Coaching feature is currently in beta
|
|
7620
|
+
* and is disabled by default on embed deployments.
|
|
7621
|
+
* To enable this feature on your instance,
|
|
7622
|
+
* contact ThoughtSpot Support.
|
|
7623
|
+
* @example
|
|
7624
|
+
* ```js
|
|
7625
|
+
* hiddenAction: [Action.InConversationTraining]
|
|
7626
|
+
* disabledActions: [Action.InConversationTraining]
|
|
7627
|
+
*
|
|
7628
|
+
* ```
|
|
7629
|
+
* @version SDK: 1.39.0 | ThoughtSpot Cloud: 10.10.0.cl
|
|
7630
|
+
*/
|
|
7631
|
+
InConversationTraining = "InConversationTraining"
|
|
7168
7632
|
}
|
|
7169
7633
|
export interface AnswerServiceType {
|
|
7170
7634
|
getAnswer?: (offset: number, batchSize: number) => any;
|
|
@@ -7501,7 +7965,7 @@ export declare class ConversationEmbed extends SpotterEmbed {
|
|
|
7501
7965
|
* @summary ThoughtSpot Visual Embed SDK
|
|
7502
7966
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
7503
7967
|
*/
|
|
7504
|
-
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, PrimaryNavbarVersion, HomePage, VizPoint, CustomActionPayload, UIPassthroughEvent, ListPageColumns, DataPanelCustomColumnGroupsAccordionState, };
|
|
7968
|
+
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, PrimaryNavbarVersion, HomePage, ListPage, VizPoint, CustomActionPayload, UIPassthroughEvent, ListPageColumns, DataPanelCustomColumnGroupsAccordionState, };
|
|
7505
7969
|
|
|
7506
7970
|
/**
|
|
7507
7971
|
* Copyright (c) 2022
|
|
@@ -8733,13 +9197,14 @@ export declare function resetCachedPreauthInfo(): void;
|
|
|
8733
9197
|
*
|
|
8734
9198
|
* @example
|
|
8735
9199
|
* ```js
|
|
9200
|
+
* import { getInitConfig } from '@thoughtspot/visual-embed-sdk';
|
|
9201
|
+
* // Call the getInitConfig method to retrieve the embed configuration
|
|
8736
9202
|
* const config = getInitConfig();
|
|
9203
|
+
* // Log the configuration settings
|
|
8737
9204
|
* console.log(config);
|
|
8738
9205
|
* ```
|
|
8739
|
-
*
|
|
8740
|
-
*
|
|
8741
|
-
* Returns the `EmbedConfig` object, which
|
|
8742
|
-
* contains the configuration settings used to
|
|
9206
|
+
* Returns the link:https://developers.thoughtspot.com/docs/Interface_EmbedConfig[EmbedConfig]
|
|
9207
|
+
* object, which contains the configuration settings used to
|
|
8743
9208
|
* initialize the SDK, including the following:
|
|
8744
9209
|
*
|
|
8745
9210
|
* - `thoughtSpotHost` - ThoughtSpot host URL
|
|
@@ -8748,9 +9213,10 @@ export declare function resetCachedPreauthInfo(): void;
|
|
|
8748
9213
|
* - `customizations` - Style, text, and icon customization settings
|
|
8749
9214
|
* that were applied during the SDK initialization.
|
|
8750
9215
|
*
|
|
8751
|
-
*
|
|
8752
|
-
*
|
|
9216
|
+
* The following JSON output shows the embed configuration
|
|
9217
|
+
* settings returned from the code in the previous example:
|
|
8753
9218
|
*
|
|
9219
|
+
* @example
|
|
8754
9220
|
* ```json
|
|
8755
9221
|
* {
|
|
8756
9222
|
* "thoughtSpotHost": "https://{ThoughtSpot-Host}",
|
|
@@ -8772,7 +9238,7 @@ export declare function resetCachedPreauthInfo(): void;
|
|
|
8772
9238
|
* "authTriggerContainer": "#your-own-div"
|
|
8773
9239
|
* }
|
|
8774
9240
|
* ```
|
|
8775
|
-
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.
|
|
9241
|
+
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw, and later
|
|
8776
9242
|
* @group Global methods
|
|
8777
9243
|
*/
|
|
8778
9244
|
export declare const getEmbedConfig: () => EmbedConfig;
|