@harnessio/react-rmg-service-client 0.70.2-beta.1 → 0.70.2-beta.2
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/useGetPhaseArtifactUpdatesQuery.d.ts +26 -0
- package/dist/rmg-service/src/services/hooks/useGetPhaseArtifactUpdatesQuery.js +15 -0
- package/dist/rmg-service/src/services/index.d.ts +5 -0
- package/dist/rmg-service/src/services/index.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/OrchestrationExecutionPhase.d.ts +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/package.json +1 -1
|
@@ -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
|
+
}
|
|
@@ -79,6 +79,8 @@ export type { GetOrchestrationProcessErrorResponse, GetOrchestrationProcessOkRes
|
|
|
79
79
|
export { getOrchestrationProcess, useGetOrchestrationProcessQuery, } from './hooks/useGetOrchestrationProcessQuery';
|
|
80
80
|
export type { GetOrchestrationProcessSummaryErrorResponse, GetOrchestrationProcessSummaryOkResponse, GetOrchestrationProcessSummaryProps, GetOrchestrationProcessSummaryQueryQueryParams, } from './hooks/useGetOrchestrationProcessSummaryQuery';
|
|
81
81
|
export { getOrchestrationProcessSummary, useGetOrchestrationProcessSummaryQuery, } from './hooks/useGetOrchestrationProcessSummaryQuery';
|
|
82
|
+
export type { GetPhaseArtifactUpdatesErrorResponse, GetPhaseArtifactUpdatesOkResponse, GetPhaseArtifactUpdatesProps, GetPhaseArtifactUpdatesQueryPathParams, GetPhaseArtifactUpdatesQueryQueryParams, } from './hooks/useGetPhaseArtifactUpdatesQuery';
|
|
83
|
+
export { getPhaseArtifactUpdates, useGetPhaseArtifactUpdatesQuery, } from './hooks/useGetPhaseArtifactUpdatesQuery';
|
|
82
84
|
export type { GetPhaseRetryHistoryByIdentifiersErrorResponse, GetPhaseRetryHistoryByIdentifiersOkResponse, GetPhaseRetryHistoryByIdentifiersProps, GetPhaseRetryHistoryByIdentifiersQueryPathParams, GetPhaseRetryHistoryByIdentifiersQueryQueryParams, } from './hooks/useGetPhaseRetryHistoryByIdentifiersQuery';
|
|
83
85
|
export { getPhaseRetryHistoryByIdentifiers, useGetPhaseRetryHistoryByIdentifiersQuery, } from './hooks/useGetPhaseRetryHistoryByIdentifiersQuery';
|
|
84
86
|
export type { GetProcessExecutionActivitiesPaginatedErrorResponse, GetProcessExecutionActivitiesPaginatedOkResponse, GetProcessExecutionActivitiesPaginatedProps, GetProcessExecutionActivitiesPaginatedQueryPathParams, GetProcessExecutionActivitiesPaginatedQueryQueryParams, } from './hooks/useGetProcessExecutionActivitiesPaginatedQuery';
|
|
@@ -259,6 +261,7 @@ export type { OrchestrationProcessInputSummaryResponseResponse } from './respons
|
|
|
259
261
|
export type { OrchestrationProcessSummaryResponseResponse } from './responses/OrchestrationProcessSummaryResponseResponse';
|
|
260
262
|
export type { PatchReleaseGroupResponseResponse } from './responses/PatchReleaseGroupResponseResponse';
|
|
261
263
|
export type { PhaseActionResponseResponse } from './responses/PhaseActionResponseResponse';
|
|
264
|
+
export type { PhaseArtifactUpdatesResponseResponse } from './responses/PhaseArtifactUpdatesResponseResponse';
|
|
262
265
|
export type { ReleaseActionResponseResponse } from './responses/ReleaseActionResponseResponse';
|
|
263
266
|
export type { ReleaseActivitiesResponseResponse } from './responses/ReleaseActivitiesResponseResponse';
|
|
264
267
|
export type { ReleaseApprovalsResponseResponse } from './responses/ReleaseApprovalsResponseResponse';
|
|
@@ -408,6 +411,8 @@ export type { Pageable } from './schemas/Pageable';
|
|
|
408
411
|
export type { PageableSort } from './schemas/PageableSort';
|
|
409
412
|
export type { PhaseActionRequest } from './schemas/PhaseActionRequest';
|
|
410
413
|
export type { PhaseActionResponse } from './schemas/PhaseActionResponse';
|
|
414
|
+
export type { PhaseArtifactUpdateDto } from './schemas/PhaseArtifactUpdateDto';
|
|
415
|
+
export type { PhaseArtifactUpdatesResponse } from './schemas/PhaseArtifactUpdatesResponse';
|
|
411
416
|
export type { PhaseExecutionInputDto } from './schemas/PhaseExecutionInputDto';
|
|
412
417
|
export type { PhaseInputYaml } from './schemas/PhaseInputYaml';
|
|
413
418
|
export type { PhaseReleaseInputYaml } from './schemas/PhaseReleaseInputYaml';
|
|
@@ -38,6 +38,7 @@ export { getOrchestrationProcessInput, useGetOrchestrationProcessInputQuery, } f
|
|
|
38
38
|
export { getOrchestrationProcessInputSummary, useGetOrchestrationProcessInputSummaryQuery, } from './hooks/useGetOrchestrationProcessInputSummaryQuery';
|
|
39
39
|
export { getOrchestrationProcess, useGetOrchestrationProcessQuery, } from './hooks/useGetOrchestrationProcessQuery';
|
|
40
40
|
export { getOrchestrationProcessSummary, useGetOrchestrationProcessSummaryQuery, } from './hooks/useGetOrchestrationProcessSummaryQuery';
|
|
41
|
+
export { getPhaseArtifactUpdates, useGetPhaseArtifactUpdatesQuery, } from './hooks/useGetPhaseArtifactUpdatesQuery';
|
|
41
42
|
export { getPhaseRetryHistoryByIdentifiers, useGetPhaseRetryHistoryByIdentifiersQuery, } from './hooks/useGetPhaseRetryHistoryByIdentifiersQuery';
|
|
42
43
|
export { getProcessExecutionActivitiesPaginated, useGetProcessExecutionActivitiesPaginatedQuery, } from './hooks/useGetProcessExecutionActivitiesPaginatedQuery';
|
|
43
44
|
export { getProcessExecutionActivities, useGetProcessExecutionActivitiesQuery, } from './hooks/useGetProcessExecutionActivitiesQuery';
|
|
@@ -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
|
*/
|
|
@@ -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 {};
|
package/package.json
CHANGED