@thoughtspot/visual-embed-sdk 1.10.0-alpha.1 → 1.10.0-alpha.4

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.
Files changed (57) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +21 -2
  3. package/dist/src/embed/app.d.ts +17 -3
  4. package/dist/src/embed/liveboard.d.ts +8 -0
  5. package/dist/src/embed/pinboard.d.ts +85 -0
  6. package/dist/src/embed/ts-embed.d.ts +33 -4
  7. package/dist/src/types.d.ts +188 -7
  8. package/dist/src/utils.d.ts +7 -0
  9. package/dist/tsembed.es.js +267 -27
  10. package/dist/tsembed.js +267 -27
  11. package/lib/package.json +2 -2
  12. package/lib/src/embed/app.d.ts +17 -3
  13. package/lib/src/embed/app.js +28 -9
  14. package/lib/src/embed/app.js.map +1 -1
  15. package/lib/src/embed/app.spec.js +47 -12
  16. package/lib/src/embed/app.spec.js.map +1 -1
  17. package/lib/src/embed/base.spec.js +13 -1
  18. package/lib/src/embed/base.spec.js.map +1 -1
  19. package/lib/src/embed/liveboard.d.ts +8 -0
  20. package/lib/src/embed/liveboard.js +4 -1
  21. package/lib/src/embed/liveboard.js.map +1 -1
  22. package/lib/src/embed/liveboard.spec.js +1 -1
  23. package/lib/src/embed/liveboard.spec.js.map +1 -1
  24. package/lib/src/embed/pinboard.d.ts +85 -0
  25. package/lib/src/embed/pinboard.js +107 -0
  26. package/lib/src/embed/pinboard.js.map +1 -0
  27. package/lib/src/embed/pinboard.spec.js +1 -1
  28. package/lib/src/embed/pinboard.spec.js.map +1 -1
  29. package/lib/src/embed/search.js +2 -1
  30. package/lib/src/embed/search.js.map +1 -1
  31. package/lib/src/embed/ts-embed.d.ts +33 -4
  32. package/lib/src/embed/ts-embed.js +60 -13
  33. package/lib/src/embed/ts-embed.js.map +1 -1
  34. package/lib/src/embed/ts-embed.spec.js +162 -8
  35. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  36. package/lib/src/types.d.ts +188 -7
  37. package/lib/src/types.js +165 -4
  38. package/lib/src/types.js.map +1 -1
  39. package/lib/src/utils/fetchAnswers.d.ts +3 -0
  40. package/lib/src/utils/fetchAnswers.js +49 -0
  41. package/lib/src/utils/fetchAnswers.js.map +1 -0
  42. package/lib/src/utils.d.ts +7 -0
  43. package/lib/src/utils.js +9 -0
  44. package/lib/src/utils.js.map +1 -1
  45. package/lib/src/visual-embed-sdk.d.ts +246 -14
  46. package/package.json +2 -2
  47. package/src/embed/app.spec.ts +60 -11
  48. package/src/embed/app.ts +38 -8
  49. package/src/embed/base.spec.ts +14 -0
  50. package/src/embed/liveboard.spec.ts +1 -1
  51. package/src/embed/liveboard.ts +13 -0
  52. package/src/embed/pinboard.spec.ts +1 -1
  53. package/src/embed/search.ts +4 -1
  54. package/src/embed/ts-embed.spec.ts +228 -8
  55. package/src/embed/ts-embed.ts +96 -16
  56. package/src/types.ts +197 -5
  57. package/src/utils.ts +14 -0
package/CHANGELOG.md CHANGED
@@ -8,6 +8,22 @@ This project follows Semantic Versioning.
8
8
  ### New Features
9
9
  - Events for all actions on Search Embed
10
10
 
11
+ ## 1.9.5 (04-06-2022)
12
+
13
+ ### New Features
14
+ - `locale` param to set Locale/language for the embedded view.
15
+
16
+
17
+ ## 1.9.4 (04-06-2022)
18
+
19
+ ### Fixed
20
+ - [React] `className` should be forwarded to the iframe container div.
21
+
22
+
23
+ ## 1.9.3 (03-22-2022)
24
+
25
+ ### New Features
26
+ - `disableLoginRedirect` option in `EmbedConfig`
11
27
 
