@harnessio/react-idp-service-client 0.105.0 → 0.106.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.
- package/dist/idp-service/src/services/hooks/useGetPersonaViewQuery.d.ts +19 -0
- package/dist/idp-service/src/services/hooks/useGetPersonaViewQuery.js +14 -0
- package/dist/idp-service/src/services/hooks/useGetPersonaViewsForUserQuery.d.ts +16 -0
- package/dist/idp-service/src/services/hooks/useGetPersonaViewsForUserQuery.js +14 -0
- package/dist/idp-service/src/services/hooks/useListPersonaViewsQuery.d.ts +24 -0
- package/dist/idp-service/src/services/hooks/useListPersonaViewsQuery.js +14 -0
- package/dist/idp-service/src/services/hooks/useSavePersonaViewMutation.d.ts +22 -0
- package/dist/idp-service/src/services/hooks/useSavePersonaViewMutation.js +14 -0
- package/dist/idp-service/src/services/index.d.ts +17 -0
- package/dist/idp-service/src/services/index.js +4 -0
- package/dist/idp-service/src/services/requestBodies/SavePersonaViewRequestRequestBody.d.ts +2 -0
- package/dist/idp-service/src/services/requestBodies/SavePersonaViewRequestRequestBody.js +1 -0
- package/dist/idp-service/src/services/responses/PersonaViewResponseResponse.d.ts +2 -0
- package/dist/idp-service/src/services/responses/PersonaViewResponseResponse.js +1 -0
- package/dist/idp-service/src/services/schemas/Card.d.ts +1 -1
- package/dist/idp-service/src/services/schemas/PersonaView.d.ts +31 -0
- package/dist/idp-service/src/services/schemas/PersonaView.js +1 -0
- package/dist/idp-service/src/services/schemas/PersonaViewListForUser.d.ts +4 -0
- package/dist/idp-service/src/services/schemas/PersonaViewListForUser.js +1 -0
- package/dist/idp-service/src/services/schemas/PersonaViewListResponse.d.ts +4 -0
- package/dist/idp-service/src/services/schemas/PersonaViewListResponse.js +1 -0
- package/dist/idp-service/src/services/schemas/PersonaViewResponse.d.ts +4 -0
- package/dist/idp-service/src/services/schemas/PersonaViewResponse.js +1 -0
- package/dist/idp-service/src/services/schemas/SavePersonaViewBody.d.ts +7 -0
- package/dist/idp-service/src/services/schemas/SavePersonaViewBody.js +1 -0
- package/dist/idp-service/src/services/schemas/SavePersonaViewRequest.d.ts +4 -0
- package/dist/idp-service/src/services/schemas/SavePersonaViewRequest.js +1 -0
- package/dist/idp-service/src/services/schemas/UserGroupRef.d.ts +4 -0
- package/dist/idp-service/src/services/schemas/UserGroupRef.js +4 -0
- package/package.json +1 -1
|
@@ -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
|
+
}
|
|
@@ -183,6 +183,10 @@ export type { GetMergedPluginsConfigErrorResponse, GetMergedPluginsConfigOkRespo
|
|
|
183
183
|
export { getMergedPluginsConfig, useGetMergedPluginsConfigQuery, } from './hooks/useGetMergedPluginsConfigQuery';
|
|
184
184
|
export type { GetOnboardingStatusErrorResponse, GetOnboardingStatusOkResponse, GetOnboardingStatusProps, } from './hooks/useGetOnboardingStatusQuery';
|
|
185
185
|
export { getOnboardingStatus, useGetOnboardingStatusQuery, } from './hooks/useGetOnboardingStatusQuery';
|
|
186
|
+
export type { GetPersonaViewErrorResponse, GetPersonaViewOkResponse, GetPersonaViewProps, GetPersonaViewQueryPathParams, } from './hooks/useGetPersonaViewQuery';
|
|
187
|
+
export { getPersonaView, useGetPersonaViewQuery } from './hooks/useGetPersonaViewQuery';
|
|
188
|
+
export type { GetPersonaViewsForUserErrorResponse, GetPersonaViewsForUserOkResponse, GetPersonaViewsForUserProps, } from './hooks/useGetPersonaViewsForUserQuery';
|
|
189
|
+
export { getPersonaViewsForUser, useGetPersonaViewsForUserQuery, } from './hooks/useGetPersonaViewsForUserQuery';
|
|
186
190
|
export type { GetPluginRequestV2ErrorResponse, GetPluginRequestV2OkResponse, GetPluginRequestV2Props, GetPluginRequestV2QueryQueryParams, } from './hooks/useGetPluginRequestV2Query';
|
|
187
191
|
export { getPluginRequestV2, useGetPluginRequestV2Query } from './hooks/useGetPluginRequestV2Query';
|
|
188
192
|
export type { GetPluginsInfoPluginIdErrorResponse, GetPluginsInfoPluginIdOkResponse, GetPluginsInfoPluginIdProps, GetPluginsInfoPluginIdQueryPathParams, GetPluginsInfoPluginIdQueryQueryParams, } from './hooks/useGetPluginsInfoPluginIdQuery';
|
|
@@ -215,6 +219,8 @@ export type { LayoutIngestErrorResponse, LayoutIngestOkResponse, LayoutIngestPro
|
|
|
215
219
|
export { layoutIngest, useLayoutIngestMutation } from './hooks/useLayoutIngestMutation';
|
|
216
220
|
export type { LayoutIngestV3ErrorResponse, LayoutIngestV3OkResponse, LayoutIngestV3Props, LayoutIngestV3RequestBody, } from './hooks/useLayoutIngestV3Mutation';
|
|
217
221
|
export { layoutIngestV3, useLayoutIngestV3Mutation } from './hooks/useLayoutIngestV3Mutation';
|
|
222
|
+
export type { ListPersonaViewsErrorResponse, ListPersonaViewsOkResponse, ListPersonaViewsProps, ListPersonaViewsQueryQueryParams, } from './hooks/useListPersonaViewsQuery';
|
|
223
|
+
export { listPersonaViews, useListPersonaViewsQuery } from './hooks/useListPersonaViewsQuery';
|
|
218
224
|
export type { MoveEntityErrorResponse, MoveEntityMutationPathParams, MoveEntityMutationQueryParams, MoveEntityOkResponse, MoveEntityProps, MoveEntityRequestBody, } from './hooks/useMoveEntityMutation';
|
|
219
225
|
export { moveEntity, useMoveEntityMutation } from './hooks/useMoveEntityMutation';
|
|
220
226
|
export type { OnboardingGenerateYamlErrorResponse, OnboardingGenerateYamlOkResponse, OnboardingGenerateYamlProps, OnboardingGenerateYamlRequestBody, } from './hooks/useOnboardingGenerateYamlMutation';
|
|
@@ -241,6 +247,8 @@ export type { SaveHomePageLayoutInfoErrorResponse, SaveHomePageLayoutInfoOkRespo
|
|
|
241
247
|
export { saveHomePageLayoutInfo, useSaveHomePageLayoutInfoMutation, } from './hooks/useSaveHomePageLayoutInfoMutation';
|
|
242
248
|
export type { SaveOrUpdatePluginAppConfigErrorResponse, SaveOrUpdatePluginAppConfigOkResponse, SaveOrUpdatePluginAppConfigProps, SaveOrUpdatePluginAppConfigRequestBody, } from './hooks/useSaveOrUpdatePluginAppConfigMutation';
|
|
243
249
|
export { saveOrUpdatePluginAppConfig, useSaveOrUpdatePluginAppConfigMutation, } from './hooks/useSaveOrUpdatePluginAppConfigMutation';
|
|
250
|
+
export type { SavePersonaViewErrorResponse, SavePersonaViewMutationPathParams, SavePersonaViewOkResponse, SavePersonaViewProps, SavePersonaViewRequestBody, } from './hooks/useSavePersonaViewMutation';
|
|
251
|
+
export { savePersonaView, useSavePersonaViewMutation } from './hooks/useSavePersonaViewMutation';
|
|
244
252
|
export type { ScorecardRecalibrateErrorResponse, ScorecardRecalibrateOkResponse, ScorecardRecalibrateProps, ScorecardRecalibrateRequestBody, } from './hooks/useScorecardRecalibrateMutation';
|
|
245
253
|
export { scorecardRecalibrate, useScorecardRecalibrateMutation, } from './hooks/useScorecardRecalibrateMutation';
|
|
246
254
|
export type { TogglePluginForAccountErrorResponse, TogglePluginForAccountMutationPathParams, TogglePluginForAccountMutationQueryParams, TogglePluginForAccountOkResponse, TogglePluginForAccountProps, } from './hooks/useTogglePluginForAccountMutation';
|
|
@@ -320,6 +328,7 @@ export type { RequestPluginRequestRequestBody } from './requestBodies/RequestPlu
|
|
|
320
328
|
export type { RequestPluginRequestStatusV2RequestBody } from './requestBodies/RequestPluginRequestStatusV2RequestBody';
|
|
321
329
|
export type { RequestPluginRequestV2RequestBody } from './requestBodies/RequestPluginRequestV2RequestBody';
|
|
322
330
|
export type { SaveDiscoverEntitiesRequestRequestBody } from './requestBodies/SaveDiscoverEntitiesRequestRequestBody';
|
|
331
|
+
export type { SavePersonaViewRequestRequestBody } from './requestBodies/SavePersonaViewRequestRequestBody';
|
|
323
332
|
export type { ScorecardRecalibrateRequestRequestBody } from './requestBodies/ScorecardRecalibrateRequestRequestBody';
|
|
324
333
|
export type { UnlinkIntegrationEntitiesRequestRequestBody } from './requestBodies/UnlinkIntegrationEntitiesRequestRequestBody';
|
|
325
334
|
export type { ValidateComplexCheckRequestBodyRequestBody } from './requestBodies/ValidateComplexCheckRequestBodyRequestBody';
|
|
@@ -384,6 +393,7 @@ export type { OnboardingGenerateYamlDefResponseResponse } from './responses/Onbo
|
|
|
384
393
|
export type { OnboardingImportCdEntitiesResponseResponse } from './responses/OnboardingImportCdEntitiesResponseResponse';
|
|
385
394
|
export type { OnboardingSkipResponseResponse } from './responses/OnboardingSkipResponseResponse';
|
|
386
395
|
export type { OnboardingStatusResponseResponse } from './responses/OnboardingStatusResponseResponse';
|
|
396
|
+
export type { PersonaViewResponseResponse } from './responses/PersonaViewResponseResponse';
|
|
387
397
|
export type { PluginDetailedInfoResponseResponse } from './responses/PluginDetailedInfoResponseResponse';
|
|
388
398
|
export type { PluginInfoResponseListResponse } from './responses/PluginInfoResponseListResponse';
|
|
389
399
|
export type { PluginRequestResponseListV2Response } from './responses/PluginRequestResponseListV2Response';
|
|
@@ -551,6 +561,10 @@ export type { OnboardingImportCdEntitiesResponse } from './schemas/OnboardingImp
|
|
|
551
561
|
export type { OnboardingSkipRequest } from './schemas/OnboardingSkipRequest';
|
|
552
562
|
export type { OnboardingSkipResponse } from './schemas/OnboardingSkipResponse';
|
|
553
563
|
export type { OnboardingStatusResponse } from './schemas/OnboardingStatusResponse';
|
|
564
|
+
export type { PersonaView } from './schemas/PersonaView';
|
|
565
|
+
export type { PersonaViewListForUser } from './schemas/PersonaViewListForUser';
|
|
566
|
+
export type { PersonaViewListResponse } from './schemas/PersonaViewListResponse';
|
|
567
|
+
export type { PersonaViewResponse } from './schemas/PersonaViewResponse';
|
|
554
568
|
export type { PluginDetailedInfo } from './schemas/PluginDetailedInfo';
|
|
555
569
|
export type { PluginDetailedInfoResponse } from './schemas/PluginDetailedInfoResponse';
|
|
556
570
|
export type { PluginDetails } from './schemas/PluginDetails';
|
|
@@ -567,6 +581,8 @@ export type { RequestPluginByStatus } from './schemas/RequestPluginByStatus';
|
|
|
567
581
|
export type { RequestPluginV2 } from './schemas/RequestPluginV2';
|
|
568
582
|
export type { Rule } from './schemas/Rule';
|
|
569
583
|
export type { SaveDiscoverEntitiesRequest } from './schemas/SaveDiscoverEntitiesRequest';
|
|
584
|
+
export type { SavePersonaViewBody } from './schemas/SavePersonaViewBody';
|
|
585
|
+
export type { SavePersonaViewRequest } from './schemas/SavePersonaViewRequest';
|
|
570
586
|
export type { Scorecard } from './schemas/Scorecard';
|
|
571
587
|
export type { ScorecardChecks } from './schemas/ScorecardChecks';
|
|
572
588
|
export type { ScorecardChecksDetails } from './schemas/ScorecardChecksDetails';
|
|
@@ -589,6 +605,7 @@ export type { UnlinkIntegrationEntitiesRequest } from './schemas/UnlinkIntegrati
|
|
|
589
605
|
export type { UnlinkIntegrationEntitiesResponse } from './schemas/UnlinkIntegrationEntitiesResponse';
|
|
590
606
|
export type { UploadInfo } from './schemas/UploadInfo';
|
|
591
607
|
export type { User } from './schemas/User';
|
|
608
|
+
export type { UserGroupRef } from './schemas/UserGroupRef';
|
|
592
609
|
export type { ValidateComplexCheckRequest } from './schemas/ValidateComplexCheckRequest';
|
|
593
610
|
export type { ValidateComplexCheckResponse } from './schemas/ValidateComplexCheckResponse';
|
|
594
611
|
export type { WorkflowExecutionHistoryRequest } from './schemas/WorkflowExecutionHistoryRequest';
|
|
@@ -90,6 +90,8 @@ export { getLayoutsV3, useGetLayoutsV3Query } from './hooks/useGetLayoutsV3Query
|
|
|
90
90
|
export { getLayoutsV4, useGetLayoutsV4Query } from './hooks/useGetLayoutsV4Query';
|
|
91
91
|
export { getMergedPluginsConfig, useGetMergedPluginsConfigQuery, } from './hooks/useGetMergedPluginsConfigQuery';
|
|
92
92
|
export { getOnboardingStatus, useGetOnboardingStatusQuery, } from './hooks/useGetOnboardingStatusQuery';
|
|
93
|
+
export { getPersonaView, useGetPersonaViewQuery } from './hooks/useGetPersonaViewQuery';
|
|
94
|
+
export { getPersonaViewsForUser, useGetPersonaViewsForUserQuery, } from './hooks/useGetPersonaViewsForUserQuery';
|
|
93
95
|
export { getPluginRequestV2, useGetPluginRequestV2Query } from './hooks/useGetPluginRequestV2Query';
|
|
94
96
|
export { getPluginsInfoPluginId, useGetPluginsInfoPluginIdQuery, } from './hooks/useGetPluginsInfoPluginIdQuery';
|
|
95
97
|
export { getPlugins, useGetPluginsQuery } from './hooks/useGetPluginsQuery';
|
|
@@ -106,6 +108,7 @@ export { importHarnessEntities, useImportHarnessEntitiesMutation, } from './hook
|
|
|
106
108
|
export { kindSchemaValidate, useKindSchemaValidateMutation, } from './hooks/useKindSchemaValidateMutation';
|
|
107
109
|
export { layoutIngest, useLayoutIngestMutation } from './hooks/useLayoutIngestMutation';
|
|
108
110
|
export { layoutIngestV3, useLayoutIngestV3Mutation } from './hooks/useLayoutIngestV3Mutation';
|
|
111
|
+
export { listPersonaViews, useListPersonaViewsQuery } from './hooks/useListPersonaViewsQuery';
|
|
109
112
|
export { moveEntity, useMoveEntityMutation } from './hooks/useMoveEntityMutation';
|
|
110
113
|
export { onboardingGenerateYaml, useOnboardingGenerateYamlMutation, } from './hooks/useOnboardingGenerateYamlMutation';
|
|
111
114
|
export { postOnboardingSkip, usePostOnboardingSkipMutation, } from './hooks/usePostOnboardingSkipMutation';
|
|
@@ -119,6 +122,7 @@ export { saveDiscoverEntities, useSaveDiscoverEntitiesMutation, } from './hooks/
|
|
|
119
122
|
export { saveGroup, useSaveGroupMutation } from './hooks/useSaveGroupMutation';
|
|
120
123
|
export { saveHomePageLayoutInfo, useSaveHomePageLayoutInfoMutation, } from './hooks/useSaveHomePageLayoutInfoMutation';
|
|
121
124
|
export { saveOrUpdatePluginAppConfig, useSaveOrUpdatePluginAppConfigMutation, } from './hooks/useSaveOrUpdatePluginAppConfigMutation';
|
|
125
|
+
export { savePersonaView, useSavePersonaViewMutation } from './hooks/useSavePersonaViewMutation';
|
|
122
126
|
export { scorecardRecalibrate, useScorecardRecalibrateMutation, } from './hooks/useScorecardRecalibrateMutation';
|
|
123
127
|
export { togglePluginForAccount, useTogglePluginForAccountMutation, } from './hooks/useTogglePluginForAccountMutation';
|
|
124
128
|
export { traverseEntityGraph, useTraverseEntityGraphQuery, } from './hooks/useTraverseEntityGraphQuery';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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,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 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|