@harnessio/react-rmg-service-client 0.24.0 → 0.26.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 (57) hide show
  1. package/dist/rmg-service/src/services/hooks/useCreateTaskCommentMutation.d.ts +32 -0
  2. package/dist/rmg-service/src/services/hooks/useCreateTaskCommentMutation.js +14 -0
  3. package/dist/rmg-service/src/services/hooks/useDeleteTaskCommentMutation.d.ts +24 -0
  4. package/dist/rmg-service/src/services/hooks/useDeleteTaskCommentMutation.js +14 -0
  5. package/dist/rmg-service/src/services/hooks/useGetOrchestrationActivitiesByAcitivityRefsMutation.d.ts +1 -1
  6. package/dist/rmg-service/src/services/hooks/useGetOrchestrationActivitiesByAcitivityRefsMutation.js +1 -1
  7. package/dist/rmg-service/src/services/hooks/useGetOrchestrationActivitySummaryQuery.d.ts +26 -0
  8. package/dist/rmg-service/src/services/hooks/useGetOrchestrationActivitySummaryQuery.js +14 -0
  9. package/dist/rmg-service/src/services/hooks/useGetOrchestrationExecutionTasksQuery.d.ts +28 -0
  10. package/dist/rmg-service/src/services/hooks/useGetOrchestrationExecutionTasksQuery.js +20 -0
  11. package/dist/rmg-service/src/services/hooks/useGetTaskCommentsSummaryQuery.d.ts +30 -0
  12. package/dist/rmg-service/src/services/hooks/useGetTaskCommentsSummaryQuery.js +14 -0
  13. package/dist/rmg-service/src/services/hooks/useUpdateExecutionTaskMetadataMutation.d.ts +36 -0
  14. package/dist/rmg-service/src/services/hooks/useUpdateExecutionTaskMetadataMutation.js +14 -0
  15. package/dist/rmg-service/src/services/hooks/useUpdateExecutionTaskStatusMutation.d.ts +33 -0
  16. package/dist/rmg-service/src/services/hooks/useUpdateExecutionTaskStatusMutation.js +14 -0
  17. package/dist/rmg-service/src/services/hooks/useUpdateTaskCommentMutation.d.ts +32 -0
  18. package/dist/rmg-service/src/services/hooks/useUpdateTaskCommentMutation.js +14 -0
  19. package/dist/rmg-service/src/services/index.d.ts +33 -0
  20. package/dist/rmg-service/src/services/index.js +8 -0
  21. package/dist/rmg-service/src/services/responses/CreateTaskCommentResponseResponse.d.ts +6 -0
  22. package/dist/rmg-service/src/services/responses/CreateTaskCommentResponseResponse.js +4 -0
  23. package/dist/rmg-service/src/services/responses/ExecutionTasksListResponseResponse.d.ts +7 -0
  24. package/dist/rmg-service/src/services/responses/ExecutionTasksListResponseResponse.js +1 -0
  25. package/dist/rmg-service/src/services/responses/OrchestrationActivitySummaryResponseResponse.d.ts +16 -0
  26. package/dist/rmg-service/src/services/responses/OrchestrationActivitySummaryResponseResponse.js +1 -0
  27. package/dist/rmg-service/src/services/responses/TaskCommentsListResponseResponse.d.ts +2 -0
  28. package/dist/rmg-service/src/services/responses/TaskCommentsListResponseResponse.js +1 -0
  29. package/dist/rmg-service/src/services/responses/UpdateExecutionTaskMetadataResponseResponse.d.ts +6 -0
  30. package/dist/rmg-service/src/services/responses/UpdateExecutionTaskMetadataResponseResponse.js +4 -0
  31. package/dist/rmg-service/src/services/responses/UpdateExecutionTaskStatusResponseResponse.d.ts +8 -0
  32. package/dist/rmg-service/src/services/responses/UpdateExecutionTaskStatusResponseResponse.js +1 -0
  33. package/dist/rmg-service/src/services/responses/UpdateTaskCommentResponseResponse.d.ts +6 -0
  34. package/dist/rmg-service/src/services/responses/UpdateTaskCommentResponseResponse.js +4 -0
  35. package/dist/rmg-service/src/services/schemas/CommentedByDto.d.ts +10 -0
  36. package/dist/rmg-service/src/services/schemas/CommentedByDto.js +4 -0
  37. package/dist/rmg-service/src/services/schemas/ExecutionTaskDto.d.ts +55 -0
  38. package/dist/rmg-service/src/services/schemas/ExecutionTaskDto.js +1 -0
  39. package/dist/rmg-service/src/services/schemas/ExecutionTaskStatus.d.ts +4 -0
  40. package/dist/rmg-service/src/services/schemas/ExecutionTaskStatus.js +4 -0
  41. package/dist/rmg-service/src/services/schemas/ManualTaskYaml.d.ts +33 -0
  42. package/dist/rmg-service/src/services/schemas/ManualTaskYaml.js +4 -0
  43. package/dist/rmg-service/src/services/schemas/OrchestrationActivityManualYaml.d.ts +10 -0
  44. package/dist/rmg-service/src/services/schemas/OrchestrationActivityManualYaml.js +1 -0
  45. package/dist/rmg-service/src/services/schemas/OrchestrationActivitySummaryDto.d.ts +23 -0
  46. package/dist/rmg-service/src/services/schemas/OrchestrationActivitySummaryDto.js +1 -0
  47. package/dist/rmg-service/src/services/schemas/OrchestrationActivityYaml.d.ts +2 -0
  48. package/dist/rmg-service/src/services/schemas/OrchestrationExecutionActivity.d.ts +4 -0
  49. package/dist/rmg-service/src/services/schemas/StringOrBool.d.ts +4 -0
  50. package/dist/rmg-service/src/services/schemas/StringOrBool.js +4 -0
  51. package/dist/rmg-service/src/services/schemas/StringOrStringArray.d.ts +4 -0
  52. package/dist/rmg-service/src/services/schemas/StringOrStringArray.js +4 -0
  53. package/dist/rmg-service/src/services/schemas/TaskCommentDto.d.ts +32 -0
  54. package/dist/rmg-service/src/services/schemas/TaskCommentDto.js +1 -0
  55. package/dist/rmg-service/src/services/schemas/TaskCommentsListResponseDto.d.ts +16 -0
  56. package/dist/rmg-service/src/services/schemas/TaskCommentsListResponseDto.js +1 -0
  57. package/package.json +1 -1