12
28
  ## 1.9.2 (03-17-2022)
13
29
 
package/README.md CHANGED
@@ -25,6 +25,8 @@ The SDK is written in TypeScript and is also provided both as ES Module (ESM) an
25
25
  ```js
26
26
  // ESM via NPM
27
27
  import * as TsEmbedSDK from '@thoughtspot/visual-embed-sdk';
28
+ // OR
29
+ import { LiveboardEmbed } from '@thoughtspot/visual-embed-sdk';
28
30
 
29
31
  // NPM <script>
30
32
  <script src="https://cdn.jsdelivr.net/npm/@thoughtspot/visual-embed-sdk/dist/tsembed.js"></script>;
@@ -41,7 +43,8 @@ import {
41
43
 
42
44
  ## Live Playground
43
45
 
44
- Visit our [code playground](https://try-everywhere.thoughtspot.cloud/v2/#/everywhere).
46
+ Visit our [code playground](https://try-everywhere.thoughtspot.cloud/v2/#/everywhere). <br/><br/>
47
+ Start a [free trial](https://www.thoughtspot.com/trial?tsref=trialtse) on your own data.
45
48
 
46
49
  <br/>
47
50
 
@@ -132,10 +135,26 @@ const appEmbed = new AppEmbed(document.getElementById('ts-embed'), {
132
135
  appEmbed.render();
133
136
  ```
134
137
 
138
+ ### Triggering and Listening to events
139
+ ```js
140
+ // NPM
141
+ import { LiveboardEmbed, Page, AuthType, init, EmbedEvent, HostEvent } from '@thoughtspot/visual-embed-sdk';
142
+
143
+ // .. Do init and create a liveboardEmbed object as above.
144
+
145
+ liveboardEmbed.render();
146
+
147
+ liveboardEmbed.on(EmbedEvent.LiveboardRendered, () => {
148
+ liveboardEmbed.trigger(HostEvent.SetVisibleVizs, ['viz1', 'viz2']);
149
+ });
150
+ ```
151
+
135
152
  ## React Components
136
153
 
137
154
  All the above flavors of embedding are also provided as React components for your convenience.
138
155
  The constructor options are passed as props and the event listeners can be attached using `on<EventName>` convention.
156
+ <br/><br/>
157
+ Checkout a comprehensive working demo [here](https://codesandbox.io/s/github/ashubham/big-react-demo)
139
158
 
140
159
  ### Search Component
141
160
 
@@ -166,7 +185,7 @@ const MyComponent = ({ dataSources }) => {
166
185
  };
167
186
  ```
168
187
 
169
- ### Triggering events on React components
188
+ ### Triggering events on React components (> version 1.9.2)
170
189
 
171
190
  ```jsx
172
191
  import { HostEvent } from '@thoughtspot/visual-embed-sdk';
@@ -37,7 +37,11 @@ export declare enum Page {
37
37
  /**
38
38
  * Data management page
39
39
  */
40
- Data = "data"
40
+ Data = "data",
41
+ /**
42
+ * SpotIQ listing page
43
+ */
44
+ SpotIQ = "spotiq"
41
45
  }
42
46
  /**
43
47
  * The view configuration for full app embedding.
@@ -74,6 +78,14 @@ export interface AppViewConfig extends ViewConfig {
74
78
  * The array of GUIDs to be hidden
75
79
  */
76
80
  hideObjects?: string[];
81
+ /**
82
+ * Render liveboards using the new v2 rendering mode
83
+ * This is a transient flag which is primarily meant for internal use
84
+ * @default false
85
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl
86
+ * @hidden
87
+ */
88
+ liveboardV2?: boolean;
77
89
  }
