@imtf/dms-core 6.5.7-natwest.0 → 7.4.3-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (286) hide show
  1. package/README.md +75 -0
  2. package/apps/folder-manager/routes/InodeCollection/hooks/useRemoveInodesFromUrl.d.ts +4 -0
  3. package/core/components/ActionMenu/Menu.d.ts +19 -0
  4. package/core/components/ActionMenu/Trigger.d.ts +8 -0
  5. package/core/components/ActionMenu/index.d.ts +1 -0
  6. package/core/components/ActionMenu/styles.d.ts +2 -0
  7. package/core/components/Chip/Chip.d.ts +8 -0
  8. package/core/components/CloseModalButton/CloseModalButton.d.ts +14 -0
  9. package/core/components/CloseModalButton/index.d.ts +1 -0
  10. package/core/components/DatePicker/DatePicker.d.ts +7 -0
  11. package/core/components/DatePicker/index.d.ts +1 -0
  12. package/core/components/Error/index.d.ts +7 -0
  13. package/core/components/FormattedMessage/index.d.ts +11 -0
  14. package/core/components/FormattedNumberTextfield/FormattedNumberTextfield.d.ts +3 -0
  15. package/core/components/FormattedNumberTextfield/index.d.ts +1 -0
  16. package/core/components/Inline/index.d.ts +8 -0
  17. package/core/components/ItemIcon/TaskIcon.d.ts +5 -0
  18. package/core/components/ItemIcon/index.d.ts +19 -0
  19. package/core/components/NotFound/index.d.ts +4 -0
  20. package/core/components/Select/Select.d.ts +20 -0
  21. package/core/components/Select/index.d.ts +1 -0
  22. package/core/components/Tooltip/TooltipError.d.ts +4 -0
  23. package/core/components/dms-ui/Composer.d.ts +57 -0
  24. package/core/components/dms-ui/NewDatasourceAutocomplete.d.ts +18 -0
  25. package/core/components/dms-ui/constants.d.ts +1 -0
  26. package/core/components/dms-ui/default/DatasourceAutocomplete.d.ts +18 -0
  27. package/core/components/dms-ui/default/DatePicker.d.ts +17 -0
  28. package/core/components/dms-ui/default/Group.d.ts +19 -0
  29. package/core/components/dms-ui/default/NestedGroup.d.ts +7 -0
  30. package/core/components/dms-ui/default/NumberFormattedTexfield.d.ts +17 -0
  31. package/core/components/dms-ui/default/NumberTextfield.d.ts +3 -0
  32. package/core/components/dms-ui/default/RadioButton.d.ts +16 -0
  33. package/core/components/dms-ui/default/Select.d.ts +20 -0
  34. package/core/components/dms-ui/default/Textfield.d.ts +17 -0
  35. package/core/components/dms-ui/default/TwoDigitNumberFormattedTextfield.d.ts +3 -0
  36. package/core/components/dms-ui/default/index.d.ts +10 -0
  37. package/core/components/dms-ui/facet/DatasourceAutocomplete.d.ts +13 -0
  38. package/core/components/dms-ui/facet/DateRangeSearcher.d.ts +18 -0
  39. package/core/components/dms-ui/facet/Facet.d.ts +11 -0
  40. package/core/components/dms-ui/facet/NumericRangePicker.d.ts +20 -0
  41. package/core/components/dms-ui/facet/Select.d.ts +13 -0
  42. package/core/components/dms-ui/facet/Textfield.d.ts +11 -0
  43. package/core/components/dms-ui/facet/TypePicker.d.ts +12 -0
  44. package/core/components/dms-ui/facet/index.d.ts +7 -0
  45. package/core/components/dms-ui/facet/styles.d.ts +9 -0
  46. package/core/components/dms-ui/messages.d.ts +39 -0
  47. package/core/components/dms-ui/types.d.ts +9 -1
  48. package/core/components/dms-ui/utils/getComponent.d.ts +20 -0
  49. package/core/components/dms-ui/utils/removeLabelFromValues.d.ts +1 -0
  50. package/core/components/dms-ui/utils/type-guards.d.ts +4 -0
  51. package/core/components/dms-ui/utils/utils.d.ts +3 -0
  52. package/core/constants/apps.d.ts +0 -10
  53. package/core/constants/dragTypes.d.ts +2 -0
  54. package/core/containers/DataGrid/constants.d.ts +28 -0
  55. package/core/containers/DataGrid/types.d.ts +50 -0
  56. package/core/containers/DataGrid/utils/crossTabSync.d.ts +13 -0
  57. package/core/containers/DataGrid/utils/handleWidth.d.ts +18 -0
  58. package/core/containers/EntityDocuments/EntityDocumentsComponent.d.ts +30 -0
  59. package/core/containers/EntityDocuments/components/Accordion.d.ts +12 -0
  60. package/core/containers/EntityDocuments/components/Document.d.ts +11 -0
  61. package/core/containers/EntityDocuments/components/DocumentLabel.d.ts +9 -0
  62. package/core/containers/EntityDocuments/components/DocumentList.d.ts +19 -0
  63. package/core/containers/EntityDocuments/components/DocumentListTitle.d.ts +9 -0
  64. package/core/containers/EntityDocuments/constants.d.ts +1 -0
  65. package/core/containers/EntityDocuments/types.d.ts +7 -0
  66. package/core/containers/NotificationCenter/slice.d.ts +1 -1
  67. package/core/containers/PDFComposer/actions.d.ts +2 -2
  68. package/core/containers/PDFTronViewer/components/LightViewer/config.d.ts +0 -4
  69. package/core/containers/PDFTronViewer/messages.d.ts +8 -0
  70. package/core/containers/SearchDataGrid/types.d.ts +11 -0
  71. package/core/hooks/useCollator.d.ts +2 -0
  72. package/core/providers/Actions/types.d.ts +1 -7
  73. package/core/providers/App/actions.d.ts +12 -27
  74. package/core/providers/App/constants.d.ts +1 -4
  75. package/core/providers/App/hooks/useApplicationSettings.d.ts +19 -3
  76. package/core/providers/App/hooks/useDownload.d.ts +29 -0
  77. package/core/providers/App/hooks/useSettings.d.ts +5 -9
  78. package/core/providers/App/hooks/useTriggerItems.d.ts +13 -0
  79. package/core/providers/App/hooks/useUserSetting.d.ts +9 -1
  80. package/core/providers/App/hooks/useUserStorage.d.ts +2 -2
  81. package/core/providers/App/messages.d.ts +12 -0
  82. package/core/providers/App/reducer.d.ts +1 -1
  83. package/core/providers/App/service.d.ts +48 -17
  84. package/core/providers/App/types.d.ts +12 -2
  85. package/core/providers/App/utils/convertOldUserSettings.d.ts +1 -1
  86. package/core/providers/App/utils/convertTreeviewFields.d.ts +89 -0
  87. package/core/providers/App/utils/sortListByWeightAndName.d.ts +8 -0
  88. package/core/providers/Authentication/hooks/useAuth.d.ts +1 -1
  89. package/core/providers/Authentication/service.d.ts +11 -3
  90. package/core/providers/Authentication/types.d.ts +6 -8
  91. package/core/providers/Cases/actions.d.ts +21 -3
  92. package/core/providers/Cases/service.d.ts +70 -33
  93. package/core/providers/Cases/types.d.ts +3 -0
  94. package/core/providers/Cases/utils/common.d.ts +4 -0
  95. package/core/providers/Cases/utils/mutateDocumentGuidance.d.ts +17 -0
  96. package/core/providers/Ccm/constants.d.ts +6 -0
  97. package/core/providers/Ccm/types.d.ts +2 -1
  98. package/core/providers/Ccm/utils/isAccount.d.ts +1 -1
  99. package/core/providers/Ccm/utils/isClient.d.ts +1 -1
  100. package/core/providers/Ccm/utils/isClientGroup.d.ts +1 -1
  101. package/core/providers/Ccm/utils/isHouseholdEntity.d.ts +1 -1
  102. package/core/providers/DataGrid/Context.d.ts +51 -0
  103. package/core/providers/Definitions/hooks/useTaskDefinition.d.ts +1 -0
  104. package/core/providers/Definitions/hooks/useTaskDefinitions.d.ts +4 -0
  105. package/core/providers/Definitions/service.d.ts +48 -19
  106. package/core/providers/Definitions/types.d.ts +26 -2
  107. package/core/providers/Definitions/utils/typesToTypeRefs.d.ts +5 -0
  108. package/core/providers/DropZone/Context.d.ts +12 -0
  109. package/core/providers/Inodes/actions.d.ts +26 -430
  110. package/core/providers/Inodes/constants.d.ts +8 -46
  111. package/core/providers/Inodes/hooks/useInodeByOid.d.ts +5 -0
  112. package/core/providers/Inodes/hooks/useInodeTypeAssignment.d.ts +4 -0
  113. package/core/providers/Inodes/hooks/useInodesByOids.d.ts +7 -0
  114. package/core/providers/Inodes/hooks/usePropertiesType.d.ts +14 -0
  115. package/core/providers/Inodes/hooks/usePropertyComponents.d.ts +11 -0
  116. package/core/providers/Inodes/hooks/useRestore.d.ts +22 -0
  117. package/core/providers/Inodes/hooks/useSortedTypes.d.ts +5 -0
  118. package/core/providers/Inodes/hooks/useTypes.d.ts +10 -0
  119. package/core/providers/Inodes/hooks/useUpdateInodes.d.ts +35 -0
  120. package/core/providers/Inodes/messages.d.ts +25 -1
  121. package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/AccordionItem.d.ts +31 -0
  122. package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/BarcodeLoading.d.ts +5 -0
  123. package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/ModalContent.d.ts +35 -0
  124. package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/index.d.ts +12 -0
  125. package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/messages.d.ts +63 -0
  126. package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/types.d.ts +43 -0
  127. package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/addInodeOidToName.d.ts +8 -0
  128. package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/convertToUIPropertiesGroup.d.ts +3 -0
  129. package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/createBarcodeProcessingFormData.d.ts +5 -0
  130. package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/findMostUsedValue.d.ts +18 -0
  131. package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/getDefaultValuesFromProperties.d.ts +7 -0
  132. package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/replaceComponentsWithConfig.d.ts +10 -0
  133. package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/resolveProperties.d.ts +8 -0
  134. package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/resolveStatusIconAndColor.d.ts +5 -0
  135. package/core/providers/Inodes/modals/AssignTypeModal.d.ts +9 -0
  136. package/core/providers/Inodes/service.d.ts +138 -66
  137. package/core/providers/Inodes/type-guards.d.ts +2 -0
  138. package/core/providers/Inodes/types.d.ts +27 -12
  139. package/core/providers/Inodes/utils/can.d.ts +1 -0
  140. package/core/providers/Inodes/utils/getAssignableTypesFromInode.d.ts +2 -0
  141. package/core/providers/Inodes/utils/getBulkUrl.d.ts +1 -0
  142. package/core/providers/Inodes/utils/getUrl.d.ts +2 -1
  143. package/core/providers/Inodes/utils/is.d.ts +2 -3
  144. package/core/providers/Inodes/utils/isInodeType.d.ts +3 -0
  145. package/core/providers/Inodes/utils/isInodeTypeRef.d.ts +3 -0
  146. package/core/providers/Inodes/utils/mutateInodes.d.ts +28 -0
  147. package/core/providers/Inodes/utils/replacePropertiesWithConfig.d.ts +10 -0
  148. package/core/providers/Inodes/utils/resolveInodeTypes.d.ts +185 -0
  149. package/core/providers/Inodes/utils/validatePropertiesForm.d.ts +2 -0
  150. package/core/providers/Inspectors/Context.d.ts +5 -0
  151. package/core/providers/Inspectors/types.d.ts +5 -5
  152. package/core/providers/Localization/Context.d.ts +7 -0
  153. package/core/providers/Localization/hooks/useLocale.d.ts +3 -0
  154. package/core/providers/MdmGraph/actions.d.ts +13 -1
  155. package/core/providers/MdmGraph/constants.d.ts +10 -4
  156. package/core/providers/MdmGraph/service.d.ts +56 -31
  157. package/core/providers/MdmGraph/types.d.ts +12 -0
  158. package/core/providers/Modal/hooks/useModal.d.ts +45 -0
  159. package/core/providers/Modal/slice.d.ts +9 -0
  160. package/core/providers/Modal/types.d.ts +3 -0
  161. package/core/providers/Plugins/ComponentPluginContext.d.ts +14 -0
  162. package/core/providers/Plugins/hooks/app/useSystemNotification.d.ts +8 -3
  163. package/core/providers/Plugins/hooks/inodes/useActions.d.ts +10 -2
  164. package/core/providers/Plugins/hooks/tasks/useActions.d.ts +2 -2
  165. package/core/providers/Plugins/hooks/tasks/useTaskProcessing.d.ts +8 -0
  166. package/core/providers/Plugins/pluginRegistry.d.ts +80 -53
  167. package/core/providers/Plugins/types/componentPlugins.d.ts +18 -8
  168. package/core/providers/Plugins/withComponentPlugin.d.ts +27 -0
  169. package/core/providers/Search/reducer.d.ts +7 -4
  170. package/core/providers/Search/selectors.d.ts +48 -262
  171. package/core/providers/Search/service.d.ts +10 -4
  172. package/core/providers/Search/types.d.ts +11 -28
  173. package/core/providers/Search/utils/createQuery.d.ts +5 -5
  174. package/core/providers/Tasks/Context.d.ts +8 -5
  175. package/core/providers/Tasks/constants.d.ts +2 -1
  176. package/core/providers/Tasks/hooks/useEntityDelete.d.ts +1 -1
  177. package/core/providers/Tasks/hooks/useEntityMutate.d.ts +1 -1
  178. package/core/providers/Tasks/hooks/useTaskData.d.ts +2 -2
  179. package/core/providers/Tasks/service.d.ts +45 -22
  180. package/core/providers/Tasks/types.d.ts +8 -1
  181. package/core/providers/Tasks/utils/isDocumentTask.d.ts +2 -0
  182. package/core/providers/Tasks/utils/mutateTaskData.d.ts +6 -0
  183. package/core/providers/Uploader/Context.d.ts +9 -9
  184. package/core/providers/User/hooks/useAgencies.d.ts +15 -0
  185. package/core/providers/User/hooks/useIsAgencyEnabled.d.ts +5 -0
  186. package/core/providers/User/saga.d.ts +1 -2
  187. package/core/providers/User/service.d.ts +18 -0
  188. package/core/providers/User/types.d.ts +21 -0
  189. package/core/services/index.d.ts +6 -6
  190. package/core/services/localStorage.d.ts +1 -0
  191. package/core/theme/theme.base.d.ts +312 -0
  192. package/core/theme/theme.lightMode.d.ts +70 -0
  193. package/core/utils/action.d.ts +2 -2
  194. package/core/utils/common.d.ts +15 -0
  195. package/core/utils/date/getUTCDateInCurrentTimezone.d.ts +11 -0
  196. package/core/utils/hasValidKind.d.ts +2 -0
  197. package/core/utils/string.d.ts +2 -1
  198. package/package.json +1 -1
  199. package/reducers.d.ts +2 -3
  200. package/store.d.ts +27 -28
  201. package/vendor/@imtf/react-components/components/ActivityDetail/ActivityDetail.d.ts +2 -30
  202. package/vendor/@imtf/react-components/components/CounterStackedBar/CounterStackedBar.d.ts +1 -27
  203. package/vendor/@imtf/react-components/components/Error/Error.d.ts +2 -55
  204. package/vendor/@imtf/react-components/components/InfiniteScroll/InfiniteScroll.d.ts +0 -4
  205. package/vendor/@imtf/react-components/components/Line/Line.d.ts +1 -38
  206. package/vendor/@imtf/react-components/components/Loader/Loader.d.ts +1 -22
  207. package/vendor/@imtf/react-components/components/Menu/Menu.d.ts +1 -9
  208. package/vendor/@imtf/react-components/components/NoContent/NoContent.d.ts +1 -10
  209. package/vendor/@imtf/react-components/components/Notification/Notification.d.ts +2 -55
  210. package/vendor/@imtf/react-components/components/ProgressCircleBar/ProgressCircleBar.d.ts +2 -43
  211. package/vendor/@imtf/react-components/components/Scroller/Scroller.d.ts +1 -19
  212. package/vendor/@imtf/react-components/components/SearchBar/SearchBar.d.ts +2 -57
  213. package/vendor/@imtf/react-components/components/Timeline/Timeline.d.ts +1 -14
  214. package/vendor/@imtf/react-components/components/Timeline/TimelineItem.d.ts +2 -46
  215. package/vendor/@imtf/react-components/components/ViewMore/ViewMore.d.ts +1 -24
  216. package/vendor/@imtf/react-components/components/ViewMoreCard/ViewMoreCard.d.ts +2 -74
  217. package/vendor/@imtf/react-components/components/ViewMoreCard/utils.d.ts +2 -2
  218. package/vendor/@imtf/react-components/components/index.d.ts +0 -14
  219. package/vendor/@imtf/react-components/index.d.ts +0 -1
  220. package/vendor/@imtf/react-components/utils/common.d.ts +1 -4
  221. package/vendor/@imtf/react-components/utils/constants.d.ts +0 -21
  222. package/core/components/JsonForm/widgets/widgetHOC.d.ts +0 -29
  223. package/core/components/TreeView/types.d.ts +0 -17
  224. package/core/components/TreeViewCell/constants.d.ts +0 -25
  225. package/core/containers/DropZone/selectors.d.ts +0 -125
  226. package/core/containers/TreeView/actions.d.ts +0 -197
  227. package/core/containers/TreeView/constants.d.ts +0 -36
  228. package/core/containers/TreeView/types.d.ts +0 -46
  229. package/core/providers/App/utils/isSupportedItem.d.ts +0 -2
  230. package/core/providers/Cases/reducer.d.ts +0 -18
  231. package/core/providers/Cases/selectors.d.ts +0 -64
  232. package/core/providers/Inodes/selectors.d.ts +0 -55
  233. package/core/providers/MdmGraph/utils/misc.d.ts +0 -13
  234. package/core/providers/Plugins/hooks/inodes/useInodesByOids.d.ts +0 -6
  235. package/core/providers/SystemNotification/constants.d.ts +0 -3
  236. package/core/providers/SystemNotification/slice.d.ts +0 -9
  237. package/core/providers/SystemNotification/useSystemNotification.d.ts +0 -6
  238. package/core/utils/htmlElements.d.ts +0 -1
  239. package/core/utils/requestMiddleware.d.ts +0 -1
  240. package/vendor/@imtf/react-components/components/BasicNotification/BasicNotification.d.ts +0 -52
  241. package/vendor/@imtf/react-components/components/BasicNotification/ids.d.ts +0 -1
  242. package/vendor/@imtf/react-components/components/BasicNotification/index.d.ts +0 -1
  243. package/vendor/@imtf/react-components/components/Breadcrumb/Breadcrumb.d.ts +0 -36
  244. package/vendor/@imtf/react-components/components/Breadcrumb/ids.d.ts +0 -1
  245. package/vendor/@imtf/react-components/components/Breadcrumb/index.d.ts +0 -1
  246. package/vendor/@imtf/react-components/components/Chip/Chip.d.ts +0 -41
  247. package/vendor/@imtf/react-components/components/Chip/ids.d.ts +0 -1
  248. package/vendor/@imtf/react-components/components/Chip/messages.d.ts +0 -7
  249. package/vendor/@imtf/react-components/components/Chip/utils.d.ts +0 -14
  250. package/vendor/@imtf/react-components/components/DebounceField/DebounceField.d.ts +0 -35
  251. package/vendor/@imtf/react-components/components/DebounceField/ids.d.ts +0 -1
  252. package/vendor/@imtf/react-components/components/DebounceField/index.d.ts +0 -1
  253. package/vendor/@imtf/react-components/components/DetailList/DetailList.d.ts +0 -24
  254. package/vendor/@imtf/react-components/components/DetailList/ids.d.ts +0 -1
  255. package/vendor/@imtf/react-components/components/DetailList/index.d.ts +0 -1
  256. package/vendor/@imtf/react-components/components/DetailTree/DetailTree.d.ts +0 -30
  257. package/vendor/@imtf/react-components/components/DetailTree/ids.d.ts +0 -1
  258. package/vendor/@imtf/react-components/components/DetailTree/index.d.ts +0 -1
  259. package/vendor/@imtf/react-components/components/ErrorCatcher/ErrorCatcher.d.ts +0 -40
  260. package/vendor/@imtf/react-components/components/ErrorCatcher/ids.d.ts +0 -1
  261. package/vendor/@imtf/react-components/components/ErrorCatcher/index.d.ts +0 -1
  262. package/vendor/@imtf/react-components/components/InfoCard/InfoCard.d.ts +0 -64
  263. package/vendor/@imtf/react-components/components/InfoCard/index.d.ts +0 -1
  264. package/vendor/@imtf/react-components/components/Inline/Inline.d.ts +0 -19
  265. package/vendor/@imtf/react-components/components/Inline/ids.d.ts +0 -1
  266. package/vendor/@imtf/react-components/components/Inline/index.d.ts +0 -1
  267. package/vendor/@imtf/react-components/components/Internal/FormattedMessage.d.ts +0 -11
  268. package/vendor/@imtf/react-components/components/MenuSelect/MenuSelect.d.ts +0 -43
  269. package/vendor/@imtf/react-components/components/MenuSelect/ids.d.ts +0 -1
  270. package/vendor/@imtf/react-components/components/MenuSelect/index.d.ts +0 -1
  271. package/vendor/@imtf/react-components/components/Navipath/Navipath.d.ts +0 -52
  272. package/vendor/@imtf/react-components/components/Navipath/ids.d.ts +0 -1
  273. package/vendor/@imtf/react-components/components/Navipath/index.d.ts +0 -1
  274. package/vendor/@imtf/react-components/components/RippleEffect/RippleEffect.d.ts +0 -33
  275. package/vendor/@imtf/react-components/components/RippleEffect/ids.d.ts +0 -1
  276. package/vendor/@imtf/react-components/components/RippleEffect/index.d.ts +0 -1
  277. package/vendor/@imtf/react-components/components/Stats/Stats.d.ts +0 -39
  278. package/vendor/@imtf/react-components/components/Stats/ids.d.ts +0 -1
  279. package/vendor/@imtf/react-components/components/Stats/index.d.ts +0 -1
  280. package/vendor/@imtf/react-components/components/TitleContent/TitleContent.d.ts +0 -25
  281. package/vendor/@imtf/react-components/components/TitleContent/ids.d.ts +0 -1
  282. package/vendor/@imtf/react-components/components/TitleContent/index.d.ts +0 -1
  283. package/vendor/@imtf/react-components/hooks/index.d.ts +0 -1
  284. package/vendor/@imtf/react-components/hooks/useResponsiveBreakpoints.d.ts +0 -13
  285. package/vendor/@imtf/react-components/utils/resizeObserver.d.ts +0 -1
  286. /package/{vendor/@imtf/react-components → core}/components/Chip/index.d.ts +0 -0
