@harnessio/react-rmg-service-client 0.43.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/usePatchReleaseGroupMutation.d.ts +27 -0
- package/dist/rmg-service/src/services/hooks/usePatchReleaseGroupMutation.js +14 -0
- package/dist/rmg-service/src/services/index.d.ts +5 -0
- package/dist/rmg-service/src/services/index.js +1 -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/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/package.json +1 -1
|
@@ -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
|
+
}
|
|
@@ -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';
|
|
@@ -125,6 +127,7 @@ export type { CreateOrchestrationProcessRequestRequestBody } from './requestBodi
|
|
|
125
127
|
export type { CreateReleaseGroupRequestRequestBody } from './requestBodies/CreateReleaseGroupRequestRequestBody';
|
|
126
128
|
export type { OnHoldActivityActionRequestRequestBody } from './requestBodies/OnHoldActivityActionRequestRequestBody';
|
|
127
129
|
export type { OrchestrationProcessAttachedReleaseGroupsRequestRequestBody } from './requestBodies/OrchestrationProcessAttachedReleaseGroupsRequestRequestBody';
|
|
130
|
+
export type { PatchReleaseGroupRequestRequestBody } from './requestBodies/PatchReleaseGroupRequestRequestBody';
|
|
128
131
|
export type { ReleaseSummaryRequestRequestBody } from './requestBodies/ReleaseSummaryRequestRequestBody';
|
|
129
132
|
export type { UpdateOrchestrationActivityRequestRequestBody } from './requestBodies/UpdateOrchestrationActivityRequestRequestBody';
|
|
130
133
|
export type { UpdateOrchestrationProcessInputRequestRequestBody } from './requestBodies/UpdateOrchestrationProcessInputRequestRequestBody';
|
|
@@ -158,6 +161,7 @@ export type { OrchestrationExecutionActivitiesPaginatedResponseResponse } from '
|
|
|
158
161
|
export type { OrchestrationProcessAttachedReleaseGroupsResponseResponse } from './responses/OrchestrationProcessAttachedReleaseGroupsResponseResponse';
|
|
159
162
|
export type { OrchestrationProcessInputSummaryResponseResponse } from './responses/OrchestrationProcessInputSummaryResponseResponse';
|
|
160
163
|
export type { OrchestrationProcessSummaryResponseResponse } from './responses/OrchestrationProcessSummaryResponseResponse';
|
|
164
|
+
export type { PatchReleaseGroupResponseResponse } from './responses/PatchReleaseGroupResponseResponse';
|
|
161
165
|
export type { ReleaseActionResponseResponse } from './responses/ReleaseActionResponseResponse';
|
|
162
166
|
export type { ReleaseActivitiesResponseResponse } from './responses/ReleaseActivitiesResponseResponse';
|
|
163
167
|
export type { ReleaseApprovalsResponseResponse } from './responses/ReleaseApprovalsResponseResponse';
|
|
@@ -190,6 +194,7 @@ export type { ActivityTypeCounts } from './schemas/ActivityTypeCounts';
|
|
|
190
194
|
export type { ApprovalInfoDto } from './schemas/ApprovalInfoDto';
|
|
191
195
|
export type { ApprovedByDto } from './schemas/ApprovedByDto';
|
|
192
196
|
export type { AttachedReleaseGroupDto } from './schemas/AttachedReleaseGroupDto';
|
|
197
|
+
export type { AutoExecuteOnScheduleProperty } from './schemas/AutoExecuteOnScheduleProperty';
|
|
193
198
|
export type { CommentedByDto } from './schemas/CommentedByDto';
|
|
194
199
|
export type { ConflictStatus } from './schemas/ConflictStatus';
|
|
195
200
|
export type { CreateOrchestrationActivityInputSetRequestType } from './schemas/CreateOrchestrationActivityInputSetRequestType';
|
|
@@ -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';
|
|
@@ -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;
|