dop-sdk
Version:
Mini App SDK for JavaScript by VTB
42 lines (41 loc) • 905 B
TypeScript
export declare enum NotificationInfoType {
CALLS = 0,
MESSAGES = 1,
HOME = 2,
MAIL = 3,
PROFILE = 4,
SUPPORT = 5,
CUSTOM = 6
}
export declare enum NotificationInfoPriority {
CRITICAL = 0,
MAJOR = 1,
MINOR = 2,
NORMAL = 3,
OFFERS = 4,
MAINTENANCE = 5
}
/**
* Notification Info
*/
export interface NotificationInfo {
badgeNumber?: number;
notificationInfoType?: NotificationInfoType;
notificationInfoPriority?: NotificationInfoPriority;
clearAfterRead?: boolean;
}
/**
* Notification DetailedInfo
*/
export interface NotificationDetailedInfo {
title?: string;
body?: string;
icon?: string;
url?: string;
timestamp?: Date;
additionalData?: string;
badgeNumber?: number;
notificationInfoType?: NotificationInfoType;
notificationInfoPriority?: NotificationInfoPriority;
clearAfterRead?: boolean;
}