@@ -0,0 +1,29 @@
1
+ import { AxiosError } from "axios";
2
+ import { Inode } from "../../Inodes/types";
3
+ type Arg = {
4
+ inodes: Inode[];
5
+ purpose?: "view" | "compare" | "compose" | "download";
6
+ };
7
+ /**
8
+ * Downloads an array of inodes by getting a download token and then using an iframe to download the files
9
+ */
10
+ declare const useDownload: () => {
11
+ downloadViaIframe: (url: string | null) => void;
12
+ downloadViaBinary: (token: string) => Promise<void>;
13
+ isMutating: boolean;
14
+ trigger: import("swr/mutation").TriggerWithArgs<{
15
+ downloadToken: string;
16
+ length: number;
17
+ downloadName?: string;
18
+ purpose?: "view" | "compare" | "compose" | "download";
19
+ }, AxiosError<unknown, any>, string, Arg>;
20
+ reset: () => void;
21
+ data: {
22
+ downloadToken: string;
23
+ length: number;
24
+ downloadName?: string;
25
+ purpose?: "view" | "compare" | "compose" | "download";
26
+ } | undefined;
27
+ error: AxiosError<unknown, any> | undefined;
28
+ };
29
+ export default useDownload;
@@ -1,16 +1,12 @@
1
- import webappParamsSchema from "@/schemas/jsonSchemas/webapp_params.json";
2
1
  import { AxiosError } from "axios";
