complexqa_frontend_core 2.2.2 → 2.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.
@@ -1,48 +1,54 @@
1
- import { BaseException } from './0_BaseException.js';
2
-
3
- /**
4
- *
5
- * @version v.1.0 (01/05/2026)
6
- */
7
- export class ApiException extends BaseException
8
- {
9
-
10
-
11
-
12
- api_response = null;
13
- api_code = null;
14
- api_result = null;
15
- api_error = null;
16
-
17
-
18
- /**
19
- *
20
- * @version v.1.0 (01/05/2026)
21
- */
22
- constructor(options)
23
- {
24
- super(options);
25
-
26
-
27
- if (options?.api_response)
28
- {
29
- this.api_response = options?.api_response;
30
- }
31
-
32
- if (options?.api_code)
33
- {
34
- this.api_code = options?.api_code;
35
- }
36
-
37
- if (options?.api_result)
38
- {
39
- this.api_result = options?.api_result;
40
- }
41
-
42
- if (options?.api_error)
43
- {
44
- this.api_error = options?.api_error;
45
- }
46
- }
47
-
1
+ import { BaseException } from './0_BaseException.js';
2
+
3
+ /**
4
+ *
5
+ * @version v.1.0 (01/05/2026)
6
+ */
7
+ export class ApiException extends BaseException
8
+ {
9
+
10
+
11
+
12
+ api_response = null;
13
+ api_code = null;
14
+ api_result = null;
15
+ api_error = null;
16
+ hint = null;
17
+
18
+
19
+ /**
20
+ *
21
+ * @version v.1.0 (01/05/2026)
22
+ */
23
+ constructor(options)
24
+ {
25
+ super(options);
26
+
27
+
28
+ if (options?.api_response)
29
+ {
30
+ this.api_response = options?.api_response;
31
+ }
32
+
33
+ if (options?.api_code)
34
+ {
35
+ this.api_code = options?.api_code;
36
+ }
37
+
38
+ if (options?.api_result)
39
+ {
40
+ this.api_result = options?.api_result;
41
+ }
42
+
43
+ if (options?.api_error)
44
+ {
45
+ this.api_error = options?.api_error;
46
+ }
47
+
48
+ if (options?.hint)
49
+ {
50
+ this.hint = options.hint;
51
+ }
52
+ }
53
+
48
54
  }
@@ -84,15 +84,15 @@ export const typeTeamDomain_i18n = {
84
84
  verification_method: {
85
85
  en: {
86
86
  FILE : 'Text file',
87
- DNS_TXT: 'DNS TXT',
87
+ DNS_TXT: 'DNS TXT record',
88
88
  },
89
89
  ru: {
90
90
  FILE : 'Текстовый файл',
91
- DNS_TXT: 'DNS TXT',
91
+ DNS_TXT: 'DNS TXT-запись',
92
92
  },
93
93
  tt: {
94
94
  FILE : 'Текст файлы',
95
- DNS_TXT: 'DNS TXT',
95
+ DNS_TXT: 'DNS TXT язмасы',
96
96
  },
97
97
  },
98
98
  },
@@ -40,12 +40,21 @@ export class typeTeam extends familyGeneralElement
40
40
  };
41
41
 
42
42
 
43
- /** @type {Record<string, string[]>} */
43
+ /** @type {Record<string, string[]>} */
44
44
  available_enum_values = {
45
45
  team_status: [ 'PENDING', 'APPROVED', 'BANNED', 'FROZEN', 'TRIAL' ],
46
46
  team_type : [ 'PERSONAL', 'ORGANIZATION', 'SCHOOL' ],
47
47
  };
48
48
 
49
+ /** @type {Record<string, string>} */
50
+ status_color = {
51
+ PENDING : '#C4B040',
52
+ TRIAL : '#546E7A',
53
+ APPROVED: '#009688',
54
+ FROZEN : '#FD9A4F',
55
+ BANNED : '#E66565',
56
+ };
57
+
49
58
 
50
59
 
51
60
 
@@ -121,4 +130,35 @@ export class typeTeam extends familyGeneralElement
121
130
  {
122
131
  return this.get_api_client().get_team_total_statistic();
123
132
  }
