@harnessio/react-rmg-service-client 0.65.1-beta.3 → 0.65.1-beta.4

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.
Files changed (19) hide show
  1. package/dist/rmg-service/src/services/hooks/useGetOrchestrationExecutionActivityOutputsV2Query.d.ts +28 -0
  2. package/dist/rmg-service/src/services/hooks/useGetOrchestrationExecutionActivityOutputsV2Query.js +20 -0
  3. package/dist/rmg-service/src/services/hooks/useGetOrchestrationExecutionPhaseOutputsV2Query.d.ts +27 -0
  4. package/dist/rmg-service/src/services/hooks/useGetOrchestrationExecutionPhaseOutputsV2Query.js +19 -0
  5. package/dist/rmg-service/src/services/hooks/useGetOrchestrationProcessExecutionsQuery.d.ts +1 -2
  6. package/dist/rmg-service/src/services/hooks/usePostWebhookQueueActionMutation.d.ts +1 -1
  7. package/dist/rmg-service/src/services/hooks/usePostWebhookQueueActionMutation.js +1 -1
  8. package/dist/rmg-service/src/services/index.d.ts +7 -1
  9. package/dist/rmg-service/src/services/index.js +2 -0
  10. package/dist/rmg-service/src/services/responses/ExecutionOutputsV2ResponseResponse.d.ts +7 -0
  11. package/dist/rmg-service/src/services/schemas/CreateOrchestrationActivityRequestType.d.ts +1 -1
  12. package/dist/rmg-service/src/services/schemas/ExecutionOutputGroupDto.d.ts +10 -0
  13. package/dist/rmg-service/src/services/schemas/ExecutionOutputGroupDto.js +1 -0
  14. package/dist/rmg-service/src/services/schemas/ExecutionOutputV2Dto.d.ts +13 -0
  15. package/dist/rmg-service/src/services/schemas/ExecutionOutputV2Dto.js +4 -0
  16. package/dist/rmg-service/src/services/schemas/WebhookQueueActionResponse.d.ts +2 -2
  17. package/package.json +1 -1
  18. package/dist/rmg-service/src/services/schemas/OrchestrationStatusList.d.ts +0 -5
  19. /package/dist/rmg-service/src/services/{schemas/OrchestrationStatusList.js → responses/ExecutionOutputsV2ResponseResponse.js} +0 -0