3
- import settingsSchema from "@/features/User/settings.schema.json";
4
- type SettingsKeys = keyof typeof settingsSchema.properties;
5
- type ParamKeys = keyof typeof webappParamsSchema.properties;
6
- type Settings = Partial<Record<SettingsKeys | ParamKeys, any>>;
2
+ import { Settings } from "../types";
7
3
  type Arg = Settings | ((previousState: Settings) => Settings);
8
4
  declare const useSettings: () => {
9
- data: Partial<Record<"appearance" | "translations" | "language" | "contentType" | "locales" | "enableCaseCreation" | "shouldReloadResults" | "reloadResultsIntervals" | "userInactivitySessionTimeout" | "showDropzone" | "theme" | "productNameInSidebar" | "disableTaskAutoClaim" | "useRelativeDateWheneverPossible" | "customerRelatedEntitiesTemplates" | "documentTaskSearchContextName" | "canOpenRelatedAlertFromInspector" | "propertyPanelOverrides" | "additionalTransactionsColumns" | "millisecondsToHideUploadProgress" | "inodeTimelineExportLimit" | "searchExportLimit" | "customStamps" | "openEachInodeInNewTabOrWindowLimit" | "useSolrDocumentIcons" | "loadFirstFromQuickSearch" | "enableDossierCreation" | "enableBarcodeProcessing" | "enablePropertiesUpload" | "navigateOnCaseCreation" | "navigateOnTaskCompletion" | "authenticationWorkflow" | "hitListLimit" | "inodeListLimit" | "appBarColor" | "displayEnvironmentName" | "autosaveDebounce" | "displayFullnameInDocuments" | "enableDigitalSignatureVerification" | "certificateRevocationListProxyServerUrl" | "companionScanDPIResolution" | "defaultDossierViewMode" | "isInspectorVisible" | "inspectorExpandedModules" | "inspectorStickyModules" | "inspectorWidth" | "documentZoom" | "signatureOrientation" | "savedFilters" | "transactionActiveProfiles" | "treeviewFields" | "draggableModalSizing" | "draggableModalCoordinates" | "defaultModule" | "commentMaxLength" | "inodeNameMaxLength" | "applicationSortOrder" | "externalApplications", any>> | undefined;
10
- trigger: import("swr/mutation").TriggerWithArgs<Partial<Record<"appearance" | "translations" | "language" | "contentType" | "locales" | "enableCaseCreation" | "shouldReloadResults" | "reloadResultsIntervals" | "userInactivitySessionTimeout" | "showDropzone" | "theme" | "productNameInSidebar" | "disableTaskAutoClaim" | "useRelativeDateWheneverPossible" | "customerRelatedEntitiesTemplates" | "documentTaskSearchContextName" | "canOpenRelatedAlertFromInspector" | "propertyPanelOverrides" | "additionalTransactionsColumns" | "millisecondsToHideUploadProgress" | "inodeTimelineExportLimit" | "searchExportLimit" | "customStamps" | "openEachInodeInNewTabOrWindowLimit" | "useSolrDocumentIcons" | "loadFirstFromQuickSearch" | "enableDossierCreation" | "enableBarcodeProcessing" | "enablePropertiesUpload" | "navigateOnCaseCreation" | "navigateOnTaskCompletion" | "authenticationWorkflow" | "hitListLimit" | "inodeListLimit" | "appBarColor" | "displayEnvironmentName" | "autosaveDebounce" | "displayFullnameInDocuments" | "enableDigitalSignatureVerification" | "certificateRevocationListProxyServerUrl" | "companionScanDPIResolution" | "defaultDossierViewMode" | "isInspectorVisible" | "inspectorExpandedModules" | "inspectorStickyModules" | "inspectorWidth" | "documentZoom" | "signatureOrientation" | "savedFilters" | "transactionActiveProfiles" | "treeviewFields" | "draggableModalSizing" | "draggableModalCoordinates" | "defaultModule" | "commentMaxLength" | "inodeNameMaxLength" | "applicationSortOrder" | "externalApplications", any>>, AxiosError<unknown, any>, string, Arg>;
5
+ data: Partial<Record<"translations" | "language" | "appearance" | "isInspectorVisible" | "inspectorWidth" | "inspectorExpandedModules" | "inspectorStickyModules" | "defaultDossierViewMode" | "savedFilters" | "documentZoom" | "signatureOrientation" | "transactionActiveProfiles" | "navigateOnTaskCompletion" | "draggableModalSizing" | "draggableModalCoordinates" | "defaultModule" | "commentMaxLength" | "inodeNameMaxLength" | "applicationSortOrder" | "externalApplications" | "treeviewFields" | "dataGridOrders" | "agencyId" | "expandedNestedGroups" | "displayDropdownForOutcomes" | "lastOutcomeUsed" | "contentType" | "locales" | "enableCaseCreation" | "shouldReloadResults" | "reloadResultsIntervals" | "userInactivitySessionTimeout" | "showDropzone" | "theme" | "productNameInSidebar" | "disableTaskAutoClaim" | "useRelativeDateWheneverPossible" | "customerRelatedEntitiesTemplates" | "documentTaskFilterFoldersByFileType" | "canOpenRelatedAlertFromInspector" | "propertyPanelOverrides" | "additionalTransactionsColumns" | "millisecondsToHideUploadProgress" | "inodeTimelineExportLimit" | "searchExportLimit" | "customStamps" | "openEachInodeInNewTabOrWindowLimit" | "useSolrDocumentIcons" | "loadFirstFromQuickSearch" | "enableDossierCreation" | "enableBarcodeProcessing" | "enablePropertiesUpload" | "navigateOnCaseCreation" | "taskDocumentReloadIntervals" | "authenticationWorkflow" | "hitListLimit" | "inodeListLimit" | "appBarColor" | "displayEnvironmentName" | "autosaveDebounce" | "displayFullnameInDocuments" | "enableDigitalSignatureVerification" | "certificateRevocationListProxyServerUrl" | "companionScanDPIResolution" | "enableCommentLinks" | "companionMultipleEditionLimit" | "enableCompanionDefaultDuplex" | "enableCompanionDefaultColor" | "disableNotifications" | "openViewerCommentsByDefault" | "enableStampsCreation" | "enableStandardStamps" | "hideDisabledPropertiesAtUpload" | "displaySearchBarInToolbar" | "restrictAnnotationEditingToOwner" | "displayUnauthorizedItems" | "propertiesBySearchContext" | "signatureWidth", any>> | undefined;
6
+ trigger: import("swr/mutation").TriggerWithArgs<Partial<Record<"translations" | "language" | "appearance" | "isInspectorVisible" | "inspectorWidth" | "inspectorExpandedModules" | "inspectorStickyModules" | "defaultDossierViewMode" | "savedFilters" | "documentZoom" | "signatureOrientation" | "transactionActiveProfiles" | "navigateOnTaskCompletion" | "draggableModalSizing" | "draggableModalCoordinates" | "defaultModule" | "commentMaxLength" | "inodeNameMaxLength" | "applicationSortOrder" | "externalApplications" | "treeviewFields" | "dataGridOrders" | "agencyId" | "expandedNestedGroups" | "displayDropdownForOutcomes" | "lastOutcomeUsed" | "contentType" | "locales" | "enableCaseCreation" | "shouldReloadResults" | "reloadResultsIntervals" | "userInactivitySessionTimeout" | "showDropzone" | "theme" | "productNameInSidebar" | "disableTaskAutoClaim" | "useRelativeDateWheneverPossible" | "customerRelatedEntitiesTemplates" | "documentTaskFilterFoldersByFileType" | "canOpenRelatedAlertFromInspector" | "propertyPanelOverrides" | "additionalTransactionsColumns" | "millisecondsToHideUploadProgress" | "inodeTimelineExportLimit" | "searchExportLimit" | "customStamps" | "openEachInodeInNewTabOrWindowLimit" | "useSolrDocumentIcons" | "loadFirstFromQuickSearch" | "enableDossierCreation" | "enableBarcodeProcessing" | "enablePropertiesUpload" | "navigateOnCaseCreation" | "taskDocumentReloadIntervals" | "authenticationWorkflow" | "hitListLimit" | "inodeListLimit" | "appBarColor" | "displayEnvironmentName" | "autosaveDebounce" | "displayFullnameInDocuments" | "enableDigitalSignatureVerification" | "certificateRevocationListProxyServerUrl" | "companionScanDPIResolution" | "enableCommentLinks" | "companionMultipleEditionLimit" | "enableCompanionDefaultDuplex" | "enableCompanionDefaultColor" | "disableNotifications" | "openViewerCommentsByDefault" | "enableStampsCreation" | "enableStandardStamps" | "hideDisabledPropertiesAtUpload" | "displaySearchBarInToolbar" | "restrictAnnotationEditingToOwner" | "displayUnauthorizedItems" | "propertiesBySearchContext" | "signatureWidth", any>>, AxiosError<unknown, any>, string, Arg>;
11
7
  error: any;
12
- mutate: import("swr").KeyedMutator<Partial<Record<"appearance" | "translations" | "language" | "contentType" | "locales" | "enableCaseCreation" | "shouldReloadResults" | "reloadResultsIntervals" | "userInactivitySessionTimeout" | "showDropzone" | "theme" | "productNameInSidebar" | "disableTaskAutoClaim" | "useRelativeDateWheneverPossible" | "customerRelatedEntitiesTemplates" | "documentTaskSearchContextName" | "canOpenRelatedAlertFromInspector" | "propertyPanelOverrides" | "additionalTransactionsColumns" | "millisecondsToHideUploadProgress" | "inodeTimelineExportLimit" | "searchExportLimit" | "customStamps" | "openEachInodeInNewTabOrWindowLimit" | "useSolrDocumentIcons" | "loadFirstFromQuickSearch" | "enableDossierCreation" | "enableBarcodeProcessing" | "enablePropertiesUpload" | "navigateOnCaseCreation" | "navigateOnTaskCompletion" | "authenticationWorkflow" | "hitListLimit" | "inodeListLimit" | "appBarColor" | "displayEnvironmentName" | "autosaveDebounce" | "displayFullnameInDocuments" | "enableDigitalSignatureVerification" | "certificateRevocationListProxyServerUrl" | "companionScanDPIResolution" | "defaultDossierViewMode" | "isInspectorVisible" | "inspectorExpandedModules" | "inspectorStickyModules" | "inspectorWidth" | "documentZoom" | "signatureOrientation" | "savedFilters" | "transactionActiveProfiles" | "treeviewFields" | "draggableModalSizing" | "draggableModalCoordinates" | "defaultModule" | "commentMaxLength" | "inodeNameMaxLength" | "applicationSortOrder" | "externalApplications", any>>>;
8
+ mutate: import("swr").KeyedMutator<Partial<Record<"translations" | "language" | "appearance" | "isInspectorVisible" | "inspectorWidth" | "inspectorExpandedModules" | "inspectorStickyModules" | "defaultDossierViewMode" | "savedFilters" | "documentZoom" | "signatureOrientation" | "transactionActiveProfiles" | "navigateOnTaskCompletion" | "draggableModalSizing" | "draggableModalCoordinates" | "defaultModule" | "commentMaxLength" | "inodeNameMaxLength" | "applicationSortOrder" | "externalApplications" | "treeviewFields" | "dataGridOrders" | "agencyId" | "expandedNestedGroups" | "displayDropdownForOutcomes" | "lastOutcomeUsed" | "contentType" | "locales" | "enableCaseCreation" | "shouldReloadResults" | "reloadResultsIntervals" | "userInactivitySessionTimeout" | "showDropzone" | "theme" | "productNameInSidebar" | "disableTaskAutoClaim" | "useRelativeDateWheneverPossible" | "customerRelatedEntitiesTemplates" | "documentTaskFilterFoldersByFileType" | "canOpenRelatedAlertFromInspector" | "propertyPanelOverrides" | "additionalTransactionsColumns" | "millisecondsToHideUploadProgress" | "inodeTimelineExportLimit" | "searchExportLimit" | "customStamps" | "openEachInodeInNewTabOrWindowLimit" | "useSolrDocumentIcons" | "loadFirstFromQuickSearch" | "enableDossierCreation" | "enableBarcodeProcessing" | "enablePropertiesUpload" | "navigateOnCaseCreation" | "taskDocumentReloadIntervals" | "authenticationWorkflow" | "hitListLimit" | "inodeListLimit" | "appBarColor" | "displayEnvironmentName" | "autosaveDebounce" | "displayFullnameInDocuments" | "enableDigitalSignatureVerification" | "certificateRevocationListProxyServerUrl" | "companionScanDPIResolution" | "enableCommentLinks" | "companionMultipleEditionLimit" | "enableCompanionDefaultDuplex" | "enableCompanionDefaultColor" | "disableNotifications" | "openViewerCommentsByDefault" | "enableStampsCreation" | "enableStandardStamps" | "hideDisabledPropertiesAtUpload" | "displaySearchBarInToolbar" | "restrictAnnotationEditingToOwner" | "displayUnauthorizedItems" | "propertiesBySearchContext" | "signatureWidth", any>>>;
13
9
  isValidating: boolean;
14
- isLoading: boolean;
10
+ isLoading: import("swr/_internal").IsLoadingResponse<Data, Config>;
15
11
  };