78
90
  /**
79
91
  * Embeds full ThoughtSpot experience in a host application.
@@ -106,10 +118,12 @@ export declare class AppEmbed extends V1Embed {
106
118
  /**
107
119
  * Navigate to particular page for app embed. eg:answers/pinboards/home
108
120
  * This is used for embedding answers, pinboards, visualizations and full application only.
109
- * @param path The string, set to iframe src and navigate to new page
121
+ * @param path string | number The string, set to iframe src and navigate to new page
110
122
  * eg: appEmbed.navigateToPage('pinboards')
123
+ * When used with `noReload` this can also be a number like 1/-1 to go forward/back.
124
+ * @param noReload boolean Trigger the navigation without reloading the page (version: 1.12.0 | 8.4.0.cl)
111
125
  */
112
- navigateToPage(path: string): void;
126
+ navigateToPage(path: string | number, noReload?: boolean): void;
113
127
  /**
114
128
  * Renders the embedded application pages in the ThoughtSpot app.
115
129
  * @param renderOptions An object containing the page ID
@@ -63,6 +63,14 @@ export interface LiveboardViewConfig extends ViewConfig {
63
63
  * @hidden
64
64
  */
65
65
  preventPinboardFilterRemoval?: boolean;
66
+ /**
67
+ * Render embedded liveboards and visualizations using the new v2 rendering mode
68
+ * This is a transient flag which is primarily meant for internal use
69
+ * @default false
70
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl
71
+ * @hidden
72
+ */
73
+ liveboardV2?: boolean;
66
74
  }
67
75
  /**
68
76
  * Embed a ThoughtSpot Liveboard or visualization
@@ -0,0 +1,85 @@
1
+ /**
2
+ * Copyright (c) 2021
3
+ *
4
+ * Embed a ThoughtSpot pinboard or visualization
5
+ * https://developers.thoughtspot.com/docs/?pageid=embed-pinboard
6
+ * https://developers.thoughtspot.com/docs/?pageid=embed-a-viz
7
+ *
8
+ * @summary Pinboard & visualization embed
9
+ * @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
10
+ */
11
+ import { DOMSelector } from '../types';
12
+ import { V1Embed, ViewConfig } from './ts-embed';
13
+ /**
14
+ * The configuration for the embedded pinboard or visualization page view.
15
+ * @Category Pinboards and Charts
16
+ */
17
+ export interface PinboardViewConfig extends ViewConfig {
18
+ /**
19
+ * If set to true, the embedded object container dynamically resizes
20
+ * according to the height of the pinboard.
21
+ */
22
+ fullHeight?: boolean;
23
+ /**
24
+ * This is the minimum height(in pixels) for a full height pinboard.
25
+ * Setting this height helps resolves issues with empty pinboards and
26
+ * other screens navigable from a pinboard.
27
+ * @default 500
28
+ * * _since 1.5.0_
29
+ */
30
+ defaultHeight?: number;
31
+ /**
32
+ * If set to true, the context menu in visualizations will be enabled.
33
+ */
34
+ enableVizTransformations?: boolean;
35
+ /**
36
+ * The pinboard to display in the embedded view.
37
+ */
38
+ pinboardId: string;
39
+ /**
40
+ * The visualization within the pinboard to display.
41
+ */
42
+ vizId?: string;
43
+ /**
44
+ * If set to true, all filter chips from a
45
+ * pinboard page will be read-only (no X buttons)
46
+ */
47
+ preventPinboardFilterRemoval?: boolean;
48
+ }
49
+ /**
50
+ * Embed a ThoughtSpot pinboard or visualization
51
+ * @Category Pinboards and Charts
52
+ */
53
+ export declare class PinboardEmbed extends V1Embed {
54
+ protected viewConfig: PinboardViewConfig;
55
+ private defaultHeight;
56
+ constructor(domSelector: DOMSelector, viewConfig: PinboardViewConfig);
57
+ /**
58
+ * Construct a map of params to be passed on to the
59
+ * embedded pinboard or visualization.
60
+ */
61
+ private getEmbedParams;
62
+ /**
63
+ * Construct the URL of the embedded ThoughtSpot pinboard or visualization
64
+ * to be loaded within the iframe.
65
+ * @param pinboardId The GUID of the pinboard.
66
+ * @param vizId The optional GUID of a visualization within the pinboard.
67
+ * @param runtimeFilters A list of runtime filters to be applied to
68
+ * the pinboard or visualization on load.
69
+ */
70
+ private getIFrameSrc;
71
+ /**
72
+ * Set the iframe height as per the computed height received
73
+ * from the ThoughtSpot app.
74
+ * @param data The event payload
75
+ */
76
+ private updateIFrameHeight;
77
+ private embedIframeCenter;
78
+ private handleRouteChangeFullHeightPinboard;
79
+ /**
80
+ * Render an embedded ThoughtSpot pinboard or visualization
81
+ * @param renderOptions An object specifying the pinboard ID,
82
+ * visualization ID and the runtime filters.
83
+ */
84
+ render(): PinboardEmbed;
85
+ }
@@ -6,7 +6,11 @@
6
6
  * @summary Base classes
