@harnessio/react-idp-service-client 0.105.0 → 0.107.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.
Files changed (50) hide show
  1. package/dist/idp-service/src/services/hooks/useGetComparisonByHierarchyCardDataMutation.d.ts +23 -0
  2. package/dist/idp-service/src/services/hooks/useGetComparisonByHierarchyCardDataMutation.js +15 -0
  3. package/dist/idp-service/src/services/hooks/useGetPersonaViewQuery.d.ts +19 -0
  4. package/dist/idp-service/src/services/hooks/useGetPersonaViewQuery.js +14 -0
  5. package/dist/idp-service/src/services/hooks/useGetPersonaViewsForUserQuery.d.ts +16 -0
  6. package/dist/idp-service/src/services/hooks/useGetPersonaViewsForUserQuery.js +14 -0
  7. package/dist/idp-service/src/services/hooks/useListPersonaViewsQuery.d.ts +24 -0
  8. package/dist/idp-service/src/services/hooks/useListPersonaViewsQuery.js +14 -0
  9. package/dist/idp-service/src/services/hooks/useSavePersonaViewMutation.d.ts +22 -0
  10. package/dist/idp-service/src/services/hooks/useSavePersonaViewMutation.js +14 -0
  11. package/dist/idp-service/src/services/index.d.ts +28 -0
  12. package/dist/idp-service/src/services/index.js +5 -0
  13. package/dist/idp-service/src/services/requestBodies/ComparisonByHierarchyCardDataRequestRequestBody.d.ts +2 -0
  14. package/dist/idp-service/src/services/requestBodies/ComparisonByHierarchyCardDataRequestRequestBody.js +1 -0
  15. package/dist/idp-service/src/services/requestBodies/SavePersonaViewRequestRequestBody.d.ts +2 -0
  16. package/dist/idp-service/src/services/requestBodies/SavePersonaViewRequestRequestBody.js +1 -0
  17. package/dist/idp-service/src/services/responses/ComparisonByHierarchyCardDataResponseResponse.d.ts +2 -0
  18. package/dist/idp-service/src/services/responses/ComparisonByHierarchyCardDataResponseResponse.js +1 -0
  19. package/dist/idp-service/src/services/responses/PersonaViewResponseResponse.d.ts +2 -0
  20. package/dist/idp-service/src/services/responses/PersonaViewResponseResponse.js +1 -0
  21. package/dist/idp-service/src/services/schemas/Card.d.ts +1 -1
  22. package/dist/idp-service/src/services/schemas/ComparisonByHierarchyCardDataRequest.d.ts +20 -0
  23. package/dist/idp-service/src/services/schemas/ComparisonByHierarchyCardDataRequest.js +4 -0
  24. package/dist/idp-service/src/services/schemas/ComparisonByHierarchyCardDataResponse.d.ts +14 -0
  25. package/dist/idp-service/src/services/schemas/ComparisonByHierarchyCardDataResponse.js +1 -0
  26. package/dist/idp-service/src/services/schemas/ComparisonByHierarchyColumn.d.ts +10 -0
  27. package/dist/idp-service/src/services/schemas/ComparisonByHierarchyColumn.js +4 -0
  28. package/dist/idp-service/src/services/schemas/ComparisonByHierarchyNode.d.ts +14 -0
  29. package/dist/idp-service/src/services/schemas/ComparisonByHierarchyNode.js +4 -0
  30. package/dist/idp-service/src/services/schemas/ComparisonByHierarchyRow.d.ts +13 -0
  31. package/dist/idp-service/src/services/schemas/ComparisonByHierarchyRow.js +1 -0
  32. package/dist/idp-service/src/services/schemas/ComparisonByHierarchyScope.d.ts +4 -0
  33. package/dist/idp-service/src/services/schemas/ComparisonByHierarchyScope.js +4 -0
  34. package/dist/idp-service/src/services/schemas/PersonaView.d.ts +31 -0
  35. package/dist/idp-service/src/services/schemas/PersonaView.js +1 -0
  36. package/dist/idp-service/src/services/schemas/PersonaViewListForUser.d.ts +4 -0
  37. package/dist/idp-service/src/services/schemas/PersonaViewListForUser.js +1 -0
  38. package/dist/idp-service/src/services/schemas/PersonaViewListResponse.d.ts +4 -0
  39. package/dist/idp-service/src/services/schemas/PersonaViewListResponse.js +1 -0
  40. package/dist/idp-service/src/services/schemas/PersonaViewResponse.d.ts +4 -0
  41. package/dist/idp-service/src/services/schemas/PersonaViewResponse.js +1 -0
  42. package/dist/idp-service/src/services/schemas/SavePersonaViewBody.d.ts +7 -0
  43. package/dist/idp-service/src/services/schemas/SavePersonaViewBody.js +1 -0
  44. package/dist/idp-service/src/services/schemas/SavePersonaViewRequest.d.ts +4 -0
  45. package/dist/idp-service/src/services/schemas/SavePersonaViewRequest.js +1 -0
  46. package/dist/idp-service/src/services/schemas/ScorecardComplianceCounts.d.ts +18 -0
  47. package/dist/idp-service/src/services/schemas/ScorecardComplianceCounts.js +4 -0
  48. package/dist/idp-service/src/services/schemas/UserGroupRef.d.ts +4 -0
  49. package/dist/idp-service/src/services/schemas/UserGroupRef.js +4 -0
  50. package/package.json +1 -1
