@imtf/dms-core 1.1.0-beta.6 → 7.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +75 -0
- package/core/components/ActionMenu/styles.d.ts +2 -4
- package/core/components/Chip/Chip.d.ts +1 -1
- package/core/components/CloseModalButton/CloseModalButton.d.ts +4 -0
- package/core/components/DatePicker/DatePicker.d.ts +4 -3
- package/core/components/FormattedMessage/index.d.ts +11 -0
- package/core/components/Inline/index.d.ts +8 -0
- package/core/components/ItemIcon/index.d.ts +1 -1
- package/core/components/NotFound/index.d.ts +4 -0
- package/core/components/Select/Select.d.ts +3 -3
- package/core/components/Tooltip/TooltipError.d.ts +4 -0
- package/core/components/dms-ui/Composer.d.ts +57 -0
- package/core/components/dms-ui/NewDatasourceAutocomplete.d.ts +18 -0
- package/core/components/dms-ui/constants.d.ts +1 -0
- package/core/components/dms-ui/default/DatasourceAutocomplete.d.ts +18 -0
- package/core/components/dms-ui/default/DatePicker.d.ts +17 -0
- package/core/components/dms-ui/default/Group.d.ts +19 -0
- package/core/components/dms-ui/default/NestedGroup.d.ts +7 -0
- package/core/components/dms-ui/default/NumberFormattedTexfield.d.ts +17 -0
- package/core/components/dms-ui/default/NumberTextfield.d.ts +3 -0
- package/core/components/dms-ui/default/RadioButton.d.ts +16 -0
- package/core/components/dms-ui/default/Select.d.ts +20 -0
- package/core/components/dms-ui/default/Textfield.d.ts +17 -0
- package/core/components/dms-ui/default/TwoDigitNumberFormattedTextfield.d.ts +3 -0
- package/core/components/dms-ui/{immutableDefault → default}/index.d.ts +2 -2
- package/core/components/dms-ui/facet/DatasourceAutocomplete.d.ts +13 -0
- package/core/components/dms-ui/facet/DateRangeSearcher.d.ts +18 -0
- package/core/components/dms-ui/facet/Facet.d.ts +11 -0
- package/core/components/dms-ui/facet/NumericRangePicker.d.ts +20 -0
- package/core/components/dms-ui/facet/Select.d.ts +13 -0
- package/core/components/dms-ui/facet/Textfield.d.ts +11 -0
- package/core/components/dms-ui/facet/TypePicker.d.ts +12 -0
- package/core/components/dms-ui/facet/styles.d.ts +9 -0
- package/core/components/dms-ui/messages.d.ts +12 -0
- package/core/components/dms-ui/types.d.ts +9 -1
- package/core/components/dms-ui/utils/getComponent.d.ts +20 -0
- package/core/components/dms-ui/utils/type-guards.d.ts +4 -0
- package/core/constants/apps.d.ts +0 -5
- package/core/constants/permissions.d.ts +1 -0
- package/core/containers/DataGrid/constants.d.ts +2 -0
- package/core/containers/DataGrid/types.d.ts +14 -2
- package/core/containers/DataGrid/utils/crossTabSync.d.ts +13 -0
- package/core/containers/EntityDocuments/components/Accordion.d.ts +1 -1
- package/core/containers/EntityDocuments/components/Document.d.ts +4 -4
- package/core/containers/EntityDocuments/components/DocumentLabel.d.ts +8 -6
- package/core/containers/NotificationCenter/slice.d.ts +1 -1
- package/core/containers/PDFTronViewer/components/LightViewer/config.d.ts +0 -4
- package/core/containers/PDFTronViewer/messages.d.ts +8 -0
- package/core/containers/SearchDataGrid/types.d.ts +1 -6
- package/core/providers/App/actions.d.ts +4 -10
- package/core/providers/App/constants.d.ts +1 -1
- package/core/providers/App/hooks/useApplicationSettings.d.ts +15 -1
- package/core/providers/App/hooks/useDownload.d.ts +6 -0
- package/core/providers/App/hooks/useSettings.d.ts +4 -4
- package/core/providers/App/hooks/useTriggerItems.d.ts +2 -0
- package/core/providers/App/messages.d.ts +4 -0
- package/core/providers/App/reducer.d.ts +1 -1
- package/core/providers/App/service.d.ts +48 -17
- package/core/providers/App/types.d.ts +9 -0
- package/core/providers/App/utils/convertOldUserSettings.d.ts +1 -1
- package/core/providers/App/utils/convertTreeviewFields.d.ts +19 -1
- package/core/providers/Authentication/hooks/useAuth.d.ts +1 -1
- package/core/providers/Authentication/service.d.ts +11 -3
- package/core/providers/Authentication/types.d.ts +5 -7
- package/core/providers/Cases/actions.d.ts +6 -0
- package/core/providers/Cases/service.d.ts +70 -33
- package/core/providers/Cases/types.d.ts +3 -0
- package/core/providers/Cases/utils/common.d.ts +2 -0
- package/core/providers/Ccm/constants.d.ts +6 -0
- package/core/providers/Ccm/types.d.ts +1 -1
- package/core/providers/Ccm/utils/isAccount.d.ts +1 -1
- package/core/providers/Ccm/utils/isClient.d.ts +1 -1
- package/core/providers/Ccm/utils/isClientGroup.d.ts +1 -1
- package/core/providers/Ccm/utils/isHouseholdEntity.d.ts +1 -1
- package/core/providers/DataGrid/Context.d.ts +4 -0
- package/core/providers/Definitions/service.d.ts +48 -19
- package/core/providers/Definitions/types.d.ts +24 -1
- package/core/providers/DropZone/Context.d.ts +2 -2
- package/core/providers/Inodes/actions.d.ts +26 -1
- package/core/providers/Inodes/constants.d.ts +9 -2
- package/core/providers/Inodes/hooks/useInodeByOid.d.ts +1 -1
- package/core/providers/Inodes/hooks/useInodesByOids.d.ts +1 -1
- package/core/providers/Inodes/messages.d.ts +37 -1
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/AccordionItem.d.ts +4 -2
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/ModalContent.d.ts +6 -6
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/index.d.ts +1 -1
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/messages.d.ts +4 -0
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/types.d.ts +1 -1
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/addInodeOidToName.d.ts +2 -16
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/convertToUIPropertiesGroup.d.ts +3 -0
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/getDefaultValuesFromProperties.d.ts +7 -0
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/replaceComponentsWithConfig.d.ts +1 -1
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/resolveProperties.d.ts +8 -0
- package/core/providers/Inodes/service.d.ts +141 -65
- package/core/providers/Inodes/type-guards.d.ts +2 -0
- package/core/providers/Inodes/types.d.ts +8 -5
- package/core/providers/Inodes/utils/can.d.ts +1 -0
- package/core/providers/Inodes/utils/getUrl.d.ts +2 -1
- package/core/providers/Inodes/utils/resolveInodeTypes.d.ts +4 -2
- package/core/providers/Inodes/utils/validatePropertiesForm.d.ts +2 -0
- package/core/providers/Inspectors/Context.d.ts +3 -0
- package/core/providers/Inspectors/types.d.ts +5 -5
- package/core/providers/MdmGraph/actions.d.ts +5 -1
- package/core/providers/MdmGraph/constants.d.ts +6 -0
- package/core/providers/MdmGraph/service.d.ts +56 -31
- package/core/providers/MdmGraph/types.d.ts +10 -0
- package/core/providers/Modal/hooks/useModal.d.ts +1 -0
- package/core/providers/Modal/slice.d.ts +3 -0
- package/core/providers/Modal/types.d.ts +1 -0
- package/core/providers/Plugins/hooks/app/useSystemNotification.d.ts +8 -3
- package/core/providers/Plugins/hooks/tasks/useActions.d.ts +2 -2
- package/core/providers/Plugins/hooks/tasks/useTaskProcessing.d.ts +8 -0
- package/core/providers/Plugins/pluginRegistry.d.ts +21 -12
- package/core/providers/Plugins/types/componentPlugins.d.ts +2 -2
- package/core/providers/Plugins/withComponentPlugin.d.ts +2 -2
- package/core/providers/Search/service.d.ts +10 -4
- package/core/providers/Search/types.d.ts +0 -38
- package/core/providers/Tasks/Context.d.ts +8 -5
- package/core/providers/Tasks/constants.d.ts +2 -1
- package/core/providers/Tasks/service.d.ts +43 -23
- package/core/providers/Tasks/types.d.ts +7 -0
- package/core/providers/Tasks/utils/isDocumentTask.d.ts +2 -0
- package/core/providers/Uploader/Context.d.ts +1 -1
- package/core/providers/User/hooks/useAgencies.d.ts +16 -0
- package/core/providers/User/hooks/useIsAgencyEnabled.d.ts +5 -0
- package/core/providers/User/saga.d.ts +1 -2
- package/core/providers/User/service.d.ts +18 -0
- package/core/providers/User/types.d.ts +21 -0
- package/core/services/constants.d.ts +1 -0
- package/core/services/index.d.ts +6 -6
- package/core/services/localStorage.d.ts +1 -0
- package/core/theme/theme.base.d.ts +302 -21
- package/core/theme/theme.lightMode.d.ts +34 -170
- package/core/utils/common.d.ts +15 -0
- package/core/utils/string.d.ts +2 -1
- package/package.json +1 -1
- package/reducers.d.ts +2 -3
- package/store.d.ts +12 -18
- package/vendor/@imtf/react-components/components/ActivityDetail/ActivityDetail.d.ts +2 -30
- package/vendor/@imtf/react-components/components/CounterStackedBar/CounterStackedBar.d.ts +1 -27
- package/vendor/@imtf/react-components/components/Error/Error.d.ts +2 -55
- package/vendor/@imtf/react-components/components/InfiniteScroll/InfiniteScroll.d.ts +0 -4
- package/vendor/@imtf/react-components/components/Line/Line.d.ts +1 -38
- package/vendor/@imtf/react-components/components/Loader/Loader.d.ts +1 -22
- package/vendor/@imtf/react-components/components/Menu/Menu.d.ts +1 -9
- package/vendor/@imtf/react-components/components/NoContent/NoContent.d.ts +1 -10
- package/vendor/@imtf/react-components/components/Notification/Notification.d.ts +2 -55
- package/vendor/@imtf/react-components/components/ProgressCircleBar/ProgressCircleBar.d.ts +2 -43
- package/vendor/@imtf/react-components/components/Scroller/Scroller.d.ts +1 -19
- package/vendor/@imtf/react-components/components/SearchBar/SearchBar.d.ts +2 -57
- package/vendor/@imtf/react-components/components/Timeline/Timeline.d.ts +1 -14
- package/vendor/@imtf/react-components/components/Timeline/TimelineItem.d.ts +2 -46
- package/vendor/@imtf/react-components/components/ViewMore/ViewMore.d.ts +1 -24
- package/vendor/@imtf/react-components/components/ViewMoreCard/ViewMoreCard.d.ts +2 -73
- package/vendor/@imtf/react-components/components/ViewMoreCard/utils.d.ts +2 -2
- package/vendor/@imtf/react-components/components/index.d.ts +0 -14
- package/vendor/@imtf/react-components/index.d.ts +0 -1
- package/vendor/@imtf/react-components/utils/common.d.ts +1 -4
- package/vendor/@imtf/react-components/utils/constants.d.ts +0 -1
- package/core/components/Select/ListboxComponent.d.ts +0 -5
- package/core/components/dms-ui/DatasourceAutocomplete.d.ts +0 -14
- package/core/components/dms-ui/ImmutableComposer.d.ts +0 -15
- package/core/components/dms-ui/immutableDefault/DatasourceAutocomplete.d.ts +0 -19
- package/core/components/dms-ui/immutableDefault/DatePicker.d.ts +0 -15
- package/core/components/dms-ui/immutableDefault/Group.d.ts +0 -16
- package/core/components/dms-ui/immutableDefault/NumberFormattedTexfield.d.ts +0 -14
- package/core/components/dms-ui/immutableDefault/NumberTextfield.d.ts +0 -2
- package/core/components/dms-ui/immutableDefault/RadioButton.d.ts +0 -19
- package/core/components/dms-ui/immutableDefault/Select.d.ts +0 -19
- package/core/components/dms-ui/immutableDefault/Switch.d.ts +0 -19
- package/core/components/dms-ui/immutableDefault/Textfield.d.ts +0 -21
- package/core/components/dms-ui/immutableFacet/DatasourceAutocomplete.d.ts +0 -13
- package/core/components/dms-ui/immutableFacet/DateRangeSearcher.d.ts +0 -14
- package/core/components/dms-ui/immutableFacet/Facet.d.ts +0 -23
- package/core/components/dms-ui/immutableFacet/NumericRangePicker.d.ts +0 -14
- package/core/components/dms-ui/immutableFacet/Select.d.ts +0 -13
- package/core/components/dms-ui/immutableFacet/Textfield.d.ts +0 -13
- package/core/components/dms-ui/immutableFacet/TypePicker.d.ts +0 -13
- package/core/components/dms-ui/immutableFacet/styles.d.ts +0 -5
- package/core/components/dms-ui/utils/getImmutableComponent.d.ts +0 -19
- package/core/containers/EntityDocuments/styles.d.ts +0 -10
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/getInodesRequiredFieldNames.d.ts +0 -10
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/getInvalidInodeOids.d.ts +0 -10
- package/core/providers/SystemNotification/constants.d.ts +0 -3
- package/core/providers/SystemNotification/slice.d.ts +0 -9
- package/core/providers/SystemNotification/useSystemNotification.d.ts +0 -6
- package/core/utils/immutable.d.ts +0 -2
- package/vendor/@imtf/react-components/components/BasicNotification/BasicNotification.d.ts +0 -52
- package/vendor/@imtf/react-components/components/BasicNotification/ids.d.ts +0 -1
- package/vendor/@imtf/react-components/components/BasicNotification/index.d.ts +0 -1
- package/vendor/@imtf/react-components/components/Breadcrumb/Breadcrumb.d.ts +0 -36
- package/vendor/@imtf/react-components/components/Breadcrumb/ids.d.ts +0 -1
- package/vendor/@imtf/react-components/components/Breadcrumb/index.d.ts +0 -1
- package/vendor/@imtf/react-components/components/Chip/Chip.d.ts +0 -41
- package/vendor/@imtf/react-components/components/Chip/ids.d.ts +0 -1
- package/vendor/@imtf/react-components/components/Chip/index.d.ts +0 -1
- package/vendor/@imtf/react-components/components/Chip/messages.d.ts +0 -7
- package/vendor/@imtf/react-components/components/Chip/utils.d.ts +0 -14
- package/vendor/@imtf/react-components/components/DebounceField/DebounceField.d.ts +0 -35
- package/vendor/@imtf/react-components/components/DebounceField/ids.d.ts +0 -1
- package/vendor/@imtf/react-components/components/DebounceField/index.d.ts +0 -1
- package/vendor/@imtf/react-components/components/DetailList/DetailList.d.ts +0 -24
- package/vendor/@imtf/react-components/components/DetailList/ids.d.ts +0 -1
- package/vendor/@imtf/react-components/components/DetailList/index.d.ts +0 -1
- package/vendor/@imtf/react-components/components/DetailTree/DetailTree.d.ts +0 -30
- package/vendor/@imtf/react-components/components/DetailTree/ids.d.ts +0 -1
- package/vendor/@imtf/react-components/components/DetailTree/index.d.ts +0 -1
- package/vendor/@imtf/react-components/components/ErrorCatcher/ErrorCatcher.d.ts +0 -40
- package/vendor/@imtf/react-components/components/ErrorCatcher/ids.d.ts +0 -1
- package/vendor/@imtf/react-components/components/ErrorCatcher/index.d.ts +0 -1
- package/vendor/@imtf/react-components/components/InfoCard/InfoCard.d.ts +0 -64
- package/vendor/@imtf/react-components/components/InfoCard/index.d.ts +0 -1
- package/vendor/@imtf/react-components/components/Inline/Inline.d.ts +0 -19
- package/vendor/@imtf/react-components/components/Inline/ids.d.ts +0 -1
- package/vendor/@imtf/react-components/components/Inline/index.d.ts +0 -1
- package/vendor/@imtf/react-components/components/Internal/FormattedMessage.d.ts +0 -11
- package/vendor/@imtf/react-components/components/MenuSelect/MenuSelect.d.ts +0 -43
- package/vendor/@imtf/react-components/components/MenuSelect/ids.d.ts +0 -1
- package/vendor/@imtf/react-components/components/MenuSelect/index.d.ts +0 -1
- package/vendor/@imtf/react-components/components/Navipath/Navipath.d.ts +0 -52
- package/vendor/@imtf/react-components/components/Navipath/ids.d.ts +0 -1
- package/vendor/@imtf/react-components/components/Navipath/index.d.ts +0 -1
- package/vendor/@imtf/react-components/components/RippleEffect/RippleEffect.d.ts +0 -33
- package/vendor/@imtf/react-components/components/RippleEffect/ids.d.ts +0 -1
- package/vendor/@imtf/react-components/components/RippleEffect/index.d.ts +0 -1
- package/vendor/@imtf/react-components/components/Stats/Stats.d.ts +0 -39
- package/vendor/@imtf/react-components/components/Stats/ids.d.ts +0 -1
- package/vendor/@imtf/react-components/components/Stats/index.d.ts +0 -1
- package/vendor/@imtf/react-components/components/TitleContent/TitleContent.d.ts +0 -25
- package/vendor/@imtf/react-components/components/TitleContent/ids.d.ts +0 -1
- package/vendor/@imtf/react-components/components/TitleContent/index.d.ts +0 -1
- package/vendor/@imtf/react-components/hooks/index.d.ts +0 -1
- package/vendor/@imtf/react-components/hooks/useResponsiveBreakpoints.d.ts +0 -13
- package/vendor/@imtf/react-components/utils/resizeObserver.d.ts +0 -1
- /package/core/components/dms-ui/{immutableFacet → facet}/index.d.ts +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ComponentType } from "react";
|
|
1
|
+
import { ComponentType, ReactElement } from "react";
|
|
2
2
|
import { MessageDescriptor } from "react-intl";
|
|
3
3
|
import inspectors from "@/core/constants/inspectors.json";
|
|
4
|
+
import { Row } from "../../../core/containers/DataGrid/types";
|
|
4
5
|
import { SupportedItem } from "../App/types";
|
|
5
6
|
import { SidePanelInspectorDefinition } from "../Definitions/types";
|
|
6
|
-
import { SearchResultRow } from "../Search/types";
|
|
7
7
|
type ValueOf<T> = T[keyof T];
|
|
8
8
|
type NestedValues<T> = ValueOf<{
|
|
9
9
|
[K in keyof T]: ValueOf<T[K]>;
|
|
@@ -13,7 +13,7 @@ export interface InspectorProps<Item = SupportedItem> {
|
|
|
13
13
|
loading?: boolean;
|
|
14
14
|
sticky: boolean;
|
|
15
15
|
item: Item;
|
|
16
|
-
rawItems?:
|
|
16
|
+
rawItems?: Row[];
|
|
17
17
|
module?: InspectorModule;
|
|
18
18
|
definition: SidePanelInspectorDefinition;
|
|
19
19
|
}
|
|
@@ -26,7 +26,7 @@ export type InspectorModuleDefinition<T = SupportedItem> = {
|
|
|
26
26
|
renderActions?: (item: T, params: {
|
|
27
27
|
expanded: boolean;
|
|
28
28
|
definition: SidePanelInspectorDefinition;
|
|
29
|
-
}) =>
|
|
29
|
+
}) => ReactElement;
|
|
30
30
|
};
|
|
31
31
|
/**
|
|
32
32
|
* Returned by the getModules function of the InspectorsContext
|
|
@@ -35,6 +35,6 @@ export type InspectorModule = Omit<InspectorModuleDefinition, "condition" | "ren
|
|
|
35
35
|
condition: boolean | Promise<boolean>;
|
|
36
36
|
key: string;
|
|
37
37
|
definition: SidePanelInspectorDefinition;
|
|
38
|
-
renderActions?: (expanded: boolean) =>
|
|
38
|
+
renderActions?: (expanded: boolean) => ReactElement;
|
|
39
39
|
};
|
|
40
40
|
export {};
|
|
@@ -8,6 +8,7 @@ export function editEntityModal(taskOid: any, props: any): {
|
|
|
8
8
|
correlationId: string;
|
|
9
9
|
fullWidth: boolean;
|
|
10
10
|
maxWidth: import("@mui/material").DialogProps["maxWidth"];
|
|
11
|
+
minHeight: number | string;
|
|
11
12
|
blocker: boolean;
|
|
12
13
|
onConfirm: (...args: any[]) => void;
|
|
13
14
|
onCancel: () => void;
|
|
@@ -97,7 +98,7 @@ export function attachFilesError(error: any, payload: any): {
|
|
|
97
98
|
payload: any;
|
|
98
99
|
error: any;
|
|
99
100
|
};
|
|
100
|
-
export function showFieldHistory(fieldHistory: any, fieldLabel: any, entity: any, updateHighlights: any): {
|
|
101
|
+
export function showFieldHistory(fieldHistory: any, fieldLabel: any, entity: any, updateHighlights: any, uiWidget: any): {
|
|
101
102
|
payload: {
|
|
102
103
|
type: string;
|
|
103
104
|
props: Partial<{
|
|
@@ -107,6 +108,7 @@ export function showFieldHistory(fieldHistory: any, fieldLabel: any, entity: any
|
|
|
107
108
|
correlationId: string;
|
|
108
109
|
fullWidth: boolean;
|
|
109
110
|
maxWidth: import("@mui/material").DialogProps["maxWidth"];
|
|
111
|
+
minHeight: number | string;
|
|
110
112
|
blocker: boolean;
|
|
111
113
|
onConfirm: (...args: any[]) => void;
|
|
112
114
|
onCancel: () => void;
|
|
@@ -125,6 +127,7 @@ export function showFieldComments(taskOid: any, entityOid: any, fieldName: any,
|
|
|
125
127
|
correlationId: string;
|
|
126
128
|
fullWidth: boolean;
|
|
127
129
|
maxWidth: import("@mui/material").DialogProps["maxWidth"];
|
|
130
|
+
minHeight: number | string;
|
|
128
131
|
blocker: boolean;
|
|
129
132
|
onConfirm: (...args: any[]) => void;
|
|
130
133
|
onCancel: () => void;
|
|
@@ -143,6 +146,7 @@ export function generateEntityReportModal(entity: any): {
|
|
|
143
146
|
correlationId: string;
|
|
144
147
|
fullWidth: boolean;
|
|
145
148
|
maxWidth: import("@mui/material").DialogProps["maxWidth"];
|
|
149
|
+
minHeight: number | string;
|
|
146
150
|
blocker: boolean;
|
|
147
151
|
onConfirm: (...args: any[]) => void;
|
|
148
152
|
onCancel: () => void;
|
|
@@ -26,3 +26,9 @@ export declare const INSPECTORS: {
|
|
|
26
26
|
export declare const ACTIONS: {
|
|
27
27
|
readonly GENERATE_ENTITY_REPORT: "GENERATE_ENTITY_REPORT";
|
|
28
28
|
};
|
|
29
|
+
export declare const MDM_ENTITY_CREATED: string;
|
|
30
|
+
export declare const MDM_ENTITY_UPDATED: string;
|
|
31
|
+
export declare const EVENT_CONTEXT: {
|
|
32
|
+
readonly COPIED: "COPIED";
|
|
33
|
+
};
|
|
34
|
+
export declare const AUDIT_EMPTY_VALUE = "--";
|
|
@@ -1,73 +1,98 @@
|
|
|
1
|
-
import { FileInode } from "
|
|
1
|
+
import { FileInode } from "../../../core/providers/Inodes/types";
|
|
2
2
|
export declare const paths: Readonly<{
|
|
3
3
|
readonly caseData: (params?: {
|
|
4
|
-
|
|
4
|
+
[x: string]: string | null | undefined;
|
|
5
|
+
caseOid: string;
|
|
5
6
|
} | undefined) => string;
|
|
6
7
|
readonly taskData: (params?: {
|
|
7
|
-
|
|
8
|
+
[x: string]: string | null | undefined;
|
|
9
|
+
taskOid: string;
|
|
8
10
|
} | undefined) => string;
|
|
9
11
|
readonly entityRelatedMasterData: (params?: {
|
|
10
|
-
|
|
12
|
+
[x: string]: string | null | undefined;
|
|
13
|
+
entityOid: string;
|
|
11
14
|
} | undefined) => string;
|
|
12
15
|
readonly entityRelatedCase: (params?: {
|
|
13
|
-
|
|
16
|
+
[x: string]: string | null | undefined;
|
|
17
|
+
entityOid: string;
|
|
14
18
|
} | undefined) => string;
|
|
15
19
|
readonly linkEntity: (params?: {
|
|
16
|
-
|
|
17
|
-
|
|
20
|
+
[x: string]: string | null | undefined;
|
|
21
|
+
taskOid: string;
|
|
22
|
+
entityOid: string;
|
|
18
23
|
} | undefined) => string;
|
|
19
24
|
readonly importData: (params?: {
|
|
20
|
-
|
|
25
|
+
[x: string]: string | null | undefined;
|
|
26
|
+
taskOid: string;
|
|
21
27
|
} | undefined) => string;
|
|
22
28
|
readonly createEntity: (params?: {
|
|
23
|
-
|
|
29
|
+
[x: string]: string | null | undefined;
|
|
30
|
+
taskOid: string;
|
|
24
31
|
} | undefined) => string;
|
|
25
32
|
readonly entities: (params?: {
|
|
26
|
-
|
|
33
|
+
[x: string]: string | null | undefined;
|
|
34
|
+
taskOid: string;
|
|
27
35
|
} | undefined) => string;
|
|
28
36
|
readonly caseEntity: (params?: {
|
|
29
|
-
|
|
30
|
-
|
|
37
|
+
[x: string]: string | null | undefined;
|
|
38
|
+
caseOid: string;
|
|
39
|
+
entityOid: string;
|
|
31
40
|
} | undefined) => string;
|
|
32
41
|
readonly taskEntity: (params?: {
|
|
33
|
-
|
|
34
|
-
|
|
42
|
+
[x: string]: string | null | undefined;
|
|
43
|
+
taskOid: string;
|
|
44
|
+
entityOid: string;
|
|
35
45
|
} | undefined) => string;
|
|
36
46
|
readonly createRelation: (params?: {
|
|
37
|
-
|
|
47
|
+
[x: string]: string | null | undefined;
|
|
48
|
+
taskOid: string;
|
|
38
49
|
} | undefined) => string;
|
|
39
50
|
readonly relation: (params?: {
|
|
40
|
-
|
|
41
|
-
|
|
51
|
+
[x: string]: string | null | undefined;
|
|
52
|
+
taskOid: string;
|
|
53
|
+
relationOid: string;
|
|
42
54
|
} | undefined) => string;
|
|
43
55
|
readonly relationDefinitions: (params?: {
|
|
44
|
-
|
|
56
|
+
[x: string]: string | null | undefined;
|
|
57
|
+
entityType: string;
|
|
45
58
|
} | undefined) => string;
|
|
46
59
|
readonly taskEntityFiles: (params?: {
|
|
47
|
-
|
|
48
|
-
|
|
60
|
+
[x: string]: string | null | undefined;
|
|
61
|
+
taskOid: string;
|
|
62
|
+
entityOid: string;
|
|
49
63
|
} | undefined) => string;
|
|
50
64
|
readonly taskEntityAttachFiles: (params?: {
|
|
51
|
-
|
|
52
|
-
|
|
65
|
+
[x: string]: string | null | undefined;
|
|
66
|
+
taskOid: string;
|
|
67
|
+
entityOid: string;
|
|
53
68
|
} | undefined) => string;
|
|
54
69
|
readonly caseEntityFiles: (params?: {
|
|
55
|
-
|
|
56
|
-
|
|
70
|
+
[x: string]: string | null | undefined;
|
|
71
|
+
caseOid: string;
|
|
72
|
+
entityOid: string;
|
|
57
73
|
} | undefined) => string;
|
|
58
74
|
readonly caseEntityAttachFiles: (params?: {
|
|
59
|
-
|
|
60
|
-
|
|
75
|
+
[x: string]: string | null | undefined;
|
|
76
|
+
caseOid: string;
|
|
77
|
+
entityOid: string;
|
|
61
78
|
} | undefined) => string;
|
|
62
79
|
readonly entityHistory: (params?: {
|
|
63
|
-
|
|
80
|
+
[x: string]: string | null | undefined;
|
|
81
|
+
entityOid: string;
|
|
64
82
|
} | undefined) => string;
|
|
65
83
|
readonly entityComments: (params?: {
|
|
66
|
-
|
|
84
|
+
[x: string]: string | null | undefined;
|
|
85
|
+
entityOid: string;
|
|
86
|
+
} | undefined) => string;
|
|
87
|
+
readonly fieldComment: (params?: {
|
|
88
|
+
[x: string]: string | null | undefined;
|
|
89
|
+
} | undefined) => string;
|
|
90
|
+
readonly entityReports: (params?: {
|
|
91
|
+
[x: string]: string | null | undefined;
|
|
92
|
+
} | undefined) => string;
|
|
93
|
+
readonly generateEntity: (params?: {
|
|
94
|
+
[x: string]: string | null | undefined;
|
|
67
95
|
} | undefined) => string;
|
|
68
|
-
readonly fieldComment: (params?: {} | undefined) => string;
|
|
69
|
-
readonly entityReports: (params?: {} | undefined) => string;
|
|
70
|
-
readonly generateEntity: (params?: {} | undefined) => string;
|
|
71
96
|
}>;
|
|
72
97
|
export declare function createFiles(taskOid: string, entityOid: string, inodes: FileInode[]): Promise<any[]>;
|
|
73
98
|
export declare function uploadFiles(taskOid: string, entityOid: string, files: File[], inodes: FileInode[], params: Record<string, unknown>): Promise<any[]>;
|
|
@@ -16,6 +16,11 @@ export type Field = {
|
|
|
16
16
|
export type MdmValue = string | number | boolean | null | MdmValue[] | {
|
|
17
17
|
[key: string]: MdmValue;
|
|
18
18
|
} | undefined;
|
|
19
|
+
export type EventChips = {
|
|
20
|
+
caseType?: string;
|
|
21
|
+
casePresentableId?: string;
|
|
22
|
+
lastUpdatedBy?: string;
|
|
23
|
+
};
|
|
19
24
|
export type EntityData = Record<string, MdmValue>;
|
|
20
25
|
export type Entity<Type extends string = string, Data extends EntityData = EntityData> = {
|
|
21
26
|
kind: typeof MDM_ENTITY;
|
|
@@ -156,6 +161,11 @@ export type History = {
|
|
|
156
161
|
previousValue: any;
|
|
157
162
|
timestamp: string;
|
|
158
163
|
username: string;
|
|
164
|
+
type?: string;
|
|
165
|
+
context?: string;
|
|
166
|
+
scope?: string;
|
|
167
|
+
casePresentableId?: string;
|
|
168
|
+
lastUpdatedBy?: string;
|
|
159
169
|
};
|
|
160
170
|
export type FieldHistory = {
|
|
161
171
|
[field: string]: History[] | FieldHistory;
|
|
@@ -8,6 +8,7 @@ type ValidateModalOptions = {
|
|
|
8
8
|
message?: ReactNode;
|
|
9
9
|
disableCancel?: boolean;
|
|
10
10
|
correlationId?: string;
|
|
11
|
+
disableBackdropClick?: boolean;
|
|
11
12
|
};
|
|
12
13
|
type AssignTypeModalOptions = AssignTypeModalType;
|
|
13
14
|
type AssignTypeAndPropertiesModalOptions = AssignTypeAndPropertiesModalType;
|
|
@@ -13,6 +13,7 @@ export declare const showModal: import("@reduxjs/toolkit").ActionCreatorWithPrep
|
|
|
13
13
|
correlationId: string;
|
|
14
14
|
fullWidth: boolean;
|
|
15
15
|
maxWidth: import("@mui/material").DialogProps["maxWidth"];
|
|
16
|
+
minHeight: number | string;
|
|
16
17
|
blocker: boolean;
|
|
17
18
|
onConfirm: (...args: any[]) => void;
|
|
18
19
|
onCancel: () => void;
|
|
@@ -26,6 +27,7 @@ export declare const showModal: import("@reduxjs/toolkit").ActionCreatorWithPrep
|
|
|
26
27
|
correlationId: string;
|
|
27
28
|
fullWidth: boolean;
|
|
28
29
|
maxWidth: import("@mui/material").DialogProps["maxWidth"];
|
|
30
|
+
minHeight: number | string;
|
|
29
31
|
blocker: boolean;
|
|
30
32
|
onConfirm: (...args: any[]) => void;
|
|
31
33
|
onCancel: () => void;
|
|
@@ -38,6 +40,7 @@ export declare const showModal: import("@reduxjs/toolkit").ActionCreatorWithPrep
|
|
|
38
40
|
correlationId: string;
|
|
39
41
|
fullWidth: boolean;
|
|
40
42
|
maxWidth: import("@mui/material").DialogProps["maxWidth"];
|
|
43
|
+
minHeight: number | string;
|
|
41
44
|
blocker: boolean;
|
|
42
45
|
onConfirm: (...args: any[]) => void;
|
|
43
46
|
onCancel: () => void;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ToasterProps as PanacheToasterProps } from "@imtf/panache";
|
|
2
|
+
type ToasterProps = PanacheToasterProps & {
|
|
3
|
+
type: "normal" | "action" | "success" | "info" | "warning" | "error" | "loading" | "default";
|
|
4
|
+
};
|
|
2
5
|
declare const useSystemNotification: () => {
|
|
3
|
-
notify: (message:
|
|
4
|
-
updateNotification: (
|
|
6
|
+
notify: (message: (() => React.ReactNode) | React.ReactNode, options: ToasterProps) => string | number;
|
|
7
|
+
updateNotification: (toastId: string, options: ToasterProps & {
|
|
8
|
+
message: (() => React.ReactNode) | React.ReactNode;
|
|
9
|
+
}) => string | number;
|
|
5
10
|
};
|
|
6
11
|
export default useSystemNotification;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Exposes the task's processing status (eg., an outcome is being
|
|
3
|
+
* submitted) to profile plugins, so their controls can disable
|
|
4
|
+
* themselves while the task is busy and stay editable otherwise.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useTaskProcessing(): {
|
|
7
|
+
isBusy: boolean;
|
|
8
|
+
};
|
|
@@ -16,6 +16,7 @@ import { InspectorProps } from "../Inspectors/types";
|
|
|
16
16
|
import { Task } from "../Tasks/types";
|
|
17
17
|
import { TYPES } from "./constants";
|
|
18
18
|
import { useTaskCompletionDisabling } from "./hooks/tasks/useTaskCompletionDisabling";
|
|
19
|
+
import { useTaskProcessing } from "./hooks/tasks/useTaskProcessing";
|
|
19
20
|
import { CategoryFilterProps, EntitiesWrapperProps, EntityDocumentsComponentProps, EntityDocumentsDocumentLabelProps, EntityDocumentsDocumentProps, EntityDocumentsTypeLabelProps, EntityEditModalEditForm, MdmEditorEntityRowActionsProps } from "./types/componentPlugins";
|
|
20
21
|
type PLUGIN_TYPES = (typeof TYPES)[keyof typeof TYPES];
|
|
21
22
|
declare const plugins: {
|
|
@@ -43,14 +44,14 @@ declare class PluginRegistry {
|
|
|
43
44
|
ENVIRONNEMENT: string;
|
|
44
45
|
service: {
|
|
45
46
|
service: {
|
|
46
|
-
get: <T = any, R = import("axios").AxiosResponse<T, any>, D = any>(url: string, config?: import("axios").AxiosRequestConfig<D>) => Promise<R> & {
|
|
47
|
+
get: <T = any, R = import("axios").AxiosResponse<T, any, {}>, D = any>(url: string, config?: import("axios").AxiosRequestConfig<D>) => Promise<R> & {
|
|
47
48
|
"@@redux-saga/CANCEL_PROMISE"?: import("axios").Canceler;
|
|
48
49
|
};
|
|
49
|
-
post: <T = any, Data = any>(url: string, data?: Data, config?: import("axios").AxiosRequestConfig) => Promise<import("axios").AxiosResponse<T, any>>;
|
|
50
|
-
put: <T = any, Data = any>(url: string, data?: Data, config?: import("axios").AxiosRequestConfig) => Promise<import("axios").AxiosResponse<T, any>>;
|
|
51
|
-
patch: <T = any, Data = any>(url: string, data: Data, config?: import("axios").AxiosRequestConfig) => Promise<import("axios").AxiosResponse<T, any>>;
|
|
52
|
-
delete: <Data = any>(url: string, data?: Data, config?: import("axios").AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
53
|
-
head: (url: string, config?: import("axios").AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
50
|
+
post: <T = any, Data = any>(url: string, data?: Data, config?: import("axios").AxiosRequestConfig) => Promise<import("axios").AxiosResponse<T, any, {}>>;
|
|
51
|
+
put: <T = any, Data = any>(url: string, data?: Data, config?: import("axios").AxiosRequestConfig) => Promise<import("axios").AxiosResponse<T, any, {}>>;
|
|
52
|
+
patch: <T = any, Data = any>(url: string, data: Data, config?: import("axios").AxiosRequestConfig) => Promise<import("axios").AxiosResponse<T, any, {}>>;
|
|
53
|
+
delete: <Data = any>(url: string, data?: Data, config?: import("axios").AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
54
|
+
head: (url: string, config?: import("axios").AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
54
55
|
};
|
|
55
56
|
api: typeof api;
|
|
56
57
|
CancelToken: import("axios").CancelTokenStatic;
|
|
@@ -71,10 +72,16 @@ declare class PluginRegistry {
|
|
|
71
72
|
}>) => import("swr").SWRResponse<import("../Definitions/types").Codetypes, any, any>;
|
|
72
73
|
useIntl: typeof useIntl;
|
|
73
74
|
useNotification: () => {
|
|
74
|
-
notify: (message:
|
|
75
|
-
|
|
75
|
+
notify: (message: (() => React.ReactNode) | React.ReactNode, options: import("sonner").ToasterProps & {
|
|
76
|
+
type: "normal" | "action" | "success" | "info" | "warning" | "error" | "loading" | "default";
|
|
77
|
+
}) => string | number;
|
|
78
|
+
updateNotification: (toastId: string, options: (import("sonner").ToasterProps & {
|
|
79
|
+
type: "normal" | "action" | "success" | "info" | "warning" | "error" | "loading" | "default";
|
|
80
|
+
}) & {
|
|
81
|
+
message: (() => React.ReactNode) | React.ReactNode;
|
|
82
|
+
}) => string | number;
|
|
76
83
|
};
|
|
77
|
-
useParameter: <T>(key: "translations" | "language" | "navigateOnTaskCompletion" | "contentType" | "locales" | "enableCaseCreation" | "shouldReloadResults" | "reloadResultsIntervals" | "userInactivitySessionTimeout" | "showDropzone" | "theme" | "productNameInSidebar" | "disableTaskAutoClaim" | "useRelativeDateWheneverPossible" | "customerRelatedEntitiesTemplates" | "
|
|
84
|
+
useParameter: <T>(key: "translations" | "language" | "navigateOnTaskCompletion" | "contentType" | "locales" | "enableCaseCreation" | "shouldReloadResults" | "reloadResultsIntervals" | "userInactivitySessionTimeout" | "showDropzone" | "theme" | "productNameInSidebar" | "disableTaskAutoClaim" | "useRelativeDateWheneverPossible" | "customerRelatedEntitiesTemplates" | "documentTaskFilterFoldersByFileType" | "canOpenRelatedAlertFromInspector" | "propertyPanelOverrides" | "additionalTransactionsColumns" | "millisecondsToHideUploadProgress" | "inodeTimelineExportLimit" | "searchExportLimit" | "customStamps" | "openEachInodeInNewTabOrWindowLimit" | "useSolrDocumentIcons" | "loadFirstFromQuickSearch" | "enableDossierCreation" | "enableBarcodeProcessing" | "enablePropertiesUpload" | "navigateOnCaseCreation" | "authenticationWorkflow" | "hitListLimit" | "inodeListLimit" | "appBarColor" | "displayEnvironmentName" | "autosaveDebounce" | "displayFullnameInDocuments" | "enableDigitalSignatureVerification" | "certificateRevocationListProxyServerUrl" | "companionScanDPIResolution" | "enableCommentLinks" | "companionMultipleEditionLimit" | "enableCompanionDefaultDuplex" | "enableCompanionDefaultColor" | "disableNotifications" | "openViewerCommentsByDefault" | "enableStampsCreation" | "enableStandardStamps" | "hideDisabledPropertiesAtUpload" | "displaySearchBarInToolbar" | "restrictAnnotationEditingToOwner" | "displayUnauthorizedItems" | "propertiesBySearchContext" | "signatureWidth", defaultValue?: T) => T | undefined;
|
|
78
85
|
/**
|
|
79
86
|
* @deprecated
|
|
80
87
|
*/
|
|
@@ -124,8 +131,8 @@ declare class PluginRegistry {
|
|
|
124
131
|
inodes: any;
|
|
125
132
|
};
|
|
126
133
|
};
|
|
127
|
-
reloadQuestionnaire: () =>
|
|
128
|
-
reloadData: () =>
|
|
134
|
+
reloadQuestionnaire: () => void;
|
|
135
|
+
reloadData: () => void;
|
|
129
136
|
};
|
|
130
137
|
useData: <EntityType extends import("../MdmGraph/types").Entity>(taskOid: string | undefined, config?: import("swr").SWRConfiguration) => import("swr").SWRResponse<import("../Tasks/types").TaskData<EntityType>, any, import("swr").SWRConfiguration<import("../Tasks/types").TaskData<EntityType>, any, import("swr").BareFetcher<import("../Tasks/types").TaskData<EntityType>>> | undefined>;
|
|
131
138
|
useEntitiesMutate: (taskOid: string) => import("swr/mutation").SWRMutationResponse<{
|
|
@@ -168,6 +175,7 @@ declare class PluginRegistry {
|
|
|
168
175
|
};
|
|
169
176
|
useTask: (taskOid: string | undefined) => import("swr").SWRResponse<Task, any, any>;
|
|
170
177
|
useTaskCompletionDisabling: typeof useTaskCompletionDisabling;
|
|
178
|
+
useTaskProcessing: typeof useTaskProcessing;
|
|
171
179
|
};
|
|
172
180
|
mdm: {
|
|
173
181
|
useEntity: (taskOid: any, entityOid: any) => {
|
|
@@ -331,13 +339,14 @@ declare class PluginRegistry {
|
|
|
331
339
|
readonly ADD_FILE: "INODE_ADD_FILE";
|
|
332
340
|
readonly ADD_FOLDER: "INODE_ADD_FOLDER";
|
|
333
341
|
readonly ADD_COMMENT: "INODE_ADD_COMMENT";
|
|
342
|
+
readonly VIEW_COMMENTS: "INODE_VIEW_COMMENTS";
|
|
334
343
|
readonly RESTORE: "INODE_RESTORE";
|
|
335
344
|
readonly COMPOSE: "INODE_COMPOSE";
|
|
336
345
|
readonly QUICK_LOOK: "INODE_QUICK_LOOK";
|
|
337
346
|
readonly QUICK_LOOK_MERGE: "INODE_QUICK_LOOK_MERGE";
|
|
338
347
|
readonly CREATE_CASE: "INODE_CREATE_CASE";
|
|
339
348
|
readonly MERGE_PDF: "INODE_MERGE_PDF";
|
|
340
|
-
readonly
|
|
349
|
+
readonly CREATE_TASK_OR_CASE: "INODE_CREATE_TASK_OR_CASE";
|
|
341
350
|
readonly DELETE: "INODES_DELETE";
|
|
342
351
|
readonly ADD_TO_DROP_ZONE: "INODES_ADD_TO_DROP_ZONE";
|
|
343
352
|
readonly LINK_FROM_DROP_ZONE: "INODES_LINK_FROM_DROP_ZONE";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
1
|
+
import { ReactElement, ReactNode } from "react";
|
|
2
2
|
import { FormDefinition, MdmEditorDefinition } from "../../Definitions/types";
|
|
3
3
|
import { Inode } from "../../Inodes/types";
|
|
4
4
|
import { Entity } from "../../MdmGraph/types";
|
|
5
5
|
import type { EntityDocumentsComponentProps as EntityDocumentsComponentCoreProps } from "../../../../core/containers/EntityDocuments/EntityDocumentsComponent";
|
|
6
6
|
import { FileType } from "../../../../core/containers/EntityDocuments/types";
|
|
7
7
|
export type ComponentPluginProps<P> = P & {
|
|
8
|
-
defaultRender: (props?: Partial<P>) =>
|
|
8
|
+
defaultRender: (props?: Partial<P>) => ReactElement;
|
|
9
9
|
};
|
|
10
10
|
export type MdmEditorEntityRowActionsProps = ComponentPluginProps<{
|
|
11
11
|
isDisabled: boolean;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementType } from "react";
|
|
2
2
|
/**
|
|
3
3
|
* This component can be used to replace a component
|
|
4
4
|
* but from the "consumer" side (i.e. the side that uses the component)
|
|
5
5
|
*/
|
|
6
6
|
export declare const WithComponentPlugin: <P extends Record<string, unknown>>(props: {
|
|
7
|
-
component:
|
|
7
|
+
component: ElementType;
|
|
8
8
|
/**
|
|
9
9
|
* The identifier of the component. It must be unique.
|
|
10
10
|
* First segment is the type of the component
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { RawSearchResults, SearchResult } from "./types";
|
|
2
2
|
export declare const paths: Readonly<{
|
|
3
|
-
readonly search: (params?: {
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
readonly search: (params?: {
|
|
4
|
+
[x: string]: string | null | undefined;
|
|
5
|
+
} | undefined) => string;
|
|
6
|
+
readonly exportCSV: (params?: {
|
|
7
|
+
[x: string]: string | null | undefined;
|
|
8
|
+
} | undefined) => string;
|
|
9
|
+
readonly rawSearch: (params?: {
|
|
10
|
+
[x: string]: string | null | undefined;
|
|
11
|
+
} | undefined) => string;
|
|
6
12
|
}>;
|
|
7
13
|
export declare function search(query: Record<string, unknown>, params?: Record<string, unknown>): Promise<SearchResult>;
|
|
8
|
-
export declare function exportResults(query: Record<string, unknown>, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
14
|
+
export declare function exportResults(query: Record<string, unknown>, params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
9
15
|
export declare function rawSearch<HitItem>(query: Record<string, unknown>, params?: Record<string, unknown>): Promise<RawSearchResults<HitItem>>;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { AlertProps } from "@mui/material";
|
|
2
2
|
import { ColumnDefinition } from "../../../core/containers/DataGrid/types";
|
|
3
3
|
import { TableRow } from "../../../core/containers/SearchDataGrid/types";
|
|
4
|
-
import { SupportedItem } from "../App/types";
|
|
5
4
|
import { SearchMask } from "../Definitions/types";
|
|
6
|
-
import { InodeRefList, InodeType, ProcessState } from "../Inodes/types";
|
|
7
5
|
export type ValueField = {
|
|
8
6
|
kind: "dms-indexation.search.ValueField";
|
|
9
7
|
name: string;
|
|
@@ -60,39 +58,3 @@ export type QueryParams = {
|
|
|
60
58
|
rootOid?: string;
|
|
61
59
|
highlight?: SearchMask["defaultHighlight"];
|
|
62
60
|
};
|
|
63
|
-
export type SearchResultRowCell = {
|
|
64
|
-
kind: "dms-core.ui.ItemTableCell" | "dms-core.ui.StringTableCell";
|
|
65
|
-
value: string;
|
|
66
|
-
} | {
|
|
67
|
-
kind: "dms-core.ui.LongTableCell" | "dms-core.ui.DoubleTableCell";
|
|
68
|
-
value: number;
|
|
69
|
-
} | {
|
|
70
|
-
kind: "dms-core.ui.TypeTableCell";
|
|
71
|
-
value: InodeType;
|
|
72
|
-
} | {
|
|
73
|
-
kind: "dms-core.ui.PathTableCell";
|
|
74
|
-
value: InodeRefList;
|
|
75
|
-
} | {
|
|
76
|
-
kind: "dms-core.ui.ProcessStateTableCell";
|
|
77
|
-
value: ProcessState;
|
|
78
|
-
};
|
|
79
|
-
type LoadMoreItem = {
|
|
80
|
-
kind: "dms-core.ui.LoadMoreButton";
|
|
81
|
-
oid: string;
|
|
82
|
-
parentOid: string;
|
|
83
|
-
offset: number;
|
|
84
|
-
};
|
|
85
|
-
export type Row<I = SupportedItem | LoadMoreItem> = {
|
|
86
|
-
item: I;
|
|
87
|
-
status?: string;
|
|
88
|
-
depth?: number;
|
|
89
|
-
isExpandable?: boolean;
|
|
90
|
-
expanded?: boolean;
|
|
91
|
-
};
|
|
92
|
-
export type SearchResultRow = {
|
|
93
|
-
cells: SearchResultRowCell[];
|
|
94
|
-
highlights: string[];
|
|
95
|
-
kind: "dms-core.ui.TableRow";
|
|
96
|
-
status: "valid" | string;
|
|
97
|
-
} & Row;
|
|
98
|
-
export {};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { Dispatch, SetStateAction } from "react";
|
|
2
2
|
import { UpdateHighlightMode } from "./types";
|
|
3
|
+
export type TaskDataHistory = {
|
|
4
|
+
mode: UpdateHighlightMode;
|
|
5
|
+
fromDate: string | null;
|
|
6
|
+
toDate?: string | null;
|
|
7
|
+
manuallySet?: boolean;
|
|
8
|
+
};
|
|
3
9
|
export type TasksContext = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
fromDate: string | null;
|
|
7
|
-
} | undefined;
|
|
8
|
-
setTaskDataHistoryFrom: (mode: UpdateHighlightMode, fromDate: string | null) => void;
|
|
10
|
+
taskDataHistory: TaskDataHistory | undefined;
|
|
11
|
+
setTaskDataHistory: React.Dispatch<React.SetStateAction<TaskDataHistory | undefined>>;
|
|
9
12
|
/**
|
|
10
13
|
* - idle: The task is not being processed.
|
|
11
14
|
* - busy: Some action is being performed on the task.
|
|
@@ -43,6 +43,7 @@ export declare const INSPECTORS: {
|
|
|
43
43
|
TASK_DATA: string;
|
|
44
44
|
TASK_DATAVISUALIZER: string;
|
|
45
45
|
TASK_COMMENTS: string;
|
|
46
|
+
TASK_PREVIEW: string;
|
|
46
47
|
};
|
|
47
48
|
export declare const ACTIONS: {
|
|
48
49
|
readonly CLAIM_TASK: "CLAIM_TASK";
|
|
@@ -66,5 +67,5 @@ export declare const STATE_TYPES: {
|
|
|
66
67
|
readonly UNKNOW: "unknow";
|
|
67
68
|
readonly REVIEWED: "reviewed";
|
|
68
69
|
};
|
|
69
|
-
export declare const DOCUMENT_TASK_TYPES:
|
|
70
|
+
export declare const DOCUMENT_TASK_TYPES: readonly ["documents", "documents_filing", "documents_approval"];
|
|
70
71
|
export declare const EVENT_FILTERS: Readonly<EventFilter[]>;
|