diff --git a/src/@awesome-cordova-plugins/plugins/clevertap/index.ts b/src/@awesome-cordova-plugins/plugins/clevertap/index.ts index a2208fcd06..f3f699a2ef 100644 --- a/src/@awesome-cordova-plugins/plugins/clevertap/index.ts +++ b/src/@awesome-cordova-plugins/plugins/clevertap/index.ts @@ -92,7 +92,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin { * @param {boolean} allowSystemEvents - Set to `true` to allow system-level event tracking. */ @Cordova() - setOptOut(optOut: boolean, allowSystemEvents?: boolean): Promise { + setOptOut(userOptOut: boolean, allowSystemEvents?: boolean): Promise { return; } @@ -724,6 +724,20 @@ export class CleverTap extends AwesomeCordovaNativePlugin { return; } + /** + * Dismisses the currently visible Picture-in-Picture (PIP) InApp notification. + * No-op when no PIP InApp is visible; other InApp types are never affected. + * Note: dismissing frees the InApp display slot, so the next queued InApp may show immediately. + * To keep a screen free of all InApps, pair this with 'suspendInAppNotifications' on screen entry + * and 'resumeInAppNotifications' on exit. + * + * @returns {Promise} + */ + @Cordova() + dismissPipInApp(): Promise { + return; + } + /** * Deletes all images and gifs which are preloaded for inapps in cs mode. * @@ -975,6 +989,18 @@ export class CleverTap extends AwesomeCordovaNativePlugin { return; } + /** + * Requests an on-demand refresh of the App Inbox from the CleverTap servers. + * Throttled to one call every 5 minutes; the throttle is shared with the built-in pull-to-refresh gesture. + * Resolves with true if messages were fetched, false if the fetch was throttled, disabled for the session or failed. + * + * @returns {Promise} + */ + @Cordova() + fetchInbox(): Promise { + return; + } + /** * Call this to Get All Display Units * @@ -1018,6 +1044,18 @@ export class CleverTap extends AwesomeCordovaNativePlugin { return; } + /** + * Call this to Push a DisplayUnit Element Clicked Event for ID + * + * @param unitId {string} - the Display Unit ID + * @param additionalProperties {any} - properties to merge into the event, e.g. the 'wzrk_element_id' taken from the clicked action's metadata + * @returns {Promise} + */ + @Cordova() + pushDisplayUnitElementClickedEventForID(unitId: string, additionalProperties: any): Promise { + return; + } + /** * @deprecated - Since version 2.7.0 and will be removed in the future versions of this SDK. * Call this to Get Feature Flag for key