@harnessio/react-pipeline-swagger-service-client 1.8.0 → 1.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pipeline-swagger-service/src/services/hooks/useGetExecutionGraphQuery.d.ts +24 -0
- package/dist/pipeline-swagger-service/src/services/hooks/useGetExecutionGraphQuery.js +14 -0
- package/dist/pipeline-swagger-service/src/services/hooks/useHandleInterruptMutation.d.ts +26 -0
- package/dist/pipeline-swagger-service/src/services/hooks/useHandleInterruptMutation.js +14 -0
- package/dist/pipeline-swagger-service/src/services/index.d.ts +5 -0
- package/dist/pipeline-swagger-service/src/services/index.js +2 -0
- package/dist/pipeline-swagger-service/src/services/schemas/ResponseExecutionGraph.d.ts +9 -0
- package/dist/pipeline-swagger-service/src/services/schemas/ResponseExecutionGraph.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponseExecutionGraph } from '../schemas/ResponseExecutionGraph';
|
|
3
|
+
import type { Failure } from '../schemas/Failure';
|
|
4
|
+
import type { Error } from '../schemas/Error';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface GetExecutionGraphQueryPathParams {
|
|
8
|
+
planExecutionId: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GetExecutionGraphQueryQueryParams {
|
|
11
|
+
accountIdentifier: string;
|
|
12
|
+
orgIdentifier: string;
|
|
13
|
+
projectIdentifier: string;
|
|
14
|
+
}
|
|
15
|
+
export type GetExecutionGraphOkResponse = ResponseWithPagination<ResponseExecutionGraph>;
|
|
16
|
+
export type GetExecutionGraphErrorResponse = Failure | Error;
|
|
17
|
+
export interface GetExecutionGraphProps extends GetExecutionGraphQueryPathParams, Omit<FetcherOptions<GetExecutionGraphQueryQueryParams, unknown>, 'url'> {
|
|
18
|
+
queryParams: GetExecutionGraphQueryQueryParams;
|
|
19
|
+
}
|
|
20
|
+
export declare function getExecutionGraph(props: GetExecutionGraphProps): Promise<GetExecutionGraphOkResponse>;
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
export declare function useGetExecutionGraphQuery(props: GetExecutionGraphProps, options?: Omit<UseQueryOptions<GetExecutionGraphOkResponse, GetExecutionGraphErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetExecutionGraphOkResponse, GetExecutionGraphErrorResponse>;
|
|
@@ -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 '../../../../fetcher/index.js';
|
|
6
|
+
export function getExecutionGraph(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/pipelines/execution/getExecutionGraph/${props.planExecutionId}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useGetExecutionGraphQuery(props, options) {
|
|
13
|
+
return useQuery(['getExecutionGraph', props.planExecutionId, props.queryParams], ({ signal }) => getExecutionGraph(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponsePipelineExecutionInterrupt } from '../schemas/ResponsePipelineExecutionInterrupt';
|
|
3
|
+
import type { Failure } from '../schemas/Failure';
|
|
4
|
+
import type { AccessControlCheckError } from '../schemas/AccessControlCheckError';
|
|
5
|
+
import type { Error } from '../schemas/Error';
|
|
6
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
7
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
|
+
export interface HandleInterruptMutationPathParams {
|
|
9
|
+
planExecutionId: string;
|
|
10
|
+
}
|
|
11
|
+
export interface HandleInterruptMutationQueryParams {
|
|
12
|
+
accountIdentifier: string;
|
|
13
|
+
orgIdentifier: string;
|
|
14
|
+
projectIdentifier: string;
|
|
15
|
+
interruptType: 'AbortAll' | 'UserMarkedFailure';
|
|
16
|
+
}
|
|
17
|
+
export type HandleInterruptOkResponse = ResponseWithPagination<ResponsePipelineExecutionInterrupt>;
|
|
18
|
+
export type HandleInterruptErrorResponse = Failure | AccessControlCheckError | Error;
|
|
19
|
+
export interface HandleInterruptProps extends HandleInterruptMutationPathParams, Omit<FetcherOptions<HandleInterruptMutationQueryParams, unknown>, 'url'> {
|
|
20
|
+
queryParams: HandleInterruptMutationQueryParams;
|
|
21
|
+
}
|
|
22
|
+
export declare function handleInterrupt(props: HandleInterruptProps): Promise<HandleInterruptOkResponse>;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export declare function useHandleInterruptMutation(options?: Omit<UseMutationOptions<HandleInterruptOkResponse, HandleInterruptErrorResponse, HandleInterruptProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<HandleInterruptOkResponse, HandleInterruptErrorResponse, HandleInterruptProps, 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 '../../../../fetcher/index.js';
|
|
6
|
+
export function handleInterrupt(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/pipeline/execute/interrupt/${props.planExecutionId}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useHandleInterruptMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => handleInterrupt(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -23,6 +23,8 @@ export type { GetExecutionDataErrorResponse, GetExecutionDataOkResponse, GetExec
|
|
|
23
23
|
export { getExecutionData, useGetExecutionDataQuery } from './hooks/useGetExecutionDataQuery';
|
|
24
24
|
export type { GetExecutionDetailV2ErrorResponse, GetExecutionDetailV2OkResponse, GetExecutionDetailV2Props, GetExecutionDetailV2QueryPathParams, GetExecutionDetailV2QueryQueryParams, } from './hooks/useGetExecutionDetailV2Query';
|
|
25
25
|
export { getExecutionDetailV2, useGetExecutionDetailV2Query, } from './hooks/useGetExecutionDetailV2Query';
|
|
26
|
+
export type { GetExecutionGraphErrorResponse, GetExecutionGraphOkResponse, GetExecutionGraphProps, GetExecutionGraphQueryPathParams, GetExecutionGraphQueryQueryParams, } from './hooks/useGetExecutionGraphQuery';
|
|
27
|
+
export { getExecutionGraph, useGetExecutionGraphQuery } from './hooks/useGetExecutionGraphQuery';
|
|
26
28
|
export type { GetExecutionRepositoriesListErrorResponse, GetExecutionRepositoriesListOkResponse, GetExecutionRepositoriesListProps, GetExecutionRepositoriesListQueryQueryParams, } from './hooks/useGetExecutionRepositoriesListQuery';
|
|
27
29
|
export { getExecutionRepositoriesList, useGetExecutionRepositoriesListQuery, } from './hooks/useGetExecutionRepositoriesListQuery';
|
|
28
30
|
export type { GetFilterListErrorResponse, GetFilterListOkResponse, GetFilterListProps, GetFilterListQueryQueryParams, } from './hooks/useGetFilterListQuery';
|
|
@@ -55,6 +57,8 @@ export type { GetTriggerListForTargetErrorResponse, GetTriggerListForTargetOkRes
|
|
|
55
57
|
export { getTriggerListForTarget, useGetTriggerListForTargetQuery, } from './hooks/useGetTriggerListForTargetQuery';
|
|
56
58
|
export type { GetTriggerErrorResponse, GetTriggerOkResponse, GetTriggerProps, GetTriggerQueryPathParams, GetTriggerQueryQueryParams, } from './hooks/useGetTriggerQuery';
|
|
57
59
|
export { getTrigger, useGetTriggerQuery } from './hooks/useGetTriggerQuery';
|
|
60
|
+
export type { HandleInterruptErrorResponse, HandleInterruptMutationPathParams, HandleInterruptMutationQueryParams, HandleInterruptOkResponse, HandleInterruptProps, } from './hooks/useHandleInterruptMutation';
|
|
61
|
+
export { handleInterrupt, useHandleInterruptMutation } from './hooks/useHandleInterruptMutation';
|
|
58
62
|
export type { HandleStageInterruptErrorResponse, HandleStageInterruptMutationPathParams, HandleStageInterruptMutationQueryParams, HandleStageInterruptOkResponse, HandleStageInterruptProps, } from './hooks/useHandleStageInterruptMutation';
|
|
59
63
|
export { handleStageInterrupt, useHandleStageInterruptMutation, } from './hooks/useHandleStageInterruptMutation';
|
|
60
64
|
export type { PostFilterErrorResponse, PostFilterMutationQueryParams, PostFilterOkResponse, PostFilterProps, PostFilterRequestBody, } from './hooks/usePostFilterMutation';
|
|
@@ -154,6 +158,7 @@ export type { ResourceScope } from './schemas/ResourceScope';
|
|
|
154
158
|
export type { ResponseAnnotationContentResponseDto } from './schemas/ResponseAnnotationContentResponseDto';
|
|
155
159
|
export type { ResponseBoolean } from './schemas/ResponseBoolean';
|
|
156
160
|
export type { ResponseExecutionDataResponse } from './schemas/ResponseExecutionDataResponse';
|
|
161
|
+
export type { ResponseExecutionGraph } from './schemas/ResponseExecutionGraph';
|
|
157
162
|
export type { ResponseFilterDto } from './schemas/ResponseFilterDto';
|
|
158
163
|
export type { ResponseInputSetResponse } from './schemas/ResponseInputSetResponse';
|
|
159
164
|
export type { ResponseMapStringMapStringListString } from './schemas/ResponseMapStringMapStringListString';
|
|
@@ -10,6 +10,7 @@ export { getBatchInputSetsMetadata, useGetBatchInputSetsMetadataMutation, } from
|
|
|
10
10
|
export { getExecutionBranchesList, useGetExecutionBranchesListQuery, } from './hooks/useGetExecutionBranchesListQuery';
|
|
11
11
|
export { getExecutionData, useGetExecutionDataQuery } from './hooks/useGetExecutionDataQuery';
|
|
12
12
|
export { getExecutionDetailV2, useGetExecutionDetailV2Query, } from './hooks/useGetExecutionDetailV2Query';
|
|
13
|
+
export { getExecutionGraph, useGetExecutionGraphQuery } from './hooks/useGetExecutionGraphQuery';
|
|
13
14
|
export { getExecutionRepositoriesList, useGetExecutionRepositoriesListQuery, } from './hooks/useGetExecutionRepositoriesListQuery';
|
|
14
15
|
export { getFilterList, useGetFilterListQuery } from './hooks/useGetFilterListQuery';
|
|
15
16
|
export { getFilter, useGetFilterQuery } from './hooks/useGetFilterQuery';
|
|
@@ -26,6 +27,7 @@ export { getTriggerCatalog, useGetTriggerCatalogQuery } from './hooks/useGetTrig
|
|
|
26
27
|
export { getTriggerDetails, useGetTriggerDetailsQuery } from './hooks/useGetTriggerDetailsQuery';
|
|
27
28
|
export { getTriggerListForTarget, useGetTriggerListForTargetQuery, } from './hooks/useGetTriggerListForTargetQuery';
|
|
28
29
|
export { getTrigger, useGetTriggerQuery } from './hooks/useGetTriggerQuery';
|
|
30
|
+
export { handleInterrupt, useHandleInterruptMutation } from './hooks/useHandleInterruptMutation';
|
|
29
31
|
export { handleStageInterrupt, useHandleStageInterruptMutation, } from './hooks/useHandleStageInterruptMutation';
|
|
30
32
|
export { postFilter, usePostFilterMutation } from './hooks/usePostFilterMutation';
|
|
31
33
|
export { retryHistory, useRetryHistoryQuery } from './hooks/useRetryHistoryQuery';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED