complexqa_frontend_core 1.7.3 → 1.7.5

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "complexqa_frontend_core",
3
- "version": "1.7.3",
3
+ "version": "1.7.5",
4
4
  "description": "core of web ",
5
5
  "type": "module",
6
6
  "exports": {
@@ -37,6 +37,12 @@ export class typeProject extends familyGeneralElement
37
37
  project_status: [ 'OPEN', 'CLOSED', 'PLANNED' ]
38
38
  };
39
39
 
40
+ status_color = {
41
+ OPEN : '#3AADA0',
42
+ CLOSED : '#9E9E9E',
43
+ PLANNED: '#C4B040',
44
+ };
45
+
40
46
 
41
47
  /**
42
48
  *
@@ -1,4 +1,3 @@
1
- import { familyGeneralElement } from "./0_familyGeneralElement";
2
1
  import { is_object } from "../../utils/utils";
3
2
  import { familyTestDocumentation } from "./1_familyTestDocumentation.js";
4
3
 
@@ -16,14 +15,13 @@ export class typeTestRun extends familyTestDocumentation
16
15
  project_id;
17
16
  team_id;
18
17
  test_run_description;
19
- milestone_id; /// ??
18
+ //milestone_id; /// ??
20
19
  assigned_to; // кому назначили выполнение, пока в той же таблице, только 1 член команды
21
20
  test_case_ids; // массив тестов на запуск
22
21
  test_run_status;
23
- test_case_summary_statistic; // массив [key->value] по статусам вложенных тест-кейсов для визуализации
22
+ //test_case_summary_statistic; // массив [key->value] по статусам вложенных тест-кейсов для визуализации
24
23
  // typeTestRunResult.test_result_status : 'PASSED', 'FAILED', 'SKIPPED', 'BLOCKED', 'RETEST'
25
24
 
26
-
27
25
  created_at;
28
26
  updated_at;
29
27
  completed_at;
@@ -32,6 +30,26 @@ export class typeTestRun extends familyTestDocumentation
32
30
  primary_key = 'test_run_id';
33
31
  api_key = 'test_run';
34
32
 
33
+ structure_scheme = {
34
+ test_run_id : 'integer | require',
35
+ test_run_name : 'string | optional',
36
+ project_id : 'integer | require',
37
+ team_id : 'integer | require',
38
+ test_run_description: 'string | optional',
39
+ assigned_to : 'integer | optional',
40
+ test_case_ids : 'array | optional',
41
+ test_run_status : 'string | require',
42
+ created_at : 'timestamp | require',
43
+ updated_at : 'timestamp | optional',
44
+ completed_at : 'timestamp | optional',
45
+ };
46
+
47
+ create_scheme = [
48
+ 'test_run_name',
49
+ 'project_id',
50
+ 'test_case_ids'
51
+ ];
52
+
35
53
  available_enum_values = {
36
54
  test_run_status: [ 'PENDING', 'IN_PROGRESS', 'COMPLETED', 'CLOSED' ],
37
55
  };