@aristid/leav-types 1.11.0 → 1.12.0-194bf86d

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 (283) hide show
  1. package/CLAUDE.md +42 -0
  2. package/apps/core/config/default.d.ts +4 -0
  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/__tests__/e2e/_gqlTypes/index.d.ts +415 -58
  6. package/apps/core/src/__tests__/e2e/api/_fixtures/fakeplugin/domain/fakeDomain.d.ts +6 -2
  7. package/apps/core/src/__tests__/e2e/api/_fixtures/fakeplugin/index.d.ts +2 -2
  8. package/apps/core/src/__tests__/e2e/api/automation/automation.test.d.ts +1 -0
  9. package/apps/core/src/__tests__/e2e/api/e2eUtils.d.ts +49 -11
  10. package/apps/core/src/__tests__/e2e/api/globalSetup.d.ts +1 -1
  11. package/apps/core/src/__tests__/e2e/api/joinLibraries/nestedJoinLibraries.test.d.ts +1 -0
  12. package/apps/core/src/__tests__/e2e/api/notificationUtils.d.ts +1 -1
  13. package/apps/core/src/__tests__/integration/domain/automation/pipelineExecutor.test.d.ts +1 -0
  14. package/apps/core/src/__tests__/integration/infra/automationRuleRepo.test.d.ts +1 -0
  15. package/apps/core/src/__tests__/integration/infra/integrationTestRepoUtils.d.ts +8 -5
  16. package/apps/core/src/__tests__/mockers/amqp.d.ts +1 -1
  17. package/apps/core/src/__tests__/mockers/logger.d.ts +4 -4
  18. package/apps/core/src/__tests__/mocks/globalSettings.d.ts +1 -1
  19. package/apps/core/src/__tests__/mocks/library.d.ts +1 -1
  20. package/apps/core/src/__tests__/mocks/plugins.d.ts +1 -1
  21. package/apps/core/src/__tests__/mocks/record.d.ts +1 -1
  22. package/apps/core/src/__tests__/mocks/shared.d.ts +1 -1
  23. package/apps/core/src/__tests__/mocks/value.d.ts +1 -1
  24. package/apps/core/src/__tests__/mocks/versionProfile.d.ts +1 -1
  25. package/apps/core/src/_types/actionsList.d.ts +1 -1
  26. package/apps/core/src/_types/auth.d.ts +4 -0
  27. package/apps/core/src/_types/automation.d.ts +48 -0
  28. package/apps/core/src/_types/config.d.ts +4 -0
  29. package/apps/core/src/_types/cronTask.d.ts +14 -0
  30. package/apps/core/src/_types/errors.d.ts +1 -0
  31. package/apps/core/src/_types/events.d.ts +3 -0
  32. package/apps/core/src/_types/extensionPoints.d.ts +12 -0
  33. package/apps/core/src/_types/migration.d.ts +1 -1
  34. package/apps/core/src/_types/permissions.d.ts +1 -0
  35. package/apps/core/src/_types/queryInfos.d.ts +1 -1
  36. package/apps/core/src/_types/record.d.ts +1 -1
  37. package/apps/core/src/_types/value.d.ts +2 -2
  38. package/apps/core/src/app/application/applicationApp.d.ts +9 -9
  39. package/apps/core/src/app/auth/authApp.d.ts +10 -8
  40. package/apps/core/src/app/core/actionListApp.d.ts +3 -3
  41. package/apps/core/src/app/core/apiKeyApp/_types.d.ts +2 -2
  42. package/apps/core/src/app/core/apiKeyApp/apiKeyApp.d.ts +3 -3
  43. package/apps/core/src/app/core/attributeApp/attributeApp.d.ts +11 -9
  44. package/apps/core/src/app/core/automationApp.d.ts +22 -0
  45. package/apps/core/src/app/core/coreApp.d.ts +5 -5
  46. package/apps/core/src/app/core/discussionApp.d.ts +2 -2
  47. package/apps/core/src/app/core/eventsManagerApp.d.ts +6 -5
  48. package/apps/core/src/app/core/exportApp.d.ts +2 -2
  49. package/apps/core/src/app/core/filesManagerApp.d.ts +8 -6
  50. package/apps/core/src/app/core/formApp/_types.d.ts +2 -2
  51. package/apps/core/src/app/core/formApp/formApp.d.ts +8 -8
  52. package/apps/core/src/app/core/globalSettingsApp.d.ts +7 -7
  53. package/apps/core/src/app/core/helpers/subscriptions.d.ts +1 -1
  54. package/apps/core/src/app/core/importApp.d.ts +4 -4
  55. package/apps/core/src/app/core/index.d.ts +1 -0
  56. package/apps/core/src/app/core/indexationManagerApp.d.ts +2 -2
  57. package/apps/core/src/app/core/libraryApp/_types.d.ts +2 -2
  58. package/apps/core/src/app/core/libraryApp/libraryApp.d.ts +7 -7
  59. package/apps/core/src/app/core/logApp.d.ts +15 -13
  60. package/apps/core/src/app/core/logsCollectorApp.d.ts +1 -1
  61. package/apps/core/src/app/core/notificationApp.d.ts +3 -3
  62. package/apps/core/src/app/core/permissionApp/_types.d.ts +1 -1
  63. package/apps/core/src/app/core/permissionApp/permissionApp.d.ts +4 -4
  64. package/apps/core/src/app/core/pluginsApp.d.ts +3 -3
  65. package/apps/core/src/app/core/recordApp/_types.d.ts +2 -2
  66. package/apps/core/src/app/core/recordApp/recordApp.d.ts +8 -8
  67. package/apps/core/src/app/core/tasksManagerApp.d.ts +11 -9
  68. package/apps/core/src/app/core/treeApp/_types.d.ts +4 -4
  69. package/apps/core/src/app/core/treeApp/treeApp.d.ts +5 -5
  70. package/apps/core/src/app/core/userDataApp.d.ts +1 -1
  71. package/apps/core/src/app/core/valueApp.d.ts +6 -6
  72. package/apps/core/src/app/core/versionProfileApp/_types.d.ts +2 -2
  73. package/apps/core/src/app/core/versionProfileApp/versionProfileApp.d.ts +3 -3
  74. package/apps/core/src/app/core/viewApp.d.ts +5 -5
  75. package/apps/core/src/app/endpoint/endpointApp.d.ts +3 -3
  76. package/apps/core/src/app/graphql/customScalars/dateTime/dateTime.d.ts +1 -1
  77. package/apps/core/src/app/graphql/customScalars/systemTranslation/systemTranslation.d.ts +1 -1
  78. package/apps/core/src/app/graphql/graphqlApp.d.ts +3 -3
  79. package/apps/core/src/app/helpers/convertVersionFromGqlFormat.d.ts +1 -1
  80. package/apps/core/src/app/helpers/initQueryContext.d.ts +2 -2
  81. package/apps/core/src/domain/actions/excelCalculationAction.d.ts +2 -2
  82. package/apps/core/src/domain/actions/inheritanceCalculationAction.d.ts +2 -2
  83. package/apps/core/src/domain/actions/replaceAnotherAttributeAction.d.ts +3 -3
  84. package/apps/core/src/domain/apiKey/apiKeyDomain.d.ts +6 -6
  85. package/apps/core/src/domain/application/applicationDomain.d.ts +7 -7
  86. package/apps/core/src/domain/application/helpers/getLibrarySystemPanels.d.ts +2 -2
  87. package/apps/core/src/domain/attribute/attributeDomain.d.ts +12 -12
  88. package/apps/core/src/domain/attribute/helpers/attributeALHelper.d.ts +1 -1
  89. package/apps/core/src/domain/attribute/helpers/attributeValidationHelper.d.ts +6 -6
  90. package/apps/core/src/domain/attribute/helpers/ifLibraryJoinLinkAttribute.d.ts +2 -2
  91. package/apps/core/src/domain/automation/actions/conditionAction.d.ts +8 -0
  92. package/apps/core/src/domain/automation/actions/errorAction.d.ts +8 -0
  93. package/apps/core/src/domain/automation/actions/index.d.ts +3 -0
  94. package/apps/core/src/domain/automation/actions/logAction.d.ts +16 -0
  95. package/apps/core/src/domain/automation/automationDomain.d.ts +43 -0
  96. package/apps/core/src/domain/automation/fakeRulesToTrigger.d.ts +7 -0
  97. package/apps/core/src/domain/automation/index.d.ts +2 -0
  98. package/apps/core/src/domain/automation/pipelineExecutor.d.ts +16 -0
  99. package/apps/core/src/domain/automation/pipelineExecutor.spec.d.ts +1 -0
  100. package/apps/core/src/domain/automation/types.d.ts +22 -0
  101. package/apps/core/src/domain/discussion/discussionDomain.d.ts +7 -7
  102. package/apps/core/src/domain/eventsManager/eventsManagerDomain.d.ts +4 -4
  103. package/apps/core/src/domain/export/exportDomain.d.ts +8 -8
  104. package/apps/core/src/domain/export/exportProfileDomain.d.ts +2 -2
  105. package/apps/core/src/domain/filesManager/_constants.d.ts +1 -1
  106. package/apps/core/src/domain/filesManager/filesManagerDomain.d.ts +13 -13
  107. package/apps/core/src/domain/filesManager/helpers/extractFileMetadata.d.ts +1 -1
  108. package/apps/core/src/domain/filesManager/helpers/getRootPathByKey.d.ts +1 -1
  109. package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/_types.d.ts +12 -12
  110. package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleCreateEvent.d.ts +1 -1
  111. package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleFileSystemEvent.d.ts +10 -10
  112. package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleMoveEvent.d.ts +1 -1
  113. package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleRemoveEvent.d.ts +1 -1
  114. package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleUpdateEvent.d.ts +1 -1
  115. package/apps/core/src/domain/filesManager/helpers/handleFileUtilsHelper.d.ts +7 -7
  116. package/apps/core/src/domain/filesManager/helpers/handlePreview.d.ts +1 -1
  117. package/apps/core/src/domain/filesManager/helpers/handlePreviewResponse.d.ts +9 -9
  118. package/apps/core/src/domain/filesManager/helpers/messagesHandler/messagesHandler.d.ts +3 -3
  119. package/apps/core/src/domain/form/formDomain.d.ts +12 -12
  120. package/apps/core/src/domain/form/helpers/getElementValues.d.ts +4 -4
  121. package/apps/core/src/domain/form/helpers/mustIncludeElement.d.ts +4 -4
  122. package/apps/core/src/domain/globalSettings/globalSettingsDomain.d.ts +5 -5
  123. package/apps/core/src/domain/helpers/calculations/calculationVariable.d.ts +1 -1
  124. package/apps/core/src/domain/helpers/calculations/calculationsVariableFunctions.d.ts +4 -4
  125. package/apps/core/src/domain/helpers/createDirectory.d.ts +2 -2
  126. package/apps/core/src/domain/helpers/getCoreEntityById.d.ts +7 -7
  127. package/apps/core/src/domain/helpers/updateRecordLastModif.d.ts +4 -4
  128. package/apps/core/src/domain/helpers/updateTaskProgress.d.ts +3 -3
  129. package/apps/core/src/domain/helpers/validate.d.ts +6 -6
  130. package/apps/core/src/domain/import/importDomain.d.ts +11 -11
  131. package/apps/core/src/domain/indexationManager/indexationManagerDomain.d.ts +9 -9
  132. package/apps/core/src/domain/library/helpers/checkSavePermission.d.ts +2 -2
  133. package/apps/core/src/domain/library/helpers/deleteAssociatedValues.d.ts +5 -5
  134. package/apps/core/src/domain/library/helpers/index.d.ts +0 -1
  135. package/apps/core/src/domain/library/helpers/runBehaviorPostSave.d.ts +6 -6
  136. package/apps/core/src/domain/library/helpers/runPreDelete.d.ts +4 -4
  137. package/apps/core/src/domain/library/helpers/updateAssociatedForms.d.ts +2 -2
  138. package/apps/core/src/domain/library/helpers/validateLibAttributes.d.ts +3 -3
  139. package/apps/core/src/domain/library/helpers/validateLibFullTextAttributes.d.ts +1 -1
  140. package/apps/core/src/domain/library/helpers/validatePermConf.d.ts +4 -4
  141. package/apps/core/src/domain/library/helpers/validatePreviewsSettings.d.ts +1 -1
  142. package/apps/core/src/domain/library/helpers/validateRecordIdentityConf.d.ts +3 -3
  143. package/apps/core/src/domain/library/libraryDomain.d.ts +11 -11
  144. package/apps/core/src/domain/log/logDomain.d.ts +5 -5
  145. package/apps/core/src/domain/logsCollector/logsCollectorDomain.d.ts +1 -1
  146. package/apps/core/src/domain/notification/channels/emailChannel.d.ts +4 -4
  147. package/apps/core/src/domain/notification/channels/webSocketChannel.d.ts +1 -1
  148. package/apps/core/src/domain/notification/notificationDomain.d.ts +3 -3
  149. package/apps/core/src/domain/permission/_types.d.ts +2 -2
  150. package/apps/core/src/domain/permission/attributeDependentValuesPermissionDomain.d.ts +3 -3
  151. package/apps/core/src/domain/permission/helpers/defaultPermission.d.ts +3 -3
  152. package/apps/core/src/domain/permission/helpers/getPermissionCacheKey.d.ts +1 -1
  153. package/apps/core/src/domain/permission/helpers/getPermissionCachePatternKey.d.ts +1 -1
  154. package/apps/core/src/domain/permission/helpers/globalPermission.d.ts +2 -2
  155. package/apps/core/src/domain/permission/helpers/permissionByUserGroups.d.ts +1 -1
  156. package/apps/core/src/domain/permission/helpers/permissionsByActions.d.ts +1 -1
  157. package/apps/core/src/domain/permission/helpers/treeBasedPermissions.d.ts +4 -4
  158. package/apps/core/src/domain/permission/permissionDomain.d.ts +4 -4
  159. package/apps/core/src/domain/permission/recordAttributePermissionDomain.d.ts +2 -2
  160. package/apps/core/src/domain/permission/recordPermissionDomain.d.ts +3 -3
  161. package/apps/core/src/domain/permission/treeNodePermissionDomain.d.ts +4 -4
  162. package/apps/core/src/domain/plugins/pluginsDomain.d.ts +3 -3
  163. package/apps/core/src/domain/record/_types.d.ts +4 -4
  164. package/apps/core/src/domain/record/helpers/createRecord.d.ts +6 -4
  165. package/apps/core/src/domain/record/helpers/deleteRecord.d.ts +12 -10
  166. package/apps/core/src/domain/record/helpers/findRecords.d.ts +2 -2
  167. package/apps/core/src/domain/record/helpers/getAccessPermissionFilters.d.ts +7 -7
  168. package/apps/core/src/domain/record/helpers/getAttributesFromField.d.ts +4 -4
  169. package/apps/core/src/domain/record/helpers/getRecordIdentity.d.ts +27 -0
  170. package/apps/core/src/domain/record/helpers/getRecordIdentity.spec.d.ts +1 -0
  171. package/apps/core/src/domain/record/helpers/index.d.ts +1 -1
  172. package/apps/core/src/domain/record/helpers/sendRecordUpdateEvent.d.ts +3 -3
  173. package/apps/core/src/domain/record/recordDomain.d.ts +10 -18
  174. package/apps/core/src/domain/tasksManager/cronTasksManagerDomain.d.ts +13 -0
  175. package/apps/core/src/domain/tasksManager/cronTasksManagerDomain.spec.d.ts +1 -0
  176. package/apps/core/src/domain/tasksManager/index.d.ts +1 -0
  177. package/apps/core/src/domain/tasksManager/tasksManagerDomain.d.ts +7 -7
  178. package/apps/core/src/domain/tree/helpers/elementAncestors.d.ts +2 -2
  179. package/apps/core/src/domain/tree/helpers/getDefaultElement.d.ts +3 -3
  180. package/apps/core/src/domain/tree/helpers/handleRemovedLibraries.d.ts +3 -3
  181. package/apps/core/src/domain/tree/helpers/treeDataValidation.d.ts +3 -3
  182. package/apps/core/src/domain/tree/treeDomain.d.ts +10 -10
  183. package/apps/core/src/domain/user/userDomain.d.ts +10 -10
  184. package/apps/core/src/domain/value/_types.d.ts +5 -5
  185. package/apps/core/src/domain/value/helpers/areValuesIdentical.d.ts +1 -1
  186. package/apps/core/src/domain/value/helpers/canSaveRecordValue.d.ts +6 -6
  187. package/apps/core/src/domain/value/helpers/doesValueExist.d.ts +1 -1
  188. package/apps/core/src/domain/value/helpers/findValue.d.ts +1 -1
  189. package/apps/core/src/domain/value/helpers/formatLogValue.d.ts +6 -6
  190. package/apps/core/src/domain/value/helpers/formatValue.d.ts +17 -0
  191. package/apps/core/src/domain/value/helpers/getRecordFieldValue.d.ts +27 -0
  192. package/apps/core/src/domain/value/helpers/getRecordFieldValue.spec.d.ts +1 -0
  193. package/apps/core/src/domain/value/helpers/getValues.d.ts +26 -0
  194. package/apps/core/src/domain/value/helpers/getValues.spec.d.ts +1 -0
  195. package/apps/core/src/domain/value/helpers/index.d.ts +7 -0
  196. package/apps/core/src/domain/value/helpers/isEmptyValue.d.ts +1 -1
  197. package/apps/core/src/domain/value/helpers/manageEventMetadata.d.ts +4 -0
  198. package/apps/core/src/domain/value/helpers/postDeleteValue.d.ts +6 -6
  199. package/apps/core/src/domain/value/helpers/postSaveValue.d.ts +6 -6
  200. package/apps/core/src/domain/value/helpers/prepareValue.d.ts +6 -6
  201. package/apps/core/src/domain/value/helpers/runActionsList.d.ts +10 -0
  202. package/apps/core/src/domain/value/helpers/saveOneValue.d.ts +8 -8
  203. package/apps/core/src/domain/value/helpers/validateValue.d.ts +4 -4
  204. package/apps/core/src/domain/value/tasks/purgeMultipleValues.d.ts +1 -1
  205. package/apps/core/src/domain/value/tasks/saveValueBulk.d.ts +10 -7
  206. package/apps/core/src/domain/value/valueDomain.d.ts +27 -19
  207. package/apps/core/src/domain/versionProfile/versionProfileDomain.d.ts +10 -10
  208. package/apps/core/src/domain/view/viewDomain.d.ts +7 -7
  209. package/apps/core/src/i18nextInit.d.ts +1 -1
  210. package/apps/core/src/infra/apiKey/apiKeyRepo.d.ts +5 -5
  211. package/apps/core/src/infra/application/applicationRepo.d.ts +3 -3
  212. package/apps/core/src/infra/attribute/attributeRepo.d.ts +4 -4
  213. package/apps/core/src/infra/attributeTypes/attributeAdvancedLinkRepo.d.ts +2 -2
  214. package/apps/core/src/infra/attributeTypes/attributeAdvancedRepo.d.ts +2 -2
  215. package/apps/core/src/infra/attributeTypes/attributeSimpleLinkRepo.d.ts +2 -2
  216. package/apps/core/src/infra/attributeTypes/attributeSimpleRepo.d.ts +1 -1
  217. package/apps/core/src/infra/attributeTypes/attributeTreeRepo.d.ts +2 -2
  218. package/apps/core/src/infra/attributeTypes/attributeTypesRepo.d.ts +1 -1
  219. package/apps/core/src/infra/automation/automationRuleRepo.d.ts +29 -0
  220. package/apps/core/src/infra/automation/index.d.ts +1 -0
  221. package/apps/core/src/infra/cache/cacheService.d.ts +2 -2
  222. package/apps/core/src/infra/cache/diskService.d.ts +1 -1
  223. package/apps/core/src/infra/cache/redis.d.ts +1 -1
  224. package/apps/core/src/infra/db/_types.d.ts +1 -1
  225. package/apps/core/src/infra/db/db.d.ts +1 -1
  226. package/apps/core/src/infra/db/dbService.d.ts +2 -2
  227. package/apps/core/src/infra/db/dbUtils.d.ts +9 -5
  228. package/apps/core/src/infra/db/helpers/runMigrationFiles.d.ts +1 -1
  229. package/apps/core/src/infra/db/migrations/000-init/index.d.ts +3 -3
  230. package/apps/core/src/infra/db/migrations/000-init/systemAttributes.d.ts +1 -1
  231. package/apps/core/src/infra/db/migrations/001-delInstallApps.d.ts +1 -1
  232. package/apps/core/src/infra/db/migrations/002-previewsSettings.d.ts +4 -4
  233. package/apps/core/src/infra/db/migrations/003-filesMetadata.d.ts +3 -3
  234. package/apps/core/src/infra/db/migrations/004-formsLabels.d.ts +2 -2
  235. package/apps/core/src/infra/db/migrations/005-viewSortToArray.d.ts +1 -1
  236. package/apps/core/src/infra/db/migrations/007-updateHexColor.d.ts +1 -1
  237. package/apps/core/src/infra/db/migrations/010-formSidePanel.d.ts +2 -2
  238. package/apps/core/src/infra/db/migrations/013-passwordAttributeMaskValue.d.ts +1 -1
  239. package/apps/core/src/infra/db/migrations/014-notificationsCollection.d.ts +1 -1
  240. package/apps/core/src/infra/db/migrations/019-automationRuleCollection.d.ts +7 -0
  241. package/apps/core/src/infra/elasticsearch/elasticsearchClient.d.ts +1 -1
  242. package/apps/core/src/infra/elasticsearch/elasticsearchService.d.ts +1 -1
  243. package/apps/core/src/infra/filesManager/filesManagerRepo.d.ts +4 -4
  244. package/apps/core/src/infra/form/formRepo.d.ts +6 -6
  245. package/apps/core/src/infra/globalSettings/globalSettingsRepo.d.ts +3 -3
  246. package/apps/core/src/infra/indexation/helpers/getSearchQuery.d.ts +1 -1
  247. package/apps/core/src/infra/indexation/indexationService.d.ts +3 -3
  248. package/apps/core/src/infra/library/libraryRepo.d.ts +2 -2
  249. package/apps/core/src/infra/log/logRepo.d.ts +4 -4
  250. package/apps/core/src/infra/mailer/mailer.d.ts +1 -1
  251. package/apps/core/src/infra/mailer/mailerService.d.ts +3 -3
  252. package/apps/core/src/infra/notification/notificationRepo.d.ts +3 -3
  253. package/apps/core/src/infra/permission/permissionRepo.d.ts +1 -1
  254. package/apps/core/src/infra/plugins/pluginsRepo.d.ts +1 -1
  255. package/apps/core/src/infra/record/helpers/getClassifyingFiltersVariableQueryPart.d.ts +2 -2
  256. package/apps/core/src/infra/record/helpers/getSearchVariablesQueryPart.d.ts +1 -1
  257. package/apps/core/src/infra/record/recordRepo.d.ts +5 -5
  258. package/apps/core/src/infra/task/taskRepo.d.ts +6 -6
  259. package/apps/core/src/infra/tree/_types.d.ts +1 -1
  260. package/apps/core/src/infra/tree/treeRepo.d.ts +5 -5
  261. package/apps/core/src/infra/userData/userDataRepo.d.ts +2 -2
  262. package/apps/core/src/infra/value/valueRepo.d.ts +5 -5
  263. package/apps/core/src/infra/versionProfile/versionProfileRepo.d.ts +6 -6
  264. package/apps/core/src/infra/view/_types.d.ts +5 -5
  265. package/apps/core/src/interface/cli.d.ts +1 -1
  266. package/apps/core/src/interface/filesManager.d.ts +1 -1
  267. package/apps/core/src/interface/helpers/handleGraphqlError.d.ts +3 -3
  268. package/apps/core/src/interface/indexationManager.d.ts +1 -1
  269. package/apps/core/src/interface/logsCollector.d.ts +1 -1
  270. package/apps/core/src/interface/server.d.ts +7 -7
  271. package/apps/core/src/interface/tasksManager.d.ts +1 -1
  272. package/apps/core/src/pluginsLoader.d.ts +1 -0
  273. package/apps/core/src/pluginsModuleResolver.d.ts +1 -0
  274. package/apps/core/src/utils/configureDayjs.d.ts +1 -1
  275. package/apps/core/src/utils/dataloader.d.ts +1 -1
  276. package/apps/core/src/utils/helpers/getSystemQueryContext.d.ts +2 -2
  277. package/apps/core/src/utils/helpers/getValuesToDisplay.d.ts +1 -1
  278. package/apps/core/src/utils/logger/logger.d.ts +1 -1
  279. package/apps/core/src/utils/utils.d.ts +3 -3
  280. package/apps/core/tsconfig.types.tsbuildinfo +1 -1
  281. package/libs/utils/src/types/events.d.ts +3 -0
  282. package/package.json +2 -2
  283. package/apps/core/src/domain/record/helpers/getRecordFieldValue.spec.d.ts +0 -0
