@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
|
/**
|
|
316
369
|
* Copyright (c) 2023
|
|
@@ -320,7 +373,7 @@ export function useInit(config: EmbedConfig): React.MutableRefObject<AuthEventEm
|
|
|
320
373
|
* @summary ThoughtSpot Visual Embed SDK
|
|
321
374
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
322
375
|
*/
|
|
323
|
-
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, };
|
|
376
|
+
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, };
|
|
324
377
|
|
|
325
378
|
export declare let loggedInStatus: boolean;
|
|
326
379
|
export declare let samlAuthWindow: Window;
|
|
@@ -1204,6 +1257,21 @@ export declare enum HomePage {
|
|
|
1204
1257
|
*/
|
|
1205
1258
|
Modular = "v2"
|
|
1206
1259
|
}
|
|
1260
|
+
/**
|
|
1261
|
+
* Define the version of the list page
|
|
1262
|
+
* @version SDK: 1.40.0 | ThoughtSpot: 10.12.0.cl
|
|
1263
|
+
*/
|
|
1264
|
+
export declare enum ListPage {
|
|
1265
|
+
/**
|
|
1266
|
+
* List (v2) is the traditional List Experience.
|
|
1267
|
+
* It serves as the foundational version of the list page.
|
|
1268
|
+
*/
|
|
1269
|
+
List = "v2",
|
|
1270
|
+
/**
|
|
1271
|
+
* ListWithUXChanges (v3) introduces the new updated list page with UX changes.
|
|
1272
|
+
*/
|
|
1273
|
+
ListWithUXChanges = "v3"
|
|
1274
|
+
}
|
|
1207
1275
|
/**
|
|
1208
1276
|
* Define the discovery experience
|
|
1209
1277
|
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
@@ -1217,6 +1285,10 @@ export interface DiscoveryExperience {
|
|
|
1217
1285
|
* homePage determines the version of the home page.
|
|
1218
1286
|
*/
|
|
1219
1287
|
homePage?: HomePage;
|
|
1288
|
+
/**
|
|
1289
|
+
* listPageVersion determines the version of the list page.
|
|
1290
|
+
*/
|
|
1291
|
+
listPageVersion?: ListPage;
|
|
1220
1292
|
}
|
|
1221
1293
|
/**
|
|
1222
1294
|
* The view configuration for full app embedding.
|
|
@@ -1588,21 +1660,6 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
1588
1660
|
* ```
|
|
1589
1661
|
*/
|
|
1590
1662
|
isUnifiedSearchExperienceEnabled?: boolean;
|
|
1591
|
-
/**
|
|
1592
|
-
* Show alert messages and toast messages in the embedded
|
|
1593
|
-
* view in full app embed.
|
|
1594
|
-
*
|
|
1595
|
-
* Supported embed types: `AppEmbed`
|
|
1596
|
-
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1597
|
-
* @example
|
|
1598
|
-
* ```js
|
|
1599
|
-
* const embed = new AppEmbed('#tsEmbed', {
|
|
1600
|
-
* ... // other embed view config
|
|
1601
|
-
* showAlerts:true,
|
|
1602
|
-
* })
|
|
1603
|
-
* ```
|
|
1604
|
-
*/
|
|
1605
|
-
showAlerts?: boolean;
|
|
1606
1663
|
/**
|
|
1607
1664
|
* This flag is used to enable/disable the styling and grouping in a Liveboard
|
|
1608
1665
|
*
|
|
@@ -1619,6 +1676,46 @@ export interface AppViewConfig extends AllEmbedViewConfig {
|
|
|
1619
1676
|
* ```
|
|
1620
1677
|
*/
|
|
1621
1678
|
isLiveboardStylingAndGroupingEnabled?: boolean;
|
|
1679
|
+
/**
|
|
1680
|
+
* This flag is used to enable the full height lazy load data.
|
|
1681
|
+
*
|
|
1682
|
+
* @example
|
|
1683
|
+
* ```js
|
|
1684
|
+
* const embed = new AppEmbed('#embed-container', {
|
|
1685
|
+
* // ...other options
|
|
1686
|
+
* fullHeight: true,
|
|
1687
|
+
* lazyLoadingForFullHeight: true,
|
|
1688
|
+
* })
|
|
1689
|
+
* ```
|
|
1690
|
+
*
|
|
1691
|
+
* @type {boolean}
|
|
1692
|
+
* @default false
|
|
1693
|
+
* @version SDK: 1.40.0 | ThoughtSpot:10.12.0.cl
|
|
1694
|
+
*/
|
|
1695
|
+
lazyLoadingForFullHeight?: boolean;
|
|
1696
|
+
/**
|
|
1697
|
+
* The margin to be used for lazy loading.
|
|
1698
|
+
*
|
|
1699
|
+
* For example, if the margin is set to '10px',
|
|
1700
|
+
* the visualization will be loaded 10px before the its top edge is visible in the
|
|
1701
|
+
* viewport.
|
|
1702
|
+
*
|
|
1703
|
+
* The format is similar to CSS margin.
|
|
1704
|
+
*
|
|
1705
|
+
* @example
|
|
1706
|
+
* ```js
|
|
1707
|
+
* const embed = new AppEmbed('#embed-container', {
|
|
1708
|
+
* // ...other options
|
|
1709
|
+
* fullHeight: true,
|
|
1710
|
+
* lazyLoadingForFullHeight: true,
|
|
1711
|
+
* // Using 0px, the visualization will be only loaded when its visible in the viewport.
|
|
1712
|
+
* lazyLoadingMargin: '0px',
|
|
1713
|
+
* })
|
|
1714
|
+
* ```
|
|
1715
|
+
* @type {string}
|
|
1716
|
+
* @version SDK: 1.40.0 | ThoughtSpot:10.12.0.cl
|
|
1717
|
+
*/
|
|
1718
|
+
lazyLoadingMargin?: string;
|
|
1622
1719
|
}
|
|
1623
1720
|
/**
|
|
1624
1721
|
* Embeds full ThoughtSpot experience in a host application.
|
|
@@ -1655,6 +1752,11 @@ export declare class AppEmbed extends V1Embed {
|
|
|
1655
1752
|
* @version SDK: 1.12.0 | ThoughtSpot: 8.4.0.cl, 8.4.1-sw
|
|
1656
1753
|
*/
|
|
1657
1754
|
navigateToPage(path: string | number, noReload?: boolean): void;
|
|
1755
|
+
/**
|
|
1756
|
+
* Destroys the ThoughtSpot embed, and remove any nodes from the DOM.
|
|
1757
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
1758
|
+
*/
|
|
1759
|
+
destroy(): void;
|
|
1658
1760
|
/**
|
|
1659
1761
|
* Renders the embedded application pages in the ThoughtSpot app.
|
|
1660
1762
|
* @param renderOptions An object containing the page ID
|
|
@@ -1910,23 +2012,6 @@ export interface LiveboardViewConfig extends BaseViewConfig, LiveboardOtherViewC
|
|
|
1910
2012
|
* })
|
|
1911
2013
|
*/
|
|
1912
2014
|
dataSourceId?: string;
|
|
1913
|
-
/**
|
|
1914
|
-
* This flag is for show/hide checkboxes for include or exclude
|
|
1915
|
-
* cover page and filters in the Liveboard PDF.
|
|
1916
|
-
*
|
|
1917
|
-
* Supported embed types: `LiveboardEmbed`
|
|
1918
|
-
* @version SDK: 1.37.0 | ThoughtSpot:10.8.0.cl
|
|
1919
|
-
* @default true
|
|
1920
|
-
* Supported embed types: `LiveboardEmbed`
|
|
1921
|
-
* @example
|
|
1922
|
-
* ```js
|
|
1923
|
-
* const embed = new LiveboardEmbed('#tsEmbed', {
|
|
1924
|
-
* ... //other embed view config
|
|
1925
|
-
* coverAndFilterOptionInPDF: false,
|
|
1926
|
-
* })
|
|
1927
|
-
* ```
|
|
1928
|
-
*/
|
|
1929
|
-
coverAndFilterOptionInPDF?: boolean;
|
|
1930
2015
|
/**
|
|
1931
2016
|
* The list of tab IDs to hide from the embedded.
|
|
1932
2017
|
* This Tabs will be hidden from their respective LBs.
|
|
@@ -1982,6 +2067,46 @@ export interface LiveboardViewConfig extends BaseViewConfig, LiveboardOtherViewC
|
|
|
1982
2067
|
* ```
|
|
1983
2068
|
*/
|
|
1984
2069
|
isLiveboardStylingAndGroupingEnabled?: boolean;
|
|
2070
|
+
/**
|
|
2071
|
+
* This flag is used to enable the full height lazy load data.
|
|
2072
|
+
*
|
|
2073
|
+
* @example
|
|
2074
|
+
* ```js
|
|
2075
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2076
|
+
* // ...other options
|
|
2077
|
+
* fullHeight: true,
|
|
2078
|
+
* lazyLoadingForFullHeight: true,
|
|
2079
|
+
* })
|
|
2080
|
+
* ```
|
|
2081
|
+
*
|
|
2082
|
+
* @type {boolean}
|
|
2083
|
+
* @default false
|
|
2084
|
+
* @version SDK: 1.40.0 | ThoughtSpot:10.12.0.cl
|
|
2085
|
+
*/
|
|
2086
|
+
lazyLoadingForFullHeight?: boolean;
|
|
2087
|
+
/**
|
|
2088
|
+
* The margin to be used for lazy loading.
|
|
2089
|
+
*
|
|
2090
|
+
* For example, if the margin is set to '10px',
|
|
2091
|
+
* the visualization will be loaded 10px before the its top edge is visible in the
|
|
2092
|
+
* viewport.
|
|
2093
|
+
*
|
|
2094
|
+
* The format is similar to CSS margin.
|
|
2095
|
+
*
|
|
2096
|
+
* @example
|
|
2097
|
+
* ```js
|
|
2098
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2099
|
+
* // ...other options
|
|
2100
|
+
* fullHeight: true,
|
|
2101
|
+
* lazyLoadingForFullHeight: true,
|
|
2102
|
+
* // Using 0px, the visualization will be only loaded when its visible in the viewport.
|
|
2103
|
+
* lazyLoadingMargin: '0px',
|
|
2104
|
+
* })
|
|
2105
|
+
* ```
|
|
2106
|
+
* @type {string}
|
|
2107
|
+
* @version SDK: 1.40.0 | ThoughtSpot:10.12.0.cl
|
|
2108
|
+
*/
|
|
2109
|
+
lazyLoadingMargin?: string;
|
|
1985
2110
|
}
|
|
1986
2111
|
/**
|
|
1987
2112
|
* Embed a ThoughtSpot Liveboard or visualization. When rendered it already
|
|
@@ -2015,6 +2140,11 @@ export declare class LiveboardEmbed extends V1Embed {
|
|
|
2015
2140
|
* @returns A promise that resolves with the response from the embedded app
|
|
2016
2141
|
*/
|
|
2017
2142
|
trigger<HostEventT extends HostEvent, PayloadT>(messageType: HostEventT, data?: TriggerPayload<PayloadT, HostEventT>): Promise<TriggerResponse<PayloadT, HostEventT>>;
|
|
2143
|
+
/**
|
|
2144
|
+
* Destroys the ThoughtSpot embed, and remove any nodes from the DOM.
|
|
2145
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
2146
|
+
*/
|
|
2147
|
+
destroy(): void;
|
|
2018
2148
|
/**
|
|
2019
2149
|
* Render an embedded ThoughtSpot Liveboard or visualization
|
|
2020
2150
|
* @param renderOptions An object specifying the Liveboard ID,
|
|
@@ -2044,10 +2174,6 @@ export interface SpotterAgentEmbedViewConfig extends Omit<BaseViewConfig, 'prima
|
|
|
2044
2174
|
* The ID of the worksheet to use for the conversation.
|
|
2045
2175
|
*/
|
|
2046
2176
|
worksheetId: string;
|
|
2047
|
-
/**
|
|
2048
|
-
* Optional CSS class name to add to the container div.
|
|
2049
|
-
*/
|
|
2050
|
-
containerClassName?: string;
|
|
2051
2177
|
}
|
|
2052
2178
|
/**
|
|
2053
2179
|
* Configuration for conversation options.
|
|
@@ -2057,13 +2183,15 @@ export interface SpotterAgentEmbedViewConfig extends Omit<BaseViewConfig, 'prima
|
|
|
2057
2183
|
*/
|
|
2058
2184
|
export interface BodylessConversationViewConfig extends SpotterAgentEmbedViewConfig {
|
|
2059
2185
|
}
|
|
2060
|
-
interface SpotterAgentMessageViewConfig extends SpotterAgentEmbedViewConfig {
|
|
2186
|
+
export interface SpotterAgentMessageViewConfig extends SpotterAgentEmbedViewConfig {
|
|
2061
2187
|
sessionId: string;
|
|
2062
2188
|
genNo: number;
|
|
2063
2189
|
acSessionId: string;
|
|
2064
2190
|
acGenNo: number;
|
|
2191
|
+
convId: string;
|
|
2192
|
+
messageId: string;
|
|
2065
2193
|
}
|
|
2066
|
-
declare class ConversationMessage extends TsEmbed {
|
|
2194
|
+
export declare class ConversationMessage extends TsEmbed {
|
|
2067
2195
|
protected viewConfig: SpotterAgentMessageViewConfig;
|
|
2068
2196
|
constructor(container: HTMLElement, viewConfig: SpotterAgentMessageViewConfig);
|
|
2069
2197
|
getIframeSrc(): string;
|
|
@@ -2099,6 +2227,25 @@ export declare class SpotterAgentEmbed {
|
|
|
2099
2227
|
viz: ConversationMessage;
|
|
2100
2228
|
error?: undefined;
|
|
2101
2229
|
}>;
|
|
2230
|
+
/**
|
|
2231
|
+
* Send a message to the conversation service and return only the data.
|
|
2232
|
+
* @param userMessage - The message to send to the conversation service.
|
|
2233
|
+
* @returns The data from the conversation service.
|
|
2234
|
+
*/
|
|
2235
|
+
sendMessageData(userMessage: string): Promise<{
|
|
2236
|
+
error: any;
|
|
2237
|
+
data?: undefined;
|
|
2238
|
+
} | {
|
|
2239
|
+
data: {
|
|
2240
|
+
convId: any;
|
|
2241
|
+
messageId: any;
|
|
2242
|
+
sessionId: any;
|
|
2243
|
+
genNo: any;
|
|
2244
|
+
acSessionId: any;
|
|
2245
|
+
acGenNo: any;
|
|
2246
|
+
};
|
|
2247
|
+
error?: undefined;
|
|
2248
|
+
}>;
|
|
2102
2249
|
}
|
|
2103
2250
|
/**
|
|
2104
2251
|
* Create a conversation embed, which can be integrated inside
|
|
@@ -2123,7 +2270,6 @@ export declare class SpotterAgentEmbed {
|
|
|
2123
2270
|
export declare class BodylessConversation extends SpotterAgentEmbed {
|
|
2124
2271
|
constructor(viewConfig: BodylessConversationViewConfig);
|
|
2125
2272
|
}
|
|
2126
|
-
export {};
|
|
2127
2273
|
|
|
2128
2274
|
/**
|
|
2129
2275
|
* Copyright (c) 2023
|
|
@@ -2337,7 +2483,13 @@ export declare enum HomeLeftNavItem {
|
|
|
2337
2483
|
* available when new navigation V3 is enabled.
|
|
2338
2484
|
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
2339
2485
|
*/
|
|
2340
|
-
Spotter = "spotter"
|
|
2486
|
+
Spotter = "spotter",
|
|
2487
|
+
/**
|
|
2488
|
+
* Favorites option in the insights left navigation,
|
|
2489
|
+
* available when new navigation V3 is enabled.
|
|
2490
|
+
* @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
|
|
2491
|
+
*/
|
|
2492
|
+
Favorites = "favorites"
|
|
2341
2493
|
}
|
|
2342
2494
|
export type DOMSelector = string | HTMLElement;
|
|
2343
2495
|
/**
|
|
@@ -3103,6 +3255,20 @@ export interface BaseViewConfig {
|
|
|
3103
3255
|
* @private
|
|
3104
3256
|
*/
|
|
3105
3257
|
insertInToSlide?: boolean;
|
|
3258
|
+
/**
|
|
3259
|
+
* Show alert messages and toast messages in the embed.
|
|
3260
|
+
* Supported embed in all embed types.
|
|
3261
|
+
*
|
|
3262
|
+
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
3263
|
+
* @example
|
|
3264
|
+
* ```js
|
|
3265
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
3266
|
+
* ... // other embed view config
|
|
3267
|
+
* showAlerts:true,
|
|
3268
|
+
* })
|
|
3269
|
+
* ```
|
|
3270
|
+
*/
|
|
3271
|
+
showAlerts?: boolean;
|
|
3106
3272
|
}
|
|
3107
3273
|
/**
|
|
3108
3274
|
* The configuration object for Home page embeds configs.
|
|
@@ -3480,6 +3646,22 @@ export interface LiveboardAppEmbedViewConfig {
|
|
|
3480
3646
|
* ```
|
|
3481
3647
|
*/
|
|
3482
3648
|
enableAskSage?: boolean;
|
|
3649
|
+
/**
|
|
3650
|
+
* This flag is used to show or hide checkboxes for including or excluding
|
|
3651
|
+
* the cover and filters pages in the Liveboard PDF.
|
|
3652
|
+
*
|
|
3653
|
+
* Supported embed types: `AppEmbed`, `LiveboardEmbed`
|
|
3654
|
+
* @version SDK: 1.40.0 | ThoughtSpot:10.8.0.cl
|
|
3655
|
+
* @example
|
|
3656
|
+
* ```js
|
|
3657
|
+
* // Replace <EmbedComponent> with embed component name. For example, AppEmbed or LiveboardEmbed
|
|
3658
|
+
* const embed = new <EmbedComponent>('#tsEmbed', {
|
|
3659
|
+
* ... // other embed view config
|
|
3660
|
+
* coverAndFilterOptionInPDF: false,
|
|
3661
|
+
* })
|
|
3662
|
+
* ```
|
|
3663
|
+
*/
|
|
3664
|
+
coverAndFilterOptionInPDF?: boolean;
|
|
3483
3665
|
}
|
|
3484
3666
|
export interface AllEmbedViewConfig extends BaseViewConfig, SearchLiveboardCommonViewConfig, HomePageConfig, LiveboardAppEmbedViewConfig {
|
|
3485
3667
|
}
|
|
@@ -4372,7 +4554,7 @@ export declare enum EmbedEvent {
|
|
|
4372
4554
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
4373
4555
|
* @example
|
|
4374
4556
|
*```js
|
|
4375
|
-
* liveboardEmbed.on(EmbedEvent.
|
|
4557
|
+
* liveboardEmbed.on(EmbedEvent.LiveboardInfo, payload => {
|
|
4376
4558
|
* console.log('Liveboard details', payload);
|
|
4377
4559
|
* })
|
|
4378
4560
|
*```
|
|
@@ -4739,7 +4921,90 @@ export declare enum EmbedEvent {
|
|
|
4739
4921
|
* Emitted when a user exits present mode.
|
|
4740
4922
|
* @version SDK : 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
4741
4923
|
*/
|
|
4742
|
-
ExitPresentMode = "exitPresentMode"
|
|
4924
|
+
ExitPresentMode = "exitPresentMode",
|
|
4925
|
+
/**
|
|
4926
|
+
* Emitted when a user requests the full height lazy load data.
|
|
4927
|
+
* @version SDK : 1.39.0 | ThoughtSpot : 10.10.0.cl
|
|
4928
|
+
* @hidden
|
|
4929
|
+
*/
|
|
4930
|
+
RequestVisibleEmbedCoordinates = "requestVisibleEmbedCoordinates",
|
|
4931
|
+
/**
|
|
4932
|
+
* Emitted when Spotter response is text data
|
|
4933
|
+
* @example
|
|
4934
|
+
* ```js
|
|
4935
|
+
* spotterEmbed.on(EmbedEvent.SpotterData, (payload) => {
|
|
4936
|
+
* console.log('payload', payload);
|
|
4937
|
+
* })
|
|
4938
|
+
*```
|
|
4939
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
4940
|
+
*/
|
|
4941
|
+
SpotterData = "SpotterData",
|
|
4942
|
+
/**
|
|
4943
|
+
* Emitted when user opens up the worksheet preview modal in Spotter embed.
|
|
4944
|
+
* @example
|
|
4945
|
+
* ```js
|
|
4946
|
+
* spotterEmbed.on(EmbedEvent.PreviewSpotterData, (payload) => {
|
|
4947
|
+
* console.log('payload', payload);
|
|
4948
|
+
* })
|
|
4949
|
+
*```
|
|
4950
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
4951
|
+
*/
|
|
4952
|
+
PreviewSpotterData = "PreviewSpotterData",
|
|
4953
|
+
/**
|
|
4954
|
+
* Emitted when the Spotter query is triggered in Spotter embed.
|
|
4955
|
+
* @example
|
|
4956
|
+
* ```js
|
|
4957
|
+
* spotterEmbed.on(EmbedEvent.SpotterQueryTriggered, (payload) => {
|
|
4958
|
+
* console.log('payload', payload);
|
|
4959
|
+
* })
|
|
4960
|
+
*```
|
|
4961
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
4962
|
+
*/
|
|
4963
|
+
SpotterQueryTriggered = "SpotterQueryTriggered",
|
|
4964
|
+
/**
|
|
4965
|
+
* Emitted when the last Spotter query is edited in Spotter embed.
|
|
4966
|
+
* @example
|
|
4967
|
+
* ```js
|
|
4968
|
+
* spotterEmbed.on(EmbedEvent.LastPromptEdited, (payload) => {
|
|
4969
|
+
* console.log('payload', payload);
|
|
4970
|
+
* })
|
|
4971
|
+
*```
|
|
4972
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
4973
|
+
*/
|
|
4974
|
+
LastPromptEdited = "LastPromptEdited",
|
|
4975
|
+
/**
|
|
4976
|
+
* Emitted when the last Spotter query is deleted in Spotter embed.
|
|
4977
|
+
* @example
|
|
4978
|
+
* ```js
|
|
4979
|
+
* spotterEmbed.on(EmbedEvent.LastPromptDeleted, (payload) => {
|
|
4980
|
+
* console.log('payload', payload);
|
|
4981
|
+
* })
|
|
4982
|
+
*```
|
|
4983
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
4984
|
+
*/
|
|
4985
|
+
LastPromptDeleted = "LastPromptDeleted",
|
|
4986
|
+
/**
|
|
4987
|
+
* Emitted when the coversation is reset in spotter embed.
|
|
4988
|
+
* @example
|
|
4989
|
+
* ```js
|
|
4990
|
+
* spotterEmbed.on(EmbedEvent.ResetSpotterConversation, (payload) => {
|
|
4991
|
+
* console.log('payload', payload);
|
|
4992
|
+
* })
|
|
4993
|
+
*```
|
|
4994
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
4995
|
+
*/
|
|
4996
|
+
ResetSpotterConversation = "ResetSpotterConversation",
|
|
4997
|
+
/**
|
|
4998
|
+
* Emitted when the *Spotter* is initialized.
|
|
4999
|
+
* @example
|
|
5000
|
+
* ```js
|
|
5001
|
+
* spotterEmbed.on(EmbedEvent.SpotterInit, (payload) => {
|
|
5002
|
+
* console.log('payload', payload);
|
|
5003
|
+
* })
|
|
5004
|
+
*```
|
|
5005
|
+
* @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
|
|
5006
|
+
*/
|
|
5007
|
+
SpotterInit = "spotterInit"
|
|
4743
5008
|
}
|
|
4744
5009
|
/**
|
|
4745
5010
|
* Event types that can be triggered by the host application
|
|
@@ -4757,7 +5022,7 @@ export declare enum EmbedEvent {
|
|
|
4757
5022
|
* // create the liveboard embed.
|
|
4758
5023
|
*
|
|
4759
5024
|
* liveboardEmbed.trigger(HostEvent.UpdateRuntimeFilters, [
|
|
4760
|
-
* { columnName: 'state, operator: RuntimeFilterOp.EQ, values: [
|
|
5025
|
+
* { columnName: 'state', operator: RuntimeFilterOp.EQ, values: ["california"]}
|
|
4761
5026
|
* ]);
|
|
4762
5027
|
* ```
|
|
4763
5028
|
* @example
|
|
@@ -4827,6 +5092,7 @@ export declare enum HostEvent {
|
|
|
4827
5092
|
* done automatically on the most popular column.
|
|
4828
5093
|
* @param - vizId [TS >= 9.8.0] - Optional. The GUID of the visualization to drill
|
|
4829
5094
|
* in case of a Liveboard.
|
|
5095
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
4830
5096
|
* @example
|
|
4831
5097
|
* ```js
|
|
4832
5098
|
* searchEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
|
|
@@ -4965,12 +5231,12 @@ export declare enum HostEvent {
|
|
|
4965
5231
|
* Works with Search and Liveboard embed.
|
|
4966
5232
|
* @param - { columnId: string,
|
|
4967
5233
|
* name: string,
|
|
4968
|
-
* type:
|
|
4969
|
-
* dataType:
|
|
5234
|
+
* type: ATTRIBUTE/MEASURE,
|
|
5235
|
+
* dataType: INT64/CHAR/DATE }
|
|
4970
5236
|
* @example
|
|
4971
5237
|
* ```js
|
|
4972
5238
|
* searchEmbed.trigger(HostEvent.OpenFilter,
|
|
4973
|
-
* {column: { columnId: '<column-GUID>', name: 'column name', type: '
|
|
5239
|
+
* {column: { columnId: '<column-GUID>', name: 'column name', type: 'ATTRIBUTE', dataType: 'INT64'}})
|
|
4974
5240
|
* ```
|
|
4975
5241
|
* @example
|
|
4976
5242
|
* ```js
|
|
@@ -5028,6 +5294,7 @@ export declare enum HostEvent {
|
|
|
5028
5294
|
* @param
|
|
5029
5295
|
* `vizId`- GUID of the saved Answer or visualization to pin to a Liveboard.
|
|
5030
5296
|
* Optional when pinning a new chart or table generated from a Search query.
|
|
5297
|
+
* **Required** in Spotter Embed.
|
|
5031
5298
|
* @param
|
|
5032
5299
|
* `liveboardID` - GUID of the Liveboard to pin an Answer. If there is no Liveboard,
|
|
5033
5300
|
* specify the `newLiveboardName` parameter to create a new Liveboard.
|
|
@@ -5075,6 +5342,12 @@ export declare enum HostEvent {
|
|
|
5075
5342
|
* ```js
|
|
5076
5343
|
* appEmbed.trigger(HostEvent.Pin)
|
|
5077
5344
|
* ```
|
|
5345
|
+
* @example
|
|
5346
|
+
* ```js
|
|
5347
|
+
* const pinResponse = await spotterEmbed.trigger(HostEvent.Pin, {
|
|
5348
|
+
* vizId:'730496d6-6903-4601-937e-2c691821af3c'
|
|
5349
|
+
* });
|
|
5350
|
+
* ```
|
|
5078
5351
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
5079
5352
|
*/
|
|
5080
5353
|
Pin = "pin",
|
|
@@ -5139,12 +5412,21 @@ export declare enum HostEvent {
|
|
|
5139
5412
|
* Trigger the **Download PDF** action on an embedded Liveboard,
|
|
5140
5413
|
* visualization or Answer.
|
|
5141
5414
|
*
|
|
5415
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5416
|
+
*
|
|
5142
5417
|
* **NOTE**: The **Download** > **PDF** action is available on
|
|
5143
5418
|
* visualizations and Answers if the data is in tabular format.
|
|
5144
5419
|
* @example
|
|
5145
5420
|
* ```js
|
|
5146
5421
|
* liveboardEmbed.trigger(HostEvent.DownloadAsPdf)
|
|
5147
5422
|
* ```
|
|
5423
|
+
* @example
|
|
5424
|
+
* ```js
|
|
5425
|
+
* spotterEmbed.trigger(HostEvent.DownloadAsPdf, {
|
|
5426
|
+
* vizId:'730496d6-6903-4601-937e-2c691821af3c'
|
|
5427
|
+
* });
|
|
5428
|
+
* ```
|
|
5429
|
+
*
|
|
5148
5430
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
5149
5431
|
*/
|
|
5150
5432
|
DownloadAsPdf = "downloadAsPdf",
|
|
@@ -5168,6 +5450,12 @@ export declare enum HostEvent {
|
|
|
5168
5450
|
* ```js
|
|
5169
5451
|
* searchEmbed.trigger(HostEvent.MakeACopy)
|
|
5170
5452
|
* ```
|
|
5453
|
+
* @example
|
|
5454
|
+
* ```js
|
|
5455
|
+
* const pinResponse = await spotterEmbed.trigger(HostEvent.MakeACopy, {
|
|
5456
|
+
* vizId:'730496d6-6903-4601-937e-2c691821af3c'
|
|
5457
|
+
* });
|
|
5458
|
+
* ```
|
|
5171
5459
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
5172
5460
|
*/
|
|
5173
5461
|
MakeACopy = "makeACopy",
|
|
@@ -5240,6 +5528,8 @@ export declare enum HostEvent {
|
|
|
5240
5528
|
* This event is not supported in visualization embed and search embed.
|
|
5241
5529
|
* @param - object - To trigger the action for a specific visualization
|
|
5242
5530
|
* in Liveboard embed, pass in `vizId` as a key.
|
|
5531
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5532
|
+
*
|
|
5243
5533
|
* @example
|
|
5244
5534
|
* ```js
|
|
5245
5535
|
* liveboardEmbed.trigger(HostEvent.Edit)
|
|
@@ -5248,6 +5538,18 @@ export declare enum HostEvent {
|
|
|
5248
5538
|
* liveboardEmbed.trigger(HostEvent.Edit, {vizId:
|
|
5249
5539
|
* '730496d6-6903-4601-937e-2c691821af3c'})
|
|
5250
5540
|
* ```
|
|
5541
|
+
* @example
|
|
5542
|
+
* ```js
|
|
5543
|
+
* const pinResponse = await spotterEmbed.trigger(HostEvent.Edit, {
|
|
5544
|
+
* vizId:'730496d6-6903-4601-937e-2c691821af3c'
|
|
5545
|
+
* });
|
|
5546
|
+
* ```
|
|
5547
|
+
* @example
|
|
5548
|
+
* ```js
|
|
5549
|
+
* const editResponse = await spotterEmbed.trigger(HostEvent.Edit, {
|
|
5550
|
+
* vizId:'730496d6-6903-4601-937e-2c691821af3c'
|
|
5551
|
+
* });
|
|
5552
|
+
* ```
|
|
5251
5553
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
5252
5554
|
*/
|
|
5253
5555
|
Edit = "edit",
|
|
@@ -5295,6 +5597,16 @@ export declare enum HostEvent {
|
|
|
5295
5597
|
* );
|
|
5296
5598
|
* })
|
|
5297
5599
|
* ```
|
|
5600
|
+
* @example
|
|
5601
|
+
* ```js
|
|
5602
|
+
* spotterEmbed.trigger(HostEvent.GetTML, {
|
|
5603
|
+
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
5604
|
+
* }).then((tml) => {
|
|
5605
|
+
* console.log(
|
|
5606
|
+
* tml.answer.search_query // TML representation of the search query
|
|
5607
|
+
* );
|
|
5608
|
+
* })
|
|
5609
|
+
* ```
|
|
5298
5610
|
* @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1.sw
|
|
5299
5611
|
* @important
|
|
5300
5612
|
*/
|
|
@@ -5358,6 +5670,7 @@ export declare enum HostEvent {
|
|
|
5358
5670
|
/**
|
|
5359
5671
|
* Trigger the **Download** action on charts in
|
|
5360
5672
|
* the embedded view.
|
|
5673
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5361
5674
|
* @example
|
|
5362
5675
|
* ```js
|
|
5363
5676
|
* liveboardEmbed.trigger(HostEvent.Download, {vizId:
|
|
@@ -5366,6 +5679,11 @@ export declare enum HostEvent {
|
|
|
5366
5679
|
* ```js
|
|
5367
5680
|
* embed.trigger(HostEvent.Download)
|
|
5368
5681
|
* ```
|
|
5682
|
+
* ```js
|
|
5683
|
+
* spotterEmbed.trigger(HostEvent.Download, {
|
|
5684
|
+
* vizId:'730496d6-6903-4601-937e-2c691821af3c'
|
|
5685
|
+
* });
|
|
5686
|
+
* ```
|
|
5369
5687
|
* @deprecated from SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl ,9.4.1.sw
|
|
5370
5688
|
* Use {@link DownloadAsPng}
|
|
5371
5689
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
@@ -5382,13 +5700,19 @@ export declare enum HostEvent {
|
|
|
5382
5700
|
* vizEmbed.trigger(HostEvent.DownloadAsPng)
|
|
5383
5701
|
*
|
|
5384
5702
|
* searchEmbed.trigger(HostEvent.DownloadAsPng)
|
|
5703
|
+
*
|
|
5704
|
+
* spotterEmbed.trigger(HostEvent.DownloadAsPng, {
|
|
5705
|
+
* vizId:"730496d6-6903-4601-937e-2c691821af3c"
|
|
5706
|
+
* })
|
|
5385
5707
|
* ```
|
|
5708
|
+
*
|
|
5386
5709
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.1.sw
|
|
5387
5710
|
*/
|
|
5388
5711
|
DownloadAsPng = "downloadAsPng",
|
|
5389
5712
|
/**
|
|
5390
5713
|
* Trigger the **Download** > **CSV** action on tables in
|
|
5391
5714
|
* the embedded view.
|
|
5715
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5392
5716
|
* @example
|
|
5393
5717
|
* ```js
|
|
5394
5718
|
* liveboardEmbed.trigger(HostEvent.DownloadAsCsv, {vizId:
|
|
@@ -5400,12 +5724,18 @@ export declare enum HostEvent {
|
|
|
5400
5724
|
* ```js
|
|
5401
5725
|
* searchEmbed.trigger(HostEvent.DownloadAsCsv)
|
|
5402
5726
|
* ```
|
|
5727
|
+
* ```js
|
|
5728
|
+
* spotterEmbed.trigger(HostEvent.DownloadAsCsv, {
|
|
5729
|
+
* vizId:"730496d6-6903-4601-937e-2c691821af3c"
|
|
5730
|
+
* })
|
|
5731
|
+
* ```
|
|
5403
5732
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
5404
5733
|
*/
|
|
5405
5734
|
DownloadAsCsv = "downloadAsCSV",
|
|
5406
5735
|
/**
|
|
5407
5736
|
* Trigger the **Download** > **XLSX** action on tables
|
|
5408
5737
|
* in the embedded view.
|
|
5738
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5409
5739
|
* @example
|
|
5410
5740
|
* ```js
|
|
5411
5741
|
* liveboardEmbed.trigger(HostEvent.DownloadAsXlsx, {vizId:
|
|
@@ -5417,6 +5747,11 @@ export declare enum HostEvent {
|
|
|
5417
5747
|
* ```js
|
|
5418
5748
|
* searchEmbed.trigger(HostEvent.DownloadAsXlsx)
|
|
5419
5749
|
* ```
|
|
5750
|
+
* ```js
|
|
5751
|
+
* spotterEmbed.trigger(HostEvent.downloadAsXLSX, {
|
|
5752
|
+
* vizId:"730496d6-6903-4601-937e-2c691821af3c"
|
|
5753
|
+
* })
|
|
5754
|
+
* ```
|
|
5420
5755
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
5421
5756
|
*/
|
|
5422
5757
|
DownloadAsXlsx = "downloadAsXLSX",
|
|
@@ -5436,6 +5771,7 @@ export declare enum HostEvent {
|
|
|
5436
5771
|
/**
|
|
5437
5772
|
* Trigger the **Save** action on a Liveboard or Answer.
|
|
5438
5773
|
* Saves the changes.
|
|
5774
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5439
5775
|
* @example
|
|
5440
5776
|
* ```js
|
|
5441
5777
|
* liveboardEmbed.trigger(HostEvent.Save)
|
|
@@ -5443,6 +5779,11 @@ export declare enum HostEvent {
|
|
|
5443
5779
|
* ```js
|
|
5444
5780
|
* searchEmbed.trigger(HostEvent.Save)
|
|
5445
5781
|
* ```
|
|
5782
|
+
* ```js
|
|
5783
|
+
* spotterEmbed.trigger(HostEvent.Save, {
|
|
5784
|
+
* vizId:"730496d6-6903-4601-937e-2c691821af3c"
|
|
5785
|
+
* })
|
|
5786
|
+
* ```
|
|
5446
5787
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
5447
5788
|
*/
|
|
5448
5789
|
Save = "save",
|
|
@@ -5726,7 +6067,7 @@ export declare enum HostEvent {
|
|
|
5726
6067
|
ResetLiveboardPersonalisedView = "ResetLiveboardPersonalisedView",
|
|
5727
6068
|
/**
|
|
5728
6069
|
* Triggers an action to update Parameter values on embedded
|
|
5729
|
-
* Answers and
|
|
6070
|
+
* Answers, Liveboard and Spotter answer in Edit mode.
|
|
5730
6071
|
*
|
|
5731
6072
|
* @example
|
|
5732
6073
|
* ```js
|
|
@@ -5740,11 +6081,19 @@ export declare enum HostEvent {
|
|
|
5740
6081
|
UpdateParameters = "UpdateParameters",
|
|
5741
6082
|
/**
|
|
5742
6083
|
* Triggers GetParameters to fetch the runtime Parameters.
|
|
6084
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5743
6085
|
* ```js
|
|
5744
6086
|
* liveboardEmbed.trigger(HostEvent.GetParameters).then((parameter) => {
|
|
5745
6087
|
* console.log('parameters', parameter);
|
|
5746
6088
|
* });
|
|
5747
6089
|
*```
|
|
6090
|
+
*```js
|
|
6091
|
+
* spotterEmbed.trigger(HostEvent.GetParameters, {
|
|
6092
|
+
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
6093
|
+
* }).then((parameter) => {
|
|
6094
|
+
* console.log('parameters', parameter);
|
|
6095
|
+
* });
|
|
6096
|
+
*```
|
|
5748
6097
|
* @version SDK: 1.29.0 | ThoughtSpot: 10.1.0.cl, 10.1.0.sw
|
|
5749
6098
|
*/
|
|
5750
6099
|
GetParameters = "GetParameters",
|
|
@@ -5776,7 +6125,7 @@ export declare enum HostEvent {
|
|
|
5776
6125
|
* @param - optional attributes to set Answer properties.
|
|
5777
6126
|
* `name` - Name string for the Answer.
|
|
5778
6127
|
* `description` - Description text for the Answer.
|
|
5779
|
-
*
|
|
6128
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5780
6129
|
* @example
|
|
5781
6130
|
* ```js
|
|
5782
6131
|
* const saveAnswerResponse = await searchEmbed.trigger(HostEvent.SaveAnswer, {
|
|
@@ -5784,6 +6133,14 @@ export declare enum HostEvent {
|
|
|
5784
6133
|
* description: "Total sales by states in MidWest"
|
|
5785
6134
|
* });
|
|
5786
6135
|
* ```
|
|
6136
|
+
* @example
|
|
6137
|
+
* ```js
|
|
6138
|
+
* const saveAnswerResponse = await spotterEmbed.trigger(HostEvent.SaveAnswer, {
|
|
6139
|
+
* vizId: '730496d6-6903-4601-937e-2c691821af3c',
|
|
6140
|
+
* name: "Sales by states",
|
|
6141
|
+
* description: "Total sales by states in MidWest"
|
|
6142
|
+
* });
|
|
6143
|
+
* ```
|
|
5787
6144
|
* @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
|
|
5788
6145
|
*/
|
|
5789
6146
|
SaveAnswer = "saveAnswer",
|
|
@@ -5812,6 +6169,70 @@ export declare enum HostEvent {
|
|
|
5812
6169
|
* @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl
|
|
5813
6170
|
*/
|
|
5814
6171
|
TransformTableVizData = "TransformTableVizData",
|
|
6172
|
+
/**
|
|
6173
|
+
* Triggers a search operation with the search tokens specified in
|
|
6174
|
+
* the search query string in spotter embed.
|
|
6175
|
+
* @param - `query`: Text string in Natural Language format
|
|
6176
|
+
* @param - `executeSearch`: Boolean to execute search and update search query
|
|
6177
|
+
* @example
|
|
6178
|
+
* ```js
|
|
6179
|
+
* spotterEmbed.trigger(HostEvent.SpotterSearch, {
|
|
6180
|
+
* query: 'revenue per year',
|
|
6181
|
+
* executeSearch: true,
|
|
6182
|
+
* })
|
|
6183
|
+
* ```
|
|
6184
|
+
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
6185
|
+
*/
|
|
6186
|
+
SpotterSearch = "SpotterSearch",
|
|
6187
|
+
/**
|
|
6188
|
+
* Edits the last prompt in spotter embed.
|
|
6189
|
+
* @param - `query`: Text string
|
|
6190
|
+
* @example
|
|
6191
|
+
* ```js
|
|
6192
|
+
* spotterEmbed.trigger(HostEvent.EditLastPrompt, "revenue per year");
|
|
6193
|
+
* ```
|
|
6194
|
+
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
6195
|
+
*/
|
|
6196
|
+
EditLastPrompt = "EditLastPrompt",
|
|
6197
|
+
/**
|
|
6198
|
+
* Opens the Worksheet preview modal in Spotter Embed.
|
|
6199
|
+
* @example
|
|
6200
|
+
* ```js
|
|
6201
|
+
* spotterEmbed.trigger(HostEvent.PreviewSpotterData);
|
|
6202
|
+
* ```
|
|
6203
|
+
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
6204
|
+
*/
|
|
6205
|
+
PreviewSpotterData = "PreviewSpotterData",
|
|
6206
|
+
/**
|
|
6207
|
+
* Resets the Spotter Embed Conversation.
|
|
6208
|
+
* @example
|
|
6209
|
+
* ```js
|
|
6210
|
+
* spotterEmbed.trigger(HostEvent.ResetSpotterConversation);
|
|
6211
|
+
* ```
|
|
6212
|
+
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
6213
|
+
*/
|
|
6214
|
+
ResetSpotterConversation = "ResetSpotterConversation",
|
|
6215
|
+
/**
|
|
6216
|
+
* Deletes the last prompt in spotter embed.
|
|
6217
|
+
* @example
|
|
6218
|
+
* ```js
|
|
6219
|
+
* spotterEmbed.trigger(HostEvent.DeleteLastPrompt);
|
|
6220
|
+
* ```
|
|
6221
|
+
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
6222
|
+
*/
|
|
6223
|
+
DeleteLastPrompt = "DeleteLastPrompt",
|
|
6224
|
+
/**
|
|
6225
|
+
* Toggle the visualization to chart or table view.
|
|
6226
|
+
* @param - `vizId ` refers to the answer id in spotter Embed, it is required in spotter Embed.
|
|
6227
|
+
* @example
|
|
6228
|
+
* ```js
|
|
6229
|
+
* spotterEmbed.trigger(HostEvent.AnswerChartSwitcher, {
|
|
6230
|
+
* vizId:'b535c760-8bbe-4e6f-bb26-af56b4129a1e'
|
|
6231
|
+
* });
|
|
6232
|
+
*```
|
|
6233
|
+
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
6234
|
+
*/
|
|
6235
|
+
AnswerChartSwitcher = "answerChartSwitcher",
|
|
5815
6236
|
/**
|
|
5816
6237
|
* @hidden
|
|
5817
6238
|
* Trigger exit from presentation mode when user exits fullscreen.
|
|
@@ -5821,7 +6242,31 @@ export declare enum HostEvent {
|
|
|
5821
6242
|
*```
|
|
5822
6243
|
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
5823
6244
|
*/
|
|
5824
|
-
ExitPresentMode = "exitPresentMode"
|
|
6245
|
+
ExitPresentMode = "exitPresentMode",
|
|
6246
|
+
/**
|
|
6247
|
+
* Triggers the full height lazy load data.
|
|
6248
|
+
* @example
|
|
6249
|
+
* ```js
|
|
6250
|
+
* liveboardEmbed.on(EmbedEvent.RequestVisibleEmbedCoordinates, (payload) => {
|
|
6251
|
+
* console.log(payload);
|
|
6252
|
+
* });
|
|
6253
|
+
* ```
|
|
6254
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
6255
|
+
*
|
|
6256
|
+
* @hidden
|
|
6257
|
+
*/
|
|
6258
|
+
VisibleEmbedCoordinates = "visibleEmbedCoordinates",
|
|
6259
|
+
/**
|
|
6260
|
+
* Trigger the *Ask Spotter* action for visualizations
|
|
6261
|
+
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
6262
|
+
* @example
|
|
6263
|
+
* ```js
|
|
6264
|
+
* spotterEmbed.trigger(HostEvent.AskSpotter,
|
|
6265
|
+
* {vizId:'730496d6-6903-4601-937e-2c691821af3c'})
|
|
6266
|
+
* ```
|
|
6267
|
+
* @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
|
|
6268
|
+
*/
|
|
6269
|
+
AskSpotter = "AskSpotter"
|
|
5825
6270
|
}
|
|
5826
6271
|
/**
|
|
5827
6272
|
* The different visual modes that the data sources panel within
|
|
@@ -5917,6 +6362,7 @@ export declare enum Param {
|
|
|
5917
6362
|
Query = "query",
|
|
5918
6363
|
HideHomepageLeftNav = "hideHomepageLeftNav",
|
|
5919
6364
|
ModularHomeExperienceEnabled = "modularHomeExperience",
|
|
6365
|
+
ListPageVersion = "listpageVersion",
|
|
5920
6366
|
PendoTrackingKey = "additionalPendoKey",
|
|
5921
6367
|
LiveboardHeaderSticky = "isLiveboardHeaderSticky",
|
|
5922
6368
|
IsProductTour = "isProductTour",
|
|
@@ -5951,10 +6397,12 @@ export declare enum Param {
|
|
|
5951
6397
|
DataSourceId = "dataSourceId",
|
|
5952
6398
|
preAuthCache = "preAuthCache",
|
|
5953
6399
|
ShowSpotterLimitations = "showSpotterLimitations",
|
|
5954
|
-
CoverAndFilterOptionInPDF = "
|
|
6400
|
+
CoverAndFilterOptionInPDF = "arePdfCoverFilterPageCheckboxesEnabled",
|
|
5955
6401
|
PrimaryAction = "primaryAction",
|
|
5956
6402
|
isSpotterAgentEmbed = "isSpotterAgentEmbed",
|
|
5957
|
-
IsLiveboardStylingAndGroupingEnabled = "isLiveboardStylingAndGroupingEnabled"
|
|
6403
|
+
IsLiveboardStylingAndGroupingEnabled = "isLiveboardStylingAndGroupingEnabled",
|
|
6404
|
+
IsLazyLoadingForEmbedEnabled = "isLazyLoadingForEmbedEnabled",
|
|
6405
|
+
RootMarginForLazyLoad = "rootMarginForLazyLoad"
|
|
5958
6406
|
}
|
|
5959
6407
|
/**
|
|
5960
6408
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -7174,7 +7622,23 @@ export declare enum Action {
|
|
|
7174
7622
|
* ```
|
|
7175
7623
|
* @version SDK: 1.37.0 | ThoughtSpot Cloud: 10.8.0.cl
|
|
7176
7624
|
*/
|
|
7177
|
-
CoverAndFilterOptionInPDF = "coverAndFilterOptionInPDF"
|
|
7625
|
+
CoverAndFilterOptionInPDF = "coverAndFilterOptionInPDF",
|
|
7626
|
+
/**
|
|
7627
|
+
* Action ID for hide or disable the
|
|
7628
|
+
* Spotter in conversation training widget.
|
|
7629
|
+
* The Add to Coaching feature is currently in beta
|
|
7630
|
+
* and is disabled by default on embed deployments.
|
|
7631
|
+
* To enable this feature on your instance,
|
|
7632
|
+
* contact ThoughtSpot Support.
|
|
7633
|
+
* @example
|
|
7634
|
+
* ```js
|
|
7635
|
+
* hiddenAction: [Action.InConversationTraining]
|
|
7636
|
+
* disabledActions: [Action.InConversationTraining]
|
|
7637
|
+
*
|
|
7638
|
+
* ```
|
|
7639
|
+
* @version SDK: 1.39.0 | ThoughtSpot Cloud: 10.10.0.cl
|
|
7640
|
+
*/
|
|
7641
|
+
InConversationTraining = "InConversationTraining"
|
|
7178
7642
|
}
|
|
7179
7643
|
export interface AnswerServiceType {
|
|
7180
7644
|
getAnswer?: (offset: number, batchSize: number) => any;
|
|
@@ -8342,13 +8806,14 @@ export declare class AnswerService {
|
|
|
8342
8806
|
*
|
|
8343
8807
|
* @example
|
|
8344
8808
|
* ```js
|
|
8809
|
+
* import { getInitConfig } from '@thoughtspot/visual-embed-sdk';
|
|
8810
|
+
* // Call the getInitConfig method to retrieve the embed configuration
|
|
8345
8811
|
* const config = getInitConfig();
|
|
8812
|
+
* // Log the configuration settings
|
|
8346
8813
|
* console.log(config);
|
|
8347
8814
|
* ```
|
|
8348
|
-
*
|
|
8349
|
-
*
|
|
8350
|
-
* Returns the `EmbedConfig` object, which
|
|
8351
|
-
* contains the configuration settings used to
|
|
8815
|
+
* Returns the link:https://developers.thoughtspot.com/docs/Interface_EmbedConfig[EmbedConfig]
|
|
8816
|
+
* object, which contains the configuration settings used to
|
|
8352
8817
|
* initialize the SDK, including the following:
|
|
8353
8818
|
*
|
|
8354
8819
|
* - `thoughtSpotHost` - ThoughtSpot host URL
|
|
@@ -8357,9 +8822,10 @@ export declare class AnswerService {
|
|
|
8357
8822
|
* - `customizations` - Style, text, and icon customization settings
|
|
8358
8823
|
* that were applied during the SDK initialization.
|
|
8359
8824
|
*
|
|
8360
|
-
*
|
|
8361
|
-
*
|
|
8825
|
+
* The following JSON output shows the embed configuration
|
|
8826
|
+
* settings returned from the code in the previous example:
|
|
8362
8827
|
*
|
|
8828
|
+
* @example
|
|
8363
8829
|
* ```json
|
|
8364
8830
|
* {
|
|
8365
8831
|
* "thoughtSpotHost": "https://{ThoughtSpot-Host}",
|
|
@@ -8381,7 +8847,7 @@ export declare class AnswerService {
|
|
|
8381
8847
|
* "authTriggerContainer": "#your-own-div"
|
|
8382
8848
|
* }
|
|
8383
8849
|
* ```
|
|
8384
|
-
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.
|
|
8850
|
+
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw, and later
|
|
8385
8851
|
* @group Global methods
|
|
8386
8852
|
*/
|
|
8387
8853
|
export declare const getEmbedConfig: () => EmbedConfig;
|