@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.
@@ -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 child hierarchy node under the resolved scope, with configured aggregation-rule values and per-node scorecard tier counts. Scope is derived from the body: empty -> ACCOUNT (rows are Orgs); org set -> ORG (rows are Projects under the Org); org + project set -> PROJECT (rows are catalog entities under the Project).
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 child hierarchy node under the resolved scope, with configured aggregation-rule values and per-node scorecard tier counts. Scope is derived from the body: empty -> ACCOUNT (rows are Orgs); org set -> ORG (rows are Projects under the Org); org + project set -> PROJECT (rows are catalog entities under the Project).
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. Scope is derived from the combination of `org` and `project`.
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,4 +1 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
1
  export {};
@@ -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 child hierarchy node under the resolved scope.
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 id, project id, or entity identifier).
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: 'ENTITY' | 'ORG' | 'PROJECT';
13
+ type: 'ORG' | 'PROJECT';
14
14
  }
@@ -1,4 +1,4 @@
1
1
  /**
2
- * Scope resolved from the request body.
2
+ * Level of hierarchy node returned as rows.
3
3
  */
4
- export type ComparisonByHierarchyScope = 'ACCOUNT' | 'ORG' | 'PROJECT';
4
+ export type ComparisonByHierarchyScope = 'ORG' | 'PROJECT';
@@ -8,4 +8,8 @@ export interface SaveDiscoverEntitiesRequest {
8
8
  integration_entity_id?: string;
9
9
  type?: string;
10
10
  }>;
11
+ /**
12
+ * @default "MANUAL"
13
+ */
14
+ selection_filter?: 'ALL' | 'MANUAL' | 'MERGE_RECOMMENDED' | 'REGISTER';
11
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-idp-service-client",
3
- "version": "0.107.0",
3
+ "version": "0.107.2",
4
4
  "description": "Harness React idp service client - IDP APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",