snappymail/dev/Common/Enums.js

140 lines
2.5 KiB
JavaScript
Raw Normal View History

2016-06-28 02:14:33 +08:00
/* eslint quote-props: 0 */
2015-11-15 08:23:16 +08:00
/**
* @enum {string}
*/
export const Capa = {
2022-01-20 23:38:27 +08:00
GnuPG: 'GNUPG',
OpenPGP: 'OPEN_PGP',
Prefetch: 'PREFETCH',
Contacts: 'CONTACTS',
Search: 'SEARCH',
SearchAdv: 'SEARCH_ADV',
MessageActions: 'MESSAGE_ACTIONS',
AttachmentsActions: 'ATTACHMENTS_ACTIONS',
DangerousActions: 'DANGEROUS_ACTIONS',
Themes: 'THEMES',
UserBackground: 'USER_BACKGROUND',
Sieve: 'SIEVE',
AttachmentThumbnails: 'ATTACHMENT_THUMBNAILS',
AutoLogout: 'AUTOLOGOUT',
2021-10-15 17:58:06 +08:00
Kolab: 'KOLAB',
AdditionalAccounts: 'ADDITIONAL_ACCOUNTS',
Identities: 'IDENTITIES'
2016-04-21 01:12:51 +08:00
};
2015-11-15 08:23:16 +08:00
/**
* @enum {string}
*/
export const Scope = {
All: 'all',
None: 'none',
Contacts: 'Contacts',
MessageList: 'MessageList',
FolderList: 'FolderList',
MessageView: 'MessageView',
Compose: 'Compose',
Settings: 'Settings',
Menu: 'Menu',
ComposeOpenPgp: 'ComposeOpenPgp',
MessageOpenPgp: 'MessageOpenPgp',
ViewOpenPgpKey: 'ViewOpenPgpKey',
KeyboardShortcutsHelp: 'KeyboardShortcutsHelp',
Ask: 'Ask'
2016-04-21 01:12:51 +08:00
};
2015-11-15 08:23:16 +08:00
/**
* @enum {number}
*/
export const UploadErrorCode = {
Normal: 0,
FileIsTooBig: 1,
FilePartiallyUploaded: 3,
NoFileUploaded: 4,
MissingTempFolder: 6,
OnSavingFile: 7,
FileType: 98,
Unknown: 99
2016-04-21 01:12:51 +08:00
};
2015-11-15 08:23:16 +08:00
/**
* @enum {number}
*/
export const SaveSettingsStep = {
Animate: -2,
Idle: -1,
TrueResult: 1,
FalseResult: 0
2016-04-21 01:12:51 +08:00
};
2015-11-15 08:23:16 +08:00
/**
* @enum {number}
*/
export const Notification = {
RequestError: 1,
RequestAborted: 2,
2021-11-18 23:37:42 +08:00
// Global
InvalidToken: 101,
AuthError: 102,
2021-11-18 23:37:42 +08:00
// User
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,
CantActivateFiltersScript: 353,
CantDeleteFiltersScript: 354,
2021-01-22 00:21:19 +08:00
// FiltersAreNotCorrect: 355,
CantCreateFolder: 400,
CantRenameFolder: 401,
CantDeleteFolder: 402,
CantSubscribeFolder: 403,
CantUnsubscribeFolder: 404,
CantDeleteNonEmptyFolder: 405,
2021-01-22 00:21:19 +08:00
// CantSaveSettings: 501,
DomainAlreadyExists: 601,
DemoSendMessageError: 750,
DemoAccountError: 751,
AccountAlreadyExists: 801,
AccountDoesNotExist: 802,
AccountSwitchFailed: 803,
MailServerError: 901,
ClientViewError: 902,
InvalidInputArgument: 903,
JsonFalse: 950,
JsonParse: 952,
// JsonTimeout: 953,
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
};