@imtf/dms-core 1.1.0-beta.4 → 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.
@@ -33,4 +33,6 @@ export type UserSettingTreeviewField = {
33
33
  name: string;
34
34
  hidden?: boolean;
35
35
  width?: number;
36
+ pinned?: "left" | "right";
37
+ sort?: "asc" | "desc";
36
38
  };
@@ -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
- typeName: string;
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, typeName, disabled, isTypeAssignable, entity, errors, isRequired, documents, canDrop: canDropOnDocuments, onDrop, onDragStart, onDragEnd, }: DocumentListProps) => import("react/jsx-runtime").JSX.Element>;
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;
@@ -1,6 +1,7 @@
1
1
  import { InodeType } from "../../providers/Inodes/types";
2
2
  export type FileType = {
3
3
  canAddFile: boolean;
4
+ canAddFileWithoutBinary: boolean;
4
5
  required: boolean;
5
6
  visible: boolean;
6
7
  } & InodeType;
@@ -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
- declare const useUserSetting: <T>(key: SettingsKeys | ParamKeys, defaultValue?: T) => [T, (value: T | ((n: T) => T)) => void];
5
+ /**
6
+ * Hook to get and set user settings.
7
+ * The key can be a single key or an array of keys.
8
+ * The defaultValue can be a single value or an array of values.
9
+ *
10
+ * If you're using an array of keys, the defaultValue should be an array of values.
11
+ * If you're using a function to set the value, the value can be a single value or an array of values.
12
+ */
13
+ declare const useUserSetting: <T>(key: SettingsKeys | ParamKeys | (SettingsKeys | ParamKeys)[], defaultValue?: T | T[]) => [T, (value: T | ((n: T) => T)) => void];
6
14
  export default useUserSetting;
@@ -1,7 +1,7 @@
1
- import { UserSettingValue } from "../../User/types";
1
+ import { UserSettingValue } from "../../../../core/providers/User/types";
2
2
  declare const useUserStorage: () => {
3
3
  userStorage: Record<string, any>;
4
- setUserStorage: (key: string, newValue: UserSettingValue) => void;
4
+ setUserStorage: (key: string | string[], newValue: UserSettingValue | UserSettingValue[]) => void;
5
5
  clearUserStorage: () => void;
6
6
  };
7
7
  export default useUserStorage;
@@ -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;
@@ -28,6 +28,7 @@ declare const convertTreeviewFields: (settings: Settings) => {
28
28
  applicationSortOrder?: any;
29
29
  externalApplications?: any;
30
30
  treeviewFields?: any;
31
+ dataGridOrders?: any;
31
32
  contentType?: any;
32
33
  locales?: any;
33
34
  enableCaseCreation?: any;
@@ -1,10 +1,10 @@
1
- import { ImmutableTask } from "../../Tasks/types";
2
- import { ImmutableCase } from "../types";
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: ImmutableCase | ImmutableTask | string | undefined) => import("swr").SWRResponse<CaseDocumentType[], any, any>;
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;
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imtf/dms-core",
3
- "version": "1.1.0-beta.4",
3
+ "version": "1.1.0-beta.5",
4
4
  "description": "Typings for dms-core plugin system",
5
5
  "nonNpm": true
6
6
  }