@harnessio/react-rmg-service-client 0.77.0 → 0.78.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/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/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/PolicyMetadata.d.ts +2 -8
- package/dist/rmg-service/src/services/schemas/PolicySetMetadata.d.ts +1 -4
- 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
|
+
}
|
|
@@ -89,6 +89,8 @@ export type { GetOrchestrationProcessErrorResponse, GetOrchestrationProcessOkRes
|
|
|
89
89
|
export { getOrchestrationProcess, useGetOrchestrationProcessQuery, } from './hooks/useGetOrchestrationProcessQuery';
|
|
90
90
|
export type { GetOrchestrationProcessSummaryErrorResponse, GetOrchestrationProcessSummaryOkResponse, GetOrchestrationProcessSummaryProps, GetOrchestrationProcessSummaryQueryQueryParams, } from './hooks/useGetOrchestrationProcessSummaryQuery';
|
|
91
91
|
export { getOrchestrationProcessSummary, useGetOrchestrationProcessSummaryQuery, } from './hooks/useGetOrchestrationProcessSummaryQuery';
|
|
92
|
+
export type { GetPhaseArtifactUpdatesErrorResponse, GetPhaseArtifactUpdatesOkResponse, GetPhaseArtifactUpdatesProps, GetPhaseArtifactUpdatesQueryPathParams, GetPhaseArtifactUpdatesQueryQueryParams, } from './hooks/useGetPhaseArtifactUpdatesQuery';
|
|
93
|
+
export { getPhaseArtifactUpdates, useGetPhaseArtifactUpdatesQuery, } from './hooks/useGetPhaseArtifactUpdatesQuery';
|
|
92
94
|
export type { GetPhaseRetryHistoryByIdentifiersErrorResponse, GetPhaseRetryHistoryByIdentifiersOkResponse, GetPhaseRetryHistoryByIdentifiersProps, GetPhaseRetryHistoryByIdentifiersQueryPathParams, GetPhaseRetryHistoryByIdentifiersQueryQueryParams, } from './hooks/useGetPhaseRetryHistoryByIdentifiersQuery';
|
|
93
95
|
export { getPhaseRetryHistoryByIdentifiers, useGetPhaseRetryHistoryByIdentifiersQuery, } from './hooks/useGetPhaseRetryHistoryByIdentifiersQuery';
|
|
94
96
|
export type { GetProcessExecutionActivitiesPaginatedErrorResponse, GetProcessExecutionActivitiesPaginatedOkResponse, GetProcessExecutionActivitiesPaginatedProps, GetProcessExecutionActivitiesPaginatedQueryPathParams, GetProcessExecutionActivitiesPaginatedQueryQueryParams, } from './hooks/useGetProcessExecutionActivitiesPaginatedQuery';
|
|
@@ -284,6 +286,7 @@ export type { OrchestrationProcessMetadataResponseResponse } from './responses/O
|
|
|
284
286
|
export type { OrchestrationProcessSummaryResponseResponse } from './responses/OrchestrationProcessSummaryResponseResponse';
|
|
285
287
|
export type { PatchReleaseGroupResponseResponse } from './responses/PatchReleaseGroupResponseResponse';
|
|
286
288
|
export type { PhaseActionResponseResponse } from './responses/PhaseActionResponseResponse';
|
|
289
|
+
export type { PhaseArtifactUpdatesResponseResponse } from './responses/PhaseArtifactUpdatesResponseResponse';
|
|
287
290
|
export type { ReleaseActionResponseResponse } from './responses/ReleaseActionResponseResponse';
|
|
288
291
|
export type { ReleaseActivitiesResponseResponse } from './responses/ReleaseActivitiesResponseResponse';
|
|
289
292
|
export type { ReleaseApprovalsResponseResponse } from './responses/ReleaseApprovalsResponseResponse';
|
|
@@ -448,6 +451,8 @@ export type { Pageable } from './schemas/Pageable';
|
|
|
448
451
|
export type { PageableSort } from './schemas/PageableSort';
|
|
449
452
|
export type { PhaseActionRequest } from './schemas/PhaseActionRequest';
|
|
450
453
|
export type { PhaseActionResponse } from './schemas/PhaseActionResponse';
|
|
454
|
+
export type { PhaseArtifactUpdateDto } from './schemas/PhaseArtifactUpdateDto';
|
|
455
|
+
export type { PhaseArtifactUpdatesResponse } from './schemas/PhaseArtifactUpdatesResponse';
|
|
451
456
|
export type { PhaseExecutionInputDto } from './schemas/PhaseExecutionInputDto';
|
|
452
457
|
export type { PhaseInputYaml } from './schemas/PhaseInputYaml';
|
|
453
458
|
export type { PhaseReleaseInputYaml } from './schemas/PhaseReleaseInputYaml';
|
|
@@ -43,6 +43,7 @@ export { getOrchestrationProcessInputSummary, useGetOrchestrationProcessInputSum
|
|
|
43
43
|
export { getOrchestrationProcessMetadata, useGetOrchestrationProcessMetadataQuery, } from './hooks/useGetOrchestrationProcessMetadataQuery';
|
|
44
44
|
export { getOrchestrationProcess, useGetOrchestrationProcessQuery, } from './hooks/useGetOrchestrationProcessQuery';
|
|
45
45
|
export { getOrchestrationProcessSummary, useGetOrchestrationProcessSummaryQuery, } from './hooks/useGetOrchestrationProcessSummaryQuery';
|
|
46
|
+
export { getPhaseArtifactUpdates, useGetPhaseArtifactUpdatesQuery, } from './hooks/useGetPhaseArtifactUpdatesQuery';
|
|
46
47
|
export { getPhaseRetryHistoryByIdentifiers, useGetPhaseRetryHistoryByIdentifiersQuery, } from './hooks/useGetPhaseRetryHistoryByIdentifiersQuery';
|
|
47
48
|
export { getProcessExecutionActivitiesPaginated, useGetProcessExecutionActivitiesPaginatedQuery, } from './hooks/useGetProcessExecutionActivitiesPaginatedQuery';
|
|
48
49
|
export { getProcessExecutionActivities, useGetProcessExecutionActivitiesQuery, } from './hooks/useGetProcessExecutionActivitiesQuery';
|
|
@@ -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 {};
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
export interface PolicyMetadata {
|
|
2
2
|
accountId?: string;
|
|
3
|
-
|
|
4
|
-
* @format int64
|
|
5
|
-
*/
|
|
6
|
-
created?: number;
|
|
3
|
+
created?: string;
|
|
7
4
|
denyMessages?: string[];
|
|
8
5
|
error?: string;
|
|
9
6
|
identifier?: string;
|
|
@@ -13,8 +10,5 @@ export interface PolicyMetadata {
|
|
|
13
10
|
projectId?: string;
|
|
14
11
|
severity?: string;
|
|
15
12
|
status?: string;
|
|
16
|
-
|
|
17
|
-
* @format int64
|
|
18
|
-
*/
|
|
19
|
-
updated?: number;
|
|
13
|
+
updated?: string;
|
|
20
14
|
}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import type { PolicyMetadata } from '../schemas/PolicyMetadata';
|
|
2
2
|
export interface PolicySetMetadata {
|
|
3
3
|
accountId?: string;
|
|
4
|
-
|
|
5
|
-
* @format int64
|
|
6
|
-
*/
|
|
7
|
-
created?: number;
|
|
4
|
+
created?: string;
|
|
8
5
|
deny?: boolean;
|
|
9
6
|
description?: string;
|
|
10
7
|
identifier?: string;
|