@harnessio/react-idp-service-client 0.107.0 → 0.107.2
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/dist/idp-service/src/services/hooks/useGetComparisonByHierarchyCardDataMutation.d.ts +1 -1
- package/dist/idp-service/src/services/hooks/useGetComparisonByHierarchyCardDataMutation.js +1 -1
- package/dist/idp-service/src/services/schemas/ComparisonByHierarchyCardDataRequest.d.ts +3 -10
- package/dist/idp-service/src/services/schemas/ComparisonByHierarchyCardDataRequest.js +0 -3
- package/dist/idp-service/src/services/schemas/ComparisonByHierarchyCardDataResponse.d.ts +1 -3
- package/dist/idp-service/src/services/schemas/ComparisonByHierarchyNode.d.ts +2 -2
- package/dist/idp-service/src/services/schemas/ComparisonByHierarchyScope.d.ts +2 -2
- package/dist/idp-service/src/services/schemas/SaveDiscoverEntitiesRequest.d.ts +4 -0
- package/package.json +1 -1
package/dist/idp-service/src/services/hooks/useGetComparisonByHierarchyCardDataMutation.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export interface GetComparisonByHierarchyCardDataProps extends GetComparisonByHi
|
|
|
17
17
|
}
|
|
18
18
|
export declare function getComparisonByHierarchyCardData(props: GetComparisonByHierarchyCardDataProps): Promise<GetComparisonByHierarchyCardDataOkResponse>;
|
|
19
19
|
/**
|
|
20
|
-
* Returns one row per
|
|
20
|
+
* Returns one row per hierarchy node at the requested `scope`. With `scope=ORG` the rows are every Org in the account; with `scope=PROJECT` the rows are every Project in the account. Each row carries values for the requested aggregation rules and Gold/Silver/Bronze scorecard compliance counts.
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
23
|
export declare function useGetComparisonByHierarchyCardDataMutation(options?: Omit<UseMutationOptions<GetComparisonByHierarchyCardDataOkResponse, GetComparisonByHierarchyCardDataErrorResponse, GetComparisonByHierarchyCardDataProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetComparisonByHierarchyCardDataOkResponse, unknown, GetComparisonByHierarchyCardDataProps, unknown>;
|
|
@@ -7,7 +7,7 @@ export function getComparisonByHierarchyCardData(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v1/persona-views/${props['persona-view-id']}/cards/comparison-by-hierarchy`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Returns one row per
|
|
10
|
+
* Returns one row per hierarchy node at the requested `scope`. With `scope=ORG` the rows are every Org in the account; with `scope=PROJECT` the rows are every Project in the account. Each row carries values for the requested aggregation rules and Gold/Silver/Bronze scorecard compliance counts.
|
|
11
11
|
*
|
|
12
12
|
*/
|
|
13
13
|
export function useGetComparisonByHierarchyCardDataMutation(options) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { ComparisonByHierarchyScope } from '../schemas/ComparisonByHierarchyScope';
|
|
1
2
|
/**
|
|
2
|
-
* Inputs for the Comparison by Hierarchy card.
|
|
3
|
+
* Inputs for the Comparison by Hierarchy card. `scope` picks the level of hierarchy node to list as rows.
|
|
3
4
|
*
|
|
4
5
|
*/
|
|
5
6
|
export interface ComparisonByHierarchyCardDataRequest {
|
|
@@ -8,13 +9,5 @@ export interface ComparisonByHierarchyCardDataRequest {
|
|
|
8
9
|
*
|
|
9
10
|
*/
|
|
10
11
|
aggregation_rule_ids?: string[];
|
|
11
|
-
|
|
12
|
-
* Org identifier. Empty -> account scope (rows are Orgs).
|
|
13
|
-
*/
|
|
14
|
-
org?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Project identifier. When set, `org` must also be set. Selecting a project switches the rows to entities under that project.
|
|
17
|
-
*
|
|
18
|
-
*/
|
|
19
|
-
project?: string;
|
|
12
|
+
scope: ComparisonByHierarchyScope;
|
|
20
13
|
}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import type { ComparisonByHierarchyColumn } from '../schemas/ComparisonByHierarchyColumn';
|
|
2
2
|
import type { ComparisonByHierarchyRow } from '../schemas/ComparisonByHierarchyRow';
|
|
3
|
-
import type { ComparisonByHierarchyScope } from '../schemas/ComparisonByHierarchyScope';
|
|
4
3
|
export interface ComparisonByHierarchyCardDataResponse {
|
|
5
4
|
/**
|
|
6
5
|
* Aggregation-rule columns, in the same order as requested.
|
|
7
6
|
*/
|
|
8
7
|
columns: ComparisonByHierarchyColumn[];
|
|
9
8
|
/**
|
|
10
|
-
* One row per
|
|
9
|
+
* One row per hierarchy node at the requested scope.
|
|
11
10
|
*/
|
|
12
11
|
rows: ComparisonByHierarchyRow[];
|
|
13
|
-
scope: ComparisonByHierarchyScope;
|
|
14
12
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export interface ComparisonByHierarchyNode {
|
|
2
2
|
/**
|
|
3
|
-
* Hierarchy node identifier (org
|
|
3
|
+
* Hierarchy node identifier (org or project identifier).
|
|
4
4
|
*/
|
|
5
5
|
identifier: string;
|
|
6
6
|
/**
|
|
@@ -10,5 +10,5 @@ export interface ComparisonByHierarchyNode {
|
|
|
10
10
|
/**
|
|
11
11
|
* Node type, used by the client to route the name link.
|
|
12
12
|
*/
|
|
13
|
-
type: '
|
|
13
|
+
type: 'ORG' | 'PROJECT';
|
|
14
14
|
}
|