@harnessio/react-rmg-service-client 0.73.0 → 0.75.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/rmg-service/src/services/hooks/useGetOrchestrationExecutionActivitiesPaginatedQuery.d.ts +1 -1
- package/dist/rmg-service/src/services/hooks/useGetOrchestrationExecutionPhaseInputsQuery.d.ts +27 -0
- package/dist/rmg-service/src/services/hooks/useGetOrchestrationExecutionPhaseInputsQuery.js +19 -0
- package/dist/rmg-service/src/services/hooks/useGetOrchestrationProcessExecutionsQuery.d.ts +1 -1
- package/dist/rmg-service/src/services/hooks/useGetPhaseRetryHistoryByIdentifiersQuery.d.ts +31 -0
- package/dist/rmg-service/src/services/hooks/useGetPhaseRetryHistoryByIdentifiersQuery.js +19 -0
- package/dist/rmg-service/src/services/hooks/usePostPhaseActionMutation.d.ts +28 -0
- package/dist/rmg-service/src/services/hooks/usePostPhaseActionMutation.js +14 -0
- package/dist/rmg-service/src/services/index.d.ts +14 -0
- package/dist/rmg-service/src/services/index.js +3 -0
- package/dist/rmg-service/src/services/requestBodies/PhaseActionRequestRequestBody.d.ts +2 -0
- package/dist/rmg-service/src/services/requestBodies/PhaseActionRequestRequestBody.js +1 -0
- package/dist/rmg-service/src/services/responses/PhaseActionResponseResponse.d.ts +2 -0
- package/dist/rmg-service/src/services/responses/PhaseActionResponseResponse.js +1 -0
- package/dist/rmg-service/src/services/schemas/OrchestrationExecutionPhase.d.ts +9 -0
- package/dist/rmg-service/src/services/schemas/OrchestrationPhaseYaml.d.ts +9 -0
- package/dist/rmg-service/src/services/schemas/OrchestrationStatus.d.ts +1 -1
- package/dist/rmg-service/src/services/schemas/PhaseActionRequest.d.ts +11 -0
- package/dist/rmg-service/src/services/schemas/PhaseActionRequest.js +1 -0
- package/dist/rmg-service/src/services/schemas/PhaseActionResponse.d.ts +10 -0
- package/dist/rmg-service/src/services/schemas/PhaseActionResponse.js +4 -0
- package/dist/rmg-service/src/services/schemas/PhaseExecutionInputDto.d.ts +19 -0
- package/dist/rmg-service/src/services/schemas/PhaseExecutionInputDto.js +1 -0
- package/dist/rmg-service/src/services/schemas/PhaseRetryHistoryResponse.d.ts +19 -0
- package/dist/rmg-service/src/services/schemas/PhaseRetryHistoryResponse.js +1 -0
- package/dist/rmg-service/src/services/schemas/PhaseRetryInfo.d.ts +47 -0
- package/dist/rmg-service/src/services/schemas/PhaseRetryInfo.js +1 -0
- package/dist/rmg-service/src/services/schemas/StatusInfo.d.ts +13 -0
- package/dist/rmg-service/src/services/schemas/StatusInfo.js +4 -0
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ export interface GetOrchestrationExecutionActivitiesPaginatedQueryQueryParams {
|
|
|
12
12
|
page?: number;
|
|
13
13
|
size?: number;
|
|
14
14
|
sort?: string[];
|
|
15
|
-
status?: Array<'ABORTED' | 'FAILED' | 'IGNORED' | 'ON_HOLD' | 'OUTPUT_WAITING' | 'PIPELINE_WAITING_FOR_USER_ACTION' | 'QUEUED' | 'RETRIED' | 'RUNNING' | 'SCHEDULED' | 'SKIPPED' | 'SUCCEEDED'>;
|
|
15
|
+
status?: Array<'ABORTED' | 'FAILED' | 'IGNORED' | 'ON_HOLD' | 'OUTPUT_WAITING' | 'PAUSED' | 'PIPELINE_WAITING_FOR_USER_ACTION' | 'QUEUED' | 'RETRIED' | 'RUNNING' | 'SCHEDULED' | 'SKIPPED' | 'SUCCEEDED'>;
|
|
16
16
|
type?: Array<'MANUAL' | 'PIPELINE' | 'SUBPROCESS'>;
|
|
17
17
|
phaseIdentifier?: string;
|
|
18
18
|
/**
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ActivityExecutionInputsResponseResponse } from '../responses/ActivityExecutionInputsResponseResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetOrchestrationExecutionPhaseInputsQueryPathParams {
|
|
7
|
+
releaseId: string;
|
|
8
|
+
phaseIdentifier: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GetOrchestrationExecutionPhaseInputsQueryQueryParams {
|
|
11
|
+
phaseExecutionId?: string;
|
|
12
|
+
orgIdentifier?: string;
|
|
13
|
+
projectIdentifier?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface GetOrchestrationExecutionPhaseInputsQueryHeaderParams {
|
|
16
|
+
'Harness-Account': string;
|
|
17
|
+
}
|
|
18
|
+
export type GetOrchestrationExecutionPhaseInputsOkResponse = ResponseWithPagination<ActivityExecutionInputsResponseResponse>;
|
|
19
|
+
export type GetOrchestrationExecutionPhaseInputsErrorResponse = ErrorResponseResponse;
|
|
20
|
+
export interface GetOrchestrationExecutionPhaseInputsProps extends GetOrchestrationExecutionPhaseInputsQueryPathParams, Omit<FetcherOptions<GetOrchestrationExecutionPhaseInputsQueryQueryParams, unknown, GetOrchestrationExecutionPhaseInputsQueryHeaderParams>, 'url'> {
|
|
21
|
+
queryParams: GetOrchestrationExecutionPhaseInputsQueryQueryParams;
|
|
22
|
+
}
|
|
23
|
+
export declare function getOrchestrationExecutionPhaseInputs(props: GetOrchestrationExecutionPhaseInputsProps): Promise<GetOrchestrationExecutionPhaseInputsOkResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* Retrieve input values for a specific phase execution. If phaseExecutionId is provided it is used directly; otherwise the latest execution for the given release/phase is returned.
|
|
26
|
+
*/
|
|
27
|
+
export declare function useGetOrchestrationExecutionPhaseInputsQuery(props: GetOrchestrationExecutionPhaseInputsProps, options?: Omit<UseQueryOptions<GetOrchestrationExecutionPhaseInputsOkResponse, GetOrchestrationExecutionPhaseInputsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetOrchestrationExecutionPhaseInputsOkResponse, import("..").Error>;
|
|
@@ -0,0 +1,19 @@
|
|
|
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 getOrchestrationExecutionPhaseInputs(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/orchestration/execution/release/${props.releaseId}/phase/${props.phaseIdentifier}/input`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Retrieve input values for a specific phase execution. If phaseExecutionId is provided it is used directly; otherwise the latest execution for the given release/phase is returned.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetOrchestrationExecutionPhaseInputsQuery(props, options) {
|
|
13
|
+
return useQuery([
|
|
14
|
+
'get-orchestration-execution-phase-inputs',
|
|
15
|
+
props.releaseId,
|
|
16
|
+
props.phaseIdentifier,
|
|
17
|
+
props.queryParams,
|
|
18
|
+
], ({ signal }) => getOrchestrationExecutionPhaseInputs(Object.assign(Object.assign({}, props), { signal })), options);
|
|
19
|
+
}
|
|
@@ -13,7 +13,7 @@ export interface GetOrchestrationProcessExecutionsQueryQueryParams {
|
|
|
13
13
|
size?: number;
|
|
14
14
|
sort?: string[];
|
|
15
15
|
executionType?: 'PROCESS' | 'RELEASE';
|
|
16
|
-
statuses?: Array<'ABORTED' | 'FAILED' | 'IGNORED' | 'ON_HOLD' | 'OUTPUT_WAITING' | 'PIPELINE_WAITING_FOR_USER_ACTION' | 'QUEUED' | 'RETRIED' | 'RUNNING' | 'SCHEDULED' | 'SKIPPED' | 'SUCCEEDED'>;
|
|
16
|
+
statuses?: Array<'ABORTED' | 'FAILED' | 'IGNORED' | 'ON_HOLD' | 'OUTPUT_WAITING' | 'PAUSED' | 'PIPELINE_WAITING_FOR_USER_ACTION' | 'QUEUED' | 'RETRIED' | 'RUNNING' | 'SCHEDULED' | 'SKIPPED' | 'SUCCEEDED'>;
|
|
17
17
|
/**
|
|
18
18
|
* @format int64
|
|
19
19
|
*/
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { PhaseRetryHistoryResponse } from '../schemas/PhaseRetryHistoryResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetPhaseRetryHistoryByIdentifiersQueryPathParams {
|
|
7
|
+
releaseId: string;
|
|
8
|
+
phaseIdentifier: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GetPhaseRetryHistoryByIdentifiersQueryQueryParams {
|
|
11
|
+
cursor?: string;
|
|
12
|
+
/**
|
|
13
|
+
* @default 500
|
|
14
|
+
*/
|
|
15
|
+
limit?: number;
|
|
16
|
+
orgIdentifier?: string;
|
|
17
|
+
projectIdentifier?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface GetPhaseRetryHistoryByIdentifiersQueryHeaderParams {
|
|
20
|
+
'Harness-Account': string;
|
|
21
|
+
}
|
|
22
|
+
export type GetPhaseRetryHistoryByIdentifiersOkResponse = ResponseWithPagination<PhaseRetryHistoryResponse>;
|
|
23
|
+
export type GetPhaseRetryHistoryByIdentifiersErrorResponse = ErrorResponseResponse;
|
|
24
|
+
export interface GetPhaseRetryHistoryByIdentifiersProps extends GetPhaseRetryHistoryByIdentifiersQueryPathParams, Omit<FetcherOptions<GetPhaseRetryHistoryByIdentifiersQueryQueryParams, unknown, GetPhaseRetryHistoryByIdentifiersQueryHeaderParams>, 'url'> {
|
|
25
|
+
queryParams: GetPhaseRetryHistoryByIdentifiersQueryQueryParams;
|
|
26
|
+
}
|
|
27
|
+
export declare function getPhaseRetryHistoryByIdentifiers(props: GetPhaseRetryHistoryByIdentifiersProps): Promise<GetPhaseRetryHistoryByIdentifiersOkResponse>;
|
|
28
|
+
/**
|
|
29
|
+
* Retrieve the retry history for a specific phase by release ID and phase identifier
|
|
30
|
+
*/
|
|
31
|
+
export declare function useGetPhaseRetryHistoryByIdentifiersQuery(props: GetPhaseRetryHistoryByIdentifiersProps, options?: Omit<UseQueryOptions<GetPhaseRetryHistoryByIdentifiersOkResponse, GetPhaseRetryHistoryByIdentifiersErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetPhaseRetryHistoryByIdentifiersOkResponse, import("..").Error>;
|
|
@@ -0,0 +1,19 @@
|
|
|
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 getPhaseRetryHistoryByIdentifiers(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/orchestration/execution/release/${props.releaseId}/phase/${props.phaseIdentifier}/retry-history`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Retrieve the retry history for a specific phase by release ID and phase identifier
|
|
11
|
+
*/
|
|
12
|
+
export function useGetPhaseRetryHistoryByIdentifiersQuery(props, options) {
|
|
13
|
+
return useQuery([
|
|
14
|
+
'get-phase-retry-history-by-identifiers',
|
|
15
|
+
props.releaseId,
|
|
16
|
+
props.phaseIdentifier,
|
|
17
|
+
props.queryParams,
|
|
18
|
+
], ({ signal }) => getPhaseRetryHistoryByIdentifiers(Object.assign(Object.assign({}, props), { signal })), options);
|
|
19
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { PhaseActionResponseResponse } from '../responses/PhaseActionResponseResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { PhaseActionRequestRequestBody } from '../requestBodies/PhaseActionRequestRequestBody';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface PostPhaseActionMutationPathParams {
|
|
8
|
+
phaseExecutionId: string;
|
|
9
|
+
}
|
|
10
|
+
export interface PostPhaseActionMutationQueryParams {
|
|
11
|
+
orgIdentifier?: string;
|
|
12
|
+
projectIdentifier?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface PostPhaseActionMutationHeaderParams {
|
|
15
|
+
'Harness-Account': string;
|
|
16
|
+
}
|
|
17
|
+
export type PostPhaseActionRequestBody = PhaseActionRequestRequestBody;
|
|
18
|
+
export type PostPhaseActionOkResponse = ResponseWithPagination<PhaseActionResponseResponse>;
|
|
19
|
+
export type PostPhaseActionErrorResponse = ErrorResponseResponse;
|
|
20
|
+
export interface PostPhaseActionProps extends PostPhaseActionMutationPathParams, Omit<FetcherOptions<PostPhaseActionMutationQueryParams, PostPhaseActionRequestBody, PostPhaseActionMutationHeaderParams>, 'url'> {
|
|
21
|
+
queryParams: PostPhaseActionMutationQueryParams;
|
|
22
|
+
body: PostPhaseActionRequestBody;
|
|
23
|
+
}
|
|
24
|
+
export declare function postPhaseAction(props: PostPhaseActionProps): Promise<PostPhaseActionOkResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Process actions for a paused phase. 'resume' advances the DAG; 'restart' re-runs with changed inputs.
|
|
27
|
+
*/
|
|
28
|
+
export declare function usePostPhaseActionMutation(options?: Omit<UseMutationOptions<PostPhaseActionOkResponse, PostPhaseActionErrorResponse, PostPhaseActionProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<PostPhaseActionOkResponse, import("..").Error, PostPhaseActionProps, 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 postPhaseAction(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/orchestration/execution/phase/${props.phaseExecutionId}/action`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Process actions for a paused phase. 'resume' advances the DAG; 'restart' re-runs with changed inputs.
|
|
11
|
+
*/
|
|
12
|
+
export function usePostPhaseActionMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => postPhaseAction(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -63,6 +63,8 @@ export type { GetOrchestrationExecutionActivityOutputsV2ErrorResponse, GetOrches
|
|
|
63
63
|
export { getOrchestrationExecutionActivityOutputsV2, useGetOrchestrationExecutionActivityOutputsV2Query, } from './hooks/useGetOrchestrationExecutionActivityOutputsV2Query';
|
|
64
64
|
export type { GetOrchestrationExecutionActivityErrorResponse, GetOrchestrationExecutionActivityOkResponse, GetOrchestrationExecutionActivityProps, GetOrchestrationExecutionActivityQueryPathParams, GetOrchestrationExecutionActivityQueryQueryParams, } from './hooks/useGetOrchestrationExecutionActivityQuery';
|
|
65
65
|
export { getOrchestrationExecutionActivity, useGetOrchestrationExecutionActivityQuery, } from './hooks/useGetOrchestrationExecutionActivityQuery';
|
|
66
|
+
export type { GetOrchestrationExecutionPhaseInputsErrorResponse, GetOrchestrationExecutionPhaseInputsOkResponse, GetOrchestrationExecutionPhaseInputsProps, GetOrchestrationExecutionPhaseInputsQueryPathParams, GetOrchestrationExecutionPhaseInputsQueryQueryParams, } from './hooks/useGetOrchestrationExecutionPhaseInputsQuery';
|
|
67
|
+
export { getOrchestrationExecutionPhaseInputs, useGetOrchestrationExecutionPhaseInputsQuery, } from './hooks/useGetOrchestrationExecutionPhaseInputsQuery';
|
|
66
68
|
export type { GetOrchestrationExecutionPhaseOutputsErrorResponse, GetOrchestrationExecutionPhaseOutputsOkResponse, GetOrchestrationExecutionPhaseOutputsProps, GetOrchestrationExecutionPhaseOutputsQueryPathParams, GetOrchestrationExecutionPhaseOutputsQueryQueryParams, } from './hooks/useGetOrchestrationExecutionPhaseOutputsQuery';
|
|
67
69
|
export { getOrchestrationExecutionPhaseOutputs, useGetOrchestrationExecutionPhaseOutputsQuery, } from './hooks/useGetOrchestrationExecutionPhaseOutputsQuery';
|
|
68
70
|
export type { GetOrchestrationExecutionPhaseOutputsV2ErrorResponse, GetOrchestrationExecutionPhaseOutputsV2OkResponse, GetOrchestrationExecutionPhaseOutputsV2Props, GetOrchestrationExecutionPhaseOutputsV2QueryPathParams, GetOrchestrationExecutionPhaseOutputsV2QueryQueryParams, } from './hooks/useGetOrchestrationExecutionPhaseOutputsV2Query';
|
|
@@ -87,6 +89,8 @@ export type { GetOrchestrationProcessErrorResponse, GetOrchestrationProcessOkRes
|
|
|
87
89
|
export { getOrchestrationProcess, useGetOrchestrationProcessQuery, } from './hooks/useGetOrchestrationProcessQuery';
|
|
88
90
|
export type { GetOrchestrationProcessSummaryErrorResponse, GetOrchestrationProcessSummaryOkResponse, GetOrchestrationProcessSummaryProps, GetOrchestrationProcessSummaryQueryQueryParams, } from './hooks/useGetOrchestrationProcessSummaryQuery';
|
|
89
91
|
export { getOrchestrationProcessSummary, useGetOrchestrationProcessSummaryQuery, } from './hooks/useGetOrchestrationProcessSummaryQuery';
|
|
92
|
+
export type { GetPhaseRetryHistoryByIdentifiersErrorResponse, GetPhaseRetryHistoryByIdentifiersOkResponse, GetPhaseRetryHistoryByIdentifiersProps, GetPhaseRetryHistoryByIdentifiersQueryPathParams, GetPhaseRetryHistoryByIdentifiersQueryQueryParams, } from './hooks/useGetPhaseRetryHistoryByIdentifiersQuery';
|
|
93
|
+
export { getPhaseRetryHistoryByIdentifiers, useGetPhaseRetryHistoryByIdentifiersQuery, } from './hooks/useGetPhaseRetryHistoryByIdentifiersQuery';
|
|
90
94
|
export type { GetProcessExecutionActivitiesPaginatedErrorResponse, GetProcessExecutionActivitiesPaginatedOkResponse, GetProcessExecutionActivitiesPaginatedProps, GetProcessExecutionActivitiesPaginatedQueryPathParams, GetProcessExecutionActivitiesPaginatedQueryQueryParams, } from './hooks/useGetProcessExecutionActivitiesPaginatedQuery';
|
|
91
95
|
export { getProcessExecutionActivitiesPaginated, useGetProcessExecutionActivitiesPaginatedQuery, } from './hooks/useGetProcessExecutionActivitiesPaginatedQuery';
|
|
92
96
|
export type { GetProcessExecutionActivitiesErrorResponse, GetProcessExecutionActivitiesOkResponse, GetProcessExecutionActivitiesProps, GetProcessExecutionActivitiesQueryPathParams, GetProcessExecutionActivitiesQueryQueryParams, } from './hooks/useGetProcessExecutionActivitiesQuery';
|
|
@@ -169,6 +173,8 @@ export type { PostOrchestrationProcessInputValidateErrorResponse, PostOrchestrat
|
|
|
169
173
|
export { postOrchestrationProcessInputValidate, usePostOrchestrationProcessInputValidateMutation, } from './hooks/usePostOrchestrationProcessInputValidateMutation';
|
|
170
174
|
export type { PostOrchestrationProcessErrorResponse, PostOrchestrationProcessMutationQueryParams, PostOrchestrationProcessOkResponse, PostOrchestrationProcessProps, PostOrchestrationProcessRequestBody, } from './hooks/usePostOrchestrationProcessMutation';
|
|
171
175
|
export { postOrchestrationProcess, usePostOrchestrationProcessMutation, } from './hooks/usePostOrchestrationProcessMutation';
|
|
176
|
+
export type { PostPhaseActionErrorResponse, PostPhaseActionMutationPathParams, PostPhaseActionMutationQueryParams, PostPhaseActionOkResponse, PostPhaseActionProps, PostPhaseActionRequestBody, } from './hooks/usePostPhaseActionMutation';
|
|
177
|
+
export { postPhaseAction, usePostPhaseActionMutation } from './hooks/usePostPhaseActionMutation';
|
|
172
178
|
export type { PostProcessExecutionActionErrorResponse, PostProcessExecutionActionMutationPathParams, PostProcessExecutionActionMutationQueryParams, PostProcessExecutionActionOkResponse, PostProcessExecutionActionProps, PostProcessExecutionActionRequestBody, } from './hooks/usePostProcessExecutionActionMutation';
|
|
173
179
|
export { postProcessExecutionAction, usePostProcessExecutionActionMutation, } from './hooks/usePostProcessExecutionActionMutation';
|
|
174
180
|
export type { PostReleaseActionErrorResponse, PostReleaseActionMutationPathParams, PostReleaseActionMutationQueryParams, PostReleaseActionOkResponse, PostReleaseActionProps, PostReleaseActionRequestBody, } from './hooks/usePostReleaseActionMutation';
|
|
@@ -231,6 +237,7 @@ export type { CreateReleaseGroupRequestRequestBody } from './requestBodies/Creat
|
|
|
231
237
|
export type { OnHoldActivityActionRequestRequestBody } from './requestBodies/OnHoldActivityActionRequestRequestBody';
|
|
232
238
|
export type { OrchestrationProcessAttachedReleaseGroupsRequestRequestBody } from './requestBodies/OrchestrationProcessAttachedReleaseGroupsRequestRequestBody';
|
|
233
239
|
export type { PatchReleaseGroupRequestRequestBody } from './requestBodies/PatchReleaseGroupRequestRequestBody';
|
|
240
|
+
export type { PhaseActionRequestRequestBody } from './requestBodies/PhaseActionRequestRequestBody';
|
|
234
241
|
export type { ReleaseListRequestRequestBody } from './requestBodies/ReleaseListRequestRequestBody';
|
|
235
242
|
export type { ReleaseSummaryRequestRequestBody } from './requestBodies/ReleaseSummaryRequestRequestBody';
|
|
236
243
|
export type { UpdateOrchestrationActivityRequestRequestBody } from './requestBodies/UpdateOrchestrationActivityRequestRequestBody';
|
|
@@ -276,6 +283,7 @@ export type { OrchestrationProcessInputSummaryResponseResponse } from './respons
|
|
|
276
283
|
export type { OrchestrationProcessMetadataResponseResponse } from './responses/OrchestrationProcessMetadataResponseResponse';
|
|
277
284
|
export type { OrchestrationProcessSummaryResponseResponse } from './responses/OrchestrationProcessSummaryResponseResponse';
|
|
278
285
|
export type { PatchReleaseGroupResponseResponse } from './responses/PatchReleaseGroupResponseResponse';
|
|
286
|
+
export type { PhaseActionResponseResponse } from './responses/PhaseActionResponseResponse';
|
|
279
287
|
export type { ReleaseActionResponseResponse } from './responses/ReleaseActionResponseResponse';
|
|
280
288
|
export type { ReleaseActivitiesResponseResponse } from './responses/ReleaseActivitiesResponseResponse';
|
|
281
289
|
export type { ReleaseApprovalsResponseResponse } from './responses/ReleaseApprovalsResponseResponse';
|
|
@@ -438,8 +446,13 @@ export type { OutputDataType } from './schemas/OutputDataType';
|
|
|
438
446
|
export type { OutputVariable } from './schemas/OutputVariable';
|
|
439
447
|
export type { Pageable } from './schemas/Pageable';
|
|
440
448
|
export type { PageableSort } from './schemas/PageableSort';
|
|
449
|
+
export type { PhaseActionRequest } from './schemas/PhaseActionRequest';
|
|
450
|
+
export type { PhaseActionResponse } from './schemas/PhaseActionResponse';
|
|
451
|
+
export type { PhaseExecutionInputDto } from './schemas/PhaseExecutionInputDto';
|
|
441
452
|
export type { PhaseInputYaml } from './schemas/PhaseInputYaml';
|
|
442
453
|
export type { PhaseReleaseInputYaml } from './schemas/PhaseReleaseInputYaml';
|
|
454
|
+
export type { PhaseRetryHistoryResponse } from './schemas/PhaseRetryHistoryResponse';
|
|
455
|
+
export type { PhaseRetryInfo } from './schemas/PhaseRetryInfo';
|
|
443
456
|
export type { PipelineActivityInfo } from './schemas/PipelineActivityInfo';
|
|
444
457
|
export type { PipelineExecutionSummaryDto } from './schemas/PipelineExecutionSummaryDto';
|
|
445
458
|
export type { PipelineStageInfo } from './schemas/PipelineStageInfo';
|
|
@@ -487,6 +500,7 @@ export type { StageInfoDetailsDto } from './schemas/StageInfoDetailsDto';
|
|
|
487
500
|
export type { StageInfoDto } from './schemas/StageInfoDto';
|
|
488
501
|
export type { StageInfoType } from './schemas/StageInfoType';
|
|
489
502
|
export type { Status } from './schemas/Status';
|
|
503
|
+
export type { StatusInfo } from './schemas/StatusInfo';
|
|
490
504
|
export type { StepInfoDetailsDto } from './schemas/StepInfoDetailsDto';
|
|
491
505
|
export type { StepInfoDto } from './schemas/StepInfoDto';
|
|
492
506
|
export type { StepInfoType } from './schemas/StepInfoType';
|
|
@@ -30,6 +30,7 @@ export { getOrchestrationExecutionActivityInputs, useGetOrchestrationExecutionAc
|
|
|
30
30
|
export { getOrchestrationExecutionActivityOutputs, useGetOrchestrationExecutionActivityOutputsQuery, } from './hooks/useGetOrchestrationExecutionActivityOutputsQuery';
|
|
31
31
|
export { getOrchestrationExecutionActivityOutputsV2, useGetOrchestrationExecutionActivityOutputsV2Query, } from './hooks/useGetOrchestrationExecutionActivityOutputsV2Query';
|
|
32
32
|
export { getOrchestrationExecutionActivity, useGetOrchestrationExecutionActivityQuery, } from './hooks/useGetOrchestrationExecutionActivityQuery';
|
|
33
|
+
export { getOrchestrationExecutionPhaseInputs, useGetOrchestrationExecutionPhaseInputsQuery, } from './hooks/useGetOrchestrationExecutionPhaseInputsQuery';
|
|
33
34
|
export { getOrchestrationExecutionPhaseOutputs, useGetOrchestrationExecutionPhaseOutputsQuery, } from './hooks/useGetOrchestrationExecutionPhaseOutputsQuery';
|
|
34
35
|
export { getOrchestrationExecutionPhaseOutputsV2, useGetOrchestrationExecutionPhaseOutputsV2Query, } from './hooks/useGetOrchestrationExecutionPhaseOutputsV2Query';
|
|
35
36
|
export { getOrchestrationExecutionPhases, useGetOrchestrationExecutionPhasesQuery, } from './hooks/useGetOrchestrationExecutionPhasesQuery';
|
|
@@ -42,6 +43,7 @@ export { getOrchestrationProcessInputSummary, useGetOrchestrationProcessInputSum
|
|
|
42
43
|
export { getOrchestrationProcessMetadata, useGetOrchestrationProcessMetadataQuery, } from './hooks/useGetOrchestrationProcessMetadataQuery';
|
|
43
44
|
export { getOrchestrationProcess, useGetOrchestrationProcessQuery, } from './hooks/useGetOrchestrationProcessQuery';
|
|
44
45
|
export { getOrchestrationProcessSummary, useGetOrchestrationProcessSummaryQuery, } from './hooks/useGetOrchestrationProcessSummaryQuery';
|
|
46
|
+
export { getPhaseRetryHistoryByIdentifiers, useGetPhaseRetryHistoryByIdentifiersQuery, } from './hooks/useGetPhaseRetryHistoryByIdentifiersQuery';
|
|
45
47
|
export { getProcessExecutionActivitiesPaginated, useGetProcessExecutionActivitiesPaginatedQuery, } from './hooks/useGetProcessExecutionActivitiesPaginatedQuery';
|
|
46
48
|
export { getProcessExecutionActivities, useGetProcessExecutionActivitiesQuery, } from './hooks/useGetProcessExecutionActivitiesQuery';
|
|
47
49
|
export { getProcessExecutionInput, useGetProcessExecutionInputQuery, } from './hooks/useGetProcessExecutionInputQuery';
|
|
@@ -83,6 +85,7 @@ export { postOrchestrationProcessExecute, usePostOrchestrationProcessExecuteMuta
|
|
|
83
85
|
export { postOrchestrationProcessInput, usePostOrchestrationProcessInputMutation, } from './hooks/usePostOrchestrationProcessInputMutation';
|
|
84
86
|
export { postOrchestrationProcessInputValidate, usePostOrchestrationProcessInputValidateMutation, } from './hooks/usePostOrchestrationProcessInputValidateMutation';
|
|
85
87
|
export { postOrchestrationProcess, usePostOrchestrationProcessMutation, } from './hooks/usePostOrchestrationProcessMutation';
|
|
88
|
+
export { postPhaseAction, usePostPhaseActionMutation } from './hooks/usePostPhaseActionMutation';
|
|
86
89
|
export { postProcessExecutionAction, usePostProcessExecutionActionMutation, } from './hooks/usePostProcessExecutionActionMutation';
|
|
87
90
|
export { postReleaseAction, usePostReleaseActionMutation, } from './hooks/usePostReleaseActionMutation';
|
|
88
91
|
export { postReleaseAdhoc, usePostReleaseAdhocMutation } from './hooks/usePostReleaseAdhocMutation';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -31,6 +31,10 @@ export interface OrchestrationExecutionPhase {
|
|
|
31
31
|
* Unique identifier of the phase
|
|
32
32
|
*/
|
|
33
33
|
identifier: string;
|
|
34
|
+
/**
|
|
35
|
+
* Whether the phase is configured as restartable (the `restart` key is present in the phase YAML)
|
|
36
|
+
*/
|
|
37
|
+
is_restartable?: boolean;
|
|
34
38
|
/**
|
|
35
39
|
* Name of the phase
|
|
36
40
|
*/
|
|
@@ -43,6 +47,11 @@ export interface OrchestrationExecutionPhase {
|
|
|
43
47
|
* ID of the phase execution
|
|
44
48
|
*/
|
|
45
49
|
phase_execution_id?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Retry attempt index for the phase execution (0 for the original attempt)
|
|
52
|
+
* @format int32
|
|
53
|
+
*/
|
|
54
|
+
retry_index?: number;
|
|
46
55
|
/**
|
|
47
56
|
* Start timestamp in milliseconds
|
|
48
57
|
* @format int64
|
|
@@ -33,5 +33,14 @@ export interface OrchestrationPhaseYaml {
|
|
|
33
33
|
* List of owner groups for the phase
|
|
34
34
|
*/
|
|
35
35
|
owners?: string[];
|
|
36
|
+
/**
|
|
37
|
+
* Restart configuration for the phase
|
|
38
|
+
*/
|
|
39
|
+
restart?: {
|
|
40
|
+
/**
|
|
41
|
+
* Trigger for restarting the phase. Use 'user_intervention' to pause after successful completion and wait for operator action.
|
|
42
|
+
*/
|
|
43
|
+
on?: 'user_intervention';
|
|
44
|
+
};
|
|
36
45
|
};
|
|
37
46
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Status of orchestration execution activities
|
|
3
3
|
*/
|
|
4
|
-
export type OrchestrationStatus = 'ABORTED' | 'FAILED' | 'IGNORED' | 'ON_HOLD' | 'OUTPUT_WAITING' | 'PIPELINE_WAITING_FOR_USER_ACTION' | 'QUEUED' | 'RETRIED' | 'RUNNING' | 'SCHEDULED' | 'SKIPPED' | 'SUCCEEDED';
|
|
4
|
+
export type OrchestrationStatus = 'ABORTED' | 'FAILED' | 'IGNORED' | 'ON_HOLD' | 'OUTPUT_WAITING' | 'PAUSED' | 'PIPELINE_WAITING_FOR_USER_ACTION' | 'QUEUED' | 'RETRIED' | 'RUNNING' | 'SCHEDULED' | 'SKIPPED' | 'SUCCEEDED';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { PhaseExecutionInputDto } from '../schemas/PhaseExecutionInputDto';
|
|
2
|
+
export interface PhaseActionRequest {
|
|
3
|
+
/**
|
|
4
|
+
* The action to perform on the paused phase. 'resume' proceeds the DAG; 'restart' re-runs the phase (optionally with changed inputs).
|
|
5
|
+
*/
|
|
6
|
+
action: 'restart' | 'resume';
|
|
7
|
+
/**
|
|
8
|
+
* Optional changed phase input overrides, applied only when action is 'restart'. Each entry carries the input name, type, and value (any JSON type).
|
|
9
|
+
*/
|
|
10
|
+
inputs?: PhaseExecutionInputDto[];
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { InputVariableType } from '../schemas/InputVariableType';
|
|
2
|
+
import type { AnyValue } from '../schemas/AnyValue';
|
|
3
|
+
/**
|
|
4
|
+
* Input value for a phase execution restart
|
|
5
|
+
*/
|
|
6
|
+
export interface PhaseExecutionInputDto {
|
|
7
|
+
/**
|
|
8
|
+
* Name of the input parameter
|
|
9
|
+
*/
|
|
10
|
+
name: string;
|
|
11
|
+
/**
|
|
12
|
+
* Type of an input variable for parameters and process inputs.
|
|
13
|
+
*/
|
|
14
|
+
type: InputVariableType;
|
|
15
|
+
/**
|
|
16
|
+
* Flexible type that accepts any JSON value (string, number, boolean, object, or array)
|
|
17
|
+
*/
|
|
18
|
+
value: AnyValue;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { NextRequest } from '../schemas/NextRequest';
|
|
2
|
+
import type { PhaseRetryInfo } from '../schemas/PhaseRetryInfo';
|
|
3
|
+
/**
|
|
4
|
+
* Response containing the retry history for a phase execution
|
|
5
|
+
*/
|
|
6
|
+
export interface PhaseRetryHistoryResponse {
|
|
7
|
+
/**
|
|
8
|
+
* Whether this is the last page of results
|
|
9
|
+
*/
|
|
10
|
+
last: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Information for the next page request
|
|
13
|
+
*/
|
|
14
|
+
nextRequest: NextRequest;
|
|
15
|
+
/**
|
|
16
|
+
* List of retry attempts for the phase
|
|
17
|
+
*/
|
|
18
|
+
retries: PhaseRetryInfo[];
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { OrchestrationStatus } from '../schemas/OrchestrationStatus';
|
|
2
|
+
import type { StatusInfo } from '../schemas/StatusInfo';
|
|
3
|
+
/**
|
|
4
|
+
* Information about a single phase retry attempt
|
|
5
|
+
*/
|
|
6
|
+
export interface PhaseRetryInfo {
|
|
7
|
+
/**
|
|
8
|
+
* Creation timestamp in milliseconds
|
|
9
|
+
* @format int64
|
|
10
|
+
*/
|
|
11
|
+
createdAt: number;
|
|
12
|
+
/**
|
|
13
|
+
* End timestamp in milliseconds
|
|
14
|
+
* @format int64
|
|
15
|
+
*/
|
|
16
|
+
endTs?: number;
|
|
17
|
+
/**
|
|
18
|
+
* The identifier of the phase
|
|
19
|
+
*/
|
|
20
|
+
identifier: string;
|
|
21
|
+
/**
|
|
22
|
+
* The ID of the phase execution
|
|
23
|
+
*/
|
|
24
|
+
phaseExecutionId: string;
|
|
25
|
+
/**
|
|
26
|
+
* The name of the phase
|
|
27
|
+
*/
|
|
28
|
+
phaseName: string;
|
|
29
|
+
/**
|
|
30
|
+
* The retry index (0 for original, 1+ for retries)
|
|
31
|
+
* @format int32
|
|
32
|
+
*/
|
|
33
|
+
retryIndex: number;
|
|
34
|
+
/**
|
|
35
|
+
* Start timestamp in milliseconds
|
|
36
|
+
* @format int64
|
|
37
|
+
*/
|
|
38
|
+
startTs?: number;
|
|
39
|
+
/**
|
|
40
|
+
* The status of this retry attempt
|
|
41
|
+
*/
|
|
42
|
+
status: OrchestrationStatus;
|
|
43
|
+
/**
|
|
44
|
+
* Status details for this phase execution attempt
|
|
45
|
+
*/
|
|
46
|
+
statusInfo?: StatusInfo;
|
|
47
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|