@harnessio/react-pipeline-swagger-service-client 1.17.0 → 1.19.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.
Files changed (49) hide show
  1. package/dist/pipeline-swagger-service/src/services/hooks/useAddHarnessApprovalActivityMutation.d.ts +25 -0
  2. package/dist/pipeline-swagger-service/src/services/hooks/useAddHarnessApprovalActivityMutation.js +14 -0
  3. package/dist/pipeline-swagger-service/src/services/hooks/useClonePipelineMutation.d.ts +35 -0
  4. package/dist/pipeline-swagger-service/src/services/hooks/useClonePipelineMutation.js +15 -0
  5. package/dist/pipeline-swagger-service/src/services/hooks/useCreateInputSetForPipelineMutation.d.ts +2 -2
  6. package/dist/pipeline-swagger-service/src/services/hooks/useCreateOverlayInputSetForPipelineMutation.d.ts +2 -2
  7. package/dist/pipeline-swagger-service/src/services/hooks/useCreateTriggerMutation.d.ts +2 -2
  8. package/dist/pipeline-swagger-service/src/services/hooks/useGetApprovalInstanceQuery.d.ts +23 -0
  9. package/dist/pipeline-swagger-service/src/services/hooks/useGetApprovalInstanceQuery.js +14 -0
  10. package/dist/pipeline-swagger-service/src/services/hooks/useGetHarnessApprovalInstanceAuthorizationQuery.d.ts +18 -0
  11. package/dist/pipeline-swagger-service/src/services/hooks/useGetHarnessApprovalInstanceAuthorizationQuery.js +14 -0
  12. package/dist/pipeline-swagger-service/src/services/hooks/useUpdateInputSetForPipelineMutation.d.ts +2 -2
  13. package/dist/pipeline-swagger-service/src/services/hooks/useUpdateTriggerMutation.d.ts +2 -2
  14. package/dist/pipeline-swagger-service/src/services/index.d.ts +24 -1
  15. package/dist/pipeline-swagger-service/src/services/index.js +4 -0
  16. package/dist/pipeline-swagger-service/src/services/requestBodies/ClonePipelinePropertiesRequestBody.d.ts +2 -0
  17. package/dist/pipeline-swagger-service/src/services/requestBodies/ClonePipelinePropertiesRequestBody.js +1 -0
  18. package/dist/pipeline-swagger-service/src/services/requestBodies/UpdateTriggerBodyRequestBody.d.ts +1 -0
  19. package/dist/pipeline-swagger-service/src/services/schemas/ApprovalInstanceDetailsDto.d.ts +3 -0
  20. package/dist/pipeline-swagger-service/src/services/schemas/ApprovalInstanceDetailsDto.js +4 -0
  21. package/dist/pipeline-swagger-service/src/services/schemas/ApprovalInstanceResponse.d.ts +20 -0
  22. package/dist/pipeline-swagger-service/src/services/schemas/ApprovalInstanceResponse.js +1 -0
  23. package/dist/pipeline-swagger-service/src/services/schemas/ApproverInput.d.ts +4 -0
  24. package/dist/pipeline-swagger-service/src/services/schemas/ApproverInput.js +4 -0
  25. package/dist/pipeline-swagger-service/src/services/schemas/CloneConfig.d.ts +6 -0
  26. package/dist/pipeline-swagger-service/src/services/schemas/CloneConfig.js +4 -0
  27. package/dist/pipeline-swagger-service/src/services/schemas/ClonePipelineProperties.d.ts +9 -0
  28. package/dist/pipeline-swagger-service/src/services/schemas/ClonePipelineProperties.js +1 -0
  29. package/dist/pipeline-swagger-service/src/services/schemas/DestinationPipelineConfig.d.ts +10 -0
  30. package/dist/pipeline-swagger-service/src/services/schemas/DestinationPipelineConfig.js +4 -0
  31. package/dist/pipeline-swagger-service/src/services/schemas/HarnessApprovalActivityRequest.d.ts +6 -0
  32. package/dist/pipeline-swagger-service/src/services/schemas/HarnessApprovalActivityRequest.js +1 -0
  33. package/dist/pipeline-swagger-service/src/services/schemas/HarnessApprovalInstanceAuthorization.d.ts +4 -0
  34. package/dist/pipeline-swagger-service/src/services/schemas/HarnessApprovalInstanceAuthorization.js +4 -0
  35. package/dist/pipeline-swagger-service/src/services/schemas/PipelineSaveResponse.d.ts +7 -0
  36. package/dist/pipeline-swagger-service/src/services/schemas/PipelineSaveResponse.js +1 -0
  37. package/dist/pipeline-swagger-service/src/services/schemas/PublicAccessResponse.d.ts +4 -0
  38. package/dist/pipeline-swagger-service/src/services/schemas/PublicAccessResponse.js +4 -0
  39. package/dist/pipeline-swagger-service/src/services/schemas/ResponseApprovalInstanceResponse.d.ts +9 -0
  40. package/dist/pipeline-swagger-service/src/services/schemas/ResponseApprovalInstanceResponse.js +1 -0
  41. package/dist/pipeline-swagger-service/src/services/schemas/ResponseHarnessApprovalInstanceAuthorization.d.ts +9 -0
  42. package/dist/pipeline-swagger-service/src/services/schemas/ResponseHarnessApprovalInstanceAuthorization.js +1 -0
  43. package/dist/pipeline-swagger-service/src/services/schemas/ResponsePipelineSaveResponse.d.ts +9 -0
  44. package/dist/pipeline-swagger-service/src/services/schemas/ResponsePipelineSaveResponse.js +1 -0
  45. package/dist/pipeline-swagger-service/src/services/schemas/SourceIdentifierConfig.d.ts +6 -0
  46. package/dist/pipeline-swagger-service/src/services/schemas/SourceIdentifierConfig.js +4 -0
  47. package/package.json +1 -1
  48. package/dist/pipeline-swagger-service/src/services/requestBodies/CreateTriggerBodyRequestBody.d.ts +0 -1
  49. /package/dist/pipeline-swagger-service/src/services/requestBodies/{CreateTriggerBodyRequestBody.js → UpdateTriggerBodyRequestBody.js} +0 -0
