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.
package/src/api/index.js CHANGED
@@ -1,246 +1,248 @@
1
- import { TestPlanApi } from "./test_plan_api.js";
2
- import { ProjectApi } from "./project_api.js";
3
- import { ServiceApi } from "./service_api.js";
4
- import { TestCaseApi } from "./test_case_api.js";
5
- import { TestSuiteApi } from "./test_suite_api.js";
6
- import { TestCaseStepApi } from "./test_case_step_api.js";
7
- import { TeamManagementApi } from "./team_management_api.js";
8
- import { TeamMemberApi } from "./team_member_api.js";
9
- import { TestRunApi } from "./test_run_api.js";
10
- import { TestRunResultApi } from "./test_run_result_api.js";
11
- import { UserProfileApi } from "./user_profile_api.js";
12
- import { TaskApi } from "./task_api.js";
13
- import { TestAccountApi } from "./test_account_api.js";
14
- import { BugApi } from "./bug_api.js";
15
- import { BugRelationApi } from "./bug_relation_api.js";
16
- import { AttachmentApi } from "./attachment_api.js";
17
- import { TagApi } from "./tag_api.js";
18
- import { TagRelationApi } from "./tag_relation_api.js";
19
- import { CustomPropertyApi } from "./custom_property_api.js";
20
- import { CustomPropertyValueApi } from "./custom_property_value_api.js";
21
- import { CustomPropertyOptionApi } from "./custom_property_option_api.js";
22
- import { TagColorApi } from "./tag/tag_color_api.js";
23
- import { TagTemplateApi } from "./tag/tag_template_api.js";
24
- import { CustomPropertyTemplateApi } from "./custom_property/custom_property_template_api.js";
25
- import { ContextBrowserApi } from "./context/context_browser_api.js";
26
- import { ContextDeploymentTargetApi } from "./context/context_deployment_target_api.js";
27
- import { ContextDevicesApi } from "./context/context_devices_api.js";
28
- import { ExecutionContextApi } from "./context/context_execution_general_api.js";
29
- import { ContextLocaleApi } from "./context/context_locale_api.js";
30
- import { ContextOsApi } from "./context/context_os_api.js";
31
- import { ContextScreenResolutionApi } from "./context/context_screen_resolution_api.js";
32
- import { ContextUserAgentsApi } from "./context/context_user_agents_api.js";
33
- import { BrowserToolsUtilExecutionApi } from "./util/browser_tools_util_execution_api.js";
34
- import { BrowserToolsScreenshotMultiApi } from "./util/browser_tools_screenshot_multi_api.js";
35
- import { TeamDomainApi } from "./team_domain_api.js";
36
- import { UrlInspectApi } from "./util/url_inspect_api.js";
37
- import { TextDocumentApi } from "./text_document_api.js";
38
- import { PublicTextDocumentApi } from "./public_text_document_api.js";
39
- import { TextDocumentFolderApi } from "./text_document_folder_api.js";
40
- import { FileAppApi } from "./file_app_api.js";
41
- import { EventApi } from "./event_api.js";
42
- import { AutotestCaseApi } from "./autotest_case_api.js";
43
- import { AutotestSuiteApi } from "./autotest_suite_api.js";
44
- import { AutotestStepApi } from "./autotest_step_api.js";
45
- import { AutotestRunApi } from "./autotest_run_api.js";
46
- import { AutotestResultApi } from "./autotest_result_api.js";
47
- import { ObjectRepositoryFolderApi } from "./object_repository_folder_api.js";
48
- import { ObjectRepositoryPageApi } from "./object_repository_page_api.js";
49
- import { ObjectRepositoryElementApi } from "./object_repository_element_api.js";
50
- import { bootstrap_type_api } from "./typeApiBinding.js";
51
-
52
- /**
53
- * Обертка над axios
54
- * @version v.0.3 (26/01/2025)
55
- */
56
- export class Api
57
- {
58
- /**
59
- * Режим работы
60
- *
61
- * @type {string} development || production || tests
62
- */
63
- stage = 'development';
64
- dev_stage_config = {
65
- generate_error : false,
66
- api_response_delay : 3500,
67
- api_response_search_element_count: 8,
68
- };
69
-
70
- init_options;
71
-
72
- test_plan;
73
- /**
74
- * {ProjectApi} project
75
- */
76
- project;
77
- service;
78
-
79
- /** @type {string|false} */
80
- host_api = false;
81
- /** @type {string|false} */
82
- frontend_host = false;
83
- /** @type {string|false} */
84
- general_domain = false;
85
- /** @type {string|false} */
86
- site_section = false;
87
-
88
- /** @type {EventApi} */
89
- event;
90
-
91
-
92
- /**
93
- *
94
- * @version v.0.3 (26/01/2025)
95
- */
96
- constructor(init_options)
97
- {
98
-
99
- if (this.constructor._instance)
100
- {
101
- return this.constructor._instance;
102
- }
103
-
104
-
105
- if (init_options.host_api)
106
- {
107
- // @todo validate
108
- this.host_api = init_options.host_api;
109
- }
110
- else
111
- {
112
- // подумать
113
- this.host_api = 'complexqa.localhost';
114
- }
115
-
116
- if (init_options.stage)
117
- {
118
- // @todo validate
119
- this.stage = init_options.stage;
120
- }
121
-
122
- if (init_options.frontend_host)
123
- {
124
- this.frontend_host = init_options.frontend_host;
125
- }
126
-
127
- if (init_options.general_domain)
128
- {
129
- this.general_domain = init_options.general_domain;
130
- }
131
-
132
- if (init_options.dev_stage_config)
133
- {
134
- // @todo validate
135
- this.dev_stage_config = init_options.dev_stage_config;
136
- }
137
-
138
-
139
- if (init_options.site_section)
140
- {
141
- this.site_section = init_options.site_section;
142
- }
143
-
144
- this.init_options = init_options;
145
- this.constructor._instance = this;
146
-
147
- bootstrap_type_api({ api_service: this });
148
-
149
- this.#bootstrap();
150
- return this.constructor._instance;
151
- }
152
-
153
-
154
- /**
155
- *
156
- * @param stage
157
- */
158
- set_stage(stage)
159
- {
160
- this.stage = stage;
161
- }
162
-
163
-
164
- /**
165
- *
166
- * @version v.1.2 (04/06/2026)
167
- */
168
- #bootstrap()
169
- {
170
- let payload = {
171
- init_options : this.init_options,
172
- stage : this.stage,
173
- dev_stage_config: this.dev_stage_config,
174
- host_api : this.host_api,
175
- parent_app : this
176
- };
177
-
178
- //echo({payload});
179
-
180
- this.team_management = new TeamManagementApi(payload);
181
- this.team_member = new TeamMemberApi(payload);
182
- this.test_plan = new TestPlanApi(payload);
183
- this.project = new ProjectApi(payload);
184
- this.service = new ServiceApi(payload);
185
- this.test_case = new TestCaseApi(payload);
186
- this.test_case_step = new TestCaseStepApi(payload);
187
- this.test_suite = new TestSuiteApi(payload);
188
- this.test_run = new TestRunApi(payload);
189
- this.test_run_result = new TestRunResultApi(payload);
190
- this.user_profile = new UserProfileApi(payload);
191
- this.task = new TaskApi(payload);
192
- this.test_account = new TestAccountApi(payload);
193
- this.bug = new BugApi(payload);
194
- this.bug_relation = new BugRelationApi(payload);
195
- this.attachment = new AttachmentApi(payload);
196
- this.tag = new TagApi(payload);
197
- this.tag_relation = new TagRelationApi(payload);
198
- this.custom_property = new CustomPropertyApi(payload);
199
- this.custom_property_value = new CustomPropertyValueApi(payload);
200
- this.custom_property_option = new CustomPropertyOptionApi(payload);
201
- this.event = new EventApi(payload);
202
- this.autotest_case = new AutotestCaseApi(payload);
203
- this.autotest_suite = new AutotestSuiteApi(payload);
204
- this.autotest_step = new AutotestStepApi(payload);
205
- this.autotest_run = new AutotestRunApi(payload);
206
- this.autotest_result = new AutotestResultApi(payload);
207
- this.object_repository_folder = new ObjectRepositoryFolderApi(payload);
208
- this.object_repository_page = new ObjectRepositoryPageApi(payload);
209
- this.object_repository_element = new ObjectRepositoryElementApi(payload);
210
- this.execution_context = new ExecutionContextApi(payload);
211
- this.browser_tools_util_execution = new BrowserToolsUtilExecutionApi(payload);
212
- this.browser_tools_screenshot_multi = new BrowserToolsScreenshotMultiApi(payload);
213
- this.team_domain = new TeamDomainApi(payload);
214
- this.url_inspect = new UrlInspectApi(payload);
215
- this.file_app = new FileAppApi(payload);
216
- this.text_document = new TextDocumentApi(payload);
217
- this.text_document_folder = new TextDocumentFolderApi(payload);
218
- this.public_text_document = new PublicTextDocumentApi(payload);
219
-
220
- this.reference = this.bootstrap_reference(payload)
221
- }
222
-
223
- /**
224
- *
225
- * @version v.0.1 (04/06/2026)
226
- * @param payload
227
- */
228
- bootstrap_reference(payload)
229
- {
230
- let response = {};
231
-
232
- response.context_browser = new ContextBrowserApi(payload);
233
- response.context_deployment_target = new ContextDeploymentTargetApi(payload);
234
- response.context_devices = new ContextDevicesApi(payload);
235
- //response.execution_context = new ExecutionContextApi(payload);
236
- response.context_locale = new ContextLocaleApi(payload);
237
- response.context_os = new ContextOsApi(payload);
238
- response.context_screen_resolution = new ContextScreenResolutionApi(payload);
239
- response.context_user_agents = new ContextUserAgentsApi(payload);
240
- response.tag_color = new TagColorApi(payload);
241
- response.tag_template = new TagTemplateApi(payload);
242
- response.custom_property_template = new CustomPropertyTemplateApi(payload);
243
-
244
- return response;
245
- }
1
+ import { TestPlanApi } from "./test_plan_api.js";
2
+ import { ProjectApi } from "./project_api.js";
3
+ import { ServiceApi } from "./service_api.js";
4
+ import { TestCaseApi } from "./test_case_api.js";
5
+ import { TestSuiteApi } from "./test_suite_api.js";
6
+ import { TestCaseStepApi } from "./test_case_step_api.js";
7
+ import { TeamManagementApi } from "./team_management_api.js";
8
+ import { TeamMemberApi } from "./team_member_api.js";
9
+ import { TestRunApi } from "./test_run_api.js";
10
+ import { TestRunResultApi } from "./test_run_result_api.js";
11
+ import { UserProfileApi } from "./user_profile_api.js";
12
+ import { TaskApi } from "./task_api.js";
13
+ import { TestAccountApi } from "./test_account_api.js";
14
+ import { BugApi } from "./bug_api.js";
15
+ import { BugRelationApi } from "./bug_relation_api.js";
16
+ import { AttachmentApi } from "./attachment_api.js";
17
+ import { TagApi } from "./tag_api.js";
18
+ import { TagRelationApi } from "./tag_relation_api.js";
19
+ import { CustomPropertyApi } from "./custom_property_api.js";
20
+ import { CustomPropertyValueApi } from "./custom_property_value_api.js";
21
+ import { CustomPropertyOptionApi } from "./custom_property_option_api.js";
22
+ import { TagColorApi } from "./tag/tag_color_api.js";
23
+ import { TagTemplateApi } from "./tag/tag_template_api.js";
24
+ import { CustomPropertyTemplateApi } from "./custom_property/custom_property_template_api.js";
25
+ import { ContextBrowserApi } from "./context/context_browser_api.js";
26
+ import { ContextDeploymentTargetApi } from "./context/context_deployment_target_api.js";
27
+ import { ContextDevicesApi } from "./context/context_devices_api.js";
28
+ import { ExecutionContextApi } from "./context/context_execution_general_api.js";
29
+ import { ContextLocaleApi } from "./context/context_locale_api.js";
30
+ import { ContextOsApi } from "./context/context_os_api.js";
31
+ import { ContextScreenResolutionApi } from "./context/context_screen_resolution_api.js";
32
+ import { ContextUserAgentsApi } from "./context/context_user_agents_api.js";
33
+ import { BrowserToolsUtilExecutionApi } from "./util/browser_tools_util_execution_api.js";
34
+ import { BrowserToolsScreenshotMultiApi } from "./util/browser_tools_screenshot_multi_api.js";
35
+ import { TeamDomainApi } from "./team_domain_api.js";
36
+ import { UrlInspectApi } from "./util/url_inspect_api.js";
37
+ import { TextDocumentApi } from "./text_document_api.js";
38
+ import { PublicTextDocumentApi } from "./public_text_document_api.js";
39
+ import { TextDocumentFolderApi } from "./text_document_folder_api.js";
40
+ import { FileAppApi } from "./file_app_api.js";
41
+ import { McpKeyApi } from "./mcp_key_api.js";
42
+ import { EventApi } from "./event_api.js";
43
+ import { AutotestCaseApi } from "./autotest_case_api.js";
44
+ import { AutotestSuiteApi } from "./autotest_suite_api.js";
45
+ import { AutotestStepApi } from "./autotest_step_api.js";
46
+ import { AutotestRunApi } from "./autotest_run_api.js";
47
+ import { AutotestResultApi } from "./autotest_result_api.js";
48
+ import { ObjectRepositoryFolderApi } from "./object_repository_folder_api.js";
49
+ import { ObjectRepositoryPageApi } from "./object_repository_page_api.js";
50
+ import { ObjectRepositoryElementApi } from "./object_repository_element_api.js";
51
+ import { bootstrap_type_api } from "./typeApiBinding.js";
52
+
53
+ /**
54
+ * Обертка над axios
55
+ * @version v.0.3 (26/01/2025)
56
+ */
57
+ export class Api
58
+ {
59
+ /**
60
+ * Режим работы
61
+ *
62
+ * @type {string} development || production || tests
63
+ */
64
+ stage = 'development';
65
+ dev_stage_config = {
66
+ generate_error : false,
67
+ api_response_delay : 3500,
68
+ api_response_search_element_count: 8,
69
+ };
70
+
71
+ init_options;
72
+
73
+ test_plan;
74
+ /**
75
+ * {ProjectApi} project
76
+ */
77
+ project;
78
+ service;
79
+
80
+ /** @type {string|false} */
81
+ host_api = false;
82
+ /** @type {string|false} */
83
+ frontend_host = false;
84
+ /** @type {string|false} */
85
+ general_domain = false;
86
+ /** @type {string|false} */
87
+ site_section = false;
88
+
89
+ /** @type {EventApi} */
90
+ event;
91
+
92
+
93
+ /**
94
+ *
95
+ * @version v.0.3 (26/01/2025)
96
+ */
97
+ constructor(init_options)
98
+ {
99
+
100
+ if (this.constructor._instance)
101
+ {
102
+ return this.constructor._instance;
103
+ }
104
+
105
+
106
+ if (init_options.host_api)
107
+ {
108
+ // @todo validate
109
+ this.host_api = init_options.host_api;
110
+ }
111
+ else
112
+ {
113
+ // подумать
114
+ this.host_api = 'complexqa.localhost';
115
+ }
116
+
117
+ if (init_options.stage)
118
+ {
119
+ // @todo validate
120
+ this.stage = init_options.stage;
121
+ }
122
+
123
+ if (init_options.frontend_host)
124
+ {
125
+ this.frontend_host = init_options.frontend_host;
126
+ }
127
+
128
+ if (init_options.general_domain)
129
+ {
130
+ this.general_domain = init_options.general_domain;
131
+ }
132
+
133
+ if (init_options.dev_stage_config)
134
+ {
135
+ // @todo validate
136
+ this.dev_stage_config = init_options.dev_stage_config;
137
+ }
138
+
139
+
140
+ if (init_options.site_section)
141
+ {
142
+ this.site_section = init_options.site_section;
143
+ }
144
+
145
+ this.init_options = init_options;
146
+ this.constructor._instance = this;
147
+
148
+ bootstrap_type_api({ api_service: this });
149
+
150
+ this.#bootstrap();
151
+ return this.constructor._instance;
152
+ }
153
+
154
+
155
+ /**
156
+ *
157
+ * @param stage
158
+ */
159
+ set_stage(stage)
160
+ {
161
+ this.stage = stage;
162
+ }
163
+
164
+
165
+ /**
166
+ *
167
+ * @version v.1.2 (04/06/2026)
168
+ */
169
+ #bootstrap()
170
+ {
171
+ let payload = {
172
+ init_options : this.init_options,
173
+ stage : this.stage,
174
+ dev_stage_config: this.dev_stage_config,
175
+ host_api : this.host_api,
176
+ parent_app : this
177
+ };
178
+
179
+ //echo({payload});
180
+
181
+ this.team_management = new TeamManagementApi(payload);
182
+ this.team_member = new TeamMemberApi(payload);
183
+ this.test_plan = new TestPlanApi(payload);
184
+ this.project = new ProjectApi(payload);
185
+ this.service = new ServiceApi(payload);
186
+ this.test_case = new TestCaseApi(payload);
187
+ this.test_case_step = new TestCaseStepApi(payload);
188
+ this.test_suite = new TestSuiteApi(payload);
189
+ this.test_run = new TestRunApi(payload);
190
+ this.test_run_result = new TestRunResultApi(payload);
191
+ this.user_profile = new UserProfileApi(payload);
192
+ this.task = new TaskApi(payload);
193
+ this.test_account = new TestAccountApi(payload);
194
+ this.bug = new BugApi(payload);
195
+ this.bug_relation = new BugRelationApi(payload);
196
+ this.attachment = new AttachmentApi(payload);
197
+ this.tag = new TagApi(payload);
198
+ this.tag_relation = new TagRelationApi(payload);
199
+ this.custom_property = new CustomPropertyApi(payload);
200
+ this.custom_property_value = new CustomPropertyValueApi(payload);
201
+ this.custom_property_option = new CustomPropertyOptionApi(payload);
202
+ this.event = new EventApi(payload);
203
+ this.autotest_case = new AutotestCaseApi(payload);
204
+ this.autotest_suite = new AutotestSuiteApi(payload);
205
+ this.autotest_step = new AutotestStepApi(payload);
206
+ this.autotest_run = new AutotestRunApi(payload);
207
+ this.autotest_result = new AutotestResultApi(payload);
208
+ this.object_repository_folder = new ObjectRepositoryFolderApi(payload);
209
+ this.object_repository_page = new ObjectRepositoryPageApi(payload);
210
+ this.object_repository_element = new ObjectRepositoryElementApi(payload);
211
+ this.execution_context = new ExecutionContextApi(payload);
212
+ this.browser_tools_util_execution = new BrowserToolsUtilExecutionApi(payload);
213
+ this.browser_tools_screenshot_multi = new BrowserToolsScreenshotMultiApi(payload);
214
+ this.team_domain = new TeamDomainApi(payload);
215
+ this.url_inspect = new UrlInspectApi(payload);
216
+ this.file_app = new FileAppApi(payload);
217
+ this.mcp_key = new McpKeyApi(payload);
218
+ this.text_document = new TextDocumentApi(payload);
219
+ this.text_document_folder = new TextDocumentFolderApi(payload);
220
+ this.public_text_document = new PublicTextDocumentApi(payload);
221
+
222
+ this.reference = this.bootstrap_reference(payload)
223
+ }
224
+
225
+ /**
226
+ *
227
+ * @version v.0.1 (04/06/2026)
228
+ * @param payload
229
+ */
230
+ bootstrap_reference(payload)
231
+ {
232
+ let response = {};
233
+
234
+ response.context_browser = new ContextBrowserApi(payload);
235
+ response.context_deployment_target = new ContextDeploymentTargetApi(payload);
236
+ response.context_devices = new ContextDevicesApi(payload);
237
+ //response.execution_context = new ExecutionContextApi(payload);
238
+ response.context_locale = new ContextLocaleApi(payload);
239
+ response.context_os = new ContextOsApi(payload);
240
+ response.context_screen_resolution = new ContextScreenResolutionApi(payload);
241
+ response.context_user_agents = new ContextUserAgentsApi(payload);
242
+ response.tag_color = new TagColorApi(payload);
243
+ response.tag_template = new TagTemplateApi(payload);
244
+ response.custom_property_template = new CustomPropertyTemplateApi(payload);
245
+
246
+ return response;
247
+ }
246
248
  }
@@ -0,0 +1,100 @@
1
+ import { ApiAbstractClass } from "./api_abstract_class.js";
2
+
3
+
4
+ /**
5
+ * Main App bridge → CQA_MCP key HTTP.
6
+ *
7
+ * POST /web_api/mcp_key/create|search|revoke|catalog|list_projects
8
+ *
9
+ * @version v.1.0 (28/09/2026)
10
+ */
11
+ export class McpKeyApi extends ApiAbstractClass
12
+ {
13
+ module_prefix = 'mcp_key';
14
+ api_prefix = 'web_api';
15
+
16
+
17
+ /**
18
+ * POST /web_api/mcp_key/create
19
+ *
20
+ * @param {object} payload team_id, project_id, grants
21
+ *
22
+ * @returns {Promise<{payload: object, response: object}>}
23
+ */
24
+ async create(payload)
25
+ {
26
+ return this._post('create', payload);
27
+ }
28
+
29
+
30
+ /**
31
+ * POST /web_api/mcp_key/search
32
+ *
33
+ * @param {object} payload пусто — свои ключи; team_id — ключи команды
34
+ *
35
+ * @returns {Promise<{payload: object, response: object}>}
36
+ */
37
+ async search(payload)
38
+ {
39
+ return this._post('search', payload);
40
+ }
41
+
42
+
43
+ /**
44
+ * POST /web_api/mcp_key/revoke
45
+ *
46
+ * @param {object} payload mcp_key_id
47
+ *
48
+ * @returns {Promise<{payload: object, response: object}>}
49
+ */
50
+ async revoke(payload)
51
+ {
52
+ return this._post('revoke', payload);
53
+ }
54
+
55
+
56
+ /**
57
+ * POST /web_api/mcp_key/catalog
58
+ *
59
+ * @param {object} payload
60
+ *
61
+ * @returns {Promise<{payload: object, response: object}>}
62
+ */
63
+ async catalog(payload)
64
+ {
65
+ return this._post('catalog', payload);
66
+ }
67
+
68
+
69
+ /**
70
+ * POST /web_api/mcp_key/list_projects
71
+ *
72
+ * @param {object} payload team_id
73
+ *
74
+ * @returns {Promise<{payload: object, response: object}>}
75
+ */
76
+ async list_projects(payload)
77
+ {
78
+ return this._post('list_projects', payload);
79
+ }
80
+
81
+
82
+ /**
83
+ * @param {string} action
84
+ * @param {object} payload
85
+ *
86
+ * @returns {Promise<{payload: object, response: object}>}
87
+ */
88
+ async _post(action, payload)
89
+ {
90
+ const url = `/${ this.api_prefix }/${ this.module_prefix }/${ action }`;
91
+ payload = this.handle_request_payload(payload);
92
+ let response = this.api_request(url, payload);
93
+ response = await this.handle_response(response, false);
94
+
95
+ return {
96
+ response: response,
97
+ payload : payload,
98
+ };
99
+ }
100
+ }
@@ -56,4 +56,62 @@ export class TeamManagementApi extends ApiAbstractElementClass
56
56
  payload : payload
57
57
  };