@@ -1,11 +1,11 @@
1
- import { type IActionsListDomain } from 'domain/actionsList/actionsListDomain';
2
- import { type IAttributeDomain } from 'domain/attribute/attributeDomain';
3
- import { type IGetDefaultElementHelper } from 'domain/tree/helpers/getDefaultElement';
4
- import { type IVersionProfileDomain } from 'domain/versionProfile/versionProfileDomain';
5
- import { type IRecordRepo } from 'infra/record/recordRepo';
6
- import { type ITreeRepo } from 'infra/tree/treeRepo';
7
- import { type IValueRepo } from 'infra/value/valueRepo';
8
- import { type IQueryInfos } from '_types/queryInfos';
1
+ import { type IActionsListDomain } from '../../actionsList/actionsListDomain';
2
+ import { type IAttributeDomain } from '../../attribute/attributeDomain';
3
+ import { type IGetDefaultElementHelper } from '../../tree/helpers/getDefaultElement';
4
+ import { type IVersionProfileDomain } from '../../versionProfile/versionProfileDomain';
5
+ import { type IRecordRepo } from '../../../infra/record/recordRepo';
6
+ import { type ITreeRepo } from '../../../infra/tree/treeRepo';
7
+ import { type IValueRepo } from '../../../infra/value/valueRepo';
8
+ import { type IQueryInfos } from '../../../_types/queryInfos';
9
9
  import { type IAttribute } from '../../../_types/attribute';
10
10
  import { type ISaveValue, type IValue } from '../../../_types/value';
11
11
  interface ISaveOneValueDeps {
@@ -1,7 +1,7 @@
1
- import { type IAttributeDomain } from 'domain/attribute/attributeDomain';
2
- import { type IRecordRepo } from 'infra/record/recordRepo';
3
- import { type ITreeRepo } from 'infra/tree/treeRepo';
4
- import { type IValueRepo } from 'infra/value/valueRepo';
1
+ import { type IAttributeDomain } from '../../attribute/attributeDomain';
2
+ import { type IRecordRepo } from '../../../infra/record/recordRepo';
3
+ import { type ITreeRepo } from '../../../infra/tree/treeRepo';
4
+ import { type IValueRepo } from '../../../infra/value/valueRepo';
5
5
  import { type IAttribute } from '../../../_types/attribute';
6
6
  import { type ErrorFieldDetail } from '../../../_types/errors';
7
7
  import { type IQueryInfos } from '../../../_types/queryInfos';
@@ -1,4 +1,4 @@
1
- import { type IValueRepo } from 'infra/value/valueRepo';
1
+ import { type IValueRepo } from '../../../infra/value/valueRepo';
2
2
  import { type IQueryInfos } from '../../../_types/queryInfos';
3
3
  import { type IAttributeDomain } from '../../attribute/attributeDomain';
4
4
  import { type IAdminPermissionDomain } from '../../permission/adminPermissionDomain';
@@ -1,7 +1,7 @@
1
- import { type IValidateHelper } from 'domain/helpers/validate';
2
- import { type IValueDomain } from 'domain/value/valueDomain';
1
+ import { type IValidateHelper } from '../../helpers/validate';
2
+ import { type IValueDomain } from '../valueDomain';
3
3
  import { type i18n } from 'i18next';
4
- import type * as Config from '_types/config';
4
+ import type * as Config from '../../../_types/config';
5
5
  import { type IQueryInfos } from '../../../_types/queryInfos';
6
6
  import { type IRecordFilterLight } from '../../../_types/record';
7
7
  import { type ITreeNode } from '../../../_types/tree';
@@ -12,11 +12,14 @@ import { type ITasksManagerDomain } from '../../tasksManager/tasksManagerDomain'
12
12
  import { type INotificationDomain } from '../../notification/notificationDomain';
13
13
  export interface ISaveValueBulkParams {
14
14
  libraryId: string;
15
- recordsFilters: IRecordFilterLight[];
15
+ recordsFilters?: IRecordFilterLight[];
16
16
  attributeId: string;
17
- mapValues: Array<{
18
- before: ITreeNode['id'] | null;
19
- after: ITreeNode['id'] | null;
17
+ mapping: Array<{
18
+ dependenciesFilters?: IRecordFilterLight[];
19
+ values: Array<{
20
+ before: ITreeNode['id'] | null;
21
+ after: ITreeNode['id'] | null;
22
+ }>;
20
23
  }>;
21
24
  ctx: IQueryInfos;
22
25
  }
@@ -1,32 +1,36 @@
1
- import { type IEventsManagerDomain } from 'domain/eventsManager/eventsManagerDomain';
2
- import { type UpdateRecordLastModifFunc } from 'domain/helpers/updateRecordLastModif';
3
- import { type SendRecordUpdateEventHelper } from 'domain/record/helpers/sendRecordUpdateEvent';
4
- import { type IElementAncestorsHelper } from 'domain/tree/helpers/elementAncestors';
5
- import { type IGetDefaultElementHelper } from 'domain/tree/helpers/getDefaultElement';
6
- import { type ITreeDomain } from 'domain/tree/treeDomain';
7
- import { type IVersionProfileDomain } from 'domain/versionProfile/versionProfileDomain';
8
- import { type IRecordRepo } from 'infra/record/recordRepo';
9
- import { type ITreeRepo } from 'infra/tree/treeRepo';
10
- import { type IValueRepo } from 'infra/value/valueRepo';
11
- import { type IUtils } from 'utils/utils';
1
+ import { type IEventsManagerDomain } from '../eventsManager/eventsManagerDomain';
2
+ import { type UpdateRecordLastModifFunc } from '../helpers/updateRecordLastModif';
3
+ import { type SendRecordUpdateEventHelper } from '../record/helpers/sendRecordUpdateEvent';
4
+ import { type IElementAncestorsHelper } from '../tree/helpers/elementAncestors';
5
+ import { type IGetDefaultElementHelper } from '../tree/helpers/getDefaultElement';
6
+ import { type ITreeDomain } from '../tree/treeDomain';
7
+ import { type IVersionProfileDomain } from '../versionProfile/versionProfileDomain';
8
+ import { type IRecordRepo } from '../../infra/record/recordRepo';
9
+ import { type ITreeRepo } from '../../infra/tree/treeRepo';
10
+ import { type IValueRepo } from '../../infra/value/valueRepo';
11
+ import { type IUtils } from '../../utils/utils';
12
12
  import { type ILogger } from '@leav/logger';
13
- import type * as Config from '_types/config';
14
- import { type IRecordFilterLight, type IRecord } from '_types/record';
13
+ import type * as Config from '../../_types/config';
14
+ import { type IRecordFilterLight, type IRecord } from '../../_types/record';
15
15
  import { type IAttribute } from '../../_types/attribute';
16
16
  import { type IQueryInfos } from '../../_types/queryInfos';
17
17
  import { type IValueVersion, type ISaveValue, type IValue, type IValuesOptions, type IDistinctValue } from '../../_types/value';
18
18
  import { type IActionsListDomain } from '../actionsList/actionsListDomain';
19
19
  import { type IAttributeDomain } from '../attribute/attributeDomain';
20
20
  import { type IValidateHelper } from '../helpers/validate';
21
- import { type IAttributeDependentValuesPermissionDomain } from 'domain/permission/attributeDependentValuesPermissionDomain';
21
+ import { type IAttributeDependentValuesPermissionDomain } from '../permission/attributeDependentValuesPermissionDomain';
22
22
  import { type IRecordAttributePermissionDomain } from '../permission/recordAttributePermissionDomain';
23
23
  import { type IRecordPermissionDomain } from '../permission/recordPermissionDomain';
24
24
  import { type IDeleteValueParams } from './_types';
25
- import { type DeleteRecordHelper } from 'domain/record/helpers/deleteRecord';
26
- import { type CreateRecordHelper } from 'domain/record/helpers/createRecord';
25
+ import { type CreateRecordHelper } from '../record/helpers/createRecord';
26
+ import { type GetRecordIdentityHelper } from '../record/helpers/getRecordIdentity';
27
+ import { type GetRecordFieldValueHelper } from './helpers/getRecordFieldValue';
28
+ import { type GetValuesHelper } from './helpers/getValues';
29
+ import { type RunActionsListHelper } from './helpers/runActionsList';
30
+ import { type FormatValueHelper } from './helpers/formatValue';
27
31
  import { type IfLibraryJoinLinkAttribute } from '../attribute/helpers/ifLibraryJoinLinkAttribute';
28
32
  import { type IRecordInCreationBypassHelper } from '../permission/helpers/recordInCreationBypass';
29
- import { type FindRecordsHelper } from 'domain/record/helpers/findRecords';
33
+ import { type FindRecordsHelper } from '../record/helpers/findRecords';
30
34
  export interface ISaveBatchValueError {
31
35
  type: string;
32
36
  message: string;
@@ -132,7 +136,11 @@ export interface IValueDomainDeps {
132
136
  'core.domain.tree.helpers.getDefaultElement': IGetDefaultElementHelper;
133
137
  'core.domain.record.helpers.sendRecordUpdateEvent': SendRecordUpdateEventHelper;
134
138
  'core.domain.record.helpers.createRecord': CreateRecordHelper;
135
- 'core.domain.record.helpers.deleteRecord': DeleteRecordHelper;
139
+ 'core.domain.record.helpers.getRecordIdentity': GetRecordIdentityHelper;
140
+ 'core.domain.value.helpers.getRecordFieldValue': GetRecordFieldValueHelper;
141
+ 'core.domain.value.helpers.getValues': GetValuesHelper;
142
+ 'core.domain.value.helpers.runActionsList': RunActionsListHelper;
143
+ 'core.domain.value.helpers.formatValue': FormatValueHelper;
136
144
  'core.domain.record.helpers.findRecords': FindRecordsHelper;
137
145
  'core.domain.permission.helpers.recordInCreationBypass': IRecordInCreationBypassHelper;
138
146
  'core.domain.attribute.helpers.ifLibraryJoinLinkAttribute': IfLibraryJoinLinkAttribute;
@@ -144,5 +152,5 @@ export interface IValueDomainDeps {
144
152
  'core.utils.logger': ILogger;
145
153
  'core.domain.tree': ITreeDomain;
146
154
  }
147
- declare const valueDomain: ({ config, "core.domain.actionsList": actionsListDomain, "core.domain.attribute": attributeDomain, "core.domain.permission.attributeDependentValues": attributeDependentValuesPermissionDomain, "core.domain.permission.recordAttribute": recordAttributePermissionDomain, "core.domain.permission.record": recordPermissionDomain, "core.domain.eventsManager": eventsManager, "core.domain.helpers.validate": validate, "core.domain.helpers.updateRecordLastModif": updateRecordLastModif, "core.domain.tree.helpers.elementAncestors": elementAncestors, "core.domain.tree.helpers.getDefaultElement": getDefaultElementHelper, "core.domain.record.helpers.sendRecordUpdateEvent": sendRecordUpdateEvent, "core.domain.record.helpers.createRecord": createRecordHelper, "core.domain.record.helpers.findRecords": findRecordsHelper, "core.domain.permission.helpers.recordInCreationBypass": recordInCreationBypassHelper, "core.domain.record.helpers.deleteRecord": deleteRecordHelper, "core.domain.attribute.helpers.ifLibraryJoinLinkAttribute": ifLibraryJoinLinkAttribute, "core.domain.versionProfile": versionProfileDomain, "core.infra.record": recordRepo, "core.infra.tree": treeRepo, "core.infra.value": valueRepo, "core.utils": utils, "core.utils.logger": logger, }: IValueDomainDeps) => IValueDomain;
155
+ declare const valueDomain: ({ config, "core.domain.actionsList": actionsListDomain, "core.domain.attribute": attributeDomain, "core.domain.permission.attributeDependentValues": attributeDependentValuesPermissionDomain, "core.domain.permission.recordAttribute": recordAttributePermissionDomain, "core.domain.permission.record": recordPermissionDomain, "core.domain.eventsManager": eventsManager, "core.domain.helpers.validate": validate, "core.domain.helpers.updateRecordLastModif": updateRecordLastModif, "core.domain.tree.helpers.elementAncestors": elementAncestors, "core.domain.tree.helpers.getDefaultElement": getDefaultElementHelper, "core.domain.record.helpers.sendRecordUpdateEvent": sendRecordUpdateEvent, "core.domain.record.helpers.createRecord": createRecordHelper, "core.domain.record.helpers.getRecordIdentity": getRecordIdentity, "core.domain.value.helpers.getRecordFieldValue": getRecordFieldValueHelper, "core.domain.value.helpers.getValues": getValuesHelper, "core.domain.value.helpers.runActionsList": runActionsListHelper, "core.domain.value.helpers.formatValue": formatValueHelper, "core.domain.record.helpers.findRecords": findRecordsHelper, "core.domain.permission.helpers.recordInCreationBypass": recordInCreationBypassHelper, "core.domain.attribute.helpers.ifLibraryJoinLinkAttribute": ifLibraryJoinLinkAttribute, "core.domain.versionProfile": versionProfileDomain, "core.infra.record": recordRepo, "core.infra.tree": treeRepo, "core.infra.value": valueRepo, "core.utils": utils, "core.utils.logger": logger, }: IValueDomainDeps) => IValueDomain;
148
156
  export default valueDomain;
@@ -1,13 +1,13 @@
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 IAttributeRepo } from 'infra/attribute/attributeRepo';
5
- import { type ITreeRepo } from 'infra/tree/treeRepo';
6
- import { type IVersionProfileRepo } from 'infra/versionProfile/versionProfileRepo';
7
- import { type IUtils } from 'utils/utils';
8
- import { type IAttribute } from '_types/attribute';
9
- import { type IQueryInfos } from '_types/queryInfos';
10
- import { type IGetCoreVersionProfileParams, type IVersionProfile } from '_types/versionProfile';
1
+ import { type IEventsManagerDomain } from '../eventsManager/eventsManagerDomain';
2
+ import { type GetCoreEntityByIdFunc } from '../helpers/getCoreEntityById';
3
+ import { type IAdminPermissionDomain } from '../permission/adminPermissionDomain';
4
+ import { type IAttributeRepo } from '../../infra/attribute/attributeRepo';
5
+ import { type ITreeRepo } from '../../infra/tree/treeRepo';
6
+ import { type IVersionProfileRepo } from '../../infra/versionProfile/versionProfileRepo';
7
+ import { type IUtils } from '../../utils/utils';
8
+ import { type IAttribute } from '../../_types/attribute';
9
+ import { type IQueryInfos } from '../../_types/queryInfos';
10
+ import { type IGetCoreVersionProfileParams, type IVersionProfile } from '../../_types/versionProfile';
11
11
  import { type ICachesService } from '../../infra/cache/cacheService';
12
12
  import { type IList } from '../../_types/list';
13
13
  export interface IVersionProfileDomain {
@@ -1,10 +1,10 @@
1
- import { type IValidateHelper } from 'domain/helpers/validate';
2
- import { type ITreeDomain } from 'domain/tree/treeDomain';
3
- import { type IViewRepo } from 'infra/view/_types';
4
- import { type IUtils } from 'utils/utils';
5
- import { type IList } from '_types/list';
6
- import { type IQueryInfos } from '_types/queryInfos';
7
- import { type IView } from '_types/views';
1
+ import { type IValidateHelper } from '../helpers/validate';
2
+ import { type ITreeDomain } from '../tree/treeDomain';
3
+ import { type IViewRepo } from '../../infra/view/_types';
4
+ import { type IUtils } from '../../utils/utils';
5
+ import { type IList } from '../../_types/list';
6
+ import { type IQueryInfos } from '../../_types/queryInfos';
7
+ import { type IView } from '../../_types/views';
8
8
  export interface IViewDomain {
9
9
  saveView(view: IView, ctx: IQueryInfos): Promise<IView>;
10
10
  getViews(library: string, ctx: IQueryInfos): Promise<IList<IView>>;
@@ -1,4 +1,4 @@
1
- import { type IConfig } from '_types/config';
1
+ import { type IConfig } from './_types/config';
2
2
  import { type i18n } from 'i18next';
3
3
  declare const _default: (config: IConfig) => Promise<i18n>;
4
4
  export default _default;
@@ -1,8 +1,8 @@
1
- import { type IDbService } from 'infra/db/dbService';
2
- import { type IDbUtils } from 'infra/db/dbUtils';
3
- import { type IApiKey, type IGetCoreApiKeysParams } from '_types/apiKey';
4
- import { type IList } from '_types/list';
5
- import { type IQueryInfos } from '_types/queryInfos';
1
+ import { type IDbService } from '../db/dbService';
2
+ import { type IDbUtils } from '../db/dbUtils';
3
+ import { type IApiKey, type IGetCoreApiKeysParams } from '../../_types/apiKey';
4
+ import { type IList } from '../../_types/list';
5
+ import { type IQueryInfos } from '../../_types/queryInfos';
6
6
  export declare const API_KEY_COLLECTION_NAME = "core_api_keys";
7
7
  export interface IApiKeyRepo {
8
8
  getApiKeys: (params: {
@@ -1,7 +1,7 @@
1
1
  import { type ILogger } from '@leav/logger';
2
- import { type IConfig } from '_types/config';
3
- import { type IList } from '_types/list';
4
- import { type IQueryInfos } from '_types/queryInfos';
2
+ import { type IConfig } from '../../_types/config';
3
+ import { type IList } from '../../_types/list';
4
+ import { type IQueryInfos } from '../../_types/queryInfos';
5
5
  import { type IApplication, type IApplicationModule } from '../../_types/application';
6
6
  import { type IGetCoreEntitiesParams } from '../../_types/shared';
7
7
  import { type IDbService } from '../db/dbService';
@@ -1,7 +1,7 @@
1
- import { type IUtils } from 'utils/utils';
2
- import { type ILibrary } from '_types/library';
3
- import { type IList } from '_types/list';
4
- import { type IQueryInfos } from '_types/queryInfos';
1
+ import { type IUtils } from '../../utils/utils';
2
+ import { type ILibrary } from '../../_types/library';
3
+ import { type IList } from '../../_types/list';
4
+ import { type IQueryInfos } from '../../_types/queryInfos';
5
5
  import { type IAttribute, type IGetCoreAttributesParams } from '../../_types/attribute';
6
6
  import { type IDbService } from '../db/dbService';
7
7
  import { type IDbUtils } from '../db/dbUtils';
@@ -1,5 +1,5 @@
1
- import { type IFilterTypesHelper } from 'infra/record/helpers/filterTypes';
2
- import { type IUtils } from 'utils/utils';
1
+ import { type IFilterTypesHelper } from '../record/helpers/filterTypes';
2
+ import { type IUtils } from '../../utils/utils';
3
3
  import { AttributeTypes } from '../../_types/attribute';
4
4
  import { type IDbService } from '../db/dbService';
5
5
  import { type IDbUtils } from '../db/dbUtils';
@@ -1,5 +1,5 @@
1
- import { type IDbUtils } from 'infra/db/dbUtils';
2
- import { type IFilterTypesHelper } from 'infra/record/helpers/filterTypes';
1
+ import { type IDbUtils } from '../db/dbUtils';
2
+ import { type IFilterTypesHelper } from '../record/helpers/filterTypes';
3
3
  import { type AttributeTypes } from '../../_types/attribute';
4
4
  import { type IDbService } from '../db/dbService';
5
5
  import { type IAttributeTypeRepo } from './attributeTypesRepo';
@@ -1,11 +1,11 @@
1
- import { type IFilterTypesHelper } from 'infra/record/helpers/filterTypes';
1
+ import { type IFilterTypesHelper } from '../record/helpers/filterTypes';
2
2
  import { AttributeTypes, type IAttribute } from '../../_types/attribute';
3
3
  import { type IDbService } from '../db/dbService';
4
4
  import { type IDbUtils } from '../db/dbUtils';
5
5
  import { type IAttributeTypeRepo } from './attributeTypesRepo';
6
6
  import { type GetConditionPart } from './helpers/getConditionPart';
7
7
  import { type IAttributeSimpleRepo } from './attributeSimpleRepo';
8
- import { type IQueryInfos } from '_types/queryInfos';
8
+ import { type IQueryInfos } from '../../_types/queryInfos';
9
9
  interface IDeps {
10
10
  'core.infra.db.dbService'?: IDbService;
11
11
  'core.infra.db.dbUtils'?: IDbUtils;
@@ -1,4 +1,4 @@
1
- import { type IFilterTypesHelper } from 'infra/record/helpers/filterTypes';
1
+ import { type IFilterTypesHelper } from '../record/helpers/filterTypes';
2
2
  import { type AttributeTypes } from '../../_types/attribute';
3
3
  import { type IDbService } from '../db/dbService';
4
4
  import { type IAttributeTypeRepo } from './attributeTypesRepo';
@@ -1,5 +1,5 @@
1
- import { type IFilterTypesHelper } from 'infra/record/helpers/filterTypes';
2
- import { type IUtils } from 'utils/utils';
1
+ import { type IFilterTypesHelper } from '../record/helpers/filterTypes';
2
+ import { type IUtils } from '../../utils/utils';
3
3
  import { type AttributeTypes } from '../../_types/attribute';
4
4
  import { type IDbService } from '../db/dbService';
5
5
  import { type IDbUtils } from '../db/dbUtils';
@@ -1,5 +1,5 @@
1
1
  import { type AqlLiteral, type GeneratedAqlQuery } from 'arangojs/aql';
2
- import { type IQueryInfos } from '_types/queryInfos';
2
+ import { type IQueryInfos } from '../../_types/queryInfos';
3
3
  import { AttributeTypes, type IAttribute } from '../../_types/attribute';
4
4
  import { AttributeCondition, type IRecordFilterOption } from '../../_types/record';
5
5
  import { type IBaseValueByAttributeType, type IDistinctValue, type ISaveValueByAttributeType, type IValueByAttributeType, type IValuesOptions, type IValueVersion } from '../../_types/value';
@@ -0,0 +1,29 @@
1
+ import { type ICreateAutomationRule, type IAutomationRule, type IUpdateAutomationRule, type SyncAutomationRuleEventAction } 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 IDbService } from '../db/dbService';
6
+ import { type IDbUtils } from '../db/dbUtils';
7
+ import { type EventAction, type IDbPayload } from '@leav/utils';
8
+ export declare const AUTOMATION_RULES_COLLECTION_NAME = "core_automation_rules";
9
+ export type IAutomationRuleFilterOptionsInRepo = ICoreEntityFilterOptions & {
10
+ active?: boolean;
11
+ trigger?: {
12
+ synchronous?: boolean;
13
+ eventAction?: EventAction | SyncAutomationRuleEventAction;
14
+ eventTopic?: IDbPayload['topic'];
15
+ };
16
+ };
17
+ export type IGetAutomationRulesParams = IGetCoreEntitiesParams & {
18
+ filters?: IAutomationRuleFilterOptionsInRepo;
19
+ };
20
+ export interface IAutomationRuleRepo {
21
+ createAutomationRule(rule: ICreateAutomationRule, ctx: IQueryInfos): Promise<IAutomationRule>;
22
+ updateAutomationRule(rule: IUpdateAutomationRule, ctx: IQueryInfos): Promise<IAutomationRule>;
23
+ getAutomationRules(params: IGetAutomationRulesParams, ctx: IQueryInfos): Promise<IList<IAutomationRule>>;
24
+ }
25
+ export interface IAutomationRuleRepoDeps {
26
+ 'core.infra.db.dbService': IDbService;
27
+ 'core.infra.db.dbUtils': IDbUtils;
28
+ }
29
+ export default function ({ 'core.infra.db.dbService': dbService, 'core.infra.db.dbUtils': dbUtils, }: IAutomationRuleRepoDeps): IAutomationRuleRepo;
@@ -0,0 +1 @@
1
+ export { default as rule } from './automationRuleRepo';
@@ -1,5 +1,5 @@
1
- import { type IQueryInfos } from '_types/queryInfos';
2
- import { type IConfig } from '_types/config';
1
+ import { type IQueryInfos } from '../../_types/queryInfos';
2
+ import { type IConfig } from '../../_types/config';
3
3
  import { type IRedis } from './redis';
4
4
  export interface IMemoizeParams<T> {
5
5
  key: string;
@@ -1,4 +1,4 @@
1
- import { type IConfig } from '_types/config';
1
+ import { type IConfig } from '../../_types/config';
2
2
  import { type ICacheService } from './cacheService';
3
3
  interface IDeps {
4
4
  config?: IConfig;
@@ -1,5 +1,5 @@
1
1
  import * as redis from 'redis';
2
- import { type IConfig } from '_types/config';
2
+ import { type IConfig } from '../../_types/config';
3
3
  interface IDeps {
4
4
  config?: IConfig;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import { type AqlQuery } from 'arangojs/aql';
2
- import { type IQueryInfos } from '_types/queryInfos';
2
+ import { type IQueryInfos } from '../../_types/queryInfos';
3
3
  export interface IDbDocument {
4
4
  _id: string;
5
5
  _key: string;
@@ -1,5 +1,5 @@
1
1
  import { Database } from 'arangojs';
2
- import { type IConfig } from '_types/config';
2
+ import { type IConfig } from '../../_types/config';
3
3
  interface IDeps {
4
4
  config?: IConfig;
5
5
  }
@@ -2,8 +2,8 @@ import { type Database } from 'arangojs';
2
2
  import { type Analyzer, type CreateAnalyzerOptions } from 'arangojs/analyzer';
3
3
  import { CollectionType } from 'arangojs/collection';
4
4
  import { type CreateViewOptions, type View } from 'arangojs/view';
5
- import { type IUtils } from 'utils/utils';
6
- import { type IConfig } from '_types/config';
5
+ import { type IUtils } from '../../utils/utils';
6
+ import { type IConfig } from '../../_types/config';
7
7
  import { type IDbDocument, type IExecute, type IExecuteWithCount } from './_types';
8
8
  export interface IDbService {
9
9
  db?: Database;
@@ -1,10 +1,10 @@
1
1
  import { type GeneratedAqlQuery } from 'arangojs/aql';
2
2
  import { type AwilixContainer } from 'awilix';
3
3
  import { type ILogger } from '@leav/logger';
4
- import { type IConfig } from '_types/config';
5
- import { type IList, type IPaginationParams, type ISortParams } from '_types/list';
6
- import { type IQueryInfos } from '_types/queryInfos';
7
- import { type IKeyValue } from '_types/shared';
4
+ import { type IConfig } from '../../_types/config';
5
+ import { type IList, type IPaginationParams, type ISortParams } from '../../_types/list';
6
+ import { type IQueryInfos } from '../../_types/queryInfos';
7
+ import { type IKeyValue } from '../../_types/shared';
8
8
  import { type ICachesService } from '../cache/cacheService';
9
9
  import { type IDbService } from './dbService';
10
10
  import { type IDbDocument } from './_types';
@@ -26,7 +26,11 @@ export interface IFindCoreEntityParams<T extends ICoreEntity, DbDocument extends
26
26
  export interface IDbUtils {
27
27
  migrate?(depsManager: AwilixContainer): Promise<void>;
28
28
  cleanup?<T extends {}>(record: {}): T;
29
- convertToDoc?(obj: {}): any;
29
+ convertToDoc?<T extends {
30
+ id?: string | string[];
31
+ }>(obj: T): Omit<T, 'id'> & {
32
+ _key?: string | string[];
33
+ };
30
34
  isCollectionExists?(name: string): Promise<boolean>;
31
35
  findCoreEntity?<T extends ICoreEntity, DbDocument extends IDbDocument = IDbDocument>(params: IFindCoreEntityParams<T, DbDocument>): Promise<IList<T>>;
32
36
  clearDatabase?(): Promise<void>;
@@ -1,6 +1,6 @@
1
1
  import { type AwilixContainer } from 'awilix';
2
2
  import { type ILogger } from '@leav/logger';
3
- import { type IQueryInfos } from '_types/queryInfos';
3
+ import { type IQueryInfos } from '../../../_types/queryInfos';
4
4
  import { type IDbService } from '../dbService';
5
5
  import { type ICachesService } from '../../../infra/cache/cacheService';
6
6
  interface IExecuteMigrationParams {
@@ -1,7 +1,7 @@
1
1
  import { type i18n } from 'i18next';
2
- import { type IPermissionRepo } from 'infra/permission/permissionRepo';
3
- import { type IConfig } from '_types/config';
4
- import { type IMigration } from '_types/migration';
2
+ import { type IPermissionRepo } from '../../../permission/permissionRepo';
3
+ import { type IConfig } from '../../../../_types/config';
4
+ import { type IMigration } from '../../../../_types/migration';
5
5
  import { type IAttributeRepo } from '../../../attribute/attributeRepo';
6
6
  import { type ILibraryRepo } from '../../../library/libraryRepo';
7
7
  import { type IDbService } from '../../dbService';
@@ -1,2 +1,2 @@
1
- import { type IAttributeForRepo } from 'infra/attribute/attributeRepo';
1
+ import { type IAttributeForRepo } from '../../../attribute/attributeRepo';
2
2
  export declare const systemAttributes: IAttributeForRepo[];
@@ -1,4 +1,4 @@
1
- import { type IMigration } from '_types/migration';
1
+ import { type IMigration } from '../../../_types/migration';
2
2
  import { type IDbService } from '../dbService';
3
3
  interface IDeps {
4
4
  'core.infra.db.dbService'?: IDbService;
@@ -1,7 +1,7 @@
1
- import { type IAttributeRepo } from 'infra/attribute/attributeRepo';
2
- import { type ILibraryRepo } from 'infra/library/libraryRepo';
3
- import { type IUtils } from 'utils/utils';
4
- import { type IMigration } from '_types/migration';
1
+ import { type IAttributeRepo } from '../../attribute/attributeRepo';
2
+ import { type ILibraryRepo } from '../../library/libraryRepo';
3
+ import { type IUtils } from '../../../utils/utils';
4
+ import { type IMigration } from '../../../_types/migration';
5
5
  import { type IDbService } from '../dbService';
6
6
  import { type IDbUtils } from '../dbUtils';
7
7
  interface IDeps {
@@ -1,6 +1,6 @@
1
- import { type IAttributeRepo } from 'infra/attribute/attributeRepo';
2
- import { type ILibraryRepo } from 'infra/library/libraryRepo';
3
- import { type IMigration } from '_types/migration';
1
+ import { type IAttributeRepo } from '../../attribute/attributeRepo';
2
+ import { type ILibraryRepo } from '../../library/libraryRepo';
3
+ import { type IMigration } from '../../../_types/migration';
4
4
  import { type IDbService } from '../dbService';
5
5
  interface IDeps {
6
6
  'core.infra.attribute'?: IAttributeRepo;
@@ -1,5 +1,5 @@
1
- import { type IMigration } from '_types/migration';
2
- import { type IFormRepo } from 'infra/form/formRepo';
1
+ import { type IMigration } from '../../../_types/migration';
2
+ import { type IFormRepo } from '../../form/formRepo';
3
3
  interface IDeps {
4
4
  'core.infra.form'?: IFormRepo;
5
5
  config?: any;
@@ -1,5 +1,5 @@
1
1
  import { type IDbService } from '../dbService';
2
- import { type IMigration } from '_types/migration';
2
+ import { type IMigration } from '../../../_types/migration';
3
3
  interface IDeps {
4
4
  'core.infra.db.dbService'?: IDbService;
5
5
  }
@@ -1,6 +1,6 @@
1
1
  import { type IDbService } from '../dbService';
2
2
  import { type IMigration } from '../../../_types/migration';
3
- import { type IAttributeRepo } from 'infra/attribute/attributeRepo';
3
+ import { type IAttributeRepo } from '../../attribute/attributeRepo';
4
4
  interface IDeps {
5
5
  'core.infra.db.dbService'?: IDbService;
6
6
  'core.infra.attribute'?: IAttributeRepo;
@@ -1,5 +1,5 @@
1
- import { type IMigration } from '_types/migration';
2
- import { type IFormRepo } from 'infra/form/formRepo';
1
+ import { type IMigration } from '../../../_types/migration';
2
+ import { type IFormRepo } from '../../form/formRepo';
3
3
  interface IDeps {
4
4
  'core.infra.form'?: IFormRepo;
5
5
  config?: any;
@@ -1,4 +1,4 @@
1
- import { type IAttributeRepo } from 'infra/attribute/attributeRepo';
1
+ import { type IAttributeRepo } from '../../attribute/attributeRepo';
2
2
  import { type IMigration } from '../../../_types/migration';
3
3
  interface IDeps {
4
4
  'core.infra.attribute'?: IAttributeRepo;
@@ -1,4 +1,4 @@
1
- import { type IMigration } from '_types/migration';
1
+ import { type IMigration } from '../../../_types/migration';
2
2
  import { type IDbService } from '../dbService';
3
3
  interface IDeps {
4
4
  'core.infra.db.dbService'?: IDbService;
@@ -0,0 +1,7 @@
1
+ import { type IMigration } from '../../../_types/migration';
2
+ import { type IDbService } from '../dbService';
3
+ interface IDeps {
4
+ 'core.infra.db.dbService'?: IDbService;
5
+ }
6
+ export default function ({ 'core.infra.db.dbService': dbService }?: IDeps): IMigration;
7
+ export {};
@@ -1,5 +1,5 @@
1
1
  import { Client } from '@elastic/elasticsearch';
2
- import { type IConfig } from '_types/config';
2
+ import { type IConfig } from '../../_types/config';
3
3
  interface IDeps {
4
4
  config?: IConfig;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import { Client, type estypes } from '@elastic/elasticsearch';
2
- import { type IConfig } from '_types/config';
2
+ import { type IConfig } from '../../_types/config';
3
3
  import { type Log } from '@leav/utils';
4
4
  export interface IElasticsearchServiceSearchResponse<T> {
5
5
  total: number;
@@ -1,7 +1,7 @@
1
- import { type IQueryInfos } from '_types/queryInfos';
2
- import { type IRecord } from '_types/record';
3
- import { type IDbService } from 'infra/db/dbService';
4
- import { type IDbUtils } from 'infra/db/dbUtils';
1
+ import { type IQueryInfos } from '../../_types/queryInfos';
2
+ import { type IRecord } from '../../_types/record';
3
+ import { type IDbService } from '../db/dbService';
4
+ import { type IDbUtils } from '../db/dbUtils';
5
5
  import { type ILogger } from '@leav/logger';
6
6
  interface IDeps {
7
7
  'core.infra.db.dbService'?: IDbService;
@@ -1,9 +1,9 @@
1
- import { type IDbService } from 'infra/db/dbService';
2
- import { type IDbUtils } from 'infra/db/dbUtils';
3
- import { type IForm, type IFormFilterOptions, type IFormStrict } from '_types/forms';
4
- import { type IList } from '_types/list';
5
- import { type IQueryInfos } from '_types/queryInfos';
6
- import { type IGetCoreEntitiesParams } from '_types/shared';
1
+ import { type IDbService } from '../db/dbService';
2
+ import { type IDbUtils } from '../db/dbUtils';
3
+ import { type IForm, type IFormFilterOptions, type IFormStrict } from '../../_types/forms';
4
+ import { type IList } from '../../_types/list';
5
+ import { type IQueryInfos } from '../../_types/queryInfos';
6
+ import { type IGetCoreEntitiesParams } from '../../_types/shared';
7
7
  export declare const FORM_COLLECTION_NAME = "core_forms";
8
8
  type FormFilters = IGetCoreEntitiesParams & {
9
9
  filters?: IFormFilterOptions;
@@ -1,6 +1,6 @@
1
- import { type IDbService } from 'infra/db/dbService';
2
- import { type IGlobalSettings } from '_types/globalSettings';
3
- import { type IQueryInfos } from '_types/queryInfos';
1
+ import { type IDbService } from '../db/dbService';
2
+ import { type IGlobalSettings } from '../../_types/globalSettings';
3
+ import { type IQueryInfos } from '../../_types/queryInfos';
4
4
  export interface IGlobalSettingsRepo {
5
5
  saveSettings({ settings, ctx }: {
6
6
  settings: IGlobalSettings;