@harnessio/react-pipeline-swagger-service-client 1.16.0 → 1.18.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 (31) hide show
  1. package/dist/pipeline-swagger-service/src/services/hooks/useClonePipelineMutation.d.ts +35 -0
  2. package/dist/pipeline-swagger-service/src/services/hooks/useClonePipelineMutation.js +15 -0
  3. package/dist/pipeline-swagger-service/src/services/hooks/useCreateInputSetForPipelineMutation.d.ts +2 -2
  4. package/dist/pipeline-swagger-service/src/services/hooks/useCreateOverlayInputSetForPipelineMutation.d.ts +2 -2
  5. package/dist/pipeline-swagger-service/src/services/hooks/useCreateTriggerMutation.d.ts +2 -2
  6. package/dist/pipeline-swagger-service/src/services/hooks/useTriggerEventHistoryNewQuery.d.ts +41 -0
  7. package/dist/pipeline-swagger-service/src/services/hooks/useTriggerEventHistoryNewQuery.js +14 -0
  8. package/dist/pipeline-swagger-service/src/services/hooks/useUpdateInputSetForPipelineMutation.d.ts +2 -2
  9. package/dist/pipeline-swagger-service/src/services/hooks/useUpdateTriggerMutation.d.ts +2 -2
  10. package/dist/pipeline-swagger-service/src/services/index.d.ts +13 -1
  11. package/dist/pipeline-swagger-service/src/services/index.js +2 -0
  12. package/dist/pipeline-swagger-service/src/services/requestBodies/ClonePipelinePropertiesRequestBody.d.ts +2 -0
  13. package/dist/pipeline-swagger-service/src/services/requestBodies/ClonePipelinePropertiesRequestBody.js +1 -0
  14. package/dist/pipeline-swagger-service/src/services/requestBodies/UpdateTriggerBodyRequestBody.d.ts +1 -0
  15. package/dist/pipeline-swagger-service/src/services/schemas/CloneConfig.d.ts +6 -0
  16. package/dist/pipeline-swagger-service/src/services/schemas/CloneConfig.js +4 -0
  17. package/dist/pipeline-swagger-service/src/services/schemas/ClonePipelineProperties.d.ts +9 -0
  18. package/dist/pipeline-swagger-service/src/services/schemas/ClonePipelineProperties.js +1 -0
  19. package/dist/pipeline-swagger-service/src/services/schemas/DestinationPipelineConfig.d.ts +10 -0
  20. package/dist/pipeline-swagger-service/src/services/schemas/DestinationPipelineConfig.js +4 -0
  21. package/dist/pipeline-swagger-service/src/services/schemas/PipelineSaveResponse.d.ts +7 -0
  22. package/dist/pipeline-swagger-service/src/services/schemas/PipelineSaveResponse.js +1 -0
  23. package/dist/pipeline-swagger-service/src/services/schemas/PublicAccessResponse.d.ts +4 -0
  24. package/dist/pipeline-swagger-service/src/services/schemas/PublicAccessResponse.js +4 -0
  25. package/dist/pipeline-swagger-service/src/services/schemas/ResponsePipelineSaveResponse.d.ts +9 -0
  26. package/dist/pipeline-swagger-service/src/services/schemas/ResponsePipelineSaveResponse.js +1 -0
  27. package/dist/pipeline-swagger-service/src/services/schemas/SourceIdentifierConfig.d.ts +6 -0
  28. package/dist/pipeline-swagger-service/src/services/schemas/SourceIdentifierConfig.js +4 -0
  29. package/package.json +1 -1
  30. package/dist/pipeline-swagger-service/src/services/requestBodies/CreateTriggerBodyRequestBody.d.ts +0 -1
  31. /package/dist/pipeline-swagger-service/src/services/requestBodies/{CreateTriggerBodyRequestBody.js → UpdateTriggerBodyRequestBody.js} +0 -0
