From 3df35b40ce49b1a176ae03a3516df37ceb7cdec6 Mon Sep 17 00:00:00 2001 From: SuryaClevertap <63039490+SuryaClevertap@users.noreply.github.com> Date: Thu, 11 Jun 2020 21:30:48 +0530 Subject: [PATCH] feat(CleverTap): Update Plugin for Parity Support (#3435) * 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 Co-authored-by: Peter Wilkniss Co-authored-by: Daniel Sogl Co-authored-by: Darshan Pania --- src/@ionic-native/plugins/clevertap/index.ts | 636 +++++++++++++++++++ 1 file changed, 636 insertions(+) diff --git a/src/@ionic-native/plugins/clevertap/index.ts b/src/@ionic-native/plugins/clevertap/index.ts index a745c7d58..061519fcb 100644 --- a/src/@ionic-native/plugins/clevertap/index.ts +++ b/src/@ionic-native/plugins/clevertap/index.ts @@ -50,6 +50,16 @@ export class CleverTap extends IonicNativePlugin { return; } + /** + * Personalization + * Disables the Personalization API + * @returns {Promise} + */ + @Cordova() + disablePersonalization(): Promise { + return; + } + /** * Enables tracking opt out for the currently active user. * @param optOut {boolean} @@ -60,6 +70,16 @@ export class CleverTap extends IonicNativePlugin { return; } + /** + * Sets CleverTap SDK to offline mode. + * @param offline {boolean} + * @returns {Promise} + */ + @Cordova() + setOffline(offline: boolean): Promise { + return; + } + /** * Enables the reporting of device network related information, including IP address. This reporting is disabled by default. * @param enable {boolean} @@ -93,6 +113,48 @@ export class CleverTap extends IonicNativePlugin { return; } + /** + * Sets the device's Xiaomi push token + * @param token {string} + * @returns {Promise} + */ + @Cordova() + setPushXiaomiToken(token: string): Promise { + return; + } + + /** + * Sets the device's Baidu push token + * @param token {string} + * @returns {Promise} + */ + @Cordova() + setPushBaiduToken(token: string): Promise { + return; + } + + /** + * Sets the device's Huawei push token + * @param token {string} + * @returns {Promise} + */ + @Cordova() + setPushHuaweiToken(token: string): Promise { + return; + } + + /** + * Create Notification Channel for Android O+ + * @param extras {any} + * @returns {Promise} + */ + @Cordova() + createNotification( + extras: any + ): Promise { + return; + } + /** * Create Notification Channel for Android O+ * @param channelID {string} @@ -600,6 +662,580 @@ export class CleverTap extends IonicNativePlugin { return; } + /**************************** + * Notification Inbox methods + ****************************/ + /** + * Call this method to initialize the App Inbox + */ + @Cordova() + initializeInbox(): Promise { + return; + } + + /** + * Call this method to get the count of unread Inbox messages + */ + @Cordova() + getInboxMessageUnreadCount(): Promise { + return; + } + + /** + * Call this method to get the count of total Inbox messages + */ + @Cordova() + getInboxMessageCount(): Promise { + return; + } + + /** + * Call this method to open the App Inbox + * @param styleConfig : any or empty object + */ + @Cordova() + showInbox(styleConfig: any): Promise { + return; + } + + /** + * Call this to Fetch all Inbox Messages + * @returns {Promise} + */ + @Cordova() + getAllInboxMessages(): Promise { + return; + } + + /** + * Call this to Fetch all Unread Inbox Messages + * @returns {Promise} + */ + @Cordova() + getUnreadInboxMessages(): Promise { + return; + } + + /** + * Call this to Fetch Inbox Message For Id + * @param messageId {string} + * @returns {Promise} + */ + @Cordova() + getInboxMessageForId(messageId: string): Promise { + return; + } + + /** + * Call this to Delete Inbox Message For Id + * @param messageId {string} + * @returns {Promise} + */ + @Cordova() + deleteInboxMessageForId(messageId: string): Promise { + return; + } + + /** + * Call this to Mark Read Inbox Message For Id + * @param messageId {string} + * @returns {Promise} + */ + @Cordova() + markReadInboxMessageForId(messageId: string): Promise { + return; + } + + /** + * Call this to Mark Push Inbox Notification Viewed Event for Id + * @param messageId {string} + * @returns {Promise} + */ + @Cordova() + pushInboxNotificationViewedEventForId(messageId: string): Promise { + return; + } + + /** + * Call this to Mark Push Inbox Notification Clicked Event for Id + * @param messageId {string} + * @returns {Promise} + */ + @Cordova() + pushInboxNotificationClickedEventForId(messageId: string): Promise { + return; + } + + /** + * Call this to SetUIEditor Connection + * @param enabled {boolean} + * @returns {Promise} + */ + @Cordova() + setUIEditorConnectionEnabled(enabled: boolean): Promise { + return; + } + + /** + * Call this to Register Boolean Variable + * @param varName {string} + * @returns {Promise} + */ + @Cordova() + registerBooleanVariable(varName: string): Promise { + return; + } + + /** + * Call this to Register Double Variable + * @param varName {string} + * @returns {Promise} + */ + @Cordova() + registerDoubleVariable(varName: string): Promise { + return; + } + + /** + * Call this to Register Integer Variable + * @param varName {string} + * @returns {Promise} + */ + @Cordova() + registerIntegerVariable(varName: string): Promise { + return; + } + + /** + * Call this to Register String Variable + * @param varName {string} + * @returns {Promise} + */ + @Cordova() + registerStringVariable(varName: string): Promise { + return; + } + + /** + * Call this to Register List of Boolean Variable + * @param varName {string} + * @returns {Promise} + */ + @Cordova() + registerListOfBooleanVariable(varName: string): Promise { + return; + } + + /** + * Call this to Register List of Double Variable + * @param varName {string} + * @returns {Promise} + */ + @Cordova() + registerListOfDoubleVariable(varName: string): Promise { + return; + } + + /** + * Call this to Register List of Integer Variable + * @param varName {string} + * @returns {Promise} + */ + @Cordova() + registerListOfIntegerVariable(varName: string): Promise { + return; + } + + /** + * Call this to Register List of String Variable + * @param varName {string} + * @returns {Promise} + */ + @Cordova() + registerListOfStringVariable(varName: string): Promise { + return; + } + + /** + * Call this to Register Map of Boolean Variable + * @param varName {string} + * @returns {Promise} + */ + @Cordova() + registerMapOfBooleanVariable(varName: string): Promise { + return; + } + + /** + * Call this to Register Map of Double Variable + * @param varName {string} + * @returns {Promise} + */ + @Cordova() + registerMapOfDoubleVariable(varName: string): Promise { + return; + } + + /** + * Call this to Register Map of Integer Variable + * @param varName {string} + * @returns {Promise} + */ + @Cordova() + registerMapOfIntegerVariable(varName: string): Promise { + return; + } + + /** + * Call this to Register Map of String Variable + * @param varName {string} + * @returns {Promise} + */ + @Cordova() + registerMapOfStringVariable(varName: string): Promise { + return; + } + + + /** + * Call this to Get Boolean Variable + * @param varName {string} + * @param defaultValue {boolean} + * @returns {Promise} + */ + @Cordova() + getBooleanVariable( + varName: string, + defaultValue: boolean + ): Promise { + return; + } + + /** + * Call this to Get Double Variable + * @param varName {string} + * @param defaultValue {number} + * @returns {Promise} + */ + @Cordova() + getDoubleVariable( + varName: string, + defaultValue: number + ): Promise { + return; + } + + /** + * Call this to Get Integer Variable + * @param varName {string} + * @param defaultValue {number} + * @returns {Promise} + */ + @Cordova() + getIntegerVariable( + varName: string, + defaultValue: number + ): Promise { + return; + } + + /** + * Call this to Get String Variable + * @param varName {string} + * @param defaultValue {string} + * @returns {Promise} + */ + @Cordova() + getStringVariable( + varName: string, + defaultValue: string + ): Promise { + return; + } + + /** + * Call this to Get List of Boolean Variable + * @param varName {string} + * @param defaultValue {any} + * @returns {Promise} + */ + @Cordova() + getListOfBooleanVariable( + varName: string, + defaultValue: any + ): Promise { + return; + } + + /** + * Call this to Get List of Double Variable + * @param varName {string} + * @param defaultValue {any} + * @returns {Promise} + */ + @Cordova() + getListOfDoubleVariable( + varName: string, + defaultValue: any + ): Promise { + return; + } + + /** + * Call this to Get List of Integer Variable + * @param varName {string} + * @param defaultValue {any} + * @returns {Promise} + */ + @Cordova() + getListOfIntegerVariable( + varName: string, + defaultValue: any + ): Promise { + return; + } + + /** + * Call this to Get List of String Variable + * @param varName {string} + * @param defaultValue {any} + * @returns {Promise} + */ + @Cordova() + getListOfStringVariable( + varName: string, + defaultValue: any + ): Promise { + return; + } + + /** + * Call this to get Map of Boolean Variable + * @param varName {string} + * @param defaultValue {any} + * @returns {Promise} + */ + @Cordova() + getMapOfBooleanVariable( + varName: string, + defaultValue: any + ): Promise { + return; + } + + /** + * Call this to Get Map of Double Variable + * @param varName {string} + * @param defaultValue {any} + * @returns {Promise} + */ + @Cordova() + getMapOfDoubleVariable( + varName: string, + defaultValue: any + ): Promise { + return; + } + + /** + * Call this to Get Map of Integer Variable + * @param varName {string} + * @param defaultValue {any} + * @returns {Promise} + */ + @Cordova() + getMapOfIntegerVariable( + varName: string, + defaultValue: any + ): Promise { + return; + } + + /** + * Call this to Get Map of String Variable + * @param varName {string} + * @param defaultValue {any} + * @returns {Promise} + */ + @Cordova() + getMapOfStringVariable( + varName: string, + defaultValue: any + ): Promise { + return; + } + + /** + * Call this to Get All Display Units + * @returns {Promise} + */ + @Cordova() + getAllDisplayUnits(): Promise { + return; + } + + /** + * Call this to Get Display Unit For Id + * @param id {string} + * @returns {Promise} + */ + @Cordova() + getDisplayUnitForId(id: string): Promise { + return; + } + + /** + * Call this to Push DisplayUnit Viewed Event for ID + * @param id {string} + * @returns {Promise} + */ + @Cordova() + pushDisplayUnitViewedEventForID(id: string): Promise { + return; + } + + /** + * Call this to Push DisplayUnit Clicked Event for ID + * @param id {string} + * @returns {Promise} + */ + @Cordova() + pushDisplayUnitClickedEventForID(id: string): Promise { + return; + } + + /** + * Call this to Get Feature Flag for key + * @param key {string} + * @param defaultValue {string} + * @returns {Promise} + */ + @Cordova() + getFeatureFlag( + key: string, + defaultValue: string + ): Promise { + return; + } + + /** + * Call this to Set Defaults for Product Config + * @param defaults {any} + * @returns {Promise} + */ + @Cordova() + setDefaultsMap( + defaults: any + ): Promise { + return; + } + + /** + * Call this for Product Config Fetch + * @param defaults {any} + * @returns {Promise} + */ + @Cordova() + fetch(): Promise { + return; + } + + /** + * Call this for Product Config Fetch with Min Interval + * @param timeInterval {number} + * @returns {Promise} + */ + @Cordova() + fetchWithMinimumFetchIntervalInSeconds(timeInterval: number): Promise { + return; + } + + /** + * Call this for Product Config Activate + * @returns {Promise} + */ + @Cordova() + activate(): Promise { + return; + } + + /** + * Call this for Product Config Fetch and Activate + * @returns {Promise} + */ + @Cordova() + fetchAndActivate(): Promise { + return; + } + + /** + * Call this to set Product Config Fetch with Min Interval + * @param timeInterval {number} + * @returns {Promise} + */ + @Cordova() + setMinimumFetchIntervalInSeconds(timeInterval: number): Promise { + return; + } + + /** + * Call this to Get Last Fetch Time Interval + * @returns {Promise} + */ + @Cordova() + getLastFetchTimeStampInMillis(): Promise { + return; + } + + /** + * Call this to Get String + * @param key {string} + * @returns {Promise} + */ + @Cordova() + getString(): Promise { + return; + } + + /** + * Call this to Get Boolean + * @param key {string} + * @returns {Promise} + */ + @Cordova() + getBoolean(): Promise { + return; + } + + /** + * Call this to Get Long + * @param key {string} + * @returns {Promise} + */ + @Cordova() + getLong(): Promise { + return; + } + + /** + * Call this to Get Double + * @param key {string} + * @returns {Promise} + */ + @Cordova() + getDouble(): Promise { + return; + } + + /** + * Call this to Reset Product Config + * @returns {Promise} + */ + @Cordova() + reset(): Promise { + return; + } + /******************* * Developer Options ******************/