@harnessio/react-rmg-service-client 0.77.0 → 0.79.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.
@@ -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';
@@ -346,6 +349,7 @@ export type { ArtifactoryRegistryMetadata } from './schemas/ArtifactoryRegistryM
346
349
  export type { AttachedReleaseGroupDto } from './schemas/AttachedReleaseGroupDto';
347
350
  export type { AutoExecuteOnScheduleProperty } from './schemas/AutoExecuteOnScheduleProperty';
348
351
  export type { BuildInfo } from './schemas/BuildInfo';
352
+ export type { CacheResponseMetadata } from './schemas/CacheResponseMetadata';
349
353
  export type { Changeset } from './schemas/Changeset';
350
354
  export type { ChangesetCommit } from './schemas/ChangesetCommit';
351
355
  export type { ChangesetCommitList } from './schemas/ChangesetCommitList';
@@ -448,6 +452,8 @@ export type { Pageable } from './schemas/Pageable';
448
452
  export type { PageableSort } from './schemas/PageableSort';
449
453
  export type { PhaseActionRequest } from './schemas/PhaseActionRequest';
450
454
  export type { PhaseActionResponse } from './schemas/PhaseActionResponse';
455
+ export type { PhaseArtifactUpdateDto } from './schemas/PhaseArtifactUpdateDto';
456
+ export type { PhaseArtifactUpdatesResponse } from './schemas/PhaseArtifactUpdatesResponse';
451
457
  export type { PhaseExecutionInputDto } from './schemas/PhaseExecutionInputDto';
452
458
  export type { PhaseInputYaml } from './schemas/PhaseInputYaml';
453
459
  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';
@@ -1,5 +1,7 @@
1
+ import type { CacheResponseMetadata } from '../schemas/CacheResponseMetadata';
1
2
  import type { GitDetails } from '../schemas/GitDetails';
2
3
  export interface GetOrchestrationActivityResponseResponse {
4
+ cache_response?: CacheResponseMetadata;
3
5
  git_details?: GitDetails;
4
6
  /**
5
7
  * Identifier of the orchestration activity
@@ -1,5 +1,7 @@
1
+ import type { CacheResponseMetadata } from '../schemas/CacheResponseMetadata';
1
2
  import type { GitDetails } from '../schemas/GitDetails';
2
3
  export interface GetOrchestrationProcessInputResponseResponse {
4
+ cache_response?: CacheResponseMetadata;
3
5
  git_details?: GitDetails;
4
6
  /**
5
7
  * Identifier of the orchestration process input
@@ -1,5 +1,7 @@
1
+ import type { CacheResponseMetadata } from '../schemas/CacheResponseMetadata';
1
2
  import type { GitDetails } from '../schemas/GitDetails';
2
3
  export interface GetOrchestrationProcessResponseResponse {
4
+ cache_response?: CacheResponseMetadata;
3
5
  git_details?: GitDetails;
4
6
  /**
5
7
  * Identifier of the orchestration process
@@ -0,0 +1,2 @@
1
+ import type { PhaseArtifactUpdatesResponse } from '../schemas/PhaseArtifactUpdatesResponse';
2
+ export type PhaseArtifactUpdatesResponseResponse = PhaseArtifactUpdatesResponse;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * GitX cache metadata returned when fetching a remote entity
3
+ */
4
+ export interface CacheResponseMetadata {
5
+ /**
6
+ * Cache freshness state from GitX
7
+ */
8
+ cache_state?: 'STALE_CACHE' | 'UNKNOWN' | 'VALID_CACHE';
9
+ /**
10
+ * Whether bi-directional git sync (webhook support) is enabled for the repo
11
+ */
12
+ is_sync_enabled?: boolean;
13
+ /**
14
+ * Epoch timestamp of the last cache update
15
+ * @format int64
16
+ */
17
+ last_updated_at?: number;
18
+ /**
19
+ * Remaining TTL for the cached entry in seconds
20
+ * @format int64
21
+ */
22
+ ttl_left?: number;
23
+ }
@@ -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,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
+ }
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-rmg-service-client",
3
- "version": "0.77.0",
3
+ "version": "0.79.0",
4
4
  "description": "Harness Release Management Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",