@harnessio/react-rmg-service-client 0.50.0 → 0.52.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/useDeleteReleaseGroupMutation.d.ts +1 -0
- package/dist/rmg-service/src/services/hooks/useGetOrchestrationProcessSummaryQuery.d.ts +1 -0
- package/dist/rmg-service/src/services/hooks/useGetReleaseActivitiesQuery.d.ts +1 -0
- package/dist/rmg-service/src/services/hooks/useGetReleaseDayActivitiesQuery.d.ts +1 -0
- package/dist/rmg-service/src/services/hooks/useGetReleaseGroupQuery.d.ts +1 -0
- package/dist/rmg-service/src/services/hooks/useGetReleaseGroupSummaryQuery.d.ts +1 -0
- package/dist/rmg-service/src/services/hooks/useGetReleaseReleaseIdApprovalsQuery.d.ts +1 -0
- package/dist/rmg-service/src/services/hooks/useGetReleaseTasksQuery.d.ts +1 -0
- package/dist/rmg-service/src/services/hooks/usePatchReleaseGroupMutation.d.ts +1 -0
- package/dist/rmg-service/src/services/hooks/usePostReleaseAdhocMutation.d.ts +25 -0
- package/dist/rmg-service/src/services/hooks/usePostReleaseAdhocMutation.js +14 -0
- package/dist/rmg-service/src/services/hooks/usePostReleaseGroupMutation.d.ts +1 -0
- package/dist/rmg-service/src/services/hooks/usePostReleaseSummaryMutation.d.ts +1 -0
- package/dist/rmg-service/src/services/hooks/usePutReleaseGroupMutation.d.ts +1 -0
- package/dist/rmg-service/src/services/index.d.ts +6 -0
- package/dist/rmg-service/src/services/index.js +1 -0
- package/dist/rmg-service/src/services/requestBodies/CreateAdHocReleaseRequestRequestBody.d.ts +2 -0
- package/dist/rmg-service/src/services/requestBodies/CreateAdHocReleaseRequestRequestBody.js +1 -0
- package/dist/rmg-service/src/services/responses/CreateAdHocReleaseResponseResponse.d.ts +2 -0
- package/dist/rmg-service/src/services/responses/CreateAdHocReleaseResponseResponse.js +1 -0
- package/dist/rmg-service/src/services/schemas/AdHocReleaseRequest.d.ts +44 -0
- package/dist/rmg-service/src/services/schemas/AdHocReleaseRequest.js +4 -0
- package/dist/rmg-service/src/services/schemas/AdHocReleaseResponse.d.ts +10 -0
- package/dist/rmg-service/src/services/schemas/AdHocReleaseResponse.js +4 -0
- package/package.json +1 -1
|
@@ -8,6 +8,7 @@ export interface DeleteReleaseGroupMutationPathParams {
|
|
|
8
8
|
}
|
|
9
9
|
export interface DeleteReleaseGroupMutationQueryParams {
|
|
10
10
|
orgIdentifier?: string;
|
|
11
|
+
projectIdentifier?: string;
|
|
11
12
|
}
|
|
12
13
|
export interface DeleteReleaseGroupMutationHeaderParams {
|
|
13
14
|
'Harness-Account': string;
|
|
@@ -5,6 +5,7 @@ import type { ResponseWithPagination } from '../helpers';
|
|
|
5
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
6
|
export interface GetOrchestrationProcessSummaryQueryQueryParams {
|
|
7
7
|
orgIdentifier?: string;
|
|
8
|
+
projectIdentifier?: string;
|
|
8
9
|
searchTerm?: string;
|
|
9
10
|
page?: number;
|
|
10
11
|
size?: number;
|
|
@@ -5,6 +5,7 @@ import type { ResponseWithPagination } from '../helpers';
|
|
|
5
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
6
|
export interface GetReleaseGroupSummaryQueryQueryParams {
|
|
7
7
|
orgIdentifier?: string;
|
|
8
|
+
projectIdentifier?: string;
|
|
8
9
|
searchTerm?: string;
|
|
9
10
|
status?: string[];
|
|
10
11
|
type?: 'Orchestration' | 'Tracking';
|
|
@@ -9,6 +9,7 @@ export interface PatchReleaseGroupMutationPathParams {
|
|
|
9
9
|
}
|
|
10
10
|
export interface PatchReleaseGroupMutationQueryParams {
|
|
11
11
|
orgIdentifier?: string;
|
|
12
|
+
projectIdentifier?: string;
|
|
12
13
|
}
|
|
13
14
|
export interface PatchReleaseGroupMutationHeaderParams {
|
|
14
15
|
'Harness-Account': string;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { CreateAdHocReleaseResponseResponse } from '../responses/CreateAdHocReleaseResponseResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { CreateAdHocReleaseRequestRequestBody } from '../requestBodies/CreateAdHocReleaseRequestRequestBody';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface PostReleaseAdhocMutationQueryParams {
|
|
8
|
+
orgIdentifier?: string;
|
|
9
|
+
projectIdentifier?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface PostReleaseAdhocMutationHeaderParams {
|
|
12
|
+
'Harness-Account': string;
|
|
13
|
+
}
|
|
14
|
+
export type PostReleaseAdhocRequestBody = CreateAdHocReleaseRequestRequestBody;
|
|
15
|
+
export type PostReleaseAdhocOkResponse = ResponseWithPagination<CreateAdHocReleaseResponseResponse>;
|
|
16
|
+
export type PostReleaseAdhocErrorResponse = ErrorResponseResponse;
|
|
17
|
+
export interface PostReleaseAdhocProps extends Omit<FetcherOptions<PostReleaseAdhocMutationQueryParams, PostReleaseAdhocRequestBody, PostReleaseAdhocMutationHeaderParams>, 'url'> {
|
|
18
|
+
queryParams: PostReleaseAdhocMutationQueryParams;
|
|
19
|
+
body: PostReleaseAdhocRequestBody;
|
|
20
|
+
}
|
|
21
|
+
export declare function postReleaseAdhoc(props: PostReleaseAdhocProps): Promise<PostReleaseAdhocOkResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Create an ad hoc release with a linked orchestration process, bypassing the standard release group cadence.
|
|
24
|
+
*/
|
|
25
|
+
export declare function usePostReleaseAdhocMutation(options?: Omit<UseMutationOptions<PostReleaseAdhocOkResponse, PostReleaseAdhocErrorResponse, PostReleaseAdhocProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<PostReleaseAdhocOkResponse, import("..").Error, PostReleaseAdhocProps, 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 postReleaseAdhoc(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/release/adhoc`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create an ad hoc release with a linked orchestration process, bypassing the standard release group cadence.
|
|
11
|
+
*/
|
|
12
|
+
export function usePostReleaseAdhocMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => postReleaseAdhoc(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -6,6 +6,7 @@ import type { ResponseWithPagination } from '../helpers';
|
|
|
6
6
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
7
|
export interface PostReleaseGroupMutationQueryParams {
|
|
8
8
|
orgIdentifier?: string;
|
|
9
|
+
projectIdentifier?: string;
|
|
9
10
|
}
|
|
10
11
|
export interface PostReleaseGroupMutationHeaderParams {
|
|
11
12
|
'Harness-Account': string;
|
|
@@ -6,6 +6,7 @@ import type { ResponseWithPagination } from '../helpers';
|
|
|
6
6
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
7
|
export interface PostReleaseSummaryMutationQueryParams {
|
|
8
8
|
orgIdentifier?: string;
|
|
9
|
+
projectIdentifier?: string;
|
|
9
10
|
searchTerm?: string;
|
|
10
11
|
releaseGroupIds?: string[];
|
|
11
12
|
type?: 'Orchestration' | 'Tracking';
|
|
@@ -99,6 +99,8 @@ export type { PostOrchestrationProcessErrorResponse, PostOrchestrationProcessMut
|
|
|
99
99
|
export { postOrchestrationProcess, usePostOrchestrationProcessMutation, } from './hooks/usePostOrchestrationProcessMutation';
|
|
100
100
|
export type { PostReleaseActionErrorResponse, PostReleaseActionMutationPathParams, PostReleaseActionMutationQueryParams, PostReleaseActionOkResponse, PostReleaseActionProps, PostReleaseActionRequestBody, } from './hooks/usePostReleaseActionMutation';
|
|
101
101
|
export { postReleaseAction, usePostReleaseActionMutation, } from './hooks/usePostReleaseActionMutation';
|
|
102
|
+
export type { PostReleaseAdhocErrorResponse, PostReleaseAdhocMutationQueryParams, PostReleaseAdhocOkResponse, PostReleaseAdhocProps, PostReleaseAdhocRequestBody, } from './hooks/usePostReleaseAdhocMutation';
|
|
103
|
+
export { postReleaseAdhoc, usePostReleaseAdhocMutation } from './hooks/usePostReleaseAdhocMutation';
|
|
102
104
|
export type { PostReleaseGroupErrorResponse, PostReleaseGroupMutationQueryParams, PostReleaseGroupOkResponse, PostReleaseGroupProps, PostReleaseGroupRequestBody, } from './hooks/usePostReleaseGroupMutation';
|
|
103
105
|
export { postReleaseGroup, usePostReleaseGroupMutation } from './hooks/usePostReleaseGroupMutation';
|
|
104
106
|
export type { PostReleaseGroupReportGenerateErrorResponse, PostReleaseGroupReportGenerateMutationPathParams, PostReleaseGroupReportGenerateMutationQueryParams, PostReleaseGroupReportGenerateOkResponse, PostReleaseGroupReportGenerateProps, PostReleaseGroupReportGenerateRequestBody, } from './hooks/usePostReleaseGroupReportGenerateMutation';
|
|
@@ -129,6 +131,7 @@ export type { UpdateReleaseConflictErrorResponse, UpdateReleaseConflictMutationP
|
|
|
129
131
|
export { updateReleaseConflict, useUpdateReleaseConflictMutation, } from './hooks/useUpdateReleaseConflictMutation';
|
|
130
132
|
export type { UpdateTaskCommentErrorResponse, UpdateTaskCommentMutationPathParams, UpdateTaskCommentMutationQueryParams, UpdateTaskCommentOkResponse, UpdateTaskCommentProps, UpdateTaskCommentRequestBody, } from './hooks/useUpdateTaskCommentMutation';
|
|
131
133
|
export { updateTaskComment, useUpdateTaskCommentMutation, } from './hooks/useUpdateTaskCommentMutation';
|
|
134
|
+
export type { CreateAdHocReleaseRequestRequestBody } from './requestBodies/CreateAdHocReleaseRequestRequestBody';
|
|
132
135
|
export type { CreateOrchestrationActivityRequestRequestBody } from './requestBodies/CreateOrchestrationActivityRequestRequestBody';
|
|
133
136
|
export type { CreateOrchestrationProcessInputRequestRequestBody } from './requestBodies/CreateOrchestrationProcessInputRequestRequestBody';
|
|
134
137
|
export type { CreateOrchestrationProcessRequestRequestBody } from './requestBodies/CreateOrchestrationProcessRequestRequestBody';
|
|
@@ -144,6 +147,7 @@ export type { UpdateReleaseGroupRequestRequestBody } from './requestBodies/Updat
|
|
|
144
147
|
export type { UpdateReleaseRequestRequestBody } from './requestBodies/UpdateReleaseRequestRequestBody';
|
|
145
148
|
export type { ActivityExecutionInputsResponseResponse } from './responses/ActivityExecutionInputsResponseResponse';
|
|
146
149
|
export type { ActivityInputsResponseResponse } from './responses/ActivityInputsResponseResponse';
|
|
150
|
+
export type { CreateAdHocReleaseResponseResponse } from './responses/CreateAdHocReleaseResponseResponse';
|
|
147
151
|
export type { CreateOrchestrationActivityResponseResponse } from './responses/CreateOrchestrationActivityResponseResponse';
|
|
148
152
|
export type { CreateOrchestrationProcessInputResponseResponse } from './responses/CreateOrchestrationProcessInputResponseResponse';
|
|
149
153
|
export type { CreateOrchestrationProcessResponseResponse } from './responses/CreateOrchestrationProcessResponseResponse';
|
|
@@ -201,6 +205,8 @@ export type { ActivityRetryInfo } from './schemas/ActivityRetryInfo';
|
|
|
201
205
|
export type { ActivityTriggerInfo } from './schemas/ActivityTriggerInfo';
|
|
202
206
|
export type { ActivityType } from './schemas/ActivityType';
|
|
203
207
|
export type { ActivityTypeCounts } from './schemas/ActivityTypeCounts';
|
|
208
|
+
export type { AdHocReleaseRequest } from './schemas/AdHocReleaseRequest';
|
|
209
|
+
export type { AdHocReleaseResponse } from './schemas/AdHocReleaseResponse';
|
|
204
210
|
export type { AnyValue } from './schemas/AnyValue';
|
|
205
211
|
export type { ApprovalInfoDto } from './schemas/ApprovalInfoDto';
|
|
206
212
|
export type { ApprovedByDto } from './schemas/ApprovedByDto';
|
|
@@ -48,6 +48,7 @@ export { postOrchestrationProcessAttachedReleaseGroups, usePostOrchestrationProc
|
|
|
48
48
|
export { postOrchestrationProcessInput, usePostOrchestrationProcessInputMutation, } from './hooks/usePostOrchestrationProcessInputMutation';
|
|
49
49
|
export { postOrchestrationProcess, usePostOrchestrationProcessMutation, } from './hooks/usePostOrchestrationProcessMutation';
|
|
50
50
|
export { postReleaseAction, usePostReleaseActionMutation, } from './hooks/usePostReleaseActionMutation';
|
|
51
|
+
export { postReleaseAdhoc, usePostReleaseAdhocMutation } from './hooks/usePostReleaseAdhocMutation';
|
|
51
52
|
export { postReleaseGroup, usePostReleaseGroupMutation } from './hooks/usePostReleaseGroupMutation';
|
|
52
53
|
export { postReleaseGroupReportGenerate, usePostReleaseGroupReportGenerateMutation, } from './hooks/usePostReleaseGroupReportGenerateMutation';
|
|
53
54
|
export { postReleaseReportGenerate, usePostReleaseReportGenerateMutation, } from './hooks/usePostReleaseReportGenerateMutation';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export interface AdHocReleaseRequest {
|
|
2
|
+
/**
|
|
3
|
+
* Hex color code for the release
|
|
4
|
+
*/
|
|
5
|
+
color?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Optional description
|
|
8
|
+
*/
|
|
9
|
+
description?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Expected end timestamp in milliseconds
|
|
12
|
+
*/
|
|
13
|
+
expectedEndTs: number;
|
|
14
|
+
/**
|
|
15
|
+
* Expected start timestamp in milliseconds
|
|
16
|
+
*/
|
|
17
|
+
expectedStartTs: number;
|
|
18
|
+
/**
|
|
19
|
+
* Unique identifier for the ad hoc release
|
|
20
|
+
*/
|
|
21
|
+
identifier: string;
|
|
22
|
+
/**
|
|
23
|
+
* Name of the ad hoc release
|
|
24
|
+
*/
|
|
25
|
+
name: string;
|
|
26
|
+
/**
|
|
27
|
+
* Identifier of the orchestration process
|
|
28
|
+
*/
|
|
29
|
+
processIdentifier: string;
|
|
30
|
+
/**
|
|
31
|
+
* Identifier of the orchestration process input (optional)
|
|
32
|
+
*/
|
|
33
|
+
processInputIdentifier?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Key-value tags for the release
|
|
36
|
+
*/
|
|
37
|
+
tags?: {
|
|
38
|
+
[key: string]: string;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Version of the ad hoc release
|
|
42
|
+
*/
|
|
43
|
+
version: string;
|
|
44
|
+
}
|