@@ -0,0 +1,23 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ComparisonByHierarchyCardDataResponseResponse } from '../responses/ComparisonByHierarchyCardDataResponseResponse';
3
+ import type { ComparisonByHierarchyCardDataRequestRequestBody } from '../requestBodies/ComparisonByHierarchyCardDataRequestRequestBody';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../custom-idp-fetcher/index.js';
6
+ export interface GetComparisonByHierarchyCardDataMutationPathParams {
7
+ 'persona-view-id': string;
8
+ }
9
+ export interface GetComparisonByHierarchyCardDataMutationHeaderParams {
10
+ 'Harness-Account'?: string;
11
+ }
12
+ export type GetComparisonByHierarchyCardDataRequestBody = ComparisonByHierarchyCardDataRequestRequestBody;
13
+ export type GetComparisonByHierarchyCardDataOkResponse = ResponseWithPagination<ComparisonByHierarchyCardDataResponseResponse>;
14
+ export type GetComparisonByHierarchyCardDataErrorResponse = unknown;
15
+ export interface GetComparisonByHierarchyCardDataProps extends GetComparisonByHierarchyCardDataMutationPathParams, Omit<FetcherOptions<unknown, GetComparisonByHierarchyCardDataRequestBody, GetComparisonByHierarchyCardDataMutationHeaderParams>, 'url'> {
16
+ body: GetComparisonByHierarchyCardDataRequestBody;
17
+ }
18
+ export declare function getComparisonByHierarchyCardData(props: GetComparisonByHierarchyCardDataProps): Promise<GetComparisonByHierarchyCardDataOkResponse>;
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).
21
+ *
22
+ */
23
+ export declare function useGetComparisonByHierarchyCardDataMutation(options?: Omit<UseMutationOptions<GetComparisonByHierarchyCardDataOkResponse, GetComparisonByHierarchyCardDataErrorResponse, GetComparisonByHierarchyCardDataProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetComparisonByHierarchyCardDataOkResponse, unknown, GetComparisonByHierarchyCardDataProps, unknown>;
@@ -0,0 +1,15 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../custom-idp-fetcher/index.js';
6
+ export function getComparisonByHierarchyCardData(props) {
7
+ return fetcher(Object.assign({ url: `/v1/persona-views/${props['persona-view-id']}/cards/comparison-by-hierarchy`, method: 'POST' }, props));
8
+ }
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).
11
+ *
12
+ */
13
+ export function useGetComparisonByHierarchyCardDataMutation(options) {
14
+ return useMutation((mutateProps) => getComparisonByHierarchyCardData(mutateProps), options);
15
+ }
@@ -0,0 +1,19 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { PersonaViewResponseResponse } from '../responses/PersonaViewResponseResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../custom-idp-fetcher/index.js';
5
+ export interface GetPersonaViewQueryPathParams {
6
+ 'persona-view-identifier': string;
7
+ }
8
+ export interface GetPersonaViewQueryHeaderParams {
9
+ 'Harness-Account'?: string;
10
+ }
11
+ export type GetPersonaViewOkResponse = ResponseWithPagination<PersonaViewResponseResponse>;
12
+ export type GetPersonaViewErrorResponse = unknown;
13
+ export interface GetPersonaViewProps extends GetPersonaViewQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetPersonaViewQueryHeaderParams>, 'url'> {
14
+ }
15
+ export declare function getPersonaView(props: GetPersonaViewProps): Promise<GetPersonaViewOkResponse>;
16
+ /**
17
+ * Get a persona view
18
+ */
19
+ export declare function useGetPersonaViewQuery(props: GetPersonaViewProps, options?: Omit<UseQueryOptions<GetPersonaViewOkResponse, GetPersonaViewErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetPersonaViewOkResponse, unknown>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../custom-idp-fetcher/index.js';
6
+ export function getPersonaView(props) {
7
+ return fetcher(Object.assign({ url: `/v1/persona-views/${props['persona-view-identifier']}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get a persona view
11
+ */
12
+ export function useGetPersonaViewQuery(props, options) {
13
+ return useQuery(['get-persona-view', props['persona-view-identifier']], ({ signal }) => getPersonaView(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,16 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { PersonaViewListForUser } from '../schemas/PersonaViewListForUser';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../custom-idp-fetcher/index.js';
5
+ export interface GetPersonaViewsForUserQueryHeaderParams {
6
+ 'Harness-Account'?: string;
7
+ }
8
+ export type GetPersonaViewsForUserOkResponse = ResponseWithPagination<PersonaViewListForUser>;
9
+ export type GetPersonaViewsForUserErrorResponse = unknown;
10
+ export interface GetPersonaViewsForUserProps extends Omit<FetcherOptions<unknown, unknown, GetPersonaViewsForUserQueryHeaderParams>, 'url'> {
11
+ }
12
+ export declare function getPersonaViewsForUser(props: GetPersonaViewsForUserProps): Promise<GetPersonaViewsForUserOkResponse>;
13
+ /**
14
+ * Get persona views for current user
15
+ */
16
+ export declare function useGetPersonaViewsForUserQuery(props: GetPersonaViewsForUserProps, options?: Omit<UseQueryOptions<GetPersonaViewsForUserOkResponse, GetPersonaViewsForUserErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetPersonaViewsForUserOkResponse, unknown>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../custom-idp-fetcher/index.js';
6
+ export function getPersonaViewsForUser(props) {
7
+ return fetcher(Object.assign({ url: `/v1/persona-views/me`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get persona views for current user
11
+ */
12
+ export function useGetPersonaViewsForUserQuery(props, options) {
13
+ return useQuery(['get-persona-views-for-user'], ({ signal }) => getPersonaViewsForUser(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,24 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { PersonaViewListResponse } from '../schemas/PersonaViewListResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../custom-idp-fetcher/index.js';
5
+ export interface ListPersonaViewsQueryQueryParams {
6
+ page?: number;
7
+ limit?: number;
8
+ sort?: string;
9
+ order?: string;
10
+ search_term?: string;
11
+ }
12
+ export interface ListPersonaViewsQueryHeaderParams {
13
+ 'Harness-Account'?: string;
14
+ }
15
+ export type ListPersonaViewsOkResponse = ResponseWithPagination<PersonaViewListResponse>;
16
+ export type ListPersonaViewsErrorResponse = unknown;
17
+ export interface ListPersonaViewsProps extends Omit<FetcherOptions<ListPersonaViewsQueryQueryParams, unknown, ListPersonaViewsQueryHeaderParams>, 'url'> {
18
+ queryParams: ListPersonaViewsQueryQueryParams;
19
+ }
20
+ export declare function listPersonaViews(props: ListPersonaViewsProps): Promise<ListPersonaViewsOkResponse>;
21
+ /**
22
+ * List all persona views
23
+ */
24
+ export declare function useListPersonaViewsQuery(props: ListPersonaViewsProps, options?: Omit<UseQueryOptions<ListPersonaViewsOkResponse, ListPersonaViewsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListPersonaViewsOkResponse, unknown>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../custom-idp-fetcher/index.js';
6
+ export function listPersonaViews(props) {
7
+ return fetcher(Object.assign({ url: `/v1/persona-views`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * List all persona views
11
+ */
12
+ export function useListPersonaViewsQuery(props, options) {
13
+ return useQuery(['list-persona-views', props.queryParams], ({ signal }) => listPersonaViews(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,22 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { PersonaViewResponseResponse } from '../responses/PersonaViewResponseResponse';
3
+ import type { SavePersonaViewRequestRequestBody } from '../requestBodies/SavePersonaViewRequestRequestBody';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../custom-idp-fetcher/index.js';
6
+ export interface SavePersonaViewMutationPathParams {
7
+ 'persona-view-identifier': string;
8
+ }
9
+ export interface SavePersonaViewMutationHeaderParams {
10
+ 'Harness-Account'?: string;
11
+ }
12
+ export type SavePersonaViewRequestBody = SavePersonaViewRequestRequestBody;
13
+ export type SavePersonaViewOkResponse = ResponseWithPagination<PersonaViewResponseResponse>;
14
+ export type SavePersonaViewErrorResponse = unknown;
15
+ export interface SavePersonaViewProps extends SavePersonaViewMutationPathParams, Omit<FetcherOptions<unknown, SavePersonaViewRequestBody, SavePersonaViewMutationHeaderParams>, 'url'> {
16
+ body: SavePersonaViewRequestBody;
17
+ }
18
+ export declare function savePersonaView(props: SavePersonaViewProps): Promise<SavePersonaViewOkResponse>;
19
+ /**
20
+ * Create or update a persona view
21
+ */
22
+ export declare function useSavePersonaViewMutation(options?: Omit<UseMutationOptions<SavePersonaViewOkResponse, SavePersonaViewErrorResponse, SavePersonaViewProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SavePersonaViewOkResponse, unknown, SavePersonaViewProps, unknown>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../custom-idp-fetcher/index.js';
6
+ export function savePersonaView(props) {
7
+ return fetcher(Object.assign({ url: `/v1/persona-views/${props['persona-view-identifier']}`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * Create or update a persona view
11
+ */
12
+ export function useSavePersonaViewMutation(options) {
13
+ return useMutation((mutateProps) => savePersonaView(mutateProps), options);
14
+ }
@@ -103,6 +103,8 @@ export type { GetCheckTagsErrorResponse, GetCheckTagsOkResponse, GetCheckTagsPro
103
103
  export { getCheckTags, useGetCheckTagsQuery } from './hooks/useGetCheckTagsQuery';
104
104
  export type { GetChecksErrorResponse, GetChecksOkResponse, GetChecksProps, GetChecksQueryQueryParams, } from './hooks/useGetChecksQuery';
105
105
  export { getChecks, useGetChecksQuery } from './hooks/useGetChecksQuery';
106
+ export type { GetComparisonByHierarchyCardDataErrorResponse, GetComparisonByHierarchyCardDataMutationPathParams, GetComparisonByHierarchyCardDataOkResponse, GetComparisonByHierarchyCardDataProps, GetComparisonByHierarchyCardDataRequestBody, } from './hooks/useGetComparisonByHierarchyCardDataMutation';
107
+ export { getComparisonByHierarchyCardData, useGetComparisonByHierarchyCardDataMutation, } from './hooks/useGetComparisonByHierarchyCardDataMutation';
106
108
  export type { GetConnectorInfoErrorResponse, GetConnectorInfoOkResponse, GetConnectorInfoProps, } from './hooks/useGetConnectorInfoQuery';
107
109
  export { getConnectorInfo, useGetConnectorInfoQuery } from './hooks/useGetConnectorInfoQuery';
108
110
  export type { GetCustomPluginStatusLogsErrorResponse, GetCustomPluginStatusLogsOkResponse, GetCustomPluginStatusLogsProps, GetCustomPluginStatusLogsQueryQueryParams, } from './hooks/useGetCustomPluginStatusLogsQuery';
@@ -183,6 +185,10 @@ export type { GetMergedPluginsConfigErrorResponse, GetMergedPluginsConfigOkRespo
183
185
  export { getMergedPluginsConfig, useGetMergedPluginsConfigQuery, } from './hooks/useGetMergedPluginsConfigQuery';
184
186
  export type { GetOnboardingStatusErrorResponse, GetOnboardingStatusOkResponse, GetOnboardingStatusProps, } from './hooks/useGetOnboardingStatusQuery';
185
187
  export { getOnboardingStatus, useGetOnboardingStatusQuery, } from './hooks/useGetOnboardingStatusQuery';
188
+ export type { GetPersonaViewErrorResponse, GetPersonaViewOkResponse, GetPersonaViewProps, GetPersonaViewQueryPathParams, } from './hooks/useGetPersonaViewQuery';
189
+ export { getPersonaView, useGetPersonaViewQuery } from './hooks/useGetPersonaViewQuery';
190
+ export type { GetPersonaViewsForUserErrorResponse, GetPersonaViewsForUserOkResponse, GetPersonaViewsForUserProps, } from './hooks/useGetPersonaViewsForUserQuery';
191
+ export { getPersonaViewsForUser, useGetPersonaViewsForUserQuery, } from './hooks/useGetPersonaViewsForUserQuery';
186
192
  export type { GetPluginRequestV2ErrorResponse, GetPluginRequestV2OkResponse, GetPluginRequestV2Props, GetPluginRequestV2QueryQueryParams, } from './hooks/useGetPluginRequestV2Query';
187
193
  export { getPluginRequestV2, useGetPluginRequestV2Query } from './hooks/useGetPluginRequestV2Query';
188
194
  export type { GetPluginsInfoPluginIdErrorResponse, GetPluginsInfoPluginIdOkResponse, GetPluginsInfoPluginIdProps, GetPluginsInfoPluginIdQueryPathParams, GetPluginsInfoPluginIdQueryQueryParams, } from './hooks/useGetPluginsInfoPluginIdQuery';
@@ -215,6 +221,8 @@ export type { LayoutIngestErrorResponse, LayoutIngestOkResponse, LayoutIngestPro
215
221
  export { layoutIngest, useLayoutIngestMutation } from './hooks/useLayoutIngestMutation';
216
222
  export type { LayoutIngestV3ErrorResponse, LayoutIngestV3OkResponse, LayoutIngestV3Props, LayoutIngestV3RequestBody, } from './hooks/useLayoutIngestV3Mutation';
217
223
  export { layoutIngestV3, useLayoutIngestV3Mutation } from './hooks/useLayoutIngestV3Mutation';
224
+ export type { ListPersonaViewsErrorResponse, ListPersonaViewsOkResponse, ListPersonaViewsProps, ListPersonaViewsQueryQueryParams, } from './hooks/useListPersonaViewsQuery';
225
+ export { listPersonaViews, useListPersonaViewsQuery } from './hooks/useListPersonaViewsQuery';
218
226
  export type { MoveEntityErrorResponse, MoveEntityMutationPathParams, MoveEntityMutationQueryParams, MoveEntityOkResponse, MoveEntityProps, MoveEntityRequestBody, } from './hooks/useMoveEntityMutation';
219
227
  export { moveEntity, useMoveEntityMutation } from './hooks/useMoveEntityMutation';
220
228
  export type { OnboardingGenerateYamlErrorResponse, OnboardingGenerateYamlOkResponse, OnboardingGenerateYamlProps, OnboardingGenerateYamlRequestBody, } from './hooks/useOnboardingGenerateYamlMutation';
@@ -241,6 +249,8 @@ export type { SaveHomePageLayoutInfoErrorResponse, SaveHomePageLayoutInfoOkRespo
241
249
  export { saveHomePageLayoutInfo, useSaveHomePageLayoutInfoMutation, } from './hooks/useSaveHomePageLayoutInfoMutation';
242
250
  export type { SaveOrUpdatePluginAppConfigErrorResponse, SaveOrUpdatePluginAppConfigOkResponse, SaveOrUpdatePluginAppConfigProps, SaveOrUpdatePluginAppConfigRequestBody, } from './hooks/useSaveOrUpdatePluginAppConfigMutation';
243
251
  export { saveOrUpdatePluginAppConfig, useSaveOrUpdatePluginAppConfigMutation, } from './hooks/useSaveOrUpdatePluginAppConfigMutation';
252
+ export type { SavePersonaViewErrorResponse, SavePersonaViewMutationPathParams, SavePersonaViewOkResponse, SavePersonaViewProps, SavePersonaViewRequestBody, } from './hooks/useSavePersonaViewMutation';
253
+ export { savePersonaView, useSavePersonaViewMutation } from './hooks/useSavePersonaViewMutation';
244
254
  export type { ScorecardRecalibrateErrorResponse, ScorecardRecalibrateOkResponse, ScorecardRecalibrateProps, ScorecardRecalibrateRequestBody, } from './hooks/useScorecardRecalibrateMutation';
245
255
  export { scorecardRecalibrate, useScorecardRecalibrateMutation, } from './hooks/useScorecardRecalibrateMutation';
246
256
  export type { TogglePluginForAccountErrorResponse, TogglePluginForAccountMutationPathParams, TogglePluginForAccountMutationQueryParams, TogglePluginForAccountOkResponse, TogglePluginForAccountProps, } from './hooks/useTogglePluginForAccountMutation';
@@ -284,6 +294,7 @@ export { useValidateComplexCheckMutation, validateComplexCheck, } from './hooks/
284
294
  export type { AppConfigRequestRequestBody } from './requestBodies/AppConfigRequestRequestBody';
285
295
  export type { BackstageEnvVariableBatchRequestRequestBody } from './requestBodies/BackstageEnvVariableBatchRequestRequestBody';
286
296
  export type { BackstagePermissionsRequestRequestBody } from './requestBodies/BackstagePermissionsRequestRequestBody';
297
+ export type { ComparisonByHierarchyCardDataRequestRequestBody } from './requestBodies/ComparisonByHierarchyCardDataRequestRequestBody';
287
298
  export type { ConfigurationEntitiesRequestRequestBody } from './requestBodies/ConfigurationEntitiesRequestRequestBody';
288
299
  export type { ConnectorInfoRequestRequestBody } from './requestBodies/ConnectorInfoRequestRequestBody';
289
300
  export type { CustomPluginCreateRequestRequestBody } from './requestBodies/CustomPluginCreateRequestRequestBody';
@@ -320,6 +331,7 @@ export type { RequestPluginRequestRequestBody } from './requestBodies/RequestPlu
320
331
  export type { RequestPluginRequestStatusV2RequestBody } from './requestBodies/RequestPluginRequestStatusV2RequestBody';
321
332
  export type { RequestPluginRequestV2RequestBody } from './requestBodies/RequestPluginRequestV2RequestBody';
322
333
  export type { SaveDiscoverEntitiesRequestRequestBody } from './requestBodies/SaveDiscoverEntitiesRequestRequestBody';
334
+ export type { SavePersonaViewRequestRequestBody } from './requestBodies/SavePersonaViewRequestRequestBody';
323
335
  export type { ScorecardRecalibrateRequestRequestBody } from './requestBodies/ScorecardRecalibrateRequestRequestBody';
324
336
  export type { UnlinkIntegrationEntitiesRequestRequestBody } from './requestBodies/UnlinkIntegrationEntitiesRequestRequestBody';
325
337
  export type { ValidateComplexCheckRequestBodyRequestBody } from './requestBodies/ValidateComplexCheckRequestBodyRequestBody';
@@ -337,6 +349,7 @@ export type { CheckGraphResponseResponse } from './responses/CheckGraphResponseR
337
349
  export type { CheckResponseListResponse } from './responses/CheckResponseListResponse';
338
350
  export type { CheckStatsResponseResponse } from './responses/CheckStatsResponseResponse';
339
351
  export type { ChecksTagsResponseResponse } from './responses/ChecksTagsResponseResponse';
352
+ export type { ComparisonByHierarchyCardDataResponseResponse } from './responses/ComparisonByHierarchyCardDataResponseResponse';
340
353
  export type { ConfigurationEntitiesResponseResponse } from './responses/ConfigurationEntitiesResponseResponse';
341
354
  export type { ConnectorInfoResponseResponse } from './responses/ConnectorInfoResponseResponse';
342
355
  export type { CustomPluginInfoResponseResponse } from './responses/CustomPluginInfoResponseResponse';
@@ -384,6 +397,7 @@ export type { OnboardingGenerateYamlDefResponseResponse } from './responses/Onbo
384
397
  export type { OnboardingImportCdEntitiesResponseResponse } from './responses/OnboardingImportCdEntitiesResponseResponse';
385
398
  export type { OnboardingSkipResponseResponse } from './responses/OnboardingSkipResponseResponse';
386
399
  export type { OnboardingStatusResponseResponse } from './responses/OnboardingStatusResponseResponse';
400
+ export type { PersonaViewResponseResponse } from './responses/PersonaViewResponseResponse';
387
401
  export type { PluginDetailedInfoResponseResponse } from './responses/PluginDetailedInfoResponseResponse';
388
402
  export type { PluginInfoResponseListResponse } from './responses/PluginInfoResponseListResponse';
389
403
  export type { PluginRequestResponseListV2Response } from './responses/PluginRequestResponseListV2Response';
@@ -448,6 +462,12 @@ export type { CheckStats } from './schemas/CheckStats';
448
462
  export type { CheckStatsResponse } from './schemas/CheckStatsResponse';
449
463
  export type { CheckStatus } from './schemas/CheckStatus';
450
464
  export type { ChecksTags } from './schemas/ChecksTags';
465
+ export type { ComparisonByHierarchyCardDataRequest } from './schemas/ComparisonByHierarchyCardDataRequest';
466
+ export type { ComparisonByHierarchyCardDataResponse } from './schemas/ComparisonByHierarchyCardDataResponse';
467
+ export type { ComparisonByHierarchyColumn } from './schemas/ComparisonByHierarchyColumn';
468
+ export type { ComparisonByHierarchyNode } from './schemas/ComparisonByHierarchyNode';
469
+ export type { ComparisonByHierarchyRow } from './schemas/ComparisonByHierarchyRow';
470
+ export type { ComparisonByHierarchyScope } from './schemas/ComparisonByHierarchyScope';
451
471
  export type { ConfigurationEntities } from './schemas/ConfigurationEntities';
452
472
  export type { ConnectorDetails } from './schemas/ConnectorDetails';
453
473
  export type { ConnectorInfoRequest } from './schemas/ConnectorInfoRequest';
@@ -551,6 +571,10 @@ export type { OnboardingImportCdEntitiesResponse } from './schemas/OnboardingImp
551
571
  export type { OnboardingSkipRequest } from './schemas/OnboardingSkipRequest';
552
572
  export type { OnboardingSkipResponse } from './schemas/OnboardingSkipResponse';
553
573
  export type { OnboardingStatusResponse } from './schemas/OnboardingStatusResponse';
574
+ export type { PersonaView } from './schemas/PersonaView';
575
+ export type { PersonaViewListForUser } from './schemas/PersonaViewListForUser';
576
+ export type { PersonaViewListResponse } from './schemas/PersonaViewListResponse';
577
+ export type { PersonaViewResponse } from './schemas/PersonaViewResponse';
554
578
  export type { PluginDetailedInfo } from './schemas/PluginDetailedInfo';
555
579
  export type { PluginDetailedInfoResponse } from './schemas/PluginDetailedInfoResponse';
556
580
  export type { PluginDetails } from './schemas/PluginDetails';
@@ -567,9 +591,12 @@ export type { RequestPluginByStatus } from './schemas/RequestPluginByStatus';
567
591
  export type { RequestPluginV2 } from './schemas/RequestPluginV2';
568
592
  export type { Rule } from './schemas/Rule';
569
593
  export type { SaveDiscoverEntitiesRequest } from './schemas/SaveDiscoverEntitiesRequest';
594
+ export type { SavePersonaViewBody } from './schemas/SavePersonaViewBody';
595
+ export type { SavePersonaViewRequest } from './schemas/SavePersonaViewRequest';
570
596
  export type { Scorecard } from './schemas/Scorecard';
571
597
  export type { ScorecardChecks } from './schemas/ScorecardChecks';
572
598
  export type { ScorecardChecksDetails } from './schemas/ScorecardChecksDetails';
599
+ export type { ScorecardComplianceCounts } from './schemas/ScorecardComplianceCounts';
573
600
  export type { ScorecardDetails } from './schemas/ScorecardDetails';
574
601
  export type { ScorecardDetailsRequest } from './schemas/ScorecardDetailsRequest';
575
602
  export type { ScorecardDetailsResponse } from './schemas/ScorecardDetailsResponse';
@@ -589,6 +616,7 @@ export type { UnlinkIntegrationEntitiesRequest } from './schemas/UnlinkIntegrati
589
616
  export type { UnlinkIntegrationEntitiesResponse } from './schemas/UnlinkIntegrationEntitiesResponse';
590
617
  export type { UploadInfo } from './schemas/UploadInfo';
591
618
  export type { User } from './schemas/User';
619
+ export type { UserGroupRef } from './schemas/UserGroupRef';
592
620
  export type { ValidateComplexCheckRequest } from './schemas/ValidateComplexCheckRequest';
593
621
  export type { ValidateComplexCheckResponse } from './schemas/ValidateComplexCheckResponse';
594
622
  export type { WorkflowExecutionHistoryRequest } from './schemas/WorkflowExecutionHistoryRequest';
@@ -50,6 +50,7 @@ export { getCheck, useGetCheckQuery } from './hooks/useGetCheckQuery';
50
50
  export { getCheckStats, useGetCheckStatsQuery } from './hooks/useGetCheckStatsQuery';
51
51
  export { getCheckTags, useGetCheckTagsQuery } from './hooks/useGetCheckTagsQuery';
52
52
  export { getChecks, useGetChecksQuery } from './hooks/useGetChecksQuery';
53
+ export { getComparisonByHierarchyCardData, useGetComparisonByHierarchyCardDataMutation, } from './hooks/useGetComparisonByHierarchyCardDataMutation';
53
54
  export { getConnectorInfo, useGetConnectorInfoQuery } from './hooks/useGetConnectorInfoQuery';
54
55
  export { getCustomPluginStatusLogs, useGetCustomPluginStatusLogsQuery, } from './hooks/useGetCustomPluginStatusLogsQuery';
55
56
  export { getCustomPluginStatusPluginId, useGetCustomPluginStatusPluginIdQuery, } from './hooks/useGetCustomPluginStatusPluginIdQuery';
@@ -90,6 +91,8 @@ export { getLayoutsV3, useGetLayoutsV3Query } from './hooks/useGetLayoutsV3Query
90
91
  export { getLayoutsV4, useGetLayoutsV4Query } from './hooks/useGetLayoutsV4Query';
91
92
  export { getMergedPluginsConfig, useGetMergedPluginsConfigQuery, } from './hooks/useGetMergedPluginsConfigQuery';
92
93
  export { getOnboardingStatus, useGetOnboardingStatusQuery, } from './hooks/useGetOnboardingStatusQuery';
94
+ export { getPersonaView, useGetPersonaViewQuery } from './hooks/useGetPersonaViewQuery';
95
+ export { getPersonaViewsForUser, useGetPersonaViewsForUserQuery, } from './hooks/useGetPersonaViewsForUserQuery';
93
96
  export { getPluginRequestV2, useGetPluginRequestV2Query } from './hooks/useGetPluginRequestV2Query';
94
97
  export { getPluginsInfoPluginId, useGetPluginsInfoPluginIdQuery, } from './hooks/useGetPluginsInfoPluginIdQuery';
95
98
  export { getPlugins, useGetPluginsQuery } from './hooks/useGetPluginsQuery';
@@ -106,6 +109,7 @@ export { importHarnessEntities, useImportHarnessEntitiesMutation, } from './hook
106
109
  export { kindSchemaValidate, useKindSchemaValidateMutation, } from './hooks/useKindSchemaValidateMutation';
107
110
  export { layoutIngest, useLayoutIngestMutation } from './hooks/useLayoutIngestMutation';
108
111
  export { layoutIngestV3, useLayoutIngestV3Mutation } from './hooks/useLayoutIngestV3Mutation';
112
+ export { listPersonaViews, useListPersonaViewsQuery } from './hooks/useListPersonaViewsQuery';
109
113
  export { moveEntity, useMoveEntityMutation } from './hooks/useMoveEntityMutation';
110
114
  export { onboardingGenerateYaml, useOnboardingGenerateYamlMutation, } from './hooks/useOnboardingGenerateYamlMutation';
111
115
  export { postOnboardingSkip, usePostOnboardingSkipMutation, } from './hooks/usePostOnboardingSkipMutation';
@@ -119,6 +123,7 @@ export { saveDiscoverEntities, useSaveDiscoverEntitiesMutation, } from './hooks/
119
123
  export { saveGroup, useSaveGroupMutation } from './hooks/useSaveGroupMutation';
120
124
  export { saveHomePageLayoutInfo, useSaveHomePageLayoutInfoMutation, } from './hooks/useSaveHomePageLayoutInfoMutation';
121
125
  export { saveOrUpdatePluginAppConfig, useSaveOrUpdatePluginAppConfigMutation, } from './hooks/useSaveOrUpdatePluginAppConfigMutation';
126
+ export { savePersonaView, useSavePersonaViewMutation } from './hooks/useSavePersonaViewMutation';
122
127
  export { scorecardRecalibrate, useScorecardRecalibrateMutation, } from './hooks/useScorecardRecalibrateMutation';
123
128
  export { togglePluginForAccount, useTogglePluginForAccountMutation, } from './hooks/useTogglePluginForAccountMutation';
124
129
  export { traverseEntityGraph, useTraverseEntityGraphQuery, } from './hooks/useTraverseEntityGraphQuery';
@@ -0,0 +1,2 @@
1
+ import type { ComparisonByHierarchyCardDataRequest } from '../schemas/ComparisonByHierarchyCardDataRequest';
2
+ export type ComparisonByHierarchyCardDataRequestRequestBody = ComparisonByHierarchyCardDataRequest;
@@ -0,0 +1,2 @@
1
+ import type { SavePersonaViewRequest } from '../schemas/SavePersonaViewRequest';
2
+ export type SavePersonaViewRequestRequestBody = SavePersonaViewRequest;
@@ -0,0 +1,2 @@
1
+ import type { ComparisonByHierarchyCardDataResponse } from '../schemas/ComparisonByHierarchyCardDataResponse';
2
+ export type ComparisonByHierarchyCardDataResponseResponse = ComparisonByHierarchyCardDataResponse;
@@ -0,0 +1,2 @@
1
+ import type { PersonaViewResponse } from '../schemas/PersonaViewResponse';
2
+ export type PersonaViewResponseResponse = PersonaViewResponse;
@@ -7,5 +7,5 @@ export interface Card {
7
7
  icon_url?: string;
8
8
  identifier: string;
9
9
  title: string;
10
- type: 'CUSTOM_LINK' | 'GITHUB' | 'HARNESS_CODE' | 'JIRA' | 'LEARN_MORE' | 'MARKDOWN' | 'OWNED_ENTITIES' | 'PAGER_DUTY' | 'RECENTLY_VISITED' | 'SELF_SERVICE' | 'STARRED_ENTITIES' | 'TOP_VISITED' | 'VIDEO' | 'WORKFLOW_RUNS';
10
+ type: 'COMPARISON_BY_HIERARCHY' | 'CUSTOM_LINK' | 'ENTITY_DISTRIBUTION_OWNERSHIP' | 'GITHUB' | 'HARNESS_CODE' | 'INCIDENTS' | 'INCIDENT_TREND' | 'INTEGRATIONS' | 'JIRA' | 'LEARN_MORE' | 'MARKDOWN' | 'OWNED_ENTITIES' | 'PAGER_DUTY' | 'RECENTLY_VISITED' | 'RECENT_BUILDS' | 'RECENT_DEPLOYMENTS' | 'SCORECARD_COMPLIANCE' | 'SECURITY_FINDINGS' | 'SELF_SERVICE' | 'STARRED_ENTITIES' | 'STO' | 'TOP_FAILING_CHECKS' | 'TOP_VISITED' | 'VIDEO' | 'WORKFLOWS_ENVIRONMENTS' | 'WORKFLOW_RUNS';
11
11
  }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Inputs for the Comparison by Hierarchy card. Scope is derived from the combination of `org` and `project`.
3
+ *
4
+ */
5
+ export interface ComparisonByHierarchyCardDataRequest {
6
+ /**
7
+ * Ordered list of aggregation rule identifiers, one per numeric column to display. If omitted or empty, defaults to the first 5 aggregation rules of the account by createdAt ASC. Order in the response `columns` matches the request order.
8
+ *
9
+ */
10
+ 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;
20
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,14 @@
1
+ import type { ComparisonByHierarchyColumn } from '../schemas/ComparisonByHierarchyColumn';
2
+ import type { ComparisonByHierarchyRow } from '../schemas/ComparisonByHierarchyRow';
3
+ import type { ComparisonByHierarchyScope } from '../schemas/ComparisonByHierarchyScope';
4
+ export interface ComparisonByHierarchyCardDataResponse {
5
+ /**
6
+ * Aggregation-rule columns, in the same order as requested.
7
+ */
8
+ columns: ComparisonByHierarchyColumn[];
9
+ /**
10
+ * One row per child hierarchy node under the resolved scope.
11
+ */
12
+ rows: ComparisonByHierarchyRow[];
13
+ scope: ComparisonByHierarchyScope;
14
+ }
@@ -0,0 +1,10 @@
1
+ export interface ComparisonByHierarchyColumn {
2
+ /**
3
+ * Aggregation rule identifier (used as the key inside `row.values`).
4
+ */
5
+ id: string;
6
+ /**
7
+ * Display label for the column (derived from the rule's name).
8
+ */
9
+ name: string;
10
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,14 @@
1
+ export interface ComparisonByHierarchyNode {
2
+ /**
3
+ * Hierarchy node identifier (org id, project id, or entity identifier).
4
+ */
5
+ identifier: string;
6
+ /**
7
+ * Display name of the node.
8
+ */
9
+ name: string;
10
+ /**
11
+ * Node type, used by the client to route the name link.
12
+ */
13
+ type: 'ENTITY' | 'ORG' | 'PROJECT';
14
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,13 @@
1
+ import type { ComparisonByHierarchyNode } from '../schemas/ComparisonByHierarchyNode';
2
+ import type { ScorecardComplianceCounts } from '../schemas/ScorecardComplianceCounts';
3
+ export interface ComparisonByHierarchyRow {
4
+ node: ComparisonByHierarchyNode;
5
+ scorecard_compliance: ScorecardComplianceCounts;
6
+ /**
7
+ * Aggregated values keyed by aggregation rule identifier. A key may be absent (or null) when the rule has no computed value for the node.
8
+ *
9
+ */
10
+ values: {
11
+ [key: string]: number | null;
12
+ };
13
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Scope resolved from the request body.
3
+ */
4
+ export type ComparisonByHierarchyScope = 'ACCOUNT' | 'ORG' | 'PROJECT';
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,31 @@
1
+ import type { BannerInfo } from '../schemas/BannerInfo';
2
+ import type { Card } from '../schemas/Card';
3
+ import type { HeaderInfo } from '../schemas/HeaderInfo';
4
+ import type { UserGroupRef } from '../schemas/UserGroupRef';
5
+ export interface PersonaView {
6
+ /**
7
+ * Banner chrome rendered above the card grid. Only populated for the synthetic Developer's View (identifier=developer); null for all other persona views.
8
+ */
9
+ banner?: BannerInfo;
10
+ cards: Card[];
11
+ /**
12
+ * @format int64
13
+ */
14
+ created_at?: number;
15
+ description?: string;
16
+ /**
17
+ * Header chrome (logo, hero image, search bar, quick links). Only populated for the synthetic Developer's View (identifier=developer); null for all other persona views.
18
+ */
19
+ header?: HeaderInfo;
20
+ identifier: string;
21
+ /**
22
+ * @format int64
23
+ */
24
+ last_updated_at?: number;
25
+ name: string;
26
+ /**
27
+ * True if this view is an out-of-the-box (Harness-managed) view
28
+ */
29
+ ootb: boolean;
30
+ user_group_refs?: UserGroupRef[];
31
+ }
@@ -0,0 +1,4 @@
1
+ import type { PersonaView } from '../schemas/PersonaView';
2
+ export interface PersonaViewListForUser {
3
+ views: PersonaView[];
4
+ }
@@ -0,0 +1,4 @@
1
+ import type { PersonaView } from '../schemas/PersonaView';
2
+ export interface PersonaViewListResponse {
3
+ views: PersonaView[];
4
+ }
@@ -0,0 +1,4 @@
1
+ import type { PersonaView } from '../schemas/PersonaView';
2
+ export interface PersonaViewResponse {
3
+ persona_view: PersonaView;
4
+ }
@@ -0,0 +1,7 @@
1
+ import type { Card } from '../schemas/Card';
2
+ export interface SavePersonaViewBody {
3
+ cards: Card[];
4
+ description?: string;
5
+ name: string;
6
+ user_group_identifiers?: string[];
7
+ }
@@ -0,0 +1,4 @@
1
+ import type { SavePersonaViewBody } from '../schemas/SavePersonaViewBody';
2
+ export interface SavePersonaViewRequest {
3
+ persona_view: SavePersonaViewBody;
4
+ }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Counts of entities under the node grouped by scorecard tier. Returns zero for all tiers when tier evaluation is not yet available.
3
+ *
4
+ */
5
+ export interface ScorecardComplianceCounts {
6
+ /**
7
+ * @format int32
8
+ */
9
+ bronze: number;
10
+ /**
11
+ * @format int32
12
+ */
13
+ gold: number;
14
+ /**
15
+ * @format int32
16
+ */
17
+ silver: number;
18
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,4 @@
1
+ export interface UserGroupRef {
2
+ identifier: string;
3
+ name: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-idp-service-client",
3
- "version": "0.105.0",
3
+ "version": "0.107.0",
4
4
  "description": "Harness React idp service client - IDP APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",