16
12
  export default useSettings;
@@ -0,0 +1,13 @@
1
+ import { TRIGGER_TARGET } from "../../Actions/constants";
2
+ import { SupportedItem } from "../types";
3
+ /**
4
+ * Triggers/opens items
5
+ * You can also give a target to open the item in a new tab, window or in the same tab
6
+ */
7
+ declare const useTriggerItems: () => (items: SupportedItem[], target?: (typeof TRIGGER_TARGET)[keyof typeof TRIGGER_TARGET]) => Promise<{
8
+ downloadToken: string;
9
+ length: number;
10
+ downloadName?: string;
11
+ purpose?: "view" | "compare" | "compose" | "download";
12
+ }> | undefined;
13
+ export default useTriggerItems;
@@ -2,5 +2,13 @@ import webappParamsSchema from "@/schemas/jsonSchemas/webapp_params.json";
2
2
  import settingsSchema from "@/features/User/settings.schema.json";
3
3
  type SettingsKeys = keyof typeof settingsSchema.properties;
4
4
  type ParamKeys = keyof typeof webappParamsSchema.properties;
5
- declare const useUserSetting: <T>(key: SettingsKeys | ParamKeys, defaultValue?: T) => [T, (value: T | ((n: T) => T)) => void];
5
+ /**
6
+ * Hook to get and set user settings.
7
+ * The key can be a single key or an array of keys.
8
+ * The defaultValue can be a single value or an array of values.
9
+ *
10
+ * If you're using an array of keys, the defaultValue should be an array of values.
11
+ * If you're using a function to set the value, the value can be a single value or an array of values.
12
+ */
13
+ declare const useUserSetting: <T>(key: SettingsKeys | ParamKeys | (SettingsKeys | ParamKeys)[], defaultValue?: T | T[]) => [T, (value: T | ((n: T) => T)) => void];
6
14
  export default useUserSetting;
