2016-06-28 02:14:33 +08:00
|
|
|
/* eslint quote-props: 0 */
|
|
|
|
|
2022-03-06 05:25:32 +08:00
|
|
|
export const
|
2015-11-15 08:23:16 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @enum {string}
|
|
|
|
*/
|
2023-04-03 16:29:26 +08:00
|
|
|
ScopeMessageList = 'MessageList',
|
|
|
|
ScopeFolderList = 'FolderList',
|
|
|
|
ScopeMessageView = 'MessageView',
|
|
|
|
ScopeSettings = 'Settings',
|
2015-11-15 08:23:16 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @enum {number}
|
|
|
|
*/
|
2022-03-06 05:25:32 +08:00
|
|
|
UploadErrorCode = {
|
2020-08-15 02:35:39 +08:00
|
|
|
Normal: 0,
|
|
|
|
FileIsTooBig: 1,
|
2022-01-11 20:05:17 +08:00
|
|
|
FilePartiallyUploaded: 3,
|
|
|
|
NoFileUploaded: 4,
|
|
|
|
MissingTempFolder: 6,
|
|
|
|
OnSavingFile: 7,
|
2020-08-15 02:35:39 +08:00
|
|
|
FileType: 98,
|
|
|
|
Unknown: 99
|
2022-03-06 05:25:32 +08:00
|
|
|
},
|
2015-11-15 08:23:16 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @enum {number}
|
|
|
|
*/
|
2022-09-26 20:02:30 +08:00
|
|
|
SaveSettingStatus = {
|
|
|
|
Saving: -2,
|
2020-08-15 02:35:39 +08:00
|
|
|
Idle: -1,
|
2022-09-26 20:02:30 +08:00
|
|
|
Success: 1,
|
|
|
|
Failed: 0
|
2022-03-06 05:25:32 +08:00
|
|
|
},
|
2015-11-15 08:23:16 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @enum {number}
|
|
|
|
*/
|
2023-02-20 22:59:37 +08:00
|
|
|
Notifications = {
|
2021-03-18 19:33:13 +08:00
|
|
|
RequestError: 1,
|
|
|
|
RequestAborted: 2,
|
2022-08-02 17:01:19 +08:00
|
|
|
RequestTimeout: 3,
|
2021-03-18 19:33:13 +08:00
|
|
|
|
2021-11-18 23:37:42 +08:00
|
|
|
// Global
|
2020-08-15 02:35:39 +08:00
|
|
|
InvalidToken: 101,
|
|
|
|
AuthError: 102,
|
2021-11-18 23:37:42 +08:00
|
|
|
|
|
|
|
// User
|
2020-08-15 02:35:39 +08:00
|
|
|
ConnectionError: 104,
|
|
|
|
DomainNotAllowed: 109,
|
|
|
|
AccountNotAllowed: 110,
|
|
|
|
|
|
|
|
ContactsSyncError: 140,
|
|
|
|
|
|
|
|
CantGetMessageList: 201,
|
|
|
|
CantGetMessage: 202,
|
|
|
|
CantDeleteMessage: 203,
|
|
|
|
CantMoveMessage: 204,
|
|
|
|
CantCopyMessage: 205,
|
|
|
|
|
|
|
|
CantSaveMessage: 301,
|
|
|
|
CantSendMessage: 302,
|
|
|
|
InvalidRecipients: 303,
|
|
|
|
|
|
|
|
CantSaveFilters: 351,
|
|
|
|
CantGetFilters: 352,
|
2021-01-21 18:00:42 +08:00
|
|
|
CantActivateFiltersScript: 353,
|
|
|
|
CantDeleteFiltersScript: 354,
|
2021-01-22 00:21:19 +08:00
|
|
|
// FiltersAreNotCorrect: 355,
|
2020-08-15 02:35:39 +08:00
|
|
|
|
|
|
|
CantCreateFolder: 400,
|
|
|
|
CantRenameFolder: 401,
|
|
|
|
CantDeleteFolder: 402,
|
|
|
|
CantSubscribeFolder: 403,
|
|
|
|
CantUnsubscribeFolder: 404,
|
|
|
|
CantDeleteNonEmptyFolder: 405,
|
|
|
|
|
2021-01-22 00:21:19 +08:00
|
|
|
// CantSaveSettings: 501,
|
2020-08-15 02:35:39 +08:00
|
|
|
|
|
|
|
DomainAlreadyExists: 601,
|
|
|
|
|
|
|
|
DemoSendMessageError: 750,
|
|
|
|
DemoAccountError: 751,
|
|
|
|
|
|
|
|
AccountAlreadyExists: 801,
|
|
|
|
AccountDoesNotExist: 802,
|
2021-11-12 04:01:39 +08:00
|
|
|
AccountSwitchFailed: 803,
|
2020-08-15 02:35:39 +08:00
|
|
|
|
|
|
|
MailServerError: 901,
|
|
|
|
ClientViewError: 902,
|
|
|
|
InvalidInputArgument: 903,
|
|
|
|
|
2020-12-30 22:50:47 +08:00
|
|
|
JsonFalse: 950,
|
|
|
|
JsonParse: 952,
|
|
|
|
// JsonTimeout: 953,
|
2020-08-15 02:35:39 +08:00
|
|
|
|
2021-01-04 19:08:41 +08:00
|
|
|
UnknownNotification: 998,
|
2021-11-18 23:37:42 +08:00
|
|
|
UnknownError: 999,
|
|
|
|
|
|
|
|
// Admin
|
|
|
|
CantInstallPackage: 701,
|
|
|
|
CantDeletePackage: 702,
|
|
|
|
InvalidPluginPackage: 703,
|
|
|
|
UnsupportedPluginPackage: 704,
|
|
|
|
CantSavePluginSettings: 705
|
2016-04-21 01:12:51 +08:00
|
|
|
};
|