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.
- package/README.md +83 -0
- package/package.json +30 -26
- package/{publish → src}/api/api_abstract_class.js +22 -10
- package/{publish → src}/api/api_abstract_element_class.js +19 -1
- package/{publish → src}/api/autotest_case_api.js +2 -2
- package/{publish → src}/api/autotest_result_api.js +2 -2
- package/{publish → src}/api/autotest_run_api.js +2 -2
- package/{publish → src}/api/autotest_step_api.js +2 -2
- package/{publish → src}/api/autotest_suite_api.js +2 -2
- package/{publish → src}/api/bug_api.js +1 -1
- package/{publish → src}/api/functional_api.js +2 -2
- package/{publish → src}/api/index.js +11 -5
- package/{publish → src}/api/object_repository_element_api.js +2 -2
- package/{publish → src}/api/object_repository_folder_api.js +2 -2
- package/{publish → src}/api/object_repository_page_api.js +2 -2
- package/{publish → src}/api/project_api.js +2 -2
- package/{publish → src}/api/public_text_document_api.js +2 -2
- package/{publish → src}/api/team_management_api.js +1 -1
- package/{publish → src}/api/team_member_api.js +2 -2
- package/{publish → src}/api/test_case_api.js +2 -2
- package/{publish → src}/api/test_case_step_api.js +2 -2
- package/{publish → src}/api/test_plan_api.js +2 -2
- package/{publish → src}/api/test_run_api.js +2 -2
- package/{publish → src}/api/test_run_result_api.js +2 -2
- package/{publish → src}/api/test_suite_api.js +2 -2
- package/{publish → src}/api/text_document_api.js +9 -9
- package/src/api/typeApiBinding.js +41 -0
- package/{publish → src}/exceptions/0_BaseException.js +26 -17
- package/{publish → src}/index.js +2 -46
- package/{publish → src}/services/FileAppService.js +8 -5
- package/{publish → src}/services/UserService.js +9 -2
- package/{publish → src}/types/core/0_familyGeneralElement.js +56 -22
- package/{publish → src}/types/core/1_familyRelation.js +3 -0
- package/{publish → src}/types/element_translate/typeCustomProperty.i18n.js +15 -0
- package/{publish → src}/types/element_translate/typeCustomPropertyValue.i18n.js +15 -0
- package/{publish → src}/types/family_context/typeBrowserContext.js +1 -0
- package/{publish → src}/types/family_context/typeDeploymentTargetContext.js +2 -0
- package/{publish → src}/types/family_context/typeDeviceContext.js +2 -0
- package/{publish → src}/types/family_context/typeExecutionContext.js +2 -0
- package/{publish → src}/types/family_context/typeLocaleContext.js +1 -0
- package/{publish → src}/types/family_context/typeOsContext.js +2 -0
- package/{publish → src}/types/family_context/typeScreenResolutionContext.js +2 -0
- package/{publish → src}/types/family_context/typeUserAgentContext.js +2 -0
- package/{publish → src}/types/family_elements/autotest_step_actions/autotestStepActionCatalog.js +30 -3
- package/{publish → src}/types/family_elements/autotest_step_actions/typeAutotestStepAction.js +10 -1
- package/{publish → src}/types/family_elements/mock_data/mock_data_typeProject.js +2 -2
- package/{publish → src}/types/family_elements/typeAttachment.js +1 -0
- package/{publish → src}/types/family_elements/typeAutomationTestEnvironment.js +2 -0
- package/{publish → src}/types/family_elements/typeAutomationTestPlan.js +1 -0
- package/{publish → src}/types/family_elements/typeAutomationTestStep.js +2 -0
- package/{publish → src}/types/family_elements/typeAutomationTestStepTarget.js +1 -0
- package/{publish → src}/types/family_elements/typeAutotestCase.js +5 -3
- package/{publish → src}/types/family_elements/typeAutotestResult.js +2 -0
- package/{publish → src}/types/family_elements/typeAutotestRun.js +3 -1
- package/{publish → src}/types/family_elements/typeAutotestStep.js +6 -5
- package/{publish → src}/types/family_elements/typeAutotestStepTarget.js +1 -0
- package/{publish → src}/types/family_elements/typeBug.js +4 -1
- package/{publish → src}/types/family_elements/typeCustomProperty.js +14 -1
- package/{publish → src}/types/family_elements/typeFunctional.js +3 -1
- package/{publish → src}/types/family_elements/typeFunctionalGroup.js +3 -1
- package/{publish → src}/types/family_elements/typeMilestone.js +3 -1
- package/{publish → src}/types/family_elements/typeObjectRepositoryElement.js +1 -0
- package/{publish → src}/types/family_elements/typeObjectRepositoryFolder.js +1 -0
- package/{publish → src}/types/family_elements/typePrice.js +1 -0
- package/{publish → src}/types/family_elements/typeProject.js +10 -13
- package/{publish → src}/types/family_elements/typeProjectDocument.js +3 -1
- package/{publish → src}/types/family_elements/typeProjectTestData.js +2 -1
- package/{publish → src}/types/family_elements/typeProjectUserRole.js +3 -1
- package/{publish → src}/types/family_elements/typeTask.js +3 -2
- package/{publish → src}/types/family_elements/typeTeam.js +6 -4
- package/src/types/family_elements/typeTeamDomain.js +175 -0
- package/{publish → src}/types/family_elements/typeTeamMember.js +4 -2
- package/{publish → src}/types/family_elements/typeTeamUserRole.js +2 -1
- package/{publish → src}/types/family_elements/typeTestAccount.js +2 -1
- package/{publish → src}/types/family_elements/typeTestCase.js +4 -1
- package/{publish → src}/types/family_elements/typeTestCaseStep.js +5 -3
- package/{publish → src}/types/family_elements/typeTestPlan.js +2 -1
- package/{publish → src}/types/family_elements/typeTestRun.js +5 -2
- package/{publish → src}/types/family_elements/typeTestRunResult.js +4 -1
- package/{publish → src}/types/family_elements/typeTestSuite.js +2 -1
- package/{publish → src}/types/family_elements/typeUser.js +3 -1
- package/{publish → src}/types/family_events/typeEvent.js +2 -0
- package/{publish → src}/types/family_files/typeFile.js +2 -0
- package/{publish → src}/types/family_files/typeTextDocument.js +3 -0
- package/{publish → src}/types/family_files/typeTextDocumentFolder.js +1 -0
- package/{publish → src}/types/family_relation/typeBugRelation.js +1 -0
- package/{publish → src}/types/family_relation/typeCustomPropertyValue.js +6 -1
- package/{publish → src}/types/family_relation/typeTagRelation.js +1 -0
- package/{publish → src}/types/family_service/typeFOR.js +3 -2
- package/{publish → src}/types/family_service/typeFilter.js +2 -1
- package/{publish → src}/types/family_service/typeFunctionCallback.js +2 -1
- package/{publish → src}/types/family_utils/typeUtilExecution.js +3 -0
- package/{publish → src}/types/family_utils/typeUtilExecutionEvent.js +2 -0
- package/{publish → src}/types/family_utils/typeUtilExecutionScreenshotMulti.js +4 -2
- package/{publish → src}/types/family_utils/typeUtilExecutionScreenshotMultiCapture.js +1 -0
- package/{publish → src}/types/family_utils/typeUtilExecutionScreenshotMultiCaptureError.js +1 -0
- package/{publish → src}/types/family_utils/typeUtilExecutionScreenshotMultiScreenshot.js +1 -0
- package/src/types/family_utils/typeUtilExecutionUrlInspect.js +202 -0
- package/src/types/family_utils/typeUtilExecutionUrlInspectCheck.js +103 -0
- package/{publish → src}/utils/utils.js +1 -0
- package/types/api/api_abstract_class.d.ts +85 -0
- package/types/api/api_abstract_element_class.d.ts +79 -0
- package/types/api/api_abstract_reference_class.d.ts +26 -0
- package/types/api/attachment_api.d.ts +25 -0
- package/types/api/autotest_case_api.d.ts +36 -0
- package/types/api/autotest_result_api.d.ts +8 -0
- package/types/api/autotest_run_api.d.ts +16 -0
- package/types/api/autotest_step_api.d.ts +45 -0
- package/types/api/autotest_suite_api.d.ts +8 -0
- package/types/api/bug_api.d.ts +9 -0
- package/types/api/bug_relation_api.d.ts +10 -0
- package/types/api/cache/api_search_cache.d.ts +39 -0
- package/types/api/cache/index.d.ts +2 -0
- package/types/api/cache/memory_cache_store.d.ts +24 -0
- package/types/api/context/context_browser_api.d.ts +9 -0
- package/types/api/context/context_deployment_target_api.d.ts +9 -0
- package/types/api/context/context_devices_api.d.ts +9 -0
- package/types/api/context/context_execution_general_api.d.ts +9 -0
- package/types/api/context/context_locale_api.d.ts +9 -0
- package/types/api/context/context_os_api.d.ts +9 -0
- package/types/api/context/context_screen_resolution_api.d.ts +9 -0
- package/types/api/context/context_user_agents_api.d.ts +9 -0
- package/types/api/custom_property/custom_property_template_api.d.ts +10 -0
- package/types/api/custom_property_api.d.ts +25 -0
- package/types/api/custom_property_option_api.d.ts +11 -0
- package/types/api/custom_property_value_api.d.ts +28 -0
- package/types/api/event_api.d.ts +12 -0
- package/types/api/file_app_api.d.ts +105 -0
- package/types/api/functional_api.d.ts +9 -0
- package/types/api/index.d.ts +155 -0
- package/types/api/object_repository_element_api.d.ts +8 -0
- package/types/api/object_repository_folder_api.d.ts +8 -0
- package/types/api/object_repository_page_api.d.ts +8 -0
- package/types/api/project_api.d.ts +53 -0
- package/types/api/public_text_document_api.d.ts +29 -0
- package/types/api/service_api.d.ts +9 -0
- package/types/api/tag/tag_color_api.d.ts +10 -0
- package/types/api/tag/tag_template_api.d.ts +10 -0
- package/types/api/tag_api.d.ts +23 -0
- package/types/api/tag_relation_api.d.ts +30 -0
- package/types/api/task_api.d.ts +19 -0
- package/types/api/team_domain_api.d.ts +30 -0
- package/types/api/team_management_api.d.ts +27 -0
- package/types/api/team_member_api.d.ts +19 -0
- package/types/api/test_account_api.d.ts +9 -0
- package/types/api/test_case_api.d.ts +9 -0
- package/types/api/test_case_step_api.d.ts +28 -0
- package/types/api/test_plan_api.d.ts +9 -0
- package/types/api/test_run_api.d.ts +16 -0
- package/types/api/test_run_result_api.d.ts +9 -0
- package/types/api/test_suite_api.d.ts +9 -0
- package/types/api/text_document_api.d.ts +98 -0
- package/types/api/text_document_folder_api.d.ts +8 -0
- package/types/api/typeApiBinding.d.ts +12 -0
- package/types/api/user_profile_api.d.ts +18 -0
- package/types/api/util/browser_tools_screenshot_multi_api.d.ts +24 -0
- package/types/api/util/browser_tools_util_execution_api.d.ts +26 -0
- package/types/api/util/url_inspect_api.d.ts +24 -0
- package/types/constants/text_document_limits.d.ts +14 -0
- package/types/element_translate/typeTeamDomain.i18n.js +71 -0
- package/types/element_translate/typeUtilExecutionUrlInspect.i18n.js +55 -0
- package/types/element_translate/typeUtilExecutionUrlInspectCheck.i18n.js +111 -0
- package/types/exceptions/0_BaseException.d.ts +25 -0
- package/types/exceptions/ApiException.d.ts +16 -0
- package/types/exceptions/GeneralException.d.ts +13 -0
- package/types/index.d.ts +79 -0
- package/types/services/DeveloperService.d.ts +43 -0
- package/types/services/FileAppService.d.ts +131 -0
- package/types/services/TeamService.d.ts +21 -0
- package/types/services/UserService.d.ts +233 -0
- package/types/services/abstractService.d.ts +13 -0
- package/types/services/mock_data/MockUserService.d.ts +12 -0
- package/types/types/core/0_familyGeneralElement.d.ts +228 -0
- package/types/types/core/1_familyContext.d.ts +87 -0
- package/types/types/core/1_familyRelation.d.ts +53 -0
- package/types/types/core/1_familyTestAutomation.d.ts +25 -0
- package/types/types/core/1_familyTestDocumentation.d.ts +27 -0
- package/types/types/core/type_class_resolver.d.ts +25 -0
- package/types/types/element_translate/_familyContext.i18n.d.ts +316 -0
- package/types/types/element_translate/_familyUtil.i18n.d.ts +515 -0
- package/types/types/element_translate/typeAttachment.i18n.d.ts +358 -0
- package/types/types/element_translate/typeAutotestCase.i18n.d.ts +139 -0
- package/types/types/element_translate/typeAutotestResult.i18n.d.ts +110 -0
- package/types/types/element_translate/typeAutotestRun.i18n.d.ts +170 -0
- package/types/types/element_translate/typeAutotestStep.i18n.d.ts +115 -0
- package/types/types/element_translate/typeAutotestSuite.i18n.d.ts +51 -0
- package/types/types/element_translate/typeBrowserContext.i18n.d.ts +158 -0
- package/types/types/element_translate/typeBug.i18n.d.ts +1863 -0
- package/types/types/element_translate/typeBugRelation.i18n.d.ts +232 -0
- package/types/types/element_translate/typeCustomProperty.i18n.d.ts +233 -0
- package/types/types/element_translate/typeCustomPropertyValue.i18n.d.ts +185 -0
- package/types/types/element_translate/typeDeploymentTargetContext.i18n.d.ts +318 -0
- package/types/types/element_translate/typeDeviceContext.i18n.d.ts +296 -0
- package/types/types/element_translate/typeEvent.i18n.d.ts +1096 -0
- package/types/types/element_translate/typeExecutionContext.i18n.d.ts +484 -0
- package/types/types/element_translate/typeFile.i18n.d.ts +119 -0
- package/types/types/element_translate/typeFileScreenshot.i18n.d.ts +7 -0
- package/types/types/element_translate/typeLocaleContext.i18n.d.ts +180 -0
- package/types/types/element_translate/typeObjectRepositoryElement.i18n.d.ts +135 -0
- package/types/types/element_translate/typeObjectRepositoryFolder.i18n.d.ts +85 -0
- package/types/types/element_translate/typeObjectRepositoryPage.i18n.d.ts +56 -0
- package/types/types/element_translate/typeOsContext.i18n.d.ts +296 -0
- package/types/types/element_translate/typeProject.i18n.d.ts +211 -0
- package/types/types/element_translate/typeScreenResolutionContext.i18n.d.ts +285 -0
- package/types/types/element_translate/typeTag.i18n.d.ts +122 -0
- package/types/types/element_translate/typeTagRelation.i18n.d.ts +165 -0
- package/types/types/element_translate/typeTeamDomain.i18n.d.ts +146 -0
- package/types/types/element_translate/typeTeamMember.i18n.d.ts +194 -0
- package/types/types/element_translate/typeTeamTotalStatistic.i18n.d.ts +246 -0
- package/types/types/element_translate/typeTestAccount.i18n.d.ts +194 -0
- package/types/types/element_translate/typeTestCase.i18n.d.ts +727 -0
- package/types/types/element_translate/typeTestCaseStep.i18n.d.ts +295 -0
- package/types/types/element_translate/typeTestRun.i18n.d.ts +400 -0
- package/types/types/element_translate/typeTestRunResult.i18n.d.ts +257 -0
- package/types/types/element_translate/typeTextDocument.i18n.d.ts +358 -0
- package/types/types/element_translate/typeTextDocumentFolder.i18n.d.ts +173 -0
- package/types/types/element_translate/typeUserAgentContext.i18n.d.ts +384 -0
- package/types/types/element_translate/typeUtilExecution.i18n.d.ts +465 -0
- package/types/types/element_translate/typeUtilExecutionScreenshotMulti.i18n.d.ts +686 -0
- package/types/types/element_translate/typeUtilExecutionUrlInspect.i18n.d.ts +109 -0
- package/types/types/element_translate/typeUtilExecutionUrlInspectCheck.i18n.d.ts +243 -0
- package/types/types/family_context/typeBrowserContext.d.ts +173 -0
- package/types/types/family_context/typeDeploymentTargetContext.d.ts +335 -0
- package/types/types/family_context/typeDeviceContext.d.ts +313 -0
- package/types/types/family_context/typeExecutionContext.d.ts +331 -0
- package/types/types/family_context/typeLocaleContext.d.ts +197 -0
- package/types/types/family_context/typeOsContext.d.ts +313 -0
- package/types/types/family_context/typeScreenResolutionContext.d.ts +306 -0
- package/types/types/family_context/typeUserAgentContext.d.ts +409 -0
- package/types/types/family_contracts/familyContracts.d.ts +30 -0
- package/types/types/family_contracts/typeTeamTotalStatistic.d.ts +255 -0
- package/types/types/family_elements/autotest_step_actions/autotestStepActionCatalog.d.ts +85 -0
- package/types/types/family_elements/autotest_step_actions/autotestStepActionCategory.d.ts +12 -0
- package/types/types/family_elements/autotest_step_actions/autotestStepLocatorKind.d.ts +17 -0
- package/types/types/family_elements/autotest_step_actions/autotestStepTargetNormalizer.d.ts +17 -0
- package/types/types/family_elements/autotest_step_actions/typeAutotestStepAction.d.ts +38 -0
- package/types/types/family_elements/autotest_step_actions/typeAutotestStepActionVariants.d.ts +46 -0
- package/types/types/family_elements/autotest_step_actions/typeAutotestStepLocatorAction.d.ts +8 -0
- package/types/types/family_elements/autotest_step_actions/typeAutotestStepLocatorValueAction.d.ts +8 -0
- package/types/types/family_elements/mock_data/abstract_mock_data.d.ts +8 -0
- package/types/types/family_elements/mock_data/mock_data_typeProject.d.ts +16 -0
- package/types/types/family_elements/typeActionLog.d.ts +7 -0
- package/types/types/family_elements/typeAttachment.d.ts +263 -0
- package/types/types/family_elements/typeAutomationTestEnvironment.d.ts +28 -0
- package/types/types/family_elements/typeAutomationTestPlan.d.ts +13 -0
- package/types/types/family_elements/typeAutomationTestStep.d.ts +24 -0
- package/types/types/family_elements/typeAutomationTestStepTarget.d.ts +19 -0
- package/types/types/family_elements/typeAutotestCase.d.ts +178 -0
- package/types/types/family_elements/typeAutotestResult.d.ts +109 -0
- package/types/types/family_elements/typeAutotestRun.d.ts +176 -0
- package/types/types/family_elements/typeAutotestStep.d.ts +155 -0
- package/types/types/family_elements/typeAutotestStepTarget.d.ts +19 -0
- package/types/types/family_elements/typeAutotestSuite.d.ts +64 -0
- package/types/types/family_elements/typeBug.d.ts +1097 -0
- package/types/types/family_elements/typeCustomProperty.d.ts +197 -0
- package/types/types/family_elements/typeFunctional.d.ts +48 -0
- package/types/types/family_elements/typeFunctionalGroup.d.ts +46 -0
- package/types/types/family_elements/typeMilestone.d.ts +51 -0
- package/types/types/family_elements/typeObjectRepositoryElement.d.ts +124 -0
- package/types/types/family_elements/typeObjectRepositoryFolder.d.ts +90 -0
- package/types/types/family_elements/typeObjectRepositoryPage.d.ts +69 -0
- package/types/types/family_elements/typePrice.d.ts +18 -0
- package/types/types/family_elements/typeProject.d.ts +205 -0
- package/types/types/family_elements/typeProjectDocument.d.ts +38 -0
- package/types/types/family_elements/typeProjectTestData.d.ts +20 -0
- package/types/types/family_elements/typeProjectUserRole.d.ts +25 -0
- package/types/types/family_elements/typeTag.d.ts +109 -0
- package/types/types/family_elements/typeTask.d.ts +41 -0
- package/types/types/family_elements/typeTeam.d.ts +54 -0
- package/types/types/family_elements/typeTeamDomain.d.ts +164 -0
- package/types/types/family_elements/typeTeamMember.d.ts +169 -0
- package/types/types/family_elements/typeTeamUserRole.d.ts +27 -0
- package/types/types/family_elements/typeTestAccount.d.ts +150 -0
- package/types/types/family_elements/typeTestCase.d.ts +467 -0
- package/types/types/family_elements/typeTestCaseStep.d.ts +230 -0
- package/types/types/family_elements/typeTestPlan.d.ts +8 -0
- package/types/types/family_elements/typeTestRun.d.ts +285 -0
- package/types/types/family_elements/typeTestRunResult.d.ts +183 -0
- package/types/types/family_elements/typeTestSuite.d.ts +39 -0
- package/types/types/family_elements/typeUser.d.ts +38 -0
- package/types/types/family_events/familyEvent.d.ts +30 -0
- package/types/types/family_events/typeEvent.d.ts +667 -0
- package/types/types/family_files/familyFile.d.ts +11 -0
- package/types/types/family_files/typeFile.d.ts +138 -0
- package/types/types/family_files/typeFileAutotestScreenshot.d.ts +23 -0
- package/types/types/family_files/typeFileFactory.d.ts +7 -0
- package/types/types/family_files/typeFileHtml.d.ts +6 -0
- package/types/types/family_files/typeFileJson.d.ts +6 -0
- package/types/types/family_files/typeFilePostman.d.ts +6 -0
- package/types/types/family_files/typeFileScreenshot.d.ts +32 -0
- package/types/types/family_files/typeFileVideo.d.ts +6 -0
- package/types/types/family_files/typeTextDocument.d.ts +253 -0
- package/types/types/family_files/typeTextDocumentFolder.d.ts +136 -0
- package/types/types/family_relation/typeBugRelation.d.ts +212 -0
- package/types/types/family_relation/typeCustomPropertyValue.d.ts +279 -0
- package/types/types/family_relation/typeTagRelation.d.ts +287 -0
- package/types/types/family_service/familyService.d.ts +6 -0
- package/types/types/family_service/typeFOR.d.ts +17 -0
- package/types/types/family_service/typeFilter.d.ts +20 -0
- package/types/types/family_service/typeFunctionCallback.d.ts +20 -0
- package/types/types/family_utils/familyUtil.d.ts +18 -0
- package/types/types/family_utils/typeUtilExecution.d.ts +394 -0
- package/types/types/family_utils/typeUtilExecutionEvent.d.ts +128 -0
- package/types/types/family_utils/typeUtilExecutionScreenshotMulti.d.ts +617 -0
- package/types/types/family_utils/typeUtilExecutionScreenshotMultiCapture.d.ts +26 -0
- package/types/types/family_utils/typeUtilExecutionScreenshotMultiCaptureError.d.ts +25 -0
- package/types/types/family_utils/typeUtilExecutionScreenshotMultiScreenshot.d.ts +33 -0
- package/types/types/family_utils/typeUtilExecutionUrlInspect.d.ts +227 -0
- package/types/types/family_utils/typeUtilExecutionUrlInspectCheck.d.ts +193 -0
- package/types/utils/text_document_image.d.ts +37 -0
- package/types/utils/utils.d.ts +60 -0
- package/publish/app_configuration/abstract_app_configuration.js +0 -33
- package/publish/app_configuration/locale_table_ru.js +0 -267
- package/publish/app_configuration/locale_table_tt.js +0 -267
- package/publish/app_configuration/menu_configuration_main.js +0 -133
- package/publish/app_configuration/menu_configuration_secondary.js +0 -140
- package/publish/app_configuration/table/helpers/column_factory.js +0 -172
- package/publish/app_configuration/table/helpers/column_locale.js +0 -76
- package/publish/app_configuration/table/helpers/execution_context_listing_fields.js +0 -25
- package/publish/app_configuration/table/helpers/section_registry.js +0 -81
- package/publish/app_configuration/table/helpers/table_element_models.js +0 -74
- package/publish/app_configuration/table/sections/autotest_case.js +0 -76
- package/publish/app_configuration/table/sections/autotest_result.js +0 -59
- package/publish/app_configuration/table/sections/autotest_run.js +0 -66
- package/publish/app_configuration/table/sections/autotest_step.js +0 -82
- package/publish/app_configuration/table/sections/autotest_suite.js +0 -42
- package/publish/app_configuration/table/sections/bug.js +0 -113
- package/publish/app_configuration/table/sections/bug_relation.js +0 -179
- package/publish/app_configuration/table/sections/custom_property.js +0 -95
- package/publish/app_configuration/table/sections/event.js +0 -76
- package/publish/app_configuration/table/sections/execution_context.js +0 -130
- package/publish/app_configuration/table/sections/object_repository_element.js +0 -59
- package/publish/app_configuration/table/sections/object_repository_folder.js +0 -41
- package/publish/app_configuration/table/sections/object_repository_page.js +0 -55
- package/publish/app_configuration/table/sections/project.js +0 -65
- package/publish/app_configuration/table/sections/tag.js +0 -82
- package/publish/app_configuration/table/sections/tag_relation.js +0 -309
- package/publish/app_configuration/table/sections/team.js +0 -48
- package/publish/app_configuration/table/sections/team_domain.js +0 -55
- package/publish/app_configuration/table/sections/team_member.js +0 -49
- package/publish/app_configuration/table/sections/test_account.js +0 -78
- package/publish/app_configuration/table/sections/test_case.js +0 -103
- package/publish/app_configuration/table/sections/test_case_step.js +0 -66
- package/publish/app_configuration/table/sections/test_run.js +0 -85
- package/publish/app_configuration/table/sections/test_run_result.js +0 -153
- package/publish/app_configuration/table/sections/text_document.js +0 -37
- package/publish/app_configuration/table/sections/user.js +0 -31
- package/publish/app_configuration/table/sections/util_execution.js +0 -42
- package/publish/app_configuration/table/sections/util_execution_url_inspect.js +0 -60
- package/publish/app_configuration/table/table_base_config.js +0 -135
- package/publish/app_configuration/table/table_configuration.js +0 -156
- package/publish/app_configuration/table_locale_ar.js +0 -676
- package/publish/app_configuration/text_document_editor_config.js +0 -31
- package/publish/dev.entry.js +0 -58
- package/publish/exceptions/BaseException.js +0 -96
- package/publish/services/serviceTranslate.js +0 -101
- package/publish/types/family_context/0_familyContext.js +0 -144
- package/publish/types/family_elements/0_familyGeneralElement.js +0 -683
- package/publish/types/family_elements/1_familyTestAutomation.js +0 -34
- package/publish/types/family_elements/1_familyTestDocumentation.js +0 -21
- package/publish/types/family_elements/typeProjectTestAccount.js +0 -59
- package/publish/types/family_service/typeAppConfiguration.js +0 -39
- package/publish/types/family_service/typeMenuElement.js +0 -32
- package/publish/types/family_service/typeNotification.js +0 -36
- package/publish/types/family_service/typeTableColumn.js +0 -116
- package/publish/types/family_service/typeTableConfiguration.js +0 -66
- /package/{publish → src}/api/api_abstract_reference_class.js +0 -0
- /package/{publish → src}/api/attachment_api.js +0 -0
- /package/{publish → src}/api/bug_relation_api.js +0 -0
- /package/{publish → src}/api/cache/api_search_cache.js +0 -0
- /package/{publish → src}/api/cache/index.js +0 -0
- /package/{publish → src}/api/cache/memory_cache_store.js +0 -0
- /package/{publish → src}/api/context/context_browser_api.js +0 -0
- /package/{publish → src}/api/context/context_deployment_target_api.js +0 -0
- /package/{publish → src}/api/context/context_devices_api.js +0 -0
- /package/{publish → src}/api/context/context_execution_general_api.js +0 -0
- /package/{publish → src}/api/context/context_locale_api.js +0 -0
- /package/{publish → src}/api/context/context_os_api.js +0 -0
- /package/{publish → src}/api/context/context_screen_resolution_api.js +0 -0
- /package/{publish → src}/api/context/context_user_agents_api.js +0 -0
- /package/{publish → src}/api/custom_property/custom_property_template_api.js +0 -0
- /package/{publish → src}/api/custom_property_api.js +0 -0
- /package/{publish → src}/api/custom_property_option_api.js +0 -0
- /package/{publish → src}/api/custom_property_value_api.js +0 -0
- /package/{publish → src}/api/event_api.js +0 -0
- /package/{publish → src}/api/file_app_api.js +0 -0
- /package/{publish → src}/api/service_api.js +0 -0
- /package/{publish → src}/api/tag/tag_color_api.js +0 -0
- /package/{publish → src}/api/tag/tag_template_api.js +0 -0
- /package/{publish → src}/api/tag_api.js +0 -0
- /package/{publish → src}/api/tag_relation_api.js +0 -0
- /package/{publish → src}/api/task_api.js +0 -0
- /package/{publish → src}/api/team_domain_api.js +0 -0
- /package/{publish → src}/api/test_account_api.js +0 -0
- /package/{publish → src}/api/text_document_folder_api.js +0 -0
- /package/{publish → src}/api/user_profile_api.js +0 -0
- /package/{publish → src}/api/util/browser_tools_screenshot_multi_api.js +0 -0
- /package/{publish → src}/api/util/browser_tools_util_execution_api.js +0 -0
- /package/{publish → src}/api/util/url_inspect_api.js +0 -0
- /package/{publish → src}/constants/text_document_limits.js +0 -0
- /package/{publish → src}/exceptions/ApiException.js +0 -0
- /package/{publish → src}/exceptions/GeneralException.js +0 -0
- /package/{publish → src}/services/DeveloperService.js +0 -0
- /package/{publish → src}/services/TeamService.js +0 -0
- /package/{publish → src}/services/abstractService.js +0 -0
- /package/{publish → src}/services/mock_data/MockUserService.js +0 -0
- /package/{publish → src}/types/core/1_familyContext.js +0 -0
- /package/{publish → src}/types/core/1_familyTestAutomation.js +0 -0
- /package/{publish → src}/types/core/1_familyTestDocumentation.js +0 -0
- /package/{publish → src}/types/core/type_class_resolver.js +0 -0
- /package/{publish → src}/types/element_translate/_familyContext.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/_familyUtil.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeAttachment.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeAutotestCase.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeAutotestResult.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeAutotestRun.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeAutotestStep.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeAutotestSuite.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeBrowserContext.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeBug.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeBugRelation.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeDeploymentTargetContext.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeDeviceContext.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeEvent.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeExecutionContext.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeFile.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeFileScreenshot.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeLocaleContext.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeObjectRepositoryElement.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeObjectRepositoryFolder.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeObjectRepositoryPage.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeOsContext.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeProject.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeScreenResolutionContext.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeTag.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeTagRelation.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeTeamDomain.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeTeamMember.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeTeamTotalStatistic.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeTestAccount.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeTestCase.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeTestCaseStep.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeTestRun.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeTestRunResult.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeTextDocument.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeTextDocumentFolder.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeUserAgentContext.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeUtilExecution.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeUtilExecutionScreenshotMulti.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeUtilExecutionUrlInspect.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeUtilExecutionUrlInspectCheck.i18n.js +0 -0
- /package/{publish → src}/types/family_contracts/familyContracts.js +0 -0
- /package/{publish → src}/types/family_contracts/typeTeamTotalStatistic.js +0 -0
- /package/{publish → src}/types/family_elements/autotest_step_actions/autotestStepActionCategory.js +0 -0
- /package/{publish → src}/types/family_elements/autotest_step_actions/autotestStepLocatorKind.js +0 -0
- /package/{publish → src}/types/family_elements/autotest_step_actions/autotestStepTargetNormalizer.js +0 -0
- /package/{publish → src}/types/family_elements/autotest_step_actions/typeAutotestStepActionVariants.js +0 -0
- /package/{publish → src}/types/family_elements/autotest_step_actions/typeAutotestStepLocatorAction.js +0 -0
- /package/{publish → src}/types/family_elements/autotest_step_actions/typeAutotestStepLocatorValueAction.js +0 -0
- /package/{publish → src}/types/family_elements/mock_data/abstract_mock_data.js +0 -0
- /package/{publish → src}/types/family_elements/typeActionLog.js +0 -0
- /package/{publish → src}/types/family_elements/typeAutotestSuite.js +0 -0
- /package/{publish → src}/types/family_elements/typeObjectRepositoryPage.js +0 -0
- /package/{publish → src}/types/family_elements/typeTag.js +0 -0
- /package/{publish → src}/types/family_events/familyEvent.js +0 -0
- /package/{publish → src}/types/family_files/familyFile.js +0 -0
- /package/{publish → src}/types/family_files/typeFileAutotestScreenshot.js +0 -0
- /package/{publish → src}/types/family_files/typeFileFactory.js +0 -0
- /package/{publish → src}/types/family_files/typeFileHtml.js +0 -0
- /package/{publish → src}/types/family_files/typeFileJson.js +0 -0
- /package/{publish → src}/types/family_files/typeFilePostman.js +0 -0
- /package/{publish → src}/types/family_files/typeFileScreenshot.js +0 -0
- /package/{publish → src}/types/family_files/typeFileVideo.js +0 -0
- /package/{publish → src}/types/family_service/familyService.js +0 -0
- /package/{publish → src}/types/family_utils/familyUtil.js +0 -0
- /package/{publish → src}/utils/text_document_image.js +0 -0
- /package/{publish/types → types}/family_elements/typeTeamDomain.js +0 -0
- /package/{publish/types → types}/family_utils/typeUtilExecutionUrlInspect.js +0 -0
- /package/{publish/types → types}/family_utils/typeUtilExecutionUrlInspectCheck.js +0 -0
package/README.md
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# complexqa_frontend_core 2.x
|
|
2
|
+
|
|
3
|
+
Операционный SDK ComplexQA: доменные модели (`type*`), REST-фасад `Api`, поиск (`typeFOR` / `typeFilter`), сессия (`UserService`, `TeamService`), файлы (`FileAppService`).
|
|
4
|
+
|
|
5
|
+
Слой таблиц, меню и chrome i18n живёт в хосте `web_app`, не в этом пакете.
|
|
6
|
+
|
|
7
|
+
Node.js: `>=22.22.2`.
|
|
8
|
+
|
|
9
|
+
## Установка
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install complexqa_frontend_core
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Инициализация `Api` и инъекция в типы
|
|
16
|
+
|
|
17
|
+
`new Api(...)` сам вызывает `bootstrap_type_api({ api_service })`. После этого методы экземпляра `type*` (`create()`, `search` через клиент, `delete()`) ходят в фасад без глобала `window.ApiService`.
|
|
18
|
+
|
|
19
|
+
```js
|
|
20
|
+
import { Api, typeBug, typeFOR, typeFilter, FileAppService } from 'complexqa_frontend_core';
|
|
21
|
+
|
|
22
|
+
const api = new Api({
|
|
23
|
+
host_api: 'team-slug.webapp.complexqa.com',
|
|
24
|
+
stage: 'production',
|
|
25
|
+
frontend_host: 'frontend.complexqa.com',
|
|
26
|
+
general_domain: 'webapp.complexqa.com',
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
FileAppService.bootstrap({
|
|
30
|
+
file_app_url: 'https://file-app.complexqa.com',
|
|
31
|
+
api_service: api,
|
|
32
|
+
});
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Для тестов или скрипта без конструктора `Api` тот же канал явно:
|
|
36
|
+
|
|
37
|
+
```js
|
|
38
|
+
import { bootstrap_type_api, typeBug } from 'complexqa_frontend_core';
|
|
39
|
+
|
|
40
|
+
bootstrap_type_api({
|
|
41
|
+
api_service: {
|
|
42
|
+
bug: { create: async (payload) => ({ response: payload, payload }) },
|
|
43
|
+
},
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
await new typeBug().create({ bug_title: 'From mock' });
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
`delete()` не вызывает `window.confirm`. Подтверждение - опциональный `callback.confirm`.
|
|
50
|
+
|
|
51
|
+
## Модель и поиск
|
|
52
|
+
|
|
53
|
+
```js
|
|
54
|
+
import { typeBug, typeFOR, typeFilter } from 'complexqa_frontend_core';
|
|
55
|
+
|
|
56
|
+
const bug = new typeBug({
|
|
57
|
+
bug_id: 1,
|
|
58
|
+
bug_title: 'Login',
|
|
59
|
+
project_id: 10,
|
|
60
|
+
team_id: 2,
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
bug.get_pure_data();
|
|
64
|
+
bug.get_attribute_name_translate('bug_title', 'ru');
|
|
65
|
+
|
|
66
|
+
const query = new typeFOR({
|
|
67
|
+
filters: [
|
|
68
|
+
new typeFilter({
|
|
69
|
+
object: { attribute: 'bug_status' },
|
|
70
|
+
operator: 'eq',
|
|
71
|
+
value: 'OPEN',
|
|
72
|
+
}),
|
|
73
|
+
],
|
|
74
|
+
});
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Пример в репозитории: `examples/search-create.mjs`.
|
|
78
|
+
|
|
79
|
+
## Публичные экспорты 2.x
|
|
80
|
+
|
|
81
|
+
Список имён: `tests/fixtures/public-exports.json`. Нет `TableConfiguration`, `TableBaseConfig`, `App`, `DeveloperService`, конфига редактора.
|
|
82
|
+
|
|
83
|
+
Остаётся: `Api`, `UserService`, `TeamService`, `FileAppService`, `type*` сущностей, `typeFOR` / `typeFilter`, каталог autotest step, лимиты text document, `bootstrap_type_api`.
|
package/package.json
CHANGED
|
@@ -1,18 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "complexqa_frontend_core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "core of web ",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
|
-
".":
|
|
7
|
+
".": {
|
|
8
|
+
"types": "./types/index.d.ts",
|
|
9
|
+
"import": "./src/index.js",
|
|
10
|
+
"default": "./src/index.js"
|
|
11
|
+
},
|
|
12
|
+
"./developer": {
|
|
13
|
+
"types": "./types/services/DeveloperService.d.ts",
|
|
14
|
+
"import": "./src/services/DeveloperService.js",
|
|
15
|
+
"default": "./src/services/DeveloperService.js"
|
|
16
|
+
}
|
|
8
17
|
},
|
|
9
18
|
"files": [
|
|
10
|
-
"
|
|
19
|
+
"src",
|
|
20
|
+
"types",
|
|
21
|
+
"!src/dev.entry.js"
|
|
11
22
|
],
|
|
23
|
+
"types": "./types/index.d.ts",
|
|
24
|
+
"engines": {
|
|
25
|
+
"node": ">=22.22.2"
|
|
26
|
+
},
|
|
12
27
|
"scripts": {
|
|
13
28
|
"test": "jest --config ../jest.config.cjs",
|
|
29
|
+
"build": "node --input-type=module -e \"import('./src/index.js').then(() => console.log('build ok'))\"",
|
|
14
30
|
"build:dev": "rollup -c rollup.dev.config.js",
|
|
15
|
-
"
|
|
31
|
+
"pack-smoke": "node ../scripts/pack-smoke.mjs",
|
|
32
|
+
"types": "tsc -p tsconfig.types.json"
|
|
16
33
|
},
|
|
17
34
|
"repository": {
|
|
18
35
|
"type": "git",
|
|
@@ -25,37 +42,24 @@
|
|
|
25
42
|
},
|
|
26
43
|
"homepage": "https://gitlab.com/test_software/frontend_core#readme",
|
|
27
44
|
"dependencies": {
|
|
28
|
-
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
29
|
-
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
|
|
30
|
-
"@babel/plugin-transform-modules-commonjs": "^7.24.7",
|
|
31
|
-
"@babel/plugin-transform-runtime": "^7.27.4",
|
|
32
45
|
"axios": "^1.13.0",
|
|
33
|
-
"gulp": "^5.0.0",
|
|
34
|
-
"gulp-babel": "^8.0.0",
|
|
35
|
-
"gulp-concat": "^2.6.1",
|
|
36
|
-
"gulp-if": "^3.0.0",
|
|
37
|
-
"gulp-jest": "^4.0.4",
|
|
38
|
-
"gulp-requirejs": "^1.4.0",
|
|
39
|
-
"gulp-rollup": "^2.17.0",
|
|
40
|
-
"gulp-strip-import-export": "^1.0.0",
|
|
41
|
-
"gulp-uncomment": "^0.3.0",
|
|
42
|
-
"i18next": "^23.16.8",
|
|
43
46
|
"query-string": "^9.3.1",
|
|
44
|
-
"uglify-js": "^3.19.3",
|
|
45
47
|
"underscore": "^1.13.6"
|
|
46
48
|
},
|
|
47
49
|
"devDependencies": {
|
|
48
|
-
"@rollup/plugin-inject": "^5.0.5",
|
|
49
|
-
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
50
50
|
"@babel/core": "^7.29.0",
|
|
51
|
+
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
52
|
+
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
|
|
53
|
+
"@babel/plugin-transform-modules-commonjs": "^7.24.7",
|
|
54
|
+
"@babel/plugin-transform-runtime": "^7.27.4",
|
|
51
55
|
"@babel/preset-env": "^7.29.5",
|
|
52
|
-
"
|
|
56
|
+
"@rollup/plugin-inject": "^5.0.5",
|
|
57
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
53
58
|
"babel-jest": "^30.4.1",
|
|
54
|
-
"
|
|
55
|
-
"gulp-
|
|
59
|
+
"gulp": "^5.0.0",
|
|
60
|
+
"gulp-if": "^3.0.0",
|
|
56
61
|
"jest": "^30.4.2",
|
|
57
|
-
"requirejs-babel": "^0.0.9",
|
|
58
62
|
"rollup": "^4.55.1",
|
|
59
|
-
"
|
|
63
|
+
"typescript": "~5.7.3"
|
|
60
64
|
}
|
|
61
65
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import axios from 'axios';
|
|
2
|
+
import qs from 'query-string';
|
|
1
3
|
import { ApiException } from "../exceptions/ApiException.js";
|
|
2
|
-
import { clone_object, echo, is_array } from "../utils/utils.js";
|
|
4
|
+
import { clone_object, echo, is_array, is_object } from "../utils/utils.js";
|
|
5
|
+
import { UserService } from "../services/UserService.js";
|
|
3
6
|
|
|
4
7
|
/**
|
|
5
8
|
*
|
|
@@ -13,6 +16,7 @@ export class ApiAbstractClass
|
|
|
13
16
|
parent_app;
|
|
14
17
|
host_api;
|
|
15
18
|
stage = 'production';
|
|
19
|
+
/** @type {string|false} */
|
|
16
20
|
module_prefix = false;
|
|
17
21
|
api_prefix = '';
|
|
18
22
|
method;
|
|
@@ -60,10 +64,7 @@ export class ApiAbstractClass
|
|
|
60
64
|
/**
|
|
61
65
|
*
|
|
62
66
|
* @version v.0.1 (26/05/2024)
|
|
63
|
-
* @param {object|typeFOR}
|
|
64
|
-
* @param {array} payload.filter
|
|
65
|
-
* @param {?object|undefined} payload.object
|
|
66
|
-
* @param {?object|undefined} payload.response
|
|
67
|
+
* @param {object|import('../types/family_service/typeFOR.js').typeFOR} payload
|
|
67
68
|
*/
|
|
68
69
|
async search(payload)
|
|
69
70
|
{
|
|
@@ -185,17 +186,28 @@ export class ApiAbstractClass
|
|
|
185
186
|
|
|
186
187
|
request_params = this.mixin_service_params(request_params);
|
|
187
188
|
|
|
188
|
-
//console.log({payload, request_params});
|
|
189
|
-
|
|
190
|
-
|
|
191
189
|
if (this.host_api)
|
|
192
190
|
{
|
|
193
|
-
|
|
191
|
+
const page_hostname = (typeof window !== 'undefined' && window.location)
|
|
192
|
+
? window.location.hostname
|
|
193
|
+
: '';
|
|
194
|
+
const api_hostname = String(this.host_api).split(':')[0];
|
|
195
|
+
if (!page_hostname || page_hostname !== api_hostname)
|
|
196
|
+
{
|
|
197
|
+
url = 'https://' + this.host_api + url;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
const headers = { ...(this.headers || {}) };
|
|
202
|
+
const csrf_token = UserService.get_csrf_token();
|
|
203
|
+
if (csrf_token)
|
|
204
|
+
{
|
|
205
|
+
headers['X-CSRF-TOKEN'] = csrf_token;
|
|
194
206
|
}
|
|
195
207
|
|
|
196
208
|
let request_options = {
|
|
197
209
|
method : method,
|
|
198
|
-
headers:
|
|
210
|
+
headers: headers,
|
|
199
211
|
url : url
|
|
200
212
|
};
|
|
201
213
|
|
|
@@ -18,7 +18,7 @@ export class ApiAbstractElementClass extends ApiAbstractClass
|
|
|
18
18
|
*/
|
|
19
19
|
constructor(options)
|
|
20
20
|
{
|
|
21
|
-
super();
|
|
21
|
+
super(options);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
|
|
@@ -149,6 +149,24 @@ export class ApiAbstractElementClass extends ApiAbstractClass
|
|
|
149
149
|
throw new Error('Error #10-1152 in ApiAbstractClass');
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
+
if (this.stage === 'development')
|
|
153
|
+
{
|
|
154
|
+
return {
|
|
155
|
+
response: payload,
|
|
156
|
+
payload : payload
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
let url = `/${ this.api_prefix }/${ this.module_prefix }/update`;
|
|
161
|
+
|
|
162
|
+
payload = this.handle_request_payload(payload);
|
|
163
|
+
let response = this.api_request(url, payload);
|
|
164
|
+
response = this.handle_response(response);
|
|
165
|
+
|
|
166
|
+
return {
|
|
167
|
+
response: response,
|
|
168
|
+
payload : payload
|
|
169
|
+
};
|
|
152
170
|
}
|
|
153
171
|
|
|
154
172
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ApiAbstractElementClass } from "./api_abstract_element_class";
|
|
2
|
-
import { typeAutotestCase } from "../types/family_elements/typeAutotestCase";
|
|
1
|
+
import { ApiAbstractElementClass } from "./api_abstract_element_class.js";
|
|
2
|
+
import { typeAutotestCase } from "../types/family_elements/typeAutotestCase.js";
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ApiAbstractElementClass } from "./api_abstract_element_class";
|
|
2
|
-
import { typeAutotestResult } from "../types/family_elements/typeAutotestResult";
|
|
1
|
+
import { ApiAbstractElementClass } from "./api_abstract_element_class.js";
|
|
2
|
+
import { typeAutotestResult } from "../types/family_elements/typeAutotestResult.js";
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ApiAbstractElementClass } from "./api_abstract_element_class";
|
|
2
|
-
import { typeAutotestRun } from "../types/family_elements/typeAutotestRun";
|
|
1
|
+
import { ApiAbstractElementClass } from "./api_abstract_element_class.js";
|
|
2
|
+
import { typeAutotestRun } from "../types/family_elements/typeAutotestRun.js";
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ApiAbstractElementClass } from "./api_abstract_element_class";
|
|
2
|
-
import { typeAutotestStep } from "../types/family_elements/typeAutotestStep";
|
|
1
|
+
import { ApiAbstractElementClass } from "./api_abstract_element_class.js";
|
|
2
|
+
import { typeAutotestStep } from "../types/family_elements/typeAutotestStep.js";
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ApiAbstractElementClass } from "./api_abstract_element_class";
|
|
2
|
-
import { typeAutotestSuite } from "../types/family_elements/typeAutotestSuite";
|
|
1
|
+
import { ApiAbstractElementClass } from "./api_abstract_element_class.js";
|
|
2
|
+
import { typeAutotestSuite } from "../types/family_elements/typeAutotestSuite.js";
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ApiAbstractElementClass } from "./api_abstract_element_class";
|
|
2
|
-
import { typeFunctional } from "../types/family_elements/typeFunctional";
|
|
1
|
+
import { ApiAbstractElementClass } from "./api_abstract_element_class.js";
|
|
2
|
+
import { typeFunctional } from "../types/family_elements/typeFunctional.js";
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { TestPlanApi } from "./test_plan_api";
|
|
2
|
-
import { ProjectApi } from "./project_api";
|
|
3
|
-
import { ServiceApi } from "./service_api";
|
|
4
|
-
import { TestCaseApi } from "./test_case_api";
|
|
5
|
-
import { TestSuiteApi } from "./test_suite_api";
|
|
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
6
|
import { TestCaseStepApi } from "./test_case_step_api.js";
|
|
7
7
|
import { TeamManagementApi } from "./team_management_api.js";
|
|
8
8
|
import { TeamMemberApi } from "./team_member_api.js";
|
|
@@ -47,6 +47,7 @@ import { AutotestResultApi } from "./autotest_result_api.js";
|
|
|
47
47
|
import { ObjectRepositoryFolderApi } from "./object_repository_folder_api.js";
|
|
48
48
|
import { ObjectRepositoryPageApi } from "./object_repository_page_api.js";
|
|
49
49
|
import { ObjectRepositoryElementApi } from "./object_repository_element_api.js";
|
|
50
|
+
import { bootstrap_type_api } from "./typeApiBinding.js";
|
|
50
51
|
|
|
51
52
|
/**
|
|
52
53
|
* Обертка над axios
|
|
@@ -75,9 +76,13 @@ export class Api
|
|
|
75
76
|
project;
|
|
76
77
|
service;
|
|
77
78
|
|
|
79
|
+
/** @type {string|false} */
|
|
78
80
|
host_api = false;
|
|
81
|
+
/** @type {string|false} */
|
|
79
82
|
frontend_host = false;
|
|
83
|
+
/** @type {string|false} */
|
|
80
84
|
general_domain = false;
|
|
85
|
+
/** @type {string|false} */
|
|
81
86
|
site_section = false;
|
|
82
87
|
|
|
83
88
|
/** @type {EventApi} */
|
|
@@ -139,6 +144,7 @@ export class Api
|
|
|
139
144
|
this.init_options = init_options;
|
|
140
145
|
this.constructor._instance = this;
|
|
141
146
|
|
|
147
|
+
bootstrap_type_api({ api_service: this });
|
|
142
148
|
|
|
143
149
|
this.#bootstrap();
|
|
144
150
|
return this.constructor._instance;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ApiAbstractElementClass } from "./api_abstract_element_class";
|
|
2
|
-
import { typeObjectRepositoryElement } from "../types/family_elements/typeObjectRepositoryElement";
|
|
1
|
+
import { ApiAbstractElementClass } from "./api_abstract_element_class.js";
|
|
2
|
+
import { typeObjectRepositoryElement } from "../types/family_elements/typeObjectRepositoryElement.js";
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ApiAbstractElementClass } from "./api_abstract_element_class";
|
|
2
|
-
import { typeObjectRepositoryFolder } from "../types/family_elements/typeObjectRepositoryFolder";
|
|
1
|
+
import { ApiAbstractElementClass } from "./api_abstract_element_class.js";
|
|
2
|
+
import { typeObjectRepositoryFolder } from "../types/family_elements/typeObjectRepositoryFolder.js";
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ApiAbstractElementClass } from "./api_abstract_element_class";
|
|
2
|
-
import { typeObjectRepositoryPage } from "../types/family_elements/typeObjectRepositoryPage";
|
|
1
|
+
import { ApiAbstractElementClass } from "./api_abstract_element_class.js";
|
|
2
|
+
import { typeObjectRepositoryPage } from "../types/family_elements/typeObjectRepositoryPage.js";
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ApiAbstractElementClass } from "./api_abstract_element_class";
|
|
2
|
-
import { typeProject } from "../types/family_elements/typeProject";
|
|
1
|
+
import { ApiAbstractElementClass } from "./api_abstract_element_class.js";
|
|
2
|
+
import { typeProject } from "../types/family_elements/typeProject.js";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
*
|
|
@@ -15,7 +15,7 @@ export class PublicTextDocumentApi extends ApiAbstractClass
|
|
|
15
15
|
* GET|POST /web_api/public/text_document/view
|
|
16
16
|
*
|
|
17
17
|
* @param {object} payload token, password?
|
|
18
|
-
* @returns {Promise<{payload:
|
|
18
|
+
* @returns {Promise<{payload: any, response: any}>}
|
|
19
19
|
*/
|
|
20
20
|
async view(payload)
|
|
21
21
|
{
|
|
@@ -41,7 +41,7 @@ export class PublicTextDocumentApi extends ApiAbstractClass
|
|
|
41
41
|
* POST /web_api/public/text_document/report
|
|
42
42
|
*
|
|
43
43
|
* @param {object} payload token, reason, reporter_email, password?
|
|
44
|
-
* @returns {Promise<{payload:
|
|
44
|
+
* @returns {Promise<{payload: any, response: any}>}
|
|
45
45
|
*/
|
|
46
46
|
async report(payload)
|
|
47
47
|
{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ApiAbstractElementClass } from "./api_abstract_element_class";
|
|
2
|
-
import { typeTeamMember } from "../types/family_elements/typeTeamMember";
|
|
1
|
+
import { ApiAbstractElementClass } from "./api_abstract_element_class.js";
|
|
2
|
+
import { typeTeamMember } from "../types/family_elements/typeTeamMember.js";
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ApiAbstractElementClass } from "./api_abstract_element_class";
|
|
2
|
-
import { typeTestCase } from "../types/family_elements/typeTestCase";
|
|
1
|
+
import { ApiAbstractElementClass } from "./api_abstract_element_class.js";
|
|
2
|
+
import { typeTestCase } from "../types/family_elements/typeTestCase.js";
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { typeTestCaseStep } from "../types/family_elements/typeTestCaseStep";
|
|
2
|
-
import { ApiAbstractElementClass } from "./api_abstract_element_class";
|
|
1
|
+
import { typeTestCaseStep } from "../types/family_elements/typeTestCaseStep.js";
|
|
2
|
+
import { ApiAbstractElementClass } from "./api_abstract_element_class.js";
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ApiAbstractElementClass } from "./api_abstract_element_class";
|
|
2
|
-
import { typeTestPlan } from "../types/family_elements/typeTestPlan";
|
|
1
|
+
import { ApiAbstractElementClass } from "./api_abstract_element_class.js";
|
|
2
|
+
import { typeTestPlan } from "../types/family_elements/typeTestPlan.js";
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ApiAbstractElementClass } from "./api_abstract_element_class";
|
|
2
|
-
import { typeTestRun } from "../types/family_elements/typeTestRun";
|
|
1
|
+
import { ApiAbstractElementClass } from "./api_abstract_element_class.js";
|
|
2
|
+
import { typeTestRun } from "../types/family_elements/typeTestRun.js";
|
|
3
3
|
|
|
4
4
|
export class TestRunApi extends ApiAbstractElementClass
|
|
5
5
|
{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ApiAbstractElementClass } from "./api_abstract_element_class";
|
|
2
|
-
import { typeTestRunResult } from "../types/family_elements/typeTestRunResult";
|
|
1
|
+
import { ApiAbstractElementClass } from "./api_abstract_element_class.js";
|
|
2
|
+
import { typeTestRunResult } from "../types/family_elements/typeTestRunResult.js";
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ApiAbstractElementClass } from "./api_abstract_element_class";
|
|
2
|
-
import { typeTestSuite } from "../types/family_elements/typeTestSuite";
|
|
1
|
+
import { ApiAbstractElementClass } from "./api_abstract_element_class.js";
|
|
2
|
+
import { typeTestSuite } from "../types/family_elements/typeTestSuite.js";
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -19,7 +19,7 @@ export class TextDocumentApi extends ApiAbstractElementClass
|
|
|
19
19
|
* GET /web_api/text_document/list_project_images?project_id=
|
|
20
20
|
*
|
|
21
21
|
* @param {object} payload
|
|
22
|
-
* @returns {Promise<{payload:
|
|
22
|
+
* @returns {Promise<{payload: any, response: any}>}
|
|
23
23
|
*/
|
|
24
24
|
async list_project_images(payload)
|
|
25
25
|
{
|
|
@@ -40,7 +40,7 @@ export class TextDocumentApi extends ApiAbstractElementClass
|
|
|
40
40
|
* GET /web_api/text_document/load_body?text_document_id=
|
|
41
41
|
*
|
|
42
42
|
* @param {object} payload
|
|
43
|
-
* @returns {Promise<{payload:
|
|
43
|
+
* @returns {Promise<{payload: any, response: any}>}
|
|
44
44
|
*/
|
|
45
45
|
async load_body(payload)
|
|
46
46
|
{
|
|
@@ -61,7 +61,7 @@ export class TextDocumentApi extends ApiAbstractElementClass
|
|
|
61
61
|
* GET /web_api/text_document/list_versions?text_document_id=
|
|
62
62
|
*
|
|
63
63
|
* @param {object} payload
|
|
64
|
-
* @returns {Promise<{payload:
|
|
64
|
+
* @returns {Promise<{payload: any, response: any}>}
|
|
65
65
|
*/
|
|
66
66
|
async list_versions(payload)
|
|
67
67
|
{
|
|
@@ -82,7 +82,7 @@ export class TextDocumentApi extends ApiAbstractElementClass
|
|
|
82
82
|
* POST /web_api/text_document/restore_version
|
|
83
83
|
*
|
|
84
84
|
* @param {object} payload
|
|
85
|
-
* @returns {Promise<{payload:
|
|
85
|
+
* @returns {Promise<{payload: any, response: any}>}
|
|
86
86
|
*/
|
|
87
87
|
async restore_version(payload)
|
|
88
88
|
{
|
|
@@ -103,7 +103,7 @@ export class TextDocumentApi extends ApiAbstractElementClass
|
|
|
103
103
|
* POST /web_api/text_document/enforce_version_retention
|
|
104
104
|
*
|
|
105
105
|
* @param {object} payload
|
|
106
|
-
* @returns {Promise<{payload:
|
|
106
|
+
* @returns {Promise<{payload: any, response: any}>}
|
|
107
107
|
*/
|
|
108
108
|
async enforce_version_retention(payload)
|
|
109
109
|
{
|
|
@@ -124,7 +124,7 @@ export class TextDocumentApi extends ApiAbstractElementClass
|
|
|
124
124
|
* GET /web_api/text_document/public_share_status?text_document_id=
|
|
125
125
|
*
|
|
126
126
|
* @param {object} payload
|
|
127
|
-
* @returns {Promise<{payload:
|
|
127
|
+
* @returns {Promise<{payload: any, response: any}>}
|
|
128
128
|
*/
|
|
129
129
|
async public_share_status(payload)
|
|
130
130
|
{
|
|
@@ -145,7 +145,7 @@ export class TextDocumentApi extends ApiAbstractElementClass
|
|
|
145
145
|
* POST /web_api/text_document/create_public_share
|
|
146
146
|
*
|
|
147
147
|
* @param {object} payload
|
|
148
|
-
* @returns {Promise<{payload:
|
|
148
|
+
* @returns {Promise<{payload: any, response: any}>}
|
|
149
149
|
*/
|
|
150
150
|
async create_public_share(payload)
|
|
151
151
|
{
|
|
@@ -166,7 +166,7 @@ export class TextDocumentApi extends ApiAbstractElementClass
|
|
|
166
166
|
* POST /web_api/text_document/revoke_public_share
|
|
167
167
|
*
|
|
168
168
|
* @param {object} payload
|
|
169
|
-
* @returns {Promise<{payload:
|
|
169
|
+
* @returns {Promise<{payload: any, response: any}>}
|
|
170
170
|
*/
|
|
171
171
|
async revoke_public_share(payload)
|
|
172
172
|
{
|
|
@@ -187,7 +187,7 @@ export class TextDocumentApi extends ApiAbstractElementClass
|
|
|
187
187
|
* GET /web_api/text_document/public_share_analytics?text_document_id=
|
|
188
188
|
*
|
|
189
189
|
* @param {object} payload
|
|
190
|
-
* @returns {Promise<{payload:
|
|
190
|
+
* @returns {Promise<{payload: any, response: any}>}
|
|
191
191
|
*/
|
|
192
192
|
async public_share_analytics(payload)
|
|
193
193
|
{
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Явная инъекция фасада `Api` в слой типов.
|
|
3
|
+
* Без глобала `ApiService`. `new Api(...)` вызывает `bootstrap_type_api` сам.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
let api_service = false;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @param {object} [options]
|
|
10
|
+
* @param {import('./index.js').Api|false} [options.api_service]
|
|
11
|
+
*/
|
|
12
|
+
export function bootstrap_type_api(options = {})
|
|
13
|
+
{
|
|
14
|
+
if (Object.prototype.hasOwnProperty.call(options, 'api_service'))
|
|
15
|
+
{
|
|
16
|
+
api_service = options.api_service || false;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @returns {import('./index.js').Api}
|
|
22
|
+
*/
|
|
23
|
+
export function get_type_api_service()
|
|
24
|
+
{
|
|
25
|
+
if (api_service)
|
|
26
|
+
{
|
|
27
|
+
return api_service;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
if (typeof globalThis !== 'undefined' && globalThis.ApiService)
|
|
31
|
+
{
|
|
32
|
+
return globalThis.ApiService;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
throw new Error('Api is not bootstrapped. Construct Api or call bootstrap_type_api({ api_service }).');
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function reset_type_api()
|
|
39
|
+
{
|
|
40
|
+
api_service = false;
|
|
41
|
+
}
|