@aristid/leav-types 1.12.0 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (525) hide show
  1. package/CLAUDE.md +42 -0
  2. package/apps/core/config/default.d.ts +13 -2
  3. package/apps/core/config/development.d.ts +4 -0
  4. package/apps/core/config/test.d.ts +4 -0
  5. package/apps/core/src/_types/actionsList.d.ts +1 -1
  6. package/apps/core/src/_types/automation.d.ts +39 -0
  7. package/apps/core/src/_types/config.d.ts +13 -0
  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/migration.d.ts +1 -1
  14. package/apps/core/src/_types/permissions.d.ts +1 -0
  15. package/apps/core/src/_types/queryInfos.d.ts +1 -1
  16. package/apps/core/src/_types/record.d.ts +2 -1
  17. package/apps/core/src/_types/value.d.ts +2 -2
  18. package/apps/core/src/app/application/applicationApp.d.ts +9 -9
  19. package/apps/core/src/app/auth/authApp.d.ts +8 -8
  20. package/apps/core/src/app/core/actionListApp.d.ts +3 -3
  21. package/apps/core/src/app/core/apiKeyApp/_types.d.ts +2 -2
  22. package/apps/core/src/app/core/apiKeyApp/apiKeyApp.d.ts +3 -3
  23. package/apps/core/src/app/core/attributeApp/attributeApp.d.ts +11 -9
  24. package/apps/core/src/app/core/automationApp.d.ts +24 -0
  25. package/apps/core/src/app/core/coreApp.d.ts +5 -5
  26. package/apps/core/src/app/core/discussionApp.d.ts +2 -2
  27. package/apps/core/src/app/core/eventsManagerApp.d.ts +6 -5
  28. package/apps/core/src/app/core/exportApp.d.ts +2 -2
  29. package/apps/core/src/app/core/filesManagerApp.d.ts +8 -6
  30. package/apps/core/src/app/core/formApp/_types.d.ts +2 -2
  31. package/apps/core/src/app/core/formApp/formApp.d.ts +8 -8
  32. package/apps/core/src/app/core/globalSettingsApp.d.ts +7 -7
  33. package/apps/core/src/app/core/helpers/subscriptions.d.ts +1 -1
  34. package/apps/core/src/app/core/importApp.d.ts +4 -4
  35. package/apps/core/src/app/core/index.d.ts +1 -0
  36. package/apps/core/src/app/core/indexationManagerApp.d.ts +2 -2
  37. package/apps/core/src/app/core/libraryApp/_types.d.ts +2 -2
  38. package/apps/core/src/app/core/libraryApp/libraryApp.d.ts +7 -7
  39. package/apps/core/src/app/core/logApp.d.ts +15 -13
  40. package/apps/core/src/app/core/logsCollectorApp.d.ts +1 -1
  41. package/apps/core/src/app/core/notificationApp.d.ts +3 -3
  42. package/apps/core/src/app/core/permissionApp/_types.d.ts +1 -1
  43. package/apps/core/src/app/core/permissionApp/permissionApp.d.ts +4 -4
  44. package/apps/core/src/app/core/pluginsApp.d.ts +3 -3
  45. package/apps/core/src/app/core/recordApp/_types.d.ts +2 -2
  46. package/apps/core/src/app/core/recordApp/recordApp.d.ts +8 -8
  47. package/apps/core/src/app/core/tasksManagerApp.d.ts +11 -9
  48. package/apps/core/src/app/core/treeApp/_types.d.ts +4 -4
  49. package/apps/core/src/app/core/treeApp/treeApp.d.ts +5 -5
  50. package/apps/core/src/app/core/userDataApp.d.ts +1 -1
  51. package/apps/core/src/app/core/valueApp.d.ts +6 -6
  52. package/apps/core/src/app/core/versionProfileApp/_types.d.ts +2 -2
  53. package/apps/core/src/app/core/versionProfileApp/versionProfileApp.d.ts +3 -3
  54. package/apps/core/src/app/core/viewApp.d.ts +5 -5
  55. package/apps/core/src/app/endpoint/endpointApp.d.ts +3 -3
  56. package/apps/core/src/app/graphql/customScalars/dateTime/dateTime.d.ts +1 -1
  57. package/apps/core/src/app/graphql/customScalars/systemTranslation/systemTranslation.d.ts +1 -1
  58. package/apps/core/src/app/graphql/graphqlApp.d.ts +3 -3
  59. package/apps/core/src/app/helpers/convertVersionFromGqlFormat.d.ts +1 -1
  60. package/apps/core/src/app/helpers/initQueryContext.d.ts +2 -2
  61. package/apps/core/src/app/trpc/index.d.ts +1 -0
  62. package/apps/core/src/app/trpc/trpcApp.d.ts +30 -0
  63. package/apps/core/src/domain/actions/excelCalculationAction.d.ts +2 -2
  64. package/apps/core/src/domain/actions/index.d.ts +1 -0
  65. package/apps/core/src/domain/actions/inheritanceCalculationAction.d.ts +2 -2
  66. package/apps/core/src/domain/actions/jexlCalculationAction.d.ts +14 -0
  67. package/apps/core/src/domain/actions/replaceAnotherAttributeAction.d.ts +3 -3
  68. package/apps/core/src/domain/apiKey/apiKeyDomain.d.ts +6 -6
  69. package/apps/core/src/domain/application/applicationDomain.d.ts +7 -7
  70. package/apps/core/src/domain/application/helpers/getLibrarySystemPanels.d.ts +2 -2
  71. package/apps/core/src/domain/attribute/attributeDomain.d.ts +12 -12
  72. package/apps/core/src/domain/attribute/helpers/attributeALHelper.d.ts +1 -1
  73. package/apps/core/src/domain/attribute/helpers/attributeValidationHelper.d.ts +6 -6
  74. package/apps/core/src/domain/attribute/helpers/ifLibraryJoinLinkAttribute.d.ts +2 -2
  75. package/apps/core/src/domain/automation/actions/_types.d.ts +27 -0
  76. package/apps/core/src/domain/automation/actions/conditionAction.d.ts +8 -0
  77. package/apps/core/src/domain/automation/actions/errorAction.d.ts +8 -0
  78. package/apps/core/src/domain/automation/actions/index.d.ts +5 -0
  79. package/apps/core/src/domain/automation/actions/jexlCalculationAutomationAction.d.ts +14 -0
  80. package/apps/core/src/domain/automation/actions/logAction.d.ts +16 -0
  81. package/apps/core/src/domain/automation/actions/modifyAttributeAction.d.ts +18 -0
  82. package/apps/core/src/domain/automation/automationActionsRegistry.d.ts +10 -0
  83. package/apps/core/src/domain/automation/automationDomain.d.ts +59 -0
  84. package/apps/core/src/domain/automation/fakeRulesToTrigger.d.ts +7 -0
  85. package/apps/core/src/domain/automation/index.d.ts +4 -0
  86. package/apps/core/src/domain/automation/pipeline/_types.d.ts +33 -0
  87. package/apps/core/src/domain/automation/pipeline/index.d.ts +1 -0
  88. package/apps/core/src/domain/automation/pipeline/pipeline.d.ts +18 -0
  89. package/apps/core/src/domain/automation/triggers/_types.d.ts +15 -0
  90. package/apps/core/src/domain/automation/triggers/automationTriggers.d.ts +14 -0
  91. package/apps/core/src/domain/automation/triggers/automationTriggersRegistry.d.ts +19 -0
  92. package/apps/core/src/domain/automation/triggers/automationTriggersTopics.d.ts +18 -0
  93. package/apps/core/src/domain/automation/triggers/index.d.ts +3 -0
  94. package/apps/core/src/domain/discussion/discussionDomain.d.ts +10 -8
  95. package/apps/core/src/domain/eventsManager/eventsManagerDomain.d.ts +4 -4
  96. package/apps/core/src/domain/export/exportDomain.d.ts +8 -8
  97. package/apps/core/src/domain/export/exportProfileDomain.d.ts +2 -2
  98. package/apps/core/src/domain/filesManager/_constants.d.ts +1 -1
  99. package/apps/core/src/domain/filesManager/filesManagerDomain.d.ts +13 -13
  100. package/apps/core/src/domain/filesManager/helpers/extractFileMetadata.d.ts +1 -1
  101. package/apps/core/src/domain/filesManager/helpers/getRootPathByKey.d.ts +1 -1
  102. package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/_types.d.ts +12 -12
  103. package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleCreateEvent.d.ts +1 -1
  104. package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleFileSystemEvent.d.ts +10 -10
  105. package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleMoveEvent.d.ts +1 -1
  106. package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleRemoveEvent.d.ts +1 -1
  107. package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleUpdateEvent.d.ts +1 -1
  108. package/apps/core/src/domain/filesManager/helpers/handleFileUtilsHelper.d.ts +7 -7
  109. package/apps/core/src/domain/filesManager/helpers/handlePreview.d.ts +1 -1
  110. package/apps/core/src/domain/filesManager/helpers/handlePreviewResponse.d.ts +9 -9
  111. package/apps/core/src/domain/filesManager/helpers/messagesHandler/messagesHandler.d.ts +3 -3
  112. package/apps/core/src/domain/form/formDomain.d.ts +12 -12
  113. package/apps/core/src/domain/form/helpers/getElementValues.d.ts +4 -4
  114. package/apps/core/src/domain/form/helpers/mustIncludeElement.d.ts +4 -4
  115. package/apps/core/src/domain/globalSettings/globalSettingsDomain.d.ts +5 -5
  116. package/apps/core/src/domain/helpers/calculations/calculationVariable.d.ts +1 -1
  117. package/apps/core/src/domain/helpers/calculations/calculationsVariableFunctions.d.ts +4 -4
  118. package/apps/core/src/domain/helpers/createDirectory.d.ts +2 -2
  119. package/apps/core/src/domain/helpers/getCoreEntityById.d.ts +7 -7
  120. package/apps/core/src/domain/helpers/updateRecordLastModif.d.ts +4 -4
  121. package/apps/core/src/domain/helpers/updateTaskProgress.d.ts +3 -3
  122. package/apps/core/src/domain/helpers/validate.d.ts +6 -6
  123. package/apps/core/src/domain/import/importDomain.d.ts +11 -11
  124. package/apps/core/src/domain/indexationManager/indexationManagerDomain.d.ts +9 -9
  125. package/apps/core/src/domain/jexl/index.d.ts +1 -0
  126. package/apps/core/src/domain/jexl/jexlDomain.d.ts +19 -0
  127. package/apps/core/src/domain/jexl/jexlExtended.d.ts +2 -0
  128. package/apps/core/src/domain/jexl/types.d.ts +37 -0
  129. package/apps/core/src/domain/library/helpers/checkSavePermission.d.ts +2 -2
  130. package/apps/core/src/domain/library/helpers/deleteAssociatedValues.d.ts +5 -5
  131. package/apps/core/src/domain/library/helpers/index.d.ts +0 -1
  132. package/apps/core/src/domain/library/helpers/runBehaviorPostSave.d.ts +6 -6
  133. package/apps/core/src/domain/library/helpers/runPreDelete.d.ts +4 -4
  134. package/apps/core/src/domain/library/helpers/updateAssociatedForms.d.ts +2 -2
  135. package/apps/core/src/domain/library/helpers/validateLibAttributes.d.ts +3 -3
  136. package/apps/core/src/domain/library/helpers/validateLibFullTextAttributes.d.ts +1 -1
  137. package/apps/core/src/domain/library/helpers/validatePermConf.d.ts +4 -4
  138. package/apps/core/src/domain/library/helpers/validatePreviewsSettings.d.ts +1 -1
  139. package/apps/core/src/domain/library/helpers/validateRecordIdentityConf.d.ts +3 -3
  140. package/apps/core/src/domain/library/libraryDomain.d.ts +11 -11
  141. package/apps/core/src/domain/log/logDomain.d.ts +5 -5
  142. package/apps/core/src/domain/logsCollector/logsCollectorDomain.d.ts +1 -1
  143. package/apps/core/src/domain/notification/channels/emailChannel.d.ts +4 -4
  144. package/apps/core/src/domain/notification/channels/webSocketChannel.d.ts +1 -1
  145. package/apps/core/src/domain/notification/notificationDomain.d.ts +3 -3
  146. package/apps/core/src/domain/permission/_types.d.ts +2 -2
  147. package/apps/core/src/domain/permission/attributeDependentValuesPermissionDomain.d.ts +8 -4
  148. package/apps/core/src/domain/permission/helpers/defaultPermission.d.ts +3 -3
  149. package/apps/core/src/domain/permission/helpers/getPermissionCacheKey.d.ts +1 -1
  150. package/apps/core/src/domain/permission/helpers/getPermissionCachePatternKey.d.ts +1 -1
  151. package/apps/core/src/domain/permission/helpers/globalPermission.d.ts +2 -2
  152. package/apps/core/src/domain/permission/helpers/permissionByUserGroups.d.ts +1 -1
  153. package/apps/core/src/domain/permission/helpers/permissionsByActions.d.ts +1 -1
  154. package/apps/core/src/domain/permission/helpers/treeBasedPermissions.d.ts +4 -4
  155. package/apps/core/src/domain/permission/permissionDomain.d.ts +4 -4
  156. package/apps/core/src/domain/permission/recordAttributePermissionDomain.d.ts +2 -2
  157. package/apps/core/src/domain/permission/recordPermissionDomain.d.ts +3 -3
  158. package/apps/core/src/domain/permission/treeNodePermissionDomain.d.ts +4 -4
  159. package/apps/core/src/domain/plugins/pluginsDomain.d.ts +3 -3
  160. package/apps/core/src/domain/record/_types.d.ts +4 -4
  161. package/apps/core/src/domain/record/helpers/createRecord.d.ts +6 -4
  162. package/apps/core/src/domain/record/helpers/deleteRecord.d.ts +9 -9
  163. package/apps/core/src/domain/record/helpers/findRecords.d.ts +2 -2
  164. package/apps/core/src/domain/record/helpers/getAccessPermissionFilters.d.ts +7 -7
  165. package/apps/core/src/domain/record/helpers/getAttributesFromField.d.ts +4 -4
  166. package/apps/core/src/domain/record/helpers/getRecordIdentity.d.ts +27 -0
  167. package/apps/core/src/domain/record/helpers/index.d.ts +1 -1
  168. package/apps/core/src/domain/record/helpers/sendRecordUpdateEvent.d.ts +3 -3
  169. package/apps/core/src/domain/record/recordDomain.d.ts +10 -18
  170. package/apps/core/src/domain/tasksManager/cronTasksManagerDomain.d.ts +13 -0
  171. package/apps/core/src/domain/tasksManager/index.d.ts +1 -0
  172. package/apps/core/src/domain/tasksManager/tasksManagerDomain.d.ts +7 -7
  173. package/apps/core/src/domain/tree/helpers/elementAncestors.d.ts +2 -2
  174. package/apps/core/src/domain/tree/helpers/getDefaultElement.d.ts +3 -3
  175. package/apps/core/src/domain/tree/helpers/handleRemovedLibraries.d.ts +3 -3
  176. package/apps/core/src/domain/tree/helpers/treeDataValidation.d.ts +3 -3
  177. package/apps/core/src/domain/tree/treeDomain.d.ts +10 -10
  178. package/apps/core/src/domain/user/userDomain.d.ts +10 -10
  179. package/apps/core/src/domain/value/_types.d.ts +5 -5
  180. package/apps/core/src/domain/value/helpers/areValuesIdentical.d.ts +1 -1
  181. package/apps/core/src/domain/value/helpers/canSaveRecordValue.d.ts +6 -6
  182. package/apps/core/src/domain/value/helpers/doesValueExist.d.ts +1 -1
  183. package/apps/core/src/domain/value/helpers/findValue.d.ts +1 -1
  184. package/apps/core/src/domain/value/helpers/formatLogValue.d.ts +6 -6
  185. package/apps/core/src/domain/value/helpers/formatValue.d.ts +17 -0
  186. package/apps/core/src/domain/value/helpers/getRecordFieldValue.d.ts +27 -0
  187. package/apps/core/src/domain/value/helpers/getValues.d.ts +26 -0
  188. package/apps/core/src/domain/value/helpers/index.d.ts +7 -0
  189. package/apps/core/src/domain/value/helpers/isEmptyValue.d.ts +1 -1
  190. package/apps/core/src/domain/value/helpers/manageEventMetadata.d.ts +4 -0
  191. package/apps/core/src/domain/value/helpers/postDeleteValue.d.ts +6 -6
  192. package/apps/core/src/domain/value/helpers/postSaveValue.d.ts +6 -6
  193. package/apps/core/src/domain/value/helpers/prepareValue.d.ts +6 -6
  194. package/apps/core/src/domain/value/helpers/runActionsList.d.ts +10 -0
  195. package/apps/core/src/domain/value/helpers/saveOneValue.d.ts +8 -8
  196. package/apps/core/src/domain/value/helpers/validateValue.d.ts +4 -4
  197. package/apps/core/src/domain/value/tasks/purgeMultipleValues.d.ts +1 -1
  198. package/apps/core/src/domain/value/tasks/saveValueBulk.d.ts +10 -7
  199. package/apps/core/src/domain/value/valueDomain.d.ts +27 -17
  200. package/apps/core/src/domain/versionProfile/versionProfileDomain.d.ts +10 -10
  201. package/apps/core/src/domain/view/viewDomain.d.ts +7 -7
  202. package/apps/core/src/i18nextInit.d.ts +1 -1
  203. package/apps/core/src/infra/apiKey/apiKeyRepo.d.ts +5 -5
  204. package/apps/core/src/infra/application/applicationRepo.d.ts +3 -3
  205. package/apps/core/src/infra/attribute/attributeRepo.d.ts +4 -4
  206. package/apps/core/src/infra/attributeTypes/attributeAdvancedLinkRepo.d.ts +2 -2
  207. package/apps/core/src/infra/attributeTypes/attributeAdvancedRepo.d.ts +2 -2
  208. package/apps/core/src/infra/attributeTypes/attributeSimpleLinkRepo.d.ts +2 -2
  209. package/apps/core/src/infra/attributeTypes/attributeSimpleRepo.d.ts +1 -1
  210. package/apps/core/src/infra/attributeTypes/attributeTreeRepo.d.ts +2 -2
  211. package/apps/core/src/infra/attributeTypes/attributeTypesRepo.d.ts +1 -1
  212. package/apps/core/src/infra/automation/automationRuleRepo.d.ts +31 -0
  213. package/apps/core/src/infra/automation/index.d.ts +1 -0
  214. package/apps/core/src/infra/cache/cacheService.d.ts +2 -2
  215. package/apps/core/src/infra/cache/diskService.d.ts +1 -1
  216. package/apps/core/src/infra/cache/redis.d.ts +1 -1
  217. package/apps/core/src/infra/db/_types.d.ts +1 -1
  218. package/apps/core/src/infra/db/db.d.ts +1 -1
  219. package/apps/core/src/infra/db/dbService.d.ts +2 -2
  220. package/apps/core/src/infra/db/dbUtils.d.ts +10 -6
  221. package/apps/core/src/infra/db/helpers/runMigrationFiles.d.ts +1 -1
  222. package/apps/core/src/infra/db/migrations/000-init/index.d.ts +3 -3
  223. package/apps/core/src/infra/db/migrations/000-init/systemAttributes.d.ts +1 -1
  224. package/apps/core/src/infra/db/migrations/001-delInstallApps.d.ts +1 -1
  225. package/apps/core/src/infra/db/migrations/002-previewsSettings.d.ts +4 -4
  226. package/apps/core/src/infra/db/migrations/003-filesMetadata.d.ts +3 -3
  227. package/apps/core/src/infra/db/migrations/004-formsLabels.d.ts +2 -2
  228. package/apps/core/src/infra/db/migrations/005-viewSortToArray.d.ts +1 -1
  229. package/apps/core/src/infra/db/migrations/007-updateHexColor.d.ts +1 -1
  230. package/apps/core/src/infra/db/migrations/010-formSidePanel.d.ts +2 -2
  231. package/apps/core/src/infra/db/migrations/013-passwordAttributeMaskValue.d.ts +1 -1
  232. package/apps/core/src/infra/db/migrations/014-notificationsCollection.d.ts +1 -1
  233. package/apps/core/src/infra/db/migrations/019-automationRuleCollection.d.ts +7 -0
  234. package/apps/core/src/infra/elasticsearch/elasticsearchClient.d.ts +1 -1
  235. package/apps/core/src/infra/elasticsearch/elasticsearchService.d.ts +1 -1
  236. package/apps/core/src/infra/filesManager/filesManagerRepo.d.ts +4 -4
  237. package/apps/core/src/infra/form/formRepo.d.ts +6 -6
  238. package/apps/core/src/infra/globalSettings/globalSettingsRepo.d.ts +3 -3
  239. package/apps/core/src/infra/indexation/helpers/getSearchQuery.d.ts +1 -1
  240. package/apps/core/src/infra/indexation/indexationService.d.ts +3 -3
  241. package/apps/core/src/infra/library/libraryRepo.d.ts +2 -2
  242. package/apps/core/src/infra/log/logRepo.d.ts +4 -4
  243. package/apps/core/src/infra/mailer/mailer.d.ts +1 -1
  244. package/apps/core/src/infra/mailer/mailerService.d.ts +3 -3
  245. package/apps/core/src/infra/notification/notificationRepo.d.ts +3 -3
  246. package/apps/core/src/infra/permission/permissionRepo.d.ts +1 -1
  247. package/apps/core/src/infra/plugins/pluginsRepo.d.ts +1 -1
  248. package/apps/core/src/infra/record/helpers/getClassifyingFiltersVariableQueryPart.d.ts +2 -2
  249. package/apps/core/src/infra/record/helpers/getSearchVariablesQueryPart.d.ts +1 -1
  250. package/apps/core/src/infra/record/recordRepo.d.ts +5 -5
  251. package/apps/core/src/infra/task/taskRepo.d.ts +6 -6
  252. package/apps/core/src/infra/tree/_types.d.ts +1 -1
  253. package/apps/core/src/infra/tree/treeRepo.d.ts +5 -5
  254. package/apps/core/src/infra/userData/userDataRepo.d.ts +2 -2
  255. package/apps/core/src/infra/value/valueRepo.d.ts +5 -5
  256. package/apps/core/src/infra/versionProfile/versionProfileRepo.d.ts +6 -6
  257. package/apps/core/src/infra/view/_types.d.ts +5 -5
  258. package/apps/core/src/interface/cli.d.ts +1 -1
  259. package/apps/core/src/interface/filesManager.d.ts +1 -1
  260. package/apps/core/src/interface/helpers/handleGraphqlError.d.ts +3 -3
  261. package/apps/core/src/interface/indexationManager.d.ts +1 -1
  262. package/apps/core/src/interface/logsCollector.d.ts +1 -1
  263. package/apps/core/src/interface/server.d.ts +10 -8
  264. package/apps/core/src/interface/tasksManager.d.ts +1 -1
  265. package/apps/core/src/pluginsLoader.d.ts +1 -0
  266. package/apps/core/src/utils/configureDayjs.d.ts +1 -1
  267. package/apps/core/src/utils/dataloader.d.ts +1 -1
  268. package/apps/core/src/utils/helpers/getSystemQueryContext.d.ts +2 -2
  269. package/apps/core/src/utils/helpers/getValuesToDisplay.d.ts +1 -1
  270. package/apps/core/src/utils/logger/logger.d.ts +1 -1
  271. package/apps/core/src/utils/utils.d.ts +3 -3
  272. package/apps/core/tsconfig.types.tsbuildinfo +1 -1
  273. package/apps/core/vitest.e2e-api.config.d.ts +2 -0
  274. package/apps/core/vitest.e2e-fileManager.config.d.ts +2 -0
  275. package/apps/core/vitest.e2e-indexationManager.config.d.ts +2 -0
  276. package/apps/core/vitest.integration.config.d.ts +2 -0
  277. package/apps/core/vitest.unit.config.d.ts +2 -0
  278. package/libs/utils/src/types/events.d.ts +6 -0
  279. package/libs/utils/src/types/helpers.d.ts +0 -3
  280. package/libs/utils/src/utils.d.ts +3 -1
  281. package/package.json +3 -5
  282. package/apps/core/scripts/build.d.ts +0 -2
  283. package/apps/core/scripts/utils.d.ts +0 -3
  284. package/apps/core/src/__tests__/e2e/_gqlTypes/index.d.ts +0 -1225
  285. package/apps/core/src/__tests__/e2e/api/_fixtures/applications/login/index-hashed.d.ts +0 -0
  286. package/apps/core/src/__tests__/e2e/api/_fixtures/fakeplugin/_types/_types.d.ts +0 -3
  287. package/apps/core/src/__tests__/e2e/api/_fixtures/fakeplugin/domain/fakeDomain.d.ts +0 -13
  288. package/apps/core/src/__tests__/e2e/api/_fixtures/fakeplugin/domain/index.d.ts +0 -1
  289. package/apps/core/src/__tests__/e2e/api/_fixtures/fakeplugin/index.d.ts +0 -21
  290. package/apps/core/src/__tests__/e2e/api/actionLists/actionLists.test.d.ts +0 -1
  291. package/apps/core/src/__tests__/e2e/api/actionLists/actions/inheritanceCalculationAction.test.d.ts +0 -1
  292. package/apps/core/src/__tests__/e2e/api/actionLists/actions/replaceAnotherAttributeAction.test.d.ts +0 -1
  293. package/apps/core/src/__tests__/e2e/api/apiKey/apiKey.test.d.ts +0 -1
  294. package/apps/core/src/__tests__/e2e/api/applications/applications.test.d.ts +0 -1
  295. package/apps/core/src/__tests__/e2e/api/attributes/attributes.test.d.ts +0 -1
  296. package/apps/core/src/__tests__/e2e/api/auth/auth.test.d.ts +0 -1
  297. package/apps/core/src/__tests__/e2e/api/constants.d.ts +0 -2
  298. package/apps/core/src/__tests__/e2e/api/discussions/discussions.test.d.ts +0 -1
  299. package/apps/core/src/__tests__/e2e/api/e2eUtils.d.ts +0 -150
  300. package/apps/core/src/__tests__/e2e/api/export/export.test.d.ts +0 -1
  301. package/apps/core/src/__tests__/e2e/api/export/exportNestedAttributes.test.d.ts +0 -1
  302. package/apps/core/src/__tests__/e2e/api/files/files.test.d.ts +0 -1
  303. package/apps/core/src/__tests__/e2e/api/forms/forms.test.d.ts +0 -1
  304. package/apps/core/src/__tests__/e2e/api/getConditionPart/getConditionPart.test.d.ts +0 -1
  305. package/apps/core/src/__tests__/e2e/api/globalSettings/globalSettings.test.d.ts +0 -1
  306. package/apps/core/src/__tests__/e2e/api/globalSetup.d.ts +0 -8
  307. package/apps/core/src/__tests__/e2e/api/globalSetupHook.d.ts +0 -1
  308. package/apps/core/src/__tests__/e2e/api/graphql/graphql.test.d.ts +0 -1
  309. package/apps/core/src/__tests__/e2e/api/import/import.test.d.ts +0 -1
  310. package/apps/core/src/__tests__/e2e/api/joinLibraries/joinLibraries.test.d.ts +0 -1
  311. package/apps/core/src/__tests__/e2e/api/joinLibraries/nestedJoinLibraries.test.d.ts +0 -1
  312. package/apps/core/src/__tests__/e2e/api/libraries/libraries.test.d.ts +0 -1
  313. package/apps/core/src/__tests__/e2e/api/mailpitUtils.d.ts +0 -37
  314. package/apps/core/src/__tests__/e2e/api/notificationUtils.d.ts +0 -7
  315. package/apps/core/src/__tests__/e2e/api/notifications/notifications.test.d.ts +0 -1
  316. package/apps/core/src/__tests__/e2e/api/permissions/admin/apiKeyAdminPermissions.test.d.ts +0 -1
  317. package/apps/core/src/__tests__/e2e/api/permissions/admin/applicationsAdminPermissions.test.d.ts +0 -1
  318. package/apps/core/src/__tests__/e2e/api/permissions/admin/attributesAdminPermissions.test.d.ts +0 -1
  319. package/apps/core/src/__tests__/e2e/api/permissions/admin/formsAdminPermissions.test.d.ts +0 -1
  320. package/apps/core/src/__tests__/e2e/api/permissions/admin/globalSettingsAdminPermissions.test.d.ts +0 -1
  321. package/apps/core/src/__tests__/e2e/api/permissions/admin/librariesAdminPermissions.test.d.ts +0 -1
  322. package/apps/core/src/__tests__/e2e/api/permissions/admin/permissionsAdminPermissions.test.d.ts +0 -1
  323. package/apps/core/src/__tests__/e2e/api/permissions/admin/treesAdminPermissions.test.d.ts +0 -1
  324. package/apps/core/src/__tests__/e2e/api/permissions/admin/versionProfilesAdminPermissions.test.d.ts +0 -1
  325. package/apps/core/src/__tests__/e2e/api/permissions/applicationsPermissions.test.d.ts +0 -1
  326. package/apps/core/src/__tests__/e2e/api/permissions/attributePermissions.test.d.ts +0 -1
  327. package/apps/core/src/__tests__/e2e/api/permissions/dependentValuesTreeAttributePermissions.test.d.ts +0 -1
  328. package/apps/core/src/__tests__/e2e/api/permissions/extendedLibraryPermissions.test.d.ts +0 -1
  329. package/apps/core/src/__tests__/e2e/api/permissions/permissions.test.d.ts +0 -1
  330. package/apps/core/src/__tests__/e2e/api/permissions/recordAttributePermissions.test.d.ts +0 -1
  331. package/apps/core/src/__tests__/e2e/api/permissions/recordPermissions.test.d.ts +0 -1
  332. package/apps/core/src/__tests__/e2e/api/permissions/treeLibraryPermissions.test.d.ts +0 -1
  333. package/apps/core/src/__tests__/e2e/api/permissions/treeNodePermissions.test.d.ts +0 -1
  334. package/apps/core/src/__tests__/e2e/api/permissions/treePermissions.test.d.ts +0 -1
  335. package/apps/core/src/__tests__/e2e/api/plugins/plugins.test.d.ts +0 -1
  336. package/apps/core/src/__tests__/e2e/api/records/recordIdentity.test.d.ts +0 -1
  337. package/apps/core/src/__tests__/e2e/api/records/records.test.d.ts +0 -1
  338. package/apps/core/src/__tests__/e2e/api/records/recordsDeletion.test.d.ts +0 -1
  339. package/apps/core/src/__tests__/e2e/api/records/searchFilters.test.d.ts +0 -1
  340. package/apps/core/src/__tests__/e2e/api/task/taskSubscription.test.d.ts +0 -1
  341. package/apps/core/src/__tests__/e2e/api/task/tasksAdminPermissions.test.d.ts +0 -1
  342. package/apps/core/src/__tests__/e2e/api/taskUtils.d.ts +0 -4
  343. package/apps/core/src/__tests__/e2e/api/teardown.d.ts +0 -2
  344. package/apps/core/src/__tests__/e2e/api/trees/treeNodeChildrenAndContentQuery.test.d.ts +0 -1
  345. package/apps/core/src/__tests__/e2e/api/trees/trees.test.d.ts +0 -1
  346. package/apps/core/src/__tests__/e2e/api/userData/maskUserPassword.test.d.ts +0 -1
  347. package/apps/core/src/__tests__/e2e/api/userData/userData.test.d.ts +0 -1
  348. package/apps/core/src/__tests__/e2e/api/values/listDistinctValues.test.d.ts +0 -1
  349. package/apps/core/src/__tests__/e2e/api/values/metadata.test.d.ts +0 -1
  350. package/apps/core/src/__tests__/e2e/api/values/purgeMultipleValues.test.d.ts +0 -1
  351. package/apps/core/src/__tests__/e2e/api/values/saveValueBulk.test.d.ts +0 -1
  352. package/apps/core/src/__tests__/e2e/api/values/values.test.d.ts +0 -1
  353. package/apps/core/src/__tests__/e2e/api/values/versions.test.d.ts +0 -1
  354. package/apps/core/src/__tests__/e2e/api/versionProfile/versionProfile.test.d.ts +0 -1
  355. package/apps/core/src/__tests__/e2e/api/views/views.test.d.ts +0 -1
  356. package/apps/core/src/__tests__/e2e/filesManager/filesManager/filesManager.test.d.ts +0 -1
  357. package/apps/core/src/__tests__/e2e/filesManager/globalSetup.d.ts +0 -1
  358. package/apps/core/src/__tests__/e2e/filesManager/globalSetupHook.d.ts +0 -1
  359. package/apps/core/src/__tests__/e2e/indexationManager/globalSetup.d.ts +0 -1
  360. package/apps/core/src/__tests__/e2e/indexationManager/globalSetupHook.d.ts +0 -1
  361. package/apps/core/src/__tests__/e2e/indexationManager/indexation.test.d.ts +0 -1
  362. package/apps/core/src/__tests__/global-setup.d.ts +0 -0
  363. package/apps/core/src/__tests__/integration/domain/tasksManagerDomain.test.d.ts +0 -1
  364. package/apps/core/src/__tests__/integration/globalSetup.d.ts +0 -1
  365. package/apps/core/src/__tests__/integration/globalSetupHook.d.ts +0 -1
  366. package/apps/core/src/__tests__/integration/infra/attributeAdvancedLinkRepo.test.d.ts +0 -1
  367. package/apps/core/src/__tests__/integration/infra/attributeAdvancedRepo.test.d.ts +0 -1
  368. package/apps/core/src/__tests__/integration/infra/attributeSimpleLinkRepo.test.d.ts +0 -1
  369. package/apps/core/src/__tests__/integration/infra/attributeSimpleRepo.test.d.ts +0 -1
  370. package/apps/core/src/__tests__/integration/infra/attributeTreeRepo.test.d.ts +0 -1
  371. package/apps/core/src/__tests__/integration/infra/integrationTestRepoUtils.d.ts +0 -11
  372. package/apps/core/src/__tests__/integration/infra/notificationRepo.test.d.ts +0 -1
  373. package/apps/core/src/__tests__/integration/infra/permissionRepo.test.d.ts +0 -1
  374. package/apps/core/src/__tests__/integration/infra/ramService.test.d.ts +0 -1
  375. package/apps/core/src/__tests__/integration/infra/recordRepo.test.d.ts +0 -1
  376. package/apps/core/src/__tests__/integration/infra/treeRepo.test.d.ts +0 -1
  377. package/apps/core/src/__tests__/integration/integrationTestUtils.d.ts +0 -7
  378. package/apps/core/src/__tests__/integration/teardown.d.ts +0 -1
  379. package/apps/core/src/__tests__/jestUtils.d.ts +0 -12
  380. package/apps/core/src/__tests__/mockers/amqp.d.ts +0 -8
  381. package/apps/core/src/__tests__/mockers/logger.d.ts +0 -7
  382. package/apps/core/src/__tests__/mocks/actionsList.d.ts +0 -73
  383. package/apps/core/src/__tests__/mocks/apiKey.d.ts +0 -11
  384. package/apps/core/src/__tests__/mocks/application.d.ts +0 -3
  385. package/apps/core/src/__tests__/mocks/attribute.d.ts +0 -45
  386. package/apps/core/src/__tests__/mocks/cache.d.ts +0 -4
  387. package/apps/core/src/__tests__/mocks/file.d.ts +0 -29
  388. package/apps/core/src/__tests__/mocks/forms.d.ts +0 -4
  389. package/apps/core/src/__tests__/mocks/globalSettings.d.ts +0 -2
  390. package/apps/core/src/__tests__/mocks/graphql-upload.d.ts +0 -3
  391. package/apps/core/src/__tests__/mocks/library.d.ts +0 -4
  392. package/apps/core/src/__tests__/mocks/log.d.ts +0 -2
  393. package/apps/core/src/__tests__/mocks/plugins.d.ts +0 -2
  394. package/apps/core/src/__tests__/mocks/record.d.ts +0 -3
  395. package/apps/core/src/__tests__/mocks/shared.d.ts +0 -3
  396. package/apps/core/src/__tests__/mocks/task.d.ts +0 -2
  397. package/apps/core/src/__tests__/mocks/translator.d.ts +0 -3
  398. package/apps/core/src/__tests__/mocks/tree.d.ts +0 -3
  399. package/apps/core/src/__tests__/mocks/value.d.ts +0 -2
  400. package/apps/core/src/__tests__/mocks/versionProfile.d.ts +0 -2
  401. package/apps/core/src/__tests__/mocks/view.d.ts +0 -3
  402. package/apps/core/src/__tests__/setup.d.ts +0 -1
  403. package/apps/core/src/app/application/__tests__/applicationApp.spec.d.ts +0 -1
  404. package/apps/core/src/app/auth/__tests__/authApp.spec.d.ts +0 -1
  405. package/apps/core/src/app/core/coreApp.spec.d.ts +0 -1
  406. package/apps/core/src/app/endpoint/endpointApp.spec.d.ts +0 -1
  407. package/apps/core/src/app/graphql/customScalars/any/any.spec.d.ts +0 -1
  408. package/apps/core/src/app/graphql/customScalars/dateTime/dateTime.spec.d.ts +0 -1
  409. package/apps/core/src/app/graphql/customScalars/systemTranslation/systemTranslation.spec.d.ts +0 -1
  410. package/apps/core/src/app/graphql/graphqlApp.spec.d.ts +0 -1
  411. package/apps/core/src/app/helpers/convertOIDCIdentifier.spec.d.ts +0 -1
  412. package/apps/core/src/app/helpers/convertVersionFromGqlFormat.spec.d.ts +0 -1
  413. package/apps/core/src/app/helpers/validateRequestToken.spec.d.ts +0 -1
  414. package/apps/core/src/domain/actions/dateRangeToNumberAction.spec.d.ts +0 -1
  415. package/apps/core/src/domain/actions/encryptAction.spec.d.ts +0 -1
  416. package/apps/core/src/domain/actions/excelCalculationAction.spec.d.ts +0 -1
  417. package/apps/core/src/domain/actions/formatDateAction.spec.d.ts +0 -1
  418. package/apps/core/src/domain/actions/formatDateRangeAction.spec.d.ts +0 -1
  419. package/apps/core/src/domain/actions/formatNumberAction.spec.d.ts +0 -1
  420. package/apps/core/src/domain/actions/inheritanceCalculationAction.spec.d.ts +0 -1
  421. package/apps/core/src/domain/actions/maskValueAction.spec.d.ts +0 -1
  422. package/apps/core/src/domain/actions/parseJSONAction.spec.d.ts +0 -1
  423. package/apps/core/src/domain/actions/toBooleanAction.spec.d.ts +0 -1
  424. package/apps/core/src/domain/actions/toJSONAction.spec.d.ts +0 -1
  425. package/apps/core/src/domain/actions/toLowercaseAction.spec.d.ts +0 -1
  426. package/apps/core/src/domain/actions/toNumberAction.spec.d.ts +0 -1
  427. package/apps/core/src/domain/actions/toStringAction.spec.d.ts +0 -1
  428. package/apps/core/src/domain/actions/toUppercaseAction.spec.d.ts +0 -1
  429. package/apps/core/src/domain/actions/validateEmailAction.spec.d.ts +0 -1
  430. package/apps/core/src/domain/actions/validateFormatAction.spec.d.ts +0 -1
  431. package/apps/core/src/domain/actions/validateRegexAction.spec.d.ts +0 -1
  432. package/apps/core/src/domain/actions/validateURLAction.spec.d.ts +0 -1
  433. package/apps/core/src/domain/actionsList/actionsListDomain.spec.d.ts +0 -1
  434. package/apps/core/src/domain/apiKey/apiKeyDomain.spec.d.ts +0 -1
  435. package/apps/core/src/domain/application/applicationDomain.spec.d.ts +0 -1
  436. package/apps/core/src/domain/attribute/attributeDomain.spec.d.ts +0 -1
  437. package/apps/core/src/domain/attribute/helpers/ifLibraryJoinLinkAttribute.spec.d.ts +0 -1
  438. package/apps/core/src/domain/core/coreDomain.spec.d.ts +0 -1
  439. package/apps/core/src/domain/eventsManager/eventsManagerDomain.spec.d.ts +0 -1
  440. package/apps/core/src/domain/export/exportDomain.spec.d.ts +0 -1
  441. package/apps/core/src/domain/export/exportProfileDomain.spec.d.ts +0 -1
  442. package/apps/core/src/domain/filesManager/filesManagerDomain.spec.d.ts +0 -1
  443. package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleFileSystemEvent.spec.d.ts +0 -1
  444. package/apps/core/src/domain/filesManager/helpers/messagesHandler/messagesHandler.spec.d.ts +0 -1
  445. package/apps/core/src/domain/form/formDomain.spec.d.ts +0 -1
  446. package/apps/core/src/domain/globalSettings/globalSettingsDomain.spec.d.ts +0 -1
  447. package/apps/core/src/domain/helpers/calculations/calculationVariable.spec.d.ts +0 -1
  448. package/apps/core/src/domain/helpers/calculations/calculationsVariableFunctions.spec.d.ts +0 -1
  449. package/apps/core/src/domain/import/importDomain.spec.d.ts +0 -1
  450. package/apps/core/src/domain/indexationManager/indexationManagerDomain.spec.d.ts +0 -1
  451. package/apps/core/src/domain/library/helpers/runPreDelete.spec.d.ts +0 -1
  452. package/apps/core/src/domain/library/libraryDomain.spec.d.ts +0 -1
  453. package/apps/core/src/domain/log/logDomain.spec.d.ts +0 -1
  454. package/apps/core/src/domain/permission/adminPermissionDomain.spec.d.ts +0 -1
  455. package/apps/core/src/domain/permission/applicationPermissionDomain.spec.d.ts +0 -1
  456. package/apps/core/src/domain/permission/attributePermissionDomain.spec.d.ts +0 -1
  457. package/apps/core/src/domain/permission/helpers/defaultPermission.spec.d.ts +0 -1
  458. package/apps/core/src/domain/permission/helpers/getPermissionCacheKey.spec.d.ts +0 -1
  459. package/apps/core/src/domain/permission/helpers/getPermissionCachePatternKey.spec.d.ts +0 -1
  460. package/apps/core/src/domain/permission/helpers/globalPermission.spec.d.ts +0 -1
  461. package/apps/core/src/domain/permission/helpers/permissionByUserGroups.spec.d.ts +0 -1
  462. package/apps/core/src/domain/permission/helpers/permissionsByActions.spec.d.ts +0 -1
  463. package/apps/core/src/domain/permission/helpers/reducePermissionsArray.spec.d.ts +0 -1
  464. package/apps/core/src/domain/permission/helpers/simplePermission.spec.d.ts +0 -1
  465. package/apps/core/src/domain/permission/helpers/treeBasedPermissions.spec.d.ts +0 -1
  466. package/apps/core/src/domain/permission/libraryPermissionDomain.spec.d.ts +0 -1
  467. package/apps/core/src/domain/permission/permissionDomain.spec.d.ts +0 -1
  468. package/apps/core/src/domain/permission/recordAttributePermissionDomain.spec.d.ts +0 -1
  469. package/apps/core/src/domain/permission/recordPermissionDomain.spec.d.ts +0 -1
  470. package/apps/core/src/domain/permission/treeLibraryPermissionDomain.spec.d.ts +0 -1
  471. package/apps/core/src/domain/permission/treeNodePermissionDomain.spec.d.ts +0 -1
  472. package/apps/core/src/domain/permission/treePermissionDomain.spec.d.ts +0 -1
  473. package/apps/core/src/domain/plugins/pluginsDomain.spec.d.ts +0 -1
  474. package/apps/core/src/domain/record/helpers/findRecords.spec.d.ts +0 -1
  475. package/apps/core/src/domain/record/helpers/getRecordFieldValue.spec.d.ts +0 -0
  476. package/apps/core/src/domain/record/recordDomain.spec.d.ts +0 -1
  477. package/apps/core/src/domain/tasksManager/tasksManagerDomain.spec.d.ts +0 -1
  478. package/apps/core/src/domain/tree/helpers/getDefaultElement.spec.d.ts +0 -1
  479. package/apps/core/src/domain/tree/helpers/handleRemovedLibraries.spec.d.ts +0 -1
  480. package/apps/core/src/domain/tree/helpers/treeDataValidation.spec.d.ts +0 -1
  481. package/apps/core/src/domain/tree/treeDomain.spec.d.ts +0 -1
  482. package/apps/core/src/domain/user/userDomain.spec.d.ts +0 -1
  483. package/apps/core/src/domain/value/helpers/areValuesIdentical.spec.d.ts +0 -1
  484. package/apps/core/src/domain/value/helpers/formatLogValue.spec.d.ts +0 -1
  485. package/apps/core/src/domain/value/valueDomain.spec.d.ts +0 -1
  486. package/apps/core/src/domain/versionProfile/versionProfileDomain.spec.d.ts +0 -1
  487. package/apps/core/src/domain/view/viewDomain.spec.d.ts +0 -1
  488. package/apps/core/src/infra/apiKey/apiKeyRepo.spec.d.ts +0 -1
  489. package/apps/core/src/infra/application/applicationRepo.spec.d.ts +0 -1
  490. package/apps/core/src/infra/attribute/attributeRepo.spec.d.ts +0 -1
  491. package/apps/core/src/infra/attributeTypes/attributeAdvancedLinkRepo.spec.d.ts +0 -1
  492. package/apps/core/src/infra/attributeTypes/attributeAdvancedRepo.spec.d.ts +0 -1
  493. package/apps/core/src/infra/attributeTypes/attributeSimpleLinkRepo.spec.d.ts +0 -1
  494. package/apps/core/src/infra/attributeTypes/attributeSimpleRepo.spec.d.ts +0 -1
  495. package/apps/core/src/infra/attributeTypes/attributeTreeRepo.spec.d.ts +0 -1
  496. package/apps/core/src/infra/attributeTypes/attributeTypesRepo.spec.d.ts +0 -1
  497. package/apps/core/src/infra/db/dbService.spec.d.ts +0 -1
  498. package/apps/core/src/infra/db/dbUtils.spec.d.ts +0 -1
  499. package/apps/core/src/infra/filesManager/filesManagerRepo.spec.d.ts +0 -1
  500. package/apps/core/src/infra/form/formRepo.spec.d.ts +0 -1
  501. package/apps/core/src/infra/globalSettings/globalSettingsRepo.spec.d.ts +0 -1
  502. package/apps/core/src/infra/indexation/helpers/getSearchQuery.spec.d.ts +0 -1
  503. package/apps/core/src/infra/library/libraryRepo.spec.d.ts +0 -1
  504. package/apps/core/src/infra/log/logRepo.spec.d.ts +0 -1
  505. package/apps/core/src/infra/oidc/__tests__/oidcClient.spec.d.ts +0 -1
  506. package/apps/core/src/infra/oidc/__tests__/oidcClientService.spec.d.ts +0 -1
  507. package/apps/core/src/infra/permission/permissionRepo.spec.d.ts +0 -1
  508. package/apps/core/src/infra/plugins/pluginsRepo.spec.d.ts +0 -1
  509. package/apps/core/src/infra/record/helpers/filterTypes.spec.d.ts +0 -1
  510. package/apps/core/src/infra/record/helpers/getClassifyingFiltersVariableQueryPart.spec.d.ts +0 -1
  511. package/apps/core/src/infra/record/helpers/getSearchVariableName.spec.d.ts +0 -1
  512. package/apps/core/src/infra/record/helpers/getSearchVariablesQueryPart.spec.d.ts +0 -1
  513. package/apps/core/src/infra/record/recordRepo.spec.d.ts +0 -1
  514. package/apps/core/src/infra/task/taskRepo.spec.d.ts +0 -1
  515. package/apps/core/src/infra/tree/treeRepo.spec.d.ts +0 -1
  516. package/apps/core/src/infra/userData/userDataRepo.spec.d.ts +0 -1
  517. package/apps/core/src/infra/value/valueRepo.spec.d.ts +0 -1
  518. package/apps/core/src/infra/versionProfile/versionProfileRepo.spec.d.ts +0 -1
  519. package/apps/core/src/infra/view/viewRepo.spec.d.ts +0 -1
  520. package/apps/core/src/interface/helpers/handleGraphqlError.spec.d.ts +0 -1
  521. package/apps/core/src/utils/dataloader.spec.d.ts +0 -1
  522. package/apps/core/src/utils/helpers/getValuesToDisplay.spec.d.ts +0 -1
  523. package/apps/core/src/utils/typeGuards/typeGuards.spec.d.ts +0 -1
  524. package/apps/core/src/utils/utils.spec.d.ts +0 -1
  525. /package/apps/core/{scripts/preload.d.ts → src/pluginsModuleResolver.d.ts} +0 -0
