feat(clevertap): support new clevertap changes (#4011)
* feat(clevertap): add CleverTap plugin * style(clevertap): cleanup stray lint error * refactor * feat(clevertap): update for latest CleverTap Cordova plugin * chore: Update Repo from Ionic Native Repo * fix: Code Changes for parity SDK-155 * fix: Indentation fixes for SDK-155 * fix: Code Repo fix while updating fork branch * fix: Remove unnecessary adder .scripts Folder * fix: Remove unwanted added folder .circleci * fix: Remove unwanted added File .npmrc * fix: Revert .Github Folder Changes to as per Ionic-Native master * fix: Update changes as per ionic-native master * fix: Code Repo fix while updating fork branch fix: Remove unnecessary adder .scripts Folder fix: Remove unwanted added folder .circleci fix: Remove unwanted added File .npmrc fix: Revert .Github Folder Changes to as per Ionic-Native master fix: Update changes as per ionic-native master * fix(CleverTap): Fix for missing methods issue #3491 * refactor(profile): remove setProfile methods for fb and google * refactor(dynamic variables): remove Product A/B Testing (Dynamic Variables) code * fix(product config): add key param to product config getters * feat(identity): add a new public method getCleverTapID and deprecate existing CleverTapID methods * feat(profile): add public methods to increment/decrement values set via User properties * feat(profile): add public methods to increment/decrement values set via User properties * feat(inapp): add public methods for suspending/discarding & resuming InApp Notifications Co-authored-by: Peter Wilkniss <peter@clevertap.com> Co-authored-by: Daniel Sogl <mytechde@outlook.com> Co-authored-by: Darshan Pania <darshan@clevertap.com> Co-authored-by: Surya <suryanarayan@clevertap.com> Co-authored-by: SuryaClevertap <63039490+SuryaClevertap@users.noreply.github.com>
This commit is contained in:
parent
d382e3e17e
commit
24c61a50a7
@ -474,28 +474,6 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Set profile attributes from facebook user
|
|
||||||
*
|
|
||||||
* @param profile {any} facebook graph user object
|
|
||||||
* @returns {Promise<any>}
|
|
||||||
*/
|
|
||||||
@Cordova()
|
|
||||||
profileSetGraphUser(profile: any): Promise<any> {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set profile attributes rom google plus user
|
|
||||||
*
|
|
||||||
* @param profile {any} google plus user object
|
|
||||||
* @returns {Promise<any>}
|
|
||||||
*/
|
|
||||||
@Cordova()
|
|
||||||
profileGooglePlusUser(profile: any): Promise<any> {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get User Profile Property
|
* Get User Profile Property
|
||||||
*
|
*
|
||||||
@ -509,6 +487,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @deprecated This method is deprecated. Use getCleverTapID() instead.
|
||||||
* Get a unique CleverTap identifier suitable for use with install attribution providers.
|
* Get a unique CleverTap identifier suitable for use with install attribution providers.
|
||||||
* calls back with unique CleverTap attribution identifier
|
* calls back with unique CleverTap attribution identifier
|
||||||
*
|
*
|
||||||
@ -520,6 +499,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @deprecated This method is deprecated. Use getCleverTapID() instead.
|
||||||
* Get User Profile CleverTapID
|
* Get User Profile CleverTapID
|
||||||
* calls back with CleverTapID or false
|
* calls back with CleverTapID or false
|
||||||
*
|
*
|
||||||
@ -530,6 +510,17 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get User Profile CleverTapID
|
||||||
|
* calls back with CleverTapID
|
||||||
|
*
|
||||||
|
* @returns {Promise<any>}
|
||||||
|
*/
|
||||||
|
@Cordova()
|
||||||
|
getCleverTapID(): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove the property specified by key from the user profile
|
* Remove the property specified by key from the user profile
|
||||||
*
|
*
|
||||||
@ -601,6 +592,66 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method for incrementing a value for a single-value profile property (if it exists).
|
||||||
|
*
|
||||||
|
* @param key {string}
|
||||||
|
* @param value {number}
|
||||||
|
* @returns {Promise<any>}
|
||||||
|
*/
|
||||||
|
@Cordova()
|
||||||
|
profileIncrementValueBy(key: string,value: number): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method for decrementing a value for a single-value profile property (if it exists).
|
||||||
|
*
|
||||||
|
* @param key {string}
|
||||||
|
* @param value {number}
|
||||||
|
* @returns {Promise<any>}
|
||||||
|
*/
|
||||||
|
@Cordova()
|
||||||
|
profileDecrementValueBy(key: string,value: number): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*******************
|
||||||
|
* In-App Controls
|
||||||
|
******************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Suspends and saves inApp notifications until 'resumeInAppNotifications' is called for current session.
|
||||||
|
* Automatically resumes InApp notifications display on CleverTap shared instance creation.
|
||||||
|
* Pending inApp notifications are displayed only for current session.
|
||||||
|
*
|
||||||
|
* @returns {Promise<any>}
|
||||||
|
*/
|
||||||
|
@Cordova()
|
||||||
|
suspendInAppNotifications(): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Discards inApp notifications until 'resumeInAppNotifications' is called for current session.
|
||||||
|
* Automatically resumes InApp notifications display on CleverTap shared instance creation.
|
||||||
|
* Pending inApp notifications are not displayed.
|
||||||
|
*/
|
||||||
|
@Cordova()
|
||||||
|
discardInAppNotifications(): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Resumes displaying inApps notifications and shows pending inApp notifications if any.
|
||||||
|
*
|
||||||
|
* @returns {Promise<any>}
|
||||||
|
*/
|
||||||
|
@Cordova()
|
||||||
|
resumeInAppNotifications(): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/*******************
|
/*******************
|
||||||
* Session
|
* Session
|
||||||
******************/
|
******************/
|
||||||
@ -676,6 +727,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
|
|||||||
/****************************
|
/****************************
|
||||||
* Notification Inbox methods
|
* Notification Inbox methods
|
||||||
****************************/
|
****************************/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Call this method to initialize the App Inbox
|
* Call this method to initialize the App Inbox
|
||||||
*/
|
*/
|
||||||
@ -785,293 +837,6 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Call this to SetUIEditor Connection
|
|
||||||
*
|
|
||||||
* @param enabled {boolean}
|
|
||||||
* @returns {Promise<any>}
|
|
||||||
*/
|
|
||||||
@Cordova()
|
|
||||||
setUIEditorConnectionEnabled(enabled: boolean): Promise<any> {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Call this to Register Boolean Variable
|
|
||||||
*
|
|
||||||
* @param varName {string}
|
|
||||||
* @returns {Promise<any>}
|
|
||||||
*/
|
|
||||||
@Cordova()
|
|
||||||
registerBooleanVariable(varName: string): Promise<any> {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Call this to Register Double Variable
|
|
||||||
*
|
|
||||||
* @param varName {string}
|
|
||||||
* @returns {Promise<any>}
|
|
||||||
*/
|
|
||||||
@Cordova()
|
|
||||||
registerDoubleVariable(varName: string): Promise<any> {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Call this to Register Integer Variable
|
|
||||||
*
|
|
||||||
* @param varName {string}
|
|
||||||
* @returns {Promise<any>}
|
|
||||||
*/
|
|
||||||
@Cordova()
|
|
||||||
registerIntegerVariable(varName: string): Promise<any> {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Call this to Register String Variable
|
|
||||||
*
|
|
||||||
* @param varName {string}
|
|
||||||
* @returns {Promise<any>}
|
|
||||||
*/
|
|
||||||
@Cordova()
|
|
||||||
registerStringVariable(varName: string): Promise<any> {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Call this to Register List of Boolean Variable
|
|
||||||
*
|
|
||||||
* @param varName {string}
|
|
||||||
* @returns {Promise<any>}
|
|
||||||
*/
|
|
||||||
@Cordova()
|
|
||||||
registerListOfBooleanVariable(varName: string): Promise<any> {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Call this to Register List of Double Variable
|
|
||||||
*
|
|
||||||
* @param varName {string}
|
|
||||||
* @returns {Promise<any>}
|
|
||||||
*/
|
|
||||||
@Cordova()
|
|
||||||
registerListOfDoubleVariable(varName: string): Promise<any> {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Call this to Register List of Integer Variable
|
|
||||||
*
|
|
||||||
* @param varName {string}
|
|
||||||
* @returns {Promise<any>}
|
|
||||||
*/
|
|
||||||
@Cordova()
|
|
||||||
registerListOfIntegerVariable(varName: string): Promise<any> {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Call this to Register List of String Variable
|
|
||||||
*
|
|
||||||
* @param varName {string}
|
|
||||||
* @returns {Promise<any>}
|
|
||||||
*/
|
|
||||||
@Cordova()
|
|
||||||
registerListOfStringVariable(varName: string): Promise<any> {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Call this to Register Map of Boolean Variable
|
|
||||||
*
|
|
||||||
* @param varName {string}
|
|
||||||
* @returns {Promise<any>}
|
|
||||||
*/
|
|
||||||
@Cordova()
|
|
||||||
registerMapOfBooleanVariable(varName: string): Promise<any> {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Call this to Register Map of Double Variable
|
|
||||||
*
|
|
||||||
* @param varName {string}
|
|
||||||
* @returns {Promise<any>}
|
|
||||||
*/
|
|
||||||
@Cordova()
|
|
||||||
registerMapOfDoubleVariable(varName: string): Promise<any> {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Call this to Register Map of Integer Variable
|
|
||||||
*
|
|
||||||
* @param varName {string}
|
|
||||||
* @returns {Promise<any>}
|
|
||||||
*/
|
|
||||||
@Cordova()
|
|
||||||
registerMapOfIntegerVariable(varName: string): Promise<any> {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Call this to Register Map of String Variable
|
|
||||||
*
|
|
||||||
* @param varName {string}
|
|
||||||
* @returns {Promise<any>}
|
|
||||||
*/
|
|
||||||
@Cordova()
|
|
||||||
registerMapOfStringVariable(varName: string): Promise<any> {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Call this to Get Boolean Variable
|
|
||||||
*
|
|
||||||
* @param varName {string}
|
|
||||||
* @param defaultValue {boolean}
|
|
||||||
* @returns {Promise<any>}
|
|
||||||
*/
|
|
||||||
@Cordova()
|
|
||||||
getBooleanVariable(varName: string, defaultValue: boolean): Promise<any> {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Call this to Get Double Variable
|
|
||||||
*
|
|
||||||
* @param varName {string}
|
|
||||||
* @param defaultValue {number}
|
|
||||||
* @returns {Promise<any>}
|
|
||||||
*/
|
|
||||||
@Cordova()
|
|
||||||
getDoubleVariable(varName: string, defaultValue: number): Promise<any> {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Call this to Get Integer Variable
|
|
||||||
*
|
|
||||||
* @param varName {string}
|
|
||||||
* @param defaultValue {number}
|
|
||||||
* @returns {Promise<any>}
|
|
||||||
*/
|
|
||||||
@Cordova()
|
|
||||||
getIntegerVariable(varName: string, defaultValue: number): Promise<any> {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Call this to Get String Variable
|
|
||||||
*
|
|
||||||
* @param varName {string}
|
|
||||||
* @param defaultValue {string}
|
|
||||||
* @returns {Promise<any>}
|
|
||||||
*/
|
|
||||||
@Cordova()
|
|
||||||
getStringVariable(varName: string, defaultValue: string): Promise<any> {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Call this to Get List of Boolean Variable
|
|
||||||
*
|
|
||||||
* @param varName {string}
|
|
||||||
* @param defaultValue {any}
|
|
||||||
* @returns {Promise<any>}
|
|
||||||
*/
|
|
||||||
@Cordova()
|
|
||||||
getListOfBooleanVariable(varName: string, defaultValue: any): Promise<any> {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Call this to Get List of Double Variable
|
|
||||||
*
|
|
||||||
* @param varName {string}
|
|
||||||
* @param defaultValue {any}
|
|
||||||
* @returns {Promise<any>}
|
|
||||||
*/
|
|
||||||
@Cordova()
|
|
||||||
getListOfDoubleVariable(varName: string, defaultValue: any): Promise<any> {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Call this to Get List of Integer Variable
|
|
||||||
*
|
|
||||||
* @param varName {string}
|
|
||||||
* @param defaultValue {any}
|
|
||||||
* @returns {Promise<any>}
|
|
||||||
*/
|
|
||||||
@Cordova()
|
|
||||||
getListOfIntegerVariable(varName: string, defaultValue: any): Promise<any> {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Call this to Get List of String Variable
|
|
||||||
*
|
|
||||||
* @param varName {string}
|
|
||||||
* @param defaultValue {any}
|
|
||||||
* @returns {Promise<any>}
|
|
||||||
*/
|
|
||||||
@Cordova()
|
|
||||||
getListOfStringVariable(varName: string, defaultValue: any): Promise<any> {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Call this to get Map of Boolean Variable
|
|
||||||
*
|
|
||||||
* @param varName {string}
|
|
||||||
* @param defaultValue {any}
|
|
||||||
* @returns {Promise<any>}
|
|
||||||
*/
|
|
||||||
@Cordova()
|
|
||||||
getMapOfBooleanVariable(varName: string, defaultValue: any): Promise<any> {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Call this to Get Map of Double Variable
|
|
||||||
*
|
|
||||||
* @param varName {string}
|
|
||||||
* @param defaultValue {any}
|
|
||||||
* @returns {Promise<any>}
|
|
||||||
*/
|
|
||||||
@Cordova()
|
|
||||||
getMapOfDoubleVariable(varName: string, defaultValue: any): Promise<any> {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Call this to Get Map of Integer Variable
|
|
||||||
*
|
|
||||||
* @param varName {string}
|
|
||||||
* @param defaultValue {any}
|
|
||||||
* @returns {Promise<any>}
|
|
||||||
*/
|
|
||||||
@Cordova()
|
|
||||||
getMapOfIntegerVariable(varName: string, defaultValue: any): Promise<any> {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Call this to Get Map of String Variable
|
|
||||||
*
|
|
||||||
* @param varName {string}
|
|
||||||
* @param defaultValue {any}
|
|
||||||
* @returns {Promise<any>}
|
|
||||||
*/
|
|
||||||
@Cordova()
|
|
||||||
getMapOfStringVariable(varName: string, defaultValue: any): Promise<any> {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Call this to Get All Display Units
|
* Call this to Get All Display Units
|
||||||
*
|
*
|
||||||
@ -1208,7 +973,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
|
|||||||
* @returns {Promise<any>}
|
* @returns {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
getString(): Promise<any> {
|
getString(key: string): Promise<any> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1219,7 +984,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
|
|||||||
* @returns {Promise<any>}
|
* @returns {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
getBoolean(): Promise<any> {
|
getBoolean(key: string): Promise<any> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1230,7 +995,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
|
|||||||
* @returns {Promise<any>}
|
* @returns {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
getLong(): Promise<any> {
|
getLong(key: string): Promise<any> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1241,7 +1006,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
|
|||||||
* @returns {Promise<any>}
|
* @returns {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
getDouble(): Promise<any> {
|
getDouble(key: string): Promise<any> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user