complexqa_frontend_core 1.0.10 → 1.0.13

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.0.10",
3
+ "version": "1.0.13",
4
4
  "description": "core of web ",
5
5
  "type": "module",
6
6
  "exports": {
@@ -9,7 +9,6 @@
9
9
  "files": [
10
10
  "publish/"
11
11
  ],
12
-
13
12
  "scripts": {
14
13
  "test": "echo \"Error: no test specified\" && exit 1"
15
14
  },
@@ -27,6 +26,7 @@
27
26
  "@babel/plugin-proposal-class-properties": "^7.18.6",
28
27
  "@babel/plugin-proposal-optional-chaining": "^7.21.0",
29
28
  "@babel/plugin-transform-modules-commonjs": "^7.24.7",
29
+ "@babel/plugin-transform-runtime": "^7.27.4",
30
30
  "@babel/preset-env": "^7.24.7",
31
31
  "axios": "^1.7.2",
32
32
  "gulp": "^5.0.0",
@@ -40,11 +40,13 @@
40
40
  "gulp-uncomment": "^0.3.0",
41
41
  "i18next": "^23.11.5",
42
42
  "query-string": "^9.0.0",
43
+ "uglify-js": "^3.19.3",
43
44
  "underscore": "^1.13.6"
44
45
  },
45
46
  "devDependencies": {
46
47
  "babel": "^6.23.0",
47
48
  "babel-plugin-module-resolver-standalone": "^0.0.2",
49
+ "gulp-uglify": "^3.0.2",
48
50
  "requirejs-babel": "^0.0.9"
49
51
  }
50
52
  }
@@ -1,6 +1,6 @@
1
1
  import { clone_object, echo, is_array } from "../utils/utils";
2
2
  import axios from "axios";
3
- import * as qs from "query-string/base";
3
+ import * as qs from "query-string";
4
4
  import { ApiException } from "../exceptions/ApiException";
5
5
 
6
6
  /**
@@ -3,6 +3,7 @@ import { ProjectApi } from "./project_api";
3
3
  import { ServiceApi } from "./service_api";
4
4
  import { TestCaseApi } from "./test_case_api";
5
5
  import { TestSuiteApi } from "./test_suite_api";
6
+ import { TestCaseStepApi } from "./test_case_step_api.js";
6
7
 
7
8
  /**
8
9
  * Обертка над axios
@@ -91,7 +92,7 @@ export class Api
91
92
 
92
93
  /**
93
94
  *
94
- * @version v.0.1 (25/06/2024)
95
+ * @version v.0.2 (06/07/2025)
95
96
  */
96
97
  #bootstrap()
97
98
  {
@@ -99,16 +100,17 @@ export class Api
99
100
  init_options : this.init_options,
100
101
  stage : this.stage,
101
102
  dev_stage_config: this.dev_stage_config,
102
- host_api: this.host_api,
103
+ host_api : this.host_api,
103
104
  parent_app : this
104
105
  };
105
106
 
106
107
  //echo({payload});
107
108
 
108
- this.test_plan = new TestPlanApi(payload);
109
- this.project = new ProjectApi(payload);
110
- this.service = new ServiceApi(payload);
111
- this.test_case = new TestCaseApi(payload);
112
- this.test_suite = new TestSuiteApi(payload);
109
+ this.test_plan = new TestPlanApi(payload);
110
+ this.project = new ProjectApi(payload);
111
+ this.service = new ServiceApi(payload);
112
+ this.test_case = new TestCaseApi(payload);
113
+ this.test_case_step = new TestCaseStepApi(payload);
114
+ this.test_suite = new TestSuiteApi(payload);
113
115
  }
114
116
  }
package/publish/index.js CHANGED
@@ -1,12 +1,13 @@
1
1
  import { serviceTranslate } from "./services/serviceTranslate";
2
2
 
3
+
3
4
  export { typeFilter } from './types/family_service/typeFilter.js';
4
5
  export { typeFOR } from './types/family_service/typeFOR.js';
