You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425
  1. /**
  2. * The set of possible notification types.
  3. *
  4. * @enum {string}
  5. */
  6. export const NOTIFICATION_TYPE = {
  7. ERROR: 'error',
  8. INFO: 'info',
  9. NORMAL: 'normal',
  10. SUCCESS: 'success',
  11. WARNING: 'warning'
  12. };
  13. /**
  14. * A mapping of notification type to priority of display.
  15. *
  16. * @enum {number}
  17. */
  18. export const NOTIFICATION_TYPE_PRIORITIES = {
  19. [NOTIFICATION_TYPE.ERROR]: 5,
  20. [NOTIFICATION_TYPE.INFO]: 3,
  21. [NOTIFICATION_TYPE.NORMAL]: 3,
  22. [NOTIFICATION_TYPE.SUCCESS]: 3,
  23. [NOTIFICATION_TYPE.WARNING]: 4
  24. };