@aristid/leav-types 1.12.0 → 1.13.0-0ceda52e

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.
Files changed (541) hide show
  1. package/CLAUDE.md +42 -0
  2. package/apps/core/config/default.d.ts +18 -3
  3. package/apps/core/config/development.d.ts +4 -0
  4. package/apps/core/config/test.d.ts +8 -0
  5. package/apps/core/src/_types/actionsList.d.ts +1 -1
  6. package/apps/core/src/_types/automation.d.ts +44 -0
  7. package/apps/core/src/_types/config.d.ts +32 -3
  8. package/apps/core/src/_types/cronTask.d.ts +14 -0
  9. package/apps/core/src/_types/errors.d.ts +9 -0
  10. package/apps/core/src/_types/events.d.ts +6 -0
  11. package/apps/core/src/_types/eventsManager.d.ts +8 -0
  12. package/apps/core/src/_types/extensionPoints.d.ts +7 -0
  13. package/apps/core/src/_types/jsonSchemaForm.d.ts +7 -0
  14. package/apps/core/src/_types/migration.d.ts +1 -1
  15. package/apps/core/src/_types/permissions.d.ts +1 -0
  16. package/apps/core/src/_types/queryInfos.d.ts +1 -1
  17. package/apps/core/src/_types/record.d.ts +2 -1
  18. package/apps/core/src/_types/value.d.ts +2 -2
  19. package/apps/core/src/_types/viewsV2.d.ts +78 -0
  20. package/apps/core/src/app/application/applicationApp.d.ts +9 -9
  21. package/apps/core/src/app/auth/authApp.d.ts +8 -8
  22. package/apps/core/src/app/core/actionListApp.d.ts +3 -3
  23. package/apps/core/src/app/core/apiKeyApp/_types.d.ts +2 -2
  24. package/apps/core/src/app/core/apiKeyApp/apiKeyApp.d.ts +3 -3
  25. package/apps/core/src/app/core/attributeApp/attributeApp.d.ts +11 -9
  26. package/apps/core/src/app/core/automationApp.d.ts +24 -0
  27. package/apps/core/src/app/core/coreApp.d.ts +5 -5
  28. package/apps/core/src/app/core/discussionApp.d.ts +2 -2
  29. package/apps/core/src/app/core/eventsManagerApp.d.ts +6 -5
  30. package/apps/core/src/app/core/exportApp.d.ts +2 -2
  31. package/apps/core/src/app/core/filesManagerApp.d.ts +8 -6
  32. package/apps/core/src/app/core/formApp/_types.d.ts +2 -2
  33. package/apps/core/src/app/core/formApp/formApp.d.ts +8 -8
  34. package/apps/core/src/app/core/globalSettingsApp.d.ts +7 -7
  35. package/apps/core/src/app/core/helpers/subscriptions.d.ts +1 -1
  36. package/apps/core/src/app/core/importApp.d.ts +4 -4
  37. package/apps/core/src/app/core/index.d.ts +2 -0
  38. package/apps/core/src/app/core/indexationManagerApp.d.ts +2 -2
  39. package/apps/core/src/app/core/libraryApp/_types.d.ts +2 -2
  40. package/apps/core/src/app/core/libraryApp/libraryApp.d.ts +7 -7
  41. package/apps/core/src/app/core/logApp.d.ts +15 -13
  42. package/apps/core/src/app/core/logsCollectorApp.d.ts +1 -1
  43. package/apps/core/src/app/core/notificationApp.d.ts +3 -3
  44. package/apps/core/src/app/core/permissionApp/_types.d.ts +1 -1
  45. package/apps/core/src/app/core/permissionApp/permissionApp.d.ts +4 -4
  46. package/apps/core/src/app/core/pluginsApp.d.ts +3 -3
  47. package/apps/core/src/app/core/recordApp/_types.d.ts +2 -2
  48. package/apps/core/src/app/core/recordApp/recordApp.d.ts +8 -8
  49. package/apps/core/src/app/core/tasksManagerApp.d.ts +11 -9
  50. package/apps/core/src/app/core/treeApp/_types.d.ts +4 -4
  51. package/apps/core/src/app/core/treeApp/treeApp.d.ts +5 -5
  52. package/apps/core/src/app/core/userDataApp.d.ts +1 -1
  53. package/apps/core/src/app/core/valueApp.d.ts +6 -6
  54. package/apps/core/src/app/core/versionProfileApp/_types.d.ts +2 -2
  55. package/apps/core/src/app/core/versionProfileApp/versionProfileApp.d.ts +3 -3
  56. package/apps/core/src/app/core/viewApp.d.ts +5 -5
  57. package/apps/core/src/app/core/viewV2App.d.ts +14 -0
  58. package/apps/core/src/app/endpoint/endpointApp.d.ts +3 -3
  59. package/apps/core/src/app/graphql/customScalars/dateTime/dateTime.d.ts +1 -1
  60. package/apps/core/src/app/graphql/customScalars/systemTranslation/systemTranslation.d.ts +1 -1
  61. package/apps/core/src/app/graphql/graphqlApp.d.ts +3 -3
  62. package/apps/core/src/app/helpers/convertVersionFromGqlFormat.d.ts +1 -1
  63. package/apps/core/src/app/helpers/initQueryContext.d.ts +2 -2
  64. package/apps/core/src/app/trpc/index.d.ts +1 -0
  65. package/apps/core/src/app/trpc/trpcApp.d.ts +30 -0
  66. package/apps/core/src/domain/actions/excelCalculationAction.d.ts +2 -2
  67. package/apps/core/src/domain/actions/index.d.ts +1 -0
  68. package/apps/core/src/domain/actions/inheritanceCalculationAction.d.ts +2 -2
  69. package/apps/core/src/domain/actions/jexlCalculationAction.d.ts +14 -0
  70. package/apps/core/src/domain/actions/replaceAnotherAttributeAction.d.ts +3 -3
  71. package/apps/core/src/domain/apiKey/apiKeyDomain.d.ts +6 -6
  72. package/apps/core/src/domain/application/applicationDomain.d.ts +7 -7
  73. package/apps/core/src/domain/application/helpers/getLibrarySystemPanels.d.ts +2 -2
  74. package/apps/core/src/domain/attribute/attributeDomain.d.ts +12 -12
  75. package/apps/core/src/domain/attribute/helpers/attributeALHelper.d.ts +1 -1
  76. package/apps/core/src/domain/attribute/helpers/attributeValidationHelper.d.ts +6 -6
  77. package/apps/core/src/domain/attribute/helpers/ifLibraryJoinLinkAttribute.d.ts +2 -2
  78. package/apps/core/src/domain/automation/actions/_types.d.ts +35 -0
  79. package/apps/core/src/domain/automation/actions/conditionAction.d.ts +12 -0
  80. package/apps/core/src/domain/automation/actions/errorAction.d.ts +8 -0
  81. package/apps/core/src/domain/automation/actions/index.d.ts +6 -0
  82. package/apps/core/src/domain/automation/actions/jexlCalculationAutomationAction.d.ts +14 -0
  83. package/apps/core/src/domain/automation/actions/logAction.d.ts +16 -0
  84. package/apps/core/src/domain/automation/actions/modifyAttributeAction.d.ts +20 -0
  85. package/apps/core/src/domain/automation/actions/notificationAction.d.ts +17 -0
  86. package/apps/core/src/domain/automation/automationActionsRegistry.d.ts +10 -0
  87. package/apps/core/src/domain/automation/automationDomain.d.ts +74 -0
  88. package/apps/core/src/domain/automation/automationRulesCache.d.ts +66 -0
  89. package/apps/core/src/domain/automation/fakeRulesToTrigger.d.ts +7 -0
  90. package/apps/core/src/domain/automation/form/automationJsonSchemaForm.d.ts +21 -0
  91. package/apps/core/src/domain/automation/form/automationUiJsonSchemaForm.d.ts +19 -0
  92. package/apps/core/src/domain/automation/form/index.d.ts +2 -0
  93. package/apps/core/src/domain/automation/index.d.ts +6 -0
  94. package/apps/core/src/domain/automation/jexl/index.d.ts +1 -0
  95. package/apps/core/src/domain/automation/jexl/jexlAutomation.d.ts +16 -0
  96. package/apps/core/src/domain/automation/pipeline/_types.d.ts +37 -0
  97. package/apps/core/src/domain/automation/pipeline/index.d.ts +1 -0
  98. package/apps/core/src/domain/automation/pipeline/pipeline.d.ts +13 -0
  99. package/apps/core/src/domain/automation/pipeline/stepValidation.d.ts +3 -0
  100. package/apps/core/src/domain/automation/triggers/_types.d.ts +15 -0
  101. package/apps/core/src/domain/automation/triggers/automationTriggers.d.ts +14 -0
  102. package/apps/core/src/domain/automation/triggers/automationTriggersRegistry.d.ts +19 -0
  103. package/apps/core/src/domain/automation/triggers/automationTriggersTopics.d.ts +18 -0
  104. package/apps/core/src/domain/automation/triggers/index.d.ts +3 -0
  105. package/apps/core/src/domain/discussion/discussionDomain.d.ts +10 -8
  106. package/apps/core/src/domain/eventsManager/eventsManagerDomain.d.ts +4 -4
  107. package/apps/core/src/domain/export/exportDomain.d.ts +8 -8
  108. package/apps/core/src/domain/export/exportProfileDomain.d.ts +2 -2
  109. package/apps/core/src/domain/filesManager/_constants.d.ts +1 -1
  110. package/apps/core/src/domain/filesManager/filesManagerDomain.d.ts +13 -13
  111. package/apps/core/src/domain/filesManager/helpers/extractFileMetadata.d.ts +1 -1
  112. package/apps/core/src/domain/filesManager/helpers/getRootPathByKey.d.ts +1 -1
  113. package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/_types.d.ts +12 -12
  114. package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleCreateEvent.d.ts +1 -1
  115. package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleFileSystemEvent.d.ts +10 -10
  116. package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleMoveEvent.d.ts +1 -1
  117. package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleRemoveEvent.d.ts +1 -1
  118. package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleUpdateEvent.d.ts +1 -1
  119. package/apps/core/src/domain/filesManager/helpers/handleFileUtilsHelper.d.ts +7 -7
  120. package/apps/core/src/domain/filesManager/helpers/handlePreview.d.ts +1 -1
  121. package/apps/core/src/domain/filesManager/helpers/handlePreviewResponse.d.ts +9 -9
  122. package/apps/core/src/domain/filesManager/helpers/messagesHandler/messagesHandler.d.ts +3 -3
  123. package/apps/core/src/domain/form/formDomain.d.ts +12 -12
  124. package/apps/core/src/domain/form/helpers/getElementValues.d.ts +4 -4
  125. package/apps/core/src/domain/form/helpers/mustIncludeElement.d.ts +4 -4
  126. package/apps/core/src/domain/globalSettings/globalSettingsDomain.d.ts +5 -5
  127. package/apps/core/src/domain/helpers/calculations/calculationVariable.d.ts +1 -1
  128. package/apps/core/src/domain/helpers/calculations/calculationsVariableFunctions.d.ts +4 -4
  129. package/apps/core/src/domain/helpers/createDirectory.d.ts +2 -2
  130. package/apps/core/src/domain/helpers/getCoreEntityById.d.ts +11 -9
  131. package/apps/core/src/domain/helpers/updateRecordLastModif.d.ts +4 -4
  132. package/apps/core/src/domain/helpers/updateTaskProgress.d.ts +3 -3
  133. package/apps/core/src/domain/helpers/validate.d.ts +6 -6
  134. package/apps/core/src/domain/import/importDomain.d.ts +11 -11
  135. package/apps/core/src/domain/indexationManager/indexationManagerDomain.d.ts +9 -9
  136. package/apps/core/src/domain/jexl/index.d.ts +1 -0
  137. package/apps/core/src/domain/jexl/jexlDomain.d.ts +19 -0
  138. package/apps/core/src/domain/jexl/jexlExtended.d.ts +2 -0
  139. package/apps/core/src/domain/jexl/types.d.ts +37 -0
  140. package/apps/core/src/domain/library/helpers/checkSavePermission.d.ts +2 -2
  141. package/apps/core/src/domain/library/helpers/deleteAssociatedValues.d.ts +5 -5
  142. package/apps/core/src/domain/library/helpers/index.d.ts +0 -1
  143. package/apps/core/src/domain/library/helpers/runBehaviorPostSave.d.ts +6 -6
  144. package/apps/core/src/domain/library/helpers/runPreDelete.d.ts +4 -4
  145. package/apps/core/src/domain/library/helpers/updateAssociatedForms.d.ts +2 -2
  146. package/apps/core/src/domain/library/helpers/validateLibAttributes.d.ts +3 -3
  147. package/apps/core/src/domain/library/helpers/validateLibFullTextAttributes.d.ts +1 -1
  148. package/apps/core/src/domain/library/helpers/validatePermConf.d.ts +4 -4
  149. package/apps/core/src/domain/library/helpers/validatePreviewsSettings.d.ts +1 -1
  150. package/apps/core/src/domain/library/helpers/validateRecordIdentityConf.d.ts +3 -3
  151. package/apps/core/src/domain/library/libraryDomain.d.ts +11 -11
  152. package/apps/core/src/domain/log/logDomain.d.ts +5 -5
  153. package/apps/core/src/domain/logsCollector/logsCollectorDomain.d.ts +1 -1
  154. package/apps/core/src/domain/notification/channels/emailChannel.d.ts +4 -4
  155. package/apps/core/src/domain/notification/channels/webSocketChannel.d.ts +1 -1
  156. package/apps/core/src/domain/notification/notificationDomain.d.ts +3 -3
  157. package/apps/core/src/domain/permission/_types.d.ts +2 -2
  158. package/apps/core/src/domain/permission/attributeDependentValuesPermissionDomain.d.ts +8 -4
  159. package/apps/core/src/domain/permission/helpers/defaultPermission.d.ts +3 -3
  160. package/apps/core/src/domain/permission/helpers/getPermissionCacheKey.d.ts +1 -1
  161. package/apps/core/src/domain/permission/helpers/getPermissionCachePatternKey.d.ts +1 -1
  162. package/apps/core/src/domain/permission/helpers/globalPermission.d.ts +2 -2
  163. package/apps/core/src/domain/permission/helpers/permissionByUserGroups.d.ts +1 -1
  164. package/apps/core/src/domain/permission/helpers/permissionsByActions.d.ts +1 -1
  165. package/apps/core/src/domain/permission/helpers/treeBasedPermissions.d.ts +4 -4
  166. package/apps/core/src/domain/permission/permissionDomain.d.ts +4 -4
  167. package/apps/core/src/domain/permission/recordAttributePermissionDomain.d.ts +2 -2
  168. package/apps/core/src/domain/permission/recordPermissionDomain.d.ts +3 -3
  169. package/apps/core/src/domain/permission/treeNodePermissionDomain.d.ts +4 -4
  170. package/apps/core/src/domain/plugins/pluginsDomain.d.ts +3 -3
  171. package/apps/core/src/domain/record/_types.d.ts +4 -4
  172. package/apps/core/src/domain/record/helpers/createRecord.d.ts +6 -4
  173. package/apps/core/src/domain/record/helpers/deleteRecord.d.ts +9 -9
  174. package/apps/core/src/domain/record/helpers/findRecords.d.ts +2 -2
  175. package/apps/core/src/domain/record/helpers/getAccessPermissionFilters.d.ts +7 -7
  176. package/apps/core/src/domain/record/helpers/getAttributesFromField.d.ts +4 -4
  177. package/apps/core/src/domain/record/helpers/getRecordIdentity.d.ts +27 -0
  178. package/apps/core/src/domain/record/helpers/index.d.ts +1 -1
  179. package/apps/core/src/domain/record/helpers/sendRecordUpdateEvent.d.ts +3 -3
  180. package/apps/core/src/domain/record/recordDomain.d.ts +10 -18
  181. package/apps/core/src/domain/tasksManager/cronTasksManagerDomain.d.ts +13 -0
  182. package/apps/core/src/domain/tasksManager/index.d.ts +1 -0
  183. package/apps/core/src/domain/tasksManager/tasksManagerDomain.d.ts +7 -7
  184. package/apps/core/src/domain/tree/helpers/elementAncestors.d.ts +2 -2
  185. package/apps/core/src/domain/tree/helpers/getDefaultElement.d.ts +3 -3
  186. package/apps/core/src/domain/tree/helpers/handleRemovedLibraries.d.ts +3 -3
  187. package/apps/core/src/domain/tree/helpers/treeDataValidation.d.ts +3 -3
  188. package/apps/core/src/domain/tree/treeDomain.d.ts +10 -10
  189. package/apps/core/src/domain/user/userDomain.d.ts +10 -10
  190. package/apps/core/src/domain/value/_types.d.ts +5 -5
  191. package/apps/core/src/domain/value/helpers/areValuesIdentical.d.ts +1 -1
  192. package/apps/core/src/domain/value/helpers/canSaveRecordValue.d.ts +6 -6
  193. package/apps/core/src/domain/value/helpers/doesValueExist.d.ts +1 -1
  194. package/apps/core/src/domain/value/helpers/findValue.d.ts +1 -1
  195. package/apps/core/src/domain/value/helpers/formatLogValue.d.ts +6 -6
  196. package/apps/core/src/domain/value/helpers/formatValue.d.ts +17 -0
  197. package/apps/core/src/domain/value/helpers/getRecordFieldValue.d.ts +27 -0
  198. package/apps/core/src/domain/value/helpers/getValues.d.ts +26 -0
  199. package/apps/core/src/domain/value/helpers/index.d.ts +7 -0
  200. package/apps/core/src/domain/value/helpers/isEmptyValue.d.ts +1 -1
  201. package/apps/core/src/domain/value/helpers/manageEventMetadata.d.ts +4 -0
  202. package/apps/core/src/domain/value/helpers/postDeleteValue.d.ts +6 -6
  203. package/apps/core/src/domain/value/helpers/postSaveValue.d.ts +6 -6
  204. package/apps/core/src/domain/value/helpers/prepareValue.d.ts +6 -6
  205. package/apps/core/src/domain/value/helpers/runActionsList.d.ts +10 -0
  206. package/apps/core/src/domain/value/helpers/saveOneValue.d.ts +8 -8
  207. package/apps/core/src/domain/value/helpers/validateValue.d.ts +4 -4
  208. package/apps/core/src/domain/value/tasks/purgeMultipleValues.d.ts +1 -1
  209. package/apps/core/src/domain/value/tasks/saveValueBulk.d.ts +10 -7
  210. package/apps/core/src/domain/value/valueDomain.d.ts +29 -17
  211. package/apps/core/src/domain/versionProfile/versionProfileDomain.d.ts +10 -10
  212. package/apps/core/src/domain/view/viewDomain.d.ts +7 -7
  213. package/apps/core/src/domain/viewV2/index.d.ts +1 -0
  214. package/apps/core/src/domain/viewV2/viewV2Domain.d.ts +21 -0
  215. package/apps/core/src/i18nextInit.d.ts +1 -1
  216. package/apps/core/src/infra/apiKey/apiKeyRepo.d.ts +5 -5
  217. package/apps/core/src/infra/application/applicationRepo.d.ts +3 -3
  218. package/apps/core/src/infra/attribute/attributeRepo.d.ts +4 -4
  219. package/apps/core/src/infra/attributeTypes/attributeAdvancedLinkRepo.d.ts +2 -2
  220. package/apps/core/src/infra/attributeTypes/attributeAdvancedRepo.d.ts +2 -2
  221. package/apps/core/src/infra/attributeTypes/attributeSimpleLinkRepo.d.ts +2 -2
  222. package/apps/core/src/infra/attributeTypes/attributeSimpleRepo.d.ts +1 -1
  223. package/apps/core/src/infra/attributeTypes/attributeTreeRepo.d.ts +2 -2
  224. package/apps/core/src/infra/attributeTypes/attributeTypesRepo.d.ts +1 -1
  225. package/apps/core/src/infra/automation/automationRuleRepo.d.ts +32 -0
  226. package/apps/core/src/infra/automation/index.d.ts +1 -0
  227. package/apps/core/src/infra/cache/cacheService.d.ts +2 -2
  228. package/apps/core/src/infra/cache/diskService.d.ts +1 -1
  229. package/apps/core/src/infra/cache/redis.d.ts +1 -1
  230. package/apps/core/src/infra/db/_types.d.ts +1 -1
  231. package/apps/core/src/infra/db/db.d.ts +1 -1
  232. package/apps/core/src/infra/db/dbService.d.ts +2 -2
  233. package/apps/core/src/infra/db/dbUtils.d.ts +10 -6
  234. package/apps/core/src/infra/db/helpers/runMigrationFiles.d.ts +1 -1
  235. package/apps/core/src/infra/db/migrations/000-init/index.d.ts +3 -3
  236. package/apps/core/src/infra/db/migrations/000-init/systemAttributes.d.ts +1 -1
  237. package/apps/core/src/infra/db/migrations/001-delInstallApps.d.ts +1 -1
  238. package/apps/core/src/infra/db/migrations/002-previewsSettings.d.ts +4 -4
  239. package/apps/core/src/infra/db/migrations/003-filesMetadata.d.ts +3 -3
  240. package/apps/core/src/infra/db/migrations/004-formsLabels.d.ts +2 -2
  241. package/apps/core/src/infra/db/migrations/005-viewSortToArray.d.ts +1 -1
  242. package/apps/core/src/infra/db/migrations/007-updateHexColor.d.ts +1 -1
  243. package/apps/core/src/infra/db/migrations/010-formSidePanel.d.ts +2 -2
  244. package/apps/core/src/infra/db/migrations/013-passwordAttributeMaskValue.d.ts +1 -1
  245. package/apps/core/src/infra/db/migrations/014-notificationsCollection.d.ts +1 -1
  246. package/apps/core/src/infra/db/migrations/019-automationRuleCollection.d.ts +7 -0
  247. package/apps/core/src/infra/db/migrations/020-addViewsV2Collection.d.ts +7 -0
  248. package/apps/core/src/infra/elasticsearch/elasticsearchClient.d.ts +1 -1
  249. package/apps/core/src/infra/elasticsearch/elasticsearchService.d.ts +1 -1
  250. package/apps/core/src/infra/filesManager/filesManagerRepo.d.ts +4 -4
  251. package/apps/core/src/infra/form/formRepo.d.ts +6 -6
  252. package/apps/core/src/infra/globalSettings/globalSettingsRepo.d.ts +3 -3
  253. package/apps/core/src/infra/indexation/helpers/getSearchQuery.d.ts +1 -1
  254. package/apps/core/src/infra/indexation/indexationService.d.ts +3 -3
  255. package/apps/core/src/infra/library/libraryRepo.d.ts +2 -2
  256. package/apps/core/src/infra/log/logRepo.d.ts +4 -4
  257. package/apps/core/src/infra/mailer/mailer.d.ts +1 -1
  258. package/apps/core/src/infra/mailer/mailerService.d.ts +3 -3
  259. package/apps/core/src/infra/notification/notificationRepo.d.ts +3 -3
  260. package/apps/core/src/infra/permission/permissionRepo.d.ts +1 -1
  261. package/apps/core/src/infra/plugins/pluginsRepo.d.ts +1 -1
  262. package/apps/core/src/infra/record/helpers/getClassifyingFiltersVariableQueryPart.d.ts +2 -2
  263. package/apps/core/src/infra/record/helpers/getSearchVariablesQueryPart.d.ts +1 -1
  264. package/apps/core/src/infra/record/recordRepo.d.ts +5 -5
  265. package/apps/core/src/infra/task/taskRepo.d.ts +6 -6
  266. package/apps/core/src/infra/tree/_types.d.ts +1 -1
  267. package/apps/core/src/infra/tree/treeRepo.d.ts +5 -5
  268. package/apps/core/src/infra/userData/userDataRepo.d.ts +2 -2
  269. package/apps/core/src/infra/value/valueRepo.d.ts +5 -5
  270. package/apps/core/src/infra/versionProfile/versionProfileRepo.d.ts +6 -6
  271. package/apps/core/src/infra/view/_types.d.ts +5 -5
  272. package/apps/core/src/infra/viewV2/index.d.ts +1 -0
  273. package/apps/core/src/infra/viewV2/viewV2Repo.d.ts +40 -0
  274. package/apps/core/src/interface/cli.d.ts +9 -4
  275. package/apps/core/src/interface/filesManager.d.ts +1 -1
  276. package/apps/core/src/interface/helpers/handleGraphqlError.d.ts +3 -3
  277. package/apps/core/src/interface/indexationManager.d.ts +1 -1
  278. package/apps/core/src/interface/logsCollector.d.ts +1 -1
  279. package/apps/core/src/interface/server.d.ts +10 -8
  280. package/apps/core/src/interface/tasksManager.d.ts +1 -1
  281. package/apps/core/src/pluginsLoader.d.ts +1 -0
  282. package/apps/core/src/utils/configureDayjs.d.ts +1 -1
  283. package/apps/core/src/utils/dataloader.d.ts +1 -1
  284. package/apps/core/src/utils/helpers/getSystemQueryContext.d.ts +2 -2
  285. package/apps/core/src/utils/helpers/getValuesToDisplay.d.ts +1 -1
  286. package/apps/core/src/utils/logger/logger.d.ts +1 -1
  287. package/apps/core/src/utils/utils.d.ts +3 -3
  288. package/apps/core/tsconfig.types.tsbuildinfo +1 -1
  289. package/apps/core/vitest.e2e-api.config.d.ts +2 -0
  290. package/apps/core/vitest.e2e-fileManager.config.d.ts +2 -0
  291. package/apps/core/vitest.e2e-indexationManager.config.d.ts +2 -0
  292. package/apps/core/vitest.integration.config.d.ts +2 -0
  293. package/apps/core/vitest.unit.config.d.ts +2 -0
  294. package/libs/utils/src/types/events.d.ts +6 -0
  295. package/libs/utils/src/types/helpers.d.ts +0 -3
  296. package/libs/utils/src/utils.d.ts +3 -1
  297. package/package.json +3 -5
  298. package/apps/core/scripts/build.d.ts +0 -2
  299. package/apps/core/scripts/utils.d.ts +0 -3
  300. package/apps/core/src/__tests__/e2e/_gqlTypes/index.d.ts +0 -1225
  301. package/apps/core/src/__tests__/e2e/api/_fixtures/applications/login/index-hashed.d.ts +0 -0
  302. package/apps/core/src/__tests__/e2e/api/_fixtures/fakeplugin/_types/_types.d.ts +0 -3
  303. package/apps/core/src/__tests__/e2e/api/_fixtures/fakeplugin/domain/fakeDomain.d.ts +0 -13
  304. package/apps/core/src/__tests__/e2e/api/_fixtures/fakeplugin/domain/index.d.ts +0 -1
  305. package/apps/core/src/__tests__/e2e/api/_fixtures/fakeplugin/index.d.ts +0 -21
  306. package/apps/core/src/__tests__/e2e/api/actionLists/actionLists.test.d.ts +0 -1
  307. package/apps/core/src/__tests__/e2e/api/actionLists/actions/inheritanceCalculationAction.test.d.ts +0 -1
  308. package/apps/core/src/__tests__/e2e/api/actionLists/actions/replaceAnotherAttributeAction.test.d.ts +0 -1
  309. package/apps/core/src/__tests__/e2e/api/apiKey/apiKey.test.d.ts +0 -1
  310. package/apps/core/src/__tests__/e2e/api/applications/applications.test.d.ts +0 -1
  311. package/apps/core/src/__tests__/e2e/api/attributes/attributes.test.d.ts +0 -1
  312. package/apps/core/src/__tests__/e2e/api/auth/auth.test.d.ts +0 -1
  313. package/apps/core/src/__tests__/e2e/api/constants.d.ts +0 -2
  314. package/apps/core/src/__tests__/e2e/api/discussions/discussions.test.d.ts +0 -1
  315. package/apps/core/src/__tests__/e2e/api/e2eUtils.d.ts +0 -150
  316. package/apps/core/src/__tests__/e2e/api/export/export.test.d.ts +0 -1
  317. package/apps/core/src/__tests__/e2e/api/export/exportNestedAttributes.test.d.ts +0 -1
  318. package/apps/core/src/__tests__/e2e/api/files/files.test.d.ts +0 -1
  319. package/apps/core/src/__tests__/e2e/api/forms/forms.test.d.ts +0 -1
  320. package/apps/core/src/__tests__/e2e/api/getConditionPart/getConditionPart.test.d.ts +0 -1
  321. package/apps/core/src/__tests__/e2e/api/globalSettings/globalSettings.test.d.ts +0 -1
  322. package/apps/core/src/__tests__/e2e/api/globalSetup.d.ts +0 -8
  323. package/apps/core/src/__tests__/e2e/api/globalSetupHook.d.ts +0 -1
  324. package/apps/core/src/__tests__/e2e/api/graphql/graphql.test.d.ts +0 -1
  325. package/apps/core/src/__tests__/e2e/api/import/import.test.d.ts +0 -1
  326. package/apps/core/src/__tests__/e2e/api/joinLibraries/joinLibraries.test.d.ts +0 -1
  327. package/apps/core/src/__tests__/e2e/api/joinLibraries/nestedJoinLibraries.test.d.ts +0 -1
  328. package/apps/core/src/__tests__/e2e/api/libraries/libraries.test.d.ts +0 -1
  329. package/apps/core/src/__tests__/e2e/api/mailpitUtils.d.ts +0 -37
  330. package/apps/core/src/__tests__/e2e/api/notificationUtils.d.ts +0 -7
  331. package/apps/core/src/__tests__/e2e/api/notifications/notifications.test.d.ts +0 -1
  332. package/apps/core/src/__tests__/e2e/api/permissions/admin/apiKeyAdminPermissions.test.d.ts +0 -1
  333. package/apps/core/src/__tests__/e2e/api/permissions/admin/applicationsAdminPermissions.test.d.ts +0 -1
  334. package/apps/core/src/__tests__/e2e/api/permissions/admin/attributesAdminPermissions.test.d.ts +0 -1
  335. package/apps/core/src/__tests__/e2e/api/permissions/admin/formsAdminPermissions.test.d.ts +0 -1
  336. package/apps/core/src/__tests__/e2e/api/permissions/admin/globalSettingsAdminPermissions.test.d.ts +0 -1
  337. package/apps/core/src/__tests__/e2e/api/permissions/admin/librariesAdminPermissions.test.d.ts +0 -1
  338. package/apps/core/src/__tests__/e2e/api/permissions/admin/permissionsAdminPermissions.test.d.ts +0 -1
  339. package/apps/core/src/__tests__/e2e/api/permissions/admin/treesAdminPermissions.test.d.ts +0 -1
  340. package/apps/core/src/__tests__/e2e/api/permissions/admin/versionProfilesAdminPermissions.test.d.ts +0 -1
  341. package/apps/core/src/__tests__/e2e/api/permissions/applicationsPermissions.test.d.ts +0 -1
  342. package/apps/core/src/__tests__/e2e/api/permissions/attributePermissions.test.d.ts +0 -1
  343. package/apps/core/src/__tests__/e2e/api/permissions/dependentValuesTreeAttributePermissions.test.d.ts +0 -1
  344. package/apps/core/src/__tests__/e2e/api/permissions/extendedLibraryPermissions.test.d.ts +0 -1
  345. package/apps/core/src/__tests__/e2e/api/permissions/permissions.test.d.ts +0 -1
  346. package/apps/core/src/__tests__/e2e/api/permissions/recordAttributePermissions.test.d.ts +0 -1
  347. package/apps/core/src/__tests__/e2e/api/permissions/recordPermissions.test.d.ts +0 -1
  348. package/apps/core/src/__tests__/e2e/api/permissions/treeLibraryPermissions.test.d.ts +0 -1
  349. package/apps/core/src/__tests__/e2e/api/permissions/treeNodePermissions.test.d.ts +0 -1
  350. package/apps/core/src/__tests__/e2e/api/permissions/treePermissions.test.d.ts +0 -1
  351. package/apps/core/src/__tests__/e2e/api/plugins/plugins.test.d.ts +0 -1
  352. package/apps/core/src/__tests__/e2e/api/records/recordIdentity.test.d.ts +0 -1
  353. package/apps/core/src/__tests__/e2e/api/records/records.test.d.ts +0 -1
  354. package/apps/core/src/__tests__/e2e/api/records/recordsDeletion.test.d.ts +0 -1
  355. package/apps/core/src/__tests__/e2e/api/records/searchFilters.test.d.ts +0 -1
  356. package/apps/core/src/__tests__/e2e/api/task/taskSubscription.test.d.ts +0 -1
  357. package/apps/core/src/__tests__/e2e/api/task/tasksAdminPermissions.test.d.ts +0 -1
  358. package/apps/core/src/__tests__/e2e/api/taskUtils.d.ts +0 -4
  359. package/apps/core/src/__tests__/e2e/api/teardown.d.ts +0 -2
  360. package/apps/core/src/__tests__/e2e/api/trees/treeNodeChildrenAndContentQuery.test.d.ts +0 -1
  361. package/apps/core/src/__tests__/e2e/api/trees/trees.test.d.ts +0 -1
  362. package/apps/core/src/__tests__/e2e/api/userData/maskUserPassword.test.d.ts +0 -1
  363. package/apps/core/src/__tests__/e2e/api/userData/userData.test.d.ts +0 -1
  364. package/apps/core/src/__tests__/e2e/api/values/listDistinctValues.test.d.ts +0 -1
  365. package/apps/core/src/__tests__/e2e/api/values/metadata.test.d.ts +0 -1
  366. package/apps/core/src/__tests__/e2e/api/values/purgeMultipleValues.test.d.ts +0 -1
  367. package/apps/core/src/__tests__/e2e/api/values/saveValueBulk.test.d.ts +0 -1
  368. package/apps/core/src/__tests__/e2e/api/values/values.test.d.ts +0 -1
  369. package/apps/core/src/__tests__/e2e/api/values/versions.test.d.ts +0 -1
  370. package/apps/core/src/__tests__/e2e/api/versionProfile/versionProfile.test.d.ts +0 -1
  371. package/apps/core/src/__tests__/e2e/api/views/views.test.d.ts +0 -1
  372. package/apps/core/src/__tests__/e2e/filesManager/filesManager/filesManager.test.d.ts +0 -1
  373. package/apps/core/src/__tests__/e2e/filesManager/globalSetup.d.ts +0 -1
  374. package/apps/core/src/__tests__/e2e/filesManager/globalSetupHook.d.ts +0 -1
  375. package/apps/core/src/__tests__/e2e/indexationManager/globalSetup.d.ts +0 -1
  376. package/apps/core/src/__tests__/e2e/indexationManager/globalSetupHook.d.ts +0 -1
  377. package/apps/core/src/__tests__/e2e/indexationManager/indexation.test.d.ts +0 -1
  378. package/apps/core/src/__tests__/global-setup.d.ts +0 -0
  379. package/apps/core/src/__tests__/integration/domain/tasksManagerDomain.test.d.ts +0 -1
  380. package/apps/core/src/__tests__/integration/globalSetup.d.ts +0 -1
  381. package/apps/core/src/__tests__/integration/globalSetupHook.d.ts +0 -1
  382. package/apps/core/src/__tests__/integration/infra/attributeAdvancedLinkRepo.test.d.ts +0 -1
  383. package/apps/core/src/__tests__/integration/infra/attributeAdvancedRepo.test.d.ts +0 -1
  384. package/apps/core/src/__tests__/integration/infra/attributeSimpleLinkRepo.test.d.ts +0 -1
  385. package/apps/core/src/__tests__/integration/infra/attributeSimpleRepo.test.d.ts +0 -1
  386. package/apps/core/src/__tests__/integration/infra/attributeTreeRepo.test.d.ts +0 -1
  387. package/apps/core/src/__tests__/integration/infra/integrationTestRepoUtils.d.ts +0 -11
  388. package/apps/core/src/__tests__/integration/infra/notificationRepo.test.d.ts +0 -1
  389. package/apps/core/src/__tests__/integration/infra/permissionRepo.test.d.ts +0 -1
  390. package/apps/core/src/__tests__/integration/infra/ramService.test.d.ts +0 -1
  391. package/apps/core/src/__tests__/integration/infra/recordRepo.test.d.ts +0 -1
  392. package/apps/core/src/__tests__/integration/infra/treeRepo.test.d.ts +0 -1
  393. package/apps/core/src/__tests__/integration/integrationTestUtils.d.ts +0 -7
  394. package/apps/core/src/__tests__/integration/teardown.d.ts +0 -1
  395. package/apps/core/src/__tests__/jestUtils.d.ts +0 -12
  396. package/apps/core/src/__tests__/mockers/amqp.d.ts +0 -8
  397. package/apps/core/src/__tests__/mockers/logger.d.ts +0 -7
  398. package/apps/core/src/__tests__/mocks/actionsList.d.ts +0 -73
  399. package/apps/core/src/__tests__/mocks/apiKey.d.ts +0 -11
  400. package/apps/core/src/__tests__/mocks/application.d.ts +0 -3
  401. package/apps/core/src/__tests__/mocks/attribute.d.ts +0 -45
  402. package/apps/core/src/__tests__/mocks/cache.d.ts +0 -4
  403. package/apps/core/src/__tests__/mocks/file.d.ts +0 -29
  404. package/apps/core/src/__tests__/mocks/forms.d.ts +0 -4
  405. package/apps/core/src/__tests__/mocks/globalSettings.d.ts +0 -2
  406. package/apps/core/src/__tests__/mocks/graphql-upload.d.ts +0 -3
  407. package/apps/core/src/__tests__/mocks/library.d.ts +0 -4
  408. package/apps/core/src/__tests__/mocks/log.d.ts +0 -2
  409. package/apps/core/src/__tests__/mocks/plugins.d.ts +0 -2
  410. package/apps/core/src/__tests__/mocks/record.d.ts +0 -3
  411. package/apps/core/src/__tests__/mocks/shared.d.ts +0 -3
  412. package/apps/core/src/__tests__/mocks/task.d.ts +0 -2
  413. package/apps/core/src/__tests__/mocks/translator.d.ts +0 -3
  414. package/apps/core/src/__tests__/mocks/tree.d.ts +0 -3
  415. package/apps/core/src/__tests__/mocks/value.d.ts +0 -2
  416. package/apps/core/src/__tests__/mocks/versionProfile.d.ts +0 -2
  417. package/apps/core/src/__tests__/mocks/view.d.ts +0 -3
  418. package/apps/core/src/__tests__/setup.d.ts +0 -1
  419. package/apps/core/src/app/application/__tests__/applicationApp.spec.d.ts +0 -1
  420. package/apps/core/src/app/auth/__tests__/authApp.spec.d.ts +0 -1
  421. package/apps/core/src/app/core/coreApp.spec.d.ts +0 -1
  422. package/apps/core/src/app/endpoint/endpointApp.spec.d.ts +0 -1
  423. package/apps/core/src/app/graphql/customScalars/any/any.spec.d.ts +0 -1
  424. package/apps/core/src/app/graphql/customScalars/dateTime/dateTime.spec.d.ts +0 -1
  425. package/apps/core/src/app/graphql/customScalars/systemTranslation/systemTranslation.spec.d.ts +0 -1
  426. package/apps/core/src/app/graphql/graphqlApp.spec.d.ts +0 -1
  427. package/apps/core/src/app/helpers/convertOIDCIdentifier.spec.d.ts +0 -1
  428. package/apps/core/src/app/helpers/convertVersionFromGqlFormat.spec.d.ts +0 -1
  429. package/apps/core/src/app/helpers/validateRequestToken.spec.d.ts +0 -1
  430. package/apps/core/src/domain/actions/dateRangeToNumberAction.spec.d.ts +0 -1
  431. package/apps/core/src/domain/actions/encryptAction.spec.d.ts +0 -1
  432. package/apps/core/src/domain/actions/excelCalculationAction.spec.d.ts +0 -1
  433. package/apps/core/src/domain/actions/formatDateAction.spec.d.ts +0 -1
  434. package/apps/core/src/domain/actions/formatDateRangeAction.spec.d.ts +0 -1
  435. package/apps/core/src/domain/actions/formatNumberAction.spec.d.ts +0 -1
  436. package/apps/core/src/domain/actions/inheritanceCalculationAction.spec.d.ts +0 -1
  437. package/apps/core/src/domain/actions/maskValueAction.spec.d.ts +0 -1
  438. package/apps/core/src/domain/actions/parseJSONAction.spec.d.ts +0 -1
  439. package/apps/core/src/domain/actions/toBooleanAction.spec.d.ts +0 -1
  440. package/apps/core/src/domain/actions/toJSONAction.spec.d.ts +0 -1
  441. package/apps/core/src/domain/actions/toLowercaseAction.spec.d.ts +0 -1
  442. package/apps/core/src/domain/actions/toNumberAction.spec.d.ts +0 -1
  443. package/apps/core/src/domain/actions/toStringAction.spec.d.ts +0 -1
  444. package/apps/core/src/domain/actions/toUppercaseAction.spec.d.ts +0 -1
  445. package/apps/core/src/domain/actions/validateEmailAction.spec.d.ts +0 -1
  446. package/apps/core/src/domain/actions/validateFormatAction.spec.d.ts +0 -1
  447. package/apps/core/src/domain/actions/validateRegexAction.spec.d.ts +0 -1
  448. package/apps/core/src/domain/actions/validateURLAction.spec.d.ts +0 -1
  449. package/apps/core/src/domain/actionsList/actionsListDomain.spec.d.ts +0 -1
  450. package/apps/core/src/domain/apiKey/apiKeyDomain.spec.d.ts +0 -1
  451. package/apps/core/src/domain/application/applicationDomain.spec.d.ts +0 -1
  452. package/apps/core/src/domain/attribute/attributeDomain.spec.d.ts +0 -1
  453. package/apps/core/src/domain/attribute/helpers/ifLibraryJoinLinkAttribute.spec.d.ts +0 -1
  454. package/apps/core/src/domain/core/coreDomain.spec.d.ts +0 -1
  455. package/apps/core/src/domain/eventsManager/eventsManagerDomain.spec.d.ts +0 -1
  456. package/apps/core/src/domain/export/exportDomain.spec.d.ts +0 -1
  457. package/apps/core/src/domain/export/exportProfileDomain.spec.d.ts +0 -1
  458. package/apps/core/src/domain/filesManager/filesManagerDomain.spec.d.ts +0 -1
  459. package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleFileSystemEvent.spec.d.ts +0 -1
  460. package/apps/core/src/domain/filesManager/helpers/messagesHandler/messagesHandler.spec.d.ts +0 -1
  461. package/apps/core/src/domain/form/formDomain.spec.d.ts +0 -1
  462. package/apps/core/src/domain/globalSettings/globalSettingsDomain.spec.d.ts +0 -1
  463. package/apps/core/src/domain/helpers/calculations/calculationVariable.spec.d.ts +0 -1
  464. package/apps/core/src/domain/helpers/calculations/calculationsVariableFunctions.spec.d.ts +0 -1
  465. package/apps/core/src/domain/import/importDomain.spec.d.ts +0 -1
  466. package/apps/core/src/domain/indexationManager/indexationManagerDomain.spec.d.ts +0 -1
  467. package/apps/core/src/domain/library/helpers/runPreDelete.spec.d.ts +0 -1
  468. package/apps/core/src/domain/library/libraryDomain.spec.d.ts +0 -1
  469. package/apps/core/src/domain/log/logDomain.spec.d.ts +0 -1
  470. package/apps/core/src/domain/permission/adminPermissionDomain.spec.d.ts +0 -1
  471. package/apps/core/src/domain/permission/applicationPermissionDomain.spec.d.ts +0 -1
  472. package/apps/core/src/domain/permission/attributePermissionDomain.spec.d.ts +0 -1
  473. package/apps/core/src/domain/permission/helpers/defaultPermission.spec.d.ts +0 -1
  474. package/apps/core/src/domain/permission/helpers/getPermissionCacheKey.spec.d.ts +0 -1
  475. package/apps/core/src/domain/permission/helpers/getPermissionCachePatternKey.spec.d.ts +0 -1
  476. package/apps/core/src/domain/permission/helpers/globalPermission.spec.d.ts +0 -1
  477. package/apps/core/src/domain/permission/helpers/permissionByUserGroups.spec.d.ts +0 -1
  478. package/apps/core/src/domain/permission/helpers/permissionsByActions.spec.d.ts +0 -1
  479. package/apps/core/src/domain/permission/helpers/reducePermissionsArray.spec.d.ts +0 -1
  480. package/apps/core/src/domain/permission/helpers/simplePermission.spec.d.ts +0 -1
  481. package/apps/core/src/domain/permission/helpers/treeBasedPermissions.spec.d.ts +0 -1
  482. package/apps/core/src/domain/permission/libraryPermissionDomain.spec.d.ts +0 -1
  483. package/apps/core/src/domain/permission/permissionDomain.spec.d.ts +0 -1
  484. package/apps/core/src/domain/permission/recordAttributePermissionDomain.spec.d.ts +0 -1
  485. package/apps/core/src/domain/permission/recordPermissionDomain.spec.d.ts +0 -1
  486. package/apps/core/src/domain/permission/treeLibraryPermissionDomain.spec.d.ts +0 -1
  487. package/apps/core/src/domain/permission/treeNodePermissionDomain.spec.d.ts +0 -1
  488. package/apps/core/src/domain/permission/treePermissionDomain.spec.d.ts +0 -1
  489. package/apps/core/src/domain/plugins/pluginsDomain.spec.d.ts +0 -1
  490. package/apps/core/src/domain/record/helpers/findRecords.spec.d.ts +0 -1
  491. package/apps/core/src/domain/record/helpers/getRecordFieldValue.spec.d.ts +0 -0
  492. package/apps/core/src/domain/record/recordDomain.spec.d.ts +0 -1
  493. package/apps/core/src/domain/tasksManager/tasksManagerDomain.spec.d.ts +0 -1
  494. package/apps/core/src/domain/tree/helpers/getDefaultElement.spec.d.ts +0 -1
  495. package/apps/core/src/domain/tree/helpers/handleRemovedLibraries.spec.d.ts +0 -1
  496. package/apps/core/src/domain/tree/helpers/treeDataValidation.spec.d.ts +0 -1
  497. package/apps/core/src/domain/tree/treeDomain.spec.d.ts +0 -1
  498. package/apps/core/src/domain/user/userDomain.spec.d.ts +0 -1
  499. package/apps/core/src/domain/value/helpers/areValuesIdentical.spec.d.ts +0 -1
  500. package/apps/core/src/domain/value/helpers/formatLogValue.spec.d.ts +0 -1
  501. package/apps/core/src/domain/value/valueDomain.spec.d.ts +0 -1
  502. package/apps/core/src/domain/versionProfile/versionProfileDomain.spec.d.ts +0 -1
  503. package/apps/core/src/domain/view/viewDomain.spec.d.ts +0 -1
  504. package/apps/core/src/infra/apiKey/apiKeyRepo.spec.d.ts +0 -1
  505. package/apps/core/src/infra/application/applicationRepo.spec.d.ts +0 -1
  506. package/apps/core/src/infra/attribute/attributeRepo.spec.d.ts +0 -1
  507. package/apps/core/src/infra/attributeTypes/attributeAdvancedLinkRepo.spec.d.ts +0 -1
  508. package/apps/core/src/infra/attributeTypes/attributeAdvancedRepo.spec.d.ts +0 -1
  509. package/apps/core/src/infra/attributeTypes/attributeSimpleLinkRepo.spec.d.ts +0 -1
  510. package/apps/core/src/infra/attributeTypes/attributeSimpleRepo.spec.d.ts +0 -1
  511. package/apps/core/src/infra/attributeTypes/attributeTreeRepo.spec.d.ts +0 -1
  512. package/apps/core/src/infra/attributeTypes/attributeTypesRepo.spec.d.ts +0 -1
  513. package/apps/core/src/infra/db/dbService.spec.d.ts +0 -1
  514. package/apps/core/src/infra/db/dbUtils.spec.d.ts +0 -1
  515. package/apps/core/src/infra/filesManager/filesManagerRepo.spec.d.ts +0 -1
  516. package/apps/core/src/infra/form/formRepo.spec.d.ts +0 -1
  517. package/apps/core/src/infra/globalSettings/globalSettingsRepo.spec.d.ts +0 -1
  518. package/apps/core/src/infra/indexation/helpers/getSearchQuery.spec.d.ts +0 -1
  519. package/apps/core/src/infra/library/libraryRepo.spec.d.ts +0 -1
  520. package/apps/core/src/infra/log/logRepo.spec.d.ts +0 -1
  521. package/apps/core/src/infra/oidc/__tests__/oidcClient.spec.d.ts +0 -1
  522. package/apps/core/src/infra/oidc/__tests__/oidcClientService.spec.d.ts +0 -1
  523. package/apps/core/src/infra/permission/permissionRepo.spec.d.ts +0 -1
  524. package/apps/core/src/infra/plugins/pluginsRepo.spec.d.ts +0 -1
  525. package/apps/core/src/infra/record/helpers/filterTypes.spec.d.ts +0 -1
  526. package/apps/core/src/infra/record/helpers/getClassifyingFiltersVariableQueryPart.spec.d.ts +0 -1
  527. package/apps/core/src/infra/record/helpers/getSearchVariableName.spec.d.ts +0 -1
  528. package/apps/core/src/infra/record/helpers/getSearchVariablesQueryPart.spec.d.ts +0 -1
  529. package/apps/core/src/infra/record/recordRepo.spec.d.ts +0 -1
  530. package/apps/core/src/infra/task/taskRepo.spec.d.ts +0 -1
  531. package/apps/core/src/infra/tree/treeRepo.spec.d.ts +0 -1
  532. package/apps/core/src/infra/userData/userDataRepo.spec.d.ts +0 -1
  533. package/apps/core/src/infra/value/valueRepo.spec.d.ts +0 -1
  534. package/apps/core/src/infra/versionProfile/versionProfileRepo.spec.d.ts +0 -1
  535. package/apps/core/src/infra/view/viewRepo.spec.d.ts +0 -1
  536. package/apps/core/src/interface/helpers/handleGraphqlError.spec.d.ts +0 -1
  537. package/apps/core/src/utils/dataloader.spec.d.ts +0 -1
  538. package/apps/core/src/utils/helpers/getValuesToDisplay.spec.d.ts +0 -1
  539. package/apps/core/src/utils/typeGuards/typeGuards.spec.d.ts +0 -1
  540. package/apps/core/src/utils/utils.spec.d.ts +0 -1
  541. /package/apps/core/{scripts/preload.d.ts → src/pluginsModuleResolver.d.ts} +0 -0
