@aristid/leav-types 0.0.2 → 0.0.4-b0a5cfe
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 +189 -0
- package/apps/core/config/development.d.ts +14 -0
- package/apps/core/config/test.d.ts +52 -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/__mocks__/poppler-simple.d.ts +7 -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 +42 -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/globalSettings/globalSettings.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/globalSetup.d.ts +3 -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/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__/jestUtils.d.ts +12 -0
- package/apps/core/src/__tests__/mocks/actionsList.d.ts +67 -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 +36 -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 +2 -0
- package/apps/core/src/__tests__/setup.d.ts +0 -0
- package/apps/core/src/_constants/globalSettings.d.ts +1 -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 +77 -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 +94 -0
- package/apps/core/src/_types/auth.d.ts +7 -0
- package/apps/core/src/_types/config.d.ts +192 -0
- package/apps/core/src/_types/dbProfiler.d.ts +13 -0
- package/apps/core/src/_types/endpoint.d.ts +11 -0
- package/apps/core/src/_types/errors.d.ts +117 -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 +50 -0
- package/apps/core/src/_types/globalSettings.d.ts +11 -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 +50 -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 +137 -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 +16 -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 +63 -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 +78 -0
- package/apps/core/src/_types/versionProfile.d.ts +17 -0
- package/apps/core/src/_types/views.d.ts +57 -0
- package/apps/core/src/app/application/__tests__/applicationApp.spec.d.ts +1 -0
- package/apps/core/src/app/application/applicationApp.d.ts +32 -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 +38 -0
- package/apps/core/src/app/auth/index.d.ts +1 -0
- package/apps/core/src/app/core/actionListApp.d.ts +13 -0
- package/apps/core/src/app/core/apiKeyApp/_types.d.ts +21 -0
- package/apps/core/src/app/core/apiKeyApp/apiKeyApp.d.ts +12 -0
- package/apps/core/src/app/core/attributeApp/attributeApp.d.ts +28 -0
- package/apps/core/src/app/core/coreApp.d.ts +25 -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 +10 -0
- package/apps/core/src/app/core/filesManagerApp.d.ts +21 -0
- package/apps/core/src/app/core/formApp/_types.d.ts +38 -0
- package/apps/core/src/app/core/formApp/formApp.d.ts +20 -0
- package/apps/core/src/app/core/globalSettingsApp.d.ts +23 -0
- package/apps/core/src/app/core/helpers/subscriptions.d.ts +10 -0
- package/apps/core/src/app/core/importApp.d.ts +24 -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 +24 -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 +19 -0
- package/apps/core/src/app/core/pluginsApp.d.ts +12 -0
- package/apps/core/src/app/core/recordApp/_types.d.ts +36 -0
- package/apps/core/src/app/core/recordApp/recordApp.d.ts +30 -0
- package/apps/core/src/app/core/tasksManagerApp.d.ts +33 -0
- package/apps/core/src/app/core/treeApp/_types.d.ts +53 -0
- package/apps/core/src/app/core/treeApp/treeApp.d.ts +24 -0
- package/apps/core/src/app/core/userDataApp.d.ts +10 -0
- package/apps/core/src/app/core/valueApp.d.ts +18 -0
- package/apps/core/src/app/core/versionProfileApp/_types.d.ts +24 -0
- package/apps/core/src/app/core/versionProfileApp/versionProfileApp.d.ts +12 -0
- package/apps/core/src/app/core/viewApp.d.ts +14 -0
- package/apps/core/src/app/endpoint/endpointApp.d.ts +32 -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 +15 -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 +39 -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 +75 -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/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 +23 -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 +40 -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 +18 -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 +18 -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 +72 -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 +40 -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 +16 -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 +45 -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 +14 -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 +23 -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 +45 -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 +22 -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 +32 -0
- package/apps/core/src/domain/record/helpers/getAttributesFromField.d.ts +30 -0
- package/apps/core/src/domain/record/helpers/index.d.ts +1 -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 +102 -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/canSaveValue.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/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 +113 -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 +19 -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 +19 -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 +16 -0
- package/apps/core/src/infra/attributeTypes/attributeAdvancedLinkRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/attributeTypes/attributeAdvancedRepo.d.ts +12 -0
- package/apps/core/src/infra/attributeTypes/attributeAdvancedRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/attributeTypes/attributeSimpleLinkRepo.d.ts +14 -0
- package/apps/core/src/infra/attributeTypes/attributeSimpleLinkRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/attributeTypes/attributeSimpleRepo.d.ts +11 -0
- package/apps/core/src/infra/attributeTypes/attributeSimpleRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/attributeTypes/attributeTreeRepo.d.ts +15 -0
- package/apps/core/src/infra/attributeTypes/attributeTreeRepo.spec.d.ts +1 -0
- package/apps/core/src/infra/attributeTypes/attributeTypesRepo.d.ts +128 -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 +40 -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/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 +35 -0
- package/apps/core/src/infra/permission/index.d.ts +1 -0
- package/apps/core/src/infra/permission/permissionRepo.d.ts +27 -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 +60 -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 +168 -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 +83 -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 +16 -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 +30 -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/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/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 +3 -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 +97 -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 +54 -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 +2 -2
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { IAmqpService } from '@leav/message-broker';
|
|
2
|
+
import { IEventsManagerDomain } from 'domain/eventsManager/eventsManagerDomain';
|
|
3
|
+
import { CreateDirectoryFunc } from 'domain/helpers/createDirectory';
|
|
4
|
+
import { StoreUploadFileFunc } from 'domain/helpers/storeUploadFile';
|
|
5
|
+
import { UpdateRecordLastModifFunc } from 'domain/helpers/updateRecordLastModif';
|
|
6
|
+
import { ILibraryDomain } from 'domain/library/libraryDomain';
|
|
7
|
+
import { ILibraryPermissionDomain } from 'domain/permission/libraryPermissionDomain';
|
|
8
|
+
import { SendRecordUpdateEventHelper } from 'domain/record/helpers/sendRecordUpdateEvent';
|
|
9
|
+
import { ITreeDomain } from 'domain/tree/treeDomain';
|
|
10
|
+
import { IValueDomain } from 'domain/value/valueDomain';
|
|
11
|
+
import { FileUpload } from 'graphql-upload';
|
|
12
|
+
import { i18n } from 'i18next';
|
|
13
|
+
import { IRecordRepo } from 'infra/record/recordRepo';
|
|
14
|
+
import { IUtils } from 'utils/utils';
|
|
15
|
+
import winston from 'winston';
|
|
16
|
+
import * as Config from '_types/config';
|
|
17
|
+
import { IQueryInfos } from '_types/queryInfos';
|
|
18
|
+
import { ILibrary } from '../../_types/library';
|
|
19
|
+
import { IRecord, IRecordFilterLight } from '../../_types/record';
|
|
20
|
+
import { IRecordDomain } from '../record/recordDomain';
|
|
21
|
+
import { IMessagesHandlerHelper } from './helpers/messagesHandler/messagesHandler';
|
|
22
|
+
interface IForcePreviewsGenerationParams {
|
|
23
|
+
ctx: IQueryInfos;
|
|
24
|
+
libraryId: string;
|
|
25
|
+
failedOnly?: boolean;
|
|
26
|
+
recordIds?: string[];
|
|
27
|
+
filters?: IRecordFilterLight[];
|
|
28
|
+
previewVersionSizeNames?: string[];
|
|
29
|
+
}
|
|
30
|
+
interface IGetOriginalPathParams {
|
|
31
|
+
fileId: string;
|
|
32
|
+
libraryId: string;
|
|
33
|
+
ctx: IQueryInfos;
|
|
34
|
+
}
|
|
35
|
+
interface ICreateDirectoryParams {
|
|
36
|
+
library: string;
|
|
37
|
+
nodeId: string;
|
|
38
|
+
name: string;
|
|
39
|
+
}
|
|
40
|
+
export interface IStoreFilesParams {
|
|
41
|
+
library: string;
|
|
42
|
+
nodeId: string;
|
|
43
|
+
files: Array<{
|
|
44
|
+
data: FileUpload;
|
|
45
|
+
uid: string;
|
|
46
|
+
size?: number;
|
|
47
|
+
replace?: boolean;
|
|
48
|
+
}>;
|
|
49
|
+
}
|
|
50
|
+
interface IIsFileExistsAsChild {
|
|
51
|
+
treeId: string;
|
|
52
|
+
parentNodeId?: string;
|
|
53
|
+
filename: string;
|
|
54
|
+
}
|
|
55
|
+
export interface IFilesManagerDomain {
|
|
56
|
+
init(): Promise<void>;
|
|
57
|
+
getPreviewVersion(): ILibrary['previewsSettings'];
|
|
58
|
+
forcePreviewsGeneration(params: IForcePreviewsGenerationParams): Promise<boolean>;
|
|
59
|
+
getRootPathByKey(rootKey: string): string;
|
|
60
|
+
getOriginalPath(params: IGetOriginalPathParams): Promise<string>;
|
|
61
|
+
storeFiles({ library, nodeId, files }: IStoreFilesParams, ctx: IQueryInfos): Promise<Array<{
|
|
62
|
+
uid: string;
|
|
63
|
+
record: IRecord;
|
|
64
|
+
}>>;
|
|
65
|
+
createDirectory({ library, nodeId, name }: ICreateDirectoryParams, ctx: IQueryInfos): Promise<IRecord>;
|
|
66
|
+
doesFileExistAsChild({ treeId, filename, parentNodeId }: IIsFileExistsAsChild, ctx: IQueryInfos): Promise<boolean>;
|
|
67
|
+
}
|
|
68
|
+
export interface IFilesManagerDomainDeps {
|
|
69
|
+
config: Config.IConfig;
|
|
70
|
+
'core.utils': IUtils;
|
|
71
|
+
'core.infra.amqpService': IAmqpService;
|
|
72
|
+
'core.utils.logger': winston.Winston;
|
|
73
|
+
'core.domain.record': IRecordDomain;
|
|
74
|
+
'core.domain.value': IValueDomain;
|
|
75
|
+
'core.domain.tree': ITreeDomain;
|
|
76
|
+
'core.domain.permission.library': ILibraryPermissionDomain;
|
|
77
|
+
'core.domain.filesManager.helpers.messagesHandler': IMessagesHandlerHelper;
|
|
78
|
+
'core.domain.library': ILibraryDomain;
|
|
79
|
+
'core.domain.helpers.updateRecordLastModif': UpdateRecordLastModifFunc;
|
|
80
|
+
'core.domain.record.helpers.sendRecordUpdateEvent': SendRecordUpdateEventHelper;
|
|
81
|
+
'core.domain.helpers.storeUploadFile': StoreUploadFileFunc;
|
|
82
|
+
'core.domain.helpers.createDirectory': CreateDirectoryFunc;
|
|
83
|
+
'core.infra.record': IRecordRepo;
|
|
84
|
+
'core.domain.eventsManager': IEventsManagerDomain;
|
|
85
|
+
translator: i18n;
|
|
86
|
+
}
|
|
87
|
+
export default function ({ config, 'core.utils': utils, 'core.infra.amqpService': amqpService, 'core.utils.logger': logger, 'core.domain.record': recordDomain, 'core.domain.value': valueDomain, 'core.domain.tree': treeDomain, 'core.domain.permission.library': libraryPermissionDomain, 'core.domain.filesManager.helpers.messagesHandler': messagesHandler, 'core.domain.helpers.storeUploadFile': storeUploadFile, 'core.domain.helpers.createDirectory': createDirectory, 'core.domain.library': libraryDomain, 'core.domain.helpers.updateRecordLastModif': updateRecordLastModif, 'core.domain.record.helpers.sendRecordUpdateEvent': sendRecordUpdateEvent, 'core.domain.eventsManager': eventsManager, 'core.infra.record': recordRepo, translator }: IFilesManagerDomainDeps): IFilesManagerDomain;
|
|
88
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { IAmqpService } from '@leav/message-broker';
|
|
2
|
+
import { UpdateRecordLastModifFunc } from 'domain/helpers/updateRecordLastModif';
|
|
3
|
+
import { ILibraryDomain } from 'domain/library/libraryDomain';
|
|
4
|
+
import { SendRecordUpdateEventHelper } from 'domain/record/helpers/sendRecordUpdateEvent';
|
|
5
|
+
import { IRecordDomain } from 'domain/record/recordDomain';
|
|
6
|
+
import { ITreeDomain } from 'domain/tree/treeDomain';
|
|
7
|
+
import { IValueDomain } from 'domain/value/valueDomain';
|
|
8
|
+
import { IFilesManagerRepo } from 'infra/filesManager/filesManagerRepo';
|
|
9
|
+
import { IRecordRepo } from 'infra/record/recordRepo';
|
|
10
|
+
import { IUtils } from 'utils/utils';
|
|
11
|
+
import winston from 'winston';
|
|
12
|
+
import { IConfig } from '_types/config';
|
|
13
|
+
import { IFileEventData } from '_types/filesManager';
|
|
14
|
+
import { IQueryInfos } from '_types/queryInfos';
|
|
15
|
+
export interface IHandleFileSystemEventDeps {
|
|
16
|
+
libraryDomain: ILibraryDomain;
|
|
17
|
+
recordDomain: IRecordDomain;
|
|
18
|
+
valueDomain: IValueDomain;
|
|
19
|
+
treeDomain: ITreeDomain;
|
|
20
|
+
recordRepo: IRecordRepo;
|
|
21
|
+
amqpService: IAmqpService;
|
|
22
|
+
updateRecordLastModif: UpdateRecordLastModifFunc;
|
|
23
|
+
logger: winston.Winston;
|
|
24
|
+
config: IConfig;
|
|
25
|
+
utils: IUtils;
|
|
26
|
+
filesManagerRepo: IFilesManagerRepo;
|
|
27
|
+
sendRecordUpdateEvent: SendRecordUpdateEventHelper;
|
|
28
|
+
}
|
|
29
|
+
export interface IHandleFileSystemEventResources {
|
|
30
|
+
library: string;
|
|
31
|
+
}
|
|
32
|
+
export type HandleFileSystemEventFunc = (scanMsg: IFileEventData, resources: IHandleFileSystemEventResources, ctx: IQueryInfos) => Promise<void>;
|
package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleCreateEvent.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IQueryInfos } from '_types/queryInfos';
|
|
2
|
+
import { IFileEventData } from '../../../../_types/filesManager';
|
|
3
|
+
import { IHandleFileSystemEventDeps, IHandleFileSystemEventResources } from './_types';
|
|
4
|
+
export declare const handleCreateEvent: (scanMsg: IFileEventData, resources: IHandleFileSystemEventResources, deps: IHandleFileSystemEventDeps, ctx: IQueryInfos) => Promise<void>;
|
package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleFileSystemEvent.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { IAmqpService } from '@leav/message-broker';
|
|
2
|
+
import { UpdateRecordLastModifFunc } from 'domain/helpers/updateRecordLastModif';
|
|
3
|
+
import { ILibraryDomain } from 'domain/library/libraryDomain';
|
|
4
|
+
import { SendRecordUpdateEventHelper } from 'domain/record/helpers/sendRecordUpdateEvent';
|
|
5
|
+
import { IRecordDomain } from 'domain/record/recordDomain';
|
|
6
|
+
import { ITreeDomain } from 'domain/tree/treeDomain';
|
|
7
|
+
import { IValueDomain } from 'domain/value/valueDomain';
|
|
8
|
+
import { IFilesManagerRepo } from 'infra/filesManager/filesManagerRepo';
|
|
9
|
+
import { IRecordRepo } from 'infra/record/recordRepo';
|
|
10
|
+
import { IUtils } from 'utils/utils';
|
|
11
|
+
import { IConfig } from '_types/config';
|
|
12
|
+
import { HandleFileSystemEventFunc } from './_types';
|
|
13
|
+
import winston = require('winston');
|
|
14
|
+
export interface IFileSystemEventDeps {
|
|
15
|
+
'core.domain.library': ILibraryDomain;
|
|
16
|
+
'core.domain.record': IRecordDomain;
|
|
17
|
+
'core.domain.value': IValueDomain;
|
|
18
|
+
'core.domain.tree': ITreeDomain;
|
|
19
|
+
'core.domain.helpers.updateRecordLastModif': UpdateRecordLastModifFunc;
|
|
20
|
+
'core.domain.record.helpers.sendRecordUpdateEvent': SendRecordUpdateEventHelper;
|
|
21
|
+
'core.infra.record': IRecordRepo;
|
|
22
|
+
'core.infra.amqpService': IAmqpService;
|
|
23
|
+
'core.infra.filesManager': IFilesManagerRepo;
|
|
24
|
+
'core.utils.logger': winston.Winston;
|
|
25
|
+
'core.utils': IUtils;
|
|
26
|
+
config: IConfig;
|
|
27
|
+
}
|
|
28
|
+
export default function (deps: IFileSystemEventDeps): HandleFileSystemEventFunc;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IQueryInfos } from '_types/queryInfos';
|
|
2
|
+
import { IFileEventData } from '../../../../_types/filesManager';
|
|
3
|
+
import { IHandleFileSystemEventDeps, IHandleFileSystemEventResources } from './_types';
|
|
4
|
+
export declare const handleMoveEvent: (scanMsg: IFileEventData, { library }: IHandleFileSystemEventResources, deps: IHandleFileSystemEventDeps, ctx: IQueryInfos) => Promise<boolean>;
|
package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleRemoveEvent.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IQueryInfos } from '_types/queryInfos';
|
|
2
|
+
import { IFileEventData } from '../../../../_types/filesManager';
|
|
3
|
+
import { IHandleFileSystemEventDeps, IHandleFileSystemEventResources } from './_types';
|
|
4
|
+
export declare const handleRemoveEvent: (scanMsg: IFileEventData, { library }: IHandleFileSystemEventResources, deps: IHandleFileSystemEventDeps, ctx: IQueryInfos) => Promise<boolean>;
|
package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleUpdateEvent.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IQueryInfos } from '_types/queryInfos';
|
|
2
|
+
import { IFileEventData } from '../../../../_types/filesManager';
|
|
3
|
+
import { IHandleFileSystemEventDeps, IHandleFileSystemEventResources } from './_types';
|
|
4
|
+
export declare const handleUpdateEvent: (scanMsg: IFileEventData, { library }: IHandleFileSystemEventResources, deps: IHandleFileSystemEventDeps, ctx: IQueryInfos) => Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './handleFileSystemEvent';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { UpdateRecordLastModifFunc } from 'domain/helpers/updateRecordLastModif';
|
|
2
|
+
import { SendRecordUpdateEventHelper } from 'domain/record/helpers/sendRecordUpdateEvent';
|
|
3
|
+
import { IValueDomain } from 'domain/value/valueDomain';
|
|
4
|
+
import { IRecordRepo } from 'infra/record/recordRepo';
|
|
5
|
+
import * as Config from '_types/config';
|
|
6
|
+
import { ILibrary } from '_types/library';
|
|
7
|
+
import { IQueryInfos } from '_types/queryInfos';
|
|
8
|
+
import { IFileMetadata, IPreviews, IPreviewsStatus } from '../../../_types/filesManager';
|
|
9
|
+
import { IRecord } from '../../../_types/record';
|
|
10
|
+
import { IHandleFileSystemEventDeps } from './handleFileSystemEvent/_types';
|
|
11
|
+
import winston = require('winston');
|
|
12
|
+
export declare const getRecord: ({ fileName, filePath, fileInode }: {
|
|
13
|
+
fileName: string;
|
|
14
|
+
filePath: string;
|
|
15
|
+
fileInode?: number;
|
|
16
|
+
}, { recordLibrary, recordId }: {
|
|
17
|
+
recordLibrary: string;
|
|
18
|
+
recordId?: string;
|
|
19
|
+
}, retrieveInactive: boolean, deps: IHandleFileSystemEventDeps, ctx: IQueryInfos) => Promise<IRecord | null>;
|
|
20
|
+
export declare const getParentRecord: (fullParentPath: string, library: string, deps: IHandleFileSystemEventDeps, ctx: IQueryInfos) => Promise<IRecord | null>;
|
|
21
|
+
export declare const createRecordFile: (recordData: IFileMetadata, library: string, deps: IHandleFileSystemEventDeps, ctx: IQueryInfos) => Promise<IRecord>;
|
|
22
|
+
export declare const updateRecordFile: (recordData: IFileMetadata, recordId: string, library: string, deps: {
|
|
23
|
+
valueDomain: IValueDomain;
|
|
24
|
+
recordRepo: IRecordRepo;
|
|
25
|
+
updateRecordLastModif: UpdateRecordLastModifFunc;
|
|
26
|
+
sendRecordUpdateEvent: SendRecordUpdateEventHelper;
|
|
27
|
+
config: Config.IConfig;
|
|
28
|
+
logger: winston.Winston;
|
|
29
|
+
}, ctx: IQueryInfos) => Promise<void>;
|
|
30
|
+
export declare const getInputData: (input: string) => {
|
|
31
|
+
filePath: string;
|
|
32
|
+
fileName: string;
|
|
33
|
+
};
|
|
34
|
+
export declare const createFilesTreeElement: (record: IRecord, parentRecord: IRecord, filesLibraryId: string, deps: IHandleFileSystemEventDeps, ctx: IQueryInfos) => Promise<void>;
|
|
35
|
+
export declare const deleteFilesTreeElement: (recordId: string, filesLibraryId: string, recordLibrary: string, deps: IHandleFileSystemEventDeps, ctx: any) => Promise<void>;
|
|
36
|
+
export declare const getPreviewsDefaultData: (previewVersions: ILibrary["previewsSettings"]) => {
|
|
37
|
+
previewsStatus: IPreviewsStatus;
|
|
38
|
+
previews: IPreviews;
|
|
39
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IAmqpService } from '@leav/message-broker';
|
|
2
|
+
import { PreviewPriority } from '@leav/utils';
|
|
3
|
+
import winston from 'winston';
|
|
4
|
+
import * as Config from '_types/config';
|
|
5
|
+
import { IPreviewMessage, IPreviewVersion } from '../../../_types/filesManager';
|
|
6
|
+
export declare const sendPreviewMessage: (previewMessage: IPreviewMessage, priority: PreviewPriority, deps: {
|
|
7
|
+
amqpService: IAmqpService;
|
|
8
|
+
config: Config.IConfig;
|
|
9
|
+
}) => Promise<void>;
|
|
10
|
+
export declare const generatePreviewMsg: (recordId: string, pathAfter: string, versions: IPreviewVersion[], context: any) => IPreviewMessage;
|
|
11
|
+
export declare const requestPreviewGeneration: ({ recordId, pathAfter, libraryId, versions, priority, deps }: {
|
|
12
|
+
recordId: string;
|
|
13
|
+
pathAfter: string;
|
|
14
|
+
libraryId: string;
|
|
15
|
+
versions: IPreviewVersion[];
|
|
16
|
+
priority?: PreviewPriority;
|
|
17
|
+
deps: {
|
|
18
|
+
logger: winston.Winston;
|
|
19
|
+
amqpService: IAmqpService;
|
|
20
|
+
config: Config.IConfig;
|
|
21
|
+
};
|
|
22
|
+
}) => Promise<void>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IAmqpService } from '@leav/message-broker';
|
|
2
|
+
import { UpdateRecordLastModifFunc } from 'domain/helpers/updateRecordLastModif';
|
|
3
|
+
import { ILibraryDomain } from 'domain/library/libraryDomain';
|
|
4
|
+
import { SendRecordUpdateEventHelper } from 'domain/record/helpers/sendRecordUpdateEvent';
|
|
5
|
+
import { IRecordDomain } from 'domain/record/recordDomain';
|
|
6
|
+
import { IValueDomain } from 'domain/value/valueDomain';
|
|
7
|
+
import { IRecordRepo } from 'infra/record/recordRepo';
|
|
8
|
+
import { IUtils } from 'utils/utils';
|
|
9
|
+
import * as Config from '_types/config';
|
|
10
|
+
import winston = require('winston');
|
|
11
|
+
export interface IHandlePreviewResponseDeps {
|
|
12
|
+
amqpService: IAmqpService;
|
|
13
|
+
libraryDomain: ILibraryDomain;
|
|
14
|
+
recordDomain: IRecordDomain;
|
|
15
|
+
valueDomain: IValueDomain;
|
|
16
|
+
recordRepo: IRecordRepo;
|
|
17
|
+
updateRecordLastModif: UpdateRecordLastModifFunc;
|
|
18
|
+
sendRecordUpdateEvent: SendRecordUpdateEventHelper;
|
|
19
|
+
config: Config.IConfig;
|
|
20
|
+
logger: winston.Winston;
|
|
21
|
+
utils: IUtils;
|
|
22
|
+
}
|
|
23
|
+
export declare const initPreviewResponseHandler: (config: Config.IConfig, logger: winston.Winston, deps: IHandlePreviewResponseDeps) => Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './messagesHandler';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import winston from 'winston';
|
|
2
|
+
import { IConfig } from '_types/config';
|
|
3
|
+
import { IFileEventData } from '_types/filesManager';
|
|
4
|
+
import { IQueryInfos } from '_types/queryInfos';
|
|
5
|
+
import { HandleFileSystemEventFunc } from '../handleFileSystemEvent/_types';
|
|
6
|
+
export interface IMessagesHandlerHelper {
|
|
7
|
+
handleMessage(message: IFileEventData, ctx: IQueryInfos): any;
|
|
8
|
+
}
|
|
9
|
+
export interface IMessagesHandlerDeps {
|
|
10
|
+
'core.utils.logger': winston.Winston;
|
|
11
|
+
'core.domain.filesManager.helpers.handleFileSystemEvent': HandleFileSystemEventFunc;
|
|
12
|
+
config: IConfig;
|
|
13
|
+
}
|
|
14
|
+
export default function ({ 'core.utils.logger': logger, 'core.domain.filesManager.helpers.handleFileSystemEvent': handleFileSystemEvent, config }: IMessagesHandlerDeps): IMessagesHandlerHelper;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './filesManagerDomain';
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { IAttributeDomain } from 'domain/attribute/attributeDomain';
|
|
2
|
+
import { IValidateHelper } from 'domain/helpers/validate';
|
|
3
|
+
import { ILibraryDomain } from 'domain/library/libraryDomain';
|
|
4
|
+
import { IAttributePermissionDomain } from 'domain/permission/attributePermissionDomain';
|
|
5
|
+
import { ILibraryPermissionDomain } from 'domain/permission/libraryPermissionDomain';
|
|
6
|
+
import { IRecordAttributePermissionDomain } from 'domain/permission/recordAttributePermissionDomain';
|
|
7
|
+
import { IRecordDomain } from 'domain/record/recordDomain';
|
|
8
|
+
import { ITreeDomain } from 'domain/tree/treeDomain';
|
|
9
|
+
import { i18n } from 'i18next';
|
|
10
|
+
import { IFormRepo } from 'infra/form/formRepo';
|
|
11
|
+
import { IUtils } from 'utils/utils';
|
|
12
|
+
import winston from 'winston';
|
|
13
|
+
import { IQueryInfos } from '_types/queryInfos';
|
|
14
|
+
import { IGetCoreEntitiesParams } from '_types/shared';
|
|
15
|
+
import { IValueVersion } from '_types/value';
|
|
16
|
+
import { IForm, IRecordForm } from '../../_types/forms';
|
|
17
|
+
import { IList } from '../../_types/list';
|
|
18
|
+
export interface IFormDomain {
|
|
19
|
+
getFormsByLib({ library, params, ctx }: {
|
|
20
|
+
library: string;
|
|
21
|
+
params?: IGetCoreEntitiesParams;
|
|
22
|
+
ctx: IQueryInfos;
|
|
23
|
+
}): Promise<IList<IForm>>;
|
|
24
|
+
getRecordForm(params: {
|
|
25
|
+
recordId: string;
|
|
26
|
+
libraryId: string;
|
|
27
|
+
formId: string;
|
|
28
|
+
version?: IValueVersion;
|
|
29
|
+
ctx: IQueryInfos;
|
|
30
|
+
}): Promise<IRecordForm>;
|
|
31
|
+
getFormProperties({ library, id, ctx }: {
|
|
32
|
+
library: string;
|
|
33
|
+
id: string;
|
|
34
|
+
ctx: IQueryInfos;
|
|
35
|
+
}): Promise<IForm>;
|
|
36
|
+
saveForm({ form, ctx }: {
|
|
37
|
+
form: IForm;
|
|
38
|
+
ctx: IQueryInfos;
|
|
39
|
+
}): Promise<IForm>;
|
|
40
|
+
deleteForm({ library, id, ctx }: {
|
|
41
|
+
library: string;
|
|
42
|
+
id: string;
|
|
43
|
+
ctx: IQueryInfos;
|
|
44
|
+
}): Promise<IForm>;
|
|
45
|
+
}
|
|
46
|
+
export interface IFormDomainDeps {
|
|
47
|
+
'core.domain.library': ILibraryDomain;
|
|
48
|
+
'core.domain.attribute': IAttributeDomain;
|
|
49
|
+
'core.domain.record': IRecordDomain;
|
|
50
|
+
'core.domain.permission.library': ILibraryPermissionDomain;
|
|
51
|
+
'core.domain.permission.recordAttribute': IRecordAttributePermissionDomain;
|
|
52
|
+
'core.domain.permission.attribute': IAttributePermissionDomain;
|
|
53
|
+
'core.domain.helpers.validate': IValidateHelper;
|
|
54
|
+
'core.domain.tree': ITreeDomain;
|
|
55
|
+
'core.infra.form': IFormRepo;
|
|
56
|
+
'core.utils': IUtils;
|
|
57
|
+
'core.utils.logger': winston.Winston;
|
|
58
|
+
translator: i18n;
|
|
59
|
+
}
|
|
60
|
+
export default function (deps: IFormDomainDeps): IFormDomain;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IRecordDomain } from 'domain/record/recordDomain';
|
|
2
|
+
import { IUtils } from 'utils/utils';
|
|
3
|
+
import winston from 'winston';
|
|
4
|
+
import { IQueryInfos } from '_types/queryInfos';
|
|
5
|
+
import { IValue, IValueVersion } from '_types/value';
|
|
6
|
+
import { IFormElement } from '../../../_types/forms';
|
|
7
|
+
export declare const getElementValues: (params: {
|
|
8
|
+
element: IFormElement;
|
|
9
|
+
recordId: string;
|
|
10
|
+
libraryId: string;
|
|
11
|
+
version?: IValueVersion;
|
|
12
|
+
deps: {
|
|
13
|
+
"core.domain.record"?: IRecordDomain;
|
|
14
|
+
"core.utils"?: IUtils;
|
|
15
|
+
"core.utils.logger"?: winston.Winston;
|
|
16
|
+
};
|
|
17
|
+
ctx: IQueryInfos;
|
|
18
|
+
}) => Promise<{
|
|
19
|
+
error?: string;
|
|
20
|
+
values: IValue[] | null;
|
|
21
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IRecordDomain } from 'domain/record/recordDomain';
|
|
2
|
+
import { ITreeDomain } from 'domain/tree/treeDomain';
|
|
3
|
+
import { IFormDependentElements } from '_types/forms';
|
|
4
|
+
import { IQueryInfos } from '_types/queryInfos';
|
|
5
|
+
/**
|
|
6
|
+
* Check if element must be included in form based on dependencies
|
|
7
|
+
*/
|
|
8
|
+
export declare const mustIncludeElement: (element: IFormDependentElements, recordId: string, libraryId: string, { "core.domain.record": recordDomain, "core.domain.tree": treeDomain }: {
|
|
9
|
+
"core.domain.record"?: IRecordDomain;
|
|
10
|
+
"core.domain.tree"?: ITreeDomain;
|
|
11
|
+
}, ctx: IQueryInfos) => Promise<boolean>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './formDomain';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IEventsManagerDomain } from 'domain/eventsManager/eventsManagerDomain';
|
|
2
|
+
import { IAdminPermissionDomain } from 'domain/permission/adminPermissionDomain';
|
|
3
|
+
import { IGlobalSettingsRepo } from 'infra/globalSettings/globalSettingsRepo';
|
|
4
|
+
import { IGlobalSettings } from '_types/globalSettings';
|
|
5
|
+
import { IQueryInfos } from '_types/queryInfos';
|
|
6
|
+
export interface IGlobalSettingsDomain {
|
|
7
|
+
saveSettings({ settings, ctx }: {
|
|
8
|
+
settings: IGlobalSettings;
|
|
9
|
+
ctx: IQueryInfos;
|
|
10
|
+
}): Promise<IGlobalSettings>;
|
|
11
|
+
getSettings(ctx: IQueryInfos): Promise<IGlobalSettings>;
|
|
12
|
+
}
|
|
13
|
+
export interface IGlobalSettingsDomainDeps {
|
|
14
|
+
'core.domain.permission.admin': IAdminPermissionDomain;
|
|
15
|
+
'core.domain.eventsManager': IEventsManagerDomain;
|
|
16
|
+
'core.infra.globalSettings': IGlobalSettingsRepo;
|
|
17
|
+
}
|
|
18
|
+
export default function ({ 'core.domain.permission.admin': adminPermissionDomain, 'core.domain.eventsManager': eventsManagerDomain, 'core.infra.globalSettings': globalSettingsRepo }: IGlobalSettingsDomainDeps): IGlobalSettingsDomain;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './globalSettingsDomain';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ActionsListValueType, IActionsListContext } from '_types/actionsList';
|
|
2
|
+
import { IVariableFunctions } from '../calculationsVariableFunctions';
|
|
3
|
+
interface IDeps {
|
|
4
|
+
'core.domain.helpers.calculationsVariableFunctions': IVariableFunctions;
|
|
5
|
+
}
|
|
6
|
+
export interface IVariableValue {
|
|
7
|
+
recordId: string;
|
|
8
|
+
library: string;
|
|
9
|
+
payload: string | number | boolean | Record<string, any>;
|
|
10
|
+
raw_payload?: string | number | boolean | Record<string, any>;
|
|
11
|
+
}
|
|
12
|
+
export interface ICalculationVariable {
|
|
13
|
+
processVariableString: (context: IActionsListContext, variables: string, initialValues: ActionsListValueType[]) => Promise<IVariableValue[]>;
|
|
14
|
+
}
|
|
15
|
+
export default function ({ 'core.domain.helpers.calculationsVariableFunctions': variableFunctions }: IDeps): {
|
|
16
|
+
processVariableString: (context: IActionsListContext, variables: string, initialValues: ActionsListValueType[]) => Promise<IVariableValue[]>;
|
|
17
|
+
};
|
|
18
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IAttributeDomain } from 'domain/attribute/attributeDomain';
|
|
2
|
+
import { IVariableValue } from 'domain/helpers/calculationVariable';
|
|
3
|
+
import { IRecordDomain } from 'domain/record/recordDomain';
|
|
4
|
+
import { IActionsListContext } from '_types/actionsList';
|
|
5
|
+
interface IDeps {
|
|
6
|
+
'core.domain.record': IRecordDomain;
|
|
7
|
+
'core.domain.attribute': IAttributeDomain;
|
|
8
|
+
}
|
|
9
|
+
interface IVariableFunction {
|
|
10
|
+
run: (context: IActionsListContext, inputValue: any, ...params: any[]) => Promise<IVariableValue[]>;
|
|
11
|
+
after: string[];
|
|
12
|
+
}
|
|
13
|
+
export interface IVariableFunctions {
|
|
14
|
+
[key: string]: IVariableFunction;
|
|
15
|
+
}
|
|
16
|
+
export default function ({ 'core.domain.record': recordDomain, 'core.domain.attribute': attributeDomain }: IDeps): IVariableFunctions;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as Config from '_types/config';
|
|
2
|
+
import { IUtils } from 'utils/utils';
|
|
3
|
+
import { IQueryInfos } from '_types/queryInfos';
|
|
4
|
+
export type CreateDirectoryFunc = (name: string, path: string, ctx: IQueryInfos) => Promise<void>;
|
|
5
|
+
interface IDeps {
|
|
6
|
+
config: Config.IConfig;
|
|
7
|
+
'core.utils': IUtils;
|
|
8
|
+
}
|
|
9
|
+
export default function ({ config, 'core.utils': utils }: IDeps): (name: string, path: string, ctx: IQueryInfos) => Promise<void>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IAttributeRepo } from 'infra/attribute/attributeRepo';
|
|
2
|
+
import { ILibraryRepo } from 'infra/library/libraryRepo';
|
|
3
|
+
import { ITreeRepo } from 'infra/tree/treeRepo';
|
|
4
|
+
import { IVersionProfileRepo } from 'infra/versionProfile/versionProfileRepo';
|
|
5
|
+
import { IViewRepo } from 'infra/view/_types';
|
|
6
|
+
import { IUtils } from 'utils/utils';
|
|
7
|
+
import { IQueryInfos } from '_types/queryInfos';
|
|
8
|
+
import { ICachesService } from '../../infra/cache/cacheService';
|
|
9
|
+
interface IDeps {
|
|
10
|
+
'core.infra.library': ILibraryRepo;
|
|
11
|
+
'core.infra.attribute': IAttributeRepo;
|
|
12
|
+
'core.infra.tree': ITreeRepo;
|
|
13
|
+
'core.infra.view': IViewRepo;
|
|
14
|
+
'core.infra.versionProfile': IVersionProfileRepo;
|
|
15
|
+
'core.infra.cache.cacheService': ICachesService;
|
|
16
|
+
'core.utils': IUtils;
|
|
17
|
+
}
|
|
18
|
+
export type GetCoreEntityByIdFunc = <T extends ICoreEntity>(entityType: 'library' | 'attribute' | 'tree' | 'view' | 'versionProfile', entityId: string, ctx: IQueryInfos) => Promise<T>;
|
|
19
|
+
export default function ({ 'core.infra.library': libraryRepo, 'core.infra.attribute': attributeRepo, 'core.infra.tree': treeRepo, 'core.infra.view': viewRepo, 'core.infra.versionProfile': versionProfileRepo, 'core.infra.cache.cacheService': cacheService, 'core.utils': utils }: IDeps): GetCoreEntityByIdFunc;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as getCoreEntityById } from './getCoreEntityById';
|
|
2
|
+
export { default as updateRecordLastModif } from './updateRecordLastModif';
|
|
3
|
+
export { default as updateTaskProgress } from './updateTaskProgress';
|
|
4
|
+
export { default as validate } from './validate';
|
|
5
|
+
export { default as storeUploadFile } from './storeUploadFile';
|
|
6
|
+
export { default as createDirectory } from './createDirectory';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { FileUpload } from 'graphql-upload';
|
|
2
|
+
import { Progress } from 'progress-stream';
|
|
3
|
+
export type StoreUploadFileFunc = (fileData: FileUpload, path: string, onProgress?: (progress: Progress) => Promise<void>, size?: number) => Promise<void>;
|
|
4
|
+
export default function (): (fileData: FileUpload, path: string, onProgress?: (progress: Progress) => void, size?: number) => Promise<void>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IRecordRepo } from 'infra/record/recordRepo';
|
|
2
|
+
import { IUtils } from 'utils/utils';
|
|
3
|
+
import { IQueryInfos } from '_types/queryInfos';
|
|
4
|
+
import { IRecord } from '_types/record';
|
|
5
|
+
import { ICachesService } from '../../infra/cache/cacheService';
|
|
6
|
+
interface IDeps {
|
|
7
|
+
'core.infra.record': IRecordRepo;
|
|
8
|
+
'core.infra.cache.cacheService': ICachesService;
|
|
9
|
+
'core.utils': IUtils;
|
|
10
|
+
}
|
|
11
|
+
export type UpdateRecordLastModifFunc = (library: string, recordId: string, ctx: IQueryInfos) => Promise<IRecord>;
|
|
12
|
+
export default function ({ 'core.infra.record': recordRepo, 'core.infra.cache.cacheService': cacheService, 'core.utils': utils }: IDeps): UpdateRecordLastModifFunc;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ITasksManagerDomain } from 'domain/tasksManager/tasksManagerDomain';
|
|
2
|
+
import { IQueryInfos } from '_types/queryInfos';
|
|
3
|
+
import * as Config from '_types/config';
|
|
4
|
+
import { i18n } from 'i18next';
|
|
5
|
+
interface IDeps {
|
|
6
|
+
'core.domain.tasksManager': ITasksManagerDomain;
|
|
7
|
+
config: Config.IConfig;
|
|
8
|
+
translator: i18n;
|
|
9
|
+
}
|
|
10
|
+
export type UpdateTaskProgress = (taskId: string, currPercent: number, ctx: IQueryInfos, upData: {
|
|
11
|
+
position?: {
|
|
12
|
+
index: number;
|
|
13
|
+
total: number;
|
|
14
|
+
};
|
|
15
|
+
translationKey: string;
|
|
16
|
+
}) => Promise<number>;
|
|
17
|
+
export default function ({ 'core.domain.tasksManager': tasksManagerDomain, config, translator }: IDeps): UpdateTaskProgress;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ICachesService } from 'infra/cache/cacheService';
|
|
2
|
+
import { ILibraryRepo } from 'infra/library/libraryRepo';
|
|
3
|
+
import { IRecordRepo } from 'infra/record/recordRepo';
|
|
4
|
+
import { IUtils } from 'utils/utils';
|
|
5
|
+
import { ILibrary } from '_types/library';
|
|
6
|
+
import { IQueryInfos } from '_types/queryInfos';
|
|
7
|
+
import { IRecord } from '../../_types/record';
|
|
8
|
+
import { GetCoreEntityByIdFunc } from './getCoreEntityById';
|
|
9
|
+
interface IDeps {
|
|
10
|
+
'core.domain.helpers.getCoreEntityById': GetCoreEntityByIdFunc;
|
|
11
|
+
'core.infra.record': IRecordRepo;
|
|
12
|
+
'core.utils': IUtils;
|
|
13
|
+
'core.infra.library': ILibraryRepo;
|
|
14
|
+
'core.infra.cache.cacheService': ICachesService;
|
|
15
|
+
}
|
|
16
|
+
export interface IValidateHelper {
|
|
17
|
+
validateLibrary(library: string, ctx: IQueryInfos): Promise<ILibrary>;
|
|
18
|
+
validateRecord(library: string, recordId: string, ctx: IQueryInfos): Promise<IRecord>;
|
|
19
|
+
validateView(view: string, throwIfNotFound: boolean, ctx: IQueryInfos): Promise<boolean>;
|
|
20
|
+
validateTree(tree: string, throwIfNotFound: boolean, ctx: IQueryInfos): Promise<boolean>;
|
|
21
|
+
validateLibraryAttribute(library: string, attribute: string, ctx: IQueryInfos): Promise<void>;
|
|
22
|
+
}
|
|
23
|
+
export default function ({ 'core.domain.helpers.getCoreEntityById': getCoreEntityById, 'core.infra.record': recordRepo, 'core.utils': utils, 'core.infra.library': libraryRepo, 'core.infra.cache.cacheService': cacheService }: IDeps): IValidateHelper;
|
|
24
|
+
export {};
|