@harnessio/react-ti-service-client 0.1.0 → 0.2.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/ti-service/src/services/hooks/useGetTokenQuery.d.ts +17 -0
- package/dist/ti-service/src/services/hooks/useGetTokenQuery.js +14 -0
- package/dist/ti-service/src/services/hooks/useReportSummaryQuery.d.ts +25 -0
- package/dist/ti-service/src/services/hooks/useReportSummaryQuery.js +14 -0
- package/dist/ti-service/src/services/hooks/useReportsInfoQuery.d.ts +22 -0
- package/dist/ti-service/src/services/hooks/useReportsInfoQuery.js +14 -0
- package/dist/ti-service/src/services/hooks/useTestCaseSummaryV2Query.d.ts +42 -0
- package/dist/ti-service/src/services/hooks/useTestCaseSummaryV2Query.js +14 -0
- package/dist/ti-service/src/services/hooks/useTestInfoQuery.d.ts +22 -0
- package/dist/ti-service/src/services/hooks/useTestInfoQuery.js +14 -0
- package/dist/ti-service/src/services/hooks/useTestOverviewQuery.d.ts +24 -0
- package/dist/ti-service/src/services/hooks/useTestOverviewQuery.js +14 -0
- package/dist/ti-service/src/services/index.d.ts +21 -0
- package/dist/ti-service/src/services/index.js +6 -0
- package/dist/ti-service/src/services/schemas/ResponseMetadata.d.ts +6 -0
- package/dist/ti-service/src/services/schemas/ResponseMetadata.js +4 -0
- package/dist/ti-service/src/services/schemas/Result.d.ts +16 -0
- package/dist/ti-service/src/services/schemas/Result.js +1 -0
- package/dist/ti-service/src/services/schemas/SelectionDetails.d.ts +5 -0
- package/dist/ti-service/src/services/schemas/SelectionDetails.js +4 -0
- package/dist/ti-service/src/services/schemas/SelectionOverview.d.ts +7 -0
- package/dist/ti-service/src/services/schemas/SelectionOverview.js +1 -0
- package/dist/ti-service/src/services/schemas/StepInfo.d.ts +4 -0
- package/dist/ti-service/src/services/schemas/StepInfo.js +4 -0
- package/dist/ti-service/src/services/schemas/TestCase.d.ts +21 -0
- package/dist/ti-service/src/services/schemas/TestCase.js +1 -0
- package/dist/ti-service/src/services/schemas/TestCaseStatus.d.ts +4 -0
- package/dist/ti-service/src/services/schemas/TestCaseStatus.js +4 -0
- package/dist/ti-service/src/services/schemas/TestCases.d.ts +6 -0
- package/dist/ti-service/src/services/schemas/TestCases.js +1 -0
- package/dist/ti-service/src/services/schemas/TestReportSummary.d.ts +30 -0
- package/dist/ti-service/src/services/schemas/TestReportSummary.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { Error } from '../schemas/Error';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetTokenQueryQueryParams {
|
|
6
|
+
accountId: string;
|
|
7
|
+
}
|
|
8
|
+
export type GetTokenOkResponse = ResponseWithPagination<string>;
|
|
9
|
+
export type GetTokenErrorResponse = Error;
|
|
10
|
+
export interface GetTokenProps extends Omit<FetcherOptions<GetTokenQueryQueryParams, unknown>, 'url'> {
|
|
11
|
+
queryParams: GetTokenQueryQueryParams;
|
|
12
|
+
}
|
|
13
|
+
export declare function getToken(props: GetTokenProps): Promise<GetTokenOkResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* Get an account level token
|
|
16
|
+
*/
|
|
17
|
+
export declare function useGetTokenQuery(props: GetTokenProps, options?: Omit<UseQueryOptions<GetTokenOkResponse, GetTokenErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetTokenOkResponse, 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 getToken(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/token`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get an account level token
|
|
11
|
+
*/
|
|
12
|
+
export function useGetTokenQuery(props, options) {
|
|
13
|
+
return useQuery(['getToken', props.queryParams], ({ signal }) => getToken(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TestReportSummary } from '../schemas/TestReportSummary';
|
|
3
|
+
import type { Error } from '../schemas/Error';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface ReportSummaryQueryQueryParams {
|
|
7
|
+
accountId: string;
|
|
8
|
+
orgId: string;
|
|
9
|
+
projectId: string;
|
|
10
|
+
pipelineId: string;
|
|
11
|
+
buildId: string;
|
|
12
|
+
report: 'junit';
|
|
13
|
+
stepId?: string;
|
|
14
|
+
stageId?: string;
|
|
15
|
+
}
|
|
16
|
+
export type ReportSummaryOkResponse = ResponseWithPagination<TestReportSummary>;
|
|
17
|
+
export type ReportSummaryErrorResponse = Error;
|
|
18
|
+
export interface ReportSummaryProps extends Omit<FetcherOptions<ReportSummaryQueryQueryParams, unknown>, 'url'> {
|
|
19
|
+
queryParams: ReportSummaryQueryQueryParams;
|
|
20
|
+
}
|
|
21
|
+
export declare function reportSummary(props: ReportSummaryProps): Promise<ReportSummaryOkResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Get summary of test reports
|
|
24
|
+
*/
|
|
25
|
+
export declare function useReportSummaryQuery(props: ReportSummaryProps, options?: Omit<UseQueryOptions<ReportSummaryOkResponse, ReportSummaryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ReportSummaryOkResponse, 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 reportSummary(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/reports/summary`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get summary of test reports
|
|
11
|
+
*/
|
|
12
|
+
export function useReportSummaryQuery(props, options) {
|
|
13
|
+
return useQuery(['reportSummary', props.queryParams], ({ signal }) => reportSummary(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { StepInfo } from '../schemas/StepInfo';
|
|
3
|
+
import type { Error } from '../schemas/Error';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface ReportsInfoQueryQueryParams {
|
|
7
|
+
accountId: string;
|
|
8
|
+
orgId: string;
|
|
9
|
+
projectId: string;
|
|
10
|
+
pipelineId: string;
|
|
11
|
+
buildId: string;
|
|
12
|
+
}
|
|
13
|
+
export type ReportsInfoOkResponse = ResponseWithPagination<StepInfo[]>;
|
|
14
|
+
export type ReportsInfoErrorResponse = Error;
|
|
15
|
+
export interface ReportsInfoProps extends Omit<FetcherOptions<ReportsInfoQueryQueryParams, unknown>, 'url'> {
|
|
16
|
+
queryParams: ReportsInfoQueryQueryParams;
|
|
17
|
+
}
|
|
18
|
+
export declare function reportsInfo(props: ReportsInfoProps): Promise<ReportsInfoOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Get information about test reports
|
|
21
|
+
*/
|
|
22
|
+
export declare function useReportsInfoQuery(props: ReportsInfoProps, options?: Omit<UseQueryOptions<ReportsInfoOkResponse, ReportsInfoErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ReportsInfoOkResponse, 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 reportsInfo(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/reports/info`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get information about test reports
|
|
11
|
+
*/
|
|
12
|
+
export function useReportsInfoQuery(props, options) {
|
|
13
|
+
return useQuery(['reportsInfo', props.queryParams], ({ signal }) => reportsInfo(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TestCases } from '../schemas/TestCases';
|
|
3
|
+
import type { Error } from '../schemas/Error';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface TestCaseSummaryV2QueryQueryParams {
|
|
7
|
+
accountId: string;
|
|
8
|
+
orgId: string;
|
|
9
|
+
projectId: string;
|
|
10
|
+
pipelineId: string;
|
|
11
|
+
buildId: string;
|
|
12
|
+
stepId?: string;
|
|
13
|
+
stageId?: string;
|
|
14
|
+
report: 'junit';
|
|
15
|
+
suite_name?: string;
|
|
16
|
+
testCaseSearchTerm?: string;
|
|
17
|
+
/**
|
|
18
|
+
* @default 100
|
|
19
|
+
*/
|
|
20
|
+
pageSize?: number;
|
|
21
|
+
/**
|
|
22
|
+
* @default 0
|
|
23
|
+
*/
|
|
24
|
+
pageIndex?: number;
|
|
25
|
+
status?: 'failed';
|
|
26
|
+
flaky?: boolean;
|
|
27
|
+
sort?: 'class_name' | 'duration_ms' | 'name' | 'status';
|
|
28
|
+
/**
|
|
29
|
+
* @default "ASC"
|
|
30
|
+
*/
|
|
31
|
+
order?: 'ASC' | 'DESC';
|
|
32
|
+
}
|
|
33
|
+
export type TestCaseSummaryV2OkResponse = ResponseWithPagination<TestCases>;
|
|
34
|
+
export type TestCaseSummaryV2ErrorResponse = Error;
|
|
35
|
+
export interface TestCaseSummaryV2Props extends Omit<FetcherOptions<TestCaseSummaryV2QueryQueryParams, unknown>, 'url'> {
|
|
36
|
+
queryParams: TestCaseSummaryV2QueryQueryParams;
|
|
37
|
+
}
|
|
38
|
+
export declare function testCaseSummaryV2(props: TestCaseSummaryV2Props): Promise<TestCaseSummaryV2OkResponse>;
|
|
39
|
+
/**
|
|
40
|
+
* Get test case details
|
|
41
|
+
*/
|
|
42
|
+
export declare function useTestCaseSummaryV2Query(props: TestCaseSummaryV2Props, options?: Omit<UseQueryOptions<TestCaseSummaryV2OkResponse, TestCaseSummaryV2ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<TestCaseSummaryV2OkResponse, 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 testCaseSummaryV2(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/reports/test_cases_v2`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get test case details
|
|
11
|
+
*/
|
|
12
|
+
export function useTestCaseSummaryV2Query(props, options) {
|
|
13
|
+
return useQuery(['testCaseSummaryV2', props.queryParams], ({ signal }) => testCaseSummaryV2(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { StepInfo } from '../schemas/StepInfo';
|
|
3
|
+
import type { Error } from '../schemas/Error';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface TestInfoQueryQueryParams {
|
|
7
|
+
accountId: string;
|
|
8
|
+
orgId: string;
|
|
9
|
+
projectId: string;
|
|
10
|
+
pipelineId: string;
|
|
11
|
+
buildId: string;
|
|
12
|
+
}
|
|
13
|
+
export type TestInfoOkResponse = ResponseWithPagination<StepInfo[]>;
|
|
14
|
+
export type TestInfoErrorResponse = Error;
|
|
15
|
+
export interface TestInfoProps extends Omit<FetcherOptions<TestInfoQueryQueryParams, unknown>, 'url'> {
|
|
16
|
+
queryParams: TestInfoQueryQueryParams;
|
|
17
|
+
}
|
|
18
|
+
export declare function testInfo(props: TestInfoProps): Promise<TestInfoOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Get information about TI steps
|
|
21
|
+
*/
|
|
22
|
+
export declare function useTestInfoQuery(props: TestInfoProps, options?: Omit<UseQueryOptions<TestInfoOkResponse, TestInfoErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<TestInfoOkResponse, 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 testInfo(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/tests/info`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get information about TI steps
|
|
11
|
+
*/
|
|
12
|
+
export function useTestInfoQuery(props, options) {
|
|
13
|
+
return useQuery(['testInfo', props.queryParams], ({ signal }) => testInfo(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { SelectionOverview } from '../schemas/SelectionOverview';
|
|
3
|
+
import type { Error } from '../schemas/Error';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface TestOverviewQueryQueryParams {
|
|
7
|
+
accountId: string;
|
|
8
|
+
orgId: string;
|
|
9
|
+
projectId: string;
|
|
10
|
+
pipelineId: string;
|
|
11
|
+
buildId: string;
|
|
12
|
+
stepId: string;
|
|
13
|
+
stageId: string;
|
|
14
|
+
}
|
|
15
|
+
export type TestOverviewOkResponse = ResponseWithPagination<SelectionOverview>;
|
|
16
|
+
export type TestOverviewErrorResponse = Error;
|
|
17
|
+
export interface TestOverviewProps extends Omit<FetcherOptions<TestOverviewQueryQueryParams, unknown>, 'url'> {
|
|
18
|
+
queryParams: TestOverviewQueryQueryParams;
|
|
19
|
+
}
|
|
20
|
+
export declare function testOverview(props: TestOverviewProps): Promise<TestOverviewOkResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Get overview of selected tests.
|
|
23
|
+
*/
|
|
24
|
+
export declare function useTestOverviewQuery(props: TestOverviewProps, options?: Omit<UseQueryOptions<TestOverviewOkResponse, TestOverviewErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<TestOverviewOkResponse, 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 testOverview(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/tests/overview`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get overview of selected tests.
|
|
11
|
+
*/
|
|
12
|
+
export function useTestOverviewQuery(props, options) {
|
|
13
|
+
return useQuery(['testOverview', props.queryParams], ({ signal }) => testOverview(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
export type { GetPathParamsType, ResponseWithPagination } from './helpers';
|
|
2
2
|
export type { GetExecutionCoverageReportErrorResponse, GetExecutionCoverageReportOkResponse, GetExecutionCoverageReportProps, GetExecutionCoverageReportQueryPathParams, GetExecutionCoverageReportQueryQueryParams, } from './hooks/useGetExecutionCoverageReportQuery';
|
|
3
3
|
export { getExecutionCoverageReport, useGetExecutionCoverageReportQuery, } from './hooks/useGetExecutionCoverageReportQuery';
|
|
4
|
+
export type { GetTokenErrorResponse, GetTokenOkResponse, GetTokenProps, GetTokenQueryQueryParams, } from './hooks/useGetTokenQuery';
|
|
5
|
+
export { getToken, useGetTokenQuery } from './hooks/useGetTokenQuery';
|
|
6
|
+
export type { ReportSummaryErrorResponse, ReportSummaryOkResponse, ReportSummaryProps, ReportSummaryQueryQueryParams, } from './hooks/useReportSummaryQuery';
|
|
7
|
+
export { reportSummary, useReportSummaryQuery } from './hooks/useReportSummaryQuery';
|
|
8
|
+
export type { ReportsInfoErrorResponse, ReportsInfoOkResponse, ReportsInfoProps, ReportsInfoQueryQueryParams, } from './hooks/useReportsInfoQuery';
|
|
9
|
+
export { reportsInfo, useReportsInfoQuery } from './hooks/useReportsInfoQuery';
|
|
4
10
|
export type { SearchCoverageFilesErrorResponse, SearchCoverageFilesOkResponse, SearchCoverageFilesProps, SearchCoverageFilesQueryPathParams, SearchCoverageFilesQueryQueryParams, } from './hooks/useSearchCoverageFilesQuery';
|
|
5
11
|
export { searchCoverageFiles, useSearchCoverageFilesQuery, } from './hooks/useSearchCoverageFilesQuery';
|
|
12
|
+
export type { TestCaseSummaryV2ErrorResponse, TestCaseSummaryV2OkResponse, TestCaseSummaryV2Props, TestCaseSummaryV2QueryQueryParams, } from './hooks/useTestCaseSummaryV2Query';
|
|
13
|
+
export { testCaseSummaryV2, useTestCaseSummaryV2Query } from './hooks/useTestCaseSummaryV2Query';
|
|
14
|
+
export type { TestInfoErrorResponse, TestInfoOkResponse, TestInfoProps, TestInfoQueryQueryParams, } from './hooks/useTestInfoQuery';
|
|
15
|
+
export { testInfo, useTestInfoQuery } from './hooks/useTestInfoQuery';
|
|
16
|
+
export type { TestOverviewErrorResponse, TestOverviewOkResponse, TestOverviewProps, TestOverviewQueryQueryParams, } from './hooks/useTestOverviewQuery';
|
|
17
|
+
export { testOverview, useTestOverviewQuery } from './hooks/useTestOverviewQuery';
|
|
6
18
|
export type { BadRequestResponse } from './responses/BadRequestResponse';
|
|
7
19
|
export type { InternalErrorResponse } from './responses/InternalErrorResponse';
|
|
8
20
|
export type { UnauthenticatedResponse } from './responses/UnauthenticatedResponse';
|
|
@@ -11,4 +23,13 @@ export type { CoverageSummary } from './schemas/CoverageSummary';
|
|
|
11
23
|
export type { Error } from './schemas/Error';
|
|
12
24
|
export type { FileSummary } from './schemas/FileSummary';
|
|
13
25
|
export type { ReportPipelineExecutionOutput } from './schemas/ReportPipelineExecutionOutput';
|
|
26
|
+
export type { ResponseMetadata } from './schemas/ResponseMetadata';
|
|
27
|
+
export type { Result } from './schemas/Result';
|
|
14
28
|
export type { SearchResults } from './schemas/SearchResults';
|
|
29
|
+
export type { SelectionDetails } from './schemas/SelectionDetails';
|
|
30
|
+
export type { SelectionOverview } from './schemas/SelectionOverview';
|
|
31
|
+
export type { StepInfo } from './schemas/StepInfo';
|
|
32
|
+
export type { TestCase } from './schemas/TestCase';
|
|
33
|
+
export type { TestCaseStatus } from './schemas/TestCaseStatus';
|
|
34
|
+
export type { TestCases } from './schemas/TestCases';
|
|
35
|
+
export type { TestReportSummary } from './schemas/TestReportSummary';
|
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
export { getExecutionCoverageReport, useGetExecutionCoverageReportQuery, } from './hooks/useGetExecutionCoverageReportQuery';
|
|
2
|
+
export { getToken, useGetTokenQuery } from './hooks/useGetTokenQuery';
|
|
3
|
+
export { reportSummary, useReportSummaryQuery } from './hooks/useReportSummaryQuery';
|
|
4
|
+
export { reportsInfo, useReportsInfoQuery } from './hooks/useReportsInfoQuery';
|
|
2
5
|
export { searchCoverageFiles, useSearchCoverageFilesQuery, } from './hooks/useSearchCoverageFilesQuery';
|
|
6
|
+
export { testCaseSummaryV2, useTestCaseSummaryV2Query } from './hooks/useTestCaseSummaryV2Query';
|
|
7
|
+
export { testInfo, useTestInfoQuery } from './hooks/useTestInfoQuery';
|
|
8
|
+
export { testOverview, useTestOverviewQuery } from './hooks/useTestOverviewQuery';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { TestCaseStatus } from '../schemas/TestCaseStatus';
|
|
2
|
+
export interface Result {
|
|
3
|
+
/**
|
|
4
|
+
* Description corresponding to the test case status
|
|
5
|
+
*/
|
|
6
|
+
desc?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Message corresponding to the test case status
|
|
9
|
+
*/
|
|
10
|
+
message?: string;
|
|
11
|
+
status?: TestCaseStatus;
|
|
12
|
+
/**
|
|
13
|
+
* Type corresponding to the test case status
|
|
14
|
+
*/
|
|
15
|
+
type?: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Result } from '../schemas/Result';
|
|
2
|
+
export interface TestCase {
|
|
3
|
+
class_name?: string;
|
|
4
|
+
/**
|
|
5
|
+
* @format int64
|
|
6
|
+
*/
|
|
7
|
+
duration_ms?: number;
|
|
8
|
+
file_name?: string;
|
|
9
|
+
flaky?: boolean;
|
|
10
|
+
name?: string;
|
|
11
|
+
result?: Result;
|
|
12
|
+
/**
|
|
13
|
+
* (Truncated) stderr while running the test
|
|
14
|
+
*/
|
|
15
|
+
stderr?: string;
|
|
16
|
+
/**
|
|
17
|
+
* (Truncated) stdout while running the test
|
|
18
|
+
*/
|
|
19
|
+
stdout?: string;
|
|
20
|
+
suite_name?: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface TestReportSummary {
|
|
2
|
+
/**
|
|
3
|
+
* @format int64
|
|
4
|
+
*/
|
|
5
|
+
duration_ms?: number;
|
|
6
|
+
/**
|
|
7
|
+
* @format int64
|
|
8
|
+
*/
|
|
9
|
+
failed_tests?: number;
|
|
10
|
+
/**
|
|
11
|
+
* @format int64
|
|
12
|
+
*/
|
|
13
|
+
flaky_tests?: number;
|
|
14
|
+
/**
|
|
15
|
+
* @format int64
|
|
16
|
+
*/
|
|
17
|
+
skipped_by_ti?: number;
|
|
18
|
+
/**
|
|
19
|
+
* @format int64
|
|
20
|
+
*/
|
|
21
|
+
skipped_tests?: number;
|
|
22
|
+
/**
|
|
23
|
+
* @format int64
|
|
24
|
+
*/
|
|
25
|
+
successful_tests?: number;
|
|
26
|
+
/**
|
|
27
|
+
* @format int64
|
|
28
|
+
*/
|
|
29
|
+
total_tests?: number;
|
|
30
|
+
}
|