@harnessio/react-idp-service-client 0.107.1 → 0.107.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/dist/idp-service/src/services/hooks/useGetOotbWorkflowQuery.d.ts +19 -0
- package/dist/idp-service/src/services/hooks/useGetOotbWorkflowQuery.js +14 -0
- package/dist/idp-service/src/services/hooks/useGetOotbWorkflowVersionQuery.d.ts +20 -0
- package/dist/idp-service/src/services/hooks/useGetOotbWorkflowVersionQuery.js +14 -0
- package/dist/idp-service/src/services/hooks/useGetOotbWorkflowVersionsQuery.d.ts +19 -0
- package/dist/idp-service/src/services/hooks/useGetOotbWorkflowVersionsQuery.js +14 -0
- package/dist/idp-service/src/services/hooks/useInstallOotbWorkflowMutation.d.ts +22 -0
- package/dist/idp-service/src/services/hooks/useInstallOotbWorkflowMutation.js +14 -0
- package/dist/idp-service/src/services/hooks/useListOotbWorkflowsQuery.d.ts +20 -0
- package/dist/idp-service/src/services/hooks/useListOotbWorkflowsQuery.js +14 -0
- package/dist/idp-service/src/services/index.d.ts +14 -0
- package/dist/idp-service/src/services/index.js +5 -0
- package/dist/idp-service/src/services/schemas/ComparisonByHierarchyCardDataResponse.d.ts +4 -2
- package/dist/idp-service/src/services/schemas/ComparisonByHierarchyColumn.d.ts +3 -2
- package/dist/idp-service/src/services/schemas/ComparisonByHierarchyRow.d.ts +1 -1
- package/dist/idp-service/src/services/schemas/OotbAdminInput.d.ts +12 -0
- package/dist/idp-service/src/services/schemas/OotbAdminInput.js +4 -0
- package/dist/idp-service/src/services/schemas/OotbWorkflowInstallRequest.d.ts +39 -0
- package/dist/idp-service/src/services/schemas/OotbWorkflowInstallRequest.js +4 -0
- package/dist/idp-service/src/services/schemas/OotbWorkflowInstallResponse.d.ts +15 -0
- package/dist/idp-service/src/services/schemas/OotbWorkflowInstallResponse.js +4 -0
- package/dist/idp-service/src/services/schemas/OotbWorkflowLibraryEntity.d.ts +14 -0
- package/dist/idp-service/src/services/schemas/OotbWorkflowLibraryEntity.js +1 -0
- package/dist/idp-service/src/services/schemas/PersonaView.d.ts +2 -2
- package/dist/idp-service/src/services/schemas/SaveDiscoverEntitiesRequest.d.ts +4 -0
- package/dist/idp-service/src/services/schemas/SavePersonaViewBody.d.ts +10 -0
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { OotbWorkflowLibraryEntity } from '../schemas/OotbWorkflowLibraryEntity';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-idp-fetcher/index.js';
|
|
5
|
+
export interface GetOotbWorkflowQueryPathParams {
|
|
6
|
+
identifier: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GetOotbWorkflowQueryHeaderParams {
|
|
9
|
+
'Harness-Account'?: string;
|
|
10
|
+
}
|
|
11
|
+
export type GetOotbWorkflowOkResponse = ResponseWithPagination<OotbWorkflowLibraryEntity>;
|
|
12
|
+
export type GetOotbWorkflowErrorResponse = unknown;
|
|
13
|
+
export interface GetOotbWorkflowProps extends GetOotbWorkflowQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetOotbWorkflowQueryHeaderParams>, 'url'> {
|
|
14
|
+
}
|
|
15
|
+
export declare function getOotbWorkflow(props: GetOotbWorkflowProps): Promise<GetOotbWorkflowOkResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Returns the stable version of a specific OOTB workflow.
|
|
18
|
+
*/
|
|
19
|
+
export declare function useGetOotbWorkflowQuery(props: GetOotbWorkflowProps, options?: Omit<UseQueryOptions<GetOotbWorkflowOkResponse, GetOotbWorkflowErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetOotbWorkflowOkResponse, 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 getOotbWorkflow(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/ootb-workflow-library/${props.identifier}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns the stable version of a specific OOTB workflow.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetOotbWorkflowQuery(props, options) {
|
|
13
|
+
return useQuery(['get-ootb-workflow', props.identifier], ({ signal }) => getOotbWorkflow(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { OotbWorkflowLibraryEntity } from '../schemas/OotbWorkflowLibraryEntity';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-idp-fetcher/index.js';
|
|
5
|
+
export interface GetOotbWorkflowVersionQueryPathParams {
|
|
6
|
+
identifier: string;
|
|
7
|
+
version: string;
|
|
8
|
+
}
|
|
9
|
+
export interface GetOotbWorkflowVersionQueryHeaderParams {
|
|
10
|
+
'Harness-Account'?: string;
|
|
11
|
+
}
|
|
12
|
+
export type GetOotbWorkflowVersionOkResponse = ResponseWithPagination<OotbWorkflowLibraryEntity>;
|
|
13
|
+
export type GetOotbWorkflowVersionErrorResponse = unknown;
|
|
14
|
+
export interface GetOotbWorkflowVersionProps extends GetOotbWorkflowVersionQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetOotbWorkflowVersionQueryHeaderParams>, 'url'> {
|
|
15
|
+
}
|
|
16
|
+
export declare function getOotbWorkflowVersion(props: GetOotbWorkflowVersionProps): Promise<GetOotbWorkflowVersionOkResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Returns a specific version of an OOTB workflow.
|
|
19
|
+
*/
|
|
20
|
+
export declare function useGetOotbWorkflowVersionQuery(props: GetOotbWorkflowVersionProps, options?: Omit<UseQueryOptions<GetOotbWorkflowVersionOkResponse, GetOotbWorkflowVersionErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetOotbWorkflowVersionOkResponse, 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 getOotbWorkflowVersion(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/ootb-workflow-library/${props.identifier}/versions/${props.version}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns a specific version of an OOTB workflow.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetOotbWorkflowVersionQuery(props, options) {
|
|
13
|
+
return useQuery(['get-ootb-workflow-version', props.identifier, props.version], ({ signal }) => getOotbWorkflowVersion(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { OotbWorkflowLibraryEntity } from '../schemas/OotbWorkflowLibraryEntity';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-idp-fetcher/index.js';
|
|
5
|
+
export interface GetOotbWorkflowVersionsQueryPathParams {
|
|
6
|
+
identifier: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GetOotbWorkflowVersionsQueryHeaderParams {
|
|
9
|
+
'Harness-Account'?: string;
|
|
10
|
+
}
|
|
11
|
+
export type GetOotbWorkflowVersionsOkResponse = ResponseWithPagination<OotbWorkflowLibraryEntity[]>;
|
|
12
|
+
export type GetOotbWorkflowVersionsErrorResponse = unknown;
|
|
13
|
+
export interface GetOotbWorkflowVersionsProps extends GetOotbWorkflowVersionsQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetOotbWorkflowVersionsQueryHeaderParams>, 'url'> {
|
|
14
|
+
}
|
|
15
|
+
export declare function getOotbWorkflowVersions(props: GetOotbWorkflowVersionsProps): Promise<GetOotbWorkflowVersionsOkResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Returns all versions of a specific OOTB workflow.
|
|
18
|
+
*/
|
|
19
|
+
export declare function useGetOotbWorkflowVersionsQuery(props: GetOotbWorkflowVersionsProps, options?: Omit<UseQueryOptions<GetOotbWorkflowVersionsOkResponse, GetOotbWorkflowVersionsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetOotbWorkflowVersionsOkResponse, 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 getOotbWorkflowVersions(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/ootb-workflow-library/${props.identifier}/versions`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns all versions of a specific OOTB workflow.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetOotbWorkflowVersionsQuery(props, options) {
|
|
13
|
+
return useQuery(['get-ootb-workflow-versions', props.identifier], ({ signal }) => getOotbWorkflowVersions(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { OotbWorkflowInstallResponse } from '../schemas/OotbWorkflowInstallResponse';
|
|
3
|
+
import type { OotbWorkflowInstallRequest } from '../schemas/OotbWorkflowInstallRequest';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-idp-fetcher/index.js';
|
|
6
|
+
export interface InstallOotbWorkflowMutationPathParams {
|
|
7
|
+
identifier: string;
|
|
8
|
+
}
|
|
9
|
+
export interface InstallOotbWorkflowMutationHeaderParams {
|
|
10
|
+
'Harness-Account'?: string;
|
|
11
|
+
}
|
|
12
|
+
export type InstallOotbWorkflowRequestBody = OotbWorkflowInstallRequest;
|
|
13
|
+
export type InstallOotbWorkflowOkResponse = ResponseWithPagination<OotbWorkflowInstallResponse>;
|
|
14
|
+
export type InstallOotbWorkflowErrorResponse = unknown;
|
|
15
|
+
export interface InstallOotbWorkflowProps extends InstallOotbWorkflowMutationPathParams, Omit<FetcherOptions<unknown, InstallOotbWorkflowRequestBody, InstallOotbWorkflowMutationHeaderParams>, 'url'> {
|
|
16
|
+
body: InstallOotbWorkflowRequestBody;
|
|
17
|
+
}
|
|
18
|
+
export declare function installOotbWorkflow(props: InstallOotbWorkflowProps): Promise<InstallOotbWorkflowOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Installs an OOTB workflow — creates backing pipeline(s), input sets, and the workflow catalog entity.
|
|
21
|
+
*/
|
|
22
|
+
export declare function useInstallOotbWorkflowMutation(options?: Omit<UseMutationOptions<InstallOotbWorkflowOkResponse, InstallOotbWorkflowErrorResponse, InstallOotbWorkflowProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<InstallOotbWorkflowOkResponse, unknown, InstallOotbWorkflowProps, 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 installOotbWorkflow(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/ootb-workflow-library/${props.identifier}/install`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Installs an OOTB workflow — creates backing pipeline(s), input sets, and the workflow catalog entity.
|
|
11
|
+
*/
|
|
12
|
+
export function useInstallOotbWorkflowMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => installOotbWorkflow(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { OotbWorkflowLibraryEntity } from '../schemas/OotbWorkflowLibraryEntity';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-idp-fetcher/index.js';
|
|
5
|
+
export interface ListOotbWorkflowsQueryQueryParams {
|
|
6
|
+
category?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ListOotbWorkflowsQueryHeaderParams {
|
|
9
|
+
'Harness-Account'?: string;
|
|
10
|
+
}
|
|
11
|
+
export type ListOotbWorkflowsOkResponse = ResponseWithPagination<OotbWorkflowLibraryEntity[]>;
|
|
12
|
+
export type ListOotbWorkflowsErrorResponse = unknown;
|
|
13
|
+
export interface ListOotbWorkflowsProps extends Omit<FetcherOptions<ListOotbWorkflowsQueryQueryParams, unknown, ListOotbWorkflowsQueryHeaderParams>, 'url'> {
|
|
14
|
+
queryParams: ListOotbWorkflowsQueryQueryParams;
|
|
15
|
+
}
|
|
16
|
+
export declare function listOotbWorkflows(props: ListOotbWorkflowsProps): Promise<ListOotbWorkflowsOkResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Returns all stable, non-deprecated OOTB workflows. Optionally filter by category.
|
|
19
|
+
*/
|
|
20
|
+
export declare function useListOotbWorkflowsQuery(props: ListOotbWorkflowsProps, options?: Omit<UseQueryOptions<ListOotbWorkflowsOkResponse, ListOotbWorkflowsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListOotbWorkflowsOkResponse, 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 listOotbWorkflows(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/ootb-workflow-library`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns all stable, non-deprecated OOTB workflows. Optionally filter by category.
|
|
11
|
+
*/
|
|
12
|
+
export function useListOotbWorkflowsQuery(props, options) {
|
|
13
|
+
return useQuery(['list-ootb-workflows', props.queryParams], ({ signal }) => listOotbWorkflows(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -185,6 +185,12 @@ export type { GetMergedPluginsConfigErrorResponse, GetMergedPluginsConfigOkRespo
|
|
|
185
185
|
export { getMergedPluginsConfig, useGetMergedPluginsConfigQuery, } from './hooks/useGetMergedPluginsConfigQuery';
|
|
186
186
|
export type { GetOnboardingStatusErrorResponse, GetOnboardingStatusOkResponse, GetOnboardingStatusProps, } from './hooks/useGetOnboardingStatusQuery';
|
|
187
187
|
export { getOnboardingStatus, useGetOnboardingStatusQuery, } from './hooks/useGetOnboardingStatusQuery';
|
|
188
|
+
export type { GetOotbWorkflowErrorResponse, GetOotbWorkflowOkResponse, GetOotbWorkflowProps, GetOotbWorkflowQueryPathParams, } from './hooks/useGetOotbWorkflowQuery';
|
|
189
|
+
export { getOotbWorkflow, useGetOotbWorkflowQuery } from './hooks/useGetOotbWorkflowQuery';
|
|
190
|
+
export type { GetOotbWorkflowVersionErrorResponse, GetOotbWorkflowVersionOkResponse, GetOotbWorkflowVersionProps, GetOotbWorkflowVersionQueryPathParams, } from './hooks/useGetOotbWorkflowVersionQuery';
|
|
191
|
+
export { getOotbWorkflowVersion, useGetOotbWorkflowVersionQuery, } from './hooks/useGetOotbWorkflowVersionQuery';
|
|
192
|
+
export type { GetOotbWorkflowVersionsErrorResponse, GetOotbWorkflowVersionsOkResponse, GetOotbWorkflowVersionsProps, GetOotbWorkflowVersionsQueryPathParams, } from './hooks/useGetOotbWorkflowVersionsQuery';
|
|
193
|
+
export { getOotbWorkflowVersions, useGetOotbWorkflowVersionsQuery, } from './hooks/useGetOotbWorkflowVersionsQuery';
|
|
188
194
|
export type { GetPersonaViewErrorResponse, GetPersonaViewOkResponse, GetPersonaViewProps, GetPersonaViewQueryPathParams, } from './hooks/useGetPersonaViewQuery';
|
|
189
195
|
export { getPersonaView, useGetPersonaViewQuery } from './hooks/useGetPersonaViewQuery';
|
|
190
196
|
export type { GetPersonaViewsForUserErrorResponse, GetPersonaViewsForUserOkResponse, GetPersonaViewsForUserProps, } from './hooks/useGetPersonaViewsForUserQuery';
|
|
@@ -215,12 +221,16 @@ export type { ImportEntityErrorResponse, ImportEntityMutationQueryParams, Import
|
|
|
215
221
|
export { importEntity, useImportEntityMutation } from './hooks/useImportEntityMutation';
|
|
216
222
|
export type { ImportHarnessEntitiesErrorResponse, ImportHarnessEntitiesOkResponse, ImportHarnessEntitiesProps, ImportHarnessEntitiesRequestBody, } from './hooks/useImportHarnessEntitiesMutation';
|
|
217
223
|
export { importHarnessEntities, useImportHarnessEntitiesMutation, } from './hooks/useImportHarnessEntitiesMutation';
|
|
224
|
+
export type { InstallOotbWorkflowErrorResponse, InstallOotbWorkflowMutationPathParams, InstallOotbWorkflowOkResponse, InstallOotbWorkflowProps, InstallOotbWorkflowRequestBody, } from './hooks/useInstallOotbWorkflowMutation';
|
|
225
|
+
export { installOotbWorkflow, useInstallOotbWorkflowMutation, } from './hooks/useInstallOotbWorkflowMutation';
|
|
218
226
|
export type { KindSchemaValidateErrorResponse, KindSchemaValidateOkResponse, KindSchemaValidateProps, KindSchemaValidateRequestBody, } from './hooks/useKindSchemaValidateMutation';
|
|
219
227
|
export { kindSchemaValidate, useKindSchemaValidateMutation, } from './hooks/useKindSchemaValidateMutation';
|
|
220
228
|
export type { LayoutIngestErrorResponse, LayoutIngestOkResponse, LayoutIngestProps, LayoutIngestRequestBody, } from './hooks/useLayoutIngestMutation';
|
|
221
229
|
export { layoutIngest, useLayoutIngestMutation } from './hooks/useLayoutIngestMutation';
|
|
222
230
|
export type { LayoutIngestV3ErrorResponse, LayoutIngestV3OkResponse, LayoutIngestV3Props, LayoutIngestV3RequestBody, } from './hooks/useLayoutIngestV3Mutation';
|
|
223
231
|
export { layoutIngestV3, useLayoutIngestV3Mutation } from './hooks/useLayoutIngestV3Mutation';
|
|
232
|
+
export type { ListOotbWorkflowsErrorResponse, ListOotbWorkflowsOkResponse, ListOotbWorkflowsProps, ListOotbWorkflowsQueryQueryParams, } from './hooks/useListOotbWorkflowsQuery';
|
|
233
|
+
export { listOotbWorkflows, useListOotbWorkflowsQuery } from './hooks/useListOotbWorkflowsQuery';
|
|
224
234
|
export type { ListPersonaViewsErrorResponse, ListPersonaViewsOkResponse, ListPersonaViewsProps, ListPersonaViewsQueryQueryParams, } from './hooks/useListPersonaViewsQuery';
|
|
225
235
|
export { listPersonaViews, useListPersonaViewsQuery } from './hooks/useListPersonaViewsQuery';
|
|
226
236
|
export type { MoveEntityErrorResponse, MoveEntityMutationPathParams, MoveEntityMutationQueryParams, MoveEntityOkResponse, MoveEntityProps, MoveEntityRequestBody, } from './hooks/useMoveEntityMutation';
|
|
@@ -571,6 +581,10 @@ export type { OnboardingImportCdEntitiesResponse } from './schemas/OnboardingImp
|
|
|
571
581
|
export type { OnboardingSkipRequest } from './schemas/OnboardingSkipRequest';
|
|
572
582
|
export type { OnboardingSkipResponse } from './schemas/OnboardingSkipResponse';
|
|
573
583
|
export type { OnboardingStatusResponse } from './schemas/OnboardingStatusResponse';
|
|
584
|
+
export type { OotbAdminInput } from './schemas/OotbAdminInput';
|
|
585
|
+
export type { OotbWorkflowInstallRequest } from './schemas/OotbWorkflowInstallRequest';
|
|
586
|
+
export type { OotbWorkflowInstallResponse } from './schemas/OotbWorkflowInstallResponse';
|
|
587
|
+
export type { OotbWorkflowLibraryEntity } from './schemas/OotbWorkflowLibraryEntity';
|
|
574
588
|
export type { PersonaView } from './schemas/PersonaView';
|
|
575
589
|
export type { PersonaViewListForUser } from './schemas/PersonaViewListForUser';
|
|
576
590
|
export type { PersonaViewListResponse } from './schemas/PersonaViewListResponse';
|
|
@@ -91,6 +91,9 @@ export { getLayoutsV3, useGetLayoutsV3Query } from './hooks/useGetLayoutsV3Query
|
|
|
91
91
|
export { getLayoutsV4, useGetLayoutsV4Query } from './hooks/useGetLayoutsV4Query';
|
|
92
92
|
export { getMergedPluginsConfig, useGetMergedPluginsConfigQuery, } from './hooks/useGetMergedPluginsConfigQuery';
|
|
93
93
|
export { getOnboardingStatus, useGetOnboardingStatusQuery, } from './hooks/useGetOnboardingStatusQuery';
|
|
94
|
+
export { getOotbWorkflow, useGetOotbWorkflowQuery } from './hooks/useGetOotbWorkflowQuery';
|
|
95
|
+
export { getOotbWorkflowVersion, useGetOotbWorkflowVersionQuery, } from './hooks/useGetOotbWorkflowVersionQuery';
|
|
96
|
+
export { getOotbWorkflowVersions, useGetOotbWorkflowVersionsQuery, } from './hooks/useGetOotbWorkflowVersionsQuery';
|
|
94
97
|
export { getPersonaView, useGetPersonaViewQuery } from './hooks/useGetPersonaViewQuery';
|
|
95
98
|
export { getPersonaViewsForUser, useGetPersonaViewsForUserQuery, } from './hooks/useGetPersonaViewsForUserQuery';
|
|
96
99
|
export { getPluginRequestV2, useGetPluginRequestV2Query } from './hooks/useGetPluginRequestV2Query';
|
|
@@ -106,9 +109,11 @@ export { getWorkflowsForAccount, useGetWorkflowsForAccountQuery, } from './hooks
|
|
|
106
109
|
export { importCdEntities, useImportCdEntitiesMutation } from './hooks/useImportCdEntitiesMutation';
|
|
107
110
|
export { importEntity, useImportEntityMutation } from './hooks/useImportEntityMutation';
|
|
108
111
|
export { importHarnessEntities, useImportHarnessEntitiesMutation, } from './hooks/useImportHarnessEntitiesMutation';
|
|
112
|
+
export { installOotbWorkflow, useInstallOotbWorkflowMutation, } from './hooks/useInstallOotbWorkflowMutation';
|
|
109
113
|
export { kindSchemaValidate, useKindSchemaValidateMutation, } from './hooks/useKindSchemaValidateMutation';
|
|
110
114
|
export { layoutIngest, useLayoutIngestMutation } from './hooks/useLayoutIngestMutation';
|
|
111
115
|
export { layoutIngestV3, useLayoutIngestV3Mutation } from './hooks/useLayoutIngestV3Mutation';
|
|
116
|
+
export { listOotbWorkflows, useListOotbWorkflowsQuery } from './hooks/useListOotbWorkflowsQuery';
|
|
112
117
|
export { listPersonaViews, useListPersonaViewsQuery } from './hooks/useListPersonaViewsQuery';
|
|
113
118
|
export { moveEntity, useMoveEntityMutation } from './hooks/useMoveEntityMutation';
|
|
114
119
|
export { onboardingGenerateYaml, useOnboardingGenerateYamlMutation, } from './hooks/useOnboardingGenerateYamlMutation';
|
|
@@ -2,11 +2,13 @@ import type { ComparisonByHierarchyColumn } from '../schemas/ComparisonByHierarc
|
|
|
2
2
|
import type { ComparisonByHierarchyRow } from '../schemas/ComparisonByHierarchyRow';
|
|
3
3
|
export interface ComparisonByHierarchyCardDataResponse {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Display columns. The first column is always the reserved `entity_count` column (the number of catalog entities scoped to the node); the aggregation-rule columns follow in the requested order.
|
|
6
|
+
*
|
|
6
7
|
*/
|
|
7
8
|
columns: ComparisonByHierarchyColumn[];
|
|
8
9
|
/**
|
|
9
|
-
* One row per hierarchy node at the requested scope.
|
|
10
|
+
* One row per hierarchy node at the requested scope, limited to the top 5 nodes ordered by `entity_count` descending (ties broken by node identifier ascending). Nodes with zero entities are omitted.
|
|
11
|
+
*
|
|
10
12
|
*/
|
|
11
13
|
rows: ComparisonByHierarchyRow[];
|
|
12
14
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
export interface ComparisonByHierarchyColumn {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Column key (used to look up the value inside `row.values`). Either an aggregation rule identifier, or the reserved value `entity_count` for the mandatory entity-count column.
|
|
4
|
+
*
|
|
4
5
|
*/
|
|
5
6
|
id: string;
|
|
6
7
|
/**
|
|
7
|
-
* Display label for the column (
|
|
8
|
+
* Display label for the column (the rule's name, or `Entities` for `entity_count`).
|
|
8
9
|
*/
|
|
9
10
|
name: string;
|
|
10
11
|
}
|
|
@@ -4,7 +4,7 @@ export interface ComparisonByHierarchyRow {
|
|
|
4
4
|
node: ComparisonByHierarchyNode;
|
|
5
5
|
scorecard_compliance: ScorecardComplianceCounts;
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Values keyed by column id. Always includes the reserved `entity_count` key (the entity count for the node, never null); aggregation-rule keys may be absent or null when the rule has no computed value for the node.
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
10
|
values: {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An admin input definition for an OOTB workflow or pipeline
|
|
3
|
+
*/
|
|
4
|
+
export interface OotbAdminInput {
|
|
5
|
+
connector_types?: string[];
|
|
6
|
+
default_value?: string;
|
|
7
|
+
hint?: string;
|
|
8
|
+
key?: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
type?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Request body for installing an OOTB workflow
|
|
3
|
+
*/
|
|
4
|
+
export interface OotbWorkflowInstallRequest {
|
|
5
|
+
/**
|
|
6
|
+
* Key-value map of admin input values
|
|
7
|
+
*/
|
|
8
|
+
adminInputValues?: {
|
|
9
|
+
[key: string]: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Org where the backing pipeline(s) will be created
|
|
13
|
+
*/
|
|
14
|
+
pipelineOrgIdentifier: string;
|
|
15
|
+
/**
|
|
16
|
+
* Project where the backing pipeline(s) will be created
|
|
17
|
+
*/
|
|
18
|
+
pipelineProjectIdentifier: string;
|
|
19
|
+
/**
|
|
20
|
+
* Workflow version to install. If not provided, the stable version is used.
|
|
21
|
+
*/
|
|
22
|
+
version?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Unique identifier for this installed workflow instance
|
|
25
|
+
*/
|
|
26
|
+
workflowInstanceIdentifier: string;
|
|
27
|
+
/**
|
|
28
|
+
* Display name for this installed workflow instance
|
|
29
|
+
*/
|
|
30
|
+
workflowInstanceName?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Org where the workflow catalog entity will be created
|
|
33
|
+
*/
|
|
34
|
+
workflowOrgIdentifier?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Project where the workflow catalog entity will be created
|
|
37
|
+
*/
|
|
38
|
+
workflowProjectIdentifier?: string;
|
|
39
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Response from installing an OOTB workflow
|
|
3
|
+
*/
|
|
4
|
+
export interface OotbWorkflowInstallResponse {
|
|
5
|
+
error_message?: string;
|
|
6
|
+
pipeline_identifiers?: string[];
|
|
7
|
+
pipeline_org_identifier?: string;
|
|
8
|
+
pipeline_project_identifier?: string;
|
|
9
|
+
status?: 'FAILED' | 'SUCCESS';
|
|
10
|
+
version?: string;
|
|
11
|
+
workflow_identifier?: string;
|
|
12
|
+
workflow_instance_identifier?: string;
|
|
13
|
+
workflow_org_identifier?: string;
|
|
14
|
+
workflow_project_identifier?: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { OotbAdminInput } from '../schemas/OotbAdminInput';
|
|
2
|
+
/**
|
|
3
|
+
* An OOTB workflow library entry
|
|
4
|
+
*/
|
|
5
|
+
export interface OotbWorkflowLibraryEntity {
|
|
6
|
+
admin_inputs?: OotbAdminInput[];
|
|
7
|
+
category?: string;
|
|
8
|
+
deprecated?: boolean;
|
|
9
|
+
description?: string;
|
|
10
|
+
identifier?: string;
|
|
11
|
+
is_stable?: boolean;
|
|
12
|
+
name?: string;
|
|
13
|
+
version?: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -4,7 +4,7 @@ import type { HeaderInfo } from '../schemas/HeaderInfo';
|
|
|
4
4
|
import type { UserGroupRef } from '../schemas/UserGroupRef';
|
|
5
5
|
export interface PersonaView {
|
|
6
6
|
/**
|
|
7
|
-
* Banner chrome rendered above the card grid.
|
|
7
|
+
* Banner chrome rendered above the card grid. Optional on any persona view; null when the view has no banner configured. For the synthetic Developer's View (identifier=developer) it is projected from the account homepage layout.
|
|
8
8
|
*/
|
|
9
9
|
banner?: BannerInfo;
|
|
10
10
|
cards: Card[];
|
|
@@ -14,7 +14,7 @@ export interface PersonaView {
|
|
|
14
14
|
created_at?: number;
|
|
15
15
|
description?: string;
|
|
16
16
|
/**
|
|
17
|
-
* Header chrome (logo, hero image, search bar, quick links).
|
|
17
|
+
* Header chrome (logo, hero image, search bar, quick links). Optional on any persona view; null when the view has no header configured. For the synthetic Developer's View (identifier=developer) it is projected from the account homepage layout.
|
|
18
18
|
*/
|
|
19
19
|
header?: HeaderInfo;
|
|
20
20
|
identifier: string;
|
|
@@ -1,7 +1,17 @@
|
|
|
1
|
+
import type { BannerInfo } from '../schemas/BannerInfo';
|
|
1
2
|
import type { Card } from '../schemas/Card';
|
|
3
|
+
import type { HeaderInfo } from '../schemas/HeaderInfo';
|
|
2
4
|
export interface SavePersonaViewBody {
|
|
5
|
+
/**
|
|
6
|
+
* Banner chrome rendered above the card grid. Honored on every persona view: OOTB and custom views persist it on their own row, while the Developer's View (identifier=developer) persists it to the account homepage layout. When omitted, the existing banner is preserved.
|
|
7
|
+
*/
|
|
8
|
+
banner?: BannerInfo;
|
|
3
9
|
cards: Card[];
|
|
4
10
|
description?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Header chrome (logo, hero image, search bar, quick links). Honored on every persona view: OOTB and custom views persist it on their own row, while the Developer's View (identifier=developer) persists it to the account homepage layout. When omitted, the existing header is preserved.
|
|
13
|
+
*/
|
|
14
|
+
header?: HeaderInfo;
|
|
5
15
|
name: string;
|
|
6
16
|
user_group_identifiers?: string[];
|
|
7
17
|
}
|