7
7
  * @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
8
8
  */
9
- import { DOMSelector, HostEvent, EmbedEvent, MessageCallback, Action, RuntimeFilter, EmbedConfig } from '../types';
9
+ import { DOMSelector, HostEvent, EmbedEvent, MessageCallback, Action, RuntimeFilter, EmbedConfig, MessageOptions } from '../types';
10
+ /**
11
+ * Global prefix for all Thoughtspot postHash Params.
12
+ */
13
+ export declare const THOUGHTSPOT_PARAM_PREFIX = "ts-";
10
14
  export interface LayoutConfig {
11
15
  }
12
16
  /**
@@ -21,6 +25,11 @@ export interface FrameParams {
21
25
  * The height of the iFrame (unit is pixels if numeric).
22
26
  */
23
27
  height?: number | string;
28
+ /**
29
+ * This parameters will be passed on the iframe
30
+ * as is.
31
+ */
32
+ [key: string]: string | number | boolean;
24
33
  }
25
34
  /**
26
35
  * The configuration object for an embedded view.
@@ -62,15 +71,28 @@ export interface ViewConfig {
62
71
  * @version 1.6.0 or later
63
72
  */
64
73
  visibleActions?: Action[];
74
+ /**
75
+ * Show alert messages and toast messages in the embedded view.
76
+ * @version 1.11.0 | ThoughtSpot: 8.3.0.cl
77
+ */
78
+ showAlerts?: boolean;
65
79
  /**
66
80
  * The list of runtime filters to apply to a search answer,
67
81
  * visualization, or Liveboard.
68
82
  */
69
83
  runtimeFilters?: RuntimeFilter[];
84
+ /**
85
+ * The locale/language to use for the embedded view.
86
+ * @version 1.9.4 or later
87
+ */
88
+ locale?: string;
70
89
  /**
71
90
  * This is an object (key/val) of override flags which will be applied
72
91
  * to the internal embedded object. This can be used to add any
73
92
  * URL flag.
93
+ * Warning: This option is for advanced use only and is used internally
94
+ * to control embed behavior in non-regular ways. We do not publish the
95
+ * list of supported keys and values associated with each.
74
96
  * @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl
75
97
  */
76
98
  additionalFlags?: {
@@ -183,7 +205,7 @@ export declare class TsEmbed {
183
205
  * @param url
184
206
  * @param frameOptions
185
207
  */
186
- protected renderIFrame(url: string, frameOptions: FrameParams): void;
208
+ protected renderIFrame(url: string, frameOptions?: FrameParams): void;
187
209
  /**
188
210
  * Sets the height of the iframe
189
211
  * @param height The height in pixels
@@ -227,9 +249,10 @@ export declare class TsEmbed {
227
249
  * sends an event of a particular message type to the host application.
228
250
  *
229
251
  * @param messageType The message type
230
- * @param callback A callback function
252
+ * @param callback A callback as a function
253
+ * @param options The message options
231
254
  */
232
- on(messageType: EmbedEvent, callback: MessageCallback): typeof TsEmbed.prototype;
255
+ on(messageType: EmbedEvent, callback: MessageCallback, options?: MessageOptions): typeof TsEmbed.prototype;
233
256
  /**
234
257
  * Triggers an event on specific Port registered against
235
258
  * for the EmbedEvent
@@ -250,6 +273,12 @@ export declare class TsEmbed {
250
273
  * @param args
251
274
  */
252
275
  render(): TsEmbed;
276
+ /**
277
+ * Get the Post Url Params for THOUGHTSPOT from the current
278
+ * host app URL.
279
+ * THOUGHTSPOT URL params starts with a prefix "ts-"
280
+ */
281
+ getThoughtSpotPostUrlParams(): string;
253
282
  }
254
283
  /**
255
284
  * Base class for embedding v1 experience
@@ -140,11 +140,31 @@ export interface EmbedConfig {
140
140
  */
141
141
  customCssUrl?: string;
142
142
  }
