@aristid/leav-types 0.0.7 → 1.0.0-78735ccf
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 +43 -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 +23 -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 +19 -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/formatLogValue.d.ts +23 -0
- package/apps/core/src/domain/value/helpers/formatLogValue.spec.d.ts +1 -0
- package/apps/core/src/domain/value/helpers/index.d.ts +1 -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 +27 -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 +17 -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,32 @@
|
|
|
1
|
+
import { AqlQuery } from 'arangojs/aql';
|
|
2
|
+
export interface IDbProfilerQuery {
|
|
3
|
+
count: number;
|
|
4
|
+
query: string | AqlQuery;
|
|
5
|
+
callers: Record<string, {
|
|
6
|
+
/**
|
|
7
|
+
* Stacktrace of caller
|
|
8
|
+
*/
|
|
9
|
+
stack: string;
|
|
10
|
+
count: number;
|
|
11
|
+
/**
|
|
12
|
+
* Stats for each call for that query
|
|
13
|
+
*/
|
|
14
|
+
stats: Array<{
|
|
15
|
+
/**
|
|
16
|
+
* Arangodb query execution time in ms
|
|
17
|
+
*/
|
|
18
|
+
executionTimeMs: number | null;
|
|
19
|
+
/**
|
|
20
|
+
* Time spent in nodejs to process the query in ms
|
|
21
|
+
*/
|
|
22
|
+
nodejsTimeMs: number;
|
|
23
|
+
}>;
|
|
24
|
+
}>;
|
|
25
|
+
}
|
|
26
|
+
export interface IDbProfiler {
|
|
27
|
+
totalCount: number;
|
|
28
|
+
uniqueQueriesCount: number;
|
|
29
|
+
queries: {
|
|
30
|
+
[key: string]: IDbProfilerQuery;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RequestHandler } from 'express';
|
|
2
|
+
/**
|
|
3
|
+
* Duplicate type from express-serve-static-core/IRouterMatcher second generic type
|
|
4
|
+
*/
|
|
5
|
+
export type ExpressAppMethod = 'all' | 'get' | 'post' | 'put' | 'delete' | 'patch' | 'options' | 'head';
|
|
6
|
+
export type PluginRegisterRoute<T = any> = [
|
|
7
|
+
path: string,
|
|
8
|
+
method: ExpressAppMethod,
|
|
9
|
+
handlers: Array<RequestHandler<T>>,
|
|
10
|
+
isProtected?: boolean
|
|
11
|
+
];
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
export declare enum ErrorTypes {
|
|
2
|
+
VALIDATION_ERROR = "VALIDATION_ERROR",
|
|
3
|
+
PERMISSION_ERROR = "PERMISSION_ERROR",
|
|
4
|
+
INTERNAL_ERROR = "INTERNAL_ERROR"
|
|
5
|
+
}
|
|
6
|
+
export declare enum Errors {
|
|
7
|
+
ATTRIBUTE_USED_IN_METADATA = "ATTRIBUTE_USED_IN_METADATA",
|
|
8
|
+
CANNOT_SAVE_METADATA = "CANNOT_SAVE_METADATA",
|
|
9
|
+
DUPLICATE_DIRECTORY_NAMES = "DUPLICATE_DIRECTORY_NAMES",
|
|
10
|
+
DUPLICATE_FILENAMES = "DUPLICATE_FILENAMES",
|
|
11
|
+
ELEMENT_ALREADY_PRESENT = "ELEMENT_ALREADY_PRESENT",
|
|
12
|
+
ELEMENT_ALREADY_PRESENT_IN_ANCESTORS = "ELEMENT_ALREADY_PRESENT_IN_ANCESTORS",
|
|
13
|
+
ELEMENT_NOT_IN_TREE = "ELEMENT_NOT_IN_TREE",
|
|
14
|
+
ELEMENT_WITH_SAME_PATH_ALREADY_PRESENT = "ELEMENT_WITH_SAME_PATH_ALREADY_PRESENT",
|
|
15
|
+
ENCRYPT_ERROR = "ENCRYPT_ERROR",
|
|
16
|
+
ERROR = "ERROR",
|
|
17
|
+
EXCEL_CALCULATION_ERROR = "EXCEL_CALCULATION_ERROR",
|
|
18
|
+
FILE_ERROR = "FILE_ERROR",
|
|
19
|
+
FILE_NOT_FOUND = "FILE_NOT_FOUND",
|
|
20
|
+
FORBIDDEN_FILES = "FORBIDDEN_FILES",
|
|
21
|
+
FORBIDDEN_ID = "FORBIDDEN_ID",
|
|
22
|
+
FORBIDDEN_KEY = "FORBIDDEN_KEY",
|
|
23
|
+
FORMAT_ERROR = "FORMAT_ERROR",
|
|
24
|
+
INVALID_ACTION_TYPE = "INVALID_ACTION_TYPE",
|
|
25
|
+
INVALID_ATTRIBUTE_FILTER_FORMAT = "INVALID_ATTRIBUTE_FILTER_FORMAT",
|
|
26
|
+
INVALID_ATTRIBUTE_FOR_LIBRARY = "INVALID_ATTRIBUTE_FOR_LIBRARY",
|
|
27
|
+
INVALID_ATTRIBUTES = "INVALID_ATTRIBUTES",
|
|
28
|
+
INVALID_DATE_RANGE = "INVALID_DATE_RANGE",
|
|
29
|
+
INVALID_EMAIL = "INVALID_EMAIL",
|
|
30
|
+
INVALID_ENDPOINT_FORMAT = "INVALID_ENDPOINT_FORMAT",
|
|
31
|
+
INVALID_FILE_FORMAT = "INVALID_FILE_FORMAT",
|
|
32
|
+
INVALID_FILTER_CONDITION_VALUE = "INVALID_FILTER_CONDITION_VALUE",
|
|
33
|
+
INVALID_FILTER_FIELDS = "INVALID_FILTERS_FIELDS",
|
|
34
|
+
INVALID_FILTER_FORMAT = "INVALID_FILTER_FORMAT",
|
|
35
|
+
INVALID_FILTERS_EXPRESSION = "INVALID_FILTERS_EXPRESSION",
|
|
36
|
+
INVALID_FULLTEXT_ATTRIBUTES = "INVALID_FULLTEXT_ATTRIBUTES",
|
|
37
|
+
INVALID_ID_FORMAT = "INVALID_ID_FORMAT",
|
|
38
|
+
INVALID_MAPPING = "INVALID_MAPPING",
|
|
39
|
+
INVALID_PERMISSIONS_CONF_LIBRARIES = "INVALID_PERMISSIONS_CONF_LIBRARIES",
|
|
40
|
+
INVALID_REGEXP = "INVALID_REGEXP",
|
|
41
|
+
INVALID_SORT_FIELDS = "INVALID_SORT_FIELDS",
|
|
42
|
+
INVALID_TREE_FILTER_FORMAT = "INVALID_TREE_FILTER_FORMAT",
|
|
43
|
+
INVALID_URL = "INVALID_URL",
|
|
44
|
+
INVALID_VALUES = "INVALID_VALUES",
|
|
45
|
+
INVALID_VALUES_VERSIONS_SETTINGS_BAD_NODE_ID = "INVALID_VALUES_VERSIONS_SETTINGS_BAD_NODE_ID",
|
|
46
|
+
INVALID_VARIABLE_FUNCTION = "INVALID_VARIABLE_FUNCTION",
|
|
47
|
+
INVALID_VERSION = "INVALID_VERSION",
|
|
48
|
+
LIBRARY_FORBIDDEN_AS_CHILD = "LIBRARY FORBIDDEN AS CHILD",
|
|
49
|
+
METADATA_PERMISSION_ERROR = "METADATA_PERMISSION_ERROR",
|
|
50
|
+
MISSING_ACTION_PREFIX = "MISSING_ACTION_PREFIX",
|
|
51
|
+
MISSING_ELEMENTS = "MISSING_ELEMENTS",
|
|
52
|
+
MISSING_FIELDS = "MISSING_FIELDS",
|
|
53
|
+
MISSING_LIBRARY_ID = "MISSING_LIBRARY_ID",
|
|
54
|
+
MISSING_RECORD_ID = "MISSING_RECORD_ID",
|
|
55
|
+
MISSING_REQUIRED_ACTION = "MISSING_REQUIRED_ACTION",
|
|
56
|
+
MISSING_TARGET = "MISSING_TARGET",
|
|
57
|
+
MULTIPLE_VALUES_NOT_ALLOWED = "MULTIPLE_VALUES_NOT_ALLOWED",
|
|
58
|
+
NO_IMPORT_MATCHES = "NO_IMPORT_MATCHES",
|
|
59
|
+
NON_FILES_LIBRARY = "NON_FILES_LIBRARY",
|
|
60
|
+
ONLY_FOLDERS_CAN_BE_SELECTED = "ONLY_FOLDERS_CAN_BE_SELECTED",
|
|
61
|
+
PAGINATION_OFFSET_AND_CURSOR = "PAGINATION_OFFSET_AND_CURSOR",
|
|
62
|
+
PREVIEWS_SETTINGS_DUPLICATE_NAMES = "PREVIEWS_SETTINGS_DUPLICATE_NAMES",
|
|
63
|
+
PREVIEWS_SETTINGS_NOT_ALLOWED = "PREVIEWS_SETTINGS_NOT_ALLOWED",
|
|
64
|
+
PROTECTED_ENDPOINT = "PROTECTED_ENDPOINT",
|
|
65
|
+
READONLY_ATTRIBUTE = "READONLY_ATTRIBUTE",
|
|
66
|
+
RECORD_ACTIVATION_FAILED = "RECORD_ACTIVATION_FAILED",
|
|
67
|
+
REQUIRED_ATTRIBUTE = "REQUIRED_ATTRIBUTE",
|
|
68
|
+
REQUIRED_ATTRIBUTE_FORMAT = "REQUIRED_ATTRIBUTE_FORMAT",
|
|
69
|
+
REQUIRED_ATTRIBUTE_LABEL = "REQUIRED_ATTRIBUTE_LABEL",
|
|
70
|
+
REQUIRED_ATTRIBUTE_LINKED_LIBRARY = "REQUIRED_ATTRIBUTE_LINKED_LIBRARY",
|
|
71
|
+
REQUIRED_ATTRIBUTE_LINKED_TREE = "REQUIRED_ATTRIBUTE_LINKED_TREE",
|
|
72
|
+
REQUIRED_ATTRIBUTE_TYPE = "REQUIRED_ATTRIBUTE_TYPE",
|
|
73
|
+
SYSTEM_ATTRIBUTE_DELETION = "SYSTEM_ATTRIBUTE_DELETION",
|
|
74
|
+
SYSTEM_LIBRARY_DELETION = "SYSTEM_LIBRARY_DELETION",
|
|
75
|
+
SYSTEM_TREE_DELETION = "SYSTEM_TREE_DELETION",
|
|
76
|
+
TOO_MUCH_LIBRARIES_ON_FILES_TREE = "TOO_MUCH_LIBRARIES_ON_FILES_TREE",
|
|
77
|
+
UNBINDED_ATTRIBUTES = "UNBINDED_ATTRIBUTES",
|
|
78
|
+
UNIQUE_VALUE_NOT_ALLOWED = "UNIQUE_VALUE_NOT_ALLOWED",
|
|
79
|
+
UNKNOWN_API_KEY = "UNKNOWN_API_KEY",
|
|
80
|
+
UNKNOWN_APPLICATION = "UNKNOWN_APPLICATION",
|
|
81
|
+
UNKNOWN_ATTRIBUTE = "UNKNOWN_ATTRIBUTE",
|
|
82
|
+
UNKNOWN_ATTRIBUTES = "UNKNOWN_ATTRIBUTES",
|
|
83
|
+
UNKNOWN_ELEMENT = "UNKNOWN_ELEMENT",
|
|
84
|
+
UNKNOWN_FORM = "UNKNOWN_FORM",
|
|
85
|
+
UNKNOWN_FORM_ATTRIBUTES = "UNKNOWN_FORM_ATTRIBUTES",
|
|
86
|
+
UNKNOWN_LIBRARIES = "UNKNOWN_LIBRARIES",
|
|
87
|
+
UNKNOWN_LIBRARY = "UNKNOWN_LIBRARY",
|
|
88
|
+
UNKNOWN_LIBRARY_ATTRIBUTE = "UNKNOWN_LIBRARY_ATTRIBUTE",
|
|
89
|
+
UNKNOWN_LINKED_RECORD = "UNKNOWN_LINKED_RECORD",
|
|
90
|
+
UNKNOWN_METADATA_FIELDS = "UNKNOWN_METADATA_FIELDS",
|
|
91
|
+
UNKNOWN_NODE = "UNKNOWN_NODE",
|
|
92
|
+
UNKNOWN_PARENT = "UNKNOWN_PARENT",
|
|
93
|
+
UNKNOWN_RECORD = "UNKNOWN_RECORD",
|
|
94
|
+
UNKNOWN_TREE = "UNKNOWN_TREE",
|
|
95
|
+
UNKNOWN_TREES = "UNKNOWN_TREES",
|
|
96
|
+
UNKNOWN_VALUE = "UNKNOWN_VALUE",
|
|
97
|
+
UNKNOWN_VERSION_PROFILE = "UNKNOWN_VERSION_PROFILE",
|
|
98
|
+
UNKNOWN_VERSION_TREE = "UNKNOWN_VERSION_TREE",
|
|
99
|
+
UNKNOWN_VIEW = "UNKNOWN_VIEW",
|
|
100
|
+
USER_IS_NOT_VIEW_OWNER = "USER_IS_NOT_VIEW_OWNER",
|
|
101
|
+
VALUE_NOT_UNIQUE = "VALUE_NOT_UNIQUE",
|
|
102
|
+
VALUE_EXCEEDS_CHARACTER_LIMIT = "VALUE_EXCEEDS_CHARACTER_LIMIT"
|
|
103
|
+
}
|
|
104
|
+
export interface IExtendedErrorMsg {
|
|
105
|
+
msg: Errors | string;
|
|
106
|
+
vars: {
|
|
107
|
+
[varName: string]: any;
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
export type ErrorFieldDetailMessage = Errors | IExtendedErrorMsg | string;
|
|
111
|
+
/**
|
|
112
|
+
* Field error details
|
|
113
|
+
* must be "fieldName: 'message about what failed'"
|
|
114
|
+
*/
|
|
115
|
+
export type ErrorFieldDetail<T> = {
|
|
116
|
+
[P in keyof T]?: ErrorFieldDetailMessage;
|
|
117
|
+
};
|
|
118
|
+
export declare const GRAPHQL_ERROR_CODES: {
|
|
119
|
+
VALIDATION_FAILED: string;
|
|
120
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { EventAction, IDbPayload } from '@leav/utils';
|
|
2
|
+
import { IApiKey } from './apiKey';
|
|
3
|
+
import { IApplication } from './application';
|
|
4
|
+
import { IAttribute } from './attribute';
|
|
5
|
+
import { IGlobalSettings } from './globalSettings';
|
|
6
|
+
import { ILibraryDbEvent } from './library';
|
|
7
|
+
import { IRecord } from './record';
|
|
8
|
+
import { IValue } from './value';
|
|
9
|
+
import { IVersionProfile } from './versionProfile';
|
|
10
|
+
import { IPermission } from './permissions';
|
|
11
|
+
import { ITree } from './tree';
|
|
12
|
+
/**
|
|
13
|
+
* Maybe move all DBPayloadData types in @leav/utils type to allow event consumers outside core to use them
|
|
14
|
+
* without having to redeclare them. For now before and after are any in @leav/utils
|
|
15
|
+
*/
|
|
16
|
+
export interface IDbPayloadInternal<DBPayloadAction extends EventAction> extends IDbPayload {
|
|
17
|
+
action: DBPayloadAction;
|
|
18
|
+
before?: IDBPayloadData<DBPayloadAction>;
|
|
19
|
+
after?: IDBPayloadData<DBPayloadAction>;
|
|
20
|
+
}
|
|
21
|
+
interface IDBPayloadDataMap {
|
|
22
|
+
[EventAction.VALUE_SAVE]: IValue;
|
|
23
|
+
[EventAction.VALUE_DELETE]: IValue;
|
|
24
|
+
[EventAction.ATTRIBUTE_SAVE]: IAttribute;
|
|
25
|
+
[EventAction.ATTRIBUTE_DELETE]: IAttribute;
|
|
26
|
+
[EventAction.RECORD_SAVE]: IRecord;
|
|
27
|
+
[EventAction.RECORD_DELETE]: IRecord;
|
|
28
|
+
[EventAction.API_KEY_SAVE]: IApiKey;
|
|
29
|
+
[EventAction.API_KEY_DELETE]: IApiKey;
|
|
30
|
+
[EventAction.APP_SAVE]: IApplication;
|
|
31
|
+
[EventAction.APP_DELETE]: IApplication;
|
|
32
|
+
[EventAction.GLOBAL_SETTINGS_SAVE]: IGlobalSettings;
|
|
33
|
+
[EventAction.LIBRARY_SAVE]: ILibraryDbEvent;
|
|
34
|
+
[EventAction.LIBRARY_DELETE]: ILibraryDbEvent;
|
|
35
|
+
[EventAction.VERSION_PROFILE_SAVE]: IVersionProfile;
|
|
36
|
+
[EventAction.VERSION_PROFILE_DELETE]: IVersionProfile;
|
|
37
|
+
[EventAction.TREE_ADD_ELEMENT]: string;
|
|
38
|
+
[EventAction.TREE_DELETE_ELEMENT]: string;
|
|
39
|
+
[EventAction.TREE_MOVE_ELEMENT]: string;
|
|
40
|
+
[EventAction.TREE_SAVE]: ITree;
|
|
41
|
+
[EventAction.TREE_DELETE]: ITree;
|
|
42
|
+
[EventAction.PERMISSION_SAVE]: IPermission;
|
|
43
|
+
}
|
|
44
|
+
export type IDBPayloadData<DBPayloadAction extends EventAction> = DBPayloadAction extends keyof IDBPayloadDataMap ? IDBPayloadDataMap[DBPayloadAction] : never;
|
|
45
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Request } from 'express';
|
|
2
|
+
import { IQueryInfos } from './queryInfos';
|
|
3
|
+
type Context = IQueryInfos & {
|
|
4
|
+
appFolder?: string;
|
|
5
|
+
};
|
|
6
|
+
export interface IRequestWithContext<P = any> extends Request<P> {
|
|
7
|
+
ctx: Context;
|
|
8
|
+
}
|
|
9
|
+
declare global {
|
|
10
|
+
namespace Express {
|
|
11
|
+
interface Request {
|
|
12
|
+
ctx: Context;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { IActionsListFunction } from './actionsList';
|
|
2
|
+
import { IAppGraphQLSchema } from './graphql';
|
|
3
|
+
import { PermissionTypes } from './permissions';
|
|
4
|
+
import { PluginRegisterRoute } from './endpoint';
|
|
5
|
+
export interface IExtensionPoints {
|
|
6
|
+
[name: string]: (...args: any[]) => void;
|
|
7
|
+
}
|
|
8
|
+
export interface IExtensionPointsFunctions extends IExtensionPoints {
|
|
9
|
+
/**
|
|
10
|
+
* Method to extend graphQL schema.
|
|
11
|
+
*
|
|
12
|
+
* This method is called automatically by `leav-engine/apps/core/src/pluginsLoader.ts`.
|
|
13
|
+
*
|
|
14
|
+
* @param {IAppGraphQLSchema} schemaPart
|
|
15
|
+
*/
|
|
16
|
+
registerGraphQLSchema: (schemaPart: IAppGraphQLSchema) => void;
|
|
17
|
+
registerTranslations: (path: string) => Promise<void>;
|
|
18
|
+
registerPermissionActions: (type: PermissionTypes, actions: string[], applyOn?: string[]) => void;
|
|
19
|
+
registerEventActions: (actions: string[], prefix: string) => void;
|
|
20
|
+
registerActions: (actions: IActionsListFunction[]) => void;
|
|
21
|
+
/**
|
|
22
|
+
* Method to register some Express routes inside LEAV Core.
|
|
23
|
+
*
|
|
24
|
+
* This method is called automatically by `leav-engine/apps/core/src/pluginsLoader.ts`.
|
|
25
|
+
*
|
|
26
|
+
* @param {PluginRegisterRoute[]} routes - list of routes to register
|
|
27
|
+
*/
|
|
28
|
+
registerRoutes: (routes: PluginRegisterRoute[]) => void;
|
|
29
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { IEmbeddedAttribute } from './attribute';
|
|
2
|
+
export declare enum FileEvents {
|
|
3
|
+
CREATE = "CREATE",
|
|
4
|
+
REMOVE = "REMOVE",
|
|
5
|
+
UPDATE = "UPDATE",
|
|
6
|
+
MOVE = "MOVE"
|
|
7
|
+
}
|
|
8
|
+
export declare enum FilesAttributes {
|
|
9
|
+
ROOT_KEY = "root_key",
|
|
10
|
+
FILE_PATH = "file_path",
|
|
11
|
+
FILE_NAME = "file_name",
|
|
12
|
+
INODE = "inode",
|
|
13
|
+
ACTIVE = "active",
|
|
14
|
+
HASH = "hash",
|
|
15
|
+
FILE_SIZE = "file_size",
|
|
16
|
+
MIME_TYPE1 = "mime_type1",
|
|
17
|
+
MIME_TYPE2 = "mime_type2",
|
|
18
|
+
HAS_CLIPPING_PATH = "has_clipping_path",
|
|
19
|
+
COLOR_SPACE = "color_space",
|
|
20
|
+
COLOR_PROFILE = "color_profile",
|
|
21
|
+
WIDTH = "width",
|
|
22
|
+
HEIGHT = "height",
|
|
23
|
+
PRINT_WIDTH = "print_width",
|
|
24
|
+
PRINT_HEIGHT = "print_height",
|
|
25
|
+
RESOLUTION = "resolution"
|
|
26
|
+
}
|
|
27
|
+
export declare const PREVIEWS_ATTRIBUTE_SUFFIX = "previews";
|
|
28
|
+
export declare const PREVIEWS_STATUS_ATTRIBUTE_SUFFIX = "previews_status";
|
|
29
|
+
export interface IFileEventData {
|
|
30
|
+
event: FileEvents;
|
|
31
|
+
time: number;
|
|
32
|
+
pathBefore: string | null;
|
|
33
|
+
pathAfter: string | null;
|
|
34
|
+
inode: number;
|
|
35
|
+
rootKey: string;
|
|
36
|
+
isDirectory: boolean;
|
|
37
|
+
hash?: string;
|
|
38
|
+
recordId?: string;
|
|
39
|
+
}
|
|
40
|
+
export interface IPreviewVersionSize {
|
|
41
|
+
size: number;
|
|
42
|
+
name: string;
|
|
43
|
+
output?: string;
|
|
44
|
+
}
|
|
45
|
+
export interface IPreviewVersion {
|
|
46
|
+
background: boolean | string;
|
|
47
|
+
density: number;
|
|
48
|
+
pdf?: string;
|
|
49
|
+
sizes: IPreviewVersionSize[];
|
|
50
|
+
}
|
|
51
|
+
export interface IPreviewMessage {
|
|
52
|
+
input: string;
|
|
53
|
+
context: any;
|
|
54
|
+
versions: IPreviewVersion[];
|
|
55
|
+
}
|
|
56
|
+
export interface IPreviewsStatus {
|
|
57
|
+
[sizeName: string]: {
|
|
58
|
+
status: number;
|
|
59
|
+
message: string;
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
export interface IPreviews {
|
|
63
|
+
[sizeName: string]: string;
|
|
64
|
+
}
|
|
65
|
+
export interface IPreviewResponseResult {
|
|
66
|
+
error: number;
|
|
67
|
+
error_detail: string;
|
|
68
|
+
params?: {
|
|
69
|
+
background?: true | false | string;
|
|
70
|
+
density?: number;
|
|
71
|
+
size: number;
|
|
72
|
+
output: string;
|
|
73
|
+
name: string;
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
export interface IPreviewResponseContext {
|
|
77
|
+
library: string;
|
|
78
|
+
recordId: string;
|
|
79
|
+
}
|
|
80
|
+
export interface IPreviewResponse {
|
|
81
|
+
context: IPreviewResponseContext;
|
|
82
|
+
input: string;
|
|
83
|
+
results?: IPreviewResponseResult[];
|
|
84
|
+
}
|
|
85
|
+
export interface IPreviewAttributesSettings {
|
|
86
|
+
[attributeId: string]: IEmbeddedAttribute[];
|
|
87
|
+
}
|
|
88
|
+
export type IFileMetadata = {
|
|
89
|
+
[key in FilesAttributes]?: string | number | boolean;
|
|
90
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { IAttribute } from './attribute';
|
|
2
|
+
import { IKeyValue } from './shared';
|
|
3
|
+
import { IValue } from './value';
|
|
4
|
+
export interface IForm extends ICoreEntity {
|
|
5
|
+
library: string;
|
|
6
|
+
system?: boolean;
|
|
7
|
+
dependencyAttributes?: string[];
|
|
8
|
+
elements?: IFormDependentElements[];
|
|
9
|
+
sidePanel: IFormSidePanel;
|
|
10
|
+
}
|
|
11
|
+
export interface IFormSidePanel {
|
|
12
|
+
enable: boolean;
|
|
13
|
+
isOpenByDefault: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface IRecordForm {
|
|
16
|
+
id: string;
|
|
17
|
+
library: string;
|
|
18
|
+
system: boolean;
|
|
19
|
+
recordId: string;
|
|
20
|
+
dependencyAttributes?: string[];
|
|
21
|
+
elements: IFormElementWithValues[];
|
|
22
|
+
sidePanel: IFormSidePanel;
|
|
23
|
+
}
|
|
24
|
+
export declare enum FormElementTypes {
|
|
25
|
+
field = "field",
|
|
26
|
+
layout = "layout"
|
|
27
|
+
}
|
|
28
|
+
export type IFormStrict = Required<IForm>;
|
|
29
|
+
export interface IFormElementsDependency {
|
|
30
|
+
attribute: string;
|
|
31
|
+
value: string;
|
|
32
|
+
}
|
|
33
|
+
export interface IFormDependentElements {
|
|
34
|
+
dependencyValue?: IFormElementsDependency | null;
|
|
35
|
+
elements: IFormElement[];
|
|
36
|
+
}
|
|
37
|
+
export interface IFormElement {
|
|
38
|
+
id: string;
|
|
39
|
+
order: number;
|
|
40
|
+
type: FormElementTypes;
|
|
41
|
+
uiElementType: string;
|
|
42
|
+
containerId: string;
|
|
43
|
+
settings?: IKeyValue<any>;
|
|
44
|
+
}
|
|
45
|
+
export interface IFormElementWithValues extends IFormElement {
|
|
46
|
+
values?: IValue[];
|
|
47
|
+
valueError?: string;
|
|
48
|
+
}
|
|
49
|
+
export type IFormElementWithValuesAndChildren = IFormElementWithValues & {
|
|
50
|
+
children: IFormElementWithValuesAndChildren[];
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Accepted fields to filter attributes list
|
|
54
|
+
*/
|
|
55
|
+
export interface IFormFilterOptions extends ICoreEntityFilterOptions {
|
|
56
|
+
library?: string;
|
|
57
|
+
}
|
|
58
|
+
export interface IFormElementJoinLibraryContext {
|
|
59
|
+
mandatoryAttribute: IAttribute;
|
|
60
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IKeyValue } from './shared';
|
|
2
|
+
export interface IGlobalSettings {
|
|
3
|
+
defaultApp: string;
|
|
4
|
+
name: string;
|
|
5
|
+
icon?: {
|
|
6
|
+
library: string;
|
|
7
|
+
recordId: string;
|
|
8
|
+
};
|
|
9
|
+
favicon?: {
|
|
10
|
+
library: string;
|
|
11
|
+
recordId: string;
|
|
12
|
+
};
|
|
13
|
+
settings?: IKeyValue<any>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { IValueMetadata } from './value';
|
|
2
|
+
export declare enum ImportType {
|
|
3
|
+
IGNORE = "IGNORE",
|
|
4
|
+
STANDARD = "STANDARD",
|
|
5
|
+
LINK = "LINK"
|
|
6
|
+
}
|
|
7
|
+
export declare enum ImportMode {
|
|
8
|
+
INSERT = "insert",
|
|
9
|
+
UPDATE = "update",
|
|
10
|
+
UPSERT = "upsert"
|
|
11
|
+
}
|
|
12
|
+
export declare enum Action {
|
|
13
|
+
ADD = "add",
|
|
14
|
+
REPLACE = "replace",
|
|
15
|
+
UPDATE = "update",
|
|
16
|
+
REMOVE = "remove"
|
|
17
|
+
}
|
|
18
|
+
export interface IMatch {
|
|
19
|
+
attribute: string;
|
|
20
|
+
value: string;
|
|
21
|
+
}
|
|
22
|
+
export interface IValue {
|
|
23
|
+
library?: string;
|
|
24
|
+
payload: string | IMatch[];
|
|
25
|
+
metadata?: IValueMetadata;
|
|
26
|
+
version?: IImportValueVersion[];
|
|
27
|
+
}
|
|
28
|
+
export interface IImportValueVersion {
|
|
29
|
+
treeId: string;
|
|
30
|
+
element: IMatch[];
|
|
31
|
+
library?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface IData {
|
|
34
|
+
attribute: string;
|
|
35
|
+
values: IValue[];
|
|
36
|
+
action: Action;
|
|
37
|
+
}
|
|
38
|
+
export interface IElement {
|
|
39
|
+
library: string;
|
|
40
|
+
matches: IMatch[];
|
|
41
|
+
mode: ImportMode;
|
|
42
|
+
data: IData[];
|
|
43
|
+
}
|
|
44
|
+
export interface ITree {
|
|
45
|
+
library: string;
|
|
46
|
+
treeId: string;
|
|
47
|
+
matches: IMatch[];
|
|
48
|
+
parent?: {
|
|
49
|
+
library: string;
|
|
50
|
+
matches: IMatch[];
|
|
51
|
+
};
|
|
52
|
+
action: Action;
|
|
53
|
+
order?: number;
|
|
54
|
+
}
|
|
55
|
+
export interface IFile {
|
|
56
|
+
elements: IElement[];
|
|
57
|
+
trees: ITree[];
|
|
58
|
+
}
|
|
59
|
+
export interface ICacheParams {
|
|
60
|
+
cacheDataPath: string;
|
|
61
|
+
cacheKey: number;
|
|
62
|
+
isCacheActive: boolean;
|
|
63
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { IAttribute } from './attribute';
|
|
2
|
+
import { IPreviewVersion } from './filesManager';
|
|
3
|
+
import { ITreePermissionsConf } from './permissions';
|
|
4
|
+
import { IRecordIdentityConf } from './record';
|
|
5
|
+
import { ISystemTranslation } from './systemTranslation';
|
|
6
|
+
import { IKeyValue } from './shared';
|
|
7
|
+
export interface ILibrary extends ICoreEntity {
|
|
8
|
+
system?: boolean;
|
|
9
|
+
behavior?: LibraryBehavior;
|
|
10
|
+
mandatoryAttribute?: string;
|
|
11
|
+
/**
|
|
12
|
+
* List of attributes usable in this library
|
|
13
|
+
*/
|
|
14
|
+
attributes?: IAttribute[];
|
|
15
|
+
/**
|
|
16
|
+
* Records permissions settings for this library
|
|
17
|
+
*/
|
|
18
|
+
permissions_conf?: ITreePermissionsConf;
|
|
19
|
+
/**
|
|
20
|
+
* Records identity settings for this library
|
|
21
|
+
*/
|
|
22
|
+
recordIdentityConf?: IRecordIdentityConf;
|
|
23
|
+
/**
|
|
24
|
+
* List of indexed attributes
|
|
25
|
+
*/
|
|
26
|
+
fullTextAttributes?: IAttribute[];
|
|
27
|
+
/**
|
|
28
|
+
* ID of default view
|
|
29
|
+
*/
|
|
30
|
+
defaultView?: string;
|
|
31
|
+
icon?: {
|
|
32
|
+
libraryId: string;
|
|
33
|
+
recordId: string;
|
|
34
|
+
};
|
|
35
|
+
previewsSettings?: ILibraryPreviewsSettings[];
|
|
36
|
+
settings?: IKeyValue<any>;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Library as stored in the DB, without embedded attributes
|
|
40
|
+
*/
|
|
41
|
+
export interface ILibraryDbEvent extends Omit<ILibrary, 'attributes' | 'fullTextAttributes'> {
|
|
42
|
+
attributes?: string[];
|
|
43
|
+
fullTextAttributes?: string[];
|
|
44
|
+
}
|
|
45
|
+
export interface ILibraryFilterOptions extends ICoreEntityFilterOptions {
|
|
46
|
+
system?: boolean;
|
|
47
|
+
}
|
|
48
|
+
export interface ILibraryPreviewsSettings {
|
|
49
|
+
label: ISystemTranslation;
|
|
50
|
+
description?: ISystemTranslation;
|
|
51
|
+
system: boolean;
|
|
52
|
+
versions: IPreviewVersion;
|
|
53
|
+
}
|
|
54
|
+
export declare enum LibraryBehavior {
|
|
55
|
+
STANDARD = "standard",
|
|
56
|
+
DIRECTORIES = "directories",
|
|
57
|
+
FILES = "files",
|
|
58
|
+
JOIN = "join"
|
|
59
|
+
}
|
|
60
|
+
export declare const USERS_LIBRARY = "users";
|
|
61
|
+
export declare const USERS_GROUPS_LIBRARY = "users_groups";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface IList<T> {
|
|
2
|
+
totalCount: number;
|
|
3
|
+
list: T[];
|
|
4
|
+
}
|
|
5
|
+
export declare enum CursorDirection {
|
|
6
|
+
PREV = "prev",
|
|
7
|
+
NEXT = "next"
|
|
8
|
+
}
|
|
9
|
+
export interface IPaginationCursors {
|
|
10
|
+
prev?: string;
|
|
11
|
+
next?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface IListWithCursor<T> extends IList<T> {
|
|
14
|
+
cursor: IPaginationCursors;
|
|
15
|
+
}
|
|
16
|
+
export interface IPaginationParams {
|
|
17
|
+
limit: number;
|
|
18
|
+
offset: number;
|
|
19
|
+
}
|
|
20
|
+
export interface ICursorPaginationParams {
|
|
21
|
+
limit: number;
|
|
22
|
+
cursor: string;
|
|
23
|
+
}
|
|
24
|
+
export declare enum SortOrder {
|
|
25
|
+
ASC = "asc",
|
|
26
|
+
DESC = "desc"
|
|
27
|
+
}
|
|
28
|
+
export interface ISortParams {
|
|
29
|
+
field: string;
|
|
30
|
+
order: SortOrder;
|
|
31
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { EventAction, Log as LogExternal } from '@leav/utils';
|
|
2
|
+
import { IDbPayloadInternal } from './events';
|
|
3
|
+
export interface ILogTopicFilter {
|
|
4
|
+
record?: {
|
|
5
|
+
id: string;
|
|
6
|
+
libraryId: string;
|
|
7
|
+
};
|
|
8
|
+
library?: string;
|
|
9
|
+
attribute?: string;
|
|
10
|
+
tree?: string;
|
|
11
|
+
profile?: string;
|
|
12
|
+
permission?: {
|
|
13
|
+
type?: string;
|
|
14
|
+
applyTo?: any;
|
|
15
|
+
};
|
|
16
|
+
apiKey?: string;
|
|
17
|
+
application?: string;
|
|
18
|
+
filename?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface ILogFilters {
|
|
21
|
+
actions?: EventAction[];
|
|
22
|
+
time?: {
|
|
23
|
+
from?: number;
|
|
24
|
+
to?: number;
|
|
25
|
+
};
|
|
26
|
+
userId?: string;
|
|
27
|
+
queryId?: string;
|
|
28
|
+
instanceId?: string;
|
|
29
|
+
topic?: ILogTopicFilter;
|
|
30
|
+
}
|
|
31
|
+
export interface ILogSort {
|
|
32
|
+
field: string;
|
|
33
|
+
order: 'asc' | 'desc';
|
|
34
|
+
}
|
|
35
|
+
export interface ILogPagination {
|
|
36
|
+
limit: number;
|
|
37
|
+
offset: number;
|
|
38
|
+
}
|
|
39
|
+
export type Log<EA extends EventAction = EventAction> = LogExternal & IDbPayloadInternal<EA>;
|
|
40
|
+
export interface ILogResponse {
|
|
41
|
+
logs: Log[];
|
|
42
|
+
total: number;
|
|
43
|
+
}
|