@harnessio/react-rmg-service-client 0.24.0 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rmg-service/src/services/hooks/useCreateTaskCommentMutation.d.ts +32 -0
- package/dist/rmg-service/src/services/hooks/useCreateTaskCommentMutation.js +14 -0
- package/dist/rmg-service/src/services/hooks/useDeleteTaskCommentMutation.d.ts +24 -0
- package/dist/rmg-service/src/services/hooks/useDeleteTaskCommentMutation.js +14 -0
- package/dist/rmg-service/src/services/hooks/useGetOrchestrationExecutionTasksQuery.d.ts +28 -0
- package/dist/rmg-service/src/services/hooks/useGetOrchestrationExecutionTasksQuery.js +20 -0
- package/dist/rmg-service/src/services/hooks/useGetTaskCommentsSummaryQuery.d.ts +30 -0
- package/dist/rmg-service/src/services/hooks/useGetTaskCommentsSummaryQuery.js +14 -0
- package/dist/rmg-service/src/services/hooks/useUpdateExecutionTaskMetadataMutation.d.ts +36 -0
- package/dist/rmg-service/src/services/hooks/useUpdateExecutionTaskMetadataMutation.js +14 -0
- package/dist/rmg-service/src/services/hooks/useUpdateExecutionTaskStatusMutation.d.ts +33 -0
- package/dist/rmg-service/src/services/hooks/useUpdateExecutionTaskStatusMutation.js +14 -0
- package/dist/rmg-service/src/services/hooks/useUpdateTaskCommentMutation.d.ts +32 -0
- package/dist/rmg-service/src/services/hooks/useUpdateTaskCommentMutation.js +14 -0
- package/dist/rmg-service/src/services/index.d.ts +29 -0
- package/dist/rmg-service/src/services/index.js +7 -0
- package/dist/rmg-service/src/services/responses/CreateTaskCommentResponseResponse.d.ts +6 -0
- package/dist/rmg-service/src/services/responses/CreateTaskCommentResponseResponse.js +4 -0
- package/dist/rmg-service/src/services/responses/ExecutionTasksListResponseResponse.d.ts +7 -0
- package/dist/rmg-service/src/services/responses/ExecutionTasksListResponseResponse.js +1 -0
- package/dist/rmg-service/src/services/responses/TaskCommentsListResponseResponse.d.ts +2 -0
- package/dist/rmg-service/src/services/responses/TaskCommentsListResponseResponse.js +1 -0
- package/dist/rmg-service/src/services/responses/UpdateExecutionTaskMetadataResponseResponse.d.ts +6 -0
- package/dist/rmg-service/src/services/responses/UpdateExecutionTaskMetadataResponseResponse.js +4 -0
- package/dist/rmg-service/src/services/responses/UpdateExecutionTaskStatusResponseResponse.d.ts +8 -0
- package/dist/rmg-service/src/services/responses/UpdateExecutionTaskStatusResponseResponse.js +1 -0
- package/dist/rmg-service/src/services/responses/UpdateTaskCommentResponseResponse.d.ts +6 -0
- package/dist/rmg-service/src/services/responses/UpdateTaskCommentResponseResponse.js +4 -0
- package/dist/rmg-service/src/services/schemas/CommentedByDto.d.ts +10 -0
- package/dist/rmg-service/src/services/schemas/CommentedByDto.js +4 -0
- package/dist/rmg-service/src/services/schemas/ExecutionTaskDto.d.ts +55 -0
- package/dist/rmg-service/src/services/schemas/ExecutionTaskDto.js +1 -0
- package/dist/rmg-service/src/services/schemas/ExecutionTaskStatus.d.ts +4 -0
- package/dist/rmg-service/src/services/schemas/ExecutionTaskStatus.js +4 -0
- package/dist/rmg-service/src/services/schemas/ManualTaskYaml.d.ts +33 -0
- package/dist/rmg-service/src/services/schemas/ManualTaskYaml.js +4 -0
- package/dist/rmg-service/src/services/schemas/OrchestrationActivityManualYaml.d.ts +10 -0
- package/dist/rmg-service/src/services/schemas/OrchestrationActivityManualYaml.js +1 -0
- package/dist/rmg-service/src/services/schemas/OrchestrationActivityYaml.d.ts +2 -0
- package/dist/rmg-service/src/services/schemas/OrchestrationExecutionActivity.d.ts +4 -0
- package/dist/rmg-service/src/services/schemas/StringOrBool.d.ts +4 -0
- package/dist/rmg-service/src/services/schemas/StringOrBool.js +4 -0
- package/dist/rmg-service/src/services/schemas/StringOrStringArray.d.ts +4 -0
- package/dist/rmg-service/src/services/schemas/StringOrStringArray.js +4 -0
- package/dist/rmg-service/src/services/schemas/TaskCommentDto.d.ts +32 -0
- package/dist/rmg-service/src/services/schemas/TaskCommentDto.js +1 -0
- package/dist/rmg-service/src/services/schemas/TaskCommentsListResponseDto.d.ts +16 -0
- package/dist/rmg-service/src/services/schemas/TaskCommentsListResponseDto.js +1 -0
- 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
|
+
}
|
|
@@ -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';
|
|
@@ -17,6 +21,8 @@ export type { GetOrchestrationExecutionActivitiesErrorResponse, GetOrchestration
|
|
|
17
21
|
export { getOrchestrationExecutionActivities, useGetOrchestrationExecutionActivitiesQuery, } from './hooks/useGetOrchestrationExecutionActivitiesQuery';
|
|
18
22
|
export type { GetOrchestrationExecutionPhasesErrorResponse, GetOrchestrationExecutionPhasesOkResponse, GetOrchestrationExecutionPhasesProps, GetOrchestrationExecutionPhasesQueryPathParams, GetOrchestrationExecutionPhasesQueryQueryParams, } from './hooks/useGetOrchestrationExecutionPhasesQuery';
|
|
19
23
|
export { getOrchestrationExecutionPhases, useGetOrchestrationExecutionPhasesQuery, } from './hooks/useGetOrchestrationExecutionPhasesQuery';
|
|
24
|
+
export type { GetOrchestrationExecutionTasksErrorResponse, GetOrchestrationExecutionTasksOkResponse, GetOrchestrationExecutionTasksProps, GetOrchestrationExecutionTasksQueryPathParams, GetOrchestrationExecutionTasksQueryQueryParams, } from './hooks/useGetOrchestrationExecutionTasksQuery';
|
|
25
|
+
export { getOrchestrationExecutionTasks, useGetOrchestrationExecutionTasksQuery, } from './hooks/useGetOrchestrationExecutionTasksQuery';
|
|
20
26
|
export type { GetOrchestrationProcessInputErrorResponse, GetOrchestrationProcessInputOkResponse, GetOrchestrationProcessInputProps, GetOrchestrationProcessInputQueryPathParams, GetOrchestrationProcessInputQueryQueryParams, } from './hooks/useGetOrchestrationProcessInputQuery';
|
|
21
27
|
export { getOrchestrationProcessInput, useGetOrchestrationProcessInputQuery, } from './hooks/useGetOrchestrationProcessInputQuery';
|
|
22
28
|
export type { GetOrchestrationProcessInputSummaryErrorResponse, GetOrchestrationProcessInputSummaryOkResponse, GetOrchestrationProcessInputSummaryProps, GetOrchestrationProcessInputSummaryQueryPathParams, GetOrchestrationProcessInputSummaryQueryQueryParams, } from './hooks/useGetOrchestrationProcessInputSummaryQuery';
|
|
@@ -45,6 +51,8 @@ export type { GetReleaseReleaseIdEnvironmentDashboardErrorResponse, GetReleaseRe
|
|
|
45
51
|
export { getReleaseReleaseIdEnvironmentDashboard, useGetReleaseReleaseIdEnvironmentDashboardQuery, } from './hooks/useGetReleaseReleaseIdEnvironmentDashboardQuery';
|
|
46
52
|
export type { GetReleaseReleaseIdEnvironmentsErrorResponse, GetReleaseReleaseIdEnvironmentsOkResponse, GetReleaseReleaseIdEnvironmentsProps, GetReleaseReleaseIdEnvironmentsQueryPathParams, GetReleaseReleaseIdEnvironmentsQueryQueryParams, } from './hooks/useGetReleaseReleaseIdEnvironmentsQuery';
|
|
47
53
|
export { getReleaseReleaseIdEnvironments, useGetReleaseReleaseIdEnvironmentsQuery, } from './hooks/useGetReleaseReleaseIdEnvironmentsQuery';
|
|
54
|
+
export type { GetTaskCommentsSummaryErrorResponse, GetTaskCommentsSummaryOkResponse, GetTaskCommentsSummaryProps, GetTaskCommentsSummaryQueryPathParams, GetTaskCommentsSummaryQueryQueryParams, } from './hooks/useGetTaskCommentsSummaryQuery';
|
|
55
|
+
export { getTaskCommentsSummary, useGetTaskCommentsSummaryQuery, } from './hooks/useGetTaskCommentsSummaryQuery';
|
|
48
56
|
export type { PostOrchestrationActivityErrorResponse, PostOrchestrationActivityMutationQueryParams, PostOrchestrationActivityOkResponse, PostOrchestrationActivityProps, PostOrchestrationActivityRequestBody, } from './hooks/usePostOrchestrationActivityMutation';
|
|
49
57
|
export { postOrchestrationActivity, usePostOrchestrationActivityMutation, } from './hooks/usePostOrchestrationActivityMutation';
|
|
50
58
|
export type { PostOrchestrationProcessAttachedReleaseGroupsErrorResponse, PostOrchestrationProcessAttachedReleaseGroupsMutationPathParams, PostOrchestrationProcessAttachedReleaseGroupsMutationQueryParams, PostOrchestrationProcessAttachedReleaseGroupsOkResponse, PostOrchestrationProcessAttachedReleaseGroupsProps, PostOrchestrationProcessAttachedReleaseGroupsRequestBody, } from './hooks/usePostOrchestrationProcessAttachedReleaseGroupsMutation';
|
|
@@ -69,8 +77,14 @@ export type { PutReleaseReleaseIdErrorResponse, PutReleaseReleaseIdMutationPathP
|
|
|
69
77
|
export { putReleaseReleaseId, usePutReleaseReleaseIdMutation, } from './hooks/usePutReleaseReleaseIdMutation';
|
|
70
78
|
export type { StartReleaseExecutionErrorResponse, StartReleaseExecutionMutationPathParams, StartReleaseExecutionMutationQueryParams, StartReleaseExecutionOkResponse, StartReleaseExecutionProps, StartReleaseExecutionRequestBody, } from './hooks/useStartReleaseExecutionMutation';
|
|
71
79
|
export { startReleaseExecution, useStartReleaseExecutionMutation, } from './hooks/useStartReleaseExecutionMutation';
|
|
80
|
+
export type { UpdateExecutionTaskMetadataErrorResponse, UpdateExecutionTaskMetadataMutationPathParams, UpdateExecutionTaskMetadataMutationQueryParams, UpdateExecutionTaskMetadataOkResponse, UpdateExecutionTaskMetadataProps, UpdateExecutionTaskMetadataRequestBody, } from './hooks/useUpdateExecutionTaskMetadataMutation';
|
|
81
|
+
export { updateExecutionTaskMetadata, useUpdateExecutionTaskMetadataMutation, } from './hooks/useUpdateExecutionTaskMetadataMutation';
|
|
82
|
+
export type { UpdateExecutionTaskStatusErrorResponse, UpdateExecutionTaskStatusMutationPathParams, UpdateExecutionTaskStatusMutationQueryParams, UpdateExecutionTaskStatusOkResponse, UpdateExecutionTaskStatusProps, UpdateExecutionTaskStatusRequestBody, } from './hooks/useUpdateExecutionTaskStatusMutation';
|
|
83
|
+
export { updateExecutionTaskStatus, useUpdateExecutionTaskStatusMutation, } from './hooks/useUpdateExecutionTaskStatusMutation';
|
|
72
84
|
export type { UpdateReleaseConflictErrorResponse, UpdateReleaseConflictMutationPathParams, UpdateReleaseConflictOkResponse, UpdateReleaseConflictProps, UpdateReleaseConflictRequestBody, } from './hooks/useUpdateReleaseConflictMutation';
|
|
73
85
|
export { updateReleaseConflict, useUpdateReleaseConflictMutation, } from './hooks/useUpdateReleaseConflictMutation';
|
|
86
|
+
export type { UpdateTaskCommentErrorResponse, UpdateTaskCommentMutationPathParams, UpdateTaskCommentMutationQueryParams, UpdateTaskCommentOkResponse, UpdateTaskCommentProps, UpdateTaskCommentRequestBody, } from './hooks/useUpdateTaskCommentMutation';
|
|
87
|
+
export { updateTaskComment, useUpdateTaskCommentMutation, } from './hooks/useUpdateTaskCommentMutation';
|
|
74
88
|
export type { CreateOrchestrationActivityRequestRequestBody } from './requestBodies/CreateOrchestrationActivityRequestRequestBody';
|
|
75
89
|
export type { CreateOrchestrationProcessInputRequestRequestBody } from './requestBodies/CreateOrchestrationProcessInputRequestRequestBody';
|
|
76
90
|
export type { CreateOrchestrationProcessRequestRequestBody } from './requestBodies/CreateOrchestrationProcessRequestRequestBody';
|
|
@@ -87,10 +101,12 @@ export type { CreateOrchestrationActivityResponseResponse } from './responses/Cr
|
|
|
87
101
|
export type { CreateOrchestrationProcessInputResponseResponse } from './responses/CreateOrchestrationProcessInputResponseResponse';
|
|
88
102
|
export type { CreateOrchestrationProcessResponseResponse } from './responses/CreateOrchestrationProcessResponseResponse';
|
|
89
103
|
export type { CreateReleaseGroupResponseResponse } from './responses/CreateReleaseGroupResponseResponse';
|
|
104
|
+
export type { CreateTaskCommentResponseResponse } from './responses/CreateTaskCommentResponseResponse';
|
|
90
105
|
export type { DeleteReleaseGroupResponseResponse } from './responses/DeleteReleaseGroupResponseResponse';
|
|
91
106
|
export type { EnvironmentDashboardResponseResponse } from './responses/EnvironmentDashboardResponseResponse';
|
|
92
107
|
export type { EnvironmentListPerReleaseResponseResponse } from './responses/EnvironmentListPerReleaseResponseResponse';
|
|
93
108
|
export type { ErrorResponseResponse } from './responses/ErrorResponseResponse';
|
|
109
|
+
export type { ExecutionTasksListResponseResponse } from './responses/ExecutionTasksListResponseResponse';
|
|
94
110
|
export type { FreezeDetailsResponseResponse } from './responses/FreezeDetailsResponseResponse';
|
|
95
111
|
export type { FreezeListResponseResponse } from './responses/FreezeListResponseResponse';
|
|
96
112
|
export type { GetOrchestrationActivityResponseResponse } from './responses/GetOrchestrationActivityResponseResponse';
|
|
@@ -108,18 +124,23 @@ export type { ReleaseDetailsResponseResponse } from './responses/ReleaseDetailsR
|
|
|
108
124
|
export type { ReleaseGroupComponentResponseResponse } from './responses/ReleaseGroupComponentResponseResponse';
|
|
109
125
|
export type { ReleaseGroupSummaryResponseResponse } from './responses/ReleaseGroupSummaryResponseResponse';
|
|
110
126
|
export type { ReleaseSummaryResponseResponse } from './responses/ReleaseSummaryResponseResponse';
|
|
127
|
+
export type { TaskCommentsListResponseResponse } from './responses/TaskCommentsListResponseResponse';
|
|
128
|
+
export type { UpdateExecutionTaskMetadataResponseResponse } from './responses/UpdateExecutionTaskMetadataResponseResponse';
|
|
129
|
+
export type { UpdateExecutionTaskStatusResponseResponse } from './responses/UpdateExecutionTaskStatusResponseResponse';
|
|
111
130
|
export type { UpdateOrchestrationActivityResponseResponse } from './responses/UpdateOrchestrationActivityResponseResponse';
|
|
112
131
|
export type { UpdateOrchestrationProcessInputResponseResponse } from './responses/UpdateOrchestrationProcessInputResponseResponse';
|
|
113
132
|
export type { UpdateOrchestrationProcessResponseResponse } from './responses/UpdateOrchestrationProcessResponseResponse';
|
|
114
133
|
export type { UpdateReleaseConflictResponseResponse } from './responses/UpdateReleaseConflictResponseResponse';
|
|
115
134
|
export type { UpdateReleaseGroupResponseResponse } from './responses/UpdateReleaseGroupResponseResponse';
|
|
116
135
|
export type { UpdateReleaseResponseResponse } from './responses/UpdateReleaseResponseResponse';
|
|
136
|
+
export type { UpdateTaskCommentResponseResponse } from './responses/UpdateTaskCommentResponseResponse';
|
|
117
137
|
export type { ActivityInputYaml } from './schemas/ActivityInputYaml';
|
|
118
138
|
export type { ActivityInputsResponse } from './schemas/ActivityInputsResponse';
|
|
119
139
|
export type { ActivityType } from './schemas/ActivityType';
|
|
120
140
|
export type { ApprovalInfoDto } from './schemas/ApprovalInfoDto';
|
|
121
141
|
export type { ApprovedByDto } from './schemas/ApprovedByDto';
|
|
122
142
|
export type { AttachedReleaseGroupDto } from './schemas/AttachedReleaseGroupDto';
|
|
143
|
+
export type { CommentedByDto } from './schemas/CommentedByDto';
|
|
123
144
|
export type { ConflictStatus } from './schemas/ConflictStatus';
|
|
124
145
|
export type { CreateOrchestrationActivityInputSetRequestType } from './schemas/CreateOrchestrationActivityInputSetRequestType';
|
|
125
146
|
export type { CreateOrchestrationActivityRequestType } from './schemas/CreateOrchestrationActivityRequestType';
|
|
@@ -128,6 +149,8 @@ export type { EnvironmentDto } from './schemas/EnvironmentDto';
|
|
|
128
149
|
export type { EnvironmentType } from './schemas/EnvironmentType';
|
|
129
150
|
export type { Error } from './schemas/Error';
|
|
130
151
|
export type { ExecutionConflict } from './schemas/ExecutionConflict';
|
|
152
|
+
export type { ExecutionTaskDto } from './schemas/ExecutionTaskDto';
|
|
153
|
+
export type { ExecutionTaskStatus } from './schemas/ExecutionTaskStatus';
|
|
131
154
|
export type { FreezeDetailsDto } from './schemas/FreezeDetailsDto';
|
|
132
155
|
export type { FreezeEntitiesDto } from './schemas/FreezeEntitiesDto';
|
|
133
156
|
export type { FreezeListItemDto } from './schemas/FreezeListItemDto';
|
|
@@ -138,7 +161,9 @@ export type { GlobalReleaseInputYaml } from './schemas/GlobalReleaseInputYaml';
|
|
|
138
161
|
export type { InputVariable } from './schemas/InputVariable';
|
|
139
162
|
export type { InputVariableType } from './schemas/InputVariableType';
|
|
140
163
|
export type { LastUpdatedByDto } from './schemas/LastUpdatedByDto';
|
|
164
|
+
export type { ManualTaskYaml } from './schemas/ManualTaskYaml';
|
|
141
165
|
export type { NextRequest } from './schemas/NextRequest';
|
|
166
|
+
export type { OrchestrationActivityManualYaml } from './schemas/OrchestrationActivityManualYaml';
|
|
142
167
|
export type { OrchestrationActivityPipelineYaml } from './schemas/OrchestrationActivityPipelineYaml';
|
|
143
168
|
export type { OrchestrationActivityProcessYaml } from './schemas/OrchestrationActivityProcessYaml';
|
|
144
169
|
export type { OrchestrationActivityYaml } from './schemas/OrchestrationActivityYaml';
|
|
@@ -175,6 +200,10 @@ export type { Status } from './schemas/Status';
|
|
|
175
200
|
export type { StepInfoDetailsDto } from './schemas/StepInfoDetailsDto';
|
|
176
201
|
export type { StepInfoDto } from './schemas/StepInfoDto';
|
|
177
202
|
export type { StepInfoType } from './schemas/StepInfoType';
|
|
203
|
+
export type { StringOrBool } from './schemas/StringOrBool';
|
|
204
|
+
export type { StringOrStringArray } from './schemas/StringOrStringArray';
|
|
205
|
+
export type { TaskCommentDto } from './schemas/TaskCommentDto';
|
|
206
|
+
export type { TaskCommentsListResponseDto } from './schemas/TaskCommentsListResponseDto';
|
|
178
207
|
export type { TimeRangeDto } from './schemas/TimeRangeDto';
|
|
179
208
|
export type { TriggerType } from './schemas/TriggerType';
|
|
180
209
|
export type { TriggeredByDto } from './schemas/TriggeredByDto';
|
|
@@ -1,4 +1,6 @@
|
|
|
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';
|
|
@@ -7,6 +9,7 @@ export { getOrchestrationActivityInputs, useGetOrchestrationActivityInputsQuery,
|
|
|
7
9
|
export { getOrchestrationActivity, useGetOrchestrationActivityQuery, } from './hooks/useGetOrchestrationActivityQuery';
|
|
8
10
|
export { getOrchestrationExecutionActivities, useGetOrchestrationExecutionActivitiesQuery, } from './hooks/useGetOrchestrationExecutionActivitiesQuery';
|
|
9
11
|
export { getOrchestrationExecutionPhases, useGetOrchestrationExecutionPhasesQuery, } from './hooks/useGetOrchestrationExecutionPhasesQuery';
|
|
12
|
+
export { getOrchestrationExecutionTasks, useGetOrchestrationExecutionTasksQuery, } from './hooks/useGetOrchestrationExecutionTasksQuery';
|
|
10
13
|
export { getOrchestrationProcessInput, useGetOrchestrationProcessInputQuery, } from './hooks/useGetOrchestrationProcessInputQuery';
|
|
11
14
|
export { getOrchestrationProcessInputSummary, useGetOrchestrationProcessInputSummaryQuery, } from './hooks/useGetOrchestrationProcessInputSummaryQuery';
|
|
12
15
|
export { getOrchestrationProcess, useGetOrchestrationProcessQuery, } from './hooks/useGetOrchestrationProcessQuery';
|
|
@@ -21,6 +24,7 @@ export { getRelease, useGetReleaseQuery } from './hooks/useGetReleaseQuery';
|
|
|
21
24
|
export { getReleaseReleaseIdApprovals, useGetReleaseReleaseIdApprovalsQuery, } from './hooks/useGetReleaseReleaseIdApprovalsQuery';
|
|
22
25
|
export { getReleaseReleaseIdEnvironmentDashboard, useGetReleaseReleaseIdEnvironmentDashboardQuery, } from './hooks/useGetReleaseReleaseIdEnvironmentDashboardQuery';
|
|
23
26
|
export { getReleaseReleaseIdEnvironments, useGetReleaseReleaseIdEnvironmentsQuery, } from './hooks/useGetReleaseReleaseIdEnvironmentsQuery';
|
|
27
|
+
export { getTaskCommentsSummary, useGetTaskCommentsSummaryQuery, } from './hooks/useGetTaskCommentsSummaryQuery';
|
|
24
28
|
export { postOrchestrationActivity, usePostOrchestrationActivityMutation, } from './hooks/usePostOrchestrationActivityMutation';
|
|
25
29
|
export { postOrchestrationProcessAttachedReleaseGroups, usePostOrchestrationProcessAttachedReleaseGroupsMutation, } from './hooks/usePostOrchestrationProcessAttachedReleaseGroupsMutation';
|
|
26
30
|
export { postOrchestrationProcessInput, usePostOrchestrationProcessInputMutation, } from './hooks/usePostOrchestrationProcessInputMutation';
|
|
@@ -33,4 +37,7 @@ export { putOrchestrationProcess, usePutOrchestrationProcessMutation, } from './
|
|
|
33
37
|
export { putReleaseGroup, usePutReleaseGroupMutation } from './hooks/usePutReleaseGroupMutation';
|
|
34
38
|
export { putReleaseReleaseId, usePutReleaseReleaseIdMutation, } from './hooks/usePutReleaseReleaseIdMutation';
|
|
35
39
|
export { startReleaseExecution, useStartReleaseExecutionMutation, } from './hooks/useStartReleaseExecutionMutation';
|
|
40
|
+
export { updateExecutionTaskMetadata, useUpdateExecutionTaskMetadataMutation, } from './hooks/useUpdateExecutionTaskMetadataMutation';
|
|
41
|
+
export { updateExecutionTaskStatus, useUpdateExecutionTaskStatusMutation, } from './hooks/useUpdateExecutionTaskStatusMutation';
|
|
36
42
|
export { updateReleaseConflict, useUpdateReleaseConflictMutation, } from './hooks/useUpdateReleaseConflictMutation';
|
|
43
|
+
export { updateTaskComment, useUpdateTaskCommentMutation, } from './hooks/useUpdateTaskCommentMutation';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
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 @@
|
|
|
1
|
+
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 @@
|
|
|
1
|
+
export {};
|
|
@@ -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,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 @@
|
|
|
1
|
+
export {};
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|