@imtf/dms-core 1.0.0-beta.2 → 1.1.0-beta.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/apps/folder-manager/routes/InodeCollection/hooks/useRemoveInodesFromUrl.d.ts +4 -0
- package/core/components/Chip/Chip.d.ts +8 -0
- package/core/components/Chip/index.d.ts +1 -0
- package/core/components/CloseModalButton/CloseModalButton.d.ts +10 -0
- package/core/components/CloseModalButton/index.d.ts +1 -0
- package/core/components/DatePicker/DatePicker.d.ts +6 -0
- package/core/components/DatePicker/index.d.ts +1 -0
- package/core/components/Error/index.d.ts +7 -0
- package/core/components/FormattedNumberTextfield/FormattedNumberTextfield.d.ts +3 -0
- package/core/components/FormattedNumberTextfield/index.d.ts +1 -0
- package/core/components/ItemIcon/TaskIcon.d.ts +5 -0
- package/core/components/ItemIcon/index.d.ts +19 -0
- package/core/components/JsonForm/types.d.ts +15 -0
- package/core/components/Select/ListboxComponent.d.ts +5 -0
- package/core/components/Select/Select.d.ts +20 -0
- package/core/components/Select/index.d.ts +1 -0
- package/core/components/dms-ui/DatasourceAutocomplete.d.ts +14 -0
- package/core/components/dms-ui/ImmutableComposer.d.ts +15 -0
- package/core/components/dms-ui/immutableDefault/DatasourceAutocomplete.d.ts +19 -0
- package/core/components/dms-ui/immutableDefault/DatePicker.d.ts +15 -0
- package/core/components/dms-ui/immutableDefault/Group.d.ts +16 -0
- package/core/components/dms-ui/immutableDefault/NumberFormattedTexfield.d.ts +14 -0
- package/core/components/dms-ui/immutableDefault/NumberTextfield.d.ts +2 -0
- package/core/components/dms-ui/immutableDefault/RadioButton.d.ts +19 -0
- package/core/components/dms-ui/immutableDefault/Select.d.ts +19 -0
- package/core/components/dms-ui/immutableDefault/Switch.d.ts +19 -0
- package/core/components/dms-ui/immutableDefault/Textfield.d.ts +21 -0
- package/core/components/dms-ui/immutableDefault/index.d.ts +10 -0
- package/core/components/dms-ui/immutableFacet/DatasourceAutocomplete.d.ts +13 -0
- package/core/components/dms-ui/immutableFacet/DateRangeSearcher.d.ts +14 -0
- package/core/components/dms-ui/immutableFacet/Facet.d.ts +23 -0
- package/core/components/dms-ui/immutableFacet/NumericRangePicker.d.ts +14 -0
- package/core/components/dms-ui/immutableFacet/Select.d.ts +13 -0
- package/core/components/dms-ui/immutableFacet/Textfield.d.ts +13 -0
- package/core/components/dms-ui/immutableFacet/TypePicker.d.ts +13 -0
- package/core/components/dms-ui/immutableFacet/index.d.ts +7 -0
- package/core/components/dms-ui/immutableFacet/styles.d.ts +5 -0
- package/core/components/dms-ui/messages.d.ts +27 -0
- package/core/components/dms-ui/types.d.ts +49 -0
- package/core/components/dms-ui/utils/getImmutableComponent.d.ts +19 -0
- package/core/components/dms-ui/utils/removeLabelFromValues.d.ts +1 -0
- package/core/components/dms-ui/utils/utils.d.ts +3 -0
- package/core/constants/apps.d.ts +0 -5
- package/core/constants/kinds.d.ts +1 -0
- package/core/containers/DataGrid/constants.d.ts +26 -0
- package/core/containers/DataGrid/types.d.ts +36 -0
- package/core/containers/DataGrid/utils/handleWidth.d.ts +18 -0
- package/core/containers/DropZone/actions.d.ts +25 -0
- package/core/containers/DropZone/constants.d.ts +5 -0
- package/core/containers/DropZone/selectors.d.ts +8 -70
- package/core/containers/PDFTronViewer/components/LightViewer/config.d.ts +1 -0
- package/core/containers/PDFTronViewer/constants.d.ts +0 -1
- package/core/containers/SearchDataGrid/types.d.ts +16 -0
- package/core/hooks/useCollator.d.ts +2 -0
- package/core/providers/Actions/types.d.ts +2 -4
- package/core/providers/App/actions.d.ts +8 -6
- package/core/providers/App/constants.d.ts +0 -1
- package/core/providers/App/hooks/useApplicationSettings.d.ts +3 -2
- package/core/providers/App/hooks/useDownload.d.ts +23 -0
- package/core/providers/App/hooks/useSettings.d.ts +4 -8
- package/core/providers/App/hooks/useTriggerItems.d.ts +11 -0
- package/core/providers/App/messages.d.ts +8 -0
- package/core/providers/App/types.d.ts +8 -2
- package/core/providers/App/utils/convertOldUserSettings.d.ts +1 -1
- package/core/providers/App/utils/convertTreeviewFields.d.ts +69 -0
- package/core/providers/App/utils/sortListByWeightAndName.d.ts +8 -0
- package/core/providers/Cases/actions.d.ts +16 -3
- package/core/providers/Cases/hooks/useCaseFiles.d.ts +4 -0
- package/core/providers/Cases/utils/common.d.ts +37 -9
- package/core/providers/Ccm/types.d.ts +5 -0
- package/core/providers/DataGrid/Context.d.ts +47 -0
- package/core/providers/Definitions/hooks/useTaskDefinition.d.ts +1 -0
- package/core/providers/Definitions/hooks/useTaskDefinitions.d.ts +4 -0
- package/core/providers/Definitions/types.d.ts +14 -11
- package/core/providers/Definitions/utils/typesToTypeRefs.d.ts +5 -0
- package/core/providers/Inodes/actions.d.ts +13 -441
- package/core/providers/Inodes/constants.d.ts +1 -44
- package/core/providers/Inodes/hooks/useDelete.d.ts +5 -2
- package/core/providers/Inodes/hooks/useInodeByOid.d.ts +5 -0
- package/core/providers/Inodes/hooks/useInodeTypeAssignment.d.ts +4 -0
- package/core/providers/Inodes/hooks/useInodesByOids.d.ts +7 -0
- package/core/providers/Inodes/hooks/usePropertiesType.d.ts +14 -0
- package/core/providers/Inodes/hooks/usePropertyComponents.d.ts +11 -0
- package/core/providers/Inodes/hooks/useRestore.d.ts +22 -0
- package/core/providers/Inodes/hooks/useSortedTypes.d.ts +5 -0
- package/core/providers/Inodes/hooks/useTypes.d.ts +10 -0
- package/core/providers/Inodes/hooks/useUpdateInodes.d.ts +35 -0
- package/core/providers/Inodes/messages.d.ts +8 -0
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/AccordionItem.d.ts +29 -0
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/BarcodeLoading.d.ts +5 -0
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/ModalContent.d.ts +35 -0
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/index.d.ts +12 -0
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/messages.d.ts +59 -0
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/types.d.ts +43 -0
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/addInodeOidToName.d.ts +22 -0
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/createBarcodeProcessingFormData.d.ts +5 -0
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/findMostUsedValue.d.ts +18 -0
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/getInodesRequiredFieldNames.d.ts +10 -0
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/getInvalidInodeOids.d.ts +10 -0
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/replaceComponentsWithConfig.d.ts +10 -0
- package/core/providers/Inodes/modals/AssignTypeAndPropertiesModal/utils/resolveStatusIconAndColor.d.ts +5 -0
- package/core/providers/Inodes/modals/AssignTypeModal.d.ts +9 -0
- package/core/providers/Inodes/service.d.ts +7 -6
- package/core/providers/Inodes/types.d.ts +19 -49
- package/core/providers/Inodes/utils/getAssignableTypesFromInode.d.ts +2 -0
- package/core/providers/Inodes/utils/getBulkUrl.d.ts +1 -0
- package/core/providers/Inodes/utils/getDataFromForbiddenError.d.ts +18 -0
- package/core/providers/Inodes/utils/is.d.ts +1 -1
- package/core/providers/Inodes/utils/isImmutable.d.ts +1 -0
- package/core/providers/Inodes/utils/isInodeType.d.ts +3 -0
- package/core/providers/Inodes/utils/isInodeTypeRef.d.ts +3 -0
- package/core/providers/Inodes/utils/mutateInodes.d.ts +7 -0
- package/core/providers/Inodes/utils/replacePropertiesWithConfig.d.ts +10 -0
- package/core/providers/Inodes/utils/resolveInodeTypes.d.ts +183 -0
- package/core/providers/Inspectors/Context.d.ts +2 -0
- package/core/providers/Localization/Context.d.ts +7 -0
- package/core/providers/Localization/hooks/useLocale.d.ts +3 -0
- package/core/providers/MdmGraph/actions.d.ts +8 -0
- package/core/providers/MdmGraph/types.d.ts +11 -0
- package/core/providers/Modal/hooks/useModal.d.ts +44 -0
- package/core/providers/Modal/slice.d.ts +6 -0
- package/core/providers/Modal/types.d.ts +2 -0
- package/core/providers/Plugins/hooks/cases/useCaseDocuments.d.ts +6 -1
- package/core/providers/Plugins/hooks/inodes/useActions.d.ts +13 -2
- package/core/providers/Plugins/hooks/tasks/useTaskCompletionDisabling.d.ts +9 -0
- package/core/providers/Plugins/pluginRegistry.d.ts +60 -22
- package/core/providers/Search/hooks/useReloader.d.ts +1 -1
- package/core/providers/Search/reducer.d.ts +7 -4
- package/core/providers/Search/selectors.d.ts +48 -262
- package/core/providers/Search/types.d.ts +26 -28
- package/core/providers/Search/utils/createQuery.d.ts +5 -5
- package/core/providers/SystemNotification/slice.d.ts +1 -1
- package/core/providers/Tasks/Context.d.ts +10 -0
- package/core/providers/Tasks/hooks/useEntityDelete.d.ts +1 -1
- package/core/providers/Tasks/hooks/useEntityMutate.d.ts +1 -1
- package/core/providers/Tasks/hooks/useTaskStatus.d.ts +8 -0
- package/core/providers/Uploader/Context.d.ts +4 -4
- package/core/routes/navigate.d.ts +1 -1
- package/core/services/utils/generatePaths.d.ts +1 -1
- package/core/theme/theme.base.d.ts +32 -0
- package/core/theme/theme.lightMode.d.ts +206 -0
- package/core/utils/action.d.ts +2 -2
- package/core/utils/date/getUTCDateInCurrentTimezone.d.ts +11 -0
- package/core/utils/hasValidKind.d.ts +2 -0
- package/core/utils/immutable.d.ts +2 -0
- package/core/utils/string.d.ts +5 -5
- package/index.d.ts +5 -0
- package/package.json +1 -1
- package/store.d.ts +15 -10
- package/vendor/@imtf/react-components/components/Chip/utils.d.ts +2 -2
- package/vendor/@imtf/react-components/utils/constants.d.ts +0 -20
- package/core/components/JsonForm/widgets/widgetHOC.d.ts +0 -33
- package/core/components/TreeView/types.d.ts +0 -17
- package/core/components/TreeViewCell/constants.d.ts +0 -25
- package/core/containers/TreeView/actions.d.ts +0 -197
- package/core/containers/TreeView/constants.d.ts +0 -36
- package/core/containers/TreeView/types.d.ts +0 -46
- package/core/providers/App/utils/isSupportedItem.d.ts +0 -2
- package/core/providers/Cases/reducer.d.ts +0 -18
- package/core/providers/Cases/selectors.d.ts +0 -64
- package/core/providers/Inodes/selectors.d.ts +0 -55
- package/core/providers/MdmGraph/containers/MdmEntitiesEditor/utils/createHighlightsSchema.d.ts +0 -13
- package/core/providers/MdmGraph/utils/misc.d.ts +0 -13
- package/core/providers/Plugins/hooks/inodes/useInodesByOids.d.ts +0 -6
- package/core/providers/Tasks/hooks/useQuestionnaire.d.ts +0 -4
- package/core/utils/requestMiddleware.d.ts +0 -1
|
@@ -1,136 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { SupportedItem } from "../App/types";
|
|
3
|
-
import { UploadContextType } from "../Uploader/Context";
|
|
4
|
-
import { Inode, InodeTypeRef, StateMachineAction, StateMachineActionResult } from "./types";
|
|
5
|
-
/**
|
|
6
|
-
* Load an iterable of inode's oid
|
|
7
|
-
* @param {Array.<string>} oids
|
|
8
|
-
*/
|
|
9
|
-
export declare function get(oids: Inode["oid"][]): {
|
|
10
|
-
type: string;
|
|
11
|
-
payload: {
|
|
12
|
-
oids: string[];
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* Load an iterable of inode's oid
|
|
17
|
-
* @param {Iterable.<object>} inodes
|
|
18
|
-
*/
|
|
19
|
-
export declare function getSuccess(inodes: Inode[]): {
|
|
20
|
-
type: string;
|
|
21
|
-
payload: {
|
|
22
|
-
inodes: Inode[];
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
export declare function getError(error: unknown, payload: {
|
|
26
|
-
oids: Inode["oid"][];
|
|
27
|
-
}): {
|
|
28
|
-
type: string;
|
|
29
|
-
payload: {
|
|
30
|
-
oids: Inode["oid"][];
|
|
31
|
-
};
|
|
32
|
-
error: unknown;
|
|
33
|
-
};
|
|
34
|
-
export declare function load(oid: Inode["oid"]): {
|
|
35
|
-
type: string;
|
|
36
|
-
payload: {
|
|
37
|
-
oid: string;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
export declare function loadSuccess(inode: Inode): {
|
|
41
|
-
type: string;
|
|
42
|
-
payload: {
|
|
43
|
-
inode: Inode;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
export declare function loadAllChildren(oid: Inode["oid"], params: Record<string, unknown>): {
|
|
47
|
-
type: string;
|
|
48
|
-
payload: {
|
|
49
|
-
oid: string;
|
|
50
|
-
params: Record<string, unknown>;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
export declare function loadAllChildrenSuccess(inodes: Inode[]): {
|
|
54
|
-
type: string;
|
|
55
|
-
payload: {
|
|
56
|
-
inodes: Inode[];
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
export declare function loadAllChildrenError(error: unknown, oid: Inode["oid"]): {
|
|
60
|
-
type: string;
|
|
61
|
-
payload: {
|
|
62
|
-
oid: string;
|
|
63
|
-
};
|
|
64
|
-
error: unknown;
|
|
65
|
-
};
|
|
66
|
-
export declare function loadError(error: unknown, oid: Inode["oid"]): {
|
|
67
|
-
type: string;
|
|
68
|
-
payload: {
|
|
69
|
-
oid: string;
|
|
70
|
-
};
|
|
71
|
-
error: unknown;
|
|
72
|
-
};
|
|
73
|
-
/**
|
|
74
|
-
*
|
|
75
|
-
* @param {string[]} oids
|
|
76
|
-
* @param {Record<any,any>} params
|
|
77
|
-
* @param {Record<any,any>} queryParams
|
|
78
|
-
* @returns
|
|
79
|
-
*/
|
|
80
|
-
export declare function loadChildren(oids: Inode["oid"][], params: Record<string, unknown>, queryParams: Record<string, unknown>): {
|
|
81
|
-
type: string;
|
|
82
|
-
payload: {
|
|
83
|
-
oids: string[];
|
|
84
|
-
queryParams: Record<string, unknown>;
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
export declare function loadChildrenSuccess(inodeCollections: Record<Inode["oid"], Inode>, params: Record<string, unknown>): {
|
|
88
|
-
type: string;
|
|
89
|
-
payload: {
|
|
90
|
-
inodeCollections: Record<string, Inode>;
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
export declare function loadChildrenError(error: unknown, payload: {
|
|
94
|
-
oids: Inode["oid"][];
|
|
95
|
-
params: Record<string, unknown>;
|
|
96
|
-
queryParams: Record<string, unknown>;
|
|
97
|
-
}): {
|
|
98
|
-
type: string;
|
|
99
|
-
error: unknown;
|
|
100
|
-
payload: {
|
|
101
|
-
oids: Inode["oid"][];
|
|
102
|
-
params: Record<string, unknown>;
|
|
103
|
-
queryParams: Record<string, unknown>;
|
|
104
|
-
};
|
|
105
|
-
};
|
|
106
|
-
export declare function save(inodes: Inode[], params: Record<string, unknown>, mergeOnNameConflict?: boolean): {
|
|
107
|
-
type: string;
|
|
108
|
-
payload: {
|
|
109
|
-
inodes: Inode[];
|
|
110
|
-
params: Record<string, unknown>;
|
|
111
|
-
mergeOnNameConflict: boolean;
|
|
112
|
-
};
|
|
113
|
-
};
|
|
114
|
-
export declare function saveSuccess(inodes: Inode[], params: Record<string, unknown>): {
|
|
115
|
-
type: string;
|
|
116
|
-
payload: {
|
|
117
|
-
inodes: Inode[];
|
|
118
|
-
params: Record<string, unknown>;
|
|
119
|
-
};
|
|
120
|
-
};
|
|
121
|
-
export declare function saveError(error: unknown, payload: {
|
|
122
|
-
inodes: Inode[];
|
|
123
|
-
params: Record<string, unknown>;
|
|
124
|
-
mergeOnNameConflict: boolean;
|
|
125
|
-
}): {
|
|
126
|
-
type: string;
|
|
127
|
-
payload: {
|
|
128
|
-
inodes: Inode[];
|
|
129
|
-
params: Record<string, unknown>;
|
|
130
|
-
mergeOnNameConflict: boolean;
|
|
131
|
-
};
|
|
132
|
-
error: unknown;
|
|
133
|
-
};
|
|
1
|
+
import { Inode, StateMachineAction, StateMachineActionResult } from "./types";
|
|
134
2
|
export declare function saveConfiguration(inode: Inode, data: {
|
|
135
3
|
childrenAllowedTypes: Inode["childrenAllowedTypes"];
|
|
136
4
|
childrenAllowedTemplates: Inode["childrenAllowedTemplates"];
|
|
@@ -165,249 +33,6 @@ export declare function saveConfigurationError(error: unknown, inode: Inode, dat
|
|
|
165
33
|
};
|
|
166
34
|
error: unknown;
|
|
167
35
|
};
|
|
168
|
-
export declare function loadTrash(queryParams: Record<string, unknown>): {
|
|
169
|
-
type: string;
|
|
170
|
-
payload: {
|
|
171
|
-
queryParams: Record<string, unknown>;
|
|
172
|
-
};
|
|
173
|
-
};
|
|
174
|
-
export declare function loadTrashSuccess(inodes: Inode[]): {
|
|
175
|
-
type: string;
|
|
176
|
-
payload: {
|
|
177
|
-
inodes: Inode[];
|
|
178
|
-
};
|
|
179
|
-
};
|
|
180
|
-
export declare function loadTrashError(error: unknown, queryParams: Record<string, unknown>): {
|
|
181
|
-
type: string;
|
|
182
|
-
payload: {
|
|
183
|
-
queryParams: Record<string, unknown>;
|
|
184
|
-
};
|
|
185
|
-
error: unknown;
|
|
186
|
-
};
|
|
187
|
-
export declare function trashSuccess(inodes: Inode[]): {
|
|
188
|
-
type: string;
|
|
189
|
-
payload: {
|
|
190
|
-
inodes: Inode[];
|
|
191
|
-
};
|
|
192
|
-
};
|
|
193
|
-
export declare function addInodes(inodes: Inode[]): {
|
|
194
|
-
type: string;
|
|
195
|
-
payload: {
|
|
196
|
-
inodes: Inode[];
|
|
197
|
-
};
|
|
198
|
-
};
|
|
199
|
-
/**
|
|
200
|
-
* Remove (trash) inodes from folder manager
|
|
201
|
-
* @param {iterable.<Inode>} inodes List of inode to remove
|
|
202
|
-
*/
|
|
203
|
-
export declare function willRemoveInodes(inodes: Inode[]): {
|
|
204
|
-
type: string;
|
|
205
|
-
payload: {
|
|
206
|
-
inodes: Inode[];
|
|
207
|
-
};
|
|
208
|
-
};
|
|
209
|
-
export declare function removeInodes(inodes: Inode[]): {
|
|
210
|
-
type: string;
|
|
211
|
-
payload: {
|
|
212
|
-
inodes: Inode[];
|
|
213
|
-
};
|
|
214
|
-
};
|
|
215
|
-
export declare function upload(targetOid: Inode["oid"], files: File[], fileInodes: Inode[], serviceConfig: {
|
|
216
|
-
onUploadProgress: (progressEvent: any) => void;
|
|
217
|
-
cancelToken: CancelToken;
|
|
218
|
-
}): {
|
|
219
|
-
type: string;
|
|
220
|
-
payload: {
|
|
221
|
-
targetOid: string;
|
|
222
|
-
files: File[];
|
|
223
|
-
fileInodes: Inode[];
|
|
224
|
-
serviceConfig: {
|
|
225
|
-
onUploadProgress: (progressEvent: any) => void;
|
|
226
|
-
cancelToken: CancelToken;
|
|
227
|
-
};
|
|
228
|
-
};
|
|
229
|
-
};
|
|
230
|
-
export declare function uploadSuccess(targetOid: Inode["oid"], inodes: Inode[]): {
|
|
231
|
-
type: string;
|
|
232
|
-
payload: {
|
|
233
|
-
targetOid: string;
|
|
234
|
-
inodes: Inode[];
|
|
235
|
-
};
|
|
236
|
-
};
|
|
237
|
-
export declare function uploadError(error: unknown, payload: {
|
|
238
|
-
targetOid: Inode["oid"];
|
|
239
|
-
files: File[];
|
|
240
|
-
fileInodes: Inode[];
|
|
241
|
-
serviceConfig: {
|
|
242
|
-
onUploadProgress: (progressEvent: any) => void;
|
|
243
|
-
cancelToken: CancelToken;
|
|
244
|
-
};
|
|
245
|
-
}): {
|
|
246
|
-
type: string;
|
|
247
|
-
payload: {
|
|
248
|
-
targetOid: Inode["oid"];
|
|
249
|
-
files: File[];
|
|
250
|
-
fileInodes: Inode[];
|
|
251
|
-
serviceConfig: {
|
|
252
|
-
onUploadProgress: (progressEvent: any) => void;
|
|
253
|
-
cancelToken: CancelToken;
|
|
254
|
-
};
|
|
255
|
-
};
|
|
256
|
-
error: unknown;
|
|
257
|
-
};
|
|
258
|
-
/**
|
|
259
|
-
* This action has to be used in conjonction with `createPromiseAction`. Promise will be then resolved with proper types.
|
|
260
|
-
* @param {Object} params Params object
|
|
261
|
-
* @param {Iterable} params.inodes List of inodes to check the type of. If you set this parameter, you can't set files parameter
|
|
262
|
-
* @param {Iterable} params.files List of files to check the type of. If you set this parameter, you can't set inodes parameter
|
|
263
|
-
* @param {Iterable} params.targetTypes List of acceptable types. If you set this parameter, you can't set targetInodeOid parameter
|
|
264
|
-
* @param {string} params.targetInodeOid Target inode oid. If you set this parameter, you can't set targetTypes or forceChildrenWithType parameters
|
|
265
|
-
* @param {boolean} params.forceChildrenWithType If true, inodes will be forced to have a type.
|
|
266
|
-
* @param {boolean} params.sort If true, inodes will be sorted by name in types capture modal.
|
|
267
|
-
* @param {boolean} params.enablePropertiesUpload If true, the AssignTypeAndPropertiesModal modal will be shown.
|
|
268
|
-
* @returns
|
|
269
|
-
*/
|
|
270
|
-
export declare function checkAndGetType(params: {
|
|
271
|
-
inodes: Inode[];
|
|
272
|
-
files: File[];
|
|
273
|
-
targetTypes: InodeTypeRef[];
|
|
274
|
-
forceChildrenWithType: boolean;
|
|
275
|
-
targetInodeOid: Inode["oid"];
|
|
276
|
-
sort: string;
|
|
277
|
-
fileProps: Record<string, unknown>;
|
|
278
|
-
enablePropertiesUpload: boolean;
|
|
279
|
-
}): {
|
|
280
|
-
type: string;
|
|
281
|
-
payload: {
|
|
282
|
-
inodes: Inode[];
|
|
283
|
-
files: File[];
|
|
284
|
-
targetInodeOid: string;
|
|
285
|
-
targetTypes: InodeTypeRef[];
|
|
286
|
-
forceChildrenWithType: boolean;
|
|
287
|
-
sort: string;
|
|
288
|
-
fileProps: Record<string, unknown>;
|
|
289
|
-
enablePropertiesUpload: boolean;
|
|
290
|
-
};
|
|
291
|
-
};
|
|
292
|
-
export declare function updateBinary(oid: Inode["oid"], file: File, serviceConfig?: Record<string, unknown>): {
|
|
293
|
-
type: string;
|
|
294
|
-
payload: {
|
|
295
|
-
oid: string;
|
|
296
|
-
file: File;
|
|
297
|
-
serviceConfig: Record<string, unknown> | undefined;
|
|
298
|
-
};
|
|
299
|
-
};
|
|
300
|
-
export declare function updateBinarySuccess(inodes: Inode[]): {
|
|
301
|
-
type: string;
|
|
302
|
-
payload: {
|
|
303
|
-
inodes: Inode[];
|
|
304
|
-
};
|
|
305
|
-
};
|
|
306
|
-
export declare function updateBinaryError(error: unknown, payload: {
|
|
307
|
-
oid: Inode["oid"];
|
|
308
|
-
file: File;
|
|
309
|
-
item: Inode;
|
|
310
|
-
serviceConfig: Record<string, unknown>;
|
|
311
|
-
}): {
|
|
312
|
-
type: string;
|
|
313
|
-
error: unknown;
|
|
314
|
-
payload: {
|
|
315
|
-
oid: Inode["oid"];
|
|
316
|
-
file: File;
|
|
317
|
-
item: Inode;
|
|
318
|
-
serviceConfig: Record<string, unknown>;
|
|
319
|
-
};
|
|
320
|
-
};
|
|
321
|
-
export declare function toggleFavoriteSuccess(inodes: Inode[]): {
|
|
322
|
-
type: string;
|
|
323
|
-
payload: {
|
|
324
|
-
inodes: Inode[];
|
|
325
|
-
};
|
|
326
|
-
};
|
|
327
|
-
export declare function toggleWatchSuccess(inodes: Inode[]): {
|
|
328
|
-
type: string;
|
|
329
|
-
payload: {
|
|
330
|
-
inodes: Inode[];
|
|
331
|
-
};
|
|
332
|
-
};
|
|
333
|
-
export declare function createFolderSuccess(inode: Inode): {
|
|
334
|
-
type: string;
|
|
335
|
-
payload: {
|
|
336
|
-
inode: Inode;
|
|
337
|
-
};
|
|
338
|
-
};
|
|
339
|
-
export declare function copy(inodes: Inode[], targetInodeOrOid: Inode | Inode["oid"], params?: Record<string, unknown>): {
|
|
340
|
-
type: string;
|
|
341
|
-
payload: {
|
|
342
|
-
inodes: Inode[];
|
|
343
|
-
targetInodeOrOid: string | Inode;
|
|
344
|
-
params: Record<string, unknown> | undefined;
|
|
345
|
-
};
|
|
346
|
-
};
|
|
347
|
-
export declare function copySuccess(inodes: Inode[], params: Record<string, unknown>): {
|
|
348
|
-
type: string;
|
|
349
|
-
payload: {
|
|
350
|
-
inodes: Inode[];
|
|
351
|
-
params: Record<string, unknown>;
|
|
352
|
-
};
|
|
353
|
-
};
|
|
354
|
-
export declare function copyError(error: unknown, payload: {
|
|
355
|
-
inodes: Inode[];
|
|
356
|
-
targetInodeOrOid: Inode | Inode["oid"];
|
|
357
|
-
params: Record<string, unknown>;
|
|
358
|
-
}): {
|
|
359
|
-
type: string;
|
|
360
|
-
error: unknown;
|
|
361
|
-
payload: {
|
|
362
|
-
inodes: Inode[];
|
|
363
|
-
targetInodeOrOid: Inode | Inode["oid"];
|
|
364
|
-
params: Record<string, unknown>;
|
|
365
|
-
};
|
|
366
|
-
};
|
|
367
|
-
export declare function linkSuccess(inodes: Inode[]): {
|
|
368
|
-
type: string;
|
|
369
|
-
payload: {
|
|
370
|
-
inodes: Inode[];
|
|
371
|
-
};
|
|
372
|
-
};
|
|
373
|
-
export declare function download(inodes: SupportedItem[]): {
|
|
374
|
-
type: string;
|
|
375
|
-
payload: {
|
|
376
|
-
inodes: SupportedItem[];
|
|
377
|
-
};
|
|
378
|
-
};
|
|
379
|
-
export declare function editModal(inode: Inode): {
|
|
380
|
-
payload: {
|
|
381
|
-
type: string;
|
|
382
|
-
props: Partial<{
|
|
383
|
-
[key: string]: unknown;
|
|
384
|
-
disableEscapeKeyDown: boolean;
|
|
385
|
-
disableBackdropClick: boolean;
|
|
386
|
-
correlationId: string;
|
|
387
|
-
fullWidth: boolean;
|
|
388
|
-
maxWidth: import("@mui/material").DialogProps["maxWidth"];
|
|
389
|
-
blocker: boolean;
|
|
390
|
-
onClose: () => void;
|
|
391
|
-
}> | undefined;
|
|
392
|
-
};
|
|
393
|
-
type: "modal/showModal";
|
|
394
|
-
};
|
|
395
|
-
export declare function scanModal(inode: Inode): {
|
|
396
|
-
payload: {
|
|
397
|
-
type: string;
|
|
398
|
-
props: Partial<{
|
|
399
|
-
[key: string]: unknown;
|
|
400
|
-
disableEscapeKeyDown: boolean;
|
|
401
|
-
disableBackdropClick: boolean;
|
|
402
|
-
correlationId: string;
|
|
403
|
-
fullWidth: boolean;
|
|
404
|
-
maxWidth: import("@mui/material").DialogProps["maxWidth"];
|
|
405
|
-
blocker: boolean;
|
|
406
|
-
onClose: () => void;
|
|
407
|
-
}> | undefined;
|
|
408
|
-
};
|
|
409
|
-
type: "modal/showModal";
|
|
410
|
-
};
|
|
411
36
|
/**
|
|
412
37
|
*
|
|
413
38
|
* @param {import("./types").StateMachineAction} action State action to apply
|
|
@@ -449,27 +74,6 @@ export declare function assignTypesAndProperties(inodes: Inode[], correlationId:
|
|
|
449
74
|
correlationId: string;
|
|
450
75
|
};
|
|
451
76
|
};
|
|
452
|
-
export declare function move(sourceInodes: Inode[], targetInode: Inode, params?: Record<string, unknown>): {
|
|
453
|
-
type: string;
|
|
454
|
-
payload: {
|
|
455
|
-
inodes: Inode[];
|
|
456
|
-
params: {
|
|
457
|
-
targetInode: Inode;
|
|
458
|
-
inodeOriginals: Inode[];
|
|
459
|
-
};
|
|
460
|
-
};
|
|
461
|
-
};
|
|
462
|
-
/**
|
|
463
|
-
*
|
|
464
|
-
* @param {Set} oids Set of oids to keep upon cleaning
|
|
465
|
-
* @return {Object} FSA Compliant action
|
|
466
|
-
*/
|
|
467
|
-
export declare function clean(oids: Inode["oid"][]): {
|
|
468
|
-
type: string;
|
|
469
|
-
payload: {
|
|
470
|
-
oids: string[];
|
|
471
|
-
};
|
|
472
|
-
};
|
|
473
77
|
export declare function renameInodeModal(inode: Inode): {
|
|
474
78
|
payload: {
|
|
475
79
|
type: string;
|
|
@@ -481,6 +85,8 @@ export declare function renameInodeModal(inode: Inode): {
|
|
|
481
85
|
fullWidth: boolean;
|
|
482
86
|
maxWidth: import("@mui/material").DialogProps["maxWidth"];
|
|
483
87
|
blocker: boolean;
|
|
88
|
+
onConfirm: (...args: any[]) => void;
|
|
89
|
+
onCancel: () => void;
|
|
484
90
|
onClose: () => void;
|
|
485
91
|
}> | undefined;
|
|
486
92
|
};
|
|
@@ -497,6 +103,8 @@ export declare function createFolderModal(inode: Inode): {
|
|
|
497
103
|
fullWidth: boolean;
|
|
498
104
|
maxWidth: import("@mui/material").DialogProps["maxWidth"];
|
|
499
105
|
blocker: boolean;
|
|
106
|
+
onConfirm: (...args: any[]) => void;
|
|
107
|
+
onCancel: () => void;
|
|
500
108
|
onClose: () => void;
|
|
501
109
|
}> | undefined;
|
|
502
110
|
};
|
|
@@ -513,55 +121,13 @@ export declare function assignTypeModal(sourceInodes: Inode[], childrenAllowedTy
|
|
|
513
121
|
fullWidth: boolean;
|
|
514
122
|
maxWidth: import("@mui/material").DialogProps["maxWidth"];
|
|
515
123
|
blocker: boolean;
|
|
124
|
+
onConfirm: (...args: any[]) => void;
|
|
125
|
+
onCancel: () => void;
|
|
516
126
|
onClose: () => void;
|
|
517
127
|
}> | undefined;
|
|
518
128
|
};
|
|
519
129
|
type: "modal/showModal";
|
|
520
130
|
};
|
|
521
|
-
export declare function nameConflictModal(payload: {
|
|
522
|
-
permissions: Inode["permissions"];
|
|
523
|
-
callback: (action: "RENAME" | "UPDATE", inodeName: Inode["name"], uploadContext: UploadContextType) => void;
|
|
524
|
-
name: string;
|
|
525
|
-
isPlural: boolean;
|
|
526
|
-
shouldCheckForExtensionRename: boolean;
|
|
527
|
-
}): {
|
|
528
|
-
payload: {
|
|
529
|
-
type: string;
|
|
530
|
-
props: Partial<{
|
|
531
|
-
[key: string]: unknown;
|
|
532
|
-
disableEscapeKeyDown: boolean;
|
|
533
|
-
disableBackdropClick: boolean;
|
|
534
|
-
correlationId: string;
|
|
535
|
-
fullWidth: boolean;
|
|
536
|
-
maxWidth: import("@mui/material").DialogProps["maxWidth"];
|
|
537
|
-
blocker: boolean;
|
|
538
|
-
onClose: () => void;
|
|
539
|
-
}> | undefined;
|
|
540
|
-
};
|
|
541
|
-
type: "modal/showModal";
|
|
542
|
-
};
|
|
543
|
-
export declare function restoreInodes(inodes: Inode[], targetInode?: Inode, params?: Record<string, unknown>): {
|
|
544
|
-
type: string;
|
|
545
|
-
payload: {
|
|
546
|
-
inodes: Inode[];
|
|
547
|
-
targetInode: Inode | undefined;
|
|
548
|
-
params: Record<string, unknown> | undefined;
|
|
549
|
-
};
|
|
550
|
-
};
|
|
551
|
-
export declare function restoreInodesSuccess(inodes: Inode[], params: Record<string, unknown>): {
|
|
552
|
-
type: string;
|
|
553
|
-
payload: {
|
|
554
|
-
inodes: Inode[];
|
|
555
|
-
params: Record<string, unknown>;
|
|
556
|
-
};
|
|
557
|
-
};
|
|
558
|
-
export declare function restoreInodesError(error: unknown, inodes: Inode[]): {
|
|
559
|
-
type: string;
|
|
560
|
-
payload: {
|
|
561
|
-
inodes: Inode[];
|
|
562
|
-
};
|
|
563
|
-
error: unknown;
|
|
564
|
-
};
|
|
565
131
|
export declare function createNewTaskInodeModal(inodes: Inode[]): {
|
|
566
132
|
payload: {
|
|
567
133
|
type: string;
|
|
@@ -573,6 +139,8 @@ export declare function createNewTaskInodeModal(inodes: Inode[]): {
|
|
|
573
139
|
fullWidth: boolean;
|
|
574
140
|
maxWidth: import("@mui/material").DialogProps["maxWidth"];
|
|
575
141
|
blocker: boolean;
|
|
142
|
+
onConfirm: (...args: any[]) => void;
|
|
143
|
+
onCancel: () => void;
|
|
576
144
|
onClose: () => void;
|
|
577
145
|
}> | undefined;
|
|
578
146
|
};
|
|
@@ -589,6 +157,8 @@ export declare function showTimelineModal(inode: Inode): {
|
|
|
589
157
|
fullWidth: boolean;
|
|
590
158
|
maxWidth: import("@mui/material").DialogProps["maxWidth"];
|
|
591
159
|
blocker: boolean;
|
|
160
|
+
onConfirm: (...args: any[]) => void;
|
|
161
|
+
onCancel: () => void;
|
|
592
162
|
onClose: () => void;
|
|
593
163
|
}> | undefined;
|
|
594
164
|
};
|
|
@@ -605,6 +175,8 @@ export declare function assignTypeAndPropertiesModal(sourceInodes: Inode[], chil
|
|
|
605
175
|
fullWidth: boolean;
|
|
606
176
|
maxWidth: import("@mui/material").DialogProps["maxWidth"];
|
|
607
177
|
blocker: boolean;
|
|
178
|
+
onConfirm: (...args: any[]) => void;
|
|
179
|
+
onCancel: () => void;
|
|
608
180
|
onClose: () => void;
|
|
609
181
|
}> | undefined;
|
|
610
182
|
};
|
|
@@ -1,52 +1,10 @@
|
|
|
1
|
-
export declare const LOAD = "imtf/Inodes/LOAD";
|
|
2
|
-
export declare const LOAD_SUCCESS = "imtf/Inodes/LOAD_SUCCESS";
|
|
3
|
-
export declare const LOAD_ERROR = "imtf/Inodes/LOAD_ERROR";
|
|
4
|
-
export declare const GET = "imtf/Inodes/GET";
|
|
5
|
-
export declare const GET_SUCCESS = "imtf/Inodes/GET_SUCCESS";
|
|
6
|
-
export declare const GET_ERROR = "imtf/Inodes/GET_ERROR";
|
|
7
|
-
export declare const LOAD_CHILDREN = "imtf/Inodes/LOAD_CHILDREN";
|
|
8
|
-
export declare const LOAD_CHILDREN_SUCCESS = "imtf/Inodes/LOAD_CHILDREN_SUCCESS";
|
|
9
|
-
export declare const LOAD_CHILDREN_ERROR = "imtf/Inodes/LOAD_CHILDREN_ERROR";
|
|
10
|
-
export declare const LOAD_ALL_CHILDREN = "imtf/Inodes/LOAD_ALL_CHILDREN";
|
|
11
|
-
export declare const LOAD_ALL_CHILDREN_SUCCESS = "imtf/Inodes/LOAD_ALL_CHILDREN_SUCCESS";
|
|
12
|
-
export declare const LOAD_ALL_CHILDREN_ERROR = "imtf/Inodes/LOAD_ALL_CHILDREN_ERROR";
|
|
13
|
-
export declare const CHECK_AND_GET_TYPE = "imtf/inode/CHECK_AND_GET_TYPE";
|
|
14
|
-
export declare const UPDATE_BINARY = "imtf/inode/UPDATE_BINARY";
|
|
15
|
-
export declare const UPDATE_BINARY_SUCCESS = "imtf/inode/UPDATE_BINARY_SUCCESS";
|
|
16
|
-
export declare const UPDATE_BINARY_ERROR = "imtf/inode/UPDATE_BINARY_ERROR";
|
|
17
|
-
export declare const SAVE = "imtf/Inodes/SAVE";
|
|
18
|
-
export declare const SAVE_SUCCESS = "imtf/Inodes/SAVE_SUCCESS";
|
|
19
|
-
export declare const SAVE_ERROR = "imtf/Inodes/SAVE_ERROR";
|
|
20
|
-
export declare const MOVE = "imtf/Inodes/MOVE";
|
|
21
1
|
export declare const ASSIGN_TYPES_AND_PROPERTIES = "imtf/Inodes/ASSIGN_TYPES_AND_PROPERTIES";
|
|
22
2
|
export declare const SAVE_CONFIGURATION = "imtf/Inodes/SAVE_CONFIGURATION";
|
|
23
3
|
export declare const SAVE_CONFIGURATION_SUCCESS = "imtf/Inodes/SAVE_CONFIGURATION_SUCCESS";
|
|
24
4
|
export declare const SAVE_CONFIGURATION_ERROR = "imtf/Inodes/SAVE_CONFIGURATION_ERROR";
|
|
25
|
-
export declare const TOGGLE_FAVORITE_SUCCESS = "imtf/Inodes/TOGGLE_FAVORITE_SUCCESS";
|
|
26
|
-
export declare const TOGGLE_WATCH_SUCCESS = "imtf/Inodes/TOGGLE_WATCH_SUCCESS";
|
|
27
|
-
export declare const LOAD_TRASH = "imtf/TRASH/LOAD_TRASH";
|
|
28
|
-
export declare const LOAD_TRASH_SUCCESS = "imtf/TRASH/LOAD_TRASH_SUCCESS";
|
|
29
|
-
export declare const LOAD_TRASH_ERROR = "imtf/TRASH/LOAD_TRASH_ERROR";
|
|
30
|
-
export declare const TRASH_SUCCESS = "imtf/Inodes/TRASH_SUCCESS";
|
|
31
|
-
export declare const RESTORE_INODES = "imtf/Inode/RESTORE_INODES";
|
|
32
|
-
export declare const RESTORE_INODES_SUCCESS = "imtf/Inode/RESTORE_INODES_SUCCESS";
|
|
33
|
-
export declare const RESTORE_INODES_ERROR = "imtf/Inode/RESTORE_INODES_ERROR";
|
|
34
|
-
export declare const UPLOAD = "imtf/Inodes/UPLOAD";
|
|
35
|
-
export declare const UPLOAD_SUCCESS = "imtf/Inodes/UPLOAD_SUCCESS";
|
|
36
|
-
export declare const UPLOAD_ERROR = "imtf/Inodes/UPLOAD_ERROR";
|
|
37
|
-
export declare const CREATE_FOLDER_SUCCESS = "imtf/Inodes/CREATE_FOLDER_SUCCESS";
|
|
38
|
-
export declare const COPY = "imtf/Inodes/COPY";
|
|
39
|
-
export declare const COPY_SUCCESS = "imtf/Inodes/COPY_SUCCESS";
|
|
40
|
-
export declare const COPY_ERROR = "imtf/Inodes/COPY_ERROR";
|
|
41
|
-
export declare const LINK_SUCCESS = "imtf/Inodes/LINK_SUCCESS";
|
|
42
|
-
export declare const DOWNLOAD = "imtf/Inodes/DOWNLOAD";
|
|
43
5
|
export declare const STATE_ACTION = "imtf/Inodes/STATE_ACTION";
|
|
44
6
|
export declare const STATE_ACTION_SUCCESS = "imtf/Inodes/STATE_ACTION_SUCCESS";
|
|
45
7
|
export declare const STATE_ACTION_ERROR = "imtf/Inodes/STATE_ACTION_ERROR";
|
|
46
|
-
export declare const ADD_INODES = "imtf/Inodes/ADD_INODES";
|
|
47
|
-
export declare const WILL_REMOVE_INODES = "imtf/Inodes/WILL_REMOVE_INODES";
|
|
48
|
-
export declare const REMOVE_INODES = "imtf/Inodes/REMOVE_INODES";
|
|
49
|
-
export declare const CLEAN = "imtf/Inodes/CLEAN";
|
|
50
8
|
export declare const EXTERNAL_LINK = "EXTERNAL_LINK";
|
|
51
9
|
export declare const EVENT_TYPES: {
|
|
52
10
|
readonly DOSSIER_CREATED: "DOSSIER_CREATED";
|
|
@@ -83,14 +41,13 @@ export declare const EVENT_TYPES: {
|
|
|
83
41
|
};
|
|
84
42
|
export declare const MODAL_TYPES: {
|
|
85
43
|
readonly RENAME_INODE: "imtf/Inodes/modal/RENAME_INODE";
|
|
86
|
-
readonly EDIT_INODE: "imtf/Inodes/modal/EDIT_INODE";
|
|
87
|
-
readonly SCAN_FILE: "imtf/Inodes/modal/SCAN_FILE";
|
|
88
44
|
readonly CREATE_FOLDER: "imtf/Inodes/modal/CREATE_FOLDER";
|
|
89
45
|
readonly ASSIGN_TYPE: "imtf/Inodes/modal/ASSIGN_TYPE";
|
|
90
46
|
readonly TIMELINE: "imtf/Inodes/modal/TIMELINE";
|
|
91
47
|
readonly NAME_CONFLICT_MODAL: "imtf/Inodes/modal/NAME_CONFLICT_MODAL";
|
|
92
48
|
readonly CREATE_NEW_TASK: "imtf/Inodes/modal/CREATE_NEW_TASK";
|
|
93
49
|
readonly ASSIGN_TYPE_AND_PROPERTIES: "imtf/Inodes/modal/ASSIGN_TYPE_AND_PROPERTIES";
|
|
50
|
+
readonly FORCE_FOLDER_ACTION: "imtf/Inodes/modal/FORCE_FOLDER_ACTION";
|
|
94
51
|
};
|
|
95
52
|
export declare const ACTIONS: {
|
|
96
53
|
readonly MARK_AS_FAVORITE: "INODE_MARK_AS_FAVORITE";
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { AxiosError } from "axios";
|
|
2
|
-
import { Inode } from "../types";
|
|
2
|
+
import { Inode, InodeList } from "../types";
|
|
3
3
|
type Arg = {
|
|
4
4
|
inodes: Inode[];
|
|
5
5
|
permanent?: boolean;
|
|
6
6
|
showNotification?: boolean;
|
|
7
|
+
deleteMode?: "FORCE_DELETE" | "ELIGIBLE_DELETE";
|
|
7
8
|
};
|
|
8
9
|
/**
|
|
9
10
|
* Deletes an array of inodes
|
|
10
11
|
*/
|
|
11
|
-
declare const useDelete: () => import("swr/mutation").SWRMutationResponse<Arg
|
|
12
|
+
declare const useDelete: () => import("swr/mutation").SWRMutationResponse<Arg & {
|
|
13
|
+
result: InodeList | undefined;
|
|
14
|
+
}, AxiosError<unknown, any>, string, Arg>;
|
|
12
15
|
export default useDelete;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Inode, InodeType, InodeTypeRef, TemplateRef } from "../types";
|
|
2
|
+
export declare function useInodeTypeAssignment(): {
|
|
3
|
+
checkAndGetInodesWithType: (sourceInodes: Inode[], targetTypes: (InodeType | InodeTypeRef)[], targetTemplates?: TemplateRef[], forceChildrenWithType?: boolean, forceChildrenWithTemplate?: boolean, files?: File[], enablePropertiesUpload?: boolean) => Promise<Inode[] | null>;
|
|
4
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Inode } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* Fetch inodes by oids
|
|
4
|
+
*/
|
|
5
|
+
export declare function useInodesByOids(oids?: Inode["oid"][]): import("swr").SWRResponse<Inode<"dms-core.Folder" | "dms-core.File" | "dms-core.Template" | "dms-core.Dossier" | "dms-core.DeniedInode">[], any, {
|
|
6
|
+
keepPreviousData: true;
|
|
7
|
+
}>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PropertiesComponent } from "../../../../core/components/dms-ui/types";
|
|
2
|
+
import { InodeType } from "../types";
|
|
3
|
+
/**
|
|
4
|
+
* Get property groups given type oids
|
|
5
|
+
* We can also override the properties given a propertyPanelOverrides parameter
|
|
6
|
+
* https://imtf.atlassian.net/wiki/spaces/DEV/pages/7045794/param#param-propertyPanelOverrides
|
|
7
|
+
*/
|
|
8
|
+
export default function usePropertiesType(typeOids: InodeType["oid"][]): {
|
|
9
|
+
propertiesType: {
|
|
10
|
+
[typeName: string]: PropertiesComponent[];
|
|
11
|
+
} | undefined;
|
|
12
|
+
error: any;
|
|
13
|
+
isLoading: boolean;
|
|
14
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PropertiesGroupList } from "../../../../core/components/dms-ui/types";
|
|
2
|
+
import { Inode } from "../types";
|
|
3
|
+
/**
|
|
4
|
+
* Fetches property groups for a given inode
|
|
5
|
+
*/
|
|
6
|
+
export default function usePropertyComponents(inodeOid?: Inode["oid"]): {
|
|
7
|
+
data: import("../../../../core/components/dms-ui/types").UIPropertiesGroup[] | null;
|
|
8
|
+
isLoading: boolean;
|
|
9
|
+
isValidating: boolean;
|
|
10
|
+
mutate: import("swr").KeyedMutator<PropertiesGroupList>;
|
|
11
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AxiosError } from "axios";
|
|
2
|
+
import { Inode } from "../types";
|
|
3
|
+
type Arg = {
|
|
4
|
+
/**
|
|
5
|
+
* Updated inodes
|
|
6
|
+
*/
|
|
7
|
+
inodes: Inode[];
|
|
8
|
+
/**
|
|
9
|
+
* Target inode to move the inodes to
|
|
10
|
+
*/
|
|
11
|
+
targetInode?: Inode;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Updates an array of inodes
|
|
15
|
+
* Can be used to move inodes to a new parent or rename them.
|
|
16
|
+
*/
|
|
17
|
+
declare const useRestore: () => {
|
|
18
|
+
trigger: import("swr/mutation").TriggerWithArgs<(Arg & {
|
|
19
|
+
newInodes: Inode[];
|
|
20
|
+
}) | undefined, AxiosError<unknown, any>, string, Arg>;
|
|
21
|
+
};
|
|
22
|
+
export default useRestore;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DossierType, InodeType, InodeTypeRef } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* Sorts a list of type objects by 'orderingWeight' and 'name'.
|
|
4
|
+
*/
|
|
5
|
+
export default function useSortedTypes(types?: (InodeType | InodeTypeRef | DossierType)[]): (InodeType | InodeTypeRef | DossierType)[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DossierType, InodeType } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* Retrieve the list of available Inode types, excluding by default the dossier types
|
|
4
|
+
* @param includeDossierTypes When true, all types (including dossier ones) are returned
|
|
5
|
+
*/
|
|
6
|
+
export default function useTypes<T extends boolean = false>(includeDossierTypes?: T): {
|
|
7
|
+
types: (T extends true ? (InodeType | DossierType)[] : InodeType[]) | undefined;
|
|
8
|
+
error: any;
|
|
9
|
+
isValidating: boolean;
|
|
10
|
+
};
|