@@ -1,7 +1,7 @@
1
1
  import { type IAmqpService } from '@leav/message-broker';
2
2
  import { PreviewPriority } from '@leav/utils';
3
3
  import { type ILogger } from '@leav/logger';
4
- import type * as Config from '_types/config';
4
+ import type * as Config from '../../../_types/config';
5
5
  import { type IPreviewMessage, type IPreviewVersion } from '../../../_types/filesManager';
6
6
  export declare const sendPreviewMessage: (previewMessage: IPreviewMessage, priority: PreviewPriority, deps: {
7
7
  amqpService: IAmqpService;
@@ -1,13 +1,13 @@
1
1
  import { type IAmqpService } from '@leav/message-broker';
2
- import { type UpdateRecordLastModifFunc } from 'domain/helpers/updateRecordLastModif';
3
- import { type ILibraryDomain } from 'domain/library/libraryDomain';
4
- import { type SendRecordUpdateEventHelper } from 'domain/record/helpers/sendRecordUpdateEvent';
5
- import { type IRecordDomain } from 'domain/record/recordDomain';
6
- import { type IValueDomain } from 'domain/value/valueDomain';
7
- import { type IRecordRepo } from 'infra/record/recordRepo';
8
- import { type IUtils } from 'utils/utils';
9
- import type * as Config from '_types/config';
10
- import { type IQueryInfos } from '_types/queryInfos';
2
+ import { type UpdateRecordLastModifFunc } from '../../helpers/updateRecordLastModif';
3
+ import { type ILibraryDomain } from '../../library/libraryDomain';
4
+ import { type SendRecordUpdateEventHelper } from '../../record/helpers/sendRecordUpdateEvent';
5
+ import { type IRecordDomain } from '../../record/recordDomain';
6
+ import { type IValueDomain } from '../../value/valueDomain';
7
+ import { type IRecordRepo } from '../../../infra/record/recordRepo';
8
+ import { type IUtils } from '../../../utils/utils';
9
+ import type * as Config from '../../../_types/config';
10
+ import { type IQueryInfos } from '../../../_types/queryInfos';
11
11
  import { type ILogger } from '@leav/logger';
12
12
  export interface IHandlePreviewResponseDeps {
13
13
  amqpService: IAmqpService;
@@ -1,7 +1,7 @@
1
1
  import { type ILogger } from '@leav/logger';
2
- import { type IConfig } from '_types/config';
3
- import { type IFileEventData } from '_types/filesManager';
4
- import { type IQueryInfos } from '_types/queryInfos';
2
+ import { type IConfig } from '../../../../_types/config';
3
+ import { type IFileEventData } from '../../../../_types/filesManager';
4
+ import { type IQueryInfos } from '../../../../_types/queryInfos';
5
5
  import { type HandleFileSystemEventFunc } from '../handleFileSystemEvent/_types';
6
6
  export interface IMessagesHandlerHelper {
7
7
  handleMessage(message: IFileEventData, ctx: IQueryInfos): any;
@@ -1,17 +1,17 @@
1
- import { type IAttributeDomain } from 'domain/attribute/attributeDomain';
2
- import { type IValidateHelper } from 'domain/helpers/validate';
3
- import { type ILibraryDomain } from 'domain/library/libraryDomain';
4
- import { type IAttributePermissionDomain } from 'domain/permission/attributePermissionDomain';
5
- import { type IRecordAttributePermissionDomain } from 'domain/permission/recordAttributePermissionDomain';
6
- import { type IRecordDomain } from 'domain/record/recordDomain';
7
- import { type ITreeDomain } from 'domain/tree/treeDomain';
1
+ import { type IAttributeDomain } from '../attribute/attributeDomain';
2
+ import { type IValidateHelper } from '../helpers/validate';
3
+ import { type ILibraryDomain } from '../library/libraryDomain';
4
+ import { type IAttributePermissionDomain } from '../permission/attributePermissionDomain';
5
+ import { type IRecordAttributePermissionDomain } from '../permission/recordAttributePermissionDomain';
6
+ import { type IRecordDomain } from '../record/recordDomain';
7
+ import { type ITreeDomain } from '../tree/treeDomain';
8
8
  import { type i18n } from 'i18next';
9
- import { type IFormRepo } from 'infra/form/formRepo';
10
- import { type IUtils } from 'utils/utils';
9
+ import { type IFormRepo } from '../../infra/form/formRepo';
10
+ import { type IUtils } from '../../utils/utils';
11
11
  import { type ILogger } from '@leav/logger';
12
- import { type IQueryInfos } from '_types/queryInfos';
13
- import { type IGetCoreEntitiesParams } from '_types/shared';
14
- import { type IValueVersion } from '_types/value';
12
+ import { type IQueryInfos } from '../../_types/queryInfos';
13
+ import { type IGetCoreEntitiesParams } from '../../_types/shared';
14
+ import { type IValueVersion } from '../../_types/value';
15
15
  import { type IForm, type IRecordForm } from '../../_types/forms';
16
16
  import { type IList } from '../../_types/list';
17
17
  import { type IAdminPermissionDomain } from '../permission/adminPermissionDomain';
@@ -1,7 +1,7 @@
1
- import { type IRecordDomain } from 'domain/record/recordDomain';
2
- import { type IUtils } from 'utils/utils';
3
- import { type IQueryInfos } from '_types/queryInfos';
4
- import { type IValue, type IValueVersion } from '_types/value';
1
+ import { type IRecordDomain } from '../../record/recordDomain';
2
+ import { type IUtils } from '../../../utils/utils';
3
+ import { type IQueryInfos } from '../../../_types/queryInfos';
4
+ import { type IValue, type IValueVersion } from '../../../_types/value';
5
5
  import { type IFormElement } from '../../../_types/forms';
6
6
  export declare const getElementValues: (params: {
7
7
  element: IFormElement;
@@ -1,7 +1,7 @@
1
- import { type IRecordDomain } from 'domain/record/recordDomain';
2
- import { type ITreeDomain } from 'domain/tree/treeDomain';
3
- import { type IFormDependentElements } from '_types/forms';
4
- import { type IQueryInfos } from '_types/queryInfos';
1
+ import { type IRecordDomain } from '../../record/recordDomain';
2
+ import { type ITreeDomain } from '../../tree/treeDomain';
3
+ import { type IFormDependentElements } from '../../../_types/forms';
4
+ import { type IQueryInfos } from '../../../_types/queryInfos';
5
5
  /**
6
6
  * Check if element must be included in form based on dependencies
7
7
  */
@@ -1,8 +1,8 @@
1
- import { type IEventsManagerDomain } from 'domain/eventsManager/eventsManagerDomain';
2
- import { type IAdminPermissionDomain } from 'domain/permission/adminPermissionDomain';
3
- import { type IGlobalSettingsRepo } from 'infra/globalSettings/globalSettingsRepo';
4
- import { type IGlobalSettings } from '_types/globalSettings';
5
- import { type IQueryInfos } from '_types/queryInfos';
1
+ import { type IEventsManagerDomain } from '../eventsManager/eventsManagerDomain';
2
+ import { type IAdminPermissionDomain } from '../permission/adminPermissionDomain';
3
+ import { type IGlobalSettingsRepo } from '../../infra/globalSettings/globalSettingsRepo';
4
+ import { type IGlobalSettings } from '../../_types/globalSettings';
5
+ import { type IQueryInfos } from '../../_types/queryInfos';
6
6
  import { type IUtils } from '../../utils/utils';
7
7
  import { type ICachesService } from '../../infra/cache/cacheService';
8
8
  export interface IGlobalSettingsDomain {
@@ -1,4 +1,4 @@
1
- import { type ActionsListValueType, type IActionsListContext } from '_types/actionsList';
1
+ import { type ActionsListValueType, type IActionsListContext } from '../../../_types/actionsList';
2
2
  import { type IVariableFunctions } from './calculationsVariableFunctions';
3
3
  import { type ITreeNode } from '../../../_types/tree';
4
4
  interface IDeps {
@@ -1,7 +1,7 @@
1
- import { type IAttributeDomain } from 'domain/attribute/attributeDomain';
2
- import { type IVariableValue } from 'domain/helpers/calculations/calculationVariable';
3
- import { type IRecordDomain } from 'domain/record/recordDomain';
4
- import { type IActionsListContext } from '_types/actionsList';
1
+ import { type IAttributeDomain } from '../../attribute/attributeDomain';
2
+ import { type IVariableValue } from './calculationVariable';
3
+ import { type IRecordDomain } from '../../record/recordDomain';
4
+ import { type IActionsListContext } from '../../../_types/actionsList';
5
5
  interface IDeps {
6
6
  'core.domain.record': IRecordDomain;
7
7
  'core.domain.attribute': IAttributeDomain;
@@ -1,5 +1,5 @@
1
- import { type IUtils } from 'utils/utils';
2
- import { type IQueryInfos } from '_types/queryInfos';
1
+ import { type IUtils } from '../../utils/utils';
2
+ import { type IQueryInfos } from '../../_types/queryInfos';
3
3
  export type CreateDirectoryFunc = (name: string, path: string, ctx: IQueryInfos) => Promise<void>;
4
4
  interface IDeps {
5
5
  'core.utils': IUtils;
@@ -1,10 +1,10 @@
1
- import { type IAttributeRepo } from 'infra/attribute/attributeRepo';
2
- import { type ILibraryRepo } from 'infra/library/libraryRepo';
3
- import { type ITreeRepo } from 'infra/tree/treeRepo';
4
- import { type IVersionProfileRepo } from 'infra/versionProfile/versionProfileRepo';
5
- import { type IViewRepo } from 'infra/view/_types';
6
- import { type IUtils } from 'utils/utils';
7
- import { type IQueryInfos } from '_types/queryInfos';
1
+ import { type IAttributeRepo } from '../../infra/attribute/attributeRepo';
2
+ import { type ILibraryRepo } from '../../infra/library/libraryRepo';
3
+ import { type ITreeRepo } from '../../infra/tree/treeRepo';
4
+ import { type IVersionProfileRepo } from '../../infra/versionProfile/versionProfileRepo';
5
+ import { type IViewRepo } from '../../infra/view/_types';
6
+ import { type IUtils } from '../../utils/utils';
7
+ import { type IQueryInfos } from '../../_types/queryInfos';
8
8
  import { type ICachesService } from '../../infra/cache/cacheService';
9
9
  interface IDeps {
10
10
  'core.infra.library': ILibraryRepo;
@@ -1,7 +1,7 @@
1
- import { type IRecordRepo } from 'infra/record/recordRepo';
2
- import { type IUtils } from 'utils/utils';
3
- import { type IQueryInfos } from '_types/queryInfos';
4
- import { type IRecord } from '_types/record';
1
+ import { type IRecordRepo } from '../../infra/record/recordRepo';
2
+ import { type IUtils } from '../../utils/utils';
3
+ import { type IQueryInfos } from '../../_types/queryInfos';
4
+ import { type IRecord } from '../../_types/record';
5
5
  import { type ICachesService } from '../../infra/cache/cacheService';
6
6
  interface IDeps {
7
7
  'core.infra.record': IRecordRepo;
@@ -1,6 +1,6 @@
1
- import { type ITasksManagerDomain } from 'domain/tasksManager/tasksManagerDomain';
2
- import { type IQueryInfos } from '_types/queryInfos';
3
- import type * as Config from '_types/config';
1
+ import { type ITasksManagerDomain } from '../tasksManager/tasksManagerDomain';
2
+ import { type IQueryInfos } from '../../_types/queryInfos';
3
+ import type * as Config from '../../_types/config';
4
4
  import { type i18n } from 'i18next';
5
5
  interface IDeps {
6
6
  'core.domain.tasksManager': ITasksManagerDomain;
@@ -1,9 +1,9 @@
1
- import { type ICachesService } from 'infra/cache/cacheService';
2
- import { type ILibraryRepo } from 'infra/library/libraryRepo';
3
- import { type IRecordRepo } from 'infra/record/recordRepo';
4
- import { type IUtils } from 'utils/utils';
5
- import { type ILibrary } from '_types/library';
6
- import { type IQueryInfos } from '_types/queryInfos';
1
+ import { type ICachesService } from '../../infra/cache/cacheService';
2
+ import { type ILibraryRepo } from '../../infra/library/libraryRepo';
3
+ import { type IRecordRepo } from '../../infra/record/recordRepo';
4
+ import { type IUtils } from '../../utils/utils';
5
+ import { type ILibrary } from '../../_types/library';
6
+ import { type IQueryInfos } from '../../_types/queryInfos';
7
7
  import { type IRecord } from '../../_types/record';
8
8
  import { type GetCoreEntityByIdFunc } from './getCoreEntityById';
9
9
  interface IDeps {
@@ -1,16 +1,16 @@
1
- import { type IAttributeDomain } from 'domain/attribute/attributeDomain';
2
- import { type IEventsManagerDomain } from 'domain/eventsManager/eventsManagerDomain';
3
- import { type UpdateTaskProgress } from 'domain/helpers/updateTaskProgress';
4
- import { type ILibraryDomain } from 'domain/library/libraryDomain';
5
- import { type IRecordDomain } from 'domain/record/recordDomain';
6
- import { type ITasksManagerDomain } from 'domain/tasksManager/tasksManagerDomain';
7
- import { type ITreeDomain } from 'domain/tree/treeDomain';
8
- import { type IValueDomain } from 'domain/value/valueDomain';
9
- import { type IPermissionDomain } from 'domain/permission/permissionDomain';
1
+ import { type IAttributeDomain } from '../attribute/attributeDomain';
2
+ import { type IEventsManagerDomain } from '../eventsManager/eventsManagerDomain';
3
+ import { type UpdateTaskProgress } from '../helpers/updateTaskProgress';
4
+ import { type ILibraryDomain } from '../library/libraryDomain';
5
+ import { type IRecordDomain } from '../record/recordDomain';
6
+ import { type ITasksManagerDomain } from '../tasksManager/tasksManagerDomain';
7
+ import { type ITreeDomain } from '../tree/treeDomain';
8
+ import { type IValueDomain } from '../value/valueDomain';
9
+ import { type IPermissionDomain } from '../permission/permissionDomain';
10
10
  import { type AwilixContainer } from 'awilix';
11
11
  import { type i18n } from 'i18next';
12
- import { type IUtils } from 'utils/utils';
13
- import type * as Config from '_types/config';
12
+ import { type IUtils } from '../../utils/utils';
13
+ import type * as Config from '../../_types/config';
14
14
  import { type ICachesService } from '../../infra/cache/cacheService';
15
15
  import { type IDbUtils } from '../../infra/db/dbUtils';
16
16
  import { ImportMode, ImportType } from '../../_types/import';
@@ -1,18 +1,18 @@
1
1
  import { type IAmqpService } from '@leav/message-broker';
2
- import { type IAttributeDomain } from 'domain/attribute/attributeDomain';
3
- import { type IEventsManagerDomain } from 'domain/eventsManager/eventsManagerDomain';
4
- import { type ILibraryDomain } from 'domain/library/libraryDomain';
5
- import { type IRecordDomain } from 'domain/record/recordDomain';
6
- import { type IFindRecordParams } from 'domain/record/_types';
7
- import { type ITasksManagerDomain } from 'domain/tasksManager/tasksManagerDomain';
2
+ import { type IAttributeDomain } from '../attribute/attributeDomain';
3
+ import { type IEventsManagerDomain } from '../eventsManager/eventsManagerDomain';
4
+ import { type ILibraryDomain } from '../library/libraryDomain';
5
+ import { type IRecordDomain } from '../record/recordDomain';
6
+ import { type IFindRecordParams } from '../record/_types';
7
+ import { type ITasksManagerDomain } from '../tasksManager/tasksManagerDomain';
8
8
  import { type i18n } from 'i18next';
9
9
  import { type ILogger } from '@leav/logger';
10
- import type * as Config from '_types/config';
11
- import { type IQueryInfos } from '_types/queryInfos';
10
+ import type * as Config from '../../_types/config';
11
+ import { type IQueryInfos } from '../../_types/queryInfos';
12
12
  import { type IIndexationService } from '../../infra/indexation/indexationService';
13
13
  import { type ITaskFuncParams } from '../../_types/tasksManager';
14
14
  import { type GetSystemQueryContext } from '../../utils/helpers/getSystemQueryContext';
15
- import { type IAdminPermissionDomain } from 'domain/permission/adminPermissionDomain';
15
+ import { type IAdminPermissionDomain } from '../permission/adminPermissionDomain';
16
16
  interface IIndexDatabaseParams {
17
17
  findRecordParams: IFindRecordParams | IFindRecordParams[];
18
18
  attributes?: {
@@ -0,0 +1 @@
1
+ export { default } from './jexlDomain';
@@ -0,0 +1,19 @@
1
+ import { type IValueDomain } from '../value/valueDomain';
2
+ import { type IQueryInfos } from '../../_types/queryInfos';
3
+ import { type IRecord } from '../../_types/record';
4
+ import { type IValue } from '../../_types/value';
5
+ import { type ITreeNode } from '../../_types/tree';
6
+ import { type JexlContext, type JexlRecordContext, type JexlRootContext, type JexlTreeNodeContext, type JexlValueContext } from './types';
7
+ interface IDeps {
8
+ 'core.domain.value': IValueDomain;
9
+ }
10
+ export interface IJexlDomain {
11
+ eval<Ctx extends JexlContext>(expression: string, context?: Ctx): Promise<any>;
12
+ validate(expression: string): Promise<void>;
13
+ buildRootContext: <T>(contextData: T, ctx: IQueryInfos) => JexlRootContext<T>;
14
+ buildRecordContext: (record: IRecord, ctx: IQueryInfos) => JexlRecordContext;
15
+ buildTreeNodeContext: (treeNode: ITreeNode, ctx: IQueryInfos) => JexlTreeNodeContext;
16
+ buildValuesContext: (values: IValue[], ctx: IQueryInfos) => JexlValueContext[];
17
+ }
18
+ export default function ({ 'core.domain.value': valueDomain }: IDeps): IJexlDomain;
19
+ export {};
@@ -0,0 +1,2 @@
1
+ import jexl from 'jexl-extended';
2
+ export default jexl;
@@ -0,0 +1,37 @@
1
+ import { type IQueryInfos } from '../../_types/queryInfos';
2
+ import { type IRecord } from '../../_types/record';
3
+ import { type ITreeNode } from '../../_types/tree';
4
+ import { type IStandardValue } from '../../_types/value';
5
+ export declare enum JexlContextType {
6
+ ROOT = "root",
7
+ RECORD = "record",
8
+ TREE_NODE = "treeNode",
9
+ USER = "user"
10
+ }
11
+ export type JexlContext<T extends JexlContextType = JexlContextType> = {
12
+ /**
13
+ * This property is used internally to identify the type of context (root, record, tree node, user)
14
+ * and should not be used in Jexl expressions as it may cause conflicts with user-defined properties.
15
+ */
16
+ __jexlContextType: T;
17
+ /**
18
+ * This method is used internally to retrieve the IQueryInfos context for the current Jexl evaluation.
19
+ * It should not be used in Jexl expressions as it may cause conflicts with user-defined properties and is not intended for direct use in expressions.
20
+ */
21
+ __getJexlQueryCtx(): IQueryInfos;
22
+ };
23
+ /**
24
+ * The jexl context to be passed in jexl evaluation
25
+ * Still subject to change but the idea is to have a clear separation between root context (which can be defined by the user of the jexl domain)
26
+ * and record/tree node contexts which are built from values payload when using getValues transform or function in jexl expressions
27
+ */
28
+ export type JexlRootContext<T = unknown> = T & JexlContext<JexlContextType.ROOT> & {
29
+ currentUser: JexlUserContext;
30
+ };
31
+ export type JexlRecordContext = IRecord & JexlContext<JexlContextType.RECORD>;
32
+ export type JexlTreeNodeContext = ITreeNode & JexlContext<JexlContextType.TREE_NODE>;
33
+ export type JexlUserContext = JexlContext<JexlContextType.USER> & {
34
+ record: JexlRecordContext;
35
+ lang?: string;
36
+ };
37
+ export type JexlValueContext = IStandardValue['payload'] | JexlRecordContext | JexlTreeNodeContext;
@@ -1,5 +1,5 @@
1
- import { type IAdminPermissionDomain } from 'domain/permission/adminPermissionDomain';
2
- import { type IQueryInfos } from '_types/queryInfos';
1
+ import { type IAdminPermissionDomain } from '../../permission/adminPermissionDomain';
2
+ import { type IQueryInfos } from '../../../_types/queryInfos';
3
3
  import { AdminPermissionsActions } from '../../../_types/permissions';
4
4
  declare const _default: (existingLib: boolean, deps: {
5
5
  adminPermissionDomain: IAdminPermissionDomain;
@@ -1,8 +1,8 @@
1
- import { type IRecordDomain } from 'domain/record/recordDomain';
2
- import { type IValueDomain } from 'domain/value/valueDomain';
3
- import { type IAttributeDomain } from 'domain/attribute/attributeDomain';
4
- import { type IQueryInfos } from '_types/queryInfos';
5
- import { type IValueRepo } from 'infra/value/valueRepo';
1
+ import { type IRecordDomain } from '../../record/recordDomain';
2
+ import { type IValueDomain } from '../../value/valueDomain';
3
+ import { type IAttributeDomain } from '../../attribute/attributeDomain';
4
+ import { type IQueryInfos } from '../../../_types/queryInfos';
5
+ import { type IValueRepo } from '../../../infra/value/valueRepo';
6
6
  interface IDeps {
7
7
  'core.domain.record'?: IRecordDomain;
8
8
  'core.domain.value'?: IValueDomain;
@@ -1,4 +1,3 @@
1
1
  export { default as deleteAssociatedValues } from './deleteAssociatedValues';
2
- export { default as runBehaviorPostSave } from './runBehaviorPostSave';
3
2
  export { default as runPreDelete } from './runPreDelete';
4
3
  export { default as updateAssociatedForms } from './updateAssociatedForms';
@@ -1,10 +1,10 @@
1
1
  import { type i18n } from 'i18next';
2
- import { type IAttributeRepo } from 'infra/attribute/attributeRepo';
3
- import { type ILibraryRepo } from 'infra/library/libraryRepo';
4
- import { type ITreeRepo } from 'infra/tree/treeRepo';
5
- import { type IUtils } from 'utils/utils';
6
- import { type IConfig } from '_types/config';
7
- import { type IQueryInfos } from '_types/queryInfos';
2
+ import { type IAttributeRepo } from '../../../infra/attribute/attributeRepo';
3
+ import { type ILibraryRepo } from '../../../infra/library/libraryRepo';
4
+ import { type ITreeRepo } from '../../../infra/tree/treeRepo';
5
+ import { type IUtils } from '../../../utils/utils';
6
+ import { type IConfig } from '../../../_types/config';
7
+ import { type IQueryInfos } from '../../../_types/queryInfos';
8
8
  import { type ILibrary } from '../../../_types/library';
9
9
  interface IDeps {
10
10
  treeRepo: ITreeRepo;
@@ -1,7 +1,7 @@
1
- import { type ITreeDomain } from 'domain/tree/treeDomain';
2
- import { type ITreeRepo } from 'infra/tree/treeRepo';
3
- import { type IUtils } from 'utils/utils';
4
- import { type IQueryInfos } from '_types/queryInfos';
1
+ import { type ITreeDomain } from '../../tree/treeDomain';
2
+ import { type ITreeRepo } from '../../../infra/tree/treeRepo';
3
+ import { type IUtils } from '../../../utils/utils';
4
+ import { type IQueryInfos } from '../../../_types/queryInfos';
5
5
  import { type ILibrary } from '../../../_types/library';
6
6
  interface IDeps {
7
7
  'core.domain.tree'?: ITreeDomain;
@@ -1,5 +1,5 @@
1
- import { type IQueryInfos } from '_types/queryInfos';
2
- import { type IFormDomain } from 'domain/form/formDomain';
1
+ import { type IQueryInfos } from '../../../_types/queryInfos';
2
+ import { type IFormDomain } from '../../form/formDomain';
3
3
  interface IDeps {
4
4
  'core.domain.form'?: IFormDomain;
5
5
  }
@@ -1,6 +1,6 @@
1
- import { type IAttributeDomain } from 'domain/attribute/attributeDomain';
2
- import { type ILibrary } from '_types/library';
3
- import { type IQueryInfos } from '_types/queryInfos';
1
+ import { type IAttributeDomain } from '../../attribute/attributeDomain';
2
+ import { type ILibrary } from '../../../_types/library';
3
+ import { type IQueryInfos } from '../../../_types/queryInfos';
4
4
  import { type ErrorFieldDetail } from '../../../_types/errors';
5
5
  declare const _default: (libraryData: ILibrary, attributes: string[], deps: {
6
6
  attributeDomain: IAttributeDomain;
@@ -1,4 +1,4 @@
1
- import { type ILibrary } from '_types/library';
1
+ import { type ILibrary } from '../../../_types/library';
2
2
  import { type ErrorFieldDetail } from '../../../_types/errors';
3
3
  declare const _default: (attributes: string[], fullTextAttributes: string[]) => ErrorFieldDetail<ILibrary>;
4
4
  export default _default;
@@ -1,8 +1,8 @@
1
- import { type IAttributeDomain } from 'domain/attribute/attributeDomain';
2
- import { type ILibrary } from '_types/library';
3
- import { type ITreePermissionsConf } from '_types/permissions';
1
+ import { type IAttributeDomain } from '../../attribute/attributeDomain';
2
+ import { type ILibrary } from '../../../_types/library';
3
+ import { type ITreePermissionsConf } from '../../../_types/permissions';
4
4
  import { type ErrorFieldDetail } from '../../../_types/errors';
5
- import { type IQueryInfos } from '_types/queryInfos';
5
+ import { type IQueryInfos } from '../../../_types/queryInfos';
6
6
  declare const _default: (permissionsConf: ITreePermissionsConf, deps: {
7
7
  attributeDomain: IAttributeDomain;
8
8
  }, ctx: IQueryInfos) => Promise<ErrorFieldDetail<ILibrary>>;
@@ -1,4 +1,4 @@
1
- import { type IQueryInfos } from '_types/queryInfos';
1
+ import { type IQueryInfos } from '../../../_types/queryInfos';
2
2
  import { type ErrorFieldDetail } from '../../../_types/errors';
3
3
  import { type ILibrary } from '../../../_types/library';
4
4
  declare const _default: (libData: ILibrary, ctx: IQueryInfos) => Promise<ErrorFieldDetail<ILibrary>>;
@@ -1,7 +1,7 @@
1
- import { type IAttributeDomain } from 'domain/attribute/attributeDomain';
2
- import { type ILibrary } from '_types/library';
1
+ import { type IAttributeDomain } from '../../attribute/attributeDomain';
2
+ import { type ILibrary } from '../../../_types/library';
3
3
  import { type ErrorFieldDetail } from '../../../_types/errors';
4
- import { type IQueryInfos } from '_types/queryInfos';
4
+ import { type IQueryInfos } from '../../../_types/queryInfos';
5
5
  declare const _default: (libData: ILibrary, libAttributes: string[], deps: {
6
6
  attributeDomain: IAttributeDomain;
7
7
  }, ctx: IQueryInfos) => Promise<ErrorFieldDetail<ILibrary>>;
@@ -1,15 +1,15 @@
1
- import { type IEventsManagerDomain } from 'domain/eventsManager/eventsManagerDomain';
2
- import { type GetCoreEntityByIdFunc } from 'domain/helpers/getCoreEntityById';
3
- import { type IValidateHelper } from 'domain/helpers/validate';
4
- import { type IAdminPermissionDomain } from 'domain/permission/adminPermissionDomain';
1
+ import { type IEventsManagerDomain } from '../eventsManager/eventsManagerDomain';
2
+ import { type GetCoreEntityByIdFunc } from '../helpers/getCoreEntityById';
3
+ import { type IValidateHelper } from '../helpers/validate';
4
+ import { type IAdminPermissionDomain } from '../permission/adminPermissionDomain';
5
5
  import { type i18n } from 'i18next';
6
- import { type IAttributeRepo } from 'infra/attribute/attributeRepo';
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 IConfig } from '_types/config';
11
- import { type IQueryInfos } from '_types/queryInfos';
12
- import { type IGetCoreEntitiesParams } from '_types/shared';
6
+ import { type IAttributeRepo } from '../../infra/attribute/attributeRepo';
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 IConfig } from '../../_types/config';
11
+ import { type IQueryInfos } from '../../_types/queryInfos';
12
+ import { type IGetCoreEntitiesParams } from '../../_types/shared';
13
13
  import { type ICachesService } from '../../infra/cache/cacheService';
14
14
  import { type ILibrary } from '../../_types/library';
15
15
  import { type IList } from '../../_types/list';
@@ -1,8 +1,8 @@
1
- import { type ILogRepo } from 'infra/log/logRepo';
2
- import { type ILogFilters, type ILogPagination, type ILogResponse, type ILogSort } from '_types/log';
3
- import { type IQueryInfos } from '_types/queryInfos';
4
- import { type IPermissionDomain } from 'domain/permission/permissionDomain';
5
- import { type IRecordPermissionDomain } from 'domain/permission/recordPermissionDomain';
1
+ import { type ILogRepo } from '../../infra/log/logRepo';
2
+ import { type ILogFilters, type ILogPagination, type ILogResponse, type ILogSort } from '../../_types/log';
3
+ import { type IQueryInfos } from '../../_types/queryInfos';
4
+ import { type IPermissionDomain } from '../permission/permissionDomain';
5
+ import { type IRecordPermissionDomain } from '../permission/recordPermissionDomain';
6
6
  export interface ILogDomain {
7
7
  getLogs: (params: {
8
8
  filters?: ILogFilters;
@@ -1,6 +1,6 @@
1
1
  import { type IAmqpService } from '@leav/message-broker';
2
2
  import { type ILogger } from '@leav/logger';
3
- import type * as Config from '_types/config';
3
+ import type * as Config from '../../_types/config';
4
4
  import { type IIndexationService } from '../../infra/indexation/indexationService';
5
5
  import { type IElasticsearchService } from '../../infra/elasticsearch/elasticsearchService';
6
6
  export interface ILogsCollectorDomain {
@@ -1,8 +1,8 @@
1
1
  import { type INotificationChannel } from '../../../_types/notification';
2
- import { type IMailerService } from 'infra/mailer/mailerService';
3
- import { type IUserDomain } from 'domain/user/userDomain';
4
- import { type IGlobalSettingsDomain } from 'domain/globalSettings/globalSettingsDomain';
5
- import { type IConfig } from '_types/config';
2
+ import { type IMailerService } from '../../../infra/mailer/mailerService';
3
+ import { type IUserDomain } from '../../user/userDomain';
4
+ import { type IGlobalSettingsDomain } from '../../globalSettings/globalSettingsDomain';
5
+ import { type IConfig } from '../../../_types/config';
6
6
  export interface INotificationByEmailChannelDeps {
7
7
  config: IConfig;
8
8
  'core.infra.mailer.mailerService': IMailerService;
@@ -1,5 +1,5 @@
1
1
  import { type INotificationChannel } from '../../../_types/notification';
2
- import { type IEventsManagerDomain } from 'domain/eventsManager/eventsManagerDomain';
2
+ import { type IEventsManagerDomain } from '../../eventsManager/eventsManagerDomain';
3
3
  export interface INotificationByWebSocketChannelDeps {
4
4
  'core.domain.eventsManager': IEventsManagerDomain;
5
5
  }
@@ -1,6 +1,6 @@
1
- import { type IConfig } from '_types/config';
2
- import { type INotificationChannel, type ICreateNotification, type INotification } from '_types/notification';
3
- import { type IQueryInfos } from '_types/queryInfos';
1
+ import { type IConfig } from '../../_types/config';
2
+ import { type INotificationChannel, type ICreateNotification, type INotification } from '../../_types/notification';
3
+ import { type IQueryInfos } from '../../_types/queryInfos';
4
4
  import { type INotificationRepo } from '../../infra/notification/notificationRepo';
5
5
  import { type IList } from '../../_types/list';
6
6
  export interface INotificationDomain {
@@ -1,5 +1,5 @@
1
- import { type IPermissionsDependenciesTreeTarget, type AdminPermissionsActions, type ApplicationPermissionsActions, type AttributePermissionsActions, type IPermissionsTreeTarget, type ITreePermissionsConf, type LibraryPermissionsActions, type PermissionsActions, type PermissionTypes, type RecordAttributePermissionsActions, type RecordPermissionsActions, type TreeNodePermissionsActions, type TreePermissionsActions } from '_types/permissions';
2
- import { type IQueryInfos } from '_types/queryInfos';
1
+ import { type IPermissionsDependenciesTreeTarget, type AdminPermissionsActions, type ApplicationPermissionsActions, type AttributePermissionsActions, type IPermissionsTreeTarget, type ITreePermissionsConf, type LibraryPermissionsActions, type PermissionsActions, type PermissionTypes, type RecordAttributePermissionsActions, type RecordPermissionsActions, type TreeNodePermissionsActions, type TreePermissionsActions } from '../../_types/permissions';
2
+ import { type IQueryInfos } from '../../_types/queryInfos';
3
3
  import { type IGetDefaultPermissionParams } from './helpers/defaultPermission';
4
4
  export declare const PERMISSIONS_CACHE_HEADER = "permissions";
5
5
  export declare const PERMISSIONS_NULL_PLACEHOLDER = "__null__";
@@ -1,9 +1,9 @@
1
- import { type IQueryInfos } from '_types/queryInfos';
2
- import { type IValueRepo } from 'infra/value/valueRepo';
1
+ import { type IQueryInfos } from '../../_types/queryInfos';
2
+ import { type IValueRepo } from '../../infra/value/valueRepo';
3
3
  import { type AttributeDependentValuesPermissionsActions, type IPermissionsDependenciesTreeTarget, type IPermissionsTreeTarget } from '../../_types/permissions';
4
4
  import { type IAttributeDomain } from '../attribute/attributeDomain';
5
5
  import { type IPermissionByUserGroupsHelper } from './helpers/permissionByUserGroups';
6
- import { type IElementAncestorsHelper } from 'domain/tree/helpers/elementAncestors';
6
+ import { type IElementAncestorsHelper } from '../tree/helpers/elementAncestors';
7
7
  export interface IAttributeDependentValuesPermissionDomain {
8
8
  getAttributeDependentValuesPermission(params: {
9
9
  action: AttributeDependentValuesPermissionsActions;
@@ -21,12 +21,16 @@ export interface IAttributeDependentValuesPermissionDomain {
21
21
  dependenciesTreeTargets: IPermissionsDependenciesTreeTarget[];
22
22
  ctx: IQueryInfos;
23
23
  }): Promise<boolean>;
24
- filterAllowedDependentValuesOnItself(params: {
24
+ filterAllowedWorkflowDependentValues(params: {
25
25
  action: AttributeDependentValuesPermissionsActions;
26
26
  attributeId: string;
27
27
  targetValue: {
28
28
  nodeId: string | null;
29
29
  };
30
+ dependentValue?: {
31
+ attributeId: string;
32
+ nodeId: string | null;
33
+ };
30
34
  allValues: Array<{
31
35
  nodeId: string | null;
32
36
  }>;