@aristid/leav-types 1.12.0 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CLAUDE.md +42 -0
- package/apps/core/config/default.d.ts +13 -2
- package/apps/core/config/development.d.ts +4 -0
- package/apps/core/config/test.d.ts +4 -0
- package/apps/core/src/_types/actionsList.d.ts +1 -1
- package/apps/core/src/_types/automation.d.ts +39 -0
- package/apps/core/src/_types/config.d.ts +13 -0
- package/apps/core/src/_types/cronTask.d.ts +14 -0
- package/apps/core/src/_types/errors.d.ts +9 -0
- package/apps/core/src/_types/events.d.ts +6 -0
- package/apps/core/src/_types/eventsManager.d.ts +8 -0
- package/apps/core/src/_types/extensionPoints.d.ts +7 -0
- package/apps/core/src/_types/migration.d.ts +1 -1
- package/apps/core/src/_types/permissions.d.ts +1 -0
- package/apps/core/src/_types/queryInfos.d.ts +1 -1
- package/apps/core/src/_types/record.d.ts +2 -1
- package/apps/core/src/_types/value.d.ts +2 -2
- package/apps/core/src/app/application/applicationApp.d.ts +9 -9
- package/apps/core/src/app/auth/authApp.d.ts +8 -8
- package/apps/core/src/app/core/actionListApp.d.ts +3 -3
- package/apps/core/src/app/core/apiKeyApp/_types.d.ts +2 -2
- package/apps/core/src/app/core/apiKeyApp/apiKeyApp.d.ts +3 -3
- package/apps/core/src/app/core/attributeApp/attributeApp.d.ts +11 -9
- package/apps/core/src/app/core/automationApp.d.ts +24 -0
- package/apps/core/src/app/core/coreApp.d.ts +5 -5
- package/apps/core/src/app/core/discussionApp.d.ts +2 -2
- package/apps/core/src/app/core/eventsManagerApp.d.ts +6 -5
- package/apps/core/src/app/core/exportApp.d.ts +2 -2
- package/apps/core/src/app/core/filesManagerApp.d.ts +8 -6
- package/apps/core/src/app/core/formApp/_types.d.ts +2 -2
- package/apps/core/src/app/core/formApp/formApp.d.ts +8 -8
- package/apps/core/src/app/core/globalSettingsApp.d.ts +7 -7
- package/apps/core/src/app/core/helpers/subscriptions.d.ts +1 -1
- package/apps/core/src/app/core/importApp.d.ts +4 -4
- package/apps/core/src/app/core/index.d.ts +1 -0
- package/apps/core/src/app/core/indexationManagerApp.d.ts +2 -2
- package/apps/core/src/app/core/libraryApp/_types.d.ts +2 -2
- package/apps/core/src/app/core/libraryApp/libraryApp.d.ts +7 -7
- package/apps/core/src/app/core/logApp.d.ts +15 -13
- package/apps/core/src/app/core/logsCollectorApp.d.ts +1 -1
- package/apps/core/src/app/core/notificationApp.d.ts +3 -3
- package/apps/core/src/app/core/permissionApp/_types.d.ts +1 -1
- package/apps/core/src/app/core/permissionApp/permissionApp.d.ts +4 -4
- package/apps/core/src/app/core/pluginsApp.d.ts +3 -3
- package/apps/core/src/app/core/recordApp/_types.d.ts +2 -2
- package/apps/core/src/app/core/recordApp/recordApp.d.ts +8 -8
- package/apps/core/src/app/core/tasksManagerApp.d.ts +11 -9
- package/apps/core/src/app/core/treeApp/_types.d.ts +4 -4
- package/apps/core/src/app/core/treeApp/treeApp.d.ts +5 -5
- package/apps/core/src/app/core/userDataApp.d.ts +1 -1
- package/apps/core/src/app/core/valueApp.d.ts +6 -6
- package/apps/core/src/app/core/versionProfileApp/_types.d.ts +2 -2
- package/apps/core/src/app/core/versionProfileApp/versionProfileApp.d.ts +3 -3
- package/apps/core/src/app/core/viewApp.d.ts +5 -5
- package/apps/core/src/app/endpoint/endpointApp.d.ts +3 -3
- package/apps/core/src/app/graphql/customScalars/dateTime/dateTime.d.ts +1 -1
- package/apps/core/src/app/graphql/customScalars/systemTranslation/systemTranslation.d.ts +1 -1
- package/apps/core/src/app/graphql/graphqlApp.d.ts +3 -3
- package/apps/core/src/app/helpers/convertVersionFromGqlFormat.d.ts +1 -1
- package/apps/core/src/app/helpers/initQueryContext.d.ts +2 -2
- package/apps/core/src/app/trpc/index.d.ts +1 -0
- package/apps/core/src/app/trpc/trpcApp.d.ts +30 -0
- package/apps/core/src/domain/actions/excelCalculationAction.d.ts +2 -2
- package/apps/core/src/domain/actions/index.d.ts +1 -0
- package/apps/core/src/domain/actions/inheritanceCalculationAction.d.ts +2 -2
- package/apps/core/src/domain/actions/jexlCalculationAction.d.ts +14 -0
- package/apps/core/src/domain/actions/replaceAnotherAttributeAction.d.ts +3 -3
- package/apps/core/src/domain/apiKey/apiKeyDomain.d.ts +6 -6
- package/apps/core/src/domain/application/applicationDomain.d.ts +7 -7
- package/apps/core/src/domain/application/helpers/getLibrarySystemPanels.d.ts +2 -2
- package/apps/core/src/domain/attribute/attributeDomain.d.ts +12 -12
- package/apps/core/src/domain/attribute/helpers/attributeALHelper.d.ts +1 -1
- package/apps/core/src/domain/attribute/helpers/attributeValidationHelper.d.ts +6 -6
- package/apps/core/src/domain/attribute/helpers/ifLibraryJoinLinkAttribute.d.ts +2 -2
- package/apps/core/src/domain/automation/actions/_types.d.ts +27 -0
- package/apps/core/src/domain/automation/actions/conditionAction.d.ts +8 -0
- package/apps/core/src/domain/automation/actions/errorAction.d.ts +8 -0
- package/apps/core/src/domain/automation/actions/index.d.ts +5 -0
- package/apps/core/src/domain/automation/actions/jexlCalculationAutomationAction.d.ts +14 -0
- package/apps/core/src/domain/automation/actions/logAction.d.ts +16 -0
- package/apps/core/src/domain/automation/actions/modifyAttributeAction.d.ts +18 -0
- package/apps/core/src/domain/automation/automationActionsRegistry.d.ts +10 -0
- package/apps/core/src/domain/automation/automationDomain.d.ts +59 -0
- package/apps/core/src/domain/automation/fakeRulesToTrigger.d.ts +7 -0
- package/apps/core/src/domain/automation/index.d.ts +4 -0
- package/apps/core/src/domain/automation/pipeline/_types.d.ts +33 -0
- package/apps/core/src/domain/automation/pipeline/index.d.ts +1 -0
- package/apps/core/src/domain/automation/pipeline/pipeline.d.ts +18 -0
- package/apps/core/src/domain/automation/triggers/_types.d.ts +15 -0
- package/apps/core/src/domain/automation/triggers/automationTriggers.d.ts +14 -0
- package/apps/core/src/domain/automation/triggers/automationTriggersRegistry.d.ts +19 -0
- package/apps/core/src/domain/automation/triggers/automationTriggersTopics.d.ts +18 -0
- package/apps/core/src/domain/automation/triggers/index.d.ts +3 -0
- package/apps/core/src/domain/discussion/discussionDomain.d.ts +10 -8
- package/apps/core/src/domain/eventsManager/eventsManagerDomain.d.ts +4 -4
- package/apps/core/src/domain/export/exportDomain.d.ts +8 -8
- package/apps/core/src/domain/export/exportProfileDomain.d.ts +2 -2
- package/apps/core/src/domain/filesManager/_constants.d.ts +1 -1
- package/apps/core/src/domain/filesManager/filesManagerDomain.d.ts +13 -13
- package/apps/core/src/domain/filesManager/helpers/extractFileMetadata.d.ts +1 -1
- package/apps/core/src/domain/filesManager/helpers/getRootPathByKey.d.ts +1 -1
- package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/_types.d.ts +12 -12
- package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleCreateEvent.d.ts +1 -1
- package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleFileSystemEvent.d.ts +10 -10
- package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleMoveEvent.d.ts +1 -1
- package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleRemoveEvent.d.ts +1 -1
- package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleUpdateEvent.d.ts +1 -1
- package/apps/core/src/domain/filesManager/helpers/handleFileUtilsHelper.d.ts +7 -7
- package/apps/core/src/domain/filesManager/helpers/handlePreview.d.ts +1 -1
- package/apps/core/src/domain/filesManager/helpers/handlePreviewResponse.d.ts +9 -9
- package/apps/core/src/domain/filesManager/helpers/messagesHandler/messagesHandler.d.ts +3 -3
- package/apps/core/src/domain/form/formDomain.d.ts +12 -12
- package/apps/core/src/domain/form/helpers/getElementValues.d.ts +4 -4
- package/apps/core/src/domain/form/helpers/mustIncludeElement.d.ts +4 -4
- package/apps/core/src/domain/globalSettings/globalSettingsDomain.d.ts +5 -5
- package/apps/core/src/domain/helpers/calculations/calculationVariable.d.ts +1 -1
- package/apps/core/src/domain/helpers/calculations/calculationsVariableFunctions.d.ts +4 -4
- package/apps/core/src/domain/helpers/createDirectory.d.ts +2 -2
- package/apps/core/src/domain/helpers/getCoreEntityById.d.ts +7 -7
- package/apps/core/src/domain/helpers/updateRecordLastModif.d.ts +4 -4
- package/apps/core/src/domain/helpers/updateTaskProgress.d.ts +3 -3
- package/apps/core/src/domain/helpers/validate.d.ts +6 -6
- package/apps/core/src/domain/import/importDomain.d.ts +11 -11
- package/apps/core/src/domain/indexationManager/indexationManagerDomain.d.ts +9 -9
- package/apps/core/src/domain/jexl/index.d.ts +1 -0
- package/apps/core/src/domain/jexl/jexlDomain.d.ts +19 -0
- package/apps/core/src/domain/jexl/jexlExtended.d.ts +2 -0
- package/apps/core/src/domain/jexl/types.d.ts +37 -0
- package/apps/core/src/domain/library/helpers/checkSavePermission.d.ts +2 -2
- package/apps/core/src/domain/library/helpers/deleteAssociatedValues.d.ts +5 -5
- package/apps/core/src/domain/library/helpers/index.d.ts +0 -1
- package/apps/core/src/domain/library/helpers/runBehaviorPostSave.d.ts +6 -6
- package/apps/core/src/domain/library/helpers/runPreDelete.d.ts +4 -4
- package/apps/core/src/domain/library/helpers/updateAssociatedForms.d.ts +2 -2
- package/apps/core/src/domain/library/helpers/validateLibAttributes.d.ts +3 -3
- package/apps/core/src/domain/library/helpers/validateLibFullTextAttributes.d.ts +1 -1
- package/apps/core/src/domain/library/helpers/validatePermConf.d.ts +4 -4
- package/apps/core/src/domain/library/helpers/validatePreviewsSettings.d.ts +1 -1
- package/apps/core/src/domain/library/helpers/validateRecordIdentityConf.d.ts +3 -3
- package/apps/core/src/domain/library/libraryDomain.d.ts +11 -11
- package/apps/core/src/domain/log/logDomain.d.ts +5 -5
- package/apps/core/src/domain/logsCollector/logsCollectorDomain.d.ts +1 -1
- package/apps/core/src/domain/notification/channels/emailChannel.d.ts +4 -4
- package/apps/core/src/domain/notification/channels/webSocketChannel.d.ts +1 -1
- package/apps/core/src/domain/notification/notificationDomain.d.ts +3 -3
- package/apps/core/src/domain/permission/_types.d.ts +2 -2
- package/apps/core/src/domain/permission/attributeDependentValuesPermissionDomain.d.ts +8 -4
- package/apps/core/src/domain/permission/helpers/defaultPermission.d.ts +3 -3
- package/apps/core/src/domain/permission/helpers/getPermissionCacheKey.d.ts +1 -1
- package/apps/core/src/domain/permission/helpers/getPermissionCachePatternKey.d.ts +1 -1
- package/apps/core/src/domain/permission/helpers/globalPermission.d.ts +2 -2
- package/apps/core/src/domain/permission/helpers/permissionByUserGroups.d.ts +1 -1
- package/apps/core/src/domain/permission/helpers/permissionsByActions.d.ts +1 -1
- package/apps/core/src/domain/permission/helpers/treeBasedPermissions.d.ts +4 -4
- package/apps/core/src/domain/permission/permissionDomain.d.ts +4 -4
- package/apps/core/src/domain/permission/recordAttributePermissionDomain.d.ts +2 -2
- package/apps/core/src/domain/permission/recordPermissionDomain.d.ts +3 -3
- package/apps/core/src/domain/permission/treeNodePermissionDomain.d.ts +4 -4
- package/apps/core/src/domain/plugins/pluginsDomain.d.ts +3 -3
- package/apps/core/src/domain/record/_types.d.ts +4 -4
- package/apps/core/src/domain/record/helpers/createRecord.d.ts +6 -4
- package/apps/core/src/domain/record/helpers/deleteRecord.d.ts +9 -9
- package/apps/core/src/domain/record/helpers/findRecords.d.ts +2 -2
- package/apps/core/src/domain/record/helpers/getAccessPermissionFilters.d.ts +7 -7
- package/apps/core/src/domain/record/helpers/getAttributesFromField.d.ts +4 -4
- package/apps/core/src/domain/record/helpers/getRecordIdentity.d.ts +27 -0
- package/apps/core/src/domain/record/helpers/index.d.ts +1 -1
- package/apps/core/src/domain/record/helpers/sendRecordUpdateEvent.d.ts +3 -3
- package/apps/core/src/domain/record/recordDomain.d.ts +10 -18
- package/apps/core/src/domain/tasksManager/cronTasksManagerDomain.d.ts +13 -0
- package/apps/core/src/domain/tasksManager/index.d.ts +1 -0
- package/apps/core/src/domain/tasksManager/tasksManagerDomain.d.ts +7 -7
- package/apps/core/src/domain/tree/helpers/elementAncestors.d.ts +2 -2
- package/apps/core/src/domain/tree/helpers/getDefaultElement.d.ts +3 -3
- package/apps/core/src/domain/tree/helpers/handleRemovedLibraries.d.ts +3 -3
- package/apps/core/src/domain/tree/helpers/treeDataValidation.d.ts +3 -3
- package/apps/core/src/domain/tree/treeDomain.d.ts +10 -10
- package/apps/core/src/domain/user/userDomain.d.ts +10 -10
- package/apps/core/src/domain/value/_types.d.ts +5 -5
- package/apps/core/src/domain/value/helpers/areValuesIdentical.d.ts +1 -1
- package/apps/core/src/domain/value/helpers/canSaveRecordValue.d.ts +6 -6
- package/apps/core/src/domain/value/helpers/doesValueExist.d.ts +1 -1
- package/apps/core/src/domain/value/helpers/findValue.d.ts +1 -1
- package/apps/core/src/domain/value/helpers/formatLogValue.d.ts +6 -6
- package/apps/core/src/domain/value/helpers/formatValue.d.ts +17 -0
- package/apps/core/src/domain/value/helpers/getRecordFieldValue.d.ts +27 -0
- package/apps/core/src/domain/value/helpers/getValues.d.ts +26 -0
- package/apps/core/src/domain/value/helpers/index.d.ts +7 -0
- package/apps/core/src/domain/value/helpers/isEmptyValue.d.ts +1 -1
- package/apps/core/src/domain/value/helpers/manageEventMetadata.d.ts +4 -0
- package/apps/core/src/domain/value/helpers/postDeleteValue.d.ts +6 -6
- package/apps/core/src/domain/value/helpers/postSaveValue.d.ts +6 -6
- package/apps/core/src/domain/value/helpers/prepareValue.d.ts +6 -6
- package/apps/core/src/domain/value/helpers/runActionsList.d.ts +10 -0
- package/apps/core/src/domain/value/helpers/saveOneValue.d.ts +8 -8
- package/apps/core/src/domain/value/helpers/validateValue.d.ts +4 -4
- package/apps/core/src/domain/value/tasks/purgeMultipleValues.d.ts +1 -1
- package/apps/core/src/domain/value/tasks/saveValueBulk.d.ts +10 -7
- package/apps/core/src/domain/value/valueDomain.d.ts +27 -17
- package/apps/core/src/domain/versionProfile/versionProfileDomain.d.ts +10 -10
- package/apps/core/src/domain/view/viewDomain.d.ts +7 -7
- package/apps/core/src/i18nextInit.d.ts +1 -1
- package/apps/core/src/infra/apiKey/apiKeyRepo.d.ts +5 -5
- package/apps/core/src/infra/application/applicationRepo.d.ts +3 -3
- package/apps/core/src/infra/attribute/attributeRepo.d.ts +4 -4
- package/apps/core/src/infra/attributeTypes/attributeAdvancedLinkRepo.d.ts +2 -2
- package/apps/core/src/infra/attributeTypes/attributeAdvancedRepo.d.ts +2 -2
- package/apps/core/src/infra/attributeTypes/attributeSimpleLinkRepo.d.ts +2 -2
- package/apps/core/src/infra/attributeTypes/attributeSimpleRepo.d.ts +1 -1
- package/apps/core/src/infra/attributeTypes/attributeTreeRepo.d.ts +2 -2
- package/apps/core/src/infra/attributeTypes/attributeTypesRepo.d.ts +1 -1
- package/apps/core/src/infra/automation/automationRuleRepo.d.ts +31 -0
- package/apps/core/src/infra/automation/index.d.ts +1 -0
- package/apps/core/src/infra/cache/cacheService.d.ts +2 -2
- package/apps/core/src/infra/cache/diskService.d.ts +1 -1
- package/apps/core/src/infra/cache/redis.d.ts +1 -1
- package/apps/core/src/infra/db/_types.d.ts +1 -1
- package/apps/core/src/infra/db/db.d.ts +1 -1
- package/apps/core/src/infra/db/dbService.d.ts +2 -2
- package/apps/core/src/infra/db/dbUtils.d.ts +10 -6
- package/apps/core/src/infra/db/helpers/runMigrationFiles.d.ts +1 -1
- package/apps/core/src/infra/db/migrations/000-init/index.d.ts +3 -3
- package/apps/core/src/infra/db/migrations/000-init/systemAttributes.d.ts +1 -1
- package/apps/core/src/infra/db/migrations/001-delInstallApps.d.ts +1 -1
- package/apps/core/src/infra/db/migrations/002-previewsSettings.d.ts +4 -4
- package/apps/core/src/infra/db/migrations/003-filesMetadata.d.ts +3 -3
- package/apps/core/src/infra/db/migrations/004-formsLabels.d.ts +2 -2
- package/apps/core/src/infra/db/migrations/005-viewSortToArray.d.ts +1 -1
- package/apps/core/src/infra/db/migrations/007-updateHexColor.d.ts +1 -1
- package/apps/core/src/infra/db/migrations/010-formSidePanel.d.ts +2 -2
- package/apps/core/src/infra/db/migrations/013-passwordAttributeMaskValue.d.ts +1 -1
- package/apps/core/src/infra/db/migrations/014-notificationsCollection.d.ts +1 -1
- package/apps/core/src/infra/db/migrations/019-automationRuleCollection.d.ts +7 -0
- package/apps/core/src/infra/elasticsearch/elasticsearchClient.d.ts +1 -1
- package/apps/core/src/infra/elasticsearch/elasticsearchService.d.ts +1 -1
- package/apps/core/src/infra/filesManager/filesManagerRepo.d.ts +4 -4
- package/apps/core/src/infra/form/formRepo.d.ts +6 -6
- package/apps/core/src/infra/globalSettings/globalSettingsRepo.d.ts +3 -3
- package/apps/core/src/infra/indexation/helpers/getSearchQuery.d.ts +1 -1
- package/apps/core/src/infra/indexation/indexationService.d.ts +3 -3
- package/apps/core/src/infra/library/libraryRepo.d.ts +2 -2
- package/apps/core/src/infra/log/logRepo.d.ts +4 -4
- package/apps/core/src/infra/mailer/mailer.d.ts +1 -1
- package/apps/core/src/infra/mailer/mailerService.d.ts +3 -3
- package/apps/core/src/infra/notification/notificationRepo.d.ts +3 -3
- package/apps/core/src/infra/permission/permissionRepo.d.ts +1 -1
- package/apps/core/src/infra/plugins/pluginsRepo.d.ts +1 -1
- package/apps/core/src/infra/record/helpers/getClassifyingFiltersVariableQueryPart.d.ts +2 -2
- package/apps/core/src/infra/record/helpers/getSearchVariablesQueryPart.d.ts +1 -1
- package/apps/core/src/infra/record/recordRepo.d.ts +5 -5
- package/apps/core/src/infra/task/taskRepo.d.ts +6 -6
- package/apps/core/src/infra/tree/_types.d.ts +1 -1
- package/apps/core/src/infra/tree/treeRepo.d.ts +5 -5
- package/apps/core/src/infra/userData/userDataRepo.d.ts +2 -2
- package/apps/core/src/infra/value/valueRepo.d.ts +5 -5
- package/apps/core/src/infra/versionProfile/versionProfileRepo.d.ts +6 -6
- package/apps/core/src/infra/view/_types.d.ts +5 -5
- package/apps/core/src/interface/cli.d.ts +1 -1
- package/apps/core/src/interface/filesManager.d.ts +1 -1
- package/apps/core/src/interface/helpers/handleGraphqlError.d.ts +3 -3
- package/apps/core/src/interface/indexationManager.d.ts +1 -1
- package/apps/core/src/interface/logsCollector.d.ts +1 -1
- package/apps/core/src/interface/server.d.ts +10 -8
- package/apps/core/src/interface/tasksManager.d.ts +1 -1
- package/apps/core/src/pluginsLoader.d.ts +1 -0
- package/apps/core/src/utils/configureDayjs.d.ts +1 -1
- package/apps/core/src/utils/dataloader.d.ts +1 -1
- package/apps/core/src/utils/helpers/getSystemQueryContext.d.ts +2 -2
- package/apps/core/src/utils/helpers/getValuesToDisplay.d.ts +1 -1
- package/apps/core/src/utils/logger/logger.d.ts +1 -1
- package/apps/core/src/utils/utils.d.ts +3 -3
- package/apps/core/tsconfig.types.tsbuildinfo +1 -1
- package/apps/core/vitest.e2e-api.config.d.ts +2 -0
- package/apps/core/vitest.e2e-fileManager.config.d.ts +2 -0
- package/apps/core/vitest.e2e-indexationManager.config.d.ts +2 -0
- package/apps/core/vitest.integration.config.d.ts +2 -0
- package/apps/core/vitest.unit.config.d.ts +2 -0
- package/libs/utils/src/types/events.d.ts +6 -0
- package/libs/utils/src/types/helpers.d.ts +0 -3
- package/libs/utils/src/utils.d.ts +3 -1
- package/package.json +3 -5
- package/apps/core/scripts/build.d.ts +0 -2
- package/apps/core/scripts/utils.d.ts +0 -3
- package/apps/core/src/__tests__/e2e/_gqlTypes/index.d.ts +0 -1225
- package/apps/core/src/__tests__/e2e/api/_fixtures/applications/login/index-hashed.d.ts +0 -0
- package/apps/core/src/__tests__/e2e/api/_fixtures/fakeplugin/_types/_types.d.ts +0 -3
- package/apps/core/src/__tests__/e2e/api/_fixtures/fakeplugin/domain/fakeDomain.d.ts +0 -13
- package/apps/core/src/__tests__/e2e/api/_fixtures/fakeplugin/domain/index.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/_fixtures/fakeplugin/index.d.ts +0 -21
- package/apps/core/src/__tests__/e2e/api/actionLists/actionLists.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/actionLists/actions/inheritanceCalculationAction.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/actionLists/actions/replaceAnotherAttributeAction.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/apiKey/apiKey.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/applications/applications.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/attributes/attributes.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/auth/auth.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/constants.d.ts +0 -2
- package/apps/core/src/__tests__/e2e/api/discussions/discussions.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/e2eUtils.d.ts +0 -150
- package/apps/core/src/__tests__/e2e/api/export/export.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/export/exportNestedAttributes.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/files/files.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/forms/forms.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/getConditionPart/getConditionPart.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/globalSettings/globalSettings.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/globalSetup.d.ts +0 -8
- package/apps/core/src/__tests__/e2e/api/globalSetupHook.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/graphql/graphql.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/import/import.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/joinLibraries/joinLibraries.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/joinLibraries/nestedJoinLibraries.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/libraries/libraries.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/mailpitUtils.d.ts +0 -37
- package/apps/core/src/__tests__/e2e/api/notificationUtils.d.ts +0 -7
- package/apps/core/src/__tests__/e2e/api/notifications/notifications.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/permissions/admin/apiKeyAdminPermissions.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/permissions/admin/applicationsAdminPermissions.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/permissions/admin/attributesAdminPermissions.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/permissions/admin/formsAdminPermissions.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/permissions/admin/globalSettingsAdminPermissions.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/permissions/admin/librariesAdminPermissions.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/permissions/admin/permissionsAdminPermissions.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/permissions/admin/treesAdminPermissions.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/permissions/admin/versionProfilesAdminPermissions.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/permissions/applicationsPermissions.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/permissions/attributePermissions.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/permissions/dependentValuesTreeAttributePermissions.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/permissions/extendedLibraryPermissions.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/permissions/permissions.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/permissions/recordAttributePermissions.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/permissions/recordPermissions.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/permissions/treeLibraryPermissions.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/permissions/treeNodePermissions.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/permissions/treePermissions.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/plugins/plugins.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/records/recordIdentity.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/records/records.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/records/recordsDeletion.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/records/searchFilters.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/task/taskSubscription.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/task/tasksAdminPermissions.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/taskUtils.d.ts +0 -4
- package/apps/core/src/__tests__/e2e/api/teardown.d.ts +0 -2
- package/apps/core/src/__tests__/e2e/api/trees/treeNodeChildrenAndContentQuery.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/trees/trees.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/userData/maskUserPassword.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/userData/userData.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/values/listDistinctValues.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/values/metadata.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/values/purgeMultipleValues.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/values/saveValueBulk.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/values/values.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/values/versions.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/versionProfile/versionProfile.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/api/views/views.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/filesManager/filesManager/filesManager.test.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/filesManager/globalSetup.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/filesManager/globalSetupHook.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/indexationManager/globalSetup.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/indexationManager/globalSetupHook.d.ts +0 -1
- package/apps/core/src/__tests__/e2e/indexationManager/indexation.test.d.ts +0 -1
- package/apps/core/src/__tests__/global-setup.d.ts +0 -0
- package/apps/core/src/__tests__/integration/domain/tasksManagerDomain.test.d.ts +0 -1
- package/apps/core/src/__tests__/integration/globalSetup.d.ts +0 -1
- package/apps/core/src/__tests__/integration/globalSetupHook.d.ts +0 -1
- package/apps/core/src/__tests__/integration/infra/attributeAdvancedLinkRepo.test.d.ts +0 -1
- package/apps/core/src/__tests__/integration/infra/attributeAdvancedRepo.test.d.ts +0 -1
- package/apps/core/src/__tests__/integration/infra/attributeSimpleLinkRepo.test.d.ts +0 -1
- package/apps/core/src/__tests__/integration/infra/attributeSimpleRepo.test.d.ts +0 -1
- package/apps/core/src/__tests__/integration/infra/attributeTreeRepo.test.d.ts +0 -1
- package/apps/core/src/__tests__/integration/infra/integrationTestRepoUtils.d.ts +0 -11
- package/apps/core/src/__tests__/integration/infra/notificationRepo.test.d.ts +0 -1
- package/apps/core/src/__tests__/integration/infra/permissionRepo.test.d.ts +0 -1
- package/apps/core/src/__tests__/integration/infra/ramService.test.d.ts +0 -1
- package/apps/core/src/__tests__/integration/infra/recordRepo.test.d.ts +0 -1
- package/apps/core/src/__tests__/integration/infra/treeRepo.test.d.ts +0 -1
- package/apps/core/src/__tests__/integration/integrationTestUtils.d.ts +0 -7
- package/apps/core/src/__tests__/integration/teardown.d.ts +0 -1
- package/apps/core/src/__tests__/jestUtils.d.ts +0 -12
- package/apps/core/src/__tests__/mockers/amqp.d.ts +0 -8
- package/apps/core/src/__tests__/mockers/logger.d.ts +0 -7
- package/apps/core/src/__tests__/mocks/actionsList.d.ts +0 -73
- package/apps/core/src/__tests__/mocks/apiKey.d.ts +0 -11
- package/apps/core/src/__tests__/mocks/application.d.ts +0 -3
- package/apps/core/src/__tests__/mocks/attribute.d.ts +0 -45
- package/apps/core/src/__tests__/mocks/cache.d.ts +0 -4
- package/apps/core/src/__tests__/mocks/file.d.ts +0 -29
- package/apps/core/src/__tests__/mocks/forms.d.ts +0 -4
- package/apps/core/src/__tests__/mocks/globalSettings.d.ts +0 -2
- package/apps/core/src/__tests__/mocks/graphql-upload.d.ts +0 -3
- package/apps/core/src/__tests__/mocks/library.d.ts +0 -4
- package/apps/core/src/__tests__/mocks/log.d.ts +0 -2
- package/apps/core/src/__tests__/mocks/plugins.d.ts +0 -2
- package/apps/core/src/__tests__/mocks/record.d.ts +0 -3
- package/apps/core/src/__tests__/mocks/shared.d.ts +0 -3
- package/apps/core/src/__tests__/mocks/task.d.ts +0 -2
- package/apps/core/src/__tests__/mocks/translator.d.ts +0 -3
- package/apps/core/src/__tests__/mocks/tree.d.ts +0 -3
- package/apps/core/src/__tests__/mocks/value.d.ts +0 -2
- package/apps/core/src/__tests__/mocks/versionProfile.d.ts +0 -2
- package/apps/core/src/__tests__/mocks/view.d.ts +0 -3
- package/apps/core/src/__tests__/setup.d.ts +0 -1
- package/apps/core/src/app/application/__tests__/applicationApp.spec.d.ts +0 -1
- package/apps/core/src/app/auth/__tests__/authApp.spec.d.ts +0 -1
- package/apps/core/src/app/core/coreApp.spec.d.ts +0 -1
- package/apps/core/src/app/endpoint/endpointApp.spec.d.ts +0 -1
- package/apps/core/src/app/graphql/customScalars/any/any.spec.d.ts +0 -1
- package/apps/core/src/app/graphql/customScalars/dateTime/dateTime.spec.d.ts +0 -1
- package/apps/core/src/app/graphql/customScalars/systemTranslation/systemTranslation.spec.d.ts +0 -1
- package/apps/core/src/app/graphql/graphqlApp.spec.d.ts +0 -1
- package/apps/core/src/app/helpers/convertOIDCIdentifier.spec.d.ts +0 -1
- package/apps/core/src/app/helpers/convertVersionFromGqlFormat.spec.d.ts +0 -1
- package/apps/core/src/app/helpers/validateRequestToken.spec.d.ts +0 -1
- package/apps/core/src/domain/actions/dateRangeToNumberAction.spec.d.ts +0 -1
- package/apps/core/src/domain/actions/encryptAction.spec.d.ts +0 -1
- package/apps/core/src/domain/actions/excelCalculationAction.spec.d.ts +0 -1
- package/apps/core/src/domain/actions/formatDateAction.spec.d.ts +0 -1
- package/apps/core/src/domain/actions/formatDateRangeAction.spec.d.ts +0 -1
- package/apps/core/src/domain/actions/formatNumberAction.spec.d.ts +0 -1
- package/apps/core/src/domain/actions/inheritanceCalculationAction.spec.d.ts +0 -1
- package/apps/core/src/domain/actions/maskValueAction.spec.d.ts +0 -1
- package/apps/core/src/domain/actions/parseJSONAction.spec.d.ts +0 -1
- package/apps/core/src/domain/actions/toBooleanAction.spec.d.ts +0 -1
- package/apps/core/src/domain/actions/toJSONAction.spec.d.ts +0 -1
- package/apps/core/src/domain/actions/toLowercaseAction.spec.d.ts +0 -1
- package/apps/core/src/domain/actions/toNumberAction.spec.d.ts +0 -1
- package/apps/core/src/domain/actions/toStringAction.spec.d.ts +0 -1
- package/apps/core/src/domain/actions/toUppercaseAction.spec.d.ts +0 -1
- package/apps/core/src/domain/actions/validateEmailAction.spec.d.ts +0 -1
- package/apps/core/src/domain/actions/validateFormatAction.spec.d.ts +0 -1
- package/apps/core/src/domain/actions/validateRegexAction.spec.d.ts +0 -1
- package/apps/core/src/domain/actions/validateURLAction.spec.d.ts +0 -1
- package/apps/core/src/domain/actionsList/actionsListDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/apiKey/apiKeyDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/application/applicationDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/attribute/attributeDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/attribute/helpers/ifLibraryJoinLinkAttribute.spec.d.ts +0 -1
- package/apps/core/src/domain/core/coreDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/eventsManager/eventsManagerDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/export/exportDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/export/exportProfileDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/filesManager/filesManagerDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleFileSystemEvent.spec.d.ts +0 -1
- package/apps/core/src/domain/filesManager/helpers/messagesHandler/messagesHandler.spec.d.ts +0 -1
- package/apps/core/src/domain/form/formDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/globalSettings/globalSettingsDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/helpers/calculations/calculationVariable.spec.d.ts +0 -1
- package/apps/core/src/domain/helpers/calculations/calculationsVariableFunctions.spec.d.ts +0 -1
- package/apps/core/src/domain/import/importDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/indexationManager/indexationManagerDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/library/helpers/runPreDelete.spec.d.ts +0 -1
- package/apps/core/src/domain/library/libraryDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/log/logDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/permission/adminPermissionDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/permission/applicationPermissionDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/permission/attributePermissionDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/permission/helpers/defaultPermission.spec.d.ts +0 -1
- package/apps/core/src/domain/permission/helpers/getPermissionCacheKey.spec.d.ts +0 -1
- package/apps/core/src/domain/permission/helpers/getPermissionCachePatternKey.spec.d.ts +0 -1
- package/apps/core/src/domain/permission/helpers/globalPermission.spec.d.ts +0 -1
- package/apps/core/src/domain/permission/helpers/permissionByUserGroups.spec.d.ts +0 -1
- package/apps/core/src/domain/permission/helpers/permissionsByActions.spec.d.ts +0 -1
- package/apps/core/src/domain/permission/helpers/reducePermissionsArray.spec.d.ts +0 -1
- package/apps/core/src/domain/permission/helpers/simplePermission.spec.d.ts +0 -1
- package/apps/core/src/domain/permission/helpers/treeBasedPermissions.spec.d.ts +0 -1
- package/apps/core/src/domain/permission/libraryPermissionDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/permission/permissionDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/permission/recordAttributePermissionDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/permission/recordPermissionDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/permission/treeLibraryPermissionDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/permission/treeNodePermissionDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/permission/treePermissionDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/plugins/pluginsDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/record/helpers/findRecords.spec.d.ts +0 -1
- package/apps/core/src/domain/record/helpers/getRecordFieldValue.spec.d.ts +0 -0
- package/apps/core/src/domain/record/recordDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/tasksManager/tasksManagerDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/tree/helpers/getDefaultElement.spec.d.ts +0 -1
- package/apps/core/src/domain/tree/helpers/handleRemovedLibraries.spec.d.ts +0 -1
- package/apps/core/src/domain/tree/helpers/treeDataValidation.spec.d.ts +0 -1
- package/apps/core/src/domain/tree/treeDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/user/userDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/value/helpers/areValuesIdentical.spec.d.ts +0 -1
- package/apps/core/src/domain/value/helpers/formatLogValue.spec.d.ts +0 -1
- package/apps/core/src/domain/value/valueDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/versionProfile/versionProfileDomain.spec.d.ts +0 -1
- package/apps/core/src/domain/view/viewDomain.spec.d.ts +0 -1
- package/apps/core/src/infra/apiKey/apiKeyRepo.spec.d.ts +0 -1
- package/apps/core/src/infra/application/applicationRepo.spec.d.ts +0 -1
- package/apps/core/src/infra/attribute/attributeRepo.spec.d.ts +0 -1
- package/apps/core/src/infra/attributeTypes/attributeAdvancedLinkRepo.spec.d.ts +0 -1
- package/apps/core/src/infra/attributeTypes/attributeAdvancedRepo.spec.d.ts +0 -1
- package/apps/core/src/infra/attributeTypes/attributeSimpleLinkRepo.spec.d.ts +0 -1
- package/apps/core/src/infra/attributeTypes/attributeSimpleRepo.spec.d.ts +0 -1
- package/apps/core/src/infra/attributeTypes/attributeTreeRepo.spec.d.ts +0 -1
- package/apps/core/src/infra/attributeTypes/attributeTypesRepo.spec.d.ts +0 -1
- package/apps/core/src/infra/db/dbService.spec.d.ts +0 -1
- package/apps/core/src/infra/db/dbUtils.spec.d.ts +0 -1
- package/apps/core/src/infra/filesManager/filesManagerRepo.spec.d.ts +0 -1
- package/apps/core/src/infra/form/formRepo.spec.d.ts +0 -1
- package/apps/core/src/infra/globalSettings/globalSettingsRepo.spec.d.ts +0 -1
- package/apps/core/src/infra/indexation/helpers/getSearchQuery.spec.d.ts +0 -1
- package/apps/core/src/infra/library/libraryRepo.spec.d.ts +0 -1
- package/apps/core/src/infra/log/logRepo.spec.d.ts +0 -1
- package/apps/core/src/infra/oidc/__tests__/oidcClient.spec.d.ts +0 -1
- package/apps/core/src/infra/oidc/__tests__/oidcClientService.spec.d.ts +0 -1
- package/apps/core/src/infra/permission/permissionRepo.spec.d.ts +0 -1
- package/apps/core/src/infra/plugins/pluginsRepo.spec.d.ts +0 -1
- package/apps/core/src/infra/record/helpers/filterTypes.spec.d.ts +0 -1
- package/apps/core/src/infra/record/helpers/getClassifyingFiltersVariableQueryPart.spec.d.ts +0 -1
- package/apps/core/src/infra/record/helpers/getSearchVariableName.spec.d.ts +0 -1
- package/apps/core/src/infra/record/helpers/getSearchVariablesQueryPart.spec.d.ts +0 -1
- package/apps/core/src/infra/record/recordRepo.spec.d.ts +0 -1
- package/apps/core/src/infra/task/taskRepo.spec.d.ts +0 -1
- package/apps/core/src/infra/tree/treeRepo.spec.d.ts +0 -1
- package/apps/core/src/infra/userData/userDataRepo.spec.d.ts +0 -1
- package/apps/core/src/infra/value/valueRepo.spec.d.ts +0 -1
- package/apps/core/src/infra/versionProfile/versionProfileRepo.spec.d.ts +0 -1
- package/apps/core/src/infra/view/viewRepo.spec.d.ts +0 -1
- package/apps/core/src/interface/helpers/handleGraphqlError.spec.d.ts +0 -1
- package/apps/core/src/utils/dataloader.spec.d.ts +0 -1
- package/apps/core/src/utils/helpers/getValuesToDisplay.spec.d.ts +0 -1
- package/apps/core/src/utils/typeGuards/typeGuards.spec.d.ts +0 -1
- package/apps/core/src/utils/utils.spec.d.ts +0 -1
- /package/apps/core/{scripts/preload.d.ts → src/pluginsModuleResolver.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type IUtils } from 'utils/utils';
|
|
1
|
+
import { type IUtils } from '../../../utils/utils';
|
|
2
2
|
import { type ActionsListConfig } from '../../../_types/actionsList';
|
|
3
3
|
import { type IAttribute, type IOAllowedTypes } from '../../../_types/attribute';
|
|
4
4
|
declare const getAllowedInputTypes: (attribute: IAttribute) => IOAllowedTypes;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { type IActionsListDomain } from '
|
|
2
|
-
import { type IVersionProfileDomain } from '
|
|
3
|
-
import { type IAttributeRepo } from 'infra/attribute/attributeRepo';
|
|
4
|
-
import { type ITreeRepo } from 'infra/tree/treeRepo';
|
|
5
|
-
import { type IUtils } from 'utils/utils';
|
|
6
|
-
import { type IQueryInfos } from '_types/queryInfos';
|
|
1
|
+
import { type IActionsListDomain } from '../../actionsList/actionsListDomain';
|
|
2
|
+
import { type IVersionProfileDomain } from '../../versionProfile/versionProfileDomain';
|
|
3
|
+
import { type IAttributeRepo } from '../../../infra/attribute/attributeRepo';
|
|
4
|
+
import { type ITreeRepo } from '../../../infra/tree/treeRepo';
|
|
5
|
+
import { type IUtils } from '../../../utils/utils';
|
|
6
|
+
import { type IQueryInfos } from '../../../_types/queryInfos';
|
|
7
7
|
import { type IAttribute } from '../../../_types/attribute';
|
|
8
8
|
import { type ErrorFieldDetail } from '../../../_types/errors';
|
|
9
9
|
export declare const validateAttributeData: (attrData: IAttribute, deps: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type IAttribute } from '../../../_types/attribute';
|
|
2
2
|
import { type IQueryInfos } from '../../../_types/queryInfos';
|
|
3
|
-
import { type IAttributeDomain } from '
|
|
4
|
-
import { type GetCoreEntityByIdFunc } from '
|
|
3
|
+
import { type IAttributeDomain } from '../attributeDomain';
|
|
4
|
+
import { type GetCoreEntityByIdFunc } from '../../helpers/getCoreEntityById';
|
|
5
5
|
export type IfLibraryJoinLinkAttributeCallback<R> = (joinLibId: string, joinAttributeProps: IAttribute) => Promise<R>;
|
|
6
6
|
export type IfLibraryJoinLinkAttribute = <R = unknown>(attributeProps: IAttribute, callback: IfLibraryJoinLinkAttributeCallback<R>, ctx: IQueryInfos) => Promise<R | void>;
|
|
7
7
|
export interface IIfLibraryJoinLinkDeps {
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type ZodObject } from 'zod';
|
|
2
|
+
import { type IAutomationPipelineExecutionState } from '../pipeline/_types';
|
|
3
|
+
import { type IQueryInfos } from '../../../_types/queryInfos';
|
|
4
|
+
export declare enum AutomationRuleActions {
|
|
5
|
+
LOG = "log",
|
|
6
|
+
CONDITION = "condition",
|
|
7
|
+
ERROR = "error",
|
|
8
|
+
JEXL_CALCULATION = "jexlCalculation",
|
|
9
|
+
MODIFY_ATTRIBUTE = "modifyAttribute"
|
|
10
|
+
}
|
|
11
|
+
export interface IAutomationAction<Params = unknown> {
|
|
12
|
+
readonly type: AutomationRuleActions | string;
|
|
13
|
+
readonly paramsSchema: ZodObject<any>;
|
|
14
|
+
validateParams?: (params: Params) => Promise<void>;
|
|
15
|
+
execute(params: Params, state: IAutomationPipelineExecutionState, ctx: IQueryInfos): Promise<IActionExecutionResult | void>;
|
|
16
|
+
}
|
|
17
|
+
export declare enum ActionExecutionResultStatus {
|
|
18
|
+
CONTINUE = "continue",
|
|
19
|
+
STOP = "stop"
|
|
20
|
+
}
|
|
21
|
+
export type IActionExecutionResult = {
|
|
22
|
+
status: ActionExecutionResultStatus.CONTINUE;
|
|
23
|
+
result?: unknown;
|
|
24
|
+
} | {
|
|
25
|
+
status: ActionExecutionResultStatus.STOP;
|
|
26
|
+
reason?: string;
|
|
27
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type IAutomationAction } from './_types';
|
|
3
|
+
declare const conditionActionParamsSchema: z.ZodObject<{
|
|
4
|
+
result: z.ZodBoolean;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export type ConditionActionParams = z.infer<typeof conditionActionParamsSchema>;
|
|
7
|
+
export default function (): IAutomationAction<ConditionActionParams>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type IAutomationAction } from './_types';
|
|
3
|
+
declare const errorActionParamsSchema: z.ZodObject<{
|
|
4
|
+
message: z.ZodString;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export type ErrorActionParams = z.infer<typeof errorActionParamsSchema>;
|
|
7
|
+
export default function (): IAutomationAction<ErrorActionParams>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as condition } from './conditionAction';
|
|
2
|
+
export { default as error } from './errorAction';
|
|
3
|
+
export { default as log } from './logAction';
|
|
4
|
+
export { default as jexlCalculation } from './jexlCalculationAutomationAction';
|
|
5
|
+
export { default as modifyAttribute } from './modifyAttributeAction';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type IJexlDomain } from '../../jexl/jexlDomain';
|
|
3
|
+
import { type IConfig } from '../../../_types/config';
|
|
4
|
+
import { type IAutomationAction } from './_types';
|
|
5
|
+
declare const jexlCalculationActionParamsSchema: z.ZodObject<{
|
|
6
|
+
formula: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export type JexlCalculationActionParams = z.infer<typeof jexlCalculationActionParamsSchema>;
|
|
9
|
+
interface IDeps {
|
|
10
|
+
'core.domain.jexl': IJexlDomain;
|
|
11
|
+
config: IConfig;
|
|
12
|
+
}
|
|
13
|
+
export default function ({ 'core.domain.jexl': jexl, config }: IDeps): IAutomationAction<JexlCalculationActionParams>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type IAutomationAction } from './_types';
|
|
3
|
+
declare const logActionParamsSchema: z.ZodObject<{
|
|
4
|
+
message: z.ZodString;
|
|
5
|
+
level: z.ZodOptional<z.ZodEnum<{
|
|
6
|
+
info: "info";
|
|
7
|
+
error: "error";
|
|
8
|
+
debug: "debug";
|
|
9
|
+
silly: "silly";
|
|
10
|
+
verbose: "verbose";
|
|
11
|
+
warn: "warn";
|
|
12
|
+
}>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export type LogActionParams = z.infer<typeof logActionParamsSchema>;
|
|
15
|
+
export default function (): IAutomationAction<LogActionParams>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type IAutomationAction } from './_types';
|
|
3
|
+
import { type IValueDomain } from '../../value/valueDomain';
|
|
4
|
+
import { type IAttributeDomain } from '../../attribute/attributeDomain';
|
|
5
|
+
declare const modifyAttributeActionParamsSchema: z.ZodObject<{
|
|
6
|
+
attributePath: z.ZodString;
|
|
7
|
+
mode: z.ZodEnum<{
|
|
8
|
+
replace: "replace";
|
|
9
|
+
add: "add";
|
|
10
|
+
}>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export type ModifyAttributeActionParams = z.infer<typeof modifyAttributeActionParamsSchema>;
|
|
13
|
+
interface IDeps {
|
|
14
|
+
'core.domain.value': IValueDomain;
|
|
15
|
+
'core.domain.attribute': IAttributeDomain;
|
|
16
|
+
}
|
|
17
|
+
export default function ({ 'core.domain.value': valueDomain, 'core.domain.attribute': attributeDomain, }: IDeps): IAutomationAction<ModifyAttributeActionParams>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type AwilixContainer } from 'awilix';
|
|
2
|
+
import { type IAutomationAction, type AutomationRuleActions } from './actions/_types';
|
|
3
|
+
export interface IAutomationActionsRegistry {
|
|
4
|
+
getAction(type: AutomationRuleActions | string): IAutomationAction | undefined;
|
|
5
|
+
listAvailableActions(): IAutomationAction[];
|
|
6
|
+
}
|
|
7
|
+
export interface IAutomationActionsRegistryDeps {
|
|
8
|
+
'core.depsManager': AwilixContainer;
|
|
9
|
+
}
|
|
10
|
+
export default function ({ 'core.depsManager': depsManager, }: IAutomationActionsRegistryDeps): IAutomationActionsRegistry;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { type ICreateAutomationRule, type IAutomationRule, type IUpdateAutomationRule, type AutomationRulesEventTopic, type AutomationRuleEventAction } from '../../_types/automation';
|
|
2
|
+
import { type IList } from '../../_types/list';
|
|
3
|
+
import { type IQueryInfos } from '../../_types/queryInfos';
|
|
4
|
+
import { type IGetCoreEntitiesParams } from '../../_types/shared';
|
|
5
|
+
import { type IAutomationRuleRepo } from '../../infra/automation/automationRuleRepo';
|
|
6
|
+
import { type IAdminPermissionDomain } from '../permission/adminPermissionDomain';
|
|
7
|
+
import { type IEventsManagerDomain } from '../eventsManager/eventsManagerDomain';
|
|
8
|
+
import { type IConfig } from '../../_types/config';
|
|
9
|
+
import { type IAutomationPipelineDomain } from './pipeline/pipeline';
|
|
10
|
+
import { type IAutomationTriggers } from './triggers/automationTriggers';
|
|
11
|
+
import { type AutomationTriggerDef } from './triggers/_types';
|
|
12
|
+
export interface IGetAutomationRulesParams extends IGetCoreEntitiesParams {
|
|
13
|
+
filters?: ICoreEntityFilterOptions & {
|
|
14
|
+
active?: boolean;
|
|
15
|
+
synchronous?: boolean;
|
|
16
|
+
eventAction?: AutomationRuleEventAction;
|
|
17
|
+
eventTopic?: AutomationRulesEventTopic;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
interface ITriggerRulesParams {
|
|
21
|
+
event: {
|
|
22
|
+
action: IAutomationRule['trigger']['eventAction'];
|
|
23
|
+
topic?: IAutomationRule['trigger']['eventTopic'];
|
|
24
|
+
};
|
|
25
|
+
synchronous: boolean;
|
|
26
|
+
ctx: IQueryInfos;
|
|
27
|
+
}
|
|
28
|
+
export interface IAutomationDomain {
|
|
29
|
+
getAutomationRules({ params, ctx, }: {
|
|
30
|
+
params: IGetAutomationRulesParams;
|
|
31
|
+
ctx: IQueryInfos;
|
|
32
|
+
}): Promise<IList<IAutomationRule>>;
|
|
33
|
+
createAutomationRule({ rule, ctx }: {
|
|
34
|
+
rule: ICreateAutomationRule;
|
|
35
|
+
ctx: IQueryInfos;
|
|
36
|
+
}): Promise<IAutomationRule>;
|
|
37
|
+
updateAutomationRule({ rule, ctx }: {
|
|
38
|
+
rule: IUpdateAutomationRule;
|
|
39
|
+
ctx: IQueryInfos;
|
|
40
|
+
}): Promise<IAutomationRule>;
|
|
41
|
+
deleteAutomationRule({ ruleId, ctx }: {
|
|
42
|
+
ruleId: string;
|
|
43
|
+
ctx: IQueryInfos;
|
|
44
|
+
}): Promise<IAutomationRule>;
|
|
45
|
+
triggerRules(params: ITriggerRulesParams): Promise<void>;
|
|
46
|
+
listAutomationTriggersDef({ ctx }: {
|
|
47
|
+
ctx: IQueryInfos;
|
|
48
|
+
}): Promise<AutomationTriggerDef[]>;
|
|
49
|
+
}
|
|
50
|
+
export interface IAutomationDomainDeps {
|
|
51
|
+
'core.domain.automation.triggers': IAutomationTriggers;
|
|
52
|
+
'core.domain.permission.admin': IAdminPermissionDomain;
|
|
53
|
+
'core.domain.eventsManager': IEventsManagerDomain;
|
|
54
|
+
'core.domain.automation.pipeline': IAutomationPipelineDomain;
|
|
55
|
+
'core.infra.automation.rule': IAutomationRuleRepo;
|
|
56
|
+
config: IConfig;
|
|
57
|
+
}
|
|
58
|
+
export default function ({ 'core.domain.automation.triggers': automationTriggers, 'core.domain.permission.admin': adminPermissionDomain, 'core.domain.eventsManager': eventsManagerDomain, 'core.domain.automation.pipeline': pipelineDomain, 'core.infra.automation.rule': automationRuleRepo, config, }: IAutomationDomainDeps): IAutomationDomain;
|
|
59
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type AutomationRuleEventAction, type AutomationRulesEventTopic, type IAutomationRule } from '../../_types/automation';
|
|
2
|
+
import { type IQueryInfos } from '../../_types/queryInfos';
|
|
3
|
+
export declare const TRIGGER_FAKER_RULES_FOR_DEV = false;
|
|
4
|
+
export declare const buildFakeRulesToTrigger: (event: {
|
|
5
|
+
action: AutomationRuleEventAction;
|
|
6
|
+
topic?: AutomationRulesEventTopic;
|
|
7
|
+
}, synchronous: boolean, ctx: IQueryInfos) => Promise<IAutomationRule[]>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type AutomationRuleTrigger } from '../../../_types/automation';
|
|
2
|
+
import { type AutomationRuleActions } from '../actions/_types';
|
|
3
|
+
export type AutomationPipelineToExecute = AutomationRulePipeline & {
|
|
4
|
+
ruleId: string;
|
|
5
|
+
trigger: AutomationRuleTrigger;
|
|
6
|
+
};
|
|
7
|
+
export type AutomationRulePipeline = {
|
|
8
|
+
steps: AutomationRulePipelineStep[];
|
|
9
|
+
};
|
|
10
|
+
export type AutomationRulePipelineStep = {
|
|
11
|
+
type: AutomationRuleActions | string;
|
|
12
|
+
name?: string;
|
|
13
|
+
params: Record<string, unknown>;
|
|
14
|
+
};
|
|
15
|
+
export type IAutomationPipelineFailure = {
|
|
16
|
+
readonly results: Record<string, unknown | {
|
|
17
|
+
stack?: string;
|
|
18
|
+
message: string;
|
|
19
|
+
name: string;
|
|
20
|
+
[k: string]: unknown;
|
|
21
|
+
}>;
|
|
22
|
+
};
|
|
23
|
+
export type IAutomationPipelineSuccess = {
|
|
24
|
+
readonly results: Record<string, unknown>;
|
|
25
|
+
};
|
|
26
|
+
export type IAutomationPipelineExecutionState = {
|
|
27
|
+
readonly trigger: AutomationRuleTrigger;
|
|
28
|
+
readonly results: IAutomationPipelineExecutionResults;
|
|
29
|
+
readonly lastResult?: unknown;
|
|
30
|
+
readonly startDateMs: number;
|
|
31
|
+
stepIndex: number;
|
|
32
|
+
};
|
|
33
|
+
export type IAutomationPipelineExecutionResults = Record<string, unknown>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './pipeline';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type AutomationRuleTrigger } from '../../../_types/automation';
|
|
2
|
+
import { type AutomationRulePipeline } from '../pipeline/_types';
|
|
3
|
+
import { type IEventsManagerDomain } from '../../eventsManager/eventsManagerDomain';
|
|
4
|
+
import { type IQueryInfos } from '../../../_types/queryInfos';
|
|
5
|
+
import { type IAutomationActionsRegistry } from '../automationActionsRegistry';
|
|
6
|
+
export type AutomationPipelineToExecute = AutomationRulePipeline & {
|
|
7
|
+
ruleId: string;
|
|
8
|
+
trigger: AutomationRuleTrigger;
|
|
9
|
+
};
|
|
10
|
+
export interface IAutomationPipelineDomain {
|
|
11
|
+
executePipeline(pipelineExec: AutomationPipelineToExecute, ctx: IQueryInfos): Promise<boolean>;
|
|
12
|
+
validatePipeline(pipeline: AutomationRulePipeline): Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
export interface IPipelineExecutorDeps {
|
|
15
|
+
'core.domain.eventsManager': IEventsManagerDomain;
|
|
16
|
+
'core.domain.automation.actionsRegistry': IAutomationActionsRegistry;
|
|
17
|
+
}
|
|
18
|
+
export default function ({ 'core.domain.eventsManager': eventsManager, 'core.domain.automation.actionsRegistry': actionsRegistry, }: IPipelineExecutorDeps): IAutomationPipelineDomain;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type AutomationRuleEventAction } from '../../../_types/automation';
|
|
2
|
+
export declare enum AutomationTriggerDefTopics {
|
|
3
|
+
LIBRARY = "LIBRARY",
|
|
4
|
+
ATTRIBUTE = "ATTRIBUTE"
|
|
5
|
+
}
|
|
6
|
+
export declare enum AutomationTriggerDefSynchronicity {
|
|
7
|
+
SYNC = "SYNC",
|
|
8
|
+
ASYNC = "ASYNC",
|
|
9
|
+
BOTH = "BOTH"
|
|
10
|
+
}
|
|
11
|
+
export type AutomationTriggerDef = {
|
|
12
|
+
eventAction: AutomationRuleEventAction;
|
|
13
|
+
topics: AutomationTriggerDefTopics[];
|
|
14
|
+
synchronicity: AutomationTriggerDefSynchronicity;
|
|
15
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type AutomationRuleTrigger } from '../../../_types/automation';
|
|
2
|
+
import { type IQueryInfos } from '../../../_types/queryInfos';
|
|
3
|
+
import { type IAutomationTriggersRegistry } from './automationTriggersRegistry';
|
|
4
|
+
import { type AutomationTriggerDef } from './_types';
|
|
5
|
+
export interface IAutomationTriggers {
|
|
6
|
+
listAutomationTriggersDef({ ctx }: {
|
|
7
|
+
ctx: IQueryInfos;
|
|
8
|
+
}): AutomationTriggerDef[];
|
|
9
|
+
validateAutomationRuleTrigger(ruleTrigger: AutomationRuleTrigger, ctx: IQueryInfos): Promise<void>;
|
|
10
|
+
}
|
|
11
|
+
export interface IAutomationTriggersDeps {
|
|
12
|
+
'core.domain.automation.triggers.registry': IAutomationTriggersRegistry;
|
|
13
|
+
}
|
|
14
|
+
export default function ({ 'core.domain.automation.triggers.registry': triggersRegistry, }: IAutomationTriggersDeps): IAutomationTriggers;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type ZodType } from 'zod';
|
|
2
|
+
import { type AutomationRuleEventAction, type AutomationRulesEventTopic } from '../../../_types/automation';
|
|
3
|
+
import { type IAutomationTriggersTopics } from './automationTriggersTopics';
|
|
4
|
+
import { AutomationTriggerDefSynchronicity } from './_types';
|
|
5
|
+
type AutomationTriggerRegistration = {
|
|
6
|
+
eventAction: AutomationRuleEventAction;
|
|
7
|
+
topicSchema: ZodType<Partial<AutomationRulesEventTopic>>;
|
|
8
|
+
synchronicity: AutomationTriggerDefSynchronicity;
|
|
9
|
+
};
|
|
10
|
+
export interface IAutomationTriggersRegistry {
|
|
11
|
+
listTriggers(): AutomationTriggerRegistration[];
|
|
12
|
+
getTrigger(eventAction: AutomationRuleEventAction): AutomationTriggerRegistration;
|
|
13
|
+
registerTrigger(def: AutomationTriggerRegistration): void;
|
|
14
|
+
}
|
|
15
|
+
export interface IAutomationTriggersRegistryDeps {
|
|
16
|
+
'core.domain.automation.triggers.topics': IAutomationTriggersTopics;
|
|
17
|
+
}
|
|
18
|
+
export default function ({ 'core.domain.automation.triggers.topics': topics, }: IAutomationTriggersRegistryDeps): IAutomationTriggersRegistry;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type ZodType } from 'zod';
|
|
2
|
+
import { type GetSystemQueryContext } from '../../../utils/helpers/getSystemQueryContext';
|
|
3
|
+
import { type IAttributeDomain } from '../../attribute/attributeDomain';
|
|
4
|
+
import { type IValidateHelper } from '../../helpers/validate';
|
|
5
|
+
export interface IAutomationTriggersTopics {
|
|
6
|
+
librarySchema: ZodType<string>;
|
|
7
|
+
attributeSchema: ZodType<string>;
|
|
8
|
+
libraryAndAttributeSchema: ZodType<{
|
|
9
|
+
library: string;
|
|
10
|
+
attribute: string;
|
|
11
|
+
}>;
|
|
12
|
+
}
|
|
13
|
+
export interface IAutomationTriggersTopicsDeps {
|
|
14
|
+
'core.domain.attribute': IAttributeDomain;
|
|
15
|
+
'core.domain.helpers.validate': IValidateHelper;
|
|
16
|
+
'core.utils.getSystemQueryContext': GetSystemQueryContext;
|
|
17
|
+
}
|
|
18
|
+
export default function ({ 'core.domain.attribute': attributeDomain, 'core.domain.helpers.validate': validate, 'core.utils.getSystemQueryContext': getSystemQueryContext, }: IAutomationTriggersTopicsDeps): IAutomationTriggersTopics;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { type IDiscussionComment, type IPostDiscussionCommentParams } from '_types/discussion';
|
|
2
|
-
import { type IQueryInfos } from '_types/queryInfos';
|
|
3
|
-
import { type INotificationDomain } from '
|
|
4
|
-
import { type IRecordDomain } from '
|
|
5
|
-
import { type IValueDomain } from '
|
|
6
|
-
import { type IUserDomain } from '
|
|
1
|
+
import { type IDiscussionComment, type IPostDiscussionCommentParams } from '../../_types/discussion';
|
|
2
|
+
import { type IQueryInfos } from '../../_types/queryInfos';
|
|
3
|
+
import { type INotificationDomain } from '../notification/notificationDomain';
|
|
4
|
+
import { type IRecordDomain } from '../record/recordDomain';
|
|
5
|
+
import { type IValueDomain } from '../value/valueDomain';
|
|
6
|
+
import { type IUserDomain } from '../user/userDomain';
|
|
7
7
|
import { type i18n } from 'i18next';
|
|
8
|
-
import { type IConfig } from '_types/config';
|
|
8
|
+
import { type IConfig } from '../../_types/config';
|
|
9
|
+
import { type IEventsManagerDomain } from '../../domain/eventsManager/eventsManagerDomain';
|
|
9
10
|
export interface IDiscussionDomain {
|
|
10
11
|
postDiscussionComment(params: {
|
|
11
12
|
params?: IPostDiscussionCommentParams;
|
|
@@ -17,7 +18,8 @@ export interface IDiscussionDomainDeps {
|
|
|
17
18
|
'core.domain.record': IRecordDomain;
|
|
18
19
|
'core.domain.value': IValueDomain;
|
|
19
20
|
'core.domain.user': IUserDomain;
|
|
21
|
+
'core.domain.eventsManager': IEventsManagerDomain;
|
|
20
22
|
translator: i18n;
|
|
21
23
|
config: IConfig;
|
|
22
24
|
}
|
|
23
|
-
export default function ({ 'core.domain.notification': notificationDomain, 'core.domain.record': recordDomain, 'core.domain.value': valueDomain, 'core.domain.user': userDomain, translator, config, }: IDiscussionDomainDeps): IDiscussionDomain;
|
|
25
|
+
export default function ({ 'core.domain.notification': notificationDomain, 'core.domain.record': recordDomain, 'core.domain.value': valueDomain, 'core.domain.user': userDomain, 'core.domain.eventsManager': eventsManagerDomain, translator, config, }: IDiscussionDomainDeps): IDiscussionDomain;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { type IAmqpService } from '@leav/message-broker';
|
|
2
2
|
import { EventAction, type IPubSubPayload } from '@leav/utils';
|
|
3
3
|
import type * as amqp from 'amqplib';
|
|
4
|
-
import { type IUtils } from 'utils/utils';
|
|
4
|
+
import { type IUtils } from '../../utils/utils';
|
|
5
5
|
import { type ILogger } from '@leav/logger';
|
|
6
|
-
import type * as Config from '_types/config';
|
|
7
|
-
import { type IQueryInfos } from '_types/queryInfos';
|
|
8
|
-
import { type IDbPayloadInternal } from '_types/events';
|
|
6
|
+
import type * as Config from '../../_types/config';
|
|
7
|
+
import { type IQueryInfos } from '../../_types/queryInfos';
|
|
8
|
+
import { type IDbPayloadInternal } from '../../_types/events';
|
|
9
9
|
export interface IEventsManagerDomain {
|
|
10
10
|
sendDatabaseEvent<DBPayloadAction extends EventAction | unknown>(payload: IDbPayloadInternal<DBPayloadAction>, ctx: IQueryInfos): Promise<void>;
|
|
11
11
|
sendPubSubEvent(payload: IPubSubPayload, ctx: IQueryInfos): Promise<void>;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { type IAttributeDomain } from '
|
|
2
|
-
import { type IEventsManagerDomain } from '
|
|
3
|
-
import { type UpdateTaskProgress } from '
|
|
4
|
-
import { type ILibraryDomain } from '
|
|
5
|
-
import { type IRecordDomain } from '
|
|
6
|
-
import { type ITasksManagerDomain } from '
|
|
1
|
+
import { type IAttributeDomain } from '../attribute/attributeDomain';
|
|
2
|
+
import { type IEventsManagerDomain } from '../eventsManager/eventsManagerDomain';
|
|
3
|
+
import { type UpdateTaskProgress } from '../helpers/updateTaskProgress';
|
|
4
|
+
import { type ILibraryDomain } from '../library/libraryDomain';
|
|
5
|
+
import { type IRecordDomain } from '../record/recordDomain';
|
|
6
|
+
import { type ITasksManagerDomain } from '../tasksManager/tasksManagerDomain';
|
|
7
7
|
import { type i18n } from 'i18next';
|
|
8
|
-
import { type IUtils } from 'utils/utils';
|
|
8
|
+
import { type IUtils } from '../../utils/utils';
|
|
9
9
|
import type * as Config from '../../_types/config';
|
|
10
10
|
import { type IQueryInfos } from '../../_types/queryInfos';
|
|
11
11
|
import { type IRecordFilterLight } from '../../_types/record';
|
|
12
12
|
import { type ITaskFuncParams } from '../../_types/tasksManager';
|
|
13
13
|
import { type IValidateHelper } from '../helpers/validate';
|
|
14
|
-
import { type INotificationDomain } from '
|
|
14
|
+
import { type INotificationDomain } from '../notification/notificationDomain';
|
|
15
15
|
import { type IExportProfileDomain } from './exportProfileDomain';
|
|
16
16
|
export interface IExportParams {
|
|
17
17
|
library: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ILibraryDomain } from '../library/libraryDomain';
|
|
2
2
|
import { type IQueryInfos } from '../../_types/queryInfos';
|
|
3
|
-
import { type IAttributeDomain } from '
|
|
4
|
-
import { type IConfig } from '_types/config';
|
|
3
|
+
import { type IAttributeDomain } from '../attribute/attributeDomain';
|
|
4
|
+
import { type IConfig } from '../../_types/config';
|
|
5
5
|
export interface IExportProfileColumn {
|
|
6
6
|
columnLabel: string;
|
|
7
7
|
attribute: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type ILibrary } from '_types/library';
|
|
1
|
+
import { type ILibrary } from '../../_types/library';
|
|
2
2
|
export declare const systemPreviewsSettings: ILibrary['previewsSettings'];
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { type IAmqpService } from '@leav/message-broker';
|
|
2
|
-
import { type IEventsManagerDomain } from '
|
|
3
|
-
import { type CreateDirectoryFunc } from '
|
|
4
|
-
import { type StoreUploadFileFunc } from '
|
|
5
|
-
import { type UpdateRecordLastModifFunc } from '
|
|
6
|
-
import { type ILibraryDomain } from '
|
|
7
|
-
import { type ILibraryPermissionDomain } from '
|
|
8
|
-
import { type SendRecordUpdateEventHelper } from '
|
|
9
|
-
import { type ITreeDomain } from '
|
|
10
|
-
import { type IValueDomain } from '
|
|
2
|
+
import { type IEventsManagerDomain } from '../eventsManager/eventsManagerDomain';
|
|
3
|
+
import { type CreateDirectoryFunc } from '../helpers/createDirectory';
|
|
4
|
+
import { type StoreUploadFileFunc } from '../helpers/storeUploadFile';
|
|
5
|
+
import { type UpdateRecordLastModifFunc } from '../helpers/updateRecordLastModif';
|
|
6
|
+
import { type ILibraryDomain } from '../library/libraryDomain';
|
|
7
|
+
import { type ILibraryPermissionDomain } from '../permission/libraryPermissionDomain';
|
|
8
|
+
import { type SendRecordUpdateEventHelper } from '../record/helpers/sendRecordUpdateEvent';
|
|
9
|
+
import { type ITreeDomain } from '../tree/treeDomain';
|
|
10
|
+
import { type IValueDomain } from '../value/valueDomain';
|
|
11
11
|
import { type FileUpload } from 'graphql-upload/Upload.mjs';
|
|
12
12
|
import { type i18n } from 'i18next';
|
|
13
|
-
import { type IRecordRepo } from 'infra/record/recordRepo';
|
|
14
|
-
import { type IUtils } from 'utils/utils';
|
|
13
|
+
import { type IRecordRepo } from '../../infra/record/recordRepo';
|
|
14
|
+
import { type IUtils } from '../../utils/utils';
|
|
15
15
|
import { type ILogger } from '@leav/logger';
|
|
16
|
-
import type * as Config from '_types/config';
|
|
17
|
-
import { type IQueryInfos } from '_types/queryInfos';
|
|
16
|
+
import type * as Config from '../../_types/config';
|
|
17
|
+
import { type IQueryInfos } from '../../_types/queryInfos';
|
|
18
18
|
import { type ILibrary } from '../../_types/library';
|
|
19
19
|
import { type IRecord, type IRecordFilterLight } from '../../_types/record';
|
|
20
20
|
import { type IRecordDomain } from '../record/recordDomain';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { type IConfig } from '_types/config';
|
|
1
|
+
import { type IConfig } from '../../../_types/config';
|
|
2
2
|
import { type IFileMetadata } from '../../../_types/filesManager';
|
|
3
3
|
export declare const extractFileMetadata: (filePath: string, rootKey: string, config: IConfig) => Promise<IFileMetadata>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type IConfig } from '_types/config';
|
|
1
|
+
import { type IConfig } from '../../../_types/config';
|
|
2
2
|
export declare const getRootPathByKey: (rootKey: string, config: IConfig) => any;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { type IAmqpService } from '@leav/message-broker';
|
|
2
|
-
import { type UpdateRecordLastModifFunc } from '
|
|
3
|
-
import { type ILibraryDomain } from '
|
|
4
|
-
import { type SendRecordUpdateEventHelper } from '
|
|
5
|
-
import { type IRecordDomain } from '
|
|
6
|
-
import { type ITreeDomain } from '
|
|
7
|
-
import { type IValueDomain } from '
|
|
8
|
-
import { type IFilesManagerRepo } from 'infra/filesManager/filesManagerRepo';
|
|
9
|
-
import { type IRecordRepo } from 'infra/record/recordRepo';
|
|
10
|
-
import { type IUtils } from 'utils/utils';
|
|
2
|
+
import { type UpdateRecordLastModifFunc } from '../../../helpers/updateRecordLastModif';
|
|
3
|
+
import { type ILibraryDomain } from '../../../library/libraryDomain';
|
|
4
|
+
import { type SendRecordUpdateEventHelper } from '../../../record/helpers/sendRecordUpdateEvent';
|
|
5
|
+
import { type IRecordDomain } from '../../../record/recordDomain';
|
|
6
|
+
import { type ITreeDomain } from '../../../tree/treeDomain';
|
|
7
|
+
import { type IValueDomain } from '../../../value/valueDomain';
|
|
8
|
+
import { type IFilesManagerRepo } from '../../../../infra/filesManager/filesManagerRepo';
|
|
9
|
+
import { type IRecordRepo } from '../../../../infra/record/recordRepo';
|
|
10
|
+
import { type IUtils } from '../../../../utils/utils';
|
|
11
11
|
import { type ILogger } from '@leav/logger';
|
|
12
|
-
import { type IConfig } from '_types/config';
|
|
13
|
-
import { type IFileEventData } from '_types/filesManager';
|
|
14
|
-
import { type IQueryInfos } from '_types/queryInfos';
|
|
12
|
+
import { type IConfig } from '../../../../_types/config';
|
|
13
|
+
import { type IFileEventData } from '../../../../_types/filesManager';
|
|
14
|
+
import { type IQueryInfos } from '../../../../_types/queryInfos';
|
|
15
15
|
export interface IHandleFileSystemEventDeps {
|
|
16
16
|
libraryDomain: ILibraryDomain;
|
|
17
17
|
recordDomain: IRecordDomain;
|
package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleCreateEvent.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type IQueryInfos } from '_types/queryInfos';
|
|
1
|
+
import { type IQueryInfos } from '../../../../_types/queryInfos';
|
|
2
2
|
import { type IFileEventData } from '../../../../_types/filesManager';
|
|
3
3
|
import { type IHandleFileSystemEventDeps, type IHandleFileSystemEventResources } from './_types';
|
|
4
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
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { type IAmqpService } from '@leav/message-broker';
|
|
2
|
-
import { type UpdateRecordLastModifFunc } from '
|
|
3
|
-
import { type ILibraryDomain } from '
|
|
4
|
-
import { type SendRecordUpdateEventHelper } from '
|
|
5
|
-
import { type IRecordDomain } from '
|
|
6
|
-
import { type ITreeDomain } from '
|
|
7
|
-
import { type IValueDomain } from '
|
|
8
|
-
import { type IFilesManagerRepo } from 'infra/filesManager/filesManagerRepo';
|
|
9
|
-
import { type IRecordRepo } from 'infra/record/recordRepo';
|
|
10
|
-
import { type IUtils } from 'utils/utils';
|
|
11
|
-
import { type IConfig } from '_types/config';
|
|
2
|
+
import { type UpdateRecordLastModifFunc } from '../../../helpers/updateRecordLastModif';
|
|
3
|
+
import { type ILibraryDomain } from '../../../library/libraryDomain';
|
|
4
|
+
import { type SendRecordUpdateEventHelper } from '../../../record/helpers/sendRecordUpdateEvent';
|
|
5
|
+
import { type IRecordDomain } from '../../../record/recordDomain';
|
|
6
|
+
import { type ITreeDomain } from '../../../tree/treeDomain';
|
|
7
|
+
import { type IValueDomain } from '../../../value/valueDomain';
|
|
8
|
+
import { type IFilesManagerRepo } from '../../../../infra/filesManager/filesManagerRepo';
|
|
9
|
+
import { type IRecordRepo } from '../../../../infra/record/recordRepo';
|
|
10
|
+
import { type IUtils } from '../../../../utils/utils';
|
|
11
|
+
import { type IConfig } from '../../../../_types/config';
|
|
12
12
|
import { type HandleFileSystemEventFunc } from './_types';
|
|
13
13
|
import { type ILogger } from '@leav/logger';
|
|
14
14
|
export interface IFileSystemEventDeps {
|
package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleMoveEvent.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type IQueryInfos } from '_types/queryInfos';
|
|
1
|
+
import { type IQueryInfos } from '../../../../_types/queryInfos';
|
|
2
2
|
import { type IFileEventData } from '../../../../_types/filesManager';
|
|
3
3
|
import { type IHandleFileSystemEventDeps, type IHandleFileSystemEventResources } from './_types';
|
|
4
4
|
export declare const handleMoveEvent: (scanMsg: IFileEventData, { library }: IHandleFileSystemEventResources, deps: IHandleFileSystemEventDeps, ctx: IQueryInfos) => Promise<boolean | void>;
|
package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleRemoveEvent.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type IQueryInfos } from '_types/queryInfos';
|
|
1
|
+
import { type IQueryInfos } from '../../../../_types/queryInfos';
|
|
2
2
|
import { type IFileEventData } from '../../../../_types/filesManager';
|
|
3
3
|
import { type IHandleFileSystemEventDeps, type IHandleFileSystemEventResources } from './_types';
|
|
4
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
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type IQueryInfos } from '_types/queryInfos';
|
|
1
|
+
import { type IQueryInfos } from '../../../../_types/queryInfos';
|
|
2
2
|
import { type IFileEventData } from '../../../../_types/filesManager';
|
|
3
3
|
import { type IHandleFileSystemEventDeps, type IHandleFileSystemEventResources } from './_types';
|
|
4
4
|
export declare const handleUpdateEvent: (scanMsg: IFileEventData, { library }: IHandleFileSystemEventResources, deps: IHandleFileSystemEventDeps, ctx: IQueryInfos) => Promise<void>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { type UpdateRecordLastModifFunc } from '
|
|
2
|
-
import { type SendRecordUpdateEventHelper } from '
|
|
3
|
-
import { type IValueDomain } from '
|
|
4
|
-
import { type IRecordRepo } from 'infra/record/recordRepo';
|
|
5
|
-
import type * as Config from '_types/config';
|
|
6
|
-
import { type ILibrary } from '_types/library';
|
|
7
|
-
import { type IQueryInfos } from '_types/queryInfos';
|
|
1
|
+
import { type UpdateRecordLastModifFunc } from '../../helpers/updateRecordLastModif';
|
|
2
|
+
import { type SendRecordUpdateEventHelper } from '../../record/helpers/sendRecordUpdateEvent';
|
|
3
|
+
import { type IValueDomain } from '../../value/valueDomain';
|
|
4
|
+
import { type IRecordRepo } from '../../../infra/record/recordRepo';
|
|
5
|
+
import type * as Config from '../../../_types/config';
|
|
6
|
+
import { type ILibrary } from '../../../_types/library';
|
|
7
|
+
import { type IQueryInfos } from '../../../_types/queryInfos';
|
|
8
8
|
import { type IFileMetadata, type IPreviews, type IPreviewsStatus } from '../../../_types/filesManager';
|
|
9
9
|
import { type IRecord } from '../../../_types/record';
|
|
10
10
|
import { type IHandleFileSystemEventDeps } from './handleFileSystemEvent/_types';
|