complexqa_frontend_core 1.31.6 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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/src/api/bug_api.js +40 -0
- 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/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 +1 -0
- 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 +6 -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 +1 -0
- 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 +15 -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/api/bug_api.js +0 -18
- 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/typeCustomProperty.i18n.js +0 -0
- /package/{publish → src}/types/element_translate/typeCustomPropertyValue.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
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* File App orchestration: bootstrap URL, upload, URL refresh.
|
|
3
|
+
*
|
|
4
|
+
* @see docs/File App Layer/README.MD
|
|
5
|
+
*
|
|
6
|
+
* @version v.1.0 (28/06/2026)
|
|
7
|
+
*/
|
|
8
|
+
export class FileAppService extends abstractService {
|
|
9
|
+
static file_app_url: boolean;
|
|
10
|
+
static api_service: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* @param {object} options
|
|
13
|
+
* @param {string} options.file_app_url
|
|
14
|
+
* @param {import('../api/index.js').Api} [options.api_service]
|
|
15
|
+
*/
|
|
16
|
+
static bootstrap(options?: {
|
|
17
|
+
file_app_url: string;
|
|
18
|
+
api_service?: import("../api/index.js").Api;
|
|
19
|
+
}): void;
|
|
20
|
+
/**
|
|
21
|
+
* @returns {string|false}
|
|
22
|
+
*/
|
|
23
|
+
static get_file_app_url(): string | false;
|
|
24
|
+
/**
|
|
25
|
+
* @returns {import('../api/index.js').Api}
|
|
26
|
+
*/
|
|
27
|
+
static "__#2@#get_api_service"(): import("../api/index.js").Api;
|
|
28
|
+
static "__#2@#ensure_file_app_url_from_token"(token_data: any): void;
|
|
29
|
+
/**
|
|
30
|
+
* Whether entity_type is present for File App binding.
|
|
31
|
+
* Empty / null / 0 → omit from token and upload init.
|
|
32
|
+
*
|
|
33
|
+
* @param {*} value
|
|
34
|
+
* @returns {boolean}
|
|
35
|
+
*/
|
|
36
|
+
static "__#2@#has_entity_type"(value: any): boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Whether entity_id is present for File App binding.
|
|
39
|
+
* Empty / null / 0 / NaN → omit from token and upload init.
|
|
40
|
+
*
|
|
41
|
+
* @param {*} value
|
|
42
|
+
* @returns {boolean}
|
|
43
|
+
*/
|
|
44
|
+
static "__#2@#has_entity_id"(value: any): boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Upload browser File/Blob to File App (token via Main App bridge).
|
|
47
|
+
*
|
|
48
|
+
* @param {object} payload
|
|
49
|
+
* @param {File|Blob} payload.file
|
|
50
|
+
* @param {string} [payload.entity_type] — omit / null / 0 for unbound upload (attachments)
|
|
51
|
+
* @param {number} [payload.entity_id] — omit / null / 0 for unbound upload (attachments)
|
|
52
|
+
* @param {string} payload.category
|
|
53
|
+
* @param {string} [payload.original_name]
|
|
54
|
+
* @param {string} [payload.file_uuid] — re-upload / new version for existing file
|
|
55
|
+
*
|
|
56
|
+
* @returns {Promise<import('../types/family_files/typeFile.js').typeFile>}
|
|
57
|
+
*/
|
|
58
|
+
static upload_file(payload: {
|
|
59
|
+
file: File | Blob;
|
|
60
|
+
entity_type?: string;
|
|
61
|
+
entity_id?: number;
|
|
62
|
+
category: string;
|
|
63
|
+
original_name?: string;
|
|
64
|
+
file_uuid?: string;
|
|
65
|
+
}): Promise<import("../types/family_files/typeFile.js").typeFile>;
|
|
66
|
+
/**
|
|
67
|
+
* List files attached to entity via Main App bridge.
|
|
68
|
+
*
|
|
69
|
+
* @param {object} payload
|
|
70
|
+
* @param {string} payload.entity_type
|
|
71
|
+
* @param {number} payload.entity_id
|
|
72
|
+
* @param {string} [payload.category]
|
|
73
|
+
*
|
|
74
|
+
* @returns {Promise<any>}
|
|
75
|
+
*/
|
|
76
|
+
static list_entity_files(payload: {
|
|
77
|
+
entity_type: string;
|
|
78
|
+
entity_id: number;
|
|
79
|
+
category?: string;
|
|
80
|
+
}): Promise<any>;
|
|
81
|
+
/**
|
|
82
|
+
* Refresh presigned URL via Main App bridge (lazy fallback when details wire expired).
|
|
83
|
+
*
|
|
84
|
+
* @param {string} file_uuid
|
|
85
|
+
* @param {'inline'|'attachment'} [disposition]
|
|
86
|
+
*
|
|
87
|
+
* @returns {Promise<any>}
|
|
88
|
+
*/
|
|
89
|
+
static refresh_file_access_url(file_uuid: string, disposition?: "inline" | "attachment"): Promise<any>;
|
|
90
|
+
/**
|
|
91
|
+
* Batch refresh presigned URLs (one token on Main App).
|
|
92
|
+
*
|
|
93
|
+
* @param {string[]} file_uuids
|
|
94
|
+
* @param {'inline'|'attachment'} [disposition]
|
|
95
|
+
*
|
|
96
|
+
* @returns {Promise<Record<string, { preview_url?: string, download_url?: string, preview_url_expires_at?: string|false, download_url_expires_at?: string|false, mime_type?: string|false }>>}
|
|
97
|
+
*/
|
|
98
|
+
static refresh_file_access_urls_batch(file_uuids: string[], disposition?: "inline" | "attachment"): Promise<Record<string, {
|
|
99
|
+
preview_url?: string;
|
|
100
|
+
download_url?: string;
|
|
101
|
+
preview_url_expires_at?: string | false;
|
|
102
|
+
download_url_expires_at?: string | false;
|
|
103
|
+
mime_type?: string | false;
|
|
104
|
+
}>>;
|
|
105
|
+
/**
|
|
106
|
+
* Team / project Files listing.
|
|
107
|
+
*
|
|
108
|
+
* @param {object} [payload]
|
|
109
|
+
* @param {number} [payload.project_id]
|
|
110
|
+
*
|
|
111
|
+
* @returns {Promise<any>}
|
|
112
|
+
*/
|
|
113
|
+
static list_team_files(payload?: {
|
|
114
|
+
project_id?: number;
|
|
115
|
+
}): Promise<any>;
|
|
116
|
+
/**
|
|
117
|
+
* Soft-delete many files (also clears attachment links on Main).
|
|
118
|
+
*
|
|
119
|
+
* @param {string[]} file_uuids
|
|
120
|
+
*
|
|
121
|
+
* @returns {Promise<any>}
|
|
122
|
+
*/
|
|
123
|
+
static delete_files(file_uuids: string[]): Promise<any>;
|
|
124
|
+
/**
|
|
125
|
+
* @param {string} file_uuid
|
|
126
|
+
*
|
|
127
|
+
* @returns {Promise<any>}
|
|
128
|
+
*/
|
|
129
|
+
static delete_file(file_uuid: string): Promise<any>;
|
|
130
|
+
}
|
|
131
|
+
import { abstractService } from "./abstractService.js";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @version v.1.0 (11/03/2026)
|
|
4
|
+
*/
|
|
5
|
+
export class TeamService extends abstractService {
|
|
6
|
+
static team_members: boolean;
|
|
7
|
+
static team_id: boolean;
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @version v.1.0 (11/03/2026)
|
|
11
|
+
* @returns {false|number}
|
|
12
|
+
*/
|
|
13
|
+
static get_team_members(): false | number;
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @version v.1.0 (11/03/2026)
|
|
17
|
+
* @param {object|typeUser} team_member
|
|
18
|
+
*/
|
|
19
|
+
static add_team_member(team_member: object | typeUser): void;
|
|
20
|
+
}
|
|
21
|
+
import { abstractService } from "./abstractService.js";
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Сервис данных по текущему пользователю
|
|
3
|
+
*
|
|
4
|
+
* @version v.1.1 (27/07/2025)
|
|
5
|
+
*/
|
|
6
|
+
export class UserService extends abstractService {
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* @type {false|number}
|
|
10
|
+
*/
|
|
11
|
+
static current_user_id: false | number;
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @deprecated
|
|
15
|
+
* @type {false|string}
|
|
16
|
+
*/
|
|
17
|
+
static user_name: false | string;
|
|
18
|
+
static first_name: boolean;
|
|
19
|
+
static last_name: boolean;
|
|
20
|
+
static user_status: boolean;
|
|
21
|
+
static email: boolean;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {false|number}
|
|
25
|
+
*/
|
|
26
|
+
static current_team_id: false | number;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {false|string}
|
|
30
|
+
*/
|
|
31
|
+
static current_team_slug: false | string;
|
|
32
|
+
/**
|
|
33
|
+
* member_role of the current user in current_team_id: ADMINISTRATOR | MEMBER | READONLY.
|
|
34
|
+
* SPA bootstrap: auth/common_page.blade.php from team_members join in get_user_teams().
|
|
35
|
+
*
|
|
36
|
+
* @type {false|string}
|
|
37
|
+
*/
|
|
38
|
+
static current_member_role: false | string;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {false|array<typeTeam>}
|
|
42
|
+
*/
|
|
43
|
+
static user_teams: false | array<typeTeam>;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {array<string>}
|
|
47
|
+
*/
|
|
48
|
+
static roles: array<string>;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
*/
|
|
53
|
+
static current_language: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {false|string}
|
|
57
|
+
*/
|
|
58
|
+
static csrf_token: false | string;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {false|string}
|
|
62
|
+
*/
|
|
63
|
+
static web_app_domain: false | string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
*/
|
|
68
|
+
static start_page: string;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @version v.1.1 (27/07/2025)
|
|
72
|
+
* @returns {false|string}
|
|
73
|
+
*/
|
|
74
|
+
static get_csrf_token(): false | string;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @version v.1.1 (27/07/2025)
|
|
78
|
+
* @param {string} csrf_token
|
|
79
|
+
*/
|
|
80
|
+
static set_csrf_token(csrf_token: string): void;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @version v.1.1 (27/07/2025)
|
|
84
|
+
* @returns {false|number}
|
|
85
|
+
*/
|
|
86
|
+
static get_current_user_id(): false | number;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @version v.1.1 (27/07/2025)
|
|
90
|
+
* @param {number} current_user_id
|
|
91
|
+
*/
|
|
92
|
+
static set_current_user_id(current_user_id: number): void;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @version v.1.1 (27/07/2025)
|
|
96
|
+
* @returns {false|string}
|
|
97
|
+
*/
|
|
98
|
+
static get_current_team_slug(): false | string;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @version v.1.1 (27/07/2025)
|
|
102
|
+
* @param {string} current_team_slug
|
|
103
|
+
*/
|
|
104
|
+
static set_current_team_slug(current_team_slug: string): void;
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @version v.1.0 (19/03/2026)
|
|
108
|
+
* @returns {false|string}
|
|
109
|
+
*/
|
|
110
|
+
static get_first_name(): false | string;
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* @version v.1.0 (19/03/2026)
|
|
114
|
+
* @param {string} first_name
|
|
115
|
+
*/
|
|
116
|
+
static set_first_name(first_name: string): void;
|
|
117
|
+
/**
|
|
118
|
+
*
|
|
119
|
+
* @version v.1.0 (19/03/2026)
|
|
120
|
+
* @returns {false|string}
|
|
121
|
+
*/
|
|
122
|
+
static get_last_name(): false | string;
|
|
123
|
+
/**
|
|
124
|
+
*
|
|
125
|
+
* @version v.1.0 (19/03/2026)
|
|
126
|
+
* @param {string} last_name
|
|
127
|
+
*/
|
|
128
|
+
static set_last_name(last_name: string): void;
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
* @version v.1.0 (19/03/2026)
|
|
132
|
+
* @returns {false|string}
|
|
133
|
+
*/
|
|
134
|
+
static get_user_status(): false | string;
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
* @version v.1.0 (19/03/2026)
|
|
138
|
+
* @param {string} user_status
|
|
139
|
+
*/
|
|
140
|
+
static set_user_status(user_status: string): void;
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @version v.1.0 (19/03/2026)
|
|
144
|
+
* @returns {false|string}
|
|
145
|
+
*/
|
|
146
|
+
static get_email(): false | string;
|
|
147
|
+
/**
|
|
148
|
+
*
|
|
149
|
+
* @version v.1.0 (19/03/2026)
|
|
150
|
+
* @param {string} email
|
|
151
|
+
*/
|
|
152
|
+
static set_email(email: string): void;
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
* @version v.1.1 (27/07/2025)
|
|
156
|
+
* @returns {false|number}
|
|
157
|
+
*/
|
|
158
|
+
static get_current_team_id(): false | number;
|
|
159
|
+
/**
|
|
160
|
+
*
|
|
161
|
+
* @version v.1.1 (27/07/2025)
|
|
162
|
+
* @param {number} current_team_id
|
|
163
|
+
*/
|
|
164
|
+
static set_current_team_id(current_team_id: number): void;
|
|
165
|
+
/**
|
|
166
|
+
*
|
|
167
|
+
* @version v.1.1 (27/07/2025)
|
|
168
|
+
* @returns {false|Array<typeTeam>}
|
|
169
|
+
*/
|
|
170
|
+
static get_user_teams(): false | Array<typeTeam>;
|
|
171
|
+
/**
|
|
172
|
+
*
|
|
173
|
+
* @version v.1.1 (27/07/2025)
|
|
174
|
+
* @param {Array<typeTeam>} user_teams
|
|
175
|
+
*/
|
|
176
|
+
static set_user_teams(user_teams: Array<typeTeam>): void;
|
|
177
|
+
/**
|
|
178
|
+
*
|
|
179
|
+
* @version v.1.1 (27/07/2025)
|
|
180
|
+
* @param {typeTeam} user_team
|
|
181
|
+
*/
|
|
182
|
+
static add_user_teams(user_team: typeTeam): void;
|
|
183
|
+
/**
|
|
184
|
+
*
|
|
185
|
+
* @version v.1.1 (27/07/2025)
|
|
186
|
+
* @returns {Array<string>}
|
|
187
|
+
*/
|
|
188
|
+
static get_roles(): Array<string>;
|
|
189
|
+
/**
|
|
190
|
+
*
|
|
191
|
+
* @version v.1.1 (27/07/2025)
|
|
192
|
+
* @param {Array<string>} roles
|
|
193
|
+
*/
|
|
194
|
+
static set_roles(roles: Array<string>): void;
|
|
195
|
+
/**
|
|
196
|
+
*
|
|
197
|
+
* @version v.1.0 (25/04/2026)
|
|
198
|
+
* @param {string} role
|
|
199
|
+
*/
|
|
200
|
+
static add_role(role: string): void;
|
|
201
|
+
/**
|
|
202
|
+
*
|
|
203
|
+
* @version v.1.0 (25/04/2026)
|
|
204
|
+
* @param role
|
|
205
|
+
* @returns {boolean}
|
|
206
|
+
*/
|
|
207
|
+
static has_role(role: any): boolean;
|
|
208
|
+
/**
|
|
209
|
+
*
|
|
210
|
+
* @version v.1.1 (27/07/2025)
|
|
211
|
+
* @returns {string}
|
|
212
|
+
*/
|
|
213
|
+
static get_current_language(): string;
|
|
214
|
+
/**
|
|
215
|
+
*
|
|
216
|
+
* @version v.1.1 (27/07/2025)
|
|
217
|
+
* @param {string} current_language
|
|
218
|
+
*/
|
|
219
|
+
static set_current_language(current_language: string): void;
|
|
220
|
+
/**
|
|
221
|
+
*
|
|
222
|
+
* @version v.1.1 (22/02/2026)
|
|
223
|
+
* @param {string} start_page
|
|
224
|
+
*/
|
|
225
|
+
static set_start_page(start_page: string): void;
|
|
226
|
+
/**
|
|
227
|
+
*
|
|
228
|
+
* @version v.1.2 (19/03/2026)
|
|
229
|
+
*/
|
|
230
|
+
static get_start_page(): string;
|
|
231
|
+
}
|
|
232
|
+
import { abstractService } from "./abstractService.js";
|
|
233
|
+
import { typeTeam } from "../types/family_elements/typeTeam.js";
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Базовый абстрактный класс для всех типов
|
|
3
|
+
*
|
|
4
|
+
* @version v.0.2 (12/06/2025)
|
|
5
|
+
*/
|
|
6
|
+
export class familyGeneralElement {
|
|
7
|
+
/**
|
|
8
|
+
* @param {object} [options]
|
|
9
|
+
* @param {import('../../api/index.js').Api|false} [options.api_service]
|
|
10
|
+
*/
|
|
11
|
+
static bootstrap(options?: {
|
|
12
|
+
api_service?: import("../../api/index.js").Api | false;
|
|
13
|
+
}): void;
|
|
14
|
+
/** @type {string|false} */
|
|
15
|
+
primary_key: string | false;
|
|
16
|
+
/** @type {string[]|false} */
|
|
17
|
+
create_scheme: string[] | false;
|
|
18
|
+
/** @type {object|false} */
|
|
19
|
+
structure_scheme: object | false;
|
|
20
|
+
/** @type {Record<string, string[]>|false} */
|
|
21
|
+
available_enum_values: Record<string, string[]> | false;
|
|
22
|
+
/** @type {string|false} */
|
|
23
|
+
api_key: string | false;
|
|
24
|
+
attribute_name_translate_matrix: {
|
|
25
|
+
en: {};
|
|
26
|
+
ru: {};
|
|
27
|
+
de: {};
|
|
28
|
+
ar: {};
|
|
29
|
+
es: {};
|
|
30
|
+
fr: {};
|
|
31
|
+
hy: {};
|
|
32
|
+
it: {};
|
|
33
|
+
pl: {};
|
|
34
|
+
pt: {};
|
|
35
|
+
tt: {};
|
|
36
|
+
};
|
|
37
|
+
/** @type {Record<string, Record<string, string>>|false} */
|
|
38
|
+
enum_value_translate_matrix: Record<string, Record<string, string>> | false;
|
|
39
|
+
/**
|
|
40
|
+
* @returns {import('../../api/api_abstract_class.js').ApiAbstractClass}
|
|
41
|
+
*/
|
|
42
|
+
get_api_client(): import("../../api/api_abstract_class.js").ApiAbstractClass;
|
|
43
|
+
/***********************************************/
|
|
44
|
+
/***********************************************/
|
|
45
|
+
/***********************************************/
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @version v.0.1 (26/05/2024)
|
|
49
|
+
* @returns {string}
|
|
50
|
+
*/
|
|
51
|
+
get_primary_key(): string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @version v.0.1 (14/03/2026)
|
|
55
|
+
* @return {string|false}
|
|
56
|
+
*/
|
|
57
|
+
get_primary_key_value(): string | false;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @version v.0.1 (27/06/2024)
|
|
61
|
+
* @returns {array<familyGeneralElement>}
|
|
62
|
+
* @param {number} count
|
|
63
|
+
*/
|
|
64
|
+
get_random_demo_data(count: number): array<familyGeneralElement>;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @returns {familyGeneralElement}
|
|
68
|
+
*/
|
|
69
|
+
get_demo_row(): familyGeneralElement;
|
|
70
|
+
/**
|
|
71
|
+
* @param {string} attribute
|
|
72
|
+
* @returns {string[]|false}
|
|
73
|
+
*/
|
|
74
|
+
get_available_enum_values(attribute: string): string[] | false;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @param attribute
|
|
78
|
+
* @returns {array|false}
|
|
79
|
+
*/
|
|
80
|
+
get_attribute_structure_scheme(attribute: any): any[] | false;
|
|
81
|
+
/**
|
|
82
|
+
* Токен целевого типа для FK/reference-атрибута (`typeBrowserContext`, …).
|
|
83
|
+
*
|
|
84
|
+
* @param {string} attribute
|
|
85
|
+
* @returns {string|false}
|
|
86
|
+
*/
|
|
87
|
+
get_attribute_reference_type_token(attribute: string): string | false;
|
|
88
|
+
/**
|
|
89
|
+
* @param {string} attribute
|
|
90
|
+
* @returns {boolean}
|
|
91
|
+
*/
|
|
92
|
+
is_reference_attribute(attribute: string): boolean;
|
|
93
|
+
/**
|
|
94
|
+
* Метаданные reference из целевого типа (api, primary_key, search).
|
|
95
|
+
*
|
|
96
|
+
* @param {string} attribute
|
|
97
|
+
* @returns {object|false}
|
|
98
|
+
*/
|
|
99
|
+
get_attribute_reference_meta(attribute: string): object | false;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @version v.0.1 (26/05/2024)
|
|
103
|
+
*/
|
|
104
|
+
get_data(): boolean;
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @version v.0.1 (26/05/2024)
|
|
108
|
+
*/
|
|
109
|
+
get_pure_data(): boolean;
|
|
110
|
+
/**
|
|
111
|
+
* @todo - сделать нормализация по create scheme с валидацией
|
|
112
|
+
*
|
|
113
|
+
* @version v.0.1 (26/01/2025)
|
|
114
|
+
*
|
|
115
|
+
* @param payload
|
|
116
|
+
* @returns {*}
|
|
117
|
+
*/
|
|
118
|
+
normalize_payload(payload: any): any;
|
|
119
|
+
get_editable_attributes(): void;
|
|
120
|
+
is_editable_attribute(attribute: any): void;
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @version v.1.0 (14/03/2026)
|
|
124
|
+
*
|
|
125
|
+
* @param {string} attribute_name
|
|
126
|
+
* @param {string} lang
|
|
127
|
+
*
|
|
128
|
+
* @return {string}
|
|
129
|
+
*/
|
|
130
|
+
get_attribute_name_translate(attribute_name: string, lang: string): string;
|
|
131
|
+
/**
|
|
132
|
+
*
|
|
133
|
+
* @version v.1.0 (05/04/2026)
|
|
134
|
+
* @returns {*}
|
|
135
|
+
*/
|
|
136
|
+
get_enum_value_translate(attribute: any, value: any, lang: any): any;
|
|
137
|
+
/***********************************************/
|
|
138
|
+
/**
|
|
139
|
+
* Возвращаем "имя", то есть значение атрибута, который является именем
|
|
140
|
+
*
|
|
141
|
+
* @version v.0.2 (26/07/2026)
|
|
142
|
+
*/
|
|
143
|
+
get_element_name(): string | false;
|
|
144
|
+
/***********************************************/
|
|
145
|
+
/***********************************************/
|
|
146
|
+
/***********************************************/
|
|
147
|
+
/**
|
|
148
|
+
*
|
|
149
|
+
* @version v.0.1 (26/05/2024)
|
|
150
|
+
* @param id
|
|
151
|
+
*/
|
|
152
|
+
find(id?: boolean): Promise<void>;
|
|
153
|
+
/**
|
|
154
|
+
* @param {familyGeneralElement|object} payload
|
|
155
|
+
* @param {object} [callback]
|
|
156
|
+
* @version v.2.0 (12/06/2025)
|
|
157
|
+
*/
|
|
158
|
+
create(payload: familyGeneralElement | object, callback?: object): Promise<any>;
|
|
159
|
+
/**
|
|
160
|
+
* Mass create. Payload: `{ items: object[] }`.
|
|
161
|
+
*
|
|
162
|
+
* @param {object} payload
|
|
163
|
+
* @param {array} payload.items
|
|
164
|
+
* @param {typeFunctionCallback|object|false} callback
|
|
165
|
+
* @version v.1.0 (29/08/2026)
|
|
166
|
+
*/
|
|
167
|
+
create_mass(payload: {
|
|
168
|
+
items: any[];
|
|
169
|
+
}, callback: typeFunctionCallback | object | false): Promise<any>;
|
|
170
|
+
/**
|
|
171
|
+
* Обновление целой модели элемента
|
|
172
|
+
*
|
|
173
|
+
* @version v.2.0 (12/06/2025)
|
|
174
|
+
*/
|
|
175
|
+
update(payload: any, callback: any): Promise<any>;
|
|
176
|
+
/**
|
|
177
|
+
* Обновление 1 атрибута у 1 элемента
|
|
178
|
+
*
|
|
179
|
+
* @version v.2.0 (12/06/2025)
|
|
180
|
+
* @param key
|
|
181
|
+
* @param value
|
|
182
|
+
* @param callback
|
|
183
|
+
* @returns {Promise<>}
|
|
184
|
+
*/
|
|
185
|
+
update_property(key: any, value: any, callback: any): Promise<any>;
|
|
186
|
+
/**
|
|
187
|
+
* Массив свойств у 1 элемента
|
|
188
|
+
*
|
|
189
|
+
* @version v.0.1 (26/05/2024)
|
|
190
|
+
* @param {number} element_id
|
|
191
|
+
* @param {array} payload array<key->value>
|
|
192
|
+
* @returns {Promise<void>}
|
|
193
|
+
*/
|
|
194
|
+
update_properties(element_id: number, payload: any[], callback: any): Promise<void>;
|
|
195
|
+
/**
|
|
196
|
+
* 1 свойство и массива элементов
|
|
197
|
+
*
|
|
198
|
+
* @version v.0.1 (07/07/2026)
|
|
199
|
+
*
|
|
200
|
+
* @param {array<number>} element_ids
|
|
201
|
+
* @param {string} key
|
|
202
|
+
* @param {any} value в зависимости от типа
|
|
203
|
+
* @param {object|typeFunctionCallback} callback
|
|
204
|
+
*
|
|
205
|
+
* @returns {Promise<void>}
|
|
206
|
+
*/
|
|
207
|
+
update_property_mass(element_ids: array<number>, key: string, value: any, callback: object | typeFunctionCallback): Promise<void>;
|
|
208
|
+
/**
|
|
209
|
+
*
|
|
210
|
+
* @version v.2.0 (12/06/2025)
|
|
211
|
+
*/
|
|
212
|
+
delete(element?: boolean, callback?: {}): Promise<any>;
|
|
213
|
+
/**
|
|
214
|
+
*
|
|
215
|
+
* @version v.1.0 (07/03/2026)
|
|
216
|
+
*/
|
|
217
|
+
delete_mass(element_ids: any, callback?: {}): Promise<void>;
|
|
218
|
+
/**
|
|
219
|
+
*
|
|
220
|
+
* @version v.1.0 (07/03/2026)
|
|
221
|
+
*/
|
|
222
|
+
clone_element(element?: boolean, callback?: {}): Promise<any>;
|
|
223
|
+
/**
|
|
224
|
+
*
|
|
225
|
+
* @version v.1.0 (07/03/2026)
|
|
226
|
+
*/
|
|
227
|
+
clone_element_mass(element_ids: any, callback?: {}): Promise<void>;
|
|
228
|
+
}
|