@harnessio/react-pipeline-swagger-service-client 1.18.0 → 1.20.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/useAddHarnessApprovalActivityMutation.d.ts +25 -0
- package/dist/pipeline-swagger-service/src/services/hooks/useAddHarnessApprovalActivityMutation.js +14 -0
- package/dist/pipeline-swagger-service/src/services/hooks/useCreateInputSetForPipelineMutation.d.ts +2 -2
- package/dist/pipeline-swagger-service/src/services/hooks/useCreateOverlayInputSetForPipelineMutation.d.ts +2 -2
- package/dist/pipeline-swagger-service/src/services/hooks/useCreateTriggerMutation.d.ts +2 -2
- package/dist/pipeline-swagger-service/src/services/hooks/useGetApprovalInstanceQuery.d.ts +23 -0
- package/dist/pipeline-swagger-service/src/services/hooks/useGetApprovalInstanceQuery.js +14 -0
- package/dist/pipeline-swagger-service/src/services/hooks/useGetHarnessApprovalInstanceAuthorizationQuery.d.ts +18 -0
- package/dist/pipeline-swagger-service/src/services/hooks/useGetHarnessApprovalInstanceAuthorizationQuery.js +14 -0
- package/dist/pipeline-swagger-service/src/services/hooks/useUpdateInputSetForPipelineMutation.d.ts +2 -2
- package/dist/pipeline-swagger-service/src/services/hooks/useUpdateTriggerMutation.d.ts +2 -2
- package/dist/pipeline-swagger-service/src/services/index.d.ts +14 -1
- package/dist/pipeline-swagger-service/src/services/index.js +3 -0
- package/dist/pipeline-swagger-service/src/services/requestBodies/CreateTriggerBodyRequestBody.d.ts +1 -0
- package/dist/pipeline-swagger-service/src/services/schemas/ApprovalInstanceDetailsDto.d.ts +3 -0
- package/dist/pipeline-swagger-service/src/services/schemas/ApprovalInstanceDetailsDto.js +4 -0
- package/dist/pipeline-swagger-service/src/services/schemas/ApprovalInstanceResponse.d.ts +21 -0
- package/dist/pipeline-swagger-service/src/services/schemas/ApprovalInstanceResponse.js +1 -0
- package/dist/pipeline-swagger-service/src/services/schemas/ApproverInput.d.ts +4 -0
- package/dist/pipeline-swagger-service/src/services/schemas/ApproverInput.js +4 -0
- package/dist/pipeline-swagger-service/src/services/schemas/HarnessApprovalActivityRequest.d.ts +6 -0
- package/dist/pipeline-swagger-service/src/services/schemas/HarnessApprovalActivityRequest.js +1 -0
- package/dist/pipeline-swagger-service/src/services/schemas/HarnessApprovalInstanceAuthorization.d.ts +4 -0
- package/dist/pipeline-swagger-service/src/services/schemas/HarnessApprovalInstanceAuthorization.js +4 -0
- package/dist/pipeline-swagger-service/src/services/schemas/NgTriggerEventHistoryResponse.d.ts +1 -1
- package/dist/pipeline-swagger-service/src/services/schemas/ResponseApprovalInstanceResponse.d.ts +9 -0
- package/dist/pipeline-swagger-service/src/services/schemas/ResponseApprovalInstanceResponse.js +1 -0
- package/dist/pipeline-swagger-service/src/services/schemas/ResponseHarnessApprovalInstanceAuthorization.d.ts +9 -0
- package/dist/pipeline-swagger-service/src/services/schemas/ResponseHarnessApprovalInstanceAuthorization.js +1 -0
- package/package.json +1 -1
- package/dist/pipeline-swagger-service/src/services/requestBodies/UpdateTriggerBodyRequestBody.d.ts +0 -1
- /package/dist/pipeline-swagger-service/src/services/requestBodies/{UpdateTriggerBodyRequestBody.js → CreateTriggerBodyRequestBody.js} +0 -0
package/dist/pipeline-swagger-service/src/services/hooks/useAddHarnessApprovalActivityMutation.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponseApprovalInstanceResponse } from '../schemas/ResponseApprovalInstanceResponse';
|
|
3
|
+
import type { Failure } from '../schemas/Failure';
|
|
4
|
+
import type { Error } from '../schemas/Error';
|
|
5
|
+
import type { HarnessApprovalActivityRequest } from '../schemas/HarnessApprovalActivityRequest';
|
|
6
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
7
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
|
+
export interface AddHarnessApprovalActivityMutationPathParams {
|
|
9
|
+
approvalInstanceId: string;
|
|
10
|
+
}
|
|
11
|
+
export interface AddHarnessApprovalActivityMutationQueryParams {
|
|
12
|
+
accountIdentifier?: string;
|
|
13
|
+
}
|
|
14
|
+
export type AddHarnessApprovalActivityRequestBody = HarnessApprovalActivityRequest;
|
|
15
|
+
export type AddHarnessApprovalActivityOkResponse = ResponseWithPagination<ResponseApprovalInstanceResponse>;
|
|
16
|
+
export type AddHarnessApprovalActivityErrorResponse = Failure | Error;
|
|
17
|
+
export interface AddHarnessApprovalActivityProps extends AddHarnessApprovalActivityMutationPathParams, Omit<FetcherOptions<AddHarnessApprovalActivityMutationQueryParams, AddHarnessApprovalActivityRequestBody>, 'url'> {
|
|
18
|
+
queryParams: AddHarnessApprovalActivityMutationQueryParams;
|
|
19
|
+
body: AddHarnessApprovalActivityRequestBody;
|
|
20
|
+
}
|
|
21
|
+
export declare function addHarnessApprovalActivity(props: AddHarnessApprovalActivityProps): Promise<AddHarnessApprovalActivityOkResponse>;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
export declare function useAddHarnessApprovalActivityMutation(options?: Omit<UseMutationOptions<AddHarnessApprovalActivityOkResponse, AddHarnessApprovalActivityErrorResponse, AddHarnessApprovalActivityProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<AddHarnessApprovalActivityOkResponse, AddHarnessApprovalActivityErrorResponse, AddHarnessApprovalActivityProps, unknown>;
|
package/dist/pipeline-swagger-service/src/services/hooks/useAddHarnessApprovalActivityMutation.js
ADDED
|
@@ -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 addHarnessApprovalActivity(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/approvals/${props.approvalInstanceId}/harness/activity`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useAddHarnessApprovalActivityMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => addHarnessApprovalActivity(mutateProps), options);
|
|
14
|
+
}
|
package/dist/pipeline-swagger-service/src/services/hooks/useCreateInputSetForPipelineMutation.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { UseMutationOptions } from '@tanstack/react-query';
|
|
|
2
2
|
import type { ResponseInputSetResponse } from '../schemas/ResponseInputSetResponse';
|
|
3
3
|
import type { Failure } from '../schemas/Failure';
|
|
4
4
|
import type { Error } from '../schemas/Error';
|
|
5
|
-
import type {
|
|
5
|
+
import type { CreateTriggerBodyRequestBody } from '../requestBodies/CreateTriggerBodyRequestBody';
|
|
6
6
|
import type { ResponseWithPagination } from '../helpers';
|
|
7
7
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
8
|
export interface CreateInputSetForPipelineMutationQueryParams {
|
|
@@ -28,7 +28,7 @@ export interface CreateInputSetForPipelineMutationQueryParams {
|
|
|
28
28
|
*/
|
|
29
29
|
InputSetVersion?: string;
|
|
30
30
|
}
|
|
31
|
-
export type CreateInputSetForPipelineRequestBody =
|
|
31
|
+
export type CreateInputSetForPipelineRequestBody = CreateTriggerBodyRequestBody;
|
|
32
32
|
export type CreateInputSetForPipelineOkResponse = ResponseWithPagination<ResponseInputSetResponse>;
|
|
33
33
|
export type CreateInputSetForPipelineErrorResponse = Failure | Error;
|
|
34
34
|
export interface CreateInputSetForPipelineProps extends Omit<FetcherOptions<CreateInputSetForPipelineMutationQueryParams, CreateInputSetForPipelineRequestBody>, 'url'> {
|
|
@@ -2,7 +2,7 @@ import { UseMutationOptions } from '@tanstack/react-query';
|
|
|
2
2
|
import type { ResponseOverlayInputSetResponse } from '../schemas/ResponseOverlayInputSetResponse';
|
|
3
3
|
import type { Failure } from '../schemas/Failure';
|
|
4
4
|
import type { Error } from '../schemas/Error';
|
|
5
|
-
import type {
|
|
5
|
+
import type { CreateTriggerBodyRequestBody } from '../requestBodies/CreateTriggerBodyRequestBody';
|
|
6
6
|
import type { ResponseWithPagination } from '../helpers';
|
|
7
7
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
8
|
export interface CreateOverlayInputSetForPipelineMutationQueryParams {
|
|
@@ -22,7 +22,7 @@ export interface CreateOverlayInputSetForPipelineMutationQueryParams {
|
|
|
22
22
|
repoName?: string;
|
|
23
23
|
isHarnessCodeRepo?: boolean;
|
|
24
24
|
}
|
|
25
|
-
export type CreateOverlayInputSetForPipelineRequestBody =
|
|
25
|
+
export type CreateOverlayInputSetForPipelineRequestBody = CreateTriggerBodyRequestBody;
|
|
26
26
|
export type CreateOverlayInputSetForPipelineOkResponse = ResponseWithPagination<ResponseOverlayInputSetResponse>;
|
|
27
27
|
export type CreateOverlayInputSetForPipelineErrorResponse = Failure | Error;
|
|
28
28
|
export interface CreateOverlayInputSetForPipelineProps extends Omit<FetcherOptions<CreateOverlayInputSetForPipelineMutationQueryParams, CreateOverlayInputSetForPipelineRequestBody>, 'url'> {
|
|
@@ -2,7 +2,7 @@ import { UseMutationOptions } from '@tanstack/react-query';
|
|
|
2
2
|
import type { ResponseNgTriggerResponse } from '../schemas/ResponseNgTriggerResponse';
|
|
3
3
|
import type { Failure } from '../schemas/Failure';
|
|
4
4
|
import type { Error } from '../schemas/Error';
|
|
5
|
-
import type {
|
|
5
|
+
import type { CreateTriggerBodyRequestBody } from '../requestBodies/CreateTriggerBodyRequestBody';
|
|
6
6
|
import type { ResponseWithPagination } from '../helpers';
|
|
7
7
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
8
|
export interface CreateTriggerMutationQueryParams {
|
|
@@ -13,7 +13,7 @@ export interface CreateTriggerMutationQueryParams {
|
|
|
13
13
|
ignoreError?: boolean;
|
|
14
14
|
withServiceV2?: boolean;
|
|
15
15
|
}
|
|
16
|
-
export type CreateTriggerRequestBody =
|
|
16
|
+
export type CreateTriggerRequestBody = CreateTriggerBodyRequestBody;
|
|
17
17
|
export type CreateTriggerOkResponse = ResponseWithPagination<ResponseNgTriggerResponse>;
|
|
18
18
|
export type CreateTriggerErrorResponse = Failure | Error;
|
|
19
19
|
export interface CreateTriggerProps extends Omit<FetcherOptions<CreateTriggerMutationQueryParams, CreateTriggerRequestBody>, 'url'> {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponseApprovalInstanceResponse } from '../schemas/ResponseApprovalInstanceResponse';
|
|
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 GetApprovalInstanceQueryPathParams {
|
|
8
|
+
approvalInstanceId: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GetApprovalInstanceQueryQueryParams {
|
|
11
|
+
accountIdentifier?: string;
|
|
12
|
+
refresh?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export type GetApprovalInstanceOkResponse = ResponseWithPagination<ResponseApprovalInstanceResponse>;
|
|
15
|
+
export type GetApprovalInstanceErrorResponse = Failure | Error;
|
|
16
|
+
export interface GetApprovalInstanceProps extends GetApprovalInstanceQueryPathParams, Omit<FetcherOptions<GetApprovalInstanceQueryQueryParams, unknown>, 'url'> {
|
|
17
|
+
queryParams: GetApprovalInstanceQueryQueryParams;
|
|
18
|
+
}
|
|
19
|
+
export declare function getApprovalInstance(props: GetApprovalInstanceProps): Promise<GetApprovalInstanceOkResponse>;
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export declare function useGetApprovalInstanceQuery(props: GetApprovalInstanceProps, options?: Omit<UseQueryOptions<GetApprovalInstanceOkResponse, GetApprovalInstanceErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetApprovalInstanceOkResponse, GetApprovalInstanceErrorResponse>;
|
|
@@ -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 getApprovalInstance(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/approvals/${props.approvalInstanceId}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useGetApprovalInstanceQuery(props, options) {
|
|
13
|
+
return useQuery(['getApprovalInstance', props.approvalInstanceId, props.queryParams], ({ signal }) => getApprovalInstance(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponseHarnessApprovalInstanceAuthorization } from '../schemas/ResponseHarnessApprovalInstanceAuthorization';
|
|
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 GetHarnessApprovalInstanceAuthorizationQueryPathParams {
|
|
8
|
+
approvalInstanceId: string;
|
|
9
|
+
}
|
|
10
|
+
export type GetHarnessApprovalInstanceAuthorizationOkResponse = ResponseWithPagination<ResponseHarnessApprovalInstanceAuthorization>;
|
|
11
|
+
export type GetHarnessApprovalInstanceAuthorizationErrorResponse = Failure | Error;
|
|
12
|
+
export interface GetHarnessApprovalInstanceAuthorizationProps extends GetHarnessApprovalInstanceAuthorizationQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
13
|
+
}
|
|
14
|
+
export declare function getHarnessApprovalInstanceAuthorization(props: GetHarnessApprovalInstanceAuthorizationProps): Promise<GetHarnessApprovalInstanceAuthorizationOkResponse>;
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
export declare function useGetHarnessApprovalInstanceAuthorizationQuery(props: GetHarnessApprovalInstanceAuthorizationProps, options?: Omit<UseQueryOptions<GetHarnessApprovalInstanceAuthorizationOkResponse, GetHarnessApprovalInstanceAuthorizationErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetHarnessApprovalInstanceAuthorizationOkResponse, GetHarnessApprovalInstanceAuthorizationErrorResponse>;
|
|
@@ -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 getHarnessApprovalInstanceAuthorization(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/approvals/${props.approvalInstanceId}/harness/authorization`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useGetHarnessApprovalInstanceAuthorizationQuery(props, options) {
|
|
13
|
+
return useQuery(['getHarnessApprovalInstanceAuthorization', props.approvalInstanceId], ({ signal }) => getHarnessApprovalInstanceAuthorization(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
package/dist/pipeline-swagger-service/src/services/hooks/useUpdateInputSetForPipelineMutation.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { UseMutationOptions } from '@tanstack/react-query';
|
|
|
2
2
|
import type { ResponseInputSetResponse } from '../schemas/ResponseInputSetResponse';
|
|
3
3
|
import type { Failure } from '../schemas/Failure';
|
|
4
4
|
import type { Error } from '../schemas/Error';
|
|
5
|
-
import type {
|
|
5
|
+
import type { CreateTriggerBodyRequestBody } from '../requestBodies/CreateTriggerBodyRequestBody';
|
|
6
6
|
import type { ResponseWithPagination } from '../helpers';
|
|
7
7
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
8
|
export interface UpdateInputSetForPipelineMutationPathParams {
|
|
@@ -36,7 +36,7 @@ export interface UpdateInputSetForPipelineMutationQueryParams {
|
|
|
36
36
|
export interface UpdateInputSetForPipelineMutationHeaderParams {
|
|
37
37
|
'If-Match'?: string;
|
|
38
38
|
}
|
|
39
|
-
export type UpdateInputSetForPipelineRequestBody =
|
|
39
|
+
export type UpdateInputSetForPipelineRequestBody = CreateTriggerBodyRequestBody;
|
|
40
40
|
export type UpdateInputSetForPipelineOkResponse = ResponseWithPagination<ResponseInputSetResponse>;
|
|
41
41
|
export type UpdateInputSetForPipelineErrorResponse = Failure | Error;
|
|
42
42
|
export interface UpdateInputSetForPipelineProps extends UpdateInputSetForPipelineMutationPathParams, Omit<FetcherOptions<UpdateInputSetForPipelineMutationQueryParams, UpdateInputSetForPipelineRequestBody, UpdateInputSetForPipelineMutationHeaderParams>, 'url'> {
|
|
@@ -2,7 +2,7 @@ import { UseMutationOptions } from '@tanstack/react-query';
|
|
|
2
2
|
import type { ResponseNgTriggerResponse } from '../schemas/ResponseNgTriggerResponse';
|
|
3
3
|
import type { Failure } from '../schemas/Failure';
|
|
4
4
|
import type { Error } from '../schemas/Error';
|
|
5
|
-
import type {
|
|
5
|
+
import type { CreateTriggerBodyRequestBody } from '../requestBodies/CreateTriggerBodyRequestBody';
|
|
6
6
|
import type { ResponseWithPagination } from '../helpers';
|
|
7
7
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
8
|
export interface UpdateTriggerMutationPathParams {
|
|
@@ -18,7 +18,7 @@ export interface UpdateTriggerMutationQueryParams {
|
|
|
18
18
|
export interface UpdateTriggerMutationHeaderParams {
|
|
19
19
|
'If-Match'?: string;
|
|
20
20
|
}
|
|
21
|
-
export type UpdateTriggerRequestBody =
|
|
21
|
+
export type UpdateTriggerRequestBody = CreateTriggerBodyRequestBody;
|
|
22
22
|
export type UpdateTriggerOkResponse = ResponseWithPagination<ResponseNgTriggerResponse>;
|
|
23
23
|
export type UpdateTriggerErrorResponse = Failure | Error;
|
|
24
24
|
export interface UpdateTriggerProps extends UpdateTriggerMutationPathParams, Omit<FetcherOptions<UpdateTriggerMutationQueryParams, UpdateTriggerRequestBody, UpdateTriggerMutationHeaderParams>, 'url'> {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export type { GetPathParamsType, ResponseWithPagination } from './helpers';
|
|
2
|
+
export type { AddHarnessApprovalActivityErrorResponse, AddHarnessApprovalActivityMutationPathParams, AddHarnessApprovalActivityMutationQueryParams, AddHarnessApprovalActivityOkResponse, AddHarnessApprovalActivityProps, AddHarnessApprovalActivityRequestBody, } from './hooks/useAddHarnessApprovalActivityMutation';
|
|
3
|
+
export { addHarnessApprovalActivity, useAddHarnessApprovalActivityMutation, } from './hooks/useAddHarnessApprovalActivityMutation';
|
|
2
4
|
export type { CanRetryExecutionErrorResponse, CanRetryExecutionOkResponse, CanRetryExecutionProps, CanRetryExecutionQueryPathParams, CanRetryExecutionQueryQueryParams, } from './hooks/useCanRetryExecutionQuery';
|
|
3
5
|
export { canRetryExecution, useCanRetryExecutionQuery } from './hooks/useCanRetryExecutionQuery';
|
|
4
6
|
export type { ClonePipelineErrorResponse, ClonePipelineMutationQueryParams, ClonePipelineOkResponse, ClonePipelineProps, ClonePipelineRequestBody, } from './hooks/useClonePipelineMutation';
|
|
@@ -17,6 +19,8 @@ export type { DeleteTriggerErrorResponse, DeleteTriggerMutationPathParams, Delet
|
|
|
17
19
|
export { deleteTrigger, useDeleteTriggerMutation } from './hooks/useDeleteTriggerMutation';
|
|
18
20
|
export type { GetAnnotationFullContentErrorResponse, GetAnnotationFullContentOkResponse, GetAnnotationFullContentProps, GetAnnotationFullContentQueryPathParams, GetAnnotationFullContentQueryQueryParams, } from './hooks/useGetAnnotationFullContentQuery';
|
|
19
21
|
export { getAnnotationFullContent, useGetAnnotationFullContentQuery, } from './hooks/useGetAnnotationFullContentQuery';
|
|
22
|
+
export type { GetApprovalInstanceErrorResponse, GetApprovalInstanceOkResponse, GetApprovalInstanceProps, GetApprovalInstanceQueryPathParams, GetApprovalInstanceQueryQueryParams, } from './hooks/useGetApprovalInstanceQuery';
|
|
23
|
+
export { getApprovalInstance, useGetApprovalInstanceQuery, } from './hooks/useGetApprovalInstanceQuery';
|
|
20
24
|
export type { GetBatchInputSetsMetadataErrorResponse, GetBatchInputSetsMetadataMutationQueryParams, GetBatchInputSetsMetadataOkResponse, GetBatchInputSetsMetadataProps, GetBatchInputSetsMetadataRequestBody, } from './hooks/useGetBatchInputSetsMetadataMutation';
|
|
21
25
|
export { getBatchInputSetsMetadata, useGetBatchInputSetsMetadataMutation, } from './hooks/useGetBatchInputSetsMetadataMutation';
|
|
22
26
|
export type { GetExecutionBranchesListErrorResponse, GetExecutionBranchesListOkResponse, GetExecutionBranchesListProps, GetExecutionBranchesListQueryQueryParams, } from './hooks/useGetExecutionBranchesListQuery';
|
|
@@ -35,6 +39,8 @@ export type { GetFilterErrorResponse, GetFilterOkResponse, GetFilterProps, GetFi
|
|
|
35
39
|
export { getFilter, useGetFilterQuery } from './hooks/useGetFilterQuery';
|
|
36
40
|
export type { GetGitTriggerEventDetailsErrorResponse, GetGitTriggerEventDetailsOkResponse, GetGitTriggerEventDetailsProps, } from './hooks/useGetGitTriggerEventDetailsQuery';
|
|
37
41
|
export { getGitTriggerEventDetails, useGetGitTriggerEventDetailsQuery, } from './hooks/useGetGitTriggerEventDetailsQuery';
|
|
42
|
+
export type { GetHarnessApprovalInstanceAuthorizationErrorResponse, GetHarnessApprovalInstanceAuthorizationOkResponse, GetHarnessApprovalInstanceAuthorizationProps, GetHarnessApprovalInstanceAuthorizationQueryPathParams, } from './hooks/useGetHarnessApprovalInstanceAuthorizationQuery';
|
|
43
|
+
export { getHarnessApprovalInstanceAuthorization, useGetHarnessApprovalInstanceAuthorizationQuery, } from './hooks/useGetHarnessApprovalInstanceAuthorizationQuery';
|
|
38
44
|
export type { GetInputSetForPipelineErrorResponse, GetInputSetForPipelineOkResponse, GetInputSetForPipelineProps, GetInputSetForPipelineQueryPathParams, GetInputSetForPipelineQueryQueryParams, } from './hooks/useGetInputSetForPipelineQuery';
|
|
39
45
|
export { getInputSetForPipeline, useGetInputSetForPipelineQuery, } from './hooks/useGetInputSetForPipelineQuery';
|
|
40
46
|
export type { GetInputSetsListForPipelineErrorResponse, GetInputSetsListForPipelineOkResponse, GetInputSetsListForPipelineProps, GetInputSetsListForPipelineQueryQueryParams, } from './hooks/useGetInputSetsListForPipelineQuery';
|
|
@@ -94,13 +100,16 @@ export { updateTrigger, useUpdateTriggerMutation } from './hooks/useUpdateTrigge
|
|
|
94
100
|
export type { UpdateTriggerStatusErrorResponse, UpdateTriggerStatusMutationPathParams, UpdateTriggerStatusMutationQueryParams, UpdateTriggerStatusOkResponse, UpdateTriggerStatusProps, } from './hooks/useUpdateTriggerStatusMutation';
|
|
95
101
|
export { updateTriggerStatus, useUpdateTriggerStatusMutation, } from './hooks/useUpdateTriggerStatusMutation';
|
|
96
102
|
export type { ClonePipelinePropertiesRequestBody } from './requestBodies/ClonePipelinePropertiesRequestBody';
|
|
103
|
+
export type { CreateTriggerBodyRequestBody } from './requestBodies/CreateTriggerBodyRequestBody';
|
|
97
104
|
export type { FilterDtoRequestBody } from './requestBodies/FilterDtoRequestBody';
|
|
98
105
|
export type { FilterPropertiesRequestBody } from './requestBodies/FilterPropertiesRequestBody';
|
|
99
|
-
export type { UpdateTriggerBodyRequestBody } from './requestBodies/UpdateTriggerBodyRequestBody';
|
|
100
106
|
export type { AbortedBy } from './schemas/AbortedBy';
|
|
101
107
|
export type { AccessControlCheckError } from './schemas/AccessControlCheckError';
|
|
102
108
|
export type { AdviserIssuer } from './schemas/AdviserIssuer';
|
|
103
109
|
export type { AnnotationContentResponseDto } from './schemas/AnnotationContentResponseDto';
|
|
110
|
+
export type { ApprovalInstanceDetailsDto } from './schemas/ApprovalInstanceDetailsDto';
|
|
111
|
+
export type { ApprovalInstanceResponse } from './schemas/ApprovalInstanceResponse';
|
|
112
|
+
export type { ApproverInput } from './schemas/ApproverInput';
|
|
104
113
|
export type { BatchInputSetsApiRequest } from './schemas/BatchInputSetsApiRequest';
|
|
105
114
|
export type { BuildDetails } from './schemas/BuildDetails';
|
|
106
115
|
export type { CacheResponseMetadata } from './schemas/CacheResponseMetadata';
|
|
@@ -132,6 +141,8 @@ export type { FilterDto } from './schemas/FilterDto';
|
|
|
132
141
|
export type { FilterProperties } from './schemas/FilterProperties';
|
|
133
142
|
export type { GovernanceMetadata } from './schemas/GovernanceMetadata';
|
|
134
143
|
export type { GraphLayoutNode } from './schemas/GraphLayoutNode';
|
|
144
|
+
export type { HarnessApprovalActivityRequest } from './schemas/HarnessApprovalActivityRequest';
|
|
145
|
+
export type { HarnessApprovalInstanceAuthorization } from './schemas/HarnessApprovalInstanceAuthorization';
|
|
135
146
|
export type { InputSetDetails } from './schemas/InputSetDetails';
|
|
136
147
|
export type { InputSetError } from './schemas/InputSetError';
|
|
137
148
|
export type { InputSetErrorResponse } from './schemas/InputSetErrorResponse';
|
|
@@ -189,10 +200,12 @@ export type { PublicAccessResponse } from './schemas/PublicAccessResponse';
|
|
|
189
200
|
export type { RecentExecutionInfoDto } from './schemas/RecentExecutionInfoDto';
|
|
190
201
|
export type { ResourceScope } from './schemas/ResourceScope';
|
|
191
202
|
export type { ResponseAnnotationContentResponseDto } from './schemas/ResponseAnnotationContentResponseDto';
|
|
203
|
+
export type { ResponseApprovalInstanceResponse } from './schemas/ResponseApprovalInstanceResponse';
|
|
192
204
|
export type { ResponseBoolean } from './schemas/ResponseBoolean';
|
|
193
205
|
export type { ResponseExecutionDataResponse } from './schemas/ResponseExecutionDataResponse';
|
|
194
206
|
export type { ResponseExecutionGraph } from './schemas/ResponseExecutionGraph';
|
|
195
207
|
export type { ResponseFilterDto } from './schemas/ResponseFilterDto';
|
|
208
|
+
export type { ResponseHarnessApprovalInstanceAuthorization } from './schemas/ResponseHarnessApprovalInstanceAuthorization';
|
|
196
209
|
export type { ResponseInputSetResponse } from './schemas/ResponseInputSetResponse';
|
|
197
210
|
export type { ResponseInputSetTemplateResponse } from './schemas/ResponseInputSetTemplateResponse';
|
|
198
211
|
export type { ResponseMapStringMapStringListString } from './schemas/ResponseMapStringMapStringListString';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { addHarnessApprovalActivity, useAddHarnessApprovalActivityMutation, } from './hooks/useAddHarnessApprovalActivityMutation';
|
|
1
2
|
export { canRetryExecution, useCanRetryExecutionQuery } from './hooks/useCanRetryExecutionQuery';
|
|
2
3
|
export { clonePipeline, useClonePipelineMutation } from './hooks/useClonePipelineMutation';
|
|
3
4
|
export { createInputSetForPipeline, useCreateInputSetForPipelineMutation, } from './hooks/useCreateInputSetForPipelineMutation';
|
|
@@ -7,6 +8,7 @@ export { deleteFilter, useDeleteFilterMutation } from './hooks/useDeleteFilterMu
|
|
|
7
8
|
export { deleteInputSetForPipeline, useDeleteInputSetForPipelineMutation, } from './hooks/useDeleteInputSetForPipelineMutation';
|
|
8
9
|
export { deleteTrigger, useDeleteTriggerMutation } from './hooks/useDeleteTriggerMutation';
|
|
9
10
|
export { getAnnotationFullContent, useGetAnnotationFullContentQuery, } from './hooks/useGetAnnotationFullContentQuery';
|
|
11
|
+
export { getApprovalInstance, useGetApprovalInstanceQuery, } from './hooks/useGetApprovalInstanceQuery';
|
|
10
12
|
export { getBatchInputSetsMetadata, useGetBatchInputSetsMetadataMutation, } from './hooks/useGetBatchInputSetsMetadataMutation';
|
|
11
13
|
export { getExecutionBranchesList, useGetExecutionBranchesListQuery, } from './hooks/useGetExecutionBranchesListQuery';
|
|
12
14
|
export { getExecutionData, useGetExecutionDataQuery } from './hooks/useGetExecutionDataQuery';
|
|
@@ -16,6 +18,7 @@ export { getExecutionRepositoriesList, useGetExecutionRepositoriesListQuery, } f
|
|
|
16
18
|
export { getFilterList, useGetFilterListQuery } from './hooks/useGetFilterListQuery';
|
|
17
19
|
export { getFilter, useGetFilterQuery } from './hooks/useGetFilterQuery';
|
|
18
20
|
export { getGitTriggerEventDetails, useGetGitTriggerEventDetailsQuery, } from './hooks/useGetGitTriggerEventDetailsQuery';
|
|
21
|
+
export { getHarnessApprovalInstanceAuthorization, useGetHarnessApprovalInstanceAuthorizationQuery, } from './hooks/useGetHarnessApprovalInstanceAuthorizationQuery';
|
|
19
22
|
export { getInputSetForPipeline, useGetInputSetForPipelineQuery, } from './hooks/useGetInputSetForPipelineQuery';
|
|
20
23
|
export { getInputSetsListForPipeline, useGetInputSetsListForPipelineQuery, } from './hooks/useGetInputSetsListForPipelineQuery';
|
|
21
24
|
export { getInputsetYamlV2, useGetInputsetYamlV2Query } from './hooks/useGetInputsetYamlV2Query';
|
package/dist/pipeline-swagger-service/src/services/requestBodies/CreateTriggerBodyRequestBody.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type CreateTriggerBodyRequestBody = string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ApprovalInstanceDetailsDto } from '../schemas/ApprovalInstanceDetailsDto';
|
|
2
|
+
export interface ApprovalInstanceResponse {
|
|
3
|
+
approvedByCurrentUser?: boolean;
|
|
4
|
+
/**
|
|
5
|
+
* @format int64
|
|
6
|
+
*/
|
|
7
|
+
createdAt?: number;
|
|
8
|
+
/**
|
|
9
|
+
* @format int64
|
|
10
|
+
*/
|
|
11
|
+
deadline?: number;
|
|
12
|
+
details: ApprovalInstanceDetailsDto;
|
|
13
|
+
errorMessage?: string;
|
|
14
|
+
id?: string;
|
|
15
|
+
/**
|
|
16
|
+
* @format int64
|
|
17
|
+
*/
|
|
18
|
+
lastModifiedAt?: number;
|
|
19
|
+
status: 'ABORTED' | 'APPROVED' | 'EXPIRED' | 'FAILED' | 'REJECTED' | 'WAITING';
|
|
20
|
+
type: 'CustomApproval' | 'HarnessApproval' | 'JiraApproval' | 'ServiceNowApproval';
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/pipeline-swagger-service/src/services/schemas/NgTriggerEventHistoryResponse.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export interface NgTriggerEventHistoryResponse {
|
|
|
13
13
|
*/
|
|
14
14
|
eventCreatedAt?: number;
|
|
15
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';
|
|
16
|
+
finalStatus?: 'ALL_MAPPED_TRIGGER_FAILED_VALIDATION_FOR_POLLING_EVENT' | 'EXCEPTION_WHILE_PROCESSING' | 'FAILED_TO_FETCH_PR_COMMITS' | '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
17
|
headers?: {
|
|
18
18
|
[key: string]: string;
|
|
19
19
|
};
|
package/dist/pipeline-swagger-service/src/services/schemas/ResponseApprovalInstanceResponse.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ApprovalInstanceResponse } from '../schemas/ApprovalInstanceResponse';
|
|
2
|
+
export interface ResponseApprovalInstanceResponse {
|
|
3
|
+
correlationId?: string;
|
|
4
|
+
data?: ApprovalInstanceResponse;
|
|
5
|
+
metaData?: {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
};
|
|
8
|
+
status?: 'ERROR' | 'FAILURE' | 'SUCCESS';
|
|
9
|
+
}
|
package/dist/pipeline-swagger-service/src/services/schemas/ResponseApprovalInstanceResponse.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { HarnessApprovalInstanceAuthorization } from '../schemas/HarnessApprovalInstanceAuthorization';
|
|
2
|
+
export interface ResponseHarnessApprovalInstanceAuthorization {
|
|
3
|
+
correlationId?: string;
|
|
4
|
+
data?: HarnessApprovalInstanceAuthorization;
|
|
5
|
+
metaData?: {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
};
|
|
8
|
+
status?: 'ERROR' | 'FAILURE' | 'SUCCESS';
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
package/dist/pipeline-swagger-service/src/services/requestBodies/UpdateTriggerBodyRequestBody.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type UpdateTriggerBodyRequestBody = string;
|