@@ -1,7 +1,7 @@
1
- import { UserSettingValue } from "../../User/types";
1
+ import { UserSettingValue } from "../../../../core/providers/User/types";
2
2
  declare const useUserStorage: () => {
3
3
  userStorage: Record<string, any>;
4
- setUserStorage: (key: string, newValue: UserSettingValue) => void;
4
+ setUserStorage: (key: string | string[], newValue: UserSettingValue | UserSettingValue[]) => void;
5
5
  clearUserStorage: () => void;
6
6
  };
7
7
  export default useUserStorage;
@@ -67,5 +67,17 @@ declare const _default: {
67
67
  id: string;
68
68
  defaultMessage: string;
69
69
  };
70
+ settingSaveError: {
71
+ id: string;
72
+ defaultMessage: string;
73
+ };
74
+ downloading: {
75
+ id: string;
76
+ defaultMessage: string;
77
+ };
78
+ downloadError: {
79
+ id: string;
80
+ defaultMessage: string;
81
+ };
70
82
  };
71
83
  export default _default;
@@ -1 +1 @@
1
- export default function appReducer(state: import("immutable").Map<"contextMenu" | "errorAtInit" | "dnd" | "parameters", import("immutable").Map<"open" | "coord", import("immutable").Map<"valueOf", import("immutable").Map<never, never>> | import("immutable").Map<"valueOf", import("immutable").Map<never, never>> | import("immutable").Map<never, never>> | import("immutable").Map<"props" | "type" | "isDragging", import("immutable").Map<"valueOf", import("immutable").Map<never, never>> | import("immutable").Map<"valueOf", import("immutable").Map<never, never>> | import("immutable").Map<never, never> | null> | import("immutable").Map<never, never> | undefined> | undefined, action: any): import("immutable").Map<"contextMenu" | "errorAtInit" | "dnd" | "parameters", import("immutable").Map<"open" | "coord", import("immutable").Map<"valueOf", import("immutable").Map<never, never>> | import("immutable").Map<"valueOf", import("immutable").Map<never, never>> | import("immutable").Map<never, never>> | import("immutable").Map<"props" | "type" | "isDragging", import("immutable").Map<"valueOf", import("immutable").Map<never, never>> | import("immutable").Map<"valueOf", import("immutable").Map<never, never>> | import("immutable").Map<never, never> | null> | import("immutable").Map<never, never> | undefined>;
1
+ export default function appReducer(state: import("immutable").Map<"contextMenu" | "errorAtInit" | "parameters", import("immutable").Map<"open" | "coord", unknown> | import("immutable").Map<never, never> | undefined> | undefined, action: any): import("immutable").Map<"contextMenu" | "errorAtInit" | "parameters", import("immutable").Map<"open" | "coord", unknown> | import("immutable").Map<never, never> | undefined>;
@@ -1,26 +1,57 @@
1
1
  export declare const paths: Readonly<{
2
- readonly template: (params?: {} | undefined) => string;
3
- readonly terms: (params?: {} | undefined) => string;
4
- readonly applicationSettings: (params?: {} | undefined) => string;
5
- readonly frontendParams: (params?: {} | undefined) => string;
6
- readonly generateDownloadToken: (params?: {} | undefined) => string;
7
- readonly users: (params?: {} | undefined) => string;
8
- readonly userSettings: (params?: {} | undefined) => string;
9
- readonly groups: (params?: {} | undefined) => string;
10
- readonly principals: (params?: {} | undefined) => string;
11
- readonly icosPrincipals: (params?: {} | undefined) => string;
12
- readonly icosUsers: (params?: {} | undefined) => string;
13
- readonly productVersion: (params?: {} | undefined) => string;
14
- readonly systemEnv: (params?: {} | undefined) => string;
2
+ readonly template: (params?: {
3
+ [x: string]: string | null | undefined;
4
+ } | undefined) => string;
5
+ readonly terms: (params?: {
6
+ [x: string]: string | null | undefined;
7
+ } | undefined) => string;
8
+ readonly applicationSettings: (params?: {
9
+ [x: string]: string | null | undefined;
10
+ } | undefined) => string;
11
+ readonly frontendParams: (params?: {
12
+ [x: string]: string | null | undefined;
13
+ } | undefined) => string;
14
+ readonly generateDownloadToken: (params?: {
15
+ [x: string]: string | null | undefined;
16
+ } | undefined) => string;
17
+ readonly users: (params?: {
18
+ [x: string]: string | null | undefined;
19
+ } | undefined) => string;
20
+ readonly userSettings: (params?: {
21
+ [x: string]: string | null | undefined;
22
+ } | undefined) => string;
23
+ readonly groups: (params?: {
24
+ [x: string]: string | null | undefined;
25
+ } | undefined) => string;
26
+ readonly principals: (params?: {
27
+ [x: string]: string | null | undefined;
28
+ } | undefined) => string;
29
+ readonly icosPrincipals: (params?: {
30
+ [x: string]: string | null | undefined;
31
+ } | undefined) => string;
32
+ readonly icosUsers: (params?: {
33
+ [x: string]: string | null | undefined;
34
+ } | undefined) => string;
35
+ readonly productVersion: (params?: {
36
+ [x: string]: string | null | undefined;
37
+ } | undefined) => string;
38
+ readonly systemEnv: (params?: {
39
+ [x: string]: string | null | undefined;
40
+ } | undefined) => string;
15
41
  readonly companionSetup: (params?: {
16
- version: string | null;
42
+ [x: string]: string | null | undefined;
43
+ version: string;
44
+ } | undefined) => string;
45
+ readonly companionDownload: (params?: {
46
+ [x: string]: string | null | undefined;
17
47
  } | undefined) => string;
18
- readonly companionDownload: (params?: {} | undefined) => string;
19
48
  readonly webappConfig: (params?: {
20
- configType: string | null;
49
+ [x: string]: string | null | undefined;
50
+ configType: string;
21
51
  } | undefined) => string;
22
52
  readonly comments: (params?: {
23
- commentOid: string | null;
53
+ [x: string]: string | null | undefined;
54
+ commentOid: string;
24
55
  } | undefined) => string;
25
56
  }>;
