chore(package): bump deps

This commit is contained in:
Daniel Sogl
2021-05-11 08:21:55 +02:00
parent b2da307837
commit 8d8608bbfa
28 changed files with 488 additions and 488 deletions
+38 -26
View File
@@ -160,7 +160,9 @@ export class AdjustConfig {
this.eventTrackingFailedCallback = eventTrackingFailedCallback;
}
setSessionTrackingSucceededCallbackListener(sessionTrackingSucceededCallback: (session: AdjustSessionSuccess) => void) {
setSessionTrackingSucceededCallbackListener(
sessionTrackingSucceededCallback: (session: AdjustSessionSuccess) => void
) {
this.sessionTrackingSucceededCallback = sessionTrackingSucceededCallback;
}
@@ -268,14 +270,7 @@ export class AdjustPlayStoreSubscription {
private callbackParameters: string[] = [];
private partnerParameters: string[] = [];
constructor(
price: string,
currency: string,
sku: string,
orderId: string,
signature: string,
purchaseToken: string
) {
constructor(price: string, currency: string, sku: string, orderId: string, signature: string, purchaseToken: string) {
this.price = price;
this.currency = currency;
this.sku = sku;
@@ -364,7 +359,7 @@ export interface AdjustEventFailure {
export enum AdjustEnvironment {
Sandbox = 'sandbox',
Production = 'production'
Production = 'production',
}
export enum AdjustLogLevel {
@@ -374,12 +369,12 @@ export enum AdjustLogLevel {
Warn = 'WARN',
Error = 'ERROR',
Assert = 'ASSERT',
Suppress = 'SUPPRESS'
Suppress = 'SUPPRESS',
}
export enum AdjustUrlStrategy {
India = 'India',
China = 'China'
China = 'China',
}
export enum AdjustAdRevenueSource {
@@ -401,7 +396,7 @@ export enum AdjustAdRevenueSource {
AdRevenueSourceUpsight = 'upsight',
AdRevenueSourceUnityAds = 'unityads',
AdRevenueSourceAdtoapp = 'adtoapp',
AdRevenueSourceTapdaq = 'tapdaq'
AdRevenueSourceTapdaq = 'tapdaq',
}
/**
@@ -448,11 +443,10 @@ export enum AdjustAdRevenueSource {
plugin: 'com.adjust.sdk',
pluginRef: 'Adjust',
repo: 'https://github.com/adjust/cordova_sdk',
platforms: ['Android', 'iOS']
platforms: ['Android', 'iOS'],
})
@Injectable()
export class Adjust extends IonicNativePlugin {
/**
* This method initializes Adjust SDK
* @param {AdjustConig} config Adjust config object used as starting options
@@ -537,7 +531,9 @@ export class Adjust extends IonicNativePlugin {
* @returns {Promise<boolean>}
*/
@Cordova()
isEnabled(): Promise<boolean> { return; }
isEnabled(): Promise<boolean> {
return;
}
/**
* In accordance with article 17 of the EU's General Data Protection Regulation (GDPR), you can notify Adjust when a user has exercised their right to be forgotten.
@@ -547,7 +543,7 @@ export class Adjust extends IonicNativePlugin {
gdprForgetMe(): void {}
/**
* You can now notify Adjust when a user has exercised their right to stop sharing their data with partners for marketing purposes, but has allowed it to be shared for statistics purposes.
* You can now notify Adjust when a user has exercised their right to stop sharing their data with partners for marketing purposes, but has allowed it to be shared for statistics purposes.
* Calling the following method will instruct the Adjust SDK to communicate the user's choice to disable data sharing to the Adjust backend
*/
@Cordova({ sync: true })
@@ -558,21 +554,27 @@ export class Adjust extends IonicNativePlugin {
* @return {Promise<string>} Returns a promise with google AdId value
*/
@Cordova()
getGoogleAdId(): Promise<string> { return; }
getGoogleAdId(): Promise<string> {
return;
}
/**
* If you need to obtain the Amazon Advertising ID, you can make a call to this function.
* @return {Promise<string>} Returns a promise with anazib adv. ID
*/
@Cordova()
getAmazonAdId(): Promise<string> { return; }
getAmazonAdId(): Promise<string> {
return;
}
/**
* To obtain the IDFA, call this function
* @return {Promise<string>} Returns a promise with IDFA string value
*/
@Cordova()
getIdfa(): Promise<string> { return; }
getIdfa(): Promise<string> {
return;
}
/**
* For every device with your app installed on it, the Adjust backend generates a unique Adjust device identifier (adid).
@@ -580,21 +582,27 @@ export class Adjust extends IonicNativePlugin {
* @return {Promise<string>} Returns a promise with adid value
*/
@Cordova()
getAdid(): Promise<string> { return; }
getAdid(): Promise<string> {
return;
}
/**
* If you want to access information about a user's current attribution whenever you need it, you can make a call to this function
* @return {Promise<AdjustAttribution>} Returns a promise with AdjustAttribution object
*/
@Cordova()
getAttribution(): Promise<AdjustAttribution> { return; }
getAttribution(): Promise<AdjustAttribution> {
return;
}
/**
* Get the information about version of the SDK used
* @return {Promise<string>} Returns a promise with sdk version information
*/
@Cordova()
getSdkVersion(): Promise<string> { return; }
getSdkVersion(): Promise<string> {
return;
}
/**
* Method used to add session callback parameters
@@ -650,7 +658,9 @@ export class Adjust extends IonicNativePlugin {
* @return {Promise<number>} Returns a promise with user's consent value
*/
@Cordova()
requestTrackingAuthorizationWithCompletionHandler(): Promise<number> { return; }
requestTrackingAuthorizationWithCompletionHandler(): Promise<number> {
return;
}
/**
* You can update SKAdNetwork conversion value with calling this method
@@ -664,5 +674,7 @@ export class Adjust extends IonicNativePlugin {
* @return {Promise<number>} Returns a promise with app tracking authorization status
*/
@Cordova()
getAppTrackingAuthorizationStatus(): Promise<number> { return; }
}
getAppTrackingAuthorizationStatus(): Promise<number> {
return;
}
}
@@ -1,5 +1,12 @@
import { Injectable } from '@angular/core';
import { Plugin, Cordova, CordovaProperty, CordovaInstance, InstanceProperty, IonicNativePlugin } from '@ionic-native/core';
import {
Plugin,
Cordova,
CordovaProperty,
CordovaInstance,
InstanceProperty,
IonicNativePlugin,
} from '@ionic-native/core';
import { Observable } from 'rxjs';
/**
@@ -39,10 +46,9 @@ import { Observable } from 'rxjs';
plugin: 'cordova-paytm-allinonesdk',
pluginRef: 'AllInOneSDK',
repo: 'https://github.com/paytm/paytm-allinonesdk-ionic-cordova.git',
platforms: ['Android','iOS']
platforms: ['Android', 'iOS'],
})
export class AllInOneSDK extends IonicNativePlugin {
/**
* This function checks if Paytm Application is available on the device.
* If Paytm exists then it invokes Paytm Application with the parameters sent and creates an order.
@@ -51,29 +57,28 @@ export class AllInOneSDK extends IonicNativePlugin {
* @return {Promise<PaytmResponse>} Returns a promise that resolves when a transaction completes(both failed and successful).
*/
@Cordova()
startTransaction(options : PaymentIntentModel): Promise<PaytmResponse> {
startTransaction(options: PaymentIntentModel): Promise<PaytmResponse> {
return;
}
}
/**
* The response that will be recieved when any transaction is completed
*/
export interface PaytmResponse{
message : string;
response : string; // A stringified response of a hashmap returned from All-in-One SDK
export interface PaytmResponse {
message: string;
response: string; // A stringified response of a hashmap returned from All-in-One SDK
}
/**
* For below parameters see [documentation](https://developer.paytm.com/docs/all-in-one-sdk/hybrid-apps/cordova/)
*/
export interface PaymentIntentModel{
mid : string; // Merchant ID
orderId : string; // Order ID
txnToken : string; // Transaction Token
amount : string; // Amount
isStaging: boolean; // Environment
callbackUrl: string; // Callback URL
restrictAppInvoke: boolean; // To enable or disable the paytm app invocation
export interface PaymentIntentModel {
mid: string; // Merchant ID
orderId: string; // Order ID
txnToken: string; // Transaction Token
amount: string; // Amount
isStaging: boolean; // Environment
callbackUrl: string; // Callback URL
restrictAppInvoke: boolean; // To enable or disable the paytm app invocation
}
@@ -6,16 +6,16 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
* @description
* Generates a low memory warning.
* For more info, please see: https://github.com/Microsoft/appcenter-sdk-cordova/tree/master/cordova-plugin-appcenter-generate-low-memory
*
*
* @usage
* ```typescript
* import { LowMemory } from '@ionic-native/app-center-low-memory/ngx';
*
*
* ...
*
* constructor(private lowMemory: LowMemory) { }
*
* async warning() {
* async warning() {
* await this.lowMemory.generateLowMemory();
* }
* ```
@@ -38,4 +38,4 @@ export class LowMemory extends IonicNativePlugin {
generateLowMemory(): Promise<void> {
return;
}
}
}
@@ -12,16 +12,16 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
* @usage
* ```typescript
* import { AppCenter } from '@ionic-native/app-center-shared/ngx';
*
*
* ...
*
* constructor(private appCenterShared: AppCenter) { }
*
* async getInstallId() {
* async getInstallId() {
* const id = await this.appCenter.getInstallId();
* }
*
* async setUserId() {
*
* async setUserId() {
* try{
* await this.appCenter.setUserId('i-am-john');
* } catch (e){
+1 -2
View File
@@ -31,7 +31,7 @@ export interface AppsflyerOptions {
* default false Accessing AppsFlyer Attribution / Conversion Data from the SDK (Deferred Deeplinking). Read more: Android, iOS. AppsFlyer plugin will return attribution data in onSuccess callback.
*/
onInstallConversionDataListener?: boolean;
/**
* time for the sdk to wait before launch - IOS 14 ONLY!
*/
@@ -125,7 +125,6 @@ export class Appsflyer extends IonicNativePlugin {
return;
}
/**
* @deprecated
* Enables app uninstall tracking
@@ -1,5 +1,5 @@
import { Injectable } from '@angular/core';
import { Plugin, CordovaInstance, IonicNativePlugin, } from '@ionic-native/core';
import { Plugin, CordovaInstance, IonicNativePlugin } from '@ionic-native/core';
declare const window: any;
@@ -7,34 +7,34 @@ export enum UploadState {
UPLOADED = 'UPLOADED',
FAILED = 'FAILED',
UPLOADING = 'UPLOADING',
INITIALIZED = 'INITIALIZED'
INITIALIZED = 'INITIALIZED',
}
export type UploadStateType = keyof typeof UploadState;
export interface UploadEvent{
id?: string, // id of the upload
state?: UploadStateType, // state of the upload (either UPLOADING, UPLOADED or FAILED)
statusCode?: number, // response code returned by server after upload is completed
serverResponse?: any, // server response received after upload is completed
error?: any, // error message in case of failure
errorCode?: number, // error code for any exception encountered
progress?: any, // progress for ongoing upload
eventId?: string // id of the event
export interface UploadEvent {
id?: string; // id of the upload
state?: UploadStateType; // state of the upload (either UPLOADING, UPLOADED or FAILED)
statusCode?: number; // response code returned by server after upload is completed
serverResponse?: any; // server response received after upload is completed
error?: any; // error message in case of failure
errorCode?: number; // error code for any exception encountered
progress?: any; // progress for ongoing upload
eventId?: string; // id of the event
}
export interface FTMPayloadOptions {
id: string,
filePath: string,
fileKey?: string,
serverUrl: string,
notificationTitle?: string,
id: string;
filePath: string;
fileKey?: string;
serverUrl: string;
notificationTitle?: string;
headers?: {
[name: string]: string
},
[name: string]: string;
};
parameters?: {
[name: string]: string
}
[name: string]: string;
};
[prop: string]: any;
}
@@ -42,13 +42,13 @@ export interface FTMOptions {
callBack: (event: UploadEvent) => any;
config?: {
parallelUploadsLimit?: number;
}
};
}
export class FileTransferManager {
private _objectInstance: any;
constructor(options: FTMOptions ) {
constructor(options: FTMOptions) {
this._objectInstance = window.FileTransferManager.init(options.config, options.callBack);
}
@@ -71,7 +71,6 @@ export class FileTransferManager {
destroy(): Promise<any> {
return;
}
}
/**
@@ -108,6 +107,6 @@ export class BackgroundUpload extends IonicNativePlugin {
FileTransferManager = FileTransferManager;
init(options: FTMOptions): FileTransferManager {
return new FileTransferManager(options)
return new FileTransferManager(options);
}
}
@@ -202,7 +202,7 @@ export class CameraPreview extends IonicNativePlugin {
startCamera(options: CameraPreviewOptions): Promise<any> {
return;
}
/**
* Starts the camera video instance.
* @param {any} options
@@ -215,7 +215,6 @@ export class CameraPreview extends IonicNativePlugin {
startRecordVideo(options: any): Promise<any> {
return;
}
/**
* Stops the camera preview instance. (iOS & Android)
@@ -225,7 +224,7 @@ export class CameraPreview extends IonicNativePlugin {
stopCamera(): Promise<any> {
return;
}
/**
* Stops the camera video instance. (iOS & Android)
* @return {Promise<any>}
@@ -94,8 +94,8 @@ export class Diagnostic extends IonicNativePlugin {
* Location accuracy authorization
*/
locationAccuracyAuthorization: {
FULL: 'full',
REDUCED: 'reduced',
FULL: 'full';
REDUCED: 'reduced';
};
permissionGroups = {
@@ -105,7 +105,7 @@ export interface FileTransferError {
*
* @description
* This plugin allows you to upload and download files.
*
*
* @usage
* ```typescript
* import { FileTransfer, FileUploadOptions, FileTransferObject } from '@ionic-native/file-transfer/ngx';
+1 -1
View File
@@ -1341,7 +1341,7 @@ export class File extends IonicNativePlugin {
return getPromise<T>((resolve, reject) => {
reader.onloadend = () => {
if (reader.result !== undefined || reader.result !== null) {
resolve((reader.result as any) as T);
resolve(reader.result as any as T);
} else if (reader.error !== undefined || reader.error !== null) {
reject(reader.error);
} else {
@@ -9,30 +9,30 @@ export interface Text {
}
export interface TextLine extends TextBlock {
lines: TextElement[]
lines: TextElement[];
}
export interface TextElement extends TextBlock {
elements: TextBlock[]
elements: TextBlock[];
}
export interface TextBlock {
text: string;
cornerPoints: TextPoint[]
frame: TextFrame
recognizedLanguages: string
cornerPoints: TextPoint[];
frame: TextFrame;
recognizedLanguages: string;
}
export interface TextPoint {
x: number,
y: number
x: number;
y: number;
}
export interface TextFrame {
x: number,
y: number,
width: number,
height: number
x: number;
y: number;
width: number;
height: number;
}
export enum BarcodeFormat {
@@ -50,7 +50,7 @@ export enum BarcodeFormat {
UPC_A = 512,
UPC_E = 1024,
PDF417 = 2048,
AZTEC = 4096
AZTEC = 4096,
}
export enum BarcodeValueType {
@@ -79,7 +79,7 @@ export enum BarcodeValueType {
/** Barcode value type for calendar events. */
CalendarEvent,
/** Barcode value type for driver's license data. */
DriversLicense
DriversLicense,
}
export enum BarcodeEmailType {
@@ -88,7 +88,7 @@ export enum BarcodeEmailType {
/** Barcode work email type. */
Work,
/** Barcode home email type. */
Home
Home,
}
export enum BarcodePhoneType {
@@ -101,7 +101,7 @@ export enum BarcodePhoneType {
/** Barcode fax phone type. */
Fax,
/** Barcode mobile phone type. */
Mobile
Mobile,
}
export enum BarcodeWiFiEncryptionType {
@@ -112,7 +112,7 @@ export enum BarcodeWiFiEncryptionType {
/** Barcode WPA Wi-Fi encryption type. */
WPA,
/** Barcode WEP Wi-Fi encryption type. */
WEP
WEP,
}
export enum BarcodeAddressType {
@@ -121,105 +121,105 @@ export enum BarcodeAddressType {
/** Barcode work address type. */
Work,
/** Barcode home address type. */
Home
Home,
}
export interface Barcode {
valueType: BarcodeValueType
format: BarcodeFormat
rawValue: string
displayValue: string
cornerPoints: any
imageHeight: number
imageWidth: number
email: BarcodeEmail
phone: BarcodePhone
sms: BarcodeSms
url: BarcodeUrl
wifi: BarcodeWifi
geoPoint: BarcodeGeoPoint
calendarEvent: BarcodeCalendarEvent
contactInfo: BarcodeContactInfo
driverLicense: BarcodeDriverLicense
valueType: BarcodeValueType;
format: BarcodeFormat;
rawValue: string;
displayValue: string;
cornerPoints: any;
imageHeight: number;
imageWidth: number;
email: BarcodeEmail;
phone: BarcodePhone;
sms: BarcodeSms;
url: BarcodeUrl;
wifi: BarcodeWifi;
geoPoint: BarcodeGeoPoint;
calendarEvent: BarcodeCalendarEvent;
contactInfo: BarcodeContactInfo;
driverLicense: BarcodeDriverLicense;
}
export interface BarcodeEmail {
address: string
body: string
subject: string
type: BarcodeEmailType
address: string;
body: string;
subject: string;
type: BarcodeEmailType;
}
export interface BarcodePhone {
number: string
type: BarcodePhoneType
number: string;
type: BarcodePhoneType;
}
export interface BarcodeSms {
phoneNumber: string
message: string
phoneNumber: string;
message: string;
}
export interface BarcodeUrl {
title: string
url: string
title: string;
url: string;
}
export interface BarcodeWifi {
ssid: string
password: string
type: BarcodeWiFiEncryptionType
ssid: string;
password: string;
type: BarcodeWiFiEncryptionType;
}
export interface BarcodeGeoPoint {
latitude: number
longitude: number
latitude: number;
longitude: number;
}
export interface BarcodeCalendarEvent {
eventDescription: string
location: string
organizer: string
status: string
summary: string
start: any
end: any
eventDescription: string;
location: string;
organizer: string;
status: string;
summary: string;
start: any;
end: any;
}
export interface BarcodeContactInfo {
title: string
name: string
addresses: BarcodeAddress[]
phones: BarcodePhone[]
emails: BarcodeEmail[]
organization: string
urls: string
title: string;
name: string;
addresses: BarcodeAddress[];
phones: BarcodePhone[];
emails: BarcodeEmail[];
organization: string;
urls: string;
}
export interface BarcodeAddress {
addressLine: string
type: BarcodeAddressType
addressLine: string;
type: BarcodeAddressType;
}
export interface BarcodeDriverLicense {
firstName: string
middleName: string
lastName: string
gender: string
addressCity: string
addressState: string
addressStreet: string
addressZip: string
birthDate: string
documentType: string
licenseNumber: string
expiryDate: string
issuingDate: string
issuingCountry: string
firstName: string;
middleName: string;
lastName: string;
gender: string;
addressCity: string;
addressState: string;
addressStreet: string;
addressZip: string;
birthDate: string;
documentType: string;
licenseNumber: string;
expiryDate: string;
issuingDate: string;
issuingCountry: string;
}
export interface ImageLabel {
index: number,
confidence: number,
text: string
index: number;
confidence: number;
text: string;
}
/**
* @name Firebase Vision
@@ -109,9 +109,7 @@ export class Globalization extends IonicNativePlugin {
@Cordova({
callbackOrder: 'reverse',
})
getDatePattern(
options: GlobalizationOptions
): Promise<{
getDatePattern(options: GlobalizationOptions): Promise<{
pattern: string;
timezone: string;
iana_timezone: string;
@@ -187,9 +185,7 @@ export class Globalization extends IonicNativePlugin {
@Cordova({
callbackOrder: 'reverse',
})
getNumberPattern(options: {
type: string;
}): Promise<{
getNumberPattern(options: { type: string }): Promise<{
pattern: string;
symbol: string;
fraction: number;
@@ -208,9 +204,7 @@ export class Globalization extends IonicNativePlugin {
* @returns {Promise<{ pattern: string, code: string, fraction: number, rounding: number, decimal: number, grouping: string }>}
*/
@Cordova()
getCurrencyPattern(
currencyCode: string
): Promise<{
getCurrencyPattern(currencyCode: string): Promise<{
pattern: string;
code: string;
fraction: number;
+7 -1
View File
@@ -382,7 +382,13 @@ export class IBeacon extends IonicNativePlugin {
minor?: number,
notifyEntryStateOnDisplay?: boolean
): BeaconRegion {
return new window.cordova.plugins.locationManager.BeaconRegion(identifer, uuid, major, minor, notifyEntryStateOnDisplay);
return new window.cordova.plugins.locationManager.BeaconRegion(
identifer,
uuid,
major,
minor,
notifyEntryStateOnDisplay
);
}
/**
@@ -203,17 +203,16 @@ export type PlayStoreReceipt = {
purchaseToken: string;
receipt: string;
signature: string;
type: "android-playstore";
type: 'android-playstore';
};
export type AppStoreReceipt = {
id: string;
appStoreReceipt: string;
original_transaction_id: string;
type: "ios-appstore";
type: 'ios-appstore';
};
/**
* @hidden
*/
@@ -244,5 +244,4 @@ export class Intercom extends IonicNativePlugin {
setBottomPadding(bottomPadding: string | number): Promise<any> {
return;
}
}
@@ -27,8 +27,7 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
pluginName: 'IosASWebauthenticationSession',
plugin: 'cordova-plugin-ios-aswebauthenticationsession-api',
pluginRef: 'plugins.ASWebAuthSession',
repo:
'https://github.com/jwelker110/cordova-plugin-ios-aswebauthenticationsession-api',
repo: 'https://github.com/jwelker110/cordova-plugin-ios-aswebauthenticationsession-api',
platforms: ['iOS'],
})
@Injectable()
@@ -40,10 +39,7 @@ export class IosASWebauthenticationSession extends IonicNativePlugin {
* @return {Promise<string>} Returns a promise that resolves a string containing the redirect URL after finishing ASWebauthenticationSession
*/
@Cordova()
start(
callbackUrl: string,
authorizeURL: string
): Promise<string> {
start(callbackUrl: string, authorizeURL: string): Promise<string> {
return;
}
}
@@ -38,17 +38,17 @@ export class LocalBackup extends IonicNativePlugin {
}
@Cordova()
read(): Promise<any>{
read(): Promise<any> {
return;
}
@Cordova()
exists(): Promise<boolean>{
exists(): Promise<boolean> {
return;
}
@Cordova()
remove(): Promise<boolean>{
remove(): Promise<boolean> {
return;
}
}
@@ -9,10 +9,9 @@ export interface PreviewAnyFileOptions {
/**
* The mime type of the file to preview.
*/
mimeType: string;
mimeType: string;
}
/**
* @name PreviewAnyFile
* @description
@@ -35,8 +34,8 @@ export interface PreviewAnyFileOptions {
* .catch((error: any) => console.error(error));
*
* ```
*
*
*
*
* ...
*
*
@@ -71,30 +70,30 @@ export class PreviewAnyFile extends IonicNativePlugin {
/**
* previewPath function will return success callback if the file successfully opened, if the content is base64 you have to use previewBase64 method
* @param base64 {String} base64 string content
* @param options {PreviewAnyFileOptions} define the name of the file with extension or it's mimeType, if the correct extension not exist in the path
* @param options {PreviewAnyFileOptions} define the name of the file with extension or it's mimeType, if the correct extension not exist in the path
*/
@Cordova()
previewBase64(base64: string,options?: PreviewAnyFileOptions): Promise<string> {
previewBase64(base64: string, options?: PreviewAnyFileOptions): Promise<string> {
return;
}
/**
* previewPath function will return success callback if the file successfully opened, if the content is base64 you have to use previewBase64 method
* @param url {String} full absolute URL -> file://, content://, http://, https, ... etc, if extension not exist, you must define it in the opt param
* @param options {PreviewAnyFileOptions} define the name of the file with extension or it's mimeType, if the correct extension not exist in the path
* @param options {PreviewAnyFileOptions} define the name of the file with extension or it's mimeType, if the correct extension not exist in the path
*/
@Cordova()
previewPath(url: string,options?: PreviewAnyFileOptions): Promise<string> {
previewPath(url: string, options?: PreviewAnyFileOptions): Promise<string> {
return;
}
/**
* previewPath function will return success callback if the file successfully opened, if the content is base64 you have to use previewBase64 method
* @param url {String} full absolute URL -> file://, content://, http://, https, ... etc, if extension not exist, you must define it in the opt param
* @param options {PreviewAnyFileOptions} define the name of the file with extension or it's mimeType, if the correct extension not exist in the path
* @param options {PreviewAnyFileOptions} define the name of the file with extension or it's mimeType, if the correct extension not exist in the path
*/
@Cordova()
previewAsset(url: string,options?: PreviewAnyFileOptions): Promise<string> {
previewAsset(url: string, options?: PreviewAnyFileOptions): Promise<string> {
return;
}
}
+3 -4
View File
@@ -28,13 +28,13 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
pluginRef: 'RestartPlugin',
repo: 'https://github.com/MaximBelov/cordova-plugin-restart',
install: 'ionic cordova plugin add cordova-plugin-restart',
platforms: ['Android']
platforms: ['Android'],
})
@Injectable()
export class Restart extends IonicNativePlugin {
@Cordova({
errorIndex: 0,
successIndex: 2
successIndex: 2,
})
restart(cold: boolean): Promise<any> {
return;
@@ -43,8 +43,7 @@ export class Restart extends IonicNativePlugin {
@Cordova({
errorIndex: 0,
})
enableDebug(): Promise<any>{
enableDebug(): Promise<any> {
return;
}
}
@@ -282,7 +282,7 @@ export class SocialSharing extends IonicNativePlugin {
saveToPhotoAlbum(fileOrFileArray: string | string[]): Promise<any> {
return;
}
/**
* Shares directly to a WhatsApp Contact with phone number.
* @param phone {string} Pass phone number
@@ -296,7 +296,12 @@ export class SocialSharing extends IonicNativePlugin {
errorIndex: 6,
platforms: ['iOS', 'Android'],
})
shareViaWhatsAppToPhone(phone: string, message: string, fileOrFileArray: string | string[], url?: string): Promise<any> {
shareViaWhatsAppToPhone(
phone: string,
message: string,
fileOrFileArray: string | string[],
url?: string
): Promise<any> {
return;
}
}
@@ -33,11 +33,10 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
pluginRef: 'window.systemAlertWindowPermission',
repo: 'https://github.com/MaximBelov/cordova-plugin-system-alert-window-permission.git',
install: 'ionic cordova plugin add cordova-plugin-system-alert-window-permission',
platforms: ['Android']
platforms: ['Android'],
})
@Injectable()
export class SystemAlertWindowPermission extends IonicNativePlugin {
/**
* Check permission
* @return {Promise<any>} return 0 when dont have SYSTEM_ALERT_WINDOW permission, 1 when have SYSTEM_ALERT_WINDOW permission
@@ -64,5 +63,4 @@ export class SystemAlertWindowPermission extends IonicNativePlugin {
openNotificationSettings(): Promise<any> {
return;
}
}
+13 -13
View File
@@ -75,7 +75,7 @@ export interface InboxMessage {
export class Vibes extends IonicNativePlugin {
/**
* Register this device with the Vibes platform
*
*
* @return {Promise<DeviceResponse>}
*/
@Cordova()
@@ -85,7 +85,7 @@ export class Vibes extends IonicNativePlugin {
/**
* Unregister this device with the Vibes platform
*
*
* @return {Promise<void>}
*/
@Cordova()
@@ -95,7 +95,7 @@ export class Vibes extends IonicNativePlugin {
/**
* Associate an external ID with the current person.
*
*
* @param {string} externalPersonId
* @return {Promise<void>}
*/
@@ -106,7 +106,7 @@ export class Vibes extends IonicNativePlugin {
/**
* Register this device to receive push notifications
*
*
* @return {Promise<void>}
*/
@Cordova()
@@ -116,7 +116,7 @@ export class Vibes extends IonicNativePlugin {
/**
* Unregister the device from receiving push notifications
*
*
* @return {Promise<void>}
*/
@Cordova()
@@ -125,7 +125,7 @@ export class Vibes extends IonicNativePlugin {
}
/**
* Fetches a DeviceInfoResponse with details about the Vibes Device ID and Push Token
*
*
* @return {Promise<DeviceInfoResponse>}
*/
@Cordova()
@@ -135,7 +135,7 @@ export class Vibes extends IonicNativePlugin {
/**
* Fetches the PersonResponse associated with this device currently
*
*
* @return {Promise<PersonResponse>}
*/
@Cordova()
@@ -145,7 +145,7 @@ export class Vibes extends IonicNativePlugin {
/**
* Get notified when the user opens a notification
*
*
* @return {Observable<void>}
*/
@Cordova({
@@ -157,7 +157,7 @@ export class Vibes extends IonicNativePlugin {
/**
* Fetches an array of inbox messages for the person associated with this device.
*
*
* @return {Promise<InboxMessage[]>}
*/
@Cordova()
@@ -167,7 +167,7 @@ export class Vibes extends IonicNativePlugin {
/**
* Fetches a single inbox message by it's id.
*
*
* @param {string} message_uid
* @return {Promise<InboxMessage>}
*/
@@ -178,7 +178,7 @@ export class Vibes extends IonicNativePlugin {
/**
* Marks an inbox message as expired using message_uid and the expiry date supplied. Uses current date if null or invalid date is supplied.
*
*
* @param {string} message_uid
* @param {string} An ISO-8601 formatted date string.
* @return {Promise<InboxMessage>} an updated version of the InboxMessage with expires_at date updated
@@ -190,7 +190,7 @@ export class Vibes extends IonicNativePlugin {
/**
* Marks an inbox message as read.
*
*
* @param {string} message_uid
* @return {Promise<InboxMessage>} an updated version of the InboxMessage with read field updated
*/
@@ -201,7 +201,7 @@ export class Vibes extends IonicNativePlugin {
/**
* Records an event for when the user opens an inbox message.
*
*
* @param inbox_message_stringified stringified version of the InboxMessage
* @return {Promise<void>}
*/