complexqa_frontend_core 2.2.3 → 2.4.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/package.json +1 -1
- package/src/api/api_abstract_class.js +339 -339
- package/src/api/checklist_api.js +16 -0
- package/src/api/checklist_folder_api.js +16 -0
- package/src/api/checklist_item_api.js +16 -0
- package/src/api/checklist_result_api.js +16 -0
- package/src/api/checklist_result_item_api.js +16 -0
- package/src/api/index.js +257 -247
- package/src/api/project_api.js +13 -0
- package/src/api/team_management_api.js +58 -0
- package/src/exceptions/ApiException.js +53 -53
- package/src/index.js +5 -0
- package/src/types/element_translate/typeBugRelation.i18n.js +11 -0
- package/src/types/element_translate/typeChecklist.i18n.js +175 -0
- package/src/types/element_translate/typeChecklistFolder.i18n.js +108 -0
- package/src/types/element_translate/typeChecklistItem.i18n.js +119 -0
- package/src/types/element_translate/typeChecklistResult.i18n.js +217 -0
- package/src/types/element_translate/typeChecklistResultItem.i18n.js +170 -0
- package/src/types/element_translate/typeCustomProperty.i18n.js +6 -0
- package/src/types/element_translate/typeEvent.i18n.js +55 -0
- package/src/types/element_translate/typeTagRelation.i18n.js +6 -0
- package/src/types/element_translate/typeTeamDomain.i18n.js +3 -3
- package/src/types/family_elements/checklist/typeChecklist.js +70 -0
- package/src/types/family_elements/checklist/typeChecklistBase.js +63 -0
- package/src/types/family_elements/checklist/typeChecklistFolder.js +97 -0
- package/src/types/family_elements/checklist/typeChecklistItem.js +47 -0
- package/src/types/family_elements/checklist/typeChecklistItemBase.js +58 -0
- package/src/types/family_elements/checklist/typeChecklistResult.js +80 -0
- package/src/types/family_elements/checklist/typeChecklistResultItem.js +69 -0
- package/src/types/family_elements/typeCustomProperty.js +3 -1
- package/src/types/family_elements/typeProject.js +11 -0
- package/src/types/family_elements/typeTeam.js +41 -1
- package/src/types/family_elements/typeTeamMember.js +10 -2
- package/src/types/family_events/familyEvent.js +5 -0
- package/src/types/family_relation/typeBugRelation.js +5 -0
- package/src/types/family_relation/typeTagRelation.js +10 -0
- package/types/api/project_api.d.ts +11 -0
- package/types/api/team_management_api.d.ts +27 -0
- package/types/types/family_elements/typeProject.d.ts +6 -0
- package/types/types/family_elements/typeTeam.d.ts +18 -0
- package/types/types/family_elements/typeTeamMember.d.ts +2 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ApiAbstractElementClass } from "./api_abstract_element_class.js";
|
|
2
|
+
import { typeChecklist } from "../types/family_elements/checklist/typeChecklist.js";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @version v.1.0 (01/10/2026)
|
|
6
|
+
*/
|
|
7
|
+
export class ChecklistApi extends ApiAbstractElementClass
|
|
8
|
+
{
|
|
9
|
+
module_prefix = 'checklist';
|
|
10
|
+
|
|
11
|
+
constructor(options)
|
|
12
|
+
{
|
|
13
|
+
super(options);
|
|
14
|
+
this.set_element_class_instance(typeChecklist);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ApiAbstractElementClass } from "./api_abstract_element_class.js";
|
|
2
|
+
import { typeChecklistFolder } from "../types/family_elements/checklist/typeChecklistFolder.js";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @version v.1.0 (01/10/2026)
|
|
6
|
+
*/
|
|
7
|
+
export class ChecklistFolderApi extends ApiAbstractElementClass
|
|
8
|
+
{
|
|
9
|
+
module_prefix = 'checklist_folder';
|
|
10
|
+
|
|
11
|
+
constructor(options)
|
|
12
|
+
{
|
|
13
|
+
super(options);
|
|
14
|
+
this.set_element_class_instance(typeChecklistFolder);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ApiAbstractElementClass } from "./api_abstract_element_class.js";
|
|
2
|
+
import { typeChecklistItem } from "../types/family_elements/checklist/typeChecklistItem.js";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @version v.1.0 (01/10/2026)
|
|
6
|
+
*/
|
|
7
|
+
export class ChecklistItemApi extends ApiAbstractElementClass
|
|
8
|
+
{
|
|
9
|
+
module_prefix = 'checklist_item';
|
|
10
|
+
|
|
11
|
+
constructor(options)
|
|
12
|
+
{
|
|
13
|
+
super(options);
|
|
14
|
+
this.set_element_class_instance(typeChecklistItem);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ApiAbstractElementClass } from "./api_abstract_element_class.js";
|
|
2
|
+
import { typeChecklistResult } from "../types/family_elements/checklist/typeChecklistResult.js";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @version v.1.0 (01/10/2026)
|
|
6
|
+
*/
|
|
7
|
+
export class ChecklistResultApi extends ApiAbstractElementClass
|
|
8
|
+
{
|
|
9
|
+
module_prefix = 'checklist_result';
|
|
10
|
+
|
|
11
|
+
constructor(options)
|
|
12
|
+
{
|
|
13
|
+
super(options);
|
|
14
|
+
this.set_element_class_instance(typeChecklistResult);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ApiAbstractElementClass } from "./api_abstract_element_class.js";
|
|
2
|
+
import { typeChecklistResultItem } from "../types/family_elements/checklist/typeChecklistResultItem.js";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @version v.1.0 (01/10/2026)
|
|
6
|
+
*/
|
|
7
|
+
export class ChecklistResultItemApi extends ApiAbstractElementClass
|
|
8
|
+
{
|
|
9
|
+
module_prefix = 'checklist_result_item';
|
|
10
|
+
|
|
11
|
+
constructor(options)
|
|
12
|
+
{
|
|
13
|
+
super(options);
|
|
14
|
+
this.set_element_class_instance(typeChecklistResultItem);
|
|
15
|
+
}
|
|
16
|
+
}
|
package/src/api/index.js
CHANGED
|
@@ -1,248 +1,258 @@
|
|
|
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 {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
/** @type {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
{
|
|
113
|
-
//
|
|
114
|
-
this.host_api =
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
this.
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
if (init_options.
|
|
129
|
-
{
|
|
130
|
-
this.
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
if (init_options.
|
|
134
|
-
{
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
this
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
this.
|
|
187
|
-
this.
|
|
188
|
-
this.
|
|
189
|
-
this.
|
|
190
|
-
this.
|
|
191
|
-
this.
|
|
192
|
-
this.
|
|
193
|
-
this.
|
|
194
|
-
this.
|
|
195
|
-
this.
|
|
196
|
-
this.
|
|
197
|
-
this.
|
|
198
|
-
this.
|
|
199
|
-
this.
|
|
200
|
-
this.
|
|
201
|
-
this.
|
|
202
|
-
this.
|
|
203
|
-
this.
|
|
204
|
-
this.
|
|
205
|
-
this.
|
|
206
|
-
this.
|
|
207
|
-
this.
|
|
208
|
-
this.
|
|
209
|
-
this.
|
|
210
|
-
this.
|
|
211
|
-
this.
|
|
212
|
-
this.
|
|
213
|
-
this.
|
|
214
|
-
this.
|
|
215
|
-
this.
|
|
216
|
-
this.
|
|
217
|
-
this.
|
|
218
|
-
this.
|
|
219
|
-
this.
|
|
220
|
-
this.
|
|
221
|
-
|
|
222
|
-
this.
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
response
|
|
243
|
-
|
|
244
|
-
response.
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
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 { ChecklistFolderApi } from "./checklist_folder_api.js";
|
|
52
|
+
import { ChecklistApi } from "./checklist_api.js";
|
|
53
|
+
import { ChecklistItemApi } from "./checklist_item_api.js";
|
|
54
|
+
import { ChecklistResultApi } from "./checklist_result_api.js";
|
|
55
|
+
import { ChecklistResultItemApi } from "./checklist_result_item_api.js";
|
|
56
|
+
import { bootstrap_type_api } from "./typeApiBinding.js";
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Обертка над axios
|
|
60
|
+
* @version v.0.3 (26/01/2025)
|
|
61
|
+
*/
|
|
62
|
+
export class Api
|
|
63
|
+
{
|
|
64
|
+
/**
|
|
65
|
+
* Режим работы
|
|
66
|
+
*
|
|
67
|
+
* @type {string} development || production || tests
|
|
68
|
+
*/
|
|
69
|
+
stage = 'development';
|
|
70
|
+
dev_stage_config = {
|
|
71
|
+
generate_error : false,
|
|
72
|
+
api_response_delay : 3500,
|
|
73
|
+
api_response_search_element_count: 8,
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
init_options;
|
|
77
|
+
|
|
78
|
+
test_plan;
|
|
79
|
+
/**
|
|
80
|
+
* {ProjectApi} project
|
|
81
|
+
*/
|
|
82
|
+
project;
|
|
83
|
+
service;
|
|
84
|
+
|
|
85
|
+
/** @type {string|false} */
|
|
86
|
+
host_api = false;
|
|
87
|
+
/** @type {string|false} */
|
|
88
|
+
frontend_host = false;
|
|
89
|
+
/** @type {string|false} */
|
|
90
|
+
general_domain = false;
|
|
91
|
+
/** @type {string|false} */
|
|
92
|
+
site_section = false;
|
|
93
|
+
|
|
94
|
+
/** @type {EventApi} */
|
|
95
|
+
event;
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @version v.0.3 (26/01/2025)
|
|
101
|
+
*/
|
|
102
|
+
constructor(init_options)
|
|
103
|
+
{
|
|
104
|
+
|
|
105
|
+
if (this.constructor._instance)
|
|
106
|
+
{
|
|
107
|
+
return this.constructor._instance;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
if (init_options.host_api)
|
|
112
|
+
{
|
|
113
|
+
// @todo validate
|
|
114
|
+
this.host_api = init_options.host_api;
|
|
115
|
+
}
|
|
116
|
+
else
|
|
117
|
+
{
|
|
118
|
+
// подумать
|
|
119
|
+
this.host_api = 'complexqa.localhost';
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
if (init_options.stage)
|
|
123
|
+
{
|
|
124
|
+
// @todo validate
|
|
125
|
+
this.stage = init_options.stage;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
if (init_options.frontend_host)
|
|
129
|
+
{
|
|
130
|
+
this.frontend_host = init_options.frontend_host;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
if (init_options.general_domain)
|
|
134
|
+
{
|
|
135
|
+
this.general_domain = init_options.general_domain;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
if (init_options.dev_stage_config)
|
|
139
|
+
{
|
|
140
|
+
// @todo validate
|
|
141
|
+
this.dev_stage_config = init_options.dev_stage_config;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
if (init_options.site_section)
|
|
146
|
+
{
|
|
147
|
+
this.site_section = init_options.site_section;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
this.init_options = init_options;
|
|
151
|
+
this.constructor._instance = this;
|
|
152
|
+
|
|
153
|
+
bootstrap_type_api({ api_service: this });
|
|
154
|
+
|
|
155
|
+
this.#bootstrap();
|
|
156
|
+
return this.constructor._instance;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
*
|
|
162
|
+
* @param stage
|
|
163
|
+
*/
|
|
164
|
+
set_stage(stage)
|
|
165
|
+
{
|
|
166
|
+
this.stage = stage;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
*
|
|
172
|
+
* @version v.1.2 (04/06/2026)
|
|
173
|
+
*/
|
|
174
|
+
#bootstrap()
|
|
175
|
+
{
|
|
176
|
+
let payload = {
|
|
177
|
+
init_options : this.init_options,
|
|
178
|
+
stage : this.stage,
|
|
179
|
+
dev_stage_config: this.dev_stage_config,
|
|
180
|
+
host_api : this.host_api,
|
|
181
|
+
parent_app : this
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
//echo({payload});
|
|
185
|
+
|
|
186
|
+
this.team_management = new TeamManagementApi(payload);
|
|
187
|
+
this.team_member = new TeamMemberApi(payload);
|
|
188
|
+
this.test_plan = new TestPlanApi(payload);
|
|
189
|
+
this.project = new ProjectApi(payload);
|
|
190
|
+
this.service = new ServiceApi(payload);
|
|
191
|
+
this.test_case = new TestCaseApi(payload);
|
|
192
|
+
this.test_case_step = new TestCaseStepApi(payload);
|
|
193
|
+
this.test_suite = new TestSuiteApi(payload);
|
|
194
|
+
this.test_run = new TestRunApi(payload);
|
|
195
|
+
this.test_run_result = new TestRunResultApi(payload);
|
|
196
|
+
this.user_profile = new UserProfileApi(payload);
|
|
197
|
+
this.task = new TaskApi(payload);
|
|
198
|
+
this.test_account = new TestAccountApi(payload);
|
|
199
|
+
this.bug = new BugApi(payload);
|
|
200
|
+
this.bug_relation = new BugRelationApi(payload);
|
|
201
|
+
this.attachment = new AttachmentApi(payload);
|
|
202
|
+
this.tag = new TagApi(payload);
|
|
203
|
+
this.tag_relation = new TagRelationApi(payload);
|
|
204
|
+
this.custom_property = new CustomPropertyApi(payload);
|
|
205
|
+
this.custom_property_value = new CustomPropertyValueApi(payload);
|
|
206
|
+
this.custom_property_option = new CustomPropertyOptionApi(payload);
|
|
207
|
+
this.event = new EventApi(payload);
|
|
208
|
+
this.autotest_case = new AutotestCaseApi(payload);
|
|
209
|
+
this.autotest_suite = new AutotestSuiteApi(payload);
|
|
210
|
+
this.autotest_step = new AutotestStepApi(payload);
|
|
211
|
+
this.autotest_run = new AutotestRunApi(payload);
|
|
212
|
+
this.autotest_result = new AutotestResultApi(payload);
|
|
213
|
+
this.object_repository_folder = new ObjectRepositoryFolderApi(payload);
|
|
214
|
+
this.object_repository_page = new ObjectRepositoryPageApi(payload);
|
|
215
|
+
this.object_repository_element = new ObjectRepositoryElementApi(payload);
|
|
216
|
+
this.checklist_folder = new ChecklistFolderApi(payload);
|
|
217
|
+
this.checklist = new ChecklistApi(payload);
|
|
218
|
+
this.checklist_item = new ChecklistItemApi(payload);
|
|
219
|
+
this.checklist_result = new ChecklistResultApi(payload);
|
|
220
|
+
this.checklist_result_item = new ChecklistResultItemApi(payload);
|
|
221
|
+
this.execution_context = new ExecutionContextApi(payload);
|
|
222
|
+
this.browser_tools_util_execution = new BrowserToolsUtilExecutionApi(payload);
|
|
223
|
+
this.browser_tools_screenshot_multi = new BrowserToolsScreenshotMultiApi(payload);
|
|
224
|
+
this.team_domain = new TeamDomainApi(payload);
|
|
225
|
+
this.url_inspect = new UrlInspectApi(payload);
|
|
226
|
+
this.file_app = new FileAppApi(payload);
|
|
227
|
+
this.mcp_key = new McpKeyApi(payload);
|
|
228
|
+
this.text_document = new TextDocumentApi(payload);
|
|
229
|
+
this.text_document_folder = new TextDocumentFolderApi(payload);
|
|
230
|
+
this.public_text_document = new PublicTextDocumentApi(payload);
|
|
231
|
+
|
|
232
|
+
this.reference = this.bootstrap_reference(payload)
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
*
|
|
237
|
+
* @version v.0.1 (04/06/2026)
|
|
238
|
+
* @param payload
|
|
239
|
+
*/
|
|
240
|
+
bootstrap_reference(payload)
|
|
241
|
+
{
|
|
242
|
+
let response = {};
|
|
243
|
+
|
|
244
|
+
response.context_browser = new ContextBrowserApi(payload);
|
|
245
|
+
response.context_deployment_target = new ContextDeploymentTargetApi(payload);
|
|
246
|
+
response.context_devices = new ContextDevicesApi(payload);
|
|
247
|
+
//response.execution_context = new ExecutionContextApi(payload);
|
|
248
|
+
response.context_locale = new ContextLocaleApi(payload);
|
|
249
|
+
response.context_os = new ContextOsApi(payload);
|
|
250
|
+
response.context_screen_resolution = new ContextScreenResolutionApi(payload);
|
|
251
|
+
response.context_user_agents = new ContextUserAgentsApi(payload);
|
|
252
|
+
response.tag_color = new TagColorApi(payload);
|
|
253
|
+
response.tag_template = new TagTemplateApi(payload);
|
|
254
|
+
response.custom_property_template = new CustomPropertyTemplateApi(payload);
|
|
255
|
+
|
|
256
|
+
return response;
|
|
257
|
+
}
|
|
248
258
|
}
|
package/src/api/project_api.js
CHANGED
|
@@ -75,4 +75,17 @@ export class ProjectApi extends ApiAbstractElementClass
|
|
|
75
75
|
{
|
|
76
76
|
return this._get_project_structure('/web_api/project/get/text_document_structure', payload);
|
|
77
77
|
}
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* All checklists + folders
|
|
83
|
+
*
|
|
84
|
+
* @version v.1.0 (01/10/2026)
|
|
85
|
+
* @param payload
|
|
86
|
+
*/
|
|
87
|
+
async get_checklist_structure(payload)
|
|
88
|
+
{
|
|
89
|
+
return this._get_project_structure('/web_api/project/get/checklist_structure', payload);
|
|
90
|
+
}
|
|
78
91
|
}
|