@strapi/upload 5.0.6 → 5.1.1
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/dist/_chunks/{index-p2ufusDD.mjs → index-24xAAxoi.mjs} +12 -9
- package/dist/_chunks/index-24xAAxoi.mjs.map +1 -0
- package/dist/_chunks/{index-BWoTIP6T.js → index-BCVXHM2B.js} +5 -2
- package/dist/_chunks/index-BCVXHM2B.js.map +1 -0
- package/dist/_chunks/{index-D0UI77ZE.mjs → index-BVvzCEIn.mjs} +2 -2
- package/dist/_chunks/{index-D0UI77ZE.mjs.map → index-BVvzCEIn.mjs.map} +1 -1
- package/dist/_chunks/{index-CZ3rXZbR.mjs → index-CAg5RL9X.mjs} +5 -2
- package/dist/_chunks/index-CAg5RL9X.mjs.map +1 -0
- package/dist/_chunks/{index-4dDBcT2s.js → index-Cni0ouV8.js} +370 -318
- package/dist/_chunks/index-Cni0ouV8.js.map +1 -0
- package/dist/_chunks/{index-DPWou2fL.js → index-Cu0crkx4.js} +2 -2
- package/dist/_chunks/{index-DPWou2fL.js.map → index-Cu0crkx4.js.map} +1 -1
- package/dist/_chunks/{index-POwhla6y.js → index-CuoYgn99.js} +12 -9
- package/dist/_chunks/index-CuoYgn99.js.map +1 -0
- package/dist/_chunks/{index-DKKpjnQN.mjs → index-LM-DLJqd.mjs} +370 -318
- package/dist/_chunks/index-LM-DLJqd.mjs.map +1 -0
- package/dist/admin/index.js +4 -1
- package/dist/admin/index.js.map +1 -1
- package/dist/admin/index.mjs +4 -1
- package/dist/admin/index.mjs.map +1 -1
- package/dist/admin/src/components/SelectTree/utils/flattenTree.d.ts +14 -0
- package/dist/admin/src/hooks/useAssets.d.ts +14 -0
- package/dist/admin/src/hooks/useBulkMove.d.ts +78 -0
- package/dist/admin/src/hooks/useBulkRemove.d.ts +73 -0
- package/dist/admin/src/hooks/useConfig.d.ts +5 -0
- package/dist/admin/src/hooks/useCropImg.d.ts +9 -0
- package/dist/admin/src/hooks/useEditAsset.d.ts +119 -0
- package/dist/admin/src/hooks/useEditFolder.d.ts +71 -0
- package/dist/admin/src/hooks/useFolder.d.ts +7 -0
- package/dist/admin/src/hooks/useFolderStructure.d.ts +12 -0
- package/dist/admin/src/hooks/useFolders.d.ts +11 -0
- package/dist/admin/src/hooks/useMediaLibraryPermissions.d.ts +3 -0
- package/dist/admin/src/hooks/useModalQueryParams.d.ts +21 -0
- package/dist/admin/src/hooks/usePersistentState.d.ts +1 -0
- package/dist/admin/src/hooks/useRemoveAsset.d.ts +66 -0
- package/dist/admin/src/hooks/useUpload.d.ts +12 -0
- package/dist/admin/src/hooks/utils/rename-keys.d.ts +6 -0
- package/dist/admin/src/newConstants.d.ts +45 -0
- package/dist/admin/src/pluginId.d.ts +2 -0
- package/dist/admin/src/utils/appendSearchParamsToUrl.d.ts +6 -0
- package/dist/admin/src/utils/containsAssetFilter.d.ts +2 -0
- package/dist/admin/src/utils/createAssetUrl.d.ts +2 -0
- package/dist/admin/src/utils/displayedFilters.d.ts +22 -0
- package/dist/admin/src/utils/downloadFile.d.ts +1 -0
- package/dist/admin/src/utils/findRecursiveFolderByValue.d.ts +10 -0
- package/dist/admin/src/utils/formatBytes.d.ts +1 -0
- package/dist/admin/src/utils/formatDuration.d.ts +1 -0
- package/dist/admin/src/utils/getAPIInnerErrors.d.ts +14 -0
- package/dist/admin/src/utils/getAllowedFiles.d.ts +15 -0
- package/dist/admin/src/utils/getBreadcrumbDataCM.d.ts +19 -0
- package/dist/admin/src/utils/getBreadcrumbDataML.d.ts +18 -0
- package/dist/admin/src/utils/getFileExtension.d.ts +1 -0
- package/dist/admin/src/utils/getFolderParents.d.ts +10 -0
- package/dist/admin/src/utils/getFolderURL.d.ts +5 -0
- package/dist/admin/src/utils/getTrad.d.ts +1 -0
- package/dist/admin/src/utils/index.d.ts +25 -0
- package/dist/admin/src/utils/moveElement.d.ts +1 -0
- package/dist/admin/src/utils/normalizeAPIError.d.ts +22 -0
- package/dist/admin/src/utils/prefixFileUrlWithBackendUrl.d.ts +1 -0
- package/dist/admin/src/utils/prefixPluginTranslations.d.ts +5 -0
- package/dist/admin/src/utils/rawFileToAsset.d.ts +14 -0
- package/dist/admin/src/utils/toSingularTypes.d.ts +2 -0
- package/dist/admin/src/utils/typeFromMime.d.ts +2 -0
- package/dist/admin/src/utils/urlYupSchema.d.ts +8 -0
- package/dist/admin/src/utils/urlsToAssets.d.ts +10 -0
- package/dist/shared/contracts/configuration.d.ts +44 -0
- package/dist/shared/contracts/files.d.ts +207 -0
- package/dist/shared/contracts/folders.d.ts +140 -0
- package/dist/shared/contracts/settings.d.ts +41 -0
- package/package.json +6 -6
- package/dist/_chunks/index-4dDBcT2s.js.map +0 -1
- package/dist/_chunks/index-BWoTIP6T.js.map +0 -1
- package/dist/_chunks/index-CZ3rXZbR.mjs.map +0 -1
- package/dist/_chunks/index-DKKpjnQN.mjs.map +0 -1
- package/dist/_chunks/index-POwhla6y.js.map +0 -1
- package/dist/_chunks/index-p2ufusDD.mjs.map +0 -1
- package/dist/admin/src/hooks/useClipboard.d.ts +0 -4
package/dist/admin/index.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const index = require("../_chunks/index-
|
|
2
|
+
const index = require("../_chunks/index-Cni0ouV8.js");
|
|
3
3
|
require("@strapi/icons");
|
|
4
|
+
require("byte-size");
|
|
5
|
+
require("date-fns");
|
|
6
|
+
require("qs");
|
|
4
7
|
module.exports = index.index;
|
|
5
8
|
//# sourceMappingURL=index.js.map
|
package/dist/admin/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
package/dist/admin/index.mjs
CHANGED
package/dist/admin/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type TreeNode<T> = {
|
|
2
|
+
value: T;
|
|
3
|
+
children?: TreeNode<T>[];
|
|
4
|
+
label?: string;
|
|
5
|
+
};
|
|
6
|
+
export type FlattenedNode<T> = {
|
|
7
|
+
value: T;
|
|
8
|
+
parent?: T;
|
|
9
|
+
depth: number;
|
|
10
|
+
label?: string;
|
|
11
|
+
children?: TreeNode<T>[];
|
|
12
|
+
};
|
|
13
|
+
export default function flattenTree<T>(tree: TreeNode<T>[], parent?: TreeNode<T> | null, depth?: number): FlattenedNode<T>[];
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Query } from '../../../shared/contracts/files';
|
|
2
|
+
interface UseAssetsOptions {
|
|
3
|
+
skipWhen?: boolean;
|
|
4
|
+
query?: Query;
|
|
5
|
+
}
|
|
6
|
+
export declare const useAssets: ({ skipWhen, query }?: UseAssetsOptions) => {
|
|
7
|
+
data: {
|
|
8
|
+
results: import("../../../shared/contracts/files").File[];
|
|
9
|
+
pagination: import("../../../shared/contracts/files").Pagination;
|
|
10
|
+
} | undefined;
|
|
11
|
+
error: import("@strapi/utils/dist/errors").ApplicationError<"ApplicationError", string, unknown> | import("@strapi/utils/dist/errors").NotFoundError<string, unknown> | null | undefined;
|
|
12
|
+
isLoading: boolean;
|
|
13
|
+
};
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { File, BulkMoveFiles } from '../../../shared/contracts/files';
|
|
2
|
+
import { Folder, BulkMoveFolders } from '../../../shared/contracts/folders';
|
|
3
|
+
export interface FolderWithType extends Folder {
|
|
4
|
+
type: string;
|
|
5
|
+
}
|
|
6
|
+
export interface FileWithType extends File {
|
|
7
|
+
type: string;
|
|
8
|
+
}
|
|
9
|
+
interface BulkMoveParams {
|
|
10
|
+
destinationFolderId: number;
|
|
11
|
+
filesAndFolders: Array<FolderWithType | FileWithType>;
|
|
12
|
+
}
|
|
13
|
+
export declare const useBulkMove: () => {
|
|
14
|
+
move: (destinationFolderId: number, filesAndFolders: Array<FolderWithType | FileWithType>) => Promise<BulkMoveFiles.Response | BulkMoveFolders.Response>;
|
|
15
|
+
data: undefined;
|
|
16
|
+
error: null;
|
|
17
|
+
isError: false;
|
|
18
|
+
isIdle: true;
|
|
19
|
+
isLoading: false;
|
|
20
|
+
isSuccess: false;
|
|
21
|
+
status: "idle";
|
|
22
|
+
mutate: import("react-query").UseMutateFunction<BulkMoveFiles.Response | BulkMoveFolders.Response, import("@strapi/utils/dist/errors").ApplicationError<"ApplicationError", string, unknown> | import("@strapi/utils/dist/errors").ValidationError<string, unknown> | undefined, BulkMoveParams, unknown>;
|
|
23
|
+
reset: () => void;
|
|
24
|
+
context: unknown;
|
|
25
|
+
failureCount: number;
|
|
26
|
+
isPaused: boolean;
|
|
27
|
+
variables: BulkMoveParams | undefined;
|
|
28
|
+
mutateAsync: import("react-query").UseMutateAsyncFunction<BulkMoveFiles.Response | BulkMoveFolders.Response, import("@strapi/utils/dist/errors").ApplicationError<"ApplicationError", string, unknown> | import("@strapi/utils/dist/errors").ValidationError<string, unknown> | undefined, BulkMoveParams, unknown>;
|
|
29
|
+
} | {
|
|
30
|
+
move: (destinationFolderId: number, filesAndFolders: Array<FolderWithType | FileWithType>) => Promise<BulkMoveFiles.Response | BulkMoveFolders.Response>;
|
|
31
|
+
data: undefined;
|
|
32
|
+
error: null;
|
|
33
|
+
isError: false;
|
|
34
|
+
isIdle: false;
|
|
35
|
+
isLoading: true;
|
|
36
|
+
isSuccess: false;
|
|
37
|
+
status: "loading";
|
|
38
|
+
mutate: import("react-query").UseMutateFunction<BulkMoveFiles.Response | BulkMoveFolders.Response, import("@strapi/utils/dist/errors").ApplicationError<"ApplicationError", string, unknown> | import("@strapi/utils/dist/errors").ValidationError<string, unknown> | undefined, BulkMoveParams, unknown>;
|
|
39
|
+
reset: () => void;
|
|
40
|
+
context: unknown;
|
|
41
|
+
failureCount: number;
|
|
42
|
+
isPaused: boolean;
|
|
43
|
+
variables: BulkMoveParams | undefined;
|
|
44
|
+
mutateAsync: import("react-query").UseMutateAsyncFunction<BulkMoveFiles.Response | BulkMoveFolders.Response, import("@strapi/utils/dist/errors").ApplicationError<"ApplicationError", string, unknown> | import("@strapi/utils/dist/errors").ValidationError<string, unknown> | undefined, BulkMoveParams, unknown>;
|
|
45
|
+
} | {
|
|
46
|
+
move: (destinationFolderId: number, filesAndFolders: Array<FolderWithType | FileWithType>) => Promise<BulkMoveFiles.Response | BulkMoveFolders.Response>;
|
|
47
|
+
data: undefined;
|
|
48
|
+
error: import("@strapi/utils/dist/errors").ApplicationError<"ApplicationError", string, unknown> | import("@strapi/utils/dist/errors").ValidationError<string, unknown> | undefined;
|
|
49
|
+
isError: true;
|
|
50
|
+
isIdle: false;
|
|
51
|
+
isLoading: false;
|
|
52
|
+
isSuccess: false;
|
|
53
|
+
status: "error";
|
|
54
|
+
mutate: import("react-query").UseMutateFunction<BulkMoveFiles.Response | BulkMoveFolders.Response, import("@strapi/utils/dist/errors").ApplicationError<"ApplicationError", string, unknown> | import("@strapi/utils/dist/errors").ValidationError<string, unknown> | undefined, BulkMoveParams, unknown>;
|
|
55
|
+
reset: () => void;
|
|
56
|
+
context: unknown;
|
|
57
|
+
failureCount: number;
|
|
58
|
+
isPaused: boolean;
|
|
59
|
+
variables: BulkMoveParams | undefined;
|
|
60
|
+
mutateAsync: import("react-query").UseMutateAsyncFunction<BulkMoveFiles.Response | BulkMoveFolders.Response, import("@strapi/utils/dist/errors").ApplicationError<"ApplicationError", string, unknown> | import("@strapi/utils/dist/errors").ValidationError<string, unknown> | undefined, BulkMoveParams, unknown>;
|
|
61
|
+
} | {
|
|
62
|
+
move: (destinationFolderId: number, filesAndFolders: Array<FolderWithType | FileWithType>) => Promise<BulkMoveFiles.Response | BulkMoveFolders.Response>;
|
|
63
|
+
data: BulkMoveFiles.Response | BulkMoveFolders.Response;
|
|
64
|
+
error: null;
|
|
65
|
+
isError: false;
|
|
66
|
+
isIdle: false;
|
|
67
|
+
isLoading: false;
|
|
68
|
+
isSuccess: true;
|
|
69
|
+
status: "success";
|
|
70
|
+
mutate: import("react-query").UseMutateFunction<BulkMoveFiles.Response | BulkMoveFolders.Response, import("@strapi/utils/dist/errors").ApplicationError<"ApplicationError", string, unknown> | import("@strapi/utils/dist/errors").ValidationError<string, unknown> | undefined, BulkMoveParams, unknown>;
|
|
71
|
+
reset: () => void;
|
|
72
|
+
context: unknown;
|
|
73
|
+
failureCount: number;
|
|
74
|
+
isPaused: boolean;
|
|
75
|
+
variables: BulkMoveParams | undefined;
|
|
76
|
+
mutateAsync: import("react-query").UseMutateAsyncFunction<BulkMoveFiles.Response | BulkMoveFolders.Response, import("@strapi/utils/dist/errors").ApplicationError<"ApplicationError", string, unknown> | import("@strapi/utils/dist/errors").ValidationError<string, unknown> | undefined, BulkMoveParams, unknown>;
|
|
77
|
+
};
|
|
78
|
+
export {};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { BulkDeleteFiles, File } from '../../../shared/contracts/files';
|
|
2
|
+
import type { BulkDeleteFolders, Folder } from '../../../shared/contracts/folders';
|
|
3
|
+
export interface FileWithType extends File {
|
|
4
|
+
type: string;
|
|
5
|
+
}
|
|
6
|
+
export interface FolderWithType extends Folder {
|
|
7
|
+
type: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const useBulkRemove: () => {
|
|
10
|
+
remove: (variables: (FileWithType | FolderWithType)[], options?: import("react-query").MutateOptions<BulkDeleteFiles.Response | BulkDeleteFolders.Response, import("@strapi/utils/dist/errors").ApplicationError<"ApplicationError", string, unknown> | import("@strapi/utils/dist/errors").ValidationError<string, unknown> | undefined, (FileWithType | FolderWithType)[], unknown> | undefined) => Promise<BulkDeleteFiles.Response | BulkDeleteFolders.Response>;
|
|
11
|
+
data: undefined;
|
|
12
|
+
error: null;
|
|
13
|
+
isError: false;
|
|
14
|
+
isIdle: true;
|
|
15
|
+
isLoading: false;
|
|
16
|
+
isSuccess: false;
|
|
17
|
+
status: "idle";
|
|
18
|
+
mutate: import("react-query").UseMutateFunction<BulkDeleteFiles.Response | BulkDeleteFolders.Response, import("@strapi/utils/dist/errors").ApplicationError<"ApplicationError", string, unknown> | import("@strapi/utils/dist/errors").ValidationError<string, unknown> | undefined, (FileWithType | FolderWithType)[], unknown>;
|
|
19
|
+
reset: () => void;
|
|
20
|
+
context: unknown;
|
|
21
|
+
failureCount: number;
|
|
22
|
+
isPaused: boolean;
|
|
23
|
+
variables: (FileWithType | FolderWithType)[] | undefined;
|
|
24
|
+
mutateAsync: import("react-query").UseMutateAsyncFunction<BulkDeleteFiles.Response | BulkDeleteFolders.Response, import("@strapi/utils/dist/errors").ApplicationError<"ApplicationError", string, unknown> | import("@strapi/utils/dist/errors").ValidationError<string, unknown> | undefined, (FileWithType | FolderWithType)[], unknown>;
|
|
25
|
+
} | {
|
|
26
|
+
remove: (variables: (FileWithType | FolderWithType)[], options?: import("react-query").MutateOptions<BulkDeleteFiles.Response | BulkDeleteFolders.Response, import("@strapi/utils/dist/errors").ApplicationError<"ApplicationError", string, unknown> | import("@strapi/utils/dist/errors").ValidationError<string, unknown> | undefined, (FileWithType | FolderWithType)[], unknown> | undefined) => Promise<BulkDeleteFiles.Response | BulkDeleteFolders.Response>;
|
|
27
|
+
data: undefined;
|
|
28
|
+
error: null;
|
|
29
|
+
isError: false;
|
|
30
|
+
isIdle: false;
|
|
31
|
+
isLoading: true;
|
|
32
|
+
isSuccess: false;
|
|
33
|
+
status: "loading";
|
|
34
|
+
mutate: import("react-query").UseMutateFunction<BulkDeleteFiles.Response | BulkDeleteFolders.Response, import("@strapi/utils/dist/errors").ApplicationError<"ApplicationError", string, unknown> | import("@strapi/utils/dist/errors").ValidationError<string, unknown> | undefined, (FileWithType | FolderWithType)[], unknown>;
|
|
35
|
+
reset: () => void;
|
|
36
|
+
context: unknown;
|
|
37
|
+
failureCount: number;
|
|
38
|
+
isPaused: boolean;
|
|
39
|
+
variables: (FileWithType | FolderWithType)[] | undefined;
|
|
40
|
+
mutateAsync: import("react-query").UseMutateAsyncFunction<BulkDeleteFiles.Response | BulkDeleteFolders.Response, import("@strapi/utils/dist/errors").ApplicationError<"ApplicationError", string, unknown> | import("@strapi/utils/dist/errors").ValidationError<string, unknown> | undefined, (FileWithType | FolderWithType)[], unknown>;
|
|
41
|
+
} | {
|
|
42
|
+
remove: (variables: (FileWithType | FolderWithType)[], options?: import("react-query").MutateOptions<BulkDeleteFiles.Response | BulkDeleteFolders.Response, import("@strapi/utils/dist/errors").ApplicationError<"ApplicationError", string, unknown> | import("@strapi/utils/dist/errors").ValidationError<string, unknown> | undefined, (FileWithType | FolderWithType)[], unknown> | undefined) => Promise<BulkDeleteFiles.Response | BulkDeleteFolders.Response>;
|
|
43
|
+
data: undefined;
|
|
44
|
+
error: import("@strapi/utils/dist/errors").ApplicationError<"ApplicationError", string, unknown> | import("@strapi/utils/dist/errors").ValidationError<string, unknown> | undefined;
|
|
45
|
+
isError: true;
|
|
46
|
+
isIdle: false;
|
|
47
|
+
isLoading: false;
|
|
48
|
+
isSuccess: false;
|
|
49
|
+
status: "error";
|
|
50
|
+
mutate: import("react-query").UseMutateFunction<BulkDeleteFiles.Response | BulkDeleteFolders.Response, import("@strapi/utils/dist/errors").ApplicationError<"ApplicationError", string, unknown> | import("@strapi/utils/dist/errors").ValidationError<string, unknown> | undefined, (FileWithType | FolderWithType)[], unknown>;
|
|
51
|
+
reset: () => void;
|
|
52
|
+
context: unknown;
|
|
53
|
+
failureCount: number;
|
|
54
|
+
isPaused: boolean;
|
|
55
|
+
variables: (FileWithType | FolderWithType)[] | undefined;
|
|
56
|
+
mutateAsync: import("react-query").UseMutateAsyncFunction<BulkDeleteFiles.Response | BulkDeleteFolders.Response, import("@strapi/utils/dist/errors").ApplicationError<"ApplicationError", string, unknown> | import("@strapi/utils/dist/errors").ValidationError<string, unknown> | undefined, (FileWithType | FolderWithType)[], unknown>;
|
|
57
|
+
} | {
|
|
58
|
+
remove: (variables: (FileWithType | FolderWithType)[], options?: import("react-query").MutateOptions<BulkDeleteFiles.Response | BulkDeleteFolders.Response, import("@strapi/utils/dist/errors").ApplicationError<"ApplicationError", string, unknown> | import("@strapi/utils/dist/errors").ValidationError<string, unknown> | undefined, (FileWithType | FolderWithType)[], unknown> | undefined) => Promise<BulkDeleteFiles.Response | BulkDeleteFolders.Response>;
|
|
59
|
+
data: BulkDeleteFiles.Response | BulkDeleteFolders.Response;
|
|
60
|
+
error: null;
|
|
61
|
+
isError: false;
|
|
62
|
+
isIdle: false;
|
|
63
|
+
isLoading: false;
|
|
64
|
+
isSuccess: true;
|
|
65
|
+
status: "success";
|
|
66
|
+
mutate: import("react-query").UseMutateFunction<BulkDeleteFiles.Response | BulkDeleteFolders.Response, import("@strapi/utils/dist/errors").ApplicationError<"ApplicationError", string, unknown> | import("@strapi/utils/dist/errors").ValidationError<string, unknown> | undefined, (FileWithType | FolderWithType)[], unknown>;
|
|
67
|
+
reset: () => void;
|
|
68
|
+
context: unknown;
|
|
69
|
+
failureCount: number;
|
|
70
|
+
isPaused: boolean;
|
|
71
|
+
variables: (FileWithType | FolderWithType)[] | undefined;
|
|
72
|
+
mutateAsync: import("react-query").UseMutateAsyncFunction<BulkDeleteFiles.Response | BulkDeleteFolders.Response, import("@strapi/utils/dist/errors").ApplicationError<"ApplicationError", string, unknown> | import("@strapi/utils/dist/errors").ValidationError<string, unknown> | undefined, (FileWithType | FolderWithType)[], unknown>;
|
|
73
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { UseMutationResult, UseQueryResult } from 'react-query';
|
|
2
|
+
export declare const useConfig: () => {
|
|
3
|
+
config: UseQueryResult<import("@strapi/utils/dist/errors").ApplicationError<"ApplicationError", string, unknown> | import("@strapi/utils/dist/errors").NotFoundError<string, unknown> | import("../../../shared/contracts/configuration").Configuration | undefined>;
|
|
4
|
+
mutateConfig: UseMutationResult<void, import("@strapi/utils/dist/errors").ApplicationError<"ApplicationError", string, unknown> | import("@strapi/utils/dist/errors").ValidationError<string, unknown> | undefined, import("../../../shared/contracts/configuration").Configuration>;
|
|
5
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const useCropImg: () => {
|
|
2
|
+
width?: number | undefined;
|
|
3
|
+
height?: number | undefined;
|
|
4
|
+
crop: (image: HTMLImageElement) => void;
|
|
5
|
+
produceFile: (name: string, mimeType: string, lastModifiedDate: string) => Promise<unknown>;
|
|
6
|
+
stopCropping: () => void;
|
|
7
|
+
isCropping: boolean;
|
|
8
|
+
isCropperReady: boolean;
|
|
9
|
+
};
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { File as FileAsset } from '../../../shared/contracts/files';
|
|
2
|
+
export type ErrorMutation = {
|
|
3
|
+
message: string;
|
|
4
|
+
response: {
|
|
5
|
+
status: number;
|
|
6
|
+
data: {
|
|
7
|
+
error: Error;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
} | null;
|
|
11
|
+
export declare const useEditAsset: () => {
|
|
12
|
+
cancel: () => void;
|
|
13
|
+
editAsset: (asset: FileAsset, file: File) => Promise<FileAsset>;
|
|
14
|
+
progress: number;
|
|
15
|
+
status: "error" | "success" | "idle" | "loading";
|
|
16
|
+
data: undefined;
|
|
17
|
+
error: null;
|
|
18
|
+
isError: false;
|
|
19
|
+
isIdle: true;
|
|
20
|
+
isLoading: false;
|
|
21
|
+
isSuccess: false;
|
|
22
|
+
mutate: import("react-query").UseMutateFunction<FileAsset, ErrorMutation, {
|
|
23
|
+
asset: FileAsset;
|
|
24
|
+
file: File;
|
|
25
|
+
}, unknown>;
|
|
26
|
+
reset: () => void;
|
|
27
|
+
context: unknown;
|
|
28
|
+
failureCount: number;
|
|
29
|
+
isPaused: boolean;
|
|
30
|
+
variables: {
|
|
31
|
+
asset: FileAsset;
|
|
32
|
+
file: File;
|
|
33
|
+
} | undefined;
|
|
34
|
+
mutateAsync: import("react-query").UseMutateAsyncFunction<FileAsset, ErrorMutation, {
|
|
35
|
+
asset: FileAsset;
|
|
36
|
+
file: File;
|
|
37
|
+
}, unknown>;
|
|
38
|
+
} | {
|
|
39
|
+
cancel: () => void;
|
|
40
|
+
editAsset: (asset: FileAsset, file: File) => Promise<FileAsset>;
|
|
41
|
+
progress: number;
|
|
42
|
+
status: "error" | "success" | "idle" | "loading";
|
|
43
|
+
data: undefined;
|
|
44
|
+
error: null;
|
|
45
|
+
isError: false;
|
|
46
|
+
isIdle: false;
|
|
47
|
+
isLoading: true;
|
|
48
|
+
isSuccess: false;
|
|
49
|
+
mutate: import("react-query").UseMutateFunction<FileAsset, ErrorMutation, {
|
|
50
|
+
asset: FileAsset;
|
|
51
|
+
file: File;
|
|
52
|
+
}, unknown>;
|
|
53
|
+
reset: () => void;
|
|
54
|
+
context: unknown;
|
|
55
|
+
failureCount: number;
|
|
56
|
+
isPaused: boolean;
|
|
57
|
+
variables: {
|
|
58
|
+
asset: FileAsset;
|
|
59
|
+
file: File;
|
|
60
|
+
} | undefined;
|
|
61
|
+
mutateAsync: import("react-query").UseMutateAsyncFunction<FileAsset, ErrorMutation, {
|
|
62
|
+
asset: FileAsset;
|
|
63
|
+
file: File;
|
|
64
|
+
}, unknown>;
|
|
65
|
+
} | {
|
|
66
|
+
cancel: () => void;
|
|
67
|
+
editAsset: (asset: FileAsset, file: File) => Promise<FileAsset>;
|
|
68
|
+
progress: number;
|
|
69
|
+
status: "error" | "success" | "idle" | "loading";
|
|
70
|
+
data: undefined;
|
|
71
|
+
error: ErrorMutation;
|
|
72
|
+
isError: true;
|
|
73
|
+
isIdle: false;
|
|
74
|
+
isLoading: false;
|
|
75
|
+
isSuccess: false;
|
|
76
|
+
mutate: import("react-query").UseMutateFunction<FileAsset, ErrorMutation, {
|
|
77
|
+
asset: FileAsset;
|
|
78
|
+
file: File;
|
|
79
|
+
}, unknown>;
|
|
80
|
+
reset: () => void;
|
|
81
|
+
context: unknown;
|
|
82
|
+
failureCount: number;
|
|
83
|
+
isPaused: boolean;
|
|
84
|
+
variables: {
|
|
85
|
+
asset: FileAsset;
|
|
86
|
+
file: File;
|
|
87
|
+
} | undefined;
|
|
88
|
+
mutateAsync: import("react-query").UseMutateAsyncFunction<FileAsset, ErrorMutation, {
|
|
89
|
+
asset: FileAsset;
|
|
90
|
+
file: File;
|
|
91
|
+
}, unknown>;
|
|
92
|
+
} | {
|
|
93
|
+
cancel: () => void;
|
|
94
|
+
editAsset: (asset: FileAsset, file: File) => Promise<FileAsset>;
|
|
95
|
+
progress: number;
|
|
96
|
+
status: "error" | "success" | "idle" | "loading";
|
|
97
|
+
data: FileAsset;
|
|
98
|
+
error: null;
|
|
99
|
+
isError: false;
|
|
100
|
+
isIdle: false;
|
|
101
|
+
isLoading: false;
|
|
102
|
+
isSuccess: true;
|
|
103
|
+
mutate: import("react-query").UseMutateFunction<FileAsset, ErrorMutation, {
|
|
104
|
+
asset: FileAsset;
|
|
105
|
+
file: File;
|
|
106
|
+
}, unknown>;
|
|
107
|
+
reset: () => void;
|
|
108
|
+
context: unknown;
|
|
109
|
+
failureCount: number;
|
|
110
|
+
isPaused: boolean;
|
|
111
|
+
variables: {
|
|
112
|
+
asset: FileAsset;
|
|
113
|
+
file: File;
|
|
114
|
+
} | undefined;
|
|
115
|
+
mutateAsync: import("react-query").UseMutateAsyncFunction<FileAsset, ErrorMutation, {
|
|
116
|
+
asset: FileAsset;
|
|
117
|
+
file: File;
|
|
118
|
+
}, unknown>;
|
|
119
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { CreateFolders, UpdateFolder } from '../../../shared/contracts/folders';
|
|
2
|
+
interface EditFolderRequestParams {
|
|
3
|
+
attrs: CreateFolders.Request['body'] | UpdateFolder.Request['body'];
|
|
4
|
+
id?: UpdateFolder.Request['params']['id'];
|
|
5
|
+
}
|
|
6
|
+
export declare const useEditFolder: () => {
|
|
7
|
+
editFolder: (attrs: EditFolderRequestParams['attrs'], id?: EditFolderRequestParams['id']) => Promise<import("../../../shared/contracts/folders").Folder>;
|
|
8
|
+
status: "error" | "success" | "idle" | "loading";
|
|
9
|
+
data: undefined;
|
|
10
|
+
error: null;
|
|
11
|
+
isError: false;
|
|
12
|
+
isIdle: true;
|
|
13
|
+
isLoading: false;
|
|
14
|
+
isSuccess: false;
|
|
15
|
+
mutate: import("react-query").UseMutateFunction<import("../../../shared/contracts/folders").Folder, import("@strapi/utils/dist/errors").ApplicationError<"ApplicationError", string, unknown> | import("@strapi/utils/dist/errors").NotFoundError<string, unknown> | import("@strapi/utils/dist/errors").ValidationError<string, unknown> | undefined, EditFolderRequestParams, unknown>;
|
|
16
|
+
reset: () => void;
|
|
17
|
+
context: unknown;
|
|
18
|
+
failureCount: number;
|
|
19
|
+
isPaused: boolean;
|
|
20
|
+
variables: EditFolderRequestParams | undefined;
|
|
21
|
+
mutateAsync: import("react-query").UseMutateAsyncFunction<import("../../../shared/contracts/folders").Folder, import("@strapi/utils/dist/errors").ApplicationError<"ApplicationError", string, unknown> | import("@strapi/utils/dist/errors").NotFoundError<string, unknown> | import("@strapi/utils/dist/errors").ValidationError<string, unknown> | undefined, EditFolderRequestParams, unknown>;
|
|
22
|
+
} | {
|
|
23
|
+
editFolder: (attrs: EditFolderRequestParams['attrs'], id?: EditFolderRequestParams['id']) => Promise<import("../../../shared/contracts/folders").Folder>;
|
|
24
|
+
status: "error" | "success" | "idle" | "loading";
|
|
25
|
+
data: undefined;
|
|
26
|
+
error: null;
|
|
27
|
+
isError: false;
|
|
28
|
+
isIdle: false;
|
|
29
|
+
isLoading: true;
|
|
30
|
+
isSuccess: false;
|
|
31
|
+
mutate: import("react-query").UseMutateFunction<import("../../../shared/contracts/folders").Folder, import("@strapi/utils/dist/errors").ApplicationError<"ApplicationError", string, unknown> | import("@strapi/utils/dist/errors").NotFoundError<string, unknown> | import("@strapi/utils/dist/errors").ValidationError<string, unknown> | undefined, EditFolderRequestParams, unknown>;
|
|
32
|
+
reset: () => void;
|
|
33
|
+
context: unknown;
|
|
34
|
+
failureCount: number;
|
|
35
|
+
isPaused: boolean;
|
|
36
|
+
variables: EditFolderRequestParams | undefined;
|
|
37
|
+
mutateAsync: import("react-query").UseMutateAsyncFunction<import("../../../shared/contracts/folders").Folder, import("@strapi/utils/dist/errors").ApplicationError<"ApplicationError", string, unknown> | import("@strapi/utils/dist/errors").NotFoundError<string, unknown> | import("@strapi/utils/dist/errors").ValidationError<string, unknown> | undefined, EditFolderRequestParams, unknown>;
|
|
38
|
+
} | {
|
|
39
|
+
editFolder: (attrs: EditFolderRequestParams['attrs'], id?: EditFolderRequestParams['id']) => Promise<import("../../../shared/contracts/folders").Folder>;
|
|
40
|
+
status: "error" | "success" | "idle" | "loading";
|
|
41
|
+
data: undefined;
|
|
42
|
+
error: import("@strapi/utils/dist/errors").ApplicationError<"ApplicationError", string, unknown> | import("@strapi/utils/dist/errors").NotFoundError<string, unknown> | import("@strapi/utils/dist/errors").ValidationError<string, unknown> | undefined;
|
|
43
|
+
isError: true;
|
|
44
|
+
isIdle: false;
|
|
45
|
+
isLoading: false;
|
|
46
|
+
isSuccess: false;
|
|
47
|
+
mutate: import("react-query").UseMutateFunction<import("../../../shared/contracts/folders").Folder, import("@strapi/utils/dist/errors").ApplicationError<"ApplicationError", string, unknown> | import("@strapi/utils/dist/errors").NotFoundError<string, unknown> | import("@strapi/utils/dist/errors").ValidationError<string, unknown> | undefined, EditFolderRequestParams, unknown>;
|
|
48
|
+
reset: () => void;
|
|
49
|
+
context: unknown;
|
|
50
|
+
failureCount: number;
|
|
51
|
+
isPaused: boolean;
|
|
52
|
+
variables: EditFolderRequestParams | undefined;
|
|
53
|
+
mutateAsync: import("react-query").UseMutateAsyncFunction<import("../../../shared/contracts/folders").Folder, import("@strapi/utils/dist/errors").ApplicationError<"ApplicationError", string, unknown> | import("@strapi/utils/dist/errors").NotFoundError<string, unknown> | import("@strapi/utils/dist/errors").ValidationError<string, unknown> | undefined, EditFolderRequestParams, unknown>;
|
|
54
|
+
} | {
|
|
55
|
+
editFolder: (attrs: EditFolderRequestParams['attrs'], id?: EditFolderRequestParams['id']) => Promise<import("../../../shared/contracts/folders").Folder>;
|
|
56
|
+
status: "error" | "success" | "idle" | "loading";
|
|
57
|
+
data: import("../../../shared/contracts/folders").Folder;
|
|
58
|
+
error: null;
|
|
59
|
+
isError: false;
|
|
60
|
+
isIdle: false;
|
|
61
|
+
isLoading: false;
|
|
62
|
+
isSuccess: true;
|
|
63
|
+
mutate: import("react-query").UseMutateFunction<import("../../../shared/contracts/folders").Folder, import("@strapi/utils/dist/errors").ApplicationError<"ApplicationError", string, unknown> | import("@strapi/utils/dist/errors").NotFoundError<string, unknown> | import("@strapi/utils/dist/errors").ValidationError<string, unknown> | undefined, EditFolderRequestParams, unknown>;
|
|
64
|
+
reset: () => void;
|
|
65
|
+
context: unknown;
|
|
66
|
+
failureCount: number;
|
|
67
|
+
isPaused: boolean;
|
|
68
|
+
variables: EditFolderRequestParams | undefined;
|
|
69
|
+
mutateAsync: import("react-query").UseMutateAsyncFunction<import("../../../shared/contracts/folders").Folder, import("@strapi/utils/dist/errors").ApplicationError<"ApplicationError", string, unknown> | import("@strapi/utils/dist/errors").NotFoundError<string, unknown> | import("@strapi/utils/dist/errors").ValidationError<string, unknown> | undefined, EditFolderRequestParams, unknown>;
|
|
70
|
+
};
|
|
71
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const useFolder: (id: number, { enabled }?: {
|
|
2
|
+
enabled?: boolean | undefined;
|
|
3
|
+
}) => {
|
|
4
|
+
data: import("../../../shared/contracts/folders").Folder | undefined;
|
|
5
|
+
error: import("@strapi/utils/dist/errors").ApplicationError<"ApplicationError", string, unknown> | import("@strapi/utils/dist/errors").NotFoundError<string, unknown> | null | undefined;
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FolderNode } from '../../../shared/contracts/folders';
|
|
2
|
+
export declare const useFolderStructure: ({ enabled }?: {
|
|
3
|
+
enabled?: boolean | undefined;
|
|
4
|
+
}) => {
|
|
5
|
+
data: {
|
|
6
|
+
value: null;
|
|
7
|
+
label: string;
|
|
8
|
+
children: import("./utils/rename-keys").DeepRecord<FolderNode>[];
|
|
9
|
+
}[] | undefined;
|
|
10
|
+
error: unknown;
|
|
11
|
+
isLoading: boolean;
|
|
12
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Query } from '../../../shared/contracts/files';
|
|
2
|
+
interface UseFoldersOptions {
|
|
3
|
+
enabled?: boolean;
|
|
4
|
+
query?: Query;
|
|
5
|
+
}
|
|
6
|
+
export declare const useFolders: ({ enabled, query }?: UseFoldersOptions) => {
|
|
7
|
+
data: import("../../../shared/contracts/folders").Folder[] | undefined;
|
|
8
|
+
error: import("@strapi/utils/dist/errors").ApplicationError<"ApplicationError", string, unknown> | import("@strapi/utils/dist/errors").NotFoundError<string, unknown> | null | undefined;
|
|
9
|
+
isLoading: boolean;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Query, FilterCondition } from '../../../shared/contracts/files';
|
|
2
|
+
declare const useModalQueryParams: (initialState?: Partial<Query>) => ({
|
|
3
|
+
queryObject: Query;
|
|
4
|
+
rawQuery: string;
|
|
5
|
+
onChangeFilters?: undefined;
|
|
6
|
+
onChangeFolder?: undefined;
|
|
7
|
+
onChangePage?: undefined;
|
|
8
|
+
onChangePageSize?: undefined;
|
|
9
|
+
onChangeSort?: undefined;
|
|
10
|
+
onChangeSearch?: undefined;
|
|
11
|
+
} | {
|
|
12
|
+
onChangeFilters: (nextFilters: FilterCondition<string>[]) => void;
|
|
13
|
+
onChangeFolder: (folder: Query['folder'], folderPath: Query['folderPath']) => void;
|
|
14
|
+
onChangePage: (page: Query['page']) => void;
|
|
15
|
+
onChangePageSize: (pageSize: Query['pageSize']) => void;
|
|
16
|
+
onChangeSort: (sort: Query['sort']) => void;
|
|
17
|
+
onChangeSearch: (_q: Query['_q']) => void;
|
|
18
|
+
queryObject?: undefined;
|
|
19
|
+
rawQuery?: undefined;
|
|
20
|
+
})[];
|
|
21
|
+
export default useModalQueryParams;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { DeleteFile } from '../../../shared/contracts/files';
|
|
2
|
+
export declare const useRemoveAsset: (onSuccess: () => void) => {
|
|
3
|
+
removeAsset: (assetId: number) => Promise<void>;
|
|
4
|
+
data: undefined;
|
|
5
|
+
error: null;
|
|
6
|
+
isError: false;
|
|
7
|
+
isIdle: true;
|
|
8
|
+
isLoading: false;
|
|
9
|
+
isSuccess: false;
|
|
10
|
+
status: "idle";
|
|
11
|
+
mutate: import("react-query").UseMutateFunction<import("@strapi/admin/strapi-admin").FetchResponse<DeleteFile.Response>, Error, number, unknown>;
|
|
12
|
+
reset: () => void;
|
|
13
|
+
context: unknown;
|
|
14
|
+
failureCount: number;
|
|
15
|
+
isPaused: boolean;
|
|
16
|
+
variables: number | undefined;
|
|
17
|
+
mutateAsync: import("react-query").UseMutateAsyncFunction<import("@strapi/admin/strapi-admin").FetchResponse<DeleteFile.Response>, Error, number, unknown>;
|
|
18
|
+
} | {
|
|
19
|
+
removeAsset: (assetId: number) => Promise<void>;
|
|
20
|
+
data: undefined;
|
|
21
|
+
error: null;
|
|
22
|
+
isError: false;
|
|
23
|
+
isIdle: false;
|
|
24
|
+
isLoading: true;
|
|
25
|
+
isSuccess: false;
|
|
26
|
+
status: "loading";
|
|
27
|
+
mutate: import("react-query").UseMutateFunction<import("@strapi/admin/strapi-admin").FetchResponse<DeleteFile.Response>, Error, number, unknown>;
|
|
28
|
+
reset: () => void;
|
|
29
|
+
context: unknown;
|
|
30
|
+
failureCount: number;
|
|
31
|
+
isPaused: boolean;
|
|
32
|
+
variables: number | undefined;
|
|
33
|
+
mutateAsync: import("react-query").UseMutateAsyncFunction<import("@strapi/admin/strapi-admin").FetchResponse<DeleteFile.Response>, Error, number, unknown>;
|
|
34
|
+
} | {
|
|
35
|
+
removeAsset: (assetId: number) => Promise<void>;
|
|
36
|
+
data: undefined;
|
|
37
|
+
error: Error;
|
|
38
|
+
isError: true;
|
|
39
|
+
isIdle: false;
|
|
40
|
+
isLoading: false;
|
|
41
|
+
isSuccess: false;
|
|
42
|
+
status: "error";
|
|
43
|
+
mutate: import("react-query").UseMutateFunction<import("@strapi/admin/strapi-admin").FetchResponse<DeleteFile.Response>, Error, number, unknown>;
|
|
44
|
+
reset: () => void;
|
|
45
|
+
context: unknown;
|
|
46
|
+
failureCount: number;
|
|
47
|
+
isPaused: boolean;
|
|
48
|
+
variables: number | undefined;
|
|
49
|
+
mutateAsync: import("react-query").UseMutateAsyncFunction<import("@strapi/admin/strapi-admin").FetchResponse<DeleteFile.Response>, Error, number, unknown>;
|
|
50
|
+
} | {
|
|
51
|
+
removeAsset: (assetId: number) => Promise<void>;
|
|
52
|
+
data: import("@strapi/admin/strapi-admin").FetchResponse<DeleteFile.Response>;
|
|
53
|
+
error: null;
|
|
54
|
+
isError: false;
|
|
55
|
+
isIdle: false;
|
|
56
|
+
isLoading: false;
|
|
57
|
+
isSuccess: true;
|
|
58
|
+
status: "success";
|
|
59
|
+
mutate: import("react-query").UseMutateFunction<import("@strapi/admin/strapi-admin").FetchResponse<DeleteFile.Response>, Error, number, unknown>;
|
|
60
|
+
reset: () => void;
|
|
61
|
+
context: unknown;
|
|
62
|
+
failureCount: number;
|
|
63
|
+
isPaused: boolean;
|
|
64
|
+
variables: number | undefined;
|
|
65
|
+
mutateAsync: import("react-query").UseMutateAsyncFunction<import("@strapi/admin/strapi-admin").FetchResponse<DeleteFile.Response>, Error, number, unknown>;
|
|
66
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { File, RawFile } from '../../../shared/contracts/files';
|
|
2
|
+
interface Asset extends File {
|
|
3
|
+
rawFile: RawFile;
|
|
4
|
+
}
|
|
5
|
+
export declare const useUpload: () => {
|
|
6
|
+
upload: (asset: Asset, folderId: number) => Promise<File[]>;
|
|
7
|
+
cancel: () => void;
|
|
8
|
+
error: import("@strapi/utils/dist/errors").ApplicationError<"ApplicationError", string, unknown> | import("@strapi/utils/dist/errors").ValidationError<string, unknown> | null | undefined;
|
|
9
|
+
progress: number;
|
|
10
|
+
status: "error" | "success" | "idle" | "loading";
|
|
11
|
+
};
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type Primitive = string | number | boolean | null | undefined;
|
|
2
|
+
export type DeepRecord<T> = {
|
|
3
|
+
[K in keyof T]: T[K] extends Primitive ? T[K] : DeepRecord<T[K]>;
|
|
4
|
+
};
|
|
5
|
+
export declare const recursiveRenameKeys: <T extends object>(obj: T, fn: (key: string) => string) => DeepRecord<T>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export declare enum AssetType {
|
|
2
|
+
Video = "video",
|
|
3
|
+
Image = "image",
|
|
4
|
+
Document = "doc",
|
|
5
|
+
Audio = "audio"
|
|
6
|
+
}
|
|
7
|
+
export declare enum AssetSource {
|
|
8
|
+
Url = "url",
|
|
9
|
+
Computer = "computer"
|
|
10
|
+
}
|
|
11
|
+
export declare const PERMISSIONS: {
|
|
12
|
+
main: {
|
|
13
|
+
action: string;
|
|
14
|
+
subject: null;
|
|
15
|
+
}[];
|
|
16
|
+
copyLink: {
|
|
17
|
+
action: string;
|
|
18
|
+
subject: null;
|
|
19
|
+
}[];
|
|
20
|
+
create: {
|
|
21
|
+
action: string;
|
|
22
|
+
subject: null;
|
|
23
|
+
}[];
|
|
24
|
+
download: {
|
|
25
|
+
action: string;
|
|
26
|
+
subject: null;
|
|
27
|
+
}[];
|
|
28
|
+
read: {
|
|
29
|
+
action: string;
|
|
30
|
+
subject: null;
|
|
31
|
+
}[];
|
|
32
|
+
configureView: {
|
|
33
|
+
action: string;
|
|
34
|
+
subject: null;
|
|
35
|
+
}[];
|
|
36
|
+
settings: {
|
|
37
|
+
action: string;
|
|
38
|
+
subject: null;
|
|
39
|
+
}[];
|
|
40
|
+
update: {
|
|
41
|
+
action: string;
|
|
42
|
+
subject: null;
|
|
43
|
+
fields: null;
|
|
44
|
+
}[];
|
|
45
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
interface AppendSearchParamsToUrlProps {
|
|
2
|
+
url?: string;
|
|
3
|
+
params?: Record<string, string | null | undefined> | string;
|
|
4
|
+
}
|
|
5
|
+
declare const appendSearchParamsToUrl: ({ url, params }: AppendSearchParamsToUrlProps) => string | undefined;
|
|
6
|
+
export { appendSearchParamsToUrl };
|