@imtf/dms-core 1.1.0-beta.3 → 1.1.0-beta.5
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/core/containers/DataGrid/types.d.ts +2 -0
- package/core/containers/EntityDocuments/components/DocumentList.d.ts +3 -2
- package/core/containers/EntityDocuments/types.d.ts +1 -0
- package/core/providers/App/hooks/useSettings.d.ts +3 -3
- package/core/providers/App/hooks/useUserSetting.d.ts +9 -1
- package/core/providers/App/hooks/useUserStorage.d.ts +2 -2
- package/core/providers/App/utils/convertOldUserSettings.d.ts +1 -1
- package/core/providers/App/utils/convertTreeviewFields.d.ts +1 -0
- package/core/providers/Cases/hooks/useCaseDocumentTypes.d.ts +3 -3
- package/core/providers/Inodes/types.d.ts +2 -1
- package/core/providers/Plugins/types/componentPlugins.d.ts +3 -1
- package/core/providers/Tasks/service.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Inode } from "../../../providers/Inodes/types";
|
|
2
2
|
import { Entity } from "../../../providers/MdmGraph/types";
|
|
3
|
+
import { FileType } from "../types";
|
|
3
4
|
type DocumentListProps = {
|
|
4
5
|
label?: string;
|
|
5
|
-
|
|
6
|
+
type: FileType;
|
|
6
7
|
disabled?: boolean;
|
|
7
8
|
entity?: Entity;
|
|
8
9
|
errors?: string[];
|
|
@@ -14,5 +15,5 @@ type DocumentListProps = {
|
|
|
14
15
|
onDragStart?: (document: any) => void;
|
|
15
16
|
onDragEnd?: (document: any) => void;
|
|
16
17
|
};
|
|
17
|
-
declare const _default: import("react").MemoExoticComponent<({ label,
|
|
18
|
+
declare const _default: import("react").MemoExoticComponent<({ label, type, disabled, isTypeAssignable, entity, errors, isRequired, documents, canDrop: canDropOnDocuments, onDrop, onDragStart, onDragEnd, }: DocumentListProps) => import("react/jsx-runtime").JSX.Element>;
|
|
18
19
|
export default _default;
|
|
@@ -2,10 +2,10 @@ import { AxiosError } from "axios";
|
|
|
2
2
|
import { Settings } from "../types";
|
|
3
3
|
type Arg = Settings | ((previousState: Settings) => Settings);
|
|
4
4
|
declare const useSettings: () => {
|
|
5
|
-
data: Partial<Record<"translations" | "language" | "appearance" | "isInspectorVisible" | "inspectorWidth" | "inspectorExpandedModules" | "inspectorStickyModules" | "defaultDossierViewMode" | "savedFilters" | "documentZoom" | "signatureOrientation" | "transactionActiveProfiles" | "navigateOnTaskCompletion" | "draggableModalSizing" | "draggableModalCoordinates" | "defaultModule" | "commentMaxLength" | "inodeNameMaxLength" | "applicationSortOrder" | "externalApplications" | "treeviewFields" | "contentType" | "locales" | "enableCaseCreation" | "shouldReloadResults" | "reloadResultsIntervals" | "userInactivitySessionTimeout" | "showDropzone" | "theme" | "productNameInSidebar" | "disableTaskAutoClaim" | "useRelativeDateWheneverPossible" | "customerRelatedEntitiesTemplates" | "documentTaskSearchContextName" | "canOpenRelatedAlertFromInspector" | "propertyPanelOverrides" | "additionalTransactionsColumns" | "millisecondsToHideUploadProgress" | "inodeTimelineExportLimit" | "searchExportLimit" | "customStamps" | "openEachInodeInNewTabOrWindowLimit" | "useSolrDocumentIcons" | "loadFirstFromQuickSearch" | "enableDossierCreation" | "enableBarcodeProcessing" | "enablePropertiesUpload" | "navigateOnCaseCreation" | "authenticationWorkflow" | "hitListLimit" | "inodeListLimit" | "appBarColor" | "displayEnvironmentName" | "autosaveDebounce" | "displayFullnameInDocuments" | "enableDigitalSignatureVerification" | "certificateRevocationListProxyServerUrl" | "companionScanDPIResolution", any>> | undefined;
|
|
6
|
-
trigger: import("swr/mutation").TriggerWithArgs<Partial<Record<"translations" | "language" | "appearance" | "isInspectorVisible" | "inspectorWidth" | "inspectorExpandedModules" | "inspectorStickyModules" | "defaultDossierViewMode" | "savedFilters" | "documentZoom" | "signatureOrientation" | "transactionActiveProfiles" | "navigateOnTaskCompletion" | "draggableModalSizing" | "draggableModalCoordinates" | "defaultModule" | "commentMaxLength" | "inodeNameMaxLength" | "applicationSortOrder" | "externalApplications" | "treeviewFields" | "contentType" | "locales" | "enableCaseCreation" | "shouldReloadResults" | "reloadResultsIntervals" | "userInactivitySessionTimeout" | "showDropzone" | "theme" | "productNameInSidebar" | "disableTaskAutoClaim" | "useRelativeDateWheneverPossible" | "customerRelatedEntitiesTemplates" | "documentTaskSearchContextName" | "canOpenRelatedAlertFromInspector" | "propertyPanelOverrides" | "additionalTransactionsColumns" | "millisecondsToHideUploadProgress" | "inodeTimelineExportLimit" | "searchExportLimit" | "customStamps" | "openEachInodeInNewTabOrWindowLimit" | "useSolrDocumentIcons" | "loadFirstFromQuickSearch" | "enableDossierCreation" | "enableBarcodeProcessing" | "enablePropertiesUpload" | "navigateOnCaseCreation" | "authenticationWorkflow" | "hitListLimit" | "inodeListLimit" | "appBarColor" | "displayEnvironmentName" | "autosaveDebounce" | "displayFullnameInDocuments" | "enableDigitalSignatureVerification" | "certificateRevocationListProxyServerUrl" | "companionScanDPIResolution", any>>, AxiosError<unknown, any>, string, Arg>;
|
|
5
|
+
data: Partial<Record<"translations" | "language" | "appearance" | "isInspectorVisible" | "inspectorWidth" | "inspectorExpandedModules" | "inspectorStickyModules" | "defaultDossierViewMode" | "savedFilters" | "documentZoom" | "signatureOrientation" | "transactionActiveProfiles" | "navigateOnTaskCompletion" | "draggableModalSizing" | "draggableModalCoordinates" | "defaultModule" | "commentMaxLength" | "inodeNameMaxLength" | "applicationSortOrder" | "externalApplications" | "treeviewFields" | "dataGridOrders" | "contentType" | "locales" | "enableCaseCreation" | "shouldReloadResults" | "reloadResultsIntervals" | "userInactivitySessionTimeout" | "showDropzone" | "theme" | "productNameInSidebar" | "disableTaskAutoClaim" | "useRelativeDateWheneverPossible" | "customerRelatedEntitiesTemplates" | "documentTaskSearchContextName" | "canOpenRelatedAlertFromInspector" | "propertyPanelOverrides" | "additionalTransactionsColumns" | "millisecondsToHideUploadProgress" | "inodeTimelineExportLimit" | "searchExportLimit" | "customStamps" | "openEachInodeInNewTabOrWindowLimit" | "useSolrDocumentIcons" | "loadFirstFromQuickSearch" | "enableDossierCreation" | "enableBarcodeProcessing" | "enablePropertiesUpload" | "navigateOnCaseCreation" | "authenticationWorkflow" | "hitListLimit" | "inodeListLimit" | "appBarColor" | "displayEnvironmentName" | "autosaveDebounce" | "displayFullnameInDocuments" | "enableDigitalSignatureVerification" | "certificateRevocationListProxyServerUrl" | "companionScanDPIResolution", any>> | undefined;
|
|
6
|
+
trigger: import("swr/mutation").TriggerWithArgs<Partial<Record<"translations" | "language" | "appearance" | "isInspectorVisible" | "inspectorWidth" | "inspectorExpandedModules" | "inspectorStickyModules" | "defaultDossierViewMode" | "savedFilters" | "documentZoom" | "signatureOrientation" | "transactionActiveProfiles" | "navigateOnTaskCompletion" | "draggableModalSizing" | "draggableModalCoordinates" | "defaultModule" | "commentMaxLength" | "inodeNameMaxLength" | "applicationSortOrder" | "externalApplications" | "treeviewFields" | "dataGridOrders" | "contentType" | "locales" | "enableCaseCreation" | "shouldReloadResults" | "reloadResultsIntervals" | "userInactivitySessionTimeout" | "showDropzone" | "theme" | "productNameInSidebar" | "disableTaskAutoClaim" | "useRelativeDateWheneverPossible" | "customerRelatedEntitiesTemplates" | "documentTaskSearchContextName" | "canOpenRelatedAlertFromInspector" | "propertyPanelOverrides" | "additionalTransactionsColumns" | "millisecondsToHideUploadProgress" | "inodeTimelineExportLimit" | "searchExportLimit" | "customStamps" | "openEachInodeInNewTabOrWindowLimit" | "useSolrDocumentIcons" | "loadFirstFromQuickSearch" | "enableDossierCreation" | "enableBarcodeProcessing" | "enablePropertiesUpload" | "navigateOnCaseCreation" | "authenticationWorkflow" | "hitListLimit" | "inodeListLimit" | "appBarColor" | "displayEnvironmentName" | "autosaveDebounce" | "displayFullnameInDocuments" | "enableDigitalSignatureVerification" | "certificateRevocationListProxyServerUrl" | "companionScanDPIResolution", any>>, AxiosError<unknown, any>, string, Arg>;
|
|
7
7
|
error: any;
|
|
8
|
-
mutate: import("swr").KeyedMutator<Partial<Record<"translations" | "language" | "appearance" | "isInspectorVisible" | "inspectorWidth" | "inspectorExpandedModules" | "inspectorStickyModules" | "defaultDossierViewMode" | "savedFilters" | "documentZoom" | "signatureOrientation" | "transactionActiveProfiles" | "navigateOnTaskCompletion" | "draggableModalSizing" | "draggableModalCoordinates" | "defaultModule" | "commentMaxLength" | "inodeNameMaxLength" | "applicationSortOrder" | "externalApplications" | "treeviewFields" | "contentType" | "locales" | "enableCaseCreation" | "shouldReloadResults" | "reloadResultsIntervals" | "userInactivitySessionTimeout" | "showDropzone" | "theme" | "productNameInSidebar" | "disableTaskAutoClaim" | "useRelativeDateWheneverPossible" | "customerRelatedEntitiesTemplates" | "documentTaskSearchContextName" | "canOpenRelatedAlertFromInspector" | "propertyPanelOverrides" | "additionalTransactionsColumns" | "millisecondsToHideUploadProgress" | "inodeTimelineExportLimit" | "searchExportLimit" | "customStamps" | "openEachInodeInNewTabOrWindowLimit" | "useSolrDocumentIcons" | "loadFirstFromQuickSearch" | "enableDossierCreation" | "enableBarcodeProcessing" | "enablePropertiesUpload" | "navigateOnCaseCreation" | "authenticationWorkflow" | "hitListLimit" | "inodeListLimit" | "appBarColor" | "displayEnvironmentName" | "autosaveDebounce" | "displayFullnameInDocuments" | "enableDigitalSignatureVerification" | "certificateRevocationListProxyServerUrl" | "companionScanDPIResolution", any>>>;
|
|
8
|
+
mutate: import("swr").KeyedMutator<Partial<Record<"translations" | "language" | "appearance" | "isInspectorVisible" | "inspectorWidth" | "inspectorExpandedModules" | "inspectorStickyModules" | "defaultDossierViewMode" | "savedFilters" | "documentZoom" | "signatureOrientation" | "transactionActiveProfiles" | "navigateOnTaskCompletion" | "draggableModalSizing" | "draggableModalCoordinates" | "defaultModule" | "commentMaxLength" | "inodeNameMaxLength" | "applicationSortOrder" | "externalApplications" | "treeviewFields" | "dataGridOrders" | "contentType" | "locales" | "enableCaseCreation" | "shouldReloadResults" | "reloadResultsIntervals" | "userInactivitySessionTimeout" | "showDropzone" | "theme" | "productNameInSidebar" | "disableTaskAutoClaim" | "useRelativeDateWheneverPossible" | "customerRelatedEntitiesTemplates" | "documentTaskSearchContextName" | "canOpenRelatedAlertFromInspector" | "propertyPanelOverrides" | "additionalTransactionsColumns" | "millisecondsToHideUploadProgress" | "inodeTimelineExportLimit" | "searchExportLimit" | "customStamps" | "openEachInodeInNewTabOrWindowLimit" | "useSolrDocumentIcons" | "loadFirstFromQuickSearch" | "enableDossierCreation" | "enableBarcodeProcessing" | "enablePropertiesUpload" | "navigateOnCaseCreation" | "authenticationWorkflow" | "hitListLimit" | "inodeListLimit" | "appBarColor" | "displayEnvironmentName" | "autosaveDebounce" | "displayFullnameInDocuments" | "enableDigitalSignatureVerification" | "certificateRevocationListProxyServerUrl" | "companionScanDPIResolution", any>>>;
|
|
9
9
|
isValidating: boolean;
|
|
10
10
|
isLoading: boolean;
|
|
11
11
|
};
|
|
@@ -2,5 +2,13 @@ import webappParamsSchema from "@/schemas/jsonSchemas/webapp_params.json";
|
|
|
2
2
|
import settingsSchema from "@/features/User/settings.schema.json";
|
|
3
3
|
type SettingsKeys = keyof typeof settingsSchema.properties;
|
|
4
4
|
type ParamKeys = keyof typeof webappParamsSchema.properties;
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Hook to get and set user settings.
|
|
7
|
+
* The key can be a single key or an array of keys.
|
|
8
|
+
* The defaultValue can be a single value or an array of values.
|
|
9
|
+
*
|
|
10
|
+
* If you're using an array of keys, the defaultValue should be an array of values.
|
|
11
|
+
* If you're using a function to set the value, the value can be a single value or an array of values.
|
|
12
|
+
*/
|
|
13
|
+
declare const useUserSetting: <T>(key: SettingsKeys | ParamKeys | (SettingsKeys | ParamKeys)[], defaultValue?: T | T[]) => [T, (value: T | ((n: T) => T)) => void];
|
|
6
14
|
export default useUserSetting;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { UserSettingValue } from "
|
|
1
|
+
import { UserSettingValue } from "../../../../core/providers/User/types";
|
|
2
2
|
declare const useUserStorage: () => {
|
|
3
3
|
userStorage: Record<string, any>;
|
|
4
|
-
setUserStorage: (key: string, newValue: UserSettingValue) => void;
|
|
4
|
+
setUserStorage: (key: string | string[], newValue: UserSettingValue | UserSettingValue[]) => void;
|
|
5
5
|
clearUserStorage: () => void;
|
|
6
6
|
};
|
|
7
7
|
export default useUserStorage;
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
* This function and its usage will be removed once the user settings are
|
|
8
8
|
* migrated to the backend.
|
|
9
9
|
*/
|
|
10
|
-
declare const convertOldUserSettings: (oldSettings: Record<string, any>) => Partial<Record<"translations" | "language" | "appearance" | "isInspectorVisible" | "inspectorWidth" | "inspectorExpandedModules" | "inspectorStickyModules" | "defaultDossierViewMode" | "savedFilters" | "documentZoom" | "signatureOrientation" | "transactionActiveProfiles" | "navigateOnTaskCompletion" | "draggableModalSizing" | "draggableModalCoordinates" | "defaultModule" | "commentMaxLength" | "inodeNameMaxLength" | "applicationSortOrder" | "externalApplications" | "treeviewFields" | "contentType" | "locales" | "enableCaseCreation" | "shouldReloadResults" | "reloadResultsIntervals" | "userInactivitySessionTimeout" | "showDropzone" | "theme" | "productNameInSidebar" | "disableTaskAutoClaim" | "useRelativeDateWheneverPossible" | "customerRelatedEntitiesTemplates" | "documentTaskSearchContextName" | "canOpenRelatedAlertFromInspector" | "propertyPanelOverrides" | "additionalTransactionsColumns" | "millisecondsToHideUploadProgress" | "inodeTimelineExportLimit" | "searchExportLimit" | "customStamps" | "openEachInodeInNewTabOrWindowLimit" | "useSolrDocumentIcons" | "loadFirstFromQuickSearch" | "enableDossierCreation" | "enableBarcodeProcessing" | "enablePropertiesUpload" | "navigateOnCaseCreation" | "authenticationWorkflow" | "hitListLimit" | "inodeListLimit" | "appBarColor" | "displayEnvironmentName" | "autosaveDebounce" | "displayFullnameInDocuments" | "enableDigitalSignatureVerification" | "certificateRevocationListProxyServerUrl" | "companionScanDPIResolution", any>>;
|
|
10
|
+
declare const convertOldUserSettings: (oldSettings: Record<string, any>) => Partial<Record<"translations" | "language" | "appearance" | "isInspectorVisible" | "inspectorWidth" | "inspectorExpandedModules" | "inspectorStickyModules" | "defaultDossierViewMode" | "savedFilters" | "documentZoom" | "signatureOrientation" | "transactionActiveProfiles" | "navigateOnTaskCompletion" | "draggableModalSizing" | "draggableModalCoordinates" | "defaultModule" | "commentMaxLength" | "inodeNameMaxLength" | "applicationSortOrder" | "externalApplications" | "treeviewFields" | "dataGridOrders" | "contentType" | "locales" | "enableCaseCreation" | "shouldReloadResults" | "reloadResultsIntervals" | "userInactivitySessionTimeout" | "showDropzone" | "theme" | "productNameInSidebar" | "disableTaskAutoClaim" | "useRelativeDateWheneverPossible" | "customerRelatedEntitiesTemplates" | "documentTaskSearchContextName" | "canOpenRelatedAlertFromInspector" | "propertyPanelOverrides" | "additionalTransactionsColumns" | "millisecondsToHideUploadProgress" | "inodeTimelineExportLimit" | "searchExportLimit" | "customStamps" | "openEachInodeInNewTabOrWindowLimit" | "useSolrDocumentIcons" | "loadFirstFromQuickSearch" | "enableDossierCreation" | "enableBarcodeProcessing" | "enablePropertiesUpload" | "navigateOnCaseCreation" | "authenticationWorkflow" | "hitListLimit" | "inodeListLimit" | "appBarColor" | "displayEnvironmentName" | "autosaveDebounce" | "displayFullnameInDocuments" | "enableDigitalSignatureVerification" | "certificateRevocationListProxyServerUrl" | "companionScanDPIResolution", any>>;
|
|
11
11
|
export default convertOldUserSettings;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Task } from "../../Tasks/types";
|
|
2
|
+
import { Case } from "../types";
|
|
3
3
|
export type CaseDocumentType = {
|
|
4
4
|
canAddFile: boolean;
|
|
5
5
|
canAddFileWithoutBinary: boolean;
|
|
6
6
|
kind: "acm.DocumentType";
|
|
7
7
|
type: string;
|
|
8
8
|
};
|
|
9
|
-
declare const useCaseDocumentTypes: (item:
|
|
9
|
+
declare const useCaseDocumentTypes: (item: Case | Task | string | undefined) => import("swr").SWRResponse<CaseDocumentType[], any, any>;
|
|
10
10
|
export default useCaseDocumentTypes;
|
|
@@ -321,9 +321,10 @@ export type InodeEventList = {
|
|
|
321
321
|
items: TimelineEvent[];
|
|
322
322
|
};
|
|
323
323
|
export type TopPanels = {
|
|
324
|
+
html?: string;
|
|
324
325
|
kind: "dms-core.ui.TopPanels";
|
|
325
326
|
name: string;
|
|
326
|
-
template
|
|
327
|
+
template?: {
|
|
327
328
|
properties: {
|
|
328
329
|
key: string;
|
|
329
330
|
label: string;
|
|
@@ -19,7 +19,7 @@ export type EntityEditModalEditForm = ComponentPluginProps<{
|
|
|
19
19
|
entity: Entity;
|
|
20
20
|
children: ReactNode;
|
|
21
21
|
}>;
|
|
22
|
-
export type EntityDocumentsComponentProps = ComponentPluginProps<Pick<EntityDocumentsComponentCoreProps, "entity" | "canDrop" | "onDrop" | "documentsByType" | "typesFromDefinition" | "disabled"> & {
|
|
22
|
+
export type EntityDocumentsComponentProps = ComponentPluginProps<Pick<EntityDocumentsComponentCoreProps, "entity" | "canDrop" | "onDrop" | "documentsByType" | "typesFromDefinition" | "documentUploadButton" | "disabled"> & {
|
|
23
23
|
identifier?: string;
|
|
24
24
|
taskOid?: string;
|
|
25
25
|
caseOid?: string;
|
|
@@ -54,6 +54,8 @@ export type EntityDocumentsTypeLabelProps = ComponentPluginProps<{
|
|
|
54
54
|
label: string;
|
|
55
55
|
disabled: boolean;
|
|
56
56
|
isRequired: boolean;
|
|
57
|
+
canAddFile: boolean;
|
|
58
|
+
canAddFileWithoutBinary: boolean;
|
|
57
59
|
identifier?: string;
|
|
58
60
|
taskOid?: string;
|
|
59
61
|
caseOid?: string;
|
|
@@ -49,6 +49,9 @@ export declare function complete(taskOid: string, outcome: {
|
|
|
49
49
|
outcome: string;
|
|
50
50
|
data: Record<string, unknown>;
|
|
51
51
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
52
|
+
export declare function validate(taskOid: string): Promise<import("axios").AxiosResponse<any, any>> & {
|
|
53
|
+
"@@redux-saga/CANCEL_PROMISE"?: import("axios").Canceler;
|
|
54
|
+
};
|
|
52
55
|
export declare function reviewApprove(taskOid: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
53
56
|
export declare function reviewDisapprove(taskOid: string, data: {
|
|
54
57
|
comment: string;
|