@aristid/leav-types 1.2.0-163bd4e1 → 1.2.0-9b00d2ab

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 (287) hide show
  1. package/apps/core/src/__tests__/e2e/api/_fixtures/fakeplugin/index.d.ts +2 -2
  2. package/apps/core/src/__tests__/e2e/api/e2eUtils.d.ts +4 -4
  3. package/apps/core/src/__tests__/e2e/api/globalSetup.d.ts +3 -3
  4. package/apps/core/src/__tests__/integration/infra/integrationTestRepoUtils.d.ts +3 -3
  5. package/apps/core/src/__tests__/mocks/actionsList.d.ts +1 -1
  6. package/apps/core/src/__tests__/mocks/application.d.ts +1 -1
  7. package/apps/core/src/__tests__/mocks/attribute.d.ts +1 -1
  8. package/apps/core/src/__tests__/mocks/cache.d.ts +2 -2
  9. package/apps/core/src/__tests__/mocks/file.d.ts +1 -1
  10. package/apps/core/src/__tests__/mocks/forms.d.ts +1 -1
  11. package/apps/core/src/__tests__/mocks/globalSettings.d.ts +1 -1
  12. package/apps/core/src/__tests__/mocks/library.d.ts +1 -1
  13. package/apps/core/src/__tests__/mocks/log.d.ts +1 -1
  14. package/apps/core/src/__tests__/mocks/plugins.d.ts +1 -1
  15. package/apps/core/src/__tests__/mocks/record.d.ts +1 -1
  16. package/apps/core/src/__tests__/mocks/shared.d.ts +1 -1
  17. package/apps/core/src/__tests__/mocks/task.d.ts +1 -1
  18. package/apps/core/src/__tests__/mocks/translator.d.ts +1 -1
  19. package/apps/core/src/__tests__/mocks/tree.d.ts +1 -1
  20. package/apps/core/src/__tests__/mocks/value.d.ts +1 -1
  21. package/apps/core/src/__tests__/mocks/versionProfile.d.ts +1 -1
  22. package/apps/core/src/__tests__/mocks/view.d.ts +1 -1
  23. package/apps/core/src/_types/actionsList.d.ts +5 -5
  24. package/apps/core/src/_types/apiKey.d.ts +1 -1
  25. package/apps/core/src/_types/application.d.ts +3 -3
  26. package/apps/core/src/_types/attribute.d.ts +8 -8
  27. package/apps/core/src/_types/config.d.ts +2 -2
  28. package/apps/core/src/_types/dbProfiler.d.ts +1 -1
  29. package/apps/core/src/_types/endpoint.d.ts +1 -1
  30. package/apps/core/src/_types/events.d.ts +11 -11
  31. package/apps/core/src/_types/express.d.ts +2 -2
  32. package/apps/core/src/_types/extensionPoints.d.ts +4 -4
  33. package/apps/core/src/_types/filesManager.d.ts +1 -1
  34. package/apps/core/src/_types/forms.d.ts +3 -3
  35. package/apps/core/src/_types/globalSettings.d.ts +1 -1
  36. package/apps/core/src/_types/import.d.ts +1 -1
  37. package/apps/core/src/_types/library.d.ts +6 -6
  38. package/apps/core/src/_types/log.d.ts +2 -2
  39. package/apps/core/src/_types/migration.d.ts +1 -1
  40. package/apps/core/src/_types/permissions.d.ts +1 -1
  41. package/apps/core/src/_types/plugin.d.ts +1 -1
  42. package/apps/core/src/_types/preview.d.ts +1 -1
  43. package/apps/core/src/_types/queryInfos.d.ts +3 -3
  44. package/apps/core/src/_types/record.d.ts +4 -4
  45. package/apps/core/src/_types/shared.d.ts +3 -3
  46. package/apps/core/src/_types/tasksManager.d.ts +1 -1
  47. package/apps/core/src/_types/tree.d.ts +3 -3
  48. package/apps/core/src/_types/value.d.ts +6 -6
  49. package/apps/core/src/_types/versionProfile.d.ts +2 -2
  50. package/apps/core/src/_types/views.d.ts +2 -2
  51. package/apps/core/src/app/application/applicationApp.d.ts +13 -13
  52. package/apps/core/src/app/auth/authApp.d.ts +17 -17
  53. package/apps/core/src/app/core/actionListApp.d.ts +4 -4
  54. package/apps/core/src/app/core/apiKeyApp/_types.d.ts +2 -2
  55. package/apps/core/src/app/core/apiKeyApp/apiKeyApp.d.ts +3 -3
  56. package/apps/core/src/app/core/attributeApp/attributeApp.d.ts +10 -10
  57. package/apps/core/src/app/core/coreApp.d.ts +8 -8
  58. package/apps/core/src/app/core/eventsManagerApp.d.ts +4 -4
  59. package/apps/core/src/app/core/exportApp.d.ts +2 -2
  60. package/apps/core/src/app/core/filesManagerApp.d.ts +7 -7
  61. package/apps/core/src/app/core/formApp/_types.d.ts +2 -2
  62. package/apps/core/src/app/core/formApp/formApp.d.ts +8 -8
  63. package/apps/core/src/app/core/globalSettingsApp.d.ts +9 -9
  64. package/apps/core/src/app/core/helpers/subscriptions.d.ts +2 -2
  65. package/apps/core/src/app/core/importApp.d.ts +7 -7
  66. package/apps/core/src/app/core/indexationManagerApp.d.ts +2 -2
  67. package/apps/core/src/app/core/libraryApp/_types.d.ts +2 -2
  68. package/apps/core/src/app/core/libraryApp/libraryApp.d.ts +8 -8
  69. package/apps/core/src/app/core/logApp.d.ts +10 -10
  70. package/apps/core/src/app/core/permissionApp/_types.d.ts +1 -1
  71. package/apps/core/src/app/core/permissionApp/permissionApp.d.ts +4 -4
  72. package/apps/core/src/app/core/pluginsApp.d.ts +3 -3
  73. package/apps/core/src/app/core/recordApp/_types.d.ts +3 -3
  74. package/apps/core/src/app/core/recordApp/recordApp.d.ts +11 -11
  75. package/apps/core/src/app/core/tasksManagerApp.d.ts +8 -8
  76. package/apps/core/src/app/core/treeApp/_types.d.ts +4 -4
  77. package/apps/core/src/app/core/treeApp/treeApp.d.ts +9 -9
  78. package/apps/core/src/app/core/userDataApp.d.ts +2 -2
  79. package/apps/core/src/app/core/valueApp.d.ts +6 -6
  80. package/apps/core/src/app/core/versionProfileApp/_types.d.ts +2 -2
  81. package/apps/core/src/app/core/versionProfileApp/versionProfileApp.d.ts +3 -3
  82. package/apps/core/src/app/core/viewApp.d.ts +5 -5
  83. package/apps/core/src/app/endpoint/endpointApp.d.ts +8 -8
  84. package/apps/core/src/app/graphql/customScalars/dateTime/dateTime.d.ts +1 -1
  85. package/apps/core/src/app/graphql/customScalars/helpers/parseLiteral.d.ts +1 -1
  86. package/apps/core/src/app/graphql/customScalars/systemTranslation/systemTranslation.d.ts +1 -1
  87. package/apps/core/src/app/graphql/graphqlApp.d.ts +6 -6
  88. package/apps/core/src/app/helpers/convertVersionFromGqlFormat.d.ts +1 -1
  89. package/apps/core/src/app/helpers/initQueryContext.d.ts +3 -3
  90. package/apps/core/src/app/helpers/validateRequestToken.d.ts +4 -4
  91. package/apps/core/src/config.d.ts +1 -1
  92. package/apps/core/src/depsManager.d.ts +1 -1
  93. package/apps/core/src/domain/actions/dateRangeToNumberAction.d.ts +1 -1
  94. package/apps/core/src/domain/actions/encryptAction.d.ts +1 -1
  95. package/apps/core/src/domain/actions/excelCalculationAction.d.ts +3 -3
  96. package/apps/core/src/domain/actions/formatDateAction.d.ts +1 -1
  97. package/apps/core/src/domain/actions/formatDateRangeAction.d.ts +1 -1
  98. package/apps/core/src/domain/actions/formatNumberAction.d.ts +1 -1
  99. package/apps/core/src/domain/actions/inheritanceCalculationAction.d.ts +3 -3
  100. package/apps/core/src/domain/actions/maskValueAction.d.ts +1 -1
  101. package/apps/core/src/domain/actions/parseJSONAction.d.ts +1 -1
  102. package/apps/core/src/domain/actions/toBooleanAction.d.ts +1 -1
  103. package/apps/core/src/domain/actions/toJSONAction.d.ts +1 -1
  104. package/apps/core/src/domain/actions/toNumberAction.d.ts +1 -1
  105. package/apps/core/src/domain/actions/toStringAction.d.ts +1 -1
  106. package/apps/core/src/domain/actions/toUppercaseAction.d.ts +1 -1
  107. package/apps/core/src/domain/actions/validateEmailAction.d.ts +1 -1
  108. package/apps/core/src/domain/actions/validateFormatAction.d.ts +1 -1
  109. package/apps/core/src/domain/actions/validateRegexAction.d.ts +1 -1
  110. package/apps/core/src/domain/actions/validateURLAction.d.ts +1 -1
  111. package/apps/core/src/domain/actionsList/actionsListDomain.d.ts +8 -8
  112. package/apps/core/src/domain/apiKey/apiKeyDomain.d.ts +9 -9
  113. package/apps/core/src/domain/application/applicationDomain.d.ts +10 -10
  114. package/apps/core/src/domain/attribute/attributeDomain.d.ts +15 -15
  115. package/apps/core/src/domain/attribute/helpers/attributeALHelper.d.ts +3 -3
  116. package/apps/core/src/domain/attribute/helpers/attributeValidationHelper.d.ts +8 -8
  117. package/apps/core/src/domain/attribute/helpers/ifLibraryJoinLinkAttribute.d.ts +4 -4
  118. package/apps/core/src/domain/eventsManager/eventsManagerDomain.d.ts +8 -8
  119. package/apps/core/src/domain/export/exportDomain.d.ts +13 -13
  120. package/apps/core/src/domain/filesManager/_constants.d.ts +1 -1
  121. package/apps/core/src/domain/filesManager/filesManagerDomain.d.ts +21 -21
  122. package/apps/core/src/domain/filesManager/helpers/extractFileMetadata.d.ts +2 -2
  123. package/apps/core/src/domain/filesManager/helpers/getRootPathByKey.d.ts +1 -1
  124. package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/_types.d.ts +14 -14
  125. package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleCreateEvent.d.ts +3 -3
  126. package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleFileSystemEvent.d.ts +12 -12
  127. package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleMoveEvent.d.ts +3 -3
  128. package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleRemoveEvent.d.ts +3 -3
  129. package/apps/core/src/domain/filesManager/helpers/handleFileSystemEvent/handleUpdateEvent.d.ts +3 -3
  130. package/apps/core/src/domain/filesManager/helpers/handleFileUtilsHelper.d.ts +10 -10
  131. package/apps/core/src/domain/filesManager/helpers/handlePreview.d.ts +4 -4
  132. package/apps/core/src/domain/filesManager/helpers/handlePreviewResponse.d.ts +9 -9
  133. package/apps/core/src/domain/filesManager/helpers/messagesHandler/messagesHandler.d.ts +5 -5
  134. package/apps/core/src/domain/form/formDomain.d.ts +17 -17
  135. package/apps/core/src/domain/form/helpers/getElementValues.d.ts +6 -6
  136. package/apps/core/src/domain/form/helpers/mustIncludeElement.d.ts +4 -4
  137. package/apps/core/src/domain/globalSettings/globalSettingsDomain.d.ts +7 -7
  138. package/apps/core/src/domain/helpers/calculationVariable/index.d.ts +3 -3
  139. package/apps/core/src/domain/helpers/calculationsVariableFunctions/index.d.ts +4 -4
  140. package/apps/core/src/domain/helpers/getCoreEntityById.d.ts +8 -8
  141. package/apps/core/src/domain/helpers/storeUploadFile.d.ts +2 -2
  142. package/apps/core/src/domain/helpers/updateRecordLastModif.d.ts +5 -5
  143. package/apps/core/src/domain/helpers/updateTaskProgress.d.ts +4 -4
  144. package/apps/core/src/domain/helpers/validate.d.ts +8 -8
  145. package/apps/core/src/domain/import/importDomain.d.ts +20 -20
  146. package/apps/core/src/domain/indexationManager/indexationManagerDomain.d.ts +14 -14
  147. package/apps/core/src/domain/library/helpers/checkSavePermission.d.ts +2 -2
  148. package/apps/core/src/domain/library/helpers/deleteAssociatedValues.d.ts +5 -5
  149. package/apps/core/src/domain/library/helpers/runBehaviorPostSave.d.ts +8 -8
  150. package/apps/core/src/domain/library/helpers/runPreDelete.d.ts +5 -5
  151. package/apps/core/src/domain/library/helpers/updateAssociatedForms.d.ts +2 -2
  152. package/apps/core/src/domain/library/helpers/validateLibAttributes.d.ts +4 -4
  153. package/apps/core/src/domain/library/helpers/validateLibFullTextAttributes.d.ts +2 -2
  154. package/apps/core/src/domain/library/helpers/validatePermConf.d.ts +5 -5
  155. package/apps/core/src/domain/library/helpers/validatePreviewsSettings.d.ts +3 -3
  156. package/apps/core/src/domain/library/helpers/validateRecordIdentityConf.d.ts +4 -4
  157. package/apps/core/src/domain/library/libraryDomain.d.ts +20 -20
  158. package/apps/core/src/domain/log/logDomain.d.ts +5 -5
  159. package/apps/core/src/domain/permission/_types.d.ts +3 -3
  160. package/apps/core/src/domain/permission/adminPermissionDomain.d.ts +2 -2
  161. package/apps/core/src/domain/permission/applicationPermissionDomain.d.ts +2 -2
  162. package/apps/core/src/domain/permission/attributePermissionDomain.d.ts +2 -2
  163. package/apps/core/src/domain/permission/helpers/defaultPermission.d.ts +1 -1
  164. package/apps/core/src/domain/permission/helpers/getPermissionCacheKey.d.ts +1 -1
  165. package/apps/core/src/domain/permission/helpers/getPermissionCachePatternKey.d.ts +1 -1
  166. package/apps/core/src/domain/permission/helpers/globalPermission.d.ts +5 -5
  167. package/apps/core/src/domain/permission/helpers/permissionByUserGroups.d.ts +8 -8
  168. package/apps/core/src/domain/permission/helpers/permissionsByActions.d.ts +2 -2
  169. package/apps/core/src/domain/permission/helpers/simplePermission.d.ts +2 -2
  170. package/apps/core/src/domain/permission/helpers/treeBasedPermissions.d.ts +7 -7
  171. package/apps/core/src/domain/permission/libraryPermissionDomain.d.ts +2 -2
  172. package/apps/core/src/domain/permission/permissionDomain.d.ts +17 -17
  173. package/apps/core/src/domain/permission/recordAttributePermissionDomain.d.ts +9 -9
  174. package/apps/core/src/domain/permission/recordPermissionDomain.d.ts +9 -9
  175. package/apps/core/src/domain/permission/treeLibraryPermissionDomain.d.ts +2 -2
  176. package/apps/core/src/domain/permission/treeNodePermissionDomain.d.ts +10 -10
  177. package/apps/core/src/domain/permission/treePermissionDomain.d.ts +2 -2
  178. package/apps/core/src/domain/record/_types.d.ts +5 -5
  179. package/apps/core/src/domain/record/helpers/createRecord.d.ts +5 -5
  180. package/apps/core/src/domain/record/helpers/deleteRecord.d.ts +8 -8
  181. package/apps/core/src/domain/record/helpers/getAccessPermissionFilters.d.ts +7 -7
  182. package/apps/core/src/domain/record/helpers/getAttributesFromField.d.ts +6 -6
  183. package/apps/core/src/domain/record/helpers/sendRecordUpdateEvent.d.ts +3 -3
  184. package/apps/core/src/domain/record/helpers/validateLibrary.d.ts +2 -2
  185. package/apps/core/src/domain/record/recordDomain.d.ts +30 -30
  186. package/apps/core/src/domain/tasksManager/tasksManagerDomain.d.ts +12 -12
  187. package/apps/core/src/domain/tree/helpers/elementAncestors.d.ts +3 -3
  188. package/apps/core/src/domain/tree/helpers/getDefaultElement.d.ts +4 -4
  189. package/apps/core/src/domain/tree/helpers/handleRemovedLibraries.d.ts +3 -3
  190. package/apps/core/src/domain/tree/helpers/treeDataValidation.d.ts +4 -4
  191. package/apps/core/src/domain/tree/treeDomain.d.ts +20 -20
  192. package/apps/core/src/domain/user/userDomain.d.ts +9 -9
  193. package/apps/core/src/domain/value/_types.d.ts +5 -5
  194. package/apps/core/src/domain/value/helpers/canSaveRecordValue.d.ts +7 -7
  195. package/apps/core/src/domain/value/helpers/doesValueExist.d.ts +2 -2
  196. package/apps/core/src/domain/value/helpers/findValue.d.ts +1 -1
  197. package/apps/core/src/domain/value/helpers/formatLogValue.d.ts +10 -10
  198. package/apps/core/src/domain/value/helpers/isEmptyValue.d.ts +1 -1
  199. package/apps/core/src/domain/value/helpers/prepareValue.d.ts +6 -6
  200. package/apps/core/src/domain/value/helpers/saveOneValue.d.ts +10 -10
  201. package/apps/core/src/domain/value/helpers/validateValue.d.ts +8 -8
  202. package/apps/core/src/domain/value/valueDomain.d.ts +26 -26
  203. package/apps/core/src/domain/versionProfile/versionProfileDomain.d.ts +12 -12
  204. package/apps/core/src/domain/view/viewDomain.d.ts +7 -7
  205. package/apps/core/src/errors/GraphQLAuthenticationError.d.ts +2 -2
  206. package/apps/core/src/errors/LeavError.d.ts +1 -1
  207. package/apps/core/src/errors/PermissionError.d.ts +2 -2
  208. package/apps/core/src/errors/ValidationError.d.ts +1 -1
  209. package/apps/core/src/errors/typeguards.d.ts +2 -2
  210. package/apps/core/src/i18nextInit.d.ts +2 -2
  211. package/apps/core/src/infra/apiKey/apiKeyRepo.d.ts +5 -5
  212. package/apps/core/src/infra/application/applicationRepo.d.ts +8 -8
  213. package/apps/core/src/infra/attribute/attributeRepo.d.ts +8 -8
  214. package/apps/core/src/infra/attributeTypes/attributeAdvancedLinkRepo.d.ts +7 -7
  215. package/apps/core/src/infra/attributeTypes/attributeAdvancedRepo.d.ts +6 -6
  216. package/apps/core/src/infra/attributeTypes/attributeSimpleLinkRepo.d.ts +6 -6
  217. package/apps/core/src/infra/attributeTypes/attributeSimpleRepo.d.ts +5 -5
  218. package/apps/core/src/infra/attributeTypes/attributeTreeRepo.d.ts +7 -7
  219. package/apps/core/src/infra/attributeTypes/attributeTypesRepo.d.ts +10 -10
  220. package/apps/core/src/infra/attributeTypes/helpers/getConditionPart.d.ts +2 -2
  221. package/apps/core/src/infra/cache/cacheService.d.ts +1 -1
  222. package/apps/core/src/infra/cache/diskService.d.ts +2 -2
  223. package/apps/core/src/infra/cache/ramService.d.ts +3 -3
  224. package/apps/core/src/infra/cache/redis.d.ts +1 -1
  225. package/apps/core/src/infra/db/_types.d.ts +2 -2
  226. package/apps/core/src/infra/db/db.d.ts +1 -1
  227. package/apps/core/src/infra/db/dbService.d.ts +6 -6
  228. package/apps/core/src/infra/db/dbUtils.d.ts +9 -9
  229. package/apps/core/src/infra/db/helpers/runMigrationFiles.d.ts +4 -4
  230. package/apps/core/src/infra/db/migrations/000-init/index.d.ts +7 -7
  231. package/apps/core/src/infra/db/migrations/000-init/systemApplications.d.ts +1 -1
  232. package/apps/core/src/infra/db/migrations/000-init/systemAttributes.d.ts +1 -1
  233. package/apps/core/src/infra/db/migrations/000-init/systemLibraries.d.ts +2 -2
  234. package/apps/core/src/infra/db/migrations/000-init/systemTrees.d.ts +1 -1
  235. package/apps/core/src/infra/db/migrations/001-delInstallApps.d.ts +2 -2
  236. package/apps/core/src/infra/db/migrations/002-previewsSettings.d.ts +6 -6
  237. package/apps/core/src/infra/db/migrations/003-filesMetadata.d.ts +4 -4
  238. package/apps/core/src/infra/db/migrations/004-formsLabels.d.ts +2 -2
  239. package/apps/core/src/infra/db/migrations/005-viewSortToArray.d.ts +2 -2
  240. package/apps/core/src/infra/db/migrations/007-updateHexColor.d.ts +1 -1
  241. package/apps/core/src/infra/db/migrations/010-formSidePanel.d.ts +2 -2
  242. package/apps/core/src/infra/elasticSearch/elasticSearchClient.d.ts +1 -1
  243. package/apps/core/src/infra/elasticSearch/elasticSearchService.d.ts +3 -3
  244. package/apps/core/src/infra/filesManager/filesManagerRepo.d.ts +5 -5
  245. package/apps/core/src/infra/form/formRepo.d.ts +6 -6
  246. package/apps/core/src/infra/globalSettings/globalSettingsRepo.d.ts +3 -3
  247. package/apps/core/src/infra/indexation/helpers/getSearchQuery.d.ts +2 -2
  248. package/apps/core/src/infra/indexation/indexationService.d.ts +5 -5
  249. package/apps/core/src/infra/library/libraryRepo.d.ts +7 -7
  250. package/apps/core/src/infra/log/logRepo.d.ts +4 -4
  251. package/apps/core/src/infra/mailer/mailer.d.ts +1 -1
  252. package/apps/core/src/infra/mailer/mailerService.d.ts +4 -4
  253. package/apps/core/src/infra/oidc/oidcClient.d.ts +2 -2
  254. package/apps/core/src/infra/oidc/oidcClientService.d.ts +3 -3
  255. package/apps/core/src/infra/permission/permissionRepo.d.ts +4 -4
  256. package/apps/core/src/infra/record/helpers/filterTypes.d.ts +1 -1
  257. package/apps/core/src/infra/record/helpers/getClassifyingFiltersVariableQueryPart.d.ts +4 -4
  258. package/apps/core/src/infra/record/helpers/getSearchVariableName.d.ts +2 -2
  259. package/apps/core/src/infra/record/helpers/getSearchVariablesQueryPart.d.ts +6 -6
  260. package/apps/core/src/infra/record/recordRepo.d.ts +14 -14
  261. package/apps/core/src/infra/task/taskRepo.d.ts +7 -7
  262. package/apps/core/src/infra/tree/_types.d.ts +1 -1
  263. package/apps/core/src/infra/tree/treeRepo.d.ts +6 -6
  264. package/apps/core/src/infra/userData/userDataRepo.d.ts +3 -3
  265. package/apps/core/src/infra/value/valueRepo.d.ts +6 -6
  266. package/apps/core/src/infra/versionProfile/versionProfileRepo.d.ts +6 -6
  267. package/apps/core/src/infra/view/_types.d.ts +6 -6
  268. package/apps/core/src/infra/view/viewRepo.d.ts +1 -1
  269. package/apps/core/src/interface/cli.d.ts +1 -1
  270. package/apps/core/src/interface/filesManager.d.ts +1 -1
  271. package/apps/core/src/interface/helpers/handleGraphqlError.d.ts +5 -5
  272. package/apps/core/src/interface/indexationManager.d.ts +1 -1
  273. package/apps/core/src/interface/server.d.ts +12 -12
  274. package/apps/core/src/interface/tasksManager.d.ts +1 -1
  275. package/apps/core/src/pluginsLoader.d.ts +1 -1
  276. package/apps/core/src/utils/dataloader.d.ts +2 -2
  277. package/apps/core/src/utils/helpers/getDefaultActionsList.d.ts +2 -2
  278. package/apps/core/src/utils/helpers/getSystemQueryContext.d.ts +2 -2
  279. package/apps/core/src/utils/helpers/getValuesToDisplay.d.ts +1 -1
  280. package/apps/core/src/utils/typeGuards/index.d.ts +2 -2
  281. package/apps/core/src/utils/utils.d.ts +8 -8
  282. package/libs/message-broker/src/amqpService.d.ts +1 -1
  283. package/libs/message-broker/src/types/amqp.d.ts +1 -1
  284. package/libs/utils/src/types/forms.d.ts +1 -1
  285. package/libs/utils/src/types/logs.d.ts +1 -1
  286. package/libs/utils/src/utils.d.ts +1 -1
  287. package/package.json +1 -1
