diff --git a/src/@ionic-native/plugins/firebase-x/index.ts b/src/@ionic-native/plugins/firebase-x/index.ts index 1f61508944..9486fcc661 100644 --- a/src/@ionic-native/plugins/firebase-x/index.ts +++ b/src/@ionic-native/plugins/firebase-x/index.ts @@ -304,6 +304,23 @@ export class FirebaseX extends IonicNativePlugin { return; } + /** + * Indicates whether autoinit is currently enabled. If so, new FCM tokens will be automatically generated. + */ + @Cordova() + isAutoInitEnabled(): Promise { + return; + } + + /** + * Sets whether to autoinit new FCM tokens. By default, a new token will be generated as soon as the old one is removed. + * To prevent a new token being generated, by sure to disable autoinit using setAutoInitEnabled() before calling unregister(). + */ + @Cordova() + setAutoInitEnabled(enabled: boolean): Promise { + return; + } + /** * Android 8+ only. Creates a custom channel to be used by notification messages which have the channel property set in the message payload to the id of the created channel: * - for background (system) notifications: android.notification.channel_id @@ -520,6 +537,63 @@ export class FirebaseX extends IonicNativePlugin { return; } + /** + * Creates a new email/password-based user account. If account creation is successful, user will be automatically signed in. + * @param email + * @param password + */ + @Cordova() + createUserWithEmailAndPassword(email: string, password: string): Promise { + return; + } + + /** + * Signs in to an email/password-based user account. + * @param email + * @param password + */ + @Cordova() + signInUserWithEmailAndPassword(email: string, password: string): Promise { + return; + } + + /** + * Signs in user with custom token. + * @param customToken + */ + @Cordova() + signInUserWithCustomToken(customToken: string): Promise { + return; + } + + /** + * Signs in user anonymously. + */ + @Cordova() + signInUserAnonymously(): Promise { + return; + } + + /** + * Authenticates the user with a Google account to obtain a credential that can be used to sign the user in/link to an existing user account/reauthenticate the user. + * @param clientId + */ + @Cordova() + authenticateUserWithGoogle(clientId: string): Promise { + return; + } + + /** + * Authenticates the user with an Apple account using Sign In with Apple to obtain a credential that can be used to sign the user in/link to an existing user account/reauthenticate the user. + * @param locale + */ + @Cordova({ + callbackOrder: 'reverse', + }) + authenticateUserWithApple(locale?: string): Promise { + return; + } + /** * Links the user account to an existing Firebase user account with credentials obtained using verifyPhoneNumber(). * See the Android- and iOS-specific Firebase documentation for more info. @@ -543,6 +617,76 @@ export class FirebaseX extends IonicNativePlugin { return; } + /** + * Checks if there is a current Firebase user signed into the app. + */ + @Cordova() + isUserSignedIn(): Promise { + return; + } + + /** + * Signs current Firebase user out of the app. + */ + @Cordova() + signOutUser(): Promise { + return; + } + + /** + * Updates the display name and/or photo URL of the current Firebase user signed into the app. + * @param profile + */ + @Cordova() + updateUserProfile(profile: { name: string; photoUri: string }): Promise { + return; + } + + /** + * Updates/sets the email address of the current Firebase user signed into the app. + * @param email + */ + @Cordova() + updateUserEmail(email: string): Promise { + return; + } + + /** + * Sends a verification email to the currently configured email address of the current Firebase user signed into the app. + * When the user opens the contained link, their email address will have been verified. + */ + @Cordova() + sendUserEmailVerification(): Promise { + return; + } + + /** + * Updates/sets the account password for the current Firebase user signed into the app. + * @param password + */ + @Cordova() + updateUserPassword(password: string): Promise { + return; + } + + /** + * Sends a password reset email to the specified user email address. + * Note: doesn't require the Firebase user to be signed in to the app. + * @param email + */ + @Cordova() + sendUserPasswordResetEmail(email: string): Promise { + return; + } + + /** + * Deletes the account of the current Firebase user signed into the app. + */ + @Cordova() + deleteUser(): Promise { + return; + } + /** * Registers a Javascript function to invoke when Firebase Authentication state changes between user signed in/signed out. * @param {function} fn - callback function to invoke when authentication state changes