133
+
134
+
135
+ /**
136
+ * @version v.1.0 (29/09/2026)
137
+ * @returns {Promise<any>}
138
+ */
139
+ async get_current_team()
140
+ {
141
+ return this.get_api_client().get_current_team();
142
+ }
143
+
144
+
145
+ /**
146
+ * @version v.1.0 (29/09/2026)
147
+ * @param {string} team_name
148
+ * @returns {Promise<any>}
149
+ */
150
+ async update_team_name(team_name)
151
+ {
152
+ return this.get_api_client().update_team_name({ team_name });
153
+ }
154
+
155
+
156
+ /**
157
+ * @version v.1.0 (29/09/2026)
158
+ * @returns {Promise<any>}
159
+ */
160
+ async get_team_plan()
161
+ {
162
+ return this.get_api_client().get_team_plan();
163
+ }
124
164
  }
@@ -1,7 +1,7 @@
1
1
  import { familyGeneralElement } from "../core/0_familyGeneralElement.js";
2
2
  import { echo, is_object } from "../../utils/utils.js";
3
3
  import { typeTeamMember_i18n } from "../element_translate/typeTeamMember.i18n.js";
4
- import _ from 'underscore';
4
+ import _ from 'underscore';
5
5
 
6
6
 
7
7
  /**
@@ -35,12 +35,20 @@ export class typeTeamMember extends familyGeneralElement
35
35
  updated_at : 'timestamp | optional',
36
36
  };
37
37
 
38
- /** @type {Record<string, string[]>} */
38
+ /** @type {Record<string, string[]>} */
39
39
  available_enum_values = {
40
40
  team_member_status: [ 'PENDING', 'ACCEPTED', 'BANNED', 'REJECTED' ],
41
41
  member_role : [ 'ADMINISTRATOR', 'MEMBER', 'READONLY' ]
42
42
  };
43
43
 
44
+ /** @type {Record<string, string>} */
45
+ status_color = {
46
+ PENDING : '#C4B040',
47
+ ACCEPTED: '#009688',
48
+ REJECTED: '#9E9E9E',
49
+ BANNED : '#E66565',
50
+ };
51
+
44
52
 
45
53
  attribute_name_translate_matrix = typeTeamMember_i18n.attribute_name_translate_matrix;
46
54
 
@@ -73,6 +73,7 @@ export class Api {
73
73
  team_domain: TeamDomainApi;
74
74
  url_inspect: UrlInspectApi;
75
75
  file_app: FileAppApi;
76
+ mcp_key: McpKeyApi;
76
77
  text_document: TextDocumentApi;
77
78
  text_document_folder: TextDocumentFolderApi;
78
79
  public_text_document: PublicTextDocumentApi;
@@ -140,6 +141,7 @@ import { BrowserToolsScreenshotMultiApi } from "./util/browser_tools_screenshot_
140
141
  import { TeamDomainApi } from "./team_domain_api.js";
141
142
  import { UrlInspectApi } from "./util/url_inspect_api.js";
142
143
  import { FileAppApi } from "./file_app_api.js";
144
+ import { McpKeyApi } from "./mcp_key_api.js";
143
145
  import { TextDocumentApi } from "./text_document_api.js";
144
146
  import { TextDocumentFolderApi } from "./text_document_folder_api.js";
145
147
  import { PublicTextDocumentApi } from "./public_text_document_api.js";
@@ -0,0 +1,76 @@
1
+ /**
2
+ * Main App bridge → CQA_MCP key HTTP.
3
+ *
4
+ * POST /web_api/mcp_key/create|search|revoke|catalog|list_projects
5
+ *
6
+ * @version v.1.0 (28/09/2026)
7
+ */
8
+ export class McpKeyApi extends ApiAbstractClass {
9
+ module_prefix: string;
10
+ /**
11
+ * POST /web_api/mcp_key/create
12
+ *
13
+ * @param {object} payload team_id, project_id, grants
14
+ *
15
+ * @returns {Promise<{payload: object, response: object}>}
16
+ */
17
+ create(payload: object): Promise<{
18
+ payload: object;
19
+ response: object;
20
+ }>;
21
+ /**
22
+ * POST /web_api/mcp_key/search
23
+ *
24
+ * @param {object} payload пусто — свои ключи; team_id — ключи команды
25
+ *
26
+ * @returns {Promise<{payload: object, response: object}>}
27
+ */
28
+ search(payload: object): Promise<{
29
+ payload: object;
30
+ response: object;
31
+ }>;
32
+ /**
33
+ * POST /web_api/mcp_key/revoke
34
+ *
35
+ * @param {object} payload mcp_key_id
36
+ *
37
+ * @returns {Promise<{payload: object, response: object}>}
38
+ */
39
+ revoke(payload: object): Promise<{
40
+ payload: object;
41
+ response: object;
42
+ }>;
43
+ /**
44
+ * POST /web_api/mcp_key/catalog
45
+ *
46
+ * @param {object} payload
47
+ *
48
+ * @returns {Promise<{payload: object, response: object}>}
49
+ */
50
+ catalog(payload: object): Promise<{
51
+ payload: object;
52
+ response: object;
53
+ }>;
54
+ /**
55
+ * POST /web_api/mcp_key/list_projects
56
+ *
57
+ * @param {object} payload team_id
58
+ *
59
+ * @returns {Promise<{payload: object, response: object}>}
60
+ */
61
+ list_projects(payload: object): Promise<{
62
+ payload: object;
63
+ response: object;
64
+ }>;
65
+ /**
66
+ * @param {string} action
67
+ * @param {object} payload
68
+ *
69
+ * @returns {Promise<{payload: object, response: object}>}
70
+ */
71
+ _post(action: string, payload: object): Promise<{
72
+ payload: object;
73
+ response: object;
74
+ }>;
75
+ }
76
+ import { ApiAbstractClass } from "./api_abstract_class.js";
@@ -23,5 +23,32 @@ export class TeamManagementApi extends ApiAbstractElementClass {
23
23
  payload: (any | {});
24
24
  response: Promise<any>;
25
25
  }>;
26
+ /**
27
+ * @version v.1.0 (29/09/2026)
28
+ * @returns {Promise<{payload: (*|{}), response: Promise<*>}>}
29
+ */
30
+ get_current_team(payload?: {}): Promise<{
31
+ payload: (any | {});
32
+ response: Promise<any>;
33
+ }>;
34
+ /**
35
+ * @version v.1.0 (29/09/2026)
36
+ * @param {{team_name: string}} payload
37
+ * @returns {Promise<{payload: (*|{}), response: Promise<*>}>}
38
+ */
39
+ update_team_name(payload: {
40
+ team_name: string;
41
+ }): Promise<{
42
+ payload: (any | {});
43
+ response: Promise<any>;
44
+ }>;
45
+ /**
46
+ * @version v.1.0 (29/09/2026)
47
+ * @returns {Promise<{payload: (*|{}), response: Promise<*>}>}
48
+ */
49
+ get_team_plan(payload?: {}): Promise<{
50
+ payload: (any | {});
51
+ response: Promise<any>;
52
+ }>;
26
53
  }
