@harnessio/react-ti-service-client 0.6.3 → 0.6.4
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/useSetFlakyStatusMutation.d.ts +2 -1
- package/dist/ti-service/src/services/hooks/useSetFlakyStatusMutation.js +2 -1
- package/dist/ti-service/src/services/hooks/useSetQuarantineStatusMutation.d.ts +2 -1
- package/dist/ti-service/src/services/hooks/useSetQuarantineStatusMutation.js +2 -1
- package/dist/ti-service/src/services/schemas/Policy.d.ts +1 -1
- package/dist/ti-service/src/services/schemas/TestMarkingRequest.d.ts +15 -7
- package/package.json +1 -1
|
@@ -24,7 +24,8 @@ export interface SetFlakyStatusResponseContainer {
|
|
|
24
24
|
export declare function setFlakyStatus(props: SetFlakyStatusProps): Promise<SetFlakyStatusResponseContainer>;
|
|
25
25
|
export type SetFlakyStatusMutationProps<T extends keyof SetFlakyStatusProps> = Omit<SetFlakyStatusProps, T> & Partial<Pick<SetFlakyStatusProps, T>>;
|
|
26
26
|
/**
|
|
27
|
-
* Upserts the flaky marking for each test in the request body. A `marking` of `"true"` marks the test as flaky, `"false"` removes the marking, and `"unset"` clears any stored value.
|
|
27
|
+
* Upserts the flaky marking for each test in the request body. A `marking` of `"true"` (or boolean `true`) marks the test as flaky, `"false"` removes the marking, and `"unset"` clears any stored value.
|
|
28
|
+
* Each item may identify a test either by `test_id` alone **or** by the combination of `test_name` + `class_name`. When every item supplies a `test_id` the `repo` query parameter is not required.
|
|
28
29
|
*
|
|
29
30
|
*/
|
|
30
31
|
export declare function useSetFlakyStatusMutation<T extends keyof SetFlakyStatusProps>(props: Pick<Partial<SetFlakyStatusProps>, T>, options?: Omit<UseMutationOptions<SetFlakyStatusResponseContainer, SetFlakyStatusErrorResponse, SetFlakyStatusMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SetFlakyStatusResponseContainer, import("..").Error, SetFlakyStatusMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,8 @@ export function setFlakyStatus(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/test-management/flaky`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Upserts the flaky marking for each test in the request body. A `marking` of `"true"` marks the test as flaky, `"false"` removes the marking, and `"unset"` clears any stored value.
|
|
10
|
+
* Upserts the flaky marking for each test in the request body. A `marking` of `"true"` (or boolean `true`) marks the test as flaky, `"false"` removes the marking, and `"unset"` clears any stored value.
|
|
11
|
+
* Each item may identify a test either by `test_id` alone **or** by the combination of `test_name` + `class_name`. When every item supplies a `test_id` the `repo` query parameter is not required.
|
|
11
12
|
*
|
|
12
13
|
*/
|
|
13
14
|
export function useSetFlakyStatusMutation(props, options) {
|
|
@@ -24,7 +24,8 @@ export interface SetQuarantineStatusResponseContainer {
|
|
|
24
24
|
export declare function setQuarantineStatus(props: SetQuarantineStatusProps): Promise<SetQuarantineStatusResponseContainer>;
|
|
25
25
|
export type SetQuarantineStatusMutationProps<T extends keyof SetQuarantineStatusProps> = Omit<SetQuarantineStatusProps, T> & Partial<Pick<SetQuarantineStatusProps, T>>;
|
|
26
26
|
/**
|
|
27
|
-
* Upserts the quarantine marking for each test in the request body. A `marking` of `"true"` quarantines the test, `"false"` removes the quarantine, and `"unset"` clears any stored value.
|
|
27
|
+
* Upserts the quarantine marking for each test in the request body. A `marking` of `"true"` (or boolean `true`) quarantines the test, `"false"` removes the quarantine, and `"unset"` clears any stored value.
|
|
28
|
+
* Each item may identify a test either by `test_id` alone **or** by the combination of `test_name` + `class_name`. When every item supplies a `test_id` the `repo` query parameter is not required.
|
|
28
29
|
*
|
|
29
30
|
*/
|
|
30
31
|
export declare function useSetQuarantineStatusMutation<T extends keyof SetQuarantineStatusProps>(props: Pick<Partial<SetQuarantineStatusProps>, T>, options?: Omit<UseMutationOptions<SetQuarantineStatusResponseContainer, SetQuarantineStatusErrorResponse, SetQuarantineStatusMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SetQuarantineStatusResponseContainer, import("..").Error, SetQuarantineStatusMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,8 @@ export function setQuarantineStatus(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/test-management/quarantine`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Upserts the quarantine marking for each test in the request body. A `marking` of `"true"` quarantines the test, `"false"` removes the quarantine, and `"unset"` clears any stored value.
|
|
10
|
+
* Upserts the quarantine marking for each test in the request body. A `marking` of `"true"` (or boolean `true`) quarantines the test, `"false"` removes the quarantine, and `"unset"` clears any stored value.
|
|
11
|
+
* Each item may identify a test either by `test_id` alone **or** by the combination of `test_name` + `class_name`. When every item supplies a `test_id` the `repo` query parameter is not required.
|
|
11
12
|
*
|
|
12
13
|
*/
|
|
13
14
|
export function useSetQuarantineStatusMutation(props, options) {
|
|
@@ -1,24 +1,32 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Request payload for setting flaky or quarantine status on a single test
|
|
2
|
+
* Request payload for setting flaky or quarantine status on a single test. A test can be identified either by `test_id` alone **or** by the combination of `test_name` + `class_name` (with optional `suite_name`). When `test_id` is provided, `test_name`, `class_name`, and the `repo` query parameter are not required.
|
|
3
|
+
*
|
|
3
4
|
*/
|
|
4
5
|
export interface TestMarkingRequest {
|
|
5
6
|
/**
|
|
6
|
-
* Fully-qualified class name of the test
|
|
7
|
+
* Fully-qualified class name of the test (required when test_id is absent)
|
|
7
8
|
* @example "com.example.MyTest"
|
|
8
9
|
*/
|
|
9
|
-
class_name
|
|
10
|
+
class_name?: string;
|
|
10
11
|
/**
|
|
11
|
-
* Desired marking state
|
|
12
|
+
* Desired marking state. Accepts either a JSON boolean (`true`/`false`) or the string values `"true"`, `"false"`, or `"unset"`. `"unset"` clears any stored value.
|
|
13
|
+
*
|
|
12
14
|
*/
|
|
13
|
-
marking: 'false' | 'true' | 'unset';
|
|
15
|
+
marking: (boolean & 'false') | 'true' | 'unset';
|
|
14
16
|
/**
|
|
15
17
|
* Suite (module) the test belongs to
|
|
16
18
|
* @example "unit"
|
|
17
19
|
*/
|
|
18
20
|
suite_name?: string;
|
|
19
21
|
/**
|
|
20
|
-
*
|
|
22
|
+
* Deterministic identifier for the test (returned by list endpoints). When provided, `test_name` and `class_name` are not needed.
|
|
23
|
+
*
|
|
24
|
+
* @example "36449"
|
|
25
|
+
*/
|
|
26
|
+
test_id?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Name of the test method (required when test_id is absent)
|
|
21
29
|
* @example "shouldReturnTrue"
|
|
22
30
|
*/
|
|
23
|
-
test_name
|
|
31
|
+
test_name?: string;
|
|
24
32
|
}
|