58
58
  }
59
+
60
+
61
+ /**
62
+ * @version v.1.0 (29/09/2026)
63
+ * @returns {Promise<{payload: (*|{}), response: Promise<*>}>}
64
+ */
65
+ async get_current_team(payload = {})
66
+ {
67
+ let url = `/${ this.api_prefix }/${ this.module_prefix }/get_current_team`;
68
+
69
+ payload = this.handle_request_payload(payload);
70
+ let response = this.api_request(url, payload);
71
+ response = this.handle_response(response, false);
72
+
73
+ return {
74
+ response: response,
75
+ payload : payload
76
+ };
77
+ }
78
+
79
+
80
+ /**
81
+ * @version v.1.0 (29/09/2026)
82
+ * @param {{team_name: string}} payload
83
+ * @returns {Promise<{payload: (*|{}), response: Promise<*>}>}
84
+ */
85
+ async update_team_name(payload)
86
+ {
87
+ let url = `/${ this.api_prefix }/${ this.module_prefix }/update_team_name`;
88
+
89
+ payload = this.handle_request_payload(payload);
90
+ let response = this.api_request(url, payload);
91
+ response = this.handle_response(response, false);
92
+
93
+ return {
94
+ response: response,
95
+ payload : payload
96
+ };
97
+ }
98
+
99
+
100
+ /**
101
+ * @version v.1.0 (29/09/2026)
102
+ * @returns {Promise<{payload: (*|{}), response: Promise<*>}>}
103
+ */
104
+ async get_team_plan(payload = {})
105
+ {
106
+ let url = `/${ this.api_prefix }/${ this.module_prefix }/get_team_plan`;
107
+
108
+ payload = this.handle_request_payload(payload);
109
+ let response = this.api_request(url, payload);
110
+ response = this.handle_response(response, false);
111
+
112
+ return {
113
+ response: response,
114
+ payload : payload
115
+ };
116
+ }
59
117
  }