@harnessio/react-rmg-service-client 0.29.0 → 0.30.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.
@@ -9,6 +9,7 @@ export interface GetOrchestrationExecutionActivitiesQueryPathParams {
9
9
  }
10
10
  export interface GetOrchestrationExecutionActivitiesQueryQueryParams {
11
11
  phaseExecutionId?: string;
12
+ status?: string[];
12
13
  orgIdentifier?: string;
13
14
  projectIdentifier?: string;
14
15
  }
@@ -0,0 +1,28 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ExecutionOutputsResponseResponse } from '../responses/ExecutionOutputsResponseResponse';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetOrchestrationExecutionActivityOutputsQueryPathParams {
7
+ releaseId: string;
8
+ phaseIdentifier: string;
9
+ activityIdentifier: string;
10
+ }
11
+ export interface GetOrchestrationExecutionActivityOutputsQueryQueryParams {
12
+ activityExecutionId?: string;
13
+ orgIdentifier?: string;
14
+ projectIdentifier?: string;
15
+ }
16
+ export interface GetOrchestrationExecutionActivityOutputsQueryHeaderParams {
17
+ 'Harness-Account': string;
18
+ }
19
+ export type GetOrchestrationExecutionActivityOutputsOkResponse = ResponseWithPagination<ExecutionOutputsResponseResponse>;
20
+ export type GetOrchestrationExecutionActivityOutputsErrorResponse = ErrorResponseResponse;
21
+ export interface GetOrchestrationExecutionActivityOutputsProps extends GetOrchestrationExecutionActivityOutputsQueryPathParams, Omit<FetcherOptions<GetOrchestrationExecutionActivityOutputsQueryQueryParams, unknown, GetOrchestrationExecutionActivityOutputsQueryHeaderParams>, 'url'> {
22
+ queryParams: GetOrchestrationExecutionActivityOutputsQueryQueryParams;
23
+ }
24
+ export declare function getOrchestrationExecutionActivityOutputs(props: GetOrchestrationExecutionActivityOutputsProps): Promise<GetOrchestrationExecutionActivityOutputsOkResponse>;
25
+ /**
26
+ * Retrieve output values for a specific activity execution
27
+ */
28
+ export declare function useGetOrchestrationExecutionActivityOutputsQuery(props: GetOrchestrationExecutionActivityOutputsProps, options?: Omit<UseQueryOptions<GetOrchestrationExecutionActivityOutputsOkResponse, GetOrchestrationExecutionActivityOutputsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetOrchestrationExecutionActivityOutputsOkResponse, import("..").Error>;
@@ -0,0 +1,20 @@
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 getOrchestrationExecutionActivityOutputs(props) {
7
+ return fetcher(Object.assign({ url: `/orchestration/execution/release/${props.releaseId}/phase/${props.phaseIdentifier}/activity/${props.activityIdentifier}/output`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Retrieve output values for a specific activity execution
11
+ */
12
+ export function useGetOrchestrationExecutionActivityOutputsQuery(props, options) {
13
+ return useQuery([
14
+ 'get-orchestration-execution-activity-outputs',
15
+ props.releaseId,
16
+ props.phaseIdentifier,
17
+ props.activityIdentifier,
18
+ props.queryParams,
19
+ ], ({ signal }) => getOrchestrationExecutionActivityOutputs(Object.assign(Object.assign({}, props), { signal })), options);
20
+ }
@@ -0,0 +1,27 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ExecutionOutputsResponseResponse } from '../responses/ExecutionOutputsResponseResponse';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetOrchestrationExecutionPhaseOutputsQueryPathParams {
7
+ releaseId: string;
8
+ phaseIdentifier: string;
9
+ }
10
+ export interface GetOrchestrationExecutionPhaseOutputsQueryQueryParams {
11
+ phaseExecutionId?: string;
12
+ orgIdentifier?: string;
13
+ projectIdentifier?: string;
14
+ }
15
+ export interface GetOrchestrationExecutionPhaseOutputsQueryHeaderParams {
16
+ 'Harness-Account': string;
17
+ }
18
+ export type GetOrchestrationExecutionPhaseOutputsOkResponse = ResponseWithPagination<ExecutionOutputsResponseResponse>;
19
+ export type GetOrchestrationExecutionPhaseOutputsErrorResponse = ErrorResponseResponse;
20
+ export interface GetOrchestrationExecutionPhaseOutputsProps extends GetOrchestrationExecutionPhaseOutputsQueryPathParams, Omit<FetcherOptions<GetOrchestrationExecutionPhaseOutputsQueryQueryParams, unknown, GetOrchestrationExecutionPhaseOutputsQueryHeaderParams>, 'url'> {
21
+ queryParams: GetOrchestrationExecutionPhaseOutputsQueryQueryParams;
22
+ }
23
+ export declare function getOrchestrationExecutionPhaseOutputs(props: GetOrchestrationExecutionPhaseOutputsProps): Promise<GetOrchestrationExecutionPhaseOutputsOkResponse>;
24
+ /**
25
+ * Retrieve output values for a specific phase execution
26
+ */
27
+ export declare function useGetOrchestrationExecutionPhaseOutputsQuery(props: GetOrchestrationExecutionPhaseOutputsProps, options?: Omit<UseQueryOptions<GetOrchestrationExecutionPhaseOutputsOkResponse, GetOrchestrationExecutionPhaseOutputsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetOrchestrationExecutionPhaseOutputsOkResponse, 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 getOrchestrationExecutionPhaseOutputs(props) {
7
+ return fetcher(Object.assign({ url: `/orchestration/execution/release/${props.releaseId}/phase/${props.phaseIdentifier}/output`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Retrieve output values for a specific phase execution
11
+ */
12
+ export function useGetOrchestrationExecutionPhaseOutputsQuery(props, options) {
13
+ return useQuery([
14
+ 'get-orchestration-execution-phase-outputs',
15
+ props.releaseId,
16
+ props.phaseIdentifier,
17
+ props.queryParams,
18
+ ], ({ signal }) => getOrchestrationExecutionPhaseOutputs(Object.assign(Object.assign({}, props), { signal })), options);
19
+ }
@@ -7,6 +7,7 @@ export interface GetOrchestrationExecutionPhasesQueryPathParams {
7
7
  releaseId: string;
8
8
  }
9
9
  export interface GetOrchestrationExecutionPhasesQueryQueryParams {
10
+ status?: string[];
10
11
  orgIdentifier?: string;
11
12
  projectIdentifier?: string;
12
13
  }
@@ -23,6 +23,10 @@ export type { GetOrchestrationExecutionActivitiesErrorResponse, GetOrchestration
23
23
  export { getOrchestrationExecutionActivities, useGetOrchestrationExecutionActivitiesQuery, } from './hooks/useGetOrchestrationExecutionActivitiesQuery';
24
24
  export type { GetOrchestrationExecutionActivityInputsErrorResponse, GetOrchestrationExecutionActivityInputsOkResponse, GetOrchestrationExecutionActivityInputsProps, GetOrchestrationExecutionActivityInputsQueryPathParams, GetOrchestrationExecutionActivityInputsQueryQueryParams, } from './hooks/useGetOrchestrationExecutionActivityInputsQuery';
25
25
  export { getOrchestrationExecutionActivityInputs, useGetOrchestrationExecutionActivityInputsQuery, } from './hooks/useGetOrchestrationExecutionActivityInputsQuery';
26
+ export type { GetOrchestrationExecutionActivityOutputsErrorResponse, GetOrchestrationExecutionActivityOutputsOkResponse, GetOrchestrationExecutionActivityOutputsProps, GetOrchestrationExecutionActivityOutputsQueryPathParams, GetOrchestrationExecutionActivityOutputsQueryQueryParams, } from './hooks/useGetOrchestrationExecutionActivityOutputsQuery';
27
+ export { getOrchestrationExecutionActivityOutputs, useGetOrchestrationExecutionActivityOutputsQuery, } from './hooks/useGetOrchestrationExecutionActivityOutputsQuery';
28
+ export type { GetOrchestrationExecutionPhaseOutputsErrorResponse, GetOrchestrationExecutionPhaseOutputsOkResponse, GetOrchestrationExecutionPhaseOutputsProps, GetOrchestrationExecutionPhaseOutputsQueryPathParams, GetOrchestrationExecutionPhaseOutputsQueryQueryParams, } from './hooks/useGetOrchestrationExecutionPhaseOutputsQuery';
29
+ export { getOrchestrationExecutionPhaseOutputs, useGetOrchestrationExecutionPhaseOutputsQuery, } from './hooks/useGetOrchestrationExecutionPhaseOutputsQuery';
26
30
  export type { GetOrchestrationExecutionPhasesErrorResponse, GetOrchestrationExecutionPhasesOkResponse, GetOrchestrationExecutionPhasesProps, GetOrchestrationExecutionPhasesQueryPathParams, GetOrchestrationExecutionPhasesQueryQueryParams, } from './hooks/useGetOrchestrationExecutionPhasesQuery';
27
31
  export { getOrchestrationExecutionPhases, useGetOrchestrationExecutionPhasesQuery, } from './hooks/useGetOrchestrationExecutionPhasesQuery';
28
32
  export type { GetOrchestrationExecutionTasksErrorResponse, GetOrchestrationExecutionTasksOkResponse, GetOrchestrationExecutionTasksProps, GetOrchestrationExecutionTasksQueryPathParams, GetOrchestrationExecutionTasksQueryQueryParams, } from './hooks/useGetOrchestrationExecutionTasksQuery';
@@ -114,6 +118,7 @@ export type { DeleteReleaseGroupResponseResponse } from './responses/DeleteRelea
114
118
  export type { EnvironmentDashboardResponseResponse } from './responses/EnvironmentDashboardResponseResponse';
115
119
  export type { EnvironmentListPerReleaseResponseResponse } from './responses/EnvironmentListPerReleaseResponseResponse';
116
120
  export type { ErrorResponseResponse } from './responses/ErrorResponseResponse';
121
+ export type { ExecutionOutputsResponseResponse } from './responses/ExecutionOutputsResponseResponse';
117
122
  export type { ExecutionTasksListResponseResponse } from './responses/ExecutionTasksListResponseResponse';
118
123
  export type { FreezeDetailsResponseResponse } from './responses/FreezeDetailsResponseResponse';
119
124
  export type { FreezeListResponseResponse } from './responses/FreezeListResponseResponse';
@@ -160,6 +165,7 @@ export type { EnvironmentDto } from './schemas/EnvironmentDto';
160
165
  export type { EnvironmentType } from './schemas/EnvironmentType';
161
166
  export type { Error } from './schemas/Error';
162
167
  export type { ExecutionConflict } from './schemas/ExecutionConflict';
168
+ export type { ExecutionOutputDto } from './schemas/ExecutionOutputDto';
163
169
  export type { ExecutionTaskDto } from './schemas/ExecutionTaskDto';
164
170
  export type { ExecutionTaskStatus } from './schemas/ExecutionTaskStatus';
165
171
  export type { FreezeDetailsDto } from './schemas/FreezeDetailsDto';
@@ -10,6 +10,8 @@ export { getOrchestrationActivity, useGetOrchestrationActivityQuery, } from './h
10
10
  export { getOrchestrationActivitySummary, useGetOrchestrationActivitySummaryQuery, } from './hooks/useGetOrchestrationActivitySummaryQuery';
11
11
  export { getOrchestrationExecutionActivities, useGetOrchestrationExecutionActivitiesQuery, } from './hooks/useGetOrchestrationExecutionActivitiesQuery';
12
12
  export { getOrchestrationExecutionActivityInputs, useGetOrchestrationExecutionActivityInputsQuery, } from './hooks/useGetOrchestrationExecutionActivityInputsQuery';
13
+ export { getOrchestrationExecutionActivityOutputs, useGetOrchestrationExecutionActivityOutputsQuery, } from './hooks/useGetOrchestrationExecutionActivityOutputsQuery';
14
+ export { getOrchestrationExecutionPhaseOutputs, useGetOrchestrationExecutionPhaseOutputsQuery, } from './hooks/useGetOrchestrationExecutionPhaseOutputsQuery';
13
15
  export { getOrchestrationExecutionPhases, useGetOrchestrationExecutionPhasesQuery, } from './hooks/useGetOrchestrationExecutionPhasesQuery';
14
16
  export { getOrchestrationExecutionTasks, useGetOrchestrationExecutionTasksQuery, } from './hooks/useGetOrchestrationExecutionTasksQuery';
15
17
  export { getOrchestrationProcessInput, useGetOrchestrationProcessInputQuery, } from './hooks/useGetOrchestrationProcessInputQuery';
@@ -0,0 +1,7 @@
1
+ import type { ExecutionOutputDto } from '../schemas/ExecutionOutputDto';
2
+ export interface ExecutionOutputsResponseResponse {
3
+ /**
4
+ * List of output values for the phase execution
5
+ */
6
+ outputs: ExecutionOutputDto[];
7
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Output value for a phase execution
3
+ */
4
+ export interface ExecutionOutputDto {
5
+ /**
6
+ * Name of the output parameter
7
+ */
8
+ name: string;
9
+ /**
10
+ * Value of the output parameter
11
+ */
12
+ value: string;
13
+ }
@@ -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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-rmg-service-client",
3
- "version": "0.29.0",
3
+ "version": "0.30.0",
4
4
  "description": "Harness Release Management Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",