5
6
  export { typeProject } from './types/family_elements/typeProject.js';
6
7
  export { typeTestCase } from './types/family_elements/typeTestCase.js';
7
8
  export { typeTestCaseStep } from './types/family_elements/typeTestCaseStep.js';
8
-
9
- export { Api } from './api'
9
+ export { UserService } from './services/UserService.js'
10
+ export { Api } from "./api";
10
11
 
11
12
 
12
13
  /**
@@ -77,7 +77,7 @@ export class familyGeneralElement
77
77
  get_available_enum_values(attribute)
78
78
  {
79
79
  let response = false;
80
- if (this.structure_scheme?.[ attribute ])
80
+ if (!this.structure_scheme?.[ attribute ])
81
81
  {
82
82
  // выбрасывать исключения?
83
83
  return false;
@@ -25,10 +25,14 @@ export class typeProject extends familyGeneralElement
25
25
  project_name : 'string | require',
26
26
  project_description : 'string | optional',
27
27
  project_status : 'string | enum | require',
28
- company_id : 'integer | require',
29
- reference_document_ids: 'array | reference | optional',
28
+ team_id : 'integer | require',
29
+ //reference_document_ids: 'array | reference | optional',
30
30
  };
31
31
 
32
+ create_scheme = [
33
+ 'project_name'
34
+ ];
35
+
32
36
  available_enum_values = {
33
37
  project_status: [ 'OPEN', 'CLOSED', 'PLANNED' ]
34
38
  };
@@ -36,12 +36,12 @@ export class typeTestCase extends familyGeneralElement
36
36
  // @todo - довнести
37
37
  structure_scheme = {
38
38
  test_case_id : 'integer | require',
39
- test_suite_id : 'integer | require',
39
+ test_suite_id : 'integer | optional',
40
40
  project_id : 'integer | require',
41
41
  team_id : 'integer | require',
42
42
  functional_id : 'integer | optional',
43
- test_case_title : 'string | require',
44
- test_case_descriptions : 'string | require',
43
+ test_case_title : 'string | optional',
44
+ test_case_descriptions : 'string | optional',
45
45
  test_case_time_to_execute: 'integer | optional',
46
46
  test_case_complexity : 'string | enum | optional',
47
47
  test_case_importance : 'string | enum | optional',
@@ -49,6 +49,10 @@ export class typeTestCase extends familyGeneralElement
49
49
  updated_at : 'timestamp | optional',
50
50
  };
51
51
 
52
+ create_scheme = [
53
+ 'project_id'
54
+ ];
55
+
52
56
  available_enum_values = {
53
57
  test_case_complexity: [ 'LOW', 'NORMAL', 'HIGH' ],
54
58
  test_case_importance: [ 'LOW', 'NORMAL', 'HIGH' ],
@@ -33,6 +33,9 @@ export class typeTestCaseStep extends familyGeneralElement
33
33
  step_excepted_result: 'string | optional',
34
34
  };
35
35
 
36
+ create_scheme = [
37
+ 'test_case_id'
38
+ ];
36
39
 
37
40
  available_enum_values = {
38
41
  test_case_step_type: [ 'TEST_CASE_STEP', 'TEST_CASE_PRESTEP' ],
@@ -24,13 +24,17 @@ export class typeTestSuite extends familyGeneralElement
24
24
  test_suite_id: 'integer | require',
25
25
  project_id : 'integer | require',
26
26
  //functional_id : 'integer | optional',
27
- test_suite_name : 'string | protected | require',
28
- test_suite_description: 'string | require',
27
+ test_suite_name : 'string | optional',
28
+ test_suite_description: 'string | optional',
29
29
  team_id : 'integer | require',
30
30
  created_at : 'timestamp | require',
31
31
  updated_at : 'timestamp | optional',
32
32
  };
33
33
 
34
+ create_scheme = [
35
+ 'project_id'
36
+ ];
37
+
34
38
 
35
39
  /**
36
40
  *