feat(clevertap): support clevertap-cordova 3.4.0 (#4917)

* 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

* feat(inbox): add new api for iOS to delete bulk inbox messages for given message ids

* refactor(xiaomi-push): add region as an extra mandatory parameter to setPushXiaomiToken

* Update index.ts to support cordova 2.7.0

* Update index.ts

* feat(clevertap): support clevertap-cordova 2.7.2

* feat(clevertap): support clevertap-cordova 2.7.2

* feat(clevertap): support clevertap-cordova 2.7.2

* task(SDK-3757) - Add support for cordova v3.0.0

- Adds 2 new APIs = clearInAppResources() and fetchInApps()

* task(SDK-3757) - Add support for cordova v3.2.0

- Removes xiaomi related APIs

* task(SDK-4148) - Add support for cordova v3.3.0

- Custom Templates
- File Variables

* task(SDK-4386) - Add support for cordova v3.4.0

- Multi Triggers
- Deprecates older APIs

---------

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>
Co-authored-by: Piyush Kukadiya <piyush.kukadiya@clevertap.com>
Co-authored-by: piyush-kukadiya <61137760+piyush-kukadiya@users.noreply.github.com>
Co-authored-by: AishwaryaNanna <97506871+AishwaryaNanna@users.noreply.github.com>
This commit is contained in:
Anush-Shand 2025-03-10 22:51:16 +05:30 committed by GitHub
parent c8f827691e
commit 56a649be50
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -341,6 +341,60 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
}
/**
* Get the details of a specific event
*
* @param eventName {string} - The name of the event
* @returns {Promise<any>}
*/
@Cordova()
getUserEventLog(eventName: string): Promise<any> {
return;
}
/**
* Get the count of times an event occurred
*
* @param eventName {string} - The name of the event
* @returns {Promise<any>}
*/
@Cordova()
getUserEventLogCount(eventName: string): Promise<any> {
return;
}
/**
* Get timestamp of user's last app visit
*
* @returns {Promise<any>} - Returns epoch seconds or -1
*/
@Cordova()
getUserLastVisitTs(): Promise<any> {
return;
}
/**
* Get the total number of times the user has launched the app
*
* @returns {Promise<any>}
*/
@Cordova()
getUserAppLaunchCount(): Promise<any> {
return;
}
/**
* Get full event history for the current user
*
* @returns {Promise<any>}
*/
@Cordova()
getUserEventLogHistory(): Promise<any> {
return;
}
/**
* @deprecated - Use getUserEventLog() instead
* Get Event First Time
*
* @param eventName {string}
@ -353,6 +407,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
}
/**
* @deprecated - Use getUserEventLog() instead
* Get Event Last Time
*
* @param eventName {string}
@ -365,6 +420,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
}
/**
* @deprecated - Use getUserEventLogCount() instead
* Get Event Number of Occurrences
*
* @param eventName {string}
@ -377,6 +433,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
}
/**
* * @deprecated - Use getUserEventLog() instead
* Get Event Details
*
* @param eventName {string}
@ -389,6 +446,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
}
/**
* @deprecated - Use getUserEventLogHistory() instead
* Get Event History
* calls back with object {"eventName1":<event1 details object>, "eventName2":<event2 details object>}
*
@ -700,6 +758,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
}
/**
* @deprecated - Use getUserAppLaunchCount() instead
* Get Session Total Visits
* calls back with with int or -1
*
@ -722,6 +781,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
}
/**
* @deprecated - Use getUserLastVisitTs() instead
* Get Session Previous Visit Time
* calls back with with epoch seconds or -1
*