@harnessio/react-pipeline-swagger-service-client 1.8.2 → 1.8.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/pipeline-swagger-service/src/services/hooks/useHandleManualInterventionInterruptMutation.d.ts +27 -0
- package/dist/pipeline-swagger-service/src/services/hooks/useHandleManualInterventionInterruptMutation.js +14 -0
- package/dist/pipeline-swagger-service/src/services/index.d.ts +2 -0
- package/dist/pipeline-swagger-service/src/services/index.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
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 HandleManualInterventionInterruptMutationPathParams {
|
|
9
|
+
planExecutionId: string;
|
|
10
|
+
nodeExecutionId: string;
|
|
11
|
+
}
|
|
12
|
+
export interface HandleManualInterventionInterruptMutationQueryParams {
|
|
13
|
+
accountIdentifier: string;
|
|
14
|
+
orgIdentifier: string;
|
|
15
|
+
projectIdentifier: string;
|
|
16
|
+
interruptType: 'Abort' | 'AbortAll' | 'ExpireAll' | 'Ignore' | 'MarkAsFailure' | 'MarkAsSuccess' | 'Pause' | 'PipelineRollback' | 'Resume' | 'Retry' | 'StageRollback' | 'StepGroupRollback' | 'UserMarkedFailure';
|
|
17
|
+
}
|
|
18
|
+
export type HandleManualInterventionInterruptOkResponse = ResponseWithPagination<ResponsePipelineExecutionInterrupt>;
|
|
19
|
+
export type HandleManualInterventionInterruptErrorResponse = Failure | AccessControlCheckError | Error;
|
|
20
|
+
export interface HandleManualInterventionInterruptProps extends HandleManualInterventionInterruptMutationPathParams, Omit<FetcherOptions<HandleManualInterventionInterruptMutationQueryParams, unknown>, 'url'> {
|
|
21
|
+
queryParams: HandleManualInterventionInterruptMutationQueryParams;
|
|
22
|
+
}
|
|
23
|
+
export declare function handleManualInterventionInterrupt(props: HandleManualInterventionInterruptProps): Promise<HandleManualInterventionInterruptOkResponse>;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export declare function useHandleManualInterventionInterruptMutation(options?: Omit<UseMutationOptions<HandleManualInterventionInterruptOkResponse, HandleManualInterventionInterruptErrorResponse, HandleManualInterventionInterruptProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<HandleManualInterventionInterruptOkResponse, HandleManualInterventionInterruptErrorResponse, HandleManualInterventionInterruptProps, 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 handleManualInterventionInterrupt(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/pipeline/execute/manualIntervention/interrupt/${props.planExecutionId}/${props.nodeExecutionId}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useHandleManualInterventionInterruptMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => handleManualInterventionInterrupt(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -59,6 +59,8 @@ export type { GetTriggerErrorResponse, GetTriggerOkResponse, GetTriggerProps, Ge
|
|
|
59
59
|
export { getTrigger, useGetTriggerQuery } from './hooks/useGetTriggerQuery';
|
|
60
60
|
export type { HandleInterruptErrorResponse, HandleInterruptMutationPathParams, HandleInterruptMutationQueryParams, HandleInterruptOkResponse, HandleInterruptProps, } from './hooks/useHandleInterruptMutation';
|
|
61
61
|
export { handleInterrupt, useHandleInterruptMutation } from './hooks/useHandleInterruptMutation';
|
|
62
|
+
export type { HandleManualInterventionInterruptErrorResponse, HandleManualInterventionInterruptMutationPathParams, HandleManualInterventionInterruptMutationQueryParams, HandleManualInterventionInterruptOkResponse, HandleManualInterventionInterruptProps, } from './hooks/useHandleManualInterventionInterruptMutation';
|
|
63
|
+
export { handleManualInterventionInterrupt, useHandleManualInterventionInterruptMutation, } from './hooks/useHandleManualInterventionInterruptMutation';
|
|
62
64
|
export type { HandleStageInterruptErrorResponse, HandleStageInterruptMutationPathParams, HandleStageInterruptMutationQueryParams, HandleStageInterruptOkResponse, HandleStageInterruptProps, } from './hooks/useHandleStageInterruptMutation';
|
|
63
65
|
export { handleStageInterrupt, useHandleStageInterruptMutation, } from './hooks/useHandleStageInterruptMutation';
|
|
64
66
|
export type { PostFilterErrorResponse, PostFilterMutationQueryParams, PostFilterOkResponse, PostFilterProps, PostFilterRequestBody, } from './hooks/usePostFilterMutation';
|
|
@@ -28,6 +28,7 @@ export { getTriggerDetails, useGetTriggerDetailsQuery } from './hooks/useGetTrig
|
|
|
28
28
|
export { getTriggerListForTarget, useGetTriggerListForTargetQuery, } from './hooks/useGetTriggerListForTargetQuery';
|
|
29
29
|
export { getTrigger, useGetTriggerQuery } from './hooks/useGetTriggerQuery';
|
|
30
30
|
export { handleInterrupt, useHandleInterruptMutation } from './hooks/useHandleInterruptMutation';
|
|
31
|
+
export { handleManualInterventionInterrupt, useHandleManualInterventionInterruptMutation, } from './hooks/useHandleManualInterventionInterruptMutation';
|
|
31
32
|
export { handleStageInterrupt, useHandleStageInterruptMutation, } from './hooks/useHandleStageInterruptMutation';
|
|
32
33
|
export { postFilter, usePostFilterMutation } from './hooks/usePostFilterMutation';
|
|
33
34
|
export { retryHistory, useRetryHistoryQuery } from './hooks/useRetryHistoryQuery';
|
package/package.json
CHANGED