@harnessio/react-ti-service-client 0.6.5 → 0.6.7

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.
Files changed (21) hide show
  1. package/dist/ti-service/src/services/hooks/useGetAllTestMarkingsQuery.d.ts +2 -1
  2. package/dist/ti-service/src/services/hooks/useGetAllTestMarkingsQuery.js +1 -1
  3. package/dist/ti-service/src/services/hooks/useGetExecutionCoverageReportQuery.d.ts +1 -2
  4. package/dist/ti-service/src/services/hooks/useGetExecutionCoverageReportQuery.js +1 -1
  5. package/dist/ti-service/src/services/hooks/useGetProblematicTestsQuery.d.ts +33 -0
  6. package/dist/ti-service/src/services/hooks/useGetProblematicTestsQuery.js +14 -0
  7. package/dist/ti-service/src/services/hooks/useSetProblematicStatusMutation.d.ts +31 -0
  8. package/dist/ti-service/src/services/hooks/useSetProblematicStatusMutation.js +16 -0
  9. package/dist/ti-service/src/services/hooks/useUpsertPoliciesMutation.d.ts +1 -1
  10. package/dist/ti-service/src/services/hooks/useUpsertPoliciesMutation.js +1 -1
  11. package/dist/ti-service/src/services/index.d.ts +4 -1
  12. package/dist/ti-service/src/services/index.js +2 -0
  13. package/dist/ti-service/src/services/schemas/ItemSummary.d.ts +0 -2
  14. package/dist/ti-service/src/services/schemas/Policy.d.ts +2 -2
  15. package/dist/ti-service/src/services/schemas/ReportOutput.d.ts +0 -2
  16. package/dist/ti-service/src/services/schemas/TestCase.d.ts +8 -0
  17. package/dist/ti-service/src/services/schemas/TestMarkingDetail.d.ts +8 -0
  18. package/dist/ti-service/src/services/schemas/TestMarkingsResponse.d.ts +5 -0
  19. package/package.json +1 -1
  20. package/dist/ti-service/src/services/schemas/LinkedRepoSummary.d.ts +0 -8
  21. package/dist/ti-service/src/services/schemas/LinkedRepoSummary.js +0 -4
@@ -18,6 +18,7 @@ export interface GetAllTestMarkingsQueryQueryParams {
18
18
  pageSize?: number;
19
19
  flaky?: boolean;
20
20
  quarantine?: boolean;
21
+ problematic?: boolean;
21
22
  test_name?: string;
22
23
  }
23
24
  export type GetAllTestMarkingsOkResponse = TestMarkingsResponse;
@@ -31,7 +32,7 @@ export interface GetAllTestMarkingsResponseContainer {
31
32
  }
32
33
  export declare function getAllTestMarkings(props: GetAllTestMarkingsProps): Promise<GetAllTestMarkingsResponseContainer>;
33
34
  /**
34
- * Returns all tests with their combined flaky and quarantine markings for the given account and repo, with pagination. Use the optional `flaky` and `quarantine` parameters to filter results to only tests with a specific status for each field. The response also includes `totalFlaky` and `totalQuarantine` — the aggregate counts of flaky and quarantined tests across the entire repository, independent of any active pagination or filters.
35
+ * Returns all tests with their combined flaky, quarantine, and problematic markings for the given account and repo, with pagination. Use the optional `flaky`, `quarantine`, and `problematic` parameters to filter results to only tests with a specific status for each field. The response also includes `totalFlaky`, `totalQuarantine`, and `totalProblematic` — the aggregate counts across the entire repository, independent of any active pagination or filters.
35
36
  *
36
37
  */
