@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,149 @@
|
|
|
1
|
+
import { AxiosRequestConfig } from "axios";
|
|
2
|
+
import { FileInode, ImmutableInode, Inode, InodeEventList, InodeList, InodeRefList, StateMachineActionResult, StateMachineApplyAction, Tag, TagList } from "./types";
|
|
3
|
+
export declare const paths: Readonly<{
|
|
4
|
+
readonly home: (params?: {} | undefined) => string;
|
|
5
|
+
readonly workspace: (params?: {} | undefined) => string;
|
|
6
|
+
readonly inodes: (params?: {} | undefined) => string;
|
|
7
|
+
readonly inode: (params?: {
|
|
8
|
+
inodeOid: string | null;
|
|
9
|
+
} | undefined) => string;
|
|
10
|
+
readonly inodeTags: (params?: {
|
|
11
|
+
inodeOid: string | null;
|
|
12
|
+
} | undefined) => string;
|
|
13
|
+
readonly inodeList: (params?: {} | undefined) => string;
|
|
14
|
+
readonly inodeAcls: (params?: {
|
|
15
|
+
inodeOid: string | null;
|
|
16
|
+
} | undefined) => string;
|
|
17
|
+
readonly inodeAclGroups: (params?: {
|
|
18
|
+
inodeOid: string | null;
|
|
19
|
+
} | undefined) => string;
|
|
20
|
+
readonly children: (params?: {
|
|
21
|
+
inodeOid: string | null;
|
|
22
|
+
} | undefined) => string;
|
|
23
|
+
readonly copyTo: (params?: {
|
|
24
|
+
inodeOid: string | null;
|
|
25
|
+
targetOid: string | null;
|
|
26
|
+
} | undefined) => string;
|
|
27
|
+
readonly comments: (params?: {
|
|
28
|
+
inodeOid: string | null;
|
|
29
|
+
} | undefined) => string;
|
|
30
|
+
readonly timeline: (params?: {
|
|
31
|
+
inodeOid: string | null;
|
|
32
|
+
} | undefined) => string;
|
|
33
|
+
readonly tags: (params?: {} | undefined) => string;
|
|
34
|
+
readonly urls: (params?: {
|
|
35
|
+
inodeOid: string | null;
|
|
36
|
+
} | undefined) => string;
|
|
37
|
+
readonly changeType: (params?: {
|
|
38
|
+
inodeOid: string | null;
|
|
39
|
+
} | undefined) => string;
|
|
40
|
+
readonly fileContent: (params?: {
|
|
41
|
+
downloadId: string | null;
|
|
42
|
+
} | undefined) => string;
|
|
43
|
+
readonly thumbnail: (params?: {
|
|
44
|
+
inodeOid: string | null;
|
|
45
|
+
} | undefined) => string;
|
|
46
|
+
readonly properties: (params?: {
|
|
47
|
+
inodeOid: string | null;
|
|
48
|
+
} | undefined) => string;
|
|
49
|
+
readonly propertyComponents: (params?: {
|
|
50
|
+
inodeOid: string | null;
|
|
51
|
+
} | undefined) => string;
|
|
52
|
+
readonly propertyGroups: (params?: {
|
|
53
|
+
inodeOid: string | null;
|
|
54
|
+
} | undefined) => string;
|
|
55
|
+
readonly topPanels: (params?: {
|
|
56
|
+
inodeOid: string | null;
|
|
57
|
+
} | undefined) => string;
|
|
58
|
+
readonly versions: (params?: {
|
|
59
|
+
inodeOid: string | null;
|
|
60
|
+
} | undefined) => string;
|
|
61
|
+
readonly promoteBinary: (params?: {
|
|
62
|
+
version: string | null;
|
|
63
|
+
inodeOid: string | null;
|
|
64
|
+
} | undefined) => string;
|
|
65
|
+
readonly updateAllowedChildrenTypes: (params?: {
|
|
66
|
+
inodeOid: string | null;
|
|
67
|
+
} | undefined) => string;
|
|
68
|
+
readonly updateAllowedChildrenTemplates: (params?: {
|
|
69
|
+
inodeOid: string | null;
|
|
70
|
+
} | undefined) => string;
|
|
71
|
+
readonly customizableFields: (params?: {
|
|
72
|
+
inodeOid: string | null;
|
|
73
|
+
} | undefined) => string;
|
|
74
|
+
readonly mergePdf: (params?: {} | undefined) => string;
|
|
75
|
+
readonly bulk: (params?: {} | undefined) => string;
|
|
76
|
+
readonly bulkUpdateContent: (params?: {} | undefined) => string;
|
|
77
|
+
readonly bulkCopyTo: (params?: {
|
|
78
|
+
targetOid: string | null;
|
|
79
|
+
} | undefined) => string;
|
|
80
|
+
readonly bulkLinkTo: (params?: {
|
|
81
|
+
targetOid: string | null;
|
|
82
|
+
} | undefined) => string;
|
|
83
|
+
readonly bulkFavorite: (params?: {} | undefined) => string;
|
|
84
|
+
readonly bulkUnfavorite: (params?: {} | undefined) => string;
|
|
85
|
+
readonly bulkWatch: (params?: {} | undefined) => string;
|
|
86
|
+
readonly bulkUnwatch: (params?: {} | undefined) => string;
|
|
87
|
+
readonly bulkStateAction: (params?: {} | undefined) => string;
|
|
88
|
+
readonly bulkRestore: (params?: {} | undefined) => string;
|
|
89
|
+
readonly bulkDownload: (params?: {} | undefined) => string;
|
|
90
|
+
readonly download: (params?: {} | undefined) => string;
|
|
91
|
+
readonly templates: (params?: {} | undefined) => string;
|
|
92
|
+
readonly terms: (params?: {} | undefined) => string;
|
|
93
|
+
readonly dmsOperations: (params?: {} | undefined) => string;
|
|
94
|
+
readonly downloadTimeline: (params?: {
|
|
95
|
+
inodeOid: string | null;
|
|
96
|
+
} | undefined) => string;
|
|
97
|
+
readonly barcodeProcessing: (params?: {} | undefined) => string;
|
|
98
|
+
readonly businessProcesses: (params?: {
|
|
99
|
+
inodeOid: string | null;
|
|
100
|
+
} | undefined) => string;
|
|
101
|
+
readonly businessProcessesCapabilities: (params?: {
|
|
102
|
+
inodeOid: string | null;
|
|
103
|
+
} | undefined) => string;
|
|
104
|
+
readonly relatedDossiers: (params?: {
|
|
105
|
+
dossierType: string | null;
|
|
106
|
+
dossierName: string | null;
|
|
107
|
+
} | undefined) => string;
|
|
108
|
+
}>;
|
|
109
|
+
export declare function getImmutable(inodeOid: string, params: Record<string, unknown>): Promise<ImmutableInode>;
|
|
110
|
+
export declare function get(inodeOid: string, params: Record<string, unknown>): Promise<Inode>;
|
|
111
|
+
export declare function getList(inodeRefList: InodeRefList): Promise<Inode<"dms-core.Folder" | "dms-core.File" | "dms-core.Template" | "dms-core.Dossier" | "dms-core.DeniedInode">[]>;
|
|
112
|
+
export declare function save(inode: Inode): Promise<Inode>;
|
|
113
|
+
export declare function saveBulk(inodeList: InodeList, mergeOnNameConflict?: boolean): Promise<Inode<"dms-core.Folder" | "dms-core.File" | "dms-core.Template" | "dms-core.Dossier" | "dms-core.DeniedInode">[]>;
|
|
114
|
+
export declare function create(inode: Partial<Inode>): Promise<Inode>;
|
|
115
|
+
export declare function copy(inodeOid: string, targetOid: string): Promise<import("immutable").Collection<unknown, unknown>>;
|
|
116
|
+
export declare function copyBulk(inodeRefList: InodeRefList, targetOid: string): Promise<Inode<"dms-core.Folder" | "dms-core.File" | "dms-core.Template" | "dms-core.Dossier" | "dms-core.DeniedInode">[]>;
|
|
117
|
+
export declare function saveChildrenAllowedTypes(inodeOid: string, typesObject: unknown): Promise<any[]>;
|
|
118
|
+
export declare function saveChildrenAllowedTemplates(inodeOid: string, templatesObject: unknown): Promise<any[]>;
|
|
119
|
+
export declare function trash(inodeRefList: InodeRefList, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
120
|
+
export declare function getHome(): Promise<Inode>;
|
|
121
|
+
export declare function getWorkspace(): Promise<Inode<"dms-core.Folder" | "dms-core.File" | "dms-core.Template" | "dms-core.Dossier" | "dms-core.DeniedInode">[]>;
|
|
122
|
+
export declare function getChildren(inodeOid: string, params: Record<string, unknown>): Promise<Inode[]>;
|
|
123
|
+
export declare function uploadFiles(files: File[], inodes: FileInode[], params: Record<string, unknown>): Promise<Inode<"dms-core.Folder" | "dms-core.File" | "dms-core.Template" | "dms-core.Dossier" | "dms-core.DeniedInode">[]>;
|
|
124
|
+
export declare function getTimeLine(inodeOid: string, params: Record<string, unknown>): Promise<InodeEventList>;
|
|
125
|
+
export declare function getTags(inputVal: string, limit?: number): Promise<Tag[]>;
|
|
126
|
+
export declare function createTag(name: string): Promise<Tag>;
|
|
127
|
+
export declare function getTagsForInode(inodeOid: string): Promise<Tag[]>;
|
|
128
|
+
export declare function updateTags(inodeOid: string, tags: Tag[]): Promise<import("axios").AxiosResponse<TagList, any>>;
|
|
129
|
+
export declare function favoriteBulk(inodeRefList: InodeRefList): Promise<Inode<"dms-core.Folder" | "dms-core.File" | "dms-core.Template" | "dms-core.Dossier" | "dms-core.DeniedInode">[]>;
|
|
130
|
+
export declare function unfavoriteBulk(inodeRefList: InodeRefList): Promise<Inode<"dms-core.Folder" | "dms-core.File" | "dms-core.Template" | "dms-core.Dossier" | "dms-core.DeniedInode">[]>;
|
|
131
|
+
export declare function getInodeUrls(inodeOid: string): Promise<any[]>;
|
|
132
|
+
export declare function watchBulk(inodeRefList: InodeRefList): Promise<import("axios").AxiosResponse<void, any>>;
|
|
133
|
+
export declare function unwatchBulk(inodeRefList: InodeRefList): Promise<import("axios").AxiosResponse<void, any>>;
|
|
134
|
+
export declare function stateAction(action: StateMachineApplyAction): Promise<StateMachineActionResult>;
|
|
135
|
+
export declare function generateDownloadToken(downloadId: string): Promise<import("axios").AxiosResponse<string, any>> & {
|
|
136
|
+
"@@redux-saga/CANCEL_PROMISE"?: import("axios").Canceler;
|
|
137
|
+
};
|
|
138
|
+
export declare function getPropertiesComponents(inodeOid: string): Promise<import("immutable").Collection<unknown, unknown>>;
|
|
139
|
+
export declare function getBinaryBlob(downloadId: string): Promise<any>;
|
|
140
|
+
export declare function getVersions(inodeOid: string): Promise<any[]>;
|
|
141
|
+
export declare function updateBinary(inodeOid: string, file: File, params: Record<string, unknown>): Promise<any[]>;
|
|
142
|
+
export declare function restoreInodeBulk(inodeList: InodeList): Promise<Inode<"dms-core.Folder" | "dms-core.File" | "dms-core.Template" | "dms-core.Dossier" | "dms-core.DeniedInode">[]>;
|
|
143
|
+
export declare function getFieldsDefinition(inodeOid: string): Promise<any[]>;
|
|
144
|
+
export declare function getAllChildren<Params extends Record<string, unknown>>(inodeOid: string, params: Params): Promise<{
|
|
145
|
+
allChildren: Inode[];
|
|
146
|
+
exploredFolders: string[];
|
|
147
|
+
}>;
|
|
148
|
+
export declare function getInodeProperties(inodeOid: string): Promise<import("./types").PropertiesGroup[]>;
|
|
149
|
+
export declare function getInodeTimelineCsv(inodeOid: string, options: AxiosRequestConfig): Promise<any>;
|
|
@@ -0,0 +1,411 @@
|
|
|
1
|
+
import { List, MapOf } from "immutable";
|
|
2
|
+
import { COMMENT, DENIED_INODE, DOSSIER, DOSSIER_TYPE, FILE, FOLDER, INODE_LIST, INODE_REF, INODE_REF_LIST, PROPERTY, PROPERTY_LIST, STACK, STATE_MACHINE_APPLY_ACTION, TAG, TAGLIST, TEMPLATE, TEMPLATE_REF, TERM_REF } from "../../../core/constants/kinds";
|
|
3
|
+
import { UI } from "../../components/dms-ui/constants";
|
|
4
|
+
import { SUPPORTED_MIME_TYPES } from "../../containers/PDFTronViewer/constants";
|
|
5
|
+
import { TimelineEvent } from "../App/types";
|
|
6
|
+
import { Case, CaseRef } from "../Cases/types";
|
|
7
|
+
import { CaseDefinition, TaskDefinition } from "../Definitions/types";
|
|
8
|
+
import type { Task } from "../Tasks/types";
|
|
9
|
+
import { User, UserGroup } from "../User/types";
|
|
10
|
+
export type DossierRef = {
|
|
11
|
+
kind: "acm.DossierRef";
|
|
12
|
+
oid: string;
|
|
13
|
+
uri: string;
|
|
14
|
+
};
|
|
15
|
+
export type ImmutableInode<Kind extends "dms-core.File" | "dms-core.Folder" | "dms-core.Dossier" | "dms-core.Template" = typeof FILE | typeof FOLDER | typeof DOSSIER | typeof TEMPLATE> = MapOf<Omit<Inode<Kind>, "allowedTypes" | "capabilities" | "childrenAllowedTemplates" | "childrenAllowedTypes" | "properties" | "stateMachines" | "ancestors" | "type"> & {
|
|
16
|
+
allowedTypes: List<MapOf<InodeTypeRef>>;
|
|
17
|
+
type: MapOf<InodeTypeRef>;
|
|
18
|
+
ancestors: List<MapOf<Ancestor>>;
|
|
19
|
+
capabilities: MapOf<Capabilities>;
|
|
20
|
+
childrenAllowedTemplates: List<MapOf<TemplateRef>>;
|
|
21
|
+
childrenAllowedTypes: List<MapOf<InodeTypeRef>>;
|
|
22
|
+
properties: MapOf<{
|
|
23
|
+
kind: typeof PROPERTY_LIST;
|
|
24
|
+
items: List<MapOf<Property>>;
|
|
25
|
+
}>;
|
|
26
|
+
stateMachines: List<MapOf<Omit<StateMachine, "actions"> & {
|
|
27
|
+
actions: List<MapOf<StateMachineAction>>;
|
|
28
|
+
}>>;
|
|
29
|
+
}>;
|
|
30
|
+
export type Inode<Kind extends typeof FILE | typeof FOLDER | typeof DOSSIER | typeof TEMPLATE | typeof DENIED_INODE = typeof FILE | typeof FOLDER | typeof DOSSIER | typeof TEMPLATE | typeof DENIED_INODE> = {
|
|
31
|
+
allowedTypes: InodeTypeRef[];
|
|
32
|
+
ancestors?: Ancestor[];
|
|
33
|
+
capabilities?: Capabilities;
|
|
34
|
+
childrenAllowedTemplates?: TemplateRef[];
|
|
35
|
+
childrenAllowedTypes?: InodeTypeRef[];
|
|
36
|
+
creationDate: string;
|
|
37
|
+
deleted?: boolean;
|
|
38
|
+
deleteInfo?: {
|
|
39
|
+
kind: "dms-core.DeleteInfo";
|
|
40
|
+
timestamp: string;
|
|
41
|
+
user: User;
|
|
42
|
+
};
|
|
43
|
+
shared?: boolean;
|
|
44
|
+
downloadId: string;
|
|
45
|
+
favorite?: boolean;
|
|
46
|
+
forceChildrenWithTemplate?: boolean;
|
|
47
|
+
forceChildrenWithType?: boolean;
|
|
48
|
+
forceWithType?: boolean;
|
|
49
|
+
kind: Kind;
|
|
50
|
+
commentsCount?: number;
|
|
51
|
+
label: string;
|
|
52
|
+
mimeType: keyof typeof SUPPORTED_MIME_TYPES | string;
|
|
53
|
+
modificationDate: string;
|
|
54
|
+
name: string;
|
|
55
|
+
oid: string;
|
|
56
|
+
orderingWeight: number;
|
|
57
|
+
parentOid?: string;
|
|
58
|
+
watched?: boolean;
|
|
59
|
+
template?: TemplateRef;
|
|
60
|
+
permissions: {
|
|
61
|
+
[key: string]: boolean | undefined;
|
|
62
|
+
} | null;
|
|
63
|
+
fields: {
|
|
64
|
+
[key: string]: string;
|
|
65
|
+
};
|
|
66
|
+
caseRefs?: {
|
|
67
|
+
items: CaseRef[];
|
|
68
|
+
};
|
|
69
|
+
mdmEntityRefs?: {
|
|
70
|
+
kind: "dms-core.MdmEntityRefList";
|
|
71
|
+
items: Array<{
|
|
72
|
+
kind: "dms-core.MdmEntityRef";
|
|
73
|
+
oid: string;
|
|
74
|
+
uri: string;
|
|
75
|
+
}>;
|
|
76
|
+
};
|
|
77
|
+
referredUnfile?: {
|
|
78
|
+
referrers: InodeRef[];
|
|
79
|
+
};
|
|
80
|
+
tags?: TagList;
|
|
81
|
+
properties: {
|
|
82
|
+
kind: typeof PROPERTY_LIST;
|
|
83
|
+
items: Property[];
|
|
84
|
+
};
|
|
85
|
+
size: number;
|
|
86
|
+
stateMachines?: StateMachine[];
|
|
87
|
+
type?: InodeTypeRef;
|
|
88
|
+
uri: string;
|
|
89
|
+
version: number;
|
|
90
|
+
/**
|
|
91
|
+
* For barcode processing : backend give us a transientFileId
|
|
92
|
+
* to be able to process a previously uploaded file without
|
|
93
|
+
* reuploading it.
|
|
94
|
+
*/
|
|
95
|
+
transientFileId?: string;
|
|
96
|
+
};
|
|
97
|
+
export type InodeStack = {
|
|
98
|
+
kind: typeof STACK;
|
|
99
|
+
oid: number;
|
|
100
|
+
items: Inode[];
|
|
101
|
+
};
|
|
102
|
+
type Ancestor = {
|
|
103
|
+
kind: typeof INODE_REF;
|
|
104
|
+
name: Inode["name"];
|
|
105
|
+
label: Inode["label"];
|
|
106
|
+
oid: Inode["oid"];
|
|
107
|
+
};
|
|
108
|
+
type Capabilities = {
|
|
109
|
+
kind: "dms.core.Capabilities";
|
|
110
|
+
canAddFolderOfTypes: InodeType["name"][];
|
|
111
|
+
canViewPanels: string[];
|
|
112
|
+
canAddFile: boolean;
|
|
113
|
+
canSendLinkByEmail: boolean;
|
|
114
|
+
canAddFileOfTypes: InodeType["name"][];
|
|
115
|
+
canAssignTypes: InodeType["name"][];
|
|
116
|
+
canCreateCase: boolean;
|
|
117
|
+
canAddFileWithoutBinary: boolean;
|
|
118
|
+
canAddFileWithoutBinaryOfTypes: InodeType["name"][];
|
|
119
|
+
};
|
|
120
|
+
export type InodeList = {
|
|
121
|
+
kind: typeof INODE_LIST;
|
|
122
|
+
items: Inode[];
|
|
123
|
+
};
|
|
124
|
+
export type InodeRef = {
|
|
125
|
+
kind: typeof INODE_REF;
|
|
126
|
+
oid: string;
|
|
127
|
+
name: string;
|
|
128
|
+
label?: string;
|
|
129
|
+
};
|
|
130
|
+
export type InodeRefList = {
|
|
131
|
+
kind: typeof INODE_REF_LIST;
|
|
132
|
+
items: InodeRef[];
|
|
133
|
+
};
|
|
134
|
+
export interface FileInode extends Inode {
|
|
135
|
+
kind: typeof FILE;
|
|
136
|
+
mimeType: string;
|
|
137
|
+
}
|
|
138
|
+
export interface TemplateInode extends Inode {
|
|
139
|
+
kind: typeof TEMPLATE;
|
|
140
|
+
}
|
|
141
|
+
export type Tag = {
|
|
142
|
+
kind: typeof TAG;
|
|
143
|
+
name: string;
|
|
144
|
+
};
|
|
145
|
+
export type TagList = {
|
|
146
|
+
kind: typeof TAGLIST;
|
|
147
|
+
items: Tag[];
|
|
148
|
+
};
|
|
149
|
+
export type Comment = {
|
|
150
|
+
kind: typeof COMMENT;
|
|
151
|
+
commentOn: Inode;
|
|
152
|
+
text: string;
|
|
153
|
+
oid: string;
|
|
154
|
+
creationDate: string;
|
|
155
|
+
author: {
|
|
156
|
+
firstname: string;
|
|
157
|
+
lastname: string;
|
|
158
|
+
[key: string]: any;
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
export type CommentList = {
|
|
162
|
+
comments: Comment[];
|
|
163
|
+
};
|
|
164
|
+
export type StateMachine = {
|
|
165
|
+
kind: "dms-core.StateMachine";
|
|
166
|
+
name?: string;
|
|
167
|
+
label?: string;
|
|
168
|
+
state: StateMachineState;
|
|
169
|
+
actions: StateMachineAction[];
|
|
170
|
+
};
|
|
171
|
+
export type StateMachineAction = {
|
|
172
|
+
kind: "dms-core.StateMachineAction";
|
|
173
|
+
name: string;
|
|
174
|
+
label: string;
|
|
175
|
+
};
|
|
176
|
+
export type ProcessState = {
|
|
177
|
+
kind: "dms-core.ui.ProcessState";
|
|
178
|
+
process: StateMachine["name"];
|
|
179
|
+
state: StateMachineState["name"];
|
|
180
|
+
label: StateMachineState["label"];
|
|
181
|
+
};
|
|
182
|
+
export type StateMachineState = {
|
|
183
|
+
kind: "dms-core.State";
|
|
184
|
+
name: string;
|
|
185
|
+
label: string;
|
|
186
|
+
metadata: {
|
|
187
|
+
[key: string]: unknown;
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
export type StateMachineApplyAction = {
|
|
191
|
+
kind: typeof STATE_MACHINE_APPLY_ACTION;
|
|
192
|
+
inodeRefList: InodeRefList;
|
|
193
|
+
label: string;
|
|
194
|
+
name: string;
|
|
195
|
+
};
|
|
196
|
+
export type StateMachineActionResult = {
|
|
197
|
+
kind: "dms-core.StateMachineActionResult";
|
|
198
|
+
[key: string]: any;
|
|
199
|
+
};
|
|
200
|
+
export type TermRef = {
|
|
201
|
+
kind: typeof TERM_REF;
|
|
202
|
+
label: string | null;
|
|
203
|
+
name: string;
|
|
204
|
+
orderingWeight: number;
|
|
205
|
+
};
|
|
206
|
+
export type InodeType = {
|
|
207
|
+
kind: "dms-core.Type";
|
|
208
|
+
name: string;
|
|
209
|
+
label: string;
|
|
210
|
+
orderingWeight?: number;
|
|
211
|
+
colour: string;
|
|
212
|
+
oid?: string;
|
|
213
|
+
creationDate?: string;
|
|
214
|
+
modificationDate?: string;
|
|
215
|
+
termReferences?: TermRef[];
|
|
216
|
+
};
|
|
217
|
+
export type InodeTypeRef = Pick<InodeType, "name" | "label" | "orderingWeight" | "colour"> & {
|
|
218
|
+
kind: "dms-core.TypeRef";
|
|
219
|
+
};
|
|
220
|
+
export type TypeOrTemplate = InodeType | InodeTypeRef | TemplateRef;
|
|
221
|
+
export type DossierType = {
|
|
222
|
+
kind: typeof DOSSIER_TYPE;
|
|
223
|
+
dossierIdentifier: TermRef;
|
|
224
|
+
} & Omit<InodeType, "kind">;
|
|
225
|
+
export type InodeTypeList = {
|
|
226
|
+
kind: "dms-core.TypeList";
|
|
227
|
+
items: (InodeType | DossierType)[];
|
|
228
|
+
};
|
|
229
|
+
export type DmsAclGroup = {
|
|
230
|
+
kind: "dms-core.AclGroup";
|
|
231
|
+
inodeRef: InodeRef;
|
|
232
|
+
acls: DmsAcl[];
|
|
233
|
+
};
|
|
234
|
+
export type DmsAcl = {
|
|
235
|
+
kind: "dms-core.Acl";
|
|
236
|
+
additive: boolean;
|
|
237
|
+
inheritable: boolean;
|
|
238
|
+
principal: User | UserGroup;
|
|
239
|
+
operations: DmsAclOperation[];
|
|
240
|
+
};
|
|
241
|
+
export type DmsAclOperation = {
|
|
242
|
+
kind: "dms-core.Operation";
|
|
243
|
+
label: string;
|
|
244
|
+
name: string;
|
|
245
|
+
};
|
|
246
|
+
export type TemplateRef = {
|
|
247
|
+
kind: typeof TEMPLATE_REF;
|
|
248
|
+
name: InodeType["name"];
|
|
249
|
+
label: InodeType["label"];
|
|
250
|
+
orderingWeight: InodeType["orderingWeight"];
|
|
251
|
+
};
|
|
252
|
+
export type Property = {
|
|
253
|
+
kind: typeof PROPERTY;
|
|
254
|
+
name: string;
|
|
255
|
+
value: string | number | null;
|
|
256
|
+
};
|
|
257
|
+
export type PropertyList = {
|
|
258
|
+
kind: typeof PROPERTY_LIST;
|
|
259
|
+
items: Property[];
|
|
260
|
+
};
|
|
261
|
+
export type PropertiesComponent = {
|
|
262
|
+
kind: Exclude<(typeof UI)[keyof typeof UI], "dms-core.ui.component.Group">;
|
|
263
|
+
label: string;
|
|
264
|
+
name: string;
|
|
265
|
+
width?: number;
|
|
266
|
+
disabled?: boolean;
|
|
267
|
+
hidden?: boolean;
|
|
268
|
+
required?: boolean;
|
|
269
|
+
value?: string | number;
|
|
270
|
+
orderingWeight?: number;
|
|
271
|
+
datasourceName?: string;
|
|
272
|
+
};
|
|
273
|
+
export type PropertiesGroupList = {
|
|
274
|
+
kind: "dms-core.ui.component.GroupList";
|
|
275
|
+
items: PropertiesGroup[];
|
|
276
|
+
};
|
|
277
|
+
export type PropertiesGroup = {
|
|
278
|
+
kind: "dms-core.ui.component.Group";
|
|
279
|
+
components: PropertiesComponent[];
|
|
280
|
+
inodeRef: InodeRef;
|
|
281
|
+
typeRef: InodeTypeRef;
|
|
282
|
+
};
|
|
283
|
+
export type ValidationResult = {
|
|
284
|
+
kind: "dms-core.InodeValidationResultResource";
|
|
285
|
+
message: string;
|
|
286
|
+
validatorName: string;
|
|
287
|
+
validatorLabel: string;
|
|
288
|
+
valid: boolean;
|
|
289
|
+
};
|
|
290
|
+
export type ErrorResource = {
|
|
291
|
+
kind: "dms-core.Error";
|
|
292
|
+
name: string;
|
|
293
|
+
dmsInternalcode: number;
|
|
294
|
+
label: string;
|
|
295
|
+
timestamp: string;
|
|
296
|
+
correlationId: string;
|
|
297
|
+
description?: string;
|
|
298
|
+
systemInfos?: string;
|
|
299
|
+
stacktrace?: string;
|
|
300
|
+
conflictedId?: string;
|
|
301
|
+
};
|
|
302
|
+
export type NavigateOnCaseCreation = "case" | "disabled";
|
|
303
|
+
export type BusinessProcessRefList = {
|
|
304
|
+
kind: "dms-inodes-business-processes.BusinessProcessRefList";
|
|
305
|
+
items: BusinessProcess[];
|
|
306
|
+
};
|
|
307
|
+
export type BusinessProcess = BusinessProcessHumanTaskRef | BusinessProcessCaseRef;
|
|
308
|
+
export type BusinessProcessHumanTaskRef = {
|
|
309
|
+
kind: "dms-inodes-business-processes.BusinessProcessHumanTaskRef";
|
|
310
|
+
completedDate: string | null;
|
|
311
|
+
completedBy: string | null;
|
|
312
|
+
adhoc: boolean;
|
|
313
|
+
completionOutcome: string;
|
|
314
|
+
completionOutcomeLabel: string;
|
|
315
|
+
} & Pick<Task, "uri" | "oid" | "presentableId" | "definitionName" | "definitionLabel" | "creationDate" | "label" | "modificationDate" | "completionOutcome" | "status" | "caseRef">;
|
|
316
|
+
export type BusinessProcessCaseRef = {
|
|
317
|
+
kind: "dms-inodes-business-processes.BusinessProcessCaseRef";
|
|
318
|
+
} & Pick<Case, "uri" | "oid" | "presentableId" | "definitionName" | "definitionLabel" | "creationDate" | "modificationDate" | "status">;
|
|
319
|
+
export type BusinessProcessesCapabilities = {
|
|
320
|
+
canCreateCase: boolean;
|
|
321
|
+
canCreateCaseDeniedReason?: {
|
|
322
|
+
code: string;
|
|
323
|
+
text: string;
|
|
324
|
+
};
|
|
325
|
+
creatableCaseDefinitionNames: CaseDefinition["name"][];
|
|
326
|
+
creatableCaseDefinitionsNotAvailableReason?: {
|
|
327
|
+
code: string;
|
|
328
|
+
text: string;
|
|
329
|
+
};
|
|
330
|
+
canCreateTask: boolean;
|
|
331
|
+
canCreateTaskDeniedReason?: {
|
|
332
|
+
code: string;
|
|
333
|
+
text: string;
|
|
334
|
+
};
|
|
335
|
+
creatableTaskDefinitionNames: TaskDefinition["name"][];
|
|
336
|
+
creatableTaskDefinitionsNotAvailableReason?: {
|
|
337
|
+
code: string;
|
|
338
|
+
text: string;
|
|
339
|
+
};
|
|
340
|
+
};
|
|
341
|
+
export type VersionInfo = {
|
|
342
|
+
kind: "dms-core.VersionInfo";
|
|
343
|
+
version: number;
|
|
344
|
+
oid: string;
|
|
345
|
+
timestamp: string;
|
|
346
|
+
fileOid: string;
|
|
347
|
+
username: string;
|
|
348
|
+
firstname: string;
|
|
349
|
+
lastname: string;
|
|
350
|
+
};
|
|
351
|
+
export type VersionInfoList = {
|
|
352
|
+
kind: "dms-core.VersionInfoList";
|
|
353
|
+
items: VersionInfo[];
|
|
354
|
+
};
|
|
355
|
+
export type InodeState = {
|
|
356
|
+
[oid: Inode["oid"]]: {
|
|
357
|
+
item?: Inode;
|
|
358
|
+
versions?: VersionInfo[];
|
|
359
|
+
dossierOverview?: {
|
|
360
|
+
data: any;
|
|
361
|
+
template: any;
|
|
362
|
+
};
|
|
363
|
+
error?: any;
|
|
364
|
+
};
|
|
365
|
+
};
|
|
366
|
+
export type InodeEventList = {
|
|
367
|
+
kind: "acm.InodeEventList";
|
|
368
|
+
items: TimelineEvent[];
|
|
369
|
+
};
|
|
370
|
+
export type TopPanels = {
|
|
371
|
+
kind: "dms-core.ui.TopPanels";
|
|
372
|
+
name: string;
|
|
373
|
+
template: {
|
|
374
|
+
properties: {
|
|
375
|
+
key: string;
|
|
376
|
+
label: string;
|
|
377
|
+
}[];
|
|
378
|
+
};
|
|
379
|
+
};
|
|
380
|
+
/** Documentation : https://imtf.atlassian.net/wiki/spaces/FM/pages/530186290 */
|
|
381
|
+
export type InodeChangeStatus =
|
|
382
|
+
/**
|
|
383
|
+
* Targetted inode accepts all inode's types/templates or inodes don't have
|
|
384
|
+
* type/template and no type/template is forced
|
|
385
|
+
* -> Returns unchanged inodes
|
|
386
|
+
*/
|
|
387
|
+
"NO_CHANGES_NEEDED"
|
|
388
|
+
/** User doesn't have permission to assign types/templates */
|
|
389
|
+
| "NOT_PERMITTED"
|
|
390
|
+
/** Type is forced but there's no enabled types to assign */
|
|
391
|
+
| "NOT_ASSIGNABLE"
|
|
392
|
+
/**
|
|
393
|
+
* Folders cannot have their templates changed
|
|
394
|
+
* -> Return warning modal
|
|
395
|
+
*/
|
|
396
|
+
| "CANNOT_MODIFY_FOLDER_TEMPLATE"
|
|
397
|
+
/** Targetted inode doesn't accept and doesn't forces types but some files have types
|
|
398
|
+
* -> User has to confirm if he wants to remove the types
|
|
399
|
+
*/
|
|
400
|
+
| "REMOVE_TYPE_CONFIRMATION"
|
|
401
|
+
/** Targetted inode accepts and forces only one type
|
|
402
|
+
* -> ONLY_ONE_TYPE : Confirmation will be asked if moving
|
|
403
|
+
* -> ONLY_ONE_TYPE_UPLOAD : Inodes will be assigned to the only type accepted if uploading
|
|
404
|
+
*/
|
|
405
|
+
| "ONLY_ONE_TYPE" | "ONLY_ONE_TYPE_UPLOAD"
|
|
406
|
+
/** Targetted inode accepts multiple types (forced or not)
|
|
407
|
+
* -> ASSIGN_TYPE : User has to choose the type
|
|
408
|
+
* -> ASSIGN_TYPE_AND_PROPERTIES : If enablePropertiesUpload is true we display assignTypeAndPropertiesModal
|
|
409
|
+
*/
|
|
410
|
+
| "ASSIGN_TYPE" | "ASSIGN_TYPE_AND_PROPERTIES";
|
|
411
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ImmutableInode, Inode } from "../types";
|
|
2
|
+
export declare const immutableCan: Readonly<{
|
|
3
|
+
addFile(inode: unknown): boolean;
|
|
4
|
+
addFolder(inode: unknown): boolean;
|
|
5
|
+
createCase(inode: unknown): boolean;
|
|
6
|
+
assignType(inode: ImmutableInode, typeName: string): boolean;
|
|
7
|
+
viewPanels(inode: ImmutableInode, panelKey: string): boolean | string[];
|
|
8
|
+
}>;
|
|
9
|
+
declare const _default: Readonly<{
|
|
10
|
+
addFile(inode: unknown): boolean;
|
|
11
|
+
addFolder(inode: unknown): boolean;
|
|
12
|
+
createCase(inode: unknown): boolean;
|
|
13
|
+
assignType(inode: Inode, typeName: string): boolean | undefined;
|
|
14
|
+
viewPanels<K extends string | undefined = undefined>(inode: unknown, panelKey?: K): K extends string ? boolean : string[] | false;
|
|
15
|
+
}>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function getUrl(inodeOrToken: any): string | null;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { DOSSIER, FILE, FOLDER, TEMPLATE } from "../../../../core/constants/kinds";
|
|
2
|
+
import { Inode, InodeStack } from "../types";
|
|
3
|
+
export declare function isInodeKind(kind: string | undefined): boolean;
|
|
4
|
+
export declare function isInode(inode: unknown): inode is Inode;
|
|
5
|
+
export declare function isFolder(inode: unknown): inode is Inode<typeof FOLDER>;
|
|
6
|
+
export declare function isDossier(inode: unknown): inode is Inode<typeof DOSSIER>;
|
|
7
|
+
export declare function isTemplate(inode: unknown): inode is Inode<typeof TEMPLATE>;
|
|
8
|
+
export declare function isDeleted(inode: unknown): inode is Inode;
|
|
9
|
+
export declare function isFile(inode: unknown): inode is Inode<typeof FILE>;
|
|
10
|
+
export declare function isReadableImage(inode: unknown): inode is Inode<typeof FILE> & {
|
|
11
|
+
mimeType: "jpeg" | "png" | "gif" | "bmp";
|
|
12
|
+
};
|
|
13
|
+
export declare function isPDF(inode: unknown): inode is Inode<typeof FILE> & {
|
|
14
|
+
mimeType: "application/pdf";
|
|
15
|
+
};
|
|
16
|
+
export declare function isXML(inode: unknown): inode is Inode<typeof FILE> & {
|
|
17
|
+
mimeType: "text/xml" | "application/xml";
|
|
18
|
+
};
|
|
19
|
+
export declare function isJSON(inode: unknown): inode is Inode<typeof FILE> & {
|
|
20
|
+
mimeType: "application/json";
|
|
21
|
+
};
|
|
22
|
+
export declare function isText(inode: unknown): inode is Inode<typeof FILE> & {
|
|
23
|
+
mimeType: "text/plain";
|
|
24
|
+
};
|
|
25
|
+
export declare function isInodeStack(inode: unknown): inode is InodeStack;
|
|
26
|
+
export declare function isNotArchive(inode: unknown): inode is Inode & {
|
|
27
|
+
kind: typeof FILE;
|
|
28
|
+
uri: `${"neo4j"}${string}`;
|
|
29
|
+
};
|
|
30
|
+
declare const OFFICE_DOCUMENTS: string[];
|
|
31
|
+
export declare function isAnOfficeDocument(inode: unknown): inode is Inode & {
|
|
32
|
+
kind: typeof FILE;
|
|
33
|
+
mimeType: (typeof OFFICE_DOCUMENTS)[number];
|
|
34
|
+
};
|
|
35
|
+
export declare function isDisplayableFile(inode: unknown): inode is Inode & {
|
|
36
|
+
kind: typeof FILE | typeof FOLDER | typeof DOSSIER;
|
|
37
|
+
mimeType: "application/pdf" | "jpeg" | "png" | "gif" | "bmp" | "text/xml" | "application/xml" | "application/json" | "text/plain" | (typeof OFFICE_DOCUMENTS)[number];
|
|
38
|
+
};
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ImmutableInode } from "../types";
|
|
2
|
+
export declare function isImmutableInode(inode: unknown): inode is ImmutableInode;
|
|
3
|
+
export declare function isImmutableFolder(inode: any): inode is ImmutableInode;
|
|
4
|
+
export declare function isImmutableDossier(inode: any): inode is ImmutableInode;
|
|
5
|
+
export declare function isImmutableTemplate(inode: any): inode is ImmutableInode;
|
|
6
|
+
export declare function isImmutableDeleted(inode: any): inode is ImmutableInode;
|
|
7
|
+
export declare function isImmutableFile(inode: any): inode is ImmutableInode;
|
|
8
|
+
export declare function isImmutableReadableImage(inode: any): inode is ImmutableInode;
|
|
9
|
+
export declare function isImmutablePDF(inode: any): inode is ImmutableInode;
|
|
10
|
+
export declare function isImmutableXML(inode: any): inode is ImmutableInode;
|
|
11
|
+
export declare function isImmutableJSON(inode: any): inode is ImmutableInode;
|
|
12
|
+
export declare function isImmutableText(inode: any): inode is ImmutableInode;
|
|
13
|
+
export declare function isImmutableNotArchive(inode: any): inode is ImmutableInode;
|
|
14
|
+
export declare function isAnImmutableOfficeDocument(inode: any): inode is ImmutableInode;
|
|
15
|
+
export declare function isImmutableDisplayableFile(inode: any): inode is ImmutableInode;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Inode } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* Resolves unauthorized inodes by adding the parentOid to the item.
|
|
4
|
+
* This is needed because the parentOid is not returned by the API for unauthorized inodes.
|
|
5
|
+
* It was causing the inodes to not be well rendered in the tree view.
|
|
6
|
+
* @param items The array of inodes
|
|
7
|
+
* @param parentOid The parentOid to add to the unauthorized inodes
|
|
8
|
+
* @returns The array of inodes with the parentOid added
|
|
9
|
+
*/
|
|
10
|
+
declare const resolveUnauthorizedInodes: (items: Inode[], parentOid: string) => Inode[];
|
|
11
|
+
export default resolveUnauthorizedInodes;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sorts a particular key in each item by their ordering weights
|
|
3
|
+
* @param items The array of object
|
|
4
|
+
* @param keyToSort The key to sort in each item
|
|
5
|
+
*/
|
|
6
|
+
export declare function sortByOrderingWeight<T extends Record<string, any>, K extends keyof T>(items: T[], keyToSort: K): T[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SupportedItem } from "../App/types";
|
|
2
|
+
import { SidePanelInspectorDefinition } from "../Definitions/types";
|
|
3
|
+
import { InspectorModule, InspectorModuleDefinition, InspectorProps } from "./types";
|
|
4
|
+
type InspectorContextType = {
|
|
5
|
+
getModules: (item: SupportedItem, inspectorDefinitions: SidePanelInspectorDefinition[], rawItems: InspectorProps["rawItems"], scope: string | undefined) => InspectorModule[];
|
|
6
|
+
registerInspectors: (inspectors: InspectorModuleDefinition[]) => void;
|
|
7
|
+
activeTabName: string | undefined;
|
|
8
|
+
setActiveTabName: (name: string | undefined) => void;
|
|
9
|
+
};
|
|
10
|
+
declare const InspectorsContext: import("react").Context<InspectorContextType>;
|
|
11
|
+
export default InspectorsContext;
|