27
54
  import { ApiAbstractElementClass } from "./api_abstract_element_class.js";
@@ -12,5 +12,6 @@ export class ApiException extends BaseException {
12
12
  api_code: any;
13
13
  api_result: any;
14
14
  api_error: any;
15
+ hint: any;
15
16
  }
16
17
  import { BaseException } from './0_BaseException.js';
@@ -35,6 +35,8 @@ export class typeTeam extends familyGeneralElement {
35
35
  };
36
36
  /** @type {Record<string, string[]>} */
37
37
  available_enum_values: Record<string, string[]>;
38
+ /** @type {Record<string, string>} */
39
+ status_color: Record<string, string>;
38
40
  /**
39
41
  *
40
42
  * @version v.0.1 (03/02/2026)
@@ -50,5 +52,21 @@ export class typeTeam extends familyGeneralElement {
50
52
  * @returns {Promise<any>}
51
53
  */
52
54
  get_team_total_statistic(): Promise<any>;
55
+ /**
56
+ * @version v.1.0 (29/09/2026)
57
+ * @returns {Promise<any>}
58
+ */
59
+ get_current_team(): Promise<any>;
60
+ /**
61
+ * @version v.1.0 (29/09/2026)
62
+ * @param {string} team_name
63
+ * @returns {Promise<any>}
64
+ */
65
+ update_team_name(team_name: string): Promise<any>;
66
+ /**
67
+ * @version v.1.0 (29/09/2026)
68
+ * @returns {Promise<any>}
69
+ */
70
+ get_team_plan(): Promise<any>;
53
71
  }
54
72
  import { familyGeneralElement } from "../core/0_familyGeneralElement.js";
@@ -34,6 +34,8 @@ export class typeTeamMember extends familyGeneralElement {
34
34
  };
35
35
  /** @type {Record<string, string[]>} */
36
36
  available_enum_values: Record<string, string[]>;
37
+ /** @type {Record<string, string>} */
38
+ status_color: Record<string, string>;
37
39
  attribute_name_translate_matrix: {
38
40
  en: {
39
41
  first_name: string;