@harnessio/react-rmg-service-client 0.84.0 → 0.85.1-beta.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/useMoveOrchestrationActivityToGitMutation.d.ts +28 -0
- package/dist/rmg-service/src/services/hooks/useMoveOrchestrationActivityToGitMutation.js +14 -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/MoveOrchestrationActivityToGitRequestRequestBody.d.ts +4 -0
- package/dist/rmg-service/src/services/requestBodies/MoveOrchestrationActivityToGitRequestRequestBody.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/OrchestrationActivityYamlDto.d.ts +5 -0
- package/dist/rmg-service/src/services/schemas/OrchestrationActivityYamlDto.js +0 -3
- package/dist/rmg-service/src/services/schemas/ReleaseDto.d.ts +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { GetOrchestrationActivityResponseResponse } from '../responses/GetOrchestrationActivityResponseResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { MoveOrchestrationActivityToGitRequestRequestBody } from '../requestBodies/MoveOrchestrationActivityToGitRequestRequestBody';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface MoveOrchestrationActivityToGitMutationPathParams {
|
|
8
|
+
identifier: string;
|
|
9
|
+
}
|
|
10
|
+
export interface MoveOrchestrationActivityToGitMutationQueryParams {
|
|
11
|
+
orgIdentifier?: string;
|
|
12
|
+
projectIdentifier?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface MoveOrchestrationActivityToGitMutationHeaderParams {
|
|
15
|
+
'Harness-Account': string;
|
|
16
|
+
}
|
|
17
|
+
export type MoveOrchestrationActivityToGitRequestBody = MoveOrchestrationActivityToGitRequestRequestBody;
|
|
18
|
+
export type MoveOrchestrationActivityToGitOkResponse = ResponseWithPagination<GetOrchestrationActivityResponseResponse>;
|
|
19
|
+
export type MoveOrchestrationActivityToGitErrorResponse = ErrorResponseResponse;
|
|
20
|
+
export interface MoveOrchestrationActivityToGitProps extends MoveOrchestrationActivityToGitMutationPathParams, Omit<FetcherOptions<MoveOrchestrationActivityToGitMutationQueryParams, MoveOrchestrationActivityToGitRequestBody, MoveOrchestrationActivityToGitMutationHeaderParams>, 'url'> {
|
|
21
|
+
queryParams: MoveOrchestrationActivityToGitMutationQueryParams;
|
|
22
|
+
body: MoveOrchestrationActivityToGitRequestBody;
|
|
23
|
+
}
|
|
24
|
+
export declare function moveOrchestrationActivityToGit(props: MoveOrchestrationActivityToGitProps): Promise<MoveOrchestrationActivityToGitOkResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Move an inline orchestration activity to a remote git repository. Activities already stored remotely cannot be moved.
|
|
27
|
+
*/
|
|
28
|
+
export declare function useMoveOrchestrationActivityToGitMutation(options?: Omit<UseMutationOptions<MoveOrchestrationActivityToGitOkResponse, MoveOrchestrationActivityToGitErrorResponse, MoveOrchestrationActivityToGitProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<MoveOrchestrationActivityToGitOkResponse, import("..").Error, MoveOrchestrationActivityToGitProps, 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 moveOrchestrationActivityToGit(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/orchestration/activity/${props.identifier}/move-config`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Move an inline orchestration activity to a remote git repository. Activities already stored remotely cannot be moved.
|
|
11
|
+
*/
|
|
12
|
+
export function useMoveOrchestrationActivityToGitMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => moveOrchestrationActivityToGit(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -157,6 +157,10 @@ export type { ListChangesetsErrorResponse, ListChangesetsOkResponse, ListChanges
|
|
|
157
157
|
export { listChangesets, useListChangesetsQuery } from './hooks/useListChangesetsQuery';
|
|
158
158
|
export type { ListIntegrationExecutionsErrorResponse, ListIntegrationExecutionsOkResponse, ListIntegrationExecutionsProps, ListIntegrationExecutionsQueryQueryParams, } from './hooks/useListIntegrationExecutionsQuery';
|
|
159
159
|
export { listIntegrationExecutions, useListIntegrationExecutionsQuery, } from './hooks/useListIntegrationExecutionsQuery';
|
|
160
|
+
export type { MoveOrchestrationActivityToGitErrorResponse, MoveOrchestrationActivityToGitMutationPathParams, MoveOrchestrationActivityToGitMutationQueryParams, MoveOrchestrationActivityToGitOkResponse, MoveOrchestrationActivityToGitProps, MoveOrchestrationActivityToGitRequestBody, } from './hooks/useMoveOrchestrationActivityToGitMutation';
|
|
161
|
+
export { moveOrchestrationActivityToGit, useMoveOrchestrationActivityToGitMutation, } from './hooks/useMoveOrchestrationActivityToGitMutation';
|
|
162
|
+
export type { MoveOrchestrationProcessToGitErrorResponse, MoveOrchestrationProcessToGitMutationPathParams, MoveOrchestrationProcessToGitMutationQueryParams, MoveOrchestrationProcessToGitOkResponse, MoveOrchestrationProcessToGitProps, MoveOrchestrationProcessToGitRequestBody, } from './hooks/useMoveOrchestrationProcessToGitMutation';
|
|
163
|
+
export { moveOrchestrationProcessToGit, useMoveOrchestrationProcessToGitMutation, } from './hooks/useMoveOrchestrationProcessToGitMutation';
|
|
160
164
|
export type { PatchReleaseGroupErrorResponse, PatchReleaseGroupMutationPathParams, PatchReleaseGroupMutationQueryParams, PatchReleaseGroupOkResponse, PatchReleaseGroupProps, PatchReleaseGroupRequestBody, } from './hooks/usePatchReleaseGroupMutation';
|
|
161
165
|
export { patchReleaseGroup, usePatchReleaseGroupMutation, } from './hooks/usePatchReleaseGroupMutation';
|
|
162
166
|
export type { PostActivityExecutionOutputErrorResponse, PostActivityExecutionOutputMutationPathParams, PostActivityExecutionOutputMutationQueryParams, PostActivityExecutionOutputOkResponse, PostActivityExecutionOutputProps, PostActivityExecutionOutputRequestBody, } from './hooks/usePostActivityExecutionOutputMutation';
|
|
@@ -236,6 +240,8 @@ export type { CreateOrchestrationActivityRequestRequestBody } from './requestBod
|
|
|
236
240
|
export type { CreateOrchestrationProcessInputRequestRequestBody } from './requestBodies/CreateOrchestrationProcessInputRequestRequestBody';
|
|
237
241
|
export type { CreateOrchestrationProcessRequestRequestBody } from './requestBodies/CreateOrchestrationProcessRequestRequestBody';
|
|
238
242
|
export type { CreateReleaseGroupRequestRequestBody } from './requestBodies/CreateReleaseGroupRequestRequestBody';
|
|
243
|
+
export type { MoveOrchestrationActivityToGitRequestRequestBody } from './requestBodies/MoveOrchestrationActivityToGitRequestRequestBody';
|
|
244
|
+
export type { MoveOrchestrationProcessToGitRequestRequestBody } from './requestBodies/MoveOrchestrationProcessToGitRequestRequestBody';
|
|
239
245
|
export type { OnHoldActivityActionRequestRequestBody } from './requestBodies/OnHoldActivityActionRequestRequestBody';
|
|
240
246
|
export type { OrchestrationProcessAttachedReleaseGroupsRequestRequestBody } from './requestBodies/OrchestrationProcessAttachedReleaseGroupsRequestRequestBody';
|
|
241
247
|
export type { PatchReleaseGroupRequestRequestBody } from './requestBodies/PatchReleaseGroupRequestRequestBody';
|
|
@@ -77,6 +77,8 @@ export { listArtifacts, useListArtifactsQuery } from './hooks/useListArtifactsQu
|
|
|
77
77
|
export { listChangesetCommits, useListChangesetCommitsQuery, } from './hooks/useListChangesetCommitsQuery';
|
|
78
78
|
export { listChangesets, useListChangesetsQuery } from './hooks/useListChangesetsQuery';
|
|
79
79
|
export { listIntegrationExecutions, useListIntegrationExecutionsQuery, } from './hooks/useListIntegrationExecutionsQuery';
|
|
80
|
+
export { moveOrchestrationActivityToGit, useMoveOrchestrationActivityToGitMutation, } from './hooks/useMoveOrchestrationActivityToGitMutation';
|
|
81
|
+
export { moveOrchestrationProcessToGit, useMoveOrchestrationProcessToGitMutation, } from './hooks/useMoveOrchestrationProcessToGitMutation';
|
|
80
82
|
export { patchReleaseGroup, usePatchReleaseGroupMutation, } from './hooks/usePatchReleaseGroupMutation';
|
|
81
83
|
export { postActivityExecutionOutput, usePostActivityExecutionOutputMutation, } from './hooks/usePostActivityExecutionOutputMutation';
|
|
82
84
|
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
|
*/
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CreateOrchestrationActivityRequestType } from '../schemas/CreateOrchestrationActivityRequestType';
|
|
1
2
|
export interface OrchestrationActivityYamlDto {
|
|
2
3
|
/**
|
|
3
4
|
* User-facing error message when the activity content could not be fetched (e.g. remote yaml not found on the selected branch)
|
|
@@ -15,6 +16,10 @@ export interface OrchestrationActivityYamlDto {
|
|
|
15
16
|
* Project identifier of the activity
|
|
16
17
|
*/
|
|
17
18
|
projectIdentifier?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Type of the activity, sourced from the database and always populated regardless of whether yaml content is available (e.g. blank for REMOTE activities read without git branch context)
|
|
21
|
+
*/
|
|
22
|
+
type?: CreateOrchestrationActivityRequestType;
|
|
18
23
|
/**
|
|
19
24
|
* YAML configuration of the activity
|
|
20
25
|
*/
|
|
@@ -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
|
*/
|