@@ -1,6 +1,7 @@
1
1
  export { default as dateRangeToNumberAction } from './dateRangeToNumberAction';
2
2
  export { default as encryptAction } from './encryptAction';
3
3
  export { default as excelAction } from './excelCalculationAction';
4
+ export { default as jexlCalculationAction } from './jexlCalculationAction';
4
5
  export { default as formatDateAction } from './formatDateAction';
5
6
  export { default as formatDateRangeAction } from './formatDateRangeAction';
6
7
  export { default as formatNumberAction } from './formatNumberAction';
@@ -1,5 +1,5 @@
1
- import { type IAttributeDomain } from 'domain/attribute/attributeDomain';
2
- import { type ICalculationVariable } from 'domain/helpers/calculations/calculationVariable';
1
+ import { type IAttributeDomain } from '../attribute/attributeDomain';
2
+ import { type ICalculationVariable } from '../helpers/calculations/calculationVariable';
3
3
  import { type IActionsListFunction } from '../../_types/actionsList';
4
4
  interface IDeps {
5
5
  'core.domain.helpers.calculationVariable'?: ICalculationVariable;
@@ -0,0 +1,14 @@
1
+ import { type IJexlDomain } from '../jexl/jexlDomain';
2
+ import { type IActionsListFunction } from '../../_types/actionsList';
3
+ import { type IConfig } from '../../_types/config';
4
+ interface IDeps {
5
+ 'core.domain.jexl': IJexlDomain;
6
+ config: IConfig;
7
+ }
8
+ type ActionParams = {
9
+ Formula: true;
10
+ Description: true;
11
+ ['Return only calculated value']: false;
12
+ };
13
+ export default function ({ 'core.domain.jexl': jexlDomain, config }: IDeps): IActionsListFunction<ActionParams>;
14
+ export {};
@@ -1,7 +1,7 @@
1
- import { type IAttributeDomain } from 'domain/attribute/attributeDomain';
2
- import { type IValueDomain } from 'domain/value/valueDomain';
1
+ import { type IAttributeDomain } from '../attribute/attributeDomain';
2
+ import { type IValueDomain } from '../value/valueDomain';
3
3
  import { type IActionsListFunction } from '../../_types/actionsList';
4
- import { type IUtils } from 'utils/utils';
4
+ import { type IUtils } from '../../utils/utils';
5
5
  interface IDeps {
6
6
  'core.domain.value'?: IValueDomain;
7
7
  'core.domain.attribute'?: IAttributeDomain;
@@ -1,10 +1,10 @@
1
- import { type IEventsManagerDomain } from 'domain/eventsManager/eventsManagerDomain';
2
- import { type IAdminPermissionDomain } from 'domain/permission/adminPermissionDomain';
1
+ import { type IEventsManagerDomain } from '../eventsManager/eventsManagerDomain';
2
+ import { type IAdminPermissionDomain } from '../permission/adminPermissionDomain';
3
3
  import { type i18n } from 'i18next';
4
- import { type IApiKeyRepo } from 'infra/apiKey/apiKeyRepo';
5
- import { type IUtils } from 'utils/utils';
6
- import { type IApiKey, type IGetCoreApiKeysParams } from '_types/apiKey';
7
- import { type IQueryInfos } from '_types/queryInfos';
4
+ import { type IApiKeyRepo } from '../../infra/apiKey/apiKeyRepo';
5
+ import { type IUtils } from '../../utils/utils';
6
+ import { type IApiKey, type IGetCoreApiKeysParams } from '../../_types/apiKey';
7
+ import { type IQueryInfos } from '../../_types/queryInfos';
8
8
  import { type IList } from '../../_types/list';
9
9
  import { type IConfig } from '../../_types/config';
10
10
  export interface IApiKeyDomain {
@@ -1,11 +1,11 @@
1
- import { type IEventsManagerDomain } from 'domain/eventsManager/eventsManagerDomain';
2
- import { type IAdminPermissionDomain } from 'domain/permission/adminPermissionDomain';
3
- import { type IUserDomain } from 'domain/user/userDomain';
1
+ import { type IEventsManagerDomain } from '../eventsManager/eventsManagerDomain';
2
+ import { type IAdminPermissionDomain } from '../permission/adminPermissionDomain';
3
+ import { type IUserDomain } from '../user/userDomain';
4
4
  import { type i18n } from 'i18next';
5
- import { type IApplicationRepo } from 'infra/application/applicationRepo';
6
- import { type IUtils } from 'utils/utils';
7
- import { type IConfig } from '_types/config';
8
- import { type IQueryInfos } from '_types/queryInfos';
5
+ import { type IApplicationRepo } from '../../infra/application/applicationRepo';
6
+ import { type IUtils } from '../../utils/utils';
7
+ import { type IConfig } from '../../_types/config';
8
+ import { type IQueryInfos } from '../../_types/queryInfos';
9
9
  import { type IApplication, type IApplicationModule, type IGetCoreApplicationsParams } from '../../_types/application';
10
10
  import { type IList } from '../../_types/list';
11
11
  import { type IAppStudioDomain } from './appStudioDomain';
@@ -1,6 +1,6 @@
1
- import { type IApplication } from '_types/application';
1
+ import { type IApplication } from '../../../_types/application';
2
2
  import { type i18n } from 'i18next';
3
- import { type IConfig } from '_types/config';
3
+ import { type IConfig } from '../../../_types/config';
4
4
  export interface IGetLibrarySystemPanelsHelperDeps {
5
5
  translator: i18n;
6
6
  config: IConfig;
@@ -1,19 +1,19 @@
1
- import { type IEventsManagerDomain } from 'domain/eventsManager/eventsManagerDomain';
2
- import { type GetCoreEntityByIdFunc } from 'domain/helpers/getCoreEntityById';
3
- import { type IAdminPermissionDomain } from 'domain/permission/adminPermissionDomain';
4
- import { type IVersionProfileDomain } from 'domain/versionProfile/versionProfileDomain';
5
- import { type IAttributeRepo } from 'infra/attribute/attributeRepo';
6
- import { type IFormRepo } from 'infra/form/formRepo';
7
- import { type ILibraryRepo } from 'infra/library/libraryRepo';
8
- import { type ITreeRepo } from 'infra/tree/treeRepo';
9
- import { type IUtils } from 'utils/utils';
10
- import { type ILibrary } from '_types/library';
11
- import { type IQueryInfos } from '_types/queryInfos';
1
+ import { type IEventsManagerDomain } from '../eventsManager/eventsManagerDomain';
2
+ import { type GetCoreEntityByIdFunc } from '../helpers/getCoreEntityById';
3
+ import { type IAdminPermissionDomain } from '../permission/adminPermissionDomain';
4
+ import { type IVersionProfileDomain } from '../versionProfile/versionProfileDomain';
5
+ import { type IAttributeRepo } from '../../infra/attribute/attributeRepo';
6
+ import { type IFormRepo } from '../../infra/form/formRepo';
7
+ import { type ILibraryRepo } from '../../infra/library/libraryRepo';
8
+ import { type ITreeRepo } from '../../infra/tree/treeRepo';
9
+ import { type IUtils } from '../../utils/utils';
10
+ import { type ILibrary } from '../../_types/library';
11
+ import { type IQueryInfos } from '../../_types/queryInfos';
12
12
  import { type ICachesService } from '../../infra/cache/cacheService';
13
13
  import { type IAttribute, type IGetCoreAttributesParams, type IGetCoreFormAttributesParams, type IOAllowedTypes } from '../../_types/attribute';
14
14
  import { type IList } from '../../_types/list';
15
15
  import { type IActionsListDomain } from '../actionsList/actionsListDomain';
16
- import { type IValidateHelper } from 'domain/helpers/validate';
16
+ import { type IValidateHelper } from '../helpers/validate';
17
17
  export interface IAttributeDomain {
18
18
  getAttributeProperties({ id, ctx }: {
19
19
  id: string;
@@ -1,4 +1,4 @@
1
- import { type IUtils } from 'utils/utils';
1
+ import { type IUtils } from '../../../utils/utils';
2
2
  import { type ActionsListConfig } from '../../../_types/actionsList';
3
3
  import { type IAttribute, type IOAllowedTypes } from '../../../_types/attribute';
4
4
  declare const getAllowedInputTypes: (attribute: IAttribute) => IOAllowedTypes;
@@ -1,9 +1,9 @@
1
- import { type IActionsListDomain } from 'domain/actionsList/actionsListDomain';
2
- import { type IVersionProfileDomain } from 'domain/versionProfile/versionProfileDomain';
3
- import { type IAttributeRepo } from 'infra/attribute/attributeRepo';
4
- import { type ITreeRepo } from 'infra/tree/treeRepo';
5
- import { type IUtils } from 'utils/utils';
6
- import { type IQueryInfos } from '_types/queryInfos';
1
+ import { type IActionsListDomain } from '../../actionsList/actionsListDomain';
2
+ import { type IVersionProfileDomain } from '../../versionProfile/versionProfileDomain';
3
+ import { type IAttributeRepo } from '../../../infra/attribute/attributeRepo';
4
+ import { type ITreeRepo } from '../../../infra/tree/treeRepo';
5
+ import { type IUtils } from '../../../utils/utils';
6
+ import { type IQueryInfos } from '../../../_types/queryInfos';
7
7
  import { type IAttribute } from '../../../_types/attribute';
8
8
  import { type ErrorFieldDetail } from '../../../_types/errors';
9
9
  export declare const validateAttributeData: (attrData: IAttribute, deps: {
@@ -1,7 +1,7 @@
1
1
  import { type IAttribute } from '../../../_types/attribute';
2
2
  import { type IQueryInfos } from '../../../_types/queryInfos';
3
- import { type IAttributeDomain } from 'domain/attribute/attributeDomain';
4
- import { type GetCoreEntityByIdFunc } from 'domain/helpers/getCoreEntityById';
3
+ import { type IAttributeDomain } from '../attributeDomain';
4
+ import { type GetCoreEntityByIdFunc } from '../../helpers/getCoreEntityById';
5
5
  export type IfLibraryJoinLinkAttributeCallback<R> = (joinLibId: string, joinAttributeProps: IAttribute) => Promise<R>;
6
6
  export type IfLibraryJoinLinkAttribute = <R = unknown>(attributeProps: IAttribute, callback: IfLibraryJoinLinkAttributeCallback<R>, ctx: IQueryInfos) => Promise<R | void>;
7
7
  export interface IIfLibraryJoinLinkDeps {
@@ -0,0 +1,35 @@
1
+ import { type ZodObject } from 'zod';
2
+ import { type AutomationRulePipelineStep, type IAutomationPipelineExecutionState } from '../pipeline/_types';
3
+ import { type IQueryInfos } from '../../../_types/queryInfos';
4
+ import { type AutomationRuleTrigger } from '../../../_types/automation';
5
+ export declare enum AutomationRuleActions {
6
+ LOG = "log",
7
+ CONDITION = "condition",
8
+ ERROR = "error",
9
+ JEXL_CALCULATION = "jexlCalculation",
10
+ MODIFY_ATTRIBUTE = "modifyAttribute",
11
+ NOTIFICATION = "notification"
12
+ }
13
+ export type AutomationPipelineStepValidation<Params = unknown> = {
14
+ readonly step: AutomationRulePipelineStep<Params>;
15
+ readonly stepIndex: number;
16
+ readonly trigger: AutomationRuleTrigger;
17
+ readonly precedingStepsByExecOrder: AutomationRulePipelineStep[];
18
+ };
19
+ export interface IAutomationAction<Params = unknown> {
20
+ readonly type: AutomationRuleActions | string;
21
+ readonly paramsSchema: ZodObject<any>;
22
+ validateStep?: (params: AutomationPipelineStepValidation<Params>, ctx: IQueryInfos) => Promise<void>;
23
+ execute(params: Params, state: IAutomationPipelineExecutionState, ctx: IQueryInfos): Promise<IActionExecutionResult | void>;
24
+ }
25
+ export declare enum ActionExecutionResultStatus {
26
+ CONTINUE = "continue",
27
+ STOP = "stop"
28
+ }
29
+ export type IActionExecutionResult = {
30
+ status: ActionExecutionResultStatus.CONTINUE;
31
+ result?: unknown;
32
+ } | {
33
+ status: ActionExecutionResultStatus.STOP;
34
+ reason?: string;
35
+ };
@@ -0,0 +1,12 @@
1
+ import { z } from 'zod';
2
+ import { type IAutomationAction } from './_types';
3
+ import { type IJexlAutomation } from '../jexl/jexlAutomation';
4
+ declare const conditionActionParamsSchema: z.ZodObject<{
5
+ expression: z.ZodString;
6
+ }, z.core.$strip>;
7
+ export type ConditionActionParams = z.infer<typeof conditionActionParamsSchema>;
8
+ interface IConditionActionDeps {
9
+ 'core.domain.automation.jexl': IJexlAutomation;
10
+ }
11
+ export default function ({ 'core.domain.automation.jexl': jexlAutomation, }: IConditionActionDeps): IAutomationAction<ConditionActionParams>;
12
+ export {};
@@ -0,0 +1,8 @@
1
+ import { z } from 'zod';
2
+ import { type IAutomationAction } from './_types';
3
+ declare const errorActionParamsSchema: z.ZodObject<{
4
+ message: z.ZodString;
5
+ }, z.core.$strip>;
6
+ export type ErrorActionParams = z.infer<typeof errorActionParamsSchema>;
7
+ export default function (): IAutomationAction<ErrorActionParams>;
8
+ export {};
@@ -0,0 +1,6 @@
1
+ export { default as condition } from './conditionAction';
2
+ export { default as error } from './errorAction';
3
+ export { default as log } from './logAction';
4
+ export { default as jexlCalculation } from './jexlCalculationAutomationAction';
5
+ export { default as modifyAttribute } from './modifyAttributeAction';
6
+ export { default as notification } from './notificationAction';
@@ -0,0 +1,14 @@
1
+ import { z } from 'zod';
2
+ import { type IConfig } from '../../../_types/config';
3
+ import { type IAutomationAction } from './_types';
4
+ import { type IJexlAutomation } from '../jexl/jexlAutomation';
5
+ declare const jexlCalculationActionParamsSchema: z.ZodObject<{
6
+ formula: z.ZodString;
7
+ }, z.core.$strip>;
8
+ export type JexlCalculationActionParams = z.infer<typeof jexlCalculationActionParamsSchema>;
9
+ interface IDeps {
10
+ 'core.domain.automation.jexl': IJexlAutomation;
11
+ config: IConfig;
12
+ }
13
+ export default function ({ 'core.domain.automation.jexl': jexlAutomation, config, }: IDeps): IAutomationAction<JexlCalculationActionParams>;
14
+ export {};
@@ -0,0 +1,16 @@
1
+ import { z } from 'zod';
2
+ import { type IAutomationAction } from './_types';
3
+ declare const logActionParamsSchema: z.ZodObject<{
4
+ message: z.ZodString;
5
+ level: z.ZodOptional<z.ZodEnum<{
6
+ info: "info";
7
+ error: "error";
8
+ debug: "debug";
9
+ silly: "silly";
10
+ verbose: "verbose";
11
+ warn: "warn";
12
+ }>>;
13
+ }, z.core.$strip>;
14
+ export type LogActionParams = z.infer<typeof logActionParamsSchema>;
15
+ export default function (): IAutomationAction<LogActionParams>;
16
+ export {};
@@ -0,0 +1,20 @@
1
+ import { z } from 'zod';
2
+ import { type IAutomationAction } from './_types';
3
+ import { type IValueDomain } from '../../value/valueDomain';
4
+ import { type IAttributeDomain } from '../../attribute/attributeDomain';
5
+ import { type IValidateHelper } from '../../helpers/validate';
6
+ declare const modifyAttributeActionParamsSchema: z.ZodObject<{
7
+ attributePath: z.ZodString;
8
+ mode: z.ZodEnum<{
9
+ replace: "replace";
10
+ add: "add";
11
+ }>;
12
+ }, z.core.$strip>;
13
+ export type ModifyAttributeActionParams = z.infer<typeof modifyAttributeActionParamsSchema>;
14
+ interface IDeps {
15
+ 'core.domain.value': IValueDomain;
16
+ 'core.domain.attribute': IAttributeDomain;
17
+ 'core.domain.helpers.validate': IValidateHelper;
18
+ }
19
+ export default function ({ 'core.domain.value': valueDomain, 'core.domain.attribute': attributeDomain, 'core.domain.helpers.validate': validateHelper, }: IDeps): IAutomationAction<ModifyAttributeActionParams>;
20
+ export {};
@@ -0,0 +1,17 @@
1
+ import { z } from 'zod';
2
+ import { type IAutomationAction } from './_types';
3
+ import { type INotificationDomain } from '../../notification/notificationDomain';
4
+ import { type IJexlAutomation } from '../jexl/jexlAutomation';
5
+ declare const notificationActionParamsSchema: z.ZodObject<{
6
+ title: z.ZodString;
7
+ recipients: z.ZodString;
8
+ message: z.ZodString;
9
+ mail: z.ZodOptional<z.ZodBoolean>;
10
+ }, z.core.$strip>;
11
+ export type NotificationActionParams = z.infer<typeof notificationActionParamsSchema>;
12
+ interface INotificationActionDeps {
13
+ 'core.domain.automation.jexl': IJexlAutomation;
14
+ 'core.domain.notification': INotificationDomain;
15
+ }
16
+ export default function ({ 'core.domain.automation.jexl': jexlAutomation, 'core.domain.notification': notification, }: INotificationActionDeps): IAutomationAction<NotificationActionParams>;
17
+ export {};
@@ -0,0 +1,10 @@
1
+ import { type AwilixContainer } from 'awilix';
2
+ import { type IAutomationAction, type AutomationRuleActions } from './actions/_types';
3
+ export interface IAutomationActionsRegistry {
4
+ getAction(type: AutomationRuleActions | string): IAutomationAction | undefined;
5
+ listAvailableActions(): IAutomationAction[];
6
+ }
7
+ export interface IAutomationActionsRegistryDeps {
8
+ 'core.depsManager': AwilixContainer;
9
+ }
10
+ export default function ({ 'core.depsManager': depsManager, }: IAutomationActionsRegistryDeps): IAutomationActionsRegistry;
@@ -0,0 +1,74 @@
1
+ import { type ICreateAutomationRule, type IAutomationRule, type IUpdateAutomationRule, type AutomationRuleEventTopic, type AutomationRuleEventAction, type AutomationRuleJsonSchemaFormType } from '../../_types/automation';
2
+ import { type IList } from '../../_types/list';
3
+ import { type IQueryInfos } from '../../_types/queryInfos';
4
+ import { type IGetCoreEntitiesParams } from '../../_types/shared';
5
+ import { type IAutomationRuleRepo } from '../../infra/automation/automationRuleRepo';
6
+ import { type IAdminPermissionDomain } from '../permission/adminPermissionDomain';
7
+ import { type IEventsManagerDomain } from '../eventsManager/eventsManagerDomain';
8
+ import { type IConfig } from '../../_types/config';
9
+ import { type IAutomationPipelineDomain } from './pipeline/pipeline';
10
+ import { type IAutomationRulesCache } from './automationRulesCache';
11
+ import { type IAutomationTriggers } from './triggers/automationTriggers';
12
+ import { type AutomationTriggerDef } from './triggers/_types';
13
+ import { type IAutomationJsonSchemaFormDomain } from './form/automationJsonSchemaForm';
14
+ import { type IAutomationUiJsonSchemaFormDomain } from './form/automationUiJsonSchemaForm';
15
+ import { type UiSchema, type RJSFSchema } from '@rjsf/utils';
16
+ export interface IGetAutomationRulesParams extends IGetCoreEntitiesParams {
17
+ filters?: ICoreEntityFilterOptions & {
18
+ active?: boolean;
19
+ synchronous?: boolean;
20
+ eventAction?: AutomationRuleEventAction;
21
+ eventTopic?: AutomationRuleEventTopic;
22
+ };
23
+ }
24
+ interface ITriggerRulesParams {
25
+ event: {
26
+ action: AutomationRuleEventAction;
27
+ topic?: AutomationRuleEventTopic;
28
+ };
29
+ synchronous: boolean;
30
+ ctx: IQueryInfos;
31
+ }
32
+ export interface IAutomationDomain {
33
+ getAutomationRules({ params, ctx, }: {
34
+ params: IGetAutomationRulesParams;
35
+ ctx: IQueryInfos;
36
+ }): Promise<IList<IAutomationRule>>;
37
+ getAutomationRuleJsonSchemaForm({ formType, ctx, }: {
38
+ formType: AutomationRuleJsonSchemaFormType;
39
+ ctx: IQueryInfos;
40
+ }): Promise<RJSFSchema>;
41
+ getAutomationRuleUiJsonSchemaForm({ formType, ctx, }: {
42
+ formType: AutomationRuleJsonSchemaFormType;
43
+ ctx: IQueryInfos;
44
+ }): Promise<UiSchema>;
45
+ createAutomationRule({ rule, ctx }: {
46
+ rule: ICreateAutomationRule;
47
+ ctx: IQueryInfos;
48
+ }): Promise<IAutomationRule>;
49
+ updateAutomationRule({ rule, ctx }: {
50
+ rule: IUpdateAutomationRule;
51
+ ctx: IQueryInfos;
52
+ }): Promise<IAutomationRule>;
53
+ deleteAutomationRule({ ruleId, ctx }: {
54
+ ruleId: string;
55
+ ctx: IQueryInfos;
56
+ }): Promise<IAutomationRule>;
57
+ triggerRules(params: ITriggerRulesParams): Promise<void>;
58
+ listAutomationTriggersDef({ ctx }: {
59
+ ctx: IQueryInfos;
60
+ }): Promise<AutomationTriggerDef[]>;
61
+ }
62
+ export interface IAutomationDomainDeps {
63
+ 'core.domain.automation.triggers': IAutomationTriggers;
64
+ 'core.domain.automation.form': IAutomationJsonSchemaFormDomain;
65
+ 'core.domain.automation.form.uiJsonSchemaForm': IAutomationUiJsonSchemaFormDomain;
66
+ 'core.domain.permission.admin': IAdminPermissionDomain;
67
+ 'core.domain.eventsManager': IEventsManagerDomain;
68
+ 'core.domain.automation.pipeline': IAutomationPipelineDomain;
69
+ 'core.domain.automation.rulesCache': IAutomationRulesCache;
70
+ 'core.infra.automation.rule': IAutomationRuleRepo;
71
+ config: IConfig;
72
+ }
73
+ export default function ({ 'core.domain.automation.triggers': automationTriggers, 'core.domain.automation.form': automationJsonSchemaFormDomain, 'core.domain.automation.form.uiJsonSchemaForm': automationUiJsonSchemaFormDomain, 'core.domain.permission.admin': adminPermissionDomain, 'core.domain.eventsManager': eventsManagerDomain, 'core.domain.automation.pipeline': pipelineDomain, 'core.domain.automation.rulesCache': automationRulesCache, 'core.infra.automation.rule': automationRuleRepo, config, }: IAutomationDomainDeps): IAutomationDomain;
74
+ export {};
@@ -0,0 +1,66 @@
1
+ import { type AutomationRuleEventAction, type AutomationRuleEventTopic, type IAutomationRule } from '../../_types/automation';
2
+ import { type IConfig } from '../../_types/config';
3
+ import { type IQueryInfos } from '../../_types/queryInfos';
4
+ import { type IAutomationRuleRepo } from '../../infra/automation/automationRuleRepo';
5
+ import { type ICachesService } from '../../infra/cache/cacheService';
6
+ /**
7
+ * Two-tier cache for automation rules, shared across every `core` replica
8
+ * via Redis.
9
+ *
10
+ * ## Structure
11
+ *
12
+ * 1. **Index** under the key `automation:rules:index` → `AutomationRuleIndexEntry[]`
13
+ * (= `Pick<IAutomationRule, 'id' | 'trigger'>[]`). Holds the bare minimum
14
+ * needed to decide which rules match an event (action, sync, topic).
15
+ * Built on the ArangoDB side via a dedicated AQL projection
16
+ * (`automationRuleRepo.getActiveAutomationRulesForCache`) — pipelines and
17
+ * metadata never leave the Arango server.
18
+ *
19
+ * 2. **Per-rule cache** under `automation:rules:{ruleId}` → the full
20
+ * `IAutomationRule` (pipeline included). Populated **lazily**: only a rule
21
+ * that is actually matched by an event triggers the fetch + caching of its
22
+ * full payload.
23
+ *
24
+ * ## Why this split
25
+ *
26
+ * Selecting which rules to execute only depends on `trigger`; the `pipeline`
27
+ * is only required when the rule actually runs. With a naive "full-list"
28
+ * cache, every event would load all pipelines (potentially large) to execute
29
+ * 0 to a handful of them. The lightweight index bounds the selection cost to
30
+ * an `{id, trigger}` payload × number of active rules; only the pipelines of
31
+ * matching rules are fetched.
32
+ *
33
+ * ## Targeted invalidation
34
+ *
35
+ * `invalidate(ruleId)` removes only `[INDEX_RULES_CACHE_KEY,
36
+ * ruleCacheKey(ruleId)]`. Other rules keep their Redis entry intact — their
37
+ * pipelines are not reloaded until a modification targets them. Relevant
38
+ * when an admin edits a single rule among dozens (the typical case).
39
+ *
40
+ * `invalidate()` without an argument performs a full wipe via the
41
+ * `RULES_CACHE_KEYS_PATTERN` glob (useful for tests and global admin purges).
42
+ *
43
+ * ## Lazy per-rule population (not eager)
44
+ *
45
+ * On an index rebuild, per-rule caches are NOT re-written. Otherwise,
46
+ * re-writing every rule on each modification would defeat the "preserve
47
+ * other rules" guarantee. Acceptable trade-off: if a matched rule has never
48
+ * been cached, `_loadRuleById` performs an extra repo fetch — the debt is
49
+ * amortized by subsequent hits.
50
+ */
51
+ export declare const INDEX_RULES_CACHE_KEY = "automation:rules:index";
52
+ export declare const RULES_CACHE_KEYS_PATTERN = "automation:rules:*";
53
+ export declare const ruleCacheKey: (id: string) => string;
54
+ export interface IAutomationRulesCache {
55
+ getRulesToTrigger(event: {
56
+ action: AutomationRuleEventAction;
57
+ topic?: AutomationRuleEventTopic;
58
+ }, synchronous: boolean, ctx: IQueryInfos): Promise<IAutomationRule[]>;
59
+ invalidate(ruleId?: string): Promise<void>;
60
+ }
61
+ export interface IAutomationRulesCacheDeps {
62
+ 'core.infra.cache.cacheService': ICachesService;
63
+ 'core.infra.automation.rule': IAutomationRuleRepo;
64
+ config: IConfig;
65
+ }
66
+ export default function ({ 'core.infra.cache.cacheService': cachesService, 'core.infra.automation.rule': automationRuleRepo, config, }: IAutomationRulesCacheDeps): IAutomationRulesCache;
@@ -0,0 +1,7 @@
1
+ import { type AutomationRuleEventAction, type AutomationRuleEventTopic, type IAutomationRule } from '../../_types/automation';
2
+ import { type IQueryInfos } from '../../_types/queryInfos';
3
+ export declare const TRIGGER_FAKER_RULES_FOR_DEV = false;
4
+ export declare const buildFakeRulesToTrigger: (event: {
5
+ action: AutomationRuleEventAction;
6
+ topic?: AutomationRuleEventTopic;
7
+ }, synchronous: boolean, ctx: IQueryInfos) => Promise<IAutomationRule[]>;
@@ -0,0 +1,21 @@
1
+ import { AutomationRuleJsonSchemaFormType } from '../../../_types/automation';
2
+ import { type IQueryInfos } from '../../../_types/queryInfos';
3
+ import { type IAutomationTriggersRegistry } from '../triggers/automationTriggersRegistry';
4
+ import { type IAutomationActionsRegistry } from '../automationActionsRegistry';
5
+ import { type RJSFSchema } from '@rjsf/utils';
6
+ export interface IAutomationJsonSchemaFormDomain {
7
+ getAutomationRuleJsonSchemaForm({ formType, ctx, }: {
8
+ formType: AutomationRuleJsonSchemaFormType;
9
+ ctx: IQueryInfos;
10
+ }): Promise<RJSFSchema>;
11
+ }
12
+ interface IAutomationJsonSchemaFormDomainDeps {
13
+ 'core.domain.automation.triggers.registry': IAutomationTriggersRegistry;
14
+ 'core.domain.automation.actionsRegistry': IAutomationActionsRegistry;
15
+ }
16
+ export declare const extractAndLiftDefs: (jsonSchema: RJSFSchema) => {
17
+ schema: RJSFSchema;
18
+ defs: Record<string, RJSFSchema>;
19
+ };
20
+ export default function ({ 'core.domain.automation.triggers.registry': automationTriggersRegistry, 'core.domain.automation.actionsRegistry': actionsRegistry, }: IAutomationJsonSchemaFormDomainDeps): IAutomationJsonSchemaFormDomain;
21
+ export {};
@@ -0,0 +1,19 @@
1
+ import { type i18n } from 'i18next';
2
+ import { type UiSchema } from '@rjsf/utils';
3
+ import { AutomationRuleJsonSchemaFormType } from '../../../_types/automation';
4
+ import { type IQueryInfos } from '../../../_types/queryInfos';
5
+ import { type IAutomationTriggersRegistry } from '../triggers/automationTriggersRegistry';
6
+ import { type IAutomationActionsRegistry } from '../automationActionsRegistry';
7
+ export interface IAutomationUiJsonSchemaFormDomain {
8
+ getAutomationRuleUiJsonSchemaForm({ formType, ctx, }: {
9
+ formType: AutomationRuleJsonSchemaFormType;
10
+ ctx: IQueryInfos;
11
+ }): Promise<UiSchema>;
12
+ }
13
+ interface IAutomationUiJsonSchemaFormDomainDeps {
14
+ translator: i18n;
15
+ 'core.domain.automation.triggers.registry': IAutomationTriggersRegistry;
16
+ 'core.domain.automation.actionsRegistry': IAutomationActionsRegistry;
17
+ }
18
+ export default function ({ translator, 'core.domain.automation.triggers.registry': automationTriggersRegistry, 'core.domain.automation.actionsRegistry': actionsRegistry, }: IAutomationUiJsonSchemaFormDomainDeps): IAutomationUiJsonSchemaFormDomain;
19
+ export {};
@@ -0,0 +1,2 @@
1
+ export { default } from './automationJsonSchemaForm';
2
+ export { default as uiJsonSchemaForm } from './automationUiJsonSchemaForm';
@@ -0,0 +1,6 @@
1
+ export { default } from './automationDomain';
2
+ export { default as actionsRegistry } from './automationActionsRegistry';
3
+ export { default as form } from './form';
4
+ export { default as pipeline } from './pipeline';
5
+ export { default as rulesCache } from './automationRulesCache';
6
+ export { default as triggers } from './triggers';
@@ -0,0 +1 @@
1
+ export { default } from './jexlAutomation';
@@ -0,0 +1,16 @@
1
+ import { type IQueryInfos } from '../../../_types/queryInfos';
2
+ import { type IJexlDomain } from '../../jexl/jexlDomain';
3
+ import { type IAutomationPipelineExecutionState } from '../pipeline/_types';
4
+ import { type JexlRootContext, type JexlRecordContext } from '../../jexl/types';
5
+ interface IDeps {
6
+ 'core.domain.jexl': IJexlDomain;
7
+ }
8
+ type JexlAutomationContext = JexlRootContext<{
9
+ results: IAutomationPipelineExecutionState['results'];
10
+ currentRecord?: JexlRecordContext;
11
+ }>;
12
+ export interface IJexlAutomation extends Pick<IJexlDomain, 'eval' | 'validate'> {
13
+ buildAutomationContext: (executionState: IAutomationPipelineExecutionState, ctx: IQueryInfos) => JexlAutomationContext;
14
+ }
15
+ export default function ({ 'core.domain.jexl': jexlDomain }: IDeps): IJexlAutomation;
16
+ export {};
@@ -0,0 +1,37 @@
1
+ import { type AutomationRuleTrigger } from '../../../_types/automation';
2
+ import { type AutomationRuleActions } from '../actions/_types';
3
+ export type AutomationRulePipeline = {
4
+ steps: AutomationRulePipelineStep[];
5
+ };
6
+ export type AutomationRulePipelineStep<Params = unknown> = {
7
+ type: AutomationRuleActions | string;
8
+ name?: string;
9
+ params: Params;
10
+ };
11
+ export type IAutomationPipelineFailure = {
12
+ readonly results: Record<string, unknown | {
13
+ stack?: string;
14
+ message: string;
15
+ name: string;
16
+ [k: string]: unknown;
17
+ }>;
18
+ };
19
+ export type IAutomationPipelineSuccess = {
20
+ readonly results: Record<string, unknown>;
21
+ };
22
+ export type IAutomationPipelineExecutionState = {
23
+ readonly trigger: AutomationRuleTrigger;
24
+ readonly results: IAutomationPipelineExecutionResults;
25
+ readonly lastResult?: unknown;
26
+ readonly startDateMs: number;
27
+ stepIndex: number;
28
+ };
29
+ export type IAutomationPipelineExecutionResults = Record<string, unknown>;
30
+ export type AutomationPipeline = AutomationRulePipeline;
31
+ export type AutomationPipelineExecution = AutomationPipeline & {
32
+ trigger: AutomationRuleTrigger;
33
+ ruleId: string;
34
+ };
35
+ export type AutomationPipelineValidation = AutomationPipeline & {
36
+ trigger: AutomationRuleTrigger;
37
+ };
@@ -0,0 +1 @@
1
+ export { default } from './pipeline';
@@ -0,0 +1,13 @@
1
+ import { type AutomationPipelineExecution, type AutomationPipelineValidation } from '../pipeline/_types';
2
+ import { type IEventsManagerDomain } from '../../eventsManager/eventsManagerDomain';
3
+ import { type IQueryInfos } from '../../../_types/queryInfos';
4
+ import { type IAutomationActionsRegistry } from '../automationActionsRegistry';
5
+ export interface IAutomationPipelineDomain {
6
+ executePipeline(pipelineExec: AutomationPipelineExecution, ctx: IQueryInfos): Promise<boolean>;
7
+ validatePipeline(pipelineToValidate: AutomationPipelineValidation, ctx: IQueryInfos): Promise<void>;
8
+ }
9
+ export interface IPipelineExecutorDeps {
10
+ 'core.domain.eventsManager': IEventsManagerDomain;
11
+ 'core.domain.automation.actionsRegistry': IAutomationActionsRegistry;
12
+ }
13
+ export default function ({ 'core.domain.eventsManager': eventsManager, 'core.domain.automation.actionsRegistry': actionsRegistry, }: IPipelineExecutorDeps): IAutomationPipelineDomain;
@@ -0,0 +1,3 @@
1
+ import { type AutomationPipelineStepValidation } from '../actions/_types';
2
+ import { type AutomationPipelineValidation } from './_types';
3
+ export declare function pipelineStepValidation<Params>(pipelineToValidate: AutomationPipelineValidation, stepIndex: number): AutomationPipelineStepValidation<Params>;
@@ -0,0 +1,15 @@
1
+ import { type AutomationRuleEventAction } from '../../../_types/automation';
2
+ export declare enum AutomationTriggerDefTopics {
3
+ LIBRARY = "LIBRARY",
4
+ ATTRIBUTE = "ATTRIBUTE"
5
+ }
6
+ export declare enum AutomationTriggerDefSynchronicity {
7
+ SYNC = "SYNC",
8
+ ASYNC = "ASYNC",
9
+ BOTH = "BOTH"
10
+ }
11
+ export type AutomationTriggerDef = {
12
+ eventAction: AutomationRuleEventAction;
13
+ topics: AutomationTriggerDefTopics[];
14
+ synchronicity: AutomationTriggerDefSynchronicity;
15
+ };