@@ -1,13 +1,13 @@
1
- import { type GetCoreEntityByIdFunc } from 'domain/helpers/getCoreEntityById';
2
- import { type ITreeRepo } from 'infra/tree/treeRepo';
3
- import { type IValueRepo } from 'infra/value/valueRepo';
4
- import { type IAttributeDomain } from '../attribute/attributeDomain';
5
- import { type IPermissionByUserGroupsHelper } from './helpers/permissionByUserGroups';
6
- import { type ITreeBasedPermissionHelper } from './helpers/treeBasedPermissions';
7
- import { type ITreeLibraryPermissionDomain } from './treeLibraryPermissionDomain';
8
- import { type ITreePermissionDomain } from './treePermissionDomain';
9
- import { type IGetInheritedTreeNodePermissionParams, type IGetTreeNodePermissionParams } from './_types';
10
- import { type IElementAncestorsHelper } from 'domain/tree/helpers/elementAncestors';
1
+ import { GetCoreEntityByIdFunc } from 'domain/helpers/getCoreEntityById';
2
+ import { ITreeRepo } from 'infra/tree/treeRepo';
3
+ import { IValueRepo } from 'infra/value/valueRepo';
4
+ import { IAttributeDomain } from '../attribute/attributeDomain';
5
+ import { IPermissionByUserGroupsHelper } from './helpers/permissionByUserGroups';
6
+ import { ITreeBasedPermissionHelper } from './helpers/treeBasedPermissions';
7
+ import { ITreeLibraryPermissionDomain } from './treeLibraryPermissionDomain';
8
+ import { ITreePermissionDomain } from './treePermissionDomain';
9
+ import { IGetInheritedTreeNodePermissionParams, IGetTreeNodePermissionParams } from './_types';
10
+ import { IElementAncestorsHelper } from 'domain/tree/helpers/elementAncestors';
11
11
  export interface ITreeNodePermissionDomain {
12
12
  getTreeNodePermission(params: IGetTreeNodePermissionParams): Promise<boolean>;
13
13
  getInheritedTreeNodePermission(params: IGetInheritedTreeNodePermissionParams): Promise<boolean>;
@@ -1,5 +1,5 @@
1
- import { type IGlobalPermissionHelper } from './helpers/globalPermission';
2
- import { type IGetInheritedTreePermissionParams, type IGetTreePermissionParams } from './_types';
1
+ import { IGlobalPermissionHelper } from './helpers/globalPermission';
2
+ import { IGetInheritedTreePermissionParams, IGetTreePermissionParams } from './_types';
3
3
  export interface ITreePermissionDomain {
4
4
  getTreePermission(params: IGetTreePermissionParams): Promise<boolean>;
5
5
  getInheritedTreePermission(params: IGetInheritedTreePermissionParams): Promise<boolean>;
@@ -1,8 +1,8 @@
1
- import { type ErrorTypes } from '@leav/utils';
2
- import { type Errors } from '_types/errors';
3
- import { type ICursorPaginationParams, type IPaginationParams } from '_types/list';
4
- import { type IRecord, type IRecordFilterLight, type IRecordSortLight } from '_types/record';
5
- import { type IValue, type IValuesOptions, type IValueVersion } from '_types/value';
1
+ import { ErrorTypes } from '@leav/utils';
2
+ import { Errors } from '_types/errors';
3
+ import { ICursorPaginationParams, IPaginationParams } from '_types/list';
4
+ import { IRecord, IRecordFilterLight, IRecordSortLight } from '_types/record';
5
+ import { IValue, IValuesOptions, IValueVersion } from '_types/value';
6
6
  export interface IFindRecordParams {
7
7
  library: string;
8
8
  filters?: IRecordFilterLight[];
@@ -1,8 +1,8 @@
1
- import { type IEventsManagerDomain } from 'domain/eventsManager/eventsManagerDomain';
2
- import { type ILibraryPermissionDomain } from 'domain/permission/libraryPermissionDomain';
3
- import { type IRecordRepo } from 'infra/record/recordRepo';
4
- import { type IQueryInfos } from '../../../_types/queryInfos';
5
- import { type ICreateRecordResult, type ICreateRecordValueError } from '../_types';
1
+ import { IEventsManagerDomain } from 'domain/eventsManager/eventsManagerDomain';
2
+ import { ILibraryPermissionDomain } from 'domain/permission/libraryPermissionDomain';
3
+ import { IRecordRepo } from 'infra/record/recordRepo';
4
+ import { IQueryInfos } from '../../../_types/queryInfos';
5
+ import { ICreateRecordResult, ICreateRecordValueError } from '../_types';
6
6
  export type IPreCreateRecordCallback = () => Promise<ICreateRecordValueError[]>;
7
7
  export type CreateRecordHelper = (params: {
8
8
  library: string;
@@ -1,11 +1,11 @@
1
- import { type IEventsManagerDomain } from 'domain/eventsManager/eventsManagerDomain';
2
- import { type IQueryInfos } from '../../../_types/queryInfos';
3
- import { type IRecordPermissionDomain } from 'domain/permission/recordPermissionDomain';
4
- import { type IValidateHelper } from 'domain/helpers/validate';
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 IRecord } from '../../../_types/record';
1
+ import { IEventsManagerDomain } from 'domain/eventsManager/eventsManagerDomain';
2
+ import { IQueryInfos } from '../../../_types/queryInfos';
3
+ import { IRecordPermissionDomain } from 'domain/permission/recordPermissionDomain';
4
+ import { IValidateHelper } from 'domain/helpers/validate';
5
+ import { IRecordRepo } from 'infra/record/recordRepo';
6
+ import { ITreeRepo } from 'infra/tree/treeRepo';
7
+ import { IValueRepo } from 'infra/value/valueRepo';
8
+ import { IRecord } from '../../../_types/record';
9
9
  export type DeleteRecordHelper = (library: string, id: string, ctx: IQueryInfos) => Promise<IRecord>;
10
10
  interface IDeps {
11
11
  'core.domain.helpers.validate': IValidateHelper;
@@ -1,10 +1,10 @@
1
- import { type IAttribute } from '_types/attribute';
2
- import { type IQueryInfos } from '_types/queryInfos';
3
- import { type ITreeNode } from '_types/tree';
4
- import { type GetCoreEntityByIdFunc } from 'domain/helpers/getCoreEntityById';
5
- import { type IPermissionRepo } from 'infra/permission/permissionRepo';
6
- import { type ITreeRepo } from 'infra/tree/treeRepo';
7
- import { type IDefaultPermissionHelper } from 'domain/permission/helpers/defaultPermission';
1
+ import { IAttribute } from '_types/attribute';
2
+ import { IQueryInfos } from '_types/queryInfos';
3
+ import { ITreeNode } from '_types/tree';
4
+ import { GetCoreEntityByIdFunc } from 'domain/helpers/getCoreEntityById';
5
+ import { IPermissionRepo } from 'infra/permission/permissionRepo';
6
+ import { ITreeRepo } from 'infra/tree/treeRepo';
7
+ import { IDefaultPermissionHelper } from 'domain/permission/helpers/defaultPermission';
8
8
  interface IAccessPermissionFilterDeps {
9
9
  'core.domain.helpers.getCoreEntityById': GetCoreEntityByIdFunc;
10
10
  'core.infra.tree': ITreeRepo;
@@ -1,9 +1,9 @@
1
- import { type IAttributeDomain } from 'domain/attribute/attributeDomain';
2
- import { type ILibraryRepo } from 'infra/library/libraryRepo';
3
- import { type ITreeRepo } from 'infra/tree/treeRepo';
4
- import { type IQueryInfos } from '_types/queryInfos';
5
- import { type IAttribute } from '../../../_types/attribute';
6
- import { type IRecordFilterLight } from '../../../_types/record';
1
+ import { IAttributeDomain } from 'domain/attribute/attributeDomain';
2
+ import { ILibraryRepo } from 'infra/library/libraryRepo';
3
+ import { ITreeRepo } from 'infra/tree/treeRepo';
4
+ import { IQueryInfos } from '_types/queryInfos';
5
+ import { IAttribute } from '../../../_types/attribute';
6
+ import { IRecordFilterLight } from '../../../_types/record';
7
7
  interface IDeps {
8
8
  'core.domain.attribute': IAttributeDomain;
9
9
  'core.infra.library': ILibraryRepo;
@@ -1,6 +1,6 @@
1
- import { type IEventsManagerDomain } from 'domain/eventsManager/eventsManagerDomain';
2
- import { type IQueryInfos } from '_types/queryInfos';
3
- import { type IRecord, type IRecordUpdateEvent } from '_types/record';
1
+ import { IEventsManagerDomain } from 'domain/eventsManager/eventsManagerDomain';
2
+ import { IQueryInfos } from '_types/queryInfos';
3
+ import { IRecord, IRecordUpdateEvent } from '_types/record';
4
4
  type RequiredOnField<T, F extends keyof T> = Required<Pick<T, F>> & Omit<T, F>;
5
5
  export declare const isRecordWithId: (record: IRecord) => record is RequiredOnField<IRecord, "id">;
6
6
  export type SendRecordUpdateEventHelper = (record: IRecord, updatedValues: IRecordUpdateEvent['updatedValues'], ctx: IQueryInfos) => void;
@@ -1,5 +1,5 @@
1
- import { type ILibraryDomain } from 'domain/library/libraryDomain';
2
- import { type IQueryInfos } from '_types/queryInfos';
1
+ import { ILibraryDomain } from 'domain/library/libraryDomain';
2
+ import { IQueryInfos } from '_types/queryInfos';
3
3
  declare const _default: (library: string, deps: {
4
4
  libraryDomain: ILibraryDomain;
5
5
  }, ctx: IQueryInfos) => Promise<void>;
@@ -1,33 +1,33 @@
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 ILibraryPermissionDomain } from 'domain/permission/libraryPermissionDomain';
5
- import { type IValueDomain } from 'domain/value/valueDomain';
6
- import { type i18n } from 'i18next';
7
- import { type ILibraryRepo } from 'infra/library/libraryRepo';
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
- import type * as Config from '_types/config';
13
- import { type IListWithCursor } from '_types/list';
14
- import { type ISaveValue, type IValue, type IValuesOptions } from '_types/value';
15
- import { type ICachesService } from '../../infra/cache/cacheService';
16
- import { type IQueryInfos } from '../../_types/queryInfos';
17
- import { type IRecord, type IRecordFilterLight, type IRecordIdentity } from '../../_types/record';
18
- import { type IAttributeDomain } from '../attribute/attributeDomain';
19
- import { type IRecordPermissionDomain } from '../permission/recordPermissionDomain';
20
- import { type SendRecordUpdateEventHelper } from './helpers/sendRecordUpdateEvent';
21
- import { type ICreateRecordResult, type IFindRecordParams } from './_types';
22
- import { type IFormRepo } from 'infra/form/formRepo';
23
- import { type IRecordAttributePermissionDomain } from '../permission/recordAttributePermissionDomain';
24
- import { type IAttributePermissionDomain } from '../permission/attributePermissionDomain';
25
- import { type IPermissionRepo } from '../../infra/permission/permissionRepo';
26
- import { type IDefaultPermissionHelper } from 'domain/permission/helpers/defaultPermission';
27
- import { type DeleteRecordHelper } from './helpers/deleteRecord';
28
- import { type CreateRecordHelper } from './helpers/createRecord';
29
- import { type IElementAncestorsHelper } from 'domain/tree/helpers/elementAncestors';
30
- import type winston from 'winston';
1
+ import { IEventsManagerDomain } from 'domain/eventsManager/eventsManagerDomain';
2
+ import { GetCoreEntityByIdFunc } from 'domain/helpers/getCoreEntityById';
3
+ import { IValidateHelper } from 'domain/helpers/validate';
4
+ import { ILibraryPermissionDomain } from 'domain/permission/libraryPermissionDomain';
5
+ import { IValueDomain } from 'domain/value/valueDomain';
6
+ import type { i18n } from 'i18next';
7
+ import { ILibraryRepo } from 'infra/library/libraryRepo';
8
+ import { IRecordRepo } from 'infra/record/recordRepo';
9
+ import { ITreeRepo } from 'infra/tree/treeRepo';
10
+ import { IValueRepo } from 'infra/value/valueRepo';
11
+ import { IUtils } from 'utils/utils';
12
+ import * as Config from '_types/config';
13
+ import { IListWithCursor } from '_types/list';
14
+ import { ISaveValue, IValue, IValuesOptions } from '_types/value';
15
+ import { ICachesService } from '../../infra/cache/cacheService';
16
+ import { IQueryInfos } from '../../_types/queryInfos';
17
+ import { IRecord, IRecordFilterLight, IRecordIdentity } from '../../_types/record';
18
+ import { IAttributeDomain } from '../attribute/attributeDomain';
19
+ import { IRecordPermissionDomain } from '../permission/recordPermissionDomain';
20
+ import { SendRecordUpdateEventHelper } from './helpers/sendRecordUpdateEvent';
21
+ import { ICreateRecordResult, IFindRecordParams } from './_types';
22
+ import { IFormRepo } from 'infra/form/formRepo';
23
+ import { IRecordAttributePermissionDomain } from '../permission/recordAttributePermissionDomain';
24
+ import { IAttributePermissionDomain } from '../permission/attributePermissionDomain';
25
+ import { IPermissionRepo } from '../../infra/permission/permissionRepo';
26
+ import { IDefaultPermissionHelper } from 'domain/permission/helpers/defaultPermission';
27
+ import { DeleteRecordHelper } from './helpers/deleteRecord';
28
+ import { CreateRecordHelper } from './helpers/createRecord';
29
+ import { IElementAncestorsHelper } from 'domain/tree/helpers/elementAncestors';
30
+ import winston from 'winston';
31
31
  export interface IRecordDomain {
32
32
  /**
33
33
  * Create empty record
@@ -1,15 +1,15 @@
1
- import { type IAmqpService } from '@leav/message-broker';
2
- import { type AwilixContainer } from 'awilix';
3
- import { type IEventsManagerDomain } from 'domain/eventsManager/eventsManagerDomain';
4
- import { type IUtils } from 'utils/utils';
5
- import type winston from 'winston';
6
- import type * as Config from '_types/config';
7
- import { type IQueryInfos } from '_types/queryInfos';
8
- import { type IGetCoreEntitiesParams } from '_types/shared';
9
- import { type ISystemTranslation } from '_types/systemTranslation';
10
- import { type ITaskRepo } from '../../infra/task/taskRepo';
11
- import { type IList } from '../../_types/list';
12
- import { type ITask, type ITaskCallback, type ITaskCancelPayload, type ITaskCreatePayload, type ITaskDeletePayload, TaskStatus } from '../../_types/tasksManager';
1
+ import { IAmqpService } from '@leav/message-broker';
2
+ import { AwilixContainer } from 'awilix';
3
+ import { IEventsManagerDomain } from 'domain/eventsManager/eventsManagerDomain';
4
+ import { IUtils } from 'utils/utils';
5
+ import winston from 'winston';
6
+ import * as Config from '_types/config';
7
+ import { IQueryInfos } from '_types/queryInfos';
8
+ import { IGetCoreEntitiesParams } from '_types/shared';
9
+ import { ISystemTranslation } from '_types/systemTranslation';
10
+ import { ITaskRepo } from '../../infra/task/taskRepo';
11
+ import { IList } from '../../_types/list';
12
+ import { ITask, ITaskCallback, ITaskCancelPayload, ITaskCreatePayload, ITaskDeletePayload, TaskStatus } from '../../_types/tasksManager';
13
13
  export interface IUpdateData {
14
14
  status?: TaskStatus;
15
15
  progress?: {
@@ -1,6 +1,6 @@
1
- import { type ITreeDomain } from 'domain/tree/treeDomain';
2
- import { type ITreeRepo } from 'infra/tree/treeRepo';
3
- import { type ICachesService } from '../../../infra/cache/cacheService';
1
+ import { ITreeDomain } from 'domain/tree/treeDomain';
2
+ import { ITreeRepo } from 'infra/tree/treeRepo';
3
+ import { ICachesService } from '../../../infra/cache/cacheService';
4
4
  interface IDeps {
5
5
  'core.infra.tree': ITreeRepo;
6
6
  'core.infra.cache.cacheService': ICachesService;
@@ -1,7 +1,7 @@
1
- import { type ITreeRepo } from 'infra/tree/treeRepo';
2
- import { type IUtils } from 'utils/utils';
3
- import { type ITreeNode } from '_types/tree';
4
- import { type ICachesService } from '../../../infra/cache/cacheService';
1
+ import { ITreeRepo } from 'infra/tree/treeRepo';
2
+ import { IUtils } from 'utils/utils';
3
+ import { ITreeNode } from '_types/tree';
4
+ import { ICachesService } from '../../../infra/cache/cacheService';
5
5
  interface IDeps {
6
6
  'core.infra.tree': ITreeRepo;
7
7
  'core.infra.cache.cacheService': ICachesService;
@@ -1,6 +1,6 @@
1
- import { type ITreeRepo } from 'infra/tree/treeRepo';
2
- import { type IQueryInfos } from '_types/queryInfos';
3
- import { type ITree } from '_types/tree';
1
+ import { ITreeRepo } from 'infra/tree/treeRepo';
2
+ import { IQueryInfos } from '_types/queryInfos';
3
+ import { ITree } from '_types/tree';
4
4
  interface IDeps {
5
5
  'core.infra.tree': ITreeRepo;
6
6
  }
@@ -1,7 +1,7 @@
1
- import { type ILibraryRepo } from 'infra/library/libraryRepo';
2
- import { type IUtils } from 'utils/utils';
3
- import { type IQueryInfos } from '_types/queryInfos';
4
- import { type ITree } from '../../../_types/tree';
1
+ import { ILibraryRepo } from 'infra/library/libraryRepo';
2
+ import { IUtils } from 'utils/utils';
3
+ import { IQueryInfos } from '_types/queryInfos';
4
+ import { ITree } from '../../../_types/tree';
5
5
  export interface ITreeDataValidationHelper {
6
6
  validate(treeData: ITree, ctx: IQueryInfos): Promise<void>;
7
7
  }
@@ -1,23 +1,23 @@
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 ITreeNodePermissionDomain } from 'domain/permission/treeNodePermissionDomain';
5
- import { type ITreePermissionDomain } from 'domain/permission/treePermissionDomain';
6
- import { type ILibraryRepo } from 'infra/library/libraryRepo';
7
- import { type ITreeRepo } from 'infra/tree/treeRepo';
8
- import { type IVersionProfileRepo } from 'infra/versionProfile/versionProfileRepo';
9
- import { type IUtils } from 'utils/utils';
10
- import { type IQueryInfos } from '_types/queryInfos';
11
- import { type ICachesService } from '../../infra/cache/cacheService';
12
- import { type IList, type IPaginationParams } from '../../_types/list';
13
- import { type IRecord } from '../../_types/record';
14
- import { type IGetCoreTreesParams, type ITree, type ITreeElement, type ITreeNode, type ITreeNodeLight, type TreePath } from '../../_types/tree';
15
- import { type IAttributeDomain } from '../attribute/attributeDomain';
16
- import { type IRecordDomain } from '../record/recordDomain';
17
- import { type IElementAncestorsHelper } from './helpers/elementAncestors';
18
- import { type IGetDefaultElementHelper } from './helpers/getDefaultElement';
19
- import { type HandleRemovedLibrariesFunc } from './helpers/handleRemovedLibraries';
20
- import { type ITreeDataValidationHelper } from './helpers/treeDataValidation';
1
+ import { IEventsManagerDomain } from 'domain/eventsManager/eventsManagerDomain';
2
+ import { GetCoreEntityByIdFunc } from 'domain/helpers/getCoreEntityById';
3
+ import { IAdminPermissionDomain } from 'domain/permission/adminPermissionDomain';
4
+ import { ITreeNodePermissionDomain } from 'domain/permission/treeNodePermissionDomain';
5
+ import { ITreePermissionDomain } from 'domain/permission/treePermissionDomain';
6
+ import { ILibraryRepo } from 'infra/library/libraryRepo';
7
+ import { ITreeRepo } from 'infra/tree/treeRepo';
8
+ import { IVersionProfileRepo } from 'infra/versionProfile/versionProfileRepo';
9
+ import { IUtils } from 'utils/utils';
10
+ import { IQueryInfos } from '_types/queryInfos';
11
+ import { ICachesService } from '../../infra/cache/cacheService';
12
+ import { IList, IPaginationParams } from '../../_types/list';
13
+ import { IRecord } from '../../_types/record';
14
+ import { IGetCoreTreesParams, ITree, ITreeElement, ITreeNode, ITreeNodeLight, TreePath } from '../../_types/tree';
15
+ import { IAttributeDomain } from '../attribute/attributeDomain';
16
+ import { IRecordDomain } from '../record/recordDomain';
17
+ import { IElementAncestorsHelper } from './helpers/elementAncestors';
18
+ import { IGetDefaultElementHelper } from './helpers/getDefaultElement';
19
+ import { HandleRemovedLibrariesFunc } from './helpers/handleRemovedLibraries';
20
+ import { ITreeDataValidationHelper } from './helpers/treeDataValidation';
21
21
  export interface ITreeDomain {
22
22
  isNodePresent(params: {
23
23
  treeId: string;
@@ -1,12 +1,12 @@
1
- import { type IGlobalSettingsDomain } from 'domain/globalSettings/globalSettingsDomain';
2
- import { type IPermissionDomain } from 'domain/permission/permissionDomain';
3
- import { type i18n } from 'i18next';
4
- import { type IMailerService } from 'infra/mailer/mailerService';
5
- import { type IUserDataRepo } from 'infra/userData/userDataRepo';
6
- import { type IUtils } from 'utils/utils';
7
- import type * as Config from '_types/config';
8
- import { type IQueryInfos } from '_types/queryInfos';
9
- import { type IUserData } from '_types/userData';
1
+ import { IGlobalSettingsDomain } from 'domain/globalSettings/globalSettingsDomain';
2
+ import { IPermissionDomain } from 'domain/permission/permissionDomain';
3
+ import { i18n } from 'i18next';
4
+ import { IMailerService } from 'infra/mailer/mailerService';
5
+ import { IUserDataRepo } from 'infra/userData/userDataRepo';
6
+ import { IUtils } from 'utils/utils';
7
+ import * as Config from '_types/config';
8
+ import { IQueryInfos } from '_types/queryInfos';
9
+ import { IUserData } from '_types/userData';
10
10
  interface ISaveUserDataParams {
11
11
  key: string;
12
12
  value: any;
@@ -1,8 +1,8 @@
1
- import { type ActionsListEvents } from '_types/actionsList';
2
- import { type IAttribute } from '_types/attribute';
3
- import { type IQueryInfos } from '_types/queryInfos';
4
- import { type IRecord } from '_types/record';
5
- import { type IValue } from '_types/value';
1
+ import { ActionsListEvents } from '_types/actionsList';
2
+ import { IAttribute } from '_types/attribute';
3
+ import { IQueryInfos } from '_types/queryInfos';
4
+ import { IRecord } from '_types/record';
5
+ import { IValue } from '_types/value';
6
6
  export interface IDeleteValueParams {
7
7
  library: string;
8
8
  recordId: string;
@@ -1,10 +1,10 @@
1
- import { type IRecordAttributePermissionDomain } from 'domain/permission/recordAttributePermissionDomain';
2
- import { type IRecordPermissionDomain } from 'domain/permission/recordPermissionDomain';
3
- import { type IAttribute } from '_types/attribute';
4
- import { type IConfig } from '_types/config';
5
- import { type IQueryInfos } from '_types/queryInfos';
6
- import { type IValue } from '_types/value';
7
- import { type ErrorFieldDetail, Errors } from '../../../_types/errors';
1
+ import { IRecordAttributePermissionDomain } from 'domain/permission/recordAttributePermissionDomain';
2
+ import { IRecordPermissionDomain } from 'domain/permission/recordPermissionDomain';
3
+ import { IAttribute } from '_types/attribute';
4
+ import { IConfig } from '_types/config';
5
+ import { IQueryInfos } from '_types/queryInfos';
6
+ import { IValue } from '_types/value';
7
+ import { ErrorFieldDetail, Errors } from '../../../_types/errors';
8
8
  import { RecordAttributePermissionsActions, RecordPermissionsActions } from '../../../_types/permissions';
9
9
  interface ICanSaveRecordValueRes {
10
10
  canSave: boolean;
@@ -1,4 +1,4 @@
1
- import { type IValue } from '_types/value';
2
- import { type IAttribute } from '../../../_types/attribute';
1
+ import { IValue } from '_types/value';
2
+ import { IAttribute } from '../../../_types/attribute';
3
3
  declare const _default: (value: IValue, attributeProps: IAttribute) => boolean;
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- import { type IFindValueTree, type IValue } from '_types/value';
1
+ import { IFindValueTree, IValue } from '_types/value';
2
2
  /**
3
3
  * Find closest values matching given versions trees.
4
4
  * We start from leaves of each tree and get up on each tree consecutively until we find a value with version
@@ -1,13 +1,13 @@
1
- import { type EventAction } from '@leav/utils';
2
- import { type IDBPayloadData } from '_types/events';
3
- import { type Log } from '_types/log';
4
- import { type IActionsListDomain } from 'domain/actionsList/actionsListDomain';
5
- import { type IAttributeDomain } from 'domain/attribute/attributeDomain';
6
- import { type IRecordDomain } from 'domain/record/recordDomain';
7
- import { type ITreeDomain } from 'domain/tree/treeDomain';
8
- import { type i18n } from 'i18next';
9
- import type winston from 'winston';
10
- import { type IQueryInfos } from '../../../_types/queryInfos';
1
+ import { EventAction } from '@leav/utils';
2
+ import { IDBPayloadData } from '_types/events';
3
+ import { Log } from '_types/log';
4
+ import { IActionsListDomain } from 'domain/actionsList/actionsListDomain';
5
+ import { IAttributeDomain } from 'domain/attribute/attributeDomain';
6
+ import { IRecordDomain } from 'domain/record/recordDomain';
7
+ import { ITreeDomain } from 'domain/tree/treeDomain';
8
+ import { i18n } from 'i18next';
9
+ import winston from 'winston';
10
+ import { IQueryInfos } from '../../../_types/queryInfos';
11
11
  export interface IFormatLogValueHelper {
12
12
  formatAsString(log: Log, rawData: IDBPayloadData<EventAction.VALUE_DELETE | EventAction.VALUE_SAVE>, ctx: IQueryInfos): Promise<string | null>;
13
13
  }
@@ -1,4 +1,4 @@
1
- import { type IValue, type EmptyValue } from '_types/value';
1
+ import { IValue, EmptyValue } from '_types/value';
2
2
  declare const _default: (value: IValue) => value is IValue & {
3
3
  payload: EmptyValue;
4
4
  };
@@ -1,9 +1,9 @@
1
- import { type IActionsListDomain } from 'domain/actionsList/actionsListDomain';
2
- import { type IAttributeDomain } from 'domain/attribute/attributeDomain';
3
- import { type IUtils } from 'utils/utils';
4
- import { type IAttribute } from '_types/attribute';
5
- import { type IQueryInfos } from '_types/queryInfos';
6
- import { type ISaveValue } from '_types/value';
1
+ import { IActionsListDomain } from 'domain/actionsList/actionsListDomain';
2
+ import { IAttributeDomain } from 'domain/attribute/attributeDomain';
3
+ import { IUtils } from 'utils/utils';
4
+ import { IAttribute } from '_types/attribute';
5
+ import { IQueryInfos } from '_types/queryInfos';
6
+ import { ISaveValue } from '_types/value';
7
7
  interface IPrepareValueParams {
8
8
  attributeProps: IAttribute;
9
9
  value: ISaveValue;
@@ -1,13 +1,13 @@
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';
9
- import { type IAttribute } from '../../../_types/attribute';
10
- import { type ISaveValue, type IValue } from '../../../_types/value';
1
+ import { IActionsListDomain } from 'domain/actionsList/actionsListDomain';
2
+ import { IAttributeDomain } from 'domain/attribute/attributeDomain';
3
+ import { IGetDefaultElementHelper } from 'domain/tree/helpers/getDefaultElement';
4
+ import { IVersionProfileDomain } from 'domain/versionProfile/versionProfileDomain';
5
+ import { IRecordRepo } from 'infra/record/recordRepo';
6
+ import { ITreeRepo } from 'infra/tree/treeRepo';
7
+ import { IValueRepo } from 'infra/value/valueRepo';
8
+ import { IQueryInfos } from '_types/queryInfos';
9
+ import { IAttribute } from '../../../_types/attribute';
10
+ import { ISaveValue, IValue } from '../../../_types/value';
11
11
  interface ISaveOneValueDeps {
12
12
  valueRepo: IValueRepo;
13
13
  recordRepo: IRecordRepo;
@@ -1,11 +1,11 @@
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';
5
- import { type IAttribute } from '../../../_types/attribute';
6
- import { type ErrorFieldDetail } from '../../../_types/errors';
7
- import { type IQueryInfos } from '../../../_types/queryInfos';
8
- import { type ISaveValue } from '../../../_types/value';
1
+ import { IAttributeDomain } from 'domain/attribute/attributeDomain';
2
+ import { IRecordRepo } from 'infra/record/recordRepo';
3
+ import { ITreeRepo } from 'infra/tree/treeRepo';
4
+ import { IValueRepo } from 'infra/value/valueRepo';
5
+ import { IAttribute } from '../../../_types/attribute';
6
+ import { ErrorFieldDetail } from '../../../_types/errors';
7
+ import { IQueryInfos } from '../../../_types/queryInfos';
8
+ import { ISaveValue } from '../../../_types/value';
9
9
  interface IValidateValueParams {
10
10
  attributeProps: IAttribute;
11
11
  value: ISaveValue;
@@ -1,29 +1,29 @@
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';
12
- import type winston from 'winston';
13
- import type * as Config from '_types/config';
14
- import { type IRecord } from '_types/record';
15
- import { type IAttribute } from '../../_types/attribute';
16
- import { type IQueryInfos } from '../../_types/queryInfos';
17
- import { type ISaveValue, type IValue, type IValuesOptions } from '../../_types/value';
18
- import { type IActionsListDomain } from '../actionsList/actionsListDomain';
19
- import { type IAttributeDomain } from '../attribute/attributeDomain';
20
- import { type IValidateHelper } from '../helpers/validate';
21
- import { type IRecordAttributePermissionDomain } from '../permission/recordAttributePermissionDomain';
22
- import { type IRecordPermissionDomain } from '../permission/recordPermissionDomain';
23
- import { type IDeleteValueParams, type IRunActionListParams } from './_types';
24
- import { type DeleteRecordHelper } from 'domain/record/helpers/deleteRecord';
25
- import { type CreateRecordHelper } from 'domain/record/helpers/createRecord';
26
- import { type IfLibraryJoinLinkAttribute } from '../attribute/helpers/ifLibraryJoinLinkAttribute';
1
+ import { IEventsManagerDomain } from 'domain/eventsManager/eventsManagerDomain';
2
+ import { UpdateRecordLastModifFunc } from 'domain/helpers/updateRecordLastModif';
3
+ import { SendRecordUpdateEventHelper } from 'domain/record/helpers/sendRecordUpdateEvent';
4
+ import { IElementAncestorsHelper } from 'domain/tree/helpers/elementAncestors';
5
+ import { IGetDefaultElementHelper } from 'domain/tree/helpers/getDefaultElement';
6
+ import { ITreeDomain } from 'domain/tree/treeDomain';
7
+ import { IVersionProfileDomain } from 'domain/versionProfile/versionProfileDomain';
8
+ import { IRecordRepo } from 'infra/record/recordRepo';
9
+ import { ITreeRepo } from 'infra/tree/treeRepo';
10
+ import { IValueRepo } from 'infra/value/valueRepo';
11
+ import { IUtils } from 'utils/utils';
12
+ import winston from 'winston';
13
+ import * as Config from '_types/config';
14
+ import { IRecord } from '_types/record';
15
+ import { IAttribute } from '../../_types/attribute';
16
+ import { IQueryInfos } from '../../_types/queryInfos';
17
+ import { ISaveValue, IValue, IValuesOptions } from '../../_types/value';
18
+ import { IActionsListDomain } from '../actionsList/actionsListDomain';
19
+ import { IAttributeDomain } from '../attribute/attributeDomain';
20
+ import { IValidateHelper } from '../helpers/validate';
21
+ import { IRecordAttributePermissionDomain } from '../permission/recordAttributePermissionDomain';
22
+ import { IRecordPermissionDomain } from '../permission/recordPermissionDomain';
23
+ import { IDeleteValueParams, IRunActionListParams } from './_types';
24
+ import { DeleteRecordHelper } from 'domain/record/helpers/deleteRecord';
25
+ import { CreateRecordHelper } from 'domain/record/helpers/createRecord';
26
+ import { IfLibraryJoinLinkAttribute } from '../attribute/helpers/ifLibraryJoinLinkAttribute';
27
27
  export interface ISaveBatchValueError {
28
28
  type: string;
29
29
  message: string;
@@ -1,15 +1,15 @@
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';
11
- import { type ICachesService } from '../../infra/cache/cacheService';
12
- import { type IList } from '../../_types/list';
1
+ import { IEventsManagerDomain } from 'domain/eventsManager/eventsManagerDomain';
2
+ import { GetCoreEntityByIdFunc } from 'domain/helpers/getCoreEntityById';
3
+ import { IAdminPermissionDomain } from 'domain/permission/adminPermissionDomain';
4
+ import { IAttributeRepo } from 'infra/attribute/attributeRepo';
5
+ import { ITreeRepo } from 'infra/tree/treeRepo';
6
+ import { IVersionProfileRepo } from 'infra/versionProfile/versionProfileRepo';
7
+ import { IUtils } from 'utils/utils';
8
+ import { IAttribute } from '_types/attribute';
9
+ import { IQueryInfos } from '_types/queryInfos';
10
+ import { IGetCoreVersionProfileParams, IVersionProfile } from '_types/versionProfile';
11
+ import { ICachesService } from '../../infra/cache/cacheService';
12
+ import { IList } from '../../_types/list';
13
13
  export interface IVersionProfileDomain {
14
14
  getVersionProfiles(params: {
15
15
  params?: IGetCoreVersionProfileParams;