@aristid/leav-types 1.11.0 → 1.12.0-1365cdb4
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 +4 -0
- 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/auth.d.ts +4 -0
- package/apps/core/src/_types/automation.d.ts +48 -0
- package/apps/core/src/_types/config.d.ts +4 -0
- package/apps/core/src/_types/cronTask.d.ts +14 -0
- package/apps/core/src/_types/errors.d.ts +1 -0
- package/apps/core/src/_types/events.d.ts +3 -0
- package/apps/core/src/_types/extensionPoints.d.ts +12 -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 +1 -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 +10 -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 +22 -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/domain/actions/excelCalculationAction.d.ts +2 -2
- package/apps/core/src/domain/actions/inheritanceCalculationAction.d.ts +2 -2
- 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/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 +3 -0
- package/apps/core/src/domain/automation/actions/logAction.d.ts +16 -0
- package/apps/core/src/domain/automation/automationDomain.d.ts +43 -0
- package/apps/core/src/domain/automation/fakeRulesToTrigger.d.ts +7 -0
- package/apps/core/src/domain/automation/index.d.ts +2 -0
- package/apps/core/src/domain/automation/pipelineExecutor.d.ts +16 -0
- package/apps/core/src/domain/automation/types.d.ts +22 -0
- package/apps/core/src/domain/discussion/discussionDomain.d.ts +7 -7
- 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/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 +3 -3
- 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 +12 -10
- 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 -19
- 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 +29 -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 +9 -5
- 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 +7 -7
- 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.unit.config.d.ts +2 -0
- package/libs/utils/src/types/events.d.ts +3 -0
- package/libs/utils/src/types/helpers.d.ts +0 -3
- package/package.json +2 -2
- 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 -1048
- 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 -117
- 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/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
package/CLAUDE.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# libs/types — CLAUDE.md
|
|
2
|
+
|
|
3
|
+
`@aristid/leav-types` — Types TypeScript de `apps/core` publiés sur npm pour les plugins externes.
|
|
4
|
+
|
|
5
|
+
## Ce que c'est
|
|
6
|
+
|
|
7
|
+
Ce package ne contient **pas de code source** — c'est une projection des types générés
|
|
8
|
+
depuis `apps/core`, destinée aux **développeurs de plugins** qui étendent le core.
|
|
9
|
+
|
|
10
|
+
> ⚠️ Ce package **n'est pas utilisé dans le monorepo lui-même**. Il est uniquement
|
|
11
|
+
> consommé par des repos externes (plugins tiers du core).
|
|
12
|
+
|
|
13
|
+
## Publication CI (GitLab)
|
|
14
|
+
|
|
15
|
+
Publié automatiquement sur **npm public** (`@aristid/leav-types`) via GitLab CI,
|
|
16
|
+
déclenché par tout changement dans `apps/core/**/*` :
|
|
17
|
+
|
|
18
|
+
- **`next`** — à chaque push sur `develop`
|
|
19
|
+
- **`latest`** — sur les releases taguées
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
# Commande de génération (lancée par le CI)
|
|
23
|
+
yarn workspace @aristid/leav-types generate
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Problème connu : les enums ne sont pas exportés ⚠️
|
|
27
|
+
|
|
28
|
+
La commande `generate` (basée sur `build-types` du core) n'exporte pas les enums TypeScript.
|
|
29
|
+
Les consommateurs du package doivent **réécrire les enums manuellement** de leur côté —
|
|
30
|
+
ce qui est une source de désynchronisation et de maintenance coûteuse.
|
|
31
|
+
|
|
32
|
+
**Piste de résolution envisagée :** publier davantage de code du core directement
|
|
33
|
+
(pas uniquement les types), de façon à exposer les enums comme du code exécutable.
|
|
34
|
+
C'est un chantier à prioriser.
|
|
35
|
+
|
|
36
|
+
## Ne jamais modifier manuellement
|
|
37
|
+
|
|
38
|
+
Toujours régénérer via le CI ou :
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
yarn workspace @aristid/leav-types generate
|
|
42
|
+
```
|
|
@@ -287,4 +287,8 @@ export declare namespace logsCollector {
|
|
|
287
287
|
let queue: string;
|
|
288
288
|
}
|
|
289
289
|
export declare let pluginsPath: string[];
|
|
290
|
+
export declare namespace automation {
|
|
291
|
+
let enable_7: boolean;
|
|
292
|
+
export { enable_7 as enable };
|
|
293
|
+
}
|
|
290
294
|
export { debug_1 as debug, _export as export, _import as import };
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { type IQueryInfos } from './queryInfos';
|
|
2
|
+
import { type IRecord } from './record';
|
|
3
|
+
import type jwt from 'jsonwebtoken';
|
|
1
4
|
export declare const ACCESS_TOKEN_COOKIE_NAME = "accessToken";
|
|
2
5
|
export declare const REFRESH_TOKEN_COOKIE_NAME = "refreshToken";
|
|
3
6
|
export declare const API_KEY_PARAM_NAME = "key";
|
|
@@ -5,3 +8,4 @@ export interface ITokenUserData {
|
|
|
5
8
|
userId: string;
|
|
6
9
|
groupsId: string[];
|
|
7
10
|
}
|
|
11
|
+
export type AuthPostOidcLoginCallback = (user: IRecord, decodedAccessToken: jwt.JwtPayload, ctx: IQueryInfos) => Promise<void>;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { type EventAction, type IDbPayload } from '@leav/utils';
|
|
2
|
+
export type IAutomationRule = ICoreEntity & {
|
|
3
|
+
createdAt: number;
|
|
4
|
+
createdBy: string;
|
|
5
|
+
modifiedAt: number;
|
|
6
|
+
modifiedBy: string;
|
|
7
|
+
id: string;
|
|
8
|
+
label: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
active: boolean;
|
|
11
|
+
trigger: AutomationRuleTrigger;
|
|
12
|
+
pipeline: AutomationRulePipeline;
|
|
13
|
+
};
|
|
14
|
+
export type ICreateAutomationRule = {
|
|
15
|
+
label: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
trigger: AutomationRuleTrigger;
|
|
18
|
+
};
|
|
19
|
+
export type IUpdateAutomationRule = {
|
|
20
|
+
id: string;
|
|
21
|
+
label?: string;
|
|
22
|
+
description?: string;
|
|
23
|
+
active?: boolean;
|
|
24
|
+
trigger?: Partial<AutomationRuleTrigger>;
|
|
25
|
+
};
|
|
26
|
+
export declare enum SyncAutomationRuleEventAction {
|
|
27
|
+
RECORD_INIT = "RECORD_INIT"
|
|
28
|
+
}
|
|
29
|
+
export type AutomationRuleEventAction = EventAction | SyncAutomationRuleEventAction;
|
|
30
|
+
export type AutomationRulesEventTopic = IDbPayload['topic'];
|
|
31
|
+
export type AutomationRuleTrigger = {
|
|
32
|
+
synchronous: boolean;
|
|
33
|
+
eventAction: AutomationRuleEventAction;
|
|
34
|
+
eventTopic?: AutomationRulesEventTopic;
|
|
35
|
+
};
|
|
36
|
+
export type AutomationRulePipeline = {
|
|
37
|
+
steps: AutomationRulePipelineStep[];
|
|
38
|
+
};
|
|
39
|
+
export declare enum AutomationRuleActions {
|
|
40
|
+
LOG = "log",
|
|
41
|
+
CONDITION = "condition",
|
|
42
|
+
ERROR = "error"
|
|
43
|
+
}
|
|
44
|
+
export type AutomationRulePipelineStep = {
|
|
45
|
+
type: AutomationRuleActions | string;
|
|
46
|
+
name?: string;
|
|
47
|
+
params: Record<string, unknown>;
|
|
48
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type IQueryInfos } from './queryInfos';
|
|
2
|
+
import { type ITaskCreatePayload } from './tasksManager';
|
|
3
|
+
/**
|
|
4
|
+
* Should match https://github.com/node-cron/node-cron/blob/main/README.md#cron-syntax
|
|
5
|
+
*
|
|
6
|
+
* Note that 'never' is a special value that can be used to indicate that the task should never be scheduled.
|
|
7
|
+
* This can be useful for tasks that are conditionally scheduled based on configuration or other factors.
|
|
8
|
+
*/
|
|
9
|
+
export type CronString = string | 'never';
|
|
10
|
+
export type RegisterCronTask = {
|
|
11
|
+
schedule: CronString;
|
|
12
|
+
name: string;
|
|
13
|
+
createTask: (ctx: IQueryInfos) => Promise<ITaskCreatePayload>;
|
|
14
|
+
};
|
|
@@ -91,6 +91,7 @@ export declare enum Errors {
|
|
|
91
91
|
UNKNOWN_APPLICATION = "UNKNOWN_APPLICATION",
|
|
92
92
|
UNKNOWN_ATTRIBUTE = "UNKNOWN_ATTRIBUTE",
|
|
93
93
|
UNKNOWN_ATTRIBUTES = "UNKNOWN_ATTRIBUTES",
|
|
94
|
+
UNKNOWN_AUTOMATION_RULE = "UNKNOWN_AUTOMATION_RULE",
|
|
94
95
|
UNKNOWN_ELEMENT = "UNKNOWN_ELEMENT",
|
|
95
96
|
UNKNOWN_FORM = "UNKNOWN_FORM",
|
|
96
97
|
UNKNOWN_FORM_ATTRIBUTES = "UNKNOWN_FORM_ATTRIBUTES",
|
|
@@ -9,6 +9,7 @@ import { type IValue } from './value';
|
|
|
9
9
|
import { type IVersionProfile } from './versionProfile';
|
|
10
10
|
import { type IPermission } from './permissions';
|
|
11
11
|
import { type ITreeDbEvent, type ITree } from './tree';
|
|
12
|
+
import { type IAutomationRule } from './automation';
|
|
12
13
|
type OnlyObject<T> = T extends object ? T : never;
|
|
13
14
|
/**
|
|
14
15
|
* Maybe move all DBPayloadData types in @leav/utils type to allow event consumers outside core to use them
|
|
@@ -30,6 +31,8 @@ interface IDBPayloadDataMap {
|
|
|
30
31
|
[EventAction.API_KEY_DELETE]: IApiKey;
|
|
31
32
|
[EventAction.APP_SAVE]: IApplication;
|
|
32
33
|
[EventAction.APP_DELETE]: IApplication;
|
|
34
|
+
[EventAction.AUTOMATION_RULE_CREATE]: IAutomationRule;
|
|
35
|
+
[EventAction.AUTOMATION_RULE_UPDATE]: IAutomationRule;
|
|
33
36
|
[EventAction.GLOBAL_SETTINGS_SAVE]: IGlobalSettings;
|
|
34
37
|
[EventAction.LIBRARY_SAVE]: ILibraryDbEvent;
|
|
35
38
|
[EventAction.LIBRARY_DELETE]: ILibraryDbEvent;
|
|
@@ -2,6 +2,8 @@ import { type IActionsListFunction } from './actionsList';
|
|
|
2
2
|
import { type IAppGraphQLSchema } from './graphql';
|
|
3
3
|
import { type PermissionTypes } from './permissions';
|
|
4
4
|
import { type PluginRegisterRoute } from './endpoint';
|
|
5
|
+
import { type AuthPostOidcLoginCallback } from './auth';
|
|
6
|
+
import { type RegisterCronTask } from './cronTask';
|
|
5
7
|
export interface IExtensionPoints {
|
|
6
8
|
[name: string]: (...args: any[]) => void;
|
|
7
9
|
}
|
|
@@ -28,4 +30,14 @@ export interface IExtensionPointsFunctions extends IExtensionPoints {
|
|
|
28
30
|
* @param {PluginRegisterRoute[]} routes - list of routes to register
|
|
29
31
|
*/
|
|
30
32
|
registerRoutes: (routes: PluginRegisterRoute[]) => void;
|
|
33
|
+
/**
|
|
34
|
+
* Method to register a callback to be executed after a successful OIDC login.
|
|
35
|
+
*
|
|
36
|
+
* Useful to change user settings or to log some information after the user is authenticated but before the session is created.
|
|
37
|
+
*/
|
|
38
|
+
registerAuthPostOidcLoginCallback: (callback: AuthPostOidcLoginCallback) => void;
|
|
39
|
+
/**
|
|
40
|
+
* Register a cron task to be executed on a schedule defined by the `schedule` property of `registerCronTask`.
|
|
41
|
+
*/
|
|
42
|
+
registerCronTask: (registerCronTask: RegisterCronTask) => void;
|
|
31
43
|
}
|
|
@@ -86,6 +86,7 @@ export declare enum AdminPermissionsActions {
|
|
|
86
86
|
EDIT_GLOBAL_SETTINGS = "admin_edit_global_settings",
|
|
87
87
|
LIST_PLUGINS = "admin_list_plugins",
|
|
88
88
|
ACCESS_LOGS = "admin_access_logs",
|
|
89
|
+
MANAGE_AUTOMATION = "admin_manage_automation",
|
|
89
90
|
IMPORT_CONFIG_CLEAR_DATABASE = "admin_import_config_clear_database"
|
|
90
91
|
}
|
|
91
92
|
export type PermissionsActions = LibraryPermissionsActions | RecordPermissionsActions | RecordAttributePermissionsActions | AdminPermissionsActions | AttributePermissionsActions | AttributeDependentValuesPermissionsActions | TreePermissionsActions | TreeNodePermissionsActions | ApplicationPermissionsActions;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type DataLoader from 'dataloader';
|
|
2
|
-
import type LeavError from 'errors/LeavError';
|
|
2
|
+
import type LeavError from '../errors/LeavError';
|
|
3
3
|
import { type IDbProfiler } from './dbProfiler';
|
|
4
4
|
import { type IValueVersion } from './value';
|
|
5
5
|
export interface IQueryInfos {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type IAttributeWithRevLink } from 'infra/attributeTypes/attributeTypesRepo';
|
|
1
|
+
import { type IAttributeWithRevLink } from '../infra/attributeTypes/attributeTypesRepo';
|
|
2
2
|
import { type ILibrary } from './library';
|
|
3
3
|
import { type IPreview } from './preview';
|
|
4
4
|
import { type IValue } from './value';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type AnyPrimitive, type Override } from '@leav/utils';
|
|
2
|
-
import { type IDbEdge } from 'infra/db/_types';
|
|
2
|
+
import { type IDbEdge } from '../infra/db/_types';
|
|
3
3
|
import { type IRecord } from './record';
|
|
4
4
|
import { type ITreeNode, type TreePath } from './tree';
|
|
5
|
-
import { type EMPTY_VALUE } from 'infra/value/valueRepo';
|
|
5
|
+
import { type EMPTY_VALUE } from '../infra/value/valueRepo';
|
|
6
6
|
import { type AttributeTypes } from './attribute';
|
|
7
7
|
export type IValueFromGql = Override<Omit<IValue, 'version'>, {
|
|
8
8
|
value: IValue['payload'];
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { type ICoreSubscriptionsHelpersApp } from '
|
|
2
|
-
import { type IGraphqlAppModule, type IGraphqlApp } from '
|
|
3
|
-
import { type InitQueryContextFunc } from '
|
|
4
|
-
import { type IEventsManagerDomain } from 'domain/eventsManager/eventsManagerDomain';
|
|
5
|
-
import { type IPermissionDomain } from 'domain/permission/permissionDomain';
|
|
6
|
-
import { type IRecordDomain } from 'domain/record/recordDomain';
|
|
7
|
-
import { type IUtils } from 'utils/utils';
|
|
1
|
+
import { type ICoreSubscriptionsHelpersApp } from '../core/helpers/subscriptions';
|
|
2
|
+
import { type IGraphqlAppModule, type IGraphqlApp } from '../graphql/graphqlApp';
|
|
3
|
+
import { type InitQueryContextFunc } from '../helpers/initQueryContext';
|
|
4
|
+
import { type IEventsManagerDomain } from '../../domain/eventsManager/eventsManagerDomain';
|
|
5
|
+
import { type IPermissionDomain } from '../../domain/permission/permissionDomain';
|
|
6
|
+
import { type IRecordDomain } from '../../domain/record/recordDomain';
|
|
7
|
+
import { type IUtils } from '../../utils/utils';
|
|
8
8
|
import { type ILogger } from '@leav/logger';
|
|
9
9
|
import { type IAppStudioDomain } from '../../domain/application/appStudioDomain';
|
|
10
10
|
import { type IApplicationDomain } from '../../domain/application/applicationDomain';
|
|
11
11
|
import { type ValidateRequestTokenFunc } from '../helpers/validateRequestToken';
|
|
12
12
|
import { type IAuthApp } from '../auth/authApp';
|
|
13
13
|
import { type IGlobalSettingsDomain } from '../../domain/globalSettings/globalSettingsDomain';
|
|
14
|
-
import { type IServerRouteAppModule } from 'interface/server';
|
|
15
|
-
import { type IConfig } from '_types/config';
|
|
14
|
+
import { type IServerRouteAppModule } from '../../interface/server';
|
|
15
|
+
import { type IConfig } from '../../_types/config';
|
|
16
16
|
export type IApplicationApp = IGraphqlAppModule & IServerRouteAppModule;
|
|
17
17
|
export interface IApplicationAppDeps {
|
|
18
18
|
'core.app.graphql': IGraphqlApp;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { type IApiKeyDomain } from 'domain/apiKey/apiKeyDomain';
|
|
2
|
-
import { type IRecordDomain } from 'domain/record/recordDomain';
|
|
3
|
-
import { type IUserDomain } from 'domain/user/userDomain';
|
|
4
|
-
import { type IValueDomain } from 'domain/value/valueDomain';
|
|
1
|
+
import { type IApiKeyDomain } from '../../domain/apiKey/apiKeyDomain';
|
|
2
|
+
import { type IRecordDomain } from '../../domain/record/recordDomain';
|
|
3
|
+
import { type IUserDomain } from '../../domain/user/userDomain';
|
|
4
|
+
import { type IValueDomain } from '../../domain/value/valueDomain';
|
|
5
5
|
import { type Response } from 'express';
|
|
6
|
-
import { type IConfig } from '_types/config';
|
|
6
|
+
import { type IConfig } from '../../_types/config';
|
|
7
7
|
import { type ITokenUserData } from '../../_types/auth';
|
|
8
8
|
import { type IRequestWithContext } from '../../_types/express';
|
|
9
9
|
import { type ILogger } from '@leav/logger';
|
|
@@ -12,10 +12,11 @@ import { type InitQueryContextFunc } from '../helpers/initQueryContext';
|
|
|
12
12
|
import { type IConvertOIDCIdentifier } from '../helpers/convertOIDCIdentifier';
|
|
13
13
|
import { type IncomingHttpHeaders } from 'http';
|
|
14
14
|
import { type IRecordRepo } from '../../infra/record/recordRepo';
|
|
15
|
-
import { type IGraphqlAppModule } from '
|
|
16
|
-
import { type IServerRouteAppModule } from 'interface/server';
|
|
17
|
-
import { type GetSystemQueryContext } from 'utils/helpers/getSystemQueryContext';
|
|
15
|
+
import { type IGraphqlAppModule } from '../graphql/graphqlApp';
|
|
16
|
+
import { type IServerRouteAppModule } from '../../interface/server';
|
|
17
|
+
import { type GetSystemQueryContext } from '../../utils/helpers/getSystemQueryContext';
|
|
18
18
|
import { type ISessionRepo } from '../../infra/session/sessionRepo';
|
|
19
|
+
import { type IExtensionPoints } from '../../_types/extensionPoints';
|
|
19
20
|
export interface IAuthApp extends IGraphqlAppModule, IServerRouteAppModule {
|
|
20
21
|
validateRequestToken(params: {
|
|
21
22
|
apiKey?: string;
|
|
@@ -23,6 +24,7 @@ export interface IAuthApp extends IGraphqlAppModule, IServerRouteAppModule {
|
|
|
23
24
|
cookies?: {};
|
|
24
25
|
}, res: Response<unknown>): Promise<ITokenUserData>;
|
|
25
26
|
authenticateWithOIDCService(req: IRequestWithContext, res: Response<unknown>): Promise<void | Response>;
|
|
27
|
+
extensionPoints?: IExtensionPoints;
|
|
26
28
|
}
|
|
27
29
|
export interface IAuthAppDeps {
|
|
28
30
|
'core.domain.value': IValueDomain;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type IActionsListDomain } from 'domain/actionsList/actionsListDomain';
|
|
1
|
+
import { type IActionsListDomain } from '../../domain/actionsList/actionsListDomain';
|
|
2
2
|
import { type i18n } from 'i18next';
|
|
3
|
-
import { type IAppModule } from '_types/shared';
|
|
4
|
-
import { type IGraphqlAppModule } from '
|
|
3
|
+
import { type IAppModule } from '../../_types/shared';
|
|
4
|
+
import { type IGraphqlAppModule } from '../graphql/graphqlApp';
|
|
5
5
|
export type ICoreActionListApp = IAppModule & IGraphqlAppModule;
|
|
6
6
|
interface IDeps {
|
|
7
7
|
'core.domain.actionsList': IActionsListDomain;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type IApiKeyFilterOptions } from '_types/apiKey';
|
|
2
|
-
import { type IPaginationParams, type SortOrder } from '_types/list';
|
|
1
|
+
import { type IApiKeyFilterOptions } from '../../../_types/apiKey';
|
|
2
|
+
import { type IPaginationParams, type SortOrder } from '../../../_types/list';
|
|
3
3
|
export interface IApiKeysArgs {
|
|
4
4
|
filters?: IApiKeyFilterOptions;
|
|
5
5
|
pagination: IPaginationParams;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type IApiKeyDomain } from 'domain/apiKey/apiKeyDomain';
|
|
2
|
-
import { type IRecordDomain } from 'domain/record/recordDomain';
|
|
3
|
-
import { type IGraphqlAppModule } from '
|
|
1
|
+
import { type IApiKeyDomain } from '../../../domain/apiKey/apiKeyDomain';
|
|
2
|
+
import { type IRecordDomain } from '../../../domain/record/recordDomain';
|
|
3
|
+
import { type IGraphqlAppModule } from '../../graphql/graphqlApp';
|
|
4
4
|
export type ICoreVersionProfileApp = IGraphqlAppModule;
|
|
5
5
|
interface IDeps {
|
|
6
6
|
'core.domain.apiKey': IApiKeyDomain;
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import { type IActionsListDomain } from 'domain/actionsList/actionsListDomain';
|
|
2
|
-
import { type IAttributeDomain } from 'domain/attribute/attributeDomain';
|
|
3
|
-
import { type ILibraryDomain } from 'domain/library/libraryDomain';
|
|
4
|
-
import { type IPermissionDomain } from 'domain/permission/permissionDomain';
|
|
5
|
-
import { type IAttributeDependentValuesPermissionDomain } from 'domain/permission/attributeDependentValuesPermissionDomain';
|
|
6
|
-
import { type
|
|
7
|
-
import { type
|
|
8
|
-
import { type
|
|
9
|
-
import { type
|
|
1
|
+
import { type IActionsListDomain } from '../../../domain/actionsList/actionsListDomain';
|
|
2
|
+
import { type IAttributeDomain } from '../../../domain/attribute/attributeDomain';
|
|
3
|
+
import { type ILibraryDomain } from '../../../domain/library/libraryDomain';
|
|
4
|
+
import { type IPermissionDomain } from '../../../domain/permission/permissionDomain';
|
|
5
|
+
import { type IAttributeDependentValuesPermissionDomain } from '../../../domain/permission/attributeDependentValuesPermissionDomain';
|
|
6
|
+
import { type IfLibraryJoinLinkAttribute } from '../../../domain/attribute/helpers/ifLibraryJoinLinkAttribute';
|
|
7
|
+
import { type IRecordDomain } from '../../../domain/record/recordDomain';
|
|
8
|
+
import { type ITreeDomain } from '../../../domain/tree/treeDomain';
|
|
9
|
+
import { type IVersionProfileDomain } from '../../../domain/versionProfile/versionProfileDomain';
|
|
10
|
+
import { type IUtils } from '../../../utils/utils';
|
|
10
11
|
import { type IGraphqlAppModule, type IGraphqlApp } from '../../graphql/graphqlApp';
|
|
11
12
|
import { type ICoreApp } from '../coreApp';
|
|
12
13
|
export type ICoreAttributeApp = IGraphqlAppModule;
|
|
13
14
|
interface IDeps {
|
|
14
15
|
'core.domain.attribute': IAttributeDomain;
|
|
16
|
+
'core.domain.attribute.helpers.ifLibraryJoinLinkAttribute': IfLibraryJoinLinkAttribute;
|
|
15
17
|
'core.domain.library': ILibraryDomain;
|
|
16
18
|
'core.domain.record': IRecordDomain;
|
|
17
19
|
'core.domain.tree': ITreeDomain;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type IGraphqlAppModule } from '../graphql/graphqlApp';
|
|
2
|
+
import { type IAutomationDomain } from '../../domain/automation/automationDomain';
|
|
3
|
+
import { type IAutomationRule } from '../../_types/automation';
|
|
4
|
+
import { type IPaginationParams, type ISortParams } from '../../_types/list';
|
|
5
|
+
import { type IEventsManagerDomain } from '../../domain/eventsManager/eventsManagerDomain';
|
|
6
|
+
export type ICoreImportApp = IGraphqlAppModule;
|
|
7
|
+
interface IAutomationAppDeps {
|
|
8
|
+
'core.domain.automation': IAutomationDomain;
|
|
9
|
+
'core.domain.eventsManager': IEventsManagerDomain;
|
|
10
|
+
}
|
|
11
|
+
export interface IGetAutomationRulesArgs {
|
|
12
|
+
filters?: ICoreEntityFilterOptions & {
|
|
13
|
+
active?: boolean;
|
|
14
|
+
synchronous?: boolean;
|
|
15
|
+
eventAction?: IAutomationRule['trigger']['eventAction'];
|
|
16
|
+
eventTopic?: IAutomationRule['trigger']['eventTopic'];
|
|
17
|
+
};
|
|
18
|
+
pagination?: IPaginationParams;
|
|
19
|
+
sort?: ISortParams;
|
|
20
|
+
}
|
|
21
|
+
export default function ({ 'core.domain.automation': automationDomain, 'core.domain.eventsManager': eventsManagerDomain, }: IAutomationAppDeps): ICoreImportApp;
|
|
22
|
+
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { type ISystemTranslationGenerator } from '
|
|
2
|
-
import { type ICoreDomain } from 'domain/core/coreDomain';
|
|
3
|
-
import { type IEventsManagerDomain } from 'domain/eventsManager/eventsManagerDomain';
|
|
1
|
+
import { type ISystemTranslationGenerator } from '../graphql/customScalars/systemTranslation/systemTranslation';
|
|
2
|
+
import { type ICoreDomain } from '../../domain/core/coreDomain';
|
|
3
|
+
import { type IEventsManagerDomain } from '../../domain/eventsManager/eventsManagerDomain';
|
|
4
4
|
import { type GraphQLScalarType } from 'graphql';
|
|
5
5
|
import { type i18n } from 'i18next';
|
|
6
|
-
import { type IAppModule } from '_types/shared';
|
|
7
|
-
import { type ISystemTranslation } from '_types/systemTranslation';
|
|
6
|
+
import { type IAppModule } from '../../_types/shared';
|
|
7
|
+
import { type ISystemTranslation } from '../../_types/systemTranslation';
|
|
8
8
|
import { type IGraphqlAppModule } from '../graphql/graphqlApp';
|
|
9
9
|
export interface ICoreApp extends IAppModule, IGraphqlAppModule {
|
|
10
10
|
filterSysTranslationField(fieldData: ISystemTranslation, requestedLangs: string[]): ISystemTranslation | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type IGraphqlAppModule } from '
|
|
2
|
-
import { type IDiscussionDomain } from 'domain/discussion/discussionDomain';
|
|
1
|
+
import { type IGraphqlAppModule } from '../graphql/graphqlApp';
|
|
2
|
+
import { type IDiscussionDomain } from '../../domain/discussion/discussionDomain';
|
|
3
3
|
export type ICoreImportApp = IGraphqlAppModule;
|
|
4
4
|
interface IDeps {
|
|
5
5
|
'core.domain.discussion': IDiscussionDomain;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { type InitQueryContextFunc } from '
|
|
2
|
-
import { type IEventsManagerDomain } from 'domain/eventsManager/eventsManagerDomain';
|
|
3
|
-
import { type IConfig } from '_types/config';
|
|
4
|
-
import { type IAppModule } from '_types/shared';
|
|
5
|
-
|
|
1
|
+
import { type InitQueryContextFunc } from '../helpers/initQueryContext';
|
|
2
|
+
import { type IEventsManagerDomain } from '../../domain/eventsManager/eventsManagerDomain';
|
|
3
|
+
import { type IConfig } from '../../_types/config';
|
|
4
|
+
import { type IAppModule } from '../../_types/shared';
|
|
5
|
+
import { type IGraphqlAppModule } from '../graphql/graphqlApp';
|
|
6
|
+
export type IEventsManagerApp = IAppModule & IGraphqlAppModule;
|
|
6
7
|
interface IDeps {
|
|
7
8
|
'core.domain.eventsManager': IEventsManagerDomain;
|
|
8
9
|
'core.app.helpers.initQueryContext': InitQueryContextFunc;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type IExportDomain } from 'domain/export/exportDomain';
|
|
2
|
-
import { type IGraphqlAppModule } from '
|
|
1
|
+
import { type IExportDomain } from '../../domain/export/exportDomain';
|
|
2
|
+
import { type IGraphqlAppModule } from '../graphql/graphqlApp';
|
|
3
3
|
export type ICoreExportApp = IGraphqlAppModule;
|
|
4
4
|
interface IDeps {
|
|
5
5
|
'core.domain.export': IExportDomain;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { type InitQueryContextFunc } from '
|
|
2
|
-
import { type IEventsManagerDomain } from 'domain/eventsManager/eventsManagerDomain';
|
|
3
|
-
import { type IConfig } from '_types/config';
|
|
1
|
+
import { type InitQueryContextFunc } from '../helpers/initQueryContext';
|
|
2
|
+
import { type IEventsManagerDomain } from '../../domain/eventsManager/eventsManagerDomain';
|
|
3
|
+
import { type IConfig } from '../../_types/config';
|
|
4
4
|
import { type IFilesManagerDomain } from '../../domain/filesManager/filesManagerDomain';
|
|
5
5
|
import { type ValidateRequestTokenFunc } from '../helpers/validateRequestToken';
|
|
6
|
-
import { type IGraphqlAppModule } from '
|
|
7
|
-
import { type IServerRouteAppModule } from 'interface/server';
|
|
6
|
+
import { type IGraphqlAppModule } from '../graphql/graphqlApp';
|
|
7
|
+
import { type IServerRouteAppModule } from '../../interface/server';
|
|
8
|
+
import { type IRecordPermissionDomain } from '../../domain/permission/recordPermissionDomain';
|
|
8
9
|
export interface IFilesManagerApp extends IGraphqlAppModule, IServerRouteAppModule {
|
|
9
10
|
init(): Promise<void>;
|
|
10
11
|
}
|
|
@@ -13,7 +14,8 @@ interface IDeps {
|
|
|
13
14
|
'core.app.helpers.validateRequestToken': ValidateRequestTokenFunc;
|
|
14
15
|
'core.domain.filesManager': IFilesManagerDomain;
|
|
15
16
|
'core.domain.eventsManager': IEventsManagerDomain;
|
|
17
|
+
'core.domain.permission.record': IRecordPermissionDomain;
|
|
16
18
|
config: IConfig;
|
|
17
19
|
}
|
|
18
|
-
export default function ({ 'core.app.helpers.initQueryContext': initQueryContext, 'core.app.helpers.validateRequestToken': validateRequestToken, 'core.domain.filesManager': filesManagerDomain, 'core.domain.eventsManager': eventsManager, config, }: IDeps): IFilesManagerApp;
|
|
20
|
+
export default function ({ 'core.app.helpers.initQueryContext': initQueryContext, 'core.app.helpers.validateRequestToken': validateRequestToken, 'core.domain.filesManager': filesManagerDomain, 'core.domain.eventsManager': eventsManager, 'core.domain.permission.record': recordPermissionDomain, config, }: IDeps): IFilesManagerApp;
|
|
19
21
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type IForm, type IFormDependentElements, type IFormElement } from '_types/forms';
|
|
2
|
-
import { type IPaginationParams, type ISortParams } from '_types/list';
|
|
1
|
+
import { type IForm, type IFormDependentElements, type IFormElement } from '../../../_types/forms';
|
|
2
|
+
import { type IPaginationParams, type ISortParams } from '../../../_types/list';
|
|
3
3
|
export type IFormForGraphql = Omit<IForm, 'elements'> & {
|
|
4
4
|
elements: IFormDependentElementsForGraphQL[];
|
|
5
5
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { type ConvertVersionFromGqlFormatFunc } from '
|
|
2
|
-
import { type IAttributeDomain } from 'domain/attribute/attributeDomain';
|
|
3
|
-
import { type IFormDomain } from 'domain/form/formDomain';
|
|
4
|
-
import { type ILibraryDomain } from 'domain/library/libraryDomain';
|
|
5
|
-
import { type IUtils } from 'utils/utils';
|
|
6
|
-
import { type IAppGraphQLSchema } from '_types/graphql';
|
|
7
|
-
import { type IfLibraryJoinLinkAttribute } from 'domain/attribute/helpers/ifLibraryJoinLinkAttribute';
|
|
8
|
-
import { type IGraphqlAppModule } from '
|
|
1
|
+
import { type ConvertVersionFromGqlFormatFunc } from '../../helpers/convertVersionFromGqlFormat';
|
|
2
|
+
import { type IAttributeDomain } from '../../../domain/attribute/attributeDomain';
|
|
3
|
+
import { type IFormDomain } from '../../../domain/form/formDomain';
|
|
4
|
+
import { type ILibraryDomain } from '../../../domain/library/libraryDomain';
|
|
5
|
+
import { type IUtils } from '../../../utils/utils';
|
|
6
|
+
import { type IAppGraphQLSchema } from '../../../_types/graphql';
|
|
7
|
+
import { type IfLibraryJoinLinkAttribute } from '../../../domain/attribute/helpers/ifLibraryJoinLinkAttribute';
|
|
8
|
+
import { type IGraphqlAppModule } from '../../graphql/graphqlApp';
|
|
9
9
|
export type ICoreFormApp = IGraphqlAppModule;
|
|
10
10
|
interface IDeps {
|
|
11
11
|
'core.domain.attribute': IAttributeDomain;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { type InitQueryContextFunc } from '
|
|
2
|
-
import { type IRecordDomain } from 'domain/record/recordDomain';
|
|
3
|
-
import { type IUtils } from 'utils/utils';
|
|
1
|
+
import { type InitQueryContextFunc } from '../helpers/initQueryContext';
|
|
2
|
+
import { type IRecordDomain } from '../../domain/record/recordDomain';
|
|
3
|
+
import { type IUtils } from '../../utils/utils';
|
|
4
4
|
import { type ILogger } from '@leav/logger';
|
|
5
|
-
import { type IConfig } from '_types/config';
|
|
6
|
-
import { type IAppModule } from '_types/shared';
|
|
5
|
+
import { type IConfig } from '../../_types/config';
|
|
6
|
+
import { type IAppModule } from '../../_types/shared';
|
|
7
7
|
import { type IGlobalSettingsDomain } from '../../domain/globalSettings/globalSettingsDomain';
|
|
8
|
-
import { type IGraphqlAppModule } from '
|
|
9
|
-
import { type IServerRouteAppModule } from 'interface/server';
|
|
8
|
+
import { type IGraphqlAppModule } from '../graphql/graphqlApp';
|
|
9
|
+
import { type IServerRouteAppModule } from '../../interface/server';
|
|
10
10
|
export type ICoreApp = IAppModule & IGraphqlAppModule & IServerRouteAppModule;
|
|
11
11
|
interface IDeps {
|
|
12
12
|
'core.app.helpers.initQueryContext': InitQueryContextFunc;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type StoreUploadFileFunc } from 'domain/helpers/storeUploadFile';
|
|
2
|
-
import { type IImportDomain } from 'domain/import/importDomain';
|
|
3
|
-
import { type IUtils } from 'utils/utils';
|
|
4
|
-
import type * as Config from '_types/config';
|
|
1
|
+
import { type StoreUploadFileFunc } from '../../domain/helpers/storeUploadFile';
|
|
2
|
+
import { type IImportDomain } from '../../domain/import/importDomain';
|
|
3
|
+
import { type IUtils } from '../../utils/utils';
|
|
4
|
+
import type * as Config from '../../_types/config';
|
|
5
5
|
import { type IGraphqlAppModule } from '../graphql/graphqlApp';
|
|
6
6
|
import { type GetSystemQueryContext } from '../../utils/helpers/getSystemQueryContext';
|
|
7
7
|
export interface ICoreImportApp extends IGraphqlAppModule {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { default as actionList } from './actionListApp';
|
|
2
2
|
export { default as apiKey } from './apiKeyApp/apiKeyApp';
|
|
3
3
|
export { default as attribute } from './attributeApp/attributeApp';
|
|
4
|
+
export { default as automation } from './automationApp';
|
|
4
5
|
export { default } from './coreApp';
|
|
5
6
|
export { default as eventsManager } from './eventsManagerApp';
|
|
6
7
|
export { default as export } from './exportApp';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type IIndexationManagerDomain } from 'domain/indexationManager/indexationManagerDomain';
|
|
2
|
-
import { type IQueryInfos } from '_types/queryInfos';
|
|
1
|
+
import { type IIndexationManagerDomain } from '../../domain/indexationManager/indexationManagerDomain';
|
|
2
|
+
import { type IQueryInfos } from '../../_types/queryInfos';
|
|
3
3
|
export interface IIndexationManagerApp {
|
|
4
4
|
init(): Promise<void>;
|
|
5
5
|
indexDatabase(ctx: IQueryInfos, libraryId: string, records?: string[]): Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type LibraryBehavior } from '_types/library';
|
|
2
|
-
import { type SortOrder } from '_types/list';
|
|
1
|
+
import { type LibraryBehavior } from '../../../_types/library';
|
|
2
|
+
import { type SortOrder } from '../../../_types/list';
|
|
3
3
|
export interface IGetLibraryParams {
|
|
4
4
|
filters?: {
|
|
5
5
|
id?: string[];
|