@harnessio/react-rmg-service-client 0.32.0 → 0.34.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 (31) hide show
  1. package/dist/rmg-service/src/services/hooks/useDeleteOrchestrationActivityMutation.d.ts +24 -0
  2. package/dist/rmg-service/src/services/hooks/useDeleteOrchestrationActivityMutation.js +14 -0
  3. package/dist/rmg-service/src/services/hooks/useDeleteOrchestrationProcessInputMutation.d.ts +25 -0
  4. package/dist/rmg-service/src/services/hooks/useDeleteOrchestrationProcessInputMutation.js +14 -0
  5. package/dist/rmg-service/src/services/hooks/useDeleteOrchestrationProcessMutation.d.ts +24 -0
  6. package/dist/rmg-service/src/services/hooks/useDeleteOrchestrationProcessMutation.js +14 -0
  7. package/dist/rmg-service/src/services/hooks/usePostReleaseActionMutation.d.ts +28 -0
  8. package/dist/rmg-service/src/services/hooks/usePostReleaseActionMutation.js +14 -0
  9. package/dist/rmg-service/src/services/index.d.ts +14 -0
  10. package/dist/rmg-service/src/services/index.js +4 -0
  11. package/dist/rmg-service/src/services/responses/ReleaseActionResponseResponse.d.ts +2 -0
  12. package/dist/rmg-service/src/services/responses/ReleaseActionResponseResponse.js +1 -0
  13. package/dist/rmg-service/src/services/schemas/ActivityInputYaml.d.ts +4 -2
  14. package/dist/rmg-service/src/services/schemas/ActivityInputYaml.js +0 -3
  15. package/dist/rmg-service/src/services/schemas/OnHoldActivityActionRequest.d.ts +10 -1
  16. package/dist/rmg-service/src/services/schemas/OnHoldActivityActionRequest.js +0 -3
  17. package/dist/rmg-service/src/services/schemas/OrchestrationActivityProcessYaml.d.ts +4 -0
  18. package/dist/rmg-service/src/services/schemas/OrchestrationActivitySubprocessYaml.d.ts +9 -0
  19. package/dist/rmg-service/src/services/schemas/OrchestrationActivitySubprocessYaml.js +4 -0
  20. package/dist/rmg-service/src/services/schemas/OrchestrationActivityYaml.d.ts +2 -0
  21. package/dist/rmg-service/src/services/schemas/OrchestrationExecutionActivity.d.ts +8 -0
  22. package/dist/rmg-service/src/services/schemas/OrchestrationPhaseYaml.d.ts +4 -0
  23. package/dist/rmg-service/src/services/schemas/ReleaseActionRequest.d.ts +11 -0
  24. package/dist/rmg-service/src/services/schemas/ReleaseActionRequest.js +4 -0
  25. package/dist/rmg-service/src/services/schemas/ReleaseActionResponse.d.ts +14 -0
  26. package/dist/rmg-service/src/services/schemas/ReleaseActionResponse.js +4 -0
  27. package/dist/rmg-service/src/services/schemas/SubprocessActivityInfo.d.ts +9 -0
  28. package/dist/rmg-service/src/services/schemas/SubprocessActivityInfo.js +4 -0
  29. package/dist/rmg-service/src/services/schemas/SubprocessInfo.d.ts +20 -0
  30. package/dist/rmg-service/src/services/schemas/SubprocessInfo.js +4 -0
  31. package/package.json +1 -1
