@harnessio/react-pipeline-swagger-service-client 1.6.0 → 1.7.1
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/useCanRetryExecutionQuery.d.ts +24 -0
- package/dist/pipeline-swagger-service/src/services/hooks/useCanRetryExecutionQuery.js +14 -0
- package/dist/pipeline-swagger-service/src/services/hooks/useDeleteTriggerMutation.d.ts +28 -0
- package/dist/pipeline-swagger-service/src/services/hooks/useDeleteTriggerMutation.js +14 -0
- package/dist/pipeline-swagger-service/src/services/hooks/useGetTriggerDetailsQuery.d.ts +25 -0
- package/dist/pipeline-swagger-service/src/services/hooks/useGetTriggerDetailsQuery.js +14 -0
- package/dist/pipeline-swagger-service/src/services/hooks/useGetTriggerQuery.d.ts +25 -0
- package/dist/pipeline-swagger-service/src/services/hooks/useGetTriggerQuery.js +14 -0
- package/dist/pipeline-swagger-service/src/services/hooks/useHandleStageInterruptMutation.d.ts +27 -0
- package/dist/pipeline-swagger-service/src/services/hooks/useHandleStageInterruptMutation.js +14 -0
- package/dist/pipeline-swagger-service/src/services/hooks/useTriggerEventHistoryQuery.d.ts +38 -0
- package/dist/pipeline-swagger-service/src/services/hooks/useTriggerEventHistoryQuery.js +15 -0
- package/dist/pipeline-swagger-service/src/services/hooks/useUpdateTriggerMutation.d.ts +32 -0
- package/dist/pipeline-swagger-service/src/services/hooks/useUpdateTriggerMutation.js +14 -0
- package/dist/pipeline-swagger-service/src/services/hooks/useUpdateTriggerStatusMutation.d.ts +26 -0
- package/dist/pipeline-swagger-service/src/services/hooks/useUpdateTriggerStatusMutation.js +14 -0
- package/dist/pipeline-swagger-service/src/services/index.d.ts +25 -0
- package/dist/pipeline-swagger-service/src/services/index.js +8 -0
- package/dist/pipeline-swagger-service/src/services/schemas/NgTriggerEventHistoryResponse.d.ts +30 -0
- package/dist/pipeline-swagger-service/src/services/schemas/NgTriggerEventHistoryResponse.js +1 -0
- package/dist/pipeline-swagger-service/src/services/schemas/NgTriggerEventInfo.d.ts +3 -0
- package/dist/pipeline-swagger-service/src/services/schemas/NgTriggerEventInfo.js +4 -0
- package/dist/pipeline-swagger-service/src/services/schemas/PageNgTriggerEventHistoryResponse.d.ts +31 -0
- package/dist/pipeline-swagger-service/src/services/schemas/PageNgTriggerEventHistoryResponse.js +1 -0
- package/dist/pipeline-swagger-service/src/services/schemas/PipelineExecutionInterrupt.d.ts +5 -0
- package/dist/pipeline-swagger-service/src/services/schemas/PipelineExecutionInterrupt.js +4 -0
- package/dist/pipeline-swagger-service/src/services/schemas/ResponseNgTriggerDetailsResponse.d.ts +9 -0
- package/dist/pipeline-swagger-service/src/services/schemas/ResponseNgTriggerDetailsResponse.js +1 -0
- package/dist/pipeline-swagger-service/src/services/schemas/ResponsePageNgTriggerEventHistoryResponse.d.ts +9 -0
- package/dist/pipeline-swagger-service/src/services/schemas/ResponsePageNgTriggerEventHistoryResponse.js +1 -0
- package/dist/pipeline-swagger-service/src/services/schemas/ResponsePipelineExecutionInterrupt.d.ts +9 -0
- package/dist/pipeline-swagger-service/src/services/schemas/ResponsePipelineExecutionInterrupt.js +1 -0
- package/dist/pipeline-swagger-service/src/services/schemas/TargetExecutionSummary.d.ts +15 -0
- package/dist/pipeline-swagger-service/src/services/schemas/TargetExecutionSummary.js +4 -0
- package/dist/pipeline-swagger-service/src/services/schemas/TriggerEventStatus.d.ts +4 -0
- package/dist/pipeline-swagger-service/src/services/schemas/TriggerEventStatus.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponseBoolean } from '../schemas/ResponseBoolean';
|
|
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 CanRetryExecutionQueryPathParams {
|
|
8
|
+
planExecutionId: string;
|
|
9
|
+
}
|
|
10
|
+
export interface CanRetryExecutionQueryQueryParams {
|
|
11
|
+
accountIdentifier: string;
|
|
12
|
+
orgIdentifier: string;
|
|
13
|
+
projectIdentifier: string;
|
|
14
|
+
}
|
|
15
|
+
export type CanRetryExecutionOkResponse = ResponseWithPagination<ResponseBoolean>;
|
|
16
|
+
export type CanRetryExecutionErrorResponse = Failure | Error;
|
|
17
|
+
export interface CanRetryExecutionProps extends CanRetryExecutionQueryPathParams, Omit<FetcherOptions<CanRetryExecutionQueryQueryParams, unknown>, 'url'> {
|
|
18
|
+
queryParams: CanRetryExecutionQueryQueryParams;
|
|
19
|
+
}
|
|
20
|
+
export declare function canRetryExecution(props: CanRetryExecutionProps): Promise<CanRetryExecutionOkResponse>;
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
export declare function useCanRetryExecutionQuery(props: CanRetryExecutionProps, options?: Omit<UseQueryOptions<CanRetryExecutionOkResponse, CanRetryExecutionErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<CanRetryExecutionOkResponse, CanRetryExecutionErrorResponse>;
|
|
@@ -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 canRetryExecution(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/pipelines/execution/canRetry/${props.planExecutionId}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useCanRetryExecutionQuery(props, options) {
|
|
13
|
+
return useQuery(['canRetryExecution', props.planExecutionId, props.queryParams], ({ signal }) => canRetryExecution(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponseBoolean } from '../schemas/ResponseBoolean';
|
|
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 DeleteTriggerMutationPathParams {
|
|
8
|
+
triggerIdentifier: string;
|
|
9
|
+
}
|
|
10
|
+
export interface DeleteTriggerMutationQueryParams {
|
|
11
|
+
accountIdentifier: string;
|
|
12
|
+
orgIdentifier: string;
|
|
13
|
+
projectIdentifier: string;
|
|
14
|
+
targetIdentifier: string;
|
|
15
|
+
}
|
|
16
|
+
export interface DeleteTriggerMutationHeaderParams {
|
|
17
|
+
'If-Match'?: string;
|
|
18
|
+
}
|
|
19
|
+
export type DeleteTriggerOkResponse = ResponseWithPagination<ResponseBoolean>;
|
|
20
|
+
export type DeleteTriggerErrorResponse = Failure | Error;
|
|
21
|
+
export interface DeleteTriggerProps extends DeleteTriggerMutationPathParams, Omit<FetcherOptions<DeleteTriggerMutationQueryParams, unknown, DeleteTriggerMutationHeaderParams>, 'url'> {
|
|
22
|
+
queryParams: DeleteTriggerMutationQueryParams;
|
|
23
|
+
}
|
|
24
|
+
export declare function deleteTrigger(props: DeleteTriggerProps): Promise<DeleteTriggerOkResponse>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export declare function useDeleteTriggerMutation(options?: Omit<UseMutationOptions<DeleteTriggerOkResponse, DeleteTriggerErrorResponse, DeleteTriggerProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteTriggerOkResponse, DeleteTriggerErrorResponse, DeleteTriggerProps, 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 deleteTrigger(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/triggers/${props.triggerIdentifier}`, method: 'DELETE' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useDeleteTriggerMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => deleteTrigger(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponseNgTriggerDetailsResponse } from '../schemas/ResponseNgTriggerDetailsResponse';
|
|
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 GetTriggerDetailsQueryPathParams {
|
|
8
|
+
triggerIdentifier: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GetTriggerDetailsQueryQueryParams {
|
|
11
|
+
accountIdentifier: string;
|
|
12
|
+
orgIdentifier: string;
|
|
13
|
+
projectIdentifier: string;
|
|
14
|
+
targetIdentifier: string;
|
|
15
|
+
}
|
|
16
|
+
export type GetTriggerDetailsOkResponse = ResponseWithPagination<ResponseNgTriggerDetailsResponse>;
|
|
17
|
+
export type GetTriggerDetailsErrorResponse = Failure | Error;
|
|
18
|
+
export interface GetTriggerDetailsProps extends GetTriggerDetailsQueryPathParams, Omit<FetcherOptions<GetTriggerDetailsQueryQueryParams, unknown>, 'url'> {
|
|
19
|
+
queryParams: GetTriggerDetailsQueryQueryParams;
|
|
20
|
+
}
|
|
21
|
+
export declare function getTriggerDetails(props: GetTriggerDetailsProps): Promise<GetTriggerDetailsOkResponse>;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
export declare function useGetTriggerDetailsQuery(props: GetTriggerDetailsProps, options?: Omit<UseQueryOptions<GetTriggerDetailsOkResponse, GetTriggerDetailsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetTriggerDetailsOkResponse, GetTriggerDetailsErrorResponse>;
|
|
@@ -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 getTriggerDetails(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/triggers/${props.triggerIdentifier}/details`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useGetTriggerDetailsQuery(props, options) {
|
|
13
|
+
return useQuery(['getTriggerDetails', props.triggerIdentifier, props.queryParams], ({ signal }) => getTriggerDetails(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponseNgTriggerResponse } from '../schemas/ResponseNgTriggerResponse';
|
|
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 GetTriggerQueryPathParams {
|
|
8
|
+
triggerIdentifier: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GetTriggerQueryQueryParams {
|
|
11
|
+
accountIdentifier: string;
|
|
12
|
+
orgIdentifier: string;
|
|
13
|
+
projectIdentifier: string;
|
|
14
|
+
targetIdentifier: string;
|
|
15
|
+
}
|
|
16
|
+
export type GetTriggerOkResponse = ResponseWithPagination<ResponseNgTriggerResponse>;
|
|
17
|
+
export type GetTriggerErrorResponse = Failure | Error;
|
|
18
|
+
export interface GetTriggerProps extends GetTriggerQueryPathParams, Omit<FetcherOptions<GetTriggerQueryQueryParams, unknown>, 'url'> {
|
|
19
|
+
queryParams: GetTriggerQueryQueryParams;
|
|
20
|
+
}
|
|
21
|
+
export declare function getTrigger(props: GetTriggerProps): Promise<GetTriggerOkResponse>;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
export declare function useGetTriggerQuery(props: GetTriggerProps, options?: Omit<UseQueryOptions<GetTriggerOkResponse, GetTriggerErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetTriggerOkResponse, GetTriggerErrorResponse>;
|
|
@@ -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 getTrigger(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/triggers/${props.triggerIdentifier}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useGetTriggerQuery(props, options) {
|
|
13
|
+
return useQuery(['getTrigger', props.triggerIdentifier, props.queryParams], ({ signal }) => getTrigger(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -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 HandleStageInterruptMutationPathParams {
|
|
9
|
+
planExecutionId: string;
|
|
10
|
+
nodeExecutionId: string;
|
|
11
|
+
}
|
|
12
|
+
export interface HandleStageInterruptMutationQueryParams {
|
|
13
|
+
accountIdentifier: string;
|
|
14
|
+
orgIdentifier: string;
|
|
15
|
+
projectIdentifier: string;
|
|
16
|
+
interruptType: 'AbortAll' | 'UserMarkedFailure';
|
|
17
|
+
}
|
|
18
|
+
export type HandleStageInterruptOkResponse = ResponseWithPagination<ResponsePipelineExecutionInterrupt>;
|
|
19
|
+
export type HandleStageInterruptErrorResponse = Failure | AccessControlCheckError | Error;
|
|
20
|
+
export interface HandleStageInterruptProps extends HandleStageInterruptMutationPathParams, Omit<FetcherOptions<HandleStageInterruptMutationQueryParams, unknown>, 'url'> {
|
|
21
|
+
queryParams: HandleStageInterruptMutationQueryParams;
|
|
22
|
+
}
|
|
23
|
+
export declare function handleStageInterrupt(props: HandleStageInterruptProps): Promise<HandleStageInterruptOkResponse>;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export declare function useHandleStageInterruptMutation(options?: Omit<UseMutationOptions<HandleStageInterruptOkResponse, HandleStageInterruptErrorResponse, HandleStageInterruptProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<HandleStageInterruptOkResponse, HandleStageInterruptErrorResponse, HandleStageInterruptProps, 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 handleStageInterrupt(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/pipeline/execute/interrupt/${props.planExecutionId}/${props.nodeExecutionId}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useHandleStageInterruptMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => handleStageInterrupt(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponsePageNgTriggerEventHistoryResponse } from '../schemas/ResponsePageNgTriggerEventHistoryResponse';
|
|
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 TriggerEventHistoryQueryPathParams {
|
|
8
|
+
triggerIdentifier: string;
|
|
9
|
+
}
|
|
10
|
+
export interface TriggerEventHistoryQueryQueryParams {
|
|
11
|
+
accountIdentifier: string;
|
|
12
|
+
orgIdentifier: string;
|
|
13
|
+
projectIdentifier: string;
|
|
14
|
+
targetIdentifier: string;
|
|
15
|
+
searchTerm?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @format int32
|
|
18
|
+
* @default 0
|
|
19
|
+
*/
|
|
20
|
+
page?: number;
|
|
21
|
+
/**
|
|
22
|
+
* @format int32
|
|
23
|
+
* @default 10
|
|
24
|
+
*/
|
|
25
|
+
size?: number;
|
|
26
|
+
sort?: string[];
|
|
27
|
+
}
|
|
28
|
+
export type TriggerEventHistoryOkResponse = ResponseWithPagination<ResponsePageNgTriggerEventHistoryResponse>;
|
|
29
|
+
export type TriggerEventHistoryErrorResponse = Failure | Error;
|
|
30
|
+
export interface TriggerEventHistoryProps extends TriggerEventHistoryQueryPathParams, Omit<FetcherOptions<TriggerEventHistoryQueryQueryParams, unknown>, 'url'> {
|
|
31
|
+
queryParams: TriggerEventHistoryQueryQueryParams;
|
|
32
|
+
}
|
|
33
|
+
export declare function triggerEventHistory(props: TriggerEventHistoryProps): Promise<TriggerEventHistoryOkResponse>;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @deprecated
|
|
37
|
+
*/
|
|
38
|
+
export declare function useTriggerEventHistoryQuery(props: TriggerEventHistoryProps, options?: Omit<UseQueryOptions<TriggerEventHistoryOkResponse, TriggerEventHistoryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<TriggerEventHistoryOkResponse, TriggerEventHistoryErrorResponse>;
|
|
@@ -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 { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function triggerEventHistory(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/triggers/${props.triggerIdentifier}/eventHistory`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @deprecated
|
|
12
|
+
*/
|
|
13
|
+
export function useTriggerEventHistoryQuery(props, options) {
|
|
14
|
+
return useQuery(['triggerEventHistory', props.triggerIdentifier, props.queryParams], ({ signal }) => triggerEventHistory(Object.assign(Object.assign({}, props), { signal })), options);
|
|
15
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponseNgTriggerResponse } from '../schemas/ResponseNgTriggerResponse';
|
|
3
|
+
import type { Failure } from '../schemas/Failure';
|
|
4
|
+
import type { Error } from '../schemas/Error';
|
|
5
|
+
import type { UpdateTriggerBodyRequestBody } from '../requestBodies/UpdateTriggerBodyRequestBody';
|
|
6
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
7
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
|
+
export interface UpdateTriggerMutationPathParams {
|
|
9
|
+
triggerIdentifier: string;
|
|
10
|
+
}
|
|
11
|
+
export interface UpdateTriggerMutationQueryParams {
|
|
12
|
+
accountIdentifier: string;
|
|
13
|
+
orgIdentifier: string;
|
|
14
|
+
projectIdentifier: string;
|
|
15
|
+
targetIdentifier: string;
|
|
16
|
+
ignoreError?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface UpdateTriggerMutationHeaderParams {
|
|
19
|
+
'If-Match'?: string;
|
|
20
|
+
}
|
|
21
|
+
export type UpdateTriggerRequestBody = UpdateTriggerBodyRequestBody;
|
|
22
|
+
export type UpdateTriggerOkResponse = ResponseWithPagination<ResponseNgTriggerResponse>;
|
|
23
|
+
export type UpdateTriggerErrorResponse = Failure | Error;
|
|
24
|
+
export interface UpdateTriggerProps extends UpdateTriggerMutationPathParams, Omit<FetcherOptions<UpdateTriggerMutationQueryParams, UpdateTriggerRequestBody, UpdateTriggerMutationHeaderParams>, 'url'> {
|
|
25
|
+
queryParams: UpdateTriggerMutationQueryParams;
|
|
26
|
+
body: UpdateTriggerRequestBody;
|
|
27
|
+
}
|
|
28
|
+
export declare function updateTrigger(props: UpdateTriggerProps): Promise<UpdateTriggerOkResponse>;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
export declare function useUpdateTriggerMutation(options?: Omit<UseMutationOptions<UpdateTriggerOkResponse, UpdateTriggerErrorResponse, UpdateTriggerProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateTriggerOkResponse, UpdateTriggerErrorResponse, UpdateTriggerProps, 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 updateTrigger(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/triggers/${props.triggerIdentifier}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateTriggerMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => updateTrigger(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponseBoolean } from '../schemas/ResponseBoolean';
|
|
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 UpdateTriggerStatusMutationPathParams {
|
|
8
|
+
triggerIdentifier: string;
|
|
9
|
+
}
|
|
10
|
+
export interface UpdateTriggerStatusMutationQueryParams {
|
|
11
|
+
accountIdentifier: string;
|
|
12
|
+
orgIdentifier: string;
|
|
13
|
+
projectIdentifier: string;
|
|
14
|
+
targetIdentifier: string;
|
|
15
|
+
status: boolean;
|
|
16
|
+
}
|
|
17
|
+
export type UpdateTriggerStatusOkResponse = ResponseWithPagination<ResponseBoolean>;
|
|
18
|
+
export type UpdateTriggerStatusErrorResponse = Failure | Error;
|
|
19
|
+
export interface UpdateTriggerStatusProps extends UpdateTriggerStatusMutationPathParams, Omit<FetcherOptions<UpdateTriggerStatusMutationQueryParams, unknown>, 'url'> {
|
|
20
|
+
queryParams: UpdateTriggerStatusMutationQueryParams;
|
|
21
|
+
}
|
|
22
|
+
export declare function updateTriggerStatus(props: UpdateTriggerStatusProps): Promise<UpdateTriggerStatusOkResponse>;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export declare function useUpdateTriggerStatusMutation(options?: Omit<UseMutationOptions<UpdateTriggerStatusOkResponse, UpdateTriggerStatusErrorResponse, UpdateTriggerStatusProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateTriggerStatusOkResponse, UpdateTriggerStatusErrorResponse, UpdateTriggerStatusProps, 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 updateTriggerStatus(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/triggers/${props.triggerIdentifier}/status`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateTriggerStatusMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => updateTriggerStatus(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
export type { GetPathParamsType, ResponseWithPagination } from './helpers';
|
|
2
|
+
export type { CanRetryExecutionErrorResponse, CanRetryExecutionOkResponse, CanRetryExecutionProps, CanRetryExecutionQueryPathParams, CanRetryExecutionQueryQueryParams, } from './hooks/useCanRetryExecutionQuery';
|
|
3
|
+
export { canRetryExecution, useCanRetryExecutionQuery } from './hooks/useCanRetryExecutionQuery';
|
|
2
4
|
export type { CreateTriggerErrorResponse, CreateTriggerMutationQueryParams, CreateTriggerOkResponse, CreateTriggerProps, CreateTriggerRequestBody, } from './hooks/useCreateTriggerMutation';
|
|
3
5
|
export { createTrigger, useCreateTriggerMutation } from './hooks/useCreateTriggerMutation';
|
|
4
6
|
export type { DeleteFilterErrorResponse, DeleteFilterMutationPathParams, DeleteFilterMutationQueryParams, DeleteFilterOkResponse, DeleteFilterProps, } from './hooks/useDeleteFilterMutation';
|
|
5
7
|
export { deleteFilter, useDeleteFilterMutation } from './hooks/useDeleteFilterMutation';
|
|
8
|
+
export type { DeleteTriggerErrorResponse, DeleteTriggerMutationPathParams, DeleteTriggerMutationQueryParams, DeleteTriggerOkResponse, DeleteTriggerProps, } from './hooks/useDeleteTriggerMutation';
|
|
9
|
+
export { deleteTrigger, useDeleteTriggerMutation } from './hooks/useDeleteTriggerMutation';
|
|
6
10
|
export type { GetAnnotationFullContentErrorResponse, GetAnnotationFullContentOkResponse, GetAnnotationFullContentProps, GetAnnotationFullContentQueryPathParams, GetAnnotationFullContentQueryQueryParams, } from './hooks/useGetAnnotationFullContentQuery';
|
|
7
11
|
export { getAnnotationFullContent, useGetAnnotationFullContentQuery, } from './hooks/useGetAnnotationFullContentQuery';
|
|
8
12
|
export type { GetBatchInputSetsMetadataErrorResponse, GetBatchInputSetsMetadataMutationQueryParams, GetBatchInputSetsMetadataOkResponse, GetBatchInputSetsMetadataProps, GetBatchInputSetsMetadataRequestBody, } from './hooks/useGetBatchInputSetsMetadataMutation';
|
|
@@ -35,16 +39,28 @@ export type { GetPolicyEvaluationErrorResponse, GetPolicyEvaluationOkResponse, G
|
|
|
35
39
|
export { getPolicyEvaluation, useGetPolicyEvaluationQuery, } from './hooks/useGetPolicyEvaluationQuery';
|
|
36
40
|
export type { GetTriggerCatalogErrorResponse, GetTriggerCatalogOkResponse, GetTriggerCatalogProps, GetTriggerCatalogQueryQueryParams, } from './hooks/useGetTriggerCatalogQuery';
|
|
37
41
|
export { getTriggerCatalog, useGetTriggerCatalogQuery } from './hooks/useGetTriggerCatalogQuery';
|
|
42
|
+
export type { GetTriggerDetailsErrorResponse, GetTriggerDetailsOkResponse, GetTriggerDetailsProps, GetTriggerDetailsQueryPathParams, GetTriggerDetailsQueryQueryParams, } from './hooks/useGetTriggerDetailsQuery';
|
|
43
|
+
export { getTriggerDetails, useGetTriggerDetailsQuery } from './hooks/useGetTriggerDetailsQuery';
|
|
38
44
|
export type { GetTriggerListForTargetErrorResponse, GetTriggerListForTargetOkResponse, GetTriggerListForTargetProps, GetTriggerListForTargetQueryQueryParams, } from './hooks/useGetTriggerListForTargetQuery';
|
|
39
45
|
export { getTriggerListForTarget, useGetTriggerListForTargetQuery, } from './hooks/useGetTriggerListForTargetQuery';
|
|
46
|
+
export type { GetTriggerErrorResponse, GetTriggerOkResponse, GetTriggerProps, GetTriggerQueryPathParams, GetTriggerQueryQueryParams, } from './hooks/useGetTriggerQuery';
|
|
47
|
+
export { getTrigger, useGetTriggerQuery } from './hooks/useGetTriggerQuery';
|
|
48
|
+
export type { HandleStageInterruptErrorResponse, HandleStageInterruptMutationPathParams, HandleStageInterruptMutationQueryParams, HandleStageInterruptOkResponse, HandleStageInterruptProps, } from './hooks/useHandleStageInterruptMutation';
|
|
49
|
+
export { handleStageInterrupt, useHandleStageInterruptMutation, } from './hooks/useHandleStageInterruptMutation';
|
|
40
50
|
export type { PostFilterErrorResponse, PostFilterMutationQueryParams, PostFilterOkResponse, PostFilterProps, PostFilterRequestBody, } from './hooks/usePostFilterMutation';
|
|
41
51
|
export { postFilter, usePostFilterMutation } from './hooks/usePostFilterMutation';
|
|
42
52
|
export type { RetryHistoryErrorResponse, RetryHistoryOkResponse, RetryHistoryProps, RetryHistoryQueryPathParams, RetryHistoryQueryQueryParams, } from './hooks/useRetryHistoryQuery';
|
|
43
53
|
export { retryHistory, useRetryHistoryQuery } from './hooks/useRetryHistoryQuery';
|
|
54
|
+
export type { TriggerEventHistoryErrorResponse, TriggerEventHistoryOkResponse, TriggerEventHistoryProps, TriggerEventHistoryQueryPathParams, TriggerEventHistoryQueryQueryParams, } from './hooks/useTriggerEventHistoryQuery';
|
|
55
|
+
export { triggerEventHistory, useTriggerEventHistoryQuery, } from './hooks/useTriggerEventHistoryQuery';
|
|
44
56
|
export type { UpdateFilterErrorResponse, UpdateFilterMutationQueryParams, UpdateFilterOkResponse, UpdateFilterProps, UpdateFilterRequestBody, } from './hooks/useUpdateFilterMutation';
|
|
45
57
|
export { updateFilter, useUpdateFilterMutation } from './hooks/useUpdateFilterMutation';
|
|
46
58
|
export type { UpdateNotesForExecutionErrorResponse, UpdateNotesForExecutionMutationPathParams, UpdateNotesForExecutionMutationQueryParams, UpdateNotesForExecutionOkResponse, UpdateNotesForExecutionProps, } from './hooks/useUpdateNotesForExecutionMutation';
|
|
47
59
|
export { updateNotesForExecution, useUpdateNotesForExecutionMutation, } from './hooks/useUpdateNotesForExecutionMutation';
|
|
60
|
+
export type { UpdateTriggerErrorResponse, UpdateTriggerMutationPathParams, UpdateTriggerMutationQueryParams, UpdateTriggerOkResponse, UpdateTriggerProps, UpdateTriggerRequestBody, } from './hooks/useUpdateTriggerMutation';
|
|
61
|
+
export { updateTrigger, useUpdateTriggerMutation } from './hooks/useUpdateTriggerMutation';
|
|
62
|
+
export type { UpdateTriggerStatusErrorResponse, UpdateTriggerStatusMutationPathParams, UpdateTriggerStatusMutationQueryParams, UpdateTriggerStatusOkResponse, UpdateTriggerStatusProps, } from './hooks/useUpdateTriggerStatusMutation';
|
|
63
|
+
export { updateTriggerStatus, useUpdateTriggerStatusMutation, } from './hooks/useUpdateTriggerStatusMutation';
|
|
48
64
|
export type { FilterDtoRequestBody } from './requestBodies/FilterDtoRequestBody';
|
|
49
65
|
export type { FilterPropertiesRequestBody } from './requestBodies/FilterPropertiesRequestBody';
|
|
50
66
|
export type { UpdateTriggerBodyRequestBody } from './requestBodies/UpdateTriggerBodyRequestBody';
|
|
@@ -87,12 +103,15 @@ export type { ManualIssuer } from './schemas/ManualIssuer';
|
|
|
87
103
|
export type { NgLabel } from './schemas/NgLabel';
|
|
88
104
|
export type { NgTag } from './schemas/NgTag';
|
|
89
105
|
export type { NgTriggerDetailsResponse } from './schemas/NgTriggerDetailsResponse';
|
|
106
|
+
export type { NgTriggerEventHistoryResponse } from './schemas/NgTriggerEventHistoryResponse';
|
|
107
|
+
export type { NgTriggerEventInfo } from './schemas/NgTriggerEventInfo';
|
|
90
108
|
export type { NgTriggerResponse } from './schemas/NgTriggerResponse';
|
|
91
109
|
export type { NodeRunInfo } from './schemas/NodeRunInfo';
|
|
92
110
|
export type { PageFilterDto } from './schemas/PageFilterDto';
|
|
93
111
|
export type { PageGovernanceMetadata } from './schemas/PageGovernanceMetadata';
|
|
94
112
|
export type { PageInputSetListResponse } from './schemas/PageInputSetListResponse';
|
|
95
113
|
export type { PageNgTriggerDetailsResponse } from './schemas/PageNgTriggerDetailsResponse';
|
|
114
|
+
export type { PageNgTriggerEventHistoryResponse } from './schemas/PageNgTriggerEventHistoryResponse';
|
|
96
115
|
export type { PagePipelineExecutionSummary } from './schemas/PagePipelineExecutionSummary';
|
|
97
116
|
export type { PagePmsPipelineSummaryResponse } from './schemas/PagePmsPipelineSummaryResponse';
|
|
98
117
|
export type { Pageable } from './schemas/Pageable';
|
|
@@ -101,6 +120,7 @@ export type { PermissionCheck } from './schemas/PermissionCheck';
|
|
|
101
120
|
export type { PipelineAnnotation } from './schemas/PipelineAnnotation';
|
|
102
121
|
export type { PipelineAnnotationsResponseDto } from './schemas/PipelineAnnotationsResponseDto';
|
|
103
122
|
export type { PipelineExecutionDetail } from './schemas/PipelineExecutionDetail';
|
|
123
|
+
export type { PipelineExecutionInterrupt } from './schemas/PipelineExecutionInterrupt';
|
|
104
124
|
export type { PipelineExecutionNotes } from './schemas/PipelineExecutionNotes';
|
|
105
125
|
export type { PipelineExecutionSummary } from './schemas/PipelineExecutionSummary';
|
|
106
126
|
export type { PipelineFilterProperties } from './schemas/PipelineFilterProperties';
|
|
@@ -117,15 +137,18 @@ export type { ResponseExecutionDataResponse } from './schemas/ResponseExecutionD
|
|
|
117
137
|
export type { ResponseFilterDto } from './schemas/ResponseFilterDto';
|
|
118
138
|
export type { ResponseMapStringMapStringListString } from './schemas/ResponseMapStringMapStringListString';
|
|
119
139
|
export type { ResponseMessage } from './schemas/ResponseMessage';
|
|
140
|
+
export type { ResponseNgTriggerDetailsResponse } from './schemas/ResponseNgTriggerDetailsResponse';
|
|
120
141
|
export type { ResponseNgTriggerResponse } from './schemas/ResponseNgTriggerResponse';
|
|
121
142
|
export type { ResponsePageFilterDto } from './schemas/ResponsePageFilterDto';
|
|
122
143
|
export type { ResponsePageGovernanceMetadata } from './schemas/ResponsePageGovernanceMetadata';
|
|
123
144
|
export type { ResponsePageInputSetListResponse } from './schemas/ResponsePageInputSetListResponse';
|
|
124
145
|
export type { ResponsePageNgTriggerDetailsResponse } from './schemas/ResponsePageNgTriggerDetailsResponse';
|
|
146
|
+
export type { ResponsePageNgTriggerEventHistoryResponse } from './schemas/ResponsePageNgTriggerEventHistoryResponse';
|
|
125
147
|
export type { ResponsePagePipelineExecutionSummary } from './schemas/ResponsePagePipelineExecutionSummary';
|
|
126
148
|
export type { ResponsePagePmsPipelineSummaryResponse } from './schemas/ResponsePagePmsPipelineSummaryResponse';
|
|
127
149
|
export type { ResponsePipelineAnnotationsResponseDto } from './schemas/ResponsePipelineAnnotationsResponseDto';
|
|
128
150
|
export type { ResponsePipelineExecutionDetail } from './schemas/ResponsePipelineExecutionDetail';
|
|
151
|
+
export type { ResponsePipelineExecutionInterrupt } from './schemas/ResponsePipelineExecutionInterrupt';
|
|
129
152
|
export type { ResponsePipelineExecutionNotes } from './schemas/ResponsePipelineExecutionNotes';
|
|
130
153
|
export type { ResponsePmsPipelineListBranchesResponse } from './schemas/ResponsePmsPipelineListBranchesResponse';
|
|
131
154
|
export type { ResponsePmsPipelineListRepoResponse } from './schemas/ResponsePmsPipelineListRepoResponse';
|
|
@@ -142,11 +165,13 @@ export type { Sort } from './schemas/Sort';
|
|
|
142
165
|
export type { StackTraceElement } from './schemas/StackTraceElement';
|
|
143
166
|
export type { StrategyMetadata } from './schemas/StrategyMetadata';
|
|
144
167
|
export type { SystemIssuer } from './schemas/SystemIssuer';
|
|
168
|
+
export type { TargetExecutionSummary } from './schemas/TargetExecutionSummary';
|
|
145
169
|
export type { TemplateReferenceSummary } from './schemas/TemplateReferenceSummary';
|
|
146
170
|
export type { Throwable } from './schemas/Throwable';
|
|
147
171
|
export type { TimeoutIssuer } from './schemas/TimeoutIssuer';
|
|
148
172
|
export type { TriggerCatalogItem } from './schemas/TriggerCatalogItem';
|
|
149
173
|
export type { TriggerCatalogResponse } from './schemas/TriggerCatalogResponse';
|
|
174
|
+
export type { TriggerEventStatus } from './schemas/TriggerEventStatus';
|
|
150
175
|
export type { TriggerIssuer } from './schemas/TriggerIssuer';
|
|
151
176
|
export type { TriggerStatus } from './schemas/TriggerStatus';
|
|
152
177
|
export type { UnitProgress } from './schemas/UnitProgress';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
export { canRetryExecution, useCanRetryExecutionQuery } from './hooks/useCanRetryExecutionQuery';
|
|
1
2
|
export { createTrigger, useCreateTriggerMutation } from './hooks/useCreateTriggerMutation';
|
|
2
3
|
export { deleteFilter, useDeleteFilterMutation } from './hooks/useDeleteFilterMutation';
|
|
4
|
+
export { deleteTrigger, useDeleteTriggerMutation } from './hooks/useDeleteTriggerMutation';
|
|
3
5
|
export { getAnnotationFullContent, useGetAnnotationFullContentQuery, } from './hooks/useGetAnnotationFullContentQuery';
|
|
4
6
|
export { getBatchInputSetsMetadata, useGetBatchInputSetsMetadataMutation, } from './hooks/useGetBatchInputSetsMetadataMutation';
|
|
5
7
|
export { getExecutionBranchesList, useGetExecutionBranchesListQuery, } from './hooks/useGetExecutionBranchesListQuery';
|
|
@@ -16,8 +18,14 @@ export { getPipelineList, useGetPipelineListQuery } from './hooks/useGetPipeline
|
|
|
16
18
|
export { getPipelineSummary, useGetPipelineSummaryQuery } from './hooks/useGetPipelineSummaryQuery';
|
|
17
19
|
export { getPolicyEvaluation, useGetPolicyEvaluationQuery, } from './hooks/useGetPolicyEvaluationQuery';
|
|
18
20
|
export { getTriggerCatalog, useGetTriggerCatalogQuery } from './hooks/useGetTriggerCatalogQuery';
|
|
21
|
+
export { getTriggerDetails, useGetTriggerDetailsQuery } from './hooks/useGetTriggerDetailsQuery';
|
|
19
22
|
export { getTriggerListForTarget, useGetTriggerListForTargetQuery, } from './hooks/useGetTriggerListForTargetQuery';
|
|
23
|
+
export { getTrigger, useGetTriggerQuery } from './hooks/useGetTriggerQuery';
|
|
24
|
+
export { handleStageInterrupt, useHandleStageInterruptMutation, } from './hooks/useHandleStageInterruptMutation';
|
|
20
25
|
export { postFilter, usePostFilterMutation } from './hooks/usePostFilterMutation';
|
|
21
26
|
export { retryHistory, useRetryHistoryQuery } from './hooks/useRetryHistoryQuery';
|
|
27
|
+
export { triggerEventHistory, useTriggerEventHistoryQuery, } from './hooks/useTriggerEventHistoryQuery';
|
|
22
28
|
export { updateFilter, useUpdateFilterMutation } from './hooks/useUpdateFilterMutation';
|
|
23
29
|
export { updateNotesForExecution, useUpdateNotesForExecutionMutation, } from './hooks/useUpdateNotesForExecutionMutation';
|
|
30
|
+
export { updateTrigger, useUpdateTriggerMutation } from './hooks/useUpdateTriggerMutation';
|
|
31
|
+
export { updateTriggerStatus, useUpdateTriggerStatusMutation, } from './hooks/useUpdateTriggerStatusMutation';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { NgTriggerEventInfo } from '../schemas/NgTriggerEventInfo';
|
|
2
|
+
import type { TargetExecutionSummary } from '../schemas/TargetExecutionSummary';
|
|
3
|
+
import type { TriggerEventStatus } from '../schemas/TriggerEventStatus';
|
|
4
|
+
export interface NgTriggerEventHistoryResponse {
|
|
5
|
+
accountId?: string;
|
|
6
|
+
/**
|
|
7
|
+
* @format int64
|
|
8
|
+
*/
|
|
9
|
+
createdAt?: number;
|
|
10
|
+
eventCorrelationId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @format int64
|
|
13
|
+
*/
|
|
14
|
+
eventCreatedAt?: number;
|
|
15
|
+
exceptionOccurred?: boolean;
|
|
16
|
+
finalStatus?: 'ALL_MAPPED_TRIGGER_FAILED_VALIDATION_FOR_POLLING_EVENT' | 'EXCEPTION_WHILE_PROCESSING' | 'FAILED_TO_FETCH_PR_DETAILS' | 'HARNESS_ARTIFACT_REGISTRY_WEBHOOK_NOT_EXECUTED' | 'INVALID_HARNESS_ARTIFACT_REGISTRY_TRIGGER_ACTION' | 'INVALID_PAYLOAD' | 'INVALID_RUNTIME_INPUT_YAML' | 'NEW_ARTIFACT_EVENT_PROCESSED' | 'NEW_MANIFEST_EVENT_PROCESSED' | 'NO_ENABLED_CUSTOM_TRIGGER_FOUND' | 'NO_ENABLED_CUSTOM_TRIGGER_FOUND_FOR_ACCOUNT' | 'NO_ENABLED_TRIGGER_FOR_ACCOUNT' | 'NO_ENABLED_TRIGGER_FOR_ACCOUNT_SOURCE_REPO' | 'NO_ENABLED_TRIGGER_FOR_PROJECT' | 'NO_ENABLED_TRIGGER_FOR_SOURCEREPO_TYPE' | 'NO_MATCHING_TRIGGER_FOR_EVENT_ACTION' | 'NO_MATCHING_TRIGGER_FOR_FILEPATH_CONDITIONS' | 'NO_MATCHING_TRIGGER_FOR_FOR_EVENT_CONDITION' | 'NO_MATCHING_TRIGGER_FOR_FOR_EVENT_SIGNATURES' | 'NO_MATCHING_TRIGGER_FOR_HEADER_CONDITIONS' | 'NO_MATCHING_TRIGGER_FOR_JEXL_CONDITIONS' | 'NO_MATCHING_TRIGGER_FOR_METADATA_CONDITIONS' | 'NO_MATCHING_TRIGGER_FOR_PAYLOAD_CONDITIONS' | 'NO_MATCHING_TRIGGER_FOR_REPO' | 'NO_TRIGGERS_FOUND_FOR_HARNESS_ARTIFACT_REGISTRY_WEBHOOK' | 'POLLING_EVENT_WITH_NO_VERSIONS' | 'QUEUED' | 'SCM_SERVICE_CONNECTION_FAILED' | 'SKIPPED' | 'TARGET_DID_NOT_EXECUTE' | 'TARGET_EXECUTION_REQUESTED' | 'TRIGGER_AUTHENTICATION_FAILED' | 'TRIGGER_CONFIRMATION_FAILED' | 'TRIGGER_CONFIRMATION_SUCCESSFUL' | 'TRIGGER_DID_NOT_MATCH_ARTIFACT_JEXL_CONDITION' | 'TRIGGER_DID_NOT_MATCH_EVENT_CONDITION' | 'TRIGGER_DID_NOT_MATCH_METADATA_CONDITION' | 'VALIDATION_FAILED_FOR_TRIGGER';
|
|
17
|
+
headers?: {
|
|
18
|
+
[key: string]: string;
|
|
19
|
+
};
|
|
20
|
+
message?: string;
|
|
21
|
+
ngTriggerEventInfo?: NgTriggerEventInfo;
|
|
22
|
+
orgIdentifier?: string;
|
|
23
|
+
payload?: string;
|
|
24
|
+
projectIdentifier?: string;
|
|
25
|
+
targetExecutionSummary?: TargetExecutionSummary;
|
|
26
|
+
targetIdentifier?: string;
|
|
27
|
+
triggerEventStatus?: TriggerEventStatus;
|
|
28
|
+
triggerIdentifier?: string;
|
|
29
|
+
type?: 'Artifact' | 'Manifest' | 'MultiRegionArtifact' | 'Scheduled' | 'Webhook';
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/pipeline-swagger-service/src/services/schemas/PageNgTriggerEventHistoryResponse.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { NgTriggerEventHistoryResponse } from '../schemas/NgTriggerEventHistoryResponse';
|
|
2
|
+
import type { Pageable } from '../schemas/Pageable';
|
|
3
|
+
import type { Sort } from '../schemas/Sort';
|
|
4
|
+
export interface PageNgTriggerEventHistoryResponse {
|
|
5
|
+
content?: NgTriggerEventHistoryResponse[];
|
|
6
|
+
empty?: boolean;
|
|
7
|
+
first?: boolean;
|
|
8
|
+
last?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* @format int32
|
|
11
|
+
*/
|
|
12
|
+
number?: number;
|
|
13
|
+
/**
|
|
14
|
+
* @format int32
|
|
15
|
+
*/
|
|
16
|
+
numberOfElements?: number;
|
|
17
|
+
pageable?: Pageable;
|
|
18
|
+
/**
|
|
19
|
+
* @format int32
|
|
20
|
+
*/
|
|
21
|
+
size?: number;
|
|
22
|
+
sort?: Sort;
|
|
23
|
+
/**
|
|
24
|
+
* @format int64
|
|
25
|
+
*/
|
|
26
|
+
totalElements?: number;
|
|
27
|
+
/**
|
|
28
|
+
* @format int32
|
|
29
|
+
*/
|
|
30
|
+
totalPages?: number;
|
|
31
|
+
}
|
package/dist/pipeline-swagger-service/src/services/schemas/PageNgTriggerEventHistoryResponse.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export interface PipelineExecutionInterrupt {
|
|
2
|
+
id?: string;
|
|
3
|
+
planExecutionId?: string;
|
|
4
|
+
type?: 'Abort' | 'AbortAll' | 'ExpireAll' | 'Ignore' | 'MarkAsFailure' | 'MarkAsSuccess' | 'Pause' | 'PipelineRollback' | 'Resume' | 'Retry' | 'StageRollback' | 'StepGroupRollback' | 'UserMarkedFailure';
|
|
5
|
+
}
|
package/dist/pipeline-swagger-service/src/services/schemas/ResponseNgTriggerDetailsResponse.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { NgTriggerDetailsResponse } from '../schemas/NgTriggerDetailsResponse';
|
|
2
|
+
export interface ResponseNgTriggerDetailsResponse {
|
|
3
|
+
correlationId?: string;
|
|
4
|
+
data?: NgTriggerDetailsResponse;
|
|
5
|
+
metaData?: {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
};
|
|
8
|
+
status?: 'ERROR' | 'FAILURE' | 'SUCCESS';
|
|
9
|
+
}
|
package/dist/pipeline-swagger-service/src/services/schemas/ResponseNgTriggerDetailsResponse.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { PageNgTriggerEventHistoryResponse } from '../schemas/PageNgTriggerEventHistoryResponse';
|
|
2
|
+
export interface ResponsePageNgTriggerEventHistoryResponse {
|
|
3
|
+
correlationId?: string;
|
|
4
|
+
data?: PageNgTriggerEventHistoryResponse;
|
|
5
|
+
metaData?: {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
};
|
|
8
|
+
status?: 'ERROR' | 'FAILURE' | 'SUCCESS';
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/pipeline-swagger-service/src/services/schemas/ResponsePipelineExecutionInterrupt.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { PipelineExecutionInterrupt } from '../schemas/PipelineExecutionInterrupt';
|
|
2
|
+
export interface ResponsePipelineExecutionInterrupt {
|
|
3
|
+
correlationId?: string;
|
|
4
|
+
data?: PipelineExecutionInterrupt;
|
|
5
|
+
metaData?: {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
};
|
|
8
|
+
status?: 'ERROR' | 'FAILURE' | 'SUCCESS';
|
|
9
|
+
}
|
package/dist/pipeline-swagger-service/src/services/schemas/ResponsePipelineExecutionInterrupt.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface TargetExecutionSummary {
|
|
2
|
+
executionStatus?: string;
|
|
3
|
+
planExecutionId?: string;
|
|
4
|
+
/**
|
|
5
|
+
* @format int32
|
|
6
|
+
*/
|
|
7
|
+
runSequence?: number;
|
|
8
|
+
runtimeInput?: string;
|
|
9
|
+
/**
|
|
10
|
+
* @format int64
|
|
11
|
+
*/
|
|
12
|
+
startTs?: number;
|
|
13
|
+
targetId?: string;
|
|
14
|
+
triggerId?: string;
|
|
15
|
+
}
|
package/package.json
CHANGED