complexqa_frontend_core 1.6.2 → 1.6.4

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.6.2",
3
+ "version": "1.6.4",
4
4
  "description": "core of web ",
5
5
  "type": "module",
6
6
  "exports": {
@@ -36,6 +36,8 @@ export class Api
36
36
  service;
37
37
 
38
38
  host_api = false;
39
+ frontend_host = false;
40
+ general_domain = false;
39
41
 
40
42
 
41
43
  /**
@@ -68,6 +70,16 @@ export class Api
68
70
  this.stage = init_options.stage;
69
71
  }
70
72
 
73
+ if (init_options.frontend_host)
74
+ {
75
+ this.frontend_host = init_options.frontend_host;
76
+ }
77
+
78
+ if (init_options.general_domain)
79
+ {
80
+ this.general_domain = init_options.general_domain;
81
+ }
82
+
71
83
  if (init_options.dev_stage_config)
72
84
  {
73
85
  // @todo validate
@@ -15,4 +15,24 @@ export class TeamManagementApi extends ApiAbstractElementClass
15
15
  super(options);
16
16
  this.set_element_class_instance(typeTeam);
17
17
  }
18
+
19
+
20
+
21
+ /**
22
+ *
23
+ * @version v.0.1 (03/02/2026)
24
+ */
25
+ async is_team_slug_available(payload)
26
+ {
27
+ let url = `/${ this.api_prefix }/${ this.module_prefix }/is_team_slug_available`;
28
+
29
+ payload = this.handle_request_payload(payload);
30
+ let response = this.api_request(url, payload);
31
+ response = this.handle_response(response);
32
+
33
+ return {
34
+ response: response,
35
+ payload : payload
36
+ };
37
+ }
18
38
  }
package/publish/index.js CHANGED
@@ -6,8 +6,9 @@ export { typeFOR } from './types/family_service/typeFOR.js';
6
6
  export { typeProject } from './types/family_elements/typeProject.js';
7
7
  export { typeTestCase } from './types/family_elements/typeTestCase.js';
8
8
  export { typeTestCaseStep } from './types/family_elements/typeTestCaseStep.js';
9
- export { UserService } from './services/UserService.js'
9
+ export { UserService } from './services/UserService.js';
10
10
  export { Api } from "./api/index.js";
11
+ export { typeTeam } from './types/family_elements/typeTeam.js';
11
12
 
12
13
 
13
14
  /**
@@ -187,11 +187,14 @@ export class familyGeneralElement
187
187
 
188
188
  /**
189
189
  *
190
- * @version v.0.1 (26/05/2024)
190
+ * @version v.0.2 (22/02/2026)
191
+ *
191
192
  * @param {string} attribute_name
193
+ * @param {string} lang
194
+ *
192
195
  * @return {string}
193
196
  */
194
- get_attribute_name_translate(attribute_name)
197
+ get_attribute_name_translate(attribute_name, lang)
195
198
  {
196
199
  return attribute_name;
197
200
  }
@@ -1,5 +1,5 @@
1
1
  import { familyGeneralElement } from "./0_familyGeneralElement";
2
- import { is_object } from "../../utils/utils";
2
+ import { echo, is_object } from "../../utils/utils";
3
3
 
4
4
 
5
5
  /**
@@ -69,30 +69,37 @@ export class typeTeam extends familyGeneralElement
69
69
 
70
70
 
71
71
 
72
- /******************************************************************************************/
73
- /*********************** работа с администраторами компании *******************************/
74
-
75
- /******************************************************************************************/
76
-
77
- adminstator_add() {}
78
-
79
- adminstator_update() {}
80
-
81
- adminstator_delete() {}
82
-
83
- adminstators_get() {}
84
-
85
-
86
- /******************************************************************************************/
87
- /************************* работа с сотрудниками компании *********************************/
88
-
89
- /******************************************************************************************/
90
-
91
- user_add() {}
92
-
93
- user_update() {}
72
+ /**
73
+ *
74
+ * @version v.0.1 (03/02/2026)
75
+ */
76
+ is_team_slug_available(payload, callback)
77
+ {
78
+ payload = this.normalize_payload(payload);
94
79
 
95
- user_delete() {}
96
80
 
97
- users_get() {}
81
+ /**
82
+ * {Api} ApiService
83
+ */
84
+ return ApiService[this.api_key].is_team_slug_available(payload).then((response) =>
85
+ {
86
+ if (typeof callback?.success === 'function')
87
+ {
88
+ callback?.success({ response, payload })
89
+ }
90
+ }).catch((error) =>
91
+ {
92
+ echo({ error });
93
+ if (typeof callback?.error === 'function')
94
+ {
95
+ callback?.error({ error, payload })
96
+ }
97
+ }).finally((response) =>
98
+ {
99
+ if (typeof callback?.final === 'function')
100
+ {
101
+ callback?.final({ response, payload })
102
+ }
103
+ });
104
+ }
98
105
  }