26
57
  /**
@@ -1,5 +1,7 @@
1
+ import webappParamsSchema from "@/schemas/jsonSchemas/webapp_params.json";
1
2
  import { Map } from "immutable";
2
3
  import { ReactNode } from "react";
4
+ import settingsSchema from "@/features/User/settings.schema.json";
3
5
  import type { PropertiesComponent } from "../../../core/components/dms-ui/types";
4
6
  import EVENTS from "@/core/constants/events.json";
5
7
  import { ACM_COMMENT } from "../../../core/constants/kinds";
@@ -24,6 +26,7 @@ export type ApplicationSettings = {
24
26
  inodeNameMaxLength: number;
25
27
  kind: "dms-core.ApplicationSettings";
26
28
  loadFirstFromQuickSearch: true;
29
+ useNewArchive?: boolean;
27
30
  };
28
31
  export type AppCapabilities = {
29
32
  canAccessDashboard: boolean;
@@ -33,12 +36,12 @@ export type AppCapabilities = {
33
36
  canAccessTasks: boolean;
34
37
  canCreateClientGroup: boolean;
35
38
  canTriggerAdhocScreening: boolean;
39
+ canTriggerBulkNameScreening: boolean;
36
40
  canAccessLinkAnalysis: boolean;
37
41
  canAccessRisk: boolean;
38
42
  canAccessFM: boolean;
39
43
  canAccessFMHome: boolean;
40
44
  canAccessFMSearch: boolean;
41
- canAccessFMBrowse: boolean;
42
45
  canAccessFMFavorites: boolean;
43
46
  canAccessFMTrash: boolean;
44
47
  canAccessFMTrashOfAllUsers: boolean;
@@ -86,7 +89,8 @@ export type FormError = {
86
89
  type: "required" | string;
87
90
  errorDescription: string;
88
91
  propertyName?: string | null;
89
- documentType?: string;
92
+ documentOid?: string;
93
+ documentType?: Inode["type"];
90
94
  }>;
91
95
  formName: string;
92
96
  };
@@ -101,6 +105,7 @@ type DefaultTimelineEventItem = {
101
105
  status?: number;
102
106
  name?: string;
103
107
  label?: string;
108
+ color?: string;
104
109
  milestone?: string;
105
110
  clientType?: string;
106
111
  text?: string;
@@ -125,12 +130,14 @@ export type TimelineEvent<T = DefaultTimelineEventItem> = {
125
130
  referencedObjectOid?: string;
126
131
  referencedOid?: string;
127
132
  scope: string;
133
+ context?: string;
128
134
  commentText?: string;
129
135
  text?: string;
130
136
  referencedObjectPayload?: {
131
137
  completionOutcomeLabel: string;
132
138
  label: string;
133
139
  name: string;
140
+ color?: string;
134
141
  };
135
142
  item: T;
136
143
  inode?: Pick<Inode, "kind" | "oid" | "parentOid" | "label" | "mimeType" | "version"> & {
@@ -195,4 +202,7 @@ export type DeniedResource = {
195
202
  export type RecursivePartial<T> = {
196
203
  [P in keyof T]?: T[P] extends (infer U)[] ? RecursivePartial<U>[] : T[P] extends object | undefined ? RecursivePartial<T[P]> : T[P];
197
204
  };
205
+ type SettingsKeys = keyof typeof settingsSchema.properties;
206
+ type ParamKeys = keyof typeof webappParamsSchema.properties;
207
+ export type Settings = Partial<Record<SettingsKeys | ParamKeys, any>>;
198
208
  export {};
@@ -7,5 +7,5 @@
7
7
  * This function and its usage will be removed once the user settings are
8
8
  * migrated to the backend.
9
9
  */