@@ -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>;
@@ -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
+ }
@@ -0,0 +1,35 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ResponsePipelineSaveResponse } from '../schemas/ResponsePipelineSaveResponse';
3
+ import type { Failure } from '../schemas/Failure';
4
+ import type { Error } from '../schemas/Error';
5
+ import type { ClonePipelinePropertiesRequestBody } from '../requestBodies/ClonePipelinePropertiesRequestBody';
6
+ import type { ResponseWithPagination } from '../helpers';
7
+ import { FetcherOptions } from '../../../../fetcher/index.js';
8
+ export interface ClonePipelineMutationQueryParams {
9
+ accountIdentifier: string;
10
+ branch?: string;
11
+ repoIdentifier?: string;
12
+ rootFolder?: string;
13
+ filePath?: string;
14
+ commitMsg?: string;
15
+ isNewBranch?: boolean;
16
+ baseBranch?: string;
17
+ connectorRef?: string;
18
+ storeType?: 'INLINE' | 'INLINE_HC' | 'REMOTE';
19
+ repoName?: string;
20
+ isHarnessCodeRepo?: boolean;
21
+ enableDAG?: boolean;
22
+ }
23
+ export type ClonePipelineRequestBody = ClonePipelinePropertiesRequestBody;
24
+ export type ClonePipelineOkResponse = ResponseWithPagination<ResponsePipelineSaveResponse>;
25
+ export type ClonePipelineErrorResponse = Failure | Error;
26
+ export interface ClonePipelineProps extends Omit<FetcherOptions<ClonePipelineMutationQueryParams, ClonePipelineRequestBody>, 'url'> {
27
+ queryParams: ClonePipelineMutationQueryParams;
28
+ body: ClonePipelineRequestBody;
29
+ }
30
+ export declare function clonePipeline(props: ClonePipelineProps): Promise<ClonePipelineOkResponse>;
31
+ /**
32
+ *
33
+ * @deprecated
34
+ */
35
+ export declare function useClonePipelineMutation(options?: Omit<UseMutationOptions<ClonePipelineOkResponse, ClonePipelineErrorResponse, ClonePipelineProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ClonePipelineOkResponse, ClonePipelineErrorResponse, ClonePipelineProps, unknown>;
@@ -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 { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function clonePipeline(props) {
7
+ return fetcher(Object.assign({ url: `/pipelines/clone`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ *
11
+ * @deprecated
12
+ */
13
+ export function useClonePipelineMutation(options) {
14
+ return useMutation((mutateProps) => clonePipeline(mutateProps), options);
15
+ }
@@ -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 { CreateTriggerBodyRequestBody } from '../requestBodies/CreateTriggerBodyRequestBody';
5
+ import type { UpdateTriggerBodyRequestBody } from '../requestBodies/UpdateTriggerBodyRequestBody';
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 = CreateTriggerBodyRequestBody;
31
+ export type CreateInputSetForPipelineRequestBody = UpdateTriggerBodyRequestBody;
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 { CreateTriggerBodyRequestBody } from '../requestBodies/CreateTriggerBodyRequestBody';
5
+ import type { UpdateTriggerBodyRequestBody } from '../requestBodies/UpdateTriggerBodyRequestBody';
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 = CreateTriggerBodyRequestBody;
25
+ export type CreateOverlayInputSetForPipelineRequestBody = UpdateTriggerBodyRequestBody;
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 { CreateTriggerBodyRequestBody } from '../requestBodies/CreateTriggerBodyRequestBody';
5
+ import type { UpdateTriggerBodyRequestBody } from '../requestBodies/UpdateTriggerBodyRequestBody';
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 = CreateTriggerBodyRequestBody;
16
+ export type CreateTriggerRequestBody = UpdateTriggerBodyRequestBody;
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
+ }
@@ -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 { CreateTriggerBodyRequestBody } from '../requestBodies/CreateTriggerBodyRequestBody';
5
+ import type { UpdateTriggerBodyRequestBody } from '../requestBodies/UpdateTriggerBodyRequestBody';
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 = CreateTriggerBodyRequestBody;
39
+ export type UpdateInputSetForPipelineRequestBody = UpdateTriggerBodyRequestBody;
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 { CreateTriggerBodyRequestBody } from '../requestBodies/CreateTriggerBodyRequestBody';
5
+ import type { UpdateTriggerBodyRequestBody } from '../requestBodies/UpdateTriggerBodyRequestBody';
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 = CreateTriggerBodyRequestBody;
21
+ export type UpdateTriggerRequestBody = UpdateTriggerBodyRequestBody;
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,6 +1,10 @@
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';
6
+ export type { ClonePipelineErrorResponse, ClonePipelineMutationQueryParams, ClonePipelineOkResponse, ClonePipelineProps, ClonePipelineRequestBody, } from './hooks/useClonePipelineMutation';
7
+ export { clonePipeline, useClonePipelineMutation } from './hooks/useClonePipelineMutation';
4
8
  export type { CreateInputSetForPipelineErrorResponse, CreateInputSetForPipelineMutationQueryParams, CreateInputSetForPipelineOkResponse, CreateInputSetForPipelineProps, CreateInputSetForPipelineRequestBody, } from './hooks/useCreateInputSetForPipelineMutation';
5
9
  export { createInputSetForPipeline, useCreateInputSetForPipelineMutation, } from './hooks/useCreateInputSetForPipelineMutation';
6
10
  export type { CreateOverlayInputSetForPipelineErrorResponse, CreateOverlayInputSetForPipelineMutationQueryParams, CreateOverlayInputSetForPipelineOkResponse, CreateOverlayInputSetForPipelineProps, CreateOverlayInputSetForPipelineRequestBody, } from './hooks/useCreateOverlayInputSetForPipelineMutation';
@@ -15,6 +19,8 @@ export type { DeleteTriggerErrorResponse, DeleteTriggerMutationPathParams, Delet
15
19
  export { deleteTrigger, useDeleteTriggerMutation } from './hooks/useDeleteTriggerMutation';
16
20
  export type { GetAnnotationFullContentErrorResponse, GetAnnotationFullContentOkResponse, GetAnnotationFullContentProps, GetAnnotationFullContentQueryPathParams, GetAnnotationFullContentQueryQueryParams, } from './hooks/useGetAnnotationFullContentQuery';
17
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';
18
24
  export type { GetBatchInputSetsMetadataErrorResponse, GetBatchInputSetsMetadataMutationQueryParams, GetBatchInputSetsMetadataOkResponse, GetBatchInputSetsMetadataProps, GetBatchInputSetsMetadataRequestBody, } from './hooks/useGetBatchInputSetsMetadataMutation';
19
25
  export { getBatchInputSetsMetadata, useGetBatchInputSetsMetadataMutation, } from './hooks/useGetBatchInputSetsMetadataMutation';
20
26
  export type { GetExecutionBranchesListErrorResponse, GetExecutionBranchesListOkResponse, GetExecutionBranchesListProps, GetExecutionBranchesListQueryQueryParams, } from './hooks/useGetExecutionBranchesListQuery';
@@ -33,6 +39,8 @@ export type { GetFilterErrorResponse, GetFilterOkResponse, GetFilterProps, GetFi
33
39
  export { getFilter, useGetFilterQuery } from './hooks/useGetFilterQuery';
34
40
  export type { GetGitTriggerEventDetailsErrorResponse, GetGitTriggerEventDetailsOkResponse, GetGitTriggerEventDetailsProps, } from './hooks/useGetGitTriggerEventDetailsQuery';
35
41
  export { getGitTriggerEventDetails, useGetGitTriggerEventDetailsQuery, } from './hooks/useGetGitTriggerEventDetailsQuery';
42
+ export type { GetHarnessApprovalInstanceAuthorizationErrorResponse, GetHarnessApprovalInstanceAuthorizationOkResponse, GetHarnessApprovalInstanceAuthorizationProps, GetHarnessApprovalInstanceAuthorizationQueryPathParams, } from './hooks/useGetHarnessApprovalInstanceAuthorizationQuery';
43
+ export { getHarnessApprovalInstanceAuthorization, useGetHarnessApprovalInstanceAuthorizationQuery, } from './hooks/useGetHarnessApprovalInstanceAuthorizationQuery';
36
44
  export type { GetInputSetForPipelineErrorResponse, GetInputSetForPipelineOkResponse, GetInputSetForPipelineProps, GetInputSetForPipelineQueryPathParams, GetInputSetForPipelineQueryQueryParams, } from './hooks/useGetInputSetForPipelineQuery';
37
45
  export { getInputSetForPipeline, useGetInputSetForPipelineQuery, } from './hooks/useGetInputSetForPipelineQuery';
38
46
  export type { GetInputSetsListForPipelineErrorResponse, GetInputSetsListForPipelineOkResponse, GetInputSetsListForPipelineProps, GetInputSetsListForPipelineQueryQueryParams, } from './hooks/useGetInputSetsListForPipelineQuery';
@@ -91,20 +99,27 @@ export type { UpdateTriggerErrorResponse, UpdateTriggerMutationPathParams, Updat
91
99
  export { updateTrigger, useUpdateTriggerMutation } from './hooks/useUpdateTriggerMutation';
92
100
  export type { UpdateTriggerStatusErrorResponse, UpdateTriggerStatusMutationPathParams, UpdateTriggerStatusMutationQueryParams, UpdateTriggerStatusOkResponse, UpdateTriggerStatusProps, } from './hooks/useUpdateTriggerStatusMutation';
93
101
  export { updateTriggerStatus, useUpdateTriggerStatusMutation, } from './hooks/useUpdateTriggerStatusMutation';
94
- export type { CreateTriggerBodyRequestBody } from './requestBodies/CreateTriggerBodyRequestBody';
102
+ export type { ClonePipelinePropertiesRequestBody } from './requestBodies/ClonePipelinePropertiesRequestBody';
95
103
  export type { FilterDtoRequestBody } from './requestBodies/FilterDtoRequestBody';
96
104
  export type { FilterPropertiesRequestBody } from './requestBodies/FilterPropertiesRequestBody';
105
+ export type { UpdateTriggerBodyRequestBody } from './requestBodies/UpdateTriggerBodyRequestBody';
97
106
  export type { AbortedBy } from './schemas/AbortedBy';
98
107
  export type { AccessControlCheckError } from './schemas/AccessControlCheckError';
99
108
  export type { AdviserIssuer } from './schemas/AdviserIssuer';
100
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';
101
113
  export type { BatchInputSetsApiRequest } from './schemas/BatchInputSetsApiRequest';
102
114
  export type { BuildDetails } from './schemas/BuildDetails';
103
115
  export type { CacheResponseMetadata } from './schemas/CacheResponseMetadata';
104
116
  export type { ChildExecutionDetailDto } from './schemas/ChildExecutionDetailDto';
117
+ export type { CloneConfig } from './schemas/CloneConfig';
118
+ export type { ClonePipelineProperties } from './schemas/ClonePipelineProperties';
105
119
  export type { ConnectorCheckResponse } from './schemas/ConnectorCheckResponse';
106
120
  export type { ConnectorWrapperResponse } from './schemas/ConnectorWrapperResponse';
107
121
  export type { DelegateInfo } from './schemas/DelegateInfo';
122
+ export type { DestinationPipelineConfig } from './schemas/DestinationPipelineConfig';
108
123
  export type { EdgeLayoutList } from './schemas/EdgeLayoutList';
109
124
  export type { EntityGitDetails } from './schemas/EntityGitDetails';
110
125
  export type { EntityValidityDetails } from './schemas/EntityValidityDetails';
@@ -126,6 +141,8 @@ export type { FilterDto } from './schemas/FilterDto';
126
141
  export type { FilterProperties } from './schemas/FilterProperties';
127
142
  export type { GovernanceMetadata } from './schemas/GovernanceMetadata';
128
143
  export type { GraphLayoutNode } from './schemas/GraphLayoutNode';
144
+ export type { HarnessApprovalActivityRequest } from './schemas/HarnessApprovalActivityRequest';
145
+ export type { HarnessApprovalInstanceAuthorization } from './schemas/HarnessApprovalInstanceAuthorization';
129
146
  export type { InputSetDetails } from './schemas/InputSetDetails';
130
147
  export type { InputSetError } from './schemas/InputSetError';
131
148
  export type { InputSetErrorResponse } from './schemas/InputSetErrorResponse';
@@ -167,6 +184,7 @@ export type { PipelineExecutionNotes } from './schemas/PipelineExecutionNotes';
167
184
  export type { PipelineExecutionSummary } from './schemas/PipelineExecutionSummary';
168
185
  export type { PipelineFilterProperties } from './schemas/PipelineFilterProperties';
169
186
  export type { PipelineInputResponse } from './schemas/PipelineInputResponse';
187
+ export type { PipelineSaveResponse } from './schemas/PipelineSaveResponse';
170
188
  export type { PipelineStageInfo } from './schemas/PipelineStageInfo';
171
189
  export type { PipelineWrapperResponse } from './schemas/PipelineWrapperResponse';
172
190
  export type { PmsPipelineListBranchesResponse } from './schemas/PmsPipelineListBranchesResponse';
@@ -178,13 +196,16 @@ export type { PreFlightDto } from './schemas/PreFlightDto';
178
196
  export type { PreFlightEntityErrorInfo } from './schemas/PreFlightEntityErrorInfo';
179
197
  export type { PreFlightErrorInfo } from './schemas/PreFlightErrorInfo';
180
198
  export type { PreFlightResolution } from './schemas/PreFlightResolution';
199
+ export type { PublicAccessResponse } from './schemas/PublicAccessResponse';
181
200
  export type { RecentExecutionInfoDto } from './schemas/RecentExecutionInfoDto';
182
201
  export type { ResourceScope } from './schemas/ResourceScope';
183
202
  export type { ResponseAnnotationContentResponseDto } from './schemas/ResponseAnnotationContentResponseDto';
203
+ export type { ResponseApprovalInstanceResponse } from './schemas/ResponseApprovalInstanceResponse';
184
204
  export type { ResponseBoolean } from './schemas/ResponseBoolean';
185
205
  export type { ResponseExecutionDataResponse } from './schemas/ResponseExecutionDataResponse';
186
206
  export type { ResponseExecutionGraph } from './schemas/ResponseExecutionGraph';
187
207
  export type { ResponseFilterDto } from './schemas/ResponseFilterDto';
208
+ export type { ResponseHarnessApprovalInstanceAuthorization } from './schemas/ResponseHarnessApprovalInstanceAuthorization';
188
209
  export type { ResponseInputSetResponse } from './schemas/ResponseInputSetResponse';
189
210
  export type { ResponseInputSetTemplateResponse } from './schemas/ResponseInputSetTemplateResponse';
190
211
  export type { ResponseMapStringMapStringListString } from './schemas/ResponseMapStringMapStringListString';
@@ -204,6 +225,7 @@ export type { ResponsePipelineAnnotationsResponseDto } from './schemas/ResponseP
204
225
  export type { ResponsePipelineExecutionDetail } from './schemas/ResponsePipelineExecutionDetail';
205
226
  export type { ResponsePipelineExecutionInterrupt } from './schemas/ResponsePipelineExecutionInterrupt';
206
227
  export type { ResponsePipelineExecutionNotes } from './schemas/ResponsePipelineExecutionNotes';
228
+ export type { ResponsePipelineSaveResponse } from './schemas/ResponsePipelineSaveResponse';
207
229
  export type { ResponsePmsPipelineListBranchesResponse } from './schemas/ResponsePmsPipelineListBranchesResponse';
208
230
  export type { ResponsePmsPipelineListRepoResponse } from './schemas/ResponsePmsPipelineListRepoResponse';
209
231
  export type { ResponsePmsPipelineSummaryResponse } from './schemas/ResponsePmsPipelineSummaryResponse';
@@ -219,6 +241,7 @@ export type { RetryNodeMetadata } from './schemas/RetryNodeMetadata';
219
241
  export type { RetryStagesMetadataDto } from './schemas/RetryStagesMetadataDto';
220
242
  export type { SkipInfo } from './schemas/SkipInfo';
221
243
  export type { Sort } from './schemas/Sort';
244
+ export type { SourceIdentifierConfig } from './schemas/SourceIdentifierConfig';
222
245
  export type { StackTraceElement } from './schemas/StackTraceElement';
223
246
  export type { StrategyMetadata } from './schemas/StrategyMetadata';
224
247
  export type { SystemIssuer } from './schemas/SystemIssuer';
@@ -1,4 +1,6 @@
1
+ export { addHarnessApprovalActivity, useAddHarnessApprovalActivityMutation, } from './hooks/useAddHarnessApprovalActivityMutation';
1
2
  export { canRetryExecution, useCanRetryExecutionQuery } from './hooks/useCanRetryExecutionQuery';
3
+ export { clonePipeline, useClonePipelineMutation } from './hooks/useClonePipelineMutation';
2
4
  export { createInputSetForPipeline, useCreateInputSetForPipelineMutation, } from './hooks/useCreateInputSetForPipelineMutation';
3
5
  export { createOverlayInputSetForPipeline, useCreateOverlayInputSetForPipelineMutation, } from './hooks/useCreateOverlayInputSetForPipelineMutation';
4
6
  export { createTrigger, useCreateTriggerMutation } from './hooks/useCreateTriggerMutation';
@@ -6,6 +8,7 @@ export { deleteFilter, useDeleteFilterMutation } from './hooks/useDeleteFilterMu
6
8
  export { deleteInputSetForPipeline, useDeleteInputSetForPipelineMutation, } from './hooks/useDeleteInputSetForPipelineMutation';
7
9
  export { deleteTrigger, useDeleteTriggerMutation } from './hooks/useDeleteTriggerMutation';
8
10
  export { getAnnotationFullContent, useGetAnnotationFullContentQuery, } from './hooks/useGetAnnotationFullContentQuery';
11
+ export { getApprovalInstance, useGetApprovalInstanceQuery, } from './hooks/useGetApprovalInstanceQuery';
9
12
  export { getBatchInputSetsMetadata, useGetBatchInputSetsMetadataMutation, } from './hooks/useGetBatchInputSetsMetadataMutation';
10
13
  export { getExecutionBranchesList, useGetExecutionBranchesListQuery, } from './hooks/useGetExecutionBranchesListQuery';
11
14
  export { getExecutionData, useGetExecutionDataQuery } from './hooks/useGetExecutionDataQuery';
@@ -15,6 +18,7 @@ export { getExecutionRepositoriesList, useGetExecutionRepositoriesListQuery, } f
15
18
  export { getFilterList, useGetFilterListQuery } from './hooks/useGetFilterListQuery';
16
19
  export { getFilter, useGetFilterQuery } from './hooks/useGetFilterQuery';
17
20
  export { getGitTriggerEventDetails, useGetGitTriggerEventDetailsQuery, } from './hooks/useGetGitTriggerEventDetailsQuery';
21
+ export { getHarnessApprovalInstanceAuthorization, useGetHarnessApprovalInstanceAuthorizationQuery, } from './hooks/useGetHarnessApprovalInstanceAuthorizationQuery';
18
22
  export { getInputSetForPipeline, useGetInputSetForPipelineQuery, } from './hooks/useGetInputSetForPipelineQuery';
19
23
  export { getInputSetsListForPipeline, useGetInputSetsListForPipelineQuery, } from './hooks/useGetInputSetsListForPipelineQuery';
20
24
  export { getInputsetYamlV2, useGetInputsetYamlV2Query } from './hooks/useGetInputsetYamlV2Query';
@@ -0,0 +1,2 @@
1
+ import type { ClonePipelineProperties } from '../schemas/ClonePipelineProperties';
2
+ export type ClonePipelinePropertiesRequestBody = ClonePipelineProperties;
@@ -0,0 +1 @@
1
+ export type UpdateTriggerBodyRequestBody = string;
@@ -0,0 +1,3 @@
1
+ export interface ApprovalInstanceDetailsDto {
2
+ [key: string]: any;
3
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,20 @@
1
+ import type { ApprovalInstanceDetailsDto } from '../schemas/ApprovalInstanceDetailsDto';
2
+ export interface ApprovalInstanceResponse {
3
+ /**
4
+ * @format int64
5
+ */
6
+ createdAt?: number;
7
+ /**
8
+ * @format int64
9
+ */
10
+ deadline?: number;
11
+ details: ApprovalInstanceDetailsDto;
12
+ errorMessage?: string;
13
+ id?: string;
14
+ /**
15
+ * @format int64
16
+ */
17
+ lastModifiedAt?: number;
18
+ status: 'ABORTED' | 'APPROVED' | 'EXPIRED' | 'FAILED' | 'REJECTED' | 'WAITING';
19
+ type: 'CustomApproval' | 'HarnessApproval' | 'JiraApproval' | 'ServiceNowApproval';
20
+ }
@@ -0,0 +1,4 @@
1
+ export interface ApproverInput {
2
+ name?: string;
3
+ value: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,6 @@
1
+ export interface CloneConfig {
2
+ connectors?: boolean;
3
+ inputSets?: boolean;
4
+ templates?: boolean;
5
+ triggers?: boolean;
6
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,9 @@
1
+ import type { CloneConfig } from '../schemas/CloneConfig';
2
+ import type { DestinationPipelineConfig } from '../schemas/DestinationPipelineConfig';
3
+ import type { SourceIdentifierConfig } from '../schemas/SourceIdentifierConfig';
4
+ export interface ClonePipelineProperties {
5
+ cloneConfig?: CloneConfig;
6
+ destinationConfig?: DestinationPipelineConfig;
7
+ enableDAG?: boolean;
8
+ sourceConfig?: SourceIdentifierConfig;
9
+ }
@@ -0,0 +1,10 @@
1
+ export interface DestinationPipelineConfig {
2
+ description?: string;
3
+ orgIdentifier?: string;
4
+ pipelineIdentifier?: string;
5
+ pipelineName?: string;
6
+ projectIdentifier?: string;
7
+ tags?: {
8
+ [key: string]: string;
9
+ };
10
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { ApproverInput } from '../schemas/ApproverInput';
2
+ export interface HarnessApprovalActivityRequest {
3
+ action: 'APPROVE' | 'REJECT';
4
+ approverInputs?: ApproverInput[];
5
+ comments?: string;
6
+ }
@@ -0,0 +1,4 @@
1
+ export interface HarnessApprovalInstanceAuthorization {
2
+ authorized?: boolean;
3
+ reason?: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { GovernanceMetadata } from '../schemas/GovernanceMetadata';
2
+ import type { PublicAccessResponse } from '../schemas/PublicAccessResponse';
3
+ export interface PipelineSaveResponse {
4
+ governanceMetadata?: GovernanceMetadata;
5
+ identifier?: string;
6
+ publicAccessResponse?: PublicAccessResponse;
7
+ }
@@ -0,0 +1,4 @@
1
+ export interface PublicAccessResponse {
2
+ errorMessage?: string;
3
+ public?: boolean;
4
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -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
+ }
@@ -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,9 @@
1
+ import type { PipelineSaveResponse } from '../schemas/PipelineSaveResponse';
2
+ export interface ResponsePipelineSaveResponse {
3
+ correlationId?: string;
4
+ data?: PipelineSaveResponse;
5
+ metaData?: {
6
+ [key: string]: any;
7
+ };
8
+ status?: 'ERROR' | 'FAILURE' | 'SUCCESS';
9
+ }
@@ -0,0 +1,6 @@
1
+ export interface SourceIdentifierConfig {
2
+ branch?: string;
3
+ orgIdentifier?: string;
4
+ pipelineIdentifier?: string;
5
+ projectIdentifier?: string;
6
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-pipeline-swagger-service-client",
3
- "version": "1.17.0",
3
+ "version": "1.19.0",
4
4
  "description": "Harness React pipeline service client - Pipeline APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",
@@ -1 +0,0 @@
1
- export type CreateTriggerBodyRequestBody = string;