@harnessio/react-rmg-service-client 0.70.1-beta.0 → 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.
@@ -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,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,9 @@ 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';
416
+ export type { PhaseExecutionInputDto } from './schemas/PhaseExecutionInputDto';
411
417
  export type { PhaseInputYaml } from './schemas/PhaseInputYaml';
412
418
  export type { PhaseReleaseInputYaml } from './schemas/PhaseReleaseInputYaml';
413
419
  export type { PhaseRetryHistoryResponse } from './schemas/PhaseRetryHistoryResponse';
@@ -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,2 @@
1
+ import type { PhaseArtifactUpdatesResponse } from '../schemas/PhaseArtifactUpdatesResponse';
2
+ export type PhaseArtifactUpdatesResponseResponse = PhaseArtifactUpdatesResponse;
@@ -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
  */
@@ -1,12 +1,11 @@
1
+ import type { PhaseExecutionInputDto } from '../schemas/PhaseExecutionInputDto';
1
2
  export interface PhaseActionRequest {
2
3
  /**
3
4
  * The action to perform on the paused phase. 'resume' proceeds the DAG; 'restart' re-runs the phase (optionally with changed inputs).
4
5
  */
5
6
  action: 'restart' | 'resume';
6
7
  /**
7
- * Optional changed phase input overrides, applied only when action is 'restart'. Keys are phase input identifiers; values are the new input values.
8
+ * Optional changed phase input overrides, applied only when action is 'restart'. Each entry carries the input name, type, and value (any JSON type).
8
9
  */
9
- inputs?: {
10
- [key: string]: string;
11
- };
10
+ inputs?: PhaseExecutionInputDto[];
12
11
  }
@@ -1,4 +1 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
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,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,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,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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-rmg-service-client",
3
- "version": "0.70.1-beta.0",
3
+ "version": "0.70.2-beta.2",
4
4
  "description": "Harness Release Management Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",