@aristid/leav-types 1.12.0 → 1.13.0-2c43098d
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 +14 -3
- 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 +43 -0
- package/apps/core/src/_types/config.d.ts +28 -3
- 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/jsonSchemaForm.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/_types/viewsV2.d.ts +78 -0
- 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 +2 -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/core/viewV2App.d.ts +14 -0
- 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 +35 -0
- package/apps/core/src/domain/automation/actions/conditionAction.d.ts +14 -0
- package/apps/core/src/domain/automation/actions/errorAction.d.ts +8 -0
- package/apps/core/src/domain/automation/actions/index.d.ts +6 -0
- package/apps/core/src/domain/automation/actions/jexlCalculationAutomationAction.d.ts +16 -0
- package/apps/core/src/domain/automation/actions/logAction.d.ts +16 -0
- package/apps/core/src/domain/automation/actions/modifyAttributeAction.d.ts +20 -0
- package/apps/core/src/domain/automation/actions/notificationAction.d.ts +19 -0
- package/apps/core/src/domain/automation/automationActionsRegistry.d.ts +10 -0
- package/apps/core/src/domain/automation/automationDomain.d.ts +72 -0
- package/apps/core/src/domain/automation/fakeRulesToTrigger.d.ts +7 -0
- package/apps/core/src/domain/automation/form/automationJsonSchemaForm.d.ts +19 -0
- package/apps/core/src/domain/automation/form/automationUiJsonSchemaForm.d.ts +17 -0
- package/apps/core/src/domain/automation/form/index.d.ts +2 -0
- package/apps/core/src/domain/automation/index.d.ts +5 -0
- package/apps/core/src/domain/automation/pipeline/_types.d.ts +37 -0
- package/apps/core/src/domain/automation/pipeline/buildAutomationJexlContext.d.ts +9 -0
- package/apps/core/src/domain/automation/pipeline/index.d.ts +2 -0
- package/apps/core/src/domain/automation/pipeline/pipeline.d.ts +13 -0
- package/apps/core/src/domain/automation/pipeline/stepValidation.d.ts +3 -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 +11 -9
- 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/domain/viewV2/index.d.ts +1 -0
- package/apps/core/src/domain/viewV2/viewV2Domain.d.ts +21 -0
- 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/db/migrations/020-addViewsV2Collection.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/infra/viewV2/index.d.ts +1 -0
- package/apps/core/src/infra/viewV2/viewV2Repo.d.ts +40 -0
- package/apps/core/src/interface/cli.d.ts +9 -4
- 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
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
|
+
```
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare let instanceId: string;
|
|
2
|
-
export declare let
|
|
2
|
+
export declare let coreModes: string[];
|
|
3
3
|
export declare namespace server {
|
|
4
4
|
let host: string;
|
|
5
5
|
let port: number;
|
|
@@ -9,6 +9,9 @@ export declare namespace server {
|
|
|
9
9
|
let allowIntrospection: boolean;
|
|
10
10
|
let uploadLimit: string;
|
|
11
11
|
let supportEmail: string;
|
|
12
|
+
namespace trpc {
|
|
13
|
+
let ssePingIntervalMs: string | number;
|
|
14
|
+
}
|
|
12
15
|
namespace admin {
|
|
13
16
|
let login: string;
|
|
14
17
|
let password: string;
|
|
@@ -105,6 +108,10 @@ export declare namespace actions {
|
|
|
105
108
|
namespace excel {
|
|
106
109
|
let debug: boolean;
|
|
107
110
|
}
|
|
111
|
+
namespace jexl {
|
|
112
|
+
let debug_1: boolean;
|
|
113
|
+
export { debug_1 as debug };
|
|
114
|
+
}
|
|
108
115
|
}
|
|
109
116
|
export declare namespace bugsnag {
|
|
110
117
|
let enable_1: boolean;
|
|
@@ -230,7 +237,7 @@ export declare namespace indexationManager {
|
|
|
230
237
|
}
|
|
231
238
|
export { queues_3 as queues };
|
|
232
239
|
}
|
|
233
|
-
declare let
|
|
240
|
+
declare let debug_2: boolean;
|
|
234
241
|
export declare let defaultUserId: string;
|
|
235
242
|
export declare namespace _export {
|
|
236
243
|
let directory_1: string;
|
|
@@ -287,4 +294,8 @@ export declare namespace logsCollector {
|
|
|
287
294
|
let queue: string;
|
|
288
295
|
}
|
|
289
296
|
export declare let pluginsPath: string[];
|
|
290
|
-
export
|
|
297
|
+
export declare namespace automation {
|
|
298
|
+
let enable_7: boolean;
|
|
299
|
+
export { enable_7 as enable };
|
|
300
|
+
}
|
|
301
|
+
export { debug_2 as debug, _export as export, _import as import };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { type EventAction, type IDbPayload } from '@leav/utils';
|
|
2
|
+
import { type AutomationRulePipeline } from '../domain/automation/pipeline/_types';
|
|
3
|
+
export type IAutomationRule = ICoreEntity & {
|
|
4
|
+
createdAt: number;
|
|
5
|
+
createdBy: string;
|
|
6
|
+
modifiedAt: number;
|
|
7
|
+
modifiedBy: string;
|
|
8
|
+
id: string;
|
|
9
|
+
label: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
active: boolean;
|
|
12
|
+
trigger: AutomationRuleTrigger;
|
|
13
|
+
pipeline: AutomationRulePipeline;
|
|
14
|
+
};
|
|
15
|
+
export type ICreateAutomationRule = {
|
|
16
|
+
label: string;
|
|
17
|
+
description?: string;
|
|
18
|
+
trigger: AutomationRuleTrigger;
|
|
19
|
+
pipeline: AutomationRulePipeline;
|
|
20
|
+
active: boolean;
|
|
21
|
+
};
|
|
22
|
+
export type IUpdateAutomationRule = {
|
|
23
|
+
id: string;
|
|
24
|
+
label?: string;
|
|
25
|
+
description?: string;
|
|
26
|
+
active?: boolean;
|
|
27
|
+
trigger?: AutomationRuleTrigger;
|
|
28
|
+
pipeline?: AutomationRulePipeline;
|
|
29
|
+
};
|
|
30
|
+
export declare enum AutomationRuleJsonSchemaFormType {
|
|
31
|
+
CREATION = "creation",
|
|
32
|
+
EDITION = "edition"
|
|
33
|
+
}
|
|
34
|
+
export declare enum SyncAutomationRuleEventAction {
|
|
35
|
+
RECORD_INIT = "RECORD_INIT"
|
|
36
|
+
}
|
|
37
|
+
export type AutomationRuleEventAction = EventAction | SyncAutomationRuleEventAction;
|
|
38
|
+
export type AutomationRulesEventTopic = IDbPayload['topic'];
|
|
39
|
+
export type AutomationRuleTrigger = {
|
|
40
|
+
synchronous: boolean;
|
|
41
|
+
eventAction: AutomationRuleEventAction;
|
|
42
|
+
eventTopic?: AutomationRulesEventTopic;
|
|
43
|
+
};
|
|
@@ -2,7 +2,7 @@ import { type Options } from 'amqplib';
|
|
|
2
2
|
import { type IKeyValue } from './shared';
|
|
3
3
|
import { type PermissionsActions, type AdminPermissionsActions, type ApplicationPermissionsActions, type AttributePermissionsActions, type LibraryPermissionsActions, type PermissionTypes, type RecordAttributePermissionsActions, type RecordPermissionsActions, type TreeNodePermissionsActions, type TreePermissionsActions, type AttributeDependentValuesPermissionsActions } from './permissions';
|
|
4
4
|
export interface IConfig {
|
|
5
|
-
|
|
5
|
+
coreModes: CoreMode[];
|
|
6
6
|
server: IServer;
|
|
7
7
|
db: IDb;
|
|
8
8
|
diskCache: IDiskCache;
|
|
@@ -35,6 +35,10 @@ export interface IConfig {
|
|
|
35
35
|
pluginsPath: string[];
|
|
36
36
|
bugsnag: IBugsnag;
|
|
37
37
|
matomo: IMatomo;
|
|
38
|
+
automation: IAutomation;
|
|
39
|
+
}
|
|
40
|
+
export interface IAutomation {
|
|
41
|
+
enable: boolean;
|
|
38
42
|
}
|
|
39
43
|
export declare enum CoreMode {
|
|
40
44
|
SERVER = "server",
|
|
@@ -44,9 +48,21 @@ export declare enum CoreMode {
|
|
|
44
48
|
TASKS_MANAGER_MASTER = "tasksManager:master",
|
|
45
49
|
TASKS_MANAGER_WORKER = "tasksManager:worker",
|
|
46
50
|
LOGS_COLLECTOR = "logsCollector",
|
|
47
|
-
|
|
48
|
-
|
|
51
|
+
/**
|
|
52
|
+
* Default, to do db migration, or import ...
|
|
53
|
+
*/
|
|
54
|
+
CLI = "cli",
|
|
55
|
+
/**
|
|
56
|
+
* Alias for [
|
|
57
|
+
* CoreMode.SERVER,
|
|
58
|
+
* CoreMode.INDEXATION_MANAGER,
|
|
59
|
+
* CoreMode.TASKS_MANAGER_MASTER,
|
|
60
|
+
* CoreMode.TASKS_MANAGER_WORKER,
|
|
61
|
+
* ]
|
|
62
|
+
*/
|
|
63
|
+
E2E_PLAYWRIGHT = "e2ePlaywright"
|
|
49
64
|
}
|
|
65
|
+
export declare const CORE_MODES_E2E_PLAYWRIGHT: CoreMode[];
|
|
50
66
|
export interface IServer {
|
|
51
67
|
host: string;
|
|
52
68
|
port: number;
|
|
@@ -56,6 +72,9 @@ export interface IServer {
|
|
|
56
72
|
allowIntrospection: boolean;
|
|
57
73
|
uploadLimit: number | string;
|
|
58
74
|
supportEmail: string;
|
|
75
|
+
trpc: {
|
|
76
|
+
ssePingIntervalMs: number;
|
|
77
|
+
};
|
|
59
78
|
admin: {
|
|
60
79
|
login: string;
|
|
61
80
|
password: string;
|
|
@@ -73,6 +92,12 @@ export interface IActions {
|
|
|
73
92
|
*/
|
|
74
93
|
debug: boolean;
|
|
75
94
|
};
|
|
95
|
+
jexl: {
|
|
96
|
+
/**
|
|
97
|
+
* Add debug log for each calculation with formula and result or error
|
|
98
|
+
*/
|
|
99
|
+
debug: boolean;
|
|
100
|
+
};
|
|
76
101
|
}
|
|
77
102
|
export interface IDb {
|
|
78
103
|
url: string;
|
|
@@ -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
|
+
};
|
|
@@ -7,6 +7,11 @@ export declare enum ErrorTypes {
|
|
|
7
7
|
export declare enum Errors {
|
|
8
8
|
APP_STUDIO_WORKSPACE_LIBRARY_ID_REQUIRED = "APP_STUDIO_WORKSPACE_LIBRARY_ID_REQUIRED",
|
|
9
9
|
APP_STUDIO_WORKSPACE_RECORD_ID_REQUIRED = "APP_STUDIO_WORKSPACE_RECORD_ID_REQUIRED",
|
|
10
|
+
AUTOMATION_UNKNOWN_TRIGGER_EVENT_ACTION = "AUTOMATION_UNKNOWN_TRIGGER_EVENT_ACTION",
|
|
11
|
+
AUTOMATION_INVALID_TRIGGER_EVENT_TOPIC = "AUTOMATION_INVALID_TRIGGER_EVENT_TOPIC",
|
|
12
|
+
AUTOMATION_INVALID_TRIGGER_ONLY_SYNC = "AUTOMATION_INVALID_TRIGGER_ONLY_SYNC",
|
|
13
|
+
AUTOMATION_INVALID_TRIGGER_ONLY_ASYNC = "AUTOMATION_INVALID_TRIGGER_ONLY_ASYNC",
|
|
14
|
+
AUTOMATION_RULE_PIPELINE_EMPTY = "AUTOMATION_RULE_PIPELINE_EMPTY",
|
|
10
15
|
ATTRIBUTE_USED_BY_LIBRARY = "ATTRIBUTE_USED_BY_LIBRARY",
|
|
11
16
|
ATTRIBUTE_USED_IN_METADATA = "ATTRIBUTE_USED_IN_METADATA",
|
|
12
17
|
CANNOT_SAVE_METADATA = "CANNOT_SAVE_METADATA",
|
|
@@ -28,6 +33,8 @@ export declare enum Errors {
|
|
|
28
33
|
FORMAT_ERROR = "FORMAT_ERROR",
|
|
29
34
|
IMMUTABLE_CORE_SYSTEM_ATTRIBUTE = "IMMUTABLE_CORE_SYSTEM_ATTRIBUTE",
|
|
30
35
|
INVALID_ACTION_TYPE = "INVALID_ACTION_TYPE",
|
|
36
|
+
INVALID_AUTOMATION_ACTION_PARAMS = "INVALID_AUTOMATION_ACTION_PARAMS",
|
|
37
|
+
INVALID_AUTOMATION_ACTION_TYPE = "INVALID_AUTOMATION_ACTION_TYPE",
|
|
31
38
|
INVALID_ATTRIBUTE_TYPE = "INVALID_ATTRIBUTE_TYPE",
|
|
32
39
|
INVALID_ATTRIBUTE_FILTER_FORMAT = "INVALID_ATTRIBUTE_FILTER_FORMAT",
|
|
33
40
|
INVALID_ATTRIBUTE_FOR_LIBRARY = "INVALID_ATTRIBUTE_FOR_LIBRARY",
|
|
@@ -45,6 +52,7 @@ export declare enum Errors {
|
|
|
45
52
|
INVALID_MAPPING = "INVALID_MAPPING",
|
|
46
53
|
INVALID_PERMISSIONS_CONF_LIBRARIES = "INVALID_PERMISSIONS_CONF_LIBRARIES",
|
|
47
54
|
INVALID_REGEXP = "INVALID_REGEXP",
|
|
55
|
+
INVALID_JEXL_EXPRESSION = "INVALID_JEXL_EXPRESSION",
|
|
48
56
|
INVALID_SORT_FIELDS = "INVALID_SORT_FIELDS",
|
|
49
57
|
INVALID_TREE_FILTER_FORMAT = "INVALID_TREE_FILTER_FORMAT",
|
|
50
58
|
INVALID_URL = "INVALID_URL",
|
|
@@ -91,6 +99,7 @@ export declare enum Errors {
|
|
|
91
99
|
UNKNOWN_APPLICATION = "UNKNOWN_APPLICATION",
|
|
92
100
|
UNKNOWN_ATTRIBUTE = "UNKNOWN_ATTRIBUTE",
|
|
93
101
|
UNKNOWN_ATTRIBUTES = "UNKNOWN_ATTRIBUTES",
|
|
102
|
+
UNKNOWN_AUTOMATION_RULE = "UNKNOWN_AUTOMATION_RULE",
|
|
94
103
|
UNKNOWN_ELEMENT = "UNKNOWN_ELEMENT",
|
|
95
104
|
UNKNOWN_FORM = "UNKNOWN_FORM",
|
|
96
105
|
UNKNOWN_FORM_ATTRIBUTES = "UNKNOWN_FORM_ATTRIBUTES",
|
|
@@ -9,6 +9,8 @@ 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';
|
|
13
|
+
import { type IAutomationPipelineFailure, type IAutomationPipelineSuccess } from '../domain/automation/pipeline/_types';
|
|
12
14
|
type OnlyObject<T> = T extends object ? T : never;
|
|
13
15
|
/**
|
|
14
16
|
* Maybe move all DBPayloadData types in @leav/utils type to allow event consumers outside core to use them
|
|
@@ -30,6 +32,10 @@ interface IDBPayloadDataMap {
|
|
|
30
32
|
[EventAction.API_KEY_DELETE]: IApiKey;
|
|
31
33
|
[EventAction.APP_SAVE]: IApplication;
|
|
32
34
|
[EventAction.APP_DELETE]: IApplication;
|
|
35
|
+
[EventAction.AUTOMATION_RULE_CREATE]: IAutomationRule;
|
|
36
|
+
[EventAction.AUTOMATION_RULE_UPDATE]: IAutomationRule;
|
|
37
|
+
[EventAction.AUTOMATION_PIPELINE_SUCCESS]: IAutomationPipelineSuccess;
|
|
38
|
+
[EventAction.AUTOMATION_PIPELINE_FAILURE]: IAutomationPipelineFailure;
|
|
33
39
|
[EventAction.GLOBAL_SETTINGS_SAVE]: IGlobalSettings;
|
|
34
40
|
[EventAction.LIBRARY_SAVE]: ILibraryDbEvent;
|
|
35
41
|
[EventAction.LIBRARY_DELETE]: ILibraryDbEvent;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type INotification } from './notification';
|
|
2
|
+
import { type IRecord } from './record';
|
|
2
3
|
import { type ITask } from './tasksManager';
|
|
3
4
|
export declare enum TriggerNames {
|
|
4
5
|
APPLICATION_EVENT = "APPLICATION_EVENT",
|
|
@@ -7,6 +8,7 @@ export declare enum TriggerNames {
|
|
|
7
8
|
TASK = "TASK",
|
|
8
9
|
TREE_EVENT = "TREE_EVENT",
|
|
9
10
|
RECORD_UPDATE = "RECORD_UPDATE",
|
|
11
|
+
RECORD_NEW_COMMENT = "RECORD_NEW_COMMENT",
|
|
10
12
|
NOTIFICATION = "NOTIFICATION"
|
|
11
13
|
}
|
|
12
14
|
export interface IPubSubNotificationData {
|
|
@@ -16,3 +18,9 @@ export interface IPubSubNotificationData {
|
|
|
16
18
|
export interface IPubSubTaskData {
|
|
17
19
|
task: ITask;
|
|
18
20
|
}
|
|
21
|
+
export interface IPubSubRecordNewCommentData {
|
|
22
|
+
recordNewComment: {
|
|
23
|
+
record: IRecord;
|
|
24
|
+
comment: IRecord;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
@@ -3,6 +3,8 @@ import { type IAppGraphQLSchema } from './graphql';
|
|
|
3
3
|
import { type PermissionTypes } from './permissions';
|
|
4
4
|
import { type PluginRegisterRoute } from './endpoint';
|
|
5
5
|
import { type AuthPostOidcLoginCallback } from './auth';
|
|
6
|
+
import { type RegisterCronTask } from './cronTask';
|
|
7
|
+
import { type ITRPCRouterFactory } from '../app/trpc/trpcApp';
|
|
6
8
|
export interface IExtensionPoints {
|
|
7
9
|
[name: string]: (...args: any[]) => void;
|
|
8
10
|
}
|
|
@@ -15,6 +17,7 @@ export interface IExtensionPointsFunctions extends IExtensionPoints {
|
|
|
15
17
|
* @param {IAppGraphQLSchema} schemaPart
|
|
16
18
|
*/
|
|
17
19
|
registerGraphQLSchema: (schemaPart: IAppGraphQLSchema) => void;
|
|
20
|
+
registerTRPCRouter: (initRouter: ITRPCRouterFactory) => void;
|
|
18
21
|
registerTranslations: (path: string) => Promise<void>;
|
|
19
22
|
registerPermissionActions: (type: PermissionTypes, actions: string[], applyOn?: string[]) => void;
|
|
20
23
|
registerEventActions: (actions: string[], prefix: string) => void;
|
|
@@ -35,4 +38,8 @@ export interface IExtensionPointsFunctions extends IExtensionPoints {
|
|
|
35
38
|
* Useful to change user settings or to log some information after the user is authenticated but before the session is created.
|
|
36
39
|
*/
|
|
37
40
|
registerAuthPostOidcLoginCallback: (callback: AuthPostOidcLoginCallback) => void;
|
|
41
|
+
/**
|
|
42
|
+
* Register a cron task to be executed on a schedule defined by the `schedule` property of `registerCronTask`.
|
|
43
|
+
*/
|
|
44
|
+
registerCronTask: (registerCronTask: RegisterCronTask) => void;
|
|
38
45
|
}
|
|
@@ -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';
|
|
@@ -102,6 +102,7 @@ export interface IRecordUpdateEventFilters {
|
|
|
102
102
|
libraries?: string[];
|
|
103
103
|
records?: string[];
|
|
104
104
|
}
|
|
105
|
+
export type IRecordCommentEventFilters = IRecordUpdateEventFilters;
|
|
105
106
|
export interface IRecordFilterLight {
|
|
106
107
|
field?: string;
|
|
107
108
|
value?: string;
|
|
@@ -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'];
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { type IRecordFilterLight, type IRecordSortLight } from './record';
|
|
2
|
+
import { type ISystemTranslation } from './systemTranslation';
|
|
3
|
+
export declare enum ViewV2Types {
|
|
4
|
+
LIST = "list",
|
|
5
|
+
CARDS = "cards",
|
|
6
|
+
TIMELINE = "timeline"
|
|
7
|
+
}
|
|
8
|
+
export interface IViewV2Display {
|
|
9
|
+
type: ViewV2Types;
|
|
10
|
+
}
|
|
11
|
+
export interface IViewV2ValuesVersion {
|
|
12
|
+
[treeId: string]: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* User-facing fields of a view v2 with their natural required/optional cardinality.
|
|
16
|
+
* Source of truth for both the stored entity and the create/update inputs — every other
|
|
17
|
+
* shape in this file is derived from it.
|
|
18
|
+
*/
|
|
19
|
+
interface IViewV2UserFields {
|
|
20
|
+
library: string;
|
|
21
|
+
label: ISystemTranslation;
|
|
22
|
+
display: IViewV2Display;
|
|
23
|
+
shared: boolean;
|
|
24
|
+
attributes: string[];
|
|
25
|
+
filters?: IRecordFilterLight[];
|
|
26
|
+
sort?: IRecordSortLight[];
|
|
27
|
+
valuesVersions?: IViewV2ValuesVersion;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Server-managed fields, populated by the domain layer.
|
|
31
|
+
*/
|
|
32
|
+
interface IViewV2ServerFields {
|
|
33
|
+
id: string;
|
|
34
|
+
created_by: string;
|
|
35
|
+
created_at: number;
|
|
36
|
+
modified_at: number;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Stored view v2 entity, as persisted in ArangoDB and returned by the domain.
|
|
40
|
+
*/
|
|
41
|
+
export type IViewV2 = IViewV2UserFields & IViewV2ServerFields;
|
|
42
|
+
/**
|
|
43
|
+
* Domain create input: user fields, with `attributes` made optional (the domain
|
|
44
|
+
* defaults it to `[]`).
|
|
45
|
+
*/
|
|
46
|
+
export type IViewV2CreateInput = Omit<IViewV2UserFields, 'attributes'> & {
|
|
47
|
+
attributes?: string[];
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Domain update input: only `id` is mandatory; every other user field is optional
|
|
51
|
+
* and only the provided ones are updated.
|
|
52
|
+
*/
|
|
53
|
+
export type IViewV2UpdateInput = Pick<IViewV2ServerFields, 'id'> & Partial<IViewV2UserFields>;
|
|
54
|
+
export interface IViewV2ValuesVersionForGraphql {
|
|
55
|
+
treeId: string;
|
|
56
|
+
treeNode: {
|
|
57
|
+
id: string;
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* GraphQL-shaped create input: same as the domain input but `valuesVersions` arrives as
|
|
62
|
+
* an array of `{treeId, treeNode}` pairs.
|
|
63
|
+
*/
|
|
64
|
+
export type IViewV2CreateInputFromGraphQL = Omit<IViewV2CreateInput, 'valuesVersions'> & {
|
|
65
|
+
valuesVersions?: IViewV2ValuesVersionForGraphql[];
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* GraphQL-shaped update input: same as the domain input with array-shaped `valuesVersions`.
|
|
69
|
+
*/
|
|
70
|
+
export type IViewV2UpdateInputFromGraphQL = Omit<IViewV2UpdateInput, 'valuesVersions'> & {
|
|
71
|
+
valuesVersions?: IViewV2ValuesVersionForGraphql[];
|
|
72
|
+
};
|
|
73
|
+
export interface IViewV2FilterOptions extends ICoreEntityFilterOptions {
|
|
74
|
+
created_by?: string;
|
|
75
|
+
library?: string;
|
|
76
|
+
type?: ViewV2Types;
|
|
77
|
+
}
|
|
78
|
+
export {};
|
|
@@ -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,9 +12,9 @@ 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
19
|
import { type IExtensionPoints } from '../../_types/extensionPoints';
|
|
20
20
|
export interface IAuthApp extends IGraphqlAppModule, IServerRouteAppModule {
|
|
@@ -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,24 @@
|
|
|
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 IAutomationTriggers } from '../../domain/automation/triggers/automationTriggers';
|
|
6
|
+
import { type IAutomationTriggersRegistry } from '../..//domain/automation/triggers/automationTriggersRegistry';
|
|
7
|
+
export type ICoreImportApp = IGraphqlAppModule;
|
|
8
|
+
interface IAutomationAppDeps {
|
|
9
|
+
'core.domain.automation': IAutomationDomain;
|
|
10
|
+
'core.domain.automation.triggers': IAutomationTriggers;
|
|
11
|
+
'core.domain.automation.triggers.registry': IAutomationTriggersRegistry;
|
|
12
|
+
}
|
|
13
|
+
export interface IGetAutomationRulesArgs {
|
|
14
|
+
filters?: ICoreEntityFilterOptions & {
|
|
15
|
+
active?: boolean;
|
|
16
|
+
synchronous?: boolean;
|
|
17
|
+
eventAction?: IAutomationRule['trigger']['eventAction'];
|
|
18
|
+
eventTopic?: IAutomationRule['trigger']['eventTopic'];
|
|
19
|
+
};
|
|
20
|
+
pagination?: IPaginationParams;
|
|
21
|
+
sort?: ISortParams;
|
|
22
|
+
}
|
|
23
|
+
export default function ({ 'core.domain.automation': automationDomain, 'core.domain.automation.triggers': automationTriggers, 'core.domain.automation.triggers.registry': automationTriggersRegistry, }: IAutomationAppDeps): ICoreImportApp;
|
|
24
|
+
export {};
|