complexqa_frontend_core 1.6.2 → 1.6.3
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
|
@@ -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
|
/**
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
}
|