diff --git a/src/@ionic-native/plugins/mixpanel/index.ts b/src/@ionic-native/plugins/mixpanel/index.ts index af5f2432c..1e22f4f07 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,36 +33,44 @@ 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} */ @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; + } /** - * + * The usePeople parameter is used for the iOS Mixpanel SDK. * @param distinctId {string} + * @param usePeople {boolean} * @returns {Promise} */ @Cordova() - identify(distinctId: string): Promise { return; } + identify(distinctId: string, usePeople?: boolean): Promise { + return; + } /** * @@ -70,14 +78,18 @@ export class Mixpanel extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - init(token: string): Promise { return; } + init(token: string): Promise { + return; + } /** * * @returns {Promise} */ @Cordova() - getSuperProperties(): Promise { return; } + getSuperProperties(): Promise { + return; + } /** * @@ -85,7 +97,9 @@ export class Mixpanel extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - registerSuperProperties(superProperties: any): Promise { return; } + registerSuperProperties(superProperties: any): Promise { + return; + } /** * @@ -93,7 +107,9 @@ export class Mixpanel extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - registerSuperPropertiesOnce(superProperties: any): Promise { return; } + registerSuperPropertiesOnce(superProperties: any): Promise { + return; + } /** * @@ -101,14 +117,18 @@ export class Mixpanel extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - unregisterSuperProperty(superPropertyName: string): Promise { return; } + unregisterSuperProperty(superPropertyName: string): Promise { + return; + } /** * * @returns {Promise} */ @Cordova() - reset(): Promise { return; } + reset(): Promise { + return; + } /** * @@ -116,7 +136,9 @@ export class Mixpanel extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - timeEvent(eventName: string): Promise { return; } + timeEvent(eventName: string): Promise { + return; + } /** * @@ -128,8 +150,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 @@ -141,6 +164,24 @@ export class Mixpanel extends IonicNativePlugin { }) @Injectable() export class MixpanelPeople extends IonicNativePlugin { + /** + * + * @param appendObject {any} + * @return {Promise} + */ + @Cordova() + append(appendObject: any): Promise { + return; + } + + /** + * + * @return {Promise} + */ + @Cordova() + deleteUser(): Promise { + return; + } /** * @@ -148,7 +189,9 @@ export class MixpanelPeople extends IonicNativePlugin { * @return {Promise} */ @Cordova() - identify(distinctId: string): Promise { return; } + identify(distinctId: string): Promise { + return; + } /** * @@ -156,7 +199,9 @@ export class MixpanelPeople extends IonicNativePlugin { * @return {Promise} */ @Cordova() - increment(peopleProperties: any): Promise { return; } + increment(peopleProperties: any): Promise { + return; + } /** * @@ -164,7 +209,9 @@ export class MixpanelPeople extends IonicNativePlugin { * @return {Promise} */ @Cordova() - setPushId(pushId: string): Promise { return; } + setPushId(pushId: string): Promise { + return; + } /** * @@ -172,14 +219,48 @@ export class MixpanelPeople extends IonicNativePlugin { * @return {Promise} */ @Cordova() - set(peopleProperties: any): Promise { return; } + set(peopleProperties: any): Promise { + return; + } /** * - * @param peopleProperties + * @param peopleProperties {any} * @return {Promise} */ @Cordova() - setOnce(peopleProperties: any): Promise { return; } + setOnce(peopleProperties: any): Promise { + return; + } + /** + * + * @param amount {number} + * @param chargeProperties + * @return {Promise} + */ + @Cordova() + trackCharge(amount: number, chargeProperties: any): Promise { + return; + } + + /** + * + * @param propertiesArray + * @return {Promise} + */ + @Cordova() + unset(propertiesArray: Array): Promise { + return; + } + + /** + * + * @param unionObject {any} + * @return {Promise} + */ + @Cordova() + union(unionObject: any): Promise { + return; + } }