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

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.
@@ -1,6 +1,7 @@
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';
4
5
  import type { ResponseWithPagination } from '../helpers';
5
6
  import { FetcherOptions } from '../../../../fetcher/index.js';
6
7
  export interface GetOrchestrationProcessExecutionsQueryPathParams {
@@ -13,7 +14,7 @@ export interface GetOrchestrationProcessExecutionsQueryQueryParams {
13
14
  size?: number;
14
15
  sort?: string[];
15
16
  executionType?: 'PROCESS' | 'RELEASE';
16
- statuses?: Array<'ABORTED' | 'FAILED' | 'IGNORED' | 'ON_HOLD' | 'OUTPUT_WAITING' | 'QUEUED' | 'RETRIED' | 'RUNNING' | 'SCHEDULED' | 'SKIPPED' | 'SUCCEEDED'>;
17
+ statuses?: OrchestrationStatusList;
17
18
  /**
18
19
  * @format int64
19
20
  */
@@ -51,14 +51,10 @@ 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';
56
54
  export type { GetOrchestrationExecutionActivityErrorResponse, GetOrchestrationExecutionActivityOkResponse, GetOrchestrationExecutionActivityProps, GetOrchestrationExecutionActivityQueryPathParams, GetOrchestrationExecutionActivityQueryQueryParams, } from './hooks/useGetOrchestrationExecutionActivityQuery';
57
55
  export { getOrchestrationExecutionActivity, useGetOrchestrationExecutionActivityQuery, } from './hooks/useGetOrchestrationExecutionActivityQuery';
58
56
  export type { GetOrchestrationExecutionPhaseOutputsErrorResponse, GetOrchestrationExecutionPhaseOutputsOkResponse, GetOrchestrationExecutionPhaseOutputsProps, GetOrchestrationExecutionPhaseOutputsQueryPathParams, GetOrchestrationExecutionPhaseOutputsQueryQueryParams, } from './hooks/useGetOrchestrationExecutionPhaseOutputsQuery';
59
57
  export { getOrchestrationExecutionPhaseOutputs, useGetOrchestrationExecutionPhaseOutputsQuery, } from './hooks/useGetOrchestrationExecutionPhaseOutputsQuery';
60
- export type { GetOrchestrationExecutionPhaseOutputsV2ErrorResponse, GetOrchestrationExecutionPhaseOutputsV2OkResponse, GetOrchestrationExecutionPhaseOutputsV2Props, GetOrchestrationExecutionPhaseOutputsV2QueryPathParams, GetOrchestrationExecutionPhaseOutputsV2QueryQueryParams, } from './hooks/useGetOrchestrationExecutionPhaseOutputsV2Query';
61
- export { getOrchestrationExecutionPhaseOutputsV2, useGetOrchestrationExecutionPhaseOutputsV2Query, } from './hooks/useGetOrchestrationExecutionPhaseOutputsV2Query';
62
58
  export type { GetOrchestrationExecutionPhasesErrorResponse, GetOrchestrationExecutionPhasesOkResponse, GetOrchestrationExecutionPhasesProps, GetOrchestrationExecutionPhasesQueryPathParams, GetOrchestrationExecutionPhasesQueryQueryParams, } from './hooks/useGetOrchestrationExecutionPhasesQuery';
63
59
  export { getOrchestrationExecutionPhases, useGetOrchestrationExecutionPhasesQuery, } from './hooks/useGetOrchestrationExecutionPhasesQuery';
64
60
  export type { GetOrchestrationExecutionReleaseInputErrorResponse, GetOrchestrationExecutionReleaseInputOkResponse, GetOrchestrationExecutionReleaseInputProps, GetOrchestrationExecutionReleaseInputQueryPathParams, GetOrchestrationExecutionReleaseInputQueryQueryParams, } from './hooks/useGetOrchestrationExecutionReleaseInputQuery';
@@ -218,7 +214,6 @@ export type { ErrorResponseResponse } from './responses/ErrorResponseResponse';
218
214
  export type { EventsResponseResponse } from './responses/EventsResponseResponse';
219
215
  export type { ExecuteProcessResponseResponse } from './responses/ExecuteProcessResponseResponse';
220
216
  export type { ExecutionOutputsResponseResponse } from './responses/ExecutionOutputsResponseResponse';
221
- export type { ExecutionOutputsV2ResponseResponse } from './responses/ExecutionOutputsV2ResponseResponse';
222
217
  export type { ExecutionTasksListResponseResponse } from './responses/ExecutionTasksListResponseResponse';
223
218
  export type { FreezeDetailsResponseResponse } from './responses/FreezeDetailsResponseResponse';
224
219
  export type { FreezeListResponseResponse } from './responses/FreezeListResponseResponse';
@@ -316,8 +311,6 @@ export type { EventType } from './schemas/EventType';
316
311
  export type { ExecuteProcessResponseDto } from './schemas/ExecuteProcessResponseDto';
317
312
  export type { ExecutionConflict } from './schemas/ExecutionConflict';
318
313
  export type { ExecutionOutputDto } from './schemas/ExecutionOutputDto';
319
- export type { ExecutionOutputGroupDto } from './schemas/ExecutionOutputGroupDto';
320
- export type { ExecutionOutputV2Dto } from './schemas/ExecutionOutputV2Dto';
321
314
  export type { ExecutionTaskDto } from './schemas/ExecutionTaskDto';
322
315
  export type { ExecutionTaskStatus } from './schemas/ExecutionTaskStatus';
323
316
  export type { ExecutionTriggerInfo } from './schemas/ExecutionTriggerInfo';
@@ -371,6 +364,7 @@ export type { OrchestrationProcessDto } from './schemas/OrchestrationProcessDto'
371
364
  export type { OrchestrationProcessInputYaml } from './schemas/OrchestrationProcessInputYaml';
372
365
  export type { OrchestrationReleaseProcessYaml } from './schemas/OrchestrationReleaseProcessYaml';
373
366
  export type { OrchestrationStatus } from './schemas/OrchestrationStatus';
367
+ export type { OrchestrationStatusList } from './schemas/OrchestrationStatusList';
374
368
  export type { OutputVariable } from './schemas/OutputVariable';
375
369
  export type { Pageable } from './schemas/Pageable';
376
370
  export type { PageableSort } from './schemas/PageableSort';
@@ -24,10 +24,8 @@ 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';
28
27
  export { getOrchestrationExecutionActivity, useGetOrchestrationExecutionActivityQuery, } from './hooks/useGetOrchestrationExecutionActivityQuery';
29
28
  export { getOrchestrationExecutionPhaseOutputs, useGetOrchestrationExecutionPhaseOutputsQuery, } from './hooks/useGetOrchestrationExecutionPhaseOutputsQuery';
30
- export { getOrchestrationExecutionPhaseOutputsV2, useGetOrchestrationExecutionPhaseOutputsV2Query, } from './hooks/useGetOrchestrationExecutionPhaseOutputsV2Query';
31
29
  export { getOrchestrationExecutionPhases, useGetOrchestrationExecutionPhasesQuery, } from './hooks/useGetOrchestrationExecutionPhasesQuery';
32
30
  export { getOrchestrationExecutionReleaseInput, useGetOrchestrationExecutionReleaseInputQuery, } from './hooks/useGetOrchestrationExecutionReleaseInputQuery';
33
31
  export { getOrchestrationExecutionTasks, useGetOrchestrationExecutionTasksQuery, } from './hooks/useGetOrchestrationExecutionTasksQuery';
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Type of orchestration activity
3
3
  */
4
- export type CreateOrchestrationActivityRequestType = 'MANUAL' | 'PIPELINE' | 'PIPELINE_QUEUE' | 'SUBPROCESS';
4
+ export type CreateOrchestrationActivityRequestType = 'MANUAL' | 'PIPELINE' | 'SUBPROCESS' | 'WEBHOOK';
@@ -0,0 +1,5 @@
1
+ import type { OrchestrationStatus } from '../schemas/OrchestrationStatus';
2
+ /**
3
+ * List of orchestration execution activity statuses
4
+ */
5
+ export type OrchestrationStatusList = OrchestrationStatus[];
@@ -4,7 +4,15 @@ export interface WebhookQueueActionRequest {
4
4
  */
5
5
  action: 'APPROVE';
6
6
  /**
7
- * List of webhook IDs to approve. Empty array resumes the activity with no outputs.
7
+ * Webhook IDs to exclude when selectAll is true.
8
8
  */
9
- webhookIds?: string[];
9
+ deselectedWebhookIds?: string[];
10
+ /**
11
+ * If true, approve all matched webhook signals except those in deselectedWebhookIds.
12
+ */
13
+ selectAll?: boolean;
14
+ /**
15
+ * List of webhook IDs to approve. Used when selectAll is false.
16
+ */
17
+ selectedWebhookIds?: string[];
10
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-rmg-service-client",
3
- "version": "0.65.1-beta.1",
3
+ "version": "0.65.1-beta.3",
4
4
  "description": "Harness Release Management Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",
@@ -1,28 +0,0 @@
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>;
@@ -1,20 +0,0 @@
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
- }
@@ -1,27 +0,0 @@
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>;
@@ -1,19 +0,0 @@
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 +0,0 @@
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,16 +0,0 @@
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
- * Reserved for future extension; always present, currently empty
8
- */
9
- metadata: {
10
- [key: string]: any;
11
- };
12
- /**
13
- * List of output name/value pairs for this group
14
- */
15
- output: ExecutionOutputV2Dto[];
16
- }
@@ -1,13 +0,0 @@
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
- }
@@ -1,4 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- export {};