@@ -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,41 @@
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 TriggerEventHistoryNewQueryPathParams {
8
+ triggerIdentifier: string;
9
+ }
10
+ export interface TriggerEventHistoryNewQueryQueryParams {
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
+ * @default true
29
+ */
30
+ shouldSendTriggerPayload?: boolean;
31
+ }
32
+ export type TriggerEventHistoryNewOkResponse = ResponseWithPagination<ResponsePageNgTriggerEventHistoryResponse>;
33
+ export type TriggerEventHistoryNewErrorResponse = Failure | Error;
34
+ export interface TriggerEventHistoryNewProps extends TriggerEventHistoryNewQueryPathParams, Omit<FetcherOptions<TriggerEventHistoryNewQueryQueryParams, unknown>, 'url'> {
35
+ queryParams: TriggerEventHistoryNewQueryQueryParams;
36
+ }
37
+ export declare function triggerEventHistoryNew(props: TriggerEventHistoryNewProps): Promise<TriggerEventHistoryNewOkResponse>;
38
+ /**
39
+ *
40
+ */
41
+ export declare function useTriggerEventHistoryNewQuery(props: TriggerEventHistoryNewProps, options?: Omit<UseQueryOptions<TriggerEventHistoryNewOkResponse, TriggerEventHistoryNewErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<TriggerEventHistoryNewOkResponse, TriggerEventHistoryNewErrorResponse>;
@@ -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 triggerEventHistoryNew(props) {
7
+ return fetcher(Object.assign({ url: `/triggers/eventHistory/${props.triggerIdentifier}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useTriggerEventHistoryNewQuery(props, options) {
13
+ return useQuery(['triggerEventHistoryNew', props.triggerIdentifier, props.queryParams], ({ signal }) => triggerEventHistoryNew(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,8 @@
1
1
  export type { GetPathParamsType, ResponseWithPagination } from './helpers';
2
2
  export type { CanRetryExecutionErrorResponse, CanRetryExecutionOkResponse, CanRetryExecutionProps, CanRetryExecutionQueryPathParams, CanRetryExecutionQueryQueryParams, } from './hooks/useCanRetryExecutionQuery';
3
3
  export { canRetryExecution, useCanRetryExecutionQuery } from './hooks/useCanRetryExecutionQuery';
4
+ export type { ClonePipelineErrorResponse, ClonePipelineMutationQueryParams, ClonePipelineOkResponse, ClonePipelineProps, ClonePipelineRequestBody, } from './hooks/useClonePipelineMutation';
5
+ export { clonePipeline, useClonePipelineMutation } from './hooks/useClonePipelineMutation';
4
6
  export type { CreateInputSetForPipelineErrorResponse, CreateInputSetForPipelineMutationQueryParams, CreateInputSetForPipelineOkResponse, CreateInputSetForPipelineProps, CreateInputSetForPipelineRequestBody, } from './hooks/useCreateInputSetForPipelineMutation';
5
7
  export { createInputSetForPipeline, useCreateInputSetForPipelineMutation, } from './hooks/useCreateInputSetForPipelineMutation';
6
8
  export type { CreateOverlayInputSetForPipelineErrorResponse, CreateOverlayInputSetForPipelineMutationQueryParams, CreateOverlayInputSetForPipelineOkResponse, CreateOverlayInputSetForPipelineProps, CreateOverlayInputSetForPipelineRequestBody, } from './hooks/useCreateOverlayInputSetForPipelineMutation';
@@ -75,6 +77,8 @@ export type { RetryHistoryErrorResponse, RetryHistoryOkResponse, RetryHistoryPro
75
77
  export { retryHistory, useRetryHistoryQuery } from './hooks/useRetryHistoryQuery';
76
78
  export type { StartPreflightCheckErrorResponse, StartPreflightCheckMutationQueryParams, StartPreflightCheckOkResponse, StartPreflightCheckProps, } from './hooks/useStartPreflightCheckMutation';
77
79
  export { startPreflightCheck, useStartPreflightCheckMutation, } from './hooks/useStartPreflightCheckMutation';
80
+ export type { TriggerEventHistoryNewErrorResponse, TriggerEventHistoryNewOkResponse, TriggerEventHistoryNewProps, TriggerEventHistoryNewQueryPathParams, TriggerEventHistoryNewQueryQueryParams, } from './hooks/useTriggerEventHistoryNewQuery';
81
+ export { triggerEventHistoryNew, useTriggerEventHistoryNewQuery, } from './hooks/useTriggerEventHistoryNewQuery';
78
82
  export type { TriggerEventHistoryErrorResponse, TriggerEventHistoryOkResponse, TriggerEventHistoryProps, TriggerEventHistoryQueryPathParams, TriggerEventHistoryQueryQueryParams, } from './hooks/useTriggerEventHistoryQuery';
79
83
  export { triggerEventHistory, useTriggerEventHistoryQuery, } from './hooks/useTriggerEventHistoryQuery';
80
84
  export type { TriggerHistoryEventCorrelationV2ErrorResponse, TriggerHistoryEventCorrelationV2OkResponse, TriggerHistoryEventCorrelationV2Props, TriggerHistoryEventCorrelationV2QueryPathParams, TriggerHistoryEventCorrelationV2QueryQueryParams, } from './hooks/useTriggerHistoryEventCorrelationV2Query';
@@ -89,9 +93,10 @@ export type { UpdateTriggerErrorResponse, UpdateTriggerMutationPathParams, Updat
89
93
  export { updateTrigger, useUpdateTriggerMutation } from './hooks/useUpdateTriggerMutation';
90
94
  export type { UpdateTriggerStatusErrorResponse, UpdateTriggerStatusMutationPathParams, UpdateTriggerStatusMutationQueryParams, UpdateTriggerStatusOkResponse, UpdateTriggerStatusProps, } from './hooks/useUpdateTriggerStatusMutation';
91
95
  export { updateTriggerStatus, useUpdateTriggerStatusMutation, } from './hooks/useUpdateTriggerStatusMutation';
92
- export type { CreateTriggerBodyRequestBody } from './requestBodies/CreateTriggerBodyRequestBody';
96
+ export type { ClonePipelinePropertiesRequestBody } from './requestBodies/ClonePipelinePropertiesRequestBody';
93
97
  export type { FilterDtoRequestBody } from './requestBodies/FilterDtoRequestBody';
94
98
  export type { FilterPropertiesRequestBody } from './requestBodies/FilterPropertiesRequestBody';
99
+ export type { UpdateTriggerBodyRequestBody } from './requestBodies/UpdateTriggerBodyRequestBody';
95
100
  export type { AbortedBy } from './schemas/AbortedBy';
96
101
  export type { AccessControlCheckError } from './schemas/AccessControlCheckError';
97
102
  export type { AdviserIssuer } from './schemas/AdviserIssuer';
@@ -100,9 +105,12 @@ export type { BatchInputSetsApiRequest } from './schemas/BatchInputSetsApiReques
100
105
  export type { BuildDetails } from './schemas/BuildDetails';
101
106
  export type { CacheResponseMetadata } from './schemas/CacheResponseMetadata';
102
107
  export type { ChildExecutionDetailDto } from './schemas/ChildExecutionDetailDto';
108
+ export type { CloneConfig } from './schemas/CloneConfig';
109
+ export type { ClonePipelineProperties } from './schemas/ClonePipelineProperties';
103
110
  export type { ConnectorCheckResponse } from './schemas/ConnectorCheckResponse';
104
111
  export type { ConnectorWrapperResponse } from './schemas/ConnectorWrapperResponse';
105
112
  export type { DelegateInfo } from './schemas/DelegateInfo';
113
+ export type { DestinationPipelineConfig } from './schemas/DestinationPipelineConfig';
106
114
  export type { EdgeLayoutList } from './schemas/EdgeLayoutList';
107
115
  export type { EntityGitDetails } from './schemas/EntityGitDetails';
108
116
  export type { EntityValidityDetails } from './schemas/EntityValidityDetails';
@@ -165,6 +173,7 @@ export type { PipelineExecutionNotes } from './schemas/PipelineExecutionNotes';
165
173
  export type { PipelineExecutionSummary } from './schemas/PipelineExecutionSummary';
166
174
  export type { PipelineFilterProperties } from './schemas/PipelineFilterProperties';
167
175
  export type { PipelineInputResponse } from './schemas/PipelineInputResponse';
176
+ export type { PipelineSaveResponse } from './schemas/PipelineSaveResponse';
168
177
  export type { PipelineStageInfo } from './schemas/PipelineStageInfo';
169
178
  export type { PipelineWrapperResponse } from './schemas/PipelineWrapperResponse';
170
179
  export type { PmsPipelineListBranchesResponse } from './schemas/PmsPipelineListBranchesResponse';
@@ -176,6 +185,7 @@ export type { PreFlightDto } from './schemas/PreFlightDto';
176
185
  export type { PreFlightEntityErrorInfo } from './schemas/PreFlightEntityErrorInfo';
177
186
  export type { PreFlightErrorInfo } from './schemas/PreFlightErrorInfo';
178
187
  export type { PreFlightResolution } from './schemas/PreFlightResolution';
188
+ export type { PublicAccessResponse } from './schemas/PublicAccessResponse';
179
189
  export type { RecentExecutionInfoDto } from './schemas/RecentExecutionInfoDto';
180
190
  export type { ResourceScope } from './schemas/ResourceScope';
181
191
  export type { ResponseAnnotationContentResponseDto } from './schemas/ResponseAnnotationContentResponseDto';
@@ -202,6 +212,7 @@ export type { ResponsePipelineAnnotationsResponseDto } from './schemas/ResponseP
202
212
  export type { ResponsePipelineExecutionDetail } from './schemas/ResponsePipelineExecutionDetail';
203
213
  export type { ResponsePipelineExecutionInterrupt } from './schemas/ResponsePipelineExecutionInterrupt';
204
214
  export type { ResponsePipelineExecutionNotes } from './schemas/ResponsePipelineExecutionNotes';
215
+ export type { ResponsePipelineSaveResponse } from './schemas/ResponsePipelineSaveResponse';
205
216
  export type { ResponsePmsPipelineListBranchesResponse } from './schemas/ResponsePmsPipelineListBranchesResponse';
206
217
  export type { ResponsePmsPipelineListRepoResponse } from './schemas/ResponsePmsPipelineListRepoResponse';
207
218
  export type { ResponsePmsPipelineSummaryResponse } from './schemas/ResponsePmsPipelineSummaryResponse';
@@ -217,6 +228,7 @@ export type { RetryNodeMetadata } from './schemas/RetryNodeMetadata';
217
228
  export type { RetryStagesMetadataDto } from './schemas/RetryStagesMetadataDto';
218
229
  export type { SkipInfo } from './schemas/SkipInfo';
219
230
  export type { Sort } from './schemas/Sort';
231
+ export type { SourceIdentifierConfig } from './schemas/SourceIdentifierConfig';
220
232
  export type { StackTraceElement } from './schemas/StackTraceElement';
221
233
  export type { StrategyMetadata } from './schemas/StrategyMetadata';
222
234
  export type { SystemIssuer } from './schemas/SystemIssuer';
@@ -1,4 +1,5 @@
1
1
  export { canRetryExecution, useCanRetryExecutionQuery } from './hooks/useCanRetryExecutionQuery';
2
+ export { clonePipeline, useClonePipelineMutation } from './hooks/useClonePipelineMutation';
2
3
  export { createInputSetForPipeline, useCreateInputSetForPipelineMutation, } from './hooks/useCreateInputSetForPipelineMutation';
3
4
  export { createOverlayInputSetForPipeline, useCreateOverlayInputSetForPipelineMutation, } from './hooks/useCreateOverlayInputSetForPipelineMutation';
4
5
  export { createTrigger, useCreateTriggerMutation } from './hooks/useCreateTriggerMutation';
@@ -36,6 +37,7 @@ export { handleStageInterrupt, useHandleStageInterruptMutation, } from './hooks/
36
37
  export { postFilter, usePostFilterMutation } from './hooks/usePostFilterMutation';
37
38
  export { retryHistory, useRetryHistoryQuery } from './hooks/useRetryHistoryQuery';
38
39
  export { startPreflightCheck, useStartPreflightCheckMutation, } from './hooks/useStartPreflightCheckMutation';
40
+ export { triggerEventHistoryNew, useTriggerEventHistoryNewQuery, } from './hooks/useTriggerEventHistoryNewQuery';
39
41
  export { triggerEventHistory, useTriggerEventHistoryQuery, } from './hooks/useTriggerEventHistoryQuery';
40
42
  export { triggerHistoryEventCorrelationV2, useTriggerHistoryEventCorrelationV2Query, } from './hooks/useTriggerHistoryEventCorrelationV2Query';
41
43
  export { updateFilter, useUpdateFilterMutation } from './hooks/useUpdateFilterMutation';
@@ -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,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,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 { 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.16.0",
3
+ "version": "1.18.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;