@harnessio/react-rmg-service-client 0.42.0 → 0.44.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.
- package/dist/rmg-service/src/services/hooks/useGetOrchestrationExecutionActivitiesPaginatedQuery.d.ts +1 -0
- package/dist/rmg-service/src/services/hooks/usePatchReleaseGroupMutation.d.ts +27 -0
- package/dist/rmg-service/src/services/hooks/usePatchReleaseGroupMutation.js +14 -0
- package/dist/rmg-service/src/services/hooks/usePostReleaseSubprocessTriggerMutation.d.ts +29 -0
- package/dist/rmg-service/src/services/hooks/usePostReleaseSubprocessTriggerMutation.js +14 -0
- package/dist/rmg-service/src/services/index.d.ts +10 -0
- package/dist/rmg-service/src/services/index.js +2 -0
- package/dist/rmg-service/src/services/requestBodies/PatchReleaseGroupRequestRequestBody.d.ts +4 -0
- package/dist/rmg-service/src/services/requestBodies/PatchReleaseGroupRequestRequestBody.js +1 -0
- package/dist/rmg-service/src/services/responses/PatchReleaseGroupResponseResponse.d.ts +4 -0
- package/dist/rmg-service/src/services/responses/PatchReleaseGroupResponseResponse.js +4 -0
- package/dist/rmg-service/src/services/responses/SubprocessTriggerResponseResponse.d.ts +2 -0
- package/dist/rmg-service/src/services/responses/SubprocessTriggerResponseResponse.js +1 -0
- package/dist/rmg-service/src/services/schemas/AutoExecuteOnScheduleProperty.d.ts +4 -0
- package/dist/rmg-service/src/services/schemas/AutoExecuteOnScheduleProperty.js +4 -0
- package/dist/rmg-service/src/services/schemas/GetReleaseGroupResponse.d.ts +2 -0
- package/dist/rmg-service/src/services/schemas/GetReleaseGroupResponse.js +0 -3
- package/dist/rmg-service/src/services/schemas/ReleaseGroupDto.d.ts +2 -0
- package/dist/rmg-service/src/services/schemas/SubprocessTriggerRequest.d.ts +4 -0
- package/dist/rmg-service/src/services/schemas/SubprocessTriggerRequest.js +1 -0
- package/dist/rmg-service/src/services/schemas/SubprocessTriggerResponse.d.ts +6 -0
- package/dist/rmg-service/src/services/schemas/SubprocessTriggerResponse.js +4 -0
- package/package.json +1 -1
|
@@ -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,27 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { PatchReleaseGroupResponseResponse } from '../responses/PatchReleaseGroupResponseResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { PatchReleaseGroupRequestRequestBody } from '../requestBodies/PatchReleaseGroupRequestRequestBody';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface PatchReleaseGroupMutationPathParams {
|
|
8
|
+
releaseGroupId: string;
|
|
9
|
+
}
|
|
10
|
+
export interface PatchReleaseGroupMutationQueryParams {
|
|
11
|
+
orgIdentifier?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface PatchReleaseGroupMutationHeaderParams {
|
|
14
|
+
'Harness-Account': string;
|
|
15
|
+
}
|
|
16
|
+
export type PatchReleaseGroupRequestBody = PatchReleaseGroupRequestRequestBody;
|
|
17
|
+
export type PatchReleaseGroupOkResponse = ResponseWithPagination<PatchReleaseGroupResponseResponse>;
|
|
18
|
+
export type PatchReleaseGroupErrorResponse = ErrorResponseResponse;
|
|
19
|
+
export interface PatchReleaseGroupProps extends PatchReleaseGroupMutationPathParams, Omit<FetcherOptions<PatchReleaseGroupMutationQueryParams, PatchReleaseGroupRequestBody, PatchReleaseGroupMutationHeaderParams>, 'url'> {
|
|
20
|
+
queryParams: PatchReleaseGroupMutationQueryParams;
|
|
21
|
+
body: PatchReleaseGroupRequestBody;
|
|
22
|
+
}
|
|
23
|
+
export declare function patchReleaseGroup(props: PatchReleaseGroupProps): Promise<PatchReleaseGroupOkResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* Partially update a release group without recreating releases. Currently supports updating autoExecuteOnSchedule field.
|
|
26
|
+
*/
|
|
27
|
+
export declare function usePatchReleaseGroupMutation(options?: Omit<UseMutationOptions<PatchReleaseGroupOkResponse, PatchReleaseGroupErrorResponse, PatchReleaseGroupProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<PatchReleaseGroupOkResponse, import("..").Error, PatchReleaseGroupProps, 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 patchReleaseGroup(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/releaseGroup/${props.releaseGroupId}`, method: 'PATCH' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Partially update a release group without recreating releases. Currently supports updating autoExecuteOnSchedule field.
|
|
11
|
+
*/
|
|
12
|
+
export function usePatchReleaseGroupMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => patchReleaseGroup(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -79,6 +79,8 @@ export type { GetReleaseTasksErrorResponse, GetReleaseTasksOkResponse, GetReleas
|
|
|
79
79
|
export { getReleaseTasks, useGetReleaseTasksQuery } from './hooks/useGetReleaseTasksQuery';
|
|
80
80
|
export type { GetTaskCommentsSummaryErrorResponse, GetTaskCommentsSummaryOkResponse, GetTaskCommentsSummaryProps, GetTaskCommentsSummaryQueryPathParams, GetTaskCommentsSummaryQueryQueryParams, } from './hooks/useGetTaskCommentsSummaryQuery';
|
|
81
81
|
export { getTaskCommentsSummary, useGetTaskCommentsSummaryQuery, } from './hooks/useGetTaskCommentsSummaryQuery';
|
|
82
|
+
export type { PatchReleaseGroupErrorResponse, PatchReleaseGroupMutationPathParams, PatchReleaseGroupMutationQueryParams, PatchReleaseGroupOkResponse, PatchReleaseGroupProps, PatchReleaseGroupRequestBody, } from './hooks/usePatchReleaseGroupMutation';
|
|
83
|
+
export { patchReleaseGroup, usePatchReleaseGroupMutation, } from './hooks/usePatchReleaseGroupMutation';
|
|
82
84
|
export type { PostActivityExecutionOutputErrorResponse, PostActivityExecutionOutputMutationPathParams, PostActivityExecutionOutputMutationQueryParams, PostActivityExecutionOutputOkResponse, PostActivityExecutionOutputProps, PostActivityExecutionOutputRequestBody, } from './hooks/usePostActivityExecutionOutputMutation';
|
|
83
85
|
export { postActivityExecutionOutput, usePostActivityExecutionOutputMutation, } from './hooks/usePostActivityExecutionOutputMutation';
|
|
84
86
|
export type { PostOnHoldActivityActionErrorResponse, PostOnHoldActivityActionMutationPathParams, PostOnHoldActivityActionMutationQueryParams, PostOnHoldActivityActionOkResponse, PostOnHoldActivityActionProps, PostOnHoldActivityActionRequestBody, } from './hooks/usePostOnHoldActivityActionMutation';
|
|
@@ -95,6 +97,8 @@ export type { PostReleaseActionErrorResponse, PostReleaseActionMutationPathParam
|
|
|
95
97
|
export { postReleaseAction, usePostReleaseActionMutation, } from './hooks/usePostReleaseActionMutation';
|
|
96
98
|
export type { PostReleaseGroupErrorResponse, PostReleaseGroupMutationQueryParams, PostReleaseGroupOkResponse, PostReleaseGroupProps, PostReleaseGroupRequestBody, } from './hooks/usePostReleaseGroupMutation';
|
|
97
99
|
export { postReleaseGroup, usePostReleaseGroupMutation } from './hooks/usePostReleaseGroupMutation';
|
|
100
|
+
export type { PostReleaseSubprocessTriggerErrorResponse, PostReleaseSubprocessTriggerMutationPathParams, PostReleaseSubprocessTriggerMutationQueryParams, PostReleaseSubprocessTriggerOkResponse, PostReleaseSubprocessTriggerProps, PostReleaseSubprocessTriggerRequestBody, } from './hooks/usePostReleaseSubprocessTriggerMutation';
|
|
101
|
+
export { postReleaseSubprocessTrigger, usePostReleaseSubprocessTriggerMutation, } from './hooks/usePostReleaseSubprocessTriggerMutation';
|
|
98
102
|
export type { PostReleaseSummaryErrorResponse, PostReleaseSummaryMutationQueryParams, PostReleaseSummaryOkResponse, PostReleaseSummaryProps, PostReleaseSummaryRequestBody, } from './hooks/usePostReleaseSummaryMutation';
|
|
99
103
|
export { postReleaseSummary, usePostReleaseSummaryMutation, } from './hooks/usePostReleaseSummaryMutation';
|
|
100
104
|
export type { PutOrchestrationActivityErrorResponse, PutOrchestrationActivityMutationPathParams, PutOrchestrationActivityMutationQueryParams, PutOrchestrationActivityOkResponse, PutOrchestrationActivityProps, PutOrchestrationActivityRequestBody, } from './hooks/usePutOrchestrationActivityMutation';
|
|
@@ -123,6 +127,7 @@ export type { CreateOrchestrationProcessRequestRequestBody } from './requestBodi
|
|
|
123
127
|
export type { CreateReleaseGroupRequestRequestBody } from './requestBodies/CreateReleaseGroupRequestRequestBody';
|
|
124
128
|
export type { OnHoldActivityActionRequestRequestBody } from './requestBodies/OnHoldActivityActionRequestRequestBody';
|
|
125
129
|
export type { OrchestrationProcessAttachedReleaseGroupsRequestRequestBody } from './requestBodies/OrchestrationProcessAttachedReleaseGroupsRequestRequestBody';
|
|
130
|
+
export type { PatchReleaseGroupRequestRequestBody } from './requestBodies/PatchReleaseGroupRequestRequestBody';
|
|
126
131
|
export type { ReleaseSummaryRequestRequestBody } from './requestBodies/ReleaseSummaryRequestRequestBody';
|
|
127
132
|
export type { UpdateOrchestrationActivityRequestRequestBody } from './requestBodies/UpdateOrchestrationActivityRequestRequestBody';
|
|
128
133
|
export type { UpdateOrchestrationProcessInputRequestRequestBody } from './requestBodies/UpdateOrchestrationProcessInputRequestRequestBody';
|
|
@@ -156,6 +161,7 @@ export type { OrchestrationExecutionActivitiesPaginatedResponseResponse } from '
|
|
|
156
161
|
export type { OrchestrationProcessAttachedReleaseGroupsResponseResponse } from './responses/OrchestrationProcessAttachedReleaseGroupsResponseResponse';
|
|
157
162
|
export type { OrchestrationProcessInputSummaryResponseResponse } from './responses/OrchestrationProcessInputSummaryResponseResponse';
|
|
158
163
|
export type { OrchestrationProcessSummaryResponseResponse } from './responses/OrchestrationProcessSummaryResponseResponse';
|
|
164
|
+
export type { PatchReleaseGroupResponseResponse } from './responses/PatchReleaseGroupResponseResponse';
|
|
159
165
|
export type { ReleaseActionResponseResponse } from './responses/ReleaseActionResponseResponse';
|
|
160
166
|
export type { ReleaseActivitiesResponseResponse } from './responses/ReleaseActivitiesResponseResponse';
|
|
161
167
|
export type { ReleaseApprovalsResponseResponse } from './responses/ReleaseApprovalsResponseResponse';
|
|
@@ -165,6 +171,7 @@ export type { ReleaseGroupComponentResponseResponse } from './responses/ReleaseG
|
|
|
165
171
|
export type { ReleaseGroupSummaryResponseResponse } from './responses/ReleaseGroupSummaryResponseResponse';
|
|
166
172
|
export type { ReleaseSummaryResponseResponse } from './responses/ReleaseSummaryResponseResponse';
|
|
167
173
|
export type { ReleaseTasksResponseResponse } from './responses/ReleaseTasksResponseResponse';
|
|
174
|
+
export type { SubprocessTriggerResponseResponse } from './responses/SubprocessTriggerResponseResponse';
|
|
168
175
|
export type { TaskCommentsListResponseResponse } from './responses/TaskCommentsListResponseResponse';
|
|
169
176
|
export type { UpdateExecutionTaskMetadataResponseResponse } from './responses/UpdateExecutionTaskMetadataResponseResponse';
|
|
170
177
|
export type { UpdateExecutionTaskStatusResponseResponse } from './responses/UpdateExecutionTaskStatusResponseResponse';
|
|
@@ -187,6 +194,7 @@ export type { ActivityTypeCounts } from './schemas/ActivityTypeCounts';
|
|
|
187
194
|
export type { ApprovalInfoDto } from './schemas/ApprovalInfoDto';
|
|
188
195
|
export type { ApprovedByDto } from './schemas/ApprovedByDto';
|
|
189
196
|
export type { AttachedReleaseGroupDto } from './schemas/AttachedReleaseGroupDto';
|
|
197
|
+
export type { AutoExecuteOnScheduleProperty } from './schemas/AutoExecuteOnScheduleProperty';
|
|
190
198
|
export type { CommentedByDto } from './schemas/CommentedByDto';
|
|
191
199
|
export type { ConflictStatus } from './schemas/ConflictStatus';
|
|
192
200
|
export type { CreateOrchestrationActivityInputSetRequestType } from './schemas/CreateOrchestrationActivityInputSetRequestType';
|
|
@@ -269,6 +277,8 @@ export type { StringOrBool } from './schemas/StringOrBool';
|
|
|
269
277
|
export type { StringOrStringArray } from './schemas/StringOrStringArray';
|
|
270
278
|
export type { SubprocessActivityInfo } from './schemas/SubprocessActivityInfo';
|
|
271
279
|
export type { SubprocessInfo } from './schemas/SubprocessInfo';
|
|
280
|
+
export type { SubprocessTriggerRequest } from './schemas/SubprocessTriggerRequest';
|
|
281
|
+
export type { SubprocessTriggerResponse } from './schemas/SubprocessTriggerResponse';
|
|
272
282
|
export type { TaskCommentDto } from './schemas/TaskCommentDto';
|
|
273
283
|
export type { TaskCommentsListResponseDto } from './schemas/TaskCommentsListResponseDto';
|
|
274
284
|
export type { TimeRangeDto } from './schemas/TimeRangeDto';
|
|
@@ -38,6 +38,7 @@ export { getReleaseReleaseIdEnvironmentDashboard, useGetReleaseReleaseIdEnvironm
|
|
|
38
38
|
export { getReleaseReleaseIdEnvironments, useGetReleaseReleaseIdEnvironmentsQuery, } from './hooks/useGetReleaseReleaseIdEnvironmentsQuery';
|
|
39
39
|
export { getReleaseTasks, useGetReleaseTasksQuery } from './hooks/useGetReleaseTasksQuery';
|
|
40
40
|
export { getTaskCommentsSummary, useGetTaskCommentsSummaryQuery, } from './hooks/useGetTaskCommentsSummaryQuery';
|
|
41
|
+
export { patchReleaseGroup, usePatchReleaseGroupMutation, } from './hooks/usePatchReleaseGroupMutation';
|
|
41
42
|
export { postActivityExecutionOutput, usePostActivityExecutionOutputMutation, } from './hooks/usePostActivityExecutionOutputMutation';
|
|
42
43
|
export { postOnHoldActivityAction, usePostOnHoldActivityActionMutation, } from './hooks/usePostOnHoldActivityActionMutation';
|
|
43
44
|
export { postOrchestrationActivity, usePostOrchestrationActivityMutation, } from './hooks/usePostOrchestrationActivityMutation';
|
|
@@ -46,6 +47,7 @@ export { postOrchestrationProcessInput, usePostOrchestrationProcessInputMutation
|
|
|
46
47
|
export { postOrchestrationProcess, usePostOrchestrationProcessMutation, } from './hooks/usePostOrchestrationProcessMutation';
|
|
47
48
|
export { postReleaseAction, usePostReleaseActionMutation, } from './hooks/usePostReleaseActionMutation';
|
|
48
49
|
export { postReleaseGroup, usePostReleaseGroupMutation } from './hooks/usePostReleaseGroupMutation';
|
|
50
|
+
export { postReleaseSubprocessTrigger, usePostReleaseSubprocessTriggerMutation, } from './hooks/usePostReleaseSubprocessTriggerMutation';
|
|
49
51
|
export { postReleaseSummary, usePostReleaseSummaryMutation, } from './hooks/usePostReleaseSummaryMutation';
|
|
50
52
|
export { putOrchestrationActivity, usePutOrchestrationActivityMutation, } from './hooks/usePutOrchestrationActivityMutation';
|
|
51
53
|
export { putOrchestrationProcessInput, usePutOrchestrationProcessInputMutation, } from './hooks/usePutOrchestrationProcessInputMutation';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import type { AutoExecuteOnScheduleProperty } from '../schemas/AutoExecuteOnScheduleProperty';
|
|
1
2
|
import type { ReleaseCadence } from '../schemas/ReleaseCadence';
|
|
2
3
|
import type { LastUpdatedByDto } from '../schemas/LastUpdatedByDto';
|
|
3
4
|
import type { ReleaseType } from '../schemas/ReleaseType';
|
|
4
5
|
export interface ReleaseGroupDto {
|
|
6
|
+
autoExecuteOnSchedule?: AutoExecuteOnScheduleProperty;
|
|
5
7
|
cadence: ReleaseCadence;
|
|
6
8
|
color: string;
|
|
7
9
|
description?: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|