37
38
  export declare function useGetAllTestMarkingsQuery(props: GetAllTestMarkingsProps, options?: Omit<UseQueryOptions<GetAllTestMarkingsResponseContainer, GetAllTestMarkingsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAllTestMarkingsResponseContainer, import("..").Error>;
@@ -7,7 +7,7 @@ export function getAllTestMarkings(props) {
7
7
  return fetcher(Object.assign({ url: `/test-management/tests`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
- * Returns all tests with their combined flaky and quarantine markings for the given account and repo, with pagination. Use the optional `flaky` and `quarantine` parameters to filter results to only tests with a specific status for each field. The response also includes `totalFlaky` and `totalQuarantine` — the aggregate counts of flaky and quarantined tests across the entire repository, independent of any active pagination or filters.
10
+ * Returns all tests with their combined flaky, quarantine, and problematic markings for the given account and repo, with pagination. Use the optional `flaky`, `quarantine`, and `problematic` parameters to filter results to only tests with a specific status for each field. The response also includes `totalFlaky`, `totalQuarantine`, and `totalProblematic` — the aggregate counts across the entire repository, independent of any active pagination or filters.
11
11
  *
12
12
  */
13
13
  export function useGetAllTestMarkingsQuery(props, options) {
@@ -12,7 +12,6 @@ export interface GetExecutionCoverageReportQueryPathParams {
12
12
  }
13
13
  export interface GetExecutionCoverageReportQueryQueryParams {
14
14
  accountId: string;
15
- include_linked_repo?: boolean;
16
15
  tag?: string[];
17
16
  orgId: string;
18
17
  projectId: string;
@@ -33,6 +32,6 @@ export interface GetExecutionCoverageReportResponseContainer {
33
32
  }
34
33
  export declare function getExecutionCoverageReport(props: GetExecutionCoverageReportProps): Promise<GetExecutionCoverageReportResponseContainer>;
35
34
  /**
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.
35
+ * Retrieve pipeline execution coverage data for a specific file path or directory tree. Use the tags parameter to filter coverage by specific tags.
37
36
  */
38
37
  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. 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.
10
+ * Retrieve pipeline execution coverage data for a specific file path or directory tree. Use the tags parameter to filter coverage by specific tags.
11
11
  */
12
12
  export function useGetExecutionCoverageReportQuery(props, options) {
13
13
  return useQuery([
@@ -0,0 +1,33 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { MarkedTestsResponse } from '../schemas/MarkedTestsResponse';
3
+ import type { BadRequestResponse } from '../responses/BadRequestResponse';
4
+ import type { InternalErrorResponse } from '../responses/InternalErrorResponse';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
+ export interface GetProblematicTestsQueryQueryParams {
7
+ accountId: string;
8
+ orgId: string;
9
+ projectId: string;
10
+ repo: string;
11
+ /**
12
+ * @default 0
13
+ */
14
+ pageIndex?: number;
15
+ /**
16
+ * @default 100
17
+ */
18
+ pageSize?: number;
19
+ }
20
+ export type GetProblematicTestsOkResponse = MarkedTestsResponse;
21
+ export type GetProblematicTestsErrorResponse = BadRequestResponse | InternalErrorResponse;
22
+ export interface GetProblematicTestsProps extends Omit<FetcherOptions<GetProblematicTestsQueryQueryParams, unknown>, 'url'> {
23
+ queryParams: GetProblematicTestsQueryQueryParams;
24
+ }
25
+ export interface GetProblematicTestsResponseContainer {
26
+ body: GetProblematicTestsOkResponse;
27
+ headers: Headers;
28
+ }
29
+ export declare function getProblematicTests(props: GetProblematicTestsProps): Promise<GetProblematicTestsResponseContainer>;
30
+ /**
31
+ * Returns all tests currently marked as problematic for the given account and repo, with pagination.
32
+ */
33
+ export declare function useGetProblematicTestsQuery(props: GetProblematicTestsProps, options?: Omit<UseQueryOptions<GetProblematicTestsResponseContainer, GetProblematicTestsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetProblematicTestsResponseContainer, 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 '../../../../custom-fetcher/index.js';
6
+ export function getProblematicTests(props) {
7
+ return fetcher(Object.assign({ url: `/test-management/problematic`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Returns all tests currently marked as problematic for the given account and repo, with pagination.
11
+ */
12
+ export function useGetProblematicTestsQuery(props, options) {
13
+ return useQuery(['getProblematicTests', props.queryParams], ({ signal }) => getProblematicTests(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,31 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { TestMarkingResponse } from '../schemas/TestMarkingResponse';
3
+ import type { BadRequestResponse } from '../responses/BadRequestResponse';
4
+ import type { InternalErrorResponse } from '../responses/InternalErrorResponse';
5
+ import type { TestMarkingRequest } from '../schemas/TestMarkingRequest';
6
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
7
+ export interface SetProblematicStatusMutationQueryParams {
8
+ accountId: string;
9
+ orgId: string;
10
+ projectId: string;
11
+ repo: string;
12
+ }
13
+ export type SetProblematicStatusRequestBody = TestMarkingRequest[];
14
+ export type SetProblematicStatusOkResponse = TestMarkingResponse;
15
+ export type SetProblematicStatusErrorResponse = BadRequestResponse | InternalErrorResponse;
16
+ export interface SetProblematicStatusProps extends Omit<FetcherOptions<SetProblematicStatusMutationQueryParams, SetProblematicStatusRequestBody>, 'url'> {
17
+ queryParams: SetProblematicStatusMutationQueryParams;
18
+ body: SetProblematicStatusRequestBody;
19
+ }
20
+ export interface SetProblematicStatusResponseContainer {
21
+ body: SetProblematicStatusOkResponse;
22
+ headers: Headers;
23
+ }
24
+ export declare function setProblematicStatus(props: SetProblematicStatusProps): Promise<SetProblematicStatusResponseContainer>;
25
+ export type SetProblematicStatusMutationProps<T extends keyof SetProblematicStatusProps> = Omit<SetProblematicStatusProps, T> & Partial<Pick<SetProblematicStatusProps, T>>;
26
+ /**
27
+ * Upserts the problematic marking for each test in the request body. A `marking` of `"true"` (or boolean `true`) marks the test as problematic, `"false"` removes the marking, and `"unset"` clears any stored value.
28
+ * Problematic markings exist only in the V2 schema, so each item must identify a test by the combination of `test_name` + `class_name` (optionally `suite_name`) and the `repo` query parameter is required. Unlike flaky, problematic is never applied by a default policy.
29
+ *
30
+ */
31
+ export declare function useSetProblematicStatusMutation<T extends keyof SetProblematicStatusProps>(props: Pick<Partial<SetProblematicStatusProps>, T>, options?: Omit<UseMutationOptions<SetProblematicStatusResponseContainer, SetProblematicStatusErrorResponse, SetProblematicStatusMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SetProblematicStatusResponseContainer, import("..").Error, SetProblematicStatusMutationProps<T>, unknown>;
@@ -0,0 +1,16 @@
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 '../../../../custom-fetcher/index.js';
6
+ export function setProblematicStatus(props) {
7
+ return fetcher(Object.assign({ url: `/test-management/problematic`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Upserts the problematic marking for each test in the request body. A `marking` of `"true"` (or boolean `true`) marks the test as problematic, `"false"` removes the marking, and `"unset"` clears any stored value.
11
+ * Problematic markings exist only in the V2 schema, so each item must identify a test by the combination of `test_name` + `class_name` (optionally `suite_name`) and the `repo` query parameter is required. Unlike flaky, problematic is never applied by a default policy.
12
+ *
13
+ */
14
+ export function useSetProblematicStatusMutation(props, options) {
15
+ return useMutation((mutateProps) => setProblematicStatus(Object.assign(Object.assign({}, props), mutateProps)), options);
16
+ }
@@ -26,7 +26,7 @@ export interface UpsertPoliciesResponseContainer {
26
26
  export declare function upsertPolicies(props: UpsertPoliciesProps): Promise<UpsertPoliciesResponseContainer>;
27
27
  export type UpsertPoliciesMutationProps<T extends keyof UpsertPoliciesProps> = Omit<UpsertPoliciesProps, T> & Partial<Pick<UpsertPoliciesProps, T>>;
28
28
  /**
29
- * Replaces all policies for the given account, org, project, and repo scope with the supplied list. Sending an empty array clears all policies. Each policy must have at least one rule condition and one action. Valid rule conditions: `"test is flaky"`, `"test is slow"`, `"test failed"`, `"passes ? consecutive times on ? branch"`, `"failed more than ? times on ? branch"`, `"test passed and failed on the same commit"`. Valid actions: `"mark quarantine"`, `"mark unquarantine"`, `"unmark quarantine"`, `"mark flaky"`, `"mark unflaky"`, `"unmark flaky"`.
29
+ * Replaces all policies for the given account, org, project, and repo scope with the supplied list. Sending an empty array clears all policies. Each policy must have at least one rule condition and one action. Valid rule conditions: `"test is flaky"`, `"test is slow"`, `"test failed"`, `"passes ? consecutive times on ? branch"`, `"failed more than ? times on ? branch"`, `"test passed and failed on the same commit"`, `"marked for ? days"`, `"quarantine when ? is marked"` (cascade rule with no action; the value must be `"flaky"` or `"problematic"`). Valid actions: `"mark quarantine"`, `"mark unquarantine"`, `"unmark quarantine"`, `"mark flaky"`, `"mark unflaky"`, `"unmark flaky"`, `"mark problematic"`, `"mark unproblematic"`, `"unmark problematic"`.
30
30
  *
31
31
  */
32
32
  export declare function useUpsertPoliciesMutation<T extends keyof UpsertPoliciesProps>(props: Pick<Partial<UpsertPoliciesProps>, T>, options?: Omit<UseMutationOptions<UpsertPoliciesResponseContainer, UpsertPoliciesErrorResponse, UpsertPoliciesMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpsertPoliciesResponseContainer, import("..").Error, UpsertPoliciesMutationProps<T>, unknown>;
@@ -7,7 +7,7 @@ export function upsertPolicies(props) {
7
7
  return fetcher(Object.assign({ url: `/test-management/policies`, method: 'PUT' }, props));
8
8
  }
9
9
  /**
10
- * Replaces all policies for the given account, org, project, and repo scope with the supplied list. Sending an empty array clears all policies. Each policy must have at least one rule condition and one action. Valid rule conditions: `"test is flaky"`, `"test is slow"`, `"test failed"`, `"passes ? consecutive times on ? branch"`, `"failed more than ? times on ? branch"`, `"test passed and failed on the same commit"`. Valid actions: `"mark quarantine"`, `"mark unquarantine"`, `"unmark quarantine"`, `"mark flaky"`, `"mark unflaky"`, `"unmark flaky"`.
10
+ * Replaces all policies for the given account, org, project, and repo scope with the supplied list. Sending an empty array clears all policies. Each policy must have at least one rule condition and one action. Valid rule conditions: `"test is flaky"`, `"test is slow"`, `"test failed"`, `"passes ? consecutive times on ? branch"`, `"failed more than ? times on ? branch"`, `"test passed and failed on the same commit"`, `"marked for ? days"`, `"quarantine when ? is marked"` (cascade rule with no action; the value must be `"flaky"` or `"problematic"`). Valid actions: `"mark quarantine"`, `"mark unquarantine"`, `"unmark quarantine"`, `"mark flaky"`, `"mark unflaky"`, `"unmark flaky"`, `"mark problematic"`, `"mark unproblematic"`, `"unmark problematic"`.
11
11
  *
12
12
  */
13
13
  export function useUpsertPoliciesMutation(props, options) {
@@ -8,6 +8,8 @@ export type { GetFlakyTestsErrorResponse, GetFlakyTestsOkResponse, GetFlakyTests
8
8
  export { getFlakyTests, useGetFlakyTestsQuery } from './hooks/useGetFlakyTestsQuery';
9
9
  export type { GetPoliciesErrorResponse, GetPoliciesOkResponse, GetPoliciesProps, GetPoliciesQueryQueryParams, } from './hooks/useGetPoliciesQuery';
10
10
  export { getPolicies, useGetPoliciesQuery } from './hooks/useGetPoliciesQuery';
11
+ export type { GetProblematicTestsErrorResponse, GetProblematicTestsOkResponse, GetProblematicTestsProps, GetProblematicTestsQueryQueryParams, } from './hooks/useGetProblematicTestsQuery';
12
+ export { getProblematicTests, useGetProblematicTestsQuery, } from './hooks/useGetProblematicTestsQuery';
11
13
  export type { GetTestManagementRepositoriesErrorResponse, GetTestManagementRepositoriesOkResponse, GetTestManagementRepositoriesProps, GetTestManagementRepositoriesQueryQueryParams, } from './hooks/useGetTestManagementRepositoriesQuery';
12
14
  export { getTestManagementRepositories, useGetTestManagementRepositoriesQuery, } from './hooks/useGetTestManagementRepositoriesQuery';
13
15
  export type { GetTokenErrorResponse, GetTokenOkResponse, GetTokenProps, GetTokenQueryQueryParams, } from './hooks/useGetTokenQuery';
@@ -22,6 +24,8 @@ export type { SearchCoverageFilesErrorResponse, SearchCoverageFilesOkResponse, S
22
24
  export { searchCoverageFiles, useSearchCoverageFilesQuery, } from './hooks/useSearchCoverageFilesQuery';
23
25
  export type { SetFlakyStatusErrorResponse, SetFlakyStatusMutationProps, SetFlakyStatusMutationQueryParams, SetFlakyStatusOkResponse, SetFlakyStatusProps, SetFlakyStatusRequestBody, } from './hooks/useSetFlakyStatusMutation';
24
26
  export { setFlakyStatus, useSetFlakyStatusMutation } from './hooks/useSetFlakyStatusMutation';
27
+ export type { SetProblematicStatusErrorResponse, SetProblematicStatusMutationProps, SetProblematicStatusMutationQueryParams, SetProblematicStatusOkResponse, SetProblematicStatusProps, SetProblematicStatusRequestBody, } from './hooks/useSetProblematicStatusMutation';
28
+ export { setProblematicStatus, useSetProblematicStatusMutation, } from './hooks/useSetProblematicStatusMutation';
25
29
  export type { SetQuarantineStatusErrorResponse, SetQuarantineStatusMutationProps, SetQuarantineStatusMutationQueryParams, SetQuarantineStatusOkResponse, SetQuarantineStatusProps, SetQuarantineStatusRequestBody, } from './hooks/useSetQuarantineStatusMutation';
26
30
  export { setQuarantineStatus, useSetQuarantineStatusMutation, } from './hooks/useSetQuarantineStatusMutation';
27
31
  export type { TestCaseSummaryV2ErrorResponse, TestCaseSummaryV2OkResponse, TestCaseSummaryV2Props, TestCaseSummaryV2QueryQueryParams, } from './hooks/useTestCaseSummaryV2Query';
@@ -43,7 +47,6 @@ export type { CoverageMetric } from './schemas/CoverageMetric';
43
47
  export type { CoverageSummary } from './schemas/CoverageSummary';
44
48
  export type { Error } from './schemas/Error';
45
49
  export type { ItemSummary } from './schemas/ItemSummary';
46
- export type { LinkedRepoSummary } from './schemas/LinkedRepoSummary';
47
50
  export type { MarkedTest } from './schemas/MarkedTest';
48
51
  export type { MarkedTestsResponse } from './schemas/MarkedTestsResponse';
49
52
  export type { Pagination } from './schemas/Pagination';
@@ -3,6 +3,7 @@ export { getCoverageHistory, useGetCoverageHistoryQuery } from './hooks/useGetCo
3
3
  export { getExecutionCoverageReport, useGetExecutionCoverageReportQuery, } from './hooks/useGetExecutionCoverageReportQuery';
4
4
  export { getFlakyTests, useGetFlakyTestsQuery } from './hooks/useGetFlakyTestsQuery';
5
5
  export { getPolicies, useGetPoliciesQuery } from './hooks/useGetPoliciesQuery';
6
+ export { getProblematicTests, useGetProblematicTestsQuery, } from './hooks/useGetProblematicTestsQuery';
6
7
  export { getTestManagementRepositories, useGetTestManagementRepositoriesQuery, } from './hooks/useGetTestManagementRepositoriesQuery';
7
8
  export { getToken, useGetTokenQuery } from './hooks/useGetTokenQuery';
8
9
  export { patchCoverageFiles, usePatchCoverageFilesQuery } from './hooks/usePatchCoverageFilesQuery';
@@ -10,6 +11,7 @@ export { reportSummary, useReportSummaryQuery } from './hooks/useReportSummaryQu
10
11
  export { reportsInfo, useReportsInfoQuery } from './hooks/useReportsInfoQuery';
11
12
  export { searchCoverageFiles, useSearchCoverageFilesQuery, } from './hooks/useSearchCoverageFilesQuery';
12
13
  export { setFlakyStatus, useSetFlakyStatusMutation } from './hooks/useSetFlakyStatusMutation';
14
+ export { setProblematicStatus, useSetProblematicStatusMutation, } from './hooks/useSetProblematicStatusMutation';
13
15
  export { setQuarantineStatus, useSetQuarantineStatusMutation, } from './hooks/useSetQuarantineStatusMutation';
14
16
  export { testCaseSummaryV2, useTestCaseSummaryV2Query } from './hooks/useTestCaseSummaryV2Query';
15
17
  export { testInfo, useTestInfoQuery } from './hooks/useTestInfoQuery';
@@ -1,9 +1,7 @@
1
- import type { LinkedRepoSummary } from '../schemas/LinkedRepoSummary';
2
1
  import type { CoverageSummary } from '../schemas/CoverageSummary';
3
2
  export interface ItemSummary extends CoverageSummary {
4
3
  git_ref?: string;
5
4
  is_harness_code?: boolean;
6
- linked_repos?: LinkedRepoSummary[];
7
5
  path?: string;
8
6
  type?: 'directory' | 'file' | 'repository';
9
7
  }
@@ -4,12 +4,12 @@
4
4
  */
5
5
  export interface Policy {
6
6
  /**
7
- * One or more actions to apply. Valid values: "mark quarantine", "mark unquarantine", "unmark quarantine", "mark flaky", "mark unflaky", "unmark flaky".
7
+ * One or more actions to apply. Valid values: "mark quarantine", "mark unquarantine", "unmark quarantine", "mark flaky", "mark unflaky", "unmark flaky", "mark problematic", "mark unproblematic", "unmark problematic".
8
8
  *
9
9
  */
10
10
  action: string[];
11
11
  /**
12
- * One or more rule conditions. Valid values: "test is flaky", "test is slow", "test failed", "passes ? consecutive times on ? branch", "failed more than ? times on ? branch", "test passed and failed on the same commit".
12
+ * One or more rule conditions. Valid values: "test is flaky", "test is slow", "test failed", "passes ? consecutive times on ? branch", "failed more than ? times on ? branch", "test passed and failed on the same commit", "marked for ? days", "quarantine when ? is marked" (cascade rule with no action; value must be "flaky" or "problematic").
13
13
  *
14
14
  */
15
15
  rule: string[];
@@ -1,12 +1,10 @@
1
1
  import type { ItemSummary } from '../schemas/ItemSummary';
2
- import type { LinkedRepoSummary } from '../schemas/LinkedRepoSummary';
3
2
  import type { CoverageSummary } from '../schemas/CoverageSummary';
4
3
  export interface ReportOutput {
5
4
  git_ref?: string;
6
5
  is_harness_code?: boolean;
7
6
  items?: ItemSummary[];
8
7
  lines?: Array<number[]>;
9
- linked_repos?: LinkedRepoSummary[];
10
8
  path?: string;
11
9
  summary: CoverageSummary;
12
10
  }
@@ -8,6 +8,14 @@ export interface TestCase {
8
8
  file_name?: string;
9
9
  flaky?: boolean;
10
10
  name?: string;
11
+ /**
12
+ * Whether the test is currently marked problematic
13
+ */
14
+ problematic?: boolean;
15
+ /**
16
+ * Whether the test is currently quarantined
17
+ */
18
+ quarantine?: boolean;
11
19
  result?: Result;
12
20
  /**
13
21
  * (Truncated) stderr while running the test
@@ -14,6 +14,14 @@ export interface TestMarkingDetail {
14
14
  * true = flaky, false = not flaky, null = not marked
15
15
  */
16
16
  flaky_status?: boolean | null;
17
+ /**
18
+ * Optional reason the test was marked problematic
19
+ */
20
+ problematic_reason?: string | null;
21
+ /**
22
+ * true = problematic, false = not problematic, null = not marked
23
+ */
24
+ problematic_status?: boolean | null;
17
25
  /**
18
26
  * Optional reason the test was quarantined
19
27
  */
@@ -11,6 +11,11 @@ export interface TestMarkingsResponse {
11
11
  * @example 12
12
12
  */
13
13
  totalFlaky?: number;
14
+ /**
15
+ * Total number of tests marked as problematic in the repository (independent of pagination and filters)
16
+ * @example 3
17
+ */
18
+ totalProblematic?: number;
14
19
  /**
15
20
  * Total number of tests marked as quarantined in the repository (independent of pagination and filters)
16
21
  * @example 5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-ti-service-client",
3
- "version": "0.6.5",
3
+ "version": "0.6.7",
4
4
  "description": "Harness React TI service client - TI APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",
@@ -1,8 +0,0 @@
1
- export interface LinkedRepoSummary {
2
- importing?: boolean;
3
- /**
4
- * @format int64
5
- */
6
- repo_id?: number;
7
- repo_path?: string;
8
- }
@@ -1,4 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- export {};