@harnessio/react-rmg-service-client 0.69.0-beta.2 → 0.69.0-beta.4
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/useGetPhaseArtifactUpdatesQuery.d.ts +26 -0
- package/dist/rmg-service/src/services/hooks/useGetPhaseArtifactUpdatesQuery.js +15 -0
- 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/useListArtifactTrackerServiceRefsQuery.d.ts +31 -0
- package/dist/rmg-service/src/services/hooks/useListArtifactTrackerServiceRefsQuery.js +15 -0
- package/dist/rmg-service/src/services/hooks/useListArtifactTrackerTagsByServiceMappingQuery.d.ts +34 -0
- package/dist/rmg-service/src/services/hooks/useListArtifactTrackerTagsByServiceMappingQuery.js +15 -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 +30 -0
- package/dist/rmg-service/src/services/index.js +6 -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/responses/PhaseArtifactUpdatesResponseResponse.d.ts +2 -0
- package/dist/rmg-service/src/services/responses/PhaseArtifactUpdatesResponseResponse.js +1 -0
- package/dist/rmg-service/src/services/schemas/ActivityExecutionInputDto.d.ts +7 -0
- package/dist/rmg-service/src/services/schemas/ActivityInputYaml.d.ts +1 -1
- package/dist/rmg-service/src/services/schemas/AnyValue.d.ts +2 -2
- package/dist/rmg-service/src/services/schemas/ArtifactTag.d.ts +14 -0
- package/dist/rmg-service/src/services/schemas/ArtifactTag.js +4 -0
- package/dist/rmg-service/src/services/schemas/ArtifactTagList.d.ts +11 -0
- package/dist/rmg-service/src/services/schemas/ArtifactTagList.js +1 -0
- package/dist/rmg-service/src/services/schemas/ArtifactTagMetadata.d.ts +3 -1
- package/dist/rmg-service/src/services/schemas/ArtifactTrackerServiceRef.d.ts +17 -0
- package/dist/rmg-service/src/services/schemas/ArtifactTrackerServiceRef.js +4 -0
- package/dist/rmg-service/src/services/schemas/ArtifactTrackerServiceRefList.d.ts +8 -0
- package/dist/rmg-service/src/services/schemas/ArtifactTrackerServiceRefList.js +1 -0
- package/dist/rmg-service/src/services/schemas/ExecutionOutputDto.d.ts +9 -0
- package/dist/rmg-service/src/services/schemas/InputVariable.d.ts +4 -1
- package/dist/rmg-service/src/services/schemas/InputVariableType.d.ts +1 -1
- package/dist/rmg-service/src/services/schemas/ManualTaskYaml.d.ts +3 -3
- package/dist/rmg-service/src/services/schemas/OrchestrationActivityWebhookYaml.d.ts +1 -1
- 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/OutputDataType.d.ts +6 -0
- package/dist/rmg-service/src/services/schemas/OutputDataType.js +4 -0
- package/dist/rmg-service/src/services/schemas/OutputVariable.d.ts +21 -4
- package/dist/rmg-service/src/services/schemas/OutputVariable.js +0 -3
- 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/PhaseArtifactUpdateDto.d.ts +21 -0
- package/dist/rmg-service/src/services/schemas/PhaseArtifactUpdateDto.js +4 -0
- package/dist/rmg-service/src/services/schemas/PhaseArtifactUpdatesResponse.d.ts +11 -0
- package/dist/rmg-service/src/services/schemas/PhaseArtifactUpdatesResponse.js +1 -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/ReleaseArtifactInputVariable.d.ts +25 -0
- package/dist/rmg-service/src/services/schemas/ReleaseArtifactInputVariable.js +1 -0
- package/dist/rmg-service/src/services/schemas/ReleaseArtifactValue.d.ts +19 -0
- package/dist/rmg-service/src/services/schemas/ReleaseArtifactValue.js +4 -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/dist/rmg-service/src/services/schemas/StringOrBool.d.ts +1 -1
- package/dist/rmg-service/src/services/schemas/StringOrStringArray.d.ts +1 -1
- package/dist/rmg-service/src/services/schemas/TaskExecuteConfig.d.ts +1 -1
- package/package.json +4 -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
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { PhaseArtifactUpdatesResponseResponse } from '../responses/PhaseArtifactUpdatesResponseResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetPhaseArtifactUpdatesQueryPathParams {
|
|
7
|
+
phaseExecutionId: string;
|
|
8
|
+
}
|
|
9
|
+
export interface GetPhaseArtifactUpdatesQueryQueryParams {
|
|
10
|
+
orgIdentifier?: string;
|
|
11
|
+
projectIdentifier?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface GetPhaseArtifactUpdatesQueryHeaderParams {
|
|
14
|
+
'Harness-Account': string;
|
|
15
|
+
}
|
|
16
|
+
export type GetPhaseArtifactUpdatesOkResponse = ResponseWithPagination<PhaseArtifactUpdatesResponseResponse>;
|
|
17
|
+
export type GetPhaseArtifactUpdatesErrorResponse = ErrorResponseResponse;
|
|
18
|
+
export interface GetPhaseArtifactUpdatesProps extends GetPhaseArtifactUpdatesQueryPathParams, Omit<FetcherOptions<GetPhaseArtifactUpdatesQueryQueryParams, unknown, GetPhaseArtifactUpdatesQueryHeaderParams>, 'url'> {
|
|
19
|
+
queryParams: GetPhaseArtifactUpdatesQueryQueryParams;
|
|
20
|
+
}
|
|
21
|
+
export declare function getPhaseArtifactUpdates(props: GetPhaseArtifactUpdatesProps): Promise<GetPhaseArtifactUpdatesOkResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* For a paused phase, compares the tag stored in each release-artifact input against the latest ingested tag for that service mapping. Returns a list of inputs where a newer tag is available.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export declare function useGetPhaseArtifactUpdatesQuery(props: GetPhaseArtifactUpdatesProps, options?: Omit<UseQueryOptions<GetPhaseArtifactUpdatesOkResponse, GetPhaseArtifactUpdatesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetPhaseArtifactUpdatesOkResponse, import("..").Error>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function getPhaseArtifactUpdates(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/orchestration/execution/phase/${props.phaseExecutionId}/artifact-updates`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* For a paused phase, compares the tag stored in each release-artifact input against the latest ingested tag for that service mapping. Returns a list of inputs where a newer tag is available.
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
export function useGetPhaseArtifactUpdatesQuery(props, options) {
|
|
14
|
+
return useQuery(['getPhaseArtifactUpdates', props.phaseExecutionId, props.queryParams], ({ signal }) => getPhaseArtifactUpdates(Object.assign(Object.assign({}, props), { signal })), options);
|
|
15
|
+
}
|
|
@@ -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,31 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ArtifactTrackerServiceRefList } from '../schemas/ArtifactTrackerServiceRefList';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface ListArtifactTrackerServiceRefsQueryQueryParams {
|
|
7
|
+
orgIdentifier?: string;
|
|
8
|
+
projectIdentifier?: string;
|
|
9
|
+
/**
|
|
10
|
+
* @default 0
|
|
11
|
+
*/
|
|
12
|
+
page?: number;
|
|
13
|
+
/**
|
|
14
|
+
* @default 20
|
|
15
|
+
*/
|
|
16
|
+
size?: number;
|
|
17
|
+
}
|
|
18
|
+
export interface ListArtifactTrackerServiceRefsQueryHeaderParams {
|
|
19
|
+
'Harness-Account': string;
|
|
20
|
+
}
|
|
21
|
+
export type ListArtifactTrackerServiceRefsOkResponse = ResponseWithPagination<ArtifactTrackerServiceRefList>;
|
|
22
|
+
export type ListArtifactTrackerServiceRefsErrorResponse = ErrorResponseResponse;
|
|
23
|
+
export interface ListArtifactTrackerServiceRefsProps extends Omit<FetcherOptions<ListArtifactTrackerServiceRefsQueryQueryParams, unknown, ListArtifactTrackerServiceRefsQueryHeaderParams>, 'url'> {
|
|
24
|
+
queryParams: ListArtifactTrackerServiceRefsQueryQueryParams;
|
|
25
|
+
}
|
|
26
|
+
export declare function listArtifactTrackerServiceRefs(props: ListArtifactTrackerServiceRefsProps): Promise<ListArtifactTrackerServiceRefsOkResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Returns a paginated list of `{id, serviceRef}` pairs — one per service mapping under the requested scope. Consumers pick a `serviceRef` from the list and use the corresponding `id` to fetch tags via `/v1/artifact-tracker/service-mappings/{identifier}/tags`.
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
export declare function useListArtifactTrackerServiceRefsQuery(props: ListArtifactTrackerServiceRefsProps, options?: Omit<UseQueryOptions<ListArtifactTrackerServiceRefsOkResponse, ListArtifactTrackerServiceRefsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListArtifactTrackerServiceRefsOkResponse, import("..").Error>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function listArtifactTrackerServiceRefs(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/artifact-tracker/service-refs`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns a paginated list of `{id, serviceRef}` pairs — one per service mapping under the requested scope. Consumers pick a `serviceRef` from the list and use the corresponding `id` to fetch tags via `/v1/artifact-tracker/service-mappings/{identifier}/tags`.
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
export function useListArtifactTrackerServiceRefsQuery(props, options) {
|
|
14
|
+
return useQuery(['listArtifactTrackerServiceRefs', props.queryParams], ({ signal }) => listArtifactTrackerServiceRefs(Object.assign(Object.assign({}, props), { signal })), options);
|
|
15
|
+
}
|
package/dist/rmg-service/src/services/hooks/useListArtifactTrackerTagsByServiceMappingQuery.d.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ArtifactTagList } from '../schemas/ArtifactTagList';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface ListArtifactTrackerTagsByServiceMappingQueryPathParams {
|
|
7
|
+
identifier: string;
|
|
8
|
+
}
|
|
9
|
+
export interface ListArtifactTrackerTagsByServiceMappingQueryQueryParams {
|
|
10
|
+
orgIdentifier?: string;
|
|
11
|
+
projectIdentifier?: string;
|
|
12
|
+
/**
|
|
13
|
+
* @default 0
|
|
14
|
+
*/
|
|
15
|
+
page?: number;
|
|
16
|
+
/**
|
|
17
|
+
* @default 20
|
|
18
|
+
*/
|
|
19
|
+
size?: number;
|
|
20
|
+
}
|
|
21
|
+
export interface ListArtifactTrackerTagsByServiceMappingQueryHeaderParams {
|
|
22
|
+
'Harness-Account': string;
|
|
23
|
+
}
|
|
24
|
+
export type ListArtifactTrackerTagsByServiceMappingOkResponse = ResponseWithPagination<ArtifactTagList>;
|
|
25
|
+
export type ListArtifactTrackerTagsByServiceMappingErrorResponse = ErrorResponseResponse;
|
|
26
|
+
export interface ListArtifactTrackerTagsByServiceMappingProps extends ListArtifactTrackerTagsByServiceMappingQueryPathParams, Omit<FetcherOptions<ListArtifactTrackerTagsByServiceMappingQueryQueryParams, unknown, ListArtifactTrackerTagsByServiceMappingQueryHeaderParams>, 'url'> {
|
|
27
|
+
queryParams: ListArtifactTrackerTagsByServiceMappingQueryQueryParams;
|
|
28
|
+
}
|
|
29
|
+
export declare function listArtifactTrackerTagsByServiceMapping(props: ListArtifactTrackerTagsByServiceMappingProps): Promise<ListArtifactTrackerTagsByServiceMappingOkResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* Returns a paginated list of artifact tags (strings) linked to the given service mapping, ordered newest first. Empty list if no artifacts have been ingested for this mapping yet.
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
export declare function useListArtifactTrackerTagsByServiceMappingQuery(props: ListArtifactTrackerTagsByServiceMappingProps, options?: Omit<UseQueryOptions<ListArtifactTrackerTagsByServiceMappingOkResponse, ListArtifactTrackerTagsByServiceMappingErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListArtifactTrackerTagsByServiceMappingOkResponse, import("..").Error>;
|
package/dist/rmg-service/src/services/hooks/useListArtifactTrackerTagsByServiceMappingQuery.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function listArtifactTrackerTagsByServiceMapping(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/artifact-tracker/service-mappings/${props.identifier}/tags`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns a paginated list of artifact tags (strings) linked to the given service mapping, ordered newest first. Empty list if no artifacts have been ingested for this mapping yet.
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
export function useListArtifactTrackerTagsByServiceMappingQuery(props, options) {
|
|
14
|
+
return useQuery(['listArtifactTrackerTagsByServiceMapping', props.identifier, props.queryParams], ({ signal }) => listArtifactTrackerTagsByServiceMapping(Object.assign(Object.assign({}, props), { signal })), options);
|
|
15
|
+
}
|
|
@@ -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' (Phase 3) 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' (Phase 3) re-runs with changed inputs.
|
|
11
|
+
*/
|
|
12
|
+
export function usePostPhaseActionMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => postPhaseAction(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -59,6 +59,8 @@ export type { GetOrchestrationExecutionActivityOutputsV2ErrorResponse, GetOrches
|
|
|
59
59
|
export { getOrchestrationExecutionActivityOutputsV2, useGetOrchestrationExecutionActivityOutputsV2Query, } from './hooks/useGetOrchestrationExecutionActivityOutputsV2Query';
|
|
60
60
|
export type { GetOrchestrationExecutionActivityErrorResponse, GetOrchestrationExecutionActivityOkResponse, GetOrchestrationExecutionActivityProps, GetOrchestrationExecutionActivityQueryPathParams, GetOrchestrationExecutionActivityQueryQueryParams, } from './hooks/useGetOrchestrationExecutionActivityQuery';
|
|
61
61
|
export { getOrchestrationExecutionActivity, useGetOrchestrationExecutionActivityQuery, } from './hooks/useGetOrchestrationExecutionActivityQuery';
|
|
62
|
+
export type { GetOrchestrationExecutionPhaseInputsErrorResponse, GetOrchestrationExecutionPhaseInputsOkResponse, GetOrchestrationExecutionPhaseInputsProps, GetOrchestrationExecutionPhaseInputsQueryPathParams, GetOrchestrationExecutionPhaseInputsQueryQueryParams, } from './hooks/useGetOrchestrationExecutionPhaseInputsQuery';
|
|
63
|
+
export { getOrchestrationExecutionPhaseInputs, useGetOrchestrationExecutionPhaseInputsQuery, } from './hooks/useGetOrchestrationExecutionPhaseInputsQuery';
|
|
62
64
|
export type { GetOrchestrationExecutionPhaseOutputsErrorResponse, GetOrchestrationExecutionPhaseOutputsOkResponse, GetOrchestrationExecutionPhaseOutputsProps, GetOrchestrationExecutionPhaseOutputsQueryPathParams, GetOrchestrationExecutionPhaseOutputsQueryQueryParams, } from './hooks/useGetOrchestrationExecutionPhaseOutputsQuery';
|
|
63
65
|
export { getOrchestrationExecutionPhaseOutputs, useGetOrchestrationExecutionPhaseOutputsQuery, } from './hooks/useGetOrchestrationExecutionPhaseOutputsQuery';
|
|
64
66
|
export type { GetOrchestrationExecutionPhaseOutputsV2ErrorResponse, GetOrchestrationExecutionPhaseOutputsV2OkResponse, GetOrchestrationExecutionPhaseOutputsV2Props, GetOrchestrationExecutionPhaseOutputsV2QueryPathParams, GetOrchestrationExecutionPhaseOutputsV2QueryQueryParams, } from './hooks/useGetOrchestrationExecutionPhaseOutputsV2Query';
|
|
@@ -79,6 +81,10 @@ export type { GetOrchestrationProcessErrorResponse, GetOrchestrationProcessOkRes
|
|
|
79
81
|
export { getOrchestrationProcess, useGetOrchestrationProcessQuery, } from './hooks/useGetOrchestrationProcessQuery';
|
|
80
82
|
export type { GetOrchestrationProcessSummaryErrorResponse, GetOrchestrationProcessSummaryOkResponse, GetOrchestrationProcessSummaryProps, GetOrchestrationProcessSummaryQueryQueryParams, } from './hooks/useGetOrchestrationProcessSummaryQuery';
|
|
81
83
|
export { getOrchestrationProcessSummary, useGetOrchestrationProcessSummaryQuery, } from './hooks/useGetOrchestrationProcessSummaryQuery';
|
|
84
|
+
export type { GetPhaseArtifactUpdatesErrorResponse, GetPhaseArtifactUpdatesOkResponse, GetPhaseArtifactUpdatesProps, GetPhaseArtifactUpdatesQueryPathParams, GetPhaseArtifactUpdatesQueryQueryParams, } from './hooks/useGetPhaseArtifactUpdatesQuery';
|
|
85
|
+
export { getPhaseArtifactUpdates, useGetPhaseArtifactUpdatesQuery, } from './hooks/useGetPhaseArtifactUpdatesQuery';
|
|
86
|
+
export type { GetPhaseRetryHistoryByIdentifiersErrorResponse, GetPhaseRetryHistoryByIdentifiersOkResponse, GetPhaseRetryHistoryByIdentifiersProps, GetPhaseRetryHistoryByIdentifiersQueryPathParams, GetPhaseRetryHistoryByIdentifiersQueryQueryParams, } from './hooks/useGetPhaseRetryHistoryByIdentifiersQuery';
|
|
87
|
+
export { getPhaseRetryHistoryByIdentifiers, useGetPhaseRetryHistoryByIdentifiersQuery, } from './hooks/useGetPhaseRetryHistoryByIdentifiersQuery';
|
|
82
88
|
export type { GetProcessExecutionActivitiesPaginatedErrorResponse, GetProcessExecutionActivitiesPaginatedOkResponse, GetProcessExecutionActivitiesPaginatedProps, GetProcessExecutionActivitiesPaginatedQueryPathParams, GetProcessExecutionActivitiesPaginatedQueryQueryParams, } from './hooks/useGetProcessExecutionActivitiesPaginatedQuery';
|
|
83
89
|
export { getProcessExecutionActivitiesPaginated, useGetProcessExecutionActivitiesPaginatedQuery, } from './hooks/useGetProcessExecutionActivitiesPaginatedQuery';
|
|
84
90
|
export type { GetProcessExecutionActivitiesErrorResponse, GetProcessExecutionActivitiesOkResponse, GetProcessExecutionActivitiesProps, GetProcessExecutionActivitiesQueryPathParams, GetProcessExecutionActivitiesQueryQueryParams, } from './hooks/useGetProcessExecutionActivitiesQuery';
|
|
@@ -129,8 +135,12 @@ export type { IngestWebhookSignalErrorResponse, IngestWebhookSignalOkResponse, I
|
|
|
129
135
|
export { ingestWebhookSignal, useIngestWebhookSignalMutation, } from './hooks/useIngestWebhookSignalMutation';
|
|
130
136
|
export type { ListArtifactTrackerServiceMappingsErrorResponse, ListArtifactTrackerServiceMappingsOkResponse, ListArtifactTrackerServiceMappingsProps, ListArtifactTrackerServiceMappingsQueryQueryParams, } from './hooks/useListArtifactTrackerServiceMappingsQuery';
|
|
131
137
|
export { listArtifactTrackerServiceMappings, useListArtifactTrackerServiceMappingsQuery, } from './hooks/useListArtifactTrackerServiceMappingsQuery';
|
|
138
|
+
export type { ListArtifactTrackerServiceRefsErrorResponse, ListArtifactTrackerServiceRefsOkResponse, ListArtifactTrackerServiceRefsProps, ListArtifactTrackerServiceRefsQueryQueryParams, } from './hooks/useListArtifactTrackerServiceRefsQuery';
|
|
139
|
+
export { listArtifactTrackerServiceRefs, useListArtifactTrackerServiceRefsQuery, } from './hooks/useListArtifactTrackerServiceRefsQuery';
|
|
132
140
|
export type { ListArtifactTrackerSettingsErrorResponse, ListArtifactTrackerSettingsOkResponse, ListArtifactTrackerSettingsProps, ListArtifactTrackerSettingsQueryQueryParams, } from './hooks/useListArtifactTrackerSettingsQuery';
|
|
133
141
|
export { listArtifactTrackerSettings, useListArtifactTrackerSettingsQuery, } from './hooks/useListArtifactTrackerSettingsQuery';
|
|
142
|
+
export type { ListArtifactTrackerTagsByServiceMappingErrorResponse, ListArtifactTrackerTagsByServiceMappingOkResponse, ListArtifactTrackerTagsByServiceMappingProps, ListArtifactTrackerTagsByServiceMappingQueryPathParams, ListArtifactTrackerTagsByServiceMappingQueryQueryParams, } from './hooks/useListArtifactTrackerTagsByServiceMappingQuery';
|
|
143
|
+
export { listArtifactTrackerTagsByServiceMapping, useListArtifactTrackerTagsByServiceMappingQuery, } from './hooks/useListArtifactTrackerTagsByServiceMappingQuery';
|
|
134
144
|
export type { ListArtifactsErrorResponse, ListArtifactsOkResponse, ListArtifactsProps, ListArtifactsQueryQueryParams, } from './hooks/useListArtifactsQuery';
|
|
135
145
|
export { listArtifacts, useListArtifactsQuery } from './hooks/useListArtifactsQuery';
|
|
136
146
|
export type { ListIntegrationExecutionsErrorResponse, ListIntegrationExecutionsOkResponse, ListIntegrationExecutionsProps, ListIntegrationExecutionsQueryQueryParams, } from './hooks/useListIntegrationExecutionsQuery';
|
|
@@ -157,6 +167,8 @@ export type { PostOrchestrationProcessInputValidateErrorResponse, PostOrchestrat
|
|
|
157
167
|
export { postOrchestrationProcessInputValidate, usePostOrchestrationProcessInputValidateMutation, } from './hooks/usePostOrchestrationProcessInputValidateMutation';
|
|
158
168
|
export type { PostOrchestrationProcessErrorResponse, PostOrchestrationProcessMutationQueryParams, PostOrchestrationProcessOkResponse, PostOrchestrationProcessProps, PostOrchestrationProcessRequestBody, } from './hooks/usePostOrchestrationProcessMutation';
|
|
159
169
|
export { postOrchestrationProcess, usePostOrchestrationProcessMutation, } from './hooks/usePostOrchestrationProcessMutation';
|
|
170
|
+
export type { PostPhaseActionErrorResponse, PostPhaseActionMutationPathParams, PostPhaseActionMutationQueryParams, PostPhaseActionOkResponse, PostPhaseActionProps, PostPhaseActionRequestBody, } from './hooks/usePostPhaseActionMutation';
|
|
171
|
+
export { postPhaseAction, usePostPhaseActionMutation } from './hooks/usePostPhaseActionMutation';
|
|
160
172
|
export type { PostProcessExecutionActionErrorResponse, PostProcessExecutionActionMutationPathParams, PostProcessExecutionActionMutationQueryParams, PostProcessExecutionActionOkResponse, PostProcessExecutionActionProps, PostProcessExecutionActionRequestBody, } from './hooks/usePostProcessExecutionActionMutation';
|
|
161
173
|
export { postProcessExecutionAction, usePostProcessExecutionActionMutation, } from './hooks/usePostProcessExecutionActionMutation';
|
|
162
174
|
export type { PostReleaseActionErrorResponse, PostReleaseActionMutationPathParams, PostReleaseActionMutationQueryParams, PostReleaseActionOkResponse, PostReleaseActionProps, PostReleaseActionRequestBody, } from './hooks/usePostReleaseActionMutation';
|
|
@@ -219,6 +231,7 @@ export type { CreateReleaseGroupRequestRequestBody } from './requestBodies/Creat
|
|
|
219
231
|
export type { OnHoldActivityActionRequestRequestBody } from './requestBodies/OnHoldActivityActionRequestRequestBody';
|
|
220
232
|
export type { OrchestrationProcessAttachedReleaseGroupsRequestRequestBody } from './requestBodies/OrchestrationProcessAttachedReleaseGroupsRequestRequestBody';
|
|
221
233
|
export type { PatchReleaseGroupRequestRequestBody } from './requestBodies/PatchReleaseGroupRequestRequestBody';
|
|
234
|
+
export type { PhaseActionRequestRequestBody } from './requestBodies/PhaseActionRequestRequestBody';
|
|
222
235
|
export type { ReleaseListRequestRequestBody } from './requestBodies/ReleaseListRequestRequestBody';
|
|
223
236
|
export type { ReleaseSummaryRequestRequestBody } from './requestBodies/ReleaseSummaryRequestRequestBody';
|
|
224
237
|
export type { UpdateOrchestrationActivityRequestRequestBody } from './requestBodies/UpdateOrchestrationActivityRequestRequestBody';
|
|
@@ -261,6 +274,8 @@ export type { OrchestrationProcessAttachedReleaseGroupsResponseResponse } from '
|
|
|
261
274
|
export type { OrchestrationProcessInputSummaryResponseResponse } from './responses/OrchestrationProcessInputSummaryResponseResponse';
|
|
262
275
|
export type { OrchestrationProcessSummaryResponseResponse } from './responses/OrchestrationProcessSummaryResponseResponse';
|
|
263
276
|
export type { PatchReleaseGroupResponseResponse } from './responses/PatchReleaseGroupResponseResponse';
|
|
277
|
+
export type { PhaseActionResponseResponse } from './responses/PhaseActionResponseResponse';
|
|
278
|
+
export type { PhaseArtifactUpdatesResponseResponse } from './responses/PhaseArtifactUpdatesResponseResponse';
|
|
264
279
|
export type { ReleaseActionResponseResponse } from './responses/ReleaseActionResponseResponse';
|
|
265
280
|
export type { ReleaseActivitiesResponseResponse } from './responses/ReleaseActivitiesResponseResponse';
|
|
266
281
|
export type { ReleaseApprovalsResponseResponse } from './responses/ReleaseApprovalsResponseResponse';
|
|
@@ -304,10 +319,14 @@ export type { AnyValue } from './schemas/AnyValue';
|
|
|
304
319
|
export type { ApprovalInfoDto } from './schemas/ApprovalInfoDto';
|
|
305
320
|
export type { ApprovedByDto } from './schemas/ApprovedByDto';
|
|
306
321
|
export type { ArtifactFacets } from './schemas/ArtifactFacets';
|
|
322
|
+
export type { ArtifactTag } from './schemas/ArtifactTag';
|
|
307
323
|
export type { ArtifactTagInputVariable } from './schemas/ArtifactTagInputVariable';
|
|
324
|
+
export type { ArtifactTagList } from './schemas/ArtifactTagList';
|
|
308
325
|
export type { ArtifactTagMetadata } from './schemas/ArtifactTagMetadata';
|
|
309
326
|
export type { ArtifactTrackerServiceMapping } from './schemas/ArtifactTrackerServiceMapping';
|
|
310
327
|
export type { ArtifactTrackerServiceMappingList } from './schemas/ArtifactTrackerServiceMappingList';
|
|
328
|
+
export type { ArtifactTrackerServiceRef } from './schemas/ArtifactTrackerServiceRef';
|
|
329
|
+
export type { ArtifactTrackerServiceRefList } from './schemas/ArtifactTrackerServiceRefList';
|
|
311
330
|
export type { ArtifactTrackerSettings } from './schemas/ArtifactTrackerSettings';
|
|
312
331
|
export type { ArtifactTrackerSettingsList } from './schemas/ArtifactTrackerSettingsList';
|
|
313
332
|
export type { ArtifactVersion } from './schemas/ArtifactVersion';
|
|
@@ -410,11 +429,19 @@ export type { OrchestrationProcessDto } from './schemas/OrchestrationProcessDto'
|
|
|
410
429
|
export type { OrchestrationProcessInputYaml } from './schemas/OrchestrationProcessInputYaml';
|
|
411
430
|
export type { OrchestrationReleaseProcessYaml } from './schemas/OrchestrationReleaseProcessYaml';
|
|
412
431
|
export type { OrchestrationStatus } from './schemas/OrchestrationStatus';
|
|
432
|
+
export type { OutputDataType } from './schemas/OutputDataType';
|
|
413
433
|
export type { OutputVariable } from './schemas/OutputVariable';
|
|
414
434
|
export type { Pageable } from './schemas/Pageable';
|
|
415
435
|
export type { PageableSort } from './schemas/PageableSort';
|
|
436
|
+
export type { PhaseActionRequest } from './schemas/PhaseActionRequest';
|
|
437
|
+
export type { PhaseActionResponse } from './schemas/PhaseActionResponse';
|
|
438
|
+
export type { PhaseArtifactUpdateDto } from './schemas/PhaseArtifactUpdateDto';
|
|
439
|
+
export type { PhaseArtifactUpdatesResponse } from './schemas/PhaseArtifactUpdatesResponse';
|
|
440
|
+
export type { PhaseExecutionInputDto } from './schemas/PhaseExecutionInputDto';
|
|
416
441
|
export type { PhaseInputYaml } from './schemas/PhaseInputYaml';
|
|
417
442
|
export type { PhaseReleaseInputYaml } from './schemas/PhaseReleaseInputYaml';
|
|
443
|
+
export type { PhaseRetryHistoryResponse } from './schemas/PhaseRetryHistoryResponse';
|
|
444
|
+
export type { PhaseRetryInfo } from './schemas/PhaseRetryInfo';
|
|
418
445
|
export type { PipelineActivityInfo } from './schemas/PipelineActivityInfo';
|
|
419
446
|
export type { PipelineExecutionSummaryDto } from './schemas/PipelineExecutionSummaryDto';
|
|
420
447
|
export type { PipelineStageInfo } from './schemas/PipelineStageInfo';
|
|
@@ -434,6 +461,8 @@ export type { ReleaseActionResponse } from './schemas/ReleaseActionResponse';
|
|
|
434
461
|
export type { ReleaseActivity } from './schemas/ReleaseActivity';
|
|
435
462
|
export type { ReleaseApprovalDto } from './schemas/ReleaseApprovalDto';
|
|
436
463
|
export type { ReleaseApprovalType } from './schemas/ReleaseApprovalType';
|
|
464
|
+
export type { ReleaseArtifactInputVariable } from './schemas/ReleaseArtifactInputVariable';
|
|
465
|
+
export type { ReleaseArtifactValue } from './schemas/ReleaseArtifactValue';
|
|
437
466
|
export type { ReleaseCadence } from './schemas/ReleaseCadence';
|
|
438
467
|
export type { ReleaseComponent } from './schemas/ReleaseComponent';
|
|
439
468
|
export type { ReleaseConflictInfo } from './schemas/ReleaseConflictInfo';
|
|
@@ -461,6 +490,7 @@ export type { StageInfoDetailsDto } from './schemas/StageInfoDetailsDto';
|
|
|
461
490
|
export type { StageInfoDto } from './schemas/StageInfoDto';
|
|
462
491
|
export type { StageInfoType } from './schemas/StageInfoType';
|
|
463
492
|
export type { Status } from './schemas/Status';
|
|
493
|
+
export type { StatusInfo } from './schemas/StatusInfo';
|
|
464
494
|
export type { StepInfoDetailsDto } from './schemas/StepInfoDetailsDto';
|
|
465
495
|
export type { StepInfoDto } from './schemas/StepInfoDto';
|
|
466
496
|
export type { StepInfoType } from './schemas/StepInfoType';
|
|
@@ -28,6 +28,7 @@ export { getOrchestrationExecutionActivityInputs, useGetOrchestrationExecutionAc
|
|
|
28
28
|
export { getOrchestrationExecutionActivityOutputs, useGetOrchestrationExecutionActivityOutputsQuery, } from './hooks/useGetOrchestrationExecutionActivityOutputsQuery';
|
|
29
29
|
export { getOrchestrationExecutionActivityOutputsV2, useGetOrchestrationExecutionActivityOutputsV2Query, } from './hooks/useGetOrchestrationExecutionActivityOutputsV2Query';
|
|
30
30
|
export { getOrchestrationExecutionActivity, useGetOrchestrationExecutionActivityQuery, } from './hooks/useGetOrchestrationExecutionActivityQuery';
|
|
31
|
+
export { getOrchestrationExecutionPhaseInputs, useGetOrchestrationExecutionPhaseInputsQuery, } from './hooks/useGetOrchestrationExecutionPhaseInputsQuery';
|
|
31
32
|
export { getOrchestrationExecutionPhaseOutputs, useGetOrchestrationExecutionPhaseOutputsQuery, } from './hooks/useGetOrchestrationExecutionPhaseOutputsQuery';
|
|
32
33
|
export { getOrchestrationExecutionPhaseOutputsV2, useGetOrchestrationExecutionPhaseOutputsV2Query, } from './hooks/useGetOrchestrationExecutionPhaseOutputsV2Query';
|
|
33
34
|
export { getOrchestrationExecutionPhases, useGetOrchestrationExecutionPhasesQuery, } from './hooks/useGetOrchestrationExecutionPhasesQuery';
|
|
@@ -38,6 +39,8 @@ export { getOrchestrationProcessInput, useGetOrchestrationProcessInputQuery, } f
|
|
|
38
39
|
export { getOrchestrationProcessInputSummary, useGetOrchestrationProcessInputSummaryQuery, } from './hooks/useGetOrchestrationProcessInputSummaryQuery';
|
|
39
40
|
export { getOrchestrationProcess, useGetOrchestrationProcessQuery, } from './hooks/useGetOrchestrationProcessQuery';
|
|
40
41
|
export { getOrchestrationProcessSummary, useGetOrchestrationProcessSummaryQuery, } from './hooks/useGetOrchestrationProcessSummaryQuery';
|
|
42
|
+
export { getPhaseArtifactUpdates, useGetPhaseArtifactUpdatesQuery, } from './hooks/useGetPhaseArtifactUpdatesQuery';
|
|
43
|
+
export { getPhaseRetryHistoryByIdentifiers, useGetPhaseRetryHistoryByIdentifiersQuery, } from './hooks/useGetPhaseRetryHistoryByIdentifiersQuery';
|
|
41
44
|
export { getProcessExecutionActivitiesPaginated, useGetProcessExecutionActivitiesPaginatedQuery, } from './hooks/useGetProcessExecutionActivitiesPaginatedQuery';
|
|
42
45
|
export { getProcessExecutionActivities, useGetProcessExecutionActivitiesQuery, } from './hooks/useGetProcessExecutionActivitiesQuery';
|
|
43
46
|
export { getProcessExecutionInput, useGetProcessExecutionInputQuery, } from './hooks/useGetProcessExecutionInputQuery';
|
|
@@ -63,7 +66,9 @@ export { getWebhookMetadata, useGetWebhookMetadataQuery } from './hooks/useGetWe
|
|
|
63
66
|
export { getYamlSchema, useGetYamlSchemaQuery } from './hooks/useGetYamlSchemaQuery';
|
|
64
67
|
export { ingestWebhookSignal, useIngestWebhookSignalMutation, } from './hooks/useIngestWebhookSignalMutation';
|
|
65
68
|
export { listArtifactTrackerServiceMappings, useListArtifactTrackerServiceMappingsQuery, } from './hooks/useListArtifactTrackerServiceMappingsQuery';
|
|
69
|
+
export { listArtifactTrackerServiceRefs, useListArtifactTrackerServiceRefsQuery, } from './hooks/useListArtifactTrackerServiceRefsQuery';
|
|
66
70
|
export { listArtifactTrackerSettings, useListArtifactTrackerSettingsQuery, } from './hooks/useListArtifactTrackerSettingsQuery';
|
|
71
|
+
export { listArtifactTrackerTagsByServiceMapping, useListArtifactTrackerTagsByServiceMappingQuery, } from './hooks/useListArtifactTrackerTagsByServiceMappingQuery';
|
|
67
72
|
export { listArtifacts, useListArtifactsQuery } from './hooks/useListArtifactsQuery';
|
|
68
73
|
export { listIntegrationExecutions, useListIntegrationExecutionsQuery, } from './hooks/useListIntegrationExecutionsQuery';
|
|
69
74
|
export { listReleaseChangesetCommits, useListReleaseChangesetCommitsQuery, } from './hooks/useListReleaseChangesetCommitsQuery';
|
|
@@ -77,6 +82,7 @@ export { postOrchestrationProcessExecute, usePostOrchestrationProcessExecuteMuta
|
|
|
77
82
|
export { postOrchestrationProcessInput, usePostOrchestrationProcessInputMutation, } from './hooks/usePostOrchestrationProcessInputMutation';
|
|
78
83
|
export { postOrchestrationProcessInputValidate, usePostOrchestrationProcessInputValidateMutation, } from './hooks/usePostOrchestrationProcessInputValidateMutation';
|
|
79
84
|
export { postOrchestrationProcess, usePostOrchestrationProcessMutation, } from './hooks/usePostOrchestrationProcessMutation';
|
|
85
|
+
export { postPhaseAction, usePostPhaseActionMutation } from './hooks/usePostPhaseActionMutation';
|
|
80
86
|
export { postProcessExecutionAction, usePostProcessExecutionActionMutation, } from './hooks/usePostProcessExecutionActionMutation';
|
|
81
87
|
export { postReleaseAction, usePostReleaseActionMutation, } from './hooks/usePostReleaseActionMutation';
|
|
82
88
|
export { postReleaseAdhoc, usePostReleaseAdhocMutation } from './hooks/usePostReleaseAdhocMutation';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -4,6 +4,13 @@ import type { AnyValue } from '../schemas/AnyValue';
|
|
|
4
4
|
* Input value for an activity execution
|
|
5
5
|
*/
|
|
6
6
|
export interface ActivityExecutionInputDto {
|
|
7
|
+
/**
|
|
8
|
+
* Free-form metadata bag persisted alongside the input value. release-artifact inputs use it to carry commitSha/repoName/branch/registry/artifactPath so the execution view can render them without a second lookup.
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
metadata?: {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
};
|
|
7
14
|
/**
|
|
8
15
|
* Name of the input parameter
|
|
9
16
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Flexible type that accepts any JSON value (string, number, boolean, object, or array)
|
|
3
3
|
*/
|
|
4
|
-
export type AnyValue = string
|
|
4
|
+
export type AnyValue = string | number | boolean | {
|
|
5
5
|
[key: string]: any;
|
|
6
|
-
}
|
|
6
|
+
} | Array<{
|
|
7
7
|
[key: string]: any;
|
|
8
8
|
}>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A distinct artifact tag with context from the newest artifact row
|
|
3
|
+
* produced under that tag. commit_sha / repo_name / branch may be empty
|
|
4
|
+
* if the ingest event didn't carry git info.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export interface ArtifactTag {
|
|
8
|
+
artifactPath: string;
|
|
9
|
+
branch?: string;
|
|
10
|
+
commitSha?: string;
|
|
11
|
+
registry: string;
|
|
12
|
+
repoName?: string;
|
|
13
|
+
tag: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ArtifactTag } from '../schemas/ArtifactTag';
|
|
2
|
+
/**
|
|
3
|
+
* Paginated list of distinct artifact tags for a service mapping, ordered newest first.
|
|
4
|
+
*/
|
|
5
|
+
export interface ArtifactTagList {
|
|
6
|
+
content?: ArtifactTag[];
|
|
7
|
+
pageNumber?: number;
|
|
8
|
+
pageSize?: number;
|
|
9
|
+
totalElements?: number;
|
|
10
|
+
totalPages?: number;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -12,4 +12,6 @@ import type { CustomArtifactMetadata } from '../schemas/CustomArtifactMetadata';
|
|
|
12
12
|
* Use the discriminated schemas below to determine which fields are needed per type.
|
|
13
13
|
*
|
|
14
14
|
*/
|
|
15
|
-
export type ArtifactTagMetadata = DockerRegistryArtifactMetadata
|
|
15
|
+
export type ArtifactTagMetadata = (DockerRegistryArtifactMetadata | EcrArtifactMetadata | GcrArtifactMetadata | AcrArtifactMetadata | GoogleArtifactRegistryMetadata | Nexus3RegistryArtifactMetadata | ArtifactoryRegistryMetadata | GithubPackageRegistryMetadata | CustomArtifactMetadata) & {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A service ref entry from a service mapping, keyed by mapping id.
|
|
3
|
+
*/
|
|
4
|
+
export interface ArtifactTrackerServiceRef {
|
|
5
|
+
/**
|
|
6
|
+
* Service mapping UUID. Use this to fetch tags via `/service-mappings/{identifier}/tags` (identifier resolved separately) or as an opaque key.
|
|
7
|
+
*/
|
|
8
|
+
id: string;
|
|
9
|
+
/**
|
|
10
|
+
* Service mapping identifier (user-facing name).
|
|
11
|
+
*/
|
|
12
|
+
identifier?: string;
|
|
13
|
+
/**
|
|
14
|
+
* The service ref stored on the service mapping.
|
|
15
|
+
*/
|
|
16
|
+
serviceRef: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ArtifactTrackerServiceRef } from '../schemas/ArtifactTrackerServiceRef';
|
|
2
|
+
export interface ArtifactTrackerServiceRefList {
|
|
3
|
+
content?: ArtifactTrackerServiceRef[];
|
|
4
|
+
pageNumber?: number;
|
|
5
|
+
pageSize?: number;
|
|
6
|
+
totalElements?: number;
|
|
7
|
+
totalPages?: number;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { OutputDataType } from '../schemas/OutputDataType';
|
|
1
2
|
import type { AnyValue } from '../schemas/AnyValue';
|
|
2
3
|
/**
|
|
3
4
|
* Output value for a phase execution
|
|
@@ -7,10 +8,18 @@ export interface ExecutionOutputDto {
|
|
|
7
8
|
* Description of the output parameter
|
|
8
9
|
*/
|
|
9
10
|
description?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Element type when type is 'list'. Absent for non-list outputs.
|
|
13
|
+
*/
|
|
14
|
+
items?: OutputDataType;
|
|
10
15
|
/**
|
|
11
16
|
* Name of the output parameter
|
|
12
17
|
*/
|
|
13
18
|
name: string;
|
|
19
|
+
/**
|
|
20
|
+
* Declared type of the output. Absent for legacy outputs (implicit string).
|
|
21
|
+
*/
|
|
22
|
+
type?: OutputDataType;
|
|
14
23
|
/**
|
|
15
24
|
* Value of the output parameter (can be string, number, boolean, object, array, etc.)
|
|
16
25
|
*/
|
|
@@ -7,4 +7,7 @@ import type { InfrastructureInputVariable } from '../schemas/InfrastructureInput
|
|
|
7
7
|
import type { MultiInfrastructureInputVariable } from '../schemas/MultiInfrastructureInputVariable';
|
|
8
8
|
import type { ConnectorInputVariable } from '../schemas/ConnectorInputVariable';
|
|
9
9
|
import type { ArtifactTagInputVariable } from '../schemas/ArtifactTagInputVariable';
|
|
10
|
-
|
|
10
|
+
import type { ReleaseArtifactInputVariable } from '../schemas/ReleaseArtifactInputVariable';
|
|
11
|
+
export type InputVariable = (PrimitiveInputVariable | ServiceInputVariable | MultiServiceInputVariable | EnvironmentInputVariable | MultiEnvironmentInputVariable | InfrastructureInputVariable | MultiInfrastructureInputVariable | ConnectorInputVariable | ArtifactTagInputVariable | ReleaseArtifactInputVariable) & {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Type of an input variable for parameters and process inputs.
|
|
3
3
|
*/
|
|
4
|
-
export type InputVariableType = 'artifactTag' | 'boolean' | 'connector' | 'environment' | 'infrastructure' | 'list' | 'multiEnvironment' | 'multiInfrastructure' | 'multiService' | 'number' | 'object' | 'service' | 'string';
|
|
4
|
+
export type InputVariableType = 'artifactTag' | 'boolean' | 'connector' | 'environment' | 'infrastructure' | 'list' | 'multiEnvironment' | 'multiInfrastructure' | 'multiService' | 'number' | 'object' | 'release-artifact' | 'service' | 'string';
|
|
@@ -23,13 +23,13 @@ export interface ManualTaskYaml {
|
|
|
23
23
|
/**
|
|
24
24
|
* Whether this task is required, it can be boolean or string as we support expressions
|
|
25
25
|
*/
|
|
26
|
-
required: boolean
|
|
26
|
+
required: boolean | string;
|
|
27
27
|
/**
|
|
28
28
|
* List of user groups or references, it can be string or array of strings as we support expressions
|
|
29
29
|
*/
|
|
30
|
-
userGroups: string
|
|
30
|
+
userGroups: string | string[];
|
|
31
31
|
/**
|
|
32
32
|
* List of user emails or references, it can be string or array of strings as we support expressions
|
|
33
33
|
*/
|
|
34
|
-
users: string
|
|
34
|
+
users: string | string[];
|
|
35
35
|
}
|
|
@@ -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';
|
|
@@ -1,14 +1,31 @@
|
|
|
1
|
+
import type { OutputDataType } from '../schemas/OutputDataType';
|
|
2
|
+
import type { AnyValue } from '../schemas/AnyValue';
|
|
1
3
|
/**
|
|
2
|
-
* Output variable definition. Accepts either a plain string (legacy format) or an object with a `value` field and
|
|
4
|
+
* Output variable definition. Accepts either a plain string (legacy format) or an object with a `value` field and optional `type`, `items`, `description`, and `metadata`.
|
|
3
5
|
*
|
|
4
6
|
*/
|
|
5
|
-
export type OutputVariable = string
|
|
7
|
+
export type OutputVariable = string | {
|
|
6
8
|
/**
|
|
7
9
|
* Human-readable description of the output variable.
|
|
8
10
|
*/
|
|
9
11
|
description?: string;
|
|
10
12
|
/**
|
|
11
|
-
*
|
|
13
|
+
* Element type when type is 'list'. Absent for non-list outputs.
|
|
12
14
|
*/
|
|
13
|
-
|
|
15
|
+
items?: OutputDataType;
|
|
16
|
+
/**
|
|
17
|
+
* Additional metadata for the output variable.
|
|
18
|
+
*/
|
|
19
|
+
metadata?: {
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Declared type of the output. Absent (empty) means the output has no declared type and is treated as 'string' for backward compatibility.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
type?: OutputDataType;
|
|
27
|
+
/**
|
|
28
|
+
* The output value or expression. Shape depends on the declared type.
|
|
29
|
+
*/
|
|
30
|
+
value: AnyValue;
|
|
14
31
|
};
|
|
@@ -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,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A single release-artifact input that has a newer tag available
|
|
3
|
+
*/
|
|
4
|
+
export interface PhaseArtifactUpdateDto {
|
|
5
|
+
/**
|
|
6
|
+
* The tag that was used when this phase run started
|
|
7
|
+
*/
|
|
8
|
+
currentTag: string;
|
|
9
|
+
/**
|
|
10
|
+
* The name of the input variable
|
|
11
|
+
*/
|
|
12
|
+
inputName: string;
|
|
13
|
+
/**
|
|
14
|
+
* The most recently ingested tag for this service mapping
|
|
15
|
+
*/
|
|
16
|
+
latestTag: string;
|
|
17
|
+
/**
|
|
18
|
+
* The service mapping identifier
|
|
19
|
+
*/
|
|
20
|
+
serviceMappingIdentifier: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { PhaseArtifactUpdateDto } from '../schemas/PhaseArtifactUpdateDto';
|
|
2
|
+
export interface PhaseArtifactUpdatesResponse {
|
|
3
|
+
/**
|
|
4
|
+
* True if at least one release-artifact input has a newer tag available
|
|
5
|
+
*/
|
|
6
|
+
hasUpdates: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* List of inputs with available tag updates
|
|
9
|
+
*/
|
|
10
|
+
updates: PhaseArtifactUpdateDto[];
|
|
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 {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ReleaseArtifactValue } from '../schemas/ReleaseArtifactValue';
|
|
2
|
+
/**
|
|
3
|
+
* Input variable for a release-artifact reference. The value is an object pointing to a specific artifact-tracker service mapping + tag. Populated by the UI via a cascade over the service-refs + tags APIs.
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
export interface ReleaseArtifactInputVariable {
|
|
7
|
+
/**
|
|
8
|
+
* Default reference (service mapping identifier + tag).
|
|
9
|
+
*/
|
|
10
|
+
default?: ReleaseArtifactValue;
|
|
11
|
+
/**
|
|
12
|
+
* Description of the variable
|
|
13
|
+
*/
|
|
14
|
+
description?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Optional metadata bag. Reserved for future use; not validated in v1.
|
|
17
|
+
*/
|
|
18
|
+
metadata?: {
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Type of the input variable
|
|
23
|
+
*/
|
|
24
|
+
type: 'release-artifact';
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Free-form object stored under a release-artifact input's value/default. Pass-through server-side — mirrors output-artifact's contract. Fields listed below are conventional but none are required, and `tag` can be a runtime expression (e.g. `<+input>`) rather than a literal string.
|
|
3
|
+
*
|
|
4
|
+
*/
|
|
5
|
+
export interface ReleaseArtifactValue {
|
|
6
|
+
/**
|
|
7
|
+
* Optional — carried through for display; not validated server-side.
|
|
8
|
+
*/
|
|
9
|
+
artifactPath?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The service mapping identifier (from /v1/artifact-tracker/service-refs).
|
|
12
|
+
*/
|
|
13
|
+
serviceMapping?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The artifact tag, or a runtime expression that resolves to one.
|
|
16
|
+
*/
|
|
17
|
+
tag?: string;
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
}
|
|
@@ -6,5 +6,5 @@ export interface TaskExecuteConfig {
|
|
|
6
6
|
* Either the literal string "all" (any process can be triggered), the literal string "none" (no process can be triggered), or an array of whitelisted process identifiers.
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
9
|
-
processes: 'all' |
|
|
9
|
+
processes: 'all' | 'none' | string[];
|
|
10
10
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harnessio/react-rmg-service-client",
|
|
3
|
-
"version": "0.69.0-beta.
|
|
3
|
+
"version": "0.69.0-beta.4",
|
|
4
4
|
"description": "Harness Release Management Service APIs integrated with react hooks",
|
|
5
5
|
"author": "Harness Inc",
|
|
6
6
|
"license": "MIT",
|
|
@@ -27,5 +27,8 @@
|
|
|
27
27
|
"build": "yarn generate && tsc",
|
|
28
28
|
"generate": "oats import --config='./oats.config.ts'",
|
|
29
29
|
"fmt": "prettier --write ./index.ts"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@harnessio/oats-cli": "^3.0.0"
|
|
30
33
|
}
|
|
31
34
|
}
|