Notification.ts 652 Bytes
Newer Older
yogevbd's avatar
yogevbd committed
1
export interface Notification {
yogevbd's avatar
yogevbd committed
2
  data: object;
yogevbd's avatar
yogevbd committed
3
  alert: string
yogevbd's avatar
yogevbd committed
4 5 6 7
  sound?: string;
  badge?: number;
  type?: string;
  thread?: string;
yogevbd's avatar
yogevbd committed
8
}
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33

export interface NotificationPermissions {
  badge: boolean;
  alert: boolean;
  sound: boolean;
}

export interface NotificationCategory {
  identifier: string
  actions: [NotificationAction?];
}


export interface NotificationTextInput {
  buttonTitle: string;
  placeholder: string;
}

export interface NotificationAction {
  identifier: string;
  activationMode: 'foreground' | 'authenticationRequired' | 'destructive';
  title: string;
  authenticationRequired: boolean;
  textInput: NotificationTextInput
}