@harnessio/react-rmg-service-client 0.23.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/useGetFreezeDetailsQuery.d.ts +25 -0
- package/dist/rmg-service/src/services/hooks/useGetFreezeDetailsQuery.js +14 -0
- package/dist/rmg-service/src/services/hooks/useGetFreezeListQuery.d.ts +35 -0
- package/dist/rmg-service/src/services/hooks/useGetFreezeListQuery.js +14 -0
- package/dist/rmg-service/src/services/hooks/useGetOrchestrationActivityInputsQuery.d.ts +25 -0
- package/dist/rmg-service/src/services/hooks/useGetOrchestrationActivityInputsQuery.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/useStartReleaseExecutionMutation.d.ts +8 -1
- 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 +45 -1
- package/dist/rmg-service/src/services/index.js +10 -0
- package/dist/rmg-service/src/services/responses/ActivityInputsResponseResponse.d.ts +2 -0
- package/dist/rmg-service/src/services/responses/ActivityInputsResponseResponse.js +1 -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/FreezeDetailsResponseResponse.d.ts +2 -0
- package/dist/rmg-service/src/services/responses/FreezeDetailsResponseResponse.js +1 -0
- package/dist/rmg-service/src/services/responses/FreezeListResponseResponse.d.ts +2 -0
- package/dist/rmg-service/src/services/responses/FreezeListResponseResponse.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/ActivityInputYaml.d.ts +1 -1
- package/dist/rmg-service/src/services/schemas/ActivityInputsResponse.d.ts +9 -0
- package/dist/rmg-service/src/services/schemas/ActivityInputsResponse.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/FreezeDetailsDto.d.ts +41 -0
- package/dist/rmg-service/src/services/schemas/FreezeDetailsDto.js +1 -0
- package/dist/rmg-service/src/services/schemas/FreezeEntitiesDto.d.ts +29 -0
- package/dist/rmg-service/src/services/schemas/FreezeEntitiesDto.js +4 -0
- package/dist/rmg-service/src/services/schemas/FreezeListItemDto.d.ts +31 -0
- package/dist/rmg-service/src/services/schemas/FreezeListItemDto.js +4 -0
- package/dist/rmg-service/src/services/schemas/FreezeListResponseDto.d.ts +16 -0
- package/dist/rmg-service/src/services/schemas/FreezeListResponseDto.js +1 -0
- package/dist/rmg-service/src/services/schemas/GlobalReleaseInputYaml.d.ts +1 -1
- package/dist/rmg-service/src/services/schemas/InputVariable.d.ts +4 -12
- package/dist/rmg-service/src/services/schemas/InputVariable.js +0 -3
- package/dist/rmg-service/src/services/schemas/InputVariableType.d.ts +4 -0
- package/dist/rmg-service/src/services/schemas/InputVariableType.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/OrchestrationActivityPipelineYaml.d.ts +4 -0
- package/dist/rmg-service/src/services/schemas/OrchestrationActivityProcessYaml.d.ts +0 -16
- package/dist/rmg-service/src/services/schemas/OrchestrationActivityYaml.d.ts +4 -22
- package/dist/rmg-service/src/services/schemas/OrchestrationExecutionActivity.d.ts +4 -0
- package/dist/rmg-service/src/services/schemas/OrchestrationPhaseYaml.d.ts +23 -33
- package/dist/rmg-service/src/services/schemas/OrchestrationProcessInputYaml.d.ts +17 -3
- package/dist/rmg-service/src/services/schemas/OrchestrationReleaseProcessYaml.d.ts +1 -5
- package/dist/rmg-service/src/services/schemas/PhaseInputYaml.d.ts +3 -1
- package/dist/rmg-service/src/services/schemas/PhaseReleaseInputYaml.d.ts +1 -1
- package/dist/rmg-service/src/services/schemas/ProcessInputSummaryDto.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,25 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { FreezeDetailsResponseResponse } from '../responses/FreezeDetailsResponseResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetFreezeDetailsQueryPathParams {
|
|
7
|
+
freeze_identifier: string;
|
|
8
|
+
}
|
|
9
|
+
export interface GetFreezeDetailsQueryQueryParams {
|
|
10
|
+
orgIdentifier?: string;
|
|
11
|
+
projectIdentifier?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface GetFreezeDetailsQueryHeaderParams {
|
|
14
|
+
'Harness-Account': string;
|
|
15
|
+
}
|
|
16
|
+
export type GetFreezeDetailsOkResponse = ResponseWithPagination<FreezeDetailsResponseResponse>;
|
|
17
|
+
export type GetFreezeDetailsErrorResponse = ErrorResponseResponse;
|
|
18
|
+
export interface GetFreezeDetailsProps extends GetFreezeDetailsQueryPathParams, Omit<FetcherOptions<GetFreezeDetailsQueryQueryParams, unknown, GetFreezeDetailsQueryHeaderParams>, 'url'> {
|
|
19
|
+
queryParams: GetFreezeDetailsQueryQueryParams;
|
|
20
|
+
}
|
|
21
|
+
export declare function getFreezeDetails(props: GetFreezeDetailsProps): Promise<GetFreezeDetailsOkResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Retrieve detailed freeze information including entity extraction for a specific freeze.
|
|
24
|
+
*/
|
|
25
|
+
export declare function useGetFreezeDetailsQuery(props: GetFreezeDetailsProps, options?: Omit<UseQueryOptions<GetFreezeDetailsOkResponse, GetFreezeDetailsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetFreezeDetailsOkResponse, 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 getFreezeDetails(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/freeze/details/${props.freeze_identifier}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Retrieve detailed freeze information including entity extraction for a specific freeze.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetFreezeDetailsQuery(props, options) {
|
|
13
|
+
return useQuery(['getFreezeDetails', props.freeze_identifier, props.queryParams], ({ signal }) => getFreezeDetails(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { FreezeListResponseResponse } from '../responses/FreezeListResponseResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetFreezeListQueryQueryParams {
|
|
7
|
+
orgIdentifier?: string;
|
|
8
|
+
projectIdentifier?: string;
|
|
9
|
+
/**
|
|
10
|
+
* @format int64
|
|
11
|
+
*/
|
|
12
|
+
startTime: number;
|
|
13
|
+
/**
|
|
14
|
+
* @format int64
|
|
15
|
+
*/
|
|
16
|
+
endTime: number;
|
|
17
|
+
cursor?: string;
|
|
18
|
+
/**
|
|
19
|
+
* @default 50
|
|
20
|
+
*/
|
|
21
|
+
limit?: number;
|
|
22
|
+
}
|
|
23
|
+
export interface GetFreezeListQueryHeaderParams {
|
|
24
|
+
'Harness-Account': string;
|
|
25
|
+
}
|
|
26
|
+
export type GetFreezeListOkResponse = ResponseWithPagination<FreezeListResponseResponse>;
|
|
27
|
+
export type GetFreezeListErrorResponse = ErrorResponseResponse;
|
|
28
|
+
export interface GetFreezeListProps extends Omit<FetcherOptions<GetFreezeListQueryQueryParams, unknown, GetFreezeListQueryHeaderParams>, 'url'> {
|
|
29
|
+
queryParams: GetFreezeListQueryQueryParams;
|
|
30
|
+
}
|
|
31
|
+
export declare function getFreezeList(props: GetFreezeListProps): Promise<GetFreezeListOkResponse>;
|
|
32
|
+
/**
|
|
33
|
+
* Retrieve a paginated list of freeze information for all active freezes that overlap with the specified time range (startTime to endTime).
|
|
34
|
+
*/
|
|
35
|
+
export declare function useGetFreezeListQuery(props: GetFreezeListProps, options?: Omit<UseQueryOptions<GetFreezeListOkResponse, GetFreezeListErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetFreezeListOkResponse, 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 getFreezeList(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/freeze/list`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Retrieve a paginated list of freeze information for all active freezes that overlap with the specified time range (startTime to endTime).
|
|
11
|
+
*/
|
|
12
|
+
export function useGetFreezeListQuery(props, options) {
|
|
13
|
+
return useQuery(['getFreezeList', props.queryParams], ({ signal }) => getFreezeList(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ActivityInputsResponseResponse } from '../responses/ActivityInputsResponseResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetOrchestrationActivityInputsQueryPathParams {
|
|
7
|
+
activityRef: string;
|
|
8
|
+
}
|
|
9
|
+
export interface GetOrchestrationActivityInputsQueryQueryParams {
|
|
10
|
+
orgIdentifier?: string;
|
|
11
|
+
projectIdentifier?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface GetOrchestrationActivityInputsQueryHeaderParams {
|
|
14
|
+
'Harness-Account': string;
|
|
15
|
+
}
|
|
16
|
+
export type GetOrchestrationActivityInputsOkResponse = ResponseWithPagination<ActivityInputsResponseResponse>;
|
|
17
|
+
export type GetOrchestrationActivityInputsErrorResponse = ErrorResponseResponse;
|
|
18
|
+
export interface GetOrchestrationActivityInputsProps extends GetOrchestrationActivityInputsQueryPathParams, Omit<FetcherOptions<GetOrchestrationActivityInputsQueryQueryParams, unknown, GetOrchestrationActivityInputsQueryHeaderParams>, 'url'> {
|
|
19
|
+
queryParams: GetOrchestrationActivityInputsQueryQueryParams;
|
|
20
|
+
}
|
|
21
|
+
export declare function getOrchestrationActivityInputs(props: GetOrchestrationActivityInputsProps): Promise<GetOrchestrationActivityInputsOkResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Retrieve input definitions and values for a specific activity within a process input configuration
|
|
24
|
+
*/
|
|
25
|
+
export declare function useGetOrchestrationActivityInputsQuery(props: GetOrchestrationActivityInputsProps, options?: Omit<UseQueryOptions<GetOrchestrationActivityInputsOkResponse, GetOrchestrationActivityInputsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetOrchestrationActivityInputsOkResponse, 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 getOrchestrationActivityInputs(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/orchestration/activity/${props.activityRef}/inputs`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Retrieve input definitions and values for a specific activity within a process input configuration
|
|
11
|
+
*/
|
|
12
|
+
export function useGetOrchestrationActivityInputsQuery(props, options) {
|
|
13
|
+
return useQuery(['get-orchestration-activity-inputs', props.activityRef, props.queryParams], ({ signal }) => getOrchestrationActivityInputs(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
|
+
}
|
|
@@ -12,6 +12,12 @@ export interface StartReleaseExecutionMutationQueryParams {
|
|
|
12
12
|
export interface StartReleaseExecutionMutationHeaderParams {
|
|
13
13
|
'Harness-Account': string;
|
|
14
14
|
}
|
|
15
|
+
export type StartReleaseExecutionRequestBody = {
|
|
16
|
+
/**
|
|
17
|
+
* YAML configuration for release input
|
|
18
|
+
*/
|
|
19
|
+
releaseInputYaml: string;
|
|
20
|
+
};
|
|
15
21
|
export type StartReleaseExecutionOkResponse = ResponseWithPagination<{
|
|
16
22
|
/**
|
|
17
23
|
* Identifier of the started execution
|
|
@@ -23,8 +29,9 @@ export type StartReleaseExecutionOkResponse = ResponseWithPagination<{
|
|
|
23
29
|
yaml: string;
|
|
24
30
|
}>;
|
|
25
31
|
export type StartReleaseExecutionErrorResponse = ErrorResponseResponse;
|
|
26
|
-
export interface StartReleaseExecutionProps extends StartReleaseExecutionMutationPathParams, Omit<FetcherOptions<StartReleaseExecutionMutationQueryParams,
|
|
32
|
+
export interface StartReleaseExecutionProps extends StartReleaseExecutionMutationPathParams, Omit<FetcherOptions<StartReleaseExecutionMutationQueryParams, StartReleaseExecutionRequestBody, StartReleaseExecutionMutationHeaderParams>, 'url'> {
|
|
27
33
|
queryParams: StartReleaseExecutionMutationQueryParams;
|
|
34
|
+
body: StartReleaseExecutionRequestBody;
|
|
28
35
|
}
|
|
29
36
|
export declare function startReleaseExecution(props: StartReleaseExecutionProps): Promise<StartReleaseExecutionOkResponse>;
|
|
30
37
|
/**
|
|
@@ -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
|
+
}
|