NotificationEvents.ts 434 Bytes
Newer Older
yogevbd's avatar
yogevbd committed
1
import { Notification, NotificationActionResponse } from './Notification';
yogevbd's avatar
yogevbd committed
2

yogevbd's avatar
yogevbd committed
3
export interface Registered {
yogevbd's avatar
yogevbd committed
4 5 6
  deviceToken: string;
}

yogevbd's avatar
yogevbd committed
7 8 9 10 11 12 13 14 15 16 17 18
export interface RegistrationError {
  code: string;
  domain: string;
  localizedDescription: string;
}

export interface RegisteredPushKit {
  pushKitToken: string;
}

export interface NotificationResponse {
  identifier: string;
yogevbd's avatar
yogevbd committed
19
  notification: Notification;
yogevbd's avatar
yogevbd committed
20
  action?: NotificationActionResponse
yogevbd's avatar
yogevbd committed
21
}