complexqa_frontend_core 1.1.1 → 1.2.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/publish/api/index.js
CHANGED
|
@@ -4,6 +4,7 @@ import { ServiceApi } from "./service_api";
|
|
|
4
4
|
import { TestCaseApi } from "./test_case_api";
|
|
5
5
|
import { TestSuiteApi } from "./test_suite_api";
|
|
6
6
|
import { TestCaseStepApi } from "./test_case_step_api.js";
|
|
7
|
+
import { TeamManagementApi } from "./team_management_api.js";
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* Обертка над axios
|
|
@@ -106,11 +107,12 @@ export class Api
|
|
|
106
107
|
|
|
107
108
|
//echo({payload});
|
|
108
109
|
|
|
109
|
-
this.test_plan
|
|
110
|
-
this.project
|
|
111
|
-
this.service
|
|
112
|
-
this.test_case
|
|
113
|
-
this.test_case_step
|
|
114
|
-
this.test_suite
|
|
110
|
+
this.test_plan = new TestPlanApi(payload);
|
|
111
|
+
this.project = new ProjectApi(payload);
|
|
112
|
+
this.service = new ServiceApi(payload);
|
|
113
|
+
this.test_case = new TestCaseApi(payload);
|
|
114
|
+
this.test_case_step = new TestCaseStepApi(payload);
|
|
115
|
+
this.test_suite = new TestSuiteApi(payload);
|
|
116
|
+
this.team_management = new TeamManagementApi(payload);
|
|
115
117
|
}
|
|
116
118
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ApiAbstractElementClass } from "./api_abstract_element_class";
|
|
2
|
+
import { typeTeam } from "../types/family_elements/typeTeam.js";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* @version v.0.1 (27/07/2025)
|
|
8
|
+
*/
|
|
9
|
+
export class TeamManagementApi extends ApiAbstractElementClass
|
|
10
|
+
{
|
|
11
|
+
module_prefix = 'team_management';
|
|
12
|
+
|
|
13
|
+
constructor(options)
|
|
14
|
+
{
|
|
15
|
+
super(options);
|
|
16
|
+
this.set_element_class_instance(typeTeam);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { familyGeneralElement } from "./0_familyGeneralElement.js";
|
|
2
|
+
import { is_object } from "../../utils/utils.js";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @version v.0.1 (07/07/2025)
|
|
7
|
+
*/
|
|
8
|
+
export class typePrice extends familyGeneralElement
|
|
9
|
+
{
|
|
10
|
+
price_id;
|
|
11
|
+
price_name;
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
primary_key = 'price_id';
|
|
15
|
+
|
|
16
|
+
structure_scheme = {
|
|
17
|
+
price_id : 'integer | require',
|
|
18
|
+
price_name: 'string | require',
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @param {object|false|undefined} data
|
|
24
|
+
*/
|
|
25
|
+
constructor(data = false)
|
|
26
|
+
{
|
|
27
|
+
super();
|
|
28
|
+
|
|
29
|
+
if (data && is_object(data))
|
|
30
|
+
{
|
|
31
|
+
_.mapObject(data, (value, key) =>
|
|
32
|
+
{
|
|
33
|
+
if (this.hasOwnProperty(key))
|
|
34
|
+
{
|
|
35
|
+
this [ key ] = value;
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
return this;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -10,8 +10,10 @@ export class typeTeam extends familyGeneralElement
|
|
|
10
10
|
team_id; //
|
|
11
11
|
team_status; // enum
|
|
12
12
|
team_type; // enum
|
|
13
|
+
price_id;
|
|
13
14
|
team_country_code; // (закон о перс данных и иные) как минимум статистика
|
|
14
15
|
team_name;
|
|
16
|
+
team_slug;
|
|
15
17
|
_team_price_id // foreign key (тариф)
|
|
16
18
|
team_root_user_id; // foreign key
|
|
17
19
|
created_at;
|
|
@@ -20,13 +22,16 @@ export class typeTeam extends familyGeneralElement
|
|
|
20
22
|
|
|
21
23
|
|
|
22
24
|
primary_key = 'team_id';
|
|
25
|
+
api_key = 'team_management';
|
|
23
26
|
|
|
24
27
|
structure_scheme = {
|
|
25
28
|
team_id : 'integer | require',
|
|
26
29
|
team_status : 'string | enum | require',
|
|
27
30
|
team_type : 'string | enum | require',
|
|
31
|
+
price_id : 'integer | enum | require',
|
|
28
32
|
team_country_code: 'string | country_code | require',
|
|
29
|
-
team_name : 'string | require',
|
|
33
|
+
team_name : 'string | unique | require',
|
|
34
|
+
team_slug : 'string | unique | require',
|
|
30
35
|
team_price_id : 'integer | require',
|
|
31
36
|
team_root_user_id: 'integer | require',
|
|
32
37
|
created_at : 'timestamp | require',
|
|
@@ -63,18 +68,6 @@ export class typeTeam extends familyGeneralElement
|
|
|
63
68
|
}
|
|
64
69
|
|
|
65
70
|
|
|
66
|
-
/******************************************************************************************/
|
|
67
|
-
/*********************************** general **********************************************/
|
|
68
|
-
|
|
69
|
-
/******************************************************************************************/
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
*
|
|
73
|
-
* @version v.0.1 (07/07/2024)
|
|
74
|
-
*/
|
|
75
|
-
async create()
|
|
76
|
-
{}
|
|
77
|
-
|
|
78
71
|
|
|
79
72
|
/******************************************************************************************/
|
|
80
73
|
/*********************** работа с администраторами компании *******************************/
|