complexqa_frontend_core 1.1.1 → 1.3.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.
@@ -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
  /*********************** работа с администраторами компании *******************************/