@harnessio/react-rmg-service-client 0.85.0 → 0.86.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/useMoveOrchestrationProcessInputToGitMutation.d.ts +30 -0
- package/dist/rmg-service/src/services/hooks/useMoveOrchestrationProcessInputToGitMutation.js +15 -0
- package/dist/rmg-service/src/services/hooks/useMoveOrchestrationProcessToGitMutation.d.ts +29 -0
- package/dist/rmg-service/src/services/hooks/useMoveOrchestrationProcessToGitMutation.js +15 -0
- package/dist/rmg-service/src/services/index.d.ts +6 -0
- package/dist/rmg-service/src/services/index.js +2 -0
- package/dist/rmg-service/src/services/requestBodies/CreateReleaseGroupRequestRequestBody.d.ts +4 -0
- package/dist/rmg-service/src/services/requestBodies/MoveOrchestrationProcessInputToGitRequestRequestBody.d.ts +4 -0
- package/dist/rmg-service/src/services/requestBodies/MoveOrchestrationProcessInputToGitRequestRequestBody.js +1 -0
- package/dist/rmg-service/src/services/requestBodies/MoveOrchestrationProcessToGitRequestRequestBody.d.ts +4 -0
- package/dist/rmg-service/src/services/requestBodies/MoveOrchestrationProcessToGitRequestRequestBody.js +1 -0
- package/dist/rmg-service/src/services/requestBodies/UpdateReleaseGroupRequestRequestBody.d.ts +4 -0
- package/dist/rmg-service/src/services/responses/CreateOrchestrationActivityResponseResponse.d.ts +2 -0
- package/dist/rmg-service/src/services/responses/CreateOrchestrationProcessResponseResponse.d.ts +2 -0
- package/dist/rmg-service/src/services/responses/UpdateOrchestrationActivityResponseResponse.d.ts +2 -0
- package/dist/rmg-service/src/services/responses/UpdateOrchestrationProcessResponseResponse.d.ts +2 -0
- package/dist/rmg-service/src/services/schemas/AdHocReleaseRequest.d.ts +4 -0
- package/dist/rmg-service/src/services/schemas/ExecutionStartResponse.d.ts +2 -0
- package/dist/rmg-service/src/services/schemas/ExecutionStartResponse.js +0 -3
- package/dist/rmg-service/src/services/schemas/GetReleaseGroupResponse.d.ts +4 -0
- package/dist/rmg-service/src/services/schemas/ReleaseDto.d.ts +4 -0
- package/package.json +1 -1
package/dist/rmg-service/src/services/hooks/useMoveOrchestrationProcessInputToGitMutation.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { GetOrchestrationProcessInputResponseResponse } from '../responses/GetOrchestrationProcessInputResponseResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { MoveOrchestrationProcessInputToGitRequestRequestBody } from '../requestBodies/MoveOrchestrationProcessInputToGitRequestRequestBody';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface MoveOrchestrationProcessInputToGitMutationPathParams {
|
|
8
|
+
processIdentifier: string;
|
|
9
|
+
identifier: string;
|
|
10
|
+
}
|
|
11
|
+
export interface MoveOrchestrationProcessInputToGitMutationQueryParams {
|
|
12
|
+
orgIdentifier?: string;
|
|
13
|
+
projectIdentifier?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface MoveOrchestrationProcessInputToGitMutationHeaderParams {
|
|
16
|
+
'Harness-Account': string;
|
|
17
|
+
}
|
|
18
|
+
export type MoveOrchestrationProcessInputToGitRequestBody = MoveOrchestrationProcessInputToGitRequestRequestBody;
|
|
19
|
+
export type MoveOrchestrationProcessInputToGitOkResponse = ResponseWithPagination<GetOrchestrationProcessInputResponseResponse>;
|
|
20
|
+
export type MoveOrchestrationProcessInputToGitErrorResponse = ErrorResponseResponse;
|
|
21
|
+
export interface MoveOrchestrationProcessInputToGitProps extends MoveOrchestrationProcessInputToGitMutationPathParams, Omit<FetcherOptions<MoveOrchestrationProcessInputToGitMutationQueryParams, MoveOrchestrationProcessInputToGitRequestBody, MoveOrchestrationProcessInputToGitMutationHeaderParams>, 'url'> {
|
|
22
|
+
queryParams: MoveOrchestrationProcessInputToGitMutationQueryParams;
|
|
23
|
+
body: MoveOrchestrationProcessInputToGitRequestBody;
|
|
24
|
+
}
|
|
25
|
+
export declare function moveOrchestrationProcessInputToGit(props: MoveOrchestrationProcessInputToGitProps): Promise<MoveOrchestrationProcessInputToGitOkResponse>;
|
|
26
|
+
/**
|
|
27
|
+
* Move an inline process input to a remote git repository. Parent process must be remote. Input already stored remotely cannot be moved. Git repository, connector, and branch must match the parent process.
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
export declare function useMoveOrchestrationProcessInputToGitMutation(options?: Omit<UseMutationOptions<MoveOrchestrationProcessInputToGitOkResponse, MoveOrchestrationProcessInputToGitErrorResponse, MoveOrchestrationProcessInputToGitProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<MoveOrchestrationProcessInputToGitOkResponse, import("..").Error, MoveOrchestrationProcessInputToGitProps, unknown>;
|
|
@@ -0,0 +1,15 @@
|
|
|
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 moveOrchestrationProcessInputToGit(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/orchestration/process/${props.processIdentifier}/input/${props.identifier}/move-config`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Move an inline process input to a remote git repository. Parent process must be remote. Input already stored remotely cannot be moved. Git repository, connector, and branch must match the parent process.
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
export function useMoveOrchestrationProcessInputToGitMutation(options) {
|
|
14
|
+
return useMutation((mutateProps) => moveOrchestrationProcessInputToGit(mutateProps), options);
|
|
15
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { GetOrchestrationProcessResponseResponse } from '../responses/GetOrchestrationProcessResponseResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { MoveOrchestrationProcessToGitRequestRequestBody } from '../requestBodies/MoveOrchestrationProcessToGitRequestRequestBody';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface MoveOrchestrationProcessToGitMutationPathParams {
|
|
8
|
+
identifier: string;
|
|
9
|
+
}
|
|
10
|
+
export interface MoveOrchestrationProcessToGitMutationQueryParams {
|
|
11
|
+
orgIdentifier?: string;
|
|
12
|
+
projectIdentifier?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface MoveOrchestrationProcessToGitMutationHeaderParams {
|
|
15
|
+
'Harness-Account': string;
|
|
16
|
+
}
|
|
17
|
+
export type MoveOrchestrationProcessToGitRequestBody = MoveOrchestrationProcessToGitRequestRequestBody;
|
|
18
|
+
export type MoveOrchestrationProcessToGitOkResponse = ResponseWithPagination<GetOrchestrationProcessResponseResponse>;
|
|
19
|
+
export type MoveOrchestrationProcessToGitErrorResponse = ErrorResponseResponse;
|
|
20
|
+
export interface MoveOrchestrationProcessToGitProps extends MoveOrchestrationProcessToGitMutationPathParams, Omit<FetcherOptions<MoveOrchestrationProcessToGitMutationQueryParams, MoveOrchestrationProcessToGitRequestBody, MoveOrchestrationProcessToGitMutationHeaderParams>, 'url'> {
|
|
21
|
+
queryParams: MoveOrchestrationProcessToGitMutationQueryParams;
|
|
22
|
+
body: MoveOrchestrationProcessToGitRequestBody;
|
|
23
|
+
}
|
|
24
|
+
export declare function moveOrchestrationProcessToGit(props: MoveOrchestrationProcessToGitProps): Promise<MoveOrchestrationProcessToGitOkResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Move an inline orchestration process to a remote git repository. Processes already stored remotely cannot be moved. Existing process inputs are left unchanged (may remain INLINE).
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
export declare function useMoveOrchestrationProcessToGitMutation(options?: Omit<UseMutationOptions<MoveOrchestrationProcessToGitOkResponse, MoveOrchestrationProcessToGitErrorResponse, MoveOrchestrationProcessToGitProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<MoveOrchestrationProcessToGitOkResponse, import("..").Error, MoveOrchestrationProcessToGitProps, unknown>;
|
|
@@ -0,0 +1,15 @@
|
|
|
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 moveOrchestrationProcessToGit(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/orchestration/process/${props.identifier}/move-config`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Move an inline orchestration process to a remote git repository. Processes already stored remotely cannot be moved. Existing process inputs are left unchanged (may remain INLINE).
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
export function useMoveOrchestrationProcessToGitMutation(options) {
|
|
14
|
+
return useMutation((mutateProps) => moveOrchestrationProcessToGit(mutateProps), options);
|
|
15
|
+
}
|
|
@@ -159,6 +159,10 @@ export type { ListIntegrationExecutionsErrorResponse, ListIntegrationExecutionsO
|
|
|
159
159
|
export { listIntegrationExecutions, useListIntegrationExecutionsQuery, } from './hooks/useListIntegrationExecutionsQuery';
|
|
160
160
|
export type { MoveOrchestrationActivityToGitErrorResponse, MoveOrchestrationActivityToGitMutationPathParams, MoveOrchestrationActivityToGitMutationQueryParams, MoveOrchestrationActivityToGitOkResponse, MoveOrchestrationActivityToGitProps, MoveOrchestrationActivityToGitRequestBody, } from './hooks/useMoveOrchestrationActivityToGitMutation';
|
|
161
161
|
export { moveOrchestrationActivityToGit, useMoveOrchestrationActivityToGitMutation, } from './hooks/useMoveOrchestrationActivityToGitMutation';
|
|
162
|
+
export type { MoveOrchestrationProcessInputToGitErrorResponse, MoveOrchestrationProcessInputToGitMutationPathParams, MoveOrchestrationProcessInputToGitMutationQueryParams, MoveOrchestrationProcessInputToGitOkResponse, MoveOrchestrationProcessInputToGitProps, MoveOrchestrationProcessInputToGitRequestBody, } from './hooks/useMoveOrchestrationProcessInputToGitMutation';
|
|
163
|
+
export { moveOrchestrationProcessInputToGit, useMoveOrchestrationProcessInputToGitMutation, } from './hooks/useMoveOrchestrationProcessInputToGitMutation';
|
|
164
|
+
export type { MoveOrchestrationProcessToGitErrorResponse, MoveOrchestrationProcessToGitMutationPathParams, MoveOrchestrationProcessToGitMutationQueryParams, MoveOrchestrationProcessToGitOkResponse, MoveOrchestrationProcessToGitProps, MoveOrchestrationProcessToGitRequestBody, } from './hooks/useMoveOrchestrationProcessToGitMutation';
|
|
165
|
+
export { moveOrchestrationProcessToGit, useMoveOrchestrationProcessToGitMutation, } from './hooks/useMoveOrchestrationProcessToGitMutation';
|
|
162
166
|
export type { PatchReleaseGroupErrorResponse, PatchReleaseGroupMutationPathParams, PatchReleaseGroupMutationQueryParams, PatchReleaseGroupOkResponse, PatchReleaseGroupProps, PatchReleaseGroupRequestBody, } from './hooks/usePatchReleaseGroupMutation';
|
|
163
167
|
export { patchReleaseGroup, usePatchReleaseGroupMutation, } from './hooks/usePatchReleaseGroupMutation';
|
|
164
168
|
export type { PostActivityExecutionOutputErrorResponse, PostActivityExecutionOutputMutationPathParams, PostActivityExecutionOutputMutationQueryParams, PostActivityExecutionOutputOkResponse, PostActivityExecutionOutputProps, PostActivityExecutionOutputRequestBody, } from './hooks/usePostActivityExecutionOutputMutation';
|
|
@@ -239,6 +243,8 @@ export type { CreateOrchestrationProcessInputRequestRequestBody } from './reques
|
|
|
239
243
|
export type { CreateOrchestrationProcessRequestRequestBody } from './requestBodies/CreateOrchestrationProcessRequestRequestBody';
|
|
240
244
|
export type { CreateReleaseGroupRequestRequestBody } from './requestBodies/CreateReleaseGroupRequestRequestBody';
|
|
241
245
|
export type { MoveOrchestrationActivityToGitRequestRequestBody } from './requestBodies/MoveOrchestrationActivityToGitRequestRequestBody';
|
|
246
|
+
export type { MoveOrchestrationProcessInputToGitRequestRequestBody } from './requestBodies/MoveOrchestrationProcessInputToGitRequestRequestBody';
|
|
247
|
+
export type { MoveOrchestrationProcessToGitRequestRequestBody } from './requestBodies/MoveOrchestrationProcessToGitRequestRequestBody';
|
|
242
248
|
export type { OnHoldActivityActionRequestRequestBody } from './requestBodies/OnHoldActivityActionRequestRequestBody';
|
|
243
249
|
export type { OrchestrationProcessAttachedReleaseGroupsRequestRequestBody } from './requestBodies/OrchestrationProcessAttachedReleaseGroupsRequestRequestBody';
|
|
244
250
|
export type { PatchReleaseGroupRequestRequestBody } from './requestBodies/PatchReleaseGroupRequestRequestBody';
|
|
@@ -78,6 +78,8 @@ export { listChangesetCommits, useListChangesetCommitsQuery, } from './hooks/use
|
|
|
78
78
|
export { listChangesets, useListChangesetsQuery } from './hooks/useListChangesetsQuery';
|
|
79
79
|
export { listIntegrationExecutions, useListIntegrationExecutionsQuery, } from './hooks/useListIntegrationExecutionsQuery';
|
|
80
80
|
export { moveOrchestrationActivityToGit, useMoveOrchestrationActivityToGitMutation, } from './hooks/useMoveOrchestrationActivityToGitMutation';
|
|
81
|
+
export { moveOrchestrationProcessInputToGit, useMoveOrchestrationProcessInputToGitMutation, } from './hooks/useMoveOrchestrationProcessInputToGitMutation';
|
|
82
|
+
export { moveOrchestrationProcessToGit, useMoveOrchestrationProcessToGitMutation, } from './hooks/useMoveOrchestrationProcessToGitMutation';
|
|
81
83
|
export { patchReleaseGroup, usePatchReleaseGroupMutation, } from './hooks/usePatchReleaseGroupMutation';
|
|
82
84
|
export { postActivityExecutionOutput, usePostActivityExecutionOutputMutation, } from './hooks/usePostActivityExecutionOutputMutation';
|
|
83
85
|
export { postOnHoldActivityAction, usePostOnHoldActivityActionMutation, } from './hooks/usePostOnHoldActivityActionMutation';
|
package/dist/rmg-service/src/services/requestBodies/CreateReleaseGroupRequestRequestBody.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export interface CreateReleaseGroupRequestRequestBody {
|
|
2
|
+
/**
|
|
3
|
+
* Git branch used to read the orchestration process definition for releases in this group. Required when the process is stored in Git.
|
|
4
|
+
*/
|
|
5
|
+
processGitBranch?: string;
|
|
2
6
|
/**
|
|
3
7
|
* Identifier of the orchestration process
|
|
4
8
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/rmg-service/src/services/requestBodies/UpdateReleaseGroupRequestRequestBody.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export interface UpdateReleaseGroupRequestRequestBody {
|
|
2
|
+
/**
|
|
3
|
+
* Git branch used to read the orchestration process definition for releases in this group. Omit to keep the current branch.
|
|
4
|
+
*/
|
|
5
|
+
processGitBranch?: string;
|
|
2
6
|
/**
|
|
3
7
|
* Identifier of the orchestration process
|
|
4
8
|
*/
|
package/dist/rmg-service/src/services/responses/CreateOrchestrationActivityResponseResponse.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { GitDetails } from '../schemas/GitDetails';
|
|
2
|
+
import type { GovernanceMetadata } from '../schemas/GovernanceMetadata';
|
|
2
3
|
export interface CreateOrchestrationActivityResponseResponse {
|
|
3
4
|
git_details?: GitDetails;
|
|
5
|
+
governanceMetadata?: GovernanceMetadata;
|
|
4
6
|
identifier: string;
|
|
5
7
|
yaml: string;
|
|
6
8
|
}
|
package/dist/rmg-service/src/services/responses/CreateOrchestrationProcessResponseResponse.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { GitDetails } from '../schemas/GitDetails';
|
|
2
|
+
import type { GovernanceMetadata } from '../schemas/GovernanceMetadata';
|
|
2
3
|
export interface CreateOrchestrationProcessResponseResponse {
|
|
3
4
|
git_details?: GitDetails;
|
|
5
|
+
governanceMetadata?: GovernanceMetadata;
|
|
4
6
|
/**
|
|
5
7
|
* Identifier of the created process
|
|
6
8
|
*/
|
package/dist/rmg-service/src/services/responses/UpdateOrchestrationActivityResponseResponse.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { GitDetails } from '../schemas/GitDetails';
|
|
2
|
+
import type { GovernanceMetadata } from '../schemas/GovernanceMetadata';
|
|
2
3
|
export interface UpdateOrchestrationActivityResponseResponse {
|
|
3
4
|
git_details?: GitDetails;
|
|
5
|
+
governanceMetadata?: GovernanceMetadata;
|
|
4
6
|
/**
|
|
5
7
|
* Identifier of the updated orchestration activity
|
|
6
8
|
*/
|
package/dist/rmg-service/src/services/responses/UpdateOrchestrationProcessResponseResponse.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { GitDetails } from '../schemas/GitDetails';
|
|
2
|
+
import type { GovernanceMetadata } from '../schemas/GovernanceMetadata';
|
|
2
3
|
export interface UpdateOrchestrationProcessResponseResponse {
|
|
3
4
|
git_details?: GitDetails;
|
|
5
|
+
governanceMetadata?: GovernanceMetadata;
|
|
4
6
|
/**
|
|
5
7
|
* Identifier of the updated orchestration process
|
|
6
8
|
*/
|
|
@@ -23,6 +23,10 @@ export interface AdHocReleaseRequest {
|
|
|
23
23
|
* Name of the ad hoc release
|
|
24
24
|
*/
|
|
25
25
|
name: string;
|
|
26
|
+
/**
|
|
27
|
+
* Git branch used to read the orchestration process definition for this release. Required when the process is stored in Git.
|
|
28
|
+
*/
|
|
29
|
+
processGitBranch?: string;
|
|
26
30
|
/**
|
|
27
31
|
* Identifier of the orchestration process
|
|
28
32
|
*/
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { GovernanceMetadata } from '../schemas/GovernanceMetadata';
|
|
1
2
|
/**
|
|
2
3
|
* Response for starting a release or process execution
|
|
3
4
|
*/
|
|
@@ -6,6 +7,7 @@ export interface ExecutionStartResponse {
|
|
|
6
7
|
* Navigation slug for the started process execution (on-the-go process execute only)
|
|
7
8
|
*/
|
|
8
9
|
executionId?: string;
|
|
10
|
+
governanceMetadata?: GovernanceMetadata;
|
|
9
11
|
/**
|
|
10
12
|
* Identifier of the started release or orchestration process
|
|
11
13
|
*/
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { AutoExecuteOnScheduleProperty } from '../schemas/AutoExecuteOnScheduleProperty';
|
|
2
2
|
export interface GetReleaseGroupResponse {
|
|
3
3
|
autoExecuteOnSchedule?: AutoExecuteOnScheduleProperty;
|
|
4
|
+
/**
|
|
5
|
+
* Git branch used to read the orchestration process definition for releases in this group. Empty when the process is not stored in Git.
|
|
6
|
+
*/
|
|
7
|
+
processGitBranch?: string;
|
|
4
8
|
/**
|
|
5
9
|
* Identifier for the orchestration process.
|
|
6
10
|
*/
|
|
@@ -48,6 +48,10 @@ export interface ReleaseDto {
|
|
|
48
48
|
* Name of the release
|
|
49
49
|
*/
|
|
50
50
|
name: string;
|
|
51
|
+
/**
|
|
52
|
+
* Git branch used to read the orchestration process definition for this release. Set when the release is created and cannot be changed afterwards.
|
|
53
|
+
*/
|
|
54
|
+
processGitBranch?: string;
|
|
51
55
|
/**
|
|
52
56
|
* Identifier for the orchestration process.
|
|
53
57
|
*/
|