From 0daab8c31d69324a46205005b825db5b9e963164 Mon Sep 17 00:00:00 2001 From: quentin Date: Fri, 6 Oct 2017 20:12:39 +0200 Subject: [PATCH 001/110] docs(spinner-dialog): improve options documentation --- src/@ionic-native/plugins/spinner-dialog/index.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/@ionic-native/plugins/spinner-dialog/index.ts b/src/@ionic-native/plugins/spinner-dialog/index.ts index 25905669f..7b032b0f8 100644 --- a/src/@ionic-native/plugins/spinner-dialog/index.ts +++ b/src/@ionic-native/plugins/spinner-dialog/index.ts @@ -2,9 +2,24 @@ import { Injectable } from '@angular/core'; import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; export interface SpinnerDialogIOSOptions { + /** + * Opacity of the overlay, between 0 (transparent) and 1 (opaque). Default: 0.35 + */ overlayOpacity?: number; + + /** + * Red component of the text color, between 0 and 1. Default: 1 + */ textColorRed?: number; + + /** + * Green component of the text color, between 0 and 1. Default: 1 + */ textColorGreen?: number; + + /** + * Blue component of the text color, between 0 and 1. Default: 1 + */ textColorBlue?: number; } From 38eaeffe7e1dc590ada8b78237b6f15e3bbab83a Mon Sep 17 00:00:00 2001 From: Paulo Vitor Magacho da Silva Date: Sun, 8 Oct 2017 10:44:50 -0300 Subject: [PATCH 002/110] Added Electric Imp Blinkup Plugin support --- src/@ionic-native/plugins/blinkup/index.ts | 114 +++++++++++++++++++++ 1 file changed, 114 insertions(+) create mode 100644 src/@ionic-native/plugins/blinkup/index.ts diff --git a/src/@ionic-native/plugins/blinkup/index.ts b/src/@ionic-native/plugins/blinkup/index.ts new file mode 100644 index 000000000..b02d7154f --- /dev/null +++ b/src/@ionic-native/plugins/blinkup/index.ts @@ -0,0 +1,114 @@ +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Observable } from 'rxjs/Observable'; +import { Injectable } from '@angular/core'; + +/** + * Interface of a blink up options. + */ +export interface BlinkUpOptions { + apiKey: string; + developmentPlanId?: string; + isInDevelopment?: boolean; + timeoutMs?: number; +} + +/** + * Interface of a blink up wifi options. + */ +export interface BlinkUpWifiOptions { + apiKey: string; + timeoutMs?: number; + ssid: string; + password: string; +} + +/** + * Interface of a blink up wps options. + */ +export interface BlinkUpWPSOptions { + apiKey: string; + timeoutMs?: number; + wpsPin: string; +} + +/** + * @name BlinkUp + * @description + * Electric Imp BlinkUp ionic plugin. + * + * @usage + * ```typescript + * import { BlinkUp } from '@ionic-native/blinkup'; + * + * const options = { + * apiKey: 'API_KEY', + * timeoutMs: 60000, + * ssid: 'MY_SSID', + * password: 'MY_PASSWORD' + * } + * BlinkUp.flashWifiBlinkUp(options).subscribe( + * (result) => console.log('Done'), + * (error) => console.log(error) + * ) + * ``` + */ +@Plugin({ + pluginName: 'BlinkUp', + plugin: 'cordova-plugin-blinkup', + pluginRef: 'blinkup', + repo: 'https://github.com/SensorShare/cordova-plugin-blinkup', + platforms: ['Android', 'iOS'] +}) +@Injectable() +export class BlinkUp extends IonicNativePlugin { + /** + * startBlinkUp - starts the blinkup process + * @param {module:blinkup.BlinkUpOptions} options BlinkUp Options + * @return {Observable} Returns an Observable + */ + @Cordova({ + callbackOrder: 'reverse', + observable: true + }) + startBlinkUp(options: BlinkUpOptions): Observable { return; } + + /** + * flashWifiBlinkUp - invokes the flash wifi process + * @param {module:blinkup.BlinkUpWifiOptions} options BlinkUp Wifi Options + * @return {Observable} Returns an Observable + */ + @Cordova({ + callbackOrder: 'reverse', + observable: true + }) + flashWifiBlinkUp(options: BlinkUpWifiOptions): Observable { return; } + + /** + * flashWPSBlinkUp - invokes the flash wps process + * @param {module:blinkup.BlinkUpWPSOptions} options BlinkUp WPS Options + * @return {Observable} Returns an Observable + */ + @Cordova({ + callbackOrder: 'reverse', + observable: true + }) + flashWPSBlinkUp(options: BlinkUpWPSOptions): Observable { return; } + + /** + * abortBlinkUp - abort blinkup process + * @return {Observable} Returns an Observable + */ + @Cordova({ + observable: true + }) + abortBlinkUp(): Observable { return; } + + /** + * clearBlinkUpData - clear wifi data + * @return {Observable} Returns an Observable + */ + @Cordova({ + observable: true + }) + clearBlinkUpData(): Observable { return; } +} From bfbbc2ee124f89a819f240f3d079e3f85d07db69 Mon Sep 17 00:00:00 2001 From: Jonathan Tavares Date: Thu, 2 Nov 2017 16:21:51 +0000 Subject: [PATCH 003/110] feat(DocumentPicker) adds DocumentPicker ios plugin --- .../plugins/document-picker/index.ts | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 src/@ionic-native/plugins/document-picker/index.ts diff --git a/src/@ionic-native/plugins/document-picker/index.ts b/src/@ionic-native/plugins/document-picker/index.ts new file mode 100644 index 000000000..560c4afb5 --- /dev/null +++ b/src/@ionic-native/plugins/document-picker/index.ts @@ -0,0 +1,57 @@ + +import { Injectable } from '@angular/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; + +/** + * Filter options + */ +export enum DocumentPickerOptions { + /** Show only PDF files */ + PDF = 'pdf', + /** show only image files */ + IMAGE = 'image', + /** show all files */ + ALL = 'all' +} + + +/** + * @name DocumentPicker + * @description + * + * Opens the file picker on iOS for the user to select a file, returns a file URI. + * Allows the user to upload files from icloud + * + * @usage + * ```typescript + * import { DocumentPicker, DocumentPickerOptions } from '@ionic-native/document-picker'; + * + * constructor(private docPicker: DocumentPicker) { } + * + * ... + * + * this.docPicker.getFile(DocumentPickerOptions.ALL) + * .then(uri => console.log(uri)) + * .catch(e => console.log(e)); + * + * ``` + */ +@Plugin({ + pluginName: 'DocumentPicker', + plugin: 'cordova-plugin-documentpicker.DocumentPicker', + pluginRef: 'DocumentPicker', + repo: 'https://github.com/iampossible/Cordova-DocPicker', + platforms: ['iOS'] +}) +@Injectable() +export class DocumentPicker extends IonicNativePlugin { + + /** + * Open a file + * @param {DocumentPickerOptions} filters files between 'image', 'pdf' or 'all' + * @returns {Promise} + */ + @Cordova() + getFile(options?: DocumentPickerOptions | string): Promise { return; } + +} From e9580b46ef3c022f134f86e213ee8b6352c48766 Mon Sep 17 00:00:00 2001 From: Jonathan Tavares Date: Thu, 2 Nov 2017 16:38:18 +0000 Subject: [PATCH 004/110] fix(DocumentPicker) uses String instead of DocumentPickerOptions --- .../plugins/document-picker/index.ts | 20 ++++--------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/src/@ionic-native/plugins/document-picker/index.ts b/src/@ionic-native/plugins/document-picker/index.ts index 560c4afb5..d2c028a71 100644 --- a/src/@ionic-native/plugins/document-picker/index.ts +++ b/src/@ionic-native/plugins/document-picker/index.ts @@ -2,18 +2,6 @@ import { Injectable } from '@angular/core'; import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; -/** - * Filter options - */ -export enum DocumentPickerOptions { - /** Show only PDF files */ - PDF = 'pdf', - /** show only image files */ - IMAGE = 'image', - /** show all files */ - ALL = 'all' -} - /** * @name DocumentPicker @@ -24,13 +12,13 @@ export enum DocumentPickerOptions { * * @usage * ```typescript - * import { DocumentPicker, DocumentPickerOptions } from '@ionic-native/document-picker'; + * import { DocumentPicker } from '@ionic-native/document-picker'; * * constructor(private docPicker: DocumentPicker) { } * * ... * - * this.docPicker.getFile(DocumentPickerOptions.ALL) + * this.docPicker.getFile('all') * .then(uri => console.log(uri)) * .catch(e => console.log(e)); * @@ -48,10 +36,10 @@ export class DocumentPicker extends IonicNativePlugin { /** * Open a file - * @param {DocumentPickerOptions} filters files between 'image', 'pdf' or 'all' + * @param {string} filters files between 'image', 'pdf' or 'all' * @returns {Promise} */ @Cordova() - getFile(options?: DocumentPickerOptions | string): Promise { return; } + getFile(options?: string): Promise { return; } } From e480d296feda5e9c07b3ac3699eb76d2056867ea Mon Sep 17 00:00:00 2001 From: Ibby Hadeed Date: Mon, 11 Dec 2017 19:34:54 -0500 Subject: [PATCH 005/110] 4.5.2 --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index ebea6004b..c7cf02487 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "ionic-native", - "version": "4.5.1", + "version": "4.5.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 17c920439..dfead97ca 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ionic-native", - "version": "4.5.1", + "version": "4.5.2", "description": "Native plugin wrappers for Cordova and Ionic with TypeScript, ES6+, Promise and Observable support", "homepage": "https://ionicframework.com/", "author": "Ionic Team (https://ionic.io)", From adf10a301ee5b69878aad0f3c6addec7c8a40c43 Mon Sep 17 00:00:00 2001 From: Andrew Crites Date: Wed, 13 Dec 2017 14:52:45 -0500 Subject: [PATCH 006/110] docs(http): linking Stackoverflow answer for .pem to .cer --- src/@ionic-native/plugins/http/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/http/index.ts b/src/@ionic-native/plugins/http/index.ts index 56c84069d..b8e1da71a 100644 --- a/src/@ionic-native/plugins/http/index.ts +++ b/src/@ionic-native/plugins/http/index.ts @@ -130,7 +130,7 @@ export class HTTP extends IonicNativePlugin { /** * Enable or disable SSL Pinning. This defaults to false. * - * To use SSL pinning you must include at least one .cer SSL certificate in your app project. You can pin to your server certificate or to one of the issuing CA certificates. For ios include your certificate in the root level of your bundle (just add the .cer file to your project/target at the root level). For android include your certificate in your project's platforms/android/assets folder. In both cases all .cer files found will be loaded automatically. If you only have a .pem certificate see this stackoverflow answer. You want to convert it to a DER encoded certificate with a .cer extension. + * To use SSL pinning you must include at least one .cer SSL certificate in your app project. You can pin to your server certificate or to one of the issuing CA certificates. For ios include your certificate in the root level of your bundle (just add the .cer file to your project/target at the root level). For android include your certificate in your project's platforms/android/assets folder. In both cases all .cer files found will be loaded automatically. If you only have a .pem certificate see this [stackoverflow answer](https://stackoverflow.com/questions/16583428/how-to-convert-an-ssl-certificate-in-linux/16583429#16583429). You want to convert it to a DER encoded certificate with a .cer extension. * * As an alternative, you can store your .cer files in the www/certificates folder. * @param enable {boolean} Set to true to enable From 2da568616deb4f8d5b53e84730b3723a366ae38c Mon Sep 17 00:00:00 2001 From: Mike Roberts Date: Wed, 13 Dec 2017 19:27:52 -0500 Subject: [PATCH 007/110] docs(GoogleMaps): GoogleMaps.prototype.create is deprecated, so updating docs to use static method. --- src/@ionic-native/plugins/google-maps/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/@ionic-native/plugins/google-maps/index.ts b/src/@ionic-native/plugins/google-maps/index.ts index fee5b298f..c1b6ff599 100644 --- a/src/@ionic-native/plugins/google-maps/index.ts +++ b/src/@ionic-native/plugins/google-maps/index.ts @@ -801,7 +801,7 @@ export const GoogleMapsMapTypeId: { [mapType: string]: MapType; } = { * }) * export class HomePage { * map: GoogleMap; - * constructor(private googleMaps: GoogleMaps) { } + * constructor() { } * * ionViewDidLoad() { * this.loadMap(); @@ -820,7 +820,7 @@ export const GoogleMapsMapTypeId: { [mapType: string]: MapType; } = { * } * }; * - * this.map = this.googleMaps.create('map_canvas', mapOptions); + * this.map = GoogleMaps.create('map_canvas', mapOptions); * * // Wait the MAP_READY before using any methods. * this.map.one(GoogleMapsEvent.MAP_READY) From c309a3027f7b4753c678c3b930dca0d82b7771a2 Mon Sep 17 00:00:00 2001 From: Gregg Lewis Date: Wed, 13 Dec 2017 21:24:27 -0700 Subject: [PATCH 008/110] correct typo --- src/@ionic-native/plugins/background-mode/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/background-mode/index.ts b/src/@ionic-native/plugins/background-mode/index.ts index 2d7159290..ec2e7581a 100644 --- a/src/@ionic-native/plugins/background-mode/index.ts +++ b/src/@ionic-native/plugins/background-mode/index.ts @@ -26,7 +26,7 @@ export interface BackgroundModeConfiguration { color?: string; /** - * By default the app will come to foreground when taping on the notification. If false, plugin won't come to foreground when tapped. + * By default the app will come to foreground when tapping on the notification. If false, plugin won't come to foreground when tapped. */ resume?: boolean; From 2714bcae7ed9f97452da1696834162c22ccc2a11 Mon Sep 17 00:00:00 2001 From: JKH4 Date: Fri, 15 Dec 2017 14:05:07 +0100 Subject: [PATCH 009/110] Replace registerPermission by requestPermission According to cordova-plugin-local-notifications update : cordova.plugins.notification.local.requestPermission(function (granted) { ... }); --- src/@ionic-native/plugins/local-notifications/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/@ionic-native/plugins/local-notifications/index.ts b/src/@ionic-native/plugins/local-notifications/index.ts index bef5c4fda..74dd1e6bf 100644 --- a/src/@ionic-native/plugins/local-notifications/index.ts +++ b/src/@ionic-native/plugins/local-notifications/index.ts @@ -300,11 +300,11 @@ export class LocalNotifications extends IonicNativePlugin { getAllTriggered(): Promise> { return; } /** - * Register permission to show notifications if not already granted. + * Request permission to show notifications if not already granted. * @returns {Promise} */ @Cordova() - registerPermission(): Promise { return; } + requestPermission(): Promise { return; } /** * Informs if the app has the permission to show notifications. From a413cf02e439737bcd72aee34991303f06c5e98f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20L=C3=B3pez=20Castellote?= Date: Sat, 6 Jan 2018 01:53:06 +0100 Subject: [PATCH 010/110] updated example link to an up to date one The example: https://github.com/Dellos7/example-cordova-code-push-plugin contains an up-to-date example of how to use this plugin with Ionic; the current link is an outdated one. --- src/@ionic-native/plugins/code-push/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/code-push/index.ts b/src/@ionic-native/plugins/code-push/index.ts index 59b5591cf..6db99ce70 100644 --- a/src/@ionic-native/plugins/code-push/index.ts +++ b/src/@ionic-native/plugins/code-push/index.ts @@ -400,7 +400,7 @@ export interface DownloadProgress { * @description * CodePush plugin for Cordova by Microsoft that supports iOS and Android. * - * For more info, please see https://github.com/ksachdeva/ionic2-code-push-example + * For more info, please see https://github.com/Dellos7/example-cordova-code-push-plugin * * @usage * ```typescript From 4fc97037ac89aa97c386d9659c21cd8ad89fbf98 Mon Sep 17 00:00:00 2001 From: Miguel <4057053+migburillo@users.noreply.github.com> Date: Mon, 15 Jan 2018 15:48:08 +0100 Subject: [PATCH 011/110] Update mixpanel Added events: getSuperProperties, registerSuperPropertiesOnce, unregisterSuperProperty --- src/@ionic-native/plugins/mixpanel/index.ts | 23 +++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/@ionic-native/plugins/mixpanel/index.ts b/src/@ionic-native/plugins/mixpanel/index.ts index debf12a63..af5f2432c 100644 --- a/src/@ionic-native/plugins/mixpanel/index.ts +++ b/src/@ionic-native/plugins/mixpanel/index.ts @@ -72,6 +72,13 @@ export class Mixpanel extends IonicNativePlugin { @Cordova() init(token: string): Promise { return; } + /** + * + * @returns {Promise} + */ + @Cordova() + getSuperProperties(): Promise { return; } + /** * * @param superProperties {any} @@ -80,6 +87,22 @@ export class Mixpanel extends IonicNativePlugin { @Cordova() registerSuperProperties(superProperties: any): Promise { return; } + /** + * + * @param superProperties {any} + * @returns {Promise} + */ + @Cordova() + registerSuperPropertiesOnce(superProperties: any): Promise { return; } + + /** + * + * @param superPropertyName {string} + * @returns {Promise} + */ + @Cordova() + unregisterSuperProperty(superPropertyName: string): Promise { return; } + /** * * @returns {Promise} From 03fc978db225e9c0a734a54a51e5589226c7ce34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Garc=C3=ADa?= Date: Fri, 29 Dec 2017 03:27:53 +0100 Subject: [PATCH 012/110] fix channels fix channels add sound to channels fix channels --- src/@ionic-native/plugins/push/index.ts | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/@ionic-native/plugins/push/index.ts b/src/@ionic-native/plugins/push/index.ts index 0d5d866da..604be908d 100644 --- a/src/@ionic-native/plugins/push/index.ts +++ b/src/@ionic-native/plugins/push/index.ts @@ -219,6 +219,7 @@ export interface Channel { id: string; description: string; importance: Priority; + sound?: string; } export type PushEvent = string; @@ -332,17 +333,21 @@ export class Push extends IonicNativePlugin { /** * Create a new notification channel for Android O and above. - * @param channel {Channel} + * @param [channel] {Channel} */ - @Cordova() - createChannel(channel: Channel): Promise { return; } + @Cordova({ + callbackOrder: 'reverse' + }) + createChannel(channel?: Channel): Promise { return; } /** * Delete a notification channel for Android O and above. - * @param id + * @param [id] */ - @Cordova() - deleteChannel(id: string): Promise { return; } + @Cordova({ + callbackOrder: 'reverse' + }) + deleteChannel(id?: string): Promise { return; } /** * Returns a list of currently configured channels. From 288d6ed8948dde7ad162193e37ec76848744d161 Mon Sep 17 00:00:00 2001 From: App Evangelist Date: Tue, 16 Jan 2018 14:39:12 +0100 Subject: [PATCH 013/110] docs(cordova-file): added ArrayBuffer --- src/@ionic-native/plugins/file/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/file/index.ts b/src/@ionic-native/plugins/file/index.ts index f6c7f06dc..8b4bfd9dd 100644 --- a/src/@ionic-native/plugins/file/index.ts +++ b/src/@ionic-native/plugins/file/index.ts @@ -1000,7 +1000,7 @@ export class File extends IonicNativePlugin { * * @param {string} path Base FileSystem. Please refer to the iOS and Android filesystems above * @param {string} fileName path relative to base path - * @param {string | Blob} text content or blob to write + * @param {string | Blob | ArrayBuffer} text content, blob or ArrayBuffer to write * @param {IWriteOptions} options replace file if set to true. See WriteOptions for more information. * @returns {Promise} Returns a Promise that resolves to updated file entry or rejects with an error. */ From 6e58192630b2d58fa20db0c7cf5a99e93f43b8d4 Mon Sep 17 00:00:00 2001 From: Pedro Plasencia Date: Thu, 18 Jan 2018 10:47:04 -0400 Subject: [PATCH 014/110] feat(local-notifications): added a new param to specify if the notification will be silent --- src/@ionic-native/plugins/local-notifications/index.ts | 5 +++++ 1 file changed, 5 insertions(+) mode change 100644 => 100755 src/@ionic-native/plugins/local-notifications/index.ts diff --git a/src/@ionic-native/plugins/local-notifications/index.ts b/src/@ionic-native/plugins/local-notifications/index.ts old mode 100644 new mode 100755 index bef5c4fda..41f9cba64 --- a/src/@ionic-native/plugins/local-notifications/index.ts +++ b/src/@ionic-native/plugins/local-notifications/index.ts @@ -94,6 +94,11 @@ export interface ILocalNotification { * Notification priority. */ priority?: number; + + /** + * Is a silent notification + */ + silent?: boolean; } /** From e7968da7f4a9a1b067b08010c7eac21b47190967 Mon Sep 17 00:00:00 2001 From: Guillaume Royer Date: Wed, 17 Jan 2018 09:40:58 +0000 Subject: [PATCH 015/110] feat(hot code push): add cordova-hot-code-push --- .../plugins/hot-code-push/index.ts | 131 ++++++++++++++++++ 1 file changed, 131 insertions(+) create mode 100644 src/@ionic-native/plugins/hot-code-push/index.ts diff --git a/src/@ionic-native/plugins/hot-code-push/index.ts b/src/@ionic-native/plugins/hot-code-push/index.ts new file mode 100644 index 000000000..92f08ca65 --- /dev/null +++ b/src/@ionic-native/plugins/hot-code-push/index.ts @@ -0,0 +1,131 @@ +import { Injectable } from '@angular/core'; +import { Cordova, Plugin, IonicNativePlugin, CordovaCheck } from '@ionic-native/core'; + +declare var chcp: any; + +export interface HotCodePushVersion { + /** + * Application's version name. This version is visible to the user on the stores. + */ + appVersion: string; + /** + * Application's build version number. + */ + buildVersion: string; + /** + * Version of the web content, that is displayed to the user. Basically, value of the release property from chcp.json file in your local www folder. + */ + currentWebVersion: string; + /** + * Previous web content version. This is a version of our backup. Can be empty, if there were no updates installed. + */ + previousWebVersion: string; + /** + * Version number of the web content, that was loaded by the plugin and ready to be installed. Basically, value of the release property from chcp.json file on your server. Can be empty, if no update is waiting for installation. + */ + readyToInstallWebVersion: string; +} + +export interface HotCodePushUpdate { + /** + * Current version installed. + */ + currentVersion: string; + /** + * Available version to replace the current one. + */ + readyToInstallVersion: string; +} + +export interface HotCodePushRequestOptions { + /** + * Url of the chcp.json config on the server. Plugin will use this one instead of from the config.xml. + */ + 'config-file'?: string; + /** + * Additional HTTP headers, that will be added to all requests in update download process, including loading configs and new/changed files. + */ + 'request-headers'?: {[key: string]: any}; +} + +/** + * @name Hot Code Push + * @description + * HotCodePush plugin for Cordova that supports iOS and Android. This plugin allows you to keep your html, css and js files synced with your server. + * + * For more info, please see the detailed wiki https://github.com/nordnet/cordova-hot-code-push/wiki + * + * @usage + * ```typescript + * import { HotCodePush } from '@ionic-native/hot-code-push'; + * + * constructor(private hotCodePush: HotCodePush) { } + * + * ... + * + * hotCodePush.fetchUpdate(options).then(data => { console.log('Update available'); }); + * + * ``` + */ +@Plugin({ + pluginName: 'HotCodePush', + plugin: 'cordova-hot-code-push', + pluginRef: 'chcp', + repo: 'https://github.com/nordnet/cordova-hot-code-push', + platforms: ['Android', 'iOS'] +}) +@Injectable() +export class HotCodePush extends IonicNativePlugin { + /** + * Show dialog with the request to update application through the Store (App Store or Google Play). + * @param message {string} Message to show in the dialog + * @returns {Promise} Resolves when the user is redirected to the store, rejects if the user declines. + */ + @Cordova() + requestApplicationUpdate(message: string): Promise { return; } + + /** + * Download updates from the server-side. + * @param options {HotCodePushRequestOptions} Additional options to the request. If not set - preferences from config.xml are used. + * @returns {Promise} Resolves if there is an update available, rejects otherwise. + */ + @CordovaCheck() + fetchUpdate(options?: HotCodePushRequestOptions): Promise { + return new Promise((resolve, reject) => { + HotCodePush.getPlugin().fetchUpdate((error: any, data: any) => { + if (error) { + reject(error); + } else { + resolve(data); + } + }, options); + }); + } + + /** + * Install update if there is anything to install. + * @returns {Promise} Resolves when the update is installed. + */ + @Cordova({ + callbackStyle: 'node' + }) + installUpdate(): Promise { return; } + + /** + * Check if update was loaded and ready to be installed. + * @returns {Promise} Resolves if an update is ready, rejects if there is no update. + */ + @Cordova({ + callbackStyle: 'node' + }) + isUpdateAvailableForInstallation(): Promise { return; } + + /** + * Gets information about the app's versions. + * @returns {Promise} Resolves with the information about the versions. + */ + @Cordova({ + callbackStyle: 'node' + }) + getVersionInfo(): Promise { return; } +} From e4dd8dcb89885ddb819f8d5f79b9263592e32670 Mon Sep 17 00:00:00 2001 From: Rory Standley Date: Thu, 25 Jan 2018 11:18:18 +0000 Subject: [PATCH 016/110] docs(): type of yes is boolean not string (#2290) --- src/@ionic-native/plugins/app-availability/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/@ionic-native/plugins/app-availability/index.ts b/src/@ionic-native/plugins/app-availability/index.ts index 3011921b0..3ff0b1996 100644 --- a/src/@ionic-native/plugins/app-availability/index.ts +++ b/src/@ionic-native/plugins/app-availability/index.ts @@ -27,8 +27,8 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; * * this.appAvailability.check(app) * .then( - * (yes: string) => console.log(app + ' is available'), - * (no: string) => console.log(app + ' is NOT available') + * (yes: boolean) => console.log(app + ' is available'), + * (no: boolean) => console.log(app + ' is NOT available') * ); * ``` */ From 61293c33ccac05eba5230c0afb9ab3fa70f68513 Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Thu, 25 Jan 2018 11:11:06 -0600 Subject: [PATCH 017/110] fix(pro): proper callback type and guard for plugin instantiate. #2136 #2127 --- src/@ionic-native/plugins/pro/index.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/@ionic-native/plugins/pro/index.ts b/src/@ionic-native/plugins/pro/index.ts index 1475c86b6..bbdb6258e 100644 --- a/src/@ionic-native/plugins/pro/index.ts +++ b/src/@ionic-native/plugins/pro/index.ts @@ -49,9 +49,7 @@ export class ProDeploy { * Check a channel for an available update * @return {Promise} Resolves with 'true' or 'false', or rejects with an error. */ - @CordovaInstance({ - observable: true - }) + @CordovaInstance() check(): Promise { return; } /** @@ -67,7 +65,9 @@ export class ProDeploy { * Unzip the latest downloaded version * @return {Observable} Updates with percent completion, or errors with a message. */ - @CordovaInstance() + @CordovaInstance({ + observable: true + }) extract(): Observable { return; } /** @@ -133,7 +133,7 @@ export class Pro extends IonicNativePlugin { /** * Ionic Pro Deploy .js API. */ - deploy: ProDeploy = new ProDeploy(Pro.getPlugin().deploy); + deploy: ProDeploy = new ProDeploy((Pro.getPlugin() || {}).deploy); /** * Not yet implemented From eaa87fae9b3d6b1ef9a709ba9ae4cda17fa880ea Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Thu, 25 Jan 2018 11:25:30 -0600 Subject: [PATCH 018/110] chore(): update changelog --- CHANGELOG.md | 49 ++++++++++++++++++++++++++++++------------------- 1 file changed, 30 insertions(+), 19 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 589a050b2..56c0c47fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,30 @@ + +## [4.5.2](https://github.com/ionic-team/ionic-native/compare/v5.0.0-beta.3...v4.5.2) (2018-01-25) + + +### Bug Fixes + +* **pro:** proper callback type and guard for plugin instantiate. [#2136](https://github.com/ionic-team/ionic-native/issues/2136) [#2127](https://github.com/ionic-team/ionic-native/issues/2127) ([61293c3](https://github.com/ionic-team/ionic-native/commit/61293c3)) + + + + +# [5.0.0-beta.3](https://github.com/ionic-team/ionic-native/compare/v4.5.1...v5.0.0-beta.3) (2017-12-29) + + +### Bug Fixes + +* **push:** fix finish method ([995fd56](https://github.com/ionic-team/ionic-native/commit/995fd56)) + + +### Features + +* **crop:** add targetHeight and targetWidth options ([#2213](https://github.com/ionic-team/ionic-native/issues/2213)) ([9990df8](https://github.com/ionic-team/ionic-native/commit/9990df8)) + + + -## [4.5.1](https://github.com/ionic-team/ionic-native/compare/v4.5.0...v4.5.1) (2017-12-12) +## [4.5.1](https://github.com/ionic-team/ionic-native/compare/v5.0.0-beta.0...v4.5.1) (2017-12-12) ### Bug Fixes @@ -8,8 +33,8 @@ - -# [4.5.0](https://github.com/ionic-team/ionic-native/compare/v4.4.2...v4.5.0) (2017-12-08) + +# [5.0.0-beta.0](https://github.com/ionic-team/ionic-native/compare/v4.5.0...v5.0.0-beta.0) (2017-12-08) ### Bug Fixes @@ -70,7 +95,7 @@ -## [4.3.3](https://github.com/ionic-team/ionic-native/compare/v4.3.2...v4.3.3) (2017-11-01) +## [4.3.3](https://github.com/ionic-team/ionic-native/compare/4.3.2...v4.3.3) (2017-11-01) ### Bug Fixes @@ -79,11 +104,6 @@ - -## [4.3.2](https://github.com/ionic-team/ionic-native/compare/4.3.2...v4.3.2) (2017-10-18) - - - ## [4.3.2](https://github.com/ionic-team/ionic-native/compare/4.3.1...4.3.2) (2017-10-17) @@ -125,6 +145,7 @@ * **google-maps:** convert JS classes to Ionic Native ([#1956](https://github.com/ionic-team/ionic-native/issues/1956)) ([57af5c5](https://github.com/ionic-team/ionic-native/commit/57af5c5)) * **google-maps:** fix icons property of MarkerClusterOptions ([#1937](https://github.com/ionic-team/ionic-native/issues/1937)) ([8004790](https://github.com/ionic-team/ionic-native/commit/8004790)) +* **google-maps:** fix issue when creating new instance of BaseArrayClass ([#1931](https://github.com/ionic-team/ionic-native/issues/1931)) ([957396b](https://github.com/ionic-team/ionic-native/commit/957396b)) * **google-maps:** the zoom option is missing in the GoogleMapOptions class ([#1948](https://github.com/ionic-team/ionic-native/issues/1948)) ([ef898ef](https://github.com/ionic-team/ionic-native/commit/ef898ef)) * **http:** fix plugin ref ([#1934](https://github.com/ionic-team/ionic-native/issues/1934)) ([3a1034e](https://github.com/ionic-team/ionic-native/commit/3a1034e)) * **launch-navigator:** fix navigate method ([#1940](https://github.com/ionic-team/ionic-native/issues/1940)) ([a150d4d](https://github.com/ionic-team/ionic-native/commit/a150d4d)) @@ -149,16 +170,6 @@ - -## [4.2.1](https://github.com/ionic-team/ionic-native/compare/v4.2.0...v4.2.1) (2017-08-29) - - -### Bug Fixes - -* **google-maps:** fix issue when creating new instance of BaseArrayClass ([#1931](https://github.com/ionic-team/ionic-native/issues/1931)) ([957396b](https://github.com/ionic-team/ionic-native/commit/957396b)) - - - # [4.2.0](https://github.com/ionic-team/ionic-native/compare/v4.1.0...v4.2.0) (2017-08-26) From c8ecee01d6abc6b32594d7ff42306fe9fd2632f9 Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Thu, 25 Jan 2018 11:35:19 -0600 Subject: [PATCH 019/110] fix(pro): Tweak to pro plugin. #2136 #2127 --- src/@ionic-native/plugins/pro/index.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/@ionic-native/plugins/pro/index.ts b/src/@ionic-native/plugins/pro/index.ts index bbdb6258e..776f0f9a9 100644 --- a/src/@ionic-native/plugins/pro/index.ts +++ b/src/@ionic-native/plugins/pro/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, CordovaInstance, IonicNativePlugin } from '@ionic-native/core'; +import { Plugin, Cordova, CordovaCheck, CordovaInstance, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; /** @@ -130,10 +130,16 @@ export class ProDeploy { }) @Injectable() export class Pro extends IonicNativePlugin { + _deploy: ProDeploy; + /** * Ionic Pro Deploy .js API. */ - deploy: ProDeploy = new ProDeploy((Pro.getPlugin() || {}).deploy); + @CordovaCheck() + deploy(): ProDeploy { + if (this._deploy) return this._deploy; + else return this._deploy = new ProDeploy(Pro.getPlugin().deploy); + } /** * Not yet implemented From f419db5d8087472f11238a694e9a87ca967a6ad8 Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Thu, 25 Jan 2018 11:39:17 -0600 Subject: [PATCH 020/110] fix(Pro): CordovaCheck should sync. #2136 #2127 --- src/@ionic-native/plugins/pro/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/pro/index.ts b/src/@ionic-native/plugins/pro/index.ts index 776f0f9a9..f773a6e97 100644 --- a/src/@ionic-native/plugins/pro/index.ts +++ b/src/@ionic-native/plugins/pro/index.ts @@ -135,7 +135,7 @@ export class Pro extends IonicNativePlugin { /** * Ionic Pro Deploy .js API. */ - @CordovaCheck() + @CordovaCheck({ sync: true }) deploy(): ProDeploy { if (this._deploy) return this._deploy; else return this._deploy = new ProDeploy(Pro.getPlugin().deploy); From 954bd876de022fc641c5df73aa32b8924be96e77 Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Thu, 25 Jan 2018 11:44:58 -0600 Subject: [PATCH 021/110] Tweaked pro constructor --- src/@ionic-native/plugins/pro/index.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/@ionic-native/plugins/pro/index.ts b/src/@ionic-native/plugins/pro/index.ts index f773a6e97..f11477798 100644 --- a/src/@ionic-native/plugins/pro/index.ts +++ b/src/@ionic-native/plugins/pro/index.ts @@ -137,8 +137,12 @@ export class Pro extends IonicNativePlugin { */ @CordovaCheck({ sync: true }) deploy(): ProDeploy { - if (this._deploy) return this._deploy; - else return this._deploy = new ProDeploy(Pro.getPlugin().deploy); + if (this._deploy) { + return this._deploy; + } else { + this._deploy = new ProDeploy(Pro.getPlugin().deploy); + return this._deploy; + } } /** From 76a644d1224b8244f9e99f44b10fcd30b69a43c6 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Sun, 28 Jan 2018 02:19:09 +0100 Subject: [PATCH 022/110] feat(call-log): add plugin --- src/@ionic-native/plugins/call-log/index.ts | 58 +++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 src/@ionic-native/plugins/call-log/index.ts diff --git a/src/@ionic-native/plugins/call-log/index.ts b/src/@ionic-native/plugins/call-log/index.ts new file mode 100644 index 000000000..9119f78b9 --- /dev/null +++ b/src/@ionic-native/plugins/call-log/index.ts @@ -0,0 +1,58 @@ +import { Injectable } from '@angular/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; + +/** + * @name Call Log + * @description + * This plugin access the call history on a device and that can be filtered + * + * @usage + * ```typescript + * import { CallLog } from '@ionic-native/call-log'; + * + * + * constructor(private callLog: CallLog) { } + * + * ... + * + */ +@Plugin({ + pluginName: 'CallLog', + plugin: 'cordova-plugin-calllog', + pluginRef: 'plugins.callLog', + repo: 'https://github.com/creacore-team/cordova-plugin-calllog', + platforms: ['Android'] +}) +@Injectable() +export class CallLog extends IonicNativePlugin { + + /** + * This function does something + * @param dateFrom {string} get call logs from this date (format yyyy-dd-mm) + * @param dateTo {string} get call logs until this date (format yyyy-dd-mm) + * @param filters {object[]} array of object to filter the query + * Object must respect this structure {'name':'...', 'value': '...', 'operator': '=='} + * (see https://github.com/creacore-team/cordova-plugin-calllog for more details) + * @return {Promise} + */ + @Cordova() + getCallLog(dateFrom: string, dateTo: string, filters: object[]): Promise { return; } + + /** + * Check permission + * @returns {Promise} + */ + @Cordova({ + platforms: ['Android'] + }) + hasReadPermission(): Promise { return; } + + /** + * Request permission + * @returns {Promise} + */ + @Cordova({ + platforms: ['Android'] + }) + requestReadPermission(): Promise { return; } +} From 4b9cf17cbb90028bfda431166f620618289e2209 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Sun, 28 Jan 2018 13:53:16 +0100 Subject: [PATCH 023/110] fix(call-log): comments erratum --- src/@ionic-native/plugins/call-log/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/@ionic-native/plugins/call-log/index.ts b/src/@ionic-native/plugins/call-log/index.ts index 9119f78b9..1438047fc 100644 --- a/src/@ionic-native/plugins/call-log/index.ts +++ b/src/@ionic-native/plugins/call-log/index.ts @@ -27,9 +27,9 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; export class CallLog extends IonicNativePlugin { /** - * This function does something - * @param dateFrom {string} get call logs from this date (format yyyy-dd-mm) - * @param dateTo {string} get call logs until this date (format yyyy-dd-mm) + * This function return the call logs + * @param dateFrom {string} get logs from this date (format yyyy-MM-dd) + * @param dateTo {string} get logs until this date (format yyyy-MM-dd) * @param filters {object[]} array of object to filter the query * Object must respect this structure {'name':'...', 'value': '...', 'operator': '=='} * (see https://github.com/creacore-team/cordova-plugin-calllog for more details) From 61c0ecfa4f50b61381e76c85f1d24f4770a213ed Mon Sep 17 00:00:00 2001 From: Nicolas Date: Tue, 30 Jan 2018 22:35:48 +0100 Subject: [PATCH 024/110] fix(call-log): update getCallLog signature --- src/@ionic-native/plugins/call-log/index.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/@ionic-native/plugins/call-log/index.ts b/src/@ionic-native/plugins/call-log/index.ts index 1438047fc..d7a541190 100644 --- a/src/@ionic-native/plugins/call-log/index.ts +++ b/src/@ionic-native/plugins/call-log/index.ts @@ -28,15 +28,13 @@ export class CallLog extends IonicNativePlugin { /** * This function return the call logs - * @param dateFrom {string} get logs from this date (format yyyy-MM-dd) - * @param dateTo {string} get logs until this date (format yyyy-MM-dd) * @param filters {object[]} array of object to filter the query * Object must respect this structure {'name':'...', 'value': '...', 'operator': '=='} * (see https://github.com/creacore-team/cordova-plugin-calllog for more details) * @return {Promise} */ @Cordova() - getCallLog(dateFrom: string, dateTo: string, filters: object[]): Promise { return; } + getCallLog(filters: object[]): Promise { return; } /** * Check permission From 04bdadedd880172e9199974339a6655ed913c884 Mon Sep 17 00:00:00 2001 From: Guillaume Royer Date: Thu, 1 Feb 2018 09:19:04 +0000 Subject: [PATCH 025/110] feat(hot code push): add update events --- .../plugins/hot-code-push/index.ts | 141 +++++++++++++++++- 1 file changed, 140 insertions(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/hot-code-push/index.ts b/src/@ionic-native/plugins/hot-code-push/index.ts index 92f08ca65..07cfb7b19 100644 --- a/src/@ionic-native/plugins/hot-code-push/index.ts +++ b/src/@ionic-native/plugins/hot-code-push/index.ts @@ -1,5 +1,6 @@ import { Injectable } from '@angular/core'; import { Cordova, Plugin, IonicNativePlugin, CordovaCheck } from '@ionic-native/core'; +import { Observable } from 'rxjs/Observable'; declare var chcp: any; @@ -48,6 +49,44 @@ export interface HotCodePushRequestOptions { 'request-headers'?: {[key: string]: any}; } +/** + * For description on error codes, please visit https://github.com/nordnet/cordova-hot-code-push/wiki/Error-codes + */ +export enum ErrorCode { + NOTHING_TO_INSTALL = 1, + NOTHING_TO_UPDATE = 2, + FAILED_TO_DOWNLOAD_APPLICATION_CONFIG = -1, + APPLICATION_BUILD_VERSION_TOO_LOW = -2, + FAILED_TO_DOWNLOAD_CONTENT_MANIFEST = -3, + FAILED_TO_DOWNLOAD_UPDATE_FILES = -4, + FAILED_TO_MOVE_LOADED_FILES_TO_INSTALLATION_FOLDER = -5, + UPDATE_IS_INVALID = -6, + FAILED_TO_COPY_FILES_FROM_PREVIOUS_RELEASE = -7, + FAILED_TO_COPY_NEW_CONTENT_FILES = -8, + LOCAL_VERSION_OF_APPLICATION_CONFIG_NOT_FOUND = -9, + LOCAL_VERSION_OF_MANIFEST_NOT_FOUND = -10, + LOADED_VERSION_OF_APPLICATION_CONFIG_NOT_FOUND = -11, + LOADED_VERSION_OF_MANIFEST_NOT_FOUND = -12, + FAILED_TO_INSTALL_ASSETS_ON_EXTERNAL_STORAGE = -13, + CANT_INSTALL_WHILE_DOWNLOAD_IN_PROGRESS = -14, + CANT_DOWNLOAD_UPDATE_WHILE_INSTALLATION_IN_PROGRESS = -15, + INSTALLATION_ALREADY_IN_PROGRESS = -16, + DOWNLOAD_ALREADY_IN_PROGRESS = -17, + ASSETS_FOLDER_IS_NOT_YET_INSTALLED = -18, + NEW_APPLICATION_CONFIG_IS_INVALID = -19 +} + +export interface HotCodePushError { + code: ErrorCode; + description: string; +} + +export interface HotCodePushEventData { + details?: { + error?: HotCodePushError; + }; +}; + /** * @name Hot Code Push * @description @@ -92,7 +131,7 @@ export class HotCodePush extends IonicNativePlugin { @CordovaCheck() fetchUpdate(options?: HotCodePushRequestOptions): Promise { return new Promise((resolve, reject) => { - HotCodePush.getPlugin().fetchUpdate((error: any, data: any) => { + HotCodePush.getPlugin().fetchUpdate((error: HotCodePushError, data: any) => { if (error) { reject(error); } else { @@ -128,4 +167,104 @@ export class HotCodePush extends IonicNativePlugin { callbackStyle: 'node' }) getVersionInfo(): Promise { return; } + + /** + * Event sent when new release was successfully loaded and ready to be installed. + * @returns {Observable} + */ + @Cordova({ + eventObservable: true, + event: 'chcp_updateIsReadyToInstall' + }) + onUpdateIsReadyToInstall(): Observable { return; } + + /** + * Event sent when plugin couldn't load update from the server. Error details are attached to the event. + * @returns {Observable} + */ + @Cordova({ + eventObservable: true, + event: 'chcp_updateLoadFailed' + }) + onUpdateLoadFailed(): Observable { return; } + + /** + * Event sent when we successfully loaded application config from the server, but there is nothing new is available. + * @returns {Observable} + */ + @Cordova({ + eventObservable: true, + event: 'chcp_nothingToUpdate' + }) + onNothingToUpdate(): Observable { return; } + + /** + * Event sent when an update is about to be installed. + * @returns {Observable} + */ + @Cordova({ + eventObservable: true, + event: 'chcp_beforeInstall' + }) + onBeforeInstall(): Observable { return; } + + /** + * Event sent when update was successfully installed. + * @returns {Observable} + */ + @Cordova({ + eventObservable: true, + event: 'chcp_updateInstalled' + }) + onUpdateInstalled(): Observable { return; } + + /** + * Event sent when update installation failed. Error details are attached to the event. + * @returns {Observable} + */ + @Cordova({ + eventObservable: true, + event: 'chcp_updateInstallFailed' + }) + onUpdateInstallFailed(): Observable { return; } + + /** + * Event sent when there is nothing to install. Probably, nothing was loaded before that. + * @returns {Observable} + */ + @Cordova({ + eventObservable: true, + event: 'chcp_nothingToInstall' + }) + onNothingToInstall(): Observable { return; } + + /** + * Event sent when plugin is about to start installing bundle content on the external storage. + * @returns {Observable} + */ + @Cordova({ + eventObservable: true, + event: 'chcp_beforeAssetsInstalledOnExternalStorage' + }) + onBeforeAssetsInstalledOnExternalStorage(): Observable { return; } + + /** + * Event sent when plugin successfully copied web project files from bundle on the external storage. Most likely you will use it for debug purpose only. Or even never. + * @returns {Observable} + */ + @Cordova({ + eventObservable: true, + event: 'chcp_assetsInstalledOnExternalStorage' + }) + onAssetsInstalledOnExternalStorage(): Observable { return; } + + /** + * Event sent when plugin couldn't copy files from bundle on the external storage. If this happens - plugin won't work. Can occur when there is not enough free space on the device. + * @returns {Observable} + */ + @Cordova({ + eventObservable: true, + event: 'chcp_assetsInstallationError' + }) + onAssetsInstallationError(): Observable { return; } } From 7db549281654ee271cd49e6d2624ca4369ea0668 Mon Sep 17 00:00:00 2001 From: Niklas Merz Date: Thu, 1 Feb 2018 19:28:45 +0100 Subject: [PATCH 026/110] feat(inappbrowser) Add new footer options for Android --- src/@ionic-native/plugins/in-app-browser/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/@ionic-native/plugins/in-app-browser/index.ts b/src/@ionic-native/plugins/in-app-browser/index.ts index d4e0a1bfc..fb5f08c66 100644 --- a/src/@ionic-native/plugins/in-app-browser/index.ts +++ b/src/@ionic-native/plugins/in-app-browser/index.ts @@ -24,6 +24,10 @@ export interface InAppBrowserOptions { mediaPlaybackRequiresUserAction?: 'yes' | 'no'; /** (Android Only) Set to yes to make InAppBrowser WebView to pause/resume with the app to stop background audio (this may be required to avoid Google Play issues) */ shouldPauseOnSuspend?: 'yes' | 'no'; + /** (Android Only) Set to yes to show a close button in the footer similar to the iOS Done button. The close button will appear the same as for the header hence use closebuttoncaption and closebuttoncolor to set its properties */ + footer?: 'yes' | 'no'; + /** (Android Only) Set to a valid hex color string, for example #00ff00 or #CC00ff00 (#aarrggbb) , and it will change the footer color from default. Only has effect if user has footer set to yes */ + footercolor?: string; /** (iOS Only) Set to a string to use as the Done button's caption. Note that you need to localize this value yourself. */ closebuttoncaption?: string; /** (iOS Only) Set to yes or no (default is no). Turns on/off the UIWebViewBounce property. */ From f8e79cec5fa28388df9bda5b79988332ace0f53a Mon Sep 17 00:00:00 2001 From: Tyler VanZanten Date: Thu, 1 Feb 2018 15:07:28 -0600 Subject: [PATCH 027/110] fix(health-kit): add missing properties to HealthKitOptions --- src/@ionic-native/plugins/health-kit/index.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/health-kit/index.ts b/src/@ionic-native/plugins/health-kit/index.ts index 3184729af..aabd348ec 100644 --- a/src/@ionic-native/plugins/health-kit/index.ts +++ b/src/@ionic-native/plugins/health-kit/index.ts @@ -6,7 +6,7 @@ export interface HealthKitOptions { * HKWorkoutActivityType constant * Read more here: https://developer.apple.com/library/ios/documentation/HealthKit/Reference/HKWorkout_Class/#//apple_ref/c/tdef/HKWorkoutActivityType */ - activityType?: string; // + activityType?: string; /** * 'hour', 'week', 'year' or 'day', default 'day' @@ -18,6 +18,12 @@ export interface HealthKitOptions { */ amount?: number; + /** + * specifies if the data returned by querySampleType() should be sorted by + * end date in ascending order, default is false + */ + ascending?: boolean; + /** * */ @@ -63,6 +69,11 @@ export interface HealthKitOptions { */ extraData?: any; + /** + * limits the maximum number of records returned by querySampleType() + */ + limit?: number; + /** * */ From 84a8dbc9d287195563220393d3878ef81b7b7c18 Mon Sep 17 00:00:00 2001 From: Rajitha Kumara Date: Fri, 2 Feb 2018 15:38:25 +0530 Subject: [PATCH 028/110] Update index.ts In line 20, "this.navigationBar.hide(autoHide);". But there is no such a function .hide(). It shoud be correct as "this.navigationBar.setUp(autoHide);". --- src/@ionic-native/plugins/navigation-bar/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/navigation-bar/index.ts b/src/@ionic-native/plugins/navigation-bar/index.ts index 784f3501b..00f4c8070 100644 --- a/src/@ionic-native/plugins/navigation-bar/index.ts +++ b/src/@ionic-native/plugins/navigation-bar/index.ts @@ -17,7 +17,7 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; * ... * * let autoHide: boolean = true; - * this.navigationBar.hide(autoHide); + * this.navigationBar.setUp(autoHide); * ``` */ @Plugin({ From d50639fc5513963a83c8b0d57c7addd0fc013f7c Mon Sep 17 00:00:00 2001 From: Adam Duren Date: Fri, 2 Feb 2018 11:40:01 -0500 Subject: [PATCH 029/110] Update firebase-dynamic-links to conform to the latest version of the plugin --- .../plugins/firebase-dynamic-links/index.ts | 41 +++++-------------- 1 file changed, 11 insertions(+), 30 deletions(-) diff --git a/src/@ionic-native/plugins/firebase-dynamic-links/index.ts b/src/@ionic-native/plugins/firebase-dynamic-links/index.ts index 00bc7cbda..95902117e 100644 --- a/src/@ionic-native/plugins/firebase-dynamic-links/index.ts +++ b/src/@ionic-native/plugins/firebase-dynamic-links/index.ts @@ -1,22 +1,19 @@ import { Injectable } from '@angular/core'; import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Observable } from 'rxjs/Observable'; -export interface DynamicLinksOptions { - title: string; - message: string; - deepLink?: string; - callToActionText?: string; +export interface IDynamicLink { + matchType: 'Weak' | 'Strong'; + deepLink: string; } /** * @beta * @name Firebase Dynamic Links * @description - * Cordova plugin for Firebase Invites and Firebase Dynamic Links + * Cordova plugin for Firebase Dynamic Links * * Variables APP_DOMAIN and APP_PATH specify web URL where your app will start an activity to handle the link. They also used to setup support for App Indexing. - * Variable REVERSED_CLIENT_ID can be found in your GoogleService-Info.plist under the same key name. - * Variable PHOTO_LIBRARY_USAGE_DESCRIPTION specifies required value for NSPhotoLibraryUsageDescription on iOS. * Go to firebase console and export google-services.json and GoogleService-Info.plist. Put those files into the root of your cordova app folder. * * Preferences: @@ -41,17 +38,6 @@ export interface DynamicLinksOptions { * constructor(private firebaseDynamicLinks: FirebaseDynamicLinks) { } * * ... - * // The deepLink and callToActionText properties are optional - * const options: DynamicLinksOptions = { - * title: 'My Title'; - * message: 'My message'; - * deepLink: 'http://example.com/'; - * callToActionText: 'Message on button'; - * } - * - * this.firebaseDynamicLinks.sendInvitation(options) - * .then((res: any) => console.log(res)) - * .catch((error: any) => console.error(error)); * * this.firebaseDynamicLinks.onDynamicLink() * .then((res: any) => console.log(res)) //Handle the logic here after opening the app with the Dynamic link @@ -75,17 +61,12 @@ export class FirebaseDynamicLinks extends IonicNativePlugin { /** * Registers callback that is triggered on each dynamic link click. - * @return {Promise} Returns a promise + * @return {Observable} Returns an observable */ - @Cordova() - onDynamicLink(): Promise { return; } - - /** - * Display invitation dialog. - * @param options {DynamicLinksOptions} Some param to configure something - * @return {Promise} Returns a promise - */ - @Cordova() - sendInvitation(options: DynamicLinksOptions): Promise { return; } + @Cordova({ + callbackOrder: 'reverse', + observable: true, + }) + onDynamicLink(): Observable { return; } } From 7be82a40b52c7e1b06570f5a68fabd3bb992e6db Mon Sep 17 00:00:00 2001 From: Ionitron Date: Mon, 12 Feb 2018 17:42:20 +0800 Subject: [PATCH 030/110] Update Intercom docs to use setUserHash --- src/@ionic-native/plugins/intercom/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/@ionic-native/plugins/intercom/index.ts b/src/@ionic-native/plugins/intercom/index.ts index 8d6c4dcc0..652841ce2 100644 --- a/src/@ionic-native/plugins/intercom/index.ts +++ b/src/@ionic-native/plugins/intercom/index.ts @@ -60,6 +60,7 @@ export class Intercom extends IonicNativePlugin { * @param secureHash {string} * @param secureData {any} * @return {Promise} Returns a promise + * @deprecated Use setUserHash instead as of Intercom Cordova 4.0.0 and higher https://github.com/intercom/intercom-cordova/blob/master/CHANGELOG.md#400-2017-08-29 */ @Cordova() setSecureMode(secureHash: string, secureData: any): Promise { return; } From 714bc463426d5c41f9238bc0efe9ebff313b7574 Mon Sep 17 00:00:00 2001 From: Elian Cordoba <34920585+ElianCordoba@users.noreply.github.com> Date: Tue, 13 Feb 2018 12:45:53 -0300 Subject: [PATCH 031/110] Update index.ts Added missing descriptions taken from the plugin repo README. --- src/@ionic-native/plugins/background-mode/index.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/@ionic-native/plugins/background-mode/index.ts b/src/@ionic-native/plugins/background-mode/index.ts index 2d7159290..fc54d6a34 100644 --- a/src/@ionic-native/plugins/background-mode/index.ts +++ b/src/@ionic-native/plugins/background-mode/index.ts @@ -23,6 +23,9 @@ export interface BackgroundModeConfiguration { */ icon?: string; + /** + * Set the background color of the notification circle + */ color?: string; /** @@ -30,6 +33,9 @@ export interface BackgroundModeConfiguration { */ resume?: boolean; + /** + * When set to false makes the notifications visible on lockscreen (Android 5.0+) + */ hidden?: boolean; bigText?: boolean; From ee42cd34717493eec383db6b7d77b33bafc5a0ea Mon Sep 17 00:00:00 2001 From: bsorrentino Date: Wed, 14 Feb 2018 12:29:19 +0100 Subject: [PATCH 032/110] add support for Browser platform --- src/@ionic-native/plugins/broadcaster/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/broadcaster/index.ts b/src/@ionic-native/plugins/broadcaster/index.ts index 8aabbb902..eb291aae9 100644 --- a/src/@ionic-native/plugins/broadcaster/index.ts +++ b/src/@ionic-native/plugins/broadcaster/index.ts @@ -28,7 +28,7 @@ import { Observable } from 'rxjs/Observable'; plugin: 'cordova-plugin-broadcaster', pluginRef: 'broadcaster', repo: 'https://github.com/bsorrentino/cordova-broadcaster', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS', 'Browser'] }) @Injectable() export class Broadcaster extends IonicNativePlugin { From 19c0b5812dcea9af88c307808a9430022296cf24 Mon Sep 17 00:00:00 2001 From: jeffreyramia Date: Thu, 22 Feb 2018 21:08:14 +0200 Subject: [PATCH 033/110] Update index.ts As stated in the plugin repo, the options field is optional. Also, the plugin returns a `iana_timezone` property such as 'America/New_York' which was not included. --- src/@ionic-native/plugins/globalization/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/globalization/index.ts b/src/@ionic-native/plugins/globalization/index.ts index 0acecdd92..77d8bf7df 100644 --- a/src/@ionic-native/plugins/globalization/index.ts +++ b/src/@ionic-native/plugins/globalization/index.ts @@ -83,7 +83,7 @@ export class Globalization extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - getDatePattern(options: { formatLength: string, selector: string }): Promise<{ pattern: string, timezone: string, utf_offset: number, dst_offset: number }> { return; } + getDatePattern(options?: { formatLength: string, selector: string }): Promise<{ pattern: string, timezone: string, iana_timezone: string, utf_offset: number, dst_offset: number }> { return; } /** * Returns an array of the names of the months or days of the week, depending on the client's user preferences and calendar. From 41e5a0f7fe3d873c24269ee1bae55e3ff331e491 Mon Sep 17 00:00:00 2001 From: Markus Karileet Date: Thu, 22 Feb 2018 22:02:44 +0200 Subject: [PATCH 034/110] feat(speechkit): plugin implementation --- src/@ionic-native/plugins/speechkit/index.ts | 53 ++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 src/@ionic-native/plugins/speechkit/index.ts diff --git a/src/@ionic-native/plugins/speechkit/index.ts b/src/@ionic-native/plugins/speechkit/index.ts new file mode 100644 index 000000000..ed49044c9 --- /dev/null +++ b/src/@ionic-native/plugins/speechkit/index.ts @@ -0,0 +1,53 @@ +import { Injectable } from '@angular/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; + +/** + * @name SpeechKit + * @description + * Implementation of Nuance SpeechKit SDK on Ionic + * + * @usage + * ```typescript + * import { SpeechKit } from '@ionic-native/speechkit'; + * + * constructor(private speechkit: SpeechKit) { } + * + * + * this.speechkit.tts('Text to be read out loud', 'ENG-GBR').then( + * (msg) => { console.log(msg); }, + * (err) => { console.log(err); } + * ); + * ``` + */ +@Plugin({ + pluginName: 'SpeechKit', + plugin: 'cordova-plugin-nuance-speechkit', + pluginRef: 'plugins.speechkit', + repo: 'https://github.com/Shmarkus/cordova-plugin-nuance-speechkit', + platforms: ['Android', 'iOS'] +}) +@Injectable() +export class SpeechKit extends IonicNativePlugin { + + /** + * Speak text out loud in given language + * @returns {Promise} + */ + @Cordova() + tts( + text: string, + language: string + ): Promise { return; } + + /** + * Try to recognize what the user said + * @returns {Promise} + */ + @Cordova({ + platforms: ['Android'] + }) + asr( + language: string + ): Promise { return; } + +} From 97d5d10c7187eeda85952e2b51833cd771724f4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karri=20Rasinm=C3=A4ki?= Date: Sun, 25 Feb 2018 00:46:08 +0200 Subject: [PATCH 035/110] Updated to match new Cordova hook specs - Script to match module definition (fixes paths) - Instructions to define hooks in recommend way --- src/@ionic-native/plugins/onesignal/index.ts | 55 ++++++++++++-------- 1 file changed, 33 insertions(+), 22 deletions(-) diff --git a/src/@ionic-native/plugins/onesignal/index.ts b/src/@ionic-native/plugins/onesignal/index.ts index 7356e8c17..048edd2ed 100644 --- a/src/@ionic-native/plugins/onesignal/index.ts +++ b/src/@ionic-native/plugins/onesignal/index.ts @@ -307,13 +307,23 @@ export enum OSActionType { * #### Icons * If you want to use generated icons with command `ionic cordova resources`: * - * 1. Add a file to your `hooks` directory inside the `after_prepare` folder called `030_copy_android_notification_icons.js` + * 1. Add a file to your `hooks` directory called `copy_android_notification_icons.js` * - * 2. Put the following code in it: + * 2. Configure the hook in your config.xml + * ``` + * + * + * + * ``` + * + * 3. Put the following code in it: * * ``` * #!/usr/bin/env node - * + + * var fs = require('fs'); + * var path = require('path'); + * var filestocopy = [{ * "resources/android/icon/drawable-hdpi-icon.png": * "platforms/android/res/drawable-hdpi/ic_stat_onesignal_default.png" @@ -330,26 +340,27 @@ export enum OSActionType { * "resources/android/icon/drawable-xxxhdpi-icon.png": * "platforms/android/res/drawable-xxxhdpi/ic_stat_onesignal_default.png" * } ]; - * - * var fs = require('fs'); - * var path = require('path'); - * - * // no need to configure below - * var rootdir = process.argv[2]; - * - * filestocopy.forEach(function(obj) { - * Object.keys(obj).forEach(function(key) { - * var val = obj[key]; - * var srcfile = path.join(rootdir, key); - * var destfile = path.join(rootdir, val); - * //console.log("copying "+srcfile+" to "+destfile); - * var destdir = path.dirname(destfile); - * if (fs.existsSync(srcfile) && fs.existsSync(destdir)) { - * fs.createReadStream(srcfile).pipe( - * fs.createWriteStream(destfile)); - * } + + * module.exports = function(context) { + + * // no need to configure below + * var rootdir = context.opts.projectRoot; + + * filestocopy.forEach(function(obj) { + * Object.keys(obj).forEach(function(key) { + * var val = obj[key]; + * var srcfile = path.join(rootdir, key); + * var destfile = path.join(rootdir, val); + * console.log("copying "+srcfile+" to "+destfile); + * var destdir = path.dirname(destfile); + * if (fs.existsSync(srcfile) && fs.existsSync(destdir)) { + * fs.createReadStream(srcfile).pipe( + * fs.createWriteStream(destfile)); + * } + * }); * }); - * }); + + * }; * ``` * * 3. From the root of your project make the file executable: From 8b829101ff5a615eebc4e8a7af0f37ece9665057 Mon Sep 17 00:00:00 2001 From: Attila Vago <6254855+attilavago@users.noreply.github.com> Date: Sun, 25 Feb 2018 23:12:16 +0000 Subject: [PATCH 036/110] insertCSS example update The current example in the docs is incomplete and thus quite useless. Just on its own won't manipulate the CSS of a loaded page. It requires the InAppBrowserEvent, and using it in the callback. --- src/@ionic-native/plugins/in-app-browser/index.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/in-app-browser/index.ts b/src/@ionic-native/plugins/in-app-browser/index.ts index d4e0a1bfc..b029b5f9e 100644 --- a/src/@ionic-native/plugins/in-app-browser/index.ts +++ b/src/@ionic-native/plugins/in-app-browser/index.ts @@ -155,7 +155,7 @@ export class InAppBrowserObject { * @description Launches in app Browser * @usage * ```typescript - * import { InAppBrowser } from '@ionic-native/in-app-browser'; + * import { InAppBrowser, InAppBrowserEvent } from '@ionic-native/in-app-browser'; * * constructor(private iab: InAppBrowser) { } * @@ -166,7 +166,12 @@ export class InAppBrowserObject { * const browser = this.iab.create('https://ionicframework.com/'); * * browser.executeScript(...); + * * browser.insertCSS(...); + * browser.on('loadstop').subscribe((event: InAppBrowserEvent) => { + * browser.insertCSS({ code: "body{color: red;" }); + * }); + * * browser.close(); * * ``` From f11be24f7463e342d314cd7218519bae101ed07a Mon Sep 17 00:00:00 2001 From: "Pedro L.C.A" Date: Mon, 26 Feb 2018 09:52:58 -0300 Subject: [PATCH 037/110] feat(google-maps): update to match latest plugin version (#2320) * Update index.ts * Update index.ts * Add missing features, and bug fix of methods * update: classname must be in pascal case * remove: duplicated class definition * export encode and spherical static classes * Add comma * Fix Encoding and Spherical * Add convenience methods * Fix decorators for Encoding and Spherical * Update: getMap() methods return the instance of the wrapper plugin * Update: getMap() methods return the instance of the wrapper plugin * Remove `@CordovaInstance` decorators from getMap() * Update: GoogleMapOptions (all fields are not optional). * Follow up: version `2.0.0-beta2-20170719-2226` of cordova-plugin-googlemaps * Fix: tslint error * Fix: tslint error * No more isAvailable() method. * Bug fix: description is incorrect * Bug fix: example code was wrong. * Bug fix: HtmlInfoWindow does not work https://github.com/ionic-team/ionic-native/pull/1815#issuecomment-318909795 * Bug fix: HtmlInfoWindow does not work * Bug fix: HtmlInfoWindow does not work * Bug fix: HtmlInfoWindow does not work * Bug fix: HtmlInfoWindow does not work * It seems the ionViewDidLoad() is enough delayed after platform.ready() * Bug fix: map.setDiv() * Bug fix: HtmlInfoWindow does not work * Bug fix: BaseArrayClass definition is incorrect * Bug fix: BaseArrayClass constructor is wrong * Bug fix: Geocoder class does not work * Bug fix: LatLngBounds constructor is wrong * update: noNotify option is not declared * Bug fix: Geocoder.geocode() returns array of GeocoderResult * Update: clarify acceptable parameters of BaseArrayClass * Add: AnimateCameraOption.padding is missing * Revert: BaseClass.empty() method does not have the noNotify option * Add `destruct` option to the CordovaOption. - This allows BaseClass.on() is able to pass multiple retuned values from the cordova plugin side to the event lister. * A semicolon is mixing * update: event names * Update: BaseClass.addEventListener(), addEventListenerOnce(), on(), and one() * Add: destruct option for otherPromise Change: inside event names (must use the version 2.0.0-beta3-20170808-1950 or higher) * Build for working group * Bug fix: map.getCameraTarget() definition is incorrect * Bug fix: The definition of VisibleRegion interface is incorrect * Fix: LatLng, LatLngBounds, and PolylineOptions classes Update: map.getVisibleRegion() Add: VisibleRegion class * Bug fix: the definition of map.clear() method is incorrect * Fix: map.fromLatLngToPoint() * Ignore the dist directory on the master branch * Remove the dist folder on the master branch * fixes and tweaks * use union types for CameraPosition fixes issue mentioned on slack by @wf9a5m75 * fix types * update AnimateCameraOptions interface * remove AnimateCameraOptions interface * add MarkerCluster class * Bug fix: Can not create an instance of BaseArrayClass * Bug fix: the icons property of MarkerClusterOptions * Bug fix: the zoom option is missing https://github.com/mapsplugin/cordova-plugin-googlemaps/issues/1712 * Update index.ts * fix: need to convert instance type from the JS class to the wrapper class https://github.com/mapsplugin/cordova-plugin-googlemaps/issues/1706 * remove test file * fix: Error: Illegal use of "@private" tag. * fix: The Environment, Encode, and Spherical are static class * fix: convert JS instance to the ionic instance add: BaseClass.destroy() add: getId() method for all instance classes * Documentation Error https://github.com/ionic-team/ionic-native/issues/1994 * Need to create another way to convert the instance for marker cluster * save * Remove the instance of wrapper class if the JS instance is removed. * Bug fix: HtmlInfoWindow missing .on and .one methods https://github.com/ionic-team/ionic-native/issues/2034 * Bug fix: HtmlInfoWindow constructor cause the error https://github.com/mapsplugin/cordova-plugin-googlemaps/issues/1661 * Fix: Error when removing map https://github.com/mapsplugin/cordova-plugin-googlemaps/issues/1823 * Add: the cssOptions argument for HtmlInfoWindow.setContent() method * Bug fix: Polyline.getPoints(), Polygon.getPoints() and Polygon.getHoles() Those methods need to create new instance of BaseArrayClass of wrapper plugin. * Add: forEachAsync(), mapAsync(), and filterAsync() methods into BaseArray class * update: use document.querySelector() instead of document.getElementById() if the passed element is string update: map.setDiv() Bug fix: can not create empty GoogleMap (pure JS version is available way) * Fix: wait until the page is fully ready * Fix: missing `clickable` option for PolygonOptions and PolylineOptions * Add: accept own properties for `addMarker()` and others #2087 Fix: some properties are required, but specified as optional. Add: descriptions for properties * Bug fix: Static classes are defined as non static class https://stackoverflow.com/questions/47083289/ionic-native-google-maps-plugin-set-app-background-color/47165721#47165721 * Add: poly class (plugin.google.maps.geometory.poly namespace) * Bug fix: Ionic native googlemaps decodePath() returns undefined https://forum.ionicframework.com/t/ionic-native-googlemaps-decodepath-returns-undefined/118624/ * PR #2254 https://github.com/ionic-team/ionic-native/pull/2254 * PR #2199 https://github.com/ionic-team/ionic-native/pull/2199 * Change defined event names for the cordova-plugin-googlemaps v2.0 * Change defined event names for the cordova-plugin-googlemaps v2.2.0 * Add Geolocation class * Implement the `setMyLocationButtonEnabled()` method * add: baseArrayClass.mapSeries() method update: change internal methods * update: implementation of the LocationService * Implement the map.addKmlOverlay() method * Update for the cordova-plugin-googlemaps v2.2.x --- .../plugins/google-maps/index.ts | 685 +++++++++++------- 1 file changed, 440 insertions(+), 245 deletions(-) diff --git a/src/@ionic-native/plugins/google-maps/index.ts b/src/@ionic-native/plugins/google-maps/index.ts index fee5b298f..3d875b2b5 100644 --- a/src/@ionic-native/plugins/google-maps/index.ts +++ b/src/@ionic-native/plugins/google-maps/index.ts @@ -91,100 +91,146 @@ export class LatLngBounds implements ILatLngBounds { getCenter(): LatLng { return; } } +export interface GoogleMapControlOptions { + + /** + * Turns the compass on or off. + */ + compass?: boolean; + + /** + * Turns the myLocation button on or off. If turns on this button, the application displays a permission dialog to obtain the geolocation data. + */ + myLocationButton?: boolean; + + /** + * Turns the myLocation control(blue dot) on or off. If turns on this control, the application displays a permission dialog to obtain the geolocation data. + */ + myLocation?: boolean; + + /** + * Turns the indoor picker on or off. + */ + indoorPicker?: boolean; + + /** + * **Android** + * Turns the map toolbar on or off. + */ + mapToolbar?: boolean; + + /** + * **Android** + * Turns the zoom controller on or off. + */ + zoom?: boolean; + + /** + * Accept extra properties for future updates + */ + [key: string]: any; +} + +export interface GoogleMapGestureOptions { + + /** + * Set false to disable the scroll gesture (default: true) + */ + scroll?: boolean; + + /** + * Set false to disable the tilt gesture (default: true) + */ + tilt?: boolean; + + /** + * Set false to disable the zoom gesture (default: true) + */ + zoom?: boolean; + + /** + * Set false to disable the rotate gesture (default: true) + */ + rotate?: boolean; + + /** + * Accept extra properties for future updates + */ + [key: string]: any; +} + +export interface GoogleMapZoomOptions { + minZoom?: number; + maxZoom?: number; +} + +export interface GoogleMapPaddingOptions { + left?: number; + top?: number; + bottom?: number; + right?: number; +} + +export interface GoogleMapPreferenceOptions { + + /** + * Minimum and maximum zoom levels for zooming gestures. + */ + zoom?: GoogleMapZoomOptions; + + /** + * Paddings of controls. + */ + padding?: GoogleMapPaddingOptions; + + /** + * Turns the 3D buildings layer on or off. + */ + building?: boolean; + + /** + * Accept extra properties for future updates + */ + [key: string]: any; +} + export interface GoogleMapOptions { /** - * MapType + * mapType [options] */ mapType?: MapType; - controls?: { - - /** - * Turns the compass on or off. - */ - compass?: boolean; - - /** - * Turns the myLocation picker on or off. If turns on this button, the application displays a permission dialog to obtain the geolocation data. - */ - myLocationButton?: boolean; - - /** - * Turns the indoor picker on or off. - */ - indoorPicker?: boolean; - - /** - * Turns the map toolbar on or off. This option is for Android only. - */ - mapToolbar?: boolean; - - /** - * Turns the zoom controller on or off. This option is for Android only. - */ - zoom?: boolean; - }; - - gestures?: { - - /** - * Set false to disable the scroll gesture (default: true) - */ - scroll?: boolean; - - /** - * Set false to disable the tilt gesture (default: true) - */ - tilt?: boolean; - - /** - * Set false to disable the zoom gesture (default: true) - */ - zoom?: boolean; - - /** - * Set false to disable the rotate gesture (default: true) - */ - rotate?: boolean; - }; + /** + * controls [options] + */ + controls?: GoogleMapControlOptions; /** - * Map styles + * gestures [options] + */ + gestures?: GoogleMapGestureOptions; + + /** + * Map styles [options] * @ref https://developers.google.com/maps/documentation/javascript/style-reference */ styles?: any[]; /** - * Initial camera position + * Initial camera position [options] */ camera?: CameraPosition; - preferences?: { + /** + * preferences [options] + */ + preferences?: GoogleMapPreferenceOptions; - /** - * Minimum and maximum zoom levels for zooming gestures. - */ - zoom?: { - minZoom?: number; - maxZoom?: number; - }; - - /** - * Paddings of controls. - */ - padding?: { - left?: number; - top?: number; - bottom?: number; - right?: number; - }; - - /** - * Turns the 3D buildings layer on or off. - */ - building?: boolean - }; + /** + * Accept extra properties for future updates + */ + [key: string]: any; } export interface CameraPosition { @@ -679,6 +725,39 @@ export interface TileOverlayOptions { [key: string]: any; } +export interface ToDataUrlOptions { + /** + * True if you want get high quality map snapshot + */ + uncompress?: boolean; +} + + +/** + * Options for map.addKmlOverlay() method + */ +export interface KmlOverlayOptions { + /* + * The url or file path of KML file. KMZ format is not supported. + */ + url: string; + + /* + * Do not fire the KML_CLICK event if false. Default is true. + */ + clickable?: boolean; + + /* + * Do not display the default infoWindow if true. Default is false. + */ + suppressInfoWindows?: boolean; + + /** + * Accept own properties for future update + */ + [key: string]: any; +} + /** * @hidden @@ -686,12 +765,41 @@ export interface TileOverlayOptions { export class VisibleRegion implements ILatLngBounds { private _objectInstance: any; + /** + * The northeast of the bounds that contains the farLeft, farRight, nearLeft and nearRight. + * Since the map view is able to rotate, the farRight is not the same as the northeast. + */ @InstanceProperty northeast: ILatLng; + + /** + * The southwest of the bounds that contains the farLeft, farRight, nearLeft and nearRight. + * Since the map view is able to rotate, the nearLeft is not the same as the southwest. + */ @InstanceProperty southwest: ILatLng; + + /** + * The nearRight indicates the lat/lng of the top-left of the map view. + */ @InstanceProperty farLeft: ILatLng; + + /** + * The nearRight indicates the lat/lng of the top-right of the map view. + */ @InstanceProperty farRight: ILatLng; + + /** + * The nearRight indicates the lat/lng of the bottom-left of the map view. + */ @InstanceProperty nearLeft: ILatLng; + + /** + * The nearRight indicates the lat/lng of the bottom-right of the map view. + */ @InstanceProperty nearRight: ILatLng; + + /** + * constant value : `VisibleRegion` + */ @InstanceProperty type: string; constructor(southwest: LatLngBounds, northeast: LatLngBounds, farLeft: ILatLng, farRight: ILatLng, nearLeft: ILatLng, nearRight: ILatLng) { @@ -729,9 +837,10 @@ export class VisibleRegion implements ILatLngBounds { */ export const GoogleMapsEvent = { MAP_READY: 'map_ready', - MAP_LOADED: 'map_loaded', MAP_CLICK: 'map_click', MAP_LONG_CLICK: 'map_long_click', + POI_CLICK: 'poi_click', + MY_LOCATION_CLICK: 'my_location_click', MY_LOCATION_BUTTON_CLICK: 'my_location_button_click', INDOOR_BUILDING_FOCUSED: 'indoor_building_focused', INDOOR_LEVEL_ACTIVATED: 'indoor_level_activated', @@ -747,14 +856,14 @@ export const GoogleMapsEvent = { INFO_LONG_CLICK: 'info_long_click', INFO_CLOSE: 'info_close', INFO_OPEN: 'info_open', - CLUSTER_CLICK: 'cluster_click', MARKER_CLICK: 'marker_click', MARKER_DRAG: 'marker_drag', MARKER_DRAG_START: 'marker_drag_start', MARKER_DRAG_END: 'marker_drag_end', MAP_DRAG: 'map_drag', MAP_DRAG_START: 'map_drag_start', - MAP_DRAG_END: 'map_drag_end' + MAP_DRAG_END: 'map_drag_end', + KML_CLICK: 'kml_click' }; /** @@ -801,7 +910,7 @@ export const GoogleMapsMapTypeId: { [mapType: string]: MapType; } = { * }) * export class HomePage { * map: GoogleMap; - * constructor(private googleMaps: GoogleMaps) { } + * constructor() { } * * ionViewDidLoad() { * this.loadMap(); @@ -820,7 +929,7 @@ export const GoogleMapsMapTypeId: { [mapType: string]: MapType; } = { * } * }; * - * this.map = this.googleMaps.create('map_canvas', mapOptions); + * this.map = GoogleMaps.create('map_canvas', mapOptions); * * // Wait the MAP_READY before using any methods. * this.map.one(GoogleMapsEvent.MAP_READY) @@ -865,6 +974,7 @@ export const GoogleMapsMapTypeId: { [mapType: string]: MapType; } = { * Polygon * Polyline * Spherical + * KmlOverlay * Poly * TileOverlay * BaseClass @@ -886,6 +996,7 @@ export const GoogleMapsMapTypeId: { [mapType: string]: MapType; } = { * PolygonOptions * PolylineOptions * TileOverlayOptions + * KmlOverlayOptions * VisibleRegion */ @Plugin({ @@ -893,6 +1004,7 @@ export const GoogleMapsMapTypeId: { [mapType: string]: MapType; } = { pluginRef: 'plugin.google.maps', plugin: 'cordova-plugin-googlemaps', repo: 'https://github.com/mapsplugin/cordova-plugin-googlemaps', + document: 'https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.0.0/README.md', install: 'ionic cordova plugin add cordova-plugin-googlemaps --variable API_KEY_FOR_ANDROID="YOUR_ANDROID_API_KEY_IS_HERE" --variable API_KEY_FOR_IOS="YOUR_IOS_API_KEY_IS_HERE"', installVariables: ['API_KEY_FOR_ANDROID', 'API_KEY_FOR_IOS'], platforms: ['Android', 'iOS'] @@ -903,7 +1015,7 @@ export class GoogleMaps extends IonicNativePlugin { /** * Creates a new GoogleMap instance * @param element {string | HTMLElement} Element ID or reference to attach the map to - * @param options {any} Options + * @param options {GoogleMapOptions} [options] Options * @return {GoogleMap} */ static create(element: string | HTMLElement | GoogleMapOptions, options?: GoogleMapOptions): GoogleMap { @@ -947,7 +1059,7 @@ export class BaseClass { /** * Adds an event listener. - * + * @param eventName {string} event name you want to observe. * @return {Observable} */ @InstanceCheck({ observable: true }) @@ -981,7 +1093,7 @@ export class BaseClass { /** * Adds an event listener that works once. - * + * @param eventName {string} event name you want to observe. * @return {Promise} */ @InstanceCheck() @@ -1015,32 +1127,33 @@ export class BaseClass { /** * Gets a value - * @param key + * @param key {any} */ @CordovaInstance({ sync: true }) get(key: string): any { return; } /** * Sets a value - * @param key - * @param value + * @param key {string} The key name for the value. `(key)_changed` will be fired when you set value through this method. + * @param value {any} + * @param noNotify {boolean} [options] True if you want to prevent firing the `(key)_changed` event. */ @CordovaInstance({ sync: true }) set(key: string, value: any, noNotify?: boolean): void { } /** * Bind a key to another object - * @param key {string} - * @param target {any} - * @param targetKey? {string} - * @param noNotify? {boolean} + * @param key {string} The property name you want to observe. + * @param target {any} The target object you want to observe. + * @param targetKey? {string} [options] The property name you want to observe. If you omit this, the `key` argument is used. + * @param noNotify? {boolean} [options] True if you want to prevent `(key)_changed` event when you bind first time, because the internal status is changed from `undefined` to something. */ @CordovaInstance({ sync: true }) bindTo(key: string, target: any, targetKey?: string, noNotify?: boolean): void { } /** - * Listen to a map event. - * + * Alias of `addEventListener` + * @param key {string} The property name you want to observe. * @return {Observable} */ @InstanceCheck({ observable: true }) @@ -1073,8 +1186,8 @@ export class BaseClass { } /** - * Listen to a map event only once. - * + * Alias of `addEventListenerOnce` + * @param key {string} The property name you want to observe. * @return {Promise} */ @InstanceCheck() @@ -1114,6 +1227,8 @@ export class BaseClass { /** * Dispatch event. + * @param eventName {string} Event name + * @param parameters {any} [options] The data you want to pass to event listerners. */ @CordovaInstance({ sync: true }) trigger(eventName: string, ...parameters: any[]): void {} @@ -1130,6 +1245,32 @@ export class BaseClass { } this._objectInstance.remove(); } + + /** + * Remove event listener(s) + * The `removeEventListener()` has three usages: + * - removeEventListener("eventName", listenerFunction); + * This removes one particular event listener + * - removeEventListener("eventName"); + * This removes the event listeners that added for the event name. + * - removeEventListener(); + * This removes all listeners. + * + * @param eventName {string} [options] Event name + * @param listener {Function} [options] Event listener + */ + @CordovaInstance({ sync: true }) + removeEventListener(eventName?: string, listener?: (...parameters: any[]) => void): void {} + + /** + * Alias of `removeEventListener` + * + * @param eventName {string} [options] Event name + * @param listener {Function} [options] Event listener + */ + @CordovaInstance({ sync: true }) + off(eventName?: string, listener?: (...parameters: any[]) => void): void {} + } /** @@ -1155,7 +1296,7 @@ export class BaseArrayClass extends BaseClass { /** * Removes all elements from the array. - * @param noNotify? {boolean} Set true to prevent remove_at events. + * @param noNotify? {boolean} [options] Set true to prevent remove_at events. */ @CordovaInstance({ sync: true }) empty(noNotify?: boolean): void {} @@ -1163,7 +1304,6 @@ export class BaseArrayClass extends BaseClass { /** * Iterate over each element, calling the provided callback. * @param fn {Function} - * @param callback? {Function} */ @CordovaInstance({ sync: true }) forEach(fn: (element: T, index?: number) => void): void {} @@ -1176,7 +1316,7 @@ export class BaseArrayClass extends BaseClass { @CordovaCheck() forEachAsync(fn: ((element: T, callback: () => void) => void)): Promise { return new Promise((resolve) => { - this._objectInstance.forEach(fn, resolve); + this._objectInstance.forEachAsync(fn, resolve); }); } @@ -1184,7 +1324,6 @@ export class BaseArrayClass extends BaseClass { * Iterate over each element, then return a new value. * Then you can get the results of each callback. * @param fn {Function} - * @param callback? {Function} * @return {Array} returns a new array with the results */ @CordovaInstance({ sync: true }) @@ -1194,20 +1333,32 @@ export class BaseArrayClass extends BaseClass { * Iterate over each element, calling the provided callback. * Then you can get the results of each callback. * @param fn {Function} - * @param callback? {Function} + * @param callback {Function} * @return {Promise} returns a new array with the results */ @CordovaCheck() mapAsync(fn: ((element: T, callback: (newElement: any) => void) => void)): Promise { return new Promise((resolve) => { - this._objectInstance.map(fn, resolve); + this._objectInstance.mapAsync(fn, resolve); + }); + } + + /** + * Same as `mapAsync`, but keep the execution order + * @param fn {Function} + * @param callback {Function} + * @return {Promise} returns a new array with the results + */ + @CordovaCheck() + mapSeries(fn: ((element: T, callback: (newElement: any) => void) => void)): Promise { + return new Promise((resolve) => { + this._objectInstance.mapSeries(fn, resolve); }); } /** * The filter() method creates a new array with all elements that pass the test implemented by the provided function. * @param fn {Function} - * @param callback? {Function} * @return {Array} returns a new filtered array */ @CordovaInstance({ sync: true }) @@ -1216,13 +1367,13 @@ export class BaseArrayClass extends BaseClass { /** * The filterAsync() method creates a new array with all elements that pass the test implemented by the provided function. * @param fn {Function} - * @param callback? {Function} + * @param callback {Function} * @return {Promise} returns a new filtered array */ @CordovaCheck() filterAsync(fn: (element: T, callback: (result: boolean) => void) => void): Promise { return new Promise((resolve) => { - this._objectInstance.filter(fn, resolve); + this._objectInstance.filterAsync(fn, resolve); }); } @@ -1272,7 +1423,7 @@ export class BaseArrayClass extends BaseClass { * Inserts an element at the specified index. * @param index {number} * @param element {Object} - * @param noNotify? {boolean} Set true to prevent insert_at events. + * @param noNotify? {boolean} [options] Set true to prevent insert_at events. * @return {Object} */ @CordovaInstance({ sync: true }) @@ -1280,7 +1431,7 @@ export class BaseArrayClass extends BaseClass { /** * Removes the last element of the array and returns that element. - * @param noNotify? {boolean} Set true to prevent remove_at events. + * @param noNotify? {boolean} [options] Set true to prevent remove_at events. * @return {Object} */ @CordovaInstance({ sync: true }) @@ -1297,7 +1448,7 @@ export class BaseArrayClass extends BaseClass { /** * Removes an element from the specified index. * @param index {number} - * @param noNotify? {boolean} Set true to prevent insert_at events. + * @param noNotify? {boolean} [options] Set true to prevent remove_at events. */ @CordovaInstance({ sync: true }) removeAt(index: number, noNotify?: boolean): void {} @@ -1306,7 +1457,7 @@ export class BaseArrayClass extends BaseClass { * Sets an element at the specified index. * @param index {number} * @param element {object} - * @param noNotify? {boolean} Set true to prevent set_at events. + * @param noNotify? {boolean} [options] Set true to prevent set_at events. */ @CordovaInstance({ sync: true }) setAt(index: number, element: T, noNotify?: boolean): void {} @@ -1337,7 +1488,7 @@ export class Circle extends BaseClass { * Return the map instance. * @return {GoogleMap} */ - getMap(): any { return this._map; } + getMap(): GoogleMap { return this._map; } /** * Change the center position. @@ -1578,6 +1729,28 @@ export class Geocoder { } } +/** + * @hidden + */ +@Plugin({ + pluginName: 'GoogleMaps', + pluginRef: 'plugin.google.maps.LocationService', + plugin: 'cordova-plugin-googlemaps', + repo: '' +}) +export class LocationService { + + /** + * Get the current device location without map + * @return {Promise} + */ + static getMyLocation(options?: MyLocationOptions): Promise { + return new Promise((resolve, reject) => { + GoogleMaps.getPlugin().LocationService.getMyLocation(options, resolve); + }); + } +} + /** * @hidden */ @@ -1593,7 +1766,7 @@ export class Encoding { * @deprecation * @hidden */ - decodePath(encoded: string, precision?: number): LatLng { + decodePath(encoded: string, precision?: number): Array { console.error('GoogleMaps', '[deprecated] This method is static. Please use Encoding.decodePath()'); return Encoding.decodePath(encoded, precision); } @@ -1611,16 +1784,20 @@ export class Encoding { * Decodes an encoded path string into a sequence of LatLngs. * @param encoded {string} an encoded path string * @param precision? {number} default: 5 - * @return {LatLng} + * @return {ILatLng[]} */ - static decodePath(encoded: string, precision?: number): LatLng { return; } + static decodePath(encoded: string, precision?: number): Array { + return GoogleMaps.getPlugin().geometry.encoding.decodePath(encoded, precision); + } /** * Encodes a sequence of LatLngs into an encoded path string. * @param path {Array | BaseArrayClass} a sequence of LatLngs * @return {string} */ - static encodePath(path: Array | BaseArrayClass): string { return; } + static encodePath(path: Array | BaseArrayClass): string { + return GoogleMaps.getPlugin().geometry.encoding.encodePath(path); + } } /** @@ -1904,7 +2081,7 @@ export class GoogleMap extends BaseClass { /** * Changes the map div - * @param domNode + * @param domNode {HTMLElement | string} [options] If you want to display the map in an html element, you need to specify an element or id. If omit this argument, the map is detached from webview. */ @InstanceCheck() setDiv(domNode?: HTMLElement | string): void { @@ -2112,12 +2289,19 @@ export class GoogleMap extends BaseClass { fromPointToLatLng(point: any): Promise { return; } /** - * Set true if you want to show the MyLocation button + * Set true if you want to show the MyLocation control (blue dot) * @param enabled {boolean} */ @CordovaInstance({ sync: true }) setMyLocationEnabled(enabled: boolean): void {} + /** + * Set true if you want to show the MyLocation button + * @param enabled {boolean} + */ + @CordovaInstance({ sync: true }) + setMyLocationButtonEnabled(enabled: boolean): void {} + /** * Get the currently focused building * @return {Promise} @@ -2179,6 +2363,7 @@ export class GoogleMap extends BaseClass { /** * Adds a marker + * @param options {MarkerOptions} options * @return {Promise} */ @InstanceCheck() @@ -2203,6 +2388,11 @@ export class GoogleMap extends BaseClass { }); } + /** + * Adds a marker cluster + * @param options {MarkerClusterOptions} options + * @return {Promise} + */ @InstanceCheck() addMarkerCluster(options: MarkerClusterOptions): Promise { return new Promise((resolve, reject) => { @@ -2228,6 +2418,7 @@ export class GoogleMap extends BaseClass { /** * Adds a circle + * @param options {CircleOptions} options * @return {Promise} */ @InstanceCheck() @@ -2254,6 +2445,7 @@ export class GoogleMap extends BaseClass { /** * Adds a polygon + * @param options {PolygonOptions} options * @return {Promise} */ @InstanceCheck() @@ -2279,7 +2471,8 @@ export class GoogleMap extends BaseClass { } /** - * + * Adds a polyline + * @param options {PolylineOptions} options * @return {Promise} */ @InstanceCheck() @@ -2305,6 +2498,8 @@ export class GoogleMap extends BaseClass { } /** + * Adds a tile overlay + * @param options {TileOverlayOptions} options * @return {Promise} */ @InstanceCheck() @@ -2330,6 +2525,8 @@ export class GoogleMap extends BaseClass { } /** + * Adds a ground overlay + * @param options {GroundOverlayOptions} options * @return {Promise} */ @InstanceCheck() @@ -2355,33 +2552,39 @@ export class GoogleMap extends BaseClass { } /** - * Refreshes layout. - * You can execute it, but you don't need to do that. The plugin does this automatically. + * Adds a kml overlay + * @param options {KmlOverlayOptions} options + * @return {Promise} */ - @CordovaInstance({ sync: true }) - refreshLayout(): void {} + @InstanceCheck() + addKmlOverlay(options: KmlOverlayOptions): Promise { + return new Promise((resolve, reject) => { + this._objectInstance.addKmlOverlay(options, (kmlOverlay: any) => { + if (kmlOverlay) { + let overlayId: string = kmlOverlay.getId(); + const overlay = new KmlOverlay(this, kmlOverlay); + this.get('_overlays')[overlayId] = overlay; + kmlOverlay.one(overlayId + '_remove', () => { + if (this.get('_overlays')) { + this.get('_overlays')[overlayId] = null; + overlay.destroy(); + } + }); + resolve(overlay); + } else { + reject(); + } + }); + }); + } /** - * @return {Promise} + * Returns the base64 encoded screen capture of the map. + * @param options {ToDataUrlOptions} [options] options + * @return {Promise} */ @CordovaInstance() - toDataURL(): Promise { return; } - - // /** - // * @return {Promise} - // */ - // @InstanceCheck() - // addKmlOverlay(options: KmlOverlayOptions): Promise { - // return new Promise((resolve, reject) => { - // this._objectInstance.addKmlOverlay(options, (kmlOverlay: any) => { - // if (kmlOverlay) { - // resolve(new KmlOverlay(kmlOverlay)); - // } else { - // reject(); - // } - // }); - // }); - // } + toDataURL(params?: ToDataUrlOptions): Promise { return; } } @@ -2409,7 +2612,7 @@ export class GroundOverlay extends BaseClass { * Return the map instance. * @return {GoogleMap} */ - getMap(): any { return this._map; } + getMap(): GoogleMap { return this._map; } /** * Change the bounds of the GroundOverlay @@ -2575,7 +2778,7 @@ export class Marker extends BaseClass { * Return the map instance. * @return {GoogleMap} */ - getMap(): any { return this._map; } + getMap(): GoogleMap { return this._map; } /** * Set the marker position. @@ -2790,12 +2993,24 @@ export class MarkerCluster extends BaseClass { @CordovaInstance({ sync: true }) getId(): string { return; } + /** + * Add one marker location + * @param marker {MarkerOptions} one location + * @param skipRedraw? {boolean} marker cluster does not redraw the marker cluster if true. + */ @CordovaInstance({ sync: true }) - addMarker(marker: MarkerOptions): void {} + addMarker(marker: MarkerOptions, skipRedraw?: boolean): void {} + /** + * Add marker locations + * @param markers {MarkerOptions[]} multiple locations + */ @CordovaInstance({ sync: true }) addMarkers(markers: MarkerOptions[]): void {} + /** + * Remove the marker cluster + */ @InstanceCheck() remove(): void { this._objectInstance.set('_overlays', undefined); @@ -2808,7 +3023,7 @@ export class MarkerCluster extends BaseClass { * Return the map instance. * @return {GoogleMap} */ - getMap(): any { return this._map; } + getMap(): GoogleMap { return this._map; } } @@ -2836,7 +3051,7 @@ export class Polygon extends BaseClass { * Return the map instance. * @return {GoogleMap} */ - getMap(): any { return this._map; } + getMap(): GoogleMap { return this._map; } /** * Change the polygon points. @@ -3008,7 +3223,7 @@ export class Polyline extends BaseClass { * Return the map instance. * @return {GoogleMap} */ - getMap(): any { return this._map; } + getMap(): GoogleMap { return this._map; } /** * Change the polyline points. @@ -3145,7 +3360,7 @@ export class TileOverlay extends BaseClass { * Return the map instance. * @return {GoogleMap} */ - getMap(): any { return this._map; } + getMap(): GoogleMap { return this._map; } /** * Set whether the tiles should fade in. @@ -3220,102 +3435,82 @@ export class TileOverlay extends BaseClass { } } -// /** -// * @hidden -// */ -// export interface KmlOverlayOptions { -// url?: string; -// preserveViewport?: boolean; -// animation?: boolean; -// } -// /** -// * @hidden -// */ -// export class KmlOverlay { -// -// constructor(private _objectInstance: any) { } -// -// /** -// * Adds an event listener. -// * -// * @return {Observable} -// */ -// addEventListener(eventName: string): Observable { -// return Observable.fromEvent(this._objectInstance, eventName); -// } -// -// /** -// * Adds an event listener that works once. -// * -// * @return {Promise} -// */ -// addListenerOnce(eventName: string): Promise { -// if (!this._objectInstance) { -// return Promise.reject({ error: 'plugin_not_installed' }); -// } -// return new Promise( -// resolve => this._objectInstance.addListenerOnce(eventName, resolve) -// ); -// } -// -// /** -// * Gets a value -// * @param key -// */ -// @CordovaInstance({ sync: true }) -// get(key: string): any { return; } -// -// /** -// * Sets a value -// * @param key -// * @param value -// */ -// @CordovaInstance({ sync: true }) -// set(key: string, value: any): void { } -// -// /** -// * Listen to a map event. -// * -// * @return {Observable} -// */ -// on(eventName: string): Observable { -// if (!this._objectInstance) { -// return new Observable((observer) => { -// observer.error({ error: 'plugin_not_installed' }); -// }); -// } -// -// return new Observable( -// (observer) => { -// this._objectInstance.on(eventName, observer.next.bind(observer)); -// return () => this._objectInstance.off(event); -// } -// ); -// } -// -// /** -// * Listen to a map event only once. -// * -// * @return {Promise} -// */ -// one(eventName: string): Promise { -// if (!this._objectInstance) { -// return Promise.reject({ error: 'plugin_not_installed' }); -// } -// return new Promise( -// resolve => this._objectInstance.one(eventName, resolve) -// ); -// } -// -// /** -// * Clears all stored values -// */ -// @CordovaInstance({ sync: true }) -// empty(): void { } -// -// @CordovaInstance({ sync: true }) -// remove(): void { } -// -// @CordovaInstance({ sync: true }) -// getOverlays(): Array { return; } -// } +/** + * @hidden + */ +export class KmlOverlay extends BaseClass { + + private _map: GoogleMap; + + constructor(_map: GoogleMap, _objectInstance: any) { + super(); + this._map = _map; + this._objectInstance = _objectInstance; + + Object.defineProperty(self, 'camera', { + value: this._objectInstance.camera, + writable: false + }); + Object.defineProperty(self, 'kmlData', { + value: this._objectInstance.kmlData, + writable: false + }); + } + + /** + * Returns the viewport to contains all overlays + */ + @CordovaInstance({ sync: true }) + getDefaultViewport(): CameraPosition { return; } + + /** + * Return the ID of instance. + * @return {string} + */ + @CordovaInstance({ sync: true }) + getId(): string { return; } + + /** + * Return the map instance. + * @return {GoogleMap} + */ + getMap(): GoogleMap { return this._map; } + + /** + * Change visibility of the polyline + * @param visible {boolean} + */ + @CordovaInstance({ sync: true }) + setVisible(visible: boolean): void {} + + /** + * Return true if the polyline is visible + * @return {boolean} + */ + @CordovaInstance({ sync: true }) + getVisible(): boolean { return; } + + /** + * Change clickablity of the KmlOverlay + * @param clickable {boolean} + */ + @CordovaInstance({ sync: true }) + setClickable(clickable: boolean): void {} + + /** + * Return true if the KmlOverlay is clickable + * @return {boolean} + */ + @CordovaInstance({ sync: true }) + getClickable(): boolean { return; } + + /** + * Remove the KmlOverlay + */ + @InstanceCheck() + remove(): void { + delete this._objectInstance.getMap().get('_overlays')[this.getId()]; + this._objectInstance.remove(); + this.destroy(); + } +} From 8ece08379c8b8e951caf77eda4aa2f9265214182 Mon Sep 17 00:00:00 2001 From: Prabesh Niraula Date: Thu, 1 Mar 2018 12:03:14 -0500 Subject: [PATCH 038/110] Added new optional parameters for Icons in Interface --- .../plugins/music-controls/index.ts | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/music-controls/index.ts b/src/@ionic-native/plugins/music-controls/index.ts index 383b45d8b..1a5f0679c 100644 --- a/src/@ionic-native/plugins/music-controls/index.ts +++ b/src/@ionic-native/plugins/music-controls/index.ts @@ -20,6 +20,12 @@ export interface MusicControlsOptions { duration?: number; elapsed?: number; ticker?: string; + playIcon?:string; + pauseIcon?:string; + prevIcon?:string; + nextIcon?:string; + closeIcon?:string; + notificationIcon?:string; } /** @@ -63,7 +69,15 @@ export interface MusicControlsOptions { * * // Android only, optional * // text displayed in the status bar when the notification (and the ticker) are updated, optional - * ticker : 'Now playing "Time is Running Out"' + * ticker : 'Now playing "Time is Running Out"', + * //All icons default to their built-in android equivalents + * //The supplied drawable name, e.g. 'media_play', is the name of a drawable found under android/res/drawable* folders + * playIcon: 'media_play', + * pauseIcon: 'media_pause', + * prevIcon: 'media_prev', + * nextIcon: 'media_next', + * closeIcon: 'media_close', + * notificationIcon: 'notification' * }); * * this.musicControls.subscribe().subscribe(action => { From 1932f2dd66285cda85ead81ae59e05e959998e64 Mon Sep 17 00:00:00 2001 From: Josh Babb Date: Thu, 1 Mar 2018 11:12:29 -0600 Subject: [PATCH 039/110] feat(jins-meme): enable background mode data collection In order to enable background mode data collection we used the cordova-plugin-background-mode plugin in a new Cordova plugin repo, cordova-plugin-jins-meme (vs. cordova-plugin-jins-meme-es.) We opted to maintain the old repository for backwards-compatibility as we have multiple apps using various versions; this is simplest. Another unrelated change was made to silence unnecessary console logging. --- src/@ionic-native/plugins/jins-meme/index.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/@ionic-native/plugins/jins-meme/index.ts b/src/@ionic-native/plugins/jins-meme/index.ts index 282e6a312..c5121eddb 100644 --- a/src/@ionic-native/plugins/jins-meme/index.ts +++ b/src/@ionic-native/plugins/jins-meme/index.ts @@ -31,10 +31,10 @@ declare const cordova: any; * ``` */ @Plugin({ - pluginName: 'JINS MEME ES', - plugin: 'cordova-plugin-jins-meme-es', - pluginRef: 'com.jins_jp.meme.plugin', - repo: 'https://github.com/BlyncSync/cordova-plugin-jins-meme-es', + pluginName: 'JINS MEME', + plugin: 'cordova-plugin-jins-meme', + pluginRef: 'JinsMemePlugin', + repo: 'https://github.com/BlyncSync/cordova-plugin-jins-meme', platforms: ['Android', 'iOS'] }) @Injectable() @@ -77,7 +77,7 @@ export class JinsMeme extends IonicNativePlugin { connect(target: string): Observable { return new Observable((observer: any) => { let data = cordova.plugins.JinsMemePlugin.connect(target, observer.next.bind(observer), observer.complete.bind(observer), observer.error.bind(observer)); - return () => console.log(data); + return data; }); } /** From af75b49aa45e485334ee0a1af3eb8bdfb3300bb4 Mon Sep 17 00:00:00 2001 From: KULDIP PIPALIYA Date: Fri, 2 Mar 2018 02:00:17 +0530 Subject: [PATCH 040/110] Update index.ts --- src/@ionic-native/plugins/fcm/index.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/@ionic-native/plugins/fcm/index.ts b/src/@ionic-native/plugins/fcm/index.ts index af5f0b5e3..9b371567c 100644 --- a/src/@ionic-native/plugins/fcm/index.ts +++ b/src/@ionic-native/plugins/fcm/index.ts @@ -31,13 +31,14 @@ export interface NotificationData { * * ... * - * fcm.subscribeToTopic('marketing'); + * this.fcm.subscribeToTopic('marketing'); * - * fcm.getToken().then(token=>{ + * this.fcm.getToken().then(token=>{ + * /* save your token on backend */ * backend.registerToken(token); * }) * - * fcm.onNotification().subscribe(data=>{ + * this.fcm.onNotification().subscribe(data=>{ * if(data.wasTapped){ * console.log("Received in background"); * } else { @@ -45,11 +46,11 @@ export interface NotificationData { * }; * }) * - * fcm.onTokenRefresh().subscribe(token=>{ + * this.fcm.onTokenRefresh().subscribe(token=>{ * backend.registerToken(token); * }) * - * fcm.unsubscribeFromTopic('marketing'); + * this.fcm.unsubscribeFromTopic('marketing'); * * ``` * @interfaces From 5fe579b2f3ba9a6c20d5fef0d17346800791800a Mon Sep 17 00:00:00 2001 From: pniraula Date: Mon, 5 Mar 2018 11:38:14 -0500 Subject: [PATCH 041/110] Fixed whitespaces --- src/@ionic-native/plugins/music-controls/index.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/@ionic-native/plugins/music-controls/index.ts b/src/@ionic-native/plugins/music-controls/index.ts index 1a5f0679c..9c67cf963 100644 --- a/src/@ionic-native/plugins/music-controls/index.ts +++ b/src/@ionic-native/plugins/music-controls/index.ts @@ -20,12 +20,12 @@ export interface MusicControlsOptions { duration?: number; elapsed?: number; ticker?: string; - playIcon?:string; - pauseIcon?:string; - prevIcon?:string; - nextIcon?:string; - closeIcon?:string; - notificationIcon?:string; + playIcon?: string; + pauseIcon?: string; + prevIcon?: string; + nextIcon?: string; + closeIcon?: string; + notificationIcon?: string; } /** From 2e711b94bb1a93b9a37ff0330f21f49ad7bf6c17 Mon Sep 17 00:00:00 2001 From: Andrew Lively Date: Mon, 12 Mar 2018 11:00:31 -0400 Subject: [PATCH 042/110] Added setAnalyticsCollectionEnabled to Firebase plugin --- src/@ionic-native/plugins/firebase/index.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/@ionic-native/plugins/firebase/index.ts b/src/@ionic-native/plugins/firebase/index.ts index bee4737f5..60d29c219 100644 --- a/src/@ionic-native/plugins/firebase/index.ts +++ b/src/@ionic-native/plugins/firebase/index.ts @@ -300,4 +300,14 @@ export class Firebase extends IonicNativePlugin { verifyPhoneNumber(phoneNumber: string, timeoutDuration: number): Promise { return; } + + /** + * Allows the user to enable/disable analytics collection + * @param enabled {booleab} value to set collection + * @returns {Promise} + */ + @Cordova() + setAnalyticsCollectionEnabled(enabled: boolean): Promise { + return; + } } From 7e0300a75ffeb0a1a6ab5af9a87f8c42678429d1 Mon Sep 17 00:00:00 2001 From: Prabesh Niraula Date: Mon, 12 Mar 2018 14:20:40 -0400 Subject: [PATCH 043/110] Added space after // --- src/@ionic-native/plugins/music-controls/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/@ionic-native/plugins/music-controls/index.ts b/src/@ionic-native/plugins/music-controls/index.ts index 9c67cf963..df627061d 100644 --- a/src/@ionic-native/plugins/music-controls/index.ts +++ b/src/@ionic-native/plugins/music-controls/index.ts @@ -70,8 +70,8 @@ export interface MusicControlsOptions { * // Android only, optional * // text displayed in the status bar when the notification (and the ticker) are updated, optional * ticker : 'Now playing "Time is Running Out"', - * //All icons default to their built-in android equivalents - * //The supplied drawable name, e.g. 'media_play', is the name of a drawable found under android/res/drawable* folders + * // All icons default to their built-in android equivalents + * // The supplied drawable name, e.g. 'media_play', is the name of a drawable found under android/res/drawable* folders * playIcon: 'media_play', * pauseIcon: 'media_pause', * prevIcon: 'media_prev', From 42fd1f2400780a248a8d8ab40c2c51107160236e Mon Sep 17 00:00:00 2001 From: musou1500 Date: Wed, 14 Mar 2018 22:28:21 +0900 Subject: [PATCH 044/110] fix(firebase-analytics): add `sync` option for all methods --- src/@ionic-native/plugins/firebase-analytics/index.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/@ionic-native/plugins/firebase-analytics/index.ts b/src/@ionic-native/plugins/firebase-analytics/index.ts index a6ef388dd..5cdac8fd4 100644 --- a/src/@ionic-native/plugins/firebase-analytics/index.ts +++ b/src/@ionic-native/plugins/firebase-analytics/index.ts @@ -43,7 +43,7 @@ export class FirebaseAnalytics extends IonicNativePlugin { * @param params {any} Some param to configure something * @return {Promise} Returns a promise */ - @Cordova() + @Cordova({ sync: true }) logEvent(name: string, params: any): Promise { return; } /** @@ -52,7 +52,7 @@ export class FirebaseAnalytics extends IonicNativePlugin { * @param id {string} The user ID * @return {Promise} Returns a promise */ - @Cordova() + @Cordova({ sync: true }) setUserId(id: string): Promise { return; } /** @@ -62,7 +62,7 @@ export class FirebaseAnalytics extends IonicNativePlugin { * @param value {string} The property value * @return {Promise} Returns a promise */ - @Cordova() + @Cordova({ sync: true }) setUserProperty(name: string, value: string): Promise { return; } /** @@ -70,7 +70,7 @@ export class FirebaseAnalytics extends IonicNativePlugin { * @param enabled {boolean} * @return {Promise} Returns a promise */ - @Cordova() + @Cordova({ sync: true }) setEnabled(enabled: boolean): Promise { return; } /** @@ -79,7 +79,7 @@ export class FirebaseAnalytics extends IonicNativePlugin { * @param name {string} The name of the screen * @return {Promise} Returns a promise */ - @Cordova() + @Cordova({ sync: true }) setCurrentScreen(name: string): Promise { return; } } From ee3a0c7c6ac5a153554046f32c96913974ab539c Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Thu, 15 Mar 2018 17:00:54 +0100 Subject: [PATCH 045/110] refactor(WheelSelector): add union type for theme --- src/@ionic-native/plugins/wheel-selector/index.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/@ionic-native/plugins/wheel-selector/index.ts b/src/@ionic-native/plugins/wheel-selector/index.ts index b97a9d326..ad687c50e 100644 --- a/src/@ionic-native/plugins/wheel-selector/index.ts +++ b/src/@ionic-native/plugins/wheel-selector/index.ts @@ -42,7 +42,7 @@ export interface WheelSelectorOptions { * Android only - theme color, 'light' or 'dark'. * Default: light */ - theme?: string; + theme?: 'light' | 'dark' /** * Whether to have the wheels 'wrap' (Android only) @@ -76,7 +76,7 @@ export interface WheelSelectorData { * * ... * - * let jsonData = { + * const jsonData = { * numbers: [ * { description: "1" }, * { description: "2" }, @@ -105,7 +105,7 @@ export interface WheelSelectorData { * * ... * - * //basic number selection, index is always returned in the result + * // basic number selection, index is always returned in the result * selectANumber() { * this.selector.show({ * title: "How Many?", @@ -122,7 +122,7 @@ export interface WheelSelectorData { * * ... * - * //basic selection, setting initial displayed default values: '3' 'Banana' + * // basic selection, setting initial displayed default values: '3' 'Banana' * selectFruit() { * this.selector.show({ * title: "How Much?", @@ -145,8 +145,8 @@ export interface WheelSelectorData { * * ... * - * //more complex as overrides which key to display - * //then retrieve properties from original data + * // more complex as overrides which key to display + * // then retrieve properties from original data * selectNamesUsingDisplayKey() { * this.selector.show({ * title: "Who?", From e612c5fcc373e52df3e596552b801f8cd0852119 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Thu, 15 Mar 2018 17:29:25 +0100 Subject: [PATCH 046/110] fix linter --- src/@ionic-native/plugins/wheel-selector/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/wheel-selector/index.ts b/src/@ionic-native/plugins/wheel-selector/index.ts index ad687c50e..5f5f787fa 100644 --- a/src/@ionic-native/plugins/wheel-selector/index.ts +++ b/src/@ionic-native/plugins/wheel-selector/index.ts @@ -42,7 +42,7 @@ export interface WheelSelectorOptions { * Android only - theme color, 'light' or 'dark'. * Default: light */ - theme?: 'light' | 'dark' + theme?: 'light' | 'dark'; /** * Whether to have the wheels 'wrap' (Android only) From 15bb350d8e346a035bfbfb0ab4f4370b5f4a3980 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Thu, 15 Mar 2018 17:42:38 +0100 Subject: [PATCH 047/110] feat(web-intent): add startService function --- src/@ionic-native/plugins/web-intent/index.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/@ionic-native/plugins/web-intent/index.ts b/src/@ionic-native/plugins/web-intent/index.ts index a41f063b6..2306bfa2a 100644 --- a/src/@ionic-native/plugins/web-intent/index.ts +++ b/src/@ionic-native/plugins/web-intent/index.ts @@ -6,6 +6,7 @@ import { Observable } from 'rxjs/Observable'; * @beta * @name Web Intent * @description + * This Plugin provides a general purpose shim layer for the Android intent mechanism, exposing various ways to handle sending and receiving intents. * @usage * For usage information please refer to the plugin's Github repo. * @@ -161,6 +162,14 @@ export class WebIntent extends IonicNativePlugin { */ @Cordova() sendBroadcast(options: { action: string, extras?: { option: boolean } }): Promise { return; } + + /** + * Request that a given application service be started + * @param options {Object} { action: string, extras?: { option: boolean } } + * @returns {Promise} + */ + @Cordova() + startService(options: { action: string, extras?: { option: boolean } }): Promise { return; } /** * Registers a broadcast receiver for the specified filters From ec14e179c6dc92c9c31696e261db8ee75e1e39f9 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Thu, 15 Mar 2018 17:44:16 +0100 Subject: [PATCH 048/110] Update index.ts --- src/@ionic-native/plugins/web-intent/index.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/@ionic-native/plugins/web-intent/index.ts b/src/@ionic-native/plugins/web-intent/index.ts index 2306bfa2a..963832160 100644 --- a/src/@ionic-native/plugins/web-intent/index.ts +++ b/src/@ionic-native/plugins/web-intent/index.ts @@ -3,7 +3,6 @@ import { Cordova, CordovaProperty, Plugin, IonicNativePlugin } from '@ionic-nati import { Observable } from 'rxjs/Observable'; /** - * @beta * @name Web Intent * @description * This Plugin provides a general purpose shim layer for the Android intent mechanism, exposing various ways to handle sending and receiving intents. From 95822aeac2771cc2ddeabb072c418d550f98f4e7 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Thu, 15 Mar 2018 18:02:35 +0100 Subject: [PATCH 049/110] feat(badge) add isSupported function --- src/@ionic-native/plugins/badge/index.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/@ionic-native/plugins/badge/index.ts b/src/@ionic-native/plugins/badge/index.ts index 7da09cf74..d7398cb3d 100644 --- a/src/@ionic-native/plugins/badge/index.ts +++ b/src/@ionic-native/plugins/badge/index.ts @@ -69,6 +69,13 @@ export class Badge extends IonicNativePlugin { */ @Cordova() decrease(decreaseBy: number): Promise { return; } + + /** + * Check support to show badges. + * @returns {Promise} + */ + @Cordova() + isSupported(): Promise { return; } /** * Determine if the app has permission to show badges. From 6d07cf1a844f1f5813fd52d3df26f2c9326e4942 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Thu, 15 Mar 2018 18:05:09 +0100 Subject: [PATCH 050/110] fix lint --- src/@ionic-native/plugins/web-intent/index.ts | 111 ++++++++++-------- 1 file changed, 65 insertions(+), 46 deletions(-) diff --git a/src/@ionic-native/plugins/web-intent/index.ts b/src/@ionic-native/plugins/web-intent/index.ts index 963832160..7bd06c562 100644 --- a/src/@ionic-native/plugins/web-intent/index.ts +++ b/src/@ionic-native/plugins/web-intent/index.ts @@ -35,77 +35,65 @@ import { Observable } from 'rxjs/Observable'; }) @Injectable() export class WebIntent extends IonicNativePlugin { + /** + * Convenience constant for actions + * @type {string} + */ + @CordovaProperty ACTION_SEND: string; /** * Convenience constant for actions * @type {string} */ - @CordovaProperty - ACTION_SEND: string; - - /** - * Convenience constant for actions - * @type {string} - */ - @CordovaProperty - ACTION_VIEW: string; + @CordovaProperty ACTION_VIEW: string; /** * Convenience constant for extras * @type {string} */ - @CordovaProperty - EXTRA_TEXT: string; + @CordovaProperty EXTRA_TEXT: string; /** * Convenience constant for extras * @type {string} */ - @CordovaProperty - EXTRA_SUBJECT: string; + @CordovaProperty EXTRA_SUBJECT: string; /** * Convenience constant for extras * @type {string} */ - @CordovaProperty - EXTRA_STREAM: string; + @CordovaProperty EXTRA_STREAM: string; /** * Convenience constant for extras * @type {string} */ - @CordovaProperty - EXTRA_EMAIL: string; + @CordovaProperty EXTRA_EMAIL: string; /** * Convenience constant for actions * @type {string} */ - @CordovaProperty - ACTION_CALL: string; + @CordovaProperty ACTION_CALL: string; /** * Convenience constant for actions * @type {string} */ - @CordovaProperty - ACTION_SENDTO: string; + @CordovaProperty ACTION_SENDTO: string; /** * Convenience constant for actions * @type {string} */ - @CordovaProperty - ACTION_GET_CONTENT: string; + @CordovaProperty ACTION_GET_CONTENT: string; /** * Convenience constant for actions * @type {string} */ - @CordovaProperty - ACTION_PICK: string; - + @CordovaProperty ACTION_PICK: string; /** * Launches an Android intent @@ -113,7 +101,13 @@ export class WebIntent extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - startActivity(options: { action: any, url: string, type?: string }): Promise { return; } + startActivity(options: { + action: any; + url: string; + type?: string; + }): Promise { + return; + } /** * Starts a new activity and return the result to the application @@ -121,7 +115,13 @@ export class WebIntent extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - startActivityForResult(options: { action: any, url: string, type?: string }): Promise { return; } + startActivityForResult(options: { + action: any; + url: string; + type?: string; + }): Promise { + return; + } /** * Checks if this app was invoked with specified extra @@ -129,7 +129,9 @@ export class WebIntent extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - hasExtra(extra: string): Promise { return; } + hasExtra(extra: string): Promise { + return; + } /** * Gets the extra that this app was invoked with @@ -137,14 +139,18 @@ export class WebIntent extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - getExtra(extra: string): Promise { return; } + getExtra(extra: string): Promise { + return; + } /** * Gets the Uri the app was invoked with * @returns {Promise} */ @Cordova() - getUri(): Promise { return; }; + getUri(): Promise { + return; + } /** * @returns {Observable} @@ -152,7 +158,9 @@ export class WebIntent extends IonicNativePlugin { @Cordova({ observable: true }) - onNewIntent(): Observable { return; }; + onNewIntent(): Observable { + return; + } /** * Sends a custom intent passing optional extras @@ -160,45 +168,56 @@ export class WebIntent extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - sendBroadcast(options: { action: string, extras?: { option: boolean } }): Promise { return; } - - /** + sendBroadcast(options: { + action: string; + extras?: { option: boolean }; + }): Promise { + return; + } + + /** * Request that a given application service be started * @param options {Object} { action: string, extras?: { option: boolean } } * @returns {Promise} */ @Cordova() - startService(options: { action: string, extras?: { option: boolean } }): Promise { return; } + startService(options: { + action: string; + extras?: { option: boolean }; + }): Promise { + return; + } /** * Registers a broadcast receiver for the specified filters * @param filters {any} */ @Cordova({ sync: true }) - registerBroadcastReceiver(filters: any): void { } + registerBroadcastReceiver(filters: any): void {} /** * Unregisters a broadcast receiver */ @Cordova({ sync: true }) - unregisterBroadcastReceiver(): void { } + unregisterBroadcastReceiver(): void {} /** - * Returns the content of the intent used whenever the application activity is launched - */ + * Returns the content of the intent used whenever the application activity is launched + */ @Cordova({ sync: true }) - onIntent(): void { } + onIntent(): void {} /** - * - */ + * + */ @Cordova({ sync: true }) - onActivityResult(): void { } + onActivityResult(): void {} /** * @returns {Promise} */ @Cordova() - getIntent(): Promise { return; }; - + getIntent(): Promise { + return; + } } From bebc5c2a5060648baee859fde61f78b2e313267d Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Thu, 15 Mar 2018 18:06:25 +0100 Subject: [PATCH 051/110] fix lint --- src/@ionic-native/plugins/badge/index.ts | 37 ++++++++++++++++-------- 1 file changed, 25 insertions(+), 12 deletions(-) diff --git a/src/@ionic-native/plugins/badge/index.ts b/src/@ionic-native/plugins/badge/index.ts index d7398cb3d..eb4828fe5 100644 --- a/src/@ionic-native/plugins/badge/index.ts +++ b/src/@ionic-native/plugins/badge/index.ts @@ -1,7 +1,6 @@ import { Injectable } from '@angular/core'; import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; - /** * @name Badge * @description @@ -31,13 +30,14 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; }) @Injectable() export class Badge extends IonicNativePlugin { - /** * Clear the badge of the app icon. * @returns {Promise} */ @Cordova() - clear(): Promise { return; } + clear(): Promise { + return; + } /** * Set the badge of the app icon. @@ -45,14 +45,18 @@ export class Badge extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - set(badgeNumber: number): Promise { return; } + set(badgeNumber: number): Promise { + return; + } /** * Get the badge of the app icon. * @returns {Promise} */ @Cordova() - get(): Promise { return; } + get(): Promise { + return; + } /** * Increase the badge number. @@ -60,7 +64,9 @@ export class Badge extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - increase(increaseBy: number): Promise { return; } + increase(increaseBy: number): Promise { + return; + } /** * Decrease the badge number. @@ -68,27 +74,34 @@ export class Badge extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - decrease(decreaseBy: number): Promise { return; } - + decrease(decreaseBy: number): Promise { + return; + } + /** * Check support to show badges. * @returns {Promise} */ @Cordova() - isSupported(): Promise { return; } + isSupported(): Promise { + return; + } /** * Determine if the app has permission to show badges. * @returns {Promise} */ @Cordova() - hasPermission(): Promise { return; } + hasPermission(): Promise { + return; + } /** * Register permission to set badge notifications * @returns {Promise} */ @Cordova() - registerPermission(): Promise { return; } - + registerPermission(): Promise { + return; + } } From 4bf55d3b1a22e1c74bb37f6844e19ad0cd72ab83 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Thu, 15 Mar 2018 21:30:07 +0100 Subject: [PATCH 052/110] fix(printer): add correct npm repository --- src/@ionic-native/plugins/printer/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/printer/index.ts b/src/@ionic-native/plugins/printer/index.ts index 4598ce909..bffe3f474 100644 --- a/src/@ionic-native/plugins/printer/index.ts +++ b/src/@ionic-native/plugins/printer/index.ts @@ -67,7 +67,7 @@ export interface PrintOptions { */ @Plugin({ pluginName: 'Printer', - plugin: 'de.appplant.cordova.plugin.printer', + plugin: 'cordova-plugin-printer', pluginRef: 'cordova.plugins.printer', repo: 'https://github.com/katzer/cordova-plugin-printer', platforms: ['Android', 'iOS', 'Windows'] From ff0008e7eba66355206f8f5884a73b2079526a6c Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Thu, 15 Mar 2018 22:02:58 +0100 Subject: [PATCH 053/110] feat(google-analytics): add missing functions --- .../plugins/google-analytics/index.ts | 129 +++++++++++++++--- 1 file changed, 111 insertions(+), 18 deletions(-) diff --git a/src/@ionic-native/plugins/google-analytics/index.ts b/src/@ionic-native/plugins/google-analytics/index.ts index 9af3c62e5..1b7fe31ee 100644 --- a/src/@ionic-native/plugins/google-analytics/index.ts +++ b/src/@ionic-native/plugins/google-analytics/index.ts @@ -38,7 +38,6 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; }) @Injectable() export class GoogleAnalytics extends IonicNativePlugin { - /** * In your 'deviceready' handler, set up your Analytics tracker. * https://developers.google.com/analytics/devguides/collection/analyticsjs/ @@ -50,7 +49,9 @@ export class GoogleAnalytics extends IonicNativePlugin { successIndex: 2, errorIndex: 3 }) - startTrackerWithId(id: string, interval?: number): Promise { return; } + startTrackerWithId(id: string, interval?: number): Promise { + return; + } /** * Enabling Advertising Features in Google Analytics allows you to take advantage of Remarketing, Demographics & Interests reports, and more @@ -58,7 +59,9 @@ export class GoogleAnalytics extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - setAllowIDFACollection(allow: boolean): Promise { return; } + setAllowIDFACollection(allow: boolean): Promise { + return; + } /** * Set a UserId @@ -67,7 +70,9 @@ export class GoogleAnalytics extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - setUserId(id: string): Promise { return; } + setUserId(id: string): Promise { + return; + } /** * Set a anonymize Ip address @@ -75,15 +80,40 @@ export class GoogleAnalytics extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - setAnonymizeIp(anonymize: boolean): Promise { return; } + setAnonymizeIp(anonymize: boolean): Promise { + return; + } /** - * Sets the app version + * Set the app version * @param appVersion {string} App version * @returns {Promise} */ @Cordova() - setAppVersion(appVersion: string): Promise { return; } + setAppVersion(appVersion: string): Promise { + return; + } + + /** + * Get a variable + * @param key {string} Variable + * @returns {Promise} + */ + @Cordova() + getVar(key: string): Promise { + return; + } + + /** + * Set a variable + * @param key {string} Variable + * @param value {string} Parameter + * @returns {Promise} + */ + @Cordova() + setVar(key: string, value: string): Promise { + return; + } /** * Set OptOut @@ -91,14 +121,18 @@ export class GoogleAnalytics extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - setOptOut(optout: boolean): Promise { return; } + setOptOut(optout: boolean): Promise { + return; + } /** * Enable verbose logging * @returns {Promise} */ @Cordova() - debugMode(): Promise { return; } + debugMode(): Promise { + return; + } /** * Track custom metric @@ -110,7 +144,9 @@ export class GoogleAnalytics extends IonicNativePlugin { successIndex: 2, errorIndex: 3 }) - trackMetric(key: number, value?: number): Promise { return; } + trackMetric(key: number, value?: number): Promise { + return; + } /** * Track a screen @@ -125,7 +161,13 @@ export class GoogleAnalytics extends IonicNativePlugin { successIndex: 3, errorIndex: 4 }) - trackView(title: string, campaignUrl?: string, newSession?: boolean): Promise { return; } + trackView( + title: string, + campaignUrl?: string, + newSession?: boolean + ): Promise { + return; + } /** * Add a Custom Dimension @@ -135,7 +177,9 @@ export class GoogleAnalytics extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - addCustomDimension(key: number, value: string): Promise { return; } + addCustomDimension(key: number, value: string): Promise { + return; + } /** * Track an event @@ -151,7 +195,15 @@ export class GoogleAnalytics extends IonicNativePlugin { successIndex: 5, errorIndex: 6 }) - trackEvent(category: string, action: string, label?: string, value?: number, newSession?: boolean): Promise { return; } + trackEvent( + category: string, + action: string, + label?: string, + value?: number, + newSession?: boolean + ): Promise { + return; + } /** * Track an exception @@ -160,7 +212,9 @@ export class GoogleAnalytics extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - trackException(description: string, fatal: boolean): Promise { return; } + trackException(description: string, fatal: boolean): Promise { + return; + } /** * Track User Timing (App Speed) @@ -171,7 +225,14 @@ export class GoogleAnalytics extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - trackTiming(category: string, intervalInMilliseconds: number, variable: string, label: string): Promise { return; } + trackTiming( + category: string, + intervalInMilliseconds: number, + variable: string, + label: string + ): Promise { + return; + } /** * Add a Transaction (Ecommerce) @@ -185,7 +246,16 @@ export class GoogleAnalytics extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - addTransaction(id: string, affiliation: string, revenue: number, tax: number, shipping: number, currencyCode: string): Promise { return; } + addTransaction( + id: string, + affiliation: string, + revenue: number, + tax: number, + shipping: number, + currencyCode: string + ): Promise { + return; + } /** * Add a Transaction Item (Ecommerce) @@ -200,7 +270,17 @@ export class GoogleAnalytics extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - addTransactionItem(id: string, name: string, sku: string, category: string, price: number, quantity: number, currencyCode: string): Promise { return; } + addTransactionItem( + id: string, + name: string, + sku: string, + category: string, + price: number, + quantity: number, + currencyCode: string + ): Promise { + return; + } /** * Enable/disable automatic reporting of uncaught exceptions @@ -208,6 +288,19 @@ export class GoogleAnalytics extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - enableUncaughtExceptionReporting(shouldEnable: boolean): Promise { return; } + enableUncaughtExceptionReporting(shouldEnable: boolean): Promise { + return; + } + /** + * Manually dispatch any data + * @returns {Promise} + * @platform + */ + @Cordova({ + platforms: ['Android', 'iOS', 'Windows'] + }) + dispatch(): Promise { + return; + } } From 1b237aa996044a8589bd5b3e22463657579208ea Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Thu, 15 Mar 2018 22:12:36 +0100 Subject: [PATCH 054/110] fix(push): Android senderID as optional --- src/@ionic-native/plugins/push/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/push/index.ts b/src/@ionic-native/plugins/push/index.ts index 0d5d866da..b58cfbadb 100644 --- a/src/@ionic-native/plugins/push/index.ts +++ b/src/@ionic-native/plugins/push/index.ts @@ -134,7 +134,7 @@ export interface AndroidPushOptions { /** * Maps to the project number in the Google Developer Console. */ - senderID: string; + senderID?: string; /** * The name of a drawable resource to use as the small-icon. The name should From fc0338a1c5901f55c79016aa3f633954b1e3b33e Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Fri, 16 Mar 2018 08:49:49 +0100 Subject: [PATCH 055/110] feat(one-signal): add clearOneSignalNotifications function --- src/@ionic-native/plugins/onesignal/index.ts | 112 ++++++++++++------- 1 file changed, 69 insertions(+), 43 deletions(-) diff --git a/src/@ionic-native/plugins/onesignal/index.ts b/src/@ionic-native/plugins/onesignal/index.ts index 7356e8c17..a0e5de2af 100644 --- a/src/@ionic-native/plugins/onesignal/index.ts +++ b/src/@ionic-native/plugins/onesignal/index.ts @@ -97,13 +97,13 @@ export enum OSLockScreenVisibility { * Fully visible (default) */ Public = 1, - /** - * Contents are hidden - */ + /** + * Contents are hidden + */ Private = 0, - /** - * Not shown - */ + /** + * Not shown + */ Secret = -1 } @@ -115,13 +115,13 @@ export enum OSDisplayType { * notification is silent, or inFocusDisplaying is disabled. */ None = 0, - /** - * (**DEFAULT**) - native alert dialog display. - */ + /** + * (**DEFAULT**) - native alert dialog display. + */ InAppAlert = 1, - /** - * native notification display. - */ + /** + * native notification display. + */ Notification = 2 } @@ -397,14 +397,13 @@ export enum OSActionType { }) @Injectable() export class OneSignal extends IonicNativePlugin { - /** * constants to use in inFocusDisplaying() */ OSInFocusDisplayOption = { None: 0, - InAppAlert : 1, - Notification : 2 + InAppAlert: 1, + Notification: 2 }; /** @@ -415,7 +414,9 @@ export class OneSignal extends IonicNativePlugin { * @returns {any} */ @Cordova({ sync: true }) - startInit(appId: string, googleProjectNumber?: string): any { return; } + startInit(appId: string, googleProjectNumber?: string): any { + return; + } /** * Callback to run when a notification is received, whether it was displayed or not. @@ -425,7 +426,9 @@ export class OneSignal extends IonicNativePlugin { @Cordova({ observable: true }) - handleNotificationReceived(): Observable { return; } + handleNotificationReceived(): Observable { + return; + } /** * Callback to run when a notification is tapped on from the notification shade (**ANDROID**) or notification @@ -437,7 +440,9 @@ export class OneSignal extends IonicNativePlugin { @Cordova({ observable: true }) - handleNotificationOpened(): Observable { return; } + handleNotificationOpened(): Observable { + return; + } /** * **iOS** - Settings for iOS apps @@ -457,7 +462,9 @@ export class OneSignal extends IonicNativePlugin { iOSSettings(settings: { kOSSettingsKeyAutoPrompt: boolean; kOSSettingsKeyInAppLaunchURL: boolean; - }): any { return; } + }): any { + return; + } /** * Must be called after `startInit` to complete initialization of OneSignal. @@ -465,7 +472,9 @@ export class OneSignal extends IonicNativePlugin { * @returns {any} */ @Cordova({ sync: true }) - endInit(): any { return; } + endInit(): any { + return; + } /** * Prompt the user for notification permissions. Callback fires as soon as the user accepts or declines notifications. @@ -474,7 +483,9 @@ export class OneSignal extends IonicNativePlugin { @Cordova({ platforms: ['iOS'] }) - promptForPushNotificationsWithUserResponse(): Promise { return; } + promptForPushNotificationsWithUserResponse(): Promise { + return; + } /** * Retrieve a list of tags that have been set on the user from the OneSignal server. @@ -484,7 +495,9 @@ export class OneSignal extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves when tags are recieved. */ @Cordova() - getTags(): Promise { return; } + getTags(): Promise { + return; + } /** * Lets you retrieve the OneSignal user id and device token. @@ -497,8 +510,9 @@ export class OneSignal extends IonicNativePlugin { * pushToken {string} A push token is a Google/Apple assigned identifier(unique per device per app). */ @Cordova() - getIds(): Promise<{userId: string; pushToken: string}> { return; } - + getIds(): Promise<{ userId: string; pushToken: string }> { + return; + } /** * Tag a user based on an app event of your choosing so later you can create segments on [onesignal.com](https://onesignal.com/) to target these users. @@ -508,7 +522,7 @@ export class OneSignal extends IonicNativePlugin { * @param {string} Value to set on the key. NOTE: Passing in a blank String deletes the key, you can also call deleteTag. */ @Cordova({ sync: true }) - sendTag(key: string, value: string): void { } + sendTag(key: string, value: string): void {} /** * Tag a user based on an app event of your choosing so later you can create segments on [onesignal.com](https://onesignal.com/) to target these users. @@ -517,7 +531,7 @@ export class OneSignal extends IonicNativePlugin { * @param {string} Pass a json object with key/value pairs like: {key: "value", key2: "value2"} */ @Cordova({ sync: true }) - sendTags(json: any): void { } + sendTags(json: any): void {} /** * Deletes a tag that was previously set on a user with `sendTag` or `sendTags`. Use `deleteTags` if you need to delete more than one. @@ -525,7 +539,7 @@ export class OneSignal extends IonicNativePlugin { * @param {string} Key to remove. */ @Cordova({ sync: true }) - deleteTag(key: string): void { } + deleteTag(key: string): void {} /** * Deletes tags that were previously set on a user with `sendTag` or `sendTags`. @@ -533,14 +547,14 @@ export class OneSignal extends IonicNativePlugin { * @param {Array} Keys to remove. */ @Cordova({ sync: true }) - deleteTags(keys: string[]): void { } + deleteTags(keys: string[]): void {} /** * Call this when you would like to prompt an iOS user to accept push notifications with the default system prompt. * Only works if you set `kOSSettingsAutoPrompt` to `false` in `iOSSettings` */ @Cordova({ sync: true }) - registerForPushNotifications(): void { } + registerForPushNotifications(): void {} /** * Warning: @@ -552,7 +566,7 @@ export class OneSignal extends IonicNativePlugin { * @param {boolean} false to disable vibrate, true to re-enable it. */ @Cordova({ sync: true }) - enableVibrate(enable: boolean): void { } + enableVibrate(enable: boolean): void {} /** * Warning: @@ -564,7 +578,7 @@ export class OneSignal extends IonicNativePlugin { * @param {boolean} false to disable sound, true to re-enable it. */ @Cordova({ sync: true }) - enableSound(enable: boolean): void { } + enableSound(enable: boolean): void {} /** * @@ -574,7 +588,9 @@ export class OneSignal extends IonicNativePlugin { * @returns {any} */ @Cordova({ sync: true }) - inFocusDisplaying(displayOption: OSDisplayType): any { return; } + inFocusDisplaying(displayOption: OSDisplayType): any { + return; + } /** * You can call this method with false to opt users out of receiving all notifications through OneSignal. @@ -583,7 +599,7 @@ export class OneSignal extends IonicNativePlugin { * @param {boolean} enable */ @Cordova({ sync: true }) - setSubscription(enable: boolean): void { } + setSubscription(enable: boolean): void {} /** * Get the current notification and permission state. Returns a OSPermissionSubscriptionState type described below. @@ -591,7 +607,9 @@ export class OneSignal extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - getPermissionSubscriptionState(): Promise { return; } + getPermissionSubscriptionState(): Promise { + return; + } /** * @@ -599,7 +617,9 @@ export class OneSignal extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves if the notification was send successfully. */ @Cordova() - postNotification(notificationObj: OSNotification): Promise { return; } + postNotification(notificationObj: OSNotification): Promise { + return; + } /** * Cancels a single OneSignal notification based on its Android notification integer id. Use instead of NotificationManager.cancel(id); otherwise the notification will be restored when your app is restarted. @@ -612,14 +632,14 @@ export class OneSignal extends IonicNativePlugin { * Prompts the user for location permission to allow geotagging based on the "Location radius" filter on the OneSignal dashboard. */ @Cordova({ sync: true }) - promptLocation(): void { } + promptLocation(): void {} /** * * @param email {string} */ @Cordova({ sync: true }) - syncHashedEmail(email: string): void { } + syncHashedEmail(email: string): void {} /** * Enable logging to help debug if you run into an issue setting up OneSignal. @@ -630,10 +650,7 @@ export class OneSignal extends IonicNativePlugin { * @param {loglevel} contains two properties: logLevel (for console logging) and visualLevel (for dialog messages) */ @Cordova({ sync: true }) - setLogLevel(logLevel: { - logLevel: number, - visualLevel: number - }): void { } + setLogLevel(logLevel: { logLevel: number; visualLevel: number }): void {} /** * The passed in function will be fired when a notification permission setting changes. @@ -646,7 +663,9 @@ export class OneSignal extends IonicNativePlugin { @Cordova({ observable: true }) - addPermissionObserver(): Observable { return; } + addPermissionObserver(): Observable { + return; + } /** * The passed in function will be fired when a notification subscription property changes. @@ -660,6 +679,13 @@ export class OneSignal extends IonicNativePlugin { @Cordova({ observable: true }) - addSubscriptionObserver(): Observable { return; } + addSubscriptionObserver(): Observable { + return; + } + /** + * Clears all OneSignla notifications + */ + @Cordova({ sync: true }) + clearOneSignalNotifications(): void {} } From 1e0d5ce30d07cc37509b6fb61d96f4199ed0d519 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Fri, 16 Mar 2018 09:00:47 +0100 Subject: [PATCH 056/110] ref(crop): add options interface --- src/@ionic-native/plugins/crop/index.ts | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/@ionic-native/plugins/crop/index.ts b/src/@ionic-native/plugins/crop/index.ts index ab5242ffd..acd609899 100644 --- a/src/@ionic-native/plugins/crop/index.ts +++ b/src/@ionic-native/plugins/crop/index.ts @@ -1,6 +1,12 @@ import { Injectable } from '@angular/core'; import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +export interface CropOptions { + quality: number; + targetHeight: number; + targetWidth: number; +} + /** * @name Crop * @description Crops images @@ -18,6 +24,8 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; * error => console.error('Error cropping image', error) * ); * ``` + * @classes + * CropOptions */ @Plugin({ pluginName: 'Crop', @@ -28,7 +36,6 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; }) @Injectable() export class Crop extends IonicNativePlugin { - /** * Crops an image * @param pathToImage @@ -38,6 +45,7 @@ export class Crop extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - crop(pathToImage: string, options?: { quality: number, targetHeight: number, targetWidth: number }): Promise { return; } - + crop(pathToImage: string, options?: CropOptions): Promise { + return; + } } From 504838556ea79061cd02534925292fff9e4b548f Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Fri, 16 Mar 2018 09:01:33 +0100 Subject: [PATCH 057/110] Update index.ts --- src/@ionic-native/plugins/crop/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/@ionic-native/plugins/crop/index.ts b/src/@ionic-native/plugins/crop/index.ts index acd609899..412946ecf 100644 --- a/src/@ionic-native/plugins/crop/index.ts +++ b/src/@ionic-native/plugins/crop/index.ts @@ -2,9 +2,9 @@ import { Injectable } from '@angular/core'; import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; export interface CropOptions { - quality: number; - targetHeight: number; - targetWidth: number; + quality?: number; + targetHeight?: number; + targetWidth?: number; } /** From 270678fb55dc85e7ce681c4c225cba5853ce0d77 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Fri, 16 Mar 2018 09:09:19 +0100 Subject: [PATCH 058/110] fix(index-app-content): remove onItemPressed function --- .../plugins/index-app-content/index.ts | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/@ionic-native/plugins/index-app-content/index.ts b/src/@ionic-native/plugins/index-app-content/index.ts index 250245ef2..354bd1abc 100644 --- a/src/@ionic-native/plugins/index-app-content/index.ts +++ b/src/@ionic-native/plugins/index-app-content/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, CordovaFunctionOverride, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, CordovaFunctionOverride, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export interface IndexItem { @@ -72,7 +72,6 @@ export interface IndexItem { }) @Injectable() export class IndexAppContent extends IonicNativePlugin { - /** * The option to index app content might not be available at all due to device limitations or user settings. * Therefore it's highly recommended to check upfront if indexing is possible. @@ -93,16 +92,6 @@ export class IndexAppContent extends IonicNativePlugin { return; } - /** - * If user taps on a search result in spotlight then the app will be launched. - * You can register a Javascript handler to get informed when this happens. - * @returns {Observable} returns an observable that notifies you when he user presses on the home screen icon - */ - @CordovaFunctionOverride() - onItemPressed(): Observable { - return; - } - /** * Clear all items stored for a given array of domains * @param {Array} Array of domains to clear @@ -132,5 +121,4 @@ export class IndexAppContent extends IonicNativePlugin { setIndexingInterval(intervalMinutes: number) { return; } - } From 679ad2cefca2663d6f5f23325d47d96204572c3f Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Fri, 16 Mar 2018 09:11:59 +0100 Subject: [PATCH 059/110] fix lint --- src/@ionic-native/plugins/index-app-content/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/@ionic-native/plugins/index-app-content/index.ts b/src/@ionic-native/plugins/index-app-content/index.ts index 354bd1abc..3e8e8399c 100644 --- a/src/@ionic-native/plugins/index-app-content/index.ts +++ b/src/@ionic-native/plugins/index-app-content/index.ts @@ -1,6 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, CordovaFunctionOverride, IonicNativePlugin, Plugin } from '@ionic-native/core'; -import { Observable } from 'rxjs/Observable'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface IndexItem { domain: string; From 50f40bc46b5b6cf3fa5521cba79a975c0aa2c6a2 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Fri, 16 Mar 2018 11:29:20 +0100 Subject: [PATCH 060/110] docs(debug): Improve example --- src/@ionic-native/plugins/is-debug/index.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/@ionic-native/plugins/is-debug/index.ts b/src/@ionic-native/plugins/is-debug/index.ts index 59233a7a6..4fda44f9c 100644 --- a/src/@ionic-native/plugins/is-debug/index.ts +++ b/src/@ionic-native/plugins/is-debug/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name Is Debug @@ -16,8 +16,8 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; * ... * * this.isDebug.getIsDebug() - * .then((isDebug: boolean) => console.log('Is debug:', isDebug)) - * .catch((error: any) => console.error(error)); + * .then(isDebug => console.log('Is debug:', isDebug)) + * .catch(err => console.error(err)); * * ``` */ @@ -30,7 +30,6 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; }) @Injectable() export class IsDebug extends IonicNativePlugin { - /** * Determine if an app was installed via xcode / eclipse / the ionic CLI etc * @returns {Promise} Returns a promise that resolves with true if the app was installed via xcode / eclipse / the ionic CLI etc. It will resolve to false if the app was downloaded from the app / play store by the end user. @@ -39,5 +38,4 @@ export class IsDebug extends IonicNativePlugin { getIsDebug(): Promise { return; } - } From b616e0f0bff4730e856532fbce60d0da3512a980 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Fri, 16 Mar 2018 13:22:33 +0100 Subject: [PATCH 061/110] ref(action-sheet): add corrent types --- src/@ionic-native/plugins/action-sheet/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/@ionic-native/plugins/action-sheet/index.ts b/src/@ionic-native/plugins/action-sheet/index.ts index 28c33d829..5273f8d0c 100644 --- a/src/@ionic-native/plugins/action-sheet/index.ts +++ b/src/@ionic-native/plugins/action-sheet/index.ts @@ -21,7 +21,7 @@ export interface ActionSheetOptions { /** * Theme to be used on Android */ - androidTheme?: number; + androidTheme?: 1 | 2 | 3 | 4 | 5; /** * Enable a cancel on Android @@ -46,7 +46,7 @@ export interface ActionSheetOptions { /** * On an iPad, set the X,Y position */ - position?: number[]; + position?: [number, number]; /** * Choose if destructive button will be the last @@ -123,7 +123,7 @@ export class ActionSheet extends IonicNativePlugin { * button pressed (1 based, so 1, 2, 3, etc.) */ @Cordova() - show(options?: ActionSheetOptions): Promise { return; } + show(options?: ActionSheetOptions): Promise { return; } /** From e44229471ef66be53f1fb6e39bbf9b53f473d1c7 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Fri, 16 Mar 2018 13:26:49 +0100 Subject: [PATCH 062/110] Update index.ts --- src/@ionic-native/plugins/crop/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/crop/index.ts b/src/@ionic-native/plugins/crop/index.ts index 412946ecf..928675009 100644 --- a/src/@ionic-native/plugins/crop/index.ts +++ b/src/@ionic-native/plugins/crop/index.ts @@ -24,7 +24,7 @@ export interface CropOptions { * error => console.error('Error cropping image', error) * ); * ``` - * @classes + * @interfaces * CropOptions */ @Plugin({ From bd72bbc87fdd614d85b968eebb31cbed4c87c6e4 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Fri, 16 Mar 2018 13:36:12 +0100 Subject: [PATCH 063/110] ref(android-full-screen): remove unsupported flag --- src/@ionic-native/plugins/android-full-screen/index.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/@ionic-native/plugins/android-full-screen/index.ts b/src/@ionic-native/plugins/android-full-screen/index.ts index 8971f6dad..e0d023a98 100644 --- a/src/@ionic-native/plugins/android-full-screen/index.ts +++ b/src/@ionic-native/plugins/android-full-screen/index.ts @@ -14,8 +14,6 @@ export enum AndroidSystemUiFlags { HideNavigation = 2, /** View has requested to go into the normal fullscreen mode so that its content can take over the screen while still allowing the user to interact with the application. SYSTEM_UI_FLAG_FULLSCREEN */ Fullscreen = 4, - /** Requests the navigation bar to draw in a mode that is compatible with light navigation bar backgrounds. SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR */ - LightNavigationBar = 16, /** When using other layout flags, we would like a stable view of the content insets given to fitSystemWindows(Rect). SYSTEM_UI_FLAG_LAYOUT_STABLE */ LayoutStable = 256, /** View would like its window to be laid out as if it has requested SYSTEM_UI_FLAG_HIDE_NAVIGATION, even if it currently hasn't. SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION */ @@ -45,8 +43,8 @@ export enum AndroidSystemUiFlags { * ... * * this.androidFullScreen.isImmersiveModeSupported() - * .then(() => this.androidFullScreen.immersiveMode()) - * .catch((error: any) => console.log(error)); + * .then(() => console.log('Immersive mode supported')) + * .catch(err => console.log(error)); * * ``` */ From 2a18dbcf3e0c09165f65effe9eb1c191dc581ac4 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Fri, 16 Mar 2018 13:46:08 +0100 Subject: [PATCH 064/110] feat(app-rate): add custom locale interface --- src/@ionic-native/plugins/app-rate/index.ts | 47 +++++++++++++++------ 1 file changed, 34 insertions(+), 13 deletions(-) diff --git a/src/@ionic-native/plugins/app-rate/index.ts b/src/@ionic-native/plugins/app-rate/index.ts index 6eb6b2cb6..170ee7b4a 100644 --- a/src/@ionic-native/plugins/app-rate/index.ts +++ b/src/@ionic-native/plugins/app-rate/index.ts @@ -1,8 +1,7 @@ import { Injectable } from '@angular/core'; -import { Cordova, CordovaProperty, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, CordovaProperty, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface AppRatePreferences { - /** * Custom BCP 47 language tag */ @@ -41,7 +40,7 @@ export interface AppRatePreferences { /** * Custom locale object */ - customLocale?: any; + customLocale?: AppRateCustomLocale; /** * Callbacks for events @@ -52,11 +51,38 @@ export interface AppRatePreferences { * App Store URLS */ storeAppURL?: AppUrls; +} +export interface AppRateCustomLocale { + /** Title */ + title?: string; + + /** Message */ + message?: string; + + /** Cancel button label */ + cancelButtonLabel?: string; + + /** Later button label */ + laterButtonLabel?: string; + + /** Rate button label */ + rateButtonLabel?: string; + + /** Yes button label */ + yesButtonLabel?: string; + + /** No button label */ + noButtonLabel?: string; + + /** App rate promt title */ + appRatePromptTitle?: string; + + /** Feedback prompt title */ + feedbackPromptTitle?: string; } export interface AppRateCallbacks { - /** * call back function. called when user clicked on rate-dialog buttons */ @@ -70,11 +96,9 @@ export interface AppRateCallbacks { * call back function. called when user clicked on negative feedback */ handleNegativeFeedback?: Function; - } export interface AppUrls { - /** * application id in AppStore */ @@ -99,7 +123,6 @@ export interface AppUrls { * application URL in WindowsStore */ windows8?: string; - } /** @@ -142,6 +165,7 @@ export interface AppUrls { * AppRatePreferences * AppUrls * AppRateCallbacks + * AppRateCustomLocal * */ @Plugin({ @@ -153,25 +177,22 @@ export interface AppUrls { }) @Injectable() export class AppRate extends IonicNativePlugin { - /** * Configure various settings for the Rating View. * See table below for options */ - @CordovaProperty - preferences: AppRatePreferences; + @CordovaProperty preferences: AppRatePreferences; /** * Prompts the user for rating * @param {boolean} immediately Show the rating prompt immediately. */ @Cordova() - promptForRating(immediately: boolean): void { }; + promptForRating(immediately: boolean): void {} /** * Immediately send the user to the app store rating page */ @Cordova() - navigateToAppStore(): void { }; - + navigateToAppStore(): void {} } From 0f325ed77225feecf5ae6f5de9339be432a47718 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Fri, 16 Mar 2018 13:53:28 +0100 Subject: [PATCH 065/110] feat(app-update): add app update options --- src/@ionic-native/plugins/app-update/index.ts | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/src/@ionic-native/plugins/app-update/index.ts b/src/@ionic-native/plugins/app-update/index.ts index 3b2158ac6..0da8452f1 100644 --- a/src/@ionic-native/plugins/app-update/index.ts +++ b/src/@ionic-native/plugins/app-update/index.ts @@ -1,5 +1,11 @@ -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; + +export interface AppUpdateOptions { + authType: string; + username?: string; + password?: string; +} /** * @name App Update @@ -24,13 +30,15 @@ import { Injectable } from '@angular/core'; * * constructor(private appUpdate: AppUpdate) { * - * const updateUrl = 'http://your-remote-api.com/update.xml'; - * this.appUpdate.checkAppUpdate(updateUrl); + * const updateUrl = 'https://your-remote-api.com/update.xml'; + * this.appUpdate.checkAppUpdate(updateUrl).then(() => { console.log('Update available') }); * * } * ``` * * The plugin will compare the app version and update it automatically if the API has a newer version to install. + * @interfaces + * AppUpdateOptions */ @Plugin({ pluginName: 'AppUpdate', @@ -49,5 +57,7 @@ export class AppUpdate extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - checkAppUpdate(updateUrl: string): Promise { return; } + checkAppUpdate(updateUrl: string, options?: AppUpdateOptions): Promise { + return; + } } From 7e1630f5e51d7a932cd1027d79a5e8ac70927ac7 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Fri, 16 Mar 2018 13:57:44 +0100 Subject: [PATCH 066/110] ref(app-versionn): add corrent return types --- src/@ionic-native/plugins/app-version/index.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/@ionic-native/plugins/app-version/index.ts b/src/@ionic-native/plugins/app-version/index.ts index 1962cdebd..a612159d2 100644 --- a/src/@ionic-native/plugins/app-version/index.ts +++ b/src/@ionic-native/plugins/app-version/index.ts @@ -38,30 +38,30 @@ export class AppVersion extends IonicNativePlugin { /** * Returns the name of the app - * @returns {Promise} + * @returns {Promise} */ @Cordova() - getAppName(): Promise { return; } + getAppName(): Promise { return; } /** * Returns the package name of the app - * @returns {Promise} + * @returns {Promise} */ @Cordova() - getPackageName(): Promise { return; } + getPackageName(): Promise { return; } /** * Returns the build identifier of the app - * @returns {Promise} + * @returns {Promise} */ @Cordova() - getVersionCode(): Promise { return; } + getVersionCode(): Promise { return; } /** * Returns the version of the app - * @returns {Promise} + * @returns {Promise} */ @Cordova() - getVersionNumber(): Promise { return; } + getVersionNumber(): Promise { return; } } From 796176880382c272ab5f8c74ed013a44551e8e51 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Fri, 16 Mar 2018 14:13:26 +0100 Subject: [PATCH 067/110] ref(background-mode): fix wront types --- .../plugins/background-mode/index.ts | 54 +++++++++++-------- 1 file changed, 32 insertions(+), 22 deletions(-) diff --git a/src/@ionic-native/plugins/background-mode/index.ts b/src/@ionic-native/plugins/background-mode/index.ts index 2d7159290..a807319d7 100644 --- a/src/@ionic-native/plugins/background-mode/index.ts +++ b/src/@ionic-native/plugins/background-mode/index.ts @@ -2,27 +2,26 @@ import { Injectable } from '@angular/core'; import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; - /** * Configurations items that can be updated. */ export interface BackgroundModeConfiguration { - /** * Title of the background task */ - title?: String; + title?: string; /** * Description of background task */ - text?: String; + text?: string; /** * This will look for `.png` in platforms/android/res/drawable|mipmap */ icon?: string; + /** Color */ color?: string; /** @@ -30,20 +29,21 @@ export interface BackgroundModeConfiguration { */ resume?: boolean; + /** Hidden */ hidden?: boolean; + /** Big text */ bigText?: boolean; /** * The text that scrolls itself on statusbar */ - ticker?: String; + ticker?: string; /** * if true plugin will not display a notification. Default is false. */ silent?: boolean; - } /** @@ -74,7 +74,6 @@ export interface BackgroundModeConfiguration { }) @Injectable() export class BackgroundMode extends IonicNativePlugin { - /** * Enable the background mode. * Once called, prevents the app from being paused while in background. @@ -82,14 +81,16 @@ export class BackgroundMode extends IonicNativePlugin { @Cordova({ sync: true }) - enable(): void { } + enable(): void {} /** * Disable the background mode. * Once the background mode has been disabled, the app will be paused when in background. */ @Cordova() - disable(): Promise { return; } + disable(): Promise { + return; + } /** * Checks if background mode is enabled or not. @@ -98,7 +99,9 @@ export class BackgroundMode extends IonicNativePlugin { @Cordova({ sync: true }) - isEnabled(): boolean { return; } + isEnabled(): boolean { + return; + } /** * Can be used to get the information if the background mode is active. @@ -107,7 +110,9 @@ export class BackgroundMode extends IonicNativePlugin { @Cordova({ sync: true }) - isActive(): boolean { return; } + isActive(): boolean { + return; + } /** * Override the default title, ticker and text. @@ -117,7 +122,9 @@ export class BackgroundMode extends IonicNativePlugin { @Cordova({ platforms: ['Android'] }) - setDefaults(options?: BackgroundModeConfiguration): Promise { return; } + setDefaults(options?: BackgroundModeConfiguration): Promise { + return; + } /** * Modify the displayed information. @@ -140,7 +147,9 @@ export class BackgroundMode extends IonicNativePlugin { clearFunction: 'un', clearWithArgs: true }) - on(event: string): Observable { return; } + on(event: string): Observable { + return; + } /** * Android allows to programmatically move from foreground to background. @@ -149,7 +158,7 @@ export class BackgroundMode extends IonicNativePlugin { platforms: ['Android'], sync: true }) - moveToBackground(): void { } + moveToBackground(): void {} /** * Enable GPS-tracking in background (Android). @@ -158,7 +167,7 @@ export class BackgroundMode extends IonicNativePlugin { platforms: ['Android'], sync: true }) - disableWebViewOptimizations (): void { } + disableWebViewOptimizations(): void {} /** * Android allows to programmatically move from background to foreground. @@ -167,7 +176,7 @@ export class BackgroundMode extends IonicNativePlugin { platforms: ['Android'], sync: true }) - moveToForeground(): void { } + moveToForeground(): void {} /** * Override the back button on Android to go to background instead of closing the app. @@ -176,7 +185,7 @@ export class BackgroundMode extends IonicNativePlugin { platforms: ['Android'], sync: true }) - overrideBackButton(): void { } + overrideBackButton(): void {} /** * Exclude the app from the recent task list. Works on Android 5.0+. @@ -185,7 +194,7 @@ export class BackgroundMode extends IonicNativePlugin { platforms: ['Android'], sync: true }) - excludeFromTaskList(): void { } + excludeFromTaskList(): void {} /** * The method works async instead of isActive() or isEnabled(). @@ -193,7 +202,9 @@ export class BackgroundMode extends IonicNativePlugin { @Cordova({ platforms: ['Android'] }) - isScreenOff(): Promise { return; } + isScreenOff(): Promise { + return; + } /** * Turn screen on @@ -202,7 +213,7 @@ export class BackgroundMode extends IonicNativePlugin { platforms: ['Android'], sync: true }) - wakeUp(): void { } + wakeUp(): void {} /** * Turn screen on and show app even locked @@ -211,6 +222,5 @@ export class BackgroundMode extends IonicNativePlugin { platforms: ['Android'], sync: true }) - unlock(): void { } - + unlock(): void {} } From 1546cec69455463912c25b12ed685dc5e85e9139 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Fri, 16 Mar 2018 14:19:16 +0100 Subject: [PATCH 068/110] doc(barcode-scanner): optimize example code --- .../plugins/barcode-scanner/index.ts | 40 +++++++++++++------ 1 file changed, 28 insertions(+), 12 deletions(-) diff --git a/src/@ionic-native/plugins/barcode-scanner/index.ts b/src/@ionic-native/plugins/barcode-scanner/index.ts index f55f76a01..467d613cf 100644 --- a/src/@ionic-native/plugins/barcode-scanner/index.ts +++ b/src/@ionic-native/plugins/barcode-scanner/index.ts @@ -1,8 +1,7 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface BarcodeScannerOptions { - /** * Prefer front camera. Supported on iOS and Android. */ @@ -52,11 +51,26 @@ export interface BarcodeScannerOptions { * Display scanned text for X ms. 0 suppresses it entirely, default 1500. Supported on Android only. */ resultDisplayDuration?: number; - } export interface BarcodeScanResult { - format: 'QR_CODE' | 'DATA_MATRIX' | 'UPC_E' | 'UPC_A' | 'EAN_8' | 'EAN_13' | 'CODE_128' | 'CODE_39' | 'CODE_93' | 'CODABAR' | 'ITF' | 'RSS14' | 'RSS_EXPANDED' | 'PDF417' | 'AZTEC' | 'MSI'; + format: + | 'QR_CODE' + | 'DATA_MATRIX' + | 'UPC_E' + | 'UPC_A' + | 'EAN_8' + | 'EAN_13' + | 'CODE_128' + | 'CODE_39' + | 'CODE_93' + | 'CODABAR' + | 'ITF' + | 'RSS14' + | 'RSS_EXPANDED' + | 'PDF417' + | 'AZTEC' + | 'MSI'; cancelled: boolean; text: string; } @@ -77,10 +91,10 @@ export interface BarcodeScanResult { * ... * * - * this.barcodeScanner.scan().then((barcodeData) => { - * // Success! Barcode data is here - * }, (err) => { - * // An error occurred + * this.barcodeScanner.scan().then(barcodeData => { + * console.log('Barcode data', barcodeData); + * }).catch(err => { + * console.log('Error', err); * }); * ``` * @interfaces @@ -96,7 +110,6 @@ export interface BarcodeScanResult { }) @Injectable() export class BarcodeScanner extends IonicNativePlugin { - Encode: { TEXT_TYPE: string; EMAIL_TYPE: string; @@ -117,7 +130,9 @@ export class BarcodeScanner extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - scan(options?: BarcodeScannerOptions): Promise { return; } + scan(options?: BarcodeScannerOptions): Promise { + return; + } /** * Encodes data into a barcode. @@ -127,6 +142,7 @@ export class BarcodeScanner extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - encode(type: string, data: any): Promise { return; } - + encode(type: string, data: any): Promise { + return; + } } From 11d516fb28ac3220abd05798ccaa6cb1bad284f8 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Fri, 16 Mar 2018 14:23:50 +0100 Subject: [PATCH 069/110] feat(base64-to-gallery): add options interface --- .../plugins/base64-to-gallery/index.ts | 23 +++++++++++++++---- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/src/@ionic-native/plugins/base64-to-gallery/index.ts b/src/@ionic-native/plugins/base64-to-gallery/index.ts index 0acc4da06..c4ac50c78 100644 --- a/src/@ionic-native/plugins/base64-to-gallery/index.ts +++ b/src/@ionic-native/plugins/base64-to-gallery/index.ts @@ -1,5 +1,15 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; + +export interface Base64ToGalleryOptions { + /** Saved file name prefix */ + prefix: string; + /** + * On Android runs Media Scanner after file creation. + * On iOS if true the file will be added to camera roll, otherwise will be saved to a library folder. + */ + mediaScanner: boolean; +} /** * @name Base64 To Gallery @@ -19,6 +29,8 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; * err => console.log('Error saving image to gallery ', err) * ); * ``` + * @interfaces + * Base64ToGalleryOptions */ @Plugin({ pluginName: 'Base64ToGallery', @@ -29,19 +41,20 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; }) @Injectable() export class Base64ToGallery extends IonicNativePlugin { - /** * Converts a base64 string to an image file in the device gallery * @param {string} data The actual base64 string that you want to save - * @param {any} [options] An object with properties: prefix: string, mediaScanner: boolean. Prefix will be prepended to the filename. If true, mediaScanner runs Media Scanner on Android and saves to Camera Roll on iOS; if false, saves to Library folder on iOS. + * @param {any} [options] An object with properties * @returns {Promise} returns a promise that resolves when the image is saved. */ @Cordova({ successIndex: 2, errorIndex: 3 }) - base64ToGallery(data: string, options?: { prefix?: string; mediaScanner?: boolean }): Promise { + base64ToGallery( + data: string, + options?: Base64ToGalleryOptions + ): Promise { return; } - } From 957f278738dc8120e87a7bc24d1d563b879e0e74 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Fri, 16 Mar 2018 14:26:33 +0100 Subject: [PATCH 070/110] docs(battery-status): refactored example code --- .../plugins/battery-status/index.ts | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/@ionic-native/plugins/battery-status/index.ts b/src/@ionic-native/plugins/battery-status/index.ts index d3999a49e..d096bdad1 100644 --- a/src/@ionic-native/plugins/battery-status/index.ts +++ b/src/@ionic-native/plugins/battery-status/index.ts @@ -1,9 +1,8 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export interface BatteryStatusResponse { - /** * The battery charge percentage */ @@ -13,7 +12,6 @@ export interface BatteryStatusResponse { * A boolean that indicates whether the device is plugged in */ isPlugged: boolean; - } /** @@ -31,11 +29,9 @@ export interface BatteryStatusResponse { * * * // watch change in battery status - * let subscription = this.batteryStatus.onChange().subscribe( - * (status: BatteryStatusResponse) => { + * const subscription = this.batteryStatus.onChange().subscribe(status => { * console.log(status.level, status.isPlugged); - * } - * ); + * }); * * // stop watch * subscription.unsubscribe(); @@ -53,7 +49,6 @@ export interface BatteryStatusResponse { }) @Injectable() export class BatteryStatus extends IonicNativePlugin { - /** * Watch the change in battery level * @returns {Observable} Returns an observable that pushes a status object @@ -62,7 +57,9 @@ export class BatteryStatus extends IonicNativePlugin { eventObservable: true, event: 'batterystatus' }) - onChange(): Observable { return; } + onChange(): Observable { + return; + } /** * Watch when the battery level goes low @@ -72,7 +69,9 @@ export class BatteryStatus extends IonicNativePlugin { eventObservable: true, event: 'batterylow' }) - onLow(): Observable { return; } + onLow(): Observable { + return; + } /** * Watch when the battery level goes to critial @@ -82,6 +81,7 @@ export class BatteryStatus extends IonicNativePlugin { eventObservable: true, event: 'batterycritical' }) - onCritical(): Observable { return; } - + onCritical(): Observable { + return; + } } From e345fed09fd2c843a7ed1671989f2465be32e16b Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Fri, 16 Mar 2018 14:30:32 +0100 Subject: [PATCH 071/110] feat(ble): add scan options interface --- src/@ionic-native/plugins/ble/index.ts | 87 +++++++++++++++++++------- 1 file changed, 65 insertions(+), 22 deletions(-) diff --git a/src/@ionic-native/plugins/ble/index.ts b/src/@ionic-native/plugins/ble/index.ts index 1a2688bfb..3deff7a1a 100644 --- a/src/@ionic-native/plugins/ble/index.ts +++ b/src/@ionic-native/plugins/ble/index.ts @@ -1,7 +1,12 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; +export interface BLEScanOptions { + /** true if duplicate devices should be reported, false (default) if devices should only be reported once. */ + reportDuplicates?: boolean; +} + /** * @name BLE * @description @@ -167,6 +172,8 @@ import { Observable } from 'rxjs/Observable'; * * UUIDs are always strings and not numbers. Some 16-bit UUIDs, such as '2220' look like integers, but they're not. (The integer 2220 is 0x8AC in hex.) This isn't a problem with 128 bit UUIDs since they look like strings 82b9e6e1-593a-456f-be9b-9215160ebcac. All 16-bit UUIDs should also be passed to methods as strings. * + * @interfaces + * BLEScanOptions */ @Plugin({ pluginName: 'BLE', @@ -177,7 +184,6 @@ import { Observable } from 'rxjs/Observable'; }) @Injectable() export class BLE extends IonicNativePlugin { - /** * Scan and discover BLE peripherals for the specified amount of time. * @@ -194,7 +200,9 @@ export class BLE extends IonicNativePlugin { @Cordova({ observable: true }) - scan(services: string[], seconds: number): Observable { return; } + scan(services: string[], seconds: number): Observable { + return; + } /** * Scan and discover BLE peripherals until `stopScan` is called. @@ -217,7 +225,9 @@ export class BLE extends IonicNativePlugin { clearFunction: 'stopScan', clearWithArgs: false }) - startScan(services: string[]): Observable { return; } + startScan(services: string[]): Observable { + return; + } /** * Scans for BLE devices. This function operates similarly to the `startScan` function, but allows you to specify extra options (like allowing duplicate device reports). @@ -230,7 +240,12 @@ export class BLE extends IonicNativePlugin { clearFunction: 'stopScan', clearWithArgs: false }) - startScanWithOptions(services: string[], options: { reportDuplicates?: boolean } | any): Observable { return; } + startScanWithOptions( + services: string[], + options: BLEScanOptions + ): Observable { + return; + } /** * Stop a scan started by `startScan`. @@ -247,7 +262,9 @@ export class BLE extends IonicNativePlugin { * @return returns a Promise. */ @Cordova() - stopScan(): Promise { return; } + stopScan(): Promise { + return; + } /** * Connect to a peripheral. @@ -268,7 +285,9 @@ export class BLE extends IonicNativePlugin { clearFunction: 'disconnect', clearWithArgs: true }) - connect(deviceId: string): Observable { return; } + connect(deviceId: string): Observable { + return; + } /** * Disconnect from a peripheral. @@ -282,7 +301,9 @@ export class BLE extends IonicNativePlugin { * @return Returns a Promise */ @Cordova() - disconnect(deviceId: string): Promise { return; } + disconnect(deviceId: string): Promise { + return; + } /** * Read the value of a characteristic. @@ -297,7 +318,9 @@ export class BLE extends IonicNativePlugin { deviceId: string, serviceUUID: string, characteristicUUID: string - ): Promise { return; }; + ): Promise { + return; + } /** * Write the value of a characteristic. @@ -333,7 +356,9 @@ export class BLE extends IonicNativePlugin { serviceUUID: string, characteristicUUID: string, value: ArrayBuffer - ): Promise { return; } + ): Promise { + return; + } /** * Write the value of a characteristic without waiting for confirmation from the peripheral. @@ -350,7 +375,9 @@ export class BLE extends IonicNativePlugin { serviceUUID: string, characteristicUUID: string, value: ArrayBuffer - ): Promise { return; } + ): Promise { + return; + } /** * Register to be notified when the value of a characteristic changes. @@ -376,7 +403,9 @@ export class BLE extends IonicNativePlugin { deviceId: string, serviceUUID: string, characteristicUUID: string - ): Observable { return; } + ): Observable { + return; + } /** * Stop being notified when the value of a characteristic changes. @@ -391,7 +420,9 @@ export class BLE extends IonicNativePlugin { deviceId: string, serviceUUID: string, characteristicUUID: string - ): Promise { return; } + ): Promise { + return; + } /** * Report the connection status. @@ -407,7 +438,9 @@ export class BLE extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - isConnected(deviceId: string): Promise { return; } + isConnected(deviceId: string): Promise { + return; + } /** * Report if bluetooth is enabled. @@ -415,7 +448,9 @@ export class BLE extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves if Bluetooth is enabled, and rejects if disabled. */ @Cordova() - isEnabled(): Promise { return; } + isEnabled(): Promise { + return; + } /** * Register to be notified when Bluetooth state changes on the device. @@ -434,7 +469,9 @@ export class BLE extends IonicNativePlugin { clearFunction: 'stopStateNotifications', clearWithArgs: false }) - startStateNotifications(): Observable { return; } + startStateNotifications(): Observable { + return; + } /** * Stop state notifications. @@ -442,7 +479,9 @@ export class BLE extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - stopStateNotifications(): Promise { return; } + stopStateNotifications(): Promise { + return; + } /** * Open System Bluetooth settings (Android only). @@ -450,7 +489,9 @@ export class BLE extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - showBluetoothSettings(): Promise { return; } + showBluetoothSettings(): Promise { + return; + } /** * Enable Bluetooth on the device (Android only). @@ -458,7 +499,9 @@ export class BLE extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - enable(): Promise { return; } + enable(): Promise { + return; + } /** * Read the RSSI value on the device connection. @@ -468,7 +511,7 @@ export class BLE extends IonicNativePlugin { *@returns {Promise} */ @Cordova() - readRSSI( - deviceId: string, - ): Promise { return; } + readRSSI(deviceId: string): Promise { + return; + } } From 447f00a202746b9a2ec97916b34abc0d9bf818a7 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Fri, 16 Mar 2018 14:34:51 +0100 Subject: [PATCH 072/110] docs(brightness): add correct types --- src/@ionic-native/plugins/brightness/index.ts | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/@ionic-native/plugins/brightness/index.ts b/src/@ionic-native/plugins/brightness/index.ts index d6a4aa677..76119f69c 100644 --- a/src/@ionic-native/plugins/brightness/index.ts +++ b/src/@ionic-native/plugins/brightness/index.ts @@ -1,6 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; - +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name Brightness @@ -31,15 +30,16 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; }) @Injectable() export class Brightness extends IonicNativePlugin { - /** * Sets the brightness of the display. * - * @param {value} Floating number between 0 and 1 in which case 1 means 100% brightness and 0 means 0% brightness. + * @param value {number} Floating number between 0 and 1 in which case 1 means 100% brightness and 0 means 0% brightness. * @returns {Promise} Returns a Promise that resolves if setting brightness was successful. */ @Cordova() - setBrightness(value: number): Promise { return; } + setBrightness(value: number): Promise { + return; + } /** * Reads the current brightness of the device display. @@ -48,12 +48,13 @@ export class Brightness extends IonicNativePlugin { * brightness value of the device display (floating number between 0 and 1). */ @Cordova() - getBrightness(): Promise { return; } + getBrightness(): Promise { + return; + } /** - * Keeps the screen on. Prevents the device from setting the screen to sleep. - */ + * Keeps the screen on. Prevents the device from setting the screen to sleep. + */ @Cordova() - setKeepScreenOn(value: boolean): void { } - + setKeepScreenOn(value: boolean): void {} } From 5f88ff02f2fe4415064cbfb5bf19e7348e31aad6 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Fri, 16 Mar 2018 14:35:12 +0100 Subject: [PATCH 073/110] Update index.ts --- src/@ionic-native/plugins/brightness/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/brightness/index.ts b/src/@ionic-native/plugins/brightness/index.ts index 76119f69c..54120ab96 100644 --- a/src/@ionic-native/plugins/brightness/index.ts +++ b/src/@ionic-native/plugins/brightness/index.ts @@ -16,7 +16,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; * * ... * - * let brightnessValue: number = 0.8; + * let brightnessValue = 0.8; * this.brightness.setBrightness(brightnessValue); * ``` * From 13765d2d6a9a20dd6cef670cc0e5b8f7d2ff0160 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Fri, 16 Mar 2018 14:42:22 +0100 Subject: [PATCH 074/110] feat(calendar): add getCreateCalendarOptions function --- src/@ionic-native/plugins/calendar/index.ts | 119 +++++++++++++++----- 1 file changed, 91 insertions(+), 28 deletions(-) diff --git a/src/@ionic-native/plugins/calendar/index.ts b/src/@ionic-native/plugins/calendar/index.ts index 329df3666..5854ce0e1 100644 --- a/src/@ionic-native/plugins/calendar/index.ts +++ b/src/@ionic-native/plugins/calendar/index.ts @@ -1,8 +1,7 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface CalendarOptions { - /** * Id */ @@ -47,7 +46,14 @@ export interface CalendarOptions { * URL */ url?: string; +} +export interface NameOrOptions { + /** Calendar name */ + calendarName?: string; + + /** Calendar color as a HEX string */ + calendarColor?: string; } /** @@ -72,6 +78,7 @@ export interface CalendarOptions { * ``` * @interfaces * CalendarOptions + * NameOrOptions */ @Plugin({ pluginName: 'Calendar', @@ -82,7 +89,6 @@ export interface CalendarOptions { }) @Injectable() export class Calendar extends IonicNativePlugin { - /** * This function checks if we have permission to read/write from/to the calendar. * The promise will resolve with `true` when: @@ -95,51 +101,65 @@ export class Calendar extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - hasReadWritePermission(): Promise { return; } + hasReadWritePermission(): Promise { + return; + } /** * Check if we have read permission * @returns {Promise} */ @Cordova() - hasReadPermission(): Promise { return; } + hasReadPermission(): Promise { + return; + } /** * Check if we have write permission * @returns {Promise} */ @Cordova() - hasWritePermission(): Promise { return; } + hasWritePermission(): Promise { + return; + } /** * Request write permission * @returns {Promise} */ @Cordova() - requestWritePermission(): Promise { return; } + requestWritePermission(): Promise { + return; + } /** * Request read permission * @returns {Promise} */ @Cordova() - requestReadPermission(): Promise { return; } + requestReadPermission(): Promise { + return; + } /** * Requests read/write permissions * @returns {Promise} */ @Cordova() - requestReadWritePermission(): Promise { return; } + requestReadWritePermission(): Promise { + return; + } /** * Create a calendar. (iOS only) * - * @param {string | Object} nameOrOptions either a string name or a options object. If string, provide the calendar name. IF an object, provide a calendar name as a string and a calendar color in hex format as a string + * @param {string | CalendarOptions} nameOrOptions either a string name or a options object. If string, provide the calendar name. IF an object, provide a calendar name as a string and a calendar color in hex format as a string * @returns {Promise} Returns a Promise */ @Cordova() - createCalendar(nameOrOptions: string | any): Promise { return; } + createCalendar(nameOrOptions: string | CalendarOptions): Promise { + return; + } /** * Delete a calendar. (iOS only) @@ -147,7 +167,9 @@ export class Calendar extends IonicNativePlugin { * @returns {Promise} Returns a Promise */ @Cordova() - deleteCalendar(name: string): Promise { return; } + deleteCalendar(name: string): Promise { + return; + } /** * Returns the default calendar options. @@ -157,7 +179,21 @@ export class Calendar extends IonicNativePlugin { @Cordova({ sync: true }) - getCalendarOptions(): CalendarOptions { return; } + getCalendarOptions(): CalendarOptions { + return; + } + + /** + * Returns options for a custom calender with sepcific colord + * + * @return {NameOrOptions} Returns an object with the default options + */ + @Cordova({ + sync: true + }) + getCreateCalendarOptions(): NameOrOptions { + return; + } /** * Silently create an event. @@ -175,7 +211,9 @@ export class Calendar extends IonicNativePlugin { notes?: string, startDate?: Date, endDate?: Date - ): Promise { return; } + ): Promise { + return; + } /** * Silently create an event with additional options. @@ -196,7 +234,9 @@ export class Calendar extends IonicNativePlugin { startDate?: Date, endDate?: Date, options?: CalendarOptions - ): Promise { return; } + ): Promise { + return; + } /** * Interactively create an event. @@ -215,7 +255,9 @@ export class Calendar extends IonicNativePlugin { notes?: string, startDate?: Date, endDate?: Date - ): Promise { return; } + ): Promise { + return; + } /** * Interactively create an event with additional options. @@ -236,7 +278,9 @@ export class Calendar extends IonicNativePlugin { startDate?: Date, endDate?: Date, options?: CalendarOptions - ): Promise { return; } + ): Promise { + return; + } /** * Find an event. @@ -255,7 +299,9 @@ export class Calendar extends IonicNativePlugin { notes?: string, startDate?: Date, endDate?: Date - ): Promise { return; } + ): Promise { + return; + } /** * Find an event with additional options. @@ -275,7 +321,9 @@ export class Calendar extends IonicNativePlugin { startDate?: Date, endDate?: Date, options?: CalendarOptions - ): Promise { return; } + ): Promise { + return; + } /** * Find a list of events within the specified date range. (Android only) @@ -287,14 +335,18 @@ export class Calendar extends IonicNativePlugin { @Cordova({ platforms: ['Android'] }) - listEventsInRange(startDate: Date, endDate: Date): Promise { return; } + listEventsInRange(startDate: Date, endDate: Date): Promise { + return; + } /** * Get a list of all calendars. * @returns {Promise} A Promise that resolves with the list of calendars, or rejects with an error. */ @Cordova() - listCalendars(): Promise { return; } + listCalendars(): Promise { + return; + } /** * Get a list of all future events in the specified calendar. (iOS only) @@ -303,7 +355,9 @@ export class Calendar extends IonicNativePlugin { @Cordova({ platforms: ['iOS'] }) - findAllEventsInNamedCalendar(calendarName: string): Promise { return; } + findAllEventsInNamedCalendar(calendarName: string): Promise { + return; + } /** * Modify an event. (iOS only) @@ -334,7 +388,9 @@ export class Calendar extends IonicNativePlugin { newNotes?: string, newStartDate?: Date, newEndDate?: Date - ): Promise { return; } + ): Promise { + return; + } /** * Modify an event with additional options. (iOS only) @@ -369,7 +425,9 @@ export class Calendar extends IonicNativePlugin { newEndDate?: Date, filterOptions?: CalendarOptions, newOptions?: CalendarOptions - ): Promise { return; } + ): Promise { + return; + } /** * Delete an event. @@ -388,7 +446,9 @@ export class Calendar extends IonicNativePlugin { notes?: string, startDate?: Date, endDate?: Date - ): Promise { return; } + ): Promise { + return; + } /** * Delete an event from the specified Calendar. (iOS only) @@ -411,7 +471,9 @@ export class Calendar extends IonicNativePlugin { startDate?: Date, endDate?: Date, calendarName?: string - ): Promise { return; } + ): Promise { + return; + } /** * Open the calendar at the specified date. @@ -419,6 +481,7 @@ export class Calendar extends IonicNativePlugin { * @return {Promise} Promise returns a promise */ @Cordova() - openCalendar(date: Date): Promise { return; } - + openCalendar(date: Date): Promise { + return; + } } From ac303d6f7fa85b61ba3c7b201f80c7f1b86072f7 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Fri, 16 Mar 2018 14:45:03 +0100 Subject: [PATCH 075/110] docs(call-number): add return values to example --- src/@ionic-native/plugins/call-number/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/@ionic-native/plugins/call-number/index.ts b/src/@ionic-native/plugins/call-number/index.ts index aa78c34a5..77a5ddd77 100644 --- a/src/@ionic-native/plugins/call-number/index.ts +++ b/src/@ionic-native/plugins/call-number/index.ts @@ -1,5 +1,6 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; + /** * @name Call Number * @description @@ -16,8 +17,8 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; * * * this.callNumber.callNumber("18001010101", true) - * .then(() => console.log('Launched dialer!')) - * .catch(() => console.log('Error launching dialer')); + * .then(res => console.log('Launched dialer!', res)) + * .catch(err => console.log('Error launching dialer', err)); * * ``` */ @@ -30,7 +31,6 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; }) @Injectable() export class CallNumber extends IonicNativePlugin { - /** * Calls a phone number * @param numberToCall {string} The phone number to call as a string From a393e5c55d436604517093dc87b6430d7d0c2faf Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Fri, 16 Mar 2018 14:56:22 +0100 Subject: [PATCH 076/110] date-picker(date-picker): fix some typos --- src/@ionic-native/plugins/date-picker/index.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/@ionic-native/plugins/date-picker/index.ts b/src/@ionic-native/plugins/date-picker/index.ts index 5c6667864..110e14f4e 100644 --- a/src/@ionic-native/plugins/date-picker/index.ts +++ b/src/@ionic-native/plugins/date-picker/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface DatePickerOptions { /** @@ -21,13 +21,13 @@ export interface DatePickerOptions { /** * Maximum date - * Default?: empty String + * Default: empty String */ maxDate?: Date | string | number; /** * Label for the dialog title. If empty, uses android default (Set date/Set time). - * Default?: empty String + * Default: empty String */ titleText?: string; @@ -116,7 +116,6 @@ export interface DatePickerOptions { * Force locale for datePicker. */ locale?: string; - } /** @@ -155,7 +154,6 @@ export interface DatePickerOptions { }) @Injectable() export class DatePicker extends IonicNativePlugin { - /** * @hidden */ @@ -176,5 +174,4 @@ export class DatePicker extends IonicNativePlugin { show(options: DatePickerOptions): Promise { return; } - } From 03c219936c6b8b7cc255a3c36b7e8f4bade747d2 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Fri, 16 Mar 2018 15:00:45 +0100 Subject: [PATCH 077/110] docs(db-meter): refactored example --- src/@ionic-native/plugins/db-meter/index.ts | 22 +++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/src/@ionic-native/plugins/db-meter/index.ts b/src/@ionic-native/plugins/db-meter/index.ts index 01e54bd83..b413617fc 100644 --- a/src/@ionic-native/plugins/db-meter/index.ts +++ b/src/@ionic-native/plugins/db-meter/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; /** @@ -21,7 +21,7 @@ import { Observable } from 'rxjs/Observable'; * * // Check if we are listening * this.dbMeter.isListening().then( - * (isListening: boolean) => console.log(isListening) + * isListening => console.log(isListening) * ); * * // Stop listening @@ -43,7 +43,6 @@ import { Observable } from 'rxjs/Observable'; }) @Injectable() export class DBMeter extends IonicNativePlugin { - /** * Starts listening * @returns {Observable} Returns an observable. Subscribe to start listening. Unsubscribe to stop listening. @@ -52,27 +51,34 @@ export class DBMeter extends IonicNativePlugin { observable: true, clearFunction: 'stop' }) - start(): Observable { return; } + start(): Observable { + return; + } /** * Stops listening * @hidden */ @Cordova() - stop(): Promise { return; } + stop(): Promise { + return; + } /** * Check if the DB Meter is listening * @returns {Promise} Returns a promise that resolves with a boolean that tells us whether the DB meter is listening */ @Cordova() - isListening(): Promise { return; } + isListening(): Promise { + return; + } /** * Delete the DB Meter instance * @returns {Promise} Returns a promise that will resolve if the instance has been deleted, and rejects if errors occur. */ @Cordova() - delete(): Promise { return; } - + delete(): Promise { + return; + } } From d2261b643202df5fa2face83a178eb848a6f7829 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Fri, 16 Mar 2018 15:11:08 +0100 Subject: [PATCH 078/110] feat(device-accounts): add android account interface --- .../plugins/device-accounts/index.ts | 41 ++++++++++++++----- 1 file changed, 30 insertions(+), 11 deletions(-) diff --git a/src/@ionic-native/plugins/device-accounts/index.ts b/src/@ionic-native/plugins/device-accounts/index.ts index ec345c165..903ddc380 100644 --- a/src/@ionic-native/plugins/device-accounts/index.ts +++ b/src/@ionic-native/plugins/device-accounts/index.ts @@ -1,5 +1,16 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; + +export interface AndroidAccount { + /** Account creator */ + CREATOR: AndroidAccount; + + /** Account name */ + name: string; + + /** Account type */ + type: string; +} /** * @name Device Accounts @@ -19,6 +30,8 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; * .catch(error => console.error(error)); * * ``` + * @interfaces + * AndroidAccount */ @Plugin({ pluginName: 'DeviceAccounts', @@ -29,33 +42,39 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; }) @Injectable() export class DeviceAccounts extends IonicNativePlugin { - /** * Gets all accounts registered on the Android Device - * @returns {Promise} + * @returns {Promise} */ @Cordova() - get(): Promise { return; } + get(): Promise { + return; + } /** * Get all accounts registered on Android device for requested type - * @returns {Promise} + * @returns {Promise} */ @Cordova() - getByType(type: string): Promise { return; } + getByType(type: string): Promise { + return; + } /** * Get all emails registered on Android device (accounts with 'com.google' type) - * @returns {Promise} + * @returns {Promise} */ @Cordova() - getEmails(): Promise { return; } + getEmails(): Promise { + return; + } /** * Get the first email registered on Android device - * @returns {Promise} + * @returns {Promise} */ @Cordova() - getEmail(): Promise { return; } - + getEmail(): Promise { + return; + } } From 7cafebd0e88c828daa562364f8a390ab695ee6a8 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Fri, 16 Mar 2018 15:17:29 +0100 Subject: [PATCH 079/110] feat(device-feedback): add feedback interface --- .../plugins/device-feedback/index.ts | 30 ++++++++++++------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/src/@ionic-native/plugins/device-feedback/index.ts b/src/@ionic-native/plugins/device-feedback/index.ts index 5246e4e6d..132c523f8 100644 --- a/src/@ionic-native/plugins/device-feedback/index.ts +++ b/src/@ionic-native/plugins/device-feedback/index.ts @@ -1,5 +1,14 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; + +export interface DeviceFeedbackEnabled { + /** Haptic Feedback */ + haptic: boolean; + + /** Acoustic Feedback */ + acoustic: boolean; +} + /** * @name Device Feedback * @description @@ -19,8 +28,7 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; * * this.deviceFeedback.haptic(0); * - * this.deviceFeedback.isFeedbackEnabled() - * .then((feedback) => { + * this.deviceFeedback.isFeedbackEnabled().then(feedback => { * console.log(feedback); * // { * // acoustic: true, @@ -29,6 +37,8 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; * }); * * ``` + * @innterfaces + * DeviceFeedbackEnabled */ @Plugin({ pluginName: 'DeviceFeedback', @@ -39,25 +49,25 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; }) @Injectable() export class DeviceFeedback extends IonicNativePlugin { - /** * Provide sound feedback to user, nevertheless respect user's settings and current active device profile as native feedback do. */ @Cordova({ sync: true }) - acoustic(): void { } + acoustic(): void {} /** * Provide vibrate feedback to user, nevertheless respect user's tactile feedback setting as native feedback do. - * @param type {Number} Specify type of vibration feedback. 0 for long press, 1 for virtual key, or 3 for keyboard tap. + * @param type {number} Specify type of vibration feedback. 0 for long press, 1 for virtual key, or 3 for keyboard tap. */ @Cordova({ sync: true }) - haptic(type: number): void { } + haptic(type: number): void {} /** * Check if haptic and acoustic feedback is enabled by user settings. - * @returns {Promise} + * @returns {Promise} */ @Cordova() - isFeedbackEnabled(): Promise<{ haptic: boolean; acoustic: boolean; }> { return; } - + isFeedbackEnabled(): Promise { + return; + } } From 8d2681a9fc3a0b88db3110b2a0261e7df24860bb Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Fri, 16 Mar 2018 16:32:43 +0100 Subject: [PATCH 080/110] ref(device-orientation): add missing type --- src/@ionic-native/plugins/device-orientation/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/device-orientation/index.ts b/src/@ionic-native/plugins/device-orientation/index.ts index bbddc0339..ffd4e52aa 100644 --- a/src/@ionic-native/plugins/device-orientation/index.ts +++ b/src/@ionic-native/plugins/device-orientation/index.ts @@ -22,7 +22,7 @@ export interface DeviceOrientationCompassHeading { /** * The time at which this heading was determined. (DOMTimeStamp) */ - timestamp: any; + timestamp: number; } From 241f0733ee69809846f62384e961b6bc3c8e9773 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Fri, 16 Mar 2018 17:55:42 +0100 Subject: [PATCH 081/110] feat(sqlite): add selfTest function fix: #963 --- src/@ionic-native/plugins/sqlite/index.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/@ionic-native/plugins/sqlite/index.ts b/src/@ionic-native/plugins/sqlite/index.ts index 82d814fd4..dbbb93f1f 100644 --- a/src/@ionic-native/plugins/sqlite/index.ts +++ b/src/@ionic-native/plugins/sqlite/index.ts @@ -181,6 +181,13 @@ export class SQLite extends IonicNativePlugin { */ @Cordova() echoTest(): Promise { return; } + + /** + * Automatically verify basic database access operations including opening a database + * @returns {Promise} + */ + @Cordova() + selfTest(): Promise { return; } /** * Deletes a database From f607a03c9ba2bf39b8da173ed4efa888efd01d74 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Fri, 16 Mar 2018 20:25:12 +0100 Subject: [PATCH 082/110] fix(contacts): refactor wrong ContactFieldTypes --- src/@ionic-native/plugins/contacts/index.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/@ionic-native/plugins/contacts/index.ts b/src/@ionic-native/plugins/contacts/index.ts index d4a301553..495703233 100644 --- a/src/@ionic-native/plugins/contacts/index.ts +++ b/src/@ionic-native/plugins/contacts/index.ts @@ -1,10 +1,9 @@ -import { Injectable } from '@angular/core'; import { CordovaInstance, InstanceProperty, Plugin, getPromise, InstanceCheck, checkAvailability, CordovaCheck, IonicNativePlugin } from '@ionic-native/core'; declare const window: any, navigator: any; -export type ContactFieldType = '*' | 'addresses' | 'birthday' | 'categories' | 'country' | 'department' | 'displayName' | 'emails' | 'familyName' | 'formatted' | 'givenName' | 'honorificPrefix' | 'honorificSuffix' | 'id' | 'ims' | 'locality' | 'middleName' | 'name' | 'nickname' | 'note' | 'organizations' | 'phoneNumbers' | 'photos' | 'postalCode' | 'region' | 'streetAddress' | 'title' | 'urls'; +export type ContactFieldType = '*' | 'addresses' | 'birthday' | 'categories' | 'country' | 'department' | 'displayName' | 'emails' | 'name.familyName' | 'name.formatted' | 'name.givenName' | 'name.honorificPrefix' | 'name.honorificSuffix' | 'id' | 'ims' | 'locality' | 'name.middleName' | 'name' | 'nickname' | 'note' | 'organizations' | 'phoneNumbers' | 'photos' | 'postalCode' | 'region' | 'streetAddress' | 'title' | 'urls'; export interface IContactProperties { @@ -261,10 +260,6 @@ export class ContactFindOptions implements IContactFindOptions { * @description * Access and manage Contacts on the device. * - * @deprecated - * This plugin is being deprecated. No more work will be done on this plugin by the Cordova development community. - * You can continue to use this plugin and it should work as-is in the future but any more arising issues will not be fixed by the Cordova community. - * * @usage * * ```typescript @@ -298,9 +293,8 @@ export class ContactFindOptions implements IContactFindOptions { plugin: 'cordova-plugin-contacts', pluginRef: 'navigator.contacts', repo: 'https://github.com/apache/cordova-plugin-contacts', - platforms: ['Android', 'iOS', 'Windows'] + platforms: ['Android', 'BlackBerry 10', 'Browser', 'Firefox OS', 'iOS', 'Ubuntu', 'Windows', 'Windows 8', 'Windows Phone'] }) -@Injectable() export class Contacts extends IonicNativePlugin { /** From 7547a94c80b712d335e0c090047f1b8139179532 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 16 Mar 2018 20:48:02 +0100 Subject: [PATCH 083/110] fix(sqlite): remove trailing whitespaces --- src/@ionic-native/plugins/sqlite/index.ts | 83 ++++++++++++++++------- 1 file changed, 59 insertions(+), 24 deletions(-) diff --git a/src/@ionic-native/plugins/sqlite/index.ts b/src/@ionic-native/plugins/sqlite/index.ts index dbbb93f1f..36bba60a5 100644 --- a/src/@ionic-native/plugins/sqlite/index.ts +++ b/src/@ionic-native/plugins/sqlite/index.ts @@ -1,5 +1,12 @@ import { Injectable } from '@angular/core'; -import { Cordova, CordovaInstance, Plugin, CordovaCheck, InstanceProperty, IonicNativePlugin } from '@ionic-native/core'; +import { + Cordova, + CordovaCheck, + CordovaInstance, + InstanceProperty, + IonicNativePlugin, + Plugin +} from '@ionic-native/core'; declare const sqlitePlugin: any; @@ -17,8 +24,8 @@ export interface SQLiteDatabaseConfig { */ iosDatabaseLocation?: string; /** - * support opening pre-filled databases with https://github.com/litehelpers/cordova-sqlite-ext - */ + * support opening pre-filled databases with https://github.com/litehelpers/cordova-sqlite-ext + */ createFromLocation?: number; /** * support encrypted databases with https://github.com/litehelpers/Cordova-sqlcipher-adapter @@ -31,8 +38,18 @@ export interface SQLiteDatabaseConfig { */ export interface SQLiteTransaction { start: () => void; - executeSql: (sql: any, values: any, success: Function, error: Function) => void; - addStatement: (sql: any, values: any, success: Function, error: Function) => void; + executeSql: ( + sql: any, + values: any, + success: Function, + error: Function + ) => void; + addStatement: ( + sql: any, + values: any, + success: Function, + error: Function + ) => void; handleStatementSuccess: (handler: Function, response: any) => void; handleStatementFailure: (handler: Function, response: any) => void; run: () => void; @@ -45,8 +62,7 @@ export interface SQLiteTransaction { * @hidden */ export class SQLiteObject { - - constructor(public _objectInstance: any) { } + constructor(public _objectInstance: any) {} @InstanceProperty databaseFeatures: { isSQLitePluginDatabase: boolean }; @@ -55,7 +71,7 @@ export class SQLiteObject { @CordovaInstance({ sync: true }) - addTransaction(transaction: (tx: SQLiteTransaction) => void): void { } + addTransaction(transaction: (tx: SQLiteTransaction) => void): void {} /** * @param fn {any} @@ -65,51 +81,62 @@ export class SQLiteObject { successIndex: 2, errorIndex: 1 }) - transaction(fn: any): Promise { return; } + transaction(fn: any): Promise { + return; + } /** * @param fn {Function} * @returns {Promise} */ @CordovaInstance() - readTransaction(fn: (tx: SQLiteTransaction) => void): Promise { return; } + readTransaction(fn: (tx: SQLiteTransaction) => void): Promise { + return; + } @CordovaInstance({ sync: true }) - startNextTransaction(): void { } + startNextTransaction(): void {} /** * @returns {Promise} */ @CordovaInstance() - open(): Promise { return; } + open(): Promise { + return; + } /** * @returns {Promise} */ @CordovaInstance() - close(): Promise { return; } + close(): Promise { + return; + } /** * Execute SQL on the opened database. Note, you must call `create` first, and * ensure it resolved and successfully opened the database. */ @CordovaInstance() - executeSql(statement: string, params: any): Promise { return; } + executeSql(statement: string, params: any): Promise { + return; + } /** * @param sqlStatements {Array} * @returns {Promise} */ @CordovaInstance() - sqlBatch(sqlStatements: Array): Promise { return; } + sqlBatch(sqlStatements: Array): Promise { + return; + } @CordovaInstance({ sync: true }) - abortallPendingTransactions(): void { } - + abortallPendingTransactions(): void {} } /** @@ -159,7 +186,6 @@ export class SQLiteObject { }) @Injectable() export class SQLite extends IonicNativePlugin { - /** * Open or create a SQLite database file. * @@ -171,7 +197,11 @@ export class SQLite extends IonicNativePlugin { @CordovaCheck() create(config: SQLiteDatabaseConfig): Promise { return new Promise((resolve, reject) => { - sqlitePlugin.openDatabase(config, (db: any) => resolve(new SQLiteObject(db)), reject); + sqlitePlugin.openDatabase( + config, + (db: any) => resolve(new SQLiteObject(db)), + reject + ); }); } @@ -180,14 +210,18 @@ export class SQLite extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - echoTest(): Promise { return; } - + echoTest(): Promise { + return; + } + /** * Automatically verify basic database access operations including opening a database * @returns {Promise} */ @Cordova() - selfTest(): Promise { return; } + selfTest(): Promise { + return; + } /** * Deletes a database @@ -195,6 +229,7 @@ export class SQLite extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - deleteDatabase(config: SQLiteDatabaseConfig): Promise { return; } - + deleteDatabase(config: SQLiteDatabaseConfig): Promise { + return; + } } From 21ad4734fa60ed27d27b9d9dddff910437b6ec82 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 16 Mar 2018 22:04:01 +0100 Subject: [PATCH 084/110] chore(package): bump dependencies and lint rules --- package-lock.json | 5122 ++++++++++++++--- package.json | 57 +- scripts/build/build.js | 76 +- scripts/build/publish.js | 23 +- scripts/docs/gulp-tasks.js | 29 +- src/@ionic-native/core/bootstrap.ts | 8 +- src/@ionic-native/core/decorators.spec.ts | 161 +- src/@ionic-native/core/decorators.ts | 48 +- .../core/ionic-native-plugin.spec.ts | 29 +- src/@ionic-native/core/ionic-native-plugin.ts | 24 +- src/@ionic-native/core/plugin.ts | 279 +- src/@ionic-native/core/util.ts | 36 +- .../plugins/action-sheet/index.ts | 13 +- src/@ionic-native/plugins/admob-free/index.ts | 73 +- src/@ionic-native/plugins/admob-pro/index.ts | 69 +- src/@ionic-native/plugins/alipay/index.ts | 11 +- .../plugins/android-exoplayer/index.ts | 63 +- .../plugins/android-fingerprint-auth/index.ts | 65 +- .../plugins/android-full-screen/index.ts | 42 +- .../plugins/android-permissions/index.ts | 49 +- .../plugins/app-availability/index.ts | 8 +- .../plugins/app-minimize/index.ts | 8 +- .../plugins/app-preferences/index.ts | 52 +- src/@ionic-native/plugins/app-rate/index.ts | 7 +- .../plugins/app-version/index.ts | 22 +- src/@ionic-native/plugins/apple-pay/index.ts | 54 +- src/@ionic-native/plugins/appodeal/index.ts | 199 +- src/@ionic-native/plugins/autostart/index.ts | 8 +- .../plugins/background-fetch/index.ts | 25 +- .../plugins/background-geolocation/index.ts | 200 +- .../plugins/background-mode/index.ts | 2 +- src/@ionic-native/plugins/backlight/index.ts | 13 +- src/@ionic-native/plugins/badge/index.ts | 2 +- src/@ionic-native/plugins/base64/index.ts | 8 +- .../plugins/bluetooth-serial/index.ts | 81 +- src/@ionic-native/plugins/braintree/index.ts | 31 +- .../plugins/broadcaster/index.ts | 12 +- .../plugins/browser-tab/index.ts | 15 +- .../plugins/camera-preview/index.ts | 113 +- src/@ionic-native/plugins/camera/index.ts | 16 +- src/@ionic-native/plugins/card-io/index.ts | 20 +- src/@ionic-native/plugins/clipboard/index.ts | 13 +- src/@ionic-native/plugins/code-push/index.ts | 104 +- src/@ionic-native/plugins/contacts/index.ts | 117 +- .../plugins/couchbase-lite/index.ts | 17 +- src/@ionic-native/plugins/crop/index.ts | 2 +- src/@ionic-native/plugins/deeplinks/index.ts | 30 +- .../plugins/device-motion/index.ts | 30 +- .../plugins/device-orientation/index.ts | 31 +- src/@ionic-native/plugins/device/index.ts | 28 +- src/@ionic-native/plugins/diagnostic/index.ts | 321 +- src/@ionic-native/plugins/dialogs/index.ts | 32 +- src/@ionic-native/plugins/dns/index.ts | 6 +- .../plugins/document-viewer/index.ts | 28 +- .../plugins/email-composer/index.ts | 26 +- .../plugins/estimote-beacons/index.ts | 145 +- .../extended-device-information/index.ts | 16 +- src/@ionic-native/plugins/facebook/index.ts | 112 +- src/@ionic-native/plugins/fcm/index.ts | 26 +- .../plugins/file-chooser/index.ts | 8 +- .../plugins/file-encryption/index.ts | 12 +- .../plugins/file-opener/index.ts | 16 +- src/@ionic-native/plugins/file-path/index.ts | 8 +- .../plugins/file-transfer/index.ts | 58 +- src/@ionic-native/plugins/file/index.ts | 562 +- .../plugins/fingerprint-aio/index.ts | 13 +- .../plugins/firebase-analytics/index.ts | 24 +- .../plugins/firebase-dynamic-links/index.ts | 15 +- src/@ionic-native/plugins/firebase/index.ts | 9 +- src/@ionic-native/plugins/flashlight/index.ts | 25 +- .../plugins/flurry-analytics/index.ts | 32 +- src/@ionic-native/plugins/ftp/index.ts | 58 +- src/@ionic-native/plugins/geofence/index.ts | 43 +- .../plugins/geolocation/index.ts | 31 +- .../plugins/globalization/index.ts | 103 +- .../plugins/google-analytics/index.ts | 2 +- .../plugins/google-maps/index.ts | 842 ++- .../google-play-games-services/index.ts | 103 +- .../plugins/google-plus/index.ts | 27 +- src/@ionic-native/plugins/gyroscope/index.ts | 23 +- .../plugins/header-color/index.ts | 8 +- src/@ionic-native/plugins/health-kit/index.ts | 339 +- src/@ionic-native/plugins/health/index.ts | 44 +- src/@ionic-native/plugins/hotspot/index.ts | 141 +- src/@ionic-native/plugins/http/index.ts | 75 +- src/@ionic-native/plugins/httpd/index.ts | 18 +- .../plugins/hyper-track/index.ts | 69 +- src/@ionic-native/plugins/ibeacon/index.ts | 257 +- .../plugins/image-picker/index.ts | 19 +- .../plugins/image-resizer/index.ts | 6 +- .../plugins/in-app-browser/index.ts | 85 +- .../plugins/in-app-purchase-2/index.ts | 289 +- .../plugins/in-app-purchase/index.ts | 47 +- src/@ionic-native/plugins/insomnia/index.ts | 22 +- src/@ionic-native/plugins/instagram/index.ts | 16 +- .../plugins/intel-security/index.ts | 85 +- src/@ionic-native/plugins/intercom/index.ts | 72 +- src/@ionic-native/plugins/jins-meme/index.ts | 84 +- src/@ionic-native/plugins/keyboard/index.ts | 21 +- .../plugins/keychain-touch-id/index.ts | 20 +- src/@ionic-native/plugins/keychain/index.ts | 29 +- .../plugins/launch-navigator/index.ts | 66 +- .../plugins/launch-review/index.ts | 16 +- src/@ionic-native/plugins/linkedin/index.ts | 39 +- .../plugins/local-notifications/index.ts | 100 +- .../plugins/location-accuracy/index.ts | 15 +- src/@ionic-native/plugins/market/index.ts | 13 +- .../plugins/media-capture/index.ts | 36 +- src/@ionic-native/plugins/media/index.ts | 86 +- src/@ionic-native/plugins/mixpanel/index.ts | 62 +- .../plugins/mobile-accessibility/index.ts | 129 +- src/@ionic-native/plugins/ms-adal/index.ts | 52 +- .../plugins/music-controls/index.ts | 29 +- .../plugins/native-audio/index.ts | 38 +- .../plugins/native-geocoder/index.ts | 16 +- .../plugins/native-keyboard/index.ts | 18 +- .../plugins/native-page-transitions/index.ts | 34 +- .../plugins/native-ringtones/index.ts | 15 +- .../plugins/native-storage/index.ts | 24 +- .../plugins/navigation-bar/index.ts | 17 +- .../plugins/network-interface/index.ts | 12 +- src/@ionic-native/plugins/network/index.ts | 28 +- src/@ionic-native/plugins/nfc/index.ts | 274 +- src/@ionic-native/plugins/onesignal/index.ts | 2 +- .../plugins/open-native-settings/index.ts | 14 +- src/@ionic-native/plugins/paypal/index.ts | 66 +- src/@ionic-native/plugins/pedometer/index.ts | 45 +- .../phonegap-local-notification/index.ts | 38 +- .../plugins/photo-library/index.ts | 85 +- .../plugins/photo-viewer/index.ts | 6 +- src/@ionic-native/plugins/pin-check/index.ts | 6 +- src/@ionic-native/plugins/pin-dialog/index.ts | 12 +- src/@ionic-native/plugins/pinterest/index.ts | 91 +- .../plugins/power-management/index.ts | 19 +- src/@ionic-native/plugins/printer/index.ts | 27 +- src/@ionic-native/plugins/pro/index.ts | 73 +- src/@ionic-native/plugins/push/index.ts | 70 +- src/@ionic-native/plugins/qqsdk/index.ts | 9 +- src/@ionic-native/plugins/qr-scanner/index.ts | 56 +- .../plugins/regula-document-reader/index.ts | 10 +- src/@ionic-native/plugins/rollbar/index.ts | 11 +- .../plugins/safari-view-controller/index.ts | 28 +- .../plugins/screen-orientation/index.ts | 24 +- src/@ionic-native/plugins/screenshot/index.ts | 56 +- .../plugins/secure-storage/index.ts | 43 +- src/@ionic-native/plugins/serial/index.ts | 32 +- src/@ionic-native/plugins/shake/index.ts | 8 +- src/@ionic-native/plugins/sim/index.ts | 15 +- src/@ionic-native/plugins/sms/index.ts | 17 +- .../plugins/social-sharing/index.ts | 106 +- .../plugins/speech-recognition/index.ts | 15 +- .../plugins/spinner-dialog/index.ts | 11 +- .../plugins/splash-screen/index.ts | 9 +- .../plugins/sqlite-porter/index.ts | 35 +- src/@ionic-native/plugins/status-bar/index.ts | 33 +- .../plugins/stepcounter/index.ts | 28 +- .../plugins/streaming-media/index.ts | 13 +- src/@ionic-native/plugins/stripe/index.ts | 76 +- .../plugins/taptic-engine/index.ts | 14 +- .../plugins/text-to-speech/index.ts | 4 +- .../plugins/themeable-browser/index.ts | 72 +- .../plugins/three-dee-touch/index.ts | 31 +- src/@ionic-native/plugins/toast/index.ts | 44 +- src/@ionic-native/plugins/touch-id/index.ts | 28 +- .../plugins/twitter-connect/index.ts | 17 +- src/@ionic-native/plugins/uid/index.ts | 27 +- .../plugins/unique-device-id/index.ts | 8 +- src/@ionic-native/plugins/user-agent/index.ts | 4 +- src/@ionic-native/plugins/vibration/index.ts | 7 +- .../plugins/video-capture-plus/index.ts | 45 +- .../plugins/video-editor/index.ts | 29 +- .../plugins/video-player/index.ts | 15 +- src/@ionic-native/plugins/web-intent/index.ts | 10 +- .../plugins/wheel-selector/index.ts | 12 +- .../plugins/youtube-video-player/index.ts | 7 +- src/@ionic-native/plugins/zbar/index.ts | 8 +- src/@ionic-native/plugins/zeroconf/index.ts | 40 +- src/@ionic-native/plugins/zip/index.ts | 12 +- 178 files changed, 10565 insertions(+), 4194 deletions(-) diff --git a/package-lock.json b/package-lock.json index c7cf02487..89e0aaca5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,41 +5,33 @@ "requires": true, "dependencies": { "@angular/compiler": { - "version": "4.4.4", - "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-4.4.4.tgz", - "integrity": "sha1-Mm6wAp2aNUGqyhJN75rcUcNvK0E=", + "version": "5.2.9", + "resolved": "http://registry.npmjs.org/@angular/compiler/-/compiler-5.2.9.tgz", + "integrity": "sha512-mN+ofInk8y/tk2TCJZx8RrGdOKdrfunoCair7tfDy4XoQJE90waGfaYWo07hYU+UYwLhrg19m2Czy6rIDciUJA==", "dev": true, "requires": { - "tslib": "1.8.0" + "tslib": "1.9.0" } }, "@angular/compiler-cli": { - "version": "4.4.4", - "resolved": "https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-4.4.4.tgz", - "integrity": "sha1-BjCApJfZF1OWglBQIixxfaGE9s8=", + "version": "5.2.9", + "resolved": "http://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-5.2.9.tgz", + "integrity": "sha512-LAEpL/6PAev3zwTow/43Atzv9AtKLAiLoS285X3EV1f80yQpYAmFRrPUtDlrIZdhZHBBv7CxnyCVpOLU3T8ohw==", "dev": true, "requires": { - "@angular/tsc-wrapped": "4.4.4", + "chokidar": "1.7.0", "minimist": "1.2.0", - "reflect-metadata": "0.1.10" + "reflect-metadata": "0.1.12", + "tsickle": "0.27.2" } }, "@angular/core": { - "version": "4.4.4", - "resolved": "https://registry.npmjs.org/@angular/core/-/core-4.4.4.tgz", - "integrity": "sha1-vTfs9UFY+XSJmWyThr0iL4CjL1w=", + "version": "5.2.9", + "resolved": "https://registry.npmjs.org/@angular/core/-/core-5.2.9.tgz", + "integrity": "sha512-cvHBJGtasrIoARvbLFyHaOsiWKVwMNrrSTZLwrlyHP8oYzkDrE0qKGer6QCqyKt+51hF53cgWEffGzM/u/0wYg==", "dev": true, "requires": { - "tslib": "1.8.0" - } - }, - "@angular/tsc-wrapped": { - "version": "4.4.4", - "resolved": "https://registry.npmjs.org/@angular/tsc-wrapped/-/tsc-wrapped-4.4.4.tgz", - "integrity": "sha1-mEGCHlVha4JsoWAlD+heFfx0/8M=", - "dev": true, - "requires": { - "tsickle": "0.21.6" + "tslib": "1.9.0" } }, "@types/cordova": { @@ -48,16 +40,22 @@ "integrity": "sha1-6nrd907Ow9dimCegw54smt3HPQQ=", "dev": true }, + "@types/fancy-log": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@types/fancy-log/-/fancy-log-1.3.0.tgz", + "integrity": "sha512-mQjDxyOM1Cpocd+vm1kZBP7smwKZ4TNokFeds9LV7OZibmPJFEzY3+xZMrKfUdNT71lv8GoCPD6upKwHxubClw==", + "dev": true + }, "@types/jasmine": { - "version": "2.6.3", - "resolved": "https://registry.npmjs.org/@types/jasmine/-/jasmine-2.6.3.tgz", - "integrity": "sha512-2dJf9//QxTnFBXHsCqLbB55jlMreJQie9HhgsZrSgHveOKCWVmgcXgRyvIi22Ndk/dJ/e2srLOstk2NgVbb7XA==", + "version": "2.8.6", + "resolved": "https://registry.npmjs.org/@types/jasmine/-/jasmine-2.8.6.tgz", + "integrity": "sha512-clg9raJTY0EOo5pVZKX3ZlMjlYzVU73L71q5OV1jhE2Uezb7oF94jh4CvwrW6wInquQAdhOxJz5VDF2TLUGmmA==", "dev": true }, "@types/node": { - "version": "8.0.51", - "resolved": "https://registry.npmjs.org/@types/node/-/node-8.0.51.tgz", - "integrity": "sha512-El3+WJk2D/ppWNd2X05aiP5l2k4EwF7KwheknQZls+I26eSICoWRhRIJ56jGgw2dqNGQ5LtNajmBU2ajS28EvQ==", + "version": "8.9.5", + "resolved": "http://registry.npmjs.org/@types/node/-/node-8.9.5.tgz", + "integrity": "sha512-jRHfWsvyMtXdbhnz5CVHxaBgnV6duZnPlQuRSo/dm/GnmikNcmZhxIES4E9OZjUmQ8C+HCl4KJux+cXN/ErGDQ==", "dev": true }, "JSONStream": { @@ -77,13 +75,30 @@ "dev": true }, "accepts": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.3.tgz", - "integrity": "sha1-w8p0NJOGSMPg2cHjKN1otiLChMo=", + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.5.tgz", + "integrity": "sha1-63d99gEXI6OxTopywIBcjoZ0a9I=", "dev": true, "requires": { - "mime-types": "2.1.17", + "mime-types": "2.1.18", "negotiator": "0.6.1" + }, + "dependencies": { + "mime-db": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.33.0.tgz", + "integrity": "sha512-BHJ/EKruNIqJf/QahvxwQZXKygOQ256myeN/Ew+THcAa5q+PjyTTMMeNQC4DZw5AwfvelsUrA6B67NKMqXDbzQ==", + "dev": true + }, + "mime-types": { + "version": "2.1.18", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.18.tgz", + "integrity": "sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ==", + "dev": true, + "requires": { + "mime-db": "1.33.0" + } + } } }, "acorn": { @@ -92,18 +107,61 @@ "integrity": "sha1-EFSVrlNh1pe9GVyCUZLhrX8lN4c=", "dev": true }, + "acorn-node": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/acorn-node/-/acorn-node-1.3.0.tgz", + "integrity": "sha512-efP54n3d1aLfjL2UMdaXa6DsswwzJeI5rqhbFvXMrKiJ6eJFpf+7R0zN7t8IC+XKn2YOAFAv6xbBNgHUkoHWLw==", + "dev": true, + "requires": { + "acorn": "5.5.3", + "xtend": "4.0.1" + }, + "dependencies": { + "acorn": { + "version": "5.5.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.5.3.tgz", + "integrity": "sha512-jd5MkIUlbbmb07nXH0DT3y7rDVtkzDi4XZOUVWAer8ajmF/DTSSbl5oNFyDOl/OXA33Bl79+ypHhl2pN20VeOQ==", + "dev": true + } + } + }, "add-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/add-stream/-/add-stream-1.0.0.tgz", "integrity": "sha1-anmQQ3ynNtXhKI25K9MmbV9csqo=", "dev": true }, + "addressparser": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/addressparser/-/addressparser-1.0.1.tgz", + "integrity": "sha1-R6++GiqSYhkdtoOOT9HTm0CCF0Y=", + "dev": true, + "optional": true + }, "after": { "version": "0.8.2", "resolved": "https://registry.npmjs.org/after/-/after-0.8.2.tgz", "integrity": "sha1-/ts5T58OAqqXaOcCvaI7UF+ufh8=", "dev": true }, + "agent-base": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-2.1.1.tgz", + "integrity": "sha1-1t4Q1a9hMtW9aSQn1G/FOFOQlMc=", + "dev": true, + "requires": { + "extend": "3.0.1", + "semver": "5.0.3" + }, + "dependencies": { + "semver": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.0.3.tgz", + "integrity": "sha1-d0Zt5YnNXTyV8TiqeLxWmjy10no=", + "dev": true + } + } + }, "ajv": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.3.0.tgz", @@ -133,6 +191,85 @@ "integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=", "dev": true }, + "amqplib": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/amqplib/-/amqplib-0.5.2.tgz", + "integrity": "sha512-l9mCs6LbydtHqRniRwYkKdqxVa6XMz3Vw1fh+2gJaaVgTM6Jk3o8RccAKWKtlhT1US5sWrFh+KKxsVUALURSIA==", + "dev": true, + "optional": true, + "requires": { + "bitsyntax": "0.0.4", + "bluebird": "3.5.1", + "buffer-more-ints": "0.0.2", + "readable-stream": "1.1.14", + "safe-buffer": "5.1.1" + }, + "dependencies": { + "isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", + "dev": true, + "optional": true + }, + "readable-stream": { + "version": "1.1.14", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", + "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", + "dev": true, + "optional": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "0.0.1", + "string_decoder": "0.10.31" + } + }, + "string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", + "dev": true, + "optional": true + } + } + }, + "ansi-colors": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-1.1.0.tgz", + "integrity": "sha512-SFKX67auSNoVR38N3L+nvsPjOE0bybKTYbkf5tRvushrAPQ9V75huw0ZxBkKVeRU9kqH3d6HA4xTckbwZ4ixmA==", + "dev": true, + "requires": { + "ansi-wrap": "0.1.0" + } + }, + "ansi-cyan": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-cyan/-/ansi-cyan-0.1.1.tgz", + "integrity": "sha1-U4rlKK+JgvKK4w2G8vF0VtJgmHM=", + "dev": true, + "requires": { + "ansi-wrap": "0.1.0" + } + }, + "ansi-gray": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-gray/-/ansi-gray-0.1.1.tgz", + "integrity": "sha1-KWLPVOyXksSFEKPetSRDaGHvclE=", + "dev": true, + "requires": { + "ansi-wrap": "0.1.0" + } + }, + "ansi-red": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-red/-/ansi-red-0.1.1.tgz", + "integrity": "sha1-jGOPnRCAgAo1PJwoyKgcpHBdlGw=", + "dev": true, + "requires": { + "ansi-wrap": "0.1.0" + } + }, "ansi-regex": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", @@ -145,6 +282,12 @@ "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", "dev": true }, + "ansi-wrap": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/ansi-wrap/-/ansi-wrap-0.1.0.tgz", + "integrity": "sha1-qCJQ3bABXponyoLoLqYDu/pF768=", + "dev": true + }, "anymatch": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-1.3.2.tgz", @@ -162,9 +305,9 @@ "dev": true }, "argparse": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.9.tgz", - "integrity": "sha1-c9g7wmP4bpf4zE9rrhsOkKfSLIY=", + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", "dev": true, "requires": { "sprintf-js": "1.0.3" @@ -185,6 +328,12 @@ "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", "dev": true }, + "arr-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-2.1.0.tgz", + "integrity": "sha1-IPnqtexw9cfSFbEHexw5Fh0pLH0=", + "dev": true + }, "array-differ": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/array-differ/-/array-differ-1.0.0.tgz", @@ -197,6 +346,12 @@ "integrity": "sha1-p5SvDAWrF1KEbudTofIRoFugxE8=", "dev": true }, + "array-filter": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/array-filter/-/array-filter-0.0.1.tgz", + "integrity": "sha1-fajPLiZijtcygDWB/SH2fKzS7uw=", + "dev": true + }, "array-find-index": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz", @@ -209,6 +364,18 @@ "integrity": "sha1-nlKHYrSpBmrRY6aWKjZEGOlibs4=", "dev": true }, + "array-map": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/array-map/-/array-map-0.0.0.tgz", + "integrity": "sha1-iKK6tz0c97zVwbEYoAP2b2ZfpmI=", + "dev": true + }, + "array-reduce": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/array-reduce/-/array-reduce-0.0.0.tgz", + "integrity": "sha1-FziZ0//Rx9k4PkR5Ul2+J4yrXys=", + "dev": true + }, "array-slice": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/array-slice/-/array-slice-1.0.0.tgz", @@ -228,9 +395,15 @@ "dev": true }, "arraybuffer.slice": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/arraybuffer.slice/-/arraybuffer.slice-0.0.6.tgz", - "integrity": "sha1-8zshWfBTKj8xB6JywMz70a0peco=", + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/arraybuffer.slice/-/arraybuffer.slice-0.0.7.tgz", + "integrity": "sha512-wGUIVQXuehL5TCqQun8OW81jGzAWycqzFF8lFp+GOM5BXLYj3bKNsYC4daB7n6XjCqxQA/qgTJ+8ANR3acjrog==", + "dev": true + }, + "arrify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", + "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", "dev": true }, "asap": { @@ -246,9 +419,9 @@ "dev": true }, "asn1.js": { - "version": "4.9.2", - "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-4.9.2.tgz", - "integrity": "sha512-b/OsSjvWEo8Pi8H0zsDd2P6Uqo2TK2pH8gNLSJtNLM2Db0v2QaAZ0pBQJXVjAn4gBuugeVDr7s63ZogpUIwWDg==", + "version": "4.10.1", + "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-4.10.1.tgz", + "integrity": "sha512-p32cOF5q0Zqs9uBiONKYLm6BClCoBCM5O9JfeUSlnQLBTxYdTK+pW+nXflm8UkKd2UYlEbYz5qEi0JuZR9ckSw==", "dev": true, "requires": { "bn.js": "4.11.8", @@ -271,6 +444,28 @@ "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", "dev": true }, + "assign-symbols": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", + "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=", + "dev": true + }, + "ast-types": { + "version": "0.11.3", + "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.11.3.tgz", + "integrity": "sha512-XA5o5dsNw8MhyW0Q7MWXJWc4oOzZKbdsEJq45h7c8q/d9DwWZ5F2ugUc1PuMLPGsUnphCt/cNDHu8JeBbxf1qA==", + "dev": true, + "optional": true + }, + "astw": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/astw/-/astw-2.2.0.tgz", + "integrity": "sha1-e9QXhNMkk5h66yOba04cV6hzuRc=", + "dev": true, + "requires": { + "acorn": "4.0.13" + } + }, "async": { "version": "1.5.2", "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", @@ -283,6 +478,12 @@ "integrity": "sha1-GdOGodntxufByF04iu28xW0zYC0=", "dev": true }, + "async-limiter": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.0.tgz", + "integrity": "sha512-jp/uFnooOiO+L211eZOoSyzpOITMXx1rBITauYykG3BRYPu8h0UcxsPNB04RR5vo4Tyz3+ay17tR6JVf9qzYWg==", + "dev": true + }, "asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", @@ -301,6 +502,16 @@ "integrity": "sha1-g+9cqGCysy5KDe7e6MdxudtXRx4=", "dev": true }, + "axios": { + "version": "0.15.3", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.15.3.tgz", + "integrity": "sha1-LJ1jiy4ZGgjqHWzJiOrda6W9wFM=", + "dev": true, + "optional": true, + "requires": { + "follow-redirects": "1.0.0" + } + }, "babel-code-frame": { "version": "6.26.0", "resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz", @@ -319,7 +530,7 @@ "dev": true, "requires": { "babel-code-frame": "6.26.0", - "babel-generator": "6.26.0", + "babel-generator": "6.26.1", "babel-helpers": "6.24.1", "babel-messages": "6.23.0", "babel-register": "6.26.0", @@ -328,10 +539,10 @@ "babel-traverse": "6.26.0", "babel-types": "6.26.0", "babylon": "6.18.0", - "convert-source-map": "1.5.0", + "convert-source-map": "1.5.1", "debug": "2.6.9", "json5": "0.5.1", - "lodash": "4.17.4", + "lodash": "4.17.5", "minimatch": "3.0.4", "path-is-absolute": "1.0.1", "private": "0.1.8", @@ -340,9 +551,9 @@ } }, "babel-generator": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-generator/-/babel-generator-6.26.0.tgz", - "integrity": "sha1-rBriAHC3n248odMmlhMFN3TyDcU=", + "version": "6.26.1", + "resolved": "https://registry.npmjs.org/babel-generator/-/babel-generator-6.26.1.tgz", + "integrity": "sha512-HyfwY6ApZj7BYTcJURpM5tznulaBvyio7/0d4zFOeMPUmfxkCjHocCuoLa2SAGzBI8AREcH3eP3758F672DppA==", "dev": true, "requires": { "babel-messages": "6.23.0", @@ -350,11 +561,22 @@ "babel-types": "6.26.0", "detect-indent": "4.0.0", "jsesc": "1.3.0", - "lodash": "4.17.4", + "lodash": "4.17.5", "source-map": "0.5.7", "trim-right": "1.0.1" } }, + "babel-helper-builder-binary-assignment-operator-visitor": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-builder-binary-assignment-operator-visitor/-/babel-helper-builder-binary-assignment-operator-visitor-6.24.1.tgz", + "integrity": "sha1-zORReto1b0IgvK6KAsKzRvmlZmQ=", + "dev": true, + "requires": { + "babel-helper-explode-assignable-expression": "6.24.1", + "babel-runtime": "6.26.0", + "babel-types": "6.26.0" + } + }, "babel-helper-call-delegate": { "version": "6.24.1", "resolved": "https://registry.npmjs.org/babel-helper-call-delegate/-/babel-helper-call-delegate-6.24.1.tgz", @@ -376,7 +598,18 @@ "babel-helper-function-name": "6.24.1", "babel-runtime": "6.26.0", "babel-types": "6.26.0", - "lodash": "4.17.4" + "lodash": "4.17.5" + } + }, + "babel-helper-explode-assignable-expression": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-explode-assignable-expression/-/babel-helper-explode-assignable-expression-6.24.1.tgz", + "integrity": "sha1-8luCz33BBDPFX3BZLVdGQArCLKo=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0" } }, "babel-helper-function-name": { @@ -430,7 +663,20 @@ "requires": { "babel-runtime": "6.26.0", "babel-types": "6.26.0", - "lodash": "4.17.4" + "lodash": "4.17.5" + } + }, + "babel-helper-remap-async-to-generator": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-remap-async-to-generator/-/babel-helper-remap-async-to-generator-6.24.1.tgz", + "integrity": "sha1-XsWBgnrXI/7N04HxySg5BnbkVRs=", + "dev": true, + "requires": { + "babel-helper-function-name": "6.24.1", + "babel-runtime": "6.26.0", + "babel-template": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0" } }, "babel-helper-replace-supers": { @@ -475,6 +721,35 @@ "babel-runtime": "6.26.0" } }, + "babel-plugin-syntax-async-functions": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz", + "integrity": "sha1-ytnK0RkbWtY0vzCuCHI5HgZHvpU=", + "dev": true + }, + "babel-plugin-syntax-exponentiation-operator": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-exponentiation-operator/-/babel-plugin-syntax-exponentiation-operator-6.13.0.tgz", + "integrity": "sha1-nufoM3KQ2pUoggGmpX9BcDF4MN4=", + "dev": true + }, + "babel-plugin-syntax-trailing-function-commas": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-6.22.0.tgz", + "integrity": "sha1-ugNgk3+NBuQBgKQ/4NVhb/9TLPM=", + "dev": true + }, + "babel-plugin-transform-async-to-generator": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-async-to-generator/-/babel-plugin-transform-async-to-generator-6.24.1.tgz", + "integrity": "sha1-ZTbjeK/2yx1VF6wOQOs+n8jQh2E=", + "dev": true, + "requires": { + "babel-helper-remap-async-to-generator": "6.24.1", + "babel-plugin-syntax-async-functions": "6.13.0", + "babel-runtime": "6.26.0" + } + }, "babel-plugin-transform-es2015-arrow-functions": { "version": "6.22.0", "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz", @@ -503,7 +778,7 @@ "babel-template": "6.26.0", "babel-traverse": "6.26.0", "babel-types": "6.26.0", - "lodash": "4.17.4" + "lodash": "4.17.5" } }, "babel-plugin-transform-es2015-classes": { @@ -709,6 +984,17 @@ "regexpu-core": "2.0.0" } }, + "babel-plugin-transform-exponentiation-operator": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-exponentiation-operator/-/babel-plugin-transform-exponentiation-operator-6.24.1.tgz", + "integrity": "sha1-KrDJx/MJj6SJB3cruBP+QejeOg4=", + "dev": true, + "requires": { + "babel-helper-builder-binary-assignment-operator-visitor": "6.24.1", + "babel-plugin-syntax-exponentiation-operator": "6.13.0", + "babel-runtime": "6.26.0" + } + }, "babel-plugin-transform-regenerator": { "version": "6.26.0", "resolved": "https://registry.npmjs.org/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.26.0.tgz", @@ -728,13 +1014,15 @@ "babel-types": "6.26.0" } }, - "babel-preset-es2015": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-preset-es2015/-/babel-preset-es2015-6.24.1.tgz", - "integrity": "sha1-1EBQ1rwsn+6nAqrzjXJ6AhBTiTk=", + "babel-preset-env": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/babel-preset-env/-/babel-preset-env-1.6.1.tgz", + "integrity": "sha512-W6VIyA6Ch9ePMI7VptNn2wBM6dbG0eSz25HEiL40nQXCsXGTGZSTZu1Iap+cj3Q0S5a7T9+529l/5Bkvd+afNA==", "dev": true, "requires": { "babel-plugin-check-es2015-constants": "6.22.0", + "babel-plugin-syntax-trailing-function-commas": "6.22.0", + "babel-plugin-transform-async-to-generator": "6.24.1", "babel-plugin-transform-es2015-arrow-functions": "6.22.0", "babel-plugin-transform-es2015-block-scoped-functions": "6.22.0", "babel-plugin-transform-es2015-block-scoping": "6.26.0", @@ -757,7 +1045,11 @@ "babel-plugin-transform-es2015-template-literals": "6.22.0", "babel-plugin-transform-es2015-typeof-symbol": "6.23.0", "babel-plugin-transform-es2015-unicode-regex": "6.24.1", - "babel-plugin-transform-regenerator": "6.26.0" + "babel-plugin-transform-exponentiation-operator": "6.24.1", + "babel-plugin-transform-regenerator": "6.26.0", + "browserslist": "2.11.3", + "invariant": "2.2.4", + "semver": "5.5.0" } }, "babel-register": { @@ -770,7 +1062,7 @@ "babel-runtime": "6.26.0", "core-js": "2.5.1", "home-or-tmp": "2.0.0", - "lodash": "4.17.4", + "lodash": "4.17.5", "mkdirp": "0.5.1", "source-map-support": "0.4.18" } @@ -782,7 +1074,7 @@ "dev": true, "requires": { "core-js": "2.5.1", - "regenerator-runtime": "0.11.0" + "regenerator-runtime": "0.11.1" } }, "babel-template": { @@ -795,7 +1087,7 @@ "babel-traverse": "6.26.0", "babel-types": "6.26.0", "babylon": "6.18.0", - "lodash": "4.17.4" + "lodash": "4.17.5" } }, "babel-traverse": { @@ -811,8 +1103,8 @@ "babylon": "6.18.0", "debug": "2.6.9", "globals": "9.18.0", - "invariant": "2.2.2", - "lodash": "4.17.4" + "invariant": "2.2.4", + "lodash": "4.17.5" } }, "babel-types": { @@ -823,7 +1115,7 @@ "requires": { "babel-runtime": "6.26.0", "esutils": "2.0.2", - "lodash": "4.17.4", + "lodash": "4.17.5", "to-fast-properties": "1.0.3" } }, @@ -852,9 +1144,9 @@ "dev": true }, "base64-js": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.2.1.tgz", - "integrity": "sha512-dwVUVIXsBZXwTuwnXI9RK8sBmgq09NDHzyR9SAph9eqk76gKK2JSQmZARC2zRC81JC2QTtxD0ARU5qTS25gIGw==", + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.2.3.tgz", + "integrity": "sha512-MsAhsUW1GxCdgYSO6tAfZrNapmUKk7mWx/k5mFY/A1gBtkaCaNapTg+FExCw1r9yeaZhqx/xPg43xgTFH6KL5w==", "dev": true }, "base64id": { @@ -900,6 +1192,50 @@ "integrity": "sha1-HmN0iLNbWL2l9HdL+WpSEqjJB1U=", "dev": true }, + "bitsyntax": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/bitsyntax/-/bitsyntax-0.0.4.tgz", + "integrity": "sha1-6xDMb4K4xJDj6FaY8H6D1G4MuoI=", + "dev": true, + "optional": true, + "requires": { + "buffer-more-ints": "0.0.2" + } + }, + "bl": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/bl/-/bl-1.1.2.tgz", + "integrity": "sha1-/cqHGplxOqANGeO7ukHER4emU5g=", + "dev": true, + "optional": true, + "requires": { + "readable-stream": "2.0.6" + }, + "dependencies": { + "readable-stream": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.0.6.tgz", + "integrity": "sha1-j5A0HmilPMySh4jaz80Rs265t44=", + "dev": true, + "optional": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "1.0.7", + "string_decoder": "0.10.31", + "util-deprecate": "1.0.2" + } + }, + "string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", + "dev": true, + "optional": true + } + } + }, "blob": { "version": "0.0.4", "resolved": "https://registry.npmjs.org/blob/-/blob-0.0.4.tgz", @@ -927,13 +1263,13 @@ "bytes": "3.0.0", "content-type": "1.0.4", "debug": "2.6.9", - "depd": "1.1.1", + "depd": "1.1.2", "http-errors": "1.6.2", "iconv-lite": "0.4.19", "on-finished": "2.3.0", "qs": "6.5.1", "raw-body": "2.3.2", - "type-is": "1.6.15" + "type-is": "1.6.16" } }, "boom": { @@ -972,6 +1308,20 @@ "integrity": "sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=", "dev": true }, + "browser-pack": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/browser-pack/-/browser-pack-6.0.4.tgz", + "integrity": "sha512-Q4Rvn7P6ObyWfc4stqLWHtG1MJ8vVtjgT24Zbu+8UTzxYuZouqZsmNRRTFVMY/Ux0eIKv1d+JWzsInTX+fdHPQ==", + "dev": true, + "requires": { + "JSONStream": "1.3.1", + "combine-source-map": "0.8.0", + "defined": "1.0.0", + "safe-buffer": "5.1.1", + "through2": "2.0.3", + "umd": "3.0.3" + } + }, "browser-resolve": { "version": "1.11.2", "resolved": "https://registry.npmjs.org/browser-resolve/-/browser-resolve-1.11.2.tgz", @@ -989,6 +1339,120 @@ } } }, + "browserify": { + "version": "14.5.0", + "resolved": "https://registry.npmjs.org/browserify/-/browserify-14.5.0.tgz", + "integrity": "sha512-gKfOsNQv/toWz+60nSPfYzuwSEdzvV2WdxrVPUbPD/qui44rAkB3t3muNtmmGYHqrG56FGwX9SUEQmzNLAeS7g==", + "dev": true, + "requires": { + "JSONStream": "1.3.1", + "assert": "1.4.1", + "browser-pack": "6.0.4", + "browser-resolve": "1.11.2", + "browserify-zlib": "0.2.0", + "buffer": "5.1.0", + "cached-path-relative": "1.0.1", + "concat-stream": "1.5.2", + "console-browserify": "1.1.0", + "constants-browserify": "1.0.0", + "crypto-browserify": "3.12.0", + "defined": "1.0.0", + "deps-sort": "2.0.0", + "domain-browser": "1.1.7", + "duplexer2": "0.1.4", + "events": "1.1.1", + "glob": "7.1.2", + "has": "1.0.1", + "htmlescape": "1.1.1", + "https-browserify": "1.0.0", + "inherits": "2.0.3", + "insert-module-globals": "7.0.2", + "labeled-stream-splicer": "2.0.0", + "module-deps": "4.1.1", + "os-browserify": "0.3.0", + "parents": "1.0.1", + "path-browserify": "0.0.0", + "process": "0.11.10", + "punycode": "1.4.1", + "querystring-es3": "0.2.1", + "read-only-stream": "2.0.0", + "readable-stream": "2.3.3", + "resolve": "1.5.0", + "shasum": "1.0.2", + "shell-quote": "1.6.1", + "stream-browserify": "2.0.1", + "stream-http": "2.8.1", + "string_decoder": "1.0.3", + "subarg": "1.0.0", + "syntax-error": "1.4.0", + "through2": "2.0.3", + "timers-browserify": "1.4.2", + "tty-browserify": "0.0.0", + "url": "0.11.0", + "util": "0.10.3", + "vm-browserify": "0.0.4", + "xtend": "4.0.1" + }, + "dependencies": { + "concat-stream": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.5.2.tgz", + "integrity": "sha1-cIl4Yk2FavQaWnQd790mHadSwmY=", + "dev": true, + "requires": { + "inherits": "2.0.3", + "readable-stream": "2.0.6", + "typedarray": "0.0.6" + }, + "dependencies": { + "readable-stream": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.0.6.tgz", + "integrity": "sha1-j5A0HmilPMySh4jaz80Rs265t44=", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "1.0.7", + "string_decoder": "0.10.31", + "util-deprecate": "1.0.2" + } + }, + "string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", + "dev": true + } + } + }, + "domain-browser": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.1.7.tgz", + "integrity": "sha1-hnqksJP6oF8d4IwG9NeyH9+GmLw=", + "dev": true + }, + "duplexer2": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", + "integrity": "sha1-ixLauHjA1p4+eJEFFmKjL8a93ME=", + "dev": true, + "requires": { + "readable-stream": "2.3.3" + } + }, + "timers-browserify": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-1.4.2.tgz", + "integrity": "sha1-ycWLV1voQHN1y14kYtrO50NZ9B0=", + "dev": true, + "requires": { + "process": "0.11.10" + } + } + } + }, "browserify-aes": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.1.1.tgz", @@ -1032,7 +1496,7 @@ "dev": true, "requires": { "bn.js": "4.11.8", - "randombytes": "2.0.5" + "randombytes": "2.0.6" } }, "browserify-sign": { @@ -1059,22 +1523,54 @@ "pako": "1.0.6" } }, - "buffer": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.0.8.tgz", - "integrity": "sha512-xXvjQhVNz50v2nPeoOsNqWCLGfiv4ji/gXZM28jnVwdLJxH4mFyqgqCKfaK9zf1KUbG6zTkjLOy7ou+jSMarGA==", + "browserslist": { + "version": "2.11.3", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-2.11.3.tgz", + "integrity": "sha512-yWu5cXT7Av6mVwzWc8lMsJMHWn4xyjSuGYi4IozbVTLUOEYPSagUB8kiMDUHA1fS3zjr8nkxkn9jdvug4BBRmA==", "dev": true, "requires": { - "base64-js": "1.2.1", + "caniuse-lite": "1.0.30000815", + "electron-to-chromium": "1.3.39" + } + }, + "buffer": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.1.0.tgz", + "integrity": "sha512-YkIRgwsZwJWTnyQrsBTWefizHh+8GYj3kbL1BTiAQ/9pwpino0G7B2gp5tx/FUBqUlvtxV85KNR3mwfAtv15Yw==", + "dev": true, + "requires": { + "base64-js": "1.2.3", "ieee754": "1.1.8" } }, + "buffer-more-ints": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/buffer-more-ints/-/buffer-more-ints-0.0.2.tgz", + "integrity": "sha1-JrOIXRD6E9t/wBquOquHAZngEkw=", + "dev": true + }, "buffer-xor": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz", "integrity": "sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk=", "dev": true }, + "buildmail": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/buildmail/-/buildmail-4.0.1.tgz", + "integrity": "sha1-h393OLeHKYccmhBeO4N9K+EaenI=", + "dev": true, + "optional": true, + "requires": { + "addressparser": "1.0.1", + "libbase64": "0.1.0", + "libmime": "3.0.0", + "libqp": "1.1.0", + "nodemailer-fetch": "1.6.0", + "nodemailer-shared": "1.1.0", + "punycode": "1.4.1" + } + }, "builtin-modules": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", @@ -1093,6 +1589,12 @@ "integrity": "sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg=", "dev": true }, + "cached-path-relative": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/cached-path-relative/-/cached-path-relative-1.0.1.tgz", + "integrity": "sha1-0JxLUoAKpMB44t2BqGmqyQ0uVOc=", + "dev": true + }, "callsite": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/callsite/-/callsite-1.0.0.tgz", @@ -1125,6 +1627,12 @@ "map-obj": "1.0.1" } }, + "caniuse-lite": { + "version": "1.0.30000815", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000815.tgz", + "integrity": "sha512-PGSOPK6gFe5fWd+eD0u2bG0aOsN1qC4B1E66tl3jOsIoKkTIcBYAc2+O6AeNzKW8RsFykWgnhkTlfOyuTzgI9A==", + "dev": true + }, "canonical-path": { "version": "0.0.2", "resolved": "https://registry.npmjs.org/canonical-path/-/canonical-path-0.0.2.tgz", @@ -1215,6 +1723,7 @@ "requires": { "anymatch": "1.3.2", "async-each": "1.0.1", + "fsevents": "1.1.3", "glob-parent": "2.0.0", "inherits": "2.0.3", "is-binary-path": "1.0.1", @@ -1233,6 +1742,12 @@ "safe-buffer": "5.1.1" } }, + "circular-json": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/circular-json/-/circular-json-0.5.1.tgz", + "integrity": "sha512-UjgcRlTAhAkLeXmDe2wK7ktwy/tgAqxiSndTIPiFZuIPLZmzHzWMwUIe9h9m/OokypG7snxCDEuwJshGBdPvaw==", + "dev": true + }, "cliui": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/cliui/-/cliui-2.1.0.tgz", @@ -1278,10 +1793,25 @@ "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", "dev": true }, - "coffee-script": { - "version": "1.12.7", - "resolved": "https://registry.npmjs.org/coffee-script/-/coffee-script-1.12.7.tgz", - "integrity": "sha512-fLeEhqwymYat/MpTPUjSKHVYYl0ec2mOyALEMLmzr5i1isuG+6jfI2j2d5oBO3VIzgUXgBVIcOT9uH1TFxBckw==", + "color-convert": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.1.tgz", + "integrity": "sha512-mjGanIiwQJskCC18rPR6OmrZ6fm2Lc7PeGFYwCmy5J34wC6F1PzdGL6xeMfmgicfYcNLGuVFA3WzXtIDCQSZxQ==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "color-support": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz", + "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==", "dev": true }, "colors": { @@ -1296,7 +1826,7 @@ "integrity": "sha1-RYwH4J4NkA/Ci3Cj/sLazR0st/Y=", "dev": true, "requires": { - "lodash": "4.17.4" + "lodash": "4.17.5" } }, "combine-source-map": { @@ -1328,6 +1858,12 @@ "delayed-stream": "1.0.0" } }, + "commander": { + "version": "2.15.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.15.0.tgz", + "integrity": "sha512-7B1ilBwtYSbetCgTY1NJFg+gVpestg0fdA1MhC1Vs4ssyfSXnCAjFr+QcQM9/RedXC0EaUx1sG8Smgw2VfgKEg==", + "dev": true + }, "compare-func": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/compare-func/-/compare-func-1.3.2.tgz", @@ -1345,9 +1881,9 @@ "dev": true }, "component-emitter": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.1.2.tgz", - "integrity": "sha1-KWWU8nU9qmOZbSrwjRWpURbJrsM=", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz", + "integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY=", "dev": true }, "component-inherit": { @@ -1374,13 +1910,13 @@ } }, "connect": { - "version": "3.6.5", - "resolved": "https://registry.npmjs.org/connect/-/connect-3.6.5.tgz", - "integrity": "sha1-+43ee6B2OHfQ7J352sC0tA5yx9o=", + "version": "3.6.6", + "resolved": "https://registry.npmjs.org/connect/-/connect-3.6.6.tgz", + "integrity": "sha1-Ce/2xVr3I24TcTWnJXSFi2eG9SQ=", "dev": true, "requires": { "debug": "2.6.9", - "finalhandler": "1.0.6", + "finalhandler": "1.1.0", "parseurl": "1.3.2", "utils-merge": "1.0.1" } @@ -1417,110 +1953,316 @@ "dev": true }, "conventional-changelog": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/conventional-changelog/-/conventional-changelog-1.1.7.tgz", - "integrity": "sha1-kVGmKx2O2y2CcR2r9bfPcQQfgrE=", + "version": "1.1.18", + "resolved": "https://registry.npmjs.org/conventional-changelog/-/conventional-changelog-1.1.18.tgz", + "integrity": "sha512-swf5bqhm7PsY2cw6zxuPy6+rZiiGwEpQnrWki+L+z2oZI53QSYwU4brpljmmWss821AsiwmVL+7V6hP+ER+TBA==", "dev": true, "requires": { - "conventional-changelog-angular": "1.5.2", - "conventional-changelog-atom": "0.1.2", - "conventional-changelog-codemirror": "0.2.1", - "conventional-changelog-core": "1.9.3", - "conventional-changelog-ember": "0.2.9", - "conventional-changelog-eslint": "0.2.1", - "conventional-changelog-express": "0.2.1", + "conventional-changelog-angular": "1.6.6", + "conventional-changelog-atom": "0.2.4", + "conventional-changelog-codemirror": "0.3.4", + "conventional-changelog-core": "2.0.5", + "conventional-changelog-ember": "0.3.6", + "conventional-changelog-eslint": "1.0.5", + "conventional-changelog-express": "0.3.4", "conventional-changelog-jquery": "0.1.0", "conventional-changelog-jscs": "0.1.0", - "conventional-changelog-jshint": "0.2.1" + "conventional-changelog-jshint": "0.3.4", + "conventional-changelog-preset-loader": "1.1.6" } }, "conventional-changelog-angular": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-1.5.2.tgz", - "integrity": "sha1-Kzj2Zf6cWSCvGi+C9Uf0ur5t5Xw=", + "version": "1.6.6", + "resolved": "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-1.6.6.tgz", + "integrity": "sha512-suQnFSqCxRwyBxY68pYTsFkG0taIdinHLNEAX5ivtw8bCRnIgnpvcHmlR/yjUyZIrNPYAoXlY1WiEKWgSE4BNg==", "dev": true, "requires": { "compare-func": "1.3.2", - "q": "1.5.0" + "q": "1.5.1" + }, + "dependencies": { + "q": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", + "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=", + "dev": true + } } }, "conventional-changelog-atom": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/conventional-changelog-atom/-/conventional-changelog-atom-0.1.2.tgz", - "integrity": "sha1-Ella1SZ6aTfDTPkAKBscZRmKTGM=", + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/conventional-changelog-atom/-/conventional-changelog-atom-0.2.4.tgz", + "integrity": "sha512-4+hmbBwcAwx1XzDZ4aEOxk/ONU0iay10G0u/sld16ksgnRUHN7CxmZollm3FFaptr6VADMq1qxomA+JlpblBlg==", "dev": true, "requires": { - "q": "1.5.0" + "q": "1.5.1" + }, + "dependencies": { + "q": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", + "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=", + "dev": true + } } }, "conventional-changelog-cli": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/conventional-changelog-cli/-/conventional-changelog-cli-1.3.4.tgz", - "integrity": "sha512-b8B1i01df+Lq5t16L3g8uoEGdzViChIKmIo7TComL4DqqrjrtasRaT+/4OPGcApEgX86JkBqb4KVt85ytQinUw==", + "version": "1.3.16", + "resolved": "https://registry.npmjs.org/conventional-changelog-cli/-/conventional-changelog-cli-1.3.16.tgz", + "integrity": "sha512-zNDG/rNbh29Z+d6zzrHN63dFZ4q9k1Ri0V8lXGw1q2ia6+FaE7AqJKccObbBFRmRISXpFESrqZiXpM4QeA84YA==", "dev": true, "requires": { "add-stream": "1.0.0", - "conventional-changelog": "1.1.7", - "lodash": "4.17.4", - "meow": "3.7.0", + "conventional-changelog": "1.1.18", + "lodash": "4.17.5", + "meow": "4.0.0", "tempfile": "1.1.1" + }, + "dependencies": { + "camelcase": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", + "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", + "dev": true + }, + "camelcase-keys": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-4.2.0.tgz", + "integrity": "sha1-oqpfsa9oh1glnDLBQUJteJI7m3c=", + "dev": true, + "requires": { + "camelcase": "4.1.0", + "map-obj": "2.0.0", + "quick-lru": "1.1.0" + } + }, + "find-up": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", + "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", + "dev": true, + "requires": { + "locate-path": "2.0.0" + } + }, + "indent-string": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz", + "integrity": "sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok=", + "dev": true + }, + "load-json-file": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", + "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "parse-json": "4.0.0", + "pify": "3.0.0", + "strip-bom": "3.0.0" + } + }, + "map-obj": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-2.0.0.tgz", + "integrity": "sha1-plzSkIepJZi4eRJXpSPgISIqwfk=", + "dev": true + }, + "meow": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/meow/-/meow-4.0.0.tgz", + "integrity": "sha512-Me/kel335m6vMKmEmA6c87Z6DUFW3JqkINRnxkbC+A/PUm0D5Fl2dEBQrPKnqCL9Te/CIa1MUt/0InMJhuC/sw==", + "dev": true, + "requires": { + "camelcase-keys": "4.2.0", + "decamelize-keys": "1.1.0", + "loud-rejection": "1.6.0", + "minimist": "1.2.0", + "minimist-options": "3.0.2", + "normalize-package-data": "2.4.0", + "read-pkg-up": "3.0.0", + "redent": "2.0.0", + "trim-newlines": "2.0.0" + } + }, + "parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", + "dev": true, + "requires": { + "error-ex": "1.3.1", + "json-parse-better-errors": "1.0.1" + } + }, + "path-type": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", + "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", + "dev": true, + "requires": { + "pify": "3.0.0" + } + }, + "pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", + "dev": true + }, + "read-pkg": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", + "integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=", + "dev": true, + "requires": { + "load-json-file": "4.0.0", + "normalize-package-data": "2.4.0", + "path-type": "3.0.0" + } + }, + "read-pkg-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-3.0.0.tgz", + "integrity": "sha1-PtSWaF26D4/hGNBpHcUfSh/5bwc=", + "dev": true, + "requires": { + "find-up": "2.1.0", + "read-pkg": "3.0.0" + } + }, + "redent": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-2.0.0.tgz", + "integrity": "sha1-wbIAe0LVfrE4kHmzyDM2OdXhzKo=", + "dev": true, + "requires": { + "indent-string": "3.2.0", + "strip-indent": "2.0.0" + } + }, + "strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", + "dev": true + }, + "strip-indent": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-2.0.0.tgz", + "integrity": "sha1-XvjbKV0B5u1sv3qrlpmNeCJSe2g=", + "dev": true + }, + "trim-newlines": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-2.0.0.tgz", + "integrity": "sha1-tAPQuRvlDDMd/EuC7s6yLD3hbSA=", + "dev": true + } } }, "conventional-changelog-codemirror": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/conventional-changelog-codemirror/-/conventional-changelog-codemirror-0.2.1.tgz", - "integrity": "sha1-KZpPcUe681DmyBWPxUlUopHFzAk=", + "version": "0.3.4", + "resolved": "https://registry.npmjs.org/conventional-changelog-codemirror/-/conventional-changelog-codemirror-0.3.4.tgz", + "integrity": "sha512-8M7pGgQVzRU//vG3rFlLYqqBywOLxu9XM0/lc1/1Ll7RuKA79PgK9TDpuPmQDHFnqGS7D1YiZpC3Z0D9AIYExg==", "dev": true, "requires": { - "q": "1.5.0" + "q": "1.5.1" + }, + "dependencies": { + "q": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", + "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=", + "dev": true + } } }, "conventional-changelog-core": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/conventional-changelog-core/-/conventional-changelog-core-1.9.3.tgz", - "integrity": "sha1-KJn+d5OJoynw7EsnRsNt3vuY2i0=", + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/conventional-changelog-core/-/conventional-changelog-core-2.0.5.tgz", + "integrity": "sha512-lP1s7Z3NyEFcG78bWy7GG7nXsq9OpAJgo2xbyAlVBDweLSL5ghvyEZlkEamnAQpIUVK0CAVhs8nPvCiQuXT/VA==", "dev": true, "requires": { - "conventional-changelog-writer": "2.0.2", - "conventional-commits-parser": "2.0.1", - "dateformat": "1.0.12", + "conventional-changelog-writer": "3.0.4", + "conventional-commits-parser": "2.1.5", + "dateformat": "3.0.3", "get-pkg-repo": "1.4.0", - "git-raw-commits": "1.3.0", + "git-raw-commits": "1.3.4", "git-remote-origin-url": "2.0.0", - "git-semver-tags": "1.2.3", - "lodash": "4.17.4", + "git-semver-tags": "1.3.4", + "lodash": "4.17.5", "normalize-package-data": "2.4.0", - "q": "1.5.0", + "q": "1.5.1", "read-pkg": "1.1.0", "read-pkg-up": "1.0.1", "through2": "2.0.3" + }, + "dependencies": { + "dateformat": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-3.0.3.tgz", + "integrity": "sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q==", + "dev": true + }, + "q": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", + "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=", + "dev": true + } } }, "conventional-changelog-ember": { - "version": "0.2.9", - "resolved": "https://registry.npmjs.org/conventional-changelog-ember/-/conventional-changelog-ember-0.2.9.tgz", - "integrity": "sha1-jsc8wFTjqwZGZ/sf61L+jvGxZDg=", + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/conventional-changelog-ember/-/conventional-changelog-ember-0.3.6.tgz", + "integrity": "sha512-hBM1xb5IrjNtsjXaGryPF/Wn36cwyjkNeqX/CIDbJv/1kRFBHsWoSPYBiNVEpg8xE5fcK4DbPhGTDN2sVoPeiA==", "dev": true, "requires": { - "q": "1.5.0" + "q": "1.5.1" + }, + "dependencies": { + "q": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", + "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=", + "dev": true + } } }, "conventional-changelog-eslint": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/conventional-changelog-eslint/-/conventional-changelog-eslint-0.2.1.tgz", - "integrity": "sha1-LCoRvrIW+AZJunKDQYApO2h8BmI=", + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/conventional-changelog-eslint/-/conventional-changelog-eslint-1.0.5.tgz", + "integrity": "sha512-7NUv+gMOS8Y49uPFRgF7kuLZqpnrKa2bQMZZsc62NzvaJmjUktnV03PYHuXhTDEHt5guvV9gyEFtUpgHCDkojg==", "dev": true, "requires": { - "q": "1.5.0" + "q": "1.5.1" + }, + "dependencies": { + "q": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", + "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=", + "dev": true + } } }, "conventional-changelog-express": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/conventional-changelog-express/-/conventional-changelog-express-0.2.1.tgz", - "integrity": "sha1-g42eHmyQmXA7FQucGaoteBdCvWw=", + "version": "0.3.4", + "resolved": "https://registry.npmjs.org/conventional-changelog-express/-/conventional-changelog-express-0.3.4.tgz", + "integrity": "sha512-M+UUb715TXT6l9vyMf4HYvAepnQn0AYTcPi6KHrFsd80E0HErjQnqStBg8i3+Qm7EV9+RyATQEnIhSzHbdQ7+A==", "dev": true, "requires": { - "q": "1.5.0" + "q": "1.5.1" + }, + "dependencies": { + "q": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", + "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=", + "dev": true + } } }, "conventional-changelog-jquery": { @@ -1529,7 +2271,7 @@ "integrity": "sha1-Agg5cWLjhGmG5xJztsecW1+A9RA=", "dev": true, "requires": { - "q": "1.5.0" + "q": "1.5.1" } }, "conventional-changelog-jscs": { @@ -1538,35 +2280,204 @@ "integrity": "sha1-BHnrRDzH1yxYvwvPDvHURKkvDlw=", "dev": true, "requires": { - "q": "1.5.0" + "q": "1.5.1" } }, "conventional-changelog-jshint": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/conventional-changelog-jshint/-/conventional-changelog-jshint-0.2.1.tgz", - "integrity": "sha1-hhObs6yZiZ8rF36WF+CbN9mbzzo=", + "version": "0.3.4", + "resolved": "https://registry.npmjs.org/conventional-changelog-jshint/-/conventional-changelog-jshint-0.3.4.tgz", + "integrity": "sha512-CdrqwDgL56b176FVxHmhuOvnO1dRDQvrMaHyuIVjcFlOXukATz2wVT17g8jQU3LvybVbyXvJRbdD5pboo7/1KQ==", "dev": true, "requires": { "compare-func": "1.3.2", - "q": "1.5.0" + "q": "1.5.1" + }, + "dependencies": { + "q": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", + "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=", + "dev": true + } } }, + "conventional-changelog-preset-loader": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/conventional-changelog-preset-loader/-/conventional-changelog-preset-loader-1.1.6.tgz", + "integrity": "sha512-yWPIP9wwsCKeUSPYApnApWhKIDjWRIX/uHejGS1tYfEsQR/bwpDFET7LYiHT+ujNbrlf6h1s3NlPGheOd4yJRQ==", + "dev": true + }, "conventional-changelog-writer": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/conventional-changelog-writer/-/conventional-changelog-writer-2.0.2.tgz", - "integrity": "sha1-tYV97RsAHa+aeLnNQJJvRcE0lJs=", + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/conventional-changelog-writer/-/conventional-changelog-writer-3.0.4.tgz", + "integrity": "sha512-EUf/hWiEj3IOa5Jk8XDzM6oS0WgijlYGkUfLc+mDnLH9RwpZqhYIBwgJHWHzEB4My013wx2FhmUu45P6tQrucw==", "dev": true, "requires": { "compare-func": "1.3.2", - "conventional-commits-filter": "1.1.0", - "dateformat": "1.0.12", + "conventional-commits-filter": "1.1.5", + "dateformat": "3.0.3", "handlebars": "4.0.11", "json-stringify-safe": "5.0.1", - "lodash": "4.17.4", - "meow": "3.7.0", - "semver": "5.3.0", + "lodash": "4.17.5", + "meow": "4.0.0", + "semver": "5.5.0", "split": "1.0.1", "through2": "2.0.3" + }, + "dependencies": { + "camelcase": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", + "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", + "dev": true + }, + "camelcase-keys": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-4.2.0.tgz", + "integrity": "sha1-oqpfsa9oh1glnDLBQUJteJI7m3c=", + "dev": true, + "requires": { + "camelcase": "4.1.0", + "map-obj": "2.0.0", + "quick-lru": "1.1.0" + } + }, + "dateformat": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-3.0.3.tgz", + "integrity": "sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q==", + "dev": true + }, + "find-up": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", + "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", + "dev": true, + "requires": { + "locate-path": "2.0.0" + } + }, + "indent-string": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz", + "integrity": "sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok=", + "dev": true + }, + "load-json-file": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", + "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "parse-json": "4.0.0", + "pify": "3.0.0", + "strip-bom": "3.0.0" + } + }, + "map-obj": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-2.0.0.tgz", + "integrity": "sha1-plzSkIepJZi4eRJXpSPgISIqwfk=", + "dev": true + }, + "meow": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/meow/-/meow-4.0.0.tgz", + "integrity": "sha512-Me/kel335m6vMKmEmA6c87Z6DUFW3JqkINRnxkbC+A/PUm0D5Fl2dEBQrPKnqCL9Te/CIa1MUt/0InMJhuC/sw==", + "dev": true, + "requires": { + "camelcase-keys": "4.2.0", + "decamelize-keys": "1.1.0", + "loud-rejection": "1.6.0", + "minimist": "1.2.0", + "minimist-options": "3.0.2", + "normalize-package-data": "2.4.0", + "read-pkg-up": "3.0.0", + "redent": "2.0.0", + "trim-newlines": "2.0.0" + } + }, + "parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", + "dev": true, + "requires": { + "error-ex": "1.3.1", + "json-parse-better-errors": "1.0.1" + } + }, + "path-type": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", + "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", + "dev": true, + "requires": { + "pify": "3.0.0" + } + }, + "pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", + "dev": true + }, + "read-pkg": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", + "integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=", + "dev": true, + "requires": { + "load-json-file": "4.0.0", + "normalize-package-data": "2.4.0", + "path-type": "3.0.0" + } + }, + "read-pkg-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-3.0.0.tgz", + "integrity": "sha1-PtSWaF26D4/hGNBpHcUfSh/5bwc=", + "dev": true, + "requires": { + "find-up": "2.1.0", + "read-pkg": "3.0.0" + } + }, + "redent": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-2.0.0.tgz", + "integrity": "sha1-wbIAe0LVfrE4kHmzyDM2OdXhzKo=", + "dev": true, + "requires": { + "indent-string": "3.2.0", + "strip-indent": "2.0.0" + } + }, + "semver": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz", + "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==", + "dev": true + }, + "strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", + "dev": true + }, + "strip-indent": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-2.0.0.tgz", + "integrity": "sha1-XvjbKV0B5u1sv3qrlpmNeCJSe2g=", + "dev": true + }, + "trim-newlines": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-2.0.0.tgz", + "integrity": "sha1-tAPQuRvlDDMd/EuC7s6yLD3hbSA=", + "dev": true + } } }, "conventional-commit-types": { @@ -1576,9 +2487,9 @@ "dev": true }, "conventional-commits-filter": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/conventional-commits-filter/-/conventional-commits-filter-1.1.0.tgz", - "integrity": "sha1-H8Ka8wte2rdvVOIpxBGwxmPQ+es=", + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/conventional-commits-filter/-/conventional-commits-filter-1.1.5.tgz", + "integrity": "sha512-mj3+WLj8UZE72zO9jocZjx8+W4Bwnx/KHoIz1vb4F8XUXj0XSjp8Y3MFkpRyIpsRiCBX+DkDjxGKF/nfeu7BGw==", "dev": true, "requires": { "is-subset": "0.1.1", @@ -1586,24 +2497,167 @@ } }, "conventional-commits-parser": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-2.0.1.tgz", - "integrity": "sha1-HxXOa4RPfKQUlcgZDAgzwwuLFpM=", + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-2.1.5.tgz", + "integrity": "sha512-jaAP61py+ISMF3/n3yIiIuY5h6mJlucOqawu5mLB1HaQADLvg/y5UB3pT7HSucZJan34lp7+7ylQPfbKEGmxrA==", "dev": true, "requires": { "JSONStream": "1.3.1", "is-text-path": "1.0.1", - "lodash": "4.17.4", - "meow": "3.7.0", + "lodash": "4.17.5", + "meow": "4.0.0", "split2": "2.2.0", "through2": "2.0.3", "trim-off-newlines": "1.0.1" + }, + "dependencies": { + "camelcase": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", + "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", + "dev": true + }, + "camelcase-keys": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-4.2.0.tgz", + "integrity": "sha1-oqpfsa9oh1glnDLBQUJteJI7m3c=", + "dev": true, + "requires": { + "camelcase": "4.1.0", + "map-obj": "2.0.0", + "quick-lru": "1.1.0" + } + }, + "find-up": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", + "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", + "dev": true, + "requires": { + "locate-path": "2.0.0" + } + }, + "indent-string": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz", + "integrity": "sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok=", + "dev": true + }, + "load-json-file": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", + "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "parse-json": "4.0.0", + "pify": "3.0.0", + "strip-bom": "3.0.0" + } + }, + "map-obj": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-2.0.0.tgz", + "integrity": "sha1-plzSkIepJZi4eRJXpSPgISIqwfk=", + "dev": true + }, + "meow": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/meow/-/meow-4.0.0.tgz", + "integrity": "sha512-Me/kel335m6vMKmEmA6c87Z6DUFW3JqkINRnxkbC+A/PUm0D5Fl2dEBQrPKnqCL9Te/CIa1MUt/0InMJhuC/sw==", + "dev": true, + "requires": { + "camelcase-keys": "4.2.0", + "decamelize-keys": "1.1.0", + "loud-rejection": "1.6.0", + "minimist": "1.2.0", + "minimist-options": "3.0.2", + "normalize-package-data": "2.4.0", + "read-pkg-up": "3.0.0", + "redent": "2.0.0", + "trim-newlines": "2.0.0" + } + }, + "parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", + "dev": true, + "requires": { + "error-ex": "1.3.1", + "json-parse-better-errors": "1.0.1" + } + }, + "path-type": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", + "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", + "dev": true, + "requires": { + "pify": "3.0.0" + } + }, + "pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", + "dev": true + }, + "read-pkg": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", + "integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=", + "dev": true, + "requires": { + "load-json-file": "4.0.0", + "normalize-package-data": "2.4.0", + "path-type": "3.0.0" + } + }, + "read-pkg-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-3.0.0.tgz", + "integrity": "sha1-PtSWaF26D4/hGNBpHcUfSh/5bwc=", + "dev": true, + "requires": { + "find-up": "2.1.0", + "read-pkg": "3.0.0" + } + }, + "redent": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-2.0.0.tgz", + "integrity": "sha1-wbIAe0LVfrE4kHmzyDM2OdXhzKo=", + "dev": true, + "requires": { + "indent-string": "3.2.0", + "strip-indent": "2.0.0" + } + }, + "strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", + "dev": true + }, + "strip-indent": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-2.0.0.tgz", + "integrity": "sha1-XvjbKV0B5u1sv3qrlpmNeCJSe2g=", + "dev": true + }, + "trim-newlines": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-2.0.0.tgz", + "integrity": "sha1-tAPQuRvlDDMd/EuC7s6yLD3hbSA=", + "dev": true + } } }, "convert-source-map": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.5.0.tgz", - "integrity": "sha1-ms1whRxtXf3ZPZKC5e35SgP/RrU=", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.5.1.tgz", + "integrity": "sha1-uCeAl7m8IpNl3lxiz1/K7YtVmeU=", "dev": true }, "cookie": { @@ -1625,15 +2679,15 @@ "dev": true }, "cpr": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/cpr/-/cpr-2.0.0.tgz", - "integrity": "sha1-wqRHyVFsN+u2R8qiYWvu+i7mcBE=", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/cpr/-/cpr-3.0.1.tgz", + "integrity": "sha1-uaVQOLfNgaNcF7l2GJW9hJau8eU=", "dev": true, "requires": { "graceful-fs": "4.1.11", "minimist": "1.2.0", "mkdirp": "0.5.1", - "rimraf": "2.6.1" + "rimraf": "2.6.2" } }, "create-ecdh": { @@ -1655,7 +2709,7 @@ "cipher-base": "1.0.4", "inherits": "2.0.3", "ripemd160": "2.0.1", - "sha.js": "2.4.9" + "sha.js": "2.4.10" } }, "create-hmac": { @@ -1669,7 +2723,7 @@ "inherits": "2.0.3", "ripemd160": "2.0.1", "safe-buffer": "5.1.1", - "sha.js": "2.4.9" + "sha.js": "2.4.10" } }, "cross-spawn": { @@ -1717,8 +2771,8 @@ "inherits": "2.0.3", "pbkdf2": "3.0.14", "public-encrypt": "4.0.0", - "randombytes": "2.0.5", - "randomfill": "1.0.3" + "randombytes": "2.0.6", + "randomfill": "1.0.4" } }, "currently-unhandled": { @@ -1743,15 +2797,14 @@ "dev": true }, "cz-conventional-changelog": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/cz-conventional-changelog/-/cz-conventional-changelog-2.0.0.tgz", - "integrity": "sha1-Val5r9/pXnAkh50qD1kkYwFwtTM=", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/cz-conventional-changelog/-/cz-conventional-changelog-2.1.0.tgz", + "integrity": "sha1-L0vHOQ4yROTfKT5ro1Hkx0Cnx2Q=", "dev": true, "requires": { "conventional-commit-types": "2.2.0", "lodash.map": "4.6.0", "longest": "1.0.1", - "pad-right": "0.2.2", "right-pad": "1.0.1", "word-wrap": "1.2.3" } @@ -1774,6 +2827,13 @@ "assert-plus": "1.0.0" } }, + "data-uri-to-buffer": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-1.2.0.tgz", + "integrity": "sha512-vKQ9DTQPN1FLYiiEEOQ6IBGFqvjCa5rSK3cWMy/Nespm5d/x3dGFT9UBZnkLxCwua/IXBi2TYnwTEpsOvhC4UQ==", + "dev": true, + "optional": true + }, "date-format": { "version": "0.0.0", "resolved": "https://registry.npmjs.org/date-format/-/date-format-0.0.0.tgz", @@ -1806,10 +2866,39 @@ } }, "decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", - "dev": true + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-2.0.0.tgz", + "integrity": "sha512-Ikpp5scV3MSYxY39ymh45ZLEecsTdv/Xj2CaQfI8RLMuwi7XvjX9H/fhraiSuU+C5w5NTDu4ZU72xNiZnurBPg==", + "dev": true, + "requires": { + "xregexp": "4.0.0" + }, + "dependencies": { + "xregexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/xregexp/-/xregexp-4.0.0.tgz", + "integrity": "sha512-PHyM+sQouu7xspQQwELlGwwd05mXUFqwFYfqPO0cC7x4fxyHnnuetmQr6CjJiafIDoH4MogHb9dOoJzR/Y4rFg==", + "dev": true + } + } + }, + "decamelize-keys": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.0.tgz", + "integrity": "sha1-0XGoeTMlKAfrPLYdwcFEXQeN8tk=", + "dev": true, + "requires": { + "decamelize": "1.2.0", + "map-obj": "1.0.1" + }, + "dependencies": { + "decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", + "dev": true + } + } }, "deep-is": { "version": "0.1.3", @@ -1826,6 +2915,33 @@ "clone": "1.0.3" } }, + "defined": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/defined/-/defined-1.0.0.tgz", + "integrity": "sha1-yY2bzvdWdBiOEQlpFRGZ45sfppM=", + "dev": true + }, + "degenerator": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/degenerator/-/degenerator-1.0.4.tgz", + "integrity": "sha1-/PSQo37OJmRk2cxDGrmMWBnO0JU=", + "dev": true, + "optional": true, + "requires": { + "ast-types": "0.11.3", + "escodegen": "1.8.1", + "esprima": "3.1.3" + }, + "dependencies": { + "esprima": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-3.1.3.tgz", + "integrity": "sha1-/cpRzuYTOJXjyI1TXOSdv/YqRjM=", + "dev": true, + "optional": true + } + } + }, "delayed-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", @@ -1833,9 +2949,9 @@ "dev": true }, "depd": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.1.tgz", - "integrity": "sha1-V4O04cRZ8G+lyif5kfPQbnoxA1k=", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", + "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=", "dev": true }, "dependency-graph": { @@ -1850,6 +2966,18 @@ "integrity": "sha1-+cmvVGSvoeepcUWKi97yqpTVuxk=", "dev": true }, + "deps-sort": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/deps-sort/-/deps-sort-2.0.0.tgz", + "integrity": "sha1-CRckkC6EZYJg65EHSMzNGvbiH7U=", + "dev": true, + "requires": { + "JSONStream": "1.3.1", + "shasum": "1.0.2", + "subarg": "1.0.0", + "through2": "2.0.3" + } + }, "des.js": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/des.js/-/des.js-1.0.0.tgz", @@ -1878,10 +3006,28 @@ "repeating": "2.0.1" } }, + "detective": { + "version": "4.7.1", + "resolved": "https://registry.npmjs.org/detective/-/detective-4.7.1.tgz", + "integrity": "sha512-H6PmeeUcZloWtdt4DAkFyzFL94arpHr3NOwwmVILFiy+9Qd4JTxxXrzfyGk/lmct2qVGBwTSwSXagqu2BxmWig==", + "dev": true, + "requires": { + "acorn": "5.5.3", + "defined": "1.0.0" + }, + "dependencies": { + "acorn": { + "version": "5.5.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.5.3.tgz", + "integrity": "sha512-jd5MkIUlbbmb07nXH0DT3y7rDVtkzDi4XZOUVWAer8ajmF/DTSSbl5oNFyDOl/OXA33Bl79+ypHhl2pN20VeOQ==", + "dev": true + } + } + }, "dgeni": { - "version": "0.4.7", - "resolved": "https://registry.npmjs.org/dgeni/-/dgeni-0.4.7.tgz", - "integrity": "sha1-UHBifdKPiNSABuIfVa+xipy4vmg=", + "version": "0.4.9", + "resolved": "https://registry.npmjs.org/dgeni/-/dgeni-0.4.9.tgz", + "integrity": "sha1-nkJ3WxOGyl64JHU6ws0WnY9hztE=", "dev": true, "requires": { "canonical-path": "0.0.2", @@ -1892,7 +3038,7 @@ "optimist": "0.6.1", "q": "1.4.1", "validate.js": "0.9.0", - "winston": "2.4.0" + "winston": "2.4.1" }, "dependencies": { "lodash": { @@ -1918,19 +3064,19 @@ "canonical-path": "0.0.2", "catharsis": "0.8.9", "change-case": "3.0.0", - "dgeni": "0.4.7", + "dgeni": "0.4.9", "espree": "2.2.5", "estraverse": "4.2.0", "glob": "7.1.2", "htmlparser2": "3.9.2", - "lodash": "4.17.4", + "lodash": "4.17.5", "marked": "0.3.6", "minimatch": "3.0.4", "mkdirp": "0.5.1", "mkdirp-promise": "5.0.1", "node-html-encoder": "0.0.2", "nunjucks": "2.5.2", - "semver": "5.3.0", + "semver": "5.5.0", "shelljs": "0.7.8", "spdx-license-list": "2.1.0", "stringmap": "0.2.2", @@ -1952,9 +3098,9 @@ "dev": true }, "diff": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-3.4.0.tgz", - "integrity": "sha512-QpVuMTEoJMF7cKzi6bvWhRulU1fZqZnvyVQgNhPaxxuTYwyjn/j1v9falseQ/uXWwPnO56RBfwtg4h/EQXmucA==", + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", + "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", "dev": true }, "diffie-hellman": { @@ -1965,7 +3111,7 @@ "requires": { "bn.js": "4.11.8", "miller-rabin": "4.0.1", - "randombytes": "2.0.5" + "randombytes": "2.0.6" } }, "doctrine": { @@ -2023,9 +3169,9 @@ } }, "domain-browser": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.1.7.tgz", - "integrity": "sha1-hnqksJP6oF8d4IwG9NeyH9+GmLw=", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.2.0.tgz", + "integrity": "sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA==", "dev": true }, "domelementtype": { @@ -2071,6 +3217,13 @@ "is-obj": "1.0.1" } }, + "double-ended-queue": { + "version": "2.1.0-0", + "resolved": "https://registry.npmjs.org/double-ended-queue/-/double-ended-queue-2.1.0-0.tgz", + "integrity": "sha1-ED01J/0xUo9AGIEwyEHv3XgmTlw=", + "dev": true, + "optional": true + }, "duplexer2": { "version": "0.0.2", "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.0.2.tgz", @@ -2122,6 +3275,12 @@ "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=", "dev": true }, + "electron-to-chromium": { + "version": "1.3.39", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.39.tgz", + "integrity": "sha1-16RpZAnKCZXidQFW2mEsIhr62E0=", + "dev": true + }, "elliptic": { "version": "6.4.0", "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz", @@ -2138,9 +3297,9 @@ } }, "encodeurl": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.1.tgz", - "integrity": "sha1-eePVhlU0aQn+bw9Fpd5oEDspTSA=", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=", "dev": true }, "end-of-stream": { @@ -2164,91 +3323,72 @@ } }, "engine.io": { - "version": "1.8.3", - "resolved": "https://registry.npmjs.org/engine.io/-/engine.io-1.8.3.tgz", - "integrity": "sha1-jef5eJXSDTm4X4ju7nd7K9QrE9Q=", + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/engine.io/-/engine.io-3.1.5.tgz", + "integrity": "sha512-D06ivJkYxyRrcEe0bTpNnBQNgP9d3xog+qZlLbui8EsMr/DouQpf5o9FzJnWYHEYE0YsFHllUv2R1dkgYZXHcA==", "dev": true, "requires": { - "accepts": "1.3.3", + "accepts": "1.3.5", "base64id": "1.0.0", "cookie": "0.3.1", - "debug": "2.3.3", - "engine.io-parser": "1.3.2", - "ws": "1.1.2" + "debug": "3.1.0", + "engine.io-parser": "2.1.2", + "uws": "9.14.0", + "ws": "3.3.3" }, "dependencies": { "debug": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.3.3.tgz", - "integrity": "sha1-QMRT5n5uE8kB3ewxeviYbNqe/4w=", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", "dev": true, "requires": { - "ms": "0.7.2" + "ms": "2.0.0" } - }, - "ms": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.2.tgz", - "integrity": "sha1-riXPJRKziFodldfwN4aNhDESR2U=", - "dev": true } } }, "engine.io-client": { - "version": "1.8.3", - "resolved": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-1.8.3.tgz", - "integrity": "sha1-F5jtk0USRkU9TG9jXXogH+lA1as=", + "version": "3.1.6", + "resolved": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-3.1.6.tgz", + "integrity": "sha512-hnuHsFluXnsKOndS4Hv6SvUrgdYx1pk2NqfaDMW+GWdgfU3+/V25Cj7I8a0x92idSpa5PIhJRKxPvp9mnoLsfg==", "dev": true, "requires": { "component-emitter": "1.2.1", "component-inherit": "0.0.3", - "debug": "2.3.3", - "engine.io-parser": "1.3.2", + "debug": "3.1.0", + "engine.io-parser": "2.1.2", "has-cors": "1.1.0", "indexof": "0.0.1", - "parsejson": "0.0.3", "parseqs": "0.0.5", "parseuri": "0.0.5", - "ws": "1.1.2", - "xmlhttprequest-ssl": "1.5.3", + "ws": "3.3.3", + "xmlhttprequest-ssl": "1.5.5", "yeast": "0.1.2" }, "dependencies": { - "component-emitter": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz", - "integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY=", - "dev": true - }, "debug": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.3.3.tgz", - "integrity": "sha1-QMRT5n5uE8kB3ewxeviYbNqe/4w=", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", "dev": true, "requires": { - "ms": "0.7.2" + "ms": "2.0.0" } - }, - "ms": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.2.tgz", - "integrity": "sha1-riXPJRKziFodldfwN4aNhDESR2U=", - "dev": true } } }, "engine.io-parser": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-1.3.2.tgz", - "integrity": "sha1-k3sHnwAH0Ik+xW1GyyILjLQ1Igo=", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-2.1.2.tgz", + "integrity": "sha512-dInLFzr80RijZ1rGpx1+56/uFoH7/7InhH3kZt+Ms6hT8tNx3NGW/WNSA/f8As1WkOfkuyb3tnRyuXGxusclMw==", "dev": true, "requires": { "after": "0.8.2", - "arraybuffer.slice": "0.0.6", + "arraybuffer.slice": "0.0.7", "base64-arraybuffer": "0.1.5", "blob": "0.0.4", - "has-binary": "0.1.7", - "wtf-8": "1.0.0" + "has-binary2": "1.0.2" } }, "ent": { @@ -2450,6 +3590,23 @@ "integrity": "sha1-p1Xqe8Gt/MWjHOfnYtuq3F5jZEQ=", "dev": true }, + "extend-shallow": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-1.1.4.tgz", + "integrity": "sha1-Gda/lN/AnXa6cR85uHLSH/TdkHE=", + "dev": true, + "requires": { + "kind-of": "1.1.0" + }, + "dependencies": { + "kind-of": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-1.1.0.tgz", + "integrity": "sha1-FAo9LUGjbS78+pN3tiwk+ElaXEQ=", + "dev": true + } + } + }, "extglob": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/extglob/-/extglob-0.3.2.tgz", @@ -2537,6 +3694,13 @@ "pend": "1.2.0" } }, + "file-uri-to-path": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", + "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==", + "dev": true, + "optional": true + }, "filename-regex": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/filename-regex/-/filename-regex-2.0.1.tgz", @@ -2557,13 +3721,13 @@ } }, "finalhandler": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.0.6.tgz", - "integrity": "sha1-AHrqM9Gk0+QgF/YkhIrVjSEvgU8=", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.0.tgz", + "integrity": "sha1-zgtoVbRYU+eRsvzGgARtiCU91/U=", "dev": true, "requires": { "debug": "2.6.9", - "encodeurl": "1.0.1", + "encodeurl": "1.0.2", "escape-html": "1.0.3", "on-finished": "2.3.0", "parseurl": "1.3.2", @@ -2643,6 +3807,16 @@ "integrity": "sha1-/xke3c1wiKZ1smEP/8l2vpuAdLU=", "dev": true }, + "follow-redirects": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.0.0.tgz", + "integrity": "sha1-jjQpjL0uF28lTv/sdaHHjMhJ/Tc=", + "dev": true, + "optional": true, + "requires": { + "debug": "2.6.9" + } + }, "for-in": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", @@ -2682,36 +3856,23 @@ "dev": true }, "fs-extra": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-2.0.0.tgz", - "integrity": "sha1-M3NSve1KC3FPPrhN6M6nZenTdgA=", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-5.0.0.tgz", + "integrity": "sha512-66Pm4RYbjzdyeuqudYqhFiNBbCIuI9kgRqLPSHIlXHidW8NIQtVdkM1yeZ4lXwuhbTETv3EUGMNHAAw6hiundQ==", "dev": true, "requires": { "graceful-fs": "4.1.11", - "jsonfile": "2.4.0" - } - }, - "fs-extra-promise": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/fs-extra-promise/-/fs-extra-promise-0.4.1.tgz", - "integrity": "sha1-rCjNLPa6ckjYI13ziHts9u3fNC8=", - "dev": true, - "requires": { - "bluebird": "3.5.1", - "fs-extra": "0.30.0" + "jsonfile": "4.0.0", + "universalify": "0.1.1" }, "dependencies": { - "fs-extra": { - "version": "0.30.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-0.30.0.tgz", - "integrity": "sha1-8jP/zAjU2n1DLapEl3aYnbHfk/A=", + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", "dev": true, "requires": { - "graceful-fs": "4.1.11", - "jsonfile": "2.4.0", - "klaw": "1.3.1", - "path-is-absolute": "1.0.1", - "rimraf": "2.6.1" + "graceful-fs": "4.1.11" } } } @@ -2722,6 +3883,956 @@ "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", "dev": true }, + "fsevents": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.1.3.tgz", + "integrity": "sha512-WIr7iDkdmdbxu/Gh6eKEZJL6KPE74/5MEsf2whTOFNxbIoIixogroLdKYqB6FDav4Wavh/lZdzzd3b2KxIXC5Q==", + "dev": true, + "optional": true, + "requires": { + "nan": "2.10.0", + "node-pre-gyp": "0.6.39" + }, + "dependencies": { + "abbrev": { + "version": "1.1.0", + "bundled": true, + "dev": true, + "optional": true + }, + "ajv": { + "version": "4.11.8", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "co": "4.6.0", + "json-stable-stringify": "1.0.1" + } + }, + "ansi-regex": { + "version": "2.1.1", + "bundled": true, + "dev": true + }, + "aproba": { + "version": "1.1.1", + "bundled": true, + "dev": true, + "optional": true + }, + "are-we-there-yet": { + "version": "1.1.4", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "delegates": "1.0.0", + "readable-stream": "2.2.9" + } + }, + "asn1": { + "version": "0.2.3", + "bundled": true, + "dev": true, + "optional": true + }, + "assert-plus": { + "version": "0.2.0", + "bundled": true, + "dev": true, + "optional": true + }, + "asynckit": { + "version": "0.4.0", + "bundled": true, + "dev": true, + "optional": true + }, + "aws-sign2": { + "version": "0.6.0", + "bundled": true, + "dev": true, + "optional": true + }, + "aws4": { + "version": "1.6.0", + "bundled": true, + "dev": true, + "optional": true + }, + "balanced-match": { + "version": "0.4.2", + "bundled": true, + "dev": true + }, + "bcrypt-pbkdf": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "tweetnacl": "0.14.5" + } + }, + "block-stream": { + "version": "0.0.9", + "bundled": true, + "dev": true, + "requires": { + "inherits": "2.0.3" + } + }, + "boom": { + "version": "2.10.1", + "bundled": true, + "dev": true, + "requires": { + "hoek": "2.16.3" + } + }, + "brace-expansion": { + "version": "1.1.7", + "bundled": true, + "dev": true, + "requires": { + "balanced-match": "0.4.2", + "concat-map": "0.0.1" + } + }, + "buffer-shims": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "caseless": { + "version": "0.12.0", + "bundled": true, + "dev": true, + "optional": true + }, + "co": { + "version": "4.6.0", + "bundled": true, + "dev": true, + "optional": true + }, + "code-point-at": { + "version": "1.1.0", + "bundled": true, + "dev": true + }, + "combined-stream": { + "version": "1.0.5", + "bundled": true, + "dev": true, + "requires": { + "delayed-stream": "1.0.0" + } + }, + "concat-map": { + "version": "0.0.1", + "bundled": true, + "dev": true + }, + "console-control-strings": { + "version": "1.1.0", + "bundled": true, + "dev": true + }, + "core-util-is": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "cryptiles": { + "version": "2.0.5", + "bundled": true, + "dev": true, + "requires": { + "boom": "2.10.1" + } + }, + "dashdash": { + "version": "1.14.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "assert-plus": "1.0.0" + }, + "dependencies": { + "assert-plus": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + } + } + }, + "debug": { + "version": "2.6.8", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "ms": "2.0.0" + } + }, + "deep-extend": { + "version": "0.4.2", + "bundled": true, + "dev": true, + "optional": true + }, + "delayed-stream": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "delegates": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "detect-libc": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "ecc-jsbn": { + "version": "0.1.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "jsbn": "0.1.1" + } + }, + "extend": { + "version": "3.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "extsprintf": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "forever-agent": { + "version": "0.6.1", + "bundled": true, + "dev": true, + "optional": true + }, + "form-data": { + "version": "2.1.4", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "asynckit": "0.4.0", + "combined-stream": "1.0.5", + "mime-types": "2.1.15" + } + }, + "fs.realpath": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "fstream": { + "version": "1.0.11", + "bundled": true, + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "inherits": "2.0.3", + "mkdirp": "0.5.1", + "rimraf": "2.6.1" + } + }, + "fstream-ignore": { + "version": "1.0.5", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "fstream": "1.0.11", + "inherits": "2.0.3", + "minimatch": "3.0.4" + } + }, + "gauge": { + "version": "2.7.4", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "aproba": "1.1.1", + "console-control-strings": "1.1.0", + "has-unicode": "2.0.1", + "object-assign": "4.1.1", + "signal-exit": "3.0.2", + "string-width": "1.0.2", + "strip-ansi": "3.0.1", + "wide-align": "1.1.2" + } + }, + "getpass": { + "version": "0.1.7", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "assert-plus": "1.0.0" + }, + "dependencies": { + "assert-plus": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + } + } + }, + "glob": { + "version": "7.1.2", + "bundled": true, + "dev": true, + "requires": { + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" + } + }, + "graceful-fs": { + "version": "4.1.11", + "bundled": true, + "dev": true + }, + "har-schema": { + "version": "1.0.5", + "bundled": true, + "dev": true, + "optional": true + }, + "har-validator": { + "version": "4.2.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "ajv": "4.11.8", + "har-schema": "1.0.5" + } + }, + "has-unicode": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "hawk": { + "version": "3.1.3", + "bundled": true, + "dev": true, + "requires": { + "boom": "2.10.1", + "cryptiles": "2.0.5", + "hoek": "2.16.3", + "sntp": "1.0.9" + } + }, + "hoek": { + "version": "2.16.3", + "bundled": true, + "dev": true + }, + "http-signature": { + "version": "1.1.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "assert-plus": "0.2.0", + "jsprim": "1.4.0", + "sshpk": "1.13.0" + } + }, + "inflight": { + "version": "1.0.6", + "bundled": true, + "dev": true, + "requires": { + "once": "1.4.0", + "wrappy": "1.0.2" + } + }, + "inherits": { + "version": "2.0.3", + "bundled": true, + "dev": true + }, + "ini": { + "version": "1.3.4", + "bundled": true, + "dev": true, + "optional": true + }, + "is-fullwidth-code-point": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "number-is-nan": "1.0.1" + } + }, + "is-typedarray": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "isarray": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "isstream": { + "version": "0.1.2", + "bundled": true, + "dev": true, + "optional": true + }, + "jodid25519": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "jsbn": "0.1.1" + } + }, + "jsbn": { + "version": "0.1.1", + "bundled": true, + "dev": true, + "optional": true + }, + "json-schema": { + "version": "0.2.3", + "bundled": true, + "dev": true, + "optional": true + }, + "json-stable-stringify": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "jsonify": "0.0.0" + } + }, + "json-stringify-safe": { + "version": "5.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "jsonify": { + "version": "0.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "jsprim": { + "version": "1.4.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "assert-plus": "1.0.0", + "extsprintf": "1.0.2", + "json-schema": "0.2.3", + "verror": "1.3.6" + }, + "dependencies": { + "assert-plus": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + } + } + }, + "mime-db": { + "version": "1.27.0", + "bundled": true, + "dev": true + }, + "mime-types": { + "version": "2.1.15", + "bundled": true, + "dev": true, + "requires": { + "mime-db": "1.27.0" + } + }, + "minimatch": { + "version": "3.0.4", + "bundled": true, + "dev": true, + "requires": { + "brace-expansion": "1.1.7" + } + }, + "minimist": { + "version": "0.0.8", + "bundled": true, + "dev": true + }, + "mkdirp": { + "version": "0.5.1", + "bundled": true, + "dev": true, + "requires": { + "minimist": "0.0.8" + } + }, + "ms": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "node-pre-gyp": { + "version": "0.6.39", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "detect-libc": "1.0.2", + "hawk": "3.1.3", + "mkdirp": "0.5.1", + "nopt": "4.0.1", + "npmlog": "4.1.0", + "rc": "1.2.1", + "request": "2.81.0", + "rimraf": "2.6.1", + "semver": "5.3.0", + "tar": "2.2.1", + "tar-pack": "3.4.0" + } + }, + "nopt": { + "version": "4.0.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "abbrev": "1.1.0", + "osenv": "0.1.4" + } + }, + "npmlog": { + "version": "4.1.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "are-we-there-yet": "1.1.4", + "console-control-strings": "1.1.0", + "gauge": "2.7.4", + "set-blocking": "2.0.0" + } + }, + "number-is-nan": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "oauth-sign": { + "version": "0.8.2", + "bundled": true, + "dev": true, + "optional": true + }, + "object-assign": { + "version": "4.1.1", + "bundled": true, + "dev": true, + "optional": true + }, + "once": { + "version": "1.4.0", + "bundled": true, + "dev": true, + "requires": { + "wrappy": "1.0.2" + } + }, + "os-homedir": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "os-tmpdir": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "osenv": { + "version": "0.1.4", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "os-homedir": "1.0.2", + "os-tmpdir": "1.0.2" + } + }, + "path-is-absolute": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "performance-now": { + "version": "0.2.0", + "bundled": true, + "dev": true, + "optional": true + }, + "process-nextick-args": { + "version": "1.0.7", + "bundled": true, + "dev": true + }, + "punycode": { + "version": "1.4.1", + "bundled": true, + "dev": true, + "optional": true + }, + "qs": { + "version": "6.4.0", + "bundled": true, + "dev": true, + "optional": true + }, + "rc": { + "version": "1.2.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "deep-extend": "0.4.2", + "ini": "1.3.4", + "minimist": "1.2.0", + "strip-json-comments": "2.0.1" + }, + "dependencies": { + "minimist": { + "version": "1.2.0", + "bundled": true, + "dev": true, + "optional": true + } + } + }, + "readable-stream": { + "version": "2.2.9", + "bundled": true, + "dev": true, + "requires": { + "buffer-shims": "1.0.0", + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "1.0.7", + "string_decoder": "1.0.1", + "util-deprecate": "1.0.2" + } + }, + "request": { + "version": "2.81.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "aws-sign2": "0.6.0", + "aws4": "1.6.0", + "caseless": "0.12.0", + "combined-stream": "1.0.5", + "extend": "3.0.1", + "forever-agent": "0.6.1", + "form-data": "2.1.4", + "har-validator": "4.2.1", + "hawk": "3.1.3", + "http-signature": "1.1.1", + "is-typedarray": "1.0.0", + "isstream": "0.1.2", + "json-stringify-safe": "5.0.1", + "mime-types": "2.1.15", + "oauth-sign": "0.8.2", + "performance-now": "0.2.0", + "qs": "6.4.0", + "safe-buffer": "5.0.1", + "stringstream": "0.0.5", + "tough-cookie": "2.3.2", + "tunnel-agent": "0.6.0", + "uuid": "3.0.1" + } + }, + "rimraf": { + "version": "2.6.1", + "bundled": true, + "dev": true, + "requires": { + "glob": "7.1.2" + } + }, + "safe-buffer": { + "version": "5.0.1", + "bundled": true, + "dev": true + }, + "semver": { + "version": "5.3.0", + "bundled": true, + "dev": true, + "optional": true + }, + "set-blocking": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "signal-exit": { + "version": "3.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "sntp": { + "version": "1.0.9", + "bundled": true, + "dev": true, + "requires": { + "hoek": "2.16.3" + } + }, + "sshpk": { + "version": "1.13.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "asn1": "0.2.3", + "assert-plus": "1.0.0", + "bcrypt-pbkdf": "1.0.1", + "dashdash": "1.14.1", + "ecc-jsbn": "0.1.1", + "getpass": "0.1.7", + "jodid25519": "1.0.2", + "jsbn": "0.1.1", + "tweetnacl": "0.14.5" + }, + "dependencies": { + "assert-plus": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + } + } + }, + "string-width": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "requires": { + "code-point-at": "1.1.0", + "is-fullwidth-code-point": "1.0.0", + "strip-ansi": "3.0.1" + } + }, + "string_decoder": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "requires": { + "safe-buffer": "5.0.1" + } + }, + "stringstream": { + "version": "0.0.5", + "bundled": true, + "dev": true, + "optional": true + }, + "strip-ansi": { + "version": "3.0.1", + "bundled": true, + "dev": true, + "requires": { + "ansi-regex": "2.1.1" + } + }, + "strip-json-comments": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "tar": { + "version": "2.2.1", + "bundled": true, + "dev": true, + "requires": { + "block-stream": "0.0.9", + "fstream": "1.0.11", + "inherits": "2.0.3" + } + }, + "tar-pack": { + "version": "3.4.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "debug": "2.6.8", + "fstream": "1.0.11", + "fstream-ignore": "1.0.5", + "once": "1.4.0", + "readable-stream": "2.2.9", + "rimraf": "2.6.1", + "tar": "2.2.1", + "uid-number": "0.0.6" + } + }, + "tough-cookie": { + "version": "2.3.2", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "punycode": "1.4.1" + } + }, + "tunnel-agent": { + "version": "0.6.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "safe-buffer": "5.0.1" + } + }, + "tweetnacl": { + "version": "0.14.5", + "bundled": true, + "dev": true, + "optional": true + }, + "uid-number": { + "version": "0.0.6", + "bundled": true, + "dev": true, + "optional": true + }, + "util-deprecate": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "uuid": { + "version": "3.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "verror": { + "version": "1.3.6", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "extsprintf": "1.0.2" + } + }, + "wide-align": { + "version": "1.1.2", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "string-width": "1.0.2" + } + }, + "wrappy": { + "version": "1.0.2", + "bundled": true, + "dev": true + } + } + }, + "ftp": { + "version": "0.3.10", + "resolved": "https://registry.npmjs.org/ftp/-/ftp-0.3.10.tgz", + "integrity": "sha1-kZfYYa2BQvPmPVqDv+TFn3MwiF0=", + "dev": true, + "optional": true, + "requires": { + "readable-stream": "1.1.14", + "xregexp": "2.0.0" + }, + "dependencies": { + "isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", + "dev": true, + "optional": true + }, + "readable-stream": { + "version": "1.1.14", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", + "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", + "dev": true, + "optional": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "0.0.1", + "string_decoder": "0.10.31" + } + }, + "string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", + "dev": true, + "optional": true + } + } + }, + "function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "dev": true + }, "gaze": { "version": "0.5.2", "resolved": "https://registry.npmjs.org/gaze/-/gaze-0.5.2.tgz", @@ -2731,6 +4842,23 @@ "globule": "0.1.0" } }, + "generate-function": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/generate-function/-/generate-function-2.0.0.tgz", + "integrity": "sha1-aFj+fAlpt9TpCTM3ZHrHn2DfvnQ=", + "dev": true, + "optional": true + }, + "generate-object-property": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/generate-object-property/-/generate-object-property-1.2.0.tgz", + "integrity": "sha1-nA4cQDCM6AT0eDYYuTf6iPmdUNA=", + "dev": true, + "optional": true, + "requires": { + "is-property": "1.0.2" + } + }, "get-pkg-repo": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/get-pkg-repo/-/get-pkg-repo-1.4.0.tgz", @@ -2750,6 +4878,21 @@ "integrity": "sha1-uWjGsKBDhDJJAui/Gl3zJXmkUP4=", "dev": true }, + "get-uri": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/get-uri/-/get-uri-2.0.1.tgz", + "integrity": "sha512-7aelVrYqCLuVjq2kEKRTH8fXPTC0xKTkM+G7UlFkEwCXY3sFbSxvY375JoFowOAYbkaU47SrBvOefUlLZZ+6QA==", + "dev": true, + "optional": true, + "requires": { + "data-uri-to-buffer": "1.2.0", + "debug": "2.6.9", + "extend": "3.0.1", + "file-uri-to-path": "1.0.0", + "ftp": "0.3.10", + "readable-stream": "2.3.3" + } + }, "getpass": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", @@ -2760,16 +4903,159 @@ } }, "git-raw-commits": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/git-raw-commits/-/git-raw-commits-1.3.0.tgz", - "integrity": "sha1-C8hZbpDV/+c29/VUa9LRL3OrqsY=", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/git-raw-commits/-/git-raw-commits-1.3.4.tgz", + "integrity": "sha512-G3O+41xHbscpgL5nA0DUkbFVgaAz5rd57AMSIMew8p7C8SyFwZDyn08MoXHkTl9zcD0LmxsLFPxbqFY4YPbpPA==", "dev": true, "requires": { "dargs": "4.1.0", "lodash.template": "4.4.0", - "meow": "3.7.0", + "meow": "4.0.0", "split2": "2.2.0", "through2": "2.0.3" + }, + "dependencies": { + "camelcase": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", + "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", + "dev": true + }, + "camelcase-keys": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-4.2.0.tgz", + "integrity": "sha1-oqpfsa9oh1glnDLBQUJteJI7m3c=", + "dev": true, + "requires": { + "camelcase": "4.1.0", + "map-obj": "2.0.0", + "quick-lru": "1.1.0" + } + }, + "find-up": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", + "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", + "dev": true, + "requires": { + "locate-path": "2.0.0" + } + }, + "indent-string": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz", + "integrity": "sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok=", + "dev": true + }, + "load-json-file": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", + "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "parse-json": "4.0.0", + "pify": "3.0.0", + "strip-bom": "3.0.0" + } + }, + "map-obj": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-2.0.0.tgz", + "integrity": "sha1-plzSkIepJZi4eRJXpSPgISIqwfk=", + "dev": true + }, + "meow": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/meow/-/meow-4.0.0.tgz", + "integrity": "sha512-Me/kel335m6vMKmEmA6c87Z6DUFW3JqkINRnxkbC+A/PUm0D5Fl2dEBQrPKnqCL9Te/CIa1MUt/0InMJhuC/sw==", + "dev": true, + "requires": { + "camelcase-keys": "4.2.0", + "decamelize-keys": "1.1.0", + "loud-rejection": "1.6.0", + "minimist": "1.2.0", + "minimist-options": "3.0.2", + "normalize-package-data": "2.4.0", + "read-pkg-up": "3.0.0", + "redent": "2.0.0", + "trim-newlines": "2.0.0" + } + }, + "parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", + "dev": true, + "requires": { + "error-ex": "1.3.1", + "json-parse-better-errors": "1.0.1" + } + }, + "path-type": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", + "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", + "dev": true, + "requires": { + "pify": "3.0.0" + } + }, + "pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", + "dev": true + }, + "read-pkg": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", + "integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=", + "dev": true, + "requires": { + "load-json-file": "4.0.0", + "normalize-package-data": "2.4.0", + "path-type": "3.0.0" + } + }, + "read-pkg-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-3.0.0.tgz", + "integrity": "sha1-PtSWaF26D4/hGNBpHcUfSh/5bwc=", + "dev": true, + "requires": { + "find-up": "2.1.0", + "read-pkg": "3.0.0" + } + }, + "redent": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-2.0.0.tgz", + "integrity": "sha1-wbIAe0LVfrE4kHmzyDM2OdXhzKo=", + "dev": true, + "requires": { + "indent-string": "3.2.0", + "strip-indent": "2.0.0" + } + }, + "strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", + "dev": true + }, + "strip-indent": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-2.0.0.tgz", + "integrity": "sha1-XvjbKV0B5u1sv3qrlpmNeCJSe2g=", + "dev": true + }, + "trim-newlines": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-2.0.0.tgz", + "integrity": "sha1-tAPQuRvlDDMd/EuC7s6yLD3hbSA=", + "dev": true + } } }, "git-remote-origin-url": { @@ -2783,13 +5069,162 @@ } }, "git-semver-tags": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/git-semver-tags/-/git-semver-tags-1.2.3.tgz", - "integrity": "sha1-GItFOIK/nXojr9Mbq6U32rc4jV0=", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/git-semver-tags/-/git-semver-tags-1.3.4.tgz", + "integrity": "sha512-Xe2Z74MwXZfAezuaO6e6cA4nsgeCiARPzaBp23gma325c/OXdt//PhrknptIaynNeUp2yWtmikV7k5RIicgGIQ==", "dev": true, "requires": { - "meow": "3.7.0", - "semver": "5.3.0" + "meow": "4.0.0", + "semver": "5.5.0" + }, + "dependencies": { + "camelcase": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", + "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", + "dev": true + }, + "camelcase-keys": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-4.2.0.tgz", + "integrity": "sha1-oqpfsa9oh1glnDLBQUJteJI7m3c=", + "dev": true, + "requires": { + "camelcase": "4.1.0", + "map-obj": "2.0.0", + "quick-lru": "1.1.0" + } + }, + "find-up": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", + "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", + "dev": true, + "requires": { + "locate-path": "2.0.0" + } + }, + "indent-string": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz", + "integrity": "sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok=", + "dev": true + }, + "load-json-file": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", + "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "parse-json": "4.0.0", + "pify": "3.0.0", + "strip-bom": "3.0.0" + } + }, + "map-obj": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-2.0.0.tgz", + "integrity": "sha1-plzSkIepJZi4eRJXpSPgISIqwfk=", + "dev": true + }, + "meow": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/meow/-/meow-4.0.0.tgz", + "integrity": "sha512-Me/kel335m6vMKmEmA6c87Z6DUFW3JqkINRnxkbC+A/PUm0D5Fl2dEBQrPKnqCL9Te/CIa1MUt/0InMJhuC/sw==", + "dev": true, + "requires": { + "camelcase-keys": "4.2.0", + "decamelize-keys": "1.1.0", + "loud-rejection": "1.6.0", + "minimist": "1.2.0", + "minimist-options": "3.0.2", + "normalize-package-data": "2.4.0", + "read-pkg-up": "3.0.0", + "redent": "2.0.0", + "trim-newlines": "2.0.0" + } + }, + "parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", + "dev": true, + "requires": { + "error-ex": "1.3.1", + "json-parse-better-errors": "1.0.1" + } + }, + "path-type": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", + "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", + "dev": true, + "requires": { + "pify": "3.0.0" + } + }, + "pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", + "dev": true + }, + "read-pkg": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", + "integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=", + "dev": true, + "requires": { + "load-json-file": "4.0.0", + "normalize-package-data": "2.4.0", + "path-type": "3.0.0" + } + }, + "read-pkg-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-3.0.0.tgz", + "integrity": "sha1-PtSWaF26D4/hGNBpHcUfSh/5bwc=", + "dev": true, + "requires": { + "find-up": "2.1.0", + "read-pkg": "3.0.0" + } + }, + "redent": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-2.0.0.tgz", + "integrity": "sha1-wbIAe0LVfrE4kHmzyDM2OdXhzKo=", + "dev": true, + "requires": { + "indent-string": "3.2.0", + "strip-indent": "2.0.0" + } + }, + "semver": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz", + "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==", + "dev": true + }, + "strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", + "dev": true + }, + "strip-indent": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-2.0.0.tgz", + "integrity": "sha1-XvjbKV0B5u1sv3qrlpmNeCJSe2g=", + "dev": true + }, + "trim-newlines": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-2.0.0.tgz", + "integrity": "sha1-tAPQuRvlDDMd/EuC7s6yLD3hbSA=", + "dev": true + } } }, "gitconfiglocal": { @@ -3060,9 +5495,9 @@ "dev": true }, "gulp-replace": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/gulp-replace/-/gulp-replace-0.5.4.tgz", - "integrity": "sha1-aaZ5FLvRPFYr/xT1BKQDeWqg2qk=", + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/gulp-replace/-/gulp-replace-0.6.1.tgz", + "integrity": "sha1-Eb+Mj85TPjPi9qjy9DC5VboL4GY=", "dev": true, "requires": { "istextorbinary": "1.0.2", @@ -3071,14 +5506,108 @@ } }, "gulp-tslint": { - "version": "6.1.2", - "resolved": "https://registry.npmjs.org/gulp-tslint/-/gulp-tslint-6.1.2.tgz", - "integrity": "sha1-ni3oLvJaqkN4/Yn+W0Q7Pq9wL+0=", + "version": "8.1.3", + "resolved": "https://registry.npmjs.org/gulp-tslint/-/gulp-tslint-8.1.3.tgz", + "integrity": "sha512-KEP350N5B9Jg6o6jnyCyKVBPemJePYpMsGfIQq0G0ErvY7tw4Lrfb/y3L4WRf7ek0OsaE8nnj86w+lcLXW8ovw==", "dev": true, "requires": { - "gulp-util": "3.0.8", - "map-stream": "0.1.0", + "@types/fancy-log": "1.3.0", + "chalk": "2.3.1", + "fancy-log": "1.3.2", + "map-stream": "0.0.7", + "plugin-error": "1.0.1", "through": "2.3.8" + }, + "dependencies": { + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "1.9.1" + } + }, + "arr-diff": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", + "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", + "dev": true + }, + "arr-union": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", + "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=", + "dev": true + }, + "chalk": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.3.1.tgz", + "integrity": "sha512-QUU4ofkDoMIVO7hcx1iPTISs88wsO8jA92RQIm4JAwZvFGGAV2hSAA1NX7oVj2Ej2Q6NDTcRDjPTFrMCRZoJ6g==", + "dev": true, + "requires": { + "ansi-styles": "3.2.1", + "escape-string-regexp": "1.0.5", + "supports-color": "5.3.0" + } + }, + "extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", + "dev": true, + "requires": { + "assign-symbols": "1.0.0", + "is-extendable": "1.0.1" + } + }, + "fancy-log": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/fancy-log/-/fancy-log-1.3.2.tgz", + "integrity": "sha1-9BEl49hPLn2JpD0G2VjI94vha+E=", + "dev": true, + "requires": { + "ansi-gray": "0.1.1", + "color-support": "1.1.3", + "time-stamp": "1.1.0" + } + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "requires": { + "is-plain-object": "2.0.4" + } + }, + "plugin-error": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/plugin-error/-/plugin-error-1.0.1.tgz", + "integrity": "sha512-L1zP0dk7vGweZME2i+EeakvUNqSrdiI3F91TwEoYiGrAfUXmVv6fJIq4g82PAXxNsWOp0J7ZqQy/3Szz0ajTxA==", + "dev": true, + "requires": { + "ansi-colors": "1.1.0", + "arr-diff": "4.0.0", + "arr-union": "3.1.0", + "extend-shallow": "3.0.2" + } + }, + "supports-color": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.3.0.tgz", + "integrity": "sha512-0aP01LLIskjKs3lq52EC0aGBAJhLq7B2Rd8HC/DR/PtNNpcLilNmHC12O+hu0usQpo7wtHNRqtrhBwtDb0+dNg==", + "dev": true, + "requires": { + "has-flag": "3.0.0" + } + } } }, "gulp-util": { @@ -3196,6 +5725,15 @@ "har-schema": "2.0.0" } }, + "has": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.1.tgz", + "integrity": "sha1-hGFzP1OLCDfJNh45qauelwTcLyg=", + "dev": true, + "requires": { + "function-bind": "1.1.1" + } + }, "has-ansi": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", @@ -3205,19 +5743,19 @@ "ansi-regex": "2.1.1" } }, - "has-binary": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/has-binary/-/has-binary-0.1.7.tgz", - "integrity": "sha1-aOYesWIQyVRaClzOBqhzkS/h5ow=", + "has-binary2": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-binary2/-/has-binary2-1.0.2.tgz", + "integrity": "sha1-6D26SfC5vk0CbSc2U1DZ8D9Uvpg=", "dev": true, "requires": { - "isarray": "0.0.1" + "isarray": "2.0.1" }, "dependencies": { "isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.1.tgz", + "integrity": "sha1-o32U7ZzaLVmGXJ92/llu4fM4dB4=", "dev": true } } @@ -3294,6 +5832,17 @@ "upper-case": "1.1.3" } }, + "hipchat-notifier": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/hipchat-notifier/-/hipchat-notifier-1.1.0.tgz", + "integrity": "sha1-ttJJdVQ3wZEII2d5nTupoPI7Ix4=", + "dev": true, + "optional": true, + "requires": { + "lodash": "4.17.5", + "request": "2.83.0" + } + }, "hmac-drbg": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", @@ -3336,6 +5885,12 @@ "integrity": "sha512-pNgbURSuab90KbTqvRPsseaTxOJCZBD0a7t+haSN33piP9cCM4l0CqdzAif2hUqm716UovKB2ROmiabGAKVXyg==", "dev": true }, + "htmlescape": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/htmlescape/-/htmlescape-1.1.1.tgz", + "integrity": "sha1-OgPtwiFLyjtmQko+eVk0lQnLA1E=", + "dev": true + }, "htmlparser2": { "version": "3.9.2", "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.9.2.tgz", @@ -3360,6 +5915,14 @@ "inherits": "2.0.3", "setprototypeof": "1.0.3", "statuses": "1.4.0" + }, + "dependencies": { + "depd": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.1.tgz", + "integrity": "sha1-V4O04cRZ8G+lyif5kfPQbnoxA1k=", + "dev": true + } } }, "http-proxy": { @@ -3372,6 +5935,17 @@ "requires-port": "1.0.0" } }, + "http-proxy-agent": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-1.0.0.tgz", + "integrity": "sha1-zBzjjkU7+YSg93AtLdWcc9CBKEo=", + "dev": true, + "requires": { + "agent-base": "2.1.1", + "debug": "2.6.9", + "extend": "3.0.1" + } + }, "http-signature": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", @@ -3383,12 +5957,47 @@ "sshpk": "1.13.1" } }, + "httpntlm": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/httpntlm/-/httpntlm-1.6.1.tgz", + "integrity": "sha1-rQFScUOi6Hc8+uapb1hla7UqNLI=", + "dev": true, + "requires": { + "httpreq": "0.4.24", + "underscore": "1.7.0" + }, + "dependencies": { + "underscore": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.7.0.tgz", + "integrity": "sha1-a7rwh3UA02vjTsqlhODbn+8DUgk=", + "dev": true + } + } + }, + "httpreq": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/httpreq/-/httpreq-0.4.24.tgz", + "integrity": "sha1-QzX/2CzZaWaKOUZckprGHWOTYn8=", + "dev": true + }, "https-browserify": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz", "integrity": "sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=", "dev": true }, + "https-proxy-agent": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-1.0.0.tgz", + "integrity": "sha1-NffabEjOTdv6JkiRrFk+5f+GceY=", + "dev": true, + "requires": { + "agent-base": "2.1.1", + "debug": "2.6.9", + "extend": "3.0.1" + } + }, "iconv-lite": { "version": "0.4.19", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.19.tgz", @@ -3416,6 +6025,13 @@ "integrity": "sha1-gtwzbSMrkGIXnQWrMpOmYFn9Q10=", "dev": true }, + "inflection": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/inflection/-/inflection-1.10.0.tgz", + "integrity": "sha1-W//LEZetPoEFD44X4hZoCH7p6y8=", + "dev": true, + "optional": true + }, "inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", @@ -3447,6 +6063,73 @@ "source-map": "0.5.7" } }, + "insert-module-globals": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/insert-module-globals/-/insert-module-globals-7.0.2.tgz", + "integrity": "sha512-p3s7g96Nm62MbHRuj9ZXab0DuJNWD7qcmdUXCOQ/ZZn42DtDXfsLill7bq19lDCx3K3StypqUnuE3H2VmIJFUw==", + "dev": true, + "requires": { + "JSONStream": "1.3.1", + "combine-source-map": "0.7.2", + "concat-stream": "1.5.2", + "is-buffer": "1.1.6", + "lexical-scope": "1.2.0", + "process": "0.11.10", + "through2": "2.0.3", + "xtend": "4.0.1" + }, + "dependencies": { + "combine-source-map": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/combine-source-map/-/combine-source-map-0.7.2.tgz", + "integrity": "sha1-CHAxKFazB6h8xKxIbzqaYq7MwJ4=", + "dev": true, + "requires": { + "convert-source-map": "1.1.3", + "inline-source-map": "0.6.2", + "lodash.memoize": "3.0.4", + "source-map": "0.5.7" + } + }, + "concat-stream": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.5.2.tgz", + "integrity": "sha1-cIl4Yk2FavQaWnQd790mHadSwmY=", + "dev": true, + "requires": { + "inherits": "2.0.3", + "readable-stream": "2.0.6", + "typedarray": "0.0.6" + } + }, + "convert-source-map": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.1.3.tgz", + "integrity": "sha1-SCnId+n+SbMWHzvzZziI4gRpmGA=", + "dev": true + }, + "readable-stream": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.0.6.tgz", + "integrity": "sha1-j5A0HmilPMySh4jaz80Rs265t44=", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "1.0.7", + "string_decoder": "0.10.31", + "util-deprecate": "1.0.2" + } + }, + "string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", + "dev": true + } + } + }, "interpret": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.0.4.tgz", @@ -3454,9 +6137,9 @@ "dev": true }, "invariant": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.2.tgz", - "integrity": "sha1-nh9WrArNtr8wMwbzOL47IErmA2A=", + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", + "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", "dev": true, "requires": { "loose-envify": "1.3.1" @@ -3468,6 +6151,13 @@ "integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=", "dev": true }, + "ip": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/ip/-/ip-1.0.1.tgz", + "integrity": "sha1-x+NWzeoiWucbNtcPLnGpK6TkJZA=", + "dev": true, + "optional": true + }, "is-absolute": { "version": "0.2.6", "resolved": "https://registry.npmjs.org/is-absolute/-/is-absolute-0.2.6.tgz", @@ -3571,6 +6261,27 @@ "lower-case": "1.1.4" } }, + "is-my-ip-valid": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-my-ip-valid/-/is-my-ip-valid-1.0.0.tgz", + "integrity": "sha512-gmh/eWXROncUzRnIa1Ubrt5b8ep/MGSnfAUI3aRp+sqTCs1tv1Isl8d8F6JmkN3dXKc3ehZMrtiPN9eL03NuaQ==", + "dev": true, + "optional": true + }, + "is-my-json-valid": { + "version": "2.17.2", + "resolved": "https://registry.npmjs.org/is-my-json-valid/-/is-my-json-valid-2.17.2.tgz", + "integrity": "sha512-IBhBslgngMQN8DDSppmgDv7RNrlFotuuDsKcrCP3+HbFaVivIBU7u9oiiErw8sH4ynx3+gOGQ3q2otkgiSi6kg==", + "dev": true, + "optional": true, + "requires": { + "generate-function": "2.0.0", + "generate-object-property": "1.2.0", + "is-my-ip-valid": "1.0.0", + "jsonpointer": "4.0.1", + "xtend": "4.0.1" + } + }, "is-number": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", @@ -3586,6 +6297,12 @@ "integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8=", "dev": true }, + "is-plain-obj": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", + "integrity": "sha1-caUMhCnfync8kqOQpKA7OfzVHT4=", + "dev": true + }, "is-plain-object": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", @@ -3615,6 +6332,13 @@ "integrity": "sha1-IHurkWOEmcB7Kt8kCkGochADRXU=", "dev": true }, + "is-property": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-property/-/is-property-1.0.2.tgz", + "integrity": "sha1-V/4cTkhHTt1lsJkR8msc1Ald2oQ=", + "dev": true, + "optional": true + }, "is-relative": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-relative/-/is-relative-0.2.1.tgz", @@ -3726,7 +6450,7 @@ "esprima": "2.7.3", "glob": "5.0.15", "handlebars": "4.0.11", - "js-yaml": "3.10.0", + "js-yaml": "3.11.0", "mkdirp": "0.5.1", "nopt": "3.0.6", "once": "1.4.0", @@ -3789,9 +6513,9 @@ } }, "jasmine-core": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-2.8.0.tgz", - "integrity": "sha1-vMl5rh+f0FcB5F5S5l06XWPxok4=", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-3.1.0.tgz", + "integrity": "sha1-pHheE11d9lAk38kiSVPfWFvSdmw=", "dev": true }, "js-tokens": { @@ -3801,12 +6525,12 @@ "dev": true }, "js-yaml": { - "version": "3.10.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.10.0.tgz", - "integrity": "sha512-O2v52ffjLa9VeM43J4XocZE//WT9N0IiwDa3KSHH7Tu8CtH+1qM8SIZvnsTh6v+4yFy5KUY3BHUVwjpfAWsjIA==", + "version": "3.11.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.11.0.tgz", + "integrity": "sha512-saJstZWv7oNeOyBh3+Dx1qWzhW0+e6/8eDzo7p5rDFqxntSztloLtuKu+Ejhtq82jsilwOIZYsCz+lIjthg1Hw==", "dev": true, "requires": { - "argparse": "1.0.9", + "argparse": "1.0.10", "esprima": "4.0.0" }, "dependencies": { @@ -3831,6 +6555,12 @@ "integrity": "sha1-RsP+yMGJKxKwgz25vHYiF226s0s=", "dev": true }, + "json-parse-better-errors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.1.tgz", + "integrity": "sha512-xyQpxeWWMKyJps9CuGJYeng6ssI5bpqS9ltQpdVQ90t4ql6NdnxFKh95JcRt2cun/DjMVNrdjniLPuMA69xmCw==", + "dev": true + }, "json-schema": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", @@ -3843,18 +6573,21 @@ "integrity": "sha1-NJptRMU6Ud6JtAgFxdXlm0F9M0A=", "dev": true }, + "json-stable-stringify": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-0.0.1.tgz", + "integrity": "sha1-YRwj6BTbN1Un34URk9tZ3Sryf0U=", + "dev": true, + "requires": { + "jsonify": "0.0.0" + } + }, "json-stringify-safe": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", "dev": true }, - "json3": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/json3/-/json3-3.3.2.tgz", - "integrity": "sha1-PAQ0dD35Pi9cQq7nsZvLSDV19OE=", - "dev": true - }, "json5": { "version": "0.5.1", "resolved": "https://registry.npmjs.org/json5/-/json5-0.5.1.tgz", @@ -3870,12 +6603,25 @@ "graceful-fs": "4.1.11" } }, + "jsonify": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz", + "integrity": "sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=", + "dev": true + }, "jsonparse": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", "integrity": "sha1-P02uSpH6wxX3EGL4UhzCOfE2YoA=", "dev": true }, + "jsonpointer": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-4.0.1.tgz", + "integrity": "sha1-T9kss04OnbPInIYi7PUfm5eMbLk=", + "dev": true, + "optional": true + }, "jsprim": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", @@ -3889,17 +6635,18 @@ } }, "karma": { - "version": "1.7.1", - "resolved": "https://registry.npmjs.org/karma/-/karma-1.7.1.tgz", - "integrity": "sha512-k5pBjHDhmkdaUccnC7gE3mBzZjcxyxYsYVaqiL2G5AqlfLyBO5nw2VdNK+O16cveEPd/gIOWULH7gkiYYwVNHg==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/karma/-/karma-2.0.0.tgz", + "integrity": "sha512-K9Kjp8CldLyL9ANSUctDyxC7zH3hpqXj/K09qVf06K3T/kXaHtFZ5tQciK7OzQu68FLvI89Na510kqQ2LCbpIw==", "dev": true, "requires": { "bluebird": "3.5.1", "body-parser": "1.18.2", + "browserify": "14.5.0", "chokidar": "1.7.0", - "colors": "1.1.2", + "colors": "1.2.1", "combine-lists": "1.0.1", - "connect": "3.6.5", + "connect": "3.6.6", "core-js": "2.5.1", "di": "0.0.1", "dom-serialize": "2.2.1", @@ -3908,31 +6655,31 @@ "graceful-fs": "4.1.11", "http-proxy": "1.16.2", "isbinaryfile": "3.0.2", - "lodash": "3.10.1", - "log4js": "0.6.38", - "mime": "1.4.1", + "lodash": "4.17.5", + "log4js": "2.5.3", + "mime": "1.6.0", "minimatch": "3.0.4", "optimist": "0.6.1", - "qjobs": "1.1.5", + "qjobs": "1.2.0", "range-parser": "1.2.0", - "rimraf": "2.6.1", + "rimraf": "2.6.2", "safe-buffer": "5.1.1", - "socket.io": "1.7.3", - "source-map": "0.5.7", - "tmp": "0.0.31", - "useragent": "2.2.1" + "socket.io": "2.0.4", + "source-map": "0.6.1", + "tmp": "0.0.33", + "useragent": "2.3.0" }, "dependencies": { "colors": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/colors/-/colors-1.1.2.tgz", - "integrity": "sha1-FopHAXVran9RoSzgyXv6KMCE7WM=", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/colors/-/colors-1.2.1.tgz", + "integrity": "sha512-s8+wktIuDSLffCywiwSxQOMqtPxML11a/dtHE17tMn4B1MSWw/C22EKf7M2KGUBcDaVFEGT+S8N02geDXeuNKg==", "dev": true }, - "lodash": { - "version": "3.10.1", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-3.10.1.tgz", - "integrity": "sha1-W/Rejkm6QYnhfUgnid/RW9FAt7Y=", + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true } } @@ -3968,9 +6715,9 @@ } }, "karma-jasmine": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/karma-jasmine/-/karma-jasmine-1.1.0.tgz", - "integrity": "sha1-IuTAa/mhguUpTR9wXjczgRuBCs8=", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/karma-jasmine/-/karma-jasmine-1.1.1.tgz", + "integrity": "sha1-b+hA51oRYAydkehLM8RY4cRqNSk=", "dev": true }, "karma-phantomjs-launcher": { @@ -3979,58 +6726,51 @@ "integrity": "sha1-0jyjSAG9qYY60xjju0vUBisTrNI=", "dev": true, "requires": { - "lodash": "4.17.4", + "lodash": "4.17.5", "phantomjs-prebuilt": "2.1.16" } }, "karma-typescript": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/karma-typescript/-/karma-typescript-3.0.8.tgz", - "integrity": "sha1-oayGsA2nRNwcA83HgXopgucvEXE=", + "version": "3.0.12", + "resolved": "https://registry.npmjs.org/karma-typescript/-/karma-typescript-3.0.12.tgz", + "integrity": "sha1-qiy90RFEKgnG28uq6vSEmWVMaRM=", "dev": true, "requires": { "acorn": "4.0.13", - "amdefine": "1.0.0", "assert": "1.4.1", "async": "2.6.0", - "base64-js": "1.2.1", "browser-resolve": "1.11.2", "browserify-zlib": "0.2.0", - "buffer": "5.0.8", + "buffer": "5.1.0", "combine-source-map": "0.8.0", "console-browserify": "1.1.0", "constants-browserify": "1.0.0", - "convert-source-map": "1.5.0", + "convert-source-map": "1.5.1", "crypto-browserify": "3.12.0", - "diff": "3.4.0", - "domain-browser": "1.1.7", - "es6-promise": "4.1.1", + "diff": "3.5.0", + "domain-browser": "1.2.0", "events": "1.1.1", "glob": "7.1.2", "https-browserify": "1.0.0", - "ieee754": "1.1.8", - "isarray": "1.0.0", "istanbul": "0.4.5", "json-stringify-safe": "5.0.1", "karma-coverage": "1.1.1", - "lodash": "4.17.4", + "lodash": "4.17.5", "log4js": "1.1.1", - "magic-string": "0.19.1", "minimatch": "3.0.4", "os-browserify": "0.3.0", - "pad": "1.2.1", + "pad": "2.0.3", "path-browserify": "0.0.0", "process": "0.11.10", "punycode": "1.4.1", "querystring-es3": "0.2.1", "readable-stream": "2.3.3", - "remap-istanbul": "0.8.4", - "source-map": "0.5.7", + "remap-istanbul": "0.10.1", + "source-map": "0.6.1", "stream-browserify": "2.0.1", - "stream-http": "2.7.2", + "stream-http": "2.8.1", "string_decoder": "1.0.3", - "through2": "2.0.1", - "timers-browserify": "2.0.4", + "timers-browserify": "2.0.6", "tmp": "0.0.29", "tty-browserify": "0.0.0", "url": "0.11.0", @@ -4038,19 +6778,13 @@ "vm-browserify": "0.0.4" }, "dependencies": { - "amdefine": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.0.tgz", - "integrity": "sha1-/RdHRwDLXMnCtwnwvp0jzjwZjDM=", - "dev": true - }, "async": { "version": "2.6.0", "resolved": "https://registry.npmjs.org/async/-/async-2.6.0.tgz", "integrity": "sha512-xAfGg1/NTLBBKlHFmnd7PlmUW9KhVQIUuSrYem9xzFUZy13ScvtyGGejaae9iAVRiRq9+Cx7DPFaAAhCpyxyPw==", "dev": true, "requires": { - "lodash": "4.17.4" + "lodash": "4.17.5" } }, "log4js": { @@ -4060,41 +6794,15 @@ "dev": true, "requires": { "debug": "2.6.9", - "semver": "5.3.0", + "semver": "5.5.0", "streamroller": "0.4.1" } }, - "through2": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.1.tgz", - "integrity": "sha1-OE51MU1J8y3hLuu4E2uOtrXVnak=", - "dev": true, - "requires": { - "readable-stream": "2.0.6", - "xtend": "4.0.1" - }, - "dependencies": { - "readable-stream": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.0.6.tgz", - "integrity": "sha1-j5A0HmilPMySh4jaz80Rs265t44=", - "dev": true, - "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "1.0.7", - "string_decoder": "0.10.31", - "util-deprecate": "1.0.2" - } - }, - "string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", - "dev": true - } - } + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true }, "tmp": { "version": "0.0.29", @@ -4108,18 +6816,24 @@ } }, "karma-typescript-es6-transform": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/karma-typescript-es6-transform/-/karma-typescript-es6-transform-1.0.2.tgz", - "integrity": "sha1-uIuXd+dFDPDaySsBRt0u36mMbTA=", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/karma-typescript-es6-transform/-/karma-typescript-es6-transform-1.0.4.tgz", + "integrity": "sha1-CrL9L71fFuc0px9EpMv5GyV75Ag=", "dev": true, "requires": { - "acorn": "4.0.13", + "acorn": "5.5.3", "babel-core": "6.26.0", - "babel-preset-es2015": "6.24.1", + "babel-preset-env": "1.6.1", "log4js": "1.1.1", - "magic-string": "0.19.1" + "magic-string": "0.22.5" }, "dependencies": { + "acorn": { + "version": "5.5.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.5.3.tgz", + "integrity": "sha512-jd5MkIUlbbmb07nXH0DT3y7rDVtkzDi4XZOUVWAer8ajmF/DTSSbl5oNFyDOl/OXA33Bl79+ypHhl2pN20VeOQ==", + "dev": true + }, "log4js": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/log4js/-/log4js-1.1.1.tgz", @@ -4127,7 +6841,7 @@ "dev": true, "requires": { "debug": "2.6.9", - "semver": "5.3.0", + "semver": "5.5.0", "streamroller": "0.4.1" } } @@ -4157,6 +6871,25 @@ "graceful-fs": "4.1.11" } }, + "labeled-stream-splicer": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/labeled-stream-splicer/-/labeled-stream-splicer-2.0.0.tgz", + "integrity": "sha1-pS4dE4AkwAuGscDJH2d5GLiuClk=", + "dev": true, + "requires": { + "inherits": "2.0.3", + "isarray": "0.0.1", + "stream-splicer": "2.0.0" + }, + "dependencies": { + "isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", + "dev": true + } + } + }, "lazy-cache": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-1.0.4.tgz", @@ -4183,6 +6916,46 @@ "type-check": "0.3.2" } }, + "lexical-scope": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/lexical-scope/-/lexical-scope-1.2.0.tgz", + "integrity": "sha1-/Ope3HBKSzqHls3KQZw6CvryLfQ=", + "dev": true, + "requires": { + "astw": "2.2.0" + } + }, + "libbase64": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/libbase64/-/libbase64-0.1.0.tgz", + "integrity": "sha1-YjUag5VjrF/1vSbxL2Dpgwu3UeY=", + "dev": true + }, + "libmime": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/libmime/-/libmime-3.0.0.tgz", + "integrity": "sha1-UaGp50SOy9Ms2lRCFnW7IbwJPaY=", + "dev": true, + "requires": { + "iconv-lite": "0.4.15", + "libbase64": "0.1.0", + "libqp": "1.1.0" + }, + "dependencies": { + "iconv-lite": { + "version": "0.4.15", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.15.tgz", + "integrity": "sha1-/iZaIYrGpXz+hUkn6dBMGYJe3es=", + "dev": true + } + } + }, + "libqp": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/libqp/-/libqp-1.1.0.tgz", + "integrity": "sha1-9ebgatdLeU+1tbZpiL9yjvHe2+g=", + "dev": true + }, "liftoff": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/liftoff/-/liftoff-2.3.0.tgz", @@ -4213,10 +6986,28 @@ "strip-bom": "2.0.0" } }, + "locate-path": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", + "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", + "dev": true, + "requires": { + "p-locate": "2.0.0", + "path-exists": "3.0.0" + }, + "dependencies": { + "path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", + "dev": true + } + } + }, "lodash": { - "version": "4.17.4", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", - "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=", + "version": "4.17.5", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.5.tgz", + "integrity": "sha512-svL3uiZf1RwhH+cWrfZn3A4+U58wbP0tGVTLQPbjplZxZ8ROD9VLuNgsRniTlLe7OlSqR79RUehXgpBW/s0IQw==", "dev": true }, "lodash._basecopy": { @@ -4361,44 +7152,216 @@ } }, "log4js": { - "version": "0.6.38", - "resolved": "https://registry.npmjs.org/log4js/-/log4js-0.6.38.tgz", - "integrity": "sha1-LElBFmldb7JUgJQ9P8hy5mKlIv0=", + "version": "2.5.3", + "resolved": "https://registry.npmjs.org/log4js/-/log4js-2.5.3.tgz", + "integrity": "sha512-YL/qpTxYtK0iWWbuKCrevDZz5lh+OjyHHD+mICqpjnYGKdNRBvPeh/1uYjkKUemT1CSO4wwLOwphWMpKAnD9kw==", "dev": true, "requires": { - "readable-stream": "1.0.34", - "semver": "4.3.6" + "amqplib": "0.5.2", + "axios": "0.15.3", + "circular-json": "0.5.1", + "date-format": "1.2.0", + "debug": "3.1.0", + "hipchat-notifier": "1.1.0", + "loggly": "1.1.1", + "mailgun-js": "0.7.15", + "nodemailer": "2.7.2", + "redis": "2.8.0", + "semver": "5.5.0", + "slack-node": "0.2.0", + "streamroller": "0.7.0" }, "dependencies": { - "isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", + "date-format": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/date-format/-/date-format-1.2.0.tgz", + "integrity": "sha1-YV6CjiM90aubua4JUODOzPpuytg=", "dev": true }, - "readable-stream": { - "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", - "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", + "debug": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", "dev": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "0.0.1", - "string_decoder": "0.10.31" + "ms": "2.0.0" } }, - "semver": { - "version": "4.3.6", - "resolved": "https://registry.npmjs.org/semver/-/semver-4.3.6.tgz", - "integrity": "sha1-MAvG4OhjdPe6YQaLWx7NV/xlMto=", + "streamroller": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/streamroller/-/streamroller-0.7.0.tgz", + "integrity": "sha512-WREzfy0r0zUqp3lGO096wRuUp7ho1X6uo/7DJfTlEi0Iv/4gT7YHqXDjKC2ioVGBZtE8QzsQD9nx1nIuoZ57jQ==", + "dev": true, + "requires": { + "date-format": "1.2.0", + "debug": "3.1.0", + "mkdirp": "0.5.1", + "readable-stream": "2.3.3" + } + } + } + }, + "loggly": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/loggly/-/loggly-1.1.1.tgz", + "integrity": "sha1-Cg/B0/o6XsRP3HuJe+uipGlc6+4=", + "dev": true, + "optional": true, + "requires": { + "json-stringify-safe": "5.0.1", + "request": "2.75.0", + "timespan": "2.3.0" + }, + "dependencies": { + "assert-plus": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-0.2.0.tgz", + "integrity": "sha1-104bh+ev/A24qttwIfP+SBAasjQ=", + "dev": true, + "optional": true + }, + "aws-sign2": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.6.0.tgz", + "integrity": "sha1-FDQt0428yU0OW4fXY81jYSwOeU8=", + "dev": true, + "optional": true + }, + "boom": { + "version": "2.10.1", + "resolved": "https://registry.npmjs.org/boom/-/boom-2.10.1.tgz", + "integrity": "sha1-OciRjO/1eZ+D+UkqhI9iWt0Mdm8=", + "dev": true, + "requires": { + "hoek": "2.16.3" + } + }, + "caseless": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.11.0.tgz", + "integrity": "sha1-cVuW6phBWTzDMGeSP17GDr2k99c=", + "dev": true, + "optional": true + }, + "cryptiles": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-2.0.5.tgz", + "integrity": "sha1-O9/s3GCBR8HGcgL6KR59ylnqo7g=", + "dev": true, + "optional": true, + "requires": { + "boom": "2.10.1" + } + }, + "form-data": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.0.0.tgz", + "integrity": "sha1-bwrrrcxdoWwT4ezBETfYX5uIOyU=", + "dev": true, + "optional": true, + "requires": { + "asynckit": "0.4.0", + "combined-stream": "1.0.5", + "mime-types": "2.1.17" + } + }, + "har-validator": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-2.0.6.tgz", + "integrity": "sha1-zcvAgYgmWtEZtqWnyKtw7s+10n0=", + "dev": true, + "optional": true, + "requires": { + "chalk": "1.1.3", + "commander": "2.15.0", + "is-my-json-valid": "2.17.2", + "pinkie-promise": "2.0.1" + } + }, + "hawk": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/hawk/-/hawk-3.1.3.tgz", + "integrity": "sha1-B4REvXwWQLD+VA0sm3PVlnjo4cQ=", + "dev": true, + "optional": true, + "requires": { + "boom": "2.10.1", + "cryptiles": "2.0.5", + "hoek": "2.16.3", + "sntp": "1.0.9" + } + }, + "hoek": { + "version": "2.16.3", + "resolved": "https://registry.npmjs.org/hoek/-/hoek-2.16.3.tgz", + "integrity": "sha1-ILt0A9POo5jpHcRxCo/xuCdKJe0=", "dev": true }, - "string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", - "dev": true + "http-signature": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.1.1.tgz", + "integrity": "sha1-33LiZwZs0Kxn+3at+OE0qPvPkb8=", + "dev": true, + "optional": true, + "requires": { + "assert-plus": "0.2.0", + "jsprim": "1.4.1", + "sshpk": "1.13.1" + } + }, + "qs": { + "version": "6.2.3", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.2.3.tgz", + "integrity": "sha1-HPyyXBCpsrSDBT/zn138kjOQjP4=", + "dev": true, + "optional": true + }, + "request": { + "version": "2.75.0", + "resolved": "https://registry.npmjs.org/request/-/request-2.75.0.tgz", + "integrity": "sha1-0rgmiihtoT6qXQGt9dGMyQ9lfZM=", + "dev": true, + "optional": true, + "requires": { + "aws-sign2": "0.6.0", + "aws4": "1.6.0", + "bl": "1.1.2", + "caseless": "0.11.0", + "combined-stream": "1.0.5", + "extend": "3.0.1", + "forever-agent": "0.6.1", + "form-data": "2.0.0", + "har-validator": "2.0.6", + "hawk": "3.1.3", + "http-signature": "1.1.1", + "is-typedarray": "1.0.0", + "isstream": "0.1.2", + "json-stringify-safe": "5.0.1", + "mime-types": "2.1.17", + "node-uuid": "1.4.8", + "oauth-sign": "0.8.2", + "qs": "6.2.3", + "stringstream": "0.0.5", + "tough-cookie": "2.3.3", + "tunnel-agent": "0.4.3" + } + }, + "sntp": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/sntp/-/sntp-1.0.9.tgz", + "integrity": "sha1-ZUEYTMkK7qbG57NeJlkIJEPGYZg=", + "dev": true, + "optional": true, + "requires": { + "hoek": "2.16.3" + } + }, + "tunnel-agent": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.4.3.tgz", + "integrity": "sha1-Y3PbdpCf5XDgjXNYM2Xtgop07us=", + "dev": true, + "optional": true } } }, @@ -4453,14 +7416,91 @@ } }, "magic-string": { - "version": "0.19.1", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.19.1.tgz", - "integrity": "sha1-FNdoATyvLsj96hakmvgvw3fnUgE=", + "version": "0.22.5", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.22.5.tgz", + "integrity": "sha512-oreip9rJZkzvA8Qzk9HFs8fZGF/u7H/gtrE8EN6RjKJ9kh2HlC+yQ2QezifqTZfGyiuAV0dRv5a+y/8gBb1m9w==", "dev": true, "requires": { "vlq": "0.2.3" } }, + "mailcomposer": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/mailcomposer/-/mailcomposer-4.0.1.tgz", + "integrity": "sha1-DhxEsqB890DuF9wUm6AJ8Zyt/rQ=", + "dev": true, + "optional": true, + "requires": { + "buildmail": "4.0.1", + "libmime": "3.0.0" + } + }, + "mailgun-js": { + "version": "0.7.15", + "resolved": "https://registry.npmjs.org/mailgun-js/-/mailgun-js-0.7.15.tgz", + "integrity": "sha1-7jZqINrGTDwVwD1sGz4O15UlKrs=", + "dev": true, + "optional": true, + "requires": { + "async": "2.1.5", + "debug": "2.2.0", + "form-data": "2.1.4", + "inflection": "1.10.0", + "is-stream": "1.1.0", + "path-proxy": "1.0.0", + "proxy-agent": "2.0.0", + "q": "1.4.1", + "tsscmp": "1.0.5" + }, + "dependencies": { + "async": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/async/-/async-2.1.5.tgz", + "integrity": "sha1-5YfGhYCZSsZ/xW/4bTrFa9voELw=", + "dev": true, + "optional": true, + "requires": { + "lodash": "4.17.5" + } + }, + "debug": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", + "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", + "dev": true, + "optional": true, + "requires": { + "ms": "0.7.1" + } + }, + "form-data": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.1.4.tgz", + "integrity": "sha1-M8GDrPGTJ27KqYFDpp6Uv+4XUNE=", + "dev": true, + "optional": true, + "requires": { + "asynckit": "0.4.0", + "combined-stream": "1.0.5", + "mime-types": "2.1.17" + } + }, + "ms": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", + "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", + "dev": true, + "optional": true + }, + "q": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/q/-/q-1.4.1.tgz", + "integrity": "sha1-VXBbzZPF82c1MMLCy8DCs63cKG4=", + "dev": true, + "optional": true + } + } + }, "map-cache": { "version": "0.2.2", "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", @@ -4474,9 +7514,9 @@ "dev": true }, "map-stream": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/map-stream/-/map-stream-0.1.0.tgz", - "integrity": "sha1-5WqpTEyAVaFkBKBnS3jyFffI4ZQ=", + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/map-stream/-/map-stream-0.0.7.tgz", + "integrity": "sha1-ih8HiW2CsQkmvTdEokIACfiJdKg=", "dev": true }, "marked": { @@ -4529,6 +7569,14 @@ "read-pkg-up": "1.0.1", "redent": "1.0.0", "trim-newlines": "1.0.0" + }, + "dependencies": { + "decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", + "dev": true + } } }, "micromatch": { @@ -4563,9 +7611,9 @@ } }, "mime": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.4.1.tgz", - "integrity": "sha512-KI1+qOZu5DcW6wayYHSzR/tXKCDC5Om4s1z2QJjDULzLcmf3DvzS7oluY4HCTrc+9FiKmWUgeNLg7W3uIQvxtQ==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", "dev": true }, "mime-db": { @@ -4610,6 +7658,16 @@ "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", "dev": true }, + "minimist-options": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-3.0.2.tgz", + "integrity": "sha512-FyBrT/d0d4+uiZRbqznPXqw3IpZZG3gl3wKWiX784FycUKVwBt0uLBFkQrtE4tZOrgo78nZp2jnKz3L65T5LdQ==", + "dev": true, + "requires": { + "arrify": "1.0.1", + "is-plain-obj": "1.1.0" + } + }, "mkdirp": { "version": "0.5.1", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", @@ -4642,6 +7700,73 @@ "integrity": "sha1-4rbN65zhn5kxelNyLz2/XfXqqrI=", "dev": true }, + "module-deps": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/module-deps/-/module-deps-4.1.1.tgz", + "integrity": "sha1-IyFYM/HaE/1gbMuAh7RIUty4If0=", + "dev": true, + "requires": { + "JSONStream": "1.3.1", + "browser-resolve": "1.11.2", + "cached-path-relative": "1.0.1", + "concat-stream": "1.5.2", + "defined": "1.0.0", + "detective": "4.7.1", + "duplexer2": "0.1.4", + "inherits": "2.0.3", + "parents": "1.0.1", + "readable-stream": "2.3.3", + "resolve": "1.5.0", + "stream-combiner2": "1.1.1", + "subarg": "1.0.0", + "through2": "2.0.3", + "xtend": "4.0.1" + }, + "dependencies": { + "concat-stream": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.5.2.tgz", + "integrity": "sha1-cIl4Yk2FavQaWnQd790mHadSwmY=", + "dev": true, + "requires": { + "inherits": "2.0.3", + "readable-stream": "2.0.6", + "typedarray": "0.0.6" + }, + "dependencies": { + "readable-stream": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.0.6.tgz", + "integrity": "sha1-j5A0HmilPMySh4jaz80Rs265t44=", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "1.0.7", + "string_decoder": "0.10.31", + "util-deprecate": "1.0.2" + } + } + } + }, + "duplexer2": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", + "integrity": "sha1-ixLauHjA1p4+eJEFFmKjL8a93ME=", + "dev": true, + "requires": { + "readable-stream": "2.3.3" + } + }, + "string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", + "dev": true + } + } + }, "ms": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", @@ -4657,6 +7782,13 @@ "duplexer2": "0.0.2" } }, + "nan": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.10.0.tgz", + "integrity": "sha512-bAdJv7fBLhWC+/Bls0Oza+mvTaNQtP+1RyhhhvD95pgUJz6XM5IzgmxOkItJ9tkoCiplvAnXI1tNmmUD/eScyA==", + "dev": true, + "optional": true + }, "natives": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/natives/-/natives-1.1.0.tgz", @@ -4669,6 +7801,13 @@ "integrity": "sha1-KzJxhOiZIQEXeyhWP7XnECrNDKk=", "dev": true }, + "netmask": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/netmask/-/netmask-1.0.6.tgz", + "integrity": "sha1-ICl+idhvb2QA8lDZ9Pa0wZRfzTU=", + "dev": true, + "optional": true + }, "no-case": { "version": "2.3.2", "resolved": "https://registry.npmjs.org/no-case/-/no-case-2.3.2.tgz", @@ -4684,12 +7823,111 @@ "integrity": "sha1-iXNhjXJ9pVJqgwtH0HwNgD4KFcY=", "dev": true }, + "node-uuid": { + "version": "1.4.8", + "resolved": "https://registry.npmjs.org/node-uuid/-/node-uuid-1.4.8.tgz", + "integrity": "sha1-sEDrCSOWivq/jTL7HxfxFn/auQc=", + "dev": true, + "optional": true + }, "node-version": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/node-version/-/node-version-1.1.0.tgz", "integrity": "sha512-t1V2RFiaTavaW3jtQO0A2nok6k7/Gghuvx2rjvICuT0B0dYaObBQ4U0xHL+ZTPFZodt1LMYG2Vi2nypfz4/AJg==", "dev": true }, + "nodemailer": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-2.7.2.tgz", + "integrity": "sha1-8kLmSa7q45tsftdA73sGHEBNMPk=", + "dev": true, + "optional": true, + "requires": { + "libmime": "3.0.0", + "mailcomposer": "4.0.1", + "nodemailer-direct-transport": "3.3.2", + "nodemailer-shared": "1.1.0", + "nodemailer-smtp-pool": "2.8.2", + "nodemailer-smtp-transport": "2.7.2", + "socks": "1.1.9" + }, + "dependencies": { + "ip": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.5.tgz", + "integrity": "sha1-vd7XARQpCCjAoDnnLvJfWq7ENUo=", + "dev": true, + "optional": true + }, + "socks": { + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/socks/-/socks-1.1.9.tgz", + "integrity": "sha1-Yo1+TQSRJDVEWsC25Fk3bLPm1pE=", + "dev": true, + "optional": true, + "requires": { + "ip": "1.1.5", + "smart-buffer": "1.1.15" + } + } + } + }, + "nodemailer-direct-transport": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/nodemailer-direct-transport/-/nodemailer-direct-transport-3.3.2.tgz", + "integrity": "sha1-6W+vuQNYVglH5WkBfZfmBzilCoY=", + "dev": true, + "optional": true, + "requires": { + "nodemailer-shared": "1.1.0", + "smtp-connection": "2.12.0" + } + }, + "nodemailer-fetch": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/nodemailer-fetch/-/nodemailer-fetch-1.6.0.tgz", + "integrity": "sha1-ecSQihwPXzdbc/6IjamCj23JY6Q=", + "dev": true + }, + "nodemailer-shared": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/nodemailer-shared/-/nodemailer-shared-1.1.0.tgz", + "integrity": "sha1-z1mU4v0mjQD1zw+nZ6CBae2wfsA=", + "dev": true, + "requires": { + "nodemailer-fetch": "1.6.0" + } + }, + "nodemailer-smtp-pool": { + "version": "2.8.2", + "resolved": "https://registry.npmjs.org/nodemailer-smtp-pool/-/nodemailer-smtp-pool-2.8.2.tgz", + "integrity": "sha1-LrlNbPhXgLG0clzoU7nL1ejajHI=", + "dev": true, + "optional": true, + "requires": { + "nodemailer-shared": "1.1.0", + "nodemailer-wellknown": "0.1.10", + "smtp-connection": "2.12.0" + } + }, + "nodemailer-smtp-transport": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/nodemailer-smtp-transport/-/nodemailer-smtp-transport-2.7.2.tgz", + "integrity": "sha1-A9ccdjFPFKx9vHvwM6am0W1n+3c=", + "dev": true, + "optional": true, + "requires": { + "nodemailer-shared": "1.1.0", + "nodemailer-wellknown": "0.1.10", + "smtp-connection": "2.12.0" + } + }, + "nodemailer-wellknown": { + "version": "0.1.10", + "resolved": "https://registry.npmjs.org/nodemailer-wellknown/-/nodemailer-wellknown-0.1.10.tgz", + "integrity": "sha1-WG24EB2zDLRDjrVGc3pBqtDPE9U=", + "dev": true + }, "nopt": { "version": "3.0.6", "resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz", @@ -4707,7 +7945,7 @@ "requires": { "hosted-git-info": "2.5.0", "is-builtin-module": "1.0.0", - "semver": "5.3.0", + "semver": "5.5.0", "validate-npm-package-license": "3.0.1" } }, @@ -4767,6 +8005,14 @@ "string-width": "1.0.2", "window-size": "0.1.4", "y18n": "3.2.1" + }, + "dependencies": { + "decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", + "dev": true + } } } } @@ -4909,12 +8155,6 @@ } } }, - "options": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/options/-/options-0.0.6.tgz", - "integrity": "sha1-7CLTEoBrtT5zF3Pnza788cZDEo8=", - "dev": true - }, "orchestrator": { "version": "0.3.8", "resolved": "https://registry.npmjs.org/orchestrator/-/orchestrator-0.3.8.tgz", @@ -4959,23 +8199,78 @@ "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", "dev": true }, - "pad": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/pad/-/pad-1.2.1.tgz", - "integrity": "sha512-cx/l/K+9UjGXJmoYolvP0l3cEUyB9BUdUL3wj3uwskIiApboLsinvsXxU9nSNg9Luz2ZyH0zzJNbqgLSNtfIDw==", + "p-limit": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.2.0.tgz", + "integrity": "sha512-Y/OtIaXtUPr4/YpMv1pCL5L5ed0rumAaAeBSj12F+bSlMdys7i8oQF/GUJmfpTS/QoaRrS/k6pma29haJpsMng==", "dev": true, "requires": { - "coffee-script": "1.12.7", - "wcwidth": "1.0.1" + "p-try": "1.0.0" } }, - "pad-right": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/pad-right/-/pad-right-0.2.2.tgz", - "integrity": "sha1-b7ySQEXSRPKiokRQMGDTv8YAl3Q=", + "p-locate": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", + "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", "dev": true, "requires": { - "repeat-string": "1.6.1" + "p-limit": "1.2.0" + } + }, + "p-try": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", + "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", + "dev": true + }, + "pac-proxy-agent": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-1.1.0.tgz", + "integrity": "sha512-QBELCWyLYPgE2Gj+4wUEiMscHrQ8nRPBzYItQNOHWavwBt25ohZHQC4qnd5IszdVVrFbLsQ+dPkm6eqdjJAmwQ==", + "dev": true, + "optional": true, + "requires": { + "agent-base": "2.1.1", + "debug": "2.6.9", + "extend": "3.0.1", + "get-uri": "2.0.1", + "http-proxy-agent": "1.0.0", + "https-proxy-agent": "1.0.0", + "pac-resolver": "2.0.0", + "raw-body": "2.3.2", + "socks-proxy-agent": "2.1.1" + } + }, + "pac-resolver": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/pac-resolver/-/pac-resolver-2.0.0.tgz", + "integrity": "sha1-mbiNLxk/ve78HJpSnB8yYKtSd80=", + "dev": true, + "optional": true, + "requires": { + "co": "3.0.6", + "degenerator": "1.0.4", + "ip": "1.0.1", + "netmask": "1.0.6", + "thunkify": "2.1.2" + }, + "dependencies": { + "co": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/co/-/co-3.0.6.tgz", + "integrity": "sha1-FEXyJsXrlWE45oyawwFn6n0ua9o=", + "dev": true, + "optional": true + } + } + }, + "pad": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/pad/-/pad-2.0.3.tgz", + "integrity": "sha512-YVlBmpDQilhUl69RY/0Ku9Il0sNPLgVOVePhCJUfN8qDZKrq1zIY+ZwtCLtaWFtJzuJswwAcZHxf4a5RliV2pQ==", + "dev": true, + "requires": { + "wcwidth": "1.0.1" } }, "pako": { @@ -4993,13 +8288,22 @@ "no-case": "2.3.2" } }, + "parents": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parents/-/parents-1.0.1.tgz", + "integrity": "sha1-/t1NK/GTp3dF/nHjcdc8MwfZx1E=", + "dev": true, + "requires": { + "path-platform": "0.11.15" + } + }, "parse-asn1": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.0.tgz", "integrity": "sha1-N8T5t+06tlx0gXtfJICTf7+XxxI=", "dev": true, "requires": { - "asn1.js": "4.9.2", + "asn1.js": "4.10.1", "browserify-aes": "1.1.1", "create-hash": "1.1.3", "evp_bytestokey": "1.0.3", @@ -5050,15 +8354,6 @@ "integrity": "sha1-bVuTSkVpk7I9N/QKOC1vFmao5cY=", "dev": true }, - "parsejson": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/parsejson/-/parsejson-0.0.3.tgz", - "integrity": "sha1-q343WfIJ7OmUN5c/fQ8fZK4OZKs=", - "dev": true, - "requires": { - "better-assert": "1.0.2" - } - }, "parseqs": { "version": "0.0.5", "resolved": "https://registry.npmjs.org/parseqs/-/parseqs-0.0.5.tgz", @@ -5129,6 +8424,31 @@ "integrity": "sha1-PBrfhx6pzWyUMbbqK9dKD/BVxME=", "dev": true }, + "path-platform": { + "version": "0.11.15", + "resolved": "https://registry.npmjs.org/path-platform/-/path-platform-0.11.15.tgz", + "integrity": "sha1-6GQhf3TDaFDwhSt43Hv31KVyG/I=", + "dev": true + }, + "path-proxy": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/path-proxy/-/path-proxy-1.0.0.tgz", + "integrity": "sha1-GOijaFn8nS8aU7SN7hOFQ8Ag3l4=", + "dev": true, + "optional": true, + "requires": { + "inflection": "1.3.8" + }, + "dependencies": { + "inflection": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/inflection/-/inflection-1.3.8.tgz", + "integrity": "sha1-y9Fg2p91sUw8xjV41POWeEvzAU4=", + "dev": true, + "optional": true + } + } + }, "path-root": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/path-root/-/path-root-0.1.1.tgz", @@ -5165,7 +8485,7 @@ "create-hmac": "1.1.6", "ripemd160": "2.0.1", "safe-buffer": "5.1.1", - "sha.js": "2.4.9" + "sha.js": "2.4.10" } }, "pend": { @@ -5231,6 +8551,37 @@ "pinkie": "2.0.4" } }, + "plugin-error": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/plugin-error/-/plugin-error-0.1.2.tgz", + "integrity": "sha1-O5uzM1zPAPQl4HQ34ZJ2ln2kes4=", + "dev": true, + "requires": { + "ansi-cyan": "0.1.1", + "ansi-red": "0.1.1", + "arr-diff": "1.1.0", + "arr-union": "2.1.0", + "extend-shallow": "1.1.4" + }, + "dependencies": { + "arr-diff": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-1.1.0.tgz", + "integrity": "sha1-aHwydYFjWI/vfeezb6vklesaOZo=", + "dev": true, + "requires": { + "arr-flatten": "1.1.0", + "array-slice": "0.2.3" + } + }, + "array-slice": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/array-slice/-/array-slice-0.2.3.tgz", + "integrity": "sha1-3Tz7gO15c6dRF82sabC5nshhhvU=", + "dev": true + } + } + }, "prelude-ls": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", @@ -5279,6 +8630,32 @@ "integrity": "sha1-2chtPcTcLfkBboiUbe/Wm0m0EWI=", "dev": true }, + "proxy-agent": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/proxy-agent/-/proxy-agent-2.0.0.tgz", + "integrity": "sha1-V+tTR6qAXXTsaByyVknbo5yTNJk=", + "dev": true, + "optional": true, + "requires": { + "agent-base": "2.1.1", + "debug": "2.6.9", + "extend": "3.0.1", + "http-proxy-agent": "1.0.0", + "https-proxy-agent": "1.0.0", + "lru-cache": "2.6.5", + "pac-proxy-agent": "1.1.0", + "socks-proxy-agent": "2.1.1" + }, + "dependencies": { + "lru-cache": { + "version": "2.6.5", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-2.6.5.tgz", + "integrity": "sha1-5W1jVBSO3o13B7WNFDIg/QjfD9U=", + "dev": true, + "optional": true + } + } + }, "pseudomap": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", @@ -5295,7 +8672,7 @@ "browserify-rsa": "4.0.1", "create-hash": "1.1.3", "parse-asn1": "5.1.0", - "randombytes": "2.0.5" + "randombytes": "2.0.6" } }, "punycode": { @@ -5305,15 +8682,15 @@ "dev": true }, "q": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/q/-/q-1.5.0.tgz", - "integrity": "sha1-3QG6ydBtMObyGa7LglPunr3DCPE=", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", + "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=", "dev": true }, "qjobs": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/qjobs/-/qjobs-1.1.5.tgz", - "integrity": "sha1-ZZ3p8s+NzCehSBJ28gU3cnI4LnM=", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/qjobs/-/qjobs-1.2.0.tgz", + "integrity": "sha512-8YOJEHtxpySA3fFDyCRxA+UUV+fA+rTWnuWvylOK/NCjhY+b4ocCtmu8TtsWb+mYeU+GCHf/S66KZF/AsteKHg==", "dev": true }, "qs": { @@ -5335,14 +8712,20 @@ "dev": true }, "queue": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/queue/-/queue-4.2.1.tgz", - "integrity": "sha1-UxjtiiJ6lzTmv+6ySgV3gpInUds=", + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/queue/-/queue-4.4.2.tgz", + "integrity": "sha512-fSMRXbwhMwipcDZ08enW2vl+YDmAmhcNcr43sCJL8DIg+CFOsoRLG23ctxA+fwNk1w55SePSiS7oqQQSgQoVJQ==", "dev": true, "requires": { "inherits": "2.0.3" } }, + "quick-lru": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-1.1.0.tgz", + "integrity": "sha1-Q2CxfGETatOAeDl/8RQW4Ybc+7g=", + "dev": true + }, "randomatic": { "version": "1.1.7", "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-1.1.7.tgz", @@ -5385,21 +8768,21 @@ } }, "randombytes": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.0.5.tgz", - "integrity": "sha512-8T7Zn1AhMsQ/HI1SjcCfT/t4ii3eAqco3yOcSzS4mozsOz69lHLsoMXmF9nZgnFanYscnSlUSgs8uZyKzpE6kg==", + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.0.6.tgz", + "integrity": "sha512-CIQ5OFxf4Jou6uOKe9t1AOgqpeU5fd70A8NPdHSGeYXqXsPe6peOwI0cUl88RWZ6sP1vPMV3avd/R6cZ5/sP1A==", "dev": true, "requires": { "safe-buffer": "5.1.1" } }, "randomfill": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/randomfill/-/randomfill-1.0.3.tgz", - "integrity": "sha512-YL6GrhrWoic0Eq8rXVbMptH7dAxCs0J+mh5Y0euNekPPYaxEmdVGim6GdoxoRzKW2yJoU8tueifS7mYxvcFDEQ==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/randomfill/-/randomfill-1.0.4.tgz", + "integrity": "sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw==", "dev": true, "requires": { - "randombytes": "2.0.5", + "randombytes": "2.0.6", "safe-buffer": "5.1.1" } }, @@ -5421,6 +8804,15 @@ "unpipe": "1.0.0" } }, + "read-only-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/read-only-stream/-/read-only-stream-2.0.0.tgz", + "integrity": "sha1-JyT9aoET1zdkrCiNQ4YnDB2/F/A=", + "dev": true, + "requires": { + "readable-stream": "2.3.3" + } + }, "read-pkg": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz", @@ -5488,10 +8880,36 @@ "strip-indent": "1.0.1" } }, + "redis": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/redis/-/redis-2.8.0.tgz", + "integrity": "sha512-M1OkonEQwtRmZv4tEWF2VgpG0JWJ8Fv1PhlgT5+B+uNq2cA3Rt1Yt/ryoR+vQNOQcIEgdCdfH0jr3bDpihAw1A==", + "dev": true, + "optional": true, + "requires": { + "double-ended-queue": "2.1.0-0", + "redis-commands": "1.3.5", + "redis-parser": "2.6.0" + } + }, + "redis-commands": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/redis-commands/-/redis-commands-1.3.5.tgz", + "integrity": "sha512-foGF8u6MXGFF++1TZVC6icGXuMYPftKXt1FBT2vrfU9ZATNtZJ8duRC5d1lEfE8hyVe3jhelHGB91oB7I6qLsA==", + "dev": true, + "optional": true + }, + "redis-parser": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/redis-parser/-/redis-parser-2.6.0.tgz", + "integrity": "sha1-Uu0J2srBCPGmMcB+m2mUHnoZUEs=", + "dev": true, + "optional": true + }, "reflect-metadata": { - "version": "0.1.10", - "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.10.tgz", - "integrity": "sha1-tPg3BEFqytiZiMmxVjXUfgO5NEo=", + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.12.tgz", + "integrity": "sha512-n+IyV+nGz3+0q3/Yf1ra12KpCyi001bi4XFxSjbiWWjfqb52iTTtpGXmCCAOWWIAn9KEuFZKGqBERHmrtScZ3A==", "dev": true }, "regenerate": { @@ -5501,9 +8919,9 @@ "dev": true }, "regenerator-runtime": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.0.tgz", - "integrity": "sha512-/aA0kLeRb5N9K0d4fw7ooEbI+xDe+DKD499EQqygGqeS8N3xto15p09uY2xj7ixP81sNPXvRLnAQIqdVStgb1A==", + "version": "0.11.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", + "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", "dev": true }, "regenerator-transform": { @@ -5561,77 +8979,19 @@ } }, "remap-istanbul": { - "version": "0.8.4", - "resolved": "https://registry.npmjs.org/remap-istanbul/-/remap-istanbul-0.8.4.tgz", - "integrity": "sha1-tL/f28kO+mNemiix9KEW4iyMJpc=", + "version": "0.10.1", + "resolved": "https://registry.npmjs.org/remap-istanbul/-/remap-istanbul-0.10.1.tgz", + "integrity": "sha512-gsNQXs5kJLhErICSyYhzVZ++C8LBW8dgwr874Y2QvzAUS75zBlD/juZgXs39nbYJ09fZDlX2AVLVJAY2jbFJoQ==", "dev": true, "requires": { "amdefine": "1.0.1", - "gulp-util": "3.0.7", "istanbul": "0.4.5", - "source-map": "0.5.7", + "minimatch": "3.0.4", + "plugin-error": "0.1.2", + "source-map": "0.6.1", "through2": "2.0.1" }, "dependencies": { - "gulp-util": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/gulp-util/-/gulp-util-3.0.7.tgz", - "integrity": "sha1-eJJcS4+LSQBawBoBHFV+YhiUHLs=", - "dev": true, - "requires": { - "array-differ": "1.0.0", - "array-uniq": "1.0.3", - "beeper": "1.1.1", - "chalk": "1.1.3", - "dateformat": "1.0.12", - "fancy-log": "1.3.0", - "gulplog": "1.0.0", - "has-gulplog": "0.1.0", - "lodash._reescape": "3.0.0", - "lodash._reevaluate": "3.0.0", - "lodash._reinterpolate": "3.0.0", - "lodash.template": "3.6.2", - "minimist": "1.2.0", - "multipipe": "0.1.2", - "object-assign": "3.0.0", - "replace-ext": "0.0.1", - "through2": "2.0.1", - "vinyl": "0.5.3" - } - }, - "lodash.template": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/lodash.template/-/lodash.template-3.6.2.tgz", - "integrity": "sha1-+M3sxhaaJVvpCYrosMU9N4kx0U8=", - "dev": true, - "requires": { - "lodash._basecopy": "3.0.1", - "lodash._basetostring": "3.0.1", - "lodash._basevalues": "3.0.0", - "lodash._isiterateecall": "3.0.9", - "lodash._reinterpolate": "3.0.0", - "lodash.escape": "3.2.0", - "lodash.keys": "3.1.2", - "lodash.restparam": "3.6.1", - "lodash.templatesettings": "3.1.1" - } - }, - "lodash.templatesettings": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-3.1.1.tgz", - "integrity": "sha1-+zB4RHU7Zrnxr6VOJix0UwfbqOU=", - "dev": true, - "requires": { - "lodash._reinterpolate": "3.0.0", - "lodash.escape": "3.2.0" - } - }, - "object-assign": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-3.0.0.tgz", - "integrity": "sha1-m+3VygiXlJvKR+f/QIBi1Un1h/I=", - "dev": true - }, "readable-stream": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.0.6.tgz", @@ -5646,6 +9006,12 @@ "util-deprecate": "1.0.2" } }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + }, "string_decoder": { "version": "0.10.31", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", @@ -5755,6 +9121,19 @@ "throttleit": "1.0.0" } }, + "requestretry": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/requestretry/-/requestretry-1.13.0.tgz", + "integrity": "sha512-Lmh9qMvnQXADGAQxsXHP4rbgO6pffCfuR8XUBdP9aitJcLQJxhp7YZK4xAVYXnPJ5E52mwrfiKQtKonPL8xsmg==", + "dev": true, + "optional": true, + "requires": { + "extend": "3.0.1", + "lodash": "4.17.5", + "request": "2.83.0", + "when": "3.7.8" + } + }, "requires-port": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", @@ -5797,9 +9176,9 @@ "dev": true }, "rimraf": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.1.tgz", - "integrity": "sha1-wjOOxkPfeht/5cVPqG9XQopV8z0=", + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz", + "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==", "dev": true, "requires": { "glob": "7.1.2" @@ -5816,12 +9195,12 @@ } }, "rxjs": { - "version": "5.5.2", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-5.5.2.tgz", - "integrity": "sha512-oRYoIKWBU3Ic37fLA5VJu31VqQO4bWubRntcHSJ+cwaDQBwdnZ9x4zmhJfm/nFQ2E82/I4loSioHnACamrKGgA==", + "version": "5.5.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-5.5.7.tgz", + "integrity": "sha512-Hxo2ac8gRQjwjtKgukMIwBRbq5+KAeEV5hXM4obYBOAghev41bDQWgFH4svYiU9UnQ5kNww2LgfyBdevCd2HXA==", "dev": true, "requires": { - "symbol-observable": "1.0.4" + "symbol-observable": "1.0.1" } }, "safe-buffer": { @@ -5831,9 +9210,9 @@ "dev": true }, "semver": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.3.0.tgz", - "integrity": "sha1-myzl094C0XxgEq0yaqa00M9U+U8=", + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz", + "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==", "dev": true }, "sentence-case": { @@ -5871,15 +9250,37 @@ "dev": true }, "sha.js": { - "version": "2.4.9", - "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.9.tgz", - "integrity": "sha512-G8zektVqbiPHrylgew9Zg1VRB1L/DtXNUVAM6q4QLy8NE3qtHlFXTf8VLL4k1Yl6c7NMjtZUTdXV+X44nFaT6A==", + "version": "2.4.10", + "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.10.tgz", + "integrity": "sha512-vnwmrFDlOExK4Nm16J2KMWHLrp14lBrjxMxBJpu++EnsuBmpiYaM/MEs46Vxxm/4FvdP5yTwuCTO9it5FSjrqA==", "dev": true, "requires": { "inherits": "2.0.3", "safe-buffer": "5.1.1" } }, + "shasum": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/shasum/-/shasum-1.0.2.tgz", + "integrity": "sha1-5wEjENj0F/TetXEhUOVni4euVl8=", + "dev": true, + "requires": { + "json-stable-stringify": "0.0.1", + "sha.js": "2.4.10" + } + }, + "shell-quote": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.6.1.tgz", + "integrity": "sha1-9HgZSczkAmlxJ0MOo7PFR29IF2c=", + "dev": true, + "requires": { + "array-filter": "0.0.1", + "array-map": "0.0.0", + "array-reduce": "0.0.0", + "jsonify": "0.0.0" + } + }, "shelljs": { "version": "0.7.8", "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.7.8.tgz", @@ -5903,12 +9304,38 @@ "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", "dev": true }, + "slack-node": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/slack-node/-/slack-node-0.2.0.tgz", + "integrity": "sha1-3kuN3aqLeT9h29KTgQT9q/N9+jA=", + "dev": true, + "optional": true, + "requires": { + "requestretry": "1.13.0" + } + }, "slash": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-1.0.0.tgz", "integrity": "sha1-xB8vbDn8FtHNF61LXYlhFK5HDVU=", "dev": true }, + "smart-buffer": { + "version": "1.1.15", + "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-1.1.15.tgz", + "integrity": "sha1-fxFLW2X6s+KjWqd1uxLw0cZJvxY=", + "dev": true + }, + "smtp-connection": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/smtp-connection/-/smtp-connection-2.12.0.tgz", + "integrity": "sha1-1275EnyyPCJZ7bHoNJwujV4tdME=", + "dev": true, + "requires": { + "httpntlm": "1.6.1", + "nodemailer-shared": "1.1.0" + } + }, "snake-case": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/snake-case/-/snake-case-2.1.0.tgz", @@ -5928,147 +9355,103 @@ } }, "socket.io": { - "version": "1.7.3", - "resolved": "https://registry.npmjs.org/socket.io/-/socket.io-1.7.3.tgz", - "integrity": "sha1-uK+cq6AJSeVo42nxMn6pvp6iRhs=", + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/socket.io/-/socket.io-2.0.4.tgz", + "integrity": "sha1-waRZDO/4fs8TxyZS8Eb3FrKeYBQ=", "dev": true, "requires": { - "debug": "2.3.3", - "engine.io": "1.8.3", - "has-binary": "0.1.7", - "object-assign": "4.1.0", - "socket.io-adapter": "0.5.0", - "socket.io-client": "1.7.3", - "socket.io-parser": "2.3.1" - }, - "dependencies": { - "debug": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.3.3.tgz", - "integrity": "sha1-QMRT5n5uE8kB3ewxeviYbNqe/4w=", - "dev": true, - "requires": { - "ms": "0.7.2" - } - }, - "ms": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.2.tgz", - "integrity": "sha1-riXPJRKziFodldfwN4aNhDESR2U=", - "dev": true - }, - "object-assign": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.0.tgz", - "integrity": "sha1-ejs9DpgGPUP0wD8uiubNUahog6A=", - "dev": true - } + "debug": "2.6.9", + "engine.io": "3.1.5", + "socket.io-adapter": "1.1.1", + "socket.io-client": "2.0.4", + "socket.io-parser": "3.1.3" } }, "socket.io-adapter": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/socket.io-adapter/-/socket.io-adapter-0.5.0.tgz", - "integrity": "sha1-y21LuL7IHhB4uZZ3+c7QBGBmu4s=", - "dev": true, - "requires": { - "debug": "2.3.3", - "socket.io-parser": "2.3.1" - }, - "dependencies": { - "debug": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.3.3.tgz", - "integrity": "sha1-QMRT5n5uE8kB3ewxeviYbNqe/4w=", - "dev": true, - "requires": { - "ms": "0.7.2" - } - }, - "ms": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.2.tgz", - "integrity": "sha1-riXPJRKziFodldfwN4aNhDESR2U=", - "dev": true - } - } + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/socket.io-adapter/-/socket.io-adapter-1.1.1.tgz", + "integrity": "sha1-KoBeihTWNyEk3ZFZrUUC+MsH8Gs=", + "dev": true }, "socket.io-client": { - "version": "1.7.3", - "resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-1.7.3.tgz", - "integrity": "sha1-sw6GqhDV7zVGYBwJzeR2Xjgdo3c=", + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-2.0.4.tgz", + "integrity": "sha1-CRilUkBtxeVAs4Dc2Xr8SmQzL44=", "dev": true, "requires": { "backo2": "1.0.2", + "base64-arraybuffer": "0.1.5", "component-bind": "1.0.0", "component-emitter": "1.2.1", - "debug": "2.3.3", - "engine.io-client": "1.8.3", - "has-binary": "0.1.7", + "debug": "2.6.9", + "engine.io-client": "3.1.6", + "has-cors": "1.1.0", "indexof": "0.0.1", "object-component": "0.0.3", + "parseqs": "0.0.5", "parseuri": "0.0.5", - "socket.io-parser": "2.3.1", + "socket.io-parser": "3.1.3", "to-array": "0.1.4" + } + }, + "socket.io-parser": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-3.1.3.tgz", + "integrity": "sha512-g0a2HPqLguqAczs3dMECuA1RgoGFPyvDqcbaDEdCWY9g59kdUAz3YRmaJBNKXflrHNwB7Q12Gkf/0CZXfdHR7g==", + "dev": true, + "requires": { + "component-emitter": "1.2.1", + "debug": "3.1.0", + "has-binary2": "1.0.2", + "isarray": "2.0.1" }, "dependencies": { - "component-emitter": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz", - "integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY=", - "dev": true - }, "debug": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.3.3.tgz", - "integrity": "sha1-QMRT5n5uE8kB3ewxeviYbNqe/4w=", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", "dev": true, "requires": { - "ms": "0.7.2" + "ms": "2.0.0" } }, - "ms": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.2.tgz", - "integrity": "sha1-riXPJRKziFodldfwN4aNhDESR2U=", + "isarray": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.1.tgz", + "integrity": "sha1-o32U7ZzaLVmGXJ92/llu4fM4dB4=", "dev": true } } }, - "socket.io-parser": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-2.3.1.tgz", - "integrity": "sha1-3VMgJRA85Clpcya+/WQAX8/ltKA=", + "socks": { + "version": "1.1.10", + "resolved": "https://registry.npmjs.org/socks/-/socks-1.1.10.tgz", + "integrity": "sha1-W4t/x8jzQcU+0FbpKbe/Tei6e1o=", "dev": true, "requires": { - "component-emitter": "1.1.2", - "debug": "2.2.0", - "isarray": "0.0.1", - "json3": "3.3.2" + "ip": "1.1.5", + "smart-buffer": "1.1.15" }, "dependencies": { - "debug": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", - "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", - "dev": true, - "requires": { - "ms": "0.7.1" - } - }, - "isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", - "dev": true - }, - "ms": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", - "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", + "ip": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.5.tgz", + "integrity": "sha1-vd7XARQpCCjAoDnnLvJfWq7ENUo=", "dev": true } } }, + "socks-proxy-agent": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-2.1.1.tgz", + "integrity": "sha512-sFtmYqdUK5dAMh85H0LEVFUCO7OhJJe1/z2x/Z6mxp3s7/QPf1RkZmpZy+BpuU0bEjcV9npqKjq9Y3kwFUjnxw==", + "dev": true, + "requires": { + "agent-base": "2.1.1", + "extend": "3.0.1", + "socks": "1.1.10" + } + }, "source-map": { "version": "0.5.7", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", @@ -6179,6 +9562,27 @@ "readable-stream": "2.3.3" } }, + "stream-combiner2": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/stream-combiner2/-/stream-combiner2-1.1.1.tgz", + "integrity": "sha1-+02KFCDqNidk4hrUeAOXvry0HL4=", + "dev": true, + "requires": { + "duplexer2": "0.1.4", + "readable-stream": "2.3.3" + }, + "dependencies": { + "duplexer2": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", + "integrity": "sha1-ixLauHjA1p4+eJEFFmKjL8a93ME=", + "dev": true, + "requires": { + "readable-stream": "2.3.3" + } + } + } + }, "stream-consume": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/stream-consume/-/stream-consume-0.1.0.tgz", @@ -6186,9 +9590,9 @@ "dev": true }, "stream-http": { - "version": "2.7.2", - "resolved": "https://registry.npmjs.org/stream-http/-/stream-http-2.7.2.tgz", - "integrity": "sha512-c0yTD2rbQzXtSsFSVhtpvY/vS6u066PcXOX9kBB3mSO76RiUQzL340uJkGBWnlBg4/HZzqiUXtaVA7wcRcJgEw==", + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/stream-http/-/stream-http-2.8.1.tgz", + "integrity": "sha512-cQ0jo17BLca2r0GfRdZKYAGLU6JRoIWxqSOakUMuKOT6MOK7AAlE856L33QuDmAy/eeOrhLee3dZKX0Uadu93A==", "dev": true, "requires": { "builtin-status-codes": "3.0.0", @@ -6198,6 +9602,16 @@ "xtend": "4.0.1" } }, + "stream-splicer": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/stream-splicer/-/stream-splicer-2.0.0.tgz", + "integrity": "sha1-G2O+Q4oTPktnHMGTUZdgAXWRDYM=", + "dev": true, + "requires": { + "inherits": "2.0.3", + "readable-stream": "2.3.3" + } + }, "streamroller": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/streamroller/-/streamroller-0.4.1.tgz", @@ -6301,6 +9715,15 @@ "get-stdin": "4.0.1" } }, + "subarg": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/subarg/-/subarg-1.0.0.tgz", + "integrity": "sha1-9izxdYHplrSPyWVpn1TAauJouNI=", + "dev": true, + "requires": { + "minimist": "1.2.0" + } + }, "supports-color": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", @@ -6318,11 +9741,20 @@ } }, "symbol-observable": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-1.0.4.tgz", - "integrity": "sha1-Kb9hXUqnEhvdiYsi1LP5vE4qoD0=", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-1.0.1.tgz", + "integrity": "sha1-g0D8RwLDEi310iKI+IKD9RPT/dQ=", "dev": true }, + "syntax-error": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/syntax-error/-/syntax-error-1.4.0.tgz", + "integrity": "sha512-YPPlu67mdnHGTup2A8ff7BC2Pjq0e0Yp/IyTFN03zWO0RcK07uLcbi7C2KpGR2FvWbaB0+bfE27a+sBKebSo7w==", + "dev": true, + "requires": { + "acorn-node": "1.3.0" + } + }, "tempfile": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/tempfile/-/tempfile-1.1.1.tgz", @@ -6367,6 +9799,13 @@ "xtend": "4.0.1" } }, + "thunkify": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/thunkify/-/thunkify-2.1.2.tgz", + "integrity": "sha1-+qDp0jDFGsyVyhOjYawFyn4EVT0=", + "dev": true, + "optional": true + }, "tildify": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/tildify/-/tildify-1.2.0.tgz", @@ -6383,14 +9822,21 @@ "dev": true }, "timers-browserify": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-2.0.4.tgz", - "integrity": "sha512-uZYhyU3EX8O7HQP+J9fTVYwsq90Vr68xPEFo7yrVImIxYvHgukBEgOB/SgGoorWVTzGM/3Z+wUNnboA4M8jWrg==", + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-2.0.6.tgz", + "integrity": "sha512-HQ3nbYRAowdVd0ckGFvmJPPCOH/CHleFN/Y0YQCX1DVaB7t+KFvisuyN09fuP8Jtp1CpfSh8O8bMkHbdbPe6Pw==", "dev": true, "requires": { "setimmediate": "1.0.5" } }, + "timespan": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/timespan/-/timespan-2.3.0.tgz", + "integrity": "sha1-SQLOBAvRPYRcj1myfp1ZutbzmSk=", + "dev": true, + "optional": true + }, "title-case": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/title-case/-/title-case-2.1.1.tgz", @@ -6402,9 +9848,9 @@ } }, "tmp": { - "version": "0.0.31", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.31.tgz", - "integrity": "sha1-jzirlDjhcxXl29izZX6L+yd65Kc=", + "version": "0.0.33", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", + "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", "dev": true, "requires": { "os-tmpdir": "1.0.2" @@ -6456,93 +9902,139 @@ "dev": true }, "tsickle": { - "version": "0.21.6", - "resolved": "https://registry.npmjs.org/tsickle/-/tsickle-0.21.6.tgz", - "integrity": "sha1-U7Abl5xcE/2xOvs/uVgXflmRWI0=", + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/tsickle/-/tsickle-0.27.2.tgz", + "integrity": "sha512-KW+ZgY0t2cq2Qib1sfdgMiRnk+cr3brUtzZoVWjv+Ot3jNxVorFBUH+6In6hl8Dg7BI2AAFf69NHkwvZNMSFwA==", "dev": true, "requires": { "minimist": "1.2.0", "mkdirp": "0.5.1", - "source-map": "0.5.7", - "source-map-support": "0.4.18" + "source-map": "0.6.1", + "source-map-support": "0.5.4" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + }, + "source-map-support": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.4.tgz", + "integrity": "sha512-PETSPG6BjY1AHs2t64vS2aqAgu6dMIMXJULWFBGbh2Gr8nVLbCFDo6i/RMMvviIQ2h1Z8+5gQhVKSn2je9nmdg==", + "dev": true, + "requires": { + "source-map": "0.6.1" + } + } } }, "tslib": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.8.0.tgz", - "integrity": "sha512-ymKWWZJST0/CkgduC2qkzjMOWr4bouhuURNXCn/inEX0L57BnRG6FhX76o7FOnsjHazCjfU2LKeSrlS2sIKQJg==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.9.0.tgz", + "integrity": "sha512-f/qGG2tUkrISBlQZEjEqoZ3B2+npJjIf04H1wuAv9iA8i04Icp+61KRXxFdha22670NJopsZCIjhC3SnjPRKrQ==", "dev": true }, "tslint": { - "version": "3.15.1", - "resolved": "https://registry.npmjs.org/tslint/-/tslint-3.15.1.tgz", - "integrity": "sha1-2hZcqT2P3CwIa1EWXuG6y0jJjqU=", + "version": "5.9.1", + "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.9.1.tgz", + "integrity": "sha1-ElX4ej/1frCw4fDmEKi0dIBGya4=", "dev": true, "requires": { - "colors": "1.1.2", - "diff": "2.2.3", - "findup-sync": "0.3.0", + "babel-code-frame": "6.26.0", + "builtin-modules": "1.1.1", + "chalk": "2.3.2", + "commander": "2.15.0", + "diff": "3.5.0", "glob": "7.1.2", - "optimist": "0.6.1", + "js-yaml": "3.11.0", + "minimatch": "3.0.4", "resolve": "1.5.0", - "underscore.string": "3.3.4" + "semver": "5.5.0", + "tslib": "1.9.0", + "tsutils": "2.22.2" }, "dependencies": { - "colors": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/colors/-/colors-1.1.2.tgz", - "integrity": "sha1-FopHAXVran9RoSzgyXv6KMCE7WM=", - "dev": true - }, - "diff": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/diff/-/diff-2.2.3.tgz", - "integrity": "sha1-YOr9DSjukG5Oj/ClLBIpUhAzv5k=", - "dev": true - }, - "findup-sync": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/findup-sync/-/findup-sync-0.3.0.tgz", - "integrity": "sha1-N5MKpdgWt3fANEXhlmzGeQpMCxY=", + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "glob": "5.0.15" - }, - "dependencies": { - "glob": { - "version": "5.0.15", - "resolved": "https://registry.npmjs.org/glob/-/glob-5.0.15.tgz", - "integrity": "sha1-G8k2ueAvSmA/zCIuz3Yz0wuLk7E=", - "dev": true, - "requires": { - "inflight": "1.0.6", - "inherits": "2.0.3", - "minimatch": "3.0.4", - "once": "1.4.0", - "path-is-absolute": "1.0.1" - } - } + "color-convert": "1.9.1" + } + }, + "chalk": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.3.2.tgz", + "integrity": "sha512-ZM4j2/ld/YZDc3Ma8PgN7gyAk+kHMMMyzLNryCPGhWrsfAuDVeuid5bpRFTDgMH9JBK2lA4dyyAkkZYF/WcqDQ==", + "dev": true, + "requires": { + "ansi-styles": "3.2.1", + "escape-string-regexp": "1.0.5", + "supports-color": "5.3.0" + } + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "supports-color": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.3.0.tgz", + "integrity": "sha512-0aP01LLIskjKs3lq52EC0aGBAJhLq7B2Rd8HC/DR/PtNNpcLilNmHC12O+hu0usQpo7wtHNRqtrhBwtDb0+dNg==", + "dev": true, + "requires": { + "has-flag": "3.0.0" } } } }, "tslint-eslint-rules": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/tslint-eslint-rules/-/tslint-eslint-rules-1.6.1.tgz", - "integrity": "sha1-OekvMZVq0qZsAGHDUfqWwICK4Pg=", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/tslint-eslint-rules/-/tslint-eslint-rules-4.1.1.tgz", + "integrity": "sha1-fDDniC8mvCdr/5HSOEl1xp2viLo=", "dev": true, "requires": { "doctrine": "0.7.2", - "tslint": "3.15.1" + "tslib": "1.9.0", + "tsutils": "1.9.1" + }, + "dependencies": { + "tsutils": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-1.9.1.tgz", + "integrity": "sha1-ufmrROVa+WgYMdXyjQrur1x1DLA=", + "dev": true + } } }, "tslint-ionic-rules": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/tslint-ionic-rules/-/tslint-ionic-rules-0.0.8.tgz", - "integrity": "sha1-au1vjjzUBlIzAdHW0Db38DbdKAk=", + "version": "0.0.9", + "resolved": "https://registry.npmjs.org/tslint-ionic-rules/-/tslint-ionic-rules-0.0.9.tgz", + "integrity": "sha512-k9HQoN+vK9ivDDF9O+HrMDZMFLmxNeoXelZiPTeawbyc8cmH0GLi66G2B6OTaz1NFg/Hiv4Ry5cy6vWiPEVlZQ==", "dev": true, "requires": { - "tslint-eslint-rules": "1.6.1" + "tslint-eslint-rules": "4.1.1" + } + }, + "tsscmp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/tsscmp/-/tsscmp-1.0.5.tgz", + "integrity": "sha1-fcSjOvcVgatDN9qR2FylQn69mpc=", + "dev": true, + "optional": true + }, + "tsutils": { + "version": "2.22.2", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.22.2.tgz", + "integrity": "sha512-u06FUSulCJ+Y8a2ftuqZN6kIGqdP2yJjUPEngXqmdPND4UQfb04igcotH+dw+IFr417yP6muCLE8/5/Qlfnx0w==", + "dev": true, + "requires": { + "tslib": "1.9.0" } }, "tty-browserify": { @@ -6577,13 +10069,30 @@ } }, "type-is": { - "version": "1.6.15", - "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.15.tgz", - "integrity": "sha1-yrEPtJCeRByChC6v4a1kbIGARBA=", + "version": "1.6.16", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.16.tgz", + "integrity": "sha512-HRkVv/5qY2G6I8iab9cI7v1bOIdhm94dVjQCPFElW9W+3GeDOSHmy2EBYe4VTApuzolPcmgFTN3ftVJRKR2J9Q==", "dev": true, "requires": { "media-typer": "0.3.0", - "mime-types": "2.1.17" + "mime-types": "2.1.18" + }, + "dependencies": { + "mime-db": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.33.0.tgz", + "integrity": "sha512-BHJ/EKruNIqJf/QahvxwQZXKygOQ256myeN/Ew+THcAa5q+PjyTTMMeNQC4DZw5AwfvelsUrA6B67NKMqXDbzQ==", + "dev": true + }, + "mime-types": { + "version": "2.1.18", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.18.tgz", + "integrity": "sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ==", + "dev": true, + "requires": { + "mime-db": "1.33.0" + } + } } }, "typedarray": { @@ -6593,9 +10102,9 @@ "dev": true }, "typescript": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.4.2.tgz", - "integrity": "sha1-+DlfhdRZJ2BnyYiqQYN6j4KHCEQ=", + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.6.2.tgz", + "integrity": "sha1-PFtv1/beCRQmkCfwPAlGdY92c6Q=", "dev": true }, "uglify-js": { @@ -6618,9 +10127,15 @@ "optional": true }, "ultron": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/ultron/-/ultron-1.0.2.tgz", - "integrity": "sha1-rOEWq1V80Zc4ak6I9GhTeMiy5Po=", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ultron/-/ultron-1.1.1.tgz", + "integrity": "sha512-UIEXBNeYmKptWH6z8ZnqTeS8fV74zG0/eRU9VGkpzz+LIJNs8W/zM/L+7ctCkRrgbNnnR0xxw4bKOr0cW0N0Og==", + "dev": true + }, + "umd": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/umd/-/umd-3.0.3.tgz", + "integrity": "sha512-4IcGSufhFshvLNcMCV80UnQVlZ5pMOC8mvNPForqwA4+lzYQuetTESLDQkeLmihq8bRcnpbQa48Wb8Lh16/xow==", "dev": true }, "unc-path-regex": { @@ -6644,22 +10159,18 @@ "underscore": "1.6.0" } }, - "underscore.string": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-3.3.4.tgz", - "integrity": "sha1-LCo/n4PmR2L9xF5s6sZRQoZCE9s=", - "dev": true, - "requires": { - "sprintf-js": "1.0.3", - "util-deprecate": "1.0.2" - } - }, "unique-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/unique-stream/-/unique-stream-1.0.0.tgz", "integrity": "sha1-1ZpKdUJ0R9mqbJHnAmP40mpLEEs=", "dev": true }, + "universalify": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.1.tgz", + "integrity": "sha1-+nG63UQ3r0wUiEHjs7Fl+enlkLc=", + "dev": true + }, "unpipe": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", @@ -6706,21 +10217,13 @@ "dev": true }, "useragent": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/useragent/-/useragent-2.2.1.tgz", - "integrity": "sha1-z1k+9PLRdYdei7ZY6pLhik/QbY4=", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/useragent/-/useragent-2.3.0.tgz", + "integrity": "sha512-4AoH4pxuSvHCjqLO04sU6U/uE65BYza8l/KKBS0b0hnUPWi+cQ2BpeTEwejCSx9SPV5/U03nniDTrWx5NrmKdw==", "dev": true, "requires": { - "lru-cache": "2.2.4", - "tmp": "0.0.31" - }, - "dependencies": { - "lru-cache": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-2.2.4.tgz", - "integrity": "sha1-bGWGGb7PFAMdDQtZSxYELOTcBj0=", - "dev": true - } + "lru-cache": "4.1.1", + "tmp": "0.0.33" } }, "util": { @@ -6758,6 +10261,13 @@ "integrity": "sha1-Z+LoY3lyFVMN/zGOW/nc6/1Hsho=", "dev": true }, + "uws": { + "version": "9.14.0", + "resolved": "https://registry.npmjs.org/uws/-/uws-9.14.0.tgz", + "integrity": "sha512-HNMztPP5A1sKuVFmdZ6BPVpBQd5bUjNC8EFMFiICK+oho/OQsAJy5hnIx4btMHiOk8j04f/DbIlqnEZ9d72dqg==", + "dev": true, + "optional": true + }, "v8flags": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/v8flags/-/v8flags-2.1.1.tgz", @@ -6922,6 +10432,13 @@ "defaults": "1.0.3" } }, + "when": { + "version": "3.7.8", + "resolved": "https://registry.npmjs.org/when/-/when-3.7.8.tgz", + "integrity": "sha1-xxMLan6gRpPoQs3J56Hyqjmjn4I=", + "dev": true, + "optional": true + }, "which": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/which/-/which-1.3.0.tgz", @@ -6939,9 +10456,9 @@ "optional": true }, "winston": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/winston/-/winston-2.4.0.tgz", - "integrity": "sha1-gIBQuT1SZh7Z+2wms/DIJnCLCu4=", + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/winston/-/winston-2.4.1.tgz", + "integrity": "sha512-k/+Dkzd39ZdyJHYkuaYmf4ff+7j+sCIy73UCOWHYA67/WXU+FF/Y6PF28j+Vy7qNRPHWO+dR+/+zkoQWPimPqg==", "dev": true, "requires": { "async": "1.0.0", @@ -6989,26 +10506,28 @@ "dev": true }, "ws": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/ws/-/ws-1.1.2.tgz", - "integrity": "sha1-iiRPoFJAHgjJiGz0SoUYnh/UBn8=", + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/ws/-/ws-3.3.3.tgz", + "integrity": "sha512-nnWLa/NwZSt4KQJu51MYlCcSQ5g7INpOrOMt4XV8j4dqTXdmlUmSHQ8/oLC069ckre0fRsgfvsKwbTdtKLCDkA==", "dev": true, "requires": { - "options": "0.0.6", - "ultron": "1.0.2" + "async-limiter": "1.0.0", + "safe-buffer": "5.1.1", + "ultron": "1.1.1" } }, - "wtf-8": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/wtf-8/-/wtf-8-1.0.0.tgz", - "integrity": "sha1-OS2LotDxw00e4tYw8V0O+2jhBIo=", + "xmlhttprequest-ssl": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/xmlhttprequest-ssl/-/xmlhttprequest-ssl-1.5.5.tgz", + "integrity": "sha1-wodrBhaKrcQOV9l+gRkayPQ5iz4=", "dev": true }, - "xmlhttprequest-ssl": { - "version": "1.5.3", - "resolved": "https://registry.npmjs.org/xmlhttprequest-ssl/-/xmlhttprequest-ssl-1.5.3.tgz", - "integrity": "sha1-GFqIjATspGw+QHDZn3tJ3jUomS0=", - "dev": true + "xregexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/xregexp/-/xregexp-2.0.0.tgz", + "integrity": "sha1-UqY+VsoLhKfzpfPWGHLxJq16WUM=", + "dev": true, + "optional": true }, "xtend": { "version": "4.0.1", @@ -7047,6 +10566,13 @@ "integrity": "sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk=", "dev": true, "optional": true + }, + "decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", + "dev": true, + "optional": true } } }, @@ -7066,9 +10592,9 @@ "dev": true }, "zone.js": { - "version": "0.8.18", - "resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.8.18.tgz", - "integrity": "sha512-knKOBQM0oea3/x9pdyDuDi7RhxDlJhOIkeixXSiTKWLgs4LpK37iBc+1HaHwzlciHUKT172CymJFKo8Xgh+44Q==", + "version": "0.8.20", + "resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.8.20.tgz", + "integrity": "sha512-FXlA37ErSXCMy5RNBcGFgCI/Zivqzr0D19GuvDxhcYIJc7xkFp6c29DKyODJu0Zo+EMyur/WPPgcBh1EHjB9jA==", "dev": true } } diff --git a/package.json b/package.json index dfead97ca..0e95931a8 100644 --- a/package.json +++ b/package.json @@ -6,45 +6,44 @@ "author": "Ionic Team (https://ionic.io)", "license": "MIT", "devDependencies": { - "@angular/compiler": "4.4.4", - "@angular/compiler-cli": "4.4.4", - "@angular/core": "4.4.4", + "@angular/compiler": "5.2.9", + "@angular/compiler-cli": "5.2.9", + "@angular/core": "5.2.9", "@types/cordova": "0.0.34", - "@types/jasmine": "^2.6.3", - "@types/node": "^8.0.50", + "@types/jasmine": "^2.8.6", + "@types/node": "^8.9.5", "canonical-path": "0.0.2", "child-process-promise": "2.2.1", - "conventional-changelog-cli": "1.3.4", - "cpr": "2.0.0", - "cz-conventional-changelog": "2.0.0", - "decamelize": "1.2.0", - "dgeni": "0.4.7", + "conventional-changelog-cli": "^1.3.16", + "cpr": "^3.0.1", + "cz-conventional-changelog": "^2.1.0", + "decamelize": "^2.0.0", + "dgeni": "^0.4.9", "dgeni-packages": "0.16.10", - "fs-extra": "2.0.0", - "fs-extra-promise": "0.4.1", + "fs-extra": "^5.0.0", "gulp": "3.9.1", "gulp-rename": "1.2.2", - "gulp-replace": "0.5.4", - "gulp-tslint": "6.1.2", - "jasmine-core": "^2.6.1", - "karma": "^1.7.0", + "gulp-replace": "^0.6.1", + "gulp-tslint": "^8.1.3", + "jasmine-core": "^3.1.0", + "karma": "^2.0.0", "karma-cli": "^1.0.1", - "karma-jasmine": "^1.1.0", + "karma-jasmine": "^1.1.1", "karma-phantomjs-launcher": "^1.0.4", - "karma-typescript": "^3.0.1", - "karma-typescript-es6-transform": "^1.0.0", - "lodash": "4.17.4", + "karma-typescript": "^3.0.12", + "karma-typescript-es6-transform": "^1.0.4", + "lodash": "^4.17.5", "minimist": "1.2.0", "node-html-encoder": "0.0.2", - "q": "1.5.0", - "queue": "4.2.1", - "rimraf": "2.6.1", - "rxjs": "5.5.2", - "semver": "5.3.0", - "tslint": "3.15.1", - "tslint-ionic-rules": "0.0.8", - "typescript": "~2.4.2", - "zone.js": "0.8.18" + "q": "^1.5.1", + "queue": "^4.4.2", + "rimraf": "^2.6.2", + "rxjs": "^5.5.7", + "semver": "^5.5.0", + "tslint": "^5.9.1", + "tslint-ionic-rules": "0.0.9", + "typescript": "~2.6.2", + "zone.js": "0.8.20" }, "scripts": { "start": "npm run test:watch", diff --git a/scripts/build/build.js b/scripts/build/build.js index cae297b8b..6d3549111 100644 --- a/scripts/build/build.js +++ b/scripts/build/build.js @@ -1,6 +1,6 @@ -"use strict"; +'use strict'; // Node module dependencies -const fs = require('fs-extra-promise').useFs(require('fs-extra')), +const fs = require('fs-extra'), queue = require('queue'), path = require('path'), exec = require('child_process').exec; @@ -15,7 +15,6 @@ const ROOT = path.resolve(path.join(__dirname, '../../')), // root ionic-native BUILD_DIST_ROOT = path.resolve(ROOT, 'dist/@ionic-native'), // dist directory root path BUILD_CORE_DIST = path.resolve(BUILD_DIST_ROOT, 'core'); // core dist directory path - // dependency versions const ANGULAR_VERSION = '*', RXJS_VERSION = '^5.0.1', @@ -24,13 +23,13 @@ const ANGULAR_VERSION = '*', // package dependencies const CORE_PEER_DEPS = { - 'rxjs': RXJS_VERSION + rxjs: RXJS_VERSION }; const PLUGIN_PEER_DEPS = { '@ionic-native/core': MIN_CORE_VERSION, '@angular/core': ANGULAR_VERSION, - 'rxjs': RXJS_VERSION + rxjs: RXJS_VERSION }; // set peer dependencies for all plugins @@ -44,8 +43,10 @@ fs.mkdirpSync(BUILD_TMP); console.log('Preparing core module package.json'); CORE_PACKAGE_JSON.version = IONIC_NATIVE_VERSION; CORE_PACKAGE_JSON.peerDependencies = CORE_PEER_DEPS; -fs.writeJsonSync(path.resolve(BUILD_CORE_DIST, 'package.json'), CORE_PACKAGE_JSON); - +fs.writeJsonSync( + path.resolve(BUILD_CORE_DIST, 'package.json'), + CORE_PACKAGE_JSON +); // Fetch a list of the plugins const PLUGINS = fs.readdirSync(PLUGINS_PATH); @@ -59,7 +60,9 @@ const index = pluginsToBuild.indexOf('ignore-errors'); if (index > -1) { ignoreErrors = true; pluginsToBuild.splice(index, 1); - console.log('Build will continue even if errors were thrown. Errors will be printed when build finishes.'); + console.log( + 'Build will continue even if errors were thrown. Errors will be printed when build finishes.' + ); } if (!pluginsToBuild.length) { @@ -71,12 +74,9 @@ const QUEUE = queue({ concurrency: require('os').cpus().length }); - // Function to process a single plugin const addPluginToQueue = pluginName => { - - QUEUE.push((callback) => { - + QUEUE.push(callback => { console.log(`Building plugin: ${pluginName}`); const PLUGIN_BUILD_DIR = path.resolve(BUILD_TMP, 'plugins', pluginName), @@ -84,10 +84,10 @@ const addPluginToQueue = pluginName => { let tsConfigPath; - fs.mkdirpAsync(PLUGIN_BUILD_DIR) // create tmp build dir - .then(() => fs.mkdirpAsync(path.resolve(BUILD_DIST_ROOT, pluginName))) // create dist dir + fs + .mkdirs(PLUGIN_BUILD_DIR) // create tmp build dir + .then(() => fs.mkdirs(path.resolve(BUILD_DIST_ROOT, pluginName))) // create dist dir .then(() => { - // Write tsconfig.json const tsConfig = JSON.parse(JSON.stringify(PLUGIN_TS_CONFIG)); tsConfig.files = [PLUGIN_SRC_PATH]; @@ -95,7 +95,7 @@ const addPluginToQueue = pluginName => { tsConfigPath = path.resolve(PLUGIN_BUILD_DIR, 'tsconfig.json'); - return fs.writeJsonAsync(tsConfigPath, tsConfig); + return fs.writeJson(tsConfigPath, tsConfig); }) .then(() => { // clone package.json @@ -104,42 +104,39 @@ const addPluginToQueue = pluginName => { packageJson.name = `@ionic-native/${pluginName}`; packageJson.version = IONIC_NATIVE_VERSION; - return fs.writeJsonAsync(path.resolve(BUILD_DIST_ROOT, pluginName, 'package.json'), packageJson); + return fs.writeJson( + path.resolve(BUILD_DIST_ROOT, pluginName, 'package.json'), + packageJson + ); }) .then(() => { - // compile the plugin - exec(`${ROOT}/node_modules/.bin/ngc -p ${tsConfigPath}`, (err, stdout, stderr) => { - - if (err) { - - if (!ignoreErrors) { - // oops! something went wrong. - console.log(err); - callback(`\n\nBuilding ${pluginName} failed.`); - return; - } else { - errors.push(err); + exec( + `${ROOT}/node_modules/.bin/ngc -p ${tsConfigPath}`, + (err, stdout, stderr) => { + if (err) { + if (!ignoreErrors) { + // oops! something went wrong. + console.log(err); + callback(`\n\nBuilding ${pluginName} failed.`); + return; + } else { + errors.push(err); + } } + // we're done with this plugin! + callback(); } - - // we're done with this plugin! - callback(); - - }); - + ); }) .catch(callback); - }); // QUEUE.push end - }; pluginsToBuild.forEach(addPluginToQueue); -QUEUE.start((err) => { - +QUEUE.start(err => { if (err) { console.log('Error building plugins.'); console.log(err); @@ -155,5 +152,4 @@ QUEUE.start((err) => { } else { console.log('Done processing plugins!'); } - }); diff --git a/scripts/build/publish.js b/scripts/build/publish.js index 184dda82d..bf7560c15 100644 --- a/scripts/build/publish.js +++ b/scripts/build/publish.js @@ -1,11 +1,10 @@ -"use strict"; +'use strict'; // Node module dependencies -const fs = require('fs-extra-promise').useFs(require('fs-extra')), +const fs = require('fs-extra'), queue = require('queue'), path = require('path'), exec = require('child-process-promise').exec; - const ROOT = path.resolve(path.join(__dirname, '../../')), DIST = path.resolve(ROOT, 'dist', '@ionic-native'); @@ -20,15 +19,16 @@ const QUEUE = queue({ }); PACKAGES.forEach(packageName => { - QUEUE.push(done => { - console.log(`Publishing @ionic-native/${packageName}`); const packagePath = path.resolve(DIST, packageName); exec(`npm publish ${packagePath} ${FLAGS}`) .then(() => done()) - .catch((e) => { - if (e.stderr && e.stderr.indexOf('previously published version') === -1) { + .catch(e => { + if ( + e.stderr && + e.stderr.indexOf('previously published version') === -1 + ) { failedPackages.push({ cmd: e.cmd, stderr: e.stderr @@ -36,13 +36,10 @@ PACKAGES.forEach(packageName => { } done(); }); - }); - }); -QUEUE.start((err) => { - +QUEUE.start(err => { if (err) { console.log('Error publishing ionic-native. ', err); } else if (failedPackages.length > 0) { @@ -51,8 +48,4 @@ QUEUE.start((err) => { } else { console.log('Done publishing ionic-native!'); } - - - }); - diff --git a/scripts/docs/gulp-tasks.js b/scripts/docs/gulp-tasks.js index 81a10aa45..a7d3ed55d 100644 --- a/scripts/docs/gulp-tasks.js +++ b/scripts/docs/gulp-tasks.js @@ -1,39 +1,40 @@ -"use strict"; +'use strict'; const config = require('../config.json'), projectPackage = require('../../package.json'), path = require('path'), - fs = require('fs-extra-promise').useFs(require('fs-extra')), + fs = require('fs-extra'), Dgeni = require('dgeni'); module.exports = gulp => { gulp.task('docs', [], () => { - try { - const ionicPackage = require('./dgeni-config')(projectPackage.version), dgeni = new Dgeni([ionicPackage]); - return dgeni.generate().then(docs => console.log(docs.length + ' docs generated')); - + return dgeni + .generate() + .then(docs => console.log(docs.length + ' docs generated')); } catch (err) { console.log(err.stack); } - }); gulp.task('readmes', [], function() { - - fs.copySync(path.resolve(__dirname, '..', '..', 'README.md'), path.resolve(__dirname, '..', '..', config.pluginDir, 'core', 'README.md')); + fs.copySync( + path.resolve(__dirname, '..', '..', 'README.md'), + path.resolve(__dirname, '..', '..', config.pluginDir, 'core', 'README.md') + ); try { - - const ionicPackage = require('./dgeni-readmes-config')(projectPackage.version), + const ionicPackage = require('./dgeni-readmes-config')( + projectPackage.version + ), dgeni = new Dgeni([ionicPackage]); - return dgeni.generate().then(docs => console.log(docs.length + ' README files generated')); - + return dgeni + .generate() + .then(docs => console.log(docs.length + ' README files generated')); } catch (err) { console.log(err.stack); } - }); }; diff --git a/src/@ionic-native/core/bootstrap.ts b/src/@ionic-native/core/bootstrap.ts index 09ac37f15..8f590d1cd 100644 --- a/src/@ionic-native/core/bootstrap.ts +++ b/src/@ionic-native/core/bootstrap.ts @@ -9,13 +9,17 @@ export function checkReady() { let didFireReady = false; document.addEventListener('deviceready', () => { - console.log(`Ionic Native: deviceready event fired after ${(Date.now() - before)} ms`); + console.log( + `Ionic Native: deviceready event fired after ${Date.now() - before} ms` + ); didFireReady = true; }); setTimeout(() => { if (!didFireReady && !!window.cordova) { - console.warn(`Ionic Native: deviceready did not fire within ${DEVICE_READY_TIMEOUT}ms. This can happen when plugins are in an inconsistent state. Try removing plugins from plugins/ and reinstalling them.`); + console.warn( + `Ionic Native: deviceready did not fire within ${DEVICE_READY_TIMEOUT}ms. This can happen when plugins are in an inconsistent state. Try removing plugins from plugins/ and reinstalling them.` + ); } }, DEVICE_READY_TIMEOUT); } diff --git a/src/@ionic-native/core/decorators.spec.ts b/src/@ionic-native/core/decorators.spec.ts index 534a135f8..b8a8e97a2 100644 --- a/src/@ionic-native/core/decorators.spec.ts +++ b/src/@ionic-native/core/decorators.spec.ts @@ -1,24 +1,34 @@ import 'core-js'; -import { Plugin, Cordova, CordovaProperty, CordovaCheck, CordovaInstance, InstanceProperty } from './decorators'; + +import { Observable } from 'rxjs/Observable'; + +import { + Cordova, + CordovaCheck, + CordovaInstance, + CordovaProperty, + InstanceProperty, + Plugin +} from './decorators'; import { IonicNativePlugin } from './ionic-native-plugin'; import { ERR_CORDOVA_NOT_AVAILABLE, ERR_PLUGIN_NOT_INSTALLED } from './plugin'; -import { Observable } from 'rxjs/Observable'; declare const window: any; class TestObject { - constructor(public _objectInstance: any) {} - @InstanceProperty - name: string; + @InstanceProperty name: string; @CordovaInstance({ sync: true }) - pingSync(): string { return; } + pingSync(): string { + return; + } @CordovaInstance() - ping(): Promise { return; } - + ping(): Promise { + return; + } } @Plugin({ @@ -29,15 +39,17 @@ class TestObject { platforms: ['Android', 'iOS'] }) class TestPlugin extends IonicNativePlugin { - - @CordovaProperty - name: string; + @CordovaProperty name: string; @Cordova({ sync: true }) - pingSync(): string { return; } + pingSync(): string { + return; + } @Cordova() - ping(): Promise { return; } + ping(): Promise { + return; + } @CordovaCheck() customPing(): Promise { @@ -51,14 +63,17 @@ class TestPlugin extends IonicNativePlugin { @Cordova({ destruct: true }) - destructPromise(): Promise { return; } + destructPromise(): Promise { + return; + } @Cordova({ destruct: true, observable: true }) - destructObservable(): Observable { return; } - + destructObservable(): Observable { + return; + } } function definePlugin() { @@ -78,7 +93,6 @@ function definePlugin() { } describe('Regular Decorators', () => { - let plugin: TestPlugin; beforeEach(() => { @@ -87,7 +101,6 @@ describe('Regular Decorators', () => { }); describe('Plugin', () => { - it('should set pluginName', () => { expect(TestPlugin.getPluginName()).toEqual('TestPlugin'); }); @@ -103,17 +116,16 @@ describe('Regular Decorators', () => { it('should return supported platforms', () => { expect(TestPlugin.getSupportedPlatforms()).toEqual(['Android', 'iOS']); }); - }); describe('Cordova', () => { - it('should do a sync function', () => { expect(plugin.pingSync()).toEqual('pong'); }); it('should do an async function', (done: Function) => { - plugin.ping() + plugin + .ping() .then(res => { expect(res).toEqual('pong'); done(); @@ -125,39 +137,31 @@ describe('Regular Decorators', () => { }); it('should throw plugin_not_installed error', (done: Function) => { - delete window.testPlugin; window.cordova = true; expect(plugin.pingSync()).toEqual(ERR_PLUGIN_NOT_INSTALLED); - plugin.ping() - .catch(e => { - expect(e).toEqual(ERR_PLUGIN_NOT_INSTALLED.error); - delete window.cordova; - done(); - }); - + plugin.ping().catch(e => { + expect(e).toEqual(ERR_PLUGIN_NOT_INSTALLED.error); + delete window.cordova; + done(); + }); }); it('should throw cordova_not_available error', (done: Function) => { - delete window.testPlugin; expect(plugin.pingSync()).toEqual(ERR_CORDOVA_NOT_AVAILABLE); - plugin.ping() - .catch(e => { - expect(e).toEqual(ERR_CORDOVA_NOT_AVAILABLE.error); - done(); - }); - + plugin.ping().catch(e => { + expect(e).toEqual(ERR_CORDOVA_NOT_AVAILABLE.error); + done(); + }); }); - }); describe('CordovaProperty', () => { - it('should return property value', () => { expect(plugin.name).toEqual('John Smith'); }); @@ -166,61 +170,47 @@ describe('Regular Decorators', () => { plugin.name = 'value2'; expect(plugin.name).toEqual('value2'); }); - }); describe('CordovaCheck', () => { - - it('should run the method when plugin exists', (done) => { - plugin.customPing() - .then(res => { - expect(res).toEqual('pong'); - done(); - }); + it('should run the method when plugin exists', done => { + plugin.customPing().then(res => { + expect(res).toEqual('pong'); + done(); + }); }); - it('shouldnt run the method when plugin doesnt exist', (done) => { + it('shouldnt run the method when plugin doesnt exist', done => { delete window.testPlugin; window.cordova = true; - plugin.customPing() - .catch(e => { - expect(e).toEqual(ERR_PLUGIN_NOT_INSTALLED.error); - done(); - }); + plugin.customPing().catch(e => { + expect(e).toEqual(ERR_PLUGIN_NOT_INSTALLED.error); + done(); + }); }); - }); describe('CordovaOptions', () => { - describe('destruct', () => { - - it('should destruct values returned by a Promise', (done) => { - plugin.destructPromise() - .then((args: any[]) => { - expect(args).toEqual(['hello', 'world']); - done(); - }); + it('should destruct values returned by a Promise', done => { + plugin.destructPromise().then((args: any[]) => { + expect(args).toEqual(['hello', 'world']); + done(); + }); }); - it('should destruct values returned by an Observable', (done) => { - plugin.destructObservable() - .subscribe((args: any[]) => { - expect(args).toEqual(['hello', 'world']); - done(); - }); + it('should destruct values returned by an Observable', done => { + plugin.destructObservable().subscribe((args: any[]) => { + expect(args).toEqual(['hello', 'world']); + done(); + }); }); - }); - }); - }); describe('Instance Decorators', () => { - - let instance: TestObject, - plugin: TestPlugin; + let instance: TestObject, plugin: TestPlugin; beforeEach(() => { definePlugin(); @@ -228,20 +218,14 @@ describe('Instance Decorators', () => { instance = plugin.create(); }); - describe('Instance plugin', () => { - - - - }); + describe('Instance plugin', () => {}); describe('CordovaInstance', () => { - - it('should call instance async method', (done) => { - instance.ping() - .then(r => { - expect(r).toEqual('pong'); - done(); - }); + it('should call instance async method', done => { + instance.ping().then(r => { + expect(r).toEqual('pong'); + done(); + }); }); it('should call instance sync method', () => { @@ -249,18 +233,16 @@ describe('Instance Decorators', () => { }); it('shouldnt call instance method when _objectInstance is undefined', () => { - delete instance._objectInstance; - instance.ping() + instance + .ping() .then(r => { expect(r).toBeUndefined(); }) .catch(e => { expect(e).toBeUndefined(); }); - }); - }); describe('InstanceProperty', () => { @@ -273,5 +255,4 @@ describe('Instance Decorators', () => { expect(instance.name).toEqual('John Cena'); }); }); - }); diff --git a/src/@ionic-native/core/decorators.ts b/src/@ionic-native/core/decorators.ts index 0a99c3704..d283aa3a3 100644 --- a/src/@ionic-native/core/decorators.ts +++ b/src/@ionic-native/core/decorators.ts @@ -1,8 +1,16 @@ -import { instanceAvailability, checkAvailability, wrap, wrapInstance, overrideFunction } from './plugin'; -import { getPlugin, getPromise } from './util'; -import { Observable } from 'rxjs/Observable'; import 'rxjs/observable/throw'; +import { Observable } from 'rxjs/Observable'; + +import { + checkAvailability, + instanceAvailability, + overrideFunction, + wrap, + wrapInstance +} from './plugin'; +import { getPlugin, getPromise } from './util'; + export interface PluginConfig { /** * Plugin name, this should match the class name @@ -109,21 +117,23 @@ export interface CordovaCheckOptions { * @private */ export function InstanceCheck(opts: CordovaCheckOptions = {}) { - return (pluginObj: Object, methodName: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor => { + return ( + pluginObj: Object, + methodName: string, + descriptor: TypedPropertyDescriptor + ): TypedPropertyDescriptor => { return { value: function(...args: any[]): any { if (instanceAvailability(this)) { return descriptor.value.apply(this, args); } else { - if (opts.sync) { return; } else if (opts.observable) { - return new Observable(() => { }); + return new Observable(() => {}); } - return getPromise(() => { }); - + return getPromise(() => {}); } }, enumerable: true @@ -136,7 +146,11 @@ export function InstanceCheck(opts: CordovaCheckOptions = {}) { * @private */ export function CordovaCheck(opts: CordovaCheckOptions = {}) { - return (pluginObj: Object, methodName: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor => { + return ( + pluginObj: Object, + methodName: string, + descriptor: TypedPropertyDescriptor + ): TypedPropertyDescriptor => { return { value: function(...args: any[]): any { const check = checkAvailability(pluginObj); @@ -177,7 +191,6 @@ export function CordovaCheck(opts: CordovaCheckOptions = {}) { */ export function Plugin(config: PluginConfig): ClassDecorator { return function(cls: any) { - // Add these fields to the class for (let prop in config) { cls[prop] = config[prop]; @@ -226,7 +239,11 @@ export function Plugin(config: PluginConfig): ClassDecorator { * and the required plugin are installed. */ export function Cordova(opts: CordovaOptions = {}) { - return (target: Object, methodName: string, descriptor: TypedPropertyDescriptor) => { + return ( + target: Object, + methodName: string, + descriptor: TypedPropertyDescriptor + ) => { return { value: function(...args: any[]) { return wrap(this, methodName, opts).apply(this, args); @@ -268,7 +285,7 @@ export function CordovaProperty(target: any, key: string) { return null; } }, - set: (value) => { + set: value => { if (checkAvailability(target, key) === true) { getPlugin(target.constructor.getPluginRef())[key] = value; } @@ -301,7 +318,11 @@ export function InstanceProperty(target: any, key: string) { * and the required plugin are installed. */ export function CordovaFunctionOverride(opts: any = {}) { - return (target: Object, methodName: string, descriptor: TypedPropertyDescriptor) => { + return ( + target: Object, + methodName: string, + descriptor: TypedPropertyDescriptor + ) => { return { value: function(...args: any[]) { return overrideFunction(this, methodName, opts); @@ -310,4 +331,3 @@ export function CordovaFunctionOverride(opts: any = {}) { }; }; } - diff --git a/src/@ionic-native/core/ionic-native-plugin.spec.ts b/src/@ionic-native/core/ionic-native-plugin.spec.ts index 69df51ce8..9837ffb1b 100644 --- a/src/@ionic-native/core/ionic-native-plugin.spec.ts +++ b/src/@ionic-native/core/ionic-native-plugin.spec.ts @@ -1,8 +1,7 @@ // This is to verify that new (FileTransfer.getPlugin)() works - -import { Plugin, CordovaInstance } from './decorators'; -import { checkAvailability } from './plugin'; +import { CordovaInstance, Plugin } from './decorators'; import { IonicNativePlugin } from './ionic-native-plugin'; +import { checkAvailability } from './plugin'; class FT { hello(): string { @@ -21,7 +20,13 @@ class FT { export class FileTransfer extends IonicNativePlugin { create(): FileTransferObject { let instance: any; - if (checkAvailability(FileTransfer.getPluginRef(), null, FileTransfer.getPluginName()) === true) { + if ( + checkAvailability( + FileTransfer.getPluginRef(), + null, + FileTransfer.getPluginName() + ) === true + ) { instance = new (FileTransfer.getPlugin())(); } return new FileTransferObject(instance); @@ -29,20 +34,21 @@ export class FileTransfer extends IonicNativePlugin { } export class FileTransferObject { - constructor(public _objectInstance: any) { - console.info('Creating a new FileTransferObject with instance: ', _objectInstance); + console.info( + 'Creating a new FileTransferObject with instance: ', + _objectInstance + ); } @CordovaInstance({ sync: true }) - hello(): string { return; } - + hello(): string { + return; + } } describe('Mock FileTransfer Plugin', () => { - - let plugin: FileTransfer, - instance: FileTransferObject; + let plugin: FileTransfer, instance: FileTransferObject; beforeAll(() => { plugin = new FileTransfer(); @@ -65,5 +71,4 @@ describe('Mock FileTransfer Plugin', () => { console.info('instance hello is', instance.hello()); expect(instance.hello()).toEqual('world'); }); - }); diff --git a/src/@ionic-native/core/ionic-native-plugin.ts b/src/@ionic-native/core/ionic-native-plugin.ts index ed62979b3..f1660ae00 100644 --- a/src/@ionic-native/core/ionic-native-plugin.ts +++ b/src/@ionic-native/core/ionic-native-plugin.ts @@ -1,5 +1,4 @@ export class IonicNativePlugin { - static pluginName: string; static pluginRef: string; @@ -16,31 +15,40 @@ export class IonicNativePlugin { * Returns a boolean that indicates whether the plugin is installed * @return {boolean} */ - static installed(): boolean { return false; } + static installed(): boolean { + return false; + } /** * Returns the original plugin object */ - static getPlugin(): any { } + static getPlugin(): any {} /** * Returns the plugin's name */ - static getPluginName(): string { return; } + static getPluginName(): string { + return; + } /** * Returns the plugin's reference */ - static getPluginRef(): string { return; } + static getPluginRef(): string { + return; + } /** * Returns the plugin's install name */ - static getPluginInstallName(): string { return; } + static getPluginInstallName(): string { + return; + } /** * Returns the plugin's supported platforms */ - static getSupportedPlatforms(): string[] { return; } - + static getSupportedPlatforms(): string[] { + return; + } } diff --git a/src/@ionic-native/core/plugin.ts b/src/@ionic-native/core/plugin.ts index 4118e482e..a86429100 100644 --- a/src/@ionic-native/core/plugin.ts +++ b/src/@ionic-native/core/plugin.ts @@ -1,9 +1,10 @@ -import { getPlugin, getPromise, cordovaWarn, pluginWarn } from './util'; -import { checkReady } from './bootstrap'; -import { CordovaOptions } from './decorators'; +import 'rxjs/add/observable/fromEvent'; import { Observable } from 'rxjs/Observable'; -import 'rxjs/add/observable/fromEvent'; + +import { checkReady } from './bootstrap'; +import { CordovaOptions } from './decorators'; +import { cordovaWarn, getPlugin, getPromise, pluginWarn } from './util'; checkReady(); @@ -13,16 +14,26 @@ checkReady(); export const ERR_CORDOVA_NOT_AVAILABLE = { error: 'cordova_not_available' }; export const ERR_PLUGIN_NOT_INSTALLED = { error: 'plugin_not_installed' }; - /** * Checks if plugin/cordova is available * @return {boolean | { error: string } } * @private */ -export function checkAvailability(pluginRef: string, methodName?: string, pluginName?: string): boolean | { error: string }; -export function checkAvailability(pluginObj: any, methodName?: string, pluginName?: string): boolean | { error: string }; -export function checkAvailability(plugin: any, methodName?: string, pluginName?: string): boolean | { error: string } { - +export function checkAvailability( + pluginRef: string, + methodName?: string, + pluginName?: string +): boolean | { error: string }; +export function checkAvailability( + pluginObj: any, + methodName?: string, + pluginName?: string +): boolean | { error: string }; +export function checkAvailability( + plugin: any, + methodName?: string, + pluginName?: string +): boolean | { error: string } { let pluginRef, pluginInstance, pluginPackage; if (typeof plugin === 'string') { @@ -35,7 +46,10 @@ export function checkAvailability(plugin: any, methodName?: string, pluginName?: pluginInstance = getPlugin(pluginRef); - if (!pluginInstance || (!!methodName && typeof pluginInstance[methodName] === 'undefined')) { + if ( + !pluginInstance || + (!!methodName && typeof pluginInstance[methodName] === 'undefined') + ) { if (!window.cordova) { cordovaWarn(pluginName, methodName); return ERR_CORDOVA_NOT_AVAILABLE; @@ -52,11 +66,23 @@ export function checkAvailability(plugin: any, methodName?: string, pluginName?: * Checks if _objectInstance exists and has the method/property * @private */ -export function instanceAvailability(pluginObj: any, methodName?: string): boolean { - return pluginObj._objectInstance && (!methodName || typeof pluginObj._objectInstance[methodName] !== 'undefined'); +export function instanceAvailability( + pluginObj: any, + methodName?: string +): boolean { + return ( + pluginObj._objectInstance && + (!methodName || + typeof pluginObj._objectInstance[methodName] !== 'undefined') + ); } -function setIndex(args: any[], opts: any = {}, resolve?: Function, reject?: Function): any { +function setIndex( + args: any[], + opts: any = {}, + resolve?: Function, + reject?: Function +): any { // ignore resolve and reject in case sync if (opts.sync) { return args; @@ -75,12 +101,19 @@ function setIndex(args: any[], opts: any = {}, resolve?: Function, reject?: Func resolve(result); } }); - } else if (opts.callbackStyle === 'object' && opts.successName && opts.errorName) { + } else if ( + opts.callbackStyle === 'object' && + opts.successName && + opts.errorName + ) { let obj: any = {}; obj[opts.successName] = resolve; obj[opts.errorName] = reject; args.push(obj); - } else if (typeof opts.successIndex !== 'undefined' || typeof opts.errorIndex !== 'undefined') { + } else if ( + typeof opts.successIndex !== 'undefined' || + typeof opts.errorIndex !== 'undefined' + ) { const setSuccessIndex = () => { // If we've specified a success/error index if (opts.successIndex > args.length) { @@ -106,8 +139,6 @@ function setIndex(args: any[], opts: any = {}, resolve?: Function, reject?: Func setSuccessIndex(); setErrorIndex(); } - - } else { // Otherwise, let's tack them on to the end of the argument list // which is 90% of cases @@ -117,7 +148,14 @@ function setIndex(args: any[], opts: any = {}, resolve?: Function, reject?: Func return args; } -function callCordovaPlugin(pluginObj: any, methodName: string, args: any[], opts: any = {}, resolve?: Function, reject?: Function) { +function callCordovaPlugin( + pluginObj: any, + methodName: string, + args: any[], + opts: any = {}, + resolve?: Function, + reject?: Function +) { // Try to figure out where the success/error callbacks need to be bound // to our promise resolve/reject handlers. args = setIndex(args, opts, resolve, reject); @@ -130,16 +168,34 @@ function callCordovaPlugin(pluginObj: any, methodName: string, args: any[], opts } else { return availabilityCheck; } - } -function wrapPromise(pluginObj: any, methodName: string, args: any[], opts: any = {}) { +function wrapPromise( + pluginObj: any, + methodName: string, + args: any[], + opts: any = {} +) { let pluginResult: any, rej: Function; const p = getPromise((resolve: Function, reject: Function) => { if (opts.destruct) { - pluginResult = callCordovaPlugin(pluginObj, methodName, args, opts, (...args: any[]) => resolve(args), (...args: any[]) => reject(args)); + pluginResult = callCordovaPlugin( + pluginObj, + methodName, + args, + opts, + (...args: any[]) => resolve(args), + (...args: any[]) => reject(args) + ); } else { - pluginResult = callCordovaPlugin(pluginObj, methodName, args, opts, resolve, reject); + pluginResult = callCordovaPlugin( + pluginObj, + methodName, + args, + opts, + resolve, + reject + ); } rej = reject; }); @@ -147,13 +203,18 @@ function wrapPromise(pluginObj: any, methodName: string, args: any[], opts: any // a warning that Cordova is undefined or the plugin is uninstalled, so there is no reason // to error if (pluginResult && pluginResult.error) { - p.catch(() => { }); + p.catch(() => {}); typeof rej === 'function' && rej(pluginResult.error); } return p; } -function wrapOtherPromise(pluginObj: any, methodName: string, args: any[], opts: any = {}) { +function wrapOtherPromise( + pluginObj: any, + methodName: string, + args: any[], + opts: any = {} +) { return getPromise((resolve: Function, reject: Function) => { const pluginResult = callCordovaPlugin(pluginObj, methodName, args, opts); if (pluginResult) { @@ -168,14 +229,33 @@ function wrapOtherPromise(pluginObj: any, methodName: string, args: any[], opts: }); } -function wrapObservable(pluginObj: any, methodName: string, args: any[], opts: any = {}) { +function wrapObservable( + pluginObj: any, + methodName: string, + args: any[], + opts: any = {} +) { return new Observable(observer => { let pluginResult; if (opts.destruct) { - pluginResult = callCordovaPlugin(pluginObj, methodName, args, opts, (...args: any[]) => observer.next(args), (...args: any[]) => observer.error(args)); + pluginResult = callCordovaPlugin( + pluginObj, + methodName, + args, + opts, + (...args: any[]) => observer.next(args), + (...args: any[]) => observer.error(args) + ); } else { - pluginResult = callCordovaPlugin(pluginObj, methodName, args, opts, observer.next.bind(observer), observer.error.bind(observer)); + pluginResult = callCordovaPlugin( + pluginObj, + methodName, + args, + opts, + observer.next.bind(observer), + observer.error.bind(observer) + ); } if (pluginResult && pluginResult.error) { @@ -186,26 +266,45 @@ function wrapObservable(pluginObj: any, methodName: string, args: any[], opts: a try { if (opts.clearFunction) { if (opts.clearWithArgs) { - return callCordovaPlugin(pluginObj, opts.clearFunction, args, opts, observer.next.bind(observer), observer.error.bind(observer)); + return callCordovaPlugin( + pluginObj, + opts.clearFunction, + args, + opts, + observer.next.bind(observer), + observer.error.bind(observer) + ); } return callCordovaPlugin(pluginObj, opts.clearFunction, []); } } catch (e) { - console.warn('Unable to clear the previous observable watch for', pluginObj.constructor.getPluginName(), methodName); + console.warn( + 'Unable to clear the previous observable watch for', + pluginObj.constructor.getPluginName(), + methodName + ); console.warn(e); } }; }); } -function callInstance(pluginObj: any, methodName: string, args: any[], opts: any = {}, resolve?: Function, reject?: Function) { - +function callInstance( + pluginObj: any, + methodName: string, + args: any[], + opts: any = {}, + resolve?: Function, + reject?: Function +) { args = setIndex(args, opts, resolve, reject); if (instanceAvailability(pluginObj, methodName)) { - return pluginObj._objectInstance[methodName].apply(pluginObj._objectInstance, args); + return pluginObj._objectInstance[methodName].apply( + pluginObj._objectInstance, + args + ); } - } /** @@ -215,7 +314,10 @@ function callInstance(pluginObj: any, methodName: string, args: any[], opts: any * @param element The element to attach the event listener to * @returns {Observable} */ -export function wrapEventObservable(event: string, element: any = window): Observable { +export function wrapEventObservable( + event: string, + element: any = window +): Observable { return Observable.fromEvent(element, event); } @@ -227,28 +329,38 @@ export function wrapEventObservable(event: string, element: any = window): Obser * does just this. * @private */ -export function overrideFunction(pluginObj: any, methodName: string, args: any[], opts: any = {}): Observable { +export function overrideFunction( + pluginObj: any, + methodName: string, + args: any[], + opts: any = {} +): Observable { return new Observable(observer => { - - const availabilityCheck = checkAvailability(pluginObj, null, pluginObj.constructor.getPluginName()); + const availabilityCheck = checkAvailability( + pluginObj, + null, + pluginObj.constructor.getPluginName() + ); if (availabilityCheck === true) { const pluginInstance = getPlugin(pluginObj.constructor.getPluginRef()); pluginInstance[methodName] = observer.next.bind(observer); - return () => pluginInstance[methodName] = () => { }; + return () => (pluginInstance[methodName] = () => {}); } else { observer.error(availabilityCheck); observer.complete(); } - }); } - /** * @private */ -export const wrap = function(pluginObj: any, methodName: string, opts: CordovaOptions = {}) { +export const wrap = function( + pluginObj: any, + methodName: string, + opts: CordovaOptions = {} +) { return (...args: any[]) => { if (opts.sync) { // Sync doesn't wrap the plugin with a promise or observable, it returns the result as-is @@ -268,22 +380,36 @@ export const wrap = function(pluginObj: any, methodName: string, opts: CordovaOp /** * @private */ -export function wrapInstance(pluginObj: any, methodName: string, opts: any = {}) { +export function wrapInstance( + pluginObj: any, + methodName: string, + opts: any = {} +) { return (...args: any[]) => { if (opts.sync) { - return callInstance(pluginObj, methodName, args, opts); - } else if (opts.observable) { - return new Observable(observer => { - let pluginResult; if (opts.destruct) { - pluginResult = callInstance(pluginObj, methodName, args, opts, (...args: any[]) => observer.next(args), (...args: any[]) => observer.error(args)); + pluginResult = callInstance( + pluginObj, + methodName, + args, + opts, + (...args: any[]) => observer.next(args), + (...args: any[]) => observer.error(args) + ); } else { - pluginResult = callInstance(pluginObj, methodName, args, opts, observer.next.bind(observer), observer.error.bind(observer)); + pluginResult = callInstance( + pluginObj, + methodName, + args, + opts, + observer.next.bind(observer), + observer.error.bind(observer) + ); } if (pluginResult && pluginResult.error) { @@ -294,23 +420,47 @@ export function wrapInstance(pluginObj: any, methodName: string, opts: any = {}) return () => { try { if (opts.clearWithArgs) { - return callInstance(pluginObj, opts.clearFunction, args, opts, observer.next.bind(observer), observer.error.bind(observer)); + return callInstance( + pluginObj, + opts.clearFunction, + args, + opts, + observer.next.bind(observer), + observer.error.bind(observer) + ); } return callInstance(pluginObj, opts.clearFunction, []); } catch (e) { - console.warn('Unable to clear the previous observable watch for', pluginObj.constructor.getPluginName(), methodName); + console.warn( + 'Unable to clear the previous observable watch for', + pluginObj.constructor.getPluginName(), + methodName + ); console.warn(e); } }; }); - } else if (opts.otherPromise) { return getPromise((resolve: Function, reject: Function) => { let result; if (opts.destruct) { - result = callInstance(pluginObj, methodName, args, opts, (...args: any[]) => resolve(args), (...args: any[]) => reject(args)); + result = callInstance( + pluginObj, + methodName, + args, + opts, + (...args: any[]) => resolve(args), + (...args: any[]) => reject(args) + ); } else { - result = callInstance(pluginObj, methodName, args, opts, resolve, reject); + result = callInstance( + pluginObj, + methodName, + args, + opts, + resolve, + reject + ); } if (result && !!result.then) { result.then(resolve, reject); @@ -318,14 +468,27 @@ export function wrapInstance(pluginObj: any, methodName: string, opts: any = {}) reject(); } }); - } else { let pluginResult: any, rej: Function; const p = getPromise((resolve: Function, reject: Function) => { if (opts.destruct) { - pluginResult = callInstance(pluginObj, methodName, args, opts, (...args: any[]) => resolve(args), (...args: any[]) => reject(args)); + pluginResult = callInstance( + pluginObj, + methodName, + args, + opts, + (...args: any[]) => resolve(args), + (...args: any[]) => reject(args) + ); } else { - pluginResult = callInstance(pluginObj, methodName, args, opts, resolve, reject); + pluginResult = callInstance( + pluginObj, + methodName, + args, + opts, + resolve, + reject + ); } rej = reject; }); @@ -333,12 +496,10 @@ export function wrapInstance(pluginObj: any, methodName: string, opts: any = {}) // a warning that Cordova is undefined or the plugin is uninstalled, so there is no reason // to error if (pluginResult && pluginResult.error) { - p.catch(() => { }); + p.catch(() => {}); typeof rej === 'function' && rej(pluginResult.error); } return p; - - } }; } diff --git a/src/@ionic-native/core/util.ts b/src/@ionic-native/core/util.ts index eddedaaaa..93d6754b7 100644 --- a/src/@ionic-native/core/util.ts +++ b/src/@ionic-native/core/util.ts @@ -7,25 +7,27 @@ export const get = (element: Element | Window, path: string): any => { const paths: string[] = path.split('.'); let obj: any = element; for (let i: number = 0; i < paths.length; i++) { - if (!obj) { return null; } + if (!obj) { + return null; + } obj = obj[paths[i]]; } return obj; }; - /** * @private */ export const getPromise = (callback: Function): Promise => { - const tryNativePromise = () => { if (window.Promise) { return new Promise((resolve, reject) => { callback(resolve, reject); }); } else { - console.error('No Promise support or polyfill found. To enable Ionic Native support, please add the es6-promise polyfill before this script, or run with a library like Angular or on a recent browser.'); + console.error( + 'No Promise support or polyfill found. To enable Ionic Native support, please add the es6-promise polyfill before this script, or run with a library like Angular or on a recent browser.' + ); } }; @@ -44,14 +46,24 @@ export const getPlugin = (pluginRef: string): any => { /** * @private */ -export const pluginWarn = (pluginName: string, plugin?: string, method?: string): void => { +export const pluginWarn = ( + pluginName: string, + plugin?: string, + method?: string +): void => { if (method) { - console.warn('Native: tried calling ' + pluginName + '.' + method + ', but the ' + pluginName + ' plugin is not installed.'); + console.warn( + `Native: tried calling ${pluginName}.${method}, but the ${pluginName} plugin is not installed.` + ); } else { - console.warn('Native: tried accessing the ' + pluginName + ' plugin but it\'s not installed.'); + console.warn( + `Native: tried accessing the ${pluginName} plugin but it's not installed.` + ); } if (plugin) { - console.warn('Install the ' + pluginName + ' plugin: \'ionic cordova plugin add ' + plugin + '\''); + console.warn( + `Install the ${pluginName} plugin: 'ionic cordova plugin add ${plugin}'` + ); } }; @@ -62,8 +74,12 @@ export const pluginWarn = (pluginName: string, plugin?: string, method?: string) */ export const cordovaWarn = (pluginName: string, method?: string): void => { if (method) { - console.warn('Native: tried calling ' + pluginName + '.' + method + ', but Cordova is not available. Make sure to include cordova.js or run in a device/simulator'); + console.warn( + `Native: tried calling ${pluginName}.${method}, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator` + ); } else { - console.warn('Native: tried accessing the ' + pluginName + ' plugin but Cordova is not available. Make sure to include cordova.js or run in a device/simulator'); + console.warn( + `Native: tried accessing the ${pluginName} plugin but Cordova is not available. Make sure to include cordova.js or run in a device/simulator` + ); } }; diff --git a/src/@ionic-native/plugins/action-sheet/index.ts b/src/@ionic-native/plugins/action-sheet/index.ts index 5273f8d0c..ece9808c0 100644 --- a/src/@ionic-native/plugins/action-sheet/index.ts +++ b/src/@ionic-native/plugins/action-sheet/index.ts @@ -1,8 +1,7 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface ActionSheetOptions { - /** * The labels for the buttons. Uses the index x */ @@ -98,7 +97,6 @@ export interface ActionSheetOptions { }) @Injectable() export class ActionSheet extends IonicNativePlugin { - /** * Convenience property to select an Android theme value */ @@ -123,13 +121,16 @@ export class ActionSheet extends IonicNativePlugin { * button pressed (1 based, so 1, 2, 3, etc.) */ @Cordova() - show(options?: ActionSheetOptions): Promise { return; } - + show(options?: ActionSheetOptions): Promise { + return; + } /** * Progamtically hide the native ActionSheet * @returns {Promise} Returns a Promise that resolves when the actionsheet is closed */ @Cordova() - hide(options?: any): Promise { return; } + hide(options?: any): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/admob-free/index.ts b/src/@ionic-native/plugins/admob-free/index.ts index bcd059b3d..8df51ec5e 100644 --- a/src/@ionic-native/plugins/admob-free/index.ts +++ b/src/@ionic-native/plugins/admob-free/index.ts @@ -1,8 +1,9 @@ -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; -import { Injectable } from '@angular/core'; -import { Observable } from 'rxjs/Observable'; import 'rxjs/add/observable/fromEvent'; +import { Injectable } from '@angular/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Observable } from 'rxjs/Observable'; + export interface AdMobFreeBannerConfig { /** * Ad Unit ID @@ -114,7 +115,6 @@ export interface AdMobFreeRewardVideoConfig { }) @Injectable() export class AdMobFree extends IonicNativePlugin { - /** * Convenience object to get event names * @type {Object} @@ -167,7 +167,6 @@ export class AdMobFree extends IonicNativePlugin { * @type {AdMobFreeRewardVideo} */ rewardVideo: AdMobFreeRewardVideo = new AdMobFreeRewardVideo(); - } /** @@ -176,46 +175,54 @@ export class AdMobFree extends IonicNativePlugin { @Plugin({ pluginName: 'AdMobFree', plugin: 'cordova-plugin-admob-free', - pluginRef: 'admob.banner', + pluginRef: 'admob.banner' }) export class AdMobFreeBanner { - /** * Update config. * @param options * @return {AdMobFreeBannerConfig} */ @Cordova({ sync: true }) - config(options: AdMobFreeBannerConfig): AdMobFreeBannerConfig { return; } + config(options: AdMobFreeBannerConfig): AdMobFreeBannerConfig { + return; + } /** * Hide the banner. * @return {Promise} */ @Cordova({ otherPromise: true }) - hide(): Promise { return; } + hide(): Promise { + return; + } /** * Create banner. * @return {Promise} */ @Cordova({ otherPromise: true }) - prepare(): Promise { return; } + prepare(): Promise { + return; + } /** * Remove the banner. * @return {Promise} */ @Cordova({ otherPromise: true }) - remove(): Promise { return; } + remove(): Promise { + return; + } /** * Show the banner. * @return {Promise} */ @Cordova({ otherPromise: true }) - show(): Promise { return; } - + show(): Promise { + return; + } } /** @@ -224,39 +231,45 @@ export class AdMobFreeBanner { @Plugin({ pluginName: 'AdMobFree', plugin: 'cordova-plugin-admob-free', - pluginRef: 'admob.interstitial', + pluginRef: 'admob.interstitial' }) export class AdMobFreeInterstitial { - /** * Update config. * @param options * @return {AdMobFreeInterstitialConfig} */ @Cordova({ sync: true }) - config(options: AdMobFreeInterstitialConfig): AdMobFreeInterstitialConfig { return; } + config(options: AdMobFreeInterstitialConfig): AdMobFreeInterstitialConfig { + return; + } /** * Check if interstitial is ready * @return {Promise} */ @Cordova({ otherPromise: true }) - isReady(): Promise { return; } + isReady(): Promise { + return; + } /** * Prepare interstitial * @return {Promise} */ @Cordova({ otherPromise: true }) - prepare(): Promise { return; } + prepare(): Promise { + return; + } /** * Show the interstitial * @return {Promise} */ @Cordova({ otherPromise: true }) - show(): Promise { return; } - + show(): Promise { + return; + } } /** @@ -265,37 +278,43 @@ export class AdMobFreeInterstitial { @Plugin({ pluginName: 'AdMobFree', plugin: 'cordova-plugin-admob-free', - pluginRef: 'admob.rewardvideo', + pluginRef: 'admob.rewardvideo' }) export class AdMobFreeRewardVideo { - /** * Update config. * @param options * @return {AdMobFreeRewardVideoConfig} */ @Cordova({ sync: true }) - config(options: AdMobFreeRewardVideoConfig): AdMobFreeRewardVideoConfig { return; } + config(options: AdMobFreeRewardVideoConfig): AdMobFreeRewardVideoConfig { + return; + } /** * Check if reward video is ready * @return {Promise} */ @Cordova({ otherPromise: true }) - isReady(): Promise { return; } + isReady(): Promise { + return; + } /** * Prepare reward video * @return {Promise} */ @Cordova({ otherPromise: true }) - prepare(): Promise { return; } + prepare(): Promise { + return; + } /** * Show the reward video * @return {Promise} */ @Cordova({ otherPromise: true }) - show(): Promise { return; } - + show(): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/admob-pro/index.ts b/src/@ionic-native/plugins/admob-pro/index.ts index ad9c66b1d..450e7b5f6 100644 --- a/src/@ionic-native/plugins/admob-pro/index.ts +++ b/src/@ionic-native/plugins/admob-pro/index.ts @@ -1,11 +1,17 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; -export type AdSize = 'SMART_BANNER' | 'BANNER' | 'MEDIUM_RECTANGLE' | 'FULL_BANNER' | 'LEADERBOARD' | 'SKYSCRAPER' | 'CUSTOM'; +export type AdSize = + | 'SMART_BANNER' + | 'BANNER' + | 'MEDIUM_RECTANGLE' + | 'FULL_BANNER' + | 'LEADERBOARD' + | 'SKYSCRAPER' + | 'CUSTOM'; export interface AdMobOptions { - /** * Banner ad ID */ @@ -70,11 +76,9 @@ export interface AdMobOptions { * License key for the plugin */ license?: any; - } export interface AdExtras { - color_bg: string; color_bg_top: string; @@ -86,7 +90,6 @@ export interface AdExtras { color_text: string; color_url: string; - } /** @@ -134,7 +137,6 @@ export interface AdExtras { }) @Injectable() export class AdMobPro extends IonicNativePlugin { - AD_POSITION: { NO_CHANGE: number; TOP_LEFT: number; @@ -167,7 +169,9 @@ export class AdMobPro extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves when the banner is created */ @Cordova() - createBanner(adIdOrOptions: string | AdMobOptions): Promise { return; } + createBanner(adIdOrOptions: string | AdMobOptions): Promise { + return; + } /** * Destroy the banner, remove it from screen. @@ -175,7 +179,7 @@ export class AdMobPro extends IonicNativePlugin { @Cordova({ sync: true }) - removeBanner(): void { } + removeBanner(): void {} /** * Show banner at position @@ -184,7 +188,7 @@ export class AdMobPro extends IonicNativePlugin { @Cordova({ sync: true }) - showBanner(position: number): void { } + showBanner(position: number): void {} /** * Show banner at custom position @@ -194,7 +198,7 @@ export class AdMobPro extends IonicNativePlugin { @Cordova({ sync: true }) - showBannerAtXY(x: number, y: number): void { } + showBannerAtXY(x: number, y: number): void {} /** * Hide the banner, remove it from screen, but can show it later @@ -202,7 +206,7 @@ export class AdMobPro extends IonicNativePlugin { @Cordova({ sync: true }) - hideBanner(): void { } + hideBanner(): void {} /** * Prepare interstitial banner @@ -210,7 +214,9 @@ export class AdMobPro extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves when interstitial is prepared */ @Cordova() - prepareInterstitial(adIdOrOptions: string | AdMobOptions): Promise { return; } + prepareInterstitial(adIdOrOptions: string | AdMobOptions): Promise { + return; + } /** * Show interstitial ad when it's ready @@ -218,7 +224,7 @@ export class AdMobPro extends IonicNativePlugin { @Cordova({ sync: true }) - showInterstitial(): void { } + showInterstitial(): void {} /** * Prepare a reward video ad @@ -226,7 +232,9 @@ export class AdMobPro extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves when the ad is prepared */ @Cordova() - prepareRewardVideoAd(adIdOrOptions: string | AdMobOptions): Promise { return; } + prepareRewardVideoAd(adIdOrOptions: string | AdMobOptions): Promise { + return; + } /** * Show a reward video ad @@ -234,7 +242,7 @@ export class AdMobPro extends IonicNativePlugin { @Cordova({ sync: true }) - showRewardVideoAd(): void { } + showRewardVideoAd(): void {} /** * Sets the values for configuration and targeting @@ -242,14 +250,18 @@ export class AdMobPro extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves when the options have been set */ @Cordova() - setOptions(options: AdMobOptions): Promise { return; } + setOptions(options: AdMobOptions): Promise { + return; + } /** * Get user ad settings * @returns {Promise} Returns a promise that resolves with the ad settings */ @Cordova() - getAdSettings(): Promise { return; } + getAdSettings(): Promise { + return; + } /** * Triggered when failed to receive Ad @@ -260,7 +272,9 @@ export class AdMobPro extends IonicNativePlugin { event: 'onAdFailLoad', element: document }) - onAdFailLoad(): Observable { return; } + onAdFailLoad(): Observable { + return; + } /** * Triggered when Ad received @@ -271,7 +285,9 @@ export class AdMobPro extends IonicNativePlugin { event: 'onAdLoaded', element: document }) - onAdLoaded(): Observable { return; } + onAdLoaded(): Observable { + return; + } /** * Triggered when Ad will be showed on screen @@ -282,7 +298,9 @@ export class AdMobPro extends IonicNativePlugin { event: 'onAdPresent', element: document }) - onAdPresent(): Observable { return; } + onAdPresent(): Observable { + return; + } /** * Triggered when user click the Ad, and will jump out of your App @@ -293,7 +311,9 @@ export class AdMobPro extends IonicNativePlugin { event: 'onAdLeaveApp', element: document }) - onAdLeaveApp(): Observable { return; } + onAdLeaveApp(): Observable { + return; + } /** * Triggered when dismiss the Ad and back to your App @@ -304,6 +324,7 @@ export class AdMobPro extends IonicNativePlugin { event: 'onAdDismiss', element: document }) - onAdDismiss(): Observable { return; } - + onAdDismiss(): Observable { + return; + } } diff --git a/src/@ionic-native/plugins/alipay/index.ts b/src/@ionic-native/plugins/alipay/index.ts index c0e517e61..f44f6c1ed 100644 --- a/src/@ionic-native/plugins/alipay/index.ts +++ b/src/@ionic-native/plugins/alipay/index.ts @@ -1,7 +1,5 @@ -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; - - +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface AlipayOrder { /** @@ -101,7 +99,8 @@ export interface AlipayOrder { plugin: 'cordova-alipay-base', pluginRef: 'Alipay.Base', repo: 'https://github.com/xueron/cordova-alipay-base', - install: 'ionic cordova plugin add cordova-alipay-base --variable ALI_PID=your_app_id', + install: + 'ionic cordova plugin add cordova-alipay-base --variable ALI_PID=your_app_id', installVariables: ['ALI_PID'], platforms: ['Android', 'iOS'] }) @@ -113,5 +112,7 @@ export class Alipay extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with the success return, or rejects with an error. */ @Cordova() - pay(order: AlipayOrder | string): Promise { return; } + pay(order: AlipayOrder | string): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/android-exoplayer/index.ts b/src/@ionic-native/plugins/android-exoplayer/index.ts index 26fe48831..53f751098 100644 --- a/src/@ionic-native/plugins/android-exoplayer/index.ts +++ b/src/@ionic-native/plugins/android-exoplayer/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export type AndroidExoPlayerAspectRatio = 'FILL_SCREEN' | 'FIT_SCREEN'; @@ -187,14 +187,16 @@ export class AndroidExoplayer extends IonicNativePlugin { * @param parameters {AndroidExoPlayerParams} Parameters * @return {Observable} */ - @Cordova({ - observable: true, - clearFunction: 'close', - clearWithArgs: false, - successIndex: 1, - errorIndex: 2 - }) - show(parameters: AndroidExoPlayerParams): Observable { return; } + @Cordova({ + observable: true, + clearFunction: 'close', + clearWithArgs: false, + successIndex: 1, + errorIndex: 2 + }) + show(parameters: AndroidExoPlayerParams): Observable { + return; + } /** * Switch stream without disposing of the player. @@ -203,21 +205,30 @@ export class AndroidExoplayer extends IonicNativePlugin { * @return {Promise} */ @Cordova() - setStream(url: string, controller: AndroidExoPlayerControllerConfig): Promise { return; } + setStream( + url: string, + controller: AndroidExoPlayerControllerConfig + ): Promise { + return; + } /** * Will pause if playing and play if paused * @return {Promise} */ @Cordova() - playPause(): Promise { return; } + playPause(): Promise { + return; + } /** * Stop playing. * @return {Promise} */ @Cordova() - stop(): Promise { return; } + stop(): Promise { + return; + } /** * Jump to a particular position. @@ -225,7 +236,9 @@ export class AndroidExoplayer extends IonicNativePlugin { * @return {Promise} */ @Cordova() - seekTo(milliseconds: number): Promise { return; } + seekTo(milliseconds: number): Promise { + return; + } /** * Jump to a particular time relative to the current position. @@ -233,28 +246,36 @@ export class AndroidExoplayer extends IonicNativePlugin { * @return {Promise} */ @Cordova() - seekBy(milliseconds: number): Promise { return; } + seekBy(milliseconds: number): Promise { + return; + } /** * Get the current player state. * @return {Promise} */ @Cordova() - getState(): Promise { return; } + getState(): Promise { + return; + } /** * Show the controller. * @return {Promise} */ @Cordova() - showController(): Promise { return; } + showController(): Promise { + return; + } /** * Hide the controller. * @return {Promise} */ @Cordova() - hideController(): Promise { return; } + hideController(): Promise { + return; + } /** * Update the controller configuration. @@ -262,12 +283,16 @@ export class AndroidExoplayer extends IonicNativePlugin { * @return {Promise} */ @Cordova() - setController(controller: AndroidExoPlayerControllerConfig): Promise { return; } + setController(controller: AndroidExoPlayerControllerConfig): Promise { + return; + } /** * Close and dispose of player, call before destroy. * @return {Promise} */ @Cordova() - close(): Promise { return; } + close(): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/android-fingerprint-auth/index.ts b/src/@ionic-native/plugins/android-fingerprint-auth/index.ts index 2366e86bb..3044bd855 100644 --- a/src/@ionic-native/plugins/android-fingerprint-auth/index.ts +++ b/src/@ionic-native/plugins/android-fingerprint-auth/index.ts @@ -1,9 +1,7 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; - +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface AFAAuthOptions { - /** * Required * Used as the alias for your key in the Android Key Store. @@ -62,7 +60,6 @@ export interface AFAAuthOptions { * Set the hint displayed by the fingerprint icon on the fingerprint authentication dialog. */ dialogHint?: string; - } export interface AFADecryptOptions { @@ -149,26 +146,25 @@ export interface AFAEncryptResponse { }) @Injectable() export class AndroidFingerprintAuth extends IonicNativePlugin { - ERRORS: { - BAD_PADDING_EXCEPTION: 'BAD_PADDING_EXCEPTION', - CERTIFICATE_EXCEPTION: 'CERTIFICATE_EXCEPTION', - FINGERPRINT_CANCELLED: 'FINGERPRINT_CANCELLED', - FINGERPRINT_DATA_NOT_DELETED: 'FINGERPRINT_DATA_NOT_DELETED', - FINGERPRINT_ERROR: 'FINGERPRINT_ERROR', - FINGERPRINT_NOT_AVAILABLE: 'FINGERPRINT_NOT_AVAILABLE', - FINGERPRINT_PERMISSION_DENIED: 'FINGERPRINT_PERMISSION_DENIED', - FINGERPRINT_PERMISSION_DENIED_SHOW_REQUEST: 'FINGERPRINT_PERMISSION_DENIED_SHOW_REQUEST', - ILLEGAL_BLOCK_SIZE_EXCEPTION: 'ILLEGAL_BLOCK_SIZE_EXCEPTION', - INIT_CIPHER_FAILED: 'INIT_CIPHER_FAILED', - INVALID_ALGORITHM_PARAMETER_EXCEPTION: 'INVALID_ALGORITHM_PARAMETER_EXCEPTION', - IO_EXCEPTION: 'IO_EXCEPTION', - JSON_EXCEPTION: 'JSON_EXCEPTION', - MINIMUM_SDK: 'MINIMUM_SDK', - MISSING_ACTION_PARAMETERS: 'MISSING_ACTION_PARAMETERS', - MISSING_PARAMETERS: 'MISSING_PARAMETERS', - NO_SUCH_ALGORITHM_EXCEPTION: 'NO_SUCH_ALGORITHM_EXCEPTION', - SECURITY_EXCEPTION: 'SECURITY_EXCEPTION' + BAD_PADDING_EXCEPTION: 'BAD_PADDING_EXCEPTION'; + CERTIFICATE_EXCEPTION: 'CERTIFICATE_EXCEPTION'; + FINGERPRINT_CANCELLED: 'FINGERPRINT_CANCELLED'; + FINGERPRINT_DATA_NOT_DELETED: 'FINGERPRINT_DATA_NOT_DELETED'; + FINGERPRINT_ERROR: 'FINGERPRINT_ERROR'; + FINGERPRINT_NOT_AVAILABLE: 'FINGERPRINT_NOT_AVAILABLE'; + FINGERPRINT_PERMISSION_DENIED: 'FINGERPRINT_PERMISSION_DENIED'; + FINGERPRINT_PERMISSION_DENIED_SHOW_REQUEST: 'FINGERPRINT_PERMISSION_DENIED_SHOW_REQUEST'; + ILLEGAL_BLOCK_SIZE_EXCEPTION: 'ILLEGAL_BLOCK_SIZE_EXCEPTION'; + INIT_CIPHER_FAILED: 'INIT_CIPHER_FAILED'; + INVALID_ALGORITHM_PARAMETER_EXCEPTION: 'INVALID_ALGORITHM_PARAMETER_EXCEPTION'; + IO_EXCEPTION: 'IO_EXCEPTION'; + JSON_EXCEPTION: 'JSON_EXCEPTION'; + MINIMUM_SDK: 'MINIMUM_SDK'; + MISSING_ACTION_PARAMETERS: 'MISSING_ACTION_PARAMETERS'; + MISSING_PARAMETERS: 'MISSING_PARAMETERS'; + NO_SUCH_ALGORITHM_EXCEPTION: 'NO_SUCH_ALGORITHM_EXCEPTION'; + SECURITY_EXCEPTION: 'SECURITY_EXCEPTION'; }; /** @@ -177,7 +173,9 @@ export class AndroidFingerprintAuth extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - encrypt(options: AFAAuthOptions): Promise { return; } + encrypt(options: AFAAuthOptions): Promise { + return; + } /** * Opens a native dialog fragment to use the device hardware fingerprint scanner to authenticate against fingerprints registered for the device. @@ -185,19 +183,32 @@ export class AndroidFingerprintAuth extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - decrypt(options: AFAAuthOptions): Promise { return; } + decrypt(options: AFAAuthOptions): Promise { + return; + } /** * Check if service is available * @returns {Promise} Returns a Promise that resolves if fingerprint auth is available on the device */ @Cordova() - isAvailable(): Promise<{ isAvailable: boolean, isHardwareDetected: boolean, hasEnrolledFingerprints: boolean }> { return; } + isAvailable(): Promise<{ + isAvailable: boolean; + isHardwareDetected: boolean; + hasEnrolledFingerprints: boolean; + }> { + return; + } /** * Delete the cipher used for encryption and decryption by username * @returns {Promise} Returns a Promise that resolves if the cipher was successfully deleted */ @Cordova() - delete(options: { clientId: string; username: string; }): Promise<{ deleted: boolean }> { return; } + delete(options: { + clientId: string; + username: string; + }): Promise<{ deleted: boolean }> { + return; + } } diff --git a/src/@ionic-native/plugins/android-full-screen/index.ts b/src/@ionic-native/plugins/android-full-screen/index.ts index e0d023a98..cccbb56de 100644 --- a/src/@ionic-native/plugins/android-full-screen/index.ts +++ b/src/@ionic-native/plugins/android-full-screen/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * Bit flag values for setSystemUiVisibility() @@ -62,63 +62,81 @@ export class AndroidFullScreen extends IonicNativePlugin { * @return {Promise} */ @Cordova() - isSupported(): Promise { return; } + isSupported(): Promise { + return; + } /** * Is immersive mode supported? * @return {Promise} */ @Cordova() - isImmersiveModeSupported(): Promise { return; } + isImmersiveModeSupported(): Promise { + return; + } /** * The width of the screen in immersive mode. * @return {Promise} */ @Cordova() - immersiveWidth(): Promise { return; } + immersiveWidth(): Promise { + return; + } /** * The height of the screen in immersive mode. * @return {Promise} */ @Cordova() - immersiveHeight(): Promise { return; } + immersiveHeight(): Promise { + return; + } /** * Hide system UI until user interacts. * @return {Promise} */ @Cordova() - leanMode(): Promise { return; } + leanMode(): Promise { + return; + } /** * Show system UI. * @return {Promise} */ @Cordova() - showSystemUI(): Promise { return; } + showSystemUI(): Promise { + return; + } /** * Extend your app underneath the status bar (Android 4.4+ only). * @return {Promise} */ @Cordova() - showUnderStatusBar(): Promise { return; } + showUnderStatusBar(): Promise { + return; + } /** * Extend your app underneath the system UI (Android 4.4+ only). * @return {Promise} */ @Cordova() - showUnderSystemUI(): Promise { return; } + showUnderSystemUI(): Promise { + return; + } /** * Hide system UI and keep it hidden (Android 4.4+ only). * @return {Promise} */ @Cordova() - immersiveMode(): Promise { return; } + immersiveMode(): Promise { + return; + } /** * Manually set the the system UI to a custom mode. This mirrors the Android method of the same name. (Android 4.4+ only). @@ -127,5 +145,7 @@ export class AndroidFullScreen extends IonicNativePlugin { * @return {Promise} */ @Cordova() - setSystemUiVisibility(visibility: AndroidSystemUiFlags): Promise { return; } + setSystemUiVisibility(visibility: AndroidSystemUiFlags): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/android-permissions/index.ts b/src/@ionic-native/plugins/android-permissions/index.ts index 6ee438268..1d265d4f9 100644 --- a/src/@ionic-native/plugins/android-permissions/index.ts +++ b/src/@ionic-native/plugins/android-permissions/index.ts @@ -1,5 +1,5 @@ -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name Android Permissions @@ -37,12 +37,12 @@ import { Injectable } from '@angular/core'; }) @Injectable() export class AndroidPermissions extends IonicNativePlugin { - PERMISSION: any = { ACCESS_CHECKIN_PROPERTIES: 'android.permission.ACCESS_CHECKIN_PROPERTIES', ACCESS_COARSE_LOCATION: 'android.permission.ACCESS_COARSE_LOCATION', ACCESS_FINE_LOCATION: 'android.permission.ACCESS_FINE_LOCATION', - ACCESS_LOCATION_EXTRA_COMMANDS: 'android.permission.ACCESS_LOCATION_EXTRA_COMMANDS', + ACCESS_LOCATION_EXTRA_COMMANDS: + 'android.permission.ACCESS_LOCATION_EXTRA_COMMANDS', ACCESS_MOCK_LOCATION: 'android.permission.ACCESS_MOCK_LOCATION', ACCESS_NETWORK_STATE: 'android.permission.ACCESS_NETWORK_STATE', ACCESS_SURFACE_FLINGER: 'android.permission.ACCESS_SURFACE_FLINGER', @@ -53,12 +53,14 @@ export class AndroidPermissions extends IonicNativePlugin { BATTERY_STATS: 'android.permission.BATTERY_STATS', BIND_ACCESSIBILITY_SERVICE: 'android.permission.BIND_ACCESSIBILITY_SERVICE', BIND_APPWIDGET: 'android.permission.BIND_APPWIDGET', - BIND_CARRIER_MESSAGING_SERVICE: 'android.permission.BIND_CARRIER_MESSAGING_SERVICE', + BIND_CARRIER_MESSAGING_SERVICE: + 'android.permission.BIND_CARRIER_MESSAGING_SERVICE', BIND_DEVICE_ADMIN: 'android.permission.BIND_DEVICE_ADMIN', BIND_DREAM_SERVICE: 'android.permission.BIND_DREAM_SERVICE', BIND_INPUT_METHOD: 'android.permission.BIND_INPUT_METHOD', BIND_NFC_SERVICE: 'android.permission.BIND_NFC_SERVICE', - BIND_NOTIFICATION_LISTENER_SERVICE: 'android.permission.BIND_NOTIFICATION_LISTENER_SERVICE', + BIND_NOTIFICATION_LISTENER_SERVICE: + 'android.permission.BIND_NOTIFICATION_LISTENER_SERVICE', BIND_PRINT_SERVICE: 'android.permission.BIND_PRINT_SERVICE', BIND_REMOTEVIEWS: 'android.permission.BIND_REMOTEVIEWS', BIND_TEXT_SERVICE: 'android.permission.BIND_TEXT_SERVICE', @@ -79,12 +81,15 @@ export class AndroidPermissions extends IonicNativePlugin { CALL_PRIVILEGED: 'android.permission.CALL_PRIVILEGED', CAMERA: 'android.permission.CAMERA', CAPTURE_AUDIO_OUTPUT: 'android.permission.CAPTURE_AUDIO_OUTPUT', - CAPTURE_SECURE_VIDEO_OUTPUT: 'android.permission.CAPTURE_SECURE_VIDEO_OUTPUT', + CAPTURE_SECURE_VIDEO_OUTPUT: + 'android.permission.CAPTURE_SECURE_VIDEO_OUTPUT', CAPTURE_VIDEO_OUTPUT: 'android.permission.CAPTURE_VIDEO_OUTPUT', - CHANGE_COMPONENT_ENABLED_STATE: 'android.permission.CHANGE_COMPONENT_ENABLED_STATE', + CHANGE_COMPONENT_ENABLED_STATE: + 'android.permission.CHANGE_COMPONENT_ENABLED_STATE', CHANGE_CONFIGURATION: 'android.permission.CHANGE_CONFIGURATION', CHANGE_NETWORK_STATE: 'android.permission.CHANGE_NETWORK_STATE', - CHANGE_WIFI_MULTICAST_STATE: 'android.permission.CHANGE_WIFI_MULTICAST_STATE', + CHANGE_WIFI_MULTICAST_STATE: + 'android.permission.CHANGE_WIFI_MULTICAST_STATE', CHANGE_WIFI_STATE: 'android.permission.CHANGE_WIFI_STATE', CLEAR_APP_CACHE: 'android.permission.CLEAR_APP_CACHE', CLEAR_APP_USER_DATA: 'android.permission.CLEAR_APP_USER_DATA', @@ -130,7 +135,8 @@ export class AndroidPermissions extends IonicNativePlugin { READ_CONTACTS: 'android.permission.READ_CONTACTS', READ_EXTERNAL_STORAGE: 'android.permission.READ_EXTERNAL_STORAGE', READ_FRAME_BUFFER: 'android.permission.READ_FRAME_BUFFER', - READ_HISTORY_BOOKMARKS: 'com.android.browser.permission.READ_HISTORY_BOOKMARKS', + READ_HISTORY_BOOKMARKS: + 'com.android.browser.permission.READ_HISTORY_BOOKMARKS', READ_INPUT_STATE: 'android.permission.READ_INPUT_STATE', READ_LOGS: 'android.permission.READ_LOGS', READ_PHONE_STATE: 'android.permission.READ_PHONE_STATE', @@ -164,7 +170,8 @@ export class AndroidPermissions extends IonicNativePlugin { SET_TIME_ZONE: 'android.permission.SET_TIME_ZONE', SET_WALLPAPER: 'android.permission.SET_WALLPAPER', SET_WALLPAPER_HINTS: 'android.permission.SET_WALLPAPER_HINTS', - SIGNAL_PERSISTENT_PROCESSES: 'android.permission.SIGNAL_PERSISTENT_PROCESSES', + SIGNAL_PERSISTENT_PROCESSES: + 'android.permission.SIGNAL_PERSISTENT_PROCESSES', STATUS_BAR: 'android.permission.STATUS_BAR', SUBSCRIBED_FEEDS_READ: 'android.permission.SUBSCRIBED_FEEDS_READ', SUBSCRIBED_FEEDS_WRITE: 'android.permission.SUBSCRIBED_FEEDS_WRITE', @@ -182,7 +189,8 @@ export class AndroidPermissions extends IonicNativePlugin { WRITE_CONTACTS: 'android.permission.WRITE_CONTACTS', WRITE_EXTERNAL_STORAGE: 'android.permission.WRITE_EXTERNAL_STORAGE', WRITE_GSERVICES: 'android.permission.WRITE_GSERVICES', - WRITE_HISTORY_BOOKMARKS: 'com.android.browser.permission.WRITE_HISTORY_BOOKMARKS', + WRITE_HISTORY_BOOKMARKS: + 'com.android.browser.permission.WRITE_HISTORY_BOOKMARKS', WRITE_PROFILE: 'android.permission.WRITE_PROFILE', WRITE_SECURE_SETTINGS: 'android.permission.WRITE_SECURE_SETTINGS', WRITE_SETTINGS: 'android.permission.WRITE_SETTINGS', @@ -190,7 +198,7 @@ export class AndroidPermissions extends IonicNativePlugin { WRITE_SOCIAL_STREAM: 'android.permission.WRITE_SOCIAL_STREAM', WRITE_SYNC_SETTINGS: 'android.permission.WRITE_SYNC_SETTINGS', WRITE_USER_DICTIONARY: 'android.permission.WRITE_USER_DICTIONARY', - WRITE_VOICEMAIL: 'com.android.voicemail.permission.WRITE_VOICEMAIL', + WRITE_VOICEMAIL: 'com.android.voicemail.permission.WRITE_VOICEMAIL' }; /** @@ -199,7 +207,9 @@ export class AndroidPermissions extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - checkPermission(permission: string): Promise { return; } + checkPermission(permission: string): Promise { + return; + } /** * Request permission @@ -207,7 +217,9 @@ export class AndroidPermissions extends IonicNativePlugin { * @return {Promise} */ @Cordova() - requestPermission(permission: string): Promise { return; } + requestPermission(permission: string): Promise { + return; + } /** * Request permissions @@ -215,7 +227,9 @@ export class AndroidPermissions extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - requestPermissions(permissions: string[]): Promise { return; } + requestPermissions(permissions: string[]): Promise { + return; + } /** * This function still works now, will not support in the future. @@ -223,6 +237,7 @@ export class AndroidPermissions extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - hasPermission(permission: string): Promise { return; } - + hasPermission(permission: string): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/app-availability/index.ts b/src/@ionic-native/plugins/app-availability/index.ts index 3ff0b1996..391ce5468 100644 --- a/src/@ionic-native/plugins/app-availability/index.ts +++ b/src/@ionic-native/plugins/app-availability/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name App Availability @@ -41,13 +41,13 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; }) @Injectable() export class AppAvailability extends IonicNativePlugin { - /** * Checks if an app is available on device * @param {string} app Package name on android, or URI scheme on iOS * @returns {Promise} */ @Cordova() - check(app: string): Promise { return; } - + check(app: string): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/app-minimize/index.ts b/src/@ionic-native/plugins/app-minimize/index.ts index 5179a9b06..61dca97df 100644 --- a/src/@ionic-native/plugins/app-minimize/index.ts +++ b/src/@ionic-native/plugins/app-minimize/index.ts @@ -1,5 +1,5 @@ -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name App Minimize @@ -31,12 +31,12 @@ import { Injectable } from '@angular/core'; }) @Injectable() export class AppMinimize extends IonicNativePlugin { - /** * Minimizes the application * @return {Promise} */ @Cordova() - minimize(): Promise { return; } - + minimize(): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/app-preferences/index.ts b/src/@ionic-native/plugins/app-preferences/index.ts index 6b7924315..03eac849c 100644 --- a/src/@ionic-native/plugins/app-preferences/index.ts +++ b/src/@ionic-native/plugins/app-preferences/index.ts @@ -1,6 +1,6 @@ -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; -import { Observable } from 'rxjs/Observable'; import { Injectable } from '@angular/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Observable } from 'rxjs/Observable'; /** * @name App Preferences @@ -25,11 +25,18 @@ import { Injectable } from '@angular/core'; plugin: 'cordova-plugin-app-preferences', pluginRef: 'plugins.appPreferences', repo: 'https://github.com/apla/me.apla.cordova.app-preferences', - platforms: ['Android', 'BlackBerry 10', 'Browser', 'iOS', 'macOS', 'Windows 8', 'Windows Phone'] + platforms: [ + 'Android', + 'BlackBerry 10', + 'Browser', + 'iOS', + 'macOS', + 'Windows 8', + 'Windows Phone' + ] }) @Injectable() export class AppPreferences extends IonicNativePlugin { - /** * Get a preference value * @@ -40,7 +47,9 @@ export class AppPreferences extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - fetch(dict: string, key?: string): Promise { return; } + fetch(dict: string, key?: string): Promise { + return; + } /** * Set a preference value @@ -67,7 +76,9 @@ export class AppPreferences extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - remove(dict: string, key?: string): Promise { return; } + remove(dict: string, key?: string): Promise { + return; + } /** * Clear preferences @@ -77,7 +88,9 @@ export class AppPreferences extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - clearAll(): Promise { return; } + clearAll(): Promise { + return; + } /** * Show native preferences interface @@ -87,7 +100,9 @@ export class AppPreferences extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - show(): Promise { return; } + show(): Promise { + return; + } /** * Show native preferences interface @@ -98,7 +113,9 @@ export class AppPreferences extends IonicNativePlugin { @Cordova({ observable: true }) - watch(subscribe: boolean): Observable { return; } + watch(subscribe: boolean): Observable { + return; + } /** * Return named configuration context @@ -111,13 +128,17 @@ export class AppPreferences extends IonicNativePlugin { platforms: ['Android'], sync: true }) - suite(suiteName: string): any { return; } + suite(suiteName: string): any { + return; + } @Cordova({ platforms: ['iOS'], sync: true }) - iosSuite(suiteName: string): any { return; } + iosSuite(suiteName: string): any { + return; + } /** * Return cloud synchronized configuration context @@ -127,7 +148,9 @@ export class AppPreferences extends IonicNativePlugin { @Cordova({ platforms: ['iOS', 'Windows', 'Windows Phone 8'] }) - cloudSync(): Object { return; } + cloudSync(): Object { + return; + } /** * Return default configuration context @@ -137,6 +160,7 @@ export class AppPreferences extends IonicNativePlugin { @Cordova({ platforms: ['iOS', 'Windows', 'Windows Phone 8'] }) - defaults(): Object { return; } - + defaults(): Object { + return; + } } diff --git a/src/@ionic-native/plugins/app-rate/index.ts b/src/@ionic-native/plugins/app-rate/index.ts index 170ee7b4a..3d50780f7 100644 --- a/src/@ionic-native/plugins/app-rate/index.ts +++ b/src/@ionic-native/plugins/app-rate/index.ts @@ -1,5 +1,10 @@ import { Injectable } from '@angular/core'; -import { Cordova, CordovaProperty, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { + Cordova, + CordovaProperty, + IonicNativePlugin, + Plugin +} from '@ionic-native/core'; export interface AppRatePreferences { /** diff --git a/src/@ionic-native/plugins/app-version/index.ts b/src/@ionic-native/plugins/app-version/index.ts index a612159d2..480bda362 100644 --- a/src/@ionic-native/plugins/app-version/index.ts +++ b/src/@ionic-native/plugins/app-version/index.ts @@ -1,7 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; - - +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name App Version @@ -35,33 +33,39 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; }) @Injectable() export class AppVersion extends IonicNativePlugin { - /** * Returns the name of the app * @returns {Promise} */ @Cordova() - getAppName(): Promise { return; } + getAppName(): Promise { + return; + } /** * Returns the package name of the app * @returns {Promise} */ @Cordova() - getPackageName(): Promise { return; } + getPackageName(): Promise { + return; + } /** * Returns the build identifier of the app * @returns {Promise} */ @Cordova() - getVersionCode(): Promise { return; } + getVersionCode(): Promise { + return; + } /** * Returns the version of the app * @returns {Promise} */ @Cordova() - getVersionNumber(): Promise { return; } - + getVersionNumber(): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/apple-pay/index.ts b/src/@ionic-native/plugins/apple-pay/index.ts index 1995cb496..1c90e671c 100644 --- a/src/@ionic-native/plugins/apple-pay/index.ts +++ b/src/@ionic-native/plugins/apple-pay/index.ts @@ -1,17 +1,32 @@ -import {Injectable} from '@angular/core'; -import {Observable} from 'rxjs/Observable'; -import { - Plugin, - Cordova, - IonicNativePlugin -} from '@ionic-native/core'; +import { Injectable } from '@angular/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Observable } from 'rxjs/Observable'; -export type IMakePayments = 'This device can make payments and has a supported card' | 'This device cannot make payments.' | 'This device can make payments but has no supported cards'; +export type IMakePayments = + | 'This device can make payments and has a supported card' + | 'This device cannot make payments.' + | 'This device can make payments but has no supported cards'; export type IShippingType = 'shipping' | 'delivery' | 'store' | 'service'; -export type IBillingRequirement = 'none' | 'all' | 'postcode' | 'name' | 'email' | 'phone'; -export type ITransactionStatus = 'success' | 'failure' | 'invalid-billing-address' | 'invalid-shipping-address' | 'invalid-shipping-contact' | 'require-pin' | 'incorrect-pin' | 'locked-pin'; +export type IBillingRequirement = + | 'none' + | 'all' + | 'postcode' + | 'name' + | 'email' + | 'phone'; +export type ITransactionStatus = + | 'success' + | 'failure' + | 'invalid-billing-address' + | 'invalid-shipping-address' + | 'invalid-shipping-contact' + | 'require-pin' + | 'incorrect-pin' + | 'locked-pin'; export type ICompleteTransaction = 'Payment status applied.'; -export type IUpdateItemsAndShippingStatus = 'Updated List Info' | 'Did you make a payment request?'; +export type IUpdateItemsAndShippingStatus = + | 'Updated List Info' + | 'Did you make a payment request?'; export interface IPaymentResponse { billingNameFirst?: string; @@ -50,7 +65,7 @@ export interface IOrderItem { label: string; amount: number; } -export interface IShippingMethod { +export interface IShippingMethod { identifier: string; label: string; detail: string; @@ -135,11 +150,10 @@ export interface ISelectedShippingContact { plugin: 'cordova-plugin-applepay', pluginRef: 'ApplePay', repo: 'https://github.com/samkelleher/cordova-plugin-applepay', - platforms: ['iOS'], + platforms: ['iOS'] }) @Injectable() export class ApplePay extends IonicNativePlugin { - /** * Detects if the current device supports Apple Pay and has any capable cards registered. * @return {Promise} Returns a promise @@ -174,7 +188,9 @@ export class ApplePay extends IonicNativePlugin { observable: true, clearFunction: 'stopListeningForShippingContactSelection' }) - startListeningForShippingContactSelection(): Observable { + startListeningForShippingContactSelection(): Observable< + ISelectedShippingContact + > { return; } @@ -228,7 +244,9 @@ export class ApplePay extends IonicNativePlugin { @Cordova({ otherPromise: true }) - updateItemsAndShippingMethods(list: IOrderItemsAndShippingMethods): Promise { + updateItemsAndShippingMethods( + list: IOrderItemsAndShippingMethods + ): Promise { return; } @@ -321,7 +339,9 @@ export class ApplePay extends IonicNativePlugin { @Cordova({ otherPromise: true }) - completeLastTransaction(complete: ITransactionStatus): Promise { + completeLastTransaction( + complete: ITransactionStatus + ): Promise { return; } } diff --git a/src/@ionic-native/plugins/appodeal/index.ts b/src/@ionic-native/plugins/appodeal/index.ts index 5d72981f1..fc2e6f06c 100644 --- a/src/@ionic-native/plugins/appodeal/index.ts +++ b/src/@ionic-native/plugins/appodeal/index.ts @@ -1,6 +1,6 @@ -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; -import { Observable } from 'rxjs'; import { Injectable } from '@angular/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Observable } from 'rxjs'; /** * @name Appodeal @@ -46,14 +46,16 @@ export class Appodeal extends IonicNativePlugin { * @param {number} adType */ @Cordova() - initialize(appKey: string, adType: number): void { }; + initialize(appKey: string, adType: number): void {} /** * check if SDK has been initialized * @returns {Promise} */ @Cordova() - isInitialized(): Promise { return; }; + isInitialized(): Promise { + return; + } /** * show ad of specified type @@ -61,7 +63,9 @@ export class Appodeal extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - show(adType: number): Promise { return; }; + show(adType: number): Promise { + return; + } /** * show ad of specified type with placement options @@ -70,24 +74,23 @@ export class Appodeal extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - showWithPlacement( - adType: number, - placement: any - ): Promise { return; }; + showWithPlacement(adType: number, placement: any): Promise { + return; + } /** * hide ad of specified type * @param {number} adType */ @Cordova() - hide(adType: number): void { }; + hide(adType: number): void {} /** * confirm use of ads of specified type * @param {number} adType */ @Cordova() - confirm(adType: number): void { }; + confirm(adType: number): void {} /** * check if ad of specified type has been loaded @@ -95,7 +98,9 @@ export class Appodeal extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - isLoaded(adType: number): Promise { return; }; + isLoaded(adType: number): Promise { + return; + } /** * check if ad of specified @@ -103,7 +108,9 @@ export class Appodeal extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - isPrecache(adType: number): Promise { return; }; + isPrecache(adType: number): Promise { + return; + } /** * @@ -111,75 +118,77 @@ export class Appodeal extends IonicNativePlugin { * @param autoCache */ @Cordova() - setAutoCache(adType: number, autoCache: any): void { }; + setAutoCache(adType: number, autoCache: any): void {} /** * forcefully cache an ad by type * @param {number} adType */ @Cordova() - cache(adType: number): void { }; + cache(adType: number): void {} /** * * @param {boolean} set */ @Cordova() - setOnLoadedTriggerBoth(set: boolean): void { }; + setOnLoadedTriggerBoth(set: boolean): void {} /** * enable or disable Smart Banners * @param {boolean} enabled */ @Cordova() - setSmartBanners(enabled: boolean): void { }; + setSmartBanners(enabled: boolean): void {} /** * enable or disable banner backgrounds * @param {boolean} enabled */ @Cordova() - setBannerBackground(enabled: boolean): void { }; + setBannerBackground(enabled: boolean): void {} /** * enable or disable banner animations * @param {boolean} enabled */ @Cordova() - setBannerAnimation(enabled: boolean): void { }; + setBannerAnimation(enabled: boolean): void {} /** * * @param value */ @Cordova() - set728x90Banners(value: any): void { }; + set728x90Banners(value: any): void {} /** * enable or disable logging * @param {boolean} logging */ @Cordova() - setLogging(logging: boolean): void { }; + setLogging(logging: boolean): void {} /** * enable or disable testing mode * @param {boolean} testing */ @Cordova() - setTesting(testing: boolean): void { }; + setTesting(testing: boolean): void {} /** * reset device ID */ @Cordova() - resetUUID(): void { }; + resetUUID(): void {} /** * get version of Appdeal SDK */ @Cordova() - getVersion(): Promise { return; }; + getVersion(): Promise { + return; + } /** * @@ -187,7 +196,7 @@ export class Appodeal extends IonicNativePlugin { * @param {number} adType */ @Cordova() - disableNetwork(network?: string, adType?: number): void { }; + disableNetwork(network?: string, adType?: number): void {} /** * @@ -195,54 +204,54 @@ export class Appodeal extends IonicNativePlugin { * @param {number} adType */ @Cordova() - disableNetworkType(network?: string, adType?: number): void { }; + disableNetworkType(network?: string, adType?: number): void {} /** * disable Location permissions for Appodeal SDK */ @Cordova() - disableLocationPermissionCheck(): void { }; + disableLocationPermissionCheck(): void {} /** * disable Storage permissions for Appodeal SDK */ @Cordova() - disableWriteExternalStoragePermissionCheck(): void { }; + disableWriteExternalStoragePermissionCheck(): void {} /** * enable event listeners * @param {boolean} enabled */ @Cordova() - enableInterstitialCallbacks(enabled: boolean): void { }; + enableInterstitialCallbacks(enabled: boolean): void {} /** * enable event listeners * @param {boolean} enabled */ @Cordova() - enableSkippableVideoCallbacks(enabled: boolean): void { }; + enableSkippableVideoCallbacks(enabled: boolean): void {} /** * enable event listeners * @param {boolean} enabled */ @Cordova() - enableNonSkippableVideoCallbacks(enabled: boolean): void { }; + enableNonSkippableVideoCallbacks(enabled: boolean): void {} /** * enable event listeners * @param {boolean} enabled */ @Cordova() - enableBannerCallbacks(enabled: boolean): void { }; + enableBannerCallbacks(enabled: boolean): void {} /** * enable event listeners * @param {boolean} enabled */ @Cordova() - enableRewardedVideoCallbacks(enabled: boolean): void { }; + enableRewardedVideoCallbacks(enabled: boolean): void {} /** * @@ -250,7 +259,7 @@ export class Appodeal extends IonicNativePlugin { * @param {boolean} value */ @Cordova() - setCustomBooleanRule(name: string, value: boolean): void { }; + setCustomBooleanRule(name: string, value: boolean): void {} /** * @@ -258,7 +267,7 @@ export class Appodeal extends IonicNativePlugin { * @param {number} value */ @Cordova() - setCustomIntegerRule(name: string, value: number): void { }; + setCustomIntegerRule(name: string, value: number): void {} /** * set rule with float value @@ -266,7 +275,7 @@ export class Appodeal extends IonicNativePlugin { * @param {number} value */ @Cordova() - setCustomDoubleRule(name: string, value: number): void { }; + setCustomDoubleRule(name: string, value: number): void {} /** * set rule with string value @@ -274,243 +283,291 @@ export class Appodeal extends IonicNativePlugin { * @param {string} value */ @Cordova() - setCustomStringRule(name: string, value: string): void { }; + setCustomStringRule(name: string, value: string): void {} /** * set ID preference in Appodeal for current user * @param id */ @Cordova() - setUserId(id: any): void { }; + setUserId(id: any): void {} /** * set Email preference in Appodeal for current user * @param email */ @Cordova() - setEmail(email: any): void { }; + setEmail(email: any): void {} /** * set Birthday preference in Appodeal for current user * @param birthday */ @Cordova() - setBirthday(birthday: any): void { }; + setBirthday(birthday: any): void {} /** * et Age preference in Appodeal for current user * @param age */ @Cordova() - setAge(age: any): void { }; + setAge(age: any): void {} /** * set Gender preference in Appodeal for current user * @param gender */ @Cordova() - setGender(gender: any): void { }; + setGender(gender: any): void {} /** * set Occupation preference in Appodeal for current user * @param occupation */ @Cordova() - setOccupation(occupation: any): void { }; + setOccupation(occupation: any): void {} /** * set Relation preference in Appodeal for current user * @param relation */ @Cordova() - setRelation(relation: any): void { }; + setRelation(relation: any): void {} /** * set Smoking preference in Appodeal for current user * @param smoking */ @Cordova() - setSmoking(smoking: any): void { }; + setSmoking(smoking: any): void {} /** * set Alcohol preference in Appodeal for current user * @param alcohol */ @Cordova() - setAlcohol(alcohol: any): void { }; + setAlcohol(alcohol: any): void {} /** * set Interests preference in Appodeal for current user * @param interests */ @Cordova() - setInterests(interests: any): void { }; + setInterests(interests: any): void {} @Cordova({ eventObservable: true, event: 'onInterstitialLoaded', element: document }) - onInterstitialLoaded(): Observable { return; } + onInterstitialLoaded(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onInterstitialFailedToLoad', element: document }) - onInterstitialFailedToLoad(): Observable { return; } + onInterstitialFailedToLoad(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onInterstitialShown', element: document }) - onInterstitialShown(): Observable { return; } + onInterstitialShown(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onInterstitialClicked', element: document }) - onInterstitialClicked(): Observable { return; } + onInterstitialClicked(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onInterstitialClosed', element: document }) - onInterstitialClosed(): Observable { return; } + onInterstitialClosed(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onSkippableVideoLoaded', element: document }) - onSkippableVideoLoaded(): Observable { return; } + onSkippableVideoLoaded(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onSkippableVideoFailedToLoad', element: document }) - onSkippableVideoFailedToLoad(): Observable { return; } + onSkippableVideoFailedToLoad(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onSkippableVideoShown', element: document }) - onSkippableVideoShown(): Observable { return; } + onSkippableVideoShown(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onSkippableVideoFinished', element: document }) - onSkippableVideoFinished(): Observable { return; } + onSkippableVideoFinished(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onSkippableVideoClosed', element: document }) - onSkippableVideoClosed(): Observable { return; } + onSkippableVideoClosed(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onRewardedVideoLoaded', element: document }) - onRewardedVideoLoaded(): Observable { return; } + onRewardedVideoLoaded(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onRewardedVideoFailedToLoad', element: document }) - onRewardedVideoFailedToLoad(): Observable { return; } + onRewardedVideoFailedToLoad(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onRewardedVideoShown', element: document }) - onRewardedVideoShown(): Observable { return; } + onRewardedVideoShown(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onRewardedVideoFinished', element: document }) - onRewardedVideoFinished(): Observable { return; } + onRewardedVideoFinished(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onRewardedVideoClosed', element: document }) - onRewardedVideoClosed(): Observable { return; } + onRewardedVideoClosed(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onNonSkippableVideoLoaded', element: document }) - onNonSkippableVideoLoaded(): Observable { return; } + onNonSkippableVideoLoaded(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onNonSkippableVideoFailedToLoad', element: document }) - onNonSkippableVideoFailedToLoad(): Observable { return; } + onNonSkippableVideoFailedToLoad(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onNonSkippableVideoShown', element: document }) - onNonSkippableVideoShown(): Observable { return; } + onNonSkippableVideoShown(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onNonSkippableVideoFinished', element: document }) - onNonSkippableVideoFinished(): Observable { return; } + onNonSkippableVideoFinished(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onNonSkippableVideoClosed', element: document }) - onNonSkippableVideoClosed(): Observable { return; } + onNonSkippableVideoClosed(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onBannerClicked', element: document }) - onBannerClicked(): Observable { return; } + onBannerClicked(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onBannerFailedToLoad', element: document }) - onBannerFailedToLoad(): Observable { return; } + onBannerFailedToLoad(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onBannerLoaded', element: document }) - onBannerLoaded(): Observable { return; } + onBannerLoaded(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onBannerShown', element: document }) - onBannerShown(): Observable { return; } + onBannerShown(): Observable { + return; + } } diff --git a/src/@ionic-native/plugins/autostart/index.ts b/src/@ionic-native/plugins/autostart/index.ts index e57c0d829..d04686e03 100644 --- a/src/@ionic-native/plugins/autostart/index.ts +++ b/src/@ionic-native/plugins/autostart/index.ts @@ -1,5 +1,5 @@ -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name Autostart @@ -31,17 +31,15 @@ import { Injectable } from '@angular/core'; }) @Injectable() export class Autostart extends IonicNativePlugin { - /** * Enable the automatic startup after the boot */ @Cordova({ sync: true }) - enable(): void { } + enable(): void {} /** * Disable the automatic startup after the boot */ @Cordova({ sync: true }) - disable(): void { } - + disable(): void {} } diff --git a/src/@ionic-native/plugins/background-fetch/index.ts b/src/@ionic-native/plugins/background-fetch/index.ts index 67bcae52a..32db990da 100644 --- a/src/@ionic-native/plugins/background-fetch/index.ts +++ b/src/@ionic-native/plugins/background-fetch/index.ts @@ -1,15 +1,13 @@ -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface BackgroundFetchConfig { - /** * Set true to cease background-fetch from operating after user "closes" the app. Defaults to true. */ stopOnTerminate?: boolean; } - /** * @name Background Fetch * @description @@ -61,8 +59,6 @@ export interface BackgroundFetchConfig { }) @Injectable() export class BackgroundFetch extends IonicNativePlugin { - - /** * Configures the plugin's fetch callbackFn * @@ -72,7 +68,9 @@ export class BackgroundFetch extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - configure(config: BackgroundFetchConfig): Promise { return; } + configure(config: BackgroundFetchConfig): Promise { + return; + } /** * Start the background-fetch API. @@ -80,14 +78,18 @@ export class BackgroundFetch extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - start(): Promise { return; } + start(): Promise { + return; + } /** * Stop the background-fetch API from firing fetch events. Your callbackFn provided to #configure will no longer be executed. * @returns {Promise} */ @Cordova() - stop(): Promise { return; } + stop(): Promise { + return; + } /** * You MUST call this method in your fetch callbackFn provided to #configure in order to signal to iOS that your fetch action is complete. iOS provides only 30s of background-time for a fetch-event -- if you exceed this 30s, iOS will kill your app. @@ -95,13 +97,14 @@ export class BackgroundFetch extends IonicNativePlugin { @Cordova({ sync: true }) - finish(): void { } + finish(): void {} /** * Return the status of the background-fetch * @returns {Promise} */ @Cordova() - status(): Promise { return; } - + status(): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/background-geolocation/index.ts b/src/@ionic-native/plugins/background-geolocation/index.ts index 99461d26e..5d4cb90df 100644 --- a/src/@ionic-native/plugins/background-geolocation/index.ts +++ b/src/@ionic-native/plugins/background-geolocation/index.ts @@ -1,9 +1,8 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export interface BackgroundGeolocationResponse { - /** * ID of location as stored in DB (or null) */ @@ -50,8 +49,8 @@ export interface BackgroundGeolocationResponse { altitude: number; /** - * accuracy of the altitude if available. - */ + * accuracy of the altitude if available. + */ altitudeAccuracy: number; /** @@ -71,7 +70,6 @@ export interface BackgroundGeolocationResponse { } export interface BackgroundGeolocationConfig { - /** * Desired accuracy in meters. Possible values [0, 10, 100, 1000]. The lower * the number, the more power devoted to GeoLocation resulting in higher @@ -108,19 +106,19 @@ export interface BackgroundGeolocationConfig { */ stopOnTerminate?: boolean; - /**
 - * ANDROID ONLY
 - * Start background service on device boot.
 + /** + * ANDROID ONLY + * Start background service on device boot. * - * Defaults to false
 + * Defaults to false */ startOnBoot?: boolean; - /**
 - * ANDROID ONLY
 + /** + * ANDROID ONLY * If false location service will not be started in foreground and no notification will be shown. * - * Defaults to true
 + * Defaults to true */ startForeground?: boolean; @@ -155,17 +153,17 @@ export interface BackgroundGeolocationConfig { */ notificationIconColor?: string; - /**
 - * ANDROID ONLY
 - * The filename of a custom notification icon. See android quirks.
 - * NOTE: Only available for API Level >=21.
 + /** + * ANDROID ONLY + * The filename of a custom notification icon. See android quirks. + * NOTE: Only available for API Level >=21. */ notificationIconLarge?: string; - /**
 - * ANDROID ONLY
 - * The filename of a custom notification icon. See android quirks.
 - * NOTE: Only available for API Level >=21.
 + /** + * ANDROID ONLY + * The filename of a custom notification icon. See android quirks. + * NOTE: Only available for API Level >=21. */ notificationIconSmall?: string; @@ -183,50 +181,50 @@ export interface BackgroundGeolocationConfig { */ activityType?: string; - /**
 - * IOS ONLY
 - * Pauses location updates when app is paused
 + /** + * IOS ONLY + * Pauses location updates when app is paused * - * Defaults to true
 + * Defaults to true */ pauseLocationUpdates?: boolean; - /**
 - * Server url where to send HTTP POST with recorded locations
 - * @see https://github.com/mauron85/cordova-plugin-background-geolocation#http-locations-posting
 + /** + * Server url where to send HTTP POST with recorded locations + * @see https://github.com/mauron85/cordova-plugin-background-geolocation#http-locations-posting */ url?: string; - /**
 - * Server url where to send fail to post locations
 - * @see https://github.com/mauron85/cordova-plugin-background-geolocation#http-locations-posting
 + /** + * Server url where to send fail to post locations + * @see https://github.com/mauron85/cordova-plugin-background-geolocation#http-locations-posting */ syncUrl?: string; /** - * Specifies how many previously failed locations will be sent to server at once
 + * Specifies how many previously failed locations will be sent to server at once * - * Defaults to 100
 + * Defaults to 100 */ syncThreshold?: number; - /**
 - * Optional HTTP headers sent along in HTTP request
 + /** + * Optional HTTP headers sent along in HTTP request */ httpHeaders?: any; /** - * IOS ONLY
 + * IOS ONLY * Switch to less accurate significant changes and region monitory when in background (default) * - * Defaults to 100
 + * Defaults to 100 */ saveBatteryOnBackground?: boolean; - /**
 - * Limit maximum number of locations stored into db
 + /** + * Limit maximum number of locations stored into db * - * Defaults to 10000
 + * Defaults to 10000 */ maxLocations?: number; @@ -310,15 +308,14 @@ export interface BackgroundGeolocationConfig { }) @Injectable() export class BackgroundGeolocation extends IonicNativePlugin { - - /**
 - * Set location service provider @see https://github.com/mauron85/cordova-plugin-background-geolocation/wiki/Android-providers
 + /** + * Set location service provider @see https://github.com/mauron85/cordova-plugin-background-geolocation/wiki/Android-providers * * Possible values: - * ANDROID_DISTANCE_FILTER_PROVIDER: 0,
 - * ANDROID_ACTIVITY_PROVIDER: 1
 + * ANDROID_DISTANCE_FILTER_PROVIDER: 0, + * ANDROID_ACTIVITY_PROVIDER: 1 * - * @enum {number}
 + * @enum {number} */ LocationProvider: any = { ANDROID_DISTANCE_FILTER_PROVIDER: 0, @@ -326,17 +323,17 @@ export class BackgroundGeolocation extends IonicNativePlugin { }; /** - * Desired accuracy in meters. Possible values [0, 10, 100, 1000].
 - * The lower the number, the more power devoted to GeoLocation resulting in higher accuracy readings.
 - * 1000 results in lowest power drain and least accurate readings.
 + * Desired accuracy in meters. Possible values [0, 10, 100, 1000]. + * The lower the number, the more power devoted to GeoLocation resulting in higher accuracy readings. + * 1000 results in lowest power drain and least accurate readings. * * Possible values: - * HIGH: 0
 - * MEDIUM: 10
 - * LOW: 100
 + * HIGH: 0 + * MEDIUM: 10 + * LOW: 100 * PASSIVE: 1000 * - * enum {number}
 + * enum {number} */ Accuracy: any = { HIGH: 0, @@ -345,14 +342,14 @@ export class BackgroundGeolocation extends IonicNativePlugin { PASSIVE: 1000 }; - /**
 - * Used in the switchMode function
 + /** + * Used in the switchMode function * * Possible values: * BACKGROUND: 0 - * FOREGROUND: 1
 + * FOREGROUND: 1 * - * @enum {number}
 + * @enum {number} */ Mode: any = { BACKGROUND: 0, @@ -369,7 +366,11 @@ export class BackgroundGeolocation extends IonicNativePlugin { callbackOrder: 'reverse', observable: true }) - configure(options: BackgroundGeolocationConfig): Observable { return; } + configure( + options: BackgroundGeolocationConfig + ): Observable { + return; + } /** * Turn ON the background-geolocation system. @@ -377,14 +378,18 @@ export class BackgroundGeolocation extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - start(): Promise { return; } + start(): Promise { + return; + } /** * Turn OFF background-tracking * @returns {Promise} */ @Cordova() - stop(): Promise { return; } + stop(): Promise { + return; + } /** * Inform the native plugin that you're finished, the background-task may be completed @@ -393,7 +398,9 @@ export class BackgroundGeolocation extends IonicNativePlugin { @Cordova({ platforms: ['iOS'] }) - finish(): Promise { return; } + finish(): Promise { + return; + } /** * Force the plugin to enter "moving" or "stationary" state @@ -403,7 +410,9 @@ export class BackgroundGeolocation extends IonicNativePlugin { @Cordova({ platforms: ['iOS'] }) - changePace(isMoving: boolean): Promise { return; } + changePace(isMoving: boolean): Promise { + return; + } /** * Setup configuration @@ -413,7 +422,9 @@ export class BackgroundGeolocation extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - setConfig(options: BackgroundGeolocationConfig): Promise { return; } + setConfig(options: BackgroundGeolocationConfig): Promise { + return; + } /** * Returns current stationaryLocation if available. null if not @@ -422,7 +433,9 @@ export class BackgroundGeolocation extends IonicNativePlugin { @Cordova({ platforms: ['iOS'] }) - getStationaryLocation(): Promise { return; } + getStationaryLocation(): Promise { + return; + } /** * Add a stationary-region listener. Whenever the devices enters "stationary-mode", @@ -432,7 +445,9 @@ export class BackgroundGeolocation extends IonicNativePlugin { @Cordova({ platforms: ['iOS'] }) - onStationary(): Promise { return; } + onStationary(): Promise { + return; + } /** * Check if location is enabled on the device @@ -441,19 +456,21 @@ export class BackgroundGeolocation extends IonicNativePlugin { @Cordova({ platforms: ['Android'] }) - isLocationEnabled(): Promise { return; } + isLocationEnabled(): Promise { + return; + } /** * Display app settings to change permissions */ @Cordova({ sync: true }) - showAppSettings(): void { } + showAppSettings(): void {} /** * Display device location settings */ @Cordova({ sync: true }) - showLocationSettings(): void { } + showLocationSettings(): void {} /** * Method can be used to detect user changes in location services settings. @@ -464,7 +481,9 @@ export class BackgroundGeolocation extends IonicNativePlugin { @Cordova({ platforms: ['Android'] }) - watchLocationMode(): Promise { return; } + watchLocationMode(): Promise { + return; + } /** * Stop watching for location mode changes. @@ -473,7 +492,9 @@ export class BackgroundGeolocation extends IonicNativePlugin { @Cordova({ platforms: ['Android'] }) - stopWatchingLocationMode(): Promise { return; } + stopWatchingLocationMode(): Promise { + return; + } /** * Method will return all stored locations. @@ -487,14 +508,18 @@ export class BackgroundGeolocation extends IonicNativePlugin { @Cordova({ platforms: ['Android'] }) - getLocations(): Promise { return; } + getLocations(): Promise { + return; + } - /**
 - * Method will return locations, which has not been yet posted to server. NOTE: Locations does contain locationId.
 + /** + * Method will return locations, which has not been yet posted to server. NOTE: Locations does contain locationId. * @returns {Promise} */ @Cordova() - getValidLocations(): Promise { return; } + getValidLocations(): Promise { + return; + } /** * Delete stored location by given locationId. @@ -504,7 +529,9 @@ export class BackgroundGeolocation extends IonicNativePlugin { @Cordova({ platforms: ['Android'] }) - deleteLocation(locationId: number): Promise { return; } + deleteLocation(locationId: number): Promise { + return; + } /** * Delete all stored locations. @@ -513,17 +540,19 @@ export class BackgroundGeolocation extends IonicNativePlugin { @Cordova({ platforms: ['Android'] }) - deleteAllLocations(): Promise { return; } + deleteAllLocations(): Promise { + return; + } /** * Normally plugin will handle switching between BACKGROUND and FOREGROUND mode itself. * Calling switchMode you can override plugin behavior and force plugin to switch into other mode. * * In FOREGROUND mode plugin uses iOS local manager to receive locations and behavior is affected by option.desiredAccuracy and option.distanceFilter. - * In BACKGROUND mode plugin uses significant changes and region monitoring to receive locations and uses option.stationaryRadius only.
 + * In BACKGROUND mode plugin uses significant changes and region monitoring to receive locations and uses option.stationaryRadius only. * * BackgroundGeolocation.Mode.FOREGROUND - * BackgroundGeolocation.Mode.BACKGROUND
 + * BackgroundGeolocation.Mode.BACKGROUND ** * @param modeId {number} * @returns {Promise} @@ -531,16 +560,19 @@ export class BackgroundGeolocation extends IonicNativePlugin { @Cordova({ platforms: ['iOS'] }) - switchMode(modeId: number): Promise { return; } + switchMode(modeId: number): Promise { + return; + } - /**
 - * Return all logged events. Useful for plugin debugging. Parameter limit limits number of returned entries.
 - * @see https://github.com/mauron85/cordova-plugin-background-geolocation/tree/v2.2.1#debugging for more information.
 + /** + * Return all logged events. Useful for plugin debugging. Parameter limit limits number of returned entries. + * @see https://github.com/mauron85/cordova-plugin-background-geolocation/tree/v2.2.1#debugging for more information. * - * @param limit {number} Limits the number of entries
 + * @param limit {number} Limits the number of entries * @returns {Promise} */ @Cordova() - getLogEntries(limit: number): Promise { return; } - + getLogEntries(limit: number): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/background-mode/index.ts b/src/@ionic-native/plugins/background-mode/index.ts index 2d353b7a1..62b2ccdb5 100644 --- a/src/@ionic-native/plugins/background-mode/index.ts +++ b/src/@ionic-native/plugins/background-mode/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; /** diff --git a/src/@ionic-native/plugins/backlight/index.ts b/src/@ionic-native/plugins/backlight/index.ts index ab9c638da..6980995fe 100644 --- a/src/@ionic-native/plugins/backlight/index.ts +++ b/src/@ionic-native/plugins/backlight/index.ts @@ -1,6 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; - +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @beta @@ -33,19 +32,21 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; }) @Injectable() export class Backlight extends IonicNativePlugin { - /** * This function turns backlight on * @return {Promise} Returns a promise that resolves when the backlight is on */ @Cordova() - on(): Promise { return; } + on(): Promise { + return; + } /** * This function turns backlight off * @return {Promise} Returns a promise that resolves when the backlight is off */ @Cordova() - off(): Promise { return; } - + off(): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/badge/index.ts b/src/@ionic-native/plugins/badge/index.ts index eb4828fe5..53eb5b530 100644 --- a/src/@ionic-native/plugins/badge/index.ts +++ b/src/@ionic-native/plugins/badge/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name Badge diff --git a/src/@ionic-native/plugins/base64/index.ts b/src/@ionic-native/plugins/base64/index.ts index c43fda67d..ed09b48b8 100644 --- a/src/@ionic-native/plugins/base64/index.ts +++ b/src/@ionic-native/plugins/base64/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @beta @@ -33,13 +33,13 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; }) @Injectable() export class Base64 extends IonicNativePlugin { - /** * This function encodes base64 of any file * @param {string} filePath Absolute file path * @return {Promise} Returns a promise that resolves when the file is successfully encoded */ @Cordova() - encodeFile(filePath: string): Promise { return; } - + encodeFile(filePath: string): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/bluetooth-serial/index.ts b/src/@ionic-native/plugins/bluetooth-serial/index.ts index 7dfaeedff..74d67e4a2 100644 --- a/src/@ionic-native/plugins/bluetooth-serial/index.ts +++ b/src/@ionic-native/plugins/bluetooth-serial/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; /** @@ -39,7 +39,6 @@ import { Observable } from 'rxjs/Observable'; }) @Injectable() export class BluetoothSerial extends IonicNativePlugin { - /** * Connect to a Bluetooth device * @param {string} macAddress_or_uuid Identifier of the remote device @@ -50,7 +49,9 @@ export class BluetoothSerial extends IonicNativePlugin { observable: true, clearFunction: 'disconnect' }) - connect(macAddress_or_uuid: string): Observable { return; } + connect(macAddress_or_uuid: string): Observable { + return; + } /** * Connect insecurely to a Bluetooth device @@ -62,14 +63,18 @@ export class BluetoothSerial extends IonicNativePlugin { observable: true, clearFunction: 'disconnect' }) - connectInsecure(macAddress: string): Observable { return; } + connectInsecure(macAddress: string): Observable { + return; + } /** * Disconnect from the connected device * @returns {Promise} */ @Cordova() - disconnect(): Promise { return; } + disconnect(): Promise { + return; + } /** * Writes data to the serial port @@ -79,7 +84,9 @@ export class BluetoothSerial extends IonicNativePlugin { @Cordova({ platforms: ['Android', 'iOS', 'Windows Phone'] }) - write(data: any): Promise { return; } + write(data: any): Promise { + return; + } /** * Gets the number of bytes of data available @@ -87,7 +94,10 @@ export class BluetoothSerial extends IonicNativePlugin { */ @Cordova({ platforms: ['Android', 'iOS', 'Windows Phone'] - }) available(): Promise { return; } + }) + available(): Promise { + return; + } /** * Reads data from the buffer @@ -96,7 +106,9 @@ export class BluetoothSerial extends IonicNativePlugin { @Cordova({ platforms: ['Android', 'iOS', 'Windows Phone'] }) - read(): Promise { return; } + read(): Promise { + return; + } /** * Reads data from the buffer until it reaches a delimiter @@ -106,7 +118,9 @@ export class BluetoothSerial extends IonicNativePlugin { @Cordova({ platforms: ['Android', 'iOS', 'Windows Phone'] }) - readUntil(delimiter: string): Promise { return; } + readUntil(delimiter: string): Promise { + return; + } /** * Subscribe to be notified when data is received @@ -118,7 +132,9 @@ export class BluetoothSerial extends IonicNativePlugin { observable: true, clearFunction: 'unsubscribe' }) - subscribe(delimiter: string): Observable { return; } + subscribe(delimiter: string): Observable { + return; + } /** * Subscribe to be notified when data is received @@ -129,7 +145,9 @@ export class BluetoothSerial extends IonicNativePlugin { observable: true, clearFunction: 'unsubscribeRawData' }) - subscribeRawData(): Observable { return; } + subscribeRawData(): Observable { + return; + } /** * Clears data in buffer @@ -138,7 +156,9 @@ export class BluetoothSerial extends IonicNativePlugin { @Cordova({ platforms: ['Android', 'iOS', 'Windows Phone'] }) - clear(): Promise { return; } + clear(): Promise { + return; + } /** * Lists bonded devices @@ -147,7 +167,9 @@ export class BluetoothSerial extends IonicNativePlugin { @Cordova({ platforms: ['Android', 'iOS', 'Windows Phone'] }) - list(): Promise { return; } + list(): Promise { + return; + } /** * Reports if bluetooth is enabled @@ -156,7 +178,9 @@ export class BluetoothSerial extends IonicNativePlugin { @Cordova({ platforms: ['Android', 'iOS', 'Windows Phone'] }) - isEnabled(): Promise { return; } + isEnabled(): Promise { + return; + } /** * Reports the connection status @@ -165,7 +189,9 @@ export class BluetoothSerial extends IonicNativePlugin { @Cordova({ platforms: ['Android', 'iOS', 'Windows Phone'] }) - isConnected(): Promise { return; } + isConnected(): Promise { + return; + } /** * Reads the RSSI from the connected peripheral @@ -174,7 +200,9 @@ export class BluetoothSerial extends IonicNativePlugin { @Cordova({ platforms: ['Android', 'iOS', 'Windows Phone'] }) - readRSSI(): Promise { return; } + readRSSI(): Promise { + return; + } /** * Show the Bluetooth settings on the device @@ -183,7 +211,9 @@ export class BluetoothSerial extends IonicNativePlugin { @Cordova({ platforms: ['Android', 'iOS', 'Windows Phone'] }) - showBluetoothSettings(): Promise { return; } + showBluetoothSettings(): Promise { + return; + } /** * Enable Bluetooth on the device @@ -192,7 +222,9 @@ export class BluetoothSerial extends IonicNativePlugin { @Cordova({ platforms: ['Android', 'iOS', 'Windows Phone'] }) - enable(): Promise { return; } + enable(): Promise { + return; + } /** * Discover unpaired devices @@ -201,7 +233,9 @@ export class BluetoothSerial extends IonicNativePlugin { @Cordova({ platforms: ['Android', 'iOS', 'Windows Phone'] }) - discoverUnpaired(): Promise { return; } + discoverUnpaired(): Promise { + return; + } /** * Subscribe to be notified on Bluetooth device discovery. Discovery process must be initiated with the `discoverUnpaired` function. @@ -212,7 +246,9 @@ export class BluetoothSerial extends IonicNativePlugin { observable: true, clearFunction: 'clearDeviceDiscoveredListener' }) - setDeviceDiscoveredListener(): Observable { return; } + setDeviceDiscoveredListener(): Observable { + return; + } /** * Sets the human readable device name that is broadcasted to other devices @@ -222,7 +258,7 @@ export class BluetoothSerial extends IonicNativePlugin { platforms: ['Android'], sync: true }) - setName(newName: string): void { } + setName(newName: string): void {} /** * Makes the device discoverable by other devices @@ -232,6 +268,5 @@ export class BluetoothSerial extends IonicNativePlugin { platforms: ['Android'], sync: true }) - setDiscoverable(discoverableDuration: number): void { } - + setDiscoverable(discoverableDuration: number): void {} } diff --git a/src/@ionic-native/plugins/braintree/index.ts b/src/@ionic-native/plugins/braintree/index.ts index dd805ff9c..4ab1f9c88 100644 --- a/src/@ionic-native/plugins/braintree/index.ts +++ b/src/@ionic-native/plugins/braintree/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * Options for the setupApplePay method. @@ -116,8 +116,7 @@ export interface PaymentUIResult { /** * Information about the Apple Pay card used to complete a payment (if Apple Pay was used). */ - applePaycard: { - }; + applePaycard: {}; /** * Information about 3D Secure card used to complete a payment (if 3D Secure was used). @@ -201,12 +200,12 @@ export interface PaymentUIResult { pluginRef: 'BraintreePlugin', repo: 'https://github.com/taracque/cordova-plugin-braintree', platforms: ['Android', 'iOS'], - install: 'ionic cordova plugin add https://github.com/taracque/cordova-plugin-braintree', - installVariables: [], + install: + 'ionic cordova plugin add https://github.com/taracque/cordova-plugin-braintree', + installVariables: [] }) @Injectable() export class Braintree extends IonicNativePlugin { - /** * Used to initialize the Braintree client. This function must be called before other methods can be used. * As the initialize code is async, be sure you call all Braintree related methods after the initialize promise has resolved. @@ -215,9 +214,11 @@ export class Braintree extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves with undefined on successful initialization, or rejects with a string message describing the failure. */ @Cordova({ - platforms: ['Android', 'iOS'], + platforms: ['Android', 'iOS'] }) - initialize(token: string): Promise { return; } + initialize(token: string): Promise { + return; + } /** * Used to configure Apple Pay on iOS. @@ -232,9 +233,11 @@ export class Braintree extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves with undefined on successful initialization, or rejects with a string message describing the failure. */ @Cordova({ - platforms: ['iOS'], + platforms: ['iOS'] }) - setupApplePay(options: ApplePayOptions): Promise { return; } + setupApplePay(options: ApplePayOptions): Promise { + return; + } /** * Shows Braintree's Drop-In Payments UI. @@ -244,7 +247,11 @@ export class Braintree extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves with a PaymentUIResult object on successful payment (or the user cancels), or rejects with a string message describing the failure. */ @Cordova({ - platforms: ['Android', 'iOS'], + platforms: ['Android', 'iOS'] }) - presentDropInPaymentUI(options?: PaymentUIOptions): Promise { return; } + presentDropInPaymentUI( + options?: PaymentUIOptions + ): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/broadcaster/index.ts b/src/@ionic-native/plugins/broadcaster/index.ts index 8aabbb902..2d895a204 100644 --- a/src/@ionic-native/plugins/broadcaster/index.ts +++ b/src/@ionic-native/plugins/broadcaster/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; /** @@ -32,7 +32,6 @@ import { Observable } from 'rxjs/Observable'; }) @Injectable() export class Broadcaster extends IonicNativePlugin { - /** * This function listen to an event sent from the native code * @param eventName {string} @@ -43,7 +42,9 @@ export class Broadcaster extends IonicNativePlugin { clearFunction: 'removeEventListener', clearWithArgs: true }) - addEventListener(eventName: string): Observable { return; } + addEventListener(eventName: string): Observable { + return; + } /** * This function sends data to the native code @@ -52,6 +53,7 @@ export class Broadcaster extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves when an event is successfully fired */ @Cordova() - fireNativeEvent(eventName: string, eventData: any): Promise { return; } - + fireNativeEvent(eventName: string, eventData: any): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/browser-tab/index.ts b/src/@ionic-native/plugins/browser-tab/index.ts index d41848c07..e85e3dc2c 100644 --- a/src/@ionic-native/plugins/browser-tab/index.ts +++ b/src/@ionic-native/plugins/browser-tab/index.ts @@ -1,5 +1,5 @@ -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name Browser Tab @@ -41,13 +41,14 @@ import { Injectable } from '@angular/core'; }) @Injectable() export class BrowserTab extends IonicNativePlugin { - /** * Check if BrowserTab option is available * @return {Promise} Returns a promise that resolves when check is successful and returns true or false */ @Cordova() - isAvailable(): Promise { return; } + isAvailable(): Promise { + return; + } /** * Opens the provided URL using a browser tab @@ -55,12 +56,16 @@ export class BrowserTab extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves when check open was successful */ @Cordova() - openUrl(url: string): Promise { return; } + openUrl(url: string): Promise { + return; + } /** * Closes browser tab * @return {Promise} Returns a promise that resolves when close was finished */ @Cordova() - close(): Promise { return; } + close(): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/camera-preview/index.ts b/src/@ionic-native/plugins/camera-preview/index.ts index 4545d9635..f783a2d78 100644 --- a/src/@ionic-native/plugins/camera-preview/index.ts +++ b/src/@ionic-native/plugins/camera-preview/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface CameraPreviewDimensions { /** The width of the camera preview, default to window.screen.width */ @@ -131,12 +131,12 @@ export interface CameraPreviewPictureOptions { pluginName: 'CameraPreview', plugin: 'cordova-plugin-camera-preview', pluginRef: 'CameraPreview', - repo: 'https://github.com/cordova-plugin-camera-preview/cordova-plugin-camera-preview', + repo: + 'https://github.com/cordova-plugin-camera-preview/cordova-plugin-camera-preview', platforms: ['Android', 'iOS'] }) @Injectable() export class CameraPreview extends IonicNativePlugin { - FOCUS_MODE = { FIXED: 'fixed', AUTO: 'auto', @@ -189,35 +189,45 @@ export class CameraPreview extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - startCamera(options: CameraPreviewOptions): Promise { return; } + startCamera(options: CameraPreviewOptions): Promise { + return; + } /** * Stops the camera preview instance. (iOS & Android) * @return {Promise} */ @Cordova() - stopCamera(): Promise { return; } + stopCamera(): Promise { + return; + } /** * Switch from the rear camera and front camera, if available. * @return {Promise} */ @Cordova() - switchCamera(): Promise { return; } + switchCamera(): Promise { + return; + } /** * Hide the camera preview box. * @return {Promise} */ @Cordova() - hide(): Promise { return; } + hide(): Promise { + return; + } /** * Show the camera preview box. * @return {Promise} */ @Cordova() - show(): Promise { return; } + show(): Promise { + return; + } /** * Take the picture (base64) @@ -228,7 +238,9 @@ export class CameraPreview extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - takePicture(options?: CameraPreviewPictureOptions): Promise { return; } + takePicture(options?: CameraPreviewPictureOptions): Promise { + return; + } /** * @@ -241,7 +253,9 @@ export class CameraPreview extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - setColorEffect(effect: string): Promise { return; } + setColorEffect(effect: string): Promise { + return; + } /** * Set the zoom (Android) @@ -252,21 +266,27 @@ export class CameraPreview extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - setZoom(zoom?: number): Promise { return; } + setZoom(zoom?: number): Promise { + return; + } /** - * Get the maximum zoom (Android) - * @return {Promise} - */ + * Get the maximum zoom (Android) + * @return {Promise} + */ @Cordova() - getMaxZoom(): Promise { return; } + getMaxZoom(): Promise { + return; + } /** * Get current zoom (Android) * @return {Promise} */ @Cordova() - getZoom(): Promise { return; } + getZoom(): Promise { + return; + } /** * Set the preview Size @@ -277,14 +297,18 @@ export class CameraPreview extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - setPreviewSize(dimensions?: CameraPreviewDimensions): Promise { return; } + setPreviewSize(dimensions?: CameraPreviewDimensions): Promise { + return; + } /** * Get focus mode * @return {Promise} */ @Cordova() - getFocusMode(): Promise { return; } + getFocusMode(): Promise { + return; + } /** * Set the focus mode @@ -295,21 +319,27 @@ export class CameraPreview extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - setFocusMode(focusMode?: string): Promise { return; } + setFocusMode(focusMode?: string): Promise { + return; + } /** * Get supported focus modes * @return {Promise} */ @Cordova() - getSupportedFocusModes(): Promise { return; } + getSupportedFocusModes(): Promise { + return; + } /** * Get the current flash mode * @return {Promise} */ @Cordova() - getFlashMode(): Promise { return; } + getFlashMode(): Promise { + return; + } /** * Set the flashmode @@ -320,35 +350,45 @@ export class CameraPreview extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - setFlashMode(flashMode?: string): Promise { return; } + setFlashMode(flashMode?: string): Promise { + return; + } /** * Get supported flash modes * @return {Promise} */ @Cordova() - getSupportedFlashModes(): Promise { return; } + getSupportedFlashModes(): Promise { + return; + } /** * Get supported picture sizes * @return {Promise} */ @Cordova() - getSupportedPictureSizes(): Promise { return; } + getSupportedPictureSizes(): Promise { + return; + } /** * Get exposure mode * @return {Promise} */ @Cordova() - getExposureMode(): Promise { return; } + getExposureMode(): Promise { + return; + } /** * Get exposure modes * @return {Promise} */ @Cordova() - getExposureModes(): Promise { return; } + getExposureModes(): Promise { + return; + } /** * Set exposure mode @@ -359,14 +399,18 @@ export class CameraPreview extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - setExposureMode(lock?: string): Promise { return; } + setExposureMode(lock?: string): Promise { + return; + } /** * Get exposure compensation (Android) * @return {Promise} */ @Cordova() - getExposureCompensation(): Promise { return; } + getExposureCompensation(): Promise { + return; + } /** * Set exposure compensation (Android) @@ -377,14 +421,18 @@ export class CameraPreview extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - setExposureCompensation(exposureCompensation?: number): Promise { return; } + setExposureCompensation(exposureCompensation?: number): Promise { + return; + } /** * Get exposure compensation range (Android) * @return {Promise} */ @Cordova() - getExposureCompensationRange(): Promise { return; } + getExposureCompensationRange(): Promise { + return; + } /** * Set specific focus point. Note, this assumes the camera is full-screen. @@ -393,6 +441,7 @@ export class CameraPreview extends IonicNativePlugin { * @return {Promise} */ @Cordova() - tapToFocus(xPoint: number, yPoint: number): Promise { return; } - + tapToFocus(xPoint: number, yPoint: number): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/camera/index.ts b/src/@ionic-native/plugins/camera/index.ts index 5afb20219..ddb0a02d5 100644 --- a/src/@ionic-native/plugins/camera/index.ts +++ b/src/@ionic-native/plugins/camera/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface CameraOptions { /** Picture quality in range 0-100. Default is 50 */ @@ -33,7 +33,7 @@ export interface CameraOptions { /** * Width in pixels to scale image. Must be used with targetHeight. * Aspect ratio remains constant. - */ + */ targetWidth?: number; /** * Height in pixels to scale image. Must be used with targetWidth. @@ -165,7 +165,6 @@ export enum Direction { }) @Injectable() export class Camera extends IonicNativePlugin { - /** * Constant for possible destination types */ @@ -200,7 +199,6 @@ export class Camera extends IonicNativePlugin { ALLMEDIA: 2 }; - /** * Convenience constant */ @@ -213,7 +211,6 @@ export class Camera extends IonicNativePlugin { SAVEDPHOTOALBUM: 2 }; - /** * Convenience constant */ @@ -243,7 +240,9 @@ export class Camera extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - getPicture(options?: CameraOptions): Promise { return; } + getPicture(options?: CameraOptions): Promise { + return; + } /** * Remove intermediate image files that are kept in temporary storage after calling camera.getPicture. @@ -253,6 +252,7 @@ export class Camera extends IonicNativePlugin { @Cordova({ platforms: ['iOS'] }) - cleanup(): Promise { return; }; - + cleanup(): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/card-io/index.ts b/src/@ionic-native/plugins/card-io/index.ts index 5d96b76e5..4fccf4a15 100644 --- a/src/@ionic-native/plugins/card-io/index.ts +++ b/src/@ionic-native/plugins/card-io/index.ts @@ -1,8 +1,7 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface CardIOOptions { - /** * Set to true to require expiry date */ @@ -82,11 +81,9 @@ export interface CardIOOptions { * Once a card image has been captured but before it has been processed, this value will determine whether to continue processing as usual. */ supressScan?: boolean; - } export interface CardIOResponse { - /** * Card type */ @@ -126,7 +123,6 @@ export interface CardIOResponse { * Cardholder name */ cardholderName: string; - } /** @@ -173,7 +169,6 @@ export interface CardIOResponse { }) @Injectable() export class CardIO extends IonicNativePlugin { - /** * Check whether card scanning is currently available. (May vary by * device, OS version, network connectivity, etc.) @@ -181,7 +176,9 @@ export class CardIO extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - canScan(): Promise { return; } + canScan(): Promise { + return; + } /** * Scan a credit card with card.io. @@ -189,13 +186,16 @@ export class CardIO extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - scan(options?: CardIOOptions): Promise { return; } + scan(options?: CardIOOptions): Promise { + return; + } /** * Retrieve the version of the card.io library. Useful when contacting support. * @returns {Promise} */ @Cordova() - version(): Promise { return; } - + version(): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/clipboard/index.ts b/src/@ionic-native/plugins/clipboard/index.ts index 1070bf6da..ce3b0900c 100644 --- a/src/@ionic-native/plugins/clipboard/index.ts +++ b/src/@ionic-native/plugins/clipboard/index.ts @@ -1,5 +1,6 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; + /** * @name Clipboard * @description @@ -36,20 +37,22 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; }) @Injectable() export class Clipboard extends IonicNativePlugin { - /** * Copies the given text * @param {string} text Text that gets copied on the system clipboard * @returns {Promise} Returns a promise after the text has been copied */ @Cordova() - copy(text: string): Promise { return; } + copy(text: string): Promise { + return; + } /** * Pastes the text stored in clipboard * @returns {Promise} Returns a promise after the text has been pasted */ @Cordova() - paste(): Promise { return; } - + paste(): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/code-push/index.ts b/src/@ionic-native/plugins/code-push/index.ts index 6db99ce70..b446cde2f 100644 --- a/src/@ionic-native/plugins/code-push/index.ts +++ b/src/@ionic-native/plugins/code-push/index.ts @@ -1,9 +1,18 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; + namespace Http { export const enum Verb { - GET, HEAD, POST, PUT, DELETE, TRACE, OPTIONS, CONNECT, PATCH + GET, + HEAD, + POST, + PUT, + DELETE, + TRACE, + OPTIONS, + CONNECT, + PATCH } export interface Response { @@ -13,7 +22,12 @@ namespace Http { export interface Requester { request(verb: Verb, url: string, callback: Callback): void; - request(verb: Verb, url: string, requestBody: string, callback: Callback): void; + request( + verb: Verb, + url: string, + requestBody: string, + callback: Callback + ): void; } } @@ -50,7 +64,11 @@ export interface IRemotePackage extends IPackage { * @param downloadError Optional callback invoked in case of an error. * @param downloadProgress Optional callback invoked during the download process. It is called several times with one DownloadProgress parameter. */ - download(downloadSuccess: SuccessCallback, downloadError?: ErrorCallback, downloadProgress?: SuccessCallback): void; + download( + downloadSuccess: SuccessCallback, + downloadError?: ErrorCallback, + downloadProgress?: SuccessCallback + ): void; /** * Aborts the current download session, previously started with download(). @@ -58,7 +76,10 @@ export interface IRemotePackage extends IPackage { * @param abortSuccess Optional callback invoked if the abort operation succeeded. * @param abortError Optional callback invoked in case of an error. */ - abortDownload(abortSuccess?: SuccessCallback, abortError?: ErrorCallback): void; + abortDownload( + abortSuccess?: SuccessCallback, + abortError?: ErrorCallback + ): void; } /** @@ -86,7 +107,11 @@ export interface ILocalPackage extends IPackage { * @param installError Optional callback inovoked in case of an error. * @param installOptions Optional parameter used for customizing the installation behavior. */ - install(installSuccess: SuccessCallback, errorCallback?: ErrorCallback, installOptions?: InstallOptions): void; + install( + installSuccess: SuccessCallback, + errorCallback?: ErrorCallback, + installOptions?: InstallOptions + ): void; } /** @@ -123,13 +148,19 @@ interface IPackageInfoMetadata extends ILocalPackage { } interface NativeUpdateNotification { - updateAppVersion: boolean; // Always true + updateAppVersion: boolean; // Always true appVersion: string; } -export interface Callback { (error: Error, parameter: T): void; } -export interface SuccessCallback { (result?: T): void; } -export interface ErrorCallback { (error?: Error): void; } +export interface Callback { + (error: Error, parameter: T): void; +} +export interface SuccessCallback { + (result?: T): void; +} +export interface ErrorCallback { + (error?: Error): void; +} interface Configuration { appVersion: string; @@ -146,26 +177,40 @@ declare class AcquisitionStatus { declare class AcquisitionManager { constructor(httpRequester: Http.Requester, configuration: Configuration); - public queryUpdateWithCurrentPackage(currentPackage: IPackage, callback?: Callback): void; - public reportStatusDeploy(pkg?: IPackage, status?: string, previousLabelOrAppVersion?: string, previousDeploymentKey?: string, callback?: Callback): void; + public queryUpdateWithCurrentPackage( + currentPackage: IPackage, + callback?: Callback + ): void; + public reportStatusDeploy( + pkg?: IPackage, + status?: string, + previousLabelOrAppVersion?: string, + previousDeploymentKey?: string, + callback?: Callback + ): void; public reportStatusDownload(pkg: IPackage, callback?: Callback): void; } interface CodePushCordovaPlugin { - /** * Get the current package information. * * @param packageSuccess Callback invoked with the currently deployed package information. * @param packageError Optional callback invoked in case of an error. */ - getCurrentPackage(packageSuccess: SuccessCallback, packageError?: ErrorCallback): void; + getCurrentPackage( + packageSuccess: SuccessCallback, + packageError?: ErrorCallback + ): void; /** * Gets the pending package information, if any. A pending package is one that has been installed but the application still runs the old code. * This happends only after a package has been installed using ON_NEXT_RESTART or ON_NEXT_RESUME mode, but the application was not restarted/resumed yet. */ - getPendingPackage(packageSuccess: SuccessCallback, packageError?: ErrorCallback): void; + getPendingPackage( + packageSuccess: SuccessCallback, + packageError?: ErrorCallback + ): void; /** * Checks with the CodePush server if an update package is available for download. @@ -176,7 +221,11 @@ interface CodePushCordovaPlugin { * @param queryError Optional callback invoked in case of an error. * @param deploymentKey Optional deployment key that overrides the config.xml setting. */ - checkForUpdate(querySuccess: SuccessCallback, queryError?: ErrorCallback, deploymentKey?: string): void; + checkForUpdate( + querySuccess: SuccessCallback, + queryError?: ErrorCallback, + deploymentKey?: string + ): void; /** * Notifies the plugin that the update operation succeeded and that the application is ready. @@ -186,13 +235,19 @@ interface CodePushCordovaPlugin { * @param notifySucceeded Optional callback invoked if the plugin was successfully notified. * @param notifyFailed Optional callback invoked in case of an error during notifying the plugin. */ - notifyApplicationReady(notifySucceeded?: SuccessCallback, notifyFailed?: ErrorCallback): void; + notifyApplicationReady( + notifySucceeded?: SuccessCallback, + notifyFailed?: ErrorCallback + ): void; /** * Reloads the application. If there is a pending update package installed using ON_NEXT_RESTART or ON_NEXT_RESUME modes, the update * will be immediately visible to the user. Otherwise, calling this function will simply reload the current version of the application. */ - restartApplication(installSuccess: SuccessCallback, errorCallback?: ErrorCallback): void; + restartApplication( + installSuccess: SuccessCallback, + errorCallback?: ErrorCallback + ): void; /** * Convenience method for installing updates in one method call. @@ -215,7 +270,11 @@ interface CodePushCordovaPlugin { * @param downloadProgress Optional callback invoked during the download process. It is called several times with one DownloadProgress parameter. * */ - sync(syncCallback?: SuccessCallback, syncOptions?: SyncOptions, downloadProgress?: SuccessCallback): void; + sync( + syncCallback?: SuccessCallback, + syncOptions?: SyncOptions, + downloadProgress?: SuccessCallback + ): void; } /** @@ -428,7 +487,6 @@ export interface DownloadProgress { }) @Injectable() export class CodePush extends IonicNativePlugin { - /** * Get the current package information. * @@ -518,8 +576,10 @@ export class CodePush extends IonicNativePlugin { successIndex: 0, errorIndex: 3 // we don't need this, so we set it to a value higher than # of args }) - sync(syncOptions?: SyncOptions, downloadProgress?: SuccessCallback): Observable { + sync( + syncOptions?: SyncOptions, + downloadProgress?: SuccessCallback + ): Observable { return; } - } diff --git a/src/@ionic-native/plugins/contacts/index.ts b/src/@ionic-native/plugins/contacts/index.ts index 495703233..b52c2e416 100644 --- a/src/@ionic-native/plugins/contacts/index.ts +++ b/src/@ionic-native/plugins/contacts/index.ts @@ -1,12 +1,47 @@ -import { CordovaInstance, InstanceProperty, Plugin, getPromise, InstanceCheck, checkAvailability, CordovaCheck, IonicNativePlugin } from '@ionic-native/core'; +import { + checkAvailability, + CordovaCheck, + CordovaInstance, + getPromise, + InstanceCheck, + InstanceProperty, + IonicNativePlugin, + Plugin, +} from '@ionic-native/core'; -declare const window: any, - navigator: any; +declare const window: any, navigator: any; -export type ContactFieldType = '*' | 'addresses' | 'birthday' | 'categories' | 'country' | 'department' | 'displayName' | 'emails' | 'name.familyName' | 'name.formatted' | 'name.givenName' | 'name.honorificPrefix' | 'name.honorificSuffix' | 'id' | 'ims' | 'locality' | 'name.middleName' | 'name' | 'nickname' | 'note' | 'organizations' | 'phoneNumbers' | 'photos' | 'postalCode' | 'region' | 'streetAddress' | 'title' | 'urls'; +export type ContactFieldType = + | '*' + | 'addresses' + | 'birthday' + | 'categories' + | 'country' + | 'department' + | 'displayName' + | 'emails' + | 'name.familyName' + | 'name.formatted' + | 'name.givenName' + | 'name.honorificPrefix' + | 'name.honorificSuffix' + | 'id' + | 'ims' + | 'locality' + | 'name.middleName' + | 'name' + | 'nickname' + | 'note' + | 'organizations' + | 'phoneNumbers' + | 'photos' + | 'postalCode' + | 'region' + | 'streetAddress' + | 'title' + | 'urls'; export interface IContactProperties { - /** A globally unique identifier. */ id?: string; @@ -48,7 +83,6 @@ export interface IContactProperties { /** An array of web pages associated with the contact. */ urls?: IContactField[]; - } /** @@ -74,7 +108,9 @@ export class Contact implements IContactProperties { [key: string]: any; constructor() { - if (checkAvailability('navigator.contacts', 'create', 'Contacts') === true) { + if ( + checkAvailability('navigator.contacts', 'create', 'Contacts') === true + ) { this._objectInstance = navigator.contacts.create(); } } @@ -90,7 +126,9 @@ export class Contact implements IContactProperties { } @CordovaInstance() - remove(): Promise { return; } + remove(): Promise { + return; + } @InstanceCheck() save(): Promise { @@ -124,7 +162,7 @@ export declare const ContactError: { PENDING_OPERATION_ERROR: number; IO_ERROR: number; NOT_SUPPORTED_ERROR: number; - PERMISSION_DENIED_ERROR: number + PERMISSION_DENIED_ERROR: number; }; export interface IContactName { @@ -146,12 +184,14 @@ export interface IContactName { * @hidden */ export class ContactName implements IContactName { - constructor(public formatted?: string, + constructor( + public formatted?: string, public familyName?: string, public givenName?: string, public middleName?: string, public honorificPrefix?: string, - public honorificSuffix?: string) { } + public honorificSuffix?: string + ) {} } export interface IContactField { @@ -167,9 +207,11 @@ export interface IContactField { * @hidden */ export class ContactField implements IContactField { - constructor(public type?: string, + constructor( + public type?: string, public value?: string, - public pref?: boolean) { } + public pref?: boolean + ) {} } export interface IContactAddress { @@ -195,14 +237,16 @@ export interface IContactAddress { * @hidden */ export class ContactAddress implements IContactAddress { - constructor(public pref?: boolean, + constructor( + public pref?: boolean, public type?: string, public formatted?: string, public streetAddress?: string, public locality?: string, public region?: string, public postalCode?: string, - public country?: string) { } + public country?: string + ) {} } export interface IContactOrganization { @@ -228,7 +272,7 @@ export class ContactOrganization implements IContactOrganization { public department?: string, public title?: string, public pref?: boolean - ) { } + ) {} } /** Search options to filter navigator.contacts. */ @@ -249,10 +293,12 @@ export interface IContactFindOptions { * @hidden */ export class ContactFindOptions implements IContactFindOptions { - constructor(public filter?: string, + constructor( + public filter?: string, public multiple?: boolean, public desiredFields?: string[], - public hasPhoneNumber?: boolean) { } + public hasPhoneNumber?: boolean + ) {} } /** @@ -293,10 +339,19 @@ export class ContactFindOptions implements IContactFindOptions { plugin: 'cordova-plugin-contacts', pluginRef: 'navigator.contacts', repo: 'https://github.com/apache/cordova-plugin-contacts', - platforms: ['Android', 'BlackBerry 10', 'Browser', 'Firefox OS', 'iOS', 'Ubuntu', 'Windows', 'Windows 8', 'Windows Phone'] + platforms: [ + 'Android', + 'BlackBerry 10', + 'Browser', + 'Firefox OS', + 'iOS', + 'Ubuntu', + 'Windows', + 'Windows 8', + 'Windows Phone' + ] }) export class Contacts extends IonicNativePlugin { - /** * Create a single contact. * @returns {Contact} Returns a Contact object @@ -312,11 +367,19 @@ export class Contacts extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with the search results (an array of Contact objects) */ @CordovaCheck() - find(fields: ContactFieldType[], options?: IContactFindOptions): Promise { + find( + fields: ContactFieldType[], + options?: IContactFindOptions + ): Promise { return getPromise((resolve: Function, reject: Function) => { - navigator.contacts.find(fields, (contacts: any[]) => { - resolve(contacts.map(processContact)); - }, reject, options); + navigator.contacts.find( + fields, + (contacts: any[]) => { + resolve(contacts.map(processContact)); + }, + reject, + options + ); }); } @@ -327,10 +390,12 @@ export class Contacts extends IonicNativePlugin { @CordovaCheck() pickContact(): Promise { return getPromise((resolve: Function, reject: Function) => { - navigator.contacts.pickContact((contact: any) => resolve(processContact(contact)), reject); + navigator.contacts.pickContact( + (contact: any) => resolve(processContact(contact)), + reject + ); }); } - } /** diff --git a/src/@ionic-native/plugins/couchbase-lite/index.ts b/src/@ionic-native/plugins/couchbase-lite/index.ts index 467a0e80b..e9be4a634 100644 --- a/src/@ionic-native/plugins/couchbase-lite/index.ts +++ b/src/@ionic-native/plugins/couchbase-lite/index.ts @@ -1,6 +1,5 @@ -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; - +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name Couchbase Lite @@ -66,8 +65,8 @@ import { Injectable } from '@angular/core'; * .catch((error:any) => { * return Observable.throw(error.json() || 'Couchbase Lite error'); * }) . - * } - * createDocument(database_name:string,document){ + * } + * createDocument(database_name:string,document){ * let url = this.getUrl(); * url = url + database_name; * return this._http @@ -84,9 +83,9 @@ import { Injectable } from '@angular/core'; * createDocument('justbe', document); * // successful response * { "id": "string","rev": "string","ok": true } - * updateDocument(database_name:string,document){ + * updateDocument(database_name:string,document){ * let url = this.getUrl(); - * url = url + database_name + '/' + document._id; + * url = url + database_name + '/' + document._id; * return this._http * .put(url,document) * .map(data => { this.results = data['results'] }) @@ -121,7 +120,6 @@ import { Injectable } from '@angular/core'; }) @Injectable() export class CouchbaseLite extends IonicNativePlugin { - /** * Get the database url * @return {Promise} Returns a promise that resolves with the local database url @@ -129,6 +127,7 @@ export class CouchbaseLite extends IonicNativePlugin { @Cordova({ callbackStyle: 'node' }) - getURL(): Promise { return; } - + getURL(): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/crop/index.ts b/src/@ionic-native/plugins/crop/index.ts index 928675009..8554f30f8 100644 --- a/src/@ionic-native/plugins/crop/index.ts +++ b/src/@ionic-native/plugins/crop/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface CropOptions { quality?: number; diff --git a/src/@ionic-native/plugins/deeplinks/index.ts b/src/@ionic-native/plugins/deeplinks/index.ts index 0b9519168..57596f6de 100644 --- a/src/@ionic-native/plugins/deeplinks/index.ts +++ b/src/@ionic-native/plugins/deeplinks/index.ts @@ -1,9 +1,8 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export interface DeeplinkMatch { - /** * The route info for the matched route */ @@ -20,7 +19,6 @@ export interface DeeplinkMatch { * the route was matched (for example, Facebook sometimes adds extra data) */ $link: any; - } export interface DeeplinkOptions { @@ -85,13 +83,18 @@ export interface DeeplinkOptions { plugin: 'ionic-plugin-deeplinks', pluginRef: 'IonicDeeplink', repo: 'https://github.com/ionic-team/ionic-plugin-deeplinks', - install: 'ionic cordova plugin add ionic-plugin-deeplinks --variable URL_SCHEME=myapp --variable DEEPLINK_SCHEME=https --variable DEEPLINK_HOST=example.com --variable ANDROID_PATH_PREFIX=/', - installVariables: ['URL_SCHEME', 'DEEPLINK_SCHEME', 'DEEPLINK_HOST', 'ANDROID_PATH_PREFIX'], + install: + 'ionic cordova plugin add ionic-plugin-deeplinks --variable URL_SCHEME=myapp --variable DEEPLINK_SCHEME=https --variable DEEPLINK_HOST=example.com --variable ANDROID_PATH_PREFIX=/', + installVariables: [ + 'URL_SCHEME', + 'DEEPLINK_SCHEME', + 'DEEPLINK_HOST', + 'ANDROID_PATH_PREFIX' + ], platforms: ['Android', 'Browser', 'iOS'] }) @Injectable() export class Deeplinks extends IonicNativePlugin { - /** * Define a set of paths to match against incoming deeplinks. * @@ -105,7 +108,9 @@ export class Deeplinks extends IonicNativePlugin { @Cordova({ observable: true }) - route(paths: any): Observable { return; } + route(paths: any): Observable { + return; + } /** * @@ -123,7 +128,7 @@ export class Deeplinks extends IonicNativePlugin { * promise result which you can then use to navigate in the app as you see fit. * * @param {Object} paths - * + * * @param {DeeplinkOptions} options * * @returns {Observable} Returns an Observable that resolves each time a deeplink comes through, and @@ -132,6 +137,11 @@ export class Deeplinks extends IonicNativePlugin { @Cordova({ observable: true }) - routeWithNavController(navController: any, paths: any, options?: DeeplinkOptions): Observable { return; } - + routeWithNavController( + navController: any, + paths: any, + options?: DeeplinkOptions + ): Observable { + return; + } } diff --git a/src/@ionic-native/plugins/device-motion/index.ts b/src/@ionic-native/plugins/device-motion/index.ts index c29ec8be3..c217ccd71 100644 --- a/src/@ionic-native/plugins/device-motion/index.ts +++ b/src/@ionic-native/plugins/device-motion/index.ts @@ -1,9 +1,8 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export interface DeviceMotionAccelerationData { - /** * Amount of acceleration on the x-axis. (in m/s^2) */ @@ -23,16 +22,13 @@ export interface DeviceMotionAccelerationData { * Creation timestamp in milliseconds. */ timestamp: any; - } export interface DeviceMotionAccelerometerOptions { - /** * Requested period of calls to accelerometerSuccess with acceleration data in Milliseconds. Default: 10000 */ frequency?: number; - } /** @@ -72,17 +68,28 @@ export interface DeviceMotionAccelerometerOptions { plugin: 'cordova-plugin-device-motion', pluginRef: 'navigator.accelerometer', repo: 'https://github.com/apache/cordova-plugin-device-motion', - platforms: ['Android', 'BlackBerry 10', 'Browser', 'Firefox OS', 'iOS', 'Tizen', 'Ubuntu', 'Windows', 'Windows Phone 8'] + platforms: [ + 'Android', + 'BlackBerry 10', + 'Browser', + 'Firefox OS', + 'iOS', + 'Tizen', + 'Ubuntu', + 'Windows', + 'Windows Phone 8' + ] }) @Injectable() export class DeviceMotion extends IonicNativePlugin { - /** * Get the current acceleration along the x, y, and z axes. * @returns {Promise} Returns object with x, y, z, and timestamp properties */ @Cordova() - getCurrentAcceleration(): Promise { return; } + getCurrentAcceleration(): Promise { + return; + } /** * Watch the device acceleration. Clear the watch by unsubscribing from the observable. @@ -94,6 +101,9 @@ export class DeviceMotion extends IonicNativePlugin { observable: true, clearFunction: 'clearWatch' }) - watchAcceleration(options?: DeviceMotionAccelerometerOptions): Observable { return; } - + watchAcceleration( + options?: DeviceMotionAccelerometerOptions + ): Observable { + return; + } } diff --git a/src/@ionic-native/plugins/device-orientation/index.ts b/src/@ionic-native/plugins/device-orientation/index.ts index ffd4e52aa..fd5ed503c 100644 --- a/src/@ionic-native/plugins/device-orientation/index.ts +++ b/src/@ionic-native/plugins/device-orientation/index.ts @@ -1,9 +1,8 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export interface DeviceOrientationCompassHeading { - /** * The heading in degrees from 0-359.99 at a single moment in time. (Number) */ @@ -23,11 +22,9 @@ export interface DeviceOrientationCompassHeading { * The time at which this heading was determined. (DOMTimeStamp) */ timestamp: number; - } export interface DeviceOrientationCompassOptions { - /** * How often to retrieve the compass heading in milliseconds. (Number) (Default: 100) */ @@ -37,7 +34,6 @@ export interface DeviceOrientationCompassOptions { * The change in degrees required to initiate a watchHeading success callback. When this value is set, frequency is ignored. (Number) */ filter?: number; - } /** @@ -77,17 +73,29 @@ export interface DeviceOrientationCompassOptions { plugin: 'cordova-plugin-device-orientation', pluginRef: 'navigator.compass', repo: 'https://github.com/apache/cordova-plugin-device-orientation', - platforms: ['Amazon Fire OS', 'Android', 'BlackBerry 10', 'Browser', 'Firefox OS', 'iOS', 'Tizen', 'Ubuntu', 'Windows', 'Windows Phone'] + platforms: [ + 'Amazon Fire OS', + 'Android', + 'BlackBerry 10', + 'Browser', + 'Firefox OS', + 'iOS', + 'Tizen', + 'Ubuntu', + 'Windows', + 'Windows Phone' + ] }) @Injectable() export class DeviceOrientation extends IonicNativePlugin { - /** * Get the current compass heading. * @returns {Promise} */ @Cordova() - getCurrentHeading(): Promise { return; } + getCurrentHeading(): Promise { + return; + } /** * Get the device current heading at a regular interval @@ -101,6 +109,9 @@ export class DeviceOrientation extends IonicNativePlugin { observable: true, clearFunction: 'clearWatch' }) - watchHeading(options?: DeviceOrientationCompassOptions): Observable { return; } - + watchHeading( + options?: DeviceOrientationCompassOptions + ): Observable { + return; + } } diff --git a/src/@ionic-native/plugins/device/index.ts b/src/@ionic-native/plugins/device/index.ts index 8f2b4cd6a..b6102ed32 100644 --- a/src/@ionic-native/plugins/device/index.ts +++ b/src/@ionic-native/plugins/device/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { CordovaProperty, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { CordovaProperty, IonicNativePlugin, Plugin } from '@ionic-native/core'; declare const window: any; @@ -28,40 +28,30 @@ declare const window: any; }) @Injectable() export class Device extends IonicNativePlugin { - /** Get the version of Cordova running on the device. */ - @CordovaProperty - cordova: string; + @CordovaProperty cordova: string; /** * The device.model returns the name of the device's model or product. The value is set * by the device manufacturer and may be different across versions of the same product. */ - @CordovaProperty - model: string; + @CordovaProperty model: string; /** Get the device's operating system name. */ - @CordovaProperty - platform: string; + @CordovaProperty platform: string; /** Get the device's Universally Unique Identifier (UUID). */ - @CordovaProperty - uuid: string; + @CordovaProperty uuid: string; /** Get the operating system version. */ - @CordovaProperty - version: string; + @CordovaProperty version: string; /** Get the device's manufacturer. */ - @CordovaProperty - manufacturer: string; + @CordovaProperty manufacturer: string; /** Whether the device is running on a simulator. */ - @CordovaProperty - isVirtual: boolean; + @CordovaProperty isVirtual: boolean; /** Get the device hardware serial number. */ - @CordovaProperty - serial: string; - + @CordovaProperty serial: string; } diff --git a/src/@ionic-native/plugins/diagnostic/index.ts b/src/@ionic-native/plugins/diagnostic/index.ts index e4a447664..8f3cbe697 100644 --- a/src/@ionic-native/plugins/diagnostic/index.ts +++ b/src/@ionic-native/plugins/diagnostic/index.ts @@ -1,5 +1,10 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, CordovaProperty, IonicNativePlugin } from '@ionic-native/core'; +import { + Cordova, + CordovaProperty, + IonicNativePlugin, + Plugin +} from '@ionic-native/core'; /** * @name Diagnostic @@ -43,7 +48,6 @@ import { Cordova, Plugin, CordovaProperty, IonicNativePlugin } from '@ionic-nati }) @Injectable() export class Diagnostic extends IonicNativePlugin { - permission = { READ_CALENDAR: 'READ_CALENDAR', WRITE_CALENDAR: 'WRITE_CALENDAR', @@ -92,9 +96,23 @@ export class Diagnostic extends IonicNativePlugin { CONTACTS: ['READ_CONTACTS', 'WRITE_CONTACTS', 'GET_ACCOUNTS'], LOCATION: ['ACCESS_FINE_LOCATION', 'ACCESS_COARSE_LOCATION'], MICROPHONE: ['RECORD_AUDIO'], - PHONE: ['READ_PHONE_STATE', 'CALL_PHONE', 'ADD_VOICEMAIL', 'USE_SIP', 'PROCESS_OUTGOING_CALLS', 'READ_CALL_LOG', 'WRITE_CALL_LOG'], + PHONE: [ + 'READ_PHONE_STATE', + 'CALL_PHONE', + 'ADD_VOICEMAIL', + 'USE_SIP', + 'PROCESS_OUTGOING_CALLS', + 'READ_CALL_LOG', + 'WRITE_CALL_LOG' + ], SENSORS: ['BODY_SENSORS'], - SMS: ['SEND_SMS', 'RECEIVE_SMS', 'READ_SMS', 'RECEIVE_WAP_PUSH', 'RECEIVE_MMS'], + SMS: [ + 'SEND_SMS', + 'RECEIVE_SMS', + 'READ_SMS', + 'RECEIVE_WAP_PUSH', + 'RECEIVE_MMS' + ], STORAGE: ['READ_EXTERNAL_STORAGE', 'WRITE_EXTERNAL_STORAGE'] }; @@ -141,7 +159,9 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - isLocationAvailable(): Promise { return; } + isLocationAvailable(): Promise { + return; + } /** * Checks if Wifi is connected/enabled. On iOS this returns true if the device is connected to a network by WiFi. On Android and Windows 10 Mobile this returns true if the WiFi setting is set to enabled. @@ -149,17 +169,21 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - isWifiAvailable(): Promise { return; } + isWifiAvailable(): Promise { + return; + } /** * Checks if the device has a camera. On Android this returns true if the device has a camera. On iOS this returns true if both the device has a camera AND the application is authorized to use it. On Windows 10 Mobile this returns true if both the device has a rear-facing camera AND the * application is authorized to use it. * @param {boolean} [externalStorage] Android only: If true, checks permission for READ_EXTERNAL_STORAGE in addition to CAMERA run-time permission. - * cordova-plugin-camera@2.2+ requires both of these permissions. Defaults to true. + * cordova-plugin-camera@2.2+ requires both of these permissions. Defaults to true. * @returns {Promise} */ @Cordova({ callbackOrder: 'reverse' }) - isCameraAvailable( externalStorage?: boolean ): Promise { return; } + isCameraAvailable(externalStorage?: boolean): Promise { + return; + } /** * Checks if the device has Bluetooth capabilities and if so that Bluetooth is switched on (same on Android, iOS and Windows 10 Mobile) @@ -167,38 +191,42 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - isBluetoothAvailable(): Promise { return; } + isBluetoothAvailable(): Promise { + return; + } /** * Displays the device location settings to allow user to enable location services/change location mode. */ @Cordova({ sync: true, platforms: ['Android', 'Windows 10', 'iOS'] }) - switchToLocationSettings(): void { } + switchToLocationSettings(): void {} /** * Displays mobile settings to allow user to enable mobile data. */ @Cordova({ sync: true, platforms: ['Android', 'Windows 10'] }) - switchToMobileDataSettings(): void { } + switchToMobileDataSettings(): void {} /** * Displays Bluetooth settings to allow user to enable Bluetooth. */ @Cordova({ sync: true, platforms: ['Android', 'Windows 10'] }) - switchToBluetoothSettings(): void { } + switchToBluetoothSettings(): void {} /** * Displays WiFi settings to allow user to enable WiFi. */ @Cordova({ sync: true, platforms: ['Android', 'Windows 10'] }) - switchToWifiSettings(): void { } + switchToWifiSettings(): void {} /** * Returns true if the WiFi setting is set to enabled, and is the same as `isWifiAvailable()` * @returns {Promise} */ @Cordova({ platforms: ['Android', 'Windows 10'] }) - isWifiEnabled(): Promise { return; } + isWifiEnabled(): Promise { + return; + } /** * Enables/disables WiFi on the device. @@ -207,7 +235,9 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ callbackOrder: 'reverse', platforms: ['Android', 'Windows 10'] }) - setWifiState(state: boolean): Promise { return; } + setWifiState(state: boolean): Promise { + return; + } /** * Enables/disables Bluetooth on the device. @@ -216,8 +246,9 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ callbackOrder: 'reverse', platforms: ['Android', 'Windows 10'] }) - setBluetoothState(state: boolean): Promise { return; } - + setBluetoothState(state: boolean): Promise { + return; + } // ANDROID AND IOS ONLY @@ -226,7 +257,9 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['Android', 'iOS'] }) - isLocationEnabled(): Promise { return; } + isLocationEnabled(): Promise { + return; + } /** * Checks if the application is authorized to use location. @@ -234,14 +267,18 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - isLocationAuthorized(): Promise { return; } + isLocationAuthorized(): Promise { + return; + } /** * Returns the location authorization status for the application. * @returns {Promise} */ @Cordova({ platforms: ['Android', 'iOS'] }) - getLocationAuthorizationStatus(): Promise { return; } + getLocationAuthorizationStatus(): Promise { + return; + } /** * Returns the location authorization status for the application. @@ -251,14 +288,18 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['Android', 'iOS'], callbackOrder: 'reverse' }) - requestLocationAuthorization(mode?: string): Promise { return; } + requestLocationAuthorization(mode?: string): Promise { + return; + } /** * Checks if camera hardware is present on device. * @returns {Promise} */ @Cordova({ platforms: ['Android', 'iOS'] }) - isCameraPresent(): Promise { return; } + isCameraPresent(): Promise { + return; + } /** * Checks if the application is authorized to use the camera. @@ -268,7 +309,9 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['Android', 'iOS'], callbackOrder: 'reverse' }) - isCameraAuthorized( externalStorage?: boolean ): Promise { return; } + isCameraAuthorized(externalStorage?: boolean): Promise { + return; + } /** * Returns the camera authorization status for the application. @@ -277,7 +320,9 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['Android', 'iOS'], callbackOrder: 'reverse' }) - getCameraAuthorizationStatus( externalStorage?: boolean ): Promise { return; } + getCameraAuthorizationStatus(externalStorage?: boolean): Promise { + return; + } /** * Requests camera authorization for the application. @@ -286,49 +331,63 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['Android', 'iOS'], callbackOrder: 'reverse' }) - requestCameraAuthorization( externalStorage?: boolean ): Promise { return; } + requestCameraAuthorization(externalStorage?: boolean): Promise { + return; + } /** * Checks if the application is authorized to use the microphone. * @returns {Promise} */ @Cordova({ platforms: ['Android', 'iOS'] }) - isMicrophoneAuthorized(): Promise { return; } + isMicrophoneAuthorized(): Promise { + return; + } /** * Returns the microphone authorization status for the application. * @returns {Promise} */ @Cordova({ platforms: ['Android', 'iOS'] }) - getMicrophoneAuthorizationStatus(): Promise { return; } + getMicrophoneAuthorizationStatus(): Promise { + return; + } /** * Requests microphone authorization for the application. * @returns {Promise} */ @Cordova({ platforms: ['Android', 'iOS'] }) - requestMicrophoneAuthorization(): Promise { return; } + requestMicrophoneAuthorization(): Promise { + return; + } /** * Checks if the application is authorized to use contacts (address book). * @returns {Promise} */ @Cordova({ platforms: ['Android', 'iOS'] }) - isContactsAuthorized(): Promise { return; } + isContactsAuthorized(): Promise { + return; + } /** * Returns the contacts authorization status for the application. * @returns {Promise} */ @Cordova({ platforms: ['Android', 'iOS'] }) - getContactsAuthorizationStatus(): Promise { return; } + getContactsAuthorizationStatus(): Promise { + return; + } /** * Requests contacts authorization for the application. * @returns {Promise} */ @Cordova({ platforms: ['Android', 'iOS'] }) - requestContactsAuthorization(): Promise { return; } + requestContactsAuthorization(): Promise { + return; + } /** * Checks if the application is authorized to use the calendar. @@ -341,7 +400,9 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['Android', 'iOS'] }) - isCalendarAuthorized(): Promise { return; } + isCalendarAuthorized(): Promise { + return; + } /** * Returns the calendar authorization status for the application. @@ -355,7 +416,9 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['Android', 'iOS'] }) - getCalendarAuthorizationStatus(): Promise { return; } + getCalendarAuthorizationStatus(): Promise { + return; + } /** * Requests calendar authorization for the application. @@ -372,7 +435,9 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['Android', 'iOS'] }) - requestCalendarAuthorization(): Promise { return; } + requestCalendarAuthorization(): Promise { + return; + } /** * Opens settings page for this app. @@ -381,29 +446,32 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['Android', 'iOS'] }) - switchToSettings(): Promise { return; } + switchToSettings(): Promise { + return; + } /** * Returns the state of Bluetooth on the device. * @returns {Promise} */ @Cordova({ platforms: ['Android', 'iOS'] }) - getBluetoothState(): Promise { return; } + getBluetoothState(): Promise { + return; + } /** * Registers a function to be called when a change in Bluetooth state occurs. * @param handler */ @Cordova({ platforms: ['Android', 'iOS'], sync: true }) - registerBluetoothStateChangeHandler(handler: Function): void { } + registerBluetoothStateChangeHandler(handler: Function): void {} /** * Registers a function to be called when a change in Location state occurs. * @param handler */ @Cordova({ platforms: ['Android', 'iOS'], sync: true }) - registerLocationStateChangeHandler(handler: Function): void { } - + registerLocationStateChangeHandler(handler: Function): void {} // ANDROID ONLY @@ -413,7 +481,9 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['Android'] }) - isGpsLocationAvailable(): Promise { return; } + isGpsLocationAvailable(): Promise { + return; + } /** * Checks if location mode is set to return high-accuracy locations from GPS hardware. @@ -423,7 +493,9 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['Android'] }) - isGpsLocationEnabled(): Promise { return; } + isGpsLocationEnabled(): Promise { + return; + } /** * Checks if low-accuracy locations are available to the app from network triangulation/WiFi access points. @@ -431,7 +503,9 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['Android'] }) - isNetworkLocationAvailable(): Promise { return; } + isNetworkLocationAvailable(): Promise { + return; + } /** * Checks if location mode is set to return low-accuracy locations from network triangulation/WiFi access points. @@ -441,14 +515,18 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['Android'] }) - isNetworkLocationEnabled(): Promise { return; } + isNetworkLocationEnabled(): Promise { + return; + } /** * Returns the current location mode setting for the device. * @returns {Promise} */ @Cordova({ platforms: ['Android'] }) - getLocationMode(): Promise { return; } + getLocationMode(): Promise { + return; + } /** * Returns the current authorisation status for a given permission. @@ -457,7 +535,9 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['Android'], callbackOrder: 'reverse' }) - getPermissionAuthorizationStatus(permission: any): Promise { return; } + getPermissionAuthorizationStatus(permission: any): Promise { + return; + } /** * Returns the current authorisation status for multiple permissions. @@ -466,7 +546,9 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['Android'], callbackOrder: 'reverse' }) - getPermissionsAuthorizationStatus(permissions: any[]): Promise { return; } + getPermissionsAuthorizationStatus(permissions: any[]): Promise { + return; + } /** * Requests app to be granted authorisation for a runtime permission. @@ -475,7 +557,9 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['Android'], callbackOrder: 'reverse' }) - requestRuntimePermission(permission: any): Promise { return; } + requestRuntimePermission(permission: any): Promise { + return; + } /** * Requests app to be granted authorisation for multiple runtime permissions. @@ -484,7 +568,9 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['Android'], callbackOrder: 'reverse' }) - requestRuntimePermissions(permissions: any[]): Promise { return; } + requestRuntimePermissions(permissions: any[]): Promise { + return; + } /** * Indicates if the plugin is currently requesting a runtime permission via the native API. @@ -494,7 +580,9 @@ export class Diagnostic extends IonicNativePlugin { * @returns {boolean} */ @Cordova({ sync: true }) - isRequestingPermission(): boolean { return; } + isRequestingPermission(): boolean { + return; + } /** * Registers a function to be called when a runtime permission request has completed. @@ -502,7 +590,9 @@ export class Diagnostic extends IonicNativePlugin { * @param handler {Function} */ @Cordova({ sync: true }) - registerPermissionRequestCompleteHandler(handler: Function): void { return; } + registerPermissionRequestCompleteHandler(handler: Function): void { + return; + } /** * Checks if the device setting for Bluetooth is switched on. @@ -510,49 +600,63 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['Android'] }) - isBluetoothEnabled(): Promise { return; } + isBluetoothEnabled(): Promise { + return; + } /** * Checks if the device has Bluetooth capabilities. * @returns {Promise} */ @Cordova({ platforms: ['Android'] }) - hasBluetoothSupport(): Promise { return; } + hasBluetoothSupport(): Promise { + return; + } /** * Checks if the device has Bluetooth Low Energy (LE) capabilities. * @returns {Promise} */ @Cordova({ platforms: ['Android'] }) - hasBluetoothLESupport(): Promise { return; } + hasBluetoothLESupport(): Promise { + return; + } /** * Checks if the device supports Bluetooth Low Energy (LE) Peripheral mode. * @returns {Promise} */ @Cordova({ platforms: ['Android'] }) - hasBluetoothLEPeripheralSupport(): Promise { return; } + hasBluetoothLEPeripheralSupport(): Promise { + return; + } /** * Checks if the application is authorized to use external storage. * @returns {Promise} */ @Cordova({ platforms: ['Android'] }) - isExternalStorageAuthorized(): Promise { return; } + isExternalStorageAuthorized(): Promise { + return; + } /** * CReturns the external storage authorization status for the application. * @returns {Promise} */ @Cordova({ platforms: ['Android'] }) - getExternalStorageAuthorizationStatus(): Promise { return; } + getExternalStorageAuthorizationStatus(): Promise { + return; + } /** * Requests external storage authorization for the application. * @returns {Promise} */ @Cordova({ platforms: ['Android'] }) - requestExternalStorageAuthorization(): Promise { return; } + requestExternalStorageAuthorization(): Promise { + return; + } /** * Returns details of external SD card(s): absolute path, is writable, free space. @@ -565,7 +669,9 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['Android'] }) - getExternalSdCardDetails(): Promise { return; } + getExternalSdCardDetails(): Promise { + return; + } /** * Switches to the wireless settings page in the Settings app. Allows configuration of wireless controls such as Wi-Fi, Bluetooth and Mobile networks. @@ -574,7 +680,7 @@ export class Diagnostic extends IonicNativePlugin { platforms: ['Android'], sync: true }) - switchToWirelessSettings(): void { } + switchToWirelessSettings(): void {} /** * Displays NFC settings to allow user to enable NFC. @@ -583,14 +689,16 @@ export class Diagnostic extends IonicNativePlugin { platforms: ['Android'], sync: true }) - switchToNFCSettings(): void { } + switchToNFCSettings(): void {} /** * Checks if NFC hardware is present on device. * @returns {Promise} */ @Cordova({ platforms: ['Android'] }) - isNFCPresent(): Promise { return; } + isNFCPresent(): Promise { + return; + } /** * Checks if the device setting for NFC is switched on. @@ -598,7 +706,9 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['Android'] }) - isNFCEnabled(): Promise { return; } + isNFCEnabled(): Promise { + return; + } /** * Checks if NFC is available to the app. Returns true if the device has NFC capabilities AND if NFC setting is switched on. @@ -606,7 +716,9 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['Android'] }) - isNFCAvailable(): Promise { return; } + isNFCAvailable(): Promise { + return; + } /** * Registers a function to be called when a change in NFC state occurs. Pass in a falsey value to de-register the currently registered function. @@ -617,28 +729,34 @@ export class Diagnostic extends IonicNativePlugin { platforms: ['Android'], sync: true }) - registerNFCStateChangeHandler(handler: Function): void { } + registerNFCStateChangeHandler(handler: Function): void {} /** * Checks if the device data roaming setting is enabled. * @returns {Promise} */ @Cordova({ platforms: ['Android'] }) - isDataRoamingEnabled(): Promise { return; } + isDataRoamingEnabled(): Promise { + return; + } /** * Checks if the device setting for ADB(debug) is switched on. * @returns {Promise} */ @Cordova({ platforms: ['Android'] }) - isADBModeEnabled(): Promise { return; } + isADBModeEnabled(): Promise { + return; + } /** * Checks if the device is rooted. * @returns {Promise} */ @Cordova({ platforms: ['Android'] }) - isDeviceRooted(): Promise { return; } + isDeviceRooted(): Promise { + return; + } // IOS ONLY @@ -647,14 +765,18 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['iOS'] }) - isCameraRollAuthorized(): Promise { return; } + isCameraRollAuthorized(): Promise { + return; + } /** * Returns the authorization status for the application to use the Camera Roll in Photos app. * @returns {Promise} */ @Cordova({ platforms: ['iOS'] }) - getCameraRollAuthorizationStatus(): Promise { return; } + getCameraRollAuthorizationStatus(): Promise { + return; + } /** * Requests camera roll authorization for the application. @@ -663,21 +785,27 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['iOS'] }) - requestCameraRollAuthorization(): Promise { return; } + requestCameraRollAuthorization(): Promise { + return; + } /** * Checks if remote (push) notifications are enabled. * @returns {Promise} */ @Cordova({ platforms: ['iOS', 'Android'] }) - isRemoteNotificationsEnabled(): Promise { return; } + isRemoteNotificationsEnabled(): Promise { + return; + } /** * Indicates if the app is registered for remote (push) notifications on the device. * @returns {Promise} */ @Cordova({ platforms: ['iOS'] }) - isRegisteredForRemoteNotifications(): Promise { return; } + isRegisteredForRemoteNotifications(): Promise { + return; + } /** * Returns the authorization status for the application to use Remote Notifications. @@ -685,7 +813,9 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['iOS'] }) - getRemoteNotificationsAuthorizationStatus(): Promise { return; } + getRemoteNotificationsAuthorizationStatus(): Promise { + return; + } /** * Indicates the current setting of notification types for the app in the Settings app. @@ -693,42 +823,54 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['iOS'] }) - getRemoteNotificationTypes(): Promise { return; } + getRemoteNotificationTypes(): Promise { + return; + } /** * Checks if the application is authorized to use reminders. * @returns {Promise} */ @Cordova({ platforms: ['iOS'] }) - isRemindersAuthorized(): Promise { return; } + isRemindersAuthorized(): Promise { + return; + } /** * Returns the reminders authorization status for the application. * @returns {Promise} */ @Cordova({ platforms: ['iOS'] }) - getRemindersAuthorizationStatus(): Promise { return; } + getRemindersAuthorizationStatus(): Promise { + return; + } /** * Requests reminders authorization for the application. * @returns {Promise} */ @Cordova({ platforms: ['iOS'] }) - requestRemindersAuthorization(): Promise { return; } + requestRemindersAuthorization(): Promise { + return; + } /** * Checks if the application is authorized for background refresh. * @returns {Promise} */ @Cordova({ platforms: ['iOS'] }) - isBackgroundRefreshAuthorized(): Promise { return; } + isBackgroundRefreshAuthorized(): Promise { + return; + } /** * Returns the background refresh authorization status for the application. * @returns {Promise} */ @Cordova({ platforms: ['iOS'] }) - getBackgroundRefreshStatus(): Promise { return; } + getBackgroundRefreshStatus(): Promise { + return; + } /** * Requests Bluetooth authorization for the application. @@ -737,14 +879,18 @@ export class Diagnostic extends IonicNativePlugin { * @return {Promise} */ @Cordova({ platforms: ['iOS'] }) - requestBluetoothAuthorization(): Promise { return; } + requestBluetoothAuthorization(): Promise { + return; + } /** * Checks if motion tracking is available on the current device. * @return {Promise} */ @Cordova({ platforms: ['iOS'] }) - isMotionAvailable(): Promise { return; } + isMotionAvailable(): Promise { + return; + } /** * Checks if it's possible to determine the outcome of a motion authorization request on the current device. @@ -754,7 +900,9 @@ export class Diagnostic extends IonicNativePlugin { * @return {Promise} */ @Cordova({ platforms: ['iOS'] }) - isMotionRequestOutcomeAvailable(): Promise { return; } + isMotionRequestOutcomeAvailable(): Promise { + return; + } /** * Requests motion tracking authorization for the application. @@ -764,7 +912,9 @@ export class Diagnostic extends IonicNativePlugin { * @return {Promise} */ @Cordova({ platforms: ['iOS'] }) - requestMotionAuthorization(): Promise { return; } + requestMotionAuthorization(): Promise { + return; + } /** * Checks motion authorization status for the application. @@ -774,6 +924,7 @@ export class Diagnostic extends IonicNativePlugin { * @return {Promise} */ @Cordova({ platforms: ['iOS'] }) - getMotionAuthorizationStatus(): Promise { return; } - + getMotionAuthorizationStatus(): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/dialogs/index.ts b/src/@ionic-native/plugins/dialogs/index.ts index 65710e890..9097e2630 100644 --- a/src/@ionic-native/plugins/dialogs/index.ts +++ b/src/@ionic-native/plugins/dialogs/index.ts @@ -1,9 +1,7 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; - +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface DialogsPromptCallback { - /** * The index of the pressed button. (Number) Note that the index uses one-based indexing, so the value is 1, 2, 3, etc. */ @@ -13,10 +11,8 @@ export interface DialogsPromptCallback { * The text entered in the prompt dialog box. (String) */ input1: string; - } - /** * @name Dialogs * @description @@ -50,7 +46,6 @@ export interface DialogsPromptCallback { }) @Injectable() export class Dialogs extends IonicNativePlugin { - /** * Shows a custom alert or dialog box. * @param {string} message Dialog message. @@ -62,7 +57,9 @@ export class Dialogs extends IonicNativePlugin { successIndex: 1, errorIndex: 4 }) - alert(message: string, title?: string, buttonName?: string): Promise { return; } + alert(message: string, title?: string, buttonName?: string): Promise { + return; + } /** * Displays a customizable confirmation dialog box. @@ -75,7 +72,13 @@ export class Dialogs extends IonicNativePlugin { successIndex: 1, errorIndex: 4 }) - confirm(message: string, title?: string, buttonLabels?: string[]): Promise { return; } + confirm( + message: string, + title?: string, + buttonLabels?: string[] + ): Promise { + return; + } /** * Displays a native dialog box that is more customizable than the browser's prompt function. @@ -89,8 +92,14 @@ export class Dialogs extends IonicNativePlugin { successIndex: 1, errorIndex: 5 }) - prompt(message?: string, title?: string, buttonLabels?: string[], defaultText?: string): Promise { return; } - + prompt( + message?: string, + title?: string, + buttonLabels?: string[], + defaultText?: string + ): Promise { + return; + } /** * The device plays a beep sound. @@ -99,6 +108,5 @@ export class Dialogs extends IonicNativePlugin { @Cordova({ sync: true }) - beep(times: number): void { } - + beep(times: number): void {} } diff --git a/src/@ionic-native/plugins/dns/index.ts b/src/@ionic-native/plugins/dns/index.ts index ece314ed8..35ee1522f 100644 --- a/src/@ionic-native/plugins/dns/index.ts +++ b/src/@ionic-native/plugins/dns/index.ts @@ -1,5 +1,5 @@ -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name DNS @@ -36,5 +36,7 @@ export class DNS extends IonicNativePlugin { * @returns {Promise} Returns a promise that resolves with the resolution. */ @Cordova() - resolve(hostname: string): Promise { return; } + resolve(hostname: string): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/document-viewer/index.ts b/src/@ionic-native/plugins/document-viewer/index.ts index ef4335cf1..02ce4609b 100644 --- a/src/@ionic-native/plugins/document-viewer/index.ts +++ b/src/@ionic-native/plugins/document-viewer/index.ts @@ -1,5 +1,5 @@ -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface DocumentViewerOptions { title?: string; @@ -62,14 +62,15 @@ export interface DocumentViewerOptions { }) @Injectable() export class DocumentViewer extends IonicNativePlugin { - /** * Displays the email composer pre-filled with data. * * @returns {Promise} Resolves promise when the EmailComposer has been opened */ @Cordova() - getSupportInfo(): Promise { return; } + getSupportInfo(): Promise { + return; + } /** * Check if the document can be shown @@ -83,7 +84,15 @@ export class DocumentViewer extends IonicNativePlugin { * @param [onError] {Function} */ @Cordova({ sync: true }) - canViewDocument(url: string, contentType: string, options: DocumentViewerOptions, onPossible?: Function, onMissingApp?: Function, onImpossible?: Function, onError?: Function): void { } + canViewDocument( + url: string, + contentType: string, + options: DocumentViewerOptions, + onPossible?: Function, + onMissingApp?: Function, + onImpossible?: Function, + onError?: Function + ): void {} /** * Opens the file @@ -97,6 +106,13 @@ export class DocumentViewer extends IonicNativePlugin { * @param [onError] {Function} */ @Cordova({ sync: true }) - viewDocument(url: string, contentType: string, options: DocumentViewerOptions, onShow?: Function, onClose?: Function, onMissingApp?: Function, onError?: Function): void { } - + viewDocument( + url: string, + contentType: string, + options: DocumentViewerOptions, + onShow?: Function, + onClose?: Function, + onMissingApp?: Function, + onError?: Function + ): void {} } diff --git a/src/@ionic-native/plugins/email-composer/index.ts b/src/@ionic-native/plugins/email-composer/index.ts index ad148fd14..d8024c122 100644 --- a/src/@ionic-native/plugins/email-composer/index.ts +++ b/src/@ionic-native/plugins/email-composer/index.ts @@ -1,8 +1,12 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, CordovaCheck, IonicNativePlugin } from '@ionic-native/core'; +import { + Cordova, + CordovaCheck, + IonicNativePlugin, + Plugin +} from '@ionic-native/core'; export interface EmailComposerOptions { - /** * App to send the email with */ @@ -42,10 +46,8 @@ export interface EmailComposerOptions { * Indicates if the body is HTML or plain text */ isHtml?: boolean; - } - /** * @name Email Composer * @description @@ -110,7 +112,6 @@ export interface EmailComposerOptions { }) @Injectable() export class EmailComposer extends IonicNativePlugin { - /** * Verifies if sending emails is supported on the device. * @@ -148,7 +149,9 @@ export class EmailComposer extends IonicNativePlugin { successIndex: 0, errorIndex: 2 }) - requestPermission(): Promise { return; } + requestPermission(): Promise { + return; + } /** * Checks if the app has a permission to access email accounts information @@ -158,7 +161,9 @@ export class EmailComposer extends IonicNativePlugin { successIndex: 0, errorIndex: 2 }) - hasPermission(): Promise { return; } + hasPermission(): Promise { + return; + } /** * Adds a new mail app alias. @@ -167,7 +172,7 @@ export class EmailComposer extends IonicNativePlugin { * @param packageName {string} The package name */ @Cordova() - addAlias(alias: string, packageName: string): void { } + addAlias(alias: string, packageName: string): void {} /** * Displays the email composer pre-filled with data. @@ -180,6 +185,7 @@ export class EmailComposer extends IonicNativePlugin { successIndex: 1, errorIndex: 3 }) - open(options: EmailComposerOptions, scope?: any): Promise { return; } - + open(options: EmailComposerOptions, scope?: any): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/estimote-beacons/index.ts b/src/@ionic-native/plugins/estimote-beacons/index.ts index 5a6fde940..3155bd73b 100644 --- a/src/@ionic-native/plugins/estimote-beacons/index.ts +++ b/src/@ionic-native/plugins/estimote-beacons/index.ts @@ -1,9 +1,8 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export interface EstimoteBeaconRegion { - state?: string; major: number; @@ -13,7 +12,6 @@ export interface EstimoteBeaconRegion { identifier?: string; uuid: string; - } /** @@ -48,7 +46,6 @@ export interface EstimoteBeaconRegion { }) @Injectable() export class EstimoteBeacons extends IonicNativePlugin { - /** Proximity value */ ProximityUnknown = 0; @@ -124,7 +121,9 @@ export class EstimoteBeacons extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - requestWhenInUseAuthorization(): Promise { return; } + requestWhenInUseAuthorization(): Promise { + return; + } /** * Ask the user for permission to use location services @@ -145,7 +144,9 @@ export class EstimoteBeacons extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - requestAlwaysAuthorization(): Promise { return; } + requestAlwaysAuthorization(): Promise { + return; + } /** * Get the current location authorization status. @@ -164,7 +165,9 @@ export class EstimoteBeacons extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - authorizationStatus(): Promise { return; } + authorizationStatus(): Promise { + return; + } /** * Start advertising as a beacon. @@ -186,7 +189,14 @@ export class EstimoteBeacons extends IonicNativePlugin { @Cordova({ clearFunction: 'stopAdvertisingAsBeacon' }) - startAdvertisingAsBeacon(uuid: string, major: number, minor: number, regionId: string): Promise { return; } + startAdvertisingAsBeacon( + uuid: string, + major: number, + minor: number, + regionId: string + ): Promise { + return; + } /** * Stop advertising as a beacon. @@ -202,7 +212,9 @@ export class EstimoteBeacons extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - stopAdvertisingAsBeacon(): Promise { return; } + stopAdvertisingAsBeacon(): Promise { + return; + } /** * Enable analytics. @@ -217,12 +229,14 @@ export class EstimoteBeacons extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - enableAnalytics(enable: boolean): Promise { return; } + enableAnalytics(enable: boolean): Promise { + return; + } /** - * Test if analytics is enabled. - * - * @see {@link http://estimote.github.io/iOS-SDK/Classes/ESTConfig.html|Further details} + * Test if analytics is enabled. + * + * @see {@link http://estimote.github.io/iOS-SDK/Classes/ESTConfig.html|Further details} * * @usage * ``` @@ -231,12 +245,14 @@ export class EstimoteBeacons extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - isAnalyticsEnabled(): Promise { return; } + isAnalyticsEnabled(): Promise { + return; + } /** - * Test if App ID and App Token is set. - * - * @see {@link http://estimote.github.io/iOS-SDK/Classes/ESTConfig.html|Further details} + * Test if App ID and App Token is set. + * + * @see {@link http://estimote.github.io/iOS-SDK/Classes/ESTConfig.html|Further details} * * @usage * ``` @@ -245,12 +261,14 @@ export class EstimoteBeacons extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - isAuthorized(): Promise { return; } + isAuthorized(): Promise { + return; + } /** - * Set App ID and App Token. - * - * @see {@link http://estimote.github.io/iOS-SDK/Classes/ESTConfig.html|Further details} + * Set App ID and App Token. + * + * @see {@link http://estimote.github.io/iOS-SDK/Classes/ESTConfig.html|Further details} * * @usage * ``` @@ -261,7 +279,9 @@ export class EstimoteBeacons extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - setupAppIDAndAppToken(appID: string, appToken: string): Promise { return; } + setupAppIDAndAppToken(appID: string, appToken: string): Promise { + return; + } /** * Start scanning for all nearby beacons using CoreBluetooth (no region object is used). @@ -282,7 +302,9 @@ export class EstimoteBeacons extends IonicNativePlugin { observable: true, clearFunction: 'stopEstimoteBeaconDiscovery' }) - startEstimoteBeaconDiscovery(): Observable { return; } + startEstimoteBeaconDiscovery(): Observable { + return; + } /** * Stop CoreBluetooth scan. Available on iOS. @@ -299,7 +321,9 @@ export class EstimoteBeacons extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - stopEstimoteBeaconDiscovery(): Promise { return; } + stopEstimoteBeaconDiscovery(): Promise { + return; + } /** * Start ranging beacons. Available on iOS and Android. @@ -322,7 +346,9 @@ export class EstimoteBeacons extends IonicNativePlugin { clearFunction: 'stopRangingBeaconsInRegion', clearWithArgs: true }) - startRangingBeaconsInRegion(region: EstimoteBeaconRegion): Observable { return; } + startRangingBeaconsInRegion(region: EstimoteBeaconRegion): Observable { + return; + } /** * Stop ranging beacons. Available on iOS and Android. @@ -341,7 +367,9 @@ export class EstimoteBeacons extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - stopRangingBeaconsInRegion(region: EstimoteBeaconRegion): Promise { return; } + stopRangingBeaconsInRegion(region: EstimoteBeaconRegion): Promise { + return; + } /** * Start ranging secure beacons. Available on iOS. @@ -356,7 +384,11 @@ export class EstimoteBeacons extends IonicNativePlugin { clearFunction: 'stopRangingSecureBeaconsInRegion', clearWithArgs: true }) - startRangingSecureBeaconsInRegion(region: EstimoteBeaconRegion): Observable { return; } + startRangingSecureBeaconsInRegion( + region: EstimoteBeaconRegion + ): Observable { + return; + } /** * Stop ranging secure beacons. Available on iOS. @@ -365,7 +397,9 @@ export class EstimoteBeacons extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - stopRangingSecureBeaconsInRegion(region: EstimoteBeaconRegion): Promise { return; } + stopRangingSecureBeaconsInRegion(region: EstimoteBeaconRegion): Promise { + return; + } /** * Start monitoring beacons. Available on iOS and Android. @@ -391,7 +425,12 @@ export class EstimoteBeacons extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - startMonitoringForRegion(region: EstimoteBeaconRegion, notifyEntryStateOnDisplay: boolean): Observable { return; } + startMonitoringForRegion( + region: EstimoteBeaconRegion, + notifyEntryStateOnDisplay: boolean + ): Observable { + return; + } /** * Stop monitoring beacons. Available on iOS and Android. @@ -405,7 +444,9 @@ export class EstimoteBeacons extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - stopMonitoringForRegion(region: EstimoteBeaconRegion): Promise { return; } + stopMonitoringForRegion(region: EstimoteBeaconRegion): Promise { + return; + } /** * Start monitoring secure beacons. Available on iOS. @@ -425,17 +466,24 @@ export class EstimoteBeacons extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - startSecureMonitoringForRegion(region: EstimoteBeaconRegion, notifyEntryStateOnDisplay: boolean): Observable { return; } + startSecureMonitoringForRegion( + region: EstimoteBeaconRegion, + notifyEntryStateOnDisplay: boolean + ): Observable { + return; + } /** - * Stop monitoring secure beacons. Available on iOS. - * This function has the same parameters/behaviour as - * {@link EstimoteBeacons.stopMonitoringForRegion}. - * @param region {EstimoteBeaconRegion} Region - * @returns {Promise} - */ + * Stop monitoring secure beacons. Available on iOS. + * This function has the same parameters/behaviour as + * {@link EstimoteBeacons.stopMonitoringForRegion}. + * @param region {EstimoteBeaconRegion} Region + * @returns {Promise} + */ @Cordova() - stopSecureMonitoringForRegion(region: EstimoteBeaconRegion): Promise { return; } + stopSecureMonitoringForRegion(region: EstimoteBeaconRegion): Promise { + return; + } /** * Connect to Estimote Beacon. Available on Android. @@ -455,7 +503,9 @@ export class EstimoteBeacons extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - connectToBeacon(beacon: any): Promise { return; } + connectToBeacon(beacon: any): Promise { + return; + } /** * Disconnect from connected Estimote Beacon. Available on Android. @@ -467,7 +517,9 @@ export class EstimoteBeacons extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - disconnectConnectedBeacon(): Promise { return; } + disconnectConnectedBeacon(): Promise { + return; + } /** * Write proximity UUID to connected Estimote Beacon. Available on Android. @@ -481,7 +533,9 @@ export class EstimoteBeacons extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - writeConnectedProximityUUID(uuid: any): Promise { return; } + writeConnectedProximityUUID(uuid: any): Promise { + return; + } /** * Write major to connected Estimote Beacon. Available on Android. @@ -495,7 +549,9 @@ export class EstimoteBeacons extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - writeConnectedMajor(major: number): Promise { return; } + writeConnectedMajor(major: number): Promise { + return; + } /** * Write minor to connected Estimote Beacon. Available on Android. @@ -509,6 +565,7 @@ export class EstimoteBeacons extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - writeConnectedMinor(minor: number): Promise { return; } - + writeConnectedMinor(minor: number): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/extended-device-information/index.ts b/src/@ionic-native/plugins/extended-device-information/index.ts index 2a4b3110a..100b9b404 100644 --- a/src/@ionic-native/plugins/extended-device-information/index.ts +++ b/src/@ionic-native/plugins/extended-device-information/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { CordovaProperty, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { CordovaProperty, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name Extended Device Information @@ -22,28 +22,24 @@ import { CordovaProperty, Plugin, IonicNativePlugin } from '@ionic-native/core'; pluginName: 'ExtendedDeviceInformation', plugin: 'cordova-plugin-extended-device-information', pluginRef: 'extended-device-information', - repo: 'https://github.com/danielehrhardt/cordova-plugin-extended-device-information', + repo: + 'https://github.com/danielehrhardt/cordova-plugin-extended-device-information', platforms: ['Android'] }) @Injectable() export class ExtendedDeviceInformation extends IonicNativePlugin { - /** * Get the device's memory size */ - @CordovaProperty - memory: number; + @CordovaProperty memory: number; /** * Get the device's CPU mhz */ - @CordovaProperty - cpumhz: string; + @CordovaProperty cpumhz: string; /** * Get the total storage */ - @CordovaProperty - totalstorage: string; - + @CordovaProperty totalstorage: string; } diff --git a/src/@ionic-native/plugins/facebook/index.ts b/src/@ionic-native/plugins/facebook/index.ts index 21bd6f598..5b408ce1c 100644 --- a/src/@ionic-native/plugins/facebook/index.ts +++ b/src/@ionic-native/plugins/facebook/index.ts @@ -2,11 +2,9 @@ import { Injectable } from '@angular/core'; import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; export interface FacebookLoginResponse { - status: string; authResponse: { - session_key: boolean; accessToken: string; @@ -18,9 +16,7 @@ export interface FacebookLoginResponse { secret: string; userID: string; - }; - } /** @@ -114,46 +110,46 @@ export interface FacebookLoginResponse { plugin: 'cordova-plugin-facebook4', pluginRef: 'facebookConnectPlugin', repo: 'https://github.com/jeduan/cordova-plugin-facebook4', - install: 'ionic cordova plugin add cordova-plugin-facebook4 --variable APP_ID="123456789" --variable APP_NAME="myApplication"', + install: + 'ionic cordova plugin add cordova-plugin-facebook4 --variable APP_ID="123456789" --variable APP_NAME="myApplication"', installVariables: ['APP_ID', 'APP_NAME'], platforms: ['Android', 'iOS', 'Browser'] }) @Injectable() export class Facebook extends IonicNativePlugin { - EVENTS: { - EVENT_NAME_ACTIVATED_APP: 'fb_mobile_activate_app', - EVENT_NAME_DEACTIVATED_APP: 'fb_mobile_deactivate_app', - EVENT_NAME_SESSION_INTERRUPTIONS: 'fb_mobile_app_interruptions', - EVENT_NAME_TIME_BETWEEN_SESSIONS: 'fb_mobile_time_between_sessions', - EVENT_NAME_COMPLETED_REGISTRATION: 'fb_mobile_complete_registration', - EVENT_NAME_VIEWED_CONTENT: 'fb_mobile_content_view', - EVENT_NAME_SEARCHED: 'fb_mobile_search', - EVENT_NAME_RATED: 'fb_mobile_rate', - EVENT_NAME_COMPLETED_TUTORIAL: 'fb_mobile_tutorial_completion', - EVENT_NAME_PUSH_TOKEN_OBTAINED: 'fb_mobile_obtain_push_token', - EVENT_NAME_ADDED_TO_CART: 'fb_mobile_add_to_cart', - EVENT_NAME_ADDED_TO_WISHLIST: 'fb_mobile_add_to_wishlist', - EVENT_NAME_INITIATED_CHECKOUT: 'fb_mobile_initiated_checkout', - EVENT_NAME_ADDED_PAYMENT_INFO: 'fb_mobile_add_payment_info', - EVENT_NAME_PURCHASED: 'fb_mobile_purchase', - EVENT_NAME_ACHIEVED_LEVEL: 'fb_mobile_level_achieved', - EVENT_NAME_UNLOCKED_ACHIEVEMENT: 'fb_mobile_achievement_unlocked', - EVENT_NAME_SPENT_CREDITS: 'fb_mobile_spent_credits', - EVENT_PARAM_CURRENCY: 'fb_currency', - EVENT_PARAM_REGISTRATION_METHOD: 'fb_registration_method', - EVENT_PARAM_CONTENT_TYPE: 'fb_content_type', - EVENT_PARAM_CONTENT_ID: 'fb_content_id', - EVENT_PARAM_SEARCH_STRING: 'fb_search_string', - EVENT_PARAM_SUCCESS: 'fb_success', - EVENT_PARAM_MAX_RATING_VALUE: 'fb_max_rating_value', - EVENT_PARAM_PAYMENT_INFO_AVAILABLE: 'fb_payment_info_available', - EVENT_PARAM_NUM_ITEMS: 'fb_num_items', - EVENT_PARAM_LEVEL: 'fb_level', - EVENT_PARAM_DESCRIPTION: 'fb_description', - EVENT_PARAM_SOURCE_APPLICATION: 'fb_mobile_launch_source', - EVENT_PARAM_VALUE_YES: '1', - EVENT_PARAM_VALUE_NO: '0' + EVENT_NAME_ACTIVATED_APP: 'fb_mobile_activate_app'; + EVENT_NAME_DEACTIVATED_APP: 'fb_mobile_deactivate_app'; + EVENT_NAME_SESSION_INTERRUPTIONS: 'fb_mobile_app_interruptions'; + EVENT_NAME_TIME_BETWEEN_SESSIONS: 'fb_mobile_time_between_sessions'; + EVENT_NAME_COMPLETED_REGISTRATION: 'fb_mobile_complete_registration'; + EVENT_NAME_VIEWED_CONTENT: 'fb_mobile_content_view'; + EVENT_NAME_SEARCHED: 'fb_mobile_search'; + EVENT_NAME_RATED: 'fb_mobile_rate'; + EVENT_NAME_COMPLETED_TUTORIAL: 'fb_mobile_tutorial_completion'; + EVENT_NAME_PUSH_TOKEN_OBTAINED: 'fb_mobile_obtain_push_token'; + EVENT_NAME_ADDED_TO_CART: 'fb_mobile_add_to_cart'; + EVENT_NAME_ADDED_TO_WISHLIST: 'fb_mobile_add_to_wishlist'; + EVENT_NAME_INITIATED_CHECKOUT: 'fb_mobile_initiated_checkout'; + EVENT_NAME_ADDED_PAYMENT_INFO: 'fb_mobile_add_payment_info'; + EVENT_NAME_PURCHASED: 'fb_mobile_purchase'; + EVENT_NAME_ACHIEVED_LEVEL: 'fb_mobile_level_achieved'; + EVENT_NAME_UNLOCKED_ACHIEVEMENT: 'fb_mobile_achievement_unlocked'; + EVENT_NAME_SPENT_CREDITS: 'fb_mobile_spent_credits'; + EVENT_PARAM_CURRENCY: 'fb_currency'; + EVENT_PARAM_REGISTRATION_METHOD: 'fb_registration_method'; + EVENT_PARAM_CONTENT_TYPE: 'fb_content_type'; + EVENT_PARAM_CONTENT_ID: 'fb_content_id'; + EVENT_PARAM_SEARCH_STRING: 'fb_search_string'; + EVENT_PARAM_SUCCESS: 'fb_success'; + EVENT_PARAM_MAX_RATING_VALUE: 'fb_max_rating_value'; + EVENT_PARAM_PAYMENT_INFO_AVAILABLE: 'fb_payment_info_available'; + EVENT_PARAM_NUM_ITEMS: 'fb_num_items'; + EVENT_PARAM_LEVEL: 'fb_level'; + EVENT_PARAM_DESCRIPTION: 'fb_description'; + EVENT_PARAM_SOURCE_APPLICATION: 'fb_mobile_launch_source'; + EVENT_PARAM_VALUE_YES: '1'; + EVENT_PARAM_VALUE_NO: '0'; }; /** @@ -189,7 +185,9 @@ export class Facebook extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with a status object if login succeeds, and rejects if login fails. */ @Cordova() - login(permissions: string[]): Promise { return; } + login(permissions: string[]): Promise { + return; + } /** * Logout of Facebook. @@ -198,7 +196,9 @@ export class Facebook extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves on a successful logout, and rejects if logout fails. */ @Cordova() - logout(): Promise { return; } + logout(): Promise { + return; + } /** * Determine if a user is logged in to Facebook and has authenticated your app. There are three possible states for a user: @@ -227,7 +227,9 @@ export class Facebook extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with a status, or rejects with an error */ @Cordova() - getLoginStatus(): Promise { return; } + getLoginStatus(): Promise { + return; + } /** * Get a Facebook access token for using Facebook services. @@ -235,7 +237,9 @@ export class Facebook extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with an access token, or rejects with an error */ @Cordova() - getAccessToken(): Promise { return; } + getAccessToken(): Promise { + return; + } /** * Show one of various Facebook dialogs. Example of options for a Share dialog: @@ -255,7 +259,9 @@ export class Facebook extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with success data, or rejects with an error */ @Cordova() - showDialog(options: any): Promise { return; } + showDialog(options: any): Promise { + return; + } /** * Make a call to Facebook Graph API. Can take additional permissions beyond those granted on login. @@ -271,7 +277,9 @@ export class Facebook extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with the result of the request, or rejects with an error */ @Cordova() - api(requestPath: string, permissions: string[]): Promise { return; } + api(requestPath: string, permissions: string[]): Promise { + return; + } /** * Log an event. For more information see the Events section above. @@ -285,7 +293,9 @@ export class Facebook extends IonicNativePlugin { successIndex: 3, errorIndex: 4 }) - logEvent(name: string, params?: Object, valueToSum?: number): Promise { return; } + logEvent(name: string, params?: Object, valueToSum?: number): Promise { + return; + } /** * Log a purchase. For more information see the Events section above. @@ -295,7 +305,9 @@ export class Facebook extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - logPurchase(value: number, currency: string): Promise { return; } + logPurchase(value: number, currency: string): Promise { + return; + } /** * Open App Invite dialog. Does not require login. @@ -312,9 +324,7 @@ export class Facebook extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with the result data, or rejects with an error */ @Cordova() - appInvite(options: { - url: string, - picture: string - }): Promise { return; } - + appInvite(options: { url: string; picture: string }): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/fcm/index.ts b/src/@ionic-native/plugins/fcm/index.ts index af5f0b5e3..f6a23d2b3 100644 --- a/src/@ionic-native/plugins/fcm/index.ts +++ b/src/@ionic-native/plugins/fcm/index.ts @@ -1,9 +1,8 @@ -import { Plugin, IonicNativePlugin, Cordova } from '@ionic-native/core'; import { Injectable } from '@angular/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export interface NotificationData { - /** * Determines whether the notification was pressed or not */ @@ -15,7 +14,6 @@ export interface NotificationData { */ [name: string]: any; - } /** @@ -64,14 +62,15 @@ export interface NotificationData { }) @Injectable() export class FCM extends IonicNativePlugin { - /** * Get's device's current registration id * * @returns {Promise} Returns a Promise that resolves with the registration id token */ @Cordova() - getToken(): Promise { return; } + getToken(): Promise { + return; + } /** * Event firing on the token refresh @@ -81,7 +80,9 @@ export class FCM extends IonicNativePlugin { @Cordova({ observable: true }) - onTokenRefresh(): Observable { return; } + onTokenRefresh(): Observable { + return; + } /** * Subscribes you to a [topic](https://firebase.google.com/docs/notifications/android/console-topics) @@ -91,7 +92,9 @@ export class FCM extends IonicNativePlugin { * @returns {Promise} Returns a promise resolving in result of subscribing to a topic */ @Cordova() - subscribeToTopic(topic: string): Promise { return; } + subscribeToTopic(topic: string): Promise { + return; + } /** * Unubscribes you from a [topic](https://firebase.google.com/docs/notifications/android/console-topics) @@ -101,7 +104,9 @@ export class FCM extends IonicNativePlugin { * @returns {Promise} Returns a promise resolving in result of unsubscribing from a topic */ @Cordova() - unsubscribeFromTopic(topic: string): Promise { return; } + unsubscribeFromTopic(topic: string): Promise { + return; + } /** * Watch for incoming notifications @@ -113,6 +118,7 @@ export class FCM extends IonicNativePlugin { successIndex: 0, errorIndex: 2 }) - onNotification(): Observable { return; } - + onNotification(): Observable { + return; + } } diff --git a/src/@ionic-native/plugins/file-chooser/index.ts b/src/@ionic-native/plugins/file-chooser/index.ts index 310441886..4ea4d6eba 100644 --- a/src/@ionic-native/plugins/file-chooser/index.ts +++ b/src/@ionic-native/plugins/file-chooser/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name File Chooser @@ -30,12 +30,12 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; }) @Injectable() export class FileChooser extends IonicNativePlugin { - /** * Open a file * @returns {Promise} */ @Cordova() - open(): Promise { return; } - + open(): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/file-encryption/index.ts b/src/@ionic-native/plugins/file-encryption/index.ts index 345cdb2e3..5ac429aed 100644 --- a/src/@ionic-native/plugins/file-encryption/index.ts +++ b/src/@ionic-native/plugins/file-encryption/index.ts @@ -1,5 +1,5 @@ -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name File Encryption @@ -30,7 +30,6 @@ import { Injectable } from '@angular/core'; }) @Injectable() export class FileEncryption extends IonicNativePlugin { - /** * Enrcypt a file * @param file {string} A string representing a local URI @@ -38,7 +37,9 @@ export class FileEncryption extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves when something happens */ @Cordova() - encrypt(file: string, key: string): Promise { return; } + encrypt(file: string, key: string): Promise { + return; + } /** * Decrypt a file @@ -47,6 +48,7 @@ export class FileEncryption extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves when something happens */ @Cordova() - decrypt(file: string, key: string): Promise { return; } - + decrypt(file: string, key: string): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/file-opener/index.ts b/src/@ionic-native/plugins/file-opener/index.ts index 1250e1c7d..7776a2d35 100644 --- a/src/@ionic-native/plugins/file-opener/index.ts +++ b/src/@ionic-native/plugins/file-opener/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name File Opener @@ -29,7 +29,6 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; }) @Injectable() export class FileOpener extends IonicNativePlugin { - /** * Open an file * @param filePath {string} File Path @@ -41,7 +40,9 @@ export class FileOpener extends IonicNativePlugin { successName: 'success', errorName: 'error' }) - open(filePath: string, fileMIMEType: string): Promise { return; } + open(filePath: string, fileMIMEType: string): Promise { + return; + } /** * Uninstalls a package @@ -53,7 +54,9 @@ export class FileOpener extends IonicNativePlugin { successName: 'success', errorName: 'error' }) - uninstall(packageId: string): Promise { return; } + uninstall(packageId: string): Promise { + return; + } /** * Check if an app is already installed @@ -65,6 +68,7 @@ export class FileOpener extends IonicNativePlugin { successName: 'success', errorName: 'error' }) - appIsInstalled(packageId: string): Promise { return; } - + appIsInstalled(packageId: string): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/file-path/index.ts b/src/@ionic-native/plugins/file-path/index.ts index 29dc9b719..c35450e6e 100644 --- a/src/@ionic-native/plugins/file-path/index.ts +++ b/src/@ionic-native/plugins/file-path/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; declare const window: any; @@ -32,13 +32,13 @@ declare const window: any; }) @Injectable() export class FilePath extends IonicNativePlugin { - /** * Resolve native path for given content URL/path. * @param {String} path Content URL/path. * @returns {Promise} */ @Cordova() - resolveNativePath(path: string): Promise { return; } - + resolveNativePath(path: string): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/file-transfer/index.ts b/src/@ionic-native/plugins/file-transfer/index.ts index 0530d56d5..cf4e38af6 100644 --- a/src/@ionic-native/plugins/file-transfer/index.ts +++ b/src/@ionic-native/plugins/file-transfer/index.ts @@ -1,8 +1,13 @@ import { Injectable } from '@angular/core'; -import { CordovaInstance, Plugin, InstanceCheck, checkAvailability, IonicNativePlugin } from '@ionic-native/core'; +import { + checkAvailability, + CordovaInstance, + InstanceCheck, + IonicNativePlugin, + Plugin +} from '@ionic-native/core'; export interface FileUploadOptions { - /** * The name of the form element. * Defaults to 'file'. @@ -30,7 +35,7 @@ export interface FileUploadOptions { /** * A set of optional key/value pairs to pass in the HTTP request. */ - params?: { [s: string]: any; }; + params?: { [s: string]: any }; /** * Whether to upload the data in chunked streaming mode. @@ -43,12 +48,10 @@ export interface FileUploadOptions { * than one value. On iOS, FireOS, and Android, if a header named * Content-Type is present, multipart form data will NOT be used. */ - headers?: { [s: string]: any; }; - + headers?: { [s: string]: any }; } export interface FileUploadResult { - /** * The number of bytes sent to the server as part of the upload. */ @@ -67,12 +70,10 @@ export interface FileUploadResult { /** * The HTTP response headers by the server. */ - headers: { [s: string]: any; }; - + headers: { [s: string]: any }; } export interface FileTransferError { - /** * One of the predefined error codes listed below. */ @@ -103,7 +104,6 @@ export interface FileTransferError { * Either e.getMessage or e.toString. */ exception: string; - } /** @@ -179,11 +179,18 @@ export interface FileTransferError { plugin: 'cordova-plugin-file-transfer', pluginRef: 'FileTransfer', repo: 'https://github.com/apache/cordova-plugin-file-transfer', - platforms: ['Amazon Fire OS', 'Android', 'Browser', 'iOS', 'Ubuntu', 'Windows', 'Windows Phone'] + platforms: [ + 'Amazon Fire OS', + 'Android', + 'Browser', + 'iOS', + 'Ubuntu', + 'Windows', + 'Windows Phone' + ] }) @Injectable() export class FileTransfer extends IonicNativePlugin { - /** * Error code rejected from upload with FileTransferError * Defined in FileTransferError. @@ -209,7 +216,6 @@ export class FileTransfer extends IonicNativePlugin { create(): FileTransferObject { return new FileTransferObject(); } - } /** @@ -223,7 +229,13 @@ export class FileTransferObject { private _objectInstance: any; constructor() { - if (checkAvailability(FileTransfer.getPluginRef(), null, FileTransfer.getPluginName()) === true) { + if ( + checkAvailability( + FileTransfer.getPluginRef(), + null, + FileTransfer.getPluginName() + ) === true + ) { this._objectInstance = new (FileTransfer.getPlugin())(); } } @@ -241,7 +253,14 @@ export class FileTransferObject { successIndex: 2, errorIndex: 3 }) - upload(fileUrl: string, url: string, options?: FileUploadOptions, trustAllHosts?: boolean): Promise { return; } + upload( + fileUrl: string, + url: string, + options?: FileUploadOptions, + trustAllHosts?: boolean + ): Promise { + return; + } /** * Downloads a file from server. @@ -256,7 +275,14 @@ export class FileTransferObject { successIndex: 2, errorIndex: 3 }) - download(source: string, target: string, trustAllHosts?: boolean, options?: { [s: string]: any; }): Promise { return; } + download( + source: string, + target: string, + trustAllHosts?: boolean, + options?: { [s: string]: any } + ): Promise { + return; + } /** * Registers a listener that gets called whenever a new chunk of data is transferred. diff --git a/src/@ionic-native/plugins/file/index.ts b/src/@ionic-native/plugins/file/index.ts index f6c7f06dc..c05ae829c 100644 --- a/src/@ionic-native/plugins/file/index.ts +++ b/src/@ionic-native/plugins/file/index.ts @@ -1,5 +1,10 @@ import { Injectable } from '@angular/core'; -import { CordovaProperty, Plugin, CordovaCheck, IonicNativePlugin } from '@ionic-native/core'; +import { + CordovaCheck, + CordovaProperty, + IonicNativePlugin, + Plugin +} from '@ionic-native/core'; export interface IFile extends Blob { /** @@ -36,7 +41,6 @@ export interface IFile extends Blob { } export interface LocalFileSystem { - /** * Used for storage with no guarantee of persistence. */ @@ -54,7 +58,12 @@ export interface LocalFileSystem { * @param successCallback The callback that is called when the user agent provides a filesystem. * @param errorCallback A callback that is called when errors happen, or when the request to obtain the filesystem is denied. */ - requestFileSystem(type: number, size: number, successCallback: FileSystemCallback, errorCallback?: ErrorCallback): void; + requestFileSystem( + type: number, + size: number, + successCallback: FileSystemCallback, + errorCallback?: ErrorCallback + ): void; /** * Allows the user to look up the Entry for a file or directory referred to by a local URL. @@ -62,12 +71,21 @@ export interface LocalFileSystem { * @param successCallback A callback that is called to report the Entry to which the supplied URL refers. * @param errorCallback A callback that is called when errors happen, or when the request to obtain the Entry is denied. */ - resolveLocalFileSystemURL(url: string, successCallback: EntryCallback, errorCallback?: ErrorCallback): void; + resolveLocalFileSystemURL( + url: string, + successCallback: EntryCallback, + errorCallback?: ErrorCallback + ): void; /** * see requestFileSystem. */ - webkitRequestFileSystem(type: number, size: number, successCallback: FileSystemCallback, errorCallback?: ErrorCallback): void; + webkitRequestFileSystem( + type: number, + size: number, + successCallback: FileSystemCallback, + errorCallback?: ErrorCallback + ): void; } export interface Metadata { @@ -115,11 +133,9 @@ export interface FileSystem { toJSON(): string; encodeURIPath(path: string): string; - } export interface Entry { - /** * Entry is a file. */ @@ -135,7 +151,10 @@ export interface Entry { * @param successCallback A callback that is called with the time of the last modification. * @param errorCallback ErrorCallback A callback that is called when errors happen. */ - getMetadata(successCallback: MetadataCallback, errorCallback?: ErrorCallback): void; + getMetadata( + successCallback: MetadataCallback, + errorCallback?: ErrorCallback + ): void; /** * Set the metadata of the entry. @@ -143,7 +162,11 @@ export interface Entry { * @param errorCallback {Function} is called with a FileError * @param metadataObject {Metadata} keys and values to set */ - setMetadata(successCallback: MetadataCallback, errorCallback: ErrorCallback, metadataObject: Metadata): void; + setMetadata( + successCallback: MetadataCallback, + errorCallback: ErrorCallback, + metadataObject: Metadata + ): void; /** * The name of the entry, excluding the path leading to it. @@ -179,7 +202,12 @@ export interface Entry { * A move of a file on top of an existing file must attempt to delete and replace that file. * A move of a directory on top of an existing empty directory must attempt to delete and replace that directory. */ - moveTo(parent: DirectoryEntry, newName?: string, successCallback?: EntryCallback, errorCallback?: ErrorCallback): void; + moveTo( + parent: DirectoryEntry, + newName?: string, + successCallback?: EntryCallback, + errorCallback?: ErrorCallback + ): void; /** * Copy an entry to a different location on the file system. It is an error to try to: @@ -196,7 +224,12 @@ export interface Entry { * * Directory copies are always recursive--that is, they copy all contents of the directory. */ - copyTo(parent: DirectoryEntry, newName?: string, successCallback?: EntryCallback, errorCallback?: ErrorCallback): void; + copyTo( + parent: DirectoryEntry, + newName?: string, + successCallback?: EntryCallback, + errorCallback?: ErrorCallback + ): void; /** * Returns a URL that can be used to identify this entry. Unlike the URN defined in [FILE-API-ED], it has no specific expiration; as it describes a location on disk, it should be valid at least as long as that location exists. @@ -221,7 +254,10 @@ export interface Entry { * @param successCallback A callback that is called to return the parent Entry. * @param errorCallback A callback that is called when errors happen. */ - getParent(successCallback: DirectoryEntryCallback, errorCallback?: ErrorCallback): void; + getParent( + successCallback: DirectoryEntryCallback, + errorCallback?: ErrorCallback + ): void; } /** @@ -247,7 +283,12 @@ export interface DirectoryEntry extends Entry { * @param successCallback A callback that is called to return the File selected or created. * @param errorCallback A callback that is called when errors happen. */ - getFile(path: string, options?: Flags, successCallback?: FileEntryCallback, errorCallback?: ErrorCallback): void; + getFile( + path: string, + options?: Flags, + successCallback?: FileEntryCallback, + errorCallback?: ErrorCallback + ): void; /** * Creates or looks up a directory. @@ -264,14 +305,22 @@ export interface DirectoryEntry extends Entry { * @param errorCallback A callback that is called when errors happen. * */ - getDirectory(path: string, options?: Flags, successCallback?: DirectoryEntryCallback, errorCallback?: ErrorCallback): void; + getDirectory( + path: string, + options?: Flags, + successCallback?: DirectoryEntryCallback, + errorCallback?: ErrorCallback + ): void; /** * Deletes a directory and all of its contents, if any. In the event of an error [e.g. trying to delete a directory that contains a file that cannot be removed], some of the contents of the directory may be deleted. It is an error to attempt to delete the root directory of a filesystem. * @param successCallback A callback that is called on success. * @param errorCallback A callback that is called when errors happen. */ - removeRecursively(successCallback: VoidCallback, errorCallback?: ErrorCallback): void; + removeRecursively( + successCallback: VoidCallback, + errorCallback?: ErrorCallback + ): void; } /** @@ -291,7 +340,10 @@ export interface DirectoryReader { * @param successCallback Called once per successful call to readEntries to deliver the next previously-unreported set of Entries in the associated Directory. If all Entries have already been returned from previous invocations of readEntries, successCallback must be called with a zero-length array as an argument. * @param errorCallback A callback indicating that there was an error reading from the Directory. */ - readEntries(successCallback: EntriesCallback, errorCallback?: ErrorCallback): void; + readEntries( + successCallback: EntriesCallback, + errorCallback?: ErrorCallback + ): void; } /** @@ -303,7 +355,10 @@ export interface FileEntry extends Entry { * @param successCallback A callback that is called with the new FileWriter. * @param errorCallback A callback that is called when errors happen. */ - createWriter(successCallback: FileWriterCallback, errorCallback?: ErrorCallback): void; + createWriter( + successCallback: FileWriterCallback, + errorCallback?: ErrorCallback + ): void; /** * Returns a File that represents the current state of the file that this FileEntry represents. @@ -578,7 +633,6 @@ export declare class FileReader { * @hidden */ [key: string]: any; - } interface Window extends LocalFileSystem {} @@ -624,79 +678,66 @@ declare const window: Window; }) @Injectable() export class File extends IonicNativePlugin { + /** + * Read-only directory where the application is installed. + */ + @CordovaProperty applicationDirectory: string; /** * Read-only directory where the application is installed. */ - @CordovaProperty - applicationDirectory: string; - - /** - * Read-only directory where the application is installed. - */ - @CordovaProperty - applicationStorageDirectory: string; + @CordovaProperty applicationStorageDirectory: string; /** * Where to put app-specific data files. */ - @CordovaProperty - dataDirectory: string; + @CordovaProperty dataDirectory: string; /** * Cached files that should survive app restarts. * Apps should not rely on the OS to delete files in here. */ - @CordovaProperty - cacheDirectory: string; + @CordovaProperty cacheDirectory: string; /** * Android: the application space on external storage. */ - @CordovaProperty - externalApplicationStorageDirectory: string; + @CordovaProperty externalApplicationStorageDirectory: string; /** * Android: Where to put app-specific data files on external storage. */ - @CordovaProperty - externalDataDirectory: string; + @CordovaProperty externalDataDirectory: string; /** * Android: the application cache on external storage. */ - @CordovaProperty - externalCacheDirectory: string; + @CordovaProperty externalCacheDirectory: string; /** * Android: the external storage (SD card) root. */ - @CordovaProperty - externalRootDirectory: string; + @CordovaProperty externalRootDirectory: string; /** * iOS: Temp directory that the OS can clear at will. */ - @CordovaProperty - tempDirectory: string; + @CordovaProperty tempDirectory: string; /** * iOS: Holds app-specific files that should be synced (e.g. to iCloud). */ - @CordovaProperty - syncedDataDirectory: string; + @CordovaProperty syncedDataDirectory: string; /** * iOS: Files private to the app, but that are meaningful to other applications (e.g. Office files) */ - @CordovaProperty - documentsDirectory: string; + @CordovaProperty documentsDirectory: string; /** * BlackBerry10: Files globally available to all apps */ - @CordovaProperty - sharedDirectory: string; + @CordovaProperty sharedDirectory: string; cordovaFileError: any = { 1: 'NOT_FOUND_ERR', @@ -712,7 +753,7 @@ export class File extends IonicNativePlugin { 11: 'TYPE_MISMATCH_ERR', 12: 'PATH_EXISTS_ERR', 13: 'WRONG_ENTRY_TYPE', - 14: 'DIR_READ_ERR', + 14: 'DIR_READ_ERR' }; /** @@ -735,17 +776,16 @@ export class File extends IonicNativePlugin { */ @CordovaCheck() checkDir(path: string, dir: string): Promise { - if ((/^\//.test(dir))) { + if (/^\//.test(dir)) { let err = new FileError(5); - err.message = 'directory cannot start with \/'; + err.message = 'directory cannot start with /'; return Promise.reject(err); } let fullpath = path + dir; - return this.resolveDirectoryUrl(fullpath) - .then(() => { - return true; - }); + return this.resolveDirectoryUrl(fullpath).then(() => { + return true; + }); } /** @@ -759,10 +799,14 @@ export class File extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with a DirectoryEntry or rejects with an error. */ @CordovaCheck() - createDir(path: string, dirName: string, replace: boolean): Promise { - if ((/^\//.test(dirName))) { + createDir( + path: string, + dirName: string, + replace: boolean + ): Promise { + if (/^\//.test(dirName)) { let err = new FileError(5); - err.message = 'directory cannot start with \/'; + err.message = 'directory cannot start with /'; return Promise.reject(err); } @@ -774,10 +818,9 @@ export class File extends IonicNativePlugin { options.exclusive = true; } - return this.resolveDirectoryUrl(path) - .then((fse) => { - return this.getDirectory(fse, dirName, options); - }); + return this.resolveDirectoryUrl(path).then(fse => { + return this.getDirectory(fse, dirName, options); + }); } /** @@ -789,17 +832,17 @@ export class File extends IonicNativePlugin { */ @CordovaCheck() removeDir(path: string, dirName: string): Promise { - if ((/^\//.test(dirName))) { + if (/^\//.test(dirName)) { let err = new FileError(5); - err.message = 'directory cannot start with \/'; + err.message = 'directory cannot start with /'; return Promise.reject(err); } return this.resolveDirectoryUrl(path) - .then((fse) => { + .then(fse => { return this.getDirectory(fse, dirName, { create: false }); }) - .then((de) => { + .then(de => { return this.remove(de); }); } @@ -814,24 +857,28 @@ export class File extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves to the new DirectoryEntry object or rejects with an error. */ @CordovaCheck() - moveDir(path: string, dirName: string, newPath: string, newDirName: string): Promise { + moveDir( + path: string, + dirName: string, + newPath: string, + newDirName: string + ): Promise { newDirName = newDirName || dirName; - if ((/^\//.test(newDirName))) { + if (/^\//.test(newDirName)) { let err = new FileError(5); - err.message = 'directory cannot start with \/'; + err.message = 'directory cannot start with /'; return Promise.reject(err); } return this.resolveDirectoryUrl(path) - .then((fse) => { + .then(fse => { return this.getDirectory(fse, dirName, { create: false }); }) - .then((srcde) => { - return this.resolveDirectoryUrl(newPath) - .then((deste) => { - return this.move(srcde, deste, newDirName); - }); + .then(srcde => { + return this.resolveDirectoryUrl(newPath).then(deste => { + return this.move(srcde, deste, newDirName); + }); }); } @@ -845,22 +892,26 @@ export class File extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves to the new Entry object or rejects with an error. */ @CordovaCheck() - copyDir(path: string, dirName: string, newPath: string, newDirName: string): Promise { - if ((/^\//.test(newDirName))) { + copyDir( + path: string, + dirName: string, + newPath: string, + newDirName: string + ): Promise { + if (/^\//.test(newDirName)) { let err = new FileError(5); - err.message = 'directory cannot start with \/'; + err.message = 'directory cannot start with /'; return Promise.reject(err); } return this.resolveDirectoryUrl(path) - .then((fse) => { + .then(fse => { return this.getDirectory(fse, dirName, { create: false }); }) - .then((srcde) => { - return this.resolveDirectoryUrl(newPath) - .then((deste) => { - return this.copy(srcde, deste, newDirName); - }); + .then(srcde => { + return this.resolveDirectoryUrl(newPath).then(deste => { + return this.copy(srcde, deste, newDirName); + }); }); } @@ -873,17 +924,20 @@ export class File extends IonicNativePlugin { */ @CordovaCheck() listDir(path: string, dirName: string): Promise { - if ((/^\//.test(dirName))) { + if (/^\//.test(dirName)) { let err = new FileError(5); - err.message = 'directory cannot start with \/'; + err.message = 'directory cannot start with /'; return Promise.reject(err); } return this.resolveDirectoryUrl(path) - .then((fse) => { - return this.getDirectory(fse, dirName, { create: false, exclusive: false }); + .then(fse => { + return this.getDirectory(fse, dirName, { + create: false, + exclusive: false + }); }) - .then((de) => { + .then(de => { let reader = de.createReader(); return this.readEntries(reader); }); @@ -898,17 +952,17 @@ export class File extends IonicNativePlugin { */ @CordovaCheck() removeRecursively(path: string, dirName: string): Promise { - if ((/^\//.test(dirName))) { + if (/^\//.test(dirName)) { let err = new FileError(5); - err.message = 'directory cannot start with \/'; + err.message = 'directory cannot start with /'; return Promise.reject(err); } return this.resolveDirectoryUrl(path) - .then((fse) => { + .then(fse => { return this.getDirectory(fse, dirName, { create: false }); }) - .then((de) => { + .then(de => { return this.rimraf(de); }); } @@ -922,22 +976,21 @@ export class File extends IonicNativePlugin { */ @CordovaCheck() checkFile(path: string, file: string): Promise { - if ((/^\//.test(file))) { + if (/^\//.test(file)) { let err = new FileError(5); - err.message = 'file cannot start with \/'; + err.message = 'file cannot start with /'; return Promise.reject(err); } - return this.resolveLocalFilesystemUrl(path + file) - .then((fse) => { - if (fse.isFile) { - return true; - } else { - let err = new FileError(13); - err.message = 'input is not a file'; - return Promise.reject(err); - } - }); + return this.resolveLocalFilesystemUrl(path + file).then(fse => { + if (fse.isFile) { + return true; + } else { + let err = new FileError(13); + err.message = 'input is not a file'; + return Promise.reject(err); + } + }); } /** @@ -951,10 +1004,14 @@ export class File extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves to a FileEntry or rejects with an error. */ @CordovaCheck() - createFile(path: string, fileName: string, replace: boolean): Promise { - if ((/^\//.test(fileName))) { + createFile( + path: string, + fileName: string, + replace: boolean + ): Promise { + if (/^\//.test(fileName)) { let err = new FileError(5); - err.message = 'file-name cannot start with \/'; + err.message = 'file-name cannot start with /'; return Promise.reject(err); } @@ -966,10 +1023,9 @@ export class File extends IonicNativePlugin { options.exclusive = true; } - return this.resolveDirectoryUrl(path) - .then((fse) => { - return this.getFile(fse, fileName, options); - }); + return this.resolveDirectoryUrl(path).then(fse => { + return this.getFile(fse, fileName, options); + }); } /** @@ -981,17 +1037,17 @@ export class File extends IonicNativePlugin { */ @CordovaCheck() removeFile(path: string, fileName: string): Promise { - if ((/^\//.test(fileName))) { + if (/^\//.test(fileName)) { let err = new FileError(5); - err.message = 'file-name cannot start with \/'; + err.message = 'file-name cannot start with /'; return Promise.reject(err); } return this.resolveDirectoryUrl(path) - .then((fse) => { + .then(fse => { return this.getFile(fse, fileName, { create: false }); }) - .then((fe) => { + .then(fe => { return this.remove(fe); }); } @@ -1005,11 +1061,15 @@ export class File extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves to updated file entry or rejects with an error. */ @CordovaCheck() - writeFile(path: string, fileName: string, - text: string | Blob | ArrayBuffer, options: IWriteOptions = {}): Promise { - if ((/^\//.test(fileName))) { + writeFile( + path: string, + fileName: string, + text: string | Blob | ArrayBuffer, + options: IWriteOptions = {} + ): Promise { + if (/^\//.test(fileName)) { const err = new FileError(5); - err.message = 'file-name cannot start with \/'; + err.message = 'file-name cannot start with /'; return Promise.reject(err); } @@ -1035,9 +1095,13 @@ export class File extends IonicNativePlugin { * @param {IWriteOptions} options replace file if set to true. See WriteOptions for more information. * @returns {Promise} Returns a Promise that resolves to updated file entry or rejects with an error. */ - private writeFileEntry(fe: FileEntry, text: string | Blob | ArrayBuffer, options: IWriteOptions) { + private writeFileEntry( + fe: FileEntry, + text: string | Blob | ArrayBuffer, + options: IWriteOptions + ) { return this.createWriter(fe) - .then((writer) => { + .then(writer => { if (options.append) { writer.seek(writer.length); } @@ -1051,7 +1115,6 @@ export class File extends IonicNativePlugin { .then(() => fe); } - /** Write to an existing file. * * @param {string} path Base FileSystem. Please refer to the iOS and Android filesystems above @@ -1060,7 +1123,11 @@ export class File extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves or rejects with an error. */ @CordovaCheck() - writeExistingFile(path: string, fileName: string, text: string | Blob): Promise { + writeExistingFile( + path: string, + fileName: string, + text: string | Blob + ): Promise { return this.writeFile(path, fileName, text, { replace: true }); } @@ -1112,10 +1179,14 @@ export class File extends IonicNativePlugin { return this.readFile(path, file, 'ArrayBuffer'); } - private readFile(path: string, file: string, readAs: 'ArrayBuffer' | 'BinaryString' | 'DataURL' | 'Text'): Promise { - if ((/^\//.test(file))) { + private readFile( + path: string, + file: string, + readAs: 'ArrayBuffer' | 'BinaryString' | 'DataURL' | 'Text' + ): Promise { + if (/^\//.test(file)) { let err = new FileError(5); - err.message = 'file-name cannot start with \/'; + err.message = 'file-name cannot start with /'; return Promise.reject(err); } @@ -1128,7 +1199,7 @@ export class File extends IonicNativePlugin { return new Promise((resolve, reject) => { reader.onloadend = () => { if (reader.result !== undefined || reader.result !== null) { - resolve(reader.result); + resolve((reader.result)); } else if (reader.error !== undefined || reader.error !== null) { reject(reader.error); } else { @@ -1136,12 +1207,14 @@ export class File extends IonicNativePlugin { } }; - fileEntry.file(file => { - reader[`readAs${readAs}`].call(reader, file); - }, error => { - reject(error); - }); - + fileEntry.file( + file => { + reader[`readAs${readAs}`].call(reader, file); + }, + error => { + reject(error); + } + ); }); }); } @@ -1156,24 +1229,28 @@ export class File extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves to the new Entry or rejects with an error. */ @CordovaCheck() - moveFile(path: string, fileName: string, newPath: string, newFileName: string): Promise { + moveFile( + path: string, + fileName: string, + newPath: string, + newFileName: string + ): Promise { newFileName = newFileName || fileName; - if ((/^\//.test(newFileName))) { + if (/^\//.test(newFileName)) { let err = new FileError(5); - err.message = 'file name cannot start with \/'; + err.message = 'file name cannot start with /'; return Promise.reject(err); } return this.resolveDirectoryUrl(path) - .then((fse) => { + .then(fse => { return this.getFile(fse, fileName, { create: false }); }) - .then((srcfe) => { - return this.resolveDirectoryUrl(newPath) - .then((deste) => { - return this.move(srcfe, deste, newFileName); - }); + .then(srcfe => { + return this.resolveDirectoryUrl(newPath).then(deste => { + return this.move(srcfe, deste, newFileName); + }); }); } @@ -1187,24 +1264,28 @@ export class File extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves to an Entry or rejects with an error. */ @CordovaCheck() - copyFile(path: string, fileName: string, newPath: string, newFileName: string): Promise { + copyFile( + path: string, + fileName: string, + newPath: string, + newFileName: string + ): Promise { newFileName = newFileName || fileName; - if ((/^\//.test(newFileName))) { + if (/^\//.test(newFileName)) { let err = new FileError(5); - err.message = 'file name cannot start with \/'; + err.message = 'file name cannot start with /'; return Promise.reject(err); } return this.resolveDirectoryUrl(path) - .then((fse) => { + .then(fse => { return this.getFile(fse, fileName, { create: false }); }) - .then((srcfe) => { - return this.resolveDirectoryUrl(newPath) - .then((deste) => { - return this.copy(srcfe, deste, newFileName); - }); + .then(srcfe => { + return this.resolveDirectoryUrl(newPath).then(deste => { + return this.copy(srcfe, deste, newFileName); + }); }); } @@ -1214,7 +1295,7 @@ export class File extends IonicNativePlugin { private fillErrorMessage(err: FileError): void { try { err.message = this.cordovaFileError[err.code]; - } catch (e) { } + } catch (e) {} } /** @@ -1226,12 +1307,16 @@ export class File extends IonicNativePlugin { resolveLocalFilesystemUrl(fileUrl: string): Promise { return new Promise((resolve, reject) => { try { - window.resolveLocalFileSystemURL(fileUrl, (entry: Entry) => { - resolve(entry); - }, (err) => { - this.fillErrorMessage(err); - reject(err); - }); + window.resolveLocalFileSystemURL( + fileUrl, + (entry: Entry) => { + resolve(entry); + }, + err => { + this.fillErrorMessage(err); + reject(err); + } + ); } catch (xc) { this.fillErrorMessage(xc); reject(xc); @@ -1246,16 +1331,15 @@ export class File extends IonicNativePlugin { */ @CordovaCheck() resolveDirectoryUrl(directoryUrl: string): Promise { - return this.resolveLocalFilesystemUrl(directoryUrl) - .then((de) => { - if (de.isDirectory) { - return de; - } else { - const err = new FileError(13); - err.message = 'input is not a directory'; - return Promise.reject(err); - } - }); + return this.resolveLocalFilesystemUrl(directoryUrl).then(de => { + if (de.isDirectory) { + return de; + } else { + const err = new FileError(13); + err.message = 'input is not a directory'; + return Promise.reject(err); + } + }); } /** @@ -1266,15 +1350,24 @@ export class File extends IonicNativePlugin { * @returns {Promise} */ @CordovaCheck() - getDirectory(directoryEntry: DirectoryEntry, directoryName: string, flags: Flags): Promise { + getDirectory( + directoryEntry: DirectoryEntry, + directoryName: string, + flags: Flags + ): Promise { return new Promise((resolve, reject) => { try { - directoryEntry.getDirectory(directoryName, flags, (de) => { - resolve(de); - }, (err) => { - this.fillErrorMessage(err); - reject(err); - }); + directoryEntry.getDirectory( + directoryName, + flags, + de => { + resolve(de); + }, + err => { + this.fillErrorMessage(err); + reject(err); + } + ); } catch (xc) { this.fillErrorMessage(xc); reject(xc); @@ -1290,10 +1383,14 @@ export class File extends IonicNativePlugin { * @returns {Promise} */ @CordovaCheck() - getFile(directoryEntry: DirectoryEntry, fileName: string, flags: Flags): Promise { + getFile( + directoryEntry: DirectoryEntry, + fileName: string, + flags: Flags + ): Promise { return new Promise((resolve, reject) => { try { - directoryEntry.getFile(fileName, flags, resolve, (err) => { + directoryEntry.getFile(fileName, flags, resolve, err => { this.fillErrorMessage(err); reject(err); }); @@ -1309,40 +1406,61 @@ export class File extends IonicNativePlugin { */ private remove(fe: Entry): Promise { return new Promise((resolve, reject) => { - fe.remove(() => { - resolve({ success: true, fileRemoved: fe }); - }, (err) => { - this.fillErrorMessage(err); - reject(err); - }); + fe.remove( + () => { + resolve({ success: true, fileRemoved: fe }); + }, + err => { + this.fillErrorMessage(err); + reject(err); + } + ); }); } /** * @hidden */ - private move(srce: Entry, destdir: DirectoryEntry, newName: string): Promise { + private move( + srce: Entry, + destdir: DirectoryEntry, + newName: string + ): Promise { return new Promise((resolve, reject) => { - srce.moveTo(destdir, newName, (deste) => { - resolve(deste); - }, (err) => { - this.fillErrorMessage(err); - reject(err); - }); + srce.moveTo( + destdir, + newName, + deste => { + resolve(deste); + }, + err => { + this.fillErrorMessage(err); + reject(err); + } + ); }); } /** * @hidden */ - private copy(srce: Entry, destdir: DirectoryEntry, newName: string): Promise { + private copy( + srce: Entry, + destdir: DirectoryEntry, + newName: string + ): Promise { return new Promise((resolve, reject) => { - srce.copyTo(destdir, newName, (deste) => { - resolve(deste); - }, (err) => { - this.fillErrorMessage(err); - reject(err); - }); + srce.copyTo( + destdir, + newName, + deste => { + resolve(deste); + }, + err => { + this.fillErrorMessage(err); + reject(err); + } + ); }); } @@ -1351,12 +1469,15 @@ export class File extends IonicNativePlugin { */ private readEntries(dr: DirectoryReader): Promise { return new Promise((resolve, reject) => { - dr.readEntries((entries) => { - resolve(entries); - }, (err) => { - this.fillErrorMessage(err); - reject(err); - }); + dr.readEntries( + entries => { + resolve(entries); + }, + err => { + this.fillErrorMessage(err); + reject(err); + } + ); }); } @@ -1365,12 +1486,15 @@ export class File extends IonicNativePlugin { */ private rimraf(de: DirectoryEntry): Promise { return new Promise((resolve, reject) => { - de.removeRecursively(() => { - resolve({ success: true, fileRemoved: de }); - }, (err) => { - this.fillErrorMessage(err); - reject(err); - }); + de.removeRecursively( + () => { + resolve({ success: true, fileRemoved: de }); + }, + err => { + this.fillErrorMessage(err); + reject(err); + } + ); }); } @@ -1379,25 +1503,31 @@ export class File extends IonicNativePlugin { */ private createWriter(fe: FileEntry): Promise { return new Promise((resolve, reject) => { - fe.createWriter((writer) => { - resolve(writer); - }, (err) => { - this.fillErrorMessage(err); - reject(err); - }); + fe.createWriter( + writer => { + resolve(writer); + }, + err => { + this.fillErrorMessage(err); + reject(err); + } + ); }); } /** * @hidden */ - private write(writer: FileWriter, gu: string | Blob | ArrayBuffer): Promise { + private write( + writer: FileWriter, + gu: string | Blob | ArrayBuffer + ): Promise { if (gu instanceof Blob) { return this.writeFileInChunks(writer, gu); } return new Promise((resolve, reject) => { - writer.onwriteend = (evt) => { + writer.onwriteend = evt => { if (writer.error) { reject(writer.error); } else { diff --git a/src/@ionic-native/plugins/fingerprint-aio/index.ts b/src/@ionic-native/plugins/fingerprint-aio/index.ts index 8d414ccb2..55def10c2 100644 --- a/src/@ionic-native/plugins/fingerprint-aio/index.ts +++ b/src/@ionic-native/plugins/fingerprint-aio/index.ts @@ -1,6 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; - +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface FingerprintOptions { /** @@ -66,13 +65,14 @@ export interface FingerprintOptions { }) @Injectable() export class FingerprintAIO extends IonicNativePlugin { - /** * Check if fingerprint authentication is available * @return {Promise} Returns a promise with result */ @Cordova() - isAvailable(): Promise { return; } + isAvailable(): Promise { + return; + } /** * Show authentication dialogue @@ -80,6 +80,7 @@ export class FingerprintAIO extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves when authentication was successfull */ @Cordova() - show(options: FingerprintOptions): Promise { return; } - + show(options: FingerprintOptions): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/firebase-analytics/index.ts b/src/@ionic-native/plugins/firebase-analytics/index.ts index 5cdac8fd4..7755f7d4a 100644 --- a/src/@ionic-native/plugins/firebase-analytics/index.ts +++ b/src/@ionic-native/plugins/firebase-analytics/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @beta @@ -35,7 +35,6 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; }) @Injectable() export class FirebaseAnalytics extends IonicNativePlugin { - /** * Logs an app event. * Be aware of automatically collected events. @@ -44,7 +43,9 @@ export class FirebaseAnalytics extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova({ sync: true }) - logEvent(name: string, params: any): Promise { return; } + logEvent(name: string, params: any): Promise { + return; + } /** * Sets the user ID property. @@ -53,7 +54,9 @@ export class FirebaseAnalytics extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova({ sync: true }) - setUserId(id: string): Promise { return; } + setUserId(id: string): Promise { + return; + } /** * This feature must be used in accordance with Google's Privacy Policy. @@ -63,7 +66,9 @@ export class FirebaseAnalytics extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova({ sync: true }) - setUserProperty(name: string, value: string): Promise { return; } + setUserProperty(name: string, value: string): Promise { + return; + } /** * Sets whether analytics collection is enabled for this app on this device. @@ -71,7 +76,9 @@ export class FirebaseAnalytics extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova({ sync: true }) - setEnabled(enabled: boolean): Promise { return; } + setEnabled(enabled: boolean): Promise { + return; + } /** * Sets the current screen name, which specifies the current visual context in your app. @@ -80,6 +87,7 @@ export class FirebaseAnalytics extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova({ sync: true }) - setCurrentScreen(name: string): Promise { return; } - + setCurrentScreen(name: string): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/firebase-dynamic-links/index.ts b/src/@ionic-native/plugins/firebase-dynamic-links/index.ts index 00bc7cbda..f3b7eb83a 100644 --- a/src/@ionic-native/plugins/firebase-dynamic-links/index.ts +++ b/src/@ionic-native/plugins/firebase-dynamic-links/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface DynamicLinksOptions { title: string; @@ -66,19 +66,21 @@ export interface DynamicLinksOptions { plugin: ' cordova-plugin-firebase-dynamiclinks', pluginRef: 'cordova.plugins.firebase.dynamiclinks', repo: 'https://github.com/chemerisuk/cordova-plugin-firebase-dynamiclinks', - install: 'ionic cordova plugin add cordova-plugin-firebase-dynamiclinks --save --variable APP_DOMAIN="example.com" --variable APP_PATH="/"', + install: + 'ionic cordova plugin add cordova-plugin-firebase-dynamiclinks --save --variable APP_DOMAIN="example.com" --variable APP_PATH="/"', installVariables: ['APP_DOMAIN', 'APP_PATH'], platforms: ['Android', 'iOS'] }) @Injectable() export class FirebaseDynamicLinks extends IonicNativePlugin { - /** * Registers callback that is triggered on each dynamic link click. * @return {Promise} Returns a promise */ @Cordova() - onDynamicLink(): Promise { return; } + onDynamicLink(): Promise { + return; + } /** * Display invitation dialog. @@ -86,6 +88,7 @@ export class FirebaseDynamicLinks extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - sendInvitation(options: DynamicLinksOptions): Promise { return; } - + sendInvitation(options: DynamicLinksOptions): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/firebase/index.ts b/src/@ionic-native/plugins/firebase/index.ts index 60d29c219..9172628fa 100644 --- a/src/@ionic-native/plugins/firebase/index.ts +++ b/src/@ionic-native/plugins/firebase/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; /** @@ -30,7 +30,7 @@ import { Observable } from 'rxjs/Observable'; plugin: 'cordova-plugin-firebase', pluginRef: 'FirebasePlugin', repo: 'https://github.com/arnesson/cordova-plugin-firebase', - platforms: ['Android', 'iOS'], + platforms: ['Android', 'iOS'] }) @Injectable() export class Firebase extends IonicNativePlugin { @@ -297,7 +297,10 @@ export class Firebase extends IonicNativePlugin { successIndex: 2, errorIndex: 3 }) - verifyPhoneNumber(phoneNumber: string, timeoutDuration: number): Promise { + verifyPhoneNumber( + phoneNumber: string, + timeoutDuration: number + ): Promise { return; } diff --git a/src/@ionic-native/plugins/flashlight/index.ts b/src/@ionic-native/plugins/flashlight/index.ts index 01cce2148..91c055a5b 100644 --- a/src/@ionic-native/plugins/flashlight/index.ts +++ b/src/@ionic-native/plugins/flashlight/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name Flashlight @@ -28,35 +28,41 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; }) @Injectable() export class Flashlight extends IonicNativePlugin { - /** * Checks if the flashlight is available * @returns {Promise} Returns a promise that resolves with a boolean stating if the flashlight is available. */ @Cordova() - available(): Promise { return; } + available(): Promise { + return; + } /** * Switches the flashlight on * @returns {Promise} */ @Cordova() - switchOn(): Promise { return; } + switchOn(): Promise { + return; + } /** * Switches the flashlight off * @returns {Promise} */ @Cordova() - switchOff(): Promise { return; } + switchOff(): Promise { + return; + } /** * Toggles the flashlight * @returns {Promise} */ @Cordova() - toggle(): Promise { return; } - + toggle(): Promise { + return; + } /** * Checks if the flashlight is turned on. @@ -65,6 +71,7 @@ export class Flashlight extends IonicNativePlugin { @Cordova({ sync: true }) - isSwitchedOn(): boolean { return; } - + isSwitchedOn(): boolean { + return; + } } diff --git a/src/@ionic-native/plugins/flurry-analytics/index.ts b/src/@ionic-native/plugins/flurry-analytics/index.ts index 6116dd195..980850b28 100644 --- a/src/@ionic-native/plugins/flurry-analytics/index.ts +++ b/src/@ionic-native/plugins/flurry-analytics/index.ts @@ -1,5 +1,10 @@ -import { Plugin, CordovaInstance, checkAvailability, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; +import { + checkAvailability, + CordovaInstance, + IonicNativePlugin, + Plugin +} from '@ionic-native/core'; export interface FlurryAnalyticsOptions { /** Flurry API key is required */ @@ -73,11 +78,10 @@ export interface FlurryAnalyticsLocation { } /** -* @hidden -*/ + * @hidden + */ export class FlurryAnalyticsObject { - - constructor(private _objectInstance: any) { } + constructor(private _objectInstance: any) {} /** * This function set the Event @@ -149,7 +153,10 @@ export class FlurryAnalyticsObject { * @return {Promise} */ @CordovaInstance() - setLocation(location: FlurryAnalyticsLocation, message: string): Promise { + setLocation( + location: FlurryAnalyticsLocation, + message: string + ): Promise { return; } @@ -172,7 +179,6 @@ export class FlurryAnalyticsObject { endSession(): Promise { return; } - } /** @@ -216,22 +222,24 @@ export class FlurryAnalyticsObject { }) @Injectable() export class FlurryAnalytics extends IonicNativePlugin { - /** * Creates a new instance of FlurryAnalyticsObject * @param options {FlurryAnalyticsOptions} options * @return {FlurryAnalyticsObject} */ create(options: FlurryAnalyticsOptions): FlurryAnalyticsObject { - let instance: any; - if (checkAvailability(FlurryAnalytics.pluginRef, null, FlurryAnalytics.pluginName) === true) { + if ( + checkAvailability( + FlurryAnalytics.pluginRef, + null, + FlurryAnalytics.pluginName + ) === true + ) { instance = new (window as any).FlurryAnalytics(options); } return new FlurryAnalyticsObject(instance); - } - } diff --git a/src/@ionic-native/plugins/ftp/index.ts b/src/@ionic-native/plugins/ftp/index.ts index c2c3be5ae..820a70fd0 100644 --- a/src/@ionic-native/plugins/ftp/index.ts +++ b/src/@ionic-native/plugins/ftp/index.ts @@ -1,6 +1,6 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; -import { Observable } from 'rxjs'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Observable } from 'rxjs/Observable'; /** * @name FTP @@ -32,18 +32,19 @@ import { Observable } from 'rxjs'; }) @Injectable() export class FTP extends IonicNativePlugin { - /** - * Connect to one ftp server. - * - * Just need to init the connection once. If success, you can do any ftp actions later. - * @param hostname {string} The ftp server url. Like ip without protocol prefix, e.g. "192.168.1.1". - * @param username {string} The ftp login username. If it and `password` are all blank/undefined, the default username "anonymous" is used. - * @param password {string} The ftp login password. If it and `username` are all blank/undefined, the default password "anonymous@" is used. - * @return {Promise} The success callback. Notice: For iOS, if triggered, means `init` success, but NOT means the later action, e.g. `ls`... `download` will success! - */ + * Connect to one ftp server. + * + * Just need to init the connection once. If success, you can do any ftp actions later. + * @param hostname {string} The ftp server url. Like ip without protocol prefix, e.g. "192.168.1.1". + * @param username {string} The ftp login username. If it and `password` are all blank/undefined, the default username "anonymous" is used. + * @param password {string} The ftp login password. If it and `username` are all blank/undefined, the default password "anonymous@" is used. + * @return {Promise} The success callback. Notice: For iOS, if triggered, means `init` success, but NOT means the later action, e.g. `ls`... `download` will success! + */ @Cordova() - connect(hostname: string, username: string, password: string): Promise { return; } + connect(hostname: string, username: string, password: string): Promise { + return; + } /** * List files (with info of `name`, `type`, `link`, `size`, `modifiedDate`) under one directory on the ftp server. @@ -60,7 +61,9 @@ export class FTP extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - ls(path: string): Promise { return; } + ls(path: string): Promise { + return; + } /** * Create one directory on the ftp server. @@ -69,7 +72,9 @@ export class FTP extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - mkdir(path: string): Promise { return; } + mkdir(path: string): Promise { + return; + } /** * Delete one directory on the ftp server. @@ -80,7 +85,9 @@ export class FTP extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - rmdir(path: string): Promise { return; } + rmdir(path: string): Promise { + return; + } /** * Delete one file on the ftp server. @@ -89,7 +96,9 @@ export class FTP extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - rm(file: string): Promise { return; } + rm(file: string): Promise { + return; + } /** * Upload one local file to the ftp server. @@ -103,7 +112,9 @@ export class FTP extends IonicNativePlugin { @Cordova({ observable: true }) - upload(localFile: string, remoteFile: string): Observable { return; } + upload(localFile: string, remoteFile: string): Observable { + return; + } /** * Download one remote file on the ftp server to local path. @@ -117,7 +128,9 @@ export class FTP extends IonicNativePlugin { @Cordova({ observable: true }) - download(localFile: string, remoteFile: string): Observable { return; } + download(localFile: string, remoteFile: string): Observable { + return; + } /** * Cancel all requests. Always success. @@ -125,7 +138,9 @@ export class FTP extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - cancel(): Promise { return; } + cancel(): Promise { + return; + } /** * Disconnect from ftp server. @@ -133,6 +148,7 @@ export class FTP extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - disconnect(): Promise { return; } - + disconnect(): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/geofence/index.ts b/src/@ionic-native/plugins/geofence/index.ts index a906aca88..46dcffe32 100644 --- a/src/@ionic-native/plugins/geofence/index.ts +++ b/src/@ionic-native/plugins/geofence/index.ts @@ -1,5 +1,10 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, CordovaFunctionOverride, IonicNativePlugin } from '@ionic-native/core'; +import { + Cordova, + CordovaFunctionOverride, + IonicNativePlugin, + Plugin +} from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; declare const window: any; @@ -84,7 +89,6 @@ declare const window: any; }) @Injectable() export class Geofence extends IonicNativePlugin { - TransitionType = { ENTER: 1, EXIT: 2, @@ -96,7 +100,9 @@ export class Geofence extends IonicNativePlugin { * @return {Observable} */ @CordovaFunctionOverride() - onTransitionReceived(): Observable { return; }; + onTransitionReceived(): Observable { + return; + } /** * Initializes the plugin. User will be prompted to allow the app to use location and notifications. @@ -104,7 +110,9 @@ export class Geofence extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - initialize(): Promise { return; }; + initialize(): Promise { + return; + } /** * Adds a new geofence or array of geofences. For geofence object, see above. @@ -112,7 +120,9 @@ export class Geofence extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - addOrUpdate(geofences: Object | Array): Promise { return; }; + addOrUpdate(geofences: Object | Array): Promise { + return; + } /** * Removes a geofence or array of geofences. `geofenceID` corresponds to one or more IDs specified when the @@ -121,7 +131,9 @@ export class Geofence extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - remove(geofenceId: string | Array): Promise { return; }; + remove(geofenceId: string | Array): Promise { + return; + } /** * Removes all geofences. @@ -129,7 +141,9 @@ export class Geofence extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - removeAll(): Promise { return; }; + removeAll(): Promise { + return; + } /** * Returns an array of geofences currently being monitored. @@ -137,7 +151,9 @@ export class Geofence extends IonicNativePlugin { * @returns {Promise>} */ @Cordova() - getWatched(): Promise { return; }; + getWatched(): Promise { + return; + } /** * Called when the user clicks a geofence notification. iOS and Android only. @@ -145,12 +161,11 @@ export class Geofence extends IonicNativePlugin { * @returns {Observable} */ onNotificationClicked(): Observable { - - return new Observable((observer) => { - window && window.geofence && (window.geofence.onNotificationClicked = observer.next.bind(observer)); - return () => window.geofence.onNotificationClicked = () => { }; + return new Observable(observer => { + window && + window.geofence && + (window.geofence.onNotificationClicked = observer.next.bind(observer)); + return () => (window.geofence.onNotificationClicked = () => {}); }); - } - } diff --git a/src/@ionic-native/plugins/geolocation/index.ts b/src/@ionic-native/plugins/geolocation/index.ts index 7eded999a..c08a3e4a6 100644 --- a/src/@ionic-native/plugins/geolocation/index.ts +++ b/src/@ionic-native/plugins/geolocation/index.ts @@ -1,11 +1,10 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; declare const navigator: any; export interface Coordinates { - /** * a double representing the position's latitude in decimal degrees. */ @@ -49,7 +48,6 @@ export interface Coordinates { * This value can be null. */ speed: number; - } export interface Geoposition { @@ -65,7 +63,6 @@ export interface Geoposition { } export interface PositionError { - /** * A code that indicates the error that occurred */ @@ -75,11 +72,9 @@ export interface PositionError { * A message that can describe the error that occurred */ message: string; - } export interface GeolocationOptions { - /** * Is a positive long value indicating the maximum age in milliseconds of a * possible cached position that is acceptable to return. If set to 0, it @@ -107,7 +102,6 @@ export interface GeolocationOptions { * @type {boolean} */ enableHighAccuracy?: boolean; - } /** @@ -153,13 +147,13 @@ export interface GeolocationOptions { plugin: 'cordova-plugin-geolocation', pluginRef: 'navigator.geolocation', repo: 'https://github.com/apache/cordova-plugin-geolocation', - install: 'ionic cordova plugin add cordova-plugin-geolocation --variable GEOLOCATION_USAGE_DESCRIPTION="To locate you"', + install: + 'ionic cordova plugin add cordova-plugin-geolocation --variable GEOLOCATION_USAGE_DESCRIPTION="To locate you"', installVariables: ['GEOLOCATION_USAGE_DESCRIPTION'], platforms: ['Amazon Fire OS', 'Android', 'Browser', 'iOS', 'Windows'] }) @Injectable() export class Geolocation extends IonicNativePlugin { - /** * Get the device's current position. * @@ -169,7 +163,9 @@ export class Geolocation extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - getCurrentPosition(options?: GeolocationOptions): Promise { return; } + getCurrentPosition(options?: GeolocationOptions): Promise { + return; + } /** * Watch the current device's position. Clear the watch by unsubscribing from @@ -190,12 +186,13 @@ export class Geolocation extends IonicNativePlugin { * @returns {Observable} Returns an Observable that notifies with the [position](https://developer.mozilla.org/en-US/docs/Web/API/Position) of the device, or errors. */ watchPosition(options?: GeolocationOptions): Observable { - return new Observable( - (observer: any) => { - let watchId = navigator.geolocation.watchPosition(observer.next.bind(observer), observer.next.bind(observer), options); - return () => navigator.geolocation.clearWatch(watchId); - } - ); + return new Observable((observer: any) => { + let watchId = navigator.geolocation.watchPosition( + observer.next.bind(observer), + observer.next.bind(observer), + options + ); + return () => navigator.geolocation.clearWatch(watchId); + }); } - } diff --git a/src/@ionic-native/plugins/globalization/index.ts b/src/@ionic-native/plugins/globalization/index.ts index 0acecdd92..01e4d1ad5 100644 --- a/src/@ionic-native/plugins/globalization/index.ts +++ b/src/@ionic-native/plugins/globalization/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name Globalization @@ -36,20 +36,23 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; }) @Injectable() export class Globalization extends IonicNativePlugin { - /** * Returns the BCP-47 compliant language identifier tag to the successCallback with a properties object as a parameter. That object should have a value property with a String value. * @returns {Promise<{value: string}>} */ @Cordova() - getPreferredLanguage(): Promise<{ value: string }> { return; } + getPreferredLanguage(): Promise<{ value: string }> { + return; + } /** * Returns the BCP 47 compliant locale identifier string to the successCallback with a properties object as a parameter. * @returns {Promise<{value: string}>} */ @Cordova() - getLocaleName(): Promise<{ value: string }> { return; } + getLocaleName(): Promise<{ value: string }> { + return; + } /** * Converts date to string @@ -61,7 +64,12 @@ export class Globalization extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - dateToString(date: Date, options: { formatLength: string, selector: string }): Promise<{ value: string }> { return; } + dateToString( + date: Date, + options: { formatLength: string; selector: string } + ): Promise<{ value: string }> { + return; + } /** * Parses a date formatted as a string, according to the client's user preferences and calendar using the time zone of the client, and returns the corresponding date object. @@ -73,7 +81,20 @@ export class Globalization extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - stringToDate(dateString: string, options: { formatLength: string, selector: string }): Promise<{ year: number, month: number, day: number, hour: number, minute: number, second: number, millisecond: number }> { return; } + stringToDate( + dateString: string, + options: { formatLength: string; selector: string } + ): Promise<{ + year: number; + month: number; + day: number; + hour: number; + minute: number; + second: number; + millisecond: number; + }> { + return; + } /** * Returns a pattern string to format and parse dates according to the client's user preferences. @@ -83,7 +104,17 @@ export class Globalization extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - getDatePattern(options: { formatLength: string, selector: string }): Promise<{ pattern: string, timezone: string, utf_offset: number, dst_offset: number }> { return; } + getDatePattern(options: { + formatLength: string; + selector: string; + }): Promise<{ + pattern: string; + timezone: string; + utf_offset: number; + dst_offset: number; + }> { + return; + } /** * Returns an array of the names of the months or days of the week, depending on the client's user preferences and calendar. @@ -93,7 +124,12 @@ export class Globalization extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - getDateNames(options: { type: string, item: string }): Promise<{ value: Array }> { return; } + getDateNames(options: { + type: string; + item: string; + }): Promise<{ value: Array }> { + return; + } /** * Indicates whether daylight savings time is in effect for a given date using the client's time zone and calendar. @@ -101,14 +137,18 @@ export class Globalization extends IonicNativePlugin { * @returns {Promise<{dst: string}>} reutrns a promise with the value */ @Cordova() - isDayLightSavingsTime(date: Date): Promise<{ dst: string }> { return; } + isDayLightSavingsTime(date: Date): Promise<{ dst: string }> { + return; + } /** * Returns the first day of the week according to the client's user preferences and calendar. * @returns {Promise<{value: string}>} returns a promise with the value */ @Cordova() - getFirstDayOfWeek(): Promise<{ value: string }> { return; } + getFirstDayOfWeek(): Promise<{ value: string }> { + return; + } /** * Returns a number formatted as a string according to the client's user preferences. @@ -119,7 +159,12 @@ export class Globalization extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - numberToString(numberToConvert: number, options: { type: string }): Promise<{ value: string }> { return; } + numberToString( + numberToConvert: number, + options: { type: string } + ): Promise<{ value: string }> { + return; + } /** * @@ -131,7 +176,12 @@ export class Globalization extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - stringToNumber(stringToConvert: string, options: { type: string }): Promise<{ value: number | string }> { return; } + stringToNumber( + stringToConvert: string, + options: { type: string } + ): Promise<{ value: number | string }> { + return; + } /** * Returns a pattern string to format and parse numbers according to the client's user preferences. @@ -141,7 +191,20 @@ export class Globalization extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - getNumberPattern(options: { type: string }): Promise<{ pattern: string, symbol: string, fraction: number, rounding: number, positive: string, negative: string, decimal: string, grouping: string }> { return; } + getNumberPattern(options: { + type: string; + }): Promise<{ + pattern: string; + symbol: string; + fraction: number; + rounding: number; + positive: string; + negative: string; + decimal: string; + grouping: string; + }> { + return; + } /** * Returns a pattern string to format and parse currency values according to the client's user preferences and ISO 4217 currency code. @@ -149,6 +212,16 @@ export class Globalization extends IonicNativePlugin { * @returns {Promise<{ pattern: string, code: string, fraction: number, rounding: number, decimal: number, grouping: string }>} */ @Cordova() - getCurrencyPattern(currencyCode: string): Promise<{ pattern: string, code: string, fraction: number, rounding: number, decimal: number, grouping: string }> { return; } - + getCurrencyPattern( + currencyCode: string + ): Promise<{ + pattern: string; + code: string; + fraction: number; + rounding: number; + decimal: number; + grouping: string; + }> { + return; + } } diff --git a/src/@ionic-native/plugins/google-analytics/index.ts b/src/@ionic-native/plugins/google-analytics/index.ts index 1b7fe31ee..83c65eae7 100644 --- a/src/@ionic-native/plugins/google-analytics/index.ts +++ b/src/@ionic-native/plugins/google-analytics/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name Google Analytics diff --git a/src/@ionic-native/plugins/google-maps/index.ts b/src/@ionic-native/plugins/google-maps/index.ts index 3d875b2b5..172fbadfb 100644 --- a/src/@ionic-native/plugins/google-maps/index.ts +++ b/src/@ionic-native/plugins/google-maps/index.ts @@ -1,16 +1,29 @@ -import { Injectable } from '@angular/core'; -import { CordovaCheck, CordovaInstance, Plugin, InstanceProperty, InstanceCheck, checkAvailability, IonicNativePlugin } from '@ionic-native/core'; -import { Observable } from 'rxjs/Observable'; import 'rxjs/add/observable/fromEvent'; +import { Injectable } from '@angular/core'; +import { + checkAvailability, + CordovaCheck, + CordovaInstance, + InstanceCheck, + InstanceProperty, + IonicNativePlugin, + Plugin +} from '@ionic-native/core'; +import { Observable } from 'rxjs/Observable'; -export type MapType = 'MAP_TYPE_NORMAL' | 'MAP_TYPE_ROADMAP' | 'MAP_TYPE_SATELLITE' | 'MAP_TYPE_HYBRID' | 'MAP_TYPE_TERRAIN' | 'MAP_TYPE_NONE'; +export type MapType = + | 'MAP_TYPE_NORMAL' + | 'MAP_TYPE_ROADMAP' + | 'MAP_TYPE_SATELLITE' + | 'MAP_TYPE_HYBRID' + | 'MAP_TYPE_TERRAIN' + | 'MAP_TYPE_NONE'; /** * @hidden */ export class LatLng implements ILatLng { - lat: number; lng: number; @@ -43,7 +56,6 @@ export interface ILatLngBounds { * @hidden */ export class LatLngBounds implements ILatLngBounds { - private _objectInstance: any; @InstanceProperty northeast: ILatLng; @@ -59,7 +71,9 @@ export class LatLngBounds implements ILatLngBounds { * @return {string} */ @CordovaInstance({ sync: true }) - toString(): string { return; } + toString(): string { + return; + } /** * Returns a string of the form "lat_sw,lng_sw,lat_ne,lng_ne" for this bounds, where "sw" corresponds to the southwest corner of the bounding box, while "ne" corresponds to the northeast corner of that box. @@ -67,7 +81,9 @@ export class LatLngBounds implements ILatLngBounds { * @return {string} */ @CordovaInstance({ sync: true }) - toUrlValue(precision?: number): string { return; } + toUrlValue(precision?: number): string { + return; + } /** * Extends this bounds to contain the given point. @@ -81,18 +97,21 @@ export class LatLngBounds implements ILatLngBounds { * @param LatLng {ILatLng} */ @CordovaInstance({ sync: true }) - contains(LatLng: ILatLng): boolean { return; } + contains(LatLng: ILatLng): boolean { + return; + } /** * Computes the center of this LatLngBounds * @return {LatLng} */ @CordovaInstance({ sync: true }) - getCenter(): LatLng { return; } + getCenter(): LatLng { + return; + } } export interface GoogleMapControlOptions { - /** * Turns the compass on or off. */ @@ -132,7 +151,6 @@ export interface GoogleMapControlOptions { } export interface GoogleMapGestureOptions { - /** * Set false to disable the scroll gesture (default: true) */ @@ -172,7 +190,6 @@ export interface GoogleMapPaddingOptions { } export interface GoogleMapPreferenceOptions { - /** * Minimum and maximum zoom levels for zooming gestures. */ @@ -195,7 +212,6 @@ export interface GoogleMapPreferenceOptions { } export interface GoogleMapOptions { - /** * mapType [options] */ @@ -328,7 +344,6 @@ export interface CircleOptions { } export interface GeocoderRequest { - /** * The address property or position property is required. * You can not specify both property at the same time. @@ -375,7 +390,7 @@ export interface GeocoderResult { lines?: Array; permises?: string; phone?: string; - url?: string + url?: string; }; locale?: string; locality?: string; @@ -732,7 +747,6 @@ export interface ToDataUrlOptions { uncompress?: boolean; } - /** * Options for map.addKmlOverlay() method */ @@ -758,7 +772,6 @@ export interface KmlOverlayOptions { [key: string]: any; } - /** * @hidden */ @@ -802,8 +815,22 @@ export class VisibleRegion implements ILatLngBounds { */ @InstanceProperty type: string; - constructor(southwest: LatLngBounds, northeast: LatLngBounds, farLeft: ILatLng, farRight: ILatLng, nearLeft: ILatLng, nearRight: ILatLng) { - this._objectInstance = new (GoogleMaps.getPlugin()).VisibleRegion(southwest, northeast, farLeft, farRight, nearLeft, nearRight); + constructor( + southwest: LatLngBounds, + northeast: LatLngBounds, + farLeft: ILatLng, + farRight: ILatLng, + nearLeft: ILatLng, + nearRight: ILatLng + ) { + this._objectInstance = new (GoogleMaps.getPlugin()).VisibleRegion( + southwest, + northeast, + farLeft, + farRight, + nearLeft, + nearRight + ); } /** @@ -811,7 +838,9 @@ export class VisibleRegion implements ILatLngBounds { * @return {string} */ @CordovaInstance({ sync: true }) - toString(): string { return; } + toString(): string { + return; + } /** * Returns a string of the form "lat_sw,lng_sw,lat_ne,lng_ne" for this bounds, where "sw" corresponds to the southwest corner of the bounding box, while "ne" corresponds to the northeast corner of that box. @@ -819,16 +848,18 @@ export class VisibleRegion implements ILatLngBounds { * @return {string} */ @CordovaInstance({ sync: true }) - toUrlValue(precision?: number): string { return; } - + toUrlValue(precision?: number): string { + return; + } /** * Returns true if the given lat/lng is in this bounds. * @param LatLng {ILatLng} */ @CordovaInstance({ sync: true }) - contains(LatLng: ILatLng): boolean { return; } - + contains(LatLng: ILatLng): boolean { + return; + } } /** @@ -869,7 +900,7 @@ export const GoogleMapsEvent = { /** * @hidden */ -export const GoogleMapsAnimation: { [animationName: string]: string; } = { +export const GoogleMapsAnimation: { [animationName: string]: string } = { BOUNCE: 'BOUNCE', DROP: 'DROP' }; @@ -877,7 +908,7 @@ export const GoogleMapsAnimation: { [animationName: string]: string; } = { /** * @hidden */ -export const GoogleMapsMapTypeId: { [mapType: string]: MapType; } = { +export const GoogleMapsMapTypeId: { [mapType: string]: MapType } = { NORMAL: 'MAP_TYPE_NORMAL', ROADMAP: 'MAP_TYPE_ROADMAP', SATELLITE: 'MAP_TYPE_SATELLITE', @@ -1004,24 +1035,33 @@ export const GoogleMapsMapTypeId: { [mapType: string]: MapType; } = { pluginRef: 'plugin.google.maps', plugin: 'cordova-plugin-googlemaps', repo: 'https://github.com/mapsplugin/cordova-plugin-googlemaps', - document: 'https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.0.0/README.md', - install: 'ionic cordova plugin add cordova-plugin-googlemaps --variable API_KEY_FOR_ANDROID="YOUR_ANDROID_API_KEY_IS_HERE" --variable API_KEY_FOR_IOS="YOUR_IOS_API_KEY_IS_HERE"', + document: + 'https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.0.0/README.md', + install: + 'ionic cordova plugin add cordova-plugin-googlemaps --variable API_KEY_FOR_ANDROID="YOUR_ANDROID_API_KEY_IS_HERE" --variable API_KEY_FOR_IOS="YOUR_IOS_API_KEY_IS_HERE"', installVariables: ['API_KEY_FOR_ANDROID', 'API_KEY_FOR_IOS'], platforms: ['Android', 'iOS'] }) @Injectable() export class GoogleMaps extends IonicNativePlugin { - /** * Creates a new GoogleMap instance * @param element {string | HTMLElement} Element ID or reference to attach the map to * @param options {GoogleMapOptions} [options] Options * @return {GoogleMap} */ - static create(element: string | HTMLElement | GoogleMapOptions, options?: GoogleMapOptions): GoogleMap { + static create( + element: string | HTMLElement | GoogleMapOptions, + options?: GoogleMapOptions + ): GoogleMap { if (element instanceof HTMLElement) { if (element.getAttribute('__pluginMapId')) { - console.error('GoogleMaps', element.tagName + '[__pluginMapId=\'' + element.getAttribute('__pluginMapId') + '\'] has already map.'); + console.error( + 'GoogleMaps', + `${element.tagName}[__pluginMapId='${element.getAttribute( + '__pluginMapId' + )}'] has already map.` + ); return; } } else if (typeof element === 'object') { @@ -1037,11 +1077,13 @@ export class GoogleMaps extends IonicNativePlugin { * @deprecation * @hidden */ - create(element: string | HTMLElement | GoogleMapOptions, options?: GoogleMapOptions): GoogleMap { + create( + element: string | HTMLElement | GoogleMapOptions, + options?: GoogleMapOptions + ): GoogleMap { console.error('GoogleMaps', '[deprecated] Please use GoogleMaps.create()'); return GoogleMaps.create(element, options); } - } /** @@ -1064,7 +1106,7 @@ export class BaseClass { */ @InstanceCheck({ observable: true }) addEventListener(eventName: string): Observable { - return new Observable((observer) => { + return new Observable(observer => { this._objectInstance.on(eventName, (...args: any[]) => { if (args[args.length - 1] instanceof GoogleMaps.getPlugin().BaseClass) { if (args[args.length - 1].type === 'Map') { @@ -1083,7 +1125,9 @@ export class BaseClass { } args[args.length - 1] = overlay; } else { - args[args.length - 1] = this._objectInstance.getMap().get('_overlays')[args[args.length - 1].getId()]; + args[args.length - 1] = this._objectInstance + .getMap() + .get('_overlays')[args[args.length - 1].getId()]; } } observer.next(args); @@ -1098,7 +1142,7 @@ export class BaseClass { */ @InstanceCheck() addListenerOnce(eventName: string): Promise { - return new Promise((resolve) => { + return new Promise(resolve => { this._objectInstance.one(eventName, (...args: any[]) => { if (args[args.length - 1] instanceof GoogleMaps.getPlugin().BaseClass) { if (args[args.length - 1].type === 'Map') { @@ -1117,7 +1161,9 @@ export class BaseClass { } args[args.length - 1] = overlay; } else { - args[args.length - 1] = this._objectInstance.getMap().get('_overlays')[args[args.length - 1].getId()]; + args[args.length - 1] = this._objectInstance + .getMap() + .get('_overlays')[args[args.length - 1].getId()]; } } resolve(args); @@ -1130,7 +1176,9 @@ export class BaseClass { * @param key {any} */ @CordovaInstance({ sync: true }) - get(key: string): any { return; } + get(key: string): any { + return; + } /** * Sets a value @@ -1139,7 +1187,7 @@ export class BaseClass { * @param noNotify {boolean} [options] True if you want to prevent firing the `(key)_changed` event. */ @CordovaInstance({ sync: true }) - set(key: string, value: any, noNotify?: boolean): void { } + set(key: string, value: any, noNotify?: boolean): void {} /** * Bind a key to another object @@ -1149,7 +1197,12 @@ export class BaseClass { * @param noNotify? {boolean} [options] True if you want to prevent `(key)_changed` event when you bind first time, because the internal status is changed from `undefined` to something. */ @CordovaInstance({ sync: true }) - bindTo(key: string, target: any, targetKey?: string, noNotify?: boolean): void { } + bindTo( + key: string, + target: any, + targetKey?: string, + noNotify?: boolean + ): void {} /** * Alias of `addEventListener` @@ -1158,7 +1211,7 @@ export class BaseClass { */ @InstanceCheck({ observable: true }) on(eventName: string): Observable { - return new Observable((observer) => { + return new Observable(observer => { this._objectInstance.on(eventName, (...args: any[]) => { if (args[args.length - 1] instanceof GoogleMaps.getPlugin().BaseClass) { if (args[args.length - 1].type === 'Map') { @@ -1177,7 +1230,9 @@ export class BaseClass { } args[args.length - 1] = overlay; } else { - args[args.length - 1] = this._objectInstance.getMap().get('_overlays')[args[args.length - 1].getId()]; + args[args.length - 1] = this._objectInstance + .getMap() + .get('_overlays')[args[args.length - 1].getId()]; } } observer.next(args); @@ -1192,7 +1247,7 @@ export class BaseClass { */ @InstanceCheck() one(eventName: string): Promise { - return new Promise((resolve) => { + return new Promise(resolve => { this._objectInstance.one(eventName, (...args: any[]) => { if (args[args.length - 1] instanceof GoogleMaps.getPlugin().BaseClass) { if (args[args.length - 1].type === 'Map') { @@ -1211,7 +1266,9 @@ export class BaseClass { } args[args.length - 1] = overlay; } else { - args[args.length - 1] = this._objectInstance.getMap().get('_overlays')[args[args.length - 1].getId()]; + args[args.length - 1] = this._objectInstance + .getMap() + .get('_overlays')[args[args.length - 1].getId()]; } } resolve(args); @@ -1223,7 +1280,7 @@ export class BaseClass { * Clears all stored values */ @CordovaInstance({ sync: true }) - empty(): void { } + empty(): void {} /** * Dispatch event. @@ -1233,7 +1290,6 @@ export class BaseClass { @CordovaInstance({ sync: true }) trigger(eventName: string, ...parameters: any[]): void {} - /** * Executes off() and empty() */ @@ -1241,7 +1297,9 @@ export class BaseClass { destroy(): void { let map: GoogleMap = this._objectInstance.getMap(); if (map) { - delete this._objectInstance.getMap().get('_overlays')[this._objectInstance.getId()]; + delete this._objectInstance.getMap().get('_overlays')[ + this._objectInstance.getId() + ]; } this._objectInstance.remove(); } @@ -1260,7 +1318,10 @@ export class BaseClass { * @param listener {Function} [options] Event listener */ @CordovaInstance({ sync: true }) - removeEventListener(eventName?: string, listener?: (...parameters: any[]) => void): void {} + removeEventListener( + eventName?: string, + listener?: (...parameters: any[]) => void + ): void {} /** * Alias of `removeEventListener` @@ -1270,7 +1331,6 @@ export class BaseClass { */ @CordovaInstance({ sync: true }) off(eventName?: string, listener?: (...parameters: any[]) => void): void {} - } /** @@ -1284,13 +1344,14 @@ export class BaseClass { repo: '' }) export class BaseArrayClass extends BaseClass { - constructor(initialData?: T[] | any) { super(); if (initialData instanceof GoogleMaps.getPlugin().BaseArrayClass) { this._objectInstance = initialData; } else { - this._objectInstance = new (GoogleMaps.getPlugin().BaseArrayClass)(initialData); + this._objectInstance = new (GoogleMaps.getPlugin()).BaseArrayClass( + initialData + ); } } @@ -1314,8 +1375,10 @@ export class BaseArrayClass extends BaseClass { * @return {Promise} */ @CordovaCheck() - forEachAsync(fn: ((element: T, callback: () => void) => void)): Promise { - return new Promise((resolve) => { + forEachAsync( + fn: ((element: T, callback: () => void) => void) + ): Promise { + return new Promise(resolve => { this._objectInstance.forEachAsync(fn, resolve); }); } @@ -1327,7 +1390,9 @@ export class BaseArrayClass extends BaseClass { * @return {Array} returns a new array with the results */ @CordovaInstance({ sync: true }) - map(fn: (element: T, index: number) => any): any[] { return; } + map(fn: (element: T, index: number) => any): any[] { + return; + } /** * Iterate over each element, calling the provided callback. @@ -1337,8 +1402,10 @@ export class BaseArrayClass extends BaseClass { * @return {Promise} returns a new array with the results */ @CordovaCheck() - mapAsync(fn: ((element: T, callback: (newElement: any) => void) => void)): Promise { - return new Promise((resolve) => { + mapAsync( + fn: ((element: T, callback: (newElement: any) => void) => void) + ): Promise { + return new Promise(resolve => { this._objectInstance.mapAsync(fn, resolve); }); } @@ -1350,8 +1417,10 @@ export class BaseArrayClass extends BaseClass { * @return {Promise} returns a new array with the results */ @CordovaCheck() - mapSeries(fn: ((element: T, callback: (newElement: any) => void) => void)): Promise { - return new Promise((resolve) => { + mapSeries( + fn: ((element: T, callback: (newElement: any) => void) => void) + ): Promise { + return new Promise(resolve => { this._objectInstance.mapSeries(fn, resolve); }); } @@ -1362,7 +1431,9 @@ export class BaseArrayClass extends BaseClass { * @return {Array} returns a new filtered array */ @CordovaInstance({ sync: true }) - filter(fn: (element: T, index: number) => boolean): T[] { return; } + filter(fn: (element: T, index: number) => boolean): T[] { + return; + } /** * The filterAsync() method creates a new array with all elements that pass the test implemented by the provided function. @@ -1371,8 +1442,10 @@ export class BaseArrayClass extends BaseClass { * @return {Promise} returns a new filtered array */ @CordovaCheck() - filterAsync(fn: (element: T, callback: (result: boolean) => void) => void): Promise { - return new Promise((resolve) => { + filterAsync( + fn: (element: T, callback: (result: boolean) => void) => void + ): Promise { + return new Promise(resolve => { this._objectInstance.filterAsync(fn, resolve); }); } @@ -1382,7 +1455,9 @@ export class BaseArrayClass extends BaseClass { * @return {Array} */ @CordovaInstance({ sync: true }) - getArray(): T[] { return; } + getArray(): T[] { + return; + } /** * Returns the element at the specified index. @@ -1397,7 +1472,9 @@ export class BaseArrayClass extends BaseClass { * @return {number} */ @CordovaInstance({ sync: true }) - getLength(): number { return; } + getLength(): number { + return; + } /** * The indexOf() method returns the first index at which a given element can be found in the array, or -1 if it is not present. @@ -1405,7 +1482,9 @@ export class BaseArrayClass extends BaseClass { * @return {number} */ @CordovaInstance({ sync: true }) - indexOf(element: T): number { return; } + indexOf(element: T): number { + return; + } /** * The reverse() method reverses an array in place. @@ -1435,7 +1514,9 @@ export class BaseArrayClass extends BaseClass { * @return {Object} */ @CordovaInstance({ sync: true }) - pop(noNotify?: boolean): T { return; } + pop(noNotify?: boolean): T { + return; + } /** * Adds one element to the end of the array and returns the new length of the array. @@ -1468,7 +1549,6 @@ export class BaseArrayClass extends BaseClass { * https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.0.0/class/Circle/README.md */ export class Circle extends BaseClass { - private _map: GoogleMap; constructor(_map: GoogleMap, _objectInstance: any) { @@ -1482,13 +1562,17 @@ export class Circle extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getId(): string { return; } + getId(): string { + return; + } /** * Return the map instance. * @return {GoogleMap} */ - getMap(): GoogleMap { return this._map; } + getMap(): GoogleMap { + return this._map; + } /** * Change the center position. @@ -1502,14 +1586,18 @@ export class Circle extends BaseClass { * @return {ILatLng} */ @CordovaInstance({ sync: true }) - getCenter(): ILatLng { return; } + getCenter(): ILatLng { + return; + } /** * Return the current circle radius. * @return {number} */ @CordovaInstance({ sync: true }) - getRadius(): number { return; } + getRadius(): number { + return; + } /** * Change the circle radius. @@ -1530,7 +1618,9 @@ export class Circle extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getFillColor(): string { return; } + getFillColor(): string { + return; + } /** * Change the stroke width. @@ -1544,7 +1634,9 @@ export class Circle extends BaseClass { * @return {number} */ @CordovaInstance({ sync: true }) - getStrokeWidth(): number { return; } + getStrokeWidth(): number { + return; + } /** * Change the stroke color (outter color). @@ -1558,7 +1650,9 @@ export class Circle extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getStrokeColor(): string { return; } + getStrokeColor(): string { + return; + } /** * Change clickablity of the circle. @@ -1572,7 +1666,9 @@ export class Circle extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - getClickable(): boolean { return; } + getClickable(): boolean { + return; + } /** * Change the circle zIndex order. @@ -1586,7 +1682,9 @@ export class Circle extends BaseClass { * @return {number} */ @CordovaInstance({ sync: true }) - getZIndex(): number { return; } + getZIndex(): number { + return; + } /** * Remove the circle. @@ -1599,7 +1697,9 @@ export class Circle extends BaseClass { * @return {LatLngBounds} */ @CordovaInstance({ sync: true }) - getBounds(): LatLngBounds { return; } + getBounds(): LatLngBounds { + return; + } /** * Set circle visibility @@ -1613,7 +1713,9 @@ export class Circle extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - getVisible(): boolean { return; } + getVisible(): boolean { + return; + } } /** @@ -1626,14 +1728,15 @@ export class Circle extends BaseClass { repo: '' }) export class Environment { - /** * Get the open source software license information for Google Maps SDK for iOS. * @return {Promise} */ static getLicenseInfo(): Promise { - return new Promise((resolve) => { - GoogleMaps.getPlugin().environment.getLicenseInfo((text: string) => resolve(text)); + return new Promise(resolve => { + GoogleMaps.getPlugin().environment.getLicenseInfo((text: string) => + resolve(text) + ); }); } @@ -1642,7 +1745,10 @@ export class Environment { * @hidden */ getLicenseInfo(): Promise { - console.error('GoogleMaps', '[deprecated] This method is static. Please use Environment.getLicenseInfo()'); + console.error( + 'GoogleMaps', + '[deprecated] This method is static. Please use Environment.getLicenseInfo()' + ); return Environment.getLicenseInfo(); } @@ -1659,7 +1765,10 @@ export class Environment { * @hidden */ setBackgroundColor(color: string): void { - console.error('GoogleMaps', '[deprecated] This method is static. Please use Environment.setBackgroundColor()'); + console.error( + 'GoogleMaps', + '[deprecated] This method is static. Please use Environment.setBackgroundColor()' + ); Environment.setBackgroundColor(color); } } @@ -1674,13 +1783,17 @@ export class Environment { repo: '' }) export class Geocoder { - /** * @deprecation * @hidden */ - geocode(request: GeocoderRequest): Promise> { - console.error('GoogleMaps', '[deprecated] This method is static. Please use Geocoder.geocode()'); + geocode( + request: GeocoderRequest + ): Promise> { + console.error( + 'GoogleMaps', + '[deprecated] This method is static. Please use Geocoder.geocode()' + ); return Geocoder.geocode(request); } @@ -1689,10 +1802,15 @@ export class Geocoder { * @param {GeocoderRequest} request Request object with either an address or a position * @return {Promise>} */ - static geocode(request: GeocoderRequest): Promise> { - - if (request.address instanceof Array || Array.isArray(request.address) || - request.position instanceof Array || Array.isArray(request.position)) { + static geocode( + request: GeocoderRequest + ): Promise> { + if ( + request.address instanceof Array || + Array.isArray(request.address) || + request.position instanceof Array || + Array.isArray(request.position) + ) { // ------------------------- // Geocoder.geocode({ // address: [ @@ -1717,13 +1835,16 @@ export class Geocoder { // }) // ------------------------- return new Promise((resolve, reject) => { - GoogleMaps.getPlugin().Geocoder.geocode(request, (results: GeocoderResult[]) => { - if (results) { - resolve(results); - } else { - reject(); + GoogleMaps.getPlugin().Geocoder.geocode( + request, + (results: GeocoderResult[]) => { + if (results) { + resolve(results); + } else { + reject(); + } } - }); + ); }); } } @@ -1739,7 +1860,6 @@ export class Geocoder { repo: '' }) export class LocationService { - /** * Get the current device location without map * @return {Promise} @@ -1761,13 +1881,15 @@ export class LocationService { repo: '' }) export class Encoding { - /** * @deprecation * @hidden */ decodePath(encoded: string, precision?: number): Array { - console.error('GoogleMaps', '[deprecated] This method is static. Please use Encoding.decodePath()'); + console.error( + 'GoogleMaps', + '[deprecated] This method is static. Please use Encoding.decodePath()' + ); return Encoding.decodePath(encoded, precision); } @@ -1776,7 +1898,10 @@ export class Encoding { * @hidden */ encodePath(path: Array | BaseArrayClass): string { - console.error('GoogleMaps', '[deprecated] This method is static. Please use Encoding.encodePath()'); + console.error( + 'GoogleMaps', + '[deprecated] This method is static. Please use Encoding.encodePath()' + ); return Encoding.encodePath(path); } @@ -1787,7 +1912,10 @@ export class Encoding { * @return {ILatLng[]} */ static decodePath(encoded: string, precision?: number): Array { - return GoogleMaps.getPlugin().geometry.encoding.decodePath(encoded, precision); + return GoogleMaps.getPlugin().geometry.encoding.decodePath( + encoded, + precision + ); } /** @@ -1810,7 +1938,6 @@ export class Encoding { repo: '' }) export class Poly { - /** * Returns true if the speicified location is in the polygon path * @param location {ILatLng} @@ -1818,7 +1945,10 @@ export class Poly { * @return {boolean} */ static containsLocation(location: ILatLng, path: ILatLng[]): boolean { - return GoogleMaps.getPlugin().geometry.poly.containsLocation(location, path); + return GoogleMaps.getPlugin().geometry.poly.containsLocation( + location, + path + ); } /** @@ -1828,7 +1958,10 @@ export class Poly { * @return {boolean} */ static isLocationOnEdge(location: ILatLng, path: ILatLng[]): boolean { - return GoogleMaps.getPlugin().geometry.poly.isLocationOnEdge(location, path); + return GoogleMaps.getPlugin().geometry.poly.isLocationOnEdge( + location, + path + ); } } @@ -1842,13 +1975,15 @@ export class Poly { repo: '' }) export class Spherical { - /** * @deprecation * @hidden */ computeDistanceBetween(from: ILatLng, to: ILatLng): number { - console.error('GoogleMaps', '[deprecated] This method is static. Please use Spherical.computeDistanceBetween()'); + console.error( + 'GoogleMaps', + '[deprecated] This method is static. Please use Spherical.computeDistanceBetween()' + ); return Spherical.computeDistanceBetween(from, to); } @@ -1857,7 +1992,10 @@ export class Spherical { * @hidden */ computeOffset(from: ILatLng, distance: number, heading: number): LatLng { - console.error('GoogleMaps', '[deprecated] This method is static. Please use Spherical.computeOffset()'); + console.error( + 'GoogleMaps', + '[deprecated] This method is static. Please use Spherical.computeOffset()' + ); return Spherical.computeOffset(from, distance, heading); } @@ -1866,7 +2004,10 @@ export class Spherical { * @hidden */ computeOffsetOrigin(to: ILatLng, distance: number, heading: number): LatLng { - console.error('GoogleMaps', '[deprecated] This method is static. Please use Spherical.computeOffsetOrigin()'); + console.error( + 'GoogleMaps', + '[deprecated] This method is static. Please use Spherical.computeOffsetOrigin()' + ); return Spherical.computeOffsetOrigin(to, distance, heading); } @@ -1875,7 +2016,10 @@ export class Spherical { * @hidden */ computeLength(path: Array | BaseArrayClass): number { - console.error('GoogleMaps', '[deprecated] This method is static. Please use Spherical.computeLength()'); + console.error( + 'GoogleMaps', + '[deprecated] This method is static. Please use Spherical.computeLength()' + ); return Spherical.computeLength(path); } @@ -1884,7 +2028,10 @@ export class Spherical { * @hidden */ computeArea(path: Array | BaseArrayClass): number { - console.error('GoogleMaps', '[deprecated] This method is static. Please use Spherical.computeArea()'); + console.error( + 'GoogleMaps', + '[deprecated] This method is static. Please use Spherical.computeArea()' + ); return Spherical.computeArea(path); } @@ -1893,7 +2040,10 @@ export class Spherical { * @hidden */ computeSignedArea(path: Array | BaseArrayClass): number { - console.error('GoogleMaps', '[deprecated] This method is static. Please use Spherical.computeSignedArea()'); + console.error( + 'GoogleMaps', + '[deprecated] This method is static. Please use Spherical.computeSignedArea()' + ); return Spherical.computeSignedArea(path); } @@ -1902,7 +2052,10 @@ export class Spherical { * @hidden */ computeHeading(from: ILatLng, to: ILatLng): number { - console.error('GoogleMaps', '[deprecated] This method is static. Please use Spherical.computeHeading()'); + console.error( + 'GoogleMaps', + '[deprecated] This method is static. Please use Spherical.computeHeading()' + ); return Spherical.computeHeading(from, to); } @@ -1911,16 +2064,13 @@ export class Spherical { * @hidden */ interpolate(from: ILatLng, to: ILatLng, fraction: number): LatLng { - console.error('GoogleMaps', '[deprecated] This method is static. Please use Spherical.interpolate()'); + console.error( + 'GoogleMaps', + '[deprecated] This method is static. Please use Spherical.interpolate()' + ); return Spherical.interpolate(from, to, fraction); } - - - - - - /** * Returns the distance, in meters, between two LatLngs. * @param locationA {ILatLng} @@ -1928,7 +2078,10 @@ export class Spherical { * @return {number} */ static computeDistanceBetween(from: ILatLng, to: ILatLng): number { - return GoogleMaps.getPlugin().geometry.spherical.computeDistanceBetween(from, to); + return GoogleMaps.getPlugin().geometry.spherical.computeDistanceBetween( + from, + to + ); } /** @@ -1938,8 +2091,16 @@ export class Spherical { * @param heading {number} * @return {LatLng} */ - static computeOffset(from: ILatLng, distance: number, heading: number): LatLng { - return GoogleMaps.getPlugin().geometry.spherical.computeOffset(from, distance, heading); + static computeOffset( + from: ILatLng, + distance: number, + heading: number + ): LatLng { + return GoogleMaps.getPlugin().geometry.spherical.computeOffset( + from, + distance, + heading + ); } /** @@ -1949,8 +2110,16 @@ export class Spherical { * @param heading {number} The heading in degrees clockwise from north. * @return {LatLng} */ - static computeOffsetOrigin(to: ILatLng, distance: number, heading: number): LatLng { - return GoogleMaps.getPlugin().geometry.spherical.computeOffsetOrigin(to, distance, heading); + static computeOffsetOrigin( + to: ILatLng, + distance: number, + heading: number + ): LatLng { + return GoogleMaps.getPlugin().geometry.spherical.computeOffsetOrigin( + to, + distance, + heading + ); } /** @@ -1976,7 +2145,9 @@ export class Spherical { * @param path {Array | BaseArrayClass}. * @return {number} */ - static computeSignedArea(path: Array | BaseArrayClass): number { + static computeSignedArea( + path: Array | BaseArrayClass + ): number { return GoogleMaps.getPlugin().geometry.spherical.computeSignedArea(path); } @@ -1998,7 +2169,11 @@ export class Spherical { * @return {LatLng} */ static interpolate(from: ILatLng, to: ILatLng, fraction: number): LatLng { - return GoogleMaps.getPlugin().geometry.spherical.interpolate(from, to, fraction); + return GoogleMaps.getPlugin().geometry.spherical.interpolate( + from, + to, + fraction + ); } } @@ -2012,17 +2187,30 @@ export class Spherical { export class GoogleMap extends BaseClass { constructor(element: string | HTMLElement, options?: GoogleMapOptions) { super(); - if (checkAvailability(GoogleMaps.getPluginRef(), null, GoogleMaps.getPluginName()) === true) { + if ( + checkAvailability( + GoogleMaps.getPluginRef(), + null, + GoogleMaps.getPluginName() + ) === true + ) { if (element instanceof HTMLElement) { - this._objectInstance = GoogleMaps.getPlugin().Map.getMap(element, options); + this._objectInstance = GoogleMaps.getPlugin().Map.getMap( + element, + options + ); } else if (typeof element === 'string') { - let dummyObj: any = new (GoogleMaps.getPlugin().BaseClass)(); + let dummyObj: any = new (GoogleMaps.getPlugin()).BaseClass(); this._objectInstance = dummyObj; let onListeners: any[] = []; let oneListeners: any[] = []; let _origAddEventListener: any = this._objectInstance.addEventListener; - let _origAddEventListenerOnce: any = this._objectInstance.addEventListenerOnce; - this._objectInstance.addEventListener = (eventName: string, fn: () => void) => { + let _origAddEventListenerOnce: any = this._objectInstance + .addEventListenerOnce; + this._objectInstance.addEventListener = ( + eventName: string, + fn: () => void + ) => { if (eventName === GoogleMapsEvent.MAP_READY) { _origAddEventListener.call(dummyObj, eventName, fn); } else { @@ -2031,7 +2219,10 @@ export class GoogleMap extends BaseClass { }; this._objectInstance.on = this._objectInstance.addEventListener; - this._objectInstance.addEventListenerOnce = (eventName: string, fn: () => void) => { + this._objectInstance.addEventListenerOnce = ( + eventName: string, + fn: () => void + ) => { if (eventName === GoogleMapsEvent.MAP_READY) { _origAddEventListenerOnce.call(dummyObj, eventName, fn); } else { @@ -2039,7 +2230,7 @@ export class GoogleMap extends BaseClass { } }; this._objectInstance.one = this._objectInstance.addEventListenerOnce; - (new Promise((resolve, reject) => { + new Promise((resolve, reject) => { let count: number = 0; let timer: any = setInterval(() => { let target = document.querySelector('.show-page #' + element); @@ -2056,23 +2247,26 @@ export class GoogleMap extends BaseClass { reject(); } }, 100); - })) - .then((target: any) => { - this._objectInstance = GoogleMaps.getPlugin().Map.getMap(target, options); - this._objectInstance.one(GoogleMapsEvent.MAP_READY, () => { - this.set('_overlays', {}); - onListeners.forEach((args) => { - this.on.apply(this, args); - }); - oneListeners.forEach((args) => { - this.one.apply(this, args); - }); - dummyObj.trigger(GoogleMapsEvent.MAP_READY); - }); }) - .catch(() => { - this._objectInstance = null; - }); + .then((target: any) => { + this._objectInstance = GoogleMaps.getPlugin().Map.getMap( + target, + options + ); + this._objectInstance.one(GoogleMapsEvent.MAP_READY, () => { + this.set('_overlays', {}); + onListeners.forEach(args => { + this.on.apply(this, args); + }); + oneListeners.forEach(args => { + this.one.apply(this, args); + }); + dummyObj.trigger(GoogleMapsEvent.MAP_READY); + }); + }) + .catch(() => { + this._objectInstance = null; + }); } else if (element === null && options) { this._objectInstance = GoogleMaps.getPlugin().Map.getMap(null, options); } @@ -2086,7 +2280,9 @@ export class GoogleMap extends BaseClass { @InstanceCheck() setDiv(domNode?: HTMLElement | string): void { if (typeof domNode === 'string') { - this._objectInstance.setDiv(document.querySelector('.show-page #' + domNode)); + this._objectInstance.setDiv( + document.querySelector('.show-page #' + domNode) + ); } else { this._objectInstance.setDiv(domNode); } @@ -2097,98 +2293,122 @@ export class GoogleMap extends BaseClass { * @return {HTMLElement} */ @CordovaInstance({ sync: true }) - getDiv(): HTMLElement { return; } + getDiv(): HTMLElement { + return; + } /** * Changes the map type id * @param mapTypeId {string} */ @CordovaInstance({ sync: true }) - setMapTypeId(mapTypeId: MapType): void { } + setMapTypeId(mapTypeId: MapType): void {} /** * Moves the camera with animation * @return {Promise} */ @CordovaInstance() - animateCamera(cameraPosition: CameraPosition): Promise { return; } + animateCamera(cameraPosition: CameraPosition): Promise { + return; + } /** * Zooming in the camera with animation * @return {Promise} */ @CordovaInstance() - animateCameraZoomIn(): Promise { return; } + animateCameraZoomIn(): Promise { + return; + } /** * Zooming out the camera with animation * @return {Promise} */ @CordovaInstance() - animateCameraZoomOut(): Promise { return; } + animateCameraZoomOut(): Promise { + return; + } /** * Moves the camera without animation * @return {Promise} */ @CordovaInstance() - moveCamera(cameraPosition: CameraPosition): Promise { return; } + moveCamera(cameraPosition: CameraPosition): Promise { + return; + } /** * Zooming in the camera without animation * @return {Promise} */ @CordovaInstance() - moveCameraZoomIn(): Promise { return; } + moveCameraZoomIn(): Promise { + return; + } /** * Zooming out the camera without animation * @return {Promise} */ @CordovaInstance() - moveCameraZoomOut(): Promise { return; } + moveCameraZoomOut(): Promise { + return; + } /** * Get the position of the camera. * @return {CameraPosition} */ @CordovaInstance({ sync: true }) - getCameraPosition(): CameraPosition { return; } + getCameraPosition(): CameraPosition { + return; + } /** * Get the current camera target position * @return {Promise} */ @CordovaInstance({ sync: true }) - getCameraTarget(): ILatLng { return; } + getCameraTarget(): ILatLng { + return; + } /** * Get the current camera zoom level * @return {number} */ @CordovaInstance({ sync: true }) - getCameraZoom(): number { return; } + getCameraZoom(): number { + return; + } /** * Get the current camera bearing * @return {number} */ @CordovaInstance({ sync: true }) - getCameraBearing(): number { return; } + getCameraBearing(): number { + return; + } /** * Get the current camera tilt (view angle) * @return {number} */ @CordovaInstance({ sync: true }) - getCameraTilt(): number { return; } + getCameraTilt(): number { + return; + } /** * Set the center position of the camera view * @param latLng {ILatLng | Array} */ @CordovaInstance({ sync: true }) - setCameraTarget(latLng: ILatLng | Array): void { } + setCameraTarget(latLng: ILatLng | Array): void {} /** * Set zoom level of the camera @@ -2217,21 +2437,25 @@ export class GoogleMap extends BaseClass { * @param y {any} */ @CordovaInstance({ sync: true }) - panBy(x: string | number, y: string | number): void { } + panBy(x: string | number, y: string | number): void {} /** * Get the current visible region (southWest and northEast) * @return {VisibleRegion} */ @CordovaInstance({ sync: true }) - getVisibleRegion(): VisibleRegion { return; } + getVisibleRegion(): VisibleRegion { + return; + } /** * Get the current device location * @return {Promise} */ @CordovaInstance() - getMyLocation(options?: MyLocationOptions): Promise { return; } + getMyLocation(options?: MyLocationOptions): Promise { + return; + } /** * Set false to ignore all clicks on the map @@ -2252,7 +2476,7 @@ export class GoogleMap extends BaseClass { delete this.get('_overlays')[overlayId]; }); } - return new Promise((resolve) => { + return new Promise(resolve => { this._objectInstance.remove(() => resolve()); }); } @@ -2269,7 +2493,7 @@ export class GoogleMap extends BaseClass { delete this.get('_overlays')[overlayId]; }); } - return new Promise((resolve) => { + return new Promise(resolve => { this._objectInstance.clear(() => resolve()); }); } @@ -2279,14 +2503,18 @@ export class GoogleMap extends BaseClass { * @return {Promise} */ @CordovaInstance() - fromLatLngToPoint(latLng: ILatLng): Promise { return; } + fromLatLngToPoint(latLng: ILatLng): Promise { + return; + } /** * Convert the unit from the pixels from the left/top to the LatLng * @return {Promise} */ @CordovaInstance() - fromPointToLatLng(point: any): Promise { return; } + fromPointToLatLng(point: any): Promise { + return; + } /** * Set true if you want to show the MyLocation control (blue dot) @@ -2307,7 +2535,9 @@ export class GoogleMap extends BaseClass { * @return {Promise} */ @CordovaInstance() - getFocusedBuilding(): Promise { return; } + getFocusedBuilding(): Promise { + return; + } /** * Set true if you want to show the indoor map @@ -2352,7 +2582,12 @@ export class GoogleMap extends BaseClass { * @param bottom {number} */ @CordovaInstance({ sync: true }) - setPadding(top?: number, right?: number, bottom?: number, left?: number): void { } + setPadding( + top?: number, + right?: number, + bottom?: number, + left?: number + ): void {} /** * Set options @@ -2394,7 +2629,9 @@ export class GoogleMap extends BaseClass { * @return {Promise} */ @InstanceCheck() - addMarkerCluster(options: MarkerClusterOptions): Promise { + addMarkerCluster( + options: MarkerClusterOptions + ): Promise { return new Promise((resolve, reject) => { this._objectInstance.addMarkerCluster(options, (markerCluster: any) => { if (markerCluster) { @@ -2530,7 +2767,9 @@ export class GoogleMap extends BaseClass { * @return {Promise} */ @InstanceCheck() - addGroundOverlay(options: GroundOverlayOptions): Promise { + addGroundOverlay( + options: GroundOverlayOptions + ): Promise { return new Promise((resolve, reject) => { this._objectInstance.addGroundOverlay(options, (groundOverlay: any) => { if (groundOverlay) { @@ -2584,15 +2823,15 @@ export class GoogleMap extends BaseClass { * @return {Promise} */ @CordovaInstance() - toDataURL(params?: ToDataUrlOptions): Promise { return; } - + toDataURL(params?: ToDataUrlOptions): Promise { + return; + } } /** * @hidden */ export class GroundOverlay extends BaseClass { - private _map: GoogleMap; constructor(_map: GoogleMap, _objectInstance: any) { @@ -2606,13 +2845,17 @@ export class GroundOverlay extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getId(): string { return; } + getId(): string { + return; + } /** * Return the map instance. * @return {GoogleMap} */ - getMap(): GoogleMap { return this._map; } + getMap(): GoogleMap { + return this._map; + } /** * Change the bounds of the GroundOverlay @@ -2626,34 +2869,38 @@ export class GroundOverlay extends BaseClass { * @param bearing {number} */ @CordovaInstance({ sync: true }) - setBearing(bearing: number): void { } + setBearing(bearing: number): void {} /** * Return the current bearing value */ @CordovaInstance({ sync: true }) - getBearing(): number { return; } + getBearing(): number { + return; + } /** * Change the image of the ground overlay * @param image {string} URL of image */ @CordovaInstance({ sync: true }) - setImage(image: string): void {}; + setImage(image: string): void {} /** * Change the opacity of the ground overlay from 0.0 to 1.0 * @param opacity {number} */ @CordovaInstance({ sync: true }) - setOpacity(opacity: number): void { } + setOpacity(opacity: number): void {} /** * Return the current opacity * @return {number} */ @CordovaInstance({ sync: true }) - getOpacity(): number { return; } + getOpacity(): number { + return; + } /** * Change clickablity of the ground overlay @@ -2667,21 +2914,25 @@ export class GroundOverlay extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - getClickable(): boolean { return; } + getClickable(): boolean { + return; + } /** * Change visibility of the ground overlay * @param visible {boolean} */ @CordovaInstance({ sync: true }) - setVisible(visible: boolean): void { } + setVisible(visible: boolean): void {} /** * Return true if the ground overlay is visible * @return {boolean} */ @CordovaInstance({ sync: true }) - getVisible(): boolean { return; } + getVisible(): boolean { + return; + } /** * Change the ground overlay zIndex order @@ -2695,7 +2946,9 @@ export class GroundOverlay extends BaseClass { * @return {number} */ @CordovaInstance({ sync: true }) - getZIndex(): number { return; } + getZIndex(): number { + return; + } /** * Remove the ground overlay @@ -2718,10 +2971,9 @@ export class GroundOverlay extends BaseClass { repo: '' }) export class HtmlInfoWindow extends BaseClass { - constructor() { super(); - this._objectInstance = new (GoogleMaps.getPlugin().HtmlInfoWindow)(); + this._objectInstance = new (GoogleMaps.getPlugin()).HtmlInfoWindow(); } /** @@ -2751,14 +3003,12 @@ export class HtmlInfoWindow extends BaseClass { */ @CordovaInstance() close(): void {} - } /** * @hidden */ export class Marker extends BaseClass { - private _map: GoogleMap; constructor(_map: GoogleMap, _objectInstance: any) { @@ -2772,27 +3022,35 @@ export class Marker extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getId(): string { return; } + getId(): string { + return; + } /** * Return the map instance. * @return {GoogleMap} */ - getMap(): GoogleMap { return this._map; } + getMap(): GoogleMap { + return this._map; + } /** * Set the marker position. * @param latLng {ILatLng} */ @CordovaInstance({ sync: true }) - setPosition(latLng: ILatLng): void { return; } + setPosition(latLng: ILatLng): void { + return; + } /** * Return the marker position. * @return {ILatLng} */ @CordovaInstance({ sync: true }) - getPosition(): ILatLng { return; } + getPosition(): ILatLng { + return; + } /** * Show the normal infoWindow of the marker. @@ -2831,7 +3089,9 @@ export class Marker extends BaseClass { * Return true if the marker is visible */ @CordovaInstance({ sync: true }) - isVisible(): boolean { return; } + isVisible(): boolean { + return; + } /** * Change title of the normal infoWindow. @@ -2845,7 +3105,9 @@ export class Marker extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getTitle(): string { return; } + getTitle(): string { + return; + } /** * Change snippet of the normal infoWindow. @@ -2859,7 +3121,9 @@ export class Marker extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getSnippet(): string { return; } + getSnippet(): string { + return; + } /** * Change the marker opacity from 0.0 to 1.0. @@ -2873,7 +3137,9 @@ export class Marker extends BaseClass { * @return {number} Opacity */ @CordovaInstance({ sync: true }) - getOpacity(): number { return; } + getOpacity(): number { + return; + } /** * Remove the marker. @@ -2906,14 +3172,18 @@ export class Marker extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - isInfoWindowShown(): boolean { return; } + isInfoWindowShown(): boolean { + return; + } /** * Return the marker hash code. * @return {string} Marker hash code */ @CordovaInstance({ sync: true }) - getHashCode(): string { return; } + getHashCode(): string { + return; + } /** * Higher zIndex value overlays will be drawn on top of lower zIndex value tile layers and overlays. @@ -2927,57 +3197,65 @@ export class Marker extends BaseClass { * @return {number} */ @CordovaInstance({ sync: true }) - getZIndex(): number { return; } + getZIndex(): number { + return; + } /** * Set true if you allow all users to drag the marker. * @param draggable {boolean} */ @CordovaInstance({ sync: true }) - setDraggable(draggable: boolean): void { } + setDraggable(draggable: boolean): void {} /** * Return true if the marker drag is enabled. * @return {boolean} */ @CordovaInstance({ sync: true }) - isDraggable(): boolean { return; } + isDraggable(): boolean { + return; + } /** * Set true if you want to be flat marker. * @param flat {boolean} */ @CordovaInstance({ sync: true }) - setFlat(flat: boolean): void { return; } + setFlat(flat: boolean): void { + return; + } /** * Change icon url and/or size * @param icon */ @CordovaInstance({ sync: true }) - setIcon(icon: MarkerIcon): void { return; } + setIcon(icon: MarkerIcon): void { + return; + } /** * Set the marker rotation angle. * @param rotation {number} */ @CordovaInstance({ sync: true }) - setRotation(rotation: number): void { } + setRotation(rotation: number): void {} /** * Return the marker rotation angle. * @return {number} */ @CordovaInstance({ sync: true }) - getRotation(): number { return; } - + getRotation(): number { + return; + } } /** * @hidden */ export class MarkerCluster extends BaseClass { - private _map: GoogleMap; constructor(_map: GoogleMap, _objectInstance: any) { @@ -2991,7 +3269,9 @@ export class MarkerCluster extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getId(): string { return; } + getId(): string { + return; + } /** * Add one marker location @@ -3023,15 +3303,15 @@ export class MarkerCluster extends BaseClass { * Return the map instance. * @return {GoogleMap} */ - getMap(): GoogleMap { return this._map; } - + getMap(): GoogleMap { + return this._map; + } } /** * @hidden */ export class Polygon extends BaseClass { - private _map: GoogleMap; constructor(_map: GoogleMap, _objectInstance: any) { @@ -3045,13 +3325,17 @@ export class Polygon extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getId(): string { return; } + getId(): string { + return; + } /** * Return the map instance. * @return {GoogleMap} */ - getMap(): GoogleMap { return this._map; } + getMap(): GoogleMap { + return this._map; + } /** * Change the polygon points. @@ -3090,7 +3374,7 @@ export class Polygon extends BaseClass { results.push(hole); }); return results; - } + } /** * Change the filling color (inner color) @@ -3104,7 +3388,9 @@ export class Polygon extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getFillColor(): string { return; } + getFillColor(): string { + return; + } /** * Change the stroke color (outer color) @@ -3118,7 +3404,9 @@ export class Polygon extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getStrokeColor(): string { return; } + getStrokeColor(): string { + return; + } /** * Change clickablity of the polygon @@ -3131,7 +3419,9 @@ export class Polygon extends BaseClass { * Return true if the polygon is clickable */ @CordovaInstance({ sync: true }) - getClickable(): boolean { return; } + getClickable(): boolean { + return; + } /** * Change visibility of the polygon @@ -3145,7 +3435,9 @@ export class Polygon extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - getVisible(): boolean { return; } + getVisible(): boolean { + return; + } /** * Change the polygon zIndex order. @@ -3159,7 +3451,9 @@ export class Polygon extends BaseClass { * @return {number} */ @CordovaInstance({ sync: true }) - getZIndex(): number { return; } + getZIndex(): number { + return; + } /** * Remove the polygon. @@ -3181,7 +3475,9 @@ export class Polygon extends BaseClass { * Return the polygon stroke width */ @CordovaInstance({ sync: true }) - getStrokeWidth(): number { return; } + getStrokeWidth(): number { + return; + } /** * When true, edges of the polygon are interpreted as geodesic and will follow the curvature of the Earth. @@ -3195,15 +3491,15 @@ export class Polygon extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - getGeodesic(): boolean { return; } - + getGeodesic(): boolean { + return; + } } /** * @hidden */ export class Polyline extends BaseClass { - private _map: GoogleMap; constructor(_map: GoogleMap, _objectInstance: any) { @@ -3217,13 +3513,17 @@ export class Polyline extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getId(): string { return; } + getId(): string { + return; + } /** * Return the map instance. * @return {GoogleMap} */ - getMap(): GoogleMap { return this._map; } + getMap(): GoogleMap { + return this._map; + } /** * Change the polyline points. @@ -3253,7 +3553,9 @@ export class Polyline extends BaseClass { * Return true if the polyline is geodesic */ @CordovaInstance({ sync: true }) - getGeodesic(): boolean { return; } + getGeodesic(): boolean { + return; + } /** * Change visibility of the polyline @@ -3267,7 +3569,9 @@ export class Polyline extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - getVisible(): boolean { return; } + getVisible(): boolean { + return; + } /** * Change clickablity of the polyline @@ -3281,7 +3585,9 @@ export class Polyline extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - getClickable(): boolean { return; } + getClickable(): boolean { + return; + } /** * Change the polyline color @@ -3295,7 +3601,9 @@ export class Polyline extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getStrokeColor(): string { return; } + getStrokeColor(): string { + return; + } /** * Change the polyline stroke width @@ -3309,7 +3617,9 @@ export class Polyline extends BaseClass { * @return {number} */ @CordovaInstance({ sync: true }) - getStrokeWidth(): number { return; } + getStrokeWidth(): number { + return; + } /** * Change the polyline zIndex order. @@ -3323,7 +3633,9 @@ export class Polyline extends BaseClass { * @return {number} */ @CordovaInstance({ sync: true }) - getZIndex(): number { return; } + getZIndex(): number { + return; + } /** * Remove the polyline @@ -3340,7 +3652,6 @@ export class Polyline extends BaseClass { * @hidden */ export class TileOverlay extends BaseClass { - private _map: GoogleMap; constructor(_map: GoogleMap, _objectInstance: any) { @@ -3354,13 +3665,17 @@ export class TileOverlay extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getId(): string { return; } + getId(): string { + return; + } /** * Return the map instance. * @return {GoogleMap} */ - getMap(): GoogleMap { return this._map; } + getMap(): GoogleMap { + return this._map; + } /** * Set whether the tiles should fade in. @@ -3374,7 +3689,9 @@ export class TileOverlay extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - getFadeIn(): boolean { return; } + getFadeIn(): boolean { + return; + } /** * Set the zIndex of the tile overlay @@ -3388,7 +3705,9 @@ export class TileOverlay extends BaseClass { * @return {number} */ @CordovaInstance({ sync: true }) - getZIndex(): number { return; } + getZIndex(): number { + return; + } /** * Set the opacity of the tile overlay @@ -3402,7 +3721,9 @@ export class TileOverlay extends BaseClass { * @return {number} */ @CordovaInstance({ sync: true }) - getOpacity(): number { return; } + getOpacity(): number { + return; + } /** * Set false if you want to hide @@ -3416,13 +3737,17 @@ export class TileOverlay extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - getVisible(): boolean { return; } + getVisible(): boolean { + return; + } /** * Get tile size */ @CordovaInstance({ sync: true }) - getTileSize(): any { return; } + getTileSize(): any { + return; + } /** * Remove the tile overlay @@ -3439,7 +3764,6 @@ export class TileOverlay extends BaseClass { * @hidden */ export class KmlOverlay extends BaseClass { - private _map: GoogleMap; constructor(_map: GoogleMap, _objectInstance: any) { @@ -3448,12 +3772,12 @@ export class KmlOverlay extends BaseClass { this._objectInstance = _objectInstance; Object.defineProperty(self, 'camera', { - value: this._objectInstance.camera, - writable: false + value: this._objectInstance.camera, + writable: false }); Object.defineProperty(self, 'kmlData', { - value: this._objectInstance.kmlData, - writable: false + value: this._objectInstance.kmlData, + writable: false }); } @@ -3461,20 +3785,26 @@ export class KmlOverlay extends BaseClass { * Returns the viewport to contains all overlays */ @CordovaInstance({ sync: true }) - getDefaultViewport(): CameraPosition { return; } + getDefaultViewport(): CameraPosition { + return; + } /** * Return the ID of instance. * @return {string} */ @CordovaInstance({ sync: true }) - getId(): string { return; } + getId(): string { + return; + } /** * Return the map instance. * @return {GoogleMap} */ - getMap(): GoogleMap { return this._map; } + getMap(): GoogleMap { + return this._map; + } /** * Change visibility of the polyline @@ -3488,7 +3818,9 @@ export class KmlOverlay extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - getVisible(): boolean { return; } + getVisible(): boolean { + return; + } /** * Change clickablity of the KmlOverlay @@ -3502,7 +3834,9 @@ export class KmlOverlay extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - getClickable(): boolean { return; } + getClickable(): boolean { + return; + } /** * Remove the KmlOverlay diff --git a/src/@ionic-native/plugins/google-play-games-services/index.ts b/src/@ionic-native/plugins/google-play-games-services/index.ts index 73314ffb9..b106d39fa 100644 --- a/src/@ionic-native/plugins/google-play-games-services/index.ts +++ b/src/@ionic-native/plugins/google-play-games-services/index.ts @@ -1,8 +1,7 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface ScoreData { - /** * The score to submit. */ @@ -12,47 +11,37 @@ export interface ScoreData { * The leaderboard ID from Google Play Developer console. */ leaderboardId: string; - } export interface LeaderboardData { - /** * The leaderboard ID from Goole Play Developer console. */ leaderboardId: string; - } export interface AchievementData { - /** * The achievement ID from Google Play Developer console. */ achievementId: string; - } export interface IncrementableAchievementData extends AchievementData { - /** * The amount to increment the achievement by. */ numSteps: number; - } export interface SignedInResponse { - /** * True or false is the use is signed in. */ isSignedIn: boolean; - } export interface Player { - /** * The players display name. */ @@ -67,10 +56,10 @@ export interface Player { * The title of the player based on their gameplay activity. Not * all players have this and it may change over time. */ - title: string|null; + title: string | null; /** - * Retrieves the URI for loading this player's icon-size profile image. + * Retrieves the URI for loading this player's icon-size profile image. * Returns null if the player has no profile image. */ iconImageUrl: string; @@ -80,7 +69,6 @@ export interface Player { * null if the player has no profile image. */ hiResIconImageUrl: string; - } /** @@ -101,12 +89,12 @@ export interface Player { * this.googlePlayGamesServices.auth() * .then(() => console.log('Logged in to Play Games Services')) * .catch(e) => console.log('Error logging in Play Games Services', e); - * + * * // Sign out of Play Games Services. * this.googlePlayGamesServices.signOut() * .then(() => console.log('Logged out of Play Games Services')) * .catch(e => console.log('Error logging out of Play Games Services', e); - * + * * // Check auth status. * this.googlePlayGamesServices.isSignedIn() * .then((signedIn: SignedInResponse) => { @@ -114,38 +102,38 @@ export interface Player { * hideLoginButton(); * } * }); - * + * * // Fetch currently authenticated user's data. * this.googlePlayGamesServices.showPlayer().then((data: Player) => { * console.log('Player data', data); * }); - * + * * // Submit a score. * this.googlePlayGamesServices.submitScore({ * score: 100, * leaderboardId: 'SomeLeaderboardId' * }); - * + * * // Show the native leaderboards window. * this.googlePlayGamesServices.showAllLeaderboards() * .then(() => console.log('The leaderboard window is visible.')); - * + * * // Show a signle native leaderboard window. * this.googlePlayGamesServices.showLeaderboard({ * leaderboardId: 'SomeLeaderBoardId' * }).then(() => console.log('The leaderboard window is visible.')); - * + * * // Unlock an achievement. * this.googlePlayGamesServices.unlockAchievement({ * achievementId: 'SomeAchievementId' * }).then(() => console.log('Achievement unlocked')); - * + * * // Incremement an achievement. * this.googlePlayGamesServices.incrementAchievement({ * step: 1, * achievementId: 'SomeAchievementId' * }).then(() => console.log('Achievement incremented')); - * + * * // Show the native achievements window. * this.googlePlayGamesServices.showAchivements() * .then(() => console.log('The achievements window is visible.')); @@ -158,107 +146,126 @@ export interface Player { pluginRef: 'plugins.playGamesServices', repo: 'https://github.com/artberri/cordova-plugin-play-games-services', platforms: ['Android'], - install: 'ionic cordova plugin add cordova-plugin-play-games-service --variable APP_ID="YOUR_APP_ID', + install: + 'ionic cordova plugin add cordova-plugin-play-games-service --variable APP_ID="YOUR_APP_ID' }) @Injectable() export class GooglePlayGamesServices extends IonicNativePlugin { - /** * Initialise native Play Games Service login procedure. - * + * * @return {Promise} Returns a promise that resolves when the player * is authenticated with Play Games Services. */ @Cordova() - auth(): Promise { return; } + auth(): Promise { + return; + } /** * Sign out of Google Play Games Services. - * + * * @return {Promise} Returns a promise that resolve when the player * successfully signs out. */ @Cordova() - signOut(): Promise { return; } + signOut(): Promise { + return; + } /** * Check if the user is signed in. - * + * * @return {Promise} Returns a promise that resolves with * the signed in response. */ @Cordova() - isSignedIn(): Promise { return; } + isSignedIn(): Promise { + return; + } /** * Show the currently authenticated player. - * - * @return {Promise} Returns a promise that resolves when Play + * + * @return {Promise} Returns a promise that resolves when Play * Games Services returns the authenticated player. */ @Cordova() - showPlayer(): Promise { return; } + showPlayer(): Promise { + return; + } /** * Submit a score to a leaderboard. You should ensure that you have a * successful return from auth() before submitting a score. - * + * * @param data {ScoreData} The score data you want to submit. * @return {Promise} Returns a promise that resolves when the * score is submitted. */ @Cordova() - submitScore(data: ScoreData): Promise { return; } + submitScore(data: ScoreData): Promise { + return; + } /** * Launches the native Play Games leaderboard view controller to show all the * leaderboards. - * + * * @return {Promise} Returns a promise that resolves when the native * leaderboards window opens. */ @Cordova() - showAllLeaderboards(): Promise { return; } + showAllLeaderboards(): Promise { + return; + } /** * Launches the native Play Games leaderboard view controll to show the * specified leaderboard. - * + * * @param data {LeaderboardData} The leaderboard you want to show. * @return {Promise} Returns a promise that resolves when the native * leaderboard window opens. */ @Cordova() - showLeaderboard(data: LeaderboardData): Promise { return; } + showLeaderboard(data: LeaderboardData): Promise { + return; + } /** * Unlock an achievement. - * + * * @param data {AchievementData} * @return {Promise} Returns a promise that resolves when the * achievement is unlocked. */ @Cordova() - unlockAchievement(data: AchievementData): Promise { return; } + unlockAchievement(data: AchievementData): Promise { + return; + } /** * Increment an achievement. - * + * * @param data {IncrementableAchievementData} * @return {Promise} Returns a promise that resolves when the * achievement is incremented. */ @Cordova() - incrementAchievement(data: IncrementableAchievementData): Promise { return; } + incrementAchievement(data: IncrementableAchievementData): Promise { + return; + } /** * Lauches the native Play Games achievements view controller to show * achievements. - * + * * @return {Promise} Returns a promise that resolves when the * achievement window opens. */ @Cordova() - showAchievements(): Promise { return; } - + showAchievements(): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/google-plus/index.ts b/src/@ionic-native/plugins/google-plus/index.ts index 95a69106e..32dbfe426 100644 --- a/src/@ionic-native/plugins/google-plus/index.ts +++ b/src/@ionic-native/plugins/google-plus/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name Google Plus @@ -23,13 +23,13 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; plugin: 'cordova-plugin-googleplus', pluginRef: 'window.plugins.googleplus', repo: 'https://github.com/EddyVerbruggen/cordova-plugin-googleplus', - install: 'ionic cordova plugin add cordova-plugin-googleplus --variable REVERSED_CLIENT_ID=myreversedclientid', + install: + 'ionic cordova plugin add cordova-plugin-googleplus --variable REVERSED_CLIENT_ID=myreversedclientid', installVariables: ['REVERSED_CLIENT_ID'], platforms: ['Android', 'iOS'] }) @Injectable() export class GooglePlus extends IonicNativePlugin { - /** * The login function walks the user through the Google Auth process. * @param options @@ -39,7 +39,9 @@ export class GooglePlus extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - login(options?: any): Promise { return; } + login(options?: any): Promise { + return; + } /** * You can call trySilentLogin to check if they're already signed in to the app and sign them in silently if they are. @@ -47,27 +49,34 @@ export class GooglePlus extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - trySilentLogin(options?: any): Promise { return; } + trySilentLogin(options?: any): Promise { + return; + } /** * This will clear the OAuth2 token. * @returns {Promise} */ @Cordova() - logout(): Promise { return; } + logout(): Promise { + return; + } /** * This will clear the OAuth2 token, forget which account was used to login, and disconnect that account from the app. This will require the user to allow the app access again next time they sign in. Be aware that this effect is not always instantaneous. It can take time to completely disconnect. * @returns {Promise} */ @Cordova() - disconnect(): Promise { return; } + disconnect(): Promise { + return; + } /** * This will retrieve the Android signing certificate fingerprint which is required in the Google Developer Console. * @returns {Promise} */ @Cordova() - getSigningCertificateFingerprint(): Promise { return; } - + getSigningCertificateFingerprint(): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/gyroscope/index.ts b/src/@ionic-native/plugins/gyroscope/index.ts index 87af80f2a..de903b065 100644 --- a/src/@ionic-native/plugins/gyroscope/index.ts +++ b/src/@ionic-native/plugins/gyroscope/index.ts @@ -1,6 +1,6 @@ -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; -import { Observable } from 'rxjs/Observable'; import { Injectable } from '@angular/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Observable } from 'rxjs/Observable'; declare const navigator: any; @@ -82,19 +82,20 @@ export interface GyroscopeOptions { }) @Injectable() export class Gyroscope extends IonicNativePlugin { - /** * Watching for gyroscope sensor changes * @param {GyroscopeOptions} [options] * @return {Observable} Returns an Observable that resolves GyroscopeOrientation */ watch(options?: GyroscopeOptions): Observable { - return new Observable( - (observer: any) => { - let watchId = navigator.gyroscope.watch(observer.next.bind(observer), observer.next.bind(observer), options); - return () => navigator.gyroscope.clearWatch(watchId); - } - ); + return new Observable((observer: any) => { + let watchId = navigator.gyroscope.watch( + observer.next.bind(observer), + observer.next.bind(observer), + options + ); + return () => navigator.gyroscope.clearWatch(watchId); + }); } /** @@ -105,5 +106,7 @@ export class Gyroscope extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - getCurrent(options?: GyroscopeOptions): Promise { return; } + getCurrent(options?: GyroscopeOptions): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/header-color/index.ts b/src/@ionic-native/plugins/header-color/index.ts index edf82e430..40df263c4 100644 --- a/src/@ionic-native/plugins/header-color/index.ts +++ b/src/@ionic-native/plugins/header-color/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name Header Color @@ -26,7 +26,6 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; }) @Injectable() export class HeaderColor extends IonicNativePlugin { - /** * Set a color to the task header * @param color {string} The hex value of the color @@ -37,6 +36,7 @@ export class HeaderColor extends IonicNativePlugin { successName: 'success', errorName: 'failure' }) - tint(color: string): Promise { return; } - + tint(color: string): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/health-kit/index.ts b/src/@ionic-native/plugins/health-kit/index.ts index 3184729af..646d1e416 100644 --- a/src/@ionic-native/plugins/health-kit/index.ts +++ b/src/@ionic-native/plugins/health-kit/index.ts @@ -1,116 +1,116 @@ -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface HealthKitOptions { /** - * HKWorkoutActivityType constant - * Read more here: https://developer.apple.com/library/ios/documentation/HealthKit/Reference/HKWorkout_Class/#//apple_ref/c/tdef/HKWorkoutActivityType - */ + * HKWorkoutActivityType constant + * Read more here: https://developer.apple.com/library/ios/documentation/HealthKit/Reference/HKWorkout_Class/#//apple_ref/c/tdef/HKWorkoutActivityType + */ activityType?: string; // /** - * 'hour', 'week', 'year' or 'day', default 'day' - */ + * 'hour', 'week', 'year' or 'day', default 'day' + */ aggregation?: string; /** - * - */ + * + */ amount?: number; /** - * - */ + * + */ correlationType?: string; /** - * - */ + * + */ date?: any; /** - * - */ + * + */ distance?: number; /** - * probably useful with the former param - */ + * probably useful with the former param + */ distanceUnit?: string; /** - * in seconds, optional, use either this or endDate - */ + * in seconds, optional, use either this or endDate + */ duration?: number; /** - * - */ + * + */ endDate?: any; /** - * - */ + * + */ energy?: number; /** - * J|cal|kcal - */ + * J|cal|kcal + */ energyUnit?: string; /** - * - */ + * + */ extraData?: any; /** - * - */ + * + */ metadata?: any; /** - * - */ + * + */ quantityType?: string; /** - * - */ + * + */ readTypes?: any; /** - * - */ + * + */ requestWritePermission?: boolean; /** - * - */ + * + */ samples?: any; /** - * - */ + * + */ sampleType?: string; /** - * - */ + * + */ startDate?: any; /** - * m|cm|mm|in|ft - */ + * m|cm|mm|in|ft + */ unit?: string; /** - * - */ + * + */ requestReadPermission?: boolean; /** - * - */ + * + */ writeTypes?: any; } @@ -142,168 +142,207 @@ export interface HealthKitOptions { }) @Injectable() export class HealthKit extends IonicNativePlugin { + /** + * Check if HealthKit is supported (iOS8+, not on iPad) + * @returns {Promise} + */ + @Cordova() + available(): Promise { + return; + } /** - * Check if HealthKit is supported (iOS8+, not on iPad) - * @returns {Promise} - */ + * Pass in a type and get back on of undetermined | denied | authorized + * @param options {HealthKitOptions} + * @returns {Promise} + */ @Cordova() - available(): Promise { return; } + checkAuthStatus(options: HealthKitOptions): Promise { + return; + } /** - * Pass in a type and get back on of undetermined | denied | authorized - * @param options {HealthKitOptions} - * @returns {Promise} - */ + * Ask some or all permissions up front + * @param options {HealthKitOptions} + * @returns {Promise} + */ @Cordova() - checkAuthStatus(options: HealthKitOptions): Promise { return; } + requestAuthorization(options: HealthKitOptions): Promise { + return; + } /** - * Ask some or all permissions up front - * @param options {HealthKitOptions} - * @returns {Promise} - */ + * Formatted as yyyy-MM-dd + * @returns {Promise} + */ @Cordova() - requestAuthorization(options: HealthKitOptions): Promise { return; } + readDateOfBirth(): Promise { + return; + } /** - * Formatted as yyyy-MM-dd - * @returns {Promise} - */ + * Output = male|female|other|unknown + * @returns {Promise} + */ @Cordova() - readDateOfBirth(): Promise { return; } + readGender(): Promise { + return; + } /** - * Output = male|female|other|unknown - * @returns {Promise} - */ + * Output = A+|A-|B+|B-|AB+|AB-|O+|O-|unknown + * @returns {Promise} + */ @Cordova() - readGender(): Promise { return; } + readBloodType(): Promise { + return; + } /** - * Output = A+|A-|B+|B-|AB+|AB-|O+|O-|unknown - * @returns {Promise} - */ + * Output = I|II|III|IV|V|VI|unknown + * @returns {Promise} + */ @Cordova() - readBloodType(): Promise { return; } + readFitzpatrickSkinType(): Promise { + return; + } /** - * Output = I|II|III|IV|V|VI|unknown - * @returns {Promise} - */ + * Pass in unit (g=gram, kg=kilogram, oz=ounce, lb=pound, st=stone) and amount + * @param options {HealthKitOptions} + * @returns {Promise} + */ @Cordova() - readFitzpatrickSkinType(): Promise { return; } + saveWeight(options: HealthKitOptions): Promise { + return; + } /** - * Pass in unit (g=gram, kg=kilogram, oz=ounce, lb=pound, st=stone) and amount - * @param options {HealthKitOptions} - * @returns {Promise} - */ + * Pass in unit (g=gram, kg=kilogram, oz=ounce, lb=pound, st=stone) + * @param options {HealthKitOptions} + * @returns {Promise} + */ @Cordova() - saveWeight(options: HealthKitOptions): Promise { return; } + readWeight(options: HealthKitOptions): Promise { + return; + } /** - * Pass in unit (g=gram, kg=kilogram, oz=ounce, lb=pound, st=stone) - * @param options {HealthKitOptions} - * @returns {Promise} - */ + * Pass in unit (mm=millimeter, cm=centimeter, m=meter, in=inch, ft=foot) and amount + * @param options {HealthKitOptions} + * @returns {Promise} + */ @Cordova() - readWeight(options: HealthKitOptions): Promise { return; } + saveHeight(options: HealthKitOptions): Promise { + return; + } /** - * Pass in unit (mm=millimeter, cm=centimeter, m=meter, in=inch, ft=foot) and amount - * @param options {HealthKitOptions} - * @returns {Promise} - */ + * Pass in unit (mm=millimeter, cm=centimeter, m=meter, in=inch, ft=foot) + * @param options {HealthKitOptions} + * @returns {Promise} + */ @Cordova() - saveHeight(options: HealthKitOptions): Promise { return; } + readHeight(options: HealthKitOptions): Promise { + return; + } /** - * Pass in unit (mm=millimeter, cm=centimeter, m=meter, in=inch, ft=foot) - * @param options {HealthKitOptions} - * @returns {Promise} - */ + * no params yet, so this will return all workouts ever of any type + * @returns {Promise} + */ @Cordova() - readHeight(options: HealthKitOptions): Promise { return; } + findWorkouts(): Promise { + return; + } /** - * no params yet, so this will return all workouts ever of any type - * @returns {Promise} - */ + * + * @param options {HealthKitOptions} + * @returns {Promise} + */ @Cordova() - findWorkouts(): Promise { return; } + saveWorkout(options: HealthKitOptions): Promise { + return; + } /** - * - * @param options {HealthKitOptions} - * @returns {Promise} - */ + * + * @param options {HealthKitOptions} + * @returns {Promise} + */ @Cordova() - saveWorkout(options: HealthKitOptions): Promise { return; } + querySampleType(options: HealthKitOptions): Promise { + return; + } /** - * - * @param options {HealthKitOptions} - * @returns {Promise} - */ + * + * @param options {HealthKitOptions} + * @returns {Promise} + */ @Cordova() - querySampleType(options: HealthKitOptions): Promise { return; } + querySampleTypeAggregated(options: HealthKitOptions): Promise { + return; + } /** - * - * @param options {HealthKitOptions} - * @returns {Promise} - */ + * + * @param options {HealthKitOptions} + * @returns {Promise} + */ @Cordova() - querySampleTypeAggregated(options: HealthKitOptions): Promise { return; } + deleteSamples(options: HealthKitOptions): Promise { + return; + } /** - * - * @param options {HealthKitOptions} - * @returns {Promise} - */ + * + * @param options {HealthKitOptions} + * @returns {Promise} + */ @Cordova() - deleteSamples(options: HealthKitOptions): Promise { return; } + monitorSampleType(options: HealthKitOptions): Promise { + return; + } /** - * - * @param options {HealthKitOptions} - * @returns {Promise} - */ + * + * @param options {HealthKitOptions} + * @returns {Promise} + */ @Cordova() - monitorSampleType(options: HealthKitOptions): Promise { return; } + sumQuantityType(options: HealthKitOptions): Promise { + return; + } /** - * - * @param options {HealthKitOptions} - * @returns {Promise} - */ + * + * @param options {HealthKitOptions} + * @returns {Promise} + */ @Cordova() - sumQuantityType(options: HealthKitOptions): Promise { return; } + saveQuantitySample(options: HealthKitOptions): Promise { + return; + } /** - * - * @param options {HealthKitOptions} - * @returns {Promise} - */ + * + * @param options {HealthKitOptions} + * @returns {Promise} + */ @Cordova() - saveQuantitySample(options: HealthKitOptions): Promise { return; } + saveCorrelation(options: HealthKitOptions): Promise { + return; + } /** - * - * @param options {HealthKitOptions} - * @returns {Promise} - */ + * + * @param options {HealthKitOptions} + * @returns {Promise} + */ @Cordova() - saveCorrelation(options: HealthKitOptions): Promise { return; } - - /** - * - * @param options {HealthKitOptions} - * @returns {Promise} - */ - @Cordova() - queryCorrelationType(options: HealthKitOptions): Promise { return; } - - + queryCorrelationType(options: HealthKitOptions): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/health/index.ts b/src/@ionic-native/plugins/health/index.ts index 85b09fe97..c498624cd 100644 --- a/src/@ionic-native/plugins/health/index.ts +++ b/src/@ionic-native/plugins/health/index.ts @@ -1,18 +1,18 @@ -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @hidden */ export interface HealthDataType { /** - * Read only date types (see https://github.com/dariosalvi78/cordova-plugin-health#supported-data-types) - */ + * Read only date types (see https://github.com/dariosalvi78/cordova-plugin-health#supported-data-types) + */ read?: string[]; /** - * Write only date types (see https://github.com/dariosalvi78/cordova-plugin-health#supported-data-types) - */ + * Write only date types (see https://github.com/dariosalvi78/cordova-plugin-health#supported-data-types) + */ write?: string[]; } @@ -201,7 +201,6 @@ export interface HealthData { }) @Injectable() export class Health extends IonicNativePlugin { - /** * Tells if either Google Fit or HealthKit are available. * @@ -210,7 +209,9 @@ export class Health extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - isAvailable(): Promise { return; } + isAvailable(): Promise { + return; + } /** * Checks if recent Google Play Services and Google Fit are installed. If the play services are not installed, @@ -226,7 +227,9 @@ export class Health extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - promptInstallFit(): Promise { return; } + promptInstallFit(): Promise { + return; + } /** * Requests read and/or write access to a set of data types. It is recommendable to always explain why the app @@ -248,7 +251,11 @@ export class Health extends IonicNativePlugin { * @return {Promise} */ @Cordova() - requestAuthorization(datatypes: Array): Promise { return; } + requestAuthorization( + datatypes: Array + ): Promise { + return; + } /** * Check if the app has authorization to read/write a set of datatypes. @@ -262,7 +269,9 @@ export class Health extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves with a boolean that indicates the authorization status */ @Cordova() - isAuthorized(datatypes: Array): Promise { return; } + isAuthorized(datatypes: Array): Promise { + return; + } /** * Gets all the data points of a certain data type within a certain time window. @@ -296,7 +305,9 @@ export class Health extends IonicNativePlugin { * @return {Promise} */ @Cordova() - query(queryOptions: HealthQueryOptions): Promise { return; } + query(queryOptions: HealthQueryOptions): Promise { + return; + } /** * Gets aggregated data in a certain time window. Usually the sum is returned for the given quantity. @@ -320,7 +331,11 @@ export class Health extends IonicNativePlugin { * @return {Promise} */ @Cordova() - queryAggregated(queryOptionsAggregated: HealthQueryOptionsAggregated): Promise { return; } + queryAggregated( + queryOptionsAggregated: HealthQueryOptionsAggregated + ): Promise { + return; + } /** * Stores a data point. @@ -337,6 +352,7 @@ export class Health extends IonicNativePlugin { * @return {Promise} */ @Cordova() - store(storeOptions: HealthStoreOptions): Promise { return; } - + store(storeOptions: HealthStoreOptions): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/hotspot/index.ts b/src/@ionic-native/plugins/hotspot/index.ts index 97d58ba90..bfe6757ea 100644 --- a/src/@ionic-native/plugins/hotspot/index.ts +++ b/src/@ionic-native/plugins/hotspot/index.ts @@ -1,8 +1,7 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface HotspotConnectionInfo { - /** * The service set identifier (SSID) of the current 802.11 network. */ @@ -27,11 +26,9 @@ export interface HotspotConnectionInfo { * Each configured network has a unique small integer ID, used to identify the network when performing operations on the supplicant. */ networkID: string; - } export interface HotspotNetwork { - /** * Human readable network name */ @@ -61,10 +58,8 @@ export interface HotspotNetwork { * Describes the authentication, key management, and encryption schemes supported by the access point. */ capabilities: string; - } export interface HotspotNetworkConfig { - /** * Device IP Address */ @@ -84,11 +79,9 @@ export interface HotspotNetworkConfig { * Gateway MAC Address */ gatewayMacAddress: string; - } export interface HotspotDevice { - /** * Hotspot IP Address */ @@ -98,7 +91,6 @@ export interface HotspotDevice { * Hotspot MAC Address */ mac: string; - } /** @@ -134,18 +126,21 @@ export interface HotspotDevice { }) @Injectable() export class Hotspot extends IonicNativePlugin { + /** + * @returns {Promise} + */ + @Cordova() + isAvailable(): Promise { + return; + } /** * @returns {Promise} */ @Cordova() - isAvailable(): Promise { return; } - - /** - * @returns {Promise} - */ - @Cordova() - toggleWifi(): Promise { return; } + toggleWifi(): Promise { + return; + } /** * Configures and starts hotspot with SSID and Password @@ -157,7 +152,9 @@ export class Hotspot extends IonicNativePlugin { * @returns {Promise} - Promise to call once hotspot is started, or reject upon failure */ @Cordova() - createHotspot(ssid: string, mode: string, password: string): Promise { return; } + createHotspot(ssid: string, mode: string, password: string): Promise { + return; + } /** * Turns on Access Point @@ -165,7 +162,9 @@ export class Hotspot extends IonicNativePlugin { * @returns {Promise} - true if AP is started */ @Cordova() - startHotspot(): Promise { return; } + startHotspot(): Promise { + return; + } /** * Configures hotspot with SSID and Password @@ -177,7 +176,13 @@ export class Hotspot extends IonicNativePlugin { * @returns {Promise} - Promise to call when hotspot is configured, or reject upon failure */ @Cordova() - configureHotspot(ssid: string, mode: string, password: string): Promise { return; } + configureHotspot( + ssid: string, + mode: string, + password: string + ): Promise { + return; + } /** * Turns off Access Point @@ -185,7 +190,9 @@ export class Hotspot extends IonicNativePlugin { * @returns {Promise} - Promise to turn off the hotspot, true on success, false on failure */ @Cordova() - stopHotspot(): Promise { return; } + stopHotspot(): Promise { + return; + } /** * Checks if hotspot is enabled @@ -193,13 +200,17 @@ export class Hotspot extends IonicNativePlugin { * @returns {Promise} - Promise that hotspot is enabled, rejected if it is not enabled */ @Cordova() - isHotspotEnabled(): Promise { return; } + isHotspotEnabled(): Promise { + return; + } /** * @returns {Promise>} */ @Cordova() - getAllHotspotDevices(): Promise> { return; } + getAllHotspotDevices(): Promise> { + return; + } /** * Connect to a WiFi network @@ -213,7 +224,9 @@ export class Hotspot extends IonicNativePlugin { * Promise that connection to the WiFi network was successfull, rejected if unsuccessful */ @Cordova() - connectToWifi(ssid: string, password: string): Promise { return; } + connectToWifi(ssid: string, password: string): Promise { + return; + } /** * Connect to a WiFi network @@ -231,7 +244,14 @@ export class Hotspot extends IonicNativePlugin { * Promise that connection to the WiFi network was successfull, rejected if unsuccessful */ @Cordova() - connectToWifiAuthEncrypt(ssid: string, password: string, authentication: string, encryption: Array): Promise { return; } + connectToWifiAuthEncrypt( + ssid: string, + password: string, + authentication: string, + encryption: Array + ): Promise { + return; + } /** * Add a WiFi network @@ -247,7 +267,9 @@ export class Hotspot extends IonicNativePlugin { * Promise that adding the WiFi network was successfull, rejected if unsuccessful */ @Cordova() - addWifiNetwork(ssid: string, mode: string, password: string): Promise { return; } + addWifiNetwork(ssid: string, mode: string, password: string): Promise { + return; + } /** * Remove a WiFi network @@ -259,79 +281,105 @@ export class Hotspot extends IonicNativePlugin { * Promise that removing the WiFi network was successfull, rejected if unsuccessful */ @Cordova() - removeWifiNetwork(ssid: string): Promise { return; } + removeWifiNetwork(ssid: string): Promise { + return; + } /** * @returns {Promise} */ @Cordova() - isConnectedToInternet(): Promise { return; } + isConnectedToInternet(): Promise { + return; + } /** * @returns {Promise} */ @Cordova() - isConnectedToInternetViaWifi(): Promise { return; } + isConnectedToInternetViaWifi(): Promise { + return; + } /** * @returns {Promise} */ @Cordova() - isWifiOn(): Promise { return; } + isWifiOn(): Promise { + return; + } /** * @returns {Promise} */ @Cordova() - isWifiSupported(): Promise { return; } + isWifiSupported(): Promise { + return; + } /** * @returns {Promise} */ @Cordova() - isWifiDirectSupported(): Promise { return; } + isWifiDirectSupported(): Promise { + return; + } /** * @returns {Promise>} */ @Cordova() - scanWifi(): Promise> { return; } + scanWifi(): Promise> { + return; + } /** * @returns {Promise>} */ @Cordova() - scanWifiByLevel(): Promise> { return; } + scanWifiByLevel(): Promise> { + return; + } /** * @returns {Promise} */ @Cordova() - startWifiPeriodicallyScan(interval: number, duration: number): Promise { return; } + startWifiPeriodicallyScan(interval: number, duration: number): Promise { + return; + } /** * @returns {Promise} */ @Cordova() - stopWifiPeriodicallyScan(): Promise { return; } + stopWifiPeriodicallyScan(): Promise { + return; + } /** * @returns {Promise} */ @Cordova() - getNetConfig(): Promise { return; } + getNetConfig(): Promise { + return; + } /** * @returns {Promise} */ @Cordova() - getConnectionInfo(): Promise { return; } + getConnectionInfo(): Promise { + return; + } /** * @returns {Promise} */ @Cordova() - pingHost(ip: string): Promise { return; } + pingHost(ip: string): Promise { + return; + } /** * Gets MAC Address associated with IP Address from ARP File @@ -341,7 +389,9 @@ export class Hotspot extends IonicNativePlugin { * @returns {Promise} - A Promise for the MAC Address */ @Cordova() - getMacAddressOfHost(ip: string): Promise { return; } + getMacAddressOfHost(ip: string): Promise { + return; + } /** * Checks if IP is live using DNS @@ -351,7 +401,9 @@ export class Hotspot extends IonicNativePlugin { * @returns {Promise} - A Promise for whether the IP Address is reachable */ @Cordova() - isDnsLive(ip: string): Promise { return; } + isDnsLive(ip: string): Promise { + return; + } /** * Checks if IP is live using socket And PORT @@ -361,7 +413,9 @@ export class Hotspot extends IonicNativePlugin { * @returns {Promise} - A Promise for whether the IP Address is reachable */ @Cordova() - isPortLive(ip: string): Promise { return; } + isPortLive(ip: string): Promise { + return; + } /** * Checks if device is rooted @@ -369,6 +423,7 @@ export class Hotspot extends IonicNativePlugin { * @returns {Promise} - A Promise for whether the device is rooted */ @Cordova() - isRooted(): Promise { return; } - + isRooted(): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/http/index.ts b/src/@ionic-native/plugins/http/index.ts index 56c84069d..878415b84 100644 --- a/src/@ionic-native/plugins/http/index.ts +++ b/src/@ionic-native/plugins/http/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface HTTPResponse { /** @@ -66,7 +66,6 @@ export interface HTTPResponse { }) @Injectable() export class HTTP extends IonicNativePlugin { - /** * This returns an object representing a basic HTTP Authorization header of the form. * @param username {string} Username @@ -74,7 +73,12 @@ export class HTTP extends IonicNativePlugin { * @returns {Object} an object representing a basic HTTP Authorization header of the form {'Authorization': 'Basic base64encodedusernameandpassword'} */ @Cordova({ sync: true }) - getBasicAuthHeader(username: string, password: string): { Authorization: string; } { return; } + getBasicAuthHeader( + username: string, + password: string + ): { Authorization: string } { + return; + } /** * This sets up all future requests to use Basic HTTP authentication with the given username and password. @@ -82,7 +86,7 @@ export class HTTP extends IonicNativePlugin { * @param password {string} Password */ @Cordova({ sync: true }) - useBasicAuth(username: string, password: string): void { } + useBasicAuth(username: string, password: string): void {} /** * Set a header for all future requests. Takes a header and a value. @@ -90,20 +94,20 @@ export class HTTP extends IonicNativePlugin { * @param value {string} The value of the header */ @Cordova({ sync: true }) - setHeader(header: string, value: string): void { } + setHeader(header: string, value: string): void {} /** * Set the data serializer which will be used for all future POST and PUT requests. Takes a string representing the name of the serializer. * @param serializer {string} The name of the serializer. Can be urlencoded or json */ @Cordova({ sync: true }) - setDataSerializer(serializer: string): void { } + setDataSerializer(serializer: string): void {} /** * Clear all cookies */ @Cordova({ sync: true }) - clearCookies(): void { } + clearCookies(): void {} /** * Remove cookies @@ -111,21 +115,21 @@ export class HTTP extends IonicNativePlugin { * @param cb */ @Cordova({ sync: true }) - removeCookies(url: string, cb: () => void): void { } + removeCookies(url: string, cb: () => void): void {} /** * Disable following redirects automatically * @param disable {boolean} Set to true to disable following redirects automatically */ @Cordova({ sync: true }) - disableRedirect(disable: boolean): void { } + disableRedirect(disable: boolean): void {} /** * Set request timeout * @param timeout {number} The timeout in seconds. Default 60 */ @Cordova({ sync: true }) - setRequestTimeout(timeout: number): void { } + setRequestTimeout(timeout: number): void {} /** * Enable or disable SSL Pinning. This defaults to false. @@ -137,7 +141,9 @@ export class HTTP extends IonicNativePlugin { * @returns {Promise} returns a promise that will resolve on success, and reject on failure */ @Cordova() - enableSSLPinning(enable: boolean): Promise { return; } + enableSSLPinning(enable: boolean): Promise { + return; + } /** * Accept all SSL certificates. Or disabled accepting all certificates. Defaults to false. @@ -145,7 +151,9 @@ export class HTTP extends IonicNativePlugin { * @returns {Promise} returns a promise that will resolve on success, and reject on failure */ @Cordova() - acceptAllCerts(accept: boolean): Promise { return; } + acceptAllCerts(accept: boolean): Promise { + return; + } /** * Make a POST request @@ -155,7 +163,9 @@ export class HTTP extends IonicNativePlugin { * @returns {Promise} returns a promise that resolve on success, and reject on failure */ @Cordova() - post(url: string, body: any, headers: any): Promise { return; } + post(url: string, body: any, headers: any): Promise { + return; + } /** * Make a GET request @@ -165,7 +175,9 @@ export class HTTP extends IonicNativePlugin { * @returns {Promise} returns a promise that resolve on success, and reject on failure */ @Cordova() - get(url: string, parameters: any, headers: any): Promise { return; } + get(url: string, parameters: any, headers: any): Promise { + return; + } /** * Make a PUT request @@ -175,7 +187,9 @@ export class HTTP extends IonicNativePlugin { * @returns {Promise} returns a promise that resolve on success, and reject on failure */ @Cordova() - put(url: string, body: any, headers: any): Promise { return; } + put(url: string, body: any, headers: any): Promise { + return; + } /** * Make a PATCH request @@ -185,7 +199,9 @@ export class HTTP extends IonicNativePlugin { * @returns {Promise} returns a promise that resolve on success, and reject on failure */ @Cordova() - patch(url: string, body: any, headers: any): Promise { return; } + patch(url: string, body: any, headers: any): Promise { + return; + } /** * Make a DELETE request @@ -195,7 +211,9 @@ export class HTTP extends IonicNativePlugin { * @returns {Promise} returns a promise that resolve on success, and reject on failure */ @Cordova() - delete(url: string, parameters: any, headers: any): Promise { return; } + delete(url: string, parameters: any, headers: any): Promise { + return; + } /** * Make a HEAD request @@ -205,7 +223,9 @@ export class HTTP extends IonicNativePlugin { * @returns {Promise} returns a promise that resolve on success, and reject on failure */ @Cordova() - head(url: string, parameters: any, headers: any): Promise { return; } + head(url: string, parameters: any, headers: any): Promise { + return; + } /** * @@ -217,7 +237,15 @@ export class HTTP extends IonicNativePlugin { * @returns {Promise} returns a promise that resolve on success, and reject on failure */ @Cordova() - uploadFile(url: string, body: any, headers: any, filePath: string, name: string): Promise { return; } + uploadFile( + url: string, + body: any, + headers: any, + filePath: string, + name: string + ): Promise { + return; + } /** * @@ -228,5 +256,12 @@ export class HTTP extends IonicNativePlugin { * @returns {Promise} returns a promise that resolve on success, and reject on failure */ @Cordova() - downloadFile(url: string, body: any, headers: any, filePath: string): Promise { return; } + downloadFile( + url: string, + body: any, + headers: any, + filePath: string + ): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/httpd/index.ts b/src/@ionic-native/plugins/httpd/index.ts index d529b0dbc..875ae5c54 100644 --- a/src/@ionic-native/plugins/httpd/index.ts +++ b/src/@ionic-native/plugins/httpd/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export interface HttpdOptions { @@ -56,7 +56,6 @@ export interface HttpdOptions { }) @Injectable() export class Httpd extends IonicNativePlugin { - /** * Starts a web server. * @param options {HttpdOptions} @@ -66,20 +65,25 @@ export class Httpd extends IonicNativePlugin { observable: true, clearFunction: 'stopServer' }) - startServer(options?: HttpdOptions): Observable { return; } + startServer(options?: HttpdOptions): Observable { + return; + } /** * Gets the URL of the running server * @returns {Promise} Returns a promise that resolves with the URL of the web server. */ @Cordova() - getUrl(): Promise { return; } + getUrl(): Promise { + return; + } /** * Get the local path of the running webserver * @returns {Promise} Returns a promise that resolves with the local path of the web server. - */ + */ @Cordova() - getLocalPath(): Promise { return; } - + getLocalPath(): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/hyper-track/index.ts b/src/@ionic-native/plugins/hyper-track/index.ts index 3f8c70619..55d287525 100644 --- a/src/@ionic-native/plugins/hyper-track/index.ts +++ b/src/@ionic-native/plugins/hyper-track/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @beta @@ -56,8 +56,8 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; * this.hyperTrack.stopTracking().then(success => { * // Handle success (String). Should be "OK". * }, error => {}); - * - * }, error => {});* + * + * }, error => {});* * ``` */ @Plugin({ @@ -75,7 +75,9 @@ export class HyperTrack extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with the result text (which is the same as the given text) if successful, or it gets rejected if an error ocurred. */ @Cordova() - helloWorld(text: String): Promise { return; } + helloWorld(text: String): Promise { + return; + } /** * Create a new user to identify the current device or get a user from a lookup id. @@ -86,7 +88,14 @@ export class HyperTrack extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with a string representation of the User's JSON, or it gets rejected if an error ocurred. */ @Cordova() - getOrCreateUser(name: String, phone: String, photo: String, lookupId: String): Promise { return; } + getOrCreateUser( + name: String, + phone: String, + photo: String, + lookupId: String + ): Promise { + return; + } /** * Set UserId for the SDK created using HyperTrack APIs. This is useful if you already have a user previously created. @@ -94,14 +103,18 @@ export class HyperTrack extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with an "OK" string if successful, or it gets rejected if an error ocurred. An "OK" response doesn't necessarily mean that the userId was found. It just means that it was set correctly. */ @Cordova() - setUserId(userId: String): Promise { return; } + setUserId(userId: String): Promise { + return; + } /** * Enable the SDK and start tracking. This will fail if there is no user set. * @returns {Promise} Returns a Promise that resolves with the userId (String) of the User being tracked if successful, or it gets rejected if an error ocurred. One example of an error is not setting a User with getOrCreateUser() or setUserId() before calling this function. */ @Cordova() - startTracking(): Promise { return; } + startTracking(): Promise { + return; + } /** * Create and assign an action to the current user using specified parameters @@ -113,7 +126,15 @@ export class HyperTrack extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with a string representation of the Action's JSON, or it gets rejected if an error ocurred. */ @Cordova() - createAndAssignAction(type: String, lookupId: String, expectedPlaceAddress: String, expectedPlaceLatitude: Number, expectedPlaceLongitude: Number): Promise { return; } + createAndAssignAction( + type: String, + lookupId: String, + expectedPlaceAddress: String, + expectedPlaceLatitude: Number, + expectedPlaceLongitude: Number + ): Promise { + return; + } /** * Complete an action from the SDK by its ID @@ -121,7 +142,9 @@ export class HyperTrack extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with an "OK" string if successful, or it gets rejected if an error ocurred. */ @Cordova() - completeAction(actionId: String): Promise { return; } + completeAction(actionId: String): Promise { + return; + } /** * Complete an action from the SDK using Action's lookupId as parameter @@ -129,7 +152,9 @@ export class HyperTrack extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with an "OK" string if successful, or it gets rejected if an error ocurred. */ @Cordova() - completeActionWithLookupId(lookupId: String): Promise { return; } + completeActionWithLookupId(lookupId: String): Promise { + return; + } /** * Disable the SDK and stop tracking. @@ -137,14 +162,18 @@ export class HyperTrack extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with the an "OK" string if successful, or it gets rejected if an error ocurred. One example of an error is not setting a User with getOrCreateUser() or setUserId() before calling this function. */ @Cordova() - stopTracking(): Promise { return; } + stopTracking(): Promise { + return; + } /** * Get user's current location from the SDK * @returns {Promise} Returns a Promise that resolves with a string representation of the Location's JSON, or it gets rejected if an error ocurred. */ @Cordova() - getCurrentLocation(): Promise { return; } + getCurrentLocation(): Promise { + return; + } /** * Check if Location permission has been granted to the app (for Android). @@ -152,7 +181,9 @@ export class HyperTrack extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with the a string that can be "true" or "false", depending if location permission was granted, or it gets rejected if an error ocurred. */ @Cordova() - checkLocationPermission(): Promise { return; } + checkLocationPermission(): Promise { + return; + } /** * Request user to grant Location access to the app (for Anrdoid). @@ -160,7 +191,9 @@ export class HyperTrack extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with the a string that can be "true" or "false", depending if Location access was given to the app, or it gets rejected if an error ocurred. */ @Cordova() - requestPermissions(): Promise { return; } + requestPermissions(): Promise { + return; + } /** * Check if Location services are enabled on the device (for Android). @@ -168,7 +201,9 @@ export class HyperTrack extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with the a string that can be "true" or "false", depending if location services are enabled, or it gets rejected if an error ocurred. */ @Cordova() - checkLocationServices(): Promise { return; } + checkLocationServices(): Promise { + return; + } /** * Request user to enable Location services on the device. @@ -176,5 +211,7 @@ export class HyperTrack extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with the a string that can be "true" or "false", depending if Location services were enabled, or it gets rejected if an error ocurred. */ @Cordova() - requestLocationServices(): Promise { return; } + requestLocationServices(): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/ibeacon/index.ts b/src/@ionic-native/plugins/ibeacon/index.ts index 8b77afed0..6a3f4f89f 100644 --- a/src/@ionic-native/plugins/ibeacon/index.ts +++ b/src/@ionic-native/plugins/ibeacon/index.ts @@ -1,5 +1,10 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, CordovaCheck, IonicNativePlugin } from '@ionic-native/core'; +import { + Cordova, + CordovaCheck, + IonicNativePlugin, + Plugin +} from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; declare const cordova: any; @@ -29,7 +34,11 @@ export interface Beacon { * ProximityFar * ProximityUnknown */ - proximity: 'ProximityImmediate' | 'ProximityNear' | 'ProximityFar' | 'ProximityUnknown'; + proximity: + | 'ProximityImmediate' + | 'ProximityNear' + | 'ProximityFar' + | 'ProximityUnknown'; /** * Transmission Power of the beacon. A constant emitted by the beacon which indicates what's the expected RSSI at a distance of 1 meter to the beacon. @@ -46,7 +55,6 @@ export interface Beacon { * The accuracy of the ranging. */ accuracy: number; - } export interface BeaconRegion { @@ -104,7 +112,6 @@ export interface CircularRegion { export type Region = BeaconRegion | CircularRegion; export interface IBeaconPluginResult { - /** * The name of the delegate function that produced the PluginResult object. */ @@ -287,7 +294,6 @@ export interface IBeaconDelegate { }) @Injectable() export class IBeacon extends IonicNativePlugin { - /** * Instances of this class are delegates between the {@link LocationManager} and * the code that consumes the messages generated on in the native layer. @@ -298,85 +304,79 @@ export class IBeacon extends IonicNativePlugin { Delegate(): IBeaconDelegate { let delegate = new cordova.plugins.locationManager.Delegate(); - delegate.didChangeAuthorizationStatus = (pluginResult?: IBeaconPluginResult) => { - return new Observable( - (observer: any) => { - let cb = (data: IBeaconPluginResult) => observer.next(data); - return delegate.didChangeAuthorizationStatus = cb; - } - ); + delegate.didChangeAuthorizationStatus = ( + pluginResult?: IBeaconPluginResult + ) => { + return new Observable((observer: any) => { + const cb = (data: IBeaconPluginResult) => observer.next(data); + return (delegate.didChangeAuthorizationStatus = cb); + }); }; - delegate.didDetermineStateForRegion = (pluginResult?: IBeaconPluginResult) => { - return new Observable( - (observer: any) => { - let cb = (data: IBeaconPluginResult) => observer.next(data); - return delegate.didDetermineStateForRegion = cb; - } - ); + delegate.didDetermineStateForRegion = ( + pluginResult?: IBeaconPluginResult + ) => { + return new Observable((observer: any) => { + const cb = (data: IBeaconPluginResult) => observer.next(data); + return (delegate.didDetermineStateForRegion = cb); + }); }; delegate.didEnterRegion = (pluginResult?: IBeaconPluginResult) => { - return new Observable( - (observer: any) => { - let cb = (data: IBeaconPluginResult) => observer.next(data); - return delegate.didEnterRegion = cb; - } - ); + return new Observable((observer: any) => { + const cb = (data: IBeaconPluginResult) => observer.next(data); + return (delegate.didEnterRegion = cb); + }); }; delegate.didExitRegion = (pluginResult?: IBeaconPluginResult) => { - return new Observable( - (observer: any) => { - let cb = (data: IBeaconPluginResult) => observer.next(data); - return delegate.didExitRegion = cb; - } - ); + return new Observable((observer: any) => { + const cb = (data: IBeaconPluginResult) => observer.next(data); + return (delegate.didExitRegion = cb); + }); }; delegate.didRangeBeaconsInRegion = (pluginResult?: IBeaconPluginResult) => { - return new Observable( - (observer: any) => { - let cb = (data: IBeaconPluginResult) => observer.next(data); - return delegate.didRangeBeaconsInRegion = cb; - } - ); + return new Observable((observer: any) => { + const cb = (data: IBeaconPluginResult) => observer.next(data); + return (delegate.didRangeBeaconsInRegion = cb); + }); }; - delegate.didStartMonitoringForRegion = (pluginResult?: IBeaconPluginResult) => { - return new Observable( - (observer: any) => { - let cb = (data: IBeaconPluginResult) => observer.next(data); - return delegate.didStartMonitoringForRegion = cb; - } - ); + delegate.didStartMonitoringForRegion = ( + pluginResult?: IBeaconPluginResult + ) => { + return new Observable((observer: any) => { + const cb = (data: IBeaconPluginResult) => observer.next(data); + return (delegate.didStartMonitoringForRegion = cb); + }); }; - delegate.monitoringDidFailForRegionWithError = (pluginResult?: IBeaconPluginResult) => { - return new Observable( - (observer: any) => { - let cb = (data: IBeaconPluginResult) => observer.next(data); - return delegate.monitoringDidFailForRegionWithError = cb; - } - ); + delegate.monitoringDidFailForRegionWithError = ( + pluginResult?: IBeaconPluginResult + ) => { + return new Observable((observer: any) => { + const cb = (data: IBeaconPluginResult) => observer.next(data); + return (delegate.monitoringDidFailForRegionWithError = cb); + }); }; - delegate.peripheralManagerDidStartAdvertising = (pluginResult?: IBeaconPluginResult) => { - return new Observable( - (observer: any) => { - let cb = (data: IBeaconPluginResult) => observer.next(data); - return delegate.peripheralManagerDidStartAdvertising = cb; - } - ); + delegate.peripheralManagerDidStartAdvertising = ( + pluginResult?: IBeaconPluginResult + ) => { + return new Observable((observer: any) => { + const cb = (data: IBeaconPluginResult) => observer.next(data); + return (delegate.peripheralManagerDidStartAdvertising = cb); + }); }; - delegate.peripheralManagerDidUpdateState = (pluginResult?: IBeaconPluginResult) => { - return new Observable( - (observer: any) => { - let cb = (data: IBeaconPluginResult) => observer.next(data); - return delegate.peripheralManagerDidUpdateState = cb; - } - ); + delegate.peripheralManagerDidUpdateState = ( + pluginResult?: IBeaconPluginResult + ) => { + return new Observable((observer: any) => { + const cb = (data: IBeaconPluginResult) => observer.next(data); + return (delegate.peripheralManagerDidUpdateState = cb); + }); }; cordova.plugins.locationManager.setDelegate(delegate); @@ -396,15 +396,29 @@ export class IBeacon extends IonicNativePlugin { * @returns {BeaconRegion} Returns the BeaconRegion that was created */ @CordovaCheck({ sync: true }) - BeaconRegion(identifer: string, uuid: string, major?: number, minor?: number, notifyEntryStateOnDisplay?: boolean): BeaconRegion { - return new cordova.plugins.locationManager.BeaconRegion(identifer, uuid, major, minor, notifyEntryStateOnDisplay); + BeaconRegion( + identifer: string, + uuid: string, + major?: number, + minor?: number, + notifyEntryStateOnDisplay?: boolean + ): BeaconRegion { + return new cordova.plugins.locationManager.BeaconRegion( + identifer, + uuid, + major, + minor, + notifyEntryStateOnDisplay + ); } /** * @returns {IBeaconDelegate} Returns the IBeaconDelegate */ @Cordova() - getDelegate(): IBeaconDelegate { return; } + getDelegate(): IBeaconDelegate { + return; + } /** * @param {IBeaconDelegate} delegate An instance of a delegate to register with the native layer. @@ -412,7 +426,9 @@ export class IBeacon extends IonicNativePlugin { * @returns {IBeaconDelegate} Returns the IBeaconDelegate */ @Cordova() - setDelegate(delegate: IBeaconDelegate): IBeaconDelegate { return; } + setDelegate(delegate: IBeaconDelegate): IBeaconDelegate { + return; + } /** * Signals the native layer that the client side is ready to consume messages. @@ -435,7 +451,9 @@ export class IBeacon extends IonicNativePlugin { * native layer acknowledged the request and started to send events. */ @Cordova({ otherPromise: true }) - onDomDelegateReady(): Promise { return; } + onDomDelegateReady(): Promise { + return; + } /** * Determines if bluetooth is switched on, according to the native layer. @@ -443,7 +461,9 @@ export class IBeacon extends IonicNativePlugin { * indicating whether bluetooth is active. */ @Cordova({ otherPromise: true }) - isBluetoothEnabled(): Promise { return; } + isBluetoothEnabled(): Promise { + return; + } /** * Enables Bluetooth using the native Layer. (ANDROID ONLY) @@ -452,7 +472,9 @@ export class IBeacon extends IonicNativePlugin { * could be enabled. If not, the promise will be rejected with an error. */ @Cordova({ otherPromise: true }) - enableBluetooth(): Promise { return; } + enableBluetooth(): Promise { + return; + } /** * Disables Bluetooth using the native Layer. (ANDROID ONLY) @@ -461,7 +483,9 @@ export class IBeacon extends IonicNativePlugin { * could be enabled. If not, the promise will be rejected with an error. */ @Cordova({ otherPromise: true }) - disableBluetooth(): Promise { return; } + disableBluetooth(): Promise { + return; + } /** * Start monitoring the specified region. @@ -481,7 +505,9 @@ export class IBeacon extends IonicNativePlugin { * native layer acknowledged the dispatch of the monitoring request. */ @Cordova({ otherPromise: true }) - startMonitoringForRegion(region: BeaconRegion): Promise { return; } + startMonitoringForRegion(region: BeaconRegion): Promise { + return; + } /** * Stop monitoring the specified region. It is valid to call @@ -498,7 +524,9 @@ export class IBeacon extends IonicNativePlugin { * native layer acknowledged the dispatch of the request to stop monitoring. */ @Cordova({ otherPromise: true }) - stopMonitoringForRegion(region: BeaconRegion): Promise { return; } + stopMonitoringForRegion(region: BeaconRegion): Promise { + return; + } /** * Request state the for specified region. When result is ready @@ -514,8 +542,9 @@ export class IBeacon extends IonicNativePlugin { * native layer acknowledged the dispatch of the request to stop monitoring. */ @Cordova({ otherPromise: true }) - requestStateForRegion(region: Region): Promise { return; } - + requestStateForRegion(region: Region): Promise { + return; + } /** * Start ranging the specified beacon region. @@ -532,7 +561,9 @@ export class IBeacon extends IonicNativePlugin { * native layer acknowledged the dispatch of the monitoring request. */ @Cordova({ otherPromise: true }) - startRangingBeaconsInRegion(region: BeaconRegion): Promise { return; } + startRangingBeaconsInRegion(region: BeaconRegion): Promise { + return; + } /** * Stop ranging the specified region. It is valid to call @@ -549,7 +580,9 @@ export class IBeacon extends IonicNativePlugin { * native layer acknowledged the dispatch of the request to stop monitoring. */ @Cordova({ otherPromise: true }) - stopRangingBeaconsInRegion(region: BeaconRegion): Promise { return; } + stopRangingBeaconsInRegion(region: BeaconRegion): Promise { + return; + } /** * Queries the native layer to determine the current authorization in effect. @@ -558,7 +591,9 @@ export class IBeacon extends IonicNativePlugin { * requested authorization status. */ @Cordova({ otherPromise: true }) - getAuthorizationStatus(): Promise { return; } + getAuthorizationStatus(): Promise { + return; + } /** * For iOS 8 and above only. The permission model has changed by Apple in iOS 8, making it necessary for apps to @@ -570,8 +605,9 @@ export class IBeacon extends IonicNativePlugin { * @returns {Promise} Returns a promise that is resolved when the request dialog is shown. */ @Cordova({ otherPromise: true }) - requestWhenInUseAuthorization(): Promise { return; } - + requestWhenInUseAuthorization(): Promise { + return; + } /** * See the documentation of {@code requestWhenInUseAuthorization} for further details. @@ -580,7 +616,9 @@ export class IBeacon extends IonicNativePlugin { * shows the request dialog. */ @Cordova({ otherPromise: true }) - requestAlwaysAuthorization(): Promise { return; } + requestAlwaysAuthorization(): Promise { + return; + } /** * @@ -588,7 +626,9 @@ export class IBeacon extends IonicNativePlugin { * of {Region} instances that are being monitored by the native layer. */ @Cordova({ otherPromise: true }) - getMonitoredRegions(): Promise { return; } + getMonitoredRegions(): Promise { + return; + } /** * @@ -596,7 +636,9 @@ export class IBeacon extends IonicNativePlugin { * of {Region} instances that are being ranged by the native layer. */ @Cordova({ otherPromise: true }) - getRangedRegions(): Promise { return; } + getRangedRegions(): Promise { + return; + } /** * Determines if ranging is available or not, according to the native layer. @@ -604,7 +646,9 @@ export class IBeacon extends IonicNativePlugin { * indicating whether ranging is available or not. */ @Cordova({ otherPromise: true }) - isRangingAvailable(): Promise { return; } + isRangingAvailable(): Promise { + return; + } /** * Determines if region type is supported or not, according to the native layer. @@ -616,7 +660,9 @@ export class IBeacon extends IonicNativePlugin { * indicating whether the region type is supported or not. */ @Cordova({ otherPromise: true }) - isMonitoringAvailableForClass(region: Region): Promise { return; } + isMonitoringAvailableForClass(region: Region): Promise { + return; + } /** * Start advertising the specified region. @@ -636,7 +682,9 @@ export class IBeacon extends IonicNativePlugin { * native layer acknowledged the dispatch of the advertising request. */ @Cordova({ otherPromise: true }) - startAdvertising(region: Region, measuredPower?: number): Promise { return; } + startAdvertising(region: Region, measuredPower?: number): Promise { + return; + } /** * Stop advertising as a beacon. @@ -647,7 +695,9 @@ export class IBeacon extends IonicNativePlugin { * native layer acknowledged the dispatch of the request to stop advertising. */ @Cordova({ otherPromise: true }) - stopAdvertising(region: Region): Promise { return; } + stopAdvertising(region: Region): Promise { + return; + } /** * Determines if advertising is available or not, according to the native layer. @@ -655,7 +705,9 @@ export class IBeacon extends IonicNativePlugin { * indicating whether advertising is available or not. */ @Cordova({ otherPromise: true }) - isAdvertisingAvailable(): Promise { return; } + isAdvertisingAvailable(): Promise { + return; + } /** * Determines if advertising is currently active, according to the native layer. @@ -663,7 +715,9 @@ export class IBeacon extends IonicNativePlugin { * indicating whether advertising is active. */ @Cordova({ otherPromise: true }) - isAdvertising(): Promise { return; } + isAdvertising(): Promise { + return; + } /** * Disables debug logging in the native layer. Use this method if you want @@ -673,7 +727,9 @@ export class IBeacon extends IonicNativePlugin { * native layer has set the logging level accordingly. */ @Cordova({ otherPromise: true }) - disableDebugLogs(): Promise { return; } + disableDebugLogs(): Promise { + return; + } /** * Enables the posting of debug notifications in the native layer. Use this method if you want @@ -684,7 +740,9 @@ export class IBeacon extends IonicNativePlugin { * native layer has set the flag to enabled. */ @Cordova({ otherPromise: true }) - enableDebugNotifications(): Promise { return; } + enableDebugNotifications(): Promise { + return; + } /** * Disables the posting of debug notifications in the native layer. Use this method if you want @@ -694,7 +752,9 @@ export class IBeacon extends IonicNativePlugin { * native layer has set the flag to disabled. */ @Cordova({ otherPromise: true }) - disableDebugNotifications(): Promise { return; } + disableDebugNotifications(): Promise { + return; + } /** * Enables debug logging in the native layer. Use this method if you want @@ -704,7 +764,9 @@ export class IBeacon extends IonicNativePlugin { * native layer has set the logging level accordingly. */ @Cordova({ otherPromise: true }) - enableDebugLogs(): Promise { return; } + enableDebugLogs(): Promise { + return; + } /** * Appends the provided [message] to the device logs. @@ -717,6 +779,7 @@ export class IBeacon extends IonicNativePlugin { * is expected to be equivalent to the one provided in the original call. */ @Cordova({ otherPromise: true }) - appendToDeviceLog(message: string): Promise { return; } - + appendToDeviceLog(message: string): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/image-picker/index.ts b/src/@ionic-native/plugins/image-picker/index.ts index 02f265d23..ce56c3eed 100644 --- a/src/@ionic-native/plugins/image-picker/index.ts +++ b/src/@ionic-native/plugins/image-picker/index.ts @@ -1,6 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; - +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface ImagePickerOptions { /** @@ -60,7 +59,8 @@ export interface ImagePickerOptions { plugin: 'cordova-plugin-telerik-imagepicker', pluginRef: 'window.imagePicker', repo: 'https://github.com/Telerik-Verified-Plugins/ImagePicker', - install: 'ionic cordova plugin add cordova-plugin-telerik-imagepicker --variable PHOTO_LIBRARY_USAGE_DESCRIPTION="your usage message"', + install: + 'ionic cordova plugin add cordova-plugin-telerik-imagepicker --variable PHOTO_LIBRARY_USAGE_DESCRIPTION="your usage message"', installVariables: ['PHOTO_LIBRARY_USAGE_DESCRIPTION'], platforms: ['Android', 'iOS'] }) @@ -75,7 +75,9 @@ export class ImagePicker extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - getPictures(options: ImagePickerOptions): Promise { return; } + getPictures(options: ImagePickerOptions): Promise { + return; + } /** * Check if we have permission to read images @@ -84,7 +86,9 @@ export class ImagePicker extends IonicNativePlugin { @Cordova({ platforms: ['Android'] }) - hasReadPermission(): Promise { return; } + hasReadPermission(): Promise { + return; + } /** * Request permission to read images @@ -93,6 +97,7 @@ export class ImagePicker extends IonicNativePlugin { @Cordova({ platforms: ['Android'] }) - requestReadPermission(): Promise { return; } - + requestReadPermission(): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/image-resizer/index.ts b/src/@ionic-native/plugins/image-resizer/index.ts index 2928e119c..4231b73ae 100644 --- a/src/@ionic-native/plugins/image-resizer/index.ts +++ b/src/@ionic-native/plugins/image-resizer/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface ImageResizerOptions { /** @@ -80,5 +80,7 @@ export class ImageResizer extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - resize(options: ImageResizerOptions): Promise { return; } + resize(options: ImageResizerOptions): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/in-app-browser/index.ts b/src/@ionic-native/plugins/in-app-browser/index.ts index d4e0a1bfc..33d7eafed 100644 --- a/src/@ionic-native/plugins/in-app-browser/index.ts +++ b/src/@ionic-native/plugins/in-app-browser/index.ts @@ -1,15 +1,22 @@ import { Injectable } from '@angular/core'; -import { Plugin, CordovaInstance, InstanceCheck, IonicNativePlugin } from '@ionic-native/core'; +import { + CordovaInstance, + InstanceCheck, + IonicNativePlugin, + Plugin +} from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; import { Observer } from 'rxjs/Observer'; -declare const cordova: Cordova & { InAppBrowser: any; }; +declare const cordova: Cordova & { InAppBrowser: any }; export interface InAppBrowserOptions { /** Set to yes or no to turn the InAppBrowser's location bar on or off. */ location?: 'yes' | 'no'; - /** Set to yes to create the browser and load the page, but not show it. The loadstop event fires when loading is complete. - * Omit or set to no (default) to have the browser open and load normally. */ + /** + * Set to yes to create the browser and load the page, but not show it. The loadstop event fires when loading is complete. + * Omit or set to no (default) to have the browser open and load normally. + **/ hidden?: 'yes' | 'no'; /** Set to yes to have the browser's cookie cache cleared before the new window is opened. */ clearcache?: 'yes'; @@ -17,8 +24,10 @@ export interface InAppBrowserOptions { clearsessioncache?: 'yes'; /** (Android Only) set to yes to show Android browser's zoom controls, set to no to hide them. Default value is yes. */ zoom?: 'yes' | 'no'; - /** Set to yes to use the hardware back button to navigate backwards through the InAppBrowser's history. - * If there is no previous page, the InAppBrowser will close. The default value is yes, so you must set it to no if you want the back button to simply close the InAppBrowser. */ + /** + * Set to yes to use the hardware back button to navigate backwards through the InAppBrowser's history. + * If there is no previous page, the InAppBrowser will close. The default value is yes, so you must set it to no if you want the back button to simply close the InAppBrowser. + **/ hardwareback?: 'yes' | 'no'; /** Set to yes to prevent HTML5 audio or video from autoplaying (defaults to no). */ mediaPlaybackRequiresUserAction?: 'yes' | 'no'; @@ -45,8 +54,10 @@ export interface InAppBrowserOptions { transitionstyle?: 'fliphorizontal' | 'crossdissolve' | 'coververtical'; /** (iOS Only) Set to top or bottom (default is bottom). Causes the toolbar to be at the top or bottom of the window. */ toolbarposition?: 'top' | 'bottom'; - /** (Windows only) Set to yes to create the browser control without a border around it. - * Please note that if location=no is also specified, there will be no control presented to user to close IAB window. */ + /** + * (Windows only) Set to yes to create the browser control without a border around it. + * Please note that if location=no is also specified, there will be no control presented to user to close IAB window. + **/ fullscreen?: 'yes'; /** @@ -69,7 +80,6 @@ export interface InAppBrowserEvent extends Event { * @hidden */ export class InAppBrowserObject { - private _objectInstance: any; /** @@ -83,20 +93,24 @@ export class InAppBrowserObject { * The options string must not contain any blank space, and each feature's * name/value pairs must be separated by a comma. Feature names are case insensitive. */ - constructor(url: string, target?: string, options?: string | InAppBrowserOptions) { + constructor( + url: string, + target?: string, + options?: string | InAppBrowserOptions + ) { try { - if (options && typeof options !== 'string') { - options = Object.keys(options).map((key: string) => `${key}=${(options)[key]}`).join(','); + options = Object.keys(options) + .map((key: string) => `${key}=${(options)[key]}`) + .join(','); } this._objectInstance = cordova.InAppBrowser.open(url, target, options); - } catch (e) { - window.open(url, target); - console.warn('Native: InAppBrowser is not installed or you are running on a browser. Falling back to window.open.'); - + console.warn( + 'Native: InAppBrowser is not installed or you are running on a browser. Falling back to window.open.' + ); } } @@ -105,20 +119,20 @@ export class InAppBrowserObject { * if the InAppBrowser was already visible. */ @CordovaInstance({ sync: true }) - show(): void { } + show(): void {} /** * Closes the InAppBrowser window. */ @CordovaInstance({ sync: true }) - close(): void { } + close(): void {} /** * Hides an InAppBrowser window that is currently shown. Calling this has no effect * if the InAppBrowser was already hidden. */ @CordovaInstance({ sync: true }) - hide(): void { } + hide(): void {} /** * Injects JavaScript code into the InAppBrowser window. @@ -126,7 +140,9 @@ export class InAppBrowserObject { * @returns {Promise} */ @CordovaInstance() - executeScript(script: { file?: string, code?: string }): Promise { return; } + executeScript(script: { file?: string; code?: string }): Promise { + return; + } /** * Injects CSS into the InAppBrowser window. @@ -134,7 +150,9 @@ export class InAppBrowserObject { * @returns {Promise} */ @CordovaInstance() - insertCSS(css: { file?: string, code?: string }): Promise { return; } + insertCSS(css: { file?: string; code?: string }): Promise { + return; + } /** * A method that allows you to listen to events happening in the browser. @@ -143,10 +161,19 @@ export class InAppBrowserObject { */ @InstanceCheck() on(event: string): Observable { - return new Observable((observer: Observer) => { - this._objectInstance.addEventListener(event, observer.next.bind(observer)); - return () => this._objectInstance.removeEventListener(event, observer.next.bind(observer)); - }); + return new Observable( + (observer: Observer) => { + this._objectInstance.addEventListener( + event, + observer.next.bind(observer) + ); + return () => + this._objectInstance.removeEventListener( + event, + observer.next.bind(observer) + ); + } + ); } } @@ -185,7 +212,6 @@ export class InAppBrowserObject { }) @Injectable() export class InAppBrowser extends IonicNativePlugin { - /** * Opens a URL in a new InAppBrowser instance, the current browser instance, or the system browser. * @param url {string} The URL to load. @@ -195,8 +221,11 @@ export class InAppBrowser extends IonicNativePlugin { * name/value pairs must be separated by a comma. Feature names are case insensitive. * @returns {InAppBrowserObject} */ - create(url: string, target?: string, options?: string | InAppBrowserOptions): InAppBrowserObject { + create( + url: string, + target?: string, + options?: string | InAppBrowserOptions + ): InAppBrowserObject { return new InAppBrowserObject(url, target, options); } - } diff --git a/src/@ionic-native/plugins/in-app-purchase-2/index.ts b/src/@ionic-native/plugins/in-app-purchase-2/index.ts index 46436d642..f0be289cc 100644 --- a/src/@ionic-native/plugins/in-app-purchase-2/index.ts +++ b/src/@ionic-native/plugins/in-app-purchase-2/index.ts @@ -1,5 +1,10 @@ -import { Plugin, IonicNativePlugin, Cordova, CordovaProperty } from '@ionic-native/core'; import { Injectable } from '@angular/core'; +import { + Cordova, + CordovaProperty, + IonicNativePlugin, + Plugin +} from '@ionic-native/core'; /** * @name In App Purchase 2 @@ -81,21 +86,22 @@ export type IAPProducts = Array & { /** * Get product by ID */ - byId: { [id: string]: IAPProduct; }; + byId: { [id: string]: IAPProduct }; /** * Get product by alias */ - byAlias: { [alias: string]: IAPProduct; }; + byAlias: { [alias: string]: IAPProduct }; /** * Remove all products (for testing only). */ reset: () => {}; }; -export type IAPQueryCallback = ((product: IAPProduct) => void) | ((error: IAPError) => void); +export type IAPQueryCallback = + | ((product: IAPProduct) => void) + | ((error: IAPError) => void); export interface IAPProduct { - id: string; alias: string; @@ -145,7 +151,6 @@ export interface IAPProduct { off(callback: Function): void; trigger(action: string, args: any): void; - } export interface IAPProductEvents { @@ -165,7 +170,11 @@ export interface IAPProductEvents { verified: (callback: IAPQueryCallback) => void; unverified: (callback: IAPQueryCallback) => void; expired: (callback: IAPQueryCallback) => void; - downloading: (product: IAPProduct, progress: any, time_remaining: any) => void; + downloading: ( + product: IAPProduct, + progress: any, + time_remaining: any + ) => void; downloaded: (callback: IAPQueryCallback) => void; } @@ -199,163 +208,115 @@ export class IAPError { pluginRef: 'store', repo: 'https://github.com/j3k0/cordova-plugin-purchase', platforms: ['iOS', 'Android', 'Windows'], - install: 'ionic cordova plugin add cc.fovea.cordova.purchase --variable BILLING_KEY=""' + install: + 'ionic cordova plugin add cc.fovea.cordova.purchase --variable BILLING_KEY=""' }) @Injectable() export class InAppPurchase2 extends IonicNativePlugin { + @CordovaProperty QUIET: number; - @CordovaProperty - QUIET: number; + @CordovaProperty ERROR: number; - @CordovaProperty - ERROR: number; + @CordovaProperty WARNING: number; - @CordovaProperty - WARNING: number; + @CordovaProperty INFO: number; - @CordovaProperty - INFO: number; - - @CordovaProperty - DEBUG: number; + @CordovaProperty DEBUG: number; /** * Debug level. Use QUIET, ERROR, WARNING, INFO or DEBUG constants */ - @CordovaProperty - verbosity: number; + @CordovaProperty verbosity: number; /** * Set to true to invoke the platform purchase sandbox. (Windows only) */ - @CordovaProperty - sandbox: boolean; + @CordovaProperty sandbox: boolean; + + @CordovaProperty FREE_SUBSCRIPTION: string; + + @CordovaProperty PAID_SUBSCRIPTION: string; + + @CordovaProperty NON_RENEWING_SUBSCRIPTION: string; + + @CordovaProperty CONSUMABLE: string; + + @CordovaProperty NON_CONSUMABLE: string; + + @CordovaProperty ERR_SETUP: number; + + @CordovaProperty ERR_LOAD: number; + + @CordovaProperty ERR_PURCHASE: number; + + @CordovaProperty ERR_LOAD_RECEIPTS: number; + + @CordovaProperty ERR_CLIENT_INVALID: number; + + @CordovaProperty ERR_PAYMENT_CANCELLED: number; + + @CordovaProperty ERR_PAYMENT_INVALID: number; + + @CordovaProperty ERR_PAYMENT_NOT_ALLOWED: number; + + @CordovaProperty ERR_UNKNOWN: number; + + @CordovaProperty ERR_REFRESH_RECEIPTS: number; + + @CordovaProperty ERR_INVALID_PRODUCT_ID: number; + + @CordovaProperty ERR_FINISH: number; + + @CordovaProperty ERR_COMMUNICATION: number; + + @CordovaProperty ERR_SUBSCRIPTIONS_NOT_AVAILABLE: number; + + @CordovaProperty ERR_MISSING_TOKEN: number; + + @CordovaProperty ERR_VERIFICATION_FAILED: number; + + @CordovaProperty ERR_BAD_RESPONSE: number; + + @CordovaProperty ERR_REFRESH: number; + + @CordovaProperty ERR_PAYMENT_EXPIRED: number; + + @CordovaProperty ERR_DOWNLOAD: number; + + @CordovaProperty ERR_SUBSCRIPTION_UPDATE_NOT_AVAILABLE: number; + + @CordovaProperty REGISTERED: string; + + @CordovaProperty INVALID: string; + + @CordovaProperty VALID: string; + + @CordovaProperty REQUESTED: string; + + @CordovaProperty INITIATED: string; + + @CordovaProperty APPROVED: string; + + @CordovaProperty FINISHED: string; + + @CordovaProperty OWNED: string; + + @CordovaProperty DOWNLOADING: string; + + @CordovaProperty DOWNLOADED: string; + + @CordovaProperty INVALID_PAYLOAD: number; + + @CordovaProperty CONNECTION_FAILED: number; + + @CordovaProperty PURCHASE_EXPIRED: number; + + @CordovaProperty products: IAPProducts; @CordovaProperty - FREE_SUBSCRIPTION: string; - - @CordovaProperty - PAID_SUBSCRIPTION: string; - - @CordovaProperty - NON_RENEWING_SUBSCRIPTION: string; - - @CordovaProperty - CONSUMABLE: string; - - @CordovaProperty - NON_CONSUMABLE: string; - - - @CordovaProperty - ERR_SETUP: number; - - @CordovaProperty - ERR_LOAD: number; - - @CordovaProperty - ERR_PURCHASE: number; - - @CordovaProperty - ERR_LOAD_RECEIPTS: number; - - @CordovaProperty - ERR_CLIENT_INVALID: number; - - @CordovaProperty - ERR_PAYMENT_CANCELLED: number; - - @CordovaProperty - ERR_PAYMENT_INVALID: number; - - @CordovaProperty - ERR_PAYMENT_NOT_ALLOWED: number; - - @CordovaProperty - ERR_UNKNOWN: number; - - @CordovaProperty - ERR_REFRESH_RECEIPTS: number; - - @CordovaProperty - ERR_INVALID_PRODUCT_ID: number; - - @CordovaProperty - ERR_FINISH: number; - - @CordovaProperty - ERR_COMMUNICATION: number; - - @CordovaProperty - ERR_SUBSCRIPTIONS_NOT_AVAILABLE: number; - - @CordovaProperty - ERR_MISSING_TOKEN: number; - - @CordovaProperty - ERR_VERIFICATION_FAILED: number; - - @CordovaProperty - ERR_BAD_RESPONSE: number; - - @CordovaProperty - ERR_REFRESH: number; - - @CordovaProperty - ERR_PAYMENT_EXPIRED: number; - - @CordovaProperty - ERR_DOWNLOAD: number; - - @CordovaProperty - ERR_SUBSCRIPTION_UPDATE_NOT_AVAILABLE: number; - - - @CordovaProperty - REGISTERED: string; - - @CordovaProperty - INVALID: string; - - @CordovaProperty - VALID: string; - - @CordovaProperty - REQUESTED: string; - - @CordovaProperty - INITIATED: string; - - @CordovaProperty - APPROVED: string; - - @CordovaProperty - FINISHED: string; - - @CordovaProperty - OWNED: string; - - @CordovaProperty - DOWNLOADING: string; - - @CordovaProperty - DOWNLOADED: string; - - - @CordovaProperty - INVALID_PAYLOAD: number; - - @CordovaProperty - CONNECTION_FAILED: number; - - @CordovaProperty - PURCHASE_EXPIRED: number; - - @CordovaProperty - products: IAPProducts; - - @CordovaProperty - validator: string | ((product: string | IAPProduct, callback: Function) => void); + validator: + | string + | ((product: string | IAPProduct, callback: Function) => void); @CordovaProperty log: { @@ -370,7 +331,9 @@ export class InAppPurchase2 extends IonicNativePlugin { * @param idOrAlias */ @Cordova({ sync: true }) - get(idOrAlias: string): IAPProduct { return; } + get(idOrAlias: string): IAPProduct { + return; + } /** * Register error handler @@ -383,7 +346,7 @@ export class InAppPurchase2 extends IonicNativePlugin { * Add or register a product * @param product {IAPProductOptions} */ - @Cordova({ sync: true}) + @Cordova({ sync: true }) register(product: IAPProductOptions): void {} /** @@ -394,7 +357,13 @@ export class InAppPurchase2 extends IonicNativePlugin { * @return {IAPProductEvents} */ @Cordova({ sync: true }) - when(query: string | IAPProduct, event?: string, callback?: IAPQueryCallback): IAPProductEvents { return; } + when( + query: string | IAPProduct, + event?: string, + callback?: IAPQueryCallback + ): IAPProductEvents { + return; + } /** * Identical to `when`, but the callback will be called only once. After being called, the callback will be unregistered. @@ -404,7 +373,13 @@ export class InAppPurchase2 extends IonicNativePlugin { * @return {IAPProductEvents} */ @Cordova({ sync: true }) - once(query: string | IAPProduct, event?: string, callback?: IAPQueryCallback): IAPProductEvents { return; } + once( + query: string | IAPProduct, + event?: string, + callback?: IAPQueryCallback + ): IAPProductEvents { + return; + } /** * Unregister a callback. Works for callbacks registered with ready, when, once and error. @@ -414,16 +389,22 @@ export class InAppPurchase2 extends IonicNativePlugin { off(callback: Function): void {} @Cordova({ sync: true }) - order(product: string | IAPProduct, additionalData?: any): { then: Function; error: Function; } { return; } + order( + product: string | IAPProduct, + additionalData?: any + ): { then: Function; error: Function } { + return; + } /** * * @return {Promise} returns a promise that resolves when the store is ready */ @Cordova() - ready(): Promise { return; } + ready(): Promise { + return; + } @Cordova({ sync: true }) refresh(): void {} - } diff --git a/src/@ionic-native/plugins/in-app-purchase/index.ts b/src/@ionic-native/plugins/in-app-purchase/index.ts index 4d59e18d9..44bb8e970 100644 --- a/src/@ionic-native/plugins/in-app-purchase/index.ts +++ b/src/@ionic-native/plugins/in-app-purchase/index.ts @@ -1,6 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; - +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name In App Purchase @@ -62,7 +61,6 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; }) @Injectable() export class InAppPurchase extends IonicNativePlugin { - /** * Retrieves a list of full product data from Apple/Google. This method must be called before making purchases. * @param {array} productId an array of product ids. @@ -71,7 +69,9 @@ export class InAppPurchase extends IonicNativePlugin { @Cordova({ otherPromise: true }) - getProducts(productId: string[]): Promise { return; } + getProducts(productId: string[]): Promise { + return; + } /** * Buy a product that matches the productId. @@ -81,7 +81,16 @@ export class InAppPurchase extends IonicNativePlugin { @Cordova({ otherPromise: true }) - buy(productId: string): Promise<{ transactionId: string, receipt: string, signature: string, productType: string }> { return; } + buy( + productId: string + ): Promise<{ + transactionId: string; + receipt: string; + signature: string; + productType: string; + }> { + return; + } /** * Same as buy, but for subscription based products. @@ -91,7 +100,16 @@ export class InAppPurchase extends IonicNativePlugin { @Cordova({ otherPromise: true }) - subscribe(productId: string): Promise<{ transactionId: string, receipt: string, signature: string, productType: string }> { return; } + subscribe( + productId: string + ): Promise<{ + transactionId: string; + receipt: string; + signature: string; + productType: string; + }> { + return; + } /** * Call this function after purchasing a "consumable" product to mark it as consumed. On Android, you must consume products that you want to let the user purchase multiple times. If you will not consume the product after a purchase, the next time you will attempt to purchase it you will get the error message: @@ -103,7 +121,13 @@ export class InAppPurchase extends IonicNativePlugin { @Cordova({ otherPromise: true }) - consume(productType: string, receipt: string, signature: string): Promise { return; } + consume( + productType: string, + receipt: string, + signature: string + ): Promise { + return; + } /** * Restore all purchases from the store @@ -112,7 +136,9 @@ export class InAppPurchase extends IonicNativePlugin { @Cordova({ otherPromise: true }) - restorePurchases(): Promise { return; } + restorePurchases(): Promise { + return; + } /** * Get the receipt. @@ -122,6 +148,7 @@ export class InAppPurchase extends IonicNativePlugin { otherPromise: true, platforms: ['iOS'] }) - getReceipt(): Promise { return; } - + getReceipt(): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/insomnia/index.ts b/src/@ionic-native/plugins/insomnia/index.ts index 1a541d321..f31ec1392 100644 --- a/src/@ionic-native/plugins/insomnia/index.ts +++ b/src/@ionic-native/plugins/insomnia/index.ts @@ -1,6 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; - +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name Insomnia @@ -34,23 +33,32 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; plugin: 'cordova-plugin-insomnia', pluginRef: 'plugins.insomnia', repo: 'https://github.com/EddyVerbruggen/Insomnia-PhoneGap-Plugin', - platforms: ['Android', 'Browser', 'Firefox OS', 'iOS', 'Windows', 'Windows Phone 8'] + platforms: [ + 'Android', + 'Browser', + 'Firefox OS', + 'iOS', + 'Windows', + 'Windows Phone 8' + ] }) @Injectable() export class Insomnia extends IonicNativePlugin { - /** * Keeps awake the application * @returns {Promise} */ @Cordova() - keepAwake(): Promise { return; } + keepAwake(): Promise { + return; + } /** * Allows the application to sleep again * @returns {Promise} */ @Cordova() - allowSleepAgain(): Promise { return; } - + allowSleepAgain(): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/instagram/index.ts b/src/@ionic-native/plugins/instagram/index.ts index fe9c5689c..309885294 100644 --- a/src/@ionic-native/plugins/instagram/index.ts +++ b/src/@ionic-native/plugins/instagram/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name Instagram @@ -28,7 +28,6 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; }) @Injectable() export class Instagram extends IonicNativePlugin { - /** * Detect if the Instagram application is installed on the device. * @@ -37,7 +36,9 @@ export class Instagram extends IonicNativePlugin { @Cordova({ callbackStyle: 'node' }) - isInstalled(): Promise { return; } + isInstalled(): Promise { + return; + } /** * Share an image on Instagram @@ -50,7 +51,9 @@ export class Instagram extends IonicNativePlugin { @Cordova({ callbackStyle: 'node' }) - share(canvasIdOrDataUrl: string, caption?: string): Promise { return; } + share(canvasIdOrDataUrl: string, caption?: string): Promise { + return; + } /** * Share a library asset or video @@ -60,6 +63,7 @@ export class Instagram extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - shareAsset(assetLocalIdentifier: string): Promise { return; } - + shareAsset(assetLocalIdentifier: string): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/intel-security/index.ts b/src/@ionic-native/plugins/intel-security/index.ts index bdd30c46b..1db1a4f0f 100644 --- a/src/@ionic-native/plugins/intel-security/index.ts +++ b/src/@ionic-native/plugins/intel-security/index.ts @@ -76,7 +76,6 @@ export interface IntelSecurityDataOptions { }) @Injectable() export class IntelSecurity extends IonicNativePlugin { - /** * returns an IntelSecurityStorage object * @type {IntelSecurityStorage} @@ -88,7 +87,6 @@ export class IntelSecurity extends IonicNativePlugin { * @type {IntelSecurityData} */ data: IntelSecurityData = new IntelSecurityData(); - } /** @@ -100,14 +98,15 @@ export class IntelSecurity extends IonicNativePlugin { pluginRef: 'intel.security.secureData' }) export class IntelSecurityData { - /** - * This creates a new instance of secure data using plain-text data. - * @param options {IntelSecurityDataOptions} - * @returns {Promise} Returns a Promise that resolves with the instanceID of the created data instance, or rejects with an error. - */ + * This creates a new instance of secure data using plain-text data. + * @param options {IntelSecurityDataOptions} + * @returns {Promise} Returns a Promise that resolves with the instanceID of the created data instance, or rejects with an error. + */ @Cordova({ otherPromise: true }) - createFromData(options: IntelSecurityDataOptions): Promise { return; } + createFromData(options: IntelSecurityDataOptions): Promise { + return; + } /** * This creates a new instance of secure data (using sealed data) @@ -116,7 +115,9 @@ export class IntelSecurityData { * @returns {Promise} Returns a Promise that resolves with the instanceID of the created data instance, or rejects with an error. */ @Cordova({ otherPromise: true }) - createFromSealedData(options: { sealedData: string }): Promise { return; } + createFromSealedData(options: { sealedData: string }): Promise { + return; + } /** * This returns the plain-text data of the secure data instance. @@ -124,7 +125,9 @@ export class IntelSecurityData { * @returns {Promise} Returns a Promise that resolves to the data as plain-text, or rejects with an error. */ @Cordova({ otherPromise: true }) - getData(instanceID: Number): Promise { return; } + getData(instanceID: Number): Promise { + return; + } /** * This returns the sealed chunk of a secure data instance. @@ -132,7 +135,9 @@ export class IntelSecurityData { * @returns {Promise} Returns a Promise that resolves to the sealed data, or rejects with an error. */ @Cordova({ otherPromise: true }) - getSealedData(instanceID: any): Promise { return; } + getSealedData(instanceID: any): Promise { + return; + } /** * This returns the tag of the secure data instance. @@ -140,7 +145,9 @@ export class IntelSecurityData { * @returns {Promise} Returns a Promise that resolves to the tag, or rejects with an error. */ @Cordova({ otherPromise: true }) - getTag(instanceID: any): Promise { return; } + getTag(instanceID: any): Promise { + return; + } /** * This returns the data policy of the secure data instance. @@ -148,7 +155,9 @@ export class IntelSecurityData { * @returns {Promise} Returns a promise that resolves to the policy object, or rejects with an error. */ @Cordova({ otherPromise: true }) - getPolicy(instanceID: any): Promise { return; } + getPolicy(instanceID: any): Promise { + return; + } /** * This returns an array of the data owners unique IDs. @@ -156,7 +165,9 @@ export class IntelSecurityData { * @returns {Promise} Returns a promise that resolves to an array of owners' unique IDs, or rejects with an error. */ @Cordova({ otherPromise: true }) - getOwners(instanceID: any): Promise> { return; } + getOwners(instanceID: any): Promise> { + return; + } /** * This returns the data creator unique ID. @@ -164,7 +175,9 @@ export class IntelSecurityData { * @returns {Promise} Returns a promsie that resolves to the creator's unique ID, or rejects with an error. */ @Cordova({ otherPromise: true }) - getCreator(instanceID: any): Promise { return; } + getCreator(instanceID: any): Promise { + return; + } /** * This returns an array of the trusted web domains of the secure data instance. @@ -172,7 +185,9 @@ export class IntelSecurityData { * @returns {Promise} Returns a promise that resolves to a list of web owners, or rejects with an error. */ @Cordova({ otherPromise: true }) - getWebOwners(instanceID: any): Promise> { return; } + getWebOwners(instanceID: any): Promise> { + return; + } /** * This changes the extra key of a secure data instance. To successfully replace the extra key, the calling application must have sufficient access to the plain-text data. @@ -182,7 +197,9 @@ export class IntelSecurityData { * @returns {Promise} Returns a promise that resolves with no parameters, or rejects with an error. */ @Cordova({ otherPromise: true }) - changeExtraKey(options: any): Promise { return; } + changeExtraKey(options: any): Promise { + return; + } /** * This releases a secure data instance. @@ -190,8 +207,9 @@ export class IntelSecurityData { * @returns {Promise} Returns a promise that resovles with no parameters, or rejects with an error. */ @Cordova({ otherPromise: true }) - destroy(instanceID: any): Promise { return; } - + destroy(instanceID: any): Promise { + return; + } } /** @@ -203,7 +221,6 @@ export class IntelSecurityData { pluginRef: 'intel.security.secureStorage' }) export class IntelSecurityStorage { - /** * This deletes a secure storage resource (indicated by id). * @param options {Object} @@ -212,10 +229,9 @@ export class IntelSecurityStorage { * @returns {Promise} Returns a Promise that resolves with no parameters, or rejects with an error. */ @Cordova({ otherPromise: true }) - delete(options: { - id: string, - storageType?: Number - }): Promise { return; } + delete(options: { id: string; storageType?: Number }): Promise { + return; + } /** * This reads the data from secure storage (indicated by id) and creates a new secure data instance. @@ -227,10 +243,12 @@ export class IntelSecurityStorage { */ @Cordova({ otherPromise: true }) read(options: { - id: string, - storageType?: Number, - extraKey?: Number - }): Promise { return; } + id: string; + storageType?: Number; + extraKey?: Number; + }): Promise { + return; + } /** * This writes the data contained in a secure data instance into secure storage. @@ -242,9 +260,10 @@ export class IntelSecurityStorage { */ @Cordova({ otherPromise: true }) write(options: { - id: String, - instanceID: Number, - storageType?: Number - }): Promise { return; } - + id: String; + instanceID: Number; + storageType?: Number; + }): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/intercom/index.ts b/src/@ionic-native/plugins/intercom/index.ts index 8d6c4dcc0..ea65fc5d1 100644 --- a/src/@ionic-native/plugins/intercom/index.ts +++ b/src/@ionic-native/plugins/intercom/index.ts @@ -1,5 +1,5 @@ -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name Intercom @@ -27,18 +27,19 @@ import { Injectable } from '@angular/core'; plugin: 'cordova-plugin-intercom', pluginRef: 'intercom', repo: 'https://github.com/intercom/intercom-cordova', - platforms: ['Android', 'iOS'], + platforms: ['Android', 'iOS'] }) @Injectable() export class Intercom extends IonicNativePlugin { - /** * Register a identified user * @param options {any} Options * @return {Promise} Returns a promise */ @Cordova() - registerIdentifiedUser(options: any): Promise { return; } + registerIdentifiedUser(options: any): Promise { + return; + } /** * Register a unidentified user @@ -46,14 +47,18 @@ export class Intercom extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - registerUnidentifiedUser(options: any): Promise { return; } + registerUnidentifiedUser(options: any): Promise { + return; + } /** * This resets the Intercom integration's cache of your user's identity and wipes the slate clean. * @return {Promise} Returns a promise */ @Cordova() - reset(): Promise { return; } + reset(): Promise { + return; + } /** * @@ -62,7 +67,9 @@ export class Intercom extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - setSecureMode(secureHash: string, secureData: any): Promise { return; } + setSecureMode(secureHash: string, secureData: any): Promise { + return; + } /** * @@ -70,7 +77,9 @@ export class Intercom extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - setUserHash(secureHash: string): Promise { return; } + setUserHash(secureHash: string): Promise { + return; + } /** * @@ -78,7 +87,9 @@ export class Intercom extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - updateUser(attributes: any): Promise { return; } + updateUser(attributes: any): Promise { + return; + } /** * @@ -87,21 +98,27 @@ export class Intercom extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - logEvent(eventName: string, metaData: any): Promise { return; } + logEvent(eventName: string, metaData: any): Promise { + return; + } /** * * @return {Promise} Returns a promise */ @Cordova() - displayMessenger(): Promise { return; } + displayMessenger(): Promise { + return; + } /** * * @return {Promise} Returns a promise */ @Cordova() - displayMessageComposer(): Promise { return; } + displayMessageComposer(): Promise { + return; + } /** * @@ -109,21 +126,29 @@ export class Intercom extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - displayMessageComposerWithInitialMessage(initialMessage: string): Promise { return; } + displayMessageComposerWithInitialMessage( + initialMessage: string + ): Promise { + return; + } /** * * @return {Promise} Returns a promise */ @Cordova() - displayConversationsList(): Promise { return; } + displayConversationsList(): Promise { + return; + } /** * * @return {Promise} Returns a promise */ @Cordova() - unreadConversationCount(): Promise { return; } + unreadConversationCount(): Promise { + return; + } /** * @@ -131,7 +156,9 @@ export class Intercom extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - setLauncherVisibility(visibility: string): Promise { return; } + setLauncherVisibility(visibility: string): Promise { + return; + } /** * @@ -139,20 +166,25 @@ export class Intercom extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - setInAppMessageVisibility(visibility: string): Promise { return; } + setInAppMessageVisibility(visibility: string): Promise { + return; + } /** * * @return {Promise} Returns a promise */ @Cordova() - hideMessenger(): Promise { return; } + hideMessenger(): Promise { + return; + } /** * * @return {Promise} Returns a promise */ @Cordova() - registerForPush(): Promise { return; } - + registerForPush(): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/jins-meme/index.ts b/src/@ionic-native/plugins/jins-meme/index.ts index 282e6a312..8953fc24d 100644 --- a/src/@ionic-native/plugins/jins-meme/index.ts +++ b/src/@ionic-native/plugins/jins-meme/index.ts @@ -1,5 +1,10 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, CordovaCheck, IonicNativePlugin } from '@ionic-native/core'; +import { + Cordova, + CordovaCheck, + IonicNativePlugin, + Plugin +} from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; declare const cordova: any; @@ -49,7 +54,9 @@ export class JinsMeme extends IonicNativePlugin { *@returns {Promise} */ @Cordova() - setAppClientID(appClientId: string, clientSecret: string): Promise { return; } + setAppClientID(appClientId: string, clientSecret: string): Promise { + return; + } /** * Starts scanning for JINS MEME. * @returns {Observable} @@ -59,13 +66,17 @@ export class JinsMeme extends IonicNativePlugin { clearFunction: 'stopScan', clearWithArgs: true }) - startScan(): Observable { return; } + startScan(): Observable { + return; + } /** * Stops scanning JINS MEME. * @returns {Promise} */ @Cordova() - stopScan(): Promise { return; } + stopScan(): Promise { + return; + } /** * Establishes connection to JINS MEME. * @param {string} target @@ -76,7 +87,12 @@ export class JinsMeme extends IonicNativePlugin { }) connect(target: string): Observable { return new Observable((observer: any) => { - let data = cordova.plugins.JinsMemePlugin.connect(target, observer.next.bind(observer), observer.complete.bind(observer), observer.error.bind(observer)); + let data = cordova.plugins.JinsMemePlugin.connect( + target, + observer.next.bind(observer), + observer.complete.bind(observer), + observer.error.bind(observer) + ); return () => console.log(data); }); } @@ -86,19 +102,25 @@ export class JinsMeme extends IonicNativePlugin { *@returns {Promise} */ @Cordova() - setAutoConnect(flag: boolean): Promise { return; } + setAutoConnect(flag: boolean): Promise { + return; + } /** * Returns whether a connection to JINS MEME has been established. *@returns {Promise} */ @Cordova() - isConnected(): Promise { return; } + isConnected(): Promise { + return; + } /** * Disconnects from JINS MEME. *@returns {Promise} */ @Cordova() - disconnect(): Promise { return; } + disconnect(): Promise { + return; + } /** * Starts receiving realtime data. * @returns {Observable} @@ -108,60 +130,80 @@ export class JinsMeme extends IonicNativePlugin { clearFunction: 'stopDataReport', clearWithArgs: true }) - startDataReport(): Observable { return; } + startDataReport(): Observable { + return; + } /** - * Stops receiving data. - *@returns {Promise} - */ + * Stops receiving data. + *@returns {Promise} + */ @Cordova() - stopDataReport(): Promise { return; } + stopDataReport(): Promise { + return; + } /** * Returns SDK version. * *@returns {Promise} */ @Cordova() - getSDKVersion(): Promise { return; } + getSDKVersion(): Promise { + return; + } /** * Returns JINS MEME connected with other apps. *@returns {Promise} */ @Cordova() - getConnectedByOthers(): Promise { return; } + getConnectedByOthers(): Promise { + return; + } /** * Returns calibration status *@returns {Promise} */ @Cordova() - isCalibrated(): Promise { return; } + isCalibrated(): Promise { + return; + } /** * Returns device type. *@returns {Promise} */ @Cordova() - getConnectedDeviceType(): Promise { return; } + getConnectedDeviceType(): Promise { + return; + } /** * Returns hardware version. *@returns {Promise} */ @Cordova() - getConnectedDeviceSubType(): Promise { return; } + getConnectedDeviceSubType(): Promise { + return; + } /** * Returns FW Version. *@returns {Promise} */ @Cordova() - getFWVersion(): Promise { return; } + getFWVersion(): Promise { + return; + } /** * Returns HW Version. *@returns {Promise} */ @Cordova() - getHWVersion(): Promise { return; } + getHWVersion(): Promise { + return; + } /** * Returns response about whether data was received or not. *@returns {Promise} */ @Cordova() - isDataReceiving(): Promise { return; } + isDataReceiving(): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/keyboard/index.ts b/src/@ionic-native/plugins/keyboard/index.ts index f79a25e9c..3d137eff8 100644 --- a/src/@ionic-native/plugins/keyboard/index.ts +++ b/src/@ionic-native/plugins/keyboard/index.ts @@ -1,8 +1,7 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; - /** * @name Keyboard * @description @@ -29,13 +28,12 @@ import { Observable } from 'rxjs/Observable'; }) @Injectable() export class Keyboard extends IonicNativePlugin { - /** * Hide the keyboard accessory bar with the next, previous and done buttons. * @param hide {boolean} */ @Cordova({ sync: true }) - hideKeyboardAccessoryBar(hide: boolean): void { } + hideKeyboardAccessoryBar(hide: boolean): void {} /** * Force keyboard to be shown. @@ -44,7 +42,7 @@ export class Keyboard extends IonicNativePlugin { sync: true, platforms: ['Android', 'BlackBerry 10', 'Windows'] }) - show(): void { } + show(): void {} /** * Close the keyboard if open. @@ -53,7 +51,7 @@ export class Keyboard extends IonicNativePlugin { sync: true, platforms: ['iOS', 'Android', 'BlackBerry 10', 'Windows'] }) - close(): void { } + close(): void {} /** * Prevents the native UIScrollView from moving when an input is focused. @@ -63,7 +61,7 @@ export class Keyboard extends IonicNativePlugin { sync: true, platforms: ['iOS', 'Windows'] }) - disableScroll(disable: boolean): void { } + disableScroll(disable: boolean): void {} /** * Creates an observable that notifies you when the keyboard is shown. Unsubscribe to observable to cancel event watch. @@ -74,7 +72,9 @@ export class Keyboard extends IonicNativePlugin { event: 'native.keyboardshow', platforms: ['iOS', 'Android', 'BlackBerry 10', 'Windows'] }) - onKeyboardShow(): Observable { return; } + onKeyboardShow(): Observable { + return; + } /** * Creates an observable that notifies you when the keyboard is hidden. Unsubscribe to observable to cancel event watch. @@ -85,6 +85,7 @@ export class Keyboard extends IonicNativePlugin { event: 'native.keyboardhide', platforms: ['iOS', 'Android', 'BlackBerry 10', 'Windows'] }) - onKeyboardHide(): Observable { return; } - + onKeyboardHide(): Observable { + return; + } } diff --git a/src/@ionic-native/plugins/keychain-touch-id/index.ts b/src/@ionic-native/plugins/keychain-touch-id/index.ts index 4f128469e..f31c49215 100644 --- a/src/@ionic-native/plugins/keychain-touch-id/index.ts +++ b/src/@ionic-native/plugins/keychain-touch-id/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name Keychain Touch Id @@ -32,7 +32,6 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; }) @Injectable() export class KeychainTouchId extends IonicNativePlugin { - /** * Check if Touch ID / Fingerprint is supported by the device * @return {Promise} Returns a promise that resolves when there is hardware support @@ -50,7 +49,9 @@ export class KeychainTouchId extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves when there is a result */ @Cordova() - save(key: string, password: string): Promise { return; } + save(key: string, password: string): Promise { + return; + } /** * Opens the fingerprint dialog, for the given key, showing an additional message. Promise will resolve @@ -60,7 +61,9 @@ export class KeychainTouchId extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves when the key value is successfully retrieved or an error */ @Cordova() - verify(key: string, message: string): Promise { return; } + verify(key: string, message: string): Promise { + return; + } /** * Checks if there is a password stored within the keychain for the given key. @@ -68,7 +71,9 @@ export class KeychainTouchId extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves with success if the key is available or failure if key is not. */ @Cordova() - has(key: string): Promise { return; } + has(key: string): Promise { + return; + } /** * Deletes the password stored under given key from the keychain. @@ -76,7 +81,9 @@ export class KeychainTouchId extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves with success if the key is deleted or failure if key is not */ @Cordova() - delete(key: string): Promise { return; } + delete(key: string): Promise { + return; + } /** * Sets the language of the fingerprint dialog @@ -84,5 +91,4 @@ export class KeychainTouchId extends IonicNativePlugin { */ @Cordova() setLocale(locale: string): void {} - } diff --git a/src/@ionic-native/plugins/keychain/index.ts b/src/@ionic-native/plugins/keychain/index.ts index 20381d70e..63bdd30e5 100644 --- a/src/@ionic-native/plugins/keychain/index.ts +++ b/src/@ionic-native/plugins/keychain/index.ts @@ -1,6 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; - +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name Keychain @@ -36,7 +35,6 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; }) @Injectable() export class Keychain extends IonicNativePlugin { - /** * Retrieves a value for a key * @@ -46,7 +44,9 @@ export class Keychain extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - get(key: string, touchIDMessage?: string): Promise { return; } + get(key: string, touchIDMessage?: string): Promise { + return; + } /** * Sets a value for a key @@ -58,7 +58,13 @@ export class Keychain extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - set(key: string, value: string | number | boolean, useTouchID?: boolean): Promise { return; } + set( + key: string, + value: string | number | boolean, + useTouchID?: boolean + ): Promise { + return; + } /** * Gets a JSON value for a key @@ -69,7 +75,9 @@ export class Keychain extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - getJson(key: string, touchIDMessage?: string): Promise { return; } + getJson(key: string, touchIDMessage?: string): Promise { + return; + } /** * Sets a JSON value for a key @@ -81,7 +89,9 @@ export class Keychain extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - setJson(key: string, obj: any, useTouchId?: boolean): Promise { return; } + setJson(key: string, obj: any, useTouchId?: boolean): Promise { + return; + } /** * Removes a value for a key @@ -91,6 +101,7 @@ export class Keychain extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - remove(key: string): Promise { return; } - + remove(key: string): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/launch-navigator/index.ts b/src/@ionic-native/plugins/launch-navigator/index.ts index 79140e26f..a7dc52275 100644 --- a/src/@ionic-native/plugins/launch-navigator/index.ts +++ b/src/@ionic-native/plugins/launch-navigator/index.ts @@ -1,8 +1,7 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface PromptsOptions { - /** * a function to pass the user's decision whether to remember their choice of app. * This will be passed a single boolean value indicating the user's decision. @@ -22,7 +21,6 @@ export interface PromptsOptions { */ bodyText?: string; - /** * text to display for the Yes button. * Defaults to "Yes" if not specified. @@ -37,7 +35,6 @@ export interface PromptsOptions { } export interface RememberChoiceOptions { - /** * whether to remember user choice of app for next time, instead of asking again for user choice. * `"prompt"` - Prompt user to decide whether to remember choice. @@ -49,7 +46,6 @@ export interface RememberChoiceOptions { */ enabled?: boolean | string; - /** * a function which asks the user whether to remember their choice of app. * If this is defined, then the default dialog prompt will not be shown, allowing for a custom UI for asking the user. @@ -103,7 +99,6 @@ export interface AppSelectionOptions { } export interface LaunchNavigatorOptions { - /** * A callback to invoke when the navigation app is successfully launched. */ @@ -172,7 +167,6 @@ export interface LaunchNavigatorOptions { */ launchModeAppleMaps?: string; - /** * If true, and input location type(s) doesn't match those required by the app, use geocoding to obtain the address/coords as required. Defaults to true. */ @@ -185,7 +179,6 @@ export interface LaunchNavigatorOptions { } export interface UserChoice { - /** * Indicates whether a user choice exists for a preferred navigator app. * @param callback - function to pass result to: will receive a boolean argument. @@ -223,13 +216,13 @@ export interface UserPrompted { * Sets flag indicating user has already been prompted whether to remember their choice a preferred navigator app. * @param callback - function to call once operation is complete. */ - set: ( callback: () => void) => void; + set: (callback: () => void) => void; /** * Clears flag which indicates if user has already been prompted whether to remember their choice a preferred navigator app. * @param callback - function to call once operation is complete. */ - clear: ( callback: () => void) => void; + clear: (callback: () => void) => void; } export interface AppSelection { @@ -281,7 +274,6 @@ export interface AppSelection { }) @Injectable() export class LaunchNavigator extends IonicNativePlugin { - APP: any = { USER_SELECT: 'user_select', APPLE_MAPS: 'apple_maps', @@ -316,7 +308,12 @@ export class LaunchNavigator extends IonicNativePlugin { successIndex: 2, errorIndex: 3 }) - navigate(destination: string | number[], options?: LaunchNavigatorOptions): Promise { return; } + navigate( + destination: string | number[], + options?: LaunchNavigatorOptions + ): Promise { + return; + } /** * Determines if the given app is installed and available on the current device. @@ -324,14 +321,18 @@ export class LaunchNavigator extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - isAppAvailable(app: string): Promise { return; } + isAppAvailable(app: string): Promise { + return; + } /** * Returns a list indicating which apps are installed and available on the current device. * @returns {Promise} */ @Cordova() - availableApps(): Promise { return; } + availableApps(): Promise { + return; + } /** * Returns the display name of the specified app. @@ -339,7 +340,9 @@ export class LaunchNavigator extends IonicNativePlugin { * @returns {string} */ @Cordova({ sync: true }) - getAppDisplayName(app: string): string { return; } + getAppDisplayName(app: string): string { + return; + } /** * Returns list of supported apps on a given platform. @@ -347,7 +350,9 @@ export class LaunchNavigator extends IonicNativePlugin { * @returns {string[]} */ @Cordova({ sync: true }) - getAppsForPlatform(platform: string): string[] { return; } + getAppsForPlatform(platform: string): string[] { + return; + } /** * Indicates if an app on a given platform supports specification of transport mode. @@ -356,7 +361,9 @@ export class LaunchNavigator extends IonicNativePlugin { * @returns {boolean} */ @Cordova({ sync: true }) - supportsTransportMode(app: string, platform: string): boolean { return; } + supportsTransportMode(app: string, platform: string): boolean { + return; + } /** * Returns the list of transport modes supported by an app on a given platform. @@ -365,7 +372,9 @@ export class LaunchNavigator extends IonicNativePlugin { * @returns {string[]} */ @Cordova({ sync: true }) - getTransportModes(app: string, platform: string): string[] { return; } + getTransportModes(app: string, platform: string): string[] { + return; + } /** * @param app {string} @@ -373,7 +382,9 @@ export class LaunchNavigator extends IonicNativePlugin { * @returns {boolean} */ @Cordova({ sync: true }) - supportsDestName(app: string, platform: string): boolean { return; } + supportsDestName(app: string, platform: string): boolean { + return; + } /** * Indicates if an app on a given platform supports specification of start location. @@ -382,7 +393,9 @@ export class LaunchNavigator extends IonicNativePlugin { * @returns {boolean} */ @Cordova({ sync: true }) - supportsStart(app: string, platform: string): boolean { return; } + supportsStart(app: string, platform: string): boolean { + return; + } /** * @param app {string} @@ -390,7 +403,9 @@ export class LaunchNavigator extends IonicNativePlugin { * @returns {boolean} */ @Cordova({ sync: true }) - supportsStartName(app: string, platform: string): boolean { return; } + supportsStartName(app: string, platform: string): boolean { + return; + } /** * Indicates if an app on a given platform supports specification of launch mode. @@ -400,14 +415,19 @@ export class LaunchNavigator extends IonicNativePlugin { * @returns {boolean} */ @Cordova({ sync: true }) - supportsLaunchMode(app: string, platform: string): boolean { return; } + supportsLaunchMode(app: string, platform: string): boolean { + return; + } /** * @param destination {string | number[]} * @param options {LaunchNavigatorOptions} */ @Cordova({ sync: true }) - userSelect(destination: string | number[], options: LaunchNavigatorOptions): void {} + userSelect( + destination: string | number[], + options: LaunchNavigatorOptions + ): void {} appSelection: AppSelection; } diff --git a/src/@ionic-native/plugins/launch-review/index.ts b/src/@ionic-native/plugins/launch-review/index.ts index 86c3c038a..38aad44f0 100644 --- a/src/@ionic-native/plugins/launch-review/index.ts +++ b/src/@ionic-native/plugins/launch-review/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name Launch Review @@ -35,7 +35,6 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; }) @Injectable() export class LaunchReview extends IonicNativePlugin { - /** * Launches App Store on current platform in order to leave a review for given app. * @param appId {string} - (optional) the platform-specific app ID to use to open the page in the store app. @@ -45,7 +44,9 @@ export class LaunchReview extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['Android', 'iOS'], callbackOrder: 'reverse' }) - launch(appId?: string): Promise { return; } + launch(appId?: string): Promise { + return; + } /** * Invokes the native in-app rating dialog which allows a user to rate your app without needing to open the App Store. @@ -57,7 +58,9 @@ export class LaunchReview extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['iOS'] }) - rating(): Promise { return; } + rating(): Promise { + return; + } /** * Indicates if the current platform/version supports in-app ratings dialog, i.e. calling LaunchReview.rating(). @@ -65,6 +68,7 @@ export class LaunchReview extends IonicNativePlugin { * @returns {boolean} */ @Cordova({ platforms: ['Android', 'iOS'], sync: true }) - isRatingSupported(): boolean { return; } - + isRatingSupported(): boolean { + return; + } } diff --git a/src/@ionic-native/plugins/linkedin/index.ts b/src/@ionic-native/plugins/linkedin/index.ts index f93b42497..fd263ebed 100644 --- a/src/@ionic-native/plugins/linkedin/index.ts +++ b/src/@ionic-native/plugins/linkedin/index.ts @@ -1,7 +1,11 @@ -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; -export type LinkedInLoginScopes = 'r_basicprofile' | 'r_emailaddress' | 'rw_company_admin' | 'w_share'; +export type LinkedInLoginScopes = + | 'r_basicprofile' + | 'r_emailaddress' + | 'rw_company_admin' + | 'w_share'; /** * @name LinkedIn @@ -53,13 +57,13 @@ export type LinkedInLoginScopes = 'r_basicprofile' | 'r_emailaddress' | 'rw_comp plugin: 'cordova-plugin-linkedin', pluginRef: 'cordova.plugins.LinkedIn', repo: 'https://github.com/zyra/cordova-plugin-linkedin', - install: 'ionic cordova plugin add cordova-plugin-linkedin --variable APP_ID=YOUR_APP_ID', + install: + 'ionic cordova plugin add cordova-plugin-linkedin --variable APP_ID=YOUR_APP_ID', installVariables: ['APP_ID'], platforms: ['Android', 'iOS'] }) @Injectable() export class LinkedIn extends IonicNativePlugin { - /** * Login with the LinkedIn App * @param scopes {string[]} Scopes to authorize @@ -67,13 +71,15 @@ export class LinkedIn extends IonicNativePlugin { * @return {Promise} */ @Cordova() - login(scopes: LinkedInLoginScopes[], promptToInstall: boolean): Promise { return; } + login(scopes: LinkedInLoginScopes[], promptToInstall: boolean): Promise { + return; + } /** * Clears the current session */ @Cordova({ sync: true }) - logout(): void { } + logout(): void {} /** * Make a get request @@ -81,7 +87,9 @@ export class LinkedIn extends IonicNativePlugin { * @return {Promise} */ @Cordova() - getRequest(path: string): Promise { return; } + getRequest(path: string): Promise { + return; + } /** * Make a post request @@ -90,7 +98,9 @@ export class LinkedIn extends IonicNativePlugin { * @return {Promise} */ @Cordova() - postRequest(path: string, body: any): Promise { return; } + postRequest(path: string, body: any): Promise { + return; + } /** * Opens a member's profile @@ -98,20 +108,25 @@ export class LinkedIn extends IonicNativePlugin { * @return {Promise} */ @Cordova() - openProfile(memberId: string): Promise { return; } + openProfile(memberId: string): Promise { + return; + } /** * Checks if there is already an existing active session. This should be used to avoid unnecessary login. * @return {Promise} returns a promise that resolves with a boolean that indicates whether there is an active session */ @Cordova() - hasActiveSession(): Promise { return; } + hasActiveSession(): Promise { + return; + } /** * Checks if there is an active session and returns the access token if it exists. * @return {Promise} returns a promise that resolves with an object that contains an access token if there is an active session */ @Cordova() - getActiveSession(): Promise { return; } - + getActiveSession(): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/local-notifications/index.ts b/src/@ionic-native/plugins/local-notifications/index.ts index 74dd1e6bf..09f167a62 100644 --- a/src/@ionic-native/plugins/local-notifications/index.ts +++ b/src/@ionic-native/plugins/local-notifications/index.ts @@ -1,8 +1,7 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } 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 @@ -67,13 +66,12 @@ 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: @@ -91,8 +89,8 @@ export interface ILocalNotification { led?: string; /** - * Notification priority. - */ + * Notification priority. + */ priority?: number; } @@ -154,7 +152,6 @@ export interface ILocalNotification { }) @Injectable() export class LocalNotifications extends IonicNativePlugin { - /** * Schedules a single or multiple notifications * @param options {Notification | Array} optional @@ -162,7 +159,7 @@ export class LocalNotifications extends IonicNativePlugin { @Cordova({ sync: true }) - schedule(options?: ILocalNotification | Array): void { } + schedule(options?: ILocalNotification | Array): void {} /** * Updates a previously scheduled notification. Must include the id in the options parameter. @@ -171,7 +168,7 @@ export class LocalNotifications extends IonicNativePlugin { @Cordova({ sync: true }) - update(options?: ILocalNotification): void { } + update(options?: ILocalNotification): void {} /** * Clears single or multiple notifications @@ -179,7 +176,9 @@ export class LocalNotifications extends IonicNativePlugin { * @returns {Promise} Returns a promise when the notification had been cleared */ @Cordova() - clear(notificationId: any): Promise { return; } + clear(notificationId: any): Promise { + return; + } /** * Clears all notifications @@ -189,7 +188,9 @@ export class LocalNotifications extends IonicNativePlugin { successIndex: 0, errorIndex: 2 }) - clearAll(): Promise { return; } + clearAll(): Promise { + return; + } /** * Cancels single or multiple notifications @@ -197,7 +198,9 @@ export class LocalNotifications extends IonicNativePlugin { * @returns {Promise} Returns a promise when the notification is canceled */ @Cordova() - cancel(notificationId: any): Promise { return; } + cancel(notificationId: any): Promise { + return; + } /** * Cancels all notifications @@ -207,7 +210,9 @@ export class LocalNotifications extends IonicNativePlugin { successIndex: 0, errorIndex: 2 }) - cancelAll(): Promise { return; } + cancelAll(): Promise { + return; + } /** * Checks presence of a notification @@ -215,7 +220,9 @@ export class LocalNotifications extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - isPresent(notificationId: number): Promise { return; } + isPresent(notificationId: number): Promise { + return; + } /** * Checks is a notification is scheduled @@ -223,7 +230,9 @@ export class LocalNotifications extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - isScheduled(notificationId: number): Promise { return; } + isScheduled(notificationId: number): Promise { + return; + } /** * Checks if a notification is triggered @@ -231,28 +240,36 @@ export class LocalNotifications extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - isTriggered(notificationId: number): Promise { return; } + isTriggered(notificationId: number): Promise { + return; + } /** * Get all the notification ids * @returns {Promise>} */ @Cordova() - getAllIds(): Promise> { return; } + getAllIds(): Promise> { + return; + } /** * Get the ids of triggered notifications * @returns {Promise>} */ @Cordova() - getTriggeredIds(): Promise> { return; } + getTriggeredIds(): Promise> { + return; + } /** * Get the ids of scheduled notifications * @returns {Promise>} Returns a promise */ @Cordova() - getScheduledIds(): Promise> { return; } + getScheduledIds(): Promise> { + return; + } /** * Get a notification object @@ -260,7 +277,9 @@ export class LocalNotifications extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - get(notificationId: any): Promise { return; } + get(notificationId: any): Promise { + return; + } /** * Get a scheduled notification object @@ -268,7 +287,9 @@ export class LocalNotifications extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - getScheduled(notificationId: any): Promise { return; } + getScheduled(notificationId: any): Promise { + return; + } /** * Get a triggered notification object @@ -276,43 +297,54 @@ export class LocalNotifications extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - getTriggered(notificationId: any): Promise { return; } + getTriggered(notificationId: any): Promise { + return; + } /** * Get all notification objects * @returns {Promise>} */ @Cordova() - getAll(): Promise> { return; } + getAll(): Promise> { + return; + } /** * Get all scheduled notification objects * @returns {Promise>} */ @Cordova() - getAllScheduled(): Promise> { return; } + getAllScheduled(): Promise> { + return; + } /** * Get all triggered notification objects * @returns {Promise>} */ @Cordova() - getAllTriggered(): Promise> { return; } + getAllTriggered(): Promise> { + return; + } /** * Request permission to show notifications if not already granted. * @returns {Promise} */ @Cordova() - requestPermission(): Promise { return; } + requestPermission(): Promise { + return; + } /** * Informs if the app has the permission to show notifications. * @returns {Promise} */ @Cordova() - hasPermission(): Promise { return; } - + hasPermission(): Promise { + return; + } /** * Sets a callback for a specific event @@ -322,7 +354,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 @@ -332,7 +364,5 @@ export class LocalNotifications extends IonicNativePlugin { @Cordova({ sync: true }) - un(eventName: string, callback: any): void { } - - + un(eventName: string, callback: any): void {} } diff --git a/src/@ionic-native/plugins/location-accuracy/index.ts b/src/@ionic-native/plugins/location-accuracy/index.ts index be74531ae..77e14f26a 100644 --- a/src/@ionic-native/plugins/location-accuracy/index.ts +++ b/src/@ionic-native/plugins/location-accuracy/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name Location Accuracy @@ -42,14 +42,18 @@ export class LocationAccuracy extends IonicNativePlugin { * @returns {Promise} Returns a promise that resovles with a boolean that indicates if you can request accurate location */ @Cordova() - canRequest(): Promise { return; } + canRequest(): Promise { + return; + } /** * Indicates if a request is currently in progress * @returns {Promise} Returns a promise that resolves with a boolean that indicates if a request is currently in progress */ @Cordova() - isRequesting(): Promise { return; } + isRequesting(): Promise { + return; + } /** * Requests accurate location @@ -57,7 +61,9 @@ export class LocationAccuracy extends IonicNativePlugin { * @returns {Promise} Returns a promise that resolves on success and rejects if an error occurred */ @Cordova({ callbackOrder: 'reverse' }) - request(accuracy: number): Promise { return; } + request(accuracy: number): Promise { + return; + } /** * Convenience constant @@ -136,5 +142,4 @@ export class LocationAccuracy extends IonicNativePlugin { * @type {number} */ ERROR_GOOGLE_API_CONNECTION_FAILED = 4; - } diff --git a/src/@ionic-native/plugins/market/index.ts b/src/@ionic-native/plugins/market/index.ts index 77718246b..801c1fdeb 100644 --- a/src/@ionic-native/plugins/market/index.ts +++ b/src/@ionic-native/plugins/market/index.ts @@ -1,5 +1,6 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; + /** * @name Market * @description @@ -26,7 +27,6 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; }) @Injectable() export class Market extends IonicNativePlugin { - /** * Opens an app in Google Play / App Store * @param appId {string} Package name @@ -37,7 +37,9 @@ export class Market extends IonicNativePlugin { successName: 'success', errorName: 'failure' }) - open(appId: string): Promise { return; } + open(appId: string): Promise { + return; + } /** * Search apps by keyword @@ -50,6 +52,7 @@ export class Market extends IonicNativePlugin { errorName: 'failure', platforms: ['Android'] }) - search(keyword: string): Promise { return; } - + search(keyword: string): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/media-capture/index.ts b/src/@ionic-native/plugins/media-capture/index.ts index f1c5c0d19..489766935 100644 --- a/src/@ionic-native/plugins/media-capture/index.ts +++ b/src/@ionic-native/plugins/media-capture/index.ts @@ -1,5 +1,10 @@ import { Injectable } from '@angular/core'; -import { Cordova, CordovaProperty, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { + Cordova, + CordovaProperty, + IonicNativePlugin, + Plugin +} from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; declare const navigator: any; @@ -33,7 +38,10 @@ export interface MediaFile { * @param {Function} successCallback * @param {Function} errorCallback */ - getFormatData(successCallback: (data: MediaFileData) => any, errorCallback?: (err: any) => any): void; + getFormatData( + successCallback: (data: MediaFileData) => any, + errorCallback?: (err: any) => any + ): void; } export interface MediaFileData { @@ -101,7 +109,7 @@ export interface ConfigurationData { /** * The ASCII-encoded lowercase string representing the media type. */ - type: string; + type: string; /** * The height of the image or video in pixels. The value is zero for sound clips. */ @@ -155,22 +163,19 @@ export class MediaCapture extends IonicNativePlugin { * The recording image sizes and formats supported by the device. * @returns {ConfigurationData[]} */ - @CordovaProperty - supportedImageModes: ConfigurationData[]; + @CordovaProperty supportedImageModes: ConfigurationData[]; /** * The audio recording formats supported by the device. * @returns {ConfigurationData[]} */ - @CordovaProperty - supportedAudioModes: ConfigurationData[]; + @CordovaProperty supportedAudioModes: ConfigurationData[]; /** * The recording video resolutions and formats supported by the device. * @returns {ConfigurationData[]} */ - @CordovaProperty - supportedVideoModes: ConfigurationData[]; + @CordovaProperty supportedVideoModes: ConfigurationData[]; /** * Start the audio recorder application and return information about captured audio clip files. @@ -180,7 +185,9 @@ export class MediaCapture extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - captureAudio(options?: CaptureAudioOptions): Promise { + captureAudio( + options?: CaptureAudioOptions + ): Promise { return; } @@ -192,7 +199,9 @@ export class MediaCapture extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - captureImage(options?: CaptureImageOptions): Promise { + captureImage( + options?: CaptureImageOptions + ): Promise { return; } @@ -204,7 +213,9 @@ export class MediaCapture extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - captureVideo(options?: CaptureVideoOptions): Promise { + captureVideo( + options?: CaptureVideoOptions + ): Promise { return; } @@ -231,5 +242,4 @@ export class MediaCapture extends IonicNativePlugin { onPendingCaptureError(): Observable { return; } - } diff --git a/src/@ionic-native/plugins/media/index.ts b/src/@ionic-native/plugins/media/index.ts index d0036b17e..e27ef4763 100644 --- a/src/@ionic-native/plugins/media/index.ts +++ b/src/@ionic-native/plugins/media/index.ts @@ -1,5 +1,11 @@ import { Injectable } from '@angular/core'; -import { CordovaInstance, Plugin, checkAvailability, IonicNativePlugin, InstanceProperty } from '@ionic-native/core'; +import { + checkAvailability, + CordovaInstance, + InstanceProperty, + IonicNativePlugin, + Plugin +} from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; import { Observer } from 'rxjs/Observer'; @@ -7,7 +13,6 @@ import { Observer } from 'rxjs/Observer'; * @hidden */ export class MediaObject { - /** * An observable that notifies you on actions success */ @@ -26,36 +31,37 @@ export class MediaObject { /** * @hidden */ - @InstanceProperty - successCallback: Function; + @InstanceProperty successCallback: Function; /** * @hidden */ - @InstanceProperty - errorCallback: Function; + @InstanceProperty errorCallback: Function; /** * @hidden */ - @InstanceProperty - statusCallback: Function; + @InstanceProperty statusCallback: Function; constructor(private _objectInstance: any) { this.onSuccess = new Observable((observer: Observer) => { this.successCallback = observer.next.bind(observer); - return () => this.successCallback = () => {}; + return () => (this.successCallback = () => {}); }); - this.onError = new Observable((observer: Observer) => { - this.errorCallback = observer.next.bind(observer); - return () => this.errorCallback = () => {}; - }); + this.onError = new Observable( + (observer: Observer) => { + this.errorCallback = observer.next.bind(observer); + return () => (this.errorCallback = () => {}); + } + ); - this.onStatusUpdate = new Observable((observer: Observer) => { - this.statusCallback = observer.next.bind(observer); - return () => this.statusCallback = () => {}; - }); + this.onStatusUpdate = new Observable( + (observer: Observer) => { + this.statusCallback = observer.next.bind(observer); + return () => (this.statusCallback = () => {}); + } + ); } /** @@ -63,56 +69,62 @@ export class MediaObject { * @returns {Promise} Returns a promise with the amplitude of the current recording */ @CordovaInstance() - getCurrentAmplitude(): Promise { return; } + getCurrentAmplitude(): Promise { + return; + } /** * Get the current position within an audio file. Also updates the Media object's position parameter. * @returns {Promise} Returns a promise with the position of the current recording */ @CordovaInstance() - getCurrentPosition(): Promise { return; } + getCurrentPosition(): Promise { + return; + } /** * Get the duration of an audio file in seconds. If the duration is unknown, it returns a value of -1. * @returns {number} Returns a promise with the duration of the current recording */ @CordovaInstance({ sync: true }) - getDuration(): number { return; } + getDuration(): number { + return; + } /** * Starts or resumes playing an audio file. */ @CordovaInstance({ sync: true }) play(iosOptions?: { - numberOfLoops?: number, - playAudioWhenScreenIsLocked?: boolean - }): void { } + numberOfLoops?: number; + playAudioWhenScreenIsLocked?: boolean; + }): void {} /** * Pauses playing an audio file. */ @CordovaInstance({ sync: true }) - pause(): void { } + pause(): void {} /** * Releases the underlying operating system's audio resources. This is particularly important for Android, since there are a finite amount of OpenCore instances for media playback. Applications should call the release function for any Media resource that is no longer needed. */ @CordovaInstance({ sync: true }) - release(): void { } + release(): void {} /** * Sets the current position within an audio file. * @param {number} milliseconds The time position you want to set for the current audio file */ @CordovaInstance({ sync: true }) - seekTo(milliseconds: number): void { } + seekTo(milliseconds: number): void {} /** * Set the volume for an audio file. * @param volume {number} The volume to set for playback. The value must be within the range of 0.0 to 1.0. */ @CordovaInstance({ sync: true }) - setVolume(volume: number): void { } + setVolume(volume: number): void {} @CordovaInstance({ sync: true }) setRate(speedRate: number): void {} @@ -121,38 +133,36 @@ export class MediaObject { * Starts recording an audio file. */ @CordovaInstance({ sync: true }) - startRecord(): void { } + startRecord(): void {} /** * Stops recording */ @CordovaInstance({ sync: true }) - stopRecord(): void { } + stopRecord(): void {} /** * Pauses recording */ @CordovaInstance({ sync: true }) - pauseRecord(): void { } + pauseRecord(): void {} /** * Resumes recording */ @CordovaInstance({ sync: true }) - resumeRecord(): void { } + resumeRecord(): void {} /** * Stops playing an audio file. */ @CordovaInstance({ sync: true }) - stop(): void { } - + stop(): void {} } export type MediaStatusUpdateCallback = (statusCode: number) => void; export interface MediaError { - /** * Error message */ @@ -162,7 +172,6 @@ export interface MediaError { * Error code */ code: number; - } export enum MEDIA_STATUS { @@ -288,7 +297,6 @@ export type MediaErrorCallback = (error: MediaError) => void; }) @Injectable() export class Media extends IonicNativePlugin { - // Constants /** * @hidden @@ -337,12 +345,14 @@ export class Media extends IonicNativePlugin { create(src: string): MediaObject { let instance: any; - if (checkAvailability(Media.getPluginRef(), null, Media.getPluginName()) === true) { + if ( + checkAvailability(Media.getPluginRef(), null, Media.getPluginName()) === + true + ) { // Creates a new media object instance = new (Media.getPlugin())(src); } return new MediaObject(instance); } - } diff --git a/src/@ionic-native/plugins/mixpanel/index.ts b/src/@ionic-native/plugins/mixpanel/index.ts index debf12a63..022619cb3 100644 --- a/src/@ionic-native/plugins/mixpanel/index.ts +++ b/src/@ionic-native/plugins/mixpanel/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; declare var mixpanel: any; @@ -33,7 +33,6 @@ declare var mixpanel: any; }) @Injectable() export class Mixpanel extends IonicNativePlugin { - /** * * @param aliasId {string} @@ -41,20 +40,26 @@ export class Mixpanel extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - alias(aliasId: string, originalId: string): Promise { return; } + alias(aliasId: string, originalId: string): Promise { + return; + } /** * * @returns {Promise} */ @Cordova() - distinctId(): Promise { return; } + distinctId(): Promise { + return; + } /** * @returns {Promise} */ @Cordova() - flush(): Promise { return; } + flush(): Promise { + return; + } /** * @@ -62,7 +67,9 @@ export class Mixpanel extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - identify(distinctId: string): Promise { return; } + identify(distinctId: string): Promise { + return; + } /** * @@ -70,7 +77,9 @@ export class Mixpanel extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - init(token: string): Promise { return; } + init(token: string): Promise { + return; + } /** * @@ -78,14 +87,18 @@ export class Mixpanel extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - registerSuperProperties(superProperties: any): Promise { return; } + registerSuperProperties(superProperties: any): Promise { + return; + } /** * * @returns {Promise} */ @Cordova() - reset(): Promise { return; } + reset(): Promise { + return; + } /** * @@ -93,7 +106,9 @@ export class Mixpanel extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - timeEvent(eventName: string): Promise { return; } + timeEvent(eventName: string): Promise { + return; + } /** * @@ -105,8 +120,9 @@ export class Mixpanel extends IonicNativePlugin { successIndex: 2, errorIndex: 3 }) - track(eventName: string, eventProperties?: any): Promise { return; } - + track(eventName: string, eventProperties?: any): Promise { + return; + } } /** * @hidden @@ -118,14 +134,15 @@ export class Mixpanel extends IonicNativePlugin { }) @Injectable() export class MixpanelPeople extends IonicNativePlugin { - /** * * @param distinctId {string} * @return {Promise} */ @Cordova() - identify(distinctId: string): Promise { return; } + identify(distinctId: string): Promise { + return; + } /** * @@ -133,7 +150,9 @@ export class MixpanelPeople extends IonicNativePlugin { * @return {Promise} */ @Cordova() - increment(peopleProperties: any): Promise { return; } + increment(peopleProperties: any): Promise { + return; + } /** * @@ -141,7 +160,9 @@ export class MixpanelPeople extends IonicNativePlugin { * @return {Promise} */ @Cordova() - setPushId(pushId: string): Promise { return; } + setPushId(pushId: string): Promise { + return; + } /** * @@ -149,7 +170,9 @@ export class MixpanelPeople extends IonicNativePlugin { * @return {Promise} */ @Cordova() - set(peopleProperties: any): Promise { return; } + set(peopleProperties: any): Promise { + return; + } /** * @@ -157,6 +180,7 @@ export class MixpanelPeople extends IonicNativePlugin { * @return {Promise} */ @Cordova() - setOnce(peopleProperties: any): Promise { return; } - + setOnce(peopleProperties: any): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/mobile-accessibility/index.ts b/src/@ionic-native/plugins/mobile-accessibility/index.ts index f7348b7f0..e6498ea3b 100644 --- a/src/@ionic-native/plugins/mobile-accessibility/index.ts +++ b/src/@ionic-native/plugins/mobile-accessibility/index.ts @@ -1,5 +1,5 @@ -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name Mobile Accessibility @@ -29,26 +29,25 @@ import { Injectable } from '@angular/core'; }) @Injectable() export class MobileAccessibility extends IonicNativePlugin { - MobileAccessibilityNotifications: { - ANNOUNCEMENT: 'ANNOUNCEMENT', - BOLD_TEXT_STATUS_CHANGED: 'BOLD_TEXT_STATUS_CHANGED', - CLOSED_CAPTIONING_STATUS_CHANGED: 'CLOSED_CAPTIONING_STATUS_CHANGED', - DARKER_SYSTEM_COLORS_STATUS_CHANGED: 'DARKER_SYSTEM_COLORS_STATUS_CHANGED', - GRAYSCALE_STATUS_CHANGED: 'GRAYSCALE_STATUS_CHANGED', - GUIDED_ACCESS_STATUS_CHANGED: 'GUIDED_ACCESS_STATUS_CHANGED', - INVERT_COLORS_STATUS_CHANGED: 'INVERT_COLORS_STATUS_CHANGED', - LAYOUT_CHANGED: 'LAYOUT_CHANGED', - MONO_AUDIO_STATUS_CHANGED: 'MONO_AUDIO_STATUS_CHANGED', - PAGE_SCROLLED: 'PAGE_SCROLLED', - REDUCE_MOTION_STATUS_CHANGED: 'REDUCE_MOTION_STATUS_CHANGED', - REDUCE_TRANSPARENCY_STATUS_CHANGED: 'REDUCE_TRANSPARENCY_STATUS_CHANGED', - SCREEN_CHANGED: 'SCREEN_CHANGED', - SCREEN_READER_STATUS_CHANGED: 'SCREEN_READER_STATUS_CHANGED', - SPEAK_SCREEN_STATUS_CHANGED: 'SPEAK_SCREEN_STATUS_CHANGED', - SPEAK_SELECTION_STATUS_CHANGED: 'SPEAK_SELECTION_STATUS_CHANGED', - SWITCH_CONTROL_STATUS_CHANGED: 'SWITCH_CONTROL_STATUS_CHANGED', - TOUCH_EXPLORATION_STATUS_CHANGED: 'TOUCH_EXPLORATION_STATUS_CHANGED' + ANNOUNCEMENT: 'ANNOUNCEMENT'; + BOLD_TEXT_STATUS_CHANGED: 'BOLD_TEXT_STATUS_CHANGED'; + CLOSED_CAPTIONING_STATUS_CHANGED: 'CLOSED_CAPTIONING_STATUS_CHANGED'; + DARKER_SYSTEM_COLORS_STATUS_CHANGED: 'DARKER_SYSTEM_COLORS_STATUS_CHANGED'; + GRAYSCALE_STATUS_CHANGED: 'GRAYSCALE_STATUS_CHANGED'; + GUIDED_ACCESS_STATUS_CHANGED: 'GUIDED_ACCESS_STATUS_CHANGED'; + INVERT_COLORS_STATUS_CHANGED: 'INVERT_COLORS_STATUS_CHANGED'; + LAYOUT_CHANGED: 'LAYOUT_CHANGED'; + MONO_AUDIO_STATUS_CHANGED: 'MONO_AUDIO_STATUS_CHANGED'; + PAGE_SCROLLED: 'PAGE_SCROLLED'; + REDUCE_MOTION_STATUS_CHANGED: 'REDUCE_MOTION_STATUS_CHANGED'; + REDUCE_TRANSPARENCY_STATUS_CHANGED: 'REDUCE_TRANSPARENCY_STATUS_CHANGED'; + SCREEN_CHANGED: 'SCREEN_CHANGED'; + SCREEN_READER_STATUS_CHANGED: 'SCREEN_READER_STATUS_CHANGED'; + SPEAK_SCREEN_STATUS_CHANGED: 'SPEAK_SCREEN_STATUS_CHANGED'; + SPEAK_SELECTION_STATUS_CHANGED: 'SPEAK_SELECTION_STATUS_CHANGED'; + SWITCH_CONTROL_STATUS_CHANGED: 'SWITCH_CONTROL_STATUS_CHANGED'; + TOUCH_EXPLORATION_STATUS_CHANGED: 'TOUCH_EXPLORATION_STATUS_CHANGED'; }; /** @@ -56,21 +55,27 @@ export class MobileAccessibility extends IonicNativePlugin { * @returns {Promise} A result method to receive the boolean result asynchronously from the native MobileAccessibility plugin. */ @Cordova() - isScreenReaderRunning(): Promise { return; } + isScreenReaderRunning(): Promise { + return; + } /** * An iOS-specific proxy for the MobileAccessibility.isScreenReaderRunning method * @returns {Promise} A result method to receive the boolean result asynchronously from the native MobileAccessibility plugin. */ @Cordova({ platforms: ['iOS'] }) - isVoiceOverRunning(): Promise { return; } + isVoiceOverRunning(): Promise { + return; + } /** * An Android/Amazon Fire OS-specific proxy for the MobileAccessibility.isScreenReaderRunning method. * @returns {Promise} A result method to receive the boolean result asynchronously from the native MobileAccessibility plugin. */ @Cordova({ platforms: ['Amazon Fire OS', 'Android'] }) - isTalkBackRunning(): Promise { return; } + isTalkBackRunning(): Promise { + return; + } /** * On Android, this method returns true if ChromeVox is active and properly initialized with access to the text to speech API in the WebView. @@ -78,124 +83,154 @@ export class MobileAccessibility extends IonicNativePlugin { * @returns {Promise} Returns the result */ @Cordova({ platforms: ['Amazon Fire OS', 'Android'] }) - isChromeVoxActive(): Promise { return; } + isChromeVoxActive(): Promise { + return; + } /** * * @returns {Promise} Returns the result */ @Cordova({ platforms: ['iOS'] }) - isBoldTextEnabled(): Promise { return; } + isBoldTextEnabled(): Promise { + return; + } /** * * @returns {Promise} Returns the result */ @Cordova() - isClosedCaptioningEnabled(): Promise { return; } + isClosedCaptioningEnabled(): Promise { + return; + } /** * * @returns {Promise} Returns the result */ @Cordova({ platforms: ['iOS'] }) - isDarkerSystemColorsEnabled(): Promise { return; } + isDarkerSystemColorsEnabled(): Promise { + return; + } /** * * @returns {Promise} Returns the result */ @Cordova({ platforms: ['iOS'] }) - isGrayscaleEnabled(): Promise { return; } + isGrayscaleEnabled(): Promise { + return; + } /** * * @returns {Promise} Returns the result */ @Cordova({ platforms: ['iOS'] }) - isGuidedAccessEnabled(): Promise { return; } + isGuidedAccessEnabled(): Promise { + return; + } /** * * @returns {Promise} Returns the result */ @Cordova({ platforms: ['iOS'] }) - isInvertColorsEnabled(): Promise { return; } + isInvertColorsEnabled(): Promise { + return; + } /** * * @returns {Promise} Returns the result */ @Cordova({ platforms: ['iOS'] }) - isMonoAudioEnabled(): Promise { return; } + isMonoAudioEnabled(): Promise { + return; + } /** * * @returns {Promise} Returns the result */ @Cordova({ platforms: ['iOS'] }) - isReduceMotionEnabled(): Promise { return; } + isReduceMotionEnabled(): Promise { + return; + } /** * * @returns {Promise} Returns the result */ @Cordova({ platforms: ['iOS'] }) - isReduceTransparencyEnabled(): Promise { return; } + isReduceTransparencyEnabled(): Promise { + return; + } /** * * @returns {Promise} Returns the result */ @Cordova({ platforms: ['iOS'] }) - isSpeakScreenEnabled(): Promise { return; } + isSpeakScreenEnabled(): Promise { + return; + } /** * * @returns {Promise} Returns the result */ @Cordova({ platforms: ['iOS'] }) - isSpeakSelectionEnabled(): Promise { return; } + isSpeakSelectionEnabled(): Promise { + return; + } /** * * @returns {Promise} Returns the result */ @Cordova({ platforms: ['iOS'] }) - isSwitchControlRunning(): Promise { return; } + isSwitchControlRunning(): Promise { + return; + } /** * * @returns {Promise} Returns the result */ @Cordova({ platforms: ['Amazon Fire OS', 'Android'] }) - isTouchExplorationEnabled(): Promise { return; } + isTouchExplorationEnabled(): Promise { + return; + } /** * * * @returns {Promise} Returns the result */ @Cordova() - getTextZoom(): Promise { return; } + getTextZoom(): Promise { + return; + } /** * @param textZoom {number} A percentage value by which text in the WebView should be scaled. */ @Cordova({ sync: true }) - setTextZoom(textZoom: number): void { } + setTextZoom(textZoom: number): void {} /** * */ @Cordova({ sync: true }) - updateTextZoom(): void { } + updateTextZoom(): void {} /** * A Boolean value which specifies whether to use the preferred text zoom of a default percent value of 100. * @param value {boolean} Returns the result */ @Cordova({ sync: true }) - usePreferredTextZoom(value: boolean): void { } + usePreferredTextZoom(value: boolean): void {} /** * Posts a notification with a string for the screen reader to announce if it is running. @@ -204,7 +239,12 @@ export class MobileAccessibility extends IonicNativePlugin { * @returns {Promise} Returns the result */ @Cordova({ platforms: ['iOS'] }) - postNotification(mobileAccessibilityNotification: any, value: string): Promise { return; } + postNotification( + mobileAccessibilityNotification: any, + value: string + ): Promise { + return; + } /** * Speaks a given string through the screenreader. On Android, if ChromeVox is active, it will use the specified queueMode and properties. @@ -213,12 +253,11 @@ export class MobileAccessibility extends IonicNativePlugin { * @param properties {any} */ @Cordova({ sync: true }) - speak(value: string, queueMode?: number, properties?: any): void { } + speak(value: string, queueMode?: number, properties?: any): void {} /** * Stops speech. */ @Cordova({ sync: true }) - stop(): void { } - + stop(): void {} } diff --git a/src/@ionic-native/plugins/ms-adal/index.ts b/src/@ionic-native/plugins/ms-adal/index.ts index ab0e55d88..cd656ffde 100644 --- a/src/@ionic-native/plugins/ms-adal/index.ts +++ b/src/@ionic-native/plugins/ms-adal/index.ts @@ -1,8 +1,13 @@ -import { Plugin, IonicNativePlugin, checkAvailability, InstanceProperty, CordovaInstance } from '@ionic-native/core'; import { Injectable } from '@angular/core'; +import { + checkAvailability, + CordovaInstance, + InstanceProperty, + IonicNativePlugin, + Plugin +} from '@ionic-native/core'; export interface AuthenticationResult { - accessToken: string; accesSTokenType: string; expiresOn: Date; @@ -18,7 +23,6 @@ export interface AuthenticationResult { * @returns {String} The authorization header. */ createAuthorizationHeader(): string; - } export interface TokenCache { @@ -50,7 +54,6 @@ export interface UserInfo { uniqueId: string; } - /** * @name MS ADAL * @description @@ -96,30 +99,30 @@ export interface UserInfo { }) @Injectable() export class MSAdal extends IonicNativePlugin { - - createAuthenticationContext(authority: string, validateAuthority: boolean = true) { + createAuthenticationContext( + authority: string, + validateAuthority: boolean = true + ) { let authContext: any; - if (checkAvailability(MSAdal.getPluginRef(), null, MSAdal.getPluginName()) === true) { + if ( + checkAvailability(MSAdal.getPluginRef(), null, MSAdal.getPluginName()) === + true + ) { authContext = new (MSAdal.getPlugin()).AuthenticationContext(authority); } return new AuthenticationContext(authContext); } - } /** * @hidden */ export class AuthenticationContext { + @InstanceProperty authority: string; - @InstanceProperty - authority: string; + @InstanceProperty validateAuthority: boolean; - @InstanceProperty - validateAuthority: boolean; - - @InstanceProperty - tokenCache: any; + @InstanceProperty tokenCache: any; constructor(private _objectInstance: any) {} @@ -138,7 +141,15 @@ export class AuthenticationContext { @CordovaInstance({ otherPromise: true }) - acquireTokenAsync(resourceUrl: string, clientId: string, redirectUrl: string, userId?: string, extraQueryParameters?: any): Promise { return; } + acquireTokenAsync( + resourceUrl: string, + clientId: string, + redirectUrl: string, + userId?: string, + extraQueryParameters?: any + ): Promise { + return; + } /** * Acquires token WITHOUT using interactive flow. It checks the cache to return existing result @@ -153,6 +164,11 @@ export class AuthenticationContext { @CordovaInstance({ otherPromise: true }) - acquireTokenSilentAsync(resourceUrl: string, clientId: string, userId?: string): Promise { return; } - + acquireTokenSilentAsync( + resourceUrl: string, + clientId: string, + userId?: string + ): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/music-controls/index.ts b/src/@ionic-native/plugins/music-controls/index.ts index 383b45d8b..7dbb83b56 100644 --- a/src/@ionic-native/plugins/music-controls/index.ts +++ b/src/@ionic-native/plugins/music-controls/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export interface MusicControlsOptions { @@ -140,21 +140,24 @@ export interface MusicControlsOptions { }) @Injectable() export class MusicControls extends IonicNativePlugin { - /** * Create the media controls * @param options {MusicControlsOptions} * @returns {Promise} */ @Cordova() - create(options: MusicControlsOptions): Promise { return; } + create(options: MusicControlsOptions): Promise { + return; + } /** * Destroy the media controller * @returns {Promise} */ @Cordova() - destroy(): Promise { return; } + destroy(): Promise { + return; + } /** * Subscribe to the events of the media controller @@ -163,34 +166,36 @@ export class MusicControls extends IonicNativePlugin { @Cordova({ observable: true }) - subscribe(): Observable { return; } + subscribe(): Observable { + return; + } /** * Start listening for events, this enables the Observable from the subscribe method */ @Cordova({ sync: true }) - listen(): void { } + listen(): void {} /** * Toggle play/pause: * @param isPlaying {boolean} */ @Cordova() - updateIsPlaying(isPlaying: boolean): void { } + updateIsPlaying(isPlaying: boolean): void {} /** - * Update elapsed time, optionally toggle play/pause: - * @param args {Object} - */ + * Update elapsed time, optionally toggle play/pause: + * @param args {Object} + */ @Cordova({ platforms: ['iOS'] }) - updateElapsed(args: { elapsed: string; isPlaying: boolean; }): void { } + updateElapsed(args: { elapsed: string; isPlaying: boolean }): void {} /** * Toggle dismissable: * @param dismissable {boolean} */ @Cordova() - updateDismissable(dismissable: boolean): void { } + updateDismissable(dismissable: boolean): void {} } diff --git a/src/@ionic-native/plugins/native-audio/index.ts b/src/@ionic-native/plugins/native-audio/index.ts index 91dca64b4..62d053236 100644 --- a/src/@ionic-native/plugins/native-audio/index.ts +++ b/src/@ionic-native/plugins/native-audio/index.ts @@ -1,5 +1,6 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; + /** * @name Native Audio * @description Native Audio Playback @@ -45,7 +46,9 @@ export class NativeAudio extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - preloadSimple(id: string, assetPath: string): Promise {return; } + preloadSimple(id: string, assetPath: string): Promise { + return; + } /** * Loads an audio file into memory. Optimized for background music / ambient sound. Uses highlevel native APIs with a larger footprint. (iOS: AVAudioPlayer). Can be stopped / looped and used with multiple voices. Can be faded in and out using the delay parameter. @@ -57,7 +60,15 @@ export class NativeAudio extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - preloadComplex(id: string, assetPath: string, volume: number, voices: number, delay: number): Promise {return; } + preloadComplex( + id: string, + assetPath: string, + volume: number, + voices: number, + delay: number + ): Promise { + return; + } /** * Plays an audio asset @@ -69,7 +80,9 @@ export class NativeAudio extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - play(id: string, completeCallback?: Function): Promise {return; } + play(id: string, completeCallback?: Function): Promise { + return; + } /** * Stops playing an audio @@ -77,7 +90,9 @@ export class NativeAudio extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - stop(id: string): Promise {return; } + stop(id: string): Promise { + return; + } /** * Loops an audio asset infinitely, this only works for complex assets @@ -85,7 +100,9 @@ export class NativeAudio extends IonicNativePlugin { * @return {Promise} */ @Cordova() - loop(id: string): Promise {return; } + loop(id: string): Promise { + return; + } /** * Unloads an audio file from memory @@ -93,7 +110,9 @@ export class NativeAudio extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - unload(id: string): Promise {return; } + unload(id: string): Promise { + return; + } /** * Changes the volume for preloaded complex assets. @@ -102,6 +121,7 @@ export class NativeAudio extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - setVolumeForComplexAsset(id: string, volume: number): Promise {return; } - + setVolumeForComplexAsset(id: string, volume: number): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/native-geocoder/index.ts b/src/@ionic-native/plugins/native-geocoder/index.ts index 176be8027..811a0f7f9 100644 --- a/src/@ionic-native/plugins/native-geocoder/index.ts +++ b/src/@ionic-native/plugins/native-geocoder/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name Native Geocoder @@ -35,7 +35,6 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; }) @Injectable() export class NativeGeocoder extends IonicNativePlugin { - /** * Reverse geocode a given latitude and longitude to find location address * @param latitude {number} The latitude @@ -45,7 +44,12 @@ export class NativeGeocoder extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - reverseGeocode(latitude: number, longitude: number): Promise { return; } + reverseGeocode( + latitude: number, + longitude: number + ): Promise { + return; + } /** * Forward geocode a given address to find coordinates @@ -55,12 +59,14 @@ export class NativeGeocoder extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - forwardGeocode(addressString: string): Promise { return; } + forwardGeocode(addressString: string): Promise { + return; + } } /** * Encapsulates format information about a reverse geocoding result. - * more Info: + * more Info: * - https://developer.apple.com/documentation/corelocation/clplacemark * - https://developer.android.com/reference/android/location/Address.html */ diff --git a/src/@ionic-native/plugins/native-keyboard/index.ts b/src/@ionic-native/plugins/native-keyboard/index.ts index ea070c564..c91c00822 100644 --- a/src/@ionic-native/plugins/native-keyboard/index.ts +++ b/src/@ionic-native/plugins/native-keyboard/index.ts @@ -1,8 +1,7 @@ -import { Plugin, IonicNativePlugin, Cordova } from '@ionic-native/core'; import { Injectable } from '@angular/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface NativeKeyboardOptions { - /** * A function invoked when the user submits his input. Receives the text as a single property. Make sure your page is UTF-8 encoded so Chinese and Emoji are rendered OK. */ @@ -127,7 +126,6 @@ export interface NativeKeyboardOptions { * */ rightButton: NativeKeyboardButton; - } export interface NativeKeyboardButton { @@ -204,7 +202,6 @@ export interface NativeKeyboardUpdateMessengerOptions { }) @Injectable() export class NativeKeyboard extends IonicNativePlugin { - /** * Show messenger * @param options {NativeKeyboardOptions} @@ -224,19 +221,24 @@ export class NativeKeyboard extends IonicNativePlugin { * @return {Promise} */ @Cordova() - showMessengerKeyboard(): Promise { return; } + showMessengerKeyboard(): Promise { + return; + } /** * Programmatically hide the keyboard (but not the messenger bar) */ @Cordova() - hideMessengerKeyboard(): Promise { return; } + hideMessengerKeyboard(): Promise { + return; + } /** * Manipulate the messenger while it's open. For instance if you want to update the text programmatically based on what the user typed. * @param options */ @Cordova() - updateMessenger(options: NativeKeyboardUpdateMessengerOptions): Promise { return; } - + updateMessenger(options: NativeKeyboardUpdateMessengerOptions): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/native-page-transitions/index.ts b/src/@ionic-native/plugins/native-page-transitions/index.ts index 537588b3c..09dc82da7 100644 --- a/src/@ionic-native/plugins/native-page-transitions/index.ts +++ b/src/@ionic-native/plugins/native-page-transitions/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface NativeTransitionOptions { direction?: string; @@ -76,7 +76,9 @@ export class NativePageTransitions extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - slide(options: NativeTransitionOptions): Promise { return; } + slide(options: NativeTransitionOptions): Promise { + return; + } /** * Perform a flip animation @@ -84,7 +86,9 @@ export class NativePageTransitions extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - flip(options: NativeTransitionOptions): Promise { return; } + flip(options: NativeTransitionOptions): Promise { + return; + } /** * Perform a fade animation @@ -92,8 +96,9 @@ export class NativePageTransitions extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['iOS', 'Android'] }) - fade(options: NativeTransitionOptions): Promise { return; } - + fade(options: NativeTransitionOptions): Promise { + return; + } /** * Perform a slide animation @@ -101,9 +106,9 @@ export class NativePageTransitions extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['iOS', 'Android'] }) - drawer(options: NativeTransitionOptions): Promise { return; } - - + drawer(options: NativeTransitionOptions): Promise { + return; + } /** * Perform a slide animation @@ -111,20 +116,25 @@ export class NativePageTransitions extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['iOS'] }) - curl(options: NativeTransitionOptions): Promise { return; } + curl(options: NativeTransitionOptions): Promise { + return; + } /** * Execute pending transition * @returns {Promise} */ @Cordova() - executePendingTransition(): Promise { return; } + executePendingTransition(): Promise { + return; + } /** * Cancel pending transition * @returns {Promise} */ @Cordova() - cancelPendingTransition(): Promise { return; } - + cancelPendingTransition(): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/native-ringtones/index.ts b/src/@ionic-native/plugins/native-ringtones/index.ts index f0fad32b0..896d97e40 100644 --- a/src/@ionic-native/plugins/native-ringtones/index.ts +++ b/src/@ionic-native/plugins/native-ringtones/index.ts @@ -1,5 +1,5 @@ -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @beta @@ -33,13 +33,14 @@ import { Injectable } from '@angular/core'; }) @Injectable() export class NativeRingtones extends IonicNativePlugin { - /** * Get the ringtone list of the device * @return {Promise} Returns a promise that resolves when ringtones found successfully */ @Cordova() - getRingtone(): Promise { return; } + getRingtone(): Promise { + return; + } /** * This function starts playing the ringtone @@ -47,7 +48,9 @@ export class NativeRingtones extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - playRingtone(ringtoneUri: string): Promise { return; } + playRingtone(ringtoneUri: string): Promise { + return; + } /** * This function stops playing the ringtone @@ -55,5 +58,7 @@ export class NativeRingtones extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - stopRingtone(ringtoneUri: string): Promise { return; } + stopRingtone(ringtoneUri: string): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/native-storage/index.ts b/src/@ionic-native/plugins/native-storage/index.ts index 15b498c3f..424bd3f1e 100644 --- a/src/@ionic-native/plugins/native-storage/index.ts +++ b/src/@ionic-native/plugins/native-storage/index.ts @@ -1,6 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; - +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name Native Storage @@ -43,7 +42,9 @@ export class NativeStorage extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - setItem(reference: string, value: any): Promise { return; } + setItem(reference: string, value: any): Promise { + return; + } /** * Gets a stored item @@ -51,14 +52,18 @@ export class NativeStorage extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - getItem(reference: string): Promise { return; } + getItem(reference: string): Promise { + return; + } /** * Retrieving all keys * @returns {Promise} */ @Cordova() - keys(): Promise { return; } + keys(): Promise { + return; + } /** * Removes a single stored item @@ -66,13 +71,16 @@ export class NativeStorage extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - remove(reference: string): Promise { return; } + remove(reference: string): Promise { + return; + } /** * Removes all stored values. * @returns {Promise} */ @Cordova() - clear(): Promise { return; } - + clear(): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/navigation-bar/index.ts b/src/@ionic-native/plugins/navigation-bar/index.ts index 784f3501b..c7126063d 100644 --- a/src/@ionic-native/plugins/navigation-bar/index.ts +++ b/src/@ionic-native/plugins/navigation-bar/index.ts @@ -1,6 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; - +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @beta @@ -29,10 +28,9 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; }) @Injectable() export class NavigationBar extends IonicNativePlugin { - /** * hide automatically (or not) the navigation bar. - * @param autohide {boolean}   + * @param autohide {boolean} * @return {Promise} */ @Cordova({ @@ -40,10 +38,12 @@ export class NavigationBar extends IonicNativePlugin { successName: 'success', errorName: 'failure' }) - setUp(autohide?: boolean): Promise { return; } + setUp(autohide?: boolean): Promise { + return; + } /** - * Hide the navigation bar.  + * Hide the navigation bar. * @return {Promise} */ @Cordova({ @@ -51,6 +51,7 @@ export class NavigationBar extends IonicNativePlugin { successName: 'success', errorName: 'failure' }) - hideNavigationBar(): Promise { return; } - + hideNavigationBar(): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/network-interface/index.ts b/src/@ionic-native/plugins/network-interface/index.ts index 7a68fb12a..e94ac7951 100644 --- a/src/@ionic-native/plugins/network-interface/index.ts +++ b/src/@ionic-native/plugins/network-interface/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name Network Interface @@ -26,11 +26,17 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; plugin: 'cordova-plugin-networkinterface', pluginRef: 'networkinterface', repo: 'https://github.com/salbahra/cordova-plugin-networkinterface', - platforms: ['Android', 'BlackBerry 10', 'Browser', 'iOS', 'Windows', 'Windows Phone'], + platforms: [ + 'Android', + 'BlackBerry 10', + 'Browser', + 'iOS', + 'Windows', + 'Windows Phone' + ] }) @Injectable() export class NetworkInterface extends IonicNativePlugin { - @Cordova() getIPAddress(): Promise { return; diff --git a/src/@ionic-native/plugins/network/index.ts b/src/@ionic-native/plugins/network/index.ts index 3148bcd8c..e1d641ed9 100644 --- a/src/@ionic-native/plugins/network/index.ts +++ b/src/@ionic-native/plugins/network/index.ts @@ -1,8 +1,14 @@ -import { Injectable } from '@angular/core'; -import { Cordova, CordovaProperty, Plugin, CordovaCheck, IonicNativePlugin } from '@ionic-native/core'; -import { Observable } from 'rxjs/Observable'; import 'rxjs/add/observable/merge'; +import { Injectable } from '@angular/core'; +import { + Cordova, + CordovaCheck, + CordovaProperty, + IonicNativePlugin, + Plugin +} from '@ionic-native/core'; +import { Observable } from 'rxjs/Observable'; declare const navigator: any; @@ -57,20 +63,17 @@ declare const navigator: any; }) @Injectable() export class Network extends IonicNativePlugin { - /** * Connection type * @return {string} */ - @CordovaProperty - type: string; + @CordovaProperty type: string; /** * Downlink Max Speed * @return {string} */ - @CordovaProperty - downlinkMax: string; + @CordovaProperty downlinkMax: string; /** * Returns an observable to watch connection changes @@ -89,7 +92,9 @@ export class Network extends IonicNativePlugin { eventObservable: true, event: 'offline' }) - onDisconnect(): Observable { return; } + onDisconnect(): Observable { + return; + } /** * Get notified when the device goes online @@ -99,6 +104,7 @@ export class Network extends IonicNativePlugin { eventObservable: true, event: 'online' }) - onConnect(): Observable { return; } - + onConnect(): Observable { + return; + } } diff --git a/src/@ionic-native/plugins/nfc/index.ts b/src/@ionic-native/plugins/nfc/index.ts index 0d885f7e6..703e197d4 100644 --- a/src/@ionic-native/plugins/nfc/index.ts +++ b/src/@ionic-native/plugins/nfc/index.ts @@ -1,6 +1,12 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin, CordovaProperty } from '@ionic-native/core'; +import { + Cordova, + CordovaProperty, + IonicNativePlugin, + Plugin +} from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; + declare let window: any; export interface NdefEvent { @@ -67,8 +73,8 @@ export interface NdefTag { platforms: ['Android', 'BlackBerry 10', 'Windows', 'Windows Phone 8'] }) /** -*@{ NFC } class methods -*/ + *@{ NFC } class methods + */ @Injectable() export class NFC extends IonicNativePlugin { /** @@ -84,7 +90,9 @@ export class NFC extends IonicNativePlugin { clearFunction: 'invalidateSession', clearWithArgs: true }) - beginSession(onSuccess?: Function, onFailure?: Function): Observable { return; } + beginSession(onSuccess?: Function, onFailure?: Function): Observable { + return; + } /** * Registers an event listener for any NDEF tag. @@ -99,7 +107,12 @@ export class NFC extends IonicNativePlugin { clearFunction: 'removeNdefListener', clearWithArgs: true }) - addNdefListener(onSuccess?: Function, onFailure?: Function): Observable { return; } + addNdefListener( + onSuccess?: Function, + onFailure?: Function + ): Observable { + return; + } /** * Registers an event listener for tags matching any tag type. @@ -114,7 +127,12 @@ export class NFC extends IonicNativePlugin { clearFunction: 'removeTagDiscoveredListener', clearWithArgs: true }) - addTagDiscoveredListener(onSuccess?: Function, onFailure?: Function): Observable { return; } + addTagDiscoveredListener( + onSuccess?: Function, + onFailure?: Function + ): Observable { + return; + } /** * Registers an event listener for NDEF tags matching a specified MIME type. @@ -130,7 +148,13 @@ export class NFC extends IonicNativePlugin { clearFunction: 'removeMimeTypeListener', clearWithArgs: true }) - addMimeTypeListener(mimeType: string, onSuccess?: Function, onFailure?: Function): Observable { return; } + addMimeTypeListener( + mimeType: string, + onSuccess?: Function, + onFailure?: Function + ): Observable { + return; + } /** * Registers an event listener for formatable NDEF tags. @@ -143,7 +167,12 @@ export class NFC extends IonicNativePlugin { successIndex: 0, errorIndex: 3 }) - addNdefFormatableListener(onSuccess?: Function, onFailure?: Function): Observable { return; } + addNdefFormatableListener( + onSuccess?: Function, + onFailure?: Function + ): Observable { + return; + } /** * Writes an NdefMessage(array of ndef records) to a NFC tag. @@ -151,13 +180,17 @@ export class NFC extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - write(message: any[]): Promise { return; } + write(message: any[]): Promise { + return; + } /** * Makes a NFC tag read only. **Warning** this is permanent. * @returns {Promise} */ @Cordova() - makeReadyOnly(): Promise { return; } + makeReadyOnly(): Promise { + return; + } /** * Shares an NDEF Message(array of ndef records) via peer-to-peer. @@ -165,20 +198,26 @@ export class NFC extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - share(message: any[]): Promise { return; } + share(message: any[]): Promise { + return; + } /** * Stop sharing NDEF data via peer-to-peer. * @returns {Promise} */ @Cordova() - unshare(): Promise { return; } + unshare(): Promise { + return; + } /** * Erase a NDEF tag */ @Cordova() - erase(): Promise { return; } + erase(): Promise { + return; + } /** * Send a file to another device via NFC handover. @@ -186,46 +225,58 @@ export class NFC extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - handover(uris: string[]): Promise { return; } + handover(uris: string[]): Promise { + return; + } /** * Stop sharing NDEF data via NFC handover. * @returns {Promise} */ @Cordova() - stopHandover(): Promise { return; } + stopHandover(): Promise { + return; + } /** * Opens the device's NFC settings. * @returns {Promise} */ @Cordova() - showSettings(): Promise { return; } + showSettings(): Promise { + return; + } /** * Check if NFC is available and enabled on this device. * @returns {Promise} */ @Cordova() - enabled(): Promise { return; } + enabled(): Promise { + return; + } /** - * @{ NFC } class utility methods - * for use with - */ + * @{ NFC } class utility methods + * for use with + */ /** * Convert byte array to string * @param bytes {number[]} * @returns {string} */ @Cordova({ sync: true }) - bytesToString(bytes: number[]): string { return; } + bytesToString(bytes: number[]): string { + return; + } /** * Convert string to byte array. * @param str {string} * @returns {number[]} */ @Cordova({ sync: true }) - stringToBytes(str: string): number[] { return; }; + stringToBytes(str: string): number[] { + return; + } /** * Convert byte array to hex string * @@ -233,8 +284,9 @@ export class NFC extends IonicNativePlugin { * @returns {string} */ @Cordova({ sync: true }) - bytesToHexString(bytes: number[]): string { return; }; - + bytesToHexString(bytes: number[]): string { + return; + } } /** * @hidden @@ -245,92 +297,113 @@ export class NFC extends IonicNativePlugin { pluginRef: 'ndef' }) /** -*@{ Ndef } class methods -*@description -* Utility methods for creating ndef records for the ndef tag format. -* Move records into array before usage. Then pass an array to methods as parameters. -* Do not pass bytes as parameters for these methods, conversion is built in. -* For usage with nfc.write() and nfc.share() -*/ + *@{ Ndef } class methods + *@description + * Utility methods for creating ndef records for the ndef tag format. + * Move records into array before usage. Then pass an array to methods as parameters. + * Do not pass bytes as parameters for these methods, conversion is built in. + * For usage with nfc.write() and nfc.share() + */ @Injectable() export class Ndef extends IonicNativePlugin { + @CordovaProperty TNF_EMPTY: number; + @CordovaProperty TNF_WELL_KNOWN: number; + @CordovaProperty TNF_MIME_MEDIA: number; + @CordovaProperty TNF_ABSOLUTE_URI: number; + @CordovaProperty TNF_EXTERNAL_TYPE: number; + @CordovaProperty TNF_UNKNOWN: number; + @CordovaProperty TNF_UNCHANGED: number; + @CordovaProperty TNF_RESERVED: number; - @CordovaProperty - TNF_EMPTY: number; - @CordovaProperty - TNF_WELL_KNOWN: number; - @CordovaProperty - TNF_MIME_MEDIA: number; - @CordovaProperty - TNF_ABSOLUTE_URI: number; - @CordovaProperty - TNF_EXTERNAL_TYPE: number; - @CordovaProperty - TNF_UNKNOWN: number; - @CordovaProperty - TNF_UNCHANGED: number; - @CordovaProperty - TNF_RESERVED: number; - - @CordovaProperty - RTD_TEXT: number[]; - @CordovaProperty - RTD_URI: number[]; - @CordovaProperty - RTD_SMART_POSTER: number[]; - @CordovaProperty - RTD_ALTERNATIVE_CARRIER: number[]; - @CordovaProperty - RTD_HANDOVER_CARRIER: number[]; - @CordovaProperty - RTD_HANDOVER_REQUEST: number[]; - @CordovaProperty - RTD_HANDOVER_SELECT: number[]; + @CordovaProperty RTD_TEXT: number[]; + @CordovaProperty RTD_URI: number[]; + @CordovaProperty RTD_SMART_POSTER: number[]; + @CordovaProperty RTD_ALTERNATIVE_CARRIER: number[]; + @CordovaProperty RTD_HANDOVER_CARRIER: number[]; + @CordovaProperty RTD_HANDOVER_REQUEST: number[]; + @CordovaProperty RTD_HANDOVER_SELECT: number[]; @Cordova({ sync: true }) - record(tnf: number, type: number[] | string, id: number[] | string, payload: number[] | string): NdefRecord { return; } + record( + tnf: number, + type: number[] | string, + id: number[] | string, + payload: number[] | string + ): NdefRecord { + return; + } @Cordova({ sync: true }) - textRecord(text: string, languageCode: string, id: number[] | string): NdefRecord { return; } + textRecord( + text: string, + languageCode: string, + id: number[] | string + ): NdefRecord { + return; + } @Cordova({ sync: true }) - uriRecord(uri: string, id: number[] | string): NdefRecord { return; } + uriRecord(uri: string, id: number[] | string): NdefRecord { + return; + } @Cordova({ sync: true }) - absoluteUriRecord(uri: string, payload: number[] | string, id: number[] | string): NdefRecord { return; } + absoluteUriRecord( + uri: string, + payload: number[] | string, + id: number[] | string + ): NdefRecord { + return; + } @Cordova({ sync: true }) - mimeMediaRecord(mimeType: string, payload: string): NdefRecord { return; } + mimeMediaRecord(mimeType: string, payload: string): NdefRecord { + return; + } @Cordova({ sync: true }) - smartPoster(ndefRecords: any[], id?: number[] | string ): NdefRecord { return; } + smartPoster(ndefRecords: any[], id?: number[] | string): NdefRecord { + return; + } @Cordova({ sync: true }) - emptyRecord(): NdefRecord { return; } + emptyRecord(): NdefRecord { + return; + } @Cordova({ sync: true }) - androidApplicationRecord(packageName: string): NdefRecord { return; } + androidApplicationRecord(packageName: string): NdefRecord { + return; + } @Cordova({ sync: true }) - encodeMessage(ndefRecords: any): any { return; } + encodeMessage(ndefRecords: any): any { + return; + } @Cordova({ sync: true }) - decodeMessage(bytes: any): any { return; } + decodeMessage(bytes: any): any { + return; + } @Cordova({ sync: true }) - docodeTnf(tnf_byte: any): any { return; } + docodeTnf(tnf_byte: any): any { + return; + } @Cordova({ sync: true }) - encodeTnf(mb: any, me: any, cf: any, sr: any, il: any, tnf: any): any { return; } + encodeTnf(mb: any, me: any, cf: any, sr: any, il: any, tnf: any): any { + return; + } @Cordova({ sync: true }) - tnfToString(tnf: any): string { return; } + tnfToString(tnf: any): string { + return; + } - @CordovaProperty - textHelper: TextHelper; + @CordovaProperty textHelper: TextHelper; - @CordovaProperty - uriHelper: UriHelper; + @CordovaProperty uriHelper: UriHelper; } /** @@ -343,32 +416,51 @@ export class Ndef extends IonicNativePlugin { }) @Injectable() export class NfcUtil extends IonicNativePlugin { + @Cordova({ sync: true }) + toHex(i: number): string { + return; + } @Cordova({ sync: true }) - toHex(i: number): string { return; } + toPrintable(i: number): string { + return; + } @Cordova({ sync: true }) - toPrintable(i: number): string { return; } + bytesToString(i: number[]): string { + return; + } @Cordova({ sync: true }) - bytesToString(i: number[]): string { return; } + stringToBytes(s: string): number[] { + return; + } @Cordova({ sync: true }) - stringToBytes(s: string): number[] { return; } + bytesToHexString(bytes: number[]): string { + return; + } @Cordova({ sync: true }) - bytesToHexString(bytes: number[]): string { return; } - - @Cordova({ sync: true }) - isType(record: NdefRecord, tnf: number, type: number[]|string): boolean { return; } + isType(record: NdefRecord, tnf: number, type: number[] | string): boolean { + return; + } } export class TextHelper extends IonicNativePlugin { - decodePayload(data: number[]): string { return; } - encodePayload(text: string, lang: string): number[] { return; } + decodePayload(data: number[]): string { + return; + } + encodePayload(text: string, lang: string): number[] { + return; + } } export class UriHelper extends IonicNativePlugin { - decodePayload(data: number[]): string { return; } - encodePayload(uri: string): number[] { return; } + decodePayload(data: number[]): string { + return; + } + encodePayload(uri: string): number[] { + return; + } } diff --git a/src/@ionic-native/plugins/onesignal/index.ts b/src/@ionic-native/plugins/onesignal/index.ts index a0e5de2af..28fbae8ed 100644 --- a/src/@ionic-native/plugins/onesignal/index.ts +++ b/src/@ionic-native/plugins/onesignal/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export interface OSNotification { diff --git a/src/@ionic-native/plugins/open-native-settings/index.ts b/src/@ionic-native/plugins/open-native-settings/index.ts index 2d5e9c4ff..4e572143f 100644 --- a/src/@ionic-native/plugins/open-native-settings/index.ts +++ b/src/@ionic-native/plugins/open-native-settings/index.ts @@ -1,11 +1,11 @@ -import { Plugin, IonicNativePlugin, Cordova } from '@ionic-native/core'; import { Injectable } from '@angular/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name Open Native Settings * @description - * Plugin to open native screens of iOS/android settings - * @usage + * Plugin to open native screens of iOS/android settings + * @usage * You can open any of these settings: * ``` * "about", // ios @@ -78,7 +78,7 @@ import { Injectable } from '@angular/core'; "wifi_ip", // android "wifi", // ios, android "wireless" // android - ``` + ``` * ```typescript * import { OpenNativeSettings } from '@ionic-native/open-native-settings'; * @@ -99,13 +99,13 @@ import { Injectable } from '@angular/core'; }) @Injectable() export class OpenNativeSettings extends IonicNativePlugin { - /** * Opens a setting dialog * @param setting {string} setting name * @return {Promise} */ @Cordova() - open(setting: string): Promise { return; } - + open(setting: string): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/paypal/index.ts b/src/@ionic-native/plugins/paypal/index.ts index 497b980e1..433067dc4 100644 --- a/src/@ionic-native/plugins/paypal/index.ts +++ b/src/@ionic-native/plugins/paypal/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name PayPal @@ -78,7 +78,9 @@ export class PayPal extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - version(): Promise { return; } + version(): Promise { + return; + } /** * You must preconnect to PayPal to prepare the device for processing payments. @@ -90,7 +92,9 @@ export class PayPal extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - init(clientIdsForEnvironments: PayPalEnvironment): Promise { return; } + init(clientIdsForEnvironments: PayPalEnvironment): Promise { + return; + } /** * You must preconnect to PayPal to prepare the device for processing payments. @@ -102,7 +106,12 @@ export class PayPal extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - prepareToRender(environment: string, configuration: PayPalConfiguration): Promise { return; } + prepareToRender( + environment: string, + configuration: PayPalConfiguration + ): Promise { + return; + } /** * Start PayPal UI to collect payment from the user. @@ -113,7 +122,9 @@ export class PayPal extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - renderSinglePaymentUI(payment: PayPalPayment): Promise { return; } + renderSinglePaymentUI(payment: PayPalPayment): Promise { + return; + } /** * Once a user has consented to future payments, when the user subsequently initiates a PayPal payment @@ -126,14 +137,18 @@ export class PayPal extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - clientMetadataID(): Promise { return; } + clientMetadataID(): Promise { + return; + } /** * Please Read Docs on Future Payments at https://github.com/paypal/PayPal-iOS-SDK#future-payments * @returns {Promise} */ @Cordova() - renderFuturePaymentUI(): Promise { return; } + renderFuturePaymentUI(): Promise { + return; + } /** * Please Read Docs on Profile Sharing at https://github.com/paypal/PayPal-iOS-SDK#profile-sharing @@ -143,7 +158,9 @@ export class PayPal extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - renderProfileSharingUI(scopes: string[]): Promise { return; } + renderProfileSharingUI(scopes: string[]): Promise { + return; + } } export interface PayPalEnvironment { @@ -155,7 +172,13 @@ export interface PayPalEnvironment { * @hidden */ export class PayPalPayment { - constructor(amount: string, currency: string, shortDescription: string, intent: string, details?: PayPalPaymentDetails) { + constructor( + amount: string, + currency: string, + shortDescription: string, + intent: string, + details?: PayPalPaymentDetails + ) { this.amount = amount; this.currency = currency; this.shortDescription = shortDescription; @@ -205,9 +228,9 @@ export class PayPalPayment { items: Array; /** - * Optional payee email, if your app is paying a third-party merchant. - * The payee's email. It must be a valid PayPal email address. - */ + * Optional payee email, if your app is paying a third-party merchant. + * The payee's email. It must be a valid PayPal email address. + */ payeeEmail: string; /** @@ -235,7 +258,13 @@ export class PayPalItem { * @param {String} currency: ISO standard currency code. * @param {String} sku: The stock keeping unit for this item. 50 characters max (optional) */ - constructor(name: string, quantity: number, price: string, currency: string, sku?: string) { + constructor( + name: string, + quantity: number, + price: string, + currency: string, + sku?: string + ) { this.name = name; this.quantity = quantity; this.price = price; @@ -405,7 +434,6 @@ export class PayPalConfiguration implements PayPalConfigurationOptions { * see defaults for options available */ constructor(options?: PayPalConfigurationOptions) { - let defaults: PayPalConfigurationOptions = { defaultUserEmail: null, defaultUserPhoneCountryCode: null, @@ -450,7 +478,15 @@ export class PayPalShippingAddress { * @param {String} postalCode: ZIP code or equivalent is usually required for countries that have them. 20 characters max. Required in certain countries. * @param {String} countryCode: 2-letter country code. 2 characters max. */ - constructor(recipientName: string, line1: string, line2: string, city: string, state: string, postalCode: string, countryCode: string) { + constructor( + recipientName: string, + line1: string, + line2: string, + city: string, + state: string, + postalCode: string, + countryCode: string + ) { this.recipientName = recipientName; this.line1 = line1; this.line2 = line2; diff --git a/src/@ionic-native/plugins/pedometer/index.ts b/src/@ionic-native/plugins/pedometer/index.ts index 773db656d..f4e369167 100644 --- a/src/@ionic-native/plugins/pedometer/index.ts +++ b/src/@ionic-native/plugins/pedometer/index.ts @@ -1,6 +1,6 @@ -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; -import { Observable } from 'rxjs/Observable'; import { Injectable } from '@angular/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Observable } from 'rxjs/Observable'; /** * Interface of a pedometer data object which is returned by watching for new data or by recieving historical data @@ -43,13 +43,14 @@ export interface IPedometerData { }) @Injectable() export class Pedometer extends IonicNativePlugin { - /** * Checks if step counting is available. Only works on iOS. * @return {Promise} Returns a promise that resolves when feature is supported (true) or not supported (false) */ @Cordova() - isStepCountingAvailable(): Promise { return; } + isStepCountingAvailable(): Promise { + return; + } /** * Distance estimation indicates the ability to use step information to supply the approximate distance travelled by the user. @@ -58,7 +59,9 @@ export class Pedometer extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves when feature is supported (true) or not supported (false) */ @Cordova() - isDistanceAvailable(): Promise { return; } + isDistanceAvailable(): Promise { + return; + } /** * Floor counting indicates the ability to count the number of floors the user walks up or down using stairs. @@ -67,27 +70,33 @@ export class Pedometer extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves when feature is supported (true) or not supported (false) */ @Cordova() - isFloorCountingAvailable(): Promise { return; } + isFloorCountingAvailable(): Promise { + return; + } /** - * Starts the delivery of recent pedestrian-related data to your Cordova app. - * - * When the app is suspended, the delivery of updates stops temporarily. - * Upon returning to foreground or background execution, the pedometer object begins updates again. - * @return {Observable} Returns a Observable that recieves repeatly data from pedometer in background. - */ + * Starts the delivery of recent pedestrian-related data to your Cordova app. + * + * When the app is suspended, the delivery of updates stops temporarily. + * Upon returning to foreground or background execution, the pedometer object begins updates again. + * @return {Observable} Returns a Observable that recieves repeatly data from pedometer in background. + */ @Cordova({ observable: true, clearFunction: 'stopPedometerUpdates' }) - startPedometerUpdates(): Observable { return; } + startPedometerUpdates(): Observable { + return; + } /** * Stops the delivery of recent pedestrian data updates to your Cordova app. * @return {Promise} Returns a promise that resolves when pedometer watching was stopped */ @Cordova() - stopPedometerUpdates(): Promise { return; } + stopPedometerUpdates(): Promise { + return; + } /** * Retrieves the data between the specified start and end dates. @@ -100,6 +109,10 @@ export class Pedometer extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - queryData(options: { startDate: Date, endDate: Date }): Promise { return; } - + queryData(options: { + startDate: Date; + endDate: Date; + }): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/phonegap-local-notification/index.ts b/src/@ionic-native/plugins/phonegap-local-notification/index.ts index 50ec81749..797d9e909 100644 --- a/src/@ionic-native/plugins/phonegap-local-notification/index.ts +++ b/src/@ionic-native/plugins/phonegap-local-notification/index.ts @@ -1,5 +1,11 @@ import { Injectable } from '@angular/core'; -import { Cordova, CordovaInstance, Plugin, IonicNativePlugin, checkAvailability } from '@ionic-native/core'; +import { + checkAvailability, + Cordova, + CordovaInstance, + IonicNativePlugin, + Plugin +} from '@ionic-native/core'; declare const Notification: any; @@ -7,22 +13,25 @@ declare const Notification: any; * @hidden */ export class PLNObject { - private _objectInstance: any; constructor(title: string, options: LocalNotificationOptions) { - if (checkAvailability(PhonegapLocalNotification.pluginRef, null, PhonegapLocalNotification.pluginName) === true) { + if ( + checkAvailability( + PhonegapLocalNotification.pluginRef, + null, + PhonegapLocalNotification.pluginName + ) === true + ) { this._objectInstance = new Notification(title, options); } } @CordovaInstance({ sync: true }) - close(): void { } - + close(): void {} } export interface LocalNotificationOptions { - /** * Sets the direction of the notification. One of "auto", "ltr" or "rtl" */ @@ -47,7 +56,6 @@ export interface LocalNotificationOptions { * Sets the icon of the notification */ icon?: string; - } /** @@ -94,20 +102,22 @@ export interface LocalNotificationOptions { }) @Injectable() export class PhonegapLocalNotification extends IonicNativePlugin { - /** * A global object that lets you interact with the Notification API. * @param title {string} Title of the local notification. * @param Options {LocalNotificationOptions} An object containing optional property/value pairs. * @returns {PLNObject} */ - create(title: string, options: LocalNotificationOptions) { return new PLNObject(title, options); } + create(title: string, options: LocalNotificationOptions) { + return new PLNObject(title, options); + } /** - * requests permission from the user to show a local notification. - * @returns {Promise} - */ + * requests permission from the user to show a local notification. + * @returns {Promise} + */ @Cordova() - requestPermission(): Promise { return; } - + requestPermission(): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/photo-library/index.ts b/src/@ionic-native/plugins/photo-library/index.ts index 3ca7cf3bd..9f51214d4 100644 --- a/src/@ionic-native/plugins/photo-library/index.ts +++ b/src/@ionic-native/plugins/photo-library/index.ts @@ -1,7 +1,13 @@ -import { Plugin, Cordova, IonicNativePlugin, CordovaOptions, wrap } from '@ionic-native/core'; +import { Injectable } from '@angular/core'; +import { + Cordova, + CordovaOptions, + IonicNativePlugin, + Plugin, + wrap +} from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; import { Observer } from 'rxjs/Observer'; -import { Injectable } from '@angular/core'; /** * @hidden @@ -22,12 +28,22 @@ export interface CordovaFiniteObservableOptions extends CordovaOptions { * * Wraps method that returns an observable that can be completed. Provided opts.resultFinalPredicate dictates when the observable completes. */ -export function CordovaFiniteObservable(opts: CordovaFiniteObservableOptions = {}) { +export function CordovaFiniteObservable( + opts: CordovaFiniteObservableOptions = {} +) { opts.observable = true; - return (target: Object, methodName: string, descriptor: TypedPropertyDescriptor) => { + return ( + target: Object, + methodName: string, + descriptor: TypedPropertyDescriptor + ) => { return { value: function(...args: any[]) { - const wrappedObservable: Observable = wrap(this, methodName, opts).apply(this, args); + const wrappedObservable: Observable = wrap( + this, + methodName, + opts + ).apply(this, args); return new Observable((observer: Observer) => { const wrappedSubscription = wrappedObservable.subscribe({ next: (x: any) => { @@ -36,8 +52,12 @@ export function CordovaFiniteObservable(opts: CordovaFiniteObservableOptions = { observer.complete(); } }, - error: (err: any) => { observer.error(err); }, - complete: () => { observer.complete(); } + error: (err: any) => { + observer.error(err); + }, + complete: () => { + observer.complete(); + } }); return () => { wrappedSubscription.unsubscribe(); @@ -91,13 +111,13 @@ export function CordovaFiniteObservable(opts: CordovaFiniteObservableOptions = { plugin: 'cordova-plugin-photo-library', pluginRef: 'cordova.plugins.photoLibrary', repo: 'https://github.com/terikon/cordova-plugin-photo-library', - install: 'ionic cordova plugin add cordova-plugin-photo-library --variable PHOTO_LIBRARY_USAGE_DESCRIPTION="To choose photos"', + install: + 'ionic cordova plugin add cordova-plugin-photo-library --variable PHOTO_LIBRARY_USAGE_DESCRIPTION="To choose photos"', installVariables: ['PHOTO_LIBRARY_USAGE_DESCRIPTION'], platforms: ['Android', 'Browser', 'iOS'] }) @Injectable() export class PhotoLibrary extends IonicNativePlugin { - /** * Retrieves library items. Library item contains photo metadata like width and height, as well as photoURL and thumbnailURL. * @param options {GetLibraryOptions} Optional, like thumbnail size and chunks settings. @@ -108,7 +128,9 @@ export class PhotoLibrary extends IonicNativePlugin { resultFinalPredicate: 'isLastChunk', resultTransform: 'library' }) - getLibrary(options?: GetLibraryOptions): Observable { return; } + getLibrary(options?: GetLibraryOptions): Observable { + return; + } /** * Asks user permission to access photo library. @@ -118,7 +140,9 @@ export class PhotoLibrary extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - requestAuthorization(options?: RequestAuthorizationOptions): Promise { return; } + requestAuthorization(options?: RequestAuthorizationOptions): Promise { + return; + } /** * Returns list of photo albums on device. @@ -127,7 +151,9 @@ export class PhotoLibrary extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - getAlbums(): Promise { return; } + getAlbums(): Promise { + return; + } /** * Provides means to request URL of thumbnail, with specified size or quality. @@ -139,7 +165,12 @@ export class PhotoLibrary extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - getThumbnailURL(photo: string | LibraryItem, options?: GetThumbnailOptions): Promise { return; } + getThumbnailURL( + photo: string | LibraryItem, + options?: GetThumbnailOptions + ): Promise { + return; + } /** * Provides means to request photo URL by id. @@ -151,7 +182,9 @@ export class PhotoLibrary extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - getPhotoURL(photo: string | LibraryItem, options?: any): Promise { return; } + getPhotoURL(photo: string | LibraryItem, options?: any): Promise { + return; + } /** * Returns thumbnail as Blob. @@ -163,7 +196,12 @@ export class PhotoLibrary extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - getThumbnail(photo: string | LibraryItem, options?: GetThumbnailOptions): Promise { return; } + getThumbnail( + photo: string | LibraryItem, + options?: GetThumbnailOptions + ): Promise { + return; + } /** * Returns photo as Blob. @@ -175,7 +213,9 @@ export class PhotoLibrary extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - getPhoto(photo: string | LibraryItem, options?: any): Promise { return; } + getPhoto(photo: string | LibraryItem, options?: any): Promise { + return; + } /** * Saves image to specified album. Album will be created if not exists. @@ -189,7 +229,13 @@ export class PhotoLibrary extends IonicNativePlugin { successIndex: 2, errorIndex: 3 }) - saveImage(url: string, album: AlbumItem | string, options?: GetThumbnailOptions): Promise { return; } + saveImage( + url: string, + album: AlbumItem | string, + options?: GetThumbnailOptions + ): Promise { + return; + } /** * Saves video to specified album. Album will be created if not exists. @@ -201,8 +247,9 @@ export class PhotoLibrary extends IonicNativePlugin { successIndex: 2, errorIndex: 3 }) - saveVideo(url: string, album: AlbumItem | string): Promise { return; } - + saveVideo(url: string, album: AlbumItem | string): Promise { + return; + } } /** diff --git a/src/@ionic-native/plugins/photo-viewer/index.ts b/src/@ionic-native/plugins/photo-viewer/index.ts index 5c4481d05..acdbed769 100644 --- a/src/@ionic-native/plugins/photo-viewer/index.ts +++ b/src/@ionic-native/plugins/photo-viewer/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface PhotoViewerOptions { /** @@ -39,6 +39,6 @@ export class PhotoViewer extends IonicNativePlugin { * @param title {string} * @param options {PhotoViewerOptions} */ - @Cordova({sync: true}) - show(url: string, title?: string, options?: PhotoViewerOptions): void { } + @Cordova({ sync: true }) + show(url: string, title?: string, options?: PhotoViewerOptions): void {} } diff --git a/src/@ionic-native/plugins/pin-check/index.ts b/src/@ionic-native/plugins/pin-check/index.ts index 48b5098bc..e7eb75bd6 100644 --- a/src/@ionic-native/plugins/pin-check/index.ts +++ b/src/@ionic-native/plugins/pin-check/index.ts @@ -1,8 +1,8 @@ -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** - * @name Pin Check + * @name Pin Check * @description * This plugin is for use with Apache Cordova and allows your application to check whether pin/keyguard or passcode is setup on iOS and Android phones. * @@ -34,7 +34,7 @@ import { Injectable } from '@angular/core'; @Injectable() export class PinCheck extends IonicNativePlugin { /** - * check whether pin/keyguard or passcode is setup + * check whether pin/keyguard or passcode is setup * @returns {Promise} */ @Cordova() diff --git a/src/@ionic-native/plugins/pin-dialog/index.ts b/src/@ionic-native/plugins/pin-dialog/index.ts index d93e4b984..2a8e67653 100644 --- a/src/@ionic-native/plugins/pin-dialog/index.ts +++ b/src/@ionic-native/plugins/pin-dialog/index.ts @@ -1,6 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; - +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name Pin Dialog @@ -44,6 +43,11 @@ export class PinDialog extends IonicNativePlugin { successIndex: 1, errorIndex: 4 // no error callback }) - prompt(message: string, title: string, buttons: string[]): Promise<{ buttonIndex: number, input1: string }> { return; } - + prompt( + message: string, + title: string, + buttons: string[] + ): Promise<{ buttonIndex: number; input1: string }> { + return; + } } diff --git a/src/@ionic-native/plugins/pinterest/index.ts b/src/@ionic-native/plugins/pinterest/index.ts index 7b6ffc804..81e358e98 100644 --- a/src/@ionic-native/plugins/pinterest/index.ts +++ b/src/@ionic-native/plugins/pinterest/index.ts @@ -1,5 +1,10 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, CordovaProperty, IonicNativePlugin } from '@ionic-native/core'; +import { + Cordova, + CordovaProperty, + IonicNativePlugin, + Plugin +} from '@ionic-native/core'; export interface PinterestUser { /** @@ -172,13 +177,13 @@ export interface PinterestPin { plugin: 'cordova-plugin-pinterest', pluginRef: 'cordova.plugins.Pinterest', repo: 'https://github.com/zyramedia/cordova-plugin-pinterest', - install: 'ionic cordova plugin add cordova-plugin-pinterest --variable APP_ID=YOUR_APP_ID', + install: + 'ionic cordova plugin add cordova-plugin-pinterest --variable APP_ID=YOUR_APP_ID', installVariables: ['APP_ID'], platforms: ['Android', 'iOS'] }) @Injectable() export class Pinterest extends IonicNativePlugin { - /** * Convenience constant for authentication scopes */ @@ -196,7 +201,9 @@ export class Pinterest extends IonicNativePlugin { * @returns {Promise} The response object will contain the user's profile data, as well as the access token (if you need to use it elsewhere, example: send it to your server and perform actions on behalf of the user). */ @Cordova() - login(scopes: string[]): Promise { return; } + login(scopes: string[]): Promise { + return; + } /** * Gets the authenticated user's profile @@ -206,7 +213,9 @@ export class Pinterest extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - getMe(fields?: string): Promise { return; } + getMe(fields?: string): Promise { + return; + } /** * @@ -217,7 +226,9 @@ export class Pinterest extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - getMyPins(fields?: string, limit?: number): Promise> { return; } + getMyPins(fields?: string, limit?: number): Promise> { + return; + } /** * @@ -228,7 +239,9 @@ export class Pinterest extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - getMyBoards(fields?: string, limit?: number): Promise> { return; } + getMyBoards(fields?: string, limit?: number): Promise> { + return; + } /** * Get the authenticated user's likes. @@ -239,7 +252,9 @@ export class Pinterest extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - getMyLikes(fields?: string, limit?: number): Promise> { return; } + getMyLikes(fields?: string, limit?: number): Promise> { + return; + } /** * Get the authenticated user's followers. @@ -250,7 +265,12 @@ export class Pinterest extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - getMyFollowers(fields?: string, limit?: number): Promise> { return; } + getMyFollowers( + fields?: string, + limit?: number + ): Promise> { + return; + } /** * Get the authenticated user's followed boards. @@ -261,7 +281,12 @@ export class Pinterest extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - getMyFollowedBoards(fields?: string, limit?: number): Promise> { return; } + getMyFollowedBoards( + fields?: string, + limit?: number + ): Promise> { + return; + } /** * Get the authenticated user's followed interests. @@ -272,7 +297,9 @@ export class Pinterest extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - getMyFollowedInterests(fields?: string, limit?: number): Promise { return; } + getMyFollowedInterests(fields?: string, limit?: number): Promise { + return; + } /** * Get a user's profile. @@ -284,7 +311,9 @@ export class Pinterest extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - getUser(username: string, fields?: string): Promise { return; } + getUser(username: string, fields?: string): Promise { + return; + } /** * Get a board's data. @@ -296,7 +325,9 @@ export class Pinterest extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - getBoard(boardId: string, fields?: string): Promise { return; } + getBoard(boardId: string, fields?: string): Promise { + return; + } /** * Get Pins of a specific board. @@ -309,7 +340,13 @@ export class Pinterest extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - getBoardPins(boardId: string, fields?: string, limit?: number): Promise> { return; } + getBoardPins( + boardId: string, + fields?: string, + limit?: number + ): Promise> { + return; + } /** * Delete a board. @@ -317,7 +354,9 @@ export class Pinterest extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - deleteBoard(boardId: string): Promise { return; } + deleteBoard(boardId: string): Promise { + return; + } /** * Create a new board for the authenticated user. @@ -329,7 +368,9 @@ export class Pinterest extends IonicNativePlugin { successIndex: 2, errorIndex: 3 }) - createBoard(name: string, desc?: string): Promise { return; } + createBoard(name: string, desc?: string): Promise { + return; + } /** * Get a Pin by ID. @@ -341,7 +382,9 @@ export class Pinterest extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - getPin(pinId: string, fields?: string): Promise { return; } + getPin(pinId: string, fields?: string): Promise { + return; + } /** * Deletes a pin @@ -349,7 +392,9 @@ export class Pinterest extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - deletePin(pinId: string): Promise { return; } + deletePin(pinId: string): Promise { + return; + } /** * Creates a Pin @@ -363,6 +408,12 @@ export class Pinterest extends IonicNativePlugin { successIndex: 4, errorIndex: 5 }) - createPin(note: string, boardId: string, imageUrl: string, link?: string): Promise { return; } - + createPin( + note: string, + boardId: string, + imageUrl: string, + link?: string + ): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/power-management/index.ts b/src/@ionic-native/plugins/power-management/index.ts index ecd86188e..a429c9318 100644 --- a/src/@ionic-native/plugins/power-management/index.ts +++ b/src/@ionic-native/plugins/power-management/index.ts @@ -1,5 +1,6 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; + /** * @name Power Management * @description @@ -34,21 +35,27 @@ export class PowerManagement extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - acquire(): Promise { return; } + acquire(): Promise { + return; + } /** * This acquires a partial wakelock, allowing the screen to be dimmed. * @returns {Promise} */ @Cordova() - dim(): Promise { return; } + dim(): Promise { + return; + } /** * Release the wakelock. It's important to do this when you're finished with the wakelock, to avoid unnecessary battery drain. * @returns {Promise} */ @Cordova() - release(): Promise { return; } + release(): Promise { + return; + } /** * By default, the plugin will automatically release a wakelock when your app is paused (e.g. when the screen is turned off, or the user switches to another app). @@ -57,5 +64,7 @@ export class PowerManagement extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - setReleaseOnPause(set: boolean): Promise { return; } + setReleaseOnPause(set: boolean): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/printer/index.ts b/src/@ionic-native/plugins/printer/index.ts index bffe3f474..64d3f6453 100644 --- a/src/@ionic-native/plugins/printer/index.ts +++ b/src/@ionic-native/plugins/printer/index.ts @@ -1,5 +1,10 @@ import { Injectable } from '@angular/core'; -import { Cordova, CordovaCheck, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { + Cordova, + CordovaCheck, + IonicNativePlugin, + Plugin +} from '@ionic-native/core'; export interface PrintOptions { /** @@ -74,14 +79,12 @@ export interface PrintOptions { }) @Injectable() export class Printer extends IonicNativePlugin { - /** * Checks whether the device is capable of printing (uses `check()` internally) * @returns {Promise} */ isAvailable(): Promise { - return this.check() - .then((res: any) => Promise.resolve(res.avail)); + return this.check().then((res: any) => Promise.resolve(res.avail)); } /** @@ -91,10 +94,9 @@ export class Printer extends IonicNativePlugin { @CordovaCheck() check(): Promise { return new Promise((resolve: Function) => { - Printer.getPlugin() - .check((avail: boolean, count: any) => { - resolve({ avail, count }); - }); + Printer.getPlugin().check((avail: boolean, count: any) => { + resolve({ avail, count }); + }); }); } @@ -103,7 +105,9 @@ export class Printer extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - pick(): Promise { return; } + pick(): Promise { + return; + } /** * Sends content to the printer. @@ -115,6 +119,7 @@ export class Printer extends IonicNativePlugin { successIndex: 2, errorIndex: 4 }) - print(content: string | HTMLElement, options?: PrintOptions): Promise { return; } - + print(content: string | HTMLElement, options?: PrintOptions): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/pro/index.ts b/src/@ionic-native/plugins/pro/index.ts index f11477798..c2da879cf 100644 --- a/src/@ionic-native/plugins/pro/index.ts +++ b/src/@ionic-native/plugins/pro/index.ts @@ -1,5 +1,11 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, CordovaCheck, CordovaInstance, IonicNativePlugin } from '@ionic-native/core'; +import { + Cordova, + CordovaCheck, + CordovaInstance, + IonicNativePlugin, + Plugin +} from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; /** @@ -35,22 +41,25 @@ export interface DeployConfig { * @hidden */ export class ProDeploy { - - constructor(private _objectInstance: any) { } + constructor(private _objectInstance: any) {} /** * Re-initialize Deploy plugin with a new App ID and host. Not used in most cases. * @param config A valid Deploy config object */ @CordovaInstance() - init(config: DeployConfig): Promise { return; } + init(config: DeployConfig): Promise { + return; + } /** * Check a channel for an available update * @return {Promise} Resolves with 'true' or 'false', or rejects with an error. */ @CordovaInstance() - check(): Promise { return; } + check(): Promise { + return; + } /** * Download an available version @@ -59,7 +68,9 @@ export class ProDeploy { @CordovaInstance({ observable: true }) - download(): Observable { return; } + download(): Observable { + return; + } /** * Unzip the latest downloaded version @@ -68,33 +79,43 @@ export class ProDeploy { @CordovaInstance({ observable: true }) - extract(): Observable { return; } + extract(): Observable { + return; + } /** * Reload app with the deployed version */ @CordovaInstance() - redirect(): Promise { return; } + redirect(): Promise { + return; + } /** * Get info about the version running on the device * @return {Promise} Information about the current version running on the app. */ @CordovaInstance() - info(): Promise { return; } + info(): Promise { + return; + } /** * List versions stored on the device */ @CordovaInstance() - getVersions(): Promise { return; } + getVersions(): Promise { + return; + } /** * Delete a version stored on the device by UUID * @param version A version UUID */ @CordovaInstance() - deleteVersion(version: string): Promise { return; } + deleteVersion(version: string): Promise { + return; + } } /** @@ -108,17 +129,17 @@ export class ProDeploy { * * * constructor(private pro: Pro) { } - * + * * // Get app info * this.pro.getAppInfo().then((res: AppInfo) => { * console.log(res) * }) - * + * * // Get live update info * this.pro.deploy.info().then((res: DeployInfo) => { * console.log(res) * }) - * ``` + * ``` */ @Plugin({ pluginName: 'Pro', @@ -126,7 +147,8 @@ export class ProDeploy { pluginRef: 'IonicCordova', repo: 'https://github.com/ionic-team/cordova-plugin-ionic', platforms: ['Android', 'iOS'], - install: 'ionic cordova plugin add cordova-plugin-ionic --save --variable APP_ID="XXXXXXXX" --variable CHANNEL_NAME="Channel"' + install: + 'ionic cordova plugin add cordova-plugin-ionic --save --variable APP_ID="XXXXXXXX" --variable CHANNEL_NAME="Channel"' }) @Injectable() export class Pro extends IonicNativePlugin { @@ -150,34 +172,43 @@ export class Pro extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves when something happens */ @Cordova() - enableCrashLogging(): Promise { return; } + enableCrashLogging(): Promise { + return; + } /** * Not yet implemented * @return {Promise} Returns a promise that resolves when something happens */ @Cordova() - checkForPendingCrash(): Promise { return; } + checkForPendingCrash(): Promise { + return; + } /** * Not yet implemented * @return {Promise} Returns a promise that resolves when something happens */ @Cordova() - loadPendingCrash(): Promise { return; } + loadPendingCrash(): Promise { + return; + } /** * Not yet implemented * @return {Promise} Returns a promise that resolves when something happens */ @Cordova() - forceCrash(): Promise { return; } + forceCrash(): Promise { + return; + } /** * Get information about the currently running app * @return {Promise} Returns a promise that resolves with current app info */ @Cordova() - getAppInfo(): Promise { return; } + getAppInfo(): Promise { + return; + } } - diff --git a/src/@ionic-native/plugins/push/index.ts b/src/@ionic-native/plugins/push/index.ts index b58cfbadb..542a6b540 100644 --- a/src/@ionic-native/plugins/push/index.ts +++ b/src/@ionic-native/plugins/push/index.ts @@ -1,10 +1,18 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, CordovaInstance, checkAvailability, IonicNativePlugin } from '@ionic-native/core'; +import { + checkAvailability, + Cordova, + CordovaInstance, + IonicNativePlugin, + Plugin +} from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; declare const window: any; -export type EventResponse = RegistrationEventResponse & NotificationEventResponse & Error; +export type EventResponse = RegistrationEventResponse & + NotificationEventResponse & + Error; export interface RegistrationEventResponse { /** @@ -13,7 +21,6 @@ export interface RegistrationEventResponse { registrationId: string; } - export interface NotificationEventResponse { /** * The text of the push message sent from the 3rd party service. @@ -203,7 +210,6 @@ export interface BrowserPushOptions { * Default: http://push.api.phonegap.com/v1/push Optional. */ pushServiceURL?: string; - } export interface PushOptions { @@ -313,7 +319,6 @@ export type PushEvent = string; }) @Injectable() export class Push extends IonicNativePlugin { - /** * Init push notifications * @param options {PushOptions} @@ -328,29 +333,36 @@ export class Push extends IonicNativePlugin { * @return {Promise<{isEnabled: boolean}>} Returns a Promise that resolves with an object with one property: isEnabled, a boolean that indicates if permission has been granted. */ @Cordova() - hasPermission(): Promise<{ isEnabled: boolean }> { return; } + hasPermission(): Promise<{ isEnabled: boolean }> { + return; + } /** * Create a new notification channel for Android O and above. * @param channel {Channel} */ @Cordova() - createChannel(channel: Channel): Promise { return; } + createChannel(channel: Channel): Promise { + return; + } /** * Delete a notification channel for Android O and above. * @param id */ @Cordova() - deleteChannel(id: string): Promise { return; } + deleteChannel(id: string): Promise { + return; + } /** * Returns a list of currently configured channels. * @return {Promise} */ @Cordova() - listChannels(): Promise { return; } - + listChannels(): Promise { + return; + } } /** @@ -362,11 +374,12 @@ export class Push extends IonicNativePlugin { pluginRef: 'PushNotification' }) export class PushObject { - private _objectInstance: any; constructor(options: PushOptions) { - if (checkAvailability('PushNotification', 'init', 'PushNotification') === true) { + if ( + checkAvailability('PushNotification', 'init', 'PushNotification') === true + ) { this._objectInstance = window.PushNotification.init(options); } } @@ -381,7 +394,9 @@ export class PushObject { clearFunction: 'off', clearWithArgs: true }) - on(event: PushEvent): Observable { return; } + on(event: PushEvent): Observable { + return; + } /** * The unregister method is used when the application no longer wants to receive push notifications. @@ -389,7 +404,9 @@ export class PushObject { * so you will need to re-register them if you want them to function again without an application reload. */ @CordovaInstance() - unregister(): Promise { return; } + unregister(): Promise { + return; + } /** * Set the badge count visible when the app is not running @@ -402,13 +419,17 @@ export class PushObject { @CordovaInstance({ callbackOrder: 'reverse' }) - setApplicationIconBadgeNumber(count?: number): Promise { return; }; + setApplicationIconBadgeNumber(count?: number): Promise { + return; + } /** * Get the current badge count visible when the app is not running * successHandler gets called with an integer which is the current badge count */ @CordovaInstance() - getApplicationIconBadgeNumber(): Promise { return; } + getApplicationIconBadgeNumber(): Promise { + return; + } /** * iOS only @@ -419,13 +440,17 @@ export class PushObject { @CordovaInstance({ callbackOrder: 'reverse' }) - finish(id?: string): Promise { return; } + finish(id?: string): Promise { + return; + } /** * Tells the OS to clear all notifications from the Notification Center */ @CordovaInstance() - clearAllNotifications(): Promise { return; } + clearAllNotifications(): Promise { + return; + } /** * The subscribe method is used when the application wants to subscribe a new topic to receive push notifications. @@ -433,7 +458,9 @@ export class PushObject { * @return {Promise} */ @CordovaInstance() - subscribe(topic: string): Promise { return; } + subscribe(topic: string): Promise { + return; + } /** * The unsubscribe method is used when the application no longer wants to receive push notifications from a specific topic but continue to receive other push messages. @@ -441,6 +468,7 @@ export class PushObject { * @return {Promise} */ @CordovaInstance() - unsubscribe(topic: string): Promise { return; } - + unsubscribe(topic: string): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/qqsdk/index.ts b/src/@ionic-native/plugins/qqsdk/index.ts index 11cf5dace..dabc73583 100644 --- a/src/@ionic-native/plugins/qqsdk/index.ts +++ b/src/@ionic-native/plugins/qqsdk/index.ts @@ -1,8 +1,7 @@ -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface QQShareOptions { - /** * The clinet type, QQ or TIM * Default is QQ @@ -158,12 +157,12 @@ export interface QQShareOptions { pluginRef: 'QQSDK', repo: 'https://github.com/iVanPan/Cordova_QQ', platforms: ['Android', 'iOS'], - install: 'ionic cordova plugin add cordova-plugin-qqsdk --variable QQ_APP_ID=YOUR_QQ_APPID', - installVariables: ['QQ_APP_ID'], + install: + 'ionic cordova plugin add cordova-plugin-qqsdk --variable QQ_APP_ID=YOUR_QQ_APPID', + installVariables: ['QQ_APP_ID'] }) @Injectable() export class QQSDK extends IonicNativePlugin { - /** * QQ Share Scene */ diff --git a/src/@ionic-native/plugins/qr-scanner/index.ts b/src/@ionic-native/plugins/qr-scanner/index.ts index da96e1ea4..7cf121571 100644 --- a/src/@ionic-native/plugins/qr-scanner/index.ts +++ b/src/@ionic-native/plugins/qr-scanner/index.ts @@ -1,5 +1,5 @@ -import { Plugin, IonicNativePlugin, Cordova } from '@ionic-native/core'; import { Injectable } from '@angular/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export interface QRScannerStatus { @@ -115,7 +115,6 @@ export interface QRScannerStatus { }) @Injectable() export class QRScanner extends IonicNativePlugin { - /** * Request permission to use QR scanner. * @return {Promise} @@ -123,7 +122,9 @@ export class QRScanner extends IonicNativePlugin { @Cordova({ callbackStyle: 'node' }) - prepare(): Promise { return; } + prepare(): Promise { + return; + } /** * Call this method to enable scanning. You must then call the `show` method to make the camera preview visible. @@ -134,21 +135,27 @@ export class QRScanner extends IonicNativePlugin { observable: true, clearFunction: 'cancelScan' }) - scan(): Observable { return; } + scan(): Observable { + return; + } /** * Configures the native webview to have a transparent background, then sets the background of the and DOM elements to transparent, allowing the webview to re-render with the transparent background. * @returns {Promise} */ @Cordova() - show(): Promise { return; } + show(): Promise { + return; + } /** * Configures the native webview to be opaque with a white background, covering the video preview. * @returns {Promise} */ @Cordova() - hide(): Promise { return; } + hide(): Promise { + return; + } /** * Enable the device's light (for scanning in low-light environments). @@ -157,14 +164,18 @@ export class QRScanner extends IonicNativePlugin { @Cordova({ callbackStyle: 'node' }) - enableLight(): Promise { return; } + enableLight(): Promise { + return; + } /** * Destroy the scanner instance. * @returns {Promise} */ @Cordova() - destroy(): Promise { return; } + destroy(): Promise { + return; + } /** * Disable the device's light. @@ -173,7 +184,9 @@ export class QRScanner extends IonicNativePlugin { @Cordova({ callbackStyle: 'node' }) - disableLight(): Promise { return; } + disableLight(): Promise { + return; + } /** * Use front camera @@ -182,7 +195,9 @@ export class QRScanner extends IonicNativePlugin { @Cordova({ callbackStyle: 'node' }) - useFrontCamera(): Promise { return; } + useFrontCamera(): Promise { + return; + } /** * Use back camera @@ -191,7 +206,9 @@ export class QRScanner extends IonicNativePlugin { @Cordova({ callbackStyle: 'node' }) - useBackCamera(): Promise { return; } + useBackCamera(): Promise { + return; + } /** * Set camera to be used. @@ -201,28 +218,36 @@ export class QRScanner extends IonicNativePlugin { @Cordova({ callbackStyle: 'node' }) - useCamera(camera: number): Promise { return; } + useCamera(camera: number): Promise { + return; + } /** * Pauses the video preview on the current frame and pauses scanning. * @return {Promise} */ @Cordova() - pausePreview(): Promise { return; } + pausePreview(): Promise { + return; + } /** * Resumse the video preview and resumes scanning. * @return {Promise} */ @Cordova() - resumePreview(): Promise { return; } + resumePreview(): Promise { + return; + } /** * Returns permission status * @return {Promise} */ @Cordova() - getStatus(): Promise { return; } + getStatus(): Promise { + return; + } /** * Opens settings to edit app permissions. @@ -231,5 +256,4 @@ export class QRScanner extends IonicNativePlugin { sync: true }) openSettings(): void {} - } diff --git a/src/@ionic-native/plugins/regula-document-reader/index.ts b/src/@ionic-native/plugins/regula-document-reader/index.ts index 1628b8f9e..7094c5f68 100644 --- a/src/@ionic-native/plugins/regula-document-reader/index.ts +++ b/src/@ionic-native/plugins/regula-document-reader/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @paid @@ -25,11 +25,11 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; pluginRef: 'DocumentReader', repo: 'https://github.com/regulaforensics/cordova-plugin-documentreader.git', platforms: ['iOS', 'Android'], - install: 'ionic plugin add cordova-plugin-documentreader --variable CAMERA_USAGE_DESCRIPTION="To take photo"', + install: + 'ionic plugin add cordova-plugin-documentreader --variable CAMERA_USAGE_DESCRIPTION="To take photo"' }) @Injectable() export class RegulaDocumentReader extends IonicNativePlugin { - /** * Initialize the scanner * @param license {any} License data @@ -42,5 +42,7 @@ export class RegulaDocumentReader extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves when results was got, and fails when not */ @Cordova() - scanDocument(): Promise { return; } + scanDocument(): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/rollbar/index.ts b/src/@ionic-native/plugins/rollbar/index.ts index 65f8172db..6ac19991b 100644 --- a/src/@ionic-native/plugins/rollbar/index.ts +++ b/src/@ionic-native/plugins/rollbar/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @beta @@ -24,18 +24,19 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; plugin: 'resgrid-cordova-plugins-rollbar', pluginRef: 'cordova.plugins.Rollbar', repo: 'https://github.com/Resgrid/cordova-plugins-rollbar', - install: 'ionic cordova plugin add resgrid-cordova-plugins-rollbar --variable ROLLBAR_ACCESS_TOKEN="YOUR_ROLLBAR_ACCEESS_TOKEN" --variable ROLLBAR_ENVIRONMENT="ROLLBAR_ENVIRONMENT"', + install: + 'ionic cordova plugin add resgrid-cordova-plugins-rollbar --variable ROLLBAR_ACCESS_TOKEN="YOUR_ROLLBAR_ACCEESS_TOKEN" --variable ROLLBAR_ENVIRONMENT="ROLLBAR_ENVIRONMENT"', installVariables: ['ROLLBAR_ACCESS_TOKEN', 'ROLLBAR_ENVIRONMENT'], platforms: ['Android', 'iOS'] }) @Injectable() export class Rollbar extends IonicNativePlugin { - /** * This function initializes the monitoring of your application * @return {Promise} Returns a promise that resolves when the plugin successfully initializes */ @Cordova() - init(): Promise { return; } - + init(): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/safari-view-controller/index.ts b/src/@ionic-native/plugins/safari-view-controller/index.ts index a4eba210c..e3d411919 100644 --- a/src/@ionic-native/plugins/safari-view-controller/index.ts +++ b/src/@ionic-native/plugins/safari-view-controller/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export interface SafariViewControllerOptions { @@ -64,13 +64,14 @@ export interface SafariViewControllerOptions { }) @Injectable() export class SafariViewController extends IonicNativePlugin { - /** * Checks if SafariViewController is available * @returns {Promise} */ @Cordova() - isAvailable(): Promise { return; } + isAvailable(): Promise { + return; + } /** * Shows Safari View Controller @@ -82,27 +83,35 @@ export class SafariViewController extends IonicNativePlugin { errorIndex: 2, observable: true }) - show(options?: SafariViewControllerOptions): Observable { return; } + show(options?: SafariViewControllerOptions): Observable { + return; + } /** * Hides Safari View Controller */ @Cordova() - hide(): Promise { return; } + hide(): Promise { + return; + } /** * Tries to connect to the Chrome's custom tabs service. you must call this method before calling any of the other methods listed below. * @returns {Promise} */ @Cordova() - connectToService(): Promise { return; } + connectToService(): Promise { + return; + } /** * Call this method whenever there's a chance the user will open an external url. * @returns {Promise} */ @Cordova() - warmUp(): Promise { return; } + warmUp(): Promise { + return; + } /** * For even better performance optimization, call this methods if there's more than a 50% chance the user will open a certain URL. @@ -110,6 +119,7 @@ export class SafariViewController extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - mayLaunchUrl(url: string): Promise { return; } - + mayLaunchUrl(url: string): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/screen-orientation/index.ts b/src/@ionic-native/plugins/screen-orientation/index.ts index 99709bec2..1b3161444 100644 --- a/src/@ionic-native/plugins/screen-orientation/index.ts +++ b/src/@ionic-native/plugins/screen-orientation/index.ts @@ -1,5 +1,10 @@ import { Injectable } from '@angular/core'; -import { Cordova, CordovaProperty, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { + Cordova, + CordovaProperty, + IonicNativePlugin, + Plugin +} from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; /** @@ -35,7 +40,7 @@ import { Observable } from 'rxjs/Observable'; * ); * * ``` - * + * * @advanced * * Accepted orientation values: @@ -59,7 +64,6 @@ import { Observable } from 'rxjs/Observable'; }) @Injectable() export class ScreenOrientation extends IonicNativePlugin { - /** * Convenience enum for possible orientations */ @@ -81,7 +85,9 @@ export class ScreenOrientation extends IonicNativePlugin { eventObservable: true, event: 'orientationchange' }) - onChange(): Observable { return; } + onChange(): Observable { + return; + } /** * Lock the orientation to the passed value. @@ -90,18 +96,18 @@ export class ScreenOrientation extends IonicNativePlugin { * @return {Promise} */ @Cordova({ otherPromise: true }) - lock(orientation: string): Promise { return; } + lock(orientation: string): Promise { + return; + } /** * Unlock and allow all orientations. */ @Cordova({ sync: true }) - unlock(): void { } + unlock(): void {} /** * Get the current orientation of the device. */ - @CordovaProperty - type: string; - + @CordovaProperty type: string; } diff --git a/src/@ionic-native/plugins/screenshot/index.ts b/src/@ionic-native/plugins/screenshot/index.ts index cd0107492..d9911256d 100644 --- a/src/@ionic-native/plugins/screenshot/index.ts +++ b/src/@ionic-native/plugins/screenshot/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { IonicNativePlugin, Plugin } from '@ionic-native/core'; declare const navigator: any; @@ -30,7 +30,6 @@ declare const navigator: any; }) @Injectable() export class Screenshot extends IonicNativePlugin { - /** * Takes screenshot and saves the image * @@ -42,22 +41,20 @@ export class Screenshot extends IonicNativePlugin { * @returns {Promise} */ save(format?: string, quality?: number, filename?: string): Promise { - return new Promise( - (resolve, reject) => { - navigator.screenshot.save( - (error: any, result: any) => { - if (error) { - reject(error); - } else { - resolve(result); - } - }, - format, - quality, - filename - ); - } - ); + return new Promise((resolve, reject) => { + navigator.screenshot.save( + (error: any, result: any) => { + if (error) { + reject(error); + } else { + resolve(result); + } + }, + format, + quality, + filename + ); + }); } /** @@ -68,19 +65,14 @@ export class Screenshot extends IonicNativePlugin { * @returns {Promise} */ URI(quality?: number): Promise { - return new Promise( - (resolve, reject) => { - navigator.screenshot.URI( - (error: any, result: any) => { - if (error) { - reject(error); - } else { - resolve(result); - } - }, - quality - ); - } - ); + return new Promise((resolve, reject) => { + navigator.screenshot.URI((error: any, result: any) => { + if (error) { + reject(error); + } else { + resolve(result); + } + }, quality); + }); } } diff --git a/src/@ionic-native/plugins/secure-storage/index.ts b/src/@ionic-native/plugins/secure-storage/index.ts index 7c1d9fb18..25b191ae2 100644 --- a/src/@ionic-native/plugins/secure-storage/index.ts +++ b/src/@ionic-native/plugins/secure-storage/index.ts @@ -1,12 +1,16 @@ import { Injectable } from '@angular/core'; -import { CordovaInstance, Plugin, CordovaCheck, IonicNativePlugin } from '@ionic-native/core'; +import { + CordovaCheck, + CordovaInstance, + IonicNativePlugin, + Plugin +} from '@ionic-native/core'; /** * @hidden */ export class SecureStorageObject { - - constructor(private _objectInstance: any) { } + constructor(private _objectInstance: any) {} /** * Gets a stored item @@ -16,7 +20,9 @@ export class SecureStorageObject { @CordovaInstance({ callbackOrder: 'reverse' }) - get(key: string): Promise { return; } + get(key: string): Promise { + return; + } /** * Stores a value @@ -27,7 +33,9 @@ export class SecureStorageObject { @CordovaInstance({ callbackOrder: 'reverse' }) - set(key: string, value: string): Promise { return; } + set(key: string, value: string): Promise { + return; + } /** * Removes a single stored item @@ -37,7 +45,9 @@ export class SecureStorageObject { @CordovaInstance({ callbackOrder: 'reverse' }) - remove(key: string): Promise { return; } + remove(key: string): Promise { + return; + } /** * Get all references from the storage. @@ -46,7 +56,9 @@ export class SecureStorageObject { @CordovaInstance({ callbackOrder: 'reverse' }) - keys(): Promise { return; } + keys(): Promise { + return; + } /** * Clear all references from the storage. @@ -55,15 +67,18 @@ export class SecureStorageObject { @CordovaInstance({ callbackOrder: 'reverse' }) - clear(): Promise { return; } + clear(): Promise { + return; + } /** * Brings up the screen-lock settings * @returns {Promise} */ @CordovaInstance() - secureDevice(): Promise { return; } - + secureDevice(): Promise { + return; + } } /** @@ -121,7 +136,6 @@ export class SecureStorageObject { }) @Injectable() export class SecureStorage extends IonicNativePlugin { - /** * Creates a namespaced storage. * @param store {string} @@ -130,8 +144,11 @@ export class SecureStorage extends IonicNativePlugin { @CordovaCheck() create(store: string): Promise { return new Promise((res: Function, rej: Function) => { - const instance = new (SecureStorage.getPlugin())(() => res(new SecureStorageObject(instance)), rej, store); + const instance = new (SecureStorage.getPlugin())( + () => res(new SecureStorageObject(instance)), + rej, + store + ); }); } - } diff --git a/src/@ionic-native/plugins/serial/index.ts b/src/@ionic-native/plugins/serial/index.ts index 3c63fd9d0..bf5ce79b1 100644 --- a/src/@ionic-native/plugins/serial/index.ts +++ b/src/@ionic-native/plugins/serial/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; declare var serial: any; @@ -58,7 +58,6 @@ export interface SerialOpenOptions { }) @Injectable() export class Serial extends IonicNativePlugin { - /** * Request permission to connect to a serial device * @@ -69,7 +68,9 @@ export class Serial extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - requestPermission(options?: SerialPermissionOptions): Promise { return; } + requestPermission(options?: SerialPermissionOptions): Promise { + return; + } /** * Open connection to a serial device @@ -78,7 +79,9 @@ export class Serial extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves when the serial connection is opened */ @Cordova() - open(options: SerialOpenOptions): Promise { return; } + open(options: SerialOpenOptions): Promise { + return; + } /** * Write to a serial connection @@ -87,7 +90,9 @@ export class Serial extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves when the write is complete */ @Cordova() - write(data: any): Promise { return; } + write(data: any): Promise { + return; + } /** * Write hex to a serial connection @@ -96,7 +101,9 @@ export class Serial extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves when the write is complete */ @Cordova() - writeHex(data: any): Promise { return; } + writeHex(data: any): Promise { + return; + } /** * Read from a serial connection @@ -104,7 +111,9 @@ export class Serial extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves with data read from the serial connection */ @Cordova() - read(): Promise { return; } + read(): Promise { + return; + } /** * Watch the incoming data from the serial connection. Clear the watch by unsubscribing from the observable @@ -114,7 +123,9 @@ export class Serial extends IonicNativePlugin { @Cordova({ observable: true }) - registerReadCallback(): Observable { return; } + registerReadCallback(): Observable { + return; + } /** * Close the serial connection @@ -122,6 +133,7 @@ export class Serial extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves when the serial connection is closed */ @Cordova() - close(): Promise { return; } - + close(): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/shake/index.ts b/src/@ionic-native/plugins/shake/index.ts index 9c731ecd0..00a242aad 100644 --- a/src/@ionic-native/plugins/shake/index.ts +++ b/src/@ionic-native/plugins/shake/index.ts @@ -1,6 +1,7 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; + /** * @name Shake * @description Handles shake gesture @@ -39,6 +40,7 @@ export class Shake extends IonicNativePlugin { successIndex: 0, errorIndex: 2 }) - startWatch(sensitivity?: number): Observable { return; } - + startWatch(sensitivity?: number): Observable { + return; + } } diff --git a/src/@ionic-native/plugins/sim/index.ts b/src/@ionic-native/plugins/sim/index.ts index 4e7f97f15..63b482004 100644 --- a/src/@ionic-native/plugins/sim/index.ts +++ b/src/@ionic-native/plugins/sim/index.ts @@ -1,6 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; - +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name Sim @@ -47,7 +46,9 @@ export class Sim extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - getSimInfo(): Promise { return; } + getSimInfo(): Promise { + return; + } /** * Check permission @@ -56,7 +57,9 @@ export class Sim extends IonicNativePlugin { @Cordova({ platforms: ['Android'] }) - hasReadPermission(): Promise { return; } + hasReadPermission(): Promise { + return; + } /** * Request permission @@ -65,5 +68,7 @@ export class Sim extends IonicNativePlugin { @Cordova({ platforms: ['Android'] }) - requestReadPermission(): Promise { return; } + requestReadPermission(): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/sms/index.ts b/src/@ionic-native/plugins/sms/index.ts index eb147542b..0e7ef9a36 100644 --- a/src/@ionic-native/plugins/sms/index.ts +++ b/src/@ionic-native/plugins/sms/index.ts @@ -1,28 +1,23 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; - +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * Options for sending an SMS */ export interface SmsOptions { - /** * Set to true to replace \n by a new line. Default: false */ replaceLineBreaks?: boolean; android?: SmsOptionsAndroid; - } export interface SmsOptionsAndroid { - /** * Set to "INTENT" to send SMS with the native android SMS messaging. Leaving it empty will send the SMS without opening any app. */ intent?: string; - } /** @@ -57,7 +52,6 @@ export interface SmsOptionsAndroid { }) @Injectable() export class SMS extends IonicNativePlugin { - /** * Sends sms to a number * @param phoneNumber {string|Array} Phone number @@ -73,7 +67,9 @@ export class SMS extends IonicNativePlugin { phoneNumber: string | string[], message: string, options?: SmsOptions - ): Promise { return; } + ): Promise { + return; + } /** * This function lets you know if the app has permission to send SMS @@ -82,6 +78,7 @@ export class SMS extends IonicNativePlugin { @Cordova({ platforms: ['Android'] }) - hasPermission(): Promise { return; } - + hasPermission(): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/social-sharing/index.ts b/src/@ionic-native/plugins/social-sharing/index.ts index f9665a9a9..2cfca88ec 100644 --- a/src/@ionic-native/plugins/social-sharing/index.ts +++ b/src/@ionic-native/plugins/social-sharing/index.ts @@ -1,6 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; - +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name Social Sharing @@ -53,7 +52,14 @@ export class SocialSharing extends IonicNativePlugin { successIndex: 4, errorIndex: 5 }) - share(message?: string, subject?: string, file?: string | string[], url?: string): Promise { return; } + share( + message?: string, + subject?: string, + file?: string | string[], + url?: string + ): Promise { + return; + } /** * Shares using the share sheet with additional options and returns a result object or an error message (requires plugin version 5.1.0+) @@ -63,7 +69,15 @@ export class SocialSharing extends IonicNativePlugin { @Cordova({ platforms: ['iOS', 'Android'] }) - shareWithOptions(options: { message?: string, subject?: string, files?: string | string[], url?: string, chooserTitle?: string }): Promise { return; } + shareWithOptions(options: { + message?: string; + subject?: string; + files?: string | string[]; + url?: string; + chooserTitle?: string; + }): Promise { + return; + } /** * Checks if you can share via a specific app. @@ -79,7 +93,15 @@ export class SocialSharing extends IonicNativePlugin { errorIndex: 6, platforms: ['iOS', 'Android'] }) - canShareVia(appName: string, message?: string, subject?: string, image?: string, url?: string): Promise { return; } + canShareVia( + appName: string, + message?: string, + subject?: string, + image?: string, + url?: string + ): Promise { + return; + } /** * Shares directly to Twitter @@ -93,7 +115,9 @@ export class SocialSharing extends IonicNativePlugin { errorIndex: 4, platforms: ['iOS', 'Android'] }) - shareViaTwitter(message: string, image?: string, url?: string): Promise { return; } + shareViaTwitter(message: string, image?: string, url?: string): Promise { + return; + } /** * Shares directly to Facebook @@ -107,8 +131,13 @@ export class SocialSharing extends IonicNativePlugin { errorIndex: 4, platforms: ['iOS', 'Android'] }) - shareViaFacebook(message: string, image?: string, url?: string): Promise { return; } - + shareViaFacebook( + message: string, + image?: string, + url?: string + ): Promise { + return; + } /** * Shares directly to Facebook with a paste message hint @@ -123,7 +152,14 @@ export class SocialSharing extends IonicNativePlugin { errorIndex: 5, platforms: ['iOS', 'Android'] }) - shareViaFacebookWithPasteMessageHint(message: string, image?: string, url?: string, pasteMessageHint?: string): Promise { return; } + shareViaFacebookWithPasteMessageHint( + message: string, + image?: string, + url?: string, + pasteMessageHint?: string + ): Promise { + return; + } /** * Shares directly to Instagram @@ -134,7 +170,9 @@ export class SocialSharing extends IonicNativePlugin { @Cordova({ platforms: ['iOS', 'Android'] }) - shareViaInstagram(message: string, image: string): Promise { return; } + shareViaInstagram(message: string, image: string): Promise { + return; + } /** * Shares directly to WhatsApp @@ -148,7 +186,13 @@ export class SocialSharing extends IonicNativePlugin { errorIndex: 4, platforms: ['iOS', 'Android'] }) - shareViaWhatsApp(message: string, image?: string, url?: string): Promise { return; } + shareViaWhatsApp( + message: string, + image?: string, + url?: string + ): Promise { + return; + } /** * Shares directly to a WhatsApp Contact @@ -163,7 +207,14 @@ export class SocialSharing extends IonicNativePlugin { errorIndex: 5, platforms: ['iOS', 'Android'] }) - shareViaWhatsAppToReceiver(receiver: string, message: string, image?: string, url?: string): Promise { return; } + shareViaWhatsAppToReceiver( + receiver: string, + message: string, + image?: string, + url?: string + ): Promise { + return; + } /** * Share via SMS @@ -174,7 +225,9 @@ export class SocialSharing extends IonicNativePlugin { @Cordova({ platforms: ['iOS', 'Android'] }) - shareViaSMS(messge: string, phoneNumber: string): Promise { return; } + shareViaSMS(messge: string, phoneNumber: string): Promise { + return; + } /** * Checks if you can share via email @@ -183,7 +236,9 @@ export class SocialSharing extends IonicNativePlugin { @Cordova({ platforms: ['iOS', 'Android'] }) - canShareViaEmail(): Promise { return; } + canShareViaEmail(): Promise { + return; + } /** * Share via Email @@ -200,7 +255,16 @@ export class SocialSharing extends IonicNativePlugin { successIndex: 6, errorIndex: 7 }) - shareViaEmail(message: string, subject: string, to: string[], cc?: string[], bcc?: string[], files?: string | string[]): Promise { return; } + shareViaEmail( + message: string, + subject: string, + to: string[], + cc?: string[], + bcc?: string[], + files?: string | string[] + ): Promise { + return; + } /** * Share via AppName @@ -216,7 +280,15 @@ export class SocialSharing extends IonicNativePlugin { errorIndex: 6, platforms: ['iOS', 'Android'] }) - shareVia(appName: string, message: string, subject?: string, image?: string, url?: string): Promise { return; } + shareVia( + appName: string, + message: string, + subject?: string, + image?: string, + url?: string + ): Promise { + return; + } /** * defines the popup position before call the share method. @@ -226,5 +298,5 @@ export class SocialSharing extends IonicNativePlugin { sync: true, platforms: ['iOS'] }) - setIPadPopupCoordinates(targetBounds: string): void { } + setIPadPopupCoordinates(targetBounds: string): void {} } diff --git a/src/@ionic-native/plugins/speech-recognition/index.ts b/src/@ionic-native/plugins/speech-recognition/index.ts index e3e265796..f426748fd 100644 --- a/src/@ionic-native/plugins/speech-recognition/index.ts +++ b/src/@ionic-native/plugins/speech-recognition/index.ts @@ -1,8 +1,10 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; -export type SpeechRecognitionListeningOptions = SpeechRecognitionListeningOptionsIOS | SpeechRecognitionListeningOptionsAndroid; +export type SpeechRecognitionListeningOptions = + | SpeechRecognitionListeningOptionsIOS + | SpeechRecognitionListeningOptionsAndroid; export interface SpeechRecognitionListeningOptionsIOS { /** @@ -101,7 +103,6 @@ export interface SpeechRecognitionListeningOptionsAndroid { }) @Injectable() export class SpeechRecognition extends IonicNativePlugin { - /** * Check feature available * @return {Promise} @@ -117,10 +118,11 @@ export class SpeechRecognition extends IonicNativePlugin { */ @Cordova({ callbackOrder: 'reverse', - observable: true, - + observable: true }) - startListening(options?: SpeechRecognitionListeningOptions): Observable> { + startListening( + options?: SpeechRecognitionListeningOptions + ): Observable> { return; } @@ -160,5 +162,4 @@ export class SpeechRecognition extends IonicNativePlugin { requestPermission(): Promise { return; } - } diff --git a/src/@ionic-native/plugins/spinner-dialog/index.ts b/src/@ionic-native/plugins/spinner-dialog/index.ts index 7b032b0f8..69c1910c1 100644 --- a/src/@ionic-native/plugins/spinner-dialog/index.ts +++ b/src/@ionic-native/plugins/spinner-dialog/index.ts @@ -50,7 +50,6 @@ export interface SpinnerDialogIOSOptions { }) @Injectable() export class SpinnerDialog extends IonicNativePlugin { - /** * Shows the spinner dialog * @param title {string} Spinner title (shows on Android only) @@ -61,7 +60,12 @@ export class SpinnerDialog extends IonicNativePlugin { @Cordova({ sync: true }) - show(title?: string, message?: string, cancelCallback?: any, iOSOptions?: SpinnerDialogIOSOptions): void { } + show( + title?: string, + message?: string, + cancelCallback?: any, + iOSOptions?: SpinnerDialogIOSOptions + ): void {} /** * Hides the spinner dialog if visible @@ -69,6 +73,5 @@ export class SpinnerDialog extends IonicNativePlugin { @Cordova({ sync: true }) - hide(): void { } - + hide(): void {} } diff --git a/src/@ionic-native/plugins/splash-screen/index.ts b/src/@ionic-native/plugins/splash-screen/index.ts index eb71f91e3..2a79e0ccf 100644 --- a/src/@ionic-native/plugins/splash-screen/index.ts +++ b/src/@ionic-native/plugins/splash-screen/index.ts @@ -1,6 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; - +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name Splash Screen @@ -27,14 +26,13 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; }) @Injectable() export class SplashScreen extends IonicNativePlugin { - /** * Shows the splashscreen */ @Cordova({ sync: true }) - show(): void { } + show(): void {} /** * Hides the splashscreen @@ -42,6 +40,5 @@ export class SplashScreen extends IonicNativePlugin { @Cordova({ sync: true }) - hide(): void { } - + hide(): void {} } diff --git a/src/@ionic-native/plugins/sqlite-porter/index.ts b/src/@ionic-native/plugins/sqlite-porter/index.ts index b4e4b3ef0..8b2a023c2 100644 --- a/src/@ionic-native/plugins/sqlite-porter/index.ts +++ b/src/@ionic-native/plugins/sqlite-porter/index.ts @@ -1,5 +1,5 @@ -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name SQLite Porter @@ -43,11 +43,19 @@ import { Injectable } from '@angular/core'; plugin: 'uk.co.workingedge.cordova.plugin.sqliteporter', pluginRef: 'cordova.plugins.sqlitePorter', repo: 'https://github.com/dpa99c/cordova-sqlite-porter', - platforms: ['Amazon Fire OS', 'Android', 'BlackBerry 10', 'Browser', 'iOS', 'Tizen', 'Windows', 'Windows Phone'] + platforms: [ + 'Amazon Fire OS', + 'Android', + 'BlackBerry 10', + 'Browser', + 'iOS', + 'Tizen', + 'Windows', + 'Windows Phone' + ] }) @Injectable() export class SQLitePorter extends IonicNativePlugin { - /** * Executes a set of SQL statements against the defined database. Can be used to import data defined in the SQL statements into the database, and may additionally include commands to create the table structure. * @param db {Object} Database object @@ -59,7 +67,9 @@ export class SQLitePorter extends IonicNativePlugin { successName: 'successFn', errorName: 'errorFn' }) - importSqlToDb(db: any, sql: string): Promise { return; } + importSqlToDb(db: any, sql: string): Promise { + return; + } /** * Exports a SQLite DB as a set of SQL statements. @@ -71,7 +81,9 @@ export class SQLitePorter extends IonicNativePlugin { successName: 'successFn', errorName: 'errorFn' }) - exportDbToSql(db: any): Promise { return; } + exportDbToSql(db: any): Promise { + return; + } /** * Converts table structure and/or row data contained within a JSON structure into SQL statements that can be executed against a SQLite database. Can be used to import data into the database and/or create the table structure. @@ -84,7 +96,9 @@ export class SQLitePorter extends IonicNativePlugin { successName: 'successFn', errorName: 'errorFn' }) - importJsonToDb(db: any, json: any): Promise { return; } + importJsonToDb(db: any, json: any): Promise { + return; + } /** * Exports a SQLite DB as a JSON structure @@ -96,7 +110,9 @@ export class SQLitePorter extends IonicNativePlugin { successName: 'successFn', errorName: 'errorFn' }) - exportDbToJson(db: any): Promise { return; } + exportDbToJson(db: any): Promise { + return; + } /** * Wipes all data from a database by dropping all existing tables @@ -108,6 +124,7 @@ export class SQLitePorter extends IonicNativePlugin { successName: 'successFn', errorName: 'errorFn' }) - wipeDb(db: any): Promise { return; } - + wipeDb(db: any): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/status-bar/index.ts b/src/@ionic-native/plugins/status-bar/index.ts index 9d56deb40..f9ee010a9 100644 --- a/src/@ionic-native/plugins/status-bar/index.ts +++ b/src/@ionic-native/plugins/status-bar/index.ts @@ -1,5 +1,10 @@ import { Injectable } from '@angular/core'; -import { Cordova, CordovaProperty, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { + Cordova, + CordovaProperty, + IonicNativePlugin, + Plugin +} from '@ionic-native/core'; /** * @name Status Bar @@ -42,7 +47,7 @@ export class StatusBar extends IonicNativePlugin { @Cordova({ sync: true }) - overlaysWebView(doesOverlay: boolean) { }; + overlaysWebView(doesOverlay: boolean) {} /** * Use the default statusbar (dark text, for light backgrounds). @@ -50,7 +55,7 @@ export class StatusBar extends IonicNativePlugin { @Cordova({ sync: true }) - styleDefault() { }; + styleDefault() {} /** * Use the lightContent statusbar (light text, for dark backgrounds). @@ -58,7 +63,7 @@ export class StatusBar extends IonicNativePlugin { @Cordova({ sync: true }) - styleLightContent() { }; + styleLightContent() {} /** * Use the blackTranslucent statusbar (light text, for dark backgrounds). @@ -66,7 +71,7 @@ export class StatusBar extends IonicNativePlugin { @Cordova({ sync: true }) - styleBlackTranslucent() { }; + styleBlackTranslucent() {} /** * Use the blackOpaque statusbar (light text, for dark backgrounds). @@ -74,7 +79,7 @@ export class StatusBar extends IonicNativePlugin { @Cordova({ sync: true }) - styleBlackOpaque() { }; + styleBlackOpaque() {} /** * Set the status bar to a specific named color. Valid options: @@ -87,7 +92,7 @@ export class StatusBar extends IonicNativePlugin { @Cordova({ sync: true }) - backgroundColorByName(colorName: string) { }; + backgroundColorByName(colorName: string) {} /** * Set the status bar to a specific hex color (CSS shorthand supported!). @@ -99,7 +104,7 @@ export class StatusBar extends IonicNativePlugin { @Cordova({ sync: true }) - backgroundColorByHexString(hexString: string) { }; + backgroundColorByHexString(hexString: string) {} /** * Hide the StatusBar @@ -107,20 +112,18 @@ export class StatusBar extends IonicNativePlugin { @Cordova({ sync: true }) - hide() { }; + hide() {} /** - * Show the StatusBar - */ + * Show the StatusBar + */ @Cordova({ sync: true }) - show() { }; + show() {} /** * Whether the StatusBar is currently visible or not. */ - @CordovaProperty - isVisible: boolean; - + @CordovaProperty isVisible: boolean; } diff --git a/src/@ionic-native/plugins/stepcounter/index.ts b/src/@ionic-native/plugins/stepcounter/index.ts index a24ce3889..58bf63e5c 100644 --- a/src/@ionic-native/plugins/stepcounter/index.ts +++ b/src/@ionic-native/plugins/stepcounter/index.ts @@ -1,5 +1,6 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; + /** * @name Stepcounter * @description @@ -33,7 +34,6 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; }) @Injectable() export class Stepcounter extends IonicNativePlugin { - /** * Start the step counter * @@ -41,40 +41,52 @@ export class Stepcounter extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves on success or rejects on failure */ @Cordova() - start(startingOffset: number): Promise { return; } + start(startingOffset: number): Promise { + return; + } /** * Stop the step counter * @returns {Promise} Returns a Promise that resolves on success with the amount of steps since the start command has been called, or rejects on failure */ @Cordova() - stop(): Promise { return; } + stop(): Promise { + return; + } /** * Get the amount of steps for today (or -1 if it no data given) * @returns {Promise} Returns a Promise that resolves on success with the amount of steps today, or rejects on failure */ @Cordova() - getTodayStepCount(): Promise { return; } + getTodayStepCount(): Promise { + return; + } /** * Get the amount of steps since the start command has been called * @returns {Promise} Returns a Promise that resolves on success with the amount of steps since the start command has been called, or rejects on failure */ @Cordova() - getStepCount(): Promise { return; } + getStepCount(): Promise { + return; + } /** * Returns true/false if Android device is running >API level 19 && has the step counter API available * @returns {Promise} Returns a Promise that resolves on success, or rejects on failure */ @Cordova() - deviceCanCountSteps(): Promise { return; } + deviceCanCountSteps(): Promise { + return; + } /** * Get the step history (JavaScript object) * @returns {Promise} Returns a Promise that resolves on success, or rejects on failure */ @Cordova() - getHistory(): Promise { return; } + getHistory(): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/streaming-media/index.ts b/src/@ionic-native/plugins/streaming-media/index.ts index 6fb18f53c..caa9623fc 100644 --- a/src/@ionic-native/plugins/streaming-media/index.ts +++ b/src/@ionic-native/plugins/streaming-media/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface StreamingVideoOptions { successCallback?: Function; @@ -55,7 +55,7 @@ export class StreamingMedia extends IonicNativePlugin { * @param options {StreamingVideoOptions} Options */ @Cordova({ sync: true }) - playVideo(videoUrl: string, options?: StreamingVideoOptions): void { } + playVideo(videoUrl: string, options?: StreamingVideoOptions): void {} /** * Streams an audio @@ -63,24 +63,23 @@ export class StreamingMedia extends IonicNativePlugin { * @param options {StreamingAudioOptions} Options */ @Cordova({ sync: true }) - playAudio(audioUrl: string, options?: StreamingAudioOptions): void { } + playAudio(audioUrl: string, options?: StreamingAudioOptions): void {} /** * Stops streaming audio */ @Cordova({ sync: true }) - stopAudio(): void { } + stopAudio(): void {} /** * Pauses streaming audio */ @Cordova({ sync: true, platforms: ['iOS'] }) - pauseAudio(): void { } + pauseAudio(): void {} /** * Resumes streaming audio */ @Cordova({ sync: true, platforms: ['iOS'] }) - resumeAudio(): void { } - + resumeAudio(): void {} } diff --git a/src/@ionic-native/plugins/stripe/index.ts b/src/@ionic-native/plugins/stripe/index.ts index 32eda51de..0296affa4 100644 --- a/src/@ionic-native/plugins/stripe/index.ts +++ b/src/@ionic-native/plugins/stripe/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface StripeCardTokenParams { /** @@ -80,28 +80,28 @@ export interface StripeBankAccountParams { } export interface StripeCardTokenRes { - /** - * Card Object. - */ - card: { - brand: string, - exp_month: number, - exp_year: number, - funding: string, - last4: string - }; - /** - * Token Request Date Time. - */ - created: string; - /** - * Card Token. - */ - id: string; - /** - * Source Type (card or account). - */ - type: string; + /** + * Card Object. + */ + card: { + brand: string; + exp_month: number; + exp_year: number; + funding: string; + last4: string; + }; + /** + * Token Request Date Time. + */ + created: string; + /** + * Card Token. + */ + id: string; + /** + * Source Type (card or account). + */ + type: string; } /** @@ -144,14 +144,15 @@ export interface StripeCardTokenRes { }) @Injectable() export class Stripe extends IonicNativePlugin { - /** * Set publishable key * @param publishableKey {string} Publishable key * @return {Promise} */ @Cordova() - setPublishableKey(publishableKey: string): Promise { return; } + setPublishableKey(publishableKey: string): Promise { + return; + } /** * Create Credit Card Token @@ -159,7 +160,9 @@ export class Stripe extends IonicNativePlugin { * @return {Promise} returns a promise that resolves with the token object, or rejects with an error */ @Cordova() - createCardToken(params: StripeCardTokenParams): Promise { return; } + createCardToken(params: StripeCardTokenParams): Promise { + return; + } /** * Create a bank account token @@ -167,7 +170,9 @@ export class Stripe extends IonicNativePlugin { * @return {Promise} returns a promise that resolves with the token, or rejects with an error */ @Cordova() - createBankAccountToken(params: StripeBankAccountParams): Promise { return; } + createBankAccountToken(params: StripeBankAccountParams): Promise { + return; + } /** * Validates a credit card number @@ -175,7 +180,9 @@ export class Stripe extends IonicNativePlugin { * @return {Promise} returns a promise that resolves if the number is valid, and rejects if it's invalid */ @Cordova() - validateCardNumber(cardNumber: string): Promise { return; } + validateCardNumber(cardNumber: string): Promise { + return; + } /** * Validates a CVC number @@ -183,7 +190,9 @@ export class Stripe extends IonicNativePlugin { * @return {Promise} returns a promise that resolves if the number is valid, and rejects if it's invalid */ @Cordova() - validateCVC(cvc: string): Promise { return; } + validateCVC(cvc: string): Promise { + return; + } /** * Validates an expiry date @@ -192,7 +201,9 @@ export class Stripe extends IonicNativePlugin { * @return {Promise} returns a promise that resolves if the date is valid, and rejects if it's invalid */ @Cordova() - validateExpiryDate(expMonth: string, expYear: string): Promise { return; } + validateExpiryDate(expMonth: string, expYear: string): Promise { + return; + } /** * Get a card type from card number @@ -200,6 +211,7 @@ export class Stripe extends IonicNativePlugin { * @return {Promise} returns a promise that resolves with the credit card type */ @Cordova() - getCardType(cardNumber: string): Promise { return; } - + getCardType(cardNumber: string): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/taptic-engine/index.ts b/src/@ionic-native/plugins/taptic-engine/index.ts index f74763711..5688bd979 100644 --- a/src/@ionic-native/plugins/taptic-engine/index.ts +++ b/src/@ionic-native/plugins/taptic-engine/index.ts @@ -33,13 +33,14 @@ import { Injectable } from '@angular/core'; }) @Injectable() export class TapticEngine extends IonicNativePlugin { - /** * Use selection feedback generators to indicate a change in selection. * @returns {Promise} Returns a promise that resolves on success and rejects on error */ @Cordova() - selection(): Promise { return; } + selection(): Promise { + return; + } /** * Use this to indicate success/failure/warning to the user. @@ -48,7 +49,9 @@ export class TapticEngine extends IonicNativePlugin { * @returns {Promise} Returns a promise that resolves on success and rejects on error */ @Cordova() - notification(options: { type: string }): Promise { return; } + notification(options: { type: string }): Promise { + return; + } /** * Use this to indicate success/failure/warning to the user. @@ -57,6 +60,7 @@ export class TapticEngine extends IonicNativePlugin { * @returns {Promise} Returns a promise that resolves on success and rejects on error */ @Cordova() - impact(options: { style: string }): Promise { return; } - + impact(options: { style: string }): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/text-to-speech/index.ts b/src/@ionic-native/plugins/text-to-speech/index.ts index 9a34e4d29..fb348561f 100644 --- a/src/@ionic-native/plugins/text-to-speech/index.ts +++ b/src/@ionic-native/plugins/text-to-speech/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface TTSOptions { /** text to speak */ @@ -40,7 +40,6 @@ export interface TTSOptions { }) @Injectable() export class TextToSpeech extends IonicNativePlugin { - /** * This function speaks * @param textOrOptions {string | TTSOptions} Text to speak or TTSOptions @@ -62,5 +61,4 @@ export class TextToSpeech extends IonicNativePlugin { stop(): Promise { return; } - } diff --git a/src/@ionic-native/plugins/themeable-browser/index.ts b/src/@ionic-native/plugins/themeable-browser/index.ts index 76e4a73b7..fb7fee72b 100644 --- a/src/@ionic-native/plugins/themeable-browser/index.ts +++ b/src/@ionic-native/plugins/themeable-browser/index.ts @@ -1,5 +1,10 @@ import { Injectable } from '@angular/core'; -import { Plugin, CordovaInstance, InstanceCheck, IonicNativePlugin } from '@ionic-native/core'; +import { + CordovaInstance, + InstanceCheck, + IonicNativePlugin, + Plugin +} from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; declare var cordova: any; @@ -71,15 +76,24 @@ export interface ThemeableBrowserOptions { * @hidden */ export class ThemeableBrowserObject { - private _objectInstance: any; - constructor(url: string, target: string, styleOptions: ThemeableBrowserOptions) { + constructor( + url: string, + target: string, + styleOptions: ThemeableBrowserOptions + ) { try { - this._objectInstance = cordova.ThemeableBrowser.open(url, target, styleOptions); + this._objectInstance = cordova.ThemeableBrowser.open( + url, + target, + styleOptions + ); } catch (e) { window.open(url); - console.warn('Native: ThemeableBrowser is not installed or you are running on a browser. Falling back to window.open.'); + console.warn( + 'Native: ThemeableBrowser is not installed or you are running on a browser. Falling back to window.open.' + ); } } @@ -88,19 +102,19 @@ export class ThemeableBrowserObject { * if the browser was already visible. */ @CordovaInstance({ sync: true }) - show(): void { } + show(): void {} /** * Closes the browser window. */ @CordovaInstance({ sync: true }) - close(): void { } + close(): void {} /** * Reloads the current page */ @CordovaInstance({ sync: true }) - reload(): void { } + reload(): void {} /** * Injects JavaScript code into the browser window. @@ -108,7 +122,9 @@ export class ThemeableBrowserObject { * @returns {Promise} */ @CordovaInstance() - executeScript(script: { file?: string, code?: string }): Promise { return; } + executeScript(script: { file?: string; code?: string }): Promise { + return; + } /** * Injects CSS into the browser window. @@ -116,7 +132,9 @@ export class ThemeableBrowserObject { * @returns {Promise} */ @CordovaInstance() - insertCss(css: { file?: string, code?: string }): Promise { return; } + insertCss(css: { file?: string; code?: string }): Promise { + return; + } /** * A method that allows you to listen to events happening in the browser. @@ -126,12 +144,18 @@ export class ThemeableBrowserObject { */ @InstanceCheck({ observable: true }) on(event: string): Observable { - return new Observable((observer) => { - this._objectInstance.addEventListener(event, observer.next.bind(observer)); - return () => this._objectInstance.removeEventListener(event, observer.next.bind(observer)); + return new Observable(observer => { + this._objectInstance.addEventListener( + event, + observer.next.bind(observer) + ); + return () => + this._objectInstance.removeEventListener( + event, + observer.next.bind(observer) + ); }); } - } /** @@ -224,11 +248,20 @@ export class ThemeableBrowserObject { plugin: 'cordova-plugin-themeablebrowser', pluginRef: 'cordova.ThemeableBrowser', repo: 'https://github.com/initialxy/cordova-plugin-themeablebrowser', - platforms: ['Amazon Fire OS', 'Android', 'Blackberry 10', 'Browser', 'FirefoxOS', 'iOS', 'Ubuntu', 'Windows', 'Windows Phone'] + platforms: [ + 'Amazon Fire OS', + 'Android', + 'Blackberry 10', + 'Browser', + 'FirefoxOS', + 'iOS', + 'Ubuntu', + 'Windows', + 'Windows Phone' + ] }) @Injectable() export class ThemeableBrowser extends IonicNativePlugin { - /** * Creates a browser instance * @param url {string} URL to open @@ -236,8 +269,11 @@ export class ThemeableBrowser extends IonicNativePlugin { * @param styleOptions {ThemeableBrowserOptions} Themeable browser options * @returns {ThemeableBrowserObject} */ - create(url: string, target: string, styleOptions: ThemeableBrowserOptions): ThemeableBrowserObject { + create( + url: string, + target: string, + styleOptions: ThemeableBrowserOptions + ): ThemeableBrowserObject { return new ThemeableBrowserObject(url, target, styleOptions); } - } diff --git a/src/@ionic-native/plugins/three-dee-touch/index.ts b/src/@ionic-native/plugins/three-dee-touch/index.ts index 6907118a0..8803c0d7b 100644 --- a/src/@ionic-native/plugins/three-dee-touch/index.ts +++ b/src/@ionic-native/plugins/three-dee-touch/index.ts @@ -1,9 +1,13 @@ import { Injectable } from '@angular/core'; -import { Cordova, CordovaFunctionOverride, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { + Cordova, + CordovaFunctionOverride, + IonicNativePlugin, + Plugin +} from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export interface ThreeDeeTouchQuickAction { - /** * Type that can be used in the onHomeIconPressed callback */ @@ -28,11 +32,9 @@ export interface ThreeDeeTouchQuickAction { * Icon template */ iconTemplate?: string; - } export interface ThreeDeeTouchForceTouch { - /** * Touch force */ @@ -52,7 +54,6 @@ export interface ThreeDeeTouchForceTouch { * Y coordinate of action */ y: number; - } /** @@ -128,13 +129,14 @@ export interface ThreeDeeTouchForceTouch { }) @Injectable() export class ThreeDeeTouch extends IonicNativePlugin { - /** * You need an iPhone 6S or some future tech to use the features of this plugin, so you can check at runtime if the user's device is supported. * @returns {Promise} returns a promise that resolves with a boolean that indicates whether the plugin is available or not */ @Cordova() - isAvailable(): Promise { return; } + isAvailable(): Promise { + return; + } /** * You can get a notification when the user force touches the webview. The plugin defines a Force Touch when at least 75% of the maximum force is applied to the screen. Your app will receive the x and y coordinates, so you have to figure out which UI element was touched. @@ -143,7 +145,9 @@ export class ThreeDeeTouch extends IonicNativePlugin { @Cordova({ observable: true }) - watchForceTouches(): Observable { return; } + watchForceTouches(): Observable { + return; + } /** * setup the 3D-touch actions, takes an array of objects with the following @@ -156,14 +160,16 @@ export class ThreeDeeTouch extends IonicNativePlugin { @Cordova({ sync: true }) - configureQuickActions(quickActions: Array): void { } + configureQuickActions(quickActions: Array): void {} /** * When a home icon is pressed, your app launches and this JS callback is invoked. * @returns {Observable} returns an observable that notifies you when he user presses on the home screen icon */ @CordovaFunctionOverride() - onHomeIconPressed(): Observable { return; } + onHomeIconPressed(): Observable { + return; + } /** * Enable Link Preview. @@ -172,7 +178,7 @@ export class ThreeDeeTouch extends IonicNativePlugin { @Cordova({ sync: true }) - enableLinkPreview(): void { } + enableLinkPreview(): void {} /** * Disabled the link preview feature, if enabled. @@ -180,6 +186,5 @@ export class ThreeDeeTouch extends IonicNativePlugin { @Cordova({ sync: true }) - disableLinkPreview(): void { } - + disableLinkPreview(): void {} } diff --git a/src/@ionic-native/plugins/toast/index.ts b/src/@ionic-native/plugins/toast/index.ts index 41d5a443e..ba7a92252 100644 --- a/src/@ionic-native/plugins/toast/index.ts +++ b/src/@ionic-native/plugins/toast/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export interface ToastOptions { @@ -69,7 +69,6 @@ export interface ToastOptions { }) @Injectable() export class Toast extends IonicNativePlugin { - /** * Show a native toast for the given duration at the specified position. * @@ -82,14 +81,18 @@ export class Toast extends IonicNativePlugin { observable: true, clearFunction: 'hide' }) - show(message: string, duration: string, position: string): Observable { return; } + show(message: string, duration: string, position: string): Observable { + return; + } /** * Manually hide any currently visible toast. * @returns {Promise} Returns a Promise that resolves on success. */ @Cordova() - hide(): Promise { return; } + hide(): Promise { + return; + } /** * Show a native toast with the given options. @@ -106,7 +109,9 @@ export class Toast extends IonicNativePlugin { observable: true, clearFunction: 'hide' }) - showWithOptions(options: ToastOptions): Observable { return; } + showWithOptions(options: ToastOptions): Observable { + return; + } /** * Shorthand for `show(message, 'short', 'top')`. @@ -117,7 +122,9 @@ export class Toast extends IonicNativePlugin { observable: true, clearFunction: 'hide' }) - showShortTop(message: string): Observable { return; } + showShortTop(message: string): Observable { + return; + } /** * Shorthand for `show(message, 'short', 'center')`. @@ -128,8 +135,9 @@ export class Toast extends IonicNativePlugin { observable: true, clearFunction: 'hide' }) - showShortCenter(message: string): Observable { return; } - + showShortCenter(message: string): Observable { + return; + } /** * Shorthand for `show(message, 'short', 'bottom')`. @@ -140,8 +148,9 @@ export class Toast extends IonicNativePlugin { observable: true, clearFunction: 'hide' }) - showShortBottom(message: string): Observable { return; } - + showShortBottom(message: string): Observable { + return; + } /** * Shorthand for `show(message, 'long', 'top')`. @@ -152,8 +161,9 @@ export class Toast extends IonicNativePlugin { observable: true, clearFunction: 'hide' }) - showLongTop(message: string): Observable { return; } - + showLongTop(message: string): Observable { + return; + } /** * Shorthand for `show(message, 'long', 'center')`. @@ -164,8 +174,9 @@ export class Toast extends IonicNativePlugin { observable: true, clearFunction: 'hide' }) - showLongCenter(message: string): Observable { return; } - + showLongCenter(message: string): Observable { + return; + } /** * Shorthand for `show(message, 'long', 'bottom')`. @@ -176,6 +187,7 @@ export class Toast extends IonicNativePlugin { observable: true, clearFunction: 'hide' }) - showLongBottom(message: string): Observable { return; } - + showLongBottom(message: string): Observable { + return; + } } diff --git a/src/@ionic-native/plugins/touch-id/index.ts b/src/@ionic-native/plugins/touch-id/index.ts index 5d411d663..34f5f9ca2 100644 --- a/src/@ionic-native/plugins/touch-id/index.ts +++ b/src/@ionic-native/plugins/touch-id/index.ts @@ -1,6 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; - +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name Touch ID @@ -52,14 +51,15 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; }) @Injectable() export class TouchID extends IonicNativePlugin { - /** * Checks Whether TouchID is available or not. * * @returns {Promise} Returns a Promise that resolves if yes, rejects if no. */ @Cordova() - isAvailable(): Promise { return; } + isAvailable(): Promise { + return; + } /** * Show TouchID dialog and wait for a fingerprint scan. If user taps 'Enter Password' button, brings up standard system passcode screen. @@ -68,7 +68,9 @@ export class TouchID extends IonicNativePlugin { * @returns {Promise} Returns a Promise the resolves if the fingerprint scan was successful, rejects with an error code (see above). */ @Cordova() - verifyFingerprint(message: string): Promise { return; } + verifyFingerprint(message: string): Promise { + return; + } /** * Show TouchID dialog and wait for a fingerprint scan. If user taps 'Enter Password' button, rejects with code '-3' (see above). @@ -77,7 +79,9 @@ export class TouchID extends IonicNativePlugin { * @returns {Promise} Returns a Promise the resolves if the fingerprint scan was successful, rejects with an error code (see above). */ @Cordova() - verifyFingerprintWithCustomPasswordFallback(message: string): Promise { return; } + verifyFingerprintWithCustomPasswordFallback(message: string): Promise { + return; + } /** * Show TouchID dialog with custom 'Enter Password' message and wait for a fingerprint scan. If user taps 'Enter Password' button, rejects with code '-3' (see above). @@ -87,7 +91,12 @@ export class TouchID extends IonicNativePlugin { * @returns {Promise} Returns a Promise the resolves if the fingerprint scan was successful, rejects with an error code (see above). */ @Cordova() - verifyFingerprintWithCustomPasswordFallbackAndEnterPasswordLabel(message: string, enterPasswordLabel: string): Promise { return; } + verifyFingerprintWithCustomPasswordFallbackAndEnterPasswordLabel( + message: string, + enterPasswordLabel: string + ): Promise { + return; + } /** * Checks if the fingerprint database changed. @@ -95,6 +104,7 @@ export class TouchID extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves if yes, rejects if no. */ @Cordova() - didFingerprintDatabaseChange(): Promise { return; } - + didFingerprintDatabaseChange(): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/twitter-connect/index.ts b/src/@ionic-native/plugins/twitter-connect/index.ts index 6ed25c92a..4884b9d72 100644 --- a/src/@ionic-native/plugins/twitter-connect/index.ts +++ b/src/@ionic-native/plugins/twitter-connect/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface TwitterConnectResponse { /** @@ -56,7 +56,8 @@ export interface TwitterConnectResponse { plugin: 'twitter-connect-plugin', pluginRef: 'TwitterConnect', repo: 'https://github.com/chroa/twitter-connect-plugin', - install: 'ionic cordova plugin add https://github.com/chroa/twitter-connect-plugin --variable FABRIC_KEY= --variable TWITTER_KEY= --variable TWITTER_SECRET=', + install: + 'ionic cordova plugin add https://github.com/chroa/twitter-connect-plugin --variable FABRIC_KEY= --variable TWITTER_KEY= --variable TWITTER_SECRET=', installVariables: ['FABRIC_KEY', 'TWITTER_KEY', 'TWITTER_SECRET'], platforms: ['Android', 'iOS'] }) @@ -67,18 +68,24 @@ export class TwitterConnect extends IonicNativePlugin { * @returns {Promise} returns a promise that resolves if logged in and rejects if failed to login */ @Cordova() - login(): Promise { return; } + login(): Promise { + return; + } /** * Logs out * @returns {Promise} returns a promise that resolves if logged out and rejects if failed to logout */ @Cordova() - logout(): Promise { return; } + logout(): Promise { + return; + } /** * Returns user's profile information * @returns {Promise} returns a promise that resolves if user profile is successfully retrieved and rejects if request fails */ @Cordova() - showUser(): Promise { return; } + showUser(): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/uid/index.ts b/src/@ionic-native/plugins/uid/index.ts index aa417a832..e7e9f330f 100644 --- a/src/@ionic-native/plugins/uid/index.ts +++ b/src/@ionic-native/plugins/uid/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, CordovaProperty, IonicNativePlugin } from '@ionic-native/core'; +import { CordovaProperty, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name Uid @@ -13,12 +13,12 @@ import { Plugin, CordovaProperty, IonicNativePlugin } from '@ionic-native/core'; * * constructor(private uid: Uid, private androidPermissions: AndroidPermissions) { } * - * + * * async getImei() { * const { hasPermission } = await this.androidPermissions.checkPermission( * this.androidPermissions.PERMISSION.READ_PHONE_STATE * ); - * + * * if (!hasPermission) { * const result = await this.androidPermissions.requestPermission( * this.androidPermissions.PERMISSION.READ_PHONE_STATE @@ -27,11 +27,11 @@ import { Plugin, CordovaProperty, IonicNativePlugin } from '@ionic-native/core'; * if (!result.hasPermission) { * throw new Error('Permissions required'); * } - * + * * // ok, a user gave us permission, we can get him identifiers after restart app * return; * } - * + * * return this.uid.IMEI * } * ``` @@ -45,25 +45,18 @@ import { Plugin, CordovaProperty, IonicNativePlugin } from '@ionic-native/core'; }) @Injectable() export class Uid extends IonicNativePlugin { - /** Get the device Universally Unique Identifier (UUID). */ - @CordovaProperty - UUID: string; + @CordovaProperty UUID: string; /** Get the device International Mobile Station Equipment Identity (IMEI). */ - @CordovaProperty - IMEI: string; + @CordovaProperty IMEI: string; /** Get the device International mobile Subscriber Identity (IMSI). */ - @CordovaProperty - IMSI: string; + @CordovaProperty IMSI: string; /** Get the sim Integrated Circuit Card Identifier (ICCID). */ - @CordovaProperty - ICCID: string; + @CordovaProperty ICCID: string; /** Get the Media Access Control address (MAC). */ - @CordovaProperty - MAC: string; - + @CordovaProperty MAC: string; } diff --git a/src/@ionic-native/plugins/unique-device-id/index.ts b/src/@ionic-native/plugins/unique-device-id/index.ts index 4773aa006..cb1463016 100644 --- a/src/@ionic-native/plugins/unique-device-id/index.ts +++ b/src/@ionic-native/plugins/unique-device-id/index.ts @@ -1,5 +1,5 @@ -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name Unique Device ID @@ -29,12 +29,12 @@ import { Injectable } from '@angular/core'; }) @Injectable() export class UniqueDeviceID extends IonicNativePlugin { - /** * Gets a unique, cross-install, app-specific device id. * @return {Promise} Returns a promise that resolves when something happens */ @Cordova() - get(): Promise { return; } - + get(): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/user-agent/index.ts b/src/@ionic-native/plugins/user-agent/index.ts index 1a87f1f72..ec6fd5ea9 100644 --- a/src/@ionic-native/plugins/user-agent/index.ts +++ b/src/@ionic-native/plugins/user-agent/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name User Agent @@ -41,7 +41,6 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; }) @Injectable() export class UserAgent extends IonicNativePlugin { - /** * Changes the current user-agent to the one sent by argument. * @param userAgent {string} User-Agent @@ -69,5 +68,4 @@ export class UserAgent extends IonicNativePlugin { reset(): Promise { return; } - } diff --git a/src/@ionic-native/plugins/vibration/index.ts b/src/@ionic-native/plugins/vibration/index.ts index 5d83e9da7..df55e2a11 100644 --- a/src/@ionic-native/plugins/vibration/index.ts +++ b/src/@ionic-native/plugins/vibration/index.ts @@ -1,6 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; - +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name Vibration @@ -37,7 +36,6 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; }) @Injectable() export class Vibration extends IonicNativePlugin { - /** * Vibrates the device for given amount of time. * @param time {number|Array} Milliseconds to vibrate the device. If passed an array of numbers, it will define a vibration pattern. Pass 0 to stop any vibration immediately. @@ -45,6 +43,5 @@ export class Vibration extends IonicNativePlugin { @Cordova({ sync: true }) - vibrate(time: number | Array) { } - + vibrate(time: number | Array) {} } diff --git a/src/@ionic-native/plugins/video-capture-plus/index.ts b/src/@ionic-native/plugins/video-capture-plus/index.ts index 7969aa9c1..ac9e37098 100644 --- a/src/@ionic-native/plugins/video-capture-plus/index.ts +++ b/src/@ionic-native/plugins/video-capture-plus/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface MediaFile { /** @@ -30,7 +30,10 @@ export interface MediaFile { * @param {Function} successCallback * @param {Function} [errorCallback] */ - getFormatData(successCallback: (data: MediaFileData) => any, errorCallback?: (err: any) => any): any; + getFormatData( + successCallback: (data: MediaFileData) => any, + errorCallback?: (err: any) => any + ): any; } export interface MediaFileData { @@ -57,43 +60,41 @@ export interface MediaFileData { } export interface VideoCapturePlusOptions { - /** - * The number of videos to record, default 1 (on iOS always 1) - */ + * The number of videos to record, default 1 (on iOS always 1) + */ limit?: number; /** - * Max duration in seconds, default 0, which is 'forever' - */ + * Max duration in seconds, default 0, which is 'forever' + */ duration?: number; /** - * Set to true to override the default low quality setting - */ + * Set to true to override the default low quality setting + */ highquality?: boolean; /** - * Set to true to override the default backfacing camera setting. - * You'll want to sniff the useragent/device and pass the best overlay based on that.. assuming iphone here - */ + * Set to true to override the default backfacing camera setting. + * You'll want to sniff the useragent/device and pass the best overlay based on that.. assuming iphone here + */ frontcamera?: boolean; /** - * put the png overlay in your assets folder - */ + * put the png overlay in your assets folder + */ portraitOverlay?: string; /** - * not passing an overlay means no image is shown for the landscape orientation - */ + * not passing an overlay means no image is shown for the landscape orientation + */ landscapeOverlay?: string; /** - * iOS only - */ + * iOS only + */ overlayText?: string; - } /** @@ -138,7 +139,6 @@ export interface VideoCapturePlusOptions { }) @Injectable() export class VideoCapturePlus extends IonicNativePlugin { - /** * Starts recordings * @param [options] {VideoCapturePlusOptions} Configure options @@ -147,6 +147,7 @@ export class VideoCapturePlus extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - captureVideo(options?: VideoCapturePlusOptions): Promise { return; } - + captureVideo(options?: VideoCapturePlusOptions): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/video-editor/index.ts b/src/@ionic-native/plugins/video-editor/index.ts index 16af70d2e..f767c0344 100644 --- a/src/@ionic-native/plugins/video-editor/index.ts +++ b/src/@ionic-native/plugins/video-editor/index.ts @@ -1,8 +1,7 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface TranscodeOptions { - /** The path to the video on the device. */ fileUri: string; @@ -50,7 +49,6 @@ export interface TranscodeOptions { } export interface TrimOptions { - /** Path to input video. */ fileUri: string; @@ -65,11 +63,9 @@ export interface TrimOptions { /** Progress on transcode. info will be a number from 0 to 100 */ progress?: (info: any) => void; - } export interface CreateThumbnailOptions { - /** The path to the video on the device */ fileUri: string; @@ -87,18 +83,14 @@ export interface CreateThumbnailOptions { /** Quality of the thumbnail (between 1 and 100). */ quality?: number; - } export interface GetVideoInfoOptions { - /** The path to the video on the device. */ fileUri: string; - } export interface VideoInfo { - /** Width of the video in pixels. */ width: number; @@ -116,7 +108,6 @@ export interface VideoInfo { /** Bitrate of the video in bits per second. */ bitrate: number; - } /** @@ -156,7 +147,6 @@ export interface VideoInfo { }) @Injectable() export class VideoEditor extends IonicNativePlugin { - OptimizeForNetworkUse = { NO: 0, YES: 1 @@ -177,7 +167,9 @@ export class VideoEditor extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - transcodeVideo(options: TranscodeOptions): Promise { return; } + transcodeVideo(options: TranscodeOptions): Promise { + return; + } /** * Trim a video @@ -188,7 +180,9 @@ export class VideoEditor extends IonicNativePlugin { callbackOrder: 'reverse', platforms: ['iOS'] }) - trim(options: TrimOptions): Promise { return; } + trim(options: TrimOptions): Promise { + return; + } /** * Create a JPEG thumbnail from a video @@ -198,7 +192,9 @@ export class VideoEditor extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - createThumbnail(options: CreateThumbnailOptions): Promise { return; } + createThumbnail(options: CreateThumbnailOptions): Promise { + return; + } /** * Get info on a video (width, height, orientation, duration, size, & bitrate) @@ -208,6 +204,7 @@ export class VideoEditor extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - getVideoInfo(options: GetVideoInfoOptions): Promise { return; } - + getVideoInfo(options: GetVideoInfoOptions): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/video-player/index.ts b/src/@ionic-native/plugins/video-player/index.ts index e45fbf448..d80dd2018 100644 --- a/src/@ionic-native/plugins/video-player/index.ts +++ b/src/@ionic-native/plugins/video-player/index.ts @@ -1,14 +1,14 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * Options for the video playback using the `play` function. */ export interface VideoOptions { /** - * Set the initial volume of the video playback, where 0.0 is 0% volume and 1.0 is 100%. - * For example: for a volume of 30% set the value to 0.3. - */ + * Set the initial volume of the video playback, where 0.0 is 0% volume and 1.0 is 100%. + * For example: for a volume of 30% set the value to 0.3. + */ volume?: number; /** * There are two options for the scaling mode. SCALE_TO_FIT which is default and SCALE_TO_FIT_WITH_CROPPING. @@ -52,7 +52,6 @@ export interface VideoOptions { }) @Injectable() export class VideoPlayer extends IonicNativePlugin { - /** * Plays the video from the passed url. * @param fileUrl {string} File url to the video. @@ -60,11 +59,13 @@ export class VideoPlayer extends IonicNativePlugin { * @returns {Promise} Resolves promise when the video was played successfully. */ @Cordova() - play(fileUrl: string, options?: VideoOptions): Promise { return; } + play(fileUrl: string, options?: VideoOptions): Promise { + return; + } /** * Stops the video playback immediatly. */ @Cordova({ sync: true }) - close(): void { } + close(): void {} } diff --git a/src/@ionic-native/plugins/web-intent/index.ts b/src/@ionic-native/plugins/web-intent/index.ts index 7bd06c562..8ec269c9b 100644 --- a/src/@ionic-native/plugins/web-intent/index.ts +++ b/src/@ionic-native/plugins/web-intent/index.ts @@ -1,5 +1,10 @@ import { Injectable } from '@angular/core'; -import { Cordova, CordovaProperty, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { + Cordova, + CordovaProperty, + IonicNativePlugin, + Plugin +} from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; /** @@ -30,7 +35,8 @@ import { Observable } from 'rxjs/Observable'; pluginName: 'WebIntent', plugin: 'com-darryncampbell-cordova-plugin-intent', pluginRef: 'plugins.intentShim', - repo: 'https://github.com/darryncampbell/darryncampbell-cordova-plugin-intent', + repo: + 'https://github.com/darryncampbell/darryncampbell-cordova-plugin-intent', platforms: ['Android'] }) @Injectable() diff --git a/src/@ionic-native/plugins/wheel-selector/index.ts b/src/@ionic-native/plugins/wheel-selector/index.ts index 5f5f787fa..a41b8be6b 100644 --- a/src/@ionic-native/plugins/wheel-selector/index.ts +++ b/src/@ionic-native/plugins/wheel-selector/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface WheelSelectorItem { description?: string; @@ -55,7 +55,7 @@ export interface WheelSelectorOptions { * key/value to be displayed * Default: description */ - displayKey?: string; + displayKey?: string; } export interface WheelSelectorData { @@ -155,7 +155,7 @@ export interface WheelSelectorData { * ], * displayKey: 'name', * defaultItems: [ - * {index:0, value: this.jsonData.firstNames[2].name}, + * {index:0, value: this.jsonData.firstNames[2].name}, * {index: 0, value: this.jsonData.lastNames[3].name} * ] * }).then( @@ -179,10 +179,8 @@ export interface WheelSelectorData { repo: 'https://github.com/jasonmamy/cordova-wheel-selector-plugin', platforms: ['Android', 'iOS'] }) - @Injectable() export class WheelSelector extends IonicNativePlugin { - /** * Shows the wheel selector * @param {WheelSelectorOptions} options Options for the wheel selector @@ -200,5 +198,7 @@ export class WheelSelector extends IonicNativePlugin { @Cordova({ platforms: ['iOS'] }) - hideSelector(): Promise { return; } + hideSelector(): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/youtube-video-player/index.ts b/src/@ionic-native/plugins/youtube-video-player/index.ts index 6b458594c..c909296f9 100644 --- a/src/@ionic-native/plugins/youtube-video-player/index.ts +++ b/src/@ionic-native/plugins/youtube-video-player/index.ts @@ -1,5 +1,6 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; + /** * @name Youtube Video Player * @description @@ -34,12 +35,10 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; }) @Injectable() export class YoutubeVideoPlayer extends IonicNativePlugin { - /** * Plays a YouTube video * @param videoId {string} Video ID */ @Cordova({ sync: true }) - openVideo(videoId: string): void { } - + openVideo(videoId: string): void {} } diff --git a/src/@ionic-native/plugins/zbar/index.ts b/src/@ionic-native/plugins/zbar/index.ts index 3fb463c8d..724459bcc 100644 --- a/src/@ionic-native/plugins/zbar/index.ts +++ b/src/@ionic-native/plugins/zbar/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface ZBarOptions { /** @@ -77,13 +77,13 @@ export interface ZBarOptions { }) @Injectable() export class ZBar extends IonicNativePlugin { - /** * Open the scanner * @param options { ZBarOptions } Scan options * @returns {Promise} Returns a Promise that resolves with the scanned string, or rejects with an error. */ @Cordova() - scan(options: ZBarOptions): Promise { return; } - + scan(options: ZBarOptions): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/zeroconf/index.ts b/src/@ionic-native/plugins/zeroconf/index.ts index 63ce74574..4fde9656f 100644 --- a/src/@ionic-native/plugins/zeroconf/index.ts +++ b/src/@ionic-native/plugins/zeroconf/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export interface ZeroconfService { @@ -65,7 +65,9 @@ export class Zeroconf extends IonicNativePlugin { * @return {Promise} */ @Cordova() - getHostname(): Promise { return; } + getHostname(): Promise { + return; + } /** * Publishes a new service. @@ -77,7 +79,15 @@ export class Zeroconf extends IonicNativePlugin { * @return {Promise} Returns a Promise that resolves with the registered service. */ @Cordova() - register(type: string, domain: string, name: string, port: number, txtRecord: any): Promise { return; } + register( + type: string, + domain: string, + name: string, + port: number, + txtRecord: any + ): Promise { + return; + } /** * Unregisters a service. @@ -87,14 +97,18 @@ export class Zeroconf extends IonicNativePlugin { * @return {Promise} */ @Cordova() - unregister(type: string, domain: string, name: string): Promise { return; } + unregister(type: string, domain: string, name: string): Promise { + return; + } /** * Unregisters all published services. * @return {Promise} */ @Cordova() - stop(): Promise { return; } + stop(): Promise { + return; + } /** * Starts watching for services of the specified type. @@ -107,7 +121,9 @@ export class Zeroconf extends IonicNativePlugin { clearFunction: 'unwatch', clearWithArgs: true }) - watch(type: string, domain: string): Observable { return; } + watch(type: string, domain: string): Observable { + return; + } /** * Stops watching for services of the specified type. @@ -116,19 +132,25 @@ export class Zeroconf extends IonicNativePlugin { * @return {Promise} */ @Cordova() - unwatch(type: string, domain: string): Promise { return; } + unwatch(type: string, domain: string): Promise { + return; + } /** * Closes the service browser and stops watching. * @return {Promise} */ @Cordova() - close(): Promise { return; } + close(): Promise { + return; + } /** * Re-initializes the plugin to clean service & browser state. * @return {Promise} */ @Cordova() - reInit(): Promise { return; } + reInit(): Promise { + return; + } } diff --git a/src/@ionic-native/plugins/zip/index.ts b/src/@ionic-native/plugins/zip/index.ts index 7fc038016..9bea88ec7 100644 --- a/src/@ionic-native/plugins/zip/index.ts +++ b/src/@ionic-native/plugins/zip/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name Zip @@ -31,7 +31,6 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; }) @Injectable() export class Zip extends IonicNativePlugin { - /** * Extracts files from a ZIP archive * @param sourceZip {string} Source ZIP file @@ -43,6 +42,11 @@ export class Zip extends IonicNativePlugin { successIndex: 2, errorIndex: 4 }) - unzip(sourceZip: string, destUrl: string, onProgress?: Function): Promise { return; } - + unzip( + sourceZip: string, + destUrl: string, + onProgress?: Function + ): Promise { + return; + } } From 6c938bfdb7e41997efcb419b05e701fc98d8f141 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 16 Mar 2018 22:04:01 +0100 Subject: [PATCH 085/110] Revert "chore(package): bump dependencies and lint rules" This reverts commit 21ad4734fa60ed27d27b9d9dddff910437b6ec82. --- package-lock.json | 5162 +++-------------- package.json | 57 +- scripts/build/build.js | 76 +- scripts/build/publish.js | 23 +- scripts/docs/gulp-tasks.js | 29 +- src/@ionic-native/core/bootstrap.ts | 8 +- src/@ionic-native/core/decorators.spec.ts | 161 +- src/@ionic-native/core/decorators.ts | 48 +- .../core/ionic-native-plugin.spec.ts | 29 +- src/@ionic-native/core/ionic-native-plugin.ts | 24 +- src/@ionic-native/core/plugin.ts | 279 +- src/@ionic-native/core/util.ts | 36 +- .../plugins/action-sheet/index.ts | 13 +- src/@ionic-native/plugins/admob-free/index.ts | 71 +- src/@ionic-native/plugins/admob-pro/index.ts | 69 +- src/@ionic-native/plugins/alipay/index.ts | 11 +- .../plugins/android-exoplayer/index.ts | 63 +- .../plugins/android-fingerprint-auth/index.ts | 65 +- .../plugins/android-full-screen/index.ts | 42 +- .../plugins/android-permissions/index.ts | 49 +- .../plugins/app-availability/index.ts | 8 +- .../plugins/app-minimize/index.ts | 8 +- .../plugins/app-preferences/index.ts | 52 +- src/@ionic-native/plugins/app-rate/index.ts | 7 +- .../plugins/app-version/index.ts | 22 +- src/@ionic-native/plugins/apple-pay/index.ts | 54 +- src/@ionic-native/plugins/appodeal/index.ts | 199 +- src/@ionic-native/plugins/autostart/index.ts | 8 +- .../plugins/background-fetch/index.ts | 25 +- .../plugins/background-geolocation/index.ts | 200 +- .../plugins/background-mode/index.ts | 2 +- src/@ionic-native/plugins/backlight/index.ts | 13 +- src/@ionic-native/plugins/badge/index.ts | 2 +- src/@ionic-native/plugins/base64/index.ts | 8 +- .../plugins/bluetooth-serial/index.ts | 81 +- src/@ionic-native/plugins/braintree/index.ts | 31 +- .../plugins/broadcaster/index.ts | 12 +- .../plugins/browser-tab/index.ts | 15 +- .../plugins/camera-preview/index.ts | 113 +- src/@ionic-native/plugins/camera/index.ts | 16 +- src/@ionic-native/plugins/card-io/index.ts | 20 +- src/@ionic-native/plugins/clipboard/index.ts | 13 +- src/@ionic-native/plugins/code-push/index.ts | 104 +- src/@ionic-native/plugins/contacts/index.ts | 117 +- .../plugins/couchbase-lite/index.ts | 17 +- src/@ionic-native/plugins/crop/index.ts | 2 +- src/@ionic-native/plugins/deeplinks/index.ts | 30 +- .../plugins/device-motion/index.ts | 30 +- .../plugins/device-orientation/index.ts | 31 +- src/@ionic-native/plugins/device/index.ts | 28 +- src/@ionic-native/plugins/diagnostic/index.ts | 321 +- src/@ionic-native/plugins/dialogs/index.ts | 32 +- src/@ionic-native/plugins/dns/index.ts | 6 +- .../plugins/document-viewer/index.ts | 28 +- .../plugins/email-composer/index.ts | 26 +- .../plugins/estimote-beacons/index.ts | 145 +- .../extended-device-information/index.ts | 16 +- src/@ionic-native/plugins/facebook/index.ts | 112 +- src/@ionic-native/plugins/fcm/index.ts | 26 +- .../plugins/file-chooser/index.ts | 8 +- .../plugins/file-encryption/index.ts | 12 +- .../plugins/file-opener/index.ts | 16 +- src/@ionic-native/plugins/file-path/index.ts | 8 +- .../plugins/file-transfer/index.ts | 58 +- src/@ionic-native/plugins/file/index.ts | 562 +- .../plugins/fingerprint-aio/index.ts | 13 +- .../plugins/firebase-analytics/index.ts | 24 +- .../plugins/firebase-dynamic-links/index.ts | 15 +- src/@ionic-native/plugins/firebase/index.ts | 9 +- src/@ionic-native/plugins/flashlight/index.ts | 25 +- .../plugins/flurry-analytics/index.ts | 32 +- src/@ionic-native/plugins/ftp/index.ts | 58 +- src/@ionic-native/plugins/geofence/index.ts | 43 +- .../plugins/geolocation/index.ts | 31 +- .../plugins/globalization/index.ts | 103 +- .../plugins/google-analytics/index.ts | 2 +- .../plugins/google-maps/index.ts | 840 +-- .../google-play-games-services/index.ts | 103 +- .../plugins/google-plus/index.ts | 27 +- src/@ionic-native/plugins/gyroscope/index.ts | 23 +- .../plugins/header-color/index.ts | 8 +- src/@ionic-native/plugins/health-kit/index.ts | 339 +- src/@ionic-native/plugins/health/index.ts | 44 +- src/@ionic-native/plugins/hotspot/index.ts | 141 +- src/@ionic-native/plugins/http/index.ts | 75 +- src/@ionic-native/plugins/httpd/index.ts | 18 +- .../plugins/hyper-track/index.ts | 69 +- src/@ionic-native/plugins/ibeacon/index.ts | 257 +- .../plugins/image-picker/index.ts | 19 +- .../plugins/image-resizer/index.ts | 6 +- .../plugins/in-app-browser/index.ts | 85 +- .../plugins/in-app-purchase-2/index.ts | 289 +- .../plugins/in-app-purchase/index.ts | 47 +- src/@ionic-native/plugins/insomnia/index.ts | 22 +- src/@ionic-native/plugins/instagram/index.ts | 16 +- .../plugins/intel-security/index.ts | 85 +- src/@ionic-native/plugins/intercom/index.ts | 72 +- src/@ionic-native/plugins/jins-meme/index.ts | 84 +- src/@ionic-native/plugins/keyboard/index.ts | 21 +- .../plugins/keychain-touch-id/index.ts | 20 +- src/@ionic-native/plugins/keychain/index.ts | 29 +- .../plugins/launch-navigator/index.ts | 66 +- .../plugins/launch-review/index.ts | 16 +- src/@ionic-native/plugins/linkedin/index.ts | 39 +- .../plugins/local-notifications/index.ts | 100 +- .../plugins/location-accuracy/index.ts | 15 +- src/@ionic-native/plugins/market/index.ts | 13 +- .../plugins/media-capture/index.ts | 36 +- src/@ionic-native/plugins/media/index.ts | 86 +- src/@ionic-native/plugins/mixpanel/index.ts | 62 +- .../plugins/mobile-accessibility/index.ts | 129 +- src/@ionic-native/plugins/ms-adal/index.ts | 52 +- .../plugins/music-controls/index.ts | 29 +- .../plugins/native-audio/index.ts | 38 +- .../plugins/native-geocoder/index.ts | 16 +- .../plugins/native-keyboard/index.ts | 18 +- .../plugins/native-page-transitions/index.ts | 34 +- .../plugins/native-ringtones/index.ts | 15 +- .../plugins/native-storage/index.ts | 24 +- .../plugins/navigation-bar/index.ts | 35 +- .../plugins/network-interface/index.ts | 12 +- src/@ionic-native/plugins/network/index.ts | 28 +- src/@ionic-native/plugins/nfc/index.ts | 274 +- src/@ionic-native/plugins/onesignal/index.ts | 2 +- .../plugins/open-native-settings/index.ts | 14 +- src/@ionic-native/plugins/paypal/index.ts | 66 +- src/@ionic-native/plugins/pedometer/index.ts | 45 +- .../phonegap-local-notification/index.ts | 38 +- .../plugins/photo-library/index.ts | 85 +- .../plugins/photo-viewer/index.ts | 6 +- src/@ionic-native/plugins/pin-check/index.ts | 6 +- src/@ionic-native/plugins/pin-dialog/index.ts | 12 +- src/@ionic-native/plugins/pinterest/index.ts | 91 +- .../plugins/power-management/index.ts | 19 +- src/@ionic-native/plugins/printer/index.ts | 27 +- src/@ionic-native/plugins/pro/index.ts | 73 +- src/@ionic-native/plugins/push/index.ts | 70 +- src/@ionic-native/plugins/qqsdk/index.ts | 9 +- src/@ionic-native/plugins/qr-scanner/index.ts | 56 +- .../plugins/regula-document-reader/index.ts | 10 +- src/@ionic-native/plugins/rollbar/index.ts | 11 +- .../plugins/safari-view-controller/index.ts | 28 +- .../plugins/screen-orientation/index.ts | 24 +- src/@ionic-native/plugins/screenshot/index.ts | 56 +- .../plugins/secure-storage/index.ts | 43 +- src/@ionic-native/plugins/serial/index.ts | 32 +- src/@ionic-native/plugins/shake/index.ts | 8 +- src/@ionic-native/plugins/sim/index.ts | 15 +- src/@ionic-native/plugins/sms/index.ts | 17 +- .../plugins/social-sharing/index.ts | 106 +- .../plugins/speech-recognition/index.ts | 15 +- .../plugins/spinner-dialog/index.ts | 11 +- .../plugins/splash-screen/index.ts | 9 +- .../plugins/sqlite-porter/index.ts | 35 +- src/@ionic-native/plugins/status-bar/index.ts | 33 +- .../plugins/stepcounter/index.ts | 28 +- .../plugins/streaming-media/index.ts | 13 +- src/@ionic-native/plugins/stripe/index.ts | 76 +- .../plugins/taptic-engine/index.ts | 14 +- .../plugins/text-to-speech/index.ts | 4 +- .../plugins/themeable-browser/index.ts | 72 +- .../plugins/three-dee-touch/index.ts | 31 +- src/@ionic-native/plugins/toast/index.ts | 44 +- src/@ionic-native/plugins/touch-id/index.ts | 28 +- .../plugins/twitter-connect/index.ts | 17 +- src/@ionic-native/plugins/uid/index.ts | 27 +- .../plugins/unique-device-id/index.ts | 8 +- src/@ionic-native/plugins/user-agent/index.ts | 4 +- src/@ionic-native/plugins/vibration/index.ts | 7 +- .../plugins/video-capture-plus/index.ts | 45 +- .../plugins/video-editor/index.ts | 29 +- .../plugins/video-player/index.ts | 15 +- src/@ionic-native/plugins/web-intent/index.ts | 10 +- .../plugins/wheel-selector/index.ts | 12 +- .../plugins/youtube-video-player/index.ts | 7 +- src/@ionic-native/plugins/zbar/index.ts | 8 +- src/@ionic-native/plugins/zeroconf/index.ts | 40 +- src/@ionic-native/plugins/zip/index.ts | 12 +- 178 files changed, 4221 insertions(+), 10592 deletions(-) diff --git a/package-lock.json b/package-lock.json index 89e0aaca5..c7cf02487 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,33 +5,41 @@ "requires": true, "dependencies": { "@angular/compiler": { - "version": "5.2.9", - "resolved": "http://registry.npmjs.org/@angular/compiler/-/compiler-5.2.9.tgz", - "integrity": "sha512-mN+ofInk8y/tk2TCJZx8RrGdOKdrfunoCair7tfDy4XoQJE90waGfaYWo07hYU+UYwLhrg19m2Czy6rIDciUJA==", + "version": "4.4.4", + "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-4.4.4.tgz", + "integrity": "sha1-Mm6wAp2aNUGqyhJN75rcUcNvK0E=", "dev": true, "requires": { - "tslib": "1.9.0" + "tslib": "1.8.0" } }, "@angular/compiler-cli": { - "version": "5.2.9", - "resolved": "http://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-5.2.9.tgz", - "integrity": "sha512-LAEpL/6PAev3zwTow/43Atzv9AtKLAiLoS285X3EV1f80yQpYAmFRrPUtDlrIZdhZHBBv7CxnyCVpOLU3T8ohw==", + "version": "4.4.4", + "resolved": "https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-4.4.4.tgz", + "integrity": "sha1-BjCApJfZF1OWglBQIixxfaGE9s8=", "dev": true, "requires": { - "chokidar": "1.7.0", + "@angular/tsc-wrapped": "4.4.4", "minimist": "1.2.0", - "reflect-metadata": "0.1.12", - "tsickle": "0.27.2" + "reflect-metadata": "0.1.10" } }, "@angular/core": { - "version": "5.2.9", - "resolved": "https://registry.npmjs.org/@angular/core/-/core-5.2.9.tgz", - "integrity": "sha512-cvHBJGtasrIoARvbLFyHaOsiWKVwMNrrSTZLwrlyHP8oYzkDrE0qKGer6QCqyKt+51hF53cgWEffGzM/u/0wYg==", + "version": "4.4.4", + "resolved": "https://registry.npmjs.org/@angular/core/-/core-4.4.4.tgz", + "integrity": "sha1-vTfs9UFY+XSJmWyThr0iL4CjL1w=", "dev": true, "requires": { - "tslib": "1.9.0" + "tslib": "1.8.0" + } + }, + "@angular/tsc-wrapped": { + "version": "4.4.4", + "resolved": "https://registry.npmjs.org/@angular/tsc-wrapped/-/tsc-wrapped-4.4.4.tgz", + "integrity": "sha1-mEGCHlVha4JsoWAlD+heFfx0/8M=", + "dev": true, + "requires": { + "tsickle": "0.21.6" } }, "@types/cordova": { @@ -40,22 +48,16 @@ "integrity": "sha1-6nrd907Ow9dimCegw54smt3HPQQ=", "dev": true }, - "@types/fancy-log": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@types/fancy-log/-/fancy-log-1.3.0.tgz", - "integrity": "sha512-mQjDxyOM1Cpocd+vm1kZBP7smwKZ4TNokFeds9LV7OZibmPJFEzY3+xZMrKfUdNT71lv8GoCPD6upKwHxubClw==", - "dev": true - }, "@types/jasmine": { - "version": "2.8.6", - "resolved": "https://registry.npmjs.org/@types/jasmine/-/jasmine-2.8.6.tgz", - "integrity": "sha512-clg9raJTY0EOo5pVZKX3ZlMjlYzVU73L71q5OV1jhE2Uezb7oF94jh4CvwrW6wInquQAdhOxJz5VDF2TLUGmmA==", + "version": "2.6.3", + "resolved": "https://registry.npmjs.org/@types/jasmine/-/jasmine-2.6.3.tgz", + "integrity": "sha512-2dJf9//QxTnFBXHsCqLbB55jlMreJQie9HhgsZrSgHveOKCWVmgcXgRyvIi22Ndk/dJ/e2srLOstk2NgVbb7XA==", "dev": true }, "@types/node": { - "version": "8.9.5", - "resolved": "http://registry.npmjs.org/@types/node/-/node-8.9.5.tgz", - "integrity": "sha512-jRHfWsvyMtXdbhnz5CVHxaBgnV6duZnPlQuRSo/dm/GnmikNcmZhxIES4E9OZjUmQ8C+HCl4KJux+cXN/ErGDQ==", + "version": "8.0.51", + "resolved": "https://registry.npmjs.org/@types/node/-/node-8.0.51.tgz", + "integrity": "sha512-El3+WJk2D/ppWNd2X05aiP5l2k4EwF7KwheknQZls+I26eSICoWRhRIJ56jGgw2dqNGQ5LtNajmBU2ajS28EvQ==", "dev": true }, "JSONStream": { @@ -75,30 +77,13 @@ "dev": true }, "accepts": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.5.tgz", - "integrity": "sha1-63d99gEXI6OxTopywIBcjoZ0a9I=", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.3.tgz", + "integrity": "sha1-w8p0NJOGSMPg2cHjKN1otiLChMo=", "dev": true, "requires": { - "mime-types": "2.1.18", + "mime-types": "2.1.17", "negotiator": "0.6.1" - }, - "dependencies": { - "mime-db": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.33.0.tgz", - "integrity": "sha512-BHJ/EKruNIqJf/QahvxwQZXKygOQ256myeN/Ew+THcAa5q+PjyTTMMeNQC4DZw5AwfvelsUrA6B67NKMqXDbzQ==", - "dev": true - }, - "mime-types": { - "version": "2.1.18", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.18.tgz", - "integrity": "sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ==", - "dev": true, - "requires": { - "mime-db": "1.33.0" - } - } } }, "acorn": { @@ -107,61 +92,18 @@ "integrity": "sha1-EFSVrlNh1pe9GVyCUZLhrX8lN4c=", "dev": true }, - "acorn-node": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/acorn-node/-/acorn-node-1.3.0.tgz", - "integrity": "sha512-efP54n3d1aLfjL2UMdaXa6DsswwzJeI5rqhbFvXMrKiJ6eJFpf+7R0zN7t8IC+XKn2YOAFAv6xbBNgHUkoHWLw==", - "dev": true, - "requires": { - "acorn": "5.5.3", - "xtend": "4.0.1" - }, - "dependencies": { - "acorn": { - "version": "5.5.3", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.5.3.tgz", - "integrity": "sha512-jd5MkIUlbbmb07nXH0DT3y7rDVtkzDi4XZOUVWAer8ajmF/DTSSbl5oNFyDOl/OXA33Bl79+ypHhl2pN20VeOQ==", - "dev": true - } - } - }, "add-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/add-stream/-/add-stream-1.0.0.tgz", "integrity": "sha1-anmQQ3ynNtXhKI25K9MmbV9csqo=", "dev": true }, - "addressparser": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/addressparser/-/addressparser-1.0.1.tgz", - "integrity": "sha1-R6++GiqSYhkdtoOOT9HTm0CCF0Y=", - "dev": true, - "optional": true - }, "after": { "version": "0.8.2", "resolved": "https://registry.npmjs.org/after/-/after-0.8.2.tgz", "integrity": "sha1-/ts5T58OAqqXaOcCvaI7UF+ufh8=", "dev": true }, - "agent-base": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-2.1.1.tgz", - "integrity": "sha1-1t4Q1a9hMtW9aSQn1G/FOFOQlMc=", - "dev": true, - "requires": { - "extend": "3.0.1", - "semver": "5.0.3" - }, - "dependencies": { - "semver": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.0.3.tgz", - "integrity": "sha1-d0Zt5YnNXTyV8TiqeLxWmjy10no=", - "dev": true - } - } - }, "ajv": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.3.0.tgz", @@ -191,85 +133,6 @@ "integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=", "dev": true }, - "amqplib": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/amqplib/-/amqplib-0.5.2.tgz", - "integrity": "sha512-l9mCs6LbydtHqRniRwYkKdqxVa6XMz3Vw1fh+2gJaaVgTM6Jk3o8RccAKWKtlhT1US5sWrFh+KKxsVUALURSIA==", - "dev": true, - "optional": true, - "requires": { - "bitsyntax": "0.0.4", - "bluebird": "3.5.1", - "buffer-more-ints": "0.0.2", - "readable-stream": "1.1.14", - "safe-buffer": "5.1.1" - }, - "dependencies": { - "isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", - "dev": true, - "optional": true - }, - "readable-stream": { - "version": "1.1.14", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", - "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", - "dev": true, - "optional": true, - "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "0.0.1", - "string_decoder": "0.10.31" - } - }, - "string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", - "dev": true, - "optional": true - } - } - }, - "ansi-colors": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-1.1.0.tgz", - "integrity": "sha512-SFKX67auSNoVR38N3L+nvsPjOE0bybKTYbkf5tRvushrAPQ9V75huw0ZxBkKVeRU9kqH3d6HA4xTckbwZ4ixmA==", - "dev": true, - "requires": { - "ansi-wrap": "0.1.0" - } - }, - "ansi-cyan": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/ansi-cyan/-/ansi-cyan-0.1.1.tgz", - "integrity": "sha1-U4rlKK+JgvKK4w2G8vF0VtJgmHM=", - "dev": true, - "requires": { - "ansi-wrap": "0.1.0" - } - }, - "ansi-gray": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/ansi-gray/-/ansi-gray-0.1.1.tgz", - "integrity": "sha1-KWLPVOyXksSFEKPetSRDaGHvclE=", - "dev": true, - "requires": { - "ansi-wrap": "0.1.0" - } - }, - "ansi-red": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/ansi-red/-/ansi-red-0.1.1.tgz", - "integrity": "sha1-jGOPnRCAgAo1PJwoyKgcpHBdlGw=", - "dev": true, - "requires": { - "ansi-wrap": "0.1.0" - } - }, "ansi-regex": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", @@ -282,12 +145,6 @@ "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", "dev": true }, - "ansi-wrap": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/ansi-wrap/-/ansi-wrap-0.1.0.tgz", - "integrity": "sha1-qCJQ3bABXponyoLoLqYDu/pF768=", - "dev": true - }, "anymatch": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-1.3.2.tgz", @@ -305,9 +162,9 @@ "dev": true }, "argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.9.tgz", + "integrity": "sha1-c9g7wmP4bpf4zE9rrhsOkKfSLIY=", "dev": true, "requires": { "sprintf-js": "1.0.3" @@ -328,12 +185,6 @@ "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", "dev": true }, - "arr-union": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-2.1.0.tgz", - "integrity": "sha1-IPnqtexw9cfSFbEHexw5Fh0pLH0=", - "dev": true - }, "array-differ": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/array-differ/-/array-differ-1.0.0.tgz", @@ -346,12 +197,6 @@ "integrity": "sha1-p5SvDAWrF1KEbudTofIRoFugxE8=", "dev": true }, - "array-filter": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/array-filter/-/array-filter-0.0.1.tgz", - "integrity": "sha1-fajPLiZijtcygDWB/SH2fKzS7uw=", - "dev": true - }, "array-find-index": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz", @@ -364,18 +209,6 @@ "integrity": "sha1-nlKHYrSpBmrRY6aWKjZEGOlibs4=", "dev": true }, - "array-map": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/array-map/-/array-map-0.0.0.tgz", - "integrity": "sha1-iKK6tz0c97zVwbEYoAP2b2ZfpmI=", - "dev": true - }, - "array-reduce": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/array-reduce/-/array-reduce-0.0.0.tgz", - "integrity": "sha1-FziZ0//Rx9k4PkR5Ul2+J4yrXys=", - "dev": true - }, "array-slice": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/array-slice/-/array-slice-1.0.0.tgz", @@ -395,15 +228,9 @@ "dev": true }, "arraybuffer.slice": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/arraybuffer.slice/-/arraybuffer.slice-0.0.7.tgz", - "integrity": "sha512-wGUIVQXuehL5TCqQun8OW81jGzAWycqzFF8lFp+GOM5BXLYj3bKNsYC4daB7n6XjCqxQA/qgTJ+8ANR3acjrog==", - "dev": true - }, - "arrify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", - "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/arraybuffer.slice/-/arraybuffer.slice-0.0.6.tgz", + "integrity": "sha1-8zshWfBTKj8xB6JywMz70a0peco=", "dev": true }, "asap": { @@ -419,9 +246,9 @@ "dev": true }, "asn1.js": { - "version": "4.10.1", - "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-4.10.1.tgz", - "integrity": "sha512-p32cOF5q0Zqs9uBiONKYLm6BClCoBCM5O9JfeUSlnQLBTxYdTK+pW+nXflm8UkKd2UYlEbYz5qEi0JuZR9ckSw==", + "version": "4.9.2", + "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-4.9.2.tgz", + "integrity": "sha512-b/OsSjvWEo8Pi8H0zsDd2P6Uqo2TK2pH8gNLSJtNLM2Db0v2QaAZ0pBQJXVjAn4gBuugeVDr7s63ZogpUIwWDg==", "dev": true, "requires": { "bn.js": "4.11.8", @@ -444,28 +271,6 @@ "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", "dev": true }, - "assign-symbols": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", - "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=", - "dev": true - }, - "ast-types": { - "version": "0.11.3", - "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.11.3.tgz", - "integrity": "sha512-XA5o5dsNw8MhyW0Q7MWXJWc4oOzZKbdsEJq45h7c8q/d9DwWZ5F2ugUc1PuMLPGsUnphCt/cNDHu8JeBbxf1qA==", - "dev": true, - "optional": true - }, - "astw": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/astw/-/astw-2.2.0.tgz", - "integrity": "sha1-e9QXhNMkk5h66yOba04cV6hzuRc=", - "dev": true, - "requires": { - "acorn": "4.0.13" - } - }, "async": { "version": "1.5.2", "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", @@ -478,12 +283,6 @@ "integrity": "sha1-GdOGodntxufByF04iu28xW0zYC0=", "dev": true }, - "async-limiter": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.0.tgz", - "integrity": "sha512-jp/uFnooOiO+L211eZOoSyzpOITMXx1rBITauYykG3BRYPu8h0UcxsPNB04RR5vo4Tyz3+ay17tR6JVf9qzYWg==", - "dev": true - }, "asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", @@ -502,16 +301,6 @@ "integrity": "sha1-g+9cqGCysy5KDe7e6MdxudtXRx4=", "dev": true }, - "axios": { - "version": "0.15.3", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.15.3.tgz", - "integrity": "sha1-LJ1jiy4ZGgjqHWzJiOrda6W9wFM=", - "dev": true, - "optional": true, - "requires": { - "follow-redirects": "1.0.0" - } - }, "babel-code-frame": { "version": "6.26.0", "resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz", @@ -530,7 +319,7 @@ "dev": true, "requires": { "babel-code-frame": "6.26.0", - "babel-generator": "6.26.1", + "babel-generator": "6.26.0", "babel-helpers": "6.24.1", "babel-messages": "6.23.0", "babel-register": "6.26.0", @@ -539,10 +328,10 @@ "babel-traverse": "6.26.0", "babel-types": "6.26.0", "babylon": "6.18.0", - "convert-source-map": "1.5.1", + "convert-source-map": "1.5.0", "debug": "2.6.9", "json5": "0.5.1", - "lodash": "4.17.5", + "lodash": "4.17.4", "minimatch": "3.0.4", "path-is-absolute": "1.0.1", "private": "0.1.8", @@ -551,9 +340,9 @@ } }, "babel-generator": { - "version": "6.26.1", - "resolved": "https://registry.npmjs.org/babel-generator/-/babel-generator-6.26.1.tgz", - "integrity": "sha512-HyfwY6ApZj7BYTcJURpM5tznulaBvyio7/0d4zFOeMPUmfxkCjHocCuoLa2SAGzBI8AREcH3eP3758F672DppA==", + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-generator/-/babel-generator-6.26.0.tgz", + "integrity": "sha1-rBriAHC3n248odMmlhMFN3TyDcU=", "dev": true, "requires": { "babel-messages": "6.23.0", @@ -561,22 +350,11 @@ "babel-types": "6.26.0", "detect-indent": "4.0.0", "jsesc": "1.3.0", - "lodash": "4.17.5", + "lodash": "4.17.4", "source-map": "0.5.7", "trim-right": "1.0.1" } }, - "babel-helper-builder-binary-assignment-operator-visitor": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-builder-binary-assignment-operator-visitor/-/babel-helper-builder-binary-assignment-operator-visitor-6.24.1.tgz", - "integrity": "sha1-zORReto1b0IgvK6KAsKzRvmlZmQ=", - "dev": true, - "requires": { - "babel-helper-explode-assignable-expression": "6.24.1", - "babel-runtime": "6.26.0", - "babel-types": "6.26.0" - } - }, "babel-helper-call-delegate": { "version": "6.24.1", "resolved": "https://registry.npmjs.org/babel-helper-call-delegate/-/babel-helper-call-delegate-6.24.1.tgz", @@ -598,18 +376,7 @@ "babel-helper-function-name": "6.24.1", "babel-runtime": "6.26.0", "babel-types": "6.26.0", - "lodash": "4.17.5" - } - }, - "babel-helper-explode-assignable-expression": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-explode-assignable-expression/-/babel-helper-explode-assignable-expression-6.24.1.tgz", - "integrity": "sha1-8luCz33BBDPFX3BZLVdGQArCLKo=", - "dev": true, - "requires": { - "babel-runtime": "6.26.0", - "babel-traverse": "6.26.0", - "babel-types": "6.26.0" + "lodash": "4.17.4" } }, "babel-helper-function-name": { @@ -663,20 +430,7 @@ "requires": { "babel-runtime": "6.26.0", "babel-types": "6.26.0", - "lodash": "4.17.5" - } - }, - "babel-helper-remap-async-to-generator": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-remap-async-to-generator/-/babel-helper-remap-async-to-generator-6.24.1.tgz", - "integrity": "sha1-XsWBgnrXI/7N04HxySg5BnbkVRs=", - "dev": true, - "requires": { - "babel-helper-function-name": "6.24.1", - "babel-runtime": "6.26.0", - "babel-template": "6.26.0", - "babel-traverse": "6.26.0", - "babel-types": "6.26.0" + "lodash": "4.17.4" } }, "babel-helper-replace-supers": { @@ -721,35 +475,6 @@ "babel-runtime": "6.26.0" } }, - "babel-plugin-syntax-async-functions": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz", - "integrity": "sha1-ytnK0RkbWtY0vzCuCHI5HgZHvpU=", - "dev": true - }, - "babel-plugin-syntax-exponentiation-operator": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-exponentiation-operator/-/babel-plugin-syntax-exponentiation-operator-6.13.0.tgz", - "integrity": "sha1-nufoM3KQ2pUoggGmpX9BcDF4MN4=", - "dev": true - }, - "babel-plugin-syntax-trailing-function-commas": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-6.22.0.tgz", - "integrity": "sha1-ugNgk3+NBuQBgKQ/4NVhb/9TLPM=", - "dev": true - }, - "babel-plugin-transform-async-to-generator": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-async-to-generator/-/babel-plugin-transform-async-to-generator-6.24.1.tgz", - "integrity": "sha1-ZTbjeK/2yx1VF6wOQOs+n8jQh2E=", - "dev": true, - "requires": { - "babel-helper-remap-async-to-generator": "6.24.1", - "babel-plugin-syntax-async-functions": "6.13.0", - "babel-runtime": "6.26.0" - } - }, "babel-plugin-transform-es2015-arrow-functions": { "version": "6.22.0", "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz", @@ -778,7 +503,7 @@ "babel-template": "6.26.0", "babel-traverse": "6.26.0", "babel-types": "6.26.0", - "lodash": "4.17.5" + "lodash": "4.17.4" } }, "babel-plugin-transform-es2015-classes": { @@ -984,17 +709,6 @@ "regexpu-core": "2.0.0" } }, - "babel-plugin-transform-exponentiation-operator": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-exponentiation-operator/-/babel-plugin-transform-exponentiation-operator-6.24.1.tgz", - "integrity": "sha1-KrDJx/MJj6SJB3cruBP+QejeOg4=", - "dev": true, - "requires": { - "babel-helper-builder-binary-assignment-operator-visitor": "6.24.1", - "babel-plugin-syntax-exponentiation-operator": "6.13.0", - "babel-runtime": "6.26.0" - } - }, "babel-plugin-transform-regenerator": { "version": "6.26.0", "resolved": "https://registry.npmjs.org/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.26.0.tgz", @@ -1014,15 +728,13 @@ "babel-types": "6.26.0" } }, - "babel-preset-env": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/babel-preset-env/-/babel-preset-env-1.6.1.tgz", - "integrity": "sha512-W6VIyA6Ch9ePMI7VptNn2wBM6dbG0eSz25HEiL40nQXCsXGTGZSTZu1Iap+cj3Q0S5a7T9+529l/5Bkvd+afNA==", + "babel-preset-es2015": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-preset-es2015/-/babel-preset-es2015-6.24.1.tgz", + "integrity": "sha1-1EBQ1rwsn+6nAqrzjXJ6AhBTiTk=", "dev": true, "requires": { "babel-plugin-check-es2015-constants": "6.22.0", - "babel-plugin-syntax-trailing-function-commas": "6.22.0", - "babel-plugin-transform-async-to-generator": "6.24.1", "babel-plugin-transform-es2015-arrow-functions": "6.22.0", "babel-plugin-transform-es2015-block-scoped-functions": "6.22.0", "babel-plugin-transform-es2015-block-scoping": "6.26.0", @@ -1045,11 +757,7 @@ "babel-plugin-transform-es2015-template-literals": "6.22.0", "babel-plugin-transform-es2015-typeof-symbol": "6.23.0", "babel-plugin-transform-es2015-unicode-regex": "6.24.1", - "babel-plugin-transform-exponentiation-operator": "6.24.1", - "babel-plugin-transform-regenerator": "6.26.0", - "browserslist": "2.11.3", - "invariant": "2.2.4", - "semver": "5.5.0" + "babel-plugin-transform-regenerator": "6.26.0" } }, "babel-register": { @@ -1062,7 +770,7 @@ "babel-runtime": "6.26.0", "core-js": "2.5.1", "home-or-tmp": "2.0.0", - "lodash": "4.17.5", + "lodash": "4.17.4", "mkdirp": "0.5.1", "source-map-support": "0.4.18" } @@ -1074,7 +782,7 @@ "dev": true, "requires": { "core-js": "2.5.1", - "regenerator-runtime": "0.11.1" + "regenerator-runtime": "0.11.0" } }, "babel-template": { @@ -1087,7 +795,7 @@ "babel-traverse": "6.26.0", "babel-types": "6.26.0", "babylon": "6.18.0", - "lodash": "4.17.5" + "lodash": "4.17.4" } }, "babel-traverse": { @@ -1103,8 +811,8 @@ "babylon": "6.18.0", "debug": "2.6.9", "globals": "9.18.0", - "invariant": "2.2.4", - "lodash": "4.17.5" + "invariant": "2.2.2", + "lodash": "4.17.4" } }, "babel-types": { @@ -1115,7 +823,7 @@ "requires": { "babel-runtime": "6.26.0", "esutils": "2.0.2", - "lodash": "4.17.5", + "lodash": "4.17.4", "to-fast-properties": "1.0.3" } }, @@ -1144,9 +852,9 @@ "dev": true }, "base64-js": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.2.3.tgz", - "integrity": "sha512-MsAhsUW1GxCdgYSO6tAfZrNapmUKk7mWx/k5mFY/A1gBtkaCaNapTg+FExCw1r9yeaZhqx/xPg43xgTFH6KL5w==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.2.1.tgz", + "integrity": "sha512-dwVUVIXsBZXwTuwnXI9RK8sBmgq09NDHzyR9SAph9eqk76gKK2JSQmZARC2zRC81JC2QTtxD0ARU5qTS25gIGw==", "dev": true }, "base64id": { @@ -1192,50 +900,6 @@ "integrity": "sha1-HmN0iLNbWL2l9HdL+WpSEqjJB1U=", "dev": true }, - "bitsyntax": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/bitsyntax/-/bitsyntax-0.0.4.tgz", - "integrity": "sha1-6xDMb4K4xJDj6FaY8H6D1G4MuoI=", - "dev": true, - "optional": true, - "requires": { - "buffer-more-ints": "0.0.2" - } - }, - "bl": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/bl/-/bl-1.1.2.tgz", - "integrity": "sha1-/cqHGplxOqANGeO7ukHER4emU5g=", - "dev": true, - "optional": true, - "requires": { - "readable-stream": "2.0.6" - }, - "dependencies": { - "readable-stream": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.0.6.tgz", - "integrity": "sha1-j5A0HmilPMySh4jaz80Rs265t44=", - "dev": true, - "optional": true, - "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "1.0.7", - "string_decoder": "0.10.31", - "util-deprecate": "1.0.2" - } - }, - "string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", - "dev": true, - "optional": true - } - } - }, "blob": { "version": "0.0.4", "resolved": "https://registry.npmjs.org/blob/-/blob-0.0.4.tgz", @@ -1263,13 +927,13 @@ "bytes": "3.0.0", "content-type": "1.0.4", "debug": "2.6.9", - "depd": "1.1.2", + "depd": "1.1.1", "http-errors": "1.6.2", "iconv-lite": "0.4.19", "on-finished": "2.3.0", "qs": "6.5.1", "raw-body": "2.3.2", - "type-is": "1.6.16" + "type-is": "1.6.15" } }, "boom": { @@ -1308,20 +972,6 @@ "integrity": "sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=", "dev": true }, - "browser-pack": { - "version": "6.0.4", - "resolved": "https://registry.npmjs.org/browser-pack/-/browser-pack-6.0.4.tgz", - "integrity": "sha512-Q4Rvn7P6ObyWfc4stqLWHtG1MJ8vVtjgT24Zbu+8UTzxYuZouqZsmNRRTFVMY/Ux0eIKv1d+JWzsInTX+fdHPQ==", - "dev": true, - "requires": { - "JSONStream": "1.3.1", - "combine-source-map": "0.8.0", - "defined": "1.0.0", - "safe-buffer": "5.1.1", - "through2": "2.0.3", - "umd": "3.0.3" - } - }, "browser-resolve": { "version": "1.11.2", "resolved": "https://registry.npmjs.org/browser-resolve/-/browser-resolve-1.11.2.tgz", @@ -1339,120 +989,6 @@ } } }, - "browserify": { - "version": "14.5.0", - "resolved": "https://registry.npmjs.org/browserify/-/browserify-14.5.0.tgz", - "integrity": "sha512-gKfOsNQv/toWz+60nSPfYzuwSEdzvV2WdxrVPUbPD/qui44rAkB3t3muNtmmGYHqrG56FGwX9SUEQmzNLAeS7g==", - "dev": true, - "requires": { - "JSONStream": "1.3.1", - "assert": "1.4.1", - "browser-pack": "6.0.4", - "browser-resolve": "1.11.2", - "browserify-zlib": "0.2.0", - "buffer": "5.1.0", - "cached-path-relative": "1.0.1", - "concat-stream": "1.5.2", - "console-browserify": "1.1.0", - "constants-browserify": "1.0.0", - "crypto-browserify": "3.12.0", - "defined": "1.0.0", - "deps-sort": "2.0.0", - "domain-browser": "1.1.7", - "duplexer2": "0.1.4", - "events": "1.1.1", - "glob": "7.1.2", - "has": "1.0.1", - "htmlescape": "1.1.1", - "https-browserify": "1.0.0", - "inherits": "2.0.3", - "insert-module-globals": "7.0.2", - "labeled-stream-splicer": "2.0.0", - "module-deps": "4.1.1", - "os-browserify": "0.3.0", - "parents": "1.0.1", - "path-browserify": "0.0.0", - "process": "0.11.10", - "punycode": "1.4.1", - "querystring-es3": "0.2.1", - "read-only-stream": "2.0.0", - "readable-stream": "2.3.3", - "resolve": "1.5.0", - "shasum": "1.0.2", - "shell-quote": "1.6.1", - "stream-browserify": "2.0.1", - "stream-http": "2.8.1", - "string_decoder": "1.0.3", - "subarg": "1.0.0", - "syntax-error": "1.4.0", - "through2": "2.0.3", - "timers-browserify": "1.4.2", - "tty-browserify": "0.0.0", - "url": "0.11.0", - "util": "0.10.3", - "vm-browserify": "0.0.4", - "xtend": "4.0.1" - }, - "dependencies": { - "concat-stream": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.5.2.tgz", - "integrity": "sha1-cIl4Yk2FavQaWnQd790mHadSwmY=", - "dev": true, - "requires": { - "inherits": "2.0.3", - "readable-stream": "2.0.6", - "typedarray": "0.0.6" - }, - "dependencies": { - "readable-stream": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.0.6.tgz", - "integrity": "sha1-j5A0HmilPMySh4jaz80Rs265t44=", - "dev": true, - "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "1.0.7", - "string_decoder": "0.10.31", - "util-deprecate": "1.0.2" - } - }, - "string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", - "dev": true - } - } - }, - "domain-browser": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.1.7.tgz", - "integrity": "sha1-hnqksJP6oF8d4IwG9NeyH9+GmLw=", - "dev": true - }, - "duplexer2": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", - "integrity": "sha1-ixLauHjA1p4+eJEFFmKjL8a93ME=", - "dev": true, - "requires": { - "readable-stream": "2.3.3" - } - }, - "timers-browserify": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-1.4.2.tgz", - "integrity": "sha1-ycWLV1voQHN1y14kYtrO50NZ9B0=", - "dev": true, - "requires": { - "process": "0.11.10" - } - } - } - }, "browserify-aes": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.1.1.tgz", @@ -1496,7 +1032,7 @@ "dev": true, "requires": { "bn.js": "4.11.8", - "randombytes": "2.0.6" + "randombytes": "2.0.5" } }, "browserify-sign": { @@ -1523,54 +1059,22 @@ "pako": "1.0.6" } }, - "browserslist": { - "version": "2.11.3", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-2.11.3.tgz", - "integrity": "sha512-yWu5cXT7Av6mVwzWc8lMsJMHWn4xyjSuGYi4IozbVTLUOEYPSagUB8kiMDUHA1fS3zjr8nkxkn9jdvug4BBRmA==", - "dev": true, - "requires": { - "caniuse-lite": "1.0.30000815", - "electron-to-chromium": "1.3.39" - } - }, "buffer": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.1.0.tgz", - "integrity": "sha512-YkIRgwsZwJWTnyQrsBTWefizHh+8GYj3kbL1BTiAQ/9pwpino0G7B2gp5tx/FUBqUlvtxV85KNR3mwfAtv15Yw==", + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.0.8.tgz", + "integrity": "sha512-xXvjQhVNz50v2nPeoOsNqWCLGfiv4ji/gXZM28jnVwdLJxH4mFyqgqCKfaK9zf1KUbG6zTkjLOy7ou+jSMarGA==", "dev": true, "requires": { - "base64-js": "1.2.3", + "base64-js": "1.2.1", "ieee754": "1.1.8" } }, - "buffer-more-ints": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/buffer-more-ints/-/buffer-more-ints-0.0.2.tgz", - "integrity": "sha1-JrOIXRD6E9t/wBquOquHAZngEkw=", - "dev": true - }, "buffer-xor": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz", "integrity": "sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk=", "dev": true }, - "buildmail": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/buildmail/-/buildmail-4.0.1.tgz", - "integrity": "sha1-h393OLeHKYccmhBeO4N9K+EaenI=", - "dev": true, - "optional": true, - "requires": { - "addressparser": "1.0.1", - "libbase64": "0.1.0", - "libmime": "3.0.0", - "libqp": "1.1.0", - "nodemailer-fetch": "1.6.0", - "nodemailer-shared": "1.1.0", - "punycode": "1.4.1" - } - }, "builtin-modules": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", @@ -1589,12 +1093,6 @@ "integrity": "sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg=", "dev": true }, - "cached-path-relative": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/cached-path-relative/-/cached-path-relative-1.0.1.tgz", - "integrity": "sha1-0JxLUoAKpMB44t2BqGmqyQ0uVOc=", - "dev": true - }, "callsite": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/callsite/-/callsite-1.0.0.tgz", @@ -1627,12 +1125,6 @@ "map-obj": "1.0.1" } }, - "caniuse-lite": { - "version": "1.0.30000815", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000815.tgz", - "integrity": "sha512-PGSOPK6gFe5fWd+eD0u2bG0aOsN1qC4B1E66tl3jOsIoKkTIcBYAc2+O6AeNzKW8RsFykWgnhkTlfOyuTzgI9A==", - "dev": true - }, "canonical-path": { "version": "0.0.2", "resolved": "https://registry.npmjs.org/canonical-path/-/canonical-path-0.0.2.tgz", @@ -1723,7 +1215,6 @@ "requires": { "anymatch": "1.3.2", "async-each": "1.0.1", - "fsevents": "1.1.3", "glob-parent": "2.0.0", "inherits": "2.0.3", "is-binary-path": "1.0.1", @@ -1742,12 +1233,6 @@ "safe-buffer": "5.1.1" } }, - "circular-json": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/circular-json/-/circular-json-0.5.1.tgz", - "integrity": "sha512-UjgcRlTAhAkLeXmDe2wK7ktwy/tgAqxiSndTIPiFZuIPLZmzHzWMwUIe9h9m/OokypG7snxCDEuwJshGBdPvaw==", - "dev": true - }, "cliui": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/cliui/-/cliui-2.1.0.tgz", @@ -1793,25 +1278,10 @@ "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", "dev": true }, - "color-convert": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.1.tgz", - "integrity": "sha512-mjGanIiwQJskCC18rPR6OmrZ6fm2Lc7PeGFYwCmy5J34wC6F1PzdGL6xeMfmgicfYcNLGuVFA3WzXtIDCQSZxQ==", - "dev": true, - "requires": { - "color-name": "1.1.3" - } - }, - "color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", - "dev": true - }, - "color-support": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz", - "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==", + "coffee-script": { + "version": "1.12.7", + "resolved": "https://registry.npmjs.org/coffee-script/-/coffee-script-1.12.7.tgz", + "integrity": "sha512-fLeEhqwymYat/MpTPUjSKHVYYl0ec2mOyALEMLmzr5i1isuG+6jfI2j2d5oBO3VIzgUXgBVIcOT9uH1TFxBckw==", "dev": true }, "colors": { @@ -1826,7 +1296,7 @@ "integrity": "sha1-RYwH4J4NkA/Ci3Cj/sLazR0st/Y=", "dev": true, "requires": { - "lodash": "4.17.5" + "lodash": "4.17.4" } }, "combine-source-map": { @@ -1858,12 +1328,6 @@ "delayed-stream": "1.0.0" } }, - "commander": { - "version": "2.15.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.15.0.tgz", - "integrity": "sha512-7B1ilBwtYSbetCgTY1NJFg+gVpestg0fdA1MhC1Vs4ssyfSXnCAjFr+QcQM9/RedXC0EaUx1sG8Smgw2VfgKEg==", - "dev": true - }, "compare-func": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/compare-func/-/compare-func-1.3.2.tgz", @@ -1881,9 +1345,9 @@ "dev": true }, "component-emitter": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz", - "integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY=", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.1.2.tgz", + "integrity": "sha1-KWWU8nU9qmOZbSrwjRWpURbJrsM=", "dev": true }, "component-inherit": { @@ -1910,13 +1374,13 @@ } }, "connect": { - "version": "3.6.6", - "resolved": "https://registry.npmjs.org/connect/-/connect-3.6.6.tgz", - "integrity": "sha1-Ce/2xVr3I24TcTWnJXSFi2eG9SQ=", + "version": "3.6.5", + "resolved": "https://registry.npmjs.org/connect/-/connect-3.6.5.tgz", + "integrity": "sha1-+43ee6B2OHfQ7J352sC0tA5yx9o=", "dev": true, "requires": { "debug": "2.6.9", - "finalhandler": "1.1.0", + "finalhandler": "1.0.6", "parseurl": "1.3.2", "utils-merge": "1.0.1" } @@ -1953,316 +1417,110 @@ "dev": true }, "conventional-changelog": { - "version": "1.1.18", - "resolved": "https://registry.npmjs.org/conventional-changelog/-/conventional-changelog-1.1.18.tgz", - "integrity": "sha512-swf5bqhm7PsY2cw6zxuPy6+rZiiGwEpQnrWki+L+z2oZI53QSYwU4brpljmmWss821AsiwmVL+7V6hP+ER+TBA==", + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/conventional-changelog/-/conventional-changelog-1.1.7.tgz", + "integrity": "sha1-kVGmKx2O2y2CcR2r9bfPcQQfgrE=", "dev": true, "requires": { - "conventional-changelog-angular": "1.6.6", - "conventional-changelog-atom": "0.2.4", - "conventional-changelog-codemirror": "0.3.4", - "conventional-changelog-core": "2.0.5", - "conventional-changelog-ember": "0.3.6", - "conventional-changelog-eslint": "1.0.5", - "conventional-changelog-express": "0.3.4", + "conventional-changelog-angular": "1.5.2", + "conventional-changelog-atom": "0.1.2", + "conventional-changelog-codemirror": "0.2.1", + "conventional-changelog-core": "1.9.3", + "conventional-changelog-ember": "0.2.9", + "conventional-changelog-eslint": "0.2.1", + "conventional-changelog-express": "0.2.1", "conventional-changelog-jquery": "0.1.0", "conventional-changelog-jscs": "0.1.0", - "conventional-changelog-jshint": "0.3.4", - "conventional-changelog-preset-loader": "1.1.6" + "conventional-changelog-jshint": "0.2.1" } }, "conventional-changelog-angular": { - "version": "1.6.6", - "resolved": "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-1.6.6.tgz", - "integrity": "sha512-suQnFSqCxRwyBxY68pYTsFkG0taIdinHLNEAX5ivtw8bCRnIgnpvcHmlR/yjUyZIrNPYAoXlY1WiEKWgSE4BNg==", + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-1.5.2.tgz", + "integrity": "sha1-Kzj2Zf6cWSCvGi+C9Uf0ur5t5Xw=", "dev": true, "requires": { "compare-func": "1.3.2", - "q": "1.5.1" - }, - "dependencies": { - "q": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", - "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=", - "dev": true - } + "q": "1.5.0" } }, "conventional-changelog-atom": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/conventional-changelog-atom/-/conventional-changelog-atom-0.2.4.tgz", - "integrity": "sha512-4+hmbBwcAwx1XzDZ4aEOxk/ONU0iay10G0u/sld16ksgnRUHN7CxmZollm3FFaptr6VADMq1qxomA+JlpblBlg==", + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/conventional-changelog-atom/-/conventional-changelog-atom-0.1.2.tgz", + "integrity": "sha1-Ella1SZ6aTfDTPkAKBscZRmKTGM=", "dev": true, "requires": { - "q": "1.5.1" - }, - "dependencies": { - "q": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", - "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=", - "dev": true - } + "q": "1.5.0" } }, "conventional-changelog-cli": { - "version": "1.3.16", - "resolved": "https://registry.npmjs.org/conventional-changelog-cli/-/conventional-changelog-cli-1.3.16.tgz", - "integrity": "sha512-zNDG/rNbh29Z+d6zzrHN63dFZ4q9k1Ri0V8lXGw1q2ia6+FaE7AqJKccObbBFRmRISXpFESrqZiXpM4QeA84YA==", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/conventional-changelog-cli/-/conventional-changelog-cli-1.3.4.tgz", + "integrity": "sha512-b8B1i01df+Lq5t16L3g8uoEGdzViChIKmIo7TComL4DqqrjrtasRaT+/4OPGcApEgX86JkBqb4KVt85ytQinUw==", "dev": true, "requires": { "add-stream": "1.0.0", - "conventional-changelog": "1.1.18", - "lodash": "4.17.5", - "meow": "4.0.0", + "conventional-changelog": "1.1.7", + "lodash": "4.17.4", + "meow": "3.7.0", "tempfile": "1.1.1" - }, - "dependencies": { - "camelcase": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", - "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", - "dev": true - }, - "camelcase-keys": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-4.2.0.tgz", - "integrity": "sha1-oqpfsa9oh1glnDLBQUJteJI7m3c=", - "dev": true, - "requires": { - "camelcase": "4.1.0", - "map-obj": "2.0.0", - "quick-lru": "1.1.0" - } - }, - "find-up": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", - "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", - "dev": true, - "requires": { - "locate-path": "2.0.0" - } - }, - "indent-string": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz", - "integrity": "sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok=", - "dev": true - }, - "load-json-file": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", - "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=", - "dev": true, - "requires": { - "graceful-fs": "4.1.11", - "parse-json": "4.0.0", - "pify": "3.0.0", - "strip-bom": "3.0.0" - } - }, - "map-obj": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-2.0.0.tgz", - "integrity": "sha1-plzSkIepJZi4eRJXpSPgISIqwfk=", - "dev": true - }, - "meow": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/meow/-/meow-4.0.0.tgz", - "integrity": "sha512-Me/kel335m6vMKmEmA6c87Z6DUFW3JqkINRnxkbC+A/PUm0D5Fl2dEBQrPKnqCL9Te/CIa1MUt/0InMJhuC/sw==", - "dev": true, - "requires": { - "camelcase-keys": "4.2.0", - "decamelize-keys": "1.1.0", - "loud-rejection": "1.6.0", - "minimist": "1.2.0", - "minimist-options": "3.0.2", - "normalize-package-data": "2.4.0", - "read-pkg-up": "3.0.0", - "redent": "2.0.0", - "trim-newlines": "2.0.0" - } - }, - "parse-json": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", - "dev": true, - "requires": { - "error-ex": "1.3.1", - "json-parse-better-errors": "1.0.1" - } - }, - "path-type": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", - "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", - "dev": true, - "requires": { - "pify": "3.0.0" - } - }, - "pify": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", - "dev": true - }, - "read-pkg": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", - "integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=", - "dev": true, - "requires": { - "load-json-file": "4.0.0", - "normalize-package-data": "2.4.0", - "path-type": "3.0.0" - } - }, - "read-pkg-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-3.0.0.tgz", - "integrity": "sha1-PtSWaF26D4/hGNBpHcUfSh/5bwc=", - "dev": true, - "requires": { - "find-up": "2.1.0", - "read-pkg": "3.0.0" - } - }, - "redent": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/redent/-/redent-2.0.0.tgz", - "integrity": "sha1-wbIAe0LVfrE4kHmzyDM2OdXhzKo=", - "dev": true, - "requires": { - "indent-string": "3.2.0", - "strip-indent": "2.0.0" - } - }, - "strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", - "dev": true - }, - "strip-indent": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-2.0.0.tgz", - "integrity": "sha1-XvjbKV0B5u1sv3qrlpmNeCJSe2g=", - "dev": true - }, - "trim-newlines": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-2.0.0.tgz", - "integrity": "sha1-tAPQuRvlDDMd/EuC7s6yLD3hbSA=", - "dev": true - } } }, "conventional-changelog-codemirror": { - "version": "0.3.4", - "resolved": "https://registry.npmjs.org/conventional-changelog-codemirror/-/conventional-changelog-codemirror-0.3.4.tgz", - "integrity": "sha512-8M7pGgQVzRU//vG3rFlLYqqBywOLxu9XM0/lc1/1Ll7RuKA79PgK9TDpuPmQDHFnqGS7D1YiZpC3Z0D9AIYExg==", + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/conventional-changelog-codemirror/-/conventional-changelog-codemirror-0.2.1.tgz", + "integrity": "sha1-KZpPcUe681DmyBWPxUlUopHFzAk=", "dev": true, "requires": { - "q": "1.5.1" - }, - "dependencies": { - "q": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", - "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=", - "dev": true - } + "q": "1.5.0" } }, "conventional-changelog-core": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/conventional-changelog-core/-/conventional-changelog-core-2.0.5.tgz", - "integrity": "sha512-lP1s7Z3NyEFcG78bWy7GG7nXsq9OpAJgo2xbyAlVBDweLSL5ghvyEZlkEamnAQpIUVK0CAVhs8nPvCiQuXT/VA==", + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/conventional-changelog-core/-/conventional-changelog-core-1.9.3.tgz", + "integrity": "sha1-KJn+d5OJoynw7EsnRsNt3vuY2i0=", "dev": true, "requires": { - "conventional-changelog-writer": "3.0.4", - "conventional-commits-parser": "2.1.5", - "dateformat": "3.0.3", + "conventional-changelog-writer": "2.0.2", + "conventional-commits-parser": "2.0.1", + "dateformat": "1.0.12", "get-pkg-repo": "1.4.0", - "git-raw-commits": "1.3.4", + "git-raw-commits": "1.3.0", "git-remote-origin-url": "2.0.0", - "git-semver-tags": "1.3.4", - "lodash": "4.17.5", + "git-semver-tags": "1.2.3", + "lodash": "4.17.4", "normalize-package-data": "2.4.0", - "q": "1.5.1", + "q": "1.5.0", "read-pkg": "1.1.0", "read-pkg-up": "1.0.1", "through2": "2.0.3" - }, - "dependencies": { - "dateformat": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-3.0.3.tgz", - "integrity": "sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q==", - "dev": true - }, - "q": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", - "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=", - "dev": true - } } }, "conventional-changelog-ember": { - "version": "0.3.6", - "resolved": "https://registry.npmjs.org/conventional-changelog-ember/-/conventional-changelog-ember-0.3.6.tgz", - "integrity": "sha512-hBM1xb5IrjNtsjXaGryPF/Wn36cwyjkNeqX/CIDbJv/1kRFBHsWoSPYBiNVEpg8xE5fcK4DbPhGTDN2sVoPeiA==", + "version": "0.2.9", + "resolved": "https://registry.npmjs.org/conventional-changelog-ember/-/conventional-changelog-ember-0.2.9.tgz", + "integrity": "sha1-jsc8wFTjqwZGZ/sf61L+jvGxZDg=", "dev": true, "requires": { - "q": "1.5.1" - }, - "dependencies": { - "q": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", - "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=", - "dev": true - } + "q": "1.5.0" } }, "conventional-changelog-eslint": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/conventional-changelog-eslint/-/conventional-changelog-eslint-1.0.5.tgz", - "integrity": "sha512-7NUv+gMOS8Y49uPFRgF7kuLZqpnrKa2bQMZZsc62NzvaJmjUktnV03PYHuXhTDEHt5guvV9gyEFtUpgHCDkojg==", + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/conventional-changelog-eslint/-/conventional-changelog-eslint-0.2.1.tgz", + "integrity": "sha1-LCoRvrIW+AZJunKDQYApO2h8BmI=", "dev": true, "requires": { - "q": "1.5.1" - }, - "dependencies": { - "q": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", - "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=", - "dev": true - } + "q": "1.5.0" } }, "conventional-changelog-express": { - "version": "0.3.4", - "resolved": "https://registry.npmjs.org/conventional-changelog-express/-/conventional-changelog-express-0.3.4.tgz", - "integrity": "sha512-M+UUb715TXT6l9vyMf4HYvAepnQn0AYTcPi6KHrFsd80E0HErjQnqStBg8i3+Qm7EV9+RyATQEnIhSzHbdQ7+A==", + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/conventional-changelog-express/-/conventional-changelog-express-0.2.1.tgz", + "integrity": "sha1-g42eHmyQmXA7FQucGaoteBdCvWw=", "dev": true, "requires": { - "q": "1.5.1" - }, - "dependencies": { - "q": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", - "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=", - "dev": true - } + "q": "1.5.0" } }, "conventional-changelog-jquery": { @@ -2271,7 +1529,7 @@ "integrity": "sha1-Agg5cWLjhGmG5xJztsecW1+A9RA=", "dev": true, "requires": { - "q": "1.5.1" + "q": "1.5.0" } }, "conventional-changelog-jscs": { @@ -2280,204 +1538,35 @@ "integrity": "sha1-BHnrRDzH1yxYvwvPDvHURKkvDlw=", "dev": true, "requires": { - "q": "1.5.1" + "q": "1.5.0" } }, "conventional-changelog-jshint": { - "version": "0.3.4", - "resolved": "https://registry.npmjs.org/conventional-changelog-jshint/-/conventional-changelog-jshint-0.3.4.tgz", - "integrity": "sha512-CdrqwDgL56b176FVxHmhuOvnO1dRDQvrMaHyuIVjcFlOXukATz2wVT17g8jQU3LvybVbyXvJRbdD5pboo7/1KQ==", + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/conventional-changelog-jshint/-/conventional-changelog-jshint-0.2.1.tgz", + "integrity": "sha1-hhObs6yZiZ8rF36WF+CbN9mbzzo=", "dev": true, "requires": { "compare-func": "1.3.2", - "q": "1.5.1" - }, - "dependencies": { - "q": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", - "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=", - "dev": true - } + "q": "1.5.0" } }, - "conventional-changelog-preset-loader": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/conventional-changelog-preset-loader/-/conventional-changelog-preset-loader-1.1.6.tgz", - "integrity": "sha512-yWPIP9wwsCKeUSPYApnApWhKIDjWRIX/uHejGS1tYfEsQR/bwpDFET7LYiHT+ujNbrlf6h1s3NlPGheOd4yJRQ==", - "dev": true - }, "conventional-changelog-writer": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/conventional-changelog-writer/-/conventional-changelog-writer-3.0.4.tgz", - "integrity": "sha512-EUf/hWiEj3IOa5Jk8XDzM6oS0WgijlYGkUfLc+mDnLH9RwpZqhYIBwgJHWHzEB4My013wx2FhmUu45P6tQrucw==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/conventional-changelog-writer/-/conventional-changelog-writer-2.0.2.tgz", + "integrity": "sha1-tYV97RsAHa+aeLnNQJJvRcE0lJs=", "dev": true, "requires": { "compare-func": "1.3.2", - "conventional-commits-filter": "1.1.5", - "dateformat": "3.0.3", + "conventional-commits-filter": "1.1.0", + "dateformat": "1.0.12", "handlebars": "4.0.11", "json-stringify-safe": "5.0.1", - "lodash": "4.17.5", - "meow": "4.0.0", - "semver": "5.5.0", + "lodash": "4.17.4", + "meow": "3.7.0", + "semver": "5.3.0", "split": "1.0.1", "through2": "2.0.3" - }, - "dependencies": { - "camelcase": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", - "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", - "dev": true - }, - "camelcase-keys": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-4.2.0.tgz", - "integrity": "sha1-oqpfsa9oh1glnDLBQUJteJI7m3c=", - "dev": true, - "requires": { - "camelcase": "4.1.0", - "map-obj": "2.0.0", - "quick-lru": "1.1.0" - } - }, - "dateformat": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-3.0.3.tgz", - "integrity": "sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q==", - "dev": true - }, - "find-up": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", - "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", - "dev": true, - "requires": { - "locate-path": "2.0.0" - } - }, - "indent-string": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz", - "integrity": "sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok=", - "dev": true - }, - "load-json-file": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", - "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=", - "dev": true, - "requires": { - "graceful-fs": "4.1.11", - "parse-json": "4.0.0", - "pify": "3.0.0", - "strip-bom": "3.0.0" - } - }, - "map-obj": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-2.0.0.tgz", - "integrity": "sha1-plzSkIepJZi4eRJXpSPgISIqwfk=", - "dev": true - }, - "meow": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/meow/-/meow-4.0.0.tgz", - "integrity": "sha512-Me/kel335m6vMKmEmA6c87Z6DUFW3JqkINRnxkbC+A/PUm0D5Fl2dEBQrPKnqCL9Te/CIa1MUt/0InMJhuC/sw==", - "dev": true, - "requires": { - "camelcase-keys": "4.2.0", - "decamelize-keys": "1.1.0", - "loud-rejection": "1.6.0", - "minimist": "1.2.0", - "minimist-options": "3.0.2", - "normalize-package-data": "2.4.0", - "read-pkg-up": "3.0.0", - "redent": "2.0.0", - "trim-newlines": "2.0.0" - } - }, - "parse-json": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", - "dev": true, - "requires": { - "error-ex": "1.3.1", - "json-parse-better-errors": "1.0.1" - } - }, - "path-type": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", - "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", - "dev": true, - "requires": { - "pify": "3.0.0" - } - }, - "pify": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", - "dev": true - }, - "read-pkg": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", - "integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=", - "dev": true, - "requires": { - "load-json-file": "4.0.0", - "normalize-package-data": "2.4.0", - "path-type": "3.0.0" - } - }, - "read-pkg-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-3.0.0.tgz", - "integrity": "sha1-PtSWaF26D4/hGNBpHcUfSh/5bwc=", - "dev": true, - "requires": { - "find-up": "2.1.0", - "read-pkg": "3.0.0" - } - }, - "redent": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/redent/-/redent-2.0.0.tgz", - "integrity": "sha1-wbIAe0LVfrE4kHmzyDM2OdXhzKo=", - "dev": true, - "requires": { - "indent-string": "3.2.0", - "strip-indent": "2.0.0" - } - }, - "semver": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz", - "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==", - "dev": true - }, - "strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", - "dev": true - }, - "strip-indent": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-2.0.0.tgz", - "integrity": "sha1-XvjbKV0B5u1sv3qrlpmNeCJSe2g=", - "dev": true - }, - "trim-newlines": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-2.0.0.tgz", - "integrity": "sha1-tAPQuRvlDDMd/EuC7s6yLD3hbSA=", - "dev": true - } } }, "conventional-commit-types": { @@ -2487,9 +1576,9 @@ "dev": true }, "conventional-commits-filter": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/conventional-commits-filter/-/conventional-commits-filter-1.1.5.tgz", - "integrity": "sha512-mj3+WLj8UZE72zO9jocZjx8+W4Bwnx/KHoIz1vb4F8XUXj0XSjp8Y3MFkpRyIpsRiCBX+DkDjxGKF/nfeu7BGw==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/conventional-commits-filter/-/conventional-commits-filter-1.1.0.tgz", + "integrity": "sha1-H8Ka8wte2rdvVOIpxBGwxmPQ+es=", "dev": true, "requires": { "is-subset": "0.1.1", @@ -2497,167 +1586,24 @@ } }, "conventional-commits-parser": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-2.1.5.tgz", - "integrity": "sha512-jaAP61py+ISMF3/n3yIiIuY5h6mJlucOqawu5mLB1HaQADLvg/y5UB3pT7HSucZJan34lp7+7ylQPfbKEGmxrA==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-2.0.1.tgz", + "integrity": "sha1-HxXOa4RPfKQUlcgZDAgzwwuLFpM=", "dev": true, "requires": { "JSONStream": "1.3.1", "is-text-path": "1.0.1", - "lodash": "4.17.5", - "meow": "4.0.0", + "lodash": "4.17.4", + "meow": "3.7.0", "split2": "2.2.0", "through2": "2.0.3", "trim-off-newlines": "1.0.1" - }, - "dependencies": { - "camelcase": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", - "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", - "dev": true - }, - "camelcase-keys": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-4.2.0.tgz", - "integrity": "sha1-oqpfsa9oh1glnDLBQUJteJI7m3c=", - "dev": true, - "requires": { - "camelcase": "4.1.0", - "map-obj": "2.0.0", - "quick-lru": "1.1.0" - } - }, - "find-up": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", - "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", - "dev": true, - "requires": { - "locate-path": "2.0.0" - } - }, - "indent-string": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz", - "integrity": "sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok=", - "dev": true - }, - "load-json-file": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", - "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=", - "dev": true, - "requires": { - "graceful-fs": "4.1.11", - "parse-json": "4.0.0", - "pify": "3.0.0", - "strip-bom": "3.0.0" - } - }, - "map-obj": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-2.0.0.tgz", - "integrity": "sha1-plzSkIepJZi4eRJXpSPgISIqwfk=", - "dev": true - }, - "meow": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/meow/-/meow-4.0.0.tgz", - "integrity": "sha512-Me/kel335m6vMKmEmA6c87Z6DUFW3JqkINRnxkbC+A/PUm0D5Fl2dEBQrPKnqCL9Te/CIa1MUt/0InMJhuC/sw==", - "dev": true, - "requires": { - "camelcase-keys": "4.2.0", - "decamelize-keys": "1.1.0", - "loud-rejection": "1.6.0", - "minimist": "1.2.0", - "minimist-options": "3.0.2", - "normalize-package-data": "2.4.0", - "read-pkg-up": "3.0.0", - "redent": "2.0.0", - "trim-newlines": "2.0.0" - } - }, - "parse-json": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", - "dev": true, - "requires": { - "error-ex": "1.3.1", - "json-parse-better-errors": "1.0.1" - } - }, - "path-type": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", - "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", - "dev": true, - "requires": { - "pify": "3.0.0" - } - }, - "pify": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", - "dev": true - }, - "read-pkg": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", - "integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=", - "dev": true, - "requires": { - "load-json-file": "4.0.0", - "normalize-package-data": "2.4.0", - "path-type": "3.0.0" - } - }, - "read-pkg-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-3.0.0.tgz", - "integrity": "sha1-PtSWaF26D4/hGNBpHcUfSh/5bwc=", - "dev": true, - "requires": { - "find-up": "2.1.0", - "read-pkg": "3.0.0" - } - }, - "redent": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/redent/-/redent-2.0.0.tgz", - "integrity": "sha1-wbIAe0LVfrE4kHmzyDM2OdXhzKo=", - "dev": true, - "requires": { - "indent-string": "3.2.0", - "strip-indent": "2.0.0" - } - }, - "strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", - "dev": true - }, - "strip-indent": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-2.0.0.tgz", - "integrity": "sha1-XvjbKV0B5u1sv3qrlpmNeCJSe2g=", - "dev": true - }, - "trim-newlines": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-2.0.0.tgz", - "integrity": "sha1-tAPQuRvlDDMd/EuC7s6yLD3hbSA=", - "dev": true - } } }, "convert-source-map": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.5.1.tgz", - "integrity": "sha1-uCeAl7m8IpNl3lxiz1/K7YtVmeU=", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.5.0.tgz", + "integrity": "sha1-ms1whRxtXf3ZPZKC5e35SgP/RrU=", "dev": true }, "cookie": { @@ -2679,15 +1625,15 @@ "dev": true }, "cpr": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/cpr/-/cpr-3.0.1.tgz", - "integrity": "sha1-uaVQOLfNgaNcF7l2GJW9hJau8eU=", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/cpr/-/cpr-2.0.0.tgz", + "integrity": "sha1-wqRHyVFsN+u2R8qiYWvu+i7mcBE=", "dev": true, "requires": { "graceful-fs": "4.1.11", "minimist": "1.2.0", "mkdirp": "0.5.1", - "rimraf": "2.6.2" + "rimraf": "2.6.1" } }, "create-ecdh": { @@ -2709,7 +1655,7 @@ "cipher-base": "1.0.4", "inherits": "2.0.3", "ripemd160": "2.0.1", - "sha.js": "2.4.10" + "sha.js": "2.4.9" } }, "create-hmac": { @@ -2723,7 +1669,7 @@ "inherits": "2.0.3", "ripemd160": "2.0.1", "safe-buffer": "5.1.1", - "sha.js": "2.4.10" + "sha.js": "2.4.9" } }, "cross-spawn": { @@ -2771,8 +1717,8 @@ "inherits": "2.0.3", "pbkdf2": "3.0.14", "public-encrypt": "4.0.0", - "randombytes": "2.0.6", - "randomfill": "1.0.4" + "randombytes": "2.0.5", + "randomfill": "1.0.3" } }, "currently-unhandled": { @@ -2797,14 +1743,15 @@ "dev": true }, "cz-conventional-changelog": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/cz-conventional-changelog/-/cz-conventional-changelog-2.1.0.tgz", - "integrity": "sha1-L0vHOQ4yROTfKT5ro1Hkx0Cnx2Q=", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/cz-conventional-changelog/-/cz-conventional-changelog-2.0.0.tgz", + "integrity": "sha1-Val5r9/pXnAkh50qD1kkYwFwtTM=", "dev": true, "requires": { "conventional-commit-types": "2.2.0", "lodash.map": "4.6.0", "longest": "1.0.1", + "pad-right": "0.2.2", "right-pad": "1.0.1", "word-wrap": "1.2.3" } @@ -2827,13 +1774,6 @@ "assert-plus": "1.0.0" } }, - "data-uri-to-buffer": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-1.2.0.tgz", - "integrity": "sha512-vKQ9DTQPN1FLYiiEEOQ6IBGFqvjCa5rSK3cWMy/Nespm5d/x3dGFT9UBZnkLxCwua/IXBi2TYnwTEpsOvhC4UQ==", - "dev": true, - "optional": true - }, "date-format": { "version": "0.0.0", "resolved": "https://registry.npmjs.org/date-format/-/date-format-0.0.0.tgz", @@ -2866,39 +1806,10 @@ } }, "decamelize": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-2.0.0.tgz", - "integrity": "sha512-Ikpp5scV3MSYxY39ymh45ZLEecsTdv/Xj2CaQfI8RLMuwi7XvjX9H/fhraiSuU+C5w5NTDu4ZU72xNiZnurBPg==", - "dev": true, - "requires": { - "xregexp": "4.0.0" - }, - "dependencies": { - "xregexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/xregexp/-/xregexp-4.0.0.tgz", - "integrity": "sha512-PHyM+sQouu7xspQQwELlGwwd05mXUFqwFYfqPO0cC7x4fxyHnnuetmQr6CjJiafIDoH4MogHb9dOoJzR/Y4rFg==", - "dev": true - } - } - }, - "decamelize-keys": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.0.tgz", - "integrity": "sha1-0XGoeTMlKAfrPLYdwcFEXQeN8tk=", - "dev": true, - "requires": { - "decamelize": "1.2.0", - "map-obj": "1.0.1" - }, - "dependencies": { - "decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", - "dev": true - } - } + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", + "dev": true }, "deep-is": { "version": "0.1.3", @@ -2915,33 +1826,6 @@ "clone": "1.0.3" } }, - "defined": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/defined/-/defined-1.0.0.tgz", - "integrity": "sha1-yY2bzvdWdBiOEQlpFRGZ45sfppM=", - "dev": true - }, - "degenerator": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/degenerator/-/degenerator-1.0.4.tgz", - "integrity": "sha1-/PSQo37OJmRk2cxDGrmMWBnO0JU=", - "dev": true, - "optional": true, - "requires": { - "ast-types": "0.11.3", - "escodegen": "1.8.1", - "esprima": "3.1.3" - }, - "dependencies": { - "esprima": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-3.1.3.tgz", - "integrity": "sha1-/cpRzuYTOJXjyI1TXOSdv/YqRjM=", - "dev": true, - "optional": true - } - } - }, "delayed-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", @@ -2949,9 +1833,9 @@ "dev": true }, "depd": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", - "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.1.tgz", + "integrity": "sha1-V4O04cRZ8G+lyif5kfPQbnoxA1k=", "dev": true }, "dependency-graph": { @@ -2966,18 +1850,6 @@ "integrity": "sha1-+cmvVGSvoeepcUWKi97yqpTVuxk=", "dev": true }, - "deps-sort": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/deps-sort/-/deps-sort-2.0.0.tgz", - "integrity": "sha1-CRckkC6EZYJg65EHSMzNGvbiH7U=", - "dev": true, - "requires": { - "JSONStream": "1.3.1", - "shasum": "1.0.2", - "subarg": "1.0.0", - "through2": "2.0.3" - } - }, "des.js": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/des.js/-/des.js-1.0.0.tgz", @@ -3006,28 +1878,10 @@ "repeating": "2.0.1" } }, - "detective": { - "version": "4.7.1", - "resolved": "https://registry.npmjs.org/detective/-/detective-4.7.1.tgz", - "integrity": "sha512-H6PmeeUcZloWtdt4DAkFyzFL94arpHr3NOwwmVILFiy+9Qd4JTxxXrzfyGk/lmct2qVGBwTSwSXagqu2BxmWig==", - "dev": true, - "requires": { - "acorn": "5.5.3", - "defined": "1.0.0" - }, - "dependencies": { - "acorn": { - "version": "5.5.3", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.5.3.tgz", - "integrity": "sha512-jd5MkIUlbbmb07nXH0DT3y7rDVtkzDi4XZOUVWAer8ajmF/DTSSbl5oNFyDOl/OXA33Bl79+ypHhl2pN20VeOQ==", - "dev": true - } - } - }, "dgeni": { - "version": "0.4.9", - "resolved": "https://registry.npmjs.org/dgeni/-/dgeni-0.4.9.tgz", - "integrity": "sha1-nkJ3WxOGyl64JHU6ws0WnY9hztE=", + "version": "0.4.7", + "resolved": "https://registry.npmjs.org/dgeni/-/dgeni-0.4.7.tgz", + "integrity": "sha1-UHBifdKPiNSABuIfVa+xipy4vmg=", "dev": true, "requires": { "canonical-path": "0.0.2", @@ -3038,7 +1892,7 @@ "optimist": "0.6.1", "q": "1.4.1", "validate.js": "0.9.0", - "winston": "2.4.1" + "winston": "2.4.0" }, "dependencies": { "lodash": { @@ -3064,19 +1918,19 @@ "canonical-path": "0.0.2", "catharsis": "0.8.9", "change-case": "3.0.0", - "dgeni": "0.4.9", + "dgeni": "0.4.7", "espree": "2.2.5", "estraverse": "4.2.0", "glob": "7.1.2", "htmlparser2": "3.9.2", - "lodash": "4.17.5", + "lodash": "4.17.4", "marked": "0.3.6", "minimatch": "3.0.4", "mkdirp": "0.5.1", "mkdirp-promise": "5.0.1", "node-html-encoder": "0.0.2", "nunjucks": "2.5.2", - "semver": "5.5.0", + "semver": "5.3.0", "shelljs": "0.7.8", "spdx-license-list": "2.1.0", "stringmap": "0.2.2", @@ -3098,9 +1952,9 @@ "dev": true }, "diff": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", - "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-3.4.0.tgz", + "integrity": "sha512-QpVuMTEoJMF7cKzi6bvWhRulU1fZqZnvyVQgNhPaxxuTYwyjn/j1v9falseQ/uXWwPnO56RBfwtg4h/EQXmucA==", "dev": true }, "diffie-hellman": { @@ -3111,7 +1965,7 @@ "requires": { "bn.js": "4.11.8", "miller-rabin": "4.0.1", - "randombytes": "2.0.6" + "randombytes": "2.0.5" } }, "doctrine": { @@ -3169,9 +2023,9 @@ } }, "domain-browser": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.2.0.tgz", - "integrity": "sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA==", + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.1.7.tgz", + "integrity": "sha1-hnqksJP6oF8d4IwG9NeyH9+GmLw=", "dev": true }, "domelementtype": { @@ -3217,13 +2071,6 @@ "is-obj": "1.0.1" } }, - "double-ended-queue": { - "version": "2.1.0-0", - "resolved": "https://registry.npmjs.org/double-ended-queue/-/double-ended-queue-2.1.0-0.tgz", - "integrity": "sha1-ED01J/0xUo9AGIEwyEHv3XgmTlw=", - "dev": true, - "optional": true - }, "duplexer2": { "version": "0.0.2", "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.0.2.tgz", @@ -3275,12 +2122,6 @@ "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=", "dev": true }, - "electron-to-chromium": { - "version": "1.3.39", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.39.tgz", - "integrity": "sha1-16RpZAnKCZXidQFW2mEsIhr62E0=", - "dev": true - }, "elliptic": { "version": "6.4.0", "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz", @@ -3297,9 +2138,9 @@ } }, "encodeurl": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", - "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.1.tgz", + "integrity": "sha1-eePVhlU0aQn+bw9Fpd5oEDspTSA=", "dev": true }, "end-of-stream": { @@ -3323,72 +2164,91 @@ } }, "engine.io": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/engine.io/-/engine.io-3.1.5.tgz", - "integrity": "sha512-D06ivJkYxyRrcEe0bTpNnBQNgP9d3xog+qZlLbui8EsMr/DouQpf5o9FzJnWYHEYE0YsFHllUv2R1dkgYZXHcA==", + "version": "1.8.3", + "resolved": "https://registry.npmjs.org/engine.io/-/engine.io-1.8.3.tgz", + "integrity": "sha1-jef5eJXSDTm4X4ju7nd7K9QrE9Q=", "dev": true, "requires": { - "accepts": "1.3.5", + "accepts": "1.3.3", "base64id": "1.0.0", "cookie": "0.3.1", - "debug": "3.1.0", - "engine.io-parser": "2.1.2", - "uws": "9.14.0", - "ws": "3.3.3" + "debug": "2.3.3", + "engine.io-parser": "1.3.2", + "ws": "1.1.2" }, "dependencies": { "debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.3.3.tgz", + "integrity": "sha1-QMRT5n5uE8kB3ewxeviYbNqe/4w=", "dev": true, "requires": { - "ms": "2.0.0" + "ms": "0.7.2" } + }, + "ms": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.2.tgz", + "integrity": "sha1-riXPJRKziFodldfwN4aNhDESR2U=", + "dev": true } } }, "engine.io-client": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-3.1.6.tgz", - "integrity": "sha512-hnuHsFluXnsKOndS4Hv6SvUrgdYx1pk2NqfaDMW+GWdgfU3+/V25Cj7I8a0x92idSpa5PIhJRKxPvp9mnoLsfg==", + "version": "1.8.3", + "resolved": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-1.8.3.tgz", + "integrity": "sha1-F5jtk0USRkU9TG9jXXogH+lA1as=", "dev": true, "requires": { "component-emitter": "1.2.1", "component-inherit": "0.0.3", - "debug": "3.1.0", - "engine.io-parser": "2.1.2", + "debug": "2.3.3", + "engine.io-parser": "1.3.2", "has-cors": "1.1.0", "indexof": "0.0.1", + "parsejson": "0.0.3", "parseqs": "0.0.5", "parseuri": "0.0.5", - "ws": "3.3.3", - "xmlhttprequest-ssl": "1.5.5", + "ws": "1.1.2", + "xmlhttprequest-ssl": "1.5.3", "yeast": "0.1.2" }, "dependencies": { + "component-emitter": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz", + "integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY=", + "dev": true + }, "debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.3.3.tgz", + "integrity": "sha1-QMRT5n5uE8kB3ewxeviYbNqe/4w=", "dev": true, "requires": { - "ms": "2.0.0" + "ms": "0.7.2" } + }, + "ms": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.2.tgz", + "integrity": "sha1-riXPJRKziFodldfwN4aNhDESR2U=", + "dev": true } } }, "engine.io-parser": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-2.1.2.tgz", - "integrity": "sha512-dInLFzr80RijZ1rGpx1+56/uFoH7/7InhH3kZt+Ms6hT8tNx3NGW/WNSA/f8As1WkOfkuyb3tnRyuXGxusclMw==", + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-1.3.2.tgz", + "integrity": "sha1-k3sHnwAH0Ik+xW1GyyILjLQ1Igo=", "dev": true, "requires": { "after": "0.8.2", - "arraybuffer.slice": "0.0.7", + "arraybuffer.slice": "0.0.6", "base64-arraybuffer": "0.1.5", "blob": "0.0.4", - "has-binary2": "1.0.2" + "has-binary": "0.1.7", + "wtf-8": "1.0.0" } }, "ent": { @@ -3590,23 +2450,6 @@ "integrity": "sha1-p1Xqe8Gt/MWjHOfnYtuq3F5jZEQ=", "dev": true }, - "extend-shallow": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-1.1.4.tgz", - "integrity": "sha1-Gda/lN/AnXa6cR85uHLSH/TdkHE=", - "dev": true, - "requires": { - "kind-of": "1.1.0" - }, - "dependencies": { - "kind-of": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-1.1.0.tgz", - "integrity": "sha1-FAo9LUGjbS78+pN3tiwk+ElaXEQ=", - "dev": true - } - } - }, "extglob": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/extglob/-/extglob-0.3.2.tgz", @@ -3694,13 +2537,6 @@ "pend": "1.2.0" } }, - "file-uri-to-path": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", - "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==", - "dev": true, - "optional": true - }, "filename-regex": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/filename-regex/-/filename-regex-2.0.1.tgz", @@ -3721,13 +2557,13 @@ } }, "finalhandler": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.0.tgz", - "integrity": "sha1-zgtoVbRYU+eRsvzGgARtiCU91/U=", + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.0.6.tgz", + "integrity": "sha1-AHrqM9Gk0+QgF/YkhIrVjSEvgU8=", "dev": true, "requires": { "debug": "2.6.9", - "encodeurl": "1.0.2", + "encodeurl": "1.0.1", "escape-html": "1.0.3", "on-finished": "2.3.0", "parseurl": "1.3.2", @@ -3807,16 +2643,6 @@ "integrity": "sha1-/xke3c1wiKZ1smEP/8l2vpuAdLU=", "dev": true }, - "follow-redirects": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.0.0.tgz", - "integrity": "sha1-jjQpjL0uF28lTv/sdaHHjMhJ/Tc=", - "dev": true, - "optional": true, - "requires": { - "debug": "2.6.9" - } - }, "for-in": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", @@ -3856,23 +2682,36 @@ "dev": true }, "fs-extra": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-5.0.0.tgz", - "integrity": "sha512-66Pm4RYbjzdyeuqudYqhFiNBbCIuI9kgRqLPSHIlXHidW8NIQtVdkM1yeZ4lXwuhbTETv3EUGMNHAAw6hiundQ==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-2.0.0.tgz", + "integrity": "sha1-M3NSve1KC3FPPrhN6M6nZenTdgA=", "dev": true, "requires": { "graceful-fs": "4.1.11", - "jsonfile": "4.0.0", - "universalify": "0.1.1" + "jsonfile": "2.4.0" + } + }, + "fs-extra-promise": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/fs-extra-promise/-/fs-extra-promise-0.4.1.tgz", + "integrity": "sha1-rCjNLPa6ckjYI13ziHts9u3fNC8=", + "dev": true, + "requires": { + "bluebird": "3.5.1", + "fs-extra": "0.30.0" }, "dependencies": { - "jsonfile": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", - "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", + "fs-extra": { + "version": "0.30.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-0.30.0.tgz", + "integrity": "sha1-8jP/zAjU2n1DLapEl3aYnbHfk/A=", "dev": true, "requires": { - "graceful-fs": "4.1.11" + "graceful-fs": "4.1.11", + "jsonfile": "2.4.0", + "klaw": "1.3.1", + "path-is-absolute": "1.0.1", + "rimraf": "2.6.1" } } } @@ -3883,956 +2722,6 @@ "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", "dev": true }, - "fsevents": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.1.3.tgz", - "integrity": "sha512-WIr7iDkdmdbxu/Gh6eKEZJL6KPE74/5MEsf2whTOFNxbIoIixogroLdKYqB6FDav4Wavh/lZdzzd3b2KxIXC5Q==", - "dev": true, - "optional": true, - "requires": { - "nan": "2.10.0", - "node-pre-gyp": "0.6.39" - }, - "dependencies": { - "abbrev": { - "version": "1.1.0", - "bundled": true, - "dev": true, - "optional": true - }, - "ajv": { - "version": "4.11.8", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "co": "4.6.0", - "json-stable-stringify": "1.0.1" - } - }, - "ansi-regex": { - "version": "2.1.1", - "bundled": true, - "dev": true - }, - "aproba": { - "version": "1.1.1", - "bundled": true, - "dev": true, - "optional": true - }, - "are-we-there-yet": { - "version": "1.1.4", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "delegates": "1.0.0", - "readable-stream": "2.2.9" - } - }, - "asn1": { - "version": "0.2.3", - "bundled": true, - "dev": true, - "optional": true - }, - "assert-plus": { - "version": "0.2.0", - "bundled": true, - "dev": true, - "optional": true - }, - "asynckit": { - "version": "0.4.0", - "bundled": true, - "dev": true, - "optional": true - }, - "aws-sign2": { - "version": "0.6.0", - "bundled": true, - "dev": true, - "optional": true - }, - "aws4": { - "version": "1.6.0", - "bundled": true, - "dev": true, - "optional": true - }, - "balanced-match": { - "version": "0.4.2", - "bundled": true, - "dev": true - }, - "bcrypt-pbkdf": { - "version": "1.0.1", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "tweetnacl": "0.14.5" - } - }, - "block-stream": { - "version": "0.0.9", - "bundled": true, - "dev": true, - "requires": { - "inherits": "2.0.3" - } - }, - "boom": { - "version": "2.10.1", - "bundled": true, - "dev": true, - "requires": { - "hoek": "2.16.3" - } - }, - "brace-expansion": { - "version": "1.1.7", - "bundled": true, - "dev": true, - "requires": { - "balanced-match": "0.4.2", - "concat-map": "0.0.1" - } - }, - "buffer-shims": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "caseless": { - "version": "0.12.0", - "bundled": true, - "dev": true, - "optional": true - }, - "co": { - "version": "4.6.0", - "bundled": true, - "dev": true, - "optional": true - }, - "code-point-at": { - "version": "1.1.0", - "bundled": true, - "dev": true - }, - "combined-stream": { - "version": "1.0.5", - "bundled": true, - "dev": true, - "requires": { - "delayed-stream": "1.0.0" - } - }, - "concat-map": { - "version": "0.0.1", - "bundled": true, - "dev": true - }, - "console-control-strings": { - "version": "1.1.0", - "bundled": true, - "dev": true - }, - "core-util-is": { - "version": "1.0.2", - "bundled": true, - "dev": true - }, - "cryptiles": { - "version": "2.0.5", - "bundled": true, - "dev": true, - "requires": { - "boom": "2.10.1" - } - }, - "dashdash": { - "version": "1.14.1", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "assert-plus": "1.0.0" - }, - "dependencies": { - "assert-plus": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "optional": true - } - } - }, - "debug": { - "version": "2.6.8", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "ms": "2.0.0" - } - }, - "deep-extend": { - "version": "0.4.2", - "bundled": true, - "dev": true, - "optional": true - }, - "delayed-stream": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "delegates": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "optional": true - }, - "detect-libc": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "optional": true - }, - "ecc-jsbn": { - "version": "0.1.1", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "jsbn": "0.1.1" - } - }, - "extend": { - "version": "3.0.1", - "bundled": true, - "dev": true, - "optional": true - }, - "extsprintf": { - "version": "1.0.2", - "bundled": true, - "dev": true - }, - "forever-agent": { - "version": "0.6.1", - "bundled": true, - "dev": true, - "optional": true - }, - "form-data": { - "version": "2.1.4", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "asynckit": "0.4.0", - "combined-stream": "1.0.5", - "mime-types": "2.1.15" - } - }, - "fs.realpath": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "fstream": { - "version": "1.0.11", - "bundled": true, - "dev": true, - "requires": { - "graceful-fs": "4.1.11", - "inherits": "2.0.3", - "mkdirp": "0.5.1", - "rimraf": "2.6.1" - } - }, - "fstream-ignore": { - "version": "1.0.5", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "fstream": "1.0.11", - "inherits": "2.0.3", - "minimatch": "3.0.4" - } - }, - "gauge": { - "version": "2.7.4", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "aproba": "1.1.1", - "console-control-strings": "1.1.0", - "has-unicode": "2.0.1", - "object-assign": "4.1.1", - "signal-exit": "3.0.2", - "string-width": "1.0.2", - "strip-ansi": "3.0.1", - "wide-align": "1.1.2" - } - }, - "getpass": { - "version": "0.1.7", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "assert-plus": "1.0.0" - }, - "dependencies": { - "assert-plus": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "optional": true - } - } - }, - "glob": { - "version": "7.1.2", - "bundled": true, - "dev": true, - "requires": { - "fs.realpath": "1.0.0", - "inflight": "1.0.6", - "inherits": "2.0.3", - "minimatch": "3.0.4", - "once": "1.4.0", - "path-is-absolute": "1.0.1" - } - }, - "graceful-fs": { - "version": "4.1.11", - "bundled": true, - "dev": true - }, - "har-schema": { - "version": "1.0.5", - "bundled": true, - "dev": true, - "optional": true - }, - "har-validator": { - "version": "4.2.1", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "ajv": "4.11.8", - "har-schema": "1.0.5" - } - }, - "has-unicode": { - "version": "2.0.1", - "bundled": true, - "dev": true, - "optional": true - }, - "hawk": { - "version": "3.1.3", - "bundled": true, - "dev": true, - "requires": { - "boom": "2.10.1", - "cryptiles": "2.0.5", - "hoek": "2.16.3", - "sntp": "1.0.9" - } - }, - "hoek": { - "version": "2.16.3", - "bundled": true, - "dev": true - }, - "http-signature": { - "version": "1.1.1", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "assert-plus": "0.2.0", - "jsprim": "1.4.0", - "sshpk": "1.13.0" - } - }, - "inflight": { - "version": "1.0.6", - "bundled": true, - "dev": true, - "requires": { - "once": "1.4.0", - "wrappy": "1.0.2" - } - }, - "inherits": { - "version": "2.0.3", - "bundled": true, - "dev": true - }, - "ini": { - "version": "1.3.4", - "bundled": true, - "dev": true, - "optional": true - }, - "is-fullwidth-code-point": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "number-is-nan": "1.0.1" - } - }, - "is-typedarray": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "optional": true - }, - "isarray": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "isstream": { - "version": "0.1.2", - "bundled": true, - "dev": true, - "optional": true - }, - "jodid25519": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "jsbn": "0.1.1" - } - }, - "jsbn": { - "version": "0.1.1", - "bundled": true, - "dev": true, - "optional": true - }, - "json-schema": { - "version": "0.2.3", - "bundled": true, - "dev": true, - "optional": true - }, - "json-stable-stringify": { - "version": "1.0.1", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "jsonify": "0.0.0" - } - }, - "json-stringify-safe": { - "version": "5.0.1", - "bundled": true, - "dev": true, - "optional": true - }, - "jsonify": { - "version": "0.0.0", - "bundled": true, - "dev": true, - "optional": true - }, - "jsprim": { - "version": "1.4.0", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "assert-plus": "1.0.0", - "extsprintf": "1.0.2", - "json-schema": "0.2.3", - "verror": "1.3.6" - }, - "dependencies": { - "assert-plus": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "optional": true - } - } - }, - "mime-db": { - "version": "1.27.0", - "bundled": true, - "dev": true - }, - "mime-types": { - "version": "2.1.15", - "bundled": true, - "dev": true, - "requires": { - "mime-db": "1.27.0" - } - }, - "minimatch": { - "version": "3.0.4", - "bundled": true, - "dev": true, - "requires": { - "brace-expansion": "1.1.7" - } - }, - "minimist": { - "version": "0.0.8", - "bundled": true, - "dev": true - }, - "mkdirp": { - "version": "0.5.1", - "bundled": true, - "dev": true, - "requires": { - "minimist": "0.0.8" - } - }, - "ms": { - "version": "2.0.0", - "bundled": true, - "dev": true, - "optional": true - }, - "node-pre-gyp": { - "version": "0.6.39", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "detect-libc": "1.0.2", - "hawk": "3.1.3", - "mkdirp": "0.5.1", - "nopt": "4.0.1", - "npmlog": "4.1.0", - "rc": "1.2.1", - "request": "2.81.0", - "rimraf": "2.6.1", - "semver": "5.3.0", - "tar": "2.2.1", - "tar-pack": "3.4.0" - } - }, - "nopt": { - "version": "4.0.1", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "abbrev": "1.1.0", - "osenv": "0.1.4" - } - }, - "npmlog": { - "version": "4.1.0", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "are-we-there-yet": "1.1.4", - "console-control-strings": "1.1.0", - "gauge": "2.7.4", - "set-blocking": "2.0.0" - } - }, - "number-is-nan": { - "version": "1.0.1", - "bundled": true, - "dev": true - }, - "oauth-sign": { - "version": "0.8.2", - "bundled": true, - "dev": true, - "optional": true - }, - "object-assign": { - "version": "4.1.1", - "bundled": true, - "dev": true, - "optional": true - }, - "once": { - "version": "1.4.0", - "bundled": true, - "dev": true, - "requires": { - "wrappy": "1.0.2" - } - }, - "os-homedir": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "optional": true - }, - "os-tmpdir": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "optional": true - }, - "osenv": { - "version": "0.1.4", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "os-homedir": "1.0.2", - "os-tmpdir": "1.0.2" - } - }, - "path-is-absolute": { - "version": "1.0.1", - "bundled": true, - "dev": true - }, - "performance-now": { - "version": "0.2.0", - "bundled": true, - "dev": true, - "optional": true - }, - "process-nextick-args": { - "version": "1.0.7", - "bundled": true, - "dev": true - }, - "punycode": { - "version": "1.4.1", - "bundled": true, - "dev": true, - "optional": true - }, - "qs": { - "version": "6.4.0", - "bundled": true, - "dev": true, - "optional": true - }, - "rc": { - "version": "1.2.1", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "deep-extend": "0.4.2", - "ini": "1.3.4", - "minimist": "1.2.0", - "strip-json-comments": "2.0.1" - }, - "dependencies": { - "minimist": { - "version": "1.2.0", - "bundled": true, - "dev": true, - "optional": true - } - } - }, - "readable-stream": { - "version": "2.2.9", - "bundled": true, - "dev": true, - "requires": { - "buffer-shims": "1.0.0", - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "1.0.7", - "string_decoder": "1.0.1", - "util-deprecate": "1.0.2" - } - }, - "request": { - "version": "2.81.0", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "aws-sign2": "0.6.0", - "aws4": "1.6.0", - "caseless": "0.12.0", - "combined-stream": "1.0.5", - "extend": "3.0.1", - "forever-agent": "0.6.1", - "form-data": "2.1.4", - "har-validator": "4.2.1", - "hawk": "3.1.3", - "http-signature": "1.1.1", - "is-typedarray": "1.0.0", - "isstream": "0.1.2", - "json-stringify-safe": "5.0.1", - "mime-types": "2.1.15", - "oauth-sign": "0.8.2", - "performance-now": "0.2.0", - "qs": "6.4.0", - "safe-buffer": "5.0.1", - "stringstream": "0.0.5", - "tough-cookie": "2.3.2", - "tunnel-agent": "0.6.0", - "uuid": "3.0.1" - } - }, - "rimraf": { - "version": "2.6.1", - "bundled": true, - "dev": true, - "requires": { - "glob": "7.1.2" - } - }, - "safe-buffer": { - "version": "5.0.1", - "bundled": true, - "dev": true - }, - "semver": { - "version": "5.3.0", - "bundled": true, - "dev": true, - "optional": true - }, - "set-blocking": { - "version": "2.0.0", - "bundled": true, - "dev": true, - "optional": true - }, - "signal-exit": { - "version": "3.0.2", - "bundled": true, - "dev": true, - "optional": true - }, - "sntp": { - "version": "1.0.9", - "bundled": true, - "dev": true, - "requires": { - "hoek": "2.16.3" - } - }, - "sshpk": { - "version": "1.13.0", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "asn1": "0.2.3", - "assert-plus": "1.0.0", - "bcrypt-pbkdf": "1.0.1", - "dashdash": "1.14.1", - "ecc-jsbn": "0.1.1", - "getpass": "0.1.7", - "jodid25519": "1.0.2", - "jsbn": "0.1.1", - "tweetnacl": "0.14.5" - }, - "dependencies": { - "assert-plus": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "optional": true - } - } - }, - "string-width": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "requires": { - "code-point-at": "1.1.0", - "is-fullwidth-code-point": "1.0.0", - "strip-ansi": "3.0.1" - } - }, - "string_decoder": { - "version": "1.0.1", - "bundled": true, - "dev": true, - "requires": { - "safe-buffer": "5.0.1" - } - }, - "stringstream": { - "version": "0.0.5", - "bundled": true, - "dev": true, - "optional": true - }, - "strip-ansi": { - "version": "3.0.1", - "bundled": true, - "dev": true, - "requires": { - "ansi-regex": "2.1.1" - } - }, - "strip-json-comments": { - "version": "2.0.1", - "bundled": true, - "dev": true, - "optional": true - }, - "tar": { - "version": "2.2.1", - "bundled": true, - "dev": true, - "requires": { - "block-stream": "0.0.9", - "fstream": "1.0.11", - "inherits": "2.0.3" - } - }, - "tar-pack": { - "version": "3.4.0", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "debug": "2.6.8", - "fstream": "1.0.11", - "fstream-ignore": "1.0.5", - "once": "1.4.0", - "readable-stream": "2.2.9", - "rimraf": "2.6.1", - "tar": "2.2.1", - "uid-number": "0.0.6" - } - }, - "tough-cookie": { - "version": "2.3.2", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "punycode": "1.4.1" - } - }, - "tunnel-agent": { - "version": "0.6.0", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "safe-buffer": "5.0.1" - } - }, - "tweetnacl": { - "version": "0.14.5", - "bundled": true, - "dev": true, - "optional": true - }, - "uid-number": { - "version": "0.0.6", - "bundled": true, - "dev": true, - "optional": true - }, - "util-deprecate": { - "version": "1.0.2", - "bundled": true, - "dev": true - }, - "uuid": { - "version": "3.0.1", - "bundled": true, - "dev": true, - "optional": true - }, - "verror": { - "version": "1.3.6", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "extsprintf": "1.0.2" - } - }, - "wide-align": { - "version": "1.1.2", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "string-width": "1.0.2" - } - }, - "wrappy": { - "version": "1.0.2", - "bundled": true, - "dev": true - } - } - }, - "ftp": { - "version": "0.3.10", - "resolved": "https://registry.npmjs.org/ftp/-/ftp-0.3.10.tgz", - "integrity": "sha1-kZfYYa2BQvPmPVqDv+TFn3MwiF0=", - "dev": true, - "optional": true, - "requires": { - "readable-stream": "1.1.14", - "xregexp": "2.0.0" - }, - "dependencies": { - "isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", - "dev": true, - "optional": true - }, - "readable-stream": { - "version": "1.1.14", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", - "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", - "dev": true, - "optional": true, - "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "0.0.1", - "string_decoder": "0.10.31" - } - }, - "string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", - "dev": true, - "optional": true - } - } - }, - "function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", - "dev": true - }, "gaze": { "version": "0.5.2", "resolved": "https://registry.npmjs.org/gaze/-/gaze-0.5.2.tgz", @@ -4842,23 +2731,6 @@ "globule": "0.1.0" } }, - "generate-function": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/generate-function/-/generate-function-2.0.0.tgz", - "integrity": "sha1-aFj+fAlpt9TpCTM3ZHrHn2DfvnQ=", - "dev": true, - "optional": true - }, - "generate-object-property": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/generate-object-property/-/generate-object-property-1.2.0.tgz", - "integrity": "sha1-nA4cQDCM6AT0eDYYuTf6iPmdUNA=", - "dev": true, - "optional": true, - "requires": { - "is-property": "1.0.2" - } - }, "get-pkg-repo": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/get-pkg-repo/-/get-pkg-repo-1.4.0.tgz", @@ -4878,21 +2750,6 @@ "integrity": "sha1-uWjGsKBDhDJJAui/Gl3zJXmkUP4=", "dev": true }, - "get-uri": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/get-uri/-/get-uri-2.0.1.tgz", - "integrity": "sha512-7aelVrYqCLuVjq2kEKRTH8fXPTC0xKTkM+G7UlFkEwCXY3sFbSxvY375JoFowOAYbkaU47SrBvOefUlLZZ+6QA==", - "dev": true, - "optional": true, - "requires": { - "data-uri-to-buffer": "1.2.0", - "debug": "2.6.9", - "extend": "3.0.1", - "file-uri-to-path": "1.0.0", - "ftp": "0.3.10", - "readable-stream": "2.3.3" - } - }, "getpass": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", @@ -4903,159 +2760,16 @@ } }, "git-raw-commits": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/git-raw-commits/-/git-raw-commits-1.3.4.tgz", - "integrity": "sha512-G3O+41xHbscpgL5nA0DUkbFVgaAz5rd57AMSIMew8p7C8SyFwZDyn08MoXHkTl9zcD0LmxsLFPxbqFY4YPbpPA==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/git-raw-commits/-/git-raw-commits-1.3.0.tgz", + "integrity": "sha1-C8hZbpDV/+c29/VUa9LRL3OrqsY=", "dev": true, "requires": { "dargs": "4.1.0", "lodash.template": "4.4.0", - "meow": "4.0.0", + "meow": "3.7.0", "split2": "2.2.0", "through2": "2.0.3" - }, - "dependencies": { - "camelcase": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", - "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", - "dev": true - }, - "camelcase-keys": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-4.2.0.tgz", - "integrity": "sha1-oqpfsa9oh1glnDLBQUJteJI7m3c=", - "dev": true, - "requires": { - "camelcase": "4.1.0", - "map-obj": "2.0.0", - "quick-lru": "1.1.0" - } - }, - "find-up": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", - "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", - "dev": true, - "requires": { - "locate-path": "2.0.0" - } - }, - "indent-string": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz", - "integrity": "sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok=", - "dev": true - }, - "load-json-file": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", - "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=", - "dev": true, - "requires": { - "graceful-fs": "4.1.11", - "parse-json": "4.0.0", - "pify": "3.0.0", - "strip-bom": "3.0.0" - } - }, - "map-obj": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-2.0.0.tgz", - "integrity": "sha1-plzSkIepJZi4eRJXpSPgISIqwfk=", - "dev": true - }, - "meow": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/meow/-/meow-4.0.0.tgz", - "integrity": "sha512-Me/kel335m6vMKmEmA6c87Z6DUFW3JqkINRnxkbC+A/PUm0D5Fl2dEBQrPKnqCL9Te/CIa1MUt/0InMJhuC/sw==", - "dev": true, - "requires": { - "camelcase-keys": "4.2.0", - "decamelize-keys": "1.1.0", - "loud-rejection": "1.6.0", - "minimist": "1.2.0", - "minimist-options": "3.0.2", - "normalize-package-data": "2.4.0", - "read-pkg-up": "3.0.0", - "redent": "2.0.0", - "trim-newlines": "2.0.0" - } - }, - "parse-json": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", - "dev": true, - "requires": { - "error-ex": "1.3.1", - "json-parse-better-errors": "1.0.1" - } - }, - "path-type": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", - "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", - "dev": true, - "requires": { - "pify": "3.0.0" - } - }, - "pify": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", - "dev": true - }, - "read-pkg": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", - "integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=", - "dev": true, - "requires": { - "load-json-file": "4.0.0", - "normalize-package-data": "2.4.0", - "path-type": "3.0.0" - } - }, - "read-pkg-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-3.0.0.tgz", - "integrity": "sha1-PtSWaF26D4/hGNBpHcUfSh/5bwc=", - "dev": true, - "requires": { - "find-up": "2.1.0", - "read-pkg": "3.0.0" - } - }, - "redent": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/redent/-/redent-2.0.0.tgz", - "integrity": "sha1-wbIAe0LVfrE4kHmzyDM2OdXhzKo=", - "dev": true, - "requires": { - "indent-string": "3.2.0", - "strip-indent": "2.0.0" - } - }, - "strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", - "dev": true - }, - "strip-indent": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-2.0.0.tgz", - "integrity": "sha1-XvjbKV0B5u1sv3qrlpmNeCJSe2g=", - "dev": true - }, - "trim-newlines": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-2.0.0.tgz", - "integrity": "sha1-tAPQuRvlDDMd/EuC7s6yLD3hbSA=", - "dev": true - } } }, "git-remote-origin-url": { @@ -5069,162 +2783,13 @@ } }, "git-semver-tags": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/git-semver-tags/-/git-semver-tags-1.3.4.tgz", - "integrity": "sha512-Xe2Z74MwXZfAezuaO6e6cA4nsgeCiARPzaBp23gma325c/OXdt//PhrknptIaynNeUp2yWtmikV7k5RIicgGIQ==", + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/git-semver-tags/-/git-semver-tags-1.2.3.tgz", + "integrity": "sha1-GItFOIK/nXojr9Mbq6U32rc4jV0=", "dev": true, "requires": { - "meow": "4.0.0", - "semver": "5.5.0" - }, - "dependencies": { - "camelcase": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", - "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", - "dev": true - }, - "camelcase-keys": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-4.2.0.tgz", - "integrity": "sha1-oqpfsa9oh1glnDLBQUJteJI7m3c=", - "dev": true, - "requires": { - "camelcase": "4.1.0", - "map-obj": "2.0.0", - "quick-lru": "1.1.0" - } - }, - "find-up": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", - "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", - "dev": true, - "requires": { - "locate-path": "2.0.0" - } - }, - "indent-string": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz", - "integrity": "sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok=", - "dev": true - }, - "load-json-file": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", - "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=", - "dev": true, - "requires": { - "graceful-fs": "4.1.11", - "parse-json": "4.0.0", - "pify": "3.0.0", - "strip-bom": "3.0.0" - } - }, - "map-obj": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-2.0.0.tgz", - "integrity": "sha1-plzSkIepJZi4eRJXpSPgISIqwfk=", - "dev": true - }, - "meow": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/meow/-/meow-4.0.0.tgz", - "integrity": "sha512-Me/kel335m6vMKmEmA6c87Z6DUFW3JqkINRnxkbC+A/PUm0D5Fl2dEBQrPKnqCL9Te/CIa1MUt/0InMJhuC/sw==", - "dev": true, - "requires": { - "camelcase-keys": "4.2.0", - "decamelize-keys": "1.1.0", - "loud-rejection": "1.6.0", - "minimist": "1.2.0", - "minimist-options": "3.0.2", - "normalize-package-data": "2.4.0", - "read-pkg-up": "3.0.0", - "redent": "2.0.0", - "trim-newlines": "2.0.0" - } - }, - "parse-json": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", - "dev": true, - "requires": { - "error-ex": "1.3.1", - "json-parse-better-errors": "1.0.1" - } - }, - "path-type": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", - "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", - "dev": true, - "requires": { - "pify": "3.0.0" - } - }, - "pify": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", - "dev": true - }, - "read-pkg": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", - "integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=", - "dev": true, - "requires": { - "load-json-file": "4.0.0", - "normalize-package-data": "2.4.0", - "path-type": "3.0.0" - } - }, - "read-pkg-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-3.0.0.tgz", - "integrity": "sha1-PtSWaF26D4/hGNBpHcUfSh/5bwc=", - "dev": true, - "requires": { - "find-up": "2.1.0", - "read-pkg": "3.0.0" - } - }, - "redent": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/redent/-/redent-2.0.0.tgz", - "integrity": "sha1-wbIAe0LVfrE4kHmzyDM2OdXhzKo=", - "dev": true, - "requires": { - "indent-string": "3.2.0", - "strip-indent": "2.0.0" - } - }, - "semver": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz", - "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==", - "dev": true - }, - "strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", - "dev": true - }, - "strip-indent": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-2.0.0.tgz", - "integrity": "sha1-XvjbKV0B5u1sv3qrlpmNeCJSe2g=", - "dev": true - }, - "trim-newlines": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-2.0.0.tgz", - "integrity": "sha1-tAPQuRvlDDMd/EuC7s6yLD3hbSA=", - "dev": true - } + "meow": "3.7.0", + "semver": "5.3.0" } }, "gitconfiglocal": { @@ -5495,9 +3060,9 @@ "dev": true }, "gulp-replace": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/gulp-replace/-/gulp-replace-0.6.1.tgz", - "integrity": "sha1-Eb+Mj85TPjPi9qjy9DC5VboL4GY=", + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/gulp-replace/-/gulp-replace-0.5.4.tgz", + "integrity": "sha1-aaZ5FLvRPFYr/xT1BKQDeWqg2qk=", "dev": true, "requires": { "istextorbinary": "1.0.2", @@ -5506,108 +3071,14 @@ } }, "gulp-tslint": { - "version": "8.1.3", - "resolved": "https://registry.npmjs.org/gulp-tslint/-/gulp-tslint-8.1.3.tgz", - "integrity": "sha512-KEP350N5B9Jg6o6jnyCyKVBPemJePYpMsGfIQq0G0ErvY7tw4Lrfb/y3L4WRf7ek0OsaE8nnj86w+lcLXW8ovw==", + "version": "6.1.2", + "resolved": "https://registry.npmjs.org/gulp-tslint/-/gulp-tslint-6.1.2.tgz", + "integrity": "sha1-ni3oLvJaqkN4/Yn+W0Q7Pq9wL+0=", "dev": true, "requires": { - "@types/fancy-log": "1.3.0", - "chalk": "2.3.1", - "fancy-log": "1.3.2", - "map-stream": "0.0.7", - "plugin-error": "1.0.1", + "gulp-util": "3.0.8", + "map-stream": "0.1.0", "through": "2.3.8" - }, - "dependencies": { - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "1.9.1" - } - }, - "arr-diff": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", - "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", - "dev": true - }, - "arr-union": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", - "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=", - "dev": true - }, - "chalk": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.3.1.tgz", - "integrity": "sha512-QUU4ofkDoMIVO7hcx1iPTISs88wsO8jA92RQIm4JAwZvFGGAV2hSAA1NX7oVj2Ej2Q6NDTcRDjPTFrMCRZoJ6g==", - "dev": true, - "requires": { - "ansi-styles": "3.2.1", - "escape-string-regexp": "1.0.5", - "supports-color": "5.3.0" - } - }, - "extend-shallow": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", - "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", - "dev": true, - "requires": { - "assign-symbols": "1.0.0", - "is-extendable": "1.0.1" - } - }, - "fancy-log": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/fancy-log/-/fancy-log-1.3.2.tgz", - "integrity": "sha1-9BEl49hPLn2JpD0G2VjI94vha+E=", - "dev": true, - "requires": { - "ansi-gray": "0.1.1", - "color-support": "1.1.3", - "time-stamp": "1.1.0" - } - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true - }, - "is-extendable": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", - "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", - "dev": true, - "requires": { - "is-plain-object": "2.0.4" - } - }, - "plugin-error": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/plugin-error/-/plugin-error-1.0.1.tgz", - "integrity": "sha512-L1zP0dk7vGweZME2i+EeakvUNqSrdiI3F91TwEoYiGrAfUXmVv6fJIq4g82PAXxNsWOp0J7ZqQy/3Szz0ajTxA==", - "dev": true, - "requires": { - "ansi-colors": "1.1.0", - "arr-diff": "4.0.0", - "arr-union": "3.1.0", - "extend-shallow": "3.0.2" - } - }, - "supports-color": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.3.0.tgz", - "integrity": "sha512-0aP01LLIskjKs3lq52EC0aGBAJhLq7B2Rd8HC/DR/PtNNpcLilNmHC12O+hu0usQpo7wtHNRqtrhBwtDb0+dNg==", - "dev": true, - "requires": { - "has-flag": "3.0.0" - } - } } }, "gulp-util": { @@ -5725,15 +3196,6 @@ "har-schema": "2.0.0" } }, - "has": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.1.tgz", - "integrity": "sha1-hGFzP1OLCDfJNh45qauelwTcLyg=", - "dev": true, - "requires": { - "function-bind": "1.1.1" - } - }, "has-ansi": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", @@ -5743,19 +3205,19 @@ "ansi-regex": "2.1.1" } }, - "has-binary2": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-binary2/-/has-binary2-1.0.2.tgz", - "integrity": "sha1-6D26SfC5vk0CbSc2U1DZ8D9Uvpg=", + "has-binary": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/has-binary/-/has-binary-0.1.7.tgz", + "integrity": "sha1-aOYesWIQyVRaClzOBqhzkS/h5ow=", "dev": true, "requires": { - "isarray": "2.0.1" + "isarray": "0.0.1" }, "dependencies": { "isarray": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.1.tgz", - "integrity": "sha1-o32U7ZzaLVmGXJ92/llu4fM4dB4=", + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", "dev": true } } @@ -5832,17 +3294,6 @@ "upper-case": "1.1.3" } }, - "hipchat-notifier": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/hipchat-notifier/-/hipchat-notifier-1.1.0.tgz", - "integrity": "sha1-ttJJdVQ3wZEII2d5nTupoPI7Ix4=", - "dev": true, - "optional": true, - "requires": { - "lodash": "4.17.5", - "request": "2.83.0" - } - }, "hmac-drbg": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", @@ -5885,12 +3336,6 @@ "integrity": "sha512-pNgbURSuab90KbTqvRPsseaTxOJCZBD0a7t+haSN33piP9cCM4l0CqdzAif2hUqm716UovKB2ROmiabGAKVXyg==", "dev": true }, - "htmlescape": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/htmlescape/-/htmlescape-1.1.1.tgz", - "integrity": "sha1-OgPtwiFLyjtmQko+eVk0lQnLA1E=", - "dev": true - }, "htmlparser2": { "version": "3.9.2", "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.9.2.tgz", @@ -5915,14 +3360,6 @@ "inherits": "2.0.3", "setprototypeof": "1.0.3", "statuses": "1.4.0" - }, - "dependencies": { - "depd": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.1.tgz", - "integrity": "sha1-V4O04cRZ8G+lyif5kfPQbnoxA1k=", - "dev": true - } } }, "http-proxy": { @@ -5935,17 +3372,6 @@ "requires-port": "1.0.0" } }, - "http-proxy-agent": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-1.0.0.tgz", - "integrity": "sha1-zBzjjkU7+YSg93AtLdWcc9CBKEo=", - "dev": true, - "requires": { - "agent-base": "2.1.1", - "debug": "2.6.9", - "extend": "3.0.1" - } - }, "http-signature": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", @@ -5957,47 +3383,12 @@ "sshpk": "1.13.1" } }, - "httpntlm": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/httpntlm/-/httpntlm-1.6.1.tgz", - "integrity": "sha1-rQFScUOi6Hc8+uapb1hla7UqNLI=", - "dev": true, - "requires": { - "httpreq": "0.4.24", - "underscore": "1.7.0" - }, - "dependencies": { - "underscore": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.7.0.tgz", - "integrity": "sha1-a7rwh3UA02vjTsqlhODbn+8DUgk=", - "dev": true - } - } - }, - "httpreq": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/httpreq/-/httpreq-0.4.24.tgz", - "integrity": "sha1-QzX/2CzZaWaKOUZckprGHWOTYn8=", - "dev": true - }, "https-browserify": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz", "integrity": "sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=", "dev": true }, - "https-proxy-agent": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-1.0.0.tgz", - "integrity": "sha1-NffabEjOTdv6JkiRrFk+5f+GceY=", - "dev": true, - "requires": { - "agent-base": "2.1.1", - "debug": "2.6.9", - "extend": "3.0.1" - } - }, "iconv-lite": { "version": "0.4.19", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.19.tgz", @@ -6025,13 +3416,6 @@ "integrity": "sha1-gtwzbSMrkGIXnQWrMpOmYFn9Q10=", "dev": true }, - "inflection": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/inflection/-/inflection-1.10.0.tgz", - "integrity": "sha1-W//LEZetPoEFD44X4hZoCH7p6y8=", - "dev": true, - "optional": true - }, "inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", @@ -6063,73 +3447,6 @@ "source-map": "0.5.7" } }, - "insert-module-globals": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/insert-module-globals/-/insert-module-globals-7.0.2.tgz", - "integrity": "sha512-p3s7g96Nm62MbHRuj9ZXab0DuJNWD7qcmdUXCOQ/ZZn42DtDXfsLill7bq19lDCx3K3StypqUnuE3H2VmIJFUw==", - "dev": true, - "requires": { - "JSONStream": "1.3.1", - "combine-source-map": "0.7.2", - "concat-stream": "1.5.2", - "is-buffer": "1.1.6", - "lexical-scope": "1.2.0", - "process": "0.11.10", - "through2": "2.0.3", - "xtend": "4.0.1" - }, - "dependencies": { - "combine-source-map": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/combine-source-map/-/combine-source-map-0.7.2.tgz", - "integrity": "sha1-CHAxKFazB6h8xKxIbzqaYq7MwJ4=", - "dev": true, - "requires": { - "convert-source-map": "1.1.3", - "inline-source-map": "0.6.2", - "lodash.memoize": "3.0.4", - "source-map": "0.5.7" - } - }, - "concat-stream": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.5.2.tgz", - "integrity": "sha1-cIl4Yk2FavQaWnQd790mHadSwmY=", - "dev": true, - "requires": { - "inherits": "2.0.3", - "readable-stream": "2.0.6", - "typedarray": "0.0.6" - } - }, - "convert-source-map": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.1.3.tgz", - "integrity": "sha1-SCnId+n+SbMWHzvzZziI4gRpmGA=", - "dev": true - }, - "readable-stream": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.0.6.tgz", - "integrity": "sha1-j5A0HmilPMySh4jaz80Rs265t44=", - "dev": true, - "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "1.0.7", - "string_decoder": "0.10.31", - "util-deprecate": "1.0.2" - } - }, - "string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", - "dev": true - } - } - }, "interpret": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.0.4.tgz", @@ -6137,9 +3454,9 @@ "dev": true }, "invariant": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", - "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.2.tgz", + "integrity": "sha1-nh9WrArNtr8wMwbzOL47IErmA2A=", "dev": true, "requires": { "loose-envify": "1.3.1" @@ -6151,13 +3468,6 @@ "integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=", "dev": true }, - "ip": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/ip/-/ip-1.0.1.tgz", - "integrity": "sha1-x+NWzeoiWucbNtcPLnGpK6TkJZA=", - "dev": true, - "optional": true - }, "is-absolute": { "version": "0.2.6", "resolved": "https://registry.npmjs.org/is-absolute/-/is-absolute-0.2.6.tgz", @@ -6261,27 +3571,6 @@ "lower-case": "1.1.4" } }, - "is-my-ip-valid": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-my-ip-valid/-/is-my-ip-valid-1.0.0.tgz", - "integrity": "sha512-gmh/eWXROncUzRnIa1Ubrt5b8ep/MGSnfAUI3aRp+sqTCs1tv1Isl8d8F6JmkN3dXKc3ehZMrtiPN9eL03NuaQ==", - "dev": true, - "optional": true - }, - "is-my-json-valid": { - "version": "2.17.2", - "resolved": "https://registry.npmjs.org/is-my-json-valid/-/is-my-json-valid-2.17.2.tgz", - "integrity": "sha512-IBhBslgngMQN8DDSppmgDv7RNrlFotuuDsKcrCP3+HbFaVivIBU7u9oiiErw8sH4ynx3+gOGQ3q2otkgiSi6kg==", - "dev": true, - "optional": true, - "requires": { - "generate-function": "2.0.0", - "generate-object-property": "1.2.0", - "is-my-ip-valid": "1.0.0", - "jsonpointer": "4.0.1", - "xtend": "4.0.1" - } - }, "is-number": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", @@ -6297,12 +3586,6 @@ "integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8=", "dev": true }, - "is-plain-obj": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", - "integrity": "sha1-caUMhCnfync8kqOQpKA7OfzVHT4=", - "dev": true - }, "is-plain-object": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", @@ -6332,13 +3615,6 @@ "integrity": "sha1-IHurkWOEmcB7Kt8kCkGochADRXU=", "dev": true }, - "is-property": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-property/-/is-property-1.0.2.tgz", - "integrity": "sha1-V/4cTkhHTt1lsJkR8msc1Ald2oQ=", - "dev": true, - "optional": true - }, "is-relative": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-relative/-/is-relative-0.2.1.tgz", @@ -6450,7 +3726,7 @@ "esprima": "2.7.3", "glob": "5.0.15", "handlebars": "4.0.11", - "js-yaml": "3.11.0", + "js-yaml": "3.10.0", "mkdirp": "0.5.1", "nopt": "3.0.6", "once": "1.4.0", @@ -6513,9 +3789,9 @@ } }, "jasmine-core": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-3.1.0.tgz", - "integrity": "sha1-pHheE11d9lAk38kiSVPfWFvSdmw=", + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-2.8.0.tgz", + "integrity": "sha1-vMl5rh+f0FcB5F5S5l06XWPxok4=", "dev": true }, "js-tokens": { @@ -6525,12 +3801,12 @@ "dev": true }, "js-yaml": { - "version": "3.11.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.11.0.tgz", - "integrity": "sha512-saJstZWv7oNeOyBh3+Dx1qWzhW0+e6/8eDzo7p5rDFqxntSztloLtuKu+Ejhtq82jsilwOIZYsCz+lIjthg1Hw==", + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.10.0.tgz", + "integrity": "sha512-O2v52ffjLa9VeM43J4XocZE//WT9N0IiwDa3KSHH7Tu8CtH+1qM8SIZvnsTh6v+4yFy5KUY3BHUVwjpfAWsjIA==", "dev": true, "requires": { - "argparse": "1.0.10", + "argparse": "1.0.9", "esprima": "4.0.0" }, "dependencies": { @@ -6555,12 +3831,6 @@ "integrity": "sha1-RsP+yMGJKxKwgz25vHYiF226s0s=", "dev": true }, - "json-parse-better-errors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.1.tgz", - "integrity": "sha512-xyQpxeWWMKyJps9CuGJYeng6ssI5bpqS9ltQpdVQ90t4ql6NdnxFKh95JcRt2cun/DjMVNrdjniLPuMA69xmCw==", - "dev": true - }, "json-schema": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", @@ -6573,21 +3843,18 @@ "integrity": "sha1-NJptRMU6Ud6JtAgFxdXlm0F9M0A=", "dev": true }, - "json-stable-stringify": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-0.0.1.tgz", - "integrity": "sha1-YRwj6BTbN1Un34URk9tZ3Sryf0U=", - "dev": true, - "requires": { - "jsonify": "0.0.0" - } - }, "json-stringify-safe": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", "dev": true }, + "json3": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/json3/-/json3-3.3.2.tgz", + "integrity": "sha1-PAQ0dD35Pi9cQq7nsZvLSDV19OE=", + "dev": true + }, "json5": { "version": "0.5.1", "resolved": "https://registry.npmjs.org/json5/-/json5-0.5.1.tgz", @@ -6603,25 +3870,12 @@ "graceful-fs": "4.1.11" } }, - "jsonify": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz", - "integrity": "sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=", - "dev": true - }, "jsonparse": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", "integrity": "sha1-P02uSpH6wxX3EGL4UhzCOfE2YoA=", "dev": true }, - "jsonpointer": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-4.0.1.tgz", - "integrity": "sha1-T9kss04OnbPInIYi7PUfm5eMbLk=", - "dev": true, - "optional": true - }, "jsprim": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", @@ -6635,18 +3889,17 @@ } }, "karma": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/karma/-/karma-2.0.0.tgz", - "integrity": "sha512-K9Kjp8CldLyL9ANSUctDyxC7zH3hpqXj/K09qVf06K3T/kXaHtFZ5tQciK7OzQu68FLvI89Na510kqQ2LCbpIw==", + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/karma/-/karma-1.7.1.tgz", + "integrity": "sha512-k5pBjHDhmkdaUccnC7gE3mBzZjcxyxYsYVaqiL2G5AqlfLyBO5nw2VdNK+O16cveEPd/gIOWULH7gkiYYwVNHg==", "dev": true, "requires": { "bluebird": "3.5.1", "body-parser": "1.18.2", - "browserify": "14.5.0", "chokidar": "1.7.0", - "colors": "1.2.1", + "colors": "1.1.2", "combine-lists": "1.0.1", - "connect": "3.6.6", + "connect": "3.6.5", "core-js": "2.5.1", "di": "0.0.1", "dom-serialize": "2.2.1", @@ -6655,31 +3908,31 @@ "graceful-fs": "4.1.11", "http-proxy": "1.16.2", "isbinaryfile": "3.0.2", - "lodash": "4.17.5", - "log4js": "2.5.3", - "mime": "1.6.0", + "lodash": "3.10.1", + "log4js": "0.6.38", + "mime": "1.4.1", "minimatch": "3.0.4", "optimist": "0.6.1", - "qjobs": "1.2.0", + "qjobs": "1.1.5", "range-parser": "1.2.0", - "rimraf": "2.6.2", + "rimraf": "2.6.1", "safe-buffer": "5.1.1", - "socket.io": "2.0.4", - "source-map": "0.6.1", - "tmp": "0.0.33", - "useragent": "2.3.0" + "socket.io": "1.7.3", + "source-map": "0.5.7", + "tmp": "0.0.31", + "useragent": "2.2.1" }, "dependencies": { "colors": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/colors/-/colors-1.2.1.tgz", - "integrity": "sha512-s8+wktIuDSLffCywiwSxQOMqtPxML11a/dtHE17tMn4B1MSWw/C22EKf7M2KGUBcDaVFEGT+S8N02geDXeuNKg==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/colors/-/colors-1.1.2.tgz", + "integrity": "sha1-FopHAXVran9RoSzgyXv6KMCE7WM=", "dev": true }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "lodash": { + "version": "3.10.1", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-3.10.1.tgz", + "integrity": "sha1-W/Rejkm6QYnhfUgnid/RW9FAt7Y=", "dev": true } } @@ -6715,9 +3968,9 @@ } }, "karma-jasmine": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/karma-jasmine/-/karma-jasmine-1.1.1.tgz", - "integrity": "sha1-b+hA51oRYAydkehLM8RY4cRqNSk=", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/karma-jasmine/-/karma-jasmine-1.1.0.tgz", + "integrity": "sha1-IuTAa/mhguUpTR9wXjczgRuBCs8=", "dev": true }, "karma-phantomjs-launcher": { @@ -6726,51 +3979,58 @@ "integrity": "sha1-0jyjSAG9qYY60xjju0vUBisTrNI=", "dev": true, "requires": { - "lodash": "4.17.5", + "lodash": "4.17.4", "phantomjs-prebuilt": "2.1.16" } }, "karma-typescript": { - "version": "3.0.12", - "resolved": "https://registry.npmjs.org/karma-typescript/-/karma-typescript-3.0.12.tgz", - "integrity": "sha1-qiy90RFEKgnG28uq6vSEmWVMaRM=", + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/karma-typescript/-/karma-typescript-3.0.8.tgz", + "integrity": "sha1-oayGsA2nRNwcA83HgXopgucvEXE=", "dev": true, "requires": { "acorn": "4.0.13", + "amdefine": "1.0.0", "assert": "1.4.1", "async": "2.6.0", + "base64-js": "1.2.1", "browser-resolve": "1.11.2", "browserify-zlib": "0.2.0", - "buffer": "5.1.0", + "buffer": "5.0.8", "combine-source-map": "0.8.0", "console-browserify": "1.1.0", "constants-browserify": "1.0.0", - "convert-source-map": "1.5.1", + "convert-source-map": "1.5.0", "crypto-browserify": "3.12.0", - "diff": "3.5.0", - "domain-browser": "1.2.0", + "diff": "3.4.0", + "domain-browser": "1.1.7", + "es6-promise": "4.1.1", "events": "1.1.1", "glob": "7.1.2", "https-browserify": "1.0.0", + "ieee754": "1.1.8", + "isarray": "1.0.0", "istanbul": "0.4.5", "json-stringify-safe": "5.0.1", "karma-coverage": "1.1.1", - "lodash": "4.17.5", + "lodash": "4.17.4", "log4js": "1.1.1", + "magic-string": "0.19.1", "minimatch": "3.0.4", "os-browserify": "0.3.0", - "pad": "2.0.3", + "pad": "1.2.1", "path-browserify": "0.0.0", "process": "0.11.10", "punycode": "1.4.1", "querystring-es3": "0.2.1", "readable-stream": "2.3.3", - "remap-istanbul": "0.10.1", - "source-map": "0.6.1", + "remap-istanbul": "0.8.4", + "source-map": "0.5.7", "stream-browserify": "2.0.1", - "stream-http": "2.8.1", + "stream-http": "2.7.2", "string_decoder": "1.0.3", - "timers-browserify": "2.0.6", + "through2": "2.0.1", + "timers-browserify": "2.0.4", "tmp": "0.0.29", "tty-browserify": "0.0.0", "url": "0.11.0", @@ -6778,13 +4038,19 @@ "vm-browserify": "0.0.4" }, "dependencies": { + "amdefine": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.0.tgz", + "integrity": "sha1-/RdHRwDLXMnCtwnwvp0jzjwZjDM=", + "dev": true + }, "async": { "version": "2.6.0", "resolved": "https://registry.npmjs.org/async/-/async-2.6.0.tgz", "integrity": "sha512-xAfGg1/NTLBBKlHFmnd7PlmUW9KhVQIUuSrYem9xzFUZy13ScvtyGGejaae9iAVRiRq9+Cx7DPFaAAhCpyxyPw==", "dev": true, "requires": { - "lodash": "4.17.5" + "lodash": "4.17.4" } }, "log4js": { @@ -6794,15 +4060,41 @@ "dev": true, "requires": { "debug": "2.6.9", - "semver": "5.5.0", + "semver": "5.3.0", "streamroller": "0.4.1" } }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true + "through2": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.1.tgz", + "integrity": "sha1-OE51MU1J8y3hLuu4E2uOtrXVnak=", + "dev": true, + "requires": { + "readable-stream": "2.0.6", + "xtend": "4.0.1" + }, + "dependencies": { + "readable-stream": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.0.6.tgz", + "integrity": "sha1-j5A0HmilPMySh4jaz80Rs265t44=", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "1.0.7", + "string_decoder": "0.10.31", + "util-deprecate": "1.0.2" + } + }, + "string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", + "dev": true + } + } }, "tmp": { "version": "0.0.29", @@ -6816,24 +4108,18 @@ } }, "karma-typescript-es6-transform": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/karma-typescript-es6-transform/-/karma-typescript-es6-transform-1.0.4.tgz", - "integrity": "sha1-CrL9L71fFuc0px9EpMv5GyV75Ag=", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/karma-typescript-es6-transform/-/karma-typescript-es6-transform-1.0.2.tgz", + "integrity": "sha1-uIuXd+dFDPDaySsBRt0u36mMbTA=", "dev": true, "requires": { - "acorn": "5.5.3", + "acorn": "4.0.13", "babel-core": "6.26.0", - "babel-preset-env": "1.6.1", + "babel-preset-es2015": "6.24.1", "log4js": "1.1.1", - "magic-string": "0.22.5" + "magic-string": "0.19.1" }, "dependencies": { - "acorn": { - "version": "5.5.3", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.5.3.tgz", - "integrity": "sha512-jd5MkIUlbbmb07nXH0DT3y7rDVtkzDi4XZOUVWAer8ajmF/DTSSbl5oNFyDOl/OXA33Bl79+ypHhl2pN20VeOQ==", - "dev": true - }, "log4js": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/log4js/-/log4js-1.1.1.tgz", @@ -6841,7 +4127,7 @@ "dev": true, "requires": { "debug": "2.6.9", - "semver": "5.5.0", + "semver": "5.3.0", "streamroller": "0.4.1" } } @@ -6871,25 +4157,6 @@ "graceful-fs": "4.1.11" } }, - "labeled-stream-splicer": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/labeled-stream-splicer/-/labeled-stream-splicer-2.0.0.tgz", - "integrity": "sha1-pS4dE4AkwAuGscDJH2d5GLiuClk=", - "dev": true, - "requires": { - "inherits": "2.0.3", - "isarray": "0.0.1", - "stream-splicer": "2.0.0" - }, - "dependencies": { - "isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", - "dev": true - } - } - }, "lazy-cache": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-1.0.4.tgz", @@ -6916,46 +4183,6 @@ "type-check": "0.3.2" } }, - "lexical-scope": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/lexical-scope/-/lexical-scope-1.2.0.tgz", - "integrity": "sha1-/Ope3HBKSzqHls3KQZw6CvryLfQ=", - "dev": true, - "requires": { - "astw": "2.2.0" - } - }, - "libbase64": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/libbase64/-/libbase64-0.1.0.tgz", - "integrity": "sha1-YjUag5VjrF/1vSbxL2Dpgwu3UeY=", - "dev": true - }, - "libmime": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/libmime/-/libmime-3.0.0.tgz", - "integrity": "sha1-UaGp50SOy9Ms2lRCFnW7IbwJPaY=", - "dev": true, - "requires": { - "iconv-lite": "0.4.15", - "libbase64": "0.1.0", - "libqp": "1.1.0" - }, - "dependencies": { - "iconv-lite": { - "version": "0.4.15", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.15.tgz", - "integrity": "sha1-/iZaIYrGpXz+hUkn6dBMGYJe3es=", - "dev": true - } - } - }, - "libqp": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/libqp/-/libqp-1.1.0.tgz", - "integrity": "sha1-9ebgatdLeU+1tbZpiL9yjvHe2+g=", - "dev": true - }, "liftoff": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/liftoff/-/liftoff-2.3.0.tgz", @@ -6986,28 +4213,10 @@ "strip-bom": "2.0.0" } }, - "locate-path": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", - "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", - "dev": true, - "requires": { - "p-locate": "2.0.0", - "path-exists": "3.0.0" - }, - "dependencies": { - "path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", - "dev": true - } - } - }, "lodash": { - "version": "4.17.5", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.5.tgz", - "integrity": "sha512-svL3uiZf1RwhH+cWrfZn3A4+U58wbP0tGVTLQPbjplZxZ8ROD9VLuNgsRniTlLe7OlSqR79RUehXgpBW/s0IQw==", + "version": "4.17.4", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", + "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=", "dev": true }, "lodash._basecopy": { @@ -7152,216 +4361,44 @@ } }, "log4js": { - "version": "2.5.3", - "resolved": "https://registry.npmjs.org/log4js/-/log4js-2.5.3.tgz", - "integrity": "sha512-YL/qpTxYtK0iWWbuKCrevDZz5lh+OjyHHD+mICqpjnYGKdNRBvPeh/1uYjkKUemT1CSO4wwLOwphWMpKAnD9kw==", + "version": "0.6.38", + "resolved": "https://registry.npmjs.org/log4js/-/log4js-0.6.38.tgz", + "integrity": "sha1-LElBFmldb7JUgJQ9P8hy5mKlIv0=", "dev": true, "requires": { - "amqplib": "0.5.2", - "axios": "0.15.3", - "circular-json": "0.5.1", - "date-format": "1.2.0", - "debug": "3.1.0", - "hipchat-notifier": "1.1.0", - "loggly": "1.1.1", - "mailgun-js": "0.7.15", - "nodemailer": "2.7.2", - "redis": "2.8.0", - "semver": "5.5.0", - "slack-node": "0.2.0", - "streamroller": "0.7.0" + "readable-stream": "1.0.34", + "semver": "4.3.6" }, "dependencies": { - "date-format": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/date-format/-/date-format-1.2.0.tgz", - "integrity": "sha1-YV6CjiM90aubua4JUODOzPpuytg=", + "isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", "dev": true }, - "debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "readable-stream": { + "version": "1.0.34", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", + "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", "dev": true, "requires": { - "ms": "2.0.0" + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "0.0.1", + "string_decoder": "0.10.31" } }, - "streamroller": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/streamroller/-/streamroller-0.7.0.tgz", - "integrity": "sha512-WREzfy0r0zUqp3lGO096wRuUp7ho1X6uo/7DJfTlEi0Iv/4gT7YHqXDjKC2ioVGBZtE8QzsQD9nx1nIuoZ57jQ==", - "dev": true, - "requires": { - "date-format": "1.2.0", - "debug": "3.1.0", - "mkdirp": "0.5.1", - "readable-stream": "2.3.3" - } - } - } - }, - "loggly": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/loggly/-/loggly-1.1.1.tgz", - "integrity": "sha1-Cg/B0/o6XsRP3HuJe+uipGlc6+4=", - "dev": true, - "optional": true, - "requires": { - "json-stringify-safe": "5.0.1", - "request": "2.75.0", - "timespan": "2.3.0" - }, - "dependencies": { - "assert-plus": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-0.2.0.tgz", - "integrity": "sha1-104bh+ev/A24qttwIfP+SBAasjQ=", - "dev": true, - "optional": true - }, - "aws-sign2": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.6.0.tgz", - "integrity": "sha1-FDQt0428yU0OW4fXY81jYSwOeU8=", - "dev": true, - "optional": true - }, - "boom": { - "version": "2.10.1", - "resolved": "https://registry.npmjs.org/boom/-/boom-2.10.1.tgz", - "integrity": "sha1-OciRjO/1eZ+D+UkqhI9iWt0Mdm8=", - "dev": true, - "requires": { - "hoek": "2.16.3" - } - }, - "caseless": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.11.0.tgz", - "integrity": "sha1-cVuW6phBWTzDMGeSP17GDr2k99c=", - "dev": true, - "optional": true - }, - "cryptiles": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-2.0.5.tgz", - "integrity": "sha1-O9/s3GCBR8HGcgL6KR59ylnqo7g=", - "dev": true, - "optional": true, - "requires": { - "boom": "2.10.1" - } - }, - "form-data": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.0.0.tgz", - "integrity": "sha1-bwrrrcxdoWwT4ezBETfYX5uIOyU=", - "dev": true, - "optional": true, - "requires": { - "asynckit": "0.4.0", - "combined-stream": "1.0.5", - "mime-types": "2.1.17" - } - }, - "har-validator": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-2.0.6.tgz", - "integrity": "sha1-zcvAgYgmWtEZtqWnyKtw7s+10n0=", - "dev": true, - "optional": true, - "requires": { - "chalk": "1.1.3", - "commander": "2.15.0", - "is-my-json-valid": "2.17.2", - "pinkie-promise": "2.0.1" - } - }, - "hawk": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/hawk/-/hawk-3.1.3.tgz", - "integrity": "sha1-B4REvXwWQLD+VA0sm3PVlnjo4cQ=", - "dev": true, - "optional": true, - "requires": { - "boom": "2.10.1", - "cryptiles": "2.0.5", - "hoek": "2.16.3", - "sntp": "1.0.9" - } - }, - "hoek": { - "version": "2.16.3", - "resolved": "https://registry.npmjs.org/hoek/-/hoek-2.16.3.tgz", - "integrity": "sha1-ILt0A9POo5jpHcRxCo/xuCdKJe0=", + "semver": { + "version": "4.3.6", + "resolved": "https://registry.npmjs.org/semver/-/semver-4.3.6.tgz", + "integrity": "sha1-MAvG4OhjdPe6YQaLWx7NV/xlMto=", "dev": true }, - "http-signature": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.1.1.tgz", - "integrity": "sha1-33LiZwZs0Kxn+3at+OE0qPvPkb8=", - "dev": true, - "optional": true, - "requires": { - "assert-plus": "0.2.0", - "jsprim": "1.4.1", - "sshpk": "1.13.1" - } - }, - "qs": { - "version": "6.2.3", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.2.3.tgz", - "integrity": "sha1-HPyyXBCpsrSDBT/zn138kjOQjP4=", - "dev": true, - "optional": true - }, - "request": { - "version": "2.75.0", - "resolved": "https://registry.npmjs.org/request/-/request-2.75.0.tgz", - "integrity": "sha1-0rgmiihtoT6qXQGt9dGMyQ9lfZM=", - "dev": true, - "optional": true, - "requires": { - "aws-sign2": "0.6.0", - "aws4": "1.6.0", - "bl": "1.1.2", - "caseless": "0.11.0", - "combined-stream": "1.0.5", - "extend": "3.0.1", - "forever-agent": "0.6.1", - "form-data": "2.0.0", - "har-validator": "2.0.6", - "hawk": "3.1.3", - "http-signature": "1.1.1", - "is-typedarray": "1.0.0", - "isstream": "0.1.2", - "json-stringify-safe": "5.0.1", - "mime-types": "2.1.17", - "node-uuid": "1.4.8", - "oauth-sign": "0.8.2", - "qs": "6.2.3", - "stringstream": "0.0.5", - "tough-cookie": "2.3.3", - "tunnel-agent": "0.4.3" - } - }, - "sntp": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/sntp/-/sntp-1.0.9.tgz", - "integrity": "sha1-ZUEYTMkK7qbG57NeJlkIJEPGYZg=", - "dev": true, - "optional": true, - "requires": { - "hoek": "2.16.3" - } - }, - "tunnel-agent": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.4.3.tgz", - "integrity": "sha1-Y3PbdpCf5XDgjXNYM2Xtgop07us=", - "dev": true, - "optional": true + "string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", + "dev": true } } }, @@ -7416,91 +4453,14 @@ } }, "magic-string": { - "version": "0.22.5", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.22.5.tgz", - "integrity": "sha512-oreip9rJZkzvA8Qzk9HFs8fZGF/u7H/gtrE8EN6RjKJ9kh2HlC+yQ2QezifqTZfGyiuAV0dRv5a+y/8gBb1m9w==", + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.19.1.tgz", + "integrity": "sha1-FNdoATyvLsj96hakmvgvw3fnUgE=", "dev": true, "requires": { "vlq": "0.2.3" } }, - "mailcomposer": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/mailcomposer/-/mailcomposer-4.0.1.tgz", - "integrity": "sha1-DhxEsqB890DuF9wUm6AJ8Zyt/rQ=", - "dev": true, - "optional": true, - "requires": { - "buildmail": "4.0.1", - "libmime": "3.0.0" - } - }, - "mailgun-js": { - "version": "0.7.15", - "resolved": "https://registry.npmjs.org/mailgun-js/-/mailgun-js-0.7.15.tgz", - "integrity": "sha1-7jZqINrGTDwVwD1sGz4O15UlKrs=", - "dev": true, - "optional": true, - "requires": { - "async": "2.1.5", - "debug": "2.2.0", - "form-data": "2.1.4", - "inflection": "1.10.0", - "is-stream": "1.1.0", - "path-proxy": "1.0.0", - "proxy-agent": "2.0.0", - "q": "1.4.1", - "tsscmp": "1.0.5" - }, - "dependencies": { - "async": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/async/-/async-2.1.5.tgz", - "integrity": "sha1-5YfGhYCZSsZ/xW/4bTrFa9voELw=", - "dev": true, - "optional": true, - "requires": { - "lodash": "4.17.5" - } - }, - "debug": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", - "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", - "dev": true, - "optional": true, - "requires": { - "ms": "0.7.1" - } - }, - "form-data": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.1.4.tgz", - "integrity": "sha1-M8GDrPGTJ27KqYFDpp6Uv+4XUNE=", - "dev": true, - "optional": true, - "requires": { - "asynckit": "0.4.0", - "combined-stream": "1.0.5", - "mime-types": "2.1.17" - } - }, - "ms": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", - "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", - "dev": true, - "optional": true - }, - "q": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/q/-/q-1.4.1.tgz", - "integrity": "sha1-VXBbzZPF82c1MMLCy8DCs63cKG4=", - "dev": true, - "optional": true - } - } - }, "map-cache": { "version": "0.2.2", "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", @@ -7514,9 +4474,9 @@ "dev": true }, "map-stream": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/map-stream/-/map-stream-0.0.7.tgz", - "integrity": "sha1-ih8HiW2CsQkmvTdEokIACfiJdKg=", + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/map-stream/-/map-stream-0.1.0.tgz", + "integrity": "sha1-5WqpTEyAVaFkBKBnS3jyFffI4ZQ=", "dev": true }, "marked": { @@ -7569,14 +4529,6 @@ "read-pkg-up": "1.0.1", "redent": "1.0.0", "trim-newlines": "1.0.0" - }, - "dependencies": { - "decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", - "dev": true - } } }, "micromatch": { @@ -7611,9 +4563,9 @@ } }, "mime": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.4.1.tgz", + "integrity": "sha512-KI1+qOZu5DcW6wayYHSzR/tXKCDC5Om4s1z2QJjDULzLcmf3DvzS7oluY4HCTrc+9FiKmWUgeNLg7W3uIQvxtQ==", "dev": true }, "mime-db": { @@ -7658,16 +4610,6 @@ "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", "dev": true }, - "minimist-options": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-3.0.2.tgz", - "integrity": "sha512-FyBrT/d0d4+uiZRbqznPXqw3IpZZG3gl3wKWiX784FycUKVwBt0uLBFkQrtE4tZOrgo78nZp2jnKz3L65T5LdQ==", - "dev": true, - "requires": { - "arrify": "1.0.1", - "is-plain-obj": "1.1.0" - } - }, "mkdirp": { "version": "0.5.1", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", @@ -7700,73 +4642,6 @@ "integrity": "sha1-4rbN65zhn5kxelNyLz2/XfXqqrI=", "dev": true }, - "module-deps": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/module-deps/-/module-deps-4.1.1.tgz", - "integrity": "sha1-IyFYM/HaE/1gbMuAh7RIUty4If0=", - "dev": true, - "requires": { - "JSONStream": "1.3.1", - "browser-resolve": "1.11.2", - "cached-path-relative": "1.0.1", - "concat-stream": "1.5.2", - "defined": "1.0.0", - "detective": "4.7.1", - "duplexer2": "0.1.4", - "inherits": "2.0.3", - "parents": "1.0.1", - "readable-stream": "2.3.3", - "resolve": "1.5.0", - "stream-combiner2": "1.1.1", - "subarg": "1.0.0", - "through2": "2.0.3", - "xtend": "4.0.1" - }, - "dependencies": { - "concat-stream": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.5.2.tgz", - "integrity": "sha1-cIl4Yk2FavQaWnQd790mHadSwmY=", - "dev": true, - "requires": { - "inherits": "2.0.3", - "readable-stream": "2.0.6", - "typedarray": "0.0.6" - }, - "dependencies": { - "readable-stream": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.0.6.tgz", - "integrity": "sha1-j5A0HmilPMySh4jaz80Rs265t44=", - "dev": true, - "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "1.0.7", - "string_decoder": "0.10.31", - "util-deprecate": "1.0.2" - } - } - } - }, - "duplexer2": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", - "integrity": "sha1-ixLauHjA1p4+eJEFFmKjL8a93ME=", - "dev": true, - "requires": { - "readable-stream": "2.3.3" - } - }, - "string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", - "dev": true - } - } - }, "ms": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", @@ -7782,13 +4657,6 @@ "duplexer2": "0.0.2" } }, - "nan": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.10.0.tgz", - "integrity": "sha512-bAdJv7fBLhWC+/Bls0Oza+mvTaNQtP+1RyhhhvD95pgUJz6XM5IzgmxOkItJ9tkoCiplvAnXI1tNmmUD/eScyA==", - "dev": true, - "optional": true - }, "natives": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/natives/-/natives-1.1.0.tgz", @@ -7801,13 +4669,6 @@ "integrity": "sha1-KzJxhOiZIQEXeyhWP7XnECrNDKk=", "dev": true }, - "netmask": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/netmask/-/netmask-1.0.6.tgz", - "integrity": "sha1-ICl+idhvb2QA8lDZ9Pa0wZRfzTU=", - "dev": true, - "optional": true - }, "no-case": { "version": "2.3.2", "resolved": "https://registry.npmjs.org/no-case/-/no-case-2.3.2.tgz", @@ -7823,111 +4684,12 @@ "integrity": "sha1-iXNhjXJ9pVJqgwtH0HwNgD4KFcY=", "dev": true }, - "node-uuid": { - "version": "1.4.8", - "resolved": "https://registry.npmjs.org/node-uuid/-/node-uuid-1.4.8.tgz", - "integrity": "sha1-sEDrCSOWivq/jTL7HxfxFn/auQc=", - "dev": true, - "optional": true - }, "node-version": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/node-version/-/node-version-1.1.0.tgz", "integrity": "sha512-t1V2RFiaTavaW3jtQO0A2nok6k7/Gghuvx2rjvICuT0B0dYaObBQ4U0xHL+ZTPFZodt1LMYG2Vi2nypfz4/AJg==", "dev": true }, - "nodemailer": { - "version": "2.7.2", - "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-2.7.2.tgz", - "integrity": "sha1-8kLmSa7q45tsftdA73sGHEBNMPk=", - "dev": true, - "optional": true, - "requires": { - "libmime": "3.0.0", - "mailcomposer": "4.0.1", - "nodemailer-direct-transport": "3.3.2", - "nodemailer-shared": "1.1.0", - "nodemailer-smtp-pool": "2.8.2", - "nodemailer-smtp-transport": "2.7.2", - "socks": "1.1.9" - }, - "dependencies": { - "ip": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.5.tgz", - "integrity": "sha1-vd7XARQpCCjAoDnnLvJfWq7ENUo=", - "dev": true, - "optional": true - }, - "socks": { - "version": "1.1.9", - "resolved": "https://registry.npmjs.org/socks/-/socks-1.1.9.tgz", - "integrity": "sha1-Yo1+TQSRJDVEWsC25Fk3bLPm1pE=", - "dev": true, - "optional": true, - "requires": { - "ip": "1.1.5", - "smart-buffer": "1.1.15" - } - } - } - }, - "nodemailer-direct-transport": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/nodemailer-direct-transport/-/nodemailer-direct-transport-3.3.2.tgz", - "integrity": "sha1-6W+vuQNYVglH5WkBfZfmBzilCoY=", - "dev": true, - "optional": true, - "requires": { - "nodemailer-shared": "1.1.0", - "smtp-connection": "2.12.0" - } - }, - "nodemailer-fetch": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/nodemailer-fetch/-/nodemailer-fetch-1.6.0.tgz", - "integrity": "sha1-ecSQihwPXzdbc/6IjamCj23JY6Q=", - "dev": true - }, - "nodemailer-shared": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/nodemailer-shared/-/nodemailer-shared-1.1.0.tgz", - "integrity": "sha1-z1mU4v0mjQD1zw+nZ6CBae2wfsA=", - "dev": true, - "requires": { - "nodemailer-fetch": "1.6.0" - } - }, - "nodemailer-smtp-pool": { - "version": "2.8.2", - "resolved": "https://registry.npmjs.org/nodemailer-smtp-pool/-/nodemailer-smtp-pool-2.8.2.tgz", - "integrity": "sha1-LrlNbPhXgLG0clzoU7nL1ejajHI=", - "dev": true, - "optional": true, - "requires": { - "nodemailer-shared": "1.1.0", - "nodemailer-wellknown": "0.1.10", - "smtp-connection": "2.12.0" - } - }, - "nodemailer-smtp-transport": { - "version": "2.7.2", - "resolved": "https://registry.npmjs.org/nodemailer-smtp-transport/-/nodemailer-smtp-transport-2.7.2.tgz", - "integrity": "sha1-A9ccdjFPFKx9vHvwM6am0W1n+3c=", - "dev": true, - "optional": true, - "requires": { - "nodemailer-shared": "1.1.0", - "nodemailer-wellknown": "0.1.10", - "smtp-connection": "2.12.0" - } - }, - "nodemailer-wellknown": { - "version": "0.1.10", - "resolved": "https://registry.npmjs.org/nodemailer-wellknown/-/nodemailer-wellknown-0.1.10.tgz", - "integrity": "sha1-WG24EB2zDLRDjrVGc3pBqtDPE9U=", - "dev": true - }, "nopt": { "version": "3.0.6", "resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz", @@ -7945,7 +4707,7 @@ "requires": { "hosted-git-info": "2.5.0", "is-builtin-module": "1.0.0", - "semver": "5.5.0", + "semver": "5.3.0", "validate-npm-package-license": "3.0.1" } }, @@ -8005,14 +4767,6 @@ "string-width": "1.0.2", "window-size": "0.1.4", "y18n": "3.2.1" - }, - "dependencies": { - "decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", - "dev": true - } } } } @@ -8155,6 +4909,12 @@ } } }, + "options": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/options/-/options-0.0.6.tgz", + "integrity": "sha1-7CLTEoBrtT5zF3Pnza788cZDEo8=", + "dev": true + }, "orchestrator": { "version": "0.3.8", "resolved": "https://registry.npmjs.org/orchestrator/-/orchestrator-0.3.8.tgz", @@ -8199,80 +4959,25 @@ "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", "dev": true }, - "p-limit": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.2.0.tgz", - "integrity": "sha512-Y/OtIaXtUPr4/YpMv1pCL5L5ed0rumAaAeBSj12F+bSlMdys7i8oQF/GUJmfpTS/QoaRrS/k6pma29haJpsMng==", - "dev": true, - "requires": { - "p-try": "1.0.0" - } - }, - "p-locate": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", - "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", - "dev": true, - "requires": { - "p-limit": "1.2.0" - } - }, - "p-try": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", - "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", - "dev": true - }, - "pac-proxy-agent": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-1.1.0.tgz", - "integrity": "sha512-QBELCWyLYPgE2Gj+4wUEiMscHrQ8nRPBzYItQNOHWavwBt25ohZHQC4qnd5IszdVVrFbLsQ+dPkm6eqdjJAmwQ==", - "dev": true, - "optional": true, - "requires": { - "agent-base": "2.1.1", - "debug": "2.6.9", - "extend": "3.0.1", - "get-uri": "2.0.1", - "http-proxy-agent": "1.0.0", - "https-proxy-agent": "1.0.0", - "pac-resolver": "2.0.0", - "raw-body": "2.3.2", - "socks-proxy-agent": "2.1.1" - } - }, - "pac-resolver": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/pac-resolver/-/pac-resolver-2.0.0.tgz", - "integrity": "sha1-mbiNLxk/ve78HJpSnB8yYKtSd80=", - "dev": true, - "optional": true, - "requires": { - "co": "3.0.6", - "degenerator": "1.0.4", - "ip": "1.0.1", - "netmask": "1.0.6", - "thunkify": "2.1.2" - }, - "dependencies": { - "co": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/co/-/co-3.0.6.tgz", - "integrity": "sha1-FEXyJsXrlWE45oyawwFn6n0ua9o=", - "dev": true, - "optional": true - } - } - }, "pad": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/pad/-/pad-2.0.3.tgz", - "integrity": "sha512-YVlBmpDQilhUl69RY/0Ku9Il0sNPLgVOVePhCJUfN8qDZKrq1zIY+ZwtCLtaWFtJzuJswwAcZHxf4a5RliV2pQ==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/pad/-/pad-1.2.1.tgz", + "integrity": "sha512-cx/l/K+9UjGXJmoYolvP0l3cEUyB9BUdUL3wj3uwskIiApboLsinvsXxU9nSNg9Luz2ZyH0zzJNbqgLSNtfIDw==", "dev": true, "requires": { + "coffee-script": "1.12.7", "wcwidth": "1.0.1" } }, + "pad-right": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/pad-right/-/pad-right-0.2.2.tgz", + "integrity": "sha1-b7ySQEXSRPKiokRQMGDTv8YAl3Q=", + "dev": true, + "requires": { + "repeat-string": "1.6.1" + } + }, "pako": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.6.tgz", @@ -8288,22 +4993,13 @@ "no-case": "2.3.2" } }, - "parents": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parents/-/parents-1.0.1.tgz", - "integrity": "sha1-/t1NK/GTp3dF/nHjcdc8MwfZx1E=", - "dev": true, - "requires": { - "path-platform": "0.11.15" - } - }, "parse-asn1": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.0.tgz", "integrity": "sha1-N8T5t+06tlx0gXtfJICTf7+XxxI=", "dev": true, "requires": { - "asn1.js": "4.10.1", + "asn1.js": "4.9.2", "browserify-aes": "1.1.1", "create-hash": "1.1.3", "evp_bytestokey": "1.0.3", @@ -8354,6 +5050,15 @@ "integrity": "sha1-bVuTSkVpk7I9N/QKOC1vFmao5cY=", "dev": true }, + "parsejson": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/parsejson/-/parsejson-0.0.3.tgz", + "integrity": "sha1-q343WfIJ7OmUN5c/fQ8fZK4OZKs=", + "dev": true, + "requires": { + "better-assert": "1.0.2" + } + }, "parseqs": { "version": "0.0.5", "resolved": "https://registry.npmjs.org/parseqs/-/parseqs-0.0.5.tgz", @@ -8424,31 +5129,6 @@ "integrity": "sha1-PBrfhx6pzWyUMbbqK9dKD/BVxME=", "dev": true }, - "path-platform": { - "version": "0.11.15", - "resolved": "https://registry.npmjs.org/path-platform/-/path-platform-0.11.15.tgz", - "integrity": "sha1-6GQhf3TDaFDwhSt43Hv31KVyG/I=", - "dev": true - }, - "path-proxy": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/path-proxy/-/path-proxy-1.0.0.tgz", - "integrity": "sha1-GOijaFn8nS8aU7SN7hOFQ8Ag3l4=", - "dev": true, - "optional": true, - "requires": { - "inflection": "1.3.8" - }, - "dependencies": { - "inflection": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/inflection/-/inflection-1.3.8.tgz", - "integrity": "sha1-y9Fg2p91sUw8xjV41POWeEvzAU4=", - "dev": true, - "optional": true - } - } - }, "path-root": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/path-root/-/path-root-0.1.1.tgz", @@ -8485,7 +5165,7 @@ "create-hmac": "1.1.6", "ripemd160": "2.0.1", "safe-buffer": "5.1.1", - "sha.js": "2.4.10" + "sha.js": "2.4.9" } }, "pend": { @@ -8551,37 +5231,6 @@ "pinkie": "2.0.4" } }, - "plugin-error": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/plugin-error/-/plugin-error-0.1.2.tgz", - "integrity": "sha1-O5uzM1zPAPQl4HQ34ZJ2ln2kes4=", - "dev": true, - "requires": { - "ansi-cyan": "0.1.1", - "ansi-red": "0.1.1", - "arr-diff": "1.1.0", - "arr-union": "2.1.0", - "extend-shallow": "1.1.4" - }, - "dependencies": { - "arr-diff": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-1.1.0.tgz", - "integrity": "sha1-aHwydYFjWI/vfeezb6vklesaOZo=", - "dev": true, - "requires": { - "arr-flatten": "1.1.0", - "array-slice": "0.2.3" - } - }, - "array-slice": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/array-slice/-/array-slice-0.2.3.tgz", - "integrity": "sha1-3Tz7gO15c6dRF82sabC5nshhhvU=", - "dev": true - } - } - }, "prelude-ls": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", @@ -8630,32 +5279,6 @@ "integrity": "sha1-2chtPcTcLfkBboiUbe/Wm0m0EWI=", "dev": true }, - "proxy-agent": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/proxy-agent/-/proxy-agent-2.0.0.tgz", - "integrity": "sha1-V+tTR6qAXXTsaByyVknbo5yTNJk=", - "dev": true, - "optional": true, - "requires": { - "agent-base": "2.1.1", - "debug": "2.6.9", - "extend": "3.0.1", - "http-proxy-agent": "1.0.0", - "https-proxy-agent": "1.0.0", - "lru-cache": "2.6.5", - "pac-proxy-agent": "1.1.0", - "socks-proxy-agent": "2.1.1" - }, - "dependencies": { - "lru-cache": { - "version": "2.6.5", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-2.6.5.tgz", - "integrity": "sha1-5W1jVBSO3o13B7WNFDIg/QjfD9U=", - "dev": true, - "optional": true - } - } - }, "pseudomap": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", @@ -8672,7 +5295,7 @@ "browserify-rsa": "4.0.1", "create-hash": "1.1.3", "parse-asn1": "5.1.0", - "randombytes": "2.0.6" + "randombytes": "2.0.5" } }, "punycode": { @@ -8682,15 +5305,15 @@ "dev": true }, "q": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", - "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/q/-/q-1.5.0.tgz", + "integrity": "sha1-3QG6ydBtMObyGa7LglPunr3DCPE=", "dev": true }, "qjobs": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/qjobs/-/qjobs-1.2.0.tgz", - "integrity": "sha512-8YOJEHtxpySA3fFDyCRxA+UUV+fA+rTWnuWvylOK/NCjhY+b4ocCtmu8TtsWb+mYeU+GCHf/S66KZF/AsteKHg==", + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/qjobs/-/qjobs-1.1.5.tgz", + "integrity": "sha1-ZZ3p8s+NzCehSBJ28gU3cnI4LnM=", "dev": true }, "qs": { @@ -8712,20 +5335,14 @@ "dev": true }, "queue": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/queue/-/queue-4.4.2.tgz", - "integrity": "sha512-fSMRXbwhMwipcDZ08enW2vl+YDmAmhcNcr43sCJL8DIg+CFOsoRLG23ctxA+fwNk1w55SePSiS7oqQQSgQoVJQ==", + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/queue/-/queue-4.2.1.tgz", + "integrity": "sha1-UxjtiiJ6lzTmv+6ySgV3gpInUds=", "dev": true, "requires": { "inherits": "2.0.3" } }, - "quick-lru": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-1.1.0.tgz", - "integrity": "sha1-Q2CxfGETatOAeDl/8RQW4Ybc+7g=", - "dev": true - }, "randomatic": { "version": "1.1.7", "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-1.1.7.tgz", @@ -8768,21 +5385,21 @@ } }, "randombytes": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.0.6.tgz", - "integrity": "sha512-CIQ5OFxf4Jou6uOKe9t1AOgqpeU5fd70A8NPdHSGeYXqXsPe6peOwI0cUl88RWZ6sP1vPMV3avd/R6cZ5/sP1A==", + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.0.5.tgz", + "integrity": "sha512-8T7Zn1AhMsQ/HI1SjcCfT/t4ii3eAqco3yOcSzS4mozsOz69lHLsoMXmF9nZgnFanYscnSlUSgs8uZyKzpE6kg==", "dev": true, "requires": { "safe-buffer": "5.1.1" } }, "randomfill": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/randomfill/-/randomfill-1.0.4.tgz", - "integrity": "sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/randomfill/-/randomfill-1.0.3.tgz", + "integrity": "sha512-YL6GrhrWoic0Eq8rXVbMptH7dAxCs0J+mh5Y0euNekPPYaxEmdVGim6GdoxoRzKW2yJoU8tueifS7mYxvcFDEQ==", "dev": true, "requires": { - "randombytes": "2.0.6", + "randombytes": "2.0.5", "safe-buffer": "5.1.1" } }, @@ -8804,15 +5421,6 @@ "unpipe": "1.0.0" } }, - "read-only-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/read-only-stream/-/read-only-stream-2.0.0.tgz", - "integrity": "sha1-JyT9aoET1zdkrCiNQ4YnDB2/F/A=", - "dev": true, - "requires": { - "readable-stream": "2.3.3" - } - }, "read-pkg": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz", @@ -8880,36 +5488,10 @@ "strip-indent": "1.0.1" } }, - "redis": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/redis/-/redis-2.8.0.tgz", - "integrity": "sha512-M1OkonEQwtRmZv4tEWF2VgpG0JWJ8Fv1PhlgT5+B+uNq2cA3Rt1Yt/ryoR+vQNOQcIEgdCdfH0jr3bDpihAw1A==", - "dev": true, - "optional": true, - "requires": { - "double-ended-queue": "2.1.0-0", - "redis-commands": "1.3.5", - "redis-parser": "2.6.0" - } - }, - "redis-commands": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/redis-commands/-/redis-commands-1.3.5.tgz", - "integrity": "sha512-foGF8u6MXGFF++1TZVC6icGXuMYPftKXt1FBT2vrfU9ZATNtZJ8duRC5d1lEfE8hyVe3jhelHGB91oB7I6qLsA==", - "dev": true, - "optional": true - }, - "redis-parser": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/redis-parser/-/redis-parser-2.6.0.tgz", - "integrity": "sha1-Uu0J2srBCPGmMcB+m2mUHnoZUEs=", - "dev": true, - "optional": true - }, "reflect-metadata": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.12.tgz", - "integrity": "sha512-n+IyV+nGz3+0q3/Yf1ra12KpCyi001bi4XFxSjbiWWjfqb52iTTtpGXmCCAOWWIAn9KEuFZKGqBERHmrtScZ3A==", + "version": "0.1.10", + "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.10.tgz", + "integrity": "sha1-tPg3BEFqytiZiMmxVjXUfgO5NEo=", "dev": true }, "regenerate": { @@ -8919,9 +5501,9 @@ "dev": true }, "regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.0.tgz", + "integrity": "sha512-/aA0kLeRb5N9K0d4fw7ooEbI+xDe+DKD499EQqygGqeS8N3xto15p09uY2xj7ixP81sNPXvRLnAQIqdVStgb1A==", "dev": true }, "regenerator-transform": { @@ -8979,19 +5561,77 @@ } }, "remap-istanbul": { - "version": "0.10.1", - "resolved": "https://registry.npmjs.org/remap-istanbul/-/remap-istanbul-0.10.1.tgz", - "integrity": "sha512-gsNQXs5kJLhErICSyYhzVZ++C8LBW8dgwr874Y2QvzAUS75zBlD/juZgXs39nbYJ09fZDlX2AVLVJAY2jbFJoQ==", + "version": "0.8.4", + "resolved": "https://registry.npmjs.org/remap-istanbul/-/remap-istanbul-0.8.4.tgz", + "integrity": "sha1-tL/f28kO+mNemiix9KEW4iyMJpc=", "dev": true, "requires": { "amdefine": "1.0.1", + "gulp-util": "3.0.7", "istanbul": "0.4.5", - "minimatch": "3.0.4", - "plugin-error": "0.1.2", - "source-map": "0.6.1", + "source-map": "0.5.7", "through2": "2.0.1" }, "dependencies": { + "gulp-util": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/gulp-util/-/gulp-util-3.0.7.tgz", + "integrity": "sha1-eJJcS4+LSQBawBoBHFV+YhiUHLs=", + "dev": true, + "requires": { + "array-differ": "1.0.0", + "array-uniq": "1.0.3", + "beeper": "1.1.1", + "chalk": "1.1.3", + "dateformat": "1.0.12", + "fancy-log": "1.3.0", + "gulplog": "1.0.0", + "has-gulplog": "0.1.0", + "lodash._reescape": "3.0.0", + "lodash._reevaluate": "3.0.0", + "lodash._reinterpolate": "3.0.0", + "lodash.template": "3.6.2", + "minimist": "1.2.0", + "multipipe": "0.1.2", + "object-assign": "3.0.0", + "replace-ext": "0.0.1", + "through2": "2.0.1", + "vinyl": "0.5.3" + } + }, + "lodash.template": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/lodash.template/-/lodash.template-3.6.2.tgz", + "integrity": "sha1-+M3sxhaaJVvpCYrosMU9N4kx0U8=", + "dev": true, + "requires": { + "lodash._basecopy": "3.0.1", + "lodash._basetostring": "3.0.1", + "lodash._basevalues": "3.0.0", + "lodash._isiterateecall": "3.0.9", + "lodash._reinterpolate": "3.0.0", + "lodash.escape": "3.2.0", + "lodash.keys": "3.1.2", + "lodash.restparam": "3.6.1", + "lodash.templatesettings": "3.1.1" + } + }, + "lodash.templatesettings": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-3.1.1.tgz", + "integrity": "sha1-+zB4RHU7Zrnxr6VOJix0UwfbqOU=", + "dev": true, + "requires": { + "lodash._reinterpolate": "3.0.0", + "lodash.escape": "3.2.0" + } + }, + "object-assign": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-3.0.0.tgz", + "integrity": "sha1-m+3VygiXlJvKR+f/QIBi1Un1h/I=", + "dev": true + }, "readable-stream": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.0.6.tgz", @@ -9006,12 +5646,6 @@ "util-deprecate": "1.0.2" } }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, "string_decoder": { "version": "0.10.31", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", @@ -9121,19 +5755,6 @@ "throttleit": "1.0.0" } }, - "requestretry": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/requestretry/-/requestretry-1.13.0.tgz", - "integrity": "sha512-Lmh9qMvnQXADGAQxsXHP4rbgO6pffCfuR8XUBdP9aitJcLQJxhp7YZK4xAVYXnPJ5E52mwrfiKQtKonPL8xsmg==", - "dev": true, - "optional": true, - "requires": { - "extend": "3.0.1", - "lodash": "4.17.5", - "request": "2.83.0", - "when": "3.7.8" - } - }, "requires-port": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", @@ -9176,9 +5797,9 @@ "dev": true }, "rimraf": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz", - "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==", + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.1.tgz", + "integrity": "sha1-wjOOxkPfeht/5cVPqG9XQopV8z0=", "dev": true, "requires": { "glob": "7.1.2" @@ -9195,12 +5816,12 @@ } }, "rxjs": { - "version": "5.5.7", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-5.5.7.tgz", - "integrity": "sha512-Hxo2ac8gRQjwjtKgukMIwBRbq5+KAeEV5hXM4obYBOAghev41bDQWgFH4svYiU9UnQ5kNww2LgfyBdevCd2HXA==", + "version": "5.5.2", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-5.5.2.tgz", + "integrity": "sha512-oRYoIKWBU3Ic37fLA5VJu31VqQO4bWubRntcHSJ+cwaDQBwdnZ9x4zmhJfm/nFQ2E82/I4loSioHnACamrKGgA==", "dev": true, "requires": { - "symbol-observable": "1.0.1" + "symbol-observable": "1.0.4" } }, "safe-buffer": { @@ -9210,9 +5831,9 @@ "dev": true }, "semver": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz", - "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==", + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.3.0.tgz", + "integrity": "sha1-myzl094C0XxgEq0yaqa00M9U+U8=", "dev": true }, "sentence-case": { @@ -9250,37 +5871,15 @@ "dev": true }, "sha.js": { - "version": "2.4.10", - "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.10.tgz", - "integrity": "sha512-vnwmrFDlOExK4Nm16J2KMWHLrp14lBrjxMxBJpu++EnsuBmpiYaM/MEs46Vxxm/4FvdP5yTwuCTO9it5FSjrqA==", + "version": "2.4.9", + "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.9.tgz", + "integrity": "sha512-G8zektVqbiPHrylgew9Zg1VRB1L/DtXNUVAM6q4QLy8NE3qtHlFXTf8VLL4k1Yl6c7NMjtZUTdXV+X44nFaT6A==", "dev": true, "requires": { "inherits": "2.0.3", "safe-buffer": "5.1.1" } }, - "shasum": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/shasum/-/shasum-1.0.2.tgz", - "integrity": "sha1-5wEjENj0F/TetXEhUOVni4euVl8=", - "dev": true, - "requires": { - "json-stable-stringify": "0.0.1", - "sha.js": "2.4.10" - } - }, - "shell-quote": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.6.1.tgz", - "integrity": "sha1-9HgZSczkAmlxJ0MOo7PFR29IF2c=", - "dev": true, - "requires": { - "array-filter": "0.0.1", - "array-map": "0.0.0", - "array-reduce": "0.0.0", - "jsonify": "0.0.0" - } - }, "shelljs": { "version": "0.7.8", "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.7.8.tgz", @@ -9304,38 +5903,12 @@ "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", "dev": true }, - "slack-node": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/slack-node/-/slack-node-0.2.0.tgz", - "integrity": "sha1-3kuN3aqLeT9h29KTgQT9q/N9+jA=", - "dev": true, - "optional": true, - "requires": { - "requestretry": "1.13.0" - } - }, "slash": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-1.0.0.tgz", "integrity": "sha1-xB8vbDn8FtHNF61LXYlhFK5HDVU=", "dev": true }, - "smart-buffer": { - "version": "1.1.15", - "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-1.1.15.tgz", - "integrity": "sha1-fxFLW2X6s+KjWqd1uxLw0cZJvxY=", - "dev": true - }, - "smtp-connection": { - "version": "2.12.0", - "resolved": "https://registry.npmjs.org/smtp-connection/-/smtp-connection-2.12.0.tgz", - "integrity": "sha1-1275EnyyPCJZ7bHoNJwujV4tdME=", - "dev": true, - "requires": { - "httpntlm": "1.6.1", - "nodemailer-shared": "1.1.0" - } - }, "snake-case": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/snake-case/-/snake-case-2.1.0.tgz", @@ -9355,103 +5928,147 @@ } }, "socket.io": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/socket.io/-/socket.io-2.0.4.tgz", - "integrity": "sha1-waRZDO/4fs8TxyZS8Eb3FrKeYBQ=", + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/socket.io/-/socket.io-1.7.3.tgz", + "integrity": "sha1-uK+cq6AJSeVo42nxMn6pvp6iRhs=", "dev": true, "requires": { - "debug": "2.6.9", - "engine.io": "3.1.5", - "socket.io-adapter": "1.1.1", - "socket.io-client": "2.0.4", - "socket.io-parser": "3.1.3" - } - }, - "socket.io-adapter": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/socket.io-adapter/-/socket.io-adapter-1.1.1.tgz", - "integrity": "sha1-KoBeihTWNyEk3ZFZrUUC+MsH8Gs=", - "dev": true - }, - "socket.io-client": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-2.0.4.tgz", - "integrity": "sha1-CRilUkBtxeVAs4Dc2Xr8SmQzL44=", - "dev": true, - "requires": { - "backo2": "1.0.2", - "base64-arraybuffer": "0.1.5", - "component-bind": "1.0.0", - "component-emitter": "1.2.1", - "debug": "2.6.9", - "engine.io-client": "3.1.6", - "has-cors": "1.1.0", - "indexof": "0.0.1", - "object-component": "0.0.3", - "parseqs": "0.0.5", - "parseuri": "0.0.5", - "socket.io-parser": "3.1.3", - "to-array": "0.1.4" - } - }, - "socket.io-parser": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-3.1.3.tgz", - "integrity": "sha512-g0a2HPqLguqAczs3dMECuA1RgoGFPyvDqcbaDEdCWY9g59kdUAz3YRmaJBNKXflrHNwB7Q12Gkf/0CZXfdHR7g==", - "dev": true, - "requires": { - "component-emitter": "1.2.1", - "debug": "3.1.0", - "has-binary2": "1.0.2", - "isarray": "2.0.1" + "debug": "2.3.3", + "engine.io": "1.8.3", + "has-binary": "0.1.7", + "object-assign": "4.1.0", + "socket.io-adapter": "0.5.0", + "socket.io-client": "1.7.3", + "socket.io-parser": "2.3.1" }, "dependencies": { "debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.3.3.tgz", + "integrity": "sha1-QMRT5n5uE8kB3ewxeviYbNqe/4w=", "dev": true, "requires": { - "ms": "2.0.0" + "ms": "0.7.2" + } + }, + "ms": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.2.tgz", + "integrity": "sha1-riXPJRKziFodldfwN4aNhDESR2U=", + "dev": true + }, + "object-assign": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.0.tgz", + "integrity": "sha1-ejs9DpgGPUP0wD8uiubNUahog6A=", + "dev": true + } + } + }, + "socket.io-adapter": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/socket.io-adapter/-/socket.io-adapter-0.5.0.tgz", + "integrity": "sha1-y21LuL7IHhB4uZZ3+c7QBGBmu4s=", + "dev": true, + "requires": { + "debug": "2.3.3", + "socket.io-parser": "2.3.1" + }, + "dependencies": { + "debug": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.3.3.tgz", + "integrity": "sha1-QMRT5n5uE8kB3ewxeviYbNqe/4w=", + "dev": true, + "requires": { + "ms": "0.7.2" + } + }, + "ms": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.2.tgz", + "integrity": "sha1-riXPJRKziFodldfwN4aNhDESR2U=", + "dev": true + } + } + }, + "socket.io-client": { + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-1.7.3.tgz", + "integrity": "sha1-sw6GqhDV7zVGYBwJzeR2Xjgdo3c=", + "dev": true, + "requires": { + "backo2": "1.0.2", + "component-bind": "1.0.0", + "component-emitter": "1.2.1", + "debug": "2.3.3", + "engine.io-client": "1.8.3", + "has-binary": "0.1.7", + "indexof": "0.0.1", + "object-component": "0.0.3", + "parseuri": "0.0.5", + "socket.io-parser": "2.3.1", + "to-array": "0.1.4" + }, + "dependencies": { + "component-emitter": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz", + "integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY=", + "dev": true + }, + "debug": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.3.3.tgz", + "integrity": "sha1-QMRT5n5uE8kB3ewxeviYbNqe/4w=", + "dev": true, + "requires": { + "ms": "0.7.2" + } + }, + "ms": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.2.tgz", + "integrity": "sha1-riXPJRKziFodldfwN4aNhDESR2U=", + "dev": true + } + } + }, + "socket.io-parser": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-2.3.1.tgz", + "integrity": "sha1-3VMgJRA85Clpcya+/WQAX8/ltKA=", + "dev": true, + "requires": { + "component-emitter": "1.1.2", + "debug": "2.2.0", + "isarray": "0.0.1", + "json3": "3.3.2" + }, + "dependencies": { + "debug": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", + "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", + "dev": true, + "requires": { + "ms": "0.7.1" } }, "isarray": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.1.tgz", - "integrity": "sha1-o32U7ZzaLVmGXJ92/llu4fM4dB4=", + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", + "dev": true + }, + "ms": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", + "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", "dev": true } } }, - "socks": { - "version": "1.1.10", - "resolved": "https://registry.npmjs.org/socks/-/socks-1.1.10.tgz", - "integrity": "sha1-W4t/x8jzQcU+0FbpKbe/Tei6e1o=", - "dev": true, - "requires": { - "ip": "1.1.5", - "smart-buffer": "1.1.15" - }, - "dependencies": { - "ip": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.5.tgz", - "integrity": "sha1-vd7XARQpCCjAoDnnLvJfWq7ENUo=", - "dev": true - } - } - }, - "socks-proxy-agent": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-2.1.1.tgz", - "integrity": "sha512-sFtmYqdUK5dAMh85H0LEVFUCO7OhJJe1/z2x/Z6mxp3s7/QPf1RkZmpZy+BpuU0bEjcV9npqKjq9Y3kwFUjnxw==", - "dev": true, - "requires": { - "agent-base": "2.1.1", - "extend": "3.0.1", - "socks": "1.1.10" - } - }, "source-map": { "version": "0.5.7", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", @@ -9562,27 +6179,6 @@ "readable-stream": "2.3.3" } }, - "stream-combiner2": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/stream-combiner2/-/stream-combiner2-1.1.1.tgz", - "integrity": "sha1-+02KFCDqNidk4hrUeAOXvry0HL4=", - "dev": true, - "requires": { - "duplexer2": "0.1.4", - "readable-stream": "2.3.3" - }, - "dependencies": { - "duplexer2": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", - "integrity": "sha1-ixLauHjA1p4+eJEFFmKjL8a93ME=", - "dev": true, - "requires": { - "readable-stream": "2.3.3" - } - } - } - }, "stream-consume": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/stream-consume/-/stream-consume-0.1.0.tgz", @@ -9590,9 +6186,9 @@ "dev": true }, "stream-http": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/stream-http/-/stream-http-2.8.1.tgz", - "integrity": "sha512-cQ0jo17BLca2r0GfRdZKYAGLU6JRoIWxqSOakUMuKOT6MOK7AAlE856L33QuDmAy/eeOrhLee3dZKX0Uadu93A==", + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/stream-http/-/stream-http-2.7.2.tgz", + "integrity": "sha512-c0yTD2rbQzXtSsFSVhtpvY/vS6u066PcXOX9kBB3mSO76RiUQzL340uJkGBWnlBg4/HZzqiUXtaVA7wcRcJgEw==", "dev": true, "requires": { "builtin-status-codes": "3.0.0", @@ -9602,16 +6198,6 @@ "xtend": "4.0.1" } }, - "stream-splicer": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/stream-splicer/-/stream-splicer-2.0.0.tgz", - "integrity": "sha1-G2O+Q4oTPktnHMGTUZdgAXWRDYM=", - "dev": true, - "requires": { - "inherits": "2.0.3", - "readable-stream": "2.3.3" - } - }, "streamroller": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/streamroller/-/streamroller-0.4.1.tgz", @@ -9715,15 +6301,6 @@ "get-stdin": "4.0.1" } }, - "subarg": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/subarg/-/subarg-1.0.0.tgz", - "integrity": "sha1-9izxdYHplrSPyWVpn1TAauJouNI=", - "dev": true, - "requires": { - "minimist": "1.2.0" - } - }, "supports-color": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", @@ -9741,20 +6318,11 @@ } }, "symbol-observable": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-1.0.1.tgz", - "integrity": "sha1-g0D8RwLDEi310iKI+IKD9RPT/dQ=", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-1.0.4.tgz", + "integrity": "sha1-Kb9hXUqnEhvdiYsi1LP5vE4qoD0=", "dev": true }, - "syntax-error": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/syntax-error/-/syntax-error-1.4.0.tgz", - "integrity": "sha512-YPPlu67mdnHGTup2A8ff7BC2Pjq0e0Yp/IyTFN03zWO0RcK07uLcbi7C2KpGR2FvWbaB0+bfE27a+sBKebSo7w==", - "dev": true, - "requires": { - "acorn-node": "1.3.0" - } - }, "tempfile": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/tempfile/-/tempfile-1.1.1.tgz", @@ -9799,13 +6367,6 @@ "xtend": "4.0.1" } }, - "thunkify": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/thunkify/-/thunkify-2.1.2.tgz", - "integrity": "sha1-+qDp0jDFGsyVyhOjYawFyn4EVT0=", - "dev": true, - "optional": true - }, "tildify": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/tildify/-/tildify-1.2.0.tgz", @@ -9822,21 +6383,14 @@ "dev": true }, "timers-browserify": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-2.0.6.tgz", - "integrity": "sha512-HQ3nbYRAowdVd0ckGFvmJPPCOH/CHleFN/Y0YQCX1DVaB7t+KFvisuyN09fuP8Jtp1CpfSh8O8bMkHbdbPe6Pw==", + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-2.0.4.tgz", + "integrity": "sha512-uZYhyU3EX8O7HQP+J9fTVYwsq90Vr68xPEFo7yrVImIxYvHgukBEgOB/SgGoorWVTzGM/3Z+wUNnboA4M8jWrg==", "dev": true, "requires": { "setimmediate": "1.0.5" } }, - "timespan": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/timespan/-/timespan-2.3.0.tgz", - "integrity": "sha1-SQLOBAvRPYRcj1myfp1ZutbzmSk=", - "dev": true, - "optional": true - }, "title-case": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/title-case/-/title-case-2.1.1.tgz", @@ -9848,9 +6402,9 @@ } }, "tmp": { - "version": "0.0.33", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", - "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", + "version": "0.0.31", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.31.tgz", + "integrity": "sha1-jzirlDjhcxXl29izZX6L+yd65Kc=", "dev": true, "requires": { "os-tmpdir": "1.0.2" @@ -9902,139 +6456,93 @@ "dev": true }, "tsickle": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/tsickle/-/tsickle-0.27.2.tgz", - "integrity": "sha512-KW+ZgY0t2cq2Qib1sfdgMiRnk+cr3brUtzZoVWjv+Ot3jNxVorFBUH+6In6hl8Dg7BI2AAFf69NHkwvZNMSFwA==", + "version": "0.21.6", + "resolved": "https://registry.npmjs.org/tsickle/-/tsickle-0.21.6.tgz", + "integrity": "sha1-U7Abl5xcE/2xOvs/uVgXflmRWI0=", "dev": true, "requires": { "minimist": "1.2.0", "mkdirp": "0.5.1", - "source-map": "0.6.1", - "source-map-support": "0.5.4" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "source-map-support": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.4.tgz", - "integrity": "sha512-PETSPG6BjY1AHs2t64vS2aqAgu6dMIMXJULWFBGbh2Gr8nVLbCFDo6i/RMMvviIQ2h1Z8+5gQhVKSn2je9nmdg==", - "dev": true, - "requires": { - "source-map": "0.6.1" - } - } + "source-map": "0.5.7", + "source-map-support": "0.4.18" } }, "tslib": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.9.0.tgz", - "integrity": "sha512-f/qGG2tUkrISBlQZEjEqoZ3B2+npJjIf04H1wuAv9iA8i04Icp+61KRXxFdha22670NJopsZCIjhC3SnjPRKrQ==", + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.8.0.tgz", + "integrity": "sha512-ymKWWZJST0/CkgduC2qkzjMOWr4bouhuURNXCn/inEX0L57BnRG6FhX76o7FOnsjHazCjfU2LKeSrlS2sIKQJg==", "dev": true }, "tslint": { - "version": "5.9.1", - "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.9.1.tgz", - "integrity": "sha1-ElX4ej/1frCw4fDmEKi0dIBGya4=", + "version": "3.15.1", + "resolved": "https://registry.npmjs.org/tslint/-/tslint-3.15.1.tgz", + "integrity": "sha1-2hZcqT2P3CwIa1EWXuG6y0jJjqU=", "dev": true, "requires": { - "babel-code-frame": "6.26.0", - "builtin-modules": "1.1.1", - "chalk": "2.3.2", - "commander": "2.15.0", - "diff": "3.5.0", + "colors": "1.1.2", + "diff": "2.2.3", + "findup-sync": "0.3.0", "glob": "7.1.2", - "js-yaml": "3.11.0", - "minimatch": "3.0.4", + "optimist": "0.6.1", "resolve": "1.5.0", - "semver": "5.5.0", - "tslib": "1.9.0", - "tsutils": "2.22.2" + "underscore.string": "3.3.4" }, "dependencies": { - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "1.9.1" - } - }, - "chalk": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.3.2.tgz", - "integrity": "sha512-ZM4j2/ld/YZDc3Ma8PgN7gyAk+kHMMMyzLNryCPGhWrsfAuDVeuid5bpRFTDgMH9JBK2lA4dyyAkkZYF/WcqDQ==", - "dev": true, - "requires": { - "ansi-styles": "3.2.1", - "escape-string-regexp": "1.0.5", - "supports-color": "5.3.0" - } - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "colors": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/colors/-/colors-1.1.2.tgz", + "integrity": "sha1-FopHAXVran9RoSzgyXv6KMCE7WM=", "dev": true }, - "supports-color": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.3.0.tgz", - "integrity": "sha512-0aP01LLIskjKs3lq52EC0aGBAJhLq7B2Rd8HC/DR/PtNNpcLilNmHC12O+hu0usQpo7wtHNRqtrhBwtDb0+dNg==", + "diff": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/diff/-/diff-2.2.3.tgz", + "integrity": "sha1-YOr9DSjukG5Oj/ClLBIpUhAzv5k=", + "dev": true + }, + "findup-sync": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/findup-sync/-/findup-sync-0.3.0.tgz", + "integrity": "sha1-N5MKpdgWt3fANEXhlmzGeQpMCxY=", "dev": true, "requires": { - "has-flag": "3.0.0" + "glob": "5.0.15" + }, + "dependencies": { + "glob": { + "version": "5.0.15", + "resolved": "https://registry.npmjs.org/glob/-/glob-5.0.15.tgz", + "integrity": "sha1-G8k2ueAvSmA/zCIuz3Yz0wuLk7E=", + "dev": true, + "requires": { + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" + } + } } } } }, "tslint-eslint-rules": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/tslint-eslint-rules/-/tslint-eslint-rules-4.1.1.tgz", - "integrity": "sha1-fDDniC8mvCdr/5HSOEl1xp2viLo=", + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/tslint-eslint-rules/-/tslint-eslint-rules-1.6.1.tgz", + "integrity": "sha1-OekvMZVq0qZsAGHDUfqWwICK4Pg=", "dev": true, "requires": { "doctrine": "0.7.2", - "tslib": "1.9.0", - "tsutils": "1.9.1" - }, - "dependencies": { - "tsutils": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-1.9.1.tgz", - "integrity": "sha1-ufmrROVa+WgYMdXyjQrur1x1DLA=", - "dev": true - } + "tslint": "3.15.1" } }, "tslint-ionic-rules": { - "version": "0.0.9", - "resolved": "https://registry.npmjs.org/tslint-ionic-rules/-/tslint-ionic-rules-0.0.9.tgz", - "integrity": "sha512-k9HQoN+vK9ivDDF9O+HrMDZMFLmxNeoXelZiPTeawbyc8cmH0GLi66G2B6OTaz1NFg/Hiv4Ry5cy6vWiPEVlZQ==", + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/tslint-ionic-rules/-/tslint-ionic-rules-0.0.8.tgz", + "integrity": "sha1-au1vjjzUBlIzAdHW0Db38DbdKAk=", "dev": true, "requires": { - "tslint-eslint-rules": "4.1.1" - } - }, - "tsscmp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/tsscmp/-/tsscmp-1.0.5.tgz", - "integrity": "sha1-fcSjOvcVgatDN9qR2FylQn69mpc=", - "dev": true, - "optional": true - }, - "tsutils": { - "version": "2.22.2", - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.22.2.tgz", - "integrity": "sha512-u06FUSulCJ+Y8a2ftuqZN6kIGqdP2yJjUPEngXqmdPND4UQfb04igcotH+dw+IFr417yP6muCLE8/5/Qlfnx0w==", - "dev": true, - "requires": { - "tslib": "1.9.0" + "tslint-eslint-rules": "1.6.1" } }, "tty-browserify": { @@ -10069,30 +6577,13 @@ } }, "type-is": { - "version": "1.6.16", - "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.16.tgz", - "integrity": "sha512-HRkVv/5qY2G6I8iab9cI7v1bOIdhm94dVjQCPFElW9W+3GeDOSHmy2EBYe4VTApuzolPcmgFTN3ftVJRKR2J9Q==", + "version": "1.6.15", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.15.tgz", + "integrity": "sha1-yrEPtJCeRByChC6v4a1kbIGARBA=", "dev": true, "requires": { "media-typer": "0.3.0", - "mime-types": "2.1.18" - }, - "dependencies": { - "mime-db": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.33.0.tgz", - "integrity": "sha512-BHJ/EKruNIqJf/QahvxwQZXKygOQ256myeN/Ew+THcAa5q+PjyTTMMeNQC4DZw5AwfvelsUrA6B67NKMqXDbzQ==", - "dev": true - }, - "mime-types": { - "version": "2.1.18", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.18.tgz", - "integrity": "sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ==", - "dev": true, - "requires": { - "mime-db": "1.33.0" - } - } + "mime-types": "2.1.17" } }, "typedarray": { @@ -10102,9 +6593,9 @@ "dev": true }, "typescript": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.6.2.tgz", - "integrity": "sha1-PFtv1/beCRQmkCfwPAlGdY92c6Q=", + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.4.2.tgz", + "integrity": "sha1-+DlfhdRZJ2BnyYiqQYN6j4KHCEQ=", "dev": true }, "uglify-js": { @@ -10127,15 +6618,9 @@ "optional": true }, "ultron": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/ultron/-/ultron-1.1.1.tgz", - "integrity": "sha512-UIEXBNeYmKptWH6z8ZnqTeS8fV74zG0/eRU9VGkpzz+LIJNs8W/zM/L+7ctCkRrgbNnnR0xxw4bKOr0cW0N0Og==", - "dev": true - }, - "umd": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/umd/-/umd-3.0.3.tgz", - "integrity": "sha512-4IcGSufhFshvLNcMCV80UnQVlZ5pMOC8mvNPForqwA4+lzYQuetTESLDQkeLmihq8bRcnpbQa48Wb8Lh16/xow==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/ultron/-/ultron-1.0.2.tgz", + "integrity": "sha1-rOEWq1V80Zc4ak6I9GhTeMiy5Po=", "dev": true }, "unc-path-regex": { @@ -10159,18 +6644,22 @@ "underscore": "1.6.0" } }, + "underscore.string": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-3.3.4.tgz", + "integrity": "sha1-LCo/n4PmR2L9xF5s6sZRQoZCE9s=", + "dev": true, + "requires": { + "sprintf-js": "1.0.3", + "util-deprecate": "1.0.2" + } + }, "unique-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/unique-stream/-/unique-stream-1.0.0.tgz", "integrity": "sha1-1ZpKdUJ0R9mqbJHnAmP40mpLEEs=", "dev": true }, - "universalify": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.1.tgz", - "integrity": "sha1-+nG63UQ3r0wUiEHjs7Fl+enlkLc=", - "dev": true - }, "unpipe": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", @@ -10217,13 +6706,21 @@ "dev": true }, "useragent": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/useragent/-/useragent-2.3.0.tgz", - "integrity": "sha512-4AoH4pxuSvHCjqLO04sU6U/uE65BYza8l/KKBS0b0hnUPWi+cQ2BpeTEwejCSx9SPV5/U03nniDTrWx5NrmKdw==", + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/useragent/-/useragent-2.2.1.tgz", + "integrity": "sha1-z1k+9PLRdYdei7ZY6pLhik/QbY4=", "dev": true, "requires": { - "lru-cache": "4.1.1", - "tmp": "0.0.33" + "lru-cache": "2.2.4", + "tmp": "0.0.31" + }, + "dependencies": { + "lru-cache": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-2.2.4.tgz", + "integrity": "sha1-bGWGGb7PFAMdDQtZSxYELOTcBj0=", + "dev": true + } } }, "util": { @@ -10261,13 +6758,6 @@ "integrity": "sha1-Z+LoY3lyFVMN/zGOW/nc6/1Hsho=", "dev": true }, - "uws": { - "version": "9.14.0", - "resolved": "https://registry.npmjs.org/uws/-/uws-9.14.0.tgz", - "integrity": "sha512-HNMztPP5A1sKuVFmdZ6BPVpBQd5bUjNC8EFMFiICK+oho/OQsAJy5hnIx4btMHiOk8j04f/DbIlqnEZ9d72dqg==", - "dev": true, - "optional": true - }, "v8flags": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/v8flags/-/v8flags-2.1.1.tgz", @@ -10432,13 +6922,6 @@ "defaults": "1.0.3" } }, - "when": { - "version": "3.7.8", - "resolved": "https://registry.npmjs.org/when/-/when-3.7.8.tgz", - "integrity": "sha1-xxMLan6gRpPoQs3J56Hyqjmjn4I=", - "dev": true, - "optional": true - }, "which": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/which/-/which-1.3.0.tgz", @@ -10456,9 +6939,9 @@ "optional": true }, "winston": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/winston/-/winston-2.4.1.tgz", - "integrity": "sha512-k/+Dkzd39ZdyJHYkuaYmf4ff+7j+sCIy73UCOWHYA67/WXU+FF/Y6PF28j+Vy7qNRPHWO+dR+/+zkoQWPimPqg==", + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/winston/-/winston-2.4.0.tgz", + "integrity": "sha1-gIBQuT1SZh7Z+2wms/DIJnCLCu4=", "dev": true, "requires": { "async": "1.0.0", @@ -10506,28 +6989,26 @@ "dev": true }, "ws": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/ws/-/ws-3.3.3.tgz", - "integrity": "sha512-nnWLa/NwZSt4KQJu51MYlCcSQ5g7INpOrOMt4XV8j4dqTXdmlUmSHQ8/oLC069ckre0fRsgfvsKwbTdtKLCDkA==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/ws/-/ws-1.1.2.tgz", + "integrity": "sha1-iiRPoFJAHgjJiGz0SoUYnh/UBn8=", "dev": true, "requires": { - "async-limiter": "1.0.0", - "safe-buffer": "5.1.1", - "ultron": "1.1.1" + "options": "0.0.6", + "ultron": "1.0.2" } }, - "xmlhttprequest-ssl": { - "version": "1.5.5", - "resolved": "https://registry.npmjs.org/xmlhttprequest-ssl/-/xmlhttprequest-ssl-1.5.5.tgz", - "integrity": "sha1-wodrBhaKrcQOV9l+gRkayPQ5iz4=", + "wtf-8": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/wtf-8/-/wtf-8-1.0.0.tgz", + "integrity": "sha1-OS2LotDxw00e4tYw8V0O+2jhBIo=", "dev": true }, - "xregexp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/xregexp/-/xregexp-2.0.0.tgz", - "integrity": "sha1-UqY+VsoLhKfzpfPWGHLxJq16WUM=", - "dev": true, - "optional": true + "xmlhttprequest-ssl": { + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/xmlhttprequest-ssl/-/xmlhttprequest-ssl-1.5.3.tgz", + "integrity": "sha1-GFqIjATspGw+QHDZn3tJ3jUomS0=", + "dev": true }, "xtend": { "version": "4.0.1", @@ -10566,13 +7047,6 @@ "integrity": "sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk=", "dev": true, "optional": true - }, - "decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", - "dev": true, - "optional": true } } }, @@ -10592,9 +7066,9 @@ "dev": true }, "zone.js": { - "version": "0.8.20", - "resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.8.20.tgz", - "integrity": "sha512-FXlA37ErSXCMy5RNBcGFgCI/Zivqzr0D19GuvDxhcYIJc7xkFp6c29DKyODJu0Zo+EMyur/WPPgcBh1EHjB9jA==", + "version": "0.8.18", + "resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.8.18.tgz", + "integrity": "sha512-knKOBQM0oea3/x9pdyDuDi7RhxDlJhOIkeixXSiTKWLgs4LpK37iBc+1HaHwzlciHUKT172CymJFKo8Xgh+44Q==", "dev": true } } diff --git a/package.json b/package.json index 0e95931a8..dfead97ca 100644 --- a/package.json +++ b/package.json @@ -6,44 +6,45 @@ "author": "Ionic Team (https://ionic.io)", "license": "MIT", "devDependencies": { - "@angular/compiler": "5.2.9", - "@angular/compiler-cli": "5.2.9", - "@angular/core": "5.2.9", + "@angular/compiler": "4.4.4", + "@angular/compiler-cli": "4.4.4", + "@angular/core": "4.4.4", "@types/cordova": "0.0.34", - "@types/jasmine": "^2.8.6", - "@types/node": "^8.9.5", + "@types/jasmine": "^2.6.3", + "@types/node": "^8.0.50", "canonical-path": "0.0.2", "child-process-promise": "2.2.1", - "conventional-changelog-cli": "^1.3.16", - "cpr": "^3.0.1", - "cz-conventional-changelog": "^2.1.0", - "decamelize": "^2.0.0", - "dgeni": "^0.4.9", + "conventional-changelog-cli": "1.3.4", + "cpr": "2.0.0", + "cz-conventional-changelog": "2.0.0", + "decamelize": "1.2.0", + "dgeni": "0.4.7", "dgeni-packages": "0.16.10", - "fs-extra": "^5.0.0", + "fs-extra": "2.0.0", + "fs-extra-promise": "0.4.1", "gulp": "3.9.1", "gulp-rename": "1.2.2", - "gulp-replace": "^0.6.1", - "gulp-tslint": "^8.1.3", - "jasmine-core": "^3.1.0", - "karma": "^2.0.0", + "gulp-replace": "0.5.4", + "gulp-tslint": "6.1.2", + "jasmine-core": "^2.6.1", + "karma": "^1.7.0", "karma-cli": "^1.0.1", - "karma-jasmine": "^1.1.1", + "karma-jasmine": "^1.1.0", "karma-phantomjs-launcher": "^1.0.4", - "karma-typescript": "^3.0.12", - "karma-typescript-es6-transform": "^1.0.4", - "lodash": "^4.17.5", + "karma-typescript": "^3.0.1", + "karma-typescript-es6-transform": "^1.0.0", + "lodash": "4.17.4", "minimist": "1.2.0", "node-html-encoder": "0.0.2", - "q": "^1.5.1", - "queue": "^4.4.2", - "rimraf": "^2.6.2", - "rxjs": "^5.5.7", - "semver": "^5.5.0", - "tslint": "^5.9.1", - "tslint-ionic-rules": "0.0.9", - "typescript": "~2.6.2", - "zone.js": "0.8.20" + "q": "1.5.0", + "queue": "4.2.1", + "rimraf": "2.6.1", + "rxjs": "5.5.2", + "semver": "5.3.0", + "tslint": "3.15.1", + "tslint-ionic-rules": "0.0.8", + "typescript": "~2.4.2", + "zone.js": "0.8.18" }, "scripts": { "start": "npm run test:watch", diff --git a/scripts/build/build.js b/scripts/build/build.js index 6d3549111..cae297b8b 100644 --- a/scripts/build/build.js +++ b/scripts/build/build.js @@ -1,6 +1,6 @@ -'use strict'; +"use strict"; // Node module dependencies -const fs = require('fs-extra'), +const fs = require('fs-extra-promise').useFs(require('fs-extra')), queue = require('queue'), path = require('path'), exec = require('child_process').exec; @@ -15,6 +15,7 @@ const ROOT = path.resolve(path.join(__dirname, '../../')), // root ionic-native BUILD_DIST_ROOT = path.resolve(ROOT, 'dist/@ionic-native'), // dist directory root path BUILD_CORE_DIST = path.resolve(BUILD_DIST_ROOT, 'core'); // core dist directory path + // dependency versions const ANGULAR_VERSION = '*', RXJS_VERSION = '^5.0.1', @@ -23,13 +24,13 @@ const ANGULAR_VERSION = '*', // package dependencies const CORE_PEER_DEPS = { - rxjs: RXJS_VERSION + 'rxjs': RXJS_VERSION }; const PLUGIN_PEER_DEPS = { '@ionic-native/core': MIN_CORE_VERSION, '@angular/core': ANGULAR_VERSION, - rxjs: RXJS_VERSION + 'rxjs': RXJS_VERSION }; // set peer dependencies for all plugins @@ -43,10 +44,8 @@ fs.mkdirpSync(BUILD_TMP); console.log('Preparing core module package.json'); CORE_PACKAGE_JSON.version = IONIC_NATIVE_VERSION; CORE_PACKAGE_JSON.peerDependencies = CORE_PEER_DEPS; -fs.writeJsonSync( - path.resolve(BUILD_CORE_DIST, 'package.json'), - CORE_PACKAGE_JSON -); +fs.writeJsonSync(path.resolve(BUILD_CORE_DIST, 'package.json'), CORE_PACKAGE_JSON); + // Fetch a list of the plugins const PLUGINS = fs.readdirSync(PLUGINS_PATH); @@ -60,9 +59,7 @@ const index = pluginsToBuild.indexOf('ignore-errors'); if (index > -1) { ignoreErrors = true; pluginsToBuild.splice(index, 1); - console.log( - 'Build will continue even if errors were thrown. Errors will be printed when build finishes.' - ); + console.log('Build will continue even if errors were thrown. Errors will be printed when build finishes.'); } if (!pluginsToBuild.length) { @@ -74,9 +71,12 @@ const QUEUE = queue({ concurrency: require('os').cpus().length }); + // Function to process a single plugin const addPluginToQueue = pluginName => { - QUEUE.push(callback => { + + QUEUE.push((callback) => { + console.log(`Building plugin: ${pluginName}`); const PLUGIN_BUILD_DIR = path.resolve(BUILD_TMP, 'plugins', pluginName), @@ -84,10 +84,10 @@ const addPluginToQueue = pluginName => { let tsConfigPath; - fs - .mkdirs(PLUGIN_BUILD_DIR) // create tmp build dir - .then(() => fs.mkdirs(path.resolve(BUILD_DIST_ROOT, pluginName))) // create dist dir + fs.mkdirpAsync(PLUGIN_BUILD_DIR) // create tmp build dir + .then(() => fs.mkdirpAsync(path.resolve(BUILD_DIST_ROOT, pluginName))) // create dist dir .then(() => { + // Write tsconfig.json const tsConfig = JSON.parse(JSON.stringify(PLUGIN_TS_CONFIG)); tsConfig.files = [PLUGIN_SRC_PATH]; @@ -95,7 +95,7 @@ const addPluginToQueue = pluginName => { tsConfigPath = path.resolve(PLUGIN_BUILD_DIR, 'tsconfig.json'); - return fs.writeJson(tsConfigPath, tsConfig); + return fs.writeJsonAsync(tsConfigPath, tsConfig); }) .then(() => { // clone package.json @@ -104,39 +104,42 @@ const addPluginToQueue = pluginName => { packageJson.name = `@ionic-native/${pluginName}`; packageJson.version = IONIC_NATIVE_VERSION; - return fs.writeJson( - path.resolve(BUILD_DIST_ROOT, pluginName, 'package.json'), - packageJson - ); + return fs.writeJsonAsync(path.resolve(BUILD_DIST_ROOT, pluginName, 'package.json'), packageJson); }) .then(() => { + // compile the plugin - exec( - `${ROOT}/node_modules/.bin/ngc -p ${tsConfigPath}`, - (err, stdout, stderr) => { - if (err) { - if (!ignoreErrors) { - // oops! something went wrong. - console.log(err); - callback(`\n\nBuilding ${pluginName} failed.`); - return; - } else { - errors.push(err); - } + exec(`${ROOT}/node_modules/.bin/ngc -p ${tsConfigPath}`, (err, stdout, stderr) => { + + if (err) { + + if (!ignoreErrors) { + // oops! something went wrong. + console.log(err); + callback(`\n\nBuilding ${pluginName} failed.`); + return; + } else { + errors.push(err); } - // we're done with this plugin! - callback(); } - ); + + // we're done with this plugin! + callback(); + + }); + }) .catch(callback); + }); // QUEUE.push end + }; pluginsToBuild.forEach(addPluginToQueue); -QUEUE.start(err => { +QUEUE.start((err) => { + if (err) { console.log('Error building plugins.'); console.log(err); @@ -152,4 +155,5 @@ QUEUE.start(err => { } else { console.log('Done processing plugins!'); } + }); diff --git a/scripts/build/publish.js b/scripts/build/publish.js index bf7560c15..184dda82d 100644 --- a/scripts/build/publish.js +++ b/scripts/build/publish.js @@ -1,10 +1,11 @@ -'use strict'; +"use strict"; // Node module dependencies -const fs = require('fs-extra'), +const fs = require('fs-extra-promise').useFs(require('fs-extra')), queue = require('queue'), path = require('path'), exec = require('child-process-promise').exec; + const ROOT = path.resolve(path.join(__dirname, '../../')), DIST = path.resolve(ROOT, 'dist', '@ionic-native'); @@ -19,16 +20,15 @@ const QUEUE = queue({ }); PACKAGES.forEach(packageName => { + QUEUE.push(done => { + console.log(`Publishing @ionic-native/${packageName}`); const packagePath = path.resolve(DIST, packageName); exec(`npm publish ${packagePath} ${FLAGS}`) .then(() => done()) - .catch(e => { - if ( - e.stderr && - e.stderr.indexOf('previously published version') === -1 - ) { + .catch((e) => { + if (e.stderr && e.stderr.indexOf('previously published version') === -1) { failedPackages.push({ cmd: e.cmd, stderr: e.stderr @@ -36,10 +36,13 @@ PACKAGES.forEach(packageName => { } done(); }); + }); + }); -QUEUE.start(err => { +QUEUE.start((err) => { + if (err) { console.log('Error publishing ionic-native. ', err); } else if (failedPackages.length > 0) { @@ -48,4 +51,8 @@ QUEUE.start(err => { } else { console.log('Done publishing ionic-native!'); } + + + }); + diff --git a/scripts/docs/gulp-tasks.js b/scripts/docs/gulp-tasks.js index a7d3ed55d..81a10aa45 100644 --- a/scripts/docs/gulp-tasks.js +++ b/scripts/docs/gulp-tasks.js @@ -1,40 +1,39 @@ -'use strict'; +"use strict"; const config = require('../config.json'), projectPackage = require('../../package.json'), path = require('path'), - fs = require('fs-extra'), + fs = require('fs-extra-promise').useFs(require('fs-extra')), Dgeni = require('dgeni'); module.exports = gulp => { gulp.task('docs', [], () => { + try { + const ionicPackage = require('./dgeni-config')(projectPackage.version), dgeni = new Dgeni([ionicPackage]); - return dgeni - .generate() - .then(docs => console.log(docs.length + ' docs generated')); + return dgeni.generate().then(docs => console.log(docs.length + ' docs generated')); + } catch (err) { console.log(err.stack); } + }); gulp.task('readmes', [], function() { - fs.copySync( - path.resolve(__dirname, '..', '..', 'README.md'), - path.resolve(__dirname, '..', '..', config.pluginDir, 'core', 'README.md') - ); + + fs.copySync(path.resolve(__dirname, '..', '..', 'README.md'), path.resolve(__dirname, '..', '..', config.pluginDir, 'core', 'README.md')); try { - const ionicPackage = require('./dgeni-readmes-config')( - projectPackage.version - ), + + const ionicPackage = require('./dgeni-readmes-config')(projectPackage.version), dgeni = new Dgeni([ionicPackage]); - return dgeni - .generate() - .then(docs => console.log(docs.length + ' README files generated')); + return dgeni.generate().then(docs => console.log(docs.length + ' README files generated')); + } catch (err) { console.log(err.stack); } + }); }; diff --git a/src/@ionic-native/core/bootstrap.ts b/src/@ionic-native/core/bootstrap.ts index 8f590d1cd..09ac37f15 100644 --- a/src/@ionic-native/core/bootstrap.ts +++ b/src/@ionic-native/core/bootstrap.ts @@ -9,17 +9,13 @@ export function checkReady() { let didFireReady = false; document.addEventListener('deviceready', () => { - console.log( - `Ionic Native: deviceready event fired after ${Date.now() - before} ms` - ); + console.log(`Ionic Native: deviceready event fired after ${(Date.now() - before)} ms`); didFireReady = true; }); setTimeout(() => { if (!didFireReady && !!window.cordova) { - console.warn( - `Ionic Native: deviceready did not fire within ${DEVICE_READY_TIMEOUT}ms. This can happen when plugins are in an inconsistent state. Try removing plugins from plugins/ and reinstalling them.` - ); + console.warn(`Ionic Native: deviceready did not fire within ${DEVICE_READY_TIMEOUT}ms. This can happen when plugins are in an inconsistent state. Try removing plugins from plugins/ and reinstalling them.`); } }, DEVICE_READY_TIMEOUT); } diff --git a/src/@ionic-native/core/decorators.spec.ts b/src/@ionic-native/core/decorators.spec.ts index b8a8e97a2..534a135f8 100644 --- a/src/@ionic-native/core/decorators.spec.ts +++ b/src/@ionic-native/core/decorators.spec.ts @@ -1,34 +1,24 @@ import 'core-js'; - -import { Observable } from 'rxjs/Observable'; - -import { - Cordova, - CordovaCheck, - CordovaInstance, - CordovaProperty, - InstanceProperty, - Plugin -} from './decorators'; +import { Plugin, Cordova, CordovaProperty, CordovaCheck, CordovaInstance, InstanceProperty } from './decorators'; import { IonicNativePlugin } from './ionic-native-plugin'; import { ERR_CORDOVA_NOT_AVAILABLE, ERR_PLUGIN_NOT_INSTALLED } from './plugin'; +import { Observable } from 'rxjs/Observable'; declare const window: any; class TestObject { + constructor(public _objectInstance: any) {} - @InstanceProperty name: string; + @InstanceProperty + name: string; @CordovaInstance({ sync: true }) - pingSync(): string { - return; - } + pingSync(): string { return; } @CordovaInstance() - ping(): Promise { - return; - } + ping(): Promise { return; } + } @Plugin({ @@ -39,17 +29,15 @@ class TestObject { platforms: ['Android', 'iOS'] }) class TestPlugin extends IonicNativePlugin { - @CordovaProperty name: string; + + @CordovaProperty + name: string; @Cordova({ sync: true }) - pingSync(): string { - return; - } + pingSync(): string { return; } @Cordova() - ping(): Promise { - return; - } + ping(): Promise { return; } @CordovaCheck() customPing(): Promise { @@ -63,17 +51,14 @@ class TestPlugin extends IonicNativePlugin { @Cordova({ destruct: true }) - destructPromise(): Promise { - return; - } + destructPromise(): Promise { return; } @Cordova({ destruct: true, observable: true }) - destructObservable(): Observable { - return; - } + destructObservable(): Observable { return; } + } function definePlugin() { @@ -93,6 +78,7 @@ function definePlugin() { } describe('Regular Decorators', () => { + let plugin: TestPlugin; beforeEach(() => { @@ -101,6 +87,7 @@ describe('Regular Decorators', () => { }); describe('Plugin', () => { + it('should set pluginName', () => { expect(TestPlugin.getPluginName()).toEqual('TestPlugin'); }); @@ -116,16 +103,17 @@ describe('Regular Decorators', () => { it('should return supported platforms', () => { expect(TestPlugin.getSupportedPlatforms()).toEqual(['Android', 'iOS']); }); + }); describe('Cordova', () => { + it('should do a sync function', () => { expect(plugin.pingSync()).toEqual('pong'); }); it('should do an async function', (done: Function) => { - plugin - .ping() + plugin.ping() .then(res => { expect(res).toEqual('pong'); done(); @@ -137,31 +125,39 @@ describe('Regular Decorators', () => { }); it('should throw plugin_not_installed error', (done: Function) => { + delete window.testPlugin; window.cordova = true; expect(plugin.pingSync()).toEqual(ERR_PLUGIN_NOT_INSTALLED); - plugin.ping().catch(e => { - expect(e).toEqual(ERR_PLUGIN_NOT_INSTALLED.error); - delete window.cordova; - done(); - }); + plugin.ping() + .catch(e => { + expect(e).toEqual(ERR_PLUGIN_NOT_INSTALLED.error); + delete window.cordova; + done(); + }); + }); it('should throw cordova_not_available error', (done: Function) => { + delete window.testPlugin; expect(plugin.pingSync()).toEqual(ERR_CORDOVA_NOT_AVAILABLE); - plugin.ping().catch(e => { - expect(e).toEqual(ERR_CORDOVA_NOT_AVAILABLE.error); - done(); - }); + plugin.ping() + .catch(e => { + expect(e).toEqual(ERR_CORDOVA_NOT_AVAILABLE.error); + done(); + }); + }); + }); describe('CordovaProperty', () => { + it('should return property value', () => { expect(plugin.name).toEqual('John Smith'); }); @@ -170,47 +166,61 @@ describe('Regular Decorators', () => { plugin.name = 'value2'; expect(plugin.name).toEqual('value2'); }); + }); describe('CordovaCheck', () => { - it('should run the method when plugin exists', done => { - plugin.customPing().then(res => { - expect(res).toEqual('pong'); - done(); - }); + + it('should run the method when plugin exists', (done) => { + plugin.customPing() + .then(res => { + expect(res).toEqual('pong'); + done(); + }); }); - it('shouldnt run the method when plugin doesnt exist', done => { + it('shouldnt run the method when plugin doesnt exist', (done) => { delete window.testPlugin; window.cordova = true; - plugin.customPing().catch(e => { - expect(e).toEqual(ERR_PLUGIN_NOT_INSTALLED.error); - done(); - }); + plugin.customPing() + .catch(e => { + expect(e).toEqual(ERR_PLUGIN_NOT_INSTALLED.error); + done(); + }); }); + }); describe('CordovaOptions', () => { + describe('destruct', () => { - it('should destruct values returned by a Promise', done => { - plugin.destructPromise().then((args: any[]) => { - expect(args).toEqual(['hello', 'world']); - done(); - }); + + it('should destruct values returned by a Promise', (done) => { + plugin.destructPromise() + .then((args: any[]) => { + expect(args).toEqual(['hello', 'world']); + done(); + }); }); - it('should destruct values returned by an Observable', done => { - plugin.destructObservable().subscribe((args: any[]) => { - expect(args).toEqual(['hello', 'world']); - done(); - }); + it('should destruct values returned by an Observable', (done) => { + plugin.destructObservable() + .subscribe((args: any[]) => { + expect(args).toEqual(['hello', 'world']); + done(); + }); }); + }); + }); + }); describe('Instance Decorators', () => { - let instance: TestObject, plugin: TestPlugin; + + let instance: TestObject, + plugin: TestPlugin; beforeEach(() => { definePlugin(); @@ -218,14 +228,20 @@ describe('Instance Decorators', () => { instance = plugin.create(); }); - describe('Instance plugin', () => {}); + describe('Instance plugin', () => { + + + + }); describe('CordovaInstance', () => { - it('should call instance async method', done => { - instance.ping().then(r => { - expect(r).toEqual('pong'); - done(); - }); + + it('should call instance async method', (done) => { + instance.ping() + .then(r => { + expect(r).toEqual('pong'); + done(); + }); }); it('should call instance sync method', () => { @@ -233,16 +249,18 @@ describe('Instance Decorators', () => { }); it('shouldnt call instance method when _objectInstance is undefined', () => { + delete instance._objectInstance; - instance - .ping() + instance.ping() .then(r => { expect(r).toBeUndefined(); }) .catch(e => { expect(e).toBeUndefined(); }); + }); + }); describe('InstanceProperty', () => { @@ -255,4 +273,5 @@ describe('Instance Decorators', () => { expect(instance.name).toEqual('John Cena'); }); }); + }); diff --git a/src/@ionic-native/core/decorators.ts b/src/@ionic-native/core/decorators.ts index d283aa3a3..0a99c3704 100644 --- a/src/@ionic-native/core/decorators.ts +++ b/src/@ionic-native/core/decorators.ts @@ -1,15 +1,7 @@ -import 'rxjs/observable/throw'; - -import { Observable } from 'rxjs/Observable'; - -import { - checkAvailability, - instanceAvailability, - overrideFunction, - wrap, - wrapInstance -} from './plugin'; +import { instanceAvailability, checkAvailability, wrap, wrapInstance, overrideFunction } from './plugin'; import { getPlugin, getPromise } from './util'; +import { Observable } from 'rxjs/Observable'; +import 'rxjs/observable/throw'; export interface PluginConfig { /** @@ -117,23 +109,21 @@ export interface CordovaCheckOptions { * @private */ export function InstanceCheck(opts: CordovaCheckOptions = {}) { - return ( - pluginObj: Object, - methodName: string, - descriptor: TypedPropertyDescriptor - ): TypedPropertyDescriptor => { + return (pluginObj: Object, methodName: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor => { return { value: function(...args: any[]): any { if (instanceAvailability(this)) { return descriptor.value.apply(this, args); } else { + if (opts.sync) { return; } else if (opts.observable) { - return new Observable(() => {}); + return new Observable(() => { }); } - return getPromise(() => {}); + return getPromise(() => { }); + } }, enumerable: true @@ -146,11 +136,7 @@ export function InstanceCheck(opts: CordovaCheckOptions = {}) { * @private */ export function CordovaCheck(opts: CordovaCheckOptions = {}) { - return ( - pluginObj: Object, - methodName: string, - descriptor: TypedPropertyDescriptor - ): TypedPropertyDescriptor => { + return (pluginObj: Object, methodName: string, descriptor: TypedPropertyDescriptor): TypedPropertyDescriptor => { return { value: function(...args: any[]): any { const check = checkAvailability(pluginObj); @@ -191,6 +177,7 @@ export function CordovaCheck(opts: CordovaCheckOptions = {}) { */ export function Plugin(config: PluginConfig): ClassDecorator { return function(cls: any) { + // Add these fields to the class for (let prop in config) { cls[prop] = config[prop]; @@ -239,11 +226,7 @@ export function Plugin(config: PluginConfig): ClassDecorator { * and the required plugin are installed. */ export function Cordova(opts: CordovaOptions = {}) { - return ( - target: Object, - methodName: string, - descriptor: TypedPropertyDescriptor - ) => { + return (target: Object, methodName: string, descriptor: TypedPropertyDescriptor) => { return { value: function(...args: any[]) { return wrap(this, methodName, opts).apply(this, args); @@ -285,7 +268,7 @@ export function CordovaProperty(target: any, key: string) { return null; } }, - set: value => { + set: (value) => { if (checkAvailability(target, key) === true) { getPlugin(target.constructor.getPluginRef())[key] = value; } @@ -318,11 +301,7 @@ export function InstanceProperty(target: any, key: string) { * and the required plugin are installed. */ export function CordovaFunctionOverride(opts: any = {}) { - return ( - target: Object, - methodName: string, - descriptor: TypedPropertyDescriptor - ) => { + return (target: Object, methodName: string, descriptor: TypedPropertyDescriptor) => { return { value: function(...args: any[]) { return overrideFunction(this, methodName, opts); @@ -331,3 +310,4 @@ export function CordovaFunctionOverride(opts: any = {}) { }; }; } + diff --git a/src/@ionic-native/core/ionic-native-plugin.spec.ts b/src/@ionic-native/core/ionic-native-plugin.spec.ts index 9837ffb1b..69df51ce8 100644 --- a/src/@ionic-native/core/ionic-native-plugin.spec.ts +++ b/src/@ionic-native/core/ionic-native-plugin.spec.ts @@ -1,7 +1,8 @@ // This is to verify that new (FileTransfer.getPlugin)() works -import { CordovaInstance, Plugin } from './decorators'; -import { IonicNativePlugin } from './ionic-native-plugin'; + +import { Plugin, CordovaInstance } from './decorators'; import { checkAvailability } from './plugin'; +import { IonicNativePlugin } from './ionic-native-plugin'; class FT { hello(): string { @@ -20,13 +21,7 @@ class FT { export class FileTransfer extends IonicNativePlugin { create(): FileTransferObject { let instance: any; - if ( - checkAvailability( - FileTransfer.getPluginRef(), - null, - FileTransfer.getPluginName() - ) === true - ) { + if (checkAvailability(FileTransfer.getPluginRef(), null, FileTransfer.getPluginName()) === true) { instance = new (FileTransfer.getPlugin())(); } return new FileTransferObject(instance); @@ -34,21 +29,20 @@ export class FileTransfer extends IonicNativePlugin { } export class FileTransferObject { + constructor(public _objectInstance: any) { - console.info( - 'Creating a new FileTransferObject with instance: ', - _objectInstance - ); + console.info('Creating a new FileTransferObject with instance: ', _objectInstance); } @CordovaInstance({ sync: true }) - hello(): string { - return; - } + hello(): string { return; } + } describe('Mock FileTransfer Plugin', () => { - let plugin: FileTransfer, instance: FileTransferObject; + + let plugin: FileTransfer, + instance: FileTransferObject; beforeAll(() => { plugin = new FileTransfer(); @@ -71,4 +65,5 @@ describe('Mock FileTransfer Plugin', () => { console.info('instance hello is', instance.hello()); expect(instance.hello()).toEqual('world'); }); + }); diff --git a/src/@ionic-native/core/ionic-native-plugin.ts b/src/@ionic-native/core/ionic-native-plugin.ts index f1660ae00..ed62979b3 100644 --- a/src/@ionic-native/core/ionic-native-plugin.ts +++ b/src/@ionic-native/core/ionic-native-plugin.ts @@ -1,4 +1,5 @@ export class IonicNativePlugin { + static pluginName: string; static pluginRef: string; @@ -15,40 +16,31 @@ export class IonicNativePlugin { * Returns a boolean that indicates whether the plugin is installed * @return {boolean} */ - static installed(): boolean { - return false; - } + static installed(): boolean { return false; } /** * Returns the original plugin object */ - static getPlugin(): any {} + static getPlugin(): any { } /** * Returns the plugin's name */ - static getPluginName(): string { - return; - } + static getPluginName(): string { return; } /** * Returns the plugin's reference */ - static getPluginRef(): string { - return; - } + static getPluginRef(): string { return; } /** * Returns the plugin's install name */ - static getPluginInstallName(): string { - return; - } + static getPluginInstallName(): string { return; } /** * Returns the plugin's supported platforms */ - static getSupportedPlatforms(): string[] { - return; - } + static getSupportedPlatforms(): string[] { return; } + } diff --git a/src/@ionic-native/core/plugin.ts b/src/@ionic-native/core/plugin.ts index a86429100..4118e482e 100644 --- a/src/@ionic-native/core/plugin.ts +++ b/src/@ionic-native/core/plugin.ts @@ -1,10 +1,9 @@ -import 'rxjs/add/observable/fromEvent'; - -import { Observable } from 'rxjs/Observable'; - +import { getPlugin, getPromise, cordovaWarn, pluginWarn } from './util'; import { checkReady } from './bootstrap'; import { CordovaOptions } from './decorators'; -import { cordovaWarn, getPlugin, getPromise, pluginWarn } from './util'; + +import { Observable } from 'rxjs/Observable'; +import 'rxjs/add/observable/fromEvent'; checkReady(); @@ -14,26 +13,16 @@ checkReady(); export const ERR_CORDOVA_NOT_AVAILABLE = { error: 'cordova_not_available' }; export const ERR_PLUGIN_NOT_INSTALLED = { error: 'plugin_not_installed' }; + /** * Checks if plugin/cordova is available * @return {boolean | { error: string } } * @private */ -export function checkAvailability( - pluginRef: string, - methodName?: string, - pluginName?: string -): boolean | { error: string }; -export function checkAvailability( - pluginObj: any, - methodName?: string, - pluginName?: string -): boolean | { error: string }; -export function checkAvailability( - plugin: any, - methodName?: string, - pluginName?: string -): boolean | { error: string } { +export function checkAvailability(pluginRef: string, methodName?: string, pluginName?: string): boolean | { error: string }; +export function checkAvailability(pluginObj: any, methodName?: string, pluginName?: string): boolean | { error: string }; +export function checkAvailability(plugin: any, methodName?: string, pluginName?: string): boolean | { error: string } { + let pluginRef, pluginInstance, pluginPackage; if (typeof plugin === 'string') { @@ -46,10 +35,7 @@ export function checkAvailability( pluginInstance = getPlugin(pluginRef); - if ( - !pluginInstance || - (!!methodName && typeof pluginInstance[methodName] === 'undefined') - ) { + if (!pluginInstance || (!!methodName && typeof pluginInstance[methodName] === 'undefined')) { if (!window.cordova) { cordovaWarn(pluginName, methodName); return ERR_CORDOVA_NOT_AVAILABLE; @@ -66,23 +52,11 @@ export function checkAvailability( * Checks if _objectInstance exists and has the method/property * @private */ -export function instanceAvailability( - pluginObj: any, - methodName?: string -): boolean { - return ( - pluginObj._objectInstance && - (!methodName || - typeof pluginObj._objectInstance[methodName] !== 'undefined') - ); +export function instanceAvailability(pluginObj: any, methodName?: string): boolean { + return pluginObj._objectInstance && (!methodName || typeof pluginObj._objectInstance[methodName] !== 'undefined'); } -function setIndex( - args: any[], - opts: any = {}, - resolve?: Function, - reject?: Function -): any { +function setIndex(args: any[], opts: any = {}, resolve?: Function, reject?: Function): any { // ignore resolve and reject in case sync if (opts.sync) { return args; @@ -101,19 +75,12 @@ function setIndex( resolve(result); } }); - } else if ( - opts.callbackStyle === 'object' && - opts.successName && - opts.errorName - ) { + } else if (opts.callbackStyle === 'object' && opts.successName && opts.errorName) { let obj: any = {}; obj[opts.successName] = resolve; obj[opts.errorName] = reject; args.push(obj); - } else if ( - typeof opts.successIndex !== 'undefined' || - typeof opts.errorIndex !== 'undefined' - ) { + } else if (typeof opts.successIndex !== 'undefined' || typeof opts.errorIndex !== 'undefined') { const setSuccessIndex = () => { // If we've specified a success/error index if (opts.successIndex > args.length) { @@ -139,6 +106,8 @@ function setIndex( setSuccessIndex(); setErrorIndex(); } + + } else { // Otherwise, let's tack them on to the end of the argument list // which is 90% of cases @@ -148,14 +117,7 @@ function setIndex( return args; } -function callCordovaPlugin( - pluginObj: any, - methodName: string, - args: any[], - opts: any = {}, - resolve?: Function, - reject?: Function -) { +function callCordovaPlugin(pluginObj: any, methodName: string, args: any[], opts: any = {}, resolve?: Function, reject?: Function) { // Try to figure out where the success/error callbacks need to be bound // to our promise resolve/reject handlers. args = setIndex(args, opts, resolve, reject); @@ -168,34 +130,16 @@ function callCordovaPlugin( } else { return availabilityCheck; } + } -function wrapPromise( - pluginObj: any, - methodName: string, - args: any[], - opts: any = {} -) { +function wrapPromise(pluginObj: any, methodName: string, args: any[], opts: any = {}) { let pluginResult: any, rej: Function; const p = getPromise((resolve: Function, reject: Function) => { if (opts.destruct) { - pluginResult = callCordovaPlugin( - pluginObj, - methodName, - args, - opts, - (...args: any[]) => resolve(args), - (...args: any[]) => reject(args) - ); + pluginResult = callCordovaPlugin(pluginObj, methodName, args, opts, (...args: any[]) => resolve(args), (...args: any[]) => reject(args)); } else { - pluginResult = callCordovaPlugin( - pluginObj, - methodName, - args, - opts, - resolve, - reject - ); + pluginResult = callCordovaPlugin(pluginObj, methodName, args, opts, resolve, reject); } rej = reject; }); @@ -203,18 +147,13 @@ function wrapPromise( // a warning that Cordova is undefined or the plugin is uninstalled, so there is no reason // to error if (pluginResult && pluginResult.error) { - p.catch(() => {}); + p.catch(() => { }); typeof rej === 'function' && rej(pluginResult.error); } return p; } -function wrapOtherPromise( - pluginObj: any, - methodName: string, - args: any[], - opts: any = {} -) { +function wrapOtherPromise(pluginObj: any, methodName: string, args: any[], opts: any = {}) { return getPromise((resolve: Function, reject: Function) => { const pluginResult = callCordovaPlugin(pluginObj, methodName, args, opts); if (pluginResult) { @@ -229,33 +168,14 @@ function wrapOtherPromise( }); } -function wrapObservable( - pluginObj: any, - methodName: string, - args: any[], - opts: any = {} -) { +function wrapObservable(pluginObj: any, methodName: string, args: any[], opts: any = {}) { return new Observable(observer => { let pluginResult; if (opts.destruct) { - pluginResult = callCordovaPlugin( - pluginObj, - methodName, - args, - opts, - (...args: any[]) => observer.next(args), - (...args: any[]) => observer.error(args) - ); + pluginResult = callCordovaPlugin(pluginObj, methodName, args, opts, (...args: any[]) => observer.next(args), (...args: any[]) => observer.error(args)); } else { - pluginResult = callCordovaPlugin( - pluginObj, - methodName, - args, - opts, - observer.next.bind(observer), - observer.error.bind(observer) - ); + pluginResult = callCordovaPlugin(pluginObj, methodName, args, opts, observer.next.bind(observer), observer.error.bind(observer)); } if (pluginResult && pluginResult.error) { @@ -266,45 +186,26 @@ function wrapObservable( try { if (opts.clearFunction) { if (opts.clearWithArgs) { - return callCordovaPlugin( - pluginObj, - opts.clearFunction, - args, - opts, - observer.next.bind(observer), - observer.error.bind(observer) - ); + return callCordovaPlugin(pluginObj, opts.clearFunction, args, opts, observer.next.bind(observer), observer.error.bind(observer)); } return callCordovaPlugin(pluginObj, opts.clearFunction, []); } } catch (e) { - console.warn( - 'Unable to clear the previous observable watch for', - pluginObj.constructor.getPluginName(), - methodName - ); + console.warn('Unable to clear the previous observable watch for', pluginObj.constructor.getPluginName(), methodName); console.warn(e); } }; }); } -function callInstance( - pluginObj: any, - methodName: string, - args: any[], - opts: any = {}, - resolve?: Function, - reject?: Function -) { +function callInstance(pluginObj: any, methodName: string, args: any[], opts: any = {}, resolve?: Function, reject?: Function) { + args = setIndex(args, opts, resolve, reject); if (instanceAvailability(pluginObj, methodName)) { - return pluginObj._objectInstance[methodName].apply( - pluginObj._objectInstance, - args - ); + return pluginObj._objectInstance[methodName].apply(pluginObj._objectInstance, args); } + } /** @@ -314,10 +215,7 @@ function callInstance( * @param element The element to attach the event listener to * @returns {Observable} */ -export function wrapEventObservable( - event: string, - element: any = window -): Observable { +export function wrapEventObservable(event: string, element: any = window): Observable { return Observable.fromEvent(element, event); } @@ -329,38 +227,28 @@ export function wrapEventObservable( * does just this. * @private */ -export function overrideFunction( - pluginObj: any, - methodName: string, - args: any[], - opts: any = {} -): Observable { +export function overrideFunction(pluginObj: any, methodName: string, args: any[], opts: any = {}): Observable { return new Observable(observer => { - const availabilityCheck = checkAvailability( - pluginObj, - null, - pluginObj.constructor.getPluginName() - ); + + const availabilityCheck = checkAvailability(pluginObj, null, pluginObj.constructor.getPluginName()); if (availabilityCheck === true) { const pluginInstance = getPlugin(pluginObj.constructor.getPluginRef()); pluginInstance[methodName] = observer.next.bind(observer); - return () => (pluginInstance[methodName] = () => {}); + return () => pluginInstance[methodName] = () => { }; } else { observer.error(availabilityCheck); observer.complete(); } + }); } + /** * @private */ -export const wrap = function( - pluginObj: any, - methodName: string, - opts: CordovaOptions = {} -) { +export const wrap = function(pluginObj: any, methodName: string, opts: CordovaOptions = {}) { return (...args: any[]) => { if (opts.sync) { // Sync doesn't wrap the plugin with a promise or observable, it returns the result as-is @@ -380,36 +268,22 @@ export const wrap = function( /** * @private */ -export function wrapInstance( - pluginObj: any, - methodName: string, - opts: any = {} -) { +export function wrapInstance(pluginObj: any, methodName: string, opts: any = {}) { return (...args: any[]) => { if (opts.sync) { + return callInstance(pluginObj, methodName, args, opts); + } else if (opts.observable) { + return new Observable(observer => { + let pluginResult; if (opts.destruct) { - pluginResult = callInstance( - pluginObj, - methodName, - args, - opts, - (...args: any[]) => observer.next(args), - (...args: any[]) => observer.error(args) - ); + pluginResult = callInstance(pluginObj, methodName, args, opts, (...args: any[]) => observer.next(args), (...args: any[]) => observer.error(args)); } else { - pluginResult = callInstance( - pluginObj, - methodName, - args, - opts, - observer.next.bind(observer), - observer.error.bind(observer) - ); + pluginResult = callInstance(pluginObj, methodName, args, opts, observer.next.bind(observer), observer.error.bind(observer)); } if (pluginResult && pluginResult.error) { @@ -420,47 +294,23 @@ export function wrapInstance( return () => { try { if (opts.clearWithArgs) { - return callInstance( - pluginObj, - opts.clearFunction, - args, - opts, - observer.next.bind(observer), - observer.error.bind(observer) - ); + return callInstance(pluginObj, opts.clearFunction, args, opts, observer.next.bind(observer), observer.error.bind(observer)); } return callInstance(pluginObj, opts.clearFunction, []); } catch (e) { - console.warn( - 'Unable to clear the previous observable watch for', - pluginObj.constructor.getPluginName(), - methodName - ); + console.warn('Unable to clear the previous observable watch for', pluginObj.constructor.getPluginName(), methodName); console.warn(e); } }; }); + } else if (opts.otherPromise) { return getPromise((resolve: Function, reject: Function) => { let result; if (opts.destruct) { - result = callInstance( - pluginObj, - methodName, - args, - opts, - (...args: any[]) => resolve(args), - (...args: any[]) => reject(args) - ); + result = callInstance(pluginObj, methodName, args, opts, (...args: any[]) => resolve(args), (...args: any[]) => reject(args)); } else { - result = callInstance( - pluginObj, - methodName, - args, - opts, - resolve, - reject - ); + result = callInstance(pluginObj, methodName, args, opts, resolve, reject); } if (result && !!result.then) { result.then(resolve, reject); @@ -468,27 +318,14 @@ export function wrapInstance( reject(); } }); + } else { let pluginResult: any, rej: Function; const p = getPromise((resolve: Function, reject: Function) => { if (opts.destruct) { - pluginResult = callInstance( - pluginObj, - methodName, - args, - opts, - (...args: any[]) => resolve(args), - (...args: any[]) => reject(args) - ); + pluginResult = callInstance(pluginObj, methodName, args, opts, (...args: any[]) => resolve(args), (...args: any[]) => reject(args)); } else { - pluginResult = callInstance( - pluginObj, - methodName, - args, - opts, - resolve, - reject - ); + pluginResult = callInstance(pluginObj, methodName, args, opts, resolve, reject); } rej = reject; }); @@ -496,10 +333,12 @@ export function wrapInstance( // a warning that Cordova is undefined or the plugin is uninstalled, so there is no reason // to error if (pluginResult && pluginResult.error) { - p.catch(() => {}); + p.catch(() => { }); typeof rej === 'function' && rej(pluginResult.error); } return p; + + } }; } diff --git a/src/@ionic-native/core/util.ts b/src/@ionic-native/core/util.ts index 93d6754b7..eddedaaaa 100644 --- a/src/@ionic-native/core/util.ts +++ b/src/@ionic-native/core/util.ts @@ -7,27 +7,25 @@ export const get = (element: Element | Window, path: string): any => { const paths: string[] = path.split('.'); let obj: any = element; for (let i: number = 0; i < paths.length; i++) { - if (!obj) { - return null; - } + if (!obj) { return null; } obj = obj[paths[i]]; } return obj; }; + /** * @private */ export const getPromise = (callback: Function): Promise => { + const tryNativePromise = () => { if (window.Promise) { return new Promise((resolve, reject) => { callback(resolve, reject); }); } else { - console.error( - 'No Promise support or polyfill found. To enable Ionic Native support, please add the es6-promise polyfill before this script, or run with a library like Angular or on a recent browser.' - ); + console.error('No Promise support or polyfill found. To enable Ionic Native support, please add the es6-promise polyfill before this script, or run with a library like Angular or on a recent browser.'); } }; @@ -46,24 +44,14 @@ export const getPlugin = (pluginRef: string): any => { /** * @private */ -export const pluginWarn = ( - pluginName: string, - plugin?: string, - method?: string -): void => { +export const pluginWarn = (pluginName: string, plugin?: string, method?: string): void => { if (method) { - console.warn( - `Native: tried calling ${pluginName}.${method}, but the ${pluginName} plugin is not installed.` - ); + console.warn('Native: tried calling ' + pluginName + '.' + method + ', but the ' + pluginName + ' plugin is not installed.'); } else { - console.warn( - `Native: tried accessing the ${pluginName} plugin but it's not installed.` - ); + console.warn('Native: tried accessing the ' + pluginName + ' plugin but it\'s not installed.'); } if (plugin) { - console.warn( - `Install the ${pluginName} plugin: 'ionic cordova plugin add ${plugin}'` - ); + console.warn('Install the ' + pluginName + ' plugin: \'ionic cordova plugin add ' + plugin + '\''); } }; @@ -74,12 +62,8 @@ export const pluginWarn = ( */ export const cordovaWarn = (pluginName: string, method?: string): void => { if (method) { - console.warn( - `Native: tried calling ${pluginName}.${method}, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator` - ); + console.warn('Native: tried calling ' + pluginName + '.' + method + ', but Cordova is not available. Make sure to include cordova.js or run in a device/simulator'); } else { - console.warn( - `Native: tried accessing the ${pluginName} plugin but Cordova is not available. Make sure to include cordova.js or run in a device/simulator` - ); + console.warn('Native: tried accessing the ' + pluginName + ' plugin but Cordova is not available. Make sure to include cordova.js or run in a device/simulator'); } }; diff --git a/src/@ionic-native/plugins/action-sheet/index.ts b/src/@ionic-native/plugins/action-sheet/index.ts index ece9808c0..5273f8d0c 100644 --- a/src/@ionic-native/plugins/action-sheet/index.ts +++ b/src/@ionic-native/plugins/action-sheet/index.ts @@ -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 ActionSheetOptions { + /** * The labels for the buttons. Uses the index x */ @@ -97,6 +98,7 @@ export interface ActionSheetOptions { }) @Injectable() export class ActionSheet extends IonicNativePlugin { + /** * Convenience property to select an Android theme value */ @@ -121,16 +123,13 @@ export class ActionSheet extends IonicNativePlugin { * button pressed (1 based, so 1, 2, 3, etc.) */ @Cordova() - show(options?: ActionSheetOptions): Promise { - return; - } + show(options?: ActionSheetOptions): Promise { return; } + /** * Progamtically hide the native ActionSheet * @returns {Promise} Returns a Promise that resolves when the actionsheet is closed */ @Cordova() - hide(options?: any): Promise { - return; - } + hide(options?: any): Promise { return; } } diff --git a/src/@ionic-native/plugins/admob-free/index.ts b/src/@ionic-native/plugins/admob-free/index.ts index 8df51ec5e..bcd059b3d 100644 --- a/src/@ionic-native/plugins/admob-free/index.ts +++ b/src/@ionic-native/plugins/admob-free/index.ts @@ -1,8 +1,7 @@ -import 'rxjs/add/observable/fromEvent'; - +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; +import 'rxjs/add/observable/fromEvent'; export interface AdMobFreeBannerConfig { /** @@ -115,6 +114,7 @@ export interface AdMobFreeRewardVideoConfig { }) @Injectable() export class AdMobFree extends IonicNativePlugin { + /** * Convenience object to get event names * @type {Object} @@ -167,6 +167,7 @@ export class AdMobFree extends IonicNativePlugin { * @type {AdMobFreeRewardVideo} */ rewardVideo: AdMobFreeRewardVideo = new AdMobFreeRewardVideo(); + } /** @@ -175,54 +176,46 @@ export class AdMobFree extends IonicNativePlugin { @Plugin({ pluginName: 'AdMobFree', plugin: 'cordova-plugin-admob-free', - pluginRef: 'admob.banner' + pluginRef: 'admob.banner', }) export class AdMobFreeBanner { + /** * Update config. * @param options * @return {AdMobFreeBannerConfig} */ @Cordova({ sync: true }) - config(options: AdMobFreeBannerConfig): AdMobFreeBannerConfig { - return; - } + config(options: AdMobFreeBannerConfig): AdMobFreeBannerConfig { return; } /** * Hide the banner. * @return {Promise} */ @Cordova({ otherPromise: true }) - hide(): Promise { - return; - } + hide(): Promise { return; } /** * Create banner. * @return {Promise} */ @Cordova({ otherPromise: true }) - prepare(): Promise { - return; - } + prepare(): Promise { return; } /** * Remove the banner. * @return {Promise} */ @Cordova({ otherPromise: true }) - remove(): Promise { - return; - } + remove(): Promise { return; } /** * Show the banner. * @return {Promise} */ @Cordova({ otherPromise: true }) - show(): Promise { - return; - } + show(): Promise { return; } + } /** @@ -231,45 +224,39 @@ export class AdMobFreeBanner { @Plugin({ pluginName: 'AdMobFree', plugin: 'cordova-plugin-admob-free', - pluginRef: 'admob.interstitial' + pluginRef: 'admob.interstitial', }) export class AdMobFreeInterstitial { + /** * Update config. * @param options * @return {AdMobFreeInterstitialConfig} */ @Cordova({ sync: true }) - config(options: AdMobFreeInterstitialConfig): AdMobFreeInterstitialConfig { - return; - } + config(options: AdMobFreeInterstitialConfig): AdMobFreeInterstitialConfig { return; } /** * Check if interstitial is ready * @return {Promise} */ @Cordova({ otherPromise: true }) - isReady(): Promise { - return; - } + isReady(): Promise { return; } /** * Prepare interstitial * @return {Promise} */ @Cordova({ otherPromise: true }) - prepare(): Promise { - return; - } + prepare(): Promise { return; } /** * Show the interstitial * @return {Promise} */ @Cordova({ otherPromise: true }) - show(): Promise { - return; - } + show(): Promise { return; } + } /** @@ -278,43 +265,37 @@ export class AdMobFreeInterstitial { @Plugin({ pluginName: 'AdMobFree', plugin: 'cordova-plugin-admob-free', - pluginRef: 'admob.rewardvideo' + pluginRef: 'admob.rewardvideo', }) export class AdMobFreeRewardVideo { + /** * Update config. * @param options * @return {AdMobFreeRewardVideoConfig} */ @Cordova({ sync: true }) - config(options: AdMobFreeRewardVideoConfig): AdMobFreeRewardVideoConfig { - return; - } + config(options: AdMobFreeRewardVideoConfig): AdMobFreeRewardVideoConfig { return; } /** * Check if reward video is ready * @return {Promise} */ @Cordova({ otherPromise: true }) - isReady(): Promise { - return; - } + isReady(): Promise { return; } /** * Prepare reward video * @return {Promise} */ @Cordova({ otherPromise: true }) - prepare(): Promise { - return; - } + prepare(): Promise { return; } /** * Show the reward video * @return {Promise} */ @Cordova({ otherPromise: true }) - show(): Promise { - return; - } + show(): Promise { return; } + } diff --git a/src/@ionic-native/plugins/admob-pro/index.ts b/src/@ionic-native/plugins/admob-pro/index.ts index 450e7b5f6..ad9c66b1d 100644 --- a/src/@ionic-native/plugins/admob-pro/index.ts +++ b/src/@ionic-native/plugins/admob-pro/index.ts @@ -1,17 +1,11 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; -export type AdSize = - | 'SMART_BANNER' - | 'BANNER' - | 'MEDIUM_RECTANGLE' - | 'FULL_BANNER' - | 'LEADERBOARD' - | 'SKYSCRAPER' - | 'CUSTOM'; +export type AdSize = 'SMART_BANNER' | 'BANNER' | 'MEDIUM_RECTANGLE' | 'FULL_BANNER' | 'LEADERBOARD' | 'SKYSCRAPER' | 'CUSTOM'; export interface AdMobOptions { + /** * Banner ad ID */ @@ -76,9 +70,11 @@ export interface AdMobOptions { * License key for the plugin */ license?: any; + } export interface AdExtras { + color_bg: string; color_bg_top: string; @@ -90,6 +86,7 @@ export interface AdExtras { color_text: string; color_url: string; + } /** @@ -137,6 +134,7 @@ export interface AdExtras { }) @Injectable() export class AdMobPro extends IonicNativePlugin { + AD_POSITION: { NO_CHANGE: number; TOP_LEFT: number; @@ -169,9 +167,7 @@ export class AdMobPro extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves when the banner is created */ @Cordova() - createBanner(adIdOrOptions: string | AdMobOptions): Promise { - return; - } + createBanner(adIdOrOptions: string | AdMobOptions): Promise { return; } /** * Destroy the banner, remove it from screen. @@ -179,7 +175,7 @@ export class AdMobPro extends IonicNativePlugin { @Cordova({ sync: true }) - removeBanner(): void {} + removeBanner(): void { } /** * Show banner at position @@ -188,7 +184,7 @@ export class AdMobPro extends IonicNativePlugin { @Cordova({ sync: true }) - showBanner(position: number): void {} + showBanner(position: number): void { } /** * Show banner at custom position @@ -198,7 +194,7 @@ export class AdMobPro extends IonicNativePlugin { @Cordova({ sync: true }) - showBannerAtXY(x: number, y: number): void {} + showBannerAtXY(x: number, y: number): void { } /** * Hide the banner, remove it from screen, but can show it later @@ -206,7 +202,7 @@ export class AdMobPro extends IonicNativePlugin { @Cordova({ sync: true }) - hideBanner(): void {} + hideBanner(): void { } /** * Prepare interstitial banner @@ -214,9 +210,7 @@ export class AdMobPro extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves when interstitial is prepared */ @Cordova() - prepareInterstitial(adIdOrOptions: string | AdMobOptions): Promise { - return; - } + prepareInterstitial(adIdOrOptions: string | AdMobOptions): Promise { return; } /** * Show interstitial ad when it's ready @@ -224,7 +218,7 @@ export class AdMobPro extends IonicNativePlugin { @Cordova({ sync: true }) - showInterstitial(): void {} + showInterstitial(): void { } /** * Prepare a reward video ad @@ -232,9 +226,7 @@ export class AdMobPro extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves when the ad is prepared */ @Cordova() - prepareRewardVideoAd(adIdOrOptions: string | AdMobOptions): Promise { - return; - } + prepareRewardVideoAd(adIdOrOptions: string | AdMobOptions): Promise { return; } /** * Show a reward video ad @@ -242,7 +234,7 @@ export class AdMobPro extends IonicNativePlugin { @Cordova({ sync: true }) - showRewardVideoAd(): void {} + showRewardVideoAd(): void { } /** * Sets the values for configuration and targeting @@ -250,18 +242,14 @@ export class AdMobPro extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves when the options have been set */ @Cordova() - setOptions(options: AdMobOptions): Promise { - return; - } + setOptions(options: AdMobOptions): Promise { return; } /** * Get user ad settings * @returns {Promise} Returns a promise that resolves with the ad settings */ @Cordova() - getAdSettings(): Promise { - return; - } + getAdSettings(): Promise { return; } /** * Triggered when failed to receive Ad @@ -272,9 +260,7 @@ export class AdMobPro extends IonicNativePlugin { event: 'onAdFailLoad', element: document }) - onAdFailLoad(): Observable { - return; - } + onAdFailLoad(): Observable { return; } /** * Triggered when Ad received @@ -285,9 +271,7 @@ export class AdMobPro extends IonicNativePlugin { event: 'onAdLoaded', element: document }) - onAdLoaded(): Observable { - return; - } + onAdLoaded(): Observable { return; } /** * Triggered when Ad will be showed on screen @@ -298,9 +282,7 @@ export class AdMobPro extends IonicNativePlugin { event: 'onAdPresent', element: document }) - onAdPresent(): Observable { - return; - } + onAdPresent(): Observable { return; } /** * Triggered when user click the Ad, and will jump out of your App @@ -311,9 +293,7 @@ export class AdMobPro extends IonicNativePlugin { event: 'onAdLeaveApp', element: document }) - onAdLeaveApp(): Observable { - return; - } + onAdLeaveApp(): Observable { return; } /** * Triggered when dismiss the Ad and back to your App @@ -324,7 +304,6 @@ export class AdMobPro extends IonicNativePlugin { event: 'onAdDismiss', element: document }) - onAdDismiss(): Observable { - return; - } + onAdDismiss(): Observable { return; } + } diff --git a/src/@ionic-native/plugins/alipay/index.ts b/src/@ionic-native/plugins/alipay/index.ts index f44f6c1ed..c0e517e61 100644 --- a/src/@ionic-native/plugins/alipay/index.ts +++ b/src/@ionic-native/plugins/alipay/index.ts @@ -1,5 +1,7 @@ +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; + + export interface AlipayOrder { /** @@ -99,8 +101,7 @@ export interface AlipayOrder { plugin: 'cordova-alipay-base', pluginRef: 'Alipay.Base', repo: 'https://github.com/xueron/cordova-alipay-base', - install: - 'ionic cordova plugin add cordova-alipay-base --variable ALI_PID=your_app_id', + install: 'ionic cordova plugin add cordova-alipay-base --variable ALI_PID=your_app_id', installVariables: ['ALI_PID'], platforms: ['Android', 'iOS'] }) @@ -112,7 +113,5 @@ export class Alipay extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with the success return, or rejects with an error. */ @Cordova() - pay(order: AlipayOrder | string): Promise { - return; - } + pay(order: AlipayOrder | string): Promise { return; } } diff --git a/src/@ionic-native/plugins/android-exoplayer/index.ts b/src/@ionic-native/plugins/android-exoplayer/index.ts index 53f751098..26fe48831 100644 --- a/src/@ionic-native/plugins/android-exoplayer/index.ts +++ b/src/@ionic-native/plugins/android-exoplayer/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export type AndroidExoPlayerAspectRatio = 'FILL_SCREEN' | 'FIT_SCREEN'; @@ -187,16 +187,14 @@ export class AndroidExoplayer extends IonicNativePlugin { * @param parameters {AndroidExoPlayerParams} Parameters * @return {Observable} */ - @Cordova({ - observable: true, - clearFunction: 'close', - clearWithArgs: false, - successIndex: 1, - errorIndex: 2 - }) - show(parameters: AndroidExoPlayerParams): Observable { - return; - } + @Cordova({ + observable: true, + clearFunction: 'close', + clearWithArgs: false, + successIndex: 1, + errorIndex: 2 + }) + show(parameters: AndroidExoPlayerParams): Observable { return; } /** * Switch stream without disposing of the player. @@ -205,30 +203,21 @@ export class AndroidExoplayer extends IonicNativePlugin { * @return {Promise} */ @Cordova() - setStream( - url: string, - controller: AndroidExoPlayerControllerConfig - ): Promise { - return; - } + setStream(url: string, controller: AndroidExoPlayerControllerConfig): Promise { return; } /** * Will pause if playing and play if paused * @return {Promise} */ @Cordova() - playPause(): Promise { - return; - } + playPause(): Promise { return; } /** * Stop playing. * @return {Promise} */ @Cordova() - stop(): Promise { - return; - } + stop(): Promise { return; } /** * Jump to a particular position. @@ -236,9 +225,7 @@ export class AndroidExoplayer extends IonicNativePlugin { * @return {Promise} */ @Cordova() - seekTo(milliseconds: number): Promise { - return; - } + seekTo(milliseconds: number): Promise { return; } /** * Jump to a particular time relative to the current position. @@ -246,36 +233,28 @@ export class AndroidExoplayer extends IonicNativePlugin { * @return {Promise} */ @Cordova() - seekBy(milliseconds: number): Promise { - return; - } + seekBy(milliseconds: number): Promise { return; } /** * Get the current player state. * @return {Promise} */ @Cordova() - getState(): Promise { - return; - } + getState(): Promise { return; } /** * Show the controller. * @return {Promise} */ @Cordova() - showController(): Promise { - return; - } + showController(): Promise { return; } /** * Hide the controller. * @return {Promise} */ @Cordova() - hideController(): Promise { - return; - } + hideController(): Promise { return; } /** * Update the controller configuration. @@ -283,16 +262,12 @@ export class AndroidExoplayer extends IonicNativePlugin { * @return {Promise} */ @Cordova() - setController(controller: AndroidExoPlayerControllerConfig): Promise { - return; - } + setController(controller: AndroidExoPlayerControllerConfig): Promise { return; } /** * Close and dispose of player, call before destroy. * @return {Promise} */ @Cordova() - close(): Promise { - return; - } + close(): Promise { return; } } diff --git a/src/@ionic-native/plugins/android-fingerprint-auth/index.ts b/src/@ionic-native/plugins/android-fingerprint-auth/index.ts index 3044bd855..2366e86bb 100644 --- a/src/@ionic-native/plugins/android-fingerprint-auth/index.ts +++ b/src/@ionic-native/plugins/android-fingerprint-auth/index.ts @@ -1,7 +1,9 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; + export interface AFAAuthOptions { + /** * Required * Used as the alias for your key in the Android Key Store. @@ -60,6 +62,7 @@ export interface AFAAuthOptions { * Set the hint displayed by the fingerprint icon on the fingerprint authentication dialog. */ dialogHint?: string; + } export interface AFADecryptOptions { @@ -146,25 +149,26 @@ export interface AFAEncryptResponse { }) @Injectable() export class AndroidFingerprintAuth extends IonicNativePlugin { + ERRORS: { - BAD_PADDING_EXCEPTION: 'BAD_PADDING_EXCEPTION'; - CERTIFICATE_EXCEPTION: 'CERTIFICATE_EXCEPTION'; - FINGERPRINT_CANCELLED: 'FINGERPRINT_CANCELLED'; - FINGERPRINT_DATA_NOT_DELETED: 'FINGERPRINT_DATA_NOT_DELETED'; - FINGERPRINT_ERROR: 'FINGERPRINT_ERROR'; - FINGERPRINT_NOT_AVAILABLE: 'FINGERPRINT_NOT_AVAILABLE'; - FINGERPRINT_PERMISSION_DENIED: 'FINGERPRINT_PERMISSION_DENIED'; - FINGERPRINT_PERMISSION_DENIED_SHOW_REQUEST: 'FINGERPRINT_PERMISSION_DENIED_SHOW_REQUEST'; - ILLEGAL_BLOCK_SIZE_EXCEPTION: 'ILLEGAL_BLOCK_SIZE_EXCEPTION'; - INIT_CIPHER_FAILED: 'INIT_CIPHER_FAILED'; - INVALID_ALGORITHM_PARAMETER_EXCEPTION: 'INVALID_ALGORITHM_PARAMETER_EXCEPTION'; - IO_EXCEPTION: 'IO_EXCEPTION'; - JSON_EXCEPTION: 'JSON_EXCEPTION'; - MINIMUM_SDK: 'MINIMUM_SDK'; - MISSING_ACTION_PARAMETERS: 'MISSING_ACTION_PARAMETERS'; - MISSING_PARAMETERS: 'MISSING_PARAMETERS'; - NO_SUCH_ALGORITHM_EXCEPTION: 'NO_SUCH_ALGORITHM_EXCEPTION'; - SECURITY_EXCEPTION: 'SECURITY_EXCEPTION'; + BAD_PADDING_EXCEPTION: 'BAD_PADDING_EXCEPTION', + CERTIFICATE_EXCEPTION: 'CERTIFICATE_EXCEPTION', + FINGERPRINT_CANCELLED: 'FINGERPRINT_CANCELLED', + FINGERPRINT_DATA_NOT_DELETED: 'FINGERPRINT_DATA_NOT_DELETED', + FINGERPRINT_ERROR: 'FINGERPRINT_ERROR', + FINGERPRINT_NOT_AVAILABLE: 'FINGERPRINT_NOT_AVAILABLE', + FINGERPRINT_PERMISSION_DENIED: 'FINGERPRINT_PERMISSION_DENIED', + FINGERPRINT_PERMISSION_DENIED_SHOW_REQUEST: 'FINGERPRINT_PERMISSION_DENIED_SHOW_REQUEST', + ILLEGAL_BLOCK_SIZE_EXCEPTION: 'ILLEGAL_BLOCK_SIZE_EXCEPTION', + INIT_CIPHER_FAILED: 'INIT_CIPHER_FAILED', + INVALID_ALGORITHM_PARAMETER_EXCEPTION: 'INVALID_ALGORITHM_PARAMETER_EXCEPTION', + IO_EXCEPTION: 'IO_EXCEPTION', + JSON_EXCEPTION: 'JSON_EXCEPTION', + MINIMUM_SDK: 'MINIMUM_SDK', + MISSING_ACTION_PARAMETERS: 'MISSING_ACTION_PARAMETERS', + MISSING_PARAMETERS: 'MISSING_PARAMETERS', + NO_SUCH_ALGORITHM_EXCEPTION: 'NO_SUCH_ALGORITHM_EXCEPTION', + SECURITY_EXCEPTION: 'SECURITY_EXCEPTION' }; /** @@ -173,9 +177,7 @@ export class AndroidFingerprintAuth extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - encrypt(options: AFAAuthOptions): Promise { - return; - } + encrypt(options: AFAAuthOptions): Promise { return; } /** * Opens a native dialog fragment to use the device hardware fingerprint scanner to authenticate against fingerprints registered for the device. @@ -183,32 +185,19 @@ export class AndroidFingerprintAuth extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - decrypt(options: AFAAuthOptions): Promise { - return; - } + decrypt(options: AFAAuthOptions): Promise { return; } /** * Check if service is available * @returns {Promise} Returns a Promise that resolves if fingerprint auth is available on the device */ @Cordova() - isAvailable(): Promise<{ - isAvailable: boolean; - isHardwareDetected: boolean; - hasEnrolledFingerprints: boolean; - }> { - return; - } + isAvailable(): Promise<{ isAvailable: boolean, isHardwareDetected: boolean, hasEnrolledFingerprints: boolean }> { return; } /** * Delete the cipher used for encryption and decryption by username * @returns {Promise} Returns a Promise that resolves if the cipher was successfully deleted */ @Cordova() - delete(options: { - clientId: string; - username: string; - }): Promise<{ deleted: boolean }> { - return; - } + delete(options: { clientId: string; username: string; }): Promise<{ deleted: boolean }> { return; } } diff --git a/src/@ionic-native/plugins/android-full-screen/index.ts b/src/@ionic-native/plugins/android-full-screen/index.ts index cccbb56de..e0d023a98 100644 --- a/src/@ionic-native/plugins/android-full-screen/index.ts +++ b/src/@ionic-native/plugins/android-full-screen/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; /** * Bit flag values for setSystemUiVisibility() @@ -62,81 +62,63 @@ export class AndroidFullScreen extends IonicNativePlugin { * @return {Promise} */ @Cordova() - isSupported(): Promise { - return; - } + isSupported(): Promise { return; } /** * Is immersive mode supported? * @return {Promise} */ @Cordova() - isImmersiveModeSupported(): Promise { - return; - } + isImmersiveModeSupported(): Promise { return; } /** * The width of the screen in immersive mode. * @return {Promise} */ @Cordova() - immersiveWidth(): Promise { - return; - } + immersiveWidth(): Promise { return; } /** * The height of the screen in immersive mode. * @return {Promise} */ @Cordova() - immersiveHeight(): Promise { - return; - } + immersiveHeight(): Promise { return; } /** * Hide system UI until user interacts. * @return {Promise} */ @Cordova() - leanMode(): Promise { - return; - } + leanMode(): Promise { return; } /** * Show system UI. * @return {Promise} */ @Cordova() - showSystemUI(): Promise { - return; - } + showSystemUI(): Promise { return; } /** * Extend your app underneath the status bar (Android 4.4+ only). * @return {Promise} */ @Cordova() - showUnderStatusBar(): Promise { - return; - } + showUnderStatusBar(): Promise { return; } /** * Extend your app underneath the system UI (Android 4.4+ only). * @return {Promise} */ @Cordova() - showUnderSystemUI(): Promise { - return; - } + showUnderSystemUI(): Promise { return; } /** * Hide system UI and keep it hidden (Android 4.4+ only). * @return {Promise} */ @Cordova() - immersiveMode(): Promise { - return; - } + immersiveMode(): Promise { return; } /** * Manually set the the system UI to a custom mode. This mirrors the Android method of the same name. (Android 4.4+ only). @@ -145,7 +127,5 @@ export class AndroidFullScreen extends IonicNativePlugin { * @return {Promise} */ @Cordova() - setSystemUiVisibility(visibility: AndroidSystemUiFlags): Promise { - return; - } + setSystemUiVisibility(visibility: AndroidSystemUiFlags): Promise { return; } } diff --git a/src/@ionic-native/plugins/android-permissions/index.ts b/src/@ionic-native/plugins/android-permissions/index.ts index 1d265d4f9..6ee438268 100644 --- a/src/@ionic-native/plugins/android-permissions/index.ts +++ b/src/@ionic-native/plugins/android-permissions/index.ts @@ -1,5 +1,5 @@ +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name Android Permissions @@ -37,12 +37,12 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; }) @Injectable() export class AndroidPermissions extends IonicNativePlugin { + PERMISSION: any = { ACCESS_CHECKIN_PROPERTIES: 'android.permission.ACCESS_CHECKIN_PROPERTIES', ACCESS_COARSE_LOCATION: 'android.permission.ACCESS_COARSE_LOCATION', ACCESS_FINE_LOCATION: 'android.permission.ACCESS_FINE_LOCATION', - ACCESS_LOCATION_EXTRA_COMMANDS: - 'android.permission.ACCESS_LOCATION_EXTRA_COMMANDS', + ACCESS_LOCATION_EXTRA_COMMANDS: 'android.permission.ACCESS_LOCATION_EXTRA_COMMANDS', ACCESS_MOCK_LOCATION: 'android.permission.ACCESS_MOCK_LOCATION', ACCESS_NETWORK_STATE: 'android.permission.ACCESS_NETWORK_STATE', ACCESS_SURFACE_FLINGER: 'android.permission.ACCESS_SURFACE_FLINGER', @@ -53,14 +53,12 @@ export class AndroidPermissions extends IonicNativePlugin { BATTERY_STATS: 'android.permission.BATTERY_STATS', BIND_ACCESSIBILITY_SERVICE: 'android.permission.BIND_ACCESSIBILITY_SERVICE', BIND_APPWIDGET: 'android.permission.BIND_APPWIDGET', - BIND_CARRIER_MESSAGING_SERVICE: - 'android.permission.BIND_CARRIER_MESSAGING_SERVICE', + BIND_CARRIER_MESSAGING_SERVICE: 'android.permission.BIND_CARRIER_MESSAGING_SERVICE', BIND_DEVICE_ADMIN: 'android.permission.BIND_DEVICE_ADMIN', BIND_DREAM_SERVICE: 'android.permission.BIND_DREAM_SERVICE', BIND_INPUT_METHOD: 'android.permission.BIND_INPUT_METHOD', BIND_NFC_SERVICE: 'android.permission.BIND_NFC_SERVICE', - BIND_NOTIFICATION_LISTENER_SERVICE: - 'android.permission.BIND_NOTIFICATION_LISTENER_SERVICE', + BIND_NOTIFICATION_LISTENER_SERVICE: 'android.permission.BIND_NOTIFICATION_LISTENER_SERVICE', BIND_PRINT_SERVICE: 'android.permission.BIND_PRINT_SERVICE', BIND_REMOTEVIEWS: 'android.permission.BIND_REMOTEVIEWS', BIND_TEXT_SERVICE: 'android.permission.BIND_TEXT_SERVICE', @@ -81,15 +79,12 @@ export class AndroidPermissions extends IonicNativePlugin { CALL_PRIVILEGED: 'android.permission.CALL_PRIVILEGED', CAMERA: 'android.permission.CAMERA', CAPTURE_AUDIO_OUTPUT: 'android.permission.CAPTURE_AUDIO_OUTPUT', - CAPTURE_SECURE_VIDEO_OUTPUT: - 'android.permission.CAPTURE_SECURE_VIDEO_OUTPUT', + CAPTURE_SECURE_VIDEO_OUTPUT: 'android.permission.CAPTURE_SECURE_VIDEO_OUTPUT', CAPTURE_VIDEO_OUTPUT: 'android.permission.CAPTURE_VIDEO_OUTPUT', - CHANGE_COMPONENT_ENABLED_STATE: - 'android.permission.CHANGE_COMPONENT_ENABLED_STATE', + CHANGE_COMPONENT_ENABLED_STATE: 'android.permission.CHANGE_COMPONENT_ENABLED_STATE', CHANGE_CONFIGURATION: 'android.permission.CHANGE_CONFIGURATION', CHANGE_NETWORK_STATE: 'android.permission.CHANGE_NETWORK_STATE', - CHANGE_WIFI_MULTICAST_STATE: - 'android.permission.CHANGE_WIFI_MULTICAST_STATE', + CHANGE_WIFI_MULTICAST_STATE: 'android.permission.CHANGE_WIFI_MULTICAST_STATE', CHANGE_WIFI_STATE: 'android.permission.CHANGE_WIFI_STATE', CLEAR_APP_CACHE: 'android.permission.CLEAR_APP_CACHE', CLEAR_APP_USER_DATA: 'android.permission.CLEAR_APP_USER_DATA', @@ -135,8 +130,7 @@ export class AndroidPermissions extends IonicNativePlugin { READ_CONTACTS: 'android.permission.READ_CONTACTS', READ_EXTERNAL_STORAGE: 'android.permission.READ_EXTERNAL_STORAGE', READ_FRAME_BUFFER: 'android.permission.READ_FRAME_BUFFER', - READ_HISTORY_BOOKMARKS: - 'com.android.browser.permission.READ_HISTORY_BOOKMARKS', + READ_HISTORY_BOOKMARKS: 'com.android.browser.permission.READ_HISTORY_BOOKMARKS', READ_INPUT_STATE: 'android.permission.READ_INPUT_STATE', READ_LOGS: 'android.permission.READ_LOGS', READ_PHONE_STATE: 'android.permission.READ_PHONE_STATE', @@ -170,8 +164,7 @@ export class AndroidPermissions extends IonicNativePlugin { SET_TIME_ZONE: 'android.permission.SET_TIME_ZONE', SET_WALLPAPER: 'android.permission.SET_WALLPAPER', SET_WALLPAPER_HINTS: 'android.permission.SET_WALLPAPER_HINTS', - SIGNAL_PERSISTENT_PROCESSES: - 'android.permission.SIGNAL_PERSISTENT_PROCESSES', + SIGNAL_PERSISTENT_PROCESSES: 'android.permission.SIGNAL_PERSISTENT_PROCESSES', STATUS_BAR: 'android.permission.STATUS_BAR', SUBSCRIBED_FEEDS_READ: 'android.permission.SUBSCRIBED_FEEDS_READ', SUBSCRIBED_FEEDS_WRITE: 'android.permission.SUBSCRIBED_FEEDS_WRITE', @@ -189,8 +182,7 @@ export class AndroidPermissions extends IonicNativePlugin { WRITE_CONTACTS: 'android.permission.WRITE_CONTACTS', WRITE_EXTERNAL_STORAGE: 'android.permission.WRITE_EXTERNAL_STORAGE', WRITE_GSERVICES: 'android.permission.WRITE_GSERVICES', - WRITE_HISTORY_BOOKMARKS: - 'com.android.browser.permission.WRITE_HISTORY_BOOKMARKS', + WRITE_HISTORY_BOOKMARKS: 'com.android.browser.permission.WRITE_HISTORY_BOOKMARKS', WRITE_PROFILE: 'android.permission.WRITE_PROFILE', WRITE_SECURE_SETTINGS: 'android.permission.WRITE_SECURE_SETTINGS', WRITE_SETTINGS: 'android.permission.WRITE_SETTINGS', @@ -198,7 +190,7 @@ export class AndroidPermissions extends IonicNativePlugin { WRITE_SOCIAL_STREAM: 'android.permission.WRITE_SOCIAL_STREAM', WRITE_SYNC_SETTINGS: 'android.permission.WRITE_SYNC_SETTINGS', WRITE_USER_DICTIONARY: 'android.permission.WRITE_USER_DICTIONARY', - WRITE_VOICEMAIL: 'com.android.voicemail.permission.WRITE_VOICEMAIL' + WRITE_VOICEMAIL: 'com.android.voicemail.permission.WRITE_VOICEMAIL', }; /** @@ -207,9 +199,7 @@ export class AndroidPermissions extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - checkPermission(permission: string): Promise { - return; - } + checkPermission(permission: string): Promise { return; } /** * Request permission @@ -217,9 +207,7 @@ export class AndroidPermissions extends IonicNativePlugin { * @return {Promise} */ @Cordova() - requestPermission(permission: string): Promise { - return; - } + requestPermission(permission: string): Promise { return; } /** * Request permissions @@ -227,9 +215,7 @@ export class AndroidPermissions extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - requestPermissions(permissions: string[]): Promise { - return; - } + requestPermissions(permissions: string[]): Promise { return; } /** * This function still works now, will not support in the future. @@ -237,7 +223,6 @@ export class AndroidPermissions extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - hasPermission(permission: string): Promise { - return; - } + hasPermission(permission: string): Promise { return; } + } diff --git a/src/@ionic-native/plugins/app-availability/index.ts b/src/@ionic-native/plugins/app-availability/index.ts index 391ce5468..3ff0b1996 100644 --- a/src/@ionic-native/plugins/app-availability/index.ts +++ b/src/@ionic-native/plugins/app-availability/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; /** * @name App Availability @@ -41,13 +41,13 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; }) @Injectable() export class AppAvailability extends IonicNativePlugin { + /** * Checks if an app is available on device * @param {string} app Package name on android, or URI scheme on iOS * @returns {Promise} */ @Cordova() - check(app: string): Promise { - return; - } + check(app: string): Promise { return; } + } diff --git a/src/@ionic-native/plugins/app-minimize/index.ts b/src/@ionic-native/plugins/app-minimize/index.ts index 61dca97df..5179a9b06 100644 --- a/src/@ionic-native/plugins/app-minimize/index.ts +++ b/src/@ionic-native/plugins/app-minimize/index.ts @@ -1,5 +1,5 @@ +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name App Minimize @@ -31,12 +31,12 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; }) @Injectable() export class AppMinimize extends IonicNativePlugin { + /** * Minimizes the application * @return {Promise} */ @Cordova() - minimize(): Promise { - return; - } + minimize(): Promise { return; } + } diff --git a/src/@ionic-native/plugins/app-preferences/index.ts b/src/@ionic-native/plugins/app-preferences/index.ts index 03eac849c..6b7924315 100644 --- a/src/@ionic-native/plugins/app-preferences/index.ts +++ b/src/@ionic-native/plugins/app-preferences/index.ts @@ -1,6 +1,6 @@ -import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; +import { Injectable } from '@angular/core'; /** * @name App Preferences @@ -25,18 +25,11 @@ import { Observable } from 'rxjs/Observable'; plugin: 'cordova-plugin-app-preferences', pluginRef: 'plugins.appPreferences', repo: 'https://github.com/apla/me.apla.cordova.app-preferences', - platforms: [ - 'Android', - 'BlackBerry 10', - 'Browser', - 'iOS', - 'macOS', - 'Windows 8', - 'Windows Phone' - ] + platforms: ['Android', 'BlackBerry 10', 'Browser', 'iOS', 'macOS', 'Windows 8', 'Windows Phone'] }) @Injectable() export class AppPreferences extends IonicNativePlugin { + /** * Get a preference value * @@ -47,9 +40,7 @@ export class AppPreferences extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - fetch(dict: string, key?: string): Promise { - return; - } + fetch(dict: string, key?: string): Promise { return; } /** * Set a preference value @@ -76,9 +67,7 @@ export class AppPreferences extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - remove(dict: string, key?: string): Promise { - return; - } + remove(dict: string, key?: string): Promise { return; } /** * Clear preferences @@ -88,9 +77,7 @@ export class AppPreferences extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - clearAll(): Promise { - return; - } + clearAll(): Promise { return; } /** * Show native preferences interface @@ -100,9 +87,7 @@ export class AppPreferences extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - show(): Promise { - return; - } + show(): Promise { return; } /** * Show native preferences interface @@ -113,9 +98,7 @@ export class AppPreferences extends IonicNativePlugin { @Cordova({ observable: true }) - watch(subscribe: boolean): Observable { - return; - } + watch(subscribe: boolean): Observable { return; } /** * Return named configuration context @@ -128,17 +111,13 @@ export class AppPreferences extends IonicNativePlugin { platforms: ['Android'], sync: true }) - suite(suiteName: string): any { - return; - } + suite(suiteName: string): any { return; } @Cordova({ platforms: ['iOS'], sync: true }) - iosSuite(suiteName: string): any { - return; - } + iosSuite(suiteName: string): any { return; } /** * Return cloud synchronized configuration context @@ -148,9 +127,7 @@ export class AppPreferences extends IonicNativePlugin { @Cordova({ platforms: ['iOS', 'Windows', 'Windows Phone 8'] }) - cloudSync(): Object { - return; - } + cloudSync(): Object { return; } /** * Return default configuration context @@ -160,7 +137,6 @@ export class AppPreferences extends IonicNativePlugin { @Cordova({ platforms: ['iOS', 'Windows', 'Windows Phone 8'] }) - defaults(): Object { - return; - } + defaults(): Object { return; } + } diff --git a/src/@ionic-native/plugins/app-rate/index.ts b/src/@ionic-native/plugins/app-rate/index.ts index 3d50780f7..170ee7b4a 100644 --- a/src/@ionic-native/plugins/app-rate/index.ts +++ b/src/@ionic-native/plugins/app-rate/index.ts @@ -1,10 +1,5 @@ import { Injectable } from '@angular/core'; -import { - Cordova, - CordovaProperty, - IonicNativePlugin, - Plugin -} from '@ionic-native/core'; +import { Cordova, CordovaProperty, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface AppRatePreferences { /** diff --git a/src/@ionic-native/plugins/app-version/index.ts b/src/@ionic-native/plugins/app-version/index.ts index 480bda362..a612159d2 100644 --- a/src/@ionic-native/plugins/app-version/index.ts +++ b/src/@ionic-native/plugins/app-version/index.ts @@ -1,5 +1,7 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; + + /** * @name App Version @@ -33,39 +35,33 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; }) @Injectable() export class AppVersion extends IonicNativePlugin { + /** * Returns the name of the app * @returns {Promise} */ @Cordova() - getAppName(): Promise { - return; - } + getAppName(): Promise { return; } /** * Returns the package name of the app * @returns {Promise} */ @Cordova() - getPackageName(): Promise { - return; - } + getPackageName(): Promise { return; } /** * Returns the build identifier of the app * @returns {Promise} */ @Cordova() - getVersionCode(): Promise { - return; - } + getVersionCode(): Promise { return; } /** * Returns the version of the app * @returns {Promise} */ @Cordova() - getVersionNumber(): Promise { - return; - } + getVersionNumber(): Promise { return; } + } diff --git a/src/@ionic-native/plugins/apple-pay/index.ts b/src/@ionic-native/plugins/apple-pay/index.ts index 1c90e671c..1995cb496 100644 --- a/src/@ionic-native/plugins/apple-pay/index.ts +++ b/src/@ionic-native/plugins/apple-pay/index.ts @@ -1,32 +1,17 @@ -import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; -import { Observable } from 'rxjs/Observable'; +import {Injectable} from '@angular/core'; +import {Observable} from 'rxjs/Observable'; +import { + Plugin, + Cordova, + IonicNativePlugin +} from '@ionic-native/core'; -export type IMakePayments = - | 'This device can make payments and has a supported card' - | 'This device cannot make payments.' - | 'This device can make payments but has no supported cards'; +export type IMakePayments = 'This device can make payments and has a supported card' | 'This device cannot make payments.' | 'This device can make payments but has no supported cards'; export type IShippingType = 'shipping' | 'delivery' | 'store' | 'service'; -export type IBillingRequirement = - | 'none' - | 'all' - | 'postcode' - | 'name' - | 'email' - | 'phone'; -export type ITransactionStatus = - | 'success' - | 'failure' - | 'invalid-billing-address' - | 'invalid-shipping-address' - | 'invalid-shipping-contact' - | 'require-pin' - | 'incorrect-pin' - | 'locked-pin'; +export type IBillingRequirement = 'none' | 'all' | 'postcode' | 'name' | 'email' | 'phone'; +export type ITransactionStatus = 'success' | 'failure' | 'invalid-billing-address' | 'invalid-shipping-address' | 'invalid-shipping-contact' | 'require-pin' | 'incorrect-pin' | 'locked-pin'; export type ICompleteTransaction = 'Payment status applied.'; -export type IUpdateItemsAndShippingStatus = - | 'Updated List Info' - | 'Did you make a payment request?'; +export type IUpdateItemsAndShippingStatus = 'Updated List Info' | 'Did you make a payment request?'; export interface IPaymentResponse { billingNameFirst?: string; @@ -65,7 +50,7 @@ export interface IOrderItem { label: string; amount: number; } -export interface IShippingMethod { +export interface IShippingMethod { identifier: string; label: string; detail: string; @@ -150,10 +135,11 @@ export interface ISelectedShippingContact { plugin: 'cordova-plugin-applepay', pluginRef: 'ApplePay', repo: 'https://github.com/samkelleher/cordova-plugin-applepay', - platforms: ['iOS'] + platforms: ['iOS'], }) @Injectable() export class ApplePay extends IonicNativePlugin { + /** * Detects if the current device supports Apple Pay and has any capable cards registered. * @return {Promise} Returns a promise @@ -188,9 +174,7 @@ export class ApplePay extends IonicNativePlugin { observable: true, clearFunction: 'stopListeningForShippingContactSelection' }) - startListeningForShippingContactSelection(): Observable< - ISelectedShippingContact - > { + startListeningForShippingContactSelection(): Observable { return; } @@ -244,9 +228,7 @@ export class ApplePay extends IonicNativePlugin { @Cordova({ otherPromise: true }) - updateItemsAndShippingMethods( - list: IOrderItemsAndShippingMethods - ): Promise { + updateItemsAndShippingMethods(list: IOrderItemsAndShippingMethods): Promise { return; } @@ -339,9 +321,7 @@ export class ApplePay extends IonicNativePlugin { @Cordova({ otherPromise: true }) - completeLastTransaction( - complete: ITransactionStatus - ): Promise { + completeLastTransaction(complete: ITransactionStatus): Promise { return; } } diff --git a/src/@ionic-native/plugins/appodeal/index.ts b/src/@ionic-native/plugins/appodeal/index.ts index fc2e6f06c..5d72981f1 100644 --- a/src/@ionic-native/plugins/appodeal/index.ts +++ b/src/@ionic-native/plugins/appodeal/index.ts @@ -1,6 +1,6 @@ -import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs'; +import { Injectable } from '@angular/core'; /** * @name Appodeal @@ -46,16 +46,14 @@ export class Appodeal extends IonicNativePlugin { * @param {number} adType */ @Cordova() - initialize(appKey: string, adType: number): void {} + initialize(appKey: string, adType: number): void { }; /** * check if SDK has been initialized * @returns {Promise} */ @Cordova() - isInitialized(): Promise { - return; - } + isInitialized(): Promise { return; }; /** * show ad of specified type @@ -63,9 +61,7 @@ export class Appodeal extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - show(adType: number): Promise { - return; - } + show(adType: number): Promise { return; }; /** * show ad of specified type with placement options @@ -74,23 +70,24 @@ export class Appodeal extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - showWithPlacement(adType: number, placement: any): Promise { - return; - } + showWithPlacement( + adType: number, + placement: any + ): Promise { return; }; /** * hide ad of specified type * @param {number} adType */ @Cordova() - hide(adType: number): void {} + hide(adType: number): void { }; /** * confirm use of ads of specified type * @param {number} adType */ @Cordova() - confirm(adType: number): void {} + confirm(adType: number): void { }; /** * check if ad of specified type has been loaded @@ -98,9 +95,7 @@ export class Appodeal extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - isLoaded(adType: number): Promise { - return; - } + isLoaded(adType: number): Promise { return; }; /** * check if ad of specified @@ -108,9 +103,7 @@ export class Appodeal extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - isPrecache(adType: number): Promise { - return; - } + isPrecache(adType: number): Promise { return; }; /** * @@ -118,77 +111,75 @@ export class Appodeal extends IonicNativePlugin { * @param autoCache */ @Cordova() - setAutoCache(adType: number, autoCache: any): void {} + setAutoCache(adType: number, autoCache: any): void { }; /** * forcefully cache an ad by type * @param {number} adType */ @Cordova() - cache(adType: number): void {} + cache(adType: number): void { }; /** * * @param {boolean} set */ @Cordova() - setOnLoadedTriggerBoth(set: boolean): void {} + setOnLoadedTriggerBoth(set: boolean): void { }; /** * enable or disable Smart Banners * @param {boolean} enabled */ @Cordova() - setSmartBanners(enabled: boolean): void {} + setSmartBanners(enabled: boolean): void { }; /** * enable or disable banner backgrounds * @param {boolean} enabled */ @Cordova() - setBannerBackground(enabled: boolean): void {} + setBannerBackground(enabled: boolean): void { }; /** * enable or disable banner animations * @param {boolean} enabled */ @Cordova() - setBannerAnimation(enabled: boolean): void {} + setBannerAnimation(enabled: boolean): void { }; /** * * @param value */ @Cordova() - set728x90Banners(value: any): void {} + set728x90Banners(value: any): void { }; /** * enable or disable logging * @param {boolean} logging */ @Cordova() - setLogging(logging: boolean): void {} + setLogging(logging: boolean): void { }; /** * enable or disable testing mode * @param {boolean} testing */ @Cordova() - setTesting(testing: boolean): void {} + setTesting(testing: boolean): void { }; /** * reset device ID */ @Cordova() - resetUUID(): void {} + resetUUID(): void { }; /** * get version of Appdeal SDK */ @Cordova() - getVersion(): Promise { - return; - } + getVersion(): Promise { return; }; /** * @@ -196,7 +187,7 @@ export class Appodeal extends IonicNativePlugin { * @param {number} adType */ @Cordova() - disableNetwork(network?: string, adType?: number): void {} + disableNetwork(network?: string, adType?: number): void { }; /** * @@ -204,54 +195,54 @@ export class Appodeal extends IonicNativePlugin { * @param {number} adType */ @Cordova() - disableNetworkType(network?: string, adType?: number): void {} + disableNetworkType(network?: string, adType?: number): void { }; /** * disable Location permissions for Appodeal SDK */ @Cordova() - disableLocationPermissionCheck(): void {} + disableLocationPermissionCheck(): void { }; /** * disable Storage permissions for Appodeal SDK */ @Cordova() - disableWriteExternalStoragePermissionCheck(): void {} + disableWriteExternalStoragePermissionCheck(): void { }; /** * enable event listeners * @param {boolean} enabled */ @Cordova() - enableInterstitialCallbacks(enabled: boolean): void {} + enableInterstitialCallbacks(enabled: boolean): void { }; /** * enable event listeners * @param {boolean} enabled */ @Cordova() - enableSkippableVideoCallbacks(enabled: boolean): void {} + enableSkippableVideoCallbacks(enabled: boolean): void { }; /** * enable event listeners * @param {boolean} enabled */ @Cordova() - enableNonSkippableVideoCallbacks(enabled: boolean): void {} + enableNonSkippableVideoCallbacks(enabled: boolean): void { }; /** * enable event listeners * @param {boolean} enabled */ @Cordova() - enableBannerCallbacks(enabled: boolean): void {} + enableBannerCallbacks(enabled: boolean): void { }; /** * enable event listeners * @param {boolean} enabled */ @Cordova() - enableRewardedVideoCallbacks(enabled: boolean): void {} + enableRewardedVideoCallbacks(enabled: boolean): void { }; /** * @@ -259,7 +250,7 @@ export class Appodeal extends IonicNativePlugin { * @param {boolean} value */ @Cordova() - setCustomBooleanRule(name: string, value: boolean): void {} + setCustomBooleanRule(name: string, value: boolean): void { }; /** * @@ -267,7 +258,7 @@ export class Appodeal extends IonicNativePlugin { * @param {number} value */ @Cordova() - setCustomIntegerRule(name: string, value: number): void {} + setCustomIntegerRule(name: string, value: number): void { }; /** * set rule with float value @@ -275,7 +266,7 @@ export class Appodeal extends IonicNativePlugin { * @param {number} value */ @Cordova() - setCustomDoubleRule(name: string, value: number): void {} + setCustomDoubleRule(name: string, value: number): void { }; /** * set rule with string value @@ -283,291 +274,243 @@ export class Appodeal extends IonicNativePlugin { * @param {string} value */ @Cordova() - setCustomStringRule(name: string, value: string): void {} + setCustomStringRule(name: string, value: string): void { }; /** * set ID preference in Appodeal for current user * @param id */ @Cordova() - setUserId(id: any): void {} + setUserId(id: any): void { }; /** * set Email preference in Appodeal for current user * @param email */ @Cordova() - setEmail(email: any): void {} + setEmail(email: any): void { }; /** * set Birthday preference in Appodeal for current user * @param birthday */ @Cordova() - setBirthday(birthday: any): void {} + setBirthday(birthday: any): void { }; /** * et Age preference in Appodeal for current user * @param age */ @Cordova() - setAge(age: any): void {} + setAge(age: any): void { }; /** * set Gender preference in Appodeal for current user * @param gender */ @Cordova() - setGender(gender: any): void {} + setGender(gender: any): void { }; /** * set Occupation preference in Appodeal for current user * @param occupation */ @Cordova() - setOccupation(occupation: any): void {} + setOccupation(occupation: any): void { }; /** * set Relation preference in Appodeal for current user * @param relation */ @Cordova() - setRelation(relation: any): void {} + setRelation(relation: any): void { }; /** * set Smoking preference in Appodeal for current user * @param smoking */ @Cordova() - setSmoking(smoking: any): void {} + setSmoking(smoking: any): void { }; /** * set Alcohol preference in Appodeal for current user * @param alcohol */ @Cordova() - setAlcohol(alcohol: any): void {} + setAlcohol(alcohol: any): void { }; /** * set Interests preference in Appodeal for current user * @param interests */ @Cordova() - setInterests(interests: any): void {} + setInterests(interests: any): void { }; @Cordova({ eventObservable: true, event: 'onInterstitialLoaded', element: document }) - onInterstitialLoaded(): Observable { - return; - } + onInterstitialLoaded(): Observable { return; } @Cordova({ eventObservable: true, event: 'onInterstitialFailedToLoad', element: document }) - onInterstitialFailedToLoad(): Observable { - return; - } + onInterstitialFailedToLoad(): Observable { return; } @Cordova({ eventObservable: true, event: 'onInterstitialShown', element: document }) - onInterstitialShown(): Observable { - return; - } + onInterstitialShown(): Observable { return; } @Cordova({ eventObservable: true, event: 'onInterstitialClicked', element: document }) - onInterstitialClicked(): Observable { - return; - } + onInterstitialClicked(): Observable { return; } @Cordova({ eventObservable: true, event: 'onInterstitialClosed', element: document }) - onInterstitialClosed(): Observable { - return; - } + onInterstitialClosed(): Observable { return; } @Cordova({ eventObservable: true, event: 'onSkippableVideoLoaded', element: document }) - onSkippableVideoLoaded(): Observable { - return; - } + onSkippableVideoLoaded(): Observable { return; } @Cordova({ eventObservable: true, event: 'onSkippableVideoFailedToLoad', element: document }) - onSkippableVideoFailedToLoad(): Observable { - return; - } + onSkippableVideoFailedToLoad(): Observable { return; } @Cordova({ eventObservable: true, event: 'onSkippableVideoShown', element: document }) - onSkippableVideoShown(): Observable { - return; - } + onSkippableVideoShown(): Observable { return; } @Cordova({ eventObservable: true, event: 'onSkippableVideoFinished', element: document }) - onSkippableVideoFinished(): Observable { - return; - } + onSkippableVideoFinished(): Observable { return; } @Cordova({ eventObservable: true, event: 'onSkippableVideoClosed', element: document }) - onSkippableVideoClosed(): Observable { - return; - } + onSkippableVideoClosed(): Observable { return; } @Cordova({ eventObservable: true, event: 'onRewardedVideoLoaded', element: document }) - onRewardedVideoLoaded(): Observable { - return; - } + onRewardedVideoLoaded(): Observable { return; } @Cordova({ eventObservable: true, event: 'onRewardedVideoFailedToLoad', element: document }) - onRewardedVideoFailedToLoad(): Observable { - return; - } + onRewardedVideoFailedToLoad(): Observable { return; } @Cordova({ eventObservable: true, event: 'onRewardedVideoShown', element: document }) - onRewardedVideoShown(): Observable { - return; - } + onRewardedVideoShown(): Observable { return; } @Cordova({ eventObservable: true, event: 'onRewardedVideoFinished', element: document }) - onRewardedVideoFinished(): Observable { - return; - } + onRewardedVideoFinished(): Observable { return; } @Cordova({ eventObservable: true, event: 'onRewardedVideoClosed', element: document }) - onRewardedVideoClosed(): Observable { - return; - } + onRewardedVideoClosed(): Observable { return; } @Cordova({ eventObservable: true, event: 'onNonSkippableVideoLoaded', element: document }) - onNonSkippableVideoLoaded(): Observable { - return; - } + onNonSkippableVideoLoaded(): Observable { return; } @Cordova({ eventObservable: true, event: 'onNonSkippableVideoFailedToLoad', element: document }) - onNonSkippableVideoFailedToLoad(): Observable { - return; - } + onNonSkippableVideoFailedToLoad(): Observable { return; } @Cordova({ eventObservable: true, event: 'onNonSkippableVideoShown', element: document }) - onNonSkippableVideoShown(): Observable { - return; - } + onNonSkippableVideoShown(): Observable { return; } @Cordova({ eventObservable: true, event: 'onNonSkippableVideoFinished', element: document }) - onNonSkippableVideoFinished(): Observable { - return; - } + onNonSkippableVideoFinished(): Observable { return; } @Cordova({ eventObservable: true, event: 'onNonSkippableVideoClosed', element: document }) - onNonSkippableVideoClosed(): Observable { - return; - } + onNonSkippableVideoClosed(): Observable { return; } @Cordova({ eventObservable: true, event: 'onBannerClicked', element: document }) - onBannerClicked(): Observable { - return; - } + onBannerClicked(): Observable { return; } @Cordova({ eventObservable: true, event: 'onBannerFailedToLoad', element: document }) - onBannerFailedToLoad(): Observable { - return; - } + onBannerFailedToLoad(): Observable { return; } @Cordova({ eventObservable: true, event: 'onBannerLoaded', element: document }) - onBannerLoaded(): Observable { - return; - } + onBannerLoaded(): Observable { return; } @Cordova({ eventObservable: true, event: 'onBannerShown', element: document }) - onBannerShown(): Observable { - return; - } + onBannerShown(): Observable { return; } } diff --git a/src/@ionic-native/plugins/autostart/index.ts b/src/@ionic-native/plugins/autostart/index.ts index d04686e03..e57c0d829 100644 --- a/src/@ionic-native/plugins/autostart/index.ts +++ b/src/@ionic-native/plugins/autostart/index.ts @@ -1,5 +1,5 @@ +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name Autostart @@ -31,15 +31,17 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; }) @Injectable() export class Autostart extends IonicNativePlugin { + /** * Enable the automatic startup after the boot */ @Cordova({ sync: true }) - enable(): void {} + enable(): void { } /** * Disable the automatic startup after the boot */ @Cordova({ sync: true }) - disable(): void {} + disable(): void { } + } diff --git a/src/@ionic-native/plugins/background-fetch/index.ts b/src/@ionic-native/plugins/background-fetch/index.ts index 32db990da..67bcae52a 100644 --- a/src/@ionic-native/plugins/background-fetch/index.ts +++ b/src/@ionic-native/plugins/background-fetch/index.ts @@ -1,13 +1,15 @@ +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface BackgroundFetchConfig { + /** * Set true to cease background-fetch from operating after user "closes" the app. Defaults to true. */ stopOnTerminate?: boolean; } + /** * @name Background Fetch * @description @@ -59,6 +61,8 @@ export interface BackgroundFetchConfig { }) @Injectable() export class BackgroundFetch extends IonicNativePlugin { + + /** * Configures the plugin's fetch callbackFn * @@ -68,9 +72,7 @@ export class BackgroundFetch extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - configure(config: BackgroundFetchConfig): Promise { - return; - } + configure(config: BackgroundFetchConfig): Promise { return; } /** * Start the background-fetch API. @@ -78,18 +80,14 @@ export class BackgroundFetch extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - start(): Promise { - return; - } + start(): Promise { return; } /** * Stop the background-fetch API from firing fetch events. Your callbackFn provided to #configure will no longer be executed. * @returns {Promise} */ @Cordova() - stop(): Promise { - return; - } + stop(): Promise { return; } /** * You MUST call this method in your fetch callbackFn provided to #configure in order to signal to iOS that your fetch action is complete. iOS provides only 30s of background-time for a fetch-event -- if you exceed this 30s, iOS will kill your app. @@ -97,14 +95,13 @@ export class BackgroundFetch extends IonicNativePlugin { @Cordova({ sync: true }) - finish(): void {} + finish(): void { } /** * Return the status of the background-fetch * @returns {Promise} */ @Cordova() - status(): Promise { - return; - } + status(): Promise { return; } + } diff --git a/src/@ionic-native/plugins/background-geolocation/index.ts b/src/@ionic-native/plugins/background-geolocation/index.ts index 5d4cb90df..99461d26e 100644 --- a/src/@ionic-native/plugins/background-geolocation/index.ts +++ b/src/@ionic-native/plugins/background-geolocation/index.ts @@ -1,8 +1,9 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export interface BackgroundGeolocationResponse { + /** * ID of location as stored in DB (or null) */ @@ -49,8 +50,8 @@ export interface BackgroundGeolocationResponse { altitude: number; /** - * accuracy of the altitude if available. - */ + * accuracy of the altitude if available. + */ altitudeAccuracy: number; /** @@ -70,6 +71,7 @@ export interface BackgroundGeolocationResponse { } export interface BackgroundGeolocationConfig { + /** * Desired accuracy in meters. Possible values [0, 10, 100, 1000]. The lower * the number, the more power devoted to GeoLocation resulting in higher @@ -106,19 +108,19 @@ export interface BackgroundGeolocationConfig { */ stopOnTerminate?: boolean; - /** - * ANDROID ONLY - * Start background service on device boot. + /**
 + * ANDROID ONLY
 + * Start background service on device boot.
 * - * Defaults to false + * Defaults to false
 */ startOnBoot?: boolean; - /** - * ANDROID ONLY + /**
 + * ANDROID ONLY
 * If false location service will not be started in foreground and no notification will be shown. * - * Defaults to true + * Defaults to true
 */ startForeground?: boolean; @@ -153,17 +155,17 @@ export interface BackgroundGeolocationConfig { */ notificationIconColor?: string; - /** - * ANDROID ONLY - * The filename of a custom notification icon. See android quirks. - * NOTE: Only available for API Level >=21. + /**
 + * ANDROID ONLY
 + * The filename of a custom notification icon. See android quirks.
 + * NOTE: Only available for API Level >=21.
 */ notificationIconLarge?: string; - /** - * ANDROID ONLY - * The filename of a custom notification icon. See android quirks. - * NOTE: Only available for API Level >=21. + /**
 + * ANDROID ONLY
 + * The filename of a custom notification icon. See android quirks.
 + * NOTE: Only available for API Level >=21.
 */ notificationIconSmall?: string; @@ -181,50 +183,50 @@ export interface BackgroundGeolocationConfig { */ activityType?: string; - /** - * IOS ONLY - * Pauses location updates when app is paused + /**
 + * IOS ONLY
 + * Pauses location updates when app is paused
 * - * Defaults to true + * Defaults to true
 */ pauseLocationUpdates?: boolean; - /** - * Server url where to send HTTP POST with recorded locations - * @see https://github.com/mauron85/cordova-plugin-background-geolocation#http-locations-posting + /**
 + * Server url where to send HTTP POST with recorded locations
 + * @see https://github.com/mauron85/cordova-plugin-background-geolocation#http-locations-posting
 */ url?: string; - /** - * Server url where to send fail to post locations - * @see https://github.com/mauron85/cordova-plugin-background-geolocation#http-locations-posting + /**
 + * Server url where to send fail to post locations
 + * @see https://github.com/mauron85/cordova-plugin-background-geolocation#http-locations-posting
 */ syncUrl?: string; /** - * Specifies how many previously failed locations will be sent to server at once + * Specifies how many previously failed locations will be sent to server at once
 * - * Defaults to 100 + * Defaults to 100
 */ syncThreshold?: number; - /** - * Optional HTTP headers sent along in HTTP request + /**
 + * Optional HTTP headers sent along in HTTP request
 */ httpHeaders?: any; /** - * IOS ONLY + * IOS ONLY
 * Switch to less accurate significant changes and region monitory when in background (default) * - * Defaults to 100 + * Defaults to 100
 */ saveBatteryOnBackground?: boolean; - /** - * Limit maximum number of locations stored into db + /**
 + * Limit maximum number of locations stored into db
 * - * Defaults to 10000 + * Defaults to 10000
 */ maxLocations?: number; @@ -308,14 +310,15 @@ export interface BackgroundGeolocationConfig { }) @Injectable() export class BackgroundGeolocation extends IonicNativePlugin { - /** - * Set location service provider @see https://github.com/mauron85/cordova-plugin-background-geolocation/wiki/Android-providers + + /**
 + * Set location service provider @see https://github.com/mauron85/cordova-plugin-background-geolocation/wiki/Android-providers
 * * Possible values: - * ANDROID_DISTANCE_FILTER_PROVIDER: 0, - * ANDROID_ACTIVITY_PROVIDER: 1 + * ANDROID_DISTANCE_FILTER_PROVIDER: 0,
 + * ANDROID_ACTIVITY_PROVIDER: 1
 * - * @enum {number} + * @enum {number}
 */ LocationProvider: any = { ANDROID_DISTANCE_FILTER_PROVIDER: 0, @@ -323,17 +326,17 @@ export class BackgroundGeolocation extends IonicNativePlugin { }; /** - * Desired accuracy in meters. Possible values [0, 10, 100, 1000]. - * The lower the number, the more power devoted to GeoLocation resulting in higher accuracy readings. - * 1000 results in lowest power drain and least accurate readings. + * Desired accuracy in meters. Possible values [0, 10, 100, 1000].
 + * The lower the number, the more power devoted to GeoLocation resulting in higher accuracy readings.
 + * 1000 results in lowest power drain and least accurate readings.
 * * Possible values: - * HIGH: 0 - * MEDIUM: 10 - * LOW: 100 + * HIGH: 0
 + * MEDIUM: 10
 + * LOW: 100
 * PASSIVE: 1000 * - * enum {number} + * enum {number}
 */ Accuracy: any = { HIGH: 0, @@ -342,14 +345,14 @@ export class BackgroundGeolocation extends IonicNativePlugin { PASSIVE: 1000 }; - /** - * Used in the switchMode function + /**
 + * Used in the switchMode function
 * * Possible values: * BACKGROUND: 0 - * FOREGROUND: 1 + * FOREGROUND: 1
 * - * @enum {number} + * @enum {number}
 */ Mode: any = { BACKGROUND: 0, @@ -366,11 +369,7 @@ export class BackgroundGeolocation extends IonicNativePlugin { callbackOrder: 'reverse', observable: true }) - configure( - options: BackgroundGeolocationConfig - ): Observable { - return; - } + configure(options: BackgroundGeolocationConfig): Observable { return; } /** * Turn ON the background-geolocation system. @@ -378,18 +377,14 @@ export class BackgroundGeolocation extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - start(): Promise { - return; - } + start(): Promise { return; } /** * Turn OFF background-tracking * @returns {Promise} */ @Cordova() - stop(): Promise { - return; - } + stop(): Promise { return; } /** * Inform the native plugin that you're finished, the background-task may be completed @@ -398,9 +393,7 @@ export class BackgroundGeolocation extends IonicNativePlugin { @Cordova({ platforms: ['iOS'] }) - finish(): Promise { - return; - } + finish(): Promise { return; } /** * Force the plugin to enter "moving" or "stationary" state @@ -410,9 +403,7 @@ export class BackgroundGeolocation extends IonicNativePlugin { @Cordova({ platforms: ['iOS'] }) - changePace(isMoving: boolean): Promise { - return; - } + changePace(isMoving: boolean): Promise { return; } /** * Setup configuration @@ -422,9 +413,7 @@ export class BackgroundGeolocation extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - setConfig(options: BackgroundGeolocationConfig): Promise { - return; - } + setConfig(options: BackgroundGeolocationConfig): Promise { return; } /** * Returns current stationaryLocation if available. null if not @@ -433,9 +422,7 @@ export class BackgroundGeolocation extends IonicNativePlugin { @Cordova({ platforms: ['iOS'] }) - getStationaryLocation(): Promise { - return; - } + getStationaryLocation(): Promise { return; } /** * Add a stationary-region listener. Whenever the devices enters "stationary-mode", @@ -445,9 +432,7 @@ export class BackgroundGeolocation extends IonicNativePlugin { @Cordova({ platforms: ['iOS'] }) - onStationary(): Promise { - return; - } + onStationary(): Promise { return; } /** * Check if location is enabled on the device @@ -456,21 +441,19 @@ export class BackgroundGeolocation extends IonicNativePlugin { @Cordova({ platforms: ['Android'] }) - isLocationEnabled(): Promise { - return; - } + isLocationEnabled(): Promise { return; } /** * Display app settings to change permissions */ @Cordova({ sync: true }) - showAppSettings(): void {} + showAppSettings(): void { } /** * Display device location settings */ @Cordova({ sync: true }) - showLocationSettings(): void {} + showLocationSettings(): void { } /** * Method can be used to detect user changes in location services settings. @@ -481,9 +464,7 @@ export class BackgroundGeolocation extends IonicNativePlugin { @Cordova({ platforms: ['Android'] }) - watchLocationMode(): Promise { - return; - } + watchLocationMode(): Promise { return; } /** * Stop watching for location mode changes. @@ -492,9 +473,7 @@ export class BackgroundGeolocation extends IonicNativePlugin { @Cordova({ platforms: ['Android'] }) - stopWatchingLocationMode(): Promise { - return; - } + stopWatchingLocationMode(): Promise { return; } /** * Method will return all stored locations. @@ -508,18 +487,14 @@ export class BackgroundGeolocation extends IonicNativePlugin { @Cordova({ platforms: ['Android'] }) - getLocations(): Promise { - return; - } + getLocations(): Promise { return; } - /** - * Method will return locations, which has not been yet posted to server. NOTE: Locations does contain locationId. + /**
 + * Method will return locations, which has not been yet posted to server. NOTE: Locations does contain locationId.
 * @returns {Promise} */ @Cordova() - getValidLocations(): Promise { - return; - } + getValidLocations(): Promise { return; } /** * Delete stored location by given locationId. @@ -529,9 +504,7 @@ export class BackgroundGeolocation extends IonicNativePlugin { @Cordova({ platforms: ['Android'] }) - deleteLocation(locationId: number): Promise { - return; - } + deleteLocation(locationId: number): Promise { return; } /** * Delete all stored locations. @@ -540,19 +513,17 @@ export class BackgroundGeolocation extends IonicNativePlugin { @Cordova({ platforms: ['Android'] }) - deleteAllLocations(): Promise { - return; - } + deleteAllLocations(): Promise { return; } /** * Normally plugin will handle switching between BACKGROUND and FOREGROUND mode itself. * Calling switchMode you can override plugin behavior and force plugin to switch into other mode. * * In FOREGROUND mode plugin uses iOS local manager to receive locations and behavior is affected by option.desiredAccuracy and option.distanceFilter. - * In BACKGROUND mode plugin uses significant changes and region monitoring to receive locations and uses option.stationaryRadius only. + * In BACKGROUND mode plugin uses significant changes and region monitoring to receive locations and uses option.stationaryRadius only.
 * * BackgroundGeolocation.Mode.FOREGROUND - * BackgroundGeolocation.Mode.BACKGROUND + * BackgroundGeolocation.Mode.BACKGROUND
 ** * @param modeId {number} * @returns {Promise} @@ -560,19 +531,16 @@ export class BackgroundGeolocation extends IonicNativePlugin { @Cordova({ platforms: ['iOS'] }) - switchMode(modeId: number): Promise { - return; - } + switchMode(modeId: number): Promise { return; } - /** - * Return all logged events. Useful for plugin debugging. Parameter limit limits number of returned entries. - * @see https://github.com/mauron85/cordova-plugin-background-geolocation/tree/v2.2.1#debugging for more information. + /**
 + * Return all logged events. Useful for plugin debugging. Parameter limit limits number of returned entries.
 + * @see https://github.com/mauron85/cordova-plugin-background-geolocation/tree/v2.2.1#debugging for more information.
 * - * @param limit {number} Limits the number of entries + * @param limit {number} Limits the number of entries
 * @returns {Promise} */ @Cordova() - getLogEntries(limit: number): Promise { - return; - } + getLogEntries(limit: number): Promise { return; } + } diff --git a/src/@ionic-native/plugins/background-mode/index.ts b/src/@ionic-native/plugins/background-mode/index.ts index 62b2ccdb5..2d353b7a1 100644 --- a/src/@ionic-native/plugins/background-mode/index.ts +++ b/src/@ionic-native/plugins/background-mode/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; /** diff --git a/src/@ionic-native/plugins/backlight/index.ts b/src/@ionic-native/plugins/backlight/index.ts index 6980995fe..ab9c638da 100644 --- a/src/@ionic-native/plugins/backlight/index.ts +++ b/src/@ionic-native/plugins/backlight/index.ts @@ -1,5 +1,6 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; + /** * @beta @@ -32,21 +33,19 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; }) @Injectable() export class Backlight extends IonicNativePlugin { + /** * This function turns backlight on * @return {Promise} Returns a promise that resolves when the backlight is on */ @Cordova() - on(): Promise { - return; - } + on(): Promise { return; } /** * This function turns backlight off * @return {Promise} Returns a promise that resolves when the backlight is off */ @Cordova() - off(): Promise { - return; - } + off(): Promise { return; } + } diff --git a/src/@ionic-native/plugins/badge/index.ts b/src/@ionic-native/plugins/badge/index.ts index 53eb5b530..eb4828fe5 100644 --- a/src/@ionic-native/plugins/badge/index.ts +++ b/src/@ionic-native/plugins/badge/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; /** * @name Badge diff --git a/src/@ionic-native/plugins/base64/index.ts b/src/@ionic-native/plugins/base64/index.ts index ed09b48b8..c43fda67d 100644 --- a/src/@ionic-native/plugins/base64/index.ts +++ b/src/@ionic-native/plugins/base64/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; /** * @beta @@ -33,13 +33,13 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; }) @Injectable() export class Base64 extends IonicNativePlugin { + /** * This function encodes base64 of any file * @param {string} filePath Absolute file path * @return {Promise} Returns a promise that resolves when the file is successfully encoded */ @Cordova() - encodeFile(filePath: string): Promise { - return; - } + encodeFile(filePath: string): Promise { return; } + } diff --git a/src/@ionic-native/plugins/bluetooth-serial/index.ts b/src/@ionic-native/plugins/bluetooth-serial/index.ts index 74d67e4a2..7dfaeedff 100644 --- a/src/@ionic-native/plugins/bluetooth-serial/index.ts +++ b/src/@ionic-native/plugins/bluetooth-serial/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; /** @@ -39,6 +39,7 @@ import { Observable } from 'rxjs/Observable'; }) @Injectable() export class BluetoothSerial extends IonicNativePlugin { + /** * Connect to a Bluetooth device * @param {string} macAddress_or_uuid Identifier of the remote device @@ -49,9 +50,7 @@ export class BluetoothSerial extends IonicNativePlugin { observable: true, clearFunction: 'disconnect' }) - connect(macAddress_or_uuid: string): Observable { - return; - } + connect(macAddress_or_uuid: string): Observable { return; } /** * Connect insecurely to a Bluetooth device @@ -63,18 +62,14 @@ export class BluetoothSerial extends IonicNativePlugin { observable: true, clearFunction: 'disconnect' }) - connectInsecure(macAddress: string): Observable { - return; - } + connectInsecure(macAddress: string): Observable { return; } /** * Disconnect from the connected device * @returns {Promise} */ @Cordova() - disconnect(): Promise { - return; - } + disconnect(): Promise { return; } /** * Writes data to the serial port @@ -84,9 +79,7 @@ export class BluetoothSerial extends IonicNativePlugin { @Cordova({ platforms: ['Android', 'iOS', 'Windows Phone'] }) - write(data: any): Promise { - return; - } + write(data: any): Promise { return; } /** * Gets the number of bytes of data available @@ -94,10 +87,7 @@ export class BluetoothSerial extends IonicNativePlugin { */ @Cordova({ platforms: ['Android', 'iOS', 'Windows Phone'] - }) - available(): Promise { - return; - } + }) available(): Promise { return; } /** * Reads data from the buffer @@ -106,9 +96,7 @@ export class BluetoothSerial extends IonicNativePlugin { @Cordova({ platforms: ['Android', 'iOS', 'Windows Phone'] }) - read(): Promise { - return; - } + read(): Promise { return; } /** * Reads data from the buffer until it reaches a delimiter @@ -118,9 +106,7 @@ export class BluetoothSerial extends IonicNativePlugin { @Cordova({ platforms: ['Android', 'iOS', 'Windows Phone'] }) - readUntil(delimiter: string): Promise { - return; - } + readUntil(delimiter: string): Promise { return; } /** * Subscribe to be notified when data is received @@ -132,9 +118,7 @@ export class BluetoothSerial extends IonicNativePlugin { observable: true, clearFunction: 'unsubscribe' }) - subscribe(delimiter: string): Observable { - return; - } + subscribe(delimiter: string): Observable { return; } /** * Subscribe to be notified when data is received @@ -145,9 +129,7 @@ export class BluetoothSerial extends IonicNativePlugin { observable: true, clearFunction: 'unsubscribeRawData' }) - subscribeRawData(): Observable { - return; - } + subscribeRawData(): Observable { return; } /** * Clears data in buffer @@ -156,9 +138,7 @@ export class BluetoothSerial extends IonicNativePlugin { @Cordova({ platforms: ['Android', 'iOS', 'Windows Phone'] }) - clear(): Promise { - return; - } + clear(): Promise { return; } /** * Lists bonded devices @@ -167,9 +147,7 @@ export class BluetoothSerial extends IonicNativePlugin { @Cordova({ platforms: ['Android', 'iOS', 'Windows Phone'] }) - list(): Promise { - return; - } + list(): Promise { return; } /** * Reports if bluetooth is enabled @@ -178,9 +156,7 @@ export class BluetoothSerial extends IonicNativePlugin { @Cordova({ platforms: ['Android', 'iOS', 'Windows Phone'] }) - isEnabled(): Promise { - return; - } + isEnabled(): Promise { return; } /** * Reports the connection status @@ -189,9 +165,7 @@ export class BluetoothSerial extends IonicNativePlugin { @Cordova({ platforms: ['Android', 'iOS', 'Windows Phone'] }) - isConnected(): Promise { - return; - } + isConnected(): Promise { return; } /** * Reads the RSSI from the connected peripheral @@ -200,9 +174,7 @@ export class BluetoothSerial extends IonicNativePlugin { @Cordova({ platforms: ['Android', 'iOS', 'Windows Phone'] }) - readRSSI(): Promise { - return; - } + readRSSI(): Promise { return; } /** * Show the Bluetooth settings on the device @@ -211,9 +183,7 @@ export class BluetoothSerial extends IonicNativePlugin { @Cordova({ platforms: ['Android', 'iOS', 'Windows Phone'] }) - showBluetoothSettings(): Promise { - return; - } + showBluetoothSettings(): Promise { return; } /** * Enable Bluetooth on the device @@ -222,9 +192,7 @@ export class BluetoothSerial extends IonicNativePlugin { @Cordova({ platforms: ['Android', 'iOS', 'Windows Phone'] }) - enable(): Promise { - return; - } + enable(): Promise { return; } /** * Discover unpaired devices @@ -233,9 +201,7 @@ export class BluetoothSerial extends IonicNativePlugin { @Cordova({ platforms: ['Android', 'iOS', 'Windows Phone'] }) - discoverUnpaired(): Promise { - return; - } + discoverUnpaired(): Promise { return; } /** * Subscribe to be notified on Bluetooth device discovery. Discovery process must be initiated with the `discoverUnpaired` function. @@ -246,9 +212,7 @@ export class BluetoothSerial extends IonicNativePlugin { observable: true, clearFunction: 'clearDeviceDiscoveredListener' }) - setDeviceDiscoveredListener(): Observable { - return; - } + setDeviceDiscoveredListener(): Observable { return; } /** * Sets the human readable device name that is broadcasted to other devices @@ -258,7 +222,7 @@ export class BluetoothSerial extends IonicNativePlugin { platforms: ['Android'], sync: true }) - setName(newName: string): void {} + setName(newName: string): void { } /** * Makes the device discoverable by other devices @@ -268,5 +232,6 @@ export class BluetoothSerial extends IonicNativePlugin { platforms: ['Android'], sync: true }) - setDiscoverable(discoverableDuration: number): void {} + setDiscoverable(discoverableDuration: number): void { } + } diff --git a/src/@ionic-native/plugins/braintree/index.ts b/src/@ionic-native/plugins/braintree/index.ts index 4ab1f9c88..dd805ff9c 100644 --- a/src/@ionic-native/plugins/braintree/index.ts +++ b/src/@ionic-native/plugins/braintree/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; /** * Options for the setupApplePay method. @@ -116,7 +116,8 @@ export interface PaymentUIResult { /** * Information about the Apple Pay card used to complete a payment (if Apple Pay was used). */ - applePaycard: {}; + applePaycard: { + }; /** * Information about 3D Secure card used to complete a payment (if 3D Secure was used). @@ -200,12 +201,12 @@ export interface PaymentUIResult { pluginRef: 'BraintreePlugin', repo: 'https://github.com/taracque/cordova-plugin-braintree', platforms: ['Android', 'iOS'], - install: - 'ionic cordova plugin add https://github.com/taracque/cordova-plugin-braintree', - installVariables: [] + install: 'ionic cordova plugin add https://github.com/taracque/cordova-plugin-braintree', + installVariables: [], }) @Injectable() export class Braintree extends IonicNativePlugin { + /** * Used to initialize the Braintree client. This function must be called before other methods can be used. * As the initialize code is async, be sure you call all Braintree related methods after the initialize promise has resolved. @@ -214,11 +215,9 @@ export class Braintree extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves with undefined on successful initialization, or rejects with a string message describing the failure. */ @Cordova({ - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) - initialize(token: string): Promise { - return; - } + initialize(token: string): Promise { return; } /** * Used to configure Apple Pay on iOS. @@ -233,11 +232,9 @@ export class Braintree extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves with undefined on successful initialization, or rejects with a string message describing the failure. */ @Cordova({ - platforms: ['iOS'] + platforms: ['iOS'], }) - setupApplePay(options: ApplePayOptions): Promise { - return; - } + setupApplePay(options: ApplePayOptions): Promise { return; } /** * Shows Braintree's Drop-In Payments UI. @@ -247,11 +244,7 @@ export class Braintree extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves with a PaymentUIResult object on successful payment (or the user cancels), or rejects with a string message describing the failure. */ @Cordova({ - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) - presentDropInPaymentUI( - options?: PaymentUIOptions - ): Promise { - return; - } + presentDropInPaymentUI(options?: PaymentUIOptions): Promise { return; } } diff --git a/src/@ionic-native/plugins/broadcaster/index.ts b/src/@ionic-native/plugins/broadcaster/index.ts index 2d895a204..8aabbb902 100644 --- a/src/@ionic-native/plugins/broadcaster/index.ts +++ b/src/@ionic-native/plugins/broadcaster/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; /** @@ -32,6 +32,7 @@ import { Observable } from 'rxjs/Observable'; }) @Injectable() export class Broadcaster extends IonicNativePlugin { + /** * This function listen to an event sent from the native code * @param eventName {string} @@ -42,9 +43,7 @@ export class Broadcaster extends IonicNativePlugin { clearFunction: 'removeEventListener', clearWithArgs: true }) - addEventListener(eventName: string): Observable { - return; - } + addEventListener(eventName: string): Observable { return; } /** * This function sends data to the native code @@ -53,7 +52,6 @@ export class Broadcaster extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves when an event is successfully fired */ @Cordova() - fireNativeEvent(eventName: string, eventData: any): Promise { - return; - } + fireNativeEvent(eventName: string, eventData: any): Promise { return; } + } diff --git a/src/@ionic-native/plugins/browser-tab/index.ts b/src/@ionic-native/plugins/browser-tab/index.ts index e85e3dc2c..d41848c07 100644 --- a/src/@ionic-native/plugins/browser-tab/index.ts +++ b/src/@ionic-native/plugins/browser-tab/index.ts @@ -1,5 +1,5 @@ +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name Browser Tab @@ -41,14 +41,13 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; }) @Injectable() export class BrowserTab extends IonicNativePlugin { + /** * Check if BrowserTab option is available * @return {Promise} Returns a promise that resolves when check is successful and returns true or false */ @Cordova() - isAvailable(): Promise { - return; - } + isAvailable(): Promise { return; } /** * Opens the provided URL using a browser tab @@ -56,16 +55,12 @@ export class BrowserTab extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves when check open was successful */ @Cordova() - openUrl(url: string): Promise { - return; - } + openUrl(url: string): Promise { return; } /** * Closes browser tab * @return {Promise} Returns a promise that resolves when close was finished */ @Cordova() - close(): Promise { - return; - } + close(): Promise { return; } } diff --git a/src/@ionic-native/plugins/camera-preview/index.ts b/src/@ionic-native/plugins/camera-preview/index.ts index f783a2d78..4545d9635 100644 --- a/src/@ionic-native/plugins/camera-preview/index.ts +++ b/src/@ionic-native/plugins/camera-preview/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; export interface CameraPreviewDimensions { /** The width of the camera preview, default to window.screen.width */ @@ -131,12 +131,12 @@ export interface CameraPreviewPictureOptions { pluginName: 'CameraPreview', plugin: 'cordova-plugin-camera-preview', pluginRef: 'CameraPreview', - repo: - 'https://github.com/cordova-plugin-camera-preview/cordova-plugin-camera-preview', + repo: 'https://github.com/cordova-plugin-camera-preview/cordova-plugin-camera-preview', platforms: ['Android', 'iOS'] }) @Injectable() export class CameraPreview extends IonicNativePlugin { + FOCUS_MODE = { FIXED: 'fixed', AUTO: 'auto', @@ -189,45 +189,35 @@ export class CameraPreview extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - startCamera(options: CameraPreviewOptions): Promise { - return; - } + startCamera(options: CameraPreviewOptions): Promise { return; } /** * Stops the camera preview instance. (iOS & Android) * @return {Promise} */ @Cordova() - stopCamera(): Promise { - return; - } + stopCamera(): Promise { return; } /** * Switch from the rear camera and front camera, if available. * @return {Promise} */ @Cordova() - switchCamera(): Promise { - return; - } + switchCamera(): Promise { return; } /** * Hide the camera preview box. * @return {Promise} */ @Cordova() - hide(): Promise { - return; - } + hide(): Promise { return; } /** * Show the camera preview box. * @return {Promise} */ @Cordova() - show(): Promise { - return; - } + show(): Promise { return; } /** * Take the picture (base64) @@ -238,9 +228,7 @@ export class CameraPreview extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - takePicture(options?: CameraPreviewPictureOptions): Promise { - return; - } + takePicture(options?: CameraPreviewPictureOptions): Promise { return; } /** * @@ -253,9 +241,7 @@ export class CameraPreview extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - setColorEffect(effect: string): Promise { - return; - } + setColorEffect(effect: string): Promise { return; } /** * Set the zoom (Android) @@ -266,27 +252,21 @@ export class CameraPreview extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - setZoom(zoom?: number): Promise { - return; - } + setZoom(zoom?: number): Promise { return; } /** - * Get the maximum zoom (Android) - * @return {Promise} - */ + * Get the maximum zoom (Android) + * @return {Promise} + */ @Cordova() - getMaxZoom(): Promise { - return; - } + getMaxZoom(): Promise { return; } /** * Get current zoom (Android) * @return {Promise} */ @Cordova() - getZoom(): Promise { - return; - } + getZoom(): Promise { return; } /** * Set the preview Size @@ -297,18 +277,14 @@ export class CameraPreview extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - setPreviewSize(dimensions?: CameraPreviewDimensions): Promise { - return; - } + setPreviewSize(dimensions?: CameraPreviewDimensions): Promise { return; } /** * Get focus mode * @return {Promise} */ @Cordova() - getFocusMode(): Promise { - return; - } + getFocusMode(): Promise { return; } /** * Set the focus mode @@ -319,27 +295,21 @@ export class CameraPreview extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - setFocusMode(focusMode?: string): Promise { - return; - } + setFocusMode(focusMode?: string): Promise { return; } /** * Get supported focus modes * @return {Promise} */ @Cordova() - getSupportedFocusModes(): Promise { - return; - } + getSupportedFocusModes(): Promise { return; } /** * Get the current flash mode * @return {Promise} */ @Cordova() - getFlashMode(): Promise { - return; - } + getFlashMode(): Promise { return; } /** * Set the flashmode @@ -350,45 +320,35 @@ export class CameraPreview extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - setFlashMode(flashMode?: string): Promise { - return; - } + setFlashMode(flashMode?: string): Promise { return; } /** * Get supported flash modes * @return {Promise} */ @Cordova() - getSupportedFlashModes(): Promise { - return; - } + getSupportedFlashModes(): Promise { return; } /** * Get supported picture sizes * @return {Promise} */ @Cordova() - getSupportedPictureSizes(): Promise { - return; - } + getSupportedPictureSizes(): Promise { return; } /** * Get exposure mode * @return {Promise} */ @Cordova() - getExposureMode(): Promise { - return; - } + getExposureMode(): Promise { return; } /** * Get exposure modes * @return {Promise} */ @Cordova() - getExposureModes(): Promise { - return; - } + getExposureModes(): Promise { return; } /** * Set exposure mode @@ -399,18 +359,14 @@ export class CameraPreview extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - setExposureMode(lock?: string): Promise { - return; - } + setExposureMode(lock?: string): Promise { return; } /** * Get exposure compensation (Android) * @return {Promise} */ @Cordova() - getExposureCompensation(): Promise { - return; - } + getExposureCompensation(): Promise { return; } /** * Set exposure compensation (Android) @@ -421,18 +377,14 @@ export class CameraPreview extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - setExposureCompensation(exposureCompensation?: number): Promise { - return; - } + setExposureCompensation(exposureCompensation?: number): Promise { return; } /** * Get exposure compensation range (Android) * @return {Promise} */ @Cordova() - getExposureCompensationRange(): Promise { - return; - } + getExposureCompensationRange(): Promise { return; } /** * Set specific focus point. Note, this assumes the camera is full-screen. @@ -441,7 +393,6 @@ export class CameraPreview extends IonicNativePlugin { * @return {Promise} */ @Cordova() - tapToFocus(xPoint: number, yPoint: number): Promise { - return; - } + tapToFocus(xPoint: number, yPoint: number): Promise { return; } + } diff --git a/src/@ionic-native/plugins/camera/index.ts b/src/@ionic-native/plugins/camera/index.ts index ddb0a02d5..5afb20219 100644 --- a/src/@ionic-native/plugins/camera/index.ts +++ b/src/@ionic-native/plugins/camera/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; export interface CameraOptions { /** Picture quality in range 0-100. Default is 50 */ @@ -33,7 +33,7 @@ export interface CameraOptions { /** * Width in pixels to scale image. Must be used with targetHeight. * Aspect ratio remains constant. - */ + */ targetWidth?: number; /** * Height in pixels to scale image. Must be used with targetWidth. @@ -165,6 +165,7 @@ export enum Direction { }) @Injectable() export class Camera extends IonicNativePlugin { + /** * Constant for possible destination types */ @@ -199,6 +200,7 @@ export class Camera extends IonicNativePlugin { ALLMEDIA: 2 }; + /** * Convenience constant */ @@ -211,6 +213,7 @@ export class Camera extends IonicNativePlugin { SAVEDPHOTOALBUM: 2 }; + /** * Convenience constant */ @@ -240,9 +243,7 @@ export class Camera extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - getPicture(options?: CameraOptions): Promise { - return; - } + getPicture(options?: CameraOptions): Promise { return; } /** * Remove intermediate image files that are kept in temporary storage after calling camera.getPicture. @@ -252,7 +253,6 @@ export class Camera extends IonicNativePlugin { @Cordova({ platforms: ['iOS'] }) - cleanup(): Promise { - return; - } + cleanup(): Promise { return; }; + } diff --git a/src/@ionic-native/plugins/card-io/index.ts b/src/@ionic-native/plugins/card-io/index.ts index 4fccf4a15..5d96b76e5 100644 --- a/src/@ionic-native/plugins/card-io/index.ts +++ b/src/@ionic-native/plugins/card-io/index.ts @@ -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 CardIOOptions { + /** * Set to true to require expiry date */ @@ -81,9 +82,11 @@ export interface CardIOOptions { * Once a card image has been captured but before it has been processed, this value will determine whether to continue processing as usual. */ supressScan?: boolean; + } export interface CardIOResponse { + /** * Card type */ @@ -123,6 +126,7 @@ export interface CardIOResponse { * Cardholder name */ cardholderName: string; + } /** @@ -169,6 +173,7 @@ export interface CardIOResponse { }) @Injectable() export class CardIO extends IonicNativePlugin { + /** * Check whether card scanning is currently available. (May vary by * device, OS version, network connectivity, etc.) @@ -176,9 +181,7 @@ export class CardIO extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - canScan(): Promise { - return; - } + canScan(): Promise { return; } /** * Scan a credit card with card.io. @@ -186,16 +189,13 @@ export class CardIO extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - scan(options?: CardIOOptions): Promise { - return; - } + scan(options?: CardIOOptions): Promise { return; } /** * Retrieve the version of the card.io library. Useful when contacting support. * @returns {Promise} */ @Cordova() - version(): Promise { - return; - } + version(): Promise { return; } + } diff --git a/src/@ionic-native/plugins/clipboard/index.ts b/src/@ionic-native/plugins/clipboard/index.ts index ce3b0900c..1070bf6da 100644 --- a/src/@ionic-native/plugins/clipboard/index.ts +++ b/src/@ionic-native/plugins/clipboard/index.ts @@ -1,6 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; - +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; /** * @name Clipboard * @description @@ -37,22 +36,20 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; }) @Injectable() export class Clipboard extends IonicNativePlugin { + /** * Copies the given text * @param {string} text Text that gets copied on the system clipboard * @returns {Promise} Returns a promise after the text has been copied */ @Cordova() - copy(text: string): Promise { - return; - } + copy(text: string): Promise { return; } /** * Pastes the text stored in clipboard * @returns {Promise} Returns a promise after the text has been pasted */ @Cordova() - paste(): Promise { - return; - } + paste(): Promise { return; } + } diff --git a/src/@ionic-native/plugins/code-push/index.ts b/src/@ionic-native/plugins/code-push/index.ts index b446cde2f..6db99ce70 100644 --- a/src/@ionic-native/plugins/code-push/index.ts +++ b/src/@ionic-native/plugins/code-push/index.ts @@ -1,18 +1,9 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; - namespace Http { export const enum Verb { - GET, - HEAD, - POST, - PUT, - DELETE, - TRACE, - OPTIONS, - CONNECT, - PATCH + GET, HEAD, POST, PUT, DELETE, TRACE, OPTIONS, CONNECT, PATCH } export interface Response { @@ -22,12 +13,7 @@ namespace Http { export interface Requester { request(verb: Verb, url: string, callback: Callback): void; - request( - verb: Verb, - url: string, - requestBody: string, - callback: Callback - ): void; + request(verb: Verb, url: string, requestBody: string, callback: Callback): void; } } @@ -64,11 +50,7 @@ export interface IRemotePackage extends IPackage { * @param downloadError Optional callback invoked in case of an error. * @param downloadProgress Optional callback invoked during the download process. It is called several times with one DownloadProgress parameter. */ - download( - downloadSuccess: SuccessCallback, - downloadError?: ErrorCallback, - downloadProgress?: SuccessCallback - ): void; + download(downloadSuccess: SuccessCallback, downloadError?: ErrorCallback, downloadProgress?: SuccessCallback): void; /** * Aborts the current download session, previously started with download(). @@ -76,10 +58,7 @@ export interface IRemotePackage extends IPackage { * @param abortSuccess Optional callback invoked if the abort operation succeeded. * @param abortError Optional callback invoked in case of an error. */ - abortDownload( - abortSuccess?: SuccessCallback, - abortError?: ErrorCallback - ): void; + abortDownload(abortSuccess?: SuccessCallback, abortError?: ErrorCallback): void; } /** @@ -107,11 +86,7 @@ export interface ILocalPackage extends IPackage { * @param installError Optional callback inovoked in case of an error. * @param installOptions Optional parameter used for customizing the installation behavior. */ - install( - installSuccess: SuccessCallback, - errorCallback?: ErrorCallback, - installOptions?: InstallOptions - ): void; + install(installSuccess: SuccessCallback, errorCallback?: ErrorCallback, installOptions?: InstallOptions): void; } /** @@ -148,19 +123,13 @@ interface IPackageInfoMetadata extends ILocalPackage { } interface NativeUpdateNotification { - updateAppVersion: boolean; // Always true + updateAppVersion: boolean; // Always true appVersion: string; } -export interface Callback { - (error: Error, parameter: T): void; -} -export interface SuccessCallback { - (result?: T): void; -} -export interface ErrorCallback { - (error?: Error): void; -} +export interface Callback { (error: Error, parameter: T): void; } +export interface SuccessCallback { (result?: T): void; } +export interface ErrorCallback { (error?: Error): void; } interface Configuration { appVersion: string; @@ -177,40 +146,26 @@ declare class AcquisitionStatus { declare class AcquisitionManager { constructor(httpRequester: Http.Requester, configuration: Configuration); - public queryUpdateWithCurrentPackage( - currentPackage: IPackage, - callback?: Callback - ): void; - public reportStatusDeploy( - pkg?: IPackage, - status?: string, - previousLabelOrAppVersion?: string, - previousDeploymentKey?: string, - callback?: Callback - ): void; + public queryUpdateWithCurrentPackage(currentPackage: IPackage, callback?: Callback): void; + public reportStatusDeploy(pkg?: IPackage, status?: string, previousLabelOrAppVersion?: string, previousDeploymentKey?: string, callback?: Callback): void; public reportStatusDownload(pkg: IPackage, callback?: Callback): void; } interface CodePushCordovaPlugin { + /** * Get the current package information. * * @param packageSuccess Callback invoked with the currently deployed package information. * @param packageError Optional callback invoked in case of an error. */ - getCurrentPackage( - packageSuccess: SuccessCallback, - packageError?: ErrorCallback - ): void; + getCurrentPackage(packageSuccess: SuccessCallback, packageError?: ErrorCallback): void; /** * Gets the pending package information, if any. A pending package is one that has been installed but the application still runs the old code. * This happends only after a package has been installed using ON_NEXT_RESTART or ON_NEXT_RESUME mode, but the application was not restarted/resumed yet. */ - getPendingPackage( - packageSuccess: SuccessCallback, - packageError?: ErrorCallback - ): void; + getPendingPackage(packageSuccess: SuccessCallback, packageError?: ErrorCallback): void; /** * Checks with the CodePush server if an update package is available for download. @@ -221,11 +176,7 @@ interface CodePushCordovaPlugin { * @param queryError Optional callback invoked in case of an error. * @param deploymentKey Optional deployment key that overrides the config.xml setting. */ - checkForUpdate( - querySuccess: SuccessCallback, - queryError?: ErrorCallback, - deploymentKey?: string - ): void; + checkForUpdate(querySuccess: SuccessCallback, queryError?: ErrorCallback, deploymentKey?: string): void; /** * Notifies the plugin that the update operation succeeded and that the application is ready. @@ -235,19 +186,13 @@ interface CodePushCordovaPlugin { * @param notifySucceeded Optional callback invoked if the plugin was successfully notified. * @param notifyFailed Optional callback invoked in case of an error during notifying the plugin. */ - notifyApplicationReady( - notifySucceeded?: SuccessCallback, - notifyFailed?: ErrorCallback - ): void; + notifyApplicationReady(notifySucceeded?: SuccessCallback, notifyFailed?: ErrorCallback): void; /** * Reloads the application. If there is a pending update package installed using ON_NEXT_RESTART or ON_NEXT_RESUME modes, the update * will be immediately visible to the user. Otherwise, calling this function will simply reload the current version of the application. */ - restartApplication( - installSuccess: SuccessCallback, - errorCallback?: ErrorCallback - ): void; + restartApplication(installSuccess: SuccessCallback, errorCallback?: ErrorCallback): void; /** * Convenience method for installing updates in one method call. @@ -270,11 +215,7 @@ interface CodePushCordovaPlugin { * @param downloadProgress Optional callback invoked during the download process. It is called several times with one DownloadProgress parameter. * */ - sync( - syncCallback?: SuccessCallback, - syncOptions?: SyncOptions, - downloadProgress?: SuccessCallback - ): void; + sync(syncCallback?: SuccessCallback, syncOptions?: SyncOptions, downloadProgress?: SuccessCallback): void; } /** @@ -487,6 +428,7 @@ export interface DownloadProgress { }) @Injectable() export class CodePush extends IonicNativePlugin { + /** * Get the current package information. * @@ -576,10 +518,8 @@ export class CodePush extends IonicNativePlugin { successIndex: 0, errorIndex: 3 // we don't need this, so we set it to a value higher than # of args }) - sync( - syncOptions?: SyncOptions, - downloadProgress?: SuccessCallback - ): Observable { + sync(syncOptions?: SyncOptions, downloadProgress?: SuccessCallback): Observable { return; } + } diff --git a/src/@ionic-native/plugins/contacts/index.ts b/src/@ionic-native/plugins/contacts/index.ts index b52c2e416..495703233 100644 --- a/src/@ionic-native/plugins/contacts/index.ts +++ b/src/@ionic-native/plugins/contacts/index.ts @@ -1,47 +1,12 @@ -import { - checkAvailability, - CordovaCheck, - CordovaInstance, - getPromise, - InstanceCheck, - InstanceProperty, - IonicNativePlugin, - Plugin, -} from '@ionic-native/core'; +import { CordovaInstance, InstanceProperty, Plugin, getPromise, InstanceCheck, checkAvailability, CordovaCheck, IonicNativePlugin } from '@ionic-native/core'; -declare const window: any, navigator: any; +declare const window: any, + navigator: any; -export type ContactFieldType = - | '*' - | 'addresses' - | 'birthday' - | 'categories' - | 'country' - | 'department' - | 'displayName' - | 'emails' - | 'name.familyName' - | 'name.formatted' - | 'name.givenName' - | 'name.honorificPrefix' - | 'name.honorificSuffix' - | 'id' - | 'ims' - | 'locality' - | 'name.middleName' - | 'name' - | 'nickname' - | 'note' - | 'organizations' - | 'phoneNumbers' - | 'photos' - | 'postalCode' - | 'region' - | 'streetAddress' - | 'title' - | 'urls'; +export type ContactFieldType = '*' | 'addresses' | 'birthday' | 'categories' | 'country' | 'department' | 'displayName' | 'emails' | 'name.familyName' | 'name.formatted' | 'name.givenName' | 'name.honorificPrefix' | 'name.honorificSuffix' | 'id' | 'ims' | 'locality' | 'name.middleName' | 'name' | 'nickname' | 'note' | 'organizations' | 'phoneNumbers' | 'photos' | 'postalCode' | 'region' | 'streetAddress' | 'title' | 'urls'; export interface IContactProperties { + /** A globally unique identifier. */ id?: string; @@ -83,6 +48,7 @@ export interface IContactProperties { /** An array of web pages associated with the contact. */ urls?: IContactField[]; + } /** @@ -108,9 +74,7 @@ export class Contact implements IContactProperties { [key: string]: any; constructor() { - if ( - checkAvailability('navigator.contacts', 'create', 'Contacts') === true - ) { + if (checkAvailability('navigator.contacts', 'create', 'Contacts') === true) { this._objectInstance = navigator.contacts.create(); } } @@ -126,9 +90,7 @@ export class Contact implements IContactProperties { } @CordovaInstance() - remove(): Promise { - return; - } + remove(): Promise { return; } @InstanceCheck() save(): Promise { @@ -162,7 +124,7 @@ export declare const ContactError: { PENDING_OPERATION_ERROR: number; IO_ERROR: number; NOT_SUPPORTED_ERROR: number; - PERMISSION_DENIED_ERROR: number; + PERMISSION_DENIED_ERROR: number }; export interface IContactName { @@ -184,14 +146,12 @@ export interface IContactName { * @hidden */ export class ContactName implements IContactName { - constructor( - public formatted?: string, + constructor(public formatted?: string, public familyName?: string, public givenName?: string, public middleName?: string, public honorificPrefix?: string, - public honorificSuffix?: string - ) {} + public honorificSuffix?: string) { } } export interface IContactField { @@ -207,11 +167,9 @@ export interface IContactField { * @hidden */ export class ContactField implements IContactField { - constructor( - public type?: string, + constructor(public type?: string, public value?: string, - public pref?: boolean - ) {} + public pref?: boolean) { } } export interface IContactAddress { @@ -237,16 +195,14 @@ export interface IContactAddress { * @hidden */ export class ContactAddress implements IContactAddress { - constructor( - public pref?: boolean, + constructor(public pref?: boolean, public type?: string, public formatted?: string, public streetAddress?: string, public locality?: string, public region?: string, public postalCode?: string, - public country?: string - ) {} + public country?: string) { } } export interface IContactOrganization { @@ -272,7 +228,7 @@ export class ContactOrganization implements IContactOrganization { public department?: string, public title?: string, public pref?: boolean - ) {} + ) { } } /** Search options to filter navigator.contacts. */ @@ -293,12 +249,10 @@ export interface IContactFindOptions { * @hidden */ export class ContactFindOptions implements IContactFindOptions { - constructor( - public filter?: string, + constructor(public filter?: string, public multiple?: boolean, public desiredFields?: string[], - public hasPhoneNumber?: boolean - ) {} + public hasPhoneNumber?: boolean) { } } /** @@ -339,19 +293,10 @@ export class ContactFindOptions implements IContactFindOptions { plugin: 'cordova-plugin-contacts', pluginRef: 'navigator.contacts', repo: 'https://github.com/apache/cordova-plugin-contacts', - platforms: [ - 'Android', - 'BlackBerry 10', - 'Browser', - 'Firefox OS', - 'iOS', - 'Ubuntu', - 'Windows', - 'Windows 8', - 'Windows Phone' - ] + platforms: ['Android', 'BlackBerry 10', 'Browser', 'Firefox OS', 'iOS', 'Ubuntu', 'Windows', 'Windows 8', 'Windows Phone'] }) export class Contacts extends IonicNativePlugin { + /** * Create a single contact. * @returns {Contact} Returns a Contact object @@ -367,19 +312,11 @@ export class Contacts extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with the search results (an array of Contact objects) */ @CordovaCheck() - find( - fields: ContactFieldType[], - options?: IContactFindOptions - ): Promise { + find(fields: ContactFieldType[], options?: IContactFindOptions): Promise { return getPromise((resolve: Function, reject: Function) => { - navigator.contacts.find( - fields, - (contacts: any[]) => { - resolve(contacts.map(processContact)); - }, - reject, - options - ); + navigator.contacts.find(fields, (contacts: any[]) => { + resolve(contacts.map(processContact)); + }, reject, options); }); } @@ -390,12 +327,10 @@ export class Contacts extends IonicNativePlugin { @CordovaCheck() pickContact(): Promise { return getPromise((resolve: Function, reject: Function) => { - navigator.contacts.pickContact( - (contact: any) => resolve(processContact(contact)), - reject - ); + navigator.contacts.pickContact((contact: any) => resolve(processContact(contact)), reject); }); } + } /** diff --git a/src/@ionic-native/plugins/couchbase-lite/index.ts b/src/@ionic-native/plugins/couchbase-lite/index.ts index e9be4a634..467a0e80b 100644 --- a/src/@ionic-native/plugins/couchbase-lite/index.ts +++ b/src/@ionic-native/plugins/couchbase-lite/index.ts @@ -1,5 +1,6 @@ +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; + /** * @name Couchbase Lite @@ -65,8 +66,8 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; * .catch((error:any) => { * return Observable.throw(error.json() || 'Couchbase Lite error'); * }) . - * } - * createDocument(database_name:string,document){ + * } + * createDocument(database_name:string,document){ * let url = this.getUrl(); * url = url + database_name; * return this._http @@ -83,9 +84,9 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; * createDocument('justbe', document); * // successful response * { "id": "string","rev": "string","ok": true } - * updateDocument(database_name:string,document){ + * updateDocument(database_name:string,document){ * let url = this.getUrl(); - * url = url + database_name + '/' + document._id; + * url = url + database_name + '/' + document._id; * return this._http * .put(url,document) * .map(data => { this.results = data['results'] }) @@ -120,6 +121,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; }) @Injectable() export class CouchbaseLite extends IonicNativePlugin { + /** * Get the database url * @return {Promise} Returns a promise that resolves with the local database url @@ -127,7 +129,6 @@ export class CouchbaseLite extends IonicNativePlugin { @Cordova({ callbackStyle: 'node' }) - getURL(): Promise { - return; - } + getURL(): Promise { return; } + } diff --git a/src/@ionic-native/plugins/crop/index.ts b/src/@ionic-native/plugins/crop/index.ts index 8554f30f8..928675009 100644 --- a/src/@ionic-native/plugins/crop/index.ts +++ b/src/@ionic-native/plugins/crop/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; export interface CropOptions { quality?: number; diff --git a/src/@ionic-native/plugins/deeplinks/index.ts b/src/@ionic-native/plugins/deeplinks/index.ts index 57596f6de..0b9519168 100644 --- a/src/@ionic-native/plugins/deeplinks/index.ts +++ b/src/@ionic-native/plugins/deeplinks/index.ts @@ -1,8 +1,9 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export interface DeeplinkMatch { + /** * The route info for the matched route */ @@ -19,6 +20,7 @@ export interface DeeplinkMatch { * the route was matched (for example, Facebook sometimes adds extra data) */ $link: any; + } export interface DeeplinkOptions { @@ -83,18 +85,13 @@ export interface DeeplinkOptions { plugin: 'ionic-plugin-deeplinks', pluginRef: 'IonicDeeplink', repo: 'https://github.com/ionic-team/ionic-plugin-deeplinks', - install: - 'ionic cordova plugin add ionic-plugin-deeplinks --variable URL_SCHEME=myapp --variable DEEPLINK_SCHEME=https --variable DEEPLINK_HOST=example.com --variable ANDROID_PATH_PREFIX=/', - installVariables: [ - 'URL_SCHEME', - 'DEEPLINK_SCHEME', - 'DEEPLINK_HOST', - 'ANDROID_PATH_PREFIX' - ], + install: 'ionic cordova plugin add ionic-plugin-deeplinks --variable URL_SCHEME=myapp --variable DEEPLINK_SCHEME=https --variable DEEPLINK_HOST=example.com --variable ANDROID_PATH_PREFIX=/', + installVariables: ['URL_SCHEME', 'DEEPLINK_SCHEME', 'DEEPLINK_HOST', 'ANDROID_PATH_PREFIX'], platforms: ['Android', 'Browser', 'iOS'] }) @Injectable() export class Deeplinks extends IonicNativePlugin { + /** * Define a set of paths to match against incoming deeplinks. * @@ -108,9 +105,7 @@ export class Deeplinks extends IonicNativePlugin { @Cordova({ observable: true }) - route(paths: any): Observable { - return; - } + route(paths: any): Observable { return; } /** * @@ -128,7 +123,7 @@ export class Deeplinks extends IonicNativePlugin { * promise result which you can then use to navigate in the app as you see fit. * * @param {Object} paths - * + * * @param {DeeplinkOptions} options * * @returns {Observable} Returns an Observable that resolves each time a deeplink comes through, and @@ -137,11 +132,6 @@ export class Deeplinks extends IonicNativePlugin { @Cordova({ observable: true }) - routeWithNavController( - navController: any, - paths: any, - options?: DeeplinkOptions - ): Observable { - return; - } + routeWithNavController(navController: any, paths: any, options?: DeeplinkOptions): Observable { return; } + } diff --git a/src/@ionic-native/plugins/device-motion/index.ts b/src/@ionic-native/plugins/device-motion/index.ts index c217ccd71..c29ec8be3 100644 --- a/src/@ionic-native/plugins/device-motion/index.ts +++ b/src/@ionic-native/plugins/device-motion/index.ts @@ -1,8 +1,9 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export interface DeviceMotionAccelerationData { + /** * Amount of acceleration on the x-axis. (in m/s^2) */ @@ -22,13 +23,16 @@ export interface DeviceMotionAccelerationData { * Creation timestamp in milliseconds. */ timestamp: any; + } export interface DeviceMotionAccelerometerOptions { + /** * Requested period of calls to accelerometerSuccess with acceleration data in Milliseconds. Default: 10000 */ frequency?: number; + } /** @@ -68,28 +72,17 @@ export interface DeviceMotionAccelerometerOptions { plugin: 'cordova-plugin-device-motion', pluginRef: 'navigator.accelerometer', repo: 'https://github.com/apache/cordova-plugin-device-motion', - platforms: [ - 'Android', - 'BlackBerry 10', - 'Browser', - 'Firefox OS', - 'iOS', - 'Tizen', - 'Ubuntu', - 'Windows', - 'Windows Phone 8' - ] + platforms: ['Android', 'BlackBerry 10', 'Browser', 'Firefox OS', 'iOS', 'Tizen', 'Ubuntu', 'Windows', 'Windows Phone 8'] }) @Injectable() export class DeviceMotion extends IonicNativePlugin { + /** * Get the current acceleration along the x, y, and z axes. * @returns {Promise} Returns object with x, y, z, and timestamp properties */ @Cordova() - getCurrentAcceleration(): Promise { - return; - } + getCurrentAcceleration(): Promise { return; } /** * Watch the device acceleration. Clear the watch by unsubscribing from the observable. @@ -101,9 +94,6 @@ export class DeviceMotion extends IonicNativePlugin { observable: true, clearFunction: 'clearWatch' }) - watchAcceleration( - options?: DeviceMotionAccelerometerOptions - ): Observable { - return; - } + watchAcceleration(options?: DeviceMotionAccelerometerOptions): Observable { return; } + } diff --git a/src/@ionic-native/plugins/device-orientation/index.ts b/src/@ionic-native/plugins/device-orientation/index.ts index fd5ed503c..ffd4e52aa 100644 --- a/src/@ionic-native/plugins/device-orientation/index.ts +++ b/src/@ionic-native/plugins/device-orientation/index.ts @@ -1,8 +1,9 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export interface DeviceOrientationCompassHeading { + /** * The heading in degrees from 0-359.99 at a single moment in time. (Number) */ @@ -22,9 +23,11 @@ export interface DeviceOrientationCompassHeading { * The time at which this heading was determined. (DOMTimeStamp) */ timestamp: number; + } export interface DeviceOrientationCompassOptions { + /** * How often to retrieve the compass heading in milliseconds. (Number) (Default: 100) */ @@ -34,6 +37,7 @@ export interface DeviceOrientationCompassOptions { * The change in degrees required to initiate a watchHeading success callback. When this value is set, frequency is ignored. (Number) */ filter?: number; + } /** @@ -73,29 +77,17 @@ export interface DeviceOrientationCompassOptions { plugin: 'cordova-plugin-device-orientation', pluginRef: 'navigator.compass', repo: 'https://github.com/apache/cordova-plugin-device-orientation', - platforms: [ - 'Amazon Fire OS', - 'Android', - 'BlackBerry 10', - 'Browser', - 'Firefox OS', - 'iOS', - 'Tizen', - 'Ubuntu', - 'Windows', - 'Windows Phone' - ] + platforms: ['Amazon Fire OS', 'Android', 'BlackBerry 10', 'Browser', 'Firefox OS', 'iOS', 'Tizen', 'Ubuntu', 'Windows', 'Windows Phone'] }) @Injectable() export class DeviceOrientation extends IonicNativePlugin { + /** * Get the current compass heading. * @returns {Promise} */ @Cordova() - getCurrentHeading(): Promise { - return; - } + getCurrentHeading(): Promise { return; } /** * Get the device current heading at a regular interval @@ -109,9 +101,6 @@ export class DeviceOrientation extends IonicNativePlugin { observable: true, clearFunction: 'clearWatch' }) - watchHeading( - options?: DeviceOrientationCompassOptions - ): Observable { - return; - } + watchHeading(options?: DeviceOrientationCompassOptions): Observable { return; } + } diff --git a/src/@ionic-native/plugins/device/index.ts b/src/@ionic-native/plugins/device/index.ts index b6102ed32..8f2b4cd6a 100644 --- a/src/@ionic-native/plugins/device/index.ts +++ b/src/@ionic-native/plugins/device/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { CordovaProperty, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { CordovaProperty, Plugin, IonicNativePlugin } from '@ionic-native/core'; declare const window: any; @@ -28,30 +28,40 @@ declare const window: any; }) @Injectable() export class Device extends IonicNativePlugin { + /** Get the version of Cordova running on the device. */ - @CordovaProperty cordova: string; + @CordovaProperty + cordova: string; /** * The device.model returns the name of the device's model or product. The value is set * by the device manufacturer and may be different across versions of the same product. */ - @CordovaProperty model: string; + @CordovaProperty + model: string; /** Get the device's operating system name. */ - @CordovaProperty platform: string; + @CordovaProperty + platform: string; /** Get the device's Universally Unique Identifier (UUID). */ - @CordovaProperty uuid: string; + @CordovaProperty + uuid: string; /** Get the operating system version. */ - @CordovaProperty version: string; + @CordovaProperty + version: string; /** Get the device's manufacturer. */ - @CordovaProperty manufacturer: string; + @CordovaProperty + manufacturer: string; /** Whether the device is running on a simulator. */ - @CordovaProperty isVirtual: boolean; + @CordovaProperty + isVirtual: boolean; /** Get the device hardware serial number. */ - @CordovaProperty serial: string; + @CordovaProperty + serial: string; + } diff --git a/src/@ionic-native/plugins/diagnostic/index.ts b/src/@ionic-native/plugins/diagnostic/index.ts index 8f3cbe697..e4a447664 100644 --- a/src/@ionic-native/plugins/diagnostic/index.ts +++ b/src/@ionic-native/plugins/diagnostic/index.ts @@ -1,10 +1,5 @@ import { Injectable } from '@angular/core'; -import { - Cordova, - CordovaProperty, - IonicNativePlugin, - Plugin -} from '@ionic-native/core'; +import { Cordova, Plugin, CordovaProperty, IonicNativePlugin } from '@ionic-native/core'; /** * @name Diagnostic @@ -48,6 +43,7 @@ import { }) @Injectable() export class Diagnostic extends IonicNativePlugin { + permission = { READ_CALENDAR: 'READ_CALENDAR', WRITE_CALENDAR: 'WRITE_CALENDAR', @@ -96,23 +92,9 @@ export class Diagnostic extends IonicNativePlugin { CONTACTS: ['READ_CONTACTS', 'WRITE_CONTACTS', 'GET_ACCOUNTS'], LOCATION: ['ACCESS_FINE_LOCATION', 'ACCESS_COARSE_LOCATION'], MICROPHONE: ['RECORD_AUDIO'], - PHONE: [ - 'READ_PHONE_STATE', - 'CALL_PHONE', - 'ADD_VOICEMAIL', - 'USE_SIP', - 'PROCESS_OUTGOING_CALLS', - 'READ_CALL_LOG', - 'WRITE_CALL_LOG' - ], + PHONE: ['READ_PHONE_STATE', 'CALL_PHONE', 'ADD_VOICEMAIL', 'USE_SIP', 'PROCESS_OUTGOING_CALLS', 'READ_CALL_LOG', 'WRITE_CALL_LOG'], SENSORS: ['BODY_SENSORS'], - SMS: [ - 'SEND_SMS', - 'RECEIVE_SMS', - 'READ_SMS', - 'RECEIVE_WAP_PUSH', - 'RECEIVE_MMS' - ], + SMS: ['SEND_SMS', 'RECEIVE_SMS', 'READ_SMS', 'RECEIVE_WAP_PUSH', 'RECEIVE_MMS'], STORAGE: ['READ_EXTERNAL_STORAGE', 'WRITE_EXTERNAL_STORAGE'] }; @@ -159,9 +141,7 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - isLocationAvailable(): Promise { - return; - } + isLocationAvailable(): Promise { return; } /** * Checks if Wifi is connected/enabled. On iOS this returns true if the device is connected to a network by WiFi. On Android and Windows 10 Mobile this returns true if the WiFi setting is set to enabled. @@ -169,21 +149,17 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - isWifiAvailable(): Promise { - return; - } + isWifiAvailable(): Promise { return; } /** * Checks if the device has a camera. On Android this returns true if the device has a camera. On iOS this returns true if both the device has a camera AND the application is authorized to use it. On Windows 10 Mobile this returns true if both the device has a rear-facing camera AND the * application is authorized to use it. * @param {boolean} [externalStorage] Android only: If true, checks permission for READ_EXTERNAL_STORAGE in addition to CAMERA run-time permission. - * cordova-plugin-camera@2.2+ requires both of these permissions. Defaults to true. + * cordova-plugin-camera@2.2+ requires both of these permissions. Defaults to true. * @returns {Promise} */ @Cordova({ callbackOrder: 'reverse' }) - isCameraAvailable(externalStorage?: boolean): Promise { - return; - } + isCameraAvailable( externalStorage?: boolean ): Promise { return; } /** * Checks if the device has Bluetooth capabilities and if so that Bluetooth is switched on (same on Android, iOS and Windows 10 Mobile) @@ -191,42 +167,38 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - isBluetoothAvailable(): Promise { - return; - } + isBluetoothAvailable(): Promise { return; } /** * Displays the device location settings to allow user to enable location services/change location mode. */ @Cordova({ sync: true, platforms: ['Android', 'Windows 10', 'iOS'] }) - switchToLocationSettings(): void {} + switchToLocationSettings(): void { } /** * Displays mobile settings to allow user to enable mobile data. */ @Cordova({ sync: true, platforms: ['Android', 'Windows 10'] }) - switchToMobileDataSettings(): void {} + switchToMobileDataSettings(): void { } /** * Displays Bluetooth settings to allow user to enable Bluetooth. */ @Cordova({ sync: true, platforms: ['Android', 'Windows 10'] }) - switchToBluetoothSettings(): void {} + switchToBluetoothSettings(): void { } /** * Displays WiFi settings to allow user to enable WiFi. */ @Cordova({ sync: true, platforms: ['Android', 'Windows 10'] }) - switchToWifiSettings(): void {} + switchToWifiSettings(): void { } /** * Returns true if the WiFi setting is set to enabled, and is the same as `isWifiAvailable()` * @returns {Promise} */ @Cordova({ platforms: ['Android', 'Windows 10'] }) - isWifiEnabled(): Promise { - return; - } + isWifiEnabled(): Promise { return; } /** * Enables/disables WiFi on the device. @@ -235,9 +207,7 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ callbackOrder: 'reverse', platforms: ['Android', 'Windows 10'] }) - setWifiState(state: boolean): Promise { - return; - } + setWifiState(state: boolean): Promise { return; } /** * Enables/disables Bluetooth on the device. @@ -246,9 +216,8 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ callbackOrder: 'reverse', platforms: ['Android', 'Windows 10'] }) - setBluetoothState(state: boolean): Promise { - return; - } + setBluetoothState(state: boolean): Promise { return; } + // ANDROID AND IOS ONLY @@ -257,9 +226,7 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['Android', 'iOS'] }) - isLocationEnabled(): Promise { - return; - } + isLocationEnabled(): Promise { return; } /** * Checks if the application is authorized to use location. @@ -267,18 +234,14 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - isLocationAuthorized(): Promise { - return; - } + isLocationAuthorized(): Promise { return; } /** * Returns the location authorization status for the application. * @returns {Promise} */ @Cordova({ platforms: ['Android', 'iOS'] }) - getLocationAuthorizationStatus(): Promise { - return; - } + getLocationAuthorizationStatus(): Promise { return; } /** * Returns the location authorization status for the application. @@ -288,18 +251,14 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['Android', 'iOS'], callbackOrder: 'reverse' }) - requestLocationAuthorization(mode?: string): Promise { - return; - } + requestLocationAuthorization(mode?: string): Promise { return; } /** * Checks if camera hardware is present on device. * @returns {Promise} */ @Cordova({ platforms: ['Android', 'iOS'] }) - isCameraPresent(): Promise { - return; - } + isCameraPresent(): Promise { return; } /** * Checks if the application is authorized to use the camera. @@ -309,9 +268,7 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['Android', 'iOS'], callbackOrder: 'reverse' }) - isCameraAuthorized(externalStorage?: boolean): Promise { - return; - } + isCameraAuthorized( externalStorage?: boolean ): Promise { return; } /** * Returns the camera authorization status for the application. @@ -320,9 +277,7 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['Android', 'iOS'], callbackOrder: 'reverse' }) - getCameraAuthorizationStatus(externalStorage?: boolean): Promise { - return; - } + getCameraAuthorizationStatus( externalStorage?: boolean ): Promise { return; } /** * Requests camera authorization for the application. @@ -331,63 +286,49 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['Android', 'iOS'], callbackOrder: 'reverse' }) - requestCameraAuthorization(externalStorage?: boolean): Promise { - return; - } + requestCameraAuthorization( externalStorage?: boolean ): Promise { return; } /** * Checks if the application is authorized to use the microphone. * @returns {Promise} */ @Cordova({ platforms: ['Android', 'iOS'] }) - isMicrophoneAuthorized(): Promise { - return; - } + isMicrophoneAuthorized(): Promise { return; } /** * Returns the microphone authorization status for the application. * @returns {Promise} */ @Cordova({ platforms: ['Android', 'iOS'] }) - getMicrophoneAuthorizationStatus(): Promise { - return; - } + getMicrophoneAuthorizationStatus(): Promise { return; } /** * Requests microphone authorization for the application. * @returns {Promise} */ @Cordova({ platforms: ['Android', 'iOS'] }) - requestMicrophoneAuthorization(): Promise { - return; - } + requestMicrophoneAuthorization(): Promise { return; } /** * Checks if the application is authorized to use contacts (address book). * @returns {Promise} */ @Cordova({ platforms: ['Android', 'iOS'] }) - isContactsAuthorized(): Promise { - return; - } + isContactsAuthorized(): Promise { return; } /** * Returns the contacts authorization status for the application. * @returns {Promise} */ @Cordova({ platforms: ['Android', 'iOS'] }) - getContactsAuthorizationStatus(): Promise { - return; - } + getContactsAuthorizationStatus(): Promise { return; } /** * Requests contacts authorization for the application. * @returns {Promise} */ @Cordova({ platforms: ['Android', 'iOS'] }) - requestContactsAuthorization(): Promise { - return; - } + requestContactsAuthorization(): Promise { return; } /** * Checks if the application is authorized to use the calendar. @@ -400,9 +341,7 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['Android', 'iOS'] }) - isCalendarAuthorized(): Promise { - return; - } + isCalendarAuthorized(): Promise { return; } /** * Returns the calendar authorization status for the application. @@ -416,9 +355,7 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['Android', 'iOS'] }) - getCalendarAuthorizationStatus(): Promise { - return; - } + getCalendarAuthorizationStatus(): Promise { return; } /** * Requests calendar authorization for the application. @@ -435,9 +372,7 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['Android', 'iOS'] }) - requestCalendarAuthorization(): Promise { - return; - } + requestCalendarAuthorization(): Promise { return; } /** * Opens settings page for this app. @@ -446,32 +381,29 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['Android', 'iOS'] }) - switchToSettings(): Promise { - return; - } + switchToSettings(): Promise { return; } /** * Returns the state of Bluetooth on the device. * @returns {Promise} */ @Cordova({ platforms: ['Android', 'iOS'] }) - getBluetoothState(): Promise { - return; - } + getBluetoothState(): Promise { return; } /** * Registers a function to be called when a change in Bluetooth state occurs. * @param handler */ @Cordova({ platforms: ['Android', 'iOS'], sync: true }) - registerBluetoothStateChangeHandler(handler: Function): void {} + registerBluetoothStateChangeHandler(handler: Function): void { } /** * Registers a function to be called when a change in Location state occurs. * @param handler */ @Cordova({ platforms: ['Android', 'iOS'], sync: true }) - registerLocationStateChangeHandler(handler: Function): void {} + registerLocationStateChangeHandler(handler: Function): void { } + // ANDROID ONLY @@ -481,9 +413,7 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['Android'] }) - isGpsLocationAvailable(): Promise { - return; - } + isGpsLocationAvailable(): Promise { return; } /** * Checks if location mode is set to return high-accuracy locations from GPS hardware. @@ -493,9 +423,7 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['Android'] }) - isGpsLocationEnabled(): Promise { - return; - } + isGpsLocationEnabled(): Promise { return; } /** * Checks if low-accuracy locations are available to the app from network triangulation/WiFi access points. @@ -503,9 +431,7 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['Android'] }) - isNetworkLocationAvailable(): Promise { - return; - } + isNetworkLocationAvailable(): Promise { return; } /** * Checks if location mode is set to return low-accuracy locations from network triangulation/WiFi access points. @@ -515,18 +441,14 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['Android'] }) - isNetworkLocationEnabled(): Promise { - return; - } + isNetworkLocationEnabled(): Promise { return; } /** * Returns the current location mode setting for the device. * @returns {Promise} */ @Cordova({ platforms: ['Android'] }) - getLocationMode(): Promise { - return; - } + getLocationMode(): Promise { return; } /** * Returns the current authorisation status for a given permission. @@ -535,9 +457,7 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['Android'], callbackOrder: 'reverse' }) - getPermissionAuthorizationStatus(permission: any): Promise { - return; - } + getPermissionAuthorizationStatus(permission: any): Promise { return; } /** * Returns the current authorisation status for multiple permissions. @@ -546,9 +466,7 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['Android'], callbackOrder: 'reverse' }) - getPermissionsAuthorizationStatus(permissions: any[]): Promise { - return; - } + getPermissionsAuthorizationStatus(permissions: any[]): Promise { return; } /** * Requests app to be granted authorisation for a runtime permission. @@ -557,9 +475,7 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['Android'], callbackOrder: 'reverse' }) - requestRuntimePermission(permission: any): Promise { - return; - } + requestRuntimePermission(permission: any): Promise { return; } /** * Requests app to be granted authorisation for multiple runtime permissions. @@ -568,9 +484,7 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['Android'], callbackOrder: 'reverse' }) - requestRuntimePermissions(permissions: any[]): Promise { - return; - } + requestRuntimePermissions(permissions: any[]): Promise { return; } /** * Indicates if the plugin is currently requesting a runtime permission via the native API. @@ -580,9 +494,7 @@ export class Diagnostic extends IonicNativePlugin { * @returns {boolean} */ @Cordova({ sync: true }) - isRequestingPermission(): boolean { - return; - } + isRequestingPermission(): boolean { return; } /** * Registers a function to be called when a runtime permission request has completed. @@ -590,9 +502,7 @@ export class Diagnostic extends IonicNativePlugin { * @param handler {Function} */ @Cordova({ sync: true }) - registerPermissionRequestCompleteHandler(handler: Function): void { - return; - } + registerPermissionRequestCompleteHandler(handler: Function): void { return; } /** * Checks if the device setting for Bluetooth is switched on. @@ -600,63 +510,49 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['Android'] }) - isBluetoothEnabled(): Promise { - return; - } + isBluetoothEnabled(): Promise { return; } /** * Checks if the device has Bluetooth capabilities. * @returns {Promise} */ @Cordova({ platforms: ['Android'] }) - hasBluetoothSupport(): Promise { - return; - } + hasBluetoothSupport(): Promise { return; } /** * Checks if the device has Bluetooth Low Energy (LE) capabilities. * @returns {Promise} */ @Cordova({ platforms: ['Android'] }) - hasBluetoothLESupport(): Promise { - return; - } + hasBluetoothLESupport(): Promise { return; } /** * Checks if the device supports Bluetooth Low Energy (LE) Peripheral mode. * @returns {Promise} */ @Cordova({ platforms: ['Android'] }) - hasBluetoothLEPeripheralSupport(): Promise { - return; - } + hasBluetoothLEPeripheralSupport(): Promise { return; } /** * Checks if the application is authorized to use external storage. * @returns {Promise} */ @Cordova({ platforms: ['Android'] }) - isExternalStorageAuthorized(): Promise { - return; - } + isExternalStorageAuthorized(): Promise { return; } /** * CReturns the external storage authorization status for the application. * @returns {Promise} */ @Cordova({ platforms: ['Android'] }) - getExternalStorageAuthorizationStatus(): Promise { - return; - } + getExternalStorageAuthorizationStatus(): Promise { return; } /** * Requests external storage authorization for the application. * @returns {Promise} */ @Cordova({ platforms: ['Android'] }) - requestExternalStorageAuthorization(): Promise { - return; - } + requestExternalStorageAuthorization(): Promise { return; } /** * Returns details of external SD card(s): absolute path, is writable, free space. @@ -669,9 +565,7 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['Android'] }) - getExternalSdCardDetails(): Promise { - return; - } + getExternalSdCardDetails(): Promise { return; } /** * Switches to the wireless settings page in the Settings app. Allows configuration of wireless controls such as Wi-Fi, Bluetooth and Mobile networks. @@ -680,7 +574,7 @@ export class Diagnostic extends IonicNativePlugin { platforms: ['Android'], sync: true }) - switchToWirelessSettings(): void {} + switchToWirelessSettings(): void { } /** * Displays NFC settings to allow user to enable NFC. @@ -689,16 +583,14 @@ export class Diagnostic extends IonicNativePlugin { platforms: ['Android'], sync: true }) - switchToNFCSettings(): void {} + switchToNFCSettings(): void { } /** * Checks if NFC hardware is present on device. * @returns {Promise} */ @Cordova({ platforms: ['Android'] }) - isNFCPresent(): Promise { - return; - } + isNFCPresent(): Promise { return; } /** * Checks if the device setting for NFC is switched on. @@ -706,9 +598,7 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['Android'] }) - isNFCEnabled(): Promise { - return; - } + isNFCEnabled(): Promise { return; } /** * Checks if NFC is available to the app. Returns true if the device has NFC capabilities AND if NFC setting is switched on. @@ -716,9 +606,7 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['Android'] }) - isNFCAvailable(): Promise { - return; - } + isNFCAvailable(): Promise { return; } /** * Registers a function to be called when a change in NFC state occurs. Pass in a falsey value to de-register the currently registered function. @@ -729,34 +617,28 @@ export class Diagnostic extends IonicNativePlugin { platforms: ['Android'], sync: true }) - registerNFCStateChangeHandler(handler: Function): void {} + registerNFCStateChangeHandler(handler: Function): void { } /** * Checks if the device data roaming setting is enabled. * @returns {Promise} */ @Cordova({ platforms: ['Android'] }) - isDataRoamingEnabled(): Promise { - return; - } + isDataRoamingEnabled(): Promise { return; } /** * Checks if the device setting for ADB(debug) is switched on. * @returns {Promise} */ @Cordova({ platforms: ['Android'] }) - isADBModeEnabled(): Promise { - return; - } + isADBModeEnabled(): Promise { return; } /** * Checks if the device is rooted. * @returns {Promise} */ @Cordova({ platforms: ['Android'] }) - isDeviceRooted(): Promise { - return; - } + isDeviceRooted(): Promise { return; } // IOS ONLY @@ -765,18 +647,14 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['iOS'] }) - isCameraRollAuthorized(): Promise { - return; - } + isCameraRollAuthorized(): Promise { return; } /** * Returns the authorization status for the application to use the Camera Roll in Photos app. * @returns {Promise} */ @Cordova({ platforms: ['iOS'] }) - getCameraRollAuthorizationStatus(): Promise { - return; - } + getCameraRollAuthorizationStatus(): Promise { return; } /** * Requests camera roll authorization for the application. @@ -785,27 +663,21 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['iOS'] }) - requestCameraRollAuthorization(): Promise { - return; - } + requestCameraRollAuthorization(): Promise { return; } /** * Checks if remote (push) notifications are enabled. * @returns {Promise} */ @Cordova({ platforms: ['iOS', 'Android'] }) - isRemoteNotificationsEnabled(): Promise { - return; - } + isRemoteNotificationsEnabled(): Promise { return; } /** * Indicates if the app is registered for remote (push) notifications on the device. * @returns {Promise} */ @Cordova({ platforms: ['iOS'] }) - isRegisteredForRemoteNotifications(): Promise { - return; - } + isRegisteredForRemoteNotifications(): Promise { return; } /** * Returns the authorization status for the application to use Remote Notifications. @@ -813,9 +685,7 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['iOS'] }) - getRemoteNotificationsAuthorizationStatus(): Promise { - return; - } + getRemoteNotificationsAuthorizationStatus(): Promise { return; } /** * Indicates the current setting of notification types for the app in the Settings app. @@ -823,54 +693,42 @@ export class Diagnostic extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['iOS'] }) - getRemoteNotificationTypes(): Promise { - return; - } + getRemoteNotificationTypes(): Promise { return; } /** * Checks if the application is authorized to use reminders. * @returns {Promise} */ @Cordova({ platforms: ['iOS'] }) - isRemindersAuthorized(): Promise { - return; - } + isRemindersAuthorized(): Promise { return; } /** * Returns the reminders authorization status for the application. * @returns {Promise} */ @Cordova({ platforms: ['iOS'] }) - getRemindersAuthorizationStatus(): Promise { - return; - } + getRemindersAuthorizationStatus(): Promise { return; } /** * Requests reminders authorization for the application. * @returns {Promise} */ @Cordova({ platforms: ['iOS'] }) - requestRemindersAuthorization(): Promise { - return; - } + requestRemindersAuthorization(): Promise { return; } /** * Checks if the application is authorized for background refresh. * @returns {Promise} */ @Cordova({ platforms: ['iOS'] }) - isBackgroundRefreshAuthorized(): Promise { - return; - } + isBackgroundRefreshAuthorized(): Promise { return; } /** * Returns the background refresh authorization status for the application. * @returns {Promise} */ @Cordova({ platforms: ['iOS'] }) - getBackgroundRefreshStatus(): Promise { - return; - } + getBackgroundRefreshStatus(): Promise { return; } /** * Requests Bluetooth authorization for the application. @@ -879,18 +737,14 @@ export class Diagnostic extends IonicNativePlugin { * @return {Promise} */ @Cordova({ platforms: ['iOS'] }) - requestBluetoothAuthorization(): Promise { - return; - } + requestBluetoothAuthorization(): Promise { return; } /** * Checks if motion tracking is available on the current device. * @return {Promise} */ @Cordova({ platforms: ['iOS'] }) - isMotionAvailable(): Promise { - return; - } + isMotionAvailable(): Promise { return; } /** * Checks if it's possible to determine the outcome of a motion authorization request on the current device. @@ -900,9 +754,7 @@ export class Diagnostic extends IonicNativePlugin { * @return {Promise} */ @Cordova({ platforms: ['iOS'] }) - isMotionRequestOutcomeAvailable(): Promise { - return; - } + isMotionRequestOutcomeAvailable(): Promise { return; } /** * Requests motion tracking authorization for the application. @@ -912,9 +764,7 @@ export class Diagnostic extends IonicNativePlugin { * @return {Promise} */ @Cordova({ platforms: ['iOS'] }) - requestMotionAuthorization(): Promise { - return; - } + requestMotionAuthorization(): Promise { return; } /** * Checks motion authorization status for the application. @@ -924,7 +774,6 @@ export class Diagnostic extends IonicNativePlugin { * @return {Promise} */ @Cordova({ platforms: ['iOS'] }) - getMotionAuthorizationStatus(): Promise { - return; - } + getMotionAuthorizationStatus(): Promise { return; } + } diff --git a/src/@ionic-native/plugins/dialogs/index.ts b/src/@ionic-native/plugins/dialogs/index.ts index 9097e2630..65710e890 100644 --- a/src/@ionic-native/plugins/dialogs/index.ts +++ b/src/@ionic-native/plugins/dialogs/index.ts @@ -1,7 +1,9 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; + export interface DialogsPromptCallback { + /** * The index of the pressed button. (Number) Note that the index uses one-based indexing, so the value is 1, 2, 3, etc. */ @@ -11,8 +13,10 @@ export interface DialogsPromptCallback { * The text entered in the prompt dialog box. (String) */ input1: string; + } + /** * @name Dialogs * @description @@ -46,6 +50,7 @@ export interface DialogsPromptCallback { }) @Injectable() export class Dialogs extends IonicNativePlugin { + /** * Shows a custom alert or dialog box. * @param {string} message Dialog message. @@ -57,9 +62,7 @@ export class Dialogs extends IonicNativePlugin { successIndex: 1, errorIndex: 4 }) - alert(message: string, title?: string, buttonName?: string): Promise { - return; - } + alert(message: string, title?: string, buttonName?: string): Promise { return; } /** * Displays a customizable confirmation dialog box. @@ -72,13 +75,7 @@ export class Dialogs extends IonicNativePlugin { successIndex: 1, errorIndex: 4 }) - confirm( - message: string, - title?: string, - buttonLabels?: string[] - ): Promise { - return; - } + confirm(message: string, title?: string, buttonLabels?: string[]): Promise { return; } /** * Displays a native dialog box that is more customizable than the browser's prompt function. @@ -92,14 +89,8 @@ export class Dialogs extends IonicNativePlugin { successIndex: 1, errorIndex: 5 }) - prompt( - message?: string, - title?: string, - buttonLabels?: string[], - defaultText?: string - ): Promise { - return; - } + prompt(message?: string, title?: string, buttonLabels?: string[], defaultText?: string): Promise { return; } + /** * The device plays a beep sound. @@ -108,5 +99,6 @@ export class Dialogs extends IonicNativePlugin { @Cordova({ sync: true }) - beep(times: number): void {} + beep(times: number): void { } + } diff --git a/src/@ionic-native/plugins/dns/index.ts b/src/@ionic-native/plugins/dns/index.ts index 35ee1522f..ece314ed8 100644 --- a/src/@ionic-native/plugins/dns/index.ts +++ b/src/@ionic-native/plugins/dns/index.ts @@ -1,5 +1,5 @@ +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name DNS @@ -36,7 +36,5 @@ export class DNS extends IonicNativePlugin { * @returns {Promise} Returns a promise that resolves with the resolution. */ @Cordova() - resolve(hostname: string): Promise { - return; - } + resolve(hostname: string): Promise { return; } } diff --git a/src/@ionic-native/plugins/document-viewer/index.ts b/src/@ionic-native/plugins/document-viewer/index.ts index 02ce4609b..ef4335cf1 100644 --- a/src/@ionic-native/plugins/document-viewer/index.ts +++ b/src/@ionic-native/plugins/document-viewer/index.ts @@ -1,5 +1,5 @@ +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface DocumentViewerOptions { title?: string; @@ -62,15 +62,14 @@ export interface DocumentViewerOptions { }) @Injectable() export class DocumentViewer extends IonicNativePlugin { + /** * Displays the email composer pre-filled with data. * * @returns {Promise} Resolves promise when the EmailComposer has been opened */ @Cordova() - getSupportInfo(): Promise { - return; - } + getSupportInfo(): Promise { return; } /** * Check if the document can be shown @@ -84,15 +83,7 @@ export class DocumentViewer extends IonicNativePlugin { * @param [onError] {Function} */ @Cordova({ sync: true }) - canViewDocument( - url: string, - contentType: string, - options: DocumentViewerOptions, - onPossible?: Function, - onMissingApp?: Function, - onImpossible?: Function, - onError?: Function - ): void {} + canViewDocument(url: string, contentType: string, options: DocumentViewerOptions, onPossible?: Function, onMissingApp?: Function, onImpossible?: Function, onError?: Function): void { } /** * Opens the file @@ -106,13 +97,6 @@ export class DocumentViewer extends IonicNativePlugin { * @param [onError] {Function} */ @Cordova({ sync: true }) - viewDocument( - url: string, - contentType: string, - options: DocumentViewerOptions, - onShow?: Function, - onClose?: Function, - onMissingApp?: Function, - onError?: Function - ): void {} + viewDocument(url: string, contentType: string, options: DocumentViewerOptions, onShow?: Function, onClose?: Function, onMissingApp?: Function, onError?: Function): void { } + } diff --git a/src/@ionic-native/plugins/email-composer/index.ts b/src/@ionic-native/plugins/email-composer/index.ts index d8024c122..ad148fd14 100644 --- a/src/@ionic-native/plugins/email-composer/index.ts +++ b/src/@ionic-native/plugins/email-composer/index.ts @@ -1,12 +1,8 @@ import { Injectable } from '@angular/core'; -import { - Cordova, - CordovaCheck, - IonicNativePlugin, - Plugin -} from '@ionic-native/core'; +import { Cordova, Plugin, CordovaCheck, IonicNativePlugin } from '@ionic-native/core'; export interface EmailComposerOptions { + /** * App to send the email with */ @@ -46,8 +42,10 @@ export interface EmailComposerOptions { * Indicates if the body is HTML or plain text */ isHtml?: boolean; + } + /** * @name Email Composer * @description @@ -112,6 +110,7 @@ export interface EmailComposerOptions { }) @Injectable() export class EmailComposer extends IonicNativePlugin { + /** * Verifies if sending emails is supported on the device. * @@ -149,9 +148,7 @@ export class EmailComposer extends IonicNativePlugin { successIndex: 0, errorIndex: 2 }) - requestPermission(): Promise { - return; - } + requestPermission(): Promise { return; } /** * Checks if the app has a permission to access email accounts information @@ -161,9 +158,7 @@ export class EmailComposer extends IonicNativePlugin { successIndex: 0, errorIndex: 2 }) - hasPermission(): Promise { - return; - } + hasPermission(): Promise { return; } /** * Adds a new mail app alias. @@ -172,7 +167,7 @@ export class EmailComposer extends IonicNativePlugin { * @param packageName {string} The package name */ @Cordova() - addAlias(alias: string, packageName: string): void {} + addAlias(alias: string, packageName: string): void { } /** * Displays the email composer pre-filled with data. @@ -185,7 +180,6 @@ export class EmailComposer extends IonicNativePlugin { successIndex: 1, errorIndex: 3 }) - open(options: EmailComposerOptions, scope?: any): Promise { - return; - } + open(options: EmailComposerOptions, scope?: any): Promise { return; } + } diff --git a/src/@ionic-native/plugins/estimote-beacons/index.ts b/src/@ionic-native/plugins/estimote-beacons/index.ts index 3155bd73b..5a6fde940 100644 --- a/src/@ionic-native/plugins/estimote-beacons/index.ts +++ b/src/@ionic-native/plugins/estimote-beacons/index.ts @@ -1,8 +1,9 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export interface EstimoteBeaconRegion { + state?: string; major: number; @@ -12,6 +13,7 @@ export interface EstimoteBeaconRegion { identifier?: string; uuid: string; + } /** @@ -46,6 +48,7 @@ export interface EstimoteBeaconRegion { }) @Injectable() export class EstimoteBeacons extends IonicNativePlugin { + /** Proximity value */ ProximityUnknown = 0; @@ -121,9 +124,7 @@ export class EstimoteBeacons extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - requestWhenInUseAuthorization(): Promise { - return; - } + requestWhenInUseAuthorization(): Promise { return; } /** * Ask the user for permission to use location services @@ -144,9 +145,7 @@ export class EstimoteBeacons extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - requestAlwaysAuthorization(): Promise { - return; - } + requestAlwaysAuthorization(): Promise { return; } /** * Get the current location authorization status. @@ -165,9 +164,7 @@ export class EstimoteBeacons extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - authorizationStatus(): Promise { - return; - } + authorizationStatus(): Promise { return; } /** * Start advertising as a beacon. @@ -189,14 +186,7 @@ export class EstimoteBeacons extends IonicNativePlugin { @Cordova({ clearFunction: 'stopAdvertisingAsBeacon' }) - startAdvertisingAsBeacon( - uuid: string, - major: number, - minor: number, - regionId: string - ): Promise { - return; - } + startAdvertisingAsBeacon(uuid: string, major: number, minor: number, regionId: string): Promise { return; } /** * Stop advertising as a beacon. @@ -212,9 +202,7 @@ export class EstimoteBeacons extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - stopAdvertisingAsBeacon(): Promise { - return; - } + stopAdvertisingAsBeacon(): Promise { return; } /** * Enable analytics. @@ -229,14 +217,12 @@ export class EstimoteBeacons extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - enableAnalytics(enable: boolean): Promise { - return; - } + enableAnalytics(enable: boolean): Promise { return; } /** - * Test if analytics is enabled. - * - * @see {@link http://estimote.github.io/iOS-SDK/Classes/ESTConfig.html|Further details} + * Test if analytics is enabled. + * + * @see {@link http://estimote.github.io/iOS-SDK/Classes/ESTConfig.html|Further details} * * @usage * ``` @@ -245,14 +231,12 @@ export class EstimoteBeacons extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - isAnalyticsEnabled(): Promise { - return; - } + isAnalyticsEnabled(): Promise { return; } /** - * Test if App ID and App Token is set. - * - * @see {@link http://estimote.github.io/iOS-SDK/Classes/ESTConfig.html|Further details} + * Test if App ID and App Token is set. + * + * @see {@link http://estimote.github.io/iOS-SDK/Classes/ESTConfig.html|Further details} * * @usage * ``` @@ -261,14 +245,12 @@ export class EstimoteBeacons extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - isAuthorized(): Promise { - return; - } + isAuthorized(): Promise { return; } /** - * Set App ID and App Token. - * - * @see {@link http://estimote.github.io/iOS-SDK/Classes/ESTConfig.html|Further details} + * Set App ID and App Token. + * + * @see {@link http://estimote.github.io/iOS-SDK/Classes/ESTConfig.html|Further details} * * @usage * ``` @@ -279,9 +261,7 @@ export class EstimoteBeacons extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - setupAppIDAndAppToken(appID: string, appToken: string): Promise { - return; - } + setupAppIDAndAppToken(appID: string, appToken: string): Promise { return; } /** * Start scanning for all nearby beacons using CoreBluetooth (no region object is used). @@ -302,9 +282,7 @@ export class EstimoteBeacons extends IonicNativePlugin { observable: true, clearFunction: 'stopEstimoteBeaconDiscovery' }) - startEstimoteBeaconDiscovery(): Observable { - return; - } + startEstimoteBeaconDiscovery(): Observable { return; } /** * Stop CoreBluetooth scan. Available on iOS. @@ -321,9 +299,7 @@ export class EstimoteBeacons extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - stopEstimoteBeaconDiscovery(): Promise { - return; - } + stopEstimoteBeaconDiscovery(): Promise { return; } /** * Start ranging beacons. Available on iOS and Android. @@ -346,9 +322,7 @@ export class EstimoteBeacons extends IonicNativePlugin { clearFunction: 'stopRangingBeaconsInRegion', clearWithArgs: true }) - startRangingBeaconsInRegion(region: EstimoteBeaconRegion): Observable { - return; - } + startRangingBeaconsInRegion(region: EstimoteBeaconRegion): Observable { return; } /** * Stop ranging beacons. Available on iOS and Android. @@ -367,9 +341,7 @@ export class EstimoteBeacons extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - stopRangingBeaconsInRegion(region: EstimoteBeaconRegion): Promise { - return; - } + stopRangingBeaconsInRegion(region: EstimoteBeaconRegion): Promise { return; } /** * Start ranging secure beacons. Available on iOS. @@ -384,11 +356,7 @@ export class EstimoteBeacons extends IonicNativePlugin { clearFunction: 'stopRangingSecureBeaconsInRegion', clearWithArgs: true }) - startRangingSecureBeaconsInRegion( - region: EstimoteBeaconRegion - ): Observable { - return; - } + startRangingSecureBeaconsInRegion(region: EstimoteBeaconRegion): Observable { return; } /** * Stop ranging secure beacons. Available on iOS. @@ -397,9 +365,7 @@ export class EstimoteBeacons extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - stopRangingSecureBeaconsInRegion(region: EstimoteBeaconRegion): Promise { - return; - } + stopRangingSecureBeaconsInRegion(region: EstimoteBeaconRegion): Promise { return; } /** * Start monitoring beacons. Available on iOS and Android. @@ -425,12 +391,7 @@ export class EstimoteBeacons extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - startMonitoringForRegion( - region: EstimoteBeaconRegion, - notifyEntryStateOnDisplay: boolean - ): Observable { - return; - } + startMonitoringForRegion(region: EstimoteBeaconRegion, notifyEntryStateOnDisplay: boolean): Observable { return; } /** * Stop monitoring beacons. Available on iOS and Android. @@ -444,9 +405,7 @@ export class EstimoteBeacons extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - stopMonitoringForRegion(region: EstimoteBeaconRegion): Promise { - return; - } + stopMonitoringForRegion(region: EstimoteBeaconRegion): Promise { return; } /** * Start monitoring secure beacons. Available on iOS. @@ -466,24 +425,17 @@ export class EstimoteBeacons extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - startSecureMonitoringForRegion( - region: EstimoteBeaconRegion, - notifyEntryStateOnDisplay: boolean - ): Observable { - return; - } + startSecureMonitoringForRegion(region: EstimoteBeaconRegion, notifyEntryStateOnDisplay: boolean): Observable { return; } /** - * Stop monitoring secure beacons. Available on iOS. - * This function has the same parameters/behaviour as - * {@link EstimoteBeacons.stopMonitoringForRegion}. - * @param region {EstimoteBeaconRegion} Region - * @returns {Promise} - */ + * Stop monitoring secure beacons. Available on iOS. + * This function has the same parameters/behaviour as + * {@link EstimoteBeacons.stopMonitoringForRegion}. + * @param region {EstimoteBeaconRegion} Region + * @returns {Promise} + */ @Cordova() - stopSecureMonitoringForRegion(region: EstimoteBeaconRegion): Promise { - return; - } + stopSecureMonitoringForRegion(region: EstimoteBeaconRegion): Promise { return; } /** * Connect to Estimote Beacon. Available on Android. @@ -503,9 +455,7 @@ export class EstimoteBeacons extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - connectToBeacon(beacon: any): Promise { - return; - } + connectToBeacon(beacon: any): Promise { return; } /** * Disconnect from connected Estimote Beacon. Available on Android. @@ -517,9 +467,7 @@ export class EstimoteBeacons extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - disconnectConnectedBeacon(): Promise { - return; - } + disconnectConnectedBeacon(): Promise { return; } /** * Write proximity UUID to connected Estimote Beacon. Available on Android. @@ -533,9 +481,7 @@ export class EstimoteBeacons extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - writeConnectedProximityUUID(uuid: any): Promise { - return; - } + writeConnectedProximityUUID(uuid: any): Promise { return; } /** * Write major to connected Estimote Beacon. Available on Android. @@ -549,9 +495,7 @@ export class EstimoteBeacons extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - writeConnectedMajor(major: number): Promise { - return; - } + writeConnectedMajor(major: number): Promise { return; } /** * Write minor to connected Estimote Beacon. Available on Android. @@ -565,7 +509,6 @@ export class EstimoteBeacons extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - writeConnectedMinor(minor: number): Promise { - return; - } + writeConnectedMinor(minor: number): Promise { return; } + } diff --git a/src/@ionic-native/plugins/extended-device-information/index.ts b/src/@ionic-native/plugins/extended-device-information/index.ts index 100b9b404..2a4b3110a 100644 --- a/src/@ionic-native/plugins/extended-device-information/index.ts +++ b/src/@ionic-native/plugins/extended-device-information/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { CordovaProperty, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { CordovaProperty, Plugin, IonicNativePlugin } from '@ionic-native/core'; /** * @name Extended Device Information @@ -22,24 +22,28 @@ import { CordovaProperty, IonicNativePlugin, Plugin } from '@ionic-native/core'; pluginName: 'ExtendedDeviceInformation', plugin: 'cordova-plugin-extended-device-information', pluginRef: 'extended-device-information', - repo: - 'https://github.com/danielehrhardt/cordova-plugin-extended-device-information', + repo: 'https://github.com/danielehrhardt/cordova-plugin-extended-device-information', platforms: ['Android'] }) @Injectable() export class ExtendedDeviceInformation extends IonicNativePlugin { + /** * Get the device's memory size */ - @CordovaProperty memory: number; + @CordovaProperty + memory: number; /** * Get the device's CPU mhz */ - @CordovaProperty cpumhz: string; + @CordovaProperty + cpumhz: string; /** * Get the total storage */ - @CordovaProperty totalstorage: string; + @CordovaProperty + totalstorage: string; + } diff --git a/src/@ionic-native/plugins/facebook/index.ts b/src/@ionic-native/plugins/facebook/index.ts index 5b408ce1c..21bd6f598 100644 --- a/src/@ionic-native/plugins/facebook/index.ts +++ b/src/@ionic-native/plugins/facebook/index.ts @@ -2,9 +2,11 @@ import { Injectable } from '@angular/core'; import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; export interface FacebookLoginResponse { + status: string; authResponse: { + session_key: boolean; accessToken: string; @@ -16,7 +18,9 @@ export interface FacebookLoginResponse { secret: string; userID: string; + }; + } /** @@ -110,46 +114,46 @@ export interface FacebookLoginResponse { plugin: 'cordova-plugin-facebook4', pluginRef: 'facebookConnectPlugin', repo: 'https://github.com/jeduan/cordova-plugin-facebook4', - install: - 'ionic cordova plugin add cordova-plugin-facebook4 --variable APP_ID="123456789" --variable APP_NAME="myApplication"', + install: 'ionic cordova plugin add cordova-plugin-facebook4 --variable APP_ID="123456789" --variable APP_NAME="myApplication"', installVariables: ['APP_ID', 'APP_NAME'], platforms: ['Android', 'iOS', 'Browser'] }) @Injectable() export class Facebook extends IonicNativePlugin { + EVENTS: { - EVENT_NAME_ACTIVATED_APP: 'fb_mobile_activate_app'; - EVENT_NAME_DEACTIVATED_APP: 'fb_mobile_deactivate_app'; - EVENT_NAME_SESSION_INTERRUPTIONS: 'fb_mobile_app_interruptions'; - EVENT_NAME_TIME_BETWEEN_SESSIONS: 'fb_mobile_time_between_sessions'; - EVENT_NAME_COMPLETED_REGISTRATION: 'fb_mobile_complete_registration'; - EVENT_NAME_VIEWED_CONTENT: 'fb_mobile_content_view'; - EVENT_NAME_SEARCHED: 'fb_mobile_search'; - EVENT_NAME_RATED: 'fb_mobile_rate'; - EVENT_NAME_COMPLETED_TUTORIAL: 'fb_mobile_tutorial_completion'; - EVENT_NAME_PUSH_TOKEN_OBTAINED: 'fb_mobile_obtain_push_token'; - EVENT_NAME_ADDED_TO_CART: 'fb_mobile_add_to_cart'; - EVENT_NAME_ADDED_TO_WISHLIST: 'fb_mobile_add_to_wishlist'; - EVENT_NAME_INITIATED_CHECKOUT: 'fb_mobile_initiated_checkout'; - EVENT_NAME_ADDED_PAYMENT_INFO: 'fb_mobile_add_payment_info'; - EVENT_NAME_PURCHASED: 'fb_mobile_purchase'; - EVENT_NAME_ACHIEVED_LEVEL: 'fb_mobile_level_achieved'; - EVENT_NAME_UNLOCKED_ACHIEVEMENT: 'fb_mobile_achievement_unlocked'; - EVENT_NAME_SPENT_CREDITS: 'fb_mobile_spent_credits'; - EVENT_PARAM_CURRENCY: 'fb_currency'; - EVENT_PARAM_REGISTRATION_METHOD: 'fb_registration_method'; - EVENT_PARAM_CONTENT_TYPE: 'fb_content_type'; - EVENT_PARAM_CONTENT_ID: 'fb_content_id'; - EVENT_PARAM_SEARCH_STRING: 'fb_search_string'; - EVENT_PARAM_SUCCESS: 'fb_success'; - EVENT_PARAM_MAX_RATING_VALUE: 'fb_max_rating_value'; - EVENT_PARAM_PAYMENT_INFO_AVAILABLE: 'fb_payment_info_available'; - EVENT_PARAM_NUM_ITEMS: 'fb_num_items'; - EVENT_PARAM_LEVEL: 'fb_level'; - EVENT_PARAM_DESCRIPTION: 'fb_description'; - EVENT_PARAM_SOURCE_APPLICATION: 'fb_mobile_launch_source'; - EVENT_PARAM_VALUE_YES: '1'; - EVENT_PARAM_VALUE_NO: '0'; + EVENT_NAME_ACTIVATED_APP: 'fb_mobile_activate_app', + EVENT_NAME_DEACTIVATED_APP: 'fb_mobile_deactivate_app', + EVENT_NAME_SESSION_INTERRUPTIONS: 'fb_mobile_app_interruptions', + EVENT_NAME_TIME_BETWEEN_SESSIONS: 'fb_mobile_time_between_sessions', + EVENT_NAME_COMPLETED_REGISTRATION: 'fb_mobile_complete_registration', + EVENT_NAME_VIEWED_CONTENT: 'fb_mobile_content_view', + EVENT_NAME_SEARCHED: 'fb_mobile_search', + EVENT_NAME_RATED: 'fb_mobile_rate', + EVENT_NAME_COMPLETED_TUTORIAL: 'fb_mobile_tutorial_completion', + EVENT_NAME_PUSH_TOKEN_OBTAINED: 'fb_mobile_obtain_push_token', + EVENT_NAME_ADDED_TO_CART: 'fb_mobile_add_to_cart', + EVENT_NAME_ADDED_TO_WISHLIST: 'fb_mobile_add_to_wishlist', + EVENT_NAME_INITIATED_CHECKOUT: 'fb_mobile_initiated_checkout', + EVENT_NAME_ADDED_PAYMENT_INFO: 'fb_mobile_add_payment_info', + EVENT_NAME_PURCHASED: 'fb_mobile_purchase', + EVENT_NAME_ACHIEVED_LEVEL: 'fb_mobile_level_achieved', + EVENT_NAME_UNLOCKED_ACHIEVEMENT: 'fb_mobile_achievement_unlocked', + EVENT_NAME_SPENT_CREDITS: 'fb_mobile_spent_credits', + EVENT_PARAM_CURRENCY: 'fb_currency', + EVENT_PARAM_REGISTRATION_METHOD: 'fb_registration_method', + EVENT_PARAM_CONTENT_TYPE: 'fb_content_type', + EVENT_PARAM_CONTENT_ID: 'fb_content_id', + EVENT_PARAM_SEARCH_STRING: 'fb_search_string', + EVENT_PARAM_SUCCESS: 'fb_success', + EVENT_PARAM_MAX_RATING_VALUE: 'fb_max_rating_value', + EVENT_PARAM_PAYMENT_INFO_AVAILABLE: 'fb_payment_info_available', + EVENT_PARAM_NUM_ITEMS: 'fb_num_items', + EVENT_PARAM_LEVEL: 'fb_level', + EVENT_PARAM_DESCRIPTION: 'fb_description', + EVENT_PARAM_SOURCE_APPLICATION: 'fb_mobile_launch_source', + EVENT_PARAM_VALUE_YES: '1', + EVENT_PARAM_VALUE_NO: '0' }; /** @@ -185,9 +189,7 @@ export class Facebook extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with a status object if login succeeds, and rejects if login fails. */ @Cordova() - login(permissions: string[]): Promise { - return; - } + login(permissions: string[]): Promise { return; } /** * Logout of Facebook. @@ -196,9 +198,7 @@ export class Facebook extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves on a successful logout, and rejects if logout fails. */ @Cordova() - logout(): Promise { - return; - } + logout(): Promise { return; } /** * Determine if a user is logged in to Facebook and has authenticated your app. There are three possible states for a user: @@ -227,9 +227,7 @@ export class Facebook extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with a status, or rejects with an error */ @Cordova() - getLoginStatus(): Promise { - return; - } + getLoginStatus(): Promise { return; } /** * Get a Facebook access token for using Facebook services. @@ -237,9 +235,7 @@ export class Facebook extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with an access token, or rejects with an error */ @Cordova() - getAccessToken(): Promise { - return; - } + getAccessToken(): Promise { return; } /** * Show one of various Facebook dialogs. Example of options for a Share dialog: @@ -259,9 +255,7 @@ export class Facebook extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with success data, or rejects with an error */ @Cordova() - showDialog(options: any): Promise { - return; - } + showDialog(options: any): Promise { return; } /** * Make a call to Facebook Graph API. Can take additional permissions beyond those granted on login. @@ -277,9 +271,7 @@ export class Facebook extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with the result of the request, or rejects with an error */ @Cordova() - api(requestPath: string, permissions: string[]): Promise { - return; - } + api(requestPath: string, permissions: string[]): Promise { return; } /** * Log an event. For more information see the Events section above. @@ -293,9 +285,7 @@ export class Facebook extends IonicNativePlugin { successIndex: 3, errorIndex: 4 }) - logEvent(name: string, params?: Object, valueToSum?: number): Promise { - return; - } + logEvent(name: string, params?: Object, valueToSum?: number): Promise { return; } /** * Log a purchase. For more information see the Events section above. @@ -305,9 +295,7 @@ export class Facebook extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - logPurchase(value: number, currency: string): Promise { - return; - } + logPurchase(value: number, currency: string): Promise { return; } /** * Open App Invite dialog. Does not require login. @@ -324,7 +312,9 @@ export class Facebook extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with the result data, or rejects with an error */ @Cordova() - appInvite(options: { url: string; picture: string }): Promise { - return; - } + appInvite(options: { + url: string, + picture: string + }): Promise { return; } + } diff --git a/src/@ionic-native/plugins/fcm/index.ts b/src/@ionic-native/plugins/fcm/index.ts index f6a23d2b3..af5f0b5e3 100644 --- a/src/@ionic-native/plugins/fcm/index.ts +++ b/src/@ionic-native/plugins/fcm/index.ts @@ -1,8 +1,9 @@ +import { Plugin, IonicNativePlugin, Cordova } from '@ionic-native/core'; import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export interface NotificationData { + /** * Determines whether the notification was pressed or not */ @@ -14,6 +15,7 @@ export interface NotificationData { */ [name: string]: any; + } /** @@ -62,15 +64,14 @@ export interface NotificationData { }) @Injectable() export class FCM extends IonicNativePlugin { + /** * Get's device's current registration id * * @returns {Promise} Returns a Promise that resolves with the registration id token */ @Cordova() - getToken(): Promise { - return; - } + getToken(): Promise { return; } /** * Event firing on the token refresh @@ -80,9 +81,7 @@ export class FCM extends IonicNativePlugin { @Cordova({ observable: true }) - onTokenRefresh(): Observable { - return; - } + onTokenRefresh(): Observable { return; } /** * Subscribes you to a [topic](https://firebase.google.com/docs/notifications/android/console-topics) @@ -92,9 +91,7 @@ export class FCM extends IonicNativePlugin { * @returns {Promise} Returns a promise resolving in result of subscribing to a topic */ @Cordova() - subscribeToTopic(topic: string): Promise { - return; - } + subscribeToTopic(topic: string): Promise { return; } /** * Unubscribes you from a [topic](https://firebase.google.com/docs/notifications/android/console-topics) @@ -104,9 +101,7 @@ export class FCM extends IonicNativePlugin { * @returns {Promise} Returns a promise resolving in result of unsubscribing from a topic */ @Cordova() - unsubscribeFromTopic(topic: string): Promise { - return; - } + unsubscribeFromTopic(topic: string): Promise { return; } /** * Watch for incoming notifications @@ -118,7 +113,6 @@ export class FCM extends IonicNativePlugin { successIndex: 0, errorIndex: 2 }) - onNotification(): Observable { - return; - } + onNotification(): Observable { return; } + } diff --git a/src/@ionic-native/plugins/file-chooser/index.ts b/src/@ionic-native/plugins/file-chooser/index.ts index 4ea4d6eba..310441886 100644 --- a/src/@ionic-native/plugins/file-chooser/index.ts +++ b/src/@ionic-native/plugins/file-chooser/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; /** * @name File Chooser @@ -30,12 +30,12 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; }) @Injectable() export class FileChooser extends IonicNativePlugin { + /** * Open a file * @returns {Promise} */ @Cordova() - open(): Promise { - return; - } + open(): Promise { return; } + } diff --git a/src/@ionic-native/plugins/file-encryption/index.ts b/src/@ionic-native/plugins/file-encryption/index.ts index 5ac429aed..345cdb2e3 100644 --- a/src/@ionic-native/plugins/file-encryption/index.ts +++ b/src/@ionic-native/plugins/file-encryption/index.ts @@ -1,5 +1,5 @@ +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name File Encryption @@ -30,6 +30,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; }) @Injectable() export class FileEncryption extends IonicNativePlugin { + /** * Enrcypt a file * @param file {string} A string representing a local URI @@ -37,9 +38,7 @@ export class FileEncryption extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves when something happens */ @Cordova() - encrypt(file: string, key: string): Promise { - return; - } + encrypt(file: string, key: string): Promise { return; } /** * Decrypt a file @@ -48,7 +47,6 @@ export class FileEncryption extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves when something happens */ @Cordova() - decrypt(file: string, key: string): Promise { - return; - } + decrypt(file: string, key: string): Promise { return; } + } diff --git a/src/@ionic-native/plugins/file-opener/index.ts b/src/@ionic-native/plugins/file-opener/index.ts index 7776a2d35..1250e1c7d 100644 --- a/src/@ionic-native/plugins/file-opener/index.ts +++ b/src/@ionic-native/plugins/file-opener/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; /** * @name File Opener @@ -29,6 +29,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; }) @Injectable() export class FileOpener extends IonicNativePlugin { + /** * Open an file * @param filePath {string} File Path @@ -40,9 +41,7 @@ export class FileOpener extends IonicNativePlugin { successName: 'success', errorName: 'error' }) - open(filePath: string, fileMIMEType: string): Promise { - return; - } + open(filePath: string, fileMIMEType: string): Promise { return; } /** * Uninstalls a package @@ -54,9 +53,7 @@ export class FileOpener extends IonicNativePlugin { successName: 'success', errorName: 'error' }) - uninstall(packageId: string): Promise { - return; - } + uninstall(packageId: string): Promise { return; } /** * Check if an app is already installed @@ -68,7 +65,6 @@ export class FileOpener extends IonicNativePlugin { successName: 'success', errorName: 'error' }) - appIsInstalled(packageId: string): Promise { - return; - } + appIsInstalled(packageId: string): Promise { return; } + } diff --git a/src/@ionic-native/plugins/file-path/index.ts b/src/@ionic-native/plugins/file-path/index.ts index c35450e6e..29dc9b719 100644 --- a/src/@ionic-native/plugins/file-path/index.ts +++ b/src/@ionic-native/plugins/file-path/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; declare const window: any; @@ -32,13 +32,13 @@ declare const window: any; }) @Injectable() export class FilePath extends IonicNativePlugin { + /** * Resolve native path for given content URL/path. * @param {String} path Content URL/path. * @returns {Promise} */ @Cordova() - resolveNativePath(path: string): Promise { - return; - } + resolveNativePath(path: string): Promise { return; } + } diff --git a/src/@ionic-native/plugins/file-transfer/index.ts b/src/@ionic-native/plugins/file-transfer/index.ts index cf4e38af6..0530d56d5 100644 --- a/src/@ionic-native/plugins/file-transfer/index.ts +++ b/src/@ionic-native/plugins/file-transfer/index.ts @@ -1,13 +1,8 @@ import { Injectable } from '@angular/core'; -import { - checkAvailability, - CordovaInstance, - InstanceCheck, - IonicNativePlugin, - Plugin -} from '@ionic-native/core'; +import { CordovaInstance, Plugin, InstanceCheck, checkAvailability, IonicNativePlugin } from '@ionic-native/core'; export interface FileUploadOptions { + /** * The name of the form element. * Defaults to 'file'. @@ -35,7 +30,7 @@ export interface FileUploadOptions { /** * A set of optional key/value pairs to pass in the HTTP request. */ - params?: { [s: string]: any }; + params?: { [s: string]: any; }; /** * Whether to upload the data in chunked streaming mode. @@ -48,10 +43,12 @@ export interface FileUploadOptions { * than one value. On iOS, FireOS, and Android, if a header named * Content-Type is present, multipart form data will NOT be used. */ - headers?: { [s: string]: any }; + headers?: { [s: string]: any; }; + } export interface FileUploadResult { + /** * The number of bytes sent to the server as part of the upload. */ @@ -70,10 +67,12 @@ export interface FileUploadResult { /** * The HTTP response headers by the server. */ - headers: { [s: string]: any }; + headers: { [s: string]: any; }; + } export interface FileTransferError { + /** * One of the predefined error codes listed below. */ @@ -104,6 +103,7 @@ export interface FileTransferError { * Either e.getMessage or e.toString. */ exception: string; + } /** @@ -179,18 +179,11 @@ export interface FileTransferError { plugin: 'cordova-plugin-file-transfer', pluginRef: 'FileTransfer', repo: 'https://github.com/apache/cordova-plugin-file-transfer', - platforms: [ - 'Amazon Fire OS', - 'Android', - 'Browser', - 'iOS', - 'Ubuntu', - 'Windows', - 'Windows Phone' - ] + platforms: ['Amazon Fire OS', 'Android', 'Browser', 'iOS', 'Ubuntu', 'Windows', 'Windows Phone'] }) @Injectable() export class FileTransfer extends IonicNativePlugin { + /** * Error code rejected from upload with FileTransferError * Defined in FileTransferError. @@ -216,6 +209,7 @@ export class FileTransfer extends IonicNativePlugin { create(): FileTransferObject { return new FileTransferObject(); } + } /** @@ -229,13 +223,7 @@ export class FileTransferObject { private _objectInstance: any; constructor() { - if ( - checkAvailability( - FileTransfer.getPluginRef(), - null, - FileTransfer.getPluginName() - ) === true - ) { + if (checkAvailability(FileTransfer.getPluginRef(), null, FileTransfer.getPluginName()) === true) { this._objectInstance = new (FileTransfer.getPlugin())(); } } @@ -253,14 +241,7 @@ export class FileTransferObject { successIndex: 2, errorIndex: 3 }) - upload( - fileUrl: string, - url: string, - options?: FileUploadOptions, - trustAllHosts?: boolean - ): Promise { - return; - } + upload(fileUrl: string, url: string, options?: FileUploadOptions, trustAllHosts?: boolean): Promise { return; } /** * Downloads a file from server. @@ -275,14 +256,7 @@ export class FileTransferObject { successIndex: 2, errorIndex: 3 }) - download( - source: string, - target: string, - trustAllHosts?: boolean, - options?: { [s: string]: any } - ): Promise { - return; - } + download(source: string, target: string, trustAllHosts?: boolean, options?: { [s: string]: any; }): Promise { return; } /** * Registers a listener that gets called whenever a new chunk of data is transferred. diff --git a/src/@ionic-native/plugins/file/index.ts b/src/@ionic-native/plugins/file/index.ts index c05ae829c..f6c7f06dc 100644 --- a/src/@ionic-native/plugins/file/index.ts +++ b/src/@ionic-native/plugins/file/index.ts @@ -1,10 +1,5 @@ import { Injectable } from '@angular/core'; -import { - CordovaCheck, - CordovaProperty, - IonicNativePlugin, - Plugin -} from '@ionic-native/core'; +import { CordovaProperty, Plugin, CordovaCheck, IonicNativePlugin } from '@ionic-native/core'; export interface IFile extends Blob { /** @@ -41,6 +36,7 @@ export interface IFile extends Blob { } export interface LocalFileSystem { + /** * Used for storage with no guarantee of persistence. */ @@ -58,12 +54,7 @@ export interface LocalFileSystem { * @param successCallback The callback that is called when the user agent provides a filesystem. * @param errorCallback A callback that is called when errors happen, or when the request to obtain the filesystem is denied. */ - requestFileSystem( - type: number, - size: number, - successCallback: FileSystemCallback, - errorCallback?: ErrorCallback - ): void; + requestFileSystem(type: number, size: number, successCallback: FileSystemCallback, errorCallback?: ErrorCallback): void; /** * Allows the user to look up the Entry for a file or directory referred to by a local URL. @@ -71,21 +62,12 @@ export interface LocalFileSystem { * @param successCallback A callback that is called to report the Entry to which the supplied URL refers. * @param errorCallback A callback that is called when errors happen, or when the request to obtain the Entry is denied. */ - resolveLocalFileSystemURL( - url: string, - successCallback: EntryCallback, - errorCallback?: ErrorCallback - ): void; + resolveLocalFileSystemURL(url: string, successCallback: EntryCallback, errorCallback?: ErrorCallback): void; /** * see requestFileSystem. */ - webkitRequestFileSystem( - type: number, - size: number, - successCallback: FileSystemCallback, - errorCallback?: ErrorCallback - ): void; + webkitRequestFileSystem(type: number, size: number, successCallback: FileSystemCallback, errorCallback?: ErrorCallback): void; } export interface Metadata { @@ -133,9 +115,11 @@ export interface FileSystem { toJSON(): string; encodeURIPath(path: string): string; + } export interface Entry { + /** * Entry is a file. */ @@ -151,10 +135,7 @@ export interface Entry { * @param successCallback A callback that is called with the time of the last modification. * @param errorCallback ErrorCallback A callback that is called when errors happen. */ - getMetadata( - successCallback: MetadataCallback, - errorCallback?: ErrorCallback - ): void; + getMetadata(successCallback: MetadataCallback, errorCallback?: ErrorCallback): void; /** * Set the metadata of the entry. @@ -162,11 +143,7 @@ export interface Entry { * @param errorCallback {Function} is called with a FileError * @param metadataObject {Metadata} keys and values to set */ - setMetadata( - successCallback: MetadataCallback, - errorCallback: ErrorCallback, - metadataObject: Metadata - ): void; + setMetadata(successCallback: MetadataCallback, errorCallback: ErrorCallback, metadataObject: Metadata): void; /** * The name of the entry, excluding the path leading to it. @@ -202,12 +179,7 @@ export interface Entry { * A move of a file on top of an existing file must attempt to delete and replace that file. * A move of a directory on top of an existing empty directory must attempt to delete and replace that directory. */ - moveTo( - parent: DirectoryEntry, - newName?: string, - successCallback?: EntryCallback, - errorCallback?: ErrorCallback - ): void; + moveTo(parent: DirectoryEntry, newName?: string, successCallback?: EntryCallback, errorCallback?: ErrorCallback): void; /** * Copy an entry to a different location on the file system. It is an error to try to: @@ -224,12 +196,7 @@ export interface Entry { * * Directory copies are always recursive--that is, they copy all contents of the directory. */ - copyTo( - parent: DirectoryEntry, - newName?: string, - successCallback?: EntryCallback, - errorCallback?: ErrorCallback - ): void; + copyTo(parent: DirectoryEntry, newName?: string, successCallback?: EntryCallback, errorCallback?: ErrorCallback): void; /** * Returns a URL that can be used to identify this entry. Unlike the URN defined in [FILE-API-ED], it has no specific expiration; as it describes a location on disk, it should be valid at least as long as that location exists. @@ -254,10 +221,7 @@ export interface Entry { * @param successCallback A callback that is called to return the parent Entry. * @param errorCallback A callback that is called when errors happen. */ - getParent( - successCallback: DirectoryEntryCallback, - errorCallback?: ErrorCallback - ): void; + getParent(successCallback: DirectoryEntryCallback, errorCallback?: ErrorCallback): void; } /** @@ -283,12 +247,7 @@ export interface DirectoryEntry extends Entry { * @param successCallback A callback that is called to return the File selected or created. * @param errorCallback A callback that is called when errors happen. */ - getFile( - path: string, - options?: Flags, - successCallback?: FileEntryCallback, - errorCallback?: ErrorCallback - ): void; + getFile(path: string, options?: Flags, successCallback?: FileEntryCallback, errorCallback?: ErrorCallback): void; /** * Creates or looks up a directory. @@ -305,22 +264,14 @@ export interface DirectoryEntry extends Entry { * @param errorCallback A callback that is called when errors happen. * */ - getDirectory( - path: string, - options?: Flags, - successCallback?: DirectoryEntryCallback, - errorCallback?: ErrorCallback - ): void; + getDirectory(path: string, options?: Flags, successCallback?: DirectoryEntryCallback, errorCallback?: ErrorCallback): void; /** * Deletes a directory and all of its contents, if any. In the event of an error [e.g. trying to delete a directory that contains a file that cannot be removed], some of the contents of the directory may be deleted. It is an error to attempt to delete the root directory of a filesystem. * @param successCallback A callback that is called on success. * @param errorCallback A callback that is called when errors happen. */ - removeRecursively( - successCallback: VoidCallback, - errorCallback?: ErrorCallback - ): void; + removeRecursively(successCallback: VoidCallback, errorCallback?: ErrorCallback): void; } /** @@ -340,10 +291,7 @@ export interface DirectoryReader { * @param successCallback Called once per successful call to readEntries to deliver the next previously-unreported set of Entries in the associated Directory. If all Entries have already been returned from previous invocations of readEntries, successCallback must be called with a zero-length array as an argument. * @param errorCallback A callback indicating that there was an error reading from the Directory. */ - readEntries( - successCallback: EntriesCallback, - errorCallback?: ErrorCallback - ): void; + readEntries(successCallback: EntriesCallback, errorCallback?: ErrorCallback): void; } /** @@ -355,10 +303,7 @@ export interface FileEntry extends Entry { * @param successCallback A callback that is called with the new FileWriter. * @param errorCallback A callback that is called when errors happen. */ - createWriter( - successCallback: FileWriterCallback, - errorCallback?: ErrorCallback - ): void; + createWriter(successCallback: FileWriterCallback, errorCallback?: ErrorCallback): void; /** * Returns a File that represents the current state of the file that this FileEntry represents. @@ -633,6 +578,7 @@ export declare class FileReader { * @hidden */ [key: string]: any; + } interface Window extends LocalFileSystem {} @@ -678,66 +624,79 @@ declare const window: Window; }) @Injectable() export class File extends IonicNativePlugin { - /** - * Read-only directory where the application is installed. - */ - @CordovaProperty applicationDirectory: string; /** * Read-only directory where the application is installed. */ - @CordovaProperty applicationStorageDirectory: string; + @CordovaProperty + applicationDirectory: string; + + /** + * Read-only directory where the application is installed. + */ + @CordovaProperty + applicationStorageDirectory: string; /** * Where to put app-specific data files. */ - @CordovaProperty dataDirectory: string; + @CordovaProperty + dataDirectory: string; /** * Cached files that should survive app restarts. * Apps should not rely on the OS to delete files in here. */ - @CordovaProperty cacheDirectory: string; + @CordovaProperty + cacheDirectory: string; /** * Android: the application space on external storage. */ - @CordovaProperty externalApplicationStorageDirectory: string; + @CordovaProperty + externalApplicationStorageDirectory: string; /** * Android: Where to put app-specific data files on external storage. */ - @CordovaProperty externalDataDirectory: string; + @CordovaProperty + externalDataDirectory: string; /** * Android: the application cache on external storage. */ - @CordovaProperty externalCacheDirectory: string; + @CordovaProperty + externalCacheDirectory: string; /** * Android: the external storage (SD card) root. */ - @CordovaProperty externalRootDirectory: string; + @CordovaProperty + externalRootDirectory: string; /** * iOS: Temp directory that the OS can clear at will. */ - @CordovaProperty tempDirectory: string; + @CordovaProperty + tempDirectory: string; /** * iOS: Holds app-specific files that should be synced (e.g. to iCloud). */ - @CordovaProperty syncedDataDirectory: string; + @CordovaProperty + syncedDataDirectory: string; /** * iOS: Files private to the app, but that are meaningful to other applications (e.g. Office files) */ - @CordovaProperty documentsDirectory: string; + @CordovaProperty + documentsDirectory: string; /** * BlackBerry10: Files globally available to all apps */ - @CordovaProperty sharedDirectory: string; + @CordovaProperty + sharedDirectory: string; cordovaFileError: any = { 1: 'NOT_FOUND_ERR', @@ -753,7 +712,7 @@ export class File extends IonicNativePlugin { 11: 'TYPE_MISMATCH_ERR', 12: 'PATH_EXISTS_ERR', 13: 'WRONG_ENTRY_TYPE', - 14: 'DIR_READ_ERR' + 14: 'DIR_READ_ERR', }; /** @@ -776,16 +735,17 @@ export class File extends IonicNativePlugin { */ @CordovaCheck() checkDir(path: string, dir: string): Promise { - if (/^\//.test(dir)) { + if ((/^\//.test(dir))) { let err = new FileError(5); - err.message = 'directory cannot start with /'; + err.message = 'directory cannot start with \/'; return Promise.reject(err); } let fullpath = path + dir; - return this.resolveDirectoryUrl(fullpath).then(() => { - return true; - }); + return this.resolveDirectoryUrl(fullpath) + .then(() => { + return true; + }); } /** @@ -799,14 +759,10 @@ export class File extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with a DirectoryEntry or rejects with an error. */ @CordovaCheck() - createDir( - path: string, - dirName: string, - replace: boolean - ): Promise { - if (/^\//.test(dirName)) { + createDir(path: string, dirName: string, replace: boolean): Promise { + if ((/^\//.test(dirName))) { let err = new FileError(5); - err.message = 'directory cannot start with /'; + err.message = 'directory cannot start with \/'; return Promise.reject(err); } @@ -818,9 +774,10 @@ export class File extends IonicNativePlugin { options.exclusive = true; } - return this.resolveDirectoryUrl(path).then(fse => { - return this.getDirectory(fse, dirName, options); - }); + return this.resolveDirectoryUrl(path) + .then((fse) => { + return this.getDirectory(fse, dirName, options); + }); } /** @@ -832,17 +789,17 @@ export class File extends IonicNativePlugin { */ @CordovaCheck() removeDir(path: string, dirName: string): Promise { - if (/^\//.test(dirName)) { + if ((/^\//.test(dirName))) { let err = new FileError(5); - err.message = 'directory cannot start with /'; + err.message = 'directory cannot start with \/'; return Promise.reject(err); } return this.resolveDirectoryUrl(path) - .then(fse => { + .then((fse) => { return this.getDirectory(fse, dirName, { create: false }); }) - .then(de => { + .then((de) => { return this.remove(de); }); } @@ -857,28 +814,24 @@ export class File extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves to the new DirectoryEntry object or rejects with an error. */ @CordovaCheck() - moveDir( - path: string, - dirName: string, - newPath: string, - newDirName: string - ): Promise { + moveDir(path: string, dirName: string, newPath: string, newDirName: string): Promise { newDirName = newDirName || dirName; - if (/^\//.test(newDirName)) { + if ((/^\//.test(newDirName))) { let err = new FileError(5); - err.message = 'directory cannot start with /'; + err.message = 'directory cannot start with \/'; return Promise.reject(err); } return this.resolveDirectoryUrl(path) - .then(fse => { + .then((fse) => { return this.getDirectory(fse, dirName, { create: false }); }) - .then(srcde => { - return this.resolveDirectoryUrl(newPath).then(deste => { - return this.move(srcde, deste, newDirName); - }); + .then((srcde) => { + return this.resolveDirectoryUrl(newPath) + .then((deste) => { + return this.move(srcde, deste, newDirName); + }); }); } @@ -892,26 +845,22 @@ export class File extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves to the new Entry object or rejects with an error. */ @CordovaCheck() - copyDir( - path: string, - dirName: string, - newPath: string, - newDirName: string - ): Promise { - if (/^\//.test(newDirName)) { + copyDir(path: string, dirName: string, newPath: string, newDirName: string): Promise { + if ((/^\//.test(newDirName))) { let err = new FileError(5); - err.message = 'directory cannot start with /'; + err.message = 'directory cannot start with \/'; return Promise.reject(err); } return this.resolveDirectoryUrl(path) - .then(fse => { + .then((fse) => { return this.getDirectory(fse, dirName, { create: false }); }) - .then(srcde => { - return this.resolveDirectoryUrl(newPath).then(deste => { - return this.copy(srcde, deste, newDirName); - }); + .then((srcde) => { + return this.resolveDirectoryUrl(newPath) + .then((deste) => { + return this.copy(srcde, deste, newDirName); + }); }); } @@ -924,20 +873,17 @@ export class File extends IonicNativePlugin { */ @CordovaCheck() listDir(path: string, dirName: string): Promise { - if (/^\//.test(dirName)) { + if ((/^\//.test(dirName))) { let err = new FileError(5); - err.message = 'directory cannot start with /'; + err.message = 'directory cannot start with \/'; return Promise.reject(err); } return this.resolveDirectoryUrl(path) - .then(fse => { - return this.getDirectory(fse, dirName, { - create: false, - exclusive: false - }); + .then((fse) => { + return this.getDirectory(fse, dirName, { create: false, exclusive: false }); }) - .then(de => { + .then((de) => { let reader = de.createReader(); return this.readEntries(reader); }); @@ -952,17 +898,17 @@ export class File extends IonicNativePlugin { */ @CordovaCheck() removeRecursively(path: string, dirName: string): Promise { - if (/^\//.test(dirName)) { + if ((/^\//.test(dirName))) { let err = new FileError(5); - err.message = 'directory cannot start with /'; + err.message = 'directory cannot start with \/'; return Promise.reject(err); } return this.resolveDirectoryUrl(path) - .then(fse => { + .then((fse) => { return this.getDirectory(fse, dirName, { create: false }); }) - .then(de => { + .then((de) => { return this.rimraf(de); }); } @@ -976,21 +922,22 @@ export class File extends IonicNativePlugin { */ @CordovaCheck() checkFile(path: string, file: string): Promise { - if (/^\//.test(file)) { + if ((/^\//.test(file))) { let err = new FileError(5); - err.message = 'file cannot start with /'; + err.message = 'file cannot start with \/'; return Promise.reject(err); } - return this.resolveLocalFilesystemUrl(path + file).then(fse => { - if (fse.isFile) { - return true; - } else { - let err = new FileError(13); - err.message = 'input is not a file'; - return Promise.reject(err); - } - }); + return this.resolveLocalFilesystemUrl(path + file) + .then((fse) => { + if (fse.isFile) { + return true; + } else { + let err = new FileError(13); + err.message = 'input is not a file'; + return Promise.reject(err); + } + }); } /** @@ -1004,14 +951,10 @@ export class File extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves to a FileEntry or rejects with an error. */ @CordovaCheck() - createFile( - path: string, - fileName: string, - replace: boolean - ): Promise { - if (/^\//.test(fileName)) { + createFile(path: string, fileName: string, replace: boolean): Promise { + if ((/^\//.test(fileName))) { let err = new FileError(5); - err.message = 'file-name cannot start with /'; + err.message = 'file-name cannot start with \/'; return Promise.reject(err); } @@ -1023,9 +966,10 @@ export class File extends IonicNativePlugin { options.exclusive = true; } - return this.resolveDirectoryUrl(path).then(fse => { - return this.getFile(fse, fileName, options); - }); + return this.resolveDirectoryUrl(path) + .then((fse) => { + return this.getFile(fse, fileName, options); + }); } /** @@ -1037,17 +981,17 @@ export class File extends IonicNativePlugin { */ @CordovaCheck() removeFile(path: string, fileName: string): Promise { - if (/^\//.test(fileName)) { + if ((/^\//.test(fileName))) { let err = new FileError(5); - err.message = 'file-name cannot start with /'; + err.message = 'file-name cannot start with \/'; return Promise.reject(err); } return this.resolveDirectoryUrl(path) - .then(fse => { + .then((fse) => { return this.getFile(fse, fileName, { create: false }); }) - .then(fe => { + .then((fe) => { return this.remove(fe); }); } @@ -1061,15 +1005,11 @@ export class File extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves to updated file entry or rejects with an error. */ @CordovaCheck() - writeFile( - path: string, - fileName: string, - text: string | Blob | ArrayBuffer, - options: IWriteOptions = {} - ): Promise { - if (/^\//.test(fileName)) { + writeFile(path: string, fileName: string, + text: string | Blob | ArrayBuffer, options: IWriteOptions = {}): Promise { + if ((/^\//.test(fileName))) { const err = new FileError(5); - err.message = 'file-name cannot start with /'; + err.message = 'file-name cannot start with \/'; return Promise.reject(err); } @@ -1095,13 +1035,9 @@ export class File extends IonicNativePlugin { * @param {IWriteOptions} options replace file if set to true. See WriteOptions for more information. * @returns {Promise} Returns a Promise that resolves to updated file entry or rejects with an error. */ - private writeFileEntry( - fe: FileEntry, - text: string | Blob | ArrayBuffer, - options: IWriteOptions - ) { + private writeFileEntry(fe: FileEntry, text: string | Blob | ArrayBuffer, options: IWriteOptions) { return this.createWriter(fe) - .then(writer => { + .then((writer) => { if (options.append) { writer.seek(writer.length); } @@ -1115,6 +1051,7 @@ export class File extends IonicNativePlugin { .then(() => fe); } + /** Write to an existing file. * * @param {string} path Base FileSystem. Please refer to the iOS and Android filesystems above @@ -1123,11 +1060,7 @@ export class File extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves or rejects with an error. */ @CordovaCheck() - writeExistingFile( - path: string, - fileName: string, - text: string | Blob - ): Promise { + writeExistingFile(path: string, fileName: string, text: string | Blob): Promise { return this.writeFile(path, fileName, text, { replace: true }); } @@ -1179,14 +1112,10 @@ export class File extends IonicNativePlugin { return this.readFile(path, file, 'ArrayBuffer'); } - private readFile( - path: string, - file: string, - readAs: 'ArrayBuffer' | 'BinaryString' | 'DataURL' | 'Text' - ): Promise { - if (/^\//.test(file)) { + private readFile(path: string, file: string, readAs: 'ArrayBuffer' | 'BinaryString' | 'DataURL' | 'Text'): Promise { + if ((/^\//.test(file))) { let err = new FileError(5); - err.message = 'file-name cannot start with /'; + err.message = 'file-name cannot start with \/'; return Promise.reject(err); } @@ -1199,7 +1128,7 @@ export class File extends IonicNativePlugin { return new Promise((resolve, reject) => { reader.onloadend = () => { if (reader.result !== undefined || reader.result !== null) { - resolve((reader.result)); + resolve(reader.result); } else if (reader.error !== undefined || reader.error !== null) { reject(reader.error); } else { @@ -1207,14 +1136,12 @@ export class File extends IonicNativePlugin { } }; - fileEntry.file( - file => { - reader[`readAs${readAs}`].call(reader, file); - }, - error => { - reject(error); - } - ); + fileEntry.file(file => { + reader[`readAs${readAs}`].call(reader, file); + }, error => { + reject(error); + }); + }); }); } @@ -1229,28 +1156,24 @@ export class File extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves to the new Entry or rejects with an error. */ @CordovaCheck() - moveFile( - path: string, - fileName: string, - newPath: string, - newFileName: string - ): Promise { + moveFile(path: string, fileName: string, newPath: string, newFileName: string): Promise { newFileName = newFileName || fileName; - if (/^\//.test(newFileName)) { + if ((/^\//.test(newFileName))) { let err = new FileError(5); - err.message = 'file name cannot start with /'; + err.message = 'file name cannot start with \/'; return Promise.reject(err); } return this.resolveDirectoryUrl(path) - .then(fse => { + .then((fse) => { return this.getFile(fse, fileName, { create: false }); }) - .then(srcfe => { - return this.resolveDirectoryUrl(newPath).then(deste => { - return this.move(srcfe, deste, newFileName); - }); + .then((srcfe) => { + return this.resolveDirectoryUrl(newPath) + .then((deste) => { + return this.move(srcfe, deste, newFileName); + }); }); } @@ -1264,28 +1187,24 @@ export class File extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves to an Entry or rejects with an error. */ @CordovaCheck() - copyFile( - path: string, - fileName: string, - newPath: string, - newFileName: string - ): Promise { + copyFile(path: string, fileName: string, newPath: string, newFileName: string): Promise { newFileName = newFileName || fileName; - if (/^\//.test(newFileName)) { + if ((/^\//.test(newFileName))) { let err = new FileError(5); - err.message = 'file name cannot start with /'; + err.message = 'file name cannot start with \/'; return Promise.reject(err); } return this.resolveDirectoryUrl(path) - .then(fse => { + .then((fse) => { return this.getFile(fse, fileName, { create: false }); }) - .then(srcfe => { - return this.resolveDirectoryUrl(newPath).then(deste => { - return this.copy(srcfe, deste, newFileName); - }); + .then((srcfe) => { + return this.resolveDirectoryUrl(newPath) + .then((deste) => { + return this.copy(srcfe, deste, newFileName); + }); }); } @@ -1295,7 +1214,7 @@ export class File extends IonicNativePlugin { private fillErrorMessage(err: FileError): void { try { err.message = this.cordovaFileError[err.code]; - } catch (e) {} + } catch (e) { } } /** @@ -1307,16 +1226,12 @@ export class File extends IonicNativePlugin { resolveLocalFilesystemUrl(fileUrl: string): Promise { return new Promise((resolve, reject) => { try { - window.resolveLocalFileSystemURL( - fileUrl, - (entry: Entry) => { - resolve(entry); - }, - err => { - this.fillErrorMessage(err); - reject(err); - } - ); + window.resolveLocalFileSystemURL(fileUrl, (entry: Entry) => { + resolve(entry); + }, (err) => { + this.fillErrorMessage(err); + reject(err); + }); } catch (xc) { this.fillErrorMessage(xc); reject(xc); @@ -1331,15 +1246,16 @@ export class File extends IonicNativePlugin { */ @CordovaCheck() resolveDirectoryUrl(directoryUrl: string): Promise { - return this.resolveLocalFilesystemUrl(directoryUrl).then(de => { - if (de.isDirectory) { - return de; - } else { - const err = new FileError(13); - err.message = 'input is not a directory'; - return Promise.reject(err); - } - }); + return this.resolveLocalFilesystemUrl(directoryUrl) + .then((de) => { + if (de.isDirectory) { + return de; + } else { + const err = new FileError(13); + err.message = 'input is not a directory'; + return Promise.reject(err); + } + }); } /** @@ -1350,24 +1266,15 @@ export class File extends IonicNativePlugin { * @returns {Promise} */ @CordovaCheck() - getDirectory( - directoryEntry: DirectoryEntry, - directoryName: string, - flags: Flags - ): Promise { + getDirectory(directoryEntry: DirectoryEntry, directoryName: string, flags: Flags): Promise { return new Promise((resolve, reject) => { try { - directoryEntry.getDirectory( - directoryName, - flags, - de => { - resolve(de); - }, - err => { - this.fillErrorMessage(err); - reject(err); - } - ); + directoryEntry.getDirectory(directoryName, flags, (de) => { + resolve(de); + }, (err) => { + this.fillErrorMessage(err); + reject(err); + }); } catch (xc) { this.fillErrorMessage(xc); reject(xc); @@ -1383,14 +1290,10 @@ export class File extends IonicNativePlugin { * @returns {Promise} */ @CordovaCheck() - getFile( - directoryEntry: DirectoryEntry, - fileName: string, - flags: Flags - ): Promise { + getFile(directoryEntry: DirectoryEntry, fileName: string, flags: Flags): Promise { return new Promise((resolve, reject) => { try { - directoryEntry.getFile(fileName, flags, resolve, err => { + directoryEntry.getFile(fileName, flags, resolve, (err) => { this.fillErrorMessage(err); reject(err); }); @@ -1406,61 +1309,40 @@ export class File extends IonicNativePlugin { */ private remove(fe: Entry): Promise { return new Promise((resolve, reject) => { - fe.remove( - () => { - resolve({ success: true, fileRemoved: fe }); - }, - err => { - this.fillErrorMessage(err); - reject(err); - } - ); + fe.remove(() => { + resolve({ success: true, fileRemoved: fe }); + }, (err) => { + this.fillErrorMessage(err); + reject(err); + }); }); } /** * @hidden */ - private move( - srce: Entry, - destdir: DirectoryEntry, - newName: string - ): Promise { + private move(srce: Entry, destdir: DirectoryEntry, newName: string): Promise { return new Promise((resolve, reject) => { - srce.moveTo( - destdir, - newName, - deste => { - resolve(deste); - }, - err => { - this.fillErrorMessage(err); - reject(err); - } - ); + srce.moveTo(destdir, newName, (deste) => { + resolve(deste); + }, (err) => { + this.fillErrorMessage(err); + reject(err); + }); }); } /** * @hidden */ - private copy( - srce: Entry, - destdir: DirectoryEntry, - newName: string - ): Promise { + private copy(srce: Entry, destdir: DirectoryEntry, newName: string): Promise { return new Promise((resolve, reject) => { - srce.copyTo( - destdir, - newName, - deste => { - resolve(deste); - }, - err => { - this.fillErrorMessage(err); - reject(err); - } - ); + srce.copyTo(destdir, newName, (deste) => { + resolve(deste); + }, (err) => { + this.fillErrorMessage(err); + reject(err); + }); }); } @@ -1469,15 +1351,12 @@ export class File extends IonicNativePlugin { */ private readEntries(dr: DirectoryReader): Promise { return new Promise((resolve, reject) => { - dr.readEntries( - entries => { - resolve(entries); - }, - err => { - this.fillErrorMessage(err); - reject(err); - } - ); + dr.readEntries((entries) => { + resolve(entries); + }, (err) => { + this.fillErrorMessage(err); + reject(err); + }); }); } @@ -1486,15 +1365,12 @@ export class File extends IonicNativePlugin { */ private rimraf(de: DirectoryEntry): Promise { return new Promise((resolve, reject) => { - de.removeRecursively( - () => { - resolve({ success: true, fileRemoved: de }); - }, - err => { - this.fillErrorMessage(err); - reject(err); - } - ); + de.removeRecursively(() => { + resolve({ success: true, fileRemoved: de }); + }, (err) => { + this.fillErrorMessage(err); + reject(err); + }); }); } @@ -1503,31 +1379,25 @@ export class File extends IonicNativePlugin { */ private createWriter(fe: FileEntry): Promise { return new Promise((resolve, reject) => { - fe.createWriter( - writer => { - resolve(writer); - }, - err => { - this.fillErrorMessage(err); - reject(err); - } - ); + fe.createWriter((writer) => { + resolve(writer); + }, (err) => { + this.fillErrorMessage(err); + reject(err); + }); }); } /** * @hidden */ - private write( - writer: FileWriter, - gu: string | Blob | ArrayBuffer - ): Promise { + private write(writer: FileWriter, gu: string | Blob | ArrayBuffer): Promise { if (gu instanceof Blob) { return this.writeFileInChunks(writer, gu); } return new Promise((resolve, reject) => { - writer.onwriteend = evt => { + writer.onwriteend = (evt) => { if (writer.error) { reject(writer.error); } else { diff --git a/src/@ionic-native/plugins/fingerprint-aio/index.ts b/src/@ionic-native/plugins/fingerprint-aio/index.ts index 55def10c2..8d414ccb2 100644 --- a/src/@ionic-native/plugins/fingerprint-aio/index.ts +++ b/src/@ionic-native/plugins/fingerprint-aio/index.ts @@ -1,5 +1,6 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; + export interface FingerprintOptions { /** @@ -65,14 +66,13 @@ export interface FingerprintOptions { }) @Injectable() export class FingerprintAIO extends IonicNativePlugin { + /** * Check if fingerprint authentication is available * @return {Promise} Returns a promise with result */ @Cordova() - isAvailable(): Promise { - return; - } + isAvailable(): Promise { return; } /** * Show authentication dialogue @@ -80,7 +80,6 @@ export class FingerprintAIO extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves when authentication was successfull */ @Cordova() - show(options: FingerprintOptions): Promise { - return; - } + show(options: FingerprintOptions): Promise { return; } + } diff --git a/src/@ionic-native/plugins/firebase-analytics/index.ts b/src/@ionic-native/plugins/firebase-analytics/index.ts index 7755f7d4a..5cdac8fd4 100644 --- a/src/@ionic-native/plugins/firebase-analytics/index.ts +++ b/src/@ionic-native/plugins/firebase-analytics/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; /** * @beta @@ -35,6 +35,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; }) @Injectable() export class FirebaseAnalytics extends IonicNativePlugin { + /** * Logs an app event. * Be aware of automatically collected events. @@ -43,9 +44,7 @@ export class FirebaseAnalytics extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova({ sync: true }) - logEvent(name: string, params: any): Promise { - return; - } + logEvent(name: string, params: any): Promise { return; } /** * Sets the user ID property. @@ -54,9 +53,7 @@ export class FirebaseAnalytics extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova({ sync: true }) - setUserId(id: string): Promise { - return; - } + setUserId(id: string): Promise { return; } /** * This feature must be used in accordance with Google's Privacy Policy. @@ -66,9 +63,7 @@ export class FirebaseAnalytics extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova({ sync: true }) - setUserProperty(name: string, value: string): Promise { - return; - } + setUserProperty(name: string, value: string): Promise { return; } /** * Sets whether analytics collection is enabled for this app on this device. @@ -76,9 +71,7 @@ export class FirebaseAnalytics extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova({ sync: true }) - setEnabled(enabled: boolean): Promise { - return; - } + setEnabled(enabled: boolean): Promise { return; } /** * Sets the current screen name, which specifies the current visual context in your app. @@ -87,7 +80,6 @@ export class FirebaseAnalytics extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova({ sync: true }) - setCurrentScreen(name: string): Promise { - return; - } + setCurrentScreen(name: string): Promise { return; } + } diff --git a/src/@ionic-native/plugins/firebase-dynamic-links/index.ts b/src/@ionic-native/plugins/firebase-dynamic-links/index.ts index f3b7eb83a..00bc7cbda 100644 --- a/src/@ionic-native/plugins/firebase-dynamic-links/index.ts +++ b/src/@ionic-native/plugins/firebase-dynamic-links/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; export interface DynamicLinksOptions { title: string; @@ -66,21 +66,19 @@ export interface DynamicLinksOptions { plugin: ' cordova-plugin-firebase-dynamiclinks', pluginRef: 'cordova.plugins.firebase.dynamiclinks', repo: 'https://github.com/chemerisuk/cordova-plugin-firebase-dynamiclinks', - install: - 'ionic cordova plugin add cordova-plugin-firebase-dynamiclinks --save --variable APP_DOMAIN="example.com" --variable APP_PATH="/"', + install: 'ionic cordova plugin add cordova-plugin-firebase-dynamiclinks --save --variable APP_DOMAIN="example.com" --variable APP_PATH="/"', installVariables: ['APP_DOMAIN', 'APP_PATH'], platforms: ['Android', 'iOS'] }) @Injectable() export class FirebaseDynamicLinks extends IonicNativePlugin { + /** * Registers callback that is triggered on each dynamic link click. * @return {Promise} Returns a promise */ @Cordova() - onDynamicLink(): Promise { - return; - } + onDynamicLink(): Promise { return; } /** * Display invitation dialog. @@ -88,7 +86,6 @@ export class FirebaseDynamicLinks extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - sendInvitation(options: DynamicLinksOptions): Promise { - return; - } + sendInvitation(options: DynamicLinksOptions): Promise { return; } + } diff --git a/src/@ionic-native/plugins/firebase/index.ts b/src/@ionic-native/plugins/firebase/index.ts index 9172628fa..60d29c219 100644 --- a/src/@ionic-native/plugins/firebase/index.ts +++ b/src/@ionic-native/plugins/firebase/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; /** @@ -30,7 +30,7 @@ import { Observable } from 'rxjs/Observable'; plugin: 'cordova-plugin-firebase', pluginRef: 'FirebasePlugin', repo: 'https://github.com/arnesson/cordova-plugin-firebase', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class Firebase extends IonicNativePlugin { @@ -297,10 +297,7 @@ export class Firebase extends IonicNativePlugin { successIndex: 2, errorIndex: 3 }) - verifyPhoneNumber( - phoneNumber: string, - timeoutDuration: number - ): Promise { + verifyPhoneNumber(phoneNumber: string, timeoutDuration: number): Promise { return; } diff --git a/src/@ionic-native/plugins/flashlight/index.ts b/src/@ionic-native/plugins/flashlight/index.ts index 91c055a5b..01cce2148 100644 --- a/src/@ionic-native/plugins/flashlight/index.ts +++ b/src/@ionic-native/plugins/flashlight/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; /** * @name Flashlight @@ -28,41 +28,35 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; }) @Injectable() export class Flashlight extends IonicNativePlugin { + /** * Checks if the flashlight is available * @returns {Promise} Returns a promise that resolves with a boolean stating if the flashlight is available. */ @Cordova() - available(): Promise { - return; - } + available(): Promise { return; } /** * Switches the flashlight on * @returns {Promise} */ @Cordova() - switchOn(): Promise { - return; - } + switchOn(): Promise { return; } /** * Switches the flashlight off * @returns {Promise} */ @Cordova() - switchOff(): Promise { - return; - } + switchOff(): Promise { return; } /** * Toggles the flashlight * @returns {Promise} */ @Cordova() - toggle(): Promise { - return; - } + toggle(): Promise { return; } + /** * Checks if the flashlight is turned on. @@ -71,7 +65,6 @@ export class Flashlight extends IonicNativePlugin { @Cordova({ sync: true }) - isSwitchedOn(): boolean { - return; - } + isSwitchedOn(): boolean { return; } + } diff --git a/src/@ionic-native/plugins/flurry-analytics/index.ts b/src/@ionic-native/plugins/flurry-analytics/index.ts index 980850b28..6116dd195 100644 --- a/src/@ionic-native/plugins/flurry-analytics/index.ts +++ b/src/@ionic-native/plugins/flurry-analytics/index.ts @@ -1,10 +1,5 @@ +import { Plugin, CordovaInstance, checkAvailability, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; -import { - checkAvailability, - CordovaInstance, - IonicNativePlugin, - Plugin -} from '@ionic-native/core'; export interface FlurryAnalyticsOptions { /** Flurry API key is required */ @@ -78,10 +73,11 @@ export interface FlurryAnalyticsLocation { } /** - * @hidden - */ +* @hidden +*/ export class FlurryAnalyticsObject { - constructor(private _objectInstance: any) {} + + constructor(private _objectInstance: any) { } /** * This function set the Event @@ -153,10 +149,7 @@ export class FlurryAnalyticsObject { * @return {Promise} */ @CordovaInstance() - setLocation( - location: FlurryAnalyticsLocation, - message: string - ): Promise { + setLocation(location: FlurryAnalyticsLocation, message: string): Promise { return; } @@ -179,6 +172,7 @@ export class FlurryAnalyticsObject { endSession(): Promise { return; } + } /** @@ -222,24 +216,22 @@ export class FlurryAnalyticsObject { }) @Injectable() export class FlurryAnalytics extends IonicNativePlugin { + /** * Creates a new instance of FlurryAnalyticsObject * @param options {FlurryAnalyticsOptions} options * @return {FlurryAnalyticsObject} */ create(options: FlurryAnalyticsOptions): FlurryAnalyticsObject { + let instance: any; - if ( - checkAvailability( - FlurryAnalytics.pluginRef, - null, - FlurryAnalytics.pluginName - ) === true - ) { + if (checkAvailability(FlurryAnalytics.pluginRef, null, FlurryAnalytics.pluginName) === true) { instance = new (window as any).FlurryAnalytics(options); } return new FlurryAnalyticsObject(instance); + } + } diff --git a/src/@ionic-native/plugins/ftp/index.ts b/src/@ionic-native/plugins/ftp/index.ts index 820a70fd0..c2c3be5ae 100644 --- a/src/@ionic-native/plugins/ftp/index.ts +++ b/src/@ionic-native/plugins/ftp/index.ts @@ -1,6 +1,6 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; -import { Observable } from 'rxjs/Observable'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Observable } from 'rxjs'; /** * @name FTP @@ -32,19 +32,18 @@ import { Observable } from 'rxjs/Observable'; }) @Injectable() export class FTP extends IonicNativePlugin { + /** - * Connect to one ftp server. - * - * Just need to init the connection once. If success, you can do any ftp actions later. - * @param hostname {string} The ftp server url. Like ip without protocol prefix, e.g. "192.168.1.1". - * @param username {string} The ftp login username. If it and `password` are all blank/undefined, the default username "anonymous" is used. - * @param password {string} The ftp login password. If it and `username` are all blank/undefined, the default password "anonymous@" is used. - * @return {Promise} The success callback. Notice: For iOS, if triggered, means `init` success, but NOT means the later action, e.g. `ls`... `download` will success! - */ + * Connect to one ftp server. + * + * Just need to init the connection once. If success, you can do any ftp actions later. + * @param hostname {string} The ftp server url. Like ip without protocol prefix, e.g. "192.168.1.1". + * @param username {string} The ftp login username. If it and `password` are all blank/undefined, the default username "anonymous" is used. + * @param password {string} The ftp login password. If it and `username` are all blank/undefined, the default password "anonymous@" is used. + * @return {Promise} The success callback. Notice: For iOS, if triggered, means `init` success, but NOT means the later action, e.g. `ls`... `download` will success! + */ @Cordova() - connect(hostname: string, username: string, password: string): Promise { - return; - } + connect(hostname: string, username: string, password: string): Promise { return; } /** * List files (with info of `name`, `type`, `link`, `size`, `modifiedDate`) under one directory on the ftp server. @@ -61,9 +60,7 @@ export class FTP extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - ls(path: string): Promise { - return; - } + ls(path: string): Promise { return; } /** * Create one directory on the ftp server. @@ -72,9 +69,7 @@ export class FTP extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - mkdir(path: string): Promise { - return; - } + mkdir(path: string): Promise { return; } /** * Delete one directory on the ftp server. @@ -85,9 +80,7 @@ export class FTP extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - rmdir(path: string): Promise { - return; - } + rmdir(path: string): Promise { return; } /** * Delete one file on the ftp server. @@ -96,9 +89,7 @@ export class FTP extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - rm(file: string): Promise { - return; - } + rm(file: string): Promise { return; } /** * Upload one local file to the ftp server. @@ -112,9 +103,7 @@ export class FTP extends IonicNativePlugin { @Cordova({ observable: true }) - upload(localFile: string, remoteFile: string): Observable { - return; - } + upload(localFile: string, remoteFile: string): Observable { return; } /** * Download one remote file on the ftp server to local path. @@ -128,9 +117,7 @@ export class FTP extends IonicNativePlugin { @Cordova({ observable: true }) - download(localFile: string, remoteFile: string): Observable { - return; - } + download(localFile: string, remoteFile: string): Observable { return; } /** * Cancel all requests. Always success. @@ -138,9 +125,7 @@ export class FTP extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - cancel(): Promise { - return; - } + cancel(): Promise { return; } /** * Disconnect from ftp server. @@ -148,7 +133,6 @@ export class FTP extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - disconnect(): Promise { - return; - } + disconnect(): Promise { return; } + } diff --git a/src/@ionic-native/plugins/geofence/index.ts b/src/@ionic-native/plugins/geofence/index.ts index 46dcffe32..a906aca88 100644 --- a/src/@ionic-native/plugins/geofence/index.ts +++ b/src/@ionic-native/plugins/geofence/index.ts @@ -1,10 +1,5 @@ import { Injectable } from '@angular/core'; -import { - Cordova, - CordovaFunctionOverride, - IonicNativePlugin, - Plugin -} from '@ionic-native/core'; +import { Cordova, Plugin, CordovaFunctionOverride, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; declare const window: any; @@ -89,6 +84,7 @@ declare const window: any; }) @Injectable() export class Geofence extends IonicNativePlugin { + TransitionType = { ENTER: 1, EXIT: 2, @@ -100,9 +96,7 @@ export class Geofence extends IonicNativePlugin { * @return {Observable} */ @CordovaFunctionOverride() - onTransitionReceived(): Observable { - return; - } + onTransitionReceived(): Observable { return; }; /** * Initializes the plugin. User will be prompted to allow the app to use location and notifications. @@ -110,9 +104,7 @@ export class Geofence extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - initialize(): Promise { - return; - } + initialize(): Promise { return; }; /** * Adds a new geofence or array of geofences. For geofence object, see above. @@ -120,9 +112,7 @@ export class Geofence extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - addOrUpdate(geofences: Object | Array): Promise { - return; - } + addOrUpdate(geofences: Object | Array): Promise { return; }; /** * Removes a geofence or array of geofences. `geofenceID` corresponds to one or more IDs specified when the @@ -131,9 +121,7 @@ export class Geofence extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - remove(geofenceId: string | Array): Promise { - return; - } + remove(geofenceId: string | Array): Promise { return; }; /** * Removes all geofences. @@ -141,9 +129,7 @@ export class Geofence extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - removeAll(): Promise { - return; - } + removeAll(): Promise { return; }; /** * Returns an array of geofences currently being monitored. @@ -151,9 +137,7 @@ export class Geofence extends IonicNativePlugin { * @returns {Promise>} */ @Cordova() - getWatched(): Promise { - return; - } + getWatched(): Promise { return; }; /** * Called when the user clicks a geofence notification. iOS and Android only. @@ -161,11 +145,12 @@ export class Geofence extends IonicNativePlugin { * @returns {Observable} */ onNotificationClicked(): Observable { - return new Observable(observer => { - window && - window.geofence && - (window.geofence.onNotificationClicked = observer.next.bind(observer)); - return () => (window.geofence.onNotificationClicked = () => {}); + + return new Observable((observer) => { + window && window.geofence && (window.geofence.onNotificationClicked = observer.next.bind(observer)); + return () => window.geofence.onNotificationClicked = () => { }; }); + } + } diff --git a/src/@ionic-native/plugins/geolocation/index.ts b/src/@ionic-native/plugins/geolocation/index.ts index c08a3e4a6..7eded999a 100644 --- a/src/@ionic-native/plugins/geolocation/index.ts +++ b/src/@ionic-native/plugins/geolocation/index.ts @@ -1,10 +1,11 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; declare const navigator: any; export interface Coordinates { + /** * a double representing the position's latitude in decimal degrees. */ @@ -48,6 +49,7 @@ export interface Coordinates { * This value can be null. */ speed: number; + } export interface Geoposition { @@ -63,6 +65,7 @@ export interface Geoposition { } export interface PositionError { + /** * A code that indicates the error that occurred */ @@ -72,9 +75,11 @@ export interface PositionError { * A message that can describe the error that occurred */ message: string; + } export interface GeolocationOptions { + /** * Is a positive long value indicating the maximum age in milliseconds of a * possible cached position that is acceptable to return. If set to 0, it @@ -102,6 +107,7 @@ export interface GeolocationOptions { * @type {boolean} */ enableHighAccuracy?: boolean; + } /** @@ -147,13 +153,13 @@ export interface GeolocationOptions { plugin: 'cordova-plugin-geolocation', pluginRef: 'navigator.geolocation', repo: 'https://github.com/apache/cordova-plugin-geolocation', - install: - 'ionic cordova plugin add cordova-plugin-geolocation --variable GEOLOCATION_USAGE_DESCRIPTION="To locate you"', + install: 'ionic cordova plugin add cordova-plugin-geolocation --variable GEOLOCATION_USAGE_DESCRIPTION="To locate you"', installVariables: ['GEOLOCATION_USAGE_DESCRIPTION'], platforms: ['Amazon Fire OS', 'Android', 'Browser', 'iOS', 'Windows'] }) @Injectable() export class Geolocation extends IonicNativePlugin { + /** * Get the device's current position. * @@ -163,9 +169,7 @@ export class Geolocation extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - getCurrentPosition(options?: GeolocationOptions): Promise { - return; - } + getCurrentPosition(options?: GeolocationOptions): Promise { return; } /** * Watch the current device's position. Clear the watch by unsubscribing from @@ -186,13 +190,12 @@ export class Geolocation extends IonicNativePlugin { * @returns {Observable} Returns an Observable that notifies with the [position](https://developer.mozilla.org/en-US/docs/Web/API/Position) of the device, or errors. */ watchPosition(options?: GeolocationOptions): Observable { - return new Observable((observer: any) => { - let watchId = navigator.geolocation.watchPosition( - observer.next.bind(observer), - observer.next.bind(observer), - options - ); - return () => navigator.geolocation.clearWatch(watchId); - }); + return new Observable( + (observer: any) => { + let watchId = navigator.geolocation.watchPosition(observer.next.bind(observer), observer.next.bind(observer), options); + return () => navigator.geolocation.clearWatch(watchId); + } + ); } + } diff --git a/src/@ionic-native/plugins/globalization/index.ts b/src/@ionic-native/plugins/globalization/index.ts index 01e4d1ad5..0acecdd92 100644 --- a/src/@ionic-native/plugins/globalization/index.ts +++ b/src/@ionic-native/plugins/globalization/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; /** * @name Globalization @@ -36,23 +36,20 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; }) @Injectable() export class Globalization extends IonicNativePlugin { + /** * Returns the BCP-47 compliant language identifier tag to the successCallback with a properties object as a parameter. That object should have a value property with a String value. * @returns {Promise<{value: string}>} */ @Cordova() - getPreferredLanguage(): Promise<{ value: string }> { - return; - } + getPreferredLanguage(): Promise<{ value: string }> { return; } /** * Returns the BCP 47 compliant locale identifier string to the successCallback with a properties object as a parameter. * @returns {Promise<{value: string}>} */ @Cordova() - getLocaleName(): Promise<{ value: string }> { - return; - } + getLocaleName(): Promise<{ value: string }> { return; } /** * Converts date to string @@ -64,12 +61,7 @@ export class Globalization extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - dateToString( - date: Date, - options: { formatLength: string; selector: string } - ): Promise<{ value: string }> { - return; - } + dateToString(date: Date, options: { formatLength: string, selector: string }): Promise<{ value: string }> { return; } /** * Parses a date formatted as a string, according to the client's user preferences and calendar using the time zone of the client, and returns the corresponding date object. @@ -81,20 +73,7 @@ export class Globalization extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - stringToDate( - dateString: string, - options: { formatLength: string; selector: string } - ): Promise<{ - year: number; - month: number; - day: number; - hour: number; - minute: number; - second: number; - millisecond: number; - }> { - return; - } + stringToDate(dateString: string, options: { formatLength: string, selector: string }): Promise<{ year: number, month: number, day: number, hour: number, minute: number, second: number, millisecond: number }> { return; } /** * Returns a pattern string to format and parse dates according to the client's user preferences. @@ -104,17 +83,7 @@ export class Globalization extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - getDatePattern(options: { - formatLength: string; - selector: string; - }): Promise<{ - pattern: string; - timezone: string; - utf_offset: number; - dst_offset: number; - }> { - return; - } + getDatePattern(options: { formatLength: string, selector: string }): Promise<{ pattern: string, timezone: string, utf_offset: number, dst_offset: number }> { return; } /** * Returns an array of the names of the months or days of the week, depending on the client's user preferences and calendar. @@ -124,12 +93,7 @@ export class Globalization extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - getDateNames(options: { - type: string; - item: string; - }): Promise<{ value: Array }> { - return; - } + getDateNames(options: { type: string, item: string }): Promise<{ value: Array }> { return; } /** * Indicates whether daylight savings time is in effect for a given date using the client's time zone and calendar. @@ -137,18 +101,14 @@ export class Globalization extends IonicNativePlugin { * @returns {Promise<{dst: string}>} reutrns a promise with the value */ @Cordova() - isDayLightSavingsTime(date: Date): Promise<{ dst: string }> { - return; - } + isDayLightSavingsTime(date: Date): Promise<{ dst: string }> { return; } /** * Returns the first day of the week according to the client's user preferences and calendar. * @returns {Promise<{value: string}>} returns a promise with the value */ @Cordova() - getFirstDayOfWeek(): Promise<{ value: string }> { - return; - } + getFirstDayOfWeek(): Promise<{ value: string }> { return; } /** * Returns a number formatted as a string according to the client's user preferences. @@ -159,12 +119,7 @@ export class Globalization extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - numberToString( - numberToConvert: number, - options: { type: string } - ): Promise<{ value: string }> { - return; - } + numberToString(numberToConvert: number, options: { type: string }): Promise<{ value: string }> { return; } /** * @@ -176,12 +131,7 @@ export class Globalization extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - stringToNumber( - stringToConvert: string, - options: { type: string } - ): Promise<{ value: number | string }> { - return; - } + stringToNumber(stringToConvert: string, options: { type: string }): Promise<{ value: number | string }> { return; } /** * Returns a pattern string to format and parse numbers according to the client's user preferences. @@ -191,20 +141,7 @@ export class Globalization extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - getNumberPattern(options: { - type: string; - }): Promise<{ - pattern: string; - symbol: string; - fraction: number; - rounding: number; - positive: string; - negative: string; - decimal: string; - grouping: string; - }> { - return; - } + getNumberPattern(options: { type: string }): Promise<{ pattern: string, symbol: string, fraction: number, rounding: number, positive: string, negative: string, decimal: string, grouping: string }> { return; } /** * Returns a pattern string to format and parse currency values according to the client's user preferences and ISO 4217 currency code. @@ -212,16 +149,6 @@ export class Globalization extends IonicNativePlugin { * @returns {Promise<{ pattern: string, code: string, fraction: number, rounding: number, decimal: number, grouping: string }>} */ @Cordova() - getCurrencyPattern( - currencyCode: string - ): Promise<{ - pattern: string; - code: string; - fraction: number; - rounding: number; - decimal: number; - grouping: string; - }> { - return; - } + getCurrencyPattern(currencyCode: string): Promise<{ pattern: string, code: string, fraction: number, rounding: number, decimal: number, grouping: string }> { return; } + } diff --git a/src/@ionic-native/plugins/google-analytics/index.ts b/src/@ionic-native/plugins/google-analytics/index.ts index 83c65eae7..1b7fe31ee 100644 --- a/src/@ionic-native/plugins/google-analytics/index.ts +++ b/src/@ionic-native/plugins/google-analytics/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; /** * @name Google Analytics diff --git a/src/@ionic-native/plugins/google-maps/index.ts b/src/@ionic-native/plugins/google-maps/index.ts index 172fbadfb..3d875b2b5 100644 --- a/src/@ionic-native/plugins/google-maps/index.ts +++ b/src/@ionic-native/plugins/google-maps/index.ts @@ -1,29 +1,16 @@ +import { Injectable } from '@angular/core'; +import { CordovaCheck, CordovaInstance, Plugin, InstanceProperty, InstanceCheck, checkAvailability, IonicNativePlugin } from '@ionic-native/core'; +import { Observable } from 'rxjs/Observable'; import 'rxjs/add/observable/fromEvent'; -import { Injectable } from '@angular/core'; -import { - checkAvailability, - CordovaCheck, - CordovaInstance, - InstanceCheck, - InstanceProperty, - IonicNativePlugin, - Plugin -} from '@ionic-native/core'; -import { Observable } from 'rxjs/Observable'; -export type MapType = - | 'MAP_TYPE_NORMAL' - | 'MAP_TYPE_ROADMAP' - | 'MAP_TYPE_SATELLITE' - | 'MAP_TYPE_HYBRID' - | 'MAP_TYPE_TERRAIN' - | 'MAP_TYPE_NONE'; +export type MapType = 'MAP_TYPE_NORMAL' | 'MAP_TYPE_ROADMAP' | 'MAP_TYPE_SATELLITE' | 'MAP_TYPE_HYBRID' | 'MAP_TYPE_TERRAIN' | 'MAP_TYPE_NONE'; /** * @hidden */ export class LatLng implements ILatLng { + lat: number; lng: number; @@ -56,6 +43,7 @@ export interface ILatLngBounds { * @hidden */ export class LatLngBounds implements ILatLngBounds { + private _objectInstance: any; @InstanceProperty northeast: ILatLng; @@ -71,9 +59,7 @@ export class LatLngBounds implements ILatLngBounds { * @return {string} */ @CordovaInstance({ sync: true }) - toString(): string { - return; - } + toString(): string { return; } /** * Returns a string of the form "lat_sw,lng_sw,lat_ne,lng_ne" for this bounds, where "sw" corresponds to the southwest corner of the bounding box, while "ne" corresponds to the northeast corner of that box. @@ -81,9 +67,7 @@ export class LatLngBounds implements ILatLngBounds { * @return {string} */ @CordovaInstance({ sync: true }) - toUrlValue(precision?: number): string { - return; - } + toUrlValue(precision?: number): string { return; } /** * Extends this bounds to contain the given point. @@ -97,21 +81,18 @@ export class LatLngBounds implements ILatLngBounds { * @param LatLng {ILatLng} */ @CordovaInstance({ sync: true }) - contains(LatLng: ILatLng): boolean { - return; - } + contains(LatLng: ILatLng): boolean { return; } /** * Computes the center of this LatLngBounds * @return {LatLng} */ @CordovaInstance({ sync: true }) - getCenter(): LatLng { - return; - } + getCenter(): LatLng { return; } } export interface GoogleMapControlOptions { + /** * Turns the compass on or off. */ @@ -151,6 +132,7 @@ export interface GoogleMapControlOptions { } export interface GoogleMapGestureOptions { + /** * Set false to disable the scroll gesture (default: true) */ @@ -190,6 +172,7 @@ export interface GoogleMapPaddingOptions { } export interface GoogleMapPreferenceOptions { + /** * Minimum and maximum zoom levels for zooming gestures. */ @@ -212,6 +195,7 @@ export interface GoogleMapPreferenceOptions { } export interface GoogleMapOptions { + /** * mapType [options] */ @@ -344,6 +328,7 @@ export interface CircleOptions { } export interface GeocoderRequest { + /** * The address property or position property is required. * You can not specify both property at the same time. @@ -390,7 +375,7 @@ export interface GeocoderResult { lines?: Array; permises?: string; phone?: string; - url?: string; + url?: string }; locale?: string; locality?: string; @@ -747,6 +732,7 @@ export interface ToDataUrlOptions { uncompress?: boolean; } + /** * Options for map.addKmlOverlay() method */ @@ -772,6 +758,7 @@ export interface KmlOverlayOptions { [key: string]: any; } + /** * @hidden */ @@ -815,22 +802,8 @@ export class VisibleRegion implements ILatLngBounds { */ @InstanceProperty type: string; - constructor( - southwest: LatLngBounds, - northeast: LatLngBounds, - farLeft: ILatLng, - farRight: ILatLng, - nearLeft: ILatLng, - nearRight: ILatLng - ) { - this._objectInstance = new (GoogleMaps.getPlugin()).VisibleRegion( - southwest, - northeast, - farLeft, - farRight, - nearLeft, - nearRight - ); + constructor(southwest: LatLngBounds, northeast: LatLngBounds, farLeft: ILatLng, farRight: ILatLng, nearLeft: ILatLng, nearRight: ILatLng) { + this._objectInstance = new (GoogleMaps.getPlugin()).VisibleRegion(southwest, northeast, farLeft, farRight, nearLeft, nearRight); } /** @@ -838,9 +811,7 @@ export class VisibleRegion implements ILatLngBounds { * @return {string} */ @CordovaInstance({ sync: true }) - toString(): string { - return; - } + toString(): string { return; } /** * Returns a string of the form "lat_sw,lng_sw,lat_ne,lng_ne" for this bounds, where "sw" corresponds to the southwest corner of the bounding box, while "ne" corresponds to the northeast corner of that box. @@ -848,18 +819,16 @@ export class VisibleRegion implements ILatLngBounds { * @return {string} */ @CordovaInstance({ sync: true }) - toUrlValue(precision?: number): string { - return; - } + toUrlValue(precision?: number): string { return; } + /** * Returns true if the given lat/lng is in this bounds. * @param LatLng {ILatLng} */ @CordovaInstance({ sync: true }) - contains(LatLng: ILatLng): boolean { - return; - } + contains(LatLng: ILatLng): boolean { return; } + } /** @@ -900,7 +869,7 @@ export const GoogleMapsEvent = { /** * @hidden */ -export const GoogleMapsAnimation: { [animationName: string]: string } = { +export const GoogleMapsAnimation: { [animationName: string]: string; } = { BOUNCE: 'BOUNCE', DROP: 'DROP' }; @@ -908,7 +877,7 @@ export const GoogleMapsAnimation: { [animationName: string]: string } = { /** * @hidden */ -export const GoogleMapsMapTypeId: { [mapType: string]: MapType } = { +export const GoogleMapsMapTypeId: { [mapType: string]: MapType; } = { NORMAL: 'MAP_TYPE_NORMAL', ROADMAP: 'MAP_TYPE_ROADMAP', SATELLITE: 'MAP_TYPE_SATELLITE', @@ -1035,33 +1004,24 @@ export const GoogleMapsMapTypeId: { [mapType: string]: MapType } = { pluginRef: 'plugin.google.maps', plugin: 'cordova-plugin-googlemaps', repo: 'https://github.com/mapsplugin/cordova-plugin-googlemaps', - document: - 'https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.0.0/README.md', - install: - 'ionic cordova plugin add cordova-plugin-googlemaps --variable API_KEY_FOR_ANDROID="YOUR_ANDROID_API_KEY_IS_HERE" --variable API_KEY_FOR_IOS="YOUR_IOS_API_KEY_IS_HERE"', + document: 'https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.0.0/README.md', + install: 'ionic cordova plugin add cordova-plugin-googlemaps --variable API_KEY_FOR_ANDROID="YOUR_ANDROID_API_KEY_IS_HERE" --variable API_KEY_FOR_IOS="YOUR_IOS_API_KEY_IS_HERE"', installVariables: ['API_KEY_FOR_ANDROID', 'API_KEY_FOR_IOS'], platforms: ['Android', 'iOS'] }) @Injectable() export class GoogleMaps extends IonicNativePlugin { + /** * Creates a new GoogleMap instance * @param element {string | HTMLElement} Element ID or reference to attach the map to * @param options {GoogleMapOptions} [options] Options * @return {GoogleMap} */ - static create( - element: string | HTMLElement | GoogleMapOptions, - options?: GoogleMapOptions - ): GoogleMap { + static create(element: string | HTMLElement | GoogleMapOptions, options?: GoogleMapOptions): GoogleMap { if (element instanceof HTMLElement) { if (element.getAttribute('__pluginMapId')) { - console.error( - 'GoogleMaps', - `${element.tagName}[__pluginMapId='${element.getAttribute( - '__pluginMapId' - )}'] has already map.` - ); + console.error('GoogleMaps', element.tagName + '[__pluginMapId=\'' + element.getAttribute('__pluginMapId') + '\'] has already map.'); return; } } else if (typeof element === 'object') { @@ -1077,13 +1037,11 @@ export class GoogleMaps extends IonicNativePlugin { * @deprecation * @hidden */ - create( - element: string | HTMLElement | GoogleMapOptions, - options?: GoogleMapOptions - ): GoogleMap { + create(element: string | HTMLElement | GoogleMapOptions, options?: GoogleMapOptions): GoogleMap { console.error('GoogleMaps', '[deprecated] Please use GoogleMaps.create()'); return GoogleMaps.create(element, options); } + } /** @@ -1106,7 +1064,7 @@ export class BaseClass { */ @InstanceCheck({ observable: true }) addEventListener(eventName: string): Observable { - return new Observable(observer => { + return new Observable((observer) => { this._objectInstance.on(eventName, (...args: any[]) => { if (args[args.length - 1] instanceof GoogleMaps.getPlugin().BaseClass) { if (args[args.length - 1].type === 'Map') { @@ -1125,9 +1083,7 @@ export class BaseClass { } args[args.length - 1] = overlay; } else { - args[args.length - 1] = this._objectInstance - .getMap() - .get('_overlays')[args[args.length - 1].getId()]; + args[args.length - 1] = this._objectInstance.getMap().get('_overlays')[args[args.length - 1].getId()]; } } observer.next(args); @@ -1142,7 +1098,7 @@ export class BaseClass { */ @InstanceCheck() addListenerOnce(eventName: string): Promise { - return new Promise(resolve => { + return new Promise((resolve) => { this._objectInstance.one(eventName, (...args: any[]) => { if (args[args.length - 1] instanceof GoogleMaps.getPlugin().BaseClass) { if (args[args.length - 1].type === 'Map') { @@ -1161,9 +1117,7 @@ export class BaseClass { } args[args.length - 1] = overlay; } else { - args[args.length - 1] = this._objectInstance - .getMap() - .get('_overlays')[args[args.length - 1].getId()]; + args[args.length - 1] = this._objectInstance.getMap().get('_overlays')[args[args.length - 1].getId()]; } } resolve(args); @@ -1176,9 +1130,7 @@ export class BaseClass { * @param key {any} */ @CordovaInstance({ sync: true }) - get(key: string): any { - return; - } + get(key: string): any { return; } /** * Sets a value @@ -1187,7 +1139,7 @@ export class BaseClass { * @param noNotify {boolean} [options] True if you want to prevent firing the `(key)_changed` event. */ @CordovaInstance({ sync: true }) - set(key: string, value: any, noNotify?: boolean): void {} + set(key: string, value: any, noNotify?: boolean): void { } /** * Bind a key to another object @@ -1197,12 +1149,7 @@ export class BaseClass { * @param noNotify? {boolean} [options] True if you want to prevent `(key)_changed` event when you bind first time, because the internal status is changed from `undefined` to something. */ @CordovaInstance({ sync: true }) - bindTo( - key: string, - target: any, - targetKey?: string, - noNotify?: boolean - ): void {} + bindTo(key: string, target: any, targetKey?: string, noNotify?: boolean): void { } /** * Alias of `addEventListener` @@ -1211,7 +1158,7 @@ export class BaseClass { */ @InstanceCheck({ observable: true }) on(eventName: string): Observable { - return new Observable(observer => { + return new Observable((observer) => { this._objectInstance.on(eventName, (...args: any[]) => { if (args[args.length - 1] instanceof GoogleMaps.getPlugin().BaseClass) { if (args[args.length - 1].type === 'Map') { @@ -1230,9 +1177,7 @@ export class BaseClass { } args[args.length - 1] = overlay; } else { - args[args.length - 1] = this._objectInstance - .getMap() - .get('_overlays')[args[args.length - 1].getId()]; + args[args.length - 1] = this._objectInstance.getMap().get('_overlays')[args[args.length - 1].getId()]; } } observer.next(args); @@ -1247,7 +1192,7 @@ export class BaseClass { */ @InstanceCheck() one(eventName: string): Promise { - return new Promise(resolve => { + return new Promise((resolve) => { this._objectInstance.one(eventName, (...args: any[]) => { if (args[args.length - 1] instanceof GoogleMaps.getPlugin().BaseClass) { if (args[args.length - 1].type === 'Map') { @@ -1266,9 +1211,7 @@ export class BaseClass { } args[args.length - 1] = overlay; } else { - args[args.length - 1] = this._objectInstance - .getMap() - .get('_overlays')[args[args.length - 1].getId()]; + args[args.length - 1] = this._objectInstance.getMap().get('_overlays')[args[args.length - 1].getId()]; } } resolve(args); @@ -1280,7 +1223,7 @@ export class BaseClass { * Clears all stored values */ @CordovaInstance({ sync: true }) - empty(): void {} + empty(): void { } /** * Dispatch event. @@ -1290,6 +1233,7 @@ export class BaseClass { @CordovaInstance({ sync: true }) trigger(eventName: string, ...parameters: any[]): void {} + /** * Executes off() and empty() */ @@ -1297,9 +1241,7 @@ export class BaseClass { destroy(): void { let map: GoogleMap = this._objectInstance.getMap(); if (map) { - delete this._objectInstance.getMap().get('_overlays')[ - this._objectInstance.getId() - ]; + delete this._objectInstance.getMap().get('_overlays')[this._objectInstance.getId()]; } this._objectInstance.remove(); } @@ -1318,10 +1260,7 @@ export class BaseClass { * @param listener {Function} [options] Event listener */ @CordovaInstance({ sync: true }) - removeEventListener( - eventName?: string, - listener?: (...parameters: any[]) => void - ): void {} + removeEventListener(eventName?: string, listener?: (...parameters: any[]) => void): void {} /** * Alias of `removeEventListener` @@ -1331,6 +1270,7 @@ export class BaseClass { */ @CordovaInstance({ sync: true }) off(eventName?: string, listener?: (...parameters: any[]) => void): void {} + } /** @@ -1344,14 +1284,13 @@ export class BaseClass { repo: '' }) export class BaseArrayClass extends BaseClass { + constructor(initialData?: T[] | any) { super(); if (initialData instanceof GoogleMaps.getPlugin().BaseArrayClass) { this._objectInstance = initialData; } else { - this._objectInstance = new (GoogleMaps.getPlugin()).BaseArrayClass( - initialData - ); + this._objectInstance = new (GoogleMaps.getPlugin().BaseArrayClass)(initialData); } } @@ -1375,10 +1314,8 @@ export class BaseArrayClass extends BaseClass { * @return {Promise} */ @CordovaCheck() - forEachAsync( - fn: ((element: T, callback: () => void) => void) - ): Promise { - return new Promise(resolve => { + forEachAsync(fn: ((element: T, callback: () => void) => void)): Promise { + return new Promise((resolve) => { this._objectInstance.forEachAsync(fn, resolve); }); } @@ -1390,9 +1327,7 @@ export class BaseArrayClass extends BaseClass { * @return {Array} returns a new array with the results */ @CordovaInstance({ sync: true }) - map(fn: (element: T, index: number) => any): any[] { - return; - } + map(fn: (element: T, index: number) => any): any[] { return; } /** * Iterate over each element, calling the provided callback. @@ -1402,10 +1337,8 @@ export class BaseArrayClass extends BaseClass { * @return {Promise} returns a new array with the results */ @CordovaCheck() - mapAsync( - fn: ((element: T, callback: (newElement: any) => void) => void) - ): Promise { - return new Promise(resolve => { + mapAsync(fn: ((element: T, callback: (newElement: any) => void) => void)): Promise { + return new Promise((resolve) => { this._objectInstance.mapAsync(fn, resolve); }); } @@ -1417,10 +1350,8 @@ export class BaseArrayClass extends BaseClass { * @return {Promise} returns a new array with the results */ @CordovaCheck() - mapSeries( - fn: ((element: T, callback: (newElement: any) => void) => void) - ): Promise { - return new Promise(resolve => { + mapSeries(fn: ((element: T, callback: (newElement: any) => void) => void)): Promise { + return new Promise((resolve) => { this._objectInstance.mapSeries(fn, resolve); }); } @@ -1431,9 +1362,7 @@ export class BaseArrayClass extends BaseClass { * @return {Array} returns a new filtered array */ @CordovaInstance({ sync: true }) - filter(fn: (element: T, index: number) => boolean): T[] { - return; - } + filter(fn: (element: T, index: number) => boolean): T[] { return; } /** * The filterAsync() method creates a new array with all elements that pass the test implemented by the provided function. @@ -1442,10 +1371,8 @@ export class BaseArrayClass extends BaseClass { * @return {Promise} returns a new filtered array */ @CordovaCheck() - filterAsync( - fn: (element: T, callback: (result: boolean) => void) => void - ): Promise { - return new Promise(resolve => { + filterAsync(fn: (element: T, callback: (result: boolean) => void) => void): Promise { + return new Promise((resolve) => { this._objectInstance.filterAsync(fn, resolve); }); } @@ -1455,9 +1382,7 @@ export class BaseArrayClass extends BaseClass { * @return {Array} */ @CordovaInstance({ sync: true }) - getArray(): T[] { - return; - } + getArray(): T[] { return; } /** * Returns the element at the specified index. @@ -1472,9 +1397,7 @@ export class BaseArrayClass extends BaseClass { * @return {number} */ @CordovaInstance({ sync: true }) - getLength(): number { - return; - } + getLength(): number { return; } /** * The indexOf() method returns the first index at which a given element can be found in the array, or -1 if it is not present. @@ -1482,9 +1405,7 @@ export class BaseArrayClass extends BaseClass { * @return {number} */ @CordovaInstance({ sync: true }) - indexOf(element: T): number { - return; - } + indexOf(element: T): number { return; } /** * The reverse() method reverses an array in place. @@ -1514,9 +1435,7 @@ export class BaseArrayClass extends BaseClass { * @return {Object} */ @CordovaInstance({ sync: true }) - pop(noNotify?: boolean): T { - return; - } + pop(noNotify?: boolean): T { return; } /** * Adds one element to the end of the array and returns the new length of the array. @@ -1549,6 +1468,7 @@ export class BaseArrayClass extends BaseClass { * https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.0.0/class/Circle/README.md */ export class Circle extends BaseClass { + private _map: GoogleMap; constructor(_map: GoogleMap, _objectInstance: any) { @@ -1562,17 +1482,13 @@ export class Circle extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getId(): string { - return; - } + getId(): string { return; } /** * Return the map instance. * @return {GoogleMap} */ - getMap(): GoogleMap { - return this._map; - } + getMap(): GoogleMap { return this._map; } /** * Change the center position. @@ -1586,18 +1502,14 @@ export class Circle extends BaseClass { * @return {ILatLng} */ @CordovaInstance({ sync: true }) - getCenter(): ILatLng { - return; - } + getCenter(): ILatLng { return; } /** * Return the current circle radius. * @return {number} */ @CordovaInstance({ sync: true }) - getRadius(): number { - return; - } + getRadius(): number { return; } /** * Change the circle radius. @@ -1618,9 +1530,7 @@ export class Circle extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getFillColor(): string { - return; - } + getFillColor(): string { return; } /** * Change the stroke width. @@ -1634,9 +1544,7 @@ export class Circle extends BaseClass { * @return {number} */ @CordovaInstance({ sync: true }) - getStrokeWidth(): number { - return; - } + getStrokeWidth(): number { return; } /** * Change the stroke color (outter color). @@ -1650,9 +1558,7 @@ export class Circle extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getStrokeColor(): string { - return; - } + getStrokeColor(): string { return; } /** * Change clickablity of the circle. @@ -1666,9 +1572,7 @@ export class Circle extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - getClickable(): boolean { - return; - } + getClickable(): boolean { return; } /** * Change the circle zIndex order. @@ -1682,9 +1586,7 @@ export class Circle extends BaseClass { * @return {number} */ @CordovaInstance({ sync: true }) - getZIndex(): number { - return; - } + getZIndex(): number { return; } /** * Remove the circle. @@ -1697,9 +1599,7 @@ export class Circle extends BaseClass { * @return {LatLngBounds} */ @CordovaInstance({ sync: true }) - getBounds(): LatLngBounds { - return; - } + getBounds(): LatLngBounds { return; } /** * Set circle visibility @@ -1713,9 +1613,7 @@ export class Circle extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - getVisible(): boolean { - return; - } + getVisible(): boolean { return; } } /** @@ -1728,15 +1626,14 @@ export class Circle extends BaseClass { repo: '' }) export class Environment { + /** * Get the open source software license information for Google Maps SDK for iOS. * @return {Promise} */ static getLicenseInfo(): Promise { - return new Promise(resolve => { - GoogleMaps.getPlugin().environment.getLicenseInfo((text: string) => - resolve(text) - ); + return new Promise((resolve) => { + GoogleMaps.getPlugin().environment.getLicenseInfo((text: string) => resolve(text)); }); } @@ -1745,10 +1642,7 @@ export class Environment { * @hidden */ getLicenseInfo(): Promise { - console.error( - 'GoogleMaps', - '[deprecated] This method is static. Please use Environment.getLicenseInfo()' - ); + console.error('GoogleMaps', '[deprecated] This method is static. Please use Environment.getLicenseInfo()'); return Environment.getLicenseInfo(); } @@ -1765,10 +1659,7 @@ export class Environment { * @hidden */ setBackgroundColor(color: string): void { - console.error( - 'GoogleMaps', - '[deprecated] This method is static. Please use Environment.setBackgroundColor()' - ); + console.error('GoogleMaps', '[deprecated] This method is static. Please use Environment.setBackgroundColor()'); Environment.setBackgroundColor(color); } } @@ -1783,17 +1674,13 @@ export class Environment { repo: '' }) export class Geocoder { + /** * @deprecation * @hidden */ - geocode( - request: GeocoderRequest - ): Promise> { - console.error( - 'GoogleMaps', - '[deprecated] This method is static. Please use Geocoder.geocode()' - ); + geocode(request: GeocoderRequest): Promise> { + console.error('GoogleMaps', '[deprecated] This method is static. Please use Geocoder.geocode()'); return Geocoder.geocode(request); } @@ -1802,15 +1689,10 @@ export class Geocoder { * @param {GeocoderRequest} request Request object with either an address or a position * @return {Promise>} */ - static geocode( - request: GeocoderRequest - ): Promise> { - if ( - request.address instanceof Array || - Array.isArray(request.address) || - request.position instanceof Array || - Array.isArray(request.position) - ) { + static geocode(request: GeocoderRequest): Promise> { + + if (request.address instanceof Array || Array.isArray(request.address) || + request.position instanceof Array || Array.isArray(request.position)) { // ------------------------- // Geocoder.geocode({ // address: [ @@ -1835,16 +1717,13 @@ export class Geocoder { // }) // ------------------------- return new Promise((resolve, reject) => { - GoogleMaps.getPlugin().Geocoder.geocode( - request, - (results: GeocoderResult[]) => { - if (results) { - resolve(results); - } else { - reject(); - } + GoogleMaps.getPlugin().Geocoder.geocode(request, (results: GeocoderResult[]) => { + if (results) { + resolve(results); + } else { + reject(); } - ); + }); }); } } @@ -1860,6 +1739,7 @@ export class Geocoder { repo: '' }) export class LocationService { + /** * Get the current device location without map * @return {Promise} @@ -1881,15 +1761,13 @@ export class LocationService { repo: '' }) export class Encoding { + /** * @deprecation * @hidden */ decodePath(encoded: string, precision?: number): Array { - console.error( - 'GoogleMaps', - '[deprecated] This method is static. Please use Encoding.decodePath()' - ); + console.error('GoogleMaps', '[deprecated] This method is static. Please use Encoding.decodePath()'); return Encoding.decodePath(encoded, precision); } @@ -1898,10 +1776,7 @@ export class Encoding { * @hidden */ encodePath(path: Array | BaseArrayClass): string { - console.error( - 'GoogleMaps', - '[deprecated] This method is static. Please use Encoding.encodePath()' - ); + console.error('GoogleMaps', '[deprecated] This method is static. Please use Encoding.encodePath()'); return Encoding.encodePath(path); } @@ -1912,10 +1787,7 @@ export class Encoding { * @return {ILatLng[]} */ static decodePath(encoded: string, precision?: number): Array { - return GoogleMaps.getPlugin().geometry.encoding.decodePath( - encoded, - precision - ); + return GoogleMaps.getPlugin().geometry.encoding.decodePath(encoded, precision); } /** @@ -1938,6 +1810,7 @@ export class Encoding { repo: '' }) export class Poly { + /** * Returns true if the speicified location is in the polygon path * @param location {ILatLng} @@ -1945,10 +1818,7 @@ export class Poly { * @return {boolean} */ static containsLocation(location: ILatLng, path: ILatLng[]): boolean { - return GoogleMaps.getPlugin().geometry.poly.containsLocation( - location, - path - ); + return GoogleMaps.getPlugin().geometry.poly.containsLocation(location, path); } /** @@ -1958,10 +1828,7 @@ export class Poly { * @return {boolean} */ static isLocationOnEdge(location: ILatLng, path: ILatLng[]): boolean { - return GoogleMaps.getPlugin().geometry.poly.isLocationOnEdge( - location, - path - ); + return GoogleMaps.getPlugin().geometry.poly.isLocationOnEdge(location, path); } } @@ -1975,15 +1842,13 @@ export class Poly { repo: '' }) export class Spherical { + /** * @deprecation * @hidden */ computeDistanceBetween(from: ILatLng, to: ILatLng): number { - console.error( - 'GoogleMaps', - '[deprecated] This method is static. Please use Spherical.computeDistanceBetween()' - ); + console.error('GoogleMaps', '[deprecated] This method is static. Please use Spherical.computeDistanceBetween()'); return Spherical.computeDistanceBetween(from, to); } @@ -1992,10 +1857,7 @@ export class Spherical { * @hidden */ computeOffset(from: ILatLng, distance: number, heading: number): LatLng { - console.error( - 'GoogleMaps', - '[deprecated] This method is static. Please use Spherical.computeOffset()' - ); + console.error('GoogleMaps', '[deprecated] This method is static. Please use Spherical.computeOffset()'); return Spherical.computeOffset(from, distance, heading); } @@ -2004,10 +1866,7 @@ export class Spherical { * @hidden */ computeOffsetOrigin(to: ILatLng, distance: number, heading: number): LatLng { - console.error( - 'GoogleMaps', - '[deprecated] This method is static. Please use Spherical.computeOffsetOrigin()' - ); + console.error('GoogleMaps', '[deprecated] This method is static. Please use Spherical.computeOffsetOrigin()'); return Spherical.computeOffsetOrigin(to, distance, heading); } @@ -2016,10 +1875,7 @@ export class Spherical { * @hidden */ computeLength(path: Array | BaseArrayClass): number { - console.error( - 'GoogleMaps', - '[deprecated] This method is static. Please use Spherical.computeLength()' - ); + console.error('GoogleMaps', '[deprecated] This method is static. Please use Spherical.computeLength()'); return Spherical.computeLength(path); } @@ -2028,10 +1884,7 @@ export class Spherical { * @hidden */ computeArea(path: Array | BaseArrayClass): number { - console.error( - 'GoogleMaps', - '[deprecated] This method is static. Please use Spherical.computeArea()' - ); + console.error('GoogleMaps', '[deprecated] This method is static. Please use Spherical.computeArea()'); return Spherical.computeArea(path); } @@ -2040,10 +1893,7 @@ export class Spherical { * @hidden */ computeSignedArea(path: Array | BaseArrayClass): number { - console.error( - 'GoogleMaps', - '[deprecated] This method is static. Please use Spherical.computeSignedArea()' - ); + console.error('GoogleMaps', '[deprecated] This method is static. Please use Spherical.computeSignedArea()'); return Spherical.computeSignedArea(path); } @@ -2052,10 +1902,7 @@ export class Spherical { * @hidden */ computeHeading(from: ILatLng, to: ILatLng): number { - console.error( - 'GoogleMaps', - '[deprecated] This method is static. Please use Spherical.computeHeading()' - ); + console.error('GoogleMaps', '[deprecated] This method is static. Please use Spherical.computeHeading()'); return Spherical.computeHeading(from, to); } @@ -2064,13 +1911,16 @@ export class Spherical { * @hidden */ interpolate(from: ILatLng, to: ILatLng, fraction: number): LatLng { - console.error( - 'GoogleMaps', - '[deprecated] This method is static. Please use Spherical.interpolate()' - ); + console.error('GoogleMaps', '[deprecated] This method is static. Please use Spherical.interpolate()'); return Spherical.interpolate(from, to, fraction); } + + + + + + /** * Returns the distance, in meters, between two LatLngs. * @param locationA {ILatLng} @@ -2078,10 +1928,7 @@ export class Spherical { * @return {number} */ static computeDistanceBetween(from: ILatLng, to: ILatLng): number { - return GoogleMaps.getPlugin().geometry.spherical.computeDistanceBetween( - from, - to - ); + return GoogleMaps.getPlugin().geometry.spherical.computeDistanceBetween(from, to); } /** @@ -2091,16 +1938,8 @@ export class Spherical { * @param heading {number} * @return {LatLng} */ - static computeOffset( - from: ILatLng, - distance: number, - heading: number - ): LatLng { - return GoogleMaps.getPlugin().geometry.spherical.computeOffset( - from, - distance, - heading - ); + static computeOffset(from: ILatLng, distance: number, heading: number): LatLng { + return GoogleMaps.getPlugin().geometry.spherical.computeOffset(from, distance, heading); } /** @@ -2110,16 +1949,8 @@ export class Spherical { * @param heading {number} The heading in degrees clockwise from north. * @return {LatLng} */ - static computeOffsetOrigin( - to: ILatLng, - distance: number, - heading: number - ): LatLng { - return GoogleMaps.getPlugin().geometry.spherical.computeOffsetOrigin( - to, - distance, - heading - ); + static computeOffsetOrigin(to: ILatLng, distance: number, heading: number): LatLng { + return GoogleMaps.getPlugin().geometry.spherical.computeOffsetOrigin(to, distance, heading); } /** @@ -2145,9 +1976,7 @@ export class Spherical { * @param path {Array | BaseArrayClass}. * @return {number} */ - static computeSignedArea( - path: Array | BaseArrayClass - ): number { + static computeSignedArea(path: Array | BaseArrayClass): number { return GoogleMaps.getPlugin().geometry.spherical.computeSignedArea(path); } @@ -2169,11 +1998,7 @@ export class Spherical { * @return {LatLng} */ static interpolate(from: ILatLng, to: ILatLng, fraction: number): LatLng { - return GoogleMaps.getPlugin().geometry.spherical.interpolate( - from, - to, - fraction - ); + return GoogleMaps.getPlugin().geometry.spherical.interpolate(from, to, fraction); } } @@ -2187,30 +2012,17 @@ export class Spherical { export class GoogleMap extends BaseClass { constructor(element: string | HTMLElement, options?: GoogleMapOptions) { super(); - if ( - checkAvailability( - GoogleMaps.getPluginRef(), - null, - GoogleMaps.getPluginName() - ) === true - ) { + if (checkAvailability(GoogleMaps.getPluginRef(), null, GoogleMaps.getPluginName()) === true) { if (element instanceof HTMLElement) { - this._objectInstance = GoogleMaps.getPlugin().Map.getMap( - element, - options - ); + this._objectInstance = GoogleMaps.getPlugin().Map.getMap(element, options); } else if (typeof element === 'string') { - let dummyObj: any = new (GoogleMaps.getPlugin()).BaseClass(); + let dummyObj: any = new (GoogleMaps.getPlugin().BaseClass)(); this._objectInstance = dummyObj; let onListeners: any[] = []; let oneListeners: any[] = []; let _origAddEventListener: any = this._objectInstance.addEventListener; - let _origAddEventListenerOnce: any = this._objectInstance - .addEventListenerOnce; - this._objectInstance.addEventListener = ( - eventName: string, - fn: () => void - ) => { + let _origAddEventListenerOnce: any = this._objectInstance.addEventListenerOnce; + this._objectInstance.addEventListener = (eventName: string, fn: () => void) => { if (eventName === GoogleMapsEvent.MAP_READY) { _origAddEventListener.call(dummyObj, eventName, fn); } else { @@ -2219,10 +2031,7 @@ export class GoogleMap extends BaseClass { }; this._objectInstance.on = this._objectInstance.addEventListener; - this._objectInstance.addEventListenerOnce = ( - eventName: string, - fn: () => void - ) => { + this._objectInstance.addEventListenerOnce = (eventName: string, fn: () => void) => { if (eventName === GoogleMapsEvent.MAP_READY) { _origAddEventListenerOnce.call(dummyObj, eventName, fn); } else { @@ -2230,7 +2039,7 @@ export class GoogleMap extends BaseClass { } }; this._objectInstance.one = this._objectInstance.addEventListenerOnce; - new Promise((resolve, reject) => { + (new Promise((resolve, reject) => { let count: number = 0; let timer: any = setInterval(() => { let target = document.querySelector('.show-page #' + element); @@ -2247,26 +2056,23 @@ export class GoogleMap extends BaseClass { reject(); } }, 100); - }) - .then((target: any) => { - this._objectInstance = GoogleMaps.getPlugin().Map.getMap( - target, - options - ); - this._objectInstance.one(GoogleMapsEvent.MAP_READY, () => { - this.set('_overlays', {}); - onListeners.forEach(args => { - this.on.apply(this, args); - }); - oneListeners.forEach(args => { - this.one.apply(this, args); - }); - dummyObj.trigger(GoogleMapsEvent.MAP_READY); + })) + .then((target: any) => { + this._objectInstance = GoogleMaps.getPlugin().Map.getMap(target, options); + this._objectInstance.one(GoogleMapsEvent.MAP_READY, () => { + this.set('_overlays', {}); + onListeners.forEach((args) => { + this.on.apply(this, args); }); - }) - .catch(() => { - this._objectInstance = null; + oneListeners.forEach((args) => { + this.one.apply(this, args); + }); + dummyObj.trigger(GoogleMapsEvent.MAP_READY); }); + }) + .catch(() => { + this._objectInstance = null; + }); } else if (element === null && options) { this._objectInstance = GoogleMaps.getPlugin().Map.getMap(null, options); } @@ -2280,9 +2086,7 @@ export class GoogleMap extends BaseClass { @InstanceCheck() setDiv(domNode?: HTMLElement | string): void { if (typeof domNode === 'string') { - this._objectInstance.setDiv( - document.querySelector('.show-page #' + domNode) - ); + this._objectInstance.setDiv(document.querySelector('.show-page #' + domNode)); } else { this._objectInstance.setDiv(domNode); } @@ -2293,122 +2097,98 @@ export class GoogleMap extends BaseClass { * @return {HTMLElement} */ @CordovaInstance({ sync: true }) - getDiv(): HTMLElement { - return; - } + getDiv(): HTMLElement { return; } /** * Changes the map type id * @param mapTypeId {string} */ @CordovaInstance({ sync: true }) - setMapTypeId(mapTypeId: MapType): void {} + setMapTypeId(mapTypeId: MapType): void { } /** * Moves the camera with animation * @return {Promise} */ @CordovaInstance() - animateCamera(cameraPosition: CameraPosition): Promise { - return; - } + animateCamera(cameraPosition: CameraPosition): Promise { return; } /** * Zooming in the camera with animation * @return {Promise} */ @CordovaInstance() - animateCameraZoomIn(): Promise { - return; - } + animateCameraZoomIn(): Promise { return; } /** * Zooming out the camera with animation * @return {Promise} */ @CordovaInstance() - animateCameraZoomOut(): Promise { - return; - } + animateCameraZoomOut(): Promise { return; } /** * Moves the camera without animation * @return {Promise} */ @CordovaInstance() - moveCamera(cameraPosition: CameraPosition): Promise { - return; - } + moveCamera(cameraPosition: CameraPosition): Promise { return; } /** * Zooming in the camera without animation * @return {Promise} */ @CordovaInstance() - moveCameraZoomIn(): Promise { - return; - } + moveCameraZoomIn(): Promise { return; } /** * Zooming out the camera without animation * @return {Promise} */ @CordovaInstance() - moveCameraZoomOut(): Promise { - return; - } + moveCameraZoomOut(): Promise { return; } /** * Get the position of the camera. * @return {CameraPosition} */ @CordovaInstance({ sync: true }) - getCameraPosition(): CameraPosition { - return; - } + getCameraPosition(): CameraPosition { return; } /** * Get the current camera target position * @return {Promise} */ @CordovaInstance({ sync: true }) - getCameraTarget(): ILatLng { - return; - } + getCameraTarget(): ILatLng { return; } /** * Get the current camera zoom level * @return {number} */ @CordovaInstance({ sync: true }) - getCameraZoom(): number { - return; - } + getCameraZoom(): number { return; } /** * Get the current camera bearing * @return {number} */ @CordovaInstance({ sync: true }) - getCameraBearing(): number { - return; - } + getCameraBearing(): number { return; } /** * Get the current camera tilt (view angle) * @return {number} */ @CordovaInstance({ sync: true }) - getCameraTilt(): number { - return; - } + getCameraTilt(): number { return; } /** * Set the center position of the camera view * @param latLng {ILatLng | Array} */ @CordovaInstance({ sync: true }) - setCameraTarget(latLng: ILatLng | Array): void {} + setCameraTarget(latLng: ILatLng | Array): void { } /** * Set zoom level of the camera @@ -2437,25 +2217,21 @@ export class GoogleMap extends BaseClass { * @param y {any} */ @CordovaInstance({ sync: true }) - panBy(x: string | number, y: string | number): void {} + panBy(x: string | number, y: string | number): void { } /** * Get the current visible region (southWest and northEast) * @return {VisibleRegion} */ @CordovaInstance({ sync: true }) - getVisibleRegion(): VisibleRegion { - return; - } + getVisibleRegion(): VisibleRegion { return; } /** * Get the current device location * @return {Promise} */ @CordovaInstance() - getMyLocation(options?: MyLocationOptions): Promise { - return; - } + getMyLocation(options?: MyLocationOptions): Promise { return; } /** * Set false to ignore all clicks on the map @@ -2476,7 +2252,7 @@ export class GoogleMap extends BaseClass { delete this.get('_overlays')[overlayId]; }); } - return new Promise(resolve => { + return new Promise((resolve) => { this._objectInstance.remove(() => resolve()); }); } @@ -2493,7 +2269,7 @@ export class GoogleMap extends BaseClass { delete this.get('_overlays')[overlayId]; }); } - return new Promise(resolve => { + return new Promise((resolve) => { this._objectInstance.clear(() => resolve()); }); } @@ -2503,18 +2279,14 @@ export class GoogleMap extends BaseClass { * @return {Promise} */ @CordovaInstance() - fromLatLngToPoint(latLng: ILatLng): Promise { - return; - } + fromLatLngToPoint(latLng: ILatLng): Promise { return; } /** * Convert the unit from the pixels from the left/top to the LatLng * @return {Promise} */ @CordovaInstance() - fromPointToLatLng(point: any): Promise { - return; - } + fromPointToLatLng(point: any): Promise { return; } /** * Set true if you want to show the MyLocation control (blue dot) @@ -2535,9 +2307,7 @@ export class GoogleMap extends BaseClass { * @return {Promise} */ @CordovaInstance() - getFocusedBuilding(): Promise { - return; - } + getFocusedBuilding(): Promise { return; } /** * Set true if you want to show the indoor map @@ -2582,12 +2352,7 @@ export class GoogleMap extends BaseClass { * @param bottom {number} */ @CordovaInstance({ sync: true }) - setPadding( - top?: number, - right?: number, - bottom?: number, - left?: number - ): void {} + setPadding(top?: number, right?: number, bottom?: number, left?: number): void { } /** * Set options @@ -2629,9 +2394,7 @@ export class GoogleMap extends BaseClass { * @return {Promise} */ @InstanceCheck() - addMarkerCluster( - options: MarkerClusterOptions - ): Promise { + addMarkerCluster(options: MarkerClusterOptions): Promise { return new Promise((resolve, reject) => { this._objectInstance.addMarkerCluster(options, (markerCluster: any) => { if (markerCluster) { @@ -2767,9 +2530,7 @@ export class GoogleMap extends BaseClass { * @return {Promise} */ @InstanceCheck() - addGroundOverlay( - options: GroundOverlayOptions - ): Promise { + addGroundOverlay(options: GroundOverlayOptions): Promise { return new Promise((resolve, reject) => { this._objectInstance.addGroundOverlay(options, (groundOverlay: any) => { if (groundOverlay) { @@ -2823,15 +2584,15 @@ export class GoogleMap extends BaseClass { * @return {Promise} */ @CordovaInstance() - toDataURL(params?: ToDataUrlOptions): Promise { - return; - } + toDataURL(params?: ToDataUrlOptions): Promise { return; } + } /** * @hidden */ export class GroundOverlay extends BaseClass { + private _map: GoogleMap; constructor(_map: GoogleMap, _objectInstance: any) { @@ -2845,17 +2606,13 @@ export class GroundOverlay extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getId(): string { - return; - } + getId(): string { return; } /** * Return the map instance. * @return {GoogleMap} */ - getMap(): GoogleMap { - return this._map; - } + getMap(): GoogleMap { return this._map; } /** * Change the bounds of the GroundOverlay @@ -2869,38 +2626,34 @@ export class GroundOverlay extends BaseClass { * @param bearing {number} */ @CordovaInstance({ sync: true }) - setBearing(bearing: number): void {} + setBearing(bearing: number): void { } /** * Return the current bearing value */ @CordovaInstance({ sync: true }) - getBearing(): number { - return; - } + getBearing(): number { return; } /** * Change the image of the ground overlay * @param image {string} URL of image */ @CordovaInstance({ sync: true }) - setImage(image: string): void {} + setImage(image: string): void {}; /** * Change the opacity of the ground overlay from 0.0 to 1.0 * @param opacity {number} */ @CordovaInstance({ sync: true }) - setOpacity(opacity: number): void {} + setOpacity(opacity: number): void { } /** * Return the current opacity * @return {number} */ @CordovaInstance({ sync: true }) - getOpacity(): number { - return; - } + getOpacity(): number { return; } /** * Change clickablity of the ground overlay @@ -2914,25 +2667,21 @@ export class GroundOverlay extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - getClickable(): boolean { - return; - } + getClickable(): boolean { return; } /** * Change visibility of the ground overlay * @param visible {boolean} */ @CordovaInstance({ sync: true }) - setVisible(visible: boolean): void {} + setVisible(visible: boolean): void { } /** * Return true if the ground overlay is visible * @return {boolean} */ @CordovaInstance({ sync: true }) - getVisible(): boolean { - return; - } + getVisible(): boolean { return; } /** * Change the ground overlay zIndex order @@ -2946,9 +2695,7 @@ export class GroundOverlay extends BaseClass { * @return {number} */ @CordovaInstance({ sync: true }) - getZIndex(): number { - return; - } + getZIndex(): number { return; } /** * Remove the ground overlay @@ -2971,9 +2718,10 @@ export class GroundOverlay extends BaseClass { repo: '' }) export class HtmlInfoWindow extends BaseClass { + constructor() { super(); - this._objectInstance = new (GoogleMaps.getPlugin()).HtmlInfoWindow(); + this._objectInstance = new (GoogleMaps.getPlugin().HtmlInfoWindow)(); } /** @@ -3003,12 +2751,14 @@ export class HtmlInfoWindow extends BaseClass { */ @CordovaInstance() close(): void {} + } /** * @hidden */ export class Marker extends BaseClass { + private _map: GoogleMap; constructor(_map: GoogleMap, _objectInstance: any) { @@ -3022,35 +2772,27 @@ export class Marker extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getId(): string { - return; - } + getId(): string { return; } /** * Return the map instance. * @return {GoogleMap} */ - getMap(): GoogleMap { - return this._map; - } + getMap(): GoogleMap { return this._map; } /** * Set the marker position. * @param latLng {ILatLng} */ @CordovaInstance({ sync: true }) - setPosition(latLng: ILatLng): void { - return; - } + setPosition(latLng: ILatLng): void { return; } /** * Return the marker position. * @return {ILatLng} */ @CordovaInstance({ sync: true }) - getPosition(): ILatLng { - return; - } + getPosition(): ILatLng { return; } /** * Show the normal infoWindow of the marker. @@ -3089,9 +2831,7 @@ export class Marker extends BaseClass { * Return true if the marker is visible */ @CordovaInstance({ sync: true }) - isVisible(): boolean { - return; - } + isVisible(): boolean { return; } /** * Change title of the normal infoWindow. @@ -3105,9 +2845,7 @@ export class Marker extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getTitle(): string { - return; - } + getTitle(): string { return; } /** * Change snippet of the normal infoWindow. @@ -3121,9 +2859,7 @@ export class Marker extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getSnippet(): string { - return; - } + getSnippet(): string { return; } /** * Change the marker opacity from 0.0 to 1.0. @@ -3137,9 +2873,7 @@ export class Marker extends BaseClass { * @return {number} Opacity */ @CordovaInstance({ sync: true }) - getOpacity(): number { - return; - } + getOpacity(): number { return; } /** * Remove the marker. @@ -3172,18 +2906,14 @@ export class Marker extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - isInfoWindowShown(): boolean { - return; - } + isInfoWindowShown(): boolean { return; } /** * Return the marker hash code. * @return {string} Marker hash code */ @CordovaInstance({ sync: true }) - getHashCode(): string { - return; - } + getHashCode(): string { return; } /** * Higher zIndex value overlays will be drawn on top of lower zIndex value tile layers and overlays. @@ -3197,65 +2927,57 @@ export class Marker extends BaseClass { * @return {number} */ @CordovaInstance({ sync: true }) - getZIndex(): number { - return; - } + getZIndex(): number { return; } /** * Set true if you allow all users to drag the marker. * @param draggable {boolean} */ @CordovaInstance({ sync: true }) - setDraggable(draggable: boolean): void {} + setDraggable(draggable: boolean): void { } /** * Return true if the marker drag is enabled. * @return {boolean} */ @CordovaInstance({ sync: true }) - isDraggable(): boolean { - return; - } + isDraggable(): boolean { return; } /** * Set true if you want to be flat marker. * @param flat {boolean} */ @CordovaInstance({ sync: true }) - setFlat(flat: boolean): void { - return; - } + setFlat(flat: boolean): void { return; } /** * Change icon url and/or size * @param icon */ @CordovaInstance({ sync: true }) - setIcon(icon: MarkerIcon): void { - return; - } + setIcon(icon: MarkerIcon): void { return; } /** * Set the marker rotation angle. * @param rotation {number} */ @CordovaInstance({ sync: true }) - setRotation(rotation: number): void {} + setRotation(rotation: number): void { } /** * Return the marker rotation angle. * @return {number} */ @CordovaInstance({ sync: true }) - getRotation(): number { - return; - } + getRotation(): number { return; } + } /** * @hidden */ export class MarkerCluster extends BaseClass { + private _map: GoogleMap; constructor(_map: GoogleMap, _objectInstance: any) { @@ -3269,9 +2991,7 @@ export class MarkerCluster extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getId(): string { - return; - } + getId(): string { return; } /** * Add one marker location @@ -3303,15 +3023,15 @@ export class MarkerCluster extends BaseClass { * Return the map instance. * @return {GoogleMap} */ - getMap(): GoogleMap { - return this._map; - } + getMap(): GoogleMap { return this._map; } + } /** * @hidden */ export class Polygon extends BaseClass { + private _map: GoogleMap; constructor(_map: GoogleMap, _objectInstance: any) { @@ -3325,17 +3045,13 @@ export class Polygon extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getId(): string { - return; - } + getId(): string { return; } /** * Return the map instance. * @return {GoogleMap} */ - getMap(): GoogleMap { - return this._map; - } + getMap(): GoogleMap { return this._map; } /** * Change the polygon points. @@ -3374,7 +3090,7 @@ export class Polygon extends BaseClass { results.push(hole); }); return results; - } + } /** * Change the filling color (inner color) @@ -3388,9 +3104,7 @@ export class Polygon extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getFillColor(): string { - return; - } + getFillColor(): string { return; } /** * Change the stroke color (outer color) @@ -3404,9 +3118,7 @@ export class Polygon extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getStrokeColor(): string { - return; - } + getStrokeColor(): string { return; } /** * Change clickablity of the polygon @@ -3419,9 +3131,7 @@ export class Polygon extends BaseClass { * Return true if the polygon is clickable */ @CordovaInstance({ sync: true }) - getClickable(): boolean { - return; - } + getClickable(): boolean { return; } /** * Change visibility of the polygon @@ -3435,9 +3145,7 @@ export class Polygon extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - getVisible(): boolean { - return; - } + getVisible(): boolean { return; } /** * Change the polygon zIndex order. @@ -3451,9 +3159,7 @@ export class Polygon extends BaseClass { * @return {number} */ @CordovaInstance({ sync: true }) - getZIndex(): number { - return; - } + getZIndex(): number { return; } /** * Remove the polygon. @@ -3475,9 +3181,7 @@ export class Polygon extends BaseClass { * Return the polygon stroke width */ @CordovaInstance({ sync: true }) - getStrokeWidth(): number { - return; - } + getStrokeWidth(): number { return; } /** * When true, edges of the polygon are interpreted as geodesic and will follow the curvature of the Earth. @@ -3491,15 +3195,15 @@ export class Polygon extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - getGeodesic(): boolean { - return; - } + getGeodesic(): boolean { return; } + } /** * @hidden */ export class Polyline extends BaseClass { + private _map: GoogleMap; constructor(_map: GoogleMap, _objectInstance: any) { @@ -3513,17 +3217,13 @@ export class Polyline extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getId(): string { - return; - } + getId(): string { return; } /** * Return the map instance. * @return {GoogleMap} */ - getMap(): GoogleMap { - return this._map; - } + getMap(): GoogleMap { return this._map; } /** * Change the polyline points. @@ -3553,9 +3253,7 @@ export class Polyline extends BaseClass { * Return true if the polyline is geodesic */ @CordovaInstance({ sync: true }) - getGeodesic(): boolean { - return; - } + getGeodesic(): boolean { return; } /** * Change visibility of the polyline @@ -3569,9 +3267,7 @@ export class Polyline extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - getVisible(): boolean { - return; - } + getVisible(): boolean { return; } /** * Change clickablity of the polyline @@ -3585,9 +3281,7 @@ export class Polyline extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - getClickable(): boolean { - return; - } + getClickable(): boolean { return; } /** * Change the polyline color @@ -3601,9 +3295,7 @@ export class Polyline extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getStrokeColor(): string { - return; - } + getStrokeColor(): string { return; } /** * Change the polyline stroke width @@ -3617,9 +3309,7 @@ export class Polyline extends BaseClass { * @return {number} */ @CordovaInstance({ sync: true }) - getStrokeWidth(): number { - return; - } + getStrokeWidth(): number { return; } /** * Change the polyline zIndex order. @@ -3633,9 +3323,7 @@ export class Polyline extends BaseClass { * @return {number} */ @CordovaInstance({ sync: true }) - getZIndex(): number { - return; - } + getZIndex(): number { return; } /** * Remove the polyline @@ -3652,6 +3340,7 @@ export class Polyline extends BaseClass { * @hidden */ export class TileOverlay extends BaseClass { + private _map: GoogleMap; constructor(_map: GoogleMap, _objectInstance: any) { @@ -3665,17 +3354,13 @@ export class TileOverlay extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getId(): string { - return; - } + getId(): string { return; } /** * Return the map instance. * @return {GoogleMap} */ - getMap(): GoogleMap { - return this._map; - } + getMap(): GoogleMap { return this._map; } /** * Set whether the tiles should fade in. @@ -3689,9 +3374,7 @@ export class TileOverlay extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - getFadeIn(): boolean { - return; - } + getFadeIn(): boolean { return; } /** * Set the zIndex of the tile overlay @@ -3705,9 +3388,7 @@ export class TileOverlay extends BaseClass { * @return {number} */ @CordovaInstance({ sync: true }) - getZIndex(): number { - return; - } + getZIndex(): number { return; } /** * Set the opacity of the tile overlay @@ -3721,9 +3402,7 @@ export class TileOverlay extends BaseClass { * @return {number} */ @CordovaInstance({ sync: true }) - getOpacity(): number { - return; - } + getOpacity(): number { return; } /** * Set false if you want to hide @@ -3737,17 +3416,13 @@ export class TileOverlay extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - getVisible(): boolean { - return; - } + getVisible(): boolean { return; } /** * Get tile size */ @CordovaInstance({ sync: true }) - getTileSize(): any { - return; - } + getTileSize(): any { return; } /** * Remove the tile overlay @@ -3764,6 +3439,7 @@ export class TileOverlay extends BaseClass { * @hidden */ export class KmlOverlay extends BaseClass { + private _map: GoogleMap; constructor(_map: GoogleMap, _objectInstance: any) { @@ -3772,12 +3448,12 @@ export class KmlOverlay extends BaseClass { this._objectInstance = _objectInstance; Object.defineProperty(self, 'camera', { - value: this._objectInstance.camera, - writable: false + value: this._objectInstance.camera, + writable: false }); Object.defineProperty(self, 'kmlData', { - value: this._objectInstance.kmlData, - writable: false + value: this._objectInstance.kmlData, + writable: false }); } @@ -3785,26 +3461,20 @@ export class KmlOverlay extends BaseClass { * Returns the viewport to contains all overlays */ @CordovaInstance({ sync: true }) - getDefaultViewport(): CameraPosition { - return; - } + getDefaultViewport(): CameraPosition { return; } /** * Return the ID of instance. * @return {string} */ @CordovaInstance({ sync: true }) - getId(): string { - return; - } + getId(): string { return; } /** * Return the map instance. * @return {GoogleMap} */ - getMap(): GoogleMap { - return this._map; - } + getMap(): GoogleMap { return this._map; } /** * Change visibility of the polyline @@ -3818,9 +3488,7 @@ export class KmlOverlay extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - getVisible(): boolean { - return; - } + getVisible(): boolean { return; } /** * Change clickablity of the KmlOverlay @@ -3834,9 +3502,7 @@ export class KmlOverlay extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - getClickable(): boolean { - return; - } + getClickable(): boolean { return; } /** * Remove the KmlOverlay diff --git a/src/@ionic-native/plugins/google-play-games-services/index.ts b/src/@ionic-native/plugins/google-play-games-services/index.ts index b106d39fa..73314ffb9 100644 --- a/src/@ionic-native/plugins/google-play-games-services/index.ts +++ b/src/@ionic-native/plugins/google-play-games-services/index.ts @@ -1,7 +1,8 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; export interface ScoreData { + /** * The score to submit. */ @@ -11,37 +12,47 @@ export interface ScoreData { * The leaderboard ID from Google Play Developer console. */ leaderboardId: string; + } export interface LeaderboardData { + /** * The leaderboard ID from Goole Play Developer console. */ leaderboardId: string; + } export interface AchievementData { + /** * The achievement ID from Google Play Developer console. */ achievementId: string; + } export interface IncrementableAchievementData extends AchievementData { + /** * The amount to increment the achievement by. */ numSteps: number; + } export interface SignedInResponse { + /** * True or false is the use is signed in. */ isSignedIn: boolean; + } export interface Player { + /** * The players display name. */ @@ -56,10 +67,10 @@ export interface Player { * The title of the player based on their gameplay activity. Not * all players have this and it may change over time. */ - title: string | null; + title: string|null; /** - * Retrieves the URI for loading this player's icon-size profile image. + * Retrieves the URI for loading this player's icon-size profile image. * Returns null if the player has no profile image. */ iconImageUrl: string; @@ -69,6 +80,7 @@ export interface Player { * null if the player has no profile image. */ hiResIconImageUrl: string; + } /** @@ -89,12 +101,12 @@ export interface Player { * this.googlePlayGamesServices.auth() * .then(() => console.log('Logged in to Play Games Services')) * .catch(e) => console.log('Error logging in Play Games Services', e); - * + * * // Sign out of Play Games Services. * this.googlePlayGamesServices.signOut() * .then(() => console.log('Logged out of Play Games Services')) * .catch(e => console.log('Error logging out of Play Games Services', e); - * + * * // Check auth status. * this.googlePlayGamesServices.isSignedIn() * .then((signedIn: SignedInResponse) => { @@ -102,38 +114,38 @@ export interface Player { * hideLoginButton(); * } * }); - * + * * // Fetch currently authenticated user's data. * this.googlePlayGamesServices.showPlayer().then((data: Player) => { * console.log('Player data', data); * }); - * + * * // Submit a score. * this.googlePlayGamesServices.submitScore({ * score: 100, * leaderboardId: 'SomeLeaderboardId' * }); - * + * * // Show the native leaderboards window. * this.googlePlayGamesServices.showAllLeaderboards() * .then(() => console.log('The leaderboard window is visible.')); - * + * * // Show a signle native leaderboard window. * this.googlePlayGamesServices.showLeaderboard({ * leaderboardId: 'SomeLeaderBoardId' * }).then(() => console.log('The leaderboard window is visible.')); - * + * * // Unlock an achievement. * this.googlePlayGamesServices.unlockAchievement({ * achievementId: 'SomeAchievementId' * }).then(() => console.log('Achievement unlocked')); - * + * * // Incremement an achievement. * this.googlePlayGamesServices.incrementAchievement({ * step: 1, * achievementId: 'SomeAchievementId' * }).then(() => console.log('Achievement incremented')); - * + * * // Show the native achievements window. * this.googlePlayGamesServices.showAchivements() * .then(() => console.log('The achievements window is visible.')); @@ -146,126 +158,107 @@ export interface Player { pluginRef: 'plugins.playGamesServices', repo: 'https://github.com/artberri/cordova-plugin-play-games-services', platforms: ['Android'], - install: - 'ionic cordova plugin add cordova-plugin-play-games-service --variable APP_ID="YOUR_APP_ID' + install: 'ionic cordova plugin add cordova-plugin-play-games-service --variable APP_ID="YOUR_APP_ID', }) @Injectable() export class GooglePlayGamesServices extends IonicNativePlugin { + /** * Initialise native Play Games Service login procedure. - * + * * @return {Promise} Returns a promise that resolves when the player * is authenticated with Play Games Services. */ @Cordova() - auth(): Promise { - return; - } + auth(): Promise { return; } /** * Sign out of Google Play Games Services. - * + * * @return {Promise} Returns a promise that resolve when the player * successfully signs out. */ @Cordova() - signOut(): Promise { - return; - } + signOut(): Promise { return; } /** * Check if the user is signed in. - * + * * @return {Promise} Returns a promise that resolves with * the signed in response. */ @Cordova() - isSignedIn(): Promise { - return; - } + isSignedIn(): Promise { return; } /** * Show the currently authenticated player. - * - * @return {Promise} Returns a promise that resolves when Play + * + * @return {Promise} Returns a promise that resolves when Play * Games Services returns the authenticated player. */ @Cordova() - showPlayer(): Promise { - return; - } + showPlayer(): Promise { return; } /** * Submit a score to a leaderboard. You should ensure that you have a * successful return from auth() before submitting a score. - * + * * @param data {ScoreData} The score data you want to submit. * @return {Promise} Returns a promise that resolves when the * score is submitted. */ @Cordova() - submitScore(data: ScoreData): Promise { - return; - } + submitScore(data: ScoreData): Promise { return; } /** * Launches the native Play Games leaderboard view controller to show all the * leaderboards. - * + * * @return {Promise} Returns a promise that resolves when the native * leaderboards window opens. */ @Cordova() - showAllLeaderboards(): Promise { - return; - } + showAllLeaderboards(): Promise { return; } /** * Launches the native Play Games leaderboard view controll to show the * specified leaderboard. - * + * * @param data {LeaderboardData} The leaderboard you want to show. * @return {Promise} Returns a promise that resolves when the native * leaderboard window opens. */ @Cordova() - showLeaderboard(data: LeaderboardData): Promise { - return; - } + showLeaderboard(data: LeaderboardData): Promise { return; } /** * Unlock an achievement. - * + * * @param data {AchievementData} * @return {Promise} Returns a promise that resolves when the * achievement is unlocked. */ @Cordova() - unlockAchievement(data: AchievementData): Promise { - return; - } + unlockAchievement(data: AchievementData): Promise { return; } /** * Increment an achievement. - * + * * @param data {IncrementableAchievementData} * @return {Promise} Returns a promise that resolves when the * achievement is incremented. */ @Cordova() - incrementAchievement(data: IncrementableAchievementData): Promise { - return; - } + incrementAchievement(data: IncrementableAchievementData): Promise { return; } /** * Lauches the native Play Games achievements view controller to show * achievements. - * + * * @return {Promise} Returns a promise that resolves when the * achievement window opens. */ @Cordova() - showAchievements(): Promise { - return; - } + showAchievements(): Promise { return; } + } diff --git a/src/@ionic-native/plugins/google-plus/index.ts b/src/@ionic-native/plugins/google-plus/index.ts index 32dbfe426..95a69106e 100644 --- a/src/@ionic-native/plugins/google-plus/index.ts +++ b/src/@ionic-native/plugins/google-plus/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; /** * @name Google Plus @@ -23,13 +23,13 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-googleplus', pluginRef: 'window.plugins.googleplus', repo: 'https://github.com/EddyVerbruggen/cordova-plugin-googleplus', - install: - 'ionic cordova plugin add cordova-plugin-googleplus --variable REVERSED_CLIENT_ID=myreversedclientid', + install: 'ionic cordova plugin add cordova-plugin-googleplus --variable REVERSED_CLIENT_ID=myreversedclientid', installVariables: ['REVERSED_CLIENT_ID'], platforms: ['Android', 'iOS'] }) @Injectable() export class GooglePlus extends IonicNativePlugin { + /** * The login function walks the user through the Google Auth process. * @param options @@ -39,9 +39,7 @@ export class GooglePlus extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - login(options?: any): Promise { - return; - } + login(options?: any): Promise { return; } /** * You can call trySilentLogin to check if they're already signed in to the app and sign them in silently if they are. @@ -49,34 +47,27 @@ export class GooglePlus extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - trySilentLogin(options?: any): Promise { - return; - } + trySilentLogin(options?: any): Promise { return; } /** * This will clear the OAuth2 token. * @returns {Promise} */ @Cordova() - logout(): Promise { - return; - } + logout(): Promise { return; } /** * This will clear the OAuth2 token, forget which account was used to login, and disconnect that account from the app. This will require the user to allow the app access again next time they sign in. Be aware that this effect is not always instantaneous. It can take time to completely disconnect. * @returns {Promise} */ @Cordova() - disconnect(): Promise { - return; - } + disconnect(): Promise { return; } /** * This will retrieve the Android signing certificate fingerprint which is required in the Google Developer Console. * @returns {Promise} */ @Cordova() - getSigningCertificateFingerprint(): Promise { - return; - } + getSigningCertificateFingerprint(): Promise { return; } + } diff --git a/src/@ionic-native/plugins/gyroscope/index.ts b/src/@ionic-native/plugins/gyroscope/index.ts index de903b065..87af80f2a 100644 --- a/src/@ionic-native/plugins/gyroscope/index.ts +++ b/src/@ionic-native/plugins/gyroscope/index.ts @@ -1,6 +1,6 @@ -import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; +import { Injectable } from '@angular/core'; declare const navigator: any; @@ -82,20 +82,19 @@ export interface GyroscopeOptions { }) @Injectable() export class Gyroscope extends IonicNativePlugin { + /** * Watching for gyroscope sensor changes * @param {GyroscopeOptions} [options] * @return {Observable} Returns an Observable that resolves GyroscopeOrientation */ watch(options?: GyroscopeOptions): Observable { - return new Observable((observer: any) => { - let watchId = navigator.gyroscope.watch( - observer.next.bind(observer), - observer.next.bind(observer), - options - ); - return () => navigator.gyroscope.clearWatch(watchId); - }); + return new Observable( + (observer: any) => { + let watchId = navigator.gyroscope.watch(observer.next.bind(observer), observer.next.bind(observer), options); + return () => navigator.gyroscope.clearWatch(watchId); + } + ); } /** @@ -106,7 +105,5 @@ export class Gyroscope extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - getCurrent(options?: GyroscopeOptions): Promise { - return; - } + getCurrent(options?: GyroscopeOptions): Promise { return; } } diff --git a/src/@ionic-native/plugins/header-color/index.ts b/src/@ionic-native/plugins/header-color/index.ts index 40df263c4..edf82e430 100644 --- a/src/@ionic-native/plugins/header-color/index.ts +++ b/src/@ionic-native/plugins/header-color/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; /** * @name Header Color @@ -26,6 +26,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; }) @Injectable() export class HeaderColor extends IonicNativePlugin { + /** * Set a color to the task header * @param color {string} The hex value of the color @@ -36,7 +37,6 @@ export class HeaderColor extends IonicNativePlugin { successName: 'success', errorName: 'failure' }) - tint(color: string): Promise { - return; - } + tint(color: string): Promise { return; } + } diff --git a/src/@ionic-native/plugins/health-kit/index.ts b/src/@ionic-native/plugins/health-kit/index.ts index 646d1e416..3184729af 100644 --- a/src/@ionic-native/plugins/health-kit/index.ts +++ b/src/@ionic-native/plugins/health-kit/index.ts @@ -1,116 +1,116 @@ +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface HealthKitOptions { /** - * HKWorkoutActivityType constant - * Read more here: https://developer.apple.com/library/ios/documentation/HealthKit/Reference/HKWorkout_Class/#//apple_ref/c/tdef/HKWorkoutActivityType - */ + * HKWorkoutActivityType constant + * Read more here: https://developer.apple.com/library/ios/documentation/HealthKit/Reference/HKWorkout_Class/#//apple_ref/c/tdef/HKWorkoutActivityType + */ activityType?: string; // /** - * 'hour', 'week', 'year' or 'day', default 'day' - */ + * 'hour', 'week', 'year' or 'day', default 'day' + */ aggregation?: string; /** - * - */ + * + */ amount?: number; /** - * - */ + * + */ correlationType?: string; /** - * - */ + * + */ date?: any; /** - * - */ + * + */ distance?: number; /** - * probably useful with the former param - */ + * probably useful with the former param + */ distanceUnit?: string; /** - * in seconds, optional, use either this or endDate - */ + * in seconds, optional, use either this or endDate + */ duration?: number; /** - * - */ + * + */ endDate?: any; /** - * - */ + * + */ energy?: number; /** - * J|cal|kcal - */ + * J|cal|kcal + */ energyUnit?: string; /** - * - */ + * + */ extraData?: any; /** - * - */ + * + */ metadata?: any; /** - * - */ + * + */ quantityType?: string; /** - * - */ + * + */ readTypes?: any; /** - * - */ + * + */ requestWritePermission?: boolean; /** - * - */ + * + */ samples?: any; /** - * - */ + * + */ sampleType?: string; /** - * - */ + * + */ startDate?: any; /** - * m|cm|mm|in|ft - */ + * m|cm|mm|in|ft + */ unit?: string; /** - * - */ + * + */ requestReadPermission?: boolean; /** - * - */ + * + */ writeTypes?: any; } @@ -142,207 +142,168 @@ export interface HealthKitOptions { }) @Injectable() export class HealthKit extends IonicNativePlugin { - /** - * Check if HealthKit is supported (iOS8+, not on iPad) - * @returns {Promise} - */ - @Cordova() - available(): Promise { - return; - } /** - * Pass in a type and get back on of undetermined | denied | authorized - * @param options {HealthKitOptions} - * @returns {Promise} - */ + * Check if HealthKit is supported (iOS8+, not on iPad) + * @returns {Promise} + */ @Cordova() - checkAuthStatus(options: HealthKitOptions): Promise { - return; - } + available(): Promise { return; } /** - * Ask some or all permissions up front - * @param options {HealthKitOptions} - * @returns {Promise} - */ + * Pass in a type and get back on of undetermined | denied | authorized + * @param options {HealthKitOptions} + * @returns {Promise} + */ @Cordova() - requestAuthorization(options: HealthKitOptions): Promise { - return; - } + checkAuthStatus(options: HealthKitOptions): Promise { return; } /** - * Formatted as yyyy-MM-dd - * @returns {Promise} - */ + * Ask some or all permissions up front + * @param options {HealthKitOptions} + * @returns {Promise} + */ @Cordova() - readDateOfBirth(): Promise { - return; - } + requestAuthorization(options: HealthKitOptions): Promise { return; } /** - * Output = male|female|other|unknown - * @returns {Promise} - */ + * Formatted as yyyy-MM-dd + * @returns {Promise} + */ @Cordova() - readGender(): Promise { - return; - } + readDateOfBirth(): Promise { return; } /** - * Output = A+|A-|B+|B-|AB+|AB-|O+|O-|unknown - * @returns {Promise} - */ + * Output = male|female|other|unknown + * @returns {Promise} + */ @Cordova() - readBloodType(): Promise { - return; - } + readGender(): Promise { return; } /** - * Output = I|II|III|IV|V|VI|unknown - * @returns {Promise} - */ + * Output = A+|A-|B+|B-|AB+|AB-|O+|O-|unknown + * @returns {Promise} + */ @Cordova() - readFitzpatrickSkinType(): Promise { - return; - } + readBloodType(): Promise { return; } /** - * Pass in unit (g=gram, kg=kilogram, oz=ounce, lb=pound, st=stone) and amount - * @param options {HealthKitOptions} - * @returns {Promise} - */ + * Output = I|II|III|IV|V|VI|unknown + * @returns {Promise} + */ @Cordova() - saveWeight(options: HealthKitOptions): Promise { - return; - } + readFitzpatrickSkinType(): Promise { return; } /** - * Pass in unit (g=gram, kg=kilogram, oz=ounce, lb=pound, st=stone) - * @param options {HealthKitOptions} - * @returns {Promise} - */ + * Pass in unit (g=gram, kg=kilogram, oz=ounce, lb=pound, st=stone) and amount + * @param options {HealthKitOptions} + * @returns {Promise} + */ @Cordova() - readWeight(options: HealthKitOptions): Promise { - return; - } + saveWeight(options: HealthKitOptions): Promise { return; } /** - * Pass in unit (mm=millimeter, cm=centimeter, m=meter, in=inch, ft=foot) and amount - * @param options {HealthKitOptions} - * @returns {Promise} - */ + * Pass in unit (g=gram, kg=kilogram, oz=ounce, lb=pound, st=stone) + * @param options {HealthKitOptions} + * @returns {Promise} + */ @Cordova() - saveHeight(options: HealthKitOptions): Promise { - return; - } + readWeight(options: HealthKitOptions): Promise { return; } /** - * Pass in unit (mm=millimeter, cm=centimeter, m=meter, in=inch, ft=foot) - * @param options {HealthKitOptions} - * @returns {Promise} - */ + * Pass in unit (mm=millimeter, cm=centimeter, m=meter, in=inch, ft=foot) and amount + * @param options {HealthKitOptions} + * @returns {Promise} + */ @Cordova() - readHeight(options: HealthKitOptions): Promise { - return; - } + saveHeight(options: HealthKitOptions): Promise { return; } /** - * no params yet, so this will return all workouts ever of any type - * @returns {Promise} - */ + * Pass in unit (mm=millimeter, cm=centimeter, m=meter, in=inch, ft=foot) + * @param options {HealthKitOptions} + * @returns {Promise} + */ @Cordova() - findWorkouts(): Promise { - return; - } + readHeight(options: HealthKitOptions): Promise { return; } /** - * - * @param options {HealthKitOptions} - * @returns {Promise} - */ + * no params yet, so this will return all workouts ever of any type + * @returns {Promise} + */ @Cordova() - saveWorkout(options: HealthKitOptions): Promise { - return; - } + findWorkouts(): Promise { return; } /** - * - * @param options {HealthKitOptions} - * @returns {Promise} - */ + * + * @param options {HealthKitOptions} + * @returns {Promise} + */ @Cordova() - querySampleType(options: HealthKitOptions): Promise { - return; - } + saveWorkout(options: HealthKitOptions): Promise { return; } /** - * - * @param options {HealthKitOptions} - * @returns {Promise} - */ + * + * @param options {HealthKitOptions} + * @returns {Promise} + */ @Cordova() - querySampleTypeAggregated(options: HealthKitOptions): Promise { - return; - } + querySampleType(options: HealthKitOptions): Promise { return; } /** - * - * @param options {HealthKitOptions} - * @returns {Promise} - */ + * + * @param options {HealthKitOptions} + * @returns {Promise} + */ @Cordova() - deleteSamples(options: HealthKitOptions): Promise { - return; - } + querySampleTypeAggregated(options: HealthKitOptions): Promise { return; } /** - * - * @param options {HealthKitOptions} - * @returns {Promise} - */ + * + * @param options {HealthKitOptions} + * @returns {Promise} + */ @Cordova() - monitorSampleType(options: HealthKitOptions): Promise { - return; - } + deleteSamples(options: HealthKitOptions): Promise { return; } /** - * - * @param options {HealthKitOptions} - * @returns {Promise} - */ + * + * @param options {HealthKitOptions} + * @returns {Promise} + */ @Cordova() - sumQuantityType(options: HealthKitOptions): Promise { - return; - } + monitorSampleType(options: HealthKitOptions): Promise { return; } /** - * - * @param options {HealthKitOptions} - * @returns {Promise} - */ + * + * @param options {HealthKitOptions} + * @returns {Promise} + */ @Cordova() - saveQuantitySample(options: HealthKitOptions): Promise { - return; - } + sumQuantityType(options: HealthKitOptions): Promise { return; } /** - * - * @param options {HealthKitOptions} - * @returns {Promise} - */ + * + * @param options {HealthKitOptions} + * @returns {Promise} + */ @Cordova() - saveCorrelation(options: HealthKitOptions): Promise { - return; - } + saveQuantitySample(options: HealthKitOptions): Promise { return; } /** - * - * @param options {HealthKitOptions} - * @returns {Promise} - */ + * + * @param options {HealthKitOptions} + * @returns {Promise} + */ @Cordova() - queryCorrelationType(options: HealthKitOptions): Promise { - return; - } + saveCorrelation(options: HealthKitOptions): Promise { return; } + + /** + * + * @param options {HealthKitOptions} + * @returns {Promise} + */ + @Cordova() + queryCorrelationType(options: HealthKitOptions): Promise { return; } + + } diff --git a/src/@ionic-native/plugins/health/index.ts b/src/@ionic-native/plugins/health/index.ts index c498624cd..85b09fe97 100644 --- a/src/@ionic-native/plugins/health/index.ts +++ b/src/@ionic-native/plugins/health/index.ts @@ -1,18 +1,18 @@ +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @hidden */ export interface HealthDataType { /** - * Read only date types (see https://github.com/dariosalvi78/cordova-plugin-health#supported-data-types) - */ + * Read only date types (see https://github.com/dariosalvi78/cordova-plugin-health#supported-data-types) + */ read?: string[]; /** - * Write only date types (see https://github.com/dariosalvi78/cordova-plugin-health#supported-data-types) - */ + * Write only date types (see https://github.com/dariosalvi78/cordova-plugin-health#supported-data-types) + */ write?: string[]; } @@ -201,6 +201,7 @@ export interface HealthData { }) @Injectable() export class Health extends IonicNativePlugin { + /** * Tells if either Google Fit or HealthKit are available. * @@ -209,9 +210,7 @@ export class Health extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - isAvailable(): Promise { - return; - } + isAvailable(): Promise { return; } /** * Checks if recent Google Play Services and Google Fit are installed. If the play services are not installed, @@ -227,9 +226,7 @@ export class Health extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - promptInstallFit(): Promise { - return; - } + promptInstallFit(): Promise { return; } /** * Requests read and/or write access to a set of data types. It is recommendable to always explain why the app @@ -251,11 +248,7 @@ export class Health extends IonicNativePlugin { * @return {Promise} */ @Cordova() - requestAuthorization( - datatypes: Array - ): Promise { - return; - } + requestAuthorization(datatypes: Array): Promise { return; } /** * Check if the app has authorization to read/write a set of datatypes. @@ -269,9 +262,7 @@ export class Health extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves with a boolean that indicates the authorization status */ @Cordova() - isAuthorized(datatypes: Array): Promise { - return; - } + isAuthorized(datatypes: Array): Promise { return; } /** * Gets all the data points of a certain data type within a certain time window. @@ -305,9 +296,7 @@ export class Health extends IonicNativePlugin { * @return {Promise} */ @Cordova() - query(queryOptions: HealthQueryOptions): Promise { - return; - } + query(queryOptions: HealthQueryOptions): Promise { return; } /** * Gets aggregated data in a certain time window. Usually the sum is returned for the given quantity. @@ -331,11 +320,7 @@ export class Health extends IonicNativePlugin { * @return {Promise} */ @Cordova() - queryAggregated( - queryOptionsAggregated: HealthQueryOptionsAggregated - ): Promise { - return; - } + queryAggregated(queryOptionsAggregated: HealthQueryOptionsAggregated): Promise { return; } /** * Stores a data point. @@ -352,7 +337,6 @@ export class Health extends IonicNativePlugin { * @return {Promise} */ @Cordova() - store(storeOptions: HealthStoreOptions): Promise { - return; - } + store(storeOptions: HealthStoreOptions): Promise { return; } + } diff --git a/src/@ionic-native/plugins/hotspot/index.ts b/src/@ionic-native/plugins/hotspot/index.ts index bfe6757ea..97d58ba90 100644 --- a/src/@ionic-native/plugins/hotspot/index.ts +++ b/src/@ionic-native/plugins/hotspot/index.ts @@ -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 HotspotConnectionInfo { + /** * The service set identifier (SSID) of the current 802.11 network. */ @@ -26,9 +27,11 @@ export interface HotspotConnectionInfo { * Each configured network has a unique small integer ID, used to identify the network when performing operations on the supplicant. */ networkID: string; + } export interface HotspotNetwork { + /** * Human readable network name */ @@ -58,8 +61,10 @@ export interface HotspotNetwork { * Describes the authentication, key management, and encryption schemes supported by the access point. */ capabilities: string; + } export interface HotspotNetworkConfig { + /** * Device IP Address */ @@ -79,9 +84,11 @@ export interface HotspotNetworkConfig { * Gateway MAC Address */ gatewayMacAddress: string; + } export interface HotspotDevice { + /** * Hotspot IP Address */ @@ -91,6 +98,7 @@ export interface HotspotDevice { * Hotspot MAC Address */ mac: string; + } /** @@ -126,21 +134,18 @@ export interface HotspotDevice { }) @Injectable() export class Hotspot extends IonicNativePlugin { - /** - * @returns {Promise} - */ - @Cordova() - isAvailable(): Promise { - return; - } /** * @returns {Promise} */ @Cordova() - toggleWifi(): Promise { - return; - } + isAvailable(): Promise { return; } + + /** + * @returns {Promise} + */ + @Cordova() + toggleWifi(): Promise { return; } /** * Configures and starts hotspot with SSID and Password @@ -152,9 +157,7 @@ export class Hotspot extends IonicNativePlugin { * @returns {Promise} - Promise to call once hotspot is started, or reject upon failure */ @Cordova() - createHotspot(ssid: string, mode: string, password: string): Promise { - return; - } + createHotspot(ssid: string, mode: string, password: string): Promise { return; } /** * Turns on Access Point @@ -162,9 +165,7 @@ export class Hotspot extends IonicNativePlugin { * @returns {Promise} - true if AP is started */ @Cordova() - startHotspot(): Promise { - return; - } + startHotspot(): Promise { return; } /** * Configures hotspot with SSID and Password @@ -176,13 +177,7 @@ export class Hotspot extends IonicNativePlugin { * @returns {Promise} - Promise to call when hotspot is configured, or reject upon failure */ @Cordova() - configureHotspot( - ssid: string, - mode: string, - password: string - ): Promise { - return; - } + configureHotspot(ssid: string, mode: string, password: string): Promise { return; } /** * Turns off Access Point @@ -190,9 +185,7 @@ export class Hotspot extends IonicNativePlugin { * @returns {Promise} - Promise to turn off the hotspot, true on success, false on failure */ @Cordova() - stopHotspot(): Promise { - return; - } + stopHotspot(): Promise { return; } /** * Checks if hotspot is enabled @@ -200,17 +193,13 @@ export class Hotspot extends IonicNativePlugin { * @returns {Promise} - Promise that hotspot is enabled, rejected if it is not enabled */ @Cordova() - isHotspotEnabled(): Promise { - return; - } + isHotspotEnabled(): Promise { return; } /** * @returns {Promise>} */ @Cordova() - getAllHotspotDevices(): Promise> { - return; - } + getAllHotspotDevices(): Promise> { return; } /** * Connect to a WiFi network @@ -224,9 +213,7 @@ export class Hotspot extends IonicNativePlugin { * Promise that connection to the WiFi network was successfull, rejected if unsuccessful */ @Cordova() - connectToWifi(ssid: string, password: string): Promise { - return; - } + connectToWifi(ssid: string, password: string): Promise { return; } /** * Connect to a WiFi network @@ -244,14 +231,7 @@ export class Hotspot extends IonicNativePlugin { * Promise that connection to the WiFi network was successfull, rejected if unsuccessful */ @Cordova() - connectToWifiAuthEncrypt( - ssid: string, - password: string, - authentication: string, - encryption: Array - ): Promise { - return; - } + connectToWifiAuthEncrypt(ssid: string, password: string, authentication: string, encryption: Array): Promise { return; } /** * Add a WiFi network @@ -267,9 +247,7 @@ export class Hotspot extends IonicNativePlugin { * Promise that adding the WiFi network was successfull, rejected if unsuccessful */ @Cordova() - addWifiNetwork(ssid: string, mode: string, password: string): Promise { - return; - } + addWifiNetwork(ssid: string, mode: string, password: string): Promise { return; } /** * Remove a WiFi network @@ -281,105 +259,79 @@ export class Hotspot extends IonicNativePlugin { * Promise that removing the WiFi network was successfull, rejected if unsuccessful */ @Cordova() - removeWifiNetwork(ssid: string): Promise { - return; - } + removeWifiNetwork(ssid: string): Promise { return; } /** * @returns {Promise} */ @Cordova() - isConnectedToInternet(): Promise { - return; - } + isConnectedToInternet(): Promise { return; } /** * @returns {Promise} */ @Cordova() - isConnectedToInternetViaWifi(): Promise { - return; - } + isConnectedToInternetViaWifi(): Promise { return; } /** * @returns {Promise} */ @Cordova() - isWifiOn(): Promise { - return; - } + isWifiOn(): Promise { return; } /** * @returns {Promise} */ @Cordova() - isWifiSupported(): Promise { - return; - } + isWifiSupported(): Promise { return; } /** * @returns {Promise} */ @Cordova() - isWifiDirectSupported(): Promise { - return; - } + isWifiDirectSupported(): Promise { return; } /** * @returns {Promise>} */ @Cordova() - scanWifi(): Promise> { - return; - } + scanWifi(): Promise> { return; } /** * @returns {Promise>} */ @Cordova() - scanWifiByLevel(): Promise> { - return; - } + scanWifiByLevel(): Promise> { return; } /** * @returns {Promise} */ @Cordova() - startWifiPeriodicallyScan(interval: number, duration: number): Promise { - return; - } + startWifiPeriodicallyScan(interval: number, duration: number): Promise { return; } /** * @returns {Promise} */ @Cordova() - stopWifiPeriodicallyScan(): Promise { - return; - } + stopWifiPeriodicallyScan(): Promise { return; } /** * @returns {Promise} */ @Cordova() - getNetConfig(): Promise { - return; - } + getNetConfig(): Promise { return; } /** * @returns {Promise} */ @Cordova() - getConnectionInfo(): Promise { - return; - } + getConnectionInfo(): Promise { return; } /** * @returns {Promise} */ @Cordova() - pingHost(ip: string): Promise { - return; - } + pingHost(ip: string): Promise { return; } /** * Gets MAC Address associated with IP Address from ARP File @@ -389,9 +341,7 @@ export class Hotspot extends IonicNativePlugin { * @returns {Promise} - A Promise for the MAC Address */ @Cordova() - getMacAddressOfHost(ip: string): Promise { - return; - } + getMacAddressOfHost(ip: string): Promise { return; } /** * Checks if IP is live using DNS @@ -401,9 +351,7 @@ export class Hotspot extends IonicNativePlugin { * @returns {Promise} - A Promise for whether the IP Address is reachable */ @Cordova() - isDnsLive(ip: string): Promise { - return; - } + isDnsLive(ip: string): Promise { return; } /** * Checks if IP is live using socket And PORT @@ -413,9 +361,7 @@ export class Hotspot extends IonicNativePlugin { * @returns {Promise} - A Promise for whether the IP Address is reachable */ @Cordova() - isPortLive(ip: string): Promise { - return; - } + isPortLive(ip: string): Promise { return; } /** * Checks if device is rooted @@ -423,7 +369,6 @@ export class Hotspot extends IonicNativePlugin { * @returns {Promise} - A Promise for whether the device is rooted */ @Cordova() - isRooted(): Promise { - return; - } + isRooted(): Promise { return; } + } diff --git a/src/@ionic-native/plugins/http/index.ts b/src/@ionic-native/plugins/http/index.ts index 878415b84..56c84069d 100644 --- a/src/@ionic-native/plugins/http/index.ts +++ b/src/@ionic-native/plugins/http/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; export interface HTTPResponse { /** @@ -66,6 +66,7 @@ export interface HTTPResponse { }) @Injectable() export class HTTP extends IonicNativePlugin { + /** * This returns an object representing a basic HTTP Authorization header of the form. * @param username {string} Username @@ -73,12 +74,7 @@ export class HTTP extends IonicNativePlugin { * @returns {Object} an object representing a basic HTTP Authorization header of the form {'Authorization': 'Basic base64encodedusernameandpassword'} */ @Cordova({ sync: true }) - getBasicAuthHeader( - username: string, - password: string - ): { Authorization: string } { - return; - } + getBasicAuthHeader(username: string, password: string): { Authorization: string; } { return; } /** * This sets up all future requests to use Basic HTTP authentication with the given username and password. @@ -86,7 +82,7 @@ export class HTTP extends IonicNativePlugin { * @param password {string} Password */ @Cordova({ sync: true }) - useBasicAuth(username: string, password: string): void {} + useBasicAuth(username: string, password: string): void { } /** * Set a header for all future requests. Takes a header and a value. @@ -94,20 +90,20 @@ export class HTTP extends IonicNativePlugin { * @param value {string} The value of the header */ @Cordova({ sync: true }) - setHeader(header: string, value: string): void {} + setHeader(header: string, value: string): void { } /** * Set the data serializer which will be used for all future POST and PUT requests. Takes a string representing the name of the serializer. * @param serializer {string} The name of the serializer. Can be urlencoded or json */ @Cordova({ sync: true }) - setDataSerializer(serializer: string): void {} + setDataSerializer(serializer: string): void { } /** * Clear all cookies */ @Cordova({ sync: true }) - clearCookies(): void {} + clearCookies(): void { } /** * Remove cookies @@ -115,21 +111,21 @@ export class HTTP extends IonicNativePlugin { * @param cb */ @Cordova({ sync: true }) - removeCookies(url: string, cb: () => void): void {} + removeCookies(url: string, cb: () => void): void { } /** * Disable following redirects automatically * @param disable {boolean} Set to true to disable following redirects automatically */ @Cordova({ sync: true }) - disableRedirect(disable: boolean): void {} + disableRedirect(disable: boolean): void { } /** * Set request timeout * @param timeout {number} The timeout in seconds. Default 60 */ @Cordova({ sync: true }) - setRequestTimeout(timeout: number): void {} + setRequestTimeout(timeout: number): void { } /** * Enable or disable SSL Pinning. This defaults to false. @@ -141,9 +137,7 @@ export class HTTP extends IonicNativePlugin { * @returns {Promise} returns a promise that will resolve on success, and reject on failure */ @Cordova() - enableSSLPinning(enable: boolean): Promise { - return; - } + enableSSLPinning(enable: boolean): Promise { return; } /** * Accept all SSL certificates. Or disabled accepting all certificates. Defaults to false. @@ -151,9 +145,7 @@ export class HTTP extends IonicNativePlugin { * @returns {Promise} returns a promise that will resolve on success, and reject on failure */ @Cordova() - acceptAllCerts(accept: boolean): Promise { - return; - } + acceptAllCerts(accept: boolean): Promise { return; } /** * Make a POST request @@ -163,9 +155,7 @@ export class HTTP extends IonicNativePlugin { * @returns {Promise} returns a promise that resolve on success, and reject on failure */ @Cordova() - post(url: string, body: any, headers: any): Promise { - return; - } + post(url: string, body: any, headers: any): Promise { return; } /** * Make a GET request @@ -175,9 +165,7 @@ export class HTTP extends IonicNativePlugin { * @returns {Promise} returns a promise that resolve on success, and reject on failure */ @Cordova() - get(url: string, parameters: any, headers: any): Promise { - return; - } + get(url: string, parameters: any, headers: any): Promise { return; } /** * Make a PUT request @@ -187,9 +175,7 @@ export class HTTP extends IonicNativePlugin { * @returns {Promise} returns a promise that resolve on success, and reject on failure */ @Cordova() - put(url: string, body: any, headers: any): Promise { - return; - } + put(url: string, body: any, headers: any): Promise { return; } /** * Make a PATCH request @@ -199,9 +185,7 @@ export class HTTP extends IonicNativePlugin { * @returns {Promise} returns a promise that resolve on success, and reject on failure */ @Cordova() - patch(url: string, body: any, headers: any): Promise { - return; - } + patch(url: string, body: any, headers: any): Promise { return; } /** * Make a DELETE request @@ -211,9 +195,7 @@ export class HTTP extends IonicNativePlugin { * @returns {Promise} returns a promise that resolve on success, and reject on failure */ @Cordova() - delete(url: string, parameters: any, headers: any): Promise { - return; - } + delete(url: string, parameters: any, headers: any): Promise { return; } /** * Make a HEAD request @@ -223,9 +205,7 @@ export class HTTP extends IonicNativePlugin { * @returns {Promise} returns a promise that resolve on success, and reject on failure */ @Cordova() - head(url: string, parameters: any, headers: any): Promise { - return; - } + head(url: string, parameters: any, headers: any): Promise { return; } /** * @@ -237,15 +217,7 @@ export class HTTP extends IonicNativePlugin { * @returns {Promise} returns a promise that resolve on success, and reject on failure */ @Cordova() - uploadFile( - url: string, - body: any, - headers: any, - filePath: string, - name: string - ): Promise { - return; - } + uploadFile(url: string, body: any, headers: any, filePath: string, name: string): Promise { return; } /** * @@ -256,12 +228,5 @@ export class HTTP extends IonicNativePlugin { * @returns {Promise} returns a promise that resolve on success, and reject on failure */ @Cordova() - downloadFile( - url: string, - body: any, - headers: any, - filePath: string - ): Promise { - return; - } + downloadFile(url: string, body: any, headers: any, filePath: string): Promise { return; } } diff --git a/src/@ionic-native/plugins/httpd/index.ts b/src/@ionic-native/plugins/httpd/index.ts index 875ae5c54..d529b0dbc 100644 --- a/src/@ionic-native/plugins/httpd/index.ts +++ b/src/@ionic-native/plugins/httpd/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export interface HttpdOptions { @@ -56,6 +56,7 @@ export interface HttpdOptions { }) @Injectable() export class Httpd extends IonicNativePlugin { + /** * Starts a web server. * @param options {HttpdOptions} @@ -65,25 +66,20 @@ export class Httpd extends IonicNativePlugin { observable: true, clearFunction: 'stopServer' }) - startServer(options?: HttpdOptions): Observable { - return; - } + startServer(options?: HttpdOptions): Observable { return; } /** * Gets the URL of the running server * @returns {Promise} Returns a promise that resolves with the URL of the web server. */ @Cordova() - getUrl(): Promise { - return; - } + getUrl(): Promise { return; } /** * Get the local path of the running webserver * @returns {Promise} Returns a promise that resolves with the local path of the web server. - */ + */ @Cordova() - getLocalPath(): Promise { - return; - } + getLocalPath(): Promise { return; } + } diff --git a/src/@ionic-native/plugins/hyper-track/index.ts b/src/@ionic-native/plugins/hyper-track/index.ts index 55d287525..3f8c70619 100644 --- a/src/@ionic-native/plugins/hyper-track/index.ts +++ b/src/@ionic-native/plugins/hyper-track/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; /** * @beta @@ -56,8 +56,8 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; * this.hyperTrack.stopTracking().then(success => { * // Handle success (String). Should be "OK". * }, error => {}); - * - * }, error => {});* + * + * }, error => {});* * ``` */ @Plugin({ @@ -75,9 +75,7 @@ export class HyperTrack extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with the result text (which is the same as the given text) if successful, or it gets rejected if an error ocurred. */ @Cordova() - helloWorld(text: String): Promise { - return; - } + helloWorld(text: String): Promise { return; } /** * Create a new user to identify the current device or get a user from a lookup id. @@ -88,14 +86,7 @@ export class HyperTrack extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with a string representation of the User's JSON, or it gets rejected if an error ocurred. */ @Cordova() - getOrCreateUser( - name: String, - phone: String, - photo: String, - lookupId: String - ): Promise { - return; - } + getOrCreateUser(name: String, phone: String, photo: String, lookupId: String): Promise { return; } /** * Set UserId for the SDK created using HyperTrack APIs. This is useful if you already have a user previously created. @@ -103,18 +94,14 @@ export class HyperTrack extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with an "OK" string if successful, or it gets rejected if an error ocurred. An "OK" response doesn't necessarily mean that the userId was found. It just means that it was set correctly. */ @Cordova() - setUserId(userId: String): Promise { - return; - } + setUserId(userId: String): Promise { return; } /** * Enable the SDK and start tracking. This will fail if there is no user set. * @returns {Promise} Returns a Promise that resolves with the userId (String) of the User being tracked if successful, or it gets rejected if an error ocurred. One example of an error is not setting a User with getOrCreateUser() or setUserId() before calling this function. */ @Cordova() - startTracking(): Promise { - return; - } + startTracking(): Promise { return; } /** * Create and assign an action to the current user using specified parameters @@ -126,15 +113,7 @@ export class HyperTrack extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with a string representation of the Action's JSON, or it gets rejected if an error ocurred. */ @Cordova() - createAndAssignAction( - type: String, - lookupId: String, - expectedPlaceAddress: String, - expectedPlaceLatitude: Number, - expectedPlaceLongitude: Number - ): Promise { - return; - } + createAndAssignAction(type: String, lookupId: String, expectedPlaceAddress: String, expectedPlaceLatitude: Number, expectedPlaceLongitude: Number): Promise { return; } /** * Complete an action from the SDK by its ID @@ -142,9 +121,7 @@ export class HyperTrack extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with an "OK" string if successful, or it gets rejected if an error ocurred. */ @Cordova() - completeAction(actionId: String): Promise { - return; - } + completeAction(actionId: String): Promise { return; } /** * Complete an action from the SDK using Action's lookupId as parameter @@ -152,9 +129,7 @@ export class HyperTrack extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with an "OK" string if successful, or it gets rejected if an error ocurred. */ @Cordova() - completeActionWithLookupId(lookupId: String): Promise { - return; - } + completeActionWithLookupId(lookupId: String): Promise { return; } /** * Disable the SDK and stop tracking. @@ -162,18 +137,14 @@ export class HyperTrack extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with the an "OK" string if successful, or it gets rejected if an error ocurred. One example of an error is not setting a User with getOrCreateUser() or setUserId() before calling this function. */ @Cordova() - stopTracking(): Promise { - return; - } + stopTracking(): Promise { return; } /** * Get user's current location from the SDK * @returns {Promise} Returns a Promise that resolves with a string representation of the Location's JSON, or it gets rejected if an error ocurred. */ @Cordova() - getCurrentLocation(): Promise { - return; - } + getCurrentLocation(): Promise { return; } /** * Check if Location permission has been granted to the app (for Android). @@ -181,9 +152,7 @@ export class HyperTrack extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with the a string that can be "true" or "false", depending if location permission was granted, or it gets rejected if an error ocurred. */ @Cordova() - checkLocationPermission(): Promise { - return; - } + checkLocationPermission(): Promise { return; } /** * Request user to grant Location access to the app (for Anrdoid). @@ -191,9 +160,7 @@ export class HyperTrack extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with the a string that can be "true" or "false", depending if Location access was given to the app, or it gets rejected if an error ocurred. */ @Cordova() - requestPermissions(): Promise { - return; - } + requestPermissions(): Promise { return; } /** * Check if Location services are enabled on the device (for Android). @@ -201,9 +168,7 @@ export class HyperTrack extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with the a string that can be "true" or "false", depending if location services are enabled, or it gets rejected if an error ocurred. */ @Cordova() - checkLocationServices(): Promise { - return; - } + checkLocationServices(): Promise { return; } /** * Request user to enable Location services on the device. @@ -211,7 +176,5 @@ export class HyperTrack extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves with the a string that can be "true" or "false", depending if Location services were enabled, or it gets rejected if an error ocurred. */ @Cordova() - requestLocationServices(): Promise { - return; - } + requestLocationServices(): Promise { return; } } diff --git a/src/@ionic-native/plugins/ibeacon/index.ts b/src/@ionic-native/plugins/ibeacon/index.ts index 6a3f4f89f..8b77afed0 100644 --- a/src/@ionic-native/plugins/ibeacon/index.ts +++ b/src/@ionic-native/plugins/ibeacon/index.ts @@ -1,10 +1,5 @@ import { Injectable } from '@angular/core'; -import { - Cordova, - CordovaCheck, - IonicNativePlugin, - Plugin -} from '@ionic-native/core'; +import { Cordova, Plugin, CordovaCheck, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; declare const cordova: any; @@ -34,11 +29,7 @@ export interface Beacon { * ProximityFar * ProximityUnknown */ - proximity: - | 'ProximityImmediate' - | 'ProximityNear' - | 'ProximityFar' - | 'ProximityUnknown'; + proximity: 'ProximityImmediate' | 'ProximityNear' | 'ProximityFar' | 'ProximityUnknown'; /** * Transmission Power of the beacon. A constant emitted by the beacon which indicates what's the expected RSSI at a distance of 1 meter to the beacon. @@ -55,6 +46,7 @@ export interface Beacon { * The accuracy of the ranging. */ accuracy: number; + } export interface BeaconRegion { @@ -112,6 +104,7 @@ export interface CircularRegion { export type Region = BeaconRegion | CircularRegion; export interface IBeaconPluginResult { + /** * The name of the delegate function that produced the PluginResult object. */ @@ -294,6 +287,7 @@ export interface IBeaconDelegate { }) @Injectable() export class IBeacon extends IonicNativePlugin { + /** * Instances of this class are delegates between the {@link LocationManager} and * the code that consumes the messages generated on in the native layer. @@ -304,79 +298,85 @@ export class IBeacon extends IonicNativePlugin { Delegate(): IBeaconDelegate { let delegate = new cordova.plugins.locationManager.Delegate(); - delegate.didChangeAuthorizationStatus = ( - pluginResult?: IBeaconPluginResult - ) => { - return new Observable((observer: any) => { - const cb = (data: IBeaconPluginResult) => observer.next(data); - return (delegate.didChangeAuthorizationStatus = cb); - }); + delegate.didChangeAuthorizationStatus = (pluginResult?: IBeaconPluginResult) => { + return new Observable( + (observer: any) => { + let cb = (data: IBeaconPluginResult) => observer.next(data); + return delegate.didChangeAuthorizationStatus = cb; + } + ); }; - delegate.didDetermineStateForRegion = ( - pluginResult?: IBeaconPluginResult - ) => { - return new Observable((observer: any) => { - const cb = (data: IBeaconPluginResult) => observer.next(data); - return (delegate.didDetermineStateForRegion = cb); - }); + delegate.didDetermineStateForRegion = (pluginResult?: IBeaconPluginResult) => { + return new Observable( + (observer: any) => { + let cb = (data: IBeaconPluginResult) => observer.next(data); + return delegate.didDetermineStateForRegion = cb; + } + ); }; delegate.didEnterRegion = (pluginResult?: IBeaconPluginResult) => { - return new Observable((observer: any) => { - const cb = (data: IBeaconPluginResult) => observer.next(data); - return (delegate.didEnterRegion = cb); - }); + return new Observable( + (observer: any) => { + let cb = (data: IBeaconPluginResult) => observer.next(data); + return delegate.didEnterRegion = cb; + } + ); }; delegate.didExitRegion = (pluginResult?: IBeaconPluginResult) => { - return new Observable((observer: any) => { - const cb = (data: IBeaconPluginResult) => observer.next(data); - return (delegate.didExitRegion = cb); - }); + return new Observable( + (observer: any) => { + let cb = (data: IBeaconPluginResult) => observer.next(data); + return delegate.didExitRegion = cb; + } + ); }; delegate.didRangeBeaconsInRegion = (pluginResult?: IBeaconPluginResult) => { - return new Observable((observer: any) => { - const cb = (data: IBeaconPluginResult) => observer.next(data); - return (delegate.didRangeBeaconsInRegion = cb); - }); + return new Observable( + (observer: any) => { + let cb = (data: IBeaconPluginResult) => observer.next(data); + return delegate.didRangeBeaconsInRegion = cb; + } + ); }; - delegate.didStartMonitoringForRegion = ( - pluginResult?: IBeaconPluginResult - ) => { - return new Observable((observer: any) => { - const cb = (data: IBeaconPluginResult) => observer.next(data); - return (delegate.didStartMonitoringForRegion = cb); - }); + delegate.didStartMonitoringForRegion = (pluginResult?: IBeaconPluginResult) => { + return new Observable( + (observer: any) => { + let cb = (data: IBeaconPluginResult) => observer.next(data); + return delegate.didStartMonitoringForRegion = cb; + } + ); }; - delegate.monitoringDidFailForRegionWithError = ( - pluginResult?: IBeaconPluginResult - ) => { - return new Observable((observer: any) => { - const cb = (data: IBeaconPluginResult) => observer.next(data); - return (delegate.monitoringDidFailForRegionWithError = cb); - }); + delegate.monitoringDidFailForRegionWithError = (pluginResult?: IBeaconPluginResult) => { + return new Observable( + (observer: any) => { + let cb = (data: IBeaconPluginResult) => observer.next(data); + return delegate.monitoringDidFailForRegionWithError = cb; + } + ); }; - delegate.peripheralManagerDidStartAdvertising = ( - pluginResult?: IBeaconPluginResult - ) => { - return new Observable((observer: any) => { - const cb = (data: IBeaconPluginResult) => observer.next(data); - return (delegate.peripheralManagerDidStartAdvertising = cb); - }); + delegate.peripheralManagerDidStartAdvertising = (pluginResult?: IBeaconPluginResult) => { + return new Observable( + (observer: any) => { + let cb = (data: IBeaconPluginResult) => observer.next(data); + return delegate.peripheralManagerDidStartAdvertising = cb; + } + ); }; - delegate.peripheralManagerDidUpdateState = ( - pluginResult?: IBeaconPluginResult - ) => { - return new Observable((observer: any) => { - const cb = (data: IBeaconPluginResult) => observer.next(data); - return (delegate.peripheralManagerDidUpdateState = cb); - }); + delegate.peripheralManagerDidUpdateState = (pluginResult?: IBeaconPluginResult) => { + return new Observable( + (observer: any) => { + let cb = (data: IBeaconPluginResult) => observer.next(data); + return delegate.peripheralManagerDidUpdateState = cb; + } + ); }; cordova.plugins.locationManager.setDelegate(delegate); @@ -396,29 +396,15 @@ export class IBeacon extends IonicNativePlugin { * @returns {BeaconRegion} Returns the BeaconRegion that was created */ @CordovaCheck({ sync: true }) - BeaconRegion( - identifer: string, - uuid: string, - major?: number, - minor?: number, - notifyEntryStateOnDisplay?: boolean - ): BeaconRegion { - return new cordova.plugins.locationManager.BeaconRegion( - identifer, - uuid, - major, - minor, - notifyEntryStateOnDisplay - ); + BeaconRegion(identifer: string, uuid: string, major?: number, minor?: number, notifyEntryStateOnDisplay?: boolean): BeaconRegion { + return new cordova.plugins.locationManager.BeaconRegion(identifer, uuid, major, minor, notifyEntryStateOnDisplay); } /** * @returns {IBeaconDelegate} Returns the IBeaconDelegate */ @Cordova() - getDelegate(): IBeaconDelegate { - return; - } + getDelegate(): IBeaconDelegate { return; } /** * @param {IBeaconDelegate} delegate An instance of a delegate to register with the native layer. @@ -426,9 +412,7 @@ export class IBeacon extends IonicNativePlugin { * @returns {IBeaconDelegate} Returns the IBeaconDelegate */ @Cordova() - setDelegate(delegate: IBeaconDelegate): IBeaconDelegate { - return; - } + setDelegate(delegate: IBeaconDelegate): IBeaconDelegate { return; } /** * Signals the native layer that the client side is ready to consume messages. @@ -451,9 +435,7 @@ export class IBeacon extends IonicNativePlugin { * native layer acknowledged the request and started to send events. */ @Cordova({ otherPromise: true }) - onDomDelegateReady(): Promise { - return; - } + onDomDelegateReady(): Promise { return; } /** * Determines if bluetooth is switched on, according to the native layer. @@ -461,9 +443,7 @@ export class IBeacon extends IonicNativePlugin { * indicating whether bluetooth is active. */ @Cordova({ otherPromise: true }) - isBluetoothEnabled(): Promise { - return; - } + isBluetoothEnabled(): Promise { return; } /** * Enables Bluetooth using the native Layer. (ANDROID ONLY) @@ -472,9 +452,7 @@ export class IBeacon extends IonicNativePlugin { * could be enabled. If not, the promise will be rejected with an error. */ @Cordova({ otherPromise: true }) - enableBluetooth(): Promise { - return; - } + enableBluetooth(): Promise { return; } /** * Disables Bluetooth using the native Layer. (ANDROID ONLY) @@ -483,9 +461,7 @@ export class IBeacon extends IonicNativePlugin { * could be enabled. If not, the promise will be rejected with an error. */ @Cordova({ otherPromise: true }) - disableBluetooth(): Promise { - return; - } + disableBluetooth(): Promise { return; } /** * Start monitoring the specified region. @@ -505,9 +481,7 @@ export class IBeacon extends IonicNativePlugin { * native layer acknowledged the dispatch of the monitoring request. */ @Cordova({ otherPromise: true }) - startMonitoringForRegion(region: BeaconRegion): Promise { - return; - } + startMonitoringForRegion(region: BeaconRegion): Promise { return; } /** * Stop monitoring the specified region. It is valid to call @@ -524,9 +498,7 @@ export class IBeacon extends IonicNativePlugin { * native layer acknowledged the dispatch of the request to stop monitoring. */ @Cordova({ otherPromise: true }) - stopMonitoringForRegion(region: BeaconRegion): Promise { - return; - } + stopMonitoringForRegion(region: BeaconRegion): Promise { return; } /** * Request state the for specified region. When result is ready @@ -542,9 +514,8 @@ export class IBeacon extends IonicNativePlugin { * native layer acknowledged the dispatch of the request to stop monitoring. */ @Cordova({ otherPromise: true }) - requestStateForRegion(region: Region): Promise { - return; - } + requestStateForRegion(region: Region): Promise { return; } + /** * Start ranging the specified beacon region. @@ -561,9 +532,7 @@ export class IBeacon extends IonicNativePlugin { * native layer acknowledged the dispatch of the monitoring request. */ @Cordova({ otherPromise: true }) - startRangingBeaconsInRegion(region: BeaconRegion): Promise { - return; - } + startRangingBeaconsInRegion(region: BeaconRegion): Promise { return; } /** * Stop ranging the specified region. It is valid to call @@ -580,9 +549,7 @@ export class IBeacon extends IonicNativePlugin { * native layer acknowledged the dispatch of the request to stop monitoring. */ @Cordova({ otherPromise: true }) - stopRangingBeaconsInRegion(region: BeaconRegion): Promise { - return; - } + stopRangingBeaconsInRegion(region: BeaconRegion): Promise { return; } /** * Queries the native layer to determine the current authorization in effect. @@ -591,9 +558,7 @@ export class IBeacon extends IonicNativePlugin { * requested authorization status. */ @Cordova({ otherPromise: true }) - getAuthorizationStatus(): Promise { - return; - } + getAuthorizationStatus(): Promise { return; } /** * For iOS 8 and above only. The permission model has changed by Apple in iOS 8, making it necessary for apps to @@ -605,9 +570,8 @@ export class IBeacon extends IonicNativePlugin { * @returns {Promise} Returns a promise that is resolved when the request dialog is shown. */ @Cordova({ otherPromise: true }) - requestWhenInUseAuthorization(): Promise { - return; - } + requestWhenInUseAuthorization(): Promise { return; } + /** * See the documentation of {@code requestWhenInUseAuthorization} for further details. @@ -616,9 +580,7 @@ export class IBeacon extends IonicNativePlugin { * shows the request dialog. */ @Cordova({ otherPromise: true }) - requestAlwaysAuthorization(): Promise { - return; - } + requestAlwaysAuthorization(): Promise { return; } /** * @@ -626,9 +588,7 @@ export class IBeacon extends IonicNativePlugin { * of {Region} instances that are being monitored by the native layer. */ @Cordova({ otherPromise: true }) - getMonitoredRegions(): Promise { - return; - } + getMonitoredRegions(): Promise { return; } /** * @@ -636,9 +596,7 @@ export class IBeacon extends IonicNativePlugin { * of {Region} instances that are being ranged by the native layer. */ @Cordova({ otherPromise: true }) - getRangedRegions(): Promise { - return; - } + getRangedRegions(): Promise { return; } /** * Determines if ranging is available or not, according to the native layer. @@ -646,9 +604,7 @@ export class IBeacon extends IonicNativePlugin { * indicating whether ranging is available or not. */ @Cordova({ otherPromise: true }) - isRangingAvailable(): Promise { - return; - } + isRangingAvailable(): Promise { return; } /** * Determines if region type is supported or not, according to the native layer. @@ -660,9 +616,7 @@ export class IBeacon extends IonicNativePlugin { * indicating whether the region type is supported or not. */ @Cordova({ otherPromise: true }) - isMonitoringAvailableForClass(region: Region): Promise { - return; - } + isMonitoringAvailableForClass(region: Region): Promise { return; } /** * Start advertising the specified region. @@ -682,9 +636,7 @@ export class IBeacon extends IonicNativePlugin { * native layer acknowledged the dispatch of the advertising request. */ @Cordova({ otherPromise: true }) - startAdvertising(region: Region, measuredPower?: number): Promise { - return; - } + startAdvertising(region: Region, measuredPower?: number): Promise { return; } /** * Stop advertising as a beacon. @@ -695,9 +647,7 @@ export class IBeacon extends IonicNativePlugin { * native layer acknowledged the dispatch of the request to stop advertising. */ @Cordova({ otherPromise: true }) - stopAdvertising(region: Region): Promise { - return; - } + stopAdvertising(region: Region): Promise { return; } /** * Determines if advertising is available or not, according to the native layer. @@ -705,9 +655,7 @@ export class IBeacon extends IonicNativePlugin { * indicating whether advertising is available or not. */ @Cordova({ otherPromise: true }) - isAdvertisingAvailable(): Promise { - return; - } + isAdvertisingAvailable(): Promise { return; } /** * Determines if advertising is currently active, according to the native layer. @@ -715,9 +663,7 @@ export class IBeacon extends IonicNativePlugin { * indicating whether advertising is active. */ @Cordova({ otherPromise: true }) - isAdvertising(): Promise { - return; - } + isAdvertising(): Promise { return; } /** * Disables debug logging in the native layer. Use this method if you want @@ -727,9 +673,7 @@ export class IBeacon extends IonicNativePlugin { * native layer has set the logging level accordingly. */ @Cordova({ otherPromise: true }) - disableDebugLogs(): Promise { - return; - } + disableDebugLogs(): Promise { return; } /** * Enables the posting of debug notifications in the native layer. Use this method if you want @@ -740,9 +684,7 @@ export class IBeacon extends IonicNativePlugin { * native layer has set the flag to enabled. */ @Cordova({ otherPromise: true }) - enableDebugNotifications(): Promise { - return; - } + enableDebugNotifications(): Promise { return; } /** * Disables the posting of debug notifications in the native layer. Use this method if you want @@ -752,9 +694,7 @@ export class IBeacon extends IonicNativePlugin { * native layer has set the flag to disabled. */ @Cordova({ otherPromise: true }) - disableDebugNotifications(): Promise { - return; - } + disableDebugNotifications(): Promise { return; } /** * Enables debug logging in the native layer. Use this method if you want @@ -764,9 +704,7 @@ export class IBeacon extends IonicNativePlugin { * native layer has set the logging level accordingly. */ @Cordova({ otherPromise: true }) - enableDebugLogs(): Promise { - return; - } + enableDebugLogs(): Promise { return; } /** * Appends the provided [message] to the device logs. @@ -779,7 +717,6 @@ export class IBeacon extends IonicNativePlugin { * is expected to be equivalent to the one provided in the original call. */ @Cordova({ otherPromise: true }) - appendToDeviceLog(message: string): Promise { - return; - } + appendToDeviceLog(message: string): Promise { return; } + } diff --git a/src/@ionic-native/plugins/image-picker/index.ts b/src/@ionic-native/plugins/image-picker/index.ts index ce56c3eed..02f265d23 100644 --- a/src/@ionic-native/plugins/image-picker/index.ts +++ b/src/@ionic-native/plugins/image-picker/index.ts @@ -1,5 +1,6 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; + export interface ImagePickerOptions { /** @@ -59,8 +60,7 @@ export interface ImagePickerOptions { plugin: 'cordova-plugin-telerik-imagepicker', pluginRef: 'window.imagePicker', repo: 'https://github.com/Telerik-Verified-Plugins/ImagePicker', - install: - 'ionic cordova plugin add cordova-plugin-telerik-imagepicker --variable PHOTO_LIBRARY_USAGE_DESCRIPTION="your usage message"', + install: 'ionic cordova plugin add cordova-plugin-telerik-imagepicker --variable PHOTO_LIBRARY_USAGE_DESCRIPTION="your usage message"', installVariables: ['PHOTO_LIBRARY_USAGE_DESCRIPTION'], platforms: ['Android', 'iOS'] }) @@ -75,9 +75,7 @@ export class ImagePicker extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - getPictures(options: ImagePickerOptions): Promise { - return; - } + getPictures(options: ImagePickerOptions): Promise { return; } /** * Check if we have permission to read images @@ -86,9 +84,7 @@ export class ImagePicker extends IonicNativePlugin { @Cordova({ platforms: ['Android'] }) - hasReadPermission(): Promise { - return; - } + hasReadPermission(): Promise { return; } /** * Request permission to read images @@ -97,7 +93,6 @@ export class ImagePicker extends IonicNativePlugin { @Cordova({ platforms: ['Android'] }) - requestReadPermission(): Promise { - return; - } + requestReadPermission(): Promise { return; } + } diff --git a/src/@ionic-native/plugins/image-resizer/index.ts b/src/@ionic-native/plugins/image-resizer/index.ts index 4231b73ae..2928e119c 100644 --- a/src/@ionic-native/plugins/image-resizer/index.ts +++ b/src/@ionic-native/plugins/image-resizer/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; export interface ImageResizerOptions { /** @@ -80,7 +80,5 @@ export class ImageResizer extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - resize(options: ImageResizerOptions): Promise { - return; - } + resize(options: ImageResizerOptions): Promise { return; } } diff --git a/src/@ionic-native/plugins/in-app-browser/index.ts b/src/@ionic-native/plugins/in-app-browser/index.ts index 33d7eafed..d4e0a1bfc 100644 --- a/src/@ionic-native/plugins/in-app-browser/index.ts +++ b/src/@ionic-native/plugins/in-app-browser/index.ts @@ -1,22 +1,15 @@ import { Injectable } from '@angular/core'; -import { - CordovaInstance, - InstanceCheck, - IonicNativePlugin, - Plugin -} from '@ionic-native/core'; +import { Plugin, CordovaInstance, InstanceCheck, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; import { Observer } from 'rxjs/Observer'; -declare const cordova: Cordova & { InAppBrowser: any }; +declare const cordova: Cordova & { InAppBrowser: any; }; export interface InAppBrowserOptions { /** Set to yes or no to turn the InAppBrowser's location bar on or off. */ location?: 'yes' | 'no'; - /** - * Set to yes to create the browser and load the page, but not show it. The loadstop event fires when loading is complete. - * Omit or set to no (default) to have the browser open and load normally. - **/ + /** Set to yes to create the browser and load the page, but not show it. The loadstop event fires when loading is complete. + * Omit or set to no (default) to have the browser open and load normally. */ hidden?: 'yes' | 'no'; /** Set to yes to have the browser's cookie cache cleared before the new window is opened. */ clearcache?: 'yes'; @@ -24,10 +17,8 @@ export interface InAppBrowserOptions { clearsessioncache?: 'yes'; /** (Android Only) set to yes to show Android browser's zoom controls, set to no to hide them. Default value is yes. */ zoom?: 'yes' | 'no'; - /** - * Set to yes to use the hardware back button to navigate backwards through the InAppBrowser's history. - * If there is no previous page, the InAppBrowser will close. The default value is yes, so you must set it to no if you want the back button to simply close the InAppBrowser. - **/ + /** Set to yes to use the hardware back button to navigate backwards through the InAppBrowser's history. + * If there is no previous page, the InAppBrowser will close. The default value is yes, so you must set it to no if you want the back button to simply close the InAppBrowser. */ hardwareback?: 'yes' | 'no'; /** Set to yes to prevent HTML5 audio or video from autoplaying (defaults to no). */ mediaPlaybackRequiresUserAction?: 'yes' | 'no'; @@ -54,10 +45,8 @@ export interface InAppBrowserOptions { transitionstyle?: 'fliphorizontal' | 'crossdissolve' | 'coververtical'; /** (iOS Only) Set to top or bottom (default is bottom). Causes the toolbar to be at the top or bottom of the window. */ toolbarposition?: 'top' | 'bottom'; - /** - * (Windows only) Set to yes to create the browser control without a border around it. - * Please note that if location=no is also specified, there will be no control presented to user to close IAB window. - **/ + /** (Windows only) Set to yes to create the browser control without a border around it. + * Please note that if location=no is also specified, there will be no control presented to user to close IAB window. */ fullscreen?: 'yes'; /** @@ -80,6 +69,7 @@ export interface InAppBrowserEvent extends Event { * @hidden */ export class InAppBrowserObject { + private _objectInstance: any; /** @@ -93,24 +83,20 @@ export class InAppBrowserObject { * The options string must not contain any blank space, and each feature's * name/value pairs must be separated by a comma. Feature names are case insensitive. */ - constructor( - url: string, - target?: string, - options?: string | InAppBrowserOptions - ) { + constructor(url: string, target?: string, options?: string | InAppBrowserOptions) { try { + if (options && typeof options !== 'string') { - options = Object.keys(options) - .map((key: string) => `${key}=${(options)[key]}`) - .join(','); + options = Object.keys(options).map((key: string) => `${key}=${(options)[key]}`).join(','); } this._objectInstance = cordova.InAppBrowser.open(url, target, options); + } catch (e) { + window.open(url, target); - console.warn( - 'Native: InAppBrowser is not installed or you are running on a browser. Falling back to window.open.' - ); + console.warn('Native: InAppBrowser is not installed or you are running on a browser. Falling back to window.open.'); + } } @@ -119,20 +105,20 @@ export class InAppBrowserObject { * if the InAppBrowser was already visible. */ @CordovaInstance({ sync: true }) - show(): void {} + show(): void { } /** * Closes the InAppBrowser window. */ @CordovaInstance({ sync: true }) - close(): void {} + close(): void { } /** * Hides an InAppBrowser window that is currently shown. Calling this has no effect * if the InAppBrowser was already hidden. */ @CordovaInstance({ sync: true }) - hide(): void {} + hide(): void { } /** * Injects JavaScript code into the InAppBrowser window. @@ -140,9 +126,7 @@ export class InAppBrowserObject { * @returns {Promise} */ @CordovaInstance() - executeScript(script: { file?: string; code?: string }): Promise { - return; - } + executeScript(script: { file?: string, code?: string }): Promise { return; } /** * Injects CSS into the InAppBrowser window. @@ -150,9 +134,7 @@ export class InAppBrowserObject { * @returns {Promise} */ @CordovaInstance() - insertCSS(css: { file?: string; code?: string }): Promise { - return; - } + insertCSS(css: { file?: string, code?: string }): Promise { return; } /** * A method that allows you to listen to events happening in the browser. @@ -161,19 +143,10 @@ export class InAppBrowserObject { */ @InstanceCheck() on(event: string): Observable { - return new Observable( - (observer: Observer) => { - this._objectInstance.addEventListener( - event, - observer.next.bind(observer) - ); - return () => - this._objectInstance.removeEventListener( - event, - observer.next.bind(observer) - ); - } - ); + return new Observable((observer: Observer) => { + this._objectInstance.addEventListener(event, observer.next.bind(observer)); + return () => this._objectInstance.removeEventListener(event, observer.next.bind(observer)); + }); } } @@ -212,6 +185,7 @@ export class InAppBrowserObject { }) @Injectable() export class InAppBrowser extends IonicNativePlugin { + /** * Opens a URL in a new InAppBrowser instance, the current browser instance, or the system browser. * @param url {string} The URL to load. @@ -221,11 +195,8 @@ export class InAppBrowser extends IonicNativePlugin { * name/value pairs must be separated by a comma. Feature names are case insensitive. * @returns {InAppBrowserObject} */ - create( - url: string, - target?: string, - options?: string | InAppBrowserOptions - ): InAppBrowserObject { + create(url: string, target?: string, options?: string | InAppBrowserOptions): InAppBrowserObject { return new InAppBrowserObject(url, target, options); } + } diff --git a/src/@ionic-native/plugins/in-app-purchase-2/index.ts b/src/@ionic-native/plugins/in-app-purchase-2/index.ts index f0be289cc..46436d642 100644 --- a/src/@ionic-native/plugins/in-app-purchase-2/index.ts +++ b/src/@ionic-native/plugins/in-app-purchase-2/index.ts @@ -1,10 +1,5 @@ +import { Plugin, IonicNativePlugin, Cordova, CordovaProperty } from '@ionic-native/core'; import { Injectable } from '@angular/core'; -import { - Cordova, - CordovaProperty, - IonicNativePlugin, - Plugin -} from '@ionic-native/core'; /** * @name In App Purchase 2 @@ -86,22 +81,21 @@ export type IAPProducts = Array & { /** * Get product by ID */ - byId: { [id: string]: IAPProduct }; + byId: { [id: string]: IAPProduct; }; /** * Get product by alias */ - byAlias: { [alias: string]: IAPProduct }; + byAlias: { [alias: string]: IAPProduct; }; /** * Remove all products (for testing only). */ reset: () => {}; }; -export type IAPQueryCallback = - | ((product: IAPProduct) => void) - | ((error: IAPError) => void); +export type IAPQueryCallback = ((product: IAPProduct) => void) | ((error: IAPError) => void); export interface IAPProduct { + id: string; alias: string; @@ -151,6 +145,7 @@ export interface IAPProduct { off(callback: Function): void; trigger(action: string, args: any): void; + } export interface IAPProductEvents { @@ -170,11 +165,7 @@ export interface IAPProductEvents { verified: (callback: IAPQueryCallback) => void; unverified: (callback: IAPQueryCallback) => void; expired: (callback: IAPQueryCallback) => void; - downloading: ( - product: IAPProduct, - progress: any, - time_remaining: any - ) => void; + downloading: (product: IAPProduct, progress: any, time_remaining: any) => void; downloaded: (callback: IAPQueryCallback) => void; } @@ -208,115 +199,163 @@ export class IAPError { pluginRef: 'store', repo: 'https://github.com/j3k0/cordova-plugin-purchase', platforms: ['iOS', 'Android', 'Windows'], - install: - 'ionic cordova plugin add cc.fovea.cordova.purchase --variable BILLING_KEY=""' + install: 'ionic cordova plugin add cc.fovea.cordova.purchase --variable BILLING_KEY=""' }) @Injectable() export class InAppPurchase2 extends IonicNativePlugin { - @CordovaProperty QUIET: number; - @CordovaProperty ERROR: number; + @CordovaProperty + QUIET: number; - @CordovaProperty WARNING: number; + @CordovaProperty + ERROR: number; - @CordovaProperty INFO: number; + @CordovaProperty + WARNING: number; - @CordovaProperty DEBUG: number; + @CordovaProperty + INFO: number; + + @CordovaProperty + DEBUG: number; /** * Debug level. Use QUIET, ERROR, WARNING, INFO or DEBUG constants */ - @CordovaProperty verbosity: number; + @CordovaProperty + verbosity: number; /** * Set to true to invoke the platform purchase sandbox. (Windows only) */ - @CordovaProperty sandbox: boolean; - - @CordovaProperty FREE_SUBSCRIPTION: string; - - @CordovaProperty PAID_SUBSCRIPTION: string; - - @CordovaProperty NON_RENEWING_SUBSCRIPTION: string; - - @CordovaProperty CONSUMABLE: string; - - @CordovaProperty NON_CONSUMABLE: string; - - @CordovaProperty ERR_SETUP: number; - - @CordovaProperty ERR_LOAD: number; - - @CordovaProperty ERR_PURCHASE: number; - - @CordovaProperty ERR_LOAD_RECEIPTS: number; - - @CordovaProperty ERR_CLIENT_INVALID: number; - - @CordovaProperty ERR_PAYMENT_CANCELLED: number; - - @CordovaProperty ERR_PAYMENT_INVALID: number; - - @CordovaProperty ERR_PAYMENT_NOT_ALLOWED: number; - - @CordovaProperty ERR_UNKNOWN: number; - - @CordovaProperty ERR_REFRESH_RECEIPTS: number; - - @CordovaProperty ERR_INVALID_PRODUCT_ID: number; - - @CordovaProperty ERR_FINISH: number; - - @CordovaProperty ERR_COMMUNICATION: number; - - @CordovaProperty ERR_SUBSCRIPTIONS_NOT_AVAILABLE: number; - - @CordovaProperty ERR_MISSING_TOKEN: number; - - @CordovaProperty ERR_VERIFICATION_FAILED: number; - - @CordovaProperty ERR_BAD_RESPONSE: number; - - @CordovaProperty ERR_REFRESH: number; - - @CordovaProperty ERR_PAYMENT_EXPIRED: number; - - @CordovaProperty ERR_DOWNLOAD: number; - - @CordovaProperty ERR_SUBSCRIPTION_UPDATE_NOT_AVAILABLE: number; - - @CordovaProperty REGISTERED: string; - - @CordovaProperty INVALID: string; - - @CordovaProperty VALID: string; - - @CordovaProperty REQUESTED: string; - - @CordovaProperty INITIATED: string; - - @CordovaProperty APPROVED: string; - - @CordovaProperty FINISHED: string; - - @CordovaProperty OWNED: string; - - @CordovaProperty DOWNLOADING: string; - - @CordovaProperty DOWNLOADED: string; - - @CordovaProperty INVALID_PAYLOAD: number; - - @CordovaProperty CONNECTION_FAILED: number; - - @CordovaProperty PURCHASE_EXPIRED: number; - - @CordovaProperty products: IAPProducts; + @CordovaProperty + sandbox: boolean; @CordovaProperty - validator: - | string - | ((product: string | IAPProduct, callback: Function) => void); + FREE_SUBSCRIPTION: string; + + @CordovaProperty + PAID_SUBSCRIPTION: string; + + @CordovaProperty + NON_RENEWING_SUBSCRIPTION: string; + + @CordovaProperty + CONSUMABLE: string; + + @CordovaProperty + NON_CONSUMABLE: string; + + + @CordovaProperty + ERR_SETUP: number; + + @CordovaProperty + ERR_LOAD: number; + + @CordovaProperty + ERR_PURCHASE: number; + + @CordovaProperty + ERR_LOAD_RECEIPTS: number; + + @CordovaProperty + ERR_CLIENT_INVALID: number; + + @CordovaProperty + ERR_PAYMENT_CANCELLED: number; + + @CordovaProperty + ERR_PAYMENT_INVALID: number; + + @CordovaProperty + ERR_PAYMENT_NOT_ALLOWED: number; + + @CordovaProperty + ERR_UNKNOWN: number; + + @CordovaProperty + ERR_REFRESH_RECEIPTS: number; + + @CordovaProperty + ERR_INVALID_PRODUCT_ID: number; + + @CordovaProperty + ERR_FINISH: number; + + @CordovaProperty + ERR_COMMUNICATION: number; + + @CordovaProperty + ERR_SUBSCRIPTIONS_NOT_AVAILABLE: number; + + @CordovaProperty + ERR_MISSING_TOKEN: number; + + @CordovaProperty + ERR_VERIFICATION_FAILED: number; + + @CordovaProperty + ERR_BAD_RESPONSE: number; + + @CordovaProperty + ERR_REFRESH: number; + + @CordovaProperty + ERR_PAYMENT_EXPIRED: number; + + @CordovaProperty + ERR_DOWNLOAD: number; + + @CordovaProperty + ERR_SUBSCRIPTION_UPDATE_NOT_AVAILABLE: number; + + + @CordovaProperty + REGISTERED: string; + + @CordovaProperty + INVALID: string; + + @CordovaProperty + VALID: string; + + @CordovaProperty + REQUESTED: string; + + @CordovaProperty + INITIATED: string; + + @CordovaProperty + APPROVED: string; + + @CordovaProperty + FINISHED: string; + + @CordovaProperty + OWNED: string; + + @CordovaProperty + DOWNLOADING: string; + + @CordovaProperty + DOWNLOADED: string; + + + @CordovaProperty + INVALID_PAYLOAD: number; + + @CordovaProperty + CONNECTION_FAILED: number; + + @CordovaProperty + PURCHASE_EXPIRED: number; + + @CordovaProperty + products: IAPProducts; + + @CordovaProperty + validator: string | ((product: string | IAPProduct, callback: Function) => void); @CordovaProperty log: { @@ -331,9 +370,7 @@ export class InAppPurchase2 extends IonicNativePlugin { * @param idOrAlias */ @Cordova({ sync: true }) - get(idOrAlias: string): IAPProduct { - return; - } + get(idOrAlias: string): IAPProduct { return; } /** * Register error handler @@ -346,7 +383,7 @@ export class InAppPurchase2 extends IonicNativePlugin { * Add or register a product * @param product {IAPProductOptions} */ - @Cordova({ sync: true }) + @Cordova({ sync: true}) register(product: IAPProductOptions): void {} /** @@ -357,13 +394,7 @@ export class InAppPurchase2 extends IonicNativePlugin { * @return {IAPProductEvents} */ @Cordova({ sync: true }) - when( - query: string | IAPProduct, - event?: string, - callback?: IAPQueryCallback - ): IAPProductEvents { - return; - } + when(query: string | IAPProduct, event?: string, callback?: IAPQueryCallback): IAPProductEvents { return; } /** * Identical to `when`, but the callback will be called only once. After being called, the callback will be unregistered. @@ -373,13 +404,7 @@ export class InAppPurchase2 extends IonicNativePlugin { * @return {IAPProductEvents} */ @Cordova({ sync: true }) - once( - query: string | IAPProduct, - event?: string, - callback?: IAPQueryCallback - ): IAPProductEvents { - return; - } + once(query: string | IAPProduct, event?: string, callback?: IAPQueryCallback): IAPProductEvents { return; } /** * Unregister a callback. Works for callbacks registered with ready, when, once and error. @@ -389,22 +414,16 @@ export class InAppPurchase2 extends IonicNativePlugin { off(callback: Function): void {} @Cordova({ sync: true }) - order( - product: string | IAPProduct, - additionalData?: any - ): { then: Function; error: Function } { - return; - } + order(product: string | IAPProduct, additionalData?: any): { then: Function; error: Function; } { return; } /** * * @return {Promise} returns a promise that resolves when the store is ready */ @Cordova() - ready(): Promise { - return; - } + ready(): Promise { return; } @Cordova({ sync: true }) refresh(): void {} + } diff --git a/src/@ionic-native/plugins/in-app-purchase/index.ts b/src/@ionic-native/plugins/in-app-purchase/index.ts index 44bb8e970..4d59e18d9 100644 --- a/src/@ionic-native/plugins/in-app-purchase/index.ts +++ b/src/@ionic-native/plugins/in-app-purchase/index.ts @@ -1,5 +1,6 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; + /** * @name In App Purchase @@ -61,6 +62,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; }) @Injectable() export class InAppPurchase extends IonicNativePlugin { + /** * Retrieves a list of full product data from Apple/Google. This method must be called before making purchases. * @param {array} productId an array of product ids. @@ -69,9 +71,7 @@ export class InAppPurchase extends IonicNativePlugin { @Cordova({ otherPromise: true }) - getProducts(productId: string[]): Promise { - return; - } + getProducts(productId: string[]): Promise { return; } /** * Buy a product that matches the productId. @@ -81,16 +81,7 @@ export class InAppPurchase extends IonicNativePlugin { @Cordova({ otherPromise: true }) - buy( - productId: string - ): Promise<{ - transactionId: string; - receipt: string; - signature: string; - productType: string; - }> { - return; - } + buy(productId: string): Promise<{ transactionId: string, receipt: string, signature: string, productType: string }> { return; } /** * Same as buy, but for subscription based products. @@ -100,16 +91,7 @@ export class InAppPurchase extends IonicNativePlugin { @Cordova({ otherPromise: true }) - subscribe( - productId: string - ): Promise<{ - transactionId: string; - receipt: string; - signature: string; - productType: string; - }> { - return; - } + subscribe(productId: string): Promise<{ transactionId: string, receipt: string, signature: string, productType: string }> { return; } /** * Call this function after purchasing a "consumable" product to mark it as consumed. On Android, you must consume products that you want to let the user purchase multiple times. If you will not consume the product after a purchase, the next time you will attempt to purchase it you will get the error message: @@ -121,13 +103,7 @@ export class InAppPurchase extends IonicNativePlugin { @Cordova({ otherPromise: true }) - consume( - productType: string, - receipt: string, - signature: string - ): Promise { - return; - } + consume(productType: string, receipt: string, signature: string): Promise { return; } /** * Restore all purchases from the store @@ -136,9 +112,7 @@ export class InAppPurchase extends IonicNativePlugin { @Cordova({ otherPromise: true }) - restorePurchases(): Promise { - return; - } + restorePurchases(): Promise { return; } /** * Get the receipt. @@ -148,7 +122,6 @@ export class InAppPurchase extends IonicNativePlugin { otherPromise: true, platforms: ['iOS'] }) - getReceipt(): Promise { - return; - } + getReceipt(): Promise { return; } + } diff --git a/src/@ionic-native/plugins/insomnia/index.ts b/src/@ionic-native/plugins/insomnia/index.ts index f31ec1392..1a541d321 100644 --- a/src/@ionic-native/plugins/insomnia/index.ts +++ b/src/@ionic-native/plugins/insomnia/index.ts @@ -1,5 +1,6 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; + /** * @name Insomnia @@ -33,32 +34,23 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-insomnia', pluginRef: 'plugins.insomnia', repo: 'https://github.com/EddyVerbruggen/Insomnia-PhoneGap-Plugin', - platforms: [ - 'Android', - 'Browser', - 'Firefox OS', - 'iOS', - 'Windows', - 'Windows Phone 8' - ] + platforms: ['Android', 'Browser', 'Firefox OS', 'iOS', 'Windows', 'Windows Phone 8'] }) @Injectable() export class Insomnia extends IonicNativePlugin { + /** * Keeps awake the application * @returns {Promise} */ @Cordova() - keepAwake(): Promise { - return; - } + keepAwake(): Promise { return; } /** * Allows the application to sleep again * @returns {Promise} */ @Cordova() - allowSleepAgain(): Promise { - return; - } + allowSleepAgain(): Promise { return; } + } diff --git a/src/@ionic-native/plugins/instagram/index.ts b/src/@ionic-native/plugins/instagram/index.ts index 309885294..fe9c5689c 100644 --- a/src/@ionic-native/plugins/instagram/index.ts +++ b/src/@ionic-native/plugins/instagram/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; /** * @name Instagram @@ -28,6 +28,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; }) @Injectable() export class Instagram extends IonicNativePlugin { + /** * Detect if the Instagram application is installed on the device. * @@ -36,9 +37,7 @@ export class Instagram extends IonicNativePlugin { @Cordova({ callbackStyle: 'node' }) - isInstalled(): Promise { - return; - } + isInstalled(): Promise { return; } /** * Share an image on Instagram @@ -51,9 +50,7 @@ export class Instagram extends IonicNativePlugin { @Cordova({ callbackStyle: 'node' }) - share(canvasIdOrDataUrl: string, caption?: string): Promise { - return; - } + share(canvasIdOrDataUrl: string, caption?: string): Promise { return; } /** * Share a library asset or video @@ -63,7 +60,6 @@ export class Instagram extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - shareAsset(assetLocalIdentifier: string): Promise { - return; - } + shareAsset(assetLocalIdentifier: string): Promise { return; } + } diff --git a/src/@ionic-native/plugins/intel-security/index.ts b/src/@ionic-native/plugins/intel-security/index.ts index 1db1a4f0f..bdd30c46b 100644 --- a/src/@ionic-native/plugins/intel-security/index.ts +++ b/src/@ionic-native/plugins/intel-security/index.ts @@ -76,6 +76,7 @@ export interface IntelSecurityDataOptions { }) @Injectable() export class IntelSecurity extends IonicNativePlugin { + /** * returns an IntelSecurityStorage object * @type {IntelSecurityStorage} @@ -87,6 +88,7 @@ export class IntelSecurity extends IonicNativePlugin { * @type {IntelSecurityData} */ data: IntelSecurityData = new IntelSecurityData(); + } /** @@ -98,15 +100,14 @@ export class IntelSecurity extends IonicNativePlugin { pluginRef: 'intel.security.secureData' }) export class IntelSecurityData { + /** - * This creates a new instance of secure data using plain-text data. - * @param options {IntelSecurityDataOptions} - * @returns {Promise} Returns a Promise that resolves with the instanceID of the created data instance, or rejects with an error. - */ + * This creates a new instance of secure data using plain-text data. + * @param options {IntelSecurityDataOptions} + * @returns {Promise} Returns a Promise that resolves with the instanceID of the created data instance, or rejects with an error. + */ @Cordova({ otherPromise: true }) - createFromData(options: IntelSecurityDataOptions): Promise { - return; - } + createFromData(options: IntelSecurityDataOptions): Promise { return; } /** * This creates a new instance of secure data (using sealed data) @@ -115,9 +116,7 @@ export class IntelSecurityData { * @returns {Promise} Returns a Promise that resolves with the instanceID of the created data instance, or rejects with an error. */ @Cordova({ otherPromise: true }) - createFromSealedData(options: { sealedData: string }): Promise { - return; - } + createFromSealedData(options: { sealedData: string }): Promise { return; } /** * This returns the plain-text data of the secure data instance. @@ -125,9 +124,7 @@ export class IntelSecurityData { * @returns {Promise} Returns a Promise that resolves to the data as plain-text, or rejects with an error. */ @Cordova({ otherPromise: true }) - getData(instanceID: Number): Promise { - return; - } + getData(instanceID: Number): Promise { return; } /** * This returns the sealed chunk of a secure data instance. @@ -135,9 +132,7 @@ export class IntelSecurityData { * @returns {Promise} Returns a Promise that resolves to the sealed data, or rejects with an error. */ @Cordova({ otherPromise: true }) - getSealedData(instanceID: any): Promise { - return; - } + getSealedData(instanceID: any): Promise { return; } /** * This returns the tag of the secure data instance. @@ -145,9 +140,7 @@ export class IntelSecurityData { * @returns {Promise} Returns a Promise that resolves to the tag, or rejects with an error. */ @Cordova({ otherPromise: true }) - getTag(instanceID: any): Promise { - return; - } + getTag(instanceID: any): Promise { return; } /** * This returns the data policy of the secure data instance. @@ -155,9 +148,7 @@ export class IntelSecurityData { * @returns {Promise} Returns a promise that resolves to the policy object, or rejects with an error. */ @Cordova({ otherPromise: true }) - getPolicy(instanceID: any): Promise { - return; - } + getPolicy(instanceID: any): Promise { return; } /** * This returns an array of the data owners unique IDs. @@ -165,9 +156,7 @@ export class IntelSecurityData { * @returns {Promise} Returns a promise that resolves to an array of owners' unique IDs, or rejects with an error. */ @Cordova({ otherPromise: true }) - getOwners(instanceID: any): Promise> { - return; - } + getOwners(instanceID: any): Promise> { return; } /** * This returns the data creator unique ID. @@ -175,9 +164,7 @@ export class IntelSecurityData { * @returns {Promise} Returns a promsie that resolves to the creator's unique ID, or rejects with an error. */ @Cordova({ otherPromise: true }) - getCreator(instanceID: any): Promise { - return; - } + getCreator(instanceID: any): Promise { return; } /** * This returns an array of the trusted web domains of the secure data instance. @@ -185,9 +172,7 @@ export class IntelSecurityData { * @returns {Promise} Returns a promise that resolves to a list of web owners, or rejects with an error. */ @Cordova({ otherPromise: true }) - getWebOwners(instanceID: any): Promise> { - return; - } + getWebOwners(instanceID: any): Promise> { return; } /** * This changes the extra key of a secure data instance. To successfully replace the extra key, the calling application must have sufficient access to the plain-text data. @@ -197,9 +182,7 @@ export class IntelSecurityData { * @returns {Promise} Returns a promise that resolves with no parameters, or rejects with an error. */ @Cordova({ otherPromise: true }) - changeExtraKey(options: any): Promise { - return; - } + changeExtraKey(options: any): Promise { return; } /** * This releases a secure data instance. @@ -207,9 +190,8 @@ export class IntelSecurityData { * @returns {Promise} Returns a promise that resovles with no parameters, or rejects with an error. */ @Cordova({ otherPromise: true }) - destroy(instanceID: any): Promise { - return; - } + destroy(instanceID: any): Promise { return; } + } /** @@ -221,6 +203,7 @@ export class IntelSecurityData { pluginRef: 'intel.security.secureStorage' }) export class IntelSecurityStorage { + /** * This deletes a secure storage resource (indicated by id). * @param options {Object} @@ -229,9 +212,10 @@ export class IntelSecurityStorage { * @returns {Promise} Returns a Promise that resolves with no parameters, or rejects with an error. */ @Cordova({ otherPromise: true }) - delete(options: { id: string; storageType?: Number }): Promise { - return; - } + delete(options: { + id: string, + storageType?: Number + }): Promise { return; } /** * This reads the data from secure storage (indicated by id) and creates a new secure data instance. @@ -243,12 +227,10 @@ export class IntelSecurityStorage { */ @Cordova({ otherPromise: true }) read(options: { - id: string; - storageType?: Number; - extraKey?: Number; - }): Promise { - return; - } + id: string, + storageType?: Number, + extraKey?: Number + }): Promise { return; } /** * This writes the data contained in a secure data instance into secure storage. @@ -260,10 +242,9 @@ export class IntelSecurityStorage { */ @Cordova({ otherPromise: true }) write(options: { - id: String; - instanceID: Number; - storageType?: Number; - }): Promise { - return; - } + id: String, + instanceID: Number, + storageType?: Number + }): Promise { return; } + } diff --git a/src/@ionic-native/plugins/intercom/index.ts b/src/@ionic-native/plugins/intercom/index.ts index ea65fc5d1..8d6c4dcc0 100644 --- a/src/@ionic-native/plugins/intercom/index.ts +++ b/src/@ionic-native/plugins/intercom/index.ts @@ -1,5 +1,5 @@ +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name Intercom @@ -27,19 +27,18 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-intercom', pluginRef: 'intercom', repo: 'https://github.com/intercom/intercom-cordova', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class Intercom extends IonicNativePlugin { + /** * Register a identified user * @param options {any} Options * @return {Promise} Returns a promise */ @Cordova() - registerIdentifiedUser(options: any): Promise { - return; - } + registerIdentifiedUser(options: any): Promise { return; } /** * Register a unidentified user @@ -47,18 +46,14 @@ export class Intercom extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - registerUnidentifiedUser(options: any): Promise { - return; - } + registerUnidentifiedUser(options: any): Promise { return; } /** * This resets the Intercom integration's cache of your user's identity and wipes the slate clean. * @return {Promise} Returns a promise */ @Cordova() - reset(): Promise { - return; - } + reset(): Promise { return; } /** * @@ -67,9 +62,7 @@ export class Intercom extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - setSecureMode(secureHash: string, secureData: any): Promise { - return; - } + setSecureMode(secureHash: string, secureData: any): Promise { return; } /** * @@ -77,9 +70,7 @@ export class Intercom extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - setUserHash(secureHash: string): Promise { - return; - } + setUserHash(secureHash: string): Promise { return; } /** * @@ -87,9 +78,7 @@ export class Intercom extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - updateUser(attributes: any): Promise { - return; - } + updateUser(attributes: any): Promise { return; } /** * @@ -98,27 +87,21 @@ export class Intercom extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - logEvent(eventName: string, metaData: any): Promise { - return; - } + logEvent(eventName: string, metaData: any): Promise { return; } /** * * @return {Promise} Returns a promise */ @Cordova() - displayMessenger(): Promise { - return; - } + displayMessenger(): Promise { return; } /** * * @return {Promise} Returns a promise */ @Cordova() - displayMessageComposer(): Promise { - return; - } + displayMessageComposer(): Promise { return; } /** * @@ -126,29 +109,21 @@ export class Intercom extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - displayMessageComposerWithInitialMessage( - initialMessage: string - ): Promise { - return; - } + displayMessageComposerWithInitialMessage(initialMessage: string): Promise { return; } /** * * @return {Promise} Returns a promise */ @Cordova() - displayConversationsList(): Promise { - return; - } + displayConversationsList(): Promise { return; } /** * * @return {Promise} Returns a promise */ @Cordova() - unreadConversationCount(): Promise { - return; - } + unreadConversationCount(): Promise { return; } /** * @@ -156,9 +131,7 @@ export class Intercom extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - setLauncherVisibility(visibility: string): Promise { - return; - } + setLauncherVisibility(visibility: string): Promise { return; } /** * @@ -166,25 +139,20 @@ export class Intercom extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - setInAppMessageVisibility(visibility: string): Promise { - return; - } + setInAppMessageVisibility(visibility: string): Promise { return; } /** * * @return {Promise} Returns a promise */ @Cordova() - hideMessenger(): Promise { - return; - } + hideMessenger(): Promise { return; } /** * * @return {Promise} Returns a promise */ @Cordova() - registerForPush(): Promise { - return; - } + registerForPush(): Promise { return; } + } diff --git a/src/@ionic-native/plugins/jins-meme/index.ts b/src/@ionic-native/plugins/jins-meme/index.ts index 8953fc24d..282e6a312 100644 --- a/src/@ionic-native/plugins/jins-meme/index.ts +++ b/src/@ionic-native/plugins/jins-meme/index.ts @@ -1,10 +1,5 @@ import { Injectable } from '@angular/core'; -import { - Cordova, - CordovaCheck, - IonicNativePlugin, - Plugin -} from '@ionic-native/core'; +import { Plugin, Cordova, CordovaCheck, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; declare const cordova: any; @@ -54,9 +49,7 @@ export class JinsMeme extends IonicNativePlugin { *@returns {Promise} */ @Cordova() - setAppClientID(appClientId: string, clientSecret: string): Promise { - return; - } + setAppClientID(appClientId: string, clientSecret: string): Promise { return; } /** * Starts scanning for JINS MEME. * @returns {Observable} @@ -66,17 +59,13 @@ export class JinsMeme extends IonicNativePlugin { clearFunction: 'stopScan', clearWithArgs: true }) - startScan(): Observable { - return; - } + startScan(): Observable { return; } /** * Stops scanning JINS MEME. * @returns {Promise} */ @Cordova() - stopScan(): Promise { - return; - } + stopScan(): Promise { return; } /** * Establishes connection to JINS MEME. * @param {string} target @@ -87,12 +76,7 @@ export class JinsMeme extends IonicNativePlugin { }) connect(target: string): Observable { return new Observable((observer: any) => { - let data = cordova.plugins.JinsMemePlugin.connect( - target, - observer.next.bind(observer), - observer.complete.bind(observer), - observer.error.bind(observer) - ); + let data = cordova.plugins.JinsMemePlugin.connect(target, observer.next.bind(observer), observer.complete.bind(observer), observer.error.bind(observer)); return () => console.log(data); }); } @@ -102,25 +86,19 @@ export class JinsMeme extends IonicNativePlugin { *@returns {Promise} */ @Cordova() - setAutoConnect(flag: boolean): Promise { - return; - } + setAutoConnect(flag: boolean): Promise { return; } /** * Returns whether a connection to JINS MEME has been established. *@returns {Promise} */ @Cordova() - isConnected(): Promise { - return; - } + isConnected(): Promise { return; } /** * Disconnects from JINS MEME. *@returns {Promise} */ @Cordova() - disconnect(): Promise { - return; - } + disconnect(): Promise { return; } /** * Starts receiving realtime data. * @returns {Observable} @@ -130,80 +108,60 @@ export class JinsMeme extends IonicNativePlugin { clearFunction: 'stopDataReport', clearWithArgs: true }) - startDataReport(): Observable { - return; - } + startDataReport(): Observable { return; } /** - * Stops receiving data. - *@returns {Promise} - */ + * Stops receiving data. + *@returns {Promise} + */ @Cordova() - stopDataReport(): Promise { - return; - } + stopDataReport(): Promise { return; } /** * Returns SDK version. * *@returns {Promise} */ @Cordova() - getSDKVersion(): Promise { - return; - } + getSDKVersion(): Promise { return; } /** * Returns JINS MEME connected with other apps. *@returns {Promise} */ @Cordova() - getConnectedByOthers(): Promise { - return; - } + getConnectedByOthers(): Promise { return; } /** * Returns calibration status *@returns {Promise} */ @Cordova() - isCalibrated(): Promise { - return; - } + isCalibrated(): Promise { return; } /** * Returns device type. *@returns {Promise} */ @Cordova() - getConnectedDeviceType(): Promise { - return; - } + getConnectedDeviceType(): Promise { return; } /** * Returns hardware version. *@returns {Promise} */ @Cordova() - getConnectedDeviceSubType(): Promise { - return; - } + getConnectedDeviceSubType(): Promise { return; } /** * Returns FW Version. *@returns {Promise} */ @Cordova() - getFWVersion(): Promise { - return; - } + getFWVersion(): Promise { return; } /** * Returns HW Version. *@returns {Promise} */ @Cordova() - getHWVersion(): Promise { - return; - } + getHWVersion(): Promise { return; } /** * Returns response about whether data was received or not. *@returns {Promise} */ @Cordova() - isDataReceiving(): Promise { - return; - } + isDataReceiving(): Promise { return; } } diff --git a/src/@ionic-native/plugins/keyboard/index.ts b/src/@ionic-native/plugins/keyboard/index.ts index 3d137eff8..f79a25e9c 100644 --- a/src/@ionic-native/plugins/keyboard/index.ts +++ b/src/@ionic-native/plugins/keyboard/index.ts @@ -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'; import { Observable } from 'rxjs/Observable'; + /** * @name Keyboard * @description @@ -28,12 +29,13 @@ import { Observable } from 'rxjs/Observable'; }) @Injectable() export class Keyboard extends IonicNativePlugin { + /** * Hide the keyboard accessory bar with the next, previous and done buttons. * @param hide {boolean} */ @Cordova({ sync: true }) - hideKeyboardAccessoryBar(hide: boolean): void {} + hideKeyboardAccessoryBar(hide: boolean): void { } /** * Force keyboard to be shown. @@ -42,7 +44,7 @@ export class Keyboard extends IonicNativePlugin { sync: true, platforms: ['Android', 'BlackBerry 10', 'Windows'] }) - show(): void {} + show(): void { } /** * Close the keyboard if open. @@ -51,7 +53,7 @@ export class Keyboard extends IonicNativePlugin { sync: true, platforms: ['iOS', 'Android', 'BlackBerry 10', 'Windows'] }) - close(): void {} + close(): void { } /** * Prevents the native UIScrollView from moving when an input is focused. @@ -61,7 +63,7 @@ export class Keyboard extends IonicNativePlugin { sync: true, platforms: ['iOS', 'Windows'] }) - disableScroll(disable: boolean): void {} + disableScroll(disable: boolean): void { } /** * Creates an observable that notifies you when the keyboard is shown. Unsubscribe to observable to cancel event watch. @@ -72,9 +74,7 @@ export class Keyboard extends IonicNativePlugin { event: 'native.keyboardshow', platforms: ['iOS', 'Android', 'BlackBerry 10', 'Windows'] }) - onKeyboardShow(): Observable { - return; - } + onKeyboardShow(): Observable { return; } /** * Creates an observable that notifies you when the keyboard is hidden. Unsubscribe to observable to cancel event watch. @@ -85,7 +85,6 @@ export class Keyboard extends IonicNativePlugin { event: 'native.keyboardhide', platforms: ['iOS', 'Android', 'BlackBerry 10', 'Windows'] }) - onKeyboardHide(): Observable { - return; - } + onKeyboardHide(): Observable { return; } + } diff --git a/src/@ionic-native/plugins/keychain-touch-id/index.ts b/src/@ionic-native/plugins/keychain-touch-id/index.ts index f31c49215..4f128469e 100644 --- a/src/@ionic-native/plugins/keychain-touch-id/index.ts +++ b/src/@ionic-native/plugins/keychain-touch-id/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; /** * @name Keychain Touch Id @@ -32,6 +32,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; }) @Injectable() export class KeychainTouchId extends IonicNativePlugin { + /** * Check if Touch ID / Fingerprint is supported by the device * @return {Promise} Returns a promise that resolves when there is hardware support @@ -49,9 +50,7 @@ export class KeychainTouchId extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves when there is a result */ @Cordova() - save(key: string, password: string): Promise { - return; - } + save(key: string, password: string): Promise { return; } /** * Opens the fingerprint dialog, for the given key, showing an additional message. Promise will resolve @@ -61,9 +60,7 @@ export class KeychainTouchId extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves when the key value is successfully retrieved or an error */ @Cordova() - verify(key: string, message: string): Promise { - return; - } + verify(key: string, message: string): Promise { return; } /** * Checks if there is a password stored within the keychain for the given key. @@ -71,9 +68,7 @@ export class KeychainTouchId extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves with success if the key is available or failure if key is not. */ @Cordova() - has(key: string): Promise { - return; - } + has(key: string): Promise { return; } /** * Deletes the password stored under given key from the keychain. @@ -81,9 +76,7 @@ export class KeychainTouchId extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves with success if the key is deleted or failure if key is not */ @Cordova() - delete(key: string): Promise { - return; - } + delete(key: string): Promise { return; } /** * Sets the language of the fingerprint dialog @@ -91,4 +84,5 @@ export class KeychainTouchId extends IonicNativePlugin { */ @Cordova() setLocale(locale: string): void {} + } diff --git a/src/@ionic-native/plugins/keychain/index.ts b/src/@ionic-native/plugins/keychain/index.ts index 63bdd30e5..20381d70e 100644 --- a/src/@ionic-native/plugins/keychain/index.ts +++ b/src/@ionic-native/plugins/keychain/index.ts @@ -1,5 +1,6 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; + /** * @name Keychain @@ -35,6 +36,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; }) @Injectable() export class Keychain extends IonicNativePlugin { + /** * Retrieves a value for a key * @@ -44,9 +46,7 @@ export class Keychain extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - get(key: string, touchIDMessage?: string): Promise { - return; - } + get(key: string, touchIDMessage?: string): Promise { return; } /** * Sets a value for a key @@ -58,13 +58,7 @@ export class Keychain extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - set( - key: string, - value: string | number | boolean, - useTouchID?: boolean - ): Promise { - return; - } + set(key: string, value: string | number | boolean, useTouchID?: boolean): Promise { return; } /** * Gets a JSON value for a key @@ -75,9 +69,7 @@ export class Keychain extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - getJson(key: string, touchIDMessage?: string): Promise { - return; - } + getJson(key: string, touchIDMessage?: string): Promise { return; } /** * Sets a JSON value for a key @@ -89,9 +81,7 @@ export class Keychain extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - setJson(key: string, obj: any, useTouchId?: boolean): Promise { - return; - } + setJson(key: string, obj: any, useTouchId?: boolean): Promise { return; } /** * Removes a value for a key @@ -101,7 +91,6 @@ export class Keychain extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - remove(key: string): Promise { - return; - } + remove(key: string): Promise { return; } + } diff --git a/src/@ionic-native/plugins/launch-navigator/index.ts b/src/@ionic-native/plugins/launch-navigator/index.ts index a7dc52275..79140e26f 100644 --- a/src/@ionic-native/plugins/launch-navigator/index.ts +++ b/src/@ionic-native/plugins/launch-navigator/index.ts @@ -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 PromptsOptions { + /** * a function to pass the user's decision whether to remember their choice of app. * This will be passed a single boolean value indicating the user's decision. @@ -21,6 +22,7 @@ export interface PromptsOptions { */ bodyText?: string; + /** * text to display for the Yes button. * Defaults to "Yes" if not specified. @@ -35,6 +37,7 @@ export interface PromptsOptions { } export interface RememberChoiceOptions { + /** * whether to remember user choice of app for next time, instead of asking again for user choice. * `"prompt"` - Prompt user to decide whether to remember choice. @@ -46,6 +49,7 @@ export interface RememberChoiceOptions { */ enabled?: boolean | string; + /** * a function which asks the user whether to remember their choice of app. * If this is defined, then the default dialog prompt will not be shown, allowing for a custom UI for asking the user. @@ -99,6 +103,7 @@ export interface AppSelectionOptions { } export interface LaunchNavigatorOptions { + /** * A callback to invoke when the navigation app is successfully launched. */ @@ -167,6 +172,7 @@ export interface LaunchNavigatorOptions { */ launchModeAppleMaps?: string; + /** * If true, and input location type(s) doesn't match those required by the app, use geocoding to obtain the address/coords as required. Defaults to true. */ @@ -179,6 +185,7 @@ export interface LaunchNavigatorOptions { } export interface UserChoice { + /** * Indicates whether a user choice exists for a preferred navigator app. * @param callback - function to pass result to: will receive a boolean argument. @@ -216,13 +223,13 @@ export interface UserPrompted { * Sets flag indicating user has already been prompted whether to remember their choice a preferred navigator app. * @param callback - function to call once operation is complete. */ - set: (callback: () => void) => void; + set: ( callback: () => void) => void; /** * Clears flag which indicates if user has already been prompted whether to remember their choice a preferred navigator app. * @param callback - function to call once operation is complete. */ - clear: (callback: () => void) => void; + clear: ( callback: () => void) => void; } export interface AppSelection { @@ -274,6 +281,7 @@ export interface AppSelection { }) @Injectable() export class LaunchNavigator extends IonicNativePlugin { + APP: any = { USER_SELECT: 'user_select', APPLE_MAPS: 'apple_maps', @@ -308,12 +316,7 @@ export class LaunchNavigator extends IonicNativePlugin { successIndex: 2, errorIndex: 3 }) - navigate( - destination: string | number[], - options?: LaunchNavigatorOptions - ): Promise { - return; - } + navigate(destination: string | number[], options?: LaunchNavigatorOptions): Promise { return; } /** * Determines if the given app is installed and available on the current device. @@ -321,18 +324,14 @@ export class LaunchNavigator extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - isAppAvailable(app: string): Promise { - return; - } + isAppAvailable(app: string): Promise { return; } /** * Returns a list indicating which apps are installed and available on the current device. * @returns {Promise} */ @Cordova() - availableApps(): Promise { - return; - } + availableApps(): Promise { return; } /** * Returns the display name of the specified app. @@ -340,9 +339,7 @@ export class LaunchNavigator extends IonicNativePlugin { * @returns {string} */ @Cordova({ sync: true }) - getAppDisplayName(app: string): string { - return; - } + getAppDisplayName(app: string): string { return; } /** * Returns list of supported apps on a given platform. @@ -350,9 +347,7 @@ export class LaunchNavigator extends IonicNativePlugin { * @returns {string[]} */ @Cordova({ sync: true }) - getAppsForPlatform(platform: string): string[] { - return; - } + getAppsForPlatform(platform: string): string[] { return; } /** * Indicates if an app on a given platform supports specification of transport mode. @@ -361,9 +356,7 @@ export class LaunchNavigator extends IonicNativePlugin { * @returns {boolean} */ @Cordova({ sync: true }) - supportsTransportMode(app: string, platform: string): boolean { - return; - } + supportsTransportMode(app: string, platform: string): boolean { return; } /** * Returns the list of transport modes supported by an app on a given platform. @@ -372,9 +365,7 @@ export class LaunchNavigator extends IonicNativePlugin { * @returns {string[]} */ @Cordova({ sync: true }) - getTransportModes(app: string, platform: string): string[] { - return; - } + getTransportModes(app: string, platform: string): string[] { return; } /** * @param app {string} @@ -382,9 +373,7 @@ export class LaunchNavigator extends IonicNativePlugin { * @returns {boolean} */ @Cordova({ sync: true }) - supportsDestName(app: string, platform: string): boolean { - return; - } + supportsDestName(app: string, platform: string): boolean { return; } /** * Indicates if an app on a given platform supports specification of start location. @@ -393,9 +382,7 @@ export class LaunchNavigator extends IonicNativePlugin { * @returns {boolean} */ @Cordova({ sync: true }) - supportsStart(app: string, platform: string): boolean { - return; - } + supportsStart(app: string, platform: string): boolean { return; } /** * @param app {string} @@ -403,9 +390,7 @@ export class LaunchNavigator extends IonicNativePlugin { * @returns {boolean} */ @Cordova({ sync: true }) - supportsStartName(app: string, platform: string): boolean { - return; - } + supportsStartName(app: string, platform: string): boolean { return; } /** * Indicates if an app on a given platform supports specification of launch mode. @@ -415,19 +400,14 @@ export class LaunchNavigator extends IonicNativePlugin { * @returns {boolean} */ @Cordova({ sync: true }) - supportsLaunchMode(app: string, platform: string): boolean { - return; - } + supportsLaunchMode(app: string, platform: string): boolean { return; } /** * @param destination {string | number[]} * @param options {LaunchNavigatorOptions} */ @Cordova({ sync: true }) - userSelect( - destination: string | number[], - options: LaunchNavigatorOptions - ): void {} + userSelect(destination: string | number[], options: LaunchNavigatorOptions): void {} appSelection: AppSelection; } diff --git a/src/@ionic-native/plugins/launch-review/index.ts b/src/@ionic-native/plugins/launch-review/index.ts index 38aad44f0..86c3c038a 100644 --- a/src/@ionic-native/plugins/launch-review/index.ts +++ b/src/@ionic-native/plugins/launch-review/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; /** * @name Launch Review @@ -35,6 +35,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; }) @Injectable() export class LaunchReview extends IonicNativePlugin { + /** * Launches App Store on current platform in order to leave a review for given app. * @param appId {string} - (optional) the platform-specific app ID to use to open the page in the store app. @@ -44,9 +45,7 @@ export class LaunchReview extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['Android', 'iOS'], callbackOrder: 'reverse' }) - launch(appId?: string): Promise { - return; - } + launch(appId?: string): Promise { return; } /** * Invokes the native in-app rating dialog which allows a user to rate your app without needing to open the App Store. @@ -58,9 +57,7 @@ export class LaunchReview extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['iOS'] }) - rating(): Promise { - return; - } + rating(): Promise { return; } /** * Indicates if the current platform/version supports in-app ratings dialog, i.e. calling LaunchReview.rating(). @@ -68,7 +65,6 @@ export class LaunchReview extends IonicNativePlugin { * @returns {boolean} */ @Cordova({ platforms: ['Android', 'iOS'], sync: true }) - isRatingSupported(): boolean { - return; - } + isRatingSupported(): boolean { return; } + } diff --git a/src/@ionic-native/plugins/linkedin/index.ts b/src/@ionic-native/plugins/linkedin/index.ts index fd263ebed..f93b42497 100644 --- a/src/@ionic-native/plugins/linkedin/index.ts +++ b/src/@ionic-native/plugins/linkedin/index.ts @@ -1,11 +1,7 @@ +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; -export type LinkedInLoginScopes = - | 'r_basicprofile' - | 'r_emailaddress' - | 'rw_company_admin' - | 'w_share'; +export type LinkedInLoginScopes = 'r_basicprofile' | 'r_emailaddress' | 'rw_company_admin' | 'w_share'; /** * @name LinkedIn @@ -57,13 +53,13 @@ export type LinkedInLoginScopes = plugin: 'cordova-plugin-linkedin', pluginRef: 'cordova.plugins.LinkedIn', repo: 'https://github.com/zyra/cordova-plugin-linkedin', - install: - 'ionic cordova plugin add cordova-plugin-linkedin --variable APP_ID=YOUR_APP_ID', + install: 'ionic cordova plugin add cordova-plugin-linkedin --variable APP_ID=YOUR_APP_ID', installVariables: ['APP_ID'], platforms: ['Android', 'iOS'] }) @Injectable() export class LinkedIn extends IonicNativePlugin { + /** * Login with the LinkedIn App * @param scopes {string[]} Scopes to authorize @@ -71,15 +67,13 @@ export class LinkedIn extends IonicNativePlugin { * @return {Promise} */ @Cordova() - login(scopes: LinkedInLoginScopes[], promptToInstall: boolean): Promise { - return; - } + login(scopes: LinkedInLoginScopes[], promptToInstall: boolean): Promise { return; } /** * Clears the current session */ @Cordova({ sync: true }) - logout(): void {} + logout(): void { } /** * Make a get request @@ -87,9 +81,7 @@ export class LinkedIn extends IonicNativePlugin { * @return {Promise} */ @Cordova() - getRequest(path: string): Promise { - return; - } + getRequest(path: string): Promise { return; } /** * Make a post request @@ -98,9 +90,7 @@ export class LinkedIn extends IonicNativePlugin { * @return {Promise} */ @Cordova() - postRequest(path: string, body: any): Promise { - return; - } + postRequest(path: string, body: any): Promise { return; } /** * Opens a member's profile @@ -108,25 +98,20 @@ export class LinkedIn extends IonicNativePlugin { * @return {Promise} */ @Cordova() - openProfile(memberId: string): Promise { - return; - } + openProfile(memberId: string): Promise { return; } /** * Checks if there is already an existing active session. This should be used to avoid unnecessary login. * @return {Promise} returns a promise that resolves with a boolean that indicates whether there is an active session */ @Cordova() - hasActiveSession(): Promise { - return; - } + hasActiveSession(): Promise { return; } /** * Checks if there is an active session and returns the access token if it exists. * @return {Promise} returns a promise that resolves with an object that contains an access token if there is an active session */ @Cordova() - getActiveSession(): Promise { - return; - } + getActiveSession(): Promise { return; } + } diff --git a/src/@ionic-native/plugins/local-notifications/index.ts b/src/@ionic-native/plugins/local-notifications/index.ts index 09f167a62..74dd1e6bf 100644 --- a/src/@ionic-native/plugins/local-notifications/index.ts +++ b/src/@ionic-native/plugins/local-notifications/index.ts @@ -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} optional @@ -159,7 +162,7 @@ export class LocalNotifications extends IonicNativePlugin { @Cordova({ sync: true }) - schedule(options?: ILocalNotification | Array): void {} + schedule(options?: ILocalNotification | Array): 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} Returns a promise when the notification had been cleared */ @Cordova() - clear(notificationId: any): Promise { - return; - } + clear(notificationId: any): Promise { return; } /** * Clears all notifications @@ -188,9 +189,7 @@ export class LocalNotifications extends IonicNativePlugin { successIndex: 0, errorIndex: 2 }) - clearAll(): Promise { - return; - } + clearAll(): Promise { return; } /** * Cancels single or multiple notifications @@ -198,9 +197,7 @@ export class LocalNotifications extends IonicNativePlugin { * @returns {Promise} Returns a promise when the notification is canceled */ @Cordova() - cancel(notificationId: any): Promise { - return; - } + cancel(notificationId: any): Promise { return; } /** * Cancels all notifications @@ -210,9 +207,7 @@ export class LocalNotifications extends IonicNativePlugin { successIndex: 0, errorIndex: 2 }) - cancelAll(): Promise { - return; - } + cancelAll(): Promise { return; } /** * Checks presence of a notification @@ -220,9 +215,7 @@ export class LocalNotifications extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - isPresent(notificationId: number): Promise { - return; - } + isPresent(notificationId: number): Promise { return; } /** * Checks is a notification is scheduled @@ -230,9 +223,7 @@ export class LocalNotifications extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - isScheduled(notificationId: number): Promise { - return; - } + isScheduled(notificationId: number): Promise { return; } /** * Checks if a notification is triggered @@ -240,36 +231,28 @@ export class LocalNotifications extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - isTriggered(notificationId: number): Promise { - return; - } + isTriggered(notificationId: number): Promise { return; } /** * Get all the notification ids * @returns {Promise>} */ @Cordova() - getAllIds(): Promise> { - return; - } + getAllIds(): Promise> { return; } /** * Get the ids of triggered notifications * @returns {Promise>} */ @Cordova() - getTriggeredIds(): Promise> { - return; - } + getTriggeredIds(): Promise> { return; } /** * Get the ids of scheduled notifications * @returns {Promise>} Returns a promise */ @Cordova() - getScheduledIds(): Promise> { - return; - } + getScheduledIds(): Promise> { return; } /** * Get a notification object @@ -277,9 +260,7 @@ export class LocalNotifications extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - get(notificationId: any): Promise { - return; - } + get(notificationId: any): Promise { return; } /** * Get a scheduled notification object @@ -287,9 +268,7 @@ export class LocalNotifications extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - getScheduled(notificationId: any): Promise { - return; - } + getScheduled(notificationId: any): Promise { return; } /** * Get a triggered notification object @@ -297,54 +276,43 @@ export class LocalNotifications extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - getTriggered(notificationId: any): Promise { - return; - } + getTriggered(notificationId: any): Promise { return; } /** * Get all notification objects * @returns {Promise>} */ @Cordova() - getAll(): Promise> { - return; - } + getAll(): Promise> { return; } /** * Get all scheduled notification objects * @returns {Promise>} */ @Cordova() - getAllScheduled(): Promise> { - return; - } + getAllScheduled(): Promise> { return; } /** * Get all triggered notification objects * @returns {Promise>} */ @Cordova() - getAllTriggered(): Promise> { - return; - } + getAllTriggered(): Promise> { return; } /** * Request permission to show notifications if not already granted. * @returns {Promise} */ @Cordova() - requestPermission(): Promise { - return; - } + requestPermission(): Promise { return; } /** * Informs if the app has the permission to show notifications. * @returns {Promise} */ @Cordova() - hasPermission(): Promise { - return; - } + hasPermission(): Promise { 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 { } + + } diff --git a/src/@ionic-native/plugins/location-accuracy/index.ts b/src/@ionic-native/plugins/location-accuracy/index.ts index 77e14f26a..be74531ae 100644 --- a/src/@ionic-native/plugins/location-accuracy/index.ts +++ b/src/@ionic-native/plugins/location-accuracy/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; /** * @name Location Accuracy @@ -42,18 +42,14 @@ export class LocationAccuracy extends IonicNativePlugin { * @returns {Promise} Returns a promise that resovles with a boolean that indicates if you can request accurate location */ @Cordova() - canRequest(): Promise { - return; - } + canRequest(): Promise { return; } /** * Indicates if a request is currently in progress * @returns {Promise} Returns a promise that resolves with a boolean that indicates if a request is currently in progress */ @Cordova() - isRequesting(): Promise { - return; - } + isRequesting(): Promise { return; } /** * Requests accurate location @@ -61,9 +57,7 @@ export class LocationAccuracy extends IonicNativePlugin { * @returns {Promise} Returns a promise that resolves on success and rejects if an error occurred */ @Cordova({ callbackOrder: 'reverse' }) - request(accuracy: number): Promise { - return; - } + request(accuracy: number): Promise { return; } /** * Convenience constant @@ -142,4 +136,5 @@ export class LocationAccuracy extends IonicNativePlugin { * @type {number} */ ERROR_GOOGLE_API_CONNECTION_FAILED = 4; + } diff --git a/src/@ionic-native/plugins/market/index.ts b/src/@ionic-native/plugins/market/index.ts index 801c1fdeb..77718246b 100644 --- a/src/@ionic-native/plugins/market/index.ts +++ b/src/@ionic-native/plugins/market/index.ts @@ -1,6 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; - +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; /** * @name Market * @description @@ -27,6 +26,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; }) @Injectable() export class Market extends IonicNativePlugin { + /** * Opens an app in Google Play / App Store * @param appId {string} Package name @@ -37,9 +37,7 @@ export class Market extends IonicNativePlugin { successName: 'success', errorName: 'failure' }) - open(appId: string): Promise { - return; - } + open(appId: string): Promise { return; } /** * Search apps by keyword @@ -52,7 +50,6 @@ export class Market extends IonicNativePlugin { errorName: 'failure', platforms: ['Android'] }) - search(keyword: string): Promise { - return; - } + search(keyword: string): Promise { return; } + } diff --git a/src/@ionic-native/plugins/media-capture/index.ts b/src/@ionic-native/plugins/media-capture/index.ts index 489766935..f1c5c0d19 100644 --- a/src/@ionic-native/plugins/media-capture/index.ts +++ b/src/@ionic-native/plugins/media-capture/index.ts @@ -1,10 +1,5 @@ import { Injectable } from '@angular/core'; -import { - Cordova, - CordovaProperty, - IonicNativePlugin, - Plugin -} from '@ionic-native/core'; +import { Cordova, CordovaProperty, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; declare const navigator: any; @@ -38,10 +33,7 @@ export interface MediaFile { * @param {Function} successCallback * @param {Function} errorCallback */ - getFormatData( - successCallback: (data: MediaFileData) => any, - errorCallback?: (err: any) => any - ): void; + getFormatData(successCallback: (data: MediaFileData) => any, errorCallback?: (err: any) => any): void; } export interface MediaFileData { @@ -109,7 +101,7 @@ export interface ConfigurationData { /** * The ASCII-encoded lowercase string representing the media type. */ - type: string; + type: string; /** * The height of the image or video in pixels. The value is zero for sound clips. */ @@ -163,19 +155,22 @@ export class MediaCapture extends IonicNativePlugin { * The recording image sizes and formats supported by the device. * @returns {ConfigurationData[]} */ - @CordovaProperty supportedImageModes: ConfigurationData[]; + @CordovaProperty + supportedImageModes: ConfigurationData[]; /** * The audio recording formats supported by the device. * @returns {ConfigurationData[]} */ - @CordovaProperty supportedAudioModes: ConfigurationData[]; + @CordovaProperty + supportedAudioModes: ConfigurationData[]; /** * The recording video resolutions and formats supported by the device. * @returns {ConfigurationData[]} */ - @CordovaProperty supportedVideoModes: ConfigurationData[]; + @CordovaProperty + supportedVideoModes: ConfigurationData[]; /** * Start the audio recorder application and return information about captured audio clip files. @@ -185,9 +180,7 @@ export class MediaCapture extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - captureAudio( - options?: CaptureAudioOptions - ): Promise { + captureAudio(options?: CaptureAudioOptions): Promise { return; } @@ -199,9 +192,7 @@ export class MediaCapture extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - captureImage( - options?: CaptureImageOptions - ): Promise { + captureImage(options?: CaptureImageOptions): Promise { return; } @@ -213,9 +204,7 @@ export class MediaCapture extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - captureVideo( - options?: CaptureVideoOptions - ): Promise { + captureVideo(options?: CaptureVideoOptions): Promise { return; } @@ -242,4 +231,5 @@ export class MediaCapture extends IonicNativePlugin { onPendingCaptureError(): Observable { return; } + } diff --git a/src/@ionic-native/plugins/media/index.ts b/src/@ionic-native/plugins/media/index.ts index e27ef4763..d0036b17e 100644 --- a/src/@ionic-native/plugins/media/index.ts +++ b/src/@ionic-native/plugins/media/index.ts @@ -1,11 +1,5 @@ import { Injectable } from '@angular/core'; -import { - checkAvailability, - CordovaInstance, - InstanceProperty, - IonicNativePlugin, - Plugin -} from '@ionic-native/core'; +import { CordovaInstance, Plugin, checkAvailability, IonicNativePlugin, InstanceProperty } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; import { Observer } from 'rxjs/Observer'; @@ -13,6 +7,7 @@ import { Observer } from 'rxjs/Observer'; * @hidden */ export class MediaObject { + /** * An observable that notifies you on actions success */ @@ -31,37 +26,36 @@ export class MediaObject { /** * @hidden */ - @InstanceProperty successCallback: Function; + @InstanceProperty + successCallback: Function; /** * @hidden */ - @InstanceProperty errorCallback: Function; + @InstanceProperty + errorCallback: Function; /** * @hidden */ - @InstanceProperty statusCallback: Function; + @InstanceProperty + statusCallback: Function; constructor(private _objectInstance: any) { this.onSuccess = new Observable((observer: Observer) => { this.successCallback = observer.next.bind(observer); - return () => (this.successCallback = () => {}); + return () => this.successCallback = () => {}; }); - this.onError = new Observable( - (observer: Observer) => { - this.errorCallback = observer.next.bind(observer); - return () => (this.errorCallback = () => {}); - } - ); + this.onError = new Observable((observer: Observer) => { + this.errorCallback = observer.next.bind(observer); + return () => this.errorCallback = () => {}; + }); - this.onStatusUpdate = new Observable( - (observer: Observer) => { - this.statusCallback = observer.next.bind(observer); - return () => (this.statusCallback = () => {}); - } - ); + this.onStatusUpdate = new Observable((observer: Observer) => { + this.statusCallback = observer.next.bind(observer); + return () => this.statusCallback = () => {}; + }); } /** @@ -69,62 +63,56 @@ export class MediaObject { * @returns {Promise} Returns a promise with the amplitude of the current recording */ @CordovaInstance() - getCurrentAmplitude(): Promise { - return; - } + getCurrentAmplitude(): Promise { return; } /** * Get the current position within an audio file. Also updates the Media object's position parameter. * @returns {Promise} Returns a promise with the position of the current recording */ @CordovaInstance() - getCurrentPosition(): Promise { - return; - } + getCurrentPosition(): Promise { return; } /** * Get the duration of an audio file in seconds. If the duration is unknown, it returns a value of -1. * @returns {number} Returns a promise with the duration of the current recording */ @CordovaInstance({ sync: true }) - getDuration(): number { - return; - } + getDuration(): number { return; } /** * Starts or resumes playing an audio file. */ @CordovaInstance({ sync: true }) play(iosOptions?: { - numberOfLoops?: number; - playAudioWhenScreenIsLocked?: boolean; - }): void {} + numberOfLoops?: number, + playAudioWhenScreenIsLocked?: boolean + }): void { } /** * Pauses playing an audio file. */ @CordovaInstance({ sync: true }) - pause(): void {} + pause(): void { } /** * Releases the underlying operating system's audio resources. This is particularly important for Android, since there are a finite amount of OpenCore instances for media playback. Applications should call the release function for any Media resource that is no longer needed. */ @CordovaInstance({ sync: true }) - release(): void {} + release(): void { } /** * Sets the current position within an audio file. * @param {number} milliseconds The time position you want to set for the current audio file */ @CordovaInstance({ sync: true }) - seekTo(milliseconds: number): void {} + seekTo(milliseconds: number): void { } /** * Set the volume for an audio file. * @param volume {number} The volume to set for playback. The value must be within the range of 0.0 to 1.0. */ @CordovaInstance({ sync: true }) - setVolume(volume: number): void {} + setVolume(volume: number): void { } @CordovaInstance({ sync: true }) setRate(speedRate: number): void {} @@ -133,36 +121,38 @@ export class MediaObject { * Starts recording an audio file. */ @CordovaInstance({ sync: true }) - startRecord(): void {} + startRecord(): void { } /** * Stops recording */ @CordovaInstance({ sync: true }) - stopRecord(): void {} + stopRecord(): void { } /** * Pauses recording */ @CordovaInstance({ sync: true }) - pauseRecord(): void {} + pauseRecord(): void { } /** * Resumes recording */ @CordovaInstance({ sync: true }) - resumeRecord(): void {} + resumeRecord(): void { } /** * Stops playing an audio file. */ @CordovaInstance({ sync: true }) - stop(): void {} + stop(): void { } + } export type MediaStatusUpdateCallback = (statusCode: number) => void; export interface MediaError { + /** * Error message */ @@ -172,6 +162,7 @@ export interface MediaError { * Error code */ code: number; + } export enum MEDIA_STATUS { @@ -297,6 +288,7 @@ export type MediaErrorCallback = (error: MediaError) => void; }) @Injectable() export class Media extends IonicNativePlugin { + // Constants /** * @hidden @@ -345,14 +337,12 @@ export class Media extends IonicNativePlugin { create(src: string): MediaObject { let instance: any; - if ( - checkAvailability(Media.getPluginRef(), null, Media.getPluginName()) === - true - ) { + if (checkAvailability(Media.getPluginRef(), null, Media.getPluginName()) === true) { // Creates a new media object instance = new (Media.getPlugin())(src); } return new MediaObject(instance); } + } diff --git a/src/@ionic-native/plugins/mixpanel/index.ts b/src/@ionic-native/plugins/mixpanel/index.ts index 022619cb3..debf12a63 100644 --- a/src/@ionic-native/plugins/mixpanel/index.ts +++ b/src/@ionic-native/plugins/mixpanel/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; declare var mixpanel: any; @@ -33,6 +33,7 @@ declare var mixpanel: any; }) @Injectable() export class Mixpanel extends IonicNativePlugin { + /** * * @param aliasId {string} @@ -40,26 +41,20 @@ export class Mixpanel extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - alias(aliasId: string, originalId: string): Promise { - return; - } + alias(aliasId: string, originalId: string): Promise { return; } /** * * @returns {Promise} */ @Cordova() - distinctId(): Promise { - return; - } + distinctId(): Promise { return; } /** * @returns {Promise} */ @Cordova() - flush(): Promise { - return; - } + flush(): Promise { return; } /** * @@ -67,9 +62,7 @@ export class Mixpanel extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - identify(distinctId: string): Promise { - return; - } + identify(distinctId: string): Promise { return; } /** * @@ -77,9 +70,7 @@ export class Mixpanel extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - init(token: string): Promise { - return; - } + init(token: string): Promise { return; } /** * @@ -87,18 +78,14 @@ export class Mixpanel extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - registerSuperProperties(superProperties: any): Promise { - return; - } + registerSuperProperties(superProperties: any): Promise { return; } /** * * @returns {Promise} */ @Cordova() - reset(): Promise { - return; - } + reset(): Promise { return; } /** * @@ -106,9 +93,7 @@ export class Mixpanel extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - timeEvent(eventName: string): Promise { - return; - } + timeEvent(eventName: string): Promise { return; } /** * @@ -120,9 +105,8 @@ export class Mixpanel extends IonicNativePlugin { successIndex: 2, errorIndex: 3 }) - track(eventName: string, eventProperties?: any): Promise { - return; - } + track(eventName: string, eventProperties?: any): Promise { return; } + } /** * @hidden @@ -134,15 +118,14 @@ export class Mixpanel extends IonicNativePlugin { }) @Injectable() export class MixpanelPeople extends IonicNativePlugin { + /** * * @param distinctId {string} * @return {Promise} */ @Cordova() - identify(distinctId: string): Promise { - return; - } + identify(distinctId: string): Promise { return; } /** * @@ -150,9 +133,7 @@ export class MixpanelPeople extends IonicNativePlugin { * @return {Promise} */ @Cordova() - increment(peopleProperties: any): Promise { - return; - } + increment(peopleProperties: any): Promise { return; } /** * @@ -160,9 +141,7 @@ export class MixpanelPeople extends IonicNativePlugin { * @return {Promise} */ @Cordova() - setPushId(pushId: string): Promise { - return; - } + setPushId(pushId: string): Promise { return; } /** * @@ -170,9 +149,7 @@ export class MixpanelPeople extends IonicNativePlugin { * @return {Promise} */ @Cordova() - set(peopleProperties: any): Promise { - return; - } + set(peopleProperties: any): Promise { return; } /** * @@ -180,7 +157,6 @@ export class MixpanelPeople extends IonicNativePlugin { * @return {Promise} */ @Cordova() - setOnce(peopleProperties: any): Promise { - return; - } + setOnce(peopleProperties: any): Promise { return; } + } diff --git a/src/@ionic-native/plugins/mobile-accessibility/index.ts b/src/@ionic-native/plugins/mobile-accessibility/index.ts index e6498ea3b..f7348b7f0 100644 --- a/src/@ionic-native/plugins/mobile-accessibility/index.ts +++ b/src/@ionic-native/plugins/mobile-accessibility/index.ts @@ -1,5 +1,5 @@ +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name Mobile Accessibility @@ -29,25 +29,26 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; }) @Injectable() export class MobileAccessibility extends IonicNativePlugin { + MobileAccessibilityNotifications: { - ANNOUNCEMENT: 'ANNOUNCEMENT'; - BOLD_TEXT_STATUS_CHANGED: 'BOLD_TEXT_STATUS_CHANGED'; - CLOSED_CAPTIONING_STATUS_CHANGED: 'CLOSED_CAPTIONING_STATUS_CHANGED'; - DARKER_SYSTEM_COLORS_STATUS_CHANGED: 'DARKER_SYSTEM_COLORS_STATUS_CHANGED'; - GRAYSCALE_STATUS_CHANGED: 'GRAYSCALE_STATUS_CHANGED'; - GUIDED_ACCESS_STATUS_CHANGED: 'GUIDED_ACCESS_STATUS_CHANGED'; - INVERT_COLORS_STATUS_CHANGED: 'INVERT_COLORS_STATUS_CHANGED'; - LAYOUT_CHANGED: 'LAYOUT_CHANGED'; - MONO_AUDIO_STATUS_CHANGED: 'MONO_AUDIO_STATUS_CHANGED'; - PAGE_SCROLLED: 'PAGE_SCROLLED'; - REDUCE_MOTION_STATUS_CHANGED: 'REDUCE_MOTION_STATUS_CHANGED'; - REDUCE_TRANSPARENCY_STATUS_CHANGED: 'REDUCE_TRANSPARENCY_STATUS_CHANGED'; - SCREEN_CHANGED: 'SCREEN_CHANGED'; - SCREEN_READER_STATUS_CHANGED: 'SCREEN_READER_STATUS_CHANGED'; - SPEAK_SCREEN_STATUS_CHANGED: 'SPEAK_SCREEN_STATUS_CHANGED'; - SPEAK_SELECTION_STATUS_CHANGED: 'SPEAK_SELECTION_STATUS_CHANGED'; - SWITCH_CONTROL_STATUS_CHANGED: 'SWITCH_CONTROL_STATUS_CHANGED'; - TOUCH_EXPLORATION_STATUS_CHANGED: 'TOUCH_EXPLORATION_STATUS_CHANGED'; + ANNOUNCEMENT: 'ANNOUNCEMENT', + BOLD_TEXT_STATUS_CHANGED: 'BOLD_TEXT_STATUS_CHANGED', + CLOSED_CAPTIONING_STATUS_CHANGED: 'CLOSED_CAPTIONING_STATUS_CHANGED', + DARKER_SYSTEM_COLORS_STATUS_CHANGED: 'DARKER_SYSTEM_COLORS_STATUS_CHANGED', + GRAYSCALE_STATUS_CHANGED: 'GRAYSCALE_STATUS_CHANGED', + GUIDED_ACCESS_STATUS_CHANGED: 'GUIDED_ACCESS_STATUS_CHANGED', + INVERT_COLORS_STATUS_CHANGED: 'INVERT_COLORS_STATUS_CHANGED', + LAYOUT_CHANGED: 'LAYOUT_CHANGED', + MONO_AUDIO_STATUS_CHANGED: 'MONO_AUDIO_STATUS_CHANGED', + PAGE_SCROLLED: 'PAGE_SCROLLED', + REDUCE_MOTION_STATUS_CHANGED: 'REDUCE_MOTION_STATUS_CHANGED', + REDUCE_TRANSPARENCY_STATUS_CHANGED: 'REDUCE_TRANSPARENCY_STATUS_CHANGED', + SCREEN_CHANGED: 'SCREEN_CHANGED', + SCREEN_READER_STATUS_CHANGED: 'SCREEN_READER_STATUS_CHANGED', + SPEAK_SCREEN_STATUS_CHANGED: 'SPEAK_SCREEN_STATUS_CHANGED', + SPEAK_SELECTION_STATUS_CHANGED: 'SPEAK_SELECTION_STATUS_CHANGED', + SWITCH_CONTROL_STATUS_CHANGED: 'SWITCH_CONTROL_STATUS_CHANGED', + TOUCH_EXPLORATION_STATUS_CHANGED: 'TOUCH_EXPLORATION_STATUS_CHANGED' }; /** @@ -55,27 +56,21 @@ export class MobileAccessibility extends IonicNativePlugin { * @returns {Promise} A result method to receive the boolean result asynchronously from the native MobileAccessibility plugin. */ @Cordova() - isScreenReaderRunning(): Promise { - return; - } + isScreenReaderRunning(): Promise { return; } /** * An iOS-specific proxy for the MobileAccessibility.isScreenReaderRunning method * @returns {Promise} A result method to receive the boolean result asynchronously from the native MobileAccessibility plugin. */ @Cordova({ platforms: ['iOS'] }) - isVoiceOverRunning(): Promise { - return; - } + isVoiceOverRunning(): Promise { return; } /** * An Android/Amazon Fire OS-specific proxy for the MobileAccessibility.isScreenReaderRunning method. * @returns {Promise} A result method to receive the boolean result asynchronously from the native MobileAccessibility plugin. */ @Cordova({ platforms: ['Amazon Fire OS', 'Android'] }) - isTalkBackRunning(): Promise { - return; - } + isTalkBackRunning(): Promise { return; } /** * On Android, this method returns true if ChromeVox is active and properly initialized with access to the text to speech API in the WebView. @@ -83,154 +78,124 @@ export class MobileAccessibility extends IonicNativePlugin { * @returns {Promise} Returns the result */ @Cordova({ platforms: ['Amazon Fire OS', 'Android'] }) - isChromeVoxActive(): Promise { - return; - } + isChromeVoxActive(): Promise { return; } /** * * @returns {Promise} Returns the result */ @Cordova({ platforms: ['iOS'] }) - isBoldTextEnabled(): Promise { - return; - } + isBoldTextEnabled(): Promise { return; } /** * * @returns {Promise} Returns the result */ @Cordova() - isClosedCaptioningEnabled(): Promise { - return; - } + isClosedCaptioningEnabled(): Promise { return; } /** * * @returns {Promise} Returns the result */ @Cordova({ platforms: ['iOS'] }) - isDarkerSystemColorsEnabled(): Promise { - return; - } + isDarkerSystemColorsEnabled(): Promise { return; } /** * * @returns {Promise} Returns the result */ @Cordova({ platforms: ['iOS'] }) - isGrayscaleEnabled(): Promise { - return; - } + isGrayscaleEnabled(): Promise { return; } /** * * @returns {Promise} Returns the result */ @Cordova({ platforms: ['iOS'] }) - isGuidedAccessEnabled(): Promise { - return; - } + isGuidedAccessEnabled(): Promise { return; } /** * * @returns {Promise} Returns the result */ @Cordova({ platforms: ['iOS'] }) - isInvertColorsEnabled(): Promise { - return; - } + isInvertColorsEnabled(): Promise { return; } /** * * @returns {Promise} Returns the result */ @Cordova({ platforms: ['iOS'] }) - isMonoAudioEnabled(): Promise { - return; - } + isMonoAudioEnabled(): Promise { return; } /** * * @returns {Promise} Returns the result */ @Cordova({ platforms: ['iOS'] }) - isReduceMotionEnabled(): Promise { - return; - } + isReduceMotionEnabled(): Promise { return; } /** * * @returns {Promise} Returns the result */ @Cordova({ platforms: ['iOS'] }) - isReduceTransparencyEnabled(): Promise { - return; - } + isReduceTransparencyEnabled(): Promise { return; } /** * * @returns {Promise} Returns the result */ @Cordova({ platforms: ['iOS'] }) - isSpeakScreenEnabled(): Promise { - return; - } + isSpeakScreenEnabled(): Promise { return; } /** * * @returns {Promise} Returns the result */ @Cordova({ platforms: ['iOS'] }) - isSpeakSelectionEnabled(): Promise { - return; - } + isSpeakSelectionEnabled(): Promise { return; } /** * * @returns {Promise} Returns the result */ @Cordova({ platforms: ['iOS'] }) - isSwitchControlRunning(): Promise { - return; - } + isSwitchControlRunning(): Promise { return; } /** * * @returns {Promise} Returns the result */ @Cordova({ platforms: ['Amazon Fire OS', 'Android'] }) - isTouchExplorationEnabled(): Promise { - return; - } + isTouchExplorationEnabled(): Promise { return; } /** * * * @returns {Promise} Returns the result */ @Cordova() - getTextZoom(): Promise { - return; - } + getTextZoom(): Promise { return; } /** * @param textZoom {number} A percentage value by which text in the WebView should be scaled. */ @Cordova({ sync: true }) - setTextZoom(textZoom: number): void {} + setTextZoom(textZoom: number): void { } /** * */ @Cordova({ sync: true }) - updateTextZoom(): void {} + updateTextZoom(): void { } /** * A Boolean value which specifies whether to use the preferred text zoom of a default percent value of 100. * @param value {boolean} Returns the result */ @Cordova({ sync: true }) - usePreferredTextZoom(value: boolean): void {} + usePreferredTextZoom(value: boolean): void { } /** * Posts a notification with a string for the screen reader to announce if it is running. @@ -239,12 +204,7 @@ export class MobileAccessibility extends IonicNativePlugin { * @returns {Promise} Returns the result */ @Cordova({ platforms: ['iOS'] }) - postNotification( - mobileAccessibilityNotification: any, - value: string - ): Promise { - return; - } + postNotification(mobileAccessibilityNotification: any, value: string): Promise { return; } /** * Speaks a given string through the screenreader. On Android, if ChromeVox is active, it will use the specified queueMode and properties. @@ -253,11 +213,12 @@ export class MobileAccessibility extends IonicNativePlugin { * @param properties {any} */ @Cordova({ sync: true }) - speak(value: string, queueMode?: number, properties?: any): void {} + speak(value: string, queueMode?: number, properties?: any): void { } /** * Stops speech. */ @Cordova({ sync: true }) - stop(): void {} + stop(): void { } + } diff --git a/src/@ionic-native/plugins/ms-adal/index.ts b/src/@ionic-native/plugins/ms-adal/index.ts index cd656ffde..ab0e55d88 100644 --- a/src/@ionic-native/plugins/ms-adal/index.ts +++ b/src/@ionic-native/plugins/ms-adal/index.ts @@ -1,13 +1,8 @@ +import { Plugin, IonicNativePlugin, checkAvailability, InstanceProperty, CordovaInstance } from '@ionic-native/core'; import { Injectable } from '@angular/core'; -import { - checkAvailability, - CordovaInstance, - InstanceProperty, - IonicNativePlugin, - Plugin -} from '@ionic-native/core'; export interface AuthenticationResult { + accessToken: string; accesSTokenType: string; expiresOn: Date; @@ -23,6 +18,7 @@ export interface AuthenticationResult { * @returns {String} The authorization header. */ createAuthorizationHeader(): string; + } export interface TokenCache { @@ -54,6 +50,7 @@ export interface UserInfo { uniqueId: string; } + /** * @name MS ADAL * @description @@ -99,30 +96,30 @@ export interface UserInfo { }) @Injectable() export class MSAdal extends IonicNativePlugin { - createAuthenticationContext( - authority: string, - validateAuthority: boolean = true - ) { + + createAuthenticationContext(authority: string, validateAuthority: boolean = true) { let authContext: any; - if ( - checkAvailability(MSAdal.getPluginRef(), null, MSAdal.getPluginName()) === - true - ) { + if (checkAvailability(MSAdal.getPluginRef(), null, MSAdal.getPluginName()) === true) { authContext = new (MSAdal.getPlugin()).AuthenticationContext(authority); } return new AuthenticationContext(authContext); } + } /** * @hidden */ export class AuthenticationContext { - @InstanceProperty authority: string; - @InstanceProperty validateAuthority: boolean; + @InstanceProperty + authority: string; - @InstanceProperty tokenCache: any; + @InstanceProperty + validateAuthority: boolean; + + @InstanceProperty + tokenCache: any; constructor(private _objectInstance: any) {} @@ -141,15 +138,7 @@ export class AuthenticationContext { @CordovaInstance({ otherPromise: true }) - acquireTokenAsync( - resourceUrl: string, - clientId: string, - redirectUrl: string, - userId?: string, - extraQueryParameters?: any - ): Promise { - return; - } + acquireTokenAsync(resourceUrl: string, clientId: string, redirectUrl: string, userId?: string, extraQueryParameters?: any): Promise { return; } /** * Acquires token WITHOUT using interactive flow. It checks the cache to return existing result @@ -164,11 +153,6 @@ export class AuthenticationContext { @CordovaInstance({ otherPromise: true }) - acquireTokenSilentAsync( - resourceUrl: string, - clientId: string, - userId?: string - ): Promise { - return; - } + acquireTokenSilentAsync(resourceUrl: string, clientId: string, userId?: string): Promise { return; } + } diff --git a/src/@ionic-native/plugins/music-controls/index.ts b/src/@ionic-native/plugins/music-controls/index.ts index 7dbb83b56..383b45d8b 100644 --- a/src/@ionic-native/plugins/music-controls/index.ts +++ b/src/@ionic-native/plugins/music-controls/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export interface MusicControlsOptions { @@ -140,24 +140,21 @@ export interface MusicControlsOptions { }) @Injectable() export class MusicControls extends IonicNativePlugin { + /** * Create the media controls * @param options {MusicControlsOptions} * @returns {Promise} */ @Cordova() - create(options: MusicControlsOptions): Promise { - return; - } + create(options: MusicControlsOptions): Promise { return; } /** * Destroy the media controller * @returns {Promise} */ @Cordova() - destroy(): Promise { - return; - } + destroy(): Promise { return; } /** * Subscribe to the events of the media controller @@ -166,36 +163,34 @@ export class MusicControls extends IonicNativePlugin { @Cordova({ observable: true }) - subscribe(): Observable { - return; - } + subscribe(): Observable { return; } /** * Start listening for events, this enables the Observable from the subscribe method */ @Cordova({ sync: true }) - listen(): void {} + listen(): void { } /** * Toggle play/pause: * @param isPlaying {boolean} */ @Cordova() - updateIsPlaying(isPlaying: boolean): void {} + updateIsPlaying(isPlaying: boolean): void { } /** - * Update elapsed time, optionally toggle play/pause: - * @param args {Object} - */ + * Update elapsed time, optionally toggle play/pause: + * @param args {Object} + */ @Cordova({ platforms: ['iOS'] }) - updateElapsed(args: { elapsed: string; isPlaying: boolean }): void {} + updateElapsed(args: { elapsed: string; isPlaying: boolean; }): void { } /** * Toggle dismissable: * @param dismissable {boolean} */ @Cordova() - updateDismissable(dismissable: boolean): void {} + updateDismissable(dismissable: boolean): void { } } diff --git a/src/@ionic-native/plugins/native-audio/index.ts b/src/@ionic-native/plugins/native-audio/index.ts index 62d053236..91dca64b4 100644 --- a/src/@ionic-native/plugins/native-audio/index.ts +++ b/src/@ionic-native/plugins/native-audio/index.ts @@ -1,6 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; - +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; /** * @name Native Audio * @description Native Audio Playback @@ -46,9 +45,7 @@ export class NativeAudio extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - preloadSimple(id: string, assetPath: string): Promise { - return; - } + preloadSimple(id: string, assetPath: string): Promise {return; } /** * Loads an audio file into memory. Optimized for background music / ambient sound. Uses highlevel native APIs with a larger footprint. (iOS: AVAudioPlayer). Can be stopped / looped and used with multiple voices. Can be faded in and out using the delay parameter. @@ -60,15 +57,7 @@ export class NativeAudio extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - preloadComplex( - id: string, - assetPath: string, - volume: number, - voices: number, - delay: number - ): Promise { - return; - } + preloadComplex(id: string, assetPath: string, volume: number, voices: number, delay: number): Promise {return; } /** * Plays an audio asset @@ -80,9 +69,7 @@ export class NativeAudio extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - play(id: string, completeCallback?: Function): Promise { - return; - } + play(id: string, completeCallback?: Function): Promise {return; } /** * Stops playing an audio @@ -90,9 +77,7 @@ export class NativeAudio extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - stop(id: string): Promise { - return; - } + stop(id: string): Promise {return; } /** * Loops an audio asset infinitely, this only works for complex assets @@ -100,9 +85,7 @@ export class NativeAudio extends IonicNativePlugin { * @return {Promise} */ @Cordova() - loop(id: string): Promise { - return; - } + loop(id: string): Promise {return; } /** * Unloads an audio file from memory @@ -110,9 +93,7 @@ export class NativeAudio extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - unload(id: string): Promise { - return; - } + unload(id: string): Promise {return; } /** * Changes the volume for preloaded complex assets. @@ -121,7 +102,6 @@ export class NativeAudio extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - setVolumeForComplexAsset(id: string, volume: number): Promise { - return; - } + setVolumeForComplexAsset(id: string, volume: number): Promise {return; } + } diff --git a/src/@ionic-native/plugins/native-geocoder/index.ts b/src/@ionic-native/plugins/native-geocoder/index.ts index 811a0f7f9..176be8027 100644 --- a/src/@ionic-native/plugins/native-geocoder/index.ts +++ b/src/@ionic-native/plugins/native-geocoder/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; /** * @name Native Geocoder @@ -35,6 +35,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; }) @Injectable() export class NativeGeocoder extends IonicNativePlugin { + /** * Reverse geocode a given latitude and longitude to find location address * @param latitude {number} The latitude @@ -44,12 +45,7 @@ export class NativeGeocoder extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - reverseGeocode( - latitude: number, - longitude: number - ): Promise { - return; - } + reverseGeocode(latitude: number, longitude: number): Promise { return; } /** * Forward geocode a given address to find coordinates @@ -59,14 +55,12 @@ export class NativeGeocoder extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - forwardGeocode(addressString: string): Promise { - return; - } + forwardGeocode(addressString: string): Promise { return; } } /** * Encapsulates format information about a reverse geocoding result. - * more Info: + * more Info: * - https://developer.apple.com/documentation/corelocation/clplacemark * - https://developer.android.com/reference/android/location/Address.html */ diff --git a/src/@ionic-native/plugins/native-keyboard/index.ts b/src/@ionic-native/plugins/native-keyboard/index.ts index c91c00822..ea070c564 100644 --- a/src/@ionic-native/plugins/native-keyboard/index.ts +++ b/src/@ionic-native/plugins/native-keyboard/index.ts @@ -1,7 +1,8 @@ +import { Plugin, IonicNativePlugin, Cordova } from '@ionic-native/core'; import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface NativeKeyboardOptions { + /** * A function invoked when the user submits his input. Receives the text as a single property. Make sure your page is UTF-8 encoded so Chinese and Emoji are rendered OK. */ @@ -126,6 +127,7 @@ export interface NativeKeyboardOptions { * */ rightButton: NativeKeyboardButton; + } export interface NativeKeyboardButton { @@ -202,6 +204,7 @@ export interface NativeKeyboardUpdateMessengerOptions { }) @Injectable() export class NativeKeyboard extends IonicNativePlugin { + /** * Show messenger * @param options {NativeKeyboardOptions} @@ -221,24 +224,19 @@ export class NativeKeyboard extends IonicNativePlugin { * @return {Promise} */ @Cordova() - showMessengerKeyboard(): Promise { - return; - } + showMessengerKeyboard(): Promise { return; } /** * Programmatically hide the keyboard (but not the messenger bar) */ @Cordova() - hideMessengerKeyboard(): Promise { - return; - } + hideMessengerKeyboard(): Promise { return; } /** * Manipulate the messenger while it's open. For instance if you want to update the text programmatically based on what the user typed. * @param options */ @Cordova() - updateMessenger(options: NativeKeyboardUpdateMessengerOptions): Promise { - return; - } + updateMessenger(options: NativeKeyboardUpdateMessengerOptions): Promise { return; } + } diff --git a/src/@ionic-native/plugins/native-page-transitions/index.ts b/src/@ionic-native/plugins/native-page-transitions/index.ts index 09dc82da7..537588b3c 100644 --- a/src/@ionic-native/plugins/native-page-transitions/index.ts +++ b/src/@ionic-native/plugins/native-page-transitions/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; export interface NativeTransitionOptions { direction?: string; @@ -76,9 +76,7 @@ export class NativePageTransitions extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - slide(options: NativeTransitionOptions): Promise { - return; - } + slide(options: NativeTransitionOptions): Promise { return; } /** * Perform a flip animation @@ -86,9 +84,7 @@ export class NativePageTransitions extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - flip(options: NativeTransitionOptions): Promise { - return; - } + flip(options: NativeTransitionOptions): Promise { return; } /** * Perform a fade animation @@ -96,9 +92,8 @@ export class NativePageTransitions extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['iOS', 'Android'] }) - fade(options: NativeTransitionOptions): Promise { - return; - } + fade(options: NativeTransitionOptions): Promise { return; } + /** * Perform a slide animation @@ -106,9 +101,9 @@ export class NativePageTransitions extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['iOS', 'Android'] }) - drawer(options: NativeTransitionOptions): Promise { - return; - } + drawer(options: NativeTransitionOptions): Promise { return; } + + /** * Perform a slide animation @@ -116,25 +111,20 @@ export class NativePageTransitions extends IonicNativePlugin { * @returns {Promise} */ @Cordova({ platforms: ['iOS'] }) - curl(options: NativeTransitionOptions): Promise { - return; - } + curl(options: NativeTransitionOptions): Promise { return; } /** * Execute pending transition * @returns {Promise} */ @Cordova() - executePendingTransition(): Promise { - return; - } + executePendingTransition(): Promise { return; } /** * Cancel pending transition * @returns {Promise} */ @Cordova() - cancelPendingTransition(): Promise { - return; - } + cancelPendingTransition(): Promise { return; } + } diff --git a/src/@ionic-native/plugins/native-ringtones/index.ts b/src/@ionic-native/plugins/native-ringtones/index.ts index 896d97e40..f0fad32b0 100644 --- a/src/@ionic-native/plugins/native-ringtones/index.ts +++ b/src/@ionic-native/plugins/native-ringtones/index.ts @@ -1,5 +1,5 @@ +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @beta @@ -33,14 +33,13 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; }) @Injectable() export class NativeRingtones extends IonicNativePlugin { + /** * Get the ringtone list of the device * @return {Promise} Returns a promise that resolves when ringtones found successfully */ @Cordova() - getRingtone(): Promise { - return; - } + getRingtone(): Promise { return; } /** * This function starts playing the ringtone @@ -48,9 +47,7 @@ export class NativeRingtones extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - playRingtone(ringtoneUri: string): Promise { - return; - } + playRingtone(ringtoneUri: string): Promise { return; } /** * This function stops playing the ringtone @@ -58,7 +55,5 @@ export class NativeRingtones extends IonicNativePlugin { * @return {Promise} Returns a promise */ @Cordova() - stopRingtone(ringtoneUri: string): Promise { - return; - } + stopRingtone(ringtoneUri: string): Promise { return; } } diff --git a/src/@ionic-native/plugins/native-storage/index.ts b/src/@ionic-native/plugins/native-storage/index.ts index 424bd3f1e..15b498c3f 100644 --- a/src/@ionic-native/plugins/native-storage/index.ts +++ b/src/@ionic-native/plugins/native-storage/index.ts @@ -1,5 +1,6 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; + /** * @name Native Storage @@ -42,9 +43,7 @@ export class NativeStorage extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - setItem(reference: string, value: any): Promise { - return; - } + setItem(reference: string, value: any): Promise { return; } /** * Gets a stored item @@ -52,18 +51,14 @@ export class NativeStorage extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - getItem(reference: string): Promise { - return; - } + getItem(reference: string): Promise { return; } /** * Retrieving all keys * @returns {Promise} */ @Cordova() - keys(): Promise { - return; - } + keys(): Promise { return; } /** * Removes a single stored item @@ -71,16 +66,13 @@ export class NativeStorage extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - remove(reference: string): Promise { - return; - } + remove(reference: string): Promise { return; } /** * Removes all stored values. * @returns {Promise} */ @Cordova() - clear(): Promise { - return; - } + clear(): Promise { return; } + } diff --git a/src/@ionic-native/plugins/navigation-bar/index.ts b/src/@ionic-native/plugins/navigation-bar/index.ts index c7126063d..784f3501b 100644 --- a/src/@ionic-native/plugins/navigation-bar/index.ts +++ b/src/@ionic-native/plugins/navigation-bar/index.ts @@ -1,5 +1,6 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; + /** * @beta @@ -28,22 +29,10 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; }) @Injectable() export class NavigationBar extends IonicNativePlugin { - /** - * hide automatically (or not) the navigation bar. - * @param autohide {boolean} - * @return {Promise} - */ - @Cordova({ - callbackStyle: 'object', - successName: 'success', - errorName: 'failure' - }) - setUp(autohide?: boolean): Promise { - return; - } /** - * Hide the navigation bar. + * hide automatically (or not) the navigation bar. + * @param autohide {boolean}   * @return {Promise} */ @Cordova({ @@ -51,7 +40,17 @@ export class NavigationBar extends IonicNativePlugin { successName: 'success', errorName: 'failure' }) - hideNavigationBar(): Promise { - return; - } + setUp(autohide?: boolean): Promise { return; } + + /** + * Hide the navigation bar.  + * @return {Promise} + */ + @Cordova({ + callbackStyle: 'object', + successName: 'success', + errorName: 'failure' + }) + hideNavigationBar(): Promise { return; } + } diff --git a/src/@ionic-native/plugins/network-interface/index.ts b/src/@ionic-native/plugins/network-interface/index.ts index e94ac7951..7a68fb12a 100644 --- a/src/@ionic-native/plugins/network-interface/index.ts +++ b/src/@ionic-native/plugins/network-interface/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; /** * @name Network Interface @@ -26,17 +26,11 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-networkinterface', pluginRef: 'networkinterface', repo: 'https://github.com/salbahra/cordova-plugin-networkinterface', - platforms: [ - 'Android', - 'BlackBerry 10', - 'Browser', - 'iOS', - 'Windows', - 'Windows Phone' - ] + platforms: ['Android', 'BlackBerry 10', 'Browser', 'iOS', 'Windows', 'Windows Phone'], }) @Injectable() export class NetworkInterface extends IonicNativePlugin { + @Cordova() getIPAddress(): Promise { return; diff --git a/src/@ionic-native/plugins/network/index.ts b/src/@ionic-native/plugins/network/index.ts index e1d641ed9..3148bcd8c 100644 --- a/src/@ionic-native/plugins/network/index.ts +++ b/src/@ionic-native/plugins/network/index.ts @@ -1,14 +1,8 @@ +import { Injectable } from '@angular/core'; +import { Cordova, CordovaProperty, Plugin, CordovaCheck, IonicNativePlugin } from '@ionic-native/core'; +import { Observable } from 'rxjs/Observable'; import 'rxjs/add/observable/merge'; -import { Injectable } from '@angular/core'; -import { - Cordova, - CordovaCheck, - CordovaProperty, - IonicNativePlugin, - Plugin -} from '@ionic-native/core'; -import { Observable } from 'rxjs/Observable'; declare const navigator: any; @@ -63,17 +57,20 @@ declare const navigator: any; }) @Injectable() export class Network extends IonicNativePlugin { + /** * Connection type * @return {string} */ - @CordovaProperty type: string; + @CordovaProperty + type: string; /** * Downlink Max Speed * @return {string} */ - @CordovaProperty downlinkMax: string; + @CordovaProperty + downlinkMax: string; /** * Returns an observable to watch connection changes @@ -92,9 +89,7 @@ export class Network extends IonicNativePlugin { eventObservable: true, event: 'offline' }) - onDisconnect(): Observable { - return; - } + onDisconnect(): Observable { return; } /** * Get notified when the device goes online @@ -104,7 +99,6 @@ export class Network extends IonicNativePlugin { eventObservable: true, event: 'online' }) - onConnect(): Observable { - return; - } + onConnect(): Observable { return; } + } diff --git a/src/@ionic-native/plugins/nfc/index.ts b/src/@ionic-native/plugins/nfc/index.ts index 703e197d4..0d885f7e6 100644 --- a/src/@ionic-native/plugins/nfc/index.ts +++ b/src/@ionic-native/plugins/nfc/index.ts @@ -1,12 +1,6 @@ import { Injectable } from '@angular/core'; -import { - Cordova, - CordovaProperty, - IonicNativePlugin, - Plugin -} from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin, CordovaProperty } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; - declare let window: any; export interface NdefEvent { @@ -73,8 +67,8 @@ export interface NdefTag { platforms: ['Android', 'BlackBerry 10', 'Windows', 'Windows Phone 8'] }) /** - *@{ NFC } class methods - */ +*@{ NFC } class methods +*/ @Injectable() export class NFC extends IonicNativePlugin { /** @@ -90,9 +84,7 @@ export class NFC extends IonicNativePlugin { clearFunction: 'invalidateSession', clearWithArgs: true }) - beginSession(onSuccess?: Function, onFailure?: Function): Observable { - return; - } + beginSession(onSuccess?: Function, onFailure?: Function): Observable { return; } /** * Registers an event listener for any NDEF tag. @@ -107,12 +99,7 @@ export class NFC extends IonicNativePlugin { clearFunction: 'removeNdefListener', clearWithArgs: true }) - addNdefListener( - onSuccess?: Function, - onFailure?: Function - ): Observable { - return; - } + addNdefListener(onSuccess?: Function, onFailure?: Function): Observable { return; } /** * Registers an event listener for tags matching any tag type. @@ -127,12 +114,7 @@ export class NFC extends IonicNativePlugin { clearFunction: 'removeTagDiscoveredListener', clearWithArgs: true }) - addTagDiscoveredListener( - onSuccess?: Function, - onFailure?: Function - ): Observable { - return; - } + addTagDiscoveredListener(onSuccess?: Function, onFailure?: Function): Observable { return; } /** * Registers an event listener for NDEF tags matching a specified MIME type. @@ -148,13 +130,7 @@ export class NFC extends IonicNativePlugin { clearFunction: 'removeMimeTypeListener', clearWithArgs: true }) - addMimeTypeListener( - mimeType: string, - onSuccess?: Function, - onFailure?: Function - ): Observable { - return; - } + addMimeTypeListener(mimeType: string, onSuccess?: Function, onFailure?: Function): Observable { return; } /** * Registers an event listener for formatable NDEF tags. @@ -167,12 +143,7 @@ export class NFC extends IonicNativePlugin { successIndex: 0, errorIndex: 3 }) - addNdefFormatableListener( - onSuccess?: Function, - onFailure?: Function - ): Observable { - return; - } + addNdefFormatableListener(onSuccess?: Function, onFailure?: Function): Observable { return; } /** * Writes an NdefMessage(array of ndef records) to a NFC tag. @@ -180,17 +151,13 @@ export class NFC extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - write(message: any[]): Promise { - return; - } + write(message: any[]): Promise { return; } /** * Makes a NFC tag read only. **Warning** this is permanent. * @returns {Promise} */ @Cordova() - makeReadyOnly(): Promise { - return; - } + makeReadyOnly(): Promise { return; } /** * Shares an NDEF Message(array of ndef records) via peer-to-peer. @@ -198,26 +165,20 @@ export class NFC extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - share(message: any[]): Promise { - return; - } + share(message: any[]): Promise { return; } /** * Stop sharing NDEF data via peer-to-peer. * @returns {Promise} */ @Cordova() - unshare(): Promise { - return; - } + unshare(): Promise { return; } /** * Erase a NDEF tag */ @Cordova() - erase(): Promise { - return; - } + erase(): Promise { return; } /** * Send a file to another device via NFC handover. @@ -225,58 +186,46 @@ export class NFC extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - handover(uris: string[]): Promise { - return; - } + handover(uris: string[]): Promise { return; } /** * Stop sharing NDEF data via NFC handover. * @returns {Promise} */ @Cordova() - stopHandover(): Promise { - return; - } + stopHandover(): Promise { return; } /** * Opens the device's NFC settings. * @returns {Promise} */ @Cordova() - showSettings(): Promise { - return; - } + showSettings(): Promise { return; } /** * Check if NFC is available and enabled on this device. * @returns {Promise} */ @Cordova() - enabled(): Promise { - return; - } + enabled(): Promise { return; } /** - * @{ NFC } class utility methods - * for use with - */ + * @{ NFC } class utility methods + * for use with + */ /** * Convert byte array to string * @param bytes {number[]} * @returns {string} */ @Cordova({ sync: true }) - bytesToString(bytes: number[]): string { - return; - } + bytesToString(bytes: number[]): string { return; } /** * Convert string to byte array. * @param str {string} * @returns {number[]} */ @Cordova({ sync: true }) - stringToBytes(str: string): number[] { - return; - } + stringToBytes(str: string): number[] { return; }; /** * Convert byte array to hex string * @@ -284,9 +233,8 @@ export class NFC extends IonicNativePlugin { * @returns {string} */ @Cordova({ sync: true }) - bytesToHexString(bytes: number[]): string { - return; - } + bytesToHexString(bytes: number[]): string { return; }; + } /** * @hidden @@ -297,113 +245,92 @@ export class NFC extends IonicNativePlugin { pluginRef: 'ndef' }) /** - *@{ Ndef } class methods - *@description - * Utility methods for creating ndef records for the ndef tag format. - * Move records into array before usage. Then pass an array to methods as parameters. - * Do not pass bytes as parameters for these methods, conversion is built in. - * For usage with nfc.write() and nfc.share() - */ +*@{ Ndef } class methods +*@description +* Utility methods for creating ndef records for the ndef tag format. +* Move records into array before usage. Then pass an array to methods as parameters. +* Do not pass bytes as parameters for these methods, conversion is built in. +* For usage with nfc.write() and nfc.share() +*/ @Injectable() export class Ndef extends IonicNativePlugin { - @CordovaProperty TNF_EMPTY: number; - @CordovaProperty TNF_WELL_KNOWN: number; - @CordovaProperty TNF_MIME_MEDIA: number; - @CordovaProperty TNF_ABSOLUTE_URI: number; - @CordovaProperty TNF_EXTERNAL_TYPE: number; - @CordovaProperty TNF_UNKNOWN: number; - @CordovaProperty TNF_UNCHANGED: number; - @CordovaProperty TNF_RESERVED: number; - @CordovaProperty RTD_TEXT: number[]; - @CordovaProperty RTD_URI: number[]; - @CordovaProperty RTD_SMART_POSTER: number[]; - @CordovaProperty RTD_ALTERNATIVE_CARRIER: number[]; - @CordovaProperty RTD_HANDOVER_CARRIER: number[]; - @CordovaProperty RTD_HANDOVER_REQUEST: number[]; - @CordovaProperty RTD_HANDOVER_SELECT: number[]; + @CordovaProperty + TNF_EMPTY: number; + @CordovaProperty + TNF_WELL_KNOWN: number; + @CordovaProperty + TNF_MIME_MEDIA: number; + @CordovaProperty + TNF_ABSOLUTE_URI: number; + @CordovaProperty + TNF_EXTERNAL_TYPE: number; + @CordovaProperty + TNF_UNKNOWN: number; + @CordovaProperty + TNF_UNCHANGED: number; + @CordovaProperty + TNF_RESERVED: number; + + @CordovaProperty + RTD_TEXT: number[]; + @CordovaProperty + RTD_URI: number[]; + @CordovaProperty + RTD_SMART_POSTER: number[]; + @CordovaProperty + RTD_ALTERNATIVE_CARRIER: number[]; + @CordovaProperty + RTD_HANDOVER_CARRIER: number[]; + @CordovaProperty + RTD_HANDOVER_REQUEST: number[]; + @CordovaProperty + RTD_HANDOVER_SELECT: number[]; @Cordova({ sync: true }) - record( - tnf: number, - type: number[] | string, - id: number[] | string, - payload: number[] | string - ): NdefRecord { - return; - } + record(tnf: number, type: number[] | string, id: number[] | string, payload: number[] | string): NdefRecord { return; } @Cordova({ sync: true }) - textRecord( - text: string, - languageCode: string, - id: number[] | string - ): NdefRecord { - return; - } + textRecord(text: string, languageCode: string, id: number[] | string): NdefRecord { return; } @Cordova({ sync: true }) - uriRecord(uri: string, id: number[] | string): NdefRecord { - return; - } + uriRecord(uri: string, id: number[] | string): NdefRecord { return; } @Cordova({ sync: true }) - absoluteUriRecord( - uri: string, - payload: number[] | string, - id: number[] | string - ): NdefRecord { - return; - } + absoluteUriRecord(uri: string, payload: number[] | string, id: number[] | string): NdefRecord { return; } @Cordova({ sync: true }) - mimeMediaRecord(mimeType: string, payload: string): NdefRecord { - return; - } + mimeMediaRecord(mimeType: string, payload: string): NdefRecord { return; } @Cordova({ sync: true }) - smartPoster(ndefRecords: any[], id?: number[] | string): NdefRecord { - return; - } + smartPoster(ndefRecords: any[], id?: number[] | string ): NdefRecord { return; } @Cordova({ sync: true }) - emptyRecord(): NdefRecord { - return; - } + emptyRecord(): NdefRecord { return; } @Cordova({ sync: true }) - androidApplicationRecord(packageName: string): NdefRecord { - return; - } + androidApplicationRecord(packageName: string): NdefRecord { return; } @Cordova({ sync: true }) - encodeMessage(ndefRecords: any): any { - return; - } + encodeMessage(ndefRecords: any): any { return; } @Cordova({ sync: true }) - decodeMessage(bytes: any): any { - return; - } + decodeMessage(bytes: any): any { return; } @Cordova({ sync: true }) - docodeTnf(tnf_byte: any): any { - return; - } + docodeTnf(tnf_byte: any): any { return; } @Cordova({ sync: true }) - encodeTnf(mb: any, me: any, cf: any, sr: any, il: any, tnf: any): any { - return; - } + encodeTnf(mb: any, me: any, cf: any, sr: any, il: any, tnf: any): any { return; } @Cordova({ sync: true }) - tnfToString(tnf: any): string { - return; - } + tnfToString(tnf: any): string { return; } - @CordovaProperty textHelper: TextHelper; + @CordovaProperty + textHelper: TextHelper; - @CordovaProperty uriHelper: UriHelper; + @CordovaProperty + uriHelper: UriHelper; } /** @@ -416,51 +343,32 @@ export class Ndef extends IonicNativePlugin { }) @Injectable() export class NfcUtil extends IonicNativePlugin { - @Cordova({ sync: true }) - toHex(i: number): string { - return; - } @Cordova({ sync: true }) - toPrintable(i: number): string { - return; - } + toHex(i: number): string { return; } @Cordova({ sync: true }) - bytesToString(i: number[]): string { - return; - } + toPrintable(i: number): string { return; } @Cordova({ sync: true }) - stringToBytes(s: string): number[] { - return; - } + bytesToString(i: number[]): string { return; } @Cordova({ sync: true }) - bytesToHexString(bytes: number[]): string { - return; - } + stringToBytes(s: string): number[] { return; } @Cordova({ sync: true }) - isType(record: NdefRecord, tnf: number, type: number[] | string): boolean { - return; - } + bytesToHexString(bytes: number[]): string { return; } + + @Cordova({ sync: true }) + isType(record: NdefRecord, tnf: number, type: number[]|string): boolean { return; } } export class TextHelper extends IonicNativePlugin { - decodePayload(data: number[]): string { - return; - } - encodePayload(text: string, lang: string): number[] { - return; - } + decodePayload(data: number[]): string { return; } + encodePayload(text: string, lang: string): number[] { return; } } export class UriHelper extends IonicNativePlugin { - decodePayload(data: number[]): string { - return; - } - encodePayload(uri: string): number[] { - return; - } + decodePayload(data: number[]): string { return; } + encodePayload(uri: string): number[] { return; } } diff --git a/src/@ionic-native/plugins/onesignal/index.ts b/src/@ionic-native/plugins/onesignal/index.ts index 28fbae8ed..a0e5de2af 100644 --- a/src/@ionic-native/plugins/onesignal/index.ts +++ b/src/@ionic-native/plugins/onesignal/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export interface OSNotification { diff --git a/src/@ionic-native/plugins/open-native-settings/index.ts b/src/@ionic-native/plugins/open-native-settings/index.ts index 4e572143f..2d5e9c4ff 100644 --- a/src/@ionic-native/plugins/open-native-settings/index.ts +++ b/src/@ionic-native/plugins/open-native-settings/index.ts @@ -1,11 +1,11 @@ +import { Plugin, IonicNativePlugin, Cordova } from '@ionic-native/core'; import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name Open Native Settings * @description - * Plugin to open native screens of iOS/android settings - * @usage + * Plugin to open native screens of iOS/android settings + * @usage * You can open any of these settings: * ``` * "about", // ios @@ -78,7 +78,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; "wifi_ip", // android "wifi", // ios, android "wireless" // android - ``` + ``` * ```typescript * import { OpenNativeSettings } from '@ionic-native/open-native-settings'; * @@ -99,13 +99,13 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; }) @Injectable() export class OpenNativeSettings extends IonicNativePlugin { + /** * Opens a setting dialog * @param setting {string} setting name * @return {Promise} */ @Cordova() - open(setting: string): Promise { - return; - } + open(setting: string): Promise { return; } + } diff --git a/src/@ionic-native/plugins/paypal/index.ts b/src/@ionic-native/plugins/paypal/index.ts index 433067dc4..497b980e1 100644 --- a/src/@ionic-native/plugins/paypal/index.ts +++ b/src/@ionic-native/plugins/paypal/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; /** * @name PayPal @@ -78,9 +78,7 @@ export class PayPal extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - version(): Promise { - return; - } + version(): Promise { return; } /** * You must preconnect to PayPal to prepare the device for processing payments. @@ -92,9 +90,7 @@ export class PayPal extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - init(clientIdsForEnvironments: PayPalEnvironment): Promise { - return; - } + init(clientIdsForEnvironments: PayPalEnvironment): Promise { return; } /** * You must preconnect to PayPal to prepare the device for processing payments. @@ -106,12 +102,7 @@ export class PayPal extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - prepareToRender( - environment: string, - configuration: PayPalConfiguration - ): Promise { - return; - } + prepareToRender(environment: string, configuration: PayPalConfiguration): Promise { return; } /** * Start PayPal UI to collect payment from the user. @@ -122,9 +113,7 @@ export class PayPal extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - renderSinglePaymentUI(payment: PayPalPayment): Promise { - return; - } + renderSinglePaymentUI(payment: PayPalPayment): Promise { return; } /** * Once a user has consented to future payments, when the user subsequently initiates a PayPal payment @@ -137,18 +126,14 @@ export class PayPal extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - clientMetadataID(): Promise { - return; - } + clientMetadataID(): Promise { return; } /** * Please Read Docs on Future Payments at https://github.com/paypal/PayPal-iOS-SDK#future-payments * @returns {Promise} */ @Cordova() - renderFuturePaymentUI(): Promise { - return; - } + renderFuturePaymentUI(): Promise { return; } /** * Please Read Docs on Profile Sharing at https://github.com/paypal/PayPal-iOS-SDK#profile-sharing @@ -158,9 +143,7 @@ export class PayPal extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - renderProfileSharingUI(scopes: string[]): Promise { - return; - } + renderProfileSharingUI(scopes: string[]): Promise { return; } } export interface PayPalEnvironment { @@ -172,13 +155,7 @@ export interface PayPalEnvironment { * @hidden */ export class PayPalPayment { - constructor( - amount: string, - currency: string, - shortDescription: string, - intent: string, - details?: PayPalPaymentDetails - ) { + constructor(amount: string, currency: string, shortDescription: string, intent: string, details?: PayPalPaymentDetails) { this.amount = amount; this.currency = currency; this.shortDescription = shortDescription; @@ -228,9 +205,9 @@ export class PayPalPayment { items: Array; /** - * Optional payee email, if your app is paying a third-party merchant. - * The payee's email. It must be a valid PayPal email address. - */ + * Optional payee email, if your app is paying a third-party merchant. + * The payee's email. It must be a valid PayPal email address. + */ payeeEmail: string; /** @@ -258,13 +235,7 @@ export class PayPalItem { * @param {String} currency: ISO standard currency code. * @param {String} sku: The stock keeping unit for this item. 50 characters max (optional) */ - constructor( - name: string, - quantity: number, - price: string, - currency: string, - sku?: string - ) { + constructor(name: string, quantity: number, price: string, currency: string, sku?: string) { this.name = name; this.quantity = quantity; this.price = price; @@ -434,6 +405,7 @@ export class PayPalConfiguration implements PayPalConfigurationOptions { * see defaults for options available */ constructor(options?: PayPalConfigurationOptions) { + let defaults: PayPalConfigurationOptions = { defaultUserEmail: null, defaultUserPhoneCountryCode: null, @@ -478,15 +450,7 @@ export class PayPalShippingAddress { * @param {String} postalCode: ZIP code or equivalent is usually required for countries that have them. 20 characters max. Required in certain countries. * @param {String} countryCode: 2-letter country code. 2 characters max. */ - constructor( - recipientName: string, - line1: string, - line2: string, - city: string, - state: string, - postalCode: string, - countryCode: string - ) { + constructor(recipientName: string, line1: string, line2: string, city: string, state: string, postalCode: string, countryCode: string) { this.recipientName = recipientName; this.line1 = line1; this.line2 = line2; diff --git a/src/@ionic-native/plugins/pedometer/index.ts b/src/@ionic-native/plugins/pedometer/index.ts index f4e369167..773db656d 100644 --- a/src/@ionic-native/plugins/pedometer/index.ts +++ b/src/@ionic-native/plugins/pedometer/index.ts @@ -1,6 +1,6 @@ -import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; +import { Injectable } from '@angular/core'; /** * Interface of a pedometer data object which is returned by watching for new data or by recieving historical data @@ -43,14 +43,13 @@ export interface IPedometerData { }) @Injectable() export class Pedometer extends IonicNativePlugin { + /** * Checks if step counting is available. Only works on iOS. * @return {Promise} Returns a promise that resolves when feature is supported (true) or not supported (false) */ @Cordova() - isStepCountingAvailable(): Promise { - return; - } + isStepCountingAvailable(): Promise { return; } /** * Distance estimation indicates the ability to use step information to supply the approximate distance travelled by the user. @@ -59,9 +58,7 @@ export class Pedometer extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves when feature is supported (true) or not supported (false) */ @Cordova() - isDistanceAvailable(): Promise { - return; - } + isDistanceAvailable(): Promise { return; } /** * Floor counting indicates the ability to count the number of floors the user walks up or down using stairs. @@ -70,33 +67,27 @@ export class Pedometer extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves when feature is supported (true) or not supported (false) */ @Cordova() - isFloorCountingAvailable(): Promise { - return; - } + isFloorCountingAvailable(): Promise { return; } /** - * Starts the delivery of recent pedestrian-related data to your Cordova app. - * - * When the app is suspended, the delivery of updates stops temporarily. - * Upon returning to foreground or background execution, the pedometer object begins updates again. - * @return {Observable} Returns a Observable that recieves repeatly data from pedometer in background. - */ + * Starts the delivery of recent pedestrian-related data to your Cordova app. + * + * When the app is suspended, the delivery of updates stops temporarily. + * Upon returning to foreground or background execution, the pedometer object begins updates again. + * @return {Observable} Returns a Observable that recieves repeatly data from pedometer in background. + */ @Cordova({ observable: true, clearFunction: 'stopPedometerUpdates' }) - startPedometerUpdates(): Observable { - return; - } + startPedometerUpdates(): Observable { return; } /** * Stops the delivery of recent pedestrian data updates to your Cordova app. * @return {Promise} Returns a promise that resolves when pedometer watching was stopped */ @Cordova() - stopPedometerUpdates(): Promise { - return; - } + stopPedometerUpdates(): Promise { return; } /** * Retrieves the data between the specified start and end dates. @@ -109,10 +100,6 @@ export class Pedometer extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - queryData(options: { - startDate: Date; - endDate: Date; - }): Promise { - return; - } + queryData(options: { startDate: Date, endDate: Date }): Promise { return; } + } diff --git a/src/@ionic-native/plugins/phonegap-local-notification/index.ts b/src/@ionic-native/plugins/phonegap-local-notification/index.ts index 797d9e909..50ec81749 100644 --- a/src/@ionic-native/plugins/phonegap-local-notification/index.ts +++ b/src/@ionic-native/plugins/phonegap-local-notification/index.ts @@ -1,11 +1,5 @@ import { Injectable } from '@angular/core'; -import { - checkAvailability, - Cordova, - CordovaInstance, - IonicNativePlugin, - Plugin -} from '@ionic-native/core'; +import { Cordova, CordovaInstance, Plugin, IonicNativePlugin, checkAvailability } from '@ionic-native/core'; declare const Notification: any; @@ -13,25 +7,22 @@ declare const Notification: any; * @hidden */ export class PLNObject { + private _objectInstance: any; constructor(title: string, options: LocalNotificationOptions) { - if ( - checkAvailability( - PhonegapLocalNotification.pluginRef, - null, - PhonegapLocalNotification.pluginName - ) === true - ) { + if (checkAvailability(PhonegapLocalNotification.pluginRef, null, PhonegapLocalNotification.pluginName) === true) { this._objectInstance = new Notification(title, options); } } @CordovaInstance({ sync: true }) - close(): void {} + close(): void { } + } export interface LocalNotificationOptions { + /** * Sets the direction of the notification. One of "auto", "ltr" or "rtl" */ @@ -56,6 +47,7 @@ export interface LocalNotificationOptions { * Sets the icon of the notification */ icon?: string; + } /** @@ -102,22 +94,20 @@ export interface LocalNotificationOptions { }) @Injectable() export class PhonegapLocalNotification extends IonicNativePlugin { + /** * A global object that lets you interact with the Notification API. * @param title {string} Title of the local notification. * @param Options {LocalNotificationOptions} An object containing optional property/value pairs. * @returns {PLNObject} */ - create(title: string, options: LocalNotificationOptions) { - return new PLNObject(title, options); - } + create(title: string, options: LocalNotificationOptions) { return new PLNObject(title, options); } /** - * requests permission from the user to show a local notification. - * @returns {Promise} - */ + * requests permission from the user to show a local notification. + * @returns {Promise} + */ @Cordova() - requestPermission(): Promise { - return; - } + requestPermission(): Promise { return; } + } diff --git a/src/@ionic-native/plugins/photo-library/index.ts b/src/@ionic-native/plugins/photo-library/index.ts index 9f51214d4..3ca7cf3bd 100644 --- a/src/@ionic-native/plugins/photo-library/index.ts +++ b/src/@ionic-native/plugins/photo-library/index.ts @@ -1,13 +1,7 @@ -import { Injectable } from '@angular/core'; -import { - Cordova, - CordovaOptions, - IonicNativePlugin, - Plugin, - wrap -} from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin, CordovaOptions, wrap } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; import { Observer } from 'rxjs/Observer'; +import { Injectable } from '@angular/core'; /** * @hidden @@ -28,22 +22,12 @@ export interface CordovaFiniteObservableOptions extends CordovaOptions { * * Wraps method that returns an observable that can be completed. Provided opts.resultFinalPredicate dictates when the observable completes. */ -export function CordovaFiniteObservable( - opts: CordovaFiniteObservableOptions = {} -) { +export function CordovaFiniteObservable(opts: CordovaFiniteObservableOptions = {}) { opts.observable = true; - return ( - target: Object, - methodName: string, - descriptor: TypedPropertyDescriptor - ) => { + return (target: Object, methodName: string, descriptor: TypedPropertyDescriptor) => { return { value: function(...args: any[]) { - const wrappedObservable: Observable = wrap( - this, - methodName, - opts - ).apply(this, args); + const wrappedObservable: Observable = wrap(this, methodName, opts).apply(this, args); return new Observable((observer: Observer) => { const wrappedSubscription = wrappedObservable.subscribe({ next: (x: any) => { @@ -52,12 +36,8 @@ export function CordovaFiniteObservable( observer.complete(); } }, - error: (err: any) => { - observer.error(err); - }, - complete: () => { - observer.complete(); - } + error: (err: any) => { observer.error(err); }, + complete: () => { observer.complete(); } }); return () => { wrappedSubscription.unsubscribe(); @@ -111,13 +91,13 @@ export function CordovaFiniteObservable( plugin: 'cordova-plugin-photo-library', pluginRef: 'cordova.plugins.photoLibrary', repo: 'https://github.com/terikon/cordova-plugin-photo-library', - install: - 'ionic cordova plugin add cordova-plugin-photo-library --variable PHOTO_LIBRARY_USAGE_DESCRIPTION="To choose photos"', + install: 'ionic cordova plugin add cordova-plugin-photo-library --variable PHOTO_LIBRARY_USAGE_DESCRIPTION="To choose photos"', installVariables: ['PHOTO_LIBRARY_USAGE_DESCRIPTION'], platforms: ['Android', 'Browser', 'iOS'] }) @Injectable() export class PhotoLibrary extends IonicNativePlugin { + /** * Retrieves library items. Library item contains photo metadata like width and height, as well as photoURL and thumbnailURL. * @param options {GetLibraryOptions} Optional, like thumbnail size and chunks settings. @@ -128,9 +108,7 @@ export class PhotoLibrary extends IonicNativePlugin { resultFinalPredicate: 'isLastChunk', resultTransform: 'library' }) - getLibrary(options?: GetLibraryOptions): Observable { - return; - } + getLibrary(options?: GetLibraryOptions): Observable { return; } /** * Asks user permission to access photo library. @@ -140,9 +118,7 @@ export class PhotoLibrary extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - requestAuthorization(options?: RequestAuthorizationOptions): Promise { - return; - } + requestAuthorization(options?: RequestAuthorizationOptions): Promise { return; } /** * Returns list of photo albums on device. @@ -151,9 +127,7 @@ export class PhotoLibrary extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - getAlbums(): Promise { - return; - } + getAlbums(): Promise { return; } /** * Provides means to request URL of thumbnail, with specified size or quality. @@ -165,12 +139,7 @@ export class PhotoLibrary extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - getThumbnailURL( - photo: string | LibraryItem, - options?: GetThumbnailOptions - ): Promise { - return; - } + getThumbnailURL(photo: string | LibraryItem, options?: GetThumbnailOptions): Promise { return; } /** * Provides means to request photo URL by id. @@ -182,9 +151,7 @@ export class PhotoLibrary extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - getPhotoURL(photo: string | LibraryItem, options?: any): Promise { - return; - } + getPhotoURL(photo: string | LibraryItem, options?: any): Promise { return; } /** * Returns thumbnail as Blob. @@ -196,12 +163,7 @@ export class PhotoLibrary extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - getThumbnail( - photo: string | LibraryItem, - options?: GetThumbnailOptions - ): Promise { - return; - } + getThumbnail(photo: string | LibraryItem, options?: GetThumbnailOptions): Promise { return; } /** * Returns photo as Blob. @@ -213,9 +175,7 @@ export class PhotoLibrary extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - getPhoto(photo: string | LibraryItem, options?: any): Promise { - return; - } + getPhoto(photo: string | LibraryItem, options?: any): Promise { return; } /** * Saves image to specified album. Album will be created if not exists. @@ -229,13 +189,7 @@ export class PhotoLibrary extends IonicNativePlugin { successIndex: 2, errorIndex: 3 }) - saveImage( - url: string, - album: AlbumItem | string, - options?: GetThumbnailOptions - ): Promise { - return; - } + saveImage(url: string, album: AlbumItem | string, options?: GetThumbnailOptions): Promise { return; } /** * Saves video to specified album. Album will be created if not exists. @@ -247,9 +201,8 @@ export class PhotoLibrary extends IonicNativePlugin { successIndex: 2, errorIndex: 3 }) - saveVideo(url: string, album: AlbumItem | string): Promise { - return; - } + saveVideo(url: string, album: AlbumItem | string): Promise { return; } + } /** diff --git a/src/@ionic-native/plugins/photo-viewer/index.ts b/src/@ionic-native/plugins/photo-viewer/index.ts index acdbed769..5c4481d05 100644 --- a/src/@ionic-native/plugins/photo-viewer/index.ts +++ b/src/@ionic-native/plugins/photo-viewer/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; export interface PhotoViewerOptions { /** @@ -39,6 +39,6 @@ export class PhotoViewer extends IonicNativePlugin { * @param title {string} * @param options {PhotoViewerOptions} */ - @Cordova({ sync: true }) - show(url: string, title?: string, options?: PhotoViewerOptions): void {} + @Cordova({sync: true}) + show(url: string, title?: string, options?: PhotoViewerOptions): void { } } diff --git a/src/@ionic-native/plugins/pin-check/index.ts b/src/@ionic-native/plugins/pin-check/index.ts index e7eb75bd6..48b5098bc 100644 --- a/src/@ionic-native/plugins/pin-check/index.ts +++ b/src/@ionic-native/plugins/pin-check/index.ts @@ -1,8 +1,8 @@ +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** - * @name Pin Check + * @name Pin Check * @description * This plugin is for use with Apache Cordova and allows your application to check whether pin/keyguard or passcode is setup on iOS and Android phones. * @@ -34,7 +34,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; @Injectable() export class PinCheck extends IonicNativePlugin { /** - * check whether pin/keyguard or passcode is setup + * check whether pin/keyguard or passcode is setup * @returns {Promise} */ @Cordova() diff --git a/src/@ionic-native/plugins/pin-dialog/index.ts b/src/@ionic-native/plugins/pin-dialog/index.ts index 2a8e67653..d93e4b984 100644 --- a/src/@ionic-native/plugins/pin-dialog/index.ts +++ b/src/@ionic-native/plugins/pin-dialog/index.ts @@ -1,5 +1,6 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; + /** * @name Pin Dialog @@ -43,11 +44,6 @@ export class PinDialog extends IonicNativePlugin { successIndex: 1, errorIndex: 4 // no error callback }) - prompt( - message: string, - title: string, - buttons: string[] - ): Promise<{ buttonIndex: number; input1: string }> { - return; - } + prompt(message: string, title: string, buttons: string[]): Promise<{ buttonIndex: number, input1: string }> { return; } + } diff --git a/src/@ionic-native/plugins/pinterest/index.ts b/src/@ionic-native/plugins/pinterest/index.ts index 81e358e98..7b6ffc804 100644 --- a/src/@ionic-native/plugins/pinterest/index.ts +++ b/src/@ionic-native/plugins/pinterest/index.ts @@ -1,10 +1,5 @@ import { Injectable } from '@angular/core'; -import { - Cordova, - CordovaProperty, - IonicNativePlugin, - Plugin -} from '@ionic-native/core'; +import { Plugin, Cordova, CordovaProperty, IonicNativePlugin } from '@ionic-native/core'; export interface PinterestUser { /** @@ -177,13 +172,13 @@ export interface PinterestPin { plugin: 'cordova-plugin-pinterest', pluginRef: 'cordova.plugins.Pinterest', repo: 'https://github.com/zyramedia/cordova-plugin-pinterest', - install: - 'ionic cordova plugin add cordova-plugin-pinterest --variable APP_ID=YOUR_APP_ID', + install: 'ionic cordova plugin add cordova-plugin-pinterest --variable APP_ID=YOUR_APP_ID', installVariables: ['APP_ID'], platforms: ['Android', 'iOS'] }) @Injectable() export class Pinterest extends IonicNativePlugin { + /** * Convenience constant for authentication scopes */ @@ -201,9 +196,7 @@ export class Pinterest extends IonicNativePlugin { * @returns {Promise} The response object will contain the user's profile data, as well as the access token (if you need to use it elsewhere, example: send it to your server and perform actions on behalf of the user). */ @Cordova() - login(scopes: string[]): Promise { - return; - } + login(scopes: string[]): Promise { return; } /** * Gets the authenticated user's profile @@ -213,9 +206,7 @@ export class Pinterest extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - getMe(fields?: string): Promise { - return; - } + getMe(fields?: string): Promise { return; } /** * @@ -226,9 +217,7 @@ export class Pinterest extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - getMyPins(fields?: string, limit?: number): Promise> { - return; - } + getMyPins(fields?: string, limit?: number): Promise> { return; } /** * @@ -239,9 +228,7 @@ export class Pinterest extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - getMyBoards(fields?: string, limit?: number): Promise> { - return; - } + getMyBoards(fields?: string, limit?: number): Promise> { return; } /** * Get the authenticated user's likes. @@ -252,9 +239,7 @@ export class Pinterest extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - getMyLikes(fields?: string, limit?: number): Promise> { - return; - } + getMyLikes(fields?: string, limit?: number): Promise> { return; } /** * Get the authenticated user's followers. @@ -265,12 +250,7 @@ export class Pinterest extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - getMyFollowers( - fields?: string, - limit?: number - ): Promise> { - return; - } + getMyFollowers(fields?: string, limit?: number): Promise> { return; } /** * Get the authenticated user's followed boards. @@ -281,12 +261,7 @@ export class Pinterest extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - getMyFollowedBoards( - fields?: string, - limit?: number - ): Promise> { - return; - } + getMyFollowedBoards(fields?: string, limit?: number): Promise> { return; } /** * Get the authenticated user's followed interests. @@ -297,9 +272,7 @@ export class Pinterest extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - getMyFollowedInterests(fields?: string, limit?: number): Promise { - return; - } + getMyFollowedInterests(fields?: string, limit?: number): Promise { return; } /** * Get a user's profile. @@ -311,9 +284,7 @@ export class Pinterest extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - getUser(username: string, fields?: string): Promise { - return; - } + getUser(username: string, fields?: string): Promise { return; } /** * Get a board's data. @@ -325,9 +296,7 @@ export class Pinterest extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - getBoard(boardId: string, fields?: string): Promise { - return; - } + getBoard(boardId: string, fields?: string): Promise { return; } /** * Get Pins of a specific board. @@ -340,13 +309,7 @@ export class Pinterest extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - getBoardPins( - boardId: string, - fields?: string, - limit?: number - ): Promise> { - return; - } + getBoardPins(boardId: string, fields?: string, limit?: number): Promise> { return; } /** * Delete a board. @@ -354,9 +317,7 @@ export class Pinterest extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - deleteBoard(boardId: string): Promise { - return; - } + deleteBoard(boardId: string): Promise { return; } /** * Create a new board for the authenticated user. @@ -368,9 +329,7 @@ export class Pinterest extends IonicNativePlugin { successIndex: 2, errorIndex: 3 }) - createBoard(name: string, desc?: string): Promise { - return; - } + createBoard(name: string, desc?: string): Promise { return; } /** * Get a Pin by ID. @@ -382,9 +341,7 @@ export class Pinterest extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - getPin(pinId: string, fields?: string): Promise { - return; - } + getPin(pinId: string, fields?: string): Promise { return; } /** * Deletes a pin @@ -392,9 +349,7 @@ export class Pinterest extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - deletePin(pinId: string): Promise { - return; - } + deletePin(pinId: string): Promise { return; } /** * Creates a Pin @@ -408,12 +363,6 @@ export class Pinterest extends IonicNativePlugin { successIndex: 4, errorIndex: 5 }) - createPin( - note: string, - boardId: string, - imageUrl: string, - link?: string - ): Promise { - return; - } + createPin(note: string, boardId: string, imageUrl: string, link?: string): Promise { return; } + } diff --git a/src/@ionic-native/plugins/power-management/index.ts b/src/@ionic-native/plugins/power-management/index.ts index a429c9318..ecd86188e 100644 --- a/src/@ionic-native/plugins/power-management/index.ts +++ b/src/@ionic-native/plugins/power-management/index.ts @@ -1,6 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; - +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; /** * @name Power Management * @description @@ -35,27 +34,21 @@ export class PowerManagement extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - acquire(): Promise { - return; - } + acquire(): Promise { return; } /** * This acquires a partial wakelock, allowing the screen to be dimmed. * @returns {Promise} */ @Cordova() - dim(): Promise { - return; - } + dim(): Promise { return; } /** * Release the wakelock. It's important to do this when you're finished with the wakelock, to avoid unnecessary battery drain. * @returns {Promise} */ @Cordova() - release(): Promise { - return; - } + release(): Promise { return; } /** * By default, the plugin will automatically release a wakelock when your app is paused (e.g. when the screen is turned off, or the user switches to another app). @@ -64,7 +57,5 @@ export class PowerManagement extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - setReleaseOnPause(set: boolean): Promise { - return; - } + setReleaseOnPause(set: boolean): Promise { return; } } diff --git a/src/@ionic-native/plugins/printer/index.ts b/src/@ionic-native/plugins/printer/index.ts index 64d3f6453..bffe3f474 100644 --- a/src/@ionic-native/plugins/printer/index.ts +++ b/src/@ionic-native/plugins/printer/index.ts @@ -1,10 +1,5 @@ import { Injectable } from '@angular/core'; -import { - Cordova, - CordovaCheck, - IonicNativePlugin, - Plugin -} from '@ionic-native/core'; +import { Cordova, CordovaCheck, Plugin, IonicNativePlugin } from '@ionic-native/core'; export interface PrintOptions { /** @@ -79,12 +74,14 @@ export interface PrintOptions { }) @Injectable() export class Printer extends IonicNativePlugin { + /** * Checks whether the device is capable of printing (uses `check()` internally) * @returns {Promise} */ isAvailable(): Promise { - return this.check().then((res: any) => Promise.resolve(res.avail)); + return this.check() + .then((res: any) => Promise.resolve(res.avail)); } /** @@ -94,9 +91,10 @@ export class Printer extends IonicNativePlugin { @CordovaCheck() check(): Promise { return new Promise((resolve: Function) => { - Printer.getPlugin().check((avail: boolean, count: any) => { - resolve({ avail, count }); - }); + Printer.getPlugin() + .check((avail: boolean, count: any) => { + resolve({ avail, count }); + }); }); } @@ -105,9 +103,7 @@ export class Printer extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - pick(): Promise { - return; - } + pick(): Promise { return; } /** * Sends content to the printer. @@ -119,7 +115,6 @@ export class Printer extends IonicNativePlugin { successIndex: 2, errorIndex: 4 }) - print(content: string | HTMLElement, options?: PrintOptions): Promise { - return; - } + print(content: string | HTMLElement, options?: PrintOptions): Promise { return; } + } diff --git a/src/@ionic-native/plugins/pro/index.ts b/src/@ionic-native/plugins/pro/index.ts index c2da879cf..f11477798 100644 --- a/src/@ionic-native/plugins/pro/index.ts +++ b/src/@ionic-native/plugins/pro/index.ts @@ -1,11 +1,5 @@ import { Injectable } from '@angular/core'; -import { - Cordova, - CordovaCheck, - CordovaInstance, - IonicNativePlugin, - Plugin -} from '@ionic-native/core'; +import { Plugin, Cordova, CordovaCheck, CordovaInstance, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; /** @@ -41,25 +35,22 @@ export interface DeployConfig { * @hidden */ export class ProDeploy { - constructor(private _objectInstance: any) {} + + constructor(private _objectInstance: any) { } /** * Re-initialize Deploy plugin with a new App ID and host. Not used in most cases. * @param config A valid Deploy config object */ @CordovaInstance() - init(config: DeployConfig): Promise { - return; - } + init(config: DeployConfig): Promise { return; } /** * Check a channel for an available update * @return {Promise} Resolves with 'true' or 'false', or rejects with an error. */ @CordovaInstance() - check(): Promise { - return; - } + check(): Promise { return; } /** * Download an available version @@ -68,9 +59,7 @@ export class ProDeploy { @CordovaInstance({ observable: true }) - download(): Observable { - return; - } + download(): Observable { return; } /** * Unzip the latest downloaded version @@ -79,43 +68,33 @@ export class ProDeploy { @CordovaInstance({ observable: true }) - extract(): Observable { - return; - } + extract(): Observable { return; } /** * Reload app with the deployed version */ @CordovaInstance() - redirect(): Promise { - return; - } + redirect(): Promise { return; } /** * Get info about the version running on the device * @return {Promise} Information about the current version running on the app. */ @CordovaInstance() - info(): Promise { - return; - } + info(): Promise { return; } /** * List versions stored on the device */ @CordovaInstance() - getVersions(): Promise { - return; - } + getVersions(): Promise { return; } /** * Delete a version stored on the device by UUID * @param version A version UUID */ @CordovaInstance() - deleteVersion(version: string): Promise { - return; - } + deleteVersion(version: string): Promise { return; } } /** @@ -129,17 +108,17 @@ export class ProDeploy { * * * constructor(private pro: Pro) { } - * + * * // Get app info * this.pro.getAppInfo().then((res: AppInfo) => { * console.log(res) * }) - * + * * // Get live update info * this.pro.deploy.info().then((res: DeployInfo) => { * console.log(res) * }) - * ``` + * ``` */ @Plugin({ pluginName: 'Pro', @@ -147,8 +126,7 @@ export class ProDeploy { pluginRef: 'IonicCordova', repo: 'https://github.com/ionic-team/cordova-plugin-ionic', platforms: ['Android', 'iOS'], - install: - 'ionic cordova plugin add cordova-plugin-ionic --save --variable APP_ID="XXXXXXXX" --variable CHANNEL_NAME="Channel"' + install: 'ionic cordova plugin add cordova-plugin-ionic --save --variable APP_ID="XXXXXXXX" --variable CHANNEL_NAME="Channel"' }) @Injectable() export class Pro extends IonicNativePlugin { @@ -172,43 +150,34 @@ export class Pro extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves when something happens */ @Cordova() - enableCrashLogging(): Promise { - return; - } + enableCrashLogging(): Promise { return; } /** * Not yet implemented * @return {Promise} Returns a promise that resolves when something happens */ @Cordova() - checkForPendingCrash(): Promise { - return; - } + checkForPendingCrash(): Promise { return; } /** * Not yet implemented * @return {Promise} Returns a promise that resolves when something happens */ @Cordova() - loadPendingCrash(): Promise { - return; - } + loadPendingCrash(): Promise { return; } /** * Not yet implemented * @return {Promise} Returns a promise that resolves when something happens */ @Cordova() - forceCrash(): Promise { - return; - } + forceCrash(): Promise { return; } /** * Get information about the currently running app * @return {Promise} Returns a promise that resolves with current app info */ @Cordova() - getAppInfo(): Promise { - return; - } + getAppInfo(): Promise { return; } } + diff --git a/src/@ionic-native/plugins/push/index.ts b/src/@ionic-native/plugins/push/index.ts index 542a6b540..b58cfbadb 100644 --- a/src/@ionic-native/plugins/push/index.ts +++ b/src/@ionic-native/plugins/push/index.ts @@ -1,18 +1,10 @@ import { Injectable } from '@angular/core'; -import { - checkAvailability, - Cordova, - CordovaInstance, - IonicNativePlugin, - Plugin -} from '@ionic-native/core'; +import { Cordova, Plugin, CordovaInstance, checkAvailability, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; declare const window: any; -export type EventResponse = RegistrationEventResponse & - NotificationEventResponse & - Error; +export type EventResponse = RegistrationEventResponse & NotificationEventResponse & Error; export interface RegistrationEventResponse { /** @@ -21,6 +13,7 @@ export interface RegistrationEventResponse { registrationId: string; } + export interface NotificationEventResponse { /** * The text of the push message sent from the 3rd party service. @@ -210,6 +203,7 @@ export interface BrowserPushOptions { * Default: http://push.api.phonegap.com/v1/push Optional. */ pushServiceURL?: string; + } export interface PushOptions { @@ -319,6 +313,7 @@ export type PushEvent = string; }) @Injectable() export class Push extends IonicNativePlugin { + /** * Init push notifications * @param options {PushOptions} @@ -333,36 +328,29 @@ export class Push extends IonicNativePlugin { * @return {Promise<{isEnabled: boolean}>} Returns a Promise that resolves with an object with one property: isEnabled, a boolean that indicates if permission has been granted. */ @Cordova() - hasPermission(): Promise<{ isEnabled: boolean }> { - return; - } + hasPermission(): Promise<{ isEnabled: boolean }> { return; } /** * Create a new notification channel for Android O and above. * @param channel {Channel} */ @Cordova() - createChannel(channel: Channel): Promise { - return; - } + createChannel(channel: Channel): Promise { return; } /** * Delete a notification channel for Android O and above. * @param id */ @Cordova() - deleteChannel(id: string): Promise { - return; - } + deleteChannel(id: string): Promise { return; } /** * Returns a list of currently configured channels. * @return {Promise} */ @Cordova() - listChannels(): Promise { - return; - } + listChannels(): Promise { return; } + } /** @@ -374,12 +362,11 @@ export class Push extends IonicNativePlugin { pluginRef: 'PushNotification' }) export class PushObject { + private _objectInstance: any; constructor(options: PushOptions) { - if ( - checkAvailability('PushNotification', 'init', 'PushNotification') === true - ) { + if (checkAvailability('PushNotification', 'init', 'PushNotification') === true) { this._objectInstance = window.PushNotification.init(options); } } @@ -394,9 +381,7 @@ export class PushObject { clearFunction: 'off', clearWithArgs: true }) - on(event: PushEvent): Observable { - return; - } + on(event: PushEvent): Observable { return; } /** * The unregister method is used when the application no longer wants to receive push notifications. @@ -404,9 +389,7 @@ export class PushObject { * so you will need to re-register them if you want them to function again without an application reload. */ @CordovaInstance() - unregister(): Promise { - return; - } + unregister(): Promise { return; } /** * Set the badge count visible when the app is not running @@ -419,17 +402,13 @@ export class PushObject { @CordovaInstance({ callbackOrder: 'reverse' }) - setApplicationIconBadgeNumber(count?: number): Promise { - return; - } + setApplicationIconBadgeNumber(count?: number): Promise { return; }; /** * Get the current badge count visible when the app is not running * successHandler gets called with an integer which is the current badge count */ @CordovaInstance() - getApplicationIconBadgeNumber(): Promise { - return; - } + getApplicationIconBadgeNumber(): Promise { return; } /** * iOS only @@ -440,17 +419,13 @@ export class PushObject { @CordovaInstance({ callbackOrder: 'reverse' }) - finish(id?: string): Promise { - return; - } + finish(id?: string): Promise { return; } /** * Tells the OS to clear all notifications from the Notification Center */ @CordovaInstance() - clearAllNotifications(): Promise { - return; - } + clearAllNotifications(): Promise { return; } /** * The subscribe method is used when the application wants to subscribe a new topic to receive push notifications. @@ -458,9 +433,7 @@ export class PushObject { * @return {Promise} */ @CordovaInstance() - subscribe(topic: string): Promise { - return; - } + subscribe(topic: string): Promise { return; } /** * The unsubscribe method is used when the application no longer wants to receive push notifications from a specific topic but continue to receive other push messages. @@ -468,7 +441,6 @@ export class PushObject { * @return {Promise} */ @CordovaInstance() - unsubscribe(topic: string): Promise { - return; - } + unsubscribe(topic: string): Promise { return; } + } diff --git a/src/@ionic-native/plugins/qqsdk/index.ts b/src/@ionic-native/plugins/qqsdk/index.ts index dabc73583..11cf5dace 100644 --- a/src/@ionic-native/plugins/qqsdk/index.ts +++ b/src/@ionic-native/plugins/qqsdk/index.ts @@ -1,7 +1,8 @@ +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface QQShareOptions { + /** * The clinet type, QQ or TIM * Default is QQ @@ -157,12 +158,12 @@ export interface QQShareOptions { pluginRef: 'QQSDK', repo: 'https://github.com/iVanPan/Cordova_QQ', platforms: ['Android', 'iOS'], - install: - 'ionic cordova plugin add cordova-plugin-qqsdk --variable QQ_APP_ID=YOUR_QQ_APPID', - installVariables: ['QQ_APP_ID'] + install: 'ionic cordova plugin add cordova-plugin-qqsdk --variable QQ_APP_ID=YOUR_QQ_APPID', + installVariables: ['QQ_APP_ID'], }) @Injectable() export class QQSDK extends IonicNativePlugin { + /** * QQ Share Scene */ diff --git a/src/@ionic-native/plugins/qr-scanner/index.ts b/src/@ionic-native/plugins/qr-scanner/index.ts index 7cf121571..da96e1ea4 100644 --- a/src/@ionic-native/plugins/qr-scanner/index.ts +++ b/src/@ionic-native/plugins/qr-scanner/index.ts @@ -1,5 +1,5 @@ +import { Plugin, IonicNativePlugin, Cordova } from '@ionic-native/core'; import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export interface QRScannerStatus { @@ -115,6 +115,7 @@ export interface QRScannerStatus { }) @Injectable() export class QRScanner extends IonicNativePlugin { + /** * Request permission to use QR scanner. * @return {Promise} @@ -122,9 +123,7 @@ export class QRScanner extends IonicNativePlugin { @Cordova({ callbackStyle: 'node' }) - prepare(): Promise { - return; - } + prepare(): Promise { return; } /** * Call this method to enable scanning. You must then call the `show` method to make the camera preview visible. @@ -135,27 +134,21 @@ export class QRScanner extends IonicNativePlugin { observable: true, clearFunction: 'cancelScan' }) - scan(): Observable { - return; - } + scan(): Observable { return; } /** * Configures the native webview to have a transparent background, then sets the background of the and DOM elements to transparent, allowing the webview to re-render with the transparent background. * @returns {Promise} */ @Cordova() - show(): Promise { - return; - } + show(): Promise { return; } /** * Configures the native webview to be opaque with a white background, covering the video preview. * @returns {Promise} */ @Cordova() - hide(): Promise { - return; - } + hide(): Promise { return; } /** * Enable the device's light (for scanning in low-light environments). @@ -164,18 +157,14 @@ export class QRScanner extends IonicNativePlugin { @Cordova({ callbackStyle: 'node' }) - enableLight(): Promise { - return; - } + enableLight(): Promise { return; } /** * Destroy the scanner instance. * @returns {Promise} */ @Cordova() - destroy(): Promise { - return; - } + destroy(): Promise { return; } /** * Disable the device's light. @@ -184,9 +173,7 @@ export class QRScanner extends IonicNativePlugin { @Cordova({ callbackStyle: 'node' }) - disableLight(): Promise { - return; - } + disableLight(): Promise { return; } /** * Use front camera @@ -195,9 +182,7 @@ export class QRScanner extends IonicNativePlugin { @Cordova({ callbackStyle: 'node' }) - useFrontCamera(): Promise { - return; - } + useFrontCamera(): Promise { return; } /** * Use back camera @@ -206,9 +191,7 @@ export class QRScanner extends IonicNativePlugin { @Cordova({ callbackStyle: 'node' }) - useBackCamera(): Promise { - return; - } + useBackCamera(): Promise { return; } /** * Set camera to be used. @@ -218,36 +201,28 @@ export class QRScanner extends IonicNativePlugin { @Cordova({ callbackStyle: 'node' }) - useCamera(camera: number): Promise { - return; - } + useCamera(camera: number): Promise { return; } /** * Pauses the video preview on the current frame and pauses scanning. * @return {Promise} */ @Cordova() - pausePreview(): Promise { - return; - } + pausePreview(): Promise { return; } /** * Resumse the video preview and resumes scanning. * @return {Promise} */ @Cordova() - resumePreview(): Promise { - return; - } + resumePreview(): Promise { return; } /** * Returns permission status * @return {Promise} */ @Cordova() - getStatus(): Promise { - return; - } + getStatus(): Promise { return; } /** * Opens settings to edit app permissions. @@ -256,4 +231,5 @@ export class QRScanner extends IonicNativePlugin { sync: true }) openSettings(): void {} + } diff --git a/src/@ionic-native/plugins/regula-document-reader/index.ts b/src/@ionic-native/plugins/regula-document-reader/index.ts index 7094c5f68..1628b8f9e 100644 --- a/src/@ionic-native/plugins/regula-document-reader/index.ts +++ b/src/@ionic-native/plugins/regula-document-reader/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; /** * @paid @@ -25,11 +25,11 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; pluginRef: 'DocumentReader', repo: 'https://github.com/regulaforensics/cordova-plugin-documentreader.git', platforms: ['iOS', 'Android'], - install: - 'ionic plugin add cordova-plugin-documentreader --variable CAMERA_USAGE_DESCRIPTION="To take photo"' + install: 'ionic plugin add cordova-plugin-documentreader --variable CAMERA_USAGE_DESCRIPTION="To take photo"', }) @Injectable() export class RegulaDocumentReader extends IonicNativePlugin { + /** * Initialize the scanner * @param license {any} License data @@ -42,7 +42,5 @@ export class RegulaDocumentReader extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves when results was got, and fails when not */ @Cordova() - scanDocument(): Promise { - return; - } + scanDocument(): Promise { return; } } diff --git a/src/@ionic-native/plugins/rollbar/index.ts b/src/@ionic-native/plugins/rollbar/index.ts index 6ac19991b..65f8172db 100644 --- a/src/@ionic-native/plugins/rollbar/index.ts +++ b/src/@ionic-native/plugins/rollbar/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; /** * @beta @@ -24,19 +24,18 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'resgrid-cordova-plugins-rollbar', pluginRef: 'cordova.plugins.Rollbar', repo: 'https://github.com/Resgrid/cordova-plugins-rollbar', - install: - 'ionic cordova plugin add resgrid-cordova-plugins-rollbar --variable ROLLBAR_ACCESS_TOKEN="YOUR_ROLLBAR_ACCEESS_TOKEN" --variable ROLLBAR_ENVIRONMENT="ROLLBAR_ENVIRONMENT"', + install: 'ionic cordova plugin add resgrid-cordova-plugins-rollbar --variable ROLLBAR_ACCESS_TOKEN="YOUR_ROLLBAR_ACCEESS_TOKEN" --variable ROLLBAR_ENVIRONMENT="ROLLBAR_ENVIRONMENT"', installVariables: ['ROLLBAR_ACCESS_TOKEN', 'ROLLBAR_ENVIRONMENT'], platforms: ['Android', 'iOS'] }) @Injectable() export class Rollbar extends IonicNativePlugin { + /** * This function initializes the monitoring of your application * @return {Promise} Returns a promise that resolves when the plugin successfully initializes */ @Cordova() - init(): Promise { - return; - } + init(): Promise { return; } + } diff --git a/src/@ionic-native/plugins/safari-view-controller/index.ts b/src/@ionic-native/plugins/safari-view-controller/index.ts index e3d411919..a4eba210c 100644 --- a/src/@ionic-native/plugins/safari-view-controller/index.ts +++ b/src/@ionic-native/plugins/safari-view-controller/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export interface SafariViewControllerOptions { @@ -64,14 +64,13 @@ export interface SafariViewControllerOptions { }) @Injectable() export class SafariViewController extends IonicNativePlugin { + /** * Checks if SafariViewController is available * @returns {Promise} */ @Cordova() - isAvailable(): Promise { - return; - } + isAvailable(): Promise { return; } /** * Shows Safari View Controller @@ -83,35 +82,27 @@ export class SafariViewController extends IonicNativePlugin { errorIndex: 2, observable: true }) - show(options?: SafariViewControllerOptions): Observable { - return; - } + show(options?: SafariViewControllerOptions): Observable { return; } /** * Hides Safari View Controller */ @Cordova() - hide(): Promise { - return; - } + hide(): Promise { return; } /** * Tries to connect to the Chrome's custom tabs service. you must call this method before calling any of the other methods listed below. * @returns {Promise} */ @Cordova() - connectToService(): Promise { - return; - } + connectToService(): Promise { return; } /** * Call this method whenever there's a chance the user will open an external url. * @returns {Promise} */ @Cordova() - warmUp(): Promise { - return; - } + warmUp(): Promise { return; } /** * For even better performance optimization, call this methods if there's more than a 50% chance the user will open a certain URL. @@ -119,7 +110,6 @@ export class SafariViewController extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - mayLaunchUrl(url: string): Promise { - return; - } + mayLaunchUrl(url: string): Promise { return; } + } diff --git a/src/@ionic-native/plugins/screen-orientation/index.ts b/src/@ionic-native/plugins/screen-orientation/index.ts index 1b3161444..99709bec2 100644 --- a/src/@ionic-native/plugins/screen-orientation/index.ts +++ b/src/@ionic-native/plugins/screen-orientation/index.ts @@ -1,10 +1,5 @@ import { Injectable } from '@angular/core'; -import { - Cordova, - CordovaProperty, - IonicNativePlugin, - Plugin -} from '@ionic-native/core'; +import { Cordova, CordovaProperty, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; /** @@ -40,7 +35,7 @@ import { Observable } from 'rxjs/Observable'; * ); * * ``` - * + * * @advanced * * Accepted orientation values: @@ -64,6 +59,7 @@ import { Observable } from 'rxjs/Observable'; }) @Injectable() export class ScreenOrientation extends IonicNativePlugin { + /** * Convenience enum for possible orientations */ @@ -85,9 +81,7 @@ export class ScreenOrientation extends IonicNativePlugin { eventObservable: true, event: 'orientationchange' }) - onChange(): Observable { - return; - } + onChange(): Observable { return; } /** * Lock the orientation to the passed value. @@ -96,18 +90,18 @@ export class ScreenOrientation extends IonicNativePlugin { * @return {Promise} */ @Cordova({ otherPromise: true }) - lock(orientation: string): Promise { - return; - } + lock(orientation: string): Promise { return; } /** * Unlock and allow all orientations. */ @Cordova({ sync: true }) - unlock(): void {} + unlock(): void { } /** * Get the current orientation of the device. */ - @CordovaProperty type: string; + @CordovaProperty + type: string; + } diff --git a/src/@ionic-native/plugins/screenshot/index.ts b/src/@ionic-native/plugins/screenshot/index.ts index d9911256d..cd0107492 100644 --- a/src/@ionic-native/plugins/screenshot/index.ts +++ b/src/@ionic-native/plugins/screenshot/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Plugin, IonicNativePlugin } from '@ionic-native/core'; declare const navigator: any; @@ -30,6 +30,7 @@ declare const navigator: any; }) @Injectable() export class Screenshot extends IonicNativePlugin { + /** * Takes screenshot and saves the image * @@ -41,20 +42,22 @@ export class Screenshot extends IonicNativePlugin { * @returns {Promise} */ save(format?: string, quality?: number, filename?: string): Promise { - return new Promise((resolve, reject) => { - navigator.screenshot.save( - (error: any, result: any) => { - if (error) { - reject(error); - } else { - resolve(result); - } - }, - format, - quality, - filename - ); - }); + return new Promise( + (resolve, reject) => { + navigator.screenshot.save( + (error: any, result: any) => { + if (error) { + reject(error); + } else { + resolve(result); + } + }, + format, + quality, + filename + ); + } + ); } /** @@ -65,14 +68,19 @@ export class Screenshot extends IonicNativePlugin { * @returns {Promise} */ URI(quality?: number): Promise { - return new Promise((resolve, reject) => { - navigator.screenshot.URI((error: any, result: any) => { - if (error) { - reject(error); - } else { - resolve(result); - } - }, quality); - }); + return new Promise( + (resolve, reject) => { + navigator.screenshot.URI( + (error: any, result: any) => { + if (error) { + reject(error); + } else { + resolve(result); + } + }, + quality + ); + } + ); } } diff --git a/src/@ionic-native/plugins/secure-storage/index.ts b/src/@ionic-native/plugins/secure-storage/index.ts index 25b191ae2..7c1d9fb18 100644 --- a/src/@ionic-native/plugins/secure-storage/index.ts +++ b/src/@ionic-native/plugins/secure-storage/index.ts @@ -1,16 +1,12 @@ import { Injectable } from '@angular/core'; -import { - CordovaCheck, - CordovaInstance, - IonicNativePlugin, - Plugin -} from '@ionic-native/core'; +import { CordovaInstance, Plugin, CordovaCheck, IonicNativePlugin } from '@ionic-native/core'; /** * @hidden */ export class SecureStorageObject { - constructor(private _objectInstance: any) {} + + constructor(private _objectInstance: any) { } /** * Gets a stored item @@ -20,9 +16,7 @@ export class SecureStorageObject { @CordovaInstance({ callbackOrder: 'reverse' }) - get(key: string): Promise { - return; - } + get(key: string): Promise { return; } /** * Stores a value @@ -33,9 +27,7 @@ export class SecureStorageObject { @CordovaInstance({ callbackOrder: 'reverse' }) - set(key: string, value: string): Promise { - return; - } + set(key: string, value: string): Promise { return; } /** * Removes a single stored item @@ -45,9 +37,7 @@ export class SecureStorageObject { @CordovaInstance({ callbackOrder: 'reverse' }) - remove(key: string): Promise { - return; - } + remove(key: string): Promise { return; } /** * Get all references from the storage. @@ -56,9 +46,7 @@ export class SecureStorageObject { @CordovaInstance({ callbackOrder: 'reverse' }) - keys(): Promise { - return; - } + keys(): Promise { return; } /** * Clear all references from the storage. @@ -67,18 +55,15 @@ export class SecureStorageObject { @CordovaInstance({ callbackOrder: 'reverse' }) - clear(): Promise { - return; - } + clear(): Promise { return; } /** * Brings up the screen-lock settings * @returns {Promise} */ @CordovaInstance() - secureDevice(): Promise { - return; - } + secureDevice(): Promise { return; } + } /** @@ -136,6 +121,7 @@ export class SecureStorageObject { }) @Injectable() export class SecureStorage extends IonicNativePlugin { + /** * Creates a namespaced storage. * @param store {string} @@ -144,11 +130,8 @@ export class SecureStorage extends IonicNativePlugin { @CordovaCheck() create(store: string): Promise { return new Promise((res: Function, rej: Function) => { - const instance = new (SecureStorage.getPlugin())( - () => res(new SecureStorageObject(instance)), - rej, - store - ); + const instance = new (SecureStorage.getPlugin())(() => res(new SecureStorageObject(instance)), rej, store); }); } + } diff --git a/src/@ionic-native/plugins/serial/index.ts b/src/@ionic-native/plugins/serial/index.ts index bf5ce79b1..3c63fd9d0 100644 --- a/src/@ionic-native/plugins/serial/index.ts +++ b/src/@ionic-native/plugins/serial/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; declare var serial: any; @@ -58,6 +58,7 @@ export interface SerialOpenOptions { }) @Injectable() export class Serial extends IonicNativePlugin { + /** * Request permission to connect to a serial device * @@ -68,9 +69,7 @@ export class Serial extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - requestPermission(options?: SerialPermissionOptions): Promise { - return; - } + requestPermission(options?: SerialPermissionOptions): Promise { return; } /** * Open connection to a serial device @@ -79,9 +78,7 @@ export class Serial extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves when the serial connection is opened */ @Cordova() - open(options: SerialOpenOptions): Promise { - return; - } + open(options: SerialOpenOptions): Promise { return; } /** * Write to a serial connection @@ -90,9 +87,7 @@ export class Serial extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves when the write is complete */ @Cordova() - write(data: any): Promise { - return; - } + write(data: any): Promise { return; } /** * Write hex to a serial connection @@ -101,9 +96,7 @@ export class Serial extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves when the write is complete */ @Cordova() - writeHex(data: any): Promise { - return; - } + writeHex(data: any): Promise { return; } /** * Read from a serial connection @@ -111,9 +104,7 @@ export class Serial extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves with data read from the serial connection */ @Cordova() - read(): Promise { - return; - } + read(): Promise { return; } /** * Watch the incoming data from the serial connection. Clear the watch by unsubscribing from the observable @@ -123,9 +114,7 @@ export class Serial extends IonicNativePlugin { @Cordova({ observable: true }) - registerReadCallback(): Observable { - return; - } + registerReadCallback(): Observable { return; } /** * Close the serial connection @@ -133,7 +122,6 @@ export class Serial extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves when the serial connection is closed */ @Cordova() - close(): Promise { - return; - } + close(): Promise { return; } + } diff --git a/src/@ionic-native/plugins/shake/index.ts b/src/@ionic-native/plugins/shake/index.ts index 00a242aad..9c731ecd0 100644 --- a/src/@ionic-native/plugins/shake/index.ts +++ b/src/@ionic-native/plugins/shake/index.ts @@ -1,7 +1,6 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; - /** * @name Shake * @description Handles shake gesture @@ -40,7 +39,6 @@ export class Shake extends IonicNativePlugin { successIndex: 0, errorIndex: 2 }) - startWatch(sensitivity?: number): Observable { - return; - } + startWatch(sensitivity?: number): Observable { return; } + } diff --git a/src/@ionic-native/plugins/sim/index.ts b/src/@ionic-native/plugins/sim/index.ts index 63b482004..4e7f97f15 100644 --- a/src/@ionic-native/plugins/sim/index.ts +++ b/src/@ionic-native/plugins/sim/index.ts @@ -1,5 +1,6 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; + /** * @name Sim @@ -46,9 +47,7 @@ export class Sim extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - getSimInfo(): Promise { - return; - } + getSimInfo(): Promise { return; } /** * Check permission @@ -57,9 +56,7 @@ export class Sim extends IonicNativePlugin { @Cordova({ platforms: ['Android'] }) - hasReadPermission(): Promise { - return; - } + hasReadPermission(): Promise { return; } /** * Request permission @@ -68,7 +65,5 @@ export class Sim extends IonicNativePlugin { @Cordova({ platforms: ['Android'] }) - requestReadPermission(): Promise { - return; - } + requestReadPermission(): Promise { return; } } diff --git a/src/@ionic-native/plugins/sms/index.ts b/src/@ionic-native/plugins/sms/index.ts index 0e7ef9a36..eb147542b 100644 --- a/src/@ionic-native/plugins/sms/index.ts +++ b/src/@ionic-native/plugins/sms/index.ts @@ -1,23 +1,28 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; + /** * Options for sending an SMS */ export interface SmsOptions { + /** * Set to true to replace \n by a new line. Default: false */ replaceLineBreaks?: boolean; android?: SmsOptionsAndroid; + } export interface SmsOptionsAndroid { + /** * Set to "INTENT" to send SMS with the native android SMS messaging. Leaving it empty will send the SMS without opening any app. */ intent?: string; + } /** @@ -52,6 +57,7 @@ export interface SmsOptionsAndroid { }) @Injectable() export class SMS extends IonicNativePlugin { + /** * Sends sms to a number * @param phoneNumber {string|Array} Phone number @@ -67,9 +73,7 @@ export class SMS extends IonicNativePlugin { phoneNumber: string | string[], message: string, options?: SmsOptions - ): Promise { - return; - } + ): Promise { return; } /** * This function lets you know if the app has permission to send SMS @@ -78,7 +82,6 @@ export class SMS extends IonicNativePlugin { @Cordova({ platforms: ['Android'] }) - hasPermission(): Promise { - return; - } + hasPermission(): Promise { return; } + } diff --git a/src/@ionic-native/plugins/social-sharing/index.ts b/src/@ionic-native/plugins/social-sharing/index.ts index 2cfca88ec..f9665a9a9 100644 --- a/src/@ionic-native/plugins/social-sharing/index.ts +++ b/src/@ionic-native/plugins/social-sharing/index.ts @@ -1,5 +1,6 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; + /** * @name Social Sharing @@ -52,14 +53,7 @@ export class SocialSharing extends IonicNativePlugin { successIndex: 4, errorIndex: 5 }) - share( - message?: string, - subject?: string, - file?: string | string[], - url?: string - ): Promise { - return; - } + share(message?: string, subject?: string, file?: string | string[], url?: string): Promise { return; } /** * Shares using the share sheet with additional options and returns a result object or an error message (requires plugin version 5.1.0+) @@ -69,15 +63,7 @@ export class SocialSharing extends IonicNativePlugin { @Cordova({ platforms: ['iOS', 'Android'] }) - shareWithOptions(options: { - message?: string; - subject?: string; - files?: string | string[]; - url?: string; - chooserTitle?: string; - }): Promise { - return; - } + shareWithOptions(options: { message?: string, subject?: string, files?: string | string[], url?: string, chooserTitle?: string }): Promise { return; } /** * Checks if you can share via a specific app. @@ -93,15 +79,7 @@ export class SocialSharing extends IonicNativePlugin { errorIndex: 6, platforms: ['iOS', 'Android'] }) - canShareVia( - appName: string, - message?: string, - subject?: string, - image?: string, - url?: string - ): Promise { - return; - } + canShareVia(appName: string, message?: string, subject?: string, image?: string, url?: string): Promise { return; } /** * Shares directly to Twitter @@ -115,9 +93,7 @@ export class SocialSharing extends IonicNativePlugin { errorIndex: 4, platforms: ['iOS', 'Android'] }) - shareViaTwitter(message: string, image?: string, url?: string): Promise { - return; - } + shareViaTwitter(message: string, image?: string, url?: string): Promise { return; } /** * Shares directly to Facebook @@ -131,13 +107,8 @@ export class SocialSharing extends IonicNativePlugin { errorIndex: 4, platforms: ['iOS', 'Android'] }) - shareViaFacebook( - message: string, - image?: string, - url?: string - ): Promise { - return; - } + shareViaFacebook(message: string, image?: string, url?: string): Promise { return; } + /** * Shares directly to Facebook with a paste message hint @@ -152,14 +123,7 @@ export class SocialSharing extends IonicNativePlugin { errorIndex: 5, platforms: ['iOS', 'Android'] }) - shareViaFacebookWithPasteMessageHint( - message: string, - image?: string, - url?: string, - pasteMessageHint?: string - ): Promise { - return; - } + shareViaFacebookWithPasteMessageHint(message: string, image?: string, url?: string, pasteMessageHint?: string): Promise { return; } /** * Shares directly to Instagram @@ -170,9 +134,7 @@ export class SocialSharing extends IonicNativePlugin { @Cordova({ platforms: ['iOS', 'Android'] }) - shareViaInstagram(message: string, image: string): Promise { - return; - } + shareViaInstagram(message: string, image: string): Promise { return; } /** * Shares directly to WhatsApp @@ -186,13 +148,7 @@ export class SocialSharing extends IonicNativePlugin { errorIndex: 4, platforms: ['iOS', 'Android'] }) - shareViaWhatsApp( - message: string, - image?: string, - url?: string - ): Promise { - return; - } + shareViaWhatsApp(message: string, image?: string, url?: string): Promise { return; } /** * Shares directly to a WhatsApp Contact @@ -207,14 +163,7 @@ export class SocialSharing extends IonicNativePlugin { errorIndex: 5, platforms: ['iOS', 'Android'] }) - shareViaWhatsAppToReceiver( - receiver: string, - message: string, - image?: string, - url?: string - ): Promise { - return; - } + shareViaWhatsAppToReceiver(receiver: string, message: string, image?: string, url?: string): Promise { return; } /** * Share via SMS @@ -225,9 +174,7 @@ export class SocialSharing extends IonicNativePlugin { @Cordova({ platforms: ['iOS', 'Android'] }) - shareViaSMS(messge: string, phoneNumber: string): Promise { - return; - } + shareViaSMS(messge: string, phoneNumber: string): Promise { return; } /** * Checks if you can share via email @@ -236,9 +183,7 @@ export class SocialSharing extends IonicNativePlugin { @Cordova({ platforms: ['iOS', 'Android'] }) - canShareViaEmail(): Promise { - return; - } + canShareViaEmail(): Promise { return; } /** * Share via Email @@ -255,16 +200,7 @@ export class SocialSharing extends IonicNativePlugin { successIndex: 6, errorIndex: 7 }) - shareViaEmail( - message: string, - subject: string, - to: string[], - cc?: string[], - bcc?: string[], - files?: string | string[] - ): Promise { - return; - } + shareViaEmail(message: string, subject: string, to: string[], cc?: string[], bcc?: string[], files?: string | string[]): Promise { return; } /** * Share via AppName @@ -280,15 +216,7 @@ export class SocialSharing extends IonicNativePlugin { errorIndex: 6, platforms: ['iOS', 'Android'] }) - shareVia( - appName: string, - message: string, - subject?: string, - image?: string, - url?: string - ): Promise { - return; - } + shareVia(appName: string, message: string, subject?: string, image?: string, url?: string): Promise { return; } /** * defines the popup position before call the share method. @@ -298,5 +226,5 @@ export class SocialSharing extends IonicNativePlugin { sync: true, platforms: ['iOS'] }) - setIPadPopupCoordinates(targetBounds: string): void {} + setIPadPopupCoordinates(targetBounds: string): void { } } diff --git a/src/@ionic-native/plugins/speech-recognition/index.ts b/src/@ionic-native/plugins/speech-recognition/index.ts index f426748fd..e3e265796 100644 --- a/src/@ionic-native/plugins/speech-recognition/index.ts +++ b/src/@ionic-native/plugins/speech-recognition/index.ts @@ -1,10 +1,8 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; -export type SpeechRecognitionListeningOptions = - | SpeechRecognitionListeningOptionsIOS - | SpeechRecognitionListeningOptionsAndroid; +export type SpeechRecognitionListeningOptions = SpeechRecognitionListeningOptionsIOS | SpeechRecognitionListeningOptionsAndroid; export interface SpeechRecognitionListeningOptionsIOS { /** @@ -103,6 +101,7 @@ export interface SpeechRecognitionListeningOptionsAndroid { }) @Injectable() export class SpeechRecognition extends IonicNativePlugin { + /** * Check feature available * @return {Promise} @@ -118,11 +117,10 @@ export class SpeechRecognition extends IonicNativePlugin { */ @Cordova({ callbackOrder: 'reverse', - observable: true + observable: true, + }) - startListening( - options?: SpeechRecognitionListeningOptions - ): Observable> { + startListening(options?: SpeechRecognitionListeningOptions): Observable> { return; } @@ -162,4 +160,5 @@ export class SpeechRecognition extends IonicNativePlugin { requestPermission(): Promise { return; } + } diff --git a/src/@ionic-native/plugins/spinner-dialog/index.ts b/src/@ionic-native/plugins/spinner-dialog/index.ts index 69c1910c1..7b032b0f8 100644 --- a/src/@ionic-native/plugins/spinner-dialog/index.ts +++ b/src/@ionic-native/plugins/spinner-dialog/index.ts @@ -50,6 +50,7 @@ export interface SpinnerDialogIOSOptions { }) @Injectable() export class SpinnerDialog extends IonicNativePlugin { + /** * Shows the spinner dialog * @param title {string} Spinner title (shows on Android only) @@ -60,12 +61,7 @@ export class SpinnerDialog extends IonicNativePlugin { @Cordova({ sync: true }) - show( - title?: string, - message?: string, - cancelCallback?: any, - iOSOptions?: SpinnerDialogIOSOptions - ): void {} + show(title?: string, message?: string, cancelCallback?: any, iOSOptions?: SpinnerDialogIOSOptions): void { } /** * Hides the spinner dialog if visible @@ -73,5 +69,6 @@ export class SpinnerDialog extends IonicNativePlugin { @Cordova({ sync: true }) - hide(): void {} + hide(): void { } + } diff --git a/src/@ionic-native/plugins/splash-screen/index.ts b/src/@ionic-native/plugins/splash-screen/index.ts index 2a79e0ccf..eb71f91e3 100644 --- a/src/@ionic-native/plugins/splash-screen/index.ts +++ b/src/@ionic-native/plugins/splash-screen/index.ts @@ -1,5 +1,6 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; + /** * @name Splash Screen @@ -26,13 +27,14 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; }) @Injectable() export class SplashScreen extends IonicNativePlugin { + /** * Shows the splashscreen */ @Cordova({ sync: true }) - show(): void {} + show(): void { } /** * Hides the splashscreen @@ -40,5 +42,6 @@ export class SplashScreen extends IonicNativePlugin { @Cordova({ sync: true }) - hide(): void {} + hide(): void { } + } diff --git a/src/@ionic-native/plugins/sqlite-porter/index.ts b/src/@ionic-native/plugins/sqlite-porter/index.ts index 8b2a023c2..b4e4b3ef0 100644 --- a/src/@ionic-native/plugins/sqlite-porter/index.ts +++ b/src/@ionic-native/plugins/sqlite-porter/index.ts @@ -1,5 +1,5 @@ +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name SQLite Porter @@ -43,19 +43,11 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'uk.co.workingedge.cordova.plugin.sqliteporter', pluginRef: 'cordova.plugins.sqlitePorter', repo: 'https://github.com/dpa99c/cordova-sqlite-porter', - platforms: [ - 'Amazon Fire OS', - 'Android', - 'BlackBerry 10', - 'Browser', - 'iOS', - 'Tizen', - 'Windows', - 'Windows Phone' - ] + platforms: ['Amazon Fire OS', 'Android', 'BlackBerry 10', 'Browser', 'iOS', 'Tizen', 'Windows', 'Windows Phone'] }) @Injectable() export class SQLitePorter extends IonicNativePlugin { + /** * Executes a set of SQL statements against the defined database. Can be used to import data defined in the SQL statements into the database, and may additionally include commands to create the table structure. * @param db {Object} Database object @@ -67,9 +59,7 @@ export class SQLitePorter extends IonicNativePlugin { successName: 'successFn', errorName: 'errorFn' }) - importSqlToDb(db: any, sql: string): Promise { - return; - } + importSqlToDb(db: any, sql: string): Promise { return; } /** * Exports a SQLite DB as a set of SQL statements. @@ -81,9 +71,7 @@ export class SQLitePorter extends IonicNativePlugin { successName: 'successFn', errorName: 'errorFn' }) - exportDbToSql(db: any): Promise { - return; - } + exportDbToSql(db: any): Promise { return; } /** * Converts table structure and/or row data contained within a JSON structure into SQL statements that can be executed against a SQLite database. Can be used to import data into the database and/or create the table structure. @@ -96,9 +84,7 @@ export class SQLitePorter extends IonicNativePlugin { successName: 'successFn', errorName: 'errorFn' }) - importJsonToDb(db: any, json: any): Promise { - return; - } + importJsonToDb(db: any, json: any): Promise { return; } /** * Exports a SQLite DB as a JSON structure @@ -110,9 +96,7 @@ export class SQLitePorter extends IonicNativePlugin { successName: 'successFn', errorName: 'errorFn' }) - exportDbToJson(db: any): Promise { - return; - } + exportDbToJson(db: any): Promise { return; } /** * Wipes all data from a database by dropping all existing tables @@ -124,7 +108,6 @@ export class SQLitePorter extends IonicNativePlugin { successName: 'successFn', errorName: 'errorFn' }) - wipeDb(db: any): Promise { - return; - } + wipeDb(db: any): Promise { return; } + } diff --git a/src/@ionic-native/plugins/status-bar/index.ts b/src/@ionic-native/plugins/status-bar/index.ts index f9ee010a9..9d56deb40 100644 --- a/src/@ionic-native/plugins/status-bar/index.ts +++ b/src/@ionic-native/plugins/status-bar/index.ts @@ -1,10 +1,5 @@ import { Injectable } from '@angular/core'; -import { - Cordova, - CordovaProperty, - IonicNativePlugin, - Plugin -} from '@ionic-native/core'; +import { Cordova, CordovaProperty, Plugin, IonicNativePlugin } from '@ionic-native/core'; /** * @name Status Bar @@ -47,7 +42,7 @@ export class StatusBar extends IonicNativePlugin { @Cordova({ sync: true }) - overlaysWebView(doesOverlay: boolean) {} + overlaysWebView(doesOverlay: boolean) { }; /** * Use the default statusbar (dark text, for light backgrounds). @@ -55,7 +50,7 @@ export class StatusBar extends IonicNativePlugin { @Cordova({ sync: true }) - styleDefault() {} + styleDefault() { }; /** * Use the lightContent statusbar (light text, for dark backgrounds). @@ -63,7 +58,7 @@ export class StatusBar extends IonicNativePlugin { @Cordova({ sync: true }) - styleLightContent() {} + styleLightContent() { }; /** * Use the blackTranslucent statusbar (light text, for dark backgrounds). @@ -71,7 +66,7 @@ export class StatusBar extends IonicNativePlugin { @Cordova({ sync: true }) - styleBlackTranslucent() {} + styleBlackTranslucent() { }; /** * Use the blackOpaque statusbar (light text, for dark backgrounds). @@ -79,7 +74,7 @@ export class StatusBar extends IonicNativePlugin { @Cordova({ sync: true }) - styleBlackOpaque() {} + styleBlackOpaque() { }; /** * Set the status bar to a specific named color. Valid options: @@ -92,7 +87,7 @@ export class StatusBar extends IonicNativePlugin { @Cordova({ sync: true }) - backgroundColorByName(colorName: string) {} + backgroundColorByName(colorName: string) { }; /** * Set the status bar to a specific hex color (CSS shorthand supported!). @@ -104,7 +99,7 @@ export class StatusBar extends IonicNativePlugin { @Cordova({ sync: true }) - backgroundColorByHexString(hexString: string) {} + backgroundColorByHexString(hexString: string) { }; /** * Hide the StatusBar @@ -112,18 +107,20 @@ export class StatusBar extends IonicNativePlugin { @Cordova({ sync: true }) - hide() {} + hide() { }; /** - * Show the StatusBar - */ + * Show the StatusBar + */ @Cordova({ sync: true }) - show() {} + show() { }; /** * Whether the StatusBar is currently visible or not. */ - @CordovaProperty isVisible: boolean; + @CordovaProperty + isVisible: boolean; + } diff --git a/src/@ionic-native/plugins/stepcounter/index.ts b/src/@ionic-native/plugins/stepcounter/index.ts index 58bf63e5c..a24ce3889 100644 --- a/src/@ionic-native/plugins/stepcounter/index.ts +++ b/src/@ionic-native/plugins/stepcounter/index.ts @@ -1,6 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; - +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; /** * @name Stepcounter * @description @@ -34,6 +33,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; }) @Injectable() export class Stepcounter extends IonicNativePlugin { + /** * Start the step counter * @@ -41,52 +41,40 @@ export class Stepcounter extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves on success or rejects on failure */ @Cordova() - start(startingOffset: number): Promise { - return; - } + start(startingOffset: number): Promise { return; } /** * Stop the step counter * @returns {Promise} Returns a Promise that resolves on success with the amount of steps since the start command has been called, or rejects on failure */ @Cordova() - stop(): Promise { - return; - } + stop(): Promise { return; } /** * Get the amount of steps for today (or -1 if it no data given) * @returns {Promise} Returns a Promise that resolves on success with the amount of steps today, or rejects on failure */ @Cordova() - getTodayStepCount(): Promise { - return; - } + getTodayStepCount(): Promise { return; } /** * Get the amount of steps since the start command has been called * @returns {Promise} Returns a Promise that resolves on success with the amount of steps since the start command has been called, or rejects on failure */ @Cordova() - getStepCount(): Promise { - return; - } + getStepCount(): Promise { return; } /** * Returns true/false if Android device is running >API level 19 && has the step counter API available * @returns {Promise} Returns a Promise that resolves on success, or rejects on failure */ @Cordova() - deviceCanCountSteps(): Promise { - return; - } + deviceCanCountSteps(): Promise { return; } /** * Get the step history (JavaScript object) * @returns {Promise} Returns a Promise that resolves on success, or rejects on failure */ @Cordova() - getHistory(): Promise { - return; - } + getHistory(): Promise { return; } } diff --git a/src/@ionic-native/plugins/streaming-media/index.ts b/src/@ionic-native/plugins/streaming-media/index.ts index caa9623fc..6fb18f53c 100644 --- a/src/@ionic-native/plugins/streaming-media/index.ts +++ b/src/@ionic-native/plugins/streaming-media/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; export interface StreamingVideoOptions { successCallback?: Function; @@ -55,7 +55,7 @@ export class StreamingMedia extends IonicNativePlugin { * @param options {StreamingVideoOptions} Options */ @Cordova({ sync: true }) - playVideo(videoUrl: string, options?: StreamingVideoOptions): void {} + playVideo(videoUrl: string, options?: StreamingVideoOptions): void { } /** * Streams an audio @@ -63,23 +63,24 @@ export class StreamingMedia extends IonicNativePlugin { * @param options {StreamingAudioOptions} Options */ @Cordova({ sync: true }) - playAudio(audioUrl: string, options?: StreamingAudioOptions): void {} + playAudio(audioUrl: string, options?: StreamingAudioOptions): void { } /** * Stops streaming audio */ @Cordova({ sync: true }) - stopAudio(): void {} + stopAudio(): void { } /** * Pauses streaming audio */ @Cordova({ sync: true, platforms: ['iOS'] }) - pauseAudio(): void {} + pauseAudio(): void { } /** * Resumes streaming audio */ @Cordova({ sync: true, platforms: ['iOS'] }) - resumeAudio(): void {} + resumeAudio(): void { } + } diff --git a/src/@ionic-native/plugins/stripe/index.ts b/src/@ionic-native/plugins/stripe/index.ts index 0296affa4..32eda51de 100644 --- a/src/@ionic-native/plugins/stripe/index.ts +++ b/src/@ionic-native/plugins/stripe/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; export interface StripeCardTokenParams { /** @@ -80,28 +80,28 @@ export interface StripeBankAccountParams { } export interface StripeCardTokenRes { - /** - * Card Object. - */ - card: { - brand: string; - exp_month: number; - exp_year: number; - funding: string; - last4: string; - }; - /** - * Token Request Date Time. - */ - created: string; - /** - * Card Token. - */ - id: string; - /** - * Source Type (card or account). - */ - type: string; + /** + * Card Object. + */ + card: { + brand: string, + exp_month: number, + exp_year: number, + funding: string, + last4: string + }; + /** + * Token Request Date Time. + */ + created: string; + /** + * Card Token. + */ + id: string; + /** + * Source Type (card or account). + */ + type: string; } /** @@ -144,15 +144,14 @@ export interface StripeCardTokenRes { }) @Injectable() export class Stripe extends IonicNativePlugin { + /** * Set publishable key * @param publishableKey {string} Publishable key * @return {Promise} */ @Cordova() - setPublishableKey(publishableKey: string): Promise { - return; - } + setPublishableKey(publishableKey: string): Promise { return; } /** * Create Credit Card Token @@ -160,9 +159,7 @@ export class Stripe extends IonicNativePlugin { * @return {Promise} returns a promise that resolves with the token object, or rejects with an error */ @Cordova() - createCardToken(params: StripeCardTokenParams): Promise { - return; - } + createCardToken(params: StripeCardTokenParams): Promise { return; } /** * Create a bank account token @@ -170,9 +167,7 @@ export class Stripe extends IonicNativePlugin { * @return {Promise} returns a promise that resolves with the token, or rejects with an error */ @Cordova() - createBankAccountToken(params: StripeBankAccountParams): Promise { - return; - } + createBankAccountToken(params: StripeBankAccountParams): Promise { return; } /** * Validates a credit card number @@ -180,9 +175,7 @@ export class Stripe extends IonicNativePlugin { * @return {Promise} returns a promise that resolves if the number is valid, and rejects if it's invalid */ @Cordova() - validateCardNumber(cardNumber: string): Promise { - return; - } + validateCardNumber(cardNumber: string): Promise { return; } /** * Validates a CVC number @@ -190,9 +183,7 @@ export class Stripe extends IonicNativePlugin { * @return {Promise} returns a promise that resolves if the number is valid, and rejects if it's invalid */ @Cordova() - validateCVC(cvc: string): Promise { - return; - } + validateCVC(cvc: string): Promise { return; } /** * Validates an expiry date @@ -201,9 +192,7 @@ export class Stripe extends IonicNativePlugin { * @return {Promise} returns a promise that resolves if the date is valid, and rejects if it's invalid */ @Cordova() - validateExpiryDate(expMonth: string, expYear: string): Promise { - return; - } + validateExpiryDate(expMonth: string, expYear: string): Promise { return; } /** * Get a card type from card number @@ -211,7 +200,6 @@ export class Stripe extends IonicNativePlugin { * @return {Promise} returns a promise that resolves with the credit card type */ @Cordova() - getCardType(cardNumber: string): Promise { - return; - } + getCardType(cardNumber: string): Promise { return; } + } diff --git a/src/@ionic-native/plugins/taptic-engine/index.ts b/src/@ionic-native/plugins/taptic-engine/index.ts index 5688bd979..f74763711 100644 --- a/src/@ionic-native/plugins/taptic-engine/index.ts +++ b/src/@ionic-native/plugins/taptic-engine/index.ts @@ -33,14 +33,13 @@ import { Injectable } from '@angular/core'; }) @Injectable() export class TapticEngine extends IonicNativePlugin { + /** * Use selection feedback generators to indicate a change in selection. * @returns {Promise} Returns a promise that resolves on success and rejects on error */ @Cordova() - selection(): Promise { - return; - } + selection(): Promise { return; } /** * Use this to indicate success/failure/warning to the user. @@ -49,9 +48,7 @@ export class TapticEngine extends IonicNativePlugin { * @returns {Promise} Returns a promise that resolves on success and rejects on error */ @Cordova() - notification(options: { type: string }): Promise { - return; - } + notification(options: { type: string }): Promise { return; } /** * Use this to indicate success/failure/warning to the user. @@ -60,7 +57,6 @@ export class TapticEngine extends IonicNativePlugin { * @returns {Promise} Returns a promise that resolves on success and rejects on error */ @Cordova() - impact(options: { style: string }): Promise { - return; - } + impact(options: { style: string }): Promise { return; } + } diff --git a/src/@ionic-native/plugins/text-to-speech/index.ts b/src/@ionic-native/plugins/text-to-speech/index.ts index fb348561f..9a34e4d29 100644 --- a/src/@ionic-native/plugins/text-to-speech/index.ts +++ b/src/@ionic-native/plugins/text-to-speech/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; export interface TTSOptions { /** text to speak */ @@ -40,6 +40,7 @@ export interface TTSOptions { }) @Injectable() export class TextToSpeech extends IonicNativePlugin { + /** * This function speaks * @param textOrOptions {string | TTSOptions} Text to speak or TTSOptions @@ -61,4 +62,5 @@ export class TextToSpeech extends IonicNativePlugin { stop(): Promise { return; } + } diff --git a/src/@ionic-native/plugins/themeable-browser/index.ts b/src/@ionic-native/plugins/themeable-browser/index.ts index fb7fee72b..76e4a73b7 100644 --- a/src/@ionic-native/plugins/themeable-browser/index.ts +++ b/src/@ionic-native/plugins/themeable-browser/index.ts @@ -1,10 +1,5 @@ import { Injectable } from '@angular/core'; -import { - CordovaInstance, - InstanceCheck, - IonicNativePlugin, - Plugin -} from '@ionic-native/core'; +import { Plugin, CordovaInstance, InstanceCheck, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; declare var cordova: any; @@ -76,24 +71,15 @@ export interface ThemeableBrowserOptions { * @hidden */ export class ThemeableBrowserObject { + private _objectInstance: any; - constructor( - url: string, - target: string, - styleOptions: ThemeableBrowserOptions - ) { + constructor(url: string, target: string, styleOptions: ThemeableBrowserOptions) { try { - this._objectInstance = cordova.ThemeableBrowser.open( - url, - target, - styleOptions - ); + this._objectInstance = cordova.ThemeableBrowser.open(url, target, styleOptions); } catch (e) { window.open(url); - console.warn( - 'Native: ThemeableBrowser is not installed or you are running on a browser. Falling back to window.open.' - ); + console.warn('Native: ThemeableBrowser is not installed or you are running on a browser. Falling back to window.open.'); } } @@ -102,19 +88,19 @@ export class ThemeableBrowserObject { * if the browser was already visible. */ @CordovaInstance({ sync: true }) - show(): void {} + show(): void { } /** * Closes the browser window. */ @CordovaInstance({ sync: true }) - close(): void {} + close(): void { } /** * Reloads the current page */ @CordovaInstance({ sync: true }) - reload(): void {} + reload(): void { } /** * Injects JavaScript code into the browser window. @@ -122,9 +108,7 @@ export class ThemeableBrowserObject { * @returns {Promise} */ @CordovaInstance() - executeScript(script: { file?: string; code?: string }): Promise { - return; - } + executeScript(script: { file?: string, code?: string }): Promise { return; } /** * Injects CSS into the browser window. @@ -132,9 +116,7 @@ export class ThemeableBrowserObject { * @returns {Promise} */ @CordovaInstance() - insertCss(css: { file?: string; code?: string }): Promise { - return; - } + insertCss(css: { file?: string, code?: string }): Promise { return; } /** * A method that allows you to listen to events happening in the browser. @@ -144,18 +126,12 @@ export class ThemeableBrowserObject { */ @InstanceCheck({ observable: true }) on(event: string): Observable { - return new Observable(observer => { - this._objectInstance.addEventListener( - event, - observer.next.bind(observer) - ); - return () => - this._objectInstance.removeEventListener( - event, - observer.next.bind(observer) - ); + return new Observable((observer) => { + this._objectInstance.addEventListener(event, observer.next.bind(observer)); + return () => this._objectInstance.removeEventListener(event, observer.next.bind(observer)); }); } + } /** @@ -248,20 +224,11 @@ export class ThemeableBrowserObject { plugin: 'cordova-plugin-themeablebrowser', pluginRef: 'cordova.ThemeableBrowser', repo: 'https://github.com/initialxy/cordova-plugin-themeablebrowser', - platforms: [ - 'Amazon Fire OS', - 'Android', - 'Blackberry 10', - 'Browser', - 'FirefoxOS', - 'iOS', - 'Ubuntu', - 'Windows', - 'Windows Phone' - ] + platforms: ['Amazon Fire OS', 'Android', 'Blackberry 10', 'Browser', 'FirefoxOS', 'iOS', 'Ubuntu', 'Windows', 'Windows Phone'] }) @Injectable() export class ThemeableBrowser extends IonicNativePlugin { + /** * Creates a browser instance * @param url {string} URL to open @@ -269,11 +236,8 @@ export class ThemeableBrowser extends IonicNativePlugin { * @param styleOptions {ThemeableBrowserOptions} Themeable browser options * @returns {ThemeableBrowserObject} */ - create( - url: string, - target: string, - styleOptions: ThemeableBrowserOptions - ): ThemeableBrowserObject { + create(url: string, target: string, styleOptions: ThemeableBrowserOptions): ThemeableBrowserObject { return new ThemeableBrowserObject(url, target, styleOptions); } + } diff --git a/src/@ionic-native/plugins/three-dee-touch/index.ts b/src/@ionic-native/plugins/three-dee-touch/index.ts index 8803c0d7b..6907118a0 100644 --- a/src/@ionic-native/plugins/three-dee-touch/index.ts +++ b/src/@ionic-native/plugins/three-dee-touch/index.ts @@ -1,13 +1,9 @@ import { Injectable } from '@angular/core'; -import { - Cordova, - CordovaFunctionOverride, - IonicNativePlugin, - Plugin -} from '@ionic-native/core'; +import { Cordova, CordovaFunctionOverride, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export interface ThreeDeeTouchQuickAction { + /** * Type that can be used in the onHomeIconPressed callback */ @@ -32,9 +28,11 @@ export interface ThreeDeeTouchQuickAction { * Icon template */ iconTemplate?: string; + } export interface ThreeDeeTouchForceTouch { + /** * Touch force */ @@ -54,6 +52,7 @@ export interface ThreeDeeTouchForceTouch { * Y coordinate of action */ y: number; + } /** @@ -129,14 +128,13 @@ export interface ThreeDeeTouchForceTouch { }) @Injectable() export class ThreeDeeTouch extends IonicNativePlugin { + /** * You need an iPhone 6S or some future tech to use the features of this plugin, so you can check at runtime if the user's device is supported. * @returns {Promise} returns a promise that resolves with a boolean that indicates whether the plugin is available or not */ @Cordova() - isAvailable(): Promise { - return; - } + isAvailable(): Promise { return; } /** * You can get a notification when the user force touches the webview. The plugin defines a Force Touch when at least 75% of the maximum force is applied to the screen. Your app will receive the x and y coordinates, so you have to figure out which UI element was touched. @@ -145,9 +143,7 @@ export class ThreeDeeTouch extends IonicNativePlugin { @Cordova({ observable: true }) - watchForceTouches(): Observable { - return; - } + watchForceTouches(): Observable { return; } /** * setup the 3D-touch actions, takes an array of objects with the following @@ -160,16 +156,14 @@ export class ThreeDeeTouch extends IonicNativePlugin { @Cordova({ sync: true }) - configureQuickActions(quickActions: Array): void {} + configureQuickActions(quickActions: Array): void { } /** * When a home icon is pressed, your app launches and this JS callback is invoked. * @returns {Observable} returns an observable that notifies you when he user presses on the home screen icon */ @CordovaFunctionOverride() - onHomeIconPressed(): Observable { - return; - } + onHomeIconPressed(): Observable { return; } /** * Enable Link Preview. @@ -178,7 +172,7 @@ export class ThreeDeeTouch extends IonicNativePlugin { @Cordova({ sync: true }) - enableLinkPreview(): void {} + enableLinkPreview(): void { } /** * Disabled the link preview feature, if enabled. @@ -186,5 +180,6 @@ export class ThreeDeeTouch extends IonicNativePlugin { @Cordova({ sync: true }) - disableLinkPreview(): void {} + disableLinkPreview(): void { } + } diff --git a/src/@ionic-native/plugins/toast/index.ts b/src/@ionic-native/plugins/toast/index.ts index ba7a92252..41d5a443e 100644 --- a/src/@ionic-native/plugins/toast/index.ts +++ b/src/@ionic-native/plugins/toast/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export interface ToastOptions { @@ -69,6 +69,7 @@ export interface ToastOptions { }) @Injectable() export class Toast extends IonicNativePlugin { + /** * Show a native toast for the given duration at the specified position. * @@ -81,18 +82,14 @@ export class Toast extends IonicNativePlugin { observable: true, clearFunction: 'hide' }) - show(message: string, duration: string, position: string): Observable { - return; - } + show(message: string, duration: string, position: string): Observable { return; } /** * Manually hide any currently visible toast. * @returns {Promise} Returns a Promise that resolves on success. */ @Cordova() - hide(): Promise { - return; - } + hide(): Promise { return; } /** * Show a native toast with the given options. @@ -109,9 +106,7 @@ export class Toast extends IonicNativePlugin { observable: true, clearFunction: 'hide' }) - showWithOptions(options: ToastOptions): Observable { - return; - } + showWithOptions(options: ToastOptions): Observable { return; } /** * Shorthand for `show(message, 'short', 'top')`. @@ -122,9 +117,7 @@ export class Toast extends IonicNativePlugin { observable: true, clearFunction: 'hide' }) - showShortTop(message: string): Observable { - return; - } + showShortTop(message: string): Observable { return; } /** * Shorthand for `show(message, 'short', 'center')`. @@ -135,9 +128,8 @@ export class Toast extends IonicNativePlugin { observable: true, clearFunction: 'hide' }) - showShortCenter(message: string): Observable { - return; - } + showShortCenter(message: string): Observable { return; } + /** * Shorthand for `show(message, 'short', 'bottom')`. @@ -148,9 +140,8 @@ export class Toast extends IonicNativePlugin { observable: true, clearFunction: 'hide' }) - showShortBottom(message: string): Observable { - return; - } + showShortBottom(message: string): Observable { return; } + /** * Shorthand for `show(message, 'long', 'top')`. @@ -161,9 +152,8 @@ export class Toast extends IonicNativePlugin { observable: true, clearFunction: 'hide' }) - showLongTop(message: string): Observable { - return; - } + showLongTop(message: string): Observable { return; } + /** * Shorthand for `show(message, 'long', 'center')`. @@ -174,9 +164,8 @@ export class Toast extends IonicNativePlugin { observable: true, clearFunction: 'hide' }) - showLongCenter(message: string): Observable { - return; - } + showLongCenter(message: string): Observable { return; } + /** * Shorthand for `show(message, 'long', 'bottom')`. @@ -187,7 +176,6 @@ export class Toast extends IonicNativePlugin { observable: true, clearFunction: 'hide' }) - showLongBottom(message: string): Observable { - return; - } + showLongBottom(message: string): Observable { return; } + } diff --git a/src/@ionic-native/plugins/touch-id/index.ts b/src/@ionic-native/plugins/touch-id/index.ts index 34f5f9ca2..5d411d663 100644 --- a/src/@ionic-native/plugins/touch-id/index.ts +++ b/src/@ionic-native/plugins/touch-id/index.ts @@ -1,5 +1,6 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; + /** * @name Touch ID @@ -51,15 +52,14 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; }) @Injectable() export class TouchID extends IonicNativePlugin { + /** * Checks Whether TouchID is available or not. * * @returns {Promise} Returns a Promise that resolves if yes, rejects if no. */ @Cordova() - isAvailable(): Promise { - return; - } + isAvailable(): Promise { return; } /** * Show TouchID dialog and wait for a fingerprint scan. If user taps 'Enter Password' button, brings up standard system passcode screen. @@ -68,9 +68,7 @@ export class TouchID extends IonicNativePlugin { * @returns {Promise} Returns a Promise the resolves if the fingerprint scan was successful, rejects with an error code (see above). */ @Cordova() - verifyFingerprint(message: string): Promise { - return; - } + verifyFingerprint(message: string): Promise { return; } /** * Show TouchID dialog and wait for a fingerprint scan. If user taps 'Enter Password' button, rejects with code '-3' (see above). @@ -79,9 +77,7 @@ export class TouchID extends IonicNativePlugin { * @returns {Promise} Returns a Promise the resolves if the fingerprint scan was successful, rejects with an error code (see above). */ @Cordova() - verifyFingerprintWithCustomPasswordFallback(message: string): Promise { - return; - } + verifyFingerprintWithCustomPasswordFallback(message: string): Promise { return; } /** * Show TouchID dialog with custom 'Enter Password' message and wait for a fingerprint scan. If user taps 'Enter Password' button, rejects with code '-3' (see above). @@ -91,12 +87,7 @@ export class TouchID extends IonicNativePlugin { * @returns {Promise} Returns a Promise the resolves if the fingerprint scan was successful, rejects with an error code (see above). */ @Cordova() - verifyFingerprintWithCustomPasswordFallbackAndEnterPasswordLabel( - message: string, - enterPasswordLabel: string - ): Promise { - return; - } + verifyFingerprintWithCustomPasswordFallbackAndEnterPasswordLabel(message: string, enterPasswordLabel: string): Promise { return; } /** * Checks if the fingerprint database changed. @@ -104,7 +95,6 @@ export class TouchID extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves if yes, rejects if no. */ @Cordova() - didFingerprintDatabaseChange(): Promise { - return; - } + didFingerprintDatabaseChange(): Promise { return; } + } diff --git a/src/@ionic-native/plugins/twitter-connect/index.ts b/src/@ionic-native/plugins/twitter-connect/index.ts index 4884b9d72..6ed25c92a 100644 --- a/src/@ionic-native/plugins/twitter-connect/index.ts +++ b/src/@ionic-native/plugins/twitter-connect/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; export interface TwitterConnectResponse { /** @@ -56,8 +56,7 @@ export interface TwitterConnectResponse { plugin: 'twitter-connect-plugin', pluginRef: 'TwitterConnect', repo: 'https://github.com/chroa/twitter-connect-plugin', - install: - 'ionic cordova plugin add https://github.com/chroa/twitter-connect-plugin --variable FABRIC_KEY= --variable TWITTER_KEY= --variable TWITTER_SECRET=', + install: 'ionic cordova plugin add https://github.com/chroa/twitter-connect-plugin --variable FABRIC_KEY= --variable TWITTER_KEY= --variable TWITTER_SECRET=', installVariables: ['FABRIC_KEY', 'TWITTER_KEY', 'TWITTER_SECRET'], platforms: ['Android', 'iOS'] }) @@ -68,24 +67,18 @@ export class TwitterConnect extends IonicNativePlugin { * @returns {Promise} returns a promise that resolves if logged in and rejects if failed to login */ @Cordova() - login(): Promise { - return; - } + login(): Promise { return; } /** * Logs out * @returns {Promise} returns a promise that resolves if logged out and rejects if failed to logout */ @Cordova() - logout(): Promise { - return; - } + logout(): Promise { return; } /** * Returns user's profile information * @returns {Promise} returns a promise that resolves if user profile is successfully retrieved and rejects if request fails */ @Cordova() - showUser(): Promise { - return; - } + showUser(): Promise { return; } } diff --git a/src/@ionic-native/plugins/uid/index.ts b/src/@ionic-native/plugins/uid/index.ts index e7e9f330f..aa417a832 100644 --- a/src/@ionic-native/plugins/uid/index.ts +++ b/src/@ionic-native/plugins/uid/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { CordovaProperty, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Plugin, CordovaProperty, IonicNativePlugin } from '@ionic-native/core'; /** * @name Uid @@ -13,12 +13,12 @@ import { CordovaProperty, IonicNativePlugin, Plugin } from '@ionic-native/core'; * * constructor(private uid: Uid, private androidPermissions: AndroidPermissions) { } * - * + * * async getImei() { * const { hasPermission } = await this.androidPermissions.checkPermission( * this.androidPermissions.PERMISSION.READ_PHONE_STATE * ); - * + * * if (!hasPermission) { * const result = await this.androidPermissions.requestPermission( * this.androidPermissions.PERMISSION.READ_PHONE_STATE @@ -27,11 +27,11 @@ import { CordovaProperty, IonicNativePlugin, Plugin } from '@ionic-native/core'; * if (!result.hasPermission) { * throw new Error('Permissions required'); * } - * + * * // ok, a user gave us permission, we can get him identifiers after restart app * return; * } - * + * * return this.uid.IMEI * } * ``` @@ -45,18 +45,25 @@ import { CordovaProperty, IonicNativePlugin, Plugin } from '@ionic-native/core'; }) @Injectable() export class Uid extends IonicNativePlugin { + /** Get the device Universally Unique Identifier (UUID). */ - @CordovaProperty UUID: string; + @CordovaProperty + UUID: string; /** Get the device International Mobile Station Equipment Identity (IMEI). */ - @CordovaProperty IMEI: string; + @CordovaProperty + IMEI: string; /** Get the device International mobile Subscriber Identity (IMSI). */ - @CordovaProperty IMSI: string; + @CordovaProperty + IMSI: string; /** Get the sim Integrated Circuit Card Identifier (ICCID). */ - @CordovaProperty ICCID: string; + @CordovaProperty + ICCID: string; /** Get the Media Access Control address (MAC). */ - @CordovaProperty MAC: string; + @CordovaProperty + MAC: string; + } diff --git a/src/@ionic-native/plugins/unique-device-id/index.ts b/src/@ionic-native/plugins/unique-device-id/index.ts index cb1463016..4773aa006 100644 --- a/src/@ionic-native/plugins/unique-device-id/index.ts +++ b/src/@ionic-native/plugins/unique-device-id/index.ts @@ -1,5 +1,5 @@ +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name Unique Device ID @@ -29,12 +29,12 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; }) @Injectable() export class UniqueDeviceID extends IonicNativePlugin { + /** * Gets a unique, cross-install, app-specific device id. * @return {Promise} Returns a promise that resolves when something happens */ @Cordova() - get(): Promise { - return; - } + get(): Promise { return; } + } diff --git a/src/@ionic-native/plugins/user-agent/index.ts b/src/@ionic-native/plugins/user-agent/index.ts index ec6fd5ea9..1a87f1f72 100644 --- a/src/@ionic-native/plugins/user-agent/index.ts +++ b/src/@ionic-native/plugins/user-agent/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; /** * @name User Agent @@ -41,6 +41,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; }) @Injectable() export class UserAgent extends IonicNativePlugin { + /** * Changes the current user-agent to the one sent by argument. * @param userAgent {string} User-Agent @@ -68,4 +69,5 @@ export class UserAgent extends IonicNativePlugin { reset(): Promise { return; } + } diff --git a/src/@ionic-native/plugins/vibration/index.ts b/src/@ionic-native/plugins/vibration/index.ts index df55e2a11..5d83e9da7 100644 --- a/src/@ionic-native/plugins/vibration/index.ts +++ b/src/@ionic-native/plugins/vibration/index.ts @@ -1,5 +1,6 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; + /** * @name Vibration @@ -36,6 +37,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; }) @Injectable() export class Vibration extends IonicNativePlugin { + /** * Vibrates the device for given amount of time. * @param time {number|Array} Milliseconds to vibrate the device. If passed an array of numbers, it will define a vibration pattern. Pass 0 to stop any vibration immediately. @@ -43,5 +45,6 @@ export class Vibration extends IonicNativePlugin { @Cordova({ sync: true }) - vibrate(time: number | Array) {} + vibrate(time: number | Array) { } + } diff --git a/src/@ionic-native/plugins/video-capture-plus/index.ts b/src/@ionic-native/plugins/video-capture-plus/index.ts index ac9e37098..7969aa9c1 100644 --- a/src/@ionic-native/plugins/video-capture-plus/index.ts +++ b/src/@ionic-native/plugins/video-capture-plus/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; export interface MediaFile { /** @@ -30,10 +30,7 @@ export interface MediaFile { * @param {Function} successCallback * @param {Function} [errorCallback] */ - getFormatData( - successCallback: (data: MediaFileData) => any, - errorCallback?: (err: any) => any - ): any; + getFormatData(successCallback: (data: MediaFileData) => any, errorCallback?: (err: any) => any): any; } export interface MediaFileData { @@ -60,41 +57,43 @@ export interface MediaFileData { } export interface VideoCapturePlusOptions { + /** - * The number of videos to record, default 1 (on iOS always 1) - */ + * The number of videos to record, default 1 (on iOS always 1) + */ limit?: number; /** - * Max duration in seconds, default 0, which is 'forever' - */ + * Max duration in seconds, default 0, which is 'forever' + */ duration?: number; /** - * Set to true to override the default low quality setting - */ + * Set to true to override the default low quality setting + */ highquality?: boolean; /** - * Set to true to override the default backfacing camera setting. - * You'll want to sniff the useragent/device and pass the best overlay based on that.. assuming iphone here - */ + * Set to true to override the default backfacing camera setting. + * You'll want to sniff the useragent/device and pass the best overlay based on that.. assuming iphone here + */ frontcamera?: boolean; /** - * put the png overlay in your assets folder - */ + * put the png overlay in your assets folder + */ portraitOverlay?: string; /** - * not passing an overlay means no image is shown for the landscape orientation - */ + * not passing an overlay means no image is shown for the landscape orientation + */ landscapeOverlay?: string; /** - * iOS only - */ + * iOS only + */ overlayText?: string; + } /** @@ -139,6 +138,7 @@ export interface VideoCapturePlusOptions { }) @Injectable() export class VideoCapturePlus extends IonicNativePlugin { + /** * Starts recordings * @param [options] {VideoCapturePlusOptions} Configure options @@ -147,7 +147,6 @@ export class VideoCapturePlus extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - captureVideo(options?: VideoCapturePlusOptions): Promise { - return; - } + captureVideo(options?: VideoCapturePlusOptions): Promise { return; } + } diff --git a/src/@ionic-native/plugins/video-editor/index.ts b/src/@ionic-native/plugins/video-editor/index.ts index f767c0344..16af70d2e 100644 --- a/src/@ionic-native/plugins/video-editor/index.ts +++ b/src/@ionic-native/plugins/video-editor/index.ts @@ -1,7 +1,8 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; export interface TranscodeOptions { + /** The path to the video on the device. */ fileUri: string; @@ -49,6 +50,7 @@ export interface TranscodeOptions { } export interface TrimOptions { + /** Path to input video. */ fileUri: string; @@ -63,9 +65,11 @@ export interface TrimOptions { /** Progress on transcode. info will be a number from 0 to 100 */ progress?: (info: any) => void; + } export interface CreateThumbnailOptions { + /** The path to the video on the device */ fileUri: string; @@ -83,14 +87,18 @@ export interface CreateThumbnailOptions { /** Quality of the thumbnail (between 1 and 100). */ quality?: number; + } export interface GetVideoInfoOptions { + /** The path to the video on the device. */ fileUri: string; + } export interface VideoInfo { + /** Width of the video in pixels. */ width: number; @@ -108,6 +116,7 @@ export interface VideoInfo { /** Bitrate of the video in bits per second. */ bitrate: number; + } /** @@ -147,6 +156,7 @@ export interface VideoInfo { }) @Injectable() export class VideoEditor extends IonicNativePlugin { + OptimizeForNetworkUse = { NO: 0, YES: 1 @@ -167,9 +177,7 @@ export class VideoEditor extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - transcodeVideo(options: TranscodeOptions): Promise { - return; - } + transcodeVideo(options: TranscodeOptions): Promise { return; } /** * Trim a video @@ -180,9 +188,7 @@ export class VideoEditor extends IonicNativePlugin { callbackOrder: 'reverse', platforms: ['iOS'] }) - trim(options: TrimOptions): Promise { - return; - } + trim(options: TrimOptions): Promise { return; } /** * Create a JPEG thumbnail from a video @@ -192,9 +198,7 @@ export class VideoEditor extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - createThumbnail(options: CreateThumbnailOptions): Promise { - return; - } + createThumbnail(options: CreateThumbnailOptions): Promise { return; } /** * Get info on a video (width, height, orientation, duration, size, & bitrate) @@ -204,7 +208,6 @@ export class VideoEditor extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - getVideoInfo(options: GetVideoInfoOptions): Promise { - return; - } + getVideoInfo(options: GetVideoInfoOptions): Promise { return; } + } diff --git a/src/@ionic-native/plugins/video-player/index.ts b/src/@ionic-native/plugins/video-player/index.ts index d80dd2018..e45fbf448 100644 --- a/src/@ionic-native/plugins/video-player/index.ts +++ b/src/@ionic-native/plugins/video-player/index.ts @@ -1,14 +1,14 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; /** * Options for the video playback using the `play` function. */ export interface VideoOptions { /** - * Set the initial volume of the video playback, where 0.0 is 0% volume and 1.0 is 100%. - * For example: for a volume of 30% set the value to 0.3. - */ + * Set the initial volume of the video playback, where 0.0 is 0% volume and 1.0 is 100%. + * For example: for a volume of 30% set the value to 0.3. + */ volume?: number; /** * There are two options for the scaling mode. SCALE_TO_FIT which is default and SCALE_TO_FIT_WITH_CROPPING. @@ -52,6 +52,7 @@ export interface VideoOptions { }) @Injectable() export class VideoPlayer extends IonicNativePlugin { + /** * Plays the video from the passed url. * @param fileUrl {string} File url to the video. @@ -59,13 +60,11 @@ export class VideoPlayer extends IonicNativePlugin { * @returns {Promise} Resolves promise when the video was played successfully. */ @Cordova() - play(fileUrl: string, options?: VideoOptions): Promise { - return; - } + play(fileUrl: string, options?: VideoOptions): Promise { return; } /** * Stops the video playback immediatly. */ @Cordova({ sync: true }) - close(): void {} + close(): void { } } diff --git a/src/@ionic-native/plugins/web-intent/index.ts b/src/@ionic-native/plugins/web-intent/index.ts index 8ec269c9b..7bd06c562 100644 --- a/src/@ionic-native/plugins/web-intent/index.ts +++ b/src/@ionic-native/plugins/web-intent/index.ts @@ -1,10 +1,5 @@ import { Injectable } from '@angular/core'; -import { - Cordova, - CordovaProperty, - IonicNativePlugin, - Plugin -} from '@ionic-native/core'; +import { Cordova, CordovaProperty, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; /** @@ -35,8 +30,7 @@ import { Observable } from 'rxjs/Observable'; pluginName: 'WebIntent', plugin: 'com-darryncampbell-cordova-plugin-intent', pluginRef: 'plugins.intentShim', - repo: - 'https://github.com/darryncampbell/darryncampbell-cordova-plugin-intent', + repo: 'https://github.com/darryncampbell/darryncampbell-cordova-plugin-intent', platforms: ['Android'] }) @Injectable() diff --git a/src/@ionic-native/plugins/wheel-selector/index.ts b/src/@ionic-native/plugins/wheel-selector/index.ts index a41b8be6b..5f5f787fa 100644 --- a/src/@ionic-native/plugins/wheel-selector/index.ts +++ b/src/@ionic-native/plugins/wheel-selector/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; export interface WheelSelectorItem { description?: string; @@ -55,7 +55,7 @@ export interface WheelSelectorOptions { * key/value to be displayed * Default: description */ - displayKey?: string; + displayKey?: string; } export interface WheelSelectorData { @@ -155,7 +155,7 @@ export interface WheelSelectorData { * ], * displayKey: 'name', * defaultItems: [ - * {index:0, value: this.jsonData.firstNames[2].name}, + * {index:0, value: this.jsonData.firstNames[2].name}, * {index: 0, value: this.jsonData.lastNames[3].name} * ] * }).then( @@ -179,8 +179,10 @@ export interface WheelSelectorData { repo: 'https://github.com/jasonmamy/cordova-wheel-selector-plugin', platforms: ['Android', 'iOS'] }) + @Injectable() export class WheelSelector extends IonicNativePlugin { + /** * Shows the wheel selector * @param {WheelSelectorOptions} options Options for the wheel selector @@ -198,7 +200,5 @@ export class WheelSelector extends IonicNativePlugin { @Cordova({ platforms: ['iOS'] }) - hideSelector(): Promise { - return; - } + hideSelector(): Promise { return; } } diff --git a/src/@ionic-native/plugins/youtube-video-player/index.ts b/src/@ionic-native/plugins/youtube-video-player/index.ts index c909296f9..6b458594c 100644 --- a/src/@ionic-native/plugins/youtube-video-player/index.ts +++ b/src/@ionic-native/plugins/youtube-video-player/index.ts @@ -1,6 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; - +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; /** * @name Youtube Video Player * @description @@ -35,10 +34,12 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; }) @Injectable() export class YoutubeVideoPlayer extends IonicNativePlugin { + /** * Plays a YouTube video * @param videoId {string} Video ID */ @Cordova({ sync: true }) - openVideo(videoId: string): void {} + openVideo(videoId: string): void { } + } diff --git a/src/@ionic-native/plugins/zbar/index.ts b/src/@ionic-native/plugins/zbar/index.ts index 724459bcc..3fb463c8d 100644 --- a/src/@ionic-native/plugins/zbar/index.ts +++ b/src/@ionic-native/plugins/zbar/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; export interface ZBarOptions { /** @@ -77,13 +77,13 @@ export interface ZBarOptions { }) @Injectable() export class ZBar extends IonicNativePlugin { + /** * Open the scanner * @param options { ZBarOptions } Scan options * @returns {Promise} Returns a Promise that resolves with the scanned string, or rejects with an error. */ @Cordova() - scan(options: ZBarOptions): Promise { - return; - } + scan(options: ZBarOptions): Promise { return; } + } diff --git a/src/@ionic-native/plugins/zeroconf/index.ts b/src/@ionic-native/plugins/zeroconf/index.ts index 4fde9656f..63ce74574 100644 --- a/src/@ionic-native/plugins/zeroconf/index.ts +++ b/src/@ionic-native/plugins/zeroconf/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export interface ZeroconfService { @@ -65,9 +65,7 @@ export class Zeroconf extends IonicNativePlugin { * @return {Promise} */ @Cordova() - getHostname(): Promise { - return; - } + getHostname(): Promise { return; } /** * Publishes a new service. @@ -79,15 +77,7 @@ export class Zeroconf extends IonicNativePlugin { * @return {Promise} Returns a Promise that resolves with the registered service. */ @Cordova() - register( - type: string, - domain: string, - name: string, - port: number, - txtRecord: any - ): Promise { - return; - } + register(type: string, domain: string, name: string, port: number, txtRecord: any): Promise { return; } /** * Unregisters a service. @@ -97,18 +87,14 @@ export class Zeroconf extends IonicNativePlugin { * @return {Promise} */ @Cordova() - unregister(type: string, domain: string, name: string): Promise { - return; - } + unregister(type: string, domain: string, name: string): Promise { return; } /** * Unregisters all published services. * @return {Promise} */ @Cordova() - stop(): Promise { - return; - } + stop(): Promise { return; } /** * Starts watching for services of the specified type. @@ -121,9 +107,7 @@ export class Zeroconf extends IonicNativePlugin { clearFunction: 'unwatch', clearWithArgs: true }) - watch(type: string, domain: string): Observable { - return; - } + watch(type: string, domain: string): Observable { return; } /** * Stops watching for services of the specified type. @@ -132,25 +116,19 @@ export class Zeroconf extends IonicNativePlugin { * @return {Promise} */ @Cordova() - unwatch(type: string, domain: string): Promise { - return; - } + unwatch(type: string, domain: string): Promise { return; } /** * Closes the service browser and stops watching. * @return {Promise} */ @Cordova() - close(): Promise { - return; - } + close(): Promise { return; } /** * Re-initializes the plugin to clean service & browser state. * @return {Promise} */ @Cordova() - reInit(): Promise { - return; - } + reInit(): Promise { return; } } diff --git a/src/@ionic-native/plugins/zip/index.ts b/src/@ionic-native/plugins/zip/index.ts index 9bea88ec7..7fc038016 100644 --- a/src/@ionic-native/plugins/zip/index.ts +++ b/src/@ionic-native/plugins/zip/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; /** * @name Zip @@ -31,6 +31,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; }) @Injectable() export class Zip extends IonicNativePlugin { + /** * Extracts files from a ZIP archive * @param sourceZip {string} Source ZIP file @@ -42,11 +43,6 @@ export class Zip extends IonicNativePlugin { successIndex: 2, errorIndex: 4 }) - unzip( - sourceZip: string, - destUrl: string, - onProgress?: Function - ): Promise { - return; - } + unzip(sourceZip: string, destUrl: string, onProgress?: Function): Promise { return; } + } From 76dee252aa392ead0d00e04a83196f6df99f5203 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Sat, 17 Mar 2018 00:26:07 +0100 Subject: [PATCH 086/110] fix lint --- src/@ionic-native/plugins/http/index.ts | 75 ++++++++++++++++++------- 1 file changed, 55 insertions(+), 20 deletions(-) diff --git a/src/@ionic-native/plugins/http/index.ts b/src/@ionic-native/plugins/http/index.ts index b8e1da71a..b9a1bdcf9 100644 --- a/src/@ionic-native/plugins/http/index.ts +++ b/src/@ionic-native/plugins/http/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface HTTPResponse { /** @@ -66,7 +66,6 @@ export interface HTTPResponse { }) @Injectable() export class HTTP extends IonicNativePlugin { - /** * This returns an object representing a basic HTTP Authorization header of the form. * @param username {string} Username @@ -74,7 +73,12 @@ export class HTTP extends IonicNativePlugin { * @returns {Object} an object representing a basic HTTP Authorization header of the form {'Authorization': 'Basic base64encodedusernameandpassword'} */ @Cordova({ sync: true }) - getBasicAuthHeader(username: string, password: string): { Authorization: string; } { return; } + getBasicAuthHeader( + username: string, + password: string + ): { Authorization: string } { + return; + } /** * This sets up all future requests to use Basic HTTP authentication with the given username and password. @@ -82,7 +86,7 @@ export class HTTP extends IonicNativePlugin { * @param password {string} Password */ @Cordova({ sync: true }) - useBasicAuth(username: string, password: string): void { } + useBasicAuth(username: string, password: string): void {} /** * Set a header for all future requests. Takes a header and a value. @@ -90,20 +94,20 @@ export class HTTP extends IonicNativePlugin { * @param value {string} The value of the header */ @Cordova({ sync: true }) - setHeader(header: string, value: string): void { } + setHeader(header: string, value: string): void {} /** * Set the data serializer which will be used for all future POST and PUT requests. Takes a string representing the name of the serializer. * @param serializer {string} The name of the serializer. Can be urlencoded or json */ @Cordova({ sync: true }) - setDataSerializer(serializer: string): void { } + setDataSerializer(serializer: string): void {} /** * Clear all cookies */ @Cordova({ sync: true }) - clearCookies(): void { } + clearCookies(): void {} /** * Remove cookies @@ -111,21 +115,21 @@ export class HTTP extends IonicNativePlugin { * @param cb */ @Cordova({ sync: true }) - removeCookies(url: string, cb: () => void): void { } + removeCookies(url: string, cb: () => void): void {} /** * Disable following redirects automatically * @param disable {boolean} Set to true to disable following redirects automatically */ @Cordova({ sync: true }) - disableRedirect(disable: boolean): void { } + disableRedirect(disable: boolean): void {} /** * Set request timeout * @param timeout {number} The timeout in seconds. Default 60 */ @Cordova({ sync: true }) - setRequestTimeout(timeout: number): void { } + setRequestTimeout(timeout: number): void {} /** * Enable or disable SSL Pinning. This defaults to false. @@ -137,7 +141,9 @@ export class HTTP extends IonicNativePlugin { * @returns {Promise} returns a promise that will resolve on success, and reject on failure */ @Cordova() - enableSSLPinning(enable: boolean): Promise { return; } + enableSSLPinning(enable: boolean): Promise { + return; + } /** * Accept all SSL certificates. Or disabled accepting all certificates. Defaults to false. @@ -145,7 +151,9 @@ export class HTTP extends IonicNativePlugin { * @returns {Promise} returns a promise that will resolve on success, and reject on failure */ @Cordova() - acceptAllCerts(accept: boolean): Promise { return; } + acceptAllCerts(accept: boolean): Promise { + return; + } /** * Make a POST request @@ -155,7 +163,9 @@ export class HTTP extends IonicNativePlugin { * @returns {Promise} returns a promise that resolve on success, and reject on failure */ @Cordova() - post(url: string, body: any, headers: any): Promise { return; } + post(url: string, body: any, headers: any): Promise { + return; + } /** * Make a GET request @@ -165,7 +175,9 @@ export class HTTP extends IonicNativePlugin { * @returns {Promise} returns a promise that resolve on success, and reject on failure */ @Cordova() - get(url: string, parameters: any, headers: any): Promise { return; } + get(url: string, parameters: any, headers: any): Promise { + return; + } /** * Make a PUT request @@ -175,7 +187,9 @@ export class HTTP extends IonicNativePlugin { * @returns {Promise} returns a promise that resolve on success, and reject on failure */ @Cordova() - put(url: string, body: any, headers: any): Promise { return; } + put(url: string, body: any, headers: any): Promise { + return; + } /** * Make a PATCH request @@ -185,7 +199,9 @@ export class HTTP extends IonicNativePlugin { * @returns {Promise} returns a promise that resolve on success, and reject on failure */ @Cordova() - patch(url: string, body: any, headers: any): Promise { return; } + patch(url: string, body: any, headers: any): Promise { + return; + } /** * Make a DELETE request @@ -195,7 +211,9 @@ export class HTTP extends IonicNativePlugin { * @returns {Promise} returns a promise that resolve on success, and reject on failure */ @Cordova() - delete(url: string, parameters: any, headers: any): Promise { return; } + delete(url: string, parameters: any, headers: any): Promise { + return; + } /** * Make a HEAD request @@ -205,7 +223,9 @@ export class HTTP extends IonicNativePlugin { * @returns {Promise} returns a promise that resolve on success, and reject on failure */ @Cordova() - head(url: string, parameters: any, headers: any): Promise { return; } + head(url: string, parameters: any, headers: any): Promise { + return; + } /** * @@ -217,7 +237,15 @@ export class HTTP extends IonicNativePlugin { * @returns {Promise} returns a promise that resolve on success, and reject on failure */ @Cordova() - uploadFile(url: string, body: any, headers: any, filePath: string, name: string): Promise { return; } + uploadFile( + url: string, + body: any, + headers: any, + filePath: string, + name: string + ): Promise { + return; + } /** * @@ -228,5 +256,12 @@ export class HTTP extends IonicNativePlugin { * @returns {Promise} returns a promise that resolve on success, and reject on failure */ @Cordova() - downloadFile(url: string, body: any, headers: any, filePath: string): Promise { return; } + downloadFile( + url: string, + body: any, + headers: any, + filePath: string + ): Promise { + return; + } } From c8361841f4eb4fe9526d48544d90be34c354f0e8 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Sat, 17 Mar 2018 00:35:41 +0100 Subject: [PATCH 087/110] ref jsdocs --- src/@ionic-native/plugins/push/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/@ionic-native/plugins/push/index.ts b/src/@ionic-native/plugins/push/index.ts index 604be908d..21058efc3 100644 --- a/src/@ionic-native/plugins/push/index.ts +++ b/src/@ionic-native/plugins/push/index.ts @@ -333,7 +333,7 @@ export class Push extends IonicNativePlugin { /** * Create a new notification channel for Android O and above. - * @param [channel] {Channel} + * @param channel {Channel} */ @Cordova({ callbackOrder: 'reverse' @@ -342,7 +342,7 @@ export class Push extends IonicNativePlugin { /** * Delete a notification channel for Android O and above. - * @param [id] + * @param id {string} */ @Cordova({ callbackOrder: 'reverse' From 5e40f3412ab2aac16e7c30b10d77b9fa7ae89160 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Sat, 17 Mar 2018 00:47:46 +0100 Subject: [PATCH 088/110] add CallLogObject interface --- src/@ionic-native/plugins/call-log/index.ts | 29 ++++++++++++++------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/src/@ionic-native/plugins/call-log/index.ts b/src/@ionic-native/plugins/call-log/index.ts index d7a541190..fd7906286 100644 --- a/src/@ionic-native/plugins/call-log/index.ts +++ b/src/@ionic-native/plugins/call-log/index.ts @@ -1,5 +1,11 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; + +export interface CallLogObject { + name: string; + value: string; + operator: '==' | '!=' | '>' | '>=' | '<' | '<='; +} /** * @name Call Log @@ -13,7 +19,9 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; * * constructor(private callLog: CallLog) { } * - * ... + * ```` + * @interfaces + * CallLogObject * */ @Plugin({ @@ -25,16 +33,15 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; }) @Injectable() export class CallLog extends IonicNativePlugin { - /** * This function return the call logs - * @param filters {object[]} array of object to filter the query - * Object must respect this structure {'name':'...', 'value': '...', 'operator': '=='} - * (see https://github.com/creacore-team/cordova-plugin-calllog for more details) + * @param filters {CallLogObject[]} array of object to filter the query * @return {Promise} */ @Cordova() - getCallLog(filters: object[]): Promise { return; } + getCallLog(filters: CallLogObject[]): Promise { + return; + } /** * Check permission @@ -43,7 +50,9 @@ export class CallLog extends IonicNativePlugin { @Cordova({ platforms: ['Android'] }) - hasReadPermission(): Promise { return; } + hasReadPermission(): Promise { + return; + } /** * Request permission @@ -52,5 +61,7 @@ export class CallLog extends IonicNativePlugin { @Cordova({ platforms: ['Android'] }) - requestReadPermission(): Promise { return; } + requestReadPermission(): Promise { + return; + } } From 3841219dd54363ecaf17658401f8292c331eb94c Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Sat, 17 Mar 2018 01:03:46 +0100 Subject: [PATCH 089/110] Update index.ts --- src/@ionic-native/plugins/in-app-browser/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/@ionic-native/plugins/in-app-browser/index.ts b/src/@ionic-native/plugins/in-app-browser/index.ts index b029b5f9e..6310d888f 100644 --- a/src/@ionic-native/plugins/in-app-browser/index.ts +++ b/src/@ionic-native/plugins/in-app-browser/index.ts @@ -155,7 +155,7 @@ export class InAppBrowserObject { * @description Launches in app Browser * @usage * ```typescript - * import { InAppBrowser, InAppBrowserEvent } from '@ionic-native/in-app-browser'; + * import { InAppBrowser } from '@ionic-native/in-app-browser'; * * constructor(private iab: InAppBrowser) { } * @@ -168,7 +168,7 @@ export class InAppBrowserObject { * browser.executeScript(...); * * browser.insertCSS(...); - * browser.on('loadstop').subscribe((event: InAppBrowserEvent) => { + * browser.on('loadstop').subscribe(event => { * browser.insertCSS({ code: "body{color: red;" }); * }); * From 9816ca665011273727de7f77294ad09c71939f30 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Sat, 17 Mar 2018 01:11:55 +0100 Subject: [PATCH 090/110] add GlobalizationOptions interface --- .../plugins/globalization/index.ts | 108 +++++++++++++++--- 1 file changed, 94 insertions(+), 14 deletions(-) diff --git a/src/@ionic-native/plugins/globalization/index.ts b/src/@ionic-native/plugins/globalization/index.ts index 77d8bf7df..898084b18 100644 --- a/src/@ionic-native/plugins/globalization/index.ts +++ b/src/@ionic-native/plugins/globalization/index.ts @@ -1,6 +1,11 @@ import { Injectable } from '@angular/core'; import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +export interface GlobalizationOptions { + formatLength: string; + selector: string; +} + /** * @name Globalization * @description @@ -26,6 +31,8 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; * * * ``` + * @interfaces + * GlobalizationOptions */ @Plugin({ pluginName: 'Globalization', @@ -36,20 +43,23 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; }) @Injectable() export class Globalization extends IonicNativePlugin { - /** * Returns the BCP-47 compliant language identifier tag to the successCallback with a properties object as a parameter. That object should have a value property with a String value. * @returns {Promise<{value: string}>} */ @Cordova() - getPreferredLanguage(): Promise<{ value: string }> { return; } + getPreferredLanguage(): Promise<{ value: string }> { + return; + } /** * Returns the BCP 47 compliant locale identifier string to the successCallback with a properties object as a parameter. * @returns {Promise<{value: string}>} */ @Cordova() - getLocaleName(): Promise<{ value: string }> { return; } + getLocaleName(): Promise<{ value: string }> { + return; + } /** * Converts date to string @@ -61,7 +71,12 @@ export class Globalization extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - dateToString(date: Date, options: { formatLength: string, selector: string }): Promise<{ value: string }> { return; } + dateToString( + date: Date, + options: GlobalizationOptions + ): Promise<{ value: string }> { + return; + } /** * Parses a date formatted as a string, according to the client's user preferences and calendar using the time zone of the client, and returns the corresponding date object. @@ -73,7 +88,20 @@ export class Globalization extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - stringToDate(dateString: string, options: { formatLength: string, selector: string }): Promise<{ year: number, month: number, day: number, hour: number, minute: number, second: number, millisecond: number }> { return; } + stringToDate( + dateString: string, + options: GlobalizationOptions + ): Promise<{ + year: number; + month: number; + day: number; + hour: number; + minute: number; + second: number; + millisecond: number; + }> { + return; + } /** * Returns a pattern string to format and parse dates according to the client's user preferences. @@ -83,7 +111,17 @@ export class Globalization extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - getDatePattern(options?: { formatLength: string, selector: string }): Promise<{ pattern: string, timezone: string, iana_timezone: string, utf_offset: number, dst_offset: number }> { return; } + getDatePattern( + options: GlobalizationOptions + ): Promise<{ + pattern: string; + timezone: string; + iana_timezone: string; + utf_offset: number; + dst_offset: number; + }> { + return; + } /** * Returns an array of the names of the months or days of the week, depending on the client's user preferences and calendar. @@ -93,7 +131,12 @@ export class Globalization extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - getDateNames(options: { type: string, item: string }): Promise<{ value: Array }> { return; } + getDateNames(options: { + type: string; + item: string; + }): Promise<{ value: Array }> { + return; + } /** * Indicates whether daylight savings time is in effect for a given date using the client's time zone and calendar. @@ -101,14 +144,18 @@ export class Globalization extends IonicNativePlugin { * @returns {Promise<{dst: string}>} reutrns a promise with the value */ @Cordova() - isDayLightSavingsTime(date: Date): Promise<{ dst: string }> { return; } + isDayLightSavingsTime(date: Date): Promise<{ dst: string }> { + return; + } /** * Returns the first day of the week according to the client's user preferences and calendar. * @returns {Promise<{value: string}>} returns a promise with the value */ @Cordova() - getFirstDayOfWeek(): Promise<{ value: string }> { return; } + getFirstDayOfWeek(): Promise<{ value: string }> { + return; + } /** * Returns a number formatted as a string according to the client's user preferences. @@ -119,7 +166,12 @@ export class Globalization extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - numberToString(numberToConvert: number, options: { type: string }): Promise<{ value: string }> { return; } + numberToString( + numberToConvert: number, + options: { type: string } + ): Promise<{ value: string }> { + return; + } /** * @@ -131,7 +183,12 @@ export class Globalization extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - stringToNumber(stringToConvert: string, options: { type: string }): Promise<{ value: number | string }> { return; } + stringToNumber( + stringToConvert: string, + options: { type: string } + ): Promise<{ value: number | string }> { + return; + } /** * Returns a pattern string to format and parse numbers according to the client's user preferences. @@ -141,7 +198,20 @@ export class Globalization extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - getNumberPattern(options: { type: string }): Promise<{ pattern: string, symbol: string, fraction: number, rounding: number, positive: string, negative: string, decimal: string, grouping: string }> { return; } + getNumberPattern(options: { + type: string; + }): Promise<{ + pattern: string; + symbol: string; + fraction: number; + rounding: number; + positive: string; + negative: string; + decimal: string; + grouping: string; + }> { + return; + } /** * Returns a pattern string to format and parse currency values according to the client's user preferences and ISO 4217 currency code. @@ -149,6 +219,16 @@ export class Globalization extends IonicNativePlugin { * @returns {Promise<{ pattern: string, code: string, fraction: number, rounding: number, decimal: number, grouping: string }>} */ @Cordova() - getCurrencyPattern(currencyCode: string): Promise<{ pattern: string, code: string, fraction: number, rounding: number, decimal: number, grouping: string }> { return; } - + getCurrencyPattern( + currencyCode: string + ): Promise<{ + pattern: string; + code: string; + fraction: number; + rounding: number; + decimal: number; + grouping: string; + }> { + return; + } } From a6b9a9237a198081250e06c105fadc4376efa9b2 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Sat, 17 Mar 2018 01:15:01 +0100 Subject: [PATCH 091/110] fix lint --- .../plugins/music-controls/index.ts | 29 +++++++++++-------- 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/src/@ionic-native/plugins/music-controls/index.ts b/src/@ionic-native/plugins/music-controls/index.ts index df627061d..0304de87f 100644 --- a/src/@ionic-native/plugins/music-controls/index.ts +++ b/src/@ionic-native/plugins/music-controls/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export interface MusicControlsOptions { @@ -154,21 +154,24 @@ export interface MusicControlsOptions { }) @Injectable() export class MusicControls extends IonicNativePlugin { - /** * Create the media controls * @param options {MusicControlsOptions} * @returns {Promise} */ @Cordova() - create(options: MusicControlsOptions): Promise { return; } + create(options: MusicControlsOptions): Promise { + return; + } /** * Destroy the media controller * @returns {Promise} */ @Cordova() - destroy(): Promise { return; } + destroy(): Promise { + return; + } /** * Subscribe to the events of the media controller @@ -177,34 +180,36 @@ export class MusicControls extends IonicNativePlugin { @Cordova({ observable: true }) - subscribe(): Observable { return; } + subscribe(): Observable { + return; + } /** * Start listening for events, this enables the Observable from the subscribe method */ @Cordova({ sync: true }) - listen(): void { } + listen(): void {} /** * Toggle play/pause: * @param isPlaying {boolean} */ @Cordova() - updateIsPlaying(isPlaying: boolean): void { } + updateIsPlaying(isPlaying: boolean): void {} /** - * Update elapsed time, optionally toggle play/pause: - * @param args {Object} - */ + * Update elapsed time, optionally toggle play/pause: + * @param args {Object} + */ @Cordova({ platforms: ['iOS'] }) - updateElapsed(args: { elapsed: string; isPlaying: boolean; }): void { } + updateElapsed(args: { elapsed: string; isPlaying: boolean }): void {} /** * Toggle dismissable: * @param dismissable {boolean} */ @Cordova() - updateDismissable(dismissable: boolean): void { } + updateDismissable(dismissable: boolean): void {} } From b61c442fd2bf1e17882a8f9dd03690d99a8b3157 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Sat, 17 Mar 2018 01:22:06 +0100 Subject: [PATCH 092/110] fix example --- src/@ionic-native/plugins/fcm/index.ts | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/@ionic-native/plugins/fcm/index.ts b/src/@ionic-native/plugins/fcm/index.ts index 9b371567c..269937abb 100644 --- a/src/@ionic-native/plugins/fcm/index.ts +++ b/src/@ionic-native/plugins/fcm/index.ts @@ -33,22 +33,21 @@ export interface NotificationData { * * this.fcm.subscribeToTopic('marketing'); * - * this.fcm.getToken().then(token=>{ - * /* save your token on backend */ + * this.fcm.getToken().then(token => { * backend.registerToken(token); - * }) + * }); * - * this.fcm.onNotification().subscribe(data=>{ + * this.fcm.onNotification().subscribe(data => { * if(data.wasTapped){ * console.log("Received in background"); * } else { * console.log("Received in foreground"); * }; - * }) + * }); * - * this.fcm.onTokenRefresh().subscribe(token=>{ + * this.fcm.onTokenRefresh().subscribe(token => { * backend.registerToken(token); - * }) + * }); * * this.fcm.unsubscribeFromTopic('marketing'); * From 7c6b117643bf7a01cf62f29a1aa6075b00d3b2f4 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Sat, 17 Mar 2018 10:03:06 +0100 Subject: [PATCH 093/110] docs(image-resize): add note about fileName for iOS platform --- src/@ionic-native/plugins/image-resizer/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/@ionic-native/plugins/image-resizer/index.ts b/src/@ionic-native/plugins/image-resizer/index.ts index 2928e119c..165ffbcd4 100644 --- a/src/@ionic-native/plugins/image-resizer/index.ts +++ b/src/@ionic-native/plugins/image-resizer/index.ts @@ -31,8 +31,7 @@ export interface ImageResizerOptions { quality?: number; /** - * A custom name for the file. Default name is a timestamp - * (Android and Windows only) + * A custom name for the file. Default name is a timestamp. You have to set this value on iOS */ fileName?: string; } From 586c7e505f3ce7d1016059a5303d87ea4ed82010 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Sat, 17 Mar 2018 10:38:05 +0100 Subject: [PATCH 094/110] fix(badge): add correct requestPermission function fixes: #105 #1856 --- src/@ionic-native/plugins/badge/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/badge/index.ts b/src/@ionic-native/plugins/badge/index.ts index eb4828fe5..815711c74 100644 --- a/src/@ionic-native/plugins/badge/index.ts +++ b/src/@ionic-native/plugins/badge/index.ts @@ -101,7 +101,7 @@ export class Badge extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - registerPermission(): Promise { + requestPermission(): Promise { return; } } From f7184325a7567968eede72d59566c34d999ded24 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Sat, 17 Mar 2018 10:56:14 +0100 Subject: [PATCH 095/110] fix(facebook): remove browserInit function fix: #1901 --- src/@ionic-native/plugins/facebook/index.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/@ionic-native/plugins/facebook/index.ts b/src/@ionic-native/plugins/facebook/index.ts index 21bd6f598..2ba252763 100644 --- a/src/@ionic-native/plugins/facebook/index.ts +++ b/src/@ionic-native/plugins/facebook/index.ts @@ -156,17 +156,6 @@ export class Facebook extends IonicNativePlugin { EVENT_PARAM_VALUE_NO: '0' }; - /** - * Browser wrapper - * @param {number} appId Your Facebook AppID from their dashboard - * @param {string} version The version of API you may want to use. Optional - * @returns {Promise} - */ - @Cordova() - browserInit(appId: number, version?: string): Promise { - return; - } - /** * Login to Facebook to authenticate this app. * From 8dc5ad2ee6b42b6038a9f7dba41e8067dc93c6f0 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Sat, 17 Mar 2018 11:08:21 +0100 Subject: [PATCH 096/110] fix(web-intent): allow extras fix: #1959 --- src/@ionic-native/plugins/web-intent/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/@ionic-native/plugins/web-intent/index.ts b/src/@ionic-native/plugins/web-intent/index.ts index 7bd06c562..b74f37507 100644 --- a/src/@ionic-native/plugins/web-intent/index.ts +++ b/src/@ionic-native/plugins/web-intent/index.ts @@ -103,6 +103,7 @@ export class WebIntent extends IonicNativePlugin { @Cordova() startActivity(options: { action: any; + extras?: any; url: string; type?: string; }): Promise { From a345e2c6f1569c1b86cdd4a0c78752c950113e8e Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Sat, 17 Mar 2018 11:15:42 +0100 Subject: [PATCH 097/110] feat(camera-preview): add onBackButton function fixes: #1967 --- src/@ionic-native/plugins/camera-preview/index.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/@ionic-native/plugins/camera-preview/index.ts b/src/@ionic-native/plugins/camera-preview/index.ts index 4545d9635..b4f1e2fb6 100644 --- a/src/@ionic-native/plugins/camera-preview/index.ts +++ b/src/@ionic-native/plugins/camera-preview/index.ts @@ -394,5 +394,12 @@ export class CameraPreview extends IonicNativePlugin { */ @Cordova() tapToFocus(xPoint: number, yPoint: number): Promise { return; } + + /** + * Add a listener for the back event for the preview + * @return {Promise} if backbutton pressed + */ + @Cordova() + onBackButton(): Promise { return; } } From 1c27474776b194b5f2bc4358f1bba5a615b9322c Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Sat, 17 Mar 2018 11:27:16 +0100 Subject: [PATCH 098/110] ref(globalization): change utf_offset to utc_offset fixes: #2015 --- src/@ionic-native/plugins/globalization/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/@ionic-native/plugins/globalization/index.ts b/src/@ionic-native/plugins/globalization/index.ts index 898084b18..9a56e9e90 100644 --- a/src/@ionic-native/plugins/globalization/index.ts +++ b/src/@ionic-native/plugins/globalization/index.ts @@ -106,7 +106,7 @@ export class Globalization extends IonicNativePlugin { /** * Returns a pattern string to format and parse dates according to the client's user preferences. * @param options Object with the format length and selector - * @returns {Promise<{ pattern: string, timezone: string, utf_offset: number, dst_offset: number }>} Returns a promise. + * @returns {Promise<{ pattern: string, timezone: string, utc_offset: number, dst_offset: number }>} Returns a promise. */ @Cordova({ callbackOrder: 'reverse' @@ -117,7 +117,7 @@ export class Globalization extends IonicNativePlugin { pattern: string; timezone: string; iana_timezone: string; - utf_offset: number; + utc_offset: number; dst_offset: number; }> { return; From 500888e8393e75f55a116aa9f99f439fb0c5a2f1 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Sat, 17 Mar 2018 11:36:52 +0100 Subject: [PATCH 099/110] fix circle --- .../plugins/camera-preview/index.ts | 127 ++++++++++++------ 1 file changed, 89 insertions(+), 38 deletions(-) diff --git a/src/@ionic-native/plugins/camera-preview/index.ts b/src/@ionic-native/plugins/camera-preview/index.ts index b4f1e2fb6..de5415011 100644 --- a/src/@ionic-native/plugins/camera-preview/index.ts +++ b/src/@ionic-native/plugins/camera-preview/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; export interface CameraPreviewDimensions { /** The width of the camera preview, default to window.screen.width */ @@ -131,12 +131,12 @@ export interface CameraPreviewPictureOptions { pluginName: 'CameraPreview', plugin: 'cordova-plugin-camera-preview', pluginRef: 'CameraPreview', - repo: 'https://github.com/cordova-plugin-camera-preview/cordova-plugin-camera-preview', + repo: + 'https://github.com/cordova-plugin-camera-preview/cordova-plugin-camera-preview', platforms: ['Android', 'iOS'] }) @Injectable() export class CameraPreview extends IonicNativePlugin { - FOCUS_MODE = { FIXED: 'fixed', AUTO: 'auto', @@ -189,35 +189,45 @@ export class CameraPreview extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - startCamera(options: CameraPreviewOptions): Promise { return; } + startCamera(options: CameraPreviewOptions): Promise { + return; + } /** * Stops the camera preview instance. (iOS & Android) * @return {Promise} */ @Cordova() - stopCamera(): Promise { return; } + stopCamera(): Promise { + return; + } /** * Switch from the rear camera and front camera, if available. * @return {Promise} */ @Cordova() - switchCamera(): Promise { return; } + switchCamera(): Promise { + return; + } /** * Hide the camera preview box. * @return {Promise} */ @Cordova() - hide(): Promise { return; } + hide(): Promise { + return; + } /** * Show the camera preview box. * @return {Promise} */ @Cordova() - show(): Promise { return; } + show(): Promise { + return; + } /** * Take the picture (base64) @@ -228,7 +238,9 @@ export class CameraPreview extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - takePicture(options?: CameraPreviewPictureOptions): Promise { return; } + takePicture(options?: CameraPreviewPictureOptions): Promise { + return; + } /** * @@ -241,7 +253,9 @@ export class CameraPreview extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - setColorEffect(effect: string): Promise { return; } + setColorEffect(effect: string): Promise { + return; + } /** * Set the zoom (Android) @@ -252,21 +266,27 @@ export class CameraPreview extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - setZoom(zoom?: number): Promise { return; } + setZoom(zoom?: number): Promise { + return; + } /** - * Get the maximum zoom (Android) - * @return {Promise} - */ + * Get the maximum zoom (Android) + * @return {Promise} + */ @Cordova() - getMaxZoom(): Promise { return; } + getMaxZoom(): Promise { + return; + } /** * Get current zoom (Android) * @return {Promise} */ @Cordova() - getZoom(): Promise { return; } + getZoom(): Promise { + return; + } /** * Set the preview Size @@ -277,14 +297,18 @@ export class CameraPreview extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - setPreviewSize(dimensions?: CameraPreviewDimensions): Promise { return; } + setPreviewSize(dimensions?: CameraPreviewDimensions): Promise { + return; + } /** * Get focus mode * @return {Promise} */ @Cordova() - getFocusMode(): Promise { return; } + getFocusMode(): Promise { + return; + } /** * Set the focus mode @@ -295,21 +319,27 @@ export class CameraPreview extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - setFocusMode(focusMode?: string): Promise { return; } + setFocusMode(focusMode?: string): Promise { + return; + } /** * Get supported focus modes * @return {Promise} */ @Cordova() - getSupportedFocusModes(): Promise { return; } + getSupportedFocusModes(): Promise { + return; + } /** * Get the current flash mode * @return {Promise} */ @Cordova() - getFlashMode(): Promise { return; } + getFlashMode(): Promise { + return; + } /** * Set the flashmode @@ -320,35 +350,45 @@ export class CameraPreview extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - setFlashMode(flashMode?: string): Promise { return; } + setFlashMode(flashMode?: string): Promise { + return; + } /** * Get supported flash modes * @return {Promise} */ @Cordova() - getSupportedFlashModes(): Promise { return; } + getSupportedFlashModes(): Promise { + return; + } /** * Get supported picture sizes * @return {Promise} */ @Cordova() - getSupportedPictureSizes(): Promise { return; } + getSupportedPictureSizes(): Promise { + return; + } /** * Get exposure mode * @return {Promise} */ @Cordova() - getExposureMode(): Promise { return; } + getExposureMode(): Promise { + return; + } /** * Get exposure modes * @return {Promise} */ @Cordova() - getExposureModes(): Promise { return; } + getExposureModes(): Promise { + return; + } /** * Set exposure mode @@ -359,14 +399,18 @@ export class CameraPreview extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - setExposureMode(lock?: string): Promise { return; } + setExposureMode(lock?: string): Promise { + return; + } /** * Get exposure compensation (Android) * @return {Promise} */ @Cordova() - getExposureCompensation(): Promise { return; } + getExposureCompensation(): Promise { + return; + } /** * Set exposure compensation (Android) @@ -377,14 +421,18 @@ export class CameraPreview extends IonicNativePlugin { successIndex: 1, errorIndex: 2 }) - setExposureCompensation(exposureCompensation?: number): Promise { return; } + setExposureCompensation(exposureCompensation?: number): Promise { + return; + } /** * Get exposure compensation range (Android) * @return {Promise} */ @Cordova() - getExposureCompensationRange(): Promise { return; } + getExposureCompensationRange(): Promise { + return; + } /** * Set specific focus point. Note, this assumes the camera is full-screen. @@ -393,13 +441,16 @@ export class CameraPreview extends IonicNativePlugin { * @return {Promise} */ @Cordova() - tapToFocus(xPoint: number, yPoint: number): Promise { return; } - - /** - * Add a listener for the back event for the preview - * @return {Promise} if backbutton pressed - */ - @Cordova() - onBackButton(): Promise { return; } + tapToFocus(xPoint: number, yPoint: number): Promise { + return; + } + /** + * Add a listener for the back event for the preview + * @return {Promise} if backbutton pressed + */ + @Cordova() + onBackButton(): Promise { + return; + } } From 67ea61a3cbc46cd833cb1a40b1173cd31628e489 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Sat, 17 Mar 2018 11:45:12 +0100 Subject: [PATCH 100/110] rename plugin --- src/@ionic-native/plugins/document-picker/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/@ionic-native/plugins/document-picker/index.ts b/src/@ionic-native/plugins/document-picker/index.ts index d2c028a71..f9f636f6d 100644 --- a/src/@ionic-native/plugins/document-picker/index.ts +++ b/src/@ionic-native/plugins/document-picker/index.ts @@ -4,7 +4,7 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; /** - * @name DocumentPicker + * @name iOS DocumentPicker * @description * * Opens the file picker on iOS for the user to select a file, returns a file URI. @@ -12,9 +12,9 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; * * @usage * ```typescript - * import { DocumentPicker } from '@ionic-native/document-picker'; + * import { IOSDocumentPicker } from '@ionic-native/document-picker'; * - * constructor(private docPicker: DocumentPicker) { } + * constructor(private docPicker: IOSDocumentPicker) { } * * ... * @@ -25,7 +25,7 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; * ``` */ @Plugin({ - pluginName: 'DocumentPicker', + pluginName: 'IOSDocumentPicker', plugin: 'cordova-plugin-documentpicker.DocumentPicker', pluginRef: 'DocumentPicker', repo: 'https://github.com/iampossible/Cordova-DocPicker', From 571df3a2513f49abfdc879bbe6aecce15d73265c Mon Sep 17 00:00:00 2001 From: Daniel Date: Sat, 17 Mar 2018 14:33:21 +0100 Subject: [PATCH 101/110] feat(plugin): add iOS File Picker --- .../plugins/file-picker/index.ts | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 src/@ionic-native/plugins/file-picker/index.ts diff --git a/src/@ionic-native/plugins/file-picker/index.ts b/src/@ionic-native/plugins/file-picker/index.ts new file mode 100644 index 000000000..9ce195b73 --- /dev/null +++ b/src/@ionic-native/plugins/file-picker/index.ts @@ -0,0 +1,41 @@ +import { Injectable } from '@angular/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; + +/** + * @name File Chooser + * @description + * + * Opens the file picker on iOS for the user to select a file, returns a file URI. + * + * @usage + * ```typescript + * import { IOSFilePicker } from '@ionic-native/file-picker'; + * + * constructor(private filePicker: IOSFilePicker) { } + * + * ... + * + * this.filePicker.pickFile() + * .then(uri => console.log(uri)) + * .catch(err => console.log('Error', err)); + * + * ``` + */ +@Plugin({ + pluginName: 'iOS File Picker', + plugin: 'cordova-plugin-filepicker', + pluginRef: 'filePicker', + repo: 'https://github.com/jcesarmobile/FilePicker-Phonegap-iOS-Plugin', + platforms: ['iOS'] +}) +@Injectable() +export class IOSFilePicker extends IonicNativePlugin { + /** + * Open a file + * @returns {Promise} + */ + @Cordova() + pickFile(): Promise { + return; + } +} From 247a1a1d748dc835347a6feee08985888ab95500 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sat, 17 Mar 2018 15:36:42 +0100 Subject: [PATCH 102/110] feat(appodeal): add new functions fixes: #2065 --- src/@ionic-native/plugins/appodeal/index.ts | 228 ++++++++++++++------ 1 file changed, 159 insertions(+), 69 deletions(-) diff --git a/src/@ionic-native/plugins/appodeal/index.ts b/src/@ionic-native/plugins/appodeal/index.ts index 5d72981f1..b96596da0 100644 --- a/src/@ionic-native/plugins/appodeal/index.ts +++ b/src/@ionic-native/plugins/appodeal/index.ts @@ -46,14 +46,16 @@ export class Appodeal extends IonicNativePlugin { * @param {number} adType */ @Cordova() - initialize(appKey: string, adType: number): void { }; + initialize(appKey: string, adType: number): void {} /** * check if SDK has been initialized * @returns {Promise} */ @Cordova() - isInitialized(): Promise { return; }; + isInitialized(): Promise { + return; + } /** * show ad of specified type @@ -61,7 +63,9 @@ export class Appodeal extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - show(adType: number): Promise { return; }; + show(adType: number): Promise { + return; + } /** * show ad of specified type with placement options @@ -70,24 +74,26 @@ export class Appodeal extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - showWithPlacement( - adType: number, - placement: any - ): Promise { return; }; + showWithPlacement(adType: number, placement: any): Promise { + return; + } /** * hide ad of specified type * @param {number} adType */ @Cordova() - hide(adType: number): void { }; + hide(adType: number): void {} /** * confirm use of ads of specified type * @param {number} adType + * @returns {Promise} */ @Cordova() - confirm(adType: number): void { }; + canShow(adType: number): Promise { + return; + } /** * check if ad of specified type has been loaded @@ -95,7 +101,9 @@ export class Appodeal extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - isLoaded(adType: number): Promise { return; }; + isLoaded(adType: number): Promise { + return; + } /** * check if ad of specified @@ -103,7 +111,9 @@ export class Appodeal extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - isPrecache(adType: number): Promise { return; }; + isPrecache(adType: number): Promise { + return; + } /** * @@ -111,75 +121,77 @@ export class Appodeal extends IonicNativePlugin { * @param autoCache */ @Cordova() - setAutoCache(adType: number, autoCache: any): void { }; + setAutoCache(adType: number, autoCache: any): void {} /** * forcefully cache an ad by type * @param {number} adType */ @Cordova() - cache(adType: number): void { }; + cache(adType: number): void {} /** * * @param {boolean} set */ @Cordova() - setOnLoadedTriggerBoth(set: boolean): void { }; + setTriggerOnLoadedOnPrecache(set: boolean): void {} /** * enable or disable Smart Banners * @param {boolean} enabled */ @Cordova() - setSmartBanners(enabled: boolean): void { }; + setSmartBanners(enabled: boolean): void {} /** * enable or disable banner backgrounds * @param {boolean} enabled */ @Cordova() - setBannerBackground(enabled: boolean): void { }; + setBannerBackground(enabled: boolean): void {} /** * enable or disable banner animations * @param {boolean} enabled */ @Cordova() - setBannerAnimation(enabled: boolean): void { }; + setBannerAnimation(enabled: boolean): void {} /** * * @param value */ @Cordova() - set728x90Banners(value: any): void { }; + set728x90Banners(value: any): void {} /** * enable or disable logging * @param {boolean} logging */ @Cordova() - setLogging(logging: boolean): void { }; + setLogLevel(logging: boolean): void {} /** * enable or disable testing mode * @param {boolean} testing */ @Cordova() - setTesting(testing: boolean): void { }; + setTesting(testing: boolean): void {} /** * reset device ID */ @Cordova() - resetUUID(): void { }; + resetUUID(): void {} /** * get version of Appdeal SDK */ @Cordova() - getVersion(): Promise { return; }; + getVersion(): Promise { + return; + } /** * @@ -187,7 +199,7 @@ export class Appodeal extends IonicNativePlugin { * @param {number} adType */ @Cordova() - disableNetwork(network?: string, adType?: number): void { }; + disableNetwork(network?: string, adType?: number): void {} /** * @@ -195,54 +207,54 @@ export class Appodeal extends IonicNativePlugin { * @param {number} adType */ @Cordova() - disableNetworkType(network?: string, adType?: number): void { }; + disableNetworkType(network?: string, adType?: number): void {} /** * disable Location permissions for Appodeal SDK */ @Cordova() - disableLocationPermissionCheck(): void { }; + disableLocationPermissionCheck(): void {} /** * disable Storage permissions for Appodeal SDK */ @Cordova() - disableWriteExternalStoragePermissionCheck(): void { }; + disableWriteExternalStoragePermissionCheck(): void {} /** * enable event listeners * @param {boolean} enabled */ @Cordova() - enableInterstitialCallbacks(enabled: boolean): void { }; + enableInterstitialCallbacks(enabled: boolean): void {} /** * enable event listeners * @param {boolean} enabled */ @Cordova() - enableSkippableVideoCallbacks(enabled: boolean): void { }; + enableSkippableVideoCallbacks(enabled: boolean): void {} /** * enable event listeners * @param {boolean} enabled */ @Cordova() - enableNonSkippableVideoCallbacks(enabled: boolean): void { }; + enableNonSkippableVideoCallbacks(enabled: boolean): void {} /** * enable event listeners * @param {boolean} enabled */ @Cordova() - enableBannerCallbacks(enabled: boolean): void { }; + enableBannerCallbacks(enabled: boolean): void {} /** * enable event listeners * @param {boolean} enabled */ @Cordova() - enableRewardedVideoCallbacks(enabled: boolean): void { }; + enableRewardedVideoCallbacks(enabled: boolean): void {} /** * @@ -250,7 +262,7 @@ export class Appodeal extends IonicNativePlugin { * @param {boolean} value */ @Cordova() - setCustomBooleanRule(name: string, value: boolean): void { }; + setCustomBooleanRule(name: string, value: boolean): void {} /** * @@ -258,7 +270,7 @@ export class Appodeal extends IonicNativePlugin { * @param {number} value */ @Cordova() - setCustomIntegerRule(name: string, value: number): void { }; + setCustomIntegerRule(name: string, value: number): void {} /** * set rule with float value @@ -266,7 +278,7 @@ export class Appodeal extends IonicNativePlugin { * @param {number} value */ @Cordova() - setCustomDoubleRule(name: string, value: number): void { }; + setCustomDoubleRule(name: string, value: number): void {} /** * set rule with string value @@ -274,243 +286,321 @@ export class Appodeal extends IonicNativePlugin { * @param {string} value */ @Cordova() - setCustomStringRule(name: string, value: string): void { }; + setCustomStringRule(name: string, value: string): void {} /** * set ID preference in Appodeal for current user * @param id */ @Cordova() - setUserId(id: any): void { }; + setUserId(id: any): void {} /** * set Email preference in Appodeal for current user * @param email */ @Cordova() - setEmail(email: any): void { }; + setEmail(email: any): void {} /** * set Birthday preference in Appodeal for current user * @param birthday */ @Cordova() - setBirthday(birthday: any): void { }; + setBirthday(birthday: any): void {} /** * et Age preference in Appodeal for current user * @param age */ @Cordova() - setAge(age: any): void { }; + setAge(age: any): void {} /** * set Gender preference in Appodeal for current user * @param gender */ @Cordova() - setGender(gender: any): void { }; + setGender(gender: any): void {} /** * set Occupation preference in Appodeal for current user * @param occupation */ @Cordova() - setOccupation(occupation: any): void { }; + setOccupation(occupation: any): void {} /** * set Relation preference in Appodeal for current user * @param relation */ @Cordova() - setRelation(relation: any): void { }; + setRelation(relation: any): void {} /** * set Smoking preference in Appodeal for current user * @param smoking */ @Cordova() - setSmoking(smoking: any): void { }; + setSmoking(smoking: any): void {} /** * set Alcohol preference in Appodeal for current user * @param alcohol */ @Cordova() - setAlcohol(alcohol: any): void { }; + setAlcohol(alcohol: any): void {} /** * set Interests preference in Appodeal for current user * @param interests */ @Cordova() - setInterests(interests: any): void { }; + setInterests(interests: any): void {} @Cordova({ eventObservable: true, event: 'onInterstitialLoaded', element: document }) - onInterstitialLoaded(): Observable { return; } + onInterstitialLoaded(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onInterstitialFailedToLoad', element: document }) - onInterstitialFailedToLoad(): Observable { return; } + onInterstitialFailedToLoad(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onInterstitialShown', element: document }) - onInterstitialShown(): Observable { return; } + onInterstitialShown(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onInterstitialClicked', element: document }) - onInterstitialClicked(): Observable { return; } + onInterstitialClicked(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onInterstitialClosed', element: document }) - onInterstitialClosed(): Observable { return; } + onInterstitialClosed(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onSkippableVideoLoaded', element: document }) - onSkippableVideoLoaded(): Observable { return; } + onSkippableVideoLoaded(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onSkippableVideoFailedToLoad', element: document }) - onSkippableVideoFailedToLoad(): Observable { return; } + onSkippableVideoFailedToLoad(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onSkippableVideoShown', element: document }) - onSkippableVideoShown(): Observable { return; } + onSkippableVideoShown(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onSkippableVideoFinished', element: document }) - onSkippableVideoFinished(): Observable { return; } + onSkippableVideoFinished(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onSkippableVideoClosed', element: document }) - onSkippableVideoClosed(): Observable { return; } + onSkippableVideoClosed(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onRewardedVideoLoaded', element: document }) - onRewardedVideoLoaded(): Observable { return; } + onRewardedVideoLoaded(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onRewardedVideoFailedToLoad', element: document }) - onRewardedVideoFailedToLoad(): Observable { return; } + onRewardedVideoFailedToLoad(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onRewardedVideoShown', element: document }) - onRewardedVideoShown(): Observable { return; } + onRewardedVideoShown(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onRewardedVideoFinished', element: document }) - onRewardedVideoFinished(): Observable { return; } + onRewardedVideoFinished(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onRewardedVideoClosed', element: document }) - onRewardedVideoClosed(): Observable { return; } + onRewardedVideoClosed(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onNonSkippableVideoLoaded', element: document }) - onNonSkippableVideoLoaded(): Observable { return; } + onNonSkippableVideoLoaded(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onNonSkippableVideoFailedToLoad', element: document }) - onNonSkippableVideoFailedToLoad(): Observable { return; } + onNonSkippableVideoFailedToLoad(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onNonSkippableVideoShown', element: document }) - onNonSkippableVideoShown(): Observable { return; } + onNonSkippableVideoShown(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onNonSkippableVideoFinished', element: document }) - onNonSkippableVideoFinished(): Observable { return; } + onNonSkippableVideoFinished(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onNonSkippableVideoClosed', element: document }) - onNonSkippableVideoClosed(): Observable { return; } + onNonSkippableVideoClosed(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onBannerClicked', element: document }) - onBannerClicked(): Observable { return; } + onBannerClicked(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onBannerFailedToLoad', element: document }) - onBannerFailedToLoad(): Observable { return; } + onBannerFailedToLoad(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onBannerLoaded', element: document }) - onBannerLoaded(): Observable { return; } + onBannerLoaded(): Observable { + return; + } @Cordova({ eventObservable: true, event: 'onBannerShown', element: document }) - onBannerShown(): Observable { return; } + onBannerShown(): Observable { + return; + } + + @Cordova() + getRewardParametersForPlacement(placement: string): Promise { + return; + } + + @Cordova() + getRewardParameters(): Promise { + return; + } + + @Cordova() + canShowWithPlacement(adType: string, placement: string): Promise { + return; + } + + @Cordova({ + platforms: ['Android'] + }) + showTestScreen(value: any): void {} + + @Cordova() + muteVideosIfCallsMuted(value: any): Promise { + return; + } + + @Cordova() + setChildDirectedTreatment(value: boolean): Promise { + return; + } } From 6862389651901ef9052dc7851d755f0cbbebac2a Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Sat, 17 Mar 2018 15:47:37 +0100 Subject: [PATCH 103/110] docs(geolocation): add notes for iOS platform --- src/@ionic-native/plugins/geolocation/index.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/@ionic-native/plugins/geolocation/index.ts b/src/@ionic-native/plugins/geolocation/index.ts index 7eded999a..0ea3937a1 100644 --- a/src/@ionic-native/plugins/geolocation/index.ts +++ b/src/@ionic-native/plugins/geolocation/index.ts @@ -117,6 +117,14 @@ export interface GeolocationOptions { * * This API is based on the W3C Geolocation API Specification, and only executes on devices that don't already provide an implementation. * + * For iOS you have to add this configuration to your configuration.xml file + * ```xml + * + * We want your location! Best regards NSA + * + * ``` + * + * * @usage * * ```typescript From 4948640db20fb8463a3bcbc39d5c8189fd559c1c Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Sat, 17 Mar 2018 15:55:09 +0100 Subject: [PATCH 104/110] fix(Radmob-pro): add offsetTopBar option fixes: #2100 --- src/@ionic-native/plugins/admob-pro/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/@ionic-native/plugins/admob-pro/index.ts b/src/@ionic-native/plugins/admob-pro/index.ts index ad9c66b1d..5e8529dd1 100644 --- a/src/@ionic-native/plugins/admob-pro/index.ts +++ b/src/@ionic-native/plugins/admob-pro/index.ts @@ -70,6 +70,11 @@ export interface AdMobOptions { * License key for the plugin */ license?: any; + + /** + * Set offset + */ + offsetTopBar?: boolean; } From 1bedb491523a97810f067928b641676a0f4f3585 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Sat, 17 Mar 2018 15:57:14 +0100 Subject: [PATCH 105/110] docs(uid): add correct npm repository fixes: #2105 --- src/@ionic-native/plugins/uid/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/uid/index.ts b/src/@ionic-native/plugins/uid/index.ts index aa417a832..a52e4dc2e 100644 --- a/src/@ionic-native/plugins/uid/index.ts +++ b/src/@ionic-native/plugins/uid/index.ts @@ -38,7 +38,7 @@ import { Plugin, CordovaProperty, IonicNativePlugin } from '@ionic-native/core'; */ @Plugin({ pluginName: 'Uid', - plugin: 'https://github.com/hygieiasoft/cordova-plugin-uid', + plugin: 'cordova-plugin-uid', pluginRef: 'cordova.plugins.uid', repo: 'https://github.com/hygieiasoft/cordova-plugin-uid', platforms: ['Android'] From f1bf2fa151a94e500a724e08caa44105f2a03c0c Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Sat, 17 Mar 2018 16:00:52 +0100 Subject: [PATCH 106/110] fix circle --- src/@ionic-native/plugins/admob-pro/index.ts | 77 +++++++++++++------- 1 file changed, 49 insertions(+), 28 deletions(-) diff --git a/src/@ionic-native/plugins/admob-pro/index.ts b/src/@ionic-native/plugins/admob-pro/index.ts index 5e8529dd1..bb1c400a7 100644 --- a/src/@ionic-native/plugins/admob-pro/index.ts +++ b/src/@ionic-native/plugins/admob-pro/index.ts @@ -1,11 +1,17 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; -export type AdSize = 'SMART_BANNER' | 'BANNER' | 'MEDIUM_RECTANGLE' | 'FULL_BANNER' | 'LEADERBOARD' | 'SKYSCRAPER' | 'CUSTOM'; +export type AdSize = + | 'SMART_BANNER' + | 'BANNER' + | 'MEDIUM_RECTANGLE' + | 'FULL_BANNER' + | 'LEADERBOARD' + | 'SKYSCRAPER' + | 'CUSTOM'; export interface AdMobOptions { - /** * Banner ad ID */ @@ -70,16 +76,14 @@ export interface AdMobOptions { * License key for the plugin */ license?: any; - - /** - * Set offset - */ - offsetTopBar?: boolean; + /** + * Set offset + */ + offsetTopBar?: boolean; } export interface AdExtras { - color_bg: string; color_bg_top: string; @@ -91,7 +95,6 @@ export interface AdExtras { color_text: string; color_url: string; - } /** @@ -139,7 +142,6 @@ export interface AdExtras { }) @Injectable() export class AdMobPro extends IonicNativePlugin { - AD_POSITION: { NO_CHANGE: number; TOP_LEFT: number; @@ -172,7 +174,9 @@ export class AdMobPro extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves when the banner is created */ @Cordova() - createBanner(adIdOrOptions: string | AdMobOptions): Promise { return; } + createBanner(adIdOrOptions: string | AdMobOptions): Promise { + return; + } /** * Destroy the banner, remove it from screen. @@ -180,7 +184,7 @@ export class AdMobPro extends IonicNativePlugin { @Cordova({ sync: true }) - removeBanner(): void { } + removeBanner(): void {} /** * Show banner at position @@ -189,7 +193,7 @@ export class AdMobPro extends IonicNativePlugin { @Cordova({ sync: true }) - showBanner(position: number): void { } + showBanner(position: number): void {} /** * Show banner at custom position @@ -199,7 +203,7 @@ export class AdMobPro extends IonicNativePlugin { @Cordova({ sync: true }) - showBannerAtXY(x: number, y: number): void { } + showBannerAtXY(x: number, y: number): void {} /** * Hide the banner, remove it from screen, but can show it later @@ -207,7 +211,7 @@ export class AdMobPro extends IonicNativePlugin { @Cordova({ sync: true }) - hideBanner(): void { } + hideBanner(): void {} /** * Prepare interstitial banner @@ -215,7 +219,9 @@ export class AdMobPro extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves when interstitial is prepared */ @Cordova() - prepareInterstitial(adIdOrOptions: string | AdMobOptions): Promise { return; } + prepareInterstitial(adIdOrOptions: string | AdMobOptions): Promise { + return; + } /** * Show interstitial ad when it's ready @@ -223,7 +229,7 @@ export class AdMobPro extends IonicNativePlugin { @Cordova({ sync: true }) - showInterstitial(): void { } + showInterstitial(): void {} /** * Prepare a reward video ad @@ -231,7 +237,9 @@ export class AdMobPro extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves when the ad is prepared */ @Cordova() - prepareRewardVideoAd(adIdOrOptions: string | AdMobOptions): Promise { return; } + prepareRewardVideoAd(adIdOrOptions: string | AdMobOptions): Promise { + return; + } /** * Show a reward video ad @@ -239,7 +247,7 @@ export class AdMobPro extends IonicNativePlugin { @Cordova({ sync: true }) - showRewardVideoAd(): void { } + showRewardVideoAd(): void {} /** * Sets the values for configuration and targeting @@ -247,14 +255,18 @@ export class AdMobPro extends IonicNativePlugin { * @returns {Promise} Returns a Promise that resolves when the options have been set */ @Cordova() - setOptions(options: AdMobOptions): Promise { return; } + setOptions(options: AdMobOptions): Promise { + return; + } /** * Get user ad settings * @returns {Promise} Returns a promise that resolves with the ad settings */ @Cordova() - getAdSettings(): Promise { return; } + getAdSettings(): Promise { + return; + } /** * Triggered when failed to receive Ad @@ -265,7 +277,9 @@ export class AdMobPro extends IonicNativePlugin { event: 'onAdFailLoad', element: document }) - onAdFailLoad(): Observable { return; } + onAdFailLoad(): Observable { + return; + } /** * Triggered when Ad received @@ -276,7 +290,9 @@ export class AdMobPro extends IonicNativePlugin { event: 'onAdLoaded', element: document }) - onAdLoaded(): Observable { return; } + onAdLoaded(): Observable { + return; + } /** * Triggered when Ad will be showed on screen @@ -287,7 +303,9 @@ export class AdMobPro extends IonicNativePlugin { event: 'onAdPresent', element: document }) - onAdPresent(): Observable { return; } + onAdPresent(): Observable { + return; + } /** * Triggered when user click the Ad, and will jump out of your App @@ -298,7 +316,9 @@ export class AdMobPro extends IonicNativePlugin { event: 'onAdLeaveApp', element: document }) - onAdLeaveApp(): Observable { return; } + onAdLeaveApp(): Observable { + return; + } /** * Triggered when dismiss the Ad and back to your App @@ -309,6 +329,7 @@ export class AdMobPro extends IonicNativePlugin { event: 'onAdDismiss', element: document }) - onAdDismiss(): Observable { return; } - + onAdDismiss(): Observable { + return; + } } From e5b9d53b179fedb939911753076e579ab7c12748 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Mon, 19 Mar 2018 09:10:25 +0100 Subject: [PATCH 107/110] fix(google-maps): wrong decorators --- .../plugins/google-maps/index.ts | 861 ++++++++++++------ 1 file changed, 597 insertions(+), 264 deletions(-) diff --git a/src/@ionic-native/plugins/google-maps/index.ts b/src/@ionic-native/plugins/google-maps/index.ts index 3d875b2b5..d776ba537 100644 --- a/src/@ionic-native/plugins/google-maps/index.ts +++ b/src/@ionic-native/plugins/google-maps/index.ts @@ -1,16 +1,29 @@ -import { Injectable } from '@angular/core'; -import { CordovaCheck, CordovaInstance, Plugin, InstanceProperty, InstanceCheck, checkAvailability, IonicNativePlugin } from '@ionic-native/core'; -import { Observable } from 'rxjs/Observable'; import 'rxjs/add/observable/fromEvent'; +import { Injectable } from '@angular/core'; +import { + checkAvailability, + CordovaCheck, + CordovaInstance, + InstanceCheck, + InstanceProperty, + IonicNativePlugin, + Plugin +} from '@ionic-native/core'; +import { Observable } from 'rxjs/Observable'; -export type MapType = 'MAP_TYPE_NORMAL' | 'MAP_TYPE_ROADMAP' | 'MAP_TYPE_SATELLITE' | 'MAP_TYPE_HYBRID' | 'MAP_TYPE_TERRAIN' | 'MAP_TYPE_NONE'; +export type MapType = + | 'MAP_TYPE_NORMAL' + | 'MAP_TYPE_ROADMAP' + | 'MAP_TYPE_SATELLITE' + | 'MAP_TYPE_HYBRID' + | 'MAP_TYPE_TERRAIN' + | 'MAP_TYPE_NONE'; /** * @hidden */ export class LatLng implements ILatLng { - lat: number; lng: number; @@ -43,12 +56,11 @@ export interface ILatLngBounds { * @hidden */ export class LatLngBounds implements ILatLngBounds { - private _objectInstance: any; - @InstanceProperty northeast: ILatLng; - @InstanceProperty southwest: ILatLng; - @InstanceProperty type: string; + @InstanceProperty() northeast: ILatLng; + @InstanceProperty() southwest: ILatLng; + @InstanceProperty() type: string; constructor(points?: ILatLng[]) { this._objectInstance = new (GoogleMaps.getPlugin()).LatLngBounds(points); @@ -59,7 +71,9 @@ export class LatLngBounds implements ILatLngBounds { * @return {string} */ @CordovaInstance({ sync: true }) - toString(): string { return; } + toString(): string { + return; + } /** * Returns a string of the form "lat_sw,lng_sw,lat_ne,lng_ne" for this bounds, where "sw" corresponds to the southwest corner of the bounding box, while "ne" corresponds to the northeast corner of that box. @@ -67,7 +81,9 @@ export class LatLngBounds implements ILatLngBounds { * @return {string} */ @CordovaInstance({ sync: true }) - toUrlValue(precision?: number): string { return; } + toUrlValue(precision?: number): string { + return; + } /** * Extends this bounds to contain the given point. @@ -81,18 +97,21 @@ export class LatLngBounds implements ILatLngBounds { * @param LatLng {ILatLng} */ @CordovaInstance({ sync: true }) - contains(LatLng: ILatLng): boolean { return; } + contains(LatLng: ILatLng): boolean { + return; + } /** * Computes the center of this LatLngBounds * @return {LatLng} */ @CordovaInstance({ sync: true }) - getCenter(): LatLng { return; } + getCenter(): LatLng { + return; + } } export interface GoogleMapControlOptions { - /** * Turns the compass on or off. */ @@ -132,7 +151,6 @@ export interface GoogleMapControlOptions { } export interface GoogleMapGestureOptions { - /** * Set false to disable the scroll gesture (default: true) */ @@ -172,7 +190,6 @@ export interface GoogleMapPaddingOptions { } export interface GoogleMapPreferenceOptions { - /** * Minimum and maximum zoom levels for zooming gestures. */ @@ -195,7 +212,6 @@ export interface GoogleMapPreferenceOptions { } export interface GoogleMapOptions { - /** * mapType [options] */ @@ -328,7 +344,6 @@ export interface CircleOptions { } export interface GeocoderRequest { - /** * The address property or position property is required. * You can not specify both property at the same time. @@ -375,7 +390,7 @@ export interface GeocoderResult { lines?: Array; permises?: string; phone?: string; - url?: string + url?: string; }; locale?: string; locality?: string; @@ -732,7 +747,6 @@ export interface ToDataUrlOptions { uncompress?: boolean; } - /** * Options for map.addKmlOverlay() method */ @@ -758,7 +772,6 @@ export interface KmlOverlayOptions { [key: string]: any; } - /** * @hidden */ @@ -769,41 +782,55 @@ export class VisibleRegion implements ILatLngBounds { * The northeast of the bounds that contains the farLeft, farRight, nearLeft and nearRight. * Since the map view is able to rotate, the farRight is not the same as the northeast. */ - @InstanceProperty northeast: ILatLng; + @InstanceProperty() northeast: ILatLng; /** * The southwest of the bounds that contains the farLeft, farRight, nearLeft and nearRight. * Since the map view is able to rotate, the nearLeft is not the same as the southwest. */ - @InstanceProperty southwest: ILatLng; + @InstanceProperty() southwest: ILatLng; /** * The nearRight indicates the lat/lng of the top-left of the map view. */ - @InstanceProperty farLeft: ILatLng; + @InstanceProperty() farLeft: ILatLng; /** * The nearRight indicates the lat/lng of the top-right of the map view. */ - @InstanceProperty farRight: ILatLng; + @InstanceProperty() farRight: ILatLng; /** * The nearRight indicates the lat/lng of the bottom-left of the map view. */ - @InstanceProperty nearLeft: ILatLng; + @InstanceProperty() nearLeft: ILatLng; /** * The nearRight indicates the lat/lng of the bottom-right of the map view. */ - @InstanceProperty nearRight: ILatLng; + @InstanceProperty() nearRight: ILatLng; /** * constant value : `VisibleRegion` */ - @InstanceProperty type: string; + @InstanceProperty() type: string; - constructor(southwest: LatLngBounds, northeast: LatLngBounds, farLeft: ILatLng, farRight: ILatLng, nearLeft: ILatLng, nearRight: ILatLng) { - this._objectInstance = new (GoogleMaps.getPlugin()).VisibleRegion(southwest, northeast, farLeft, farRight, nearLeft, nearRight); + constructor( + southwest: LatLngBounds, + northeast: LatLngBounds, + farLeft: ILatLng, + farRight: ILatLng, + nearLeft: ILatLng, + nearRight: ILatLng + ) { + this._objectInstance = new (GoogleMaps.getPlugin()).VisibleRegion( + southwest, + northeast, + farLeft, + farRight, + nearLeft, + nearRight + ); } /** @@ -811,7 +838,9 @@ export class VisibleRegion implements ILatLngBounds { * @return {string} */ @CordovaInstance({ sync: true }) - toString(): string { return; } + toString(): string { + return; + } /** * Returns a string of the form "lat_sw,lng_sw,lat_ne,lng_ne" for this bounds, where "sw" corresponds to the southwest corner of the bounding box, while "ne" corresponds to the northeast corner of that box. @@ -819,16 +848,18 @@ export class VisibleRegion implements ILatLngBounds { * @return {string} */ @CordovaInstance({ sync: true }) - toUrlValue(precision?: number): string { return; } - + toUrlValue(precision?: number): string { + return; + } /** * Returns true if the given lat/lng is in this bounds. * @param LatLng {ILatLng} */ @CordovaInstance({ sync: true }) - contains(LatLng: ILatLng): boolean { return; } - + contains(LatLng: ILatLng): boolean { + return; + } } /** @@ -869,7 +900,7 @@ export const GoogleMapsEvent = { /** * @hidden */ -export const GoogleMapsAnimation: { [animationName: string]: string; } = { +export const GoogleMapsAnimation: { [animationName: string]: string } = { BOUNCE: 'BOUNCE', DROP: 'DROP' }; @@ -877,7 +908,7 @@ export const GoogleMapsAnimation: { [animationName: string]: string; } = { /** * @hidden */ -export const GoogleMapsMapTypeId: { [mapType: string]: MapType; } = { +export const GoogleMapsMapTypeId: { [mapType: string]: MapType } = { NORMAL: 'MAP_TYPE_NORMAL', ROADMAP: 'MAP_TYPE_ROADMAP', SATELLITE: 'MAP_TYPE_SATELLITE', @@ -1004,24 +1035,32 @@ export const GoogleMapsMapTypeId: { [mapType: string]: MapType; } = { pluginRef: 'plugin.google.maps', plugin: 'cordova-plugin-googlemaps', repo: 'https://github.com/mapsplugin/cordova-plugin-googlemaps', - document: 'https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.0.0/README.md', - install: 'ionic cordova plugin add cordova-plugin-googlemaps --variable API_KEY_FOR_ANDROID="YOUR_ANDROID_API_KEY_IS_HERE" --variable API_KEY_FOR_IOS="YOUR_IOS_API_KEY_IS_HERE"', + document: + 'https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.0.0/README.md', + install: + 'ionic cordova plugin add cordova-plugin-googlemaps --variable API_KEY_FOR_ANDROID="YOUR_ANDROID_API_KEY_IS_HERE" --variable API_KEY_FOR_IOS="YOUR_IOS_API_KEY_IS_HERE"', installVariables: ['API_KEY_FOR_ANDROID', 'API_KEY_FOR_IOS'], platforms: ['Android', 'iOS'] }) @Injectable() export class GoogleMaps extends IonicNativePlugin { - /** * Creates a new GoogleMap instance * @param element {string | HTMLElement} Element ID or reference to attach the map to * @param options {GoogleMapOptions} [options] Options * @return {GoogleMap} */ - static create(element: string | HTMLElement | GoogleMapOptions, options?: GoogleMapOptions): GoogleMap { + static create( + element: string | HTMLElement | GoogleMapOptions, + options?: GoogleMapOptions + ): GoogleMap { if (element instanceof HTMLElement) { if (element.getAttribute('__pluginMapId')) { - console.error('GoogleMaps', element.tagName + '[__pluginMapId=\'' + element.getAttribute('__pluginMapId') + '\'] has already map.'); + console.error( + `GoogleMaps ${element.tagName}[__pluginMapId='${element.getAttribute( + '__pluginMapId' + )}'] has already map.` + ); return; } } else if (typeof element === 'object') { @@ -1037,11 +1076,13 @@ export class GoogleMaps extends IonicNativePlugin { * @deprecation * @hidden */ - create(element: string | HTMLElement | GoogleMapOptions, options?: GoogleMapOptions): GoogleMap { + create( + element: string | HTMLElement | GoogleMapOptions, + options?: GoogleMapOptions + ): GoogleMap { console.error('GoogleMaps', '[deprecated] Please use GoogleMaps.create()'); return GoogleMaps.create(element, options); } - } /** @@ -1064,7 +1105,7 @@ export class BaseClass { */ @InstanceCheck({ observable: true }) addEventListener(eventName: string): Observable { - return new Observable((observer) => { + return new Observable(observer => { this._objectInstance.on(eventName, (...args: any[]) => { if (args[args.length - 1] instanceof GoogleMaps.getPlugin().BaseClass) { if (args[args.length - 1].type === 'Map') { @@ -1083,7 +1124,9 @@ export class BaseClass { } args[args.length - 1] = overlay; } else { - args[args.length - 1] = this._objectInstance.getMap().get('_overlays')[args[args.length - 1].getId()]; + args[args.length - 1] = this._objectInstance + .getMap() + .get('_overlays')[args[args.length - 1].getId()]; } } observer.next(args); @@ -1098,7 +1141,7 @@ export class BaseClass { */ @InstanceCheck() addListenerOnce(eventName: string): Promise { - return new Promise((resolve) => { + return new Promise(resolve => { this._objectInstance.one(eventName, (...args: any[]) => { if (args[args.length - 1] instanceof GoogleMaps.getPlugin().BaseClass) { if (args[args.length - 1].type === 'Map') { @@ -1117,7 +1160,9 @@ export class BaseClass { } args[args.length - 1] = overlay; } else { - args[args.length - 1] = this._objectInstance.getMap().get('_overlays')[args[args.length - 1].getId()]; + args[args.length - 1] = this._objectInstance + .getMap() + .get('_overlays')[args[args.length - 1].getId()]; } } resolve(args); @@ -1130,7 +1175,9 @@ export class BaseClass { * @param key {any} */ @CordovaInstance({ sync: true }) - get(key: string): any { return; } + get(key: string): any { + return; + } /** * Sets a value @@ -1139,7 +1186,7 @@ export class BaseClass { * @param noNotify {boolean} [options] True if you want to prevent firing the `(key)_changed` event. */ @CordovaInstance({ sync: true }) - set(key: string, value: any, noNotify?: boolean): void { } + set(key: string, value: any, noNotify?: boolean): void {} /** * Bind a key to another object @@ -1149,7 +1196,12 @@ export class BaseClass { * @param noNotify? {boolean} [options] True if you want to prevent `(key)_changed` event when you bind first time, because the internal status is changed from `undefined` to something. */ @CordovaInstance({ sync: true }) - bindTo(key: string, target: any, targetKey?: string, noNotify?: boolean): void { } + bindTo( + key: string, + target: any, + targetKey?: string, + noNotify?: boolean + ): void {} /** * Alias of `addEventListener` @@ -1158,7 +1210,7 @@ export class BaseClass { */ @InstanceCheck({ observable: true }) on(eventName: string): Observable { - return new Observable((observer) => { + return new Observable(observer => { this._objectInstance.on(eventName, (...args: any[]) => { if (args[args.length - 1] instanceof GoogleMaps.getPlugin().BaseClass) { if (args[args.length - 1].type === 'Map') { @@ -1177,7 +1229,9 @@ export class BaseClass { } args[args.length - 1] = overlay; } else { - args[args.length - 1] = this._objectInstance.getMap().get('_overlays')[args[args.length - 1].getId()]; + args[args.length - 1] = this._objectInstance + .getMap() + .get('_overlays')[args[args.length - 1].getId()]; } } observer.next(args); @@ -1192,7 +1246,7 @@ export class BaseClass { */ @InstanceCheck() one(eventName: string): Promise { - return new Promise((resolve) => { + return new Promise(resolve => { this._objectInstance.one(eventName, (...args: any[]) => { if (args[args.length - 1] instanceof GoogleMaps.getPlugin().BaseClass) { if (args[args.length - 1].type === 'Map') { @@ -1211,7 +1265,9 @@ export class BaseClass { } args[args.length - 1] = overlay; } else { - args[args.length - 1] = this._objectInstance.getMap().get('_overlays')[args[args.length - 1].getId()]; + args[args.length - 1] = this._objectInstance + .getMap() + .get('_overlays')[args[args.length - 1].getId()]; } } resolve(args); @@ -1223,7 +1279,7 @@ export class BaseClass { * Clears all stored values */ @CordovaInstance({ sync: true }) - empty(): void { } + empty(): void {} /** * Dispatch event. @@ -1233,7 +1289,6 @@ export class BaseClass { @CordovaInstance({ sync: true }) trigger(eventName: string, ...parameters: any[]): void {} - /** * Executes off() and empty() */ @@ -1241,7 +1296,9 @@ export class BaseClass { destroy(): void { let map: GoogleMap = this._objectInstance.getMap(); if (map) { - delete this._objectInstance.getMap().get('_overlays')[this._objectInstance.getId()]; + delete this._objectInstance.getMap().get('_overlays')[ + this._objectInstance.getId() + ]; } this._objectInstance.remove(); } @@ -1260,7 +1317,10 @@ export class BaseClass { * @param listener {Function} [options] Event listener */ @CordovaInstance({ sync: true }) - removeEventListener(eventName?: string, listener?: (...parameters: any[]) => void): void {} + removeEventListener( + eventName?: string, + listener?: (...parameters: any[]) => void + ): void {} /** * Alias of `removeEventListener` @@ -1270,7 +1330,6 @@ export class BaseClass { */ @CordovaInstance({ sync: true }) off(eventName?: string, listener?: (...parameters: any[]) => void): void {} - } /** @@ -1284,13 +1343,14 @@ export class BaseClass { repo: '' }) export class BaseArrayClass extends BaseClass { - constructor(initialData?: T[] | any) { super(); if (initialData instanceof GoogleMaps.getPlugin().BaseArrayClass) { this._objectInstance = initialData; } else { - this._objectInstance = new (GoogleMaps.getPlugin().BaseArrayClass)(initialData); + this._objectInstance = new (GoogleMaps.getPlugin()).BaseArrayClass( + initialData + ); } } @@ -1314,8 +1374,10 @@ export class BaseArrayClass extends BaseClass { * @return {Promise} */ @CordovaCheck() - forEachAsync(fn: ((element: T, callback: () => void) => void)): Promise { - return new Promise((resolve) => { + forEachAsync( + fn: ((element: T, callback: () => void) => void) + ): Promise { + return new Promise(resolve => { this._objectInstance.forEachAsync(fn, resolve); }); } @@ -1327,7 +1389,9 @@ export class BaseArrayClass extends BaseClass { * @return {Array} returns a new array with the results */ @CordovaInstance({ sync: true }) - map(fn: (element: T, index: number) => any): any[] { return; } + map(fn: (element: T, index: number) => any): any[] { + return; + } /** * Iterate over each element, calling the provided callback. @@ -1337,8 +1401,10 @@ export class BaseArrayClass extends BaseClass { * @return {Promise} returns a new array with the results */ @CordovaCheck() - mapAsync(fn: ((element: T, callback: (newElement: any) => void) => void)): Promise { - return new Promise((resolve) => { + mapAsync( + fn: ((element: T, callback: (newElement: any) => void) => void) + ): Promise { + return new Promise(resolve => { this._objectInstance.mapAsync(fn, resolve); }); } @@ -1350,8 +1416,10 @@ export class BaseArrayClass extends BaseClass { * @return {Promise} returns a new array with the results */ @CordovaCheck() - mapSeries(fn: ((element: T, callback: (newElement: any) => void) => void)): Promise { - return new Promise((resolve) => { + mapSeries( + fn: ((element: T, callback: (newElement: any) => void) => void) + ): Promise { + return new Promise(resolve => { this._objectInstance.mapSeries(fn, resolve); }); } @@ -1362,7 +1430,9 @@ export class BaseArrayClass extends BaseClass { * @return {Array} returns a new filtered array */ @CordovaInstance({ sync: true }) - filter(fn: (element: T, index: number) => boolean): T[] { return; } + filter(fn: (element: T, index: number) => boolean): T[] { + return; + } /** * The filterAsync() method creates a new array with all elements that pass the test implemented by the provided function. @@ -1371,8 +1441,10 @@ export class BaseArrayClass extends BaseClass { * @return {Promise} returns a new filtered array */ @CordovaCheck() - filterAsync(fn: (element: T, callback: (result: boolean) => void) => void): Promise { - return new Promise((resolve) => { + filterAsync( + fn: (element: T, callback: (result: boolean) => void) => void + ): Promise { + return new Promise(resolve => { this._objectInstance.filterAsync(fn, resolve); }); } @@ -1382,7 +1454,9 @@ export class BaseArrayClass extends BaseClass { * @return {Array} */ @CordovaInstance({ sync: true }) - getArray(): T[] { return; } + getArray(): T[] { + return; + } /** * Returns the element at the specified index. @@ -1397,7 +1471,9 @@ export class BaseArrayClass extends BaseClass { * @return {number} */ @CordovaInstance({ sync: true }) - getLength(): number { return; } + getLength(): number { + return; + } /** * The indexOf() method returns the first index at which a given element can be found in the array, or -1 if it is not present. @@ -1405,7 +1481,9 @@ export class BaseArrayClass extends BaseClass { * @return {number} */ @CordovaInstance({ sync: true }) - indexOf(element: T): number { return; } + indexOf(element: T): number { + return; + } /** * The reverse() method reverses an array in place. @@ -1435,7 +1513,9 @@ export class BaseArrayClass extends BaseClass { * @return {Object} */ @CordovaInstance({ sync: true }) - pop(noNotify?: boolean): T { return; } + pop(noNotify?: boolean): T { + return; + } /** * Adds one element to the end of the array and returns the new length of the array. @@ -1468,7 +1548,6 @@ export class BaseArrayClass extends BaseClass { * https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.0.0/class/Circle/README.md */ export class Circle extends BaseClass { - private _map: GoogleMap; constructor(_map: GoogleMap, _objectInstance: any) { @@ -1482,13 +1561,17 @@ export class Circle extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getId(): string { return; } + getId(): string { + return; + } /** * Return the map instance. * @return {GoogleMap} */ - getMap(): GoogleMap { return this._map; } + getMap(): GoogleMap { + return this._map; + } /** * Change the center position. @@ -1502,14 +1585,18 @@ export class Circle extends BaseClass { * @return {ILatLng} */ @CordovaInstance({ sync: true }) - getCenter(): ILatLng { return; } + getCenter(): ILatLng { + return; + } /** * Return the current circle radius. * @return {number} */ @CordovaInstance({ sync: true }) - getRadius(): number { return; } + getRadius(): number { + return; + } /** * Change the circle radius. @@ -1530,7 +1617,9 @@ export class Circle extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getFillColor(): string { return; } + getFillColor(): string { + return; + } /** * Change the stroke width. @@ -1544,7 +1633,9 @@ export class Circle extends BaseClass { * @return {number} */ @CordovaInstance({ sync: true }) - getStrokeWidth(): number { return; } + getStrokeWidth(): number { + return; + } /** * Change the stroke color (outter color). @@ -1558,7 +1649,9 @@ export class Circle extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getStrokeColor(): string { return; } + getStrokeColor(): string { + return; + } /** * Change clickablity of the circle. @@ -1572,7 +1665,9 @@ export class Circle extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - getClickable(): boolean { return; } + getClickable(): boolean { + return; + } /** * Change the circle zIndex order. @@ -1586,7 +1681,9 @@ export class Circle extends BaseClass { * @return {number} */ @CordovaInstance({ sync: true }) - getZIndex(): number { return; } + getZIndex(): number { + return; + } /** * Remove the circle. @@ -1599,7 +1696,9 @@ export class Circle extends BaseClass { * @return {LatLngBounds} */ @CordovaInstance({ sync: true }) - getBounds(): LatLngBounds { return; } + getBounds(): LatLngBounds { + return; + } /** * Set circle visibility @@ -1613,7 +1712,9 @@ export class Circle extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - getVisible(): boolean { return; } + getVisible(): boolean { + return; + } } /** @@ -1626,14 +1727,15 @@ export class Circle extends BaseClass { repo: '' }) export class Environment { - /** * Get the open source software license information for Google Maps SDK for iOS. * @return {Promise} */ static getLicenseInfo(): Promise { - return new Promise((resolve) => { - GoogleMaps.getPlugin().environment.getLicenseInfo((text: string) => resolve(text)); + return new Promise(resolve => { + GoogleMaps.getPlugin().environment.getLicenseInfo((text: string) => + resolve(text) + ); }); } @@ -1642,7 +1744,10 @@ export class Environment { * @hidden */ getLicenseInfo(): Promise { - console.error('GoogleMaps', '[deprecated] This method is static. Please use Environment.getLicenseInfo()'); + console.error( + 'GoogleMaps', + '[deprecated] This method is static. Please use Environment.getLicenseInfo()' + ); return Environment.getLicenseInfo(); } @@ -1659,7 +1764,10 @@ export class Environment { * @hidden */ setBackgroundColor(color: string): void { - console.error('GoogleMaps', '[deprecated] This method is static. Please use Environment.setBackgroundColor()'); + console.error( + 'GoogleMaps', + '[deprecated] This method is static. Please use Environment.setBackgroundColor()' + ); Environment.setBackgroundColor(color); } } @@ -1674,13 +1782,17 @@ export class Environment { repo: '' }) export class Geocoder { - /** * @deprecation * @hidden */ - geocode(request: GeocoderRequest): Promise> { - console.error('GoogleMaps', '[deprecated] This method is static. Please use Geocoder.geocode()'); + geocode( + request: GeocoderRequest + ): Promise> { + console.error( + 'GoogleMaps', + '[deprecated] This method is static. Please use Geocoder.geocode()' + ); return Geocoder.geocode(request); } @@ -1689,10 +1801,15 @@ export class Geocoder { * @param {GeocoderRequest} request Request object with either an address or a position * @return {Promise>} */ - static geocode(request: GeocoderRequest): Promise> { - - if (request.address instanceof Array || Array.isArray(request.address) || - request.position instanceof Array || Array.isArray(request.position)) { + static geocode( + request: GeocoderRequest + ): Promise> { + if ( + request.address instanceof Array || + Array.isArray(request.address) || + request.position instanceof Array || + Array.isArray(request.position) + ) { // ------------------------- // Geocoder.geocode({ // address: [ @@ -1717,13 +1834,16 @@ export class Geocoder { // }) // ------------------------- return new Promise((resolve, reject) => { - GoogleMaps.getPlugin().Geocoder.geocode(request, (results: GeocoderResult[]) => { - if (results) { - resolve(results); - } else { - reject(); + GoogleMaps.getPlugin().Geocoder.geocode( + request, + (results: GeocoderResult[]) => { + if (results) { + resolve(results); + } else { + reject(); + } } - }); + ); }); } } @@ -1739,7 +1859,6 @@ export class Geocoder { repo: '' }) export class LocationService { - /** * Get the current device location without map * @return {Promise} @@ -1761,13 +1880,15 @@ export class LocationService { repo: '' }) export class Encoding { - /** * @deprecation * @hidden */ decodePath(encoded: string, precision?: number): Array { - console.error('GoogleMaps', '[deprecated] This method is static. Please use Encoding.decodePath()'); + console.error( + 'GoogleMaps', + '[deprecated] This method is static. Please use Encoding.decodePath()' + ); return Encoding.decodePath(encoded, precision); } @@ -1776,7 +1897,10 @@ export class Encoding { * @hidden */ encodePath(path: Array | BaseArrayClass): string { - console.error('GoogleMaps', '[deprecated] This method is static. Please use Encoding.encodePath()'); + console.error( + 'GoogleMaps', + '[deprecated] This method is static. Please use Encoding.encodePath()' + ); return Encoding.encodePath(path); } @@ -1787,7 +1911,10 @@ export class Encoding { * @return {ILatLng[]} */ static decodePath(encoded: string, precision?: number): Array { - return GoogleMaps.getPlugin().geometry.encoding.decodePath(encoded, precision); + return GoogleMaps.getPlugin().geometry.encoding.decodePath( + encoded, + precision + ); } /** @@ -1810,7 +1937,6 @@ export class Encoding { repo: '' }) export class Poly { - /** * Returns true if the speicified location is in the polygon path * @param location {ILatLng} @@ -1818,7 +1944,10 @@ export class Poly { * @return {boolean} */ static containsLocation(location: ILatLng, path: ILatLng[]): boolean { - return GoogleMaps.getPlugin().geometry.poly.containsLocation(location, path); + return GoogleMaps.getPlugin().geometry.poly.containsLocation( + location, + path + ); } /** @@ -1828,7 +1957,10 @@ export class Poly { * @return {boolean} */ static isLocationOnEdge(location: ILatLng, path: ILatLng[]): boolean { - return GoogleMaps.getPlugin().geometry.poly.isLocationOnEdge(location, path); + return GoogleMaps.getPlugin().geometry.poly.isLocationOnEdge( + location, + path + ); } } @@ -1842,13 +1974,15 @@ export class Poly { repo: '' }) export class Spherical { - /** * @deprecation * @hidden */ computeDistanceBetween(from: ILatLng, to: ILatLng): number { - console.error('GoogleMaps', '[deprecated] This method is static. Please use Spherical.computeDistanceBetween()'); + console.error( + 'GoogleMaps', + '[deprecated] This method is static. Please use Spherical.computeDistanceBetween()' + ); return Spherical.computeDistanceBetween(from, to); } @@ -1857,7 +1991,10 @@ export class Spherical { * @hidden */ computeOffset(from: ILatLng, distance: number, heading: number): LatLng { - console.error('GoogleMaps', '[deprecated] This method is static. Please use Spherical.computeOffset()'); + console.error( + 'GoogleMaps', + '[deprecated] This method is static. Please use Spherical.computeOffset()' + ); return Spherical.computeOffset(from, distance, heading); } @@ -1866,7 +2003,10 @@ export class Spherical { * @hidden */ computeOffsetOrigin(to: ILatLng, distance: number, heading: number): LatLng { - console.error('GoogleMaps', '[deprecated] This method is static. Please use Spherical.computeOffsetOrigin()'); + console.error( + 'GoogleMaps', + '[deprecated] This method is static. Please use Spherical.computeOffsetOrigin()' + ); return Spherical.computeOffsetOrigin(to, distance, heading); } @@ -1875,7 +2015,10 @@ export class Spherical { * @hidden */ computeLength(path: Array | BaseArrayClass): number { - console.error('GoogleMaps', '[deprecated] This method is static. Please use Spherical.computeLength()'); + console.error( + 'GoogleMaps', + '[deprecated] This method is static. Please use Spherical.computeLength()' + ); return Spherical.computeLength(path); } @@ -1884,7 +2027,10 @@ export class Spherical { * @hidden */ computeArea(path: Array | BaseArrayClass): number { - console.error('GoogleMaps', '[deprecated] This method is static. Please use Spherical.computeArea()'); + console.error( + 'GoogleMaps', + '[deprecated] This method is static. Please use Spherical.computeArea()' + ); return Spherical.computeArea(path); } @@ -1893,7 +2039,10 @@ export class Spherical { * @hidden */ computeSignedArea(path: Array | BaseArrayClass): number { - console.error('GoogleMaps', '[deprecated] This method is static. Please use Spherical.computeSignedArea()'); + console.error( + 'GoogleMaps', + '[deprecated] This method is static. Please use Spherical.computeSignedArea()' + ); return Spherical.computeSignedArea(path); } @@ -1902,7 +2051,10 @@ export class Spherical { * @hidden */ computeHeading(from: ILatLng, to: ILatLng): number { - console.error('GoogleMaps', '[deprecated] This method is static. Please use Spherical.computeHeading()'); + console.error( + 'GoogleMaps', + '[deprecated] This method is static. Please use Spherical.computeHeading()' + ); return Spherical.computeHeading(from, to); } @@ -1911,16 +2063,13 @@ export class Spherical { * @hidden */ interpolate(from: ILatLng, to: ILatLng, fraction: number): LatLng { - console.error('GoogleMaps', '[deprecated] This method is static. Please use Spherical.interpolate()'); + console.error( + 'GoogleMaps', + '[deprecated] This method is static. Please use Spherical.interpolate()' + ); return Spherical.interpolate(from, to, fraction); } - - - - - - /** * Returns the distance, in meters, between two LatLngs. * @param locationA {ILatLng} @@ -1928,7 +2077,10 @@ export class Spherical { * @return {number} */ static computeDistanceBetween(from: ILatLng, to: ILatLng): number { - return GoogleMaps.getPlugin().geometry.spherical.computeDistanceBetween(from, to); + return GoogleMaps.getPlugin().geometry.spherical.computeDistanceBetween( + from, + to + ); } /** @@ -1938,8 +2090,16 @@ export class Spherical { * @param heading {number} * @return {LatLng} */ - static computeOffset(from: ILatLng, distance: number, heading: number): LatLng { - return GoogleMaps.getPlugin().geometry.spherical.computeOffset(from, distance, heading); + static computeOffset( + from: ILatLng, + distance: number, + heading: number + ): LatLng { + return GoogleMaps.getPlugin().geometry.spherical.computeOffset( + from, + distance, + heading + ); } /** @@ -1949,8 +2109,16 @@ export class Spherical { * @param heading {number} The heading in degrees clockwise from north. * @return {LatLng} */ - static computeOffsetOrigin(to: ILatLng, distance: number, heading: number): LatLng { - return GoogleMaps.getPlugin().geometry.spherical.computeOffsetOrigin(to, distance, heading); + static computeOffsetOrigin( + to: ILatLng, + distance: number, + heading: number + ): LatLng { + return GoogleMaps.getPlugin().geometry.spherical.computeOffsetOrigin( + to, + distance, + heading + ); } /** @@ -1976,7 +2144,9 @@ export class Spherical { * @param path {Array | BaseArrayClass}. * @return {number} */ - static computeSignedArea(path: Array | BaseArrayClass): number { + static computeSignedArea( + path: Array | BaseArrayClass + ): number { return GoogleMaps.getPlugin().geometry.spherical.computeSignedArea(path); } @@ -1998,7 +2168,11 @@ export class Spherical { * @return {LatLng} */ static interpolate(from: ILatLng, to: ILatLng, fraction: number): LatLng { - return GoogleMaps.getPlugin().geometry.spherical.interpolate(from, to, fraction); + return GoogleMaps.getPlugin().geometry.spherical.interpolate( + from, + to, + fraction + ); } } @@ -2012,17 +2186,30 @@ export class Spherical { export class GoogleMap extends BaseClass { constructor(element: string | HTMLElement, options?: GoogleMapOptions) { super(); - if (checkAvailability(GoogleMaps.getPluginRef(), null, GoogleMaps.getPluginName()) === true) { + if ( + checkAvailability( + GoogleMaps.getPluginRef(), + null, + GoogleMaps.getPluginName() + ) === true + ) { if (element instanceof HTMLElement) { - this._objectInstance = GoogleMaps.getPlugin().Map.getMap(element, options); + this._objectInstance = GoogleMaps.getPlugin().Map.getMap( + element, + options + ); } else if (typeof element === 'string') { - let dummyObj: any = new (GoogleMaps.getPlugin().BaseClass)(); + let dummyObj: any = new (GoogleMaps.getPlugin()).BaseClass(); this._objectInstance = dummyObj; let onListeners: any[] = []; let oneListeners: any[] = []; let _origAddEventListener: any = this._objectInstance.addEventListener; - let _origAddEventListenerOnce: any = this._objectInstance.addEventListenerOnce; - this._objectInstance.addEventListener = (eventName: string, fn: () => void) => { + let _origAddEventListenerOnce: any = this._objectInstance + .addEventListenerOnce; + this._objectInstance.addEventListener = ( + eventName: string, + fn: () => void + ) => { if (eventName === GoogleMapsEvent.MAP_READY) { _origAddEventListener.call(dummyObj, eventName, fn); } else { @@ -2031,7 +2218,10 @@ export class GoogleMap extends BaseClass { }; this._objectInstance.on = this._objectInstance.addEventListener; - this._objectInstance.addEventListenerOnce = (eventName: string, fn: () => void) => { + this._objectInstance.addEventListenerOnce = ( + eventName: string, + fn: () => void + ) => { if (eventName === GoogleMapsEvent.MAP_READY) { _origAddEventListenerOnce.call(dummyObj, eventName, fn); } else { @@ -2039,7 +2229,7 @@ export class GoogleMap extends BaseClass { } }; this._objectInstance.one = this._objectInstance.addEventListenerOnce; - (new Promise((resolve, reject) => { + new Promise((resolve, reject) => { let count: number = 0; let timer: any = setInterval(() => { let target = document.querySelector('.show-page #' + element); @@ -2056,23 +2246,26 @@ export class GoogleMap extends BaseClass { reject(); } }, 100); - })) - .then((target: any) => { - this._objectInstance = GoogleMaps.getPlugin().Map.getMap(target, options); - this._objectInstance.one(GoogleMapsEvent.MAP_READY, () => { - this.set('_overlays', {}); - onListeners.forEach((args) => { - this.on.apply(this, args); - }); - oneListeners.forEach((args) => { - this.one.apply(this, args); - }); - dummyObj.trigger(GoogleMapsEvent.MAP_READY); - }); }) - .catch(() => { - this._objectInstance = null; - }); + .then((target: any) => { + this._objectInstance = GoogleMaps.getPlugin().Map.getMap( + target, + options + ); + this._objectInstance.one(GoogleMapsEvent.MAP_READY, () => { + this.set('_overlays', {}); + onListeners.forEach(args => { + this.on.apply(this, args); + }); + oneListeners.forEach(args => { + this.one.apply(this, args); + }); + dummyObj.trigger(GoogleMapsEvent.MAP_READY); + }); + }) + .catch(() => { + this._objectInstance = null; + }); } else if (element === null && options) { this._objectInstance = GoogleMaps.getPlugin().Map.getMap(null, options); } @@ -2086,7 +2279,9 @@ export class GoogleMap extends BaseClass { @InstanceCheck() setDiv(domNode?: HTMLElement | string): void { if (typeof domNode === 'string') { - this._objectInstance.setDiv(document.querySelector('.show-page #' + domNode)); + this._objectInstance.setDiv( + document.querySelector('.show-page #' + domNode) + ); } else { this._objectInstance.setDiv(domNode); } @@ -2097,98 +2292,122 @@ export class GoogleMap extends BaseClass { * @return {HTMLElement} */ @CordovaInstance({ sync: true }) - getDiv(): HTMLElement { return; } + getDiv(): HTMLElement { + return; + } /** * Changes the map type id * @param mapTypeId {string} */ @CordovaInstance({ sync: true }) - setMapTypeId(mapTypeId: MapType): void { } + setMapTypeId(mapTypeId: MapType): void {} /** * Moves the camera with animation * @return {Promise} */ @CordovaInstance() - animateCamera(cameraPosition: CameraPosition): Promise { return; } + animateCamera(cameraPosition: CameraPosition): Promise { + return; + } /** * Zooming in the camera with animation * @return {Promise} */ @CordovaInstance() - animateCameraZoomIn(): Promise { return; } + animateCameraZoomIn(): Promise { + return; + } /** * Zooming out the camera with animation * @return {Promise} */ @CordovaInstance() - animateCameraZoomOut(): Promise { return; } + animateCameraZoomOut(): Promise { + return; + } /** * Moves the camera without animation * @return {Promise} */ @CordovaInstance() - moveCamera(cameraPosition: CameraPosition): Promise { return; } + moveCamera(cameraPosition: CameraPosition): Promise { + return; + } /** * Zooming in the camera without animation * @return {Promise} */ @CordovaInstance() - moveCameraZoomIn(): Promise { return; } + moveCameraZoomIn(): Promise { + return; + } /** * Zooming out the camera without animation * @return {Promise} */ @CordovaInstance() - moveCameraZoomOut(): Promise { return; } + moveCameraZoomOut(): Promise { + return; + } /** * Get the position of the camera. * @return {CameraPosition} */ @CordovaInstance({ sync: true }) - getCameraPosition(): CameraPosition { return; } + getCameraPosition(): CameraPosition { + return; + } /** * Get the current camera target position * @return {Promise} */ @CordovaInstance({ sync: true }) - getCameraTarget(): ILatLng { return; } + getCameraTarget(): ILatLng { + return; + } /** * Get the current camera zoom level * @return {number} */ @CordovaInstance({ sync: true }) - getCameraZoom(): number { return; } + getCameraZoom(): number { + return; + } /** * Get the current camera bearing * @return {number} */ @CordovaInstance({ sync: true }) - getCameraBearing(): number { return; } + getCameraBearing(): number { + return; + } /** * Get the current camera tilt (view angle) * @return {number} */ @CordovaInstance({ sync: true }) - getCameraTilt(): number { return; } + getCameraTilt(): number { + return; + } /** * Set the center position of the camera view * @param latLng {ILatLng | Array} */ @CordovaInstance({ sync: true }) - setCameraTarget(latLng: ILatLng | Array): void { } + setCameraTarget(latLng: ILatLng | Array): void {} /** * Set zoom level of the camera @@ -2217,21 +2436,25 @@ export class GoogleMap extends BaseClass { * @param y {any} */ @CordovaInstance({ sync: true }) - panBy(x: string | number, y: string | number): void { } + panBy(x: string | number, y: string | number): void {} /** * Get the current visible region (southWest and northEast) * @return {VisibleRegion} */ @CordovaInstance({ sync: true }) - getVisibleRegion(): VisibleRegion { return; } + getVisibleRegion(): VisibleRegion { + return; + } /** * Get the current device location * @return {Promise} */ @CordovaInstance() - getMyLocation(options?: MyLocationOptions): Promise { return; } + getMyLocation(options?: MyLocationOptions): Promise { + return; + } /** * Set false to ignore all clicks on the map @@ -2252,7 +2475,7 @@ export class GoogleMap extends BaseClass { delete this.get('_overlays')[overlayId]; }); } - return new Promise((resolve) => { + return new Promise(resolve => { this._objectInstance.remove(() => resolve()); }); } @@ -2269,7 +2492,7 @@ export class GoogleMap extends BaseClass { delete this.get('_overlays')[overlayId]; }); } - return new Promise((resolve) => { + return new Promise(resolve => { this._objectInstance.clear(() => resolve()); }); } @@ -2279,14 +2502,18 @@ export class GoogleMap extends BaseClass { * @return {Promise} */ @CordovaInstance() - fromLatLngToPoint(latLng: ILatLng): Promise { return; } + fromLatLngToPoint(latLng: ILatLng): Promise { + return; + } /** * Convert the unit from the pixels from the left/top to the LatLng * @return {Promise} */ @CordovaInstance() - fromPointToLatLng(point: any): Promise { return; } + fromPointToLatLng(point: any): Promise { + return; + } /** * Set true if you want to show the MyLocation control (blue dot) @@ -2307,7 +2534,9 @@ export class GoogleMap extends BaseClass { * @return {Promise} */ @CordovaInstance() - getFocusedBuilding(): Promise { return; } + getFocusedBuilding(): Promise { + return; + } /** * Set true if you want to show the indoor map @@ -2352,7 +2581,12 @@ export class GoogleMap extends BaseClass { * @param bottom {number} */ @CordovaInstance({ sync: true }) - setPadding(top?: number, right?: number, bottom?: number, left?: number): void { } + setPadding( + top?: number, + right?: number, + bottom?: number, + left?: number + ): void {} /** * Set options @@ -2394,7 +2628,9 @@ export class GoogleMap extends BaseClass { * @return {Promise} */ @InstanceCheck() - addMarkerCluster(options: MarkerClusterOptions): Promise { + addMarkerCluster( + options: MarkerClusterOptions + ): Promise { return new Promise((resolve, reject) => { this._objectInstance.addMarkerCluster(options, (markerCluster: any) => { if (markerCluster) { @@ -2530,7 +2766,9 @@ export class GoogleMap extends BaseClass { * @return {Promise} */ @InstanceCheck() - addGroundOverlay(options: GroundOverlayOptions): Promise { + addGroundOverlay( + options: GroundOverlayOptions + ): Promise { return new Promise((resolve, reject) => { this._objectInstance.addGroundOverlay(options, (groundOverlay: any) => { if (groundOverlay) { @@ -2584,15 +2822,15 @@ export class GoogleMap extends BaseClass { * @return {Promise} */ @CordovaInstance() - toDataURL(params?: ToDataUrlOptions): Promise { return; } - + toDataURL(params?: ToDataUrlOptions): Promise { + return; + } } /** * @hidden */ export class GroundOverlay extends BaseClass { - private _map: GoogleMap; constructor(_map: GoogleMap, _objectInstance: any) { @@ -2606,13 +2844,17 @@ export class GroundOverlay extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getId(): string { return; } + getId(): string { + return; + } /** * Return the map instance. * @return {GoogleMap} */ - getMap(): GoogleMap { return this._map; } + getMap(): GoogleMap { + return this._map; + } /** * Change the bounds of the GroundOverlay @@ -2626,34 +2868,38 @@ export class GroundOverlay extends BaseClass { * @param bearing {number} */ @CordovaInstance({ sync: true }) - setBearing(bearing: number): void { } + setBearing(bearing: number): void {} /** * Return the current bearing value */ @CordovaInstance({ sync: true }) - getBearing(): number { return; } + getBearing(): number { + return; + } /** * Change the image of the ground overlay * @param image {string} URL of image */ @CordovaInstance({ sync: true }) - setImage(image: string): void {}; + setImage(image: string): void {} /** * Change the opacity of the ground overlay from 0.0 to 1.0 * @param opacity {number} */ @CordovaInstance({ sync: true }) - setOpacity(opacity: number): void { } + setOpacity(opacity: number): void {} /** * Return the current opacity * @return {number} */ @CordovaInstance({ sync: true }) - getOpacity(): number { return; } + getOpacity(): number { + return; + } /** * Change clickablity of the ground overlay @@ -2667,21 +2913,25 @@ export class GroundOverlay extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - getClickable(): boolean { return; } + getClickable(): boolean { + return; + } /** * Change visibility of the ground overlay * @param visible {boolean} */ @CordovaInstance({ sync: true }) - setVisible(visible: boolean): void { } + setVisible(visible: boolean): void {} /** * Return true if the ground overlay is visible * @return {boolean} */ @CordovaInstance({ sync: true }) - getVisible(): boolean { return; } + getVisible(): boolean { + return; + } /** * Change the ground overlay zIndex order @@ -2695,7 +2945,9 @@ export class GroundOverlay extends BaseClass { * @return {number} */ @CordovaInstance({ sync: true }) - getZIndex(): number { return; } + getZIndex(): number { + return; + } /** * Remove the ground overlay @@ -2718,10 +2970,9 @@ export class GroundOverlay extends BaseClass { repo: '' }) export class HtmlInfoWindow extends BaseClass { - constructor() { super(); - this._objectInstance = new (GoogleMaps.getPlugin().HtmlInfoWindow)(); + this._objectInstance = new (GoogleMaps.getPlugin()).HtmlInfoWindow(); } /** @@ -2751,14 +3002,12 @@ export class HtmlInfoWindow extends BaseClass { */ @CordovaInstance() close(): void {} - } /** * @hidden */ export class Marker extends BaseClass { - private _map: GoogleMap; constructor(_map: GoogleMap, _objectInstance: any) { @@ -2772,27 +3021,35 @@ export class Marker extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getId(): string { return; } + getId(): string { + return; + } /** * Return the map instance. * @return {GoogleMap} */ - getMap(): GoogleMap { return this._map; } + getMap(): GoogleMap { + return this._map; + } /** * Set the marker position. * @param latLng {ILatLng} */ @CordovaInstance({ sync: true }) - setPosition(latLng: ILatLng): void { return; } + setPosition(latLng: ILatLng): void { + return; + } /** * Return the marker position. * @return {ILatLng} */ @CordovaInstance({ sync: true }) - getPosition(): ILatLng { return; } + getPosition(): ILatLng { + return; + } /** * Show the normal infoWindow of the marker. @@ -2831,7 +3088,9 @@ export class Marker extends BaseClass { * Return true if the marker is visible */ @CordovaInstance({ sync: true }) - isVisible(): boolean { return; } + isVisible(): boolean { + return; + } /** * Change title of the normal infoWindow. @@ -2845,7 +3104,9 @@ export class Marker extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getTitle(): string { return; } + getTitle(): string { + return; + } /** * Change snippet of the normal infoWindow. @@ -2859,7 +3120,9 @@ export class Marker extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getSnippet(): string { return; } + getSnippet(): string { + return; + } /** * Change the marker opacity from 0.0 to 1.0. @@ -2873,7 +3136,9 @@ export class Marker extends BaseClass { * @return {number} Opacity */ @CordovaInstance({ sync: true }) - getOpacity(): number { return; } + getOpacity(): number { + return; + } /** * Remove the marker. @@ -2906,14 +3171,18 @@ export class Marker extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - isInfoWindowShown(): boolean { return; } + isInfoWindowShown(): boolean { + return; + } /** * Return the marker hash code. * @return {string} Marker hash code */ @CordovaInstance({ sync: true }) - getHashCode(): string { return; } + getHashCode(): string { + return; + } /** * Higher zIndex value overlays will be drawn on top of lower zIndex value tile layers and overlays. @@ -2927,57 +3196,65 @@ export class Marker extends BaseClass { * @return {number} */ @CordovaInstance({ sync: true }) - getZIndex(): number { return; } + getZIndex(): number { + return; + } /** * Set true if you allow all users to drag the marker. * @param draggable {boolean} */ @CordovaInstance({ sync: true }) - setDraggable(draggable: boolean): void { } + setDraggable(draggable: boolean): void {} /** * Return true if the marker drag is enabled. * @return {boolean} */ @CordovaInstance({ sync: true }) - isDraggable(): boolean { return; } + isDraggable(): boolean { + return; + } /** * Set true if you want to be flat marker. * @param flat {boolean} */ @CordovaInstance({ sync: true }) - setFlat(flat: boolean): void { return; } + setFlat(flat: boolean): void { + return; + } /** * Change icon url and/or size * @param icon */ @CordovaInstance({ sync: true }) - setIcon(icon: MarkerIcon): void { return; } + setIcon(icon: MarkerIcon): void { + return; + } /** * Set the marker rotation angle. * @param rotation {number} */ @CordovaInstance({ sync: true }) - setRotation(rotation: number): void { } + setRotation(rotation: number): void {} /** * Return the marker rotation angle. * @return {number} */ @CordovaInstance({ sync: true }) - getRotation(): number { return; } - + getRotation(): number { + return; + } } /** * @hidden */ export class MarkerCluster extends BaseClass { - private _map: GoogleMap; constructor(_map: GoogleMap, _objectInstance: any) { @@ -2991,7 +3268,9 @@ export class MarkerCluster extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getId(): string { return; } + getId(): string { + return; + } /** * Add one marker location @@ -3023,15 +3302,15 @@ export class MarkerCluster extends BaseClass { * Return the map instance. * @return {GoogleMap} */ - getMap(): GoogleMap { return this._map; } - + getMap(): GoogleMap { + return this._map; + } } /** * @hidden */ export class Polygon extends BaseClass { - private _map: GoogleMap; constructor(_map: GoogleMap, _objectInstance: any) { @@ -3045,13 +3324,17 @@ export class Polygon extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getId(): string { return; } + getId(): string { + return; + } /** * Return the map instance. * @return {GoogleMap} */ - getMap(): GoogleMap { return this._map; } + getMap(): GoogleMap { + return this._map; + } /** * Change the polygon points. @@ -3090,7 +3373,7 @@ export class Polygon extends BaseClass { results.push(hole); }); return results; - } + } /** * Change the filling color (inner color) @@ -3104,7 +3387,9 @@ export class Polygon extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getFillColor(): string { return; } + getFillColor(): string { + return; + } /** * Change the stroke color (outer color) @@ -3118,7 +3403,9 @@ export class Polygon extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getStrokeColor(): string { return; } + getStrokeColor(): string { + return; + } /** * Change clickablity of the polygon @@ -3131,7 +3418,9 @@ export class Polygon extends BaseClass { * Return true if the polygon is clickable */ @CordovaInstance({ sync: true }) - getClickable(): boolean { return; } + getClickable(): boolean { + return; + } /** * Change visibility of the polygon @@ -3145,7 +3434,9 @@ export class Polygon extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - getVisible(): boolean { return; } + getVisible(): boolean { + return; + } /** * Change the polygon zIndex order. @@ -3159,7 +3450,9 @@ export class Polygon extends BaseClass { * @return {number} */ @CordovaInstance({ sync: true }) - getZIndex(): number { return; } + getZIndex(): number { + return; + } /** * Remove the polygon. @@ -3181,7 +3474,9 @@ export class Polygon extends BaseClass { * Return the polygon stroke width */ @CordovaInstance({ sync: true }) - getStrokeWidth(): number { return; } + getStrokeWidth(): number { + return; + } /** * When true, edges of the polygon are interpreted as geodesic and will follow the curvature of the Earth. @@ -3195,15 +3490,15 @@ export class Polygon extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - getGeodesic(): boolean { return; } - + getGeodesic(): boolean { + return; + } } /** * @hidden */ export class Polyline extends BaseClass { - private _map: GoogleMap; constructor(_map: GoogleMap, _objectInstance: any) { @@ -3217,13 +3512,17 @@ export class Polyline extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getId(): string { return; } + getId(): string { + return; + } /** * Return the map instance. * @return {GoogleMap} */ - getMap(): GoogleMap { return this._map; } + getMap(): GoogleMap { + return this._map; + } /** * Change the polyline points. @@ -3253,7 +3552,9 @@ export class Polyline extends BaseClass { * Return true if the polyline is geodesic */ @CordovaInstance({ sync: true }) - getGeodesic(): boolean { return; } + getGeodesic(): boolean { + return; + } /** * Change visibility of the polyline @@ -3267,7 +3568,9 @@ export class Polyline extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - getVisible(): boolean { return; } + getVisible(): boolean { + return; + } /** * Change clickablity of the polyline @@ -3281,7 +3584,9 @@ export class Polyline extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - getClickable(): boolean { return; } + getClickable(): boolean { + return; + } /** * Change the polyline color @@ -3295,7 +3600,9 @@ export class Polyline extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getStrokeColor(): string { return; } + getStrokeColor(): string { + return; + } /** * Change the polyline stroke width @@ -3309,7 +3616,9 @@ export class Polyline extends BaseClass { * @return {number} */ @CordovaInstance({ sync: true }) - getStrokeWidth(): number { return; } + getStrokeWidth(): number { + return; + } /** * Change the polyline zIndex order. @@ -3323,7 +3632,9 @@ export class Polyline extends BaseClass { * @return {number} */ @CordovaInstance({ sync: true }) - getZIndex(): number { return; } + getZIndex(): number { + return; + } /** * Remove the polyline @@ -3340,7 +3651,6 @@ export class Polyline extends BaseClass { * @hidden */ export class TileOverlay extends BaseClass { - private _map: GoogleMap; constructor(_map: GoogleMap, _objectInstance: any) { @@ -3354,13 +3664,17 @@ export class TileOverlay extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getId(): string { return; } + getId(): string { + return; + } /** * Return the map instance. * @return {GoogleMap} */ - getMap(): GoogleMap { return this._map; } + getMap(): GoogleMap { + return this._map; + } /** * Set whether the tiles should fade in. @@ -3374,7 +3688,9 @@ export class TileOverlay extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - getFadeIn(): boolean { return; } + getFadeIn(): boolean { + return; + } /** * Set the zIndex of the tile overlay @@ -3388,7 +3704,9 @@ export class TileOverlay extends BaseClass { * @return {number} */ @CordovaInstance({ sync: true }) - getZIndex(): number { return; } + getZIndex(): number { + return; + } /** * Set the opacity of the tile overlay @@ -3402,7 +3720,9 @@ export class TileOverlay extends BaseClass { * @return {number} */ @CordovaInstance({ sync: true }) - getOpacity(): number { return; } + getOpacity(): number { + return; + } /** * Set false if you want to hide @@ -3416,13 +3736,17 @@ export class TileOverlay extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - getVisible(): boolean { return; } + getVisible(): boolean { + return; + } /** * Get tile size */ @CordovaInstance({ sync: true }) - getTileSize(): any { return; } + getTileSize(): any { + return; + } /** * Remove the tile overlay @@ -3439,7 +3763,6 @@ export class TileOverlay extends BaseClass { * @hidden */ export class KmlOverlay extends BaseClass { - private _map: GoogleMap; constructor(_map: GoogleMap, _objectInstance: any) { @@ -3448,12 +3771,12 @@ export class KmlOverlay extends BaseClass { this._objectInstance = _objectInstance; Object.defineProperty(self, 'camera', { - value: this._objectInstance.camera, - writable: false + value: this._objectInstance.camera, + writable: false }); Object.defineProperty(self, 'kmlData', { - value: this._objectInstance.kmlData, - writable: false + value: this._objectInstance.kmlData, + writable: false }); } @@ -3461,20 +3784,26 @@ export class KmlOverlay extends BaseClass { * Returns the viewport to contains all overlays */ @CordovaInstance({ sync: true }) - getDefaultViewport(): CameraPosition { return; } + getDefaultViewport(): CameraPosition { + return; + } /** * Return the ID of instance. * @return {string} */ @CordovaInstance({ sync: true }) - getId(): string { return; } + getId(): string { + return; + } /** * Return the map instance. * @return {GoogleMap} */ - getMap(): GoogleMap { return this._map; } + getMap(): GoogleMap { + return this._map; + } /** * Change visibility of the polyline @@ -3488,7 +3817,9 @@ export class KmlOverlay extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - getVisible(): boolean { return; } + getVisible(): boolean { + return; + } /** * Change clickablity of the KmlOverlay @@ -3502,7 +3833,9 @@ export class KmlOverlay extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - getClickable(): boolean { return; } + getClickable(): boolean { + return; + } /** * Remove the KmlOverlay From f700bb3817efee02c1fb1d7be105f7e1adaa6847 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Mon, 19 Mar 2018 09:10:25 +0100 Subject: [PATCH 108/110] Revert "fix(google-maps): wrong decorators" This reverts commit e5b9d53b179fedb939911753076e579ab7c12748. --- .../plugins/google-maps/index.ts | 859 ++++++------------ 1 file changed, 263 insertions(+), 596 deletions(-) diff --git a/src/@ionic-native/plugins/google-maps/index.ts b/src/@ionic-native/plugins/google-maps/index.ts index d776ba537..3d875b2b5 100644 --- a/src/@ionic-native/plugins/google-maps/index.ts +++ b/src/@ionic-native/plugins/google-maps/index.ts @@ -1,29 +1,16 @@ +import { Injectable } from '@angular/core'; +import { CordovaCheck, CordovaInstance, Plugin, InstanceProperty, InstanceCheck, checkAvailability, IonicNativePlugin } from '@ionic-native/core'; +import { Observable } from 'rxjs/Observable'; import 'rxjs/add/observable/fromEvent'; -import { Injectable } from '@angular/core'; -import { - checkAvailability, - CordovaCheck, - CordovaInstance, - InstanceCheck, - InstanceProperty, - IonicNativePlugin, - Plugin -} from '@ionic-native/core'; -import { Observable } from 'rxjs/Observable'; -export type MapType = - | 'MAP_TYPE_NORMAL' - | 'MAP_TYPE_ROADMAP' - | 'MAP_TYPE_SATELLITE' - | 'MAP_TYPE_HYBRID' - | 'MAP_TYPE_TERRAIN' - | 'MAP_TYPE_NONE'; +export type MapType = 'MAP_TYPE_NORMAL' | 'MAP_TYPE_ROADMAP' | 'MAP_TYPE_SATELLITE' | 'MAP_TYPE_HYBRID' | 'MAP_TYPE_TERRAIN' | 'MAP_TYPE_NONE'; /** * @hidden */ export class LatLng implements ILatLng { + lat: number; lng: number; @@ -56,11 +43,12 @@ export interface ILatLngBounds { * @hidden */ export class LatLngBounds implements ILatLngBounds { + private _objectInstance: any; - @InstanceProperty() northeast: ILatLng; - @InstanceProperty() southwest: ILatLng; - @InstanceProperty() type: string; + @InstanceProperty northeast: ILatLng; + @InstanceProperty southwest: ILatLng; + @InstanceProperty type: string; constructor(points?: ILatLng[]) { this._objectInstance = new (GoogleMaps.getPlugin()).LatLngBounds(points); @@ -71,9 +59,7 @@ export class LatLngBounds implements ILatLngBounds { * @return {string} */ @CordovaInstance({ sync: true }) - toString(): string { - return; - } + toString(): string { return; } /** * Returns a string of the form "lat_sw,lng_sw,lat_ne,lng_ne" for this bounds, where "sw" corresponds to the southwest corner of the bounding box, while "ne" corresponds to the northeast corner of that box. @@ -81,9 +67,7 @@ export class LatLngBounds implements ILatLngBounds { * @return {string} */ @CordovaInstance({ sync: true }) - toUrlValue(precision?: number): string { - return; - } + toUrlValue(precision?: number): string { return; } /** * Extends this bounds to contain the given point. @@ -97,21 +81,18 @@ export class LatLngBounds implements ILatLngBounds { * @param LatLng {ILatLng} */ @CordovaInstance({ sync: true }) - contains(LatLng: ILatLng): boolean { - return; - } + contains(LatLng: ILatLng): boolean { return; } /** * Computes the center of this LatLngBounds * @return {LatLng} */ @CordovaInstance({ sync: true }) - getCenter(): LatLng { - return; - } + getCenter(): LatLng { return; } } export interface GoogleMapControlOptions { + /** * Turns the compass on or off. */ @@ -151,6 +132,7 @@ export interface GoogleMapControlOptions { } export interface GoogleMapGestureOptions { + /** * Set false to disable the scroll gesture (default: true) */ @@ -190,6 +172,7 @@ export interface GoogleMapPaddingOptions { } export interface GoogleMapPreferenceOptions { + /** * Minimum and maximum zoom levels for zooming gestures. */ @@ -212,6 +195,7 @@ export interface GoogleMapPreferenceOptions { } export interface GoogleMapOptions { + /** * mapType [options] */ @@ -344,6 +328,7 @@ export interface CircleOptions { } export interface GeocoderRequest { + /** * The address property or position property is required. * You can not specify both property at the same time. @@ -390,7 +375,7 @@ export interface GeocoderResult { lines?: Array; permises?: string; phone?: string; - url?: string; + url?: string }; locale?: string; locality?: string; @@ -747,6 +732,7 @@ export interface ToDataUrlOptions { uncompress?: boolean; } + /** * Options for map.addKmlOverlay() method */ @@ -772,6 +758,7 @@ export interface KmlOverlayOptions { [key: string]: any; } + /** * @hidden */ @@ -782,55 +769,41 @@ export class VisibleRegion implements ILatLngBounds { * The northeast of the bounds that contains the farLeft, farRight, nearLeft and nearRight. * Since the map view is able to rotate, the farRight is not the same as the northeast. */ - @InstanceProperty() northeast: ILatLng; + @InstanceProperty northeast: ILatLng; /** * The southwest of the bounds that contains the farLeft, farRight, nearLeft and nearRight. * Since the map view is able to rotate, the nearLeft is not the same as the southwest. */ - @InstanceProperty() southwest: ILatLng; + @InstanceProperty southwest: ILatLng; /** * The nearRight indicates the lat/lng of the top-left of the map view. */ - @InstanceProperty() farLeft: ILatLng; + @InstanceProperty farLeft: ILatLng; /** * The nearRight indicates the lat/lng of the top-right of the map view. */ - @InstanceProperty() farRight: ILatLng; + @InstanceProperty farRight: ILatLng; /** * The nearRight indicates the lat/lng of the bottom-left of the map view. */ - @InstanceProperty() nearLeft: ILatLng; + @InstanceProperty nearLeft: ILatLng; /** * The nearRight indicates the lat/lng of the bottom-right of the map view. */ - @InstanceProperty() nearRight: ILatLng; + @InstanceProperty nearRight: ILatLng; /** * constant value : `VisibleRegion` */ - @InstanceProperty() type: string; + @InstanceProperty type: string; - constructor( - southwest: LatLngBounds, - northeast: LatLngBounds, - farLeft: ILatLng, - farRight: ILatLng, - nearLeft: ILatLng, - nearRight: ILatLng - ) { - this._objectInstance = new (GoogleMaps.getPlugin()).VisibleRegion( - southwest, - northeast, - farLeft, - farRight, - nearLeft, - nearRight - ); + constructor(southwest: LatLngBounds, northeast: LatLngBounds, farLeft: ILatLng, farRight: ILatLng, nearLeft: ILatLng, nearRight: ILatLng) { + this._objectInstance = new (GoogleMaps.getPlugin()).VisibleRegion(southwest, northeast, farLeft, farRight, nearLeft, nearRight); } /** @@ -838,9 +811,7 @@ export class VisibleRegion implements ILatLngBounds { * @return {string} */ @CordovaInstance({ sync: true }) - toString(): string { - return; - } + toString(): string { return; } /** * Returns a string of the form "lat_sw,lng_sw,lat_ne,lng_ne" for this bounds, where "sw" corresponds to the southwest corner of the bounding box, while "ne" corresponds to the northeast corner of that box. @@ -848,18 +819,16 @@ export class VisibleRegion implements ILatLngBounds { * @return {string} */ @CordovaInstance({ sync: true }) - toUrlValue(precision?: number): string { - return; - } + toUrlValue(precision?: number): string { return; } + /** * Returns true if the given lat/lng is in this bounds. * @param LatLng {ILatLng} */ @CordovaInstance({ sync: true }) - contains(LatLng: ILatLng): boolean { - return; - } + contains(LatLng: ILatLng): boolean { return; } + } /** @@ -900,7 +869,7 @@ export const GoogleMapsEvent = { /** * @hidden */ -export const GoogleMapsAnimation: { [animationName: string]: string } = { +export const GoogleMapsAnimation: { [animationName: string]: string; } = { BOUNCE: 'BOUNCE', DROP: 'DROP' }; @@ -908,7 +877,7 @@ export const GoogleMapsAnimation: { [animationName: string]: string } = { /** * @hidden */ -export const GoogleMapsMapTypeId: { [mapType: string]: MapType } = { +export const GoogleMapsMapTypeId: { [mapType: string]: MapType; } = { NORMAL: 'MAP_TYPE_NORMAL', ROADMAP: 'MAP_TYPE_ROADMAP', SATELLITE: 'MAP_TYPE_SATELLITE', @@ -1035,32 +1004,24 @@ export const GoogleMapsMapTypeId: { [mapType: string]: MapType } = { pluginRef: 'plugin.google.maps', plugin: 'cordova-plugin-googlemaps', repo: 'https://github.com/mapsplugin/cordova-plugin-googlemaps', - document: - 'https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.0.0/README.md', - install: - 'ionic cordova plugin add cordova-plugin-googlemaps --variable API_KEY_FOR_ANDROID="YOUR_ANDROID_API_KEY_IS_HERE" --variable API_KEY_FOR_IOS="YOUR_IOS_API_KEY_IS_HERE"', + document: 'https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.0.0/README.md', + install: 'ionic cordova plugin add cordova-plugin-googlemaps --variable API_KEY_FOR_ANDROID="YOUR_ANDROID_API_KEY_IS_HERE" --variable API_KEY_FOR_IOS="YOUR_IOS_API_KEY_IS_HERE"', installVariables: ['API_KEY_FOR_ANDROID', 'API_KEY_FOR_IOS'], platforms: ['Android', 'iOS'] }) @Injectable() export class GoogleMaps extends IonicNativePlugin { + /** * Creates a new GoogleMap instance * @param element {string | HTMLElement} Element ID or reference to attach the map to * @param options {GoogleMapOptions} [options] Options * @return {GoogleMap} */ - static create( - element: string | HTMLElement | GoogleMapOptions, - options?: GoogleMapOptions - ): GoogleMap { + static create(element: string | HTMLElement | GoogleMapOptions, options?: GoogleMapOptions): GoogleMap { if (element instanceof HTMLElement) { if (element.getAttribute('__pluginMapId')) { - console.error( - `GoogleMaps ${element.tagName}[__pluginMapId='${element.getAttribute( - '__pluginMapId' - )}'] has already map.` - ); + console.error('GoogleMaps', element.tagName + '[__pluginMapId=\'' + element.getAttribute('__pluginMapId') + '\'] has already map.'); return; } } else if (typeof element === 'object') { @@ -1076,13 +1037,11 @@ export class GoogleMaps extends IonicNativePlugin { * @deprecation * @hidden */ - create( - element: string | HTMLElement | GoogleMapOptions, - options?: GoogleMapOptions - ): GoogleMap { + create(element: string | HTMLElement | GoogleMapOptions, options?: GoogleMapOptions): GoogleMap { console.error('GoogleMaps', '[deprecated] Please use GoogleMaps.create()'); return GoogleMaps.create(element, options); } + } /** @@ -1105,7 +1064,7 @@ export class BaseClass { */ @InstanceCheck({ observable: true }) addEventListener(eventName: string): Observable { - return new Observable(observer => { + return new Observable((observer) => { this._objectInstance.on(eventName, (...args: any[]) => { if (args[args.length - 1] instanceof GoogleMaps.getPlugin().BaseClass) { if (args[args.length - 1].type === 'Map') { @@ -1124,9 +1083,7 @@ export class BaseClass { } args[args.length - 1] = overlay; } else { - args[args.length - 1] = this._objectInstance - .getMap() - .get('_overlays')[args[args.length - 1].getId()]; + args[args.length - 1] = this._objectInstance.getMap().get('_overlays')[args[args.length - 1].getId()]; } } observer.next(args); @@ -1141,7 +1098,7 @@ export class BaseClass { */ @InstanceCheck() addListenerOnce(eventName: string): Promise { - return new Promise(resolve => { + return new Promise((resolve) => { this._objectInstance.one(eventName, (...args: any[]) => { if (args[args.length - 1] instanceof GoogleMaps.getPlugin().BaseClass) { if (args[args.length - 1].type === 'Map') { @@ -1160,9 +1117,7 @@ export class BaseClass { } args[args.length - 1] = overlay; } else { - args[args.length - 1] = this._objectInstance - .getMap() - .get('_overlays')[args[args.length - 1].getId()]; + args[args.length - 1] = this._objectInstance.getMap().get('_overlays')[args[args.length - 1].getId()]; } } resolve(args); @@ -1175,9 +1130,7 @@ export class BaseClass { * @param key {any} */ @CordovaInstance({ sync: true }) - get(key: string): any { - return; - } + get(key: string): any { return; } /** * Sets a value @@ -1186,7 +1139,7 @@ export class BaseClass { * @param noNotify {boolean} [options] True if you want to prevent firing the `(key)_changed` event. */ @CordovaInstance({ sync: true }) - set(key: string, value: any, noNotify?: boolean): void {} + set(key: string, value: any, noNotify?: boolean): void { } /** * Bind a key to another object @@ -1196,12 +1149,7 @@ export class BaseClass { * @param noNotify? {boolean} [options] True if you want to prevent `(key)_changed` event when you bind first time, because the internal status is changed from `undefined` to something. */ @CordovaInstance({ sync: true }) - bindTo( - key: string, - target: any, - targetKey?: string, - noNotify?: boolean - ): void {} + bindTo(key: string, target: any, targetKey?: string, noNotify?: boolean): void { } /** * Alias of `addEventListener` @@ -1210,7 +1158,7 @@ export class BaseClass { */ @InstanceCheck({ observable: true }) on(eventName: string): Observable { - return new Observable(observer => { + return new Observable((observer) => { this._objectInstance.on(eventName, (...args: any[]) => { if (args[args.length - 1] instanceof GoogleMaps.getPlugin().BaseClass) { if (args[args.length - 1].type === 'Map') { @@ -1229,9 +1177,7 @@ export class BaseClass { } args[args.length - 1] = overlay; } else { - args[args.length - 1] = this._objectInstance - .getMap() - .get('_overlays')[args[args.length - 1].getId()]; + args[args.length - 1] = this._objectInstance.getMap().get('_overlays')[args[args.length - 1].getId()]; } } observer.next(args); @@ -1246,7 +1192,7 @@ export class BaseClass { */ @InstanceCheck() one(eventName: string): Promise { - return new Promise(resolve => { + return new Promise((resolve) => { this._objectInstance.one(eventName, (...args: any[]) => { if (args[args.length - 1] instanceof GoogleMaps.getPlugin().BaseClass) { if (args[args.length - 1].type === 'Map') { @@ -1265,9 +1211,7 @@ export class BaseClass { } args[args.length - 1] = overlay; } else { - args[args.length - 1] = this._objectInstance - .getMap() - .get('_overlays')[args[args.length - 1].getId()]; + args[args.length - 1] = this._objectInstance.getMap().get('_overlays')[args[args.length - 1].getId()]; } } resolve(args); @@ -1279,7 +1223,7 @@ export class BaseClass { * Clears all stored values */ @CordovaInstance({ sync: true }) - empty(): void {} + empty(): void { } /** * Dispatch event. @@ -1289,6 +1233,7 @@ export class BaseClass { @CordovaInstance({ sync: true }) trigger(eventName: string, ...parameters: any[]): void {} + /** * Executes off() and empty() */ @@ -1296,9 +1241,7 @@ export class BaseClass { destroy(): void { let map: GoogleMap = this._objectInstance.getMap(); if (map) { - delete this._objectInstance.getMap().get('_overlays')[ - this._objectInstance.getId() - ]; + delete this._objectInstance.getMap().get('_overlays')[this._objectInstance.getId()]; } this._objectInstance.remove(); } @@ -1317,10 +1260,7 @@ export class BaseClass { * @param listener {Function} [options] Event listener */ @CordovaInstance({ sync: true }) - removeEventListener( - eventName?: string, - listener?: (...parameters: any[]) => void - ): void {} + removeEventListener(eventName?: string, listener?: (...parameters: any[]) => void): void {} /** * Alias of `removeEventListener` @@ -1330,6 +1270,7 @@ export class BaseClass { */ @CordovaInstance({ sync: true }) off(eventName?: string, listener?: (...parameters: any[]) => void): void {} + } /** @@ -1343,14 +1284,13 @@ export class BaseClass { repo: '' }) export class BaseArrayClass extends BaseClass { + constructor(initialData?: T[] | any) { super(); if (initialData instanceof GoogleMaps.getPlugin().BaseArrayClass) { this._objectInstance = initialData; } else { - this._objectInstance = new (GoogleMaps.getPlugin()).BaseArrayClass( - initialData - ); + this._objectInstance = new (GoogleMaps.getPlugin().BaseArrayClass)(initialData); } } @@ -1374,10 +1314,8 @@ export class BaseArrayClass extends BaseClass { * @return {Promise} */ @CordovaCheck() - forEachAsync( - fn: ((element: T, callback: () => void) => void) - ): Promise { - return new Promise(resolve => { + forEachAsync(fn: ((element: T, callback: () => void) => void)): Promise { + return new Promise((resolve) => { this._objectInstance.forEachAsync(fn, resolve); }); } @@ -1389,9 +1327,7 @@ export class BaseArrayClass extends BaseClass { * @return {Array} returns a new array with the results */ @CordovaInstance({ sync: true }) - map(fn: (element: T, index: number) => any): any[] { - return; - } + map(fn: (element: T, index: number) => any): any[] { return; } /** * Iterate over each element, calling the provided callback. @@ -1401,10 +1337,8 @@ export class BaseArrayClass extends BaseClass { * @return {Promise} returns a new array with the results */ @CordovaCheck() - mapAsync( - fn: ((element: T, callback: (newElement: any) => void) => void) - ): Promise { - return new Promise(resolve => { + mapAsync(fn: ((element: T, callback: (newElement: any) => void) => void)): Promise { + return new Promise((resolve) => { this._objectInstance.mapAsync(fn, resolve); }); } @@ -1416,10 +1350,8 @@ export class BaseArrayClass extends BaseClass { * @return {Promise} returns a new array with the results */ @CordovaCheck() - mapSeries( - fn: ((element: T, callback: (newElement: any) => void) => void) - ): Promise { - return new Promise(resolve => { + mapSeries(fn: ((element: T, callback: (newElement: any) => void) => void)): Promise { + return new Promise((resolve) => { this._objectInstance.mapSeries(fn, resolve); }); } @@ -1430,9 +1362,7 @@ export class BaseArrayClass extends BaseClass { * @return {Array} returns a new filtered array */ @CordovaInstance({ sync: true }) - filter(fn: (element: T, index: number) => boolean): T[] { - return; - } + filter(fn: (element: T, index: number) => boolean): T[] { return; } /** * The filterAsync() method creates a new array with all elements that pass the test implemented by the provided function. @@ -1441,10 +1371,8 @@ export class BaseArrayClass extends BaseClass { * @return {Promise} returns a new filtered array */ @CordovaCheck() - filterAsync( - fn: (element: T, callback: (result: boolean) => void) => void - ): Promise { - return new Promise(resolve => { + filterAsync(fn: (element: T, callback: (result: boolean) => void) => void): Promise { + return new Promise((resolve) => { this._objectInstance.filterAsync(fn, resolve); }); } @@ -1454,9 +1382,7 @@ export class BaseArrayClass extends BaseClass { * @return {Array} */ @CordovaInstance({ sync: true }) - getArray(): T[] { - return; - } + getArray(): T[] { return; } /** * Returns the element at the specified index. @@ -1471,9 +1397,7 @@ export class BaseArrayClass extends BaseClass { * @return {number} */ @CordovaInstance({ sync: true }) - getLength(): number { - return; - } + getLength(): number { return; } /** * The indexOf() method returns the first index at which a given element can be found in the array, or -1 if it is not present. @@ -1481,9 +1405,7 @@ export class BaseArrayClass extends BaseClass { * @return {number} */ @CordovaInstance({ sync: true }) - indexOf(element: T): number { - return; - } + indexOf(element: T): number { return; } /** * The reverse() method reverses an array in place. @@ -1513,9 +1435,7 @@ export class BaseArrayClass extends BaseClass { * @return {Object} */ @CordovaInstance({ sync: true }) - pop(noNotify?: boolean): T { - return; - } + pop(noNotify?: boolean): T { return; } /** * Adds one element to the end of the array and returns the new length of the array. @@ -1548,6 +1468,7 @@ export class BaseArrayClass extends BaseClass { * https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.0.0/class/Circle/README.md */ export class Circle extends BaseClass { + private _map: GoogleMap; constructor(_map: GoogleMap, _objectInstance: any) { @@ -1561,17 +1482,13 @@ export class Circle extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getId(): string { - return; - } + getId(): string { return; } /** * Return the map instance. * @return {GoogleMap} */ - getMap(): GoogleMap { - return this._map; - } + getMap(): GoogleMap { return this._map; } /** * Change the center position. @@ -1585,18 +1502,14 @@ export class Circle extends BaseClass { * @return {ILatLng} */ @CordovaInstance({ sync: true }) - getCenter(): ILatLng { - return; - } + getCenter(): ILatLng { return; } /** * Return the current circle radius. * @return {number} */ @CordovaInstance({ sync: true }) - getRadius(): number { - return; - } + getRadius(): number { return; } /** * Change the circle radius. @@ -1617,9 +1530,7 @@ export class Circle extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getFillColor(): string { - return; - } + getFillColor(): string { return; } /** * Change the stroke width. @@ -1633,9 +1544,7 @@ export class Circle extends BaseClass { * @return {number} */ @CordovaInstance({ sync: true }) - getStrokeWidth(): number { - return; - } + getStrokeWidth(): number { return; } /** * Change the stroke color (outter color). @@ -1649,9 +1558,7 @@ export class Circle extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getStrokeColor(): string { - return; - } + getStrokeColor(): string { return; } /** * Change clickablity of the circle. @@ -1665,9 +1572,7 @@ export class Circle extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - getClickable(): boolean { - return; - } + getClickable(): boolean { return; } /** * Change the circle zIndex order. @@ -1681,9 +1586,7 @@ export class Circle extends BaseClass { * @return {number} */ @CordovaInstance({ sync: true }) - getZIndex(): number { - return; - } + getZIndex(): number { return; } /** * Remove the circle. @@ -1696,9 +1599,7 @@ export class Circle extends BaseClass { * @return {LatLngBounds} */ @CordovaInstance({ sync: true }) - getBounds(): LatLngBounds { - return; - } + getBounds(): LatLngBounds { return; } /** * Set circle visibility @@ -1712,9 +1613,7 @@ export class Circle extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - getVisible(): boolean { - return; - } + getVisible(): boolean { return; } } /** @@ -1727,15 +1626,14 @@ export class Circle extends BaseClass { repo: '' }) export class Environment { + /** * Get the open source software license information for Google Maps SDK for iOS. * @return {Promise} */ static getLicenseInfo(): Promise { - return new Promise(resolve => { - GoogleMaps.getPlugin().environment.getLicenseInfo((text: string) => - resolve(text) - ); + return new Promise((resolve) => { + GoogleMaps.getPlugin().environment.getLicenseInfo((text: string) => resolve(text)); }); } @@ -1744,10 +1642,7 @@ export class Environment { * @hidden */ getLicenseInfo(): Promise { - console.error( - 'GoogleMaps', - '[deprecated] This method is static. Please use Environment.getLicenseInfo()' - ); + console.error('GoogleMaps', '[deprecated] This method is static. Please use Environment.getLicenseInfo()'); return Environment.getLicenseInfo(); } @@ -1764,10 +1659,7 @@ export class Environment { * @hidden */ setBackgroundColor(color: string): void { - console.error( - 'GoogleMaps', - '[deprecated] This method is static. Please use Environment.setBackgroundColor()' - ); + console.error('GoogleMaps', '[deprecated] This method is static. Please use Environment.setBackgroundColor()'); Environment.setBackgroundColor(color); } } @@ -1782,17 +1674,13 @@ export class Environment { repo: '' }) export class Geocoder { + /** * @deprecation * @hidden */ - geocode( - request: GeocoderRequest - ): Promise> { - console.error( - 'GoogleMaps', - '[deprecated] This method is static. Please use Geocoder.geocode()' - ); + geocode(request: GeocoderRequest): Promise> { + console.error('GoogleMaps', '[deprecated] This method is static. Please use Geocoder.geocode()'); return Geocoder.geocode(request); } @@ -1801,15 +1689,10 @@ export class Geocoder { * @param {GeocoderRequest} request Request object with either an address or a position * @return {Promise>} */ - static geocode( - request: GeocoderRequest - ): Promise> { - if ( - request.address instanceof Array || - Array.isArray(request.address) || - request.position instanceof Array || - Array.isArray(request.position) - ) { + static geocode(request: GeocoderRequest): Promise> { + + if (request.address instanceof Array || Array.isArray(request.address) || + request.position instanceof Array || Array.isArray(request.position)) { // ------------------------- // Geocoder.geocode({ // address: [ @@ -1834,16 +1717,13 @@ export class Geocoder { // }) // ------------------------- return new Promise((resolve, reject) => { - GoogleMaps.getPlugin().Geocoder.geocode( - request, - (results: GeocoderResult[]) => { - if (results) { - resolve(results); - } else { - reject(); - } + GoogleMaps.getPlugin().Geocoder.geocode(request, (results: GeocoderResult[]) => { + if (results) { + resolve(results); + } else { + reject(); } - ); + }); }); } } @@ -1859,6 +1739,7 @@ export class Geocoder { repo: '' }) export class LocationService { + /** * Get the current device location without map * @return {Promise} @@ -1880,15 +1761,13 @@ export class LocationService { repo: '' }) export class Encoding { + /** * @deprecation * @hidden */ decodePath(encoded: string, precision?: number): Array { - console.error( - 'GoogleMaps', - '[deprecated] This method is static. Please use Encoding.decodePath()' - ); + console.error('GoogleMaps', '[deprecated] This method is static. Please use Encoding.decodePath()'); return Encoding.decodePath(encoded, precision); } @@ -1897,10 +1776,7 @@ export class Encoding { * @hidden */ encodePath(path: Array | BaseArrayClass): string { - console.error( - 'GoogleMaps', - '[deprecated] This method is static. Please use Encoding.encodePath()' - ); + console.error('GoogleMaps', '[deprecated] This method is static. Please use Encoding.encodePath()'); return Encoding.encodePath(path); } @@ -1911,10 +1787,7 @@ export class Encoding { * @return {ILatLng[]} */ static decodePath(encoded: string, precision?: number): Array { - return GoogleMaps.getPlugin().geometry.encoding.decodePath( - encoded, - precision - ); + return GoogleMaps.getPlugin().geometry.encoding.decodePath(encoded, precision); } /** @@ -1937,6 +1810,7 @@ export class Encoding { repo: '' }) export class Poly { + /** * Returns true if the speicified location is in the polygon path * @param location {ILatLng} @@ -1944,10 +1818,7 @@ export class Poly { * @return {boolean} */ static containsLocation(location: ILatLng, path: ILatLng[]): boolean { - return GoogleMaps.getPlugin().geometry.poly.containsLocation( - location, - path - ); + return GoogleMaps.getPlugin().geometry.poly.containsLocation(location, path); } /** @@ -1957,10 +1828,7 @@ export class Poly { * @return {boolean} */ static isLocationOnEdge(location: ILatLng, path: ILatLng[]): boolean { - return GoogleMaps.getPlugin().geometry.poly.isLocationOnEdge( - location, - path - ); + return GoogleMaps.getPlugin().geometry.poly.isLocationOnEdge(location, path); } } @@ -1974,15 +1842,13 @@ export class Poly { repo: '' }) export class Spherical { + /** * @deprecation * @hidden */ computeDistanceBetween(from: ILatLng, to: ILatLng): number { - console.error( - 'GoogleMaps', - '[deprecated] This method is static. Please use Spherical.computeDistanceBetween()' - ); + console.error('GoogleMaps', '[deprecated] This method is static. Please use Spherical.computeDistanceBetween()'); return Spherical.computeDistanceBetween(from, to); } @@ -1991,10 +1857,7 @@ export class Spherical { * @hidden */ computeOffset(from: ILatLng, distance: number, heading: number): LatLng { - console.error( - 'GoogleMaps', - '[deprecated] This method is static. Please use Spherical.computeOffset()' - ); + console.error('GoogleMaps', '[deprecated] This method is static. Please use Spherical.computeOffset()'); return Spherical.computeOffset(from, distance, heading); } @@ -2003,10 +1866,7 @@ export class Spherical { * @hidden */ computeOffsetOrigin(to: ILatLng, distance: number, heading: number): LatLng { - console.error( - 'GoogleMaps', - '[deprecated] This method is static. Please use Spherical.computeOffsetOrigin()' - ); + console.error('GoogleMaps', '[deprecated] This method is static. Please use Spherical.computeOffsetOrigin()'); return Spherical.computeOffsetOrigin(to, distance, heading); } @@ -2015,10 +1875,7 @@ export class Spherical { * @hidden */ computeLength(path: Array | BaseArrayClass): number { - console.error( - 'GoogleMaps', - '[deprecated] This method is static. Please use Spherical.computeLength()' - ); + console.error('GoogleMaps', '[deprecated] This method is static. Please use Spherical.computeLength()'); return Spherical.computeLength(path); } @@ -2027,10 +1884,7 @@ export class Spherical { * @hidden */ computeArea(path: Array | BaseArrayClass): number { - console.error( - 'GoogleMaps', - '[deprecated] This method is static. Please use Spherical.computeArea()' - ); + console.error('GoogleMaps', '[deprecated] This method is static. Please use Spherical.computeArea()'); return Spherical.computeArea(path); } @@ -2039,10 +1893,7 @@ export class Spherical { * @hidden */ computeSignedArea(path: Array | BaseArrayClass): number { - console.error( - 'GoogleMaps', - '[deprecated] This method is static. Please use Spherical.computeSignedArea()' - ); + console.error('GoogleMaps', '[deprecated] This method is static. Please use Spherical.computeSignedArea()'); return Spherical.computeSignedArea(path); } @@ -2051,10 +1902,7 @@ export class Spherical { * @hidden */ computeHeading(from: ILatLng, to: ILatLng): number { - console.error( - 'GoogleMaps', - '[deprecated] This method is static. Please use Spherical.computeHeading()' - ); + console.error('GoogleMaps', '[deprecated] This method is static. Please use Spherical.computeHeading()'); return Spherical.computeHeading(from, to); } @@ -2063,13 +1911,16 @@ export class Spherical { * @hidden */ interpolate(from: ILatLng, to: ILatLng, fraction: number): LatLng { - console.error( - 'GoogleMaps', - '[deprecated] This method is static. Please use Spherical.interpolate()' - ); + console.error('GoogleMaps', '[deprecated] This method is static. Please use Spherical.interpolate()'); return Spherical.interpolate(from, to, fraction); } + + + + + + /** * Returns the distance, in meters, between two LatLngs. * @param locationA {ILatLng} @@ -2077,10 +1928,7 @@ export class Spherical { * @return {number} */ static computeDistanceBetween(from: ILatLng, to: ILatLng): number { - return GoogleMaps.getPlugin().geometry.spherical.computeDistanceBetween( - from, - to - ); + return GoogleMaps.getPlugin().geometry.spherical.computeDistanceBetween(from, to); } /** @@ -2090,16 +1938,8 @@ export class Spherical { * @param heading {number} * @return {LatLng} */ - static computeOffset( - from: ILatLng, - distance: number, - heading: number - ): LatLng { - return GoogleMaps.getPlugin().geometry.spherical.computeOffset( - from, - distance, - heading - ); + static computeOffset(from: ILatLng, distance: number, heading: number): LatLng { + return GoogleMaps.getPlugin().geometry.spherical.computeOffset(from, distance, heading); } /** @@ -2109,16 +1949,8 @@ export class Spherical { * @param heading {number} The heading in degrees clockwise from north. * @return {LatLng} */ - static computeOffsetOrigin( - to: ILatLng, - distance: number, - heading: number - ): LatLng { - return GoogleMaps.getPlugin().geometry.spherical.computeOffsetOrigin( - to, - distance, - heading - ); + static computeOffsetOrigin(to: ILatLng, distance: number, heading: number): LatLng { + return GoogleMaps.getPlugin().geometry.spherical.computeOffsetOrigin(to, distance, heading); } /** @@ -2144,9 +1976,7 @@ export class Spherical { * @param path {Array | BaseArrayClass}. * @return {number} */ - static computeSignedArea( - path: Array | BaseArrayClass - ): number { + static computeSignedArea(path: Array | BaseArrayClass): number { return GoogleMaps.getPlugin().geometry.spherical.computeSignedArea(path); } @@ -2168,11 +1998,7 @@ export class Spherical { * @return {LatLng} */ static interpolate(from: ILatLng, to: ILatLng, fraction: number): LatLng { - return GoogleMaps.getPlugin().geometry.spherical.interpolate( - from, - to, - fraction - ); + return GoogleMaps.getPlugin().geometry.spherical.interpolate(from, to, fraction); } } @@ -2186,30 +2012,17 @@ export class Spherical { export class GoogleMap extends BaseClass { constructor(element: string | HTMLElement, options?: GoogleMapOptions) { super(); - if ( - checkAvailability( - GoogleMaps.getPluginRef(), - null, - GoogleMaps.getPluginName() - ) === true - ) { + if (checkAvailability(GoogleMaps.getPluginRef(), null, GoogleMaps.getPluginName()) === true) { if (element instanceof HTMLElement) { - this._objectInstance = GoogleMaps.getPlugin().Map.getMap( - element, - options - ); + this._objectInstance = GoogleMaps.getPlugin().Map.getMap(element, options); } else if (typeof element === 'string') { - let dummyObj: any = new (GoogleMaps.getPlugin()).BaseClass(); + let dummyObj: any = new (GoogleMaps.getPlugin().BaseClass)(); this._objectInstance = dummyObj; let onListeners: any[] = []; let oneListeners: any[] = []; let _origAddEventListener: any = this._objectInstance.addEventListener; - let _origAddEventListenerOnce: any = this._objectInstance - .addEventListenerOnce; - this._objectInstance.addEventListener = ( - eventName: string, - fn: () => void - ) => { + let _origAddEventListenerOnce: any = this._objectInstance.addEventListenerOnce; + this._objectInstance.addEventListener = (eventName: string, fn: () => void) => { if (eventName === GoogleMapsEvent.MAP_READY) { _origAddEventListener.call(dummyObj, eventName, fn); } else { @@ -2218,10 +2031,7 @@ export class GoogleMap extends BaseClass { }; this._objectInstance.on = this._objectInstance.addEventListener; - this._objectInstance.addEventListenerOnce = ( - eventName: string, - fn: () => void - ) => { + this._objectInstance.addEventListenerOnce = (eventName: string, fn: () => void) => { if (eventName === GoogleMapsEvent.MAP_READY) { _origAddEventListenerOnce.call(dummyObj, eventName, fn); } else { @@ -2229,7 +2039,7 @@ export class GoogleMap extends BaseClass { } }; this._objectInstance.one = this._objectInstance.addEventListenerOnce; - new Promise((resolve, reject) => { + (new Promise((resolve, reject) => { let count: number = 0; let timer: any = setInterval(() => { let target = document.querySelector('.show-page #' + element); @@ -2246,26 +2056,23 @@ export class GoogleMap extends BaseClass { reject(); } }, 100); - }) - .then((target: any) => { - this._objectInstance = GoogleMaps.getPlugin().Map.getMap( - target, - options - ); - this._objectInstance.one(GoogleMapsEvent.MAP_READY, () => { - this.set('_overlays', {}); - onListeners.forEach(args => { - this.on.apply(this, args); - }); - oneListeners.forEach(args => { - this.one.apply(this, args); - }); - dummyObj.trigger(GoogleMapsEvent.MAP_READY); + })) + .then((target: any) => { + this._objectInstance = GoogleMaps.getPlugin().Map.getMap(target, options); + this._objectInstance.one(GoogleMapsEvent.MAP_READY, () => { + this.set('_overlays', {}); + onListeners.forEach((args) => { + this.on.apply(this, args); }); - }) - .catch(() => { - this._objectInstance = null; + oneListeners.forEach((args) => { + this.one.apply(this, args); + }); + dummyObj.trigger(GoogleMapsEvent.MAP_READY); }); + }) + .catch(() => { + this._objectInstance = null; + }); } else if (element === null && options) { this._objectInstance = GoogleMaps.getPlugin().Map.getMap(null, options); } @@ -2279,9 +2086,7 @@ export class GoogleMap extends BaseClass { @InstanceCheck() setDiv(domNode?: HTMLElement | string): void { if (typeof domNode === 'string') { - this._objectInstance.setDiv( - document.querySelector('.show-page #' + domNode) - ); + this._objectInstance.setDiv(document.querySelector('.show-page #' + domNode)); } else { this._objectInstance.setDiv(domNode); } @@ -2292,122 +2097,98 @@ export class GoogleMap extends BaseClass { * @return {HTMLElement} */ @CordovaInstance({ sync: true }) - getDiv(): HTMLElement { - return; - } + getDiv(): HTMLElement { return; } /** * Changes the map type id * @param mapTypeId {string} */ @CordovaInstance({ sync: true }) - setMapTypeId(mapTypeId: MapType): void {} + setMapTypeId(mapTypeId: MapType): void { } /** * Moves the camera with animation * @return {Promise} */ @CordovaInstance() - animateCamera(cameraPosition: CameraPosition): Promise { - return; - } + animateCamera(cameraPosition: CameraPosition): Promise { return; } /** * Zooming in the camera with animation * @return {Promise} */ @CordovaInstance() - animateCameraZoomIn(): Promise { - return; - } + animateCameraZoomIn(): Promise { return; } /** * Zooming out the camera with animation * @return {Promise} */ @CordovaInstance() - animateCameraZoomOut(): Promise { - return; - } + animateCameraZoomOut(): Promise { return; } /** * Moves the camera without animation * @return {Promise} */ @CordovaInstance() - moveCamera(cameraPosition: CameraPosition): Promise { - return; - } + moveCamera(cameraPosition: CameraPosition): Promise { return; } /** * Zooming in the camera without animation * @return {Promise} */ @CordovaInstance() - moveCameraZoomIn(): Promise { - return; - } + moveCameraZoomIn(): Promise { return; } /** * Zooming out the camera without animation * @return {Promise} */ @CordovaInstance() - moveCameraZoomOut(): Promise { - return; - } + moveCameraZoomOut(): Promise { return; } /** * Get the position of the camera. * @return {CameraPosition} */ @CordovaInstance({ sync: true }) - getCameraPosition(): CameraPosition { - return; - } + getCameraPosition(): CameraPosition { return; } /** * Get the current camera target position * @return {Promise} */ @CordovaInstance({ sync: true }) - getCameraTarget(): ILatLng { - return; - } + getCameraTarget(): ILatLng { return; } /** * Get the current camera zoom level * @return {number} */ @CordovaInstance({ sync: true }) - getCameraZoom(): number { - return; - } + getCameraZoom(): number { return; } /** * Get the current camera bearing * @return {number} */ @CordovaInstance({ sync: true }) - getCameraBearing(): number { - return; - } + getCameraBearing(): number { return; } /** * Get the current camera tilt (view angle) * @return {number} */ @CordovaInstance({ sync: true }) - getCameraTilt(): number { - return; - } + getCameraTilt(): number { return; } /** * Set the center position of the camera view * @param latLng {ILatLng | Array} */ @CordovaInstance({ sync: true }) - setCameraTarget(latLng: ILatLng | Array): void {} + setCameraTarget(latLng: ILatLng | Array): void { } /** * Set zoom level of the camera @@ -2436,25 +2217,21 @@ export class GoogleMap extends BaseClass { * @param y {any} */ @CordovaInstance({ sync: true }) - panBy(x: string | number, y: string | number): void {} + panBy(x: string | number, y: string | number): void { } /** * Get the current visible region (southWest and northEast) * @return {VisibleRegion} */ @CordovaInstance({ sync: true }) - getVisibleRegion(): VisibleRegion { - return; - } + getVisibleRegion(): VisibleRegion { return; } /** * Get the current device location * @return {Promise} */ @CordovaInstance() - getMyLocation(options?: MyLocationOptions): Promise { - return; - } + getMyLocation(options?: MyLocationOptions): Promise { return; } /** * Set false to ignore all clicks on the map @@ -2475,7 +2252,7 @@ export class GoogleMap extends BaseClass { delete this.get('_overlays')[overlayId]; }); } - return new Promise(resolve => { + return new Promise((resolve) => { this._objectInstance.remove(() => resolve()); }); } @@ -2492,7 +2269,7 @@ export class GoogleMap extends BaseClass { delete this.get('_overlays')[overlayId]; }); } - return new Promise(resolve => { + return new Promise((resolve) => { this._objectInstance.clear(() => resolve()); }); } @@ -2502,18 +2279,14 @@ export class GoogleMap extends BaseClass { * @return {Promise} */ @CordovaInstance() - fromLatLngToPoint(latLng: ILatLng): Promise { - return; - } + fromLatLngToPoint(latLng: ILatLng): Promise { return; } /** * Convert the unit from the pixels from the left/top to the LatLng * @return {Promise} */ @CordovaInstance() - fromPointToLatLng(point: any): Promise { - return; - } + fromPointToLatLng(point: any): Promise { return; } /** * Set true if you want to show the MyLocation control (blue dot) @@ -2534,9 +2307,7 @@ export class GoogleMap extends BaseClass { * @return {Promise} */ @CordovaInstance() - getFocusedBuilding(): Promise { - return; - } + getFocusedBuilding(): Promise { return; } /** * Set true if you want to show the indoor map @@ -2581,12 +2352,7 @@ export class GoogleMap extends BaseClass { * @param bottom {number} */ @CordovaInstance({ sync: true }) - setPadding( - top?: number, - right?: number, - bottom?: number, - left?: number - ): void {} + setPadding(top?: number, right?: number, bottom?: number, left?: number): void { } /** * Set options @@ -2628,9 +2394,7 @@ export class GoogleMap extends BaseClass { * @return {Promise} */ @InstanceCheck() - addMarkerCluster( - options: MarkerClusterOptions - ): Promise { + addMarkerCluster(options: MarkerClusterOptions): Promise { return new Promise((resolve, reject) => { this._objectInstance.addMarkerCluster(options, (markerCluster: any) => { if (markerCluster) { @@ -2766,9 +2530,7 @@ export class GoogleMap extends BaseClass { * @return {Promise} */ @InstanceCheck() - addGroundOverlay( - options: GroundOverlayOptions - ): Promise { + addGroundOverlay(options: GroundOverlayOptions): Promise { return new Promise((resolve, reject) => { this._objectInstance.addGroundOverlay(options, (groundOverlay: any) => { if (groundOverlay) { @@ -2822,15 +2584,15 @@ export class GoogleMap extends BaseClass { * @return {Promise} */ @CordovaInstance() - toDataURL(params?: ToDataUrlOptions): Promise { - return; - } + toDataURL(params?: ToDataUrlOptions): Promise { return; } + } /** * @hidden */ export class GroundOverlay extends BaseClass { + private _map: GoogleMap; constructor(_map: GoogleMap, _objectInstance: any) { @@ -2844,17 +2606,13 @@ export class GroundOverlay extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getId(): string { - return; - } + getId(): string { return; } /** * Return the map instance. * @return {GoogleMap} */ - getMap(): GoogleMap { - return this._map; - } + getMap(): GoogleMap { return this._map; } /** * Change the bounds of the GroundOverlay @@ -2868,38 +2626,34 @@ export class GroundOverlay extends BaseClass { * @param bearing {number} */ @CordovaInstance({ sync: true }) - setBearing(bearing: number): void {} + setBearing(bearing: number): void { } /** * Return the current bearing value */ @CordovaInstance({ sync: true }) - getBearing(): number { - return; - } + getBearing(): number { return; } /** * Change the image of the ground overlay * @param image {string} URL of image */ @CordovaInstance({ sync: true }) - setImage(image: string): void {} + setImage(image: string): void {}; /** * Change the opacity of the ground overlay from 0.0 to 1.0 * @param opacity {number} */ @CordovaInstance({ sync: true }) - setOpacity(opacity: number): void {} + setOpacity(opacity: number): void { } /** * Return the current opacity * @return {number} */ @CordovaInstance({ sync: true }) - getOpacity(): number { - return; - } + getOpacity(): number { return; } /** * Change clickablity of the ground overlay @@ -2913,25 +2667,21 @@ export class GroundOverlay extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - getClickable(): boolean { - return; - } + getClickable(): boolean { return; } /** * Change visibility of the ground overlay * @param visible {boolean} */ @CordovaInstance({ sync: true }) - setVisible(visible: boolean): void {} + setVisible(visible: boolean): void { } /** * Return true if the ground overlay is visible * @return {boolean} */ @CordovaInstance({ sync: true }) - getVisible(): boolean { - return; - } + getVisible(): boolean { return; } /** * Change the ground overlay zIndex order @@ -2945,9 +2695,7 @@ export class GroundOverlay extends BaseClass { * @return {number} */ @CordovaInstance({ sync: true }) - getZIndex(): number { - return; - } + getZIndex(): number { return; } /** * Remove the ground overlay @@ -2970,9 +2718,10 @@ export class GroundOverlay extends BaseClass { repo: '' }) export class HtmlInfoWindow extends BaseClass { + constructor() { super(); - this._objectInstance = new (GoogleMaps.getPlugin()).HtmlInfoWindow(); + this._objectInstance = new (GoogleMaps.getPlugin().HtmlInfoWindow)(); } /** @@ -3002,12 +2751,14 @@ export class HtmlInfoWindow extends BaseClass { */ @CordovaInstance() close(): void {} + } /** * @hidden */ export class Marker extends BaseClass { + private _map: GoogleMap; constructor(_map: GoogleMap, _objectInstance: any) { @@ -3021,35 +2772,27 @@ export class Marker extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getId(): string { - return; - } + getId(): string { return; } /** * Return the map instance. * @return {GoogleMap} */ - getMap(): GoogleMap { - return this._map; - } + getMap(): GoogleMap { return this._map; } /** * Set the marker position. * @param latLng {ILatLng} */ @CordovaInstance({ sync: true }) - setPosition(latLng: ILatLng): void { - return; - } + setPosition(latLng: ILatLng): void { return; } /** * Return the marker position. * @return {ILatLng} */ @CordovaInstance({ sync: true }) - getPosition(): ILatLng { - return; - } + getPosition(): ILatLng { return; } /** * Show the normal infoWindow of the marker. @@ -3088,9 +2831,7 @@ export class Marker extends BaseClass { * Return true if the marker is visible */ @CordovaInstance({ sync: true }) - isVisible(): boolean { - return; - } + isVisible(): boolean { return; } /** * Change title of the normal infoWindow. @@ -3104,9 +2845,7 @@ export class Marker extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getTitle(): string { - return; - } + getTitle(): string { return; } /** * Change snippet of the normal infoWindow. @@ -3120,9 +2859,7 @@ export class Marker extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getSnippet(): string { - return; - } + getSnippet(): string { return; } /** * Change the marker opacity from 0.0 to 1.0. @@ -3136,9 +2873,7 @@ export class Marker extends BaseClass { * @return {number} Opacity */ @CordovaInstance({ sync: true }) - getOpacity(): number { - return; - } + getOpacity(): number { return; } /** * Remove the marker. @@ -3171,18 +2906,14 @@ export class Marker extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - isInfoWindowShown(): boolean { - return; - } + isInfoWindowShown(): boolean { return; } /** * Return the marker hash code. * @return {string} Marker hash code */ @CordovaInstance({ sync: true }) - getHashCode(): string { - return; - } + getHashCode(): string { return; } /** * Higher zIndex value overlays will be drawn on top of lower zIndex value tile layers and overlays. @@ -3196,65 +2927,57 @@ export class Marker extends BaseClass { * @return {number} */ @CordovaInstance({ sync: true }) - getZIndex(): number { - return; - } + getZIndex(): number { return; } /** * Set true if you allow all users to drag the marker. * @param draggable {boolean} */ @CordovaInstance({ sync: true }) - setDraggable(draggable: boolean): void {} + setDraggable(draggable: boolean): void { } /** * Return true if the marker drag is enabled. * @return {boolean} */ @CordovaInstance({ sync: true }) - isDraggable(): boolean { - return; - } + isDraggable(): boolean { return; } /** * Set true if you want to be flat marker. * @param flat {boolean} */ @CordovaInstance({ sync: true }) - setFlat(flat: boolean): void { - return; - } + setFlat(flat: boolean): void { return; } /** * Change icon url and/or size * @param icon */ @CordovaInstance({ sync: true }) - setIcon(icon: MarkerIcon): void { - return; - } + setIcon(icon: MarkerIcon): void { return; } /** * Set the marker rotation angle. * @param rotation {number} */ @CordovaInstance({ sync: true }) - setRotation(rotation: number): void {} + setRotation(rotation: number): void { } /** * Return the marker rotation angle. * @return {number} */ @CordovaInstance({ sync: true }) - getRotation(): number { - return; - } + getRotation(): number { return; } + } /** * @hidden */ export class MarkerCluster extends BaseClass { + private _map: GoogleMap; constructor(_map: GoogleMap, _objectInstance: any) { @@ -3268,9 +2991,7 @@ export class MarkerCluster extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getId(): string { - return; - } + getId(): string { return; } /** * Add one marker location @@ -3302,15 +3023,15 @@ export class MarkerCluster extends BaseClass { * Return the map instance. * @return {GoogleMap} */ - getMap(): GoogleMap { - return this._map; - } + getMap(): GoogleMap { return this._map; } + } /** * @hidden */ export class Polygon extends BaseClass { + private _map: GoogleMap; constructor(_map: GoogleMap, _objectInstance: any) { @@ -3324,17 +3045,13 @@ export class Polygon extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getId(): string { - return; - } + getId(): string { return; } /** * Return the map instance. * @return {GoogleMap} */ - getMap(): GoogleMap { - return this._map; - } + getMap(): GoogleMap { return this._map; } /** * Change the polygon points. @@ -3373,7 +3090,7 @@ export class Polygon extends BaseClass { results.push(hole); }); return results; - } + } /** * Change the filling color (inner color) @@ -3387,9 +3104,7 @@ export class Polygon extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getFillColor(): string { - return; - } + getFillColor(): string { return; } /** * Change the stroke color (outer color) @@ -3403,9 +3118,7 @@ export class Polygon extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getStrokeColor(): string { - return; - } + getStrokeColor(): string { return; } /** * Change clickablity of the polygon @@ -3418,9 +3131,7 @@ export class Polygon extends BaseClass { * Return true if the polygon is clickable */ @CordovaInstance({ sync: true }) - getClickable(): boolean { - return; - } + getClickable(): boolean { return; } /** * Change visibility of the polygon @@ -3434,9 +3145,7 @@ export class Polygon extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - getVisible(): boolean { - return; - } + getVisible(): boolean { return; } /** * Change the polygon zIndex order. @@ -3450,9 +3159,7 @@ export class Polygon extends BaseClass { * @return {number} */ @CordovaInstance({ sync: true }) - getZIndex(): number { - return; - } + getZIndex(): number { return; } /** * Remove the polygon. @@ -3474,9 +3181,7 @@ export class Polygon extends BaseClass { * Return the polygon stroke width */ @CordovaInstance({ sync: true }) - getStrokeWidth(): number { - return; - } + getStrokeWidth(): number { return; } /** * When true, edges of the polygon are interpreted as geodesic and will follow the curvature of the Earth. @@ -3490,15 +3195,15 @@ export class Polygon extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - getGeodesic(): boolean { - return; - } + getGeodesic(): boolean { return; } + } /** * @hidden */ export class Polyline extends BaseClass { + private _map: GoogleMap; constructor(_map: GoogleMap, _objectInstance: any) { @@ -3512,17 +3217,13 @@ export class Polyline extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getId(): string { - return; - } + getId(): string { return; } /** * Return the map instance. * @return {GoogleMap} */ - getMap(): GoogleMap { - return this._map; - } + getMap(): GoogleMap { return this._map; } /** * Change the polyline points. @@ -3552,9 +3253,7 @@ export class Polyline extends BaseClass { * Return true if the polyline is geodesic */ @CordovaInstance({ sync: true }) - getGeodesic(): boolean { - return; - } + getGeodesic(): boolean { return; } /** * Change visibility of the polyline @@ -3568,9 +3267,7 @@ export class Polyline extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - getVisible(): boolean { - return; - } + getVisible(): boolean { return; } /** * Change clickablity of the polyline @@ -3584,9 +3281,7 @@ export class Polyline extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - getClickable(): boolean { - return; - } + getClickable(): boolean { return; } /** * Change the polyline color @@ -3600,9 +3295,7 @@ export class Polyline extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getStrokeColor(): string { - return; - } + getStrokeColor(): string { return; } /** * Change the polyline stroke width @@ -3616,9 +3309,7 @@ export class Polyline extends BaseClass { * @return {number} */ @CordovaInstance({ sync: true }) - getStrokeWidth(): number { - return; - } + getStrokeWidth(): number { return; } /** * Change the polyline zIndex order. @@ -3632,9 +3323,7 @@ export class Polyline extends BaseClass { * @return {number} */ @CordovaInstance({ sync: true }) - getZIndex(): number { - return; - } + getZIndex(): number { return; } /** * Remove the polyline @@ -3651,6 +3340,7 @@ export class Polyline extends BaseClass { * @hidden */ export class TileOverlay extends BaseClass { + private _map: GoogleMap; constructor(_map: GoogleMap, _objectInstance: any) { @@ -3664,17 +3354,13 @@ export class TileOverlay extends BaseClass { * @return {string} */ @CordovaInstance({ sync: true }) - getId(): string { - return; - } + getId(): string { return; } /** * Return the map instance. * @return {GoogleMap} */ - getMap(): GoogleMap { - return this._map; - } + getMap(): GoogleMap { return this._map; } /** * Set whether the tiles should fade in. @@ -3688,9 +3374,7 @@ export class TileOverlay extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - getFadeIn(): boolean { - return; - } + getFadeIn(): boolean { return; } /** * Set the zIndex of the tile overlay @@ -3704,9 +3388,7 @@ export class TileOverlay extends BaseClass { * @return {number} */ @CordovaInstance({ sync: true }) - getZIndex(): number { - return; - } + getZIndex(): number { return; } /** * Set the opacity of the tile overlay @@ -3720,9 +3402,7 @@ export class TileOverlay extends BaseClass { * @return {number} */ @CordovaInstance({ sync: true }) - getOpacity(): number { - return; - } + getOpacity(): number { return; } /** * Set false if you want to hide @@ -3736,17 +3416,13 @@ export class TileOverlay extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - getVisible(): boolean { - return; - } + getVisible(): boolean { return; } /** * Get tile size */ @CordovaInstance({ sync: true }) - getTileSize(): any { - return; - } + getTileSize(): any { return; } /** * Remove the tile overlay @@ -3763,6 +3439,7 @@ export class TileOverlay extends BaseClass { * @hidden */ export class KmlOverlay extends BaseClass { + private _map: GoogleMap; constructor(_map: GoogleMap, _objectInstance: any) { @@ -3771,12 +3448,12 @@ export class KmlOverlay extends BaseClass { this._objectInstance = _objectInstance; Object.defineProperty(self, 'camera', { - value: this._objectInstance.camera, - writable: false + value: this._objectInstance.camera, + writable: false }); Object.defineProperty(self, 'kmlData', { - value: this._objectInstance.kmlData, - writable: false + value: this._objectInstance.kmlData, + writable: false }); } @@ -3784,26 +3461,20 @@ export class KmlOverlay extends BaseClass { * Returns the viewport to contains all overlays */ @CordovaInstance({ sync: true }) - getDefaultViewport(): CameraPosition { - return; - } + getDefaultViewport(): CameraPosition { return; } /** * Return the ID of instance. * @return {string} */ @CordovaInstance({ sync: true }) - getId(): string { - return; - } + getId(): string { return; } /** * Return the map instance. * @return {GoogleMap} */ - getMap(): GoogleMap { - return this._map; - } + getMap(): GoogleMap { return this._map; } /** * Change visibility of the polyline @@ -3817,9 +3488,7 @@ export class KmlOverlay extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - getVisible(): boolean { - return; - } + getVisible(): boolean { return; } /** * Change clickablity of the KmlOverlay @@ -3833,9 +3502,7 @@ export class KmlOverlay extends BaseClass { * @return {boolean} */ @CordovaInstance({ sync: true }) - getClickable(): boolean { - return; - } + getClickable(): boolean { return; } /** * Remove the KmlOverlay From 560d708002795719a366a3b5be26c48174057e40 Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Mon, 19 Mar 2018 13:37:30 -0500 Subject: [PATCH 109/110] 4.6.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index dfead97ca..d4cc528f7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ionic-native", - "version": "4.5.2", + "version": "4.6.0", "description": "Native plugin wrappers for Cordova and Ionic with TypeScript, ES6+, Promise and Observable support", "homepage": "https://ionicframework.com/", "author": "Ionic Team (https://ionic.io)", From 0b1e8f9b9d8b9bc74e762be8e06f34067ead4b3e Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 19 Mar 2018 19:42:12 +0100 Subject: [PATCH 110/110] chore(): update changelog --- CHANGELOG.md | 45 +++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 43 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 56c0c47fc..99cddb639 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,51 @@ - -## [4.5.2](https://github.com/ionic-team/ionic-native/compare/v5.0.0-beta.3...v4.5.2) (2018-01-25) + +# [4.6.0](https://github.com/ionic-team/ionic-native/compare/v5.0.0-beta.3...v4.6.0) (2018-03-19) ### Bug Fixes +* **badge:** add correct requestPermission function ([586c7e5](https://github.com/ionic-team/ionic-native/commit/586c7e5)) +* **call-log:** comments erratum ([4b9cf17](https://github.com/ionic-team/ionic-native/commit/4b9cf17)) +* **call-log:** update getCallLog signature ([61c0ecf](https://github.com/ionic-team/ionic-native/commit/61c0ecf)) +* **contacts:** refactor wrong ContactFieldTypes ([f607a03](https://github.com/ionic-team/ionic-native/commit/f607a03)) +* **facebook:** remove browserInit function ([f718432](https://github.com/ionic-team/ionic-native/commit/f718432)) +* **firebase-analytics:** add `sync` option for all methods ([42fd1f2](https://github.com/ionic-team/ionic-native/commit/42fd1f2)) +* **google-maps:** wrong decorators ([e5b9d53](https://github.com/ionic-team/ionic-native/commit/e5b9d53)) +* **health-kit:** add missing properties to HealthKitOptions ([f8e79ce](https://github.com/ionic-team/ionic-native/commit/f8e79ce)) +* **index-app-content:** remove onItemPressed function ([270678f](https://github.com/ionic-team/ionic-native/commit/270678f)) +* **printer:** add correct npm repository ([4bf55d3](https://github.com/ionic-team/ionic-native/commit/4bf55d3)) * **pro:** proper callback type and guard for plugin instantiate. [#2136](https://github.com/ionic-team/ionic-native/issues/2136) [#2127](https://github.com/ionic-team/ionic-native/issues/2127) ([61293c3](https://github.com/ionic-team/ionic-native/commit/61293c3)) +* **pro:** Tweak to pro plugin. [#2136](https://github.com/ionic-team/ionic-native/issues/2136) [#2127](https://github.com/ionic-team/ionic-native/issues/2127) ([c8ecee0](https://github.com/ionic-team/ionic-native/commit/c8ecee0)) +* **Pro:** CordovaCheck should sync. [#2136](https://github.com/ionic-team/ionic-native/issues/2136) [#2127](https://github.com/ionic-team/ionic-native/issues/2127) ([f419db5](https://github.com/ionic-team/ionic-native/commit/f419db5)) +* **push:** Android senderID as optional ([1b237aa](https://github.com/ionic-team/ionic-native/commit/1b237aa)) +* **Radmob-pro:** add offsetTopBar option ([4948640](https://github.com/ionic-team/ionic-native/commit/4948640)) +* **sqlite:** remove trailing whitespaces ([7547a94](https://github.com/ionic-team/ionic-native/commit/7547a94)) +* **web-intent:** allow extras ([8dc5ad2](https://github.com/ionic-team/ionic-native/commit/8dc5ad2)) + + +### Features + +* **app-rate:** add custom locale interface ([2a18dbc](https://github.com/ionic-team/ionic-native/commit/2a18dbc)) +* **app-update:** add app update options ([0f325ed](https://github.com/ionic-team/ionic-native/commit/0f325ed)) +* **appodeal:** add new functions ([247a1a1](https://github.com/ionic-team/ionic-native/commit/247a1a1)) +* **base64-to-gallery:** add options interface ([11d516f](https://github.com/ionic-team/ionic-native/commit/11d516f)) +* **ble:** add scan options interface ([e345fed](https://github.com/ionic-team/ionic-native/commit/e345fed)) +* **calendar:** add getCreateCalendarOptions function ([13765d2](https://github.com/ionic-team/ionic-native/commit/13765d2)) +* **call-log:** add plugin ([76a644d](https://github.com/ionic-team/ionic-native/commit/76a644d)) +* **camera-preview:** add onBackButton function ([a345e2c](https://github.com/ionic-team/ionic-native/commit/a345e2c)) +* **device-accounts:** add android account interface ([d2261b6](https://github.com/ionic-team/ionic-native/commit/d2261b6)) +* **device-feedback:** add feedback interface ([7cafebd](https://github.com/ionic-team/ionic-native/commit/7cafebd)) +* **google-analytics:** add missing functions ([ff0008e](https://github.com/ionic-team/ionic-native/commit/ff0008e)) +* **google-maps:** update to match latest plugin version ([#2320](https://github.com/ionic-team/ionic-native/issues/2320)) ([f11be24](https://github.com/ionic-team/ionic-native/commit/f11be24)) +* **hot code push:** add cordova-hot-code-push ([e7968da](https://github.com/ionic-team/ionic-native/commit/e7968da)) +* **hot code push:** add update events ([04bdade](https://github.com/ionic-team/ionic-native/commit/04bdade)) +* **jins-meme:** enable background mode data collection ([1932f2d](https://github.com/ionic-team/ionic-native/commit/1932f2d)) +* **local-notifications:** added a new param to specify if the notification will be silent ([6e58192](https://github.com/ionic-team/ionic-native/commit/6e58192)) +* **one-signal:** add clearOneSignalNotifications function ([fc0338a](https://github.com/ionic-team/ionic-native/commit/fc0338a)) +* **plugin:** add iOS File Picker ([571df3a](https://github.com/ionic-team/ionic-native/commit/571df3a)) +* **speechkit:** plugin implementation ([41e5a0f](https://github.com/ionic-team/ionic-native/commit/41e5a0f)) +* **sqlite:** add selfTest function ([241f073](https://github.com/ionic-team/ionic-native/commit/241f073)) +* **web-intent:** add startService function ([15bb350](https://github.com/ionic-team/ionic-native/commit/15bb350))