@thoughtspot/visual-embed-sdk 1.23.0 → 1.23.1
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/embed/app.d.ts +1 -1
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +1 -1
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/base.d.ts +8 -0
- package/cjs/src/embed/base.d.ts.map +1 -1
- package/cjs/src/embed/base.js +8 -0
- package/cjs/src/embed/base.js.map +1 -1
- package/cjs/src/embed/sage.d.ts +14 -0
- package/cjs/src/embed/sage.d.ts.map +1 -1
- package/cjs/src/embed/sage.js +12 -3
- package/cjs/src/embed/sage.js.map +1 -1
- package/cjs/src/embed/sage.spec.js +1 -1
- package/cjs/src/embed/sage.spec.js.map +1 -1
- package/cjs/src/types.d.ts +364 -247
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +342 -241
- package/cjs/src/types.js.map +1 -1
- package/dist/src/embed/app.d.ts +1 -1
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/base.d.ts +8 -0
- package/dist/src/embed/base.d.ts.map +1 -1
- package/dist/src/embed/sage.d.ts +14 -0
- package/dist/src/embed/sage.d.ts.map +1 -1
- package/dist/src/types.d.ts +364 -247
- package/dist/src/types.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +356 -246
- package/dist/tsembed-react.js +355 -245
- package/dist/tsembed.es.js +364 -246
- package/dist/tsembed.js +363 -245
- package/dist/visual-embed-sdk-react-full.d.ts +387 -248
- package/dist/visual-embed-sdk-react.d.ts +387 -248
- package/dist/visual-embed-sdk.d.ts +387 -248
- package/lib/package.json +1 -1
- package/lib/src/embed/app.d.ts +1 -1
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +1 -1
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/base.d.ts +8 -0
- package/lib/src/embed/base.d.ts.map +1 -1
- package/lib/src/embed/base.js +8 -0
- package/lib/src/embed/base.js.map +1 -1
- package/lib/src/embed/sage.d.ts +14 -0
- package/lib/src/embed/sage.d.ts.map +1 -1
- package/lib/src/embed/sage.js +12 -3
- package/lib/src/embed/sage.js.map +1 -1
- package/lib/src/embed/sage.spec.js +1 -1
- package/lib/src/embed/sage.spec.js.map +1 -1
- package/lib/src/types.d.ts +364 -247
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +342 -241
- package/lib/src/types.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +387 -248
- package/package.json +1 -1
- package/src/embed/app.ts +1 -1
- package/src/embed/base.ts +8 -0
- package/src/embed/sage.spec.ts +1 -1
- package/src/embed/sage.ts +24 -2
- package/src/types.ts +351 -247
package/dist/tsembed.js
CHANGED
|
@@ -819,12 +819,25 @@
|
|
|
819
819
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
820
820
|
*/
|
|
821
821
|
EmbedEvent["FilterChanged"] = "filterChanged";
|
|
822
|
+
/**
|
|
823
|
+
* Emitted when a user click on Go button in Sage Embed
|
|
824
|
+
*
|
|
825
|
+
* @version SDK : 1.27.0 | Thoughtspot: 9.7.0.cl
|
|
826
|
+
*/
|
|
827
|
+
EmbedEvent["SageEmbedQuery"] = "sageEmbedQuery";
|
|
828
|
+
/**
|
|
829
|
+
* Emitten when a user select data source in Sage Embed
|
|
830
|
+
*
|
|
831
|
+
* @version SDK : 1.27.0 | Thoughtspot: 9.7.0.cl
|
|
832
|
+
*/
|
|
833
|
+
EmbedEvent["SageWorksheetUpdated"] = "sageWorksheetUpdated";
|
|
822
834
|
})(exports.EmbedEvent || (exports.EmbedEvent = {}));
|
|
823
835
|
(function (HostEvent) {
|
|
824
836
|
/**
|
|
825
837
|
* Triggers a search query in AppEmbed and SearchEmbed
|
|
826
838
|
* deployments.
|
|
827
839
|
* Includes the following properties:
|
|
840
|
+
*
|
|
828
841
|
* @param - dataSourceIds - The data source GUID to Search on
|
|
829
842
|
* - Although an array, only a single source
|
|
830
843
|
* is supported.
|
|
@@ -843,6 +856,7 @@
|
|
|
843
856
|
/**
|
|
844
857
|
* Triggers a drill on certain points of the specified column
|
|
845
858
|
* Includes the following properties:
|
|
859
|
+
*
|
|
846
860
|
* @param - points - an object containing selectedPoints/clickedPoints
|
|
847
861
|
* to drill to. For example, { selectedPoints: []}
|
|
848
862
|
* @param - columnGuid - Optional. GUID of the column to drill
|
|
@@ -907,18 +921,19 @@
|
|
|
907
921
|
*/
|
|
908
922
|
HostEvent["SetActiveTab"] = "SetActiveTab";
|
|
909
923
|
/**
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
924
|
+
* Updates runtime filters applied on a Saved Answer or Liveboard. The
|
|
925
|
+
* runtime filters passed here are appended to the existing runtime
|
|
926
|
+
* filters.
|
|
927
|
+
* Pass an array of runtime filters with the following attributes:
|
|
928
|
+
* `columnName`
|
|
929
|
+
* _String_. The name of the column to filter on.
|
|
930
|
+
* `operator`
|
|
931
|
+
* Runtime filter operator to apply. For information,
|
|
932
|
+
* see [Runtime filter operators](https://developers.thoughtspot.com/docs/?pageid=runtime-filters#rtOperator).
|
|
933
|
+
* `values`
|
|
934
|
+
* List of operands. Some operators such as EQ, LE allow a single value, whereas
|
|
935
|
+
* operators such as BW and IN accept multiple operands.
|
|
936
|
+
*
|
|
922
937
|
* @param - {@link RuntimeFilter}[] an array of {@link RuntimeFilter} Types.
|
|
923
938
|
* @example
|
|
924
939
|
* ```js
|
|
@@ -934,6 +949,7 @@
|
|
|
934
949
|
/**
|
|
935
950
|
* Navigate to a specific page in the embedded application without reloading the page.
|
|
936
951
|
* This is the same as calling `appEmbed.navigateToPage(path, true)`
|
|
952
|
+
*
|
|
937
953
|
* @param - path - the path to navigate to (can be a number[1/-1] to go forward/back)
|
|
938
954
|
* @example
|
|
939
955
|
* ```js
|
|
@@ -1257,6 +1273,7 @@
|
|
|
1257
1273
|
/**
|
|
1258
1274
|
* Triggers the **SpotIQ analyze** action on visualization
|
|
1259
1275
|
* or search.
|
|
1276
|
+
*
|
|
1260
1277
|
* @param - Liveboard embed takes `vizId` as a
|
|
1261
1278
|
* key. Can be left undefined when embedding Search or
|
|
1262
1279
|
* visualization.
|
|
@@ -1296,6 +1313,7 @@
|
|
|
1296
1313
|
/**
|
|
1297
1314
|
* Triggers the **Download** > **PNG** action on
|
|
1298
1315
|
* charts in the embedded view.
|
|
1316
|
+
*
|
|
1299
1317
|
* @example
|
|
1300
1318
|
* ```js
|
|
1301
1319
|
* liveboardEmbed.trigger(HostEvent.DownloadAsPng,
|
|
@@ -1329,6 +1347,7 @@
|
|
|
1329
1347
|
/**
|
|
1330
1348
|
* Triggers the **Download** > **XLSX** action on tables
|
|
1331
1349
|
* in the embedded view.
|
|
1350
|
+
*
|
|
1332
1351
|
* @example
|
|
1333
1352
|
* ```js
|
|
1334
1353
|
* liveboardEmbed.trigger(HostEvent.DownloadAsXlsx, {vizId:
|
|
@@ -1360,6 +1379,7 @@
|
|
|
1360
1379
|
/**
|
|
1361
1380
|
* Triggers the **Save** action on a Liveboard or Answer.
|
|
1362
1381
|
* Saves the changes.
|
|
1382
|
+
*
|
|
1363
1383
|
* @example
|
|
1364
1384
|
* ```js
|
|
1365
1385
|
* liveboardEmbed.trigger(HostEvent.Save)
|
|
@@ -1373,6 +1393,7 @@
|
|
|
1373
1393
|
/**
|
|
1374
1394
|
* Triggers the **Sync to Sheets** action on an embedded visualization or Answer
|
|
1375
1395
|
* Sends data from an Answer or Liveboard visualization to a Google sheet.
|
|
1396
|
+
*
|
|
1376
1397
|
* @param - an object with `vizId` as a key
|
|
1377
1398
|
* @example
|
|
1378
1399
|
* ```js
|
|
@@ -1389,6 +1410,7 @@
|
|
|
1389
1410
|
* Triggers the **Sync to Other Apps** action on an embedded visualization or Answer
|
|
1390
1411
|
* Sends data from an Answer or Liveboard visualization to third-party apps such
|
|
1391
1412
|
* as Slack, Salesforce, Microsoft Teams, ServiceNow and so on.
|
|
1413
|
+
*
|
|
1392
1414
|
* @param - an object with vizId as a key
|
|
1393
1415
|
* @example
|
|
1394
1416
|
* ```js
|
|
@@ -1405,6 +1427,7 @@
|
|
|
1405
1427
|
* Triggers the **Manage pipelines** action on an embedded
|
|
1406
1428
|
* visualization or Answer.
|
|
1407
1429
|
* Allows users to manage ThoughtSpot Sync pipelines.
|
|
1430
|
+
*
|
|
1408
1431
|
* @param - an object with `vizId` as a key
|
|
1409
1432
|
* @example
|
|
1410
1433
|
* ```js
|
|
@@ -1449,7 +1472,7 @@
|
|
|
1449
1472
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
1450
1473
|
*/
|
|
1451
1474
|
HostEvent["UpdateFilters"] = "updateFilters";
|
|
1452
|
-
|
|
1475
|
+
/**
|
|
1453
1476
|
* Get Tab for the current Liveboard.
|
|
1454
1477
|
*
|
|
1455
1478
|
* @example
|
|
@@ -1460,7 +1483,7 @@
|
|
|
1460
1483
|
* );
|
|
1461
1484
|
* })
|
|
1462
1485
|
* ```
|
|
1463
|
-
* @version SDK: 1.
|
|
1486
|
+
* @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl
|
|
1464
1487
|
*/
|
|
1465
1488
|
HostEvent["GetTabs"] = "getTabs";
|
|
1466
1489
|
/**
|
|
@@ -1474,7 +1497,7 @@
|
|
|
1474
1497
|
* '430496d6-6903-4601-937e-2c691821af3c',
|
|
1475
1498
|
* 'f547ec54-2a37-4516-a222-2b06719af726'])
|
|
1476
1499
|
* ```
|
|
1477
|
-
* @version SDK: 1.
|
|
1500
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
1478
1501
|
*/
|
|
1479
1502
|
HostEvent["SetVisibleTabs"] = "SetPinboardVisibleTabs";
|
|
1480
1503
|
/**
|
|
@@ -1488,7 +1511,7 @@
|
|
|
1488
1511
|
* '630496d6-6903-4601-937e-2c691821af3c',
|
|
1489
1512
|
* 'i547ec54-2a37-4516-a222-2b06719af726'])
|
|
1490
1513
|
* ```
|
|
1491
|
-
* @version SDK: 1.
|
|
1514
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
1492
1515
|
*/
|
|
1493
1516
|
HostEvent["SetHiddenTabs"] = "SetPinboardHiddenTabs";
|
|
1494
1517
|
})(exports.HostEvent || (exports.HostEvent = {}));
|
|
@@ -1570,11 +1593,15 @@
|
|
|
1570
1593
|
Param["HiddenTabs"] = "hideTabs";
|
|
1571
1594
|
Param["VisibleTabs"] = "visibleTabs";
|
|
1572
1595
|
Param["HideTabPanel"] = "hideTabPanel";
|
|
1596
|
+
Param["HideSampleQuestions"] = "hideSampleQuestions";
|
|
1597
|
+
Param["WorksheetId"] = "worksheetId";
|
|
1598
|
+
Param["Query"] = "query,";
|
|
1573
1599
|
})(Param || (Param = {}));
|
|
1574
1600
|
(function (Action) {
|
|
1575
1601
|
/**
|
|
1576
1602
|
* The **Save** action on an Answer or Liveboard.
|
|
1577
1603
|
* Allows users to save the changes.
|
|
1604
|
+
*
|
|
1578
1605
|
* @example
|
|
1579
1606
|
* ```js
|
|
1580
1607
|
* disabledActions: [Action.SaveAsView]
|
|
@@ -1590,136 +1617,146 @@
|
|
|
1590
1617
|
*/
|
|
1591
1618
|
Action["SaveUntitled"] = "saveUntitled";
|
|
1592
1619
|
/**
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1620
|
+
* The **Save as View** action on the Answer
|
|
1621
|
+
* page. Saves an Answer as a View object.
|
|
1622
|
+
*
|
|
1623
|
+
* @example
|
|
1624
|
+
* ```js
|
|
1625
|
+
* disabledActions: [Action.SaveAsView]
|
|
1626
|
+
* ```
|
|
1627
|
+
*/
|
|
1601
1628
|
Action["SaveAsView"] = "saveAsView";
|
|
1602
1629
|
/**
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1630
|
+
* The **Make a copy** action on a Liveboard or Answer
|
|
1631
|
+
* page.
|
|
1632
|
+
* Creates a copy of the Liveboard, visualization,
|
|
1633
|
+
* or Answer.
|
|
1634
|
+
*
|
|
1635
|
+
* @example
|
|
1636
|
+
* ```js
|
|
1637
|
+
* disabledActions: [Action.MakeACopy]
|
|
1638
|
+
* ```
|
|
1639
|
+
*/
|
|
1613
1640
|
Action["MakeACopy"] = "makeACopy";
|
|
1614
1641
|
/**
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1642
|
+
* The **Copy and Edit** action on a Liveboard.
|
|
1643
|
+
* This action is now replaced with `Action.MakeACopy`.
|
|
1644
|
+
*
|
|
1645
|
+
* @example
|
|
1646
|
+
* ```js
|
|
1647
|
+
* disabledActions: [Action.EditACopy]
|
|
1648
|
+
* ```
|
|
1649
|
+
*/
|
|
1623
1650
|
Action["EditACopy"] = "editACopy";
|
|
1624
1651
|
/**
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1652
|
+
* The **Copy link** menu action on a Liveboard visualization.
|
|
1653
|
+
* Copies the visualization URL
|
|
1654
|
+
*
|
|
1655
|
+
* @example
|
|
1656
|
+
* ```js
|
|
1657
|
+
* disabledActions: [Action.CopyLink]
|
|
1658
|
+
* ```
|
|
1659
|
+
*/
|
|
1632
1660
|
Action["CopyLink"] = "embedDocument";
|
|
1633
1661
|
/**
|
|
1634
1662
|
* @hidden
|
|
1635
1663
|
*/
|
|
1636
1664
|
Action["ResetLayout"] = "resetLayout";
|
|
1637
1665
|
/**
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1666
|
+
* The **Schedule** menu action on a Liveboard.
|
|
1667
|
+
* Allows scheduling a Liveboard notification.
|
|
1668
|
+
*
|
|
1669
|
+
* @example
|
|
1670
|
+
* ```js
|
|
1671
|
+
* disabledActions: [Action.Schedule]
|
|
1672
|
+
* ```
|
|
1673
|
+
*/
|
|
1645
1674
|
Action["Schedule"] = "subscription";
|
|
1646
1675
|
/**
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1676
|
+
* The **Manage schedules** menu action on a Liveboard.
|
|
1677
|
+
* Allows users to manage scheduled Liveboard jobs.
|
|
1678
|
+
*
|
|
1679
|
+
* @example
|
|
1680
|
+
* ```js
|
|
1681
|
+
* disabledActions: [Action.SchedulesList]
|
|
1682
|
+
* ```
|
|
1683
|
+
*/
|
|
1654
1684
|
Action["SchedulesList"] = "schedule-list";
|
|
1655
1685
|
/**
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1686
|
+
* The **Share** action on a Liveboard, Answer, or Worksheet.
|
|
1687
|
+
* Allows users to share an object with other users and groups.
|
|
1688
|
+
*
|
|
1689
|
+
* @example
|
|
1690
|
+
* ```js
|
|
1691
|
+
* disabledActions: [Action.Share]
|
|
1692
|
+
* ```
|
|
1693
|
+
*/
|
|
1663
1694
|
Action["Share"] = "share";
|
|
1664
1695
|
/**
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1696
|
+
* The **Add filter** action on a Liveboard and Search page.
|
|
1697
|
+
* Allows adding filters to Answers and visualizations on a Liveboard.
|
|
1698
|
+
*
|
|
1699
|
+
* @example
|
|
1700
|
+
* ```js
|
|
1701
|
+
* disabledActions: [Action.AddFilter]
|
|
1702
|
+
* ```
|
|
1703
|
+
*/
|
|
1672
1704
|
Action["AddFilter"] = "addFilter";
|
|
1673
1705
|
/**
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1706
|
+
* Filter configuration options on a Liveboard and Search page.
|
|
1707
|
+
* Allows configuring filter options when adding filters to a
|
|
1708
|
+
* Liveboard or Answer.
|
|
1709
|
+
*
|
|
1710
|
+
* @example
|
|
1711
|
+
* ```js
|
|
1712
|
+
* disabledActions: [Action.ConfigureFilter]
|
|
1713
|
+
* ```
|
|
1714
|
+
*/
|
|
1682
1715
|
Action["ConfigureFilter"] = "configureFilter";
|
|
1683
1716
|
Action["CollapseDataSources"] = "collapseDataSources";
|
|
1684
1717
|
/**
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1718
|
+
* The **Choose sources** button on Search page.
|
|
1719
|
+
* Allows selecting data sources for search queries.
|
|
1720
|
+
*
|
|
1721
|
+
* @example
|
|
1722
|
+
* ```js
|
|
1723
|
+
* disabledActions: [Action.ChooseDataSources]
|
|
1724
|
+
* ```
|
|
1725
|
+
*/
|
|
1692
1726
|
Action["ChooseDataSources"] = "chooseDataSources";
|
|
1693
1727
|
/**
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1728
|
+
* The **Create formula** action on a Search or Answer page.
|
|
1729
|
+
* Allows adding formulas to an Answer.
|
|
1730
|
+
*
|
|
1731
|
+
* @example
|
|
1732
|
+
* ```js
|
|
1733
|
+
* disabledActions: [Action.AddFormula]
|
|
1734
|
+
* ```
|
|
1735
|
+
*/
|
|
1701
1736
|
Action["AddFormula"] = "addFormula";
|
|
1702
1737
|
/**
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1738
|
+
* The **Add parameter** action on a Liveboard or Answer.
|
|
1739
|
+
* Allows adding Parameters to a Liveboard or Answer.
|
|
1740
|
+
*
|
|
1741
|
+
* @example
|
|
1742
|
+
* ```js
|
|
1743
|
+
* disabledActions: [Action.AddParameter]
|
|
1744
|
+
* ```
|
|
1745
|
+
*/
|
|
1710
1746
|
Action["AddParameter"] = "addParameter";
|
|
1711
1747
|
/**
|
|
1712
1748
|
* @hidden
|
|
1713
1749
|
*/
|
|
1714
1750
|
Action["SearchOnTop"] = "searchOnTop";
|
|
1715
1751
|
/**
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1752
|
+
* The **SpotIQ analyze** menu action on a visualization or
|
|
1753
|
+
* Answer page.
|
|
1754
|
+
*
|
|
1755
|
+
* @example
|
|
1756
|
+
* ```js
|
|
1757
|
+
* disabledActions: [Action.SpotIQAnalyze]
|
|
1758
|
+
* ```
|
|
1759
|
+
*/
|
|
1723
1760
|
Action["SpotIQAnalyze"] = "spotIQAnalyze";
|
|
1724
1761
|
/**
|
|
1725
1762
|
* @hidden
|
|
@@ -1735,89 +1772,98 @@
|
|
|
1735
1772
|
*/
|
|
1736
1773
|
Action["ReplaySearch"] = "replaySearch";
|
|
1737
1774
|
/**
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1775
|
+
* The **Show underlying data** menu action on a visualization or
|
|
1776
|
+
* Answer page.
|
|
1777
|
+
*
|
|
1778
|
+
* @example
|
|
1779
|
+
* ```js
|
|
1780
|
+
* disabledActions: [Action.ShowUnderlyingData]
|
|
1781
|
+
* ```
|
|
1782
|
+
*/
|
|
1745
1783
|
Action["ShowUnderlyingData"] = "showUnderlyingData";
|
|
1746
1784
|
/**
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1785
|
+
* The **Download** menu action on Liveboard visualizations
|
|
1786
|
+
* and Answers.
|
|
1787
|
+
* Allows downloading a visualization or Answer.
|
|
1788
|
+
*
|
|
1789
|
+
* @example
|
|
1790
|
+
* ```js
|
|
1791
|
+
* disabledActions: [Action.DownloadAsPng]
|
|
1792
|
+
* ```
|
|
1793
|
+
*/
|
|
1755
1794
|
Action["Download"] = "download";
|
|
1756
1795
|
/**
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1796
|
+
* The **Download** > **PNG** menu action for charts on a Liveboard
|
|
1797
|
+
* or Answer page.
|
|
1798
|
+
* Downloads a visualization or Answer as a PNG file.
|
|
1799
|
+
*
|
|
1800
|
+
* @example
|
|
1801
|
+
* ```js
|
|
1802
|
+
* disabledActions: [Action.DownloadAsPng]
|
|
1803
|
+
* ```
|
|
1804
|
+
*/
|
|
1765
1805
|
Action["DownloadAsPng"] = "downloadAsPng";
|
|
1766
1806
|
/**
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1807
|
+
* The **Download** > **PDF** menu action on a Liveboard.
|
|
1808
|
+
* Downloads a visualization or Answer as a PDF file.
|
|
1809
|
+
*
|
|
1810
|
+
* @example
|
|
1811
|
+
* ```js
|
|
1812
|
+
* disabledActions: [Action.DownloadAsPdf]
|
|
1813
|
+
* ```
|
|
1814
|
+
*/
|
|
1774
1815
|
Action["DownloadAsPdf"] = "downloadAsPdf";
|
|
1775
1816
|
/**
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1817
|
+
* The **Download** > **CSV** menu action for tables on a Liveboard
|
|
1818
|
+
* or Answer page.
|
|
1819
|
+
* Downloads a visualization or Answer in the XLSX format.
|
|
1820
|
+
*
|
|
1821
|
+
* @example
|
|
1822
|
+
* ```js
|
|
1823
|
+
* disabledActions: [Action.DownloadAsCsv]
|
|
1824
|
+
* ```
|
|
1825
|
+
*/
|
|
1784
1826
|
Action["DownloadAsCsv"] = "downloadAsCSV";
|
|
1785
1827
|
/**
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1828
|
+
* The **Download** > **XLSX** menu action for tables on a Liveboard
|
|
1829
|
+
* or Answer page.
|
|
1830
|
+
* Downloads a visualization or Answer in the XLSX format.
|
|
1831
|
+
*
|
|
1832
|
+
* @example
|
|
1833
|
+
* ```js
|
|
1834
|
+
* disabledActions: [Action.DownloadAsXlsx]
|
|
1835
|
+
* ```
|
|
1836
|
+
*/
|
|
1794
1837
|
Action["DownloadAsXlsx"] = "downloadAsXLSX";
|
|
1795
1838
|
/**
|
|
1796
1839
|
* @hidden
|
|
1797
1840
|
*/
|
|
1798
1841
|
Action["DownloadTrace"] = "downloadTrace";
|
|
1799
1842
|
/**
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1843
|
+
* The **Export TML** menu action on Liveboard, Answers
|
|
1844
|
+
* Worksheets and Data Connections page.
|
|
1845
|
+
* Exports an object as a TML file.
|
|
1846
|
+
*
|
|
1847
|
+
* @example
|
|
1848
|
+
* ```js
|
|
1849
|
+
* disabledActions: [Action.ExportTML]
|
|
1850
|
+
* ```
|
|
1851
|
+
*/
|
|
1808
1852
|
Action["ExportTML"] = "exportTSL";
|
|
1809
1853
|
/**
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1854
|
+
* The **Import TML** menu action for Liveboards and Answers.
|
|
1855
|
+
* Imports TML representation of ThoughtSpot objects.
|
|
1856
|
+
*
|
|
1857
|
+
* @example
|
|
1858
|
+
* ```js
|
|
1859
|
+
* disabledActions: [Action.ImportTML]
|
|
1860
|
+
* ```
|
|
1861
|
+
*/
|
|
1817
1862
|
Action["ImportTML"] = "importTSL";
|
|
1818
1863
|
/**
|
|
1819
1864
|
* The **Update TML** menu action for Liveboards and Answers.
|
|
1820
1865
|
* Update TML representation of ThoughtSpot objects.
|
|
1866
|
+
*
|
|
1821
1867
|
* @example
|
|
1822
1868
|
* ```js
|
|
1823
1869
|
* disabledActions: [Action.UpdateTML]
|
|
@@ -1827,6 +1873,7 @@
|
|
|
1827
1873
|
/**
|
|
1828
1874
|
* The **Edit TML** menu action for Liveboards and Answers.
|
|
1829
1875
|
* Opens the TML editor.
|
|
1876
|
+
*
|
|
1830
1877
|
* @example
|
|
1831
1878
|
* ```js
|
|
1832
1879
|
* disabledActions: [Action.EditTML]
|
|
@@ -1834,50 +1881,55 @@
|
|
|
1834
1881
|
*/
|
|
1835
1882
|
Action["EditTML"] = "editTSL";
|
|
1836
1883
|
/**
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1884
|
+
* The **Present** menu action for Liveboards and Answers.
|
|
1885
|
+
* Allows presenting a Liveboard or visualization in
|
|
1886
|
+
* slideshow mode.
|
|
1887
|
+
*
|
|
1888
|
+
* @example
|
|
1889
|
+
* ```js
|
|
1890
|
+
* disabledActions: [Action.Present]
|
|
1891
|
+
* ```
|
|
1892
|
+
*/
|
|
1845
1893
|
Action["Present"] = "present";
|
|
1846
1894
|
/**
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1895
|
+
* The tile resize options in the visualization menu.
|
|
1896
|
+
* Allows switching between different preset layouts.
|
|
1897
|
+
*
|
|
1898
|
+
* @example
|
|
1899
|
+
* ```js
|
|
1900
|
+
* disabledActions: [Action.ToggleSize]
|
|
1901
|
+
* ```
|
|
1902
|
+
*/
|
|
1854
1903
|
Action["ToggleSize"] = "toggleSize";
|
|
1855
1904
|
/**
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1905
|
+
* The *Edit* action on the Liveboard page and in the
|
|
1906
|
+
* visualization menu.
|
|
1907
|
+
* Opens a Liveboard or visualization in edit mode.
|
|
1908
|
+
*
|
|
1909
|
+
* @example
|
|
1910
|
+
* ```js
|
|
1911
|
+
* disabledActions: [Action.Edit]
|
|
1912
|
+
* ```
|
|
1913
|
+
*/
|
|
1864
1914
|
Action["Edit"] = "edit";
|
|
1865
1915
|
/**
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1916
|
+
* The text edit option for Liveboard and visualization titles.
|
|
1917
|
+
*
|
|
1918
|
+
* @example
|
|
1919
|
+
* ```js
|
|
1920
|
+
* disabledActions: [Action.EditTitle]
|
|
1921
|
+
* ```
|
|
1922
|
+
*/
|
|
1872
1923
|
Action["EditTitle"] = "editTitle";
|
|
1873
1924
|
/**
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1925
|
+
* The **Delete** menu action on Liveboards and visualizations.
|
|
1926
|
+
* Deletes a Liveboard or a visualization from a Liveboard.
|
|
1927
|
+
*
|
|
1928
|
+
* @example
|
|
1929
|
+
* ```js
|
|
1930
|
+
* disabledActions: [Action.Remove]
|
|
1931
|
+
* ```
|
|
1932
|
+
*/
|
|
1881
1933
|
Action["Remove"] = "delete";
|
|
1882
1934
|
/**
|
|
1883
1935
|
* @hidden
|
|
@@ -1900,15 +1952,16 @@
|
|
|
1900
1952
|
*/
|
|
1901
1953
|
Action["PinboardInfo"] = "pinboardInfo";
|
|
1902
1954
|
/**
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1955
|
+
* The **Show Liveboard details** menu action on a Liveboard.
|
|
1956
|
+
* Displays details such as the name, description, and
|
|
1957
|
+
* author of the Liveboard, and timestamp of Liveboard creation
|
|
1958
|
+
* and update.
|
|
1959
|
+
*
|
|
1960
|
+
* @example
|
|
1961
|
+
* ```js
|
|
1962
|
+
* disabledActions: [Action.LiveboardInfo]
|
|
1963
|
+
* ```
|
|
1964
|
+
*/
|
|
1912
1965
|
Action["LiveboardInfo"] = "pinboardInfo";
|
|
1913
1966
|
/**
|
|
1914
1967
|
* @hidden
|
|
@@ -1919,13 +1972,14 @@
|
|
|
1919
1972
|
*/
|
|
1920
1973
|
Action["DownloadEmbraceQueries"] = "downloadEmbraceQueries";
|
|
1921
1974
|
/**
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1975
|
+
* The **Pin** menu action on an Answer or
|
|
1976
|
+
* Search results page.
|
|
1977
|
+
*
|
|
1978
|
+
* @example
|
|
1979
|
+
* ```js
|
|
1980
|
+
* disabledActions: [Action.Pin]
|
|
1981
|
+
* ```
|
|
1982
|
+
*/
|
|
1929
1983
|
Action["Pin"] = "pin";
|
|
1930
1984
|
/**
|
|
1931
1985
|
* @hidden
|
|
@@ -1933,6 +1987,7 @@
|
|
|
1933
1987
|
Action["AnalysisInfo"] = "analysisInfo";
|
|
1934
1988
|
/**
|
|
1935
1989
|
* The **Schedule** menu action on a Liveboard.
|
|
1990
|
+
*
|
|
1936
1991
|
* @example
|
|
1937
1992
|
* ```js
|
|
1938
1993
|
* disabledActions: [Action.Subscription]
|
|
@@ -1940,25 +1995,28 @@
|
|
|
1940
1995
|
*/
|
|
1941
1996
|
Action["Subscription"] = "subscription";
|
|
1942
1997
|
/**
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1998
|
+
* The **Explore** action on Liveboard visualizations
|
|
1999
|
+
*
|
|
2000
|
+
* @example
|
|
2001
|
+
* ```js
|
|
2002
|
+
* disabledActions: [Action.Explore]
|
|
2003
|
+
* ```
|
|
2004
|
+
*/
|
|
1949
2005
|
Action["Explore"] = "explore";
|
|
1950
2006
|
/**
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
2007
|
+
* The action to include data points on a drilled-down Answer
|
|
2008
|
+
* or visualization
|
|
2009
|
+
*
|
|
2010
|
+
* @example
|
|
2011
|
+
* ```js
|
|
2012
|
+
* disabledActions: [Action.DrillInclude]
|
|
2013
|
+
* ```
|
|
2014
|
+
*/
|
|
1958
2015
|
Action["DrillInclude"] = "context-menu-item-include";
|
|
1959
2016
|
/**
|
|
1960
2017
|
* The action to exclude data points on a drilled-down Answer
|
|
1961
2018
|
* or visualization
|
|
2019
|
+
*
|
|
1962
2020
|
* @example
|
|
1963
2021
|
* ```js
|
|
1964
2022
|
* disabledActions: [Action.DrillInclude]
|
|
@@ -1969,6 +2027,7 @@
|
|
|
1969
2027
|
* The **Copy to clipboard** menu action on tables in an Answer
|
|
1970
2028
|
* or Liveboard.
|
|
1971
2029
|
* Copies the selected data point.
|
|
2030
|
+
*
|
|
1972
2031
|
* @example
|
|
1973
2032
|
* ```js
|
|
1974
2033
|
* disabledActions: [Action.CopyToClipboard]
|
|
@@ -1986,6 +2045,7 @@
|
|
|
1986
2045
|
* The **Drill down** menu action on Answers and Liveboard
|
|
1987
2046
|
* visualizations.
|
|
1988
2047
|
* Allows drilling down to a specific data point on a chart or table.
|
|
2048
|
+
*
|
|
1989
2049
|
* @example
|
|
1990
2050
|
* ```js
|
|
1991
2051
|
* disabledActions: [Action.DrillDown]
|
|
@@ -1995,6 +2055,7 @@
|
|
|
1995
2055
|
/**
|
|
1996
2056
|
* The request access action on Liveboards.
|
|
1997
2057
|
* Allows users with view permissions to request edit access to a Liveboard.
|
|
2058
|
+
*
|
|
1998
2059
|
* @example
|
|
1999
2060
|
* ```js
|
|
2000
2061
|
* disabledActions: [Action.RequestAccess]
|
|
@@ -2004,6 +2065,7 @@
|
|
|
2004
2065
|
/**
|
|
2005
2066
|
* The **Query visualizer** and **Query SQL** buttons in Query details panel
|
|
2006
2067
|
* of the Answer page
|
|
2068
|
+
*
|
|
2007
2069
|
* @example
|
|
2008
2070
|
* ```js
|
|
2009
2071
|
* disabledActions: [Action.QueryDetailsButtons]
|
|
@@ -2012,6 +2074,7 @@
|
|
|
2012
2074
|
Action["QueryDetailsButtons"] = "QueryDetailsButtons";
|
|
2013
2075
|
/**
|
|
2014
2076
|
* The **Delete** action for Answers.
|
|
2077
|
+
*
|
|
2015
2078
|
* @example
|
|
2016
2079
|
* ```js
|
|
2017
2080
|
* disabledActions: [Action.AnswerDelete]
|
|
@@ -2021,6 +2084,7 @@
|
|
|
2021
2084
|
Action["AnswerDelete"] = "onDeleteAnswer";
|
|
2022
2085
|
/**
|
|
2023
2086
|
* The Chart switcher icon on Answer and visualization pages.
|
|
2087
|
+
*
|
|
2024
2088
|
* @example
|
|
2025
2089
|
* ```js
|
|
2026
2090
|
* disabledActions: [Action.AnswerChartSwitcher]
|
|
@@ -2030,6 +2094,7 @@
|
|
|
2030
2094
|
Action["AnswerChartSwitcher"] = "answerChartSwitcher";
|
|
2031
2095
|
/**
|
|
2032
2096
|
* Favorites icon (*) on Answers, Liveboard, and Data pages
|
|
2097
|
+
*
|
|
2033
2098
|
* @example
|
|
2034
2099
|
* ```js
|
|
2035
2100
|
* disabledActions: [Action.AddToFavorites]
|
|
@@ -2039,6 +2104,7 @@
|
|
|
2039
2104
|
Action["AddToFavorites"] = "addToFavorites";
|
|
2040
2105
|
/**
|
|
2041
2106
|
* The edit icon on Liveboards (Classic experience).
|
|
2107
|
+
*
|
|
2042
2108
|
* @example
|
|
2043
2109
|
* ```js
|
|
2044
2110
|
* disabledActions: [Action.EditDetails]
|
|
@@ -2048,6 +2114,7 @@
|
|
|
2048
2114
|
Action["EditDetails"] = "editDetails";
|
|
2049
2115
|
/**
|
|
2050
2116
|
* The Create alert action on KPI charts.
|
|
2117
|
+
*
|
|
2051
2118
|
* @example
|
|
2052
2119
|
* ```js
|
|
2053
2120
|
* disabledActions: [Action.CreateMonitor ]
|
|
@@ -2066,6 +2133,7 @@
|
|
|
2066
2133
|
/**
|
|
2067
2134
|
* The **Sync to sheets** action on Answers and Liveboard visualizations.
|
|
2068
2135
|
* Allows sending data to a Google Sheet.
|
|
2136
|
+
*
|
|
2069
2137
|
* @example
|
|
2070
2138
|
* ```js
|
|
2071
2139
|
* disabledActions: [Action.SyncToSheets]
|
|
@@ -2077,6 +2145,7 @@
|
|
|
2077
2145
|
* The **Sync to other apps** action on Answers and Liveboard visualizations.
|
|
2078
2146
|
* Allows sending data to third-party apps like Slack, Salesforce,
|
|
2079
2147
|
* Microsoft Teams, and so on.
|
|
2148
|
+
*
|
|
2080
2149
|
* @example
|
|
2081
2150
|
* ```js
|
|
2082
2151
|
* disabledActions: [Action.SyncToOtherApps]
|
|
@@ -2087,6 +2156,7 @@
|
|
|
2087
2156
|
/**
|
|
2088
2157
|
* The **Manage pipelines** action on Answers and Liveboard visualizations.
|
|
2089
2158
|
* Allows users to manage data sync pipelines to third-party apps.
|
|
2159
|
+
*
|
|
2090
2160
|
* @example
|
|
2091
2161
|
* ```js
|
|
2092
2162
|
* disabledActions: [Action.SyncToOtherApps]
|
|
@@ -2097,6 +2167,7 @@
|
|
|
2097
2167
|
/**
|
|
2098
2168
|
* The **Filter** action on Liveboard visualizations.
|
|
2099
2169
|
* Allows users to apply cross-filters on a Liveboard.
|
|
2170
|
+
*
|
|
2100
2171
|
* @example
|
|
2101
2172
|
* ```js
|
|
2102
2173
|
* disabledActions: [Action.CrossFilter]
|
|
@@ -2108,6 +2179,7 @@
|
|
|
2108
2179
|
* The **Remove** action that appears when cross filters are applied
|
|
2109
2180
|
* on a Liveboard.
|
|
2110
2181
|
* Removes filters applied o a visualization.
|
|
2182
|
+
*
|
|
2111
2183
|
* @example
|
|
2112
2184
|
* ```js
|
|
2113
2185
|
* disabledActions: [Action.RemoveCrossFilter]
|
|
@@ -2119,6 +2191,7 @@
|
|
|
2119
2191
|
* The **Aggregate** option in the chart axis or the
|
|
2120
2192
|
* table column customization menu.
|
|
2121
2193
|
* Provides aggregation options to analyze the data on a chart or table.
|
|
2194
|
+
*
|
|
2122
2195
|
* @example
|
|
2123
2196
|
* ```js
|
|
2124
2197
|
* disabledActions: [Action.AxisMenuAggregate]
|
|
@@ -2130,6 +2203,7 @@
|
|
|
2130
2203
|
* The **Time bucket** option in the chart axis or table column
|
|
2131
2204
|
* customization menu.
|
|
2132
2205
|
* Allows defining time metric for date comparison.
|
|
2206
|
+
*
|
|
2133
2207
|
* @example
|
|
2134
2208
|
* ```js
|
|
2135
2209
|
* disabledActions: [Action.AxisMenuTimeBucket]
|
|
@@ -2140,6 +2214,7 @@
|
|
|
2140
2214
|
/**
|
|
2141
2215
|
* The **Filter** action in the chart axis or table column
|
|
2142
2216
|
* customization menu.
|
|
2217
|
+
*
|
|
2143
2218
|
* @example
|
|
2144
2219
|
* ```js
|
|
2145
2220
|
* disabledActions: [Action.AxisMenuFilter]
|
|
@@ -2151,6 +2226,7 @@
|
|
|
2151
2226
|
* The **Conditional formatting** action on chart or table.
|
|
2152
2227
|
* Allows adding rules for conditional formatting of data
|
|
2153
2228
|
* points on a chart or table.
|
|
2229
|
+
*
|
|
2154
2230
|
* @example
|
|
2155
2231
|
* ```js
|
|
2156
2232
|
* disabledActions: [Action.AxisMenuConditionalFormat]
|
|
@@ -2162,6 +2238,7 @@
|
|
|
2162
2238
|
* The **Sort** menu action on a table or chart axis
|
|
2163
2239
|
* Sorts data in ascending or descending order.
|
|
2164
2240
|
* Allows adding, editing, or removing filters.
|
|
2241
|
+
*
|
|
2165
2242
|
* @example
|
|
2166
2243
|
* ```js
|
|
2167
2244
|
* disabledActions: [Action.AxisMenuConditionalFormat]
|
|
@@ -2174,6 +2251,7 @@
|
|
|
2174
2251
|
* customization menu.
|
|
2175
2252
|
* Allows grouping data points if the axes use the same
|
|
2176
2253
|
* unit of measurement and a similar scale.
|
|
2254
|
+
*
|
|
2177
2255
|
* @example
|
|
2178
2256
|
* ```js
|
|
2179
2257
|
* disabledActions: [Action.AxisMenuGroup]
|
|
@@ -2185,6 +2263,7 @@
|
|
|
2185
2263
|
* The **Position** option in the axis customization menu.
|
|
2186
2264
|
* Allows changing the position of the axis to the
|
|
2187
2265
|
* left or right side of the chart.
|
|
2266
|
+
*
|
|
2188
2267
|
* @example
|
|
2189
2268
|
* ```js
|
|
2190
2269
|
* disabledActions: [Action.AxisMenuPosition]
|
|
@@ -2195,6 +2274,7 @@
|
|
|
2195
2274
|
/**
|
|
2196
2275
|
* The **Rename** option in the chart axis or table column customization menu.
|
|
2197
2276
|
* Renames the axis label on a chart or the column header on a table.
|
|
2277
|
+
*
|
|
2198
2278
|
* @example
|
|
2199
2279
|
* ```js
|
|
2200
2280
|
* disabledActions: [Action.AxisMenuRename]
|
|
@@ -2206,6 +2286,7 @@
|
|
|
2206
2286
|
* The **Edit** action in the axis customization menu.
|
|
2207
2287
|
* Allows editing the axis name, position, minimum and maximum values,
|
|
2208
2288
|
* and format of a column.
|
|
2289
|
+
*
|
|
2209
2290
|
* @example
|
|
2210
2291
|
* ```js
|
|
2211
2292
|
* disabledActions: [Action.AxisMenuEdit]
|
|
@@ -2216,6 +2297,7 @@
|
|
|
2216
2297
|
/**
|
|
2217
2298
|
* The **Number format** action to customize the format of
|
|
2218
2299
|
* the data labels on a chart or table.
|
|
2300
|
+
*
|
|
2219
2301
|
* @example
|
|
2220
2302
|
* ```js
|
|
2221
2303
|
* disabledActions: [Action.AxisMenuNumberFormat]
|
|
@@ -2226,6 +2308,7 @@
|
|
|
2226
2308
|
/**
|
|
2227
2309
|
* The **Text wrapping** action on a table.
|
|
2228
2310
|
* Wraps or clips column text on a table.
|
|
2311
|
+
*
|
|
2229
2312
|
* @example
|
|
2230
2313
|
* ```js
|
|
2231
2314
|
* disabledActions: [Action.AxisMenuTextWrapping]
|
|
@@ -2238,6 +2321,7 @@
|
|
|
2238
2321
|
* customization menu.
|
|
2239
2322
|
* Removes the data labels from a chart or the column of a
|
|
2240
2323
|
* table visualization.
|
|
2324
|
+
*
|
|
2241
2325
|
* @example
|
|
2242
2326
|
* ```js
|
|
2243
2327
|
* disabledActions: [Action.AxisMenuRemove]
|
|
@@ -2252,6 +2336,7 @@
|
|
|
2252
2336
|
/**
|
|
2253
2337
|
* The **Rename** menu action on Liveboards and visualizations.
|
|
2254
2338
|
* Allows renaming a Liveboard or visualization.
|
|
2339
|
+
*
|
|
2255
2340
|
* @example
|
|
2256
2341
|
* ```js
|
|
2257
2342
|
* disabledActions: [Action.RenameModalTitleDescription]
|
|
@@ -2268,13 +2353,29 @@
|
|
|
2268
2353
|
*/
|
|
2269
2354
|
Action["MarkAsVerified"] = "markAsVerified";
|
|
2270
2355
|
/**
|
|
2271
|
-
* @version SDK: 1.
|
|
2356
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
2272
2357
|
*/
|
|
2273
2358
|
Action["AddTab"] = "addTab";
|
|
2274
2359
|
/**
|
|
2275
2360
|
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
|
|
2276
2361
|
*/
|
|
2277
2362
|
Action["EnableContextualChangeAnalysis"] = "enableContextualChangeAnalysis";
|
|
2363
|
+
/**
|
|
2364
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
2365
|
+
*/
|
|
2366
|
+
Action["ShowSageQuery"] = "showSageQuery";
|
|
2367
|
+
/**
|
|
2368
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
2369
|
+
*/
|
|
2370
|
+
Action["EditSageAnswer"] = "editSageAnswer";
|
|
2371
|
+
/**
|
|
2372
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
2373
|
+
*/
|
|
2374
|
+
Action["SageAnswerFeedback"] = "sageAnswerFeedback";
|
|
2375
|
+
/**
|
|
2376
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
2377
|
+
*/
|
|
2378
|
+
Action["ModifySageAnswer"] = "modifySageAnswer";
|
|
2278
2379
|
})(exports.Action || (exports.Action = {}));
|
|
2279
2380
|
// eslint-disable-next-line no-shadow
|
|
2280
2381
|
var OperationType;
|
|
@@ -27762,6 +27863,10 @@
|
|
|
27762
27863
|
// Sending an empty function to keep it consistent with the above usage.
|
|
27763
27864
|
return fn(() => { }); // eslint-disable-line @typescript-eslint/no-empty-function
|
|
27764
27865
|
};
|
|
27866
|
+
/**
|
|
27867
|
+
* @param data
|
|
27868
|
+
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
27869
|
+
*/
|
|
27765
27870
|
const executeTML = async (data) => {
|
|
27766
27871
|
const { thoughtSpotHost, authType } = config;
|
|
27767
27872
|
try {
|
|
@@ -27802,6 +27907,10 @@
|
|
|
27802
27907
|
throw error;
|
|
27803
27908
|
});
|
|
27804
27909
|
};
|
|
27910
|
+
/**
|
|
27911
|
+
* @param data
|
|
27912
|
+
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
27913
|
+
*/
|
|
27805
27914
|
const exportTML = async (data) => {
|
|
27806
27915
|
const { thoughtSpotHost, authType } = config;
|
|
27807
27916
|
try {
|
|
@@ -28060,7 +28169,7 @@
|
|
|
28060
28169
|
});
|
|
28061
28170
|
}
|
|
28062
28171
|
|
|
28063
|
-
var name="@thoughtspot/visual-embed-sdk";var version="1.23.
|
|
28172
|
+
var name="@thoughtspot/visual-embed-sdk";var version="1.23.1";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports$1={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/index.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs",start:"gatsby develop","build:gatsby":"npm run clean:gatsby && gatsby build --prefix-paths","build:gatsby:noprefix":"npm run clean:gatsby && gatsby build","serve:gatsby":"gatsby serve","clean:gatsby":"gatsby clean","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js --runInBand","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^40.1.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0",gatsby:"3.13.1","gatsby-plugin-algolia":"^0.22.2","gatsby-plugin-catch-links":"^3.1.0","gatsby-plugin-env-variables":"^2.1.0","gatsby-plugin-intl":"^0.3.3","gatsby-plugin-manifest":"^3.2.0","gatsby-plugin-output":"^0.1.3","gatsby-plugin-sass":"6.7.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-puppeteer":"^4.4.0",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",puppeteer:"^7.0.1",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"2.30.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
|
|
28064
28173
|
|
|
28065
28174
|
/**
|
|
28066
28175
|
* Copyright (c) 2022
|
|
@@ -28838,7 +28947,7 @@
|
|
|
28838
28947
|
/**
|
|
28839
28948
|
* SpotIQ listing page
|
|
28840
28949
|
*/
|
|
28841
|
-
Page["SpotIQ"] = "
|
|
28950
|
+
Page["SpotIQ"] = "insights";
|
|
28842
28951
|
})(exports.Page || (exports.Page = {}));
|
|
28843
28952
|
/**
|
|
28844
28953
|
* Embeds full ThoughtSpot experience in a host application.
|
|
@@ -29382,14 +29491,15 @@
|
|
|
29382
29491
|
*/
|
|
29383
29492
|
getEmbedParams() {
|
|
29384
29493
|
var _a;
|
|
29385
|
-
const { showObjectResults, disableWorksheetChange, hideWorksheetSelector, showObjectSuggestions, } = this.viewConfig;
|
|
29386
|
-
const params =
|
|
29494
|
+
const { showObjectResults, disableWorksheetChange, hideWorksheetSelector, showObjectSuggestions, hideSampleQuestions, } = this.viewConfig;
|
|
29495
|
+
const params = this.getBaseQueryParams();
|
|
29387
29496
|
params[Param.EmbedApp] = true;
|
|
29388
29497
|
params[Param.HideEurekaResults] = !showObjectResults;
|
|
29389
29498
|
params[Param.IsSageEmbed] = true;
|
|
29390
29499
|
params[Param.DisableWorksheetChange] = !!disableWorksheetChange;
|
|
29391
29500
|
params[Param.HideWorksheetSelector] = !!hideWorksheetSelector;
|
|
29392
29501
|
params[Param.HideEurekaSuggestions] = !showObjectSuggestions;
|
|
29502
|
+
params[Param.HideSampleQuestions] = !hideSampleQuestions;
|
|
29393
29503
|
params[Param.HideActions] = [
|
|
29394
29504
|
...((_a = params[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
|
|
29395
29505
|
...HiddenActionItemByDefaultForSageEmbed,
|
|
@@ -29404,8 +29514,16 @@
|
|
|
29404
29514
|
*/
|
|
29405
29515
|
getIFrameSrc() {
|
|
29406
29516
|
const path = 'eureka';
|
|
29517
|
+
const postHashObj = {};
|
|
29407
29518
|
const tsPostHashParams = this.getThoughtSpotPostUrlParams();
|
|
29408
|
-
|
|
29519
|
+
if (this.viewConfig.searchQuery)
|
|
29520
|
+
postHashObj[Param.Query] = this.viewConfig.searchQuery;
|
|
29521
|
+
if (this.viewConfig.dataSource)
|
|
29522
|
+
postHashObj[Param.WorksheetId] = this.viewConfig.dataSource;
|
|
29523
|
+
let sagePostHashParams = new URLSearchParams(postHashObj).toString();
|
|
29524
|
+
if (sagePostHashParams)
|
|
29525
|
+
sagePostHashParams = `${tsPostHashParams ? '&' : '?'}${sagePostHashParams}`;
|
|
29526
|
+
return `${this.getRootIframeSrc()}/embed/${path}${tsPostHashParams}${sagePostHashParams}`;
|
|
29409
29527
|
}
|
|
29410
29528
|
/**
|
|
29411
29529
|
* Render the embedded ThoughtSpot Sage
|