@emailmaker/filemanager 0.10.16 → 0.10.17
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/constants/errors.d.ts +47 -0
- package/file-manager.d.ts +1 -0
- package/file-manager.esm.js +53 -77712
- package/file-manager.esm.js.map +1 -1
- package/file-manager.js +1 -1
- package/index.d.ts +2 -1
- package/notification.d.ts +123 -2
- package/package.json +1 -1
- package/shared/config.d.ts +1 -1
- package/shared/fileManagerApiError.d.ts +20 -0
- package/types.d.ts +1 -1
- package/utils/errorMessages.d.ts +12 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Коды ошибок для FileManager API.
|
|
3
|
+
* Используются для идентификации причины ошибки независимо от UI.
|
|
4
|
+
*/
|
|
5
|
+
export declare const FileManagerErrorCode: {
|
|
6
|
+
readonly FileNotFound: "FileNotFound";
|
|
7
|
+
readonly FileAlreadyExists: "FileAlreadyExists";
|
|
8
|
+
readonly FileInvalidName: "FileInvalidName";
|
|
9
|
+
readonly FileAccessDenied: "FileAccessDenied";
|
|
10
|
+
readonly FileReadError: "FileReadError";
|
|
11
|
+
readonly FileWriteError: "FileWriteError";
|
|
12
|
+
readonly FileUploadQuotaExceeded: "FileUploadQuotaExceeded";
|
|
13
|
+
readonly FileUploadNetworkError: "FileUploadNetworkError";
|
|
14
|
+
readonly FileDownloadNetworkError: "FileDownloadNetworkError";
|
|
15
|
+
readonly FileBackendError: "FileBackendError";
|
|
16
|
+
readonly FileTimeout: "FileTimeout";
|
|
17
|
+
readonly FolderNotFound: "FolderNotFound";
|
|
18
|
+
readonly FolderAlreadyExists: "FolderAlreadyExists";
|
|
19
|
+
readonly FolderInvalidName: "FolderInvalidName";
|
|
20
|
+
readonly FolderAccessDenied: "FolderAccessDenied";
|
|
21
|
+
readonly FolderReadError: "FolderReadError";
|
|
22
|
+
readonly FolderWriteError: "FolderWriteError";
|
|
23
|
+
readonly FolderQuotaExceeded: "FolderQuotaExceeded";
|
|
24
|
+
readonly FolderBackendError: "FolderBackendError";
|
|
25
|
+
readonly FolderTimeout: "FolderTimeout";
|
|
26
|
+
readonly RenameNotAllowed: "RenameNotAllowed";
|
|
27
|
+
readonly MoveNotAllowed: "MoveNotAllowed";
|
|
28
|
+
readonly CopyNotAllowed: "CopyNotAllowed";
|
|
29
|
+
readonly DeleteNotAllowed: "DeleteNotAllowed";
|
|
30
|
+
readonly MoveIntoSelf: "MoveIntoSelf";
|
|
31
|
+
readonly MoveIntoDescendant: "MoveIntoDescendant";
|
|
32
|
+
readonly BatchPartialFailure: "BatchPartialFailure";
|
|
33
|
+
readonly BatchAllFailed: "BatchAllFailed";
|
|
34
|
+
readonly BatchConflict: "BatchConflict";
|
|
35
|
+
readonly NetworkError: "NetworkError";
|
|
36
|
+
readonly BackendError: "BackendError";
|
|
37
|
+
readonly Timeout: "Timeout";
|
|
38
|
+
readonly AuthenticationFailed: "AuthenticationFailed";
|
|
39
|
+
readonly AuthorizationFailed: "AuthorizationFailed";
|
|
40
|
+
readonly AIResponseInvalid: "AIResponseInvalid";
|
|
41
|
+
readonly AIImageGenerationFailed: "AIImageGenerationFailed";
|
|
42
|
+
readonly AIImageGenerationLimitExceeded: "AIImageGenerationLimitExceeded";
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Тип всех кодов ошибок FileManager
|
|
46
|
+
*/
|
|
47
|
+
export type FileManagerErrorCode = typeof FileManagerErrorCode[keyof typeof FileManagerErrorCode];
|
package/file-manager.d.ts
CHANGED
|
@@ -70,6 +70,7 @@ export interface InitPixieEditorOptions {
|
|
|
70
70
|
locale?: string;
|
|
71
71
|
baseUrl?: string;
|
|
72
72
|
assetsUrl?: string;
|
|
73
|
+
showNotifications?: boolean;
|
|
73
74
|
handleNotify?: NotifyListener<NotifyEvent>;
|
|
74
75
|
handleError?: NotifyListener<Notify.ErrorEvent>;
|
|
75
76
|
handleSuccess?: NotifyListener<Notify.SuccessEvent>;
|