@@ -0,0 +1,28 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ExecutionOutputsV2ResponseResponse } from '../responses/ExecutionOutputsV2ResponseResponse';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetOrchestrationExecutionActivityOutputsV2QueryPathParams {
7
+ releaseId: string;
8
+ phaseIdentifier: string;
9
+ activityIdentifier: string;
10
+ }
11
+ export interface GetOrchestrationExecutionActivityOutputsV2QueryQueryParams {
12
+ activityExecutionId?: string;
13
+ orgIdentifier?: string;
14
+ projectIdentifier?: string;
15
+ }
16
+ export interface GetOrchestrationExecutionActivityOutputsV2QueryHeaderParams {
17
+ 'Harness-Account': string;
18
+ }
19
+ export type GetOrchestrationExecutionActivityOutputsV2OkResponse = ResponseWithPagination<ExecutionOutputsV2ResponseResponse>;
20
+ export type GetOrchestrationExecutionActivityOutputsV2ErrorResponse = ErrorResponseResponse;
21
+ export interface GetOrchestrationExecutionActivityOutputsV2Props extends GetOrchestrationExecutionActivityOutputsV2QueryPathParams, Omit<FetcherOptions<GetOrchestrationExecutionActivityOutputsV2QueryQueryParams, unknown, GetOrchestrationExecutionActivityOutputsV2QueryHeaderParams>, 'url'> {
22
+ queryParams: GetOrchestrationExecutionActivityOutputsV2QueryQueryParams;
23
+ }
24
+ export declare function getOrchestrationExecutionActivityOutputsV2(props: GetOrchestrationExecutionActivityOutputsV2Props): Promise<GetOrchestrationExecutionActivityOutputsV2OkResponse>;
25
+ /**
26
+ * Retrieve grouped output values for a specific activity execution (v2 format)
27
+ */
28
+ export declare function useGetOrchestrationExecutionActivityOutputsV2Query(props: GetOrchestrationExecutionActivityOutputsV2Props, options?: Omit<UseQueryOptions<GetOrchestrationExecutionActivityOutputsV2OkResponse, GetOrchestrationExecutionActivityOutputsV2ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetOrchestrationExecutionActivityOutputsV2OkResponse, 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 getOrchestrationExecutionActivityOutputsV2(props) {
7
+ return fetcher(Object.assign({ url: `/orchestration/execution/release/${props.releaseId}/phase/${props.phaseIdentifier}/activity/${props.activityIdentifier}/output/v2`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Retrieve grouped output values for a specific activity execution (v2 format)
11
+ */
12
+ export function useGetOrchestrationExecutionActivityOutputsV2Query(props, options) {
13
+ return useQuery([
14
+ 'get-orchestration-execution-activity-outputs-v2',
15
+ props.releaseId,
16
+ props.phaseIdentifier,
17
+ props.activityIdentifier,
18
+ props.queryParams,
19
+ ], ({ signal }) => getOrchestrationExecutionActivityOutputsV2(Object.assign(Object.assign({}, props), { signal })), options);
20
+ }
@@ -0,0 +1,27 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ExecutionOutputsV2ResponseResponse } from '../responses/ExecutionOutputsV2ResponseResponse';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetOrchestrationExecutionPhaseOutputsV2QueryPathParams {
7
+ releaseId: string;
8
+ phaseIdentifier: string;
9
+ }
10
+ export interface GetOrchestrationExecutionPhaseOutputsV2QueryQueryParams {
11
+ phaseExecutionId?: string;
12
+ orgIdentifier?: string;
13
+ projectIdentifier?: string;
14
+ }
15
+ export interface GetOrchestrationExecutionPhaseOutputsV2QueryHeaderParams {
16
+ 'Harness-Account': string;
17
+ }
18
+ export type GetOrchestrationExecutionPhaseOutputsV2OkResponse = ResponseWithPagination<ExecutionOutputsV2ResponseResponse>;
19
+ export type GetOrchestrationExecutionPhaseOutputsV2ErrorResponse = ErrorResponseResponse;
20
+ export interface GetOrchestrationExecutionPhaseOutputsV2Props extends GetOrchestrationExecutionPhaseOutputsV2QueryPathParams, Omit<FetcherOptions<GetOrchestrationExecutionPhaseOutputsV2QueryQueryParams, unknown, GetOrchestrationExecutionPhaseOutputsV2QueryHeaderParams>, 'url'> {
21
+ queryParams: GetOrchestrationExecutionPhaseOutputsV2QueryQueryParams;
22
+ }
23
+ export declare function getOrchestrationExecutionPhaseOutputsV2(props: GetOrchestrationExecutionPhaseOutputsV2Props): Promise<GetOrchestrationExecutionPhaseOutputsV2OkResponse>;
24
+ /**
25
+ * Retrieve grouped output values for a specific phase execution (v2 format)
26
+ */
27
+ export declare function useGetOrchestrationExecutionPhaseOutputsV2Query(props: GetOrchestrationExecutionPhaseOutputsV2Props, options?: Omit<UseQueryOptions<GetOrchestrationExecutionPhaseOutputsV2OkResponse, GetOrchestrationExecutionPhaseOutputsV2ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetOrchestrationExecutionPhaseOutputsV2OkResponse, 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 getOrchestrationExecutionPhaseOutputsV2(props) {
7
+ return fetcher(Object.assign({ url: `/orchestration/execution/release/${props.releaseId}/phase/${props.phaseIdentifier}/output/v2`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Retrieve grouped output values for a specific phase execution (v2 format)
11
+ */
12
+ export function useGetOrchestrationExecutionPhaseOutputsV2Query(props, options) {
13
+ return useQuery([
14
+ 'get-orchestration-execution-phase-outputs-v2',
15
+ props.releaseId,
16
+ props.phaseIdentifier,
17
+ props.queryParams,
18
+ ], ({ signal }) => getOrchestrationExecutionPhaseOutputsV2(Object.assign(Object.assign({}, props), { signal })), options);
19
+ }
@@ -1,7 +1,6 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { ProcessExecutionDto } from '../schemas/ProcessExecutionDto';
3
3
  import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
- import type { OrchestrationStatusList } from '../schemas/OrchestrationStatusList';
5
4
  import type { ResponseWithPagination } from '../helpers';
6
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
7
6
  export interface GetOrchestrationProcessExecutionsQueryPathParams {
@@ -14,7 +13,7 @@ export interface GetOrchestrationProcessExecutionsQueryQueryParams {
14
13
  size?: number;
15
14
  sort?: string[];
16
15
  executionType?: 'PROCESS' | 'RELEASE';
17
- statuses?: OrchestrationStatusList;
16
+ statuses?: Array<'ABORTED' | 'FAILED' | 'IGNORED' | 'ON_HOLD' | 'OUTPUT_WAITING' | 'QUEUED' | 'RETRIED' | 'RUNNING' | 'SCHEDULED' | 'SKIPPED' | 'SUCCEEDED'>;
18
17
  /**
19
18
  * @format int64
20
19
  */
@@ -23,6 +23,6 @@ export interface PostWebhookQueueActionProps extends PostWebhookQueueActionMutat
23
23
  }
24
24
  export declare function postWebhookQueueAction(props: PostWebhookQueueActionProps): Promise<PostWebhookQueueActionOkResponse>;
25
25
  /**
26
- * Publishes an APPROVE or REJECT action for the webhook activity queue. Processing is async via Kafka.
26
+ * Publishes an APPROVE action for the webhook activity queue. Processing is async via Kafka.
27
27
  */
28
28
  export declare function usePostWebhookQueueActionMutation(options?: Omit<UseMutationOptions<PostWebhookQueueActionOkResponse, PostWebhookQueueActionErrorResponse, PostWebhookQueueActionProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<PostWebhookQueueActionOkResponse, import("..").Error, PostWebhookQueueActionProps, unknown>;
@@ -7,7 +7,7 @@ export function postWebhookQueueAction(props) {
7
7
  return fetcher(Object.assign({ url: `/v1/webhook/${props.activityExecutionId}/queue/action`, method: 'POST' }, props));
8
8
  }
9
9
  /**
10
- * Publishes an APPROVE or REJECT action for the webhook activity queue. Processing is async via Kafka.
10
+ * Publishes an APPROVE action for the webhook activity queue. Processing is async via Kafka.
11
11
  */
12
12
  export function usePostWebhookQueueActionMutation(options) {
13
13
  return useMutation((mutateProps) => postWebhookQueueAction(mutateProps), options);
@@ -51,10 +51,14 @@ export type { GetOrchestrationExecutionActivityInputsErrorResponse, GetOrchestra
51
51
  export { getOrchestrationExecutionActivityInputs, useGetOrchestrationExecutionActivityInputsQuery, } from './hooks/useGetOrchestrationExecutionActivityInputsQuery';
52
52
  export type { GetOrchestrationExecutionActivityOutputsErrorResponse, GetOrchestrationExecutionActivityOutputsOkResponse, GetOrchestrationExecutionActivityOutputsProps, GetOrchestrationExecutionActivityOutputsQueryPathParams, GetOrchestrationExecutionActivityOutputsQueryQueryParams, } from './hooks/useGetOrchestrationExecutionActivityOutputsQuery';
53
53
  export { getOrchestrationExecutionActivityOutputs, useGetOrchestrationExecutionActivityOutputsQuery, } from './hooks/useGetOrchestrationExecutionActivityOutputsQuery';
54
+ export type { GetOrchestrationExecutionActivityOutputsV2ErrorResponse, GetOrchestrationExecutionActivityOutputsV2OkResponse, GetOrchestrationExecutionActivityOutputsV2Props, GetOrchestrationExecutionActivityOutputsV2QueryPathParams, GetOrchestrationExecutionActivityOutputsV2QueryQueryParams, } from './hooks/useGetOrchestrationExecutionActivityOutputsV2Query';
55
+ export { getOrchestrationExecutionActivityOutputsV2, useGetOrchestrationExecutionActivityOutputsV2Query, } from './hooks/useGetOrchestrationExecutionActivityOutputsV2Query';
54
56
  export type { GetOrchestrationExecutionActivityErrorResponse, GetOrchestrationExecutionActivityOkResponse, GetOrchestrationExecutionActivityProps, GetOrchestrationExecutionActivityQueryPathParams, GetOrchestrationExecutionActivityQueryQueryParams, } from './hooks/useGetOrchestrationExecutionActivityQuery';
55
57
  export { getOrchestrationExecutionActivity, useGetOrchestrationExecutionActivityQuery, } from './hooks/useGetOrchestrationExecutionActivityQuery';
56
58
  export type { GetOrchestrationExecutionPhaseOutputsErrorResponse, GetOrchestrationExecutionPhaseOutputsOkResponse, GetOrchestrationExecutionPhaseOutputsProps, GetOrchestrationExecutionPhaseOutputsQueryPathParams, GetOrchestrationExecutionPhaseOutputsQueryQueryParams, } from './hooks/useGetOrchestrationExecutionPhaseOutputsQuery';
57
59
  export { getOrchestrationExecutionPhaseOutputs, useGetOrchestrationExecutionPhaseOutputsQuery, } from './hooks/useGetOrchestrationExecutionPhaseOutputsQuery';
60
+ export type { GetOrchestrationExecutionPhaseOutputsV2ErrorResponse, GetOrchestrationExecutionPhaseOutputsV2OkResponse, GetOrchestrationExecutionPhaseOutputsV2Props, GetOrchestrationExecutionPhaseOutputsV2QueryPathParams, GetOrchestrationExecutionPhaseOutputsV2QueryQueryParams, } from './hooks/useGetOrchestrationExecutionPhaseOutputsV2Query';
61
+ export { getOrchestrationExecutionPhaseOutputsV2, useGetOrchestrationExecutionPhaseOutputsV2Query, } from './hooks/useGetOrchestrationExecutionPhaseOutputsV2Query';
58
62
  export type { GetOrchestrationExecutionPhasesErrorResponse, GetOrchestrationExecutionPhasesOkResponse, GetOrchestrationExecutionPhasesProps, GetOrchestrationExecutionPhasesQueryPathParams, GetOrchestrationExecutionPhasesQueryQueryParams, } from './hooks/useGetOrchestrationExecutionPhasesQuery';
59
63
  export { getOrchestrationExecutionPhases, useGetOrchestrationExecutionPhasesQuery, } from './hooks/useGetOrchestrationExecutionPhasesQuery';
60
64
  export type { GetOrchestrationExecutionReleaseInputErrorResponse, GetOrchestrationExecutionReleaseInputOkResponse, GetOrchestrationExecutionReleaseInputProps, GetOrchestrationExecutionReleaseInputQueryPathParams, GetOrchestrationExecutionReleaseInputQueryQueryParams, } from './hooks/useGetOrchestrationExecutionReleaseInputQuery';
@@ -214,6 +218,7 @@ export type { ErrorResponseResponse } from './responses/ErrorResponseResponse';
214
218
  export type { EventsResponseResponse } from './responses/EventsResponseResponse';
215
219
  export type { ExecuteProcessResponseResponse } from './responses/ExecuteProcessResponseResponse';
216
220
  export type { ExecutionOutputsResponseResponse } from './responses/ExecutionOutputsResponseResponse';
221
+ export type { ExecutionOutputsV2ResponseResponse } from './responses/ExecutionOutputsV2ResponseResponse';
217
222
  export type { ExecutionTasksListResponseResponse } from './responses/ExecutionTasksListResponseResponse';
218
223
  export type { FreezeDetailsResponseResponse } from './responses/FreezeDetailsResponseResponse';
219
224
  export type { FreezeListResponseResponse } from './responses/FreezeListResponseResponse';
@@ -311,6 +316,8 @@ export type { EventType } from './schemas/EventType';
311
316
  export type { ExecuteProcessResponseDto } from './schemas/ExecuteProcessResponseDto';
312
317
  export type { ExecutionConflict } from './schemas/ExecutionConflict';
313
318
  export type { ExecutionOutputDto } from './schemas/ExecutionOutputDto';
319
+ export type { ExecutionOutputGroupDto } from './schemas/ExecutionOutputGroupDto';
320
+ export type { ExecutionOutputV2Dto } from './schemas/ExecutionOutputV2Dto';
314
321
  export type { ExecutionTaskDto } from './schemas/ExecutionTaskDto';
315
322
  export type { ExecutionTaskStatus } from './schemas/ExecutionTaskStatus';
316
323
  export type { ExecutionTriggerInfo } from './schemas/ExecutionTriggerInfo';
@@ -364,7 +371,6 @@ export type { OrchestrationProcessDto } from './schemas/OrchestrationProcessDto'
364
371
  export type { OrchestrationProcessInputYaml } from './schemas/OrchestrationProcessInputYaml';
365
372
  export type { OrchestrationReleaseProcessYaml } from './schemas/OrchestrationReleaseProcessYaml';
366
373
  export type { OrchestrationStatus } from './schemas/OrchestrationStatus';
367
- export type { OrchestrationStatusList } from './schemas/OrchestrationStatusList';
368
374
  export type { OutputVariable } from './schemas/OutputVariable';
369
375
  export type { Pageable } from './schemas/Pageable';
370
376
  export type { PageableSort } from './schemas/PageableSort';
@@ -24,8 +24,10 @@ export { getOrchestrationExecutionActivitiesPaginated, useGetOrchestrationExecut
24
24
  export { getOrchestrationExecutionActivities, useGetOrchestrationExecutionActivitiesQuery, } from './hooks/useGetOrchestrationExecutionActivitiesQuery';
25
25
  export { getOrchestrationExecutionActivityInputs, useGetOrchestrationExecutionActivityInputsQuery, } from './hooks/useGetOrchestrationExecutionActivityInputsQuery';
26
26
  export { getOrchestrationExecutionActivityOutputs, useGetOrchestrationExecutionActivityOutputsQuery, } from './hooks/useGetOrchestrationExecutionActivityOutputsQuery';
27
+ export { getOrchestrationExecutionActivityOutputsV2, useGetOrchestrationExecutionActivityOutputsV2Query, } from './hooks/useGetOrchestrationExecutionActivityOutputsV2Query';
27
28
  export { getOrchestrationExecutionActivity, useGetOrchestrationExecutionActivityQuery, } from './hooks/useGetOrchestrationExecutionActivityQuery';
28
29
  export { getOrchestrationExecutionPhaseOutputs, useGetOrchestrationExecutionPhaseOutputsQuery, } from './hooks/useGetOrchestrationExecutionPhaseOutputsQuery';
30
+ export { getOrchestrationExecutionPhaseOutputsV2, useGetOrchestrationExecutionPhaseOutputsV2Query, } from './hooks/useGetOrchestrationExecutionPhaseOutputsV2Query';
29
31
  export { getOrchestrationExecutionPhases, useGetOrchestrationExecutionPhasesQuery, } from './hooks/useGetOrchestrationExecutionPhasesQuery';
30
32
  export { getOrchestrationExecutionReleaseInput, useGetOrchestrationExecutionReleaseInputQuery, } from './hooks/useGetOrchestrationExecutionReleaseInputQuery';
31
33
  export { getOrchestrationExecutionTasks, useGetOrchestrationExecutionTasksQuery, } from './hooks/useGetOrchestrationExecutionTasksQuery';
@@ -0,0 +1,7 @@
1
+ import type { ExecutionOutputGroupDto } from '../schemas/ExecutionOutputGroupDto';
2
+ export interface ExecutionOutputsV2ResponseResponse {
3
+ /**
4
+ * List of output groups; one entry per webhook signal (or one entry for phase/manual outputs)
5
+ */
6
+ values: ExecutionOutputGroupDto[];
7
+ }
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Type of orchestration activity
3
3
  */
4
- export type CreateOrchestrationActivityRequestType = 'MANUAL' | 'PIPELINE' | 'SUBPROCESS' | 'WEBHOOK';
4
+ export type CreateOrchestrationActivityRequestType = 'MANUAL' | 'PIPELINE' | 'PIPELINE_QUEUE' | 'SUBPROCESS';
@@ -0,0 +1,10 @@
1
+ import type { ExecutionOutputV2Dto } from '../schemas/ExecutionOutputV2Dto';
2
+ /**
3
+ * A group of output entries from one webhook signal or execution, with extensible metadata
4
+ */
5
+ export interface ExecutionOutputGroupDto {
6
+ /**
7
+ * List of output name/value pairs for this group
8
+ */
9
+ output: ExecutionOutputV2Dto[];
10
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * A single name/value output entry (v2)
3
+ */
4
+ export interface ExecutionOutputV2Dto {
5
+ /**
6
+ * Name of the output parameter
7
+ */
8
+ name: string;
9
+ /**
10
+ * Value of the output parameter (always a string in v2)
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 {};
@@ -2,9 +2,9 @@ export interface WebhookQueueActionResponse {
2
2
  /**
3
3
  * The action that was performed
4
4
  */
5
- action?: string;
5
+ action: string;
6
6
  /**
7
7
  * The ID of the activity execution
8
8
  */
9
- activityExecutionId?: string;
9
+ activityExecutionId: string;
10
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-rmg-service-client",
3
- "version": "0.65.1-beta.3",
3
+ "version": "0.65.1-beta.4",
4
4
  "description": "Harness Release Management Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",
@@ -1,5 +0,0 @@
1
- import type { OrchestrationStatus } from '../schemas/OrchestrationStatus';
2
- /**
3
- * List of orchestration execution activity statuses
4
- */
5
- export type OrchestrationStatusList = OrchestrationStatus[];