-
Notifications
You must be signed in to change notification settings - Fork 74
/
index.d.ts
34 lines (30 loc) · 1.17 KB
/
index.d.ts
1
2
3
4
5
6
7
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
34
declare namespace AzureNotificationHub {
export interface RegistrationConfig {
connectionString: string;
hubName: string;
senderID: string;
tags: string[];
channelName: string;
channelImportance: boolean;
channelShowBadge: boolean;
channelEnableLights: boolean;
channelEnableVibration: boolean;
}
export interface TemplateRegistrationConfig extends RegistrationConfig {
templateName: string;
template: string;
}
export interface RegistrationResponse {
uuid: string;
}
}
declare class AzureNotificationHub {
static register(config: AzureNotificationHub.RegistrationConfig): Promise<AzureNotificationHub.RegistrationResponse>;
static registerTemplate(config: AzureNotificationHub.TemplateRegistrationConfig): Promise<AzureNotificationHub.RegistrationResponse>;
static unregister(): Promise<void>;
static unregisterTemplate(templateName: string): Promise<void>;
static getUUID(autoGen: boolean): Promise<string>;
static getInitialNotification<T>(): Promise<T>;
static isNotificationEnabledOnOSLevel(): Promise<boolean>;
}
export = AzureNotificationHub;