@harnessio/react-rmg-service-client 0.42.0 → 0.43.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.
@@ -23,6 +23,7 @@ export interface GetOrchestrationExecutionActivitiesPaginatedQueryQueryParams {
23
23
  * @format int64
24
24
  */
25
25
  endTs?: number;
26
+ taskUserReferenceId?: string;
26
27
  }
27
28
  export interface GetOrchestrationExecutionActivitiesPaginatedQueryHeaderParams {
28
29
  'Harness-Account': string;
@@ -0,0 +1,29 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { SubprocessTriggerResponseResponse } from '../responses/SubprocessTriggerResponseResponse';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { SubprocessTriggerRequest } from '../schemas/SubprocessTriggerRequest';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface PostReleaseSubprocessTriggerMutationPathParams {
8
+ releaseId: string;
9
+ }
10
+ export interface PostReleaseSubprocessTriggerMutationQueryParams {
11
+ orgIdentifier?: string;
12
+ projectIdentifier?: string;
13
+ task_id: string;
14
+ }
15
+ export interface PostReleaseSubprocessTriggerMutationHeaderParams {
16
+ 'Harness-Account': string;
17
+ }
18
+ export type PostReleaseSubprocessTriggerRequestBody = SubprocessTriggerRequest;
19
+ export type PostReleaseSubprocessTriggerOkResponse = ResponseWithPagination<SubprocessTriggerResponseResponse>;
20
+ export type PostReleaseSubprocessTriggerErrorResponse = ErrorResponseResponse;
21
+ export interface PostReleaseSubprocessTriggerProps extends PostReleaseSubprocessTriggerMutationPathParams, Omit<FetcherOptions<PostReleaseSubprocessTriggerMutationQueryParams, PostReleaseSubprocessTriggerRequestBody, PostReleaseSubprocessTriggerMutationHeaderParams>, 'url'> {
22
+ queryParams: PostReleaseSubprocessTriggerMutationQueryParams;
23
+ body: PostReleaseSubprocessTriggerRequestBody;
24
+ }
25
+ export declare function postReleaseSubprocessTrigger(props: PostReleaseSubprocessTriggerProps): Promise<PostReleaseSubprocessTriggerOkResponse>;
26
+ /**
27
+ * Triggers a subprocess release from a task within the specified release
28
+ */
29
+ export declare function usePostReleaseSubprocessTriggerMutation(options?: Omit<UseMutationOptions<PostReleaseSubprocessTriggerOkResponse, PostReleaseSubprocessTriggerErrorResponse, PostReleaseSubprocessTriggerProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<PostReleaseSubprocessTriggerOkResponse, import("..").Error, PostReleaseSubprocessTriggerProps, unknown>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function postReleaseSubprocessTrigger(props) {
7
+ return fetcher(Object.assign({ url: `/release/${props.releaseId}/subprocess/trigger`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Triggers a subprocess release from a task within the specified release
11
+ */
12
+ export function usePostReleaseSubprocessTriggerMutation(options) {
13
+ return useMutation((mutateProps) => postReleaseSubprocessTrigger(mutateProps), options);
14
+ }
@@ -95,6 +95,8 @@ export type { PostReleaseActionErrorResponse, PostReleaseActionMutationPathParam
95
95
  export { postReleaseAction, usePostReleaseActionMutation, } from './hooks/usePostReleaseActionMutation';
96
96
  export type { PostReleaseGroupErrorResponse, PostReleaseGroupMutationQueryParams, PostReleaseGroupOkResponse, PostReleaseGroupProps, PostReleaseGroupRequestBody, } from './hooks/usePostReleaseGroupMutation';
97
97
  export { postReleaseGroup, usePostReleaseGroupMutation } from './hooks/usePostReleaseGroupMutation';
98
+ export type { PostReleaseSubprocessTriggerErrorResponse, PostReleaseSubprocessTriggerMutationPathParams, PostReleaseSubprocessTriggerMutationQueryParams, PostReleaseSubprocessTriggerOkResponse, PostReleaseSubprocessTriggerProps, PostReleaseSubprocessTriggerRequestBody, } from './hooks/usePostReleaseSubprocessTriggerMutation';
99
+ export { postReleaseSubprocessTrigger, usePostReleaseSubprocessTriggerMutation, } from './hooks/usePostReleaseSubprocessTriggerMutation';
98
100
  export type { PostReleaseSummaryErrorResponse, PostReleaseSummaryMutationQueryParams, PostReleaseSummaryOkResponse, PostReleaseSummaryProps, PostReleaseSummaryRequestBody, } from './hooks/usePostReleaseSummaryMutation';
99
101
  export { postReleaseSummary, usePostReleaseSummaryMutation, } from './hooks/usePostReleaseSummaryMutation';
100
102
  export type { PutOrchestrationActivityErrorResponse, PutOrchestrationActivityMutationPathParams, PutOrchestrationActivityMutationQueryParams, PutOrchestrationActivityOkResponse, PutOrchestrationActivityProps, PutOrchestrationActivityRequestBody, } from './hooks/usePutOrchestrationActivityMutation';
@@ -165,6 +167,7 @@ export type { ReleaseGroupComponentResponseResponse } from './responses/ReleaseG
165
167
  export type { ReleaseGroupSummaryResponseResponse } from './responses/ReleaseGroupSummaryResponseResponse';
166
168
  export type { ReleaseSummaryResponseResponse } from './responses/ReleaseSummaryResponseResponse';
167
169
  export type { ReleaseTasksResponseResponse } from './responses/ReleaseTasksResponseResponse';
170
+ export type { SubprocessTriggerResponseResponse } from './responses/SubprocessTriggerResponseResponse';
168
171
  export type { TaskCommentsListResponseResponse } from './responses/TaskCommentsListResponseResponse';
169
172
  export type { UpdateExecutionTaskMetadataResponseResponse } from './responses/UpdateExecutionTaskMetadataResponseResponse';
170
173
  export type { UpdateExecutionTaskStatusResponseResponse } from './responses/UpdateExecutionTaskStatusResponseResponse';
@@ -269,6 +272,8 @@ export type { StringOrBool } from './schemas/StringOrBool';
269
272
  export type { StringOrStringArray } from './schemas/StringOrStringArray';
270
273
  export type { SubprocessActivityInfo } from './schemas/SubprocessActivityInfo';
271
274
  export type { SubprocessInfo } from './schemas/SubprocessInfo';
275
+ export type { SubprocessTriggerRequest } from './schemas/SubprocessTriggerRequest';
276
+ export type { SubprocessTriggerResponse } from './schemas/SubprocessTriggerResponse';
272
277
  export type { TaskCommentDto } from './schemas/TaskCommentDto';
273
278
  export type { TaskCommentsListResponseDto } from './schemas/TaskCommentsListResponseDto';
274
279
  export type { TimeRangeDto } from './schemas/TimeRangeDto';
@@ -46,6 +46,7 @@ export { postOrchestrationProcessInput, usePostOrchestrationProcessInputMutation
46
46
  export { postOrchestrationProcess, usePostOrchestrationProcessMutation, } from './hooks/usePostOrchestrationProcessMutation';
47
47
  export { postReleaseAction, usePostReleaseActionMutation, } from './hooks/usePostReleaseActionMutation';
48
48
  export { postReleaseGroup, usePostReleaseGroupMutation } from './hooks/usePostReleaseGroupMutation';
49
+ export { postReleaseSubprocessTrigger, usePostReleaseSubprocessTriggerMutation, } from './hooks/usePostReleaseSubprocessTriggerMutation';
49
50
  export { postReleaseSummary, usePostReleaseSummaryMutation, } from './hooks/usePostReleaseSummaryMutation';
50
51
  export { putOrchestrationActivity, usePutOrchestrationActivityMutation, } from './hooks/usePutOrchestrationActivityMutation';
51
52
  export { putOrchestrationProcessInput, usePutOrchestrationProcessInputMutation, } from './hooks/usePutOrchestrationProcessInputMutation';
@@ -0,0 +1,2 @@
1
+ import type { SubprocessTriggerResponse } from '../schemas/SubprocessTriggerResponse';
2
+ export type SubprocessTriggerResponseResponse = SubprocessTriggerResponse;
@@ -0,0 +1,4 @@
1
+ import type { SubprocessInfo } from '../schemas/SubprocessInfo';
2
+ export interface SubprocessTriggerRequest {
3
+ subprocessInfo: SubprocessInfo;
4
+ }
@@ -0,0 +1,6 @@
1
+ export interface SubprocessTriggerResponse {
2
+ /**
3
+ * ID of the newly created activity execution
4
+ */
5
+ activityExecutionId: string;
6
+ }
@@ -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.42.0",
3
+ "version": "0.43.0",
4
4
  "description": "Harness Release Management Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",