diff --git a/src/@awesome-cordova-plugins/plugins/webengage/index.ts b/src/@awesome-cordova-plugins/plugins/webengage/index.ts index 645c0e403e..5f01391035 100644 --- a/src/@awesome-cordova-plugins/plugins/webengage/index.ts +++ b/src/@awesome-cordova-plugins/plugins/webengage/index.ts @@ -28,7 +28,6 @@ import { Cordova, AwesomeCordovaNativePlugin, Plugin } from '@awesome-cordova-pl export class Webengage extends AwesomeCordovaNativePlugin { /** * Initializes WebEngage SDK - * * @param {any} [config] * @returns {Promise} */ @@ -37,9 +36,17 @@ export class Webengage extends AwesomeCordovaNativePlugin { return; } + /** + * Starts Tracking Google Advertising ID + * @returns {Promise} + */ + @Cordova() + startGAIDTracking(): Promise { + return; + } + /** * Sets WebEngage SDK configuration - * * @param {string} key * @param {any} value * @returns {Promise} @@ -51,7 +58,6 @@ export class Webengage extends AwesomeCordovaNativePlugin { /** * Tracks event - * * @param {string} eventName * @param {any} [attributes] * @returns {Promise} @@ -63,7 +69,6 @@ export class Webengage extends AwesomeCordovaNativePlugin { /** * Tracks screen - * * @param {string} eventName * @param screenName * @param {any} [screenData] @@ -87,7 +92,6 @@ export class Webengage extends AwesomeCordovaNativePlugin { export class WebengageUser extends AwesomeCordovaNativePlugin { /** * Logs user in - * * @param {string} userId * @returns {Promise} */ @@ -98,7 +102,6 @@ export class WebengageUser extends AwesomeCordovaNativePlugin { /** * Logs user out - * * @returns {Promise} */ @Cordova() @@ -108,7 +111,6 @@ export class WebengageUser extends AwesomeCordovaNativePlugin { /** * Sets user attribute - * * @param {string} key * @param {any} value * @returns {Promise} @@ -117,6 +119,27 @@ export class WebengageUser extends AwesomeCordovaNativePlugin { setAttribute(key: string, value: any): Promise { return; } + + /** + * Sets Device optIn + * @param {boolean} optIn + * @returns {Promise} + */ + @Cordova() + setDevicePushOptIn(optIn: boolean): Promise { + return; + } + + /** + * Sets user attribute + * @param {string} channel + * @param {any} optIn + * @returns {Promise} + */ + @Cordova() + setUserOptIn(channel: string, optIn: any): Promise { + return; + } } /** @@ -131,7 +154,6 @@ export class WebengageUser extends AwesomeCordovaNativePlugin { export class WebengagePush extends AwesomeCordovaNativePlugin { /** * Callback function is invoked when a push notification is clicked - * * @param {any} callback * @returns {Promise} */ @@ -142,7 +164,6 @@ export class WebengagePush extends AwesomeCordovaNativePlugin { /** * Sets push notification configuration - * * @param {string} key * @param {any} value * @returns {Promise} @@ -165,7 +186,6 @@ export class WebengagePush extends AwesomeCordovaNativePlugin { export class WebengageNotification extends AwesomeCordovaNativePlugin { /** * Callback function is invoked when a in-app notification is shown - * * @param {any} callback * @returns {Promise} */ @@ -174,9 +194,18 @@ export class WebengageNotification extends AwesomeCordovaNativePlugin { return; } + /** + * Callback function is invoked before a in-app notification is shown + * @param {any} callback + * @returns {Promise} + */ + @Cordova() + onPrepared(callback: any): Promise { + return; + } + /** * Callback function is invoked when a in-app notification is clicked - * * @param {any} callback * @returns {Promise} */ @@ -187,7 +216,6 @@ export class WebengageNotification extends AwesomeCordovaNativePlugin { /** * Callback function is invoked when a in-app notification is dismissed - * * @param {any} callback * @returns {Promise} */ @@ -198,7 +226,6 @@ export class WebengageNotification extends AwesomeCordovaNativePlugin { /** * Sets in-app notification configuration - * * @param {string} key * @param {any} value * @returns {Promise}