export class NotificareEventsModule { /** * Logs in Notificare a custom event in the application. * * This function allows logging, in Notificare, of application-specific events, * optionally associating structured data for more detailed event tracking and * analysis. * * @param {string} event - The name of the custom event to log. * @param {Record} data - Optional structured event data for * further details. * @returns {Promise} - A promise that resolves when the custom event * has been successfully logged. */ // eslint-disable-next-line @typescript-eslint/no-explicit-any public async logCustom(event: string, data?: Record) { return new Promise((resolve, reject) => { cordova.exec(resolve, reject, 'Notificare', 'logCustom', [event, data]); }); } }