10
- declare const convertOldUserSettings: (oldSettings: Record<string, any>) => Partial<Record<"appearance" | "translations" | "language" | "contentType" | "locales" | "enableCaseCreation" | "shouldReloadResults" | "reloadResultsIntervals" | "userInactivitySessionTimeout" | "showDropzone" | "theme" | "productNameInSidebar" | "disableTaskAutoClaim" | "useRelativeDateWheneverPossible" | "customerRelatedEntitiesTemplates" | "documentTaskSearchContextName" | "canOpenRelatedAlertFromInspector" | "propertyPanelOverrides" | "additionalTransactionsColumns" | "millisecondsToHideUploadProgress" | "inodeTimelineExportLimit" | "searchExportLimit" | "customStamps" | "openEachInodeInNewTabOrWindowLimit" | "useSolrDocumentIcons" | "loadFirstFromQuickSearch" | "enableDossierCreation" | "enableBarcodeProcessing" | "enablePropertiesUpload" | "navigateOnCaseCreation" | "navigateOnTaskCompletion" | "authenticationWorkflow" | "hitListLimit" | "inodeListLimit" | "appBarColor" | "displayEnvironmentName" | "autosaveDebounce" | "displayFullnameInDocuments" | "enableDigitalSignatureVerification" | "certificateRevocationListProxyServerUrl" | "companionScanDPIResolution" | "defaultDossierViewMode" | "isInspectorVisible" | "inspectorExpandedModules" | "inspectorStickyModules" | "inspectorWidth" | "documentZoom" | "signatureOrientation" | "savedFilters" | "transactionActiveProfiles" | "treeviewFields" | "draggableModalSizing" | "draggableModalCoordinates" | "defaultModule" | "commentMaxLength" | "inodeNameMaxLength" | "applicationSortOrder" | "externalApplications", any>>;
10
+ declare const convertOldUserSettings: (oldSettings: Record<string, any>) => Partial<Record<"translations" | "language" | "appearance" | "isInspectorVisible" | "inspectorWidth" | "inspectorExpandedModules" | "inspectorStickyModules" | "defaultDossierViewMode" | "savedFilters" | "documentZoom" | "signatureOrientation" | "transactionActiveProfiles" | "navigateOnTaskCompletion" | "draggableModalSizing" | "draggableModalCoordinates" | "defaultModule" | "commentMaxLength" | "inodeNameMaxLength" | "applicationSortOrder" | "externalApplications" | "treeviewFields" | "dataGridOrders" | "agencyId" | "expandedNestedGroups" | "displayDropdownForOutcomes" | "lastOutcomeUsed" | "contentType" | "locales" | "enableCaseCreation" | "shouldReloadResults" | "reloadResultsIntervals" | "userInactivitySessionTimeout" | "showDropzone" | "theme" | "productNameInSidebar" | "disableTaskAutoClaim" | "useRelativeDateWheneverPossible" | "customerRelatedEntitiesTemplates" | "documentTaskFilterFoldersByFileType" | "canOpenRelatedAlertFromInspector" | "propertyPanelOverrides" | "additionalTransactionsColumns" | "millisecondsToHideUploadProgress" | "inodeTimelineExportLimit" | "searchExportLimit" | "customStamps" | "openEachInodeInNewTabOrWindowLimit" | "useSolrDocumentIcons" | "loadFirstFromQuickSearch" | "enableDossierCreation" | "enableBarcodeProcessing" | "enablePropertiesUpload" | "navigateOnCaseCreation" | "taskDocumentReloadIntervals" | "authenticationWorkflow" | "hitListLimit" | "inodeListLimit" | "appBarColor" | "displayEnvironmentName" | "autosaveDebounce" | "displayFullnameInDocuments" | "enableDigitalSignatureVerification" | "certificateRevocationListProxyServerUrl" | "companionScanDPIResolution" | "enableCommentLinks" | "companionMultipleEditionLimit" | "enableCompanionDefaultDuplex" | "enableCompanionDefaultColor" | "disableNotifications" | "openViewerCommentsByDefault" | "enableStampsCreation" | "enableStandardStamps" | "hideDisabledPropertiesAtUpload" | "displaySearchBarInToolbar" | "restrictAnnotationEditingToOwner" | "displayUnauthorizedItems" | "propertiesBySearchContext" | "signatureWidth", any>>;
11
11
  export default convertOldUserSettings;
@@ -0,0 +1,89 @@
1
+ import { Settings } from "../types";
2
+ /**
3
+ * Converts the treeviewFields from the old format to the new format.
4
+ * Since version 7.0.0, the treeviewFields are used in a different way.
5
+ *
6
+ * @param settings - The settings object
7
+ * @returns The settings object with the treeviewFields converted
8
+ */
9
+ declare const convertTreeviewFields: (settings: Settings) => {
10
+ translations?: any;
11
+ language?: any;
12
+ appearance?: any;
13
+ isInspectorVisible?: any;
14
+ inspectorWidth?: any;
15
+ inspectorExpandedModules?: any;
16
+ inspectorStickyModules?: any;
17
+ defaultDossierViewMode?: any;
18
+ savedFilters?: any;
19
+ documentZoom?: any;
20
+ signatureOrientation?: any;
21
+ transactionActiveProfiles?: any;
22
+ navigateOnTaskCompletion?: any;
23
+ draggableModalSizing?: any;
24
+ draggableModalCoordinates?: any;
25
+ defaultModule?: any;
26
+ commentMaxLength?: any;
27
+ inodeNameMaxLength?: any;
28
+ applicationSortOrder?: any;
29
+ externalApplications?: any;
30
+ treeviewFields?: any;
31
+ dataGridOrders?: any;
32
+ agencyId?: any;
33
+ expandedNestedGroups?: any;
34
+ displayDropdownForOutcomes?: any;
35
+ lastOutcomeUsed?: any;
36
+ contentType?: any;
37
+ locales?: any;
38
+ enableCaseCreation?: any;
39
+ shouldReloadResults?: any;
40
+ reloadResultsIntervals?: any;
41
+ userInactivitySessionTimeout?: any;
42
+ showDropzone?: any;
43
+ theme?: any;
44
+ productNameInSidebar?: any;
45
+ disableTaskAutoClaim?: any;
46
+ useRelativeDateWheneverPossible?: any;
47
+ customerRelatedEntitiesTemplates?: any;
48
+ documentTaskFilterFoldersByFileType?: any;
49
+ canOpenRelatedAlertFromInspector?: any;
50
+ propertyPanelOverrides?: any;
51
+ additionalTransactionsColumns?: any;
52
+ millisecondsToHideUploadProgress?: any;
53
+ inodeTimelineExportLimit?: any;
54
+ searchExportLimit?: any;
55
+ customStamps?: any;
56
+ openEachInodeInNewTabOrWindowLimit?: any;
57
+ useSolrDocumentIcons?: any;
58
+ loadFirstFromQuickSearch?: any;
59
+ enableDossierCreation?: any;
60
+ enableBarcodeProcessing?: any;
61
+ enablePropertiesUpload?: any;
62
+ navigateOnCaseCreation?: any;
63
+ taskDocumentReloadIntervals?: any;
64
+ authenticationWorkflow?: any;
65
+ hitListLimit?: any;
66
+ inodeListLimit?: any;
67
+ appBarColor?: any;
68
+ displayEnvironmentName?: any;
69
+ autosaveDebounce?: any;
70
+ displayFullnameInDocuments?: any;
71
+ enableDigitalSignatureVerification?: any;
72
+ certificateRevocationListProxyServerUrl?: any;
73
+ companionScanDPIResolution?: any;
74
+ enableCommentLinks?: any;
75
+ companionMultipleEditionLimit?: any;
76
+ enableCompanionDefaultDuplex?: any;
77
+ enableCompanionDefaultColor?: any;
78
+ disableNotifications?: any;
79
+ openViewerCommentsByDefault?: any;
80
+ enableStampsCreation?: any;
81
+ enableStandardStamps?: any;
82
+ hideDisabledPropertiesAtUpload?: any;
83
+ displaySearchBarInToolbar?: any;
84
+ restrictAnnotationEditingToOwner?: any;
85
+ displayUnauthorizedItems?: any;
86
+ propertiesBySearchContext?: any;
87
+ signatureWidth?: any;
88
+ };
89
+ export default convertTreeviewFields;
@@ -0,0 +1,8 @@
1
+ export declare function sortImmutableListByWeightAndName(list: Immutable.List<Map<string, any>>): import("immutable").List<Map<string, any>>;
2
+ /**
3
+ * Sorts a list of objects by 'orderingWeight' and 'name'.
4
+ */
5
+ export default function sortListByWeightAndName<T extends Record<string, any>>(list: (T & {
6
+ orderingWeight?: number;
7
+ name: string;
8
+ })[], collator: Intl.Collator): T[];
@@ -1,2 +1,2 @@
1
- declare const useAuth: () => import("../Context").ProviderState;
1
+ declare const useAuth: () => import("../../../../core/providers/Authentication/Context").ProviderState;
2
2
  export default useAuth;
