@harnessio/react-pipeline-swagger-service-client 1.8.1 → 1.8.2
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/pipeline-swagger-service/src/services/hooks/useGetExecutionGraphQuery.d.ts +24 -0
- package/dist/pipeline-swagger-service/src/services/hooks/useGetExecutionGraphQuery.js +14 -0
- package/dist/pipeline-swagger-service/src/services/index.d.ts +3 -0
- package/dist/pipeline-swagger-service/src/services/index.js +1 -0
- package/dist/pipeline-swagger-service/src/services/schemas/ResponseExecutionGraph.d.ts +9 -0
- package/dist/pipeline-swagger-service/src/services/schemas/ResponseExecutionGraph.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponseExecutionGraph } from '../schemas/ResponseExecutionGraph';
|
|
3
|
+
import type { Failure } from '../schemas/Failure';
|
|
4
|
+
import type { Error } from '../schemas/Error';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface GetExecutionGraphQueryPathParams {
|
|
8
|
+
planExecutionId: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GetExecutionGraphQueryQueryParams {
|
|
11
|
+
accountIdentifier: string;
|
|
12
|
+
orgIdentifier: string;
|
|
13
|
+
projectIdentifier: string;
|
|
14
|
+
}
|
|
15
|
+
export type GetExecutionGraphOkResponse = ResponseWithPagination<ResponseExecutionGraph>;
|
|
16
|
+
export type GetExecutionGraphErrorResponse = Failure | Error;
|
|
17
|
+
export interface GetExecutionGraphProps extends GetExecutionGraphQueryPathParams, Omit<FetcherOptions<GetExecutionGraphQueryQueryParams, unknown>, 'url'> {
|
|
18
|
+
queryParams: GetExecutionGraphQueryQueryParams;
|
|
19
|
+
}
|
|
20
|
+
export declare function getExecutionGraph(props: GetExecutionGraphProps): Promise<GetExecutionGraphOkResponse>;
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
export declare function useGetExecutionGraphQuery(props: GetExecutionGraphProps, options?: Omit<UseQueryOptions<GetExecutionGraphOkResponse, GetExecutionGraphErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetExecutionGraphOkResponse, GetExecutionGraphErrorResponse>;
|
|
@@ -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 getExecutionGraph(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/pipelines/execution/getExecutionGraph/${props.planExecutionId}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useGetExecutionGraphQuery(props, options) {
|
|
13
|
+
return useQuery(['getExecutionGraph', props.planExecutionId, props.queryParams], ({ signal }) => getExecutionGraph(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -23,6 +23,8 @@ export type { GetExecutionDataErrorResponse, GetExecutionDataOkResponse, GetExec
|
|
|
23
23
|
export { getExecutionData, useGetExecutionDataQuery } from './hooks/useGetExecutionDataQuery';
|
|
24
24
|
export type { GetExecutionDetailV2ErrorResponse, GetExecutionDetailV2OkResponse, GetExecutionDetailV2Props, GetExecutionDetailV2QueryPathParams, GetExecutionDetailV2QueryQueryParams, } from './hooks/useGetExecutionDetailV2Query';
|
|
25
25
|
export { getExecutionDetailV2, useGetExecutionDetailV2Query, } from './hooks/useGetExecutionDetailV2Query';
|
|
26
|
+
export type { GetExecutionGraphErrorResponse, GetExecutionGraphOkResponse, GetExecutionGraphProps, GetExecutionGraphQueryPathParams, GetExecutionGraphQueryQueryParams, } from './hooks/useGetExecutionGraphQuery';
|
|
27
|
+
export { getExecutionGraph, useGetExecutionGraphQuery } from './hooks/useGetExecutionGraphQuery';
|
|
26
28
|
export type { GetExecutionRepositoriesListErrorResponse, GetExecutionRepositoriesListOkResponse, GetExecutionRepositoriesListProps, GetExecutionRepositoriesListQueryQueryParams, } from './hooks/useGetExecutionRepositoriesListQuery';
|
|
27
29
|
export { getExecutionRepositoriesList, useGetExecutionRepositoriesListQuery, } from './hooks/useGetExecutionRepositoriesListQuery';
|
|
28
30
|
export type { GetFilterListErrorResponse, GetFilterListOkResponse, GetFilterListProps, GetFilterListQueryQueryParams, } from './hooks/useGetFilterListQuery';
|
|
@@ -156,6 +158,7 @@ export type { ResourceScope } from './schemas/ResourceScope';
|
|
|
156
158
|
export type { ResponseAnnotationContentResponseDto } from './schemas/ResponseAnnotationContentResponseDto';
|
|
157
159
|
export type { ResponseBoolean } from './schemas/ResponseBoolean';
|
|
158
160
|
export type { ResponseExecutionDataResponse } from './schemas/ResponseExecutionDataResponse';
|
|
161
|
+
export type { ResponseExecutionGraph } from './schemas/ResponseExecutionGraph';
|
|
159
162
|
export type { ResponseFilterDto } from './schemas/ResponseFilterDto';
|
|
160
163
|
export type { ResponseInputSetResponse } from './schemas/ResponseInputSetResponse';
|
|
161
164
|
export type { ResponseMapStringMapStringListString } from './schemas/ResponseMapStringMapStringListString';
|
|
@@ -10,6 +10,7 @@ export { getBatchInputSetsMetadata, useGetBatchInputSetsMetadataMutation, } from
|
|
|
10
10
|
export { getExecutionBranchesList, useGetExecutionBranchesListQuery, } from './hooks/useGetExecutionBranchesListQuery';
|
|
11
11
|
export { getExecutionData, useGetExecutionDataQuery } from './hooks/useGetExecutionDataQuery';
|
|
12
12
|
export { getExecutionDetailV2, useGetExecutionDetailV2Query, } from './hooks/useGetExecutionDetailV2Query';
|
|
13
|
+
export { getExecutionGraph, useGetExecutionGraphQuery } from './hooks/useGetExecutionGraphQuery';
|
|
13
14
|
export { getExecutionRepositoriesList, useGetExecutionRepositoriesListQuery, } from './hooks/useGetExecutionRepositoriesListQuery';
|
|
14
15
|
export { getFilterList, useGetFilterListQuery } from './hooks/useGetFilterListQuery';
|
|
15
16
|
export { getFilter, useGetFilterQuery } from './hooks/useGetFilterQuery';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED