Merge branch 'master' into v5

This commit is contained in:
Daniel
2018-09-15 11:46:46 +02:00
parent 8f8aeb6e6a
commit d2d1f4889e
13 changed files with 1511 additions and 37 deletions
+63 -10
View File
@@ -33,15 +33,14 @@ declare var mixpanel: any;
})
@Injectable()
export class Mixpanel extends IonicNativePlugin {
/**
*
* If originalId is omitted, aliasId will be used as originalId.
* @param aliasId {string}
* @param originalId {string}
* @returns {Promise<any>}
*/
@Cordova()
alias(aliasId: string, originalId: string): Promise<any> {
alias(aliasId: string, originalId?: string): Promise<any> {
return;
}
@@ -63,12 +62,13 @@ export class Mixpanel extends IonicNativePlugin {
}
/**
*
* The usePeople parameter is used for the iOS Mixpanel SDK.
* @param distinctId {string}
* @param usePeople {boolean}
* @returns {Promise<any>}
*/
@Cordova()
identify(distinctId: string): Promise<any> {
identify(distinctId: string, usePeople?: boolean): Promise<any> {
return;
}
@@ -87,7 +87,9 @@ export class Mixpanel extends IonicNativePlugin {
* @returns {Promise<any>}
*/
@Cordova()
getSuperProperties(): Promise<any> { return; }
getSuperProperties(): Promise<any> {
return;
}
/**
*
@@ -105,7 +107,9 @@ export class Mixpanel extends IonicNativePlugin {
* @returns {Promise<any>}
*/
@Cordova()
registerSuperPropertiesOnce(superProperties: any): Promise<any> { return; }
registerSuperPropertiesOnce(superProperties: any): Promise<any> {
return;
}
/**
*
@@ -113,7 +117,9 @@ export class Mixpanel extends IonicNativePlugin {
* @returns {Promise<any>}
*/
@Cordova()
unregisterSuperProperty(superPropertyName: string): Promise<any> { return; }
unregisterSuperProperty(superPropertyName: string): Promise<any> {
return;
}
/**
*
@@ -147,7 +153,6 @@ export class Mixpanel extends IonicNativePlugin {
track(eventName: string, eventProperties?: any): Promise<any> {
return;
}
}
/**
@@ -160,6 +165,24 @@ export class Mixpanel extends IonicNativePlugin {
})
@Injectable()
export class MixpanelPeople extends IonicNativePlugin {
/**
*
* @param appendObject {any}
* @return {Promise<any>}
*/
@Cordova()
append(appendObject: any): Promise<any> {
return;
}
/**
*
* @return {Promise<any>}
*/
@Cordova()
deleteUser(): Promise<any> {
return;
}
/**
*
@@ -203,7 +226,7 @@ export class MixpanelPeople extends IonicNativePlugin {
/**
*
* @param peopleProperties
* @param peopleProperties {any}
* @return {Promise<any>}
*/
@Cordova()
@@ -211,4 +234,34 @@ export class MixpanelPeople extends IonicNativePlugin {
return;
}
/**
*
* @param amount {number}
* @param chargeProperties
* @return {Promise<any>}
*/
@Cordova()
trackCharge(amount: number, chargeProperties: any): Promise<any> {
return;
}
/**
*
* @param propertiesArray
* @return {Promise<any>}
*/
@Cordova()
unset(propertiesArray: Array<string>): Promise<any> {
return;
}
/**
*
* @param unionObject {any}
* @return {Promise<any>}
*/
@Cordova()
union(unionObject: any): Promise<any> {
return;
}
}