diff --git a/src/@awesome-cordova-plugins/plugins/unvired-cordova-sdk/index.ts b/src/@awesome-cordova-plugins/plugins/unvired-cordova-sdk/index.ts index 268580535..ea54dce62 100644 --- a/src/@awesome-cordova-plugins/plugins/unvired-cordova-sdk/index.ts +++ b/src/@awesome-cordova-plugins/plugins/unvired-cordova-sdk/index.ts @@ -443,8 +443,22 @@ export class LoginParameters { */ dbUpdateStatements: string; - + /** + * Specify Firebase push configuration for Web/Elector Push. + */ + firebasePushConfig: FirebasePushConfig; } + +export interface FirebasePushConfig { + apiKey: string; + authDomain: string; + projectId: string; + storageBucket: string; + messagingSenderId: string; + appId: string; + vapidKey: string; // VAPID public key for Web Push +} + export class LoginResult extends UnviredResult { type: LoginListenerType; } @@ -1860,4 +1874,66 @@ export class UnviredCordovaSDK extends AwesomeCordovaNativePlugin { getUMPRequestConfig(endpoint: string, options?: { customUrl?: string }): Promise { return; } + + /** + * Check connection status. + * Returns networkNotReachable, umpNotReachable, or connected. + */ + @Cordova() + checkConnectionStatus(): Promise { + return; + } + + /** + * Get database directory path. + */ + @Cordova() + getDatabasePath(): Promise { + return; + } + + /** + * Download attachment synchronously. + * @param structureObject Attachment Item JSON object containing field name-value. + */ + @Cordova() + downloadAttachmentSync(structureObject: any): Promise { + return; + } + + /** + * Unregister for callback on GetMessage status (Mobile only). + */ + @Cordova({ sync: true }) + unRegisterNotifListener(): void { + return; + } + + /** + * Prepare database for export. + */ + @Cordova() + prepareDatabaseForExport(): Promise { + return; + } + + /** + * Register a callback to listen for sync items count updates. + */ + @Cordova({ + observable: true, + }) + updateSyncItemsCount(): Observable { + return; + } + + /** + * Set authentication credentials. + * @param username Username + * @param password Password + */ + @Cordova() + setAuthCredentials(username: string, password: string): Promise { + return; + } }