@harnessio/react-ti-service-client 0.6.4 → 0.6.5
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/useGetExecutionCoverageReportQuery.d.ts +2 -1
- package/dist/ti-service/src/services/hooks/useGetExecutionCoverageReportQuery.js +1 -1
- package/dist/ti-service/src/services/index.d.ts +1 -0
- package/dist/ti-service/src/services/schemas/ItemSummary.d.ts +2 -0
- package/dist/ti-service/src/services/schemas/LinkedRepoSummary.d.ts +8 -0
- package/dist/ti-service/src/services/schemas/LinkedRepoSummary.js +4 -0
- package/dist/ti-service/src/services/schemas/Policy.d.ts +1 -1
- package/dist/ti-service/src/services/schemas/ReportOutput.d.ts +2 -0
- package/dist/ti-service/src/services/schemas/TestReportSummary.d.ts +12 -0
- package/package.json +1 -1
|
@@ -12,6 +12,7 @@ export interface GetExecutionCoverageReportQueryPathParams {
|
|
|
12
12
|
}
|
|
13
13
|
export interface GetExecutionCoverageReportQueryQueryParams {
|
|
14
14
|
accountId: string;
|
|
15
|
+
include_linked_repo?: boolean;
|
|
15
16
|
tag?: string[];
|
|
16
17
|
orgId: string;
|
|
17
18
|
projectId: string;
|
|
@@ -32,6 +33,6 @@ export interface GetExecutionCoverageReportResponseContainer {
|
|
|
32
33
|
}
|
|
33
34
|
export declare function getExecutionCoverageReport(props: GetExecutionCoverageReportProps): Promise<GetExecutionCoverageReportResponseContainer>;
|
|
34
35
|
/**
|
|
35
|
-
* Retrieve pipeline execution coverage data for a specific file path or directory tree. Use the tags parameter to filter coverage by specific tags.
|
|
36
|
+
* Retrieve pipeline execution coverage data for a specific file path or directory tree. Use the tags parameter to filter coverage by specific tags. Set include_linked_repo=true to attach linked Harness Code repositories (repo_id, repo_path, and importing) for non-Harness repos; provider context is resolved from the execution.
|
|
36
37
|
*/
|
|
37
38
|
export declare function useGetExecutionCoverageReportQuery(props: GetExecutionCoverageReportProps, options?: Omit<UseQueryOptions<GetExecutionCoverageReportResponseContainer, GetExecutionCoverageReportErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetExecutionCoverageReportResponseContainer, import("..").Error>;
|
|
@@ -7,7 +7,7 @@ export function getExecutionCoverageReport(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/coverage/api/v1/accounts/${props.account_identifier}/executions/${props.execution_id}/tree/${props.tree_path}`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Retrieve pipeline execution coverage data for a specific file path or directory tree. Use the tags parameter to filter coverage by specific tags.
|
|
10
|
+
* Retrieve pipeline execution coverage data for a specific file path or directory tree. Use the tags parameter to filter coverage by specific tags. Set include_linked_repo=true to attach linked Harness Code repositories (repo_id, repo_path, and importing) for non-Harness repos; provider context is resolved from the execution.
|
|
11
11
|
*/
|
|
12
12
|
export function useGetExecutionCoverageReportQuery(props, options) {
|
|
13
13
|
return useQuery([
|
|
@@ -43,6 +43,7 @@ export type { CoverageMetric } from './schemas/CoverageMetric';
|
|
|
43
43
|
export type { CoverageSummary } from './schemas/CoverageSummary';
|
|
44
44
|
export type { Error } from './schemas/Error';
|
|
45
45
|
export type { ItemSummary } from './schemas/ItemSummary';
|
|
46
|
+
export type { LinkedRepoSummary } from './schemas/LinkedRepoSummary';
|
|
46
47
|
export type { MarkedTest } from './schemas/MarkedTest';
|
|
47
48
|
export type { MarkedTestsResponse } from './schemas/MarkedTestsResponse';
|
|
48
49
|
export type { Pagination } from './schemas/Pagination';
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import type { LinkedRepoSummary } from '../schemas/LinkedRepoSummary';
|
|
1
2
|
import type { CoverageSummary } from '../schemas/CoverageSummary';
|
|
2
3
|
export interface ItemSummary extends CoverageSummary {
|
|
3
4
|
git_ref?: string;
|
|
4
5
|
is_harness_code?: boolean;
|
|
6
|
+
linked_repos?: LinkedRepoSummary[];
|
|
5
7
|
path?: string;
|
|
6
8
|
type?: 'directory' | 'file' | 'repository';
|
|
7
9
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { ItemSummary } from '../schemas/ItemSummary';
|
|
2
|
+
import type { LinkedRepoSummary } from '../schemas/LinkedRepoSummary';
|
|
2
3
|
import type { CoverageSummary } from '../schemas/CoverageSummary';
|
|
3
4
|
export interface ReportOutput {
|
|
4
5
|
git_ref?: string;
|
|
5
6
|
is_harness_code?: boolean;
|
|
6
7
|
items?: ItemSummary[];
|
|
7
8
|
lines?: Array<number[]>;
|
|
9
|
+
linked_repos?: LinkedRepoSummary[];
|
|
8
10
|
path?: string;
|
|
9
11
|
summary: CoverageSummary;
|
|
10
12
|
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export interface TestReportSummary {
|
|
2
|
+
/**
|
|
3
|
+
* Status of the aggregation: 'complete' when the build sentinel row exists, 'partial' when showing the best available stage or step result
|
|
4
|
+
*/
|
|
5
|
+
aggregation_status?: 'complete' | 'partial';
|
|
2
6
|
/**
|
|
3
7
|
* @format int64
|
|
4
8
|
*/
|
|
@@ -19,6 +23,14 @@ export interface TestReportSummary {
|
|
|
19
23
|
* @format int64
|
|
20
24
|
*/
|
|
21
25
|
skipped_tests?: number;
|
|
26
|
+
/**
|
|
27
|
+
* When aggregation_status is 'partial', the stage ID whose counters are shown
|
|
28
|
+
*/
|
|
29
|
+
source_stage_id?: string;
|
|
30
|
+
/**
|
|
31
|
+
* When aggregation_status is 'partial' and no stage sentinel exists, the step ID whose counters are shown
|
|
32
|
+
*/
|
|
33
|
+
source_step_id?: string;
|
|
22
34
|
/**
|
|
23
35
|
* @format int64
|
|
24
36
|
*/
|