Revert "chore(package): bump dependencies and lint rules"

This reverts commit 21ad4734fa.
This commit is contained in:
Daniel
2018-03-16 22:04:01 +01:00
parent 21ad4734fa
commit 6c938bfdb7
178 changed files with 4221 additions and 10592 deletions
@@ -1,7 +1,8 @@
import { Injectable } from '@angular/core';
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core';
export interface ILocalNotification {
/**
* A unique identifier required to clear, cancel, update or retrieve the local notification in the future
* Default: 0
@@ -66,12 +67,13 @@ export interface ILocalNotification {
smallIcon?: string;
/**
* ANDROID ONLY
* RGB value for the background color of the smallIcon.
* Default: Androids COLOR_DEFAULT, which will vary based on Android version.
*/
* ANDROID ONLY
* RGB value for the background color of the smallIcon.
* Default: Androids COLOR_DEFAULT, which will vary based on Android version.
*/
color?: string;
/**
* ANDROID ONLY
* Ongoing notifications differ from regular notifications in the following ways:
@@ -89,8 +91,8 @@ export interface ILocalNotification {
led?: string;
/**
* Notification priority.
*/
* Notification priority.
*/
priority?: number;
}
@@ -152,6 +154,7 @@ export interface ILocalNotification {
})
@Injectable()
export class LocalNotifications extends IonicNativePlugin {
/**
* Schedules a single or multiple notifications
* @param options {Notification | Array<ILocalNotification>} optional
@@ -159,7 +162,7 @@ export class LocalNotifications extends IonicNativePlugin {
@Cordova({
sync: true
})
schedule(options?: ILocalNotification | Array<ILocalNotification>): void {}
schedule(options?: ILocalNotification | Array<ILocalNotification>): void { }
/**
* Updates a previously scheduled notification. Must include the id in the options parameter.
@@ -168,7 +171,7 @@ export class LocalNotifications extends IonicNativePlugin {
@Cordova({
sync: true
})
update(options?: ILocalNotification): void {}
update(options?: ILocalNotification): void { }
/**
* Clears single or multiple notifications
@@ -176,9 +179,7 @@ export class LocalNotifications extends IonicNativePlugin {
* @returns {Promise<any>} Returns a promise when the notification had been cleared
*/
@Cordova()
clear(notificationId: any): Promise<any> {
return;
}
clear(notificationId: any): Promise<any> { return; }
/**
* Clears all notifications
@@ -188,9 +189,7 @@ export class LocalNotifications extends IonicNativePlugin {
successIndex: 0,
errorIndex: 2
})
clearAll(): Promise<any> {
return;
}
clearAll(): Promise<any> { return; }
/**
* Cancels single or multiple notifications
@@ -198,9 +197,7 @@ export class LocalNotifications extends IonicNativePlugin {
* @returns {Promise<any>} Returns a promise when the notification is canceled
*/
@Cordova()
cancel(notificationId: any): Promise<any> {
return;
}
cancel(notificationId: any): Promise<any> { return; }
/**
* Cancels all notifications
@@ -210,9 +207,7 @@ export class LocalNotifications extends IonicNativePlugin {
successIndex: 0,
errorIndex: 2
})
cancelAll(): Promise<any> {
return;
}
cancelAll(): Promise<any> { return; }
/**
* Checks presence of a notification
@@ -220,9 +215,7 @@ export class LocalNotifications extends IonicNativePlugin {
* @returns {Promise<boolean>}
*/
@Cordova()
isPresent(notificationId: number): Promise<boolean> {
return;
}
isPresent(notificationId: number): Promise<boolean> { return; }
/**
* Checks is a notification is scheduled
@@ -230,9 +223,7 @@ export class LocalNotifications extends IonicNativePlugin {
* @returns {Promise<boolean>}
*/
@Cordova()
isScheduled(notificationId: number): Promise<boolean> {
return;
}
isScheduled(notificationId: number): Promise<boolean> { return; }
/**
* Checks if a notification is triggered
@@ -240,36 +231,28 @@ export class LocalNotifications extends IonicNativePlugin {
* @returns {Promise<boolean>}
*/
@Cordova()
isTriggered(notificationId: number): Promise<boolean> {
return;
}
isTriggered(notificationId: number): Promise<boolean> { return; }
/**
* Get all the notification ids
* @returns {Promise<Array<number>>}
*/
@Cordova()
getAllIds(): Promise<Array<number>> {
return;
}
getAllIds(): Promise<Array<number>> { return; }
/**
* Get the ids of triggered notifications
* @returns {Promise<Array<number>>}
*/
@Cordova()
getTriggeredIds(): Promise<Array<number>> {
return;
}
getTriggeredIds(): Promise<Array<number>> { return; }
/**
* Get the ids of scheduled notifications
* @returns {Promise<Array<number>>} Returns a promise
*/
@Cordova()
getScheduledIds(): Promise<Array<number>> {
return;
}
getScheduledIds(): Promise<Array<number>> { return; }
/**
* Get a notification object
@@ -277,9 +260,7 @@ export class LocalNotifications extends IonicNativePlugin {
* @returns {Promise<ILocalNotification>}
*/
@Cordova()
get(notificationId: any): Promise<ILocalNotification> {
return;
}
get(notificationId: any): Promise<ILocalNotification> { return; }
/**
* Get a scheduled notification object
@@ -287,9 +268,7 @@ export class LocalNotifications extends IonicNativePlugin {
* @returns {Promise<ILocalNotification>}
*/
@Cordova()
getScheduled(notificationId: any): Promise<ILocalNotification> {
return;
}
getScheduled(notificationId: any): Promise<ILocalNotification> { return; }
/**
* Get a triggered notification object
@@ -297,54 +276,43 @@ export class LocalNotifications extends IonicNativePlugin {
* @returns {Promise<ILocalNotification>}
*/
@Cordova()
getTriggered(notificationId: any): Promise<ILocalNotification> {
return;
}
getTriggered(notificationId: any): Promise<ILocalNotification> { return; }
/**
* Get all notification objects
* @returns {Promise<Array<ILocalNotification>>}
*/
@Cordova()
getAll(): Promise<Array<ILocalNotification>> {
return;
}
getAll(): Promise<Array<ILocalNotification>> { return; }
/**
* Get all scheduled notification objects
* @returns {Promise<Array<ILocalNotification>>}
*/
@Cordova()
getAllScheduled(): Promise<Array<ILocalNotification>> {
return;
}
getAllScheduled(): Promise<Array<ILocalNotification>> { return; }
/**
* Get all triggered notification objects
* @returns {Promise<Array<ILocalNotification>>}
*/
@Cordova()
getAllTriggered(): Promise<Array<ILocalNotification>> {
return;
}
getAllTriggered(): Promise<Array<ILocalNotification>> { return; }
/**
* Request permission to show notifications if not already granted.
* @returns {Promise<boolean>}
*/
@Cordova()
requestPermission(): Promise<boolean> {
return;
}
requestPermission(): Promise<boolean> { return; }
/**
* Informs if the app has the permission to show notifications.
* @returns {Promise<boolean>}
*/
@Cordova()
hasPermission(): Promise<boolean> {
return;
}
hasPermission(): Promise<boolean> { return; }
/**
* Sets a callback for a specific event
@@ -354,7 +322,7 @@ export class LocalNotifications extends IonicNativePlugin {
@Cordova({
sync: true
})
on(eventName: string, callback: any): void {}
on(eventName: string, callback: any): void { }
/**
* Removes a callback of a specific event
@@ -364,5 +332,7 @@ export class LocalNotifications extends IonicNativePlugin {
@Cordova({
sync: true
})
un(eventName: string, callback: any): void {}
un(eventName: string, callback: any): void { }
}