Private
#appThe Firebase app instance
Private
#appThe Firebase app name. If none is provided, the default is "[DEFAULT]"
Private
#authPrivate
#firestoreThe Firebase Firestore instance
https://firebase.google.com/docs/reference/js/firestore_.md#@firebase/firestore
Private
#optionsPrivate
#storageThe Firebase storage instance
https://firebase.google.com/docs/reference/js/storage_.md#@firebase/storage
Private
#initializePrivate
#initializePrivate
#initializeInitialize the document to obtain the data.
The name of the collection to initialize the document
The name of the document to be initialized
Private
#initializePrivate
#initializeProtected
_initCreates a document with a data object.
The name of the collection to create the doc in
The name of the document to create
The data to create the document with
A reference to the document on success
Delete the user's account and notifies on success or failure.
The user update object with new details
A function that deletes user-associated data
An empty string on success, else an error message
Deletes a field from a given document.
The name of the collection to delete from
The name of the document to delete from
The field to delete
True on success, else false
Retreive all documents for a collection. Requires read permission for all documents.
The name of the collection to get docs from
Read a document from the given collection.
The name of the collection containing the document
The name of the document being updated
The data from the retrieved document
Search a given collection field for a value.
The name of the collection to search
The name of the field to search
The value to search for
A string describing the comparison operator
True for a case-sensitive search (default false)
An array of search results or false on failure
Sign up a new user. Create a new user document and update the user profile in firestore. Requires write permission for the User collection.
The user update object set with new data
A sign up error message or an empty string on success
Updates a document in the given collection. Creates the document if it does not exist.
The name of the collection to update
The name of the document to update
The updated document data
True on success, else false
Updates the user's account details and notifies the caller on success or error. Requires write permission for the User collection in firestore.
The updated user information
An empty string on success, else an error message
Upload an image to the firebase storage bucket.
the url of the local image to be uploaded
callback to set the download url
callback to update the progress bar
callback to handle errors
use uploadBytesResumable to track detailed progress
unsubscribe from the upload task (detailed progress only)
Generated using TypeDoc