143
+ /**
144
+ * MessagePayload: Embed event payload: message type, data and status (start/end)
145
+ */
143
146
  export declare type MessagePayload = {
144
147
  type: string;
145
148
  data: any;
149
+ status?: string;
150
+ };
151
+ /**
152
+ * MessageOptions: By Providing options, getting specific event start / end based on option
153
+ */
154
+ export declare type MessageOptions = {
155
+ start?: boolean;
146
156
  };
157
+ /**
158
+ * MessageCallback: Embed event message callback
159
+ */
147
160
  export declare type MessageCallback = (payload: MessagePayload, responder?: (data: any) => void) => void;
161
+ /**
162
+ * MessageCallbackObj: contains message options & callback function
163
+ */
164
+ export declare type MessageCallbackObj = {
165
+ options: MessageOptions;
166
+ callback: MessageCallback;
167
+ };
148
168
  export declare type GenericCallbackFn = (...args: any[]) => any;
149
169
  export declare type QueryParams = {
150
170
  [key: string]: string;
@@ -292,6 +312,12 @@ export declare enum EmbedEvent {
292
312
  * @version 1.5.0 or later
293
313
  */
294
314
  VizPointDoubleClick = "vizPointDoubleClick",
315
+ /**
316
+ * A click has been triggered on table/chart
317
+ * @return ContextMenuInputPoints - data point that is clicked
318
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl
319
+ */
320
+ VizPointClick = "vizPointClick",
295
321
  /**
296
322
  * An error has occurred.
297
323
  * @return error - An error object or message
@@ -356,7 +382,102 @@ export declare enum EmbedEvent {
356
382
  * rendered liveboard
357
383
  * @version 1.9.1 or later
358
384
  */
359
- LiveboardRendered = "PinboardRendered"
385
+ LiveboardRendered = "PinboardRendered",
386
+ /**
387
+ * Emitted when answer is saved in the app
388
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl
389
+ */
390
+ Save = "save",
391
+ /**
392
+ * Emitted when the download action is triggered on an answer
393
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl
394
+ */
395
+ Download = "download",
396
+ /**
397
+ * Emitted when the Download as PDF action is triggered on an answer
398
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl
399
+ */
400
+ DownloadAsPdf = "downloadAsPdf",
401
+ /**
402
+ * Emitted when the Download as CSV action is triggered on an answer
403
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl
404
+ */
405
+ DownloadAsCsv = "downloadAsCsv",
406
+ /**
407
+ * Emitted when the Download as XLSX action is triggered on an answer
408
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl
409
+ */
410
+ DownloadAsXlsx = "downloadAsXlsx",
411
+ /**
412
+ * Emitted when an answer is deleted in the app
413
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl
414
+ */
415
+ AnswerDelete = "answerDelete",
416
+ /**
417
+ * Emitted when an answer is pinned to a Liveboard
418
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl
419
+ */
420
+ Pin = "pin",
421
+ /**
422
+ * Emitted when SpotIQ analysis is triggered
423
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl
424
+ */
425
+ SpotIQAnalyze = "spotIQAnalyze",
426
+ /**
427
+ * Emitted when a user shares an object with another user or group
428
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl
429
+ */
430
+ Share = "share",
431
+ /**
432
+ * Emitted when a user clicks the Include action to include a specific value or data on a chart or table
433
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl
434
+ */
435
+ DrillInclude = "context-menu-item-include",
436
+ /**
437
+ * Emitted when a user clicks the Exclude action to exclude a specific value or data on a chart or table
438
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl
439
+ */
440
+ DrillExclude = "context-menu-item-exclude",
441
+ /**
442
+ * Emitted when copied column value on the app
443
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl
444
+ */
445
+ CopyToClipboard = "context-menu-item-copy-to-clipboard",
446
+ /**
447
+ * Emitted when a user clicks the Update TML action
448
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl
449
+ */
450
+ UpdateTML = "updateTSL",
451
+ /**
452
+ * Emitted when a user clicks the Edit TML action
453
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl
454
+ */
455
+ EditTML = "editTSL",
456
+ /**
457
+ * Emitted when ExportTML trigger in answer on the app
458
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl
459
+ */
460
+ ExportTML = "exportTSL",
461
+ /**
462
+ * Emitted when an answer is saved as a view
463
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl
464
+ */
465
+ SaveAsView = "saveAsView",
466
+ /**
467
+ * Emitted when copy of existing answer on the app
468
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl
469
+ */
470
+ CopyAEdit = "copyAEdit",
471
+ /**
472
+ * Emitted when a user clicks Show underlying data on an answe
473
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl
474
+ */
475
+ ShowUnderlyingData = "showUnderlyingData",
476
+ /**
477
+ * Emitted when an answer is switched to a chart or table view
478
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl
479
+ */
480
+ AnswerChartSwitcher = "answerChartSwitcher"
360
481
  }
361
482
  /**
362
483
  * Event types that can be triggered by the host application
@@ -404,7 +525,14 @@ export declare enum HostEvent {
404
525
  * @param - {@link RuntimeFilter}[] an array of {@link RuntimeFilter} Types.
405
526
  * @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl
406
527
  */
407
- UpdateRuntimeFilters = "UpdateRuntimeFilters"
528
+ UpdateRuntimeFilters = "UpdateRuntimeFilters",
529
+ /**
530
+ * Navigate to a specific page in App embed without any reload.
531
+ * This is the same as calling `appEmbed.navigateToPage(path, true)`
532
+ * @param path - the path to navigate to (can be a number[1/-1] to go forward/back)
533
+ * @version SDK: 1.12.0 | ThoughtSpot: 8.4.0.cl
534
+ */
535
+ Navigate = "Navigate"
408
536
  }
