@harnessio/react-pipeline-swagger-service-client 1.6.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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/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 +19 -0
- package/dist/pipeline-swagger-service/src/services/index.js +6 -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/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/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,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,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
|
+
}
|
|
@@ -3,6 +3,8 @@ export type { CreateTriggerErrorResponse, CreateTriggerMutationQueryParams, Crea
|
|
|
3
3
|
export { createTrigger, useCreateTriggerMutation } from './hooks/useCreateTriggerMutation';
|
|
4
4
|
export type { DeleteFilterErrorResponse, DeleteFilterMutationPathParams, DeleteFilterMutationQueryParams, DeleteFilterOkResponse, DeleteFilterProps, } from './hooks/useDeleteFilterMutation';
|
|
5
5
|
export { deleteFilter, useDeleteFilterMutation } from './hooks/useDeleteFilterMutation';
|
|
6
|
+
export type { DeleteTriggerErrorResponse, DeleteTriggerMutationPathParams, DeleteTriggerMutationQueryParams, DeleteTriggerOkResponse, DeleteTriggerProps, } from './hooks/useDeleteTriggerMutation';
|
|
7
|
+
export { deleteTrigger, useDeleteTriggerMutation } from './hooks/useDeleteTriggerMutation';
|
|
6
8
|
export type { GetAnnotationFullContentErrorResponse, GetAnnotationFullContentOkResponse, GetAnnotationFullContentProps, GetAnnotationFullContentQueryPathParams, GetAnnotationFullContentQueryQueryParams, } from './hooks/useGetAnnotationFullContentQuery';
|
|
7
9
|
export { getAnnotationFullContent, useGetAnnotationFullContentQuery, } from './hooks/useGetAnnotationFullContentQuery';
|
|
8
10
|
export type { GetBatchInputSetsMetadataErrorResponse, GetBatchInputSetsMetadataMutationQueryParams, GetBatchInputSetsMetadataOkResponse, GetBatchInputSetsMetadataProps, GetBatchInputSetsMetadataRequestBody, } from './hooks/useGetBatchInputSetsMetadataMutation';
|
|
@@ -35,16 +37,26 @@ export type { GetPolicyEvaluationErrorResponse, GetPolicyEvaluationOkResponse, G
|
|
|
35
37
|
export { getPolicyEvaluation, useGetPolicyEvaluationQuery, } from './hooks/useGetPolicyEvaluationQuery';
|
|
36
38
|
export type { GetTriggerCatalogErrorResponse, GetTriggerCatalogOkResponse, GetTriggerCatalogProps, GetTriggerCatalogQueryQueryParams, } from './hooks/useGetTriggerCatalogQuery';
|
|
37
39
|
export { getTriggerCatalog, useGetTriggerCatalogQuery } from './hooks/useGetTriggerCatalogQuery';
|
|
40
|
+
export type { GetTriggerDetailsErrorResponse, GetTriggerDetailsOkResponse, GetTriggerDetailsProps, GetTriggerDetailsQueryPathParams, GetTriggerDetailsQueryQueryParams, } from './hooks/useGetTriggerDetailsQuery';
|
|
41
|
+
export { getTriggerDetails, useGetTriggerDetailsQuery } from './hooks/useGetTriggerDetailsQuery';
|
|
38
42
|
export type { GetTriggerListForTargetErrorResponse, GetTriggerListForTargetOkResponse, GetTriggerListForTargetProps, GetTriggerListForTargetQueryQueryParams, } from './hooks/useGetTriggerListForTargetQuery';
|
|
39
43
|
export { getTriggerListForTarget, useGetTriggerListForTargetQuery, } from './hooks/useGetTriggerListForTargetQuery';
|
|
44
|
+
export type { GetTriggerErrorResponse, GetTriggerOkResponse, GetTriggerProps, GetTriggerQueryPathParams, GetTriggerQueryQueryParams, } from './hooks/useGetTriggerQuery';
|
|
45
|
+
export { getTrigger, useGetTriggerQuery } from './hooks/useGetTriggerQuery';
|
|
40
46
|
export type { PostFilterErrorResponse, PostFilterMutationQueryParams, PostFilterOkResponse, PostFilterProps, PostFilterRequestBody, } from './hooks/usePostFilterMutation';
|
|
41
47
|
export { postFilter, usePostFilterMutation } from './hooks/usePostFilterMutation';
|
|
42
48
|
export type { RetryHistoryErrorResponse, RetryHistoryOkResponse, RetryHistoryProps, RetryHistoryQueryPathParams, RetryHistoryQueryQueryParams, } from './hooks/useRetryHistoryQuery';
|
|
43
49
|
export { retryHistory, useRetryHistoryQuery } from './hooks/useRetryHistoryQuery';
|
|
50
|
+
export type { TriggerEventHistoryErrorResponse, TriggerEventHistoryOkResponse, TriggerEventHistoryProps, TriggerEventHistoryQueryPathParams, TriggerEventHistoryQueryQueryParams, } from './hooks/useTriggerEventHistoryQuery';
|
|
51
|
+
export { triggerEventHistory, useTriggerEventHistoryQuery, } from './hooks/useTriggerEventHistoryQuery';
|
|
44
52
|
export type { UpdateFilterErrorResponse, UpdateFilterMutationQueryParams, UpdateFilterOkResponse, UpdateFilterProps, UpdateFilterRequestBody, } from './hooks/useUpdateFilterMutation';
|
|
45
53
|
export { updateFilter, useUpdateFilterMutation } from './hooks/useUpdateFilterMutation';
|
|
46
54
|
export type { UpdateNotesForExecutionErrorResponse, UpdateNotesForExecutionMutationPathParams, UpdateNotesForExecutionMutationQueryParams, UpdateNotesForExecutionOkResponse, UpdateNotesForExecutionProps, } from './hooks/useUpdateNotesForExecutionMutation';
|
|
47
55
|
export { updateNotesForExecution, useUpdateNotesForExecutionMutation, } from './hooks/useUpdateNotesForExecutionMutation';
|
|
56
|
+
export type { UpdateTriggerErrorResponse, UpdateTriggerMutationPathParams, UpdateTriggerMutationQueryParams, UpdateTriggerOkResponse, UpdateTriggerProps, UpdateTriggerRequestBody, } from './hooks/useUpdateTriggerMutation';
|
|
57
|
+
export { updateTrigger, useUpdateTriggerMutation } from './hooks/useUpdateTriggerMutation';
|
|
58
|
+
export type { UpdateTriggerStatusErrorResponse, UpdateTriggerStatusMutationPathParams, UpdateTriggerStatusMutationQueryParams, UpdateTriggerStatusOkResponse, UpdateTriggerStatusProps, } from './hooks/useUpdateTriggerStatusMutation';
|
|
59
|
+
export { updateTriggerStatus, useUpdateTriggerStatusMutation, } from './hooks/useUpdateTriggerStatusMutation';
|
|
48
60
|
export type { FilterDtoRequestBody } from './requestBodies/FilterDtoRequestBody';
|
|
49
61
|
export type { FilterPropertiesRequestBody } from './requestBodies/FilterPropertiesRequestBody';
|
|
50
62
|
export type { UpdateTriggerBodyRequestBody } from './requestBodies/UpdateTriggerBodyRequestBody';
|
|
@@ -87,12 +99,15 @@ export type { ManualIssuer } from './schemas/ManualIssuer';
|
|
|
87
99
|
export type { NgLabel } from './schemas/NgLabel';
|
|
88
100
|
export type { NgTag } from './schemas/NgTag';
|
|
89
101
|
export type { NgTriggerDetailsResponse } from './schemas/NgTriggerDetailsResponse';
|
|
102
|
+
export type { NgTriggerEventHistoryResponse } from './schemas/NgTriggerEventHistoryResponse';
|
|
103
|
+
export type { NgTriggerEventInfo } from './schemas/NgTriggerEventInfo';
|
|
90
104
|
export type { NgTriggerResponse } from './schemas/NgTriggerResponse';
|
|
91
105
|
export type { NodeRunInfo } from './schemas/NodeRunInfo';
|
|
92
106
|
export type { PageFilterDto } from './schemas/PageFilterDto';
|
|
93
107
|
export type { PageGovernanceMetadata } from './schemas/PageGovernanceMetadata';
|
|
94
108
|
export type { PageInputSetListResponse } from './schemas/PageInputSetListResponse';
|
|
95
109
|
export type { PageNgTriggerDetailsResponse } from './schemas/PageNgTriggerDetailsResponse';
|
|
110
|
+
export type { PageNgTriggerEventHistoryResponse } from './schemas/PageNgTriggerEventHistoryResponse';
|
|
96
111
|
export type { PagePipelineExecutionSummary } from './schemas/PagePipelineExecutionSummary';
|
|
97
112
|
export type { PagePmsPipelineSummaryResponse } from './schemas/PagePmsPipelineSummaryResponse';
|
|
98
113
|
export type { Pageable } from './schemas/Pageable';
|
|
@@ -117,11 +132,13 @@ export type { ResponseExecutionDataResponse } from './schemas/ResponseExecutionD
|
|
|
117
132
|
export type { ResponseFilterDto } from './schemas/ResponseFilterDto';
|
|
118
133
|
export type { ResponseMapStringMapStringListString } from './schemas/ResponseMapStringMapStringListString';
|
|
119
134
|
export type { ResponseMessage } from './schemas/ResponseMessage';
|
|
135
|
+
export type { ResponseNgTriggerDetailsResponse } from './schemas/ResponseNgTriggerDetailsResponse';
|
|
120
136
|
export type { ResponseNgTriggerResponse } from './schemas/ResponseNgTriggerResponse';
|
|
121
137
|
export type { ResponsePageFilterDto } from './schemas/ResponsePageFilterDto';
|
|
122
138
|
export type { ResponsePageGovernanceMetadata } from './schemas/ResponsePageGovernanceMetadata';
|
|
123
139
|
export type { ResponsePageInputSetListResponse } from './schemas/ResponsePageInputSetListResponse';
|
|
124
140
|
export type { ResponsePageNgTriggerDetailsResponse } from './schemas/ResponsePageNgTriggerDetailsResponse';
|
|
141
|
+
export type { ResponsePageNgTriggerEventHistoryResponse } from './schemas/ResponsePageNgTriggerEventHistoryResponse';
|
|
125
142
|
export type { ResponsePagePipelineExecutionSummary } from './schemas/ResponsePagePipelineExecutionSummary';
|
|
126
143
|
export type { ResponsePagePmsPipelineSummaryResponse } from './schemas/ResponsePagePmsPipelineSummaryResponse';
|
|
127
144
|
export type { ResponsePipelineAnnotationsResponseDto } from './schemas/ResponsePipelineAnnotationsResponseDto';
|
|
@@ -142,11 +159,13 @@ export type { Sort } from './schemas/Sort';
|
|
|
142
159
|
export type { StackTraceElement } from './schemas/StackTraceElement';
|
|
143
160
|
export type { StrategyMetadata } from './schemas/StrategyMetadata';
|
|
144
161
|
export type { SystemIssuer } from './schemas/SystemIssuer';
|
|
162
|
+
export type { TargetExecutionSummary } from './schemas/TargetExecutionSummary';
|
|
145
163
|
export type { TemplateReferenceSummary } from './schemas/TemplateReferenceSummary';
|
|
146
164
|
export type { Throwable } from './schemas/Throwable';
|
|
147
165
|
export type { TimeoutIssuer } from './schemas/TimeoutIssuer';
|
|
148
166
|
export type { TriggerCatalogItem } from './schemas/TriggerCatalogItem';
|
|
149
167
|
export type { TriggerCatalogResponse } from './schemas/TriggerCatalogResponse';
|
|
168
|
+
export type { TriggerEventStatus } from './schemas/TriggerEventStatus';
|
|
150
169
|
export type { TriggerIssuer } from './schemas/TriggerIssuer';
|
|
151
170
|
export type { TriggerStatus } from './schemas/TriggerStatus';
|
|
152
171
|
export type { UnitProgress } from './schemas/UnitProgress';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { createTrigger, useCreateTriggerMutation } from './hooks/useCreateTriggerMutation';
|
|
2
2
|
export { deleteFilter, useDeleteFilterMutation } from './hooks/useDeleteFilterMutation';
|
|
3
|
+
export { deleteTrigger, useDeleteTriggerMutation } from './hooks/useDeleteTriggerMutation';
|
|
3
4
|
export { getAnnotationFullContent, useGetAnnotationFullContentQuery, } from './hooks/useGetAnnotationFullContentQuery';
|
|
4
5
|
export { getBatchInputSetsMetadata, useGetBatchInputSetsMetadataMutation, } from './hooks/useGetBatchInputSetsMetadataMutation';
|
|
5
6
|
export { getExecutionBranchesList, useGetExecutionBranchesListQuery, } from './hooks/useGetExecutionBranchesListQuery';
|
|
@@ -16,8 +17,13 @@ export { getPipelineList, useGetPipelineListQuery } from './hooks/useGetPipeline
|
|
|
16
17
|
export { getPipelineSummary, useGetPipelineSummaryQuery } from './hooks/useGetPipelineSummaryQuery';
|
|
17
18
|
export { getPolicyEvaluation, useGetPolicyEvaluationQuery, } from './hooks/useGetPolicyEvaluationQuery';
|
|
18
19
|
export { getTriggerCatalog, useGetTriggerCatalogQuery } from './hooks/useGetTriggerCatalogQuery';
|
|
20
|
+
export { getTriggerDetails, useGetTriggerDetailsQuery } from './hooks/useGetTriggerDetailsQuery';
|
|
19
21
|
export { getTriggerListForTarget, useGetTriggerListForTargetQuery, } from './hooks/useGetTriggerListForTargetQuery';
|
|
22
|
+
export { getTrigger, useGetTriggerQuery } from './hooks/useGetTriggerQuery';
|
|
20
23
|
export { postFilter, usePostFilterMutation } from './hooks/usePostFilterMutation';
|
|
21
24
|
export { retryHistory, useRetryHistoryQuery } from './hooks/useRetryHistoryQuery';
|
|
25
|
+
export { triggerEventHistory, useTriggerEventHistoryQuery, } from './hooks/useTriggerEventHistoryQuery';
|
|
22
26
|
export { updateFilter, useUpdateFilterMutation } from './hooks/useUpdateFilterMutation';
|
|
23
27
|
export { updateNotesForExecution, useUpdateNotesForExecutionMutation, } from './hooks/useUpdateNotesForExecutionMutation';
|
|
28
|
+
export { updateTrigger, useUpdateTriggerMutation } from './hooks/useUpdateTriggerMutation';
|
|
29
|
+
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 {};
|
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 {};
|
|
@@ -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