@@ -0,0 +1,24 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface DeleteOrchestrationActivityMutationPathParams {
6
+ identifier: string;
7
+ }
8
+ export interface DeleteOrchestrationActivityMutationQueryParams {
9
+ orgIdentifier?: string;
10
+ projectIdentifier?: string;
11
+ }
12
+ export interface DeleteOrchestrationActivityMutationHeaderParams {
13
+ 'Harness-Account': string;
14
+ }
15
+ export type DeleteOrchestrationActivityOkResponse = ResponseWithPagination<unknown>;
16
+ export type DeleteOrchestrationActivityErrorResponse = ErrorResponseResponse;
17
+ export interface DeleteOrchestrationActivityProps extends DeleteOrchestrationActivityMutationPathParams, Omit<FetcherOptions<DeleteOrchestrationActivityMutationQueryParams, unknown, DeleteOrchestrationActivityMutationHeaderParams>, 'url'> {
18
+ queryParams: DeleteOrchestrationActivityMutationQueryParams;
19
+ }
20
+ export declare function deleteOrchestrationActivity(props: DeleteOrchestrationActivityProps): Promise<DeleteOrchestrationActivityOkResponse>;
21
+ /**
22
+ * Delete an orchestration activity by identifier
23
+ */
24
+ export declare function useDeleteOrchestrationActivityMutation(options?: Omit<UseMutationOptions<DeleteOrchestrationActivityOkResponse, DeleteOrchestrationActivityErrorResponse, DeleteOrchestrationActivityProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteOrchestrationActivityOkResponse, import("..").Error, DeleteOrchestrationActivityProps, 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 deleteOrchestrationActivity(props) {
7
+ return fetcher(Object.assign({ url: `/orchestration/activity/${props.identifier}`, method: 'DELETE' }, props));
8
+ }
9
+ /**
10
+ * Delete an orchestration activity by identifier
11
+ */
12
+ export function useDeleteOrchestrationActivityMutation(options) {
13
+ return useMutation((mutateProps) => deleteOrchestrationActivity(mutateProps), options);
14
+ }
@@ -0,0 +1,25 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface DeleteOrchestrationProcessInputMutationPathParams {
6
+ processIdentifier: string;
7
+ identifier: string;
8
+ }
9
+ export interface DeleteOrchestrationProcessInputMutationQueryParams {
10
+ orgIdentifier?: string;
11
+ projectIdentifier?: string;
12
+ }
13
+ export interface DeleteOrchestrationProcessInputMutationHeaderParams {
14
+ 'Harness-Account': string;
15
+ }
16
+ export type DeleteOrchestrationProcessInputOkResponse = ResponseWithPagination<unknown>;
17
+ export type DeleteOrchestrationProcessInputErrorResponse = ErrorResponseResponse;
18
+ export interface DeleteOrchestrationProcessInputProps extends DeleteOrchestrationProcessInputMutationPathParams, Omit<FetcherOptions<DeleteOrchestrationProcessInputMutationQueryParams, unknown, DeleteOrchestrationProcessInputMutationHeaderParams>, 'url'> {
19
+ queryParams: DeleteOrchestrationProcessInputMutationQueryParams;
20
+ }
21
+ export declare function deleteOrchestrationProcessInput(props: DeleteOrchestrationProcessInputProps): Promise<DeleteOrchestrationProcessInputOkResponse>;
22
+ /**
23
+ * Delete an orchestration process input by process identifier and input identifier
24
+ */
25
+ export declare function useDeleteOrchestrationProcessInputMutation(options?: Omit<UseMutationOptions<DeleteOrchestrationProcessInputOkResponse, DeleteOrchestrationProcessInputErrorResponse, DeleteOrchestrationProcessInputProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteOrchestrationProcessInputOkResponse, import("..").Error, DeleteOrchestrationProcessInputProps, 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 deleteOrchestrationProcessInput(props) {
7
+ return fetcher(Object.assign({ url: `/orchestration/process/${props.processIdentifier}/input/${props.identifier}`, method: 'DELETE' }, props));
8
+ }
9
+ /**
10
+ * Delete an orchestration process input by process identifier and input identifier
11
+ */
12
+ export function useDeleteOrchestrationProcessInputMutation(options) {
13
+ return useMutation((mutateProps) => deleteOrchestrationProcessInput(mutateProps), options);
14
+ }
@@ -0,0 +1,24 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface DeleteOrchestrationProcessMutationPathParams {
6
+ identifier: string;
7
+ }
8
+ export interface DeleteOrchestrationProcessMutationQueryParams {
9
+ orgIdentifier?: string;
10
+ projectIdentifier?: string;
11
+ }
12
+ export interface DeleteOrchestrationProcessMutationHeaderParams {
13
+ 'Harness-Account': string;
14
+ }
15
+ export type DeleteOrchestrationProcessOkResponse = ResponseWithPagination<unknown>;
16
+ export type DeleteOrchestrationProcessErrorResponse = ErrorResponseResponse;
17
+ export interface DeleteOrchestrationProcessProps extends DeleteOrchestrationProcessMutationPathParams, Omit<FetcherOptions<DeleteOrchestrationProcessMutationQueryParams, unknown, DeleteOrchestrationProcessMutationHeaderParams>, 'url'> {
18
+ queryParams: DeleteOrchestrationProcessMutationQueryParams;
19
+ }
20
+ export declare function deleteOrchestrationProcess(props: DeleteOrchestrationProcessProps): Promise<DeleteOrchestrationProcessOkResponse>;
21
+ /**
22
+ * Delete an orchestration process by identifier
23
+ */
24
+ export declare function useDeleteOrchestrationProcessMutation(options?: Omit<UseMutationOptions<DeleteOrchestrationProcessOkResponse, DeleteOrchestrationProcessErrorResponse, DeleteOrchestrationProcessProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteOrchestrationProcessOkResponse, import("..").Error, DeleteOrchestrationProcessProps, 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 deleteOrchestrationProcess(props) {
7
+ return fetcher(Object.assign({ url: `/orchestration/process/${props.identifier}`, method: 'DELETE' }, props));
8
+ }
9
+ /**
10
+ * Delete an orchestration process by identifier
11
+ */
12
+ export function useDeleteOrchestrationProcessMutation(options) {
13
+ return useMutation((mutateProps) => deleteOrchestrationProcess(mutateProps), options);
14
+ }
@@ -0,0 +1,28 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ReleaseActionResponseResponse } from '../responses/ReleaseActionResponseResponse';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { ReleaseActionRequest } from '../schemas/ReleaseActionRequest';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface PostReleaseActionMutationPathParams {
8
+ releaseId: string;
9
+ }
10
+ export interface PostReleaseActionMutationQueryParams {
11
+ orgIdentifier?: string;
12
+ projectIdentifier?: string;
13
+ }
14
+ export interface PostReleaseActionMutationHeaderParams {
15
+ 'Harness-Account': string;
16
+ }
17
+ export type PostReleaseActionRequestBody = ReleaseActionRequest;
18
+ export type PostReleaseActionOkResponse = ResponseWithPagination<ReleaseActionResponseResponse>;
19
+ export type PostReleaseActionErrorResponse = ErrorResponseResponse;
20
+ export interface PostReleaseActionProps extends PostReleaseActionMutationPathParams, Omit<FetcherOptions<PostReleaseActionMutationQueryParams, PostReleaseActionRequestBody, PostReleaseActionMutationHeaderParams>, 'url'> {
21
+ queryParams: PostReleaseActionMutationQueryParams;
22
+ body: PostReleaseActionRequestBody;
23
+ }
24
+ export declare function postReleaseAction(props: PostReleaseActionProps): Promise<PostReleaseActionOkResponse>;
25
+ /**
26
+ * Executes an action on a release (e.g., abort)
27
+ */
28
+ export declare function usePostReleaseActionMutation(options?: Omit<UseMutationOptions<PostReleaseActionOkResponse, PostReleaseActionErrorResponse, PostReleaseActionProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<PostReleaseActionOkResponse, import("..").Error, PostReleaseActionProps, 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 postReleaseAction(props) {
7
+ return fetcher(Object.assign({ url: `/release/${props.releaseId}/action`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Executes an action on a release (e.g., abort)
11
+ */
12
+ export function usePostReleaseActionMutation(options) {
13
+ return useMutation((mutateProps) => postReleaseAction(mutateProps), options);
14
+ }
@@ -1,6 +1,12 @@
1
1
  export type { GetPathParamsType, ResponseWithPagination } from './helpers';
2
2
  export type { CreateTaskCommentErrorResponse, CreateTaskCommentMutationPathParams, CreateTaskCommentMutationQueryParams, CreateTaskCommentOkResponse, CreateTaskCommentProps, CreateTaskCommentRequestBody, } from './hooks/useCreateTaskCommentMutation';
3
3
  export { createTaskComment, useCreateTaskCommentMutation, } from './hooks/useCreateTaskCommentMutation';
4
+ export type { DeleteOrchestrationActivityErrorResponse, DeleteOrchestrationActivityMutationPathParams, DeleteOrchestrationActivityMutationQueryParams, DeleteOrchestrationActivityOkResponse, DeleteOrchestrationActivityProps, } from './hooks/useDeleteOrchestrationActivityMutation';
5
+ export { deleteOrchestrationActivity, useDeleteOrchestrationActivityMutation, } from './hooks/useDeleteOrchestrationActivityMutation';
6
+ export type { DeleteOrchestrationProcessInputErrorResponse, DeleteOrchestrationProcessInputMutationPathParams, DeleteOrchestrationProcessInputMutationQueryParams, DeleteOrchestrationProcessInputOkResponse, DeleteOrchestrationProcessInputProps, } from './hooks/useDeleteOrchestrationProcessInputMutation';
7
+ export { deleteOrchestrationProcessInput, useDeleteOrchestrationProcessInputMutation, } from './hooks/useDeleteOrchestrationProcessInputMutation';
8
+ export type { DeleteOrchestrationProcessErrorResponse, DeleteOrchestrationProcessMutationPathParams, DeleteOrchestrationProcessMutationQueryParams, DeleteOrchestrationProcessOkResponse, DeleteOrchestrationProcessProps, } from './hooks/useDeleteOrchestrationProcessMutation';
9
+ export { deleteOrchestrationProcess, useDeleteOrchestrationProcessMutation, } from './hooks/useDeleteOrchestrationProcessMutation';
4
10
  export type { DeleteReleaseGroupErrorResponse, DeleteReleaseGroupMutationPathParams, DeleteReleaseGroupMutationQueryParams, DeleteReleaseGroupOkResponse, DeleteReleaseGroupProps, } from './hooks/useDeleteReleaseGroupMutation';
5
11
  export { deleteReleaseGroup, useDeleteReleaseGroupMutation, } from './hooks/useDeleteReleaseGroupMutation';
6
12
  export type { DeleteTaskCommentErrorResponse, DeleteTaskCommentMutationPathParams, DeleteTaskCommentMutationQueryParams, DeleteTaskCommentOkResponse, DeleteTaskCommentProps, } from './hooks/useDeleteTaskCommentMutation';
@@ -73,6 +79,8 @@ export type { PostOrchestrationProcessInputErrorResponse, PostOrchestrationProce
73
79
  export { postOrchestrationProcessInput, usePostOrchestrationProcessInputMutation, } from './hooks/usePostOrchestrationProcessInputMutation';
74
80
  export type { PostOrchestrationProcessErrorResponse, PostOrchestrationProcessMutationQueryParams, PostOrchestrationProcessOkResponse, PostOrchestrationProcessProps, PostOrchestrationProcessRequestBody, } from './hooks/usePostOrchestrationProcessMutation';
75
81
  export { postOrchestrationProcess, usePostOrchestrationProcessMutation, } from './hooks/usePostOrchestrationProcessMutation';
82
+ export type { PostReleaseActionErrorResponse, PostReleaseActionMutationPathParams, PostReleaseActionMutationQueryParams, PostReleaseActionOkResponse, PostReleaseActionProps, PostReleaseActionRequestBody, } from './hooks/usePostReleaseActionMutation';
83
+ export { postReleaseAction, usePostReleaseActionMutation, } from './hooks/usePostReleaseActionMutation';
76
84
  export type { PostReleaseGroupErrorResponse, PostReleaseGroupMutationQueryParams, PostReleaseGroupOkResponse, PostReleaseGroupProps, PostReleaseGroupRequestBody, } from './hooks/usePostReleaseGroupMutation';
77
85
  export { postReleaseGroup, usePostReleaseGroupMutation } from './hooks/usePostReleaseGroupMutation';
78
86
  export type { PostReleaseSummaryErrorResponse, PostReleaseSummaryMutationQueryParams, PostReleaseSummaryOkResponse, PostReleaseSummaryProps, PostReleaseSummaryRequestBody, } from './hooks/usePostReleaseSummaryMutation';
@@ -134,6 +142,7 @@ export type { OrchestrationActivitySummaryResponseResponse } from './responses/O
134
142
  export type { OrchestrationProcessAttachedReleaseGroupsResponseResponse } from './responses/OrchestrationProcessAttachedReleaseGroupsResponseResponse';
135
143
  export type { OrchestrationProcessInputSummaryResponseResponse } from './responses/OrchestrationProcessInputSummaryResponseResponse';
136
144
  export type { OrchestrationProcessSummaryResponseResponse } from './responses/OrchestrationProcessSummaryResponseResponse';
145
+ export type { ReleaseActionResponseResponse } from './responses/ReleaseActionResponseResponse';
137
146
  export type { ReleaseActivitiesResponseResponse } from './responses/ReleaseActivitiesResponseResponse';
138
147
  export type { ReleaseApprovalsResponseResponse } from './responses/ReleaseApprovalsResponseResponse';
139
148
  export type { ReleaseConflictListResponseResponse } from './responses/ReleaseConflictListResponseResponse';
@@ -190,6 +199,7 @@ export type { OnHoldActivityActionResponse } from './schemas/OnHoldActivityActio
190
199
  export type { OrchestrationActivityManualYaml } from './schemas/OrchestrationActivityManualYaml';
191
200
  export type { OrchestrationActivityPipelineYaml } from './schemas/OrchestrationActivityPipelineYaml';
192
201
  export type { OrchestrationActivityProcessYaml } from './schemas/OrchestrationActivityProcessYaml';
202
+ export type { OrchestrationActivitySubprocessYaml } from './schemas/OrchestrationActivitySubprocessYaml';
193
203
  export type { OrchestrationActivitySummaryDto } from './schemas/OrchestrationActivitySummaryDto';
194
204
  export type { OrchestrationActivityYaml } from './schemas/OrchestrationActivityYaml';
195
205
  export type { OrchestrationActivityYamlDto } from './schemas/OrchestrationActivityYamlDto';
@@ -205,6 +215,8 @@ export type { PhaseInputYaml } from './schemas/PhaseInputYaml';
205
215
  export type { PhaseReleaseInputYaml } from './schemas/PhaseReleaseInputYaml';
206
216
  export type { PipelineActivityInfo } from './schemas/PipelineActivityInfo';
207
217
  export type { ProcessInputSummaryDto } from './schemas/ProcessInputSummaryDto';
218
+ export type { ReleaseActionRequest } from './schemas/ReleaseActionRequest';
219
+ export type { ReleaseActionResponse } from './schemas/ReleaseActionResponse';
208
220
  export type { ReleaseActivity } from './schemas/ReleaseActivity';
209
221
  export type { ReleaseApprovalDto } from './schemas/ReleaseApprovalDto';
210
222
  export type { ReleaseApprovalType } from './schemas/ReleaseApprovalType';
@@ -228,6 +240,8 @@ export type { StepInfoDto } from './schemas/StepInfoDto';
228
240
  export type { StepInfoType } from './schemas/StepInfoType';
229
241
  export type { StringOrBool } from './schemas/StringOrBool';
230
242
  export type { StringOrStringArray } from './schemas/StringOrStringArray';
243
+ export type { SubprocessActivityInfo } from './schemas/SubprocessActivityInfo';
244
+ export type { SubprocessInfo } from './schemas/SubprocessInfo';
231
245
  export type { TaskCommentDto } from './schemas/TaskCommentDto';
232
246
  export type { TaskCommentsListResponseDto } from './schemas/TaskCommentsListResponseDto';
233
247
  export type { TimeRangeDto } from './schemas/TimeRangeDto';
@@ -1,4 +1,7 @@
1
1
  export { createTaskComment, useCreateTaskCommentMutation, } from './hooks/useCreateTaskCommentMutation';
2
+ export { deleteOrchestrationActivity, useDeleteOrchestrationActivityMutation, } from './hooks/useDeleteOrchestrationActivityMutation';
3
+ export { deleteOrchestrationProcessInput, useDeleteOrchestrationProcessInputMutation, } from './hooks/useDeleteOrchestrationProcessInputMutation';
4
+ export { deleteOrchestrationProcess, useDeleteOrchestrationProcessMutation, } from './hooks/useDeleteOrchestrationProcessMutation';
2
5
  export { deleteReleaseGroup, useDeleteReleaseGroupMutation, } from './hooks/useDeleteReleaseGroupMutation';
3
6
  export { deleteTaskComment, useDeleteTaskCommentMutation, } from './hooks/useDeleteTaskCommentMutation';
4
7
  export { getActivityRetryHistoryByIdentifiers, useGetActivityRetryHistoryByIdentifiersQuery, } from './hooks/useGetActivityRetryHistoryByIdentifiersQuery';
@@ -35,6 +38,7 @@ export { postOrchestrationActivity, usePostOrchestrationActivityMutation, } from
35
38
  export { postOrchestrationProcessAttachedReleaseGroups, usePostOrchestrationProcessAttachedReleaseGroupsMutation, } from './hooks/usePostOrchestrationProcessAttachedReleaseGroupsMutation';
36
39
  export { postOrchestrationProcessInput, usePostOrchestrationProcessInputMutation, } from './hooks/usePostOrchestrationProcessInputMutation';
37
40
  export { postOrchestrationProcess, usePostOrchestrationProcessMutation, } from './hooks/usePostOrchestrationProcessMutation';
41
+ export { postReleaseAction, usePostReleaseActionMutation, } from './hooks/usePostReleaseActionMutation';
38
42
  export { postReleaseGroup, usePostReleaseGroupMutation } from './hooks/usePostReleaseGroupMutation';
39
43
  export { postReleaseSummary, usePostReleaseSummaryMutation, } from './hooks/usePostReleaseSummaryMutation';
40
44
  export { putOrchestrationActivity, usePutOrchestrationActivityMutation, } from './hooks/usePutOrchestrationActivityMutation';
@@ -0,0 +1,2 @@
1
+ import type { ReleaseActionResponse } from '../schemas/ReleaseActionResponse';
2
+ export type ReleaseActionResponseResponse = ReleaseActionResponse;
@@ -1,12 +1,14 @@
1
+ import type { ReleaseInputYaml } from '../schemas/ReleaseInputYaml';
1
2
  export interface ActivityInputYaml {
2
3
  /**
3
4
  * Unique identifier for the activity
4
5
  */
5
6
  id: string;
6
7
  /**
7
- * Configuration parameters for the activity
8
+ * process input identifier for the subprocess
8
9
  */
10
+ input?: string;
9
11
  with?: {
10
12
  [key: string]: string;
11
- };
13
+ } | ReleaseInputYaml;
12
14
  }
@@ -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,15 @@
1
+ import type { SubprocessInfo } from '../schemas/SubprocessInfo';
1
2
  export interface OnHoldActivityActionRequest {
2
3
  /**
3
- * The action to perform on the on-hold activity
4
+ * The action to perform on the on-hold activity. Must be 'retry' if retryWith is present.
4
5
  */
5
6
  action: 'ignore' | 'retry';
7
+ /**
8
+ * Specifies the retry mechanism. If present, action must be 'retry'. Currently only SUBPROCESS is supported.
9
+ */
10
+ retryWith?: 'SUBPROCESS';
11
+ /**
12
+ * Subprocess information. Required when retryWith is SUBPROCESS.
13
+ */
14
+ subprocessInfo?: SubprocessInfo;
6
15
  }
@@ -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 {};
@@ -15,6 +15,10 @@ export interface OrchestrationActivityProcessYaml {
15
15
  * Unique identifier for the activity
16
16
  */
17
17
  id: string;
18
+ /**
19
+ * If condition for the activity
20
+ */
21
+ if?: string;
18
22
  /**
19
23
  * Name of the activity
20
24
  */
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Subprocess configuration for orchestration activities
3
+ */
4
+ export interface OrchestrationActivitySubprocessYaml {
5
+ /**
6
+ * Identifier for the subprocess to be run as part of the activity
7
+ */
8
+ id: string;
9
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -1,6 +1,7 @@
1
1
  import type { InputVariable } from '../schemas/InputVariable';
2
2
  import type { OrchestrationActivityManualYaml } from '../schemas/OrchestrationActivityManualYaml';
3
3
  import type { OrchestrationActivityPipelineYaml } from '../schemas/OrchestrationActivityPipelineYaml';
4
+ import type { OrchestrationActivitySubprocessYaml } from '../schemas/OrchestrationActivitySubprocessYaml';
4
5
  export interface OrchestrationActivityYaml {
5
6
  activity: {
6
7
  /**
@@ -29,5 +30,6 @@ export interface OrchestrationActivityYaml {
29
30
  [key: string]: string;
30
31
  };
31
32
  pipeline?: OrchestrationActivityPipelineYaml;
33
+ process?: OrchestrationActivitySubprocessYaml;
32
34
  };
33
35
  }
@@ -1,6 +1,7 @@
1
1
  import type { FailureInfo } from '../schemas/FailureInfo';
2
2
  import type { PipelineActivityInfo } from '../schemas/PipelineActivityInfo';
3
3
  import type { Status } from '../schemas/Status';
4
+ import type { SubprocessActivityInfo } from '../schemas/SubprocessActivityInfo';
4
5
  /**
5
6
  * Represents an activity in the orchestration execution
6
7
  */
@@ -31,6 +32,9 @@ export interface OrchestrationExecutionActivity {
31
32
  * Name of the activity
32
33
  */
33
34
  name: string;
35
+ /**
36
+ * Pipeline execution information for activities
37
+ */
34
38
  pipeline?: PipelineActivityInfo;
35
39
  /**
36
40
  * Retry index of the activity execution
@@ -43,6 +47,10 @@ export interface OrchestrationExecutionActivity {
43
47
  */
44
48
  start_ts?: number;
45
49
  status: Status;
50
+ /**
51
+ * Subprocess execution information for activities
52
+ */
53
+ subprocess?: SubprocessActivityInfo;
46
54
  /**
47
55
  * YAML configuration of the activity
48
56
  */
@@ -14,6 +14,10 @@ export interface OrchestrationPhaseYaml {
14
14
  * Unique identifier for the phase
15
15
  */
16
16
  id: string;
17
+ /**
18
+ * If condition for the phase
19
+ */
20
+ if?: string;
17
21
  /**
18
22
  * Name of the phase
19
23
  */
@@ -0,0 +1,11 @@
1
+ export interface ReleaseActionRequest {
2
+ /**
3
+ * Action to perform on the release
4
+ */
5
+ action: 'Abort';
6
+ /**
7
+ * Message explaining the reason for the action (e.g., why the release is being aborted)
8
+ * @example "Production issue detected - rolling back due to memory leak"
9
+ */
10
+ message: string;
11
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,14 @@
1
+ export interface ReleaseActionResponse {
2
+ /**
3
+ * ID of the release
4
+ */
5
+ id: string;
6
+ /**
7
+ * ID of the execution that was interrupted
8
+ */
9
+ interruptedExecutionId?: string;
10
+ /**
11
+ * New status of the release
12
+ */
13
+ status: string;
14
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Subprocess execution information for activities
3
+ */
4
+ export interface SubprocessActivityInfo {
5
+ /**
6
+ * ID of the subprocess release
7
+ */
8
+ releaseId: string;
9
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,20 @@
1
+ export interface SubprocessInfo {
2
+ /**
3
+ * Output map with key-value pairs.
4
+ */
5
+ output: {
6
+ [key: string]: string;
7
+ };
8
+ /**
9
+ * Process identifier. Required when retryWith is SUBPROCESS.
10
+ */
11
+ processIdentifier: string;
12
+ /**
13
+ * Process input identifier. Required when retryWith is SUBPROCESS.
14
+ */
15
+ processInputIdentifier: string;
16
+ /**
17
+ * Release input YAML. Required when retryWith is SUBPROCESS.
18
+ */
19
+ releaseInput: string;
20
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-rmg-service-client",
3
- "version": "0.32.0",
3
+ "version": "0.34.0",
4
4
  "description": "Harness Release Management Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",