@imtf/dms-core 1.0.0-beta.1
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.
- package/apps/folder-manager/routes/InodeCollection/hooks/useRemoveInodesFromUrl.d.ts +3 -0
- package/core/components/CountryFlag/CountryFlag.d.ts +5 -0
- package/core/components/CountryFlag/Loadable.d.ts +2 -0
- package/core/components/JsonForm/widgets/widgetHOC.d.ts +33 -0
- package/core/components/TreeView/types.d.ts +17 -0
- package/core/components/TreeViewCell/constants.d.ts +25 -0
- package/core/components/dms-ui/constants.d.ts +15 -0
- package/core/constants/apps.d.ts +60 -0
- package/core/constants/kinds.d.ts +80 -0
- package/core/constants/permissions.d.ts +32 -0
- package/core/containers/DropZone/selectors.d.ts +125 -0
- package/core/containers/NotificationCenter/slice.d.ts +25 -0
- package/core/containers/NotificationCenter/types.d.ts +5 -0
- package/core/containers/PDFComposer/actions.d.ts +93 -0
- package/core/containers/PDFComposer/constants.d.ts +31 -0
- package/core/containers/PDFComposer/reducer.d.ts +21 -0
- package/core/containers/PDFComposer/type.d.ts +47 -0
- package/core/containers/PDFTronViewer/components/LightViewer/config.d.ts +10 -0
- package/core/containers/PDFTronViewer/components/LightViewer/index.d.ts +6 -0
- package/core/containers/PDFTronViewer/components/LightViewer/utils.d.ts +5 -0
- package/core/containers/PDFTronViewer/components/Viewer/types.d.ts +7 -0
- package/core/containers/PDFTronViewer/constants.d.ts +22 -0
- package/core/containers/PDFTronViewer/messages.d.ts +123 -0
- package/core/containers/PDFTronViewer/slice.d.ts +9 -0
- package/core/containers/SearchView/utils.d.ts +8 -0
- package/core/containers/TreeView/actions.d.ts +197 -0
- package/core/containers/TreeView/constants.d.ts +36 -0
- package/core/containers/TreeView/types.d.ts +46 -0
- package/core/providers/Actions/Context.d.ts +3 -0
- package/core/providers/Actions/constants.d.ts +74 -0
- package/core/providers/Actions/index.d.ts +8 -0
- package/core/providers/Actions/messages.d.ts +39 -0
- package/core/providers/Actions/types.d.ts +85 -0
- package/core/providers/Actions/utils.d.ts +4 -0
- package/core/providers/App/actions.d.ts +163 -0
- package/core/providers/App/constants.d.ts +34 -0
- package/core/providers/App/hooks/useAppCapabilities.d.ts +6 -0
- package/core/providers/App/hooks/useApplicationSettings.d.ts +57 -0
- package/core/providers/App/hooks/useEnvironment.d.ts +9 -0
- package/core/providers/App/hooks/useSettings.d.ts +16 -0
- package/core/providers/App/hooks/useUserSetting.d.ts +6 -0
- package/core/providers/App/hooks/useUserStorage.d.ts +7 -0
- package/core/providers/App/messages.d.ts +71 -0
- package/core/providers/App/modals/TextFieldModal.d.ts +12 -0
- package/core/providers/App/reducer.d.ts +1 -0
- package/core/providers/App/saga.d.ts +1 -0
- package/core/providers/App/selectors.d.ts +84 -0
- package/core/providers/App/service.d.ts +35 -0
- package/core/providers/App/types.d.ts +197 -0
- package/core/providers/App/utils/convertOldUserSettings.d.ts +11 -0
- package/core/providers/App/utils/createFileUploadFormData.d.ts +2 -0
- package/core/providers/App/utils/isSupportedItem.d.ts +2 -0
- package/core/providers/Authentication/Context.d.ts +10 -0
- package/core/providers/Authentication/constants.d.ts +2 -0
- package/core/providers/Authentication/hooks/useAuth.d.ts +2 -0
- package/core/providers/Authentication/service.d.ts +29 -0
- package/core/providers/Authentication/types.d.ts +38 -0
- package/core/providers/Cases/actions.d.ts +239 -0
- package/core/providers/Cases/constants.d.ts +54 -0
- package/core/providers/Cases/hooks/useCaseDocumentTypes.d.ts +10 -0
- package/core/providers/Cases/reducer.d.ts +18 -0
- package/core/providers/Cases/selectors.d.ts +64 -0
- package/core/providers/Cases/service.d.ts +92 -0
- package/core/providers/Cases/types.d.ts +143 -0
- package/core/providers/Cases/utils/can.d.ts +14 -0
- package/core/providers/Cases/utils/common.d.ts +10 -0
- package/core/providers/Cases/utils/isCase.d.ts +5 -0
- package/core/providers/Ccm/constants.d.ts +50 -0
- package/core/providers/Ccm/types.d.ts +137 -0
- package/core/providers/Ccm/utils/isAccount.d.ts +4 -0
- package/core/providers/Ccm/utils/isClient.d.ts +4 -0
- package/core/providers/Ccm/utils/isClientGroup.d.ts +4 -0
- package/core/providers/Ccm/utils/isHouseholdEntity.d.ts +4 -0
- package/core/providers/Definitions/service.d.ts +30 -0
- package/core/providers/Definitions/types.d.ts +248 -0
- package/core/providers/Inodes/actions.d.ts +612 -0
- package/core/providers/Inodes/constants.d.ts +152 -0
- package/core/providers/Inodes/hooks/useDelete.d.ts +12 -0
- package/core/providers/Inodes/messages.d.ts +475 -0
- package/core/providers/Inodes/selectors.d.ts +55 -0
- package/core/providers/Inodes/service.d.ts +149 -0
- package/core/providers/Inodes/types.d.ts +411 -0
- package/core/providers/Inodes/utils/can.d.ts +16 -0
- package/core/providers/Inodes/utils/getUrl.d.ts +1 -0
- package/core/providers/Inodes/utils/hasPermission.d.ts +2 -0
- package/core/providers/Inodes/utils/is.d.ts +39 -0
- package/core/providers/Inodes/utils/isImmutable.d.ts +15 -0
- package/core/providers/Inodes/utils/resolveUnauthorizedInodes.d.ts +11 -0
- package/core/providers/Inodes/utils/saveProperties.d.ts +2 -0
- package/core/providers/Inodes/utils/sortByOrderingWeight.d.ts +6 -0
- package/core/providers/Inspectors/Context.d.ts +11 -0
- package/core/providers/Inspectors/index.d.ts +6 -0
- package/core/providers/Inspectors/types.d.ts +40 -0
- package/core/providers/Inspectors/utils.d.ts +2 -0
- package/core/providers/Localization/constants.d.ts +3 -0
- package/core/providers/Localization/intl.d.ts +3 -0
- package/core/providers/Localization/types.d.ts +6 -0
- package/core/providers/MdmGraph/actions.d.ts +145 -0
- package/core/providers/MdmGraph/constants.d.ts +28 -0
- package/core/providers/MdmGraph/containers/MdmEntitiesEditor/utils/createHighlightsSchema.d.ts +13 -0
- package/core/providers/MdmGraph/service.d.ts +76 -0
- package/core/providers/MdmGraph/types.d.ts +151 -0
- package/core/providers/MdmGraph/utils/isEntity.d.ts +3 -0
- package/core/providers/MdmGraph/utils/misc.d.ts +13 -0
- package/core/providers/Modal/slice.d.ts +45 -0
- package/core/providers/Modal/types.d.ts +24 -0
- package/core/providers/Plugins/Context.d.ts +8 -0
- package/core/providers/Plugins/components/JsonFormPlugin.d.ts +6 -0
- package/core/providers/Plugins/components/QuestionnairePart.d.ts +11 -0
- package/core/providers/Plugins/components/index.d.ts +2 -0
- package/core/providers/Plugins/constants.d.ts +15 -0
- package/core/providers/Plugins/hooks/app/useActions.d.ts +4 -0
- package/core/providers/Plugins/hooks/app/useCodetype.d.ts +5 -0
- package/core/providers/Plugins/hooks/app/useParameter.d.ts +4 -0
- package/core/providers/Plugins/hooks/app/useSystemNotification.d.ts +6 -0
- package/core/providers/Plugins/hooks/app/useUserDetails.d.ts +2 -0
- package/core/providers/Plugins/hooks/cases/useActions.d.ts +7 -0
- package/core/providers/Plugins/hooks/cases/useCase.d.ts +3 -0
- package/core/providers/Plugins/hooks/cases/useCaseDocumentTypes.d.ts +5 -0
- package/core/providers/Plugins/hooks/cases/useCaseDocuments.d.ts +2 -0
- package/core/providers/Plugins/hooks/cases/useData.d.ts +14 -0
- package/core/providers/Plugins/hooks/cases/usePayload.d.ts +6 -0
- package/core/providers/Plugins/hooks/inodes/useActions.d.ts +12 -0
- package/core/providers/Plugins/hooks/inodes/useInodesByOids.d.ts +6 -0
- package/core/providers/Plugins/hooks/mdm/useEntity.d.ts +6 -0
- package/core/providers/Plugins/hooks/tasks/useActions.d.ts +17 -0
- package/core/providers/Plugins/hooks/tasks/useData.d.ts +2 -0
- package/core/providers/Plugins/hooks/tasks/useEntitiesMutate.d.ts +1 -0
- package/core/providers/Plugins/hooks/tasks/useTask.d.ts +2 -0
- package/core/providers/Plugins/hooks/usePlugin.d.ts +3 -0
- package/core/providers/Plugins/pluginRegistry.d.ts +323 -0
- package/core/providers/Plugins/types/ccm.d.ts +4 -0
- package/core/providers/Plugins/types/componentPlugins.d.ts +61 -0
- package/core/providers/Search/actions.d.ts +62 -0
- package/core/providers/Search/constants.d.ts +9 -0
- package/core/providers/Search/hooks/useReloader.d.ts +14 -0
- package/core/providers/Search/messages.d.ts +7 -0
- package/core/providers/Search/reducer.d.ts +32 -0
- package/core/providers/Search/saga.d.ts +1 -0
- package/core/providers/Search/selectors.d.ts +541 -0
- package/core/providers/Search/service.d.ts +9 -0
- package/core/providers/Search/types.d.ts +100 -0
- package/core/providers/Search/utils/common.d.ts +7 -0
- package/core/providers/Search/utils/createQuery.d.ts +26 -0
- package/core/providers/Search/utils/sanitizeUrlSearchParams.d.ts +1 -0
- package/core/providers/SystemNotification/constants.d.ts +3 -0
- package/core/providers/SystemNotification/slice.d.ts +9 -0
- package/core/providers/SystemNotification/useSystemNotification.d.ts +6 -0
- package/core/providers/Tasks/Context.d.ts +10 -0
- package/core/providers/Tasks/constants.d.ts +70 -0
- package/core/providers/Tasks/hooks/useEntitiesMutate.d.ts +15 -0
- package/core/providers/Tasks/hooks/useEntityDelete.d.ts +17 -0
- package/core/providers/Tasks/hooks/useEntityMutate.d.ts +31 -0
- package/core/providers/Tasks/hooks/useQuestionnaire.d.ts +4 -0
- package/core/providers/Tasks/hooks/useTask.d.ts +3 -0
- package/core/providers/Tasks/hooks/useTaskData.d.ts +5 -0
- package/core/providers/Tasks/service.d.ts +71 -0
- package/core/providers/Tasks/types.d.ts +133 -0
- package/core/providers/Tasks/utils/can.d.ts +21 -0
- package/core/providers/Tasks/utils/isTask.d.ts +5 -0
- package/core/providers/Uploader/Context.d.ts +47 -0
- package/core/providers/User/action.d.ts +19 -0
- package/core/providers/User/constants.d.ts +7 -0
- package/core/providers/User/reducer.d.ts +9 -0
- package/core/providers/User/saga.d.ts +2 -0
- package/core/providers/User/selectors.d.ts +76 -0
- package/core/providers/User/service.d.ts +11 -0
- package/core/providers/User/types.d.ts +31 -0
- package/core/routes/navigate.d.ts +9 -0
- package/core/services/client.d.ts +11 -0
- package/core/services/constants.d.ts +1 -0
- package/core/services/index.d.ts +18 -0
- package/core/services/localStorage.d.ts +21 -0
- package/core/services/settings.d.ts +7 -0
- package/core/services/silentErrorURLs.d.ts +2 -0
- package/core/services/utils/generatePaths.d.ts +11 -0
- package/core/utils/action.d.ts +17 -0
- package/core/utils/base64.d.ts +1 -0
- package/core/utils/checkStore.d.ts +4 -0
- package/core/utils/constants.d.ts +3 -0
- package/core/utils/everyIn.d.ts +5 -0
- package/core/utils/getItemLocation.d.ts +1 -0
- package/core/utils/getItemsLocation.d.ts +2 -0
- package/core/utils/htmlElements.d.ts +1 -0
- package/core/utils/isDocumentActive.d.ts +4 -0
- package/core/utils/isObject.d.ts +1 -0
- package/core/utils/lazyComponent.d.ts +4 -0
- package/core/utils/misc.d.ts +5 -0
- package/core/utils/promise.d.ts +4 -0
- package/core/utils/requestMiddleware.d.ts +1 -0
- package/core/utils/sagaInjectors.d.ts +4 -0
- package/core/utils/selectors.d.ts +8 -0
- package/core/utils/string.d.ts +24 -0
- package/core/utils/uuid.d.ts +1 -0
- package/index.d.ts +13 -0
- package/package.json +6 -0
- package/reducers.d.ts +22 -0
- package/store.d.ts +158 -0
- package/types/utils.d.ts +22 -0
- package/vendor/@imtf/react-components/components/ActivityDetail/ActivityDetail.d.ts +34 -0
- package/vendor/@imtf/react-components/components/ActivityDetail/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/ActivityDetail/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/BasicNotification/BasicNotification.d.ts +52 -0
- package/vendor/@imtf/react-components/components/BasicNotification/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/BasicNotification/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Breadcrumb/Breadcrumb.d.ts +36 -0
- package/vendor/@imtf/react-components/components/Breadcrumb/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Breadcrumb/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Chip/Chip.d.ts +41 -0
- package/vendor/@imtf/react-components/components/Chip/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Chip/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Chip/messages.d.ts +7 -0
- package/vendor/@imtf/react-components/components/Chip/utils.d.ts +14 -0
- package/vendor/@imtf/react-components/components/CounterStackedBar/CounterStackedBar.d.ts +33 -0
- package/vendor/@imtf/react-components/components/CounterStackedBar/ids.d.ts +3 -0
- package/vendor/@imtf/react-components/components/CounterStackedBar/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/DebounceField/DebounceField.d.ts +35 -0
- package/vendor/@imtf/react-components/components/DebounceField/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/DebounceField/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/DetailList/DetailList.d.ts +24 -0
- package/vendor/@imtf/react-components/components/DetailList/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/DetailList/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/DetailTree/DetailTree.d.ts +30 -0
- package/vendor/@imtf/react-components/components/DetailTree/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/DetailTree/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Error/Error.d.ts +59 -0
- package/vendor/@imtf/react-components/components/Error/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Error/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Error/messages.d.ts +15 -0
- package/vendor/@imtf/react-components/components/ErrorCatcher/ErrorCatcher.d.ts +40 -0
- package/vendor/@imtf/react-components/components/ErrorCatcher/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/ErrorCatcher/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/InfiniteScroll/InfiniteScroll.d.ts +114 -0
- package/vendor/@imtf/react-components/components/InfiniteScroll/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/InfoCard/InfoCard.d.ts +64 -0
- package/vendor/@imtf/react-components/components/InfoCard/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Inline/Inline.d.ts +19 -0
- package/vendor/@imtf/react-components/components/Inline/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Inline/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Internal/FormattedMessage.d.ts +11 -0
- package/vendor/@imtf/react-components/components/Line/Line.d.ts +44 -0
- package/vendor/@imtf/react-components/components/Line/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Line/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Loader/Loader.d.ts +28 -0
- package/vendor/@imtf/react-components/components/Loader/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Loader/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Menu/Menu.d.ts +16 -0
- package/vendor/@imtf/react-components/components/Menu/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Menu/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/MenuSelect/MenuSelect.d.ts +43 -0
- package/vendor/@imtf/react-components/components/MenuSelect/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/MenuSelect/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Navipath/Navipath.d.ts +52 -0
- package/vendor/@imtf/react-components/components/Navipath/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Navipath/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/NoContent/NoContent.d.ts +16 -0
- package/vendor/@imtf/react-components/components/NoContent/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/NoContent/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/NoContent/messages.d.ts +7 -0
- package/vendor/@imtf/react-components/components/Notification/Notification.d.ts +56 -0
- package/vendor/@imtf/react-components/components/Notification/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Notification/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/ProgressCircleBar/ProgressCircleBar.d.ts +47 -0
- package/vendor/@imtf/react-components/components/ProgressCircleBar/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/ProgressCircleBar/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/RippleEffect/RippleEffect.d.ts +33 -0
- package/vendor/@imtf/react-components/components/RippleEffect/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/RippleEffect/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Scroller/Scroller.d.ts +25 -0
- package/vendor/@imtf/react-components/components/Scroller/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Scroller/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/SearchBar/SearchBar.d.ts +61 -0
- package/vendor/@imtf/react-components/components/SearchBar/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/SearchBar/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/SearchBar/messages.d.ts +7 -0
- package/vendor/@imtf/react-components/components/Stats/Stats.d.ts +39 -0
- package/vendor/@imtf/react-components/components/Stats/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Stats/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Timeline/FormattedDate.d.ts +8 -0
- package/vendor/@imtf/react-components/components/Timeline/Timeline.d.ts +20 -0
- package/vendor/@imtf/react-components/components/Timeline/TimelineItem.d.ts +51 -0
- package/vendor/@imtf/react-components/components/Timeline/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Timeline/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/Timeline/messages.d.ts +11 -0
- package/vendor/@imtf/react-components/components/TitleContent/TitleContent.d.ts +25 -0
- package/vendor/@imtf/react-components/components/TitleContent/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/TitleContent/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/ViewMore/ViewMore.d.ts +30 -0
- package/vendor/@imtf/react-components/components/ViewMore/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/ViewMore/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/ViewMoreCard/ViewMoreCard.d.ts +77 -0
- package/vendor/@imtf/react-components/components/ViewMoreCard/ids.d.ts +1 -0
- package/vendor/@imtf/react-components/components/ViewMoreCard/index.d.ts +1 -0
- package/vendor/@imtf/react-components/components/ViewMoreCard/utils.d.ts +5 -0
- package/vendor/@imtf/react-components/components/index.d.ts +30 -0
- package/vendor/@imtf/react-components/hooks/index.d.ts +1 -0
- package/vendor/@imtf/react-components/hooks/useResponsiveBreakpoints.d.ts +13 -0
- package/vendor/@imtf/react-components/index.d.ts +3 -0
- package/vendor/@imtf/react-components/utils/common.d.ts +13 -0
- package/vendor/@imtf/react-components/utils/constants.d.ts +82 -0
- package/vendor/@imtf/react-components/utils/index.d.ts +2 -0
- package/vendor/@imtf/react-components/utils/resizeObserver.d.ts +1 -0
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import { Map } from "immutable";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
import EVENTS from "@/core/constants/events.json";
|
|
4
|
+
import { ACM_COMMENT } from "../../../core/constants/kinds";
|
|
5
|
+
import type { Case } from "../Cases/types";
|
|
6
|
+
import type { Inode, PropertiesComponent } from "../Inodes/types";
|
|
7
|
+
import type { Entity } from "../MdmGraph/types";
|
|
8
|
+
import type { Task } from "../Tasks/types";
|
|
9
|
+
export type ImmutableItem = Map<string, any>;
|
|
10
|
+
export type Capabilities<C = {
|
|
11
|
+
[key: string]: boolean | string[] | string;
|
|
12
|
+
}> = C;
|
|
13
|
+
export type ApplicationSettings = {
|
|
14
|
+
applicationSortOrder: string;
|
|
15
|
+
capabilities: AppCapabilities;
|
|
16
|
+
commentMaxLength: number;
|
|
17
|
+
defaultDossierViewMode: "TREE" | "SEARCH";
|
|
18
|
+
defaultModule: string;
|
|
19
|
+
externalApplications: {
|
|
20
|
+
name: string;
|
|
21
|
+
url: string;
|
|
22
|
+
}[];
|
|
23
|
+
inodeNameMaxLength: number;
|
|
24
|
+
kind: "dms-core.ApplicationSettings";
|
|
25
|
+
loadFirstFromQuickSearch: true;
|
|
26
|
+
};
|
|
27
|
+
export type AppCapabilities = {
|
|
28
|
+
canAccessDashboard: boolean;
|
|
29
|
+
canAccessAdmin: boolean;
|
|
30
|
+
canAccessC360: boolean;
|
|
31
|
+
canAccessCases: boolean;
|
|
32
|
+
canAccessTasks: boolean;
|
|
33
|
+
canCreateClientGroup: boolean;
|
|
34
|
+
canTriggerAdhocScreening: boolean;
|
|
35
|
+
canAccessLinkAnalysis: boolean;
|
|
36
|
+
canAccessRisk: boolean;
|
|
37
|
+
canAccessFM: boolean;
|
|
38
|
+
canAccessFMHome: boolean;
|
|
39
|
+
canAccessFMSearch: boolean;
|
|
40
|
+
canAccessFMBrowse: boolean;
|
|
41
|
+
canAccessFMFavorites: boolean;
|
|
42
|
+
canAccessFMTrash: boolean;
|
|
43
|
+
canAccessFMTrashOfAllUsers: boolean;
|
|
44
|
+
canAccessFMHomeOfAllUsers: boolean;
|
|
45
|
+
canAccessWorkbench: boolean;
|
|
46
|
+
canAccessWorkbenchData: boolean;
|
|
47
|
+
canAccessWorkbenchCase: boolean;
|
|
48
|
+
canAccessWorkbenchRiskConfiguration: boolean;
|
|
49
|
+
canAccessWorkbenchAdmin: boolean;
|
|
50
|
+
canAccessWorkbenchTranslations: boolean;
|
|
51
|
+
canAccessWorkbenchStructure: boolean;
|
|
52
|
+
canImportWorkbenchConfig: boolean;
|
|
53
|
+
};
|
|
54
|
+
export type AcmComment = {
|
|
55
|
+
kind: typeof ACM_COMMENT;
|
|
56
|
+
oid: string;
|
|
57
|
+
capabilities: Capabilities<{
|
|
58
|
+
canMarkCommentAsDone: boolean;
|
|
59
|
+
}>;
|
|
60
|
+
creationDate: string;
|
|
61
|
+
modificationDate: string;
|
|
62
|
+
firstname: string;
|
|
63
|
+
lastname: string;
|
|
64
|
+
permissions: Record<string, boolean>;
|
|
65
|
+
properties: Record<string, string>;
|
|
66
|
+
referencedLabel?: string;
|
|
67
|
+
referencedObjectType: string;
|
|
68
|
+
referencedObjectField: string;
|
|
69
|
+
referencedOid: string;
|
|
70
|
+
scopeOid?: string;
|
|
71
|
+
scopeType: string;
|
|
72
|
+
status: number;
|
|
73
|
+
subScopeOid?: string;
|
|
74
|
+
subScopeType?: string;
|
|
75
|
+
text: string;
|
|
76
|
+
uri: string;
|
|
77
|
+
username: string;
|
|
78
|
+
};
|
|
79
|
+
export type FormError = {
|
|
80
|
+
kind: "acm.FormError";
|
|
81
|
+
ancestorsOid: string[];
|
|
82
|
+
entityOid: string;
|
|
83
|
+
errors: Array<{
|
|
84
|
+
kind: "ErrorResource" | "WarningResource" | "acm.DocumentError";
|
|
85
|
+
type: "required" | string;
|
|
86
|
+
errorDescription: string;
|
|
87
|
+
propertyName?: string | null;
|
|
88
|
+
documentType?: string;
|
|
89
|
+
}>;
|
|
90
|
+
formName: string;
|
|
91
|
+
};
|
|
92
|
+
export type EventFilter = {
|
|
93
|
+
label: string;
|
|
94
|
+
value: string;
|
|
95
|
+
events: Array<keyof typeof EVENTS>;
|
|
96
|
+
};
|
|
97
|
+
type DefaultTimelineEventItem = {
|
|
98
|
+
kind?: string;
|
|
99
|
+
auditMessage?: string;
|
|
100
|
+
status?: number;
|
|
101
|
+
name?: string;
|
|
102
|
+
label?: string;
|
|
103
|
+
milestone?: string;
|
|
104
|
+
clientType?: string;
|
|
105
|
+
text?: string;
|
|
106
|
+
commentOnName?: string;
|
|
107
|
+
commentOnLabel?: string;
|
|
108
|
+
commentOnField?: string;
|
|
109
|
+
commentOnOid?: string;
|
|
110
|
+
oid: string;
|
|
111
|
+
[key: string]: string | number | undefined;
|
|
112
|
+
};
|
|
113
|
+
export type TimelineEvent<T = DefaultTimelineEventItem> = {
|
|
114
|
+
kind: "acm.TimelineEvent";
|
|
115
|
+
oid: string;
|
|
116
|
+
type: string;
|
|
117
|
+
firstname: string;
|
|
118
|
+
lastname: string;
|
|
119
|
+
username: string;
|
|
120
|
+
timestamp: string;
|
|
121
|
+
datetime?: string;
|
|
122
|
+
referencedObjectType: string;
|
|
123
|
+
referencedObjectUri: string;
|
|
124
|
+
referencedObjectOid?: string;
|
|
125
|
+
referencedOid?: string;
|
|
126
|
+
scope: string;
|
|
127
|
+
commentText?: string;
|
|
128
|
+
text?: string;
|
|
129
|
+
referencedObjectPayload?: {
|
|
130
|
+
completionOutcomeLabel: string;
|
|
131
|
+
label: string;
|
|
132
|
+
name: string;
|
|
133
|
+
};
|
|
134
|
+
item: T;
|
|
135
|
+
inode?: Pick<Inode, "kind" | "oid" | "parentOid" | "label" | "mimeType" | "version"> & {
|
|
136
|
+
path?: string[];
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
export type EventResource = {
|
|
140
|
+
kind: "acm.EventResource";
|
|
141
|
+
owner: string;
|
|
142
|
+
createdAt: string;
|
|
143
|
+
modifiedAt: string;
|
|
144
|
+
name: string;
|
|
145
|
+
statuses: string;
|
|
146
|
+
label: string;
|
|
147
|
+
auditMessage: string;
|
|
148
|
+
priority: number;
|
|
149
|
+
};
|
|
150
|
+
export type TaskTimelineEvent = TimelineEvent<EventResource & {
|
|
151
|
+
completionOutcomeLabel?: string;
|
|
152
|
+
prevOwner?: string;
|
|
153
|
+
assignee?: string;
|
|
154
|
+
commentOnKind?: string;
|
|
155
|
+
text?: string;
|
|
156
|
+
commentOnOid?: string;
|
|
157
|
+
commentOnLabel?: string;
|
|
158
|
+
commentOnName?: string;
|
|
159
|
+
commentOnField?: string;
|
|
160
|
+
status?: number;
|
|
161
|
+
}>;
|
|
162
|
+
export type TimelineEventList<T = DefaultTimelineEventItem> = {
|
|
163
|
+
kind: "acm.TimelineEventList";
|
|
164
|
+
count: number;
|
|
165
|
+
items: TimelineEvent<T>[];
|
|
166
|
+
};
|
|
167
|
+
export type FormattedTimelineEvent = {
|
|
168
|
+
title?: ReactNode;
|
|
169
|
+
subtitle?: ReactNode;
|
|
170
|
+
reference?: ReactNode;
|
|
171
|
+
id: string;
|
|
172
|
+
author: string;
|
|
173
|
+
date: Date;
|
|
174
|
+
message: ReactNode;
|
|
175
|
+
};
|
|
176
|
+
export type PropertiesPanelOverrides = {
|
|
177
|
+
[typeName: string]: {
|
|
178
|
+
[componentsName: string]: Partial<PropertiesComponent>;
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
export type SupportedItem = Case | Task | Inode | Entity;
|
|
182
|
+
export type DeniedResource = {
|
|
183
|
+
kind: "DeniedInodeResource";
|
|
184
|
+
oid: string;
|
|
185
|
+
parentOid: null;
|
|
186
|
+
favorite: boolean;
|
|
187
|
+
deleted: boolean;
|
|
188
|
+
index: number;
|
|
189
|
+
orderingWeight: number;
|
|
190
|
+
commentsCount: number;
|
|
191
|
+
forceWithType: boolean;
|
|
192
|
+
watched: boolean;
|
|
193
|
+
};
|
|
194
|
+
export type RecursivePartial<T> = {
|
|
195
|
+
[P in keyof T]?: T[P] extends (infer U)[] ? RecursivePartial<U>[] : T[P] extends object | undefined ? RecursivePartial<T[P]> : T[P];
|
|
196
|
+
};
|
|
197
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts old user settings to the new format.
|
|
3
|
+
*
|
|
4
|
+
* The new format has been added since version 6.3.x. Therefore users migrating
|
|
5
|
+
* from lower versions will have their settings converted to this new format.
|
|
6
|
+
*
|
|
7
|
+
* This function and its usage will be removed once the user settings are
|
|
8
|
+
* migrated to the backend.
|
|
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>>;
|
|
11
|
+
export default convertOldUserSettings;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { OAuthConfig } from "./service";
|
|
2
|
+
import { Payload, Provider } from "./types";
|
|
3
|
+
export type ProviderState = {
|
|
4
|
+
provider?: Provider | Provider<OAuthConfig | undefined>;
|
|
5
|
+
authenticationState?: Payload;
|
|
6
|
+
accessToken?: string;
|
|
7
|
+
readonly isAuthenticated: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare const AuthenticationContext: import("react").Context<ProviderState>;
|
|
10
|
+
export default AuthenticationContext;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export type OAuthConfig = {
|
|
2
|
+
authority: string;
|
|
3
|
+
clientId: string;
|
|
4
|
+
scope: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const paths: Readonly<{
|
|
7
|
+
readonly oAuthConfig: (params?: {} | undefined) => string;
|
|
8
|
+
readonly dmsToken: (params?: {} | undefined) => string;
|
|
9
|
+
readonly dmsLogout: (params?: {} | undefined) => string;
|
|
10
|
+
}>;
|
|
11
|
+
export declare function getOAuth2Config(): Promise<OAuthConfig>;
|
|
12
|
+
export declare function getDMSAuthToken(credentials?: {
|
|
13
|
+
username: string;
|
|
14
|
+
password: string;
|
|
15
|
+
}): Promise<string>;
|
|
16
|
+
export declare function logout(): Promise<string | undefined>;
|
|
17
|
+
/**
|
|
18
|
+
* Localstorage based service
|
|
19
|
+
*
|
|
20
|
+
* If a token exists in localStorage but is
|
|
21
|
+
* expired, this will return undefined
|
|
22
|
+
*/
|
|
23
|
+
export declare function retrieveToken(): {
|
|
24
|
+
provider: "oidc" | "internal";
|
|
25
|
+
payload: {
|
|
26
|
+
accessToken: string;
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
};
|
|
29
|
+
} | undefined;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { OAuthConfig } from "./service";
|
|
2
|
+
export interface ProviderConfiguration<C extends (() => Promise<unknown>) | Record<string, unknown> | undefined = undefined> {
|
|
3
|
+
type: "oidc" | "internal";
|
|
4
|
+
configuration?: C;
|
|
5
|
+
validateAccessToken: (token: string) => boolean;
|
|
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"]>;
|
|
10
|
+
}
|
|
11
|
+
export type AuthentificationWorkflow = "http-header" | "internal";
|
|
12
|
+
export type LocationStateLike = {
|
|
13
|
+
redirectUrl: string;
|
|
14
|
+
user?: string;
|
|
15
|
+
[key: string]: unknown;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Generic token object with at least accessToken and possibly a refreshToken
|
|
19
|
+
*/
|
|
20
|
+
export type Payload = {
|
|
21
|
+
accessToken: string;
|
|
22
|
+
refreshToken?: string;
|
|
23
|
+
};
|
|
24
|
+
export interface Provider<C extends (() => Promise<unknown>) | Record<string, unknown> | undefined = undefined> extends Omit<ProviderConfiguration<C>, "configuration"> {
|
|
25
|
+
configuration?: C extends () => Promise<unknown> ? Awaited<ReturnType<C>> : C;
|
|
26
|
+
enabled: boolean;
|
|
27
|
+
}
|
|
28
|
+
export type MessageDataPayload = {
|
|
29
|
+
provider: Provider["type"];
|
|
30
|
+
payload: Payload;
|
|
31
|
+
};
|
|
32
|
+
export type MessageData = {
|
|
33
|
+
type: "session_end";
|
|
34
|
+
payload?: unknown;
|
|
35
|
+
} | {
|
|
36
|
+
type: "refresh_token" | "session_start";
|
|
37
|
+
payload: MessageDataPayload;
|
|
38
|
+
};
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
import { List, Map } from "immutable";
|
|
2
|
+
import { GetActionPayload } from "../../../types/utils";
|
|
3
|
+
import { EventFilter } from "../App/types";
|
|
4
|
+
import { ImmutableInode, Inode, InodeType } from "../Inodes/types";
|
|
5
|
+
import { Case, CaseClassification, ImmutableCase } from "./types";
|
|
6
|
+
export declare function refreshReloadCount(caseOid: string): {
|
|
7
|
+
type: string;
|
|
8
|
+
payload: {
|
|
9
|
+
caseOid: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export declare function createProcessModal(caze: Case): {
|
|
13
|
+
payload: {
|
|
14
|
+
type: string;
|
|
15
|
+
props: Partial<{
|
|
16
|
+
[key: string]: unknown;
|
|
17
|
+
disableEscapeKeyDown: boolean;
|
|
18
|
+
disableBackdropClick: boolean;
|
|
19
|
+
correlationId: string;
|
|
20
|
+
fullWidth: boolean;
|
|
21
|
+
maxWidth: import("@mui/material").DialogProps["maxWidth"];
|
|
22
|
+
blocker: boolean;
|
|
23
|
+
onClose: () => void;
|
|
24
|
+
}> | undefined;
|
|
25
|
+
};
|
|
26
|
+
type: "modal/showModal";
|
|
27
|
+
};
|
|
28
|
+
export declare function createAdHocProcessSuccess(caseOid: string): {
|
|
29
|
+
type: string;
|
|
30
|
+
payload: {
|
|
31
|
+
caseOid: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export declare function addClassificationModal(caseOid: string): {
|
|
35
|
+
payload: {
|
|
36
|
+
type: string;
|
|
37
|
+
props: Partial<{
|
|
38
|
+
[key: string]: unknown;
|
|
39
|
+
disableEscapeKeyDown: boolean;
|
|
40
|
+
disableBackdropClick: boolean;
|
|
41
|
+
correlationId: string;
|
|
42
|
+
fullWidth: boolean;
|
|
43
|
+
maxWidth: import("@mui/material").DialogProps["maxWidth"];
|
|
44
|
+
blocker: boolean;
|
|
45
|
+
onClose: () => void;
|
|
46
|
+
}> | undefined;
|
|
47
|
+
};
|
|
48
|
+
type: "modal/showModal";
|
|
49
|
+
};
|
|
50
|
+
export declare function addClassification(oid: string, classification: CaseClassification): {
|
|
51
|
+
type: string;
|
|
52
|
+
payload: {
|
|
53
|
+
oid: string;
|
|
54
|
+
classification: CaseClassification;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
export declare function addClassificationSuccess(caseOid: string, classification: CaseClassification): {
|
|
58
|
+
type: string;
|
|
59
|
+
payload: {
|
|
60
|
+
caseOid: string;
|
|
61
|
+
classification: CaseClassification;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
export declare function addClassificationError(error: any): {
|
|
65
|
+
type: string;
|
|
66
|
+
error: any;
|
|
67
|
+
};
|
|
68
|
+
export declare function generateReportsModal(caze: Case): {
|
|
69
|
+
payload: {
|
|
70
|
+
type: string;
|
|
71
|
+
props: Partial<{
|
|
72
|
+
[key: string]: unknown;
|
|
73
|
+
disableEscapeKeyDown: boolean;
|
|
74
|
+
disableBackdropClick: boolean;
|
|
75
|
+
correlationId: string;
|
|
76
|
+
fullWidth: boolean;
|
|
77
|
+
maxWidth: import("@mui/material").DialogProps["maxWidth"];
|
|
78
|
+
blocker: boolean;
|
|
79
|
+
onClose: () => void;
|
|
80
|
+
}> | undefined;
|
|
81
|
+
};
|
|
82
|
+
type: "modal/showModal";
|
|
83
|
+
};
|
|
84
|
+
export declare function openCreatorModal({ inodes, }?: {
|
|
85
|
+
inodes?: Inode[];
|
|
86
|
+
}): {
|
|
87
|
+
payload: {
|
|
88
|
+
type: string;
|
|
89
|
+
props: Partial<{
|
|
90
|
+
[key: string]: unknown;
|
|
91
|
+
disableEscapeKeyDown: boolean;
|
|
92
|
+
disableBackdropClick: boolean;
|
|
93
|
+
correlationId: string;
|
|
94
|
+
fullWidth: boolean;
|
|
95
|
+
maxWidth: import("@mui/material").DialogProps["maxWidth"];
|
|
96
|
+
blocker: boolean;
|
|
97
|
+
onClose: () => void;
|
|
98
|
+
}> | undefined;
|
|
99
|
+
};
|
|
100
|
+
type: "modal/showModal";
|
|
101
|
+
};
|
|
102
|
+
export declare function editPayloadModal(editor: Map<string, unknown>, caze: ImmutableCase): {
|
|
103
|
+
payload: {
|
|
104
|
+
type: string;
|
|
105
|
+
props: Partial<{
|
|
106
|
+
[key: string]: unknown;
|
|
107
|
+
disableEscapeKeyDown: boolean;
|
|
108
|
+
disableBackdropClick: boolean;
|
|
109
|
+
correlationId: string;
|
|
110
|
+
fullWidth: boolean;
|
|
111
|
+
maxWidth: import("@mui/material").DialogProps["maxWidth"];
|
|
112
|
+
blocker: boolean;
|
|
113
|
+
onClose: () => void;
|
|
114
|
+
}> | undefined;
|
|
115
|
+
};
|
|
116
|
+
type: "modal/showModal";
|
|
117
|
+
};
|
|
118
|
+
export declare function getDocuments(caseOid: string): {
|
|
119
|
+
type: string;
|
|
120
|
+
payload: {
|
|
121
|
+
caseOid: string;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
export declare function getDocumentsSuccess(caseOid: string, inodes: Inode[]): {
|
|
125
|
+
type: string;
|
|
126
|
+
payload: {
|
|
127
|
+
caseOid: string;
|
|
128
|
+
inodes: Inode[];
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
export declare function getDocumentsError(error: any, payload: GetActionPayload<typeof getDocuments>): {
|
|
132
|
+
type: string;
|
|
133
|
+
error: any;
|
|
134
|
+
payload: {
|
|
135
|
+
caseOid: string;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
export declare function upload({ caseOid, files, fileInodes, serviceConfig, }: {
|
|
139
|
+
caseOid: string;
|
|
140
|
+
files: File[];
|
|
141
|
+
fileInodes: List<ImmutableInode>;
|
|
142
|
+
serviceConfig?: Record<string, unknown>;
|
|
143
|
+
}): {
|
|
144
|
+
type: string;
|
|
145
|
+
payload: {
|
|
146
|
+
caseOid: string;
|
|
147
|
+
files: File[];
|
|
148
|
+
fileInodes: List<ImmutableInode>;
|
|
149
|
+
serviceConfig: Record<string, unknown> | undefined;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
export declare function uploadSuccess(caseOid: string, inodes: Inode[]): {
|
|
153
|
+
type: string;
|
|
154
|
+
payload: {
|
|
155
|
+
caseOid: string;
|
|
156
|
+
inodes: Inode[];
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
export declare function uploadError(error: any, payload: GetActionPayload<typeof upload>): {
|
|
160
|
+
type: string;
|
|
161
|
+
payload: {
|
|
162
|
+
caseOid: string;
|
|
163
|
+
files: File[];
|
|
164
|
+
fileInodes: List<ImmutableInode>;
|
|
165
|
+
serviceConfig: Record<string, unknown> | undefined;
|
|
166
|
+
};
|
|
167
|
+
error: any;
|
|
168
|
+
};
|
|
169
|
+
export declare function createFiles(caseOid: string, entityOid: string, inodes: List<ImmutableInode>): {
|
|
170
|
+
type: string;
|
|
171
|
+
payload: {
|
|
172
|
+
caseOid: string;
|
|
173
|
+
entityOid: string;
|
|
174
|
+
inodes: List<ImmutableInode>;
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
export declare function createFilesSuccess(caseOid: string, entityOid: string, inodes: Inode[]): {
|
|
178
|
+
type: string;
|
|
179
|
+
payload: {
|
|
180
|
+
caseOid: string;
|
|
181
|
+
entityOid: string;
|
|
182
|
+
inodes: Inode[];
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
export declare function createFilesError(error: any, payload: GetActionPayload<typeof createFiles>): {
|
|
186
|
+
type: string;
|
|
187
|
+
payload: {
|
|
188
|
+
caseOid: string;
|
|
189
|
+
entityOid: string;
|
|
190
|
+
inodes: List<ImmutableInode>;
|
|
191
|
+
};
|
|
192
|
+
error: any;
|
|
193
|
+
};
|
|
194
|
+
export declare function attachFiles(caseOid: string, inodes: List<ImmutableInode>, types: InodeType[]): {
|
|
195
|
+
type: string;
|
|
196
|
+
payload: {
|
|
197
|
+
caseOid: string;
|
|
198
|
+
inodes: List<ImmutableInode>;
|
|
199
|
+
types: InodeType[];
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
export declare function attachFilesSuccess(caseOid: string, inodes: Inode[]): {
|
|
203
|
+
type: string;
|
|
204
|
+
payload: {
|
|
205
|
+
caseOid: string;
|
|
206
|
+
inodes: Inode[];
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
export declare function attachFilesError(error: any, payload: GetActionPayload<typeof attachFiles>): {
|
|
210
|
+
type: string;
|
|
211
|
+
payload: {
|
|
212
|
+
caseOid: string;
|
|
213
|
+
inodes: List<ImmutableInode>;
|
|
214
|
+
types: InodeType[];
|
|
215
|
+
};
|
|
216
|
+
error: any;
|
|
217
|
+
};
|
|
218
|
+
export declare function showTimelineModal(caseOid: string, filters?: EventFilter[]): {
|
|
219
|
+
payload: {
|
|
220
|
+
type: string;
|
|
221
|
+
props: Partial<{
|
|
222
|
+
[key: string]: unknown;
|
|
223
|
+
disableEscapeKeyDown: boolean;
|
|
224
|
+
disableBackdropClick: boolean;
|
|
225
|
+
correlationId: string;
|
|
226
|
+
fullWidth: boolean;
|
|
227
|
+
maxWidth: import("@mui/material").DialogProps["maxWidth"];
|
|
228
|
+
blocker: boolean;
|
|
229
|
+
onClose: () => void;
|
|
230
|
+
}> | undefined;
|
|
231
|
+
};
|
|
232
|
+
type: "modal/showModal";
|
|
233
|
+
};
|
|
234
|
+
export declare function clean(oids: string[]): {
|
|
235
|
+
type: string;
|
|
236
|
+
payload: {
|
|
237
|
+
oids: string[];
|
|
238
|
+
};
|
|
239
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { EventFilter } from "../App/types";
|
|
2
|
+
export declare const REFRESH_RELOAD_COUNT = "imtf/Cases/REFRESH_RELOAD_COUNT";
|
|
3
|
+
export declare const CREATE_AD_HOC_PROCESS_SUCCESS = "imtf/Cases/CREATE_AD_HOC_PROCESS_SUCCESS";
|
|
4
|
+
export declare const GET_DOCUMENTS = "imtf/Cases/GET_DOCUMENTS";
|
|
5
|
+
export declare const GET_DOCUMENTS_SUCCESS = "imtf/Cases/GET_DOCUMENTS_SUCCESS";
|
|
6
|
+
export declare const GET_DOCUMENTS_ERROR = "imtf/Cases/GET_DOCUMENTS_ERROR";
|
|
7
|
+
export declare const UPLOAD = "imtf/Cases/UPLOAD";
|
|
8
|
+
export declare const UPLOAD_SUCCESS = "imtf/Cases/UPLOAD_SUCCESS";
|
|
9
|
+
export declare const UPLOAD_ERROR = "imtf/Cases/UPLOAD_ERROR";
|
|
10
|
+
export declare const CREATE_FILES = "imtf/Cases/CREATE_FILES";
|
|
11
|
+
export declare const CREATE_FILES_SUCCESS = "imtf/Cases/CREATE_FILES_SUCCESS";
|
|
12
|
+
export declare const CREATE_FILES_ERROR = "imtf/Cases/CREATE_FILES_ERROR";
|
|
13
|
+
export declare const ATTACH_FILES = "imtf/Cases/ATTACH_FILES";
|
|
14
|
+
export declare const ATTACH_FILES_SUCCESS = "imtf/Cases/ATTACH_FILES_SUCCESS";
|
|
15
|
+
export declare const ATTACH_FILES_ERROR = "imtf/Cases/ATTACH_FILES_ERROR";
|
|
16
|
+
export declare const ADD_CLASSIFICATION = "imtf/Cases/ADD_CLASSIFICATION";
|
|
17
|
+
export declare const ADD_CLASSIFICATION_SUCCESS = "imtf/Cases/ADD_CLASSIFICATION_SUCCESS";
|
|
18
|
+
export declare const ADD_CLASSIFICATION_ERROR = "imtf/Cases/ADD_CLASSIFICATION_ERROR";
|
|
19
|
+
export declare const CLEAN = "imtf/Cases/CLEAN";
|
|
20
|
+
export declare const SEARCH_CONTEXT_NAME = "cases";
|
|
21
|
+
export declare const MODAL_TYPES: {
|
|
22
|
+
readonly CREATE_PROCESS: "imtf/Cases/modal/CREATE_PROCESS";
|
|
23
|
+
readonly ADD_CLASSIFICATION: "imtf/Cases/modal/ADD_CLASSIFICATION";
|
|
24
|
+
readonly GENERATE_CASE_REPORT: "imtf/Cases/modal/GENERATE_CASE_REPORT";
|
|
25
|
+
readonly TIMELINE: "imtf/Cases/modal/TIMELINE";
|
|
26
|
+
readonly CREATE: "imtf/Cases/modal/CREATE";
|
|
27
|
+
readonly EDIT_PAYLOAD: "imtf/Cases/modal/EDIT_PAYLOAD";
|
|
28
|
+
};
|
|
29
|
+
export declare const ACTIONS: {
|
|
30
|
+
readonly REOPEN: "CASE_REOPEN";
|
|
31
|
+
readonly CANCEL: "CASE_CANCEL";
|
|
32
|
+
readonly SUSPEND: "CASE_SUSPEND";
|
|
33
|
+
readonly COMPLETE: "CASE_COMPLETE";
|
|
34
|
+
readonly REACTIVATE: "CASE_REACTIVATE";
|
|
35
|
+
readonly RESTART: "CASE_RESTART";
|
|
36
|
+
readonly CREATE_AD_HOC_PROCESS: "CREATE_AD_HOC_PROCESS";
|
|
37
|
+
readonly OPEN_DOSSIER: "OPEN_DOSSIER";
|
|
38
|
+
readonly GENERATE_CASE_REPORT: "GENERATE_CASE_REPORT";
|
|
39
|
+
readonly SHOW_TIMELINE: "SHOW_TIMELINE";
|
|
40
|
+
readonly ADD_COMMENT: "CASE_ADD_COMMENT";
|
|
41
|
+
};
|
|
42
|
+
export declare const INSPECTORS: {
|
|
43
|
+
CASE_DETAILS: string;
|
|
44
|
+
CASE_RELATED: string;
|
|
45
|
+
CASE_CLASSIFICATIONS: string;
|
|
46
|
+
CASE_TIMELINE: string;
|
|
47
|
+
CASE_DOCUMENTS: string;
|
|
48
|
+
CASE_ACTIVITY_FLOW_STAGE: string;
|
|
49
|
+
CASE_DATA: string;
|
|
50
|
+
CASE_MILESTONES: string;
|
|
51
|
+
CASE_DATAVISUALIZER: string;
|
|
52
|
+
CASE_COMMENTS: string;
|
|
53
|
+
};
|
|
54
|
+
export declare const EVENT_FILTERS: Readonly<EventFilter[]>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ImmutableTask } from "../../Tasks/types";
|
|
2
|
+
import { ImmutableCase } from "../types";
|
|
3
|
+
export type CaseDocumentType = {
|
|
4
|
+
canAddFile: boolean;
|
|
5
|
+
canAddFileWithoutBinary: boolean;
|
|
6
|
+
kind: "acm.DocumentType";
|
|
7
|
+
type: string;
|
|
8
|
+
};
|
|
9
|
+
declare const useCaseDocumentTypes: (item: ImmutableCase | ImmutableTask | string | undefined) => import("swr").SWRResponse<CaseDocumentType[], any, any>;
|
|
10
|
+
export default useCaseDocumentTypes;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type CaseState = {
|
|
2
|
+
documents: {
|
|
3
|
+
status: string;
|
|
4
|
+
error: any;
|
|
5
|
+
items: string[] | undefined;
|
|
6
|
+
};
|
|
7
|
+
reloadCount: number;
|
|
8
|
+
};
|
|
9
|
+
export default function casesReducer(state: Record<string, CaseState | undefined> | undefined, action: any): {
|
|
10
|
+
[x: string]: CaseState | {
|
|
11
|
+
documents: {
|
|
12
|
+
status: string;
|
|
13
|
+
error: undefined;
|
|
14
|
+
items: string[];
|
|
15
|
+
};
|
|
16
|
+
reloadCount?: number | undefined;
|
|
17
|
+
} | undefined;
|
|
18
|
+
};
|