complexqa_frontend_core 1.31.5 → 2.0.0

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.
Files changed (479) hide show
  1. package/README.md +83 -0
  2. package/package.json +30 -26
  3. package/{publish → src}/api/api_abstract_class.js +22 -10
  4. package/{publish → src}/api/api_abstract_element_class.js +19 -1
  5. package/{publish → src}/api/autotest_case_api.js +2 -2
  6. package/{publish → src}/api/autotest_result_api.js +2 -2
  7. package/{publish → src}/api/autotest_run_api.js +2 -2
  8. package/{publish → src}/api/autotest_step_api.js +2 -2
  9. package/{publish → src}/api/autotest_suite_api.js +2 -2
  10. package/{publish → src}/api/bug_api.js +1 -1
  11. package/{publish → src}/api/functional_api.js +2 -2
  12. package/{publish → src}/api/index.js +11 -5
  13. package/{publish → src}/api/object_repository_element_api.js +2 -2
  14. package/{publish → src}/api/object_repository_folder_api.js +2 -2
  15. package/{publish → src}/api/object_repository_page_api.js +2 -2
  16. package/{publish → src}/api/project_api.js +2 -2
  17. package/{publish → src}/api/public_text_document_api.js +2 -2
  18. package/{publish → src}/api/team_management_api.js +1 -1
  19. package/{publish → src}/api/team_member_api.js +2 -2
  20. package/{publish → src}/api/test_case_api.js +2 -2
  21. package/{publish → src}/api/test_case_step_api.js +2 -2
  22. package/{publish → src}/api/test_plan_api.js +2 -2
  23. package/{publish → src}/api/test_run_api.js +2 -2
  24. package/{publish → src}/api/test_run_result_api.js +2 -2
  25. package/{publish → src}/api/test_suite_api.js +2 -2
  26. package/{publish → src}/api/text_document_api.js +9 -9
  27. package/src/api/typeApiBinding.js +41 -0
  28. package/{publish → src}/exceptions/0_BaseException.js +26 -17
  29. package/{publish → src}/index.js +2 -46
  30. package/{publish → src}/services/FileAppService.js +8 -5
  31. package/{publish → src}/services/UserService.js +9 -2
  32. package/{publish → src}/types/core/0_familyGeneralElement.js +56 -22
  33. package/{publish → src}/types/core/1_familyRelation.js +3 -0
  34. package/{publish → src}/types/element_translate/typeCustomProperty.i18n.js +15 -0
  35. package/{publish → src}/types/element_translate/typeCustomPropertyValue.i18n.js +15 -0
  36. package/{publish → src}/types/family_context/typeBrowserContext.js +1 -0
  37. package/{publish → src}/types/family_context/typeDeploymentTargetContext.js +2 -0
  38. package/{publish → src}/types/family_context/typeDeviceContext.js +2 -0
  39. package/{publish → src}/types/family_context/typeExecutionContext.js +2 -0
  40. package/{publish → src}/types/family_context/typeLocaleContext.js +1 -0
  41. package/{publish → src}/types/family_context/typeOsContext.js +2 -0
  42. package/{publish → src}/types/family_context/typeScreenResolutionContext.js +2 -0
  43. package/{publish → src}/types/family_context/typeUserAgentContext.js +2 -0
  44. package/{publish → src}/types/family_elements/autotest_step_actions/autotestStepActionCatalog.js +30 -3
  45. package/{publish → src}/types/family_elements/autotest_step_actions/typeAutotestStepAction.js +10 -1
  46. package/{publish → src}/types/family_elements/mock_data/mock_data_typeProject.js +2 -2
  47. package/{publish → src}/types/family_elements/typeAttachment.js +1 -0
  48. package/{publish → src}/types/family_elements/typeAutomationTestEnvironment.js +2 -0
  49. package/{publish → src}/types/family_elements/typeAutomationTestPlan.js +1 -0
  50. package/{publish → src}/types/family_elements/typeAutomationTestStep.js +2 -0
  51. package/{publish → src}/types/family_elements/typeAutomationTestStepTarget.js +1 -0
  52. package/{publish → src}/types/family_elements/typeAutotestCase.js +5 -3
  53. package/{publish → src}/types/family_elements/typeAutotestResult.js +2 -0
  54. package/{publish → src}/types/family_elements/typeAutotestRun.js +3 -1
  55. package/{publish → src}/types/family_elements/typeAutotestStep.js +6 -5
  56. package/{publish → src}/types/family_elements/typeAutotestStepTarget.js +1 -0
  57. package/{publish → src}/types/family_elements/typeBug.js +4 -1
  58. package/{publish → src}/types/family_elements/typeCustomProperty.js +14 -1
  59. package/{publish → src}/types/family_elements/typeFunctional.js +3 -1
  60. package/{publish → src}/types/family_elements/typeFunctionalGroup.js +3 -1
  61. package/{publish → src}/types/family_elements/typeMilestone.js +3 -1
  62. package/{publish → src}/types/family_elements/typeObjectRepositoryElement.js +1 -0
  63. package/{publish → src}/types/family_elements/typeObjectRepositoryFolder.js +1 -0
  64. package/{publish → src}/types/family_elements/typePrice.js +1 -0
  65. package/{publish → src}/types/family_elements/typeProject.js +10 -13
  66. package/{publish → src}/types/family_elements/typeProjectDocument.js +3 -1
  67. package/{publish → src}/types/family_elements/typeProjectTestData.js +2 -1
  68. package/{publish → src}/types/family_elements/typeProjectUserRole.js +3 -1
  69. package/{publish → src}/types/family_elements/typeTask.js +3 -2
  70. package/{publish → src}/types/family_elements/typeTeam.js +6 -4
  71. package/src/types/family_elements/typeTeamDomain.js +175 -0
  72. package/{publish → src}/types/family_elements/typeTeamMember.js +4 -2
  73. package/{publish → src}/types/family_elements/typeTeamUserRole.js +2 -1
  74. package/{publish → src}/types/family_elements/typeTestAccount.js +2 -1
  75. package/{publish → src}/types/family_elements/typeTestCase.js +4 -1
  76. package/{publish → src}/types/family_elements/typeTestCaseStep.js +5 -3
  77. package/{publish → src}/types/family_elements/typeTestPlan.js +2 -1
  78. package/{publish → src}/types/family_elements/typeTestRun.js +5 -2
  79. package/{publish → src}/types/family_elements/typeTestRunResult.js +4 -1
  80. package/{publish → src}/types/family_elements/typeTestSuite.js +2 -1
  81. package/{publish → src}/types/family_elements/typeUser.js +3 -1
  82. package/{publish → src}/types/family_events/typeEvent.js +2 -0
  83. package/{publish → src}/types/family_files/typeFile.js +2 -0
  84. package/{publish → src}/types/family_files/typeTextDocument.js +3 -0
  85. package/{publish → src}/types/family_files/typeTextDocumentFolder.js +1 -0
  86. package/{publish → src}/types/family_relation/typeBugRelation.js +1 -0
  87. package/{publish → src}/types/family_relation/typeCustomPropertyValue.js +6 -1
  88. package/{publish → src}/types/family_relation/typeTagRelation.js +1 -0
  89. package/{publish → src}/types/family_service/typeFOR.js +3 -2
  90. package/{publish → src}/types/family_service/typeFilter.js +2 -1
  91. package/{publish → src}/types/family_service/typeFunctionCallback.js +2 -1
  92. package/{publish → src}/types/family_utils/typeUtilExecution.js +3 -0
  93. package/{publish → src}/types/family_utils/typeUtilExecutionEvent.js +2 -0
  94. package/{publish → src}/types/family_utils/typeUtilExecutionScreenshotMulti.js +4 -2
  95. package/{publish → src}/types/family_utils/typeUtilExecutionScreenshotMultiCapture.js +1 -0
  96. package/{publish → src}/types/family_utils/typeUtilExecutionScreenshotMultiCaptureError.js +1 -0
  97. package/{publish → src}/types/family_utils/typeUtilExecutionScreenshotMultiScreenshot.js +1 -0
  98. package/src/types/family_utils/typeUtilExecutionUrlInspect.js +202 -0
  99. package/src/types/family_utils/typeUtilExecutionUrlInspectCheck.js +103 -0
  100. package/{publish → src}/utils/utils.js +1 -0
  101. package/types/api/api_abstract_class.d.ts +85 -0
  102. package/types/api/api_abstract_element_class.d.ts +79 -0
  103. package/types/api/api_abstract_reference_class.d.ts +26 -0
  104. package/types/api/attachment_api.d.ts +25 -0
  105. package/types/api/autotest_case_api.d.ts +36 -0
  106. package/types/api/autotest_result_api.d.ts +8 -0
  107. package/types/api/autotest_run_api.d.ts +16 -0
  108. package/types/api/autotest_step_api.d.ts +45 -0
  109. package/types/api/autotest_suite_api.d.ts +8 -0
  110. package/types/api/bug_api.d.ts +9 -0
  111. package/types/api/bug_relation_api.d.ts +10 -0
  112. package/types/api/cache/api_search_cache.d.ts +39 -0
  113. package/types/api/cache/index.d.ts +2 -0
  114. package/types/api/cache/memory_cache_store.d.ts +24 -0
  115. package/types/api/context/context_browser_api.d.ts +9 -0
  116. package/types/api/context/context_deployment_target_api.d.ts +9 -0
  117. package/types/api/context/context_devices_api.d.ts +9 -0
  118. package/types/api/context/context_execution_general_api.d.ts +9 -0
  119. package/types/api/context/context_locale_api.d.ts +9 -0
  120. package/types/api/context/context_os_api.d.ts +9 -0
  121. package/types/api/context/context_screen_resolution_api.d.ts +9 -0
  122. package/types/api/context/context_user_agents_api.d.ts +9 -0
  123. package/types/api/custom_property/custom_property_template_api.d.ts +10 -0
  124. package/types/api/custom_property_api.d.ts +25 -0
  125. package/types/api/custom_property_option_api.d.ts +11 -0
  126. package/types/api/custom_property_value_api.d.ts +28 -0
  127. package/types/api/event_api.d.ts +12 -0
  128. package/types/api/file_app_api.d.ts +105 -0
  129. package/types/api/functional_api.d.ts +9 -0
  130. package/types/api/index.d.ts +155 -0
  131. package/types/api/object_repository_element_api.d.ts +8 -0
  132. package/types/api/object_repository_folder_api.d.ts +8 -0
  133. package/types/api/object_repository_page_api.d.ts +8 -0
  134. package/types/api/project_api.d.ts +53 -0
  135. package/types/api/public_text_document_api.d.ts +29 -0
  136. package/types/api/service_api.d.ts +9 -0
  137. package/types/api/tag/tag_color_api.d.ts +10 -0
  138. package/types/api/tag/tag_template_api.d.ts +10 -0
  139. package/types/api/tag_api.d.ts +23 -0
  140. package/types/api/tag_relation_api.d.ts +30 -0
  141. package/types/api/task_api.d.ts +19 -0
  142. package/types/api/team_domain_api.d.ts +30 -0
  143. package/types/api/team_management_api.d.ts +27 -0
  144. package/types/api/team_member_api.d.ts +19 -0
  145. package/types/api/test_account_api.d.ts +9 -0
  146. package/types/api/test_case_api.d.ts +9 -0
  147. package/types/api/test_case_step_api.d.ts +28 -0
  148. package/types/api/test_plan_api.d.ts +9 -0
  149. package/types/api/test_run_api.d.ts +16 -0
  150. package/types/api/test_run_result_api.d.ts +9 -0
  151. package/types/api/test_suite_api.d.ts +9 -0
  152. package/types/api/text_document_api.d.ts +98 -0
  153. package/types/api/text_document_folder_api.d.ts +8 -0
  154. package/types/api/typeApiBinding.d.ts +12 -0
  155. package/types/api/user_profile_api.d.ts +18 -0
  156. package/types/api/util/browser_tools_screenshot_multi_api.d.ts +24 -0
  157. package/types/api/util/browser_tools_util_execution_api.d.ts +26 -0
  158. package/types/api/util/url_inspect_api.d.ts +24 -0
  159. package/types/constants/text_document_limits.d.ts +14 -0
  160. package/types/element_translate/typeTeamDomain.i18n.js +71 -0
  161. package/types/element_translate/typeUtilExecutionUrlInspect.i18n.js +55 -0
  162. package/types/element_translate/typeUtilExecutionUrlInspectCheck.i18n.js +111 -0
  163. package/types/exceptions/0_BaseException.d.ts +25 -0
  164. package/types/exceptions/ApiException.d.ts +16 -0
  165. package/types/exceptions/GeneralException.d.ts +13 -0
  166. package/types/index.d.ts +79 -0
  167. package/types/services/DeveloperService.d.ts +43 -0
  168. package/types/services/FileAppService.d.ts +131 -0
  169. package/types/services/TeamService.d.ts +21 -0
  170. package/types/services/UserService.d.ts +233 -0
  171. package/types/services/abstractService.d.ts +13 -0
  172. package/types/services/mock_data/MockUserService.d.ts +12 -0
  173. package/types/types/core/0_familyGeneralElement.d.ts +228 -0
  174. package/types/types/core/1_familyContext.d.ts +87 -0
  175. package/types/types/core/1_familyRelation.d.ts +53 -0
  176. package/types/types/core/1_familyTestAutomation.d.ts +25 -0
  177. package/types/types/core/1_familyTestDocumentation.d.ts +27 -0
  178. package/types/types/core/type_class_resolver.d.ts +25 -0
  179. package/types/types/element_translate/_familyContext.i18n.d.ts +316 -0
  180. package/types/types/element_translate/_familyUtil.i18n.d.ts +515 -0
  181. package/types/types/element_translate/typeAttachment.i18n.d.ts +358 -0
  182. package/types/types/element_translate/typeAutotestCase.i18n.d.ts +139 -0
  183. package/types/types/element_translate/typeAutotestResult.i18n.d.ts +110 -0
  184. package/types/types/element_translate/typeAutotestRun.i18n.d.ts +170 -0
  185. package/types/types/element_translate/typeAutotestStep.i18n.d.ts +115 -0
  186. package/types/types/element_translate/typeAutotestSuite.i18n.d.ts +51 -0
  187. package/types/types/element_translate/typeBrowserContext.i18n.d.ts +158 -0
  188. package/types/types/element_translate/typeBug.i18n.d.ts +1863 -0
  189. package/types/types/element_translate/typeBugRelation.i18n.d.ts +232 -0
  190. package/types/types/element_translate/typeCustomProperty.i18n.d.ts +233 -0
  191. package/types/types/element_translate/typeCustomPropertyValue.i18n.d.ts +185 -0
  192. package/types/types/element_translate/typeDeploymentTargetContext.i18n.d.ts +318 -0
  193. package/types/types/element_translate/typeDeviceContext.i18n.d.ts +296 -0
  194. package/types/types/element_translate/typeEvent.i18n.d.ts +1096 -0
  195. package/types/types/element_translate/typeExecutionContext.i18n.d.ts +484 -0
  196. package/types/types/element_translate/typeFile.i18n.d.ts +119 -0
  197. package/types/types/element_translate/typeFileScreenshot.i18n.d.ts +7 -0
  198. package/types/types/element_translate/typeLocaleContext.i18n.d.ts +180 -0
  199. package/types/types/element_translate/typeObjectRepositoryElement.i18n.d.ts +135 -0
  200. package/types/types/element_translate/typeObjectRepositoryFolder.i18n.d.ts +85 -0
  201. package/types/types/element_translate/typeObjectRepositoryPage.i18n.d.ts +56 -0
  202. package/types/types/element_translate/typeOsContext.i18n.d.ts +296 -0
  203. package/types/types/element_translate/typeProject.i18n.d.ts +211 -0
  204. package/types/types/element_translate/typeScreenResolutionContext.i18n.d.ts +285 -0
  205. package/types/types/element_translate/typeTag.i18n.d.ts +122 -0
  206. package/types/types/element_translate/typeTagRelation.i18n.d.ts +165 -0
  207. package/types/types/element_translate/typeTeamDomain.i18n.d.ts +146 -0
  208. package/types/types/element_translate/typeTeamMember.i18n.d.ts +194 -0
  209. package/types/types/element_translate/typeTeamTotalStatistic.i18n.d.ts +246 -0
  210. package/types/types/element_translate/typeTestAccount.i18n.d.ts +194 -0
  211. package/types/types/element_translate/typeTestCase.i18n.d.ts +727 -0
  212. package/types/types/element_translate/typeTestCaseStep.i18n.d.ts +295 -0
  213. package/types/types/element_translate/typeTestRun.i18n.d.ts +400 -0
  214. package/types/types/element_translate/typeTestRunResult.i18n.d.ts +257 -0
  215. package/types/types/element_translate/typeTextDocument.i18n.d.ts +358 -0
  216. package/types/types/element_translate/typeTextDocumentFolder.i18n.d.ts +173 -0
  217. package/types/types/element_translate/typeUserAgentContext.i18n.d.ts +384 -0
  218. package/types/types/element_translate/typeUtilExecution.i18n.d.ts +465 -0
  219. package/types/types/element_translate/typeUtilExecutionScreenshotMulti.i18n.d.ts +686 -0
  220. package/types/types/element_translate/typeUtilExecutionUrlInspect.i18n.d.ts +109 -0
  221. package/types/types/element_translate/typeUtilExecutionUrlInspectCheck.i18n.d.ts +243 -0
  222. package/types/types/family_context/typeBrowserContext.d.ts +173 -0
  223. package/types/types/family_context/typeDeploymentTargetContext.d.ts +335 -0
  224. package/types/types/family_context/typeDeviceContext.d.ts +313 -0
  225. package/types/types/family_context/typeExecutionContext.d.ts +331 -0
  226. package/types/types/family_context/typeLocaleContext.d.ts +197 -0
  227. package/types/types/family_context/typeOsContext.d.ts +313 -0
  228. package/types/types/family_context/typeScreenResolutionContext.d.ts +306 -0
  229. package/types/types/family_context/typeUserAgentContext.d.ts +409 -0
  230. package/types/types/family_contracts/familyContracts.d.ts +30 -0
  231. package/types/types/family_contracts/typeTeamTotalStatistic.d.ts +255 -0
  232. package/types/types/family_elements/autotest_step_actions/autotestStepActionCatalog.d.ts +85 -0
  233. package/types/types/family_elements/autotest_step_actions/autotestStepActionCategory.d.ts +12 -0
  234. package/types/types/family_elements/autotest_step_actions/autotestStepLocatorKind.d.ts +17 -0
  235. package/types/types/family_elements/autotest_step_actions/autotestStepTargetNormalizer.d.ts +17 -0
  236. package/types/types/family_elements/autotest_step_actions/typeAutotestStepAction.d.ts +38 -0
  237. package/types/types/family_elements/autotest_step_actions/typeAutotestStepActionVariants.d.ts +46 -0
  238. package/types/types/family_elements/autotest_step_actions/typeAutotestStepLocatorAction.d.ts +8 -0
  239. package/types/types/family_elements/autotest_step_actions/typeAutotestStepLocatorValueAction.d.ts +8 -0
  240. package/types/types/family_elements/mock_data/abstract_mock_data.d.ts +8 -0
  241. package/types/types/family_elements/mock_data/mock_data_typeProject.d.ts +16 -0
  242. package/types/types/family_elements/typeActionLog.d.ts +7 -0
  243. package/types/types/family_elements/typeAttachment.d.ts +263 -0
  244. package/types/types/family_elements/typeAutomationTestEnvironment.d.ts +28 -0
  245. package/types/types/family_elements/typeAutomationTestPlan.d.ts +13 -0
  246. package/types/types/family_elements/typeAutomationTestStep.d.ts +24 -0
  247. package/types/types/family_elements/typeAutomationTestStepTarget.d.ts +19 -0
  248. package/types/types/family_elements/typeAutotestCase.d.ts +178 -0
  249. package/types/types/family_elements/typeAutotestResult.d.ts +109 -0
  250. package/types/types/family_elements/typeAutotestRun.d.ts +176 -0
  251. package/types/types/family_elements/typeAutotestStep.d.ts +155 -0
  252. package/types/types/family_elements/typeAutotestStepTarget.d.ts +19 -0
  253. package/types/types/family_elements/typeAutotestSuite.d.ts +64 -0
  254. package/types/types/family_elements/typeBug.d.ts +1097 -0
  255. package/types/types/family_elements/typeCustomProperty.d.ts +197 -0
  256. package/types/types/family_elements/typeFunctional.d.ts +48 -0
  257. package/types/types/family_elements/typeFunctionalGroup.d.ts +46 -0
  258. package/types/types/family_elements/typeMilestone.d.ts +51 -0
  259. package/types/types/family_elements/typeObjectRepositoryElement.d.ts +124 -0
  260. package/types/types/family_elements/typeObjectRepositoryFolder.d.ts +90 -0
  261. package/types/types/family_elements/typeObjectRepositoryPage.d.ts +69 -0
  262. package/types/types/family_elements/typePrice.d.ts +18 -0
  263. package/types/types/family_elements/typeProject.d.ts +205 -0
  264. package/types/types/family_elements/typeProjectDocument.d.ts +38 -0
  265. package/types/types/family_elements/typeProjectTestData.d.ts +20 -0
  266. package/types/types/family_elements/typeProjectUserRole.d.ts +25 -0
  267. package/types/types/family_elements/typeTag.d.ts +109 -0
  268. package/types/types/family_elements/typeTask.d.ts +41 -0
  269. package/types/types/family_elements/typeTeam.d.ts +54 -0
  270. package/types/types/family_elements/typeTeamDomain.d.ts +164 -0
  271. package/types/types/family_elements/typeTeamMember.d.ts +169 -0
  272. package/types/types/family_elements/typeTeamUserRole.d.ts +27 -0
  273. package/types/types/family_elements/typeTestAccount.d.ts +150 -0
  274. package/types/types/family_elements/typeTestCase.d.ts +467 -0
  275. package/types/types/family_elements/typeTestCaseStep.d.ts +230 -0
  276. package/types/types/family_elements/typeTestPlan.d.ts +8 -0
  277. package/types/types/family_elements/typeTestRun.d.ts +285 -0
  278. package/types/types/family_elements/typeTestRunResult.d.ts +183 -0
  279. package/types/types/family_elements/typeTestSuite.d.ts +39 -0
  280. package/types/types/family_elements/typeUser.d.ts +38 -0
  281. package/types/types/family_events/familyEvent.d.ts +30 -0
  282. package/types/types/family_events/typeEvent.d.ts +667 -0
  283. package/types/types/family_files/familyFile.d.ts +11 -0
  284. package/types/types/family_files/typeFile.d.ts +138 -0
  285. package/types/types/family_files/typeFileAutotestScreenshot.d.ts +23 -0
  286. package/types/types/family_files/typeFileFactory.d.ts +7 -0
  287. package/types/types/family_files/typeFileHtml.d.ts +6 -0
  288. package/types/types/family_files/typeFileJson.d.ts +6 -0
  289. package/types/types/family_files/typeFilePostman.d.ts +6 -0
  290. package/types/types/family_files/typeFileScreenshot.d.ts +32 -0
  291. package/types/types/family_files/typeFileVideo.d.ts +6 -0
  292. package/types/types/family_files/typeTextDocument.d.ts +253 -0
  293. package/types/types/family_files/typeTextDocumentFolder.d.ts +136 -0
  294. package/types/types/family_relation/typeBugRelation.d.ts +212 -0
  295. package/types/types/family_relation/typeCustomPropertyValue.d.ts +279 -0
  296. package/types/types/family_relation/typeTagRelation.d.ts +287 -0
  297. package/types/types/family_service/familyService.d.ts +6 -0
  298. package/types/types/family_service/typeFOR.d.ts +17 -0
  299. package/types/types/family_service/typeFilter.d.ts +20 -0
  300. package/types/types/family_service/typeFunctionCallback.d.ts +20 -0
  301. package/types/types/family_utils/familyUtil.d.ts +18 -0
  302. package/types/types/family_utils/typeUtilExecution.d.ts +394 -0
  303. package/types/types/family_utils/typeUtilExecutionEvent.d.ts +128 -0
  304. package/types/types/family_utils/typeUtilExecutionScreenshotMulti.d.ts +617 -0
  305. package/types/types/family_utils/typeUtilExecutionScreenshotMultiCapture.d.ts +26 -0
  306. package/types/types/family_utils/typeUtilExecutionScreenshotMultiCaptureError.d.ts +25 -0
  307. package/types/types/family_utils/typeUtilExecutionScreenshotMultiScreenshot.d.ts +33 -0
  308. package/types/types/family_utils/typeUtilExecutionUrlInspect.d.ts +227 -0
  309. package/types/types/family_utils/typeUtilExecutionUrlInspectCheck.d.ts +193 -0
  310. package/types/utils/text_document_image.d.ts +37 -0
  311. package/types/utils/utils.d.ts +60 -0
  312. package/publish/app_configuration/abstract_app_configuration.js +0 -33
  313. package/publish/app_configuration/locale_table_ru.js +0 -267
  314. package/publish/app_configuration/locale_table_tt.js +0 -267
  315. package/publish/app_configuration/menu_configuration_main.js +0 -133
  316. package/publish/app_configuration/menu_configuration_secondary.js +0 -140
  317. package/publish/app_configuration/table/helpers/column_factory.js +0 -172
  318. package/publish/app_configuration/table/helpers/column_locale.js +0 -76
  319. package/publish/app_configuration/table/helpers/execution_context_listing_fields.js +0 -25
  320. package/publish/app_configuration/table/helpers/section_registry.js +0 -81
  321. package/publish/app_configuration/table/helpers/table_element_models.js +0 -74
  322. package/publish/app_configuration/table/sections/autotest_case.js +0 -76
  323. package/publish/app_configuration/table/sections/autotest_result.js +0 -59
  324. package/publish/app_configuration/table/sections/autotest_run.js +0 -66
  325. package/publish/app_configuration/table/sections/autotest_step.js +0 -82
  326. package/publish/app_configuration/table/sections/autotest_suite.js +0 -42
  327. package/publish/app_configuration/table/sections/bug.js +0 -113
  328. package/publish/app_configuration/table/sections/bug_relation.js +0 -179
  329. package/publish/app_configuration/table/sections/custom_property.js +0 -95
  330. package/publish/app_configuration/table/sections/event.js +0 -76
  331. package/publish/app_configuration/table/sections/execution_context.js +0 -130
  332. package/publish/app_configuration/table/sections/object_repository_element.js +0 -59
  333. package/publish/app_configuration/table/sections/object_repository_folder.js +0 -41
  334. package/publish/app_configuration/table/sections/object_repository_page.js +0 -55
  335. package/publish/app_configuration/table/sections/project.js +0 -65
  336. package/publish/app_configuration/table/sections/tag.js +0 -82
  337. package/publish/app_configuration/table/sections/tag_relation.js +0 -309
  338. package/publish/app_configuration/table/sections/team.js +0 -48
  339. package/publish/app_configuration/table/sections/team_domain.js +0 -55
  340. package/publish/app_configuration/table/sections/team_member.js +0 -49
  341. package/publish/app_configuration/table/sections/test_account.js +0 -78
  342. package/publish/app_configuration/table/sections/test_case.js +0 -103
  343. package/publish/app_configuration/table/sections/test_case_step.js +0 -66
  344. package/publish/app_configuration/table/sections/test_run.js +0 -85
  345. package/publish/app_configuration/table/sections/test_run_result.js +0 -153
  346. package/publish/app_configuration/table/sections/text_document.js +0 -37
  347. package/publish/app_configuration/table/sections/user.js +0 -31
  348. package/publish/app_configuration/table/sections/util_execution.js +0 -42
  349. package/publish/app_configuration/table/sections/util_execution_url_inspect.js +0 -60
  350. package/publish/app_configuration/table/table_base_config.js +0 -135
  351. package/publish/app_configuration/table/table_configuration.js +0 -156
  352. package/publish/app_configuration/table_locale_ar.js +0 -676
  353. package/publish/app_configuration/text_document_editor_config.js +0 -31
  354. package/publish/dev.entry.js +0 -58
  355. package/publish/exceptions/BaseException.js +0 -96
  356. package/publish/services/serviceTranslate.js +0 -101
  357. package/publish/types/family_context/0_familyContext.js +0 -144
  358. package/publish/types/family_elements/0_familyGeneralElement.js +0 -683
  359. package/publish/types/family_elements/1_familyTestAutomation.js +0 -34
  360. package/publish/types/family_elements/1_familyTestDocumentation.js +0 -21
  361. package/publish/types/family_elements/typeProjectTestAccount.js +0 -59
  362. package/publish/types/family_service/typeAppConfiguration.js +0 -39
  363. package/publish/types/family_service/typeMenuElement.js +0 -32
  364. package/publish/types/family_service/typeNotification.js +0 -36
  365. package/publish/types/family_service/typeTableColumn.js +0 -116
  366. package/publish/types/family_service/typeTableConfiguration.js +0 -66
  367. /package/{publish → src}/api/api_abstract_reference_class.js +0 -0
  368. /package/{publish → src}/api/attachment_api.js +0 -0
  369. /package/{publish → src}/api/bug_relation_api.js +0 -0
  370. /package/{publish → src}/api/cache/api_search_cache.js +0 -0
  371. /package/{publish → src}/api/cache/index.js +0 -0
  372. /package/{publish → src}/api/cache/memory_cache_store.js +0 -0
  373. /package/{publish → src}/api/context/context_browser_api.js +0 -0
  374. /package/{publish → src}/api/context/context_deployment_target_api.js +0 -0
  375. /package/{publish → src}/api/context/context_devices_api.js +0 -0
  376. /package/{publish → src}/api/context/context_execution_general_api.js +0 -0
  377. /package/{publish → src}/api/context/context_locale_api.js +0 -0
  378. /package/{publish → src}/api/context/context_os_api.js +0 -0
  379. /package/{publish → src}/api/context/context_screen_resolution_api.js +0 -0
  380. /package/{publish → src}/api/context/context_user_agents_api.js +0 -0
  381. /package/{publish → src}/api/custom_property/custom_property_template_api.js +0 -0
  382. /package/{publish → src}/api/custom_property_api.js +0 -0
  383. /package/{publish → src}/api/custom_property_option_api.js +0 -0
  384. /package/{publish → src}/api/custom_property_value_api.js +0 -0
  385. /package/{publish → src}/api/event_api.js +0 -0
  386. /package/{publish → src}/api/file_app_api.js +0 -0
  387. /package/{publish → src}/api/service_api.js +0 -0
  388. /package/{publish → src}/api/tag/tag_color_api.js +0 -0
  389. /package/{publish → src}/api/tag/tag_template_api.js +0 -0
  390. /package/{publish → src}/api/tag_api.js +0 -0
  391. /package/{publish → src}/api/tag_relation_api.js +0 -0
  392. /package/{publish → src}/api/task_api.js +0 -0
  393. /package/{publish → src}/api/team_domain_api.js +0 -0
  394. /package/{publish → src}/api/test_account_api.js +0 -0
  395. /package/{publish → src}/api/text_document_folder_api.js +0 -0
  396. /package/{publish → src}/api/user_profile_api.js +0 -0
  397. /package/{publish → src}/api/util/browser_tools_screenshot_multi_api.js +0 -0
  398. /package/{publish → src}/api/util/browser_tools_util_execution_api.js +0 -0
  399. /package/{publish → src}/api/util/url_inspect_api.js +0 -0
  400. /package/{publish → src}/constants/text_document_limits.js +0 -0
  401. /package/{publish → src}/exceptions/ApiException.js +0 -0
  402. /package/{publish → src}/exceptions/GeneralException.js +0 -0
  403. /package/{publish → src}/services/DeveloperService.js +0 -0
  404. /package/{publish → src}/services/TeamService.js +0 -0
  405. /package/{publish → src}/services/abstractService.js +0 -0
  406. /package/{publish → src}/services/mock_data/MockUserService.js +0 -0
  407. /package/{publish → src}/types/core/1_familyContext.js +0 -0
  408. /package/{publish → src}/types/core/1_familyTestAutomation.js +0 -0
  409. /package/{publish → src}/types/core/1_familyTestDocumentation.js +0 -0
  410. /package/{publish → src}/types/core/type_class_resolver.js +0 -0
  411. /package/{publish → src}/types/element_translate/_familyContext.i18n.js +0 -0
  412. /package/{publish → src}/types/element_translate/_familyUtil.i18n.js +0 -0
  413. /package/{publish → src}/types/element_translate/typeAttachment.i18n.js +0 -0
  414. /package/{publish → src}/types/element_translate/typeAutotestCase.i18n.js +0 -0
  415. /package/{publish → src}/types/element_translate/typeAutotestResult.i18n.js +0 -0
  416. /package/{publish → src}/types/element_translate/typeAutotestRun.i18n.js +0 -0
  417. /package/{publish → src}/types/element_translate/typeAutotestStep.i18n.js +0 -0
  418. /package/{publish → src}/types/element_translate/typeAutotestSuite.i18n.js +0 -0
  419. /package/{publish → src}/types/element_translate/typeBrowserContext.i18n.js +0 -0
  420. /package/{publish → src}/types/element_translate/typeBug.i18n.js +0 -0
  421. /package/{publish → src}/types/element_translate/typeBugRelation.i18n.js +0 -0
  422. /package/{publish → src}/types/element_translate/typeDeploymentTargetContext.i18n.js +0 -0
  423. /package/{publish → src}/types/element_translate/typeDeviceContext.i18n.js +0 -0
  424. /package/{publish → src}/types/element_translate/typeEvent.i18n.js +0 -0
  425. /package/{publish → src}/types/element_translate/typeExecutionContext.i18n.js +0 -0
  426. /package/{publish → src}/types/element_translate/typeFile.i18n.js +0 -0
  427. /package/{publish → src}/types/element_translate/typeFileScreenshot.i18n.js +0 -0
  428. /package/{publish → src}/types/element_translate/typeLocaleContext.i18n.js +0 -0
  429. /package/{publish → src}/types/element_translate/typeObjectRepositoryElement.i18n.js +0 -0
  430. /package/{publish → src}/types/element_translate/typeObjectRepositoryFolder.i18n.js +0 -0
  431. /package/{publish → src}/types/element_translate/typeObjectRepositoryPage.i18n.js +0 -0
  432. /package/{publish → src}/types/element_translate/typeOsContext.i18n.js +0 -0
  433. /package/{publish → src}/types/element_translate/typeProject.i18n.js +0 -0
  434. /package/{publish → src}/types/element_translate/typeScreenResolutionContext.i18n.js +0 -0
  435. /package/{publish → src}/types/element_translate/typeTag.i18n.js +0 -0
  436. /package/{publish → src}/types/element_translate/typeTagRelation.i18n.js +0 -0
  437. /package/{publish → src}/types/element_translate/typeTeamDomain.i18n.js +0 -0
  438. /package/{publish → src}/types/element_translate/typeTeamMember.i18n.js +0 -0
  439. /package/{publish → src}/types/element_translate/typeTeamTotalStatistic.i18n.js +0 -0
  440. /package/{publish → src}/types/element_translate/typeTestAccount.i18n.js +0 -0
  441. /package/{publish → src}/types/element_translate/typeTestCase.i18n.js +0 -0
  442. /package/{publish → src}/types/element_translate/typeTestCaseStep.i18n.js +0 -0
  443. /package/{publish → src}/types/element_translate/typeTestRun.i18n.js +0 -0
  444. /package/{publish → src}/types/element_translate/typeTestRunResult.i18n.js +0 -0
  445. /package/{publish → src}/types/element_translate/typeTextDocument.i18n.js +0 -0
  446. /package/{publish → src}/types/element_translate/typeTextDocumentFolder.i18n.js +0 -0
  447. /package/{publish → src}/types/element_translate/typeUserAgentContext.i18n.js +0 -0
  448. /package/{publish → src}/types/element_translate/typeUtilExecution.i18n.js +0 -0
  449. /package/{publish → src}/types/element_translate/typeUtilExecutionScreenshotMulti.i18n.js +0 -0
  450. /package/{publish → src}/types/element_translate/typeUtilExecutionUrlInspect.i18n.js +0 -0
  451. /package/{publish → src}/types/element_translate/typeUtilExecutionUrlInspectCheck.i18n.js +0 -0
  452. /package/{publish → src}/types/family_contracts/familyContracts.js +0 -0
  453. /package/{publish → src}/types/family_contracts/typeTeamTotalStatistic.js +0 -0
  454. /package/{publish → src}/types/family_elements/autotest_step_actions/autotestStepActionCategory.js +0 -0
  455. /package/{publish → src}/types/family_elements/autotest_step_actions/autotestStepLocatorKind.js +0 -0
  456. /package/{publish → src}/types/family_elements/autotest_step_actions/autotestStepTargetNormalizer.js +0 -0
  457. /package/{publish → src}/types/family_elements/autotest_step_actions/typeAutotestStepActionVariants.js +0 -0
  458. /package/{publish → src}/types/family_elements/autotest_step_actions/typeAutotestStepLocatorAction.js +0 -0
  459. /package/{publish → src}/types/family_elements/autotest_step_actions/typeAutotestStepLocatorValueAction.js +0 -0
  460. /package/{publish → src}/types/family_elements/mock_data/abstract_mock_data.js +0 -0
  461. /package/{publish → src}/types/family_elements/typeActionLog.js +0 -0
  462. /package/{publish → src}/types/family_elements/typeAutotestSuite.js +0 -0
  463. /package/{publish → src}/types/family_elements/typeObjectRepositoryPage.js +0 -0
  464. /package/{publish → src}/types/family_elements/typeTag.js +0 -0
  465. /package/{publish → src}/types/family_events/familyEvent.js +0 -0
  466. /package/{publish → src}/types/family_files/familyFile.js +0 -0
  467. /package/{publish → src}/types/family_files/typeFileAutotestScreenshot.js +0 -0
  468. /package/{publish → src}/types/family_files/typeFileFactory.js +0 -0
  469. /package/{publish → src}/types/family_files/typeFileHtml.js +0 -0
  470. /package/{publish → src}/types/family_files/typeFileJson.js +0 -0
  471. /package/{publish → src}/types/family_files/typeFilePostman.js +0 -0
  472. /package/{publish → src}/types/family_files/typeFileScreenshot.js +0 -0
  473. /package/{publish → src}/types/family_files/typeFileVideo.js +0 -0
  474. /package/{publish → src}/types/family_service/familyService.js +0 -0
  475. /package/{publish → src}/types/family_utils/familyUtil.js +0 -0
  476. /package/{publish → src}/utils/text_document_image.js +0 -0
  477. /package/{publish/types → types}/family_elements/typeTeamDomain.js +0 -0
  478. /package/{publish/types → types}/family_utils/typeUtilExecutionUrlInspect.js +0 -0
  479. /package/{publish/types → types}/family_utils/typeUtilExecutionUrlInspectCheck.js +0 -0
