@thoughtspot/visual-embed-sdk 1.22.0 → 1.23.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/css-variables.d.ts +1 -1
- package/cjs/src/css-variables.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.d.ts +6 -0
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +4 -1
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +12 -0
- package/cjs/src/embed/liveboard.spec.js.map +1 -1
- package/cjs/src/embed/sage.d.ts +1 -0
- package/cjs/src/embed/sage.d.ts.map +1 -1
- package/cjs/src/embed/sage.js +1 -0
- package/cjs/src/embed/sage.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +20 -1
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +69 -0
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/types.d.ts +890 -210
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +830 -194
- package/cjs/src/types.js.map +1 -1
- package/dist/src/css-variables.d.ts +1 -1
- package/dist/src/css-variables.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +6 -0
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/sage.d.ts +1 -0
- package/dist/src/embed/sage.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/types.d.ts +890 -210
- package/dist/src/types.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +856 -197
- package/dist/tsembed-react.js +837 -188
- package/dist/tsembed.es.js +856 -197
- package/dist/tsembed.js +837 -188
- package/dist/visual-embed-sdk-react-full.d.ts +898 -211
- package/dist/visual-embed-sdk-react.d.ts +898 -211
- package/dist/visual-embed-sdk.d.ts +898 -211
- package/lib/package.json +1 -1
- package/lib/src/css-variables.d.ts +1 -1
- package/lib/src/css-variables.d.ts.map +1 -1
- package/lib/src/embed/liveboard.d.ts +6 -0
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +4 -1
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +12 -0
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/embed/sage.d.ts +1 -0
- package/lib/src/embed/sage.d.ts.map +1 -1
- package/lib/src/embed/sage.js +1 -0
- package/lib/src/embed/sage.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +20 -1
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +69 -0
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/types.d.ts +890 -210
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +830 -194
- package/lib/src/types.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +898 -211
- package/package.json +1 -1
- package/src/css-variables.ts +1 -1
- package/src/embed/liveboard.spec.ts +16 -0
- package/src/embed/liveboard.ts +10 -0
- package/src/embed/sage.ts +1 -0
- package/src/embed/ts-embed.spec.ts +79 -0
- package/src/embed/ts-embed.ts +26 -1
- package/src/types.ts +903 -210
package/cjs/src/types.js
CHANGED
|
@@ -167,7 +167,7 @@ var AuthType;
|
|
|
167
167
|
* .then((data) => data.token);
|
|
168
168
|
* }
|
|
169
169
|
* ```
|
|
170
|
-
* @version SDK: 1.22.0| ThouhgtSpot: 9.3.0.cl, 9.5.1
|
|
170
|
+
* @version SDK: 1.22.0| ThouhgtSpot: 9.3.0.cl, 9.5.1.sw
|
|
171
171
|
*/
|
|
172
172
|
AuthType["TrustedAuthTokenCookieless"] = "AuthServerCookieless";
|
|
173
173
|
/**
|
|
@@ -317,7 +317,7 @@ var EmbedEvent;
|
|
|
317
317
|
* One or more data columns have been selected.
|
|
318
318
|
*
|
|
319
319
|
* @returns columnIds - the list of columns
|
|
320
|
-
* @version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1
|
|
320
|
+
* @version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
|
|
321
321
|
*/
|
|
322
322
|
EmbedEvent["AddRemoveColumns"] = "addRemoveColumns";
|
|
323
323
|
/**
|
|
@@ -350,7 +350,7 @@ var EmbedEvent;
|
|
|
350
350
|
* });
|
|
351
351
|
* ```
|
|
352
352
|
* @return viz, clickedPoint - metadata about point that is clicked
|
|
353
|
-
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1
|
|
353
|
+
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
354
354
|
* @important
|
|
355
355
|
*/
|
|
356
356
|
EmbedEvent["VizPointClick"] = "vizPointClick";
|
|
@@ -400,7 +400,7 @@ var EmbedEvent;
|
|
|
400
400
|
* Emitted when the "Get Data" button in Search Bar embed
|
|
401
401
|
* is clicked.
|
|
402
402
|
*
|
|
403
|
-
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.0
|
|
403
|
+
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.0.sw
|
|
404
404
|
*/
|
|
405
405
|
EmbedEvent["GetDataClick"] = "getDataClick";
|
|
406
406
|
/**
|
|
@@ -430,13 +430,13 @@ var EmbedEvent;
|
|
|
430
430
|
/**
|
|
431
431
|
* Emitted when any modal is opened in the app
|
|
432
432
|
*
|
|
433
|
-
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1
|
|
433
|
+
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
434
434
|
*/
|
|
435
435
|
EmbedEvent["DialogOpen"] = "dialog-open";
|
|
436
436
|
/**
|
|
437
437
|
* Emitted when any modal is closed in the app
|
|
438
438
|
*
|
|
439
|
-
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1
|
|
439
|
+
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
440
440
|
*/
|
|
441
441
|
EmbedEvent["DialogClose"] = "dialog-close";
|
|
442
442
|
/**
|
|
@@ -444,136 +444,136 @@ var EmbedEvent;
|
|
|
444
444
|
* You can use this event as a hook to trigger
|
|
445
445
|
* other events on the rendered Liveboard.
|
|
446
446
|
*
|
|
447
|
-
* @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1
|
|
447
|
+
* @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
|
|
448
448
|
*/
|
|
449
449
|
EmbedEvent["LiveboardRendered"] = "PinboardRendered";
|
|
450
450
|
/**
|
|
451
451
|
* This can be used to register an event listener which
|
|
452
452
|
* is triggered on all events.
|
|
453
453
|
*
|
|
454
|
-
* @Version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1
|
|
454
|
+
* @Version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
|
|
455
455
|
*/
|
|
456
456
|
EmbedEvent["ALL"] = "*";
|
|
457
457
|
/**
|
|
458
|
-
* Emitted when
|
|
458
|
+
* Emitted when an Answer is saved in the app
|
|
459
459
|
*
|
|
460
|
-
* @Version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1
|
|
460
|
+
* @Version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
461
461
|
*/
|
|
462
462
|
EmbedEvent["Save"] = "save";
|
|
463
463
|
/**
|
|
464
464
|
* Emitted when the download action is triggered on an answer
|
|
465
465
|
*
|
|
466
|
-
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1
|
|
466
|
+
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
467
467
|
*/
|
|
468
468
|
EmbedEvent["Download"] = "download";
|
|
469
469
|
/**
|
|
470
470
|
* Emitted when the download action is triggered on an answer
|
|
471
471
|
*
|
|
472
|
-
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.0
|
|
472
|
+
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.0.sw
|
|
473
473
|
*/
|
|
474
474
|
EmbedEvent["DownloadAsPng"] = "downloadAsPng";
|
|
475
475
|
/**
|
|
476
476
|
* Emitted when the Download as PDF action is triggered on an answer
|
|
477
477
|
*
|
|
478
|
-
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1
|
|
478
|
+
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
479
479
|
*/
|
|
480
480
|
EmbedEvent["DownloadAsPdf"] = "downloadAsPdf";
|
|
481
481
|
/**
|
|
482
482
|
* Emitted when the Download as CSV action is triggered on an answer
|
|
483
483
|
*
|
|
484
|
-
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1
|
|
484
|
+
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
485
485
|
*/
|
|
486
486
|
EmbedEvent["DownloadAsCsv"] = "downloadAsCsv";
|
|
487
487
|
/**
|
|
488
488
|
* Emitted when the Download as XLSX action is triggered on an answer
|
|
489
489
|
*
|
|
490
|
-
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1
|
|
490
|
+
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
491
491
|
*/
|
|
492
492
|
EmbedEvent["DownloadAsXlsx"] = "downloadAsXlsx";
|
|
493
493
|
/**
|
|
494
494
|
* Emitted when an answer is deleted in the app
|
|
495
495
|
*
|
|
496
|
-
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1
|
|
496
|
+
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
497
497
|
*/
|
|
498
498
|
EmbedEvent["AnswerDelete"] = "answerDelete";
|
|
499
499
|
/**
|
|
500
500
|
* Emitted when an answer is pinned to a Liveboard
|
|
501
501
|
*
|
|
502
|
-
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1
|
|
502
|
+
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
503
503
|
*/
|
|
504
504
|
EmbedEvent["Pin"] = "pin";
|
|
505
505
|
/**
|
|
506
506
|
* Emitted when SpotIQ analysis is triggered
|
|
507
507
|
*
|
|
508
|
-
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1
|
|
508
|
+
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
509
509
|
*/
|
|
510
510
|
EmbedEvent["SpotIQAnalyze"] = "spotIQAnalyze";
|
|
511
511
|
/**
|
|
512
512
|
* Emitted when a user shares an object with another user or group
|
|
513
513
|
*
|
|
514
|
-
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1
|
|
514
|
+
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
515
515
|
*/
|
|
516
516
|
EmbedEvent["Share"] = "share";
|
|
517
517
|
/**
|
|
518
518
|
* Emitted when a user clicks the Include action to include a specific value or data
|
|
519
519
|
* on a chart or table
|
|
520
520
|
*
|
|
521
|
-
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1
|
|
521
|
+
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
522
522
|
*/
|
|
523
523
|
EmbedEvent["DrillInclude"] = "context-menu-item-include";
|
|
524
524
|
/**
|
|
525
525
|
* Emitted when a user clicks the Exclude action to exclude a specific value or data
|
|
526
526
|
* on a chart or table
|
|
527
527
|
*
|
|
528
|
-
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1
|
|
528
|
+
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
529
529
|
*/
|
|
530
530
|
EmbedEvent["DrillExclude"] = "context-menu-item-exclude";
|
|
531
531
|
/**
|
|
532
532
|
* Emitted when copied column value on the app
|
|
533
533
|
*
|
|
534
|
-
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1
|
|
534
|
+
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
535
535
|
*/
|
|
536
536
|
EmbedEvent["CopyToClipboard"] = "context-menu-item-copy-to-clipboard";
|
|
537
537
|
/**
|
|
538
538
|
* Emitted when a user clicks the Update TML action
|
|
539
539
|
*
|
|
540
|
-
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1
|
|
540
|
+
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
541
541
|
*/
|
|
542
542
|
EmbedEvent["UpdateTML"] = "updateTSL";
|
|
543
543
|
/**
|
|
544
544
|
* Emitted when a user clicks the Edit TML action
|
|
545
545
|
*
|
|
546
|
-
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1
|
|
546
|
+
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
547
547
|
*/
|
|
548
548
|
EmbedEvent["EditTML"] = "editTSL";
|
|
549
549
|
/**
|
|
550
550
|
* Emitted when ExportTML trigger in answer on the app
|
|
551
551
|
*
|
|
552
|
-
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1
|
|
552
|
+
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
553
553
|
*/
|
|
554
554
|
EmbedEvent["ExportTML"] = "exportTSL";
|
|
555
555
|
/**
|
|
556
556
|
* Emitted when an answer is saved as a view
|
|
557
557
|
*
|
|
558
|
-
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1
|
|
558
|
+
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
559
559
|
*/
|
|
560
560
|
EmbedEvent["SaveAsView"] = "saveAsView";
|
|
561
561
|
/**
|
|
562
562
|
* Emitted when copy of existing answer on the app
|
|
563
563
|
*
|
|
564
|
-
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1
|
|
564
|
+
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
565
565
|
*/
|
|
566
566
|
EmbedEvent["CopyAEdit"] = "copyAEdit";
|
|
567
567
|
/**
|
|
568
568
|
* Emitted when a user clicks Show underlying data on an answe
|
|
569
569
|
*
|
|
570
|
-
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1
|
|
570
|
+
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
571
571
|
*/
|
|
572
572
|
EmbedEvent["ShowUnderlyingData"] = "showUnderlyingData";
|
|
573
573
|
/**
|
|
574
574
|
* Emitted when an answer is switched to a chart or table view
|
|
575
575
|
*
|
|
576
|
-
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1
|
|
576
|
+
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
577
577
|
*/
|
|
578
578
|
EmbedEvent["AnswerChartSwitcher"] = "answerChartSwitcher";
|
|
579
579
|
/**
|
|
@@ -585,67 +585,67 @@ var EmbedEvent;
|
|
|
585
585
|
/**
|
|
586
586
|
* Emitted when a user clicks Show Liveboard details on a Liveboard
|
|
587
587
|
*
|
|
588
|
-
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1
|
|
588
|
+
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
589
589
|
*/
|
|
590
590
|
EmbedEvent["LiveboardInfo"] = "pinboardInfo";
|
|
591
591
|
/**
|
|
592
592
|
* Emitted when a user clicks on the Favorite icon on a Liveboard
|
|
593
593
|
*
|
|
594
|
-
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1
|
|
594
|
+
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
595
595
|
*/
|
|
596
596
|
EmbedEvent["AddToFavorites"] = "addToFavorites";
|
|
597
597
|
/**
|
|
598
598
|
* Emitted when a user clicks Schedule on a Liveboard
|
|
599
599
|
*
|
|
600
|
-
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1
|
|
600
|
+
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
601
601
|
*/
|
|
602
602
|
EmbedEvent["Schedule"] = "subscription";
|
|
603
603
|
/**
|
|
604
604
|
* Emitted when a user clicks Edit on a Liveboard or visualization
|
|
605
605
|
*
|
|
606
|
-
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1
|
|
606
|
+
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
607
607
|
*/
|
|
608
608
|
EmbedEvent["Edit"] = "edit";
|
|
609
609
|
/**
|
|
610
610
|
* Emitted when a user clicks Make a copy on a Liveboard
|
|
611
611
|
*
|
|
612
|
-
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1
|
|
612
|
+
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
613
613
|
*/
|
|
614
614
|
EmbedEvent["MakeACopy"] = "makeACopy";
|
|
615
615
|
/**
|
|
616
616
|
* Emitted when a user clicks Present on a Liveboard or visualization
|
|
617
617
|
*
|
|
618
|
-
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1
|
|
618
|
+
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
619
619
|
*/
|
|
620
620
|
EmbedEvent["Present"] = "present";
|
|
621
621
|
/**
|
|
622
622
|
* Emitted when a user clicks Delete on a Liveboard
|
|
623
623
|
*
|
|
624
|
-
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1
|
|
624
|
+
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
625
625
|
*/
|
|
626
626
|
EmbedEvent["Delete"] = "delete";
|
|
627
627
|
/**
|
|
628
628
|
* Emitted when a user clicks Manage schedules on a Liveboard
|
|
629
629
|
*
|
|
630
|
-
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1
|
|
630
|
+
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
631
631
|
*/
|
|
632
632
|
EmbedEvent["SchedulesList"] = "schedule-list";
|
|
633
633
|
/**
|
|
634
634
|
* Emitted when a user clicks Cancel in edit mode on a Liveboard
|
|
635
635
|
*
|
|
636
|
-
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1
|
|
636
|
+
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
637
637
|
*/
|
|
638
638
|
EmbedEvent["Cancel"] = "cancel";
|
|
639
639
|
/**
|
|
640
640
|
* Emitted when a user clicks Explore on a visualization
|
|
641
641
|
*
|
|
642
|
-
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1
|
|
642
|
+
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
643
643
|
*/
|
|
644
644
|
EmbedEvent["Explore"] = "explore";
|
|
645
645
|
/**
|
|
646
646
|
* Emitted when a user clicks Copy link action on a visualization
|
|
647
647
|
*
|
|
648
|
-
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1
|
|
648
|
+
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
649
649
|
*/
|
|
650
650
|
EmbedEvent["CopyLink"] = "embedDocument";
|
|
651
651
|
/**
|
|
@@ -666,6 +666,12 @@ var EmbedEvent;
|
|
|
666
666
|
* @hidden
|
|
667
667
|
*/
|
|
668
668
|
EmbedEvent["InsertIntoSlide"] = "insertInToSlide";
|
|
669
|
+
/**
|
|
670
|
+
* Emitted when a user changes any filter on a Liveboard.
|
|
671
|
+
*
|
|
672
|
+
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
673
|
+
*/
|
|
674
|
+
EmbedEvent["FilterChanged"] = "filterChanged";
|
|
669
675
|
})(EmbedEvent = exports.EmbedEvent || (exports.EmbedEvent = {}));
|
|
670
676
|
/**
|
|
671
677
|
* Event types that can be triggered by the host application
|
|
@@ -693,13 +699,14 @@ var EmbedEvent;
|
|
|
693
699
|
var HostEvent;
|
|
694
700
|
(function (HostEvent) {
|
|
695
701
|
/**
|
|
696
|
-
*
|
|
697
|
-
*
|
|
702
|
+
* Triggers a search query in AppEmbed and SearchEmbed
|
|
703
|
+
* deployments.
|
|
704
|
+
* Includes the following properties:
|
|
698
705
|
* @param - dataSourceIds - The data source GUID to Search on
|
|
699
706
|
* - Although an array, only a single source
|
|
700
|
-
* is supported
|
|
701
|
-
* @param - searchQuery -
|
|
702
|
-
* @param - execute -
|
|
707
|
+
* is supported.
|
|
708
|
+
* @param - searchQuery - Query string with search tokens
|
|
709
|
+
* @param - execute - executes the existing / updated query
|
|
703
710
|
* @example
|
|
704
711
|
* ```js
|
|
705
712
|
* searchEmbed.trigger(HostEvent.Search, {
|
|
@@ -711,13 +718,13 @@ var HostEvent;
|
|
|
711
718
|
*/
|
|
712
719
|
HostEvent["Search"] = "search";
|
|
713
720
|
/**
|
|
714
|
-
*
|
|
715
|
-
*
|
|
721
|
+
* Triggers a drill on certain points of the specified column
|
|
722
|
+
* Includes the following properties:
|
|
716
723
|
* @param - points - an object containing selectedPoints/clickedPoints
|
|
717
|
-
*
|
|
718
|
-
* @param - columnGuid -
|
|
719
|
-
*
|
|
720
|
-
*
|
|
724
|
+
* to drill to. For example, { selectedPoints: []}
|
|
725
|
+
* @param - columnGuid - Optional. GUID of the column to drill
|
|
726
|
+
* by. If not provided it will auto drill by the configured
|
|
727
|
+
* column.
|
|
721
728
|
* @example
|
|
722
729
|
* ```js
|
|
723
730
|
* searchEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
|
|
@@ -750,17 +757,17 @@ var HostEvent;
|
|
|
750
757
|
*/
|
|
751
758
|
HostEvent["Reload"] = "reload";
|
|
752
759
|
/**
|
|
753
|
-
*
|
|
760
|
+
* Sets the visible visualizations on a Liveboard.
|
|
754
761
|
*
|
|
755
|
-
* @param -
|
|
756
|
-
*
|
|
762
|
+
* @param - An array of GUIDs of the visualization to show. The visualization IDs not passed
|
|
763
|
+
* in this parameter will be hidden.
|
|
757
764
|
* @example
|
|
758
765
|
* ```js
|
|
759
766
|
* liveboardEmbed.trigger(HostEvent.SetVisibleVizs, [
|
|
760
767
|
* '730496d6-6903-4601-937e-2c691821af3c',
|
|
761
768
|
* 'd547ec54-2a37-4516-a222-2b06719af726'])
|
|
762
769
|
* ```
|
|
763
|
-
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1
|
|
770
|
+
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
764
771
|
*/
|
|
765
772
|
HostEvent["SetVisibleVizs"] = "SetPinboardVisibleVizs";
|
|
766
773
|
/**
|
|
@@ -777,9 +784,18 @@ var HostEvent;
|
|
|
777
784
|
*/
|
|
778
785
|
HostEvent["SetActiveTab"] = "SetActiveTab";
|
|
779
786
|
/**
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
787
|
+
* Updates runtime filters applied on a Saved Answer or Liveboard. The
|
|
788
|
+
* runtime filters passed here are appended to the existing runtime
|
|
789
|
+
* filters.
|
|
790
|
+
* Pass an array of runtime filters with the following attributes:
|
|
791
|
+
* `columnName`
|
|
792
|
+
* _String_. The name of the column to filter on.
|
|
793
|
+
* `operator`
|
|
794
|
+
* Runtime filter operator to apply. For information,
|
|
795
|
+
* see [Runtime filter operators](https://developers.thoughtspot.com/docs/?pageid=runtime-filters#rtOperator).
|
|
796
|
+
* `values`
|
|
797
|
+
* List of operands. Some operators such as EQ, LE allow a single value, whereas operators
|
|
798
|
+
* such as BW and IN accept multiple operands.
|
|
783
799
|
* @param - {@link RuntimeFilter}[] an array of {@link RuntimeFilter} Types.
|
|
784
800
|
* @example
|
|
785
801
|
* ```js
|
|
@@ -788,25 +804,24 @@ var HostEvent;
|
|
|
788
804
|
* {columnName: "item type",operator: RuntimeFilterOp.EQ,values: ["Jackets"]}
|
|
789
805
|
* ])
|
|
790
806
|
* ```
|
|
791
|
-
* @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl, 8.4.1
|
|
807
|
+
* @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
|
|
792
808
|
* @important
|
|
793
809
|
*/
|
|
794
810
|
HostEvent["UpdateRuntimeFilters"] = "UpdateRuntimeFilters";
|
|
795
811
|
/**
|
|
796
|
-
* Navigate to a specific page in
|
|
812
|
+
* Navigate to a specific page in the embedded application without reloading the page.
|
|
797
813
|
* This is the same as calling `appEmbed.navigateToPage(path, true)`
|
|
798
|
-
*
|
|
799
814
|
* @param - path - the path to navigate to (can be a number[1/-1] to go forward/back)
|
|
800
815
|
* @example
|
|
801
816
|
* ```js
|
|
802
817
|
* appEmbed.navigateToPage(-1)
|
|
803
818
|
* ```
|
|
804
|
-
* @version SDK: 1.12.0 | ThoughtSpot 8.4.0.cl, 8.4.1
|
|
819
|
+
* @version SDK: 1.12.0 | ThoughtSpot 8.4.0.cl, 8.4.1.sw
|
|
805
820
|
*/
|
|
806
821
|
HostEvent["Navigate"] = "Navigate";
|
|
807
822
|
/**
|
|
808
823
|
* Opens the filter panel for a particular column.
|
|
809
|
-
* Works with Search embed.
|
|
824
|
+
* Works with Search and Liveboard embed.
|
|
810
825
|
*
|
|
811
826
|
* @param - { columnId: string,
|
|
812
827
|
* name: string,
|
|
@@ -815,233 +830,257 @@ var HostEvent;
|
|
|
815
830
|
* @example
|
|
816
831
|
* ```js
|
|
817
832
|
* searchEmbed.trigger(HostEvent.OpenFilter,
|
|
818
|
-
*
|
|
833
|
+
* { columnId: '<column-GUID>', name: 'column name', type: 'INT64', dataType: 'ATTRIBUTE'})
|
|
834
|
+
* LiveboardEmbed.trigger(HostEvent.OpenFilter,
|
|
835
|
+
* { columnId: '<column-GUID>'})
|
|
819
836
|
* ```
|
|
820
837
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
821
838
|
*/
|
|
822
839
|
HostEvent["OpenFilter"] = "openFilter";
|
|
823
840
|
/**
|
|
824
|
-
* Adds
|
|
841
|
+
* Adds columns to the current search query.
|
|
825
842
|
*
|
|
826
843
|
* @param - { columnIds: string[] }
|
|
827
844
|
* @example
|
|
828
845
|
* ```js
|
|
829
|
-
* searchEmbed.trigger(HostEvent.AddColumns, { columnIds: ['
|
|
846
|
+
* searchEmbed.trigger(HostEvent.AddColumns, { columnIds: ['<column-GUID>','<column-GUID>'] })
|
|
830
847
|
* ```
|
|
831
848
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
832
849
|
*/
|
|
833
850
|
HostEvent["AddColumns"] = "addColumns";
|
|
834
851
|
/**
|
|
835
|
-
* Removes a column from the current
|
|
852
|
+
* Removes a column from the current search query.
|
|
836
853
|
*
|
|
837
854
|
* @param - { columnId: string }
|
|
838
855
|
* @example
|
|
839
856
|
* ```js
|
|
840
|
-
* searchEmbed.trigger(HostEvent.RemoveColumn, { columnId: '
|
|
857
|
+
* searchEmbed.trigger(HostEvent.RemoveColumn, { columnId: '<column-Guid>' })
|
|
841
858
|
* ```
|
|
842
859
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
843
860
|
*/
|
|
844
861
|
HostEvent["RemoveColumn"] = "removeColumn";
|
|
845
862
|
/**
|
|
846
|
-
* Gets the current
|
|
863
|
+
* Gets the current Liveboard content.
|
|
847
864
|
*
|
|
848
865
|
* @example
|
|
849
866
|
* ```js
|
|
850
867
|
* liveboardEmbed.trigger(HostEvent.getExportRequestForCurrentPinboard)
|
|
851
868
|
* ```
|
|
852
|
-
* @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1
|
|
869
|
+
* @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1.sw
|
|
853
870
|
*/
|
|
854
871
|
HostEvent["getExportRequestForCurrentPinboard"] = "getExportRequestForCurrentPinboard";
|
|
855
872
|
/**
|
|
856
|
-
* Triggers the Pin action on an embedded object
|
|
873
|
+
* Triggers the **Pin** action on an embedded object
|
|
857
874
|
*
|
|
858
|
-
* @param -
|
|
859
|
-
*
|
|
875
|
+
* @param - Liveboard embed takes the `vizId` as a
|
|
876
|
+
* key. Can be left undefined when embedding Search, full app or
|
|
877
|
+
* a visualization.
|
|
860
878
|
* @example
|
|
861
879
|
* ```js
|
|
862
880
|
* liveboardEmbed.trigger(HostEvent.Pin, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
881
|
+
* ```
|
|
882
|
+
* ```js
|
|
863
883
|
* vizEmbed.trigger(HostEvent.Pin)
|
|
884
|
+
* ```
|
|
885
|
+
* ```js
|
|
864
886
|
* searchEmbed.trigger(HostEvent.Pin)
|
|
865
887
|
* ```
|
|
866
|
-
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1
|
|
888
|
+
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
867
889
|
*/
|
|
868
890
|
HostEvent["Pin"] = "pin";
|
|
869
891
|
/**
|
|
870
|
-
* Triggers the Show Liveboard details action on a Liveboard
|
|
892
|
+
* Triggers the **Show Liveboard details** action on a Liveboard
|
|
871
893
|
*
|
|
872
894
|
* @example
|
|
873
895
|
* ```js
|
|
874
896
|
* liveboardEmbed.trigger(HostEvent.LiveboardInfo)
|
|
875
897
|
* ```
|
|
876
|
-
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1
|
|
898
|
+
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
877
899
|
*/
|
|
878
900
|
HostEvent["LiveboardInfo"] = "pinboardInfo";
|
|
879
901
|
/**
|
|
880
|
-
* Triggers the Schedule action on a Liveboard
|
|
902
|
+
* Triggers the **Schedule** action on a Liveboard
|
|
881
903
|
*
|
|
882
904
|
* @example
|
|
883
905
|
* ```js
|
|
884
906
|
* liveboardEmbed.trigger(HostEvent.Schedule)
|
|
885
907
|
* ```
|
|
886
|
-
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1
|
|
908
|
+
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
887
909
|
*/
|
|
888
910
|
HostEvent["Schedule"] = "subscription";
|
|
889
911
|
/**
|
|
890
|
-
* Triggers the Manage schedule action on a Liveboard
|
|
912
|
+
* Triggers the **Manage schedule** action on a Liveboard
|
|
891
913
|
*
|
|
892
914
|
* @example
|
|
893
915
|
* ```js
|
|
894
916
|
* liveboardEmbed.trigger(HostEvent.ScheduleList)
|
|
895
917
|
* ```
|
|
896
|
-
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1
|
|
918
|
+
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
897
919
|
*/
|
|
898
920
|
HostEvent["SchedulesList"] = "schedule-list";
|
|
899
921
|
/**
|
|
900
|
-
* Triggers the Export TML action on a Liveboard
|
|
922
|
+
* Triggers the **Export TML** action on a Liveboard
|
|
901
923
|
*
|
|
902
924
|
* @example
|
|
903
925
|
* ```js
|
|
904
926
|
* liveboardEmbed.trigger(HostEvent.ExportTML)
|
|
905
927
|
* ```
|
|
906
|
-
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1
|
|
928
|
+
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
907
929
|
*/
|
|
908
930
|
HostEvent["ExportTML"] = "exportTSL";
|
|
909
931
|
/**
|
|
910
|
-
* Triggers the Edit TML action on a Liveboard
|
|
932
|
+
* Triggers the **Edit TML** action on a Liveboard
|
|
911
933
|
*
|
|
912
934
|
* @example
|
|
913
935
|
* ```js
|
|
914
936
|
* liveboardEmbed.trigger(HostEvent.EditTML)
|
|
915
937
|
* ```
|
|
916
|
-
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1
|
|
938
|
+
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
917
939
|
*/
|
|
918
940
|
HostEvent["EditTML"] = "editTSL";
|
|
919
941
|
/**
|
|
920
|
-
* Triggers the Update TML action on a Liveboard
|
|
942
|
+
* Triggers the **Update TML** action on a Liveboard
|
|
921
943
|
*
|
|
922
944
|
* @example
|
|
923
945
|
* ```js
|
|
924
946
|
* liveboardEmbed.trigger(HostEvent.UpdateTML)
|
|
925
947
|
* ```
|
|
926
|
-
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1
|
|
948
|
+
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
927
949
|
*/
|
|
928
950
|
HostEvent["UpdateTML"] = "updateTSL";
|
|
929
951
|
/**
|
|
930
|
-
* Triggers the Download PDF action on a Liveboard
|
|
952
|
+
* Triggers the **Download PDF** action on a Liveboard
|
|
931
953
|
*
|
|
932
954
|
* @example
|
|
933
955
|
* ```js
|
|
934
956
|
* liveboardEmbed.trigger(HostEvent.DownloadAsPdf)
|
|
935
957
|
* ```
|
|
936
|
-
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1
|
|
958
|
+
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
937
959
|
*/
|
|
938
960
|
HostEvent["DownloadAsPdf"] = "downloadAsPdf";
|
|
939
961
|
/**
|
|
940
|
-
* Triggers the Make a copy action on a Liveboard,
|
|
962
|
+
* Triggers the **Make a copy** action on a Liveboard, Search, or
|
|
963
|
+
* visualization page
|
|
941
964
|
*
|
|
942
965
|
* @example
|
|
943
966
|
* ```js
|
|
944
967
|
* liveboardEmbed.trigger(HostEvent.MakeACopy, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
968
|
+
* ```
|
|
969
|
+
* ```js
|
|
945
970
|
* vizEmbed.trigger(HostEvent.MakeACopy)
|
|
971
|
+
* ```
|
|
972
|
+
* ```js
|
|
946
973
|
* searchEmbed.trigger(HostEvent.MakeACopy)
|
|
947
974
|
* ```
|
|
948
|
-
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1
|
|
975
|
+
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
949
976
|
*/
|
|
950
977
|
HostEvent["MakeACopy"] = "makeACopy";
|
|
951
978
|
/**
|
|
952
|
-
* Triggers the Delete action on a Liveboard
|
|
979
|
+
* Triggers the **Delete** action on a Liveboard
|
|
953
980
|
*
|
|
954
981
|
* @example
|
|
955
982
|
* ```js
|
|
956
983
|
* appEmbed.trigger(HostEvent.Remove)
|
|
957
984
|
* ```
|
|
958
|
-
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1
|
|
985
|
+
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
959
986
|
*/
|
|
960
987
|
HostEvent["Remove"] = "delete";
|
|
961
988
|
/**
|
|
962
|
-
* Triggers the Explore action on a visualization
|
|
989
|
+
* Triggers the **Explore* action on a visualization
|
|
963
990
|
*
|
|
964
|
-
* @param - an object with vizId as a key
|
|
991
|
+
* @param - an object with `vizId` as a key
|
|
965
992
|
* @example
|
|
966
993
|
* ```js
|
|
967
994
|
* liveboardEmbed.trigger(HostEvent.Explore, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
968
995
|
* ```
|
|
969
|
-
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1
|
|
996
|
+
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
970
997
|
*/
|
|
971
998
|
HostEvent["Explore"] = "explore";
|
|
972
999
|
/**
|
|
973
|
-
* Triggers the Create alert action on a visualization
|
|
1000
|
+
* Triggers the **Create alert** action on a visualization
|
|
974
1001
|
*
|
|
975
|
-
* @param - an object with vizId as a key
|
|
1002
|
+
* @param - an object with `vizId` as a key
|
|
976
1003
|
* @example
|
|
977
1004
|
* ```js
|
|
978
1005
|
* liveboardEmbed.trigger(HostEvent.CreateMonitor {
|
|
979
1006
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
980
1007
|
* })
|
|
981
1008
|
* ```
|
|
982
|
-
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1
|
|
1009
|
+
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
983
1010
|
*/
|
|
984
1011
|
HostEvent["CreateMonitor"] = "createMonitor";
|
|
985
1012
|
/**
|
|
986
|
-
* Triggers the Manage
|
|
1013
|
+
* Triggers the **Manage alerts** action on a visualization
|
|
987
1014
|
*
|
|
988
|
-
* @param - an object with vizId as a key
|
|
1015
|
+
* @param - an object with `vizId` as a key
|
|
989
1016
|
* @example
|
|
990
1017
|
* ```js
|
|
991
1018
|
* liveboardEmbed.trigger(HostEvent.ManageMonitor, {
|
|
992
1019
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
993
1020
|
* })
|
|
994
1021
|
* ```
|
|
995
|
-
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1
|
|
1022
|
+
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
996
1023
|
*/
|
|
997
1024
|
HostEvent["ManageMonitor"] = "manageMonitor";
|
|
998
1025
|
/**
|
|
999
|
-
* Triggers the Edit action on a Liveboard or visualization
|
|
1026
|
+
* Triggers the **Edit** action on a Liveboard or visualization
|
|
1000
1027
|
*
|
|
1001
|
-
* @param - object -
|
|
1002
|
-
*
|
|
1028
|
+
* @param - object - To trigger the action for a specific visualization
|
|
1029
|
+
* in Liveboard embed, pass in `vizId` as a key.
|
|
1030
|
+
* Can be left undefined when embedding Search, full app, or
|
|
1031
|
+
* a visualization.
|
|
1003
1032
|
* @example
|
|
1004
1033
|
* ```js
|
|
1005
1034
|
* liveboardEmbed.trigger(HostEvent.Edit)
|
|
1006
|
-
*
|
|
1035
|
+
* ```
|
|
1036
|
+
* ```js
|
|
1007
1037
|
* liveboardEmbed.trigger(HostEvent.Edit, {vizId:
|
|
1008
1038
|
* '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1009
|
-
*
|
|
1039
|
+
* ```
|
|
1040
|
+
* ```js
|
|
1010
1041
|
* vizEmbed.trigger((HostEvent.Edit)
|
|
1011
1042
|
* ```
|
|
1012
|
-
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1
|
|
1043
|
+
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1013
1044
|
*/
|
|
1014
1045
|
HostEvent["Edit"] = "edit";
|
|
1015
1046
|
/**
|
|
1016
|
-
* Triggers the Copy link action on a Liveboard or visualization
|
|
1047
|
+
* Triggers the **Copy link** action on a Liveboard or visualization
|
|
1017
1048
|
*
|
|
1018
|
-
* @param - object - to trigger the action for a
|
|
1019
|
-
*
|
|
1049
|
+
* @param - object - to trigger the action for a
|
|
1050
|
+
* specific visualization in Liveboard embed, pass in `vizId` as a key
|
|
1020
1051
|
* @example
|
|
1021
1052
|
* ```js
|
|
1022
1053
|
* liveboardEmbed.trigger(HostEvent.CopyLink)
|
|
1054
|
+
* ```
|
|
1055
|
+
* ```js
|
|
1023
1056
|
* liveboardEmbed.trigger(HostEvent.CopyLink, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1057
|
+
* ```
|
|
1058
|
+
* ```js
|
|
1024
1059
|
* vizEmbed.trigger((HostEvent.CopyLink)
|
|
1025
1060
|
* ```
|
|
1026
|
-
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1
|
|
1061
|
+
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1027
1062
|
*/
|
|
1028
1063
|
HostEvent["CopyLink"] = "embedDocument";
|
|
1029
1064
|
/**
|
|
1030
|
-
* Triggers the Present action on a Liveboard or visualization
|
|
1065
|
+
* Triggers the **Present** action on a Liveboard or visualization
|
|
1031
1066
|
*
|
|
1032
|
-
* @param - object - to trigger the action for a
|
|
1033
|
-
* in Liveboard embed, pass in vizId as a key
|
|
1067
|
+
* @param - object - to trigger the action for a specific visualization
|
|
1068
|
+
* in Liveboard embed, pass in `vizId` as a key
|
|
1034
1069
|
* @example
|
|
1035
1070
|
* ```js
|
|
1036
1071
|
* liveboardEmbed.trigger(HostEvent.Present)
|
|
1072
|
+
* ```
|
|
1073
|
+
* ```js
|
|
1037
1074
|
* liveboardEmbed.trigger(HostEvent.Present, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1075
|
+
* ```
|
|
1076
|
+
* ```js
|
|
1038
1077
|
* vizEmbed.trigger((HostEvent.Present)
|
|
1039
1078
|
* ```
|
|
1040
|
-
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1
|
|
1079
|
+
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1041
1080
|
*/
|
|
1042
1081
|
HostEvent["Present"] = "present";
|
|
1043
1082
|
/**
|
|
1044
|
-
*
|
|
1083
|
+
* Gets TML for the current search.
|
|
1045
1084
|
*
|
|
1046
1085
|
* @example
|
|
1047
1086
|
* ```js
|
|
@@ -1051,79 +1090,89 @@ var HostEvent;
|
|
|
1051
1090
|
* );
|
|
1052
1091
|
* })
|
|
1053
1092
|
* ```
|
|
1054
|
-
* @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1
|
|
1093
|
+
* @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1.sw
|
|
1055
1094
|
* @important
|
|
1056
1095
|
*/
|
|
1057
1096
|
HostEvent["GetTML"] = "getTML";
|
|
1058
1097
|
/**
|
|
1059
|
-
* Triggers the
|
|
1098
|
+
* Triggers the **Show underlying data** action on visualization or search
|
|
1060
1099
|
*
|
|
1061
1100
|
* @param - an object with vizId as a key
|
|
1062
1101
|
* @example
|
|
1063
1102
|
* ```js
|
|
1064
1103
|
* liveboardEmbed.trigger(HostEvent.ShowUnderlyingData, {vizId:
|
|
1065
1104
|
* '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1066
|
-
*
|
|
1105
|
+
* ```
|
|
1106
|
+
* ```js
|
|
1067
1107
|
* vizEmbed.trigger(HostEvent.ShowUnderlyingData)
|
|
1068
|
-
*
|
|
1108
|
+
* ```
|
|
1109
|
+
* ```js
|
|
1069
1110
|
* searchEmbed.trigger(HostEvent.ShowUnderlyingData)
|
|
1070
1111
|
* ```
|
|
1071
|
-
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1
|
|
1112
|
+
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
1072
1113
|
*/
|
|
1073
1114
|
HostEvent["ShowUnderlyingData"] = "showUnderlyingData";
|
|
1074
1115
|
/**
|
|
1075
|
-
* Triggers the Delete action on visualization or search
|
|
1116
|
+
* Triggers the **Delete** action on visualization or search
|
|
1076
1117
|
*
|
|
1077
|
-
* @param -
|
|
1078
|
-
*
|
|
1118
|
+
* @param - Liveboard embed takes an object with `vizId` as a key.
|
|
1119
|
+
* Can be left empty if embedding Search or visualization.
|
|
1079
1120
|
* @example
|
|
1080
1121
|
* ```js
|
|
1081
1122
|
* liveboardEmbed.trigger(HostEvent.Delete, {vizId:
|
|
1082
1123
|
* '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1083
|
-
*
|
|
1124
|
+
* ```
|
|
1125
|
+
* ```js
|
|
1084
1126
|
* vizEmbed.trigger(HostEvent.Delete)
|
|
1085
|
-
*
|
|
1127
|
+
* ```
|
|
1128
|
+
* ```js
|
|
1086
1129
|
* searchEmbed.trigger(HostEvent.Delete)
|
|
1087
1130
|
* ```
|
|
1088
|
-
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1
|
|
1131
|
+
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
1089
1132
|
*/
|
|
1090
1133
|
HostEvent["Delete"] = "onDeleteAnswer";
|
|
1091
1134
|
/**
|
|
1092
|
-
* Triggers the
|
|
1093
|
-
*
|
|
1094
|
-
* @param -
|
|
1095
|
-
*
|
|
1135
|
+
* Triggers the **SpotIQ analyze** action on visualization
|
|
1136
|
+
* or search.
|
|
1137
|
+
* @param - Liveboard embed takes `vizId` as a
|
|
1138
|
+
* key. Can be left undefined when embedding Search or
|
|
1139
|
+
* visualization.
|
|
1096
1140
|
* @example
|
|
1097
1141
|
* ```js
|
|
1098
1142
|
* liveboardEmbed.trigger(HostEvent.SpotIQAnalyze, {vizId:
|
|
1099
1143
|
* '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1100
|
-
*
|
|
1144
|
+
* ```
|
|
1145
|
+
* ```js
|
|
1101
1146
|
* vizEmbed.trigger(HostEvent.SpotIQAnalyze)
|
|
1102
|
-
*
|
|
1147
|
+
* ```
|
|
1148
|
+
* ```js
|
|
1103
1149
|
* searchEmbed.trigger(HostEvent.SpotIQAnalyze)
|
|
1104
1150
|
* ```
|
|
1105
|
-
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1
|
|
1151
|
+
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
1106
1152
|
*/
|
|
1107
1153
|
HostEvent["SpotIQAnalyze"] = "spotIQAnalyze";
|
|
1108
1154
|
/**
|
|
1109
|
-
* Triggers the Download action on
|
|
1155
|
+
* Triggers the **Download** action on charts in
|
|
1156
|
+
* the embedded view.
|
|
1110
1157
|
*
|
|
1111
1158
|
* @example
|
|
1112
1159
|
* ```js
|
|
1113
1160
|
* liveboardEmbed.trigger(HostEvent.Download, {vizId:
|
|
1114
1161
|
* '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1115
|
-
*
|
|
1162
|
+
* ```
|
|
1163
|
+
* ```js
|
|
1116
1164
|
* vizEmbed.trigger(HostEvent.Download)
|
|
1117
|
-
*
|
|
1165
|
+
* ```
|
|
1166
|
+
* ```js
|
|
1118
1167
|
* searchEmbed.trigger(HostEvent.Download)
|
|
1119
1168
|
* ```
|
|
1120
|
-
* @deprecated from SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl ,9.4.1
|
|
1121
|
-
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1
|
|
1169
|
+
* @deprecated from SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl ,9.4.1.sw ,Use {@link DownloadAsPng}
|
|
1170
|
+
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
1122
1171
|
*/
|
|
1123
1172
|
HostEvent["Download"] = "downloadAsPng";
|
|
1124
1173
|
/**
|
|
1125
|
-
* Triggers the Download action on
|
|
1126
|
-
*
|
|
1174
|
+
* Triggers the **Download** > **PNG** action on
|
|
1175
|
+
* charts in the embedded view.
|
|
1127
1176
|
* @example
|
|
1128
1177
|
* ```js
|
|
1129
1178
|
* liveboardEmbed.trigger(HostEvent.DownloadAsPng,
|
|
@@ -1133,115 +1182,192 @@ var HostEvent;
|
|
|
1133
1182
|
*
|
|
1134
1183
|
* searchEmbed.trigger(HostEvent.DownloadAsPng)
|
|
1135
1184
|
* ```
|
|
1136
|
-
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.1
|
|
1185
|
+
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.1.sw
|
|
1137
1186
|
*/
|
|
1138
1187
|
HostEvent["DownloadAsPng"] = "downloadAsPng";
|
|
1139
1188
|
/**
|
|
1140
|
-
* Triggers the
|
|
1189
|
+
* Triggers the **Download** > **CSV** action on tables in
|
|
1190
|
+
* the embedded view.
|
|
1141
1191
|
*
|
|
1142
1192
|
* @example
|
|
1143
1193
|
* ```js
|
|
1144
1194
|
* liveboardEmbed.trigger(HostEvent.DownloadAsCsv, {vizId:
|
|
1145
1195
|
* '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1146
|
-
*
|
|
1196
|
+
* ```
|
|
1197
|
+
* ```js
|
|
1147
1198
|
* vizEmbed.trigger(HostEvent.DownloadAsCsv)
|
|
1148
|
-
*
|
|
1199
|
+
* ```
|
|
1200
|
+
* ```js
|
|
1149
1201
|
* searchEmbed.trigger(HostEvent.DownloadAsCsv)
|
|
1150
1202
|
* ```
|
|
1151
|
-
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1
|
|
1203
|
+
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
1152
1204
|
*/
|
|
1153
1205
|
HostEvent["DownloadAsCsv"] = "downloadAsCSV";
|
|
1154
1206
|
/**
|
|
1155
|
-
* Triggers the
|
|
1156
|
-
*
|
|
1207
|
+
* Triggers the **Download** > **XLSX** action on tables
|
|
1208
|
+
* in the embedded view.
|
|
1157
1209
|
* @example
|
|
1158
1210
|
* ```js
|
|
1159
1211
|
* liveboardEmbed.trigger(HostEvent.DownloadAsXlsx, {vizId:
|
|
1160
1212
|
* '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1161
|
-
*
|
|
1213
|
+
* ```
|
|
1214
|
+
* ```js
|
|
1162
1215
|
* vizEmbed.trigger(HostEvent.DownloadAsXlsx)
|
|
1163
|
-
*
|
|
1216
|
+
* ```
|
|
1217
|
+
* ```js
|
|
1164
1218
|
* searchEmbed.trigger(HostEvent.DownloadAsXlsx)
|
|
1165
1219
|
* ```
|
|
1166
|
-
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1
|
|
1220
|
+
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
1167
1221
|
*/
|
|
1168
1222
|
HostEvent["DownloadAsXlsx"] = "downloadAsXLSX";
|
|
1169
1223
|
/**
|
|
1170
|
-
* Triggers the Share action on
|
|
1224
|
+
* Triggers the **Share** action on an embedded
|
|
1225
|
+
* Liveboard or Answer.
|
|
1171
1226
|
*
|
|
1172
1227
|
* @example
|
|
1173
1228
|
* ```js
|
|
1174
1229
|
* liveboardEmbed.trigger(HostEvent.Share)
|
|
1175
|
-
*
|
|
1230
|
+
* ```
|
|
1231
|
+
* ```js
|
|
1176
1232
|
* searchEmbed.trigger(HostEvent.Share)
|
|
1177
1233
|
* ```
|
|
1178
|
-
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1
|
|
1234
|
+
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
1179
1235
|
*/
|
|
1180
1236
|
HostEvent["Share"] = "share";
|
|
1181
1237
|
/**
|
|
1182
|
-
*
|
|
1183
|
-
*
|
|
1238
|
+
* Triggers the **Save** action on a Liveboard or Answer.
|
|
1239
|
+
* Saves the changes.
|
|
1184
1240
|
* @example
|
|
1185
1241
|
* ```js
|
|
1186
1242
|
* liveboardEmbed.trigger(HostEvent.Save)
|
|
1187
|
-
*
|
|
1243
|
+
* ```
|
|
1244
|
+
* ```js
|
|
1188
1245
|
* searchEmbed.trigger(HostEvent.Save)
|
|
1189
1246
|
* ```
|
|
1190
|
-
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1
|
|
1247
|
+
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
1191
1248
|
*/
|
|
1192
1249
|
HostEvent["Save"] = "save";
|
|
1193
1250
|
/**
|
|
1194
|
-
* Triggers the
|
|
1195
|
-
*
|
|
1196
|
-
* @param - an object with vizId as a key
|
|
1251
|
+
* Triggers the **Sync to Sheets** action on an embedded visualization or Answer
|
|
1252
|
+
* Sends data from an Answer or Liveboard visualization to a Google sheet.
|
|
1253
|
+
* @param - an object with `vizId` as a key
|
|
1197
1254
|
* @example
|
|
1198
1255
|
* ```js
|
|
1199
1256
|
* liveboardEmbed.trigger(HostEvent.SyncToSheets, {vizId:
|
|
1200
1257
|
* '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1201
|
-
*
|
|
1258
|
+
* ```
|
|
1259
|
+
* ```js
|
|
1202
1260
|
* vizEmbed.trigger(HostEvent.SyncToSheets)
|
|
1203
1261
|
* ```
|
|
1204
|
-
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1
|
|
1262
|
+
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
1205
1263
|
*/
|
|
1206
1264
|
HostEvent["SyncToSheets"] = "sync-to-sheets";
|
|
1207
1265
|
/**
|
|
1208
|
-
* Triggers the
|
|
1209
|
-
*
|
|
1266
|
+
* Triggers the **Sync to Other Apps** action on an embedded visualization or Answer
|
|
1267
|
+
* Sends data from an Answer or Liveboard visualization to third-party apps such
|
|
1268
|
+
* as Slack, Salesforce, Microsoft Teams, ServiceNow and so on.
|
|
1210
1269
|
* @param - an object with vizId as a key
|
|
1211
1270
|
* @example
|
|
1212
1271
|
* ```js
|
|
1213
1272
|
* liveboardEmbed.trigger(HostEvent.SyncToOtherApps, {vizId:
|
|
1214
1273
|
* '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1215
|
-
*
|
|
1274
|
+
* ```
|
|
1275
|
+
* ```js
|
|
1216
1276
|
* vizEmbed.trigger(HostEvent.SyncToOtherApps)
|
|
1217
1277
|
* ```
|
|
1218
|
-
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1
|
|
1278
|
+
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
1219
1279
|
*/
|
|
1220
1280
|
HostEvent["SyncToOtherApps"] = "sync-to-other-apps";
|
|
1221
1281
|
/**
|
|
1222
|
-
* Triggers the
|
|
1223
|
-
*
|
|
1224
|
-
*
|
|
1282
|
+
* Triggers the **Manage pipelines** action on an embedded
|
|
1283
|
+
* visualization or Answer.
|
|
1284
|
+
* Allows users to manage ThoughtSpot Sync pipelines.
|
|
1285
|
+
* @param - an object with `vizId` as a key
|
|
1225
1286
|
* @example
|
|
1226
1287
|
* ```js
|
|
1227
1288
|
* liveboardEmbed.trigger(HostEvent.ManagePipelines, {vizId:
|
|
1228
1289
|
* '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1229
|
-
*
|
|
1290
|
+
* ```
|
|
1291
|
+
* ```js
|
|
1230
1292
|
* vizEmbed.trigger(HostEvent.ManagePipelines)
|
|
1231
1293
|
* ```
|
|
1232
|
-
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1
|
|
1294
|
+
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
1233
1295
|
*/
|
|
1234
1296
|
HostEvent["ManagePipelines"] = "manage-pipeline";
|
|
1235
1297
|
/**
|
|
1236
|
-
* Triggers the Reset search
|
|
1298
|
+
* Triggers the Reset search on the Search page
|
|
1237
1299
|
*
|
|
1238
1300
|
* @example
|
|
1239
1301
|
* ```js
|
|
1240
1302
|
* searchEmbed.trigger(HostEvent.ResetSearch)
|
|
1241
1303
|
* ```
|
|
1242
|
-
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.0.1
|
|
1304
|
+
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.0.1.sw
|
|
1243
1305
|
*/
|
|
1244
1306
|
HostEvent["ResetSearch"] = "resetSearch";
|
|
1307
|
+
/**
|
|
1308
|
+
* Gets the currents visible and runtime filters applied on a Liveboard
|
|
1309
|
+
*
|
|
1310
|
+
* @example
|
|
1311
|
+
* liveboardEmbed.trigger(HostEvent.GetFilters)
|
|
1312
|
+
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
1313
|
+
*/
|
|
1314
|
+
HostEvent["GetFilters"] = "getFilters";
|
|
1315
|
+
/**
|
|
1316
|
+
* Updates the visible filters on the Liveboard.
|
|
1317
|
+
*
|
|
1318
|
+
* @param - filter: filter object containing column name and filter operation and values
|
|
1319
|
+
* @example
|
|
1320
|
+
*
|
|
1321
|
+
* ```js
|
|
1322
|
+
* liveboardEmbed.trigger(HostEvent.UpdateFilters, {
|
|
1323
|
+
* filter: { column: 'column name', oper: 'in', values: [1,2,3], is_mandatory: false }
|
|
1324
|
+
* })
|
|
1325
|
+
* ```
|
|
1326
|
+
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
1327
|
+
*/
|
|
1328
|
+
HostEvent["UpdateFilters"] = "updateFilters";
|
|
1329
|
+
/*
|
|
1330
|
+
* Get Tab for the current Liveboard.
|
|
1331
|
+
*
|
|
1332
|
+
* @example
|
|
1333
|
+
* ```js
|
|
1334
|
+
* liveboardEmbed.trigger(HostEvent.GetTabs).then((tabDetails) => {
|
|
1335
|
+
* console.log(
|
|
1336
|
+
* tabDetails // TabDetails of current LB
|
|
1337
|
+
* );
|
|
1338
|
+
* })
|
|
1339
|
+
* ```
|
|
1340
|
+
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
|
|
1341
|
+
*/
|
|
1342
|
+
HostEvent["GetTabs"] = "getTabs";
|
|
1343
|
+
/**
|
|
1344
|
+
* Set the visible Tabs on a Liveboard.
|
|
1345
|
+
*
|
|
1346
|
+
* @param - an array of ids of Tabs to show, the ids not passed
|
|
1347
|
+
* will be hidden.
|
|
1348
|
+
* @example
|
|
1349
|
+
* ```js
|
|
1350
|
+
* liveboardEmbed.trigger(HostEvent.SetVisibleTabs, [
|
|
1351
|
+
* '430496d6-6903-4601-937e-2c691821af3c',
|
|
1352
|
+
* 'f547ec54-2a37-4516-a222-2b06719af726'])
|
|
1353
|
+
* ```
|
|
1354
|
+
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
|
|
1355
|
+
*/
|
|
1356
|
+
HostEvent["SetVisibleTabs"] = "SetPinboardVisibleTabs";
|
|
1357
|
+
/**
|
|
1358
|
+
* Set the hidden tabs on a Liveboard.
|
|
1359
|
+
*
|
|
1360
|
+
* @param - an array of ids of Tabs to hide, the ids not passed
|
|
1361
|
+
* will be shown.
|
|
1362
|
+
* @example
|
|
1363
|
+
* ```js
|
|
1364
|
+
* liveboardEmbed.trigger(HostEvent.SetHiddenTabs, [
|
|
1365
|
+
* '630496d6-6903-4601-937e-2c691821af3c',
|
|
1366
|
+
* 'i547ec54-2a37-4516-a222-2b06719af726'])
|
|
1367
|
+
* ```
|
|
1368
|
+
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
|
|
1369
|
+
*/
|
|
1370
|
+
HostEvent["SetHiddenTabs"] = "SetPinboardHiddenTabs";
|
|
1245
1371
|
})(HostEvent = exports.HostEvent || (exports.HostEvent = {}));
|
|
1246
1372
|
/**
|
|
1247
1373
|
* The different visual modes that the data sources panel within
|
|
@@ -1321,27 +1447,51 @@ var Param;
|
|
|
1321
1447
|
Param["DisableWorksheetChange"] = "disableWorksheetChange";
|
|
1322
1448
|
Param["HideEurekaResults"] = "hideEurekaResults";
|
|
1323
1449
|
Param["HideEurekaSuggestions"] = "hideEurekaSuggestions";
|
|
1450
|
+
Param["HideLiveboardHeader"] = "hideLiveboardHeader";
|
|
1451
|
+
Param["ShowLiveboardDescription"] = "showLiveboardDescription";
|
|
1452
|
+
Param["ShowLiveboardTitle"] = "showLiveboardTitle";
|
|
1453
|
+
Param["HiddenTabs"] = "hideTabs";
|
|
1454
|
+
Param["VisibleTabs"] = "visibleTabs";
|
|
1455
|
+
Param["HideTabPanel"] = "hideTabPanel";
|
|
1324
1456
|
})(Param = exports.Param || (exports.Param = {}));
|
|
1325
1457
|
/**
|
|
1326
|
-
*
|
|
1327
|
-
*
|
|
1328
|
-
*
|
|
1329
|
-
*
|
|
1330
|
-
*
|
|
1331
|
-
*
|
|
1458
|
+
* ThoughtSpot application pages include actions and menu commands
|
|
1459
|
+
* for various user-initiated operations. These actions are represented
|
|
1460
|
+
* as enumeration members in the SDK. To show, hide, or disable
|
|
1461
|
+
* specific actions in the embedded view, define the Action
|
|
1462
|
+
* enumeration members in the `disabledActions`, `visibleActions`,
|
|
1463
|
+
* or `hiddenActions` array.
|
|
1332
1464
|
* @example
|
|
1333
1465
|
* ```js
|
|
1334
1466
|
* const embed = new LiveboardEmbed('#embed-container', {
|
|
1335
1467
|
* ... // other options
|
|
1336
|
-
* visibleActions: [Action.Save, Action.Explore],
|
|
1337
|
-
*
|
|
1338
|
-
* hiddenActions: [
|
|
1468
|
+
* visibleActions: [Action.Save, Action.Edit, Action.Present, ActionAction.Explore],
|
|
1469
|
+
* disabledActions: [Action.Download],
|
|
1470
|
+
* //hiddenActions: [], // Set either this or visibleActions
|
|
1339
1471
|
* })
|
|
1340
1472
|
* ```
|
|
1473
|
+
* @example
|
|
1474
|
+
* ```js
|
|
1475
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
1476
|
+
* ... // other options
|
|
1477
|
+
* //visibleActions: [],
|
|
1478
|
+
* disabledActions: [Action.Download],
|
|
1479
|
+
* hiddenActions: [Action.Edit, ActionAction.Explore],
|
|
1480
|
+
* })
|
|
1481
|
+
* ```
|
|
1482
|
+
|
|
1341
1483
|
*/
|
|
1342
1484
|
// eslint-disable-next-line no-shadow
|
|
1343
1485
|
var Action;
|
|
1344
1486
|
(function (Action) {
|
|
1487
|
+
/**
|
|
1488
|
+
* The **Save** action on an Answer or Liveboard.
|
|
1489
|
+
* Allows users to save the changes.
|
|
1490
|
+
* @example
|
|
1491
|
+
* ```js
|
|
1492
|
+
* disabledActions: [Action.SaveAsView]
|
|
1493
|
+
* ```
|
|
1494
|
+
*/
|
|
1345
1495
|
Action["Save"] = "save";
|
|
1346
1496
|
/**
|
|
1347
1497
|
* @hidden
|
|
@@ -1351,27 +1501,137 @@ var Action;
|
|
|
1351
1501
|
* @hidden
|
|
1352
1502
|
*/
|
|
1353
1503
|
Action["SaveUntitled"] = "saveUntitled";
|
|
1504
|
+
/**
|
|
1505
|
+
* The **Save as View** action on the Answer
|
|
1506
|
+
* page. Saves an Answer as a View object.
|
|
1507
|
+
*
|
|
1508
|
+
* @example
|
|
1509
|
+
* ```js
|
|
1510
|
+
* disabledActions: [Action.SaveAsView]
|
|
1511
|
+
* ```
|
|
1512
|
+
*/
|
|
1354
1513
|
Action["SaveAsView"] = "saveAsView";
|
|
1514
|
+
/**
|
|
1515
|
+
* The **Make a copy** action on a Liveboard or Answer
|
|
1516
|
+
* page.
|
|
1517
|
+
* Creates a copy of the Liveboard, visualization,
|
|
1518
|
+
* or Answer.
|
|
1519
|
+
*
|
|
1520
|
+
* @example
|
|
1521
|
+
* ```js
|
|
1522
|
+
* disabledActions: [Action.MakeACopy]
|
|
1523
|
+
* ```
|
|
1524
|
+
*/
|
|
1355
1525
|
Action["MakeACopy"] = "makeACopy";
|
|
1526
|
+
/**
|
|
1527
|
+
* The **Copy and Edit** action on a Liveboard.
|
|
1528
|
+
* This action is now replaced with `Action.MakeACopy`.
|
|
1529
|
+
*
|
|
1530
|
+
* @example
|
|
1531
|
+
* ```js
|
|
1532
|
+
* disabledActions: [Action.EditACopy]
|
|
1533
|
+
* ```
|
|
1534
|
+
*/
|
|
1356
1535
|
Action["EditACopy"] = "editACopy";
|
|
1536
|
+
/**
|
|
1537
|
+
* The **Copy link** menu action on a Liveboard visualization.
|
|
1538
|
+
* Copies the visualization URL
|
|
1539
|
+
* @example
|
|
1540
|
+
* ```js
|
|
1541
|
+
* disabledActions: [Action.CopyLink]
|
|
1542
|
+
* ```
|
|
1543
|
+
*/
|
|
1357
1544
|
Action["CopyLink"] = "embedDocument";
|
|
1358
1545
|
/**
|
|
1359
1546
|
* @hidden
|
|
1360
1547
|
*/
|
|
1361
1548
|
Action["ResetLayout"] = "resetLayout";
|
|
1549
|
+
/**
|
|
1550
|
+
* The **Schedule** menu action on a Liveboard.
|
|
1551
|
+
* Allows scheduling a Liveboard notification.
|
|
1552
|
+
* @example
|
|
1553
|
+
* ```js
|
|
1554
|
+
* disabledActions: [Action.Schedule]
|
|
1555
|
+
* ```
|
|
1556
|
+
*/
|
|
1362
1557
|
Action["Schedule"] = "subscription";
|
|
1558
|
+
/**
|
|
1559
|
+
* The **Manage schedules** menu action on a Liveboard.
|
|
1560
|
+
* Allows users to manage scheduled Liveboard jobs.
|
|
1561
|
+
* @example
|
|
1562
|
+
* ```js
|
|
1563
|
+
* disabledActions: [Action.SchedulesList]
|
|
1564
|
+
* ```
|
|
1565
|
+
*/
|
|
1363
1566
|
Action["SchedulesList"] = "schedule-list";
|
|
1567
|
+
/**
|
|
1568
|
+
* The **Share** action on a Liveboard, Answer, or Worksheet.
|
|
1569
|
+
* Allows users to share an object with other users and groups.
|
|
1570
|
+
* @example
|
|
1571
|
+
* ```js
|
|
1572
|
+
* disabledActions: [Action.Share]
|
|
1573
|
+
* ```
|
|
1574
|
+
*/
|
|
1364
1575
|
Action["Share"] = "share";
|
|
1576
|
+
/**
|
|
1577
|
+
* The **Add filter** action on a Liveboard and Search page.
|
|
1578
|
+
* Allows adding filters to Answers and visualizations on a Liveboard.
|
|
1579
|
+
* @example
|
|
1580
|
+
* ```js
|
|
1581
|
+
* disabledActions: [Action.AddFilter]
|
|
1582
|
+
* ```
|
|
1583
|
+
*/
|
|
1365
1584
|
Action["AddFilter"] = "addFilter";
|
|
1585
|
+
/**
|
|
1586
|
+
* Filter configuration options on a Liveboard and Search page.
|
|
1587
|
+
* Allows configuring filter options when adding filters to a
|
|
1588
|
+
* Liveboard or Answer.
|
|
1589
|
+
* @example
|
|
1590
|
+
* ```js
|
|
1591
|
+
* disabledActions: [Action.ConfigureFilter]
|
|
1592
|
+
* ```
|
|
1593
|
+
*/
|
|
1366
1594
|
Action["ConfigureFilter"] = "configureFilter";
|
|
1367
1595
|
Action["CollapseDataSources"] = "collapseDataSources";
|
|
1596
|
+
/**
|
|
1597
|
+
* The **Choose sources** button on Search page.
|
|
1598
|
+
* Allows selecting data sources for search queries.
|
|
1599
|
+
* @example
|
|
1600
|
+
* ```js
|
|
1601
|
+
* disabledActions: [Action.ChooseDataSources]
|
|
1602
|
+
* ```
|
|
1603
|
+
*/
|
|
1368
1604
|
Action["ChooseDataSources"] = "chooseDataSources";
|
|
1605
|
+
/**
|
|
1606
|
+
* The **Create formula** action on a Search or Answer page.
|
|
1607
|
+
* Allows adding formulas to an Answer.
|
|
1608
|
+
* @example
|
|
1609
|
+
* ```js
|
|
1610
|
+
* disabledActions: [Action.AddFormula]
|
|
1611
|
+
* ```
|
|
1612
|
+
*/
|
|
1369
1613
|
Action["AddFormula"] = "addFormula";
|
|
1614
|
+
/**
|
|
1615
|
+
* The **Add parameter** action on a Liveboard or Answer.
|
|
1616
|
+
* Allows adding Parameters to a Liveboard or Answer.
|
|
1617
|
+
* @example
|
|
1618
|
+
* ```js
|
|
1619
|
+
* disabledActions: [Action.AddParameter]
|
|
1620
|
+
* ```
|
|
1621
|
+
*/
|
|
1370
1622
|
Action["AddParameter"] = "addParameter";
|
|
1371
1623
|
/**
|
|
1372
1624
|
* @hidden
|
|
1373
1625
|
*/
|
|
1374
1626
|
Action["SearchOnTop"] = "searchOnTop";
|
|
1627
|
+
/**
|
|
1628
|
+
* The **SpotIQ analyze** menu action on a visualization or
|
|
1629
|
+
* Answer page.
|
|
1630
|
+
* @example
|
|
1631
|
+
* ```js
|
|
1632
|
+
* disabledActions: [Action.SpotIQAnalyze]
|
|
1633
|
+
* ```
|
|
1634
|
+
*/
|
|
1375
1635
|
Action["SpotIQAnalyze"] = "spotIQAnalyze";
|
|
1376
1636
|
/**
|
|
1377
1637
|
* @hidden
|
|
@@ -1386,24 +1646,150 @@ var Action;
|
|
|
1386
1646
|
* @hidden
|
|
1387
1647
|
*/
|
|
1388
1648
|
Action["ReplaySearch"] = "replaySearch";
|
|
1649
|
+
/**
|
|
1650
|
+
* The **Show underlying data** menu action on a visualization or
|
|
1651
|
+
* Answer page.
|
|
1652
|
+
* @example
|
|
1653
|
+
* ```js
|
|
1654
|
+
* disabledActions: [Action.ShowUnderlyingData]
|
|
1655
|
+
* ```
|
|
1656
|
+
*/
|
|
1389
1657
|
Action["ShowUnderlyingData"] = "showUnderlyingData";
|
|
1658
|
+
/**
|
|
1659
|
+
* The **Download** menu action on Liveboard visualizations
|
|
1660
|
+
* and Answers.
|
|
1661
|
+
* Allows downloading a visualization or Answer.
|
|
1662
|
+
* @example
|
|
1663
|
+
* ```js
|
|
1664
|
+
* disabledActions: [Action.DownloadAsPng]
|
|
1665
|
+
* ```
|
|
1666
|
+
*/
|
|
1390
1667
|
Action["Download"] = "download";
|
|
1668
|
+
/**
|
|
1669
|
+
* The **Download** > **PNG** menu action for charts on a Liveboard
|
|
1670
|
+
* or Answer page.
|
|
1671
|
+
* Downloads a visualization or Answer as a PNG file.
|
|
1672
|
+
* @example
|
|
1673
|
+
* ```js
|
|
1674
|
+
* disabledActions: [Action.DownloadAsPng]
|
|
1675
|
+
* ```
|
|
1676
|
+
*/
|
|
1391
1677
|
Action["DownloadAsPng"] = "downloadAsPng";
|
|
1678
|
+
/**
|
|
1679
|
+
* The **Download** > **PDF** menu action on a Liveboard.
|
|
1680
|
+
* Downloads a visualization or Answer as a PDF file.
|
|
1681
|
+
* @example
|
|
1682
|
+
* ```js
|
|
1683
|
+
* disabledActions: [Action.DownloadAsPdf]
|
|
1684
|
+
* ```
|
|
1685
|
+
*/
|
|
1392
1686
|
Action["DownloadAsPdf"] = "downloadAsPdf";
|
|
1687
|
+
/**
|
|
1688
|
+
* The **Download** > **CSV** menu action for tables on a Liveboard
|
|
1689
|
+
* or Answer page.
|
|
1690
|
+
* Downloads a visualization or Answer in the XLSX format.
|
|
1691
|
+
* @example
|
|
1692
|
+
* ```js
|
|
1693
|
+
* disabledActions: [Action.DownloadAsCsv]
|
|
1694
|
+
* ```
|
|
1695
|
+
*/
|
|
1393
1696
|
Action["DownloadAsCsv"] = "downloadAsCSV";
|
|
1697
|
+
/**
|
|
1698
|
+
* The **Download** > **XLSX** menu action for tables on a Liveboard
|
|
1699
|
+
* or Answer page.
|
|
1700
|
+
* Downloads a visualization or Answer in the XLSX format.
|
|
1701
|
+
* @example
|
|
1702
|
+
* ```js
|
|
1703
|
+
* disabledActions: [Action.DownloadAsXlsx]
|
|
1704
|
+
* ```
|
|
1705
|
+
*/
|
|
1394
1706
|
Action["DownloadAsXlsx"] = "downloadAsXLSX";
|
|
1395
1707
|
/**
|
|
1396
1708
|
* @hidden
|
|
1397
1709
|
*/
|
|
1398
1710
|
Action["DownloadTrace"] = "downloadTrace";
|
|
1711
|
+
/**
|
|
1712
|
+
* The **Export TML** menu action on Liveboard, Answers
|
|
1713
|
+
* Worksheets and Data Connections page.
|
|
1714
|
+
* Exports an object as a TML file.
|
|
1715
|
+
* @example
|
|
1716
|
+
* ```js
|
|
1717
|
+
* disabledActions: [Action.ExportTML]
|
|
1718
|
+
* ```
|
|
1719
|
+
*/
|
|
1399
1720
|
Action["ExportTML"] = "exportTSL";
|
|
1721
|
+
/**
|
|
1722
|
+
* The **Import TML** menu action for Liveboards and Answers.
|
|
1723
|
+
* Imports TML representation of ThoughtSpot objects.
|
|
1724
|
+
* @example
|
|
1725
|
+
* ```js
|
|
1726
|
+
* disabledActions: [Action.ImportTML]
|
|
1727
|
+
* ```
|
|
1728
|
+
*/
|
|
1400
1729
|
Action["ImportTML"] = "importTSL";
|
|
1730
|
+
/**
|
|
1731
|
+
* The **Update TML** menu action for Liveboards and Answers.
|
|
1732
|
+
* Update TML representation of ThoughtSpot objects.
|
|
1733
|
+
* @example
|
|
1734
|
+
* ```js
|
|
1735
|
+
* disabledActions: [Action.UpdateTML]
|
|
1736
|
+
* ```
|
|
1737
|
+
*/
|
|
1401
1738
|
Action["UpdateTML"] = "updateTSL";
|
|
1739
|
+
/**
|
|
1740
|
+
* The **Edit TML** menu action for Liveboards and Answers.
|
|
1741
|
+
* Opens the TML editor.
|
|
1742
|
+
* @example
|
|
1743
|
+
* ```js
|
|
1744
|
+
* disabledActions: [Action.EditTML]
|
|
1745
|
+
* ```
|
|
1746
|
+
*/
|
|
1402
1747
|
Action["EditTML"] = "editTSL";
|
|
1748
|
+
/**
|
|
1749
|
+
* The **Present** menu action for Liveboards and Answers.
|
|
1750
|
+
* Allows presenting a Liveboard or visualization in
|
|
1751
|
+
* slideshow mode.
|
|
1752
|
+
* @example
|
|
1753
|
+
* ```js
|
|
1754
|
+
* disabledActions: [Action.Present]
|
|
1755
|
+
* ```
|
|
1756
|
+
*/
|
|
1403
1757
|
Action["Present"] = "present";
|
|
1758
|
+
/**
|
|
1759
|
+
* The tile resize options in the visualization menu.
|
|
1760
|
+
* Allows switching between different preset layouts.
|
|
1761
|
+
* @example
|
|
1762
|
+
* ```js
|
|
1763
|
+
* disabledActions: [Action.ToggleSize]
|
|
1764
|
+
* ```
|
|
1765
|
+
*/
|
|
1404
1766
|
Action["ToggleSize"] = "toggleSize";
|
|
1767
|
+
/**
|
|
1768
|
+
* The *Edit* action on the Liveboard page and in the
|
|
1769
|
+
* visualization menu.
|
|
1770
|
+
* Opens a Liveboard or visualization in edit mode.
|
|
1771
|
+
* @example
|
|
1772
|
+
* ```js
|
|
1773
|
+
* disabledActions: [Action.Edit]
|
|
1774
|
+
* ```
|
|
1775
|
+
*/
|
|
1405
1776
|
Action["Edit"] = "edit";
|
|
1777
|
+
/**
|
|
1778
|
+
* The text edit option for Liveboard and visualization titles.
|
|
1779
|
+
* @example
|
|
1780
|
+
* ```js
|
|
1781
|
+
* disabledActions: [Action.EditTitle]
|
|
1782
|
+
* ```
|
|
1783
|
+
*/
|
|
1406
1784
|
Action["EditTitle"] = "editTitle";
|
|
1785
|
+
/**
|
|
1786
|
+
* The **Delete** menu action on Liveboards and visualizations.
|
|
1787
|
+
* Deletes a Liveboard or a visualization from a Liveboard.
|
|
1788
|
+
* @example
|
|
1789
|
+
* ```js
|
|
1790
|
+
* disabledActions: [Action.Remove]
|
|
1791
|
+
* ```
|
|
1792
|
+
*/
|
|
1407
1793
|
Action["Remove"] = "delete";
|
|
1408
1794
|
/**
|
|
1409
1795
|
* @hidden
|
|
@@ -1425,6 +1811,16 @@ var Action;
|
|
|
1425
1811
|
* @hidden
|
|
1426
1812
|
*/
|
|
1427
1813
|
Action["PinboardInfo"] = "pinboardInfo";
|
|
1814
|
+
/**
|
|
1815
|
+
* The **Show Liveboard details** menu action on a Liveboard.
|
|
1816
|
+
* Displays details such as the name, description, and
|
|
1817
|
+
* author of the Liveboard, and timestamp of Liveboard creation
|
|
1818
|
+
* and update.
|
|
1819
|
+
* @example
|
|
1820
|
+
* ```js
|
|
1821
|
+
* disabledActions: [Action.LiveboardInfo]
|
|
1822
|
+
* ```
|
|
1823
|
+
*/
|
|
1428
1824
|
Action["LiveboardInfo"] = "pinboardInfo";
|
|
1429
1825
|
/**
|
|
1430
1826
|
* @hidden
|
|
@@ -1435,20 +1831,61 @@ var Action;
|
|
|
1435
1831
|
*/
|
|
1436
1832
|
Action["DownloadEmbraceQueries"] = "downloadEmbraceQueries";
|
|
1437
1833
|
/**
|
|
1438
|
-
|
|
1439
|
-
|
|
1834
|
+
* The **Pin** menu action on an Answer or
|
|
1835
|
+
* Search results page.
|
|
1836
|
+
* @example
|
|
1837
|
+
* ```js
|
|
1838
|
+
* disabledActions: [Action.Pin]
|
|
1839
|
+
* ```
|
|
1840
|
+
*/
|
|
1440
1841
|
Action["Pin"] = "pin";
|
|
1441
1842
|
/**
|
|
1442
1843
|
* @hidden
|
|
1443
1844
|
*/
|
|
1444
1845
|
Action["AnalysisInfo"] = "analysisInfo";
|
|
1445
|
-
Action["Subscription"] = "subscription";
|
|
1446
1846
|
/**
|
|
1447
|
-
*
|
|
1847
|
+
* The **Schedule** menu action on a Liveboard.
|
|
1848
|
+
* @example
|
|
1849
|
+
* ```js
|
|
1850
|
+
* disabledActions: [Action.Subscription]
|
|
1851
|
+
* ```
|
|
1448
1852
|
*/
|
|
1853
|
+
Action["Subscription"] = "subscription";
|
|
1854
|
+
/**
|
|
1855
|
+
* The **Explore** action on Liveboard visualizations
|
|
1856
|
+
* @example
|
|
1857
|
+
* ```js
|
|
1858
|
+
* disabledActions: [Action.Explore]
|
|
1859
|
+
* ```
|
|
1860
|
+
*/
|
|
1449
1861
|
Action["Explore"] = "explore";
|
|
1862
|
+
/**
|
|
1863
|
+
* The action to include data points on a drilled-down Answer
|
|
1864
|
+
* or visualization
|
|
1865
|
+
* @example
|
|
1866
|
+
* ```js
|
|
1867
|
+
* disabledActions: [Action.DrillInclude]
|
|
1868
|
+
* ```
|
|
1869
|
+
*/
|
|
1450
1870
|
Action["DrillInclude"] = "context-menu-item-include";
|
|
1871
|
+
/**
|
|
1872
|
+
* The action to exclude data points on a drilled-down Answer
|
|
1873
|
+
* or visualization
|
|
1874
|
+
* @example
|
|
1875
|
+
* ```js
|
|
1876
|
+
* disabledActions: [Action.DrillInclude]
|
|
1877
|
+
* ```
|
|
1878
|
+
*/
|
|
1451
1879
|
Action["DrillExclude"] = "context-menu-item-exclude";
|
|
1880
|
+
/**
|
|
1881
|
+
* The **Copy to clipboard** menu action on tables in an Answer
|
|
1882
|
+
* or Liveboard.
|
|
1883
|
+
* Copies the selected data point.
|
|
1884
|
+
* @example
|
|
1885
|
+
* ```js
|
|
1886
|
+
* disabledActions: [Action.CopyToClipboard]
|
|
1887
|
+
* ```
|
|
1888
|
+
*/
|
|
1452
1889
|
Action["CopyToClipboard"] = "context-menu-item-copy-to-clipboard";
|
|
1453
1890
|
Action["CopyAndEdit"] = "context-menu-item-copy-and-edit";
|
|
1454
1891
|
/**
|
|
@@ -1457,89 +1894,266 @@ var Action;
|
|
|
1457
1894
|
Action["DrillEdit"] = "context-menu-item-edit";
|
|
1458
1895
|
Action["EditMeasure"] = "context-menu-item-edit-measure";
|
|
1459
1896
|
Action["Separator"] = "context-menu-item-separator";
|
|
1897
|
+
/**
|
|
1898
|
+
* The **Drill down** menu action on Answers and Liveboard
|
|
1899
|
+
* visualizations.
|
|
1900
|
+
* Allows drilling down to a specific data point on a chart or table.
|
|
1901
|
+
* @example
|
|
1902
|
+
* ```js
|
|
1903
|
+
* disabledActions: [Action.DrillDown]
|
|
1904
|
+
* ```
|
|
1905
|
+
*/
|
|
1460
1906
|
Action["DrillDown"] = "DRILL";
|
|
1907
|
+
/**
|
|
1908
|
+
* The request access action on Liveboards.
|
|
1909
|
+
* Allows users with view permissions to request edit access to a Liveboard.
|
|
1910
|
+
* @example
|
|
1911
|
+
* ```js
|
|
1912
|
+
* disabledActions: [Action.RequestAccess]
|
|
1913
|
+
* ```
|
|
1914
|
+
*/
|
|
1461
1915
|
Action["RequestAccess"] = "requestAccess";
|
|
1462
|
-
Action["QueryDetailsButtons"] = "queryDetailsButtons";
|
|
1463
1916
|
/**
|
|
1464
|
-
*
|
|
1917
|
+
* The **Query visualizer** and **Query SQL** buttons in Query details panel
|
|
1918
|
+
* of the Answer page
|
|
1919
|
+
* @example
|
|
1920
|
+
* ```js
|
|
1921
|
+
* disabledActions: [Action.QueryDetailsButtons]
|
|
1922
|
+
* ```
|
|
1923
|
+
*/
|
|
1924
|
+
Action["QueryDetailsButtons"] = "QueryDetailsButtons";
|
|
1925
|
+
/**
|
|
1926
|
+
* The **Delete** action for Answers.
|
|
1927
|
+
* @example
|
|
1928
|
+
* ```js
|
|
1929
|
+
* disabledActions: [Action.AnswerDelete]
|
|
1930
|
+
* ```
|
|
1931
|
+
* @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
|
|
1465
1932
|
*/
|
|
1466
1933
|
Action["AnswerDelete"] = "onDeleteAnswer";
|
|
1467
1934
|
/**
|
|
1468
|
-
*
|
|
1935
|
+
* The Chart switcher icon on Answer and visualization pages.
|
|
1936
|
+
* @example
|
|
1937
|
+
* ```js
|
|
1938
|
+
* disabledActions: [Action.AnswerChartSwitcher]
|
|
1939
|
+
* ```
|
|
1940
|
+
* @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
|
|
1469
1941
|
*/
|
|
1470
1942
|
Action["AnswerChartSwitcher"] = "answerChartSwitcher";
|
|
1471
1943
|
/**
|
|
1472
|
-
*
|
|
1944
|
+
* Favorites icon (*) on Answers, Liveboard, and Data pages
|
|
1945
|
+
* @example
|
|
1946
|
+
* ```js
|
|
1947
|
+
* disabledActions: [Action.AddToFavorites]
|
|
1948
|
+
* ```
|
|
1949
|
+
* @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
|
|
1473
1950
|
*/
|
|
1474
1951
|
Action["AddToFavorites"] = "addToFavorites";
|
|
1475
1952
|
/**
|
|
1476
|
-
*
|
|
1953
|
+
* The edit icon on Liveboards (Classic experience).
|
|
1954
|
+
* @example
|
|
1955
|
+
* ```js
|
|
1956
|
+
* disabledActions: [Action.EditDetails]
|
|
1957
|
+
* ```
|
|
1958
|
+
* @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
|
|
1477
1959
|
*/
|
|
1478
1960
|
Action["EditDetails"] = "editDetails";
|
|
1479
1961
|
/**
|
|
1480
|
-
*
|
|
1962
|
+
* The Create alert action on KPI charts.
|
|
1963
|
+
* @example
|
|
1964
|
+
* ```js
|
|
1965
|
+
* disabledActions: [Action.CreateMonitor ]
|
|
1966
|
+
* ```
|
|
1967
|
+
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1481
1968
|
*/
|
|
1482
1969
|
Action["CreateMonitor"] = "createMonitor";
|
|
1483
1970
|
/**
|
|
1484
|
-
* @
|
|
1971
|
+
* @example
|
|
1972
|
+
* ```js
|
|
1973
|
+
* disabledActions: [Action.ReportError]
|
|
1974
|
+
* ```
|
|
1975
|
+
* @version SDK: 1.11.1 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1485
1976
|
*/
|
|
1486
1977
|
Action["ReportError"] = "reportError";
|
|
1978
|
+
/**
|
|
1979
|
+
* The **Sync to sheets** action on Answers and Liveboard visualizations.
|
|
1980
|
+
* Allows sending data to a Google Sheet.
|
|
1981
|
+
* @example
|
|
1982
|
+
* ```js
|
|
1983
|
+
* disabledActions: [Action.SyncToSheets]
|
|
1984
|
+
* ```
|
|
1985
|
+
* @version SDK: 1.18.0| ThoughtSpot: 8.10.0.cl, 9.0.1.sw
|
|
1986
|
+
*/
|
|
1487
1987
|
Action["SyncToSheets"] = "sync-to-sheets";
|
|
1988
|
+
/**
|
|
1989
|
+
* The **Sync to other apps** action on Answers and Liveboard visualizations.
|
|
1990
|
+
* Allows sending data to third-party apps like Slack, Salesforce,
|
|
1991
|
+
* Microsoft Teams, and so on.
|
|
1992
|
+
* @example
|
|
1993
|
+
* ```js
|
|
1994
|
+
* disabledActions: [Action.SyncToOtherApps]
|
|
1995
|
+
* ```
|
|
1996
|
+
* @version SDK: 1.18.0| ThoughtSpot: 8.10.0.cl, 9.0.1.sw
|
|
1997
|
+
*/
|
|
1488
1998
|
Action["SyncToOtherApps"] = "sync-to-other-apps";
|
|
1999
|
+
/**
|
|
2000
|
+
* The **Manage pipelines** action on Answers and Liveboard visualizations.
|
|
2001
|
+
* Allows users to manage data sync pipelines to third-party apps.
|
|
2002
|
+
* @example
|
|
2003
|
+
* ```js
|
|
2004
|
+
* disabledActions: [Action.SyncToOtherApps]
|
|
2005
|
+
* ```
|
|
2006
|
+
* @version SDK: 1.18.0| ThoughtSpot: 8.10.0.cl, 9.0.1.sw
|
|
2007
|
+
*/
|
|
1489
2008
|
Action["ManagePipelines"] = "manage-pipeline";
|
|
1490
2009
|
/**
|
|
2010
|
+
* The **Filter** action on Liveboard visualizations.
|
|
2011
|
+
* Allows users to apply cross-filters on a Liveboard.
|
|
2012
|
+
* @example
|
|
2013
|
+
* ```js
|
|
2014
|
+
* disabledActions: [Action.CrossFilter]
|
|
2015
|
+
* ```
|
|
1491
2016
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
1492
2017
|
*/
|
|
1493
2018
|
Action["CrossFilter"] = "context-menu-item-cross-filter";
|
|
1494
2019
|
/**
|
|
2020
|
+
* The **Remove** action that appears when cross filters are applied
|
|
2021
|
+
* on a Liveboard.
|
|
2022
|
+
* Removes filters applied o a visualization.
|
|
2023
|
+
* @example
|
|
2024
|
+
* ```js
|
|
2025
|
+
* disabledActions: [Action.RemoveCrossFilter]
|
|
2026
|
+
* ```
|
|
1495
2027
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
1496
2028
|
*/
|
|
1497
2029
|
Action["RemoveCrossFilter"] = "context-menu-item-remove-cross-filter";
|
|
1498
2030
|
/**
|
|
2031
|
+
* The **Aggregate** option in the chart axis or the
|
|
2032
|
+
* table column customization menu.
|
|
2033
|
+
* Provides aggregation options to analyze the data on a chart or table.
|
|
2034
|
+
* @example
|
|
2035
|
+
* ```js
|
|
2036
|
+
* disabledActions: [Action.AxisMenuAggregate]
|
|
2037
|
+
* ```
|
|
1499
2038
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
1500
2039
|
*/
|
|
1501
2040
|
Action["AxisMenuAggregate"] = "axisMenuAggregate";
|
|
1502
2041
|
/**
|
|
2042
|
+
* The **Time bucket** option in the chart axis or table column
|
|
2043
|
+
* customization menu.
|
|
2044
|
+
* Allows defining time metric for date comparison.
|
|
2045
|
+
* @example
|
|
2046
|
+
* ```js
|
|
2047
|
+
* disabledActions: [Action.AxisMenuTimeBucket]
|
|
2048
|
+
* ```
|
|
1503
2049
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
1504
2050
|
*/
|
|
1505
2051
|
Action["AxisMenuTimeBucket"] = "axisMenuTimeBucket";
|
|
1506
2052
|
/**
|
|
2053
|
+
* The **Filter** action in the chart axis or table column
|
|
2054
|
+
* customization menu.
|
|
2055
|
+
* @example
|
|
2056
|
+
* ```js
|
|
2057
|
+
* disabledActions: [Action.AxisMenuFilter]
|
|
2058
|
+
* ```
|
|
1507
2059
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
1508
2060
|
*/
|
|
1509
2061
|
Action["AxisMenuFilter"] = "axisMenuFilter";
|
|
1510
2062
|
/**
|
|
2063
|
+
* The **Conditional formatting** action on chart or table.
|
|
2064
|
+
* Allows adding rules for conditional formatting of data
|
|
2065
|
+
* points on a chart or table.
|
|
2066
|
+
* @example
|
|
2067
|
+
* ```js
|
|
2068
|
+
* disabledActions: [Action.AxisMenuConditionalFormat]
|
|
2069
|
+
* ```
|
|
1511
2070
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
1512
2071
|
*/
|
|
1513
2072
|
Action["AxisMenuConditionalFormat"] = "axisMenuConditionalFormat";
|
|
1514
2073
|
/**
|
|
2074
|
+
* The **Sort** menu action on a table or chart axis
|
|
2075
|
+
* Sorts data in ascending or descending order.
|
|
2076
|
+
* Allows adding, editing, or removing filters.
|
|
2077
|
+
* @example
|
|
2078
|
+
* ```js
|
|
2079
|
+
* disabledActions: [Action.AxisMenuConditionalFormat]
|
|
2080
|
+
* ```
|
|
1515
2081
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
1516
2082
|
*/
|
|
1517
2083
|
Action["AxisMenuSort"] = "axisMenuSort";
|
|
1518
2084
|
/**
|
|
2085
|
+
* The **Group** option in the chart axis or table column
|
|
2086
|
+
* customization menu.
|
|
2087
|
+
* Allows grouping data points if the axes use the same
|
|
2088
|
+
* unit of measurement and a similar scale.
|
|
2089
|
+
* @example
|
|
2090
|
+
* ```js
|
|
2091
|
+
* disabledActions: [Action.AxisMenuGroup]
|
|
2092
|
+
* ```
|
|
1519
2093
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
1520
2094
|
*/
|
|
1521
2095
|
Action["AxisMenuGroup"] = "axisMenuGroup";
|
|
1522
2096
|
/**
|
|
2097
|
+
* The **Position** option in the axis customization menu.
|
|
2098
|
+
* Allows changing the position of the axis to the
|
|
2099
|
+
* left or right side of the chart.
|
|
2100
|
+
* @example
|
|
2101
|
+
* ```js
|
|
2102
|
+
* disabledActions: [Action.AxisMenuPosition]
|
|
2103
|
+
* ```
|
|
1523
2104
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
1524
2105
|
*/
|
|
1525
2106
|
Action["AxisMenuPosition"] = "axisMenuPosition";
|
|
1526
2107
|
/**
|
|
2108
|
+
* The **Rename** option in the chart axis or table column customization menu.
|
|
2109
|
+
* Renames the axis label on a chart or the column header on a table.
|
|
2110
|
+
* @example
|
|
2111
|
+
* ```js
|
|
2112
|
+
* disabledActions: [Action.AxisMenuRename]
|
|
2113
|
+
* ```
|
|
1527
2114
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
1528
2115
|
*/
|
|
1529
2116
|
Action["AxisMenuRename"] = "axisMenuRename";
|
|
1530
2117
|
/**
|
|
2118
|
+
* The **Edit** action in the axis customization menu.
|
|
2119
|
+
* Allows editing the axis name, position, minimum and maximum values,
|
|
2120
|
+
* and format of a column.
|
|
2121
|
+
* @example
|
|
2122
|
+
* ```js
|
|
2123
|
+
* disabledActions: [Action.AxisMenuEdit]
|
|
2124
|
+
* ```
|
|
1531
2125
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
1532
2126
|
*/
|
|
1533
2127
|
Action["AxisMenuEdit"] = "axisMenuEdit";
|
|
1534
2128
|
/**
|
|
2129
|
+
* The **Number format** action to customize the format of
|
|
2130
|
+
* the data labels on a chart or table.
|
|
2131
|
+
* @example
|
|
2132
|
+
* ```js
|
|
2133
|
+
* disabledActions: [Action.AxisMenuNumberFormat]
|
|
2134
|
+
* ```
|
|
1535
2135
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
1536
2136
|
*/
|
|
1537
2137
|
Action["AxisMenuNumberFormat"] = "axisMenuNumberFormat";
|
|
1538
2138
|
/**
|
|
2139
|
+
* The **Text wrapping** action on a table.
|
|
2140
|
+
* Wraps or clips column text on a table.
|
|
2141
|
+
* @example
|
|
2142
|
+
* ```js
|
|
2143
|
+
* disabledActions: [Action.AxisMenuTextWrapping]
|
|
2144
|
+
* ```
|
|
1539
2145
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
1540
2146
|
*/
|
|
1541
2147
|
Action["AxisMenuTextWrapping"] = "axisMenuTextWrapping";
|
|
1542
2148
|
/**
|
|
2149
|
+
* The **Remove** action in the chart axis or table column
|
|
2150
|
+
* customization menu.
|
|
2151
|
+
* Removes the data labels from a chart or the column of a
|
|
2152
|
+
* table visualization.
|
|
2153
|
+
* @example
|
|
2154
|
+
* ```js
|
|
2155
|
+
* disabledActions: [Action.AxisMenuRemove]
|
|
2156
|
+
* ```
|
|
1543
2157
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
1544
2158
|
*/
|
|
1545
2159
|
Action["AxisMenuRemove"] = "axisMenuRemove";
|
|
@@ -1548,9 +2162,31 @@ var Action;
|
|
|
1548
2162
|
*/
|
|
1549
2163
|
Action["InsertInToSlide"] = "insertInToSlide";
|
|
1550
2164
|
/**
|
|
2165
|
+
* The **Rename** menu action on Liveboards and visualizations.
|
|
2166
|
+
* Allows renaming a Liveboard or visualization.
|
|
2167
|
+
* @example
|
|
2168
|
+
* ```js
|
|
2169
|
+
* disabledActions: [Action.RenameModalTitleDescription]
|
|
2170
|
+
* ```
|
|
1551
2171
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
1552
2172
|
*/
|
|
1553
2173
|
Action["RenameModalTitleDescription"] = "renameModalTitleDescription";
|
|
2174
|
+
/**
|
|
2175
|
+
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
|
|
2176
|
+
*/
|
|
2177
|
+
Action["RequestVerification"] = "requestVerification";
|
|
2178
|
+
/**
|
|
2179
|
+
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
|
|
2180
|
+
*/
|
|
2181
|
+
Action["MarkAsVerified"] = "markAsVerified";
|
|
2182
|
+
/**
|
|
2183
|
+
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
|
|
2184
|
+
*/
|
|
2185
|
+
Action["AddTab"] = "addTab";
|
|
2186
|
+
/**
|
|
2187
|
+
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
|
|
2188
|
+
*/
|
|
2189
|
+
Action["EnableContextualChangeAnalysis"] = "enableContextualChangeAnalysis";
|
|
1554
2190
|
})(Action = exports.Action || (exports.Action = {}));
|
|
1555
2191
|
// eslint-disable-next-line no-shadow
|
|
1556
2192
|
var OperationType;
|