@@ -1,12 +1,20 @@
1
+ import { OidcMetadata } from "oidc-client-ts";
1
2
  export type OAuthConfig = {
2
3
  authority: string;
3
4
  clientId: string;
4
5
  scope: string;
6
+ oidcConfigOverride?: Partial<OidcMetadata> | undefined;
5
7
  };
6
8
  export declare const paths: Readonly<{
7
- readonly oAuthConfig: (params?: {} | undefined) => string;
8
- readonly dmsToken: (params?: {} | undefined) => string;
9
- readonly dmsLogout: (params?: {} | undefined) => string;
9
+ readonly oAuthConfig: (params?: {
10
+ [x: string]: string | null | undefined;
11
+ } | undefined) => string;
12
+ readonly dmsToken: (params?: {
13
+ [x: string]: string | null | undefined;
14
+ } | undefined) => string;
15
+ readonly dmsLogout: (params?: {
16
+ [x: string]: string | null | undefined;
17
+ } | undefined) => string;
10
18
  }>;
11
19
  export declare function getOAuth2Config(): Promise<OAuthConfig>;
12
20
  export declare function getDMSAuthToken(credentials?: {
@@ -1,12 +1,11 @@
1
- import { OAuthConfig } from "./service";
1
+ import { User } from "oidc-client-ts";
2
2
  export interface ProviderConfiguration<C extends (() => Promise<unknown>) | Record<string, unknown> | undefined = undefined> {
3
- type: "oidc" | "internal" | "rbs";
3
+ type: "oidc" | "internal";
4
4
  configuration?: C;
5
5
  validateAccessToken: (token: string) => boolean;
6
6
  authenticateRequest: (params: C extends () => Promise<unknown> ? Awaited<ReturnType<C>> : C, sessionStartHandler: (type: ProviderConfiguration<C>["type"], payload: Payload, locationState?: LocationStateLike) => void, locationState?: LocationStateLike, authenticationWorkflow?: AuthentificationWorkflow) => Promise<void>;
7
- refreshTokenRequest: (params: C extends () => Promise<unknown> ? Awaited<ReturnType<C>> : C, token: string) => Promise<unknown>;
8
- revokeTokenRequest: (provider: Provider | Provider<OAuthConfig | undefined>, token: string) => Promise<boolean>;
9
- createTokenRefresher?: (params: C extends () => Promise<unknown> ? Awaited<ReturnType<C>> : C) => (token: string) => ReturnType<ProviderConfiguration<C>["refreshTokenRequest"]>;
7
+ revokeTokenRequest: () => Promise<boolean>;
8
+ addUserLoadedEventListener?: (callback: (user: User | null | undefined) => void) => () => void;
10
9
  }
11
10
  export type AuthentificationWorkflow = "http-header" | "internal";
12
11
  export type LocationStateLike = {
@@ -15,11 +14,10 @@ export type LocationStateLike = {
15
14
  [key: string]: unknown;
16
15
  };
17
16
  /**
18
- * Generic token object with at least accessToken and possibly a refreshToken
17
+ * Generic token object with at least accessToken
19
18
  */
20
19
  export type Payload = {
21
20
  accessToken: string;
22
- refreshToken?: string;
23
21
  };
24
22
  export interface Provider<C extends (() => Promise<unknown>) | Record<string, unknown> | undefined = undefined> extends Omit<ProviderConfiguration<C>, "configuration"> {
25
23
  configuration?: C extends () => Promise<unknown> ? Awaited<ReturnType<C>> : C;
@@ -33,6 +31,6 @@ export type MessageData = {
33
31
  type: "session_end";
34
32
  payload?: unknown;
35
33
  } | {
36
- type: "refresh_token" | "session_start";
34
+ type: "session_start";
37
35
  payload: MessageDataPayload;
38
36
  };
@@ -20,7 +20,10 @@ export declare function createProcessModal(caze: Case): {
20
20
  correlationId: string;
21
21
  fullWidth: boolean;
22
22
  maxWidth: import("@mui/material").DialogProps["maxWidth"];
23
+ minHeight: number | string;
23
24
  blocker: boolean;
25
+ onConfirm: (...args: any[]) => void;
26
+ onCancel: () => void;
24
27
  onClose: () => void;
25
28
  }> | undefined;
26
29
  };
@@ -42,7 +45,10 @@ export declare function addClassificationModal(caseOid: string): {
42
45
  correlationId: string;
43
46
  fullWidth: boolean;
44
47
  maxWidth: import("@mui/material").DialogProps["maxWidth"];
48
+ minHeight: number | string;
45
49
  blocker: boolean;
50
+ onConfirm: (...args: any[]) => void;
51
+ onCancel: () => void;
46
52
  onClose: () => void;
47
53
  }> | undefined;
48
54
  };
@@ -76,7 +82,10 @@ export declare function generateReportsModal(caze: Case): {
76
82
  correlationId: string;
77
83
  fullWidth: boolean;
78
84
  maxWidth: import("@mui/material").DialogProps["maxWidth"];
85
+ minHeight: number | string;
79
86
  blocker: boolean;
87
+ onConfirm: (...args: any[]) => void;
88
+ onCancel: () => void;
80
89
  onClose: () => void;
81
90
  }> | undefined;
82
91
  };
@@ -94,7 +103,10 @@ export declare function openCreatorModal({ inodes, }?: {
94
103
  correlationId: string;
95
104
  fullWidth: boolean;
96
105
  maxWidth: import("@mui/material").DialogProps["maxWidth"];
106
+ minHeight: number | string;
97
107
  blocker: boolean;
108
+ onConfirm: (...args: any[]) => void;
109
+ onCancel: () => void;
98
110
  onClose: () => void;
99
111
  }> | undefined;
100
112
  };
@@ -110,7 +122,10 @@ export declare function editPayloadModal(editor: CasePayloadEditorDefinition, ca
110
122
  correlationId: string;
111
123
  fullWidth: boolean;
112
124
  maxWidth: import("@mui/material").DialogProps["maxWidth"];
125
+ minHeight: number | string;
113
126
  blocker: boolean;
127
+ onConfirm: (...args: any[]) => void;
128
+ onCancel: () => void;
114
129
  onClose: () => void;
115
130
  }> | undefined;
116
131
  };
@@ -192,11 +207,11 @@ export declare function createFilesError(error: any, payload: GetActionPayload<t
192
207
  };
193
208
  error: any;
194
209
  };
195
- export declare function attachFiles(caseOid: string, inodes: List<ImmutableInode>, types: InodeType[]): {
210
+ export declare function attachFiles(caseOid: string, inodes: Inode<"dms-core.File">[], types: InodeType[]): {
196
211
  type: string;
197
212
  payload: {
198
213
  caseOid: string;
199
- inodes: List<ImmutableInode>;
214
+ inodes: Inode<"dms-core.File">[];
200
215
  types: InodeType[];
201
216
  };
202
217
  };
@@ -211,7 +226,7 @@ export declare function attachFilesError(error: any, payload: GetActionPayload<t
211
226
  type: string;
212
227
  payload: {
213
228
  caseOid: string;
214
- inodes: List<ImmutableInode>;
229
+ inodes: Inode<"dms-core.File">[];
215
230
  types: InodeType[];
216
231
  };
217
232
  error: any;
@@ -226,7 +241,10 @@ export declare function showTimelineModal(caseOid: string, filters?: EventFilter
226
241
  correlationId: string;
227
242
  fullWidth: boolean;
228
243
  maxWidth: import("@mui/material").DialogProps["maxWidth"];
244
+ minHeight: number | string;
229
245
  blocker: boolean;
246
+ onConfirm: (...args: any[]) => void;
247
+ onCancel: () => void;
230
248
  onClose: () => void;
231
249
  }> | undefined;
232
250
  };