complexqa_frontend_core 1.11.4 → 1.12.2
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/publish/index.js
CHANGED
|
@@ -19,6 +19,7 @@ export { typeTestAccount } from './types/family_elements/typeTestAccount.js'
|
|
|
19
19
|
export { typeUser } from './types/family_elements/typeUser.js';
|
|
20
20
|
export { typeTeam } from './types/family_elements/typeTeam.js';
|
|
21
21
|
export { typeTeamMember } from './types/family_elements/typeTeamMember.js';
|
|
22
|
+
export {typeTeamTotalStatistic} from './types/family_contracts/typeTeamTotalStatistic.js';
|
|
22
23
|
|
|
23
24
|
export { typeTask } from './types/family_elements/typeTask.js';
|
|
24
25
|
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* базовый тип для контрактов
|
|
3
|
+
*
|
|
4
|
+
* @version v.1.0 (31/03/2026)
|
|
5
|
+
*/
|
|
6
|
+
export class familyContracts
|
|
7
|
+
{
|
|
8
|
+
attribute_name_translate_matrix = {
|
|
9
|
+
en:{},
|
|
10
|
+
ru:{}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @version v.1.0 (14/03/2026)
|
|
17
|
+
*
|
|
18
|
+
* @param {string} attribute_name
|
|
19
|
+
* @param {string} lang
|
|
20
|
+
*
|
|
21
|
+
* @return {string}
|
|
22
|
+
*/
|
|
23
|
+
get_attribute_name_translate(attribute_name, lang)
|
|
24
|
+
{
|
|
25
|
+
let response = attribute_name
|
|
26
|
+
|
|
27
|
+
if (!lang)
|
|
28
|
+
{
|
|
29
|
+
lang = 'en';
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
if (this.attribute_name_translate_matrix?.[lang]?.[attribute_name])
|
|
33
|
+
{
|
|
34
|
+
response = this.attribute_name_translate_matrix?.[lang]?.[attribute_name];
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
return response;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { familyContracts } from "./familyContracts.js";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @version v.1.0 (31/03/2026)
|
|
6
|
+
*/
|
|
7
|
+
export class typeTeamTotalStatistic extends familyContracts
|
|
8
|
+
{
|
|
9
|
+
project;
|
|
10
|
+
test_suite;
|
|
11
|
+
test_case;
|
|
12
|
+
test_case_step;
|
|
13
|
+
test_run;
|
|
14
|
+
team_member;
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
attribute_name_translate_matrix = {
|
|
18
|
+
en: {
|
|
19
|
+
project : 'project',
|
|
20
|
+
test_suite : 'test suite',
|
|
21
|
+
test_case : 'test case',
|
|
22
|
+
test_case_step: 'test case step',
|
|
23
|
+
test_run : 'test run',
|
|
24
|
+
team_member : 'team member',
|
|
25
|
+
},
|
|
26
|
+
ru: {
|
|
27
|
+
project : 'project',
|
|
28
|
+
test_suite : 'test suite',
|
|
29
|
+
test_case : 'test case',
|
|
30
|
+
test_case_step: 'test case step',
|
|
31
|
+
test_run : 'test run',
|
|
32
|
+
team_member : 'team member',
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
}
|
|
@@ -65,8 +65,8 @@ export class typeTask extends familyGeneralElement
|
|
|
65
65
|
* @version v.0.1 (21/03/2026)
|
|
66
66
|
* @returns {Promise<*>}
|
|
67
67
|
*/
|
|
68
|
-
async get_current_user_tasks()
|
|
68
|
+
async get_current_user_tasks(payload)
|
|
69
69
|
{
|
|
70
|
-
return ApiService[ this.api_key ].get_current_user_tasks();
|
|
70
|
+
return ApiService[ this.api_key ].get_current_user_tasks(payload);
|
|
71
71
|
}
|
|
72
72
|
}
|