complexqa_frontend_core 2.0.0 → 2.0.1
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/package.json
CHANGED
package/src/api/bug_api.js
CHANGED
|
@@ -15,4 +15,26 @@ export class BugApi extends ApiAbstractElementClass
|
|
|
15
15
|
super(options);
|
|
16
16
|
this.set_element_class_instance(typeBug);
|
|
17
17
|
}
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Агрегаты шапки листинга. Ответ - объект счётчиков, не список багов.
|
|
22
|
+
*
|
|
23
|
+
* @param {{ project_id: number }} payload
|
|
24
|
+
* @returns {Promise<{response: *, payload: *}>}
|
|
25
|
+
* @version v.1.0 (22/09/2026)
|
|
26
|
+
*/
|
|
27
|
+
async summary(payload)
|
|
28
|
+
{
|
|
29
|
+
let url = `/${ this.api_prefix }/${ this.module_prefix }/summary`;
|
|
30
|
+
|
|
31
|
+
payload = this.handle_request_payload(payload);
|
|
32
|
+
let response = this.api_request(url, payload);
|
|
33
|
+
response = this.handle_response(response, false);
|
|
34
|
+
|
|
35
|
+
return {
|
|
36
|
+
response: response,
|
|
37
|
+
payload : payload
|
|
38
|
+
};
|
|
39
|
+
}
|
|
18
40
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { echo, is_object } from "../../utils/utils.js";
|
|
2
2
|
import { familyTestDocumentation } from "../core/1_familyTestDocumentation.js";
|
|
3
3
|
import { typeTestCaseStep_i18n } from "../element_translate/typeTestCaseStep.i18n.js";
|
|
4
|
-
import _ from 'underscore';
|
|
4
|
+
import _ from 'underscore';
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -39,7 +39,7 @@ export class typeTestCaseStep extends familyTestDocumentation
|
|
|
39
39
|
'test_case_id'
|
|
40
40
|
];
|
|
41
41
|
|
|
42
|
-
/** @type {Record<string, string[]>} */
|
|
42
|
+
/** @type {Record<string, string[]>} */
|
|
43
43
|
available_enum_values = {
|
|
44
44
|
test_case_step_type: [ 'TEST_CASE_STEP', 'TEST_CASE_PRESTEP' ],
|
|
45
45
|
};
|
|
@@ -91,6 +91,7 @@ export class typeTestCaseStep extends familyTestDocumentation
|
|
|
91
91
|
*/
|
|
92
92
|
get_element_name()
|
|
93
93
|
{
|
|
94
|
+
// @fixme
|
|
94
95
|
return this.test_suite_name;
|
|
95
96
|
}
|
|
96
97
|
|
package/types/api/bug_api.d.ts
CHANGED
|
@@ -5,5 +5,11 @@
|
|
|
5
5
|
export class BugApi extends ApiAbstractElementClass {
|
|
6
6
|
constructor(options: any);
|
|
7
7
|
module_prefix: string;
|
|
8
|
+
summary(payload: {
|
|
9
|
+
project_id: number;
|
|
10
|
+
}): Promise<{
|
|
11
|
+
response: any;
|
|
12
|
+
payload: any;
|
|
13
|
+
}>;
|
|
8
14
|
}
|
|
9
15
|
import { ApiAbstractElementClass } from "./api_abstract_element_class.js";
|