@@ -0,0 +1,32 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { CreateTaskCommentResponseResponse } from '../responses/CreateTaskCommentResponseResponse';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface CreateTaskCommentMutationPathParams {
7
+ taskExecutionId: string;
8
+ }
9
+ export interface CreateTaskCommentMutationQueryParams {
10
+ orgIdentifier?: string;
11
+ projectIdentifier?: string;
12
+ }
13
+ export interface CreateTaskCommentMutationHeaderParams {
14
+ 'Harness-Account': string;
15
+ }
16
+ export type CreateTaskCommentRequestBody = {
17
+ /**
18
+ * The comment text
19
+ */
20
+ comment: string;
21
+ };
22
+ export type CreateTaskCommentOkResponse = ResponseWithPagination<CreateTaskCommentResponseResponse>;
23
+ export type CreateTaskCommentErrorResponse = ErrorResponseResponse;
24
+ export interface CreateTaskCommentProps extends CreateTaskCommentMutationPathParams, Omit<FetcherOptions<CreateTaskCommentMutationQueryParams, CreateTaskCommentRequestBody, CreateTaskCommentMutationHeaderParams>, 'url'> {
25
+ queryParams: CreateTaskCommentMutationQueryParams;
26
+ body: CreateTaskCommentRequestBody;
27
+ }
28
+ export declare function createTaskComment(props: CreateTaskCommentProps): Promise<CreateTaskCommentOkResponse>;
29
+ /**
30
+ * Create a new comment for a specific execution task
31
+ */
32
+ export declare function useCreateTaskCommentMutation(options?: Omit<UseMutationOptions<CreateTaskCommentOkResponse, CreateTaskCommentErrorResponse, CreateTaskCommentProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateTaskCommentOkResponse, import("..").Error, CreateTaskCommentProps, 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 createTaskComment(props) {
7
+ return fetcher(Object.assign({ url: `/orchestration/execution/task/${props.taskExecutionId}/comment`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Create a new comment for a specific execution task
11
+ */
12
+ export function useCreateTaskCommentMutation(options) {
13
+ return useMutation((mutateProps) => createTaskComment(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 DeleteTaskCommentMutationPathParams {
6
+ commentId: string;
7
+ }
8
+ export interface DeleteTaskCommentMutationQueryParams {
9
+ orgIdentifier?: string;
10
+ projectIdentifier?: string;
11
+ }
12
+ export interface DeleteTaskCommentMutationHeaderParams {
13
+ 'Harness-Account': string;
14
+ }
15
+ export type DeleteTaskCommentOkResponse = ResponseWithPagination<unknown>;
16
+ export type DeleteTaskCommentErrorResponse = ErrorResponseResponse;
17
+ export interface DeleteTaskCommentProps extends DeleteTaskCommentMutationPathParams, Omit<FetcherOptions<DeleteTaskCommentMutationQueryParams, unknown, DeleteTaskCommentMutationHeaderParams>, 'url'> {
18
+ queryParams: DeleteTaskCommentMutationQueryParams;
19
+ }
20
+ export declare function deleteTaskComment(props: DeleteTaskCommentProps): Promise<DeleteTaskCommentOkResponse>;
21
+ /**
22
+ * Delete a specific task comment
23
+ */
24
+ export declare function useDeleteTaskCommentMutation(options?: Omit<UseMutationOptions<DeleteTaskCommentOkResponse, DeleteTaskCommentErrorResponse, DeleteTaskCommentProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteTaskCommentOkResponse, import("..").Error, DeleteTaskCommentProps, 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 deleteTaskComment(props) {
7
+ return fetcher(Object.assign({ url: `/orchestration/execution/task/comment/${props.commentId}`, method: 'DELETE' }, props));
8
+ }
9
+ /**
10
+ * Delete a specific task comment
11
+ */
12
+ export function useDeleteTaskCommentMutation(options) {
13
+ return useMutation((mutateProps) => deleteTaskComment(mutateProps), options);
14
+ }
@@ -29,6 +29,6 @@ export interface GetOrchestrationActivitiesByAcitivityRefsProps extends Omit<Fet
29
29
  }
30
30
  export declare function getOrchestrationActivitiesByAcitivityRefs(props: GetOrchestrationActivitiesByAcitivityRefsProps): Promise<GetOrchestrationActivitiesByAcitivityRefsOkResponse>;
31
31
  /**
32
- * Get orchestration activities for a specific process identifier
32
+ * Get orchestration activities for specific activity refs
33
33
  */
34
34
  export declare function useGetOrchestrationActivitiesByAcitivityRefsMutation(options?: Omit<UseMutationOptions<GetOrchestrationActivitiesByAcitivityRefsOkResponse, GetOrchestrationActivitiesByAcitivityRefsErrorResponse, GetOrchestrationActivitiesByAcitivityRefsProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetOrchestrationActivitiesByAcitivityRefsOkResponse, import("..").Error, GetOrchestrationActivitiesByAcitivityRefsProps, unknown>;
@@ -7,7 +7,7 @@ export function getOrchestrationActivitiesByAcitivityRefs(props) {
7
7
  return fetcher(Object.assign({ url: `/orchestration/activity/list`, method: 'POST' }, props));
8
8
  }
9
9
  /**
10
- * Get orchestration activities for a specific process identifier
10
+ * Get orchestration activities for specific activity refs
11
11
  */
12
12
  export function useGetOrchestrationActivitiesByAcitivityRefsMutation(options) {
13
13
  return useMutation((mutateProps) => getOrchestrationActivitiesByAcitivityRefs(mutateProps), options);
@@ -0,0 +1,26 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { OrchestrationActivitySummaryResponseResponse } from '../responses/OrchestrationActivitySummaryResponseResponse';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetOrchestrationActivitySummaryQueryQueryParams {
7
+ orgIdentifier?: string;
8
+ projectIdentifier?: string;
9
+ page?: number;
10
+ size?: number;
11
+ sort?: string[];
12
+ searchTerm?: string;
13
+ }
14
+ export interface GetOrchestrationActivitySummaryQueryHeaderParams {
15
+ 'Harness-Account': string;
16
+ }
17
+ export type GetOrchestrationActivitySummaryOkResponse = ResponseWithPagination<OrchestrationActivitySummaryResponseResponse>;
18
+ export type GetOrchestrationActivitySummaryErrorResponse = ErrorResponseResponse;
19
+ export interface GetOrchestrationActivitySummaryProps extends Omit<FetcherOptions<GetOrchestrationActivitySummaryQueryQueryParams, unknown, GetOrchestrationActivitySummaryQueryHeaderParams>, 'url'> {
20
+ queryParams: GetOrchestrationActivitySummaryQueryQueryParams;
21
+ }
22
+ export declare function getOrchestrationActivitySummary(props: GetOrchestrationActivitySummaryProps): Promise<GetOrchestrationActivitySummaryOkResponse>;
23
+ /**
24
+ * Retrieve a paginated list of orchestration activities
25
+ */
26
+ export declare function useGetOrchestrationActivitySummaryQuery(props: GetOrchestrationActivitySummaryProps, options?: Omit<UseQueryOptions<GetOrchestrationActivitySummaryOkResponse, GetOrchestrationActivitySummaryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetOrchestrationActivitySummaryOkResponse, import("..").Error>;
@@ -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 { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function getOrchestrationActivitySummary(props) {
7
+ return fetcher(Object.assign({ url: `/orchestration/activity/summary`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Retrieve a paginated list of orchestration activities
11
+ */
12
+ export function useGetOrchestrationActivitySummaryQuery(props, options) {
13
+ return useQuery(['get-orchestration-activity-summary', props.queryParams], ({ signal }) => getOrchestrationActivitySummary(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,28 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ExecutionTasksListResponseResponse } from '../responses/ExecutionTasksListResponseResponse';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetOrchestrationExecutionTasksQueryPathParams {
7
+ releaseId: string;
8
+ phaseIdentifier: string;
9
+ activityIdentifier: string;
10
+ }
11
+ export interface GetOrchestrationExecutionTasksQueryQueryParams {
12
+ activityExecutionId?: string;
13
+ orgIdentifier?: string;
14
+ projectIdentifier?: string;
15
+ }
16
+ export interface GetOrchestrationExecutionTasksQueryHeaderParams {
17
+ 'Harness-Account': string;
18
+ }
19
+ export type GetOrchestrationExecutionTasksOkResponse = ResponseWithPagination<ExecutionTasksListResponseResponse>;
20
+ export type GetOrchestrationExecutionTasksErrorResponse = ErrorResponseResponse;
21
+ export interface GetOrchestrationExecutionTasksProps extends GetOrchestrationExecutionTasksQueryPathParams, Omit<FetcherOptions<GetOrchestrationExecutionTasksQueryQueryParams, unknown, GetOrchestrationExecutionTasksQueryHeaderParams>, 'url'> {
22
+ queryParams: GetOrchestrationExecutionTasksQueryQueryParams;
23
+ }
24
+ export declare function getOrchestrationExecutionTasks(props: GetOrchestrationExecutionTasksProps): Promise<GetOrchestrationExecutionTasksOkResponse>;
25
+ /**
26
+ * Retrieve all orchestration execution tasks for a specific activity in a release phase
27
+ */
28
+ export declare function useGetOrchestrationExecutionTasksQuery(props: GetOrchestrationExecutionTasksProps, options?: Omit<UseQueryOptions<GetOrchestrationExecutionTasksOkResponse, GetOrchestrationExecutionTasksErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetOrchestrationExecutionTasksOkResponse, import("..").Error>;
@@ -0,0 +1,20 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function getOrchestrationExecutionTasks(props) {
7
+ return fetcher(Object.assign({ url: `/orchestration/execution/${props.releaseId}/phase/${props.phaseIdentifier}/activity/${props.activityIdentifier}/tasks`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Retrieve all orchestration execution tasks for a specific activity in a release phase
11
+ */
12
+ export function useGetOrchestrationExecutionTasksQuery(props, options) {
13
+ return useQuery([
14
+ 'get-orchestration-execution-tasks',
15
+ props.releaseId,
16
+ props.phaseIdentifier,
17
+ props.activityIdentifier,
18
+ props.queryParams,
19
+ ], ({ signal }) => getOrchestrationExecutionTasks(Object.assign(Object.assign({}, props), { signal })), options);
20
+ }
@@ -0,0 +1,30 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { TaskCommentsListResponseResponse } from '../responses/TaskCommentsListResponseResponse';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetTaskCommentsSummaryQueryPathParams {
7
+ taskExecutionId: string;
8
+ }
9
+ export interface GetTaskCommentsSummaryQueryQueryParams {
10
+ orgIdentifier?: string;
11
+ projectIdentifier?: string;
12
+ cursor?: string;
13
+ /**
14
+ * @default 500
15
+ */
16
+ limit?: number;
17
+ }
18
+ export interface GetTaskCommentsSummaryQueryHeaderParams {
19
+ 'Harness-Account': string;
20
+ }
21
+ export type GetTaskCommentsSummaryOkResponse = ResponseWithPagination<TaskCommentsListResponseResponse>;
22
+ export type GetTaskCommentsSummaryErrorResponse = ErrorResponseResponse;
23
+ export interface GetTaskCommentsSummaryProps extends GetTaskCommentsSummaryQueryPathParams, Omit<FetcherOptions<GetTaskCommentsSummaryQueryQueryParams, unknown, GetTaskCommentsSummaryQueryHeaderParams>, 'url'> {
24
+ queryParams: GetTaskCommentsSummaryQueryQueryParams;
25
+ }
26
+ export declare function getTaskCommentsSummary(props: GetTaskCommentsSummaryProps): Promise<GetTaskCommentsSummaryOkResponse>;
27
+ /**
28
+ * Retrieve a cursor based paginated list of comments for a specific execution task
29
+ */
30
+ export declare function useGetTaskCommentsSummaryQuery(props: GetTaskCommentsSummaryProps, options?: Omit<UseQueryOptions<GetTaskCommentsSummaryOkResponse, GetTaskCommentsSummaryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetTaskCommentsSummaryOkResponse, import("..").Error>;
@@ -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 { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function getTaskCommentsSummary(props) {
7
+ return fetcher(Object.assign({ url: `/orchestration/execution/task/${props.taskExecutionId}/comment/summary`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Retrieve a cursor based paginated list of comments for a specific execution task
11
+ */
12
+ export function useGetTaskCommentsSummaryQuery(props, options) {
13
+ return useQuery(['getTaskCommentsSummary', props.taskExecutionId, props.queryParams], ({ signal }) => getTaskCommentsSummary(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,36 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { UpdateExecutionTaskMetadataResponseResponse } from '../responses/UpdateExecutionTaskMetadataResponseResponse';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface UpdateExecutionTaskMetadataMutationPathParams {
7
+ taskExecutionId: string;
8
+ }
9
+ export interface UpdateExecutionTaskMetadataMutationQueryParams {
10
+ orgIdentifier?: string;
11
+ projectIdentifier?: string;
12
+ }
13
+ export interface UpdateExecutionTaskMetadataMutationHeaderParams {
14
+ 'Harness-Account': string;
15
+ }
16
+ export type UpdateExecutionTaskMetadataRequestBody = {
17
+ /**
18
+ * Updated description for the task
19
+ */
20
+ description?: string;
21
+ /**
22
+ * Updated name for the task
23
+ */
24
+ name?: string;
25
+ };
26
+ export type UpdateExecutionTaskMetadataOkResponse = ResponseWithPagination<UpdateExecutionTaskMetadataResponseResponse>;
27
+ export type UpdateExecutionTaskMetadataErrorResponse = ErrorResponseResponse;
28
+ export interface UpdateExecutionTaskMetadataProps extends UpdateExecutionTaskMetadataMutationPathParams, Omit<FetcherOptions<UpdateExecutionTaskMetadataMutationQueryParams, UpdateExecutionTaskMetadataRequestBody, UpdateExecutionTaskMetadataMutationHeaderParams>, 'url'> {
29
+ queryParams: UpdateExecutionTaskMetadataMutationQueryParams;
30
+ body: UpdateExecutionTaskMetadataRequestBody;
31
+ }
32
+ export declare function updateExecutionTaskMetadata(props: UpdateExecutionTaskMetadataProps): Promise<UpdateExecutionTaskMetadataOkResponse>;
33
+ /**
34
+ * Update the metadata (name and description) of a specific execution task
35
+ */
36
+ export declare function useUpdateExecutionTaskMetadataMutation(options?: Omit<UseMutationOptions<UpdateExecutionTaskMetadataOkResponse, UpdateExecutionTaskMetadataErrorResponse, UpdateExecutionTaskMetadataProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateExecutionTaskMetadataOkResponse, import("..").Error, UpdateExecutionTaskMetadataProps, 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 updateExecutionTaskMetadata(props) {
7
+ return fetcher(Object.assign({ url: `/orchestration/execution/task/${props.taskExecutionId}/metadata`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * Update the metadata (name and description) of a specific execution task
11
+ */
12
+ export function useUpdateExecutionTaskMetadataMutation(options) {
13
+ return useMutation((mutateProps) => updateExecutionTaskMetadata(mutateProps), options);
14
+ }
@@ -0,0 +1,33 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { UpdateExecutionTaskStatusResponseResponse } from '../responses/UpdateExecutionTaskStatusResponseResponse';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { ExecutionTaskStatus } from '../schemas/ExecutionTaskStatus';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface UpdateExecutionTaskStatusMutationPathParams {
8
+ taskExecutionId: string;
9
+ }
10
+ export interface UpdateExecutionTaskStatusMutationQueryParams {
11
+ orgIdentifier?: string;
12
+ projectIdentifier?: string;
13
+ }
14
+ export interface UpdateExecutionTaskStatusMutationHeaderParams {
15
+ 'Harness-Account': string;
16
+ }
17
+ export type UpdateExecutionTaskStatusRequestBody = {
18
+ /**
19
+ * The new status for the task
20
+ */
21
+ status: ExecutionTaskStatus;
22
+ };
23
+ export type UpdateExecutionTaskStatusOkResponse = ResponseWithPagination<UpdateExecutionTaskStatusResponseResponse>;
24
+ export type UpdateExecutionTaskStatusErrorResponse = ErrorResponseResponse;
25
+ export interface UpdateExecutionTaskStatusProps extends UpdateExecutionTaskStatusMutationPathParams, Omit<FetcherOptions<UpdateExecutionTaskStatusMutationQueryParams, UpdateExecutionTaskStatusRequestBody, UpdateExecutionTaskStatusMutationHeaderParams>, 'url'> {
26
+ queryParams: UpdateExecutionTaskStatusMutationQueryParams;
27
+ body: UpdateExecutionTaskStatusRequestBody;
28
+ }
29
+ export declare function updateExecutionTaskStatus(props: UpdateExecutionTaskStatusProps): Promise<UpdateExecutionTaskStatusOkResponse>;
30
+ /**
31
+ * Update the status of a specific execution task
32
+ */
33
+ export declare function useUpdateExecutionTaskStatusMutation(options?: Omit<UseMutationOptions<UpdateExecutionTaskStatusOkResponse, UpdateExecutionTaskStatusErrorResponse, UpdateExecutionTaskStatusProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateExecutionTaskStatusOkResponse, import("..").Error, UpdateExecutionTaskStatusProps, 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 updateExecutionTaskStatus(props) {
7
+ return fetcher(Object.assign({ url: `/orchestration/execution/task/${props.taskExecutionId}/status`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * Update the status of a specific execution task
11
+ */
12
+ export function useUpdateExecutionTaskStatusMutation(options) {
13
+ return useMutation((mutateProps) => updateExecutionTaskStatus(mutateProps), options);
14
+ }
@@ -0,0 +1,32 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { UpdateTaskCommentResponseResponse } from '../responses/UpdateTaskCommentResponseResponse';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface UpdateTaskCommentMutationPathParams {
7
+ commentId: string;
8
+ }
9
+ export interface UpdateTaskCommentMutationQueryParams {
10
+ orgIdentifier?: string;
11
+ projectIdentifier?: string;
12
+ }
13
+ export interface UpdateTaskCommentMutationHeaderParams {
14
+ 'Harness-Account': string;
15
+ }
16
+ export type UpdateTaskCommentRequestBody = {
17
+ /**
18
+ * The updated comment text
19
+ */
20
+ comment: string;
21
+ };
22
+ export type UpdateTaskCommentOkResponse = ResponseWithPagination<UpdateTaskCommentResponseResponse>;
23
+ export type UpdateTaskCommentErrorResponse = ErrorResponseResponse;
24
+ export interface UpdateTaskCommentProps extends UpdateTaskCommentMutationPathParams, Omit<FetcherOptions<UpdateTaskCommentMutationQueryParams, UpdateTaskCommentRequestBody, UpdateTaskCommentMutationHeaderParams>, 'url'> {
25
+ queryParams: UpdateTaskCommentMutationQueryParams;
26
+ body: UpdateTaskCommentRequestBody;
27
+ }
28
+ export declare function updateTaskComment(props: UpdateTaskCommentProps): Promise<UpdateTaskCommentOkResponse>;
29
+ /**
30
+ * Update an existing task comment
31
+ */
32
+ export declare function useUpdateTaskCommentMutation(options?: Omit<UseMutationOptions<UpdateTaskCommentOkResponse, UpdateTaskCommentErrorResponse, UpdateTaskCommentProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateTaskCommentOkResponse, import("..").Error, UpdateTaskCommentProps, 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 updateTaskComment(props) {
7
+ return fetcher(Object.assign({ url: `/orchestration/execution/task/comment/${props.commentId}`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * Update an existing task comment
11
+ */
12
+ export function useUpdateTaskCommentMutation(options) {
13
+ return useMutation((mutateProps) => updateTaskComment(mutateProps), options);
14
+ }
@@ -1,6 +1,10 @@
1
1
  export type { GetPathParamsType, ResponseWithPagination } from './helpers';
2
+ export type { CreateTaskCommentErrorResponse, CreateTaskCommentMutationPathParams, CreateTaskCommentMutationQueryParams, CreateTaskCommentOkResponse, CreateTaskCommentProps, CreateTaskCommentRequestBody, } from './hooks/useCreateTaskCommentMutation';
3
+ export { createTaskComment, useCreateTaskCommentMutation, } from './hooks/useCreateTaskCommentMutation';
2
4
  export type { DeleteReleaseGroupErrorResponse, DeleteReleaseGroupMutationPathParams, DeleteReleaseGroupMutationQueryParams, DeleteReleaseGroupOkResponse, DeleteReleaseGroupProps, } from './hooks/useDeleteReleaseGroupMutation';
3
5
  export { deleteReleaseGroup, useDeleteReleaseGroupMutation, } from './hooks/useDeleteReleaseGroupMutation';
6
+ export type { DeleteTaskCommentErrorResponse, DeleteTaskCommentMutationPathParams, DeleteTaskCommentMutationQueryParams, DeleteTaskCommentOkResponse, DeleteTaskCommentProps, } from './hooks/useDeleteTaskCommentMutation';
7
+ export { deleteTaskComment, useDeleteTaskCommentMutation, } from './hooks/useDeleteTaskCommentMutation';
4
8
  export type { GetFreezeDetailsErrorResponse, GetFreezeDetailsOkResponse, GetFreezeDetailsProps, GetFreezeDetailsQueryPathParams, GetFreezeDetailsQueryQueryParams, } from './hooks/useGetFreezeDetailsQuery';
5
9
  export { getFreezeDetails, useGetFreezeDetailsQuery } from './hooks/useGetFreezeDetailsQuery';
6
10
  export type { GetFreezeListErrorResponse, GetFreezeListOkResponse, GetFreezeListProps, GetFreezeListQueryQueryParams, } from './hooks/useGetFreezeListQuery';
@@ -13,10 +17,14 @@ export type { GetOrchestrationActivityInputsErrorResponse, GetOrchestrationActiv
13
17
  export { getOrchestrationActivityInputs, useGetOrchestrationActivityInputsQuery, } from './hooks/useGetOrchestrationActivityInputsQuery';
14
18
  export type { GetOrchestrationActivityErrorResponse, GetOrchestrationActivityOkResponse, GetOrchestrationActivityProps, GetOrchestrationActivityQueryPathParams, GetOrchestrationActivityQueryQueryParams, } from './hooks/useGetOrchestrationActivityQuery';
15
19
  export { getOrchestrationActivity, useGetOrchestrationActivityQuery, } from './hooks/useGetOrchestrationActivityQuery';
20
+ export type { GetOrchestrationActivitySummaryErrorResponse, GetOrchestrationActivitySummaryOkResponse, GetOrchestrationActivitySummaryProps, GetOrchestrationActivitySummaryQueryQueryParams, } from './hooks/useGetOrchestrationActivitySummaryQuery';
21
+ export { getOrchestrationActivitySummary, useGetOrchestrationActivitySummaryQuery, } from './hooks/useGetOrchestrationActivitySummaryQuery';
16
22
  export type { GetOrchestrationExecutionActivitiesErrorResponse, GetOrchestrationExecutionActivitiesOkResponse, GetOrchestrationExecutionActivitiesProps, GetOrchestrationExecutionActivitiesQueryPathParams, GetOrchestrationExecutionActivitiesQueryQueryParams, } from './hooks/useGetOrchestrationExecutionActivitiesQuery';
17
23
  export { getOrchestrationExecutionActivities, useGetOrchestrationExecutionActivitiesQuery, } from './hooks/useGetOrchestrationExecutionActivitiesQuery';
18
24
  export type { GetOrchestrationExecutionPhasesErrorResponse, GetOrchestrationExecutionPhasesOkResponse, GetOrchestrationExecutionPhasesProps, GetOrchestrationExecutionPhasesQueryPathParams, GetOrchestrationExecutionPhasesQueryQueryParams, } from './hooks/useGetOrchestrationExecutionPhasesQuery';
19
25
  export { getOrchestrationExecutionPhases, useGetOrchestrationExecutionPhasesQuery, } from './hooks/useGetOrchestrationExecutionPhasesQuery';
26
+ export type { GetOrchestrationExecutionTasksErrorResponse, GetOrchestrationExecutionTasksOkResponse, GetOrchestrationExecutionTasksProps, GetOrchestrationExecutionTasksQueryPathParams, GetOrchestrationExecutionTasksQueryQueryParams, } from './hooks/useGetOrchestrationExecutionTasksQuery';
27
+ export { getOrchestrationExecutionTasks, useGetOrchestrationExecutionTasksQuery, } from './hooks/useGetOrchestrationExecutionTasksQuery';
20
28
  export type { GetOrchestrationProcessInputErrorResponse, GetOrchestrationProcessInputOkResponse, GetOrchestrationProcessInputProps, GetOrchestrationProcessInputQueryPathParams, GetOrchestrationProcessInputQueryQueryParams, } from './hooks/useGetOrchestrationProcessInputQuery';
21
29
  export { getOrchestrationProcessInput, useGetOrchestrationProcessInputQuery, } from './hooks/useGetOrchestrationProcessInputQuery';
22
30
  export type { GetOrchestrationProcessInputSummaryErrorResponse, GetOrchestrationProcessInputSummaryOkResponse, GetOrchestrationProcessInputSummaryProps, GetOrchestrationProcessInputSummaryQueryPathParams, GetOrchestrationProcessInputSummaryQueryQueryParams, } from './hooks/useGetOrchestrationProcessInputSummaryQuery';
@@ -45,6 +53,8 @@ export type { GetReleaseReleaseIdEnvironmentDashboardErrorResponse, GetReleaseRe
45
53
  export { getReleaseReleaseIdEnvironmentDashboard, useGetReleaseReleaseIdEnvironmentDashboardQuery, } from './hooks/useGetReleaseReleaseIdEnvironmentDashboardQuery';
46
54
  export type { GetReleaseReleaseIdEnvironmentsErrorResponse, GetReleaseReleaseIdEnvironmentsOkResponse, GetReleaseReleaseIdEnvironmentsProps, GetReleaseReleaseIdEnvironmentsQueryPathParams, GetReleaseReleaseIdEnvironmentsQueryQueryParams, } from './hooks/useGetReleaseReleaseIdEnvironmentsQuery';
47
55
  export { getReleaseReleaseIdEnvironments, useGetReleaseReleaseIdEnvironmentsQuery, } from './hooks/useGetReleaseReleaseIdEnvironmentsQuery';
56
+ export type { GetTaskCommentsSummaryErrorResponse, GetTaskCommentsSummaryOkResponse, GetTaskCommentsSummaryProps, GetTaskCommentsSummaryQueryPathParams, GetTaskCommentsSummaryQueryQueryParams, } from './hooks/useGetTaskCommentsSummaryQuery';
57
+ export { getTaskCommentsSummary, useGetTaskCommentsSummaryQuery, } from './hooks/useGetTaskCommentsSummaryQuery';
48
58
  export type { PostOrchestrationActivityErrorResponse, PostOrchestrationActivityMutationQueryParams, PostOrchestrationActivityOkResponse, PostOrchestrationActivityProps, PostOrchestrationActivityRequestBody, } from './hooks/usePostOrchestrationActivityMutation';
49
59
  export { postOrchestrationActivity, usePostOrchestrationActivityMutation, } from './hooks/usePostOrchestrationActivityMutation';
50
60
  export type { PostOrchestrationProcessAttachedReleaseGroupsErrorResponse, PostOrchestrationProcessAttachedReleaseGroupsMutationPathParams, PostOrchestrationProcessAttachedReleaseGroupsMutationQueryParams, PostOrchestrationProcessAttachedReleaseGroupsOkResponse, PostOrchestrationProcessAttachedReleaseGroupsProps, PostOrchestrationProcessAttachedReleaseGroupsRequestBody, } from './hooks/usePostOrchestrationProcessAttachedReleaseGroupsMutation';
@@ -69,8 +79,14 @@ export type { PutReleaseReleaseIdErrorResponse, PutReleaseReleaseIdMutationPathP
69
79
  export { putReleaseReleaseId, usePutReleaseReleaseIdMutation, } from './hooks/usePutReleaseReleaseIdMutation';
70
80
  export type { StartReleaseExecutionErrorResponse, StartReleaseExecutionMutationPathParams, StartReleaseExecutionMutationQueryParams, StartReleaseExecutionOkResponse, StartReleaseExecutionProps, StartReleaseExecutionRequestBody, } from './hooks/useStartReleaseExecutionMutation';
71
81
  export { startReleaseExecution, useStartReleaseExecutionMutation, } from './hooks/useStartReleaseExecutionMutation';
82
+ export type { UpdateExecutionTaskMetadataErrorResponse, UpdateExecutionTaskMetadataMutationPathParams, UpdateExecutionTaskMetadataMutationQueryParams, UpdateExecutionTaskMetadataOkResponse, UpdateExecutionTaskMetadataProps, UpdateExecutionTaskMetadataRequestBody, } from './hooks/useUpdateExecutionTaskMetadataMutation';
83
+ export { updateExecutionTaskMetadata, useUpdateExecutionTaskMetadataMutation, } from './hooks/useUpdateExecutionTaskMetadataMutation';
84
+ export type { UpdateExecutionTaskStatusErrorResponse, UpdateExecutionTaskStatusMutationPathParams, UpdateExecutionTaskStatusMutationQueryParams, UpdateExecutionTaskStatusOkResponse, UpdateExecutionTaskStatusProps, UpdateExecutionTaskStatusRequestBody, } from './hooks/useUpdateExecutionTaskStatusMutation';
85
+ export { updateExecutionTaskStatus, useUpdateExecutionTaskStatusMutation, } from './hooks/useUpdateExecutionTaskStatusMutation';
72
86
  export type { UpdateReleaseConflictErrorResponse, UpdateReleaseConflictMutationPathParams, UpdateReleaseConflictOkResponse, UpdateReleaseConflictProps, UpdateReleaseConflictRequestBody, } from './hooks/useUpdateReleaseConflictMutation';
73
87
  export { updateReleaseConflict, useUpdateReleaseConflictMutation, } from './hooks/useUpdateReleaseConflictMutation';
88
+ export type { UpdateTaskCommentErrorResponse, UpdateTaskCommentMutationPathParams, UpdateTaskCommentMutationQueryParams, UpdateTaskCommentOkResponse, UpdateTaskCommentProps, UpdateTaskCommentRequestBody, } from './hooks/useUpdateTaskCommentMutation';
89
+ export { updateTaskComment, useUpdateTaskCommentMutation, } from './hooks/useUpdateTaskCommentMutation';
74
90
  export type { CreateOrchestrationActivityRequestRequestBody } from './requestBodies/CreateOrchestrationActivityRequestRequestBody';
75
91
  export type { CreateOrchestrationProcessInputRequestRequestBody } from './requestBodies/CreateOrchestrationProcessInputRequestRequestBody';
76
92
  export type { CreateOrchestrationProcessRequestRequestBody } from './requestBodies/CreateOrchestrationProcessRequestRequestBody';
@@ -87,10 +103,12 @@ export type { CreateOrchestrationActivityResponseResponse } from './responses/Cr
87
103
  export type { CreateOrchestrationProcessInputResponseResponse } from './responses/CreateOrchestrationProcessInputResponseResponse';
88
104
  export type { CreateOrchestrationProcessResponseResponse } from './responses/CreateOrchestrationProcessResponseResponse';
89
105
  export type { CreateReleaseGroupResponseResponse } from './responses/CreateReleaseGroupResponseResponse';
106
+ export type { CreateTaskCommentResponseResponse } from './responses/CreateTaskCommentResponseResponse';
90
107
  export type { DeleteReleaseGroupResponseResponse } from './responses/DeleteReleaseGroupResponseResponse';
91
108
  export type { EnvironmentDashboardResponseResponse } from './responses/EnvironmentDashboardResponseResponse';
92
109
  export type { EnvironmentListPerReleaseResponseResponse } from './responses/EnvironmentListPerReleaseResponseResponse';
93
110
  export type { ErrorResponseResponse } from './responses/ErrorResponseResponse';
111
+ export type { ExecutionTasksListResponseResponse } from './responses/ExecutionTasksListResponseResponse';
94
112
  export type { FreezeDetailsResponseResponse } from './responses/FreezeDetailsResponseResponse';
95
113
  export type { FreezeListResponseResponse } from './responses/FreezeListResponseResponse';
96
114
  export type { GetOrchestrationActivityResponseResponse } from './responses/GetOrchestrationActivityResponseResponse';
@@ -98,6 +116,7 @@ export type { GetOrchestrationProcessInputResponseResponse } from './responses/G
98
116
  export type { GetOrchestrationProcessResponseResponse } from './responses/GetOrchestrationProcessResponseResponse';
99
117
  export type { GetReleaseGroupResponseResponse } from './responses/GetReleaseGroupResponseResponse';
100
118
  export type { OrchestrationActivityListByProcessIdentifierResponseResponse } from './responses/OrchestrationActivityListByProcessIdentifierResponseResponse';
119
+ export type { OrchestrationActivitySummaryResponseResponse } from './responses/OrchestrationActivitySummaryResponseResponse';
101
120
  export type { OrchestrationProcessAttachedReleaseGroupsResponseResponse } from './responses/OrchestrationProcessAttachedReleaseGroupsResponseResponse';
102
121
  export type { OrchestrationProcessInputSummaryResponseResponse } from './responses/OrchestrationProcessInputSummaryResponseResponse';
103
122
  export type { OrchestrationProcessSummaryResponseResponse } from './responses/OrchestrationProcessSummaryResponseResponse';
@@ -108,18 +127,23 @@ export type { ReleaseDetailsResponseResponse } from './responses/ReleaseDetailsR
108
127
  export type { ReleaseGroupComponentResponseResponse } from './responses/ReleaseGroupComponentResponseResponse';
109
128
  export type { ReleaseGroupSummaryResponseResponse } from './responses/ReleaseGroupSummaryResponseResponse';
110
129
  export type { ReleaseSummaryResponseResponse } from './responses/ReleaseSummaryResponseResponse';
130
+ export type { TaskCommentsListResponseResponse } from './responses/TaskCommentsListResponseResponse';
131
+ export type { UpdateExecutionTaskMetadataResponseResponse } from './responses/UpdateExecutionTaskMetadataResponseResponse';
132
+ export type { UpdateExecutionTaskStatusResponseResponse } from './responses/UpdateExecutionTaskStatusResponseResponse';
111
133
  export type { UpdateOrchestrationActivityResponseResponse } from './responses/UpdateOrchestrationActivityResponseResponse';
112
134
  export type { UpdateOrchestrationProcessInputResponseResponse } from './responses/UpdateOrchestrationProcessInputResponseResponse';
113
135
  export type { UpdateOrchestrationProcessResponseResponse } from './responses/UpdateOrchestrationProcessResponseResponse';
114
136
  export type { UpdateReleaseConflictResponseResponse } from './responses/UpdateReleaseConflictResponseResponse';
115
137
  export type { UpdateReleaseGroupResponseResponse } from './responses/UpdateReleaseGroupResponseResponse';
116
138
  export type { UpdateReleaseResponseResponse } from './responses/UpdateReleaseResponseResponse';
139
+ export type { UpdateTaskCommentResponseResponse } from './responses/UpdateTaskCommentResponseResponse';
117
140
  export type { ActivityInputYaml } from './schemas/ActivityInputYaml';
118
141
  export type { ActivityInputsResponse } from './schemas/ActivityInputsResponse';
119
142
  export type { ActivityType } from './schemas/ActivityType';
120
143
  export type { ApprovalInfoDto } from './schemas/ApprovalInfoDto';
121
144
  export type { ApprovedByDto } from './schemas/ApprovedByDto';
122
145
  export type { AttachedReleaseGroupDto } from './schemas/AttachedReleaseGroupDto';
146
+ export type { CommentedByDto } from './schemas/CommentedByDto';
123
147
  export type { ConflictStatus } from './schemas/ConflictStatus';
124
148
  export type { CreateOrchestrationActivityInputSetRequestType } from './schemas/CreateOrchestrationActivityInputSetRequestType';
125
149
  export type { CreateOrchestrationActivityRequestType } from './schemas/CreateOrchestrationActivityRequestType';
@@ -128,6 +152,8 @@ export type { EnvironmentDto } from './schemas/EnvironmentDto';
128
152
  export type { EnvironmentType } from './schemas/EnvironmentType';
129
153
  export type { Error } from './schemas/Error';
130
154
  export type { ExecutionConflict } from './schemas/ExecutionConflict';
155
+ export type { ExecutionTaskDto } from './schemas/ExecutionTaskDto';
156
+ export type { ExecutionTaskStatus } from './schemas/ExecutionTaskStatus';
131
157
  export type { FreezeDetailsDto } from './schemas/FreezeDetailsDto';
132
158
  export type { FreezeEntitiesDto } from './schemas/FreezeEntitiesDto';
133
159
  export type { FreezeListItemDto } from './schemas/FreezeListItemDto';
@@ -138,9 +164,12 @@ export type { GlobalReleaseInputYaml } from './schemas/GlobalReleaseInputYaml';
138
164
  export type { InputVariable } from './schemas/InputVariable';
139
165
  export type { InputVariableType } from './schemas/InputVariableType';
140
166
  export type { LastUpdatedByDto } from './schemas/LastUpdatedByDto';
167
+ export type { ManualTaskYaml } from './schemas/ManualTaskYaml';
141
168
  export type { NextRequest } from './schemas/NextRequest';
169
+ export type { OrchestrationActivityManualYaml } from './schemas/OrchestrationActivityManualYaml';
142
170
  export type { OrchestrationActivityPipelineYaml } from './schemas/OrchestrationActivityPipelineYaml';
143
171
  export type { OrchestrationActivityProcessYaml } from './schemas/OrchestrationActivityProcessYaml';
172
+ export type { OrchestrationActivitySummaryDto } from './schemas/OrchestrationActivitySummaryDto';
144
173
  export type { OrchestrationActivityYaml } from './schemas/OrchestrationActivityYaml';
145
174
  export type { OrchestrationActivityYamlDto } from './schemas/OrchestrationActivityYamlDto';
146
175
  export type { OrchestrationExecutionActivity } from './schemas/OrchestrationExecutionActivity';
@@ -175,6 +204,10 @@ export type { Status } from './schemas/Status';
175
204
  export type { StepInfoDetailsDto } from './schemas/StepInfoDetailsDto';
176
205
  export type { StepInfoDto } from './schemas/StepInfoDto';
177
206
  export type { StepInfoType } from './schemas/StepInfoType';
207
+ export type { StringOrBool } from './schemas/StringOrBool';
208
+ export type { StringOrStringArray } from './schemas/StringOrStringArray';
209
+ export type { TaskCommentDto } from './schemas/TaskCommentDto';
210
+ export type { TaskCommentsListResponseDto } from './schemas/TaskCommentsListResponseDto';
178
211
  export type { TimeRangeDto } from './schemas/TimeRangeDto';
179
212
  export type { TriggerType } from './schemas/TriggerType';
180
213
  export type { TriggeredByDto } from './schemas/TriggeredByDto';
@@ -1,12 +1,16 @@
1
+ export { createTaskComment, useCreateTaskCommentMutation, } from './hooks/useCreateTaskCommentMutation';
1
2
  export { deleteReleaseGroup, useDeleteReleaseGroupMutation, } from './hooks/useDeleteReleaseGroupMutation';
3
+ export { deleteTaskComment, useDeleteTaskCommentMutation, } from './hooks/useDeleteTaskCommentMutation';
2
4
  export { getFreezeDetails, useGetFreezeDetailsQuery } from './hooks/useGetFreezeDetailsQuery';
3
5
  export { getFreezeList, useGetFreezeListQuery } from './hooks/useGetFreezeListQuery';
4
6
  export { getOrchestrationActivitiesByAcitivityRefs, useGetOrchestrationActivitiesByAcitivityRefsMutation, } from './hooks/useGetOrchestrationActivitiesByAcitivityRefsMutation';
5
7
  export { getOrchestrationActivitiesByProcessIdentifier, useGetOrchestrationActivitiesByProcessIdentifierQuery, } from './hooks/useGetOrchestrationActivitiesByProcessIdentifierQuery';
6
8
  export { getOrchestrationActivityInputs, useGetOrchestrationActivityInputsQuery, } from './hooks/useGetOrchestrationActivityInputsQuery';
7
9
  export { getOrchestrationActivity, useGetOrchestrationActivityQuery, } from './hooks/useGetOrchestrationActivityQuery';
10
+ export { getOrchestrationActivitySummary, useGetOrchestrationActivitySummaryQuery, } from './hooks/useGetOrchestrationActivitySummaryQuery';
8
11
  export { getOrchestrationExecutionActivities, useGetOrchestrationExecutionActivitiesQuery, } from './hooks/useGetOrchestrationExecutionActivitiesQuery';
9
12
  export { getOrchestrationExecutionPhases, useGetOrchestrationExecutionPhasesQuery, } from './hooks/useGetOrchestrationExecutionPhasesQuery';
13
+ export { getOrchestrationExecutionTasks, useGetOrchestrationExecutionTasksQuery, } from './hooks/useGetOrchestrationExecutionTasksQuery';
10
14
  export { getOrchestrationProcessInput, useGetOrchestrationProcessInputQuery, } from './hooks/useGetOrchestrationProcessInputQuery';
11
15
  export { getOrchestrationProcessInputSummary, useGetOrchestrationProcessInputSummaryQuery, } from './hooks/useGetOrchestrationProcessInputSummaryQuery';
12
16
  export { getOrchestrationProcess, useGetOrchestrationProcessQuery, } from './hooks/useGetOrchestrationProcessQuery';
@@ -21,6 +25,7 @@ export { getRelease, useGetReleaseQuery } from './hooks/useGetReleaseQuery';
21
25
  export { getReleaseReleaseIdApprovals, useGetReleaseReleaseIdApprovalsQuery, } from './hooks/useGetReleaseReleaseIdApprovalsQuery';
22
26
  export { getReleaseReleaseIdEnvironmentDashboard, useGetReleaseReleaseIdEnvironmentDashboardQuery, } from './hooks/useGetReleaseReleaseIdEnvironmentDashboardQuery';
23
27
  export { getReleaseReleaseIdEnvironments, useGetReleaseReleaseIdEnvironmentsQuery, } from './hooks/useGetReleaseReleaseIdEnvironmentsQuery';
28
+ export { getTaskCommentsSummary, useGetTaskCommentsSummaryQuery, } from './hooks/useGetTaskCommentsSummaryQuery';
24
29
  export { postOrchestrationActivity, usePostOrchestrationActivityMutation, } from './hooks/usePostOrchestrationActivityMutation';
25
30
  export { postOrchestrationProcessAttachedReleaseGroups, usePostOrchestrationProcessAttachedReleaseGroupsMutation, } from './hooks/usePostOrchestrationProcessAttachedReleaseGroupsMutation';
26
31
  export { postOrchestrationProcessInput, usePostOrchestrationProcessInputMutation, } from './hooks/usePostOrchestrationProcessInputMutation';
@@ -33,4 +38,7 @@ export { putOrchestrationProcess, usePutOrchestrationProcessMutation, } from './
33
38
  export { putReleaseGroup, usePutReleaseGroupMutation } from './hooks/usePutReleaseGroupMutation';
34
39
  export { putReleaseReleaseId, usePutReleaseReleaseIdMutation, } from './hooks/usePutReleaseReleaseIdMutation';
35
40
  export { startReleaseExecution, useStartReleaseExecutionMutation, } from './hooks/useStartReleaseExecutionMutation';
41
+ export { updateExecutionTaskMetadata, useUpdateExecutionTaskMetadataMutation, } from './hooks/useUpdateExecutionTaskMetadataMutation';
42
+ export { updateExecutionTaskStatus, useUpdateExecutionTaskStatusMutation, } from './hooks/useUpdateExecutionTaskStatusMutation';
36
43
  export { updateReleaseConflict, useUpdateReleaseConflictMutation, } from './hooks/useUpdateReleaseConflictMutation';
44
+ export { updateTaskComment, useUpdateTaskCommentMutation, } from './hooks/useUpdateTaskCommentMutation';
@@ -0,0 +1,6 @@
1
+ export interface CreateTaskCommentResponseResponse {
2
+ /**
3
+ * UUID of the created comment
4
+ */
5
+ commentId: string;
6
+ }
@@ -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,7 @@
1
+ import type { ExecutionTaskDto } from '../schemas/ExecutionTaskDto';
2
+ export interface ExecutionTasksListResponseResponse {
3
+ /**
4
+ * List of execution tasks
5
+ */
6
+ tasks: ExecutionTaskDto[];
7
+ }
@@ -0,0 +1,16 @@
1
+ import type { OrchestrationActivitySummaryDto } from '../schemas/OrchestrationActivitySummaryDto';
2
+ import type { Pageable } from '../schemas/Pageable';
3
+ import type { PageableSort } from '../schemas/PageableSort';
4
+ export interface OrchestrationActivitySummaryResponseResponse {
5
+ content: OrchestrationActivitySummaryDto[];
6
+ empty: boolean;
7
+ first: boolean;
8
+ last: boolean;
9
+ number: number;
10
+ numberOfElements: number;
11
+ pageable: Pageable;
12
+ size: number;
13
+ sort: PageableSort;
14
+ totalElements: number;
15
+ totalPages: number;
16
+ }
@@ -0,0 +1,2 @@
1
+ import type { TaskCommentsListResponseDto } from '../schemas/TaskCommentsListResponseDto';
2
+ export type TaskCommentsListResponseResponse = TaskCommentsListResponseDto;
@@ -0,0 +1,6 @@
1
+ export interface UpdateExecutionTaskMetadataResponseResponse {
2
+ /**
3
+ * UUID of the updated task
4
+ */
5
+ taskExecutionId: string;
6
+ }
@@ -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,8 @@
1
+ import type { ExecutionTaskStatus } from '../schemas/ExecutionTaskStatus';
2
+ export interface UpdateExecutionTaskStatusResponseResponse {
3
+ status: ExecutionTaskStatus;
4
+ /**
5
+ * UUID of the updated task
6
+ */
7
+ taskExecutionId: string;
8
+ }
@@ -0,0 +1,6 @@
1
+ export interface UpdateTaskCommentResponseResponse {
2
+ /**
3
+ * UUID of the updated comment
4
+ */
5
+ commentId: string;
6
+ }
@@ -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,10 @@
1
+ export interface CommentedByDto {
2
+ /**
3
+ * Email of the person who approved the step.
4
+ */
5
+ email: string;
6
+ /**
7
+ * Name of the person who approved the step.
8
+ */
9
+ name: string;
10
+ }
@@ -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,55 @@
1
+ import type { StringOrBool } from '../schemas/StringOrBool';
2
+ import type { ExecutionTaskStatus } from '../schemas/ExecutionTaskStatus';
3
+ import type { StringOrStringArray } from '../schemas/StringOrStringArray';
4
+ /**
5
+ * Represents an execution task for a specific activity
6
+ */
7
+ export interface ExecutionTaskDto {
8
+ /**
9
+ * Actual duration taken for the task (e.g., "7h")
10
+ */
11
+ actualDuration?: string;
12
+ /**
13
+ * Unix timestamp when the task was created
14
+ * @format int64
15
+ */
16
+ createdAt?: number;
17
+ /**
18
+ * Description of the task
19
+ */
20
+ description?: string;
21
+ /**
22
+ * Expected duration for the task (e.g., "1d 12h")
23
+ */
24
+ expectedDuration: string;
25
+ /**
26
+ * Unique identifier of the task
27
+ */
28
+ identifier: string;
29
+ /**
30
+ * Unix timestamp when the task was last updated
31
+ * @format int64
32
+ */
33
+ lastUpdatedAt?: number;
34
+ /**
35
+ * Name of the task
36
+ */
37
+ name: string;
38
+ /**
39
+ * Whether this task is required
40
+ */
41
+ required: StringOrBool;
42
+ status: ExecutionTaskStatus;
43
+ /**
44
+ * ID of the task execution
45
+ */
46
+ taskExecutionId?: string;
47
+ /**
48
+ * List of user group identifiers assigned to this task
49
+ */
50
+ userGroups: StringOrStringArray;
51
+ /**
52
+ * List of user identifiers assigned to this task
53
+ */
54
+ users: StringOrStringArray;
55
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Current status of the execution task
3
+ */
4
+ export type ExecutionTaskStatus = 'BLOCKED' | 'FAILED' | 'IN_PROGRESS' | 'SUCCEEDED' | 'TODO';
@@ -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,33 @@
1
+ /**
2
+ * Manual task configuration
3
+ */
4
+ export interface ManualTaskYaml {
5
+ /**
6
+ * Description of the manual task
7
+ */
8
+ description?: string;
9
+ /**
10
+ * Expected duration for the task (e.g., "1w", "1d", "2h", "1d 12h")
11
+ */
12
+ duration: string;
13
+ /**
14
+ * Unique identifier for the manual task
15
+ */
16
+ id: string;
17
+ /**
18
+ * Name of the manual task
19
+ */
20
+ name: string;
21
+ /**
22
+ * Whether this task is required, it can be boolean or string as we support expressions
23
+ */
24
+ required: boolean | string;
25
+ /**
26
+ * List of user groups or references, it can be string or array of strings as we support expressions
27
+ */
28
+ userGroups: string | string[];
29
+ /**
30
+ * List of user emails or references, it can be string or array of strings as we support expressions
31
+ */
32
+ users: string | string[];
33
+ }
@@ -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,10 @@
1
+ import type { ManualTaskYaml } from '../schemas/ManualTaskYaml';
2
+ /**
3
+ * Manual configuration for orchestration activities
4
+ */
5
+ export interface OrchestrationActivityManualYaml {
6
+ /**
7
+ * List of manual tasks
8
+ */
9
+ tasks: ManualTaskYaml[];
10
+ }
@@ -0,0 +1,23 @@
1
+ import type { LastUpdatedByDto } from '../schemas/LastUpdatedByDto';
2
+ import type { CreateOrchestrationActivityRequestType } from '../schemas/CreateOrchestrationActivityRequestType';
3
+ export interface OrchestrationActivitySummaryDto {
4
+ /**
5
+ * Description of the orchestration activity
6
+ */
7
+ description?: string;
8
+ /**
9
+ * Identifier of the orchestration activity
10
+ */
11
+ identifier: string;
12
+ /**
13
+ * Last updated timestamp in milliseconds
14
+ * @format int64
15
+ */
16
+ lastUpdatedAt: number;
17
+ lastUpdatedBy: LastUpdatedByDto;
18
+ /**
19
+ * Name of the orchestration activity
20
+ */
21
+ name: string;
22
+ type: CreateOrchestrationActivityRequestType;
23
+ }
@@ -1,4 +1,5 @@
1
1
  import type { InputVariable } from '../schemas/InputVariable';
2
+ import type { OrchestrationActivityManualYaml } from '../schemas/OrchestrationActivityManualYaml';
2
3
  import type { OrchestrationActivityPipelineYaml } from '../schemas/OrchestrationActivityPipelineYaml';
3
4
  export interface OrchestrationActivityYaml {
4
5
  activity: {
@@ -16,6 +17,7 @@ export interface OrchestrationActivityYaml {
16
17
  inputs: {
17
18
  [key: string]: InputVariable;
18
19
  };
20
+ manual?: OrchestrationActivityManualYaml;
19
21
  /**
20
22
  * Name of the activity
21
23
  */
@@ -3,6 +3,10 @@ import type { Status } from '../schemas/Status';
3
3
  * Represents an activity in the orchestration execution
4
4
  */
5
5
  export interface OrchestrationExecutionActivity {
6
+ /**
7
+ * ID of the activity execution
8
+ */
9
+ activity_execution_id?: string;
6
10
  /**
7
11
  * List of activity identifiers this activity depends on
8
12
  */
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Flexible type that accepts either a boolean or a string
3
+ */
4
+ export type StringOrBool = boolean | string;
@@ -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,4 @@
1
+ /**
2
+ * Flexible type that accepts either a single string or an array of strings for user references
3
+ */
4
+ export type StringOrStringArray = string | string[];
@@ -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,32 @@
1
+ import type { CommentedByDto } from '../schemas/CommentedByDto';
2
+ /**
3
+ * Represents a comment on an execution task
4
+ */
5
+ export interface TaskCommentDto {
6
+ /**
7
+ * The comment text
8
+ */
9
+ comment: string;
10
+ /**
11
+ * UUID of the comment
12
+ */
13
+ commentId: string;
14
+ /**
15
+ * Details of the person who created the comment
16
+ */
17
+ commentedBy: CommentedByDto;
18
+ /**
19
+ * Unix timestamp when the comment was created
20
+ * @format int64
21
+ */
22
+ createdAt: number;
23
+ /**
24
+ * Whether the comment has been edited since creation
25
+ */
26
+ isEdited: boolean;
27
+ /**
28
+ * Unix timestamp when the comment was last updated
29
+ * @format int64
30
+ */
31
+ lastUpdatedAt: number;
32
+ }
@@ -0,0 +1,16 @@
1
+ import type { TaskCommentDto } from '../schemas/TaskCommentDto';
2
+ import type { NextRequest } from '../schemas/NextRequest';
3
+ /**
4
+ * Paginated response containing task comments
5
+ */
6
+ export interface TaskCommentsListResponseDto {
7
+ /**
8
+ * List of task comments
9
+ */
10
+ comments: TaskCommentDto[];
11
+ /**
12
+ * Whether this is the last page of results
13
+ */
14
+ last: boolean;
15
+ nextRequest: NextRequest;
16
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-rmg-service-client",
3
- "version": "0.24.0",
3
+ "version": "0.26.0",
4
4
  "description": "Harness Release Management Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",