@aristid/leav-types 0.0.7 → 1.0.0-7bbc7ed2
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/apps/core/config/default.d.ts +205 -0
- package/apps/core/config/development.d.ts +15 -0
- package/apps/core/config/test.d.ts +54 -0
- package/apps/core/scripts/build.d.ts +2 -0
- package/apps/core/scripts/preload.d.ts +1 -0
- package/apps/core/scripts/utils.d.ts +3 -0
- package/apps/core/src/__tests__/e2e/api/_fixtures/fakeplugin/index.d.ts +7 -0
- package/apps/core/src/__tests__/e2e/api/actionLists/actionLists.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/actionLists/actions/inheritanceCalculationAction.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/apiKey/apiKey.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/applications/applications.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/attributes/attributes.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/auth/auth.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/e2eUtils.d.ts +43 -0
- package/apps/core/src/__tests__/e2e/api/files/files.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/forms/forms.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/getConditionPart/getConditionPart.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/globalSettings/globalSettings.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/globalSetup.d.ts +8 -0
- package/apps/core/src/__tests__/e2e/api/globalSetupHook.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/graphql/graphql.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/import/import.test-draft.d.ts +0 -0
- package/apps/core/src/__tests__/e2e/api/joinLibraries/joinLibraries.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/libraries/libraries.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/permissions/applicationsPermissions.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/permissions/attributePermissions.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/permissions/permissions.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/permissions/recordAttributePermissions.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/permissions/recordPermissions.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/permissions/treeLibraryPermissions.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/permissions/treeNodePermissions.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/permissions/treePermissions.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/plugins/plugins.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/records/recordIdentity.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/records/records.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/records/recordsDeletion.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/records/searchFilters.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/teardown.d.ts +2 -0
- package/apps/core/src/__tests__/e2e/api/trees/treeNodeChildren.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/trees/trees.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/userData/userData.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/values/metadata.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/values/values.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/values/versions.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/versionProfile/versionProfile.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/views/views.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/filesManager/filesManager/filesManager.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/filesManager/globalSetup.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/filesManager/globalSetupHook.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/indexationManager/globalSetup.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/indexationManager/globalSetupHook.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/indexationManager/indexation.test.d.ts +1 -0
- package/apps/core/src/__tests__/global-setup.d.ts +0 -0
- package/apps/core/src/__tests__/integration/globalSetup.d.ts +1 -0
- package/apps/core/src/__tests__/integration/globalSetupHook.d.ts +1 -0
- package/apps/core/src/__tests__/integration/infra/attributeAdvancedLinkRepo.test.d.ts +1 -0
- package/apps/core/src/__tests__/integration/infra/attributeAdvancedRepo.test.d.ts +1 -0
- package/apps/core/src/__tests__/integration/infra/attributeSimpleLinkRepo.test.d.ts +1 -0
- package/apps/core/src/__tests__/integration/infra/attributeSimpleRepo.test.d.ts +1 -0
- package/apps/core/src/__tests__/integration/infra/attributeTreeRepo.test.d.ts +1 -0
- package/apps/core/src/__tests__/integration/infra/integrationTestRepoUtils.d.ts +7 -0
- package/apps/core/src/__tests__/integration/infra/recordRepo.test.d.ts +1 -0
- package/apps/core/src/__tests__/integration/infra/treeRepo.test.d.ts +1 -0
- package/apps/core/src/__tests__/integration/teardown.d.ts +1 -0
- package/apps/core/src/__tests__/jestUtils.d.ts +12 -0
- package/apps/core/src/__tests__/mockers/amqp.d.ts +8 -0
- package/apps/core/src/__tests__/mockers/logger.d.ts +7 -0
- package/apps/core/src/__tests__/mocks/actionsList.d.ts +73 -0
- package/apps/core/src/__tests__/mocks/apiKey.d.ts +11 -0
- package/apps/core/src/__tests__/mocks/application.d.ts +3 -0
- package/apps/core/src/__tests__/mocks/attribute.d.ts +41 -0
- package/apps/core/src/__tests__/mocks/cache.d.ts +4 -0
- package/apps/core/src/__tests__/mocks/file.d.ts +29 -0
- package/apps/core/src/__tests__/mocks/forms.d.ts +4 -0
- package/apps/core/src/__tests__/mocks/globalSettings.d.ts +2 -0
- package/apps/core/src/__tests__/mocks/library.d.ts +4 -0
- package/apps/core/src/__tests__/mocks/log.d.ts +2 -0
- package/apps/core/src/__tests__/mocks/plugins.d.ts +2 -0
- package/apps/core/src/__tests__/mocks/record.d.ts +3 -0
- package/apps/core/src/__tests__/mocks/shared.d.ts +2 -0
- package/apps/core/src/__tests__/mocks/task.d.ts +2 -0
- package/apps/core/src/__tests__/mocks/translator.d.ts +3 -0
- package/apps/core/src/__tests__/mocks/tree.d.ts +3 -0
- package/apps/core/src/__tests__/mocks/value.d.ts +2 -0
- package/apps/core/src/__tests__/mocks/versionProfile.d.ts +2 -0
- package/apps/core/src/__tests__/mocks/view.d.ts +3 -0
- package/apps/core/src/__tests__/setup.d.ts +0 -0
- package/apps/core/src/_constants/attributes.d.ts +1 -0
- package/apps/core/src/_constants/globalSettings.d.ts +2 -0
- package/apps/core/src/_constants/libraries.d.ts +1 -0
- package/apps/core/src/_constants/users.d.ts +4 -0
- package/apps/core/src/_types/actionsList.d.ts +78 -0
- package/apps/core/src/_types/apiKey.d.ts +23 -0
- package/apps/core/src/_types/application.d.ts +46 -0
- package/apps/core/src/_types/attribute.d.ts +103 -0
- package/apps/core/src/_types/auth.d.ts +7 -0
- package/apps/core/src/_types/config.d.ts +230 -0
- package/apps/core/src/_types/dbProfiler.d.ts +32 -0
- package/apps/core/src/_types/endpoint.d.ts +11 -0
- package/apps/core/src/_types/errors.d.ts +120 -0
- package/apps/core/src/_types/events.d.ts +45 -0
- package/apps/core/src/_types/eventsManager.d.ts +8 -0
- package/apps/core/src/_types/express.d.ts +16 -0
- package/apps/core/src/_types/extensionPoints.d.ts +29 -0
- package/apps/core/src/_types/filesManager.d.ts +90 -0
- package/apps/core/src/_types/forms.d.ts +60 -0
- package/apps/core/src/_types/globalSettings.d.ts +14 -0
- package/apps/core/src/_types/graphql.d.ts +4 -0
- package/apps/core/src/_types/import.d.ts +63 -0
- package/apps/core/src/_types/library.d.ts +61 -0
- package/apps/core/src/_types/list.d.ts +31 -0
- package/apps/core/src/_types/log.d.ts +37 -0
- package/apps/core/src/_types/migration.d.ts +4 -0
- package/apps/core/src/_types/permissions.d.ts +139 -0
- package/apps/core/src/_types/plugin.d.ts +14 -0
- package/apps/core/src/_types/preview.d.ts +6 -0
- package/apps/core/src/_types/queryInfos.d.ts +21 -0
- package/apps/core/src/_types/record.d.ts +111 -0
- package/apps/core/src/_types/shared.d.ts +28 -0
- package/apps/core/src/_types/systemTranslation.d.ts +3 -0
- package/apps/core/src/_types/tasksManager.d.ts +97 -0
- package/apps/core/src/_types/tree.d.ts +64 -0
- package/apps/core/src/_types/userData.d.ts +4 -0
- package/apps/core/src/_types/utils.d.ts +3 -0
- package/apps/core/src/_types/value.d.ts +139 -0
- package/apps/core/src/_types/versionProfile.d.ts +17 -0
- package/apps/core/src/_types/views.d.ts +52 -0
- package/apps/core/src/app/application/__tests__/applicationApp.spec.d.ts +1 -0
- package/apps/core/src/app/application/applicationApp.d.ts +30 -0
- package/apps/core/src/app/application/index.d.ts +1 -0
- package/apps/core/src/app/auth/__tests__/authApp.spec.d.ts +1 -0
- package/apps/core/src/app/auth/authApp.d.ts +39 -0
- package/apps/core/src/app/auth/index.d.ts +1 -0
- package/apps/core/src/app/core/actionListApp.d.ts +11 -0
- package/apps/core/src/app/core/apiKeyApp/_types.d.ts +21 -0
- package/apps/core/src/app/core/apiKeyApp/apiKeyApp.d.ts +10 -0
- package/apps/core/src/app/core/attributeApp/attributeApp.d.ts +25 -0
- package/apps/core/src/app/core/coreApp.d.ts +23 -0
- package/apps/core/src/app/core/coreApp.spec.d.ts +1 -0
- package/apps/core/src/app/core/eventsManagerApp.d.ts +12 -0
- package/apps/core/src/app/core/exportApp.d.ts +8 -0
- package/apps/core/src/app/core/filesManagerApp.d.ts +19 -0
- package/apps/core/src/app/core/formApp/_types.d.ts +38 -0
- package/apps/core/src/app/core/formApp/formApp.d.ts +21 -0
- package/apps/core/src/app/core/globalSettingsApp.d.ts +20 -0
- package/apps/core/src/app/core/helpers/subscriptions.d.ts +10 -0
- package/apps/core/src/app/core/importApp.d.ts +22 -0
- package/apps/core/src/app/core/index.d.ts +23 -0
- package/apps/core/src/app/core/indexationManagerApp.d.ts +11 -0
- package/apps/core/src/app/core/libraryApp/_types.d.ts +19 -0
- package/apps/core/src/app/core/libraryApp/libraryApp.d.ts +21 -0
- package/apps/core/src/app/core/logApp.d.ts +21 -0
- package/apps/core/src/app/core/permissionApp/_types.d.ts +8 -0
- package/apps/core/src/app/core/permissionApp/permissionApp.d.ts +17 -0
- package/apps/core/src/app/core/pluginsApp.d.ts +11 -0
- package/apps/core/src/app/core/recordApp/_types.d.ts +36 -0
- package/apps/core/src/app/core/recordApp/recordApp.d.ts +27 -0
- package/apps/core/src/app/core/tasksManagerApp.d.ts +32 -0
- package/apps/core/src/app/core/treeApp/_types.d.ts +53 -0
- package/apps/core/src/app/core/treeApp/treeApp.d.ts +23 -0
- package/apps/core/src/app/core/userDataApp.d.ts +8 -0
- package/apps/core/src/app/core/valueApp.d.ts +16 -0
- package/apps/core/src/app/core/versionProfileApp/_types.d.ts +24 -0
- package/apps/core/src/app/core/versionProfileApp/versionProfileApp.d.ts +10 -0
- package/apps/core/src/app/core/viewApp.d.ts +14 -0
- package/apps/core/src/app/endpoint/endpointApp.d.ts +27 -0
- package/apps/core/src/app/endpoint/endpointApp.spec.d.ts +1 -0
- package/apps/core/src/app/endpoint/index.d.ts +1 -0
- package/apps/core/src/app/graphql/customScalars/any/any.d.ts +2 -0
- package/apps/core/src/app/graphql/customScalars/any/any.spec.d.ts +1 -0
- package/apps/core/src/app/graphql/customScalars/any/index.d.ts +1 -0
- package/apps/core/src/app/graphql/customScalars/dateTime/dateTime.d.ts +7 -0
- package/apps/core/src/app/graphql/customScalars/dateTime/dateTime.spec.d.ts +1 -0
- package/apps/core/src/app/graphql/customScalars/dateTime/index.d.ts +1 -0
- package/apps/core/src/app/graphql/customScalars/helpers/parseLiteral.d.ts +5 -0
- package/apps/core/src/app/graphql/customScalars/systemTranslation/index.d.ts +1 -0
- package/apps/core/src/app/graphql/customScalars/systemTranslation/systemTranslation.d.ts +10 -0
- package/apps/core/src/app/graphql/customScalars/systemTranslation/systemTranslation.spec.d.ts +1 -0
- package/apps/core/src/app/graphql/graphqlApp.d.ts +23 -0
- package/apps/core/src/app/graphql/graphqlApp.spec.d.ts +1 -0
- package/apps/core/src/app/graphql/index.d.ts +1 -0
- package/apps/core/src/app/helpers/convertOIDCIdentifier.d.ts +5 -0
- package/apps/core/src/app/helpers/convertOIDCIdentifier.spec.d.ts +1 -0
- package/apps/core/src/app/helpers/convertVersionFromGqlFormat.d.ts +3 -0
- package/apps/core/src/app/helpers/convertVersionFromGqlFormat.spec.d.ts +1 -0
- package/apps/core/src/app/helpers/index.d.ts +4 -0
- package/apps/core/src/app/helpers/initQueryContext.d.ts +9 -0
- package/apps/core/src/app/helpers/validateRequestToken.d.ts +9 -0
- package/apps/core/src/app/helpers/validateRequestToken.spec.d.ts +1 -0
- package/apps/core/src/config.d.ts +12 -0
- package/apps/core/src/depsManager.d.ts +7 -0
- package/apps/core/src/domain/actions/dateRangeToNumberAction.d.ts +2 -0
- package/apps/core/src/domain/actions/dateRangeToNumberAction.spec.d.ts +1 -0
- package/apps/core/src/domain/actions/encryptAction.d.ts +2 -0
- package/apps/core/src/domain/actions/encryptAction.spec.d.ts +1 -0
- package/apps/core/src/domain/actions/excelCalculationAction.d.ts +12 -0
- package/apps/core/src/domain/actions/excelCalculationAction.spec.d.ts +1 -0
- package/apps/core/src/domain/actions/formatDateAction.d.ts +5 -0
- package/apps/core/src/domain/actions/formatDateAction.spec.d.ts +1 -0
- package/apps/core/src/domain/actions/formatDateRangeAction.d.ts +5 -0
- package/apps/core/src/domain/actions/formatDateRangeAction.spec.d.ts +1 -0
- package/apps/core/src/domain/actions/formatNumberAction.d.ts +8 -0
- package/apps/core/src/domain/actions/formatNumberAction.spec.d.ts +1 -0
- package/apps/core/src/domain/actions/index.d.ts +18 -0
- package/apps/core/src/domain/actions/inheritanceCalculationAction.d.ts +12 -0
- package/apps/core/src/domain/actions/inheritanceCalculationAction.spec.d.ts +1 -0
- package/apps/core/src/domain/actions/maskValueAction.d.ts +2 -0
- package/apps/core/src/domain/actions/maskValueAction.spec.d.ts +1 -0
- package/apps/core/src/domain/actions/parseJSONAction.d.ts +2 -0
- package/apps/core/src/domain/actions/parseJSONAction.spec.d.ts +1 -0
- package/apps/core/src/domain/actions/toBooleanAction.d.ts +2 -0
- package/apps/core/src/domain/actions/toBooleanAction.spec.d.ts +1 -0
- package/apps/core/src/domain/actions/toJSONAction.d.ts +2 -0
- package/apps/core/src/domain/actions/toJSONAction.spec.d.ts +1 -0
- package/apps/core/src/domain/actions/toNumberAction.d.ts +2 -0
- package/apps/core/src/domain/actions/toNumberAction.spec.d.ts +1 -0
- package/apps/core/src/domain/actions/toStringAction.d.ts +2 -0
- package/apps/core/src/domain/actions/toStringAction.spec.d.ts +1 -0
- package/apps/core/src/domain/actions/toUppercaseAction.d.ts +2 -0
- package/apps/core/src/domain/actions/toUppercaseAction.spec.d.ts +1 -0
- package/apps/core/src/domain/actions/validateEmailAction.d.ts +2 -0
- package/apps/core/src/domain/actions/validateEmailAction.spec.d.ts +1 -0
- package/apps/core/src/domain/actions/validateFormatAction.d.ts +2 -0
- package/apps/core/src/domain/actions/validateFormatAction.spec.d.ts +1 -0
- package/apps/core/src/domain/actions/validateRegexAction.d.ts +4 -0
- package/apps/core/src/domain/actions/validateRegexAction.spec.d.ts +1 -0
- package/apps/core/src/domain/actions/validateURLAction.d.ts +2 -0
- package/apps/core/src/domain/actions/validateURLAction.spec.d.ts +1 -0
- package/apps/core/src/domain/actionsList/actionsListDomain.d.ts +43 -0
- package/apps/core/src/domain/actionsList/actionsListDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/actionsList/index.d.ts +1 -0
- package/apps/core/src/domain/apiKey/apiKeyDomain.d.ts +41 -0
- package/apps/core/src/domain/apiKey/apiKeyDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/apiKey/index.d.ts +1 -0
- package/apps/core/src/domain/application/applicationDomain.d.ts +57 -0
- package/apps/core/src/domain/application/applicationDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/application/index.d.ts +1 -0
- package/apps/core/src/domain/attribute/attributeDomain.d.ts +77 -0
- package/apps/core/src/domain/attribute/attributeDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/attribute/helpers/attributeALHelper.d.ts +6 -0
- package/apps/core/src/domain/attribute/helpers/attributeValidationHelper.d.ts +16 -0
- package/apps/core/src/domain/attribute/helpers/ifLibraryJoinLinkAttribute.d.ts +11 -0
- package/apps/core/src/domain/attribute/helpers/ifLibraryJoinLinkAttribute.spec.d.ts +1 -0
- package/apps/core/src/domain/attribute/helpers/index.d.ts +1 -0
- package/apps/core/src/domain/attribute/index.d.ts +1 -0
- package/apps/core/src/domain/core/coreDomain.d.ts +4 -0
- package/apps/core/src/domain/core/coreDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/core/index.d.ts +1 -0
- package/apps/core/src/domain/eventsManager/eventsManagerDomain.d.ts +24 -0
- package/apps/core/src/domain/eventsManager/eventsManagerDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/eventsManager/index.d.ts +1 -0
- package/apps/core/src/domain/export/exportDomain.d.ts +46 -0
- package/apps/core/src/domain/export/exportDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/export/index.d.ts +1 -0
- package/apps/core/src/domain/filesManager/_constants.d.ts +2 -0
- package/apps/core/src/domain/filesManager/filesManagerDomain.d.ts +88 -0
- package/apps/core/src/domain/filesManager/filesManagerDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/filesManager/helpers/extractFileMetadata.d.ts +3 -0
- package/apps/core/src/domain/filesManager/helpers/getRootPathByKey.d.ts +2 -0
- package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/_types.d.ts +32 -0
- package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleCreateEvent.d.ts +4 -0
- package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleFileSystemEvent.d.ts +28 -0
- package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleFileSystemEvent.spec.d.ts +1 -0
- package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleMoveEvent.d.ts +4 -0
- package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleRemoveEvent.d.ts +4 -0
- package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleUpdateEvent.d.ts +4 -0
- package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/index.d.ts +1 -0
- package/apps/core/src/domain/filesManager/helpers/handleFileUtilsHelper.d.ts +39 -0
- package/apps/core/src/domain/filesManager/helpers/handlePreview.d.ts +22 -0
- package/apps/core/src/domain/filesManager/helpers/handlePreviewResponse.d.ts +23 -0
- package/apps/core/src/domain/filesManager/helpers/messagesHandler/index.d.ts +1 -0
- package/apps/core/src/domain/filesManager/helpers/messagesHandler/messagesHandler.d.ts +14 -0
- package/apps/core/src/domain/filesManager/helpers/messagesHandler/messagesHandler.spec.d.ts +1 -0
- package/apps/core/src/domain/filesManager/index.d.ts +1 -0
- package/apps/core/src/domain/form/formDomain.d.ts +60 -0
- package/apps/core/src/domain/form/formDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/form/helpers/getElementValues.d.ts +21 -0
- package/apps/core/src/domain/form/helpers/mustIncludeElement.d.ts +11 -0
- package/apps/core/src/domain/form/index.d.ts +1 -0
- package/apps/core/src/domain/globalSettings/globalSettingsDomain.d.ts +22 -0
- package/apps/core/src/domain/globalSettings/globalSettingsDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/globalSettings/index.d.ts +1 -0
- package/apps/core/src/domain/helpers/calculationVariable/calculationVariable.spec.d.ts +1 -0
- package/apps/core/src/domain/helpers/calculationVariable/index.d.ts +19 -0
- package/apps/core/src/domain/helpers/calculationsVariableFunctions/calculationsVariableFunctions.spec.d.ts +1 -0
- package/apps/core/src/domain/helpers/calculationsVariableFunctions/index.d.ts +17 -0
- package/apps/core/src/domain/helpers/createDirectory.d.ts +10 -0
- package/apps/core/src/domain/helpers/getCoreEntityById.d.ts +20 -0
- package/apps/core/src/domain/helpers/index.d.ts +6 -0
- package/apps/core/src/domain/helpers/storeUploadFile.d.ts +4 -0
- package/apps/core/src/domain/helpers/updateRecordLastModif.d.ts +13 -0
- package/apps/core/src/domain/helpers/updateTaskProgress.d.ts +18 -0
- package/apps/core/src/domain/helpers/validate.d.ts +24 -0
- package/apps/core/src/domain/import/importDomain.d.ts +82 -0
- package/apps/core/src/domain/import/importDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/import/index.d.ts +1 -0
- package/apps/core/src/domain/indexationManager/index.d.ts +1 -0
- package/apps/core/src/domain/indexationManager/indexationManagerDomain.d.ts +42 -0
- package/apps/core/src/domain/indexationManager/indexationManagerDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/library/helpers/checkSavePermission.d.ts +10 -0
- package/apps/core/src/domain/library/helpers/deleteAssociatedValues.d.ts +16 -0
- package/apps/core/src/domain/library/helpers/index.d.ts +4 -0
- package/apps/core/src/domain/library/helpers/runBehaviorPostSave.d.ts +18 -0
- package/apps/core/src/domain/library/helpers/runPreDelete.d.ts +13 -0
- package/apps/core/src/domain/library/helpers/runPreDelete.spec.d.ts +1 -0
- package/apps/core/src/domain/library/helpers/updateAssociatedForms.d.ts +10 -0
- package/apps/core/src/domain/library/helpers/validateLibAttributes.d.ts +8 -0
- package/apps/core/src/domain/library/helpers/validateLibFullTextAttributes.d.ts +4 -0
- package/apps/core/src/domain/library/helpers/validatePermConf.d.ts +9 -0
- package/apps/core/src/domain/library/helpers/validatePreviewsSettings.d.ts +5 -0
- package/apps/core/src/domain/library/helpers/validateRecordIdentityConf.d.ts +8 -0
- package/apps/core/src/domain/library/index.d.ts +1 -0
- package/apps/core/src/domain/library/libraryDomain.d.ts +49 -0
- package/apps/core/src/domain/library/libraryDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/log/index.d.ts +1 -0
- package/apps/core/src/domain/log/logDomain.d.ts +18 -0
- package/apps/core/src/domain/log/logDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/permission/_types.d.ts +209 -0
- package/apps/core/src/domain/permission/adminPermissionDomain.d.ts +11 -0
- package/apps/core/src/domain/permission/adminPermissionDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/permission/applicationPermissionDomain.d.ts +11 -0
- package/apps/core/src/domain/permission/applicationPermissionDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/permission/attributePermissionDomain.d.ts +11 -0
- package/apps/core/src/domain/permission/attributePermissionDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/permission/helpers/defaultPermission.d.ts +9 -0
- package/apps/core/src/domain/permission/helpers/defaultPermission.spec.d.ts +1 -0
- package/apps/core/src/domain/permission/helpers/getPermissionCacheKey.d.ts +2 -0
- package/apps/core/src/domain/permission/helpers/getPermissionCacheKey.spec.d.ts +1 -0
- package/apps/core/src/domain/permission/helpers/getPermissionCachePatternKey.d.ts +8 -0
- package/apps/core/src/domain/permission/helpers/getPermissionCachePatternKey.spec.d.ts +1 -0
- package/apps/core/src/domain/permission/helpers/globalPermission.d.ts +36 -0
- package/apps/core/src/domain/permission/helpers/globalPermission.spec.d.ts +1 -0
- package/apps/core/src/domain/permission/helpers/index.d.ts +7 -0
- package/apps/core/src/domain/permission/helpers/permissionByUserGroups.d.ts +32 -0
- package/apps/core/src/domain/permission/helpers/permissionByUserGroups.spec.d.ts +1 -0
- package/apps/core/src/domain/permission/helpers/permissionsByActions.d.ts +12 -0
- package/apps/core/src/domain/permission/helpers/permissionsByActions.spec.d.ts +1 -0
- package/apps/core/src/domain/permission/helpers/reducePermissionsArray.d.ts +4 -0
- package/apps/core/src/domain/permission/helpers/reducePermissionsArray.spec.d.ts +1 -0
- package/apps/core/src/domain/permission/helpers/simplePermission.d.ts +10 -0
- package/apps/core/src/domain/permission/helpers/simplePermission.spec.d.ts +1 -0
- package/apps/core/src/domain/permission/helpers/treeBasedPermissions.d.ts +19 -0
- package/apps/core/src/domain/permission/helpers/treeBasedPermissions.spec.d.ts +1 -0
- package/apps/core/src/domain/permission/index.d.ts +10 -0
- package/apps/core/src/domain/permission/libraryPermissionDomain.d.ts +11 -0
- package/apps/core/src/domain/permission/libraryPermissionDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/permission/permissionDomain.d.ts +46 -0
- package/apps/core/src/domain/permission/permissionDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/permission/recordAttributePermissionDomain.d.ts +22 -0
- package/apps/core/src/domain/permission/recordAttributePermissionDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/permission/recordPermissionDomain.d.ts +25 -0
- package/apps/core/src/domain/permission/recordPermissionDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/permission/treeLibraryPermissionDomain.d.ts +11 -0
- package/apps/core/src/domain/permission/treeLibraryPermissionDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/permission/treeNodePermissionDomain.d.ts +26 -0
- package/apps/core/src/domain/permission/treeNodePermissionDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/permission/treePermissionDomain.d.ts +11 -0
- package/apps/core/src/domain/permission/treePermissionDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/plugins/index.d.ts +1 -0
- package/apps/core/src/domain/plugins/pluginsDomain.d.ts +11 -0
- package/apps/core/src/domain/plugins/pluginsDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/record/_types.d.ts +33 -0
- package/apps/core/src/domain/record/helpers/createRecord.d.ts +22 -0
- package/apps/core/src/domain/record/helpers/deleteRecord.d.ts +19 -0
- package/apps/core/src/domain/record/helpers/getAccessPermissionFilters.d.ts +24 -0
- package/apps/core/src/domain/record/helpers/getAttributesFromField.d.ts +30 -0
- package/apps/core/src/domain/record/helpers/index.d.ts +4 -0
- package/apps/core/src/domain/record/helpers/sendRecordUpdateEvent.d.ts +11 -0
- package/apps/core/src/domain/record/helpers/validateLibrary.d.ts +6 -0
- package/apps/core/src/domain/record/index.d.ts +1 -0
- package/apps/core/src/domain/record/recordDomain.d.ts +146 -0
- package/apps/core/src/domain/record/recordDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/tasksManager/index.d.ts +1 -0
- package/apps/core/src/domain/tasksManager/tasksManagerDomain.d.ts +68 -0
- package/apps/core/src/domain/tasksManager/tasksManagerDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/tree/helpers/elementAncestors.d.ts +16 -0
- package/apps/core/src/domain/tree/helpers/getDefaultElement.d.ts +22 -0
- package/apps/core/src/domain/tree/helpers/getDefaultElement.spec.d.ts +1 -0
- package/apps/core/src/domain/tree/helpers/handleRemovedLibraries.d.ts +9 -0
- package/apps/core/src/domain/tree/helpers/handleRemovedLibraries.spec.d.ts +1 -0
- package/apps/core/src/domain/tree/helpers/index.d.ts +4 -0
- package/apps/core/src/domain/tree/helpers/treeDataValidation.d.ts +13 -0
- package/apps/core/src/domain/tree/helpers/treeDataValidation.spec.d.ts +1 -0
- package/apps/core/src/domain/tree/index.d.ts +1 -0
- package/apps/core/src/domain/tree/treeDomain.d.ts +159 -0
- package/apps/core/src/domain/tree/treeDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/user/index.d.ts +1 -0
- package/apps/core/src/domain/user/userDomain.d.ts +36 -0
- package/apps/core/src/domain/user/userDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/value/_types.d.ts +20 -0
- package/apps/core/src/domain/value/helpers/canSaveRecordValue.d.ts +28 -0
- package/apps/core/src/domain/value/helpers/doesValueExist.d.ts +4 -0
- package/apps/core/src/domain/value/helpers/findValue.d.ts +25 -0
- package/apps/core/src/domain/value/helpers/isEmptyValue.d.ts +5 -0
- package/apps/core/src/domain/value/helpers/prepareValue.d.ts +22 -0
- package/apps/core/src/domain/value/helpers/saveOneValue.d.ts +21 -0
- package/apps/core/src/domain/value/helpers/validateValue.d.ts +25 -0
- package/apps/core/src/domain/value/index.d.ts +1 -0
- package/apps/core/src/domain/value/valueDomain.d.ts +120 -0
- package/apps/core/src/domain/value/valueDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/versionProfile/index.d.ts +1 -0
- package/apps/core/src/domain/versionProfile/versionProfileDomain.d.ts +45 -0
- package/apps/core/src/domain/versionProfile/versionProfileDomain.spec.d.ts +1 -0
- package/apps/core/src/domain/view/index.d.ts +1 -0
- package/apps/core/src/domain/view/viewDomain.d.ts +20 -0
- package/apps/core/src/domain/view/viewDomain.spec.d.ts +1 -0
- package/apps/core/src/env.d.ts +2 -0
- package/apps/core/src/errors/ApplicationError.d.ts +12 -0
- package/apps/core/src/errors/AuthenticationError.d.ts +3 -0
- package/apps/core/src/errors/GraphQLAuthenticationError.d.ts +5 -0
- package/apps/core/src/errors/LeavError.d.ts +25 -0
- package/apps/core/src/errors/PermissionError.d.ts +10 -0
- package/apps/core/src/errors/ValidationError.d.ts +10 -0
- package/apps/core/src/errors/typeguards.d.ts +6 -0
- package/apps/core/src/i18nextInit.d.ts +4 -0
- package/apps/core/src/index.d.ts +1 -0
- package/apps/core/src/infra/apiKey/apiKeyRepo.d.ts +29 -0
- package/apps/core/src/infra/apiKey/apiKeyRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/apiKey/index.d.ts +1 -0
- package/apps/core/src/infra/application/applicationRepo.d.ts +38 -0
- package/apps/core/src/infra/application/applicationRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/application/index.d.ts +1 -0
- package/apps/core/src/infra/attribute/attributeRepo.d.ts +56 -0
- package/apps/core/src/infra/attribute/attributeRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/attribute/index.d.ts +1 -0
- package/apps/core/src/infra/attributeTypes/attributeAdvancedLinkRepo.d.ts +19 -0
- package/apps/core/src/infra/attributeTypes/attributeAdvancedLinkRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/attributeTypes/attributeAdvancedRepo.d.ts +14 -0
- package/apps/core/src/infra/attributeTypes/attributeAdvancedRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/attributeTypes/attributeSimpleLinkRepo.d.ts +17 -0
- package/apps/core/src/infra/attributeTypes/attributeSimpleLinkRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/attributeTypes/attributeSimpleRepo.d.ts +13 -0
- package/apps/core/src/infra/attributeTypes/attributeSimpleRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/attributeTypes/attributeTreeRepo.d.ts +17 -0
- package/apps/core/src/infra/attributeTypes/attributeTreeRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/attributeTypes/attributeTypesRepo.d.ts +158 -0
- package/apps/core/src/infra/attributeTypes/attributeTypesRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/attributeTypes/helpers/getConditionPart.d.ts +5 -0
- package/apps/core/src/infra/attributeTypes/helpers/index.d.ts +1 -0
- package/apps/core/src/infra/attributeTypes/index.d.ts +6 -0
- package/apps/core/src/infra/cache/cacheService.d.ts +33 -0
- package/apps/core/src/infra/cache/diskService.d.ts +7 -0
- package/apps/core/src/infra/cache/index.d.ts +4 -0
- package/apps/core/src/infra/cache/ramService.d.ts +9 -0
- package/apps/core/src/infra/cache/redis.d.ts +8 -0
- package/apps/core/src/infra/db/_constants.d.ts +2 -0
- package/apps/core/src/infra/db/_types.d.ts +23 -0
- package/apps/core/src/infra/db/db.d.ts +8 -0
- package/apps/core/src/infra/db/dbService.d.ts +60 -0
- package/apps/core/src/infra/db/dbService.spec.d.ts +1 -0
- package/apps/core/src/infra/db/dbUtils.d.ts +38 -0
- package/apps/core/src/infra/db/dbUtils.spec.d.ts +1 -0
- package/apps/core/src/infra/db/helpers/loadMigrationFile.d.ts +2 -0
- package/apps/core/src/infra/db/helpers/runMigrationFiles.d.ts +18 -0
- package/apps/core/src/infra/db/index.d.ts +3 -0
- package/apps/core/src/infra/db/migrations/000-init/coreCollections.d.ts +6 -0
- package/apps/core/src/infra/db/migrations/000-init/index.d.ts +17 -0
- package/apps/core/src/infra/db/migrations/000-init/systemApplications.d.ts +5 -0
- package/apps/core/src/infra/db/migrations/000-init/systemAttributes.d.ts +2 -0
- package/apps/core/src/infra/db/migrations/000-init/systemLibraries.d.ts +9 -0
- package/apps/core/src/infra/db/migrations/000-init/systemTrees.d.ts +5 -0
- package/apps/core/src/infra/db/migrations/001-delInstallApps.d.ts +7 -0
- package/apps/core/src/infra/db/migrations/002-previewsSettings.d.ts +15 -0
- package/apps/core/src/infra/db/migrations/003-filesMetadata.d.ts +11 -0
- package/apps/core/src/infra/db/migrations/004-formsLabels.d.ts +8 -0
- package/apps/core/src/infra/db/migrations/005-viewSortToArray.d.ts +7 -0
- package/apps/core/src/infra/db/migrations/006-addRequiredAttributeProperty.d.ts +11 -0
- package/apps/core/src/infra/db/migrations/007-updateHexColor.d.ts +9 -0
- package/apps/core/src/infra/db/migrations/008-addSkeletonApp.d.ts +7 -0
- package/apps/core/src/infra/db/migrations/009-addDisplayMultiLinkOptAttributeProperty.d.ts +11 -0
- package/apps/core/src/infra/db/migrations/010-formSidePanel.d.ts +8 -0
- package/apps/core/src/infra/db/migrations/011-moveSkeletonApptoAppStudio.d.ts +7 -0
- package/apps/core/src/infra/db/migrations/012-addDisplayMultiTreeOptAttributeProperty.d.ts +7 -0
- package/apps/core/src/infra/elasticSearch/elasticSearchClient.d.ts +7 -0
- package/apps/core/src/infra/elasticSearch/elasticSearchService.d.ts +22 -0
- package/apps/core/src/infra/elasticSearch/index.d.ts +1 -0
- package/apps/core/src/infra/filesManager/filesManagerRepo.d.ts +23 -0
- package/apps/core/src/infra/filesManager/filesManagerRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/filesManager/index.d.ts +1 -0
- package/apps/core/src/infra/form/formRepo.d.ts +34 -0
- package/apps/core/src/infra/form/formRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/form/index.d.ts +1 -0
- package/apps/core/src/infra/globalSettings/globalSettingsRepo.d.ts +15 -0
- package/apps/core/src/infra/globalSettings/globalSettingsRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/globalSettings/index.d.ts +1 -0
- package/apps/core/src/infra/indexation/helpers/getSearchQuery.d.ts +4 -0
- package/apps/core/src/infra/indexation/helpers/getSearchQuery.spec.d.ts +1 -0
- package/apps/core/src/infra/indexation/helpers/index.d.ts +1 -0
- package/apps/core/src/infra/indexation/index.d.ts +1 -0
- package/apps/core/src/infra/indexation/indexationService.d.ts +27 -0
- package/apps/core/src/infra/library/index.d.ts +1 -0
- package/apps/core/src/infra/library/libraryRepo.d.ts +87 -0
- package/apps/core/src/infra/library/libraryRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/log/index.d.ts +1 -0
- package/apps/core/src/infra/log/logRepo.d.ts +18 -0
- package/apps/core/src/infra/log/logRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/mailer/index.d.ts +2 -0
- package/apps/core/src/infra/mailer/mailer.d.ts +7 -0
- package/apps/core/src/infra/mailer/mailerService.d.ts +26 -0
- package/apps/core/src/infra/oidc/__tests__/oidcClient.spec.d.ts +1 -0
- package/apps/core/src/infra/oidc/__tests__/oidcClientService.spec.d.ts +1 -0
- package/apps/core/src/infra/oidc/index.d.ts +2 -0
- package/apps/core/src/infra/oidc/oidcClient.d.ts +4 -0
- package/apps/core/src/infra/oidc/oidcClientService.d.ts +37 -0
- package/apps/core/src/infra/permission/index.d.ts +1 -0
- package/apps/core/src/infra/permission/permissionRepo.d.ts +35 -0
- package/apps/core/src/infra/permission/permissionRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/plugins/index.d.ts +1 -0
- package/apps/core/src/infra/plugins/pluginsRepo.d.ts +6 -0
- package/apps/core/src/infra/plugins/pluginsRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/record/helpers/filterTypes.d.ts +7 -0
- package/apps/core/src/infra/record/helpers/filterTypes.spec.d.ts +1 -0
- package/apps/core/src/infra/record/helpers/getClassifyingFiltersVariableQueryPart.d.ts +11 -0
- package/apps/core/src/infra/record/helpers/getClassifyingFiltersVariableQueryPart.spec.d.ts +1 -0
- package/apps/core/src/infra/record/helpers/getSearchVariableName.d.ts +8 -0
- package/apps/core/src/infra/record/helpers/getSearchVariableName.spec.d.ts +1 -0
- package/apps/core/src/infra/record/helpers/getSearchVariablesQueryPart.d.ts +15 -0
- package/apps/core/src/infra/record/helpers/getSearchVariablesQueryPart.spec.d.ts +1 -0
- package/apps/core/src/infra/record/helpers/index.d.ts +4 -0
- package/apps/core/src/infra/record/index.d.ts +1 -0
- package/apps/core/src/infra/record/recordRepo.d.ts +71 -0
- package/apps/core/src/infra/record/recordRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/task/index.d.ts +1 -0
- package/apps/core/src/infra/task/taskRepo.d.ts +30 -0
- package/apps/core/src/infra/task/taskRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/tree/_types.d.ts +9 -0
- package/apps/core/src/infra/tree/helpers/utils.d.ts +5 -0
- package/apps/core/src/infra/tree/index.d.ts +1 -0
- package/apps/core/src/infra/tree/treeRepo.d.ts +169 -0
- package/apps/core/src/infra/tree/treeRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/userData/index.d.ts +1 -0
- package/apps/core/src/infra/userData/userDataRepo.d.ts +19 -0
- package/apps/core/src/infra/userData/userDataRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/value/index.d.ts +1 -0
- package/apps/core/src/infra/value/valueRepo.d.ts +90 -0
- package/apps/core/src/infra/value/valueRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/versionProfile/index.d.ts +1 -0
- package/apps/core/src/infra/versionProfile/versionProfileRepo.d.ts +35 -0
- package/apps/core/src/infra/versionProfile/versionProfileRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/view/_types.d.ts +17 -0
- package/apps/core/src/infra/view/index.d.ts +1 -0
- package/apps/core/src/infra/view/viewRepo.d.ts +2 -0
- package/apps/core/src/infra/view/viewRepo.spec.d.ts +1 -0
- package/apps/core/src/interface/cli.d.ts +8 -0
- package/apps/core/src/interface/filesManager.d.ts +9 -0
- package/apps/core/src/interface/helpers/handleGraphqlError.d.ts +13 -0
- package/apps/core/src/interface/helpers/handleGraphqlError.spec.d.ts +1 -0
- package/apps/core/src/interface/helpers/index.d.ts +1 -0
- package/apps/core/src/interface/index.d.ts +5 -0
- package/apps/core/src/interface/indexationManager.d.ts +9 -0
- package/apps/core/src/interface/server.d.ts +37 -0
- package/apps/core/src/interface/tasksManager.d.ts +10 -0
- package/apps/core/src/pluginsLoader.d.ts +2 -0
- package/apps/core/src/testConfig.d.ts +1 -0
- package/apps/core/src/utils/dataloader.d.ts +9 -0
- package/apps/core/src/utils/dataloader.spec.d.ts +1 -0
- package/apps/core/src/utils/helpers/getDefaultActionsList.d.ts +4 -0
- package/apps/core/src/utils/helpers/getLibraryDefaultAttributes.d.ts +3 -0
- package/apps/core/src/utils/helpers/getPreviewsAttributes.d.ts +2 -0
- package/apps/core/src/utils/helpers/getSystemQueryContext.d.ts +8 -0
- package/apps/core/src/utils/helpers/getValuesToDisplay.d.ts +2 -0
- package/apps/core/src/utils/helpers/getValuesToDisplay.spec.d.ts +1 -0
- package/apps/core/src/utils/index.d.ts +4 -0
- package/apps/core/src/utils/logger/logger.d.ts +39 -0
- package/apps/core/src/utils/preview/preview.d.ts +1 -0
- package/apps/core/src/utils/typeGuards/index.d.ts +6 -0
- package/apps/core/src/utils/typeGuards/typeGuards.spec.d.ts +1 -0
- package/apps/core/src/utils/utils.d.ts +98 -0
- package/apps/core/src/utils/utils.spec.d.ts +1 -0
- package/libs/app-root-path/src/index.d.ts +1 -0
- package/libs/config-manager/src/index.d.ts +10 -0
- package/libs/message-broker/src/amqpService.d.ts +20 -0
- package/libs/message-broker/src/index.d.ts +2 -0
- package/libs/message-broker/src/types/amqp.d.ts +15 -0
- package/libs/utils/src/constants.d.ts +2 -0
- package/libs/utils/src/index.d.ts +11 -0
- package/libs/utils/src/types/applications.d.ts +1 -0
- package/libs/utils/src/types/attributes.d.ts +7 -0
- package/libs/utils/src/types/errors.d.ts +5 -0
- package/libs/utils/src/types/events.d.ts +75 -0
- package/libs/utils/src/types/files.d.ts +16 -0
- package/libs/utils/src/types/forms.d.ts +60 -0
- package/libs/utils/src/types/helpers.d.ts +13 -0
- package/libs/utils/src/types/logs.d.ts +2 -0
- package/libs/utils/src/types/previews.d.ts +5 -0
- package/libs/utils/src/types/values.d.ts +4 -0
- package/libs/utils/src/utils.d.ts +68 -0
- package/package.json +13 -5
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import LeavError from './LeavError';
|
|
2
|
+
import PermissionError from './PermissionError';
|
|
3
|
+
import ValidationError from './ValidationError';
|
|
4
|
+
export declare const isLeavError: (err: Error) => err is LeavError<unknown>;
|
|
5
|
+
export declare const isPermissionError: (err: Error) => err is PermissionError<unknown>;
|
|
6
|
+
export declare const isValidationError: (err: Error) => err is ValidationError<unknown>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { IDbService } from 'infra/db/dbService';
|
|
2
|
+
import { IDbUtils } from 'infra/db/dbUtils';
|
|
3
|
+
import { IApiKey, IGetCoreApiKeysParams } from '_types/apiKey';
|
|
4
|
+
import { IList } from '_types/list';
|
|
5
|
+
import { IQueryInfos } from '_types/queryInfos';
|
|
6
|
+
export declare const API_KEY_COLLECTION_NAME = "core_api_keys";
|
|
7
|
+
export interface IApiKeyRepo {
|
|
8
|
+
getApiKeys: (params: {
|
|
9
|
+
params?: IGetCoreApiKeysParams;
|
|
10
|
+
ctx: IQueryInfos;
|
|
11
|
+
}) => Promise<IList<IApiKey>>;
|
|
12
|
+
createApiKey: (params: {
|
|
13
|
+
keyData: IApiKey;
|
|
14
|
+
ctx: IQueryInfos;
|
|
15
|
+
}) => Promise<IApiKey>;
|
|
16
|
+
updateApiKey: (params: {
|
|
17
|
+
keyData: IApiKey;
|
|
18
|
+
ctx: IQueryInfos;
|
|
19
|
+
}) => Promise<IApiKey>;
|
|
20
|
+
deleteApiKey: (params: {
|
|
21
|
+
id: string;
|
|
22
|
+
ctx: IQueryInfos;
|
|
23
|
+
}) => Promise<IApiKey>;
|
|
24
|
+
}
|
|
25
|
+
export interface IApiKeyRepoDeps {
|
|
26
|
+
'core.infra.db.dbUtils': IDbUtils;
|
|
27
|
+
'core.infra.db.dbService': IDbService;
|
|
28
|
+
}
|
|
29
|
+
export default function ({ 'core.infra.db.dbService': dbService, 'core.infra.db.dbUtils': dbUtils }: IApiKeyRepoDeps): IApiKeyRepo;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './apiKeyRepo';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import winston from 'winston';
|
|
2
|
+
import { IConfig } from '_types/config';
|
|
3
|
+
import { IList } from '_types/list';
|
|
4
|
+
import { IQueryInfos } from '_types/queryInfos';
|
|
5
|
+
import { IApplication, IApplicationModule } from '../../_types/application';
|
|
6
|
+
import { IGetCoreEntitiesParams } from '../../_types/shared';
|
|
7
|
+
import { IDbService } from '../db/dbService';
|
|
8
|
+
import { IDbUtils } from '../db/dbUtils';
|
|
9
|
+
export interface IApplicationRepo {
|
|
10
|
+
getApplications(params: {
|
|
11
|
+
params?: IGetCoreEntitiesParams;
|
|
12
|
+
ctx: IQueryInfos;
|
|
13
|
+
}): Promise<IList<IApplication>>;
|
|
14
|
+
updateApplication(params: {
|
|
15
|
+
applicationData: IApplication;
|
|
16
|
+
ctx: IQueryInfos;
|
|
17
|
+
}): Promise<IApplication>;
|
|
18
|
+
createApplication(params: {
|
|
19
|
+
applicationData: IApplication;
|
|
20
|
+
ctx: IQueryInfos;
|
|
21
|
+
}): Promise<IApplication>;
|
|
22
|
+
deleteApplication(params: {
|
|
23
|
+
id: string;
|
|
24
|
+
ctx: IQueryInfos;
|
|
25
|
+
}): Promise<IApplication>;
|
|
26
|
+
getAvailableModules(params: {
|
|
27
|
+
ctx: IQueryInfos;
|
|
28
|
+
}): Promise<IApplicationModule[]>;
|
|
29
|
+
}
|
|
30
|
+
export declare const APPLICATIONS_COLLECTION_NAME = "core_applications";
|
|
31
|
+
interface IDeps {
|
|
32
|
+
'core.infra.db.dbService'?: IDbService;
|
|
33
|
+
'core.infra.db.dbUtils'?: IDbUtils;
|
|
34
|
+
'core.utils.logger'?: winston.Winston;
|
|
35
|
+
config?: IConfig;
|
|
36
|
+
}
|
|
37
|
+
export default function ({ 'core.infra.db.dbService': dbService, 'core.infra.db.dbUtils': dbUtils, 'core.utils.logger': logger, config }?: IDeps): IApplicationRepo;
|
|
38
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './applicationRepo';
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { IUtils } from 'utils/utils';
|
|
2
|
+
import { ILibrary } from '_types/library';
|
|
3
|
+
import { IList } from '_types/list';
|
|
4
|
+
import { IQueryInfos } from '_types/queryInfos';
|
|
5
|
+
import { IAttribute, IGetCoreAttributesParams } from '../../_types/attribute';
|
|
6
|
+
import { IDbService } from '../db/dbService';
|
|
7
|
+
import { IDbUtils } from '../db/dbUtils';
|
|
8
|
+
import { IValueRepo } from '../value/valueRepo';
|
|
9
|
+
export interface IAttributeRepo {
|
|
10
|
+
getAttributes({ params, ctx }: {
|
|
11
|
+
params?: IGetCoreAttributesParams;
|
|
12
|
+
ctx: IQueryInfos;
|
|
13
|
+
}): Promise<IList<IAttribute>>;
|
|
14
|
+
updateAttribute({ attrData, ctx }: {
|
|
15
|
+
attrData: IAttributeForRepo;
|
|
16
|
+
ctx: IQueryInfos;
|
|
17
|
+
}): Promise<IAttribute>;
|
|
18
|
+
createAttribute({ attrData, ctx }: {
|
|
19
|
+
attrData: IAttributeForRepo;
|
|
20
|
+
ctx: IQueryInfos;
|
|
21
|
+
}): Promise<IAttribute>;
|
|
22
|
+
deleteAttribute({ attrData, ctx }: {
|
|
23
|
+
attrData: IAttribute;
|
|
24
|
+
ctx: IQueryInfos;
|
|
25
|
+
}): Promise<IAttribute>;
|
|
26
|
+
/**
|
|
27
|
+
* Retrieve attributes linked to library
|
|
28
|
+
*/
|
|
29
|
+
getLibraryAttributes({ libraryId, ctx }: {
|
|
30
|
+
libraryId: string;
|
|
31
|
+
ctx: IQueryInfos;
|
|
32
|
+
}): Promise<IAttribute[]>;
|
|
33
|
+
getLibraryFullTextAttributes({ libraryId, ctx }: {
|
|
34
|
+
libraryId: string;
|
|
35
|
+
ctx: IQueryInfos;
|
|
36
|
+
}): Promise<IAttribute[]>;
|
|
37
|
+
/**
|
|
38
|
+
* Retrieve libraries linked to attribute
|
|
39
|
+
*/
|
|
40
|
+
getAttributeLibraries(params: {
|
|
41
|
+
attributeId: string;
|
|
42
|
+
ctx: IQueryInfos;
|
|
43
|
+
}): Promise<ILibrary[]>;
|
|
44
|
+
}
|
|
45
|
+
export declare const ATTRIB_COLLECTION_NAME = "core_attributes";
|
|
46
|
+
interface IDeps {
|
|
47
|
+
'core.infra.db.dbService'?: IDbService;
|
|
48
|
+
'core.infra.db.dbUtils'?: IDbUtils;
|
|
49
|
+
'core.infra.value'?: IValueRepo;
|
|
50
|
+
'core.utils'?: IUtils;
|
|
51
|
+
}
|
|
52
|
+
export interface IAttributeForRepo extends IAttribute {
|
|
53
|
+
multiple_values: boolean;
|
|
54
|
+
}
|
|
55
|
+
export default function ({ 'core.infra.db.dbService': dbService, 'core.infra.db.dbUtils': dbUtils, 'core.infra.value': valueRepo, 'core.utils': utils }?: IDeps): IAttributeRepo;
|
|
56
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './attributeRepo';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { IFilterTypesHelper } from 'infra/record/helpers/filterTypes';
|
|
2
|
+
import { IUtils } from 'utils/utils';
|
|
3
|
+
import { AttributeTypes } from '../../_types/attribute';
|
|
4
|
+
import { IDbService } from '../db/dbService';
|
|
5
|
+
import { IDbUtils } from '../db/dbUtils';
|
|
6
|
+
import { IAttributeTypeRepo } from './attributeTypesRepo';
|
|
7
|
+
import { GetConditionPart } from './helpers/getConditionPart';
|
|
8
|
+
import { IAttributeSimpleLinkRepo } from './attributeSimpleLinkRepo';
|
|
9
|
+
export type IAttributeAdvancedLinkRepo = IAttributeTypeRepo<AttributeTypes.ADVANCED_LINK>;
|
|
10
|
+
interface IDeps {
|
|
11
|
+
'core.infra.db.dbService'?: IDbService;
|
|
12
|
+
'core.infra.db.dbUtils'?: IDbUtils;
|
|
13
|
+
'core.infra.attributeTypes.attributeSimpleLink'?: IAttributeSimpleLinkRepo;
|
|
14
|
+
'core.infra.attributeTypes.helpers.getConditionPart'?: GetConditionPart;
|
|
15
|
+
'core.infra.record.helpers.filterTypes'?: IFilterTypesHelper;
|
|
16
|
+
'core.utils'?: IUtils;
|
|
17
|
+
}
|
|
18
|
+
export default function ({ 'core.infra.db.dbService': dbService, 'core.infra.db.dbUtils': dbUtils, 'core.infra.attributeTypes.attributeSimpleLink': attributeSimpleLinkRepo, 'core.infra.attributeTypes.helpers.getConditionPart': getConditionPart, 'core.infra.record.helpers.filterTypes': filterTypes, 'core.utils': utils }?: IDeps): IAttributeAdvancedLinkRepo;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IDbUtils } from 'infra/db/dbUtils';
|
|
2
|
+
import { IFilterTypesHelper } from 'infra/record/helpers/filterTypes';
|
|
3
|
+
import { AttributeTypes } from '../../_types/attribute';
|
|
4
|
+
import { IDbService } from '../db/dbService';
|
|
5
|
+
import { IAttributeTypeRepo } from './attributeTypesRepo';
|
|
6
|
+
import { GetConditionPart } from './helpers/getConditionPart';
|
|
7
|
+
export interface IAttributeAdvancedRepoDeps {
|
|
8
|
+
'core.infra.db.dbService': IDbService;
|
|
9
|
+
'core.infra.db.dbUtils': IDbUtils;
|
|
10
|
+
'core.infra.attributeTypes.helpers.getConditionPart': GetConditionPart;
|
|
11
|
+
'core.infra.record.helpers.filterTypes': IFilterTypesHelper;
|
|
12
|
+
}
|
|
13
|
+
export type IAttributeAdvancedRepo = IAttributeTypeRepo<AttributeTypes.ADVANCED>;
|
|
14
|
+
export default function ({ 'core.infra.db.dbService': dbService, 'core.infra.db.dbUtils': dbUtils, 'core.infra.attributeTypes.helpers.getConditionPart': getConditionPart, 'core.infra.record.helpers.filterTypes': filterTypesHelper }: IAttributeAdvancedRepoDeps): IAttributeAdvancedRepo;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IFilterTypesHelper } from 'infra/record/helpers/filterTypes';
|
|
2
|
+
import { AttributeTypes } from '../../_types/attribute';
|
|
3
|
+
import { IDbService } from '../db/dbService';
|
|
4
|
+
import { IDbUtils } from '../db/dbUtils';
|
|
5
|
+
import { IAttributeTypeRepo } from './attributeTypesRepo';
|
|
6
|
+
import { GetConditionPart } from './helpers/getConditionPart';
|
|
7
|
+
import { IAttributeSimpleRepo } from './attributeSimpleRepo';
|
|
8
|
+
interface IDeps {
|
|
9
|
+
'core.infra.db.dbService'?: IDbService;
|
|
10
|
+
'core.infra.db.dbUtils'?: IDbUtils;
|
|
11
|
+
'core.infra.attributeTypes.attributeSimple'?: IAttributeSimpleRepo;
|
|
12
|
+
'core.infra.attributeTypes.helpers.getConditionPart'?: GetConditionPart;
|
|
13
|
+
'core.infra.record.helpers.filterTypes'?: IFilterTypesHelper;
|
|
14
|
+
}
|
|
15
|
+
export type IAttributeSimpleLinkRepo = IAttributeTypeRepo<AttributeTypes.SIMPLE_LINK>;
|
|
16
|
+
export default function ({ 'core.infra.db.dbService': dbService, 'core.infra.db.dbUtils': dbUtils, 'core.infra.attributeTypes.attributeSimple': attributeSimpleRepo, 'core.infra.attributeTypes.helpers.getConditionPart': getConditionPart, 'core.infra.record.helpers.filterTypes': filterTypesHelper }?: IDeps): IAttributeSimpleLinkRepo;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IFilterTypesHelper } from 'infra/record/helpers/filterTypes';
|
|
2
|
+
import { AttributeTypes } from '../../_types/attribute';
|
|
3
|
+
import { IDbService } from '../db/dbService';
|
|
4
|
+
import { IAttributeTypeRepo } from './attributeTypesRepo';
|
|
5
|
+
import { GetConditionPart } from './helpers/getConditionPart';
|
|
6
|
+
interface IDeps {
|
|
7
|
+
'core.infra.db.dbService'?: IDbService;
|
|
8
|
+
'core.infra.attributeTypes.helpers.getConditionPart'?: GetConditionPart;
|
|
9
|
+
'core.infra.record.helpers.filterTypes'?: IFilterTypesHelper;
|
|
10
|
+
}
|
|
11
|
+
export type IAttributeSimpleRepo = IAttributeTypeRepo<AttributeTypes.SIMPLE>;
|
|
12
|
+
export default function ({ 'core.infra.db.dbService': dbService, 'core.infra.attributeTypes.helpers.getConditionPart': getConditionPart, 'core.infra.record.helpers.filterTypes': filterTypesHelper }?: IDeps): IAttributeSimpleRepo;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IFilterTypesHelper } from 'infra/record/helpers/filterTypes';
|
|
2
|
+
import { IUtils } from 'utils/utils';
|
|
3
|
+
import { AttributeTypes } from '../../_types/attribute';
|
|
4
|
+
import { IDbService } from '../db/dbService';
|
|
5
|
+
import { IDbUtils } from '../db/dbUtils';
|
|
6
|
+
import { IAttributeTypeRepo } from './attributeTypesRepo';
|
|
7
|
+
import { GetConditionPart } from './helpers/getConditionPart';
|
|
8
|
+
interface IDeps {
|
|
9
|
+
'core.infra.db.dbService'?: IDbService;
|
|
10
|
+
'core.infra.db.dbUtils'?: IDbUtils;
|
|
11
|
+
'core.infra.attributeTypes.helpers.getConditionPart'?: GetConditionPart;
|
|
12
|
+
'core.infra.record.helpers.filterTypes'?: IFilterTypesHelper;
|
|
13
|
+
'core.utils'?: IUtils;
|
|
14
|
+
}
|
|
15
|
+
export type IAttributeTreeRepo = IAttributeTypeRepo<AttributeTypes.TREE>;
|
|
16
|
+
export default function ({ 'core.infra.db.dbService': dbService, 'core.infra.db.dbUtils': dbUtils, 'core.infra.attributeTypes.helpers.getConditionPart': getConditionPart, 'core.infra.record.helpers.filterTypes': filterTypes, 'core.utils': utils }?: IDeps): IAttributeTreeRepo;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { AqlLiteral, GeneratedAqlQuery } from 'arangojs/aql';
|
|
2
|
+
import { IQueryInfos } from '_types/queryInfos';
|
|
3
|
+
import { AttributeTypes, IAttribute } from '../../_types/attribute';
|
|
4
|
+
import { AttributeCondition, IRecordFilterOption } from '../../_types/record';
|
|
5
|
+
import { ISaveValueByAttributeType, IValueByAttributeType, IValuesOptions } from '../../_types/value';
|
|
6
|
+
import { IAttributeSimpleRepo } from './attributeSimpleRepo';
|
|
7
|
+
import { IAttributeSimpleLinkRepo } from './attributeSimpleLinkRepo';
|
|
8
|
+
import { IAttributeAdvancedRepo } from './attributeAdvancedRepo';
|
|
9
|
+
import { IAttributeAdvancedLinkRepo } from './attributeAdvancedLinkRepo';
|
|
10
|
+
import { IAttributeTreeRepo } from './attributeTreeRepo';
|
|
11
|
+
export type IAttributeWithRepo = IAttributeWithRevLink & {
|
|
12
|
+
_repo: IAttributeTypeRepo;
|
|
13
|
+
};
|
|
14
|
+
type IAttributeRepoByType<AttributeType extends AttributeTypes | unknown> = AttributeType extends AttributeTypes.SIMPLE ? IAttributeSimpleRepo : AttributeType extends AttributeTypes.SIMPLE_LINK ? IAttributeSimpleLinkRepo : AttributeType extends AttributeTypes.ADVANCED ? IAttributeAdvancedRepo : AttributeType extends AttributeTypes.ADVANCED_LINK ? IAttributeAdvancedLinkRepo : AttributeType extends AttributeTypes.TREE ? IAttributeTreeRepo : IAttributeTypeRepo;
|
|
15
|
+
export interface IAttributeTypesRepo {
|
|
16
|
+
getTypeRepo<AttributeType extends AttributeTypes | unknown>(attribute: IAttribute): IAttributeRepoByType<AttributeType>;
|
|
17
|
+
}
|
|
18
|
+
export interface IAttributeWithRevLink extends IAttribute {
|
|
19
|
+
reverse_link?: IAttribute;
|
|
20
|
+
}
|
|
21
|
+
export type GetConditionPartParentFunc = (condition: AttributeCondition, value: string | number | boolean, attribute: IAttribute) => GetConditionPartFunc;
|
|
22
|
+
export type IGetValuesOptions = Pick<IValuesOptions, 'forceGetAllValues' | 'version'>;
|
|
23
|
+
export type GetConditionPartFunc = (valueIdentifier: string | AqlLiteral) => GeneratedAqlQuery;
|
|
24
|
+
/**
|
|
25
|
+
* Define interface used for all attribute type specific files
|
|
26
|
+
*/
|
|
27
|
+
export interface IAttributeTypeRepo<AttributeType extends AttributeTypes = AttributeTypes, Value = IValueByAttributeType[AttributeType]> {
|
|
28
|
+
createValue({ library, recordId, attribute, value, ctx }: {
|
|
29
|
+
library: string;
|
|
30
|
+
recordId: string;
|
|
31
|
+
attribute: IAttributeWithRevLink;
|
|
32
|
+
value: ISaveValueByAttributeType[AttributeType];
|
|
33
|
+
ctx: IQueryInfos;
|
|
34
|
+
}): Promise<Value>;
|
|
35
|
+
/**
|
|
36
|
+
* Update an existing value. Field "id" is expected on the value
|
|
37
|
+
*/
|
|
38
|
+
updateValue({ library, recordId, attribute, value, ctx }: {
|
|
39
|
+
library: string;
|
|
40
|
+
recordId: string;
|
|
41
|
+
attribute: IAttributeWithRevLink;
|
|
42
|
+
value: ISaveValueByAttributeType[AttributeType];
|
|
43
|
+
ctx: IQueryInfos;
|
|
44
|
+
}): Promise<Value>;
|
|
45
|
+
/**
|
|
46
|
+
* Delete an existing value. Field "id" is expected on the value
|
|
47
|
+
*/
|
|
48
|
+
deleteValue({ library, recordId, attribute, value, ctx }: {
|
|
49
|
+
library: string;
|
|
50
|
+
recordId: string;
|
|
51
|
+
attribute: IAttributeWithRevLink;
|
|
52
|
+
value: Value;
|
|
53
|
+
ctx: IQueryInfos;
|
|
54
|
+
}): Promise<Value>;
|
|
55
|
+
/**
|
|
56
|
+
* Check if a value is unique
|
|
57
|
+
*/
|
|
58
|
+
isValueUsed?({ library, excludedRecordId, attribute, value, ctx }: {
|
|
59
|
+
library: string;
|
|
60
|
+
excludedRecordId?: string;
|
|
61
|
+
attribute: IAttribute;
|
|
62
|
+
value: Value;
|
|
63
|
+
ctx: IQueryInfos;
|
|
64
|
+
}): Promise<boolean>;
|
|
65
|
+
/**
|
|
66
|
+
* Get all values for given record and attribute
|
|
67
|
+
*
|
|
68
|
+
* @return Array<{}> Return an empty array if no value found
|
|
69
|
+
*/
|
|
70
|
+
getValues({ library, recordId, attribute, forceGetAllValues, options, ctx }: {
|
|
71
|
+
library: string;
|
|
72
|
+
recordId: string;
|
|
73
|
+
attribute: IAttributeWithRevLink;
|
|
74
|
+
forceGetAllValues?: boolean;
|
|
75
|
+
options?: IGetValuesOptions;
|
|
76
|
+
ctx: IQueryInfos;
|
|
77
|
+
}): Promise<Value[]>;
|
|
78
|
+
/**
|
|
79
|
+
* Get all values for given records and attribute
|
|
80
|
+
*
|
|
81
|
+
* @return Array<{}> Return an empty array if no value found for each record
|
|
82
|
+
*/
|
|
83
|
+
getValuesBatch({ library, attribute, recordIds, options, ctx }: {
|
|
84
|
+
library: string;
|
|
85
|
+
attribute: IAttributeWithRevLink;
|
|
86
|
+
recordIds: string[];
|
|
87
|
+
options?: IGetValuesOptions;
|
|
88
|
+
ctx: IQueryInfos;
|
|
89
|
+
}): Promise<Value[][]>;
|
|
90
|
+
/**
|
|
91
|
+
* Get all reverse values for given attribute / value
|
|
92
|
+
*
|
|
93
|
+
* @return Array<{}> Return an empty array if no value found
|
|
94
|
+
*/
|
|
95
|
+
getReverseValues?({ advancedLinkAttr, ctx }: {
|
|
96
|
+
advancedLinkAttr: IAttributeWithRevLink;
|
|
97
|
+
value: string;
|
|
98
|
+
forceGetAllValues: boolean;
|
|
99
|
+
ctx: IQueryInfos;
|
|
100
|
+
}): Promise<Value[]>;
|
|
101
|
+
/**
|
|
102
|
+
* Get all reverse values for given attribute / values
|
|
103
|
+
*
|
|
104
|
+
* @return Array<{}> Return an empty array if no value found for each record
|
|
105
|
+
*/
|
|
106
|
+
getReverseValuesBatch?({ advancedLinkAttr, ctx }: {
|
|
107
|
+
advancedLinkAttr: IAttributeWithRevLink;
|
|
108
|
+
values: string[];
|
|
109
|
+
forceGetAllValues: boolean;
|
|
110
|
+
ctx: IQueryInfos;
|
|
111
|
+
}): Promise<Value[][]>;
|
|
112
|
+
/**
|
|
113
|
+
* Return a specific value based on its ID. Field "id" is expect on the value
|
|
114
|
+
*
|
|
115
|
+
* @return {} Return null if no value found
|
|
116
|
+
*/
|
|
117
|
+
getValueById?({ library, recordId, attribute, valueId, ctx }: {
|
|
118
|
+
library: string;
|
|
119
|
+
recordId: string;
|
|
120
|
+
attribute: IAttribute;
|
|
121
|
+
valueId: string;
|
|
122
|
+
ctx: IQueryInfos;
|
|
123
|
+
}): Promise<Value>;
|
|
124
|
+
/**
|
|
125
|
+
* Return AQL query part to retrieve value for this attribute.
|
|
126
|
+
* If will be concatenate with other filters and full query
|
|
127
|
+
*/
|
|
128
|
+
filterValueQueryPart(attributes: IAttributeWithRepo[], filter: IRecordFilterOption, parentIdentifier?: string): GeneratedAqlQuery;
|
|
129
|
+
/**
|
|
130
|
+
* Return AQL query part to sort on this attribute
|
|
131
|
+
*/
|
|
132
|
+
sortQueryPart({ attributes, order }: {
|
|
133
|
+
attributes: IAttributeWithRevLink[];
|
|
134
|
+
order: string;
|
|
135
|
+
}): GeneratedAqlQuery;
|
|
136
|
+
/**
|
|
137
|
+
* Clear all values of given attribute. Can be used to cleanup values when an attribute is deleted for example.
|
|
138
|
+
*
|
|
139
|
+
* @param attribute
|
|
140
|
+
* @return Promise<number> TRUE if operation succeed
|
|
141
|
+
*/
|
|
142
|
+
clearAllValues({ attribute, ctx }: {
|
|
143
|
+
attribute: IAttribute;
|
|
144
|
+
ctx: IQueryInfos;
|
|
145
|
+
}): Promise<boolean>;
|
|
146
|
+
}
|
|
147
|
+
export declare const ATTRIB_COLLECTION_NAME = "core_attributes";
|
|
148
|
+
export declare const BASE_QUERY_IDENTIFIER = "r";
|
|
149
|
+
export declare const isValuesCountCondition: (condition: AttributeCondition) => boolean;
|
|
150
|
+
interface IDeps {
|
|
151
|
+
'core.infra.attributeTypes.attributeSimple'?: IAttributeSimpleRepo;
|
|
152
|
+
'core.infra.attributeTypes.attributeSimpleLink'?: IAttributeSimpleLinkRepo;
|
|
153
|
+
'core.infra.attributeTypes.attributeAdvanced'?: IAttributeAdvancedRepo;
|
|
154
|
+
'core.infra.attributeTypes.attributeAdvancedLink'?: IAttributeAdvancedLinkRepo;
|
|
155
|
+
'core.infra.attributeTypes.attributeTree'?: IAttributeTreeRepo;
|
|
156
|
+
}
|
|
157
|
+
export default function ({ 'core.infra.attributeTypes.attributeSimple': attributeSimpleRepo, 'core.infra.attributeTypes.attributeSimpleLink': attributeSimpleLinkRepo, 'core.infra.attributeTypes.attributeAdvanced': attributeAdvancedRepo, 'core.infra.attributeTypes.attributeAdvancedLink': attributeAdvancedLinkRepo, 'core.infra.attributeTypes.attributeTree': attributeTreeRepo }?: IDeps): IAttributeTypesRepo;
|
|
158
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AqlLiteral, GeneratedAqlQuery } from 'arangojs/aql';
|
|
2
|
+
import { IAttribute } from '../../../_types/attribute';
|
|
3
|
+
import { AttributeCondition } from '../../../_types/record';
|
|
4
|
+
export type GetConditionPart = (valueIdentifier: string | AqlLiteral, condition: AttributeCondition, value: string | number | boolean, attribute: IAttribute, isCountFilter: boolean) => GeneratedAqlQuery;
|
|
5
|
+
export default function (): GetConditionPart;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as getConditionPart } from './getConditionPart';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as attributeAdvancedLink } from './attributeAdvancedLinkRepo';
|
|
2
|
+
export { default as attributeAdvanced } from './attributeAdvancedRepo';
|
|
3
|
+
export { default as attributeSimpleLink } from './attributeSimpleLinkRepo';
|
|
4
|
+
export { default as attributeSimple } from './attributeSimpleRepo';
|
|
5
|
+
export { default as attributeTree } from './attributeTreeRepo';
|
|
6
|
+
export { default } from './attributeTypesRepo';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { IQueryInfos } from '_types/queryInfos';
|
|
2
|
+
export interface IMemoizeParams<T> {
|
|
3
|
+
key: string;
|
|
4
|
+
func: () => Promise<T>;
|
|
5
|
+
storeNulls?: boolean;
|
|
6
|
+
ctx: IQueryInfos;
|
|
7
|
+
}
|
|
8
|
+
export interface ICachesService {
|
|
9
|
+
getCache(type: ECacheType): ICacheService;
|
|
10
|
+
memoize<T>(params: IMemoizeParams<T>): Promise<T>;
|
|
11
|
+
}
|
|
12
|
+
export interface IStoreDataParams {
|
|
13
|
+
key: string;
|
|
14
|
+
data: string;
|
|
15
|
+
path?: string;
|
|
16
|
+
expiresIn?: number;
|
|
17
|
+
}
|
|
18
|
+
export interface ICacheService {
|
|
19
|
+
storeData(params: IStoreDataParams): Promise<void>;
|
|
20
|
+
getData(keys: string[], path?: string): Promise<string[]>;
|
|
21
|
+
deleteData(keys: string[], path?: string): Promise<void>;
|
|
22
|
+
deleteAll(path?: string): Promise<void>;
|
|
23
|
+
}
|
|
24
|
+
interface IDeps {
|
|
25
|
+
'core.infra.cache.ramService': ICacheService;
|
|
26
|
+
'core.infra.cache.diskService': ICacheService;
|
|
27
|
+
}
|
|
28
|
+
export declare enum ECacheType {
|
|
29
|
+
DISK = "DISK",
|
|
30
|
+
RAM = "RAM"
|
|
31
|
+
}
|
|
32
|
+
export default function ({ 'core.infra.cache.ramService': ramService, 'core.infra.cache.diskService': diskService }: IDeps): ICachesService;
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IConfig } from '_types/config';
|
|
2
|
+
import { ICacheService } from './cacheService';
|
|
3
|
+
import { RedisClientType } from './redis';
|
|
4
|
+
interface IDeps {
|
|
5
|
+
config?: IConfig;
|
|
6
|
+
'core.infra.redis'?: RedisClientType;
|
|
7
|
+
}
|
|
8
|
+
export default function ({ config, 'core.infra.redis': redis }: IDeps): ICacheService;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as redis from 'redis';
|
|
2
|
+
import { IConfig } from '_types/config';
|
|
3
|
+
interface IDeps {
|
|
4
|
+
config?: IConfig;
|
|
5
|
+
}
|
|
6
|
+
export type RedisClientType = ReturnType<typeof redis.createClient>;
|
|
7
|
+
export declare function initRedis({ config }: IDeps): Promise<RedisClientType>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { AqlQuery } from 'arangojs/aql';
|
|
2
|
+
import { IQueryInfos } from '_types/queryInfos';
|
|
3
|
+
export interface IDbDocument {
|
|
4
|
+
_id: string;
|
|
5
|
+
_key: string;
|
|
6
|
+
_rev: string;
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}
|
|
9
|
+
export interface IDbEdge extends IDbDocument {
|
|
10
|
+
_from: string;
|
|
11
|
+
_to: string;
|
|
12
|
+
}
|
|
13
|
+
export interface IExecute {
|
|
14
|
+
query: string | AqlQuery;
|
|
15
|
+
ctx: IQueryInfos;
|
|
16
|
+
withTotalCount?: boolean;
|
|
17
|
+
attempts?: number;
|
|
18
|
+
}
|
|
19
|
+
export interface IExecuteWithCount<T = IDbDocument> {
|
|
20
|
+
totalCount: number;
|
|
21
|
+
results: T[];
|
|
22
|
+
}
|
|
23
|
+
export declare const isExecuteWithCount: (res: IExecuteWithCount<unknown> | unknown[]) => res is IExecuteWithCount<unknown>;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Database } from 'arangojs';
|
|
2
|
+
import { Analyzer, CreateAnalyzerOptions } from 'arangojs/analyzer';
|
|
3
|
+
import { CollectionType } from 'arangojs/collection';
|
|
4
|
+
import { CreateViewOptions, View } from 'arangojs/view';
|
|
5
|
+
import { IUtils } from 'utils/utils';
|
|
6
|
+
import { IConfig } from '_types/config';
|
|
7
|
+
import { IDbDocument, IExecute, IExecuteWithCount } from './_types';
|
|
8
|
+
export interface IDbService {
|
|
9
|
+
db?: Database;
|
|
10
|
+
/**
|
|
11
|
+
* Execute an AQL query
|
|
12
|
+
* If withTotalCount is set to true, return an object with totalCount and results. Otherwise, just return
|
|
13
|
+
* results straight from DB.
|
|
14
|
+
*
|
|
15
|
+
* @param query
|
|
16
|
+
* @param withTotalCount
|
|
17
|
+
* @param attempts Used when we have to retry a query after a write-write conflict
|
|
18
|
+
* @throws If query fails or we still have a conflict after all attempts
|
|
19
|
+
*/
|
|
20
|
+
execute?<T extends IExecuteWithCount<unknown> | unknown[] = IDbDocument[]>(params: IExecute): Promise<T>;
|
|
21
|
+
/**
|
|
22
|
+
* Create a new collection in database
|
|
23
|
+
*
|
|
24
|
+
* @param name Collection name
|
|
25
|
+
* @param type Document or edge collection?
|
|
26
|
+
* @throws If collection already exists
|
|
27
|
+
*/
|
|
28
|
+
createCollection?(name: string, type?: CollectionType): Promise<void> | null;
|
|
29
|
+
/**
|
|
30
|
+
* Delete a collection in database
|
|
31
|
+
*
|
|
32
|
+
* @param name Collection name
|
|
33
|
+
* @param type Document or edge collection?
|
|
34
|
+
* @throws If collection already exists
|
|
35
|
+
*/
|
|
36
|
+
dropCollection?(name: string, type?: CollectionType): Promise<void> | null;
|
|
37
|
+
/**
|
|
38
|
+
* Check if collection already exists
|
|
39
|
+
*
|
|
40
|
+
* @param name
|
|
41
|
+
*/
|
|
42
|
+
collectionExists?(name: string): Promise<boolean>;
|
|
43
|
+
createAnalyzer?(name: string, options: CreateAnalyzerOptions): Promise<Analyzer>;
|
|
44
|
+
/**
|
|
45
|
+
* Create a view in database
|
|
46
|
+
*
|
|
47
|
+
* @param name View name
|
|
48
|
+
* @param properties ArangoSearchView properties
|
|
49
|
+
* @throws If collection not exists
|
|
50
|
+
*/
|
|
51
|
+
createView?(name: string, options: CreateViewOptions): Promise<View>;
|
|
52
|
+
views?(): Promise<View[]>;
|
|
53
|
+
analyzers?(): Promise<Analyzer[]>;
|
|
54
|
+
}
|
|
55
|
+
export interface IDbServiceDeps {
|
|
56
|
+
'core.infra.db': Database;
|
|
57
|
+
'core.utils': IUtils;
|
|
58
|
+
config: IConfig;
|
|
59
|
+
}
|
|
60
|
+
export default function ({ 'core.infra.db': db, 'core.utils': utils, config }: IDbServiceDeps): IDbService;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|