Skip to content

Commit 56a649b

Browse files
Anush-ShandpwilknissdanielsogldarshanclevertapSuryaClevertap
authored
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 <[email protected]> Co-authored-by: Daniel Sogl <[email protected]> Co-authored-by: Darshan Pania <[email protected]> Co-authored-by: Surya <[email protected]> Co-authored-by: SuryaClevertap <[email protected]> Co-authored-by: Piyush Kukadiya <[email protected]> Co-authored-by: piyush-kukadiya <[email protected]> Co-authored-by: AishwaryaNanna <[email protected]>
1 parent c8f8276 commit 56a649b

File tree

1 file changed

+60
-0
lines changed
  • src/@awesome-cordova-plugins/plugins/clevertap

1 file changed

+60
-0
lines changed

src/@awesome-cordova-plugins/plugins/clevertap/index.ts

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,60 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
341341
}
342342

343343
/**
344+
* Get the details of a specific event
345+
*
346+
* @param eventName {string} - The name of the event
347+
* @returns {Promise<any>}
348+
*/
349+
@Cordova()
350+
getUserEventLog(eventName: string): Promise<any> {
351+
return;
352+
}
353+
354+
/**
355+
* Get the count of times an event occurred
356+
*
357+
* @param eventName {string} - The name of the event
358+
* @returns {Promise<any>}
359+
*/
360+
@Cordova()
361+
getUserEventLogCount(eventName: string): Promise<any> {
362+
return;
363+
}
364+
365+
/**
366+
* Get timestamp of user's last app visit
367+
*
368+
* @returns {Promise<any>} - Returns epoch seconds or -1
369+
*/
370+
@Cordova()
371+
getUserLastVisitTs(): Promise<any> {
372+
return;
373+
}
374+
375+
/**
376+
* Get the total number of times the user has launched the app
377+
*
378+
* @returns {Promise<any>}
379+
*/
380+
@Cordova()
381+
getUserAppLaunchCount(): Promise<any> {
382+
return;
383+
}
384+
385+
/**
386+
* Get full event history for the current user
387+
*
388+
* @returns {Promise<any>}
389+
*/
390+
@Cordova()
391+
getUserEventLogHistory(): Promise<any> {
392+
return;
393+
}
394+
395+
396+
/**
397+
* @deprecated - Use getUserEventLog() instead
344398
* Get Event First Time
345399
*
346400
* @param eventName {string}
@@ -353,6 +407,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
353407
}
354408

355409
/**
410+
* @deprecated - Use getUserEventLog() instead
356411
* Get Event Last Time
357412
*
358413
* @param eventName {string}
@@ -365,6 +420,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
365420
}
366421

367422
/**
423+
* @deprecated - Use getUserEventLogCount() instead
368424
* Get Event Number of Occurrences
369425
*
370426
* @param eventName {string}
@@ -377,6 +433,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
377433
}
378434

379435
/**
436+
* * @deprecated - Use getUserEventLog() instead
380437
* Get Event Details
381438
*
382439
* @param eventName {string}
@@ -389,6 +446,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
389446
}
390447

391448
/**
449+
* @deprecated - Use getUserEventLogHistory() instead
392450
* Get Event History
393451
* calls back with object {"eventName1":<event1 details object>, "eventName2":<event2 details object>}
394452
*
@@ -700,6 +758,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
700758
}
701759

702760
/**
761+
* @deprecated - Use getUserAppLaunchCount() instead
703762
* Get Session Total Visits
704763
* calls back with with int or -1
705764
*
@@ -722,6 +781,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
722781
}
723782

724783
/**
784+
* @deprecated - Use getUserLastVisitTs() instead
725785
* Get Session Previous Visit Time
726786
* calls back with with epoch seconds or -1
727787
*

0 commit comments

Comments
 (0)