@thoughtspot/visual-embed-sdk 1.40.1 → 1.40.3
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.map +1 -1
- package/cjs/src/embed/app.js +5 -1
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +33 -3
- package/cjs/src/embed/app.spec.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +2 -1
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +22 -0
- package/cjs/src/embed/liveboard.spec.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +12 -0
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +122 -0
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/errors.d.ts +10 -0
- package/cjs/src/errors.d.ts.map +1 -1
- package/cjs/src/errors.js +11 -1
- package/cjs/src/errors.js.map +1 -1
- package/cjs/src/index.d.ts +2 -2
- package/cjs/src/index.d.ts.map +1 -1
- package/cjs/src/index.js +3 -1
- package/cjs/src/index.js.map +1 -1
- package/cjs/src/react/index.d.ts +1 -1
- package/cjs/src/react/index.d.ts.map +1 -1
- package/cjs/src/react/index.js +2 -1
- package/cjs/src/react/index.js.map +1 -1
- package/cjs/src/types.d.ts +131 -5
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +39 -11
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/custom-actions.d.ts +12 -0
- package/cjs/src/utils/custom-actions.d.ts.map +1 -0
- package/cjs/src/utils/custom-actions.js +180 -0
- package/cjs/src/utils/custom-actions.js.map +1 -0
- package/cjs/src/utils/custom-actions.spec.d.ts +2 -0
- package/cjs/src/utils/custom-actions.spec.d.ts.map +1 -0
- package/cjs/src/utils/custom-actions.spec.js +399 -0
- package/cjs/src/utils/custom-actions.spec.js.map +1 -0
- package/cjs/src/utils/processData.d.ts.map +1 -1
- package/cjs/src/utils/processData.js +10 -0
- package/cjs/src/utils/processData.js.map +1 -1
- package/cjs/src/utils/processData.spec.js +11 -0
- package/cjs/src/utils/processData.spec.js.map +1 -1
- package/cjs/src/utils.d.ts +7 -0
- package/cjs/src/utils.d.ts.map +1 -1
- package/cjs/src/utils.js +11 -1
- package/cjs/src/utils.js.map +1 -1
- package/cjs/src/utils.spec.js +28 -0
- package/cjs/src/utils.spec.js.map +1 -1
- package/dist/{index-P5YjBOuJ.js → index-BICLzyVL.js} +1 -1
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.spec.d.ts.map +1 -1
- package/dist/src/errors.d.ts +10 -0
- package/dist/src/errors.d.ts.map +1 -1
- package/dist/src/index.d.ts +2 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/react/index.d.ts +1 -1
- package/dist/src/react/index.d.ts.map +1 -1
- package/dist/src/types.d.ts +131 -5
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/custom-actions.d.ts +12 -0
- package/dist/src/utils/custom-actions.d.ts.map +1 -0
- package/dist/src/utils/custom-actions.spec.d.ts +2 -0
- package/dist/src/utils/custom-actions.spec.d.ts.map +1 -0
- package/dist/src/utils/processData.d.ts.map +1 -1
- package/dist/src/utils.d.ts +7 -0
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +1705 -203
- package/dist/tsembed-react.js +1704 -202
- package/dist/tsembed.es.js +1653 -151
- package/dist/tsembed.js +1652 -150
- package/dist/visual-embed-sdk-react-full.d.ts +132 -6
- package/dist/visual-embed-sdk-react.d.ts +132 -6
- package/dist/visual-embed-sdk.d.ts +132 -6
- package/lib/package.json +1 -1
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +5 -1
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +33 -3
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +2 -1
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +22 -0
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +12 -0
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +123 -1
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/errors.d.ts +10 -0
- package/lib/src/errors.d.ts.map +1 -1
- package/lib/src/errors.js +10 -0
- package/lib/src/errors.js.map +1 -1
- package/lib/src/index.d.ts +2 -2
- package/lib/src/index.d.ts.map +1 -1
- package/lib/src/index.js +2 -2
- package/lib/src/index.js.map +1 -1
- package/lib/src/react/index.d.ts +1 -1
- package/lib/src/react/index.d.ts.map +1 -1
- package/lib/src/react/index.js +1 -1
- package/lib/src/react/index.js.map +1 -1
- package/lib/src/types.d.ts +131 -5
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +38 -10
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/custom-actions.d.ts +12 -0
- package/lib/src/utils/custom-actions.d.ts.map +1 -0
- package/lib/src/utils/custom-actions.js +175 -0
- package/lib/src/utils/custom-actions.js.map +1 -0
- package/lib/src/utils/custom-actions.spec.d.ts +2 -0
- package/lib/src/utils/custom-actions.spec.d.ts.map +1 -0
- package/lib/src/utils/custom-actions.spec.js +397 -0
- package/lib/src/utils/custom-actions.spec.js.map +1 -0
- package/lib/src/utils/processData.d.ts.map +1 -1
- package/lib/src/utils/processData.js +10 -0
- package/lib/src/utils/processData.js.map +1 -1
- package/lib/src/utils/processData.spec.js +11 -0
- package/lib/src/utils/processData.spec.js.map +1 -1
- package/lib/src/utils.d.ts +7 -0
- package/lib/src/utils.d.ts.map +1 -1
- package/lib/src/utils.js +9 -0
- package/lib/src/utils.js.map +1 -1
- package/lib/src/utils.spec.js +29 -1
- package/lib/src/utils.spec.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +133 -7
- package/package.json +1 -1
- package/src/embed/app.spec.ts +48 -3
- package/src/embed/app.ts +5 -0
- package/src/embed/liveboard.spec.ts +30 -0
- package/src/embed/liveboard.ts +2 -0
- package/src/embed/ts-embed.spec.ts +135 -1
- package/src/embed/ts-embed.ts +12 -0
- package/src/errors.ts +11 -0
- package/src/index.ts +4 -0
- package/src/react/index.tsx +1 -0
- package/src/types.ts +147 -16
- package/src/utils/custom-actions.spec.ts +431 -0
- package/src/utils/custom-actions.ts +217 -0
- package/src/utils/processData.spec.ts +12 -0
- package/src/utils/processData.ts +10 -0
- package/src/utils.spec.ts +34 -0
- package/src/utils.ts +10 -0
package/src/types.ts
CHANGED
|
@@ -14,7 +14,7 @@ import type { SessionInterface } from './utils/graphql/answerService/answerServi
|
|
|
14
14
|
* the embedded app
|
|
15
15
|
* @group Authentication / Init
|
|
16
16
|
*/
|
|
17
|
-
|
|
17
|
+
|
|
18
18
|
export enum AuthType {
|
|
19
19
|
/**
|
|
20
20
|
* No authentication on the SDK. Pass-through to the embedded App. Alias for
|
|
@@ -262,7 +262,7 @@ export interface customCssInterface {
|
|
|
262
262
|
* };
|
|
263
263
|
* ```
|
|
264
264
|
*/
|
|
265
|
-
|
|
265
|
+
|
|
266
266
|
rules_UNSTABLE?: {
|
|
267
267
|
[selector: string]: {
|
|
268
268
|
[declaration: string]: string;
|
|
@@ -666,6 +666,32 @@ export interface EmbedConfig {
|
|
|
666
666
|
* ```
|
|
667
667
|
*/
|
|
668
668
|
disableFullscreenPresentation?: boolean;
|
|
669
|
+
|
|
670
|
+
/**
|
|
671
|
+
* Custom Actions allows users to define interactive UI actions (like buttons or menu
|
|
672
|
+
* items) that appear in ThoughtSpot's visualizations, answers, and Liveboards. These
|
|
673
|
+
* actions enable users to trigger custom workflows — such as navigating to an
|
|
674
|
+
* external app, calling an API, or opening a modal — based on the data context of
|
|
675
|
+
* what they clicked can be used to trigger custom logic when the action is clicked.
|
|
676
|
+
* @version SDK: 1.43.0 | ThoughtSpot: 10.14.0.cl
|
|
677
|
+
* @example
|
|
678
|
+
* ```js
|
|
679
|
+
* import { CustomActionPosition, CustomActionTarget } from '@thoughtspot/visual-embed-sdk';
|
|
680
|
+
* init({
|
|
681
|
+
* ... // other embed config options
|
|
682
|
+
* customActions: [
|
|
683
|
+
* {
|
|
684
|
+
* name: 'customAction',
|
|
685
|
+
* id: 'customAction',
|
|
686
|
+
* target: CustomActionTarget.VISUALIZATION,
|
|
687
|
+
* position: CustomActionPosition.PRIMARY,
|
|
688
|
+
* }
|
|
689
|
+
* }
|
|
690
|
+
* ]
|
|
691
|
+
* })
|
|
692
|
+
* ```
|
|
693
|
+
*/
|
|
694
|
+
customActions?: CustomAction[];
|
|
669
695
|
}
|
|
670
696
|
|
|
671
697
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
@@ -731,7 +757,7 @@ export interface BaseViewConfig {
|
|
|
731
757
|
/**
|
|
732
758
|
* @hidden
|
|
733
759
|
*/
|
|
734
|
-
|
|
760
|
+
|
|
735
761
|
styleSheet__unstable?: string;
|
|
736
762
|
/**
|
|
737
763
|
* The list of actions to disable from the primary menu, more menu
|
|
@@ -931,7 +957,7 @@ export interface BaseViewConfig {
|
|
|
931
957
|
* ```
|
|
932
958
|
* @version SDK: 1.31.2 | ThoughtSpot: 10.0.0.cl
|
|
933
959
|
*/
|
|
934
|
-
|
|
960
|
+
|
|
935
961
|
enableV2Shell_experimental?: boolean;
|
|
936
962
|
/**
|
|
937
963
|
* For internal tracking of the embed component type.
|
|
@@ -1030,6 +1056,34 @@ export interface BaseViewConfig {
|
|
|
1030
1056
|
* ```
|
|
1031
1057
|
*/
|
|
1032
1058
|
showAlerts?: boolean;
|
|
1059
|
+
/**
|
|
1060
|
+
* Custom Actions allows users to define interactive UI actions (like buttons or menu
|
|
1061
|
+
* items) that appear in ThoughtSpot's visualizations, answers, and Liveboards. These
|
|
1062
|
+
* actions enable users to trigger custom workflows — such as navigating to an
|
|
1063
|
+
* external app, calling an API, or opening a modal — based on the data context of
|
|
1064
|
+
* what they clicked can be used to trigger custom logic when the action is clicked.
|
|
1065
|
+
*
|
|
1066
|
+
* Supported embed types: `AppEmbed`, `LiveboardEmbed`, `SageEmbed`, `SearchEmbed`, `SpotterEmbed`
|
|
1067
|
+
* @version SDK: 1.43.0 | ThoughtSpot: 10.14.0.cl
|
|
1068
|
+
* @example
|
|
1069
|
+
* ```js
|
|
1070
|
+
* import { CustomActionPosition, CustomActionTarget } from '@thoughtspot/visual-embed-sdk';
|
|
1071
|
+
* // Use supported embed types such as AppEmbed or LiveboardEmbed
|
|
1072
|
+
* const embed = new LiveboardEmbed('#tsEmbed', {
|
|
1073
|
+
* ... // other embed config options
|
|
1074
|
+
* customActions: [
|
|
1075
|
+
* {
|
|
1076
|
+
* name: 'customAction',
|
|
1077
|
+
* id: 'customAction',
|
|
1078
|
+
* target: CustomActionTarget.VISUALIZATION,
|
|
1079
|
+
* position: CustomActionPosition.PRIMARY,
|
|
1080
|
+
* }
|
|
1081
|
+
* }
|
|
1082
|
+
* ]
|
|
1083
|
+
* })
|
|
1084
|
+
* ```
|
|
1085
|
+
*/
|
|
1086
|
+
customActions?: CustomAction[];
|
|
1033
1087
|
}
|
|
1034
1088
|
|
|
1035
1089
|
/**
|
|
@@ -1359,7 +1413,8 @@ export interface LiveboardAppEmbedViewConfig {
|
|
|
1359
1413
|
*/
|
|
1360
1414
|
isLiveboardCompactHeaderEnabled?: boolean;
|
|
1361
1415
|
/**
|
|
1362
|
-
* This flag can be used to show or hide the Liveboard verified icon in the compact
|
|
1416
|
+
* This flag can be used to show or hide the Liveboard verified icon in the compact
|
|
1417
|
+
* header.
|
|
1363
1418
|
*
|
|
1364
1419
|
* Supported embed types: `AppEmbed`, `LiveboardEmbed`
|
|
1365
1420
|
* @version SDK: 1.35.0 | ThoughtSpot:10.4.0.cl
|
|
@@ -1376,6 +1431,8 @@ export interface LiveboardAppEmbedViewConfig {
|
|
|
1376
1431
|
showLiveboardVerifiedBadge?: boolean;
|
|
1377
1432
|
/**
|
|
1378
1433
|
* This flag is used to enable/disable hide irrelevant filters in Liveboard tab
|
|
1434
|
+
*
|
|
1435
|
+
* **Note**: This feature is supported only if compact header is enabled on your Liveboard. To enable compact header, use the `isLiveboardCompactHeaderEnabled` attribute.
|
|
1379
1436
|
*
|
|
1380
1437
|
* Supported embed types: `AppEmbed`, `LiveboardEmbed`
|
|
1381
1438
|
* @version SDK: 1.36.0 | ThoughtSpot:10.6.0.cl
|
|
@@ -1386,12 +1443,14 @@ export interface LiveboardAppEmbedViewConfig {
|
|
|
1386
1443
|
* const embed = new <EmbedComponent>('#tsEmbed', {
|
|
1387
1444
|
* ... // other embed view config
|
|
1388
1445
|
* hideIrrelevantChipsInLiveboardTabs: true,
|
|
1446
|
+
* isLiveboardCompactHeaderEnabled: true,
|
|
1389
1447
|
* })
|
|
1390
1448
|
* ```
|
|
1391
1449
|
*/
|
|
1392
1450
|
hideIrrelevantChipsInLiveboardTabs?: boolean;
|
|
1393
1451
|
/**
|
|
1394
|
-
* This flag can be used to show or hide the re-verify banner on the Liveboard
|
|
1452
|
+
* This flag can be used to show or hide the re-verify banner on the Liveboard
|
|
1453
|
+
* compact header
|
|
1395
1454
|
*
|
|
1396
1455
|
* Supported embed types: `AppEmbed`, `LiveboardEmbed`
|
|
1397
1456
|
* @version SDK: 1.35.0 | ThoughtSpot:10.4.0.cl
|
|
@@ -1438,6 +1497,22 @@ export interface LiveboardAppEmbedViewConfig {
|
|
|
1438
1497
|
* ```
|
|
1439
1498
|
*/
|
|
1440
1499
|
coverAndFilterOptionInPDF?: boolean;
|
|
1500
|
+
/**
|
|
1501
|
+
* This flag is used to enable or disable the XLSX/CSV download option for Liveboards.
|
|
1502
|
+
*
|
|
1503
|
+
* Supported embed types: `AppEmbed`, `LiveboardEmbed`
|
|
1504
|
+
* @version SDK: 1.41.0 | ThoughtSpot: 10.14.0.cl
|
|
1505
|
+
* @example
|
|
1506
|
+
* ```js
|
|
1507
|
+
* // Replace <EmbedComponent> with embed component name. For example, AppEmbed or LiveboardEmbed
|
|
1508
|
+
* const embed = new <EmbedComponent>('#tsEmbed', {
|
|
1509
|
+
* ... // other embed view config
|
|
1510
|
+
* liveboardXLSXCSVDownload: true,
|
|
1511
|
+
* })
|
|
1512
|
+
* ```
|
|
1513
|
+
*/
|
|
1514
|
+
liveboardXLSXCSVDownload?: boolean;
|
|
1515
|
+
|
|
1441
1516
|
}
|
|
1442
1517
|
|
|
1443
1518
|
export interface AllEmbedViewConfig extends BaseViewConfig, SearchLiveboardCommonViewConfig, HomePageConfig, LiveboardAppEmbedViewConfig {}
|
|
@@ -1501,7 +1576,7 @@ export type QueryParams = {
|
|
|
1501
1576
|
/**
|
|
1502
1577
|
* A map of the supported runtime filter operations
|
|
1503
1578
|
*/
|
|
1504
|
-
|
|
1579
|
+
|
|
1505
1580
|
export enum RuntimeFilterOp {
|
|
1506
1581
|
/**
|
|
1507
1582
|
* Equals
|
|
@@ -1572,7 +1647,7 @@ export enum RuntimeFilterOp {
|
|
|
1572
1647
|
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
1573
1648
|
* @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl, 10.1.0.sw
|
|
1574
1649
|
*/
|
|
1575
|
-
|
|
1650
|
+
|
|
1576
1651
|
export enum HomepageModule {
|
|
1577
1652
|
/**
|
|
1578
1653
|
* Search bar
|
|
@@ -1605,7 +1680,7 @@ export enum HomepageModule {
|
|
|
1605
1680
|
* **Note**: This option is applicable to full app embedding only.
|
|
1606
1681
|
* @version SDK: 1.38.0 | ThoughtSpot: 10.9.0.cl
|
|
1607
1682
|
*/
|
|
1608
|
-
|
|
1683
|
+
|
|
1609
1684
|
export enum ListPageColumns {
|
|
1610
1685
|
/**
|
|
1611
1686
|
* Favourite
|
|
@@ -1703,7 +1778,7 @@ export interface RuntimeParameter {
|
|
|
1703
1778
|
* ```
|
|
1704
1779
|
* @group Events
|
|
1705
1780
|
*/
|
|
1706
|
-
|
|
1781
|
+
|
|
1707
1782
|
export enum EmbedEvent {
|
|
1708
1783
|
/**
|
|
1709
1784
|
* Rendering has initialized.
|
|
@@ -2346,6 +2421,11 @@ export enum EmbedEvent {
|
|
|
2346
2421
|
* @hidden
|
|
2347
2422
|
*/
|
|
2348
2423
|
APP_INIT = 'appInit',
|
|
2424
|
+
/**
|
|
2425
|
+
* Internal event to clear the cached info
|
|
2426
|
+
* @hidden
|
|
2427
|
+
*/
|
|
2428
|
+
CLEAR_INFO_CACHE = 'clearInfoCache',
|
|
2349
2429
|
/**
|
|
2350
2430
|
* Emitted when a user clicks **Show Liveboard details** on a Liveboard
|
|
2351
2431
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
@@ -2814,6 +2894,17 @@ export enum EmbedEvent {
|
|
|
2814
2894
|
* ```
|
|
2815
2895
|
*/
|
|
2816
2896
|
EmbedListenerReady = 'EmbedListenerReady',
|
|
2897
|
+
/**
|
|
2898
|
+
* Emitted when the organization is switched.
|
|
2899
|
+
* @example
|
|
2900
|
+
* ```js
|
|
2901
|
+
* appEmbed.on(EmbedEvent.OrgSwitched, (payload) => {
|
|
2902
|
+
* console.log('payload', payload);
|
|
2903
|
+
* })
|
|
2904
|
+
* ```
|
|
2905
|
+
* @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
|
|
2906
|
+
*/
|
|
2907
|
+
OrgSwitched = 'orgSwitched',
|
|
2817
2908
|
}
|
|
2818
2909
|
|
|
2819
2910
|
/**
|
|
@@ -2869,7 +2960,7 @@ export enum EmbedEvent {
|
|
|
2869
2960
|
* ```
|
|
2870
2961
|
* @group Events
|
|
2871
2962
|
*/
|
|
2872
|
-
|
|
2963
|
+
|
|
2873
2964
|
export enum HostEvent {
|
|
2874
2965
|
/**
|
|
2875
2966
|
* Triggers a search operation with the search tokens specified in
|
|
@@ -4084,7 +4175,7 @@ export enum HostEvent {
|
|
|
4084
4175
|
* The different visual modes that the data sources panel within
|
|
4085
4176
|
* search could appear in, such as hidden, collapsed, or expanded.
|
|
4086
4177
|
*/
|
|
4087
|
-
|
|
4178
|
+
|
|
4088
4179
|
export enum DataSourceVisualMode {
|
|
4089
4180
|
/**
|
|
4090
4181
|
* The data source panel is hidden.
|
|
@@ -4104,7 +4195,7 @@ export enum DataSourceVisualMode {
|
|
|
4104
4195
|
* The query params passed down to the embedded ThoughtSpot app
|
|
4105
4196
|
* containing configuration and/or visual information.
|
|
4106
4197
|
*/
|
|
4107
|
-
|
|
4198
|
+
|
|
4108
4199
|
export enum Param {
|
|
4109
4200
|
EmbedApp = 'embedApp',
|
|
4110
4201
|
DataSources = 'dataSources',
|
|
@@ -4224,7 +4315,8 @@ export enum Param {
|
|
|
4224
4315
|
isSpotterAgentEmbed = 'isSpotterAgentEmbed',
|
|
4225
4316
|
IsLiveboardStylingAndGroupingEnabled = 'isLiveboardStylingAndGroupingEnabled',
|
|
4226
4317
|
IsLazyLoadingForEmbedEnabled = 'isLazyLoadingForEmbedEnabled',
|
|
4227
|
-
RootMarginForLazyLoad = 'rootMarginForLazyLoad'
|
|
4318
|
+
RootMarginForLazyLoad = 'rootMarginForLazyLoad',
|
|
4319
|
+
LiveboardXLSXCSVDownload = 'isLiveboardXLSXCSVDownloadEnabled',
|
|
4228
4320
|
}
|
|
4229
4321
|
|
|
4230
4322
|
/**
|
|
@@ -4254,7 +4346,7 @@ export enum Param {
|
|
|
4254
4346
|
* ```
|
|
4255
4347
|
* See also link:https://developers.thoughtspot.com/docs/actions[Action IDs in the SDK]
|
|
4256
4348
|
*/
|
|
4257
|
-
|
|
4349
|
+
|
|
4258
4350
|
export enum Action {
|
|
4259
4351
|
/**
|
|
4260
4352
|
* The **Save** action on an Answer or Liveboard.
|
|
@@ -4799,7 +4891,7 @@ export enum Action {
|
|
|
4799
4891
|
* The Favorites icon (*) for Answers,
|
|
4800
4892
|
* Liveboard, and data objects like Worksheet, Model,
|
|
4801
4893
|
* Tables and Views.
|
|
4802
|
-
* Allows adding an object to the user
|
|
4894
|
+
* Allows adding an object to the user's favorites list.
|
|
4803
4895
|
* @example
|
|
4804
4896
|
* ```js
|
|
4805
4897
|
* disabledActions: [Action.AddToFavorites]
|
|
@@ -5595,6 +5687,44 @@ export interface CustomActionPayload {
|
|
|
5595
5687
|
vizId?: string;
|
|
5596
5688
|
}
|
|
5597
5689
|
|
|
5690
|
+
export interface CustomAction {
|
|
5691
|
+
name: string;
|
|
5692
|
+
id: string;
|
|
5693
|
+
position: CustomActionsPosition;
|
|
5694
|
+
target: CustomActionTarget;
|
|
5695
|
+
metadataIds?: {
|
|
5696
|
+
answerIds?: string[];
|
|
5697
|
+
liveboardIds?: string[];
|
|
5698
|
+
vizIds?: string[];
|
|
5699
|
+
};
|
|
5700
|
+
dataModelIds?: {
|
|
5701
|
+
modelIds?: string[];
|
|
5702
|
+
modelColumnNames?: string[];
|
|
5703
|
+
}
|
|
5704
|
+
orgIds?: string[];
|
|
5705
|
+
groupIds?: string[];
|
|
5706
|
+
}
|
|
5707
|
+
|
|
5708
|
+
/**
|
|
5709
|
+
* Enum options to show custom actions at different
|
|
5710
|
+
* positions in the application.
|
|
5711
|
+
*/
|
|
5712
|
+
export enum CustomActionsPosition {
|
|
5713
|
+
PRIMARY = 'PRIMARY',
|
|
5714
|
+
MENU = 'MENU',
|
|
5715
|
+
CONTEXTMENU = 'CONTEXTMENU',
|
|
5716
|
+
}
|
|
5717
|
+
|
|
5718
|
+
/**
|
|
5719
|
+
* Enum options to mention the target of the custom action.
|
|
5720
|
+
*/
|
|
5721
|
+
export enum CustomActionTarget {
|
|
5722
|
+
LIVEBOARD = 'LIVEBOARD',
|
|
5723
|
+
VIZ = 'VIZ',
|
|
5724
|
+
ANSWER = 'ANSWER',
|
|
5725
|
+
SPOTTER = 'SPOTTER',
|
|
5726
|
+
}
|
|
5727
|
+
|
|
5598
5728
|
/**
|
|
5599
5729
|
* Enum options to show or suppress Visual Embed SDK and
|
|
5600
5730
|
* ThoughtSpot application logs in the console output.
|
|
@@ -5692,4 +5822,5 @@ export interface DefaultAppInitData {
|
|
|
5692
5822
|
hiddenHomeLeftNavItems: string[];
|
|
5693
5823
|
customVariablesForThirdPartyTools: Record<string, any>;
|
|
5694
5824
|
hiddenListColumns: ListPageColumns[];
|
|
5825
|
+
customActions: CustomAction[];
|
|
5695
5826
|
}
|