409
537
  /**
410
538
  * The different visual modes that the data sources panel within
@@ -455,7 +583,10 @@ export declare enum Param {
455
583
  VisibleActions = "visibleAction",
456
584
  CustomCSSUrl = "customCssUrl",
457
585
  DisableLoginRedirect = "disableLoginRedirect",
458
- visibleVizs = "pinboardVisibleVizs"
586
+ visibleVizs = "pinboardVisibleVizs",
587
+ LiveboardV2Enabled = "isPinboardV2Enabled",
588
+ ShowAlerts = "showAlerts",
589
+ Locale = "locale"
459
590
  }
460
591
  /**
461
592
  * The list of actions that can be performed on visual ThoughtSpot
@@ -463,30 +594,57 @@ export declare enum Param {
463
594
  */
464
595
  export declare enum Action {
465
596
  Save = "save",
597
+ /**
598
+ * @hidden
599
+ */
466
600
  Update = "update",
601
+ /**
602
+ * @hidden
603
+ */
467
604
  SaveUntitled = "saveUntitled",
468
605
  SaveAsView = "saveAsView",
469
606
  MakeACopy = "makeACopy",
470
607
  EditACopy = "editACopy",
471
608
  CopyLink = "embedDocument",
609
+ /**
610
+ * @hidden
611
+ */
472
612
  ResetLayout = "resetLayout",
473
613
  Schedule = "subscription",
474
614
  SchedulesList = "schedule-list",
475
615
  Share = "share",
476
616
  AddFilter = "addFilter",
477
617
  ConfigureFilter = "configureFilter",
618
+ /**
619
+ * @hidden
620
+ */
478
621
  AddFormula = "addFormula",
622
+ /**
623
+ * @hidden
624
+ */
479
625
  SearchOnTop = "searchOnTop",
480
626
  SpotIQAnalyze = "spotIQAnalyze",
627
+ /**
628
+ * @hidden
629
+ */
481
630
  ExplainInsight = "explainInsight",
631
+ /**
632
+ * @hidden
633
+ */
482
634
  SpotIQFollow = "spotIQFollow",
483
635
  ShareViz = "shareViz",
636
+ /**
637
+ * @hidden
638
+ */
484
639
  ReplaySearch = "replaySearch",
485
640
  ShowUnderlyingData = "showUnderlyingData",
486
641
  Download = "download",
487
642
  DownloadAsPdf = "downloadAsPdf",
488
643
  DownloadAsCsv = "downloadAsCSV",
489
644
  DownloadAsXlsx = "downloadAsXLSX",
645
+ /**
646
+ * @hidden
647
+ */
490
648
  DownloadTrace = "downloadTrace",
491
649
  ExportTML = "exportTSL",
492
650
  ImportTML = "importTSL",
@@ -497,18 +655,39 @@ export declare enum Action {
497
655
  Edit = "edit",
498
656
  EditTitle = "editTitle",
499
657
  Remove = "delete",
658
+ /**
659
+ * @hidden
660
+ */
500
661
  Ungroup = "ungroup",
662
+ /**
663
+ * @hidden
664
+ */
501
665
  Describe = "describe",
666
+ /**
667
+ * @hidden
668
+ */
502
669
  Relate = "relate",
670
+ /**
671
+ * @hidden
672
+ */
503
673
  CustomizeHeadlines = "customizeHeadlines",
504
674
  /**
505
675
  * @hidden
506
676
  */
507
677
  PinboardInfo = "pinboardInfo",
508
678
  LiveboardInfo = "pinboardInfo",
679
+ /**
680
+ * @hidden
681
+ */
509
682
  SendAnswerFeedback = "sendFeedback",
683
+ /**
684
+ * @hidden
685
+ */
510
686
  DownloadEmbraceQueries = "downloadEmbraceQueries",
511
687
  Pin = "pin",
688
+ /**
689
+ * @hidden
690
+ */
512
691
  AnalysisInfo = "analysisInfo",
513
692
  Subscription = "subscription",
514
693
  Explore = "explore",
@@ -516,16 +695,18 @@ export declare enum Action {
516
695
  DrillExclude = "context-menu-item-exclude",
517
696
  CopyToClipboard = "context-menu-item-copy-to-clipboard",
518
697
  CopyAndEdit = "context-menu-item-copy-and-edit",
698
+ /**
699
+ * @hidden
700
+ */
519
701
  DrillEdit = "context-menu-item-edit",
520
702
  EditMeasure = "context-menu-item-edit-measure",
521
703
  Separator = "context-menu-item-separator",
704
+ /**
705
+ * @hidden
706
+ */
522
707
  DrillDown = "DRILL",
523
708
  RequestAccess = "requestAccess",
524
709
  QueryDetailsButtons = "queryDetailsButtons",
525
- /**
526
- * @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl
527
- */
528
- Monitor = "createMonitor",
529
710
  /**
530
711
  * @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl
531
712
  */
@@ -34,3 +34,10 @@ export declare const getCssDimension: (value: number | string) => string;
34
34
  export declare const appendToUrlHash: (url: string, stringToAppend: string) => string;
35
35
  export declare const getEncodedQueryParamsString: (queryString: string) => string;
36
36
  export declare const getOffsetTop: (element: any) => any;
37
+ export declare const embedEventStatus: {
38
+ START: string;
39
+ END: string;
40
+ };
41
+ export declare const setAttributes: (element: HTMLElement, attributes: {
42
+ [key: string]: string | number | boolean;
43
+ }) => void;