@imtf/dms-core 1.1.0-beta.4 → 1.1.0-beta.6

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,12 +1,13 @@
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
  typeName: string;
6
7
  disabled?: boolean;
7
8
  entity?: Entity;
8
9
  errors?: string[];
9
- isTypeAssignable: boolean;
10
+ type: FileType;
10
11
  isRequired: boolean;
11
12
  documents: Inode<"dms-core.File">[];
12
13
  canDrop?: (item: Inode<"dms-core.File">[] | File[], typeName?: string) => boolean;
@@ -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, typeName, disabled, type, entity, errors, isRequired, documents, canDrop: canDropOnDocuments, onDrop, onDragStart, onDragEnd, }: DocumentListProps) => import("react/jsx-runtime").JSX.Element>;
18
19
  export default _default;
@@ -1,7 +1,9 @@
1
+ import { FileType } from "../types";
1
2
  export type DocumentsTypeProps = {
2
3
  label: string;
3
4
  disabled: boolean;
5
+ type: FileType;
4
6
  isRequired: boolean;
5
7
  };
6
- declare const DocumentListTitle: ({ disabled, label, isRequired, }: DocumentsTypeProps) => import("react/jsx-runtime").JSX.Element;
8
+ declare const DocumentListTitle: ({ disabled, type, label, isRequired, }: DocumentsTypeProps) => import("react/jsx-runtime").JSX.Element;
7
9
  export default DocumentListTitle;
@@ -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;
@@ -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;
@@ -3,6 +3,7 @@ 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
+ import { FileType } from "../../../../core/containers/EntityDocuments/types";
6
7
  export type ComponentPluginProps<P> = P & {
7
8
  defaultRender: (props?: Partial<P>) => JSX.Element;
8
9
  };
@@ -33,15 +34,6 @@ export type EntityDocumentsDocumentProps = ComponentPluginProps<{
33
34
  caseOid?: string;
34
35
  entityOid?: string;
35
36
  }>;
36
- export type EntityDocumentsDocumentLabelProps = ComponentPluginProps<{
37
- document: Inode<"dms-core.File">;
38
- canDrag: boolean;
39
- disabled: boolean;
40
- identifier?: string;
41
- taskOid?: string;
42
- caseOid?: string;
43
- entityOid?: string;
44
- }>;
45
37
  export type CategoryFilterProps = ComponentPluginProps<{
46
38
  documents: {
47
39
  [entityOid: string]: Inode<"dms-core.File">[];
@@ -58,7 +50,18 @@ export type EntityDocumentsTypeLabelProps = ComponentPluginProps<{
58
50
  taskOid?: string;
59
51
  caseOid?: string;
60
52
  entityOid?: string;
61
- type: string;
53
+ type: FileType;
54
+ documents: Inode<"dms-core.File">[];
55
+ }>;
56
+ export type EntityDocumentsDocumentLabelProps = ComponentPluginProps<{
57
+ document: Inode<"dms-core.File">;
58
+ canDrag: boolean;
59
+ disabled: boolean;
60
+ identifier?: string;
61
+ taskOid?: string;
62
+ caseOid?: string;
63
+ entityOid?: string;
64
+ type: FileType;
62
65
  documents: Inode<"dms-core.File">[];
63
66
  }>;
64
67
  export type EntitiesWrapperProps = ComponentPluginProps<{
@@ -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.6",
4
4
  "description": "Typings for dms-core plugin system",
5
5
  "nonNpm": true
6
6
  }