@@ -1,683 +0,0 @@
1
- import { clone_object, echo, in_array, is_array } from "../../utils/utils";
2
-
3
- /**
4
- * Базовый абстрактный класс для всех типов
5
- *
6
- * @version v.0.2 (12/06/2025)
7
- */
8
- export class familyGeneralElement
9
- {
10
- primary_key = false;
11
- create_scheme = false;
12
- structure_scheme = false;
13
- available_enum_values = false;
14
- api_key = false;
15
- attribute_name_translate_matrix = {
16
- en: {},
17
- ru: {}
18
- }
19
-
20
- enum_value_translate_matrix = false;
21
-
22
-
23
- /***********************************************/
24
- /***********************************************/
25
-
26
- /***********************************************/
27
-
28
- /**
29
- *
30
- * @version v.0.1 (26/05/2024)
31
- * @return {string|false}
32
- */
33
- get_primary_key()
34
- {
35
- if (this.primary_key)
36
- {
37
- return this.primary_key;
38
- }
39
- else
40
- {
41
- throw new Error('familyGeneralElement has no primary_key. Error #01-01');
42
- }
43
- }
44
-
45
-
46
- /**
47
- *
48
- * @version v.0.1 (14/03/2026)
49
- * @return {string|false}
50
- */
51
- get_primary_key_value()
52
- {
53
- if (this.get_primary_key())
54
- {
55
- return this[ this.get_primary_key() ];
56
- }
57
- else
58
- {
59
- return false;
60
- }
61
- }
62
-
63
-
64
- /**
65
- *
66
- * @version v.0.1 (27/06/2024)
67
- * @returns {array<familyGeneralElement>}
68
- * @param {number} count
69
- */
70
- get_random_demo_data(count)
71
- {
72
- // @todo validations
73
- let response = [];
74
- for (let i = 0; i < count; i++)
75
- {
76
- response.push(this.get_demo_row());
77
- }
78
- // получаем массив сгенерированных элементов,
79
- // в том числе - с незаполненными данными (корректная обработка)
80
-
81
- // контроль пересечения primary key
82
- // прототип идеи
83
- // @todo - дописать
84
- return response;
85
- }
86
-
87
- /**
88
- *
89
- * @returns {familyGeneralElement}
90
- */
91
- get_demo_row()
92
- {
93
- return this;
94
- }
95
-
96
- /**
97
- *
98
- * @version v.0.2 (15/06/2024)
99
- * @param {string} attribute
100
- */
101
- get_available_enum_values(attribute)
102
- {
103
- let response = false;
104
- if (!this.structure_scheme?.[ attribute ])
105
- {
106
- // выбрасывать исключения?
107
- return false;
108
- }
109
-
110
- let rules = this.get_attribute_structure_scheme(attribute);
111
- if (!rules)
112
- {
113
- return false;
114
- }
115
- if (!in_array('enum', rules))
116
- {
117
- return false;
118
- }
119
-
120
- if (this.available_enum_values?.[ attribute ])
121
- {
122
- response = this.available_enum_values?.[ attribute ];
123
- }
124
-
125
- return response;
126
- }
127
-
128
-
129
- /**
130
- *
131
- * @param attribute
132
- * @returns {array|false}
133
- */
134
- get_attribute_structure_scheme(attribute)
135
- {
136
- let response = false;
137
- if (this.structure_scheme[ attribute ])
138
- {
139
- let scheme = clone_object(this.structure_scheme[ attribute ]);
140
-
141
- if (scheme)
142
- {
143
- scheme = scheme.split('|');
144
- if (is_array(scheme))
145
- {
146
- response = [];
147
- scheme.map((row) =>
148
- {
149
- response.push(row.trim());
150
- });
151
- }
152
- }
153
- }
154
-
155
- return response;
156
- }
157
-
158
-
159
- /**
160
- *
161
- * @version v.0.1 (26/05/2024)
162
- */
163
- get_data()
164
- {
165
- return this.get_pure_data();
166
- }
167
-
168
-
169
- /**
170
- *
171
- * @version v.0.1 (26/05/2024)
172
- */
173
- get_pure_data()
174
- {
175
- let response = false;
176
- if (this.structure_scheme)
177
- {
178
- response = {};
179
- _.mapObject(this.structure_scheme, (value, attribute) =>
180
- {
181
- if (this[ attribute ] !== undefined)
182
- {
183
- response [ attribute ] = this[ attribute ];
184
- }
185
- });
186
- }
187
-
188
- return response;
189
- }
190
-
191
-
192
- /**
193
- * @todo - сделать нормализация по create scheme с валидацией
194
- *
195
- * @version v.0.1 (26/01/2025)
196
- *
197
- * @param payload
198
- * @returns {*}
199
- */
200
- normalize_payload(payload)
201
- {
202
-
203
- return payload;
204
- }
205
-
206
-
207
- get_editable_attributes() {}
208
-
209
- is_editable_attribute(attribute) {}
210
-
211
-
212
- /**
213
- *
214
- * @version v.1.0 (14/03/2026)
215
- *
216
- * @param {string} attribute_name
217
- * @param {string} lang
218
- *
219
- * @return {string}
220
- */
221
- get_attribute_name_translate(attribute_name, lang)
222
- {
223
- let response = attribute_name;
224
-
225
- if (!lang)
226
- {
227
- lang = 'en';
228
- }
229
-
230
- if (this.attribute_name_translate_matrix?.[ lang ]?.[ attribute_name ])
231
- {
232
- response = this.attribute_name_translate_matrix?.[ lang ]?.[ attribute_name ];
233
- }
234
-
235
- return response;
236
- }
237
-
238
-
239
- /**
240
- *
241
- * @version v.1.0 (05/04/2026)
242
- * @returns {*}
243
- */
244
- get_enum_value_translate(attribute, value, lang)
245
- {
246
- let response = value;
247
-
248
- if (!lang)
249
- {
250
- lang = 'en';
251
- }
252
-
253
- if (this.enum_value_translate_matrix?.[ attribute ]?.[ lang ]?.[ value ])
254
- {
255
- response = this.enum_value_translate_matrix?.[ attribute ]?.[ lang ]?.[ value ];
256
- }
257
-
258
- return response;
259
- }
260
-
261
- /***********************************************/
262
-
263
- /**
264
- * Возвращаем "имя", то есть значение атрибута, который является именем
265
- *
266
- * @version v.0.1 (05/06/2025)
267
- */
268
- get_element_name()
269
- {
270
- alert('Error #205-001 Not implemented method');
271
- }
272
-
273
- /***********************************************/
274
- /***********************************************/
275
-
276
- /***********************************************/
277
-
278
- /**
279
- *
280
- * @version v.0.1 (26/05/2024)
281
- * @param id
282
- */
283
- async find(id = false)
284
- {
285
- // или передаем ID, или используем вложенный
286
- // возвращаем инстанс себя же
287
- alert('Error #267-001 Not implemented method');
288
- }
289
-
290
-
291
- /**
292
- *
293
- * @param {familyGeneralElement|object} payload
294
- *
295
- * @param {typeFunctionCallback|object|false} callback
296
- *
297
- * @param {?function} callback.before
298
- * @param {?function} callback.success
299
- * @param {?function} callback.error
300
- * @param {?function} callback.final
301
- *
302
- * @version v.2.0 (12/06/2025)
303
- */
304
- async create(payload, callback)
305
- {
306
- if (!this.api_key)
307
- {
308
- throw new Error('Error #249-2215 - element has no api_key');
309
- }
310
-
311
- if (typeof callback?.before === 'function')
312
- {
313
- callback?.before({ payload });
314
- }
315
-
316
- payload = this.normalize_payload(payload);
317
-
318
-
319
- /**
320
- * {Api} ApiService
321
- */
322
- return ApiService[ this.api_key ].create(payload).then((response) =>
323
- {
324
- if (typeof callback?.success === 'function')
325
- {
326
- callback?.success({ response, payload })
327
- }
328
- }).catch((error) =>
329
- {
330
- echo({ error });
331
- if (typeof callback?.error === 'function')
332
- {
333
- callback?.error({ error, payload })
334
- }
335
- }).finally((response) =>
336
- {
337
- if (typeof callback?.final === 'function')
338
- {
339
- callback?.final({ response, payload })
340
- }
341
- });
342
- }
343
-
344
-
345
- /**
346
- * Mass create. Payload: `{ items: object[] }`.
347
- *
348
- * @param {object} payload
349
- * @param {array} payload.items
350
- * @param {typeFunctionCallback|object|false} callback
351
- * @version v.1.0 (29/08/2026)
352
- */
353
- async create_mass(payload, callback)
354
- {
355
- if (!this.api_key)
356
- {
357
- throw new Error('Error #249-2215 - element has no api_key');
358
- }
359
-
360
- if (typeof callback?.before === 'function')
361
- {
362
- callback?.before({ payload });
363
- }
364
-
365
- return ApiService[ this.api_key ].create_mass(payload).then((response) =>
366
- {
367
- if (typeof callback?.success === 'function')
368
- {
369
- callback?.success({ response, payload })
370
- }
371
- }).catch((error) =>
372
- {
373
- echo({ error });
374
- if (typeof callback?.error === 'function')
375
- {
376
- callback?.error({ error, payload })
377
- }
378
- }).finally((response) =>
379
- {
380
- if (typeof callback?.final === 'function')
381
- {
382
- callback?.final({ response, payload })
383
- }
384
- });
385
- }
386
-
387
-
388
- /**
389
- * Обновление целой модели элемента
390
- *
391
- * @version v.2.0 (12/06/2025)
392
- */
393
- async update(payload, callback)
394
- {
395
- if (!this.api_key)
396
- {
397
- throw new Error('Error #259-2215 - element has no api_key');
398
- }
399
-
400
- if (typeof callback?.before === 'function')
401
- {
402
- callback?.before({ payload });
403
- }
404
-
405
- payload = this.normalize_payload(payload);
406
-
407
-
408
- /**
409
- * {Api} ApiService
410
- */
411
- return ApiService[ this.api_key ].update(payload).then((response) =>
412
- {
413
- if (typeof callback?.success === 'function')
414
- {
415
- callback?.success({ response, payload })
416
- }
417
- }).catch((error) =>
418
- {
419
- echo({ error });
420
- if (typeof callback?.error === 'function')
421
- {
422
- callback?.error({ error, payload })
423
- }
424
- }).finally((response) =>
425
- {
426
- if (typeof callback?.final === 'function')
427
- {
428
- callback?.final({ response, payload })
429
- }
430
- });
431
- }
432
-
433
-
434
- /**
435
- * Обновление 1 атрибута у 1 элемента
436
- *
437
- * @version v.2.0 (12/06/2025)
438
- * @param key
439
- * @param value
440
- * @param callback
441
- * @returns {Promise<>}
442
- */
443
- async update_property(key, value, callback)
444
- {
445
- if (!this.api_key)
446
- {
447
- throw new Error('Error #345-2215 - element has no api_key');
448
- }
449
-
450
- let payload = {
451
- key : key,
452
- value: value,
453
- };
454
- payload[ this.get_primary_key() ] = this[ this.get_primary_key() ];
455
-
456
- if (typeof callback?.before === 'function')
457
- {
458
- callback?.before({ payload });
459
- }
460
-
461
- /**
462
- * {Api} ApiService
463
- */
464
- return ApiService[ this.api_key ].update_property(payload).then((response) =>
465
- {
466
- if (typeof callback?.success === 'function')
467
- {
468
- callback?.success({ response, payload })
469
- }
470
- }).catch((error) =>
471
- {
472
- echo({ error });
473
- if (typeof callback?.error === 'function')
474
- {
475
- callback?.error({ error, payload })
476
- }
477
- }).finally((response) =>
478
- {
479
- if (typeof callback?.final === 'function')
480
- {
481
- callback?.final({ response, payload })
482
- }
483
- });
484
- }
485
-
486
-
487
- /**
488
- * Массив свойств у 1 элемента
489
- *
490
- * @version v.0.1 (26/05/2024)
491
- * @param {number} element_id
492
- * @param {array} payload array<key->value>
493
- * @returns {Promise<void>}
494
- */
495
- async update_properties(element_id, payload, callback)
496
- {
497
- alert('Error #272-001 Not implemented method');
498
- }
499
-
500
-
501
- /**
502
- * 1 свойство и массива элементов
503
- *
504
- * @version v.0.1 (07/07/2026)
505
- *
506
- * @param {array<number>} element_ids
507
- * @param {string} key
508
- * @param {any} value в зависимости от типа
509
- * @param {object|typeFunctionCallback} callback
510
- *
511
- * @returns {Promise<void>}
512
- */
513
- async update_property_mass(element_ids, key, value, callback)
514
- {
515
- if (!this.api_key)
516
- {
517
- throw new Error('Error #471-2598 - element has no api_key');
518
- }
519
-
520
- let payload = {
521
- element_ids: element_ids,
522
- key : key,
523
- value : value,
524
- };
525
-
526
- if (typeof callback?.before === 'function')
527
- {
528
- callback?.before({ payload });
529
- }
530
-
531
- /**
532
- * {Api} ApiService
533
- */
534
- return ApiService[ this.api_key ].update_property_mass(payload).then((response) =>
535
- {
536
- if (typeof callback?.success === 'function')
537
- {
538
- callback?.success({ response, payload })
539
- }
540
- }).catch((error) =>
541
- {
542
- echo({ error });
543
- if (typeof callback?.error === 'function')
544
- {
545
- callback?.error({ error, payload })
546
- }
547
- }).finally((response) =>
548
- {
549
- if (typeof callback?.final === 'function')
550
- {
551
- callback?.final({ response, payload })
552
- }
553
- });
554
- }
555
-
556
-
557
- /**
558
- *
559
- * @version v.2.0 (12/06/2025)
560
- */
561
- async delete(element = false, callback = {})
562
- {
563
- if (!this.api_key)
564
- {
565
- throw new Error('Error #404-2215 - element has no api_key');
566
- }
567
-
568
- if (!element)
569
- {
570
- element = this;
571
- }
572
-
573
- if (!window.confirm("Submit delete"))
574
- {
575
- return false;
576
- }
577
-
578
- let payload = typeof element.get_pure_data === 'function'
579
- ? element.get_pure_data()
580
- : false;
581
-
582
- if (!payload)
583
- {
584
- payload = {};
585
- payload[ this.get_primary_key() ] = element[ this.get_primary_key() ];
586
- }
587
-
588
- payload = this.normalize_payload(payload);
589
-
590
- if (typeof callback?.before === 'function')
591
- {
592
- callback?.before({ payload });
593
- }
594
-
595
- return ApiService[ this.api_key ].delete(payload).then((response) =>
596
- {
597
- if (typeof callback?.success === 'function')
598
- {
599
- callback?.success({ response, payload })
600
- }
601
- }).catch((error) =>
602
- {
603
- echo({ error });
604
- if (typeof callback?.error === 'function')
605
- {
606
- callback?.error({ error, payload })
607
- }
608
- }).finally((response) =>
609
- {
610
- if (typeof callback?.final === 'function')
611
- {
612
- callback?.final({ response, payload })
613
- }
614
- });
615
- }
616
-
617
-
618
- /**
619
- *
620
- * @version v.1.0 (07/03/2026)
621
- */
622
- async delete_mass(element_ids, callback = {})
623
- {
624
-
625
- }
626
-
627
-
628
- /**
629
- *
630
- * @version v.1.0 (07/03/2026)
631
- */
632
- async clone_element(element = false, callback = {})
633
- {
634
- if (!this.api_key)
635
- {
636
- throw new Error('Error #463-2215 - element has no api_key');
637
- }
638
-
639
- if (!element)
640
- {
641
- element = this;
642
- }
643
-
644
- let payload = {};
645
-
646
- payload[ this.get_primary_key() ] = element[ this.get_primary_key() ];
647
-
648
-
649
- /**
650
- * {Api} ApiService
651
- */
652
- return ApiService[ this.api_key ].clone_element(payload).then((response) =>
653
- {
654
- if (typeof callback?.success === 'function')
655
- {
656
- callback?.success({ response, payload })
657
- }
658
- }).catch((error) =>
659
- {
660
- echo({ error });
661
- if (typeof callback?.error === 'function')
662
- {
663
- callback?.error({ error, payload })
664
- }
665
- }).finally((response) =>
666
- {
667
- if (typeof callback?.final === 'function')
668
- {
669
- callback?.final({ response, payload })
670
- }
671
- });
672
- }
673
-
674
-
675
- /**
676
- *
677
- * @version v.1.0 (07/03/2026)
678
- */
679
- async clone_element_mass(element_ids, callback = {})
680
- {
681
-
682
- }
683
- }
@@ -1,34 +0,0 @@
1
- import { familyGeneralElement } from "./0_familyGeneralElement.js";
2
-
3
-
4
- /**
5
- * Семейство типов, относящееся к модулю автоматического тестирования
6
- *
7
- * @version v.0.1 (29/11/2025)
8
- */
9
- export class familyTestAutomation extends familyGeneralElement
10
- {
11
- /**
12
- * Hydrated on element search via options.add: ['tags'].
13
- *
14
- * @type {Array<object>|undefined}
15
- */
16
- tags;
17
-
18
- /**
19
- * Hydrated on element search via options.add: ['custom_properties'].
20
- *
21
- * @type {Array<object>|undefined}
22
- */
23
- custom_properties;
24
-
25
-
26
- /**
27
- *
28
- * @param {any} data
29
- */
30
- constructor(data = false)
31
- {
32
- super();
33
- }
34
- }
@@ -1,21 +0,0 @@
1
- import { familyGeneralElement } from "./0_familyGeneralElement.js";
2
-
3
-
4
- /**
5
- * Семейство типов, относящееся к модулю тестовой документации
6
- *
7
- * @version v.0.1 (29/11/2025)
8
- */
9
- export class familyTestDocumentation extends familyGeneralElement
10
- {
11
-
12
- /**
13
- *
14
- * @param {any} data
15
- */
16
- constructor(data = false)
17
- {
18
- super();
19
- }
20
-
21
- }