appNotifications.ts 471 B

12345678910111213141516171819202122232425
  1. export interface AppNotification {
  2. id?: number;
  3. severity: AppNotificationSeverity;
  4. icon: string;
  5. title: string;
  6. text: string;
  7. timeout: AppNotificationTimeout;
  8. }
  9. export enum AppNotificationSeverity {
  10. Success = 'success',
  11. Warning = 'warning',
  12. Error = 'error',
  13. Info = 'info',
  14. }
  15. export enum AppNotificationTimeout {
  16. Warning = 5000,
  17. Success = 3000,
  18. Error = 7000,
  19. }
  20. export interface AppNotificationsState {
  21. appNotifications: AppNotification[];
  22. }