@harnessio/react-rmg-service-client 0.84.1-beta.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.
Files changed (20) hide show
  1. package/dist/rmg-service/src/services/hooks/useMoveOrchestrationProcessToGitMutation.d.ts +29 -0
  2. package/dist/rmg-service/src/services/hooks/useMoveOrchestrationProcessToGitMutation.js +15 -0
  3. package/dist/rmg-service/src/services/index.d.ts +3 -0
  4. package/dist/rmg-service/src/services/index.js +1 -0
  5. package/dist/rmg-service/src/services/requestBodies/CreateReleaseGroupRequestRequestBody.d.ts +4 -0
  6. package/dist/rmg-service/src/services/requestBodies/MoveOrchestrationProcessToGitRequestRequestBody.d.ts +4 -0
  7. package/dist/rmg-service/src/services/requestBodies/MoveOrchestrationProcessToGitRequestRequestBody.js +1 -0
  8. package/dist/rmg-service/src/services/requestBodies/UpdateReleaseGroupRequestRequestBody.d.ts +4 -0
  9. package/dist/rmg-service/src/services/responses/CreateOrchestrationActivityResponseResponse.d.ts +2 -0
  10. package/dist/rmg-service/src/services/responses/CreateOrchestrationProcessResponseResponse.d.ts +2 -0
  11. package/dist/rmg-service/src/services/responses/UpdateOrchestrationActivityResponseResponse.d.ts +2 -0
  12. package/dist/rmg-service/src/services/responses/UpdateOrchestrationProcessResponseResponse.d.ts +2 -0
  13. package/dist/rmg-service/src/services/schemas/AdHocReleaseRequest.d.ts +4 -0
  14. package/dist/rmg-service/src/services/schemas/ExecutionStartResponse.d.ts +2 -0
  15. package/dist/rmg-service/src/services/schemas/ExecutionStartResponse.js +0 -3
  16. package/dist/rmg-service/src/services/schemas/GetReleaseGroupResponse.d.ts +4 -0
  17. package/dist/rmg-service/src/services/schemas/OrchestrationActivityYamlDto.d.ts +5 -0
  18. package/dist/rmg-service/src/services/schemas/OrchestrationActivityYamlDto.js +0 -3
  19. package/dist/rmg-service/src/services/schemas/ReleaseDto.d.ts +4 -0
  20. package/package.json +1 -1
@@ -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,8 @@ 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 { MoveOrchestrationProcessToGitErrorResponse, MoveOrchestrationProcessToGitMutationPathParams, MoveOrchestrationProcessToGitMutationQueryParams, MoveOrchestrationProcessToGitOkResponse, MoveOrchestrationProcessToGitProps, MoveOrchestrationProcessToGitRequestBody, } from './hooks/useMoveOrchestrationProcessToGitMutation';
163
+ export { moveOrchestrationProcessToGit, useMoveOrchestrationProcessToGitMutation, } from './hooks/useMoveOrchestrationProcessToGitMutation';
162
164
  export type { PatchReleaseGroupErrorResponse, PatchReleaseGroupMutationPathParams, PatchReleaseGroupMutationQueryParams, PatchReleaseGroupOkResponse, PatchReleaseGroupProps, PatchReleaseGroupRequestBody, } from './hooks/usePatchReleaseGroupMutation';
163
165
  export { patchReleaseGroup, usePatchReleaseGroupMutation, } from './hooks/usePatchReleaseGroupMutation';
164
166
  export type { PostActivityExecutionOutputErrorResponse, PostActivityExecutionOutputMutationPathParams, PostActivityExecutionOutputMutationQueryParams, PostActivityExecutionOutputOkResponse, PostActivityExecutionOutputProps, PostActivityExecutionOutputRequestBody, } from './hooks/usePostActivityExecutionOutputMutation';
@@ -239,6 +241,7 @@ export type { CreateOrchestrationProcessInputRequestRequestBody } from './reques
239
241
  export type { CreateOrchestrationProcessRequestRequestBody } from './requestBodies/CreateOrchestrationProcessRequestRequestBody';
240
242
  export type { CreateReleaseGroupRequestRequestBody } from './requestBodies/CreateReleaseGroupRequestRequestBody';
241
243
  export type { MoveOrchestrationActivityToGitRequestRequestBody } from './requestBodies/MoveOrchestrationActivityToGitRequestRequestBody';
244
+ export type { MoveOrchestrationProcessToGitRequestRequestBody } from './requestBodies/MoveOrchestrationProcessToGitRequestRequestBody';
242
245
  export type { OnHoldActivityActionRequestRequestBody } from './requestBodies/OnHoldActivityActionRequestRequestBody';
243
246
  export type { OrchestrationProcessAttachedReleaseGroupsRequestRequestBody } from './requestBodies/OrchestrationProcessAttachedReleaseGroupsRequestRequestBody';
244
247
  export type { PatchReleaseGroupRequestRequestBody } from './requestBodies/PatchReleaseGroupRequestRequestBody';
@@ -78,6 +78,7 @@ 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 { moveOrchestrationProcessToGit, useMoveOrchestrationProcessToGitMutation, } from './hooks/useMoveOrchestrationProcessToGitMutation';
81
82
  export { patchReleaseGroup, usePatchReleaseGroupMutation, } from './hooks/usePatchReleaseGroupMutation';
82
83
  export { postActivityExecutionOutput, usePostActivityExecutionOutputMutation, } from './hooks/usePostActivityExecutionOutputMutation';
83
84
  export { postOnHoldActivityAction, usePostOnHoldActivityActionMutation, } from './hooks/usePostOnHoldActivityActionMutation';
@@ -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,4 @@
1
+ import type { GitDetails } from '../schemas/GitDetails';
2
+ export interface MoveOrchestrationProcessToGitRequestRequestBody {
3
+ git_details: GitDetails;
4
+ }
@@ -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
  */
@@ -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
  }
@@ -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
  */
@@ -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
  */
@@ -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,4 +1 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
1
  export {};
@@ -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
  */
@@ -1,4 +1 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
1
  export {};
@@ -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
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-rmg-service-client",
3
- "version": "0.84.1-beta.0",
3
+ "version": "0.85.1-beta.0",
4
4
  "description": "Harness Release Management Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",