@harnessio/react-rmg-service-client 0.67.0 → 0.68.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/useGetIntegrationExecutionQuery.d.ts +25 -0
- package/dist/rmg-service/src/services/hooks/useGetIntegrationExecutionQuery.js +14 -0
- package/dist/rmg-service/src/services/hooks/useGetOrchestrationExecutionActivitiesQuery.d.ts +2 -20
- package/dist/rmg-service/src/services/hooks/useGetProcessExecutionActivitiesQuery.d.ts +28 -0
- package/dist/rmg-service/src/services/hooks/useGetProcessExecutionActivitiesQuery.js +19 -0
- package/dist/rmg-service/src/services/hooks/useGetProcessExecutionInputQuery.d.ts +25 -0
- package/dist/rmg-service/src/services/hooks/useGetProcessExecutionInputQuery.js +14 -0
- package/dist/rmg-service/src/services/hooks/useListIntegrationExecutionsQuery.d.ts +31 -0
- package/dist/rmg-service/src/services/hooks/useListIntegrationExecutionsQuery.js +14 -0
- package/dist/rmg-service/src/services/hooks/usePostOrchestrationProcessExecuteMutation.d.ts +5 -5
- package/dist/rmg-service/src/services/hooks/useStartReleaseExecutionMutation.d.ts +2 -10
- package/dist/rmg-service/src/services/hooks/useTriggerIntegrationExecutionMutation.d.ts +25 -0
- package/dist/rmg-service/src/services/hooks/useTriggerIntegrationExecutionMutation.js +14 -0
- package/dist/rmg-service/src/services/index.d.ts +22 -2
- package/dist/rmg-service/src/services/index.js +5 -0
- package/dist/rmg-service/src/services/responses/ExecutionStartResponseResponse.d.ts +2 -0
- package/dist/rmg-service/src/services/responses/GetProcessExecutionInputResponseResponse.d.ts +2 -0
- package/dist/rmg-service/src/services/responses/GetProcessExecutionResponseResponse.d.ts +2 -2
- package/dist/rmg-service/src/services/responses/OrchestrationExecutionActivitiesResponseResponse.d.ts +20 -0
- package/dist/rmg-service/src/services/responses/OrchestrationExecutionActivitiesResponseResponse.js +1 -0
- package/dist/rmg-service/src/services/schemas/ExecutionStartResponse.d.ts +17 -0
- package/dist/rmg-service/src/services/schemas/ExecutionStartResponse.js +4 -0
- package/dist/rmg-service/src/services/schemas/IntegrationExecution.d.ts +20 -0
- package/dist/rmg-service/src/services/schemas/IntegrationExecution.js +4 -0
- package/dist/rmg-service/src/services/schemas/IntegrationExecutionList.d.ts +11 -0
- package/dist/rmg-service/src/services/schemas/IntegrationExecutionList.js +1 -0
- package/dist/rmg-service/src/services/schemas/ProcessExecutionDetailsResponse.d.ts +11 -0
- package/dist/rmg-service/src/services/schemas/ProcessExecutionDetailsResponse.js +1 -0
- package/dist/rmg-service/src/services/schemas/ProcessExecutionDto.d.ts +25 -1
- package/dist/rmg-service/src/services/schemas/ProcessExecutionInfoDto.d.ts +28 -0
- package/dist/rmg-service/src/services/schemas/ProcessExecutionInfoDto.js +1 -0
- package/dist/rmg-service/src/services/schemas/ProcessExecutionInputResponse.d.ts +13 -0
- package/dist/rmg-service/src/services/schemas/ProcessExecutionInputResponse.js +4 -0
- package/dist/rmg-service/src/services/schemas/ReleaseInfo.d.ts +13 -0
- package/dist/rmg-service/src/services/schemas/ReleaseInfo.js +4 -0
- package/dist/rmg-service/src/services/schemas/TriggerIntegrationExecutionRequest.d.ts +8 -0
- package/dist/rmg-service/src/services/schemas/TriggerIntegrationExecutionRequest.js +4 -0
- package/dist/rmg-service/src/services/schemas/TriggerIntegrationExecutionResponse.d.ts +3 -0
- package/dist/rmg-service/src/services/schemas/TriggerIntegrationExecutionResponse.js +4 -0
- package/dist/rmg-service/src/services/schemas/TriggeredByDto.d.ts +4 -0
- package/package.json +1 -1
- package/dist/rmg-service/src/services/responses/ExecuteProcessResponseResponse.d.ts +0 -4
- package/dist/rmg-service/src/services/schemas/ExecuteProcessResponseDto.d.ts +0 -31
- /package/dist/rmg-service/src/services/responses/{ExecuteProcessResponseResponse.js → ExecutionStartResponseResponse.js} +0 -0
- /package/dist/rmg-service/src/services/{schemas/ExecuteProcessResponseDto.js → responses/GetProcessExecutionInputResponseResponse.js} +0 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { IntegrationExecution } from '../schemas/IntegrationExecution';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetIntegrationExecutionQueryPathParams {
|
|
7
|
+
executionId: string;
|
|
8
|
+
}
|
|
9
|
+
export interface GetIntegrationExecutionQueryQueryParams {
|
|
10
|
+
orgIdentifier?: string;
|
|
11
|
+
projectIdentifier?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface GetIntegrationExecutionQueryHeaderParams {
|
|
14
|
+
'Harness-Account': string;
|
|
15
|
+
}
|
|
16
|
+
export type GetIntegrationExecutionOkResponse = ResponseWithPagination<IntegrationExecution>;
|
|
17
|
+
export type GetIntegrationExecutionErrorResponse = ErrorResponseResponse;
|
|
18
|
+
export interface GetIntegrationExecutionProps extends GetIntegrationExecutionQueryPathParams, Omit<FetcherOptions<GetIntegrationExecutionQueryQueryParams, unknown, GetIntegrationExecutionQueryHeaderParams>, 'url'> {
|
|
19
|
+
queryParams: GetIntegrationExecutionQueryQueryParams;
|
|
20
|
+
}
|
|
21
|
+
export declare function getIntegrationExecution(props: GetIntegrationExecutionProps): Promise<GetIntegrationExecutionOkResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Get a single integration execution
|
|
24
|
+
*/
|
|
25
|
+
export declare function useGetIntegrationExecutionQuery(props: GetIntegrationExecutionProps, options?: Omit<UseQueryOptions<GetIntegrationExecutionOkResponse, GetIntegrationExecutionErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetIntegrationExecutionOkResponse, 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 getIntegrationExecution(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/integration/executions/${props.executionId}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get a single integration execution
|
|
11
|
+
*/
|
|
12
|
+
export function useGetIntegrationExecutionQuery(props, options) {
|
|
13
|
+
return useQuery(['getIntegrationExecution', props.executionId, props.queryParams], ({ signal }) => getIntegrationExecution(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
package/dist/rmg-service/src/services/hooks/useGetOrchestrationExecutionActivitiesQuery.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type {
|
|
2
|
+
import type { OrchestrationExecutionActivitiesResponseResponse } from '../responses/OrchestrationExecutionActivitiesResponseResponse';
|
|
3
3
|
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
@@ -16,25 +16,7 @@ export interface GetOrchestrationExecutionActivitiesQueryQueryParams {
|
|
|
16
16
|
export interface GetOrchestrationExecutionActivitiesQueryHeaderParams {
|
|
17
17
|
'Harness-Account': string;
|
|
18
18
|
}
|
|
19
|
-
export type GetOrchestrationExecutionActivitiesOkResponse = ResponseWithPagination<
|
|
20
|
-
activities: OrchestrationExecutionActivity[];
|
|
21
|
-
/**
|
|
22
|
-
* ID of the phase execution
|
|
23
|
-
*/
|
|
24
|
-
phase_execution_id: string;
|
|
25
|
-
/**
|
|
26
|
-
* ID of the process execution
|
|
27
|
-
*/
|
|
28
|
-
process_execution_id: string;
|
|
29
|
-
/**
|
|
30
|
-
* ID of the release
|
|
31
|
-
*/
|
|
32
|
-
release_id: string;
|
|
33
|
-
/**
|
|
34
|
-
* Total number of currently running activities
|
|
35
|
-
*/
|
|
36
|
-
total_running_activities: number;
|
|
37
|
-
}>;
|
|
19
|
+
export type GetOrchestrationExecutionActivitiesOkResponse = ResponseWithPagination<OrchestrationExecutionActivitiesResponseResponse>;
|
|
38
20
|
export type GetOrchestrationExecutionActivitiesErrorResponse = ErrorResponseResponse;
|
|
39
21
|
export interface GetOrchestrationExecutionActivitiesProps extends GetOrchestrationExecutionActivitiesQueryPathParams, Omit<FetcherOptions<GetOrchestrationExecutionActivitiesQueryQueryParams, unknown, GetOrchestrationExecutionActivitiesQueryHeaderParams>, 'url'> {
|
|
40
22
|
queryParams: GetOrchestrationExecutionActivitiesQueryQueryParams;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { OrchestrationExecutionActivitiesResponseResponse } from '../responses/OrchestrationExecutionActivitiesResponseResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetProcessExecutionActivitiesQueryPathParams {
|
|
7
|
+
executionId: string;
|
|
8
|
+
phaseIdentifier: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GetProcessExecutionActivitiesQueryQueryParams {
|
|
11
|
+
phaseExecutionId?: string;
|
|
12
|
+
status?: string[];
|
|
13
|
+
orgIdentifier?: string;
|
|
14
|
+
projectIdentifier?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface GetProcessExecutionActivitiesQueryHeaderParams {
|
|
17
|
+
'Harness-Account': string;
|
|
18
|
+
}
|
|
19
|
+
export type GetProcessExecutionActivitiesOkResponse = ResponseWithPagination<OrchestrationExecutionActivitiesResponseResponse>;
|
|
20
|
+
export type GetProcessExecutionActivitiesErrorResponse = ErrorResponseResponse;
|
|
21
|
+
export interface GetProcessExecutionActivitiesProps extends GetProcessExecutionActivitiesQueryPathParams, Omit<FetcherOptions<GetProcessExecutionActivitiesQueryQueryParams, unknown, GetProcessExecutionActivitiesQueryHeaderParams>, 'url'> {
|
|
22
|
+
queryParams: GetProcessExecutionActivitiesQueryQueryParams;
|
|
23
|
+
}
|
|
24
|
+
export declare function getProcessExecutionActivities(props: GetProcessExecutionActivitiesProps): Promise<GetProcessExecutionActivitiesOkResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Retrieve all activities for a specific process execution and phase.
|
|
27
|
+
*/
|
|
28
|
+
export declare function useGetProcessExecutionActivitiesQuery(props: GetProcessExecutionActivitiesProps, options?: Omit<UseQueryOptions<GetProcessExecutionActivitiesOkResponse, GetProcessExecutionActivitiesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetProcessExecutionActivitiesOkResponse, import("..").Error>;
|
|
@@ -0,0 +1,19 @@
|
|
|
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 getProcessExecutionActivities(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/orchestration/process/execution/${props.executionId}/phase/${props.phaseIdentifier}/activities`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Retrieve all activities for a specific process execution and phase.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetProcessExecutionActivitiesQuery(props, options) {
|
|
13
|
+
return useQuery([
|
|
14
|
+
'get-process-execution-activities',
|
|
15
|
+
props.executionId,
|
|
16
|
+
props.phaseIdentifier,
|
|
17
|
+
props.queryParams,
|
|
18
|
+
], ({ signal }) => getProcessExecutionActivities(Object.assign(Object.assign({}, props), { signal })), options);
|
|
19
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { GetProcessExecutionInputResponseResponse } from '../responses/GetProcessExecutionInputResponseResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetProcessExecutionInputQueryPathParams {
|
|
7
|
+
executionId: string;
|
|
8
|
+
}
|
|
9
|
+
export interface GetProcessExecutionInputQueryQueryParams {
|
|
10
|
+
orgIdentifier?: string;
|
|
11
|
+
projectIdentifier?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface GetProcessExecutionInputQueryHeaderParams {
|
|
14
|
+
'Harness-Account': string;
|
|
15
|
+
}
|
|
16
|
+
export type GetProcessExecutionInputOkResponse = ResponseWithPagination<GetProcessExecutionInputResponseResponse>;
|
|
17
|
+
export type GetProcessExecutionInputErrorResponse = ErrorResponseResponse;
|
|
18
|
+
export interface GetProcessExecutionInputProps extends GetProcessExecutionInputQueryPathParams, Omit<FetcherOptions<GetProcessExecutionInputQueryQueryParams, unknown, GetProcessExecutionInputQueryHeaderParams>, 'url'> {
|
|
19
|
+
queryParams: GetProcessExecutionInputQueryQueryParams;
|
|
20
|
+
}
|
|
21
|
+
export declare function getProcessExecutionInput(props: GetProcessExecutionInputProps): Promise<GetProcessExecutionInputOkResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Retrieve the latest release input YAML for a process-on-the-go execution by slug ID.
|
|
24
|
+
*/
|
|
25
|
+
export declare function useGetProcessExecutionInputQuery(props: GetProcessExecutionInputProps, options?: Omit<UseQueryOptions<GetProcessExecutionInputOkResponse, GetProcessExecutionInputErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetProcessExecutionInputOkResponse, 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 getProcessExecutionInput(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/orchestration/process/execution/${props.executionId}/Input`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Retrieve the latest release input YAML for a process-on-the-go execution by slug ID.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetProcessExecutionInputQuery(props, options) {
|
|
13
|
+
return useQuery(['get-process-execution-input', props.executionId, props.queryParams], ({ signal }) => getProcessExecutionInput(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { IntegrationExecutionList } from '../schemas/IntegrationExecutionList';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface ListIntegrationExecutionsQueryQueryParams {
|
|
7
|
+
orgIdentifier?: string;
|
|
8
|
+
projectIdentifier?: string;
|
|
9
|
+
reference_id: string;
|
|
10
|
+
/**
|
|
11
|
+
* @default 0
|
|
12
|
+
*/
|
|
13
|
+
page?: number;
|
|
14
|
+
/**
|
|
15
|
+
* @default 20
|
|
16
|
+
*/
|
|
17
|
+
size?: number;
|
|
18
|
+
}
|
|
19
|
+
export interface ListIntegrationExecutionsQueryHeaderParams {
|
|
20
|
+
'Harness-Account': string;
|
|
21
|
+
}
|
|
22
|
+
export type ListIntegrationExecutionsOkResponse = ResponseWithPagination<IntegrationExecutionList>;
|
|
23
|
+
export type ListIntegrationExecutionsErrorResponse = ErrorResponseResponse;
|
|
24
|
+
export interface ListIntegrationExecutionsProps extends Omit<FetcherOptions<ListIntegrationExecutionsQueryQueryParams, unknown, ListIntegrationExecutionsQueryHeaderParams>, 'url'> {
|
|
25
|
+
queryParams: ListIntegrationExecutionsQueryQueryParams;
|
|
26
|
+
}
|
|
27
|
+
export declare function listIntegrationExecutions(props: ListIntegrationExecutionsProps): Promise<ListIntegrationExecutionsOkResponse>;
|
|
28
|
+
/**
|
|
29
|
+
* List integration plugin executions for a reference
|
|
30
|
+
*/
|
|
31
|
+
export declare function useListIntegrationExecutionsQuery(props: ListIntegrationExecutionsProps, options?: Omit<UseQueryOptions<ListIntegrationExecutionsOkResponse, ListIntegrationExecutionsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListIntegrationExecutionsOkResponse, 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 listIntegrationExecutions(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/integration/executions`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List integration plugin executions for a reference
|
|
11
|
+
*/
|
|
12
|
+
export function useListIntegrationExecutionsQuery(props, options) {
|
|
13
|
+
return useQuery(['listIntegrationExecutions', props.queryParams], ({ signal }) => listIntegrationExecutions(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ExecutionStartResponseResponse } from '../responses/ExecutionStartResponseResponse';
|
|
3
3
|
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
@@ -17,13 +17,13 @@ export type PostOrchestrationProcessExecuteRequestBody = {
|
|
|
17
17
|
/**
|
|
18
18
|
* Process input identifier to use for this execution (required)
|
|
19
19
|
*/
|
|
20
|
-
|
|
20
|
+
inputIdentifier: string;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Input YAML to configure global and phase inputs for this execution
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
inputYaml: string;
|
|
25
25
|
};
|
|
26
|
-
export type PostOrchestrationProcessExecuteOkResponse = ResponseWithPagination<
|
|
26
|
+
export type PostOrchestrationProcessExecuteOkResponse = ResponseWithPagination<ExecutionStartResponseResponse>;
|
|
27
27
|
export type PostOrchestrationProcessExecuteErrorResponse = ErrorResponseResponse;
|
|
28
28
|
export interface PostOrchestrationProcessExecuteProps extends PostOrchestrationProcessExecuteMutationPathParams, Omit<FetcherOptions<PostOrchestrationProcessExecuteMutationQueryParams, PostOrchestrationProcessExecuteRequestBody, PostOrchestrationProcessExecuteMutationHeaderParams>, 'url'> {
|
|
29
29
|
queryParams: PostOrchestrationProcessExecuteMutationQueryParams;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ExecutionStartResponseResponse } from '../responses/ExecutionStartResponseResponse';
|
|
2
3
|
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
3
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
@@ -18,16 +19,7 @@ export type StartReleaseExecutionRequestBody = {
|
|
|
18
19
|
*/
|
|
19
20
|
releaseInputYaml: string;
|
|
20
21
|
};
|
|
21
|
-
export type StartReleaseExecutionOkResponse = ResponseWithPagination<
|
|
22
|
-
/**
|
|
23
|
-
* Identifier of the started execution
|
|
24
|
-
*/
|
|
25
|
-
identifier: string;
|
|
26
|
-
/**
|
|
27
|
-
* YAML content of the release
|
|
28
|
-
*/
|
|
29
|
-
yaml: string;
|
|
30
|
-
}>;
|
|
22
|
+
export type StartReleaseExecutionOkResponse = ResponseWithPagination<ExecutionStartResponseResponse>;
|
|
31
23
|
export type StartReleaseExecutionErrorResponse = ErrorResponseResponse;
|
|
32
24
|
export interface StartReleaseExecutionProps extends StartReleaseExecutionMutationPathParams, Omit<FetcherOptions<StartReleaseExecutionMutationQueryParams, StartReleaseExecutionRequestBody, StartReleaseExecutionMutationHeaderParams>, 'url'> {
|
|
33
25
|
queryParams: StartReleaseExecutionMutationQueryParams;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TriggerIntegrationExecutionResponse } from '../schemas/TriggerIntegrationExecutionResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { TriggerIntegrationExecutionRequest } from '../schemas/TriggerIntegrationExecutionRequest';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface TriggerIntegrationExecutionMutationQueryParams {
|
|
8
|
+
orgIdentifier?: string;
|
|
9
|
+
projectIdentifier?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface TriggerIntegrationExecutionMutationHeaderParams {
|
|
12
|
+
'Harness-Account': string;
|
|
13
|
+
}
|
|
14
|
+
export type TriggerIntegrationExecutionRequestBody = TriggerIntegrationExecutionRequest;
|
|
15
|
+
export type TriggerIntegrationExecutionOkResponse = ResponseWithPagination<TriggerIntegrationExecutionResponse>;
|
|
16
|
+
export type TriggerIntegrationExecutionErrorResponse = ErrorResponseResponse;
|
|
17
|
+
export interface TriggerIntegrationExecutionProps extends Omit<FetcherOptions<TriggerIntegrationExecutionMutationQueryParams, TriggerIntegrationExecutionRequestBody, TriggerIntegrationExecutionMutationHeaderParams>, 'url'> {
|
|
18
|
+
queryParams: TriggerIntegrationExecutionMutationQueryParams;
|
|
19
|
+
body: TriggerIntegrationExecutionRequestBody;
|
|
20
|
+
}
|
|
21
|
+
export declare function triggerIntegrationExecution(props: TriggerIntegrationExecutionProps): Promise<TriggerIntegrationExecutionOkResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Trigger an integration plugin execution
|
|
24
|
+
*/
|
|
25
|
+
export declare function useTriggerIntegrationExecutionMutation(options?: Omit<UseMutationOptions<TriggerIntegrationExecutionOkResponse, TriggerIntegrationExecutionErrorResponse, TriggerIntegrationExecutionProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<TriggerIntegrationExecutionOkResponse, import("..").Error, TriggerIntegrationExecutionProps, 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 triggerIntegrationExecution(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/integration/executions`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Trigger an integration plugin execution
|
|
11
|
+
*/
|
|
12
|
+
export function useTriggerIntegrationExecutionMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => triggerIntegrationExecution(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -33,6 +33,8 @@ export type { GetFreezeDetailsErrorResponse, GetFreezeDetailsOkResponse, GetFree
|
|
|
33
33
|
export { getFreezeDetails, useGetFreezeDetailsQuery } from './hooks/useGetFreezeDetailsQuery';
|
|
34
34
|
export type { GetFreezeListErrorResponse, GetFreezeListOkResponse, GetFreezeListProps, GetFreezeListQueryQueryParams, } from './hooks/useGetFreezeListQuery';
|
|
35
35
|
export { getFreezeList, useGetFreezeListQuery } from './hooks/useGetFreezeListQuery';
|
|
36
|
+
export type { GetIntegrationExecutionErrorResponse, GetIntegrationExecutionOkResponse, GetIntegrationExecutionProps, GetIntegrationExecutionQueryPathParams, GetIntegrationExecutionQueryQueryParams, } from './hooks/useGetIntegrationExecutionQuery';
|
|
37
|
+
export { getIntegrationExecution, useGetIntegrationExecutionQuery, } from './hooks/useGetIntegrationExecutionQuery';
|
|
36
38
|
export type { GetOrchestrationActivitiesByAcitivityRefsErrorResponse, GetOrchestrationActivitiesByAcitivityRefsMutationQueryParams, GetOrchestrationActivitiesByAcitivityRefsOkResponse, GetOrchestrationActivitiesByAcitivityRefsProps, GetOrchestrationActivitiesByAcitivityRefsRequestBody, } from './hooks/useGetOrchestrationActivitiesByAcitivityRefsMutation';
|
|
37
39
|
export { getOrchestrationActivitiesByAcitivityRefs, useGetOrchestrationActivitiesByAcitivityRefsMutation, } from './hooks/useGetOrchestrationActivitiesByAcitivityRefsMutation';
|
|
38
40
|
export type { GetOrchestrationActivitiesByProcessIdentifierErrorResponse, GetOrchestrationActivitiesByProcessIdentifierOkResponse, GetOrchestrationActivitiesByProcessIdentifierProps, GetOrchestrationActivitiesByProcessIdentifierQueryPathParams, GetOrchestrationActivitiesByProcessIdentifierQueryQueryParams, } from './hooks/useGetOrchestrationActivitiesByProcessIdentifierQuery';
|
|
@@ -77,6 +79,10 @@ export type { GetOrchestrationProcessSummaryErrorResponse, GetOrchestrationProce
|
|
|
77
79
|
export { getOrchestrationProcessSummary, useGetOrchestrationProcessSummaryQuery, } from './hooks/useGetOrchestrationProcessSummaryQuery';
|
|
78
80
|
export type { GetProcessExecutionActivitiesPaginatedErrorResponse, GetProcessExecutionActivitiesPaginatedOkResponse, GetProcessExecutionActivitiesPaginatedProps, GetProcessExecutionActivitiesPaginatedQueryPathParams, GetProcessExecutionActivitiesPaginatedQueryQueryParams, } from './hooks/useGetProcessExecutionActivitiesPaginatedQuery';
|
|
79
81
|
export { getProcessExecutionActivitiesPaginated, useGetProcessExecutionActivitiesPaginatedQuery, } from './hooks/useGetProcessExecutionActivitiesPaginatedQuery';
|
|
82
|
+
export type { GetProcessExecutionActivitiesErrorResponse, GetProcessExecutionActivitiesOkResponse, GetProcessExecutionActivitiesProps, GetProcessExecutionActivitiesQueryPathParams, GetProcessExecutionActivitiesQueryQueryParams, } from './hooks/useGetProcessExecutionActivitiesQuery';
|
|
83
|
+
export { getProcessExecutionActivities, useGetProcessExecutionActivitiesQuery, } from './hooks/useGetProcessExecutionActivitiesQuery';
|
|
84
|
+
export type { GetProcessExecutionInputErrorResponse, GetProcessExecutionInputOkResponse, GetProcessExecutionInputProps, GetProcessExecutionInputQueryPathParams, GetProcessExecutionInputQueryQueryParams, } from './hooks/useGetProcessExecutionInputQuery';
|
|
85
|
+
export { getProcessExecutionInput, useGetProcessExecutionInputQuery, } from './hooks/useGetProcessExecutionInputQuery';
|
|
80
86
|
export type { GetProcessExecutionPhasesErrorResponse, GetProcessExecutionPhasesOkResponse, GetProcessExecutionPhasesProps, GetProcessExecutionPhasesQueryPathParams, GetProcessExecutionPhasesQueryQueryParams, } from './hooks/useGetProcessExecutionPhasesQuery';
|
|
81
87
|
export { getProcessExecutionPhases, useGetProcessExecutionPhasesQuery, } from './hooks/useGetProcessExecutionPhasesQuery';
|
|
82
88
|
export type { GetProcessExecutionErrorResponse, GetProcessExecutionOkResponse, GetProcessExecutionProps, GetProcessExecutionQueryPathParams, GetProcessExecutionQueryQueryParams, } from './hooks/useGetProcessExecutionQuery';
|
|
@@ -121,6 +127,8 @@ export type { ListArtifactTrackerServiceMappingsErrorResponse, ListArtifactTrack
|
|
|
121
127
|
export { listArtifactTrackerServiceMappings, useListArtifactTrackerServiceMappingsQuery, } from './hooks/useListArtifactTrackerServiceMappingsQuery';
|
|
122
128
|
export type { ListArtifactTrackerSettingsErrorResponse, ListArtifactTrackerSettingsOkResponse, ListArtifactTrackerSettingsProps, ListArtifactTrackerSettingsQueryQueryParams, } from './hooks/useListArtifactTrackerSettingsQuery';
|
|
123
129
|
export { listArtifactTrackerSettings, useListArtifactTrackerSettingsQuery, } from './hooks/useListArtifactTrackerSettingsQuery';
|
|
130
|
+
export type { ListIntegrationExecutionsErrorResponse, ListIntegrationExecutionsOkResponse, ListIntegrationExecutionsProps, ListIntegrationExecutionsQueryQueryParams, } from './hooks/useListIntegrationExecutionsQuery';
|
|
131
|
+
export { listIntegrationExecutions, useListIntegrationExecutionsQuery, } from './hooks/useListIntegrationExecutionsQuery';
|
|
124
132
|
export type { PatchReleaseGroupErrorResponse, PatchReleaseGroupMutationPathParams, PatchReleaseGroupMutationQueryParams, PatchReleaseGroupOkResponse, PatchReleaseGroupProps, PatchReleaseGroupRequestBody, } from './hooks/usePatchReleaseGroupMutation';
|
|
125
133
|
export { patchReleaseGroup, usePatchReleaseGroupMutation, } from './hooks/usePatchReleaseGroupMutation';
|
|
126
134
|
export type { PostActivityExecutionOutputErrorResponse, PostActivityExecutionOutputMutationPathParams, PostActivityExecutionOutputMutationQueryParams, PostActivityExecutionOutputOkResponse, PostActivityExecutionOutputProps, PostActivityExecutionOutputRequestBody, } from './hooks/usePostActivityExecutionOutputMutation';
|
|
@@ -175,6 +183,8 @@ export type { StartReleaseExecutionErrorResponse, StartReleaseExecutionMutationP
|
|
|
175
183
|
export { startReleaseExecution, useStartReleaseExecutionMutation, } from './hooks/useStartReleaseExecutionMutation';
|
|
176
184
|
export type { StreamUploadErrorResponse, StreamUploadMutationQueryParams, StreamUploadOkResponse, StreamUploadProps, StreamUploadRequestBody, } from './hooks/useStreamUploadMutation';
|
|
177
185
|
export { streamUpload, useStreamUploadMutation } from './hooks/useStreamUploadMutation';
|
|
186
|
+
export type { TriggerIntegrationExecutionErrorResponse, TriggerIntegrationExecutionMutationQueryParams, TriggerIntegrationExecutionOkResponse, TriggerIntegrationExecutionProps, TriggerIntegrationExecutionRequestBody, } from './hooks/useTriggerIntegrationExecutionMutation';
|
|
187
|
+
export { triggerIntegrationExecution, useTriggerIntegrationExecutionMutation, } from './hooks/useTriggerIntegrationExecutionMutation';
|
|
178
188
|
export type { UpdateArtifactTrackerServiceMappingErrorResponse, UpdateArtifactTrackerServiceMappingMutationPathParams, UpdateArtifactTrackerServiceMappingMutationQueryParams, UpdateArtifactTrackerServiceMappingOkResponse, UpdateArtifactTrackerServiceMappingProps, UpdateArtifactTrackerServiceMappingRequestBody, } from './hooks/useUpdateArtifactTrackerServiceMappingMutation';
|
|
179
189
|
export { updateArtifactTrackerServiceMapping, useUpdateArtifactTrackerServiceMappingMutation, } from './hooks/useUpdateArtifactTrackerServiceMappingMutation';
|
|
180
190
|
export type { UpdateExecutionTaskMetadataErrorResponse, UpdateExecutionTaskMetadataMutationPathParams, UpdateExecutionTaskMetadataMutationQueryParams, UpdateExecutionTaskMetadataOkResponse, UpdateExecutionTaskMetadataProps, UpdateExecutionTaskMetadataRequestBody, } from './hooks/useUpdateExecutionTaskMetadataMutation';
|
|
@@ -216,21 +226,23 @@ export type { EnvironmentDashboardResponseResponse } from './responses/Environme
|
|
|
216
226
|
export type { EnvironmentListPerReleaseResponseResponse } from './responses/EnvironmentListPerReleaseResponseResponse';
|
|
217
227
|
export type { ErrorResponseResponse } from './responses/ErrorResponseResponse';
|
|
218
228
|
export type { EventsResponseResponse } from './responses/EventsResponseResponse';
|
|
219
|
-
export type { ExecuteProcessResponseResponse } from './responses/ExecuteProcessResponseResponse';
|
|
220
229
|
export type { ExecutionOutputsResponseResponse } from './responses/ExecutionOutputsResponseResponse';
|
|
221
230
|
export type { ExecutionOutputsV2ResponseResponse } from './responses/ExecutionOutputsV2ResponseResponse';
|
|
231
|
+
export type { ExecutionStartResponseResponse } from './responses/ExecutionStartResponseResponse';
|
|
222
232
|
export type { ExecutionTasksListResponseResponse } from './responses/ExecutionTasksListResponseResponse';
|
|
223
233
|
export type { FreezeDetailsResponseResponse } from './responses/FreezeDetailsResponseResponse';
|
|
224
234
|
export type { FreezeListResponseResponse } from './responses/FreezeListResponseResponse';
|
|
225
235
|
export type { GetOrchestrationActivityResponseResponse } from './responses/GetOrchestrationActivityResponseResponse';
|
|
226
236
|
export type { GetOrchestrationProcessInputResponseResponse } from './responses/GetOrchestrationProcessInputResponseResponse';
|
|
227
237
|
export type { GetOrchestrationProcessResponseResponse } from './responses/GetOrchestrationProcessResponseResponse';
|
|
238
|
+
export type { GetProcessExecutionInputResponseResponse } from './responses/GetProcessExecutionInputResponseResponse';
|
|
228
239
|
export type { GetProcessExecutionResponseResponse } from './responses/GetProcessExecutionResponseResponse';
|
|
229
240
|
export type { GetReleaseGroupResponseResponse } from './responses/GetReleaseGroupResponseResponse';
|
|
230
241
|
export type { OnHoldActivityActionResponseResponse } from './responses/OnHoldActivityActionResponseResponse';
|
|
231
242
|
export type { OrchestrationActivityListByProcessIdentifierResponseResponse } from './responses/OrchestrationActivityListByProcessIdentifierResponseResponse';
|
|
232
243
|
export type { OrchestrationActivitySummaryResponseResponse } from './responses/OrchestrationActivitySummaryResponseResponse';
|
|
233
244
|
export type { OrchestrationExecutionActivitiesPaginatedResponseResponse } from './responses/OrchestrationExecutionActivitiesPaginatedResponseResponse';
|
|
245
|
+
export type { OrchestrationExecutionActivitiesResponseResponse } from './responses/OrchestrationExecutionActivitiesResponseResponse';
|
|
234
246
|
export type { OrchestrationProcessAttachedReleaseGroupsResponseResponse } from './responses/OrchestrationProcessAttachedReleaseGroupsResponseResponse';
|
|
235
247
|
export type { OrchestrationProcessInputSummaryResponseResponse } from './responses/OrchestrationProcessInputSummaryResponseResponse';
|
|
236
248
|
export type { OrchestrationProcessSummaryResponseResponse } from './responses/OrchestrationProcessSummaryResponseResponse';
|
|
@@ -313,11 +325,11 @@ export type { EventDto } from './schemas/EventDto';
|
|
|
313
325
|
export type { EventEntity } from './schemas/EventEntity';
|
|
314
326
|
export type { EventMetadata } from './schemas/EventMetadata';
|
|
315
327
|
export type { EventType } from './schemas/EventType';
|
|
316
|
-
export type { ExecuteProcessResponseDto } from './schemas/ExecuteProcessResponseDto';
|
|
317
328
|
export type { ExecutionConflict } from './schemas/ExecutionConflict';
|
|
318
329
|
export type { ExecutionOutputDto } from './schemas/ExecutionOutputDto';
|
|
319
330
|
export type { ExecutionOutputGroupDto } from './schemas/ExecutionOutputGroupDto';
|
|
320
331
|
export type { ExecutionOutputV2Dto } from './schemas/ExecutionOutputV2Dto';
|
|
332
|
+
export type { ExecutionStartResponse } from './schemas/ExecutionStartResponse';
|
|
321
333
|
export type { ExecutionTaskDto } from './schemas/ExecutionTaskDto';
|
|
322
334
|
export type { ExecutionTaskStatus } from './schemas/ExecutionTaskStatus';
|
|
323
335
|
export type { ExecutionTriggerInfo } from './schemas/ExecutionTriggerInfo';
|
|
@@ -341,6 +353,8 @@ export type { InfrastructureInputVariable } from './schemas/InfrastructureInputV
|
|
|
341
353
|
export type { InfrastructureMetadata } from './schemas/InfrastructureMetadata';
|
|
342
354
|
export type { InputVariable } from './schemas/InputVariable';
|
|
343
355
|
export type { InputVariableType } from './schemas/InputVariableType';
|
|
356
|
+
export type { IntegrationExecution } from './schemas/IntegrationExecution';
|
|
357
|
+
export type { IntegrationExecutionList } from './schemas/IntegrationExecutionList';
|
|
344
358
|
export type { LastUpdatedByDto } from './schemas/LastUpdatedByDto';
|
|
345
359
|
export type { ManualActivityInfo } from './schemas/ManualActivityInfo';
|
|
346
360
|
export type { ManualTaskYaml } from './schemas/ManualTaskYaml';
|
|
@@ -383,7 +397,10 @@ export type { PipelineStageInfo } from './schemas/PipelineStageInfo';
|
|
|
383
397
|
export type { PolicyMetadata } from './schemas/PolicyMetadata';
|
|
384
398
|
export type { PolicySetMetadata } from './schemas/PolicySetMetadata';
|
|
385
399
|
export type { PrimitiveInputVariable } from './schemas/PrimitiveInputVariable';
|
|
400
|
+
export type { ProcessExecutionDetailsResponse } from './schemas/ProcessExecutionDetailsResponse';
|
|
386
401
|
export type { ProcessExecutionDto } from './schemas/ProcessExecutionDto';
|
|
402
|
+
export type { ProcessExecutionInfoDto } from './schemas/ProcessExecutionInfoDto';
|
|
403
|
+
export type { ProcessExecutionInputResponse } from './schemas/ProcessExecutionInputResponse';
|
|
387
404
|
export type { ProcessInputSummaryDto } from './schemas/ProcessInputSummaryDto';
|
|
388
405
|
export type { ProcessInputValidationResponse } from './schemas/ProcessInputValidationResponse';
|
|
389
406
|
export type { ReleaseActionRequest } from './schemas/ReleaseActionRequest';
|
|
@@ -398,6 +415,7 @@ export type { ReleaseDto } from './schemas/ReleaseDto';
|
|
|
398
415
|
export type { ReleaseFrequency } from './schemas/ReleaseFrequency';
|
|
399
416
|
export type { ReleaseGroupDto } from './schemas/ReleaseGroupDto';
|
|
400
417
|
export type { ReleaseGroupYaml } from './schemas/ReleaseGroupYaml';
|
|
418
|
+
export type { ReleaseInfo } from './schemas/ReleaseInfo';
|
|
401
419
|
export type { ReleaseInputYaml } from './schemas/ReleaseInputYaml';
|
|
402
420
|
export type { ReleaseParentDto } from './schemas/ReleaseParentDto';
|
|
403
421
|
export type { ReleaseType } from './schemas/ReleaseType';
|
|
@@ -430,6 +448,8 @@ export type { TaskCommentsListResponseDto } from './schemas/TaskCommentsListResp
|
|
|
430
448
|
export type { TaskExecuteConfig } from './schemas/TaskExecuteConfig';
|
|
431
449
|
export type { TemplateReferenceSummary } from './schemas/TemplateReferenceSummary';
|
|
432
450
|
export type { TimeRangeDto } from './schemas/TimeRangeDto';
|
|
451
|
+
export type { TriggerIntegrationExecutionRequest } from './schemas/TriggerIntegrationExecutionRequest';
|
|
452
|
+
export type { TriggerIntegrationExecutionResponse } from './schemas/TriggerIntegrationExecutionResponse';
|
|
433
453
|
export type { TriggerType } from './schemas/TriggerType';
|
|
434
454
|
export type { TriggeredBy } from './schemas/TriggeredBy';
|
|
435
455
|
export type { TriggeredByDto } from './schemas/TriggeredByDto';
|
|
@@ -15,6 +15,7 @@ export { getArtifactTrackerSettings, useGetArtifactTrackerSettingsQuery, } from
|
|
|
15
15
|
export { getEventsByEntityTypeAndId, useGetEventsByEntityTypeAndIdQuery, } from './hooks/useGetEventsByEntityTypeAndIdQuery';
|
|
16
16
|
export { getFreezeDetails, useGetFreezeDetailsQuery } from './hooks/useGetFreezeDetailsQuery';
|
|
17
17
|
export { getFreezeList, useGetFreezeListQuery } from './hooks/useGetFreezeListQuery';
|
|
18
|
+
export { getIntegrationExecution, useGetIntegrationExecutionQuery, } from './hooks/useGetIntegrationExecutionQuery';
|
|
18
19
|
export { getOrchestrationActivitiesByAcitivityRefs, useGetOrchestrationActivitiesByAcitivityRefsMutation, } from './hooks/useGetOrchestrationActivitiesByAcitivityRefsMutation';
|
|
19
20
|
export { getOrchestrationActivitiesByProcessIdentifier, useGetOrchestrationActivitiesByProcessIdentifierQuery, } from './hooks/useGetOrchestrationActivitiesByProcessIdentifierQuery';
|
|
20
21
|
export { getOrchestrationActivityInputs, useGetOrchestrationActivityInputsQuery, } from './hooks/useGetOrchestrationActivityInputsQuery';
|
|
@@ -37,6 +38,8 @@ export { getOrchestrationProcessInputSummary, useGetOrchestrationProcessInputSum
|
|
|
37
38
|
export { getOrchestrationProcess, useGetOrchestrationProcessQuery, } from './hooks/useGetOrchestrationProcessQuery';
|
|
38
39
|
export { getOrchestrationProcessSummary, useGetOrchestrationProcessSummaryQuery, } from './hooks/useGetOrchestrationProcessSummaryQuery';
|
|
39
40
|
export { getProcessExecutionActivitiesPaginated, useGetProcessExecutionActivitiesPaginatedQuery, } from './hooks/useGetProcessExecutionActivitiesPaginatedQuery';
|
|
41
|
+
export { getProcessExecutionActivities, useGetProcessExecutionActivitiesQuery, } from './hooks/useGetProcessExecutionActivitiesQuery';
|
|
42
|
+
export { getProcessExecutionInput, useGetProcessExecutionInputQuery, } from './hooks/useGetProcessExecutionInputQuery';
|
|
40
43
|
export { getProcessExecutionPhases, useGetProcessExecutionPhasesQuery, } from './hooks/useGetProcessExecutionPhasesQuery';
|
|
41
44
|
export { getProcessExecution, useGetProcessExecutionQuery, } from './hooks/useGetProcessExecutionQuery';
|
|
42
45
|
export { getReleaseActivities, useGetReleaseActivitiesQuery, } from './hooks/useGetReleaseActivitiesQuery';
|
|
@@ -59,6 +62,7 @@ export { getYamlSchema, useGetYamlSchemaQuery } from './hooks/useGetYamlSchemaQu
|
|
|
59
62
|
export { ingestWebhookSignal, useIngestWebhookSignalMutation, } from './hooks/useIngestWebhookSignalMutation';
|
|
60
63
|
export { listArtifactTrackerServiceMappings, useListArtifactTrackerServiceMappingsQuery, } from './hooks/useListArtifactTrackerServiceMappingsQuery';
|
|
61
64
|
export { listArtifactTrackerSettings, useListArtifactTrackerSettingsQuery, } from './hooks/useListArtifactTrackerSettingsQuery';
|
|
65
|
+
export { listIntegrationExecutions, useListIntegrationExecutionsQuery, } from './hooks/useListIntegrationExecutionsQuery';
|
|
62
66
|
export { patchReleaseGroup, usePatchReleaseGroupMutation, } from './hooks/usePatchReleaseGroupMutation';
|
|
63
67
|
export { postActivityExecutionOutput, usePostActivityExecutionOutputMutation, } from './hooks/usePostActivityExecutionOutputMutation';
|
|
64
68
|
export { postOnHoldActivityAction, usePostOnHoldActivityActionMutation, } from './hooks/usePostOnHoldActivityActionMutation';
|
|
@@ -86,6 +90,7 @@ export { putReleaseReleaseId, usePutReleaseReleaseIdMutation, } from './hooks/us
|
|
|
86
90
|
export { serveUpload, useServeUploadQuery } from './hooks/useServeUploadQuery';
|
|
87
91
|
export { startReleaseExecution, useStartReleaseExecutionMutation, } from './hooks/useStartReleaseExecutionMutation';
|
|
88
92
|
export { streamUpload, useStreamUploadMutation } from './hooks/useStreamUploadMutation';
|
|
93
|
+
export { triggerIntegrationExecution, useTriggerIntegrationExecutionMutation, } from './hooks/useTriggerIntegrationExecutionMutation';
|
|
89
94
|
export { updateArtifactTrackerServiceMapping, useUpdateArtifactTrackerServiceMappingMutation, } from './hooks/useUpdateArtifactTrackerServiceMappingMutation';
|
|
90
95
|
export { updateExecutionTaskMetadata, useUpdateExecutionTaskMetadataMutation, } from './hooks/useUpdateExecutionTaskMetadataMutation';
|
|
91
96
|
export { updateExecutionTaskStatus, useUpdateExecutionTaskStatusMutation, } from './hooks/useUpdateExecutionTaskStatusMutation';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type GetProcessExecutionResponseResponse =
|
|
1
|
+
import type { ProcessExecutionDetailsResponse } from '../schemas/ProcessExecutionDetailsResponse';
|
|
2
|
+
export type GetProcessExecutionResponseResponse = ProcessExecutionDetailsResponse;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { OrchestrationExecutionActivity } from '../schemas/OrchestrationExecutionActivity';
|
|
2
|
+
export interface OrchestrationExecutionActivitiesResponseResponse {
|
|
3
|
+
activities: OrchestrationExecutionActivity[];
|
|
4
|
+
/**
|
|
5
|
+
* ID of the phase execution
|
|
6
|
+
*/
|
|
7
|
+
phase_execution_id?: string;
|
|
8
|
+
/**
|
|
9
|
+
* ID or slug of the process execution
|
|
10
|
+
*/
|
|
11
|
+
process_execution_id?: string;
|
|
12
|
+
/**
|
|
13
|
+
* ID of the release
|
|
14
|
+
*/
|
|
15
|
+
release_id?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Total number of currently running activities
|
|
18
|
+
*/
|
|
19
|
+
total_running_activities: number;
|
|
20
|
+
}
|
package/dist/rmg-service/src/services/responses/OrchestrationExecutionActivitiesResponseResponse.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Response for starting a release or process execution
|
|
3
|
+
*/
|
|
4
|
+
export interface ExecutionStartResponse {
|
|
5
|
+
/**
|
|
6
|
+
* Navigation slug for the started process execution (on-the-go process execute only)
|
|
7
|
+
*/
|
|
8
|
+
executionId?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Identifier of the started release or orchestration process
|
|
11
|
+
*/
|
|
12
|
+
identifier: string;
|
|
13
|
+
/**
|
|
14
|
+
* YAML content of the release or execution input
|
|
15
|
+
*/
|
|
16
|
+
yaml: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface IntegrationExecution {
|
|
2
|
+
accountId: string;
|
|
3
|
+
/**
|
|
4
|
+
* @format int64
|
|
5
|
+
*/
|
|
6
|
+
createdAt: number;
|
|
7
|
+
errorMessage?: string;
|
|
8
|
+
id: string;
|
|
9
|
+
idempotencyKey: string;
|
|
10
|
+
/**
|
|
11
|
+
* @format int64
|
|
12
|
+
*/
|
|
13
|
+
lastUpdatedAt: number;
|
|
14
|
+
orgId?: string;
|
|
15
|
+
pipelineExecutionId?: string;
|
|
16
|
+
pluginType: string;
|
|
17
|
+
projectId?: string;
|
|
18
|
+
referenceId: string;
|
|
19
|
+
status: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IntegrationExecution } from '../schemas/IntegrationExecution';
|
|
2
|
+
export interface IntegrationExecutionList {
|
|
3
|
+
content: IntegrationExecution[];
|
|
4
|
+
pageNumber: number;
|
|
5
|
+
pageSize: number;
|
|
6
|
+
/**
|
|
7
|
+
* @format int64
|
|
8
|
+
*/
|
|
9
|
+
totalElements: number;
|
|
10
|
+
totalPages: number;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ProcessExecutionInfoDto } from '../schemas/ProcessExecutionInfoDto';
|
|
2
|
+
/**
|
|
3
|
+
* Response for GET /orchestration/process/execution/{executionId}.
|
|
4
|
+
*/
|
|
5
|
+
export interface ProcessExecutionDetailsResponse {
|
|
6
|
+
executionInfo: ProcessExecutionInfoDto;
|
|
7
|
+
/**
|
|
8
|
+
* Process YAML snapshot persisted at execution start (includes runtime UUIDs)
|
|
9
|
+
*/
|
|
10
|
+
yaml: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import type { ReleaseInfo } from '../schemas/ReleaseInfo';
|
|
1
2
|
import type { OrchestrationStatus } from '../schemas/OrchestrationStatus';
|
|
3
|
+
import type { TriggeredByDto } from '../schemas/TriggeredByDto';
|
|
2
4
|
/**
|
|
3
5
|
* A single execution history row for GET /orchestration/process/{identifier}/executions. Process context comes from the URL path; use executionId to navigate to the execution.
|
|
4
6
|
*
|
|
@@ -9,14 +11,36 @@ export interface ProcessExecutionDto {
|
|
|
9
11
|
*/
|
|
10
12
|
createdAt?: number;
|
|
11
13
|
/**
|
|
12
|
-
*
|
|
14
|
+
* Execution end timestamp in milliseconds. Omitted while execution is in progress.
|
|
15
|
+
*/
|
|
16
|
+
endedAt?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Navigation ID — process execution slug ID for PROCESS executions, release slug ID for RELEASE executions
|
|
13
19
|
*/
|
|
14
20
|
executionId?: string;
|
|
15
21
|
/**
|
|
16
22
|
* Type of execution
|
|
17
23
|
*/
|
|
18
24
|
executionType: 'PROCESS' | 'RELEASE';
|
|
25
|
+
/**
|
|
26
|
+
* Identifier of the orchestration process
|
|
27
|
+
*/
|
|
28
|
+
processIdentifier?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Process input set identifier used for this execution. Omitted when default values were used.
|
|
31
|
+
*/
|
|
32
|
+
processInputIdentifier?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Display name of the orchestration process
|
|
35
|
+
*/
|
|
36
|
+
processName?: string;
|
|
37
|
+
releaseInfo?: ReleaseInfo;
|
|
38
|
+
/**
|
|
39
|
+
* Execution start timestamp in milliseconds
|
|
40
|
+
*/
|
|
41
|
+
startedAt: number;
|
|
19
42
|
status: OrchestrationStatus;
|
|
43
|
+
triggeredBy?: TriggeredByDto;
|
|
20
44
|
/**
|
|
21
45
|
* Last updated timestamp in milliseconds
|
|
22
46
|
*/
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { TriggeredByDto } from '../schemas/TriggeredByDto';
|
|
2
|
+
/**
|
|
3
|
+
* Summary metadata for a single process execution (GET /orchestration/process/execution/{executionId}).
|
|
4
|
+
*/
|
|
5
|
+
export interface ProcessExecutionInfoDto {
|
|
6
|
+
accountIdentifier: string;
|
|
7
|
+
/**
|
|
8
|
+
* Navigation ID — process execution slug for PROCESS runs, release slug for RELEASE runs
|
|
9
|
+
*/
|
|
10
|
+
executionId: string;
|
|
11
|
+
executionType: 'PROCESS' | 'RELEASE';
|
|
12
|
+
orgIdentifier: string;
|
|
13
|
+
/**
|
|
14
|
+
* Identifier of the orchestration process
|
|
15
|
+
*/
|
|
16
|
+
processIdentifier: string;
|
|
17
|
+
projectIdentifier: string;
|
|
18
|
+
/**
|
|
19
|
+
* Execution start timestamp in milliseconds
|
|
20
|
+
* @format int64
|
|
21
|
+
*/
|
|
22
|
+
startTs: number;
|
|
23
|
+
/**
|
|
24
|
+
* Release-style execution status
|
|
25
|
+
*/
|
|
26
|
+
status: 'Aborted' | 'Failed' | 'InputWaiting' | 'Paused' | 'Running' | 'Scheduled' | 'Success';
|
|
27
|
+
triggeredBy?: TriggeredByDto;
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Response for GET /orchestration/process/execution/{executionId}/Input.
|
|
3
|
+
*/
|
|
4
|
+
export interface ProcessExecutionInputResponse {
|
|
5
|
+
/**
|
|
6
|
+
* Process execution slug ID
|
|
7
|
+
*/
|
|
8
|
+
process_execution_id: string;
|
|
9
|
+
/**
|
|
10
|
+
* YAML content of the process execution input
|
|
11
|
+
*/
|
|
12
|
+
yaml: string;
|
|
13
|
+
}
|
package/package.json
CHANGED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { OrchestrationStatus } from '../schemas/OrchestrationStatus';
|
|
2
|
-
/**
|
|
3
|
-
* Response content for POST /orchestration/process/{identifier}/execute
|
|
4
|
-
*/
|
|
5
|
-
export interface ExecuteProcessResponseDto {
|
|
6
|
-
/**
|
|
7
|
-
* Creation timestamp in milliseconds
|
|
8
|
-
*/
|
|
9
|
-
createdAt: number;
|
|
10
|
-
/**
|
|
11
|
-
* Process execution ID for navigating to process execution APIs
|
|
12
|
-
*/
|
|
13
|
-
executionId: string;
|
|
14
|
-
/**
|
|
15
|
-
* Type of execution
|
|
16
|
-
*/
|
|
17
|
-
executionType: 'PROCESS';
|
|
18
|
-
/**
|
|
19
|
-
* Identifier of the orchestration process that was executed
|
|
20
|
-
*/
|
|
21
|
-
processIdentifier: string;
|
|
22
|
-
/**
|
|
23
|
-
* Process input identifier used for this execution
|
|
24
|
-
*/
|
|
25
|
-
processInputIdentifier: string;
|
|
26
|
-
status: OrchestrationStatus;
|
|
27
|
-
/**
|
|
28
|
-
* Last updated timestamp in milliseconds
|
|
29
|
-
*/
|
|
30
|
-
updatedAt?: number;
|
|
31
|
-
}
|
|
File without changes
|