Skip to content

Commit 1698e11

Browse files
elizebeth-shajiruchI9897
authored andcommitted
[SCAL-276944] Added Hostevent and Embedevent for AI highlights (#336)
1 parent 5201ec1 commit 1698e11

File tree

2 files changed

+1983
-1904
lines changed

2 files changed

+1983
-1904
lines changed

src/types.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2302,6 +2302,17 @@ export enum EmbedEvent {
23022302
*```
23032303
*/
23042304
AnswerDelete = 'answerDelete',
2305+
/**
2306+
* Emitted when the AI Highlights action is triggered on a Liveboard
2307+
* @version SDK: 1.44.0 | ThoughtSpot: 10.15.0.cl
2308+
* @example
2309+
*```js
2310+
* liveboardEmbed.on(EmbedEvent.AIHighlights, (payload) => {
2311+
* console.log('AI Highlights', payload);
2312+
* })
2313+
*```
2314+
*/
2315+
AIHighlights = 'AIHighlights',
23052316
/**
23062317
* Emitted when a user initiates the Pin action to
23072318
* add an Answer to a Liveboard.
@@ -3402,6 +3413,16 @@ export enum HostEvent {
34023413
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
34033414
*/
34043415
DownloadAsPdf = 'downloadAsPdf',
3416+
/**
3417+
* Trigger the **AI Highlights** action on an embedded Liveboard
3418+
*
3419+
* @example
3420+
* ```js
3421+
* liveboardEmbed.trigger(HostEvent.AIHighlights)
3422+
* ```
3423+
* @version SDK: 1.44.0 | ThoughtSpot: 10.15.0.cl
3424+
*/
3425+
AIHighlights = 'AIHighlights',
34053426
/**
34063427
* Trigger the **Make a copy** action on a Liveboard,
34073428
* visualization